From 888b0c7ed9300b77308c9db512bd3d633cbcc9e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sampo=20Kivist=C3=B6?= Date: Wed, 15 Jan 2020 20:55:22 +0200 Subject: [PATCH] Updated development dependencies --- docs/1kcomponents/dist/bundle.js | 2 +- docs/dbmonster/dist/bundle.js | 2 +- docs/event-test/dist/bundle.js | 2 +- docs/uibench-inferno-compat/dist/bundle.js | 2 +- docs/uibench-normalization/dist/bundle.js | 2 +- docs/uibench-reactlike/dist/bundle.js | 2 +- docs/uibench/dist/bundle.js | 2 +- package.json | 34 +++++++++++----------- 8 files changed, 24 insertions(+), 24 deletions(-) diff --git a/docs/1kcomponents/dist/bundle.js b/docs/1kcomponents/dist/bundle.js index 37796e2f1..d4dfd98a9 100644 --- a/docs/1kcomponents/dist/bundle.js +++ b/docs/1kcomponents/dist/bundle.js @@ -1 +1 @@ -!function(){"use strict";function e(){return(e=Object.assign||function(e){for(var n=1;n0,p=o(s),b=i(s)&&s[0]===L;h||p||b?(f=f||n.slice(0,d),(h||b)&&(u=U(u)),(p||b)&&(u.key=L+d),f.push(u)):f&&f.push(u),u.flags|=65536}}c=0===(f=f||n).length?1:8}else(f=n).flags|=65536,81920&n.flags&&(f=U(n)),c=2;e.children=f,e.childFlags=c}(p,p.children),p}function I(e,n,t,a,r){return new F(1,null,null,e=function(e,n){if(12&e)return e;if(n.prototype&&n.prototype.render)return 4;if(n.render)return 32776;return 8}(e,n),a,function(e,n,t){var a=(32768&e?n.render:n).defaultProps;if(f(a))return t;if(f(t))return l(a,null);return S(t,a)}(e,n,t),function(e,n,t){if(4&e)return t;var a=(32768&e?n.render:n).defaultHooks;if(f(a))return t;if(f(t))return a;return S(t,a)}(e,n,r),n)}function A(e,n){return new F(1,f(e)||!0===e||!1===e?"":e,null,16,n,null,null,null)}function V(e,n,t){var a=T(8192,8192,null,e,n,null,t,null);switch(a.childFlags){case 1:a.children=H(),a.childFlags=2;break;case 16:a.children=[A(e)],a.childFlags=4}return a}function U(e){var n=-16385&e.flags,t=e.props;if(14&n&&!o(t)){var a=t;for(var f in t={},a)t[f]=a[f]}if(0===(8192&n))return new F(e.childFlags,e.children,e.className,n,e.key,t,e.ref,e.type);return function(e){var n,t=e.children,a=e.childFlags;if(2===a)n=U(t);else if(12&a){n=[];for(var f=0,r=t.length;f-1&&n.options[i]&&(o=n.options[i].value),a&&f(o)&&(o=e.defaultValue),function e(n,a){if("option"===n.type)!function(e,n){var a=e.props||u,r=e.dom;r.value=a.value,a.value===n||t(n)&&-1!==n.indexOf(a.value)?r.selected=!0:f(n)&&f(a.selected)||(r.selected=a.selected||!1)}(n,a);else{var r=n.children,c=n.flags;if(4&c)e(r.$LI,a);else if(8&c)e(r,a);else if(2===n.childFlags)e(r,a);else if(12&n.childFlags)for(var i=0,o=r.length;i0);if(f(d)||""===d||(a?h.setAttribute("class",d):h.className=d),16===s)C(h,u);else if(1!==s){var b=a&&"foreignObject"!==e.type;2===s?(16384&u.flags&&(e.children=u=U(u)),Ce(u,h,t,b,null,c)):8!==s&&4!==s||Se(u,h,t,b,null,c)}o(n)||p(n,h,r),o(l)||function(e,n,t,a,f){var r=!1,c=(448&n)>0;for(var i in c&&(r=pe(t))&&function(e,n,t){64&e?function(e,n){ne(n.type)?(ee(e,"change",ae),ee(e,"click",fe)):ee(e,"input",te)}(n,t):256&e?function(e){ee(e,"change",ce)}(n):128&e&&function(e,n){ee(e,"input",de),n.onChange&&ee(e,"change",ue)}(n,t)}(n,a,t),t)$e(i,null,t[i],a,f,r,null);c&&he(n,e,a,t,!0,r)}(e,i,l,h,a),ve(e.ref,h,c)}(e,n,t,a,r,i):4&l?function(e,n,t,a,f,r){var i=function(e,n,t,a,f,r){var i=new n(t,a),l=i.$N=Boolean(n.getDerivedStateFromProps||i.getSnapshotBeforeUpdate);if(i.$SVG=f,i.$L=r,e.children=i,i.$BS=!1,i.context=a,i.props===u&&(i.props=t),l)i.state=k(i,t,i.state);else if(c(i.componentWillMount)){i.$BR=!0,i.componentWillMount();var d=i.$PS;if(!o(d)){var s=i.state;if(o(s))i.state=d;else for(var h in d)s[h]=d[h];i.$PS=null}i.$BR=!1}return i.$LI=we(i,t,a),i}(e,e.type,e.props||u,t,a,r);Ce(i.$LI,n,i.$CX,a,f,r),function(e,n,t){ve(e,n,t),c(n.componentDidMount)&&t.push(function(e){return function(){e.componentDidMount()}}(n))}(e.ref,i,r)}(e,n,t,a,r,i):8&l?(function(e,n,t,a,f,r){Ce(e.children=_(function(e,n){return 32768&e.flags?e.type.render(e.props||u,e.ref,n):e.type(e.props||u,n)}(e,t)),n,t,a,f,r)}(e,n,t,a,r,i),function(e,n){var t=e.ref;f(t)||(M(t.onComponentWillMount,e.props||u),c(t.onComponentDidMount)&&n.push(function(e,n){return function(){e.onComponentDidMount(g(n,!0),n.props||u)}}(t,e)))}(e,i)):512&l||16&l?Pe(e,n,r):8192&l?function(e,n,t,a,f,r){var c=e.children,i=e.childFlags;12&i&&0===c.length&&(i=e.childFlags=2,c=e.children=H()),2===i?Ce(c,t,f,a,f,r):Se(c,t,n,a,f,r)}(e,t,n,a,r,i):1024&l&&function(e,n,t,a,f){Ce(e.children,e.ref,n,!1,null,f);var r=H();Pe(r,t,a),e.dom=r.dom}(e,t,n,r,i)}function Pe(e,n,t){var a=e.dom=document.createTextNode(e.children);o(n)||p(n,a,t)}function Se(e,n,t,a,f,r){for(var c=0;c0,l!==d){var p=l||u;if((i=d||u)!==u)for(var b in(s=(448&r)>0)&&(h=pe(i)),i){var v=p[b],m=i[b];v!==m&&$e(b,v,m,o,a,h,e)}if(p!==u)for(var g in p)f(i[g])&&!f(p[g])&&$e(g,p[g],null,o,a,h,e)}var y=n.children,x=n.className;e.className!==x&&(f(x)?o.removeAttribute("class"):a?o.setAttribute("class",x):o.className=x),4096&r?function(e,n){e.textContent!==n&&(e.textContent=n)}(o,y):Le(e.childFlags,n.childFlags,e.children,y,o,t,a&&"foreignObject"!==n.type,null,e,c),s&&he(r,n,o,i,!1,h);var k=n.ref,$=e.ref;$!==k&&(be($),ve(k,o,c))}(e,n,a,i,p,s):4&p?function(e,n,t,a,f,r,i){var d=n.children=e.children;if(o(d))return;d.$L=i;var s=n.props||u,h=n.ref,p=e.ref,b=d.state;if(!d.$N){if(c(d.componentWillReceiveProps)){if(d.$BR=!0,d.componentWillReceiveProps(s,a),d.$UN)return;d.$BR=!1}o(d.$PS)||(b=l(b,d.$PS),d.$PS=null)}Fe(d,b,s,t,a,f,!1,r,i),p!==h&&(be(p),ve(h,d,i))}(e,n,t,a,i,d,s):8&p?function(e,n,t,a,r,i,o){var l=!0,d=n.props||u,s=n.ref,h=e.props,p=!f(s),b=e.children;if(p&&c(s.onComponentShouldUpdate)&&(l=s.onComponentShouldUpdate(h,d)),!1!==l){p&&c(s.onComponentWillUpdate)&&s.onComponentWillUpdate(h,d);var v=n.type,m=_(32768&n.flags?v.render(d,s,a):v(d,a));Me(b,m,t,a,r,i,o),n.children=m,p&&c(s.onComponentDidUpdate)&&s.onComponentDidUpdate(h,d)}else n.children=b}(e,n,t,a,i,d,s):16&p?function(e,n){var t=n.children,a=n.dom=e.dom;t!==e.children&&(a.nodeValue=t)}(e,n):512&p?n.dom=e.dom:8192&p?function(e,n,t,a,f,r){var c=e.children,i=n.children,o=e.childFlags,l=n.childFlags,d=null;12&l&&0===i.length&&(l=n.childFlags=2,i=n.children=H());var u=0!==(2&l);if(12&o){var s=c.length;(8&o&&8&l||u||!u&&i.length>s)&&(d=g(c[s-1],!1).nextSibling)}Le(o,l,c,i,t,a,f,d,e,r)}(e,n,t,a,i,s):function(e,n,t,a){var f=e.ref,c=n.ref,i=n.children;if(Le(e.childFlags,n.childFlags,e.children,i,f,t,!1,null,e,a),n.dom=e.dom,f!==c&&!r(i)){var o=i.dom;b(f,o),h(c,o)}}(e,n,a,s)}function Le(e,n,t,a,f,r,c,i,o,l){switch(e){case 2:switch(n){case 2:Me(t,a,f,r,c,i,l);break;case 1:me(t,f);break;case 16:ge(t),C(f,a);break;default:!function(e,n,t,a,f,r){ge(e),Se(n,t,a,f,g(e,!0),r),y(e,t)}(t,a,f,r,c,l)}break;case 1:switch(n){case 2:Ce(a,f,r,c,i,l);break;case 1:break;case 16:C(f,a);break;default:Se(a,f,r,c,i,l)}break;case 16:switch(n){case 16:!function(e,n,t){e!==n&&(""!==e?t.firstChild.nodeValue=n:C(t,n))}(t,a,f);break;case 2:xe(f),Ce(a,f,r,c,i,l);break;case 1:xe(f);break;default:xe(f),Se(a,f,r,c,i,l)}break;default:switch(n){case 16:ye(t),C(f,a);break;case 2:ke(f,o,t),Ce(a,f,r,c,i,l);break;case 1:ke(f,o,t);break;default:var d=0|t.length,u=0|a.length;0===d?u>0&&Se(a,f,r,c,i,l):0===u?ke(f,o,t):8===n&&8===e?function(e,n,t,a,f,r,c,i,o,l){var d,u,s=r-1,h=c-1,p=0,b=e[p],v=n[p];e:{for(;b.key===v.key;){if(16384&v.flags&&(n[p]=v=U(v)),Me(b,v,t,a,f,i,l),e[p]=v,++p>s||p>h)break e;b=e[p],v=n[p]}for(b=e[s],v=n[h];b.key===v.key;){if(16384&v.flags&&(n[h]=v=U(v)),Me(b,v,t,a,f,i,l),e[s]=v,h--,p>--s||p>h)break e;b=e[s],v=n[h]}}if(p>s){if(p<=h)for(u=(d=h+1)h)for(;p<=s;)me(e[p++],t);else!function(e,n,t,a,f,r,c,i,o,l,d,u,s){var h,p,b,v=0,m=i,y=i,k=r-i+1,$=c-i+1,w=new Int32Array($+1),C=k===a,P=!1,S=0,M=0;if(f<4||(k|$)<32)for(v=m;v<=r;++v)if(h=e[v],M<$){for(i=y;i<=c;i++)if(p=n[i],h.key===p.key){if(w[i-y]=v+1,C)for(C=!1;mi?P=!0:S=i,16384&p.flags&&(n[i]=p=U(p)),Me(h,p,o,t,l,d,s),++M;break}!C&&i>c&&me(h,o)}else C||me(h,o);else{var L={};for(v=y;v<=c;++v)L[n[v].key]=v;for(v=m;v<=r;++v)if(h=e[v],M<$)if(void 0!==(i=L[h.key])){if(C)for(C=!1;v>m;)me(e[m++],o);w[i-y]=v+1,S>i?P=!0:S=i,16384&(p=n[i]).flags&&(n[i]=p=U(p)),Me(h,p,o,t,l,d,s),++M}else C||me(h,o);else C||me(h,o)}if(C)ke(o,u,e),Se(n,o,t,l,d,s);else if(P){var F=function(e){var n=0,t=0,a=0,f=0,r=0,c=0,i=0,o=e.length;for(o>Te&&(Te=o,oe=new Int32Array(o),le=new Int32Array(o));t>1]]0&&(le[t]=oe[r-1]),oe[r]=t)}r=f+1;var l=new Int32Array(r);for(c=oe[r-1];r-- >0;)l[r]=c,c=le[c],oe[r]=0;return l}(w);for(i=F.length-1,v=$-1;v>=0;v--)0===w[v]?(16384&(p=n[S=v+y]).flags&&(n[S]=p=U(p)),Ce(p,o,t,l,(b=S+1)=0;v--)0===w[v]&&(16384&(p=n[S=v+y]).flags&&(n[S]=p=U(p)),Ce(p,o,t,l,(b=S+1)c?c:r,s=0;sc)for(s=u;s0&&v(f),$.v=!1}else e.state=e.$PS,e.$PS=null;c(t)&&t.call(e)}var Ee=function(e,n){this.state=null,this.$BR=!1,this.$BS=!0,this.$PS=null,this.$LI=null,this.$UN=!1,this.$CX=null,this.$QU=null,this.$N=!1,this.$L=null,this.$SVG=!1,this.props=e||u,this.context=n||u};Ee.prototype.forceUpdate=function(e){if(this.$UN)return;Ue(this,{},e,!0)},Ee.prototype.setState=function(e,n){if(this.$UN)return;this.$BS||Ue(this,e,n,!1)},Ee.prototype.render=function(e,n,t){return null};var Re,De,Oe=function(e,n,t,a){this.min=e,this.max=n,this.mean=t,this.last=a},Be=function(){function e(e){this.samples=[],this.maxSamples=e,this._i=-1}return e.prototype.addSample=function(e){this._i=(this._i+1)%this.maxSamples,this.samples[this._i]=e},e.prototype.each=function(e){for(var n=this.samples,t=0;tt&&(t=r),a+=r}var c=e[this._i],i=a/e.length;return new Oe(n,t,i,c)},e}(),We=[],je=-1,Ge=(Re=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])},function(e,n){function t(){this.constructor=e}Re(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}),Xe=30,qe=100,Qe=function(){function e(e){var n=this;this._sync=function(){n.sync(),n._dirty=!1},this.name=e,this.element=document.createElement("div"),this.element.style.cssText="padding: 2px;background-color: #020;font-family: monospace;font-size: 12px;color: #0f0",this._dirty=!1,this.invalidate()}return e.prototype.invalidate=function(){var e;this._dirty||(this._dirty=!0,e=this._sync,We.push(e),-1===je&&requestAnimationFrame((function(e){je=-1;var n=We;We=[];for(var t=0;t0&&(f+=2/121*(1e3/(r-a)-f)),a=r,n.addSample(f),t.invalidate(),requestAnimationFrame(e)}))}(),function(e){if(void 0===e&&(e=De.HideMin|De.HideMean),ze(),void 0===performance.memory)return;var n=new Be(100),t=new Ye("Memory",e,"MB",n);Ke.appendChild(t.element),function e(){n.addSample(Math.round(performance.memory.usedJSHeapSize/1048576)),t.invalidate(),setTimeout(e,30)}()}();var nn=function(e){function t(n,t){var a;return(a=e.call(this,n,t)||this).state={numPoints:0},a.updateCount=a.updateCount.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(a)),a}n(t,e);var a=t.prototype;return a.updateCount=function(e){this.setState({numPoints:e.target.value})},a.componentDidMount=function(){this.setState({numPoints:1e3})},a.render=function(e,n){return T(1,"div","app-wrapper",[I(2,fn,{count:n.numPoints},null,null),T(1,"div","controls",[A("# Points"),T(64,"input",null,null,1,{type:"range",min:10,max:1e4,value:n.numPoints,onInput:this.updateCount},null,null),n.numPoints],0,null,null,null),T(1,"div","about",[A("InfernoJS 1k Components Demo based on the Glimmer demo by "),T(1,"a",null,"Michael Lange",16,{href:"http://mlange.io",target:"_blank"},null,null),A(".")],4,null,null,null)],4,null,null,null)},t}(Ee),tn={PHYLLOTAXIS:0,GRID:1,WAVE:2,SPIRAL:3},an=[tn.PHYLLOTAXIS,tn.SPIRAL,tn.PHYLLOTAXIS,tn.GRID,tn.WAVE],fn=function(t){function a(e,n){var a;return(a=t.call(this,e,n)||this).layout=0,a.phyllotaxis=bn(100),a.grid=vn(100),a.wave=mn(100),a.spiral=gn(100),a.points=[],a.step=0,a.numSteps=120,a}n(a,t);var f=a.prototype;return f.next=function(){var n=this;this.step=(this.step+1)%this.numSteps,0===this.step&&(this.layout=(this.layout+1)%an.length);var t=Math.min(1,this.step/(.8*this.numSteps)),a=an[this.layout],f=an[(this.layout+1)%an.length],r=sn(a),c=sn(f),i=hn(a),o=hn(f);this.points=this.points.map((function(n){var a=e({},n);return a.x=pn(a,t,r,c),a.y=pn(a,t,i,o),a})),this.setState(),requestAnimationFrame((function(){n.next()}))},f.setAnchors=function(e){var n=this;e.map((function(e,t){var a=yn(n.grid(t)),f=a[0],r=a[1],c=yn(n.wave(t)),i=c[0],o=c[1],l=yn(n.spiral(t)),d=l[0],u=l[1],s=yn(n.phyllotaxis(t)),h=s[0],p=s[1];Object.assign(e,{gx:f,gy:r,wx:i,wy:o,sx:d,sy:u,px:h,py:p})})),this.points=e},f.makePoints=function(e){for(var n=[],t=0;t0&&v(r),$.v=!1,c(t)&&t(),c(w.renderComplete)&&w.renderComplete(i,n)}(cn,on,ln,dn)}(); +!function(){"use strict";function e(){return(e=Object.assign||function(e){for(var n=1;n0,p=o(s),b=i(s)&&"$"===s[0];h||p||b?(f=f||n.slice(0,d),(h||b)&&(u=L(u)),(p||b)&&(u.key="$"+d),f.push(u)):f&&f.push(u),u.flags|=65536}}c=0===(f=f||n).length?1:8}else(f=n).flags|=65536,81920&n.flags&&(f=L(n)),c=2;e.children=f,e.childFlags=c}(p,p.children),p}function N(e,n,t,a,r){var c=new F(1,null,null,e=function(e,n){if(12&e)return e;if(n.prototype&&n.prototype.render)return 4;if(n.render)return 32776;return 8}(e,n),a,function(e,n,t){var a=(32768&e?n.render:n).defaultProps;if(f(a))return t;if(f(t))return l(a,null);return P(t,a)}(e,n,t),function(e,n,t){if(4&e)return t;var a=(32768&e?n.render:n).defaultHooks;if(f(a))return t;if(f(t))return a;return P(t,a)}(e,n,r),n);return w.createVNode&&w.createVNode(c),c}function V(e,n){return new F(1,f(e)||!0===e||!1===e?"":e,null,16,n,null,null,null)}function U(e,n,t){var a=T(8192,8192,null,e,n,null,t,null);switch(a.childFlags){case 1:a.children=_(),a.childFlags=2;break;case 16:a.children=[V(e)],a.childFlags=4}return a}function L(e){var n=-16385&e.flags,t=e.props;if(14&n&&!o(t)){var a=t;for(var f in t={},a)t[f]=a[f]}if(0===(8192&n))return new F(e.childFlags,e.children,e.className,n,e.key,t,e.ref,e.type);return function(e){var n,t=e.children,a=e.childFlags;if(2===a)n=L(t);else if(12&a){n=[];for(var f=0,r=t.length;f-1&&n.options[i]&&(o=n.options[i].value),a&&f(o)&&(o=e.defaultValue),function e(n,a){if("option"===n.type)!function(e,n){var a=e.props||u,r=e.dom;r.value=a.value,a.value===n||t(n)&&-1!==n.indexOf(a.value)?r.selected=!0:f(n)&&f(a.selected)||(r.selected=a.selected||!1)}(n,a);else{var r=n.children,c=n.flags;if(4&c)e(r.$LI,a);else if(8&c)e(r,a);else if(2===n.childFlags)e(r,a);else if(12&n.childFlags)for(var i=0,o=r.length;i0);if(f(d)||""===d||(a?h.setAttribute("class",d):h.className=d),16===s)C(h,u);else if(1!==s){var b=a&&"foreignObject"!==e.type;2===s?(16384&u.flags&&(e.children=u=L(u)),we(u,h,t,b,null,c)):8!==s&&4!==s||Me(u,h,t,b,null,c)}o(n)||p(n,h,r),o(l)||function(e,n,t,a,f){var r=!1,c=(448&n)>0;for(var i in c&&(r=he(t))&&function(e,n,t){64&e?function(e,n){ee(n.type)?(Z(e,"change",te),Z(e,"click",ae)):Z(e,"input",ne)}(n,t):256&e?function(e){Z(e,"change",re)}(n):128&e&&function(e,n){Z(e,"input",le),n.onChange&&Z(e,"change",de)}(n,t)}(n,a,t),t)$e(i,null,t[i],a,f,r,null);c&&se(n,e,a,t,!0,r)}(e,i,l,h,a),be(e.ref,h,c)}(e,n,t,a,r,i):4&l?function(e,n,t,a,f,r){var i=function(e,n,t,a,f,r){var i=new n(t,a),l=i.$N=Boolean(n.getDerivedStateFromProps||i.getSnapshotBeforeUpdate);if(i.$SVG=f,i.$L=r,e.children=i,i.$BS=!1,i.context=a,i.props===u&&(i.props=t),l)i.state=$(i,t,i.state);else if(c(i.componentWillMount)){i.$BR=!0,i.componentWillMount();var d=i.$PS;if(!o(d)){var s=i.state;if(o(s))i.state=d;else for(var h in d)s[h]=d[h];i.$PS=null}i.$BR=!1}return i.$LI=ke(i,t,a),i}(e,e.type,e.props||u,t,a,r);we(i.$LI,n,i.$CX,a,f,r),function(e,n,t){be(e,n,t),c(n.componentDidMount)&&t.push(function(e){return function(){e.componentDidMount()}}(n))}(e.ref,i,r)}(e,n,t,a,r,i):8&l?(function(e,n,t,a,f,r){we(e.children=H(function(e,n){return 32768&e.flags?e.type.render(e.props||u,e.ref,n):e.type(e.props||u,n)}(e,t)),n,t,a,f,r)}(e,n,t,a,r,i),function(e,n){var t=e.ref;f(t)||(S(t.onComponentWillMount,e.props||u),c(t.onComponentDidMount)&&n.push(function(e,n){return function(){e.onComponentDidMount(g(n,!0),n.props||u)}}(t,e)))}(e,i)):512&l||16&l?Ce(e,n,r):8192&l?function(e,n,t,a,f,r){var c=e.children,i=e.childFlags;12&i&&0===c.length&&(i=e.childFlags=2,c=e.children=_()),2===i?we(c,t,f,a,f,r):Me(c,t,n,a,f,r)}(e,t,n,a,r,i):1024&l&&function(e,n,t,a,f){we(e.children,e.ref,n,!1,null,f);var r=_();Ce(r,t,a),e.dom=r.dom}(e,t,n,r,i)}function Ce(e,n,t){var a=e.dom=document.createTextNode(e.children);o(n)||p(n,a,t)}function Me(e,n,t,a,f,r){for(var c=0;c0,l!==d){var p=l||u;if((i=d||u)!==u)for(var b in(s=(448&r)>0)&&(h=he(i)),i){var v=p[b],m=i[b];v!==m&&$e(b,v,m,o,a,h,e)}if(p!==u)for(var g in p)f(i[g])&&!f(p[g])&&$e(g,p[g],null,o,a,h,e)}var y=n.children,x=n.className;e.className!==x&&(f(x)?o.removeAttribute("class"):a?o.setAttribute("class",x):o.className=x),4096&r?function(e,n){e.textContent!==n&&(e.textContent=n)}(o,y):Se(e.childFlags,n.childFlags,e.children,y,o,t,a&&"foreignObject"!==n.type,null,e,c),s&&se(r,n,o,i,!1,h);var $=n.ref,k=e.ref;k!==$&&(pe(k),be($,o,c))}(e,n,a,i,p,s):4&p?function(e,n,t,a,f,r,i){var d=n.children=e.children;if(o(d))return;d.$L=i;var s=n.props||u,h=n.ref,p=e.ref,b=d.state;if(!d.$N){if(c(d.componentWillReceiveProps)){if(d.$BR=!0,d.componentWillReceiveProps(s,a),d.$UN)return;d.$BR=!1}o(d.$PS)||(b=l(b,d.$PS),d.$PS=null)}Fe(d,b,s,t,a,f,!1,r,i),p!==h&&(pe(p),be(h,d,i))}(e,n,t,a,i,d,s):8&p?function(e,n,t,a,r,i,o){var l=!0,d=n.props||u,s=n.ref,h=e.props,p=!f(s),b=e.children;if(p&&c(s.onComponentShouldUpdate)&&(l=s.onComponentShouldUpdate(h,d)),!1!==l){p&&c(s.onComponentWillUpdate)&&s.onComponentWillUpdate(h,d);var v=n.type,m=H(32768&n.flags?v.render(d,s,a):v(d,a));Pe(b,m,t,a,r,i,o),n.children=m,p&&c(s.onComponentDidUpdate)&&s.onComponentDidUpdate(h,d)}else n.children=b}(e,n,t,a,i,d,s):16&p?function(e,n){var t=n.children,a=n.dom=e.dom;t!==e.children&&(a.nodeValue=t)}(e,n):512&p?n.dom=e.dom:8192&p?function(e,n,t,a,f,r){var c=e.children,i=n.children,o=e.childFlags,l=n.childFlags,d=null;12&l&&0===i.length&&(l=n.childFlags=2,i=n.children=_());var u=0!==(2&l);if(12&o){var s=c.length;(8&o&&8&l||u||!u&&i.length>s)&&(d=g(c[s-1],!1).nextSibling)}Se(o,l,c,i,t,a,f,d,e,r)}(e,n,t,a,i,s):function(e,n,t,a){var f=e.ref,c=n.ref,i=n.children;if(Se(e.childFlags,n.childFlags,e.children,i,f,t,!1,null,e,a),n.dom=e.dom,f!==c&&!r(i)){var o=i.dom;b(f,o),h(c,o)}}(e,n,a,s)}function Se(e,n,t,a,f,r,c,i,o,l){switch(e){case 2:switch(n){case 2:Pe(t,a,f,r,c,i,l);break;case 1:ve(t,f);break;case 16:me(t),C(f,a);break;default:!function(e,n,t,a,f,r){me(e),Me(n,t,a,f,g(e,!0),r),y(e,t)}(t,a,f,r,c,l)}break;case 1:switch(n){case 2:we(a,f,r,c,i,l);break;case 1:break;case 16:C(f,a);break;default:Me(a,f,r,c,i,l)}break;case 16:switch(n){case 16:!function(e,n,t){e!==n&&(""!==e?t.firstChild.nodeValue=n:C(t,n))}(t,a,f);break;case 2:ye(f),we(a,f,r,c,i,l);break;case 1:ye(f);break;default:ye(f),Me(a,f,r,c,i,l)}break;default:switch(n){case 16:ge(t),C(f,a);break;case 2:xe(f,o,t),we(a,f,r,c,i,l);break;case 1:xe(f,o,t);break;default:var d=0|t.length,u=0|a.length;0===d?u>0&&Me(a,f,r,c,i,l):0===u?xe(f,o,t):8===n&&8===e?function(e,n,t,a,f,r,c,i,o,l){var d,u,s=r-1,h=c-1,p=0,b=e[p],v=n[p];e:{for(;b.key===v.key;){if(16384&v.flags&&(n[p]=v=L(v)),Pe(b,v,t,a,f,i,l),e[p]=v,++p>s||p>h)break e;b=e[p],v=n[p]}for(b=e[s],v=n[h];b.key===v.key;){if(16384&v.flags&&(n[h]=v=L(v)),Pe(b,v,t,a,f,i,l),e[s]=v,h--,p>--s||p>h)break e;b=e[s],v=n[h]}}if(p>s){if(p<=h)for(u=(d=h+1)h)for(;p<=s;)ve(e[p++],t);else!function(e,n,t,a,f,r,c,i,o,l,d,u,s){var h,p,b,v=0,m=i,y=i,$=r-i+1,k=c-i+1,w=new Int32Array(k+1),C=$===a,M=!1,P=0,S=0;if(f<4||($|k)<32)for(v=m;v<=r;++v)if(h=e[v],Si?M=!0:P=i,16384&p.flags&&(n[i]=p=L(p)),Pe(h,p,o,t,l,d,s),++S;break}!C&&i>c&&ve(h,o)}else C||ve(h,o);else{var F={};for(v=y;v<=c;++v)F[n[v].key]=v;for(v=m;v<=r;++v)if(h=e[v],Sm;)ve(e[m++],o);w[i-y]=v+1,P>i?M=!0:P=i,16384&(p=n[i]).flags&&(n[i]=p=L(p)),Pe(h,p,o,t,l,d,s),++S}else C||ve(h,o);else C||ve(h,o)}if(C)xe(o,u,e),Me(n,o,t,l,d,s);else if(M){var T=function(e){var n=0,t=0,a=0,f=0,r=0,c=0,i=0,o=e.length;for(o>Te&&(Te=o,ie=new Int32Array(o),oe=new Int32Array(o));t>1]]0&&(oe[t]=ie[r-1]),ie[r]=t)}r=f+1;var l=new Int32Array(r);for(c=ie[r-1];r-- >0;)l[r]=c,c=oe[c],ie[r]=0;return l}(w);for(i=T.length-1,v=k-1;v>=0;v--)0===w[v]?(16384&(p=n[P=v+y]).flags&&(n[P]=p=L(p)),we(p,o,t,l,(b=P+1)=0;v--)0===w[v]&&(16384&(p=n[P=v+y]).flags&&(n[P]=p=L(p)),we(p,o,t,l,(b=P+1)c?c:r,s=0;sc)for(s=u;s0&&v(f),k.v=!1}else e.state=e.$PS,e.$PS=null;c(t)&&t.call(e)}var Ee=function(e,n){this.state=null,this.$BR=!1,this.$BS=!0,this.$PS=null,this.$LI=null,this.$UN=!1,this.$CX=null,this.$QU=null,this.$N=!1,this.$L=null,this.$SVG=!1,this.props=e||u,this.context=n||u};Ee.prototype.forceUpdate=function(e){if(this.$UN)return;Le(this,{},e,!0)},Ee.prototype.setState=function(e,n){if(this.$UN)return;this.$BS||Le(this,e,n,!1)},Ee.prototype.render=function(e,n,t){return null};var Ae,Be,De=function(e,n,t,a){this.min=e,this.max=n,this.mean=t,this.last=a},Oe=function(){function e(e){this.samples=[],this.maxSamples=e,this._i=-1}return e.prototype.addSample=function(e){this._i=(this._i+1)%this.maxSamples,this.samples[this._i]=e},e.prototype.each=function(e){for(var n=this.samples,t=0;tt&&(t=r),a+=r}var c=e[this._i],i=a/e.length;return new De(n,t,i,c)},e}(),Re=[],We=-1,je=(Ae=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])},function(e,n){function t(){this.constructor=e}Ae(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}),qe=function(){function e(e){var n=this;this._sync=function(){n.sync(),n._dirty=!1},this.name=e,this.element=document.createElement("div"),this.element.style.cssText="padding: 2px;background-color: #020;font-family: monospace;font-size: 12px;color: #0f0",this._dirty=!1,this.invalidate()}return e.prototype.invalidate=function(){var e;this._dirty||(this._dirty=!0,e=this._sync,Re.push(e),-1===We&&requestAnimationFrame((function(e){We=-1;var n=Re;Re=[];for(var t=0;t0&&(f+=2/121*(1e3/(r-a)-f)),a=r,n.addSample(f),t.invalidate(),requestAnimationFrame(e)}))}(),function(e){if(void 0===e&&(e=Be.HideMin|Be.HideMean),Xe(),void 0===performance.memory)return;var n=new Oe(100),t=new Ge("Memory",e,"MB",n);Qe.appendChild(t.element),function e(){n.addSample(Math.round(performance.memory.usedJSHeapSize/1048576)),t.invalidate(),setTimeout(e,30)}()}();var Ye=function(e){function t(n,t){var a;return(a=e.call(this,n,t)||this).state={numPoints:0},a.updateCount=a.updateCount.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(a)),a}n(t,e);var a=t.prototype;return a.updateCount=function(e){this.setState({numPoints:e.target.value})},a.componentDidMount=function(){this.setState({numPoints:1e3})},a.render=function(e,n){return T(1,"div","app-wrapper",[N(2,en,{count:n.numPoints},null,null),T(1,"div","controls",[V("# Points"),T(64,"input",null,null,1,{type:"range",min:10,max:1e4,value:n.numPoints,onInput:this.updateCount},null,null),n.numPoints],0,null,null,null),T(1,"div","about",[V("InfernoJS 1k Components Demo based on the Glimmer demo by "),T(1,"a",null,"Michael Lange",16,{href:"http://mlange.io",target:"_blank"},null,null),V(".")],4,null,null,null)],4,null,null,null)},t}(Ee),Ze=[0,3,0,1,2],en=function(t){function a(e,n){var a;return(a=t.call(this,e,n)||this).layout=0,a.phyllotaxis=un(100),a.grid=sn(100),a.wave=hn(100),a.spiral=pn(100),a.points=[],a.step=0,a.numSteps=120,a}n(a,t);var f=a.prototype;return f.next=function(){var n=this;this.step=(this.step+1)%this.numSteps,0===this.step&&(this.layout=(this.layout+1)%Ze.length);var t=Math.min(1,this.step/(.8*this.numSteps)),a=Ze[this.layout],f=Ze[(this.layout+1)%Ze.length],r=on(a),c=on(f),i=ln(a),o=ln(f);this.points=this.points.map((function(n){var a=e({},n);return a.x=dn(a,t,r,c),a.y=dn(a,t,i,o),a})),this.setState(),requestAnimationFrame((function(){n.next()}))},f.setAnchors=function(e){var n=this;e.map((function(e,t){var a=bn(n.grid(t)),f=a[0],r=a[1],c=bn(n.wave(t)),i=c[0],o=c[1],l=bn(n.spiral(t)),d=l[0],u=l[1],s=bn(n.phyllotaxis(t)),h=s[0],p=s[1];Object.assign(e,{gx:f,gy:r,wx:i,wy:o,sx:d,sy:u,px:h,py:p})})),this.points=e},f.makePoints=function(e){for(var n=[],t=0;t0&&v(r),k.v=!1,c(t)&&t(),c(w.renderComplete)&&w.renderComplete(i,n)}(tn,an,fn,rn)}(); diff --git a/docs/dbmonster/dist/bundle.js b/docs/dbmonster/dist/bundle.js index 54638729b..b0e3d9229 100644 --- a/docs/dbmonster/dist/bundle.js +++ b/docs/dbmonster/dist/bundle.js @@ -1 +1 @@ -!function(){"use strict";var e,n,t=function(e,n,t,r){this.min=e,this.max=n,this.mean=t,this.last=r},r=function(){function e(e){this.samples=[],this.maxSamples=e,this._i=-1}return e.prototype.addSample=function(e){this._i=(this._i+1)%this.maxSamples,this.samples[this._i]=e},e.prototype.each=function(e){for(var n=this.samples,t=0;tr&&(r=a),i+=a}var o=e[this._i],u=i/e.length;return new t(n,r,u,o)},e}(),i=[],l=-1,a=(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])},function(n,t){function r(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=30,u=100,c=function(){function e(e){var n=this;this._sync=function(){n.sync(),n._dirty=!1},this.name=e,this.element=document.createElement("div"),this.element.style.cssText="padding: 2px;background-color: #020;font-family: monospace;font-size: 12px;color: #0f0",this._dirty=!1,this.invalidate()}return e.prototype.invalidate=function(){var e;this._dirty||(this._dirty=!0,e=this._sync,i.push(e),-1===l&&requestAnimationFrame((function(e){l=-1;var n=i;i=[];for(var t=0;t0,c=k(o),s=b(o)&&o[0]===A;u||c||s?(t=t||n.slice(0,l),(u||s)&&(a=R(a)),(c||s)&&(a.key=A+l),t.push(a)):t&&t.push(a),a.flags|=65536}}r=0===(t=t||n).length?1:8}else(t=n).flags|=65536,81920&n.flags&&(t=R(n)),r=2;e.children=t,e.childFlags=r}(c,c.children),c}function W(e,n){return new B(1,g(e)||!0===e||!1===e?"":e,null,16,n,null,null,null)}function O(e,n,t){var r=D(8192,8192,null,e,n,null,t,null);switch(r.childFlags){case 1:r.children=j(),r.childFlags=2;break;case 16:r.children=[W(e)],r.childFlags=4}return r}function R(e){var n=-16385&e.flags,t=e.props;if(14&n&&!k(t)){var r=t;for(var i in t={},r)t[i]=r[i]}if(0===(8192&n))return new B(e.childFlags,e.children,e.className,n,e.key,t,e.ref,e.type);return function(e){var n,t=e.children,r=e.childFlags;if(2===r)n=R(t);else if(12&r){n=[];for(var i=0,l=t.length;i-1&&n.options[l]&&(a=n.options[l].value),t&&g(a)&&(a=e.defaultValue),function e(n,t){if("option"===n.type)!function(e,n){var t=e.props||$,r=e.dom;r.value=t.value,t.value===n||v(n)&&-1!==n.indexOf(t.value)?r.selected=!0:g(n)&&g(t.selected)||(r.selected=t.selected||!1)}(n,t);else{var r=n.children,i=n.flags;if(4&i)e(r.$LI,t);else if(8&i)e(r,t);else if(2===n.childFlags)e(r,t);else if(12&n.childFlags)for(var l=0,a=r.length;l0);if(g(u)||""===u||(r?f.setAttribute("class",u):f.className=u),16===s)_(f,c);else if(1!==s){var d=r&&"foreignObject"!==e.type;2===s?(16384&c.flags&&(e.children=c=R(c)),He(c,f,t,d,null,l)):8!==s&&4!==s||_e(c,f,t,d,null,l)}k(n)||M(n,f,i),k(o)||function(e,n,t,r,i){var l=!1,a=(448&n)>0;for(var o in a&&(l=we(t))&&function(e,n,t){64&e?function(e,n){se(n.type)?(ce(e,"change",de),ce(e,"click",pe)):ce(e,"input",fe)}(n,t):256&e?function(e){ce(e,"change",ve)}(n):128&e&&function(e,n){ce(e,"input",xe),n.onChange&&ce(e,"change",be)}(n,t)}(n,r,t),t)Ne(o,null,t[o],r,i,l,null);a&&Ce(n,e,r,t,!0,l)}(e,a,o,f,r),Fe(e.ref,f,l)}(e,n,t,r,i,l):4&a?function(e,n,t,r,i,l){var a=function(e,n,t,r,i,l){var a=new n(t,r),o=a.$N=Boolean(n.getDerivedStateFromProps||a.getSnapshotBeforeUpdate);if(a.$SVG=i,a.$L=l,e.children=a,a.$BS=!1,a.context=r,a.props===$&&(a.props=t),o)a.state=H(a,t,a.state);else if(x(a.componentWillMount)){a.$BR=!0,a.componentWillMount();var u=a.$PS;if(!k(u)){var c=a.state;if(k(c))a.state=u;else for(var s in u)c[s]=u[s];a.$PS=null}a.$BR=!1}return a.$LI=Ee(a,t,r),a}(e,e.type,e.props||$,t,r,l);He(a.$LI,n,a.$CX,r,i,l),function(e,n,t){Fe(e,n,t),x(n.componentDidMount)&&t.push(function(e){return function(){e.componentDidMount()}}(n))}(e.ref,a,l)}(e,n,t,r,i,l):8&a?(function(e,n,t,r,i,l){He(e.children=G(function(e,n){return 32768&e.flags?e.type.render(e.props||$,e.ref,n):e.type(e.props||$,n)}(e,t)),n,t,r,i,l)}(e,n,t,r,i,l),function(e,n){var t=e.ref;g(t)||(U(t.onComponentWillMount,e.props||$),x(t.onComponentDidMount)&&n.push(function(e,n){return function(){e.onComponentDidMount(V(n,!0),n.props||$)}}(t,e)))}(e,l)):512&a||16&a?Le(e,n,i):8192&a?function(e,n,t,r,i,l){var a=e.children,o=e.childFlags;12&o&&0===a.length&&(o=e.childFlags=2,a=e.children=j()),2===o?He(a,t,i,r,i,l):_e(a,t,n,r,i,l)}(e,t,n,r,i,l):1024&a&&function(e,n,t,r,i){He(e.children,e.ref,n,!1,null,i);var l=j();Le(l,t,r),e.dom=l.dom}(e,t,n,i,l)}function Le(e,n,t){var r=e.dom=document.createTextNode(e.children);k(n)||M(n,r,t)}function _e(e,n,t,r,i,l){for(var a=0;a0,u!==c){var d=u||$;if((a=c||$)!==$)for(var p in(s=(448&i)>0)&&(f=we(a)),a){var h=d[p],v=a[p];h!==v&&Ne(p,h,v,o,r,f,e)}if(d!==$)for(var m in d)g(a[m])&&!g(d[m])&&Ne(m,d[m],null,o,r,f,e)}var y=n.children,x=n.className;e.className!==x&&(g(x)?o.removeAttribute("class"):r?o.setAttribute("class",x):o.className=x),4096&i?function(e,n){e.textContent!==n&&(e.textContent=n)}(o,y):Ue(e.childFlags,n.childFlags,e.children,y,o,t,r&&"foreignObject"!==n.type,null,e,l),s&&Ce(i,n,o,a,!1,f);var b=n.ref,k=e.ref;k!==b&&($e(k),Fe(b,o,l))}(e,n,r,i,o,a):4&o?function(e,n,t,r,i,l,a){var o=n.children=e.children;if(k(o))return;o.$L=a;var u=n.props||$,c=n.ref,s=e.ref,f=o.state;if(!o.$N){if(x(o.componentWillReceiveProps)){if(o.$BR=!0,o.componentWillReceiveProps(u,r),o.$UN)return;o.$BR=!1}k(o.$PS)||(f=C(f,o.$PS),o.$PS=null)}(function(e,n,t,r,i,l,a,o,u){var c=e.state,s=e.props,f=Boolean(e.$N),d=x(e.shouldComponentUpdate);if(f&&(n=H(e,t,n!==c?C(c,n):n)),!d||d&&e.shouldComponentUpdate(t,n,i)){!f&&x(e.componentWillUpdate)&&e.componentWillUpdate(t,n,i),e.props=t,e.state=n,e.context=i;var p=null,h=Ee(e,t,i);f&&x(e.getSnapshotBeforeUpdate)&&(p=e.getSnapshotBeforeUpdate(s,c)),Ie(e.$LI,h,r,e.$CX,l,o,u),e.$LI=h,x(e.componentDidUpdate)&&function(e,n,t,r,i){i.push((function(){e.componentDidUpdate(n,t,r)}))}(e,s,c,p,u)}else e.props=t,e.state=n,e.context=i})(o,f,u,t,r,i,0,l,a),s!==c&&($e(s),Fe(c,o,a))}(e,n,t,r,i,l,a):8&o?function(e,n,t,r,i,l,a){var o=!0,u=n.props||$,c=n.ref,s=e.props,f=!g(c),d=e.children;if(f&&x(c.onComponentShouldUpdate)&&(o=c.onComponentShouldUpdate(s,u)),!1!==o){f&&x(c.onComponentWillUpdate)&&c.onComponentWillUpdate(s,u);var p=n.type,h=G(32768&n.flags?p.render(u,c,r):p(u,r));Ie(d,h,t,r,i,l,a),n.children=h,f&&x(c.onComponentDidUpdate)&&c.onComponentDidUpdate(s,u)}else n.children=d}(e,n,t,r,i,l,a):16&o?function(e,n){var t=n.children,r=n.dom=e.dom;t!==e.children&&(r.nodeValue=t)}(e,n):512&o?n.dom=e.dom:8192&o?function(e,n,t,r,i,l){var a=e.children,o=n.children,u=e.childFlags,c=n.childFlags,s=null;12&c&&0===o.length&&(c=n.childFlags=2,o=n.children=j());var f=0!==(2&c);if(12&u){var d=a.length;(8&u&&8&c||f||!f&&o.length>d)&&(s=V(a[d-1],!1).nextSibling)}Ue(u,c,a,o,t,r,i,s,e,l)}(e,n,t,r,i,a):function(e,n,t,r){var i=e.ref,l=n.ref,a=n.children;if(Ue(e.childFlags,n.childFlags,e.children,a,i,t,!1,null,e,r),n.dom=e.dom,i!==l&&!y(a)){var o=a.dom;S(i,o),T(l,o)}}(e,n,r,a)}function Ue(e,n,t,r,i,l,a,o,u,c){switch(e){case 2:switch(n){case 2:Ie(t,r,i,l,a,o,c);break;case 1:Te(t,i);break;case 16:Me(t),_(i,r);break;default:!function(e,n,t,r,i,l){Me(e),_e(n,t,r,i,V(e,!0),l),N(e,t)}(t,r,i,l,a,c)}break;case 1:switch(n){case 2:He(r,i,l,a,o,c);break;case 1:break;case 16:_(i,r);break;default:_e(r,i,l,a,o,c)}break;case 16:switch(n){case 16:!function(e,n,t){e!==n&&(""!==e?t.firstChild.nodeValue=n:_(t,n))}(t,r,i);break;case 2:Pe(i),He(r,i,l,a,o,c);break;case 1:Pe(i);break;default:Pe(i),_e(r,i,l,a,o,c)}break;default:switch(n){case 16:Se(t),_(i,r);break;case 2:Ve(i,u,t),He(r,i,l,a,o,c);break;case 1:Ve(i,u,t);break;default:var s=0|t.length,f=0|r.length;0===s?f>0&&_e(r,i,l,a,o,c):0===f?Ve(i,u,t):8===n&&8===e?function(e,n,t,r,i,l,a,o,u,c){var s,f,d=l-1,p=a-1,h=0,v=e[h],m=n[h];e:{for(;v.key===m.key;){if(16384&m.flags&&(n[h]=m=R(m)),Ie(v,m,t,r,i,o,c),e[h]=m,++h>d||h>p)break e;v=e[h],m=n[h]}for(v=e[d],m=n[p];v.key===m.key;){if(16384&m.flags&&(n[p]=m=R(m)),Ie(v,m,t,r,i,o,c),e[d]=m,p--,h>--d||h>p)break e;v=e[d],m=n[p]}}if(h>d){if(h<=p)for(f=(s=p+1)p)for(;h<=d;)Te(e[h++],t);else!function(e,n,t,r,i,l,a,o,u,c,s,f,d){var p,h,v,m=0,g=o,y=o,x=l-o+1,b=a-o+1,k=new Int32Array(b+1),C=x===r,w=!1,$=0,F=0;if(i<4||(x|b)<32)for(m=g;m<=l;++m)if(p=e[m],Fo?w=!0:$=o,16384&h.flags&&(n[o]=h=R(h)),Ie(p,h,u,t,c,s,d),++F;break}!C&&o>a&&Te(p,u)}else C||Te(p,u);else{var T={};for(m=y;m<=a;++m)T[n[m].key]=m;for(m=g;m<=l;++m)if(p=e[m],Fg;)Te(e[g++],u);k[o-y]=m+1,$>o?w=!0:$=o,16384&(h=n[o]).flags&&(n[o]=h=R(h)),Ie(p,h,u,t,c,s,d),++F}else C||Te(p,u);else C||Te(p,u)}if(C)Ve(u,f,e),_e(n,u,t,c,s,d);else if(w){var M=function(e){var n=0,t=0,r=0,i=0,l=0,a=0,o=0,u=e.length;for(u>Ae&&(Ae=u,ge=new Int32Array(u),ye=new Int32Array(u));t>1]]0&&(ye[t]=ge[l-1]),ge[l]=t)}l=i+1;var c=new Int32Array(l);for(a=ge[l-1];l-- >0;)c[l]=a,a=ye[a],ge[l]=0;return c}(k);for(o=M.length-1,m=b-1;m>=0;m--)0===k[m]?(16384&(h=n[$=m+y]).flags&&(n[$]=h=R(h)),He(h,u,t,c,(v=$+1)=0;m--)0===k[m]&&(16384&(h=n[$=m+y]).flags&&(n[$]=h=R(h)),He(h,u,t,c,(v=$+1)a?a:l,d=0;da)for(d=f;d0&&(a+=2/121*(1e3/(n-l)-a)),l=n,t.addSample(a),i.invalidate(),requestAnimationFrame(e)}))}(),function(e){if(void 0===e&&(e=n.HideMin|n.HideMean),d(),void 0===performance.memory)return;var t=new r(100),i=new s("Memory",e,"MB",t);f.appendChild(i.element),function e(){t.addSample(Math.round(performance.memory.usedJSHeapSize/1048576)),i.invalidate(),setTimeout(e,30)}()}(),function(e,n){void 0===n&&(n=0),d();var t=h[e];void 0===t&&(h[e]=t=new p(e,"ms",n),f.appendChild(t.widget.element))}("view update"),setInterval((function(){var e,n=ENV.generateData(!1).toArray();void 0!==(e=h["view update"])&&(e.startTime=performance.now()),function(e){for(var n=e.length,t=[],r=0;r0&&function(e){for(var n;void 0!==(n=e.shift());)n()}(i),x(t)&&t(),x(L.renderComplete)&&L.renderComplete(l,n)}(c,Be,s,f)}(n),function(e){var n=performance.now(),t=h["view update"];void 0!==t&&-1!==t.startTime&&(t.data.addSample(n-t.startTime),t.widget.invalidate())}()}),0)}(); +!function(){"use strict";var e,n,t=function(e,n,t,r){this.min=e,this.max=n,this.mean=t,this.last=r},r=function(){function e(e){this.samples=[],this.maxSamples=e,this._i=-1}return e.prototype.addSample=function(e){this._i=(this._i+1)%this.maxSamples,this.samples[this._i]=e},e.prototype.each=function(e){for(var n=this.samples,t=0;tr&&(r=a),i+=a}var o=e[this._i],u=i/e.length;return new t(n,r,u,o)},e}(),i=[],l=-1,a=(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])},function(n,t){function r(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=function(){function e(e){var n=this;this._sync=function(){n.sync(),n._dirty=!1},this.name=e,this.element=document.createElement("div"),this.element.style.cssText="padding: 2px;background-color: #020;font-family: monospace;font-size: 12px;color: #0f0",this._dirty=!1,this.invalidate()}return e.prototype.invalidate=function(){var e;this._dirty||(this._dirty=!0,e=this._sync,i.push(e),-1===l&&requestAnimationFrame((function(e){l=-1;var n=i;i=[];for(var t=0;t0,c=x(o),s=y(o)&&"$"===o[0];u||c||s?(t=t||n.slice(0,l),(u||s)&&(a=D(a)),(c||s)&&(a.key="$"+l),t.push(a)):t&&t.push(a),a.flags|=65536}}r=0===(t=t||n).length?1:8}else(t=n).flags|=65536,81920&n.flags&&(t=D(n)),r=2;e.children=t,e.childFlags=r}(c,c.children),c}function A(e,n){return new I(1,v(e)||!0===e||!1===e?"":e,null,16,n,null,null,null)}function B(e,n,t){var r=U(8192,8192,null,e,n,null,t,null);switch(r.childFlags){case 1:r.children=W(),r.childFlags=2;break;case 16:r.children=[A(e)],r.childFlags=4}return r}function D(e){var n=-16385&e.flags,t=e.props;if(14&n&&!x(t)){var r=t;for(var i in t={},r)t[i]=r[i]}if(0===(8192&n))return new I(e.childFlags,e.children,e.className,n,e.key,t,e.ref,e.type);return function(e){var n,t=e.children,r=e.childFlags;if(2===r)n=D(t);else if(12&r){n=[];for(var i=0,l=t.length;i-1&&n.options[l]&&(a=n.options[l].value),t&&v(a)&&(a=e.defaultValue),function e(n,t){if("option"===n.type)!function(e,n){var t=e.props||C,r=e.dom;r.value=t.value,t.value===n||p(n)&&-1!==n.indexOf(t.value)?r.selected=!0:v(n)&&v(t.selected)||(r.selected=t.selected||!1)}(n,t);else{var r=n.children,i=n.flags;if(4&i)e(r.$LI,t);else if(8&i)e(r,t);else if(2===n.childFlags)e(r,t);else if(12&n.childFlags)for(var l=0,a=r.length;l0);if(v(u)||""===u||(r?f.setAttribute("class",u):f.className=u),16===s)H(f,c);else if(1!==s){var d=r&&"foreignObject"!==e.type;2===s?(16384&c.flags&&(e.children=c=D(c)),Ve(c,f,t,d,null,l)):8!==s&&4!==s||Ee(c,f,t,d,null,l)}x(n)||F(n,f,i),x(o)||function(e,n,t,r,i){var l=!1,a=(448&n)>0;for(var o in a&&(l=be(t))&&function(e,n,t){64&e?function(e,n){oe(n.type)?(ae(e,"change",ce),ae(e,"click",se)):ae(e,"input",ue)}(n,t):256&e?function(e){ae(e,"change",de)}(n):128&e&&function(e,n){ae(e,"input",me),n.onChange&&ae(e,"change",ge)}(n,t)}(n,r,t),t)Se(o,null,t[o],r,i,l,null);a&&xe(n,e,r,t,!0,l)}(e,a,o,f,r),Ce(e.ref,f,l)}(e,n,t,r,i,l):4&a?function(e,n,t,r,i,l){var a=function(e,n,t,r,i,l){var a=new n(t,r),o=a.$N=Boolean(n.getDerivedStateFromProps||a.getSnapshotBeforeUpdate);if(a.$SVG=i,a.$L=l,e.children=a,a.$BS=!1,a.context=r,a.props===C&&(a.props=t),o)a.state=N(a,t,a.state);else if(g(a.componentWillMount)){a.$BR=!0,a.componentWillMount();var u=a.$PS;if(!x(u)){var c=a.state;if(x(c))a.state=u;else for(var s in u)c[s]=u[s];a.$PS=null}a.$BR=!1}return a.$LI=Pe(a,t,r),a}(e,e.type,e.props||C,t,r,l);Ve(a.$LI,n,a.$CX,r,i,l),function(e,n,t){Ce(e,n,t),g(n.componentDidMount)&&t.push(function(e){return function(){e.componentDidMount()}}(n))}(e.ref,a,l)}(e,n,t,r,i,l):8&a?(function(e,n,t,r,i,l){Ve(e.children=R(function(e,n){return 32768&e.flags?e.type.render(e.props||C,e.ref,n):e.type(e.props||C,n)}(e,t)),n,t,r,i,l)}(e,n,t,r,i,l),function(e,n){var t=e.ref;v(t)||(_(t.onComponentWillMount,e.props||C),g(t.onComponentDidMount)&&n.push(function(e,n){return function(){e.onComponentDidMount(S(n,!0),n.props||C)}}(t,e)))}(e,l)):512&a||16&a?Ne(e,n,i):8192&a?function(e,n,t,r,i,l){var a=e.children,o=e.childFlags;12&o&&0===a.length&&(o=e.childFlags=2,a=e.children=W()),2===o?Ve(a,t,i,r,i,l):Ee(a,t,n,r,i,l)}(e,t,n,r,i,l):1024&a&&function(e,n,t,r,i){Ve(e.children,e.ref,n,!1,null,i);var l=W();Ne(l,t,r),e.dom=l.dom}(e,t,n,i,l)}function Ne(e,n,t){var r=e.dom=document.createTextNode(e.children);x(n)||F(n,r,t)}function Ee(e,n,t,r,i,l){for(var a=0;a0,u!==c){var d=u||C;if((a=c||C)!==C)for(var p in(s=(448&i)>0)&&(f=be(a)),a){var h=d[p],m=a[p];h!==m&&Se(p,h,m,o,r,f,e)}if(d!==C)for(var g in d)v(a[g])&&!v(d[g])&&Se(g,d[g],null,o,r,f,e)}var y=n.children,x=n.className;e.className!==x&&(v(x)?o.removeAttribute("class"):r?o.setAttribute("class",x):o.className=x),4096&i?function(e,n){e.textContent!==n&&(e.textContent=n)}(o,y):Le(e.childFlags,n.childFlags,e.children,y,o,t,r&&"foreignObject"!==n.type,null,e,l),s&&xe(i,n,o,a,!1,f);var b=n.ref,k=e.ref;k!==b&&(ke(k),Ce(b,o,l))}(e,n,r,i,o,a):4&o?function(e,n,t,r,i,l,a){var o=n.children=e.children;if(x(o))return;o.$L=a;var u=n.props||C,c=n.ref,s=e.ref,f=o.state;if(!o.$N){if(g(o.componentWillReceiveProps)){if(o.$BR=!0,o.componentWillReceiveProps(u,r),o.$UN)return;o.$BR=!1}x(o.$PS)||(f=b(f,o.$PS),o.$PS=null)}(function(e,n,t,r,i,l,a,o,u){var c=e.state,s=e.props,f=Boolean(e.$N),d=g(e.shouldComponentUpdate);if(f&&(n=N(e,t,n!==c?b(c,n):n)),!d||d&&e.shouldComponentUpdate(t,n,i)){!f&&g(e.componentWillUpdate)&&e.componentWillUpdate(t,n,i),e.props=t,e.state=n,e.context=i;var p=null,h=Pe(e,t,i);f&&g(e.getSnapshotBeforeUpdate)&&(p=e.getSnapshotBeforeUpdate(s,c)),He(e.$LI,h,r,e.$CX,l,o,u),e.$LI=h,g(e.componentDidUpdate)&&function(e,n,t,r,i){i.push((function(){e.componentDidUpdate(n,t,r)}))}(e,s,c,p,u)}else e.props=t,e.state=n,e.context=i})(o,f,u,t,r,i,0,l,a),s!==c&&(ke(s),Ce(c,o,a))}(e,n,t,r,i,l,a):8&o?function(e,n,t,r,i,l,a){var o=!0,u=n.props||C,c=n.ref,s=e.props,f=!v(c),d=e.children;if(f&&g(c.onComponentShouldUpdate)&&(o=c.onComponentShouldUpdate(s,u)),!1!==o){f&&g(c.onComponentWillUpdate)&&c.onComponentWillUpdate(s,u);var p=n.type,h=R(32768&n.flags?p.render(u,c,r):p(u,r));He(d,h,t,r,i,l,a),n.children=h,f&&g(c.onComponentDidUpdate)&&c.onComponentDidUpdate(s,u)}else n.children=d}(e,n,t,r,i,l,a):16&o?function(e,n){var t=n.children,r=n.dom=e.dom;t!==e.children&&(r.nodeValue=t)}(e,n):512&o?n.dom=e.dom:8192&o?function(e,n,t,r,i,l){var a=e.children,o=n.children,u=e.childFlags,c=n.childFlags,s=null;12&c&&0===o.length&&(c=n.childFlags=2,o=n.children=W());var f=0!==(2&c);if(12&u){var d=a.length;(8&u&&8&c||f||!f&&o.length>d)&&(s=S(a[d-1],!1).nextSibling)}Le(u,c,a,o,t,r,i,s,e,l)}(e,n,t,r,i,a):function(e,n,t,r){var i=e.ref,l=n.ref,a=n.children;if(Le(e.childFlags,n.childFlags,e.children,a,i,t,!1,null,e,r),n.dom=e.dom,i!==l&&!m(a)){var o=a.dom;T(i,o),$(l,o)}}(e,n,r,a)}function Le(e,n,t,r,i,l,a,o,u,c){switch(e){case 2:switch(n){case 2:He(t,r,i,l,a,o,c);break;case 1:we(t,i);break;case 16:$e(t),H(i,r);break;default:!function(e,n,t,r,i,l){$e(e),Ee(n,t,r,i,S(e,!0),l),P(e,t)}(t,r,i,l,a,c)}break;case 1:switch(n){case 2:Ve(r,i,l,a,o,c);break;case 1:break;case 16:H(i,r);break;default:Ee(r,i,l,a,o,c)}break;case 16:switch(n){case 16:!function(e,n,t){e!==n&&(""!==e?t.firstChild.nodeValue=n:H(t,n))}(t,r,i);break;case 2:Te(i),Ve(r,i,l,a,o,c);break;case 1:Te(i);break;default:Te(i),Ee(r,i,l,a,o,c)}break;default:switch(n){case 16:Fe(t),H(i,r);break;case 2:Me(i,u,t),Ve(r,i,l,a,o,c);break;case 1:Me(i,u,t);break;default:var s=0|t.length,f=0|r.length;0===s?f>0&&Ee(r,i,l,a,o,c):0===f?Me(i,u,t):8===n&&8===e?function(e,n,t,r,i,l,a,o,u,c){var s,f,d=l-1,p=a-1,h=0,v=e[h],m=n[h];e:{for(;v.key===m.key;){if(16384&m.flags&&(n[h]=m=D(m)),He(v,m,t,r,i,o,c),e[h]=m,++h>d||h>p)break e;v=e[h],m=n[h]}for(v=e[d],m=n[p];v.key===m.key;){if(16384&m.flags&&(n[p]=m=D(m)),He(v,m,t,r,i,o,c),e[d]=m,p--,h>--d||h>p)break e;v=e[d],m=n[p]}}if(h>d){if(h<=p)for(f=(s=p+1)p)for(;h<=d;)we(e[h++],t);else!function(e,n,t,r,i,l,a,o,u,c,s,f,d){var p,h,v,m=0,g=o,y=o,x=l-o+1,b=a-o+1,k=new Int32Array(b+1),C=x===r,w=!1,$=0,F=0;if(i<4||(x|b)<32)for(m=g;m<=l;++m)if(p=e[m],Fo?w=!0:$=o,16384&h.flags&&(n[o]=h=D(h)),He(p,h,u,t,c,s,d),++F;break}!C&&o>a&&we(p,u)}else C||we(p,u);else{var T={};for(m=y;m<=a;++m)T[n[m].key]=m;for(m=g;m<=l;++m)if(p=e[m],Fg;)we(e[g++],u);k[o-y]=m+1,$>o?w=!0:$=o,16384&(h=n[o]).flags&&(n[o]=h=D(h)),He(p,h,u,t,c,s,d),++F}else C||we(p,u);else C||we(p,u)}if(C)Me(u,f,e),Ee(n,u,t,c,s,d);else if(w){var M=function(e){var n=0,t=0,r=0,i=0,l=0,a=0,o=0,u=e.length;for(u>_e&&(_e=u,he=new Int32Array(u),ve=new Int32Array(u));t>1]]0&&(ve[t]=he[l-1]),he[l]=t)}l=i+1;var c=new Int32Array(l);for(a=he[l-1];l-- >0;)c[l]=a,a=ve[a],he[l]=0;return c}(k);for(o=M.length-1,m=b-1;m>=0;m--)0===k[m]?(16384&(h=n[$=m+y]).flags&&(n[$]=h=D(h)),Ve(h,u,t,c,(v=$+1)=0;m--)0===k[m]&&(16384&(h=n[$=m+y]).flags&&(n[$]=h=D(h)),Ve(h,u,t,c,(v=$+1)a?a:l,d=0;da)for(d=f;d0&&(a+=2/121*(1e3/(n-l)-a)),l=n,t.addSample(a),i.invalidate(),requestAnimationFrame(e)}))}(),function(e){if(void 0===e&&(e=n.HideMin|n.HideMean),s(),void 0===performance.memory)return;var t=new r(100),i=new u("Memory",e,"MB",t);c.appendChild(i.element),function e(){t.addSample(Math.round(performance.memory.usedJSHeapSize/1048576)),i.invalidate(),setTimeout(e,30)}()}(),function(e,n){void 0===n&&(n=0),s();var t=d[e];void 0===t&&(d[e]=t=new f(e,"ms",n),c.appendChild(t.widget.element))}("view update"),setInterval((function(){var e,n=ENV.generateData(!1).toArray();void 0!==(e=d["view update"])&&(e.startTime=performance.now()),function(e){for(var n=e.length,t=[],r=0;r0&&function(e){for(var n;void 0!==(n=e.shift());)n()}(i),g(t)&&t(),g(E.renderComplete)&&E.renderComplete(l,n)}(c,Ie,s,f)}(n),function(e){var n=performance.now(),t=d["view update"];void 0!==t&&-1!==t.startTime&&(t.data.addSample(n-t.startTime),t.widget.invalidate())}()}),0)}(); diff --git a/docs/event-test/dist/bundle.js b/docs/event-test/dist/bundle.js index fed2bf52b..4b17d6157 100644 --- a/docs/event-test/dist/bundle.js +++ b/docs/event-test/dist/bundle.js @@ -1 +1 @@ -!function(){"use strict";var e=Array.isArray;function n(e){var n=typeof e;return"string"===n||"number"===n}function t(e){return void 0===e||null===e}function r(e){return null===e||!1===e||!0===e||void 0===e}function l(e){return"function"===typeof e}function o(e){return"string"===typeof e}function i(e){return null===e}function u(e,n){var t={};if(e)for(var r in e)t[r]=e[r];if(n)for(var l in n)t[l]=n[l];return t}function a(e,n){if(l(n))return{data:e,event:n};return null}function c(e){return!i(e)&&"object"===typeof e}var f={};function s(e){return e.substr(2).toLowerCase()}function d(e,n){e.appendChild(n)}function p(e,n,t){i(t)?d(e,n):e.insertBefore(n,t)}function v(e,n){e.removeChild(n)}function h(e,n,t){var r=e.children;if(4&t)return r.$LI;if(8192&t)return 2===e.childFlags?r:r[n?0:r.length-1];return r}function m(e,n){for(var t;e;){if(2033&(t=e.flags))return e.dom;e=h(e,n,t)}return null}function g(e,n){do{var t=e.flags;if(2033&t)return void v(n,e.dom);var r=e.children;if(4&t&&(e=r.$LI),8&t&&(e=r),8192&t){if(2!==e.childFlags){for(var l=0,o=r.length;l0,v=i(d),h=o(d)&&d[0]===x;p||v||h?(u=u||l.slice(0,f),(p||h)&&(s=N(s)),(v||h)&&(s.key=x+f),u.push(s)):u&&u.push(s),s.flags|=65536}}a=0===(u=u||l).length?1:8}else(u=l).flags|=65536,81920&l.flags&&(u=N(l)),a=2;t.children=u,t.childFlags=a}(v,v.children),v}function L(e,n,r,l,o){return new P(1,null,null,e=function(e,n){if(12&e)return e;if(n.prototype&&n.prototype.render)return 4;if(n.render)return 32776;return 8}(e,n),l,function(e,n,r){var l=(32768&e?n.render:n).defaultProps;if(t(l))return r;if(t(r))return u(l,null);return $(r,l)}(e,n,r),function(e,n,r){if(4&e)return r;var l=(32768&e?n.render:n).defaultHooks;if(t(l))return r;if(t(r))return l;return $(r,l)}(e,n,o),n)}function M(e,n){return new P(1,t(e)||!0===e||!1===e?"":e,null,16,n,null,null,null)}function V(e,n,t){var r=S(8192,8192,null,e,n,null,t,null);switch(r.childFlags){case 1:r.children=U(),r.childFlags=2;break;case 16:r.children=[M(e)],r.childFlags=4}return r}function N(e){var n=-16385&e.flags,t=e.props;if(14&n&&!i(t)){var r=t;for(var l in t={},r)t[l]=r[l]}if(0===(8192&n))return new P(e.childFlags,e.children,e.className,n,e.key,t,e.ref,e.type);return function(e){var n,t=e.children,r=e.childFlags;if(2===r)n=N(t);else if(12&r){n=[];for(var l=0,o=t.length;l-1&&r.options[u]&&(a=r.options[u].value),l&&t(a)&&(a=n.defaultValue),function n(r,l){if("option"===r.type)!function(n,r){var l=n.props||f,o=n.dom;o.value=l.value,l.value===r||e(r)&&-1!==r.indexOf(l.value)?o.selected=!0:t(r)&&t(l.selected)||(o.selected=l.selected||!1)}(r,l);else{var o=r.children,i=r.flags;if(4&i)n(o.$LI,l);else if(8&i)n(o,l);else if(2===r.childFlags)n(o,l);else if(12&r.childFlags)for(var u=0,a=o.length;u0);if(t(f)||""===f||(l?v.setAttribute("class",f):v.className=f),16===d)w(v,s);else if(1!==d){var h=l&&"foreignObject"!==e.type;2===d?(16384&s.flags&&(e.children=s=N(s)),we(s,v,r,h,null,u)):8!==d&&4!==d||$e(s,v,r,h,null,u)}i(n)||p(n,v,o),i(c)||function(e,n,t,r,l){var o=!1,i=(448&n)>0;for(var u in i&&(o=se(t))&&function(e,n,t){64&e?function(e,n){Y(n.type)?(Q(e,"change",ee),Q(e,"click",ne)):Q(e,"input",Z)}(n,t):256&e?function(e){Q(e,"change",re)}(n):128&e&&function(e,n){Q(e,"input",ue),n.onChange&&Q(e,"change",ae)}(n,t)}(n,r,t),t)ke(u,null,t[u],r,l,o,null);i&&fe(n,e,r,t,!0,o)}(e,a,c,v,l),pe(e.ref,v,u)}(e,n,r,o,u,a):4&c?function(e,n,t,r,o,u){var a=function(e,n,t,r,o,u){var a=new n(t,r),c=a.$N=Boolean(n.getDerivedStateFromProps||a.getSnapshotBeforeUpdate);if(a.$SVG=o,a.$L=u,e.children=a,a.$BS=!1,a.context=r,a.props===f&&(a.props=t),c)a.state=k(a,t,a.state);else if(l(a.componentWillMount)){a.$BR=!0,a.componentWillMount();var s=a.$PS;if(!i(s)){var d=a.state;if(i(d))a.state=s;else for(var p in s)d[p]=s[p];a.$PS=null}a.$BR=!1}return a.$LI=be(a,t,r),a}(e,e.type,e.props||f,t,r,u);we(a.$LI,n,a.$CX,r,o,u),function(e,n,t){pe(e,n,t),l(n.componentDidMount)&&t.push(function(e){return function(){e.componentDidMount()}}(n))}(e.ref,a,u)}(e,n,r,o,u,a):8&c?(function(e,n,t,r,l,o){we(e.children=A(function(e,n){return 32768&e.flags?e.type.render(e.props||f,e.ref,n):e.type(e.props||f,n)}(e,t)),n,t,r,l,o)}(e,n,r,o,u,a),function(e,n){var r=e.ref;t(r)||(F(r.onComponentWillMount,e.props||f),l(r.onComponentDidMount)&&n.push(function(e,n){return function(){e.onComponentDidMount(m(n,!0),n.props||f)}}(r,e)))}(e,a)):512&c||16&c?Ce(e,n,u):8192&c?function(e,n,t,r,l,o){var i=e.children,u=e.childFlags;12&u&&0===i.length&&(u=e.childFlags=2,i=e.children=U()),2===u?we(i,t,l,r,l,o):$e(i,t,n,r,l,o)}(e,r,n,o,u,a):1024&c&&function(e,n,t,r,l){we(e.children,e.ref,n,!1,null,l);var o=U();Ce(o,t,r),e.dom=o.dom}(e,r,n,u,a)}function Ce(e,n,t){var r=e.dom=document.createTextNode(e.children);i(n)||p(n,r,t)}function $e(e,n,t,r,l,o){for(var i=0;i0,c!==s){var v=c||f;if((u=s||f)!==f)for(var h in(d=(448&o)>0)&&(p=se(u)),u){var m=v[h],g=u[h];m!==g&&ke(h,m,g,a,l,p,e)}if(v!==f)for(var y in v)t(u[y])&&!t(v[y])&&ke(y,v[y],null,a,l,p,e)}var k=n.children,b=n.className;e.className!==b&&(t(b)?a.removeAttribute("class"):l?a.setAttribute("class",b):a.className=b),4096&o?function(e,n){e.textContent!==n&&(e.textContent=n)}(a,k):xe(e.childFlags,n.childFlags,e.children,k,a,r,l&&"foreignObject"!==n.type,null,e,i),d&&fe(o,n,a,u,!1,p);var w=n.ref,C=e.ref;C!==w&&(de(C),pe(w,a,i))}(e,n,a,c,h,p):4&h?function(e,n,t,r,o,a,c){var s=n.children=e.children;if(i(s))return;s.$L=c;var d=n.props||f,p=n.ref,v=e.ref,h=s.state;if(!s.$N){if(l(s.componentWillReceiveProps)){if(s.$BR=!0,s.componentWillReceiveProps(d,r),s.$UN)return;s.$BR=!1}i(s.$PS)||(h=u(h,s.$PS),s.$PS=null)}(function(e,n,t,r,o,i,a,c,f){var s=e.state,d=e.props,p=Boolean(e.$N),v=l(e.shouldComponentUpdate);if(p&&(n=k(e,t,n!==s?u(s,n):n)),!v||v&&e.shouldComponentUpdate(t,n,o)){!p&&l(e.componentWillUpdate)&&e.componentWillUpdate(t,n,o),e.props=t,e.state=n,e.context=o;var h=null,m=be(e,t,o);p&&l(e.getSnapshotBeforeUpdate)&&(h=e.getSnapshotBeforeUpdate(d,s)),Fe(e.$LI,m,r,e.$CX,i,c,f),e.$LI=m,l(e.componentDidUpdate)&&function(e,n,t,r,l){l.push((function(){e.componentDidUpdate(n,t,r)}))}(e,d,s,h,f)}else e.props=t,e.state=n,e.context=o})(s,h,d,t,r,o,0,a,c),v!==p&&(de(v),pe(p,s,c))}(e,n,o,a,c,s,p):8&h?function(e,n,r,o,i,u,a){var c=!0,s=n.props||f,d=n.ref,p=e.props,v=!t(d),h=e.children;if(v&&l(d.onComponentShouldUpdate)&&(c=d.onComponentShouldUpdate(p,s)),!1!==c){v&&l(d.onComponentWillUpdate)&&d.onComponentWillUpdate(p,s);var m=n.type,g=A(32768&n.flags?m.render(s,d,o):m(s,o));Fe(h,g,r,o,i,u,a),n.children=g,v&&l(d.onComponentDidUpdate)&&d.onComponentDidUpdate(p,s)}else n.children=h}(e,n,o,a,c,s,p):16&h?function(e,n){var t=n.children,r=n.dom=e.dom;t!==e.children&&(r.nodeValue=t)}(e,n):512&h?n.dom=e.dom:8192&h?function(e,n,t,r,l,o){var i=e.children,u=n.children,a=e.childFlags,c=n.childFlags,f=null;12&c&&0===u.length&&(c=n.childFlags=2,u=n.children=U());var s=0!==(2&c);if(12&a){var d=i.length;(8&a&&8&c||s||!s&&u.length>d)&&(f=m(i[d-1],!1).nextSibling)}xe(a,c,i,u,t,r,l,f,e,o)}(e,n,o,a,c,p):function(e,n,t,l){var o=e.ref,i=n.ref,u=n.children;if(xe(e.childFlags,n.childFlags,e.children,u,o,t,!1,null,e,l),n.dom=e.dom,o!==i&&!r(u)){var a=u.dom;v(o,a),d(i,a)}}(e,n,a,p)}function xe(e,n,t,r,l,o,i,u,a,c){switch(e){case 2:switch(n){case 2:Fe(t,r,l,o,i,u,c);break;case 1:ve(t,l);break;case 16:he(t),w(l,r);break;default:!function(e,n,t,r,l,o){he(e),$e(n,t,r,l,m(e,!0),o),g(e,t)}(t,r,l,o,i,c)}break;case 1:switch(n){case 2:we(r,l,o,i,u,c);break;case 1:break;case 16:w(l,r);break;default:$e(r,l,o,i,u,c)}break;case 16:switch(n){case 16:!function(e,n,t){e!==n&&(""!==e?t.firstChild.nodeValue=n:w(t,n))}(t,r,l);break;case 2:ge(l),we(r,l,o,i,u,c);break;case 1:ge(l);break;default:ge(l),$e(r,l,o,i,u,c)}break;default:switch(n){case 16:me(t),w(l,r);break;case 2:ye(l,a,t),we(r,l,o,i,u,c);break;case 1:ye(l,a,t);break;default:var f=0|t.length,s=0|r.length;0===f?s>0&&$e(r,l,o,i,u,c):0===s?ye(l,a,t):8===n&&8===e?function(e,n,t,r,l,o,i,u,a,c){var f,s,d=o-1,p=i-1,v=0,h=e[v],g=n[v];e:{for(;h.key===g.key;){if(16384&g.flags&&(n[v]=g=N(g)),Fe(h,g,t,r,l,u,c),e[v]=g,++v>d||v>p)break e;h=e[v],g=n[v]}for(h=e[d],g=n[p];h.key===g.key;){if(16384&g.flags&&(n[p]=g=N(g)),Fe(h,g,t,r,l,u,c),e[d]=g,p--,v>--d||v>p)break e;h=e[d],g=n[p]}}if(v>d){if(v<=p)for(s=(f=p+1)p)for(;v<=d;)ve(e[v++],t);else!function(e,n,t,r,l,o,i,u,a,c,f,s,d){var p,v,h,g=0,k=u,b=u,w=o-u+1,C=i-u+1,$=new Int32Array(C+1),F=w===r,x=!1,P=0,S=0;if(l<4||(w|C)<32)for(g=k;g<=o;++g)if(p=e[g],Su?x=!0:P=u,16384&v.flags&&(n[u]=v=N(v)),Fe(p,v,a,t,c,f,d),++S;break}!F&&u>i&&ve(p,a)}else F||ve(p,a);else{var L={};for(g=b;g<=i;++g)L[n[g].key]=g;for(g=k;g<=o;++g)if(p=e[g],Sk;)ve(e[k++],a);$[u-b]=g+1,P>u?x=!0:P=u,16384&(v=n[u]).flags&&(n[u]=v=N(v)),Fe(p,v,a,t,c,f,d),++S}else F||ve(p,a);else F||ve(p,a)}if(F)ye(a,s,e),$e(n,a,t,c,f,d);else if(x){var M=function(e){var n=0,t=0,r=0,l=0,o=0,i=0,u=0,a=e.length;for(a>Pe&&(Pe=a,oe=new Int32Array(a),ie=new Int32Array(a));t>1]]0&&(ie[t]=oe[o-1]),oe[o]=t)}o=l+1;var c=new Int32Array(o);for(i=oe[o-1];o-- >0;)c[o]=i,i=ie[i],oe[o]=0;return c}($);for(u=M.length-1,g=C-1;g>=0;g--)0===$[g]?(16384&(v=n[P=g+b]).flags&&(n[P]=v=N(v)),we(v,a,t,c,(h=P+1)=0;g--)0===$[g]&&(16384&(v=n[P=g+b]).flags&&(n[P]=v=N(v)),we(v,a,t,c,(h=P+1)i?i:o,d=0;di)for(d=s;d0&&function(e){for(var n;void 0!==(n=e.shift());)n()}(i),l(r)&&r(),l(b.renderComplete)&&b.renderComplete(u,n)}(e,n,r,o)}function Le(e){console.log("ok",e)}"undefined"!==typeof document&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null),"undefined"!==typeof Promise&&Promise.resolve().then.bind(Promise.resolve());var Me=30,Ve=7,Ne=[function(){for(var e=[],n=0;n<500;n++)e.push(S(1,"li",null,n,16,{onclick:Le},null,null));return S(1,"ul",null,e,4,null,null,null)},function(){for(var e=[],n=0;n<500;n++)e.push(S(1,"li",null,n,16,{onclick:a(n,Le)},null,null));return S(1,"ul",null,e,4,null,null,null)},function(){for(var e=[],n=0;n<500;n++)e.push(S(1,"li",null,n,16,{onClick:Le},null,null));return S(1,"ul",null,e,4,null,null,null)},function(){for(var e=[],n=0;n<500;n++)e.push(S(1,"li",null,n,16,{onclick:function(){console.log("ok")}},null,null));return S(1,"ul",null,e,4,null,null,null)}],Ue=["hoistedNonSyntheticEvents","hoistedLinkEventNonSynthetic","hoistedSyntheticEvents","newFuncsNonSyntheticEvents"],Ie=function(e){return e.reduce((function(e,n){return e+n}),0)/e.length},Ae=function(e){return Math.min.apply(Math,e)},Ee=function(e){return Math.max.apply(Math,e)};function De(e){for(var n=e.results,t=[],r=0;r0,v=i(d),h=o(d)&&"$"===d[0];p||v||h?(u=u||l.slice(0,f),(p||h)&&(s=L(s)),(v||h)&&(s.key="$"+f),u.push(s)):u&&u.push(s),s.flags|=65536}}a=0===(u=u||l).length?1:8}else(u=l).flags|=65536,81920&l.flags&&(u=L(l)),a=2;t.children=u,t.childFlags=a}(v,v.children),v}function V(e,n,r,l,o){var i=new x(1,null,null,e=function(e,n){if(12&e)return e;if(n.prototype&&n.prototype.render)return 4;if(n.render)return 32776;return 8}(e,n),l,function(e,n,r){var l=(32768&e?n.render:n).defaultProps;if(t(l))return r;if(t(r))return u(l,null);return C(r,l)}(e,n,r),function(e,n,r){if(4&e)return r;var l=(32768&e?n.render:n).defaultHooks;if(t(l))return r;if(t(r))return l;return C(r,l)}(e,n,o),n);return b.createVNode&&b.createVNode(i),i}function N(e,n){return new x(1,t(e)||!0===e||!1===e?"":e,null,16,n,null,null,null)}function S(e,n,t){var r=P(8192,8192,null,e,n,null,t,null);switch(r.childFlags){case 1:r.children=M(),r.childFlags=2;break;case 16:r.children=[N(e)],r.childFlags=4}return r}function L(e){var n=-16385&e.flags,t=e.props;if(14&n&&!i(t)){var r=t;for(var l in t={},r)t[l]=r[l]}if(0===(8192&n))return new x(e.childFlags,e.children,e.className,n,e.key,t,e.ref,e.type);return function(e){var n,t=e.children,r=e.childFlags;if(2===r)n=L(t);else if(12&r){n=[];for(var l=0,o=t.length;l-1&&r.options[u]&&(a=r.options[u].value),l&&t(a)&&(a=n.defaultValue),function n(r,l){if("option"===r.type)!function(n,r){var l=n.props||f,o=n.dom;o.value=l.value,l.value===r||e(r)&&-1!==r.indexOf(l.value)?o.selected=!0:t(r)&&t(l.selected)||(o.selected=l.selected||!1)}(r,l);else{var o=r.children,i=r.flags;if(4&i)n(o.$LI,l);else if(8&i)n(o,l);else if(2===r.childFlags)n(o,l);else if(12&r.childFlags)for(var u=0,a=o.length;u0);if(t(f)||""===f||(l?v.setAttribute("class",f):v.className=f),16===d)w(v,s);else if(1!==d){var h=l&&"foreignObject"!==e.type;2===d?(16384&s.flags&&(e.children=s=L(s)),be(s,v,r,h,null,u)):8!==d&&4!==d||$e(s,v,r,h,null,u)}i(n)||p(n,v,o),i(c)||function(e,n,t,r,l){var o=!1,i=(448&n)>0;for(var u in i&&(o=fe(t))&&function(e,n,t){64&e?function(e,n){Q(n.type)?(J(e,"change",Z),J(e,"click",ee)):J(e,"input",Y)}(n,t):256&e?function(e){J(e,"change",te)}(n):128&e&&function(e,n){J(e,"input",ie),n.onChange&&J(e,"change",ue)}(n,t)}(n,r,t),t)ye(u,null,t[u],r,l,o,null);i&&ce(n,e,r,t,!0,o)}(e,a,c,v,l),de(e.ref,v,u)}(e,n,r,o,u,a):4&c?function(e,n,t,r,o,u){var a=function(e,n,t,r,o,u){var a=new n(t,r),c=a.$N=Boolean(n.getDerivedStateFromProps||a.getSnapshotBeforeUpdate);if(a.$SVG=o,a.$L=u,e.children=a,a.$BS=!1,a.context=r,a.props===f&&(a.props=t),c)a.state=k(a,t,a.state);else if(l(a.componentWillMount)){a.$BR=!0,a.componentWillMount();var s=a.$PS;if(!i(s)){var d=a.state;if(i(d))a.state=s;else for(var p in s)d[p]=s[p];a.$PS=null}a.$BR=!1}return a.$LI=ke(a,t,r),a}(e,e.type,e.props||f,t,r,u);be(a.$LI,n,a.$CX,r,o,u),function(e,n,t){de(e,n,t),l(n.componentDidMount)&&t.push(function(e){return function(){e.componentDidMount()}}(n))}(e.ref,a,u)}(e,n,r,o,u,a):8&c?(function(e,n,t,r,l,o){be(e.children=I(function(e,n){return 32768&e.flags?e.type.render(e.props||f,e.ref,n):e.type(e.props||f,n)}(e,t)),n,t,r,l,o)}(e,n,r,o,u,a),function(e,n){var r=e.ref;t(r)||(F(r.onComponentWillMount,e.props||f),l(r.onComponentDidMount)&&n.push(function(e,n){return function(){e.onComponentDidMount(m(n,!0),n.props||f)}}(r,e)))}(e,a)):512&c||16&c?we(e,n,u):8192&c?function(e,n,t,r,l,o){var i=e.children,u=e.childFlags;12&u&&0===i.length&&(u=e.childFlags=2,i=e.children=M()),2===u?be(i,t,l,r,l,o):$e(i,t,n,r,l,o)}(e,r,n,o,u,a):1024&c&&function(e,n,t,r,l){be(e.children,e.ref,n,!1,null,l);var o=M();we(o,t,r),e.dom=o.dom}(e,r,n,u,a)}function we(e,n,t){var r=e.dom=document.createTextNode(e.children);i(n)||p(n,r,t)}function $e(e,n,t,r,l,o){for(var i=0;i0,c!==s){var v=c||f;if((u=s||f)!==f)for(var h in(d=(448&o)>0)&&(p=fe(u)),u){var m=v[h],g=u[h];m!==g&&ye(h,m,g,a,l,p,e)}if(v!==f)for(var y in v)t(u[y])&&!t(v[y])&&ye(y,v[y],null,a,l,p,e)}var k=n.children,b=n.className;e.className!==b&&(t(b)?a.removeAttribute("class"):l?a.setAttribute("class",b):a.className=b),4096&o?function(e,n){e.textContent!==n&&(e.textContent=n)}(a,k):Fe(e.childFlags,n.childFlags,e.children,k,a,r,l&&"foreignObject"!==n.type,null,e,i),d&&ce(o,n,a,u,!1,p);var w=n.ref,$=e.ref;$!==w&&(se($),de(w,a,i))}(e,n,a,c,h,p):4&h?function(e,n,t,r,o,a,c){var s=n.children=e.children;if(i(s))return;s.$L=c;var d=n.props||f,p=n.ref,v=e.ref,h=s.state;if(!s.$N){if(l(s.componentWillReceiveProps)){if(s.$BR=!0,s.componentWillReceiveProps(d,r),s.$UN)return;s.$BR=!1}i(s.$PS)||(h=u(h,s.$PS),s.$PS=null)}(function(e,n,t,r,o,i,a,c,f){var s=e.state,d=e.props,p=Boolean(e.$N),v=l(e.shouldComponentUpdate);if(p&&(n=k(e,t,n!==s?u(s,n):n)),!v||v&&e.shouldComponentUpdate(t,n,o)){!p&&l(e.componentWillUpdate)&&e.componentWillUpdate(t,n,o),e.props=t,e.state=n,e.context=o;var h=null,m=ke(e,t,o);p&&l(e.getSnapshotBeforeUpdate)&&(h=e.getSnapshotBeforeUpdate(d,s)),Ce(e.$LI,m,r,e.$CX,i,c,f),e.$LI=m,l(e.componentDidUpdate)&&function(e,n,t,r,l){l.push((function(){e.componentDidUpdate(n,t,r)}))}(e,d,s,h,f)}else e.props=t,e.state=n,e.context=o})(s,h,d,t,r,o,0,a,c),v!==p&&(se(v),de(p,s,c))}(e,n,o,a,c,s,p):8&h?function(e,n,r,o,i,u,a){var c=!0,s=n.props||f,d=n.ref,p=e.props,v=!t(d),h=e.children;if(v&&l(d.onComponentShouldUpdate)&&(c=d.onComponentShouldUpdate(p,s)),!1!==c){v&&l(d.onComponentWillUpdate)&&d.onComponentWillUpdate(p,s);var m=n.type,g=I(32768&n.flags?m.render(s,d,o):m(s,o));Ce(h,g,r,o,i,u,a),n.children=g,v&&l(d.onComponentDidUpdate)&&d.onComponentDidUpdate(p,s)}else n.children=h}(e,n,o,a,c,s,p):16&h?function(e,n){var t=n.children,r=n.dom=e.dom;t!==e.children&&(r.nodeValue=t)}(e,n):512&h?n.dom=e.dom:8192&h?function(e,n,t,r,l,o){var i=e.children,u=n.children,a=e.childFlags,c=n.childFlags,f=null;12&c&&0===u.length&&(c=n.childFlags=2,u=n.children=M());var s=0!==(2&c);if(12&a){var d=i.length;(8&a&&8&c||s||!s&&u.length>d)&&(f=m(i[d-1],!1).nextSibling)}Fe(a,c,i,u,t,r,l,f,e,o)}(e,n,o,a,c,p):function(e,n,t,l){var o=e.ref,i=n.ref,u=n.children;if(Fe(e.childFlags,n.childFlags,e.children,u,o,t,!1,null,e,l),n.dom=e.dom,o!==i&&!r(u)){var a=u.dom;v(o,a),d(i,a)}}(e,n,a,p)}function Fe(e,n,t,r,l,o,i,u,a,c){switch(e){case 2:switch(n){case 2:Ce(t,r,l,o,i,u,c);break;case 1:pe(t,l);break;case 16:ve(t),w(l,r);break;default:!function(e,n,t,r,l,o){ve(e),$e(n,t,r,l,m(e,!0),o),g(e,t)}(t,r,l,o,i,c)}break;case 1:switch(n){case 2:be(r,l,o,i,u,c);break;case 1:break;case 16:w(l,r);break;default:$e(r,l,o,i,u,c)}break;case 16:switch(n){case 16:!function(e,n,t){e!==n&&(""!==e?t.firstChild.nodeValue=n:w(t,n))}(t,r,l);break;case 2:me(l),be(r,l,o,i,u,c);break;case 1:me(l);break;default:me(l),$e(r,l,o,i,u,c)}break;default:switch(n){case 16:he(t),w(l,r);break;case 2:ge(l,a,t),be(r,l,o,i,u,c);break;case 1:ge(l,a,t);break;default:var f=0|t.length,s=0|r.length;0===f?s>0&&$e(r,l,o,i,u,c):0===s?ge(l,a,t):8===n&&8===e?function(e,n,t,r,l,o,i,u,a,c){var f,s,d=o-1,p=i-1,v=0,h=e[v],g=n[v];e:{for(;h.key===g.key;){if(16384&g.flags&&(n[v]=g=L(g)),Ce(h,g,t,r,l,u,c),e[v]=g,++v>d||v>p)break e;h=e[v],g=n[v]}for(h=e[d],g=n[p];h.key===g.key;){if(16384&g.flags&&(n[p]=g=L(g)),Ce(h,g,t,r,l,u,c),e[d]=g,p--,v>--d||v>p)break e;h=e[d],g=n[p]}}if(v>d){if(v<=p)for(s=(f=p+1)p)for(;v<=d;)pe(e[v++],t);else!function(e,n,t,r,l,o,i,u,a,c,f,s,d){var p,v,h,g=0,k=u,b=u,w=o-u+1,$=i-u+1,C=new Int32Array($+1),F=w===r,x=!1,P=0,V=0;if(l<4||(w|$)<32)for(g=k;g<=o;++g)if(p=e[g],V<$){for(u=b;u<=i;u++)if(v=n[u],p.key===v.key){if(C[u-b]=g+1,F)for(F=!1;ku?x=!0:P=u,16384&v.flags&&(n[u]=v=L(v)),Ce(p,v,a,t,c,f,d),++V;break}!F&&u>i&&pe(p,a)}else F||pe(p,a);else{var N={};for(g=b;g<=i;++g)N[n[g].key]=g;for(g=k;g<=o;++g)if(p=e[g],V<$)if(void 0!==(u=N[p.key])){if(F)for(F=!1;g>k;)pe(e[k++],a);C[u-b]=g+1,P>u?x=!0:P=u,16384&(v=n[u]).flags&&(n[u]=v=L(v)),Ce(p,v,a,t,c,f,d),++V}else F||pe(p,a);else F||pe(p,a)}if(F)ge(a,s,e),$e(n,a,t,c,f,d);else if(x){var S=function(e){var n=0,t=0,r=0,l=0,o=0,i=0,u=0,a=e.length;for(a>xe&&(xe=a,le=new Int32Array(a),oe=new Int32Array(a));t>1]]0&&(oe[t]=le[o-1]),le[o]=t)}o=l+1;var c=new Int32Array(o);for(i=le[o-1];o-- >0;)c[o]=i,i=oe[i],le[o]=0;return c}(C);for(u=S.length-1,g=$-1;g>=0;g--)0===C[g]?(16384&(v=n[P=g+b]).flags&&(n[P]=v=L(v)),be(v,a,t,c,(h=P+1)=0;g--)0===C[g]&&(16384&(v=n[P=g+b]).flags&&(n[P]=v=L(v)),be(v,a,t,c,(h=P+1)i?i:o,d=0;di)for(d=s;d0&&function(e){for(var n;void 0!==(n=e.shift());)n()}(i),l(r)&&r(),l(b.renderComplete)&&b.renderComplete(u,n)}(e,n,r,o)}function Ve(e){console.log("ok",e)}"undefined"!==typeof document&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null),"undefined"!==typeof Promise&&Promise.resolve().then.bind(Promise.resolve());var Ne=[function(){for(var e=[],n=0;n<500;n++)e.push(P(1,"li",null,n,16,{onclick:Ve},null,null));return P(1,"ul",null,e,4,null,null,null)},function(){for(var e=[],n=0;n<500;n++)e.push(P(1,"li",null,n,16,{onclick:a(n,Ve)},null,null));return P(1,"ul",null,e,4,null,null,null)},function(){for(var e=[],n=0;n<500;n++)e.push(P(1,"li",null,n,16,{onClick:Ve},null,null));return P(1,"ul",null,e,4,null,null,null)},function(){for(var e=[],n=0;n<500;n++)e.push(P(1,"li",null,n,16,{onclick:function(){console.log("ok")}},null,null));return P(1,"ul",null,e,4,null,null,null)}],Se=["hoistedNonSyntheticEvents","hoistedLinkEventNonSynthetic","hoistedSyntheticEvents","newFuncsNonSyntheticEvents"],Le=function(e){return e.reduce((function(e,n){return e+n}),0)/e.length},Me=function(e){return Math.min.apply(Math,e)},Ue=function(e){return Math.max.apply(Math,e)};function Ie(e){for(var n=e.results,t=[],r=0;r0,h=l(d),v=i(d)&&d[0]===U;p||h||v?(a=a||o.slice(0,f),(p||v)&&(s=_(s)),(h||v)&&(s.key=U+f),a.push(s)):a&&a.push(s),s.flags|=65536}}u=0===(a=a||o).length?1:8}else(a=o).flags|=65536,81920&o.flags&&(a=_(o)),u=2;return t.children=a,t.childFlags=u,t}function B(t){if(r(t)||n(t))return M(t,null);if(e(t))return I(t,0,null);return 16384&t.flags?_(t):t}var R="http://www.w3.org/1999/xlink",W="http://www.w3.org/XML/1998/namespace",j={"xlink:actuate":R,"xlink:arcrole":R,"xlink:href":R,"xlink:role":R,"xlink:show":R,"xlink:title":R,"xlink:type":R,"xml:base":W,"xml:lang":W,"xml:space":W};function H(e){return{onClick:e,onDblClick:e,onFocusIn:e,onFocusOut:e,onKeyDown:e,onKeyPress:e,onKeyUp:e,onMouseDown:e,onMouseMove:e,onMouseUp:e,onTouchEnd:e,onTouchMove:e,onTouchStart:e}}var z=H(0),Q=H(null),X=H(!0);function q(e,n){var t=n.$EV;return t||(t=n.$EV=H(null)),t[e]||1===++z[e]&&(Q[e]=function(e){var n="onClick"===e||"onDblClick"===e?function(e){return function(n){if(0!==n.button)return void n.stopPropagation();K(n,!0,e,ee(n))}}(e):function(e){return function(n){K(n,!1,e,ee(n))}}(e);return document.addEventListener(d(e),n),n}(e)),t}function G(e,n){var t=n.$EV;t&&t[e]&&(0===--z[e]&&(document.removeEventListener(d(e),Q[e]),Q[e]=null),t[e]=null)}function K(e,n,t,r){var i=function(e){return o(e.composedPath)?e.composedPath()[0]:e.target}(e);do{if(n&&i.disabled)return;var a=i.$EV;if(a){var u=a[t];if(u&&(r.dom=i,u.event?u.event(u.data,e):u(e),e.cancelBubble))return}i=i.parentNode}while(!l(i))}function J(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function Y(){return this.defaultPrevented}function Z(){return this.cancelBubble}function ee(e){var n={dom:document};return e.isDefaultPrevented=Y,e.isPropagationStopped=Z,e.stopPropagation=J,Object.defineProperty(e,"currentTarget",{configurable:!0,get:function(){return n.dom}}),n}function ne(e,n,t){if(e[n]){var r=e[n];r.event?r.event(r.data,t):r(t)}else{var o=n.toLowerCase();e[o]&&e[o](t)}}function te(e,n){var t=function(t){var r=this.$V;if(!r)return;var l=r.props||f,a=r.dom;if(i(e))ne(l,e,t);else for(var u=0;u-1&&r.options[a]&&(u=r.options[a].value),o&&t(u)&&(u=n.defaultValue),function n(r,o){if("option"===r.type)!function(n,r){var o=n.props||f,i=n.dom;i.value=o.value,o.value===r||e(r)&&-1!==r.indexOf(o.value)?i.selected=!0:t(r)&&t(o.selected)||(i.selected=o.selected||!1)}(r,o);else{var i=r.children,l=r.flags;if(4&l)n(i.$LI,o);else if(8&l)n(i,o);else if(2===r.childFlags)n(i,o);else if(12&r.childFlags)for(var a=0,u=i.length;a0;for(var a in l&&(i=ge(t))&&function(e,n,t){64&e?function(e,n){oe(n.type)?(re(e,"change",le),re(e,"click",ae)):re(e,"input",ie)}(n,t):256&e?function(e){re(e,"change",ce)}(n):128&e&&function(e,n){re(e,"input",pe),n.onChange&&re(e,"change",he)}(n,t)}(n,r,t),t)Ne(a,null,t[a],r,o,i,null);l&&me(n,e,r,t,!0,i)}function Pe(e,n,t){var r=B(e.render(n,e.state,t)),i=t;return o(e.getChildContext)&&(i=a(t,e.getChildContext())),e.$CX=i,r}function Ue(e,n,t,r,i,a){var u=new n(t,r),c=u.$N=Boolean(n.getDerivedStateFromProps||u.getSnapshotBeforeUpdate);if(u.$SVG=i,u.$L=a,e.children=u,u.$BS=!1,u.context=r,u.props===f&&(u.props=t),c)u.state=C(u,t,u.state);else if(o(u.componentWillMount)){u.$BR=!0,u.componentWillMount();var s=u.$PS;if(!l(s)){var d=u.state;if(l(d))u.state=s;else for(var p in s)d[p]=s[p];u.$PS=null}u.$BR=!1}return u.$LI=Pe(u,t,r),u}function Ve(e,n,t,r,o,i){var l=e.flags|=16384;481&l?Le(e,n,t,r,o,i):4&l?function(e,n,t,r,o,i){var l=Ue(e,e.type,e.props||f,t,r,i);Ve(l.$LI,n,l.$CX,r,o,i),Ie(e.ref,l,i)}(e,n,t,r,o,i):8&l?(function(e,n,t,r,o,i){Ve(e.children=B(function(e,n){return 32768&e.flags?e.type.render(e.props||f,e.ref,n):e.type(e.props||f,n)}(e,t)),n,t,r,o,i)}(e,n,t,r,o,i),Te(e,i)):512&l||16&l?Fe(e,n,o):8192&l?function(e,n,t,r,o,i){var l=e.children,a=e.childFlags;12&a&&0===l.length&&(a=e.childFlags=2,l=e.children=A()),2===a?Ve(l,t,o,r,o,i):Me(l,t,n,r,o,i)}(e,t,n,r,o,i):1024&l&&function(e,n,t,r,o){Ve(e.children,e.ref,n,!1,null,o);var i=A();Fe(i,t,r),e.dom=i.dom}(e,t,n,o,i)}function Fe(e,n,t){var r=e.dom=document.createTextNode(e.children);l(n)||h(n,r,t)}function Le(e,n,r,o,i,a){var u=e.flags,c=e.props,f=e.className,s=e.children,d=e.childFlags,p=e.dom=function(e,n){if(n)return document.createElementNS("http://www.w3.org/2000/svg",e);return document.createElement(e)}(e.type,o=o||(32&u)>0);if(t(f)||""===f||(o?p.setAttribute("class",f):p.className=f),16===d)$(p,s);else if(1!==d){var v=o&&"foreignObject"!==e.type;2===d?(16384&s.flags&&(e.children=s=_(s)),Ve(s,p,r,v,null,a)):8!==d&&4!==d||Me(s,p,r,v,null,a)}l(n)||h(n,p,i),l(c)||Se(e,u,c,p,o),be(e.ref,p,a)}function Me(e,n,t,r,o,i){for(var l=0;l0,c!==s){var h=c||f;if((a=s||f)!==f)for(var v in(d=(448&i)>0)&&(p=ge(a)),a){var m=h[v],g=a[v];m!==g&&Ne(v,m,g,u,o,p,e)}if(h!==f)for(var y in h)t(a[y])&&!t(h[y])&&Ne(y,h[y],null,u,o,p,e)}var b=n.children,k=n.className;e.className!==k&&(t(k)?u.removeAttribute("class"):o?u.setAttribute("class",k):u.className=k),4096&i?function(e,n){e.textContent!==n&&(e.textContent=n)}(u,b):Ae(e.childFlags,n.childFlags,e.children,b,u,r,o&&"foreignObject"!==n.type,null,e,l),d&&me(i,n,u,a,!1,p);var C=n.ref,x=e.ref;x!==C&&(ye(x),be(C,u,l))}(e,n,u,c,h,d):4&h?function(e,n,t,r,i,u,c){var s=n.children=e.children;if(l(s))return;s.$L=c;var d=n.props||f,p=n.ref,h=e.ref,v=s.state;if(!s.$N){if(o(s.componentWillReceiveProps)){if(s.$BR=!0,s.componentWillReceiveProps(d,r),s.$UN)return;s.$BR=!1}l(s.$PS)||(v=a(v,s.$PS),s.$PS=null)}De(s,v,d,t,r,i,!1,u,c),h!==p&&(ye(h),be(p,s,c))}(e,n,i,u,c,s,d):8&h?function(e,n,r,i,l,a,u){var c=!0,s=n.props||f,d=n.ref,p=e.props,h=!t(d),v=e.children;if(h&&o(d.onComponentShouldUpdate)&&(c=d.onComponentShouldUpdate(p,s)),!1!==c){h&&o(d.onComponentWillUpdate)&&d.onComponentWillUpdate(p,s);var m=n.type,g=B(32768&n.flags?m.render(s,d,i):m(s,i));_e(v,g,r,i,l,a,u),n.children=g,h&&o(d.onComponentDidUpdate)&&d.onComponentDidUpdate(p,s)}else n.children=v}(e,n,i,u,c,s,d):16&h?function(e,n){var t=n.children,r=n.dom=e.dom;t!==e.children&&(r.nodeValue=t)}(e,n):512&h?n.dom=e.dom:8192&h?function(e,n,t,r,o,i){var l=e.children,a=n.children,u=e.childFlags,c=n.childFlags,f=null;12&c&&0===a.length&&(c=n.childFlags=2,a=n.children=A());var s=0!==(2&c);if(12&u){var d=l.length;(8&u&&8&c||s||!s&&a.length>d)&&(f=y(l[d-1],!1).nextSibling)}Ae(u,c,l,a,t,r,o,f,e,i)}(e,n,i,u,c,d):function(e,n,t,o){var i=e.ref,l=n.ref,a=n.children;if(Ae(e.childFlags,n.childFlags,e.children,a,i,t,!1,null,e,o),n.dom=e.dom,i!==l&&!r(a)){var u=a.dom;v(i,u),p(l,u)}}(e,n,u,d)}function Ae(e,n,t,r,o,i,l,a,u,c){switch(e){case 2:switch(n){case 2:_e(t,r,o,i,l,a,c);break;case 1:ke(t,o);break;case 16:Ce(t),$(o,r);break;default:!function(e,n,t,r,o,i){Ce(e),Me(n,t,r,o,y(e,!0),i),b(e,t)}(t,r,o,i,l,c)}break;case 1:switch(n){case 2:Ve(r,o,i,l,a,c);break;case 1:break;case 16:$(o,r);break;default:Me(r,o,i,l,a,c)}break;case 16:switch(n){case 16:!function(e,n,t){e!==n&&(""!==e?t.firstChild.nodeValue=n:$(t,n))}(t,r,o);break;case 2:we(o),Ve(r,o,i,l,a,c);break;case 1:we(o);break;default:we(o),Me(r,o,i,l,a,c)}break;default:switch(n){case 16:xe(t),$(o,r);break;case 2:$e(o,u,t),Ve(r,o,i,l,a,c);break;case 1:$e(o,u,t);break;default:var f=0|t.length,s=0|r.length;0===f?s>0&&Me(r,o,i,l,a,c):0===s?$e(o,u,t):8===n&&8===e?function(e,n,t,r,o,i,l,a,u,c){var f,s,d=i-1,p=l-1,h=0,v=e[h],m=n[h];e:{for(;v.key===m.key;){if(16384&m.flags&&(n[h]=m=_(m)),_e(v,m,t,r,o,a,c),e[h]=m,++h>d||h>p)break e;v=e[h],m=n[h]}for(v=e[d],m=n[p];v.key===m.key;){if(16384&m.flags&&(n[p]=m=_(m)),_e(v,m,t,r,o,a,c),e[d]=m,p--,h>--d||h>p)break e;v=e[d],m=n[p]}}if(h>d){if(h<=p)for(s=(f=p+1)p)for(;h<=d;)ke(e[h++],t);else!function(e,n,t,r,o,i,l,a,u,c,f,s,d){var p,h,v,m=0,g=a,b=a,C=i-a+1,x=l-a+1,w=new Int32Array(x+1),$=C===r,N=!1,S=0,P=0;if(o<4||(C|x)<32)for(m=g;m<=i;++m)if(p=e[m],Pa?N=!0:S=a,16384&h.flags&&(n[a]=h=_(h)),_e(p,h,u,t,c,f,d),++P;break}!$&&a>l&&ke(p,u)}else $||ke(p,u);else{var U={};for(m=b;m<=l;++m)U[n[m].key]=m;for(m=g;m<=i;++m)if(p=e[m],Pg;)ke(e[g++],u);w[a-b]=m+1,S>a?N=!0:S=a,16384&(h=n[a]).flags&&(n[a]=h=_(h)),_e(p,h,u,t,c,f,d),++P}else $||ke(p,u);else $||ke(p,u)}if($)$e(u,s,e),Me(n,u,t,c,f,d);else if(N){var V=function(e){var n=0,t=0,r=0,o=0,i=0,l=0,a=0,u=e.length;for(u>Ee&&(Ee=u,se=new Int32Array(u),de=new Int32Array(u));t>1]]0&&(de[t]=se[i-1]),se[i]=t)}i=o+1;var c=new Int32Array(i);for(l=se[i-1];i-- >0;)c[i]=l,l=de[l],se[i]=0;return c}(w);for(a=V.length-1,m=x-1;m>=0;m--)0===w[m]?(16384&(h=n[S=m+b]).flags&&(n[S]=h=_(h)),Ve(h,u,t,c,(v=S+1)=0;m--)0===w[m]&&(16384&(h=n[S=m+b]).flags&&(n[S]=h=_(h)),Ve(h,u,t,c,(v=S+1)l?l:i,d=0;dl)for(d=s;d0&&m(l),x.v=!1,o(r)&&r(),o(w.renderComplete)&&w.renderComplete(a,n)}function Be(e,n,t,r){void 0===t&&(t=null),void 0===r&&(r=f),Oe(e,n,t,r)}"undefined"!==typeof document&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);var Re=[],We="undefined"!==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):function(e){window.setTimeout(e,0)},je=!1;function He(e,n,r,i){var l=e.$PS;if(o(n)&&(n=n(l?a(e.state,l):e.state,e.props,e.context)),t(l))e.$PS=n;else for(var u in n)l[u]=n[u];if(e.$BR)o(r)&&e.$L.push(r.bind(e));else{if(!x.v&&0===Re.length)return void Xe(e,i,r);if(-1===Re.indexOf(e)&&Re.push(e),je||(je=!0,We(Qe)),o(r)){var c=e.$QU;c||(c=e.$QU=[]),c.push(r)}}}function ze(e){for(var n=e.$QU,t=0,r=n.length;t0&&m(i),x.v=!1}else e.state=e.$PS,e.$PS=null;o(t)&&t.call(e)}var qe=function(e,n){this.state=null,this.$BR=!1,this.$BS=!0,this.$PS=null,this.$LI=null,this.$UN=!1,this.$CX=null,this.$QU=null,this.$N=!1,this.$L=null,this.$SVG=!1,this.props=e||f,this.context=n||f};function Ge(e,n){var t={};if(e)for(var r in e)t[r]=e[r];if(n)for(var o in n)t[o]=n[o];return t}function Ke(e,n,t){var r=arguments,o=e.flags,i=14&o?e.props&&e.props.children:e.children,l=arguments.length-2,a=e.className,u=e.key,c=e.ref;if(n?(void 0!==n.className&&(a=n.className),void 0!==n.ref&&(c=n.ref),void 0!==n.key&&(u=n.key),void 0!==n.children&&(i=n.children)):n={},1===l)i=t;else if(l>1)for(i=[];l-- >0;)i[l]=r[l+2];if(n.children=i,14&o)return L(o,e.type,e.props||n?Ge(e.props,n):f,u,c);if(16&o)return M(i);if(8192&o)return I(1===l?[i]:i,0,u);return T(F(o,e.type,a,null,1,Ge(e.props,n),u,c))}qe.prototype.forceUpdate=function(e){if(this.$UN)return;He(this,{},e,!0)},qe.prototype.setState=function(e,n){if(this.$UN)return;this.$BS||He(this,e,n,!1)},qe.prototype.render=function(e,n,t){return null};var Je="a runtime error occured! Use Inferno in development environment to find the error.";function Ye(e){throw e||(e=Je),new Error("Inferno Error: "+e)}var Ze={componentDidMount:1,componentDidUnmount:1,componentDidUpdate:1,componentWillMount:1,componentWillUnmount:1,componentWillUpdate:1,constructor:1,render:1,shouldComponentUpdate:1};function en(e,n){for(var t in n)e[t]=n[t];return e}function nn(e,n){void 0===n&&(n={});for(var t=0,r=e.length;t1)for(r=[];f-- >0;)r[f]=i[f+2];if("string"!==typeof e){if(c=2,an(r)||(n||(n={}),n.children=r),!ln(n))for(var s in o={},n)"key"===s?a=n.key:"ref"===s?l=n.ref:1===un[s]?(l||(l={}),l[s]=n[s]):o[s]=n[s];return L(c,e,o,a,l)}if(c=E(e),!ln(n))for(var d in o={},n)"className"===d||"class"===d?u=n[d]:"key"===d?a=n.key:"children"===d&&an(r)?r=n.children:"ref"===d?l=n.ref:("contenteditable"===d&&(c|=4096),o[d]=n[d]);if(8192&c)return I(1===f?[r]:r,0,a);return F(c,e,u,r,0,o,a,l)}var fn="a runtime error occured! Use Inferno in development environment to find the error.";function sn(e){return null===e}function dn(e,n,t,r,o,i){var l=e.childFlags,a=e.children,u=e.props,c=e.flags;if(1!==l){if(2===l)sn(t)?Ve(a,n,r,o,null,i):t=(t=hn(a,n,t,r,o,i))?t.nextSibling:null;else if(16===l)sn(t)?n.appendChild(document.createTextNode(a)):1!==n.childNodes.length||3!==t.nodeType?n.textContent=a:t.nodeValue!==a&&(t.nodeValue=a),t=null;else if(12&l)for(var f=!1,s=0,d=a.length;s0?Ve(p,n,r,o,t,i):t=(t=hn(p,n,t,r,o,i))?t.nextSibling:null,f=(16&p.flags)>0}if(0===(8192&c))for(var h=null;t;)h=t.nextSibling,n.removeChild(t),t=h}else sn(n.firstChild)||function(e,n){return Boolean(n&&n.dangerouslySetInnerHTML&&n.dangerouslySetInnerHTML.__html&&function(e,n){var t=document.createElement("i");return t.innerHTML=n,t.innerHTML===e.innerHTML}(e,n.dangerouslySetInnerHTML.__html))}(n,u)||(n.textContent="",448&c&&(n.defaultValue=""))}function pn(e,n,t){if(3!==t.nodeType)n.replaceChild(e.dom=document.createTextNode(e.children),t);else{var r=e.children;t.nodeValue!==r&&(t.nodeValue=r),e.dom=t}return e.dom}function hn(e,n,t,r,o,i){var l=e.flags|=16384;if(14&l)return function(e,n,t,r,o,i,l){var a,u=e.type,c=e.ref,s=e.props||f;if(i){var d=Ue(e,u,s,r,o,l);a=hn(d.$LI,n,t,d.$CX,o,l),Ie(c,d,l)}else{var p=B(function(e,n,t){return 32768&e.flags?e.type.render(t,e.ref,n):e.type(t,n)}(e,r,s));a=hn(p,n,t,r,o,l),e.children=p,Te(e,l)}return a}(e,n,t,r,o,(4&l)>0,i);if(481&l)return function(e,n,t,r,o,i){var l,a=e.props,u=e.className,c=e.flags,f=e.ref;return o=o||(32&c)>0,1!==t.nodeType||t.tagName.toLowerCase()!==e.type?(Le(e,null,r,o,null,i),n.replaceChild(e.dom,t)):(e.dom=t,dn(e,t,t.firstChild,r,o,i),sn(a)||Se(e,c,a,t,o),void 0===(l=u)||null===l?""!==t.className&&t.removeAttribute("class"):o?t.setAttribute("class",u):t.className=u,be(f,t,i)),e.dom}(e,n,t,r,o,i);if(16&l)return pn(e,n,t);if(512&l)return e.dom=t;if(8192&l)return function(e,n,t,r,o,i){var l=e.children;if(2===e.childFlags)return pn(l,n,t),l.dom;return dn(e,n,t,r,o,i),function(e){for(var n,t;e;){if(2033&(n=e.flags))return e.dom;t=e.children,e=8192&n?2===e.childFlags?t:t[t.length-1]:4&n?t.$LI:t}return null}(l[l.length-1])}(e,n,t,r,o,i);return function(e){throw e||(e=fn),new Error("Inferno Error: "+e)}(),null}var vn=Array.isArray;function mn(e){return void 0===e||null===e}function gn(e){return"string"===typeof e}function yn(e){return null===e}function bn(){}bn.isRequired=bn;var kn=function(){return bn},Cn={any:kn,array:bn,arrayOf:kn,bool:bn,checkPropTypes:function(){return null},element:kn,func:bn,instanceOf:kn,node:kn,number:bn,object:bn,objectOf:kn,oneOf:kn,oneOfType:kn,shape:kn,string:bn,symbol:bn},xn={htmlFor:"for",onDoubleClick:"onDblClick"},wn=/[\-\:]([a-z])/g,$n=function(e){return e[1].toUpperCase()};function Nn(e,n){switch(e){case"animation-iteration-count":case"border-image-outset":case"border-image-slice":case"border-image-width":case"box-flex":case"box-flex-group":case"box-ordinal-group":case"column-count":case"fill-opacity":case"flex":case"flex-grow":case"flex-negative":case"flex-order":case"flex-positive":case"flex-shrink":case"flood-opacity":case"font-weight":case"grid-column":case"grid-row":case"line-clamp":case"line-height":case"opacity":case"order":case"orphans":case"stop-opacity":case"stroke-dasharray":case"stroke-dashoffset":case"stroke-miterlimit":case"stroke-opacity":case"stroke-width":case"tab-size":case"widows":case"z-index":case"zoom":return n;default:return n+"px"}}["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-constiant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","x-height","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xmlns:xlink","xml:lang","xml:space"].forEach((function(e){var n=e.replace(wn,$n);xn[n]=e}));var Sn=/[A-Z]/g;w.reactStyles=!0;var Pn=[],Un={map:function(e,n,t){if(mn(e))return e;return e=Un.toArray(e),t&&t!==e&&(n=n.bind(t)),e.map(n)},forEach:function(e,n,t){if(mn(e))return;e=Un.toArray(e),t&&t!==e&&(n=n.bind(t));for(var r=0,o=e.length;r0)for(var l;void 0!==(l=i.shift());)l()}n.$V=e,function(e){return"function"===typeof e}(t)&&t()},isValidElement:function(e){if("object"!==typeof e||yn(e))return!1;return(495&e.flags)>0},linkEvent:u,normalizeProps:T,options:w,render:En,rerender:Qe,unmountComponentAtNode:function(e){return Oe(null,e,null,null),!0},unstable_renderSubtreeIntoContainer:function(e,n,t,r){En(L(4,Dn,{children:n,context:e.context}),t,null);var o=n.children;return r&&r.call(o),o},version:"15.4.2"};window.React=On,window.ReactDOM=On}function Bn(e){return F(1,"li","TreeLeaf",M(e.children),0,null,null,null)}function Rn(e,n){return e!==n}function Wn(e){for(var n=e.data,t=n.children.length,r=new Array(t),o=0;o0,h=l(d),v=i(d)&&"$"===d[0];p||h||v?(a=a||o.slice(0,f),(p||v)&&(s=I(s)),(h||v)&&(s.key="$"+f),a.push(s)):a&&a.push(s),s.flags|=65536}}u=0===(a=a||o).length?1:8}else(a=o).flags|=65536,81920&o.flags&&(a=I(o)),u=2;return t.children=a,t.childFlags=u,t}function E(t){if(r(t)||n(t))return F(t,null);if(e(t))return L(t,0,null);return 16384&t.flags?I(t):t}var O="http://www.w3.org/1999/xlink",B="http://www.w3.org/XML/1998/namespace",R={"xlink:actuate":O,"xlink:arcrole":O,"xlink:href":O,"xlink:role":O,"xlink:show":O,"xlink:title":O,"xlink:type":O,"xml:base":B,"xml:lang":B,"xml:space":B};function W(e){return{onClick:e,onDblClick:e,onFocusIn:e,onFocusOut:e,onKeyDown:e,onKeyPress:e,onKeyUp:e,onMouseDown:e,onMouseMove:e,onMouseUp:e,onTouchEnd:e,onTouchMove:e,onTouchStart:e}}var j=W(0),H=W(null),z=W(!0);function Q(e,n){var t=n.$EV;return t||(t=n.$EV=W(null)),t[e]||1===++j[e]&&(H[e]=function(e){var n="onClick"===e||"onDblClick"===e?function(e){return function(n){if(0!==n.button)return void n.stopPropagation();q(n,!0,e,Y(n))}}(e):function(e){return function(n){q(n,!1,e,Y(n))}}(e);return document.addEventListener(s(e),n),n}(e)),t}function X(e,n){var t=n.$EV;t&&t[e]&&(0===--j[e]&&(document.removeEventListener(s(e),H[e]),H[e]=null),t[e]=null)}function q(e,n,t,r){var i=function(e){return o(e.composedPath)?e.composedPath()[0]:e.target}(e);do{if(n&&i.disabled)return;var a=i.$EV;if(a){var u=a[t];if(u&&(r.dom=i,u.event?u.event(u.data,e):u(e),e.cancelBubble))return}i=i.parentNode}while(!l(i))}function G(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function K(){return this.defaultPrevented}function J(){return this.cancelBubble}function Y(e){var n={dom:document};return e.isDefaultPrevented=K,e.isPropagationStopped=J,e.stopPropagation=G,Object.defineProperty(e,"currentTarget",{configurable:!0,get:function(){return n.dom}}),n}function Z(e,n,t){if(e[n]){var r=e[n];r.event?r.event(r.data,t):r(t)}else{var o=n.toLowerCase();e[o]&&e[o](t)}}function ee(e,n){var t=function(t){var r=this.$V;if(!r)return;var l=r.props||f,a=r.dom;if(i(e))Z(l,e,t);else for(var u=0;u-1&&r.options[a]&&(u=r.options[a].value),o&&t(u)&&(u=n.defaultValue),function n(r,o){if("option"===r.type)!function(n,r){var o=n.props||f,i=n.dom;i.value=o.value,o.value===r||e(r)&&-1!==r.indexOf(o.value)?i.selected=!0:t(r)&&t(o.selected)||(i.selected=o.selected||!1)}(r,o);else{var i=r.children,l=r.flags;if(4&l)n(i.$LI,o);else if(8&l)n(i,o);else if(2===r.childFlags)n(i,o);else if(12&r.childFlags)for(var a=0,u=i.length;a0;for(var a in l&&(i=ve(t))&&function(e,n,t){64&e?function(e,n){te(n.type)?(ne(e,"change",oe),ne(e,"click",ie)):ne(e,"input",re)}(n,t):256&e?function(e){ne(e,"change",ae)}(n):128&e&&function(e,n){ne(e,"input",se),n.onChange&&ne(e,"change",de)}(n,t)}(n,r,t),t)we(a,null,t[a],r,o,i,null);l&&he(n,e,r,t,!0,i)}function Ne(e,n,t){var r=E(e.render(n,e.state,t)),i=t;return o(e.getChildContext)&&(i=a(t,e.getChildContext())),e.$CX=i,r}function Se(e,n,t,r,i,a){var u=new n(t,r),c=u.$N=Boolean(n.getDerivedStateFromProps||u.getSnapshotBeforeUpdate);if(u.$SVG=i,u.$L=a,e.children=u,u.$BS=!1,u.context=r,u.props===f&&(u.props=t),c)u.state=k(u,t,u.state);else if(o(u.componentWillMount)){u.$BR=!0,u.componentWillMount();var s=u.$PS;if(!l(s)){var d=u.state;if(l(d))u.state=s;else for(var p in s)d[p]=s[p];u.$PS=null}u.$BR=!1}return u.$LI=Ne(u,t,r),u}function Pe(e,n,t,r,o,i){var l=e.flags|=16384;481&l?Ve(e,n,t,r,o,i):4&l?function(e,n,t,r,o,i){var l=Se(e,e.type,e.props||f,t,r,i);Pe(l.$LI,n,l.$CX,r,o,i),Le(e.ref,l,i)}(e,n,t,r,o,i):8&l?(function(e,n,t,r,o,i){Pe(e.children=E(function(e,n){return 32768&e.flags?e.type.render(e.props||f,e.ref,n):e.type(e.props||f,n)}(e,t)),n,t,r,o,i)}(e,n,t,r,o,i),Me(e,i)):512&l||16&l?Ue(e,n,o):8192&l?function(e,n,t,r,o,i){var l=e.children,a=e.childFlags;12&a&&0===l.length&&(a=e.childFlags=2,l=e.children=T()),2===a?Pe(l,t,o,r,o,i):Fe(l,t,n,r,o,i)}(e,t,n,r,o,i):1024&l&&function(e,n,t,r,o){Pe(e.children,e.ref,n,!1,null,o);var i=T();Ue(i,t,r),e.dom=i.dom}(e,t,n,o,i)}function Ue(e,n,t){var r=e.dom=document.createTextNode(e.children);l(n)||p(n,r,t)}function Ve(e,n,r,o,i,a){var u=e.flags,c=e.props,f=e.className,s=e.children,d=e.childFlags,h=e.dom=function(e,n){if(n)return document.createElementNS("http://www.w3.org/2000/svg",e);return document.createElement(e)}(e.type,o=o||(32&u)>0);if(t(f)||""===f||(o?h.setAttribute("class",f):h.className=f),16===d)w(h,s);else if(1!==d){var v=o&&"foreignObject"!==e.type;2===d?(16384&s.flags&&(e.children=s=I(s)),Pe(s,h,r,v,null,a)):8!==d&&4!==d||Fe(s,h,r,v,null,a)}l(n)||p(n,h,i),l(c)||$e(e,u,c,h,o),ge(e.ref,h,a)}function Fe(e,n,t,r,o,i){for(var l=0;l0,c!==s){var h=c||f;if((a=s||f)!==f)for(var v in(d=(448&i)>0)&&(p=ve(a)),a){var m=h[v],g=a[v];m!==g&&we(v,m,g,u,o,p,e)}if(h!==f)for(var y in h)t(a[y])&&!t(h[y])&&we(y,h[y],null,u,o,p,e)}var b=n.children,k=n.className;e.className!==k&&(t(k)?u.removeAttribute("class"):o?u.setAttribute("class",k):u.className=k),4096&i?function(e,n){e.textContent!==n&&(e.textContent=n)}(u,b):Te(e.childFlags,n.childFlags,e.children,b,u,r,o&&"foreignObject"!==n.type,null,e,l),d&&he(i,n,u,a,!1,p);var C=n.ref,x=e.ref;x!==C&&(me(x),ge(C,u,l))}(e,n,u,c,v,p):4&v?function(e,n,t,r,i,u,c){var s=n.children=e.children;if(l(s))return;s.$L=c;var d=n.props||f,p=n.ref,h=e.ref,v=s.state;if(!s.$N){if(o(s.componentWillReceiveProps)){if(s.$BR=!0,s.componentWillReceiveProps(d,r),s.$UN)return;s.$BR=!1}l(s.$PS)||(v=a(v,s.$PS),s.$PS=null)}_e(s,v,d,t,r,i,!1,u,c),h!==p&&(me(h),ge(p,s,c))}(e,n,i,u,c,s,p):8&v?function(e,n,r,i,l,a,u){var c=!0,s=n.props||f,d=n.ref,p=e.props,h=!t(d),v=e.children;if(h&&o(d.onComponentShouldUpdate)&&(c=d.onComponentShouldUpdate(p,s)),!1!==c){h&&o(d.onComponentWillUpdate)&&d.onComponentWillUpdate(p,s);var m=n.type,g=E(32768&n.flags?m.render(s,d,i):m(s,i));Ie(v,g,r,i,l,a,u),n.children=g,h&&o(d.onComponentDidUpdate)&&d.onComponentDidUpdate(p,s)}else n.children=v}(e,n,i,u,c,s,p):16&v?function(e,n){var t=n.children,r=n.dom=e.dom;t!==e.children&&(r.nodeValue=t)}(e,n):512&v?n.dom=e.dom:8192&v?function(e,n,t,r,o,i){var l=e.children,a=n.children,u=e.childFlags,c=n.childFlags,f=null;12&c&&0===a.length&&(c=n.childFlags=2,a=n.children=T());var s=0!==(2&c);if(12&u){var d=l.length;(8&u&&8&c||s||!s&&a.length>d)&&(f=g(l[d-1],!1).nextSibling)}Te(u,c,l,a,t,r,o,f,e,i)}(e,n,i,u,c,p):function(e,n,t,o){var i=e.ref,l=n.ref,a=n.children;if(Te(e.childFlags,n.childFlags,e.children,a,i,t,!1,null,e,o),n.dom=e.dom,i!==l&&!r(a)){var u=a.dom;h(i,u),d(l,u)}}(e,n,u,p)}function Te(e,n,t,r,o,i,l,a,u,c){switch(e){case 2:switch(n){case 2:Ie(t,r,o,i,l,a,c);break;case 1:ye(t,o);break;case 16:be(t),w(o,r);break;default:!function(e,n,t,r,o,i){be(e),Fe(n,t,r,o,g(e,!0),i),y(e,t)}(t,r,o,i,l,c)}break;case 1:switch(n){case 2:Pe(r,o,i,l,a,c);break;case 1:break;case 16:w(o,r);break;default:Fe(r,o,i,l,a,c)}break;case 16:switch(n){case 16:!function(e,n,t){e!==n&&(""!==e?t.firstChild.nodeValue=n:w(t,n))}(t,r,o);break;case 2:Ce(o),Pe(r,o,i,l,a,c);break;case 1:Ce(o);break;default:Ce(o),Fe(r,o,i,l,a,c)}break;default:switch(n){case 16:ke(t),w(o,r);break;case 2:xe(o,u,t),Pe(r,o,i,l,a,c);break;case 1:xe(o,u,t);break;default:var f=0|t.length,s=0|r.length;0===f?s>0&&Fe(r,o,i,l,a,c):0===s?xe(o,u,t):8===n&&8===e?function(e,n,t,r,o,i,l,a,u,c){var f,s,d=i-1,p=l-1,h=0,v=e[h],m=n[h];e:{for(;v.key===m.key;){if(16384&m.flags&&(n[h]=m=I(m)),Ie(v,m,t,r,o,a,c),e[h]=m,++h>d||h>p)break e;v=e[h],m=n[h]}for(v=e[d],m=n[p];v.key===m.key;){if(16384&m.flags&&(n[p]=m=I(m)),Ie(v,m,t,r,o,a,c),e[d]=m,p--,h>--d||h>p)break e;v=e[d],m=n[p]}}if(h>d){if(h<=p)for(s=(f=p+1)p)for(;h<=d;)ye(e[h++],t);else!function(e,n,t,r,o,i,l,a,u,c,f,s,d){var p,h,v,m=0,y=a,k=a,C=i-a+1,x=l-a+1,w=new Int32Array(x+1),$=C===r,N=!1,S=0,P=0;if(o<4||(C|x)<32)for(m=y;m<=i;++m)if(p=e[m],Pa?N=!0:S=a,16384&h.flags&&(n[a]=h=I(h)),Ie(p,h,u,t,c,f,d),++P;break}!$&&a>l&&ye(p,u)}else $||ye(p,u);else{var U={};for(m=k;m<=l;++m)U[n[m].key]=m;for(m=y;m<=i;++m)if(p=e[m],Py;)ye(e[y++],u);w[a-k]=m+1,S>a?N=!0:S=a,16384&(h=n[a]).flags&&(n[a]=h=I(h)),Ie(p,h,u,t,c,f,d),++P}else $||ye(p,u);else $||ye(p,u)}if($)xe(u,s,e),Fe(n,u,t,c,f,d);else if(N){var V=function(e){var n=0,t=0,r=0,o=0,i=0,l=0,a=0,u=e.length;for(u>Ae&&(Ae=u,ce=new Int32Array(u),fe=new Int32Array(u));t>1]]0&&(fe[t]=ce[i-1]),ce[i]=t)}i=o+1;var c=new Int32Array(i);for(l=ce[i-1];i-- >0;)c[i]=l,l=fe[l],ce[i]=0;return c}(w);for(a=V.length-1,m=x-1;m>=0;m--)0===w[m]?(16384&(h=n[S=m+k]).flags&&(n[S]=h=I(h)),Pe(h,u,t,c,(v=S+1)=0;m--)0===w[m]&&(16384&(h=n[S=m+k]).flags&&(n[S]=h=I(h)),Pe(h,u,t,c,(v=S+1)l?l:i,d=0;dl)for(d=s;d0&&v(l),C.v=!1,o(r)&&r(),o(x.renderComplete)&&x.renderComplete(a,n)}function Ee(e,n,t,r){void 0===t&&(t=null),void 0===r&&(r=f),De(e,n,t,r)}"undefined"!==typeof document&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);var Oe=[],Be="undefined"!==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):function(e){window.setTimeout(e,0)},Re=!1;function We(e,n,r,i){var l=e.$PS;if(o(n)&&(n=n(l?a(e.state,l):e.state,e.props,e.context)),t(l))e.$PS=n;else for(var u in n)l[u]=n[u];if(e.$BR)o(r)&&e.$L.push(r.bind(e));else{if(!C.v&&0===Oe.length)return void ze(e,i,r);if(-1===Oe.indexOf(e)&&Oe.push(e),Re||(Re=!0,Be(He)),o(r)){var c=e.$QU;c||(c=e.$QU=[]),c.push(r)}}}function je(e){for(var n=e.$QU,t=0,r=n.length;t0&&v(i),C.v=!1}else e.state=e.$PS,e.$PS=null;o(t)&&t.call(e)}var Qe=function(e,n){this.state=null,this.$BR=!1,this.$BS=!0,this.$PS=null,this.$LI=null,this.$UN=!1,this.$CX=null,this.$QU=null,this.$N=!1,this.$L=null,this.$SVG=!1,this.props=e||f,this.context=n||f};function Xe(e,n){var t={};if(e)for(var r in e)t[r]=e[r];if(n)for(var o in n)t[o]=n[o];return t}function qe(e,n,t){var r=arguments,o=e.flags,i=14&o?e.props&&e.props.children:e.children,l=arguments.length-2,a=e.className,u=e.key,c=e.ref;if(n?(void 0!==n.className&&(a=n.className),void 0!==n.ref&&(c=n.ref),void 0!==n.key&&(u=n.key),void 0!==n.children&&(i=n.children)):n={},1===l)i=t;else if(l>1)for(i=[];l-- >0;)i[l]=r[l+2];if(n.children=i,14&o)return V(o,e.type,e.props||n?Xe(e.props,n):f,u,c);if(16&o)return F(i);if(8192&o)return L(1===l?[i]:i,0,u);return M(U(o,e.type,a,null,1,Xe(e.props,n),u,c))}function Ge(e){throw e||(e="a runtime error occured! Use Inferno in development environment to find the error."),new Error("Inferno Error: "+e)}Qe.prototype.forceUpdate=function(e){if(this.$UN)return;We(this,{},e,!0)},Qe.prototype.setState=function(e,n){if(this.$UN)return;this.$BS||We(this,e,n,!1)},Qe.prototype.render=function(e,n,t){return null};var Ke={componentDidMount:1,componentDidUnmount:1,componentDidUpdate:1,componentWillMount:1,componentWillUnmount:1,componentWillUpdate:1,constructor:1,render:1,shouldComponentUpdate:1};function Je(e,n){for(var t in n)e[t]=n[t];return e}function Ye(e,n){void 0===n&&(n={});for(var t=0,r=e.length;t1)for(r=[];f-- >0;)r[f]=i[f+2];if(!rn(e)){if(c=2,on(r)||(n||(n={}),n.children=r),!tn(n))for(var s in o={},n)"key"===s?a=n.key:"ref"===s?l=n.ref:1===ln[s]?(l||(l={}),l[s]=n[s]):o[s]=n[s];return V(c,e,o,a,l)}if(c=A(e),!tn(n))for(var d in o={},n)"className"===d||"class"===d?u=n[d]:"key"===d?a=n.key:"children"===d&&on(r)?r=n.children:"ref"===d?l=n.ref:("contenteditable"===d&&(c|=4096),o[d]=n[d]);if(8192&c)return L(1===f?[r]:r,0,a);return U(c,e,u,r,0,o,a,l)}function un(e){return null===e}function cn(e,n,t,r,o,i){var l=e.childFlags,a=e.children,u=e.props,c=e.flags;if(1!==l){if(2===l)un(t)?Pe(a,n,r,o,null,i):t=(t=sn(a,n,t,r,o,i))?t.nextSibling:null;else if(16===l)un(t)?n.appendChild(document.createTextNode(a)):1!==n.childNodes.length||3!==t.nodeType?n.textContent=a:t.nodeValue!==a&&(t.nodeValue=a),t=null;else if(12&l)for(var f=!1,s=0,d=a.length;s0?Pe(p,n,r,o,t,i):t=(t=sn(p,n,t,r,o,i))?t.nextSibling:null,f=(16&p.flags)>0}if(0===(8192&c))for(var h=null;t;)h=t.nextSibling,n.removeChild(t),t=h}else un(n.firstChild)||function(e,n){return Boolean(n&&n.dangerouslySetInnerHTML&&n.dangerouslySetInnerHTML.__html&&function(e,n){var t=document.createElement("i");return t.innerHTML=n,t.innerHTML===e.innerHTML}(e,n.dangerouslySetInnerHTML.__html))}(n,u)||(n.textContent="",448&c&&(n.defaultValue=""))}function fn(e,n,t){if(3!==t.nodeType)n.replaceChild(e.dom=document.createTextNode(e.children),t);else{var r=e.children;t.nodeValue!==r&&(t.nodeValue=r),e.dom=t}return e.dom}function sn(e,n,t,r,o,i){var l=e.flags|=16384;if(14&l)return function(e,n,t,r,o,i,l){var a,u=e.type,c=e.ref,s=e.props||f;if(i){var d=Se(e,u,s,r,o,l);a=sn(d.$LI,n,t,d.$CX,o,l),Le(c,d,l)}else{var p=E(function(e,n,t){return 32768&e.flags?e.type.render(t,e.ref,n):e.type(t,n)}(e,r,s));a=sn(p,n,t,r,o,l),e.children=p,Me(e,l)}return a}(e,n,t,r,o,(4&l)>0,i);if(481&l)return function(e,n,t,r,o,i){var l,a=e.props,u=e.className,c=e.flags,f=e.ref;return o=o||(32&c)>0,1!==t.nodeType||t.tagName.toLowerCase()!==e.type?(Ve(e,null,r,o,null,i),n.replaceChild(e.dom,t)):(e.dom=t,cn(e,t,t.firstChild,r,o,i),un(a)||$e(e,c,a,t,o),void 0===(l=u)||null===l?""!==t.className&&t.removeAttribute("class"):o?t.setAttribute("class",u):t.className=u,ge(f,t,i)),e.dom}(e,n,t,r,o,i);if(16&l)return fn(e,n,t);if(512&l)return e.dom=t;if(8192&l)return function(e,n,t,r,o,i){var l=e.children;if(2===e.childFlags)return fn(l,n,t),l.dom;return cn(e,n,t,r,o,i),function(e){for(var n,t;e;){if(2033&(n=e.flags))return e.dom;t=e.children,e=8192&n?2===e.childFlags?t:t[t.length-1]:4&n?t.$LI:t}return null}(l[l.length-1])}(e,n,t,r,o,i);return function(e){throw e||(e="a runtime error occured! Use Inferno in development environment to find the error."),new Error("Inferno Error: "+e)}(),null}var dn=Array.isArray;function pn(e){return void 0===e||null===e}function hn(e){return"string"===typeof e}function vn(e){return null===e}function mn(){}mn.isRequired=mn;var gn=function(){return mn},yn={any:gn,array:mn,arrayOf:gn,bool:mn,checkPropTypes:function(){return null},element:gn,func:mn,instanceOf:gn,node:gn,number:mn,object:mn,objectOf:gn,oneOf:gn,oneOfType:gn,shape:gn,string:mn,symbol:mn},bn={htmlFor:"for",onDoubleClick:"onDblClick"},kn=/[\-\:]([a-z])/g,Cn=function(e){return e[1].toUpperCase()};function xn(e,n){switch(e){case"animation-iteration-count":case"border-image-outset":case"border-image-slice":case"border-image-width":case"box-flex":case"box-flex-group":case"box-ordinal-group":case"column-count":case"fill-opacity":case"flex":case"flex-grow":case"flex-negative":case"flex-order":case"flex-positive":case"flex-shrink":case"flood-opacity":case"font-weight":case"grid-column":case"grid-row":case"line-clamp":case"line-height":case"opacity":case"order":case"orphans":case"stop-opacity":case"stroke-dasharray":case"stroke-dashoffset":case"stroke-miterlimit":case"stroke-opacity":case"stroke-width":case"tab-size":case"widows":case"z-index":case"zoom":return n;default:return n+"px"}}["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-constiant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","x-height","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xmlns:xlink","xml:lang","xml:space"].forEach((function(e){var n=e.replace(kn,Cn);bn[n]=e}));var wn=/[A-Z]/g;x.reactStyles=!0;var $n=[],Nn={map:function(e,n,t){if(pn(e))return e;return e=Nn.toArray(e),t&&(n=n.bind(t)),e.map(n)},forEach:function(e,n,t){if(pn(e))return;e=Nn.toArray(e),t&&(n=n.bind(t));for(var r=0,o=e.length;r0)for(var l;void 0!==(l=i.shift());)l()}n.$V=e,function(e){return"function"===typeof e}(t)&&t()},isValidElement:function(e){if("object"!==typeof e||vn(e))return!1;return(495&e.flags)>0},linkEvent:u,normalizeProps:M,options:x,render:_n,rerender:He,unmountComponentAtNode:function(e){return De(null,e,null,null),!0},unstable_renderSubtreeIntoContainer:function(e,n,t,r){_n(V(4,Tn,{children:n,context:e.context}),t,null);var o=n.children;return r&&r.call(o),o},version:"15.4.2"};window.React=An,window.ReactDOM=An}function Dn(e){return U(1,"li","TreeLeaf",F(e.children),0,null,null,null)}function En(e,n){return e!==n}function On(e){for(var n=e.data,t=n.children.length,r=new Array(t),o=0;o0,v=i(d),h=o(d)&&d[0]===P;p||v||h?(a=a||l.slice(0,f),(p||h)&&(s=A(s)),(v||h)&&(s.key=P+f),a.push(s)):a&&a.push(s),s.flags|=65536}}u=0===(a=a||l).length?1:8}else(a=l).flags|=65536,81920&l.flags&&(a=A(l)),u=2;t.children=a,t.childFlags=u}(v,v.children),v}function U(e,n,r,l,o){return new S(1,null,null,e=function(e,n){if(12&e)return e;if(n.prototype&&n.prototype.render)return 4;if(n.render)return 32776;return 8}(e,n),l,function(e,n,r){var l=(32768&e?n.render:n).defaultProps;if(t(l))return r;if(t(r))return a(l,null);return $(r,l)}(e,n,r),function(e,n,r){if(4&e)return r;var l=(32768&e?n.render:n).defaultHooks;if(t(l))return r;if(t(r))return l;return $(r,l)}(e,n,o),n)}function L(e,n){return new S(1,t(e)||!0===e||!1===e?"":e,null,16,n,null,null,null)}function V(e,n,t){var r=x(8192,8192,null,e,n,null,t,null);switch(r.childFlags){case 1:r.children=N(),r.childFlags=2;break;case 16:r.children=[L(e)],r.childFlags=4}return r}function A(e){var n=-16385&e.flags,t=e.props;if(14&n&&!i(t)){var r=t;for(var l in t={},r)t[l]=r[l]}if(0===(8192&n))return new S(e.childFlags,e.children,e.className,n,e.key,t,e.ref,e.type);return function(e){var n,t=e.children,r=e.childFlags;if(2===r)n=A(t);else if(12&r){n=[];for(var l=0,o=t.length;l-1&&r.options[a]&&(u=r.options[a].value),l&&t(u)&&(u=n.defaultValue),function n(r,l){if("option"===r.type)!function(n,r){var l=n.props||f,o=n.dom;o.value=l.value,l.value===r||e(r)&&-1!==r.indexOf(l.value)?o.selected=!0:t(r)&&t(l.selected)||(o.selected=l.selected||!1)}(r,l);else{var o=r.children,i=r.flags;if(4&i)n(o.$LI,l);else if(8&i)n(o,l);else if(2===r.childFlags)n(o,l);else if(12&r.childFlags)for(var a=0,u=o.length;a0);if(t(f)||""===f||(l?v.setAttribute("class",f):v.className=f),16===d)C(v,s);else if(1!==d){var h=l&&"foreignObject"!==e.type;2===d?(16384&s.flags&&(e.children=s=A(s)),Ce(s,v,r,h,null,a)):8!==d&&4!==d||$e(s,v,r,h,null,a)}i(n)||p(n,v,o),i(c)||function(e,n,t,r,l){var o=!1,i=(448&n)>0;for(var a in i&&(o=se(t))&&function(e,n,t){64&e?function(e,n){Y(n.type)?(Q(e,"change",ee),Q(e,"click",ne)):Q(e,"input",Z)}(n,t):256&e?function(e){Q(e,"change",re)}(n):128&e&&function(e,n){Q(e,"input",ae),n.onChange&&Q(e,"change",ue)}(n,t)}(n,r,t),t)be(a,null,t[a],r,l,o,null);i&&fe(n,e,r,t,!0,o)}(e,u,c,v,l),pe(e.ref,v,a)}(e,n,r,o,a,u):4&c?function(e,n,t,r,o,a){var u=function(e,n,t,r,o,a){var u=new n(t,r),c=u.$N=Boolean(n.getDerivedStateFromProps||u.getSnapshotBeforeUpdate);if(u.$SVG=o,u.$L=a,e.children=u,u.$BS=!1,u.context=r,u.props===f&&(u.props=t),c)u.state=b(u,t,u.state);else if(l(u.componentWillMount)){u.$BR=!0,u.componentWillMount();var s=u.$PS;if(!i(s)){var d=u.state;if(i(d))u.state=s;else for(var p in s)d[p]=s[p];u.$PS=null}u.$BR=!1}return u.$LI=ke(u,t,r),u}(e,e.type,e.props||f,t,r,a);Ce(u.$LI,n,u.$CX,r,o,a),function(e,n,t){pe(e,n,t),l(n.componentDidMount)&&t.push(function(e){return function(){e.componentDidMount()}}(n))}(e.ref,u,a)}(e,n,r,o,a,u):8&c?(function(e,n,t,r,l,o){Ce(e.children=M(function(e,n){return 32768&e.flags?e.type.render(e.props||f,e.ref,n):e.type(e.props||f,n)}(e,t)),n,t,r,l,o)}(e,n,r,o,a,u),function(e,n){var r=e.ref;t(r)||(F(r.onComponentWillMount,e.props||f),l(r.onComponentDidMount)&&n.push(function(e,n){return function(){e.onComponentDidMount(m(n,!0),n.props||f)}}(r,e)))}(e,u)):512&c||16&c?we(e,n,a):8192&c?function(e,n,t,r,l,o){var i=e.children,a=e.childFlags;12&a&&0===i.length&&(a=e.childFlags=2,i=e.children=N()),2===a?Ce(i,t,l,r,l,o):$e(i,t,n,r,l,o)}(e,r,n,o,a,u):1024&c&&function(e,n,t,r,l){Ce(e.children,e.ref,n,!1,null,l);var o=N();we(o,t,r),e.dom=o.dom}(e,r,n,a,u)}function we(e,n,t){var r=e.dom=document.createTextNode(e.children);i(n)||p(n,r,t)}function $e(e,n,t,r,l,o){for(var i=0;i0,c!==s){var v=c||f;if((a=s||f)!==f)for(var h in(d=(448&o)>0)&&(p=se(a)),a){var m=v[h],g=a[h];m!==g&&be(h,m,g,u,l,p,e)}if(v!==f)for(var y in v)t(a[y])&&!t(v[y])&&be(y,v[y],null,u,l,p,e)}var b=n.children,k=n.className;e.className!==k&&(t(k)?u.removeAttribute("class"):l?u.setAttribute("class",k):u.className=k),4096&o?function(e,n){e.textContent!==n&&(e.textContent=n)}(u,b):Pe(e.childFlags,n.childFlags,e.children,b,u,r,l&&"foreignObject"!==n.type,null,e,i),d&&fe(o,n,u,a,!1,p);var C=n.ref,w=e.ref;w!==C&&(de(w),pe(C,u,i))}(e,n,u,c,h,p):4&h?function(e,n,t,r,o,u,c){var s=n.children=e.children;if(i(s))return;s.$L=c;var d=n.props||f,p=n.ref,v=e.ref,h=s.state;if(!s.$N){if(l(s.componentWillReceiveProps)){if(s.$BR=!0,s.componentWillReceiveProps(d,r),s.$UN)return;s.$BR=!1}i(s.$PS)||(h=a(h,s.$PS),s.$PS=null)}(function(e,n,t,r,o,i,u,c,f){var s=e.state,d=e.props,p=Boolean(e.$N),v=l(e.shouldComponentUpdate);if(p&&(n=b(e,t,n!==s?a(s,n):n)),!v||v&&e.shouldComponentUpdate(t,n,o)){!p&&l(e.componentWillUpdate)&&e.componentWillUpdate(t,n,o),e.props=t,e.state=n,e.context=o;var h=null,m=ke(e,t,o);p&&l(e.getSnapshotBeforeUpdate)&&(h=e.getSnapshotBeforeUpdate(d,s)),Fe(e.$LI,m,r,e.$CX,i,c,f),e.$LI=m,l(e.componentDidUpdate)&&function(e,n,t,r,l){l.push((function(){e.componentDidUpdate(n,t,r)}))}(e,d,s,h,f)}else e.props=t,e.state=n,e.context=o})(s,h,d,t,r,o,0,u,c),v!==p&&(de(v),pe(p,s,c))}(e,n,o,u,c,s,p):8&h?function(e,n,r,o,i,a,u){var c=!0,s=n.props||f,d=n.ref,p=e.props,v=!t(d),h=e.children;if(v&&l(d.onComponentShouldUpdate)&&(c=d.onComponentShouldUpdate(p,s)),!1!==c){v&&l(d.onComponentWillUpdate)&&d.onComponentWillUpdate(p,s);var m=n.type,g=M(32768&n.flags?m.render(s,d,o):m(s,o));Fe(h,g,r,o,i,a,u),n.children=g,v&&l(d.onComponentDidUpdate)&&d.onComponentDidUpdate(p,s)}else n.children=h}(e,n,o,u,c,s,p):16&h?function(e,n){var t=n.children,r=n.dom=e.dom;t!==e.children&&(r.nodeValue=t)}(e,n):512&h?n.dom=e.dom:8192&h?function(e,n,t,r,l,o){var i=e.children,a=n.children,u=e.childFlags,c=n.childFlags,f=null;12&c&&0===a.length&&(c=n.childFlags=2,a=n.children=N());var s=0!==(2&c);if(12&u){var d=i.length;(8&u&&8&c||s||!s&&a.length>d)&&(f=m(i[d-1],!1).nextSibling)}Pe(u,c,i,a,t,r,l,f,e,o)}(e,n,o,u,c,p):function(e,n,t,l){var o=e.ref,i=n.ref,a=n.children;if(Pe(e.childFlags,n.childFlags,e.children,a,o,t,!1,null,e,l),n.dom=e.dom,o!==i&&!r(a)){var u=a.dom;v(o,u),d(i,u)}}(e,n,u,p)}function Pe(e,n,t,r,l,o,i,a,u,c){switch(e){case 2:switch(n){case 2:Fe(t,r,l,o,i,a,c);break;case 1:ve(t,l);break;case 16:he(t),C(l,r);break;default:!function(e,n,t,r,l,o){he(e),$e(n,t,r,l,m(e,!0),o),g(e,t)}(t,r,l,o,i,c)}break;case 1:switch(n){case 2:Ce(r,l,o,i,a,c);break;case 1:break;case 16:C(l,r);break;default:$e(r,l,o,i,a,c)}break;case 16:switch(n){case 16:!function(e,n,t){e!==n&&(""!==e?t.firstChild.nodeValue=n:C(t,n))}(t,r,l);break;case 2:ge(l),Ce(r,l,o,i,a,c);break;case 1:ge(l);break;default:ge(l),$e(r,l,o,i,a,c)}break;default:switch(n){case 16:me(t),C(l,r);break;case 2:ye(l,u,t),Ce(r,l,o,i,a,c);break;case 1:ye(l,u,t);break;default:var f=0|t.length,s=0|r.length;0===f?s>0&&$e(r,l,o,i,a,c):0===s?ye(l,u,t):8===n&&8===e?function(e,n,t,r,l,o,i,a,u,c){var f,s,d=o-1,p=i-1,v=0,h=e[v],g=n[v];e:{for(;h.key===g.key;){if(16384&g.flags&&(n[v]=g=A(g)),Fe(h,g,t,r,l,a,c),e[v]=g,++v>d||v>p)break e;h=e[v],g=n[v]}for(h=e[d],g=n[p];h.key===g.key;){if(16384&g.flags&&(n[p]=g=A(g)),Fe(h,g,t,r,l,a,c),e[d]=g,p--,v>--d||v>p)break e;h=e[d],g=n[p]}}if(v>d){if(v<=p)for(s=(f=p+1)p)for(;v<=d;)ve(e[v++],t);else!function(e,n,t,r,l,o,i,a,u,c,f,s,d){var p,v,h,g=0,b=a,k=a,C=o-a+1,w=i-a+1,$=new Int32Array(w+1),F=C===r,P=!1,S=0,x=0;if(l<4||(C|w)<32)for(g=b;g<=o;++g)if(p=e[g],xa?P=!0:S=a,16384&v.flags&&(n[a]=v=A(v)),Fe(p,v,u,t,c,f,d),++x;break}!F&&a>i&&ve(p,u)}else F||ve(p,u);else{var U={};for(g=k;g<=i;++g)U[n[g].key]=g;for(g=b;g<=o;++g)if(p=e[g],xb;)ve(e[b++],u);$[a-k]=g+1,S>a?P=!0:S=a,16384&(v=n[a]).flags&&(n[a]=v=A(v)),Fe(p,v,u,t,c,f,d),++x}else F||ve(p,u);else F||ve(p,u)}if(F)ye(u,s,e),$e(n,u,t,c,f,d);else if(P){var L=function(e){var n=0,t=0,r=0,l=0,o=0,i=0,a=0,u=e.length;for(u>Se&&(Se=u,oe=new Int32Array(u),ie=new Int32Array(u));t>1]]0&&(ie[t]=oe[o-1]),oe[o]=t)}o=l+1;var c=new Int32Array(o);for(i=oe[o-1];o-- >0;)c[o]=i,i=ie[i],oe[o]=0;return c}($);for(a=L.length-1,g=w-1;g>=0;g--)0===$[g]?(16384&(v=n[S=g+k]).flags&&(n[S]=v=A(v)),Ce(v,u,t,c,(h=S+1)=0;g--)0===$[g]&&(16384&(v=n[S=g+k]).flags&&(n[S]=v=A(v)),Ce(v,u,t,c,(h=S+1)i?i:o,d=0;di)for(d=s;d0&&function(e){for(var n;void 0!==(n=e.shift());)n()}(i),l(r)&&r(),l(k.renderComplete)&&k.renderComplete(a,n)}(e,n,r,o)}function Ue(e){return x(1,"li","TreeLeaf",e.children,0,null,null,null)}function Le(e,n){return e!==n}function Ve(e){for(var n=e.data,t=n.children.length,r=new Array(t),l=0;l0,v=i(d),h=o(d)&&"$"===d[0];p||v||h?(a=a||l.slice(0,f),(p||h)&&(s=N(s)),(v||h)&&(s.key="$"+f),a.push(s)):a&&a.push(s),s.flags|=65536}}u=0===(a=a||l).length?1:8}else(a=l).flags|=65536,81920&l.flags&&(a=N(l)),u=2;t.children=a,t.childFlags=u}(v,v.children),v}function x(e,n,r,l,o){var i=new P(1,null,null,e=function(e,n){if(12&e)return e;if(n.prototype&&n.prototype.render)return 4;if(n.render)return 32776;return 8}(e,n),l,function(e,n,r){var l=(32768&e?n.render:n).defaultProps;if(t(l))return r;if(t(r))return a(l,null);return $(r,l)}(e,n,r),function(e,n,r){if(4&e)return r;var l=(32768&e?n.render:n).defaultHooks;if(t(l))return r;if(t(r))return l;return $(r,l)}(e,n,o),n);return k.createVNode&&k.createVNode(i),i}function U(e,n){return new P(1,t(e)||!0===e||!1===e?"":e,null,16,n,null,null,null)}function V(e,n,t){var r=S(8192,8192,null,e,n,null,t,null);switch(r.childFlags){case 1:r.children=L(),r.childFlags=2;break;case 16:r.children=[U(e)],r.childFlags=4}return r}function N(e){var n=-16385&e.flags,t=e.props;if(14&n&&!i(t)){var r=t;for(var l in t={},r)t[l]=r[l]}if(0===(8192&n))return new P(e.childFlags,e.children,e.className,n,e.key,t,e.ref,e.type);return function(e){var n,t=e.children,r=e.childFlags;if(2===r)n=N(t);else if(12&r){n=[];for(var l=0,o=t.length;l-1&&r.options[a]&&(u=r.options[a].value),l&&t(u)&&(u=n.defaultValue),function n(r,l){if("option"===r.type)!function(n,r){var l=n.props||f,o=n.dom;o.value=l.value,l.value===r||e(r)&&-1!==r.indexOf(l.value)?o.selected=!0:t(r)&&t(l.selected)||(o.selected=l.selected||!1)}(r,l);else{var o=r.children,i=r.flags;if(4&i)n(o.$LI,l);else if(8&i)n(o,l);else if(2===r.childFlags)n(o,l);else if(12&r.childFlags)for(var a=0,u=o.length;a0);if(t(f)||""===f||(l?v.setAttribute("class",f):v.className=f),16===d)C(v,s);else if(1!==d){var h=l&&"foreignObject"!==e.type;2===d?(16384&s.flags&&(e.children=s=N(s)),ke(s,v,r,h,null,a)):8!==d&&4!==d||we(s,v,r,h,null,a)}i(n)||p(n,v,o),i(c)||function(e,n,t,r,l){var o=!1,i=(448&n)>0;for(var a in i&&(o=fe(t))&&function(e,n,t){64&e?function(e,n){Q(n.type)?(J(e,"change",Z),J(e,"click",ee)):J(e,"input",Y)}(n,t):256&e?function(e){J(e,"change",te)}(n):128&e&&function(e,n){J(e,"input",ie),n.onChange&&J(e,"change",ae)}(n,t)}(n,r,t),t)ye(a,null,t[a],r,l,o,null);i&&ce(n,e,r,t,!0,o)}(e,u,c,v,l),de(e.ref,v,a)}(e,n,r,o,a,u):4&c?function(e,n,t,r,o,a){var u=function(e,n,t,r,o,a){var u=new n(t,r),c=u.$N=Boolean(n.getDerivedStateFromProps||u.getSnapshotBeforeUpdate);if(u.$SVG=o,u.$L=a,e.children=u,u.$BS=!1,u.context=r,u.props===f&&(u.props=t),c)u.state=b(u,t,u.state);else if(l(u.componentWillMount)){u.$BR=!0,u.componentWillMount();var s=u.$PS;if(!i(s)){var d=u.state;if(i(d))u.state=s;else for(var p in s)d[p]=s[p];u.$PS=null}u.$BR=!1}return u.$LI=be(u,t,r),u}(e,e.type,e.props||f,t,r,a);ke(u.$LI,n,u.$CX,r,o,a),function(e,n,t){de(e,n,t),l(n.componentDidMount)&&t.push(function(e){return function(){e.componentDidMount()}}(n))}(e.ref,u,a)}(e,n,r,o,a,u):8&c?(function(e,n,t,r,l,o){ke(e.children=I(function(e,n){return 32768&e.flags?e.type.render(e.props||f,e.ref,n):e.type(e.props||f,n)}(e,t)),n,t,r,l,o)}(e,n,r,o,a,u),function(e,n){var r=e.ref;t(r)||(F(r.onComponentWillMount,e.props||f),l(r.onComponentDidMount)&&n.push(function(e,n){return function(){e.onComponentDidMount(m(n,!0),n.props||f)}}(r,e)))}(e,u)):512&c||16&c?Ce(e,n,a):8192&c?function(e,n,t,r,l,o){var i=e.children,a=e.childFlags;12&a&&0===i.length&&(a=e.childFlags=2,i=e.children=L()),2===a?ke(i,t,l,r,l,o):we(i,t,n,r,l,o)}(e,r,n,o,a,u):1024&c&&function(e,n,t,r,l){ke(e.children,e.ref,n,!1,null,l);var o=L();Ce(o,t,r),e.dom=o.dom}(e,r,n,a,u)}function Ce(e,n,t){var r=e.dom=document.createTextNode(e.children);i(n)||p(n,r,t)}function we(e,n,t,r,l,o){for(var i=0;i0,c!==s){var v=c||f;if((a=s||f)!==f)for(var h in(d=(448&o)>0)&&(p=fe(a)),a){var m=v[h],g=a[h];m!==g&&ye(h,m,g,u,l,p,e)}if(v!==f)for(var y in v)t(a[y])&&!t(v[y])&&ye(y,v[y],null,u,l,p,e)}var b=n.children,k=n.className;e.className!==k&&(t(k)?u.removeAttribute("class"):l?u.setAttribute("class",k):u.className=k),4096&o?function(e,n){e.textContent!==n&&(e.textContent=n)}(u,b):Fe(e.childFlags,n.childFlags,e.children,b,u,r,l&&"foreignObject"!==n.type,null,e,i),d&&ce(o,n,u,a,!1,p);var C=n.ref,w=e.ref;w!==C&&(se(w),de(C,u,i))}(e,n,u,c,h,p):4&h?function(e,n,t,r,o,u,c){var s=n.children=e.children;if(i(s))return;s.$L=c;var d=n.props||f,p=n.ref,v=e.ref,h=s.state;if(!s.$N){if(l(s.componentWillReceiveProps)){if(s.$BR=!0,s.componentWillReceiveProps(d,r),s.$UN)return;s.$BR=!1}i(s.$PS)||(h=a(h,s.$PS),s.$PS=null)}(function(e,n,t,r,o,i,u,c,f){var s=e.state,d=e.props,p=Boolean(e.$N),v=l(e.shouldComponentUpdate);if(p&&(n=b(e,t,n!==s?a(s,n):n)),!v||v&&e.shouldComponentUpdate(t,n,o)){!p&&l(e.componentWillUpdate)&&e.componentWillUpdate(t,n,o),e.props=t,e.state=n,e.context=o;var h=null,m=be(e,t,o);p&&l(e.getSnapshotBeforeUpdate)&&(h=e.getSnapshotBeforeUpdate(d,s)),$e(e.$LI,m,r,e.$CX,i,c,f),e.$LI=m,l(e.componentDidUpdate)&&function(e,n,t,r,l){l.push((function(){e.componentDidUpdate(n,t,r)}))}(e,d,s,h,f)}else e.props=t,e.state=n,e.context=o})(s,h,d,t,r,o,0,u,c),v!==p&&(se(v),de(p,s,c))}(e,n,o,u,c,s,p):8&h?function(e,n,r,o,i,a,u){var c=!0,s=n.props||f,d=n.ref,p=e.props,v=!t(d),h=e.children;if(v&&l(d.onComponentShouldUpdate)&&(c=d.onComponentShouldUpdate(p,s)),!1!==c){v&&l(d.onComponentWillUpdate)&&d.onComponentWillUpdate(p,s);var m=n.type,g=I(32768&n.flags?m.render(s,d,o):m(s,o));$e(h,g,r,o,i,a,u),n.children=g,v&&l(d.onComponentDidUpdate)&&d.onComponentDidUpdate(p,s)}else n.children=h}(e,n,o,u,c,s,p):16&h?function(e,n){var t=n.children,r=n.dom=e.dom;t!==e.children&&(r.nodeValue=t)}(e,n):512&h?n.dom=e.dom:8192&h?function(e,n,t,r,l,o){var i=e.children,a=n.children,u=e.childFlags,c=n.childFlags,f=null;12&c&&0===a.length&&(c=n.childFlags=2,a=n.children=L());var s=0!==(2&c);if(12&u){var d=i.length;(8&u&&8&c||s||!s&&a.length>d)&&(f=m(i[d-1],!1).nextSibling)}Fe(u,c,i,a,t,r,l,f,e,o)}(e,n,o,u,c,p):function(e,n,t,l){var o=e.ref,i=n.ref,a=n.children;if(Fe(e.childFlags,n.childFlags,e.children,a,o,t,!1,null,e,l),n.dom=e.dom,o!==i&&!r(a)){var u=a.dom;v(o,u),d(i,u)}}(e,n,u,p)}function Fe(e,n,t,r,l,o,i,a,u,c){switch(e){case 2:switch(n){case 2:$e(t,r,l,o,i,a,c);break;case 1:pe(t,l);break;case 16:ve(t),C(l,r);break;default:!function(e,n,t,r,l,o){ve(e),we(n,t,r,l,m(e,!0),o),g(e,t)}(t,r,l,o,i,c)}break;case 1:switch(n){case 2:ke(r,l,o,i,a,c);break;case 1:break;case 16:C(l,r);break;default:we(r,l,o,i,a,c)}break;case 16:switch(n){case 16:!function(e,n,t){e!==n&&(""!==e?t.firstChild.nodeValue=n:C(t,n))}(t,r,l);break;case 2:me(l),ke(r,l,o,i,a,c);break;case 1:me(l);break;default:me(l),we(r,l,o,i,a,c)}break;default:switch(n){case 16:he(t),C(l,r);break;case 2:ge(l,u,t),ke(r,l,o,i,a,c);break;case 1:ge(l,u,t);break;default:var f=0|t.length,s=0|r.length;0===f?s>0&&we(r,l,o,i,a,c):0===s?ge(l,u,t):8===n&&8===e?function(e,n,t,r,l,o,i,a,u,c){var f,s,d=o-1,p=i-1,v=0,h=e[v],g=n[v];e:{for(;h.key===g.key;){if(16384&g.flags&&(n[v]=g=N(g)),$e(h,g,t,r,l,a,c),e[v]=g,++v>d||v>p)break e;h=e[v],g=n[v]}for(h=e[d],g=n[p];h.key===g.key;){if(16384&g.flags&&(n[p]=g=N(g)),$e(h,g,t,r,l,a,c),e[d]=g,p--,v>--d||v>p)break e;h=e[d],g=n[p]}}if(v>d){if(v<=p)for(s=(f=p+1)p)for(;v<=d;)pe(e[v++],t);else!function(e,n,t,r,l,o,i,a,u,c,f,s,d){var p,v,h,g=0,b=a,k=a,C=o-a+1,w=i-a+1,$=new Int32Array(w+1),F=C===r,P=!1,S=0,x=0;if(l<4||(C|w)<32)for(g=b;g<=o;++g)if(p=e[g],xa?P=!0:S=a,16384&v.flags&&(n[a]=v=N(v)),$e(p,v,u,t,c,f,d),++x;break}!F&&a>i&&pe(p,u)}else F||pe(p,u);else{var U={};for(g=k;g<=i;++g)U[n[g].key]=g;for(g=b;g<=o;++g)if(p=e[g],xb;)pe(e[b++],u);$[a-k]=g+1,S>a?P=!0:S=a,16384&(v=n[a]).flags&&(n[a]=v=N(v)),$e(p,v,u,t,c,f,d),++x}else F||pe(p,u);else F||pe(p,u)}if(F)ge(u,s,e),we(n,u,t,c,f,d);else if(P){var V=function(e){var n=0,t=0,r=0,l=0,o=0,i=0,a=0,u=e.length;for(u>Pe&&(Pe=u,le=new Int32Array(u),oe=new Int32Array(u));t>1]]0&&(oe[t]=le[o-1]),le[o]=t)}o=l+1;var c=new Int32Array(o);for(i=le[o-1];o-- >0;)c[o]=i,i=oe[i],le[o]=0;return c}($);for(a=V.length-1,g=w-1;g>=0;g--)0===$[g]?(16384&(v=n[S=g+k]).flags&&(n[S]=v=N(v)),ke(v,u,t,c,(h=S+1)=0;g--)0===$[g]&&(16384&(v=n[S=g+k]).flags&&(n[S]=v=N(v)),ke(v,u,t,c,(h=S+1)i?i:o,d=0;di)for(d=s;d0&&function(e){for(var n;void 0!==(n=e.shift());)n()}(i),l(r)&&r(),l(k.renderComplete)&&k.renderComplete(a,n)}(e,n,r,o)}function xe(e){return S(1,"li","TreeLeaf",e.children,0,null,null,null)}function Ue(e,n){return e!==n}function Ve(e){for(var n=e.data,t=n.children.length,r=new Array(t),l=0;l0,h=a(d),v=i(d)&&d[0]===S;p||h||v?(l=l||r.slice(0,s),(p||v)&&(f=B(f)),(h||v)&&(f.key=S+s),l.push(f)):l&&l.push(f),f.flags|=65536}}u=0===(l=l||r).length?1:8}else(l=r).flags|=65536,81920&r.flags&&(l=B(r)),u=2;e.children=l,e.childFlags=u}(h,h.children),h}function N(e,n,t,o,l){return new F(1,null,null,e=function(e,n){if(12&e)return e;if(n.prototype&&n.prototype.render)return 4;if(n.render)return 32776;return 8}(e,n),o,function(e,n,t){var o=(32768&e?n.render:n).defaultProps;if(r(o))return t;if(r(t))return u(o,null);return x(t,o)}(e,n,t),function(e,n,t){if(4&e)return t;var o=(32768&e?n.render:n).defaultHooks;if(r(o))return t;if(r(t))return o;return x(t,o)}(e,n,l),n)}function V(e,n){return new F(1,r(e)||!0===e||!1===e?"":e,null,16,n,null,null,null)}function I(e,n,t){var r=L(8192,8192,null,e,n,null,t,null);switch(r.childFlags){case 1:r.children=M(),r.childFlags=2;break;case 16:r.children=[V(e)],r.childFlags=4}return r}function B(e){var n=-16385&e.flags,t=e.props;if(14&n&&!a(t)){var r=t;for(var o in t={},r)t[o]=r[o]}if(0===(8192&n))return new F(e.childFlags,e.children,e.className,n,e.key,t,e.ref,e.type);return function(e){var n,t=e.children,r=e.childFlags;if(2===r)n=B(t);else if(12&r){n=[];for(var o=0,l=t.length;o-1&&t.options[a]&&(u=t.options[a].value),o&&r(u)&&(u=e.defaultValue),function e(t,o){if("option"===t.type)!function(e,t){var o=e.props||s,l=e.dom;l.value=o.value,o.value===t||n(t)&&-1!==t.indexOf(o.value)?l.selected=!0:r(t)&&r(o.selected)||(l.selected=o.selected||!1)}(t,o);else{var l=t.children,i=t.flags;if(4&i)e(l.$LI,o);else if(8&i)e(l,o);else if(2===t.childFlags)e(l,o);else if(12&t.childFlags)for(var a=0,u=l.length;a0);if(r(s)||""===s||(o?h.setAttribute("class",s):h.className=s),16===d)w(h,f);else if(1!==d){var v=o&&"foreignObject"!==e.type;2===d?(16384&f.flags&&(e.children=f=B(f)),we(f,h,t,v,null,i)):8!==d&&4!==d||xe(f,h,t,v,null,i)}a(n)||p(n,h,l),a(c)||function(e,n,t,r,o){var l=!1,i=(448&n)>0;for(var a in i&&(l=pe(t))&&function(e,n,t){64&e?function(e,n){ee(n.type)?(Z(e,"change",te),Z(e,"click",re)):Z(e,"input",ne)}(n,t):256&e?function(e){Z(e,"change",le)}(n):128&e&&function(e,n){Z(e,"input",ce),n.onChange&&Z(e,"change",se)}(n,t)}(n,r,t),t)$e(a,null,t[a],r,o,l,null);i&&de(n,e,r,t,!0,l)}(e,u,c,h,o),ve(e.ref,h,i)}(e,n,t,o,i,u):4&c?function(e,n,t,r,o,i){var u=function(e,n,t,r,o,i){var u=new n(t,r),c=u.$N=Boolean(n.getDerivedStateFromProps||u.getSnapshotBeforeUpdate);if(u.$SVG=o,u.$L=i,e.children=u,u.$BS=!1,u.context=r,u.props===s&&(u.props=t),c)u.state=k(u,t,u.state);else if(l(u.componentWillMount)){u.$BR=!0,u.componentWillMount();var f=u.$PS;if(!a(f)){var d=u.state;if(a(d))u.state=f;else for(var p in f)d[p]=f[p];u.$PS=null}u.$BR=!1}return u.$LI=Ce(u,t,r),u}(e,e.type,e.props||s,t,r,i);we(u.$LI,n,u.$CX,r,o,i),function(e,n,t){ve(e,n,t),l(n.componentDidMount)&&t.push(function(e){return function(){e.componentDidMount()}}(n))}(e.ref,u,i)}(e,n,t,o,i,u):8&c?(function(e,n,t,r,o,l){we(e.children=A(function(e,n){return 32768&e.flags?e.type.render(e.props||s,e.ref,n):e.type(e.props||s,n)}(e,t)),n,t,r,o,l)}(e,n,t,o,i,u),function(e,n){var t=e.ref;r(t)||(P(t.onComponentWillMount,e.props||s),l(t.onComponentDidMount)&&n.push(function(e,n){return function(){e.onComponentDidMount(m(n,!0),n.props||s)}}(t,e)))}(e,u)):512&c||16&c?Ue(e,n,i):8192&c?function(e,n,t,r,o,l){var i=e.children,a=e.childFlags;12&a&&0===i.length&&(a=e.childFlags=2,i=e.children=M()),2===a?we(i,t,o,r,o,l):xe(i,t,n,r,o,l)}(e,t,n,o,i,u):1024&c&&function(e,n,t,r,o){we(e.children,e.ref,n,!1,null,o);var l=M();Ue(l,t,r),e.dom=l.dom}(e,t,n,i,u)}function Ue(e,n,t){var r=e.dom=document.createTextNode(e.children);a(n)||p(n,r,t)}function xe(e,n,t,r,o,l){for(var i=0;i0,c!==f){var h=c||s;if((a=f||s)!==s)for(var v in(d=(448&l)>0)&&(p=pe(a)),a){var g=h[v],m=a[v];g!==m&&$e(v,g,m,u,o,p,e)}if(h!==s)for(var y in h)r(a[y])&&!r(h[y])&&$e(y,h[y],null,u,o,p,e)}var b=n.children,k=n.className;e.className!==k&&(r(k)?u.removeAttribute("class"):o?u.setAttribute("class",k):u.className=k),4096&l?function(e,n){e.textContent!==n&&(e.textContent=n)}(u,b):Se(e.childFlags,n.childFlags,e.children,b,u,t,o&&"foreignObject"!==n.type,null,e,i),d&&de(l,n,u,a,!1,p);var $=n.ref,C=e.ref;C!==$&&(he(C),ve($,u,i))}(e,n,i,c,v,p):4&v?function(e,n,t,r,o,i,c){var f=n.children=e.children;if(a(f))return;f.$L=c;var d=n.props||s,p=n.ref,h=e.ref,v=f.state;if(!f.$N){if(l(f.componentWillReceiveProps)){if(f.$BR=!0,f.componentWillReceiveProps(d,r),f.$UN)return;f.$BR=!1}a(f.$PS)||(v=u(v,f.$PS),f.$PS=null)}Fe(f,v,d,t,r,o,!1,i,c),h!==p&&(he(h),ve(p,f,c))}(e,n,t,i,c,f,p):8&v?function(e,n,t,o,i,a,u){var c=!0,f=n.props||s,d=n.ref,p=e.props,h=!r(d),v=e.children;if(h&&l(d.onComponentShouldUpdate)&&(c=d.onComponentShouldUpdate(p,f)),!1!==c){h&&l(d.onComponentWillUpdate)&&d.onComponentWillUpdate(p,f);var g=n.type,m=A(32768&n.flags?g.render(f,d,o):g(f,o));Pe(v,m,t,o,i,a,u),n.children=m,h&&l(d.onComponentDidUpdate)&&d.onComponentDidUpdate(p,f)}else n.children=v}(e,n,t,i,c,f,p):16&v?function(e,n){var t=n.children,r=n.dom=e.dom;t!==e.children&&(r.nodeValue=t)}(e,n):512&v?n.dom=e.dom:8192&v?function(e,n,t,r,o,l){var i=e.children,a=n.children,u=e.childFlags,c=n.childFlags,s=null;12&c&&0===a.length&&(c=n.childFlags=2,a=n.children=M());var f=0!==(2&c);if(12&u){var d=i.length;(8&u&&8&c||f||!f&&a.length>d)&&(s=m(i[d-1],!1).nextSibling)}Se(u,c,i,a,t,r,o,s,e,l)}(e,n,t,i,c,p):function(e,n,t,r){var l=e.ref,i=n.ref,a=n.children;if(Se(e.childFlags,n.childFlags,e.children,a,l,t,!1,null,e,r),n.dom=e.dom,l!==i&&!o(a)){var u=a.dom;h(l,u),d(i,u)}}(e,n,i,p)}function Se(e,n,t,r,o,l,i,a,u,c){switch(e){case 2:switch(n){case 2:Pe(t,r,o,l,i,a,c);break;case 1:ge(t,o);break;case 16:me(t),w(o,r);break;default:!function(e,n,t,r,o,l){me(e),xe(n,t,r,o,m(e,!0),l),y(e,t)}(t,r,o,l,i,c)}break;case 1:switch(n){case 2:we(r,o,l,i,a,c);break;case 1:break;case 16:w(o,r);break;default:xe(r,o,l,i,a,c)}break;case 16:switch(n){case 16:!function(e,n,t){e!==n&&(""!==e?t.firstChild.nodeValue=n:w(t,n))}(t,r,o);break;case 2:be(o),we(r,o,l,i,a,c);break;case 1:be(o);break;default:be(o),xe(r,o,l,i,a,c)}break;default:switch(n){case 16:ye(t),w(o,r);break;case 2:ke(o,u,t),we(r,o,l,i,a,c);break;case 1:ke(o,u,t);break;default:var s=0|t.length,f=0|r.length;0===s?f>0&&xe(r,o,l,i,a,c):0===f?ke(o,u,t):8===n&&8===e?function(e,n,t,r,o,l,i,a,u,c){var s,f,d=l-1,p=i-1,h=0,v=e[h],g=n[h];e:{for(;v.key===g.key;){if(16384&g.flags&&(n[h]=g=B(g)),Pe(v,g,t,r,o,a,c),e[h]=g,++h>d||h>p)break e;v=e[h],g=n[h]}for(v=e[d],g=n[p];v.key===g.key;){if(16384&g.flags&&(n[p]=g=B(g)),Pe(v,g,t,r,o,a,c),e[d]=g,p--,h>--d||h>p)break e;v=e[d],g=n[p]}}if(h>d){if(h<=p)for(f=(s=p+1)p)for(;h<=d;)ge(e[h++],t);else!function(e,n,t,r,o,l,i,a,u,c,s,f,d){var p,h,v,g=0,y=a,k=a,$=l-a+1,C=i-a+1,w=new Int32Array(C+1),U=$===r,x=!1,P=0,S=0;if(o<4||($|C)<32)for(g=y;g<=l;++g)if(p=e[g],Sa?x=!0:P=a,16384&h.flags&&(n[a]=h=B(h)),Pe(p,h,u,t,c,s,d),++S;break}!U&&a>i&&ge(p,u)}else U||ge(p,u);else{var F={};for(g=k;g<=i;++g)F[n[g].key]=g;for(g=y;g<=l;++g)if(p=e[g],Sy;)ge(e[y++],u);w[a-k]=g+1,P>a?x=!0:P=a,16384&(h=n[a]).flags&&(n[a]=h=B(h)),Pe(p,h,u,t,c,s,d),++S}else U||ge(p,u);else U||ge(p,u)}if(U)ke(u,f,e),xe(n,u,t,c,s,d);else if(x){var L=function(e){var n=0,t=0,r=0,o=0,l=0,i=0,a=0,u=e.length;for(u>Le&&(Le=u,ae=new Int32Array(u),ue=new Int32Array(u));t>1]]0&&(ue[t]=ae[l-1]),ae[l]=t)}l=o+1;var c=new Int32Array(l);for(i=ae[l-1];l-- >0;)c[l]=i,i=ue[i],ae[l]=0;return c}(w);for(a=L.length-1,g=C-1;g>=0;g--)0===w[g]?(16384&(h=n[P=g+k]).flags&&(n[P]=h=B(h)),we(h,u,t,c,(v=P+1)=0;g--)0===w[g]&&(16384&(h=n[P=g+k]).flags&&(n[P]=h=B(h)),we(h,u,t,c,(v=P+1)i?i:l,d=0;di)for(d=f;d0&&v(i),$.v=!1,l(t)&&t(),l(C.renderComplete)&&C.renderComplete(a,n)}(e,n,t,o)}"undefined"!==typeof document&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);var Ve=[],Ie="undefined"!==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):function(e){window.setTimeout(e,0)},Be=!1;function Me(e,n,t,o){var i=e.$PS;if(l(n)&&(n=n(i?u(e.state,i):e.state,e.props,e.context)),r(i))e.$PS=n;else for(var a in n)i[a]=n[a];if(e.$BR)l(t)&&e.$L.push(t.bind(e));else{if(!$.v&&0===Ve.length)return void De(e,o,t);if(-1===Ve.indexOf(e)&&Ve.push(e),Be||(Be=!0,Ie(Ae)),l(t)){var c=e.$QU;c||(c=e.$QU=[]),c.push(t)}}}function Te(e){for(var n=e.$QU,t=0,r=n.length;t0&&v(o),$.v=!1}else e.state=e.$PS,e.$PS=null;l(t)&&t.call(e)}var Ee=function(e,n){this.state=null,this.$BR=!1,this.$BS=!0,this.$PS=null,this.$LI=null,this.$UN=!1,this.$CX=null,this.$QU=null,this.$N=!1,this.$L=null,this.$SVG=!1,this.props=e||s,this.context=n||s};Ee.prototype.forceUpdate=function(e){if(this.$UN)return;Me(this,{},e,!0)},Ee.prototype.setState=function(e,n){if(this.$UN)return;this.$BS||Me(this,e,n,!1)},Ee.prototype.render=function(e,n,t){return null},uibench.init("Inferno [same as react]","7.3.3");var We=function(n){function t(e){var t;return(t=n.call(this,e)||this).onClick=t.onClick.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t)),t}e(t,n);var r=t.prototype;return r.shouldComponentUpdate=function(e,n){return this.props.text!==e.text},r.onClick=function(e){console.log("Clicked"+this.props.text),e.stopPropagation()},r.render=function(){return L(1,"td","TableCell",this.props.text,0,{onClick:this.onClick},null,null)},t}(Ee),Oe=function(n){function t(){return n.apply(this,arguments)||this}e(t,n);var r=t.prototype;return r.shouldComponentUpdate=function(e,n){return this.props.data!==e.data},r.render=function(){for(var e=this.props.data,n=e.active?"TableRow active":"TableRow",t=e.props,r=[N(2,We,{text:"#"+e.id},-1,null)],o=0;o0,h=a(d),v=i(d)&&"$"===d[0];p||h||v?(l=l||r.slice(0,s),(p||v)&&(f=I(f)),(h||v)&&(f.key="$"+s),l.push(f)):l&&l.push(f),f.flags|=65536}}u=0===(l=l||r).length?1:8}else(l=r).flags|=65536,81920&r.flags&&(l=I(r)),u=2;e.children=l,e.childFlags=u}(h,h.children),h}function N(e,n,t,o,l){var i=new S(1,null,null,e=function(e,n){if(12&e)return e;if(n.prototype&&n.prototype.render)return 4;if(n.render)return 32776;return 8}(e,n),o,function(e,n,t){var o=(32768&e?n.render:n).defaultProps;if(r(o))return t;if(r(t))return u(o,null);return x(t,o)}(e,n,t),function(e,n,t){if(4&e)return t;var o=(32768&e?n.render:n).defaultHooks;if(r(o))return t;if(r(t))return o;return x(t,o)}(e,n,l),n);return C.createVNode&&C.createVNode(i),i}function V(e,n){return new S(1,r(e)||!0===e||!1===e?"":e,null,16,n,null,null,null)}function L(e,n,t){var r=F(8192,8192,null,e,n,null,t,null);switch(r.childFlags){case 1:r.children=B(),r.childFlags=2;break;case 16:r.children=[V(e)],r.childFlags=4}return r}function I(e){var n=-16385&e.flags,t=e.props;if(14&n&&!a(t)){var r=t;for(var o in t={},r)t[o]=r[o]}if(0===(8192&n))return new S(e.childFlags,e.children,e.className,n,e.key,t,e.ref,e.type);return function(e){var n,t=e.children,r=e.childFlags;if(2===r)n=I(t);else if(12&r){n=[];for(var o=0,l=t.length;o-1&&t.options[a]&&(u=t.options[a].value),o&&r(u)&&(u=e.defaultValue),function e(t,o){if("option"===t.type)!function(e,t){var o=e.props||s,l=e.dom;l.value=o.value,o.value===t||n(t)&&-1!==t.indexOf(o.value)?l.selected=!0:r(t)&&r(o.selected)||(l.selected=o.selected||!1)}(t,o);else{var l=t.children,i=t.flags;if(4&i)e(l.$LI,o);else if(8&i)e(l,o);else if(2===t.childFlags)e(l,o);else if(12&t.childFlags)for(var a=0,u=l.length;a0);if(r(s)||""===s||(o?h.setAttribute("class",s):h.className=s),16===d)w(h,f);else if(1!==d){var v=o&&"foreignObject"!==e.type;2===d?(16384&f.flags&&(e.children=f=I(f)),Ce(f,h,t,v,null,i)):8!==d&&4!==d||Ue(f,h,t,v,null,i)}a(n)||p(n,h,l),a(c)||function(e,n,t,r,o){var l=!1,i=(448&n)>0;for(var a in i&&(l=de(t))&&function(e,n,t){64&e?function(e,n){Z(n.type)?(Y(e,"change",ne),Y(e,"click",te)):Y(e,"input",ee)}(n,t):256&e?function(e){Y(e,"change",oe)}(n):128&e&&function(e,n){Y(e,"input",ue),n.onChange&&Y(e,"change",ce)}(n,t)}(n,r,t),t)$e(a,null,t[a],r,o,l,null);i&&fe(n,e,r,t,!0,l)}(e,u,c,h,o),he(e.ref,h,i)}(e,n,t,o,i,u):4&c?function(e,n,t,r,o,i){var u=function(e,n,t,r,o,i){var u=new n(t,r),c=u.$N=Boolean(n.getDerivedStateFromProps||u.getSnapshotBeforeUpdate);if(u.$SVG=o,u.$L=i,e.children=u,u.$BS=!1,u.context=r,u.props===s&&(u.props=t),c)u.state=$(u,t,u.state);else if(l(u.componentWillMount)){u.$BR=!0,u.componentWillMount();var f=u.$PS;if(!a(f)){var d=u.state;if(a(d))u.state=f;else for(var p in f)d[p]=f[p];u.$PS=null}u.$BR=!1}return u.$LI=ke(u,t,r),u}(e,e.type,e.props||s,t,r,i);Ce(u.$LI,n,u.$CX,r,o,i),function(e,n,t){he(e,n,t),l(n.componentDidMount)&&t.push(function(e){return function(){e.componentDidMount()}}(n))}(e.ref,u,i)}(e,n,t,o,i,u):8&c?(function(e,n,t,r,o,l){Ce(e.children=T(function(e,n){return 32768&e.flags?e.type.render(e.props||s,e.ref,n):e.type(e.props||s,n)}(e,t)),n,t,r,o,l)}(e,n,t,o,i,u),function(e,n){var t=e.ref;r(t)||(P(t.onComponentWillMount,e.props||s),l(t.onComponentDidMount)&&n.push(function(e,n){return function(){e.onComponentDidMount(m(n,!0),n.props||s)}}(t,e)))}(e,u)):512&c||16&c?we(e,n,i):8192&c?function(e,n,t,r,o,l){var i=e.children,a=e.childFlags;12&a&&0===i.length&&(a=e.childFlags=2,i=e.children=B()),2===a?Ce(i,t,o,r,o,l):Ue(i,t,n,r,o,l)}(e,t,n,o,i,u):1024&c&&function(e,n,t,r,o){Ce(e.children,e.ref,n,!1,null,o);var l=B();we(l,t,r),e.dom=l.dom}(e,t,n,i,u)}function we(e,n,t){var r=e.dom=document.createTextNode(e.children);a(n)||p(n,r,t)}function Ue(e,n,t,r,o,l){for(var i=0;i0,c!==f){var h=c||s;if((a=f||s)!==s)for(var v in(d=(448&l)>0)&&(p=de(a)),a){var g=h[v],m=a[v];g!==m&&$e(v,g,m,u,o,p,e)}if(h!==s)for(var y in h)r(a[y])&&!r(h[y])&&$e(y,h[y],null,u,o,p,e)}var b=n.children,$=n.className;e.className!==$&&(r($)?u.removeAttribute("class"):o?u.setAttribute("class",$):u.className=$),4096&l?function(e,n){e.textContent!==n&&(e.textContent=n)}(u,b):Pe(e.childFlags,n.childFlags,e.children,b,u,t,o&&"foreignObject"!==n.type,null,e,i),d&&fe(l,n,u,a,!1,p);var k=n.ref,C=e.ref;C!==k&&(pe(C),he(k,u,i))}(e,n,i,c,v,p):4&v?function(e,n,t,r,o,i,c){var f=n.children=e.children;if(a(f))return;f.$L=c;var d=n.props||s,p=n.ref,h=e.ref,v=f.state;if(!f.$N){if(l(f.componentWillReceiveProps)){if(f.$BR=!0,f.componentWillReceiveProps(d,r),f.$UN)return;f.$BR=!1}a(f.$PS)||(v=u(v,f.$PS),f.$PS=null)}Se(f,v,d,t,r,o,!1,i,c),h!==p&&(pe(h),he(p,f,c))}(e,n,t,i,c,f,p):8&v?function(e,n,t,o,i,a,u){var c=!0,f=n.props||s,d=n.ref,p=e.props,h=!r(d),v=e.children;if(h&&l(d.onComponentShouldUpdate)&&(c=d.onComponentShouldUpdate(p,f)),!1!==c){h&&l(d.onComponentWillUpdate)&&d.onComponentWillUpdate(p,f);var g=n.type,m=T(32768&n.flags?g.render(f,d,o):g(f,o));xe(v,m,t,o,i,a,u),n.children=m,h&&l(d.onComponentDidUpdate)&&d.onComponentDidUpdate(p,f)}else n.children=v}(e,n,t,i,c,f,p):16&v?function(e,n){var t=n.children,r=n.dom=e.dom;t!==e.children&&(r.nodeValue=t)}(e,n):512&v?n.dom=e.dom:8192&v?function(e,n,t,r,o,l){var i=e.children,a=n.children,u=e.childFlags,c=n.childFlags,s=null;12&c&&0===a.length&&(c=n.childFlags=2,a=n.children=B());var f=0!==(2&c);if(12&u){var d=i.length;(8&u&&8&c||f||!f&&a.length>d)&&(s=m(i[d-1],!1).nextSibling)}Pe(u,c,i,a,t,r,o,s,e,l)}(e,n,t,i,c,p):function(e,n,t,r){var l=e.ref,i=n.ref,a=n.children;if(Pe(e.childFlags,n.childFlags,e.children,a,l,t,!1,null,e,r),n.dom=e.dom,l!==i&&!o(a)){var u=a.dom;h(l,u),d(i,u)}}(e,n,i,p)}function Pe(e,n,t,r,o,l,i,a,u,c){switch(e){case 2:switch(n){case 2:xe(t,r,o,l,i,a,c);break;case 1:ve(t,o);break;case 16:ge(t),w(o,r);break;default:!function(e,n,t,r,o,l){ge(e),Ue(n,t,r,o,m(e,!0),l),y(e,t)}(t,r,o,l,i,c)}break;case 1:switch(n){case 2:Ce(r,o,l,i,a,c);break;case 1:break;case 16:w(o,r);break;default:Ue(r,o,l,i,a,c)}break;case 16:switch(n){case 16:!function(e,n,t){e!==n&&(""!==e?t.firstChild.nodeValue=n:w(t,n))}(t,r,o);break;case 2:ye(o),Ce(r,o,l,i,a,c);break;case 1:ye(o);break;default:ye(o),Ue(r,o,l,i,a,c)}break;default:switch(n){case 16:me(t),w(o,r);break;case 2:be(o,u,t),Ce(r,o,l,i,a,c);break;case 1:be(o,u,t);break;default:var s=0|t.length,f=0|r.length;0===s?f>0&&Ue(r,o,l,i,a,c):0===f?be(o,u,t):8===n&&8===e?function(e,n,t,r,o,l,i,a,u,c){var s,f,d=l-1,p=i-1,h=0,v=e[h],g=n[h];e:{for(;v.key===g.key;){if(16384&g.flags&&(n[h]=g=I(g)),xe(v,g,t,r,o,a,c),e[h]=g,++h>d||h>p)break e;v=e[h],g=n[h]}for(v=e[d],g=n[p];v.key===g.key;){if(16384&g.flags&&(n[p]=g=I(g)),xe(v,g,t,r,o,a,c),e[d]=g,p--,h>--d||h>p)break e;v=e[d],g=n[p]}}if(h>d){if(h<=p)for(f=(s=p+1)p)for(;h<=d;)ve(e[h++],t);else!function(e,n,t,r,o,l,i,a,u,c,s,f,d){var p,h,v,g=0,y=a,$=a,k=l-a+1,C=i-a+1,w=new Int32Array(C+1),U=k===r,x=!1,P=0,S=0;if(o<4||(k|C)<32)for(g=y;g<=l;++g)if(p=e[g],Sa?x=!0:P=a,16384&h.flags&&(n[a]=h=I(h)),xe(p,h,u,t,c,s,d),++S;break}!U&&a>i&&ve(p,u)}else U||ve(p,u);else{var F={};for(g=$;g<=i;++g)F[n[g].key]=g;for(g=y;g<=l;++g)if(p=e[g],Sy;)ve(e[y++],u);w[a-$]=g+1,P>a?x=!0:P=a,16384&(h=n[a]).flags&&(n[a]=h=I(h)),xe(p,h,u,t,c,s,d),++S}else U||ve(p,u);else U||ve(p,u)}if(U)be(u,f,e),Ue(n,u,t,c,s,d);else if(x){var N=function(e){var n=0,t=0,r=0,o=0,l=0,i=0,a=0,u=e.length;for(u>Fe&&(Fe=u,ie=new Int32Array(u),ae=new Int32Array(u));t>1]]0&&(ae[t]=ie[l-1]),ie[l]=t)}l=o+1;var c=new Int32Array(l);for(i=ie[l-1];l-- >0;)c[l]=i,i=ae[i],ie[l]=0;return c}(w);for(a=N.length-1,g=C-1;g>=0;g--)0===w[g]?(16384&(h=n[P=g+$]).flags&&(n[P]=h=I(h)),Ce(h,u,t,c,(v=P+1)=0;g--)0===w[g]&&(16384&(h=n[P=g+$]).flags&&(n[P]=h=I(h)),Ce(h,u,t,c,(v=P+1)i?i:l,d=0;di)for(d=f;d0&&v(i),k.v=!1,l(t)&&t(),l(C.renderComplete)&&C.renderComplete(a,n)}(e,n,t,o)}"undefined"!==typeof document&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);var Ve=[],Le="undefined"!==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):function(e){window.setTimeout(e,0)},Ie=!1;function Be(e,n,t,o){var i=e.$PS;if(l(n)&&(n=n(i?u(e.state,i):e.state,e.props,e.context)),r(i))e.$PS=n;else for(var a in n)i[a]=n[a];if(e.$BR)l(t)&&e.$L.push(t.bind(e));else{if(!k.v&&0===Ve.length)return void Ae(e,o,t);if(-1===Ve.indexOf(e)&&Ve.push(e),Ie||(Ie=!0,Le(Te)),l(t)){var c=e.$QU;c||(c=e.$QU=[]),c.push(t)}}}function Me(e){for(var n=e.$QU,t=0,r=n.length;t0&&v(o),k.v=!1}else e.state=e.$PS,e.$PS=null;l(t)&&t.call(e)}var De=function(e,n){this.state=null,this.$BR=!1,this.$BS=!0,this.$PS=null,this.$LI=null,this.$UN=!1,this.$CX=null,this.$QU=null,this.$N=!1,this.$L=null,this.$SVG=!1,this.props=e||s,this.context=n||s};De.prototype.forceUpdate=function(e){if(this.$UN)return;Be(this,{},e,!0)},De.prototype.setState=function(e,n){if(this.$UN)return;this.$BS||Be(this,e,n,!1)},De.prototype.render=function(e,n,t){return null},uibench.init("Inferno [same as react]","7.3.3");var Ee=function(n){function t(e){var t;return(t=n.call(this,e)||this).onClick=t.onClick.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t)),t}e(t,n);var r=t.prototype;return r.shouldComponentUpdate=function(e,n){return this.props.text!==e.text},r.onClick=function(e){console.log("Clicked"+this.props.text),e.stopPropagation()},r.render=function(){return F(1,"td","TableCell",this.props.text,0,{onClick:this.onClick},null,null)},t}(De),We=function(n){function t(){return n.apply(this,arguments)||this}e(t,n);var r=t.prototype;return r.shouldComponentUpdate=function(e,n){return this.props.data!==e.data},r.render=function(){for(var e=this.props.data,n=e.active?"TableRow active":"TableRow",t=e.props,r=[N(2,Ee,{text:"#"+e.id},-1,null)],o=0;o0,v=i(d),h=o(d)&&d[0]===P;p||v||h?(a=a||l.slice(0,f),(p||h)&&(s=N(s)),(v||h)&&(s.key=P+f),a.push(s)):a&&a.push(s),s.flags|=65536}}u=0===(a=a||l).length?1:8}else(a=l).flags|=65536,81920&l.flags&&(a=N(l)),u=2;t.children=a,t.childFlags=u}(v,v.children),v}function S(e,n,r,l,o){return new x(1,null,null,e=function(e,n){if(12&e)return e;if(n.prototype&&n.prototype.render)return 4;if(n.render)return 32776;return 8}(e,n),l,function(e,n,r){var l=(32768&e?n.render:n).defaultProps;if(t(l))return r;if(t(r))return a(l,null);return $(r,l)}(e,n,r),function(e,n,r){if(4&e)return r;var l=(32768&e?n.render:n).defaultHooks;if(t(l))return r;if(t(r))return l;return $(r,l)}(e,n,o),n)}function V(e,n){return new x(1,t(e)||!0===e||!1===e?"":e,null,16,n,null,null,null)}function U(e,n,t){var r=L(8192,8192,null,e,n,null,t,null);switch(r.childFlags){case 1:r.children=I(),r.childFlags=2;break;case 16:r.children=[V(e)],r.childFlags=4}return r}function N(e){var n=-16385&e.flags,t=e.props;if(14&n&&!i(t)){var r=t;for(var l in t={},r)t[l]=r[l]}if(0===(8192&n))return new x(e.childFlags,e.children,e.className,n,e.key,t,e.ref,e.type);return function(e){var n,t=e.children,r=e.childFlags;if(2===r)n=N(t);else if(12&r){n=[];for(var l=0,o=t.length;l-1&&r.options[a]&&(u=r.options[a].value),l&&t(u)&&(u=n.defaultValue),function n(r,l){if("option"===r.type)!function(n,r){var l=n.props||f,o=n.dom;o.value=l.value,l.value===r||e(r)&&-1!==r.indexOf(l.value)?o.selected=!0:t(r)&&t(l.selected)||(o.selected=l.selected||!1)}(r,l);else{var o=r.children,i=r.flags;if(4&i)n(o.$LI,l);else if(8&i)n(o,l);else if(2===r.childFlags)n(o,l);else if(12&r.childFlags)for(var a=0,u=o.length;a0);if(t(f)||""===f||(l?v.setAttribute("class",f):v.className=f),16===d)C(v,s);else if(1!==d){var h=l&&"foreignObject"!==e.type;2===d?(16384&s.flags&&(e.children=s=N(s)),Ce(s,v,r,h,null,a)):8!==d&&4!==d||$e(s,v,r,h,null,a)}i(n)||p(n,v,o),i(c)||function(e,n,t,r,l){var o=!1,i=(448&n)>0;for(var a in i&&(o=se(t))&&function(e,n,t){64&e?function(e,n){Y(n.type)?(Q(e,"change",ee),Q(e,"click",ne)):Q(e,"input",Z)}(n,t):256&e?function(e){Q(e,"change",re)}(n):128&e&&function(e,n){Q(e,"input",ae),n.onChange&&Q(e,"change",ue)}(n,t)}(n,r,t),t)be(a,null,t[a],r,l,o,null);i&&fe(n,e,r,t,!0,o)}(e,u,c,v,l),pe(e.ref,v,a)}(e,n,r,o,a,u):4&c?function(e,n,t,r,o,a){var u=function(e,n,t,r,o,a){var u=new n(t,r),c=u.$N=Boolean(n.getDerivedStateFromProps||u.getSnapshotBeforeUpdate);if(u.$SVG=o,u.$L=a,e.children=u,u.$BS=!1,u.context=r,u.props===f&&(u.props=t),c)u.state=b(u,t,u.state);else if(l(u.componentWillMount)){u.$BR=!0,u.componentWillMount();var s=u.$PS;if(!i(s)){var d=u.state;if(i(d))u.state=s;else for(var p in s)d[p]=s[p];u.$PS=null}u.$BR=!1}return u.$LI=ye(u,t,r),u}(e,e.type,e.props||f,t,r,a);Ce(u.$LI,n,u.$CX,r,o,a),function(e,n,t){pe(e,n,t),l(n.componentDidMount)&&t.push(function(e){return function(){e.componentDidMount()}}(n))}(e.ref,u,a)}(e,n,r,o,a,u):8&c?(function(e,n,t,r,l,o){Ce(e.children=M(function(e,n){return 32768&e.flags?e.type.render(e.props||f,e.ref,n):e.type(e.props||f,n)}(e,t)),n,t,r,l,o)}(e,n,r,o,a,u),function(e,n){var r=e.ref;t(r)||(F(r.onComponentWillMount,e.props||f),l(r.onComponentDidMount)&&n.push(function(e,n){return function(){e.onComponentDidMount(g(n,!0),n.props||f)}}(r,e)))}(e,u)):512&c||16&c?we(e,n,a):8192&c?function(e,n,t,r,l,o){var i=e.children,a=e.childFlags;12&a&&0===i.length&&(a=e.childFlags=2,i=e.children=I()),2===a?Ce(i,t,l,r,l,o):$e(i,t,n,r,l,o)}(e,r,n,o,a,u):1024&c&&function(e,n,t,r,l){Ce(e.children,e.ref,n,!1,null,l);var o=I();we(o,t,r),e.dom=o.dom}(e,r,n,a,u)}function we(e,n,t){var r=e.dom=document.createTextNode(e.children);i(n)||p(n,r,t)}function $e(e,n,t,r,l,o){for(var i=0;i0,c!==s){var v=c||f;if((a=s||f)!==f)for(var h in(d=(448&o)>0)&&(p=se(a)),a){var g=v[h],m=a[h];g!==m&&be(h,g,m,u,l,p,e)}if(v!==f)for(var k in v)t(a[k])&&!t(v[k])&&be(k,v[k],null,u,l,p,e)}var b=n.children,y=n.className;e.className!==y&&(t(y)?u.removeAttribute("class"):l?u.setAttribute("class",y):u.className=y),4096&o?function(e,n){e.textContent!==n&&(e.textContent=n)}(u,b):Pe(e.childFlags,n.childFlags,e.children,b,u,r,l&&"foreignObject"!==n.type,null,e,i),d&&fe(o,n,u,a,!1,p);var C=n.ref,w=e.ref;w!==C&&(de(w),pe(C,u,i))}(e,n,u,c,h,p):4&h?function(e,n,t,r,o,u,c){var s=n.children=e.children;if(i(s))return;s.$L=c;var d=n.props||f,p=n.ref,v=e.ref,h=s.state;if(!s.$N){if(l(s.componentWillReceiveProps)){if(s.$BR=!0,s.componentWillReceiveProps(d,r),s.$UN)return;s.$BR=!1}i(s.$PS)||(h=a(h,s.$PS),s.$PS=null)}(function(e,n,t,r,o,i,u,c,f){var s=e.state,d=e.props,p=Boolean(e.$N),v=l(e.shouldComponentUpdate);if(p&&(n=b(e,t,n!==s?a(s,n):n)),!v||v&&e.shouldComponentUpdate(t,n,o)){!p&&l(e.componentWillUpdate)&&e.componentWillUpdate(t,n,o),e.props=t,e.state=n,e.context=o;var h=null,g=ye(e,t,o);p&&l(e.getSnapshotBeforeUpdate)&&(h=e.getSnapshotBeforeUpdate(d,s)),Fe(e.$LI,g,r,e.$CX,i,c,f),e.$LI=g,l(e.componentDidUpdate)&&function(e,n,t,r,l){l.push((function(){e.componentDidUpdate(n,t,r)}))}(e,d,s,h,f)}else e.props=t,e.state=n,e.context=o})(s,h,d,t,r,o,0,u,c),v!==p&&(de(v),pe(p,s,c))}(e,n,o,u,c,s,p):8&h?function(e,n,r,o,i,a,u){var c=!0,s=n.props||f,d=n.ref,p=e.props,v=!t(d),h=e.children;if(v&&l(d.onComponentShouldUpdate)&&(c=d.onComponentShouldUpdate(p,s)),!1!==c){v&&l(d.onComponentWillUpdate)&&d.onComponentWillUpdate(p,s);var g=n.type,m=M(32768&n.flags?g.render(s,d,o):g(s,o));Fe(h,m,r,o,i,a,u),n.children=m,v&&l(d.onComponentDidUpdate)&&d.onComponentDidUpdate(p,s)}else n.children=h}(e,n,o,u,c,s,p):16&h?function(e,n){var t=n.children,r=n.dom=e.dom;t!==e.children&&(r.nodeValue=t)}(e,n):512&h?n.dom=e.dom:8192&h?function(e,n,t,r,l,o){var i=e.children,a=n.children,u=e.childFlags,c=n.childFlags,f=null;12&c&&0===a.length&&(c=n.childFlags=2,a=n.children=I());var s=0!==(2&c);if(12&u){var d=i.length;(8&u&&8&c||s||!s&&a.length>d)&&(f=g(i[d-1],!1).nextSibling)}Pe(u,c,i,a,t,r,l,f,e,o)}(e,n,o,u,c,p):function(e,n,t,l){var o=e.ref,i=n.ref,a=n.children;if(Pe(e.childFlags,n.childFlags,e.children,a,o,t,!1,null,e,l),n.dom=e.dom,o!==i&&!r(a)){var u=a.dom;v(o,u),d(i,u)}}(e,n,u,p)}function Pe(e,n,t,r,l,o,i,a,u,c){switch(e){case 2:switch(n){case 2:Fe(t,r,l,o,i,a,c);break;case 1:ve(t,l);break;case 16:he(t),C(l,r);break;default:!function(e,n,t,r,l,o){he(e),$e(n,t,r,l,g(e,!0),o),m(e,t)}(t,r,l,o,i,c)}break;case 1:switch(n){case 2:Ce(r,l,o,i,a,c);break;case 1:break;case 16:C(l,r);break;default:$e(r,l,o,i,a,c)}break;case 16:switch(n){case 16:!function(e,n,t){e!==n&&(""!==e?t.firstChild.nodeValue=n:C(t,n))}(t,r,l);break;case 2:me(l),Ce(r,l,o,i,a,c);break;case 1:me(l);break;default:me(l),$e(r,l,o,i,a,c)}break;default:switch(n){case 16:ge(t),C(l,r);break;case 2:ke(l,u,t),Ce(r,l,o,i,a,c);break;case 1:ke(l,u,t);break;default:var f=0|t.length,s=0|r.length;0===f?s>0&&$e(r,l,o,i,a,c):0===s?ke(l,u,t):8===n&&8===e?function(e,n,t,r,l,o,i,a,u,c){var f,s,d=o-1,p=i-1,v=0,h=e[v],m=n[v];e:{for(;h.key===m.key;){if(16384&m.flags&&(n[v]=m=N(m)),Fe(h,m,t,r,l,a,c),e[v]=m,++v>d||v>p)break e;h=e[v],m=n[v]}for(h=e[d],m=n[p];h.key===m.key;){if(16384&m.flags&&(n[p]=m=N(m)),Fe(h,m,t,r,l,a,c),e[d]=m,p--,v>--d||v>p)break e;h=e[d],m=n[p]}}if(v>d){if(v<=p)for(s=(f=p+1)p)for(;v<=d;)ve(e[v++],t);else!function(e,n,t,r,l,o,i,a,u,c,f,s,d){var p,v,h,m=0,b=a,y=a,C=o-a+1,w=i-a+1,$=new Int32Array(w+1),F=C===r,P=!1,x=0,L=0;if(l<4||(C|w)<32)for(m=b;m<=o;++m)if(p=e[m],La?P=!0:x=a,16384&v.flags&&(n[a]=v=N(v)),Fe(p,v,u,t,c,f,d),++L;break}!F&&a>i&&ve(p,u)}else F||ve(p,u);else{var S={};for(m=y;m<=i;++m)S[n[m].key]=m;for(m=b;m<=o;++m)if(p=e[m],Lb;)ve(e[b++],u);$[a-y]=m+1,x>a?P=!0:x=a,16384&(v=n[a]).flags&&(n[a]=v=N(v)),Fe(p,v,u,t,c,f,d),++L}else F||ve(p,u);else F||ve(p,u)}if(F)ke(u,s,e),$e(n,u,t,c,f,d);else if(P){var V=function(e){var n=0,t=0,r=0,l=0,o=0,i=0,a=0,u=e.length;for(u>xe&&(xe=u,oe=new Int32Array(u),ie=new Int32Array(u));t>1]]0&&(ie[t]=oe[o-1]),oe[o]=t)}o=l+1;var c=new Int32Array(o);for(i=oe[o-1];o-- >0;)c[o]=i,i=ie[i],oe[o]=0;return c}($);for(a=V.length-1,m=w-1;m>=0;m--)0===$[m]?(16384&(v=n[x=m+y]).flags&&(n[x]=v=N(v)),Ce(v,u,t,c,(h=x+1)=0;m--)0===$[m]&&(16384&(v=n[x=m+y]).flags&&(n[x]=v=N(v)),Ce(v,u,t,c,(h=x+1)i?i:o,d=0;di)for(d=s;d0&&function(e){for(var n;void 0!==(n=e.shift());)n()}(i),l(r)&&r(),l(y.renderComplete)&&y.renderComplete(a,n)}(e,n,r,o)}"undefined"!==typeof document&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null),"undefined"!==typeof Promise&&Promise.resolve().then.bind(Promise.resolve()),uibench.init("Inferno","7.3.3");var Se={onComponentShouldUpdate:function(e,n){return e!==n}};function Ve(e){return L(1,"li","TreeLeaf",e.children,16,null,null,null)}function Ue(e){for(var n=e.data,t=n.children.length,r=new Array(t),l=0;l0,v=i(d),h=o(d)&&"$"===d[0];p||v||h?(a=a||l.slice(0,f),(p||h)&&(s=S(s)),(v||h)&&(s.key="$"+f),a.push(s)):a&&a.push(s),s.flags|=65536}}u=0===(a=a||l).length?1:8}else(a=l).flags|=65536,81920&l.flags&&(a=S(l)),u=2;t.children=a,t.childFlags=u}(v,v.children),v}function V(e,n,r,l,o){var i=new P(1,null,null,e=function(e,n){if(12&e)return e;if(n.prototype&&n.prototype.render)return 4;if(n.render)return 32776;return 8}(e,n),l,function(e,n,r){var l=(32768&e?n.render:n).defaultProps;if(t(l))return r;if(t(r))return a(l,null);return w(r,l)}(e,n,r),function(e,n,r){if(4&e)return r;var l=(32768&e?n.render:n).defaultHooks;if(t(l))return r;if(t(r))return l;return w(r,l)}(e,n,o),n);return y.createVNode&&y.createVNode(i),i}function N(e,n){return new P(1,t(e)||!0===e||!1===e?"":e,null,16,n,null,null,null)}function L(e,n,t){var r=x(8192,8192,null,e,n,null,t,null);switch(r.childFlags){case 1:r.children=U(),r.childFlags=2;break;case 16:r.children=[N(e)],r.childFlags=4}return r}function S(e){var n=-16385&e.flags,t=e.props;if(14&n&&!i(t)){var r=t;for(var l in t={},r)t[l]=r[l]}if(0===(8192&n))return new P(e.childFlags,e.children,e.className,n,e.key,t,e.ref,e.type);return function(e){var n,t=e.children,r=e.childFlags;if(2===r)n=S(t);else if(12&r){n=[];for(var l=0,o=t.length;l-1&&r.options[a]&&(u=r.options[a].value),l&&t(u)&&(u=n.defaultValue),function n(r,l){if("option"===r.type)!function(n,r){var l=n.props||f,o=n.dom;o.value=l.value,l.value===r||e(r)&&-1!==r.indexOf(l.value)?o.selected=!0:t(r)&&t(l.selected)||(o.selected=l.selected||!1)}(r,l);else{var o=r.children,i=r.flags;if(4&i)n(o.$LI,l);else if(8&i)n(o,l);else if(2===r.childFlags)n(o,l);else if(12&r.childFlags)for(var a=0,u=o.length;a0);if(t(f)||""===f||(l?v.setAttribute("class",f):v.className=f),16===d)C(v,s);else if(1!==d){var h=l&&"foreignObject"!==e.type;2===d?(16384&s.flags&&(e.children=s=S(s)),ye(s,v,r,h,null,a)):8!==d&&4!==d||$e(s,v,r,h,null,a)}i(n)||p(n,v,o),i(c)||function(e,n,t,r,l){var o=!1,i=(448&n)>0;for(var a in i&&(o=fe(t))&&function(e,n,t){64&e?function(e,n){Q(n.type)?(z(e,"change",Z),z(e,"click",ee)):z(e,"input",Y)}(n,t):256&e?function(e){z(e,"change",te)}(n):128&e&&function(e,n){z(e,"input",ie),n.onChange&&z(e,"change",ae)}(n,t)}(n,r,t),t)ke(a,null,t[a],r,l,o,null);i&&ce(n,e,r,t,!0,o)}(e,u,c,v,l),de(e.ref,v,a)}(e,n,r,o,a,u):4&c?function(e,n,t,r,o,a){var u=function(e,n,t,r,o,a){var u=new n(t,r),c=u.$N=Boolean(n.getDerivedStateFromProps||u.getSnapshotBeforeUpdate);if(u.$SVG=o,u.$L=a,e.children=u,u.$BS=!1,u.context=r,u.props===f&&(u.props=t),c)u.state=b(u,t,u.state);else if(l(u.componentWillMount)){u.$BR=!0,u.componentWillMount();var s=u.$PS;if(!i(s)){var d=u.state;if(i(d))u.state=s;else for(var p in s)d[p]=s[p];u.$PS=null}u.$BR=!1}return u.$LI=be(u,t,r),u}(e,e.type,e.props||f,t,r,a);ye(u.$LI,n,u.$CX,r,o,a),function(e,n,t){de(e,n,t),l(n.componentDidMount)&&t.push(function(e){return function(){e.componentDidMount()}}(n))}(e.ref,u,a)}(e,n,r,o,a,u):8&c?(function(e,n,t,r,l,o){ye(e.children=A(function(e,n){return 32768&e.flags?e.type.render(e.props||f,e.ref,n):e.type(e.props||f,n)}(e,t)),n,t,r,l,o)}(e,n,r,o,a,u),function(e,n){var r=e.ref;t(r)||(F(r.onComponentWillMount,e.props||f),l(r.onComponentDidMount)&&n.push(function(e,n){return function(){e.onComponentDidMount(g(n,!0),n.props||f)}}(r,e)))}(e,u)):512&c||16&c?Ce(e,n,a):8192&c?function(e,n,t,r,l,o){var i=e.children,a=e.childFlags;12&a&&0===i.length&&(a=e.childFlags=2,i=e.children=U()),2===a?ye(i,t,l,r,l,o):$e(i,t,n,r,l,o)}(e,r,n,o,a,u):1024&c&&function(e,n,t,r,l){ye(e.children,e.ref,n,!1,null,l);var o=U();Ce(o,t,r),e.dom=o.dom}(e,r,n,a,u)}function Ce(e,n,t){var r=e.dom=document.createTextNode(e.children);i(n)||p(n,r,t)}function $e(e,n,t,r,l,o){for(var i=0;i0,c!==s){var v=c||f;if((a=s||f)!==f)for(var h in(d=(448&o)>0)&&(p=fe(a)),a){var g=v[h],m=a[h];g!==m&&ke(h,g,m,u,l,p,e)}if(v!==f)for(var k in v)t(a[k])&&!t(v[k])&&ke(k,v[k],null,u,l,p,e)}var b=n.children,y=n.className;e.className!==y&&(t(y)?u.removeAttribute("class"):l?u.setAttribute("class",y):u.className=y),4096&o?function(e,n){e.textContent!==n&&(e.textContent=n)}(u,b):Fe(e.childFlags,n.childFlags,e.children,b,u,r,l&&"foreignObject"!==n.type,null,e,i),d&&ce(o,n,u,a,!1,p);var C=n.ref,$=e.ref;$!==C&&(se($),de(C,u,i))}(e,n,u,c,h,p):4&h?function(e,n,t,r,o,u,c){var s=n.children=e.children;if(i(s))return;s.$L=c;var d=n.props||f,p=n.ref,v=e.ref,h=s.state;if(!s.$N){if(l(s.componentWillReceiveProps)){if(s.$BR=!0,s.componentWillReceiveProps(d,r),s.$UN)return;s.$BR=!1}i(s.$PS)||(h=a(h,s.$PS),s.$PS=null)}(function(e,n,t,r,o,i,u,c,f){var s=e.state,d=e.props,p=Boolean(e.$N),v=l(e.shouldComponentUpdate);if(p&&(n=b(e,t,n!==s?a(s,n):n)),!v||v&&e.shouldComponentUpdate(t,n,o)){!p&&l(e.componentWillUpdate)&&e.componentWillUpdate(t,n,o),e.props=t,e.state=n,e.context=o;var h=null,g=be(e,t,o);p&&l(e.getSnapshotBeforeUpdate)&&(h=e.getSnapshotBeforeUpdate(d,s)),we(e.$LI,g,r,e.$CX,i,c,f),e.$LI=g,l(e.componentDidUpdate)&&function(e,n,t,r,l){l.push((function(){e.componentDidUpdate(n,t,r)}))}(e,d,s,h,f)}else e.props=t,e.state=n,e.context=o})(s,h,d,t,r,o,0,u,c),v!==p&&(se(v),de(p,s,c))}(e,n,o,u,c,s,p):8&h?function(e,n,r,o,i,a,u){var c=!0,s=n.props||f,d=n.ref,p=e.props,v=!t(d),h=e.children;if(v&&l(d.onComponentShouldUpdate)&&(c=d.onComponentShouldUpdate(p,s)),!1!==c){v&&l(d.onComponentWillUpdate)&&d.onComponentWillUpdate(p,s);var g=n.type,m=A(32768&n.flags?g.render(s,d,o):g(s,o));we(h,m,r,o,i,a,u),n.children=m,v&&l(d.onComponentDidUpdate)&&d.onComponentDidUpdate(p,s)}else n.children=h}(e,n,o,u,c,s,p):16&h?function(e,n){var t=n.children,r=n.dom=e.dom;t!==e.children&&(r.nodeValue=t)}(e,n):512&h?n.dom=e.dom:8192&h?function(e,n,t,r,l,o){var i=e.children,a=n.children,u=e.childFlags,c=n.childFlags,f=null;12&c&&0===a.length&&(c=n.childFlags=2,a=n.children=U());var s=0!==(2&c);if(12&u){var d=i.length;(8&u&&8&c||s||!s&&a.length>d)&&(f=g(i[d-1],!1).nextSibling)}Fe(u,c,i,a,t,r,l,f,e,o)}(e,n,o,u,c,p):function(e,n,t,l){var o=e.ref,i=n.ref,a=n.children;if(Fe(e.childFlags,n.childFlags,e.children,a,o,t,!1,null,e,l),n.dom=e.dom,o!==i&&!r(a)){var u=a.dom;v(o,u),d(i,u)}}(e,n,u,p)}function Fe(e,n,t,r,l,o,i,a,u,c){switch(e){case 2:switch(n){case 2:we(t,r,l,o,i,a,c);break;case 1:pe(t,l);break;case 16:ve(t),C(l,r);break;default:!function(e,n,t,r,l,o){ve(e),$e(n,t,r,l,g(e,!0),o),m(e,t)}(t,r,l,o,i,c)}break;case 1:switch(n){case 2:ye(r,l,o,i,a,c);break;case 1:break;case 16:C(l,r);break;default:$e(r,l,o,i,a,c)}break;case 16:switch(n){case 16:!function(e,n,t){e!==n&&(""!==e?t.firstChild.nodeValue=n:C(t,n))}(t,r,l);break;case 2:ge(l),ye(r,l,o,i,a,c);break;case 1:ge(l);break;default:ge(l),$e(r,l,o,i,a,c)}break;default:switch(n){case 16:he(t),C(l,r);break;case 2:me(l,u,t),ye(r,l,o,i,a,c);break;case 1:me(l,u,t);break;default:var f=0|t.length,s=0|r.length;0===f?s>0&&$e(r,l,o,i,a,c):0===s?me(l,u,t):8===n&&8===e?function(e,n,t,r,l,o,i,a,u,c){var f,s,d=o-1,p=i-1,v=0,h=e[v],m=n[v];e:{for(;h.key===m.key;){if(16384&m.flags&&(n[v]=m=S(m)),we(h,m,t,r,l,a,c),e[v]=m,++v>d||v>p)break e;h=e[v],m=n[v]}for(h=e[d],m=n[p];h.key===m.key;){if(16384&m.flags&&(n[p]=m=S(m)),we(h,m,t,r,l,a,c),e[d]=m,p--,v>--d||v>p)break e;h=e[d],m=n[p]}}if(v>d){if(v<=p)for(s=(f=p+1)p)for(;v<=d;)pe(e[v++],t);else!function(e,n,t,r,l,o,i,a,u,c,f,s,d){var p,v,h,m=0,b=a,y=a,C=o-a+1,$=i-a+1,w=new Int32Array($+1),F=C===r,P=!1,x=0,V=0;if(l<4||(C|$)<32)for(m=b;m<=o;++m)if(p=e[m],V<$){for(a=y;a<=i;a++)if(v=n[a],p.key===v.key){if(w[a-y]=m+1,F)for(F=!1;ba?P=!0:x=a,16384&v.flags&&(n[a]=v=S(v)),we(p,v,u,t,c,f,d),++V;break}!F&&a>i&&pe(p,u)}else F||pe(p,u);else{var N={};for(m=y;m<=i;++m)N[n[m].key]=m;for(m=b;m<=o;++m)if(p=e[m],V<$)if(void 0!==(a=N[p.key])){if(F)for(F=!1;m>b;)pe(e[b++],u);w[a-y]=m+1,x>a?P=!0:x=a,16384&(v=n[a]).flags&&(n[a]=v=S(v)),we(p,v,u,t,c,f,d),++V}else F||pe(p,u);else F||pe(p,u)}if(F)me(u,s,e),$e(n,u,t,c,f,d);else if(P){var L=function(e){var n=0,t=0,r=0,l=0,o=0,i=0,a=0,u=e.length;for(u>Pe&&(Pe=u,le=new Int32Array(u),oe=new Int32Array(u));t>1]]0&&(oe[t]=le[o-1]),le[o]=t)}o=l+1;var c=new Int32Array(o);for(i=le[o-1];o-- >0;)c[o]=i,i=oe[i],le[o]=0;return c}(w);for(a=L.length-1,m=$-1;m>=0;m--)0===w[m]?(16384&(v=n[x=m+y]).flags&&(n[x]=v=S(v)),ye(v,u,t,c,(h=x+1)=0;m--)0===w[m]&&(16384&(v=n[x=m+y]).flags&&(n[x]=v=S(v)),ye(v,u,t,c,(h=x+1)i?i:o,d=0;di)for(d=s;d0&&function(e){for(var n;void 0!==(n=e.shift());)n()}(i),l(r)&&r(),l(y.renderComplete)&&y.renderComplete(a,n)}(e,n,r,o)}"undefined"!==typeof document&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null),"undefined"!==typeof Promise&&Promise.resolve().then.bind(Promise.resolve()),uibench.init("Inferno","7.3.3");var Ve={onComponentShouldUpdate:function(e,n){return e!==n}};function Ne(e){return x(1,"li","TreeLeaf",e.children,16,null,null,null)}function Le(e){for(var n=e.data,t=n.children.length,r=new Array(t),l=0;l