From 520273383d027e7aa0bf45aaeec45be1b28153b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sampo=20Kivist=C3=B6?= Date: Thu, 22 Aug 2019 17:57:22 +0300 Subject: [PATCH] v7.3.1 --- docs/1kcomponents/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 +- lerna.json | 2 +- packages/inferno-clone-vnode/package.json | 8 ++++---- packages/inferno-compat/package.json | 20 ++++++++++---------- packages/inferno-component/package.json | 4 ++-- packages/inferno-create-class/package.json | 8 ++++---- packages/inferno-create-element/package.json | 8 ++++---- packages/inferno-devtools/package.json | 10 +++++----- packages/inferno-extras/package.json | 6 +++--- packages/inferno-hydrate/package.json | 12 ++++++------ packages/inferno-hyperscript/package.json | 8 ++++---- packages/inferno-mobx/package.json | 12 ++++++------ packages/inferno-redux/package.json | 10 +++++----- packages/inferno-router/package.json | 6 +++--- packages/inferno-server/package.json | 14 +++++++------- packages/inferno-shared/package.json | 2 +- packages/inferno-test-utils/package.json | 8 ++++---- packages/inferno-utils/package.json | 6 +++--- packages/inferno-vnode-flags/package.json | 2 +- packages/inferno/package.json | 8 ++++---- 24 files changed, 82 insertions(+), 82 deletions(-) diff --git a/docs/1kcomponents/dist/bundle.js b/docs/1kcomponents/dist/bundle.js index cc0dd5023..bd0e84ef1 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 f=1;f0,h=o(u),p=i(u)&&u[0]===L;s||h||p?(a=a||f.slice(0,b),(s||p)&&(l=D(l)),(h||p)&&(l.key=L+b),a.push(l)):a&&a.push(l),l.flags|=65536}}c=0===(a=a||f).length?1:8}else(a=f).flags|=65536,81920&f.flags&&(a=D(f)),c=2;return e.children=a,e.childFlags=c,e}function j(e){if(d(e)||n(e))return U(e,null);if(t(e))return _(e,0,null);return 16384&e.flags?D(e):e}var G="http://www.w3.org/1999/xlink",X="http://www.w3.org/XML/1998/namespace",Q={"xlink:actuate":G,"xlink:arcrole":G,"xlink:href":G,"xlink:role":G,"xlink:show":G,"xlink:title":G,"xlink:type":G,"xml:base":X,"xml:lang":X,"xml:space":X};function Y(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=Y(0),K=Y(null),J=Y(!0);function Z(e,f){var a=f.$EV;return a||(a=f.$EV=Y(null)),a[e]||1===++z[e]&&(K[e]=be(e)),a}function ee(e,f){var a=f.$EV;a&&a[e]&&(0===--z[e]&&(document.removeEventListener(s(e),K[e]),K[e]=null),a[e]=null)}function fe(e,f,a,t){if(r(a))Z(e,t)[e]=a;else if(l(a)){if(S(f,a))return;Z(e,t)[e]=a}else ee(e,t)}function ae(e){return r(e.composedPath)?e.composedPath()[0]:e.target}function te(e,f,a,t){var n=ae(e);do{if(f&&n.disabled)return;var c=n.$EV;if(c){var d=c[a];if(d&&(t.dom=n,d.event?d.event(d.data,e):d(e),e.cancelBubble))return}n=n.parentNode}while(!o(n))}function ne(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function ce(){return this.defaultPrevented}function de(){return this.cancelBubble}function re(e){var f={dom:document};return e.isDefaultPrevented=ce,e.isPropagationStopped=de,e.stopPropagation=ne,Object.defineProperty(e,"currentTarget",{configurable:!0,get:function(){return f.dom}}),f}function ie(e){return function(f){if(0!==f.button)return void f.stopPropagation();te(f,!0,e,re(f))}}function oe(e){return function(f){te(f,!1,e,re(f))}}function be(e){var f="onClick"===e||"onDblClick"===e?ie(e):oe(e);return document.addEventListener(s(e),f),f}function le(e,f){var a=document.createElement("i");return a.innerHTML=f,a.innerHTML===e.innerHTML}function ue(e,f,a){if(e[f]){var t=e[f];t.event?t.event(t.data,a):t(a)}else{var n=f.toLowerCase();e[n]&&e[n](a)}}function se(e,f){var a=function(a){var t=this.$V;if(!t)return;var n=t.props||u,c=t.dom;if(i(e))ue(n,e,a);else for(var d=0;d-1&&f.options[d]&&(r=f.options[d].value),a&&c(r)&&(r=e.defaultValue),xe(t,r)}}var Ce,Pe,Se=se("onInput",Le),Ae=se("onChange");function Ie(e,f){he(e,"input",Se),f.onChange&&he(e,"change",Ae)}function Le(e,f,a){var t=e.value,n=f.value;if(c(t)){if(a){var d=e.defaultValue;c(d)||d===n||(f.defaultValue=d,f.value=d)}}else n!==t&&(f.defaultValue=t,f.value=t)}function Te(e,f,a,t,n,c){64&e?we(t,a):256&e?Ne(t,a,n,f):128&e&&Le(t,a,n),c&&(a.$V=f)}function Fe(e,f,a){64&e?ye(f,a):256&e?$e(f):128&e&&Ie(f,a)}function He(e){return e.type&&pe(e.type)?!c(e.checked):!c(e.value)}function Ee(e){e&&!I(e,null)&&e.current&&(e.current=null)}function Re(e,f,a){e&&(r(e)||void 0!==e.current)&&a.push(function(){I(e,f)||void 0===e.current||(e.current=f)})}function Ve(e,f){Ue(e),k(e,f)}function Ue(e){var f,a=e.flags,t=e.children;if(481&a){f=e.ref;var n=e.props;Ee(f);var d=e.childFlags;if(!o(n))for(var i=Object.keys(n),b=0,l=i.length;b0;for(var r in d&&(c=He(a))&&Fe(f,t,a),a)Ge(r,null,a[r],t,n,c,null);d&&Te(f,e,t,a,!0,c)}function Qe(e,f,a){var t=j(e.render(f,e.state,a)),n=a;return r(e.getChildContext)&&(n=b(a,e.getChildContext())),e.$CX=n,t}function Ye(e,f,a,t,n,c){var d=new f(a,t),i=d.$N=Boolean(f.getDerivedStateFromProps||d.getSnapshotBeforeUpdate);if(d.$SVG=n,d.$L=c,e.children=d,d.$BS=!1,d.context=t,d.props===u&&(d.props=a),i)d.state=$(d,a,d.state);else if(r(d.componentWillMount)){d.$BR=!0,d.componentWillMount();var b=d.$PS;if(!o(b)){var l=d.state;if(o(l))d.state=b;else for(var s in b)l[s]=b[s];d.$PS=null}d.$BR=!1}return d.$LI=Qe(d,a,t),d}function ze(e,f,a,t,n,c){var d=e.flags|=16384;481&d?ef(e,f,a,t,n,c):4&d?af(e,f,a,t,n,c):8&d?(nf(e,f,a,t,n,c),of(e,c)):512&d||16&d?Ze(e,f,n):8192&d?Je(e,a,f,t,n,c):1024&d&&Ke(e,a,f,n,c)}function Ke(e,f,a,t,n){ze(e.children,e.ref,f,!1,null,n);var c=B();Ze(c,a,t),e.dom=c.dom}function Je(e,f,a,t,n,c){var d=e.children,r=e.childFlags;12&r&&0===d.length&&(r=e.childFlags=2,d=e.children=B()),2===r?ze(d,a,n,t,n,c):ff(d,a,f,t,n,c)}function Ze(e,f,a){var t=e.dom=document.createTextNode(e.children);o(f)||p(f,t,a)}function ef(e,f,a,t,n,d){var r=e.flags,i=e.props,b=e.className,l=e.children,u=e.childFlags,s=e.dom=m(e.type,t=t||(32&r)>0);if(c(b)||""===b||(t?s.setAttribute("class",b):s.className=b),16===u)P(s,l);else if(1!==u){var h=t&&"foreignObject"!==e.type;2===u?(16384&l.flags&&(e.children=l=D(l)),ze(l,s,a,h,null,d)):8!==u&&4!==u||ff(l,s,a,h,null,d)}o(f)||p(f,s,n),o(i)||Xe(e,r,i,s,t),Re(e.ref,s,d)}function ff(e,f,a,t,n,c){for(var d=0;du)&&(b=x(d[u-1],!1).nextSibling)}gf(i,o,d,r,a,t,n,b,e,c)}function pf(e,f,a,t){var n=e.ref,c=f.ref,r=f.children;if(gf(e.childFlags,f.childFlags,e.children,r,n,a,!1,null,e,t),f.dom=e.dom,n!==c&&!d(r)){var i=r.dom;g(n,i),h(c,i)}}function mf(e,f,a,t,n,d){var r,i=f.dom=e.dom,o=e.props,b=f.props,l=!1,s=!1;if(t=t||(32&n)>0,o!==b){var h=o||u;if((r=b||u)!==u)for(var p in(l=(448&n)>0)&&(s=He(r)),r){var m=h[p],v=r[p];m!==v&&Ge(p,m,v,i,t,s,e)}if(h!==u)for(var g in h)c(r[g])&&!c(h[g])&&Ge(g,h[g],null,i,t,s,e)}var y=f.children,w=f.className;e.className!==w&&(c(w)?i.removeAttribute("class"):t?i.setAttribute("class",w):i.className=w),4096&n?sf(i,y):gf(e.childFlags,f.childFlags,e.children,y,i,a,t&&"foreignObject"!==f.type,null,e,d),l&&Te(n,f,i,r,!1,s);var x=f.ref,k=e.ref;k!==x&&(Ee(k),Re(x,i,d))}function vf(e,f,a,t,n,c){Ue(e),ff(f,a,t,n,x(e,!0),c),k(e,a)}function gf(e,f,a,t,n,c,d,r,i,o){switch(e){case 2:switch(f){case 2:lf(a,t,n,c,d,r,o);break;case 1:Ve(a,n);break;case 16:Ue(a),P(n,t);break;default:vf(a,t,n,c,d,o)}break;case 1:switch(f){case 2:ze(t,n,c,d,r,o);break;case 1:break;case 16:P(n,t);break;default:ff(t,n,c,d,r,o)}break;case 16:switch(f){case 16:uf(a,t,n);break;case 2:Oe(n),ze(t,n,c,d,r,o);break;case 1:Oe(n);break;default:Oe(n),ff(t,n,c,d,r,o)}break;default:switch(f){case 16:_e(a),P(n,t);break;case 2:De(n,i,a),ze(t,n,c,d,r,o);break;case 1:De(n,i,a);break;default:var b=0|a.length,l=0|t.length;0===b?l>0&&ff(t,n,c,d,r,o):0===l?De(n,i,a):8===f&&8===e?Nf(a,t,n,c,d,b,l,r,i,o):$f(a,t,n,c,d,b,l,r,o)}}}function yf(e,f,a,t,n){n.push(function(){e.componentDidUpdate(f,a,t)})}function wf(e,f,a,t,n,c,d,i,o){var l=e.state,u=e.props,s=Boolean(e.$N),h=r(e.shouldComponentUpdate);if(s&&(f=$(e,a,f!==l?b(l,f):f)),d||!h||h&&e.shouldComponentUpdate(a,f,n)){!s&&r(e.componentWillUpdate)&&e.componentWillUpdate(a,f,n),e.props=a,e.state=f,e.context=n;var p=null,m=Qe(e,a,n);s&&r(e.getSnapshotBeforeUpdate)&&(p=e.getSnapshotBeforeUpdate(u,l)),lf(e.$LI,m,t,e.$CX,c,i,o),e.$LI=m,r(e.componentDidUpdate)&&yf(e,u,l,p,o)}else e.props=a,e.state=f,e.context=n}function xf(e,f,a,t,n,c,d){var i=f.children=e.children;if(o(i))return;i.$L=d;var l=f.props||u,s=f.ref,h=e.ref,p=i.state;if(!i.$N){if(r(i.componentWillReceiveProps)){if(i.$BR=!0,i.componentWillReceiveProps(l,t),i.$UN)return;i.$BR=!1}o(i.$PS)||(p=b(p,i.$PS),i.$PS=null)}wf(i,p,l,a,t,n,!1,c,d),h!==s&&(Ee(h),Re(s,i,d))}function kf(e,f,a,t,n,d,i){var o=!0,b=f.props||u,l=f.ref,s=e.props,h=!c(l),p=e.children;if(h&&r(l.onComponentShouldUpdate)&&(o=l.onComponentShouldUpdate(s,b)),!1!==o){h&&r(l.onComponentWillUpdate)&&l.onComponentWillUpdate(s,b);var m=f.type,v=j(32768&f.flags?m.render(b,l,t):m(b,t));lf(p,v,a,t,n,d,i),f.children=v,h&&r(l.onComponentDidUpdate)&&l.onComponentDidUpdate(s,b)}else f.children=p}function Mf(e,f){var a=f.children,t=f.dom=e.dom;a!==e.children&&(t.nodeValue=a)}function $f(e,f,a,t,n,c,d,r,i){for(var o,b,l=c>d?d:c,u=0;ud)for(u=l;uu||h>s)break e;p=e[h],m=f[h]}for(p=e[u],m=f[s];p.key===m.key;){if(16384&m.flags&&(f[s]=m=D(m)),lf(p,m,a,t,n,r,o),e[u]=m,s--,h>--u||h>s)break e;p=e[u],m=f[s]}}if(h>u){if(h<=s)for(l=(b=s+1)s)for(;h<=u;)Ve(e[h++],a);else Cf(e,f,t,c,d,u,s,h,a,n,r,i,o)}function Cf(e,f,a,t,n,c,d,r,i,o,b,l,u){var s,h,p,m=0,v=r,g=r,y=c-r+1,w=d-r+1,k=new Int32Array(w+1),$=y===t,N=!1,C=0,P=0;if(n<4||(y|w)<32)for(m=v;m<=c;++m)if(s=e[m],Pr?N=!0:C=r,16384&h.flags&&(f[r]=h=D(h)),lf(s,h,i,a,o,b,u),++P;break}!$&&r>d&&Ve(s,i)}else $||Ve(s,i);else{var S={};for(m=g;m<=d;++m)S[f[m].key]=m;for(m=v;m<=c;++m)if(s=e[m],Pv;)Ve(e[v++],i);k[r-g]=m+1,C>r?N=!0:C=r,16384&(h=f[r]).flags&&(f[r]=h=D(h)),lf(s,h,i,a,o,b,u),++P}else $||Ve(s,i);else $||Ve(s,i)}if($)De(i,l,e),ff(f,i,a,o,b,u);else if(N){var A=Sf(k);for(r=A.length-1,m=w-1;m>=0;m--)0===k[m]?(16384&(h=f[C=m+g]).flags&&(f[C]=h=D(h)),ze(h,i,a,o,(p=C+1)=0;m--)0===k[m]&&(16384&(h=f[C=m+g]).flags&&(f[C]=h=D(h)),ze(h,i,a,o,(p=C+1)Pf&&(Pf=i,Ce=new Int32Array(i),Pe=new Int32Array(i));a>1]]0&&(Pe[a]=Ce[c-1]),Ce[c]=a)}c=n+1;var o=new Int32Array(c);for(d=Ce[c-1];c-- >0;)o[c]=d,d=Pe[d],Ce[c]=0;return o}"undefined"!==typeof document&&(document.body,Node.prototype.$EV=null,Node.prototype.$V=null);var Af=[],If="undefined"!==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):function(e){window.setTimeout(e,0)},Lf=!1;function Tf(e,f,a,t){var n=e.$PS;if(r(f)&&(f=f(n?b(e.state,n):e.state,e.props,e.context)),c(n))e.$PS=f;else for(var d in f)n[d]=f[d];if(e.$BR)r(a)&&e.$L.push(a.bind(e));else{if(!N.v&&0===Af.length)return void Ef(e,t,a);if(-1===Af.indexOf(e)&&Af.push(e),Lf||(Lf=!0,If(Hf)),r(a)){var i=e.$QU;i||(i=e.$QU=[]),i.push(a)}}}function Ff(e){for(var f=e.$QU,a=0,t=f.length;a0&&y(n),N.v=!1}else e.state=e.$PS,e.$PS=null;r(a)&&a.call(e)}var Rf=function(e,f){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=f||u};Rf.prototype.forceUpdate=function(e){if(this.$UN)return;Tf(this,{},e,!0)},Rf.prototype.setState=function(e,f){if(this.$UN)return;this.$BS||Tf(this,e,f,!1)},Rf.prototype.render=function(e,f,a){return null};var Vf,Uf,_f=function(e,f,a,t){this.min=e,this.max=f,this.mean=a,this.last=t},Of=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 f=this.samples,a=0;aa&&(a=c),t+=c}var d=e[this._i],r=t/e.length;return new _f(f,a,r,d)},e}(),Df=[],Bf=-1,qf=(Vf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,f){e.__proto__=f}||function(e,f){for(var a in f)f.hasOwnProperty(a)&&(e[a]=f[a])},function(e,f){function a(){this.constructor=e}Vf(e,f),e.prototype=null===f?Object.create(f):(a.prototype=f.prototype,new a)}),Wf=30,jf=100,Gf=function(){function e(e){var f=this;this._sync=function(){f.sync(),f._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,Df.push(e),-1===Bf&&requestAnimationFrame(function(e){Bf=-1;var f=Df;Df=[];for(var a=0;a>8&15|f>>4&240,f>>4&15|240&f,(15&f)<<4|15&f,1):(f=na.exec(e))?pa(parseInt(f[1],16)):(f=ca.exec(e))?new ya(f[1],f[2],f[3],1):(f=da.exec(e))?new ya(255*f[1]/100,255*f[2]/100,255*f[3]/100,1):(f=ra.exec(e))?ma(f[1],f[2],f[3],f[4]):(f=ia.exec(e))?ma(255*f[1]/100,255*f[2]/100,255*f[3]/100,f[4]):(f=oa.exec(e))?Ma(f[1],f[2]/100,f[3]/100,1):(f=ba.exec(e))?Ma(f[1],f[2]/100,f[3]/100,f[4]):la.hasOwnProperty(e)?pa(la[e]):"transparent"===e?new ya(NaN,NaN,NaN,0):null}function pa(e){return new ya(e>>16&255,e>>8&255,255&e,1)}function ma(e,f,a,t){return t<=0&&(e=f=a=NaN),new ya(e,f,a,t)}function va(e){if(e instanceof Zf||(e=ha(e)),!e)return new ya;return new ya((e=e.rgb()).r,e.g,e.b,e.opacity)}function ga(e,f,a,t){return 1===arguments.length?va(e):new ya(e,f,a,null==t?1:t)}function ya(e,f,a,t){this.r=+e,this.g=+f,this.b=+a,this.opacity=+t}function wa(){return"#"+ka(this.r)+ka(this.g)+ka(this.b)}function xa(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function ka(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function Ma(e,f,a,t){return t<=0?e=f=a=NaN:a<=0||a>=1?e=f=NaN:f<=0&&(e=NaN),new Na(e,f,a,t)}function $a(e){if(e instanceof Na)return new Na(e.h,e.s,e.l,e.opacity);if(e instanceof Zf||(e=ha(e)),!e)return new Na;if(e instanceof Na)return e;var f=(e=e.rgb()).r/255,a=e.g/255,t=e.b/255,n=Math.min(f,a,t),c=Math.max(f,a,t),d=NaN,r=c-n,i=(c+n)/2;return r?(d=f===c?(a-t)/r+6*(a0&&i<1?0:d,new Na(d,r,i,e.opacity)}function Na(e,f,a,t){this.h=+e,this.s=+f,this.l=+a,this.opacity=+t}function Ca(e,f,a){return 255*(e<60?f+(a-f)*e/60:e<180?a:e<240?f+(a-f)*(240-e)/60:f)}Kf(Zf,ha,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:ua,formatHex:ua,formatHsl:function(){return $a(this).formatHsl()},formatRgb:sa,toString:sa}),Kf(ya,ga,Jf(Zf,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new ya(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new ya(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:wa,formatHex:wa,formatRgb:xa,toString:xa})),Kf(Na,function(e,f,a,t){return 1===arguments.length?$a(e):new Na(e,f,a,null==t?1:t)},Jf(Zf,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new Na(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new Na(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),f=isNaN(e)||isNaN(this.s)?0:this.s,a=this.l,t=a+(a<.5?a:1-a)*f,n=2*a-t;return new ya(Ca(e>=240?e-240:e+120,n,t),Ca(e,n,t),Ca(e<120?e+240:e-120,n,t),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var Pa=Math.PI/180,Sa=180/Math.PI,Aa=.96422,Ia=1,La=.82521,Ta=4/29,Fa=6/29,Ha=3*Fa*Fa,Ea=Fa*Fa*Fa;function Ra(e){if(e instanceof Va)return new Va(e.l,e.a,e.b,e.opacity);if(e instanceof qa)return Wa(e);e instanceof ya||(e=va(e));var f,a,t=Da(e.r),n=Da(e.g),c=Da(e.b),d=Ua((.2225045*t+.7168786*n+.0606169*c)/Ia);return t===n&&n===c?f=a=d:(f=Ua((.4360747*t+.3850649*n+.1430804*c)/Aa),a=Ua((.0139322*t+.0971045*n+.7141733*c)/La)),new Va(116*d-16,500*(f-d),200*(d-a),e.opacity)}function Va(e,f,a,t){this.l=+e,this.a=+f,this.b=+a,this.opacity=+t}function Ua(e){return e>Ea?Math.pow(e,1/3):e/Ha+Ta}function _a(e){return e>Fa?e*e*e:Ha*(e-Ta)}function Oa(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Da(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Ba(e){if(e instanceof qa)return new qa(e.h,e.c,e.l,e.opacity);if(e instanceof Va||(e=Ra(e)),0===e.a&&0===e.b)return new qa(NaN,0=1?(a=1,f-1):Math.floor(a*f),n=e[t],c=e[t+1],d=t>0?e[t-1]:2*n-c,r=t180||a<-180?a-360*Math.round(a/360):a):tt(isNaN(e)?f:e)});var ot=it(ct);function bt(e){return rt(e[e.length-1])}function lt(e){var f=e.length;return function(a){return e[Math.max(0,Math.min(f-1,Math.floor(a*f)))]}}bt(new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(zf)),bt(new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(zf)),bt(new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(zf)),bt(new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(zf)),bt(new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(zf)),bt(new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(zf)),bt(new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(zf)),bt(new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(zf)),bt(new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(zf)),bt(new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(zf)),bt(new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(zf)),bt(new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(zf)),bt(new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(zf)),bt(new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(zf)),bt(new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(zf)),bt(new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(zf)),bt(new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(zf)),bt(new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(zf)),bt(new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(zf)),bt(new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(zf)),bt(new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(zf)),bt(new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(zf)),bt(new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(zf)),bt(new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(zf)),bt(new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(zf)),bt(new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(zf)),bt(new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(zf)),ot(et(300,.5,0),et(-240,.5,1)),ot(et(-100,.75,.35),et(80,1.5,.8)),ot(et(260,.75,.35),et(80,1.5,.8)),et(),ga(),Math.PI,Math.PI;var ut=lt(zf("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));function st(e,f){for(var a=[],t=0;t0&&(n+=2/121*(1e3/(c-t)-n)),t=c,f.addSample(n),a.invalidate(),requestAnimationFrame(e)})}(),function(e){if(void 0===e&&(e=Uf.HideMin|Uf.HideMean),Yf(),void 0===performance.memory)return;var f=new Of(100),a=new Xf("Memory",e,"MB",f);Qf.appendChild(a.element),function e(){f.addSample(Math.round(performance.memory.usedJSHeapSize/1048576)),a.invalidate(),setTimeout(e,30)}()}();var ht=function(e){function t(f,t){var n;return(n=e.call(this,f,t)||this).state={numPoints:0},n.updateCount=n.updateCount.bind(a(n)),n}f(t,e);var n=t.prototype;return n.updateCount=function(e){this.setState({numPoints:e.target.value})},n.componentDidMount=function(){this.setState({numPoints:1e3})},n.render=function(e,f){return F(1,"div","app-wrapper",[V(2,vt,{count:f.numPoints},null,null),F(1,"div","controls",[U("# Points"),F(64,"input",null,null,1,{type:"range",min:10,max:1e4,value:f.numPoints,onInput:this.updateCount},null,null),f.numPoints],0,null,null,null),F(1,"div","about",[U("InfernoJS 1k Components Demo based on the Glimmer demo by "),F(1,"a",null,"Michael Lange",16,{href:"http://mlange.io",target:"_blank"},null,null),U(".")],4,null,null,null)],4,null,null,null)},t}(Rf),pt={PHYLLOTAXIS:0,GRID:1,WAVE:2,SPIRAL:3},mt=[pt.PHYLLOTAXIS,pt.SPIRAL,pt.PHYLLOTAXIS,pt.GRID,pt.WAVE],vt=function(a){function t(e,f){var t;return(t=a.call(this,e,f)||this).layout=0,t.phyllotaxis=Pt(100),t.grid=St(100),t.wave=At(100),t.spiral=It(100),t.points=[],t.step=0,t.numSteps=120,t}f(t,a);var n=t.prototype;return n.next=function(){var f=this;this.step=(this.step+1)%this.numSteps,0===this.step&&(this.layout=(this.layout+1)%mt.length);var a=Math.min(1,this.step/(.8*this.numSteps)),t=mt[this.layout],n=mt[(this.layout+1)%mt.length],c=$t(t),d=$t(n),r=Nt(t),i=Nt(n);this.points=this.points.map(function(f){var t=e({},f);return t.x=Ct(t,a,c,d),t.y=Ct(t,a,r,i),t}),this.setState(),requestAnimationFrame(function(){f.next()})},n.setAnchors=function(e){var f=this;e.map(function(e,a){var t=Ft(f.grid(a)),n=t[0],c=t[1],d=Ft(f.wave(a)),r=d[0],i=d[1],o=Ft(f.spiral(a)),b=o[0],l=o[1],u=Ft(f.phyllotaxis(a)),s=u[0],h=u[1];Object.assign(e,{gx:n,gy:c,wx:r,wy:i,sx:b,sy:l,px:s,py:h})}),this.points=e},n.makePoints=function(e){for(var f=[],a=0;a0&&y(n),N.v=!1,r(a)&&a(),r(C.renderComplete)&&C.renderComplete(d,f)}(yt,wt,xt,kt)}(); +!function(){"use strict";function e(){return(e=Object.assign||function(e){for(var n=1;n0,p=l(s),b=o(s)&&s[0]===I;h||p||b?(t=t||n.slice(0,d),(h||b)&&(u=O(u)),(p||b)&&(u.key=I+d),t.push(u)):t&&t.push(u),u.flags|=65536}}r=0===(t=t||n).length?1:8}else(t=n).flags|=65536,81920&n.flags&&(t=O(n)),r=2;return e.children=t,e.childFlags=r,e}function G(e){if(c(e)||f(e))return E(e,null);if(a(e))return R(e,0,null);return 16384&e.flags?O(e):e}var X="http://www.w3.org/1999/xlink",q="http://www.w3.org/XML/1998/namespace",Q={"xlink:actuate":X,"xlink:arcrole":X,"xlink:href":X,"xlink:role":X,"xlink:show":X,"xlink:title":X,"xlink:type":X,"xml:base":q,"xml:lang":q,"xml:space":q};function Y(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 K=Y(0),z=Y(null),J=Y(!0);function Z(e,n){var t=n.$EV;return t||(t=n.$EV=Y(null)),t[e]||1===++K[e]&&(z[e]=de(e)),t}function ee(e,n){var t=n.$EV;t&&t[e]&&(0===--K[e]&&(document.removeEventListener(h(e),z[e]),z[e]=null),t[e]=null)}function ne(e,n,t,a){if(i(t))Z(e,a)[e]=t;else if(u(t)){if(L(n,t))return;Z(e,a)[e]=t}else ee(e,a)}function te(e){return i(e.composedPath)?e.composedPath()[0]:e.target}function ae(e,n,t,a){var f=te(e);do{if(n&&f.disabled)return;var r=f.$EV;if(r){var c=r[t];if(c&&(a.dom=f,c.event?c.event(c.data,e):c(e),e.cancelBubble))return}f=f.parentNode}while(!l(f))}function fe(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function re(){return this.defaultPrevented}function ce(){return this.cancelBubble}function ie(e){var n={dom:document};return e.isDefaultPrevented=re,e.isPropagationStopped=ce,e.stopPropagation=fe,Object.defineProperty(e,"currentTarget",{configurable:!0,get:function(){return n.dom}}),n}function oe(e){return function(n){if(0!==n.button)return void n.stopPropagation();ae(n,!0,e,ie(n))}}function le(e){return function(n){ae(n,!1,e,ie(n))}}function de(e){var n="onClick"===e||"onDblClick"===e?oe(e):le(e);return document.addEventListener(h(e),n),n}function ue(e,n){var t=document.createElement("i");return t.innerHTML=n,t.innerHTML===e.innerHTML}function se(e,n,t){if(e[n]){var a=e[n];a.event?a.event(a.data,t):a(t)}else{var f=n.toLowerCase();e[f]&&e[f](t)}}function he(e,n){var t=function(t){var a=this.$V;if(!a)return;var f=a.props||s,r=a.dom;if(o(e))se(f,e,t);else for(var c=0;c-1&&n.options[c]&&(i=n.options[c].value),t&&r(i)&&(i=e.defaultValue),ke(a,i)}}var Se,Me,Le=he("onInput",Ie),Fe=he("onChange");function Te(e,n){pe(e,"input",Le),n.onChange&&pe(e,"change",Fe)}function Ie(e,n,t){var a=e.value,f=n.value;if(r(a)){if(t){var c=e.defaultValue;r(c)||c===f||(n.defaultValue=c,n.value=c)}}else f!==a&&(n.defaultValue=a,n.value=a)}function Ae(e,n,t,a,f,r){64&e?xe(a,t):256&e?Pe(a,t,f,n):128&e&&Ie(a,t,f),r&&(t.$V=n)}function Ve(e,n,t){64&e?ye(n,t):256&e?Ce(n):128&e&&Te(n,t)}function Ue(e){return e.type&&be(e.type)?!r(e.checked):!r(e.value)}function He(e){e&&!T(e,null)&&e.current&&(e.current=null)}function Ne(e,n,t){e&&(i(e)||void 0!==e.current)&&t.push(function(){T(e,n)||void 0===e.current||(e.current=n)})}function _e(e,n){Ee(e),$(e,n)}function Ee(e){var n,t=e.flags,a=e.children;if(481&t){n=e.ref;var f=e.props;He(n);var c=e.childFlags;if(!l(f))for(var o=Object.keys(f),d=0,u=o.length;d0;for(var i in c&&(r=Ue(t))&&Ve(n,a,t),t)Xe(i,null,t[i],a,f,r,null);c&&Ae(n,e,a,t,!0,r)}function Qe(e,n,t){var a=G(e.render(n,e.state,t)),f=t;return i(e.getChildContext)&&(f=d(t,e.getChildContext())),e.$CX=f,a}function Ye(e,n,t,a,f,r){var c=new n(t,a),o=c.$N=Boolean(n.getDerivedStateFromProps||c.getSnapshotBeforeUpdate);if(c.$SVG=f,c.$L=r,e.children=c,c.$BS=!1,c.context=a,c.props===s&&(c.props=t),o)c.state=C(c,t,c.state);else if(i(c.componentWillMount)){c.$BR=!0,c.componentWillMount();var d=c.$PS;if(!l(d)){var u=c.state;if(l(u))c.state=d;else for(var h in d)u[h]=d[h];c.$PS=null}c.$BR=!1}return c.$LI=Qe(c,t,a),c}function Ke(e,n,t,a,f,r){var c=e.flags|=16384;481&c?en(e,n,t,a,f,r):4&c?tn(e,n,t,a,f,r):8&c?(fn(e,n,t,a,f,r),ln(e,r)):512&c||16&c?Ze(e,n,f):8192&c?Je(e,t,n,a,f,r):1024&c&&ze(e,t,n,f,r)}function ze(e,n,t,a,f){Ke(e.children,e.ref,n,!1,null,f);var r=B();Ze(r,t,a),e.dom=r.dom}function Je(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=B()),2===i?Ke(c,t,f,a,f,r):nn(c,t,n,a,f,r)}function Ze(e,n,t){var a=e.dom=document.createTextNode(e.children);l(n)||b(n,a,t)}function en(e,n,t,a,f,c){var i=e.flags,o=e.props,d=e.className,u=e.children,s=e.childFlags,h=e.dom=v(e.type,a=a||(32&i)>0);if(r(d)||""===d||(a?h.setAttribute("class",d):h.className=d),16===s)M(h,u);else if(1!==s){var p=a&&"foreignObject"!==e.type;2===s?(16384&u.flags&&(e.children=u=O(u)),Ke(u,h,t,p,null,c)):8!==s&&4!==s||nn(u,h,t,p,null,c)}l(n)||b(n,h,f),l(o)||qe(e,i,o,h,a),Ne(e.ref,h,c)}function nn(e,n,t,a,f,r){for(var c=0;cs)&&(d=k(c[s-1],!1).nextSibling)}gn(o,l,c,i,t,a,f,d,e,r)}function bn(e,n,t,a){var f=e.ref,r=n.ref,i=n.children;if(gn(e.childFlags,n.childFlags,e.children,i,f,t,!1,null,e,a),n.dom=e.dom,f!==r&&!c(i)){var o=i.dom;g(f,o),p(r,o)}}function vn(e,n,t,a,f,c){var i,o=n.dom=e.dom,l=e.props,d=n.props,u=!1,h=!1;if(a=a||(32&f)>0,l!==d){var p=l||s;if((i=d||s)!==s)for(var b in(u=(448&f)>0)&&(h=Ue(i)),i){var v=p[b],m=i[b];v!==m&&Xe(b,v,m,o,a,h,e)}if(p!==s)for(var g in p)r(i[g])&&!r(p[g])&&Xe(g,p[g],null,o,a,h,e)}var y=n.children,x=n.className;e.className!==x&&(r(x)?o.removeAttribute("class"):a?o.setAttribute("class",x):o.className=x),4096&f?hn(o,y):gn(e.childFlags,n.childFlags,e.children,y,o,t,a&&"foreignObject"!==n.type,null,e,c),u&&Ae(f,n,o,i,!1,h);var k=n.ref,$=e.ref;$!==k&&(He($),Ne(k,o,c))}function mn(e,n,t,a,f,r){Ee(e),nn(n,t,a,f,k(e,!0),r),$(e,t)}function gn(e,n,t,a,f,r,c,i,o,l){switch(e){case 2:switch(n){case 2:un(t,a,f,r,c,i,l);break;case 1:_e(t,f);break;case 16:Ee(t),M(f,a);break;default:mn(t,a,f,r,c,l)}break;case 1:switch(n){case 2:Ke(a,f,r,c,i,l);break;case 1:break;case 16:M(f,a);break;default:nn(a,f,r,c,i,l)}break;case 16:switch(n){case 16:sn(t,a,f);break;case 2:De(f),Ke(a,f,r,c,i,l);break;case 1:De(f);break;default:De(f),nn(a,f,r,c,i,l)}break;default:switch(n){case 16:Re(t),M(f,a);break;case 2:Oe(f,o,t),Ke(a,f,r,c,i,l);break;case 1:Oe(f,o,t);break;default:var d=0|t.length,u=0|a.length;0===d?u>0&&nn(a,f,r,c,i,l):0===u?Oe(f,o,t):8===n&&8===e?Pn(t,a,f,r,c,d,u,i,o,l):Cn(t,a,f,r,c,d,u,i,l)}}}function yn(e,n,t,a,f){f.push(function(){e.componentDidUpdate(n,t,a)})}function xn(e,n,t,a,f,r,c,o,l){var u=e.state,s=e.props,h=Boolean(e.$N),p=i(e.shouldComponentUpdate);if(h&&(n=C(e,t,n!==u?d(u,n):n)),c||!p||p&&e.shouldComponentUpdate(t,n,f)){!h&&i(e.componentWillUpdate)&&e.componentWillUpdate(t,n,f),e.props=t,e.state=n,e.context=f;var b=null,v=Qe(e,t,f);h&&i(e.getSnapshotBeforeUpdate)&&(b=e.getSnapshotBeforeUpdate(s,u)),un(e.$LI,v,a,e.$CX,r,o,l),e.$LI=v,i(e.componentDidUpdate)&&yn(e,s,u,b,l)}else e.props=t,e.state=n,e.context=f}function kn(e,n,t,a,f,r,c){var o=n.children=e.children;if(l(o))return;o.$L=c;var u=n.props||s,h=n.ref,p=e.ref,b=o.state;if(!o.$N){if(i(o.componentWillReceiveProps)){if(o.$BR=!0,o.componentWillReceiveProps(u,a),o.$UN)return;o.$BR=!1}l(o.$PS)||(b=d(b,o.$PS),o.$PS=null)}xn(o,b,u,t,a,f,!1,r,c),p!==h&&(He(p),Ne(h,o,c))}function $n(e,n,t,a,f,c,o){var l=!0,d=n.props||s,u=n.ref,h=e.props,p=!r(u),b=e.children;if(p&&i(u.onComponentShouldUpdate)&&(l=u.onComponentShouldUpdate(h,d)),!1!==l){p&&i(u.onComponentWillUpdate)&&u.onComponentWillUpdate(h,d);var v=n.type,m=G(32768&n.flags?v.render(d,u,a):v(d,a));un(b,m,t,a,f,c,o),n.children=m,p&&i(u.onComponentDidUpdate)&&u.onComponentDidUpdate(h,d)}else n.children=b}function wn(e,n){var t=n.children,a=n.dom=e.dom;t!==e.children&&(a.nodeValue=t)}function Cn(e,n,t,a,f,r,c,i,o){for(var l,d,u=r>c?c:r,s=0;sc)for(s=u;ss||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=O(v)),un(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;)_e(e[p++],t);else Sn(e,n,a,r,c,s,h,p,t,f,i,o,l)}function Sn(e,n,t,a,f,r,c,i,o,l,d,u,s){var h,p,b,v=0,m=i,g=i,y=r-i+1,x=c-i+1,$=new Int32Array(x+1),C=y===a,P=!1,S=0,M=0;if(f<4||(y|x)<32)for(v=m;v<=r;++v)if(h=e[v],Mi?P=!0:S=i,16384&p.flags&&(n[i]=p=O(p)),un(h,p,o,t,l,d,s),++M;break}!C&&i>c&&_e(h,o)}else C||_e(h,o);else{var L={};for(v=g;v<=c;++v)L[n[v].key]=v;for(v=m;v<=r;++v)if(h=e[v],Mm;)_e(e[m++],o);$[i-g]=v+1,S>i?P=!0:S=i,16384&(p=n[i]).flags&&(n[i]=p=O(p)),un(h,p,o,t,l,d,s),++M}else C||_e(h,o);else C||_e(h,o)}if(C)Oe(o,u,e),nn(n,o,t,l,d,s);else if(P){var F=Ln($);for(i=F.length-1,v=x-1;v>=0;v--)0===$[v]?(16384&(p=n[S=v+g]).flags&&(n[S]=p=O(p)),Ke(p,o,t,l,(b=S+1)=0;v--)0===$[v]&&(16384&(p=n[S=v+g]).flags&&(n[S]=p=O(p)),Ke(p,o,t,l,(b=S+1)Mn&&(Mn=o,Se=new Int32Array(o),Me=new Int32Array(o));t>1]]0&&(Me[t]=Se[r-1]),Se[r]=t)}r=f+1;var l=new Int32Array(r);for(c=Se[r-1];r-- >0;)l[r]=c,c=Me[c],Se[r]=0;return l}"undefined"!==typeof document&&(document.body,Node.prototype.$EV=null,Node.prototype.$V=null);var Fn=[],Tn="undefined"!==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):function(e){window.setTimeout(e,0)},In=!1;function An(e,n,t,a){var f=e.$PS;if(i(n)&&(n=n(f?d(e.state,f):e.state,e.props,e.context)),r(f))e.$PS=n;else for(var c in n)f[c]=n[c];if(e.$BR)i(t)&&e.$L.push(t.bind(e));else{if(!P.v&&0===Fn.length)return void Hn(e,a,t);if(-1===Fn.indexOf(e)&&Fn.push(e),In||(In=!0,Tn(Un)),i(t)){var o=e.$QU;o||(o=e.$QU=[]),o.push(t)}}}function Vn(e){for(var n=e.$QU,t=0,a=n.length;t0&&y(f),P.v=!1}else e.state=e.$PS,e.$PS=null;i(t)&&t.call(e)}var Nn=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};Nn.prototype.forceUpdate=function(e){if(this.$UN)return;An(this,{},e,!0)},Nn.prototype.setState=function(e,n){if(this.$UN)return;this.$BS||An(this,e,n,!1)},Nn.prototype.render=function(e,n,t){return null};var _n,En,Rn=function(e,n,t,a){this.min=e,this.max=n,this.mean=t,this.last=a},Dn=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 Rn(n,t,i,c)},e}(),On=[],Bn=-1,Wn=(_n=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}_n(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}),jn=30,Gn=100,Xn=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,On.push(e),-1===Bn&&requestAnimationFrame(function(e){Bn=-1;var n=On;On=[];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=En.HideMin|En.HideMean),Yn(),void 0===performance.memory)return;var n=new Dn(100),t=new qn("Memory",e,"MB",n);Qn.appendChild(t.element),function e(){n.addSample(Math.round(performance.memory.usedJSHeapSize/1048576)),t.invalidate(),setTimeout(e,30)}()}();var et=function(e){function a(n,a){var f;return(f=e.call(this,n,a)||this).state={numPoints:0},f.updateCount=f.updateCount.bind(t(f)),f}n(a,e);var f=a.prototype;return f.updateCount=function(e){this.setState({numPoints:e.target.value})},f.componentDidMount=function(){this.setState({numPoints:1e3})},f.render=function(e,n){return V(1,"div","app-wrapper",[_(2,at,{count:n.numPoints},null,null),V(1,"div","controls",[E("# Points"),V(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),V(1,"div","about",[E("InfernoJS 1k Components Demo based on the Glimmer demo by "),V(1,"a",null,"Michael Lange",16,{href:"http://mlange.io",target:"_blank"},null,null),E(".")],4,null,null,null)],4,null,null,null)},a}(Nn),nt={PHYLLOTAXIS:0,GRID:1,WAVE:2,SPIRAL:3},tt=[nt.PHYLLOTAXIS,nt.SPIRAL,nt.PHYLLOTAXIS,nt.GRID,nt.WAVE],at=function(t){function a(e,n){var a;return(a=t.call(this,e,n)||this).layout=0,a.phyllotaxis=ht(100),a.grid=pt(100),a.wave=bt(100),a.spiral=vt(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)%tt.length);var t=Math.min(1,this.step/(.8*this.numSteps)),a=tt[this.layout],f=tt[(this.layout+1)%tt.length],r=dt(a),c=dt(f),i=ut(a),o=ut(f);this.points=this.points.map(function(n){var a=e({},n);return a.x=st(a,t,r,c),a.y=st(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=yt(n.grid(t)),f=a[0],r=a[1],c=yt(n.wave(t)),i=c[0],o=c[1],l=yt(n.spiral(t)),d=l[0],u=l[1],s=yt(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&&y(f),P.v=!1,i(t)&&t(),i(S.renderComplete)&&S.renderComplete(c,n)}(rt,ct,it,ot)}(); diff --git a/docs/uibench-inferno-compat/dist/bundle.js b/docs/uibench-inferno-compat/dist/bundle.js index 87acdde4a..a1b64818f 100644 --- a/docs/uibench-inferno-compat/dist/bundle.js +++ b/docs/uibench-inferno-compat/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 o(e){return"function"===typeof e}function i(e){return"string"===typeof e}function l(e){return null===e}function a(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 u(e,n){if(o(n))return{data:e,event:n};return null}function c(e){return!l(e)&&"object"===typeof e}var f={},s="$F";function d(e){return e.substr(2).toLowerCase()}function p(e,n){e.appendChild(n)}function h(e,n,t){l(t)?p(e,n):e.insertBefore(n,t)}function v(e,n){if(n)return document.createElementNS("http://www.w3.org/2000/svg",e);return document.createElement(e)}function m(e,n,t){e.replaceChild(n,t)}function g(e,n){e.removeChild(n)}function y(e){for(var n;void 0!==(n=e.shift());)n()}function b(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 k(e,n){for(var t;e;){if(2033&(t=e.flags))return e.dom;e=b(e,n,t)}return null}function C(e,n){do{var t=e.flags;if(2033&t)return void g(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 o=0,i=r.length;o0,h=l(d),v=i(d)&&d[0]===F;p||h||v?(a=a||o.slice(0,f),(p||v)&&(s=R(s)),(h||v)&&(s.key=F+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=R(o)),u=2;return t.children=a,t.childFlags=u,t}function Q(t){if(r(t)||n(t))return D(t,null);if(e(t))return E(t,0,null);return 16384&t.flags?R(t):t}var X="http://www.w3.org/1999/xlink",q="http://www.w3.org/XML/1998/namespace",G={"xlink:actuate":X,"xlink:arcrole":X,"xlink:href":X,"xlink:role":X,"xlink:show":X,"xlink:title":X,"xlink:type":X,"xml:base":q,"xml:lang":q,"xml:space":q};function K(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=K(0),Y=K(null),Z=K(!0);function ee(e,n){var t=n.$EV;return t||(t=n.$EV=K(null)),t[e]||1===++J[e]&&(Y[e]=se(e)),t}function ne(e,n){var t=n.$EV;t&&t[e]&&(0===--J[e]&&(document.removeEventListener(d(e),Y[e]),Y[e]=null),t[e]=null)}function te(e,n,t,r){if(o(t))ee(e,r)[e]=t;else if(c(t)){if(P(n,t))return;ee(e,r)[e]=t}else ne(e,r)}function re(e){return o(e.composedPath)?e.composedPath()[0]:e.target}function oe(e,n,t,r){var o=re(e);do{if(n&&o.disabled)return;var i=o.$EV;if(i){var a=i[t];if(a&&(r.dom=o,a.event?a.event(a.data,e):a(e),e.cancelBubble))return}o=o.parentNode}while(!l(o))}function ie(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function le(){return this.defaultPrevented}function ae(){return this.cancelBubble}function ue(e){var n={dom:document};return e.isDefaultPrevented=le,e.isPropagationStopped=ae,e.stopPropagation=ie,Object.defineProperty(e,"currentTarget",{configurable:!0,get:function(){return n.dom}}),n}function ce(e){return function(n){if(0!==n.button)return void n.stopPropagation();oe(n,!0,e,ue(n))}}function fe(e){return function(n){oe(n,!1,e,ue(n))}}function se(e){var n="onClick"===e||"onDblClick"===e?ce(e):fe(e);return document.addEventListener(d(e),n),n}function de(e,n){var t=document.createElement("i");return t.innerHTML=n,t.innerHTML===e.innerHTML}function pe(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 he(e,n){var t=function(t){var r=this.$V;if(!r)return;var l=r.props||f,a=r.dom;if(i(e))pe(l,e,t);else for(var u=0;u-1&&n.options[l]&&(a=n.options[l].value),r&&t(a)&&(a=e.defaultValue),xe(o,a)}}var Pe,Ue,Ve=he("onInput",Me),Fe=he("onChange");function Le(e,n){ve(e,"input",Ve),n.onChange&&ve(e,"change",Fe)}function Me(e,n,r){var o=e.value,i=n.value;if(t(o)){if(r){var l=e.defaultValue;t(l)||l===i||(n.defaultValue=l,n.value=l)}}else i!==o&&(n.defaultValue=o,n.value=o)}function Ie(e,n,t,r,o,i){64&e?Ce(r,t):256&e?Se(r,t,o,n):128&e&&Me(r,t,o),i&&(t.$V=n)}function Te(e,n,t){64&e?ke(n,t):256&e?Ne(n):128&e&&Le(n,t)}function _e(e){return e.type&&me(e.type)?!t(e.checked):!t(e.value)}function Ae(e){e&&!V(e,null)&&e.current&&(e.current=null)}function De(e,n,t){e&&(o(e)||void 0!==e.current)&&t.push(function(){V(e,n)||void 0===e.current||(e.current=n)})}function Ee(e,n){Oe(e),C(e,n)}function Oe(e){var n,r=e.flags,i=e.children;if(481&r){n=e.ref;var a=e.props;Ae(n);var u=e.childFlags;if(!l(a))for(var c=Object.keys(a),s=0,d=c.length;s0;for(var a in l&&(i=_e(t))&&Te(n,r,t),t)Xe(a,null,t[a],r,o,i,null);l&&Ie(n,e,r,t,!0,i)}function Ge(e,n,t){var r=Q(e.render(n,e.state,t)),i=t;return o(e.getChildContext)&&(i=a(t,e.getChildContext())),e.$CX=i,r}function Ke(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=w(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=Ge(u,t,r),u}function Je(e,n,t,r,o,i){var l=e.flags|=16384;481&l?nn(e,n,t,r,o,i):4&l?rn(e,n,t,r,o,i):8&l?(ln(e,n,t,r,o,i),fn(e,i)):512&l||16&l?en(e,n,o):8192&l?Ze(e,t,n,r,o,i):1024&l&&Ye(e,t,n,o,i)}function Ye(e,n,t,r,o){Je(e.children,e.ref,n,!1,null,o);var i=W();en(i,t,r),e.dom=i.dom}function Ze(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=W()),2===a?Je(l,t,o,r,o,i):tn(l,t,n,r,o,i)}function en(e,n,t){var r=e.dom=document.createTextNode(e.children);l(n)||h(n,r,t)}function nn(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=v(e.type,o=o||(32&u)>0);if(t(f)||""===f||(o?p.setAttribute("class",f):p.className=f),16===d)S(p,s);else if(1!==d){var m=o&&"foreignObject"!==e.type;2===d?(16384&s.flags&&(e.children=s=R(s)),Je(s,p,r,m,null,a)):8!==d&&4!==d||tn(s,p,r,m,null,a)}l(n)||h(n,p,i),l(c)||qe(e,u,c,p,o),De(e.ref,p,a)}function tn(e,n,t,r,o,i){for(var l=0;ld)&&(f=k(l[d-1],!1).nextSibling)}bn(u,c,l,a,t,r,o,f,e,i)}function mn(e,n,t,o){var i=e.ref,l=n.ref,a=n.children;if(bn(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;g(i,u),p(l,u)}}function gn(e,n,r,o,i,l){var a,u=n.dom=e.dom,c=e.props,s=n.props,d=!1,p=!1;if(o=o||(32&i)>0,c!==s){var h=c||f;if((a=s||f)!==f)for(var v in(d=(448&i)>0)&&(p=_e(a)),a){var m=h[v],g=a[v];m!==g&&Xe(v,m,g,u,o,p,e)}if(h!==f)for(var y in h)t(a[y])&&!t(h[y])&&Xe(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?hn(u,b):bn(e.childFlags,n.childFlags,e.children,b,u,r,o&&"foreignObject"!==n.type,null,e,l),d&&Ie(i,n,u,a,!1,p);var C=n.ref,x=e.ref;x!==C&&(Ae(x),De(C,u,l))}function yn(e,n,t,r,o,i){Oe(e),tn(n,t,r,o,k(e,!0),i),C(e,t)}function bn(e,n,t,r,o,i,l,a,u,c){switch(e){case 2:switch(n){case 2:dn(t,r,o,i,l,a,c);break;case 1:Ee(t,o);break;case 16:Oe(t),S(o,r);break;default:yn(t,r,o,i,l,c)}break;case 1:switch(n){case 2:Je(r,o,i,l,a,c);break;case 1:break;case 16:S(o,r);break;default:tn(r,o,i,l,a,c)}break;case 16:switch(n){case 16:pn(t,r,o);break;case 2:Re(o),Je(r,o,i,l,a,c);break;case 1:Re(o);break;default:Re(o),tn(r,o,i,l,a,c)}break;default:switch(n){case 16:Be(t),S(o,r);break;case 2:We(o,u,t),Je(r,o,i,l,a,c);break;case 1:We(o,u,t);break;default:var f=0|t.length,s=0|r.length;0===f?s>0&&tn(r,o,i,l,a,c):0===s?We(o,u,t):8===n&&8===e?Sn(t,r,o,i,l,f,s,a,u,c):Nn(t,r,o,i,l,f,s,a,c)}}}function kn(e,n,t,r,o){o.push(function(){e.componentDidUpdate(n,t,r)})}function Cn(e,n,t,r,i,l,u,c,f){var s=e.state,d=e.props,p=Boolean(e.$N),h=o(e.shouldComponentUpdate);if(p&&(n=w(e,t,n!==s?a(s,n):n)),u||!h||h&&e.shouldComponentUpdate(t,n,i)){!p&&o(e.componentWillUpdate)&&e.componentWillUpdate(t,n,i),e.props=t,e.state=n,e.context=i;var v=null,m=Ge(e,t,i);p&&o(e.getSnapshotBeforeUpdate)&&(v=e.getSnapshotBeforeUpdate(d,s)),dn(e.$LI,m,r,e.$CX,l,c,f),e.$LI=m,o(e.componentDidUpdate)&&kn(e,d,s,v,f)}else e.props=t,e.state=n,e.context=i}function xn(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)}Cn(s,v,d,t,r,i,!1,u,c),h!==p&&(Ae(h),De(p,s,c))}function wn(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=Q(32768&n.flags?m.render(s,d,i):m(s,i));dn(v,g,r,i,l,a,u),n.children=g,h&&o(d.onComponentDidUpdate)&&d.onComponentDidUpdate(p,s)}else n.children=v}function $n(e,n){var t=n.children,r=n.dom=e.dom;t!==e.children&&(r.nodeValue=t)}function Nn(e,n,t,r,o,i,l,a,u){for(var c,f,s=i>l?l:i,d=0;dl)for(d=s;dd||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)),dn(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;)Ee(e[h++],t);else Pn(e,n,r,i,l,d,p,h,t,o,a,u,c)}function Pn(e,n,t,r,o,i,l,a,u,c,f,s,d){var p,h,v,m=0,g=a,y=a,b=i-a+1,C=l-a+1,w=new Int32Array(C+1),$=b===r,N=!1,S=0,P=0;if(o<4||(b|C)<32)for(m=g;m<=i;++m)if(p=e[m],Pa?N=!0:S=a,16384&h.flags&&(n[a]=h=R(h)),dn(p,h,u,t,c,f,d),++P;break}!$&&a>l&&Ee(p,u)}else $||Ee(p,u);else{var U={};for(m=y;m<=l;++m)U[n[m].key]=m;for(m=g;m<=i;++m)if(p=e[m],Pg;)Ee(e[g++],u);w[a-y]=m+1,S>a?N=!0:S=a,16384&(h=n[a]).flags&&(n[a]=h=R(h)),dn(p,h,u,t,c,f,d),++P}else $||Ee(p,u);else $||Ee(p,u)}if($)We(u,s,e),tn(n,u,t,c,f,d);else if(N){var V=Vn(w);for(a=V.length-1,m=C-1;m>=0;m--)0===w[m]?(16384&(h=n[S=m+y]).flags&&(n[S]=h=R(h)),Je(h,u,t,c,(v=S+1)=0;m--)0===w[m]&&(16384&(h=n[S=m+y]).flags&&(n[S]=h=R(h)),Je(h,u,t,c,(v=S+1)Un&&(Un=u,Pe=new Int32Array(u),Ue=new Int32Array(u));t>1]]0&&(Ue[t]=Pe[i-1]),Pe[i]=t)}i=o+1;var c=new Int32Array(i);for(l=Pe[i-1];i-- >0;)c[i]=l,l=Ue[l],Pe[i]=0;return c}function Fn(e,n,r,i){var l=[],a=n.$V;$.v=!0,t(a)?t(e)||(16384&e.flags&&(e=R(e)),Je(e,n,i,!1,null,l),n.$V=e,a=e):t(e)?(Ee(a,n),n.$V=null):(16384&e.flags&&(e=R(e)),dn(a,e,n,i,!1,null,l),a=n.$V=e),l.length>0&&y(l),$.v=!1,o(r)&&r(),o(N.renderComplete)&&N.renderComplete(a,n)}function Ln(e,n,t,r){void 0===t&&(t=null),void 0===r&&(r=f),Fn(e,n,t,r)}"undefined"!==typeof document&&(document.body,Node.prototype.$EV=null,Node.prototype.$V=null);var Mn=[],In="undefined"!==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):function(e){window.setTimeout(e,0)},Tn=!1;function _n(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(!$.v&&0===Mn.length)return void En(e,i,r);if(-1===Mn.indexOf(e)&&Mn.push(e),Tn||(Tn=!0,In(Dn)),o(r)){var c=e.$QU;c||(c=e.$QU=[]),c.push(r)}}}function An(e){for(var n=e.$QU,t=0,r=n.length;t0&&y(i),$.v=!1}else e.state=e.$PS,e.$PS=null;o(t)&&t.call(e)}var On=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 Bn(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 Rn(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 A(o,e.type,e.props||n?Bn(e.props,n):f,u,c);if(16&o)return D(i);if(8192&o)return E(1===l?[i]:i,0,u);return O(M(o,e.type,a,null,1,Bn(e.props,n),u,c))}On.prototype.forceUpdate=function(e){if(this.$UN)return;_n(this,{},e,!0)},On.prototype.setState=function(e,n){if(this.$UN)return;this.$BS||_n(this,e,n,!1)},On.prototype.render=function(e,n,t){return null};var Wn="a runtime error occured! Use Inferno in development environment to find the error.";function jn(e){throw e||(e=Wn),new Error("Inferno Error: "+e)}var Hn={componentDidMount:1,componentDidUnmount:1,componentDidUpdate:1,componentWillMount:1,componentWillUnmount:1,componentWillUpdate:1,constructor:1,render:1,shouldComponentUpdate:1};function zn(e,n){for(var t in n)e[t]=n[t];return e}function Qn(e){for(var n in e){var t=e[n];"function"!==typeof t||t.__bound||Hn[n]||((e[n]=t.bind(e)).__bound=!0)}}function Xn(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,Zn(r)||(n||(n={}),n.children=r),!Yn(n))for(var s in o={},n)"key"===s?a=n.key:"ref"===s?l=n.ref:1===et[s]?(l||(l={}),l[s]=n[s]):o[s]=n[s];return A(c,e,o,a,l)}if(c=H(e),!Yn(n))for(var d in o={},n)"className"===d||"class"===d?u=n[d]:"key"===d?a=n.key:"children"===d&&Zn(r)?r=n.children:"ref"===d?l=n.ref:("contenteditable"===d&&(c|=4096),o[d]=n[d]);if(8192&c)return E(1===f?[r]:r,0,a);return M(c,e,u,r,0,o,a,l)}var tt="a runtime error occured! Use Inferno in development environment to find the error.";function rt(e){return"function"===typeof e}function ot(e){return null===e}function it(e){throw e||(e=tt),new Error("Inferno Error: "+e)}function lt(e,n){var t=document.createElement("i");return t.innerHTML=n,t.innerHTML===e.innerHTML}function at(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}function ut(e,n){return Boolean(n&&n.dangerouslySetInnerHTML&&n.dangerouslySetInnerHTML.__html&<(e,n.dangerouslySetInnerHTML.__html))}function ct(e,n,t,r,o,i,l){var a,u=e.type,c=e.ref,f=e.props||{};if(i){var s=Ke(e,u,f,r,o,l);a=ht(s.$LI,n,t,s.$CX,o,l),un(c,s,l)}else{var d=Q(u(f,r));a=ht(d,n,t,r,o,l),e.children=d,fn(e,l)}return a}function ft(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)ot(t)?Je(a,n,r,o,null,i):t=(t=ht(a,n,t,r,o,i))?t.nextSibling:null;else if(16===l)ot(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?Je(p,n,r,o,t,i):t=(t=ht(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 ot(n.firstChild)||ut(n,u)||(n.textContent="",448&c&&(n.defaultValue=""))}function st(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?(nn(e,null,r,o,null,i),n.replaceChild(e.dom,t)):(e.dom=t,ft(e,t,t.firstChild,r,o,i),ot(a)||qe(e,c,a,t,o),void 0===(l=u)||null===l?""!==t.className&&t.removeAttribute("class"):o?t.setAttribute("class",u):t.className=u,De(f,t,i)),e.dom}function dt(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 pt(e,n,t,r,o,i){var l=e.children;if(2===e.childFlags)return dt(l,n,t),l.dom;return ft(e,n,t,r,o,i),at(l[l.length-1])}function ht(e,n,t,r,o,i){var l=e.flags|=16384;if(14&l)return ct(e,n,t,r,o,(4&l)>0,i);if(481&l)return st(e,n,t,r,o,i);if(16&l)return dt(e,n,t);if(512&l)return e.dom=t;if(8192&l)return pt(e,n,t,r,o,i);return it(),null}var vt=Array.isArray;function mt(e){return void 0===e||null===e}function gt(e){return"string"===typeof e}function yt(e){return null===e}function bt(){}bt.isRequired=bt;var kt=function(){return bt},Ct={any:kt,array:bt,arrayOf:kt,bool:bt,checkPropTypes:function(){return null},element:kt,func:bt,instanceOf:kt,node:kt,number:bt,object:bt,objectOf:kt,oneOf:kt,oneOfType:kt,shape:kt,string:bt,symbol:bt},xt={htmlFor:"for",onDoubleClick:"onDblClick"},wt=/[\-\:]([a-z])/g,$t=function(e){return e[1].toUpperCase()};function Nt(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(wt,$t);xt[n]=e});var St=/[A-Z]/g;function Pt(e,n){for(var t=0,r=e.length;t0)for(var l;void 0!==(l=i.shift());)l()}n.$V=e,rt(t)&&t()},isValidElement:function(e){if("object"!==typeof e||yt(e))return!1;return(495&e.flags)>0},linkEvent:u,normalizeProps:O,options:N,render:Wt,rerender:Dn,unmountComponentAtNode:function(e){return Fn(null,e,null,null),!0},unstable_renderSubtreeIntoContainer:function(e,n,t,r){Wt(A(4,Rt,{children:n,context:e.context}),t,null);var o=n.children;return r&&r.call(o),o},version:"15.4.2"};window.React=jt,window.ReactDOM=jt}function Ht(e){return M(1,"li","TreeLeaf",D(e.children),0,null,null,null)}function zt(e,n){return e!==n}function Qt(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]===F;p||h||v?(a=a||o.slice(0,f),(p||v)&&(s=R(s)),(h||v)&&(s.key=F+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=R(o)),u=2;return t.children=a,t.childFlags=u,t}function Q(t){if(r(t)||n(t))return D(t,null);if(e(t))return E(t,0,null);return 16384&t.flags?R(t):t}var X="http://www.w3.org/1999/xlink",q="http://www.w3.org/XML/1998/namespace",G={"xlink:actuate":X,"xlink:arcrole":X,"xlink:href":X,"xlink:role":X,"xlink:show":X,"xlink:title":X,"xlink:type":X,"xml:base":q,"xml:lang":q,"xml:space":q};function K(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=K(0),Y=K(null),Z=K(!0);function ee(e,n){var t=n.$EV;return t||(t=n.$EV=K(null)),t[e]||1===++J[e]&&(Y[e]=se(e)),t}function ne(e,n){var t=n.$EV;t&&t[e]&&(0===--J[e]&&(document.removeEventListener(d(e),Y[e]),Y[e]=null),t[e]=null)}function te(e,n,t,r){if(o(t))ee(e,r)[e]=t;else if(c(t)){if(P(n,t))return;ee(e,r)[e]=t}else ne(e,r)}function re(e){return o(e.composedPath)?e.composedPath()[0]:e.target}function oe(e,n,t,r){var o=re(e);do{if(n&&o.disabled)return;var i=o.$EV;if(i){var a=i[t];if(a&&(r.dom=o,a.event?a.event(a.data,e):a(e),e.cancelBubble))return}o=o.parentNode}while(!l(o))}function ie(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function le(){return this.defaultPrevented}function ae(){return this.cancelBubble}function ue(e){var n={dom:document};return e.isDefaultPrevented=le,e.isPropagationStopped=ae,e.stopPropagation=ie,Object.defineProperty(e,"currentTarget",{configurable:!0,get:function(){return n.dom}}),n}function ce(e){return function(n){if(0!==n.button)return void n.stopPropagation();oe(n,!0,e,ue(n))}}function fe(e){return function(n){oe(n,!1,e,ue(n))}}function se(e){var n="onClick"===e||"onDblClick"===e?ce(e):fe(e);return document.addEventListener(d(e),n),n}function de(e,n){var t=document.createElement("i");return t.innerHTML=n,t.innerHTML===e.innerHTML}function pe(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 he(e,n){var t=function(t){var r=this.$V;if(!r)return;var l=r.props||f,a=r.dom;if(i(e))pe(l,e,t);else for(var u=0;u-1&&n.options[l]&&(a=n.options[l].value),r&&t(a)&&(a=e.defaultValue),xe(o,a)}}var Pe,Ue,Ve=he("onInput",Me),Fe=he("onChange");function Le(e,n){ve(e,"input",Ve),n.onChange&&ve(e,"change",Fe)}function Me(e,n,r){var o=e.value,i=n.value;if(t(o)){if(r){var l=e.defaultValue;t(l)||l===i||(n.defaultValue=l,n.value=l)}}else i!==o&&(n.defaultValue=o,n.value=o)}function Ie(e,n,t,r,o,i){64&e?Ce(r,t):256&e?Se(r,t,o,n):128&e&&Me(r,t,o),i&&(t.$V=n)}function Te(e,n,t){64&e?ke(n,t):256&e?Ne(n):128&e&&Le(n,t)}function _e(e){return e.type&&me(e.type)?!t(e.checked):!t(e.value)}function Ae(e){e&&!V(e,null)&&e.current&&(e.current=null)}function De(e,n,t){e&&(o(e)||void 0!==e.current)&&t.push(function(){V(e,n)||void 0===e.current||(e.current=n)})}function Ee(e,n){Oe(e),C(e,n)}function Oe(e){var n,r=e.flags,i=e.children;if(481&r){n=e.ref;var a=e.props;Ae(n);var u=e.childFlags;if(!l(a))for(var c=Object.keys(a),s=0,d=c.length;s0;for(var a in l&&(i=_e(t))&&Te(n,r,t),t)Xe(a,null,t[a],r,o,i,null);l&&Ie(n,e,r,t,!0,i)}function Ge(e,n,t){var r=Q(e.render(n,e.state,t)),i=t;return o(e.getChildContext)&&(i=a(t,e.getChildContext())),e.$CX=i,r}function Ke(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=w(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=Ge(u,t,r),u}function Je(e,n,t,r,o,i){var l=e.flags|=16384;481&l?nn(e,n,t,r,o,i):4&l?rn(e,n,t,r,o,i):8&l?(ln(e,n,t,r,o,i),fn(e,i)):512&l||16&l?en(e,n,o):8192&l?Ze(e,t,n,r,o,i):1024&l&&Ye(e,t,n,o,i)}function Ye(e,n,t,r,o){Je(e.children,e.ref,n,!1,null,o);var i=W();en(i,t,r),e.dom=i.dom}function Ze(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=W()),2===a?Je(l,t,o,r,o,i):tn(l,t,n,r,o,i)}function en(e,n,t){var r=e.dom=document.createTextNode(e.children);l(n)||h(n,r,t)}function nn(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=v(e.type,o=o||(32&u)>0);if(t(f)||""===f||(o?p.setAttribute("class",f):p.className=f),16===d)S(p,s);else if(1!==d){var m=o&&"foreignObject"!==e.type;2===d?(16384&s.flags&&(e.children=s=R(s)),Je(s,p,r,m,null,a)):8!==d&&4!==d||tn(s,p,r,m,null,a)}l(n)||h(n,p,i),l(c)||qe(e,u,c,p,o),De(e.ref,p,a)}function tn(e,n,t,r,o,i){for(var l=0;ld)&&(f=k(l[d-1],!1).nextSibling)}bn(u,c,l,a,t,r,o,f,e,i)}function mn(e,n,t,o){var i=e.ref,l=n.ref,a=n.children;if(bn(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;g(i,u),p(l,u)}}function gn(e,n,r,o,i,l){var a,u=n.dom=e.dom,c=e.props,s=n.props,d=!1,p=!1;if(o=o||(32&i)>0,c!==s){var h=c||f;if((a=s||f)!==f)for(var v in(d=(448&i)>0)&&(p=_e(a)),a){var m=h[v],g=a[v];m!==g&&Xe(v,m,g,u,o,p,e)}if(h!==f)for(var y in h)t(a[y])&&!t(h[y])&&Xe(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?hn(u,b):bn(e.childFlags,n.childFlags,e.children,b,u,r,o&&"foreignObject"!==n.type,null,e,l),d&&Ie(i,n,u,a,!1,p);var C=n.ref,x=e.ref;x!==C&&(Ae(x),De(C,u,l))}function yn(e,n,t,r,o,i){Oe(e),tn(n,t,r,o,k(e,!0),i),C(e,t)}function bn(e,n,t,r,o,i,l,a,u,c){switch(e){case 2:switch(n){case 2:dn(t,r,o,i,l,a,c);break;case 1:Ee(t,o);break;case 16:Oe(t),S(o,r);break;default:yn(t,r,o,i,l,c)}break;case 1:switch(n){case 2:Je(r,o,i,l,a,c);break;case 1:break;case 16:S(o,r);break;default:tn(r,o,i,l,a,c)}break;case 16:switch(n){case 16:pn(t,r,o);break;case 2:Re(o),Je(r,o,i,l,a,c);break;case 1:Re(o);break;default:Re(o),tn(r,o,i,l,a,c)}break;default:switch(n){case 16:Be(t),S(o,r);break;case 2:We(o,u,t),Je(r,o,i,l,a,c);break;case 1:We(o,u,t);break;default:var f=0|t.length,s=0|r.length;0===f?s>0&&tn(r,o,i,l,a,c):0===s?We(o,u,t):8===n&&8===e?Sn(t,r,o,i,l,f,s,a,u,c):Nn(t,r,o,i,l,f,s,a,c)}}}function kn(e,n,t,r,o){o.push(function(){e.componentDidUpdate(n,t,r)})}function Cn(e,n,t,r,i,l,u,c,f){var s=e.state,d=e.props,p=Boolean(e.$N),h=o(e.shouldComponentUpdate);if(p&&(n=w(e,t,n!==s?a(s,n):n)),u||!h||h&&e.shouldComponentUpdate(t,n,i)){!p&&o(e.componentWillUpdate)&&e.componentWillUpdate(t,n,i),e.props=t,e.state=n,e.context=i;var v=null,m=Ge(e,t,i);p&&o(e.getSnapshotBeforeUpdate)&&(v=e.getSnapshotBeforeUpdate(d,s)),dn(e.$LI,m,r,e.$CX,l,c,f),e.$LI=m,o(e.componentDidUpdate)&&kn(e,d,s,v,f)}else e.props=t,e.state=n,e.context=i}function xn(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)}Cn(s,v,d,t,r,i,!1,u,c),h!==p&&(Ae(h),De(p,s,c))}function wn(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=Q(32768&n.flags?m.render(s,d,i):m(s,i));dn(v,g,r,i,l,a,u),n.children=g,h&&o(d.onComponentDidUpdate)&&d.onComponentDidUpdate(p,s)}else n.children=v}function $n(e,n){var t=n.children,r=n.dom=e.dom;t!==e.children&&(r.nodeValue=t)}function Nn(e,n,t,r,o,i,l,a,u){for(var c,f,s=i>l?l:i,d=0;dl)for(d=s;dd||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)),dn(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;)Ee(e[h++],t);else Pn(e,n,r,i,l,d,p,h,t,o,a,u,c)}function Pn(e,n,t,r,o,i,l,a,u,c,f,s,d){var p,h,v,m=0,g=a,y=a,b=i-a+1,C=l-a+1,w=new Int32Array(C+1),$=b===r,N=!1,S=0,P=0;if(o<4||(b|C)<32)for(m=g;m<=i;++m)if(p=e[m],Pa?N=!0:S=a,16384&h.flags&&(n[a]=h=R(h)),dn(p,h,u,t,c,f,d),++P;break}!$&&a>l&&Ee(p,u)}else $||Ee(p,u);else{var U={};for(m=y;m<=l;++m)U[n[m].key]=m;for(m=g;m<=i;++m)if(p=e[m],Pg;)Ee(e[g++],u);w[a-y]=m+1,S>a?N=!0:S=a,16384&(h=n[a]).flags&&(n[a]=h=R(h)),dn(p,h,u,t,c,f,d),++P}else $||Ee(p,u);else $||Ee(p,u)}if($)We(u,s,e),tn(n,u,t,c,f,d);else if(N){var V=Vn(w);for(a=V.length-1,m=C-1;m>=0;m--)0===w[m]?(16384&(h=n[S=m+y]).flags&&(n[S]=h=R(h)),Je(h,u,t,c,(v=S+1)=0;m--)0===w[m]&&(16384&(h=n[S=m+y]).flags&&(n[S]=h=R(h)),Je(h,u,t,c,(v=S+1)Un&&(Un=u,Pe=new Int32Array(u),Ue=new Int32Array(u));t>1]]0&&(Ue[t]=Pe[i-1]),Pe[i]=t)}i=o+1;var c=new Int32Array(i);for(l=Pe[i-1];i-- >0;)c[i]=l,l=Ue[l],Pe[i]=0;return c}function Fn(e,n,r,i){var l=[],a=n.$V;$.v=!0,t(a)?t(e)||(16384&e.flags&&(e=R(e)),Je(e,n,i,!1,null,l),n.$V=e,a=e):t(e)?(Ee(a,n),n.$V=null):(16384&e.flags&&(e=R(e)),dn(a,e,n,i,!1,null,l),a=n.$V=e),l.length>0&&y(l),$.v=!1,o(r)&&r(),o(N.renderComplete)&&N.renderComplete(a,n)}function Ln(e,n,t,r){void 0===t&&(t=null),void 0===r&&(r=f),Fn(e,n,t,r)}"undefined"!==typeof document&&(document.body,Node.prototype.$EV=null,Node.prototype.$V=null);var Mn=[],In="undefined"!==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):function(e){window.setTimeout(e,0)},Tn=!1;function _n(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(!$.v&&0===Mn.length)return void En(e,i,r);if(-1===Mn.indexOf(e)&&Mn.push(e),Tn||(Tn=!0,In(Dn)),o(r)){var c=e.$QU;c||(c=e.$QU=[]),c.push(r)}}}function An(e){for(var n=e.$QU,t=0,r=n.length;t0&&y(i),$.v=!1}else e.state=e.$PS,e.$PS=null;o(t)&&t.call(e)}var On=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 Bn(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 Rn(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 A(o,e.type,e.props||n?Bn(e.props,n):f,u,c);if(16&o)return D(i);if(8192&o)return E(1===l?[i]:i,0,u);return O(M(o,e.type,a,null,1,Bn(e.props,n),u,c))}On.prototype.forceUpdate=function(e){if(this.$UN)return;_n(this,{},e,!0)},On.prototype.setState=function(e,n){if(this.$UN)return;this.$BS||_n(this,e,n,!1)},On.prototype.render=function(e,n,t){return null};var Wn="a runtime error occured! Use Inferno in development environment to find the error.";function jn(e){throw e||(e=Wn),new Error("Inferno Error: "+e)}var Hn={componentDidMount:1,componentDidUnmount:1,componentDidUpdate:1,componentWillMount:1,componentWillUnmount:1,componentWillUpdate:1,constructor:1,render:1,shouldComponentUpdate:1};function zn(e,n){for(var t in n)e[t]=n[t];return e}function Qn(e){for(var n in e){var t=e[n];"function"!==typeof t||t.__bound||Hn[n]||((e[n]=t.bind(e)).__bound=!0)}}function Xn(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,Zn(r)||(n||(n={}),n.children=r),!Yn(n))for(var s in o={},n)"key"===s?a=n.key:"ref"===s?l=n.ref:1===et[s]?(l||(l={}),l[s]=n[s]):o[s]=n[s];return A(c,e,o,a,l)}if(c=H(e),!Yn(n))for(var d in o={},n)"className"===d||"class"===d?u=n[d]:"key"===d?a=n.key:"children"===d&&Zn(r)?r=n.children:"ref"===d?l=n.ref:("contenteditable"===d&&(c|=4096),o[d]=n[d]);if(8192&c)return E(1===f?[r]:r,0,a);return M(c,e,u,r,0,o,a,l)}var tt="a runtime error occured! Use Inferno in development environment to find the error.";function rt(e){return"function"===typeof e}function ot(e){return null===e}function it(e){throw e||(e=tt),new Error("Inferno Error: "+e)}function lt(e,n){var t=document.createElement("i");return t.innerHTML=n,t.innerHTML===e.innerHTML}function at(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}function ut(e,n){return Boolean(n&&n.dangerouslySetInnerHTML&&n.dangerouslySetInnerHTML.__html&<(e,n.dangerouslySetInnerHTML.__html))}function ct(e,n,t){return 32768&e.flags?e.type.render(t,e.ref,n):e.type(t,n)}function ft(e,n,t,r,o,i,l){var a,u=e.type,c=e.ref,s=e.props||f;if(i){var d=Ke(e,u,s,r,o,l);a=vt(d.$LI,n,t,d.$CX,o,l),un(c,d,l)}else{var p=Q(ct(e,r,s));a=vt(p,n,t,r,o,l),e.children=p,fn(e,l)}return a}function st(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)ot(t)?Je(a,n,r,o,null,i):t=(t=vt(a,n,t,r,o,i))?t.nextSibling:null;else if(16===l)ot(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?Je(p,n,r,o,t,i):t=(t=vt(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 ot(n.firstChild)||ut(n,u)||(n.textContent="",448&c&&(n.defaultValue=""))}function dt(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?(nn(e,null,r,o,null,i),n.replaceChild(e.dom,t)):(e.dom=t,st(e,t,t.firstChild,r,o,i),ot(a)||qe(e,c,a,t,o),void 0===(l=u)||null===l?""!==t.className&&t.removeAttribute("class"):o?t.setAttribute("class",u):t.className=u,De(f,t,i)),e.dom}function pt(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 ht(e,n,t,r,o,i){var l=e.children;if(2===e.childFlags)return pt(l,n,t),l.dom;return st(e,n,t,r,o,i),at(l[l.length-1])}function vt(e,n,t,r,o,i){var l=e.flags|=16384;if(14&l)return ft(e,n,t,r,o,(4&l)>0,i);if(481&l)return dt(e,n,t,r,o,i);if(16&l)return pt(e,n,t);if(512&l)return e.dom=t;if(8192&l)return ht(e,n,t,r,o,i);return it(),null}var mt=Array.isArray;function gt(e){return void 0===e||null===e}function yt(e){return"string"===typeof e}function bt(e){return null===e}function kt(){}kt.isRequired=kt;var Ct=function(){return kt},xt={any:Ct,array:kt,arrayOf:Ct,bool:kt,checkPropTypes:function(){return null},element:Ct,func:kt,instanceOf:Ct,node:Ct,number:kt,object:kt,objectOf:Ct,oneOf:Ct,oneOfType:Ct,shape:Ct,string:kt,symbol:kt},wt={htmlFor:"for",onDoubleClick:"onDblClick"},$t=/[\-\:]([a-z])/g,Nt=function(e){return e[1].toUpperCase()};function St(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($t,Nt);wt[n]=e});var Pt=/[A-Z]/g;function Ut(e,n){for(var t=0,r=e.length;t0)for(var l;void 0!==(l=i.shift());)l()}n.$V=e,rt(t)&&t()},isValidElement:function(e){if("object"!==typeof e||bt(e))return!1;return(495&e.flags)>0},linkEvent:u,normalizeProps:O,options:N,render:jt,rerender:Dn,unmountComponentAtNode:function(e){return Fn(null,e,null,null),!0},unstable_renderSubtreeIntoContainer:function(e,n,t,r){jt(A(4,Wt,{children:n,context:e.context}),t,null);var o=n.children;return r&&r.call(o),o},version:"15.4.2"};window.React=Ht,window.ReactDOM=Ht}function zt(e){return M(1,"li","TreeLeaf",D(e.children),0,null,null,null)}function Qt(e,n){return e!==n}function Xt(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]===U;p||v||h?(a=a||l.slice(0,f),(p||h)&&(s=E(s)),(v||h)&&(s.key=U+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=E(l)),u=2;return t.children=a,t.childFlags=u,t}function j(t){if(r(t)||n(t))return T(t,null);if(e(t))return D(t,0,null);return 16384&t.flags?E(t):t}var H="http://www.w3.org/1999/xlink",X="http://www.w3.org/XML/1998/namespace",_={"xlink:actuate":H,"xlink:arcrole":H,"xlink:href":H,"xlink:role":H,"xlink:show":H,"xlink:title":H,"xlink:type":H,"xml:base":X,"xml:lang":X,"xml:space":X};function K(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 q=K(0),z=K(null),G=K(!0);function J(e,n){var t=n.$EV;return t||(t=n.$EV=K(null)),t[e]||1===++q[e]&&(z[e]=ae(e)),t}function Q(e,n){var t=n.$EV;t&&t[e]&&(0===--q[e]&&(document.removeEventListener(s(e),z[e]),z[e]=null),t[e]=null)}function Y(e,n,t,r){if(l(t))J(e,r)[e]=t;else if(c(t)){if(P(n,t))return;J(e,r)[e]=t}else Q(e,r)}function Z(e){return l(e.composedPath)?e.composedPath()[0]:e.target}function ee(e,n,t,r){var l=Z(e);do{if(n&&l.disabled)return;var o=l.$EV;if(o){var a=o[t];if(a&&(r.dom=l,a.event?a.event(a.data,e):a(e),e.cancelBubble))return}l=l.parentNode}while(!i(l))}function ne(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function te(){return this.defaultPrevented}function re(){return this.cancelBubble}function le(e){var n={dom:document};return e.isDefaultPrevented=te,e.isPropagationStopped=re,e.stopPropagation=ne,Object.defineProperty(e,"currentTarget",{configurable:!0,get:function(){return n.dom}}),n}function oe(e){return function(n){if(0!==n.button)return void n.stopPropagation();ee(n,!0,e,le(n))}}function ie(e){return function(n){ee(n,!1,e,le(n))}}function ae(e){var n="onClick"===e||"onDblClick"===e?oe(e):ie(e);return document.addEventListener(s(e),n),n}function ue(e,n){var t=document.createElement("i");return t.innerHTML=n,t.innerHTML===e.innerHTML}function ce(e,n,t){if(e[n]){var r=e[n];r.event?r.event(r.data,t):r(t)}else{var l=n.toLowerCase();e[l]&&e[l](t)}}function fe(e,n){var t=function(t){var r=this.$V;if(!r)return;var i=r.props||f,a=r.dom;if(o(e))ce(i,e,t);else for(var u=0;u-1&&n.options[i]&&(a=n.options[i].value),r&&t(a)&&(a=e.defaultValue),ye(l,a)}}var $e,Fe,Pe=fe("onInput",Ue),Se=fe("onChange");function xe(e,n){se(e,"input",Pe),n.onChange&&se(e,"change",Se)}function Ue(e,n,r){var l=e.value,o=n.value;if(t(l)){if(r){var i=e.defaultValue;t(i)||i===o||(n.defaultValue=i,n.value=i)}}else o!==l&&(n.defaultValue=l,n.value=l)}function Le(e,n,t,r,l,o){64&e?ge(r,t):256&e?we(r,t,l,n):128&e&&Ue(r,t,l),o&&(t.$V=n)}function Ve(e,n,t){64&e?me(n,t):256&e?Ce(n):128&e&&xe(n,t)}function Ae(e){return e.type&&de(e.type)?!t(e.checked):!t(e.value)}function Ie(e){e&&!x(e,null)&&e.current&&(e.current=null)}function Ne(e,n,t){e&&(l(e)||void 0!==e.current)&&t.push(function(){x(e,n)||void 0===e.current||(e.current=n)})}function Me(e,n){Te(e),k(e,n)}function Te(e){var n,r=e.flags,o=e.children;if(481&r){n=e.ref;var a=e.props;Ie(n);var u=e.childFlags;if(!i(a))for(var c=Object.keys(a),s=0,d=c.length;s0;for(var a in i&&(o=Ae(t))&&Ve(n,r,t),t)He(a,null,t[a],r,l,o,null);i&&Le(n,e,r,t,!0,o)}function _e(e,n,t){var r=j(e.render(n,e.state,t)),o=t;return l(e.getChildContext)&&(o=a(t,e.getChildContext())),e.$CX=o,r}function Ke(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=w(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=_e(u,t,r),u}function qe(e,n,t,r,l,o){var i=e.flags|=16384;481&i?Qe(e,n,t,r,l,o):4&i?Ze(e,n,t,r,l,o):8&i?(nn(e,n,t,r,l,o),on(e,o)):512&i||16&i?Je(e,n,l):8192&i?Ge(e,t,n,r,l,o):1024&i&&ze(e,t,n,l,o)}function ze(e,n,t,r,l){qe(e.children,e.ref,n,!1,null,l);var o=W();Je(o,t,r),e.dom=o.dom}function Ge(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=W()),2===a?qe(i,t,l,r,l,o):Ye(i,t,n,r,l,o)}function Je(e,n,t){var r=e.dom=document.createTextNode(e.children);i(n)||p(n,r,t)}function Qe(e,n,r,l,o,a){var u=e.flags,c=e.props,f=e.className,s=e.children,d=e.childFlags,h=e.dom=v(e.type,l=l||(32&u)>0);if(t(f)||""===f||(l?h.setAttribute("class",f):h.className=f),16===d)F(h,s);else if(1!==d){var m=l&&"foreignObject"!==e.type;2===d?(16384&s.flags&&(e.children=s=E(s)),qe(s,h,r,m,null,a)):8!==d&&4!==d||Ye(s,h,r,m,null,a)}i(n)||p(n,h,o),i(c)||Xe(e,u,c,h,l),Ne(e.ref,h,a)}function Ye(e,n,t,r,l,o){for(var i=0;id)&&(f=b(i[d-1],!1).nextSibling)}hn(u,c,i,a,t,r,l,f,e,o)}function dn(e,n,t,l){var o=e.ref,i=n.ref,a=n.children;if(hn(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;m(o,u),d(i,u)}}function pn(e,n,r,l,o,i){var a,u=n.dom=e.dom,c=e.props,s=n.props,d=!1,p=!1;if(l=l||(32&o)>0,c!==s){var v=c||f;if((a=s||f)!==f)for(var h in(d=(448&o)>0)&&(p=Ae(a)),a){var m=v[h],g=a[h];m!==g&&He(h,m,g,u,l,p,e)}if(v!==f)for(var y in v)t(a[y])&&!t(v[y])&&He(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?fn(u,b):hn(e.childFlags,n.childFlags,e.children,b,u,r,l&&"foreignObject"!==n.type,null,e,i),d&&Le(o,n,u,a,!1,p);var C=n.ref,w=e.ref;w!==C&&(Ie(w),Ne(C,u,i))}function vn(e,n,t,r,l,o){Te(e),Ye(n,t,r,l,b(e,!0),o),k(e,t)}function hn(e,n,t,r,l,o,i,a,u,c){switch(e){case 2:switch(n){case 2:un(t,r,l,o,i,a,c);break;case 1:Me(t,l);break;case 16:Te(t),F(l,r);break;default:vn(t,r,l,o,i,c)}break;case 1:switch(n){case 2:qe(r,l,o,i,a,c);break;case 1:break;case 16:F(l,r);break;default:Ye(r,l,o,i,a,c)}break;case 16:switch(n){case 16:cn(t,r,l);break;case 2:Be(l),qe(r,l,o,i,a,c);break;case 1:Be(l);break;default:Be(l),Ye(r,l,o,i,a,c)}break;default:switch(n){case 16:De(t),F(l,r);break;case 2:Ee(l,u,t),qe(r,l,o,i,a,c);break;case 1:Ee(l,u,t);break;default:var f=0|t.length,s=0|r.length;0===f?s>0&&Ye(r,l,o,i,a,c):0===s?Ee(l,u,t):8===n&&8===e?wn(t,r,l,o,i,f,s,a,u,c):Cn(t,r,l,o,i,f,s,a,c)}}}function mn(e,n,t,r,l){l.push(function(){e.componentDidUpdate(n,t,r)})}function gn(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=w(e,t,n!==s?a(s,n):n)),u||!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=_e(e,t,o);p&&l(e.getSnapshotBeforeUpdate)&&(h=e.getSnapshotBeforeUpdate(d,s)),un(e.$LI,m,r,e.$CX,i,c,f),e.$LI=m,l(e.componentDidUpdate)&&mn(e,d,s,h,f)}else e.props=t,e.state=n,e.context=o}function yn(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)}gn(s,h,d,t,r,o,!1,u,c),v!==p&&(Ie(v),Ne(p,s,c))}function bn(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=j(32768&n.flags?m.render(s,d,o):m(s,o));un(h,g,r,o,i,a,u),n.children=g,v&&l(d.onComponentDidUpdate)&&d.onComponentDidUpdate(p,s)}else n.children=h}function kn(e,n){var t=n.children,r=n.dom=e.dom;t!==e.children&&(r.nodeValue=t)}function Cn(e,n,t,r,l,o,i,a,u){for(var c,f,s=o>i?i:o,d=0;di)for(d=s;dd||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=E(m)),un(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;)Me(e[v++],t);else $n(e,n,r,o,i,d,p,v,t,l,a,u,c)}function $n(e,n,t,r,l,o,i,a,u,c,f,s,d){var p,v,h,m=0,g=a,y=a,k=o-a+1,w=i-a+1,$=new Int32Array(w+1),F=k===r,P=!1,S=0,x=0;if(l<4||(k|w)<32)for(m=g;m<=o;++m)if(p=e[m],xa?P=!0:S=a,16384&v.flags&&(n[a]=v=E(v)),un(p,v,u,t,c,f,d),++x;break}!F&&a>i&&Me(p,u)}else F||Me(p,u);else{var U={};for(m=y;m<=i;++m)U[n[m].key]=m;for(m=g;m<=o;++m)if(p=e[m],xg;)Me(e[g++],u);$[a-y]=m+1,S>a?P=!0:S=a,16384&(v=n[a]).flags&&(n[a]=v=E(v)),un(p,v,u,t,c,f,d),++x}else F||Me(p,u);else F||Me(p,u)}if(F)Ee(u,s,e),Ye(n,u,t,c,f,d);else if(P){var L=Pn($);for(a=L.length-1,m=w-1;m>=0;m--)0===$[m]?(16384&(v=n[S=m+y]).flags&&(n[S]=v=E(v)),qe(v,u,t,c,(h=S+1)=0;m--)0===$[m]&&(16384&(v=n[S=m+y]).flags&&(n[S]=v=E(v)),qe(v,u,t,c,(h=S+1)Fn&&(Fn=u,$e=new Int32Array(u),Fe=new Int32Array(u));t>1]]0&&(Fe[t]=$e[o-1]),$e[o]=t)}o=l+1;var c=new Int32Array(o);for(i=$e[o-1];o-- >0;)c[o]=i,i=Fe[i],$e[o]=0;return c}function Sn(e,n,r,o){var i=[],a=n.$V;t(a)?t(e)||(16384&e.flags&&(e=E(e)),qe(e,n,o,!1,null,i),n.$V=e,a=e):t(e)?(Me(a,n),n.$V=null):(16384&e.flags&&(e=E(e)),un(a,e,n,o,!1,null,i),a=n.$V=e),i.length>0&&g(i),l(r)&&r(),l($.renderComplete)&&$.renderComplete(a,n)}function xn(e,n,t,r){void 0===t&&(t=null),void 0===r&&(r=f),Sn(e,n,t,r)}function Un(e){return V(1,"li","TreeLeaf",e.children,0,null,null,null)}function Ln(e,n){return e!==n}function Vn(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]===U;p||v||h?(a=a||l.slice(0,f),(p||h)&&(s=E(s)),(v||h)&&(s.key=U+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=E(l)),u=2;return t.children=a,t.childFlags=u,t}function j(t){if(r(t)||n(t))return T(t,null);if(e(t))return D(t,0,null);return 16384&t.flags?E(t):t}var H="http://www.w3.org/1999/xlink",X="http://www.w3.org/XML/1998/namespace",_={"xlink:actuate":H,"xlink:arcrole":H,"xlink:href":H,"xlink:role":H,"xlink:show":H,"xlink:title":H,"xlink:type":H,"xml:base":X,"xml:lang":X,"xml:space":X};function K(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 q=K(0),z=K(null),G=K(!0);function J(e,n){var t=n.$EV;return t||(t=n.$EV=K(null)),t[e]||1===++q[e]&&(z[e]=ae(e)),t}function Q(e,n){var t=n.$EV;t&&t[e]&&(0===--q[e]&&(document.removeEventListener(s(e),z[e]),z[e]=null),t[e]=null)}function Y(e,n,t,r){if(l(t))J(e,r)[e]=t;else if(c(t)){if(P(n,t))return;J(e,r)[e]=t}else Q(e,r)}function Z(e){return l(e.composedPath)?e.composedPath()[0]:e.target}function ee(e,n,t,r){var l=Z(e);do{if(n&&l.disabled)return;var o=l.$EV;if(o){var a=o[t];if(a&&(r.dom=l,a.event?a.event(a.data,e):a(e),e.cancelBubble))return}l=l.parentNode}while(!i(l))}function ne(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function te(){return this.defaultPrevented}function re(){return this.cancelBubble}function le(e){var n={dom:document};return e.isDefaultPrevented=te,e.isPropagationStopped=re,e.stopPropagation=ne,Object.defineProperty(e,"currentTarget",{configurable:!0,get:function(){return n.dom}}),n}function oe(e){return function(n){if(0!==n.button)return void n.stopPropagation();ee(n,!0,e,le(n))}}function ie(e){return function(n){ee(n,!1,e,le(n))}}function ae(e){var n="onClick"===e||"onDblClick"===e?oe(e):ie(e);return document.addEventListener(s(e),n),n}function ue(e,n){var t=document.createElement("i");return t.innerHTML=n,t.innerHTML===e.innerHTML}function ce(e,n,t){if(e[n]){var r=e[n];r.event?r.event(r.data,t):r(t)}else{var l=n.toLowerCase();e[l]&&e[l](t)}}function fe(e,n){var t=function(t){var r=this.$V;if(!r)return;var i=r.props||f,a=r.dom;if(o(e))ce(i,e,t);else for(var u=0;u-1&&n.options[i]&&(a=n.options[i].value),r&&t(a)&&(a=e.defaultValue),ye(l,a)}}var $e,Fe,Pe=fe("onInput",Ue),Se=fe("onChange");function xe(e,n){se(e,"input",Pe),n.onChange&&se(e,"change",Se)}function Ue(e,n,r){var l=e.value,o=n.value;if(t(l)){if(r){var i=e.defaultValue;t(i)||i===o||(n.defaultValue=i,n.value=i)}}else o!==l&&(n.defaultValue=l,n.value=l)}function Le(e,n,t,r,l,o){64&e?ge(r,t):256&e?we(r,t,l,n):128&e&&Ue(r,t,l),o&&(t.$V=n)}function Ve(e,n,t){64&e?me(n,t):256&e?Ce(n):128&e&&xe(n,t)}function Ae(e){return e.type&&de(e.type)?!t(e.checked):!t(e.value)}function Ie(e){e&&!x(e,null)&&e.current&&(e.current=null)}function Ne(e,n,t){e&&(l(e)||void 0!==e.current)&&t.push(function(){x(e,n)||void 0===e.current||(e.current=n)})}function Me(e,n){Te(e),k(e,n)}function Te(e){var n,r=e.flags,o=e.children;if(481&r){n=e.ref;var a=e.props;Ie(n);var u=e.childFlags;if(!i(a))for(var c=Object.keys(a),s=0,d=c.length;s0;for(var a in i&&(o=Ae(t))&&Ve(n,r,t),t)He(a,null,t[a],r,l,o,null);i&&Le(n,e,r,t,!0,o)}function _e(e,n,t){var r=j(e.render(n,e.state,t)),o=t;return l(e.getChildContext)&&(o=a(t,e.getChildContext())),e.$CX=o,r}function Ke(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=w(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=_e(u,t,r),u}function qe(e,n,t,r,l,o){var i=e.flags|=16384;481&i?Qe(e,n,t,r,l,o):4&i?Ze(e,n,t,r,l,o):8&i?(nn(e,n,t,r,l,o),on(e,o)):512&i||16&i?Je(e,n,l):8192&i?Ge(e,t,n,r,l,o):1024&i&&ze(e,t,n,l,o)}function ze(e,n,t,r,l){qe(e.children,e.ref,n,!1,null,l);var o=W();Je(o,t,r),e.dom=o.dom}function Ge(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=W()),2===a?qe(i,t,l,r,l,o):Ye(i,t,n,r,l,o)}function Je(e,n,t){var r=e.dom=document.createTextNode(e.children);i(n)||p(n,r,t)}function Qe(e,n,r,l,o,a){var u=e.flags,c=e.props,f=e.className,s=e.children,d=e.childFlags,h=e.dom=v(e.type,l=l||(32&u)>0);if(t(f)||""===f||(l?h.setAttribute("class",f):h.className=f),16===d)F(h,s);else if(1!==d){var m=l&&"foreignObject"!==e.type;2===d?(16384&s.flags&&(e.children=s=E(s)),qe(s,h,r,m,null,a)):8!==d&&4!==d||Ye(s,h,r,m,null,a)}i(n)||p(n,h,o),i(c)||Xe(e,u,c,h,l),Ne(e.ref,h,a)}function Ye(e,n,t,r,l,o){for(var i=0;id)&&(f=b(i[d-1],!1).nextSibling)}hn(u,c,i,a,t,r,l,f,e,o)}function dn(e,n,t,l){var o=e.ref,i=n.ref,a=n.children;if(hn(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;m(o,u),d(i,u)}}function pn(e,n,r,l,o,i){var a,u=n.dom=e.dom,c=e.props,s=n.props,d=!1,p=!1;if(l=l||(32&o)>0,c!==s){var v=c||f;if((a=s||f)!==f)for(var h in(d=(448&o)>0)&&(p=Ae(a)),a){var m=v[h],g=a[h];m!==g&&He(h,m,g,u,l,p,e)}if(v!==f)for(var y in v)t(a[y])&&!t(v[y])&&He(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?fn(u,b):hn(e.childFlags,n.childFlags,e.children,b,u,r,l&&"foreignObject"!==n.type,null,e,i),d&&Le(o,n,u,a,!1,p);var C=n.ref,w=e.ref;w!==C&&(Ie(w),Ne(C,u,i))}function vn(e,n,t,r,l,o){Te(e),Ye(n,t,r,l,b(e,!0),o),k(e,t)}function hn(e,n,t,r,l,o,i,a,u,c){switch(e){case 2:switch(n){case 2:un(t,r,l,o,i,a,c);break;case 1:Me(t,l);break;case 16:Te(t),F(l,r);break;default:vn(t,r,l,o,i,c)}break;case 1:switch(n){case 2:qe(r,l,o,i,a,c);break;case 1:break;case 16:F(l,r);break;default:Ye(r,l,o,i,a,c)}break;case 16:switch(n){case 16:cn(t,r,l);break;case 2:Be(l),qe(r,l,o,i,a,c);break;case 1:Be(l);break;default:Be(l),Ye(r,l,o,i,a,c)}break;default:switch(n){case 16:De(t),F(l,r);break;case 2:Ee(l,u,t),qe(r,l,o,i,a,c);break;case 1:Ee(l,u,t);break;default:var f=0|t.length,s=0|r.length;0===f?s>0&&Ye(r,l,o,i,a,c):0===s?Ee(l,u,t):8===n&&8===e?wn(t,r,l,o,i,f,s,a,u,c):Cn(t,r,l,o,i,f,s,a,c)}}}function mn(e,n,t,r,l){l.push(function(){e.componentDidUpdate(n,t,r)})}function gn(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=w(e,t,n!==s?a(s,n):n)),u||!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=_e(e,t,o);p&&l(e.getSnapshotBeforeUpdate)&&(h=e.getSnapshotBeforeUpdate(d,s)),un(e.$LI,m,r,e.$CX,i,c,f),e.$LI=m,l(e.componentDidUpdate)&&mn(e,d,s,h,f)}else e.props=t,e.state=n,e.context=o}function yn(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)}gn(s,h,d,t,r,o,!1,u,c),v!==p&&(Ie(v),Ne(p,s,c))}function bn(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=j(32768&n.flags?m.render(s,d,o):m(s,o));un(h,g,r,o,i,a,u),n.children=g,v&&l(d.onComponentDidUpdate)&&d.onComponentDidUpdate(p,s)}else n.children=h}function kn(e,n){var t=n.children,r=n.dom=e.dom;t!==e.children&&(r.nodeValue=t)}function Cn(e,n,t,r,l,o,i,a,u){for(var c,f,s=o>i?i:o,d=0;di)for(d=s;dd||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=E(m)),un(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;)Me(e[v++],t);else $n(e,n,r,o,i,d,p,v,t,l,a,u,c)}function $n(e,n,t,r,l,o,i,a,u,c,f,s,d){var p,v,h,m=0,g=a,y=a,k=o-a+1,w=i-a+1,$=new Int32Array(w+1),F=k===r,P=!1,S=0,x=0;if(l<4||(k|w)<32)for(m=g;m<=o;++m)if(p=e[m],xa?P=!0:S=a,16384&v.flags&&(n[a]=v=E(v)),un(p,v,u,t,c,f,d),++x;break}!F&&a>i&&Me(p,u)}else F||Me(p,u);else{var U={};for(m=y;m<=i;++m)U[n[m].key]=m;for(m=g;m<=o;++m)if(p=e[m],xg;)Me(e[g++],u);$[a-y]=m+1,S>a?P=!0:S=a,16384&(v=n[a]).flags&&(n[a]=v=E(v)),un(p,v,u,t,c,f,d),++x}else F||Me(p,u);else F||Me(p,u)}if(F)Ee(u,s,e),Ye(n,u,t,c,f,d);else if(P){var L=Pn($);for(a=L.length-1,m=w-1;m>=0;m--)0===$[m]?(16384&(v=n[S=m+y]).flags&&(n[S]=v=E(v)),qe(v,u,t,c,(h=S+1)=0;m--)0===$[m]&&(16384&(v=n[S=m+y]).flags&&(n[S]=v=E(v)),qe(v,u,t,c,(h=S+1)Fn&&(Fn=u,$e=new Int32Array(u),Fe=new Int32Array(u));t>1]]0&&(Fe[t]=$e[o-1]),$e[o]=t)}o=l+1;var c=new Int32Array(o);for(i=$e[o-1];o-- >0;)c[o]=i,i=Fe[i],$e[o]=0;return c}function Sn(e,n,r,o){var i=[],a=n.$V;t(a)?t(e)||(16384&e.flags&&(e=E(e)),qe(e,n,o,!1,null,i),n.$V=e,a=e):t(e)?(Me(a,n),n.$V=null):(16384&e.flags&&(e=E(e)),un(a,e,n,o,!1,null,i),a=n.$V=e),i.length>0&&g(i),l(r)&&r(),l($.renderComplete)&&$.renderComplete(a,n)}function xn(e,n,t,r){void 0===t&&(t=null),void 0===r&&(r=f),Sn(e,n,t,r)}function Un(e){return V(1,"li","TreeLeaf",e.children,0,null,null,null)}function Ln(e,n){return e!==n}function Vn(e){for(var n=e.data,t=n.children.length,r=new Array(t),l=0;l0,h=u(d),v=a(d)&&d[0]===N;p||h||v?(o=o||n.slice(0,s),(p||v)&&(f=O(f)),(h||v)&&(f.key=N+s),o.push(f)):o&&o.push(f),f.flags|=65536}}i=0===(o=o||n).length?1:8}else(o=n).flags|=65536,81920&n.flags&&(o=O(n)),i=2;return e.children=o,e.childFlags=i,e}function H(e){if(l(e)||r(e))return D(e,null);if(t(e))return E(e,0,null);return 16384&e.flags?O(e):e}var Q="http://www.w3.org/1999/xlink",X="http://www.w3.org/XML/1998/namespace",G={"xlink:actuate":Q,"xlink:arcrole":Q,"xlink:href":Q,"xlink:role":Q,"xlink:show":Q,"xlink:title":Q,"xlink:type":Q,"xml:base":X,"xml:lang":X,"xml:space":X};function K(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 q=K(0),J=K(null),z=K(!0);function Y(e,n){var t=n.$EV;return t||(t=n.$EV=K(null)),t[e]||1===++q[e]&&(J[e]=ce(e)),t}function Z(e,n){var t=n.$EV;t&&t[e]&&(0===--q[e]&&(document.removeEventListener(d(e),J[e]),J[e]=null),t[e]=null)}function ee(e,n,t,r){if(i(t))Y(e,r)[e]=t;else if(s(t)){if(S(n,t))return;Y(e,r)[e]=t}else Z(e,r)}function ne(e){return i(e.composedPath)?e.composedPath()[0]:e.target}function te(e,n,t,r){var o=ne(e);do{if(n&&o.disabled)return;var l=o.$EV;if(l){var i=l[t];if(i&&(r.dom=o,i.event?i.event(i.data,e):i(e),e.cancelBubble))return}o=o.parentNode}while(!u(o))}function re(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function oe(){return this.defaultPrevented}function le(){return this.cancelBubble}function ie(e){var n={dom:document};return e.isDefaultPrevented=oe,e.isPropagationStopped=le,e.stopPropagation=re,Object.defineProperty(e,"currentTarget",{configurable:!0,get:function(){return n.dom}}),n}function ae(e){return function(n){if(0!==n.button)return void n.stopPropagation();te(n,!0,e,ie(n))}}function ue(e){return function(n){te(n,!1,e,ie(n))}}function ce(e){var n="onClick"===e||"onDblClick"===e?ae(e):ue(e);return document.addEventListener(d(e),n),n}function se(e,n){var t=document.createElement("i");return t.innerHTML=n,t.innerHTML===e.innerHTML}function fe(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 de(e,n){var t=function(t){var r=this.$V;if(!r)return;var o=r.props||f,l=r.dom;if(a(e))fe(o,e,t);else for(var u=0;u-1&&n.options[i]&&(a=n.options[i].value),t&&o(a)&&(a=e.defaultValue),ke(r,a)}}var xe,Pe,Se=de("onInput",Ne),Fe=de("onChange");function Le(e,n){pe(e,"input",Se),n.onChange&&pe(e,"change",Fe)}function Ne(e,n,t){var r=e.value,l=n.value;if(o(r)){if(t){var i=e.defaultValue;o(i)||i===l||(n.defaultValue=i,n.value=i)}}else l!==r&&(n.defaultValue=r,n.value=r)}function Ve(e,n,t,r,o,l){64&e?be(r,t):256&e?Ue(r,t,o,n):128&e&&Ne(r,t,o),l&&(t.$V=n)}function Ie(e,n,t){64&e?ye(n,t):256&e?we(n):128&e&&Le(n,t)}function Be(e){return e.type&&he(e.type)?!o(e.checked):!o(e.value)}function Me(e){e&&!L(e,null)&&e.current&&(e.current=null)}function Te(e,n,t){e&&(i(e)||void 0!==e.current)&&t.push(function(){L(e,n)||void 0===e.current||(e.current=n)})}function Ae(e,n){De(e),$(e,n)}function De(e){var n,t=e.flags,r=e.children;if(481&t){n=e.ref;var l=e.props;Me(n);var a=e.childFlags;if(!u(l))for(var c=Object.keys(l),s=0,d=c.length;s0;for(var a in i&&(l=Be(t))&&Ie(n,r,t),t)Qe(a,null,t[a],r,o,l,null);i&&Ve(n,e,r,t,!0,l)}function Ge(e,n,t){var r=H(e.render(n,e.state,t)),o=t;return i(e.getChildContext)&&(o=c(t,e.getChildContext())),e.$CX=o,r}function Ke(e,n,t,r,o,l){var a=new n(t,r),c=a.$N=Boolean(n.getDerivedStateFromProps||a.getSnapshotBeforeUpdate);if(a.$SVG=o,a.$L=l,e.children=a,a.$BS=!1,a.context=r,a.props===f&&(a.props=t),c)a.state=w(a,t,a.state);else if(i(a.componentWillMount)){a.$BR=!0,a.componentWillMount();var s=a.$PS;if(!u(s)){var d=a.state;if(u(d))a.state=s;else for(var p in s)d[p]=s[p];a.$PS=null}a.$BR=!1}return a.$LI=Ge(a,t,r),a}function qe(e,n,t,r,o,l){var i=e.flags|=16384;481&i?Ze(e,n,t,r,o,l):4&i?nn(e,n,t,r,o,l):8&i?(rn(e,n,t,r,o,l),un(e,l)):512&i||16&i?Ye(e,n,o):8192&i?ze(e,t,n,r,o,l):1024&i&&Je(e,t,n,o,l)}function Je(e,n,t,r,o){qe(e.children,e.ref,n,!1,null,o);var l=R();Ye(l,t,r),e.dom=l.dom}function ze(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=R()),2===a?qe(i,t,o,r,o,l):en(i,t,n,r,o,l)}function Ye(e,n,t){var r=e.dom=document.createTextNode(e.children);u(n)||h(n,r,t)}function Ze(e,n,t,r,l,i){var a=e.flags,c=e.props,s=e.className,f=e.children,d=e.childFlags,p=e.dom=v(e.type,r=r||(32&a)>0);if(o(s)||""===s||(r?p.setAttribute("class",s):p.className=s),16===d)P(p,f);else if(1!==d){var g=r&&"foreignObject"!==e.type;2===d?(16384&f.flags&&(e.children=f=O(f)),qe(f,p,t,g,null,i)):8!==d&&4!==d||en(f,p,t,g,null,i)}u(n)||h(n,p,l),u(c)||Xe(e,a,c,p,r),Te(e.ref,p,i)}function en(e,n,t,r,o,l){for(var i=0;id)&&(s=k(i[d-1],!1).nextSibling)}mn(u,c,i,a,t,r,o,s,e,l)}function hn(e,n,t,r){var o=e.ref,i=n.ref,a=n.children;if(mn(e.childFlags,n.childFlags,e.children,a,o,t,!1,null,e,r),n.dom=e.dom,o!==i&&!l(a)){var u=a.dom;m(o,u),p(i,u)}}function vn(e,n,t,r,l,i){var a,u=n.dom=e.dom,c=e.props,s=n.props,d=!1,p=!1;if(r=r||(32&l)>0,c!==s){var h=c||f;if((a=s||f)!==f)for(var v in(d=(448&l)>0)&&(p=Be(a)),a){var g=h[v],m=a[v];g!==m&&Qe(v,g,m,u,r,p,e)}if(h!==f)for(var y in h)o(a[y])&&!o(h[y])&&Qe(y,h[y],null,u,r,p,e)}var b=n.children,k=n.className;e.className!==k&&(o(k)?u.removeAttribute("class"):r?u.setAttribute("class",k):u.className=k),4096&l?dn(u,b):mn(e.childFlags,n.childFlags,e.children,b,u,t,r&&"foreignObject"!==n.type,null,e,i),d&&Ve(l,n,u,a,!1,p);var $=n.ref,C=e.ref;C!==$&&(Me(C),Te($,u,i))}function gn(e,n,t,r,o,l){De(e),en(n,t,r,o,k(e,!0),l),$(e,t)}function mn(e,n,t,r,o,l,i,a,u,c){switch(e){case 2:switch(n){case 2:sn(t,r,o,l,i,a,c);break;case 1:Ae(t,o);break;case 16:De(t),P(o,r);break;default:gn(t,r,o,l,i,c)}break;case 1:switch(n){case 2:qe(r,o,l,i,a,c);break;case 1:break;case 16:P(o,r);break;default:en(r,o,l,i,a,c)}break;case 16:switch(n){case 16:fn(t,r,o);break;case 2:We(o),qe(r,o,l,i,a,c);break;case 1:We(o);break;default:We(o),en(r,o,l,i,a,c)}break;default:switch(n){case 16:Ee(t),P(o,r);break;case 2:Oe(o,u,t),qe(r,o,l,i,a,c);break;case 1:Oe(o,u,t);break;default:var s=0|t.length,f=0|r.length;0===s?f>0&&en(r,o,l,i,a,c):0===f?Oe(o,u,t):8===n&&8===e?Un(t,r,o,l,i,s,f,a,u,c):wn(t,r,o,l,i,s,f,a,c)}}}function yn(e,n,t,r,o){o.push(function(){e.componentDidUpdate(n,t,r)})}function bn(e,n,t,r,o,l,a,u,s){var f=e.state,d=e.props,p=Boolean(e.$N),h=i(e.shouldComponentUpdate);if(p&&(n=w(e,t,n!==f?c(f,n):n)),a||!h||h&&e.shouldComponentUpdate(t,n,o)){!p&&i(e.componentWillUpdate)&&e.componentWillUpdate(t,n,o),e.props=t,e.state=n,e.context=o;var v=null,g=Ge(e,t,o);p&&i(e.getSnapshotBeforeUpdate)&&(v=e.getSnapshotBeforeUpdate(d,f)),sn(e.$LI,g,r,e.$CX,l,u,s),e.$LI=g,i(e.componentDidUpdate)&&yn(e,d,f,v,s)}else e.props=t,e.state=n,e.context=o}function kn(e,n,t,r,o,l,a){var s=n.children=e.children;if(u(s))return;s.$L=a;var d=n.props||f,p=n.ref,h=e.ref,v=s.state;if(!s.$N){if(i(s.componentWillReceiveProps)){if(s.$BR=!0,s.componentWillReceiveProps(d,r),s.$UN)return;s.$BR=!1}u(s.$PS)||(v=c(v,s.$PS),s.$PS=null)}bn(s,v,d,t,r,o,!1,l,a),h!==p&&(Me(h),Te(p,s,a))}function $n(e,n,t,r,l,a,u){var c=!0,s=n.props||f,d=n.ref,p=e.props,h=!o(d),v=e.children;if(h&&i(d.onComponentShouldUpdate)&&(c=d.onComponentShouldUpdate(p,s)),!1!==c){h&&i(d.onComponentWillUpdate)&&d.onComponentWillUpdate(p,s);var g=n.type,m=H(32768&n.flags?g.render(s,d,r):g(s,r));sn(v,m,t,r,l,a,u),n.children=m,h&&i(d.onComponentDidUpdate)&&d.onComponentDidUpdate(p,s)}else n.children=v}function Cn(e,n){var t=n.children,r=n.dom=e.dom;t!==e.children&&(r.nodeValue=t)}function wn(e,n,t,r,o,l,i,a,u){for(var c,s,f=l>i?i:l,d=0;di)for(d=f;dd||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=O(g)),sn(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;)Ae(e[h++],t);else xn(e,n,r,l,i,d,p,h,t,o,a,u,c)}function xn(e,n,t,r,o,l,i,a,u,c,s,f,d){var p,h,v,g=0,m=a,y=a,b=l-a+1,$=i-a+1,w=new Int32Array($+1),U=b===r,x=!1,P=0,S=0;if(o<4||(b|$)<32)for(g=m;g<=l;++g)if(p=e[g],S<$){for(a=y;a<=i;a++)if(h=n[a],p.key===h.key){if(w[a-y]=g+1,U)for(U=!1;ma?x=!0:P=a,16384&h.flags&&(n[a]=h=O(h)),sn(p,h,u,t,c,s,d),++S;break}!U&&a>i&&Ae(p,u)}else U||Ae(p,u);else{var F={};for(g=y;g<=i;++g)F[n[g].key]=g;for(g=m;g<=l;++g)if(p=e[g],S<$)if(void 0!==(a=F[p.key])){if(U)for(U=!1;g>m;)Ae(e[m++],u);w[a-y]=g+1,P>a?x=!0:P=a,16384&(h=n[a]).flags&&(n[a]=h=O(h)),sn(p,h,u,t,c,s,d),++S}else U||Ae(p,u);else U||Ae(p,u)}if(U)Oe(u,f,e),en(n,u,t,c,s,d);else if(x){var L=Sn(w);for(a=L.length-1,g=$-1;g>=0;g--)0===w[g]?(16384&(h=n[P=g+y]).flags&&(n[P]=h=O(h)),qe(h,u,t,c,(v=P+1)=0;g--)0===w[g]&&(16384&(h=n[P=g+y]).flags&&(n[P]=h=O(h)),qe(h,u,t,c,(v=P+1)Pn&&(Pn=u,xe=new Int32Array(u),Pe=new Int32Array(u));t>1]]0&&(Pe[t]=xe[l-1]),xe[l]=t)}l=o+1;var c=new Int32Array(l);for(i=xe[l-1];l-- >0;)c[l]=i,i=Pe[i],xe[l]=0;return c}function Fn(e,n,t,r){var l=[],a=n.$V;U.v=!0,o(a)?o(e)||(16384&e.flags&&(e=O(e)),qe(e,n,r,!1,null,l),n.$V=e,a=e):o(e)?(Ae(a,n),n.$V=null):(16384&e.flags&&(e=O(e)),sn(a,e,n,r,!1,null,l),a=n.$V=e),l.length>0&&y(l),U.v=!1,i(t)&&t(),i(x.renderComplete)&&x.renderComplete(a,n)}function Ln(e,n,t,r){void 0===t&&(t=null),void 0===r&&(r=f),Fn(e,n,t,r)}"undefined"!==typeof document&&(document.body,Node.prototype.$EV=null,Node.prototype.$V=null);var Nn=[],Vn="undefined"!==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):function(e){window.setTimeout(e,0)},In=!1;function Bn(e,n,t,r){var l=e.$PS;if(i(n)&&(n=n(l?c(e.state,l):e.state,e.props,e.context)),o(l))e.$PS=n;else for(var a in n)l[a]=n[a];if(e.$BR)i(t)&&e.$L.push(t.bind(e));else{if(!U.v&&0===Nn.length)return void An(e,r,t);if(-1===Nn.indexOf(e)&&Nn.push(e),In||(In=!0,Vn(Tn)),i(t)){var u=e.$QU;u||(u=e.$QU=[]),u.push(t)}}}function Mn(e){for(var n=e.$QU,t=0,r=n.length;t0&&y(o),U.v=!1}else e.state=e.$PS,e.$PS=null;i(t)&&t.call(e)}var Dn=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};Dn.prototype.forceUpdate=function(e){if(this.$UN)return;Bn(this,{},e,!0)},Dn.prototype.setState=function(e,n){if(this.$UN)return;this.$BS||Bn(this,e,n,!1)},Dn.prototype.render=function(e,n,t){return null},uibench.init("Inferno [same as react]","7.3.0");var En=function(t){function r(e){var r;return(r=t.call(this,e)||this).onClick=r.onClick.bind(n(r)),r}e(r,t);var o=r.prototype;return o.shouldComponentUpdate=function(e,n){return this.props.text!==e.text},o.onClick=function(e){console.log("Clicked"+this.props.text),e.stopPropagation()},o.render=function(){return I(1,"td","TableCell",this.props.text,0,{onClick:this.onClick},null,null)},r}(Dn),Wn=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=[A(2,En,{text:"#"+e.id},-1,null)],o=0;o0,h=u(d),v=a(d)&&d[0]===N;p||h||v?(o=o||n.slice(0,s),(p||v)&&(f=O(f)),(h||v)&&(f.key=N+s),o.push(f)):o&&o.push(f),f.flags|=65536}}i=0===(o=o||n).length?1:8}else(o=n).flags|=65536,81920&n.flags&&(o=O(n)),i=2;return e.children=o,e.childFlags=i,e}function H(e){if(l(e)||r(e))return D(e,null);if(t(e))return E(e,0,null);return 16384&e.flags?O(e):e}var Q="http://www.w3.org/1999/xlink",X="http://www.w3.org/XML/1998/namespace",G={"xlink:actuate":Q,"xlink:arcrole":Q,"xlink:href":Q,"xlink:role":Q,"xlink:show":Q,"xlink:title":Q,"xlink:type":Q,"xml:base":X,"xml:lang":X,"xml:space":X};function K(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 q=K(0),J=K(null),z=K(!0);function Y(e,n){var t=n.$EV;return t||(t=n.$EV=K(null)),t[e]||1===++q[e]&&(J[e]=ce(e)),t}function Z(e,n){var t=n.$EV;t&&t[e]&&(0===--q[e]&&(document.removeEventListener(d(e),J[e]),J[e]=null),t[e]=null)}function ee(e,n,t,r){if(i(t))Y(e,r)[e]=t;else if(s(t)){if(S(n,t))return;Y(e,r)[e]=t}else Z(e,r)}function ne(e){return i(e.composedPath)?e.composedPath()[0]:e.target}function te(e,n,t,r){var o=ne(e);do{if(n&&o.disabled)return;var l=o.$EV;if(l){var i=l[t];if(i&&(r.dom=o,i.event?i.event(i.data,e):i(e),e.cancelBubble))return}o=o.parentNode}while(!u(o))}function re(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function oe(){return this.defaultPrevented}function le(){return this.cancelBubble}function ie(e){var n={dom:document};return e.isDefaultPrevented=oe,e.isPropagationStopped=le,e.stopPropagation=re,Object.defineProperty(e,"currentTarget",{configurable:!0,get:function(){return n.dom}}),n}function ae(e){return function(n){if(0!==n.button)return void n.stopPropagation();te(n,!0,e,ie(n))}}function ue(e){return function(n){te(n,!1,e,ie(n))}}function ce(e){var n="onClick"===e||"onDblClick"===e?ae(e):ue(e);return document.addEventListener(d(e),n),n}function se(e,n){var t=document.createElement("i");return t.innerHTML=n,t.innerHTML===e.innerHTML}function fe(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 de(e,n){var t=function(t){var r=this.$V;if(!r)return;var o=r.props||f,l=r.dom;if(a(e))fe(o,e,t);else for(var u=0;u-1&&n.options[i]&&(a=n.options[i].value),t&&o(a)&&(a=e.defaultValue),ke(r,a)}}var xe,Pe,Se=de("onInput",Ne),Fe=de("onChange");function Le(e,n){pe(e,"input",Se),n.onChange&&pe(e,"change",Fe)}function Ne(e,n,t){var r=e.value,l=n.value;if(o(r)){if(t){var i=e.defaultValue;o(i)||i===l||(n.defaultValue=i,n.value=i)}}else l!==r&&(n.defaultValue=r,n.value=r)}function Ve(e,n,t,r,o,l){64&e?be(r,t):256&e?Ue(r,t,o,n):128&e&&Ne(r,t,o),l&&(t.$V=n)}function Ie(e,n,t){64&e?ye(n,t):256&e?we(n):128&e&&Le(n,t)}function Be(e){return e.type&&he(e.type)?!o(e.checked):!o(e.value)}function Me(e){e&&!L(e,null)&&e.current&&(e.current=null)}function Te(e,n,t){e&&(i(e)||void 0!==e.current)&&t.push(function(){L(e,n)||void 0===e.current||(e.current=n)})}function Ae(e,n){De(e),$(e,n)}function De(e){var n,t=e.flags,r=e.children;if(481&t){n=e.ref;var l=e.props;Me(n);var a=e.childFlags;if(!u(l))for(var c=Object.keys(l),s=0,d=c.length;s0;for(var a in i&&(l=Be(t))&&Ie(n,r,t),t)Qe(a,null,t[a],r,o,l,null);i&&Ve(n,e,r,t,!0,l)}function Ge(e,n,t){var r=H(e.render(n,e.state,t)),o=t;return i(e.getChildContext)&&(o=c(t,e.getChildContext())),e.$CX=o,r}function Ke(e,n,t,r,o,l){var a=new n(t,r),c=a.$N=Boolean(n.getDerivedStateFromProps||a.getSnapshotBeforeUpdate);if(a.$SVG=o,a.$L=l,e.children=a,a.$BS=!1,a.context=r,a.props===f&&(a.props=t),c)a.state=w(a,t,a.state);else if(i(a.componentWillMount)){a.$BR=!0,a.componentWillMount();var s=a.$PS;if(!u(s)){var d=a.state;if(u(d))a.state=s;else for(var p in s)d[p]=s[p];a.$PS=null}a.$BR=!1}return a.$LI=Ge(a,t,r),a}function qe(e,n,t,r,o,l){var i=e.flags|=16384;481&i?Ze(e,n,t,r,o,l):4&i?nn(e,n,t,r,o,l):8&i?(rn(e,n,t,r,o,l),un(e,l)):512&i||16&i?Ye(e,n,o):8192&i?ze(e,t,n,r,o,l):1024&i&&Je(e,t,n,o,l)}function Je(e,n,t,r,o){qe(e.children,e.ref,n,!1,null,o);var l=R();Ye(l,t,r),e.dom=l.dom}function ze(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=R()),2===a?qe(i,t,o,r,o,l):en(i,t,n,r,o,l)}function Ye(e,n,t){var r=e.dom=document.createTextNode(e.children);u(n)||h(n,r,t)}function Ze(e,n,t,r,l,i){var a=e.flags,c=e.props,s=e.className,f=e.children,d=e.childFlags,p=e.dom=v(e.type,r=r||(32&a)>0);if(o(s)||""===s||(r?p.setAttribute("class",s):p.className=s),16===d)P(p,f);else if(1!==d){var g=r&&"foreignObject"!==e.type;2===d?(16384&f.flags&&(e.children=f=O(f)),qe(f,p,t,g,null,i)):8!==d&&4!==d||en(f,p,t,g,null,i)}u(n)||h(n,p,l),u(c)||Xe(e,a,c,p,r),Te(e.ref,p,i)}function en(e,n,t,r,o,l){for(var i=0;id)&&(s=k(i[d-1],!1).nextSibling)}mn(u,c,i,a,t,r,o,s,e,l)}function hn(e,n,t,r){var o=e.ref,i=n.ref,a=n.children;if(mn(e.childFlags,n.childFlags,e.children,a,o,t,!1,null,e,r),n.dom=e.dom,o!==i&&!l(a)){var u=a.dom;m(o,u),p(i,u)}}function vn(e,n,t,r,l,i){var a,u=n.dom=e.dom,c=e.props,s=n.props,d=!1,p=!1;if(r=r||(32&l)>0,c!==s){var h=c||f;if((a=s||f)!==f)for(var v in(d=(448&l)>0)&&(p=Be(a)),a){var g=h[v],m=a[v];g!==m&&Qe(v,g,m,u,r,p,e)}if(h!==f)for(var y in h)o(a[y])&&!o(h[y])&&Qe(y,h[y],null,u,r,p,e)}var b=n.children,k=n.className;e.className!==k&&(o(k)?u.removeAttribute("class"):r?u.setAttribute("class",k):u.className=k),4096&l?dn(u,b):mn(e.childFlags,n.childFlags,e.children,b,u,t,r&&"foreignObject"!==n.type,null,e,i),d&&Ve(l,n,u,a,!1,p);var $=n.ref,C=e.ref;C!==$&&(Me(C),Te($,u,i))}function gn(e,n,t,r,o,l){De(e),en(n,t,r,o,k(e,!0),l),$(e,t)}function mn(e,n,t,r,o,l,i,a,u,c){switch(e){case 2:switch(n){case 2:sn(t,r,o,l,i,a,c);break;case 1:Ae(t,o);break;case 16:De(t),P(o,r);break;default:gn(t,r,o,l,i,c)}break;case 1:switch(n){case 2:qe(r,o,l,i,a,c);break;case 1:break;case 16:P(o,r);break;default:en(r,o,l,i,a,c)}break;case 16:switch(n){case 16:fn(t,r,o);break;case 2:We(o),qe(r,o,l,i,a,c);break;case 1:We(o);break;default:We(o),en(r,o,l,i,a,c)}break;default:switch(n){case 16:Ee(t),P(o,r);break;case 2:Oe(o,u,t),qe(r,o,l,i,a,c);break;case 1:Oe(o,u,t);break;default:var s=0|t.length,f=0|r.length;0===s?f>0&&en(r,o,l,i,a,c):0===f?Oe(o,u,t):8===n&&8===e?Un(t,r,o,l,i,s,f,a,u,c):wn(t,r,o,l,i,s,f,a,c)}}}function yn(e,n,t,r,o){o.push(function(){e.componentDidUpdate(n,t,r)})}function bn(e,n,t,r,o,l,a,u,s){var f=e.state,d=e.props,p=Boolean(e.$N),h=i(e.shouldComponentUpdate);if(p&&(n=w(e,t,n!==f?c(f,n):n)),a||!h||h&&e.shouldComponentUpdate(t,n,o)){!p&&i(e.componentWillUpdate)&&e.componentWillUpdate(t,n,o),e.props=t,e.state=n,e.context=o;var v=null,g=Ge(e,t,o);p&&i(e.getSnapshotBeforeUpdate)&&(v=e.getSnapshotBeforeUpdate(d,f)),sn(e.$LI,g,r,e.$CX,l,u,s),e.$LI=g,i(e.componentDidUpdate)&&yn(e,d,f,v,s)}else e.props=t,e.state=n,e.context=o}function kn(e,n,t,r,o,l,a){var s=n.children=e.children;if(u(s))return;s.$L=a;var d=n.props||f,p=n.ref,h=e.ref,v=s.state;if(!s.$N){if(i(s.componentWillReceiveProps)){if(s.$BR=!0,s.componentWillReceiveProps(d,r),s.$UN)return;s.$BR=!1}u(s.$PS)||(v=c(v,s.$PS),s.$PS=null)}bn(s,v,d,t,r,o,!1,l,a),h!==p&&(Me(h),Te(p,s,a))}function $n(e,n,t,r,l,a,u){var c=!0,s=n.props||f,d=n.ref,p=e.props,h=!o(d),v=e.children;if(h&&i(d.onComponentShouldUpdate)&&(c=d.onComponentShouldUpdate(p,s)),!1!==c){h&&i(d.onComponentWillUpdate)&&d.onComponentWillUpdate(p,s);var g=n.type,m=H(32768&n.flags?g.render(s,d,r):g(s,r));sn(v,m,t,r,l,a,u),n.children=m,h&&i(d.onComponentDidUpdate)&&d.onComponentDidUpdate(p,s)}else n.children=v}function Cn(e,n){var t=n.children,r=n.dom=e.dom;t!==e.children&&(r.nodeValue=t)}function wn(e,n,t,r,o,l,i,a,u){for(var c,s,f=l>i?i:l,d=0;di)for(d=f;dd||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=O(g)),sn(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;)Ae(e[h++],t);else xn(e,n,r,l,i,d,p,h,t,o,a,u,c)}function xn(e,n,t,r,o,l,i,a,u,c,s,f,d){var p,h,v,g=0,m=a,y=a,b=l-a+1,$=i-a+1,w=new Int32Array($+1),U=b===r,x=!1,P=0,S=0;if(o<4||(b|$)<32)for(g=m;g<=l;++g)if(p=e[g],S<$){for(a=y;a<=i;a++)if(h=n[a],p.key===h.key){if(w[a-y]=g+1,U)for(U=!1;ma?x=!0:P=a,16384&h.flags&&(n[a]=h=O(h)),sn(p,h,u,t,c,s,d),++S;break}!U&&a>i&&Ae(p,u)}else U||Ae(p,u);else{var F={};for(g=y;g<=i;++g)F[n[g].key]=g;for(g=m;g<=l;++g)if(p=e[g],S<$)if(void 0!==(a=F[p.key])){if(U)for(U=!1;g>m;)Ae(e[m++],u);w[a-y]=g+1,P>a?x=!0:P=a,16384&(h=n[a]).flags&&(n[a]=h=O(h)),sn(p,h,u,t,c,s,d),++S}else U||Ae(p,u);else U||Ae(p,u)}if(U)Oe(u,f,e),en(n,u,t,c,s,d);else if(x){var L=Sn(w);for(a=L.length-1,g=$-1;g>=0;g--)0===w[g]?(16384&(h=n[P=g+y]).flags&&(n[P]=h=O(h)),qe(h,u,t,c,(v=P+1)=0;g--)0===w[g]&&(16384&(h=n[P=g+y]).flags&&(n[P]=h=O(h)),qe(h,u,t,c,(v=P+1)Pn&&(Pn=u,xe=new Int32Array(u),Pe=new Int32Array(u));t>1]]0&&(Pe[t]=xe[l-1]),xe[l]=t)}l=o+1;var c=new Int32Array(l);for(i=xe[l-1];l-- >0;)c[l]=i,i=Pe[i],xe[l]=0;return c}function Fn(e,n,t,r){var l=[],a=n.$V;U.v=!0,o(a)?o(e)||(16384&e.flags&&(e=O(e)),qe(e,n,r,!1,null,l),n.$V=e,a=e):o(e)?(Ae(a,n),n.$V=null):(16384&e.flags&&(e=O(e)),sn(a,e,n,r,!1,null,l),a=n.$V=e),l.length>0&&y(l),U.v=!1,i(t)&&t(),i(x.renderComplete)&&x.renderComplete(a,n)}function Ln(e,n,t,r){void 0===t&&(t=null),void 0===r&&(r=f),Fn(e,n,t,r)}"undefined"!==typeof document&&(document.body,Node.prototype.$EV=null,Node.prototype.$V=null);var Nn=[],Vn="undefined"!==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):function(e){window.setTimeout(e,0)},In=!1;function Bn(e,n,t,r){var l=e.$PS;if(i(n)&&(n=n(l?c(e.state,l):e.state,e.props,e.context)),o(l))e.$PS=n;else for(var a in n)l[a]=n[a];if(e.$BR)i(t)&&e.$L.push(t.bind(e));else{if(!U.v&&0===Nn.length)return void An(e,r,t);if(-1===Nn.indexOf(e)&&Nn.push(e),In||(In=!0,Vn(Tn)),i(t)){var u=e.$QU;u||(u=e.$QU=[]),u.push(t)}}}function Mn(e){for(var n=e.$QU,t=0,r=n.length;t0&&y(o),U.v=!1}else e.state=e.$PS,e.$PS=null;i(t)&&t.call(e)}var Dn=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};Dn.prototype.forceUpdate=function(e){if(this.$UN)return;Bn(this,{},e,!0)},Dn.prototype.setState=function(e,n){if(this.$UN)return;this.$BS||Bn(this,e,n,!1)},Dn.prototype.render=function(e,n,t){return null},uibench.init("Inferno [same as react]","7.3.1");var En=function(t){function r(e){var r;return(r=t.call(this,e)||this).onClick=r.onClick.bind(n(r)),r}e(r,t);var o=r.prototype;return o.shouldComponentUpdate=function(e,n){return this.props.text!==e.text},o.onClick=function(e){console.log("Clicked"+this.props.text),e.stopPropagation()},o.render=function(){return I(1,"td","TableCell",this.props.text,0,{onClick:this.onClick},null,null)},r}(Dn),Wn=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=[A(2,En,{text:"#"+e.id},-1,null)],o=0;o0,v=i(d),h=o(d)&&d[0]===S;p||v||h?(a=a||l.slice(0,f),(p||h)&&(s=E(s)),(v||h)&&(s.key=S+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=E(l)),u=2;return t.children=a,t.childFlags=u,t}function R(t){if(r(t)||n(t))return T(t,null);if(e(t))return D(t,0,null);return 16384&t.flags?E(t):t}var j="http://www.w3.org/1999/xlink",X="http://www.w3.org/XML/1998/namespace",_={"xlink:actuate":j,"xlink:arcrole":j,"xlink:href":j,"xlink:role":j,"xlink:show":j,"xlink:title":j,"xlink:type":j,"xml:base":X,"xml:lang":X,"xml:space":X};function K(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 q=K(0),G=K(null),J=K(!0);function z(e,n){var t=n.$EV;return t||(t=n.$EV=K(null)),t[e]||1===++q[e]&&(G[e]=ae(e)),t}function Q(e,n){var t=n.$EV;t&&t[e]&&(0===--q[e]&&(document.removeEventListener(s(e),G[e]),G[e]=null),t[e]=null)}function Y(e,n,t,r){if(l(t))z(e,r)[e]=t;else if(c(t)){if(P(n,t))return;z(e,r)[e]=t}else Q(e,r)}function Z(e){return l(e.composedPath)?e.composedPath()[0]:e.target}function ee(e,n,t,r){var l=Z(e);do{if(n&&l.disabled)return;var o=l.$EV;if(o){var a=o[t];if(a&&(r.dom=l,a.event?a.event(a.data,e):a(e),e.cancelBubble))return}l=l.parentNode}while(!i(l))}function ne(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function te(){return this.defaultPrevented}function re(){return this.cancelBubble}function le(e){var n={dom:document};return e.isDefaultPrevented=te,e.isPropagationStopped=re,e.stopPropagation=ne,Object.defineProperty(e,"currentTarget",{configurable:!0,get:function(){return n.dom}}),n}function oe(e){return function(n){if(0!==n.button)return void n.stopPropagation();ee(n,!0,e,le(n))}}function ie(e){return function(n){ee(n,!1,e,le(n))}}function ae(e){var n="onClick"===e||"onDblClick"===e?oe(e):ie(e);return document.addEventListener(s(e),n),n}function ue(e,n){var t=document.createElement("i");return t.innerHTML=n,t.innerHTML===e.innerHTML}function ce(e,n,t){if(e[n]){var r=e[n];r.event?r.event(r.data,t):r(t)}else{var l=n.toLowerCase();e[l]&&e[l](t)}}function fe(e,n){var t=function(t){var r=this.$V;if(!r)return;var i=r.props||f,a=r.dom;if(o(e))ce(i,e,t);else for(var u=0;u-1&&n.options[i]&&(a=n.options[i].value),r&&t(a)&&(a=e.defaultValue),ke(l,a)}}var we,Fe,Pe=fe("onInput",Se),xe=fe("onChange");function Le(e,n){se(e,"input",Pe),n.onChange&&se(e,"change",xe)}function Se(e,n,r){var l=e.value,o=n.value;if(t(l)){if(r){var i=e.defaultValue;t(i)||i===o||(n.defaultValue=i,n.value=i)}}else o!==l&&(n.defaultValue=l,n.value=l)}function Ve(e,n,t,r,l,o){64&e?me(r,t):256&e?$e(r,t,l,n):128&e&&Se(r,t,l),o&&(t.$V=n)}function Ue(e,n,t){64&e?ge(n,t):256&e?Ce(n):128&e&&Le(n,t)}function Ie(e){return e.type&&de(e.type)?!t(e.checked):!t(e.value)}function Ne(e){e&&!L(e,null)&&e.current&&(e.current=null)}function Ae(e,n,t){e&&(l(e)||void 0!==e.current)&&t.push(function(){L(e,n)||void 0===e.current||(e.current=n)})}function Me(e,n){Te(e),y(e,n)}function Te(e){var n,r=e.flags,o=e.children;if(481&r){n=e.ref;var a=e.props;Ne(n);var u=e.childFlags;if(!i(a))for(var c=Object.keys(a),s=0,d=c.length;s0;for(var a in i&&(o=Ie(t))&&Ue(n,r,t),t)je(a,null,t[a],r,l,o,null);i&&Ve(n,e,r,t,!0,o)}function _e(e,n,t){var r=R(e.render(n,e.state,t)),o=t;return l(e.getChildContext)&&(o=a(t,e.getChildContext())),e.$CX=o,r}function Ke(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=$(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=_e(u,t,r),u}function qe(e,n,t,r,l,o){var i=e.flags|=16384;481&i?Qe(e,n,t,r,l,o):4&i?Ze(e,n,t,r,l,o):8&i?(nn(e,n,t,r,l,o),on(e,o)):512&i||16&i?ze(e,n,l):8192&i?Je(e,t,n,r,l,o):1024&i&&Ge(e,t,n,l,o)}function Ge(e,n,t,r,l){qe(e.children,e.ref,n,!1,null,l);var o=W();ze(o,t,r),e.dom=o.dom}function Je(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=W()),2===a?qe(i,t,l,r,l,o):Ye(i,t,n,r,l,o)}function ze(e,n,t){var r=e.dom=document.createTextNode(e.children);i(n)||p(n,r,t)}function Qe(e,n,r,l,o,a){var u=e.flags,c=e.props,f=e.className,s=e.children,d=e.childFlags,h=e.dom=v(e.type,l=l||(32&u)>0);if(t(f)||""===f||(l?h.setAttribute("class",f):h.className=f),16===d)F(h,s);else if(1!==d){var g=l&&"foreignObject"!==e.type;2===d?(16384&s.flags&&(e.children=s=E(s)),qe(s,h,r,g,null,a)):8!==d&&4!==d||Ye(s,h,r,g,null,a)}i(n)||p(n,h,o),i(c)||Xe(e,u,c,h,l),Ae(e.ref,h,a)}function Ye(e,n,t,r,l,o){for(var i=0;id)&&(f=b(i[d-1],!1).nextSibling)}hn(u,c,i,a,t,r,l,f,e,o)}function dn(e,n,t,l){var o=e.ref,i=n.ref,a=n.children;if(hn(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;g(o,u),d(i,u)}}function pn(e,n,r,l,o,i){var a,u=n.dom=e.dom,c=e.props,s=n.props,d=!1,p=!1;if(l=l||(32&o)>0,c!==s){var v=c||f;if((a=s||f)!==f)for(var h in(d=(448&o)>0)&&(p=Ie(a)),a){var g=v[h],m=a[h];g!==m&&je(h,g,m,u,l,p,e)}if(v!==f)for(var k in v)t(a[k])&&!t(v[k])&&je(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?fn(u,b):hn(e.childFlags,n.childFlags,e.children,b,u,r,l&&"foreignObject"!==n.type,null,e,i),d&&Ve(o,n,u,a,!1,p);var C=n.ref,$=e.ref;$!==C&&(Ne($),Ae(C,u,i))}function vn(e,n,t,r,l,o){Te(e),Ye(n,t,r,l,b(e,!0),o),y(e,t)}function hn(e,n,t,r,l,o,i,a,u,c){switch(e){case 2:switch(n){case 2:un(t,r,l,o,i,a,c);break;case 1:Me(t,l);break;case 16:Te(t),F(l,r);break;default:vn(t,r,l,o,i,c)}break;case 1:switch(n){case 2:qe(r,l,o,i,a,c);break;case 1:break;case 16:F(l,r);break;default:Ye(r,l,o,i,a,c)}break;case 16:switch(n){case 16:cn(t,r,l);break;case 2:Be(l),qe(r,l,o,i,a,c);break;case 1:Be(l);break;default:Be(l),Ye(r,l,o,i,a,c)}break;default:switch(n){case 16:De(t),F(l,r);break;case 2:Ee(l,u,t),qe(r,l,o,i,a,c);break;case 1:Ee(l,u,t);break;default:var f=0|t.length,s=0|r.length;0===f?s>0&&Ye(r,l,o,i,a,c):0===s?Ee(l,u,t):8===n&&8===e?$n(t,r,l,o,i,f,s,a,u,c):Cn(t,r,l,o,i,f,s,a,c)}}}function gn(e,n,t,r,l){l.push(function(){e.componentDidUpdate(n,t,r)})}function mn(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=$(e,t,n!==s?a(s,n):n)),u||!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=_e(e,t,o);p&&l(e.getSnapshotBeforeUpdate)&&(h=e.getSnapshotBeforeUpdate(d,s)),un(e.$LI,g,r,e.$CX,i,c,f),e.$LI=g,l(e.componentDidUpdate)&&gn(e,d,s,h,f)}else e.props=t,e.state=n,e.context=o}function kn(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)}mn(s,h,d,t,r,o,!1,u,c),v!==p&&(Ne(v),Ae(p,s,c))}function bn(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=R(32768&n.flags?g.render(s,d,o):g(s,o));un(h,m,r,o,i,a,u),n.children=m,v&&l(d.onComponentDidUpdate)&&d.onComponentDidUpdate(p,s)}else n.children=h}function yn(e,n){var t=n.children,r=n.dom=e.dom;t!==e.children&&(r.nodeValue=t)}function Cn(e,n,t,r,l,o,i,a,u){for(var c,f,s=o>i?i:o,d=0;di)for(d=s;dd||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=E(g)),un(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;)Me(e[v++],t);else wn(e,n,r,o,i,d,p,v,t,l,a,u,c)}function wn(e,n,t,r,l,o,i,a,u,c,f,s,d){var p,v,h,g=0,m=a,k=a,y=o-a+1,$=i-a+1,w=new Int32Array($+1),F=y===r,P=!1,x=0,L=0;if(l<4||(y|$)<32)for(g=m;g<=o;++g)if(p=e[g],L<$){for(a=k;a<=i;a++)if(v=n[a],p.key===v.key){if(w[a-k]=g+1,F)for(F=!1;ma?P=!0:x=a,16384&v.flags&&(n[a]=v=E(v)),un(p,v,u,t,c,f,d),++L;break}!F&&a>i&&Me(p,u)}else F||Me(p,u);else{var S={};for(g=k;g<=i;++g)S[n[g].key]=g;for(g=m;g<=o;++g)if(p=e[g],L<$)if(void 0!==(a=S[p.key])){if(F)for(F=!1;g>m;)Me(e[m++],u);w[a-k]=g+1,x>a?P=!0:x=a,16384&(v=n[a]).flags&&(n[a]=v=E(v)),un(p,v,u,t,c,f,d),++L}else F||Me(p,u);else F||Me(p,u)}if(F)Ee(u,s,e),Ye(n,u,t,c,f,d);else if(P){var V=Pn(w);for(a=V.length-1,g=$-1;g>=0;g--)0===w[g]?(16384&(v=n[x=g+k]).flags&&(n[x]=v=E(v)),qe(v,u,t,c,(h=x+1)=0;g--)0===w[g]&&(16384&(v=n[x=g+k]).flags&&(n[x]=v=E(v)),qe(v,u,t,c,(h=x+1)Fn&&(Fn=u,we=new Int32Array(u),Fe=new Int32Array(u));t>1]]0&&(Fe[t]=we[o-1]),we[o]=t)}o=l+1;var c=new Int32Array(o);for(i=we[o-1];o-- >0;)c[o]=i,i=Fe[i],we[o]=0;return c}function xn(e,n,r,o){var i=[],a=n.$V;t(a)?t(e)||(16384&e.flags&&(e=E(e)),qe(e,n,o,!1,null,i),n.$V=e,a=e):t(e)?(Me(a,n),n.$V=null):(16384&e.flags&&(e=E(e)),un(a,e,n,o,!1,null,i),a=n.$V=e),i.length>0&&m(i),l(r)&&r(),l(w.renderComplete)&&w.renderComplete(a,n)}function Ln(e,n,t,r){void 0===t&&(t=null),void 0===r&&(r=f),xn(e,n,t,r)}"undefined"!==typeof document&&(document.body,Node.prototype.$EV=null,Node.prototype.$V=null),"undefined"!==typeof Promise&&Promise.resolve().then.bind(Promise.resolve()),uibench.init("Inferno","7.3.0");var Sn={onComponentShouldUpdate:function(e,n){return e!==n}};function Vn(e){return U(1,"li","TreeLeaf",e.children,16,null,null,null)}function Un(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]===S;p||v||h?(a=a||l.slice(0,f),(p||h)&&(s=E(s)),(v||h)&&(s.key=S+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=E(l)),u=2;return t.children=a,t.childFlags=u,t}function R(t){if(r(t)||n(t))return T(t,null);if(e(t))return D(t,0,null);return 16384&t.flags?E(t):t}var j="http://www.w3.org/1999/xlink",X="http://www.w3.org/XML/1998/namespace",_={"xlink:actuate":j,"xlink:arcrole":j,"xlink:href":j,"xlink:role":j,"xlink:show":j,"xlink:title":j,"xlink:type":j,"xml:base":X,"xml:lang":X,"xml:space":X};function K(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 q=K(0),G=K(null),J=K(!0);function z(e,n){var t=n.$EV;return t||(t=n.$EV=K(null)),t[e]||1===++q[e]&&(G[e]=ae(e)),t}function Q(e,n){var t=n.$EV;t&&t[e]&&(0===--q[e]&&(document.removeEventListener(s(e),G[e]),G[e]=null),t[e]=null)}function Y(e,n,t,r){if(l(t))z(e,r)[e]=t;else if(c(t)){if(P(n,t))return;z(e,r)[e]=t}else Q(e,r)}function Z(e){return l(e.composedPath)?e.composedPath()[0]:e.target}function ee(e,n,t,r){var l=Z(e);do{if(n&&l.disabled)return;var o=l.$EV;if(o){var a=o[t];if(a&&(r.dom=l,a.event?a.event(a.data,e):a(e),e.cancelBubble))return}l=l.parentNode}while(!i(l))}function ne(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function te(){return this.defaultPrevented}function re(){return this.cancelBubble}function le(e){var n={dom:document};return e.isDefaultPrevented=te,e.isPropagationStopped=re,e.stopPropagation=ne,Object.defineProperty(e,"currentTarget",{configurable:!0,get:function(){return n.dom}}),n}function oe(e){return function(n){if(0!==n.button)return void n.stopPropagation();ee(n,!0,e,le(n))}}function ie(e){return function(n){ee(n,!1,e,le(n))}}function ae(e){var n="onClick"===e||"onDblClick"===e?oe(e):ie(e);return document.addEventListener(s(e),n),n}function ue(e,n){var t=document.createElement("i");return t.innerHTML=n,t.innerHTML===e.innerHTML}function ce(e,n,t){if(e[n]){var r=e[n];r.event?r.event(r.data,t):r(t)}else{var l=n.toLowerCase();e[l]&&e[l](t)}}function fe(e,n){var t=function(t){var r=this.$V;if(!r)return;var i=r.props||f,a=r.dom;if(o(e))ce(i,e,t);else for(var u=0;u-1&&n.options[i]&&(a=n.options[i].value),r&&t(a)&&(a=e.defaultValue),ke(l,a)}}var we,Fe,Pe=fe("onInput",Se),xe=fe("onChange");function Le(e,n){se(e,"input",Pe),n.onChange&&se(e,"change",xe)}function Se(e,n,r){var l=e.value,o=n.value;if(t(l)){if(r){var i=e.defaultValue;t(i)||i===o||(n.defaultValue=i,n.value=i)}}else o!==l&&(n.defaultValue=l,n.value=l)}function Ve(e,n,t,r,l,o){64&e?me(r,t):256&e?$e(r,t,l,n):128&e&&Se(r,t,l),o&&(t.$V=n)}function Ue(e,n,t){64&e?ge(n,t):256&e?Ce(n):128&e&&Le(n,t)}function Ie(e){return e.type&&de(e.type)?!t(e.checked):!t(e.value)}function Ne(e){e&&!L(e,null)&&e.current&&(e.current=null)}function Ae(e,n,t){e&&(l(e)||void 0!==e.current)&&t.push(function(){L(e,n)||void 0===e.current||(e.current=n)})}function Me(e,n){Te(e),y(e,n)}function Te(e){var n,r=e.flags,o=e.children;if(481&r){n=e.ref;var a=e.props;Ne(n);var u=e.childFlags;if(!i(a))for(var c=Object.keys(a),s=0,d=c.length;s0;for(var a in i&&(o=Ie(t))&&Ue(n,r,t),t)je(a,null,t[a],r,l,o,null);i&&Ve(n,e,r,t,!0,o)}function _e(e,n,t){var r=R(e.render(n,e.state,t)),o=t;return l(e.getChildContext)&&(o=a(t,e.getChildContext())),e.$CX=o,r}function Ke(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=$(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=_e(u,t,r),u}function qe(e,n,t,r,l,o){var i=e.flags|=16384;481&i?Qe(e,n,t,r,l,o):4&i?Ze(e,n,t,r,l,o):8&i?(nn(e,n,t,r,l,o),on(e,o)):512&i||16&i?ze(e,n,l):8192&i?Je(e,t,n,r,l,o):1024&i&&Ge(e,t,n,l,o)}function Ge(e,n,t,r,l){qe(e.children,e.ref,n,!1,null,l);var o=W();ze(o,t,r),e.dom=o.dom}function Je(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=W()),2===a?qe(i,t,l,r,l,o):Ye(i,t,n,r,l,o)}function ze(e,n,t){var r=e.dom=document.createTextNode(e.children);i(n)||p(n,r,t)}function Qe(e,n,r,l,o,a){var u=e.flags,c=e.props,f=e.className,s=e.children,d=e.childFlags,h=e.dom=v(e.type,l=l||(32&u)>0);if(t(f)||""===f||(l?h.setAttribute("class",f):h.className=f),16===d)F(h,s);else if(1!==d){var g=l&&"foreignObject"!==e.type;2===d?(16384&s.flags&&(e.children=s=E(s)),qe(s,h,r,g,null,a)):8!==d&&4!==d||Ye(s,h,r,g,null,a)}i(n)||p(n,h,o),i(c)||Xe(e,u,c,h,l),Ae(e.ref,h,a)}function Ye(e,n,t,r,l,o){for(var i=0;id)&&(f=b(i[d-1],!1).nextSibling)}hn(u,c,i,a,t,r,l,f,e,o)}function dn(e,n,t,l){var o=e.ref,i=n.ref,a=n.children;if(hn(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;g(o,u),d(i,u)}}function pn(e,n,r,l,o,i){var a,u=n.dom=e.dom,c=e.props,s=n.props,d=!1,p=!1;if(l=l||(32&o)>0,c!==s){var v=c||f;if((a=s||f)!==f)for(var h in(d=(448&o)>0)&&(p=Ie(a)),a){var g=v[h],m=a[h];g!==m&&je(h,g,m,u,l,p,e)}if(v!==f)for(var k in v)t(a[k])&&!t(v[k])&&je(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?fn(u,b):hn(e.childFlags,n.childFlags,e.children,b,u,r,l&&"foreignObject"!==n.type,null,e,i),d&&Ve(o,n,u,a,!1,p);var C=n.ref,$=e.ref;$!==C&&(Ne($),Ae(C,u,i))}function vn(e,n,t,r,l,o){Te(e),Ye(n,t,r,l,b(e,!0),o),y(e,t)}function hn(e,n,t,r,l,o,i,a,u,c){switch(e){case 2:switch(n){case 2:un(t,r,l,o,i,a,c);break;case 1:Me(t,l);break;case 16:Te(t),F(l,r);break;default:vn(t,r,l,o,i,c)}break;case 1:switch(n){case 2:qe(r,l,o,i,a,c);break;case 1:break;case 16:F(l,r);break;default:Ye(r,l,o,i,a,c)}break;case 16:switch(n){case 16:cn(t,r,l);break;case 2:Be(l),qe(r,l,o,i,a,c);break;case 1:Be(l);break;default:Be(l),Ye(r,l,o,i,a,c)}break;default:switch(n){case 16:De(t),F(l,r);break;case 2:Ee(l,u,t),qe(r,l,o,i,a,c);break;case 1:Ee(l,u,t);break;default:var f=0|t.length,s=0|r.length;0===f?s>0&&Ye(r,l,o,i,a,c):0===s?Ee(l,u,t):8===n&&8===e?$n(t,r,l,o,i,f,s,a,u,c):Cn(t,r,l,o,i,f,s,a,c)}}}function gn(e,n,t,r,l){l.push(function(){e.componentDidUpdate(n,t,r)})}function mn(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=$(e,t,n!==s?a(s,n):n)),u||!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=_e(e,t,o);p&&l(e.getSnapshotBeforeUpdate)&&(h=e.getSnapshotBeforeUpdate(d,s)),un(e.$LI,g,r,e.$CX,i,c,f),e.$LI=g,l(e.componentDidUpdate)&&gn(e,d,s,h,f)}else e.props=t,e.state=n,e.context=o}function kn(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)}mn(s,h,d,t,r,o,!1,u,c),v!==p&&(Ne(v),Ae(p,s,c))}function bn(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=R(32768&n.flags?g.render(s,d,o):g(s,o));un(h,m,r,o,i,a,u),n.children=m,v&&l(d.onComponentDidUpdate)&&d.onComponentDidUpdate(p,s)}else n.children=h}function yn(e,n){var t=n.children,r=n.dom=e.dom;t!==e.children&&(r.nodeValue=t)}function Cn(e,n,t,r,l,o,i,a,u){for(var c,f,s=o>i?i:o,d=0;di)for(d=s;dd||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=E(g)),un(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;)Me(e[v++],t);else wn(e,n,r,o,i,d,p,v,t,l,a,u,c)}function wn(e,n,t,r,l,o,i,a,u,c,f,s,d){var p,v,h,g=0,m=a,k=a,y=o-a+1,$=i-a+1,w=new Int32Array($+1),F=y===r,P=!1,x=0,L=0;if(l<4||(y|$)<32)for(g=m;g<=o;++g)if(p=e[g],L<$){for(a=k;a<=i;a++)if(v=n[a],p.key===v.key){if(w[a-k]=g+1,F)for(F=!1;ma?P=!0:x=a,16384&v.flags&&(n[a]=v=E(v)),un(p,v,u,t,c,f,d),++L;break}!F&&a>i&&Me(p,u)}else F||Me(p,u);else{var S={};for(g=k;g<=i;++g)S[n[g].key]=g;for(g=m;g<=o;++g)if(p=e[g],L<$)if(void 0!==(a=S[p.key])){if(F)for(F=!1;g>m;)Me(e[m++],u);w[a-k]=g+1,x>a?P=!0:x=a,16384&(v=n[a]).flags&&(n[a]=v=E(v)),un(p,v,u,t,c,f,d),++L}else F||Me(p,u);else F||Me(p,u)}if(F)Ee(u,s,e),Ye(n,u,t,c,f,d);else if(P){var V=Pn(w);for(a=V.length-1,g=$-1;g>=0;g--)0===w[g]?(16384&(v=n[x=g+k]).flags&&(n[x]=v=E(v)),qe(v,u,t,c,(h=x+1)=0;g--)0===w[g]&&(16384&(v=n[x=g+k]).flags&&(n[x]=v=E(v)),qe(v,u,t,c,(h=x+1)Fn&&(Fn=u,we=new Int32Array(u),Fe=new Int32Array(u));t>1]]0&&(Fe[t]=we[o-1]),we[o]=t)}o=l+1;var c=new Int32Array(o);for(i=we[o-1];o-- >0;)c[o]=i,i=Fe[i],we[o]=0;return c}function xn(e,n,r,o){var i=[],a=n.$V;t(a)?t(e)||(16384&e.flags&&(e=E(e)),qe(e,n,o,!1,null,i),n.$V=e,a=e):t(e)?(Me(a,n),n.$V=null):(16384&e.flags&&(e=E(e)),un(a,e,n,o,!1,null,i),a=n.$V=e),i.length>0&&m(i),l(r)&&r(),l(w.renderComplete)&&w.renderComplete(a,n)}function Ln(e,n,t,r){void 0===t&&(t=null),void 0===r&&(r=f),xn(e,n,t,r)}"undefined"!==typeof document&&(document.body,Node.prototype.$EV=null,Node.prototype.$V=null),"undefined"!==typeof Promise&&Promise.resolve().then.bind(Promise.resolve()),uibench.init("Inferno","7.3.1");var Sn={onComponentShouldUpdate:function(e,n){return e!==n}};function Vn(e){return U(1,"li","TreeLeaf",e.children,16,null,null,null)}function Un(e){for(var n=e.data,t=n.children.length,r=new Array(t),l=0;l (https://terinstock.com/)", @@ -24,11 +24,11 @@ ], "repository": "https://github.com/infernojs/inferno", "dependencies": { - "inferno": "7.3.0" + "inferno": "7.3.1" }, "devDependencies": { - "inferno-shared": "7.3.0", - "inferno-vnode-flags": "7.3.0" + "inferno-shared": "7.3.1", + "inferno-vnode-flags": "7.3.1" }, "rollup": { "bundledDependencies": [ diff --git a/packages/inferno-mobx/package.json b/packages/inferno-mobx/package.json index db789d59a..8069a3037 100644 --- a/packages/inferno-mobx/package.json +++ b/packages/inferno-mobx/package.json @@ -1,6 +1,6 @@ { "name": "inferno-mobx", - "version": "7.3.0", + "version": "7.3.1", "license": "MIT", "description": "Official Inferno bindings for Mobx", "author": { @@ -36,11 +36,11 @@ }, "dependencies": { "hoist-non-inferno-statics": "^1.1.3", - "inferno": "7.3.0", - "inferno-create-class": "7.3.0", - "inferno-create-element": "7.3.0", - "inferno-shared": "7.3.0", - "inferno-vnode-flags": "7.3.0", + "inferno": "7.3.1", + "inferno-create-class": "7.3.1", + "inferno-create-element": "7.3.1", + "inferno-shared": "7.3.1", + "inferno-vnode-flags": "7.3.1", "mobx": "*" }, "rollup": { diff --git a/packages/inferno-redux/package.json b/packages/inferno-redux/package.json index 361a3a725..ad1dfa475 100644 --- a/packages/inferno-redux/package.json +++ b/packages/inferno-redux/package.json @@ -1,6 +1,6 @@ { "name": "inferno-redux", - "version": "7.3.0", + "version": "7.3.1", "license": "MIT", "description": "Official Inferno bindings for Redux", "author": { @@ -36,12 +36,12 @@ }, "dependencies": { "hoist-non-inferno-statics": "^1.1.3", - "inferno": "7.3.0" + "inferno": "7.3.1" }, "devDependencies": { - "inferno-create-class": "7.3.0", - "inferno-create-element": "7.3.0", - "inferno-shared": "7.3.0", + "inferno-create-class": "7.3.1", + "inferno-create-element": "7.3.1", + "inferno-shared": "7.3.1", "redux": "^4" }, "rollup": { diff --git a/packages/inferno-router/package.json b/packages/inferno-router/package.json index df70e14ac..b9cd13fc9 100644 --- a/packages/inferno-router/package.json +++ b/packages/inferno-router/package.json @@ -1,6 +1,6 @@ { "name": "inferno-router", - "version": "7.3.0", + "version": "7.3.1", "license": "MIT", "description": "Provides routing functionality for Inferno", "author": { @@ -38,11 +38,11 @@ "dependencies": { "history": "^4.9.0", "hoist-non-inferno-statics": "^1.1.3", - "inferno": "7.3.0", + "inferno": "7.3.1", "path-to-regexp-es6": "1.7.0" }, "devDependencies": { - "inferno-vnode-flags": "7.3.0", + "inferno-vnode-flags": "7.3.1", "mobx": "*" }, "rollup": { diff --git a/packages/inferno-server/package.json b/packages/inferno-server/package.json index b1252b002..2a20ac50a 100644 --- a/packages/inferno-server/package.json +++ b/packages/inferno-server/package.json @@ -1,6 +1,6 @@ { "name": "inferno-server", - "version": "7.3.0", + "version": "7.3.1", "license": "MIT", "description": "Provides methods to render HTML strings from Inferno elements", "author": { @@ -41,15 +41,15 @@ "node": ">=8" }, "devDependencies": { - "inferno-create-class": "7.3.0", - "inferno-create-element": "7.3.0", - "inferno-hydrate": "7.3.0", - "inferno-shared": "7.3.0", - "inferno-vnode-flags": "7.3.0", + "inferno-create-class": "7.3.1", + "inferno-create-element": "7.3.1", + "inferno-hydrate": "7.3.1", + "inferno-shared": "7.3.1", + "inferno-vnode-flags": "7.3.1", "mobx": "*" }, "dependencies": { - "inferno": "7.3.0" + "inferno": "7.3.1" }, "rollup": { "bundledDependencies": [ diff --git a/packages/inferno-shared/package.json b/packages/inferno-shared/package.json index 0171a714c..63aa1883c 100644 --- a/packages/inferno-shared/package.json +++ b/packages/inferno-shared/package.json @@ -1,6 +1,6 @@ { "name": "inferno-shared", - "version": "7.3.0", + "version": "7.3.1", "license": "MIT", "description": "Helpers functions for Inferno", "author": { diff --git a/packages/inferno-test-utils/package.json b/packages/inferno-test-utils/package.json index b44f67d46..d5699315c 100644 --- a/packages/inferno-test-utils/package.json +++ b/packages/inferno-test-utils/package.json @@ -1,6 +1,6 @@ { "name": "inferno-test-utils", - "version": "7.3.0", + "version": "7.3.1", "license": "MIT", "description": "Suite of utilities for testing Inferno applications", "author": { @@ -21,11 +21,11 @@ "utils" ], "devDependencies": { - "inferno-shared": "7.3.0", - "inferno-vnode-flags": "7.3.0" + "inferno-shared": "7.3.1", + "inferno-vnode-flags": "7.3.1" }, "dependencies": { - "inferno": "7.3.0" + "inferno": "7.3.1" }, "rollup": { "bundledDependencies": [ diff --git a/packages/inferno-utils/package.json b/packages/inferno-utils/package.json index 604d231bb..ad4aab846 100644 --- a/packages/inferno-utils/package.json +++ b/packages/inferno-utils/package.json @@ -1,13 +1,13 @@ { "name": "inferno-utils", - "version": "7.3.0", + "version": "7.3.1", "description": "Meta test utilities which are not for userland", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "devDependencies": { - "inferno-shared": "7.3.0", - "inferno-vnode-flags": "7.3.0" + "inferno-shared": "7.3.1", + "inferno-vnode-flags": "7.3.1" }, "keywords": [], "author": "", diff --git a/packages/inferno-vnode-flags/package.json b/packages/inferno-vnode-flags/package.json index 714ff4765..4a51bd3bf 100644 --- a/packages/inferno-vnode-flags/package.json +++ b/packages/inferno-vnode-flags/package.json @@ -1,6 +1,6 @@ { "name": "inferno-vnode-flags", - "version": "7.3.0", + "version": "7.3.1", "license": "MIT", "description": "Provides an enum of all possible VNode Flags used when calling Inferno.createVNode", "author": { diff --git a/packages/inferno/package.json b/packages/inferno/package.json index 5f57f9f85..4b4640bf1 100644 --- a/packages/inferno/package.json +++ b/packages/inferno/package.json @@ -1,6 +1,6 @@ { "name": "inferno", - "version": "7.3.0", + "version": "7.3.1", "license": "MIT", "description": "An extremely fast, React-like JavaScript library for building modern user interfaces", "author": { @@ -53,11 +53,11 @@ "typings": "dist/index.d.ts", "repository": "https://github.com/infernojs/inferno", "devDependencies": { - "inferno-utils": "7.3.0" + "inferno-utils": "7.3.1" }, "dependencies": { - "inferno-shared": "7.3.0", - "inferno-vnode-flags": "7.3.0", + "inferno-shared": "7.3.1", + "inferno-vnode-flags": "7.3.1", "opencollective-postinstall": "^2.0.2" } }