diff --git a/docs/uibench-normalization/dist/bundle.js b/docs/uibench-normalization/dist/bundle.js index b6ed0c1b5..492df3034 100644 --- a/docs/uibench-normalization/dist/bundle.js +++ b/docs/uibench-normalization/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 l(e){return"string"===typeof e}function i(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!i(e)&&"object"===typeof e}var f={},s=function(){this.componentDidAppear=[],this.componentWillDisappear=[],this.componentWillMove=[]};function d(e){return e.substring(2).toLowerCase()}function p(e,n){e.appendChild(n)}function v(e,n,t){i(t)?p(e,n):e.insertBefore(n,t)}function h(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=0;n0?C(t.componentWillDisappear,D(e,n)):$(e,n,!1)}function x(e,n,t,r,o,l,i,a){e.componentWillMove.push({dom:r,fn:function(){4&i?t.componentWillMove(n,o,r):8&i&&t.onComponentWillMove(n,o,r,a)},next:l,parent:o})}function A(e,n,r,l,i){var a,u,c=n.flags;do{var f=n.flags;if(1521&f)return void(t(a)||!o(a.componentWillMove)&&!o(a.onComponentWillMove)?v(r,n.dom,l):x(i,e,a,n.dom,r,l,c,u));var s=n.children;if(4&f)a=n.children,u=n.props,n=s.$LI;else if(8&f)a=n.ref,u=n.props,n=s;else if(8192&f){if(2!==n.childFlags){for(var d=0,p=s.length;d0,v=i(d),h=l(d)&&d[0]===V;p||v||h?(a=a||o.slice(0,f),(p||h)&&(s=X(s)),(v||h)&&(s.key=V+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=X(o)),u=2;return t.children=a,t.childFlags=u,t}function z(t){if(r(t)||n(t))return R(t,null);if(e(t))return j(t,0,null);return 16384&t.flags?X(t):t}var G="http://www.w3.org/1999/xlink",J="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":J,"xml:lang":J,"xml:space":J};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),ee=Y(null),ne=Y(!0);function te(e,n){var t=n.$EV;return t||(t=n.$EV=Y(null)),t[e]||1===++Z[e]&&(ee[e]=pe(e)),t}function re(e,n){var t=n.$EV;t&&t[e]&&(0===--Z[e]&&(document.removeEventListener(d(e),ee[e]),ee[e]=null),t[e]=null)}function oe(e,n,t,r){if(o(t))te(e,r)[e]=t;else if(c(t)){if(U(n,t))return;te(e,r)[e]=t}else re(e,r)}function le(e){return o(e.composedPath)?e.composedPath()[0]:e.target}function ie(e,n,t,r){var o=le(e);do{if(n&&o.disabled)return;var l=o.$EV;if(l){var a=l[t];if(a&&(r.dom=o,a.event?a.event(a.data,e):a(e),e.cancelBubble))return}o=o.parentNode}while(!i(o))}function ae(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function ue(){return this.defaultPrevented}function ce(){return this.cancelBubble}function fe(e){var n={dom:document};return e.isDefaultPrevented=ue,e.isPropagationStopped=ce,e.stopPropagation=ae,Object.defineProperty(e,"currentTarget",{configurable:!0,get:function(){return n.dom}}),n}function se(e){return function(n){if(0!==n.button)return void n.stopPropagation();ie(n,!0,e,fe(n))}}function de(e){return function(n){ie(n,!1,e,fe(n))}}function pe(e){var n="onClick"===e||"onDblClick"===e?se(e):de(e);return document.addEventListener(d(e),n),n}function ve(e,n){var t=document.createElement("i");return t.innerHTML=n,t.innerHTML===e.innerHTML}function he(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 me(e,n){var t=function(t){var r=this.$V;if(!r)return;var i=r.props||f,a=r.dom;if(l(e))he(i,e,t);else for(var u=0;u-1&&n.options[i]&&(a=n.options[i].value),r&&t(a)&&(a=e.defaultValue),De(o,a)}}var Se,We,Ue=me("onInput",Ve),Le=me("onChange");function Me(e,n){ge(e,"input",Ue),n.onChange&&ge(e,"change",Le)}function Ve(e,n,r){var o=e.value,l=n.value;if(t(o)){if(r){var i=e.defaultValue;t(i)||i===l||(n.defaultValue=i,n.value=i)}}else l!==o&&(n.defaultValue=o,n.value=o)}function Ie(e,n,t,r,o,l){64&e?$e(r,t):256&e?Pe(r,t,o,n):128&e&&Ve(r,t,o),l&&(t.$V=n)}function Ne(e,n,t){64&e?we(n,t):256&e?Ae(n):128&e&&Me(n,t)}function Te(e){return e.type&&ye(e.type)?!t(e.checked):!t(e.value)}function Be(e){e&&!M(e,null)&&e.current&&(e.current=null)}function Ee(e,n,t){e&&(o(e)||void 0!==e.current)&&t.push((function(){M(e,n)||void 0===e.current||(e.current=n)}))}function Oe(e,n,t){Re(e,t),F(e,n,t)}function Re(e,n){var r,l=e.flags,a=e.children;if(481&l){r=e.ref;var u=e.props;Be(r);var c=e.childFlags;if(!i(u))for(var d=Object.keys(u),p=0,v=d.length;p0?C(t.componentWillDisappear,He(n,e)):e.textContent=""}function _e(e,n,t,r){je(t,r),8192&n.flags?F(n,e,r):Xe(e,t,r)}function Ke(e,n,t,r,o){e.componentWillDisappear.push((function(e){4&r?n.componentWillDisappear(t,e):8&r&&n.onComponentWillDisappear(t,o,e)}))}function qe(e){var n=e.event;return function(t){n(e.data,t)}}function ze(e,n,t,r){if(c(t)){if(U(n,t))return;t=qe(t)}ge(r,d(e),t)}function Ge(e,n,r){if(t(n))return void r.removeAttribute("style");var o,i,a=r.style;if(l(n))return void(a.cssText=n);if(t(e)||l(e))for(o in n)i=n[o],a.setProperty(o,i);else{for(o in n)(i=n[o])!==e[o]&&a.setProperty(o,i);for(o in e)t(n[o])&&a.removeProperty(o)}}function Je(e,n,r,o,l){var a=e&&e.__html||"",u=n&&n.__html||"";a!==u&&(t(u)||ve(o,u)||(i(r)||(12&r.childFlags?je(r.children,l):2===r.childFlags&&Re(r.children,l),r.children=null,r.childFlags=1),o.innerHTML=u))}function Qe(e,n,r,o,l,i,a,u){switch(e){case"children":case"childrenType":case"className":case"defaultValue":case"key":case"multiple":case"ref":case"selectedIndex":break;case"autoFocus":o.autofocus=!!r;break;case"allowfullscreen":case"autoplay":case"capture":case"checked":case"controls":case"default":case"disabled":case"hidden":case"indeterminate":case"loop":case"muted":case"novalidate":case"open":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"selected":o[e]=!!r;break;case"defaultChecked":case"value":case"volume":if(i&&"value"===e)break;var c=t(r)?"":r;o[e]!==c&&(o[e]=c);break;case"style":Ge(n,r,o);break;case"dangerouslySetInnerHTML":Je(n,r,a,o,u);break;default:ne[e]?oe(e,n,r,o):111===e.charCodeAt(0)&&110===e.charCodeAt(1)?ze(e,n,r,o):t(r)?o.removeAttribute(e):l&&Q[e]?o.setAttributeNS(Q[e],e,r):o.setAttribute(e,r)}}function Ye(e,n,t,r,o,l){var i=!1,a=(448&n)>0;for(var u in a&&(i=Te(t))&&Ne(n,r,t),t)Qe(u,null,t[u],r,o,i,null,l);a&&Ie(n,e,r,t,!0,i)}function Ze(e,n,t){var r=z(e.render(n,e.state,t)),l=t;return o(e.getChildContext)&&(l=a(t,e.getChildContext())),e.$CX=l,r}function en(e,n,t,r,l,a){var u=new n(t,r),c=u.$N=Boolean(n.getDerivedStateFromProps||u.getSnapshotBeforeUpdate);if(u.$SVG=l,u.$L=a,e.children=u,u.$BS=!1,u.context=r,u.props===f&&(u.props=t),c)u.state=P(u,t,u.state);else if(o(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=Ze(u,t,r),u}function nn(e,n){var t=e.props||f;return 32768&e.flags?e.type.render(t,e.ref,n):e.type(t,n)}function tn(e,n,t,r,o,l,i){var a=e.flags|=16384;481&a?an(e,n,t,r,o,l,i):4&a?cn(e,n,t,r,o,l,i):8&a?fn(e,n,t,r,o,l,i):16&a?ln(e,n,o):8192&a?on(e,t,n,r,o,l,i):1024&a&&rn(e,t,n,o,l,i)}function rn(e,n,t,r,o,l){tn(e.children,e.ref,n,!1,null,o,l);var i=_();ln(i,t,r),e.dom=i.dom}function on(e,n,t,r,o,l,i){var a=e.children,u=e.childFlags;12&u&&0===a.length&&(u=e.childFlags=2,a=e.children=_()),2===u?tn(a,t,n,r,o,l,i):un(a,t,n,r,o,l,i)}function ln(e,n,t){var r=e.dom=document.createTextNode(e.children);i(n)||v(n,r,t)}function an(e,n,r,o,l,a,u){var c=e.flags,f=e.props,s=e.className,d=e.childFlags,p=e.dom=h(e.type,o=o||(32&c)>0),m=e.children;if(t(s)||""===s||(o?p.setAttribute("class",s):p.className=s),16===d)W(p,m);else if(1!==d){var g=o&&"foreignObject"!==e.type;2===d?(16384&m.flags&&(e.children=m=X(m)),tn(m,p,r,g,null,a,u)):8!==d&&4!==d||un(m,p,r,g,null,a,u)}i(n)||v(n,p,l),i(f)||Ye(e,c,f,p,o,u),Ee(e.ref,p,a)}function un(e,n,t,r,o,l,i){for(var a=0;ap)&&(s=k(a[p-1],!1).nextSibling)}Dn(c,f,a,u,t,r,o,s,e,l,i)}function Cn(e,n,t,o,l){var i=e.ref,a=n.ref,u=n.children;if(Dn(e.childFlags,n.childFlags,e.children,u,i,t,!1,null,e,o,l),n.dom=e.dom,i!==a&&!r(u)){var c=u.dom;g(i,c),p(a,c)}}function wn(e,n,r,o,l,i,a){var u,c=n.dom=e.dom,s=e.props,d=n.props,p=!1,v=!1;if(o=o||(32&l)>0,s!==d){var h=s||f;if((u=d||f)!==f)for(var m in(p=(448&l)>0)&&(v=Te(u)),u){var g=h[m],y=u[m];g!==y&&Qe(m,g,y,c,o,v,e,a)}if(h!==f)for(var b in h)t(u[b])&&!t(h[b])&&Qe(b,h[b],null,c,o,v,e,a)}var k=n.children,C=n.className;e.className!==C&&(t(C)?c.removeAttribute("class"):o?c.setAttribute("class",C):c.className=C),4096&l?bn(c,k):Dn(e.childFlags,n.childFlags,e.children,k,c,r,o&&"foreignObject"!==n.type,null,e,i,a),p&&Ie(l,n,c,u,!1,v);var w=n.ref,$=e.ref;$!==w&&(Be($),Ee(w,c,i))}function $n(e,n,t,r,o,l,i){Re(e,i),un(n,t,r,o,k(e,!0),l,i),F(e,t,i)}function Dn(e,n,t,r,o,l,i,a,u,c,f){switch(e){case 2:switch(n){case 2:gn(t,r,o,l,i,a,c,f);break;case 1:Oe(t,o,f);break;case 16:Re(t,f),W(o,r);break;default:$n(t,r,o,l,i,c,f)}break;case 1:switch(n){case 2:tn(r,o,l,i,a,c,f);break;case 1:break;case 16:W(o,r);break;default:un(r,o,l,i,a,c,f)}break;case 16:switch(n){case 16:yn(t,r,o);break;case 2:Xe(o,t,f),tn(r,o,l,i,a,c,f);break;case 1:Xe(o,t,f);break;default:Xe(o,t,f),un(r,o,l,i,a,c,f)}break;default:switch(n){case 16:je(t,f),W(o,r);break;case 2:_e(o,u,t,f),tn(r,o,l,i,a,c,f);break;case 1:_e(o,u,t,f);break;default:var s=0|t.length,d=0|r.length;0===s?d>0&&un(r,o,l,i,a,c,f):0===d?_e(o,u,t,f):8===n&&8===e?Un(t,r,o,l,i,s,d,a,u,c,f):Wn(t,r,o,l,i,s,d,a,c,f)}}}function Fn(e,n,t,r,o){o.push((function(){e.componentDidUpdate(n,t,r)}))}function xn(e,n,t,r,l,i,u,c,f,s){var d=e.state,p=e.props,v=Boolean(e.$N),h=o(e.shouldComponentUpdate);if(v&&(n=P(e,t,n!==d?a(d,n):n)),u||!h||h&&e.shouldComponentUpdate(t,n,l)){!v&&o(e.componentWillUpdate)&&e.componentWillUpdate(t,n,l),e.props=t,e.state=n,e.context=l;var m=null,g=Ze(e,t,l);v&&o(e.getSnapshotBeforeUpdate)&&(m=e.getSnapshotBeforeUpdate(p,d)),gn(e.$LI,g,r,e.$CX,i,c,f,s),e.$LI=g,o(e.componentDidUpdate)&&Fn(e,p,d,m,f)}else e.props=t,e.state=n,e.context=l}function An(e,n,t,r,l,u,c,s){var d=n.children=e.children;if(i(d))return;d.$L=c;var p=n.props||f,v=n.ref,h=e.ref,m=d.state;if(!d.$N){if(o(d.componentWillReceiveProps)){if(d.$BR=!0,d.componentWillReceiveProps(p,r),d.$UN)return;d.$BR=!1}i(d.$PS)||(m=a(m,d.$PS),d.$PS=null)}xn(d,m,p,t,r,l,!1,u,c,s),h!==v&&(Be(h),Ee(v,d,c))}function Pn(e,n,r,l,i,a,u,c){var s=!0,d=n.props||f,p=n.ref,v=e.props,h=!t(p),m=e.children;if(h&&o(p.onComponentShouldUpdate)&&(s=p.onComponentShouldUpdate(v,d)),!1!==s){h&&o(p.onComponentWillUpdate)&&p.onComponentWillUpdate(v,d);var g=z(nn(n,l));gn(m,g,r,l,i,a,u,c),n.children=g,h&&o(p.onComponentDidUpdate)&&p.onComponentDidUpdate(v,d)}else n.children=m}function Sn(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,c){for(var f,s,d=l>i?i:l,p=0;pi)for(p=d;pp||h>v)break e;m=e[h],g=n[h]}for(m=e[p],g=n[v];m.key===g.key;){if(16384&g.flags&&(n[v]=g=X(g)),gn(m,g,t,r,o,a,c,f),e[p]=g,v--,h>--p||h>v)break e;m=e[p],g=n[v]}}if(h>p){if(h<=v)for(d=(s=v+1)v)for(;h<=p;)Oe(e[h++],t,f);else Ln(e,n,r,l,i,p,v,h,t,o,a,u,c,f)}function Ln(e,n,t,r,o,l,i,a,u,c,f,s,d,p){var v,h,m=0,g=0,y=a,b=a,C=l-a+1,$=i-a+1,D=new Int32Array($+1),F=C===r,x=!1,P=0,S=0;if(o<4||(C|$)<32)for(g=y;g<=l;++g)if(v=e[g],S<$){for(a=b;a<=i;a++)if(h=n[a],v.key===h.key){if(D[a-b]=g+1,F)for(F=!1;ya?x=!0:P=a,16384&h.flags&&(n[a]=h=X(h)),gn(v,h,u,t,c,f,d,p),++S;break}!F&&a>i&&Oe(v,u,p)}else F||Oe(v,u,p);else{var W={};for(g=b;g<=i;++g)W[n[g].key]=g;for(g=y;g<=l;++g)if(v=e[g],S<$)if(void 0!==(a=W[v.key])){if(F)for(F=!1;g>y;)Oe(e[y++],u,p);D[a-b]=g+1,P>a?x=!0:P=a,16384&(h=n[a]).flags&&(n[a]=h=X(h)),gn(v,h,u,t,c,f,d,p),++S}else F||Oe(v,u,p);else F||Oe(v,u,p)}if(F)_e(u,s,e,p),un(n,u,t,c,f,d,p);else if(x){var U=Vn(D);for(a=U.length-1,g=$-1;g>=0;g--)0===D[g]?(16384&(h=n[P=g+b]).flags&&(n[P]=h=X(h)),tn(h,u,t,c,(m=P+1)0&&w(p.componentWillMove)}else if(S!==$)for(g=$-1;g>=0;g--)0===D[g]&&(16384&(h=n[P=g+b]).flags&&(n[P]=h=X(h)),tn(h,u,t,c,(m=P+1)Mn&&(Mn=u,Se=new Int32Array(u),We=new Int32Array(u));t>1]]0&&(We[t]=Se[l-1]),Se[l]=t)}l=o+1;var c=new Int32Array(l);for(i=Se[l-1];l-- >0;)c[l]=i,i=We[i],Se[l]=0;return c}function In(e,n,r,l){var i=[],a=new s,u=n.$V;t(u)?t(e)||(16384&e.flags&&(e=X(e)),tn(e,n,l,!1,null,i,a),n.$V=e,u=e):t(e)?(Oe(u,n,a),n.$V=null):(16384&e.flags&&(e=X(e)),gn(u,e,n,l,!1,null,i,a),u=n.$V=e),y(i),C(a.componentDidAppear),o(r)&&r(),o(S.renderComplete)&&S.renderComplete(u,n)}function Nn(e,n,t,r){void 0===t&&(t=null),void 0===r&&(r=f),In(e,n,t,r)}function Tn(e){return N(1,"li","TreeLeaf",e.children,0,null,null,null)}function Bn(e,n){return e!==n}function En(e){for(var n=e.data,t=n.children.length,r=new Array(t),o=0;o0?C(t.componentWillDisappear,D(e,n)):$(e,n,!1)}function x(e,n,t,r,o,l,i,a){e.componentWillMove.push({dom:r,fn:function(){4&i?t.componentWillMove(n,o,r):8&i&&t.onComponentWillMove(n,o,r,a)},next:l,parent:o})}function A(e,n,r,l,i){var a,u,c=n.flags;do{var f=n.flags;if(1521&f)return void(t(a)||!o(a.componentWillMove)&&!o(a.onComponentWillMove)?v(r,n.dom,l):x(i,e,a,n.dom,r,l,c,u));var s=n.children;if(4&f)a=n.children,u=n.props,n=s.$LI;else if(8&f)a=n.ref,u=n.props,n=s;else if(8192&f){if(2!==n.childFlags){for(var d=0,p=s.length;d0,v=i(d),h=l(d)&&d[0]===V;p||v||h?(a=a||o.slice(0,f),(p||h)&&(s=X(s)),(v||h)&&(s.key=V+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=X(o)),u=2;return t.children=a,t.childFlags=u,t}function z(t){if(r(t)||n(t))return R(t,null);if(e(t))return j(t,0,null);return 16384&t.flags?X(t):t}var G="http://www.w3.org/1999/xlink",J="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":J,"xml:lang":J,"xml:space":J};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),ee=Y(null),ne=Y(!0);function te(e,n){var t=n.$EV;return t||(t=n.$EV=Y(null)),t[e]||1===++Z[e]&&(ee[e]=pe(e)),t}function re(e,n){var t=n.$EV;t&&t[e]&&(0===--Z[e]&&(document.removeEventListener(d(e),ee[e]),ee[e]=null),t[e]=null)}function oe(e,n,t,r){if(o(t))te(e,r)[e]=t;else if(c(t)){if(U(n,t))return;te(e,r)[e]=t}else re(e,r)}function le(e){return o(e.composedPath)?e.composedPath()[0]:e.target}function ie(e,n,t,r){var o=le(e);do{if(n&&o.disabled)return;var l=o.$EV;if(l){var a=l[t];if(a&&(r.dom=o,a.event?a.event(a.data,e):a(e),e.cancelBubble))return}o=o.parentNode}while(!i(o))}function ae(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function ue(){return this.defaultPrevented}function ce(){return this.cancelBubble}function fe(e){var n={dom:document};return e.isDefaultPrevented=ue,e.isPropagationStopped=ce,e.stopPropagation=ae,Object.defineProperty(e,"currentTarget",{configurable:!0,get:function(){return n.dom}}),n}function se(e){return function(n){if(0!==n.button)return void n.stopPropagation();ie(n,!0,e,fe(n))}}function de(e){return function(n){ie(n,!1,e,fe(n))}}function pe(e){var n="onClick"===e||"onDblClick"===e?se(e):de(e);return document.addEventListener(d(e),n),n}function ve(e,n){var t=document.createElement("i");return t.innerHTML=n,t.innerHTML===e.innerHTML}function he(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 me(e,n){var t=function(t){var r=this.$V;if(!r)return;var i=r.props||f,a=r.dom;if(l(e))he(i,e,t);else for(var u=0;u-1&&n.options[i]&&(a=n.options[i].value),r&&t(a)&&(a=e.defaultValue),De(o,a)}}var Se,We,Ue=me("onInput",Ve),Le=me("onChange");function Me(e,n){ge(e,"input",Ue),n.onChange&&ge(e,"change",Le)}function Ve(e,n,r){var o=e.value,l=n.value;if(t(o)){if(r){var i=e.defaultValue;t(i)||i===l||(n.defaultValue=i,n.value=i)}}else l!==o&&(n.defaultValue=o,n.value=o)}function Ie(e,n,t,r,o,l){64&e?$e(r,t):256&e?Pe(r,t,o,n):128&e&&Ve(r,t,o),l&&(t.$V=n)}function Ne(e,n,t){64&e?we(n,t):256&e?Ae(n):128&e&&Me(n,t)}function Te(e){return e.type&&ye(e.type)?!t(e.checked):!t(e.value)}function Be(e){e&&!M(e,null)&&e.current&&(e.current=null)}function Ee(e,n,t){e&&(o(e)||void 0!==e.current)&&t.push((function(){M(e,n)||void 0===e.current||(e.current=n)}))}function Oe(e,n,t){Re(e,t),F(e,n,t)}function Re(e,n){var r,l=e.flags,a=e.children;if(481&l){r=e.ref;var u=e.props;Be(r);var c=e.childFlags;if(!i(u))for(var d=Object.keys(u),p=0,v=d.length;p0?C(t.componentWillDisappear,He(n,e)):e.textContent=""}function _e(e,n,t,r){je(t,r),8192&n.flags?F(n,e,r):Xe(e,t,r)}function Ke(e,n,t,r,o){e.componentWillDisappear.push((function(e){4&r?n.componentWillDisappear(t,e):8&r&&n.onComponentWillDisappear(t,o,e)}))}function qe(e){var n=e.event;return function(t){n(e.data,t)}}function ze(e,n,t,r){if(c(t)){if(U(n,t))return;t=qe(t)}ge(r,d(e),t)}function Ge(e,n,r){if(t(n))return void r.removeAttribute("style");var o,i,a=r.style;if(l(n))return void(a.cssText=n);if(t(e)||l(e))for(o in n)i=n[o],a.setProperty(o,i);else{for(o in n)(i=n[o])!==e[o]&&a.setProperty(o,i);for(o in e)t(n[o])&&a.removeProperty(o)}}function Je(e,n,r,o,l){var a=e&&e.__html||"",u=n&&n.__html||"";a!==u&&(t(u)||ve(o,u)||(i(r)||(12&r.childFlags?je(r.children,l):2===r.childFlags&&Re(r.children,l),r.children=null,r.childFlags=1),o.innerHTML=u))}function Qe(e,n,r,o,l,i,a,u){switch(e){case"children":case"childrenType":case"className":case"defaultValue":case"key":case"multiple":case"ref":case"selectedIndex":break;case"autoFocus":o.autofocus=!!r;break;case"allowfullscreen":case"autoplay":case"capture":case"checked":case"controls":case"default":case"disabled":case"hidden":case"indeterminate":case"loop":case"muted":case"novalidate":case"open":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"selected":o[e]=!!r;break;case"defaultChecked":case"value":case"volume":if(i&&"value"===e)break;var c=t(r)?"":r;o[e]!==c&&(o[e]=c);break;case"style":Ge(n,r,o);break;case"dangerouslySetInnerHTML":Je(n,r,a,o,u);break;default:ne[e]?oe(e,n,r,o):111===e.charCodeAt(0)&&110===e.charCodeAt(1)?ze(e,n,r,o):t(r)?o.removeAttribute(e):l&&Q[e]?o.setAttributeNS(Q[e],e,r):o.setAttribute(e,r)}}function Ye(e,n,t,r,o,l){var i=!1,a=(448&n)>0;for(var u in a&&(i=Te(t))&&Ne(n,r,t),t)Qe(u,null,t[u],r,o,i,null,l);a&&Ie(n,e,r,t,!0,i)}function Ze(e,n,t){var r=z(e.render(n,e.state,t)),l=t;return o(e.getChildContext)&&(l=a(t,e.getChildContext())),e.$CX=l,r}function en(e,n,t,r,l,a){var u=new n(t,r),c=u.$N=Boolean(n.getDerivedStateFromProps||u.getSnapshotBeforeUpdate);if(u.$SVG=l,u.$L=a,e.children=u,u.$BS=!1,u.context=r,u.props===f&&(u.props=t),c)u.state=P(u,t,u.state);else if(o(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=Ze(u,t,r),u}function nn(e,n){var t=e.props||f;return 32768&e.flags?e.type.render(t,e.ref,n):e.type(t,n)}function tn(e,n,t,r,o,l,i){var a=e.flags|=16384;481&a?an(e,n,t,r,o,l,i):4&a?cn(e,n,t,r,o,l,i):8&a?fn(e,n,t,r,o,l,i):16&a?ln(e,n,o):8192&a?on(e,t,n,r,o,l,i):1024&a&&rn(e,t,n,o,l,i)}function rn(e,n,t,r,o,l){tn(e.children,e.ref,n,!1,null,o,l);var i=_();ln(i,t,r),e.dom=i.dom}function on(e,n,t,r,o,l,i){var a=e.children,u=e.childFlags;12&u&&0===a.length&&(u=e.childFlags=2,a=e.children=_()),2===u?tn(a,t,n,r,o,l,i):un(a,t,n,r,o,l,i)}function ln(e,n,t){var r=e.dom=document.createTextNode(e.children);i(n)||v(n,r,t)}function an(e,n,r,o,l,a,u){var c=e.flags,f=e.props,s=e.className,d=e.childFlags,p=e.dom=h(e.type,o=o||(32&c)>0),m=e.children;if(t(s)||""===s||(o?p.setAttribute("class",s):p.className=s),16===d)W(p,m);else if(1!==d){var g=o&&"foreignObject"!==e.type;2===d?(16384&m.flags&&(e.children=m=X(m)),tn(m,p,r,g,null,a,u)):8!==d&&4!==d||un(m,p,r,g,null,a,u)}i(n)||v(n,p,l),i(f)||Ye(e,c,f,p,o,u),Ee(e.ref,p,a)}function un(e,n,t,r,o,l,i){for(var a=0;ap)&&(s=k(a[p-1],!1).nextSibling)}Dn(c,f,a,u,t,r,o,s,e,l,i)}function Cn(e,n,t,o,l){var i=e.ref,a=n.ref,u=n.children;if(Dn(e.childFlags,n.childFlags,e.children,u,i,t,!1,null,e,o,l),n.dom=e.dom,i!==a&&!r(u)){var c=u.dom;g(i,c),p(a,c)}}function wn(e,n,r,o,l,i,a){var u,c=n.dom=e.dom,s=e.props,d=n.props,p=!1,v=!1;if(o=o||(32&l)>0,s!==d){var h=s||f;if((u=d||f)!==f)for(var m in(p=(448&l)>0)&&(v=Te(u)),u){var g=h[m],y=u[m];g!==y&&Qe(m,g,y,c,o,v,e,a)}if(h!==f)for(var b in h)t(u[b])&&!t(h[b])&&Qe(b,h[b],null,c,o,v,e,a)}var k=n.children,C=n.className;e.className!==C&&(t(C)?c.removeAttribute("class"):o?c.setAttribute("class",C):c.className=C),4096&l?bn(c,k):Dn(e.childFlags,n.childFlags,e.children,k,c,r,o&&"foreignObject"!==n.type,null,e,i,a),p&&Ie(l,n,c,u,!1,v);var w=n.ref,$=e.ref;$!==w&&(Be($),Ee(w,c,i))}function $n(e,n,t,r,o,l,i){Re(e,i),un(n,t,r,o,k(e,!0),l,i),F(e,t,i)}function Dn(e,n,t,r,o,l,i,a,u,c,f){switch(e){case 2:switch(n){case 2:gn(t,r,o,l,i,a,c,f);break;case 1:Oe(t,o,f);break;case 16:Re(t,f),W(o,r);break;default:$n(t,r,o,l,i,c,f)}break;case 1:switch(n){case 2:tn(r,o,l,i,a,c,f);break;case 1:break;case 16:W(o,r);break;default:un(r,o,l,i,a,c,f)}break;case 16:switch(n){case 16:yn(t,r,o);break;case 2:Xe(o,t,f),tn(r,o,l,i,a,c,f);break;case 1:Xe(o,t,f);break;default:Xe(o,t,f),un(r,o,l,i,a,c,f)}break;default:switch(n){case 16:je(t,f),W(o,r);break;case 2:_e(o,u,t,f),tn(r,o,l,i,a,c,f);break;case 1:_e(o,u,t,f);break;default:var s=0|t.length,d=0|r.length;0===s?d>0&&un(r,o,l,i,a,c,f):0===d?_e(o,u,t,f):8===n&&8===e?Un(t,r,o,l,i,s,d,a,u,c,f):Wn(t,r,o,l,i,s,d,a,c,f)}}}function Fn(e,n,t,r,o){o.push((function(){e.componentDidUpdate(n,t,r)}))}function xn(e,n,t,r,l,i,u,c,f,s){var d=e.state,p=e.props,v=Boolean(e.$N),h=o(e.shouldComponentUpdate);if(v&&(n=P(e,t,n!==d?a(d,n):n)),u||!h||h&&e.shouldComponentUpdate(t,n,l)){!v&&o(e.componentWillUpdate)&&e.componentWillUpdate(t,n,l),e.props=t,e.state=n,e.context=l;var m=null,g=Ze(e,t,l);v&&o(e.getSnapshotBeforeUpdate)&&(m=e.getSnapshotBeforeUpdate(p,d)),gn(e.$LI,g,r,e.$CX,i,c,f,s),e.$LI=g,o(e.componentDidUpdate)&&Fn(e,p,d,m,f)}else e.props=t,e.state=n,e.context=l}function An(e,n,t,r,l,u,c,s){var d=n.children=e.children;if(i(d))return;d.$L=c;var p=n.props||f,v=n.ref,h=e.ref,m=d.state;if(!d.$N){if(o(d.componentWillReceiveProps)){if(d.$BR=!0,d.componentWillReceiveProps(p,r),d.$UN)return;d.$BR=!1}i(d.$PS)||(m=a(m,d.$PS),d.$PS=null)}xn(d,m,p,t,r,l,!1,u,c,s),h!==v&&(Be(h),Ee(v,d,c))}function Pn(e,n,r,l,i,a,u,c){var s=!0,d=n.props||f,p=n.ref,v=e.props,h=!t(p),m=e.children;if(h&&o(p.onComponentShouldUpdate)&&(s=p.onComponentShouldUpdate(v,d)),!1!==s){h&&o(p.onComponentWillUpdate)&&p.onComponentWillUpdate(v,d);var g=z(nn(n,l));gn(m,g,r,l,i,a,u,c),n.children=g,h&&o(p.onComponentDidUpdate)&&p.onComponentDidUpdate(v,d)}else n.children=m}function Sn(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,c){for(var f,s,d=l>i?i:l,p=0;pi)for(p=d;pp||h>v)break e;m=e[h],g=n[h]}for(m=e[p],g=n[v];m.key===g.key;){if(16384&g.flags&&(n[v]=g=X(g)),gn(m,g,t,r,o,a,c,f),e[p]=g,v--,h>--p||h>v)break e;m=e[p],g=n[v]}}if(h>p){if(h<=v)for(d=(s=v+1)v)for(;h<=p;)Oe(e[h++],t,f);else Ln(e,n,r,l,i,p,v,h,t,o,a,u,c,f)}function Ln(e,n,t,r,o,l,i,a,u,c,f,s,d,p){var v,h,m=0,g=0,y=a,b=a,C=l-a+1,$=i-a+1,D=new Int32Array($+1),F=C===r,x=!1,P=0,S=0;if(o<4||(C|$)<32)for(g=y;g<=l;++g)if(v=e[g],S<$){for(a=b;a<=i;a++)if(h=n[a],v.key===h.key){if(D[a-b]=g+1,F)for(F=!1;ya?x=!0:P=a,16384&h.flags&&(n[a]=h=X(h)),gn(v,h,u,t,c,f,d,p),++S;break}!F&&a>i&&Oe(v,u,p)}else F||Oe(v,u,p);else{var W={};for(g=b;g<=i;++g)W[n[g].key]=g;for(g=y;g<=l;++g)if(v=e[g],S<$)if(void 0!==(a=W[v.key])){if(F)for(F=!1;g>y;)Oe(e[y++],u,p);D[a-b]=g+1,P>a?x=!0:P=a,16384&(h=n[a]).flags&&(n[a]=h=X(h)),gn(v,h,u,t,c,f,d,p),++S}else F||Oe(v,u,p);else F||Oe(v,u,p)}if(F)_e(u,s,e,p),un(n,u,t,c,f,d,p);else if(x){var U=Vn(D);for(a=U.length-1,g=$-1;g>=0;g--)0===D[g]?(16384&(h=n[P=g+b]).flags&&(n[P]=h=X(h)),tn(h,u,t,c,(m=P+1)0&&w(p.componentWillMove)}else if(S!==$)for(g=$-1;g>=0;g--)0===D[g]&&(16384&(h=n[P=g+b]).flags&&(n[P]=h=X(h)),tn(h,u,t,c,(m=P+1)Mn&&(Mn=u,Se=new Int32Array(u),We=new Int32Array(u));t>1]]0&&(We[t]=Se[l-1]),Se[l]=t)}l=o+1;var c=new Int32Array(l);for(i=Se[l-1];l-- >0;)c[l]=i,i=We[i],Se[l]=0;return c}function In(e,n,r,l){var i=[],a=new s,u=n.$V;t(u)?t(e)||(16384&e.flags&&(e=X(e)),tn(e,n,l,!1,null,i,a),n.$V=e,u=e):t(e)?(Oe(u,n,a),n.$V=null):(16384&e.flags&&(e=X(e)),gn(u,e,n,l,!1,null,i,a),u=n.$V=e),y(i),C(a.componentDidAppear),o(r)&&r(),o(S.renderComplete)&&S.renderComplete(u,n)}function Nn(e,n,t,r){void 0===t&&(t=null),void 0===r&&(r=f),In(e,n,t,r)}function Tn(e){return N(1,"li","TreeLeaf",e.children,0,null,null,null)}function Bn(e,n){return e!==n}function En(e){for(var n=e.data,t=n.children.length,r=new Array(t),o=0;o0?w(t.componentWillDisappear,P(n,e)):U(n,e,!1)}function F(n,e,t,r,o,i,l,a){n.componentWillMove.push({dom:r,fn:function(){4&l?t.componentWillMove(e,o,r):8&l&&t.onComponentWillMove(e,o,r,a)},next:i,parent:o})}function D(n,e,t,r,o){var l,u,c=e.flags;do{var s=e.flags;if(1521&s)return void(i(l)||!a(l.componentWillMove)&&!a(l.onComponentWillMove)?m(t,e.dom,r):F(o,n,l,e.dom,t,r,c,u));var f=e.children;if(4&s)l=e.children,u=e.props,e=f.$LI;else if(8&s)l=e.ref,u=e.props,e=f;else if(8192&s){if(2!==e.childFlags){for(var p=0,d=f.length;p0,h=c(p),v=u(p)&&p[0]===B;d||h||v?(t=t||e.slice(0,s),(d||v)&&(f=G(f)),(h||v)&&(f.key=B+s),t.push(f)):t&&t.push(f),f.flags|=65536}}i=0===(t=t||e).length?1:8}else(t=e).flags|=65536,81920&e.flags&&(t=G(e)),i=2;return n.children=t,n.childFlags=i,n}function z(n){if(l(n)||o(n))return H(n,null);if(r(n))return Q(n,0,null);return 16384&n.flags?G(n):n}var Y="http://www.w3.org/1999/xlink",Z="http://www.w3.org/XML/1998/namespace",nn={"xlink:actuate":Y,"xlink:arcrole":Y,"xlink:href":Y,"xlink:role":Y,"xlink:show":Y,"xlink:title":Y,"xlink:type":Y,"xml:base":Z,"xml:lang":Z,"xml:space":Z};function en(n){return{onClick:n,onDblClick:n,onFocusIn:n,onFocusOut:n,onKeyDown:n,onKeyPress:n,onKeyUp:n,onMouseDown:n,onMouseMove:n,onMouseUp:n,onTouchEnd:n,onTouchMove:n,onTouchStart:n}}var tn=en(0),rn=en(null),on=en(!0);function ln(n,e){var t=e.$EV;return t||(t=e.$EV=en(null)),t[n]||1===++tn[n]&&(rn[n]=gn(n)),t}function an(n,e){var t=e.$EV;t&&t[n]&&(0===--tn[n]&&(document.removeEventListener(h(n),rn[n]),rn[n]=null),t[n]=null)}function un(n,e,t,r){if(a(t))ln(n,r)[n]=t;else if(f(t)){if(M(e,t))return;ln(n,r)[n]=t}else an(n,r)}function cn(n){return a(n.composedPath)?n.composedPath()[0]:n.target}function sn(n,e,t,r){var o=cn(n);do{if(e&&o.disabled)return;var i=o.$EV;if(i){var l=i[t];if(l&&(r.dom=o,l.event?l.event(l.data,n):l(n),n.cancelBubble))return}o=o.parentNode}while(!c(o))}function fn(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function pn(){return this.defaultPrevented}function dn(){return this.cancelBubble}function hn(n){var e={dom:document};return n.isDefaultPrevented=pn,n.isPropagationStopped=dn,n.stopPropagation=fn,Object.defineProperty(n,"currentTarget",{configurable:!0,get:function(){return e.dom}}),e}function vn(n){return function(e){if(0!==e.button)return void e.stopPropagation();sn(e,!0,n,hn(e))}}function mn(n){return function(e){sn(e,!1,n,hn(e))}}function gn(n){var e="onClick"===n||"onDblClick"===n?vn(n):mn(n);return document.addEventListener(h(n),e),e}function yn(n,e){var t=document.createElement("i");return t.innerHTML=e,t.innerHTML===n.innerHTML}function bn(n,e,t){if(n[e]){var r=n[e];r.event?r.event(r.data,t):r(t)}else{var o=e.toLowerCase();n[o]&&n[o](t)}}function $n(n,e){var t=function(t){var r=this.$V;if(!r)return;var o=r.props||p,i=r.dom;if(u(n))bn(o,n,t);else for(var l=0;l-1&&e.options[l]&&(a=e.options[l].value),t&&i(a)&&(a=n.defaultValue),Fn(r,a)}}var An,Mn,Vn=$n("onInput",Tn),In=$n("onChange");function Bn(n,e){kn(n,"input",Vn),e.onChange&&kn(n,"change",In)}function Tn(n,e,t){var r=n.value,o=e.value;if(i(r)){if(t){var l=n.defaultValue;i(l)||l===o||(e.defaultValue=l,e.value=l)}}else o!==r&&(e.defaultValue=r,e.value=r)}function On(n,e,t,r,o,i){64&n?Sn(r,t):256&n?Wn(r,t,o,e):128&n&&Tn(r,t,o),i&&(t.$V=e)}function En(n,e,t){64&n?Pn(e,t):256&n?Nn(e):128&n&&Bn(e,t)}function Rn(n){return n.type&&Cn(n.type)?!i(n.checked):!i(n.value)}function jn(n){n&&!I(n,null)&&n.current&&(n.current=null)}function _n(n,e,t){n&&(a(n)||void 0!==n.current)&&t.push((function(){I(n,e)||void 0===n.current||(n.current=e)}))}function Hn(n,e,t){Qn(n,t),S(n,e,t)}function Qn(n,e){var t,r=n.flags,o=n.children;if(481&r){t=n.ref;var l=n.props;jn(t);var u=n.childFlags;if(!c(l))for(var s=Object.keys(l),f=0,h=s.length;f0?w(t.componentWillDisappear,Gn(e,n)):n.textContent=""}function qn(n,e,t,r){Xn(t,r),8192&e.flags?S(e,n,r):Kn(n,t,r)}function Jn(n,e,t,r,o){n.componentWillDisappear.push((function(n){4&r?e.componentWillDisappear(t,n):8&r&&e.onComponentWillDisappear(t,o,n)}))}function zn(n){var e=n.event;return function(t){e(n.data,t)}}function Yn(n,e,t,r){if(f(t)){if(M(e,t))return;t=zn(t)}kn(r,h(n),t)}function Zn(n,e,t){if(i(e))return void t.removeAttribute("style");var r,o,l=t.style;if(u(e))return void(l.cssText=e);if(i(n)||u(n))for(r in e)o=e[r],l.setProperty(r,o);else{for(r in e)(o=e[r])!==n[r]&&l.setProperty(r,o);for(r in n)i(e[r])&&l.removeProperty(r)}}function ne(n,e,t,r,o){var l=n&&n.__html||"",a=e&&e.__html||"";l!==a&&(i(a)||yn(r,a)||(c(t)||(12&t.childFlags?Xn(t.children,o):2===t.childFlags&&Qn(t.children,o),t.children=null,t.childFlags=1),r.innerHTML=a))}function ee(n,e,t,r,o,l,a,u){switch(n){case"children":case"childrenType":case"className":case"defaultValue":case"key":case"multiple":case"ref":case"selectedIndex":break;case"autoFocus":r.autofocus=!!t;break;case"allowfullscreen":case"autoplay":case"capture":case"checked":case"controls":case"default":case"disabled":case"hidden":case"indeterminate":case"loop":case"muted":case"novalidate":case"open":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"selected":r[n]=!!t;break;case"defaultChecked":case"value":case"volume":if(l&&"value"===n)break;var c=i(t)?"":t;r[n]!==c&&(r[n]=c);break;case"style":Zn(e,t,r);break;case"dangerouslySetInnerHTML":ne(e,t,a,r,u);break;default:on[n]?un(n,e,t,r):111===n.charCodeAt(0)&&110===n.charCodeAt(1)?Yn(n,e,t,r):i(t)?r.removeAttribute(n):o&&nn[n]?r.setAttributeNS(nn[n],n,t):r.setAttribute(n,t)}}function te(n,e,t,r,o,i){var l=!1,a=(448&e)>0;for(var u in a&&(l=Rn(t))&&En(e,r,t),t)ee(u,null,t[u],r,o,l,null,i);a&&On(e,n,r,t,!0,l)}function re(n,e,t){var r=z(n.render(e,n.state,t)),o=t;return a(n.getChildContext)&&(o=s(t,n.getChildContext())),n.$CX=o,r}function oe(n,e,t,r,o,i){var l=new e(t,r),u=l.$N=Boolean(e.getDerivedStateFromProps||l.getSnapshotBeforeUpdate);if(l.$SVG=o,l.$L=i,n.children=l,l.$BS=!1,l.context=r,l.props===p&&(l.props=t),u)l.state=L(l,t,l.state);else if(a(l.componentWillMount)){l.$BR=!0,l.componentWillMount();var s=l.$PS;if(!c(s)){var f=l.state;if(c(f))l.state=s;else for(var d in s)f[d]=s[d];l.$PS=null}l.$BR=!1}return l.$LI=re(l,t,r),l}function ie(n,e){var t=n.props||p;return 32768&n.flags?n.type.render(t,n.ref,e):n.type(t,e)}function le(n,e,t,r,o,i,l){var a=n.flags|=16384;481&a?se(n,e,t,r,o,i,l):4&a?pe(n,e,t,r,o,i,l):8&a?de(n,e,t,r,o,i,l):16&a?ce(n,e,o):8192&a?ue(n,t,e,r,o,i,l):1024&a&&ae(n,t,e,o,i,l)}function ae(n,e,t,r,o,i){le(n.children,n.ref,e,!1,null,o,i);var l=K();ce(l,t,r),n.dom=l.dom}function ue(n,e,t,r,o,i,l){var a=n.children,u=n.childFlags;12&u&&0===a.length&&(u=n.childFlags=2,a=n.children=K()),2===u?le(a,t,e,r,o,i,l):fe(a,t,e,r,o,i,l)}function ce(n,e,t){var r=n.dom=document.createTextNode(n.children);c(e)||m(e,r,t)}function se(n,e,t,r,o,l,a){var u=n.flags,s=n.props,f=n.className,p=n.childFlags,d=n.dom=g(n.type,r=r||(32&u)>0),h=n.children;if(i(f)||""===f||(r?d.setAttribute("class",f):d.className=f),16===p)A(d,h);else if(1!==p){var v=r&&"foreignObject"!==n.type;2===p?(16384&h.flags&&(n.children=h=G(h)),le(h,d,t,v,null,l,a)):8!==p&&4!==p||fe(h,d,t,v,null,l,a)}c(e)||m(e,d,o),c(s)||te(n,u,s,d,r,a),_n(n.ref,d,l)}function fe(n,e,t,r,o,i,l){for(var a=0;ad)&&(f=C(a[d-1],!1).nextSibling)}Se(c,s,a,u,t,r,o,f,n,i,l)}function xe(n,e,t,r,o){var i=n.ref,a=e.ref,u=e.children;if(Se(n.childFlags,e.childFlags,n.children,u,i,t,!1,null,n,r,o),e.dom=n.dom,i!==a&&!l(u)){var c=u.dom;b(i,c),v(a,c)}}function Ue(n,e,t,r,o,l,a){var u,c=e.dom=n.dom,s=n.props,f=e.props,d=!1,h=!1;if(r=r||(32&o)>0,s!==f){var v=s||p;if((u=f||p)!==p)for(var m in(d=(448&o)>0)&&(h=Rn(u)),u){var g=v[m],y=u[m];g!==y&&ee(m,g,y,c,r,h,n,a)}if(v!==p)for(var b in v)i(u[b])&&!i(v[b])&&ee(b,v[b],null,c,r,h,n,a)}var $=e.children,k=e.className;n.className!==k&&(i(k)?c.removeAttribute("class"):r?c.setAttribute("class",k):c.className=k),4096&o?Ce(c,$):Se(n.childFlags,e.childFlags,n.children,$,c,t,r&&"foreignObject"!==e.type,null,n,l,a),d&&On(o,e,c,u,!1,h);var C=e.ref,w=n.ref;w!==C&&(jn(w),_n(C,c,l))}function Pe(n,e,t,r,o,i,l){Qn(n,l),fe(e,t,r,o,C(n,!0),i,l),S(n,t,l)}function Se(n,e,t,r,o,i,l,a,u,c,s){switch(n){case 2:switch(e){case 2:$e(t,r,o,i,l,a,c,s);break;case 1:Hn(t,o,s);break;case 16:Qn(t,s),A(o,r);break;default:Pe(t,r,o,i,l,c,s)}break;case 1:switch(e){case 2:le(r,o,i,l,a,c,s);break;case 1:break;case 16:A(o,r);break;default:fe(r,o,i,l,a,c,s)}break;case 16:switch(e){case 16:ke(t,r,o);break;case 2:Kn(o,t,s),le(r,o,i,l,a,c,s);break;case 1:Kn(o,t,s);break;default:Kn(o,t,s),fe(r,o,i,l,a,c,s)}break;default:switch(e){case 16:Xn(t,s),A(o,r);break;case 2:qn(o,u,t,s),le(r,o,i,l,a,c,s);break;case 1:qn(o,u,t,s);break;default:var f=0|t.length,p=0|r.length;0===f?p>0&&fe(r,o,i,l,a,c,s):0===p?qn(o,u,t,s):8===e&&8===n?Me(t,r,o,i,l,f,p,a,u,c,s):Ae(t,r,o,i,l,f,p,a,c,s)}}}function Fe(n,e,t,r,o){o.push((function(){n.componentDidUpdate(e,t,r)}))}function De(n,e,t,r,o,i,l,u,c,f){var p=n.state,d=n.props,h=Boolean(n.$N),v=a(n.shouldComponentUpdate);if(h&&(e=L(n,t,e!==p?s(p,e):e)),l||!v||v&&n.shouldComponentUpdate(t,e,o)){!h&&a(n.componentWillUpdate)&&n.componentWillUpdate(t,e,o),n.props=t,n.state=e,n.context=o;var m=null,g=re(n,t,o);h&&a(n.getSnapshotBeforeUpdate)&&(m=n.getSnapshotBeforeUpdate(d,p)),$e(n.$LI,g,r,n.$CX,i,u,c,f),n.$LI=g,a(n.componentDidUpdate)&&Fe(n,d,p,m,c)}else n.props=t,n.state=e,n.context=o}function Le(n,e,t,r,o,i,l,u){var f=e.children=n.children;if(c(f))return;f.$L=l;var d=e.props||p,h=e.ref,v=n.ref,m=f.state;if(!f.$N){if(a(f.componentWillReceiveProps)){if(f.$BR=!0,f.componentWillReceiveProps(d,r),f.$UN)return;f.$BR=!1}c(f.$PS)||(m=s(m,f.$PS),f.$PS=null)}De(f,m,d,t,r,o,!1,i,l,u),v!==h&&(jn(v),_n(h,f,l))}function Ne(n,e,t,r,o,l,u,c){var s=!0,f=e.props||p,d=e.ref,h=n.props,v=!i(d),m=n.children;if(v&&a(d.onComponentShouldUpdate)&&(s=d.onComponentShouldUpdate(h,f)),!1!==s){v&&a(d.onComponentWillUpdate)&&d.onComponentWillUpdate(h,f);var g=z(ie(e,r));$e(m,g,t,r,o,l,u,c),e.children=g,v&&a(d.onComponentDidUpdate)&&d.onComponentDidUpdate(h,f)}else e.children=m}function We(n,e){var t=e.children,r=e.dom=n.dom;t!==n.children&&(r.nodeValue=t)}function Ae(n,e,t,r,o,i,l,a,u,c){for(var s,f,p=i>l?l:i,d=0;dl)for(d=p;dd||v>h)break n;m=n[v],g=e[v]}for(m=n[d],g=e[h];m.key===g.key;){if(16384&g.flags&&(e[h]=g=G(g)),$e(m,g,t,r,o,a,c,s),n[d]=g,h--,v>--d||v>h)break n;m=n[d],g=e[h]}}if(v>d){if(v<=h)for(p=(f=h+1)h)for(;v<=d;)Hn(n[v++],t,s);else Ve(n,e,r,i,l,d,h,v,t,o,a,u,c,s)}function Ve(n,e,t,r,o,i,l,a,u,c,s,f,p,d){var h,v,m=0,g=0,y=a,b=a,$=i-a+1,k=l-a+1,w=new Int32Array(k+1),U=$===r,P=!1,S=0,F=0;if(o<4||($|k)<32)for(g=y;g<=i;++g)if(h=n[g],Fa?P=!0:S=a,16384&v.flags&&(e[a]=v=G(v)),$e(h,v,u,t,c,s,p,d),++F;break}!U&&a>l&&Hn(h,u,d)}else U||Hn(h,u,d);else{var L={};for(g=b;g<=l;++g)L[e[g].key]=g;for(g=y;g<=i;++g)if(h=n[g],Fy;)Hn(n[y++],u,d);w[a-b]=g+1,S>a?P=!0:S=a,16384&(v=e[a]).flags&&(e[a]=v=G(v)),$e(h,v,u,t,c,s,p,d),++F}else U||Hn(h,u,d);else U||Hn(h,u,d)}if(U)qn(u,f,n,d),fe(e,u,t,c,s,p,d);else if(P){var N=Be(w);for(a=N.length-1,g=k-1;g>=0;g--)0===w[g]?(16384&(v=e[S=g+b]).flags&&(e[S]=v=G(v)),le(v,u,t,c,(m=S+1)0&&x(d.componentWillMove)}else if(F!==k)for(g=k-1;g>=0;g--)0===w[g]&&(16384&(v=e[S=g+b]).flags&&(e[S]=v=G(v)),le(v,u,t,c,(m=S+1)Ie&&(Ie=u,An=new Int32Array(u),Mn=new Int32Array(u));t>1]]0&&(Mn[t]=An[i-1]),An[i]=t)}i=o+1;var c=new Int32Array(i);for(l=An[i-1];i-- >0;)c[i]=l,l=Mn[l],An[i]=0;return c}function Te(n,e,t,r){var o=[],l=new d,u=e.$V;N.v=!0,i(u)?i(n)||(16384&n.flags&&(n=G(n)),le(n,e,r,!1,null,o,l),e.$V=n,u=n):i(n)?(Hn(u,e,l),e.$V=null):(16384&n.flags&&(n=G(n)),$e(u,n,e,r,!1,null,o,l),u=e.$V=n),$(o),w(l.componentDidAppear),N.v=!1,a(t)&&t(),a(W.renderComplete)&&W.renderComplete(u,e)}function Oe(n,e,t,r){void 0===t&&(t=null),void 0===r&&(r=p),Te(n,e,t,r)}"undefined"!==typeof document&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);var Ee=[],Re="undefined"!==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):function(n){window.setTimeout(n,0)},je=!1;function _e(n,e,t,r){var o=n.$PS;if(a(e)&&(e=e(o?s(n.state,o):n.state,n.props,n.context)),i(o))n.$PS=e;else for(var l in e)o[l]=e[l];if(n.$BR)a(t)&&n.$L.push(t.bind(n));else{if(!N.v&&0===Ee.length)return Xe(n,r),void(a(t)&&t.call(n));if(-1===Ee.indexOf(n)&&Ee.push(n),r&&(n.$F=!0),je||(je=!0,Re(Qe)),a(t)){var u=n.$QU;u||(u=n.$QU=[]),u.push(t)}}}function He(n){for(var e=n.$QU,t=0;t0?w(t.componentWillDisappear,P(n,e)):U(n,e,!1)}function F(n,e,t,r,o,i,l,a){n.componentWillMove.push({dom:r,fn:function(){4&l?t.componentWillMove(e,o,r):8&l&&t.onComponentWillMove(e,o,r,a)},next:i,parent:o})}function D(n,e,t,r,o){var l,u,c=e.flags;do{var s=e.flags;if(1521&s)return void(i(l)||!a(l.componentWillMove)&&!a(l.onComponentWillMove)?m(t,e.dom,r):F(o,n,l,e.dom,t,r,c,u));var f=e.children;if(4&s)l=e.children,u=e.props,e=f.$LI;else if(8&s)l=e.ref,u=e.props,e=f;else if(8192&s){if(2!==e.childFlags){for(var p=0,d=f.length;p0,h=c(p),v=u(p)&&p[0]===B;d||h||v?(t=t||e.slice(0,s),(d||v)&&(f=G(f)),(h||v)&&(f.key=B+s),t.push(f)):t&&t.push(f),f.flags|=65536}}i=0===(t=t||e).length?1:8}else(t=e).flags|=65536,81920&e.flags&&(t=G(e)),i=2;return n.children=t,n.childFlags=i,n}function z(n){if(l(n)||o(n))return H(n,null);if(r(n))return Q(n,0,null);return 16384&n.flags?G(n):n}var Y="http://www.w3.org/1999/xlink",Z="http://www.w3.org/XML/1998/namespace",nn={"xlink:actuate":Y,"xlink:arcrole":Y,"xlink:href":Y,"xlink:role":Y,"xlink:show":Y,"xlink:title":Y,"xlink:type":Y,"xml:base":Z,"xml:lang":Z,"xml:space":Z};function en(n){return{onClick:n,onDblClick:n,onFocusIn:n,onFocusOut:n,onKeyDown:n,onKeyPress:n,onKeyUp:n,onMouseDown:n,onMouseMove:n,onMouseUp:n,onTouchEnd:n,onTouchMove:n,onTouchStart:n}}var tn=en(0),rn=en(null),on=en(!0);function ln(n,e){var t=e.$EV;return t||(t=e.$EV=en(null)),t[n]||1===++tn[n]&&(rn[n]=gn(n)),t}function an(n,e){var t=e.$EV;t&&t[n]&&(0===--tn[n]&&(document.removeEventListener(h(n),rn[n]),rn[n]=null),t[n]=null)}function un(n,e,t,r){if(a(t))ln(n,r)[n]=t;else if(f(t)){if(M(e,t))return;ln(n,r)[n]=t}else an(n,r)}function cn(n){return a(n.composedPath)?n.composedPath()[0]:n.target}function sn(n,e,t,r){var o=cn(n);do{if(e&&o.disabled)return;var i=o.$EV;if(i){var l=i[t];if(l&&(r.dom=o,l.event?l.event(l.data,n):l(n),n.cancelBubble))return}o=o.parentNode}while(!c(o))}function fn(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function pn(){return this.defaultPrevented}function dn(){return this.cancelBubble}function hn(n){var e={dom:document};return n.isDefaultPrevented=pn,n.isPropagationStopped=dn,n.stopPropagation=fn,Object.defineProperty(n,"currentTarget",{configurable:!0,get:function(){return e.dom}}),e}function vn(n){return function(e){if(0!==e.button)return void e.stopPropagation();sn(e,!0,n,hn(e))}}function mn(n){return function(e){sn(e,!1,n,hn(e))}}function gn(n){var e="onClick"===n||"onDblClick"===n?vn(n):mn(n);return document.addEventListener(h(n),e),e}function yn(n,e){var t=document.createElement("i");return t.innerHTML=e,t.innerHTML===n.innerHTML}function bn(n,e,t){if(n[e]){var r=n[e];r.event?r.event(r.data,t):r(t)}else{var o=e.toLowerCase();n[o]&&n[o](t)}}function $n(n,e){var t=function(t){var r=this.$V;if(!r)return;var o=r.props||p,i=r.dom;if(u(n))bn(o,n,t);else for(var l=0;l-1&&e.options[l]&&(a=e.options[l].value),t&&i(a)&&(a=n.defaultValue),Fn(r,a)}}var An,Mn,Vn=$n("onInput",Tn),In=$n("onChange");function Bn(n,e){kn(n,"input",Vn),e.onChange&&kn(n,"change",In)}function Tn(n,e,t){var r=n.value,o=e.value;if(i(r)){if(t){var l=n.defaultValue;i(l)||l===o||(e.defaultValue=l,e.value=l)}}else o!==r&&(e.defaultValue=r,e.value=r)}function On(n,e,t,r,o,i){64&n?Sn(r,t):256&n?Wn(r,t,o,e):128&n&&Tn(r,t,o),i&&(t.$V=e)}function En(n,e,t){64&n?Pn(e,t):256&n?Nn(e):128&n&&Bn(e,t)}function Rn(n){return n.type&&Cn(n.type)?!i(n.checked):!i(n.value)}function jn(n){n&&!I(n,null)&&n.current&&(n.current=null)}function _n(n,e,t){n&&(a(n)||void 0!==n.current)&&t.push((function(){I(n,e)||void 0===n.current||(n.current=e)}))}function Hn(n,e,t){Qn(n,t),S(n,e,t)}function Qn(n,e){var t,r=n.flags,o=n.children;if(481&r){t=n.ref;var l=n.props;jn(t);var u=n.childFlags;if(!c(l))for(var s=Object.keys(l),f=0,h=s.length;f0?w(t.componentWillDisappear,Gn(e,n)):n.textContent=""}function qn(n,e,t,r){Xn(t,r),8192&e.flags?S(e,n,r):Kn(n,t,r)}function Jn(n,e,t,r,o){n.componentWillDisappear.push((function(n){4&r?e.componentWillDisappear(t,n):8&r&&e.onComponentWillDisappear(t,o,n)}))}function zn(n){var e=n.event;return function(t){e(n.data,t)}}function Yn(n,e,t,r){if(f(t)){if(M(e,t))return;t=zn(t)}kn(r,h(n),t)}function Zn(n,e,t){if(i(e))return void t.removeAttribute("style");var r,o,l=t.style;if(u(e))return void(l.cssText=e);if(i(n)||u(n))for(r in e)o=e[r],l.setProperty(r,o);else{for(r in e)(o=e[r])!==n[r]&&l.setProperty(r,o);for(r in n)i(e[r])&&l.removeProperty(r)}}function ne(n,e,t,r,o){var l=n&&n.__html||"",a=e&&e.__html||"";l!==a&&(i(a)||yn(r,a)||(c(t)||(12&t.childFlags?Xn(t.children,o):2===t.childFlags&&Qn(t.children,o),t.children=null,t.childFlags=1),r.innerHTML=a))}function ee(n,e,t,r,o,l,a,u){switch(n){case"children":case"childrenType":case"className":case"defaultValue":case"key":case"multiple":case"ref":case"selectedIndex":break;case"autoFocus":r.autofocus=!!t;break;case"allowfullscreen":case"autoplay":case"capture":case"checked":case"controls":case"default":case"disabled":case"hidden":case"indeterminate":case"loop":case"muted":case"novalidate":case"open":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"selected":r[n]=!!t;break;case"defaultChecked":case"value":case"volume":if(l&&"value"===n)break;var c=i(t)?"":t;r[n]!==c&&(r[n]=c);break;case"style":Zn(e,t,r);break;case"dangerouslySetInnerHTML":ne(e,t,a,r,u);break;default:on[n]?un(n,e,t,r):111===n.charCodeAt(0)&&110===n.charCodeAt(1)?Yn(n,e,t,r):i(t)?r.removeAttribute(n):o&&nn[n]?r.setAttributeNS(nn[n],n,t):r.setAttribute(n,t)}}function te(n,e,t,r,o,i){var l=!1,a=(448&e)>0;for(var u in a&&(l=Rn(t))&&En(e,r,t),t)ee(u,null,t[u],r,o,l,null,i);a&&On(e,n,r,t,!0,l)}function re(n,e,t){var r=z(n.render(e,n.state,t)),o=t;return a(n.getChildContext)&&(o=s(t,n.getChildContext())),n.$CX=o,r}function oe(n,e,t,r,o,i){var l=new e(t,r),u=l.$N=Boolean(e.getDerivedStateFromProps||l.getSnapshotBeforeUpdate);if(l.$SVG=o,l.$L=i,n.children=l,l.$BS=!1,l.context=r,l.props===p&&(l.props=t),u)l.state=L(l,t,l.state);else if(a(l.componentWillMount)){l.$BR=!0,l.componentWillMount();var s=l.$PS;if(!c(s)){var f=l.state;if(c(f))l.state=s;else for(var d in s)f[d]=s[d];l.$PS=null}l.$BR=!1}return l.$LI=re(l,t,r),l}function ie(n,e){var t=n.props||p;return 32768&n.flags?n.type.render(t,n.ref,e):n.type(t,e)}function le(n,e,t,r,o,i,l){var a=n.flags|=16384;481&a?se(n,e,t,r,o,i,l):4&a?pe(n,e,t,r,o,i,l):8&a?de(n,e,t,r,o,i,l):16&a?ce(n,e,o):8192&a?ue(n,t,e,r,o,i,l):1024&a&&ae(n,t,e,o,i,l)}function ae(n,e,t,r,o,i){le(n.children,n.ref,e,!1,null,o,i);var l=K();ce(l,t,r),n.dom=l.dom}function ue(n,e,t,r,o,i,l){var a=n.children,u=n.childFlags;12&u&&0===a.length&&(u=n.childFlags=2,a=n.children=K()),2===u?le(a,t,e,r,o,i,l):fe(a,t,e,r,o,i,l)}function ce(n,e,t){var r=n.dom=document.createTextNode(n.children);c(e)||m(e,r,t)}function se(n,e,t,r,o,l,a){var u=n.flags,s=n.props,f=n.className,p=n.childFlags,d=n.dom=g(n.type,r=r||(32&u)>0),h=n.children;if(i(f)||""===f||(r?d.setAttribute("class",f):d.className=f),16===p)A(d,h);else if(1!==p){var v=r&&"foreignObject"!==n.type;2===p?(16384&h.flags&&(n.children=h=G(h)),le(h,d,t,v,null,l,a)):8!==p&&4!==p||fe(h,d,t,v,null,l,a)}c(e)||m(e,d,o),c(s)||te(n,u,s,d,r,a),_n(n.ref,d,l)}function fe(n,e,t,r,o,i,l){for(var a=0;ad)&&(f=C(a[d-1],!1).nextSibling)}Se(c,s,a,u,t,r,o,f,n,i,l)}function xe(n,e,t,r,o){var i=n.ref,a=e.ref,u=e.children;if(Se(n.childFlags,e.childFlags,n.children,u,i,t,!1,null,n,r,o),e.dom=n.dom,i!==a&&!l(u)){var c=u.dom;b(i,c),v(a,c)}}function Ue(n,e,t,r,o,l,a){var u,c=e.dom=n.dom,s=n.props,f=e.props,d=!1,h=!1;if(r=r||(32&o)>0,s!==f){var v=s||p;if((u=f||p)!==p)for(var m in(d=(448&o)>0)&&(h=Rn(u)),u){var g=v[m],y=u[m];g!==y&&ee(m,g,y,c,r,h,n,a)}if(v!==p)for(var b in v)i(u[b])&&!i(v[b])&&ee(b,v[b],null,c,r,h,n,a)}var $=e.children,k=e.className;n.className!==k&&(i(k)?c.removeAttribute("class"):r?c.setAttribute("class",k):c.className=k),4096&o?Ce(c,$):Se(n.childFlags,e.childFlags,n.children,$,c,t,r&&"foreignObject"!==e.type,null,n,l,a),d&&On(o,e,c,u,!1,h);var C=e.ref,w=n.ref;w!==C&&(jn(w),_n(C,c,l))}function Pe(n,e,t,r,o,i,l){Qn(n,l),fe(e,t,r,o,C(n,!0),i,l),S(n,t,l)}function Se(n,e,t,r,o,i,l,a,u,c,s){switch(n){case 2:switch(e){case 2:$e(t,r,o,i,l,a,c,s);break;case 1:Hn(t,o,s);break;case 16:Qn(t,s),A(o,r);break;default:Pe(t,r,o,i,l,c,s)}break;case 1:switch(e){case 2:le(r,o,i,l,a,c,s);break;case 1:break;case 16:A(o,r);break;default:fe(r,o,i,l,a,c,s)}break;case 16:switch(e){case 16:ke(t,r,o);break;case 2:Kn(o,t,s),le(r,o,i,l,a,c,s);break;case 1:Kn(o,t,s);break;default:Kn(o,t,s),fe(r,o,i,l,a,c,s)}break;default:switch(e){case 16:Xn(t,s),A(o,r);break;case 2:qn(o,u,t,s),le(r,o,i,l,a,c,s);break;case 1:qn(o,u,t,s);break;default:var f=0|t.length,p=0|r.length;0===f?p>0&&fe(r,o,i,l,a,c,s):0===p?qn(o,u,t,s):8===e&&8===n?Me(t,r,o,i,l,f,p,a,u,c,s):Ae(t,r,o,i,l,f,p,a,c,s)}}}function Fe(n,e,t,r,o){o.push((function(){n.componentDidUpdate(e,t,r)}))}function De(n,e,t,r,o,i,l,u,c,f){var p=n.state,d=n.props,h=Boolean(n.$N),v=a(n.shouldComponentUpdate);if(h&&(e=L(n,t,e!==p?s(p,e):e)),l||!v||v&&n.shouldComponentUpdate(t,e,o)){!h&&a(n.componentWillUpdate)&&n.componentWillUpdate(t,e,o),n.props=t,n.state=e,n.context=o;var m=null,g=re(n,t,o);h&&a(n.getSnapshotBeforeUpdate)&&(m=n.getSnapshotBeforeUpdate(d,p)),$e(n.$LI,g,r,n.$CX,i,u,c,f),n.$LI=g,a(n.componentDidUpdate)&&Fe(n,d,p,m,c)}else n.props=t,n.state=e,n.context=o}function Le(n,e,t,r,o,i,l,u){var f=e.children=n.children;if(c(f))return;f.$L=l;var d=e.props||p,h=e.ref,v=n.ref,m=f.state;if(!f.$N){if(a(f.componentWillReceiveProps)){if(f.$BR=!0,f.componentWillReceiveProps(d,r),f.$UN)return;f.$BR=!1}c(f.$PS)||(m=s(m,f.$PS),f.$PS=null)}De(f,m,d,t,r,o,!1,i,l,u),v!==h&&(jn(v),_n(h,f,l))}function Ne(n,e,t,r,o,l,u,c){var s=!0,f=e.props||p,d=e.ref,h=n.props,v=!i(d),m=n.children;if(v&&a(d.onComponentShouldUpdate)&&(s=d.onComponentShouldUpdate(h,f)),!1!==s){v&&a(d.onComponentWillUpdate)&&d.onComponentWillUpdate(h,f);var g=z(ie(e,r));$e(m,g,t,r,o,l,u,c),e.children=g,v&&a(d.onComponentDidUpdate)&&d.onComponentDidUpdate(h,f)}else e.children=m}function We(n,e){var t=e.children,r=e.dom=n.dom;t!==n.children&&(r.nodeValue=t)}function Ae(n,e,t,r,o,i,l,a,u,c){for(var s,f,p=i>l?l:i,d=0;dl)for(d=p;dd||v>h)break n;m=n[v],g=e[v]}for(m=n[d],g=e[h];m.key===g.key;){if(16384&g.flags&&(e[h]=g=G(g)),$e(m,g,t,r,o,a,c,s),n[d]=g,h--,v>--d||v>h)break n;m=n[d],g=e[h]}}if(v>d){if(v<=h)for(p=(f=h+1)h)for(;v<=d;)Hn(n[v++],t,s);else Ve(n,e,r,i,l,d,h,v,t,o,a,u,c,s)}function Ve(n,e,t,r,o,i,l,a,u,c,s,f,p,d){var h,v,m=0,g=0,y=a,b=a,$=i-a+1,k=l-a+1,w=new Int32Array(k+1),U=$===r,P=!1,S=0,F=0;if(o<4||($|k)<32)for(g=y;g<=i;++g)if(h=n[g],Fa?P=!0:S=a,16384&v.flags&&(e[a]=v=G(v)),$e(h,v,u,t,c,s,p,d),++F;break}!U&&a>l&&Hn(h,u,d)}else U||Hn(h,u,d);else{var L={};for(g=b;g<=l;++g)L[e[g].key]=g;for(g=y;g<=i;++g)if(h=n[g],Fy;)Hn(n[y++],u,d);w[a-b]=g+1,S>a?P=!0:S=a,16384&(v=e[a]).flags&&(e[a]=v=G(v)),$e(h,v,u,t,c,s,p,d),++F}else U||Hn(h,u,d);else U||Hn(h,u,d)}if(U)qn(u,f,n,d),fe(e,u,t,c,s,p,d);else if(P){var N=Be(w);for(a=N.length-1,g=k-1;g>=0;g--)0===w[g]?(16384&(v=e[S=g+b]).flags&&(e[S]=v=G(v)),le(v,u,t,c,(m=S+1)0&&x(d.componentWillMove)}else if(F!==k)for(g=k-1;g>=0;g--)0===w[g]&&(16384&(v=e[S=g+b]).flags&&(e[S]=v=G(v)),le(v,u,t,c,(m=S+1)Ie&&(Ie=u,An=new Int32Array(u),Mn=new Int32Array(u));t>1]]0&&(Mn[t]=An[i-1]),An[i]=t)}i=o+1;var c=new Int32Array(i);for(l=An[i-1];i-- >0;)c[i]=l,l=Mn[l],An[i]=0;return c}function Te(n,e,t,r){var o=[],l=new d,u=e.$V;N.v=!0,i(u)?i(n)||(16384&n.flags&&(n=G(n)),le(n,e,r,!1,null,o,l),e.$V=n,u=n):i(n)?(Hn(u,e,l),e.$V=null):(16384&n.flags&&(n=G(n)),$e(u,n,e,r,!1,null,o,l),u=e.$V=n),$(o),w(l.componentDidAppear),N.v=!1,a(t)&&t(),a(W.renderComplete)&&W.renderComplete(u,e)}function Oe(n,e,t,r){void 0===t&&(t=null),void 0===r&&(r=p),Te(n,e,t,r)}"undefined"!==typeof document&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);var Ee=[],Re="undefined"!==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):function(n){window.setTimeout(n,0)},je=!1;function _e(n,e,t,r){var o=n.$PS;if(a(e)&&(e=e(o?s(n.state,o):n.state,n.props,n.context)),i(o))n.$PS=e;else for(var l in e)o[l]=e[l];if(n.$BR)a(t)&&n.$L.push(t.bind(n));else{if(!N.v&&0===Ee.length)return Xe(n,r),void(a(t)&&t.call(n));if(-1===Ee.indexOf(n)&&Ee.push(n),r&&(n.$F=!0),je||(je=!0,Re(Qe)),a(t)){var u=n.$QU;u||(u=n.$QU=[]),u.push(t)}}}function He(n){for(var e=n.$QU,t=0;t0?C(t.componentWillDisappear,D(e,n)):$(e,n,!1)}function x(e,n,t,r,o,l,i,a){e.componentWillMove.push({dom:r,fn:function(){4&i?t.componentWillMove(n,o,r):8&i&&t.onComponentWillMove(n,o,r,a)},next:l,parent:o})}function P(e,n,r,l,i){var a,u,c=n.flags;do{var f=n.flags;if(1521&f)return void(t(a)||!o(a.componentWillMove)&&!o(a.onComponentWillMove)?v(r,n.dom,l):x(i,e,a,n.dom,r,l,c,u));var s=n.children;if(4&f)a=n.children,u=n.props,n=s.$LI;else if(8&f)a=n.ref,u=n.props,n=s;else if(8192&f){if(2!==n.childFlags){for(var d=0,p=s.length;d0,v=i(d),h=l(d)&&d[0]===I;p||v||h?(a=a||o.slice(0,f),(p||h)&&(s=X(s)),(v||h)&&(s.key=I+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=X(o)),u=2;return t.children=a,t.childFlags=u,t}function G(t){if(r(t)||n(t))return O(t,null);if(e(t))return R(t,0,null);return 16384&t.flags?X(t):t}var J="http://www.w3.org/1999/xlink",z="http://www.w3.org/XML/1998/namespace",Q={"xlink:actuate":J,"xlink:arcrole":J,"xlink:href":J,"xlink:role":J,"xlink:show":J,"xlink:title":J,"xlink:type":J,"xml:base":z,"xml:lang":z,"xml:space":z};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),ee=Y(null),ne=Y(!0);function te(e,n){var t=n.$EV;return t||(t=n.$EV=Y(null)),t[e]||1===++Z[e]&&(ee[e]=pe(e)),t}function re(e,n){var t=n.$EV;t&&t[e]&&(0===--Z[e]&&(document.removeEventListener(d(e),ee[e]),ee[e]=null),t[e]=null)}function oe(e,n,t,r){if(o(t))te(e,r)[e]=t;else if(c(t)){if(M(n,t))return;te(e,r)[e]=t}else re(e,r)}function le(e){return o(e.composedPath)?e.composedPath()[0]:e.target}function ie(e,n,t,r){var o=le(e);do{if(n&&o.disabled)return;var l=o.$EV;if(l){var a=l[t];if(a&&(r.dom=o,a.event?a.event(a.data,e):a(e),e.cancelBubble))return}o=o.parentNode}while(!i(o))}function ae(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function ue(){return this.defaultPrevented}function ce(){return this.cancelBubble}function fe(e){var n={dom:document};return e.isDefaultPrevented=ue,e.isPropagationStopped=ce,e.stopPropagation=ae,Object.defineProperty(e,"currentTarget",{configurable:!0,get:function(){return n.dom}}),n}function se(e){return function(n){if(0!==n.button)return void n.stopPropagation();ie(n,!0,e,fe(n))}}function de(e){return function(n){ie(n,!1,e,fe(n))}}function pe(e){var n="onClick"===e||"onDblClick"===e?se(e):de(e);return document.addEventListener(d(e),n),n}function ve(e,n){var t=document.createElement("i");return t.innerHTML=n,t.innerHTML===e.innerHTML}function he(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 me(e,n){var t=function(t){var r=this.$V;if(!r)return;var i=r.props||f,a=r.dom;if(l(e))he(i,e,t);else for(var u=0;u-1&&n.options[i]&&(a=n.options[i].value),r&&t(a)&&(a=e.defaultValue),De(o,a)}}var Ae,Le,Me=me("onInput",Ie),Se=me("onChange");function Ve(e,n){ge(e,"input",Me),n.onChange&&ge(e,"change",Se)}function Ie(e,n,r){var o=e.value,l=n.value;if(t(o)){if(r){var i=e.defaultValue;t(i)||i===l||(n.defaultValue=i,n.value=i)}}else l!==o&&(n.defaultValue=o,n.value=o)}function Ne(e,n,t,r,o,l){64&e?$e(r,t):256&e?We(r,t,o,n):128&e&&Ie(r,t,o),l&&(t.$V=n)}function Ue(e,n,t){64&e?we(n,t):256&e?Pe(n):128&e&&Ve(n,t)}function Te(e){return e.type&&ke(e.type)?!t(e.checked):!t(e.value)}function Be(e){e&&!V(e,null)&&e.current&&(e.current=null)}function Ee(e,n,t){e&&(o(e)||void 0!==e.current)&&t.push((function(){V(e,n)||void 0===e.current||(e.current=n)}))}function He(e,n,t){Oe(e,t),F(e,n,t)}function Oe(e,n){var r,l=e.flags,a=e.children;if(481&l){r=e.ref;var u=e.props;Be(r);var c=e.childFlags;if(!i(u))for(var d=Object.keys(u),p=0,v=d.length;p0?C(t.componentWillDisappear,je(n,e)):e.textContent=""}function _e(e,n,t,r){Re(t,r),8192&n.flags?F(n,e,r):Xe(e,t,r)}function Ke(e,n,t,r,o){e.componentWillDisappear.push((function(e){4&r?n.componentWillDisappear(t,e):8&r&&n.onComponentWillDisappear(t,o,e)}))}function qe(e){var n=e.event;return function(t){n(e.data,t)}}function Ge(e,n,t,r){if(c(t)){if(M(n,t))return;t=qe(t)}ge(r,d(e),t)}function Je(e,n,r){if(t(n))return void r.removeAttribute("style");var o,i,a=r.style;if(l(n))return void(a.cssText=n);if(t(e)||l(e))for(o in n)i=n[o],a.setProperty(o,i);else{for(o in n)(i=n[o])!==e[o]&&a.setProperty(o,i);for(o in e)t(n[o])&&a.removeProperty(o)}}function ze(e,n,r,o,l){var a=e&&e.__html||"",u=n&&n.__html||"";a!==u&&(t(u)||ve(o,u)||(i(r)||(12&r.childFlags?Re(r.children,l):2===r.childFlags&&Oe(r.children,l),r.children=null,r.childFlags=1),o.innerHTML=u))}function Qe(e,n,r,o,l,i,a,u){switch(e){case"children":case"childrenType":case"className":case"defaultValue":case"key":case"multiple":case"ref":case"selectedIndex":break;case"autoFocus":o.autofocus=!!r;break;case"allowfullscreen":case"autoplay":case"capture":case"checked":case"controls":case"default":case"disabled":case"hidden":case"indeterminate":case"loop":case"muted":case"novalidate":case"open":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"selected":o[e]=!!r;break;case"defaultChecked":case"value":case"volume":if(i&&"value"===e)break;var c=t(r)?"":r;o[e]!==c&&(o[e]=c);break;case"style":Je(n,r,o);break;case"dangerouslySetInnerHTML":ze(n,r,a,o,u);break;default:ne[e]?oe(e,n,r,o):111===e.charCodeAt(0)&&110===e.charCodeAt(1)?Ge(e,n,r,o):t(r)?o.removeAttribute(e):l&&Q[e]?o.setAttributeNS(Q[e],e,r):o.setAttribute(e,r)}}function Ye(e,n,t,r,o,l){var i=!1,a=(448&n)>0;for(var u in a&&(i=Te(t))&&Ue(n,r,t),t)Qe(u,null,t[u],r,o,i,null,l);a&&Ne(n,e,r,t,!0,i)}function Ze(e,n,t){var r=G(e.render(n,e.state,t)),l=t;return o(e.getChildContext)&&(l=a(t,e.getChildContext())),e.$CX=l,r}function en(e,n,t,r,l,a){var u=new n(t,r),c=u.$N=Boolean(n.getDerivedStateFromProps||u.getSnapshotBeforeUpdate);if(u.$SVG=l,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(!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=Ze(u,t,r),u}function nn(e,n){var t=e.props||f;return 32768&e.flags?e.type.render(t,e.ref,n):e.type(t,n)}function tn(e,n,t,r,o,l,i){var a=e.flags|=16384;481&a?an(e,n,t,r,o,l,i):4&a?cn(e,n,t,r,o,l,i):8&a?fn(e,n,t,r,o,l,i):16&a?ln(e,n,o):8192&a?on(e,t,n,r,o,l,i):1024&a&&rn(e,t,n,o,l,i)}function rn(e,n,t,r,o,l){tn(e.children,e.ref,n,!1,null,o,l);var i=_();ln(i,t,r),e.dom=i.dom}function on(e,n,t,r,o,l,i){var a=e.children,u=e.childFlags;12&u&&0===a.length&&(u=e.childFlags=2,a=e.children=_()),2===u?tn(a,t,n,r,o,l,i):un(a,t,n,r,o,l,i)}function ln(e,n,t){var r=e.dom=document.createTextNode(e.children);i(n)||v(n,r,t)}function an(e,n,r,o,l,a,u){var c=e.flags,f=e.props,s=e.className,d=e.childFlags,p=e.dom=h(e.type,o=o||(32&c)>0),m=e.children;if(t(s)||""===s||(o?p.setAttribute("class",s):p.className=s),16===d)L(p,m);else if(1!==d){var g=o&&"foreignObject"!==e.type;2===d?(16384&m.flags&&(e.children=m=X(m)),tn(m,p,r,g,null,a,u)):8!==d&&4!==d||un(m,p,r,g,null,a,u)}i(n)||v(n,p,l),i(f)||Ye(e,c,f,p,o,u),Ee(e.ref,p,a)}function un(e,n,t,r,o,l,i){for(var a=0;ap)&&(s=y(a[p-1],!1).nextSibling)}Dn(c,f,a,u,t,r,o,s,e,l,i)}function Cn(e,n,t,o,l){var i=e.ref,a=n.ref,u=n.children;if(Dn(e.childFlags,n.childFlags,e.children,u,i,t,!1,null,e,o,l),n.dom=e.dom,i!==a&&!r(u)){var c=u.dom;g(i,c),p(a,c)}}function wn(e,n,r,o,l,i,a){var u,c=n.dom=e.dom,s=e.props,d=n.props,p=!1,v=!1;if(o=o||(32&l)>0,s!==d){var h=s||f;if((u=d||f)!==f)for(var m in(p=(448&l)>0)&&(v=Te(u)),u){var g=h[m],k=u[m];g!==k&&Qe(m,g,k,c,o,v,e,a)}if(h!==f)for(var b in h)t(u[b])&&!t(h[b])&&Qe(b,h[b],null,c,o,v,e,a)}var y=n.children,C=n.className;e.className!==C&&(t(C)?c.removeAttribute("class"):o?c.setAttribute("class",C):c.className=C),4096&l?bn(c,y):Dn(e.childFlags,n.childFlags,e.children,y,c,r,o&&"foreignObject"!==n.type,null,e,i,a),p&&Ne(l,n,c,u,!1,v);var w=n.ref,$=e.ref;$!==w&&(Be($),Ee(w,c,i))}function $n(e,n,t,r,o,l,i){Oe(e,i),un(n,t,r,o,y(e,!0),l,i),F(e,t,i)}function Dn(e,n,t,r,o,l,i,a,u,c,f){switch(e){case 2:switch(n){case 2:gn(t,r,o,l,i,a,c,f);break;case 1:He(t,o,f);break;case 16:Oe(t,f),L(o,r);break;default:$n(t,r,o,l,i,c,f)}break;case 1:switch(n){case 2:tn(r,o,l,i,a,c,f);break;case 1:break;case 16:L(o,r);break;default:un(r,o,l,i,a,c,f)}break;case 16:switch(n){case 16:kn(t,r,o);break;case 2:Xe(o,t,f),tn(r,o,l,i,a,c,f);break;case 1:Xe(o,t,f);break;default:Xe(o,t,f),un(r,o,l,i,a,c,f)}break;default:switch(n){case 16:Re(t,f),L(o,r);break;case 2:_e(o,u,t,f),tn(r,o,l,i,a,c,f);break;case 1:_e(o,u,t,f);break;default:var s=0|t.length,d=0|r.length;0===s?d>0&&un(r,o,l,i,a,c,f):0===d?_e(o,u,t,f):8===n&&8===e?Mn(t,r,o,l,i,s,d,a,u,c,f):Ln(t,r,o,l,i,s,d,a,c,f)}}}function Fn(e,n,t,r,o){o.push((function(){e.componentDidUpdate(n,t,r)}))}function xn(e,n,t,r,l,i,u,c,f,s){var d=e.state,p=e.props,v=Boolean(e.$N),h=o(e.shouldComponentUpdate);if(v&&(n=W(e,t,n!==d?a(d,n):n)),u||!h||h&&e.shouldComponentUpdate(t,n,l)){!v&&o(e.componentWillUpdate)&&e.componentWillUpdate(t,n,l),e.props=t,e.state=n,e.context=l;var m=null,g=Ze(e,t,l);v&&o(e.getSnapshotBeforeUpdate)&&(m=e.getSnapshotBeforeUpdate(p,d)),gn(e.$LI,g,r,e.$CX,i,c,f,s),e.$LI=g,o(e.componentDidUpdate)&&Fn(e,p,d,m,f)}else e.props=t,e.state=n,e.context=l}function Pn(e,n,t,r,l,u,c,s){var d=n.children=e.children;if(i(d))return;d.$L=c;var p=n.props||f,v=n.ref,h=e.ref,m=d.state;if(!d.$N){if(o(d.componentWillReceiveProps)){if(d.$BR=!0,d.componentWillReceiveProps(p,r),d.$UN)return;d.$BR=!1}i(d.$PS)||(m=a(m,d.$PS),d.$PS=null)}xn(d,m,p,t,r,l,!1,u,c,s),h!==v&&(Be(h),Ee(v,d,c))}function Wn(e,n,r,l,i,a,u,c){var s=!0,d=n.props||f,p=n.ref,v=e.props,h=!t(p),m=e.children;if(h&&o(p.onComponentShouldUpdate)&&(s=p.onComponentShouldUpdate(v,d)),!1!==s){h&&o(p.onComponentWillUpdate)&&p.onComponentWillUpdate(v,d);var g=G(nn(n,l));gn(m,g,r,l,i,a,u,c),n.children=g,h&&o(p.onComponentDidUpdate)&&p.onComponentDidUpdate(v,d)}else n.children=m}function An(e,n){var t=n.children,r=n.dom=e.dom;t!==e.children&&(r.nodeValue=t)}function Ln(e,n,t,r,o,l,i,a,u,c){for(var f,s,d=l>i?i:l,p=0;pi)for(p=d;pp||h>v)break e;m=e[h],g=n[h]}for(m=e[p],g=n[v];m.key===g.key;){if(16384&g.flags&&(n[v]=g=X(g)),gn(m,g,t,r,o,a,c,f),e[p]=g,v--,h>--p||h>v)break e;m=e[p],g=n[v]}}if(h>p){if(h<=v)for(d=(s=v+1)v)for(;h<=p;)He(e[h++],t,f);else Sn(e,n,r,l,i,p,v,h,t,o,a,u,c,f)}function Sn(e,n,t,r,o,l,i,a,u,c,f,s,d,p){var v,h,m=0,g=0,k=a,b=a,C=l-a+1,$=i-a+1,D=new Int32Array($+1),F=C===r,x=!1,W=0,A=0;if(o<4||(C|$)<32)for(g=k;g<=l;++g)if(v=e[g],A<$){for(a=b;a<=i;a++)if(h=n[a],v.key===h.key){if(D[a-b]=g+1,F)for(F=!1;ka?x=!0:W=a,16384&h.flags&&(n[a]=h=X(h)),gn(v,h,u,t,c,f,d,p),++A;break}!F&&a>i&&He(v,u,p)}else F||He(v,u,p);else{var L={};for(g=b;g<=i;++g)L[n[g].key]=g;for(g=k;g<=l;++g)if(v=e[g],A<$)if(void 0!==(a=L[v.key])){if(F)for(F=!1;g>k;)He(e[k++],u,p);D[a-b]=g+1,W>a?x=!0:W=a,16384&(h=n[a]).flags&&(n[a]=h=X(h)),gn(v,h,u,t,c,f,d,p),++A}else F||He(v,u,p);else F||He(v,u,p)}if(F)_e(u,s,e,p),un(n,u,t,c,f,d,p);else if(x){var M=In(D);for(a=M.length-1,g=$-1;g>=0;g--)0===D[g]?(16384&(h=n[W=g+b]).flags&&(n[W]=h=X(h)),tn(h,u,t,c,(m=W+1)0&&w(p.componentWillMove)}else if(A!==$)for(g=$-1;g>=0;g--)0===D[g]&&(16384&(h=n[W=g+b]).flags&&(n[W]=h=X(h)),tn(h,u,t,c,(m=W+1)Vn&&(Vn=u,Ae=new Int32Array(u),Le=new Int32Array(u));t>1]]0&&(Le[t]=Ae[l-1]),Ae[l]=t)}l=o+1;var c=new Int32Array(l);for(i=Ae[l-1];l-- >0;)c[l]=i,i=Le[i],Ae[l]=0;return c}function Nn(e,n,r,l){var i=[],a=new s,u=n.$V;t(u)?t(e)||(16384&e.flags&&(e=X(e)),tn(e,n,l,!1,null,i,a),n.$V=e,u=e):t(e)?(He(u,n,a),n.$V=null):(16384&e.flags&&(e=X(e)),gn(u,e,n,l,!1,null,i,a),u=n.$V=e),k(i),C(a.componentDidAppear),o(r)&&r(),o(A.renderComplete)&&A.renderComplete(u,n)}function Un(e,n,t,r){void 0===t&&(t=null),void 0===r&&(r=f),Nn(e,n,t,r)}"undefined"!==typeof document&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null),"undefined"!==typeof Promise&&Promise.resolve().then.bind(Promise.resolve()),uibench.init("Inferno","8.2.0");var Tn={onComponentShouldUpdate:function(e,n){return e!==n}};function Bn(e){return U(1,"li","TreeLeaf",e.children,16,null,null,null)}function En(e){for(var n=e.data,t=n.children.length,r=new Array(t),o=0;o0?C(t.componentWillDisappear,D(e,n)):$(e,n,!1)}function x(e,n,t,r,o,l,i,a){e.componentWillMove.push({dom:r,fn:function(){4&i?t.componentWillMove(n,o,r):8&i&&t.onComponentWillMove(n,o,r,a)},next:l,parent:o})}function P(e,n,r,l,i){var a,u,c=n.flags;do{var f=n.flags;if(1521&f)return void(t(a)||!o(a.componentWillMove)&&!o(a.onComponentWillMove)?v(r,n.dom,l):x(i,e,a,n.dom,r,l,c,u));var s=n.children;if(4&f)a=n.children,u=n.props,n=s.$LI;else if(8&f)a=n.ref,u=n.props,n=s;else if(8192&f){if(2!==n.childFlags){for(var d=0,p=s.length;d0,v=i(d),h=l(d)&&d[0]===I;p||v||h?(a=a||o.slice(0,f),(p||h)&&(s=X(s)),(v||h)&&(s.key=I+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=X(o)),u=2;return t.children=a,t.childFlags=u,t}function G(t){if(r(t)||n(t))return O(t,null);if(e(t))return R(t,0,null);return 16384&t.flags?X(t):t}var J="http://www.w3.org/1999/xlink",z="http://www.w3.org/XML/1998/namespace",Q={"xlink:actuate":J,"xlink:arcrole":J,"xlink:href":J,"xlink:role":J,"xlink:show":J,"xlink:title":J,"xlink:type":J,"xml:base":z,"xml:lang":z,"xml:space":z};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),ee=Y(null),ne=Y(!0);function te(e,n){var t=n.$EV;return t||(t=n.$EV=Y(null)),t[e]||1===++Z[e]&&(ee[e]=pe(e)),t}function re(e,n){var t=n.$EV;t&&t[e]&&(0===--Z[e]&&(document.removeEventListener(d(e),ee[e]),ee[e]=null),t[e]=null)}function oe(e,n,t,r){if(o(t))te(e,r)[e]=t;else if(c(t)){if(M(n,t))return;te(e,r)[e]=t}else re(e,r)}function le(e){return o(e.composedPath)?e.composedPath()[0]:e.target}function ie(e,n,t,r){var o=le(e);do{if(n&&o.disabled)return;var l=o.$EV;if(l){var a=l[t];if(a&&(r.dom=o,a.event?a.event(a.data,e):a(e),e.cancelBubble))return}o=o.parentNode}while(!i(o))}function ae(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function ue(){return this.defaultPrevented}function ce(){return this.cancelBubble}function fe(e){var n={dom:document};return e.isDefaultPrevented=ue,e.isPropagationStopped=ce,e.stopPropagation=ae,Object.defineProperty(e,"currentTarget",{configurable:!0,get:function(){return n.dom}}),n}function se(e){return function(n){if(0!==n.button)return void n.stopPropagation();ie(n,!0,e,fe(n))}}function de(e){return function(n){ie(n,!1,e,fe(n))}}function pe(e){var n="onClick"===e||"onDblClick"===e?se(e):de(e);return document.addEventListener(d(e),n),n}function ve(e,n){var t=document.createElement("i");return t.innerHTML=n,t.innerHTML===e.innerHTML}function he(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 me(e,n){var t=function(t){var r=this.$V;if(!r)return;var i=r.props||f,a=r.dom;if(l(e))he(i,e,t);else for(var u=0;u-1&&n.options[i]&&(a=n.options[i].value),r&&t(a)&&(a=e.defaultValue),De(o,a)}}var Ae,Le,Me=me("onInput",Ie),Se=me("onChange");function Ve(e,n){ge(e,"input",Me),n.onChange&&ge(e,"change",Se)}function Ie(e,n,r){var o=e.value,l=n.value;if(t(o)){if(r){var i=e.defaultValue;t(i)||i===l||(n.defaultValue=i,n.value=i)}}else l!==o&&(n.defaultValue=o,n.value=o)}function Ne(e,n,t,r,o,l){64&e?$e(r,t):256&e?We(r,t,o,n):128&e&&Ie(r,t,o),l&&(t.$V=n)}function Ue(e,n,t){64&e?we(n,t):256&e?Pe(n):128&e&&Ve(n,t)}function Te(e){return e.type&&ke(e.type)?!t(e.checked):!t(e.value)}function Be(e){e&&!V(e,null)&&e.current&&(e.current=null)}function Ee(e,n,t){e&&(o(e)||void 0!==e.current)&&t.push((function(){V(e,n)||void 0===e.current||(e.current=n)}))}function He(e,n,t){Oe(e,t),F(e,n,t)}function Oe(e,n){var r,l=e.flags,a=e.children;if(481&l){r=e.ref;var u=e.props;Be(r);var c=e.childFlags;if(!i(u))for(var d=Object.keys(u),p=0,v=d.length;p0?C(t.componentWillDisappear,je(n,e)):e.textContent=""}function _e(e,n,t,r){Re(t,r),8192&n.flags?F(n,e,r):Xe(e,t,r)}function Ke(e,n,t,r,o){e.componentWillDisappear.push((function(e){4&r?n.componentWillDisappear(t,e):8&r&&n.onComponentWillDisappear(t,o,e)}))}function qe(e){var n=e.event;return function(t){n(e.data,t)}}function Ge(e,n,t,r){if(c(t)){if(M(n,t))return;t=qe(t)}ge(r,d(e),t)}function Je(e,n,r){if(t(n))return void r.removeAttribute("style");var o,i,a=r.style;if(l(n))return void(a.cssText=n);if(t(e)||l(e))for(o in n)i=n[o],a.setProperty(o,i);else{for(o in n)(i=n[o])!==e[o]&&a.setProperty(o,i);for(o in e)t(n[o])&&a.removeProperty(o)}}function ze(e,n,r,o,l){var a=e&&e.__html||"",u=n&&n.__html||"";a!==u&&(t(u)||ve(o,u)||(i(r)||(12&r.childFlags?Re(r.children,l):2===r.childFlags&&Oe(r.children,l),r.children=null,r.childFlags=1),o.innerHTML=u))}function Qe(e,n,r,o,l,i,a,u){switch(e){case"children":case"childrenType":case"className":case"defaultValue":case"key":case"multiple":case"ref":case"selectedIndex":break;case"autoFocus":o.autofocus=!!r;break;case"allowfullscreen":case"autoplay":case"capture":case"checked":case"controls":case"default":case"disabled":case"hidden":case"indeterminate":case"loop":case"muted":case"novalidate":case"open":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"selected":o[e]=!!r;break;case"defaultChecked":case"value":case"volume":if(i&&"value"===e)break;var c=t(r)?"":r;o[e]!==c&&(o[e]=c);break;case"style":Je(n,r,o);break;case"dangerouslySetInnerHTML":ze(n,r,a,o,u);break;default:ne[e]?oe(e,n,r,o):111===e.charCodeAt(0)&&110===e.charCodeAt(1)?Ge(e,n,r,o):t(r)?o.removeAttribute(e):l&&Q[e]?o.setAttributeNS(Q[e],e,r):o.setAttribute(e,r)}}function Ye(e,n,t,r,o,l){var i=!1,a=(448&n)>0;for(var u in a&&(i=Te(t))&&Ue(n,r,t),t)Qe(u,null,t[u],r,o,i,null,l);a&&Ne(n,e,r,t,!0,i)}function Ze(e,n,t){var r=G(e.render(n,e.state,t)),l=t;return o(e.getChildContext)&&(l=a(t,e.getChildContext())),e.$CX=l,r}function en(e,n,t,r,l,a){var u=new n(t,r),c=u.$N=Boolean(n.getDerivedStateFromProps||u.getSnapshotBeforeUpdate);if(u.$SVG=l,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(!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=Ze(u,t,r),u}function nn(e,n){var t=e.props||f;return 32768&e.flags?e.type.render(t,e.ref,n):e.type(t,n)}function tn(e,n,t,r,o,l,i){var a=e.flags|=16384;481&a?an(e,n,t,r,o,l,i):4&a?cn(e,n,t,r,o,l,i):8&a?fn(e,n,t,r,o,l,i):16&a?ln(e,n,o):8192&a?on(e,t,n,r,o,l,i):1024&a&&rn(e,t,n,o,l,i)}function rn(e,n,t,r,o,l){tn(e.children,e.ref,n,!1,null,o,l);var i=_();ln(i,t,r),e.dom=i.dom}function on(e,n,t,r,o,l,i){var a=e.children,u=e.childFlags;12&u&&0===a.length&&(u=e.childFlags=2,a=e.children=_()),2===u?tn(a,t,n,r,o,l,i):un(a,t,n,r,o,l,i)}function ln(e,n,t){var r=e.dom=document.createTextNode(e.children);i(n)||v(n,r,t)}function an(e,n,r,o,l,a,u){var c=e.flags,f=e.props,s=e.className,d=e.childFlags,p=e.dom=h(e.type,o=o||(32&c)>0),m=e.children;if(t(s)||""===s||(o?p.setAttribute("class",s):p.className=s),16===d)L(p,m);else if(1!==d){var g=o&&"foreignObject"!==e.type;2===d?(16384&m.flags&&(e.children=m=X(m)),tn(m,p,r,g,null,a,u)):8!==d&&4!==d||un(m,p,r,g,null,a,u)}i(n)||v(n,p,l),i(f)||Ye(e,c,f,p,o,u),Ee(e.ref,p,a)}function un(e,n,t,r,o,l,i){for(var a=0;ap)&&(s=y(a[p-1],!1).nextSibling)}Dn(c,f,a,u,t,r,o,s,e,l,i)}function Cn(e,n,t,o,l){var i=e.ref,a=n.ref,u=n.children;if(Dn(e.childFlags,n.childFlags,e.children,u,i,t,!1,null,e,o,l),n.dom=e.dom,i!==a&&!r(u)){var c=u.dom;g(i,c),p(a,c)}}function wn(e,n,r,o,l,i,a){var u,c=n.dom=e.dom,s=e.props,d=n.props,p=!1,v=!1;if(o=o||(32&l)>0,s!==d){var h=s||f;if((u=d||f)!==f)for(var m in(p=(448&l)>0)&&(v=Te(u)),u){var g=h[m],k=u[m];g!==k&&Qe(m,g,k,c,o,v,e,a)}if(h!==f)for(var b in h)t(u[b])&&!t(h[b])&&Qe(b,h[b],null,c,o,v,e,a)}var y=n.children,C=n.className;e.className!==C&&(t(C)?c.removeAttribute("class"):o?c.setAttribute("class",C):c.className=C),4096&l?bn(c,y):Dn(e.childFlags,n.childFlags,e.children,y,c,r,o&&"foreignObject"!==n.type,null,e,i,a),p&&Ne(l,n,c,u,!1,v);var w=n.ref,$=e.ref;$!==w&&(Be($),Ee(w,c,i))}function $n(e,n,t,r,o,l,i){Oe(e,i),un(n,t,r,o,y(e,!0),l,i),F(e,t,i)}function Dn(e,n,t,r,o,l,i,a,u,c,f){switch(e){case 2:switch(n){case 2:gn(t,r,o,l,i,a,c,f);break;case 1:He(t,o,f);break;case 16:Oe(t,f),L(o,r);break;default:$n(t,r,o,l,i,c,f)}break;case 1:switch(n){case 2:tn(r,o,l,i,a,c,f);break;case 1:break;case 16:L(o,r);break;default:un(r,o,l,i,a,c,f)}break;case 16:switch(n){case 16:kn(t,r,o);break;case 2:Xe(o,t,f),tn(r,o,l,i,a,c,f);break;case 1:Xe(o,t,f);break;default:Xe(o,t,f),un(r,o,l,i,a,c,f)}break;default:switch(n){case 16:Re(t,f),L(o,r);break;case 2:_e(o,u,t,f),tn(r,o,l,i,a,c,f);break;case 1:_e(o,u,t,f);break;default:var s=0|t.length,d=0|r.length;0===s?d>0&&un(r,o,l,i,a,c,f):0===d?_e(o,u,t,f):8===n&&8===e?Mn(t,r,o,l,i,s,d,a,u,c,f):Ln(t,r,o,l,i,s,d,a,c,f)}}}function Fn(e,n,t,r,o){o.push((function(){e.componentDidUpdate(n,t,r)}))}function xn(e,n,t,r,l,i,u,c,f,s){var d=e.state,p=e.props,v=Boolean(e.$N),h=o(e.shouldComponentUpdate);if(v&&(n=W(e,t,n!==d?a(d,n):n)),u||!h||h&&e.shouldComponentUpdate(t,n,l)){!v&&o(e.componentWillUpdate)&&e.componentWillUpdate(t,n,l),e.props=t,e.state=n,e.context=l;var m=null,g=Ze(e,t,l);v&&o(e.getSnapshotBeforeUpdate)&&(m=e.getSnapshotBeforeUpdate(p,d)),gn(e.$LI,g,r,e.$CX,i,c,f,s),e.$LI=g,o(e.componentDidUpdate)&&Fn(e,p,d,m,f)}else e.props=t,e.state=n,e.context=l}function Pn(e,n,t,r,l,u,c,s){var d=n.children=e.children;if(i(d))return;d.$L=c;var p=n.props||f,v=n.ref,h=e.ref,m=d.state;if(!d.$N){if(o(d.componentWillReceiveProps)){if(d.$BR=!0,d.componentWillReceiveProps(p,r),d.$UN)return;d.$BR=!1}i(d.$PS)||(m=a(m,d.$PS),d.$PS=null)}xn(d,m,p,t,r,l,!1,u,c,s),h!==v&&(Be(h),Ee(v,d,c))}function Wn(e,n,r,l,i,a,u,c){var s=!0,d=n.props||f,p=n.ref,v=e.props,h=!t(p),m=e.children;if(h&&o(p.onComponentShouldUpdate)&&(s=p.onComponentShouldUpdate(v,d)),!1!==s){h&&o(p.onComponentWillUpdate)&&p.onComponentWillUpdate(v,d);var g=G(nn(n,l));gn(m,g,r,l,i,a,u,c),n.children=g,h&&o(p.onComponentDidUpdate)&&p.onComponentDidUpdate(v,d)}else n.children=m}function An(e,n){var t=n.children,r=n.dom=e.dom;t!==e.children&&(r.nodeValue=t)}function Ln(e,n,t,r,o,l,i,a,u,c){for(var f,s,d=l>i?i:l,p=0;pi)for(p=d;pp||h>v)break e;m=e[h],g=n[h]}for(m=e[p],g=n[v];m.key===g.key;){if(16384&g.flags&&(n[v]=g=X(g)),gn(m,g,t,r,o,a,c,f),e[p]=g,v--,h>--p||h>v)break e;m=e[p],g=n[v]}}if(h>p){if(h<=v)for(d=(s=v+1)v)for(;h<=p;)He(e[h++],t,f);else Sn(e,n,r,l,i,p,v,h,t,o,a,u,c,f)}function Sn(e,n,t,r,o,l,i,a,u,c,f,s,d,p){var v,h,m=0,g=0,k=a,b=a,C=l-a+1,$=i-a+1,D=new Int32Array($+1),F=C===r,x=!1,W=0,A=0;if(o<4||(C|$)<32)for(g=k;g<=l;++g)if(v=e[g],A<$){for(a=b;a<=i;a++)if(h=n[a],v.key===h.key){if(D[a-b]=g+1,F)for(F=!1;ka?x=!0:W=a,16384&h.flags&&(n[a]=h=X(h)),gn(v,h,u,t,c,f,d,p),++A;break}!F&&a>i&&He(v,u,p)}else F||He(v,u,p);else{var L={};for(g=b;g<=i;++g)L[n[g].key]=g;for(g=k;g<=l;++g)if(v=e[g],A<$)if(void 0!==(a=L[v.key])){if(F)for(F=!1;g>k;)He(e[k++],u,p);D[a-b]=g+1,W>a?x=!0:W=a,16384&(h=n[a]).flags&&(n[a]=h=X(h)),gn(v,h,u,t,c,f,d,p),++A}else F||He(v,u,p);else F||He(v,u,p)}if(F)_e(u,s,e,p),un(n,u,t,c,f,d,p);else if(x){var M=In(D);for(a=M.length-1,g=$-1;g>=0;g--)0===D[g]?(16384&(h=n[W=g+b]).flags&&(n[W]=h=X(h)),tn(h,u,t,c,(m=W+1)0&&w(p.componentWillMove)}else if(A!==$)for(g=$-1;g>=0;g--)0===D[g]&&(16384&(h=n[W=g+b]).flags&&(n[W]=h=X(h)),tn(h,u,t,c,(m=W+1)Vn&&(Vn=u,Ae=new Int32Array(u),Le=new Int32Array(u));t>1]]0&&(Le[t]=Ae[l-1]),Ae[l]=t)}l=o+1;var c=new Int32Array(l);for(i=Ae[l-1];l-- >0;)c[l]=i,i=Le[i],Ae[l]=0;return c}function Nn(e,n,r,l){var i=[],a=new s,u=n.$V;t(u)?t(e)||(16384&e.flags&&(e=X(e)),tn(e,n,l,!1,null,i,a),n.$V=e,u=e):t(e)?(He(u,n,a),n.$V=null):(16384&e.flags&&(e=X(e)),gn(u,e,n,l,!1,null,i,a),u=n.$V=e),k(i),C(a.componentDidAppear),o(r)&&r(),o(A.renderComplete)&&A.renderComplete(u,n)}function Un(e,n,t,r){void 0===t&&(t=null),void 0===r&&(r=f),Nn(e,n,t,r)}"undefined"!==typeof document&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null),"undefined"!==typeof Promise&&Promise.resolve().then.bind(Promise.resolve()),uibench.init("Inferno","8.2.1");var Tn={onComponentShouldUpdate:function(e,n){return e!==n}};function Bn(e){return U(1,"li","TreeLeaf",e.children,16,null,null,null)}function En(e){for(var n=e.data,t=n.children.length,r=new Array(t),o=0;o (https://terinstock.com/)", @@ -28,11 +28,11 @@ "directory": "packages/inferno-hyperscript" }, "dependencies": { - "inferno": "8.2.0" + "inferno": "8.2.1" }, "devDependencies": { - "inferno-shared": "8.2.0", - "inferno-vnode-flags": "8.2.0" + "inferno-shared": "8.2.1", + "inferno-vnode-flags": "8.2.1" }, "rollup": { "bundledDependencies": [ diff --git a/packages/inferno-mobx/package.json b/packages/inferno-mobx/package.json index 34710aa85..ba8fbadb7 100644 --- a/packages/inferno-mobx/package.json +++ b/packages/inferno-mobx/package.json @@ -1,6 +1,6 @@ { "name": "inferno-mobx", - "version": "8.2.0", + "version": "8.2.1", "license": "MIT", "description": "Official Inferno bindings for Mobx", "author": { @@ -40,13 +40,13 @@ }, "dependencies": { "hoist-non-inferno-statics": "^1.1.3", - "inferno": "8.2.0" + "inferno": "8.2.1" }, "devDependencies": { - "inferno-create-class": "8.2.0", - "inferno-create-element": "8.2.0", - "inferno-shared": "8.2.0", - "inferno-vnode-flags": "8.2.0", + "inferno-create-class": "8.2.1", + "inferno-create-element": "8.2.1", + "inferno-shared": "8.2.1", + "inferno-vnode-flags": "8.2.1", "mobx": "*" }, "rollup": { diff --git a/packages/inferno-redux/package.json b/packages/inferno-redux/package.json index b9bb9b7f1..1d2d4d865 100644 --- a/packages/inferno-redux/package.json +++ b/packages/inferno-redux/package.json @@ -1,6 +1,6 @@ { "name": "inferno-redux", - "version": "8.2.0", + "version": "8.2.1", "license": "MIT", "description": "Official Inferno bindings for Redux", "author": { @@ -40,12 +40,12 @@ }, "dependencies": { "hoist-non-inferno-statics": "^1.1.3", - "inferno": "8.2.0" + "inferno": "8.2.1" }, "devDependencies": { - "inferno-create-class": "8.2.0", - "inferno-create-element": "8.2.0", - "inferno-shared": "8.2.0", + "inferno-create-class": "8.2.1", + "inferno-create-element": "8.2.1", + "inferno-shared": "8.2.1", "redux": "^4" }, "rollup": { diff --git a/packages/inferno-router/package.json b/packages/inferno-router/package.json index b48fa6a1f..6d87ce207 100644 --- a/packages/inferno-router/package.json +++ b/packages/inferno-router/package.json @@ -1,6 +1,6 @@ { "name": "inferno-router", - "version": "8.2.0", + "version": "8.2.1", "license": "MIT", "description": "Provides routing functionality for Inferno", "author": { @@ -42,12 +42,12 @@ "dependencies": { "history": "^5.3.0", "hoist-non-inferno-statics": "^1.1.3", - "inferno": "8.2.0", + "inferno": "8.2.1", "path-to-regexp-es6": "1.7.0" }, "devDependencies": { - "inferno-server": "8.2.0", - "inferno-vnode-flags": "8.2.0", + "inferno-server": "8.2.1", + "inferno-vnode-flags": "8.2.1", "mobx": "*" }, "rollup": { diff --git a/packages/inferno-server/package.json b/packages/inferno-server/package.json index f002df18f..a8417c5a2 100644 --- a/packages/inferno-server/package.json +++ b/packages/inferno-server/package.json @@ -1,6 +1,6 @@ { "name": "inferno-server", - "version": "8.2.0", + "version": "8.2.1", "license": "MIT", "description": "Provides methods to render HTML strings from Inferno elements", "author": { @@ -45,15 +45,15 @@ "node": ">=8" }, "devDependencies": { - "inferno-create-class": "8.2.0", - "inferno-create-element": "8.2.0", - "inferno-hydrate": "8.2.0", - "inferno-shared": "8.2.0", - "inferno-vnode-flags": "8.2.0", + "inferno-create-class": "8.2.1", + "inferno-create-element": "8.2.1", + "inferno-hydrate": "8.2.1", + "inferno-shared": "8.2.1", + "inferno-vnode-flags": "8.2.1", "mobx": "*" }, "dependencies": { - "inferno": "8.2.0" + "inferno": "8.2.1" }, "rollup": { "bundledDependencies": [ diff --git a/packages/inferno-shared/package.json b/packages/inferno-shared/package.json index 7a34b589d..93180aa49 100644 --- a/packages/inferno-shared/package.json +++ b/packages/inferno-shared/package.json @@ -1,6 +1,6 @@ { "name": "inferno-shared", - "version": "8.2.0", + "version": "8.2.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 ef3c76115..bfcb98cae 100644 --- a/packages/inferno-test-utils/package.json +++ b/packages/inferno-test-utils/package.json @@ -1,6 +1,6 @@ { "name": "inferno-test-utils", - "version": "8.2.0", + "version": "8.2.1", "license": "MIT", "description": "Suite of utilities for testing Inferno applications", "author": { @@ -21,11 +21,11 @@ "utils" ], "devDependencies": { - "inferno-shared": "8.2.0", - "inferno-vnode-flags": "8.2.0" + "inferno-shared": "8.2.1", + "inferno-vnode-flags": "8.2.1" }, "dependencies": { - "inferno": "8.2.0" + "inferno": "8.2.1" }, "rollup": { "bundledDependencies": [ diff --git a/packages/inferno-utils/package.json b/packages/inferno-utils/package.json index c81693516..1650f15af 100644 --- a/packages/inferno-utils/package.json +++ b/packages/inferno-utils/package.json @@ -1,6 +1,6 @@ { "name": "inferno-utils", - "version": "8.2.0", + "version": "8.2.1", "description": "Meta test utilities which are not for userland", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" @@ -11,8 +11,8 @@ "directory": "packages/inferno-utils" }, "devDependencies": { - "inferno-shared": "8.2.0", - "inferno-vnode-flags": "8.2.0" + "inferno-shared": "8.2.1", + "inferno-vnode-flags": "8.2.1" }, "keywords": [], "author": "", diff --git a/packages/inferno-vnode-flags/package.json b/packages/inferno-vnode-flags/package.json index 81e388b98..8d2f37321 100644 --- a/packages/inferno-vnode-flags/package.json +++ b/packages/inferno-vnode-flags/package.json @@ -1,6 +1,6 @@ { "name": "inferno-vnode-flags", - "version": "8.2.0", + "version": "8.2.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 4dc08e681..91ab398d7 100644 --- a/packages/inferno/package.json +++ b/packages/inferno/package.json @@ -1,6 +1,6 @@ { "name": "inferno", - "version": "8.2.0", + "version": "8.2.1", "license": "MIT", "description": "An extremely fast, React-like JavaScript library for building modern user interfaces", "author": { @@ -61,12 +61,12 @@ "directory": "packages/inferno" }, "devDependencies": { - "inferno-shared": "8.2.0", - "inferno-utils": "8.2.0" + "inferno-shared": "8.2.1", + "inferno-utils": "8.2.1" }, "dependencies": { "csstype": "^3.1.1", - "inferno-vnode-flags": "8.2.0", + "inferno-vnode-flags": "8.2.1", "opencollective-postinstall": "^2.0.3" } }