diff --git a/packages/debugger-frontend/BUILD_INFO b/packages/debugger-frontend/BUILD_INFO index 3e3245e3f2fffa..8a27a8a5463814 100644 --- a/packages/debugger-frontend/BUILD_INFO +++ b/packages/debugger-frontend/BUILD_INFO @@ -1,5 +1,5 @@ -@generated SignedSource<> -Git revision: 3307f310241a11811288f70c756fded3b9ec2951 +@generated SignedSource<> +Git revision: fa5df7604089aa4015132bb66b1d0b88411cc4c6 Built with --nohooks: false Is local checkout: false Remote URL: https://github.com/facebookexperimental/rn-chrome-devtools-frontend diff --git a/packages/debugger-frontend/dist/third-party/front_end/third_party/react-devtools/react-devtools.js b/packages/debugger-frontend/dist/third-party/front_end/third_party/react-devtools/react-devtools.js index 610966a596bacd..9fab04ffb2d87d 100644 --- a/packages/debugger-frontend/dist/third-party/front_end/third_party/react-devtools/react-devtools.js +++ b/packages/debugger-frontend/dist/third-party/front_end/third_party/react-devtools/react-devtools.js @@ -1,4 +1,4 @@ -var e,r,t={519:(e,r,t)=>{var n=t(397),a=t(572),i=t(147),o=t(443);function s(e){var r="https://react.dev/errors/"+e;if(1B||(e.current=z[B],z[B]=null,B--)}function W(e,r){B++,z[B]=e.current,e.current=r}var j=V(null),$=V(null),X=V(null),G=V(null),K={$$typeof:_,Provider:null,Consumer:null,_currentValue:null,_currentValue2:null,_threadCount:0};function q(e,r){switch(W(X,r),W($,e),W(j,null),e=r.nodeType){case 9:case 11:r=(r=r.documentElement)&&(r=r.namespaceURI)?rf(r):0;break;default:if(r=(e=8===e?r.parentNode:r).tagName,e=e.namespaceURI)r=tf(e=rf(e),r);else switch(r){case"svg":r=1;break;case"math":r=2;break;default:r=0}}U(j),W(j,r)}function Y(){U(j),U($),U(X)}function Q(e){null!==e.memoizedState&&W(G,e);var r=j.current,t=tf(r,e.type);r!==t&&(W($,e),W(j,t))}function J(e){$.current===e&&(U(j),U($)),G.current===e&&(U(G),K._currentValue=null)}var Z=Object.prototype.hasOwnProperty,ee=a.unstable_scheduleCallback,re=a.unstable_cancelCallback,te=a.unstable_shouldYield,ne=a.unstable_requestPaint,ae=a.unstable_now,ie=a.unstable_getCurrentPriorityLevel,oe=a.unstable_ImmediatePriority,se=a.unstable_UserBlockingPriority,le=a.unstable_NormalPriority,ce=a.unstable_LowPriority,ue=a.unstable_IdlePriority,fe=a.log,de=a.unstable_setDisableYieldValue,ve=null,he=null;function me(e){if("function"==typeof fe&&de(e),he&&"function"==typeof he.setStrictMode)try{he.setStrictMode(ve,e)}catch(e){}}var pe=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(_e(e)/Se|0)|0},_e=Math.log,Se=Math.LN2;var ge=128,be=4194304;function we(e){var r=42&e;if(0!==r)return r;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194176&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ke(e,r){var t=e.pendingLanes;if(0===t)return 0;var n=0,a=e.suspendedLanes;e=e.pingedLanes;var i=134217727&t;return 0!==i?0!==(t=i&~a)?n=we(t):0!==(e&=i)&&(n=we(e)):0!==(t&=~a)?n=we(t):0!==e&&(n=we(e)),0===n?0:0!==r&&r!==n&&0==(r&a)&&((a=n&-n)>=(e=r&-r)||32===a&&0!=(4194176&e))?r:n}function Ee(e,r){switch(e){case 1:case 2:case 4:case 8:return r+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r+5e3;default:return-1}}function ye(e,r){return e.errorRecoveryDisabledLanes&r?0:0!==(e=-536870913&e.pendingLanes)?e:536870912&e?536870912:0}function De(){var e=ge;return 0==(4194176&(ge<<=1))&&(ge=128),e}function Ae(){var e=be;return 0==(62914560&(be<<=1))&&(be=4194304),e}function Ce(e){for(var r=[],t=0;31>t;t++)r.push(e);return r}function Me(e,r,t){e.pendingLanes|=r,e.suspendedLanes&=~r;var n=31-pe(r);e.entangledLanes|=r,e.entanglements[n]=1073741824|e.entanglements[n]|4194218&t}function xe(e,r){var t=e.entangledLanes|=r;for(e=e.entanglements;t;){var n=31-pe(t),a=1<--a||l[n]!==c[a]){var u="\n"+l[n].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}}while(1<=n&&0<=a);break}}}finally{or=!1,Error.prepareStackTrace=t}return(t=e?e.displayName||e.name:"")?ir(t):""}function lr(e){switch(e.tag){case 26:case 27:case 5:return ir(e.type);case 16:return ir("Lazy");case 13:return ir("Suspense");case 19:return ir("SuspenseList");case 0:case 15:return e=sr(e.type,!1);case 11:return e=sr(e.type.render,!1);case 1:return e=sr(e.type,!0);default:return""}}function cr(e){try{var r="";do{r+=lr(e),e=e.return}while(e);return r}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}function ur(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function fr(e){var r=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===r||"radio"===r)}function dr(e){e._valueTracker||(e._valueTracker=function(e){var r=fr(e)?"checked":"value",t=Object.getOwnPropertyDescriptor(e.constructor.prototype,r),n=""+e[r];if(!e.hasOwnProperty(r)&&void 0!==t&&"function"==typeof t.get&&"function"==typeof t.set){var a=t.get,i=t.set;return Object.defineProperty(e,r,{configurable:!0,get:function(){return a.call(this)},set:function(e){n=""+e,i.call(this,e)}}),Object.defineProperty(e,r,{enumerable:t.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[r]}}}}(e))}function vr(e){if(!e)return!1;var r=e._valueTracker;if(!r)return!0;var t=r.getValue(),n="";return e&&(n=fr(e)?e.checked?"true":"false":e.value),(e=n)!==t&&(r.setValue(e),!0)}function hr(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(r){return e.body}}var mr=/[\n"\\]/g;function pr(e){return e.replace(mr,(function(e){return"\\"+e.charCodeAt(0).toString(16)+" "}))}function _r(e,r,t,n,a,i,o,s){e.name="",null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&"boolean"!=typeof o?e.type=o:e.removeAttribute("type"),null!=r?"number"===o?(0===r&&""===e.value||e.value!=r)&&(e.value=""+ur(r)):e.value!==""+ur(r)&&(e.value=""+ur(r)):"submit"!==o&&"reset"!==o||e.removeAttribute("value"),null!=r?gr(e,o,ur(r)):null!=t?gr(e,o,ur(t)):null!=n&&e.removeAttribute("value"),null==a&&null!=i&&(e.defaultChecked=!!i),null!=a&&(e.checked=a&&"function"!=typeof a&&"symbol"!=typeof a),null!=s&&"function"!=typeof s&&"symbol"!=typeof s&&"boolean"!=typeof s?e.name=""+ur(s):e.removeAttribute("name")}function Sr(e,r,t,n,a,i,o,s){if(null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i&&(e.type=i),null!=r||null!=t){if(("submit"===i||"reset"===i)&&null==r)return;t=null!=t?""+ur(t):"",r=null!=r?""+ur(r):t,s||r===e.value||(e.value=r),e.defaultValue=r}n="function"!=typeof(n=null!=n?n:a)&&"symbol"!=typeof n&&!!n,e.checked=s?e.checked:!!n,e.defaultChecked=!!n,null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&"boolean"!=typeof o&&(e.name=o)}function gr(e,r,t){"number"===r&&hr(e.ownerDocument)===e||e.defaultValue===""+t||(e.defaultValue=""+t)}function br(e,r,t,n){if(e=e.options,r){r={};for(var a=0;a=wt),yt=String.fromCharCode(32),Dt=!1;function At(e,r){switch(e){case"keyup":return-1!==gt.indexOf(r.keyCode);case"keydown":return 229!==r.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ct(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Mt=!1;var xt={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Tt(e){var r=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===r?!!xt[e.type]:"textarea"===r}function Ht(e,r,t,n){Rr?Ir?Ir.push(n):Ir=[n]:Rr=n,0<(r=Bu(r,"onChange")).length&&(t=new Zr("onChange","change",null,t,n),e.push({event:t,listeners:r}))}var Nt=null,Rt=null;function It(e){Nu(e,0)}function Ot(e){if(vr(je(e)))return e}function Ft(e,r){if("change"===e)return r}var Pt=!1;if(Je){var Lt;if(Je){var zt="oninput"in document;if(!zt){var Bt=document.createElement("div");Bt.setAttribute("oninput","return;"),zt="function"==typeof Bt.oninput}Lt=zt}else Lt=!1;Pt=Lt&&(!document.documentMode||9=r)return{node:n,offset:r-e};e=t}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=qt(n)}}function Qt(e,r){return!(!e||!r)&&(e===r||(!e||3!==e.nodeType)&&(r&&3===r.nodeType?Qt(e,r.parentNode):"contains"in e?e.contains(r):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(r))))}function Jt(){for(var e=window,r=hr();r instanceof e.HTMLIFrameElement;){try{var t="string"==typeof r.contentWindow.location.href}catch(e){t=!1}if(!t)break;r=hr((e=r.contentWindow).document)}return r}function Zt(e){var r=e&&e.nodeName&&e.nodeName.toLowerCase();return r&&("input"===r&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===r||"true"===e.contentEditable)}function en(e){var r=Jt(),t=e.focusedElem,n=e.selectionRange;if(r!==t&&t&&t.ownerDocument&&Qt(t.ownerDocument.documentElement,t)){if(null!==n&&Zt(t))if(r=n.start,void 0===(e=n.end)&&(e=r),"selectionStart"in t)t.selectionStart=r,t.selectionEnd=Math.min(e,t.value.length);else if((e=(r=t.ownerDocument||document)&&r.defaultView||window).getSelection){e=e.getSelection();var a=t.textContent.length,i=Math.min(n.start,a);n=void 0===n.end?i:Math.min(n.end,a),!e.extend&&i>n&&(a=n,n=i,i=a),a=Yt(t,i);var o=Yt(t,n);a&&o&&(1!==e.rangeCount||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&((r=r.createRange()).setStart(a.node,a.offset),e.removeAllRanges(),i>n?(e.addRange(r),e.extend(o.node,o.offset)):(r.setEnd(o.node,o.offset),e.addRange(r)))}for(r=[],e=t;e=e.parentNode;)1===e.nodeType&&r.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof t.focus&&t.focus(),t=0;t=document.documentMode,tn=null,nn=null,an=null,on=!1;function sn(e,r,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;on||null==tn||tn!==hr(n)||("selectionStart"in(n=tn)&&Zt(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},an&&Kt(an,n)||(an=n,0<(n=Bu(nn,"onSelect")).length&&(r=new Zr("onSelect","select",null,r,t),e.push({event:r,listeners:n}),r.target=tn)))}function ln(e,r){var t={};return t[e.toLowerCase()]=r.toLowerCase(),t["Webkit"+e]="webkit"+r,t["Moz"+e]="moz"+r,t}var cn={animationend:ln("Animation","AnimationEnd"),animationiteration:ln("Animation","AnimationIteration"),animationstart:ln("Animation","AnimationStart"),transitionrun:ln("Transition","TransitionRun"),transitionstart:ln("Transition","TransitionStart"),transitioncancel:ln("Transition","TransitionCancel"),transitionend:ln("Transition","TransitionEnd")},un={},fn={};function dn(e){if(un[e])return un[e];if(!cn[e])return e;var r,t=cn[e];for(r in t)if(t.hasOwnProperty(r)&&r in fn)return un[e]=t[r];return e}Je&&(fn=document.createElement("div").style,"AnimationEvent"in window||(delete cn.animationend.animation,delete cn.animationiteration.animation,delete cn.animationstart.animation),"TransitionEvent"in window||delete cn.transitionend.transition);var vn=dn("animationend"),hn=dn("animationiteration"),mn=dn("animationstart"),pn=dn("transitionrun"),_n=dn("transitionstart"),Sn=dn("transitioncancel"),gn=dn("transitionend"),bn=new Map,wn="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll scrollEnd toggle touchMove waiting wheel".split(" ");function kn(e,r){bn.set(e,r),qe(r,[e])}var En=[],yn=0,Dn=0;function An(){for(var e=yn,r=Dn=yn=0;r>=o,a-=o,Un=1<<32-pe(r)+a|t<v?(h=d,d=null):h=d.sibling;var g=p(a,d,_.value,c);if(null===g){null===d&&(d=h);break}e&&d&&null===g.alternate&&r(a,d),o=i(g,o,v),null===f?u=g:f.sibling=g,f=g,d=h}if(_.done)return t(a,d),Yn&&jn(a,v),u;if(null===d){for(;!_.done;v++,_=l.next(),null)null!==(_=m(a,_.value,c))&&(o=i(_,o,v),null===f?u=_:f.sibling=_,f=_);return Yn&&jn(a,v),u}for(d=n(d);!_.done;v++,_=l.next(),null)null!==(_=S(d,a,v,_.value,c))&&(e&&null!==_.alternate&&d.delete(null===_.key?v:_.key),o=i(_,o,v),null===f?u=_:f.sibling=_,f=_);return e&&d.forEach((function(e){return r(a,e)})),Yn&&jn(a,v),u}function b(l,c,v,h){if("object"==typeof v&&null!==v&&v.type===d&&null===v.key&&(v=v.props.children),"object"==typeof v&&null!==v){switch(v.$$typeof){case u:e:{for(var w=v.key,E=c;null!==E;){if(E.key===w){if((w=v.type)===d){if(7===E.tag){t(l,E.sibling),(c=a(E,v.props.children)).return=l,l=c;break e}}else if(E.elementType===w||"object"==typeof w&&null!==w&&w.$$typeof===k&&ga(w)===E.type){t(l,E.sibling),_a(l,0,c=a(E,v.props),v),c.return=l,l=c;break e}t(l,E);break}r(l,E),E=E.sibling}v.type===d?((c=jl(v.props.children,l.mode,h,v.key)).return=l,l=c):(_a(l,0,h=Wl(v.type,v.key,v.props,null,l.mode,h),v),h.return=l,l=h)}return o(l);case f:e:{for(E=v.key;null!==c;){if(c.key===E){if(4===c.tag&&c.stateNode.containerInfo===v.containerInfo&&c.stateNode.implementation===v.implementation){t(l,c.sibling),(c=a(c,v.children||[])).return=l,l=c;break e}t(l,c);break}r(l,c),c=c.sibling}(c=Gl(v,l.mode,h)).return=l,l=c}return o(l);case k:return b(l,c,(E=v._init)(v._payload),h)}if(O(v))return function(a,o,s,l){for(var c=null,u=null,f=o,d=o=0,v=null;null!==f&&dd?(v=f,f=null):v=f.sibling;var h=p(a,f,s[d],l);if(null===h){null===f&&(f=v);break}e&&f&&null===h.alternate&&r(a,f),o=i(h,o,d),null===u?c=h:u.sibling=h,u=h,f=v}if(d===s.length)return t(a,f),Yn&&jn(a,d),c;if(null===f){for(;di?i:8;var o,s,l,c=F.T,u={_callbacks:new Set};F.T=u,wo(e,!1,r,t);try{var f=a();if(null!==f&&"object"==typeof f&&"function"==typeof f.then)qa(u,f),bo(e,r,(o=n,s=[],l={status:"pending",value:null,reason:null,then:function(e){s.push(e)}},f.then((function(){l.status="fulfilled",l.value=o;for(var e=0;e title"))),Yu(a,n,t),a[Re]=e,Xe(a),n=a;break e;case"link":var i=Rf("link","href",r).get(n+(t.href||""));if(i)for(var o=0;o<\/script>",e=e.removeChild(e.firstChild);break;case"select":e="string"==typeof n.is?a.createElement("select",{is:n.is}):a.createElement("select"),n.multiple?e.multiple=!0:n.size&&(e.size=n.size);break;default:e="string"==typeof n.is?a.createElement(t,{is:n.is}):a.createElement(t)}}e[Re]=r,e[Ie]=n;e:for(a=r.child;null!==a;){if(5===a.tag||6===a.tag)e.appendChild(a.stateNode);else if(4!==a.tag&&27!==a.tag&&null!==a.child){a.child.return=a,a=a.child;continue}if(a===r)break e;for(;null===a.sibling;){if(null===a.return||a.return===r)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}r.stateNode=e;e:switch(Yu(e,t,n),t){case"button":case"input":case"select":case"textarea":e=!!n.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&Kl(r)}}return Jl(r),r.flags&=-16777217,null;case 6:if(e&&null!=r.stateNode)e.memoizedProps!==n&&Kl(r);else{if("string"!=typeof n&&null===r.stateNode)throw Error(s(166));if(e=X.current,na(r)){if(e=r.stateNode,t=r.memoizedProps,n=null,null!==(a=Kn))switch(a.tag){case 27:case 5:n=a.memoizedProps}e[Re]=r,(e=!!(e.nodeValue===t||null!==n&&!0===n.suppressHydrationWarning||Xu(e.nodeValue,t)))||ea(r)}else(e=ef(e).createTextNode(n))[Re]=r,r.stateNode=e}return Jl(r),null;case 13:if(n=r.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(a=na(r),null!==n&&null!==n.dehydrated){if(null===e){if(!a)throw Error(s(318));if(!(a=null!==(a=r.memoizedState)?a.dehydrated:null))throw Error(s(317));a[Re]=r}else aa(),0==(128&r.flags)&&(r.memoizedState=null),r.flags|=4;Jl(r),a=!1}else null!==Qn&&(Pc(Qn),Qn=null),a=!0;if(!a)return 256&r.flags?(Ra(r),r):(Ra(r),null)}if(Ra(r),0!=(128&r.flags))return r.lanes=t,r;if(t=null!==n,e=null!==e&&null!==e.memoizedState,t){a=null,null!==(n=r.child).alternate&&null!==n.alternate.memoizedState&&null!==n.alternate.memoizedState.cachePool&&(a=n.alternate.memoizedState.cachePool.pool);var i=null;null!==n.memoizedState&&null!==n.memoizedState.cachePool&&(i=n.memoizedState.cachePool.pool),i!==a&&(n.flags|=2048)}return t!==e&&t&&(r.child.flags|=8192),Yl(r,r.updateQueue),Jl(r),null;case 4:return Y(),null===e&&Fu(r.stateNode.containerInfo),Jl(r),null;case 10:return Ss(r.type),Jl(r),null;case 19:if(U(Ia),null===(a=r.memoizedState))return Jl(r),null;if(n=0!=(128&r.flags),null===(i=a.rendering))if(n)Ql(a,!1);else{if(0!==dc||null!==e&&0!=(128&e.flags))for(e=r.child;null!==e;){if(null!==(i=Oa(e))){for(r.flags|=128,Ql(a,!1),e=i.updateQueue,r.updateQueue=e,Yl(r,e),r.subtreeFlags=0,e=t,t=r.child;null!==t;)Ul(t,e),t=t.sibling;return W(Ia,1&Ia.current|2),r.child}e=e.sibling}null!==a.tail&&ae()>kc&&(r.flags|=128,n=!0,Ql(a,!1),r.lanes=4194304)}else{if(!n)if(null!==(e=Oa(i))){if(r.flags|=128,n=!0,e=e.updateQueue,r.updateQueue=e,Yl(r,e),Ql(a,!0),null===a.tail&&"hidden"===a.tailMode&&!i.alternate&&!Yn)return Jl(r),null}else 2*ae()-a.renderingStartTime>kc&&536870912!==t&&(r.flags|=128,n=!0,Ql(a,!1),r.lanes=4194304);a.isBackwards?(i.sibling=r.child,r.child=i):(null!==(e=a.last)?e.sibling=i:r.child=i,a.last=i)}return null!==a.tail?(r=a.tail,a.rendering=r,a.tail=r.sibling,a.renderingStartTime=ae(),r.sibling=null,e=Ia.current,W(Ia,n?1&e|2:1&e),r):(Jl(r),null);case 22:case 23:return Ra(r),Ca(),n=null!==r.memoizedState,null!==e?null!==e.memoizedState!==n&&(r.flags|=8192):n&&(r.flags|=8192),n?0!=(536870912&t)&&0==(128&r.flags)&&(Jl(r),6&r.subtreeFlags&&(r.flags|=8192)):Jl(r),null!==(t=r.updateQueue)&&Yl(r,t.retryQueue),t=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(t=e.memoizedState.cachePool.pool),n=null,null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(n=r.memoizedState.cachePool.pool),n!==t&&(r.flags|=2048),null!==e&&U(Ya),null;case 24:return t=null,null!==e&&(t=e.memoizedState.cache),r.memoizedState.cache!==t&&(r.flags|=2048),Ss(za),Jl(r),null;case 25:return null}throw Error(s(156,r.tag))}function ec(e,r){switch(Gn(r),r.tag){case 1:return 65536&(e=r.flags)?(r.flags=-65537&e|128,r):null;case 3:return Ss(za),Y(),0!=(65536&(e=r.flags))&&0==(128&e)?(r.flags=-65537&e|128,r):null;case 26:case 27:case 5:return J(r),null;case 13:if(Ra(r),null!==(e=r.memoizedState)&&null!==e.dehydrated){if(null===r.alternate)throw Error(s(340));aa()}return 65536&(e=r.flags)?(r.flags=-65537&e|128,r):null;case 19:return U(Ia),null;case 4:return Y(),null;case 10:return Ss(r.type),null;case 22:case 23:return Ra(r),Ca(),null!==e&&U(Ya),65536&(e=r.flags)?(r.flags=-65537&e|128,r):null;case 24:return Ss(za),null;default:return null}}function rc(e,r){switch(Gn(r),r.tag){case 3:Ss(za),Y();break;case 26:case 27:case 5:J(r);break;case 4:Y();break;case 13:Ra(r);break;case 19:U(Ia);break;case 10:Ss(r.type);break;case 22:case 23:Ra(r),Ca(),null!==e&&U(Ya);break;case 24:Ss(za)}}var tc={getCacheForType:function(e){var r=ks(za),t=r.data.get(e);return void 0===t&&(t=e(),r.data.set(e,t)),t}},nc="function"==typeof WeakMap?WeakMap:Map,ac=0,ic=null,oc=null,sc=0,lc=0,cc=null,uc=!1,fc=0,dc=0,vc=0,hc=0,mc=0,pc=0,_c=null,Sc=null,gc=!1,bc=!1,wc=0,kc=1/0,Ec=null,yc=null,Dc=!1,Ac=null,Cc=0,Mc=0,xc=null,Tc=0,Hc=null;function Nc(){if(0!=(2&ac)&&0!==sc)return sc&-sc;if(null!==Ga()){return 0!==ja?ja:Du()}return He()}function Rc(){0===pc&&(pc=0==(536870912&sc)||Yn?De():536870912);var e=Ma.current;return null!==e&&(e.flags|=32),pc}function Ic(e,r,t){(e===ic&&2===lc||null!==e.cancelPendingCommit)&&($c(e,0),Vc(e,sc,pc)),Bc(e,t),0!=(2&ac)&&e===ic||(e===ic&&(0==(2&ac)&&(hc|=t),4===dc&&Vc(e,sc,pc)),wu(e))}function Oc(e,r){if(0!=(6&ac))throw Error(s(327));var t=e.callbackNode;if(ou()&&e.callbackNode!==t)return null;var n=ke(e,e===ic?sc:0);if(0===n)return null;var a=0==(60&n)&&0==(n&e.expiredLanes)&&!r;if(r=a?function(e,r){var t=ac;ac|=2;var n=Kc(),a=qc();ic===e&&sc===r||(Ec=null,kc=ae()+500,$c(e,r));e:for(;;)try{if(0!==lc&&null!==oc){r=oc;var i=cc;r:switch(lc){case 1:case 6:lc=0,cc=null,tu(e,r,i);break;case 2:if(ca(i)){lc=0,cc=null,ru(r);break}r=function(){2===lc&&ic===e&&(lc=7),wu(e)},i.then(r,r);break e;case 3:lc=7;break e;case 4:lc=5;break e;case 7:ca(i)?(lc=0,cc=null,ru(r)):(lc=0,cc=null,tu(e,r,i));break;case 5:switch(oc.tag){case 5:case 26:case 27:lc=0,cc=null;var o=(r=oc).sibling;if(null!==o)oc=o;else{var l=r.return;null!==l?(oc=l,nu(l)):oc=null}break r}lc=0,cc=null,tu(e,r,i);break;case 8:jc(),dc=6;break e;default:throw Error(s(462))}}Zc();break}catch(r){Xc(e,r)}return ps(),F.H=n,F.A=a,ac=t,null!==oc?0:(ic=null,sc=0,An(),dc)}(e,n):Qc(e,n),0!==r)for(var i=a;;){if(6===r)Vc(e,n,0);else{if(a=e.current.alternate,i&&!zc(a)){r=Qc(e,n),i=!1;continue}if(2===r){var o=ye(e,i=n);if(0!==o&&(n=o,r=Fc(e,i,o),i=!1,2!==r))continue}if(1===r){$c(e,0),Vc(e,n,0);break}e.finishedWork=a,e.finishedLanes=n;e:{switch(i=e,r){case 0:case 1:throw Error(s(345));case 4:if((4194176&n)===n){Vc(i,n,pc);break e}break;case 2:Sc=null;break;case 3:case 5:break;default:throw Error(s(329))}if((62914560&n)===n&&10<(r=wc+300-ae())){if(Vc(i,n,pc),0!==ke(i,0))break e;i.timeoutHandle=sf(Lc.bind(null,i,a,Sc,Ec,gc,n,pc),r)}else Lc(i,a,Sc,Ec,gc,n,pc)}}break}return wu(e),yu(e,ae()),e=e.callbackNode===t?Oc.bind(null,e):null}function Fc(e,r,t){var n=_c,a=e.current.memoizedState.isDehydrated;if(a&&($c(e,t).flags|=256),2!==(t=Qc(e,t))){if(uc&&!a)return e.errorRecoveryDisabledLanes|=r,hc|=r,4;e=Sc,Sc=n,null!==e&&Pc(e)}return t}function Pc(e){null===Sc?Sc=e:Sc.push.apply(Sc,e)}function Lc(e,r,t,n,a,i,o){if(0==(42&i)&&(Of={stylesheets:null,count:0,unsuspend:Ff},Nl(r),null!==(r=function(){if(null===Of)throw Error(s(475));var e=Of;return e.stylesheets&&0===e.count&&zf(e,e.stylesheets),0t?32:t,F.T=null,null===Ac)var i=!1;else{t=xc,xc=null;var o=Ac,l=Cc;if(Ac=null,Cc=0,0!=(6&ac))throw Error(s(331));var c=ac;if(ac|=4,Ol(o.current),Cl(o,o.current,l,t),ac=c,ku(),he&&"function"==typeof he.onPostCommitFiberRoot)try{he.onPostCommitFiberRoot(ve,o)}catch(e){}i=!0}return i}finally{P.p=a,F.T=n,iu(e,r)}}return!1}function su(e,r,t){r=In(t,r),null!==(e=xs(e,r=Oo(e.stateNode,r,2),2))&&(Bc(e,2),wu(e))}function lu(e,r,t){if(3===e.tag)su(e,e,t);else for(;null!==r;){if(3===r.tag){su(r,e,t);break}if(1===r.tag){var n=r.stateNode;if("function"==typeof r.type.getDerivedStateFromError||"function"==typeof n.componentDidCatch&&(null===yc||!yc.has(n))){e=In(t,e),null!==(n=xs(r,t=Fo(2),2))&&(Po(t,n,r,e),Bc(n,2),wu(n));break}}r=r.return}}function cu(e,r,t){var n=e.pingCache;if(null===n){n=e.pingCache=new nc;var a=new Set;n.set(r,a)}else void 0===(a=n.get(r))&&(a=new Set,n.set(r,a));a.has(t)||(uc=!0,a.add(t),e=uu.bind(null,e,r,t),r.then(e,e))}function uu(e,r,t){var n=e.pingCache;null!==n&&n.delete(r),e.pingedLanes|=e.suspendedLanes&t,2&ac?gc=!0:4&ac&&(bc=!0),hu(),ic===e&&(sc&t)===t&&(4===dc||3===dc&&(62914560&sc)===sc&&300>ae()-wc?0==(2&ac)&&$c(e,0):mc|=t),wu(e)}function fu(e,r){0===r&&(r=Ae()),null!==(e=xn(e,r))&&(Bc(e,r),wu(e))}function du(e){var r=e.memoizedState,t=0;null!==r&&(t=r.retryLane),fu(e,t)}function vu(e,r){var t=0;switch(e.tag){case 13:var n=e.stateNode,a=e.memoizedState;null!==a&&(t=a.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error(s(314))}null!==n&&n.delete(r),fu(e,t)}function hu(){if(50 title"):null)}var Of=null;function Ff(){}function Pf(){if(this.count--,0===this.count)if(this.stylesheets)zf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var Lf=null;function zf(e,r){e.stylesheets=null,null!==e.unsuspend&&(e.count++,Lf=new Map,r.forEach(Bf,e),Lf=null,Pf.call(e))}function Bf(e,r){if(!(4&r.state.loading)){var t=Lf.get(e);if(t)var n=t.get(null);else{t=new Map,Lf.set(e,t);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i{ +var e,r,t={519:(e,r,t)=>{var n=t(397),a=t(572),i=t(147),o=t(443);function s(e){var r="https://react.dev/errors/"+e;if(1--a||l[n]!==c[a]){var u="\n"+l[n].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}}while(1<=n&&0<=a);break}}}finally{R=!1,Error.prepareStackTrace=t}return(t=e?e.displayName||e.name:"")?N(t):""}function O(e){switch(e.tag){case 26:case 27:case 5:return N(e.type);case 16:return N("Lazy");case 13:return N("Suspense");case 19:return N("SuspenseList");case 0:case 15:return e=I(e.type,!1);case 11:return e=I(e.type.render,!1);case 1:return e=I(e.type,!0);default:return""}}function F(e){try{var r="";do{r+=O(e),e=e.return}while(e);return r}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}function P(e){var r=e,t=e;if(e.alternate)for(;r.return;)r=r.return;else{e=r;do{0!=(4098&(r=e).flags)&&(t=r.return),e=r.return}while(e)}return 3===r.tag?t:null}function L(e){if(13===e.tag){var r=e.memoizedState;if(null===r&&(null!==(e=e.alternate)&&(r=e.memoizedState)),null!==r)return r.dehydrated}return null}function z(e){if(P(e)!==e)throw Error(s(188))}function B(e){return null!==(e=function(e){var r=e.alternate;if(!r){if(null===(r=P(e)))throw Error(s(188));return r!==e?null:e}for(var t=e,n=r;;){var a=t.return;if(null===a)break;var i=a.alternate;if(null===i){if(null!==(n=a.return)){t=n;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===t)return z(a),e;if(i===n)return z(a),r;i=i.sibling}throw Error(s(188))}if(t.return!==n.return)t=a,n=i;else{for(var o=!1,l=a.child;l;){if(l===t){o=!0,t=a,n=i;break}if(l===n){o=!0,n=a,t=i;break}l=l.sibling}if(!o){for(l=i.child;l;){if(l===t){o=!0,t=i,n=a;break}if(l===n){o=!0,n=i,t=a;break}l=l.sibling}if(!o)throw Error(s(189))}}if(t.alternate!==n)throw Error(s(190))}if(3!==t.tag)throw Error(s(188));return t.stateNode.current===t?e:r}(e))?V(e):null}function V(e){var r=e.tag;if(5===r||26===r||27===r||6===r)return e;for(e=e.child;null!==e;){if(null!==(r=V(e)))return r;e=e.sibling}return null}var U=Array.isArray,W=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,j={pending:!1,data:null,method:null,action:null},$=[],X=-1;function G(e){return{current:e}}function K(e){0>X||(e.current=$[X],$[X]=null,X--)}function q(e,r){X++,$[X]=e.current,e.current=r}var Y=G(null),Q=G(null),J=G(null),Z=G(null),ee={$$typeof:_,Provider:null,Consumer:null,_currentValue:null,_currentValue2:null,_threadCount:0};function re(e,r){switch(q(J,r),q(Q,e),q(Y,null),e=r.nodeType){case 9:case 11:r=(r=r.documentElement)&&(r=r.namespaceURI)?nf(r):0;break;default:if(r=(e=8===e?r.parentNode:r).tagName,e=e.namespaceURI)r=af(e=nf(e),r);else switch(r){case"svg":r=1;break;case"math":r=2;break;default:r=0}}K(Y),q(Y,r)}function te(){K(Y),K(Q),K(J)}function ne(e){null!==e.memoizedState&&q(Z,e);var r=Y.current,t=af(r,e.type);r!==t&&(q(Q,e),q(Y,t))}function ae(e){Q.current===e&&(K(Y),K(Q)),Z.current===e&&(K(Z),ee._currentValue=null)}var ie=Object.prototype.hasOwnProperty,oe=a.unstable_scheduleCallback,se=a.unstable_cancelCallback,le=a.unstable_shouldYield,ce=a.unstable_requestPaint,ue=a.unstable_now,fe=a.unstable_getCurrentPriorityLevel,de=a.unstable_ImmediatePriority,ve=a.unstable_UserBlockingPriority,he=a.unstable_NormalPriority,me=a.unstable_LowPriority,pe=a.unstable_IdlePriority,_e=a.log,Se=a.unstable_setDisableYieldValue,ge=null,be=null;function we(e){if("function"==typeof _e&&Se(e),be&&"function"==typeof be.setStrictMode)try{be.setStrictMode(ge,e)}catch(e){}}var ke=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(Ee(e)/ye|0)|0},Ee=Math.log,ye=Math.LN2;var De=128,Ae=4194304;function Ce(e){var r=42&e;if(0!==r)return r;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194176&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Me(e,r){var t=e.pendingLanes;if(0===t)return 0;var n=0,a=e.suspendedLanes;e=e.pingedLanes;var i=134217727&t;return 0!==i?0!==(t=i&~a)?n=Ce(t):0!==(e&=i)&&(n=Ce(e)):0!==(t&=~a)?n=Ce(t):0!==e&&(n=Ce(e)),0===n?0:0!==r&&r!==n&&0==(r&a)&&((a=n&-n)>=(e=r&-r)||32===a&&0!=(4194176&e))?r:n}function xe(e,r){switch(e){case 1:case 2:case 4:case 8:return r+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r+5e3;default:return-1}}function Te(e,r){return e.errorRecoveryDisabledLanes&r?0:0!==(e=-536870913&e.pendingLanes)?e:536870912&e?536870912:0}function He(){var e=De;return 0==(4194176&(De<<=1))&&(De=128),e}function Ne(){var e=Ae;return 0==(62914560&(Ae<<=1))&&(Ae=4194304),e}function Re(e){for(var r=[],t=0;31>t;t++)r.push(e);return r}function Ie(e,r,t){e.pendingLanes|=r,e.suspendedLanes&=~r;var n=31-ke(r);e.entangledLanes|=r,e.entanglements[n]=1073741824|e.entanglements[n]|4194218&t}function Oe(e,r){var t=e.entangledLanes|=r;for(e=e.entanglements;t;){var n=31-ke(t),a=1<=kt),Dt=String.fromCharCode(32),At=!1;function Ct(e,r){switch(e){case"keyup":return-1!==bt.indexOf(r.keyCode);case"keydown":return 229!==r.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Mt(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var xt=!1;var Tt={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Ht(e){var r=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===r?!!Tt[e.type]:"textarea"===r}function Nt(e,r,t,n){Rr?Ir?Ir.push(n):Ir=[n]:Rr=n,0<(r=Uu(r,"onChange")).length&&(t=new Zr("onChange","change",null,t,n),e.push({event:t,listeners:r}))}var Rt=null,It=null;function Ot(e){Iu(e,0)}function Ft(e){if(vr(Ye(e)))return e}function Pt(e,r){if("change"===e)return r}var Lt=!1;if(nr){var zt;if(nr){var Bt="oninput"in document;if(!Bt){var Vt=document.createElement("div");Vt.setAttribute("oninput","return;"),Bt="function"==typeof Vt.oninput}zt=Bt}else zt=!1;Lt=zt&&(!document.documentMode||9=r)return{node:n,offset:r-e};e=t}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Yt(n)}}function Jt(e,r){return!(!e||!r)&&(e===r||(!e||3!==e.nodeType)&&(r&&3===r.nodeType?Jt(e,r.parentNode):"contains"in e?e.contains(r):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(r))))}function Zt(){for(var e=window,r=hr();r instanceof e.HTMLIFrameElement;){try{var t="string"==typeof r.contentWindow.location.href}catch(e){t=!1}if(!t)break;r=hr((e=r.contentWindow).document)}return r}function en(e){var r=e&&e.nodeName&&e.nodeName.toLowerCase();return r&&("input"===r&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===r||"true"===e.contentEditable)}function rn(e){var r=Zt(),t=e.focusedElem,n=e.selectionRange;if(r!==t&&t&&t.ownerDocument&&Jt(t.ownerDocument.documentElement,t)){if(null!==n&&en(t))if(r=n.start,void 0===(e=n.end)&&(e=r),"selectionStart"in t)t.selectionStart=r,t.selectionEnd=Math.min(e,t.value.length);else if((e=(r=t.ownerDocument||document)&&r.defaultView||window).getSelection){e=e.getSelection();var a=t.textContent.length,i=Math.min(n.start,a);n=void 0===n.end?i:Math.min(n.end,a),!e.extend&&i>n&&(a=n,n=i,i=a),a=Qt(t,i);var o=Qt(t,n);a&&o&&(1!==e.rangeCount||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&((r=r.createRange()).setStart(a.node,a.offset),e.removeAllRanges(),i>n?(e.addRange(r),e.extend(o.node,o.offset)):(r.setEnd(o.node,o.offset),e.addRange(r)))}for(r=[],e=t;e=e.parentNode;)1===e.nodeType&&r.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof t.focus&&t.focus(),t=0;t=document.documentMode,nn=null,an=null,on=null,sn=!1;function ln(e,r,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;sn||null==nn||nn!==hr(n)||("selectionStart"in(n=nn)&&en(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},on&&qt(on,n)||(on=n,0<(n=Uu(an,"onSelect")).length&&(r=new Zr("onSelect","select",null,r,t),e.push({event:r,listeners:n}),r.target=nn)))}function cn(e,r){var t={};return t[e.toLowerCase()]=r.toLowerCase(),t["Webkit"+e]="webkit"+r,t["Moz"+e]="moz"+r,t}var un={animationend:cn("Animation","AnimationEnd"),animationiteration:cn("Animation","AnimationIteration"),animationstart:cn("Animation","AnimationStart"),transitionrun:cn("Transition","TransitionRun"),transitionstart:cn("Transition","TransitionStart"),transitioncancel:cn("Transition","TransitionCancel"),transitionend:cn("Transition","TransitionEnd")},fn={},dn={};function vn(e){if(fn[e])return fn[e];if(!un[e])return e;var r,t=un[e];for(r in t)if(t.hasOwnProperty(r)&&r in dn)return fn[e]=t[r];return e}nr&&(dn=document.createElement("div").style,"AnimationEvent"in window||(delete un.animationend.animation,delete un.animationiteration.animation,delete un.animationstart.animation),"TransitionEvent"in window||delete un.transitionend.transition);var hn=vn("animationend"),mn=vn("animationiteration"),pn=vn("animationstart"),_n=vn("transitionrun"),Sn=vn("transitionstart"),gn=vn("transitioncancel"),bn=vn("transitionend"),wn=new Map,kn="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll scrollEnd toggle touchMove waiting wheel".split(" ");function En(e,r){wn.set(e,r),rr(r,[e])}var yn=[],Dn=0,An=0;function Cn(){for(var e=Dn,r=An=Dn=0;r>=o,a-=o,Wn=1<<32-ke(r)+a|t<v?(h=d,d=null):h=d.sibling;var g=p(a,d,_.value,c);if(null===g){null===d&&(d=h);break}e&&d&&null===g.alternate&&r(a,d),o=i(g,o,v),null===f?u=g:f.sibling=g,f=g,d=h}if(_.done)return t(a,d),Qn&&$n(a,v),u;if(null===d){for(;!_.done;v++,_=l.next(),null)null!==(_=m(a,_.value,c))&&(o=i(_,o,v),null===f?u=_:f.sibling=_,f=_);return Qn&&$n(a,v),u}for(d=n(d);!_.done;v++,_=l.next(),null)null!==(_=S(d,a,v,_.value,c))&&(e&&null!==_.alternate&&d.delete(null===_.key?v:_.key),o=i(_,o,v),null===f?u=_:f.sibling=_,f=_);return e&&d.forEach((function(e){return r(a,e)})),Qn&&$n(a,v),u}function b(l,c,v,h){if("object"==typeof v&&null!==v&&v.type===d&&null===v.key&&(v=v.props.children),"object"==typeof v&&null!==v){switch(v.$$typeof){case u:e:{for(var w=v.key,E=c;null!==E;){if(E.key===w){if((w=v.type)===d){if(7===E.tag){t(l,E.sibling),(c=a(E,v.props.children)).return=l,l=c;break e}}else if(E.elementType===w||"object"==typeof w&&null!==w&&w.$$typeof===k&&ba(w)===E.type){t(l,E.sibling),Sa(l,0,c=a(E,v.props),v),c.return=l,l=c;break e}t(l,E);break}r(l,E),E=E.sibling}v.type===d?((c=Xl(v.props.children,l.mode,h,v.key)).return=l,l=c):(Sa(l,0,h=$l(v.type,v.key,v.props,null,l.mode,h),v),h.return=l,l=h)}return o(l);case f:e:{for(E=v.key;null!==c;){if(c.key===E){if(4===c.tag&&c.stateNode.containerInfo===v.containerInfo&&c.stateNode.implementation===v.implementation){t(l,c.sibling),(c=a(c,v.children||[])).return=l,l=c;break e}t(l,c);break}r(l,c),c=c.sibling}(c=ql(v,l.mode,h)).return=l,l=c}return o(l);case k:return b(l,c,(E=v._init)(v._payload),h)}if(U(v))return function(a,o,s,l){for(var c=null,u=null,f=o,d=o=0,v=null;null!==f&&dd?(v=f,f=null):v=f.sibling;var h=p(a,f,s[d],l);if(null===h){null===f&&(f=v);break}e&&f&&null===h.alternate&&r(a,f),o=i(h,o,d),null===u?c=h:u.sibling=h,u=h,f=v}if(d===s.length)return t(a,f),Qn&&$n(a,d),c;if(null===f){for(;di?i:8;var o,s,l,c=T.T,u={};T.T=u,Eo(e,!1,r,t);try{var f=a(),d=T.S;if(null!==d&&d(u,f),null!==f&&"object"==typeof f&&"function"==typeof f.then)ko(e,r,(o=n,s=[],l={status:"pending",value:null,reason:null,then:function(e){s.push(e)}},f.then((function(){l.status="fulfilled",l.value=o;for(var e=0;e title"))),Ju(a,n,t),a[ze]=e,Je(a),n=a;break e;case"link":var i=Ff("link","href",r).get(n+(t.href||""));if(i)for(var o=0;o<\/script>",e=e.removeChild(e.firstChild);break;case"select":e="string"==typeof n.is?a.createElement("select",{is:n.is}):a.createElement("select"),n.multiple?e.multiple=!0:n.size&&(e.size=n.size);break;default:e="string"==typeof n.is?a.createElement(t,{is:n.is}):a.createElement(t)}}e[ze]=r,e[Be]=n;e:for(a=r.child;null!==a;){if(5===a.tag||6===a.tag)e.appendChild(a.stateNode);else if(4!==a.tag&&27!==a.tag&&null!==a.child){a.child.return=a,a=a.child;continue}if(a===r)break e;for(;null===a.sibling;){if(null===a.return||a.return===r)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}r.stateNode=e;e:switch(Ju(e,t,n),t){case"button":case"input":case"select":case"textarea":e=!!n.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&Yl(r)}}return ec(r),r.flags&=-16777217,null;case 6:if(e&&null!=r.stateNode)e.memoizedProps!==n&&Yl(r);else{if("string"!=typeof n&&null===r.stateNode)throw Error(s(166));if(e=J.current,aa(r)){if(e=r.stateNode,t=r.memoizedProps,n=null,null!==(a=qn))switch(a.tag){case 27:case 5:n=a.memoizedProps}e[ze]=r,(e=!!(e.nodeValue===t||null!==n&&!0===n.suppressHydrationWarning||Ku(e.nodeValue,t)))||ra(r)}else(e=tf(e).createTextNode(n))[ze]=r,r.stateNode=e}return ec(r),null;case 13:if(n=r.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(a=aa(r),null!==n&&null!==n.dehydrated){if(null===e){if(!a)throw Error(s(318));if(!(a=null!==(a=r.memoizedState)?a.dehydrated:null))throw Error(s(317));a[ze]=r}else ia(),0==(128&r.flags)&&(r.memoizedState=null),r.flags|=4;ec(r),a=!1}else null!==Jn&&(zc(Jn),Jn=null),a=!0;if(!a)return 256&r.flags?(Ia(r),r):(Ia(r),null)}if(Ia(r),0!=(128&r.flags))return r.lanes=t,r;if(t=null!==n,e=null!==e&&null!==e.memoizedState,t){a=null,null!==(n=r.child).alternate&&null!==n.alternate.memoizedState&&null!==n.alternate.memoizedState.cachePool&&(a=n.alternate.memoizedState.cachePool.pool);var i=null;null!==n.memoizedState&&null!==n.memoizedState.cachePool&&(i=n.memoizedState.cachePool.pool),i!==a&&(n.flags|=2048)}return t!==e&&t&&(r.child.flags|=8192),Jl(r,r.updateQueue),ec(r),null;case 4:return te(),null===e&&Lu(r.stateNode.containerInfo),ec(r),null;case 10:return bs(r.type),ec(r),null;case 19:if(K(Oa),null===(a=r.memoizedState))return ec(r),null;if(n=0!=(128&r.flags),null===(i=a.rendering))if(n)Zl(a,!1);else{if(0!==hc||null!==e&&0!=(128&e.flags))for(e=r.child;null!==e;){if(null!==(i=Fa(e))){for(r.flags|=128,Zl(a,!1),e=i.updateQueue,r.updateQueue=e,Jl(r,e),r.subtreeFlags=0,e=t,t=r.child;null!==t;)jl(t,e),t=t.sibling;return q(Oa,1&Oa.current|2),r.child}e=e.sibling}null!==a.tail&&ue()>yc&&(r.flags|=128,n=!0,Zl(a,!1),r.lanes=4194304)}else{if(!n)if(null!==(e=Fa(i))){if(r.flags|=128,n=!0,e=e.updateQueue,r.updateQueue=e,Jl(r,e),Zl(a,!0),null===a.tail&&"hidden"===a.tailMode&&!i.alternate&&!Qn)return ec(r),null}else 2*ue()-a.renderingStartTime>yc&&536870912!==t&&(r.flags|=128,n=!0,Zl(a,!1),r.lanes=4194304);a.isBackwards?(i.sibling=r.child,r.child=i):(null!==(e=a.last)?e.sibling=i:r.child=i,a.last=i)}return null!==a.tail?(r=a.tail,a.rendering=r,a.tail=r.sibling,a.renderingStartTime=ue(),r.sibling=null,e=Oa.current,q(Oa,n?1&e|2:1&e),r):(ec(r),null);case 22:case 23:return Ia(r),Ma(),n=null!==r.memoizedState,null!==e?null!==e.memoizedState!==n&&(r.flags|=8192):n&&(r.flags|=8192),n?0!=(536870912&t)&&0==(128&r.flags)&&(ec(r),6&r.subtreeFlags&&(r.flags|=8192)):ec(r),null!==(t=r.updateQueue)&&Jl(r,t.retryQueue),t=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(t=e.memoizedState.cachePool.pool),n=null,null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(n=r.memoizedState.cachePool.pool),n!==t&&(r.flags|=2048),null!==e&&K(qa),null;case 24:return t=null,null!==e&&(t=e.memoizedState.cache),r.memoizedState.cache!==t&&(r.flags|=2048),bs(Ba),ec(r),null;case 25:return null}throw Error(s(156,r.tag))}function tc(e,r){switch(Kn(r),r.tag){case 1:return 65536&(e=r.flags)?(r.flags=-65537&e|128,r):null;case 3:return bs(Ba),te(),0!=(65536&(e=r.flags))&&0==(128&e)?(r.flags=-65537&e|128,r):null;case 26:case 27:case 5:return ae(r),null;case 13:if(Ia(r),null!==(e=r.memoizedState)&&null!==e.dehydrated){if(null===r.alternate)throw Error(s(340));ia()}return 65536&(e=r.flags)?(r.flags=-65537&e|128,r):null;case 19:return K(Oa),null;case 4:return te(),null;case 10:return bs(r.type),null;case 22:case 23:return Ia(r),Ma(),null!==e&&K(qa),65536&(e=r.flags)?(r.flags=-65537&e|128,r):null;case 24:return bs(Ba),null;default:return null}}function nc(e,r){switch(Kn(r),r.tag){case 3:bs(Ba),te();break;case 26:case 27:case 5:ae(r);break;case 4:te();break;case 13:Ia(r);break;case 19:K(Oa);break;case 10:bs(r.type);break;case 22:case 23:Ia(r),Ma(),null!==e&&K(qa);break;case 24:bs(Ba)}}var ac={getCacheForType:function(e){var r=ys(Ba),t=r.data.get(e);return void 0===t&&(t=e(),r.data.set(e,t)),t}},ic="function"==typeof WeakMap?WeakMap:Map,oc=0,sc=null,lc=null,cc=0,uc=0,fc=null,dc=!1,vc=0,hc=0,mc=0,pc=0,_c=0,Sc=0,gc=null,bc=null,wc=!1,kc=!1,Ec=0,yc=1/0,Dc=null,Ac=null,Cc=!1,Mc=null,xc=0,Tc=0,Hc=null,Nc=0,Rc=null;function Ic(){if(0!=(2&oc)&&0!==cc)return cc&-cc;if(null!==T.T){return 0!==$a?$a:Cu()}return Pe()}function Oc(){0===Sc&&(Sc=0==(536870912&cc)||Qn?He():536870912);var e=xa.current;return null!==e&&(e.flags|=32),Sc}function Fc(e,r,t){(e===sc&&2===uc||null!==e.cancelPendingCommit)&&(Gc(e,0),Wc(e,cc,Sc)),Uc(e,t),0!=(2&oc)&&e===sc||(e===sc&&(0==(2&oc)&&(pc|=t),4===hc&&Wc(e,cc,Sc)),Eu(e))}function Pc(e,r){if(0!=(6&oc))throw Error(s(327));var t=e.callbackNode;if(lu()&&e.callbackNode!==t)return null;var n=Me(e,e===sc?cc:0);if(0===n)return null;var a=0==(60&n)&&0==(n&e.expiredLanes)&&!r;if(r=a?function(e,r){var t=oc;oc|=2;var n=Yc(),a=Qc();sc===e&&cc===r||(Dc=null,yc=ue()+500,Gc(e,r));e:for(;;)try{if(0!==uc&&null!==lc){r=lc;var i=fc;r:switch(uc){case 1:case 6:uc=0,fc=null,au(e,r,i);break;case 2:if(ua(i)){uc=0,fc=null,nu(r);break}r=function(){2===uc&&sc===e&&(uc=7),Eu(e)},i.then(r,r);break e;case 3:uc=7;break e;case 4:uc=5;break e;case 7:ua(i)?(uc=0,fc=null,nu(r)):(uc=0,fc=null,au(e,r,i));break;case 5:var o=null;switch(lc.tag){case 26:o=lc.memoizedState;case 5:case 27:var l=lc;if(!o||Lf(o)){uc=0,fc=null;var c=l.sibling;if(null!==c)lc=c;else{var u=l.return;null!==u?(lc=u,iu(u)):lc=null}break r}}uc=0,fc=null,au(e,r,i);break;case 8:Xc(),hc=6;break e;default:throw Error(s(462))}}ru();break}catch(r){Kc(e,r)}return Ss(),T.H=n,T.A=a,oc=t,null!==lc?0:(sc=null,cc=0,Cn(),hc)}(e,n):Zc(e,n),0!==r)for(var i=a;;){if(6===r)Wc(e,n,0);else{if(a=e.current.alternate,i&&!Vc(a)){r=Zc(e,n),i=!1;continue}if(2===r){var o=Te(e,i=n);if(0!==o&&(n=o,r=Lc(e,i,o),i=!1,2!==r))continue}if(1===r){Gc(e,0),Wc(e,n,0);break}e.finishedWork=a,e.finishedLanes=n;e:{switch(i=e,r){case 0:case 1:throw Error(s(345));case 4:if((4194176&n)===n){Wc(i,n,Sc);break e}break;case 2:bc=null;break;case 3:case 5:break;default:throw Error(s(329))}if((62914560&n)===n&&10<(r=Ec+300-ue())){if(Wc(i,n,Sc),0!==Me(i,0))break e;i.timeoutHandle=cf(Bc.bind(null,i,a,bc,Dc,wc,n,Sc),r)}else Bc(i,a,bc,Dc,wc,n,Sc)}}break}return Eu(e),Au(e,ue()),e=e.callbackNode===t?Pc.bind(null,e):null}function Lc(e,r,t){var n=gc,a=e.current.memoizedState.isDehydrated;if(a&&(Gc(e,t).flags|=256),2!==(t=Zc(e,t))){if(dc&&!a)return e.errorRecoveryDisabledLanes|=r,pc|=r,4;e=bc,bc=n,null!==e&&zc(e)}return t}function zc(e){null===bc?bc=e:bc.push.apply(bc,e)}function Bc(e,r,t,n,a,i,o){var l=r.subtreeFlags;if((8192&l||16785408==(16785408&l))&&(zf={stylesheets:null,count:0,unsuspend:Bf},Il(r),null!==(r=function(){if(null===zf)throw Error(s(475));var e=zf;return e.stylesheets&&0===e.count&&Wf(e,e.stylesheets),0t?32:t,T.T=null,null===Mc)var i=!1;else{t=Hc,Hc=null;var o=Mc,l=xc;if(Mc=null,xc=0,0!=(6&oc))throw Error(s(331));var c=oc;if(oc|=4,Pl(o.current),xl(o,o.current,l,t),oc=c,yu(),be&&"function"==typeof be.onPostCommitFiberRoot)try{be.onPostCommitFiberRoot(ge,o)}catch(e){}i=!0}return i}finally{W.p=a,T.T=n,su(e,r)}}return!1}function cu(e,r,t){r=On(t,r),null!==(e=Hs(e,r=Po(e.stateNode,r,2),2))&&(Uc(e,2),Eu(e))}function uu(e,r,t){if(3===e.tag)cu(e,e,t);else for(;null!==r;){if(3===r.tag){cu(r,e,t);break}if(1===r.tag){var n=r.stateNode;if("function"==typeof r.type.getDerivedStateFromError||"function"==typeof n.componentDidCatch&&(null===Ac||!Ac.has(n))){e=On(t,e),null!==(n=Hs(r,t=Lo(2),2))&&(zo(t,n,r,e),Uc(n,2),Eu(n));break}}r=r.return}}function fu(e,r,t){var n=e.pingCache;if(null===n){n=e.pingCache=new ic;var a=new Set;n.set(r,a)}else void 0===(a=n.get(r))&&(a=new Set,n.set(r,a));a.has(t)||(dc=!0,a.add(t),e=du.bind(null,e,r,t),r.then(e,e))}function du(e,r,t){var n=e.pingCache;null!==n&&n.delete(r),e.pingedLanes|=e.suspendedLanes&t,2&oc?wc=!0:4&oc&&(kc=!0),pu(),sc===e&&(cc&t)===t&&(4===hc||3===hc&&(62914560&cc)===cc&&300>ue()-Ec?0==(2&oc)&&Gc(e,0):_c|=t),Eu(e)}function vu(e,r){0===r&&(r=Ne()),null!==(e=Tn(e,r))&&(Uc(e,r),Eu(e))}function hu(e){var r=e.memoizedState,t=0;null!==r&&(t=r.retryLane),vu(e,t)}function mu(e,r){var t=0;switch(e.tag){case 13:var n=e.stateNode,a=e.memoizedState;null!==a&&(t=a.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error(s(314))}null!==n&&n.delete(r),vu(e,t)}function pu(){if(50 title"):null)}function Lf(e){return"stylesheet"!==e.type||0!=(3&e.state.loading)}var zf=null;function Bf(){}function Vf(){if(this.count--,0===this.count)if(this.stylesheets)Wf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var Uf=null;function Wf(e,r){e.stylesheets=null,null!==e.unsuspend&&(e.count++,Uf=new Map,r.forEach(jf,e),Uf=null,Vf.call(e))}function jf(e,r){if(!(4&r.state.loading)){var t=Uf.get(e);if(t)var n=t.get(null);else{t=new Map,Uf.set(e,t);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i{ /** * @license React * react-dom.production.js @@ -8,7 +8,7 @@ var e,r,t={519:(e,r,t)=>{var n=t(397),a=t(572),i=t(147),o=t(443);function s(e){v * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -function n(e){var r="https://react.dev/errors/"+e;if(1{!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=t(519)},443:(e,r,t)=>{!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=t(53)},377:(e,r)=>{var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"); +function n(e){var r="https://react.dev/errors/"+e;if(1{!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=t(519)},443:(e,r,t)=>{!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=t(53)},377:(e,r)=>{var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"); /** * @license React * react-is.production.js @@ -26,7 +26,7 @@ function n(e){var r="https://react.dev/errors/"+e;if(1{e.exports=t(945)},350:(e,r)=>{ + */var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,k={};function E(e,r,t){this.props=e,this.context=r,this.refs=k,this.updater=t||b}function y(){}function D(e,r,t){this.props=e,this.context=r,this.refs=k,this.updater=t||b}E.prototype.isReactComponent={},E.prototype.setState=function(e,r){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,r,"setState")},E.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=E.prototype;var A=D.prototype=new y;A.constructor=D,w(A,E.prototype),A.isPureReactComponent=!0;var C=Array.isArray,M={H:null,A:null,T:null,S:null},x=Object.prototype.hasOwnProperty;function T(e,r,t,n,i,o,s){return t=s.ref,{$$typeof:a,type:e,key:r,ref:void 0!==t?t:null,props:s}}function H(e){return"object"==typeof e&&null!==e&&e.$$typeof===a}var N=/\/+/g;function R(e,r){return"object"==typeof e&&null!==e&&null!=e.key?(t=""+e.key,n={"=":"=0",":":"=2"},"$"+t.replace(/[=:]/g,(function(e){return n[e]}))):r.toString(36);var t,n}function I(){}function O(e,r,t,n,o){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l,c,u=!1;if(null===e)u=!0;else switch(s){case"bigint":case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case a:case i:u=!0;break;case m:return O((u=e._init)(e._payload),r,t,n,o)}}if(u)return o=o(e),u=""===n?"."+R(e,0):n,C(o)?(t="",null!=u&&(t=u.replace(N,"$&/")+"/"),O(o,r,t,"",(function(e){return e}))):null!=o&&(H(o)&&(l=o,c=t+(null==o.key||e&&e.key===o.key?"":(""+o.key).replace(N,"$&/")+"/")+u,o=T(l.type,c,null,0,0,0,l.props)),r.push(o)),1;u=0;var f,d=""===n?".":n+":";if(C(e))for(var v=0;v{e.exports=t(945)},350:(e,r)=>{ /** * @license React * scheduler.production.js @@ -38,4 +38,4 @@ function n(e){var r="https://react.dev/errors/"+e;if(1>>1,a=e[n];if(!(0>>1;ni(l,t))ci(u,l)?(e[n]=u,e[c]=t,n=c):(e[n]=l,e[s]=t,n=s);else{if(!(ci(u,t)))break e;e[n]=u,e[c]=t,n=c}}}return r}function i(e,r){var t=e.sortIndex-r.sortIndex;return 0!==t?t:e.id-r.id}if(r.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var o=performance;r.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();r.unstable_now=function(){return s.now()-l}}var c=[],u=[],f=1,d=null,v=3,h=!1,m=!1,p=!1,_="function"==typeof setTimeout?setTimeout:null,S="function"==typeof clearTimeout?clearTimeout:null,g="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var r=n(u);null!==r;){if(null===r.callback)a(u);else{if(!(r.startTime<=e))break;a(u),r.sortIndex=r.expirationTime,t(c,r)}r=n(u)}}function w(e){if(p=!1,b(e),!m)if(null!==n(c))m=!0,H();else{var r=n(u);null!==r&&N(w,r.startTime-e)}}var k,E=!1,y=-1,D=5,A=-1;function C(){return!(r.unstable_now()-Ae&&C());){var o=d.callback;if("function"==typeof o){d.callback=null,v=d.priorityLevel;var s=o(d.expirationTime<=e);if(e=r.unstable_now(),"function"==typeof s){d.callback=s,b(e),t=!0;break r}d===n(c)&&a(c),b(e)}else a(c);d=n(c)}if(null!==d)t=!0;else{var l=n(u);null!==l&&N(w,l.startTime-e),t=!1}}break e}finally{d=null,v=i,h=!1}t=void 0}}finally{t?k():E=!1}}}if("function"==typeof g)k=function(){g(M)};else if("undefined"!=typeof MessageChannel){var x=new MessageChannel,T=x.port2;x.port1.onmessage=M,k=function(){T.postMessage(null)}}else k=function(){_(M,0)};function H(){E||(E=!0,k())}function N(e,t){y=_((function(){e(r.unstable_now())}),t)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(e){e.callback=null},r.unstable_continueExecution=function(){m||h||(m=!0,H())},r.unstable_forceFrameRate=function(e){0>e||125o?(e.sortIndex=i,t(u,e),null===n(c)&&e===n(u)&&(p?(S(y),y=-1):p=!0,N(w,i-o))):(e.sortIndex=s,t(c,e),m||h||(m=!0,H())),e},r.unstable_shouldYield=C,r.unstable_wrapCallback=function(e){var r=v;return function(){var t=v;v=r;try{return e.apply(this,arguments)}finally{v=t}}}},572:(e,r,t)=>{e.exports=t(350)},496:(e,r,t)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.importFromOldV8CPUProfile=r.importFromChromeCPUProfile=r.importFromChromeTimeline=r.isChromeTimeline=void 0;const n=t(211),a=t(844),i=t(218),o=t(320);r.isChromeTimeline=function(e){if(!Array.isArray(e))return!1;if(e.length<1)return!1;const r=e[0];return"pid"in r&&"tid"in r&&"ph"in r&&"cat"in r&&!!e.find((e=>"CpuProfile"===e.name||"Profile"===e.name||"ProfileChunk"===e.name))},r.importFromChromeTimeline=function(e,r){const t=new Map,n=new Map,i=new Map;a.sortBy(e,(e=>e.ts));for(let r of e){if("CpuProfile"===r.name){const e=`${r.pid}:${r.tid}`,a=r.id||e;t.set(a,r.args.data.cpuProfile),n.set(a,e)}if("Profile"===r.name){const e=`${r.pid}:${r.tid}`;t.set(r.id||e,Object.assign({startTime:0,endTime:0,nodes:[],samples:[],timeDeltas:[]},r.args.data)),r.id&&n.set(r.id,`${r.pid}:${r.tid}`)}if("thread_name"===r.name&&i.set(`${r.pid}:${r.tid}`,r.args.name),"ProfileChunk"===r.name){const e=`${r.pid}:${r.tid}`,n=t.get(r.id||e);if(n){const e=r.args.data;e.cpuProfile&&(e.cpuProfile.nodes&&(n.nodes=n.nodes.concat(e.cpuProfile.nodes)),e.cpuProfile.samples&&(n.samples=n.samples.concat(e.cpuProfile.samples))),e.timeDeltas&&(n.timeDeltas=n.timeDeltas.concat(e.timeDeltas)),null!=e.startTime&&(n.startTime=e.startTime),null!=e.endTime&&(n.endTime=e.endTime)}else console.warn(`Ignoring ProfileChunk for undeclared Profile with id ${r.id||e}`)}}if(t.size>0){const e=[];let o=0;return a.itForEach(t.keys(),(a=>{let s=null,l=n.get(a);l&&(s=i.get(l)||null);const c=f(t.get(a));s&&t.size>1?(c.setName(`${r} - ${s}`),"CrRendererMain"===s&&(o=e.length)):c.setName(`${r}`),e.push(c)})),{name:r,indexToView:o,profiles:e}}throw new Error("Could not find CPU profile in Timeline")};const s=new Map;function l(e){return a.getOrInsert(s,e,(e=>{const r=e.functionName||"(anonymous)",t=e.url,n=e.lineNumber,a=e.columnNumber;return{key:`${r}:${t}:${n}:${a}`,name:r,file:t,line:n,col:a}}))}function c(e){const{functionName:r,url:t}=e;return"native dummy.js"===t||("(root)"===r||"(idle)"===r)}function u(e){return"(garbage collector)"===e||"(program)"===e}function f(e){const r=new n.CallTreeProfileBuilder(e.endTime-e.startTime),t=new Map;for(let r of e.nodes)t.set(r.id,r);for(let r of e.nodes)if("number"==typeof r.parent&&(r.parent=t.get(r.parent)),r.children)for(let e of r.children){const n=t.get(e);n&&(n.parent=r)}const o=[],s=[];let f=e.timeDeltas[0],d=f,v=NaN;for(let r=0;r0&&a.lastOf(h)!=d;){const e=l(h.pop().callFrame);r.leaveFrame(e,n)}const v=[];for(let e=f;e&&e!=d&&!c(e.callFrame);e=u(e.callFrame.functionName)?a.lastOf(h):e.parent||null)v.push(e);v.reverse();for(let e of v)r.enterFrame(l(e.callFrame),n);h=h.concat(v)}for(let e=h.length-1;e>=0;e--)r.leaveFrame(l(h[e].callFrame),a.lastOf(s));return r.setValueFormatter(new i.TimeFormatter("microseconds")),r.build()}r.importFromChromeCPUProfile=f,r.importFromOldV8CPUProfile=function(e){return f(o.chromeTreeToNodes(e))}},320:(e,r)=>{function t(e){const r=[];return function e(t){r.push({id:t.id,callFrame:{columnNumber:0,functionName:t.functionName,lineNumber:t.lineNumber,scriptId:t.scriptId,url:t.url},hitCount:t.hitCount,children:t.children.map((e=>e.id))}),t.children.forEach(e)}(e),r}Object.defineProperty(r,"__esModule",{value:!0}),r.chromeTreeToNodes=void 0,r.chromeTreeToNodes=function(e){return{samples:e.samples,startTime:1e6*e.startTime,endTime:1e6*e.endTime,nodes:t(e.head),timeDeltas:(r=e.timestamps,n=e.startTime,r.map(((e,t)=>e-(0===t?1e6*n:r[t-1]))))};var r,n}},765:(e,r)=>{let t;Object.defineProperty(r,"__esModule",{value:!0}),r.demangleCpp=void 0;const n=new Map;r.demangleCpp=function(e){if(e.startsWith("__Z")){let r=n.get(e);void 0!==r||(t||(t=new Function("exports",a)()),r=t(e.slice(1)),r="(null)"===r?e:r,n.set(e,r)),e=r}return e};const a='\nreturn function(){function r(r){eval.call(null,r)}function a(r){throw print(r+":\\n"+(new Error).stack),ke=!0,"Assertion: "+r}function e(r,e){r||a("Assertion failed: "+e)}function i(r,a,i,v){function t(r,a){if("string"==a){var e=Oe;return le.stackAlloc(r.length+1),A(r,e),e}return r}function f(r,a){return"string"==a?s(r):r}try{func=ce.Module["_"+r]}catch(r){}e(func,"Cannot call unknown function "+r+" (perhaps LLVM optimizations or closure removed it?)");var _=0,n=v?v.map(function(r){return t(r,i[_++])}):[];return f(func.apply(null,n),a)}function v(r,a,e){return function(){return i(r,a,e,Array.prototype.slice.call(arguments))}}function t(r,e,i,v){switch(i=i||"i8","*"===i[i.length-1]&&(i="i32"),i){case"i1":Ae[r]=e;break;case"i8":Ae[r]=e;break;case"i16":ye[r>>1]=e;break;case"i32":Se[r>>2]=e;break;case"i64":Se[r>>2]=e;break;case"float":Ce[r>>2]=e;break;case"double":ze[0]=e,Se[r>>2]=xe[0],Se[r+4>>2]=xe[1];break;default:a("invalid type for setValue: "+i)}}function f(r,e,i){switch(e=e||"i8","*"===e[e.length-1]&&(e="i32"),e){case"i1":return Ae[r];case"i8":return Ae[r];case"i16":return ye[r>>1];case"i32":return Se[r>>2];case"i64":return Se[r>>2];case"float":return Ce[r>>2];case"double":return xe[0]=Se[r>>2],xe[1]=Se[r+4>>2],ze[0];default:a("invalid type for setValue: "+e)}return null}function _(r,a,e){var i,v;"number"==typeof r?(i=!0,v=r):(i=!1,v=r.length);var f="string"==typeof a?a:null,_=[Jr,le.stackAlloc,le.staticAlloc][void 0===e?we:e](Math.max(v,f?1:a.length));if(i)return Fa(_,0,v),_;for(var s,n=0;n>12<<12}function l(){for(;Le<=Ie;)Le=o(2*Le);var r=Ae,a=new ArrayBuffer(Le);Ae=new Int8Array(a),ye=new Int16Array(a),Se=new Int32Array(a),ge=new Uint8Array(a),me=new Uint16Array(a),Me=new Uint32Array(a),Ce=new Float32Array(a),Re=new Float64Array(a),Ae.set(r)}function b(r){for(;r.length>0;){var a=r.shift(),e=a.func;"number"==typeof e&&(e=pe[e]),e(void 0===a.arg?null:a.arg)}}function k(){b(Ve)}function u(){b(Be),be.print()}function c(r,a){return Array.prototype.slice.call(Ae.subarray(r,r+a))}function h(r,a){for(var e=new Uint8Array(a),i=0;i255&&(v&=255),e.push(v),i+=1}return a||e.push(0),e}function E(r){for(var a=[],e=0;e255&&(i&=255),a.push(String.fromCharCode(i))}return a.join("")}function A(r,a,e){for(var i=0;i255&&(v&=255),Ae[a+i]=v,i+=1}e||(Ae[a+i]=0)}function g(r,a,e,i){return r>=0?r:a<=32?2*Math.abs(1<=v&&(a<=32||r>v)&&(r=-2*v+r),r}function m(r,a,e){if(0==(0|r)|0==(0|a)|0==(0|e))var i=0;else{Se[r>>2]=0,Se[r+4>>2]=a,Se[r+8>>2]=e;var i=1}var i;return i}function S(r,a,e){if(0==(0|r)|(0|a)<0|0==(0|e))var i=0;else{Se[r>>2]=41,Se[r+4>>2]=a,Se[r+8>>2]=e;var i=1}var i;return i}function M(r,a,e){if(0==(0|r)|0==(0|e))var i=0;else{Se[r>>2]=6,Se[r+4>>2]=a,Se[r+8>>2]=e;var i=1}var i;return i}function C(r,a,e){if(0==(0|r)|0==(0|e))var i=0;else{Se[r>>2]=7,Se[r+4>>2]=a,Se[r+8>>2]=e;var i=1}var i;return i}function R(r,a){var e,i=0==(0|a);do if(i)var v=0;else{var e=(r+32|0)>>2,t=Se[e];if((0|t)>=(0|Se[r+36>>2])){var v=0;break}var f=(t<<2)+Se[r+28>>2]|0;Se[f>>2]=a;var _=Se[e]+1|0;Se[e]=_;var v=1}while(0);var v;return v}function T(r,a){var e,e=(r+12|0)>>2,i=Se[e],v=i+1|0;Se[e]=v;var t=Ae[i]<<24>>24==95;do if(t){var f=i+2|0;if(Se[e]=f,Ae[v]<<24>>24!=90){var _=0;break}var s=O(r,a),_=s}else var _=0;while(0);var _;return _}function O(r,a){var e=r+12|0,i=Ae[Se[e>>2]];r:do if(i<<24>>24==71||i<<24>>24==84)var v=Tr(r),t=v;else{var f=Ar(r),_=0==(0|f)|0==(0|a);do if(!_){if(0!=(1&Se[r+8>>2]|0))break;var s=Me[f>>2],n=(s-25|0)>>>0<3;a:do if(n)for(var o=f;;){var o,l=Me[o+4>>2],b=Me[l>>2];if((b-25|0)>>>0>=3){var k=l,u=b;break a}var o=l}else var k=f,u=s;while(0);var u,k;if(2!=(0|u)){var t=k;break r}var c=k+8|0,h=Me[c>>2],d=(Se[h>>2]-25|0)>>>0<3;a:do if(d)for(var w=h;;){var w,p=Me[w+4>>2];if((Se[p>>2]-25|0)>>>0>=3){var E=p;break a}var w=p}else var E=h;while(0);var E;Se[c>>2]=E;var t=k;break r}while(0);var A=Ae[Se[e>>2]];if(A<<24>>24==0||A<<24>>24==69){var t=f;break}var g=Or(f),y=Sr(r,g),m=D(r,3,f,y),t=m}while(0);var t;return t}function N(r){var a,e,i=Oe;Oe+=4;var v=i,e=v>>2,a=(r+12|0)>>2,t=Me[a],f=Ae[t],_=f<<24>>24;r:do if(f<<24>>24==114||f<<24>>24==86||f<<24>>24==75){var s=I(r,v,0);if(0==(0|s)){var n=0;break}var o=N(r);Se[s>>2]=o;var l=Se[e],b=R(r,l);if(0==(0|b)){var n=0;break}var n=Se[e]}else{do{if(97==(0|_)||98==(0|_)||99==(0|_)||100==(0|_)||101==(0|_)||102==(0|_)||103==(0|_)||104==(0|_)||105==(0|_)||106==(0|_)||108==(0|_)||109==(0|_)||110==(0|_)||111==(0|_)||115==(0|_)||116==(0|_)||118==(0|_)||119==(0|_)||120==(0|_)||121==(0|_)||122==(0|_)){var k=ai+20*(_-97)|0,u=P(r,k);Se[e]=u;var c=r+48|0,h=Se[c>>2]+Se[Se[u+4>>2]+4>>2]|0;Se[c>>2]=h;var d=Se[a]+1|0;Se[a]=d;var n=u;break r}if(117==(0|_)){Se[a]=t+1|0;var w=L(r),p=D(r,34,w,0);Se[e]=p;var E=p}else if(70==(0|_)){var A=F(r);Se[e]=A;var E=A}else if(48==(0|_)||49==(0|_)||50==(0|_)||51==(0|_)||52==(0|_)||53==(0|_)||54==(0|_)||55==(0|_)||56==(0|_)||57==(0|_)||78==(0|_)||90==(0|_)){var g=X(r);Se[e]=g;var E=g}else if(65==(0|_)){var y=j(r);Se[e]=y;var E=y}else if(77==(0|_)){var m=U(r);Se[e]=m;var E=m}else if(84==(0|_)){var S=x(r);if(Se[e]=S,Ae[Se[a]]<<24>>24!=73){var E=S;break}var M=R(r,S);if(0==(0|M)){var n=0;break r}var C=Se[e],T=z(r),O=D(r,4,C,T);Se[e]=O;var E=O}else if(83==(0|_)){var B=ge[t+1|0];if((B-48&255&255)<10|B<<24>>24==95|(B-65&255&255)<26){var H=V(r,0);if(Se[e]=H,Ae[Se[a]]<<24>>24!=73){var n=H;break r}var K=z(r),Y=D(r,4,H,K);Se[e]=Y;var E=Y}else{var G=X(r);if(Se[e]=G,0==(0|G)){var E=0;break}if(21==(0|Se[G>>2])){var n=G;break r}var E=G}}else if(80==(0|_)){Se[a]=t+1|0;var W=N(r),Z=D(r,29,W,0);Se[e]=Z;var E=Z}else if(82==(0|_)){Se[a]=t+1|0;var Q=N(r),q=D(r,30,Q,0);Se[e]=q;var E=q}else if(67==(0|_)){Se[a]=t+1|0;var $=N(r),J=D(r,31,$,0);Se[e]=J;var E=J}else if(71==(0|_)){Se[a]=t+1|0;var rr=N(r),ar=D(r,32,rr,0);Se[e]=ar;var E=ar}else{if(85!=(0|_)){var n=0;break r}Se[a]=t+1|0;var er=L(r);Se[e]=er;var ir=N(r),vr=Se[e],tr=D(r,28,ir,vr);Se[e]=tr;var E=tr}}while(0);var E,fr=R(r,E);if(0==(0|fr)){var n=0;break}var n=Se[e]}while(0);var n;return Oe=i,n}function I(r,a,e){for(var i,v=r+12|0,t=0!=(0|e),f=t?25:22,i=(r+48|0)>>2,_=t?26:23,s=t?27:24,n=a;;){var n,o=Se[v>>2],l=Ae[o];if(l<<24>>24!=114&&l<<24>>24!=86&&l<<24>>24!=75){var b=n;break}var k=o+1|0;if(Se[v>>2]=k,l<<24>>24==114){var u=Se[i]+9|0;Se[i]=u;var c=f}else if(l<<24>>24==86){var h=Se[i]+9|0;Se[i]=h;var c=_}else{var d=Se[i]+6|0;Se[i]=d;var c=s}var c,w=D(r,c,0,0);if(Se[n>>2]=w,0==(0|w)){var b=0;break}var n=w+4|0}var b;return b}function P(r,a){var e=0==(0|a);do if(e)var i=0;else{var v=J(r);if(0==(0|v)){var i=0;break}Se[v>>2]=33,Se[v+4>>2]=a;var i=v}while(0);var i;return i}function D(r,a,e,i){var v,t;do{if(1==(0|a)||2==(0|a)||3==(0|a)||4==(0|a)||10==(0|a)||28==(0|a)||37==(0|a)||43==(0|a)||44==(0|a)||45==(0|a)||46==(0|a)||47==(0|a)||48==(0|a)||49==(0|a)||50==(0|a)){if(0==(0|e)|0==(0|i)){var f=0;t=7;break}t=5;break}if(8==(0|a)||9==(0|a)||11==(0|a)||12==(0|a)||13==(0|a)||14==(0|a)||15==(0|a)||16==(0|a)||17==(0|a)||18==(0|a)||19==(0|a)||20==(0|a)||29==(0|a)||30==(0|a)||31==(0|a)||32==(0|a)||34==(0|a)||38==(0|a)||39==(0|a)||42==(0|a)){if(0==(0|e)){var f=0;t=7;break}t=5;break}if(36==(0|a)){if(0==(0|i)){var f=0;t=7;break}t=5;break}if(35==(0|a)||22==(0|a)||23==(0|a)||24==(0|a)||25==(0|a)||26==(0|a)||27==(0|a))t=5;else{var f=0;t=7}}while(0);do if(5==t){var _=J(r),v=_>>2;if(0==(0|_)){var f=0;break}Se[v]=a,Se[v+1]=e,Se[v+2]=i;var f=_}while(0);var f;return f}function L(r){var a=sr(r);if((0|a)<1)var e=0;else{var i=Rr(r,a);Se[r+44>>2]=i;var e=i}var e;return e}function F(r){var a,a=(r+12|0)>>2,e=Se[a],i=e+1|0;if(Se[a]=i,Ae[e]<<24>>24==70){if(Ae[i]<<24>>24==89){var v=e+2|0;Se[a]=v}var t=Sr(r,1),f=Se[a],_=f+1|0;Se[a]=_;var s=Ae[f]<<24>>24==69?t:0,n=s}else var n=0;var n;return n}function X(r){var a=Ar(r);return a}function j(r){var a,a=(r+12|0)>>2,e=Se[a],i=e+1|0;Se[a]=i;var v=Ae[e]<<24>>24==65;do if(v){var t=Ae[i];if(t<<24>>24==95)var f=0;else if((t-48&255&255)<10){for(var _=i;;){var _,s=_+1|0;if(Se[a]=s,(Ae[s]-48&255&255)>=10)break;var _=s}var n=s-i|0,o=lr(r,i,n);if(0==(0|o)){var l=0;break}var f=o}else{var b=nr(r);if(0==(0|b)){var l=0;break}var f=b}var f,k=Se[a],u=k+1|0;if(Se[a]=u,Ae[k]<<24>>24!=95){var l=0;break}var c=N(r),h=D(r,36,f,c),l=h}else var l=0;while(0);var l;return l}function U(r){var a=Oe;Oe+=4;var e=a,i=r+12|0,v=Se[i>>2],t=v+1|0;Se[i>>2]=t;var f=Ae[v]<<24>>24==77;r:do if(f){var _=N(r),s=I(r,e,1);if(0==(0|s)){var n=0;break}var o=N(r);Se[s>>2]=o;var l=(0|s)==(0|e);do if(!l){if(35==(0|Se[o>>2]))break;var b=Se[e>>2],k=R(r,b);if(0==(0|k)){var n=0;break r}}while(0);var u=Se[e>>2],c=D(r,37,_,u),n=c}else var n=0;while(0);var n;return Oe=a,n}function x(r){var a,a=(r+12|0)>>2,e=Se[a],i=e+1|0;Se[a]=i;var v=Ae[e]<<24>>24==84;do if(v){if(Ae[i]<<24>>24==95)var t=0,f=i;else{var _=sr(r);if((0|_)<0){var s=0;break}var t=_+1|0,f=Se[a]}var f,t;if(Se[a]=f+1|0,Ae[f]<<24>>24!=95){var s=0;break}var n=r+40|0,o=Se[n>>2]+1|0;Se[n>>2]=o;var l=Er(r,t),s=l}else var s=0;while(0);var s;return s}function z(r){var a,e=Oe;Oe+=4;var i=e,v=r+44|0,t=Se[v>>2],a=(r+12|0)>>2,f=Se[a],_=f+1|0;Se[a]=_;var s=Ae[f]<<24>>24==73;r:do if(s){Se[i>>2]=0;for(var n=i;;){var n,o=_r(r);if(0==(0|o)){var l=0;break r}var b=D(r,39,o,0);if(Se[n>>2]=b,0==(0|b)){var l=0;break r}var k=Se[a];if(Ae[k]<<24>>24==69)break;var n=b+8|0}var u=k+1|0;Se[a]=u,Se[v>>2]=t;var l=Se[i>>2]}else var l=0;while(0);var l;return Oe=e,l}function V(r,a){var e,e=(r+12|0)>>2,i=Se[e],v=i+1|0;Se[e]=v;var t=Ae[i]<<24>>24==83;r:do if(t){var f=i+2|0;Se[e]=f;var _=ge[v];if(_<<24>>24==95)var s=0;else{if(!((_-48&255&255)<10|(_-65&255&255)<26)){var n=8&Se[r+8>>2],o=n>>>3,l=0!=(0|n)|0==(0|a);do if(l)var b=o;else{if((Ae[f]-67&255&255)>=2){var b=o;break}var b=1}while(0);for(var b,k=0|ei;;){var k;if(k>>>0>=(ei+196|0)>>>0){var u=0;break r}if(_<<24>>24==Ae[0|k]<<24>>24)break;var k=k+28|0}var c=Se[k+20>>2];if(0!=(0|c)){var h=Se[k+24>>2],d=fr(r,c,h);Se[r+44>>2]=d}if(0==(0|b))var w=k+8|0,p=k+4|0;else var w=k+16|0,p=k+12|0;var p,w,E=Se[w>>2],A=Se[p>>2],g=r+48|0,y=Se[g>>2]+E|0;Se[g>>2]=y;var m=fr(r,A,E),u=m;break}for(var S=_,M=0,C=f;;){var C,M,S;if((S-48&255&255)<10)var R=36*M-48|0;else{if((S-65&255&255)>=26){var u=0;break r}var R=36*M-55|0}var R,T=(S<<24>>24)+R|0;if((0|T)<0){var u=0;break r}var O=C+1|0;Se[e]=O;var N=ge[C];if(N<<24>>24==95)break;var S=N,M=T,C=O}var s=T+1|0}var s;if((0|s)>=(0|Se[r+32>>2])){var u=0;break}var I=r+40|0,P=Se[I>>2]+1|0;Se[I>>2]=P;var u=Se[Se[r+28>>2]+(s<<2)>>2]}else var u=0;while(0);var u;return u}function B(r,a,e,i){var v,t,f,_,s=Oe;Oe+=28;var n,o=s,_=o>>2;Se[_]=r;var l=e+1|0,f=(o+12|0)>>2;Se[f]=l;var b=Jr(l),t=(o+4|0)>>2;if(Se[t]=b,0==(0|b))var k=0,u=1;else{var v=(o+8|0)>>2;Se[v]=0,Se[_+4]=0,Se[_+5]=0;var c=o+24|0;Se[c>>2]=0,H(o,a);var h=Me[t],d=0==(0|h);do{if(!d){var w=Me[v];if(w>>>0>=Me[f]>>>0){n=5;break}Se[v]=w+1|0,Ae[h+w|0]=0,n=6;break}n=5}while(0);5==n&&Y(o,0);var p=Se[t],E=0==(0|p)?Se[c>>2]:Se[f],k=p,u=E}var u,k;return Se[i>>2]=u,Oe=s,k}function H(r,a){var e,i,v,t,f,_,s,n,o,l,b,k,u,c,h,d,w,p,E,A,g,y,m,S,M,C,R,T,O,N,I,P,D,L,F,X,j,U,x,z,V,B,K,G,W,J,vr,tr,fr,_r,sr,nr,or,lr,br,kr,ur,cr,hr,dr,wr,pr=a>>2,Er=r>>2,Ar=Oe;Oe+=184;var gr,yr=Ar,wr=yr>>2,mr=Ar+64,dr=mr>>2,Sr=Ar+72,Mr=Ar+88,Cr=Ar+104,hr=Cr>>2,Rr=Ar+168,Tr=0==(0|a);r:do if(Tr)Z(r);else{var cr=(r+4|0)>>2,Or=Me[cr];if(0==(0|Or))break;var Nr=0|a,Ir=Me[Nr>>2];a:do{if(0==(0|Ir)){if(0!=(4&Se[Er]|0)){var Pr=Se[pr+1],Dr=Se[pr+2];q(r,Pr,Dr);break r}var ur=(r+8|0)>>2,Lr=Me[ur],Fr=a+8|0,Xr=Me[Fr>>2];if((Xr+Lr|0)>>>0>Me[Er+3]>>>0){var jr=Se[pr+1];Q(r,jr,Xr);break r}var Ur=Or+Lr|0,xr=Se[pr+1];Pa(Ur,xr,Xr,1);var zr=Se[ur]+Se[Fr>>2]|0;Se[ur]=zr;break r}if(1==(0|Ir)||2==(0|Ir)){var Vr=Se[pr+1];H(r,Vr);var Br=0==(4&Se[Er]|0),Hr=Me[cr],Kr=0!=(0|Hr);e:do if(Br){do if(Kr){var kr=(r+8|0)>>2,Yr=Me[kr];if((Yr+2|0)>>>0>Me[Er+3]>>>0)break;var Gr=Hr+Yr|0;oe=14906,Ae[Gr]=255&oe,oe>>=8,Ae[Gr+1]=255&oe;var Wr=Se[kr]+2|0;Se[kr]=Wr;break e}while(0);Q(r,0|He.__str120,2)}else{do if(Kr){var Zr=r+8|0,Qr=Me[Zr>>2];if(Qr>>>0>=Me[Er+3]>>>0)break;Se[Zr>>2]=Qr+1|0,Ae[Hr+Qr|0]=46;break e}while(0);Y(r,46)}while(0);var qr=Se[pr+2];H(r,qr);break r}if(3==(0|Ir)){for(var br=(r+20|0)>>2,$r=Me[br],lr=(r+16|0)>>2,Jr=a,ra=0,aa=$r;;){var aa,ra,Jr,ea=Me[Jr+4>>2];if(0==(0|ea)){var ia=ra,va=0;gr=33;break}if(ra>>>0>3){Z(r);break r}var ta=(ra<<4)+yr|0;Se[ta>>2]=aa,Se[br]=ta,Se[((ra<<4)+4>>2)+wr]=ea,Se[((ra<<4)+8>>2)+wr]=0;var fa=Me[lr];Se[((ra<<4)+12>>2)+wr]=fa;var _a=ra+1|0,sa=0|ea,na=Me[sa>>2];if((na-25|0)>>>0>=3){gr=25;break}var Jr=ea,ra=_a,aa=ta}e:do if(25==gr){if(4==(0|na)){Se[dr]=fa,Se[lr]=mr,Se[dr+1]=ea;var oa=Se[sa>>2],la=mr}else var oa=na,la=fa;var la,oa;if(2!=(0|oa)){var ia=_a,va=sa;break}for(var ba=_a,ka=ea+8|0;;){var ka,ba,ua=Me[ka>>2];if((Se[ua>>2]-25|0)>>>0>=3){var ia=ba,va=sa;break e}if(ba>>>0>3)break;var ca=(ba<<4)+yr|0,ha=ba-1|0,da=(ha<<4)+yr|0,or=ca>>2,nr=da>>2;Se[or]=Se[nr],Se[or+1]=Se[nr+1],Se[or+2]=Se[nr+2],Se[or+3]=Se[nr+3],Se[ca>>2]=da,Se[br]=ca,Se[((ha<<4)+4>>2)+wr]=ua,Se[((ha<<4)+8>>2)+wr]=0,Se[((ha<<4)+12>>2)+wr]=la;var ba=ba+1|0,ka=ua+4|0}Z(r);break r}while(0);var va,ia,wa=Se[pr+2];if(H(r,wa),4==(0|Se[va>>2])){var pa=Se[dr];Se[lr]=pa}var Ea=0==(0|ia);e:do if(!Ea)for(var Aa=r+8|0,ga=r+12|0,ya=ia;;){var ya,ma=ya-1|0;if(0==(0|Se[((ma<<4)+8>>2)+wr])){var Sa=Me[cr],Ma=0==(0|Sa);do{if(!Ma){var Ca=Me[Aa>>2];if(Ca>>>0>=Me[ga>>2]>>>0){gr=41;break}Se[Aa>>2]=Ca+1|0,Ae[Sa+Ca|0]=32,gr=42;break}gr=41}while(0);41==gr&&Y(r,32);var Ra=Se[((ma<<4)+4>>2)+wr];$(r,Ra)}if(0==(0|ma))break e;var ya=ma}while(0);Se[br]=$r;break r}if(4==(0|Ir)){var sr=(r+20|0)>>2,Ta=Se[sr];Se[sr]=0;var Oa=Se[pr+1];H(r,Oa);var Na=Me[cr],Ia=0==(0|Na);do{if(!Ia){var _r=(r+8|0)>>2,Da=Me[_r],La=0==(0|Da);do if(!La){if(Ae[Na+(Da-1)|0]<<24>>24!=60)break;Da>>>0>>0?(Se[_r]=Da+1|0,Ae[Na+Da|0]=32):Y(r,32)}while(0);var Fa=Me[cr];if(0==(0|Fa)){gr=54;break}var Xa=Me[_r];if(Xa>>>0>=Me[Er+3]>>>0){gr=54;break}Se[_r]=Xa+1|0,Ae[Fa+Xa|0]=60,gr=55;break}gr=54}while(0);54==gr&&Y(r,60);var ja=Se[pr+2];H(r,ja);var Ua=Me[cr],xa=0==(0|Ua);do{if(!xa){var fr=(r+8|0)>>2,za=Me[fr],Va=0==(0|za);do if(!Va){if(Ae[Ua+(za-1)|0]<<24>>24!=62)break;za>>>0>>0?(Se[fr]=za+1|0,Ae[Ua+za|0]=32):Y(r,32)}while(0);var Ba=Me[cr];if(0==(0|Ba)){gr=64;break}var Ha=Me[fr];if(Ha>>>0>=Me[Er+3]>>>0){gr=64;break}Se[fr]=Ha+1|0,Ae[Ba+Ha|0]=62,gr=65;break}gr=64}while(0);64==gr&&Y(r,62),Se[sr]=Ta;break r}if(5==(0|Ir)){var tr=(r+16|0)>>2,Ka=Me[tr];if(0==(0|Ka)){Z(r);break r}for(var Ya=Se[pr+1],Ga=Se[Ka+4>>2];;){var Ga,Ya,Wa=Se[Ga+8>>2];if(0==(0|Wa))break;if(39!=(0|Se[Wa>>2])){Z(r);break r}if((0|Ya)<1){if(0!=(0|Ya))break;var Za=Se[Ka>>2];Se[tr]=Za;var Qa=Se[Wa+4>>2];H(r,Qa),Se[tr]=Ka;break r}var Ya=Ya-1|0,Ga=Wa}Z(r);break r}if(6==(0|Ir)){var qa=Se[pr+2];H(r,qa);break r}if(7==(0|Ir)){var $a=r+8|0,Ja=Me[$a>>2];Ja>>>0>>0?(Se[$a>>2]=Ja+1|0,Ae[Or+Ja|0]=126):Y(r,126);var re=Se[pr+2];H(r,re);break r}if(8==(0|Ir)){var vr=(r+8|0)>>2,ae=Me[vr];if((ae+11|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str121,11);else{for(var ee=Or+ae|0,ie=0|He.__str121,ve=ee,te=ie+11;ie>2,se=Me[J];if((se+8|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str122,8);else{var ne=Or+se|0,le=0|ne;oe=542397526,Ae[le]=255&oe,oe>>=8,Ae[le+1]=255&oe,oe>>=8,Ae[le+2]=255&oe,oe>>=8,Ae[le+3]=255&oe;var be=ne+4|0;oe=544370534,Ae[be]=255&oe,oe>>=8,Ae[be+1]=255&oe,oe>>=8,Ae[be+2]=255&oe,oe>>=8,Ae[be+3]=255&oe;var ke=Se[J]+8|0;Se[J]=ke}var ue=Se[pr+1];H(r,ue);break r}if(10==(0|Ir)){var W=(r+8|0)>>2,ce=Me[W],he=r+12|0;if((ce+24|0)>>>0>Me[he>>2]>>>0)Q(r,0|He.__str123,24);else{var de=Or+ce|0;Pa(de,0|He.__str123,24,1);var we=Se[W]+24|0;Se[W]=we}var pe=Se[pr+1];H(r,pe);var Ee=Me[cr],ge=0==(0|Ee);do{if(!ge){var ye=Me[W];if((ye+4|0)>>>0>Me[he>>2]>>>0){gr=96;break}var me=Ee+ye|0;oe=762210605,Ae[me]=255&oe,oe>>=8,Ae[me+1]=255&oe,oe>>=8,Ae[me+2]=255&oe,oe>>=8,Ae[me+3]=255&oe;var Ce=Se[W]+4|0;Se[W]=Ce,gr=97;break}gr=96}while(0);96==gr&&Q(r,0|He.__str124,4);var Re=Se[pr+2];H(r,Re);break r}if(11==(0|Ir)){var G=(r+8|0)>>2,Te=Me[G];if((Te+13|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str125,13);else{for(var Ne=Or+Te|0,ie=0|He.__str125,ve=Ne,te=ie+13;ie>2,De=Me[K];if((De+18|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str126,18);else{for(var Le=Or+De|0,ie=0|He.__str126,ve=Le,te=ie+18;ie>2,je=Me[B];if((je+16|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str127,16);else{for(var Ue=Or+je|0,ie=0|He.__str127,ve=Ue,te=ie+16;ie>2,Ve=Me[V];if((Ve+21|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str128,21);else{var Be=Or+Ve|0;Pa(Be,0|He.__str128,21,1);var Ke=Se[V]+21|0;Se[V]=Ke}var Ye=Se[pr+1];H(r,Ye);break r}if(15==(0|Ir)){var z=(r+8|0)>>2,Ge=Me[z];if((Ge+17|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str129,17);else{for(var We=Or+Ge|0,ie=0|He.__str129,ve=We,te=ie+17;ie>2,qe=Me[x];if((qe+26|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str130,26);else{var $e=Or+qe|0;Pa($e,0|He.__str130,26,1);var Je=Se[x]+26|0;Se[x]=Je}var ri=Se[pr+1];H(r,ri);break r}if(17==(0|Ir)){var U=(r+8|0)>>2,ai=Me[U];if((ai+15|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str131,15);else{for(var ei=Or+ai|0,ie=0|He.__str131,ve=ei,te=ie+15;ie>2,ti=Me[j];if((ti+19|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str132,19);else{for(var fi=Or+ti|0,ie=0|He.__str132,ve=fi,te=ie+19;ie>2,ni=Me[X];if((ni+24|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str133,24);else{var oi=Or+ni|0;Pa(oi,0|He.__str133,24,1);var li=Se[X]+24|0;Se[X]=li}var bi=Se[pr+1];H(r,bi);break r}if(20==(0|Ir)){var F=(r+8|0)>>2,ki=Me[F];if((ki+17|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str134,17);else{for(var ui=Or+ki|0,ie=0|He.__str134,ve=ui,te=ie+17;ie>2,di=Me[L],wi=a+8|0,pi=Me[wi>>2];if((pi+di|0)>>>0>Me[Er+3]>>>0){var Ei=Se[pr+1];Q(r,Ei,pi);break r}var Ai=Or+di|0,gi=Se[pr+1];Pa(Ai,gi,pi,1);var yi=Se[L]+Se[wi>>2]|0;Se[L]=yi;break r}if(22==(0|Ir)||23==(0|Ir)||24==(0|Ir)){for(var mi=r+20|0;;){var mi,Si=Me[mi>>2];if(0==(0|Si))break a;if(0==(0|Se[Si+8>>2])){var Mi=Me[Se[Si+4>>2]>>2];if((Mi-22|0)>>>0>=3)break a;if((0|Mi)==(0|Ir))break}var mi=0|Si}var Ci=Se[pr+1];H(r,Ci);break r}if(25!=(0|Ir)&&26!=(0|Ir)&&27!=(0|Ir)&&28!=(0|Ir)&&29!=(0|Ir)&&30!=(0|Ir)&&31!=(0|Ir)&&32!=(0|Ir)){if(33==(0|Ir)){var D=(r+8|0)>>2,Ri=Me[D],P=(a+4|0)>>2,I=Me[P]>>2;if(0==(4&Se[Er]|0)){var Ti=Me[I+1];if((Ti+Ri|0)>>>0>Me[Er+3]>>>0){var Oi=Se[I];Q(r,Oi,Ti);break r}var Ni=Or+Ri|0,Ii=Se[I];Pa(Ni,Ii,Ti,1);var Pi=Se[D]+Se[Se[P]+4>>2]|0;Se[D]=Pi;break r}var Di=Me[I+3];if((Di+Ri|0)>>>0>Me[Er+3]>>>0){var Li=Se[I+2];Q(r,Li,Di);break r}var Fi=Or+Ri|0,Xi=Se[I+2];Pa(Fi,Xi,Di,1);var ji=Se[D]+Se[Se[P]+12>>2]|0;Se[D]=ji;break r}if(34==(0|Ir)){var Ui=Se[pr+1];H(r,Ui);break r}if(35==(0|Ir)){var N=(0|r)>>2;if(0!=(32&Se[N]|0)){var xi=Se[Er+5];rr(r,a,xi)}var zi=a+4|0,Vi=0==(0|Se[zi>>2]);e:do if(!Vi){var O=(r+20|0)>>2,Bi=Se[O],Hi=0|Mr;Se[Hi>>2]=Bi,Se[O]=Mr,Se[Mr+4>>2]=a;var Ki=Mr+8|0;Se[Ki>>2]=0;var Yi=Se[Er+4];Se[Mr+12>>2]=Yi;var Gi=Se[zi>>2];H(r,Gi);var Wi=Se[Hi>>2];if(Se[O]=Wi,0!=(0|Se[Ki>>2]))break r;if(0!=(32&Se[N]|0))break;var Zi=Me[cr],Qi=0==(0|Zi);do if(!Qi){var qi=r+8|0,$i=Me[qi>>2];if($i>>>0>=Me[Er+3]>>>0)break;Se[qi>>2]=$i+1|0,Ae[Zi+$i|0]=32;break e}while(0);Y(r,32)}while(0);if(0!=(32&Se[N]|0))break r;var Ji=Se[Er+5];rr(r,a,Ji);break r}if(36==(0|Ir)){var T=(r+20|0)>>2,rv=Me[T],av=0|Cr;Se[hr]=rv,Se[T]=av,Se[hr+1]=a;var ev=Cr+8|0;Se[ev>>2]=0;var iv=Se[Er+4];Se[hr+3]=iv;for(var vv=rv,tv=1;;){var tv,vv;if(0==(0|vv))break;if((Se[Se[vv+4>>2]>>2]-22|0)>>>0>=3)break;var fv=vv+8|0;if(0==(0|Se[fv>>2])){if(tv>>>0>3){Z(r);break r}var _v=(tv<<4)+Cr|0,R=_v>>2,C=vv>>2;Se[R]=Se[C],Se[R+1]=Se[C+1],Se[R+2]=Se[C+2],Se[R+3]=Se[C+3];var sv=Se[T];Se[_v>>2]=sv,Se[T]=_v,Se[fv>>2]=1;var nv=tv+1|0}else var nv=tv;var nv,vv=Se[vv>>2],tv=nv}var ov=Se[pr+2];if(H(r,ov),Se[T]=rv,0!=(0|Se[ev>>2]))break r;if(tv>>>0>1){for(var lv=tv;;){var lv,bv=lv-1|0,kv=Se[((bv<<4)+4>>2)+hr];if($(r,kv),bv>>>0<=1)break;var lv=bv}var uv=Se[T]}else var uv=rv;var uv;ar(r,a,uv);break r}if(37==(0|Ir)){var M=(r+20|0)>>2,cv=Se[M],hv=0|Rr;Se[hv>>2]=cv,Se[M]=Rr,Se[Rr+4>>2]=a;var dv=Rr+8|0;Se[dv>>2]=0;var wv=Se[Er+4];Se[Rr+12>>2]=wv;var pv=a+4|0,Ev=Se[pr+2];H(r,Ev);var Av=0==(0|Se[dv>>2]);e:do if(Av){var gv=Me[cr],yv=0==(0|gv);do{if(!yv){var mv=r+8|0,Sv=Me[mv>>2];if(Sv>>>0>=Me[Er+3]>>>0){gr=187;break}Se[mv>>2]=Sv+1|0,Ae[gv+Sv|0]=32,gr=188;break}gr=187}while(0);187==gr&&Y(r,32);var Mv=Se[pv>>2];H(r,Mv);var Cv=Me[cr],Rv=0==(0|Cv);do if(!Rv){var S=(r+8|0)>>2,Tv=Me[S];if((Tv+3|0)>>>0>Me[Er+3]>>>0)break;var Ov=Cv+Tv|0;Ae[Ov]=Ae[0|He.__str135],Ae[Ov+1]=Ae[(0|He.__str135)+1],Ae[Ov+2]=Ae[(0|He.__str135)+2];var Nv=Se[S]+3|0;Se[S]=Nv;break e}while(0);Q(r,0|He.__str135,3)}while(0);var Iv=Se[hv>>2];Se[M]=Iv;break r}if(38==(0|Ir)||39==(0|Ir)){var Pv=Se[pr+1];H(r,Pv);var Dv=a+8|0;if(0==(0|Se[Dv>>2]))break r;var Lv=Me[cr],Fv=0==(0|Lv);do{if(!Fv){var m=(r+8|0)>>2,Xv=Me[m];if((Xv+2|0)>>>0>Me[Er+3]>>>0){gr=197;break}var jv=Lv+Xv|0;oe=8236,Ae[jv]=255&oe,oe>>=8,Ae[jv+1]=255&oe;var Uv=Se[m]+2|0;Se[m]=Uv,gr=198;break}gr=197}while(0);197==gr&&Q(r,0|He.__str136,2);var xv=Se[Dv>>2];H(r,xv);break r}if(40==(0|Ir)){var y=(r+8|0)>>2,zv=Me[y],g=(r+12|0)>>2;if((zv+8|0)>>>0>Me[g]>>>0)Q(r,0|He.__str137,8);else{var Vv=Or+zv|0,le=0|Vv;oe=1919250543,Ae[le]=255&oe,oe>>=8,Ae[le+1]=255&oe,oe>>=8,Ae[le+2]=255&oe,oe>>=8,Ae[le+3]=255&oe;var be=Vv+4|0;oe=1919906913,Ae[be]=255&oe,oe>>=8,Ae[be+1]=255&oe,oe>>=8,Ae[be+2]=255&oe,oe>>=8,Ae[be+3]=255&oe;var Bv=Se[y]+8|0;Se[y]=Bv}var A=(a+4|0)>>2,Hv=(Ae[Se[Se[A]+4>>2]]-97&255&255)<26;e:do if(Hv){var Kv=Me[cr],Yv=0==(0|Kv);do if(!Yv){var Gv=Me[y];if(Gv>>>0>=Me[g]>>>0)break;Se[y]=Gv+1|0,Ae[Kv+Gv|0]=32;break e}while(0);Y(r,32)}while(0);var Wv=Me[cr],Zv=0==(0|Wv);do{if(!Zv){var Qv=Me[y],qv=Me[A],$v=Me[qv+8>>2];if(($v+Qv|0)>>>0>Me[g]>>>0){var Jv=qv,rt=$v;break}var at=Wv+Qv|0,et=Se[qv+4>>2];Pa(at,et,$v,1);var it=Se[y]+Se[Se[A]+8>>2]|0;Se[y]=it;break r}var vt=Me[A],Jv=vt,rt=Se[vt+8>>2]}while(0);var rt,Jv,tt=Se[Jv+4>>2];Q(r,tt,rt);break r}if(41==(0|Ir)){var E=(r+8|0)>>2,ft=Me[E];if((ft+9|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str10180,9);else{for(var _t=Or+ft|0,ie=0|He.__str10180,ve=_t,te=ie+9;ie>2,ot=Me[p];if((ot+9|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str10180,9);else{for(var lt=Or+ot|0,ie=0|He.__str10180,ve=lt,te=ie+9;ie>2],ct=42==(0|Se[ut>>2]);e:do if(ct){var w=(r+8|0)>>2,ht=Me[w],dt=r+12|0;ht>>>0>2]>>>0?(Se[w]=ht+1|0,Ae[Or+ht|0]=40):Y(r,40);var wt=Se[kt>>2];er(r,wt);var pt=Me[cr],Et=0==(0|pt);do if(!Et){var At=Me[w];if(At>>>0>=Me[dt>>2]>>>0)break;Se[w]=At+1|0,Ae[pt+At|0]=41;break e}while(0);Y(r,41)}else ir(r,ut);while(0);var gt=Me[cr],yt=0==(0|gt);do{if(!yt){var mt=r+8|0,St=Me[mt>>2];if(St>>>0>=Me[Er+3]>>>0){gr=232;break}Se[mt>>2]=St+1|0,Ae[gt+St|0]=40,gr=233;break}gr=232}while(0);232==gr&&Y(r,40);var Mt=Se[pr+2];H(r,Mt);var Ct=Me[cr],Rt=0==(0|Ct);do if(!Rt){var Tt=r+8|0,Ot=Me[Tt>>2];if(Ot>>>0>=Me[Er+3]>>>0)break;Se[Tt>>2]=Ot+1|0,Ae[Ct+Ot|0]=41;break r}while(0);Y(r,41);break r}if(44==(0|Ir)){var d=(a+8|0)>>2;if(45==(0|Se[Se[d]>>2])){var h=(a+4|0)>>2,Nt=Se[h],It=40==(0|Se[Nt>>2]);do if(It){var Pt=Se[Nt+4>>2];if(1!=(0|Se[Pt+8>>2]))break;if(Ae[Se[Pt+4>>2]]<<24>>24!=62)break;var Dt=r+8|0,Lt=Me[Dt>>2];Lt>>>0>>0?(Se[Dt>>2]=Lt+1|0,Ae[Or+Lt|0]=40):Y(r,40)}while(0);var Ft=Me[cr],Xt=0==(0|Ft);do{if(!Xt){var jt=r+8|0,Ut=Me[jt>>2];if(Ut>>>0>=Me[Er+3]>>>0){gr=248;break}Se[jt>>2]=Ut+1|0,Ae[Ft+Ut|0]=40,gr=249;break}gr=248}while(0);248==gr&&Y(r,40);var xt=Se[Se[d]+4>>2];H(r,xt);var zt=Me[cr],Vt=0==(0|zt);do{if(!Vt){var c=(r+8|0)>>2,Bt=Me[c];if((Bt+2|0)>>>0>Me[Er+3]>>>0){gr=252;break}var Ht=zt+Bt|0;oe=8233,Ae[Ht]=255&oe,oe>>=8,Ae[Ht+1]=255&oe;var Kt=Se[c]+2|0;Se[c]=Kt,gr=253;break}gr=252}while(0);252==gr&&Q(r,0|He.__str139,2);var Yt=Se[h];ir(r,Yt);var Gt=Me[cr],Wt=0==(0|Gt);do{if(!Wt){var u=(r+8|0)>>2,Zt=Me[u];if((Zt+2|0)>>>0>Me[Er+3]>>>0){gr=256;break}var Qt=Gt+Zt|0;oe=10272,Ae[Qt]=255&oe,oe>>=8,Ae[Qt+1]=255&oe;var qt=Se[u]+2|0;Se[u]=qt,gr=257;break}gr=256}while(0);256==gr&&Q(r,0|He.__str140,2);var $t=Se[Se[d]+8>>2];H(r,$t);var Jt=Me[cr],rf=0==(0|Jt);do{if(!rf){var af=r+8|0,ef=Me[af>>2];if(ef>>>0>=Me[Er+3]>>>0){gr=260;break}Se[af>>2]=ef+1|0,Ae[Jt+ef|0]=41,gr=261;break}gr=260}while(0);260==gr&&Y(r,41);var vf=Se[h];if(40!=(0|Se[vf>>2]))break r;var tf=Se[vf+4>>2];if(1!=(0|Se[tf+8>>2]))break r;if(Ae[Se[tf+4>>2]]<<24>>24!=62)break r;var ff=Me[cr],_f=0==(0|ff);do if(!_f){var sf=r+8|0,nf=Me[sf>>2];if(nf>>>0>=Me[Er+3]>>>0)break;Se[sf>>2]=nf+1|0,Ae[ff+nf|0]=41;break r}while(0);Y(r,41);break r}Z(r);break r}if(45==(0|Ir)){Z(r);break r}if(46==(0|Ir)){var of=a+4|0,k=(a+8|0)>>2,lf=Se[k],bf=47==(0|Se[lf>>2]);do if(bf){if(48!=(0|Se[Se[lf+8>>2]>>2]))break;var b=(r+8|0)>>2,kf=Me[b],l=(r+12|0)>>2;kf>>>0>>0?(Se[b]=kf+1|0,Ae[Or+kf|0]=40):Y(r,40);var uf=Se[Se[k]+4>>2];H(r,uf);var cf=Me[cr],hf=0==(0|cf);do{if(!hf){var df=Me[b];if((df+2|0)>>>0>Me[l]>>>0){gr=278;break}var wf=cf+df|0;oe=8233,Ae[wf]=255&oe,oe>>=8,Ae[wf+1]=255&oe;var pf=Se[b]+2|0;Se[b]=pf,gr=279;break}gr=278}while(0);278==gr&&Q(r,0|He.__str139,2);var Ef=Se[of>>2];ir(r,Ef);var Af=Me[cr],gf=0==(0|Af);do{if(!gf){var yf=Me[b];if((yf+2|0)>>>0>Me[l]>>>0){gr=282;break}var mf=Af+yf|0;oe=10272,Ae[mf]=255&oe,oe>>=8,Ae[mf+1]=255&oe;var Sf=Se[b]+2|0;Se[b]=Sf,gr=283;break}gr=282}while(0);282==gr&&Q(r,0|He.__str140,2);var Mf=Se[Se[Se[k]+8>>2]+4>>2];H(r,Mf);var Cf=Me[cr],Rf=0==(0|Cf);do{if(!Rf){var Tf=Me[b];if((Tf+5|0)>>>0>Me[l]>>>0){gr=286;break}var Of=Cf+Tf|0;Ae[Of]=Ae[0|He.__str141],Ae[Of+1]=Ae[(0|He.__str141)+1],Ae[Of+2]=Ae[(0|He.__str141)+2],Ae[Of+3]=Ae[(0|He.__str141)+3],Ae[Of+4]=Ae[(0|He.__str141)+4];var Nf=Se[b]+5|0;Se[b]=Nf,gr=287;break}gr=286}while(0);286==gr&&Q(r,0|He.__str141,5);var If=Se[Se[Se[k]+8>>2]+8>>2];H(r,If);var Pf=Me[cr],Df=0==(0|Pf);do if(!Df){var Lf=Me[b];if(Lf>>>0>=Me[l]>>>0)break;Se[b]=Lf+1|0,Ae[Pf+Lf|0]=41;break r}while(0);Y(r,41);break r}while(0);Z(r);break r}if(47==(0|Ir)||48==(0|Ir)){Z(r);break r}if(49==(0|Ir)||50==(0|Ir)){var Ff=a+4|0,Xf=Se[Ff>>2],jf=33==(0|Se[Xf>>2]);do{if(jf){var Uf=Me[Se[Xf+4>>2]+16>>2];if(1==(0|Uf)||2==(0|Uf)||3==(0|Uf)||4==(0|Uf)||5==(0|Uf)||6==(0|Uf)){var xf=a+8|0;if(0!=(0|Se[Se[xf>>2]>>2])){var zf=Uf;break}if(50==(0|Ir)){var Vf=r+8|0,Bf=Me[Vf>>2];Bf>>>0>>0?(Se[Vf>>2]=Bf+1|0,Ae[Or+Bf|0]=45):Y(r,45)}var Hf=Se[xf>>2];if(H(r,Hf),2==(0|Uf)){var Kf=Me[cr],Yf=0==(0|Kf);do if(!Yf){var Gf=r+8|0,Wf=Me[Gf>>2];if(Wf>>>0>=Me[Er+3]>>>0)break;Se[Gf>>2]=Wf+1|0,Ae[Kf+Wf|0]=117;break r}while(0);Y(r,117);break r}if(3==(0|Uf)){var Zf=Me[cr],Qf=0==(0|Zf);do if(!Qf){var qf=r+8|0,$f=Me[qf>>2];if($f>>>0>=Me[Er+3]>>>0)break;Se[qf>>2]=$f+1|0,Ae[Zf+$f|0]=108;break r}while(0);Y(r,108);break r}if(4==(0|Uf)){var Jf=Me[cr],r_=0==(0|Jf);do if(!r_){var o=(r+8|0)>>2,a_=Me[o];if((a_+2|0)>>>0>Me[Er+3]>>>0)break;var e_=Jf+a_|0;oe=27765,Ae[e_]=255&oe,oe>>=8,Ae[e_+1]=255&oe;var i_=Se[o]+2|0;Se[o]=i_;break r}while(0);Q(r,0|He.__str142,2);break r}if(5==(0|Uf)){var v_=Me[cr],t_=0==(0|v_);do if(!t_){var n=(r+8|0)>>2,f_=Me[n];if((f_+2|0)>>>0>Me[Er+3]>>>0)break;var __=v_+f_|0;oe=27756,Ae[__]=255&oe,oe>>=8,Ae[__+1]=255&oe;var s_=Se[n]+2|0;Se[n]=s_;break r}while(0);Q(r,0|He.__str143,2);break r}if(6==(0|Uf)){var n_=Me[cr],o_=0==(0|n_);do if(!o_){var s=(r+8|0)>>2,l_=Me[s];if((l_+3|0)>>>0>Me[Er+3]>>>0)break;var b_=n_+l_|0;Ae[b_]=Ae[0|He.__str144],Ae[b_+1]=Ae[(0|He.__str144)+1],Ae[b_+2]=Ae[(0|He.__str144)+2];var k_=Se[s]+3|0;Se[s]=k_;break r}while(0);Q(r,0|He.__str144,3);break r}break r}if(7==(0|Uf)){var _=Se[pr+2]>>2;if(0!=(0|Se[_])){var zf=7;break}if(!(1==(0|Se[_+2])&49==(0|Ir))){var zf=Uf;break}var u_=Ae[Se[_+1]]<<24>>24;if(48==(0|u_)){var f=(r+8|0)>>2,c_=Me[f];if((c_+5|0)>>>0>Me[Er+3]>>>0){Q(r,0|He.__str145,5);break r}var h_=Or+c_|0;Ae[h_]=Ae[0|He.__str145],Ae[h_+1]=Ae[(0|He.__str145)+1],Ae[h_+2]=Ae[(0|He.__str145)+2],Ae[h_+3]=Ae[(0|He.__str145)+3],Ae[h_+4]=Ae[(0|He.__str145)+4];var d_=Se[f]+5|0;Se[f]=d_;break r}if(49==(0|u_)){var t=(r+8|0)>>2,w_=Me[t];if((w_+4|0)>>>0>Me[Er+3]>>>0){Q(r,0|He.__str146,4);break r}var p_=Or+w_|0;oe=1702195828,Ae[p_]=255&oe,oe>>=8,Ae[p_+1]=255&oe,oe>>=8,Ae[p_+2]=255&oe,oe>>=8,Ae[p_+3]=255&oe;var E_=Se[t]+4|0;Se[t]=E_;break r}var zf=Uf;break}var zf=Uf;break}var zf=0}while(0);var zf,v=(r+8|0)>>2,A_=Me[v],i=(r+12|0)>>2;A_>>>0>>0?(Se[v]=A_+1|0,Ae[Or+A_|0]=40):Y(r,40);var g_=Se[Ff>>2];H(r,g_);var y_=Me[cr],m_=0==(0|y_);do{if(!m_){var S_=Me[v];if(S_>>>0>=Me[i]>>>0){gr=335;break}Se[v]=S_+1|0,Ae[y_+S_|0]=41,gr=336;break}gr=335}while(0);335==gr&&Y(r,41);var M_=50==(0|Se[Nr>>2]);e:do if(M_){var C_=Me[cr],R_=0==(0|C_);do if(!R_){var T_=Me[v];if(T_>>>0>=Me[i]>>>0)break;Se[v]=T_+1|0,Ae[C_+T_|0]=45;break e}while(0);Y(r,45)}while(0);if(8==(0|zf)){var O_=Me[cr],N_=0==(0|O_);do{if(!N_){var I_=Me[v];if(I_>>>0>=Me[i]>>>0){gr=345;break}Se[v]=I_+1|0,Ae[O_+I_|0]=91,gr=346;break}gr=345}while(0);345==gr&&Y(r,91);var P_=Se[pr+2];H(r,P_);var D_=Me[cr],L_=0==(0|D_);do if(!L_){var F_=Me[v];if(F_>>>0>=Me[i]>>>0)break;Se[v]=F_+1|0,Ae[D_+F_|0]=93;break r}while(0);Y(r,93);break r}var X_=Se[pr+2];H(r,X_);break r}Z(r);break r}}while(0);var e=(r+20|0)>>2,j_=Se[e],U_=0|Sr;Se[U_>>2]=j_,Se[e]=Sr,Se[Sr+4>>2]=a;var x_=Sr+8|0;Se[x_>>2]=0;var z_=Se[Er+4];Se[Sr+12>>2]=z_;var V_=Se[pr+1];H(r,V_),0==(0|Se[x_>>2])&&$(r,a);var B_=Se[U_>>2];Se[e]=B_}while(0);Oe=Ar}function K(r,a,e,i){var v=i>>2;Se[v]=r,Se[v+1]=r+e|0,Se[v+2]=a,Se[v+3]=r,Se[v+6]=e<<1,Se[v+5]=0,Se[v+9]=e,Se[v+8]=0,Se[v+10]=0,Se[v+11]=0,Se[v+12]=0}function Y(r,a){var e,i=r+4|0,v=Me[i>>2],t=0==(0|v);do if(!t){var e=(r+8|0)>>2,f=Me[e];if(f>>>0>2]>>>0)var _=v,s=f;else{tr(r,1);var n=Me[i>>2];if(0==(0|n))break;var _=n,s=Se[e]}var s,_;Ae[_+s|0]=255&a;var o=Se[e]+1|0;Se[e]=o}while(0)}function G(r,a,e,i){var v,t=i>>2,f=Oe;Oe+=4;var _=f,v=_>>2,s=0==(0|r);do if(s){if(0==(0|i)){var n=0;break}Se[t]=-3;var n=0}else{var o=0==(0|e);if(0!=(0|a)&o){if(0==(0|i)){var n=0;break}Se[t]=-3;var n=0}else{var l=W(r,_);if(0==(0|l)){if(0==(0|i)){var n=0;break}if(1==(0|Se[v])){Se[t]=-1;var n=0}else{Se[t]=-2;var n=0}}else{var b=0==(0|a);do if(b){if(o){var k=l;break}var u=Se[v];Se[e>>2]=u;var k=l}else{var c=Ca(l);if(c>>>0>2]>>>0){Ra(a,l);va(l);var k=a}else{va(a);var h=Se[v];Se[e>>2]=h;var k=l}}while(0);var k;if(0==(0|i)){var n=k;break}Se[t]=0;var n=k}}}while(0);var n;return Oe=f,n}function W(r,a){var e,i=Oe;Oe+=52;var v,t=i,e=t>>2;Se[a>>2]=0;var f=Ca(r),_=Ae[r]<<24>>24==95;do{if(_){if(Ae[r+1|0]<<24>>24==90){var s=0;v=13;break}v=3;break}v=3}while(0);do if(3==v){var n=Na(r,0|He.__str117,8);if(0!=(0|n)){var s=1;v=13;break}var o=Ae[r+8|0];if(o<<24>>24!=46&&o<<24>>24!=95&&o<<24>>24!=36){var s=1;v=13;break}var l=r+9|0,b=Ae[l];if(b<<24>>24!=68&&b<<24>>24!=73){\nvar s=1;v=13;break}if(Ae[r+10|0]<<24>>24!=95){var s=1;v=13;break}var k=f+29|0,u=Jr(k);if(0==(0|u)){Se[a>>2]=1;var c=0;v=19;break}Ae[l]<<24>>24==73?Pa(u,0|He.__str118,30,1):Pa(u,0|He.__str119,29,1);var h=r+11|0,c=(Ia(u,h),u);v=19;break}while(0);if(13==v){var s;K(r,17,f,t);var d=Se[e+6],w=Ta(),p=Oe;Oe+=12*d,Oe=Oe+3>>2<<2;var E=Oe;if(Oe+=4*Se[e+9],Oe=Oe+3>>2<<2,Se[e+4]=p,Se[e+7]=E,s)var A=N(t),g=A;else var y=T(t,1),g=y;var g,m=Ae[Se[e+3]]<<24>>24==0?g:0,S=Se[e+12]+f+10*Se[e+10]|0;if(0==(0|m))var M=0;else var C=S/8+S|0,R=B(17,m,C,a),M=R;var M;Oa(w);var c=M}var c;return Oe=i,c}function Z(r){var a=r+4|0,e=Se[a>>2];va(e),Se[a>>2]=0}function Q(r,a,e){var i,v=r+4|0,t=Me[v>>2],f=0==(0|t);do if(!f){var i=(r+8|0)>>2,_=Me[i];if((_+e|0)>>>0>Me[r+12>>2]>>>0){tr(r,e);var s=Me[v>>2];if(0==(0|s))break;var n=s,o=Se[i]}else var n=t,o=_;var o,n;Pa(n+o|0,a,e,1);var l=Se[i]+e|0;Se[i]=l}while(0)}function q(r,a,e){var i,v,t=a+e|0,f=(0|e)>0;r:do if(f)for(var _=t,s=r+4|0,i=(r+8|0)>>2,n=r+12|0,o=a;;){var o,l=(_-o|0)>3;a:do{if(l){if(Ae[o]<<24>>24!=95){v=21;break}if(Ae[o+1|0]<<24>>24!=95){v=21;break}if(Ae[o+2|0]<<24>>24!=85){v=21;break}for(var b=o+3|0,k=0;;){var k,b;if(b>>>0>=t>>>0){v=21;break a}var u=ge[b],c=u<<24>>24;if((u-48&255&255)<10)var h=c-48|0;else if((u-65&255&255)<6)var h=c-55|0;else{if((u-97&255&255)>=6)break;var h=c-87|0}var h,b=b+1|0,k=(k<<4)+h|0}if(!(u<<24>>24==95&k>>>0<256)){v=21;break}var d=Me[s>>2],w=0==(0|d);do if(!w){var p=Me[i];if(p>>>0>=Me[n>>2]>>>0)break;Se[i]=p+1|0,Ae[d+p|0]=255&k;var E=b;v=25;break a}while(0);Y(r,k);var E=b;v=25;break}v=21}while(0);a:do if(21==v){var A=Me[s>>2],g=0==(0|A);do if(!g){var y=Me[i];if(y>>>0>=Me[n>>2]>>>0)break;var m=Ae[o];Se[i]=y+1|0,Ae[A+y|0]=m;var E=o;break a}while(0);var S=Ae[o]<<24>>24;Y(r,S);var E=o}while(0);var E,M=E+1|0;if(M>>>0>=t>>>0)break r;var o=M}while(0)}function $(r,a){var e,i,v,t,f,_,s,n=r>>2,o=Se[a>>2];r:do if(22==(0|o)||25==(0|o)){var l=Me[n+1],b=0==(0|l);do if(!b){var _=(r+8|0)>>2,k=Me[_];if((k+9|0)>>>0>Me[n+3]>>>0)break;for(var u=l+k|0,c=0|He.__str147,h=u,d=c+9;c>2,A=Me[f];if((A+9|0)>>>0>Me[n+3]>>>0)break;for(var g=p+A|0,c=0|He.__str148,h=g,d=c+9;c>2,M=Me[t];if((M+6|0)>>>0>Me[n+3]>>>0)break;var C=m+M|0;Ae[C]=Ae[0|He.__str149],Ae[C+1]=Ae[(0|He.__str149)+1],Ae[C+2]=Ae[(0|He.__str149)+2],Ae[C+3]=Ae[(0|He.__str149)+3],Ae[C+4]=Ae[(0|He.__str149)+4],Ae[C+5]=Ae[(0|He.__str149)+5];var R=Se[t]+6|0;Se[t]=R;break r}while(0);Q(r,0|He.__str149,6)}else if(28==(0|o)){var T=Me[n+1],O=0==(0|T);do{if(!O){var N=r+8|0,I=Me[N>>2];if(I>>>0>=Me[n+3]>>>0){s=17;break}Se[N>>2]=I+1|0,Ae[T+I|0]=32,s=18;break}s=17}while(0);17==s&&Y(r,32);var P=Se[a+8>>2];H(r,P)}else if(29==(0|o)){if(0!=(4&Se[n]|0))break;var D=Me[n+1],L=0==(0|D);do if(!L){var F=r+8|0,X=Me[F>>2];if(X>>>0>=Me[n+3]>>>0)break;Se[F>>2]=X+1|0,Ae[D+X|0]=42;break r}while(0);Y(r,42)}else if(30==(0|o)){var j=Me[n+1],U=0==(0|j);do if(!U){var x=r+8|0,z=Me[x>>2];if(z>>>0>=Me[n+3]>>>0)break;Se[x>>2]=z+1|0,Ae[j+z|0]=38;break r}while(0);Y(r,38)}else if(31==(0|o)){var V=Me[n+1],B=0==(0|V);do if(!B){var v=(r+8|0)>>2,K=Me[v];if((K+8|0)>>>0>Me[n+3]>>>0)break;var G=V+K|0,W=0|G;oe=1886220131,Ae[W]=255&oe,oe>>=8,Ae[W+1]=255&oe,oe>>=8,Ae[W+2]=255&oe,oe>>=8,Ae[W+3]=255&oe;var Z=G+4|0;oe=544761196,Ae[Z]=255&oe,oe>>=8,Ae[Z+1]=255&oe,oe>>=8,Ae[Z+2]=255&oe,oe>>=8,Ae[Z+3]=255&oe;var q=Se[v]+8|0;Se[v]=q;break r}while(0);Q(r,0|He.__str150,8)}else if(32==(0|o)){var $=Me[n+1],J=0==(0|$);do if(!J){var i=(r+8|0)>>2,rr=Me[i];if((rr+10|0)>>>0>Me[n+3]>>>0)break;for(var ar=$+rr|0,c=0|He.__str151,h=ar,d=c+10;c>2],tr=0==(0|vr);do{if(!tr){var fr=r+8|0,_r=Me[fr>>2];if(0!=(0|_r)&&Ae[vr+(_r-1)|0]<<24>>24==40){s=42;break}if(_r>>>0>=Me[n+3]>>>0){s=41;break}Se[fr>>2]=_r+1|0,Ae[vr+_r|0]=32,s=42;break}s=41}while(0);41==s&&Y(r,32);var sr=Se[a+4>>2];H(r,sr);var nr=Me[ir>>2],or=0==(0|nr);do if(!or){var e=(r+8|0)>>2,lr=Me[e];if((lr+3|0)>>>0>Me[n+3]>>>0)break;var br=nr+lr|0;Ae[br]=Ae[0|He.__str135],Ae[br+1]=Ae[(0|He.__str135)+1],Ae[br+2]=Ae[(0|He.__str135)+2];var kr=Se[e]+3|0;Se[e]=kr;break r}while(0);Q(r,0|He.__str135,3)}else if(3==(0|o)){var ur=Se[a+4>>2];H(r,ur)}else H(r,a);while(0)}function J(r){var a=r+20|0,e=Se[a>>2];if((0|e)<(0|Se[r+24>>2])){var i=Se[r+16>>2]+12*e|0,v=e+1|0;Se[a>>2]=v;var t=i}else var t=0;var t;return t}function rr(r,a,e){var i,v,t,f,_=r>>2,s=e,t=s>>2,n=0;r:for(;;){var n,s,o=0==(0|s);do if(!o){if(0!=(0|Se[t+2]))break;var l=Se[Se[t+1]>>2];if(29==(0|l)||30==(0|l)){f=9;break r}if(22==(0|l)||23==(0|l)||24==(0|l)||28==(0|l)||31==(0|l)||32==(0|l)||37==(0|l)){var b=Se[_+1];f=12;break r}var s=Se[t],t=s>>2,n=1;continue r}while(0);if(0!=(0|Se[a+4>>2])&0==(0|n)){f=9;break}var k=0,u=r+4|0,v=u>>2;f=22;break}do if(9==f){var c=Se[_+1];if(0==(0|c)){f=17;break}var h=Se[_+2];if(0==(0|h)){var d=c;f=13;break}var w=Ae[c+(h-1)|0];if(w<<24>>24==40||w<<24>>24==42){f=18;break}var b=c;f=12;break}while(0);do if(12==f){var b;if(0==(0|b)){f=17;break}var d=b;f=13;break}while(0);do if(13==f){var d,p=r+8|0,E=Me[p>>2];if(0!=(0|E)&&Ae[d+(E-1)|0]<<24>>24==32){f=18;break}if(E>>>0>=Me[_+3]>>>0){f=17;break}Se[p>>2]=E+1|0,Ae[d+E|0]=32,f=18;break}while(0);do if(17==f){Y(r,32),f=18;break}while(0);r:do if(18==f){var A=r+4|0,g=Me[A>>2],y=0==(0|g);do if(!y){var m=r+8|0,S=Me[m>>2];if(S>>>0>=Me[_+3]>>>0)break;Se[m>>2]=S+1|0,Ae[g+S|0]=40;var k=1,u=A,v=u>>2;break r}while(0);Y(r,40);var k=1,u=A,v=u>>2}while(0);var u,k,i=(r+20|0)>>2,M=Se[i];Se[i]=0,vr(r,e,0);r:do if(k){var C=Me[v],R=0==(0|C);do if(!R){var T=r+8|0,O=Me[T>>2];if(O>>>0>=Me[_+3]>>>0)break;Se[T>>2]=O+1|0,Ae[C+O|0]=41;break r}while(0);Y(r,41)}while(0);var N=Me[v],I=0==(0|N);do{if(!I){var P=r+8|0,D=Me[P>>2];if(D>>>0>=Me[_+3]>>>0){f=30;break}Se[P>>2]=D+1|0,Ae[N+D|0]=40,f=31;break}f=30}while(0);30==f&&Y(r,40);var L=Se[a+8>>2];0!=(0|L)&&H(r,L);var F=Me[v],X=0==(0|F);do{if(!X){var j=r+8|0,U=Me[j>>2];if(U>>>0>=Me[_+3]>>>0){f=36;break}Se[j>>2]=U+1|0,Ae[F+U|0]=41,f=37;break}f=36}while(0);36==f&&Y(r,41),vr(r,e,1),Se[i]=M}function ar(r,a,e){var i,v,t,f=r>>2,_=0==(0|e);do{if(!_){var s=e,v=s>>2;r:for(;;){var s;if(0==(0|s)){var n=1;t=14;break}if(0==(0|Se[v+2])){var o=36==(0|Se[Se[v+1]>>2]),l=1&o^1;if(o){var n=l;t=14;break}var b=r+4|0,k=Me[b>>2],u=0==(0|k);do{if(!u){var i=(r+8|0)>>2,c=Me[i];if((c+2|0)>>>0>Me[f+3]>>>0){t=9;break}var h=k+c|0;oe=10272,Ae[h]=255&oe,oe>>=8,Ae[h+1]=255&oe;var d=Se[i]+2|0;Se[i]=d,vr(r,e,0),t=10;break}t=9}while(0);9==t&&(Q(r,0|He.__str140,2),vr(r,e,0));var w=Me[b>>2],p=0==(0|w);do if(!p){var E=r+8|0,A=Me[E>>2];if(A>>>0>=Me[f+3]>>>0)break;Se[E>>2]=A+1|0,Ae[w+A|0]=41;var g=l;t=15;break r}while(0);Y(r,41);var g=l;t=15;break}var s=Se[v],v=s>>2}if(14==t){var n;vr(r,e,0);var g=n}var g;if(0!=(0|g)){t=17;break}var y=r+4|0;t=21;break}t=17}while(0);r:do if(17==t){var m=r+4|0,S=Me[m>>2],M=0==(0|S);do if(!M){var C=r+8|0,R=Me[C>>2];if(R>>>0>=Me[f+3]>>>0)break;Se[C>>2]=R+1|0,Ae[S+R|0]=32;var y=m;break r}while(0);Y(r,32);var y=m}while(0);var y,T=Me[y>>2],O=0==(0|T);do{if(!O){var N=r+8|0,I=Me[N>>2];if(I>>>0>=Me[f+3]>>>0){t=24;break}Se[N>>2]=I+1|0,Ae[T+I|0]=91,t=25;break}t=24}while(0);24==t&&Y(r,91);var P=Se[a+4>>2];0!=(0|P)&&H(r,P);var D=Me[y>>2],L=0==(0|D);do{if(!L){var F=r+8|0,X=Me[F>>2];if(X>>>0>=Me[f+3]>>>0){t=30;break}Se[F>>2]=X+1|0,Ae[D+X|0]=93,t=31;break}t=30}while(0);30==t&&Y(r,93)}function er(r,a){var e,i,v,t,f,_,s=Oe;Oe+=8;var n,o=s,_=(a+4|0)>>2,l=Se[_];if(4==(0|Se[l>>2])){var f=(r+20|0)>>2,b=Se[f];Se[f]=0;var t=(r+16|0)>>2,k=Se[t],u=0|o;Se[u>>2]=k,Se[t]=o;var c=Se[_];Se[o+4>>2]=c;var h=Se[c+4>>2];H(r,h);var d=Se[u>>2];Se[t]=d;var v=(r+4|0)>>2,w=Me[v],p=0==(0|w);do{if(!p){var i=(r+8|0)>>2,E=Me[i],A=0==(0|E);do if(!A){if(Ae[w+(E-1)|0]<<24>>24!=60)break;E>>>0>2]>>>0?(Se[i]=E+1|0,Ae[w+E|0]=32):Y(r,32)}while(0);var g=Me[v];if(0==(0|g)){n=12;break}var y=Me[i];if(y>>>0>=Me[r+12>>2]>>>0){n=12;break}Se[i]=y+1|0,Ae[g+y|0]=60,n=13;break}n=12}while(0);12==n&&Y(r,60);var m=Se[Se[_]+8>>2];H(r,m);var S=Me[v],M=0==(0|S);do{if(!M){var e=(r+8|0)>>2,C=Me[e],R=0==(0|C);do if(!R){if(Ae[S+(C-1)|0]<<24>>24!=62)break;C>>>0>2]>>>0?(Se[e]=C+1|0,Ae[S+C|0]=32):Y(r,32)}while(0);var T=Me[v];if(0==(0|T)){n=22;break}var O=Me[e];if(O>>>0>=Me[r+12>>2]>>>0){n=22;break}Se[e]=O+1|0,Ae[T+O|0]=62,n=23;break}n=22}while(0);22==n&&Y(r,62),Se[f]=b}else H(r,l);Oe=s}function ir(r,a){var e,i=40==(0|Se[a>>2]);r:do if(i){var v=Me[r+4>>2],t=0==(0|v);do{if(!t){var e=(r+8|0)>>2,f=Me[e],_=a+4|0,s=Me[_>>2],n=Me[s+8>>2];if((n+f|0)>>>0>Me[r+12>>2]>>>0){var o=s,l=n;break}var b=v+f|0,k=Se[s+4>>2];Pa(b,k,n,1);var u=Se[e]+Se[Se[_>>2]+8>>2]|0;Se[e]=u;break r}var c=Me[a+4>>2],o=c,l=Se[c+8>>2]}while(0);var l,o,h=Se[o+4>>2];Q(r,h,l)}else H(r,a);while(0)}function vr(r,a,e){var i,v,t,f,_,f=(r+4|0)>>2,s=0==(0|e),t=(r+16|0)>>2;r:do if(s)for(var n=a;;){var n;if(0==(0|n)){_=29;break r}if(0==(0|Se[f])){_=29;break r}var o=n+8|0,l=0==(0|Se[o>>2]);do if(l){var b=n+4|0;if((Se[Se[b>>2]>>2]-25|0)>>>0<3)break;Se[o>>2]=1;var k=Me[t],u=Se[n+12>>2];Se[t]=u;var c=Me[b>>2],h=Se[c>>2];if(35==(0|h)){var d=n,w=k,p=c;_=14;break r}if(36==(0|h)){var E=n,A=k,g=c;_=15;break r}if(2==(0|h)){var y=k,m=b;_=16;break r}$(r,c),Se[t]=k}while(0);var n=Se[n>>2]}else for(var S=a;;){var S;if(0==(0|S)){_=29;break r}if(0==(0|Se[f])){_=29;break r}var M=S+8|0;if(0==(0|Se[M>>2])){Se[M>>2]=1;var C=Me[t],R=Se[S+12>>2];Se[t]=R;var T=S+4|0,O=Me[T>>2],N=Se[O>>2];if(35==(0|N)){var d=S,w=C,p=O;_=14;break r}if(36==(0|N)){var E=S,A=C,g=O;_=15;break r}if(2==(0|N)){var y=C,m=T;_=16;break r}$(r,O),Se[t]=C}var S=Se[S>>2]}while(0);if(14==_){var p,w,d,I=Se[d>>2];rr(r,p,I),Se[t]=w}else if(15==_){var g,A,E,P=Se[E>>2];ar(r,g,P),Se[t]=A}else if(16==_){var m,y,v=(r+20|0)>>2,D=Se[v];Se[v]=0;var L=Se[Se[m>>2]+4>>2];H(r,L),Se[v]=D;var F=0==(4&Se[r>>2]|0),X=Me[f],j=0!=(0|X);r:do if(F){do if(j){var i=(r+8|0)>>2,U=Me[i];if((U+2|0)>>>0>Me[r+12>>2]>>>0)break;var x=X+U|0;oe=14906,Ae[x]=255&oe,oe>>=8,Ae[x+1]=255&oe;var z=Se[i]+2|0;Se[i]=z;break r}while(0);Q(r,0|He.__str120,2)}else{do if(j){var V=r+8|0,B=Me[V>>2];if(B>>>0>=Me[r+12>>2]>>>0)break;Se[V>>2]=B+1|0,Ae[X+B|0]=46;break r}while(0);Y(r,46)}while(0);var K=Me[Se[m>>2]+8>>2],G=(Se[K>>2]-25|0)>>>0<3;r:do if(G)for(var W=K;;){var W,Z=Me[W+4>>2];if((Se[Z>>2]-25|0)>>>0>=3){var q=Z;break r}var W=Z}else var q=K;while(0);var q;H(r,q),Se[t]=y}}function tr(r,a){var e,e=(r+4|0)>>2,i=Se[e],v=0==(0|i);r:do if(!v){for(var t=Se[r+8>>2]+a|0,f=r+12|0,_=Se[f>>2],s=i;;){var s,_;if(t>>>0<=_>>>0)break r;var n=_<<1,o=fa(s,n);if(0==(0|o))break;Se[e]=o,Se[f>>2]=n;var _=n,s=o}var l=Se[e];va(l),Se[e]=0,Se[r+24>>2]=1}while(0)}function fr(r,a,e){var i,v=J(r),i=v>>2;return 0!=(0|v)&&(Se[i]=21,Se[i+1]=a,Se[i+2]=e),v}function _r(r){var a,a=(r+12|0)>>2,e=Se[a],i=Ae[e]<<24>>24;if(88==(0|i)){var v=e+1|0;Se[a]=v;var t=nr(r),f=Se[a],_=f+1|0;Se[a]=_;var s=Ae[f]<<24>>24==69?t:0,n=s}else if(76==(0|i))var o=or(r),n=o;else var l=N(r),n=l;var n;return n}function sr(r){var a,a=(r+12|0)>>2,e=Se[a],i=Ae[e];if(i<<24>>24==110){var v=e+1|0;Se[a]=v;var t=1,f=Ae[v],_=v}else var t=0,f=i,_=e;var _,f,t,s=(f-48&255&255)<10;r:do if(s)for(var n=f,o=0,l=_;;){var l,o,n,b=(n<<24>>24)-48+10*o|0,k=l+1|0;Se[a]=k;var u=ge[k];if((u-48&255&255)>=10){var c=b;break r}var n=u,o=b,l=k}else var c=0;while(0);var c,h=0==(0|t)?c:0|-c;return h}function nr(r){var a,e,a=(r+12|0)>>2,i=Se[a],v=Ae[i];do{if(v<<24>>24==76){var t=or(r),f=t;e=21;break}if(v<<24>>24==84){var _=x(r),f=_;e=21;break}if(v<<24>>24==115){if(Ae[i+1|0]<<24>>24!=114){e=8;break}var s=i+2|0;Se[a]=s;var n=N(r),o=br(r);if(Ae[Se[a]]<<24>>24==73){var l=z(r),b=D(r,4,o,l),k=D(r,1,n,b),f=k;e=21;break}var u=D(r,1,n,o),f=u;e=21;break}e=8}while(0);r:do if(8==e){var c=kr(r);if(0==(0|c)){var f=0;break}var h=0|c,d=Se[h>>2],w=40==(0|d);do{if(w){var p=c+4|0,E=r+48|0,A=Se[Se[p>>2]+8>>2]-2+Se[E>>2]|0;Se[E>>2]=A;var g=Se[h>>2];if(40!=(0|g)){var y=g;e=13;break}var m=Se[p>>2],S=Se[m>>2],M=Da(S,0|He.__str90);if(0!=(0|M)){var C=m;e=15;break}var R=N(r),T=D(r,43,c,R),f=T;break r}var y=d;e=13}while(0);do if(13==e){var y;if(40==(0|y)){var C=Se[c+4>>2];e=15;break}if(41==(0|y)){var O=c+4|0;e=17;break}if(42==(0|y)){e=18;break}var f=0;break r}while(0);do if(15==e){var C,O=C+12|0;e=17;break}while(0);do if(17==e){var O,I=Se[O>>2];if(1==(0|I))break;if(2==(0|I)){var P=nr(r),L=nr(r),F=D(r,45,P,L),X=D(r,44,c,F);return X}if(3==(0|I)){var j=nr(r),U=nr(r),V=nr(r),B=D(r,48,U,V),H=D(r,47,j,B),K=D(r,46,c,H);return K}var f=0;break r}while(0);var Y=nr(r),G=D(r,43,c,Y);return G}while(0);var f;return f}function or(r){var a,a=(r+12|0)>>2,e=Se[a],i=e+1|0;Se[a]=i;var v=Ae[e]<<24>>24==76;r:do if(v){if(Ae[i]<<24>>24==95)var t=T(r,0),f=t;else{var _=N(r);if(0==(0|_)){var s=0;break}var n=33==(0|Se[_>>2]);do if(n){var o=Se[_+4>>2];if(0==(0|Se[o+16>>2]))break;var l=r+48|0,b=Se[l>>2]-Se[o+4>>2]|0;Se[l>>2]=b}while(0);var k=Se[a];if(Ae[k]<<24>>24==110){var u=k+1|0;Se[a]=u;var c=50,h=u}else var c=49,h=k;for(var h,c,d=h;;){var d,w=Ae[d];if(w<<24>>24==69)break;if(w<<24>>24==0){var s=0;break r}var p=d+1|0;Se[a]=p;var d=p}var E=lr(r,h,d-h|0),A=D(r,c,_,E),f=A}var f,g=Se[a],y=g+1|0;Se[a]=y;var m=Ae[g]<<24>>24==69?f:0,s=m}else var s=0;while(0);var s;return s}function lr(r,a,e){var i=J(r),v=m(i,a,e),t=0==(0|v)?0:i;return t}function br(r){var a=r+12|0,e=Me[a>>2],i=ge[e],v=(i-48&255&255)<10;do if(v)var t=L(r),f=t;else if((i-97&255&255)<26){var _=kr(r);if(0==(0|_)){var f=0;break}if(40!=(0|Se[_>>2])){var f=_;break}var s=r+48|0,n=Se[Se[_+4>>2]+8>>2]+Se[s>>2]+7|0;Se[s>>2]=n;var f=_}else if(i<<24>>24==67||i<<24>>24==68)var o=hr(r),f=o;else{if(i<<24>>24!=76){var f=0;break}Se[a>>2]=e+1|0;var l=L(r);if(0==(0|l)){var f=0;break}var b=dr(r),k=0==(0|b)?0:l,f=k}while(0);var f;return f}function kr(r){var a,e,a=(r+12|0)>>2,i=Se[a],v=i+1|0;Se[a]=v;var t=ge[i],f=i+2|0;Se[a]=f;var _=ge[v];do{if(t<<24>>24==118){if((_-48&255&255)>=10){var s=49,n=0;e=6;break}var o=(_<<24>>24)-48|0,l=L(r),b=ur(r,o,l),k=b;e=14;break}if(t<<24>>24==99){if(_<<24>>24!=118){var s=49,n=0;e=6;break}var u=N(r),c=D(r,42,u,0),k=c;e=14;break}var s=49,n=0;e=6}while(0);r:do if(6==e){for(;;){var n,s,h=(s-n)/2+n|0,d=(h<<4)+ri|0,w=Se[d>>2],p=Ae[w],E=t<<24>>24==p<<24>>24;if(E&&_<<24>>24==Ae[w+1|0]<<24>>24)break;var A=t<<24>>24>24;do if(A)var g=h,y=n;else{if(E&&_<<24>>24>24){var g=h,y=n;break}var g=s,y=h+1|0}while(0);var y,g;if((0|y)==(0|g)){var k=0;break r}var s=g,n=y}var m=cr(r,d),k=m}while(0);var k;return k}function ur(r,a,e){var i=J(r),v=S(i,a,e),t=0==(0|v)?0:i;return t}function cr(r,a){var e=J(r);return 0!=(0|e)&&(Se[e>>2]=40,Se[e+4>>2]=a),e}function hr(r){var a,e,i=Se[r+44>>2],e=i>>2,v=0==(0|i);do if(!v){var t=Se[e];if(0==(0|t)){var f=r+48|0,_=Se[f>>2]+Se[e+2]|0;Se[f>>2]=_}else{if(21!=(0|t))break;var s=r+48|0,n=Se[s>>2]+Se[e+2]|0;Se[s>>2]=n}}while(0);var a=(r+12|0)>>2,o=Se[a],l=o+1|0;Se[a]=l;var b=Ae[o]<<24>>24;do if(67==(0|b)){var k=o+2|0;Se[a]=k;var u=Ae[l]<<24>>24;if(49==(0|u))var c=1;else if(50==(0|u))var c=2;else{if(51!=(0|u)){var h=0;break}var c=3}var c,d=wr(r,c,i),h=d}else if(68==(0|b)){var w=o+2|0;Se[a]=w;var p=Ae[l]<<24>>24;if(48==(0|p))var E=1;else if(49==(0|p))var E=2;else{if(50!=(0|p)){var h=0;break}var E=3}var E,A=pr(r,E,i),h=A}else var h=0;while(0);var h;return h}function dr(r){var a=r+12|0,e=Se[a>>2];if(Ae[e]<<24>>24==95){var i=e+1|0;Se[a>>2]=i;var v=sr(r),t=v>>>31^1}else var t=1;var t;return t}function wr(r,a,e){var i=J(r),v=M(i,a,e),t=0==(0|v)?0:i;return t}function pr(r,a,e){var i=J(r),v=C(i,a,e),t=0==(0|v)?0:i;return t}function Er(r,a){var e=J(r);return 0!=(0|e)&&(Se[e>>2]=5,Se[e+4>>2]=a),e}function Ar(r){var a,a=(r+12|0)>>2,e=Se[a],i=Ae[e]<<24>>24;do if(78==(0|i))var v=gr(r),t=v;else if(90==(0|i))var f=yr(r),t=f;else if(76==(0|i))var _=br(r),t=_;else if(83==(0|i)){if(Ae[e+1|0]<<24>>24==116){var s=e+2|0;Se[a]=s;var n=lr(r,0|He.__str152,3),o=br(r),l=D(r,1,n,o),b=r+48|0,k=Se[b>>2]+3|0;Se[b>>2]=k;var u=0,c=l}else var h=V(r,0),u=1,c=h;var c,u;if(Ae[Se[a]]<<24>>24!=73){var t=c;break}if(0==(0|u)){var d=R(r,c);if(0==(0|d)){var t=0;break}}var w=z(r),p=D(r,4,c,w),t=p}else{var E=br(r);if(Ae[Se[a]]<<24>>24!=73){var t=E;break}var A=R(r,E);if(0==(0|A)){var t=0;break}var g=z(r),y=D(r,4,E,g),t=y}while(0);var t;return t}function gr(r){var a,e=Oe;Oe+=4;var i=e,a=(r+12|0)>>2,v=Se[a],t=v+1|0;Se[a]=t;var f=Ae[v]<<24>>24==78;do if(f){var _=I(r,i,1);if(0==(0|_)){var s=0;break}var n=mr(r);if(Se[_>>2]=n,0==(0|n)){var s=0;break}var o=Se[a],l=o+1|0;if(Se[a]=l,Ae[o]<<24>>24!=69){var s=0;break}var s=Se[i>>2]}else var s=0;while(0);var s;return Oe=e,s}function yr(r){var a,a=(r+12|0)>>2,e=Se[a],i=e+1|0;Se[a]=i;var v=Ae[e]<<24>>24==90;do if(v){var t=O(r,0),f=Se[a],_=f+1|0;if(Se[a]=_,Ae[f]<<24>>24!=69){var s=0;break}if(Ae[_]<<24>>24==115){var n=f+2|0;Se[a]=n;var o=dr(r);if(0==(0|o)){var s=0;break}var l=lr(r,0|He.__str168,14),b=D(r,2,t,l),s=b}else{var k=Ar(r),u=dr(r);if(0==(0|u)){var s=0;break}var c=D(r,2,t,k),s=c}}else var s=0;while(0);var s;return s}function mr(r){var a,e=r+12|0,i=0;r:for(;;){var i,v=ge[Se[e>>2]];if(v<<24>>24==0){var t=0;break}var f=(v-48&255&255)<10|(v-97&255&255)<26;do{if(!f){if(v<<24>>24==76||v<<24>>24==68||v<<24>>24==67){a=5;break}if(v<<24>>24==83){var _=V(r,1),s=_;a=10;break}if(v<<24>>24==73){if(0==(0|i)){var t=0;break r}var n=z(r),o=4,l=n;a=11;break}if(v<<24>>24==84){var b=x(r),s=b;a=10;break}if(v<<24>>24==69){var t=i;break r}var t=0;break r}a=5}while(0);do if(5==a){var k=br(r),s=k;a=10;break}while(0);do if(10==a){var s;if(0==(0|i)){var u=s;a=12;break}var o=1,l=s;a=11;break}while(0);if(11==a)var l,o,c=D(r,o,i,l),u=c;var u;if(v<<24>>24!=83)if(Ae[Se[e>>2]]<<24>>24!=69){var h=R(r,u);if(0==(0|h)){var t=0;break}var i=u}else var i=u;else var i=u}var t;return t}function Sr(r,a){var e,i,v=Oe;Oe+=4;var t=v,i=t>>2,e=(r+12|0)>>2,f=Se[e];if(Ae[f]<<24>>24==74){var _=f+1|0;Se[e]=_;var s=1}else var s=a;var s;Se[i]=0;var n=s,o=0,l=t;r:for(;;)for(var l,o,n,b=n,k=o;;){var k,b,u=Ae[Se[e]];if(u<<24>>24==0||u<<24>>24==69){var c=Se[i];if(0==(0|c)){var h=0;break r}var d=0==(0|Se[c+8>>2]);do if(d){var w=Se[c+4>>2];if(33!=(0|Se[w>>2])){var p=c;break}var E=Se[w+4>>2];if(9!=(0|Se[E+16>>2])){var p=c;break}var A=r+48|0,g=Se[A>>2]-Se[E+4>>2]|0;Se[A>>2]=g,Se[i]=0;var p=0}else var p=c;while(0);var p,y=D(r,35,k,p),h=y;break r}var m=N(r);if(0==(0|m)){var h=0;break r}if(0==(0|b)){var S=D(r,38,m,0);if(Se[l>>2]=S,0==(0|S)){var h=0;break r}var n=0,o=k,l=S+8|0;continue r}var b=0,k=m}var h;return Oe=v,h}function Mr(r){for(var a=r;;){var a;if(0==(0|a)){var e=0;break}var i=Se[a>>2];if(1!=(0|i)&&2!=(0|i)){if(6==(0|i)||7==(0|i)||42==(0|i)){var e=1;break}var e=0;break}var a=Se[a+8>>2]}var e;return e}function Cr(r){var a=r>>2;Se[a+3]=0,Se[a+2]=0,Se[a+1]=0,Se[a]=0,Se[a+4]=0}function Rr(r,a){var e,e=(r+12|0)>>2,i=Se[e],v=(Se[r+4>>2]-i|0)<(0|a);r:do if(v)var t=0;else{var f=i+a|0;Se[e]=f;var _=0==(4&Se[r+8>>2]|0);do if(!_){if(Ae[f]<<24>>24!=36)break;var s=a+(i+1)|0;Se[e]=s}while(0);var n=(0|a)>9;do if(n){var o=La(i,0|He.__str117,8);if(0!=(0|o))break;var l=Ae[i+8|0];if(l<<24>>24!=46&&l<<24>>24!=95&&l<<24>>24!=36)break;if(Ae[i+9|0]<<24>>24!=78)break;var b=r+48|0,k=22-a+Se[b>>2]|0;Se[b>>2]=k;var u=lr(r,0|He.__str169,21),t=u;break r}while(0);var c=lr(r,i,a),t=c}while(0);var t;return t}function Tr(r){var a,e,e=(r+48|0)>>2,i=Se[e],v=i+20|0;Se[e]=v;var a=(r+12|0)>>2,t=Se[a],f=t+1|0;Se[a]=f;var _=Ae[t];do if(_<<24>>24==84){var s=t+2|0;Se[a]=s;var n=Ae[f]<<24>>24;if(86==(0|n)){var o=i+15|0;Se[e]=o;var l=N(r),b=D(r,8,l,0),k=b}else if(84==(0|n)){var u=i+10|0;Se[e]=u;var c=N(r),h=D(r,9,c,0),k=h}else if(73==(0|n))var d=N(r),w=D(r,11,d,0),k=w;else if(83==(0|n))var p=N(r),E=D(r,12,p,0),k=E;else if(104==(0|n)){var A=Nr(r,104);if(0==(0|A)){var k=0;break}var g=O(r,0),y=D(r,14,g,0),k=y}else if(118==(0|n)){var m=Nr(r,118);if(0==(0|m)){var k=0;break}var S=O(r,0),M=D(r,15,S,0),k=M}else if(99==(0|n)){var C=Nr(r,0);if(0==(0|C)){var k=0;break}var R=Nr(r,0);if(0==(0|R)){var k=0;break}var T=O(r,0),I=D(r,16,T,0),k=I}else if(67==(0|n)){var P=N(r),L=sr(r);if((0|L)<0){var k=0;break}var F=Se[a],X=F+1|0;if(Se[a]=X,Ae[F]<<24>>24!=95){var k=0;break}var j=N(r),U=Se[e]+5|0;Se[e]=U;var x=D(r,10,j,P),k=x}else if(70==(0|n))var z=N(r),V=D(r,13,z,0),k=V;else{if(74!=(0|n)){var k=0;break}var B=N(r),H=D(r,17,B,0),k=H}}else if(_<<24>>24==71){var K=t+2|0;Se[a]=K;var Y=Ae[f]<<24>>24;if(86==(0|Y))var G=Ar(r),W=D(r,18,G,0),k=W;else if(82==(0|Y))var Z=Ar(r),Q=D(r,19,Z,0),k=Q;else{if(65!=(0|Y)){var k=0;break}var q=O(r,0),$=D(r,20,q,0),k=$}}else var k=0;while(0);var k;return k}function Or(r){for(var a,e=r,a=e>>2;;){var e;if(0==(0|e)){var i=0;break}var v=Se[a];if(4==(0|v)){var t=Se[a+1],f=Mr(t),i=0==(0|f)&1;break}if(25!=(0|v)&&26!=(0|v)&&27!=(0|v)){var i=0;break}var e=Se[a+1],a=e>>2}var i;return i}function Nr(r,a){var e;if(0==(0|a)){var i=r+12|0,v=Se[i>>2],t=v+1|0;Se[i>>2]=t;var f=Ae[v]<<24>>24}else var f=a;var f;do{if(104==(0|f)){var _=(sr(r),r+12|0);e=7;break}if(118==(0|f)){var s=(sr(r),r+12|0),n=Se[s>>2],o=n+1|0;if(Se[s>>2]=o,Ae[n]<<24>>24!=95){var l=0;e=8;break}var _=(sr(r),s);e=7;break}var l=0;e=8}while(0);if(7==e){var _,b=Se[_>>2],k=b+1|0;Se[_>>2]=k;var l=Ae[b]<<24>>24==95&1}var l;return l}function Ir(r){var a,e,i=r>>2,v=Oe;Oe+=56;var t,f=v,_=v+8,s=v+16,n=v+36,e=(0|r)>>2,o=Se[e],l=0==(8192&o|0);r:do{if(l){var a=(r+12|0)>>2,b=Se[a];if(Ae[b]<<24>>24!=63){var k=0;t=111;break}var u=b+1|0;Se[a]=u;var c=Ae[u];do if(c<<24>>24==63){if(Ae[b+2|0]<<24>>24==36){var h=b+3|0;if(Ae[h]<<24>>24!=63){var d=5;t=90;break}Se[a]=h;var w=6,p=h}else var w=0,p=u;var p,w,E=p+1|0;Se[a]=E;var A=Ae[E]<<24>>24;do if(48==(0|A)){var g=1;t=81}else{if(49==(0|A)){var g=2;t=81;break}if(50!=(0|A)){if(51==(0|A)){var y=0|He.__str2172,m=E;t=82;break}if(52==(0|A)){var y=0|He.__str3173,m=E;t=82;break}if(53==(0|A)){var y=0|He.__str4174,m=E;t=82;break}if(54==(0|A)){var y=0|He.__str5175,m=E;t=82;break}if(55==(0|A)){var y=0|He.__str6176,m=E;t=82;break}if(56==(0|A)){var y=0|He.__str7177,m=E;t=82;break}if(57==(0|A)){var y=0|He.__str8178,m=E;t=82;break}if(65==(0|A)){var y=0|He.__str9179,m=E;t=82;break}if(66==(0|A)){Se[a]=p+2|0;var S=0|He.__str10180,M=3;t=88;break}if(67==(0|A)){var y=0|He.__str11181,m=E;t=82;break}if(68==(0|A)){var y=0|He.__str12182,m=E;t=82;break}if(69==(0|A)){var y=0|He.__str13183,m=E;t=82;break}if(70==(0|A)){var y=0|He.__str14184,m=E;t=82;break}if(71==(0|A)){var y=0|He.__str15185,m=E;t=82;break}if(72==(0|A)){var y=0|He.__str16186,m=E;t=82;break}if(73==(0|A)){var y=0|He.__str17187,m=E;t=82;break}if(74==(0|A)){var y=0|He.__str18188,m=E;t=82;break}if(75==(0|A)){var y=0|He.__str19189,m=E;t=82;break}if(76==(0|A)){var y=0|He.__str20190,m=E;t=82;break}if(77==(0|A)){var y=0|He.__str21191,m=E;t=82;break}if(78==(0|A)){var y=0|He.__str22192,m=E;t=82;break}if(79==(0|A)){var y=0|He.__str23193,m=E;t=82;break}if(80==(0|A)){var y=0|He.__str24194,m=E;t=82;break}if(81==(0|A)){var y=0|He.__str25195,m=E;t=82;break}if(82==(0|A)){var y=0|He.__str26196,m=E;t=82;break}if(83==(0|A)){var y=0|He.__str27197,m=E;t=82;break}if(84==(0|A)){var y=0|He.__str28198,m=E;t=82;break}if(85==(0|A)){var y=0|He.__str29199,m=E;t=82;break}if(86==(0|A)){var y=0|He.__str30200,m=E;t=82;break}if(87==(0|A)){var y=0|He.__str31201,m=E;t=82;break}if(88==(0|A)){var y=0|He.__str32202,m=E;t=82;break}if(89==(0|A)){var y=0|He.__str33203,m=E;t=82;break}if(90==(0|A)){var y=0|He.__str34204,m=E;t=82;break}if(95==(0|A)){var C=p+2|0;Se[a]=C;var R=Ae[C]<<24>>24;if(48==(0|R)){var y=0|He.__str35205,m=C;t=82;break}if(49==(0|R)){var y=0|He.__str36206,m=C;t=82;break}if(50==(0|R)){var y=0|He.__str37207,m=C;t=82;break}if(51==(0|R)){var y=0|He.__str38208,m=C;t=82;break}if(52==(0|R)){var y=0|He.__str39209,m=C;t=82;break}if(53==(0|R)){var y=0|He.__str40210,m=C;t=82;break}if(54==(0|R)){var y=0|He.__str41211,m=C;t=82;break}if(55==(0|R)){var y=0|He.__str42212,m=C;t=82;break}if(56==(0|R)){var y=0|He.__str43213,m=C;t=82;break}if(57==(0|R)){var y=0|He.__str44214,m=C;t=82;break}if(65==(0|R)){var y=0|He.__str45215,m=C;t=82;break}if(66==(0|R)){var y=0|He.__str46216,m=C;t=82;break}if(67==(0|R)){Se[a]=p+3|0;var T=0|He.__str47217;t=84;break}if(68==(0|R)){var y=0|He.__str48218,m=C;t=82;break}if(69==(0|R)){var y=0|He.__str49219,m=C;t=82;break}if(70==(0|R)){var y=0|He.__str50220,m=C;t=82;break}if(71==(0|R)){var y=0|He.__str51221,m=C;t=82;break}if(72==(0|R)){var y=0|He.__str52222,m=C;t=82;break}if(73==(0|R)){var y=0|He.__str53223,m=C;t=82;break}if(74==(0|R)){var y=0|He.__str54224,m=C;t=82;break}if(75==(0|R)){var y=0|He.__str55225,m=C;t=82;break}if(76==(0|R)){var y=0|He.__str56226,m=C;t=82;break}if(77==(0|R)){var y=0|He.__str57227,m=C;t=82;break}if(78==(0|R)){var y=0|He.__str58228,m=C;t=82;break}if(79==(0|R)){var y=0|He.__str59229,m=C;t=82;break}if(82==(0|R)){var O=4|o;Se[e]=O;var N=p+3|0;Se[a]=N;var I=Ae[N]<<24>>24;if(48==(0|I)){Se[a]=p+4|0,Cr(s);var P=(Pr(r,_,s,0),Se[_>>2]),D=Se[_+4>>2],L=Dr(r,0|He.__str60230,(ne=Oe,Oe+=8,Se[ne>>2]=P,Se[ne+4>>2]=D,ne)),F=Se[a]-1|0;Se[a]=F;var y=L,m=F;t=82;break}if(49==(0|I)){Se[a]=p+4|0;var X=Lr(r),j=Lr(r),U=Lr(r),x=Lr(r),z=Se[a]-1|0;Se[a]=z;var V=Dr(r,0|He.__str61231,(ne=Oe,Oe+=16,Se[ne>>2]=X,Se[ne+4>>2]=j,Se[ne+8>>2]=U,Se[ne+12>>2]=x,ne)),y=V,m=Se[a];t=82;break}if(50==(0|I)){var y=0|He.__str62232,m=N;t=82;break}if(51==(0|I)){var y=0|He.__str63233,m=N;t=82;break}if(52==(0|I)){var y=0|He.__str64234,m=N;t=82;break}var y=0,m=N;t=82;break}if(83==(0|R)){var y=0|He.__str65235,m=C;t=82;break}if(84==(0|R)){var y=0|He.__str66236,m=C;t=82;break}if(85==(0|R)){var y=0|He.__str67237,m=C;t=82;break}if(86==(0|R)){var y=0|He.__str68238,m=C;t=82;break}if(88==(0|R)){var y=0|He.__str69239,m=C;t=82;break}if(89==(0|R)){var y=0|He.__str70240,m=C;t=82;break}var k=0;t=111;break r}var k=0;t=111;break r}var y=0|He.__str1171,m=E;t=82}while(0);do{if(81==t){var g;Se[a]=p+2|0;var B=g;t=83;break}if(82==t){var m,y;if(Se[a]=m+1|0,1==(0|w)||2==(0|w)){var B=w;t=83;break}if(4==(0|w)){var T=y;t=84;break}if(6!=(0|w)){var S=y,M=w;t=88;break}Cr(n);var H=Xr(r,n,0,60,62);if(0==(0|H))var K=y;else var Y=Dr(r,0|He.__str170,(ne=Oe,Oe+=8,Se[ne>>2]=y,Se[ne+4>>2]=H,ne)),K=Y;var K;Se[i+6]=0;var S=K,M=w;t=88;break}}while(0);if(83==t){var B,G=r+40|0,W=Fr(r,0|He._symbol_demangle_dashed_null,-1,G);if(0==(0|W)){var k=0;t=111;break r}var d=B;t=90;break}if(84==t){var T;Se[i+4]=T;var Z=1,Q=T;t=109;break r}if(88==t){var M,S,q=r+40|0,$=Fr(r,S,-1,q);if(0==(0|$)){var k=0;t=111;break r}var d=M;t=90;break}}else{if(c<<24>>24==36){var J=b+2|0;Se[a]=J;var rr=jr(r);Se[i+4]=rr;var ar=0!=(0|rr)&1;t=107;break}var d=0;t=90}while(0);if(90==t){var d,er=Me[a],ir=Ae[er]<<24>>24;if(64==(0|ir))Se[a]=er+1|0;else if(36==(0|ir))t=93;else{var vr=zr(r);if(0==(0|vr)){var k=-1;t=111;break}}if(5==(0|d)){var tr=r+20|0,fr=Se[tr>>2]+1|0;Se[tr>>2]=fr}else if(1==(0|d)||2==(0|d)){if(Me[i+11]>>>0<2){var k=-1;t=111;break}var _r=r+56|0,sr=Me[_r>>2],nr=Se[sr+4>>2];if(1==(0|d))Se[sr>>2]=nr;else{var or=Dr(r,0|He.__str71241,(ne=Oe,Oe+=4,Se[ne>>2]=nr,ne)),lr=Se[_r>>2];Se[lr>>2]=or}var br=4|Se[e];Se[e]=br}else if(3==(0|d)){var kr=Se[e]&-5;Se[e]=kr}var ur=ge[Se[a]];if((ur-48&255&255)<10)var cr=Vr(r),ar=cr;else if((ur-65&255&255)<26)var hr=Br(r,3==(0|d)&1),ar=hr;else{if(ur<<24>>24!=36){var k=-1;t=111;break}var dr=Hr(r),ar=dr}}var ar;if(0==(0|ar)){var k=-1;t=111;break}var Z=ar,Q=Se[i+4];t=109;break}var wr=Pr(r,f,0,0);if(0==(0|wr)){var k=-1;t=111;break}var pr=Se[f>>2],Er=Se[f+4>>2],Ar=Dr(r,0|He.__str170,(ne=Oe,Oe+=8,Se[ne>>2]=pr,Se[ne+4>>2]=Er,ne));Se[i+4]=Ar;var Z=1,Q=Ar;t=109;break}while(0);do if(109==t){var Q,Z;if(0!=(0|Q)){var k=Z;break}Xa(0|He.__str72242,1499,0|He.___func___symbol_demangle,0|He.__str73243);var k=Z}while(0);var k;return Oe=v,k}function Pr(r,a,e,i){var v,t,f,_=Oe;Oe+=24;var s=_,n=_+4,o=_+8,l=_+16,b=_+20;0==(0|a)&&Xa(0|He.__str72242,829,0|He.___func___demangle_datatype,0|He.__str121291);var f=(a+4|0)>>2;Se[f]=0;var t=(0|a)>>2;Se[t]=0;var v=(r+12|0)>>2,k=Me[v],u=k+1|0;Se[v]=u;var c=Ae[k],h=c<<24>>24;do if(95==(0|h)){Se[v]=k+2|0;var d=Ae[u],w=Zr(d);Se[t]=w}else if(67==(0|h)||68==(0|h)||69==(0|h)||70==(0|h)||71==(0|h)||72==(0|h)||73==(0|h)||74==(0|h)||75==(0|h)||77==(0|h)||78==(0|h)||79==(0|h)||88==(0|h)||90==(0|h)){var p=Qr(c);Se[t]=p}else if(84==(0|h)||85==(0|h)||86==(0|h)||89==(0|h)){var E=qr(r);if(0==(0|E))break;var A=0==(32768&Se[r>>2]|0);do if(A)if(84==(0|h))var g=0|He.__str122292;else if(85==(0|h))var g=0|He.__str123293;else if(86==(0|h))var g=0|He.__str124294;else{if(89!=(0|h)){var g=0;break}var g=0|He.__str125295}else var g=0;while(0);var g,y=Dr(r,0|He.__str170,(ne=Oe,Oe+=8,Se[ne>>2]=g,Se[ne+4>>2]=E,ne));Se[t]=y}else if(63==(0|h))if(0==(0|i))$r(a,r,e,63,0);else{var m=Lr(r);if(0==(0|m))break;var S=Dr(r,0|He.__str126296,(ne=Oe,Oe+=4,Se[ne>>2]=m,ne));Se[t]=S}else if(65==(0|h)||66==(0|h))$r(a,r,e,c,i);else if(81==(0|h)||82==(0|h)||83==(0|h)){var M=0==(0|i)?80:c;$r(a,r,e,M,i)}else if(80==(0|h))if(((Ae[u]<<24>>24)-48|0)>>>0<10){var C=k+2|0;if(Se[v]=C,Ae[u]<<24>>24!=54)break;var R=r+44|0,T=Se[R>>2];Se[v]=k+3|0;var O=Ae[C],N=Se[r>>2]&-17,I=Ur(O,s,n,N);if(0==(0|I))break;var P=Pr(r,o,e,0);if(0==(0|P))break;var D=Xr(r,e,1,40,41);if(0==(0|D))break;Se[R>>2]=T;var L=Se[o>>2],F=Se[o+4>>2],X=Se[s>>2],j=Dr(r,0|He.__str127297,(ne=Oe,Oe+=12,Se[ne>>2]=L,Se[ne+4>>2]=F,Se[ne+8>>2]=X,ne));Se[t]=j;var U=Dr(r,0|He.__str128298,(ne=Oe,Oe+=4,Se[ne>>2]=D,ne));Se[f]=U}else $r(a,r,e,80,i);else if(87==(0|h)){if(Ae[u]<<24>>24!=52)break;Se[v]=k+2|0;var x=qr(r);if(0==(0|x))break;if(0==(32768&Se[r>>2]|0)){var z=Dr(r,0|He.__str129299,(ne=Oe,Oe+=4,Se[ne>>2]=x,ne));Se[t]=z}else Se[t]=x}else if(48==(0|h)||49==(0|h)||50==(0|h)||51==(0|h)||52==(0|h)||53==(0|h)||54==(0|h)||55==(0|h)||56==(0|h)||57==(0|h)){var V=h<<1,B=V-96|0,H=Yr(e,B);Se[t]=H;var K=V-95|0,Y=Yr(e,K);Se[f]=Y}else if(36==(0|h)){var G=k+2|0;Se[v]=G;var W=Ae[u]<<24>>24;if(48==(0|W)){var Z=Lr(r);Se[t]=Z}else if(68==(0|W)){var Q=Lr(r);if(0==(0|Q))break;var q=Dr(r,0|He.__str130300,(ne=Oe,Oe+=4,Se[ne>>2]=Q,ne));Se[t]=q}else if(70==(0|W)){var $=Lr(r);if(0==(0|$))break;var J=Lr(r);if(0==(0|J))break;var rr=Dr(r,0|He.__str131301,(ne=Oe,Oe+=8,Se[ne>>2]=$,Se[ne+4>>2]=J,ne));Se[t]=rr}else if(71==(0|W)){var ar=Lr(r);if(0==(0|ar))break;var er=Lr(r);if(0==(0|er))break;var ir=Lr(r);if(0==(0|ir))break;var vr=Dr(r,0|He.__str132302,(ne=Oe,Oe+=12,Se[ne>>2]=ar,Se[ne+4>>2]=er,Se[ne+8>>2]=ir,ne));Se[t]=vr}else if(81==(0|W)){var tr=Lr(r);if(0==(0|tr))break;var fr=Dr(r,0|He.__str133303,(ne=Oe,Oe+=4,Se[ne>>2]=tr,ne));Se[t]=fr}else{if(36!=(0|W))break;if(Ae[G]<<24>>24!=67)break;Se[v]=k+3|0;var _r=xr(r,l,b);if(0==(0|_r))break;var sr=Pr(r,a,e,i);if(0==(0|sr))break;var nr=Se[t],or=Se[l>>2],lr=Dr(r,0|He.__str83253,(ne=Oe,Oe+=8,Se[ne>>2]=nr,Se[ne+4>>2]=or,ne));Se[t]=lr}}while(0);var br=0!=(0|Se[t])&1;return Oe=_,br}function Dr(r,a){var e,i=Oe;Oe+=4;var v=i,e=v>>2,t=v;Se[t>>2]=arguments[Dr.length];var f=1,_=0;r:for(;;){var _,f,s=Ae[a+_|0];do{if(s<<24>>24==0)break r;if(s<<24>>24==37){var n=_+1|0,o=Ae[a+n|0]<<24>>24;if(115==(0|o)){var l=Se[e],b=l,k=l+4|0;Se[e]=k;var u=Se[b>>2];if(0==(0|u)){var c=f,h=n;break}var d=Ca(u),c=d+f|0,h=n;break}if(99==(0|o)){var w=Se[e]+4|0;Se[e]=w;var c=f+1|0,h=n;break}if(37==(0|o))var p=n;else var p=_;var p,c=f+1|0,h=p}else var c=f+1|0,h=_}while(0);var h,c,f=c,_=h+1|0}var E=Wr(r,f);if(0==(0|E))var A=0;else{Se[t>>2]=arguments[Dr.length];var g=E,y=0;r:for(;;){var y,g,m=Ae[a+y|0];do{if(m<<24>>24==0)break r;if(m<<24>>24==37){var S=y+1|0,M=Ae[a+S|0]<<24>>24;if(115==(0|M)){var C=Se[e],R=C,T=C+4|0;Se[e]=T;var O=Se[R>>2];if(0==(0|O)){var N=g,I=S;break}var P=Ca(O);Pa(g,O,P,1);var N=g+P|0,I=S;break}if(99==(0|M)){var D=Se[e],L=D,F=D+4|0;Se[e]=F,Ae[g]=255&Se[L>>2];var N=g+1|0,I=S;break}if(37==(0|M))var X=S;else var X=y;var X;Ae[g]=37;var N=g+1|0,I=X}else{Ae[g]=m;var N=g+1|0,I=y}}while(0);var I,N,g=N,y=I+1|0}Ae[g]=0;var A=E}var A;return Oe=i,A}function Lr(r){var a,a=(r+12|0)>>2,e=Se[a],i=Ae[e];if(i<<24>>24==63){var v=e+1|0;Se[a]=v;var t=1,f=v,_=Ae[v]}else var t=0,f=e,_=i;var _,f,t,s=(_-48&255&255)<9;do if(s){var n=Wr(r,3),o=0!=(0|t);o&&(Ae[n]=45);var l=Ae[Se[a]]+1&255;Ae[n+t|0]=l;var b=o?2:1;\nAe[n+b|0]=0;var k=Se[a]+1|0;Se[a]=k;var u=n}else if(_<<24>>24==57){var c=Wr(r,4),h=0!=(0|t);h&&(Ae[c]=45),Ae[c+t|0]=49;var d=h?2:1;Ae[c+d|0]=48;var w=h?3:2;Ae[c+w|0]=0;var p=Se[a]+1|0;Se[a]=p;var u=c}else{if((_-65&255&255)>=16){var u=0;break}for(var E=0,A=f;;){var A,E,g=A+1|0;Se[a]=g;var y=(Ae[A]<<24>>24)+((E<<4)-65)|0,m=ge[g];if((m-65&255&255)>=16)break;var E=y,A=g}if(m<<24>>24!=64){var u=0;break}var S=Wr(r,17),M=0!=(0|t)?0|He.__str119289:0|ii,C=(za(S,0|He.__str118288,(ne=Oe,Oe+=8,Se[ne>>2]=M,Se[ne+4>>2]=y,ne)),Se[a]+1|0);Se[a]=C;var u=S}while(0);var u;return u}function Fr(r,a,e,i){var v,t,f,_;0==(0|a)&&Xa(0|He.__str72242,212,0|He.___func___str_array_push,0|He.__str115285),0==(0|i)&&Xa(0|He.__str72242,213,0|He.___func___str_array_push,0|He.__str116286);var f=(i+12|0)>>2,s=Me[f],n=0==(0|s);do{if(n){Se[f]=32;var o=Wr(r,128);if(0==(0|o)){var l=0;_=17;break}Se[i+16>>2]=o,_=11;break}if(Me[i+8>>2]>>>0>>0){_=11;break}var b=s<<3,k=Wr(r,b);if(0==(0|k)){var l=0;_=17;break}var u=k,c=i+16|0,h=Se[c>>2],d=Se[f]<<2;Pa(k,h,d,1);var w=Se[f]<<1;Se[f]=w,Se[c>>2]=u,_=11;break}while(0);do if(11==_){if((0|e)==-1)var p=Ca(a),E=p;else var E=e;var E,A=ja(a),g=E+1|0,y=Wr(r,g),t=(i+4|0)>>2,v=(i+16|0)>>2,m=(Se[t]<<2)+Se[v]|0;Se[m>>2]=y;var S=Se[Se[v]+(Se[t]<<2)>>2];if(0==(0|S)){Xa(0|He.__str72242,233,0|He.___func___str_array_push,0|He.__str117287);var M=Se[Se[v]+(Se[t]<<2)>>2]}else var M=S;var M;Pa(M,A,E,1),va(A),Ae[Se[Se[v]+(Se[t]<<2)>>2]+g|0]=0;var C=Se[t]+1|0;Se[t]=C;var R=i+8|0;if(C>>>0>2]>>>0){var l=1;break}Se[R>>2]=C;var l=1}while(0);var l;return l}function Xr(r,a,e,i,v){var t,f,_=Oe;Oe+=28;var s,n=_,o=_+8;Cr(o);var f=(r+12|0)>>2,l=0==(0|e),t=(0|n)>>2,b=n+4|0;r:do if(l)for(;;){var k=Se[f],u=Ae[k];if(u<<24>>24==0){s=12;break r}if(u<<24>>24==64){var c=k;s=7;break r}var h=Pr(r,n,a,1);if(0==(0|h)){var d=0;s=25;break r}var w=Se[t],p=Se[b>>2],E=Dr(r,0|He.__str170,(ne=Oe,Oe+=8,Se[ne>>2]=w,Se[ne+4>>2]=p,ne)),A=Fr(r,E,-1,o);if(0==(0|A)){var d=0;s=25;break r}var g=Se[t],y=Da(g,0|He.__str110280);if(0==(0|y)){s=12;break r}}else for(;;){var m=Se[f],S=Ae[m];if(S<<24>>24==0){s=12;break r}if(S<<24>>24==64){var c=m;s=7;break r}var M=Pr(r,n,a,1);if(0==(0|M)){var d=0;s=25;break r}var C=Se[t],R=Da(C,0|He.__str84254);if(0==(0|R)){s=13;break r}var T=Se[b>>2],O=Dr(r,0|He.__str170,(ne=Oe,Oe+=8,Se[ne>>2]=C,Se[ne+4>>2]=T,ne)),N=Fr(r,O,-1,o);if(0==(0|N)){var d=0;s=25;break r}var I=Se[t],P=Da(I,0|He.__str110280);if(0==(0|P)){s=12;break r}}while(0);do if(7==s){var c;Se[f]=c+1|0,s=12;break}while(0);do if(12==s){if(l){s=14;break}s=13;break}while(0);do if(13==s){var D=Se[f],L=D+1|0;if(Se[f]=L,Ae[D]<<24>>24==90){s=14;break}var d=0;s=25;break}while(0);r:do if(14==s){var F=o+4|0,X=Me[F>>2];do{if(0!=(0|X)){if(1==(0|X)){var j=o+16|0,U=Se[Se[j>>2]>>2],x=Da(U,0|He.__str84254);if(0==(0|x)){s=17;break}var z=j;s=20;break}var V=o+16|0;if(X>>>0<=1){var z=V;s=20;break}for(var B=0,H=1;;){var H,B,K=Se[Se[V>>2]+(H<<2)>>2],Y=Dr(r,0|He.__str112282,(ne=Oe,Oe+=8,Se[ne>>2]=B,Se[ne+4>>2]=K,ne)),G=H+1|0;if(G>>>0>=Me[F>>2]>>>0)break;var B=Y,H=G}if(0==(0|Y)){var z=V;s=20;break}var W=Y,Z=Y;s=21;break}s=17}while(0);if(17==s){var Q=i<<24>>24,q=v<<24>>24,$=Dr(r,0|He.__str111281,(ne=Oe,Oe+=8,Se[ne>>2]=Q,Se[ne+4>>2]=q,ne)),d=$;break}if(20==s)var z,W=Se[Se[z>>2]>>2],Z=0;var Z,W,J=v<<24>>24,rr=v<<24>>24==62;do if(rr){var ar=Ca(W);if(Ae[W+(ar-1)|0]<<24>>24!=62)break;var er=i<<24>>24,ir=Se[Se[o+16>>2]>>2],vr=Dr(r,0|He.__str113283,(ne=Oe,Oe+=16,Se[ne>>2]=er,Se[ne+4>>2]=ir,Se[ne+8>>2]=Z,Se[ne+12>>2]=J,ne)),d=vr;break r}while(0);var tr=i<<24>>24,fr=Se[Se[o+16>>2]>>2],_r=Dr(r,0|He.__str114284,(ne=Oe,Oe+=16,Se[ne>>2]=tr,Se[ne+4>>2]=fr,Se[ne+8>>2]=Z,Se[ne+12>>2]=J,ne)),d=_r}while(0);var d;return Oe=_,d}function jr(r){var a,e=Oe;Oe+=20;var i=e,v=r+24|0,t=Se[v>>2],a=(r+20|0)>>2,f=Se[a],_=r+44|0,s=Se[_>>2];Se[a]=t;var n=Kr(r);if(0==(0|n))var o=0;else{Cr(i);var l=Xr(r,i,0,60,62);if(0==(0|l))var b=n;else var k=Dr(r,0|He.__str170,(ne=Oe,Oe+=8,Se[ne>>2]=n,Se[ne+4>>2]=l,ne)),b=k;var b;Se[v>>2]=t,Se[a]=f,Se[_>>2]=s;var o=b}var o;return Oe=e,o}function Ur(r,a,e,i){var v,t=a>>2;Se[e>>2]=0,Se[t]=0;var f=0==(18&i|0);do{if(f){var _=r<<24>>24,s=1==((_-65)%2|0);if(0==(1&i|0)){if(s?Se[e>>2]=0|He.__str95265:v=14,65==(0|_)||66==(0|_)){Se[t]=0|He.__str96266,v=21;break}if(67==(0|_)||68==(0|_)){Se[t]=0|He.__str97267,v=21;break}if(69==(0|_)||70==(0|_)){Se[t]=0|He.__str98268,v=21;break}if(71==(0|_)||72==(0|_)){Se[t]=0|He.__str99269,v=21;break}if(73==(0|_)||74==(0|_)){Se[t]=0|He.__str100270,v=21;break}if(75==(0|_)||76==(0|_)){v=21;break}if(77==(0|_)){Se[t]=0|He.__str101271,v=21;break}var n=0;v=22;break}if(s?Se[e>>2]=0|He.__str88258:v=5,65==(0|_)||66==(0|_)){Se[t]=0|He.__str89259,v=21;break}if(67==(0|_)||68==(0|_)){Se[t]=0|He.__str90260,v=21;break}if(69==(0|_)||70==(0|_)){Se[t]=0|He.__str91261,v=21;break}if(71==(0|_)||72==(0|_)){Se[t]=0|He.__str92262,v=21;break}if(73==(0|_)||74==(0|_)){Se[t]=0|He.__str93263,v=21;break}if(75==(0|_)||76==(0|_)){v=21;break}if(77==(0|_)){Se[t]=0|He.__str94264,v=21;break}var n=0;v=22;break}v=21}while(0);if(21==v)var n=1;var n;return n}function xr(r,a,e){var i;Se[e>>2]=0;var i=(r+12|0)>>2,v=Se[i];if(Ae[v]<<24>>24==69){Se[e>>2]=0|He.__str102272;var t=Se[i]+1|0;Se[i]=t;var f=t}else var f=v;var f;Se[i]=f+1|0;var _=Ae[f]<<24>>24;if(65==(0|_)){Se[a>>2]=0;var s=1}else if(66==(0|_)){Se[a>>2]=0|He.__str103273;var s=1}else if(67==(0|_)){Se[a>>2]=0|He.__str104274;var s=1}else if(68==(0|_)){Se[a>>2]=0|He.__str105275;var s=1}else var s=0;var s;return s}function zr(r){var a,e,a=(r+12|0)>>2,i=r+40|0,v=r+20|0,t=0|i,f=r+44|0,_=r+48|0,s=r+52|0,n=r+56|0,o=r+20|0,l=r+24|0,b=r+16|0,k=0;r:for(;;){var k,u=Se[a],c=Ae[u];if(c<<24>>24==64){var h=u+1|0;Se[a]=h;var d=1;break}var w=c<<24>>24;do{if(0==(0|w)){var d=0;break r}if(48==(0|w)||49==(0|w)||50==(0|w)||51==(0|w)||52==(0|w)||53==(0|w)||54==(0|w)||55==(0|w)||56==(0|w)||57==(0|w)){var p=u+1|0;Se[a]=p;var E=(Ae[u]<<24>>24)-48|0,A=Yr(v,E),g=A;e=14;break}if(63==(0|w)){var y=u+1|0;Se[a]=y;var m=Ae[y]<<24>>24;if(36==(0|m)){var S=u+2|0;Se[a]=S;var M=jr(r);if(0==(0|M)){var d=0;break r}var C=Fr(r,M,-1,v);if(0==(0|C)){var d=0;break r}var R=M;e=15;break}if(63==(0|m)){var T=Se[t>>2],O=Se[f>>2],N=Se[_>>2],I=Se[s>>2],P=Se[n>>2],D=Se[o>>2],L=Se[l>>2];Cr(i);var F=Ir(r);if(0==(0|F))var X=k;else var j=Se[b>>2],U=Dr(r,0|He.__str109279,(ne=Oe,Oe+=4,Se[ne>>2]=j,ne)),X=U;var X;Se[o>>2]=D,Se[l>>2]=L,Se[t>>2]=T,Se[f>>2]=O,Se[_>>2]=N,Se[s>>2]=I,Se[n>>2]=P;var g=X;e=14;break}var x=Lr(r);if(0==(0|x)){var d=0;break r}var z=Dr(r,0|He.__str109279,(ne=Oe,Oe+=4,Se[ne>>2]=x,ne)),g=z;e=14;break}var V=Kr(r),g=V;e=14;break}while(0);if(14==e){var g;if(0==(0|g)){var d=0;break}var R=g}var R,B=Fr(r,R,-1,i);if(0==(0|B)){var d=0;break}var k=R}var d;return d}function Vr(r){var a,e,i,v=Oe;Oe+=36;var t,f=v,i=f>>2,_=v+4,s=v+8,e=s>>2,n=v+16;Se[i]=0;var o=0|r,l=Se[o>>2],b=0==(128&l|0),k=r+12|0;do if(b){var u=Ae[Se[k>>2]]<<24>>24;if(48==(0|u))var c=0|He.__str76246,h=k,a=h>>2;else if(49==(0|u))var c=0|He.__str77247,h=k,a=h>>2;else{if(50!=(0|u)){var c=0,h=k,a=h>>2;break}var c=0|He.__str78248,h=k,a=h>>2}}else var c=0,h=k,a=h>>2;while(0);var h,c,d=0==(512&l|0);do if(d){if((Ae[Se[a]]-48&255&255)>=3){var w=0;break}var w=0|He.__str79249}else var w=0;while(0);var w,p=Gr(r,0),E=Se[a],A=E+1|0;Se[a]=A;var g=Ae[E]<<24>>24;do{if(48==(0|g)||49==(0|g)||50==(0|g)||51==(0|g)||52==(0|g)||53==(0|g)){var y=r+44|0,m=Se[y>>2];Cr(n);var S=Pr(r,s,n,0);if(0==(0|S)){var M=0;t=28;break}var C=xr(r,f,_);if(0==(0|C)){var M=0;t=28;break}var R=Se[i],T=0==(0|R),O=Se[_>>2];do if(T)Se[i]=O;else{if(0==(0|O))break;var N=Dr(r,0|He.__str83253,(ne=Oe,Oe+=8,Se[ne>>2]=R,Se[ne+4>>2]=O,ne));Se[i]=N}while(0);Se[y>>2]=m,t=22;break}if(54==(0|g)||55==(0|g)){var I=s+4|0;Se[I>>2]=0,Se[e]=0;var P=xr(r,f,_);if(0==(0|P)){var M=0;t=28;break}if(Ae[Se[a]]<<24>>24==64){t=22;break}var D=qr(r);if(0==(0|D)){var M=0;t=28;break}var L=Dr(r,0|He.__str107277,(ne=Oe,Oe+=4,Se[ne>>2]=D,ne));Se[I>>2]=L,t=22;break}if(56==(0|g)||57==(0|g)){Se[e+1]=0,Se[e]=0,Se[i]=0,t=22;break}var M=0;t=28}while(0);if(22==t){var F=0==(4096&Se[o>>2]|0);do{if(F){var X=Se[e],j=Se[i];if(0==(0|j)){var U=X;t=26;break}var x=0!=(0|X)?0|He.__str87257:0,z=0|He.__str87257,V=j,B=x,H=X;t=27;break}Se[i]=0,Se[e+1]=0,Se[e]=0;var U=0;t=26;break}while(0);if(26==t)var U,K=0!=(0|U)?0|He.__str87257:0,z=K,V=0,B=0,H=U;var H,B,V,z,Y=Se[e+1],G=Dr(r,0|He.__str108278,(ne=Oe,Oe+=32,Se[ne>>2]=c,Se[ne+4>>2]=w,Se[ne+8>>2]=H,Se[ne+12>>2]=B,Se[ne+16>>2]=V,Se[ne+20>>2]=z,Se[ne+24>>2]=p,Se[ne+28>>2]=Y,ne));Se[r+16>>2]=G;var M=1}var M;return Oe=v,M}function Br(r,a){var e,i,v,t,f=Oe;Oe+=44;var _,s=f,t=s>>2,n=f+8,o=f+12,v=o>>2,l=f+16,b=f+20,k=f+40;Se[v]=0;var i=(r+12|0)>>2,u=Se[i],c=u+1|0;Se[i]=c;var h=ge[u],d=h<<24>>24,w=(h-65&255&255)>25;r:do if(w)var p=0;else{var e=(0|r)>>2,E=Me[e],A=0==(128&E|0),g=d-65|0;do if(A){var y=g/8|0;if(0==(0|y))var m=0|He.__str76246,S=g;else if(1==(0|y))var m=0|He.__str77247,S=g;else{if(2!=(0|y)){var m=0,S=g;break}var m=0|He.__str78248,S=g}}else var m=0,S=g;while(0);var S,m,M=0==(512&E|0)&h<<24>>24<89,C=(0|S)%8;do if(M)if(2==(0|C)||3==(0|C))var R=m,T=0|He.__str79249;else if(4==(0|C)||5==(0|C))var R=m,T=0|He.__str80250;else{if(6!=(0|C)&&7!=(0|C)){var R=m,T=0;break}var O=Dr(r,0|He.__str81251,(ne=Oe,Oe+=4,Se[ne>>2]=m,ne)),R=O,T=0|He.__str80250}else var R=m,T=0;while(0);var T,R,N=Gr(r,0),I=6==(0|C);do{if(!I){if(7==((d-56)%8|0)){_=14;break}var P=N;_=15;break}_=14}while(0);if(14==_)var D=Lr(r),L=Dr(r,0|He.__str82252,(ne=Oe,Oe+=8,Se[ne>>2]=N,Se[ne+4>>2]=D,ne)),P=L;var P,F=h<<24>>24>88;do if(F)var X=0;else{if((C-2|0)>>>0<2){var X=0;break}var j=xr(r,o,k);if(0==(0|j)){var p=0;break r}var U=Me[v],x=Se[k>>2];if(0==(0|U)&0==(0|x)){var X=0;break}var z=Dr(r,0|He.__str83253,(ne=Oe,Oe+=8,Se[ne>>2]=U,Se[ne+4>>2]=x,ne));Se[v]=z;var X=z}while(0);var X,V=Se[i],B=V+1|0;Se[i]=B;var H=Ae[V],K=Se[e],Y=Ur(H,n,l,K);if(0==(0|Y)){var p=0;break}Cr(b);var G=Se[i];if(Ae[G]<<24>>24==64){Se[t]=0|He.__str84254,Se[t+1]=0;var W=G+1|0;Se[i]=W}else{var Z=Pr(r,s,b,0);if(0==(0|Z)){var p=0;break}}if(0!=(4&Se[e]|0)&&(Se[t+1]=0,Se[t]=0),0==(0|a))var Q=P;else{var q=0|s,$=Se[q>>2],J=s+4|0,rr=Se[J>>2],ar=Dr(r,0|He.__str85255,(ne=Oe,Oe+=12,Se[ne>>2]=P,Se[ne+4>>2]=$,Se[ne+8>>2]=rr,ne));Se[J>>2]=0,Se[q>>2]=0;var Q=ar}var Q,er=r+44|0,ir=Se[er>>2],vr=Xr(r,b,1,40,41);if(0==(0|vr)){var p=0;break}if(0==(4096&Se[e]|0))var tr=vr,fr=X;else{Se[v]=0;var tr=0,fr=0}var fr,tr;Se[er>>2]=ir;var _r=Se[t],sr=Se[t+1];if(0==(0|_r))var nr=0;else var or=0!=(0|sr)?0:0|He.__str87257,nr=or;var nr,lr=Se[n>>2],br=0!=(0|lr)?0|He.__str87257:0,kr=Se[l>>2],ur=Dr(r,0|He.__str86256,(ne=Oe,Oe+=44,Se[ne>>2]=R,Se[ne+4>>2]=T,Se[ne+8>>2]=_r,Se[ne+12>>2]=nr,Se[ne+16>>2]=lr,Se[ne+20>>2]=br,Se[ne+24>>2]=kr,Se[ne+28>>2]=Q,Se[ne+32>>2]=tr,Se[ne+36>>2]=fr,Se[ne+40>>2]=sr,ne));Se[r+16>>2]=ur;var p=1}while(0);var p;return Oe=f,p}function Hr(r){var a,a=(r+12|0)>>2,e=Se[a];if(Ae[e]<<24>>24==36)var i=e;else{Xa(0|He.__str72242,1252,0|He.___func___handle_template,0|He.__str74244);var i=Se[a]}var i;Se[a]=i+1|0;var v=Kr(r),t=0==(0|v);do if(t)var f=0;else{var _=Xr(r,0,0,60,62);if(0==(0|_)){var f=0;break}var s=Dr(r,0|He.__str170,(ne=Oe,Oe+=8,Se[ne>>2]=v,Se[ne+4>>2]=_,ne));Se[r+16>>2]=s;var f=1}while(0);var f;return f}function Kr(r){for(var a,a=(r+12|0)>>2,e=Me[a],i=e,v=Ae[e];;){var v,i;if(!((v-65&255&255)<26|(v-97&255&255)<26|(v-48&255&255)<10)&&v<<24>>24!=95&&v<<24>>24!=36){var t=0;break}var f=i+1|0;Se[a]=f;var _=ge[f];if(_<<24>>24==64){Se[a]=i+2|0;var s=f-e|0,n=r+20|0,o=Fr(r,e,s,n);if(0==(0|o)){var t=0;break}var l=Se[r+24>>2]-1-Se[n>>2]|0,b=Yr(n,l),t=b;break}var i=f,v=_}var t;return t}function Yr(r,a){0==(0|r)&&Xa(0|He.__str72242,263,0|He.___func___str_array_get_ref,0|He.__str75245);var e=Se[r>>2]+a|0;if(e>>>0>2]>>>0)var i=Se[Se[r+16>>2]+(e<<2)>>2];else var i=0;var i;return i}function Gr(r,a){var e,e=(r+44|0)>>2,i=Me[e];if(i>>>0>a>>>0){for(var v=r+56|0,t=a,f=0,_=Se[v>>2],s=i;;){var s,_,f,t,n=Me[_+(t<<2)>>2];if(0==(0|n)){Xa(0|He.__str72242,680,0|He.___func___get_class_string,0|He.__str106276);var o=Se[v>>2],l=o,b=Se[o+(t<<2)>>2],k=Se[e]}else var l=_,b=n,k=s;var k,b,l,u=Ca(b),c=u+(f+2)|0,h=t+1|0;if(h>>>0>=k>>>0)break;var t=h,f=c,_=l,s=k}var d=c-1|0}else var d=-1;var d,w=Wr(r,d);if(0==(0|w))var p=0;else{var E=Se[e]-1|0,A=(0|E)<(0|a);r:do if(A)var g=0;else for(var y=r+56|0,m=0,S=E;;){var S,m,M=Se[Se[y>>2]+(S<<2)>>2],C=Ca(M),R=w+m|0;Pa(R,M,C,1);var T=C+m|0;if((0|S)>(0|a)){var O=T+1|0;Ae[w+T|0]=58;var N=T+2|0;Ae[w+O|0]=58;var I=N}else var I=T;var I,P=S-1|0;if((0|P)<(0|a)){var g=I;break r}var m=I,S=P}while(0);var g;Ae[w+g|0]=0;var p=w}var p;return p}function Wr(r,a){var e,i=a>>>0>1020;do if(i){var v=Se[r+4>>2],t=a+4|0,f=pe[v](t);if(0==(0|f)){var _=0;break}var s=r+60|0,n=Se[s>>2],o=f;Se[o>>2]=n,Se[s>>2]=f,Se[r+64>>2]=0;var _=f+4|0}else{var e=(r+64|0)>>2,l=Me[e];if(l>>>0>>0){var b=Se[r+4>>2],k=pe[b](1024);if(0==(0|k)){var _=0;break}var u=r+60|0,c=Se[u>>2],h=k;Se[h>>2]=c,Se[u>>2]=k,Se[e]=1020;var d=1020,w=k}else var d=l,w=Se[r+60>>2];var w,d;Se[e]=d-a|0;var _=w+(1024-d)|0}while(0);var _;return _}function Zr(r){var a=r<<24>>24;if(68==(0|a))var e=0|He.__str157327;else if(69==(0|a))var e=0|He.__str158328;else if(70==(0|a))var e=0|He.__str159329;else if(71==(0|a))var e=0|He.__str160330;else if(72==(0|a))var e=0|He.__str161331;else if(73==(0|a))var e=0|He.__str162332;else if(74==(0|a))var e=0|He.__str163333;else if(75==(0|a))var e=0|He.__str164334;else if(76==(0|a))var e=0|He.__str165335;else if(77==(0|a))var e=0|He.__str166336;else if(78==(0|a))var e=0|He.__str167337;else if(87==(0|a))var e=0|He.__str168338;else var e=0;var e;return e}function Qr(r){var a=r<<24>>24;if(67==(0|a))var e=0|He.__str145315;else if(68==(0|a))var e=0|He.__str146316;else if(69==(0|a))var e=0|He.__str147317;else if(70==(0|a))var e=0|He.__str148318;else if(71==(0|a))var e=0|He.__str149319;else if(72==(0|a))var e=0|He.__str150320;else if(73==(0|a))var e=0|He.__str151321;else if(74==(0|a))var e=0|He.__str152322;else if(75==(0|a))var e=0|He.__str153323;else if(77==(0|a))var e=0|He.__str154324;else if(78==(0|a))var e=0|He.__str155325;else if(79==(0|a))var e=0|He.__str156326;else if(88==(0|a))var e=0|He.__str84254;else if(90==(0|a))var e=0|He.__str110280;else var e=0;var e;return e}function qr(r){var a=r+44|0,e=Se[a>>2],i=zr(r);if(0==(0|i))var v=0;else var t=Gr(r,e),v=t;var v;return Se[a>>2]=e,v}function $r(r,a,e,i,v){var t,f,_,s=Oe;Oe+=16;var n,o=s,_=o>>2,l=s+4,b=s+8,f=b>>2;Se[l>>2]=0|ii;var t=(a+12|0)>>2,k=Se[t];if(Ae[k]<<24>>24==69){Se[l>>2]=0|He.__str134304;var u=k+1|0;Se[t]=u;var c=0|He.__str134304}else var c=0|ii;var c,h=i<<24>>24;do{if(65==(0|h)){var d=Dr(a,0|He.__str135305,(ne=Oe,Oe+=4,Se[ne>>2]=c,ne)),w=d;n=10;break}if(66==(0|h)){var p=Dr(a,0|He.__str136306,(ne=Oe,Oe+=4,Se[ne>>2]=c,ne)),w=p;n=10;break}if(80==(0|h)){var E=Dr(a,0|He.__str137307,(ne=Oe,Oe+=4,Se[ne>>2]=c,ne)),w=E;n=10;break}if(81==(0|h)){var A=Dr(a,0|He.__str138308,(ne=Oe,Oe+=4,Se[ne>>2]=c,ne)),w=A;n=10;break}if(82==(0|h)){var g=Dr(a,0|He.__str139309,(ne=Oe,Oe+=4,Se[ne>>2]=c,ne)),w=g;n=10;break}if(83==(0|h)){var y=Dr(a,0|He.__str140310,(ne=Oe,Oe+=4,Se[ne>>2]=c,ne)),w=y;n=10;break}if(63==(0|h)){var w=0|ii;n=10}else n=31}while(0);r:do if(10==n){var w,m=xr(a,o,l);if(0==(0|m))break;var S=a+44|0,M=Se[S>>2],C=Se[t],R=Ae[C]<<24>>24==89;a:do if(R){var T=C+1|0;Se[t]=T;var O=Lr(a);if(0==(0|O))break r;var N=Ha(O),I=Ae[w]<<24>>24==32,P=Se[_],D=0==(0|P);do{if(I){if(!D){n=17;break}var L=w+1|0;n=18;break}if(D){var L=w;n=18;break}n=17;break}while(0);if(17==n){var F=Dr(a,0|He.__str141311,(ne=Oe,Oe+=8,Se[ne>>2]=P,Se[ne+4>>2]=w,ne));Se[_]=0;var X=F}else if(18==n)var L,j=Dr(a,0|He.__str142312,(ne=Oe,Oe+=4,Se[ne>>2]=L,ne)),X=j;var X;if(0==(0|N)){var U=X;break}for(var x=X,z=N;;){var z,x,V=z-1|0,B=Lr(a),H=Dr(a,0|He.__str143313,(ne=Oe,Oe+=8,Se[ne>>2]=x,Se[ne+4>>2]=B,ne));if(0==(0|V)){var U=H;break a}var x=H,z=V}}else var U=w;while(0);var U,K=Pr(a,b,e,0);if(0==(0|K))break;var Y=Se[_];if(0==(0|Y)){var G=0==(0|v);do if(G){if(Ae[U]<<24>>24==0){var W=U;break}var Z=U+1|0;if(Ae[Z]<<24>>24!=42){var W=U;break}var Q=Se[f],q=Ca(Q);if(Ae[Q+(q-1)|0]<<24>>24!=42){var W=U;break}var W=Z}else var W=U;while(0);var W,$=Se[f],J=Dr(a,0|He.__str170,(ne=Oe,Oe+=8,Se[ne>>2]=$,Se[ne+4>>2]=W,ne));Se[r>>2]=J}else{var rr=Se[f],ar=Dr(a,0|He.__str144314,(ne=Oe,Oe+=12,Se[ne>>2]=rr,Se[ne+4>>2]=Y,Se[ne+8>>2]=U,ne));Se[r>>2]=ar}var er=Se[f+1];Se[r+4>>2]=er,Se[S>>2]=M}while(0);Oe=s}function Jr(r){var a,e=r>>>0<245;do{if(e){if(r>>>0<11)var i=16;else var i=r+11&-8;var i,v=i>>>3,t=Me[vi>>2],f=t>>>(v>>>0);if(0!=(3&f|0)){var _=(1&f^1)+v|0,s=_<<1,n=(s<<2)+vi+40|0,o=(s+2<<2)+vi+40|0,l=Me[o>>2],b=l+8|0,k=Me[b>>2];if((0|n)==(0|k))Se[vi>>2]=t&(1<<_^-1);else{if(k>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[o>>2]=k,Se[k+12>>2]=n}var u=_<<3;Se[l+4>>2]=3|u;var c=l+(4|u)|0,h=1|Se[c>>2];Se[c>>2]=h;var d=b;a=38;break}if(i>>>0<=Me[vi+8>>2]>>>0){var w=i;a=30;break}if(0!=(0|f)){var p=2<>>12&16,y=A>>>(g>>>0),m=y>>>5&8,S=y>>>(m>>>0),M=S>>>2&4,C=S>>>(M>>>0),R=C>>>1&2,T=C>>>(R>>>0),O=T>>>1&1,N=(m|g|M|R|O)+(T>>>(O>>>0))|0,I=N<<1,P=(I<<2)+vi+40|0,D=(I+2<<2)+vi+40|0,L=Me[D>>2],F=L+8|0,X=Me[F>>2];if((0|P)==(0|X))Se[vi>>2]=t&(1<>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[D>>2]=X,Se[X+12>>2]=P}var j=N<<3,U=j-i|0;Se[L+4>>2]=3|i;var x=L,z=x+i|0;Se[x+(4|i)>>2]=1|U,Se[x+j>>2]=U;var V=Me[vi+8>>2];if(0!=(0|V)){var B=Se[vi+20>>2],H=V>>>2&1073741822,K=(H<<2)+vi+40|0,Y=Me[vi>>2],G=1<<(V>>>3),W=0==(Y&G|0);do{if(!W){var Z=(H+2<<2)+vi+40|0,Q=Me[Z>>2];if(Q>>>0>=Me[vi+16>>2]>>>0){var q=Q,$=Z;break}throw Ka(),"Reached an unreachable!"}Se[vi>>2]=Y|G;var q=K,$=(H+2<<2)+vi+40|0}while(0);var $,q;Se[$>>2]=B,Se[q+12>>2]=B;var J=B+8|0;Se[J>>2]=q;var rr=B+12|0;Se[rr>>2]=K}Se[vi+8>>2]=U,Se[vi+20>>2]=z;var d=F;a=38;break}if(0==(0|Se[vi+4>>2])){var w=i;a=30;break}var ar=ra(i);if(0==(0|ar)){var w=i;a=30;break}var d=ar;a=38;break}if(r>>>0>4294967231){var w=-1;a=30;break}var er=r+11&-8;if(0==(0|Se[vi+4>>2])){var w=er;a=30;break}var ir=ea(er);if(0==(0|ir)){var w=er;a=30;break}var d=ir;a=38;break}while(0);if(30==a){var w,vr=Me[vi+8>>2];if(w>>>0>vr>>>0){var tr=Me[vi+12>>2];if(w>>>0>>0){var fr=tr-w|0;Se[vi+12>>2]=fr;var _r=Me[vi+24>>2],sr=_r;Se[vi+24>>2]=sr+w|0,Se[w+(sr+4)>>2]=1|fr,Se[_r+4>>2]=3|w;var d=_r+8|0}else var nr=aa(w),d=nr}else{var or=vr-w|0,lr=Me[vi+20>>2];if(or>>>0>15){var br=lr;Se[vi+20>>2]=br+w|0,Se[vi+8>>2]=or,Se[w+(br+4)>>2]=1|or,Se[br+vr>>2]=or,Se[lr+4>>2]=3|w}else{Se[vi+8>>2]=0,Se[vi+20>>2]=0,Se[lr+4>>2]=3|vr;var kr=vr+(lr+4)|0,ur=1|Se[kr>>2];Se[kr>>2]=ur}var d=lr+8|0}}var d;return d}function ra(r){var a,e,i,v=Se[vi+4>>2],t=(v&-v)-1|0,f=t>>>12&16,_=t>>>(f>>>0),s=_>>>5&8,n=_>>>(s>>>0),o=n>>>2&4,l=n>>>(o>>>0),b=l>>>1&2,k=l>>>(b>>>0),u=k>>>1&1,c=Me[vi+((s|f|o|b|u)+(k>>>(u>>>0))<<2)+304>>2],h=c,e=h>>2,d=(Se[c+4>>2]&-8)-r|0;r:for(;;)for(var d,h,w=h;;){var w,p=Se[w+16>>2];if(0==(0|p)){var E=Se[w+20>>2];if(0==(0|E))break r;var A=E}else var A=p;var A,g=(Se[A+4>>2]&-8)-r|0;if(g>>>0>>0){var h=A,e=h>>2,d=g;continue r}var w=A}var y=h,m=Me[vi+16>>2],S=y>>>0>>0;do if(!S){var M=y+r|0,C=M;if(y>>>0>=M>>>0)break;var R=Me[e+6],T=Me[e+3],O=(0|T)==(0|h);do if(O){var N=h+20|0,I=Se[N>>2];if(0==(0|I)){var P=h+16|0,D=Se[P>>2];if(0==(0|D)){var L=0,a=L>>2;break}var F=P,X=D}else{var F=N,X=I;i=14}for(;;){var X,F,j=X+20|0,U=Se[j>>2];if(0==(0|U)){var x=X+16|0,z=Me[x>>2];if(0==(0|z))break;var F=x,X=z}else var F=j,X=U}if(F>>>0>>0)throw Ka(),"Reached an unreachable!";Se[F>>2]=0;var L=X,a=L>>2}else{var V=Me[e+2];if(V>>>0>>0)throw Ka(),"Reached an unreachable!";Se[V+12>>2]=T,Se[T+8>>2]=V;var L=T,a=L>>2}while(0);var L,B=0==(0|R);r:do if(!B){var H=h+28|0,K=(Se[H>>2]<<2)+vi+304|0,Y=(0|h)==(0|Se[K>>2]);do{if(Y){if(Se[K>>2]=L,0!=(0|L))break;var G=Se[vi+4>>2]&(1<>2]^-1);Se[vi+4>>2]=G;break r}if(R>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";var W=R+16|0;if((0|Se[W>>2])==(0|h)?Se[W>>2]=L:Se[R+20>>2]=L,0==(0|L))break r}while(0);if(L>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[a+6]=R;var Z=Me[e+4];if(0!=(0|Z)){if(Z>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[a+4]=Z,Se[Z+24>>2]=L}var Q=Me[e+5];if(0==(0|Q))break;if(Q>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[a+5]=Q,Se[Q+24>>2]=L}while(0);if(d>>>0<16){var q=d+r|0;Se[e+1]=3|q;var $=q+(y+4)|0,J=1|Se[$>>2];Se[$>>2]=J}else{Se[e+1]=3|r,Se[r+(y+4)>>2]=1|d,Se[y+d+r>>2]=d;var rr=Me[vi+8>>2];if(0!=(0|rr)){var ar=Me[vi+20>>2],er=rr>>>2&1073741822,ir=(er<<2)+vi+40|0,vr=Me[vi>>2],tr=1<<(rr>>>3),fr=0==(vr&tr|0);do{if(!fr){var _r=(er+2<<2)+vi+40|0,sr=Me[_r>>2];if(sr>>>0>=Me[vi+16>>2]>>>0){var nr=sr,or=_r;break}throw Ka(),"Reached an unreachable!"}Se[vi>>2]=vr|tr;var nr=ir,or=(er+2<<2)+vi+40|0}while(0);var or,nr;Se[or>>2]=ar,Se[nr+12>>2]=ar,Se[ar+8>>2]=nr,Se[ar+12>>2]=ir}Se[vi+8>>2]=d,Se[vi+20>>2]=C}return h+8|0}while(0);throw Ka(),"Reached an unreachable!"}function aa(r){var a,e;0==(0|Se[ti>>2])&&ba();var i=0==(4&Se[vi+440>>2]|0);do{if(i){var v=Se[vi+24>>2],t=0==(0|v);do{if(!t){var f=v,_=ua(f);if(0==(0|_)){e=6;break}var s=Se[ti+8>>2],n=r+47-Se[vi+12>>2]+s&-s;if(n>>>0>=2147483647){e=14;break}var o=re(n);if((0|o)==(Se[_>>2]+Se[_+4>>2]|0)){var l=o,b=n,k=o;e=13;break}var u=o,c=n;e=15;break}e=6}while(0);do if(6==e){var h=re(0);if((0|h)==-1){e=14;break}var d=Se[ti+8>>2],w=d+(r+47)&-d,p=h,E=Se[ti+4>>2],A=E-1|0;if(0==(A&p|0))var g=w;else var g=w-p+(A+p&-E)|0;var g;if(g>>>0>=2147483647){e=14;break}var y=re(g);if((0|y)==(0|h)){var l=h,b=g,k=y;e=13;break}var u=y,c=g;e=15;break}while(0);if(13==e){var k,b,l;if((0|l)!=-1){var m=b,S=l;e=26;break}var u=k,c=b}else if(14==e){var M=4|Se[vi+440>>2];Se[vi+440>>2]=M,e=23;break}var c,u,C=0|-c,R=(0|u)!=-1&c>>>0<2147483647;do{if(R){if(c>>>0>=(r+48|0)>>>0){var T=c;e=21;break}var O=Se[ti+8>>2],N=r+47-c+O&-O;if(N>>>0>=2147483647){var T=c;e=21;break}var I=re(N);if((0|I)==-1){re(C);e=22;break}var T=N+c|0;e=21;break}var T=c;e=21}while(0);if(21==e){var T;if((0|u)!=-1){var m=T,S=u;e=26;break}}var P=4|Se[vi+440>>2];Se[vi+440>>2]=P,e=23;break}e=23}while(0);do if(23==e){var D=Se[ti+8>>2],L=D+(r+47)&-D;if(L>>>0>=2147483647){e=49;break}var F=re(L),X=re(0);if(!((0|X)!=-1&(0|F)!=-1&F>>>0>>0)){e=49;break}var j=X-F|0;if(j>>>0<=(r+40|0)>>>0|(0|F)==-1){e=49;break}var m=j,S=F;e=26;break}while(0);r:do if(26==e){var S,m,U=Se[vi+432>>2]+m|0;Se[vi+432>>2]=U,U>>>0>Me[vi+436>>2]>>>0&&(Se[vi+436>>2]=U);var x=Me[vi+24>>2],z=0==(0|x);a:do if(z){var V=Me[vi+16>>2];0==(0|V)|S>>>0>>0&&(Se[vi+16>>2]=S),Se[vi+444>>2]=S,Se[vi+448>>2]=m,Se[vi+456>>2]=0;var B=Se[ti>>2];Se[vi+36>>2]=B,Se[vi+32>>2]=-1,ha(),ca(S,m-40|0)}else{for(var H=vi+444|0,a=H>>2;;){var H;if(0==(0|H))break;var K=Me[a],Y=H+4|0,G=Me[Y>>2],W=K+G|0;if((0|S)==(0|W)){if(0!=(8&Se[a+3]|0))break;var Z=x;if(!(Z>>>0>=K>>>0&Z>>>0>>0))break;Se[Y>>2]=G+m|0;var Q=Se[vi+24>>2],q=Se[vi+12>>2]+m|0;ca(Q,q);break a}var H=Se[a+2],a=H>>2}S>>>0>2]>>>0&&(Se[vi+16>>2]=S);for(var $=S+m|0,J=vi+444|0;;){var J;if(0==(0|J))break;var rr=0|J,ar=Me[rr>>2];if((0|ar)==(0|$)){if(0!=(8&Se[J+12>>2]|0))break;Se[rr>>2]=S;var er=J+4|0,ir=Se[er>>2]+m|0;Se[er>>2]=ir;var vr=da(S,ar,r),tr=vr;e=50;break r}var J=Se[J+8>>2]}Ma(S,m)}while(0);var fr=Me[vi+12>>2];if(fr>>>0<=r>>>0){e=49;break}var _r=fr-r|0;Se[vi+12>>2]=_r;var sr=Me[vi+24>>2],nr=sr;Se[vi+24>>2]=nr+r|0,Se[r+(nr+4)>>2]=1|_r,Se[sr+4>>2]=3|r;var tr=sr+8|0;e=50;break}while(0);if(49==e){var or=Je();Se[or>>2]=12;var tr=0}var tr;return tr}function ea(r){var a,e,i,v,t,f,_=r>>2,s=0|-r,n=r>>>8,o=0==(0|n);do if(o)var l=0;else{if(r>>>0>16777215){var l=31;break}var b=(n+1048320|0)>>>16&8,k=n<>>16&4,c=k<>>16&2,d=14-(u|b|h)+(c<>>15)|0,l=r>>>((d+7|0)>>>0)&1|d<<1}while(0);var l,w=Me[vi+(l<<2)+304>>2],p=0==(0|w);r:do if(p)var E=0,A=s,g=0;else{if(31==(0|l))var y=0;else var y=25-(l>>>1)|0;for(var y,m=0,S=s,M=w,t=M>>2,C=r<>>0>>0){if((0|T)==(0|r)){var E=M,A=O,g=M;break r}var N=M,I=O}else var N=m,I=S;var I,N,P=Me[t+5],D=Me[((C>>>31<<2)+16>>2)+t],L=0==(0|P)|(0|P)==(0|D)?R:P;if(0==(0|D)){var E=N,A=I,g=L;break r}var m=N,S=I,M=D,t=M>>2,C=C<<1,R=L}}while(0);var g,A,E,F=0==(0|g)&0==(0|E);do if(F){var X=2<>2]&(X|-X);if(0==(0|j)){var U=g;break}var x=(j&-j)-1|0,z=x>>>12&16,V=x>>>(z>>>0),B=V>>>5&8,H=V>>>(B>>>0),K=H>>>2&4,Y=H>>>(K>>>0),G=Y>>>1&2,W=Y>>>(G>>>0),Z=W>>>1&1,U=Se[vi+((B|z|K|G|Z)+(W>>>(Z>>>0))<<2)+304>>2]}else var U=g;while(0);var U,Q=0==(0|U);r:do if(Q)var q=A,$=E,v=$>>2;else for(var J=U,i=J>>2,rr=A,ar=E;;){var ar,rr,J,er=(Se[i+1]&-8)-r|0,ir=er>>>0>>0,vr=ir?er:rr,tr=ir?J:ar,fr=Me[i+4];if(0==(0|fr)){var _r=Me[i+5];if(0==(0|_r)){var q=vr,$=tr,v=$>>2;break r}var J=_r,i=J>>2,rr=vr,ar=tr}else var J=fr,i=J>>2,rr=vr,ar=tr}while(0);var $,q,sr=0==(0|$);r:do{if(!sr){if(q>>>0>=(Se[vi+8>>2]-r|0)>>>0){var nr=0;break}var or=$,e=or>>2,lr=Me[vi+16>>2],br=or>>>0>>0;do if(!br){var kr=or+r|0,ur=kr;if(or>>>0>=kr>>>0)break;var cr=Me[v+6],hr=Me[v+3],dr=(0|hr)==(0|$);do if(dr){var wr=$+20|0,pr=Se[wr>>2];if(0==(0|pr)){var Er=$+16|0,Ar=Se[Er>>2];if(0==(0|Ar)){var gr=0,a=gr>>2;break}var yr=Er,mr=Ar}else{var yr=wr,mr=pr;f=28}for(;;){var mr,yr,Sr=mr+20|0,Mr=Se[Sr>>2];if(0==(0|Mr)){var Cr=mr+16|0,Rr=Me[Cr>>2];if(0==(0|Rr))break;var yr=Cr,mr=Rr}else var yr=Sr,mr=Mr}if(yr>>>0>>0)throw Ka(),"Reached an unreachable!";Se[yr>>2]=0;var gr=mr,a=gr>>2}else{var Tr=Me[v+2];if(Tr>>>0>>0)throw Ka(),"Reached an unreachable!";Se[Tr+12>>2]=hr,Se[hr+8>>2]=Tr;var gr=hr,a=gr>>2}while(0);var gr,Or=0==(0|cr);a:do if(!Or){var Nr=$+28|0,Ir=(Se[Nr>>2]<<2)+vi+304|0,Pr=(0|$)==(0|Se[Ir>>2]);do{if(Pr){if(Se[Ir>>2]=gr,0!=(0|gr))break;var Dr=Se[vi+4>>2]&(1<>2]^-1);Se[vi+4>>2]=Dr;break a}if(cr>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";var Lr=cr+16|0;if((0|Se[Lr>>2])==(0|$)?Se[Lr>>2]=gr:Se[cr+20>>2]=gr,0==(0|gr))break a}while(0);if(gr>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[a+6]=cr;var Fr=Me[v+4];if(0!=(0|Fr)){if(Fr>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[a+4]=Fr,Se[Fr+24>>2]=gr}var Xr=Me[v+5];if(0==(0|Xr))break;if(Xr>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[a+5]=Xr,Se[Xr+24>>2]=gr}while(0);var jr=q>>>0<16;a:do if(jr){var Ur=q+r|0;Se[v+1]=3|Ur;var xr=Ur+(or+4)|0,zr=1|Se[xr>>2];Se[xr>>2]=zr}else if(Se[v+1]=3|r,Se[_+(e+1)]=1|q,Se[(q>>2)+e+_]=q,q>>>0<256){var Vr=q>>>2&1073741822,Br=(Vr<<2)+vi+40|0,Hr=Me[vi>>2],Kr=1<<(q>>>3),Yr=0==(Hr&Kr|0);do{if(!Yr){var Gr=(Vr+2<<2)+vi+40|0,Wr=Me[Gr>>2];if(Wr>>>0>=Me[vi+16>>2]>>>0){var Zr=Wr,Qr=Gr;break}throw Ka(),"Reached an unreachable!"}Se[vi>>2]=Hr|Kr;var Zr=Br,Qr=(Vr+2<<2)+vi+40|0}while(0);var Qr,Zr;Se[Qr>>2]=ur,Se[Zr+12>>2]=ur,Se[_+(e+2)]=Zr,Se[_+(e+3)]=Br}else{var qr=kr,$r=q>>>8,Jr=0==(0|$r);do if(Jr)var ra=0;else{if(q>>>0>16777215){var ra=31;break}var aa=($r+1048320|0)>>>16&8,ea=$r<>>16&4,va=ea<>>16&2,fa=14-(ia|aa|ta)+(va<>>15)|0,ra=q>>>((fa+7|0)>>>0)&1|fa<<1}while(0);var ra,_a=(ra<<2)+vi+304|0;Se[_+(e+7)]=ra;var sa=r+(or+16)|0;Se[_+(e+5)]=0,Se[sa>>2]=0;var na=Se[vi+4>>2],oa=1<>2]=la,Se[_a>>2]=qr,Se[_+(e+6)]=_a,Se[_+(e+3)]=qr,Se[_+(e+2)]=qr}else{if(31==(0|ra))var ba=0;else var ba=25-(ra>>>1)|0;for(var ba,ka=q<>2];;){var ua,ka;if((Se[ua+4>>2]&-8|0)==(0|q)){var ca=ua+8|0,ha=Me[ca>>2],da=Me[vi+16>>2],wa=ua>>>0>>0;do if(!wa){if(ha>>>0>>0)break;Se[ha+12>>2]=qr,Se[ca>>2]=qr,Se[_+(e+2)]=ha,Se[_+(e+3)]=ua,Se[_+(e+6)]=0;break a}while(0);throw Ka(),"Reached an unreachable!"}var pa=(ka>>>31<<2)+ua+16|0,Ea=Me[pa>>2];if(0==(0|Ea)){if(pa>>>0>=Me[vi+16>>2]>>>0){Se[pa>>2]=qr,Se[_+(e+6)]=ua,Se[_+(e+3)]=qr,Se[_+(e+2)]=qr;break a}throw Ka(),"Reached an unreachable!"}var ka=ka<<1,ua=Ea}}}while(0);var nr=$+8|0;break r}while(0);throw Ka(),"Reached an unreachable!"}var nr=0}while(0);var nr;return nr}function ia(r){var a;0==(0|Se[ti>>2])&&ba();var e=r>>>0<4294967232;r:do if(e){var i=Me[vi+24>>2];if(0==(0|i)){var v=0;break}var t=Me[vi+12>>2],f=t>>>0>(r+40|0)>>>0;do if(f){var _=Me[ti+8>>2],s=-40-r-1+t+_|0,n=Math.floor((s>>>0)/(_>>>0)),o=(n-1)*_|0,l=i,b=ua(l);if(0!=(8&Se[b+12>>2]|0))break;var k=re(0),a=(b+4|0)>>2;if((0|k)!=(Se[b>>2]+Se[a]|0))break;var u=o>>>0>2147483646?-2147483648-_|0:o,c=0|-u,h=re(c),d=re(0);if(!((0|h)!=-1&d>>>0>>0))break;var w=k-d|0;if((0|k)==(0|d))break;var p=Se[a]-w|0;Se[a]=p;var E=Se[vi+432>>2]-w|0;Se[vi+432>>2]=E;var A=Se[vi+24>>2],g=Se[vi+12>>2]-w|0;ca(A,g);var v=(0|k)!=(0|d);break r}while(0);if(Me[vi+12>>2]>>>0<=Me[vi+28>>2]>>>0){var v=0;break}Se[vi+28>>2]=-1;var v=0}else var v=0;while(0);var v;return 1&v}function va(r){var a,e,i,v,t,f,_,s=r>>2,n=0==(0|r);r:do if(!n){var o=r-8|0,l=o,b=Me[vi+16>>2],k=o>>>0>>0;a:do if(!k){var u=Me[r-4>>2],c=3&u;if(1==(0|c))break;var h=u&-8,f=h>>2,d=r+(h-8)|0,w=d,p=0==(1&u|0);e:do if(p){var E=Me[o>>2];if(0==(0|c))break r;var A=-8-E|0,t=A>>2,g=r+A|0,y=g,m=E+h|0;if(g>>>0>>0)break a;if((0|y)==(0|Se[vi+20>>2])){var v=(r+(h-4)|0)>>2;if(3!=(3&Se[v]|0)){var S=y,i=S>>2,M=m;break}Se[vi+8>>2]=m;var C=Se[v]&-2;Se[v]=C,Se[t+(s+1)]=1|m,Se[d>>2]=m;break r}if(E>>>0<256){var R=Me[t+(s+2)],T=Me[t+(s+3)];if((0|R)!=(0|T)){var O=((E>>>2&1073741822)<<2)+vi+40|0,N=(0|R)!=(0|O)&R>>>0>>0;do if(!N){if(!((0|T)==(0|O)|T>>>0>=b>>>0))break;Se[R+12>>2]=T,Se[T+8>>2]=R;var S=y,i=S>>2,M=m;break e}while(0);throw Ka(),"Reached an unreachable!"}var I=Se[vi>>2]&(1<<(E>>>3)^-1);Se[vi>>2]=I;var S=y,i=S>>2,M=m}else{var P=g,D=Me[t+(s+6)],L=Me[t+(s+3)],F=(0|L)==(0|P);do if(F){var X=A+(r+20)|0,j=Se[X>>2];if(0==(0|j)){var U=A+(r+16)|0,x=Se[U>>2];if(0==(0|x)){var z=0,e=z>>2;break}var V=U,B=x}else{var V=X,B=j;_=21}for(;;){var B,V,H=B+20|0,K=Se[H>>2];if(0==(0|K)){var Y=B+16|0,G=Me[Y>>2];if(0==(0|G))break;var V=Y,B=G}else var V=H,B=K}if(V>>>0>>0)throw Ka(),"Reached an unreachable!";Se[V>>2]=0;var z=B,e=z>>2}else{var W=Me[t+(s+2)];if(W>>>0>>0)throw Ka(),"Reached an unreachable!";Se[W+12>>2]=L,Se[L+8>>2]=W;var z=L,e=z>>2}while(0);var z;if(0==(0|D)){var S=y,i=S>>2,M=m;break}var Z=A+(r+28)|0,Q=(Se[Z>>2]<<2)+vi+304|0,q=(0|P)==(0|Se[Q>>2]);do{if(q){if(Se[Q>>2]=z,0!=(0|z))break;var $=Se[vi+4>>2]&(1<>2]^-1);Se[vi+4>>2]=$;var S=y,i=S>>2,M=m;break e}if(D>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";var J=D+16|0;if((0|Se[J>>2])==(0|P)?Se[J>>2]=z:Se[D+20>>2]=z,0==(0|z)){var S=y,i=S>>2,M=m;break e}}while(0);if(z>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[e+6]=D;var rr=Me[t+(s+4)];if(0!=(0|rr)){if(rr>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[e+4]=rr,Se[rr+24>>2]=z}var ar=Me[t+(s+5)];if(0==(0|ar)){var S=y,i=S>>2,M=m;break}if(ar>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[e+5]=ar,Se[ar+24>>2]=z;var S=y,i=S>>2,M=m}}else var S=l,i=S>>2,M=h;while(0);var M,S,er=S;if(er>>>0>=d>>>0)break;var ir=r+(h-4)|0,vr=Me[ir>>2];if(0==(1&vr|0))break;var tr=0==(2&vr|0);do{if(tr){if((0|w)==(0|Se[vi+24>>2])){var fr=Se[vi+12>>2]+M|0;Se[vi+12>>2]=fr,Se[vi+24>>2]=S;var _r=1|fr;if(Se[i+1]=_r,(0|S)==(0|Se[vi+20>>2])&&(Se[vi+20>>2]=0,Se[vi+8>>2]=0),fr>>>0<=Me[vi+28>>2]>>>0)break r;ia(0);break r}if((0|w)==(0|Se[vi+20>>2])){var sr=Se[vi+8>>2]+M|0;Se[vi+8>>2]=sr,Se[vi+20>>2]=S;var nr=1|sr;Se[i+1]=nr;var or=er+sr|0;Se[or>>2]=sr;break r}var lr=(vr&-8)+M|0,br=vr>>>3,kr=vr>>>0<256;e:do if(kr){var ur=Me[s+f],cr=Me[((4|h)>>2)+s];if((0|ur)!=(0|cr)){var hr=((vr>>>2&1073741822)<<2)+vi+40|0,dr=(0|ur)==(0|hr);do{if(!dr){if(ur>>>0>2]>>>0){_=66;break}_=63;break}_=63}while(0);do if(63==_){if((0|cr)!=(0|hr)&&cr>>>0>2]>>>0)break;Se[ur+12>>2]=cr,Se[cr+8>>2]=ur;break e}while(0);throw Ka(),"Reached an unreachable!"}var wr=Se[vi>>2]&(1<>2]=wr}else{var pr=d,Er=Me[f+(s+4)],Ar=Me[((4|h)>>2)+s],gr=(0|Ar)==(0|pr);do if(gr){var yr=h+(r+12)|0,mr=Se[yr>>2];if(0==(0|mr)){var Sr=h+(r+8)|0,Mr=Se[Sr>>2];if(0==(0|Mr)){var Cr=0,a=Cr>>2;break}var Rr=Sr,Tr=Mr}else{var Rr=yr,Tr=mr;_=73}for(;;){var Tr,Rr,Or=Tr+20|0,Nr=Se[Or>>2];if(0==(0|Nr)){var Ir=Tr+16|0,Pr=Me[Ir>>2];if(0==(0|Pr))break;var Rr=Ir,Tr=Pr}else var Rr=Or,Tr=Nr}if(Rr>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[Rr>>2]=0;var Cr=Tr,a=Cr>>2}else{var Dr=Me[s+f];if(Dr>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[Dr+12>>2]=Ar,\nSe[Ar+8>>2]=Dr;var Cr=Ar,a=Cr>>2}while(0);var Cr;if(0==(0|Er))break;var Lr=h+(r+20)|0,Fr=(Se[Lr>>2]<<2)+vi+304|0,Xr=(0|pr)==(0|Se[Fr>>2]);do{if(Xr){if(Se[Fr>>2]=Cr,0!=(0|Cr))break;var jr=Se[vi+4>>2]&(1<>2]^-1);Se[vi+4>>2]=jr;break e}if(Er>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";var Ur=Er+16|0;if((0|Se[Ur>>2])==(0|pr)?Se[Ur>>2]=Cr:Se[Er+20>>2]=Cr,0==(0|Cr))break e}while(0);if(Cr>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[a+6]=Er;var xr=Me[f+(s+2)];if(0!=(0|xr)){if(xr>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[a+4]=xr,Se[xr+24>>2]=Cr}var zr=Me[f+(s+3)];if(0==(0|zr))break;if(zr>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[a+5]=zr,Se[zr+24>>2]=Cr}while(0);if(Se[i+1]=1|lr,Se[er+lr>>2]=lr,(0|S)!=(0|Se[vi+20>>2])){var Vr=lr;break}Se[vi+8>>2]=lr;break r}Se[ir>>2]=vr&-2,Se[i+1]=1|M,Se[er+M>>2]=M;var Vr=M}while(0);var Vr;if(Vr>>>0<256){var Br=Vr>>>2&1073741822,Hr=(Br<<2)+vi+40|0,Kr=Me[vi>>2],Yr=1<<(Vr>>>3),Gr=0==(Kr&Yr|0);do{if(!Gr){var Wr=(Br+2<<2)+vi+40|0,Zr=Me[Wr>>2];if(Zr>>>0>=Me[vi+16>>2]>>>0){var Qr=Zr,qr=Wr;break}throw Ka(),"Reached an unreachable!"}Se[vi>>2]=Kr|Yr;var Qr=Hr,qr=(Br+2<<2)+vi+40|0}while(0);var qr,Qr;Se[qr>>2]=S,Se[Qr+12>>2]=S,Se[i+2]=Qr,Se[i+3]=Hr;break r}var $r=S,Jr=Vr>>>8,ra=0==(0|Jr);do if(ra)var aa=0;else{if(Vr>>>0>16777215){var aa=31;break}var ea=(Jr+1048320|0)>>>16&8,va=Jr<>>16&4,_a=va<>>16&2,na=14-(fa|ea|sa)+(_a<>>15)|0,aa=Vr>>>((na+7|0)>>>0)&1|na<<1}while(0);var aa,oa=(aa<<2)+vi+304|0;Se[i+7]=aa,Se[i+5]=0,Se[i+4]=0;var la=Se[vi+4>>2],ba=1<>2]=ua,Se[oa>>2]=$r,Se[i+6]=oa,Se[i+3]=S,Se[i+2]=S}else{if(31==(0|aa))var ca=0;else var ca=25-(aa>>>1)|0;for(var ca,ha=Vr<>2];;){var da,ha;if((Se[da+4>>2]&-8|0)==(0|Vr)){var wa=da+8|0,pa=Me[wa>>2],Ea=Me[vi+16>>2],Aa=da>>>0>>0;do if(!Aa){if(pa>>>0>>0)break;Se[pa+12>>2]=$r,Se[wa>>2]=$r,Se[i+2]=pa,Se[i+3]=da,Se[i+6]=0;break e}while(0);throw Ka(),"Reached an unreachable!"}var ga=(ha>>>31<<2)+da+16|0,ya=Me[ga>>2];if(0==(0|ya)){if(ga>>>0>=Me[vi+16>>2]>>>0){Se[ga>>2]=$r,Se[i+6]=da,Se[i+3]=S,Se[i+2]=S;break e}throw Ka(),"Reached an unreachable!"}var ha=ha<<1,da=ya}}while(0);var ma=Se[vi+32>>2]-1|0;if(Se[vi+32>>2]=ma,0!=(0|ma))break r;ta();break r}while(0);throw Ka(),"Reached an unreachable!"}while(0)}function ta(){var r=Se[vi+452>>2],a=0==(0|r);r:do if(!a)for(var e=r;;){var e,i=Se[e+8>>2];if(0==(0|i))break r;var e=i}while(0);Se[vi+32>>2]=-1}function fa(r,a){if(0==(0|r))var e=Jr(a),i=e;else var v=la(r,a),i=v;var i;return i}function _a(r,a){var e,i=r>>>0<9;do if(i)var v=Jr(a),t=v;else{var f=r>>>0<16?16:r,_=0==(f-1&f|0);r:do if(_)var s=f;else{if(f>>>0<=16){var s=16;break}for(var n=16;;){var n,o=n<<1;if(o>>>0>=f>>>0){var s=o;break r}var n=o}}while(0);var s;if((-64-s|0)>>>0>a>>>0){if(a>>>0<11)var l=16;else var l=a+11&-8;var l,b=Jr(l+(s+12)|0);if(0==(0|b)){var t=0;break}var k=b-8|0;if(0==((b>>>0)%(s>>>0)|0))var u=k,c=0;else{var h=b+(s-1)&-s,d=h-8|0,w=k;if((d-w|0)>>>0>15)var p=d;else var p=h+(s-8)|0;var p,E=p-w|0,e=(b-4|0)>>2,A=Se[e],g=(A&-8)-E|0;if(0==(3&A|0)){var y=Se[k>>2]+E|0;Se[p>>2]=y,Se[p+4>>2]=g;var u=p,c=0}else{var m=p+4|0,S=g|1&Se[m>>2]|2;Se[m>>2]=S;var M=g+(p+4)|0,C=1|Se[M>>2];Se[M>>2]=C;var R=E|1&Se[e]|2;Se[e]=R;var T=b+(E-4)|0,O=1|Se[T>>2];Se[T>>2]=O;var u=p,c=b}}var c,u,N=u+4|0,I=Me[N>>2],P=0==(3&I|0);do if(P)var D=0;else{var L=I&-8;if(L>>>0<=(l+16|0)>>>0){var D=0;break}var F=L-l|0;Se[N>>2]=l|1&I|2,Se[u+(4|l)>>2]=3|F;var X=u+(4|L)|0,j=1|Se[X>>2];Se[X>>2]=j;var D=l+(u+8)|0}while(0);var D;0!=(0|c)&&va(c),0!=(0|D)&&va(D);var t=u+8|0}else{var U=Je();Se[U>>2]=12;var t=0}}while(0);var t;return t}function sa(r,a,e,i){var v,t;0==(0|Se[ti>>2])&&ba();var f=0==(0|i),_=0==(0|r);do{if(f){if(_){var s=Jr(0),n=s;t=30;break}var o=r<<2;if(o>>>0<11){var l=0,b=16;t=9;break}var l=0,b=o+11&-8;t=9;break}if(_){var n=i;t=30;break}var l=i,b=0;t=9;break}while(0);do if(9==t){var b,l,k=0==(1&e|0);r:do if(k){if(_){var u=0,c=0;break}for(var h=0,d=0;;){var d,h,w=Me[a+(d<<2)>>2];if(w>>>0<11)var p=16;else var p=w+11&-8;var p,E=p+h|0,A=d+1|0;if((0|A)==(0|r)){var u=0,c=E;break r}var h=E,d=A}}else{var g=Me[a>>2];if(g>>>0<11)var y=16;else var y=g+11&-8;var y,u=y,c=y*r|0}while(0);var c,u,m=Jr(b-4+c|0);if(0==(0|m)){var n=0;break}var S=m-8|0,M=Se[m-4>>2]&-8;if(0!=(2&e|0)){var C=-4-b+M|0;Fa(m,0,C,1)}if(0==(0|l)){var R=m+c|0,T=M-c|3;Se[m+(c-4)>>2]=T;var O=R,v=O>>2,N=c}else var O=l,v=O>>2,N=M;var N,O;Se[v]=m;var I=r-1|0,P=0==(0|I);r:do if(P)var D=S,L=N;else if(0==(0|u))for(var F=S,X=N,j=0;;){var j,X,F,U=Me[a+(j<<2)>>2];if(U>>>0<11)var x=16;else var x=U+11&-8;var x,z=X-x|0;Se[F+4>>2]=3|x;var V=F+x|0,B=j+1|0;if(Se[(B<<2>>2)+v]=x+(F+8)|0,(0|B)==(0|I)){var D=V,L=z;break r}var F=V,X=z,j=B}else for(var H=3|u,K=u+8|0,Y=S,G=N,W=0;;){var W,G,Y,Z=G-u|0;Se[Y+4>>2]=H;var Q=Y+u|0,q=W+1|0;if(Se[(q<<2>>2)+v]=Y+K|0,(0|q)==(0|I)){var D=Q,L=Z;break r}var Y=Q,G=Z,W=q}while(0);var L,D;Se[D+4>>2]=3|L;var n=O}while(0);var n;return n}function na(r){var a=r>>2;0==(0|Se[ti>>2])&&ba();var e=Me[vi+24>>2];if(0==(0|e))var i=0,v=0,t=0,f=0,_=0,s=0,n=0;else{for(var o=Me[vi+12>>2],l=o+40|0,b=vi+444|0,k=l,u=l,c=1;;){var c,u,k,b,h=Me[b>>2],d=h+8|0;if(0==(7&d|0))var w=0;else var w=7&-d;for(var w,p=b+4|0,E=h+w|0,A=c,g=u,y=k;;){var y,g,A,E;if(E>>>0>>0)break;if(E>>>0>=(h+Se[p>>2]|0)>>>0|(0|E)==(0|e))break;var m=Se[E+4>>2];if(7==(0|m))break;var S=m&-8,M=S+y|0;if(1==(3&m|0))var C=A+1|0,R=S+g|0;else var C=A,R=g;var R,C,E=E+S|0,A=C,g=R,y=M}var T=Me[b+8>>2];if(0==(0|T))break;var b=T,k=y,u=g,c=A}var O=Se[vi+432>>2],i=y,v=A,t=o,f=g,_=O-y|0,s=Se[vi+436>>2],n=O-g|0}var n,s,_,f,t,v,i;Se[a]=i,Se[a+1]=v,Se[a+2]=0,Se[a+3]=0,Se[a+4]=_,Se[a+5]=s,Se[a+6]=0,Se[a+7]=n,Se[a+8]=f,Se[a+9]=t}function oa(){0==(0|Se[ti>>2])&&ba();var r=Me[vi+24>>2],a=0==(0|r);r:do if(a)var e=0,i=0,v=0;else for(var t=Se[vi+436>>2],f=Me[vi+432>>2],_=vi+444|0,s=f-40-Se[vi+12>>2]|0;;){var s,_,n=Me[_>>2],o=n+8|0;if(0==(7&o|0))var l=0;else var l=7&-o;for(var l,b=_+4|0,k=n+l|0,u=s;;){var u,k;if(k>>>0>>0)break;if(k>>>0>=(n+Se[b>>2]|0)>>>0|(0|k)==(0|r))break;var c=Se[k+4>>2];if(7==(0|c))break;var h=c&-8,d=1==(3&c|0)?h:0,w=u-d|0,k=k+h|0,u=w}var p=Me[_+8>>2];if(0==(0|p)){var e=t,i=f,v=u;break r}var _=p,s=u}while(0);var v,i,e,E=Se[Se[qe>>2]+12>>2],A=(Qa(E,0|He.__str339,(ne=Oe,Oe+=4,Se[ne>>2]=e,ne)),Se[Se[qe>>2]+12>>2]),g=(Qa(A,0|He.__str1340,(ne=Oe,Oe+=4,Se[ne>>2]=i,ne)),Se[Se[qe>>2]+12>>2]);Qa(g,0|He.__str2341,(ne=Oe,Oe+=4,Se[ne>>2]=v,ne))}function la(r,a){var e,i,v,t=a>>>0>4294967231;r:do{if(!t){var f=r-8|0,_=f,i=(r-4|0)>>2,s=Me[i],n=s&-8,o=n-8|0,l=r+o|0,b=f>>>0>2]>>>0;do if(!b){var k=3&s;if(!(1!=(0|k)&(0|o)>-8))break;var e=(r+(n-4)|0)>>2;if(0==(1&Se[e]|0))break;if(a>>>0<11)var u=16;else var u=a+11&-8;var u,c=0==(0|k);do{if(c){var h=ka(_,u),d=0,w=h;v=17;break}if(n>>>0>>0){if((0|l)!=(0|Se[vi+24>>2])){v=21;break}var p=Se[vi+12>>2]+n|0;if(p>>>0<=u>>>0){v=21;break}var E=p-u|0,A=r+(u-8)|0;Se[i]=u|1&s|2;var g=1|E;Se[r+(u-4)>>2]=g,Se[vi+24>>2]=A,Se[vi+12>>2]=E;var d=0,w=_;v=17;break}var y=n-u|0;if(y>>>0<=15){var d=0,w=_;v=17;break}Se[i]=u|1&s|2,Se[r+(u-4)>>2]=3|y;var m=1|Se[e];Se[e]=m;var d=r+u|0,w=_;v=17;break}while(0);do if(17==v){var w,d;if(0==(0|w))break;0!=(0|d)&&va(d);var S=w+8|0;break r}while(0);var M=Jr(a);if(0==(0|M)){var S=0;break r}var C=0==(3&Se[i]|0)?8:4,R=n-C|0,T=R>>>0>>0?R:a;Pa(M,r,T,1),va(r);var S=M;break r}while(0);throw Ka(),"Reached an unreachable!"}var O=Je();Se[O>>2]=12;var S=0}while(0);var S;return S}function ba(){if(0==(0|Se[ti>>2])){var r=qa(8);if(0!=(r-1&r|0))throw Ka(),"Reached an unreachable!";Se[ti+8>>2]=r,Se[ti+4>>2]=r,Se[ti+12>>2]=-1,Se[ti+16>>2]=2097152,Se[ti+20>>2]=0,Se[vi+440>>2]=0;var a=$a(0);Se[ti>>2]=a&-16^1431655768}}function ka(r,a){var e=Se[r+4>>2]&-8,i=a>>>0<256;do if(i)var v=0;else{if(e>>>0>=(a+4|0)>>>0&&(e-a|0)>>>0<=Se[ti+8>>2]<<1>>>0){var v=r;break}var v=0}while(0);var v;return v}function ua(r){for(var a,e=vi+444|0,a=e>>2;;){var e,i=Me[a];if(i>>>0<=r>>>0&&(i+Se[a+1]|0)>>>0>r>>>0){var v=e;break}var t=Me[a+2];if(0==(0|t)){var v=0;break}var e=t,a=e>>2}var v;return v}function ca(r,a){var e=r,i=r+8|0;if(0==(7&i|0))var v=0;else var v=7&-i;var v,t=a-v|0;Se[vi+24>>2]=e+v|0,Se[vi+12>>2]=t,Se[v+(e+4)>>2]=1|t,Se[a+(e+4)>>2]=40;var f=Se[ti+16>>2];Se[vi+28>>2]=f}function ha(){for(var r=0;;){var r,a=r<<1,e=(a<<2)+vi+40|0;Se[vi+(a+3<<2)+40>>2]=e,Se[vi+(a+2<<2)+40>>2]=e;var i=r+1|0;if(32==(0|i))break;var r=i}}function da(r,a,e){var i,v,t,f,_=a>>2,s=r>>2,n=r+8|0;if(0==(7&n|0))var o=0;else var o=7&-n;var o,l=a+8|0;if(0==(7&l|0))var b=0,t=b>>2;else var b=7&-l,t=b>>2;var b,k=a+b|0,u=k,c=o+e|0,v=c>>2,h=r+c|0,d=h,w=k-(r+o)-e|0;Se[(o+4>>2)+s]=3|e;var p=(0|u)==(0|Se[vi+24>>2]);r:do if(p){var E=Se[vi+12>>2]+w|0;Se[vi+12>>2]=E,Se[vi+24>>2]=d;var A=1|E;Se[v+(s+1)]=A}else if((0|u)==(0|Se[vi+20>>2])){var g=Se[vi+8>>2]+w|0;Se[vi+8>>2]=g,Se[vi+20>>2]=d;var y=1|g;Se[v+(s+1)]=y;var m=r+g+c|0;Se[m>>2]=g}else{var S=Me[t+(_+1)];if(1==(3&S|0)){var M=S&-8,C=S>>>3,R=S>>>0<256;a:do if(R){var T=Me[((8|b)>>2)+_],O=Me[t+(_+3)];if((0|T)!=(0|O)){var N=((S>>>2&1073741822)<<2)+vi+40|0,I=(0|T)==(0|N);do{if(!I){if(T>>>0>2]>>>0){f=18;break}f=15;break}f=15}while(0);do if(15==f){if((0|O)!=(0|N)&&O>>>0>2]>>>0)break;Se[T+12>>2]=O,Se[O+8>>2]=T;break a}while(0);throw Ka(),"Reached an unreachable!"}var P=Se[vi>>2]&(1<>2]=P}else{var D=k,L=Me[((24|b)>>2)+_],F=Me[t+(_+3)],X=(0|F)==(0|D);do if(X){var j=16|b,U=j+(a+4)|0,x=Se[U>>2];if(0==(0|x)){var z=a+j|0,V=Se[z>>2];if(0==(0|V)){var B=0,i=B>>2;break}var H=z,K=V}else{var H=U,K=x;f=25}for(;;){var K,H,Y=K+20|0,G=Se[Y>>2];if(0==(0|G)){var W=K+16|0,Z=Me[W>>2];if(0==(0|Z))break;var H=W,K=Z}else var H=Y,K=G}if(H>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[H>>2]=0;var B=K,i=B>>2}else{var Q=Me[((8|b)>>2)+_];if(Q>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[Q+12>>2]=F,Se[F+8>>2]=Q;var B=F,i=B>>2}while(0);var B;if(0==(0|L))break;var q=b+(a+28)|0,$=(Se[q>>2]<<2)+vi+304|0,J=(0|D)==(0|Se[$>>2]);do{if(J){if(Se[$>>2]=B,0!=(0|B))break;var rr=Se[vi+4>>2]&(1<>2]^-1);Se[vi+4>>2]=rr;break a}if(L>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";var ar=L+16|0;if((0|Se[ar>>2])==(0|D)?Se[ar>>2]=B:Se[L+20>>2]=B,0==(0|B))break a}while(0);if(B>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[i+6]=L;var er=16|b,ir=Me[(er>>2)+_];if(0!=(0|ir)){if(ir>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[i+4]=ir,Se[ir+24>>2]=B}var vr=Me[(er+4>>2)+_];if(0==(0|vr))break;if(vr>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[i+5]=vr,Se[vr+24>>2]=B}while(0);var tr=a+(M|b)|0,fr=M+w|0}else var tr=u,fr=w;var fr,tr,_r=tr+4|0,sr=Se[_r>>2]&-2;if(Se[_r>>2]=sr,Se[v+(s+1)]=1|fr,Se[(fr>>2)+s+v]=fr,fr>>>0<256){var nr=fr>>>2&1073741822,or=(nr<<2)+vi+40|0,lr=Me[vi>>2],br=1<<(fr>>>3),kr=0==(lr&br|0);do{if(!kr){var ur=(nr+2<<2)+vi+40|0,cr=Me[ur>>2];if(cr>>>0>=Me[vi+16>>2]>>>0){var hr=cr,dr=ur;break}throw Ka(),"Reached an unreachable!"}Se[vi>>2]=lr|br;var hr=or,dr=(nr+2<<2)+vi+40|0}while(0);var dr,hr;Se[dr>>2]=d,Se[hr+12>>2]=d,Se[v+(s+2)]=hr,Se[v+(s+3)]=or}else{var wr=h,pr=fr>>>8,Er=0==(0|pr);do if(Er)var Ar=0;else{if(fr>>>0>16777215){var Ar=31;break}var gr=(pr+1048320|0)>>>16&8,yr=pr<>>16&4,Sr=yr<>>16&2,Cr=14-(mr|gr|Mr)+(Sr<>>15)|0,Ar=fr>>>((Cr+7|0)>>>0)&1|Cr<<1}while(0);var Ar,Rr=(Ar<<2)+vi+304|0;Se[v+(s+7)]=Ar;var Tr=c+(r+16)|0;Se[v+(s+5)]=0,Se[Tr>>2]=0;var Or=Se[vi+4>>2],Nr=1<>2]=Ir,Se[Rr>>2]=wr,Se[v+(s+6)]=Rr,Se[v+(s+3)]=wr,Se[v+(s+2)]=wr}else{if(31==(0|Ar))var Pr=0;else var Pr=25-(Ar>>>1)|0;for(var Pr,Dr=fr<>2];;){var Lr,Dr;if((Se[Lr+4>>2]&-8|0)==(0|fr)){var Fr=Lr+8|0,Xr=Me[Fr>>2],jr=Me[vi+16>>2],Ur=Lr>>>0>>0;do if(!Ur){if(Xr>>>0>>0)break;Se[Xr+12>>2]=wr,Se[Fr>>2]=wr,Se[v+(s+2)]=Xr,Se[v+(s+3)]=Lr,Se[v+(s+6)]=0;break r}while(0);throw Ka(),"Reached an unreachable!"}var xr=(Dr>>>31<<2)+Lr+16|0,zr=Me[xr>>2];if(0==(0|zr)){if(xr>>>0>=Me[vi+16>>2]>>>0){Se[xr>>2]=wr,Se[v+(s+6)]=Lr,Se[v+(s+3)]=wr,Se[v+(s+2)]=wr;break r}throw Ka(),"Reached an unreachable!"}var Dr=Dr<<1,Lr=zr}}}}while(0);return r+(8|o)|0}function wa(r){return 0|He.__str3342}function pa(r){return 0|He.__str14343}function Ea(r){Se[r>>2]=si+8|0}function Aa(r){0!=(0|r)&&va(r)}function ga(r){ya(r);var a=r;Aa(a)}function ya(r){var a=0|r;Ye(a)}function ma(r){var a=0|r;Ea(a),Se[r>>2]=ni+8|0}function Sa(r){var a=0|r;ya(a);var e=r;Aa(e)}function Ma(r,a){var e,i,v=Me[vi+24>>2],i=v>>2,t=v,f=ua(t),_=Se[f>>2],s=Se[f+4>>2],n=_+s|0,o=_+(s-39)|0;if(0==(7&o|0))var l=0;else var l=7&-o;var l,b=_+(s-47)+l|0,k=b>>>0<(v+16|0)>>>0?t:b,u=k+8|0,e=u>>2,c=u,h=r,d=a-40|0;ca(h,d);var w=k+4|0;Se[w>>2]=27,Se[e]=Se[vi+444>>2],Se[e+1]=Se[vi+448>>2],Se[e+2]=Se[vi+452>>2],Se[e+3]=Se[vi+456>>2],Se[vi+444>>2]=r,Se[vi+448>>2]=a,Se[vi+456>>2]=0,Se[vi+452>>2]=c;var p=k+28|0;Se[p>>2]=7;var E=(k+32|0)>>>0>>0;r:do if(E)for(var A=p;;){var A,g=A+4|0;if(Se[g>>2]=7,(A+8|0)>>>0>=n>>>0)break r;var A=g}while(0);var y=(0|k)==(0|t);r:do if(!y){var m=k-v|0,S=t+m|0,M=m+(t+4)|0,C=Se[M>>2]&-2;Se[M>>2]=C;var R=1|m;Se[i+1]=R;var T=S;if(Se[T>>2]=m,m>>>0<256){var O=m>>>2&1073741822,N=(O<<2)+vi+40|0,I=Me[vi>>2],P=1<<(m>>>3),D=0==(I&P|0);do{if(!D){var L=(O+2<<2)+vi+40|0,F=Me[L>>2];if(F>>>0>=Me[vi+16>>2]>>>0){var X=F,j=L;break}throw Ka(),"Reached an unreachable!"}var U=I|P;Se[vi>>2]=U;var X=N,j=(O+2<<2)+vi+40|0}while(0);var j,X;Se[j>>2]=v,Se[X+12>>2]=v,Se[i+2]=X,Se[i+3]=N}else{var x=v,z=m>>>8,V=0==(0|z);do if(V)var B=0;else{if(m>>>0>16777215){var B=31;break}var H=(z+1048320|0)>>>16&8,K=z<>>16&4,G=K<>>16&2,Z=14-(Y|H|W)+(G<>>15)|0,B=m>>>((Z+7|0)>>>0)&1|Z<<1}while(0);var B,Q=(B<<2)+vi+304|0;Se[i+7]=B,Se[i+5]=0,Se[i+4]=0;var q=Se[vi+4>>2],$=1<>2]=J,Se[Q>>2]=x,Se[i+6]=Q,Se[i+3]=v,Se[i+2]=v}else{if(31==(0|B))var rr=0;else var rr=25-(B>>>1)|0;for(var rr,ar=m<>2];;){var er,ar;if((Se[er+4>>2]&-8|0)==(0|m)){var ir=er+8|0,vr=Me[ir>>2],tr=Me[vi+16>>2],fr=er>>>0>>0;do if(!fr){if(vr>>>0>>0)break;Se[vr+12>>2]=x,Se[ir>>2]=x,Se[i+2]=vr,Se[i+3]=er,Se[i+6]=0;break r}while(0);throw Ka(),"Reached an unreachable!"}var _r=(ar>>>31<<2)+er+16|0,sr=Me[_r>>2];if(0==(0|sr)){if(_r>>>0>=Me[vi+16>>2]>>>0){Se[_r>>2]=x,Se[i+6]=er,Se[i+3]=v,Se[i+2]=v;break r}throw Ka(),"Reached an unreachable!"}var ar=ar<<1,er=sr}}}}while(0)}function Ca(r){return d(r)}function Ra(r,a){var e=0;do Ae[r+e]=Ae[a+e],e++;while(0!=Ae[a+e-1]);return r}function Ta(){var r=Ta;return r.LLVM_SAVEDSTACKS||(r.LLVM_SAVEDSTACKS=[]),r.LLVM_SAVEDSTACKS.push(le.stackSave()),r.LLVM_SAVEDSTACKS.length-1}function Oa(r){var a=Ta,e=a.LLVM_SAVEDSTACKS[r];a.LLVM_SAVEDSTACKS.splice(r,1),le.stackRestore(e)}function Na(r,a,e){for(var i=0;it?1:-1;i++}return 0}function Ia(r,a){var e=Ca(r),i=0;do Ae[r+e+i]=Ae[a+i],i++;while(0!=Ae[a+i-1]);return r}function Pa(r,a,e,i){if(e>=20&&a%2==r%2)if(a%4==r%4){for(var v=a+e;a%4;)Ae[r++]=Ae[a++];for(var t=a>>2,f=r>>2,_=v>>2;t<_;)Se[f++]=Se[t++];for(a=t<<2,r=f<<2;a>1,n=r>>1,o=v>>1;st?1:-1}return 0}function Fa(r,a,e,i){if(e>=20){for(var v=r+e;r%4;)Ae[r++]=a;a<0&&(a+=256);for(var t=r>>2,f=v>>2,_=a|a<<8|a<<16|a<<24;t>2],xe[1]=Se[a+_+4>>2],e=ze[0]):"i64"==r?e=[Se[a+_>>2],Se[a+_+4>>2]]:(r="i32",e=Se[a+_>>2]),_+=le.getNativeFieldSize(r),e}for(var i,v,t,f=r,_=0,s=[];;){var n=f;if(i=Ae[f],0===i)break;if(v=Ae[f+1],i=="%".charCodeAt(0)){var o=!1,l=!1,b=!1,k=!1;r:for(;;){switch(v){case"+".charCodeAt(0):o=!0;break;case"-".charCodeAt(0):l=!0;break;case"#".charCodeAt(0):b=!0;break;case"0".charCodeAt(0):if(k)break r;k=!0;break;default:break r}f++,v=Ae[f+1]}var u=0;if(v=="*".charCodeAt(0))u=e("i32"),f++,v=Ae[f+1];else for(;v>="0".charCodeAt(0)&&v<="9".charCodeAt(0);)u=10*u+(v-"0".charCodeAt(0)),f++,v=Ae[f+1];var c=!1;if(v==".".charCodeAt(0)){var h=0;if(c=!0,f++,v=Ae[f+1],v=="*".charCodeAt(0))h=e("i32"),f++;else for(;;){var d=Ae[f+1];if(d<"0".charCodeAt(0)||d>"9".charCodeAt(0))break;h=10*h+(d-"0".charCodeAt(0)),f++}v=Ae[f+1]}else var h=6;var E;switch(String.fromCharCode(v)){case"h":var A=Ae[f+2];A=="h".charCodeAt(0)?(f++,E=1):E=2;break;case"l":var A=Ae[f+2];A=="l".charCodeAt(0)?(f++,E=8):E=4;break;case"L":case"q":case"j":E=8;break;case"z":case"t":case"I":E=4;break;default:E=null}if(E&&f++,v=Ae[f+1],["d","i","u","o","x","X","p"].indexOf(String.fromCharCode(v))!=-1){var m=v=="d".charCodeAt(0)||v=="i".charCodeAt(0);E=E||4;var t=e("i"+8*E);if(8==E&&(t=le.makeBigInt(t[0],t[1],v=="u".charCodeAt(0))),E<=4){var S=Math.pow(256,E)-1;t=(m?y:g)(t&S,8*E)}var M,C=Math.abs(t),R="";if(v=="d".charCodeAt(0)||v=="i".charCodeAt(0))M=y(t,8*E,1).toString(10);else if(v=="u".charCodeAt(0))M=g(t,8*E,1).toString(10),t=Math.abs(t);else if(v=="o".charCodeAt(0))M=(b?"0":"")+C.toString(8);else if(v=="x".charCodeAt(0)||v=="X".charCodeAt(0)){if(R=b?"0x":"",t<0){t=-t,M=(C-1).toString(16);for(var T=[],O=0;OP&&P>=-4?(v=(v=="g".charCodeAt(0)?"f":"F").charCodeAt(0),h-=P+1):(v=(v=="g".charCodeAt(0)?"e":"E").charCodeAt(0),h--),I=Math.min(h,20)}v=="e".charCodeAt(0)||v=="E".charCodeAt(0)?(M=t.toExponential(I),/[eE][-+]\\d$/.test(M)&&(M=M.slice(0,-1)+"0"+M.slice(-1))):v!="f".charCodeAt(0)&&v!="F".charCodeAt(0)||(M=t.toFixed(I));var D=M.split("e");if(N&&!b)for(;D[0].length>1&&D[0].indexOf(".")!=-1&&("0"==D[0].slice(-1)||"."==D[0].slice(-1));)D[0]=D[0].slice(0,-1);else for(b&&M.indexOf(".")==-1&&(D[0]+=".");h>I++;)D[0]+="0";M=D[0]+(D.length>1?"e"+D[1]:""),v=="E".charCodeAt(0)&&(M=M.toUpperCase()),o&&t>=0&&(M="+"+M)}else M=(t<0?"-":"")+"inf",k=!1;for(;M.lengthh&&(L=L.slice(0,h))):L=p("(null)",!0),!l)for(;L.length0;)s.push(" ".charCodeAt(0));l||s.push(e("i8"))}else if(v=="n".charCodeAt(0)){var X=e("i32*");Se[X>>2]=s.length}else if(v=="%".charCodeAt(0))s.push(i);else for(var O=n;O="0".charCodeAt(0)&&r<="9".charCodeAt(0)}function Ha(r){for(var a;(a=Ae[r])&&Va(a);)r++;if(!a||!Ba(a))return 0;for(var e=r;(a=Ae[e])&&Ba(a);)e++;return Math.floor(Number(s(r).substr(0,e-r)))}function Ka(r){throw ke=!0,"ABORT: "+r+", at "+(new Error).stack}function Ya(r){return Ya.ret||(Ya.ret=_([0],"i32",we)),Se[Ya.ret>>2]=r,r}function Ga(r,a,e,i){var v=$e.streams[r];if(!v||v.object.isDevice)return Ya(Ge.EBADF),-1;if(v.isWrite){if(v.object.isFolder)return Ya(Ge.EISDIR),-1;if(e<0||i<0)return Ya(Ge.EINVAL),-1;for(var t=v.object.contents;t.length>2]=a),a}function Ja(){return Ya.ret}function re(r){var a=re;a.called||(Ie=o(Ie),a.called=!0);var e=Ie;return 0!=r&&le.staticAlloc(r),e}function ae(){return Se[ae.buf>>2]}function ee(r){r=r||Module.arguments,k();var a=null;return Module._main&&(a=Module.callMain(r),Module.noExitRuntime||u()),a}var ie=[],ve=false,te="object"==typeof window,fe="function"==typeof importScripts,_e=!te&&!ve&&!fe;if(ve){print=function(r){process.stdout.write(r+"\\n")},printErr=function(r){process.stderr.write(r+"\\n")};var se=require("fs");read=function(r){var a=se.readFileSync(r).toString();return a||"/"==r[0]||(r=__dirname.split("/").slice(0,-1).join("/")+"/src/"+r,a=se.readFileSync(r).toString()),a},load=function(a){r(read(a))},ie=process.argv.slice(2)}else if(_e)this.read||(this.read=function(r){snarf(r)}),"undefined"!=typeof scriptArgs?ie=scriptArgs:"undefined"!=typeof arguments&&(ie=arguments);else if(te)this.print=printErr=function(r){console.log(r)},this.read=function(r){var a=new XMLHttpRequest;return a.open("GET",r,!1),a.send(null),a.responseText},this.arguments&&(ie=arguments);else{if(!fe)throw"Unknown runtime environment. Where are we?";this.load=importScripts}"undefined"==typeof load&&"undefined"!=typeof read&&(this.load=function(a){r(read(a))}),"undefined"==typeof printErr&&(this.printErr=function(){}),"undefined"==typeof print&&(this.print=printErr);try{this.Module=Module}catch(r){this.Module=Module={}}Module.arguments||(Module.arguments=ie),Module.print&&(print=Module.print);var ne,oe,le={stackSave:function(){return Oe},stackRestore:function(r){Oe=r},forceAlign:function(r,a){if(a=a||4,1==a)return r;if(isNumber(r)&&isNumber(a))return Math.ceil(r/a)*a;if(isNumber(a)&&isPowerOfTwo(a)){var e=log2(a);return"(((("+r+")+"+(a-1)+")>>"+e+")<<"+e+")"}return"Math.ceil(("+r+")/"+a+")*"+a},isNumberType:function(r){return r in le.INT_TYPES||r in le.FLOAT_TYPES},isPointerType:function(r){return"*"==r[r.length-1]},isStructType:function(r){return!isPointerType(r)&&(!!/^\\[\\d+\\ x\\ (.*)\\]/.test(r)||(!!/?/.test(r)||"%"==r[0]))},INT_TYPES:{i1:0,i8:0,i16:0,i32:0,i64:0},FLOAT_TYPES:{float:0,double:0},bitshift64:function(r,e,i,v){var t=Math.pow(2,v)-1;if(v<32)switch(i){case"shl":return[r<>>32-v];case"ashr":return[(r>>>v|(e&t)<<32-v)>>0>>>0,e>>v>>>0];case"lshr":return[(r>>>v|(e&t)<<32-v)>>>0,e>>>v]}else if(32==v)switch(i){case"shl":return[0,r];case"ashr":return[e,(0|e)<0?t:0];case"lshr":return[e,0]}else switch(i){case"shl":return[0,r<>v-32>>>0,(0|e)<0?t:0];case"lshr":return[e>>>v-32,0]}a("unknown bitshift64 op: "+[value,i,v])},or64:function(r,a){var e=0|r|(0|a),i=4294967296*(Math.round(r/4294967296)|Math.round(a/4294967296));return e+i},and64:function(r,a){var e=(0|r)&(0|a),i=4294967296*(Math.round(r/4294967296)&Math.round(a/4294967296));return e+i},xor64:function(r,a){var e=(0|r)^(0|a),i=4294967296*(Math.round(r/4294967296)^Math.round(a/4294967296));return e+i},getNativeTypeSize:function(r,a){if(1==le.QUANTUM_SIZE)return 1;var i={"%i1":1,"%i8":1,"%i16":2,"%i32":4,"%i64":8,"%float":4,"%double":8}["%"+r];if(!i)if("*"==r[r.length-1])i=le.QUANTUM_SIZE;else if("i"==r[0]){var v=parseInt(r.substr(1));e(v%8==0),i=v/8}return i},getNativeFieldSize:function(r){return Math.max(le.getNativeTypeSize(r),le.QUANTUM_SIZE)},dedup:function(r,a){var e={};return a?r.filter(function(r){return!e[r[a]]&&(e[r[a]]=!0,!0)}):r.filter(function(r){return!e[r]&&(e[r]=!0,!0)})},set:function(){for(var r="object"==typeof arguments[0]?arguments[0]:arguments,a={},e=0;e=0&&a.push(f-e),e=f,f}),r.flatSize=le.alignMemory(r.flatSize,r.alignSize),0==a.length?r.flatFactor=r.flatSize:1==le.dedup(a).length&&(r.flatFactor=a[0]),r.needsFlattening=1!=r.flatFactor,r.flatIndexes},generateStructInfo:function(r,a,i){var v,t;if(a){if(i=i||0,v=("undefined"==typeof Types?le.typeInfo:Types.types)[a],!v)return null;e(v.fields.length===r.length,"Number of named fields must match the type for "+a),t=v.flatIndexes}else{var v={fields:r.map(function(r){return r[0]})};t=le.calculateStructAlignment(v)}var f={__size__:v.flatSize};return a?r.forEach(function(r,a){if("string"==typeof r)f[r]=t[a]+i;else{var e;for(var _ in r)e=_;f[e]=le.generateStructInfo(r[e],v.fields[a],t[a])}}):r.forEach(function(r,a){f[r[1]]=t[a]}),f},stackAlloc:function(r){var a=Oe;return Oe+=r,Oe=Oe+3>>2<<2,a},staticAlloc:function(r){var a=Ie;return Ie+=r,Ie=Ie+3>>2<<2,Ie>=Le&&l(),a},alignMemory:function(r,a){var e=r=Math.ceil(r/(a?a:4))*(a?a:4);return e},makeBigInt:function(r,a,e){var i=e?(r>>>0)+4294967296*(a>>>0):(r>>>0)+4294967296*(0|a);return i},QUANTUM_SIZE:4,__dummy__:0},be={MAX_ALLOWED:0,corrections:0,sigs:{},note:function(r,e,i){e||(this.corrections++,this.corrections>=this.MAX_ALLOWED&&a("\\n\\nToo many corrections!"))},print:function(){}},ke=!1,ue=0,ce=this;Module.ccall=i,Module.setValue=t,Module.getValue=f;var he=0,de=1,we=2;Module.ALLOC_NORMAL=he,Module.ALLOC_STACK=de,Module.ALLOC_STATIC=we,Module.allocate=_,Module.Pointer_stringify=s,Module.Array_stringify=n;var pe,Ee,Ae,ge,ye,me,Se,Me,Ce,Re,Te,Oe,Ne,Ie,Pe=4096,De=Module.TOTAL_STACK||5242880,Le=Module.TOTAL_MEMORY||10485760;Module.FAST_MEMORY||2097152;e(!!(Int32Array&&Float64Array&&new Int32Array(1).subarray&&new Int32Array(1).set),"Cannot fallback to non-typed array case: Code is too specialized");var Fe=new ArrayBuffer(Le);Ae=new Int8Array(Fe),ye=new Int16Array(Fe),Se=new Int32Array(Fe),ge=new Uint8Array(Fe),me=new Uint16Array(Fe),Me=new Uint32Array(Fe),Ce=new Float32Array(Fe),Re=new Float64Array(Fe),Se[0]=255,e(255===ge[0]&&0===ge[3],"Typed arrays 2 must be run on a little-endian system");var Xe=p("(null)");Ie=Xe.length;for(var je=0;je>2)),ze=(Ce.subarray(Ue>>2),Re.subarray(Ue>>3));Ne=Ue+8,Ie=o(Ne);var Ve=[],Be=[];Module.Array_copy=c,Module.TypedArray_copy=h,Module.String_len=d,Module.String_copy=w,Module.intArrayFromString=p,Module.intArrayToString=E,Module.writeStringToMemory=A;var He=[],Ke=0;O.X=1,N.X=1,V.X=1,H.X=1,G.X=1,W.X=1,q.X=1,$.X=1,rr.X=1,ar.X=1,er.X=1,vr.X=1,nr.X=1,or.X=1,kr.X=1,hr.X=1,Ar.X=1,Sr.X=1,Tr.X=1,Ir.X=1,Pr.X=1,Dr.X=1,Lr.X=1,Fr.X=1,Xr.X=1,zr.X=1,Vr.X=1,Br.X=1,Gr.X=1,$r.X=1,Module._malloc=Jr,Jr.X=1,ra.X=1,aa.X=1,ea.X=1,ia.X=1,Module._free=va,va.X=1,_a.X=1,sa.X=1,na.X=1,oa.X=1,la.X=1,da.X=1,Ma.X=1;var Ye,Ge={E2BIG:7,EACCES:13,EADDRINUSE:98,EADDRNOTAVAIL:99,EAFNOSUPPORT:97,EAGAIN:11,EALREADY:114,EBADF:9,EBADMSG:74,EBUSY:16,ECANCELED:125,ECHILD:10,ECONNABORTED:103,ECONNREFUSED:111,ECONNRESET:104,EDEADLK:35,EDESTADDRREQ:89,EDOM:33,EDQUOT:122,EEXIST:17,EFAULT:14,EFBIG:27,EHOSTUNREACH:113,EIDRM:43,EILSEQ:84,EINPROGRESS:115,EINTR:4,EINVAL:22,EIO:5,EISCONN:106,EISDIR:21,ELOOP:40,EMFILE:24,EMLINK:31,EMSGSIZE:90,EMULTIHOP:72,ENAMETOOLONG:36,ENETDOWN:100,ENETRESET:102,ENETUNREACH:101,ENFILE:23,ENOBUFS:105,ENODATA:61,ENODEV:19,ENOENT:2,ENOEXEC:8,ENOLCK:37,ENOLINK:67,ENOMEM:12,ENOMSG:42,ENOPROTOOPT:92,ENOSPC:28,ENOSR:63,ENOSTR:60,ENOSYS:38,ENOTCONN:107,ENOTDIR:20,ENOTEMPTY:39,ENOTRECOVERABLE:131,ENOTSOCK:88,ENOTSUP:95,ENOTTY:25,ENXIO:6,EOVERFLOW:75,EOWNERDEAD:130,EPERM:1,EPIPE:32,EPROTO:71,EPROTONOSUPPORT:93,EPROTOTYPE:91,ERANGE:34,EROFS:30,ESPIPE:29,ESRCH:3,ESTALE:116,ETIME:62,ETIMEDOUT:110,ETXTBSY:26,EWOULDBLOCK:11,EXDEV:18},We=0,Ze=0,Qe=0,qe=0,$e={currentPath:"/",nextInode:2,streams:[null],ignorePermissions:!0,absolutePath:function(r,a){if("string"!=typeof r)return null;void 0===a&&(a=$e.currentPath),r&&"/"==r[0]&&(a="");for(var e=a+"/"+r,i=e.split("/").reverse(),v=[""];i.length;){var t=i.pop();""==t||"."==t||(".."==t?v.length>1&&v.pop():v.push(t))}return 1==v.length?"/":v.join("/")},analyzePath:function(r,a,e){var i={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};if(r=$e.absolutePath(r),"/"==r)i.isRoot=!0,i.exists=i.parentExists=!0,i.name="/",i.path=i.parentPath="/",i.object=i.parentObject=$e.root;else if(null!==r){e=e||0,r=r.slice(1).split("/");for(var v=$e.root,t=[""];r.length;){1==r.length&&v.isFolder&&(i.parentExists=!0,i.parentPath=1==t.length?"/":t.join("/"),i.parentObject=v,i.name=r[0]);var f=r.shift();if(!v.isFolder){i.error=Ge.ENOTDIR;break}if(!v.read){i.error=Ge.EACCES;break}if(!v.contents.hasOwnProperty(f)){i.error=Ge.ENOENT;break}if(v=v.contents[f],v.link&&(!a||0!=r.length)){if(e>40){i.error=Ge.ELOOP;break}var _=$e.absolutePath(v.link,t.join("/"));return $e.analyzePath([_].concat(r).join("/"),a,e+1)}t.push(f),0==r.length&&(i.exists=!0,i.path=t.join("/"),i.object=v)}return i}return i},findObject:function(r,a){$e.ensureRoot();var e=$e.analyzePath(r,a);return e.exists?e.object:(Ya(e.error),null)},createObject:function(r,a,e,i,v){if(r||(r="/"),"string"==typeof r&&(r=$e.findObject(r)),!r)throw Ya(Ge.EACCES),new Error("Parent path must exist.");if(!r.isFolder)throw Ya(Ge.ENOTDIR),\nnew Error("Parent must be a folder.");if(!r.write&&!$e.ignorePermissions)throw Ya(Ge.EACCES),new Error("Parent folder must be writeable.");if(!a||"."==a||".."==a)throw Ya(Ge.ENOENT),new Error("Name must not be empty.");if(r.contents.hasOwnProperty(a))throw Ya(Ge.EEXIST),new Error("Can\'t overwrite object.");r.contents[a]={read:void 0===i||i,write:void 0!==v&&v,timestamp:Date.now(),inodeNumber:$e.nextInode++};for(var t in e)e.hasOwnProperty(t)&&(r.contents[a][t]=e[t]);return r.contents[a]},createFolder:function(r,a,e,i){var v={isFolder:!0,isDevice:!1,contents:{}};return $e.createObject(r,a,v,e,i)},createPath:function(r,a,e,i){var v=$e.findObject(r);if(null===v)throw new Error("Invalid parent.");for(a=a.split("/").reverse();a.length;){var t=a.pop();t&&(v.contents.hasOwnProperty(t)||$e.createFolder(v,t,e,i),v=v.contents[t])}return v},createFile:function(r,a,e,i,v){return e.isFolder=!1,$e.createObject(r,a,e,i,v)},createDataFile:function(r,a,e,i,v){if("string"==typeof e){for(var t=new Array(e.length),f=0,_=e.length;f<_;++f)t[f]=e.charCodeAt(f);e=t}var s={isDevice:!1,contents:e};return $e.createFile(r,a,s,i,v)},createLazyFile:function(r,a,e,i,v){var t={isDevice:!1,url:e};return $e.createFile(r,a,t,i,v)},createLink:function(r,a,e,i,v){var t={isDevice:!1,link:e};return $e.createFile(r,a,t,i,v)},createDevice:function(r,a,e,i){if(!e&&!i)throw new Error("A device must have at least one callback defined.");var v={isDevice:!0,input:e,output:i};return $e.createFile(r,a,v,Boolean(e),Boolean(i))},forceLoadFile:function(r){if(r.isDevice||r.isFolder||r.link||r.contents)return!0;var a=!0;if("undefined"!=typeof XMLHttpRequest)e("Cannot do synchronous binary XHRs in modern browsers. Use --embed-file or --preload-file in emcc");else{if("undefined"==typeof read)throw new Error("Cannot load without read() or XMLHttpRequest.");try{r.contents=p(read(r.url),!0)}catch(r){a=!1}}return a||Ya(Ge.EIO),a},ensureRoot:function(){$e.root||($e.root={read:!0,write:!0,isFolder:!0,isDevice:!1,timestamp:Date.now(),inodeNumber:1,contents:{}})},init:function(r,a,i){function v(r){null===r||r==="\\n".charCodeAt(0)?(a.printer(a.buffer.join("")),a.buffer=[]):a.buffer.push(String.fromCharCode(r))}e(!$e.init.initialized,"FS.init was previously called. If you want to initialize later with custom parameters, remove any earlier calls (note that one is automatically added to the generated code)"),$e.init.initialized=!0,$e.ensureRoot(),r=r||Module.stdin,a=a||Module.stdout,i=i||Module.stderr;var t=!0,f=!0,s=!0;r||(t=!1,r=function(){if(!r.cache||!r.cache.length){var a;"undefined"!=typeof window&&"function"==typeof window.prompt?a=window.prompt("Input: "):"function"==typeof readline&&(a=readline()),a||(a=""),r.cache=p(a+"\\n",!0)}return r.cache.shift()}),a||(f=!1,a=v),a.printer||(a.printer=print),a.buffer||(a.buffer=[]),i||(s=!1,i=v),i.printer||(i.printer=print),i.buffer||(i.buffer=[]),$e.createFolder("/","tmp",!0,!0);var n=$e.createFolder("/","dev",!0,!0),o=$e.createDevice(n,"stdin",r),l=$e.createDevice(n,"stdout",null,a),b=$e.createDevice(n,"stderr",null,i);$e.createDevice(n,"tty",r,a),$e.streams[1]={path:"/dev/stdin",object:o,position:0,isRead:!0,isWrite:!1,isAppend:!1,isTerminal:!t,error:!1,eof:!1,ungotten:[]},$e.streams[2]={path:"/dev/stdout",object:l,position:0,isRead:!1,isWrite:!0,isAppend:!1,isTerminal:!f,error:!1,eof:!1,ungotten:[]},$e.streams[3]={path:"/dev/stderr",object:b,position:0,isRead:!1,isWrite:!0,isAppend:!1,isTerminal:!s,error:!1,eof:!1,ungotten:[]},We=_([1],"void*",we),Ze=_([2],"void*",we),Qe=_([3],"void*",we),$e.createPath("/","dev/shm/tmp",!0,!0),$e.streams[We]=$e.streams[1],$e.streams[Ze]=$e.streams[2],$e.streams[Qe]=$e.streams[3],qe=_([_([0,0,0,0,We,0,0,0,Ze,0,0,0,Qe,0,0,0],"void*",we)],"void*",we)},quit:function(){$e.init.initialized&&($e.streams[2]&&$e.streams[2].object.output.buffer.length>0&&$e.streams[2].object.output("\\n".charCodeAt(0)),$e.streams[3]&&$e.streams[3].object.output.buffer.length>0&&$e.streams[3].object.output("\\n".charCodeAt(0)))}},Je=Ja;Ve.unshift({func:function(){$e.ignorePermissions=!1,$e.init.initialized||$e.init()}}),Be.push({func:function(){$e.quit()}}),Ya(0),ae.buf=_(12,"void*",we),Module.callMain=function(r){function a(){for(var r=0;r<3;r++)i.push(0)}var e=r.length+1,i=[_(p("/bin/this.program"),"i8",we)];a();for(var v=0;v>2]=0|He.__str,Se[ri+4>>2]=0|He.__str1,Se[ri+16>>2]=0|He.__str2,Se[ri+20>>2]=0|He.__str3,Se[ri+32>>2]=0|He.__str4,Se[ri+36>>2]=0|He.__str5,Se[ri+48>>2]=0|He.__str6,Se[ri+52>>2]=0|He.__str7,Se[ri+64>>2]=0|He.__str8,Se[ri+68>>2]=0|He.__str7,Se[ri+80>>2]=0|He.__str9,Se[ri+84>>2]=0|He.__str10,Se[ri+96>>2]=0|He.__str11,Se[ri+100>>2]=0|He.__str12,Se[ri+112>>2]=0|He.__str13,Se[ri+116>>2]=0|He.__str14,Se[ri+128>>2]=0|He.__str15,Se[ri+132>>2]=0|He.__str16,Se[ri+144>>2]=0|He.__str17,Se[ri+148>>2]=0|He.__str18,Se[ri+160>>2]=0|He.__str19,Se[ri+164>>2]=0|He.__str20,Se[ri+176>>2]=0|He.__str21,Se[ri+180>>2]=0|He.__str22,Se[ri+192>>2]=0|He.__str23,Se[ri+196>>2]=0|He.__str24,Se[ri+208>>2]=0|He.__str25,Se[ri+212>>2]=0|He.__str26,Se[ri+224>>2]=0|He.__str27,Se[ri+228>>2]=0|He.__str28,Se[ri+240>>2]=0|He.__str29,Se[ri+244>>2]=0|He.__str30,Se[ri+256>>2]=0|He.__str31,Se[ri+260>>2]=0|He.__str32,Se[ri+272>>2]=0|He.__str33,Se[ri+276>>2]=0|He.__str34,Se[ri+288>>2]=0|He.__str35,Se[ri+292>>2]=0|He.__str36,Se[ri+304>>2]=0|He.__str37,Se[ri+308>>2]=0|He.__str38,Se[ri+320>>2]=0|He.__str39,Se[ri+324>>2]=0|He.__str40,Se[ri+336>>2]=0|He.__str41,Se[ri+340>>2]=0|He.__str42,Se[ri+352>>2]=0|He.__str43,Se[ri+356>>2]=0|He.__str44,Se[ri+368>>2]=0|He.__str45,Se[ri+372>>2]=0|He.__str46,Se[ri+384>>2]=0|He.__str47,Se[ri+388>>2]=0|He.__str48,Se[ri+400>>2]=0|He.__str49,Se[ri+404>>2]=0|He.__str119289,Se[ri+416>>2]=0|He.__str51,Se[ri+420>>2]=0|He.__str20,Se[ri+432>>2]=0|He.__str52,Se[ri+436>>2]=0|He.__str53,Se[ri+448>>2]=0|He.__str54,Se[ri+452>>2]=0|He.__str55,Se[ri+464>>2]=0|He.__str56,Se[ri+468>>2]=0|He.__str57,Se[ri+480>>2]=0|He.__str58,Se[ri+484>>2]=0|He.__str119289,Se[ri+496>>2]=0|He.__str59,Se[ri+500>>2]=0|He.__str60,Se[ri+512>>2]=0|He.__str61,Se[ri+516>>2]=0|He.__str62,Se[ri+528>>2]=0|He.__str63,Se[ri+532>>2]=0|He.__str64,Se[ri+544>>2]=0|He.__str65,Se[ri+548>>2]=0|He.__str66,Se[ri+560>>2]=0|He.__str67,Se[ri+564>>2]=0|He.__str68,Se[ri+576>>2]=0|He.__str69,Se[ri+580>>2]=0|He.__str70,Se[ri+592>>2]=0|He.__str71,Se[ri+596>>2]=0|He.__str72,Se[ri+608>>2]=0|He.__str73,Se[ri+612>>2]=0|He.__str74,Se[ri+624>>2]=0|He.__str75,Se[ri+628>>2]=0|He.__str76,Se[ri+640>>2]=0|He.__str77,Se[ri+644>>2]=0|He.__str72,Se[ri+656>>2]=0|He.__str78,Se[ri+660>>2]=0|He.__str79,Se[ri+672>>2]=0|He.__str80,Se[ri+676>>2]=0|He.__str81,Se[ri+688>>2]=0|He.__str82,Se[ri+692>>2]=0|He.__str83,Se[ri+704>>2]=0|He.__str84,Se[ri+708>>2]=0|He.__str85,Se[ri+720>>2]=0|He.__str86,Se[ri+724>>2]=0|He.__str87,Se[ri+736>>2]=0|He.__str88,Se[ri+740>>2]=0|He.__str89,Se[ri+752>>2]=0|He.__str90,Se[ri+756>>2]=0|He.__str91,Se[ri+768>>2]=0|He.__str92,Se[ri+772>>2]=0|He.__str91,Se[ai>>2]=0|He.__str145315,Se[ai+8>>2]=0|He.__str145315,Se[ai+20>>2]=0|He.__str167337,Se[ai+28>>2]=0|He.__str95,Se[ai+40>>2]=0|He.__str146316,Se[ai+48>>2]=0|He.__str97,Se[ai+60>>2]=0|He.__str155325,Se[ai+68>>2]=0|He.__str155325,Se[ai+80>>2]=0|He.__str156326,Se[ai+88>>2]=0|He.__str156326,Se[ai+100>>2]=0|He.__str154324,Se[ai+108>>2]=0|He.__str154324,Se[ai+120>>2]=0|He.__str101,Se[ai+128>>2]=0|He.__str101,Se[ai+140>>2]=0|He.__str147317,Se[ai+148>>2]=0|He.__str147317,Se[ai+160>>2]=0|He.__str150320,Se[ai+168>>2]=0|He.__str150320,Se[ai+180>>2]=0|He.__str151321,Se[ai+188>>2]=0|He.__str105,Se[ai+220>>2]=0|He.__str152322,Se[ai+228>>2]=0|He.__str152322,Se[ai+240>>2]=0|He.__str153323,Se[ai+248>>2]=0|He.__str153323,Se[ai+260>>2]=0|He.__str165335,Se[ai+268>>2]=0|He.__str165335,Se[ai+280>>2]=0|He.__str166336,Se[ai+288>>2]=0|He.__str166336,Se[ai+360>>2]=0|He.__str148318,Se[ai+368>>2]=0|He.__str148318,Se[ai+380>>2]=0|He.__str149319,Se[ai+388>>2]=0|He.__str149319,Se[ai+420>>2]=0|He.__str84254,Se[ai+428>>2]=0|He.__str84254,Se[ai+440>>2]=0|He.__str168338,Se[ai+448>>2]=0|He.__str146316,Se[ai+460>>2]=0|He.__str114,Se[ai+468>>2]=0|He.__str152322,Se[ai+480>>2]=0|He.__str115,Se[ai+488>>2]=0|He.__str115,Se[ai+500>>2]=0|He.__str110280,Se[ai+508>>2]=0|He.__str110280,Se[ei+4>>2]=0|He.__str152,Se[ei+12>>2]=0|He.__str152,Se[ei+32>>2]=0|He.__str153,Se[ei+40>>2]=0|He.__str153,Se[ei+48>>2]=0|He.__str154,Se[ei+60>>2]=0|He.__str155,Se[ei+68>>2]=0|He.__str155,Se[ei+76>>2]=0|He.__str156,Se[ei+88>>2]=0|He.__str157,Se[ei+96>>2]=0|He.__str158,Se[ei+104>>2]=0|He.__str156,Se[ei+116>>2]=0|He.__str159,Se[ei+124>>2]=0|He.__str160,Se[ei+132>>2]=0|He.__str161,Se[ei+144>>2]=0|He.__str162,Se[ei+152>>2]=0|He.__str163,Se[ei+160>>2]=0|He.__str164,Se[ei+172>>2]=0|He.__str165,Se[ei+180>>2]=0|He.__str166,Se[ei+188>>2]=0|He.__str167,Se[si+4>>2]=bi,Se[ni+4>>2]=ki,oi=_([2,0,0,0,0],["i8*",0,0,0,0],we),Se[bi>>2]=oi+8|0,Se[bi+4>>2]=0|He.__ZTSSt9bad_alloc,Se[bi+8>>2]=li,Se[ki>>2]=oi+8|0,Se[ki+4>>2]=0|He.__ZTSSt20bad_array_new_length,Se[ki+8>>2]=bi,ui=16,ci=6,hi=18,di=6,wi=6,pe=[0,0,Jr,0,va,0,ya,0,ga,0,wa,0,Sa,0,pa,0,Ea,0,ma,0],Module.FUNCTION_TABLE=pe,Module.run=ee,Module.preRun&&Module.preRun(),0==Ke){ee()}Module.postRun&&Module.postRun(),Module.___cxa_demangle=G;var pi=v("__cxa_demangle","string",["string","string","number","number"]);return function(r){return pi(r,"",1,0)}}();\n'},121:(e,r,t)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.Flamechart=void 0;const n=t(844),a=t(293);r.Flamechart=class{constructor(e){this.source=e,this.layers=[],this.totalWeight=0,this.minFrameWidth=1;const r=[];this.minFrameWidth=1/0;this.totalWeight=e.getTotalWeight(),e.forEachCall(((e,t)=>{const a=n.lastOf(r),i={node:e,parent:a,children:[],start:t,end:t};a&&a.children.push(i),r.push(i)}),((e,t)=>{console.assert(r.length>0);const n=r.pop();if(n.end=t,n.end-n.start==0)return;const a=r.length;for(;this.layers.length<=a;)this.layers.push([]);this.layers[a].push(n),this.minFrameWidth=Math.min(this.minFrameWidth,n.end-n.start)})),isFinite(this.minFrameWidth)||(this.minFrameWidth=1)}getTotalWeight(){return this.totalWeight}getLayers(){return this.layers}getColorBucketForFrame(e){return this.source.getColorBucketForFrame(e)}getMinFrameWidth(){return this.minFrameWidth}formatValue(e){return this.source.formatValue(e)}getClampedViewportWidth(e){const r=this.getTotalWeight(),t=Math.pow(2,40),n=a.clamp(3*this.getMinFrameWidth(),r/t,r);return a.clamp(e,n,r)}getClampedConfigSpaceViewportRect({configSpaceViewportRect:e,renderInverted:r}){const t=new a.Vec2(this.getTotalWeight(),this.getLayers().length),n=this.getClampedViewportWidth(e.size.x),i=e.size.withX(n),o=a.Vec2.clamp(e.origin,new a.Vec2(0,r?0:-1),a.Vec2.max(a.Vec2.zero,t.minus(i).plus(new a.Vec2(0,1))));return new a.Rect(o,e.size.withX(n))}}},293:(e,r)=>{function t(e,r,t){return et?t:e}Object.defineProperty(r,"__esModule",{value:!0}),r.Rect=r.AffineTransform=r.Vec2=r.clamp=void 0,r.clamp=t;let n=(()=>{class e{constructor(e,r){this.x=e,this.y=r}withX(r){return new e(r,this.y)}withY(r){return new e(this.x,r)}plus(r){return new e(this.x+r.x,this.y+r.y)}minus(r){return new e(this.x-r.x,this.y-r.y)}times(r){return new e(this.x*r,this.y*r)}timesPointwise(r){return new e(this.x*r.x,this.y*r.y)}dividedByPointwise(r){return new e(this.x/r.x,this.y/r.y)}dot(e){return this.x*e.x+this.y*e.y}equals(e){return this.x===e.x&&this.y===e.y}approxEquals(e,r=1e-9){return Math.abs(this.x-e.x){class e{constructor(e,r){this.origin=e,this.size=r}isEmpty(){return 0==this.width()||0==this.height()}width(){return this.size.x}height(){return this.size.y}left(){return this.origin.x}right(){return this.left()+this.width()}top(){return this.origin.y}bottom(){return this.top()+this.height()}topLeft(){return this.origin}topRight(){return this.origin.plus(new n(this.width(),0))}bottomRight(){return this.origin.plus(this.size)}bottomLeft(){return this.origin.plus(new n(0,this.height()))}withOrigin(r){return new e(r,this.size)}withSize(r){return new e(this.origin,r)}closestPointTo(e){return new n(t(e.x,this.left(),this.right()),t(e.y,this.top(),this.bottom()))}distanceFrom(e){return e.minus(this.closestPointTo(e)).length()}contains(e){return 0===this.distanceFrom(e)}hasIntersectionWith(e){const r=Math.max(this.top(),e.top());if(Math.max(r,Math.min(this.bottom(),e.bottom()))-r==0)return!1;const t=Math.max(this.left(),e.left());return Math.max(t,Math.min(this.right(),e.right()))-t!=0}intersectWith(r){const t=n.max(this.topLeft(),r.topLeft()),a=n.max(t,n.min(this.bottomRight(),r.bottomRight()));return new e(t,a.minus(t))}equals(e){return this.origin.equals(e.origin)&&this.size.equals(e.size)}approxEquals(e){return this.origin.approxEquals(e.origin)&&this.size.approxEquals(e.size)}area(){return this.size.x*this.size.y}}return e.empty=new e(n.zero,n.zero),e.unit=new e(n.zero,n.unit),e.NDC=new e(new n(-1,-1),new n(2,2)),e})();r.Rect=i},211:function(e,r,t){var n=this&&this.__createBinding||(Object.create?function(e,r,t,n){void 0===n&&(n=t),Object.defineProperty(e,n,{enumerable:!0,get:function(){return r[t]}})}:function(e,r,t,n){void 0===n&&(n=t),e[n]=r[t]}),a=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var t in e)Object.hasOwnProperty.call(e,t)&&n(r,e,t);return a(r,e),r},o=this&&this.__awaiter||function(e,r,t,n){return new(t||(t=Promise))((function(a,i){function o(e){try{l(n.next(e))}catch(e){i(e)}}function s(e){try{l(n.throw(e))}catch(e){i(e)}}function l(e){var r;e.done?a(e.value):(r=e.value,r instanceof t?r:new t((function(e){e(r)}))).then(o,s)}l((n=n.apply(e,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:!0}),r.CallTreeProfileBuilder=r.StackListProfileBuilder=r.Profile=r.CallTreeNode=r.Frame=r.HasWeights=void 0;const s=t(844),l=t(218),c=Promise.resolve().then((()=>i(t(765))));c.then((()=>{}));class u{constructor(){this.selfWeight=0,this.totalWeight=0}getSelfWeight(){return this.selfWeight}getTotalWeight(){return this.totalWeight}addToTotalWeight(e){this.totalWeight+=e}addToSelfWeight(e){this.selfWeight+=e}overwriteWeightWith(e){this.selfWeight=e.selfWeight,this.totalWeight=e.totalWeight}}r.HasWeights=u;let f=(()=>{class e extends u{constructor(e){super(),this.key=e.key,this.name=e.name,this.file=e.file,this.line=e.line,this.col=e.col}static getOrInsert(r,t){return r.getOrInsert(new e(t))}}return e.root=new e({key:"(speedscope root)",name:"(speedscope root)"}),e})();r.Frame=f;class d extends u{constructor(e,r){super(),this.frame=e,this.parent=r,this.children=[],this.frozen=!1}isRoot(){return this.frame===f.root}isFrozen(){return this.frozen}freeze(){this.frozen=!0}}r.CallTreeNode=d;class v{constructor(e=0){this.name="",this.frames=new s.KeyedSet,this.appendOrderCalltreeRoot=new d(f.root,null),this.groupedCalltreeRoot=new d(f.root,null),this.samples=[],this.weights=[],this.valueFormatter=new l.RawValueFormatter,this.totalNonIdleWeight=null,this.totalWeight=e}getAppendOrderCalltreeRoot(){return this.appendOrderCalltreeRoot}getGroupedCalltreeRoot(){return this.groupedCalltreeRoot}formatValue(e){return this.valueFormatter.format(e)}setValueFormatter(e){this.valueFormatter=e}getWeightUnit(){return this.valueFormatter.unit}getName(){return this.name}setName(e){this.name=e}getTotalWeight(){return this.totalWeight}getTotalNonIdleWeight(){return null===this.totalNonIdleWeight&&(this.totalNonIdleWeight=this.groupedCalltreeRoot.children.reduce(((e,r)=>e+r.getTotalWeight()),0)),this.totalNonIdleWeight}sortGroupedCallTree(){!function e(r){r.children.sort(((e,r)=>-(e.getTotalWeight()-r.getTotalWeight()))),r.children.forEach(e)}(this.groupedCalltreeRoot)}forEachCallGrouped(e,r){!function t(n,a){n.frame!==f.root&&e(n,a);let i=0;n.children.forEach((function(e){t(e,a+i),i+=e.getTotalWeight()})),n.frame!==f.root&&r(n,a+n.getTotalWeight())}(this.groupedCalltreeRoot,0)}forEachCall(e,r){let t=[],n=0,a=0;for(let i of this.samples){let o=null;for(o=i;o&&o.frame!=f.root&&-1===t.indexOf(o);o=o.parent);for(;t.length>0&&s.lastOf(t)!=o;){r(t.pop(),n)}const l=[];for(let e=i;e&&e.frame!=f.root&&e!=o;e=e.parent)l.push(e);l.reverse();for(let r of l)e(r,n);t=t.concat(l),n+=this.weights[a++]}for(let e=t.length-1;e>=0;e--)r(t[e],n)}forEachFrame(e){this.frames.forEach(e)}getProfileWithRecursionFlattened(){const e=new m,r=[],t=new Set;this.forEachCall((function(n,a){t.has(n.frame)?r.push(null):(t.add(n.frame),r.push(n),e.enterFrame(n.frame,a))}),(function(n,a){const i=r.pop();i&&(t.delete(i.frame),e.leaveFrame(i.frame,a))}));const n=e.build();return n.name=this.name,n.valueFormatter=this.valueFormatter,this.forEachFrame((e=>{n.frames.getOrInsert(e).overwriteWeightWith(e)})),n}getInvertedProfileForCallersOf(e){const r=f.getOrInsert(this.frames,e),t=new h,n=[];!function e(t){if(t.frame===r)n.push(t);else for(let r of t.children)e(r)}(this.appendOrderCalltreeRoot);for(let e of n){const r=[];for(let t=e;null!=t&&t.frame!==f.root;t=t.parent)r.push(t.frame);t.appendSampleWithWeight(r,e.getTotalWeight())}const a=t.build();return a.name=this.name,a.valueFormatter=this.valueFormatter,a}getProfileForCalleesOf(e){const r=f.getOrInsert(this.frames,e),t=new h;!function e(n){if(n.frame===r)!function(e){const r=[];!function e(n){r.push(n.frame),t.appendSampleWithWeight(r,n.getSelfWeight());for(let r of n.children)e(r);r.pop()}(e)}(n);else for(let r of n.children)e(r)}(this.appendOrderCalltreeRoot);const n=t.build();return n.name=this.name,n.valueFormatter=this.valueFormatter,n}demangle(){return o(this,void 0,void 0,(function*(){let e=null;for(let r of this.frames)r.name.startsWith("__Z")&&(e||(e=(yield c).demangleCpp),r.name=e(r.name))}))}remapNames(e){for(let r of this.frames)r.name=e(r.name)}}r.Profile=v;class h extends v{constructor(){super(...arguments),this.pendingSample=null}_appendSample(e,r,t){if(isNaN(r))throw new Error("invalid weight");let n=t?this.appendOrderCalltreeRoot:this.groupedCalltreeRoot,a=new Set;for(let i of e){const e=f.getOrInsert(this.frames,i),o=t?s.lastOf(n.children):n.children.find((r=>r.frame===e));if(o&&!o.isFrozen()&&o.frame==e)n=o;else{const r=n;n=new d(e,n),r.children.push(n)}n.addToTotalWeight(r),a.add(n.frame)}if(n.addToSelfWeight(r),t)for(let e of n.children)e.freeze();if(t){n.frame.addToSelfWeight(r);for(let e of a)e.addToTotalWeight(r);n===s.lastOf(this.samples)?this.weights[this.weights.length-1]+=r:(this.samples.push(n),this.weights.push(r))}}appendSampleWithWeight(e,r){if(0!==r){if(r<0)throw new Error("Samples must have positive weights");this._appendSample(e,r,!0),this._appendSample(e,r,!1)}}appendSampleWithTimestamp(e,r){if(this.pendingSample){if(r0?this.appendSampleWithWeight(this.pendingSample.stack,this.pendingSample.centralTimestamp-this.pendingSample.startTimestamp):(this.appendSampleWithWeight(this.pendingSample.stack,1),this.setValueFormatter(new l.RawValueFormatter))),this.totalWeight=Math.max(this.totalWeight,this.weights.reduce(((e,r)=>e+r),0)),this.sortGroupedCallTree(),this}}r.StackListProfileBuilder=h;class m extends v{constructor(){super(...arguments),this.appendOrderStack=[this.appendOrderCalltreeRoot],this.groupedOrderStack=[this.groupedCalltreeRoot],this.framesInStack=new Map,this.stack=[],this.lastValue=0}addWeightsToFrames(e){const r=e-this.lastValue;for(let e of this.framesInStack.keys())e.addToTotalWeight(r);const t=s.lastOf(this.stack);t&&t.addToSelfWeight(r)}addWeightsToNodes(e,r){const t=e-this.lastValue;for(let e of r)e.addToTotalWeight(t);const n=s.lastOf(r);n&&n.addToSelfWeight(t)}_enterFrame(e,r,t){let n=t?this.appendOrderStack:this.groupedOrderStack;this.addWeightsToNodes(r,n);let a=s.lastOf(n);if(a){if(t){const e=r-this.lastValue;if(e>0)this.samples.push(a),this.weights.push(r-this.lastValue);else if(e<0)throw new Error(`Samples must be provided in increasing order of cumulative value. Last sample was ${this.lastValue}, this sample was ${r}`)}const i=t?s.lastOf(a.children):a.children.find((r=>r.frame===e));let o;i&&!i.isFrozen()&&i.frame==e?o=i:(o=new d(e,a),a.children.push(o)),n.push(o)}}enterFrame(e,r){const t=f.getOrInsert(this.frames,e);this.addWeightsToFrames(r),this._enterFrame(t,r,!0),this._enterFrame(t,r,!1),this.stack.push(t);const n=this.framesInStack.get(t)||0;this.framesInStack.set(t,n+1),this.lastValue=r}_leaveFrame(e,r,t){let n=t?this.appendOrderStack:this.groupedOrderStack;if(this.addWeightsToNodes(r,n),t){const t=this.appendOrderStack.pop();if(null==t)throw new Error(`Trying to leave ${e.key} when stack is empty`);if(null==this.lastValue)throw new Error(`Trying to leave a ${e.key} before any have been entered`);if(t.freeze(),t.frame.key!==e.key)throw new Error(`Tried to leave frame "${e.name}" while frame "${t.frame.name}" was at the top at ${r}`);const n=r-this.lastValue;if(n>0)this.samples.push(t),this.weights.push(r-this.lastValue);else if(n<0)throw new Error(`Samples must be provided in increasing order of cumulative value. Last sample was ${this.lastValue}, this sample was ${r}`)}else this.groupedOrderStack.pop()}leaveFrame(e,r){const t=f.getOrInsert(this.frames,e);this.addWeightsToFrames(r),this._leaveFrame(t,r,!0),this._leaveFrame(t,r,!1),this.stack.pop();const n=this.framesInStack.get(t);null!=n&&(1===n?this.framesInStack.delete(t):this.framesInStack.set(t,n-1),this.lastValue=r,this.totalWeight=Math.max(this.totalWeight,this.lastValue))}build(){if(this.appendOrderStack.length>1||this.groupedOrderStack.length>1)throw new Error("Tried to complete profile construction with a non-empty stack");return this.sortGroupedCallTree(),this}}r.CallTreeProfileBuilder=m},844:(e,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.decodeBase64=r.lazyStatic=r.memoizeByReference=r.memoizeByShallowEquality=r.objectsHaveShallowEquality=r.noop=r.binarySearch=r.triangle=r.fract=r.formatPercent=r.zeroPad=r.itReduce=r.itForEach=r.itMap=r.KeyedSet=r.getOrThrow=r.getOrElse=r.getOrInsert=r.sortBy=r.lastOf=void 0,r.lastOf=function(e){return e[e.length-1]||null},r.sortBy=function(e,r){e.sort((function(e,t){const n=r(e),a=r(t);return na?1:0}))},r.getOrInsert=function(e,r,t){return e.has(r)||e.set(r,t(r)),e.get(r)},r.getOrElse=function(e,r,t){return e.has(r)?e.get(r):t(r)},r.getOrThrow=function(e,r){if(!e.has(r))throw new Error(`Expected key ${r}`);return e.get(r)};class t{constructor(){this.map=new Map}getOrInsert(e){const r=e.key,t=this.map.get(r);return t||(this.map.set(r,e),e)}forEach(e){this.map.forEach(e)}[Symbol.iterator](){return this.map.values()}}function n(e){return e-Math.floor(e)}function a(e,r){for(let t in e)if(e[t]!==r[t])return!1;for(let t in r)if(e[t]!==r[t])return!1;return!0}function i(e){let r=null;return()=>(null==r&&(r={result:e()}),r.result)}r.KeyedSet=t,r.itMap=function*(e,r){for(let t of e)yield r(t)},r.itForEach=function(e,r){for(let t of e)r(t)},r.itReduce=function(e,r,t){let n=t;for(let t of e)n=r(n,t);return n},r.zeroPad=function(e,r){return new Array(Math.max(r-e.length,0)+1).join("0")+e},r.formatPercent=function(e){let r=`${e.toFixed(0)}%`;return 100===e?r="100%":e>99?r=">99%":e<.01?r="<0.01%":e<1?r=`${e.toFixed(2)}%`:e<10&&(r=`${e.toFixed(1)}%`),r},r.fract=n,r.triangle=function(e){return 2*Math.abs(n(e)-.5)-1},r.binarySearch=function(e,r,t,n,a=1){for(console.assert(!isNaN(a)&&!isNaN(n));;){if(r-e<=a)return[e,r];const i=(r+e)/2;t(i){let n;return null==r?(n=e(t),r={args:t,result:n},n):(a(r.args,t)||(r.args=t,r.result=e(t)),r.result)}},r.memoizeByReference=function(e){let r=null;return t=>{let n;return null==r?(n=e(t),r={args:t,result:n},n):(r.args===t||(r.args=t,r.result=e(t)),r.result)}},r.lazyStatic=i;const o=i((()=>{const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=new Map;for(let t=0;t<64;t++)r.set(e.charAt(t),t);return r.set("=",-1),r}));r.decodeBase64=function(e){const r=o();if(e.length%4!=0)throw new Error(`Invalid length for base64 encoded string. Expected length % 4 = 0, got length = ${e.length}`);const t=e.length/4;let n;n=e.length>=4&&"="===e.charAt(e.length-1)?"="===e.charAt(e.length-2)?3*t-2:3*t-1:3*t;const a=new Uint8Array(n);let i=0;for(let n=0;n>4,"="!==s&&(a[i++]=(15&u)<<4|f>>2),"="!==l&&(a[i++]=(7&f)<<6|d)}if(i!==n)throw new Error(`Expected to decode ${n} bytes, but only decoded ${i})`);return a}},218:(e,r,t)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.ByteFormatter=r.TimeFormatter=r.RawValueFormatter=void 0;const n=t(844);r.RawValueFormatter=class{constructor(){this.unit="none"}format(e){return e.toLocaleString()}};r.TimeFormatter=class{constructor(e){this.unit=e,this.multiplier="nanoseconds"===e?1e-9:"microseconds"===e?1e-6:"milliseconds"===e?.001:1}formatUnsigned(e){const r=e*this.multiplier;if(r/60>=1){const e=Math.floor(r/60),t=Math.floor(r-60*e).toString();return`${e}:${n.zeroPad(t,2)}`}return r/1>=1?`${r.toFixed(2)}s`:r/.001>=1?`${(r/.001).toFixed(2)}ms`:r/1e-6>=1?`${(r/1e-6).toFixed(2)}µs`:`${(r/1e-9).toFixed(2)}ns`}format(e){return`${e<0?"-":""}${this.formatUnsigned(Math.abs(e))}`}};r.ByteFormatter=class{constructor(){this.unit="bytes"}format(e){return e<1024?`${e.toFixed(0)} B`:(e/=1024)<1024?`${e.toFixed(2)} KB`:(e/=1024)<1024?`${e.toFixed(2)} MB`:`${(e/=1024).toFixed(2)} GB`}}},41:function(e,r,t){var n=this&&this.__createBinding||(Object.create?function(e,r,t,n){void 0===n&&(n=t),Object.defineProperty(e,n,{enumerable:!0,get:function(){return r[t]}})}:function(e,r,t,n){void 0===n&&(n=t),e[n]=r[t]}),a=this&&this.__exportStar||function(e,r){for(var t in e)"default"===t||r.hasOwnProperty(t)||n(r,e,t)};Object.defineProperty(r,"__esModule",{value:!0}),a(t(496),r),a(t(121),r)},537:e=>{e.exports=function(){if("undefined"==typeof document||!document.addEventListener)return null;var r,t,n,a={};return a.copy=function(){var e=!1,r=null,t=!1;function n(){e=!1,r=null,t&&window.getSelection().removeAllRanges(),t=!1}function a(){var e=document.getSelection();if(!document.queryCommandEnabled("copy")&&e.isCollapsed){var r=document.createRange();r.selectNodeContents(document.body),e.removeAllRanges(),e.addRange(r),t=!0}}return document.addEventListener("copy",(function(t){if(e){for(var n in r)t.clipboardData.setData(n,r[n]);t.preventDefault()}})),function(t){return new Promise((function(i,o){function s(e){try{if(document.execCommand("copy"))n(),i();else{if(e)throw n(),new Error("Unable to copy. Perhaps it's not available in your browser?");a(),s(!0)}}catch(e){n(),o(e)}}e=!0,"string"==typeof t?r={"text/plain":t}:t instanceof Node?r={"text/html":(new XMLSerializer).serializeToString(t)}:t instanceof Object?r=t:o("Invalid data type. Must be string, DOM node, or an object mapping MIME types to strings."),s(!1)}))}}(),a.paste=(n=!1,document.addEventListener("paste",(function(e){if(n){n=!1,e.preventDefault();var a=r;r=null,a(e.clipboardData.getData(t))}})),function(e){return new Promise((function(a,i){n=!0,r=a,t=e||"text/plain";try{document.execCommand("paste")||(n=!1,i(new Error("Unable to paste. Pasting only works in Internet Explorer at the moment.")))}catch(e){n=!1,i(new Error(e))}}))}),"undefined"==typeof ClipboardEvent&&void 0!==window.clipboardData&&void 0!==window.clipboardData.setData&&( /*! promise-polyfill 2.0.1 */ -function(r){function t(e,r){return function(){e.apply(r,arguments)}}function n(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=null,this._value=null,this._deferreds=[],c(e,t(i,this),t(o,this))}function a(e){var r=this;return null===this._state?void this._deferreds.push(e):void u((function(){var t=r._state?e.onFulfilled:e.onRejected;if(null!==t){var n;try{n=t(r._value)}catch(r){return void e.reject(r)}e.resolve(n)}else(r._state?e.resolve:e.reject)(r._value)}))}function i(e){try{if(e===this)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var r=e.then;if("function"==typeof r)return void c(t(r,e),t(i,this),t(o,this))}this._state=!0,this._value=e,s.call(this)}catch(e){o.call(this,e)}}function o(e){this._state=!1,this._value=e,s.call(this)}function s(){for(var e=0,r=this._deferreds.length;r>e;e++)a.call(this,this._deferreds[e]);this._deferreds=null}function l(e,r,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof r?r:null,this.resolve=t,this.reject=n}function c(e,r,t){var n=!1;try{e((function(e){n||(n=!0,r(e))}),(function(e){n||(n=!0,t(e))}))}catch(e){if(n)return;n=!0,t(e)}}var u=n.immediateFn||"function"==typeof setImmediate&&setImmediate||function(e){setTimeout(e,1)},f=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};n.prototype.catch=function(e){return this.then(null,e)},n.prototype.then=function(e,r){var t=this;return new n((function(n,i){a.call(t,new l(e,r,n,i))}))},n.all=function(){var e=Array.prototype.slice.call(1===arguments.length&&f(arguments[0])?arguments[0]:arguments);return new n((function(r,t){function n(i,o){try{if(o&&("object"==typeof o||"function"==typeof o)){var s=o.then;if("function"==typeof s)return void s.call(o,(function(e){n(i,e)}),t)}e[i]=o,0==--a&&r(e)}catch(e){t(e)}}if(0===e.length)return r([]);for(var a=e.length,i=0;in;n++)e[n].then(r,t)}))},e.exports?e.exports=n:r.Promise||(r.Promise=n)}(this),a.copy=function(e){return new Promise((function(r,t){if("string"!=typeof e&&!("text/plain"in e))throw new Error("You must provide a text/plain type.");var n="string"==typeof e?e:e["text/plain"];window.clipboardData.setData("Text",n)?r():t(new Error("Copying was rejected."))}))},a.paste=function(){return new Promise((function(e,r){var t=window.clipboardData.getData("Text");t?e(t):r(new Error("Pasting was rejected."))}))}),a}()},715:function(e,r,t){var n,a,i;a=[t(356)],void 0===(i="function"==typeof(n=function(e){var r=/(^|@)\S+:\d+/,t=/^\s*at .*(\S+:\d+|\(native\))/m,n=/^(eval@)?(\[native code])?$/;return{parse:function(e){if(void 0!==e.stacktrace||void 0!==e["opera#sourceloc"])return this.parseOpera(e);if(e.stack&&e.stack.match(t))return this.parseV8OrIE(e);if(e.stack)return this.parseFFOrSafari(e);throw new Error("Cannot parse given Error object")},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var r=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));return[r[1],r[2]||void 0,r[3]||void 0]},parseV8OrIE:function(r){return r.stack.split("\n").filter((function(e){return!!e.match(t)}),this).map((function(r){r.indexOf("(eval ")>-1&&(r=r.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var t=r.replace(/^\s+/,"").replace(/\(eval code/g,"("),n=t.match(/ (\((.+):(\d+):(\d+)\)$)/),a=(t=n?t.replace(n[0],""):t).split(/\s+/).slice(1),i=this.extractLocation(n?n[1]:a.pop()),o=a.join(" ")||void 0,s=["eval",""].indexOf(i[0])>-1?void 0:i[0];return new e({functionName:o,fileName:s,lineNumber:i[1],columnNumber:i[2],source:r})}),this)},parseFFOrSafari:function(r){return r.stack.split("\n").filter((function(e){return!e.match(n)}),this).map((function(r){if(r.indexOf(" > eval")>-1&&(r=r.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===r.indexOf("@")&&-1===r.indexOf(":"))return new e({functionName:r});var t=/((.*".+"[^@]*)?[^@]*)(?:@)/,n=r.match(t),a=n&&n[1]?n[1]:void 0,i=this.extractLocation(r.replace(t,""));return new e({functionName:a,fileName:i[0],lineNumber:i[1],columnNumber:i[2],source:r})}),this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(r){for(var t=/Line (\d+).*script (?:in )?(\S+)/i,n=r.message.split("\n"),a=[],i=2,o=n.length;i/,"$2").replace(/\([^)]*\)/g,"")||void 0;i.match(/\(([^)]*)\)/)&&(t=i.replace(/^[^(]+\(([^)]*)\)$/,"$1"));var s=void 0===t||"[arguments not available]"===t?void 0:t.split(",");return new e({functionName:o,args:s,fileName:a[0],lineNumber:a[1],columnNumber:a[2],source:r})}),this)}}})?n.apply(r,a):n)||(e.exports=i)},14:e=>{var r=/[|\\{}()[\]^$+*?.]/g;e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(r,"\\$&")}},486:e=>{const r=/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;function t(e){const t=e.match(r);if(null==t)throw new Error("Unexpected error - failed to regex-match URL");return{schemeAndAuthority:(t[1]||"")+(t[3]||""),path:t[5]||"",hasQueryPart:null!=t[6],queryWithoutQuestionMark:t[7]||"",fragmentWithHash:t[8]||""}}function n(e){const r=t(e);return-1===r.path.indexOf("//&")?e:r.schemeAndAuthority+r.path.replace("//&","?")+(r.queryWithoutQuestionMark.length>0?"&"+r.queryWithoutQuestionMark:"")+r.fragmentWithHash}e.exports={isJscSafeUrl:function(e){return!t(e).hasQueryPart},toNormalUrl:n,toJscSafeUrl:function(e){if(!t(e).hasQueryPart)return e;const r=t(n(e));if(r.queryWithoutQuestionMark.length>0&&(""===r.path||"/"===r.path))throw new Error(`The given URL "${e}" has an empty path and cannot be converted to a JSC-safe format.`);return r.schemeAndAuthority+r.path+(r.queryWithoutQuestionMark.length>0?"//&"+r.queryWithoutQuestionMark.replace(/\?/g,"%3F"):"")+r.fragmentWithHash}}},804:function(e){e.exports=function(){function e(e,r){return e(r={exports:{}},r.exports),r.exports}var r=e((function(e){var r=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)})),t=e((function(e){var r=e.exports={version:"2.6.5"};"number"==typeof __e&&(__e=r)})),n=(t.version,function(e){return"object"==typeof e?null!==e:"function"==typeof e}),a=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e},i=function(e){try{return!!e()}catch(e){return!0}},o=!i((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),s=r.document,l=n(s)&&n(s.createElement),c=function(e){return l?s.createElement(e):{}},u=!o&&!i((function(){return 7!=Object.defineProperty(c("div"),"a",{get:function(){return 7}}).a})),f=function(e,r){if(!n(e))return e;var t,a;if(r&&"function"==typeof(t=e.toString)&&!n(a=t.call(e)))return a;if("function"==typeof(t=e.valueOf)&&!n(a=t.call(e)))return a;if(!r&&"function"==typeof(t=e.toString)&&!n(a=t.call(e)))return a;throw TypeError("Can't convert object to primitive value")},d=Object.defineProperty,v={f:o?Object.defineProperty:function(e,r,t){if(a(e),r=f(r,!0),a(t),u)try{return d(e,r,t)}catch(e){}if("get"in t||"set"in t)throw TypeError("Accessors not supported!");return"value"in t&&(e[r]=t.value),e}},h=function(e,r){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:r}},m=o?function(e,r,t){return v.f(e,r,h(1,t))}:function(e,r,t){return e[r]=t,e},p={}.hasOwnProperty,_=function(e,r){return p.call(e,r)},S=0,g=Math.random(),b=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++S+g).toString(36))},w=!1,k=e((function(e){var n="__core-js_shared__",a=r[n]||(r[n]={});(e.exports=function(e,r){return a[e]||(a[e]=void 0!==r?r:{})})("versions",[]).push({version:t.version,mode:w?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})})),E=k("native-function-to-string",Function.toString),y=e((function(e){var n=b("src"),a="toString",i=(""+E).split(a);t.inspectSource=function(e){return E.call(e)},(e.exports=function(e,t,a,o){var s="function"==typeof a;s&&(_(a,"name")||m(a,"name",t)),e[t]!==a&&(s&&(_(a,n)||m(a,n,e[t]?""+e[t]:i.join(String(t)))),e===r?e[t]=a:o?e[t]?e[t]=a:m(e,t,a):(delete e[t],m(e,t,a)))})(Function.prototype,a,(function(){return"function"==typeof this&&this[n]||E.call(this)}))})),D=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e},A=function(e,r,t){if(D(e),void 0===r)return e;switch(t){case 1:return function(t){return e.call(r,t)};case 2:return function(t,n){return e.call(r,t,n)};case 3:return function(t,n,a){return e.call(r,t,n,a)}}return function(){return e.apply(r,arguments)}},C="prototype",M=function(e,n,a){var i,o,s,l,c=e&M.F,u=e&M.G,f=e&M.S,d=e&M.P,v=e&M.B,h=u?r:f?r[n]||(r[n]={}):(r[n]||{})[C],p=u?t:t[n]||(t[n]={}),_=p[C]||(p[C]={});for(i in u&&(a=n),a)s=((o=!c&&h&&void 0!==h[i])?h:a)[i],l=v&&o?A(s,r):d&&"function"==typeof s?A(Function.call,s):s,h&&y(h,i,s,e&M.U),p[i]!=s&&m(p,i,l),d&&_[i]!=s&&(_[i]=s)};r.core=t,M.F=1,M.G=2,M.S=4,M.P=8,M.B=16,M.W=32,M.U=64,M.R=128;var x,T=M,H=Math.ceil,N=Math.floor,R=function(e){return isNaN(e=+e)?0:(e>0?N:H)(e)},I=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},O=(x=!1,function(e,r){var t,n,a=String(I(e)),i=R(r),o=a.length;return i<0||i>=o?x?"":void 0:(t=a.charCodeAt(i))<55296||t>56319||i+1===o||(n=a.charCodeAt(i+1))<56320||n>57343?x?a.charAt(i):t:x?a.slice(i,i+2):n-56320+(t-55296<<10)+65536});T(T.P,"String",{codePointAt:function(e){return O(this,e)}}),t.String.codePointAt;var F=Math.max,P=Math.min,L=function(e,r){return(e=R(e))<0?F(e+r,0):P(e,r)},z=String.fromCharCode,B=String.fromCodePoint;T(T.S+T.F*(!!B&&1!=B.length),"String",{fromCodePoint:function(e){for(var r,t=arguments,n=[],a=arguments.length,i=0;a>i;){if(r=+t[i++],L(r,1114111)!==r)throw RangeError(r+" is not a valid code point");n.push(r<65536?z(r):z(55296+((r-=65536)>>10),r%1024+56320))}return n.join("")}}),t.String.fromCodePoint;var V,U,W,j,$,X,G,K,q,Y,Q,J,Z,ee,re={Space_Separator:/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,ID_Start:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,ID_Continue:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},te={isSpaceSeparator:function(e){return"string"==typeof e&&re.Space_Separator.test(e)},isIdStartChar:function(e){return"string"==typeof e&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||"$"===e||"_"===e||re.ID_Start.test(e))},isIdContinueChar:function(e){return"string"==typeof e&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||"$"===e||"_"===e||"‌"===e||"‍"===e||re.ID_Continue.test(e))},isDigit:function(e){return"string"==typeof e&&/[0-9]/.test(e)},isHexDigit:function(e){return"string"==typeof e&&/[0-9A-Fa-f]/.test(e)}},ne=function(e,r){V=String(e),U="start",W=[],j=0,$=1,X=0,G=void 0,K=void 0,q=void 0;do{G=ie(),he[U]()}while("eof"!==G.type);return"function"==typeof r?ae({"":q},"",r):q};function ae(e,r,t){var n=e[r];if(null!=n&&"object"==typeof n)for(var a in n){var i=ae(n,a,t);void 0===i?delete n[a]:n[a]=i}return t.call(e,r,n)}function ie(){for(Y="default",Q="",J=!1,Z=1;;){ee=oe();var e=le[Y]();if(e)return e}}function oe(){if(V[j])return String.fromCodePoint(V.codePointAt(j))}function se(){var e=oe();return"\n"===e?($++,X=0):e?X+=e.length:X++,e&&(j+=e.length),e}var le={default:function(){switch(ee){case"\t":case"\v":case"\f":case" ":case" ":case"\ufeff":case"\n":case"\r":case"\u2028":case"\u2029":return void se();case"/":return se(),void(Y="comment");case void 0:return se(),ce("eof")}if(!te.isSpaceSeparator(ee))return le[U]();se()},comment:function(){switch(ee){case"*":return se(),void(Y="multiLineComment");case"/":return se(),void(Y="singleLineComment")}throw _e(se())},multiLineComment:function(){switch(ee){case"*":return se(),void(Y="multiLineCommentAsterisk");case void 0:throw _e(se())}se()},multiLineCommentAsterisk:function(){switch(ee){case"*":return void se();case"/":return se(),void(Y="default");case void 0:throw _e(se())}se(),Y="multiLineComment"},singleLineComment:function(){switch(ee){case"\n":case"\r":case"\u2028":case"\u2029":return se(),void(Y="default");case void 0:return se(),ce("eof")}se()},value:function(){switch(ee){case"{":case"[":return ce("punctuator",se());case"n":return se(),ue("ull"),ce("null",null);case"t":return se(),ue("rue"),ce("boolean",!0);case"f":return se(),ue("alse"),ce("boolean",!1);case"-":case"+":return"-"===se()&&(Z=-1),void(Y="sign");case".":return Q=se(),void(Y="decimalPointLeading");case"0":return Q=se(),void(Y="zero");case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return Q=se(),void(Y="decimalInteger");case"I":return se(),ue("nfinity"),ce("numeric",1/0);case"N":return se(),ue("aN"),ce("numeric",NaN);case'"':case"'":return J='"'===se(),Q="",void(Y="string")}throw _e(se())},identifierNameStartEscape:function(){if("u"!==ee)throw _e(se());se();var e=ve();switch(e){case"$":case"_":break;default:if(!te.isIdStartChar(e))throw ge()}Q+=e,Y="identifierName"},identifierName:function(){switch(ee){case"$":case"_":case"‌":case"‍":return void(Q+=se());case"\\":return se(),void(Y="identifierNameEscape")}if(!te.isIdContinueChar(ee))return ce("identifier",Q);Q+=se()},identifierNameEscape:function(){if("u"!==ee)throw _e(se());se();var e=ve();switch(e){case"$":case"_":case"‌":case"‍":break;default:if(!te.isIdContinueChar(e))throw ge()}Q+=e,Y="identifierName"},sign:function(){switch(ee){case".":return Q=se(),void(Y="decimalPointLeading");case"0":return Q=se(),void(Y="zero");case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return Q=se(),void(Y="decimalInteger");case"I":return se(),ue("nfinity"),ce("numeric",Z*(1/0));case"N":return se(),ue("aN"),ce("numeric",NaN)}throw _e(se())},zero:function(){switch(ee){case".":return Q+=se(),void(Y="decimalPoint");case"e":case"E":return Q+=se(),void(Y="decimalExponent");case"x":case"X":return Q+=se(),void(Y="hexadecimal")}return ce("numeric",0*Z)},decimalInteger:function(){switch(ee){case".":return Q+=se(),void(Y="decimalPoint");case"e":case"E":return Q+=se(),void(Y="decimalExponent")}if(!te.isDigit(ee))return ce("numeric",Z*Number(Q));Q+=se()},decimalPointLeading:function(){if(te.isDigit(ee))return Q+=se(),void(Y="decimalFraction");throw _e(se())},decimalPoint:function(){switch(ee){case"e":case"E":return Q+=se(),void(Y="decimalExponent")}return te.isDigit(ee)?(Q+=se(),void(Y="decimalFraction")):ce("numeric",Z*Number(Q))},decimalFraction:function(){switch(ee){case"e":case"E":return Q+=se(),void(Y="decimalExponent")}if(!te.isDigit(ee))return ce("numeric",Z*Number(Q));Q+=se()},decimalExponent:function(){switch(ee){case"+":case"-":return Q+=se(),void(Y="decimalExponentSign")}if(te.isDigit(ee))return Q+=se(),void(Y="decimalExponentInteger");throw _e(se())},decimalExponentSign:function(){if(te.isDigit(ee))return Q+=se(),void(Y="decimalExponentInteger");throw _e(se())},decimalExponentInteger:function(){if(!te.isDigit(ee))return ce("numeric",Z*Number(Q));Q+=se()},hexadecimal:function(){if(te.isHexDigit(ee))return Q+=se(),void(Y="hexadecimalInteger");throw _e(se())},hexadecimalInteger:function(){if(!te.isHexDigit(ee))return ce("numeric",Z*Number(Q));Q+=se()},string:function(){switch(ee){case"\\":return se(),void(Q+=fe());case'"':return J?(se(),ce("string",Q)):void(Q+=se());case"'":return J?void(Q+=se()):(se(),ce("string",Q));case"\n":case"\r":throw _e(se());case"\u2028":case"\u2029":be(ee);break;case void 0:throw _e(se())}Q+=se()},start:function(){switch(ee){case"{":case"[":return ce("punctuator",se())}Y="value"},beforePropertyName:function(){switch(ee){case"$":case"_":return Q=se(),void(Y="identifierName");case"\\":return se(),void(Y="identifierNameStartEscape");case"}":return ce("punctuator",se());case'"':case"'":return J='"'===se(),void(Y="string")}if(te.isIdStartChar(ee))return Q+=se(),void(Y="identifierName");throw _e(se())},afterPropertyName:function(){if(":"===ee)return ce("punctuator",se());throw _e(se())},beforePropertyValue:function(){Y="value"},afterPropertyValue:function(){switch(ee){case",":case"}":return ce("punctuator",se())}throw _e(se())},beforeArrayValue:function(){if("]"===ee)return ce("punctuator",se());Y="value"},afterArrayValue:function(){switch(ee){case",":case"]":return ce("punctuator",se())}throw _e(se())},end:function(){throw _e(se())}};function ce(e,r){return{type:e,value:r,line:$,column:X}}function ue(e){for(var r=0,t=e;r0;){var t=oe();if(!te.isHexDigit(t))throw _e(se());e+=se()}return String.fromCodePoint(parseInt(e,16))}var he={start:function(){if("eof"===G.type)throw Se();me()},beforePropertyName:function(){switch(G.type){case"identifier":case"string":return K=G.value,void(U="afterPropertyName");case"punctuator":return void pe();case"eof":throw Se()}},afterPropertyName:function(){if("eof"===G.type)throw Se();U="beforePropertyValue"},beforePropertyValue:function(){if("eof"===G.type)throw Se();me()},beforeArrayValue:function(){if("eof"===G.type)throw Se();"punctuator"!==G.type||"]"!==G.value?me():pe()},afterPropertyValue:function(){if("eof"===G.type)throw Se();switch(G.value){case",":return void(U="beforePropertyName");case"}":pe()}},afterArrayValue:function(){if("eof"===G.type)throw Se();switch(G.value){case",":return void(U="beforeArrayValue");case"]":pe()}},end:function(){}};function me(){var e;switch(G.type){case"punctuator":switch(G.value){case"{":e={};break;case"[":e=[]}break;case"null":case"boolean":case"numeric":case"string":e=G.value}if(void 0===q)q=e;else{var r=W[W.length-1];Array.isArray(r)?r.push(e):r[K]=e}if(null!==e&&"object"==typeof e)W.push(e),U=Array.isArray(e)?"beforeArrayValue":"beforePropertyName";else{var t=W[W.length-1];U=null==t?"end":Array.isArray(t)?"afterArrayValue":"afterPropertyValue"}}function pe(){W.pop();var e=W[W.length-1];U=null==e?"end":Array.isArray(e)?"afterArrayValue":"afterPropertyValue"}function _e(e){return ke(void 0===e?"JSON5: invalid end of input at "+$+":"+X:"JSON5: invalid character '"+we(e)+"' at "+$+":"+X)}function Se(){return ke("JSON5: invalid end of input at "+$+":"+X)}function ge(){return ke("JSON5: invalid identifier character at "+$+":"+(X-=5))}function be(e){console.warn("JSON5: '"+we(e)+"' in strings is not valid ECMAScript; consider escaping")}function we(e){var r={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(r[e])return r[e];if(e<" "){var t=e.charCodeAt(0).toString(16);return"\\x"+("00"+t).substring(t.length)}return e}function ke(e){var r=new SyntaxError(e);return r.lineNumber=$,r.columnNumber=X,r}return{parse:ne,stringify:function(e,r,t){var n,a,i,o=[],s="",l="";if(null==r||"object"!=typeof r||Array.isArray(r)||(t=r.space,i=r.quote,r=r.replacer),"function"==typeof r)a=r;else if(Array.isArray(r)){n=[];for(var c=0,u=r;c0&&(t=Math.min(10,Math.floor(t)),l=" ".substr(0,t)):"string"==typeof t&&(l=t.substr(0,10)),v("",{"":e});function v(e,r){var t=r[e];switch(null!=t&&("function"==typeof t.toJSON5?t=t.toJSON5(e):"function"==typeof t.toJSON&&(t=t.toJSON(e))),a&&(t=a.call(r,e,t)),t instanceof Number?t=Number(t):t instanceof String?t=String(t):t instanceof Boolean&&(t=t.valueOf()),t){case null:return"null";case!0:return"true";case!1:return"false"}return"string"==typeof t?h(t,!1):"number"==typeof t?String(t):"object"==typeof t?Array.isArray(t)?_(t):m(t):void 0}function h(e){for(var r={"'":.1,'"':.2},t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},n="",a=0;a=0)throw TypeError("Converting circular structure to JSON5");o.push(e);var r=s;s+=l;for(var t,a,i=[],c=0,u=n||Object.keys(e);c=0)throw TypeError("Converting circular structure to JSON5");o.push(e);var r=s;s+=l;for(var t,n=[],a=0;a{var r="Expected a function",t=NaN,n="[object Symbol]",a=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt,c="object"==typeof global&&global&&global.Object===Object&&global,u="object"==typeof self&&self&&self.Object===Object&&self,f=c||u||Function("return this")(),d=Object.prototype.toString,v=Math.max,h=Math.min,m=function(){return f.Date.now()};function p(e,t,n){var a,i,o,s,l,c,u=0,f=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError(r);function g(r){var t=a,n=i;return a=i=void 0,u=r,s=e.apply(n,t)}function b(e){var r=e-c;return void 0===c||r>=t||r<0||d&&e-u>=o}function w(){var e=m();if(b(e))return k(e);l=setTimeout(w,function(e){var r=t-(e-c);return d?h(r,o-(e-u)):r}(e))}function k(e){return l=void 0,p&&a?g(e):(a=i=void 0,s)}function E(){var e=m(),r=b(e);if(a=arguments,i=this,c=e,r){if(void 0===l)return function(e){return u=e,l=setTimeout(w,t),f?g(e):s}(c);if(d)return l=setTimeout(w,t),g(c)}return void 0===l&&(l=setTimeout(w,t)),s}return t=S(t)||0,_(n)&&(f=!!n.leading,o=(d="maxWait"in n)?v(S(n.maxWait)||0,t):o,p="trailing"in n?!!n.trailing:p),E.cancel=function(){void 0!==l&&clearTimeout(l),u=0,a=c=i=l=void 0},E.flush=function(){return void 0===l?s:k(m())},E}function _(e){var r=typeof e;return!!e&&("object"==r||"function"==r)}function S(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&d.call(e)==n}(e))return t;if(_(e)){var r="function"==typeof e.valueOf?e.valueOf():e;e=_(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var c=o.test(e);return c||s.test(e)?l(e.slice(2),c?2:8):i.test(e)?t:+e}e.exports=function(e,t,n){var a=!0,i=!0;if("function"!=typeof e)throw new TypeError(r);return _(n)&&(a="leading"in n?!!n.leading:a,i="trailing"in n?!!n.trailing:i),p(e,t,{leading:a,maxWait:t,trailing:i})}},18:(e,r,t)=>{var n=t(397);e.exports=S;var a,i=t(745),o=t(599),s=t(986),l=(a="function"==typeof Symbol&&"1"!==n.env._nodeLRUCacheForceNoSymbol?function(e){return Symbol(e)}:function(e){return"_"+e})("max"),c=a("length"),u=a("lengthCalculator"),f=a("allowStale"),d=a("maxAge"),v=a("dispose"),h=a("noDisposeOnSet"),m=a("lruList"),p=a("cache");function _(){return 1}function S(e){if(!(this instanceof S))return new S(e);"number"==typeof e&&(e={max:e}),e||(e={});var r=this[l]=e.max;(!r||"number"!=typeof r||r<=0)&&(this[l]=1/0);var t=e.length||_;"function"!=typeof t&&(t=_),this[u]=t,this[f]=e.stale||!1,this[d]=e.maxAge||0,this[v]=e.dispose,this[h]=e.noDisposeOnSet||!1,this.reset()}function g(e,r,t,n){var a=t.value;w(e,a)&&(E(e,t),e[f]||(a=void 0)),a&&r.call(n,a.value,a.key,e)}function b(e,r,t){var n=e[p].get(r);if(n){var a=n.value;w(e,a)?(E(e,n),e[f]||(a=void 0)):t&&e[m].unshiftNode(n),a&&(a=a.value)}return a}function w(e,r){if(!r||!r.maxAge&&!e[d])return!1;var t=Date.now()-r.now;return r.maxAge?t>r.maxAge:e[d]&&t>e[d]}function k(e){if(e[c]>e[l])for(var r=e[m].tail;e[c]>e[l]&&null!==r;){var t=r.prev;E(e,r),r=t}}function E(e,r){if(r){var t=r.value;e[v]&&e[v](t.key,t.value),e[c]-=t.length,e[p].delete(t.key),e[m].removeNode(r)}}function y(e,r,t,n,a){this.key=e,this.value=r,this.length=t,this.now=n,this.maxAge=a||0}Object.defineProperty(S.prototype,"max",{set:function(e){(!e||"number"!=typeof e||e<=0)&&(e=1/0),this[l]=e,k(this)},get:function(){return this[l]},enumerable:!0}),Object.defineProperty(S.prototype,"allowStale",{set:function(e){this[f]=!!e},get:function(){return this[f]},enumerable:!0}),Object.defineProperty(S.prototype,"maxAge",{set:function(e){(!e||"number"!=typeof e||e<0)&&(e=0),this[d]=e,k(this)},get:function(){return this[d]},enumerable:!0}),Object.defineProperty(S.prototype,"lengthCalculator",{set:function(e){"function"!=typeof e&&(e=_),e!==this[u]&&(this[u]=e,this[c]=0,this[m].forEach((function(e){e.length=this[u](e.value,e.key),this[c]+=e.length}),this)),k(this)},get:function(){return this[u]},enumerable:!0}),Object.defineProperty(S.prototype,"length",{get:function(){return this[c]},enumerable:!0}),Object.defineProperty(S.prototype,"itemCount",{get:function(){return this[m].length},enumerable:!0}),S.prototype.rforEach=function(e,r){r=r||this;for(var t=this[m].tail;null!==t;){var n=t.prev;g(this,e,t,r),t=n}},S.prototype.forEach=function(e,r){r=r||this;for(var t=this[m].head;null!==t;){var n=t.next;g(this,e,t,r),t=n}},S.prototype.keys=function(){return this[m].toArray().map((function(e){return e.key}),this)},S.prototype.values=function(){return this[m].toArray().map((function(e){return e.value}),this)},S.prototype.reset=function(){this[v]&&this[m]&&this[m].length&&this[m].forEach((function(e){this[v](e.key,e.value)}),this),this[p]=new i,this[m]=new s,this[c]=0},S.prototype.dump=function(){return this[m].map((function(e){if(!w(this,e))return{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}}),this).toArray().filter((function(e){return e}))},S.prototype.dumpLru=function(){return this[m]},S.prototype.inspect=function(e,r){var t="LRUCache {",n=!1;this[f]&&(t+="\n allowStale: true",n=!0);var a=this[l];a&&a!==1/0&&(n&&(t+=","),t+="\n max: "+o.inspect(a,r),n=!0);var i=this[d];i&&(n&&(t+=","),t+="\n maxAge: "+o.inspect(i,r),n=!0);var s=this[u];s&&s!==_&&(n&&(t+=","),t+="\n length: "+o.inspect(this[c],r),n=!0);var v=!1;return this[m].forEach((function(e){v?t+=",\n ":(n&&(t+=",\n"),v=!0,t+="\n ");var a=o.inspect(e.key).split("\n").join("\n "),l={value:e.value};e.maxAge!==i&&(l.maxAge=e.maxAge),s!==_&&(l.length=e.length),w(this,e)&&(l.stale=!0),l=o.inspect(l,r).split("\n").join("\n "),t+=a+" => "+l})),(v||n)&&(t+="\n"),t+="}"},S.prototype.set=function(e,r,t){var n=(t=t||this[d])?Date.now():0,a=this[u](r,e);if(this[p].has(e)){if(a>this[l])return E(this,this[p].get(e)),!1;var i=this[p].get(e).value;return this[v]&&(this[h]||this[v](e,i.value)),i.now=n,i.maxAge=t,i.value=r,this[c]+=a-i.length,i.length=a,this.get(e),k(this),!0}var o=new y(e,r,a,n,t);return o.length>this[l]?(this[v]&&this[v](e,r),!1):(this[c]+=o.length,this[m].unshift(o),this[p].set(e,this[m].head),k(this),!0)},S.prototype.has=function(e){return!!this[p].has(e)&&!w(this,this[p].get(e).value)},S.prototype.get=function(e){return b(this,e,!0)},S.prototype.peek=function(e){return b(this,e,!1)},S.prototype.pop=function(){var e=this[m].tail;return e?(E(this,e),e.value):null},S.prototype.del=function(e){E(this,this[p].get(e))},S.prototype.load=function(e){this.reset();for(var r=Date.now(),t=e.length-1;t>=0;t--){var n=e[t],a=n.e||0;if(0===a)this.set(n.k,n.v);else{var i=a-r;i>0&&this.set(n.k,n.v,i)}}},S.prototype.prune=function(){var e=this;this[p].forEach((function(r,t){b(e,t,!1)}))}},69:e=>{function r(e,r){if(null!=e)return e;var t=new Error(void 0!==r?r:"Got unexpected "+e);throw t.framesToPop=1,t}e.exports=r,e.exports.default=r,Object.defineProperty(e.exports,"__esModule",{value:!0})},417:e=>{e.exports=e=>{if("number"!=typeof e)throw new TypeError("Expected a number");const r=e>0?Math.floor:Math.ceil;return{days:r(e/864e5),hours:r(e/36e5)%24,minutes:r(e/6e4)%60,seconds:r(e/1e3)%60,milliseconds:r(e)%1e3,microseconds:r(1e3*e)%1e3,nanoseconds:r(1e6*e)%1e3}}},894:(e,r,t)=>{const n=t(417);e.exports=(e,r={})=>{if(!Number.isFinite(e))throw new TypeError("Expected a finite number");r.colonNotation&&(r.compact=!1,r.formatSubMilliseconds=!1,r.separateMilliseconds=!1,r.verbose=!1),r.compact&&(r.secondsDecimalDigits=0,r.millisecondsDecimalDigits=0);const t=[],a=(e,n,a,i)=>{if(!(0!==t.length&&r.colonNotation||0!==e||r.colonNotation&&"m"===a))return;let o,s;if(i=(i||e||"0").toString(),r.colonNotation){o=t.length>0?":":"",s="";const e=i.includes(".")?i.split(".")[0].length:i.length,r=t.length>0?2:1;i="0".repeat(Math.max(0,r-e))+i}else o="",s=r.verbose?" "+(l=n,1===e?l:`${l}s`):a;var l;t.push(o+i+s)},i=n(e);if(a(Math.trunc(i.days/365),"year","y"),a(i.days%365,"day","d"),a(i.hours,"hour","h"),a(i.minutes,"minute","m"),r.separateMilliseconds||r.formatSubMilliseconds||e<1e3)if(a(i.seconds,"second","s"),r.formatSubMilliseconds)a(i.milliseconds,"millisecond","ms"),a(i.microseconds,"microsecond","µs"),a(i.nanoseconds,"nanosecond","ns");else{const e=i.milliseconds+i.microseconds/1e3+i.nanoseconds/1e6,t="number"==typeof r.millisecondsDecimalDigits?r.millisecondsDecimalDigits:0,n=e>=1?Math.round(e):Math.ceil(e),o=t?e.toFixed(t):n;a(Number.parseFloat(o,10),"millisecond","ms",o)}else{const t=((e,r)=>{const t=Math.floor(e*10**r+1e-7);return(Math.round(t)/10**r).toFixed(r)})(e/1e3%60,"number"==typeof r.secondsDecimalDigits?r.secondsDecimalDigits:1),n=r.keepDecimalsOnWholeSeconds?t:t.replace(/\.0+$/,"");a(Number.parseFloat(n,10),"second","s",n)}if(0===t.length)return"0"+(r.verbose?" milliseconds":"ms");if(r.compact)return t[0];if("number"==typeof r.unitCount){const e=r.colonNotation?"":" ";return t.slice(0,Math.max(r.unitCount,1)).join(e)}return r.colonNotation?t.join(""):t.join(" ")}},397:e=>{var r,t,n=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function o(e){if(r===setTimeout)return setTimeout(e,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:a}catch(e){r=a}try{t="function"==typeof clearTimeout?clearTimeout:i}catch(e){t=i}}();var s,l=[],c=!1,u=-1;function f(){c&&s&&(c=!1,s.length?l=s.concat(l):u=-1,l.length&&d())}function d(){if(!c){var e=o(f);c=!0;for(var r=l.length;r;){for(s=l,l=[];++u1)for(var t=1;t{var n=t(327);function a(){}function i(){}i.resetWarningCache=a,e.exports=function(){function e(e,r,t,a,i,o){if(o!==n){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function r(){return e}e.isRequired=e;var t={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:r,element:e,elementType:e,instanceOf:r,node:e,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:i,resetWarningCache:a};return t.PropTypes=t,t}},352:(e,r,t)=>{e.exports=t(793)()},327:e=>{e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},745:(e,r,t)=>{var n=t(397);"pseudomap"===n.env.npm_package_name&&"test"===n.env.npm_lifecycle_script&&(n.env.TEST_PSEUDOMAP="true"),"function"!=typeof Map||n.env.TEST_PSEUDOMAP?e.exports=t(503):e.exports=Map},503:e=>{var r=Object.prototype.hasOwnProperty;function t(e){if(!(this instanceof t))throw new TypeError("Constructor PseudoMap requires 'new'");if(this.clear(),e)if(e instanceof t||"function"==typeof Map&&e instanceof Map)e.forEach((function(e,r){this.set(r,e)}),this);else{if(!Array.isArray(e))throw new TypeError("invalid argument");e.forEach((function(e){this.set(e[0],e[1])}),this)}}function n(e,r){return e===r||e!=e&&r!=r}function a(e,r,t){this.key=e,this.value=r,this._index=t}function i(e,t){for(var a=0,i="_"+t,o=i;r.call(e,o);o=i+a++)if(n(e[o].key,t))return e[o]}e.exports=t,t.prototype.forEach=function(e,r){r=r||this,Object.keys(this._data).forEach((function(t){"size"!==t&&e.call(r,this._data[t].value,this._data[t].key)}),this)},t.prototype.has=function(e){return!!i(this._data,e)},t.prototype.get=function(e){var r=i(this._data,e);return r&&r.value},t.prototype.set=function(e,t){!function(e,t,i){for(var o=0,s="_"+t,l=s;r.call(e,l);l=s+o++)if(n(e[l].key,t))return void(e[l].value=i);e.size++,e[l]=new a(t,i,l)}(this._data,e,t)},t.prototype.delete=function(e){var r=i(this._data,e);r&&(delete this._data[r._index],this._data.size--)},t.prototype.clear=function(){var e=Object.create(null);e.size=0,Object.defineProperty(this,"_data",{value:e,enumerable:!1,configurable:!0,writable:!1})},Object.defineProperty(t.prototype,"size",{get:function(){return this._data.size},set:function(e){},enumerable:!0,configurable:!0}),t.prototype.values=t.prototype.keys=t.prototype.entries=function(){throw new Error("iterators are not implemented in this version")}},356:function(e,r){var t,n,a;n=[],void 0===(a="function"==typeof(t=function(){function e(e){return!isNaN(parseFloat(e))&&isFinite(e)}function r(e){return e.charAt(0).toUpperCase()+e.substring(1)}function t(e){return function(){return this[e]}}var n=["isConstructor","isEval","isNative","isToplevel"],a=["columnNumber","lineNumber"],i=["fileName","functionName","source"],o=["args"],s=n.concat(a,i,o);function l(e){if(e)for(var t=0;t{var r=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'],t=r.join(","),n="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;function a(e,r){r=r||{};var a,o,s,u=[],f=[],d=e.querySelectorAll(t);for(r.includeContainer&&n.call(e,t)&&(d=Array.prototype.slice.apply(d)).unshift(e),a=0;a{"function"==typeof Object.create?e.exports=function(e,r){e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,r){e.super_=r;var t=function(){};t.prototype=r.prototype,e.prototype=new t,e.prototype.constructor=e}},772:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},599:(e,r,t)=>{var n=t(397),a=/%[sdj%]/g;r.format=function(e){if(!_(e)){for(var r=[],t=0;t=i)return e;switch(e){case"%s":return String(n[t++]);case"%d":return Number(n[t++]);case"%j":try{return JSON.stringify(n[t++])}catch(e){return"[Circular]"}default:return e}})),l=n[t];t=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),h(t)?n.showHidden=t:t&&r._extend(n,t),S(n.showHidden)&&(n.showHidden=!1),S(n.depth)&&(n.depth=2),S(n.colors)&&(n.colors=!1),S(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=l),u(n,e,n.depth)}function l(e,r){var t=s.styles[r];return t?"["+s.colors[t][0]+"m"+e+"["+s.colors[t][1]+"m":e}function c(e,r){return e}function u(e,t,n){if(e.customInspect&&t&&E(t.inspect)&&t.inspect!==r.inspect&&(!t.constructor||t.constructor.prototype!==t)){var a=t.inspect(n,e);return _(a)||(a=u(e,a,n)),a}var i=function(e,r){if(S(r))return e.stylize("undefined","undefined");if(_(r)){var t="'"+JSON.stringify(r).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(t,"string")}if(p(r))return e.stylize(""+r,"number");if(h(r))return e.stylize(""+r,"boolean");if(m(r))return e.stylize("null","null")}(e,t);if(i)return i;var o=Object.keys(t),s=function(e){var r={};return e.forEach((function(e,t){r[e]=!0})),r}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),k(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return f(t);if(0===o.length){if(E(t)){var l=t.name?": "+t.name:"";return e.stylize("[Function"+l+"]","special")}if(g(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(w(t))return e.stylize(Date.prototype.toString.call(t),"date");if(k(t))return f(t)}var c,b="",y=!1,D=["{","}"];(v(t)&&(y=!0,D=["[","]"]),E(t))&&(b=" [Function"+(t.name?": "+t.name:"")+"]");return g(t)&&(b=" "+RegExp.prototype.toString.call(t)),w(t)&&(b=" "+Date.prototype.toUTCString.call(t)),k(t)&&(b=" "+f(t)),0!==o.length||y&&0!=t.length?n<0?g(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),c=y?function(e,r,t,n,a){for(var i=[],o=0,s=r.length;o=0&&0,e+r.replace(/\u001b\[\d\d?m/g,"").length+1}),0);if(n>60)return t[0]+(""===r?"":r+"\n ")+" "+e.join(",\n ")+" "+t[1];return t[0]+r+" "+e.join(", ")+" "+t[1]}(c,b,D)):D[0]+b+D[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,r,t,n,a,i){var o,s,l;if((l=Object.getOwnPropertyDescriptor(r,a)||{value:r[a]}).get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),C(n,a)||(o="["+a+"]"),s||(e.seen.indexOf(l.value)<0?(s=m(t)?u(e,l.value,null):u(e,l.value,t-1)).indexOf("\n")>-1&&(s=i?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),S(o)){if(i&&a.match(/^\d+$/))return s;(o=JSON.stringify(""+a)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function v(e){return Array.isArray(e)}function h(e){return"boolean"==typeof e}function m(e){return null===e}function p(e){return"number"==typeof e}function _(e){return"string"==typeof e}function S(e){return void 0===e}function g(e){return b(e)&&"[object RegExp]"===y(e)}function b(e){return"object"==typeof e&&null!==e}function w(e){return b(e)&&"[object Date]"===y(e)}function k(e){return b(e)&&("[object Error]"===y(e)||e instanceof Error)}function E(e){return"function"==typeof e}function y(e){return Object.prototype.toString.call(e)}function D(e){return e<10?"0"+e.toString(10):e.toString(10)}r.debuglog=function(e){if(S(i)&&(i=n.env.NODE_DEBUG||""),e=e.toUpperCase(),!o[e])if(new RegExp("\\b"+e+"\\b","i").test(i)){var t=n.pid;o[e]=function(){var n=r.format.apply(r,arguments);console.error("%s %d: %s",e,t,n)}}else o[e]=function(){};return o[e]},r.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},r.isArray=v,r.isBoolean=h,r.isNull=m,r.isNullOrUndefined=function(e){return null==e},r.isNumber=p,r.isString=_,r.isSymbol=function(e){return"symbol"==typeof e},r.isUndefined=S,r.isRegExp=g,r.isObject=b,r.isDate=w,r.isError=k,r.isFunction=E,r.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},r.isBuffer=t(772);var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function C(e,r){return Object.prototype.hasOwnProperty.call(e,r)}r.log=function(){var e,t;console.log("%s - %s",(e=new Date,t=[D(e.getHours()),D(e.getMinutes()),D(e.getSeconds())].join(":"),[e.getDate(),A[e.getMonth()],t].join(" ")),r.format.apply(r,arguments))},r.inherits=t(510),r._extend=function(e,r){if(!r||!b(r))return e;for(var t=Object.keys(r),n=t.length;n--;)e[t[n]]=r[t[n]];return e}},803:e=>{e.exports=function(e,r){var t=0,n={};e.addEventListener("message",(function(r){var t=r.data;if("RPC"===t.type)if(t.id){var a=n[t.id];a&&(delete n[t.id],t.error?a[1](Object.assign(Error(t.error.message),t.error)):a[0](t.result))}else{var i=document.createEvent("Event");i.initEvent(t.method,!1,!1),i.data=t.params,e.dispatchEvent(i)}})),r.forEach((function(r){e[r]=function(){var a=arguments;return new Promise((function(i,o){var s=++t;n[s]=[i,o],e.postMessage({type:"RPC",id:s,method:r,params:[].slice.call(a)})}))}}))}},986:e=>{function r(e){var t=this;if(t instanceof r||(t=new r),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var n=0,a=arguments.length;n1)t=r;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");n=this.head.next,t=this.head.value}for(var a=0;null!==n;a++)t=e(t,n.value,a),n=n.next;return t},r.prototype.reduceReverse=function(e,r){var t,n=this.tail;if(arguments.length>1)t=r;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");n=this.tail.prev,t=this.tail.value}for(var a=this.length-1;null!==n;a--)t=e(t,n.value,a),n=n.prev;return t},r.prototype.toArray=function(){for(var e=new Array(this.length),r=0,t=this.head;null!==t;r++)e[r]=t.value,t=t.next;return e},r.prototype.toArrayReverse=function(){for(var e=new Array(this.length),r=0,t=this.tail;null!==t;r++)e[r]=t.value,t=t.prev;return e},r.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r;if(tthis.length&&(t=this.length);for(var a=0,i=this.head;null!==i&&athis.length&&(t=this.length);for(var a=this.length,i=this.tail;null!==i&&a>t;a--)i=i.prev;for(;null!==i&&a>e;a--,i=i.prev)n.push(i.value);return n},r.prototype.reverse=function(){for(var e=this.head,r=this.tail,t=e;null!==t;t=t.prev){var n=t.prev;t.prev=t.next,t.next=n}return this.head=r,this.tail=e,this}},853:e=>{var r=function(e){var r,t=Object.prototype,n=t.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",o=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function l(e,r,t){return Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}),e[r]}try{l({},"")}catch(e){l=function(e,r,t){return e[r]=t}}function c(e,r,t,n){var a=r&&r.prototype instanceof p?r:p,i=Object.create(a.prototype),o=new M(n||[]);return i._invoke=function(e,r,t){var n=f;return function(a,i){if(n===v)throw new Error("Generator is already running");if(n===h){if("throw"===a)throw i;return T()}for(t.method=a,t.arg=i;;){var o=t.delegate;if(o){var s=D(o,t);if(s){if(s===m)continue;return s}}if("next"===t.method)t.sent=t._sent=t.arg;else if("throw"===t.method){if(n===f)throw n=h,t.arg;t.dispatchException(t.arg)}else"return"===t.method&&t.abrupt("return",t.arg);n=v;var l=u(e,r,t);if("normal"===l.type){if(n=t.done?h:d,l.arg===m)continue;return{value:l.arg,done:t.done}}"throw"===l.type&&(n=h,t.method="throw",t.arg=l.arg)}}}(e,t,o),i}function u(e,r,t){try{return{type:"normal",arg:e.call(r,t)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var f="suspendedStart",d="suspendedYield",v="executing",h="completed",m={};function p(){}function _(){}function S(){}var g={};g[i]=function(){return this};var b=Object.getPrototypeOf,w=b&&b(b(x([])));w&&w!==t&&n.call(w,i)&&(g=w);var k=S.prototype=p.prototype=Object.create(g);function E(e){["next","throw","return"].forEach((function(r){l(e,r,(function(e){return this._invoke(r,e)}))}))}function y(e,r){function t(a,i,o,s){var l=u(e[a],e,i);if("throw"!==l.type){var c=l.arg,f=c.value;return f&&"object"==typeof f&&n.call(f,"__await")?r.resolve(f.__await).then((function(e){t("next",e,o,s)}),(function(e){t("throw",e,o,s)})):r.resolve(f).then((function(e){c.value=e,o(c)}),(function(e){return t("throw",e,o,s)}))}s(l.arg)}var a;this._invoke=function(e,n){function i(){return new r((function(r,a){t(e,n,r,a)}))}return a=a?a.then(i,i):i()}}function D(e,t){var n=e.iterator[t.method];if(n===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=r,D(e,t),"throw"===t.method))return m;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var a=u(n,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,m;var i=a.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=r),t.delegate=null,m):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,m)}function A(e){var r={tryLoc:e[0]};1 in e&&(r.catchLoc=e[1]),2 in e&&(r.finallyLoc=e[2],r.afterLoc=e[3]),this.tryEntries.push(r)}function C(e){var r=e.completion||{};r.type="normal",delete r.arg,e.completion=r}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function x(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,o=function t(){for(;++a=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var l=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(l&&c){if(this.prev=0;--t){var a=this.tryEntries[t];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev=0;--r){var t=this.tryEntries[r];if(t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),C(t),m}},catch:function(e){for(var r=this.tryEntries.length-1;r>=0;--r){var t=this.tryEntries[r];if(t.tryLoc===e){var n=t.completion;if("throw"===n.type){var a=n.arg;C(t)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:x(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=r),m}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},282:(e,r,t)=>{var n=t(803),a=["importFile"];e.exports=function(){var e=new Worker(URL.createObjectURL(new Blob(['/******/ var __webpack_modules__ = ({\n\n/***/ 496:\n/***/ ((__unused_webpack_module, exports, __webpack_require__) => {\n\n\n\nObject.defineProperty(exports, "__esModule", ({\n value: true\n}));\nexports.importFromOldV8CPUProfile = exports.importFromChromeCPUProfile = exports.importFromChromeTimeline = exports.isChromeTimeline = void 0;\n\nconst profile_1 = __webpack_require__(211);\n\nconst utils_1 = __webpack_require__(844);\n\nconst value_formatters_1 = __webpack_require__(218);\n\nconst v8cpuFormatter_1 = __webpack_require__(320);\n\nfunction isChromeTimeline(rawProfile) {\n if (!Array.isArray(rawProfile)) return false;\n if (rawProfile.length < 1) return false;\n const first = rawProfile[0];\n if (!(\'pid\' in first && \'tid\' in first && \'ph\' in first && \'cat\' in first)) return false;\n if (!rawProfile.find(e => e.name === \'CpuProfile\' || e.name === \'Profile\' || e.name === \'ProfileChunk\')) return false;\n return true;\n}\n\nexports.isChromeTimeline = isChromeTimeline;\n\nfunction importFromChromeTimeline(events, fileName) {\n // It seems like sometimes Chrome timeline files contain multiple CpuProfiles?\n // For now, choose the first one in the list.\n const cpuProfileByID = new Map(); // Maps profile IDs (like "0x3") to pid/tid pairs formatted as `${pid}:${tid}`\n\n const pidTidById = new Map(); // Maps pid/tid pairs to thread names\n\n const threadNameByPidTid = new Map(); // The events aren\'t necessarily recorded in chronological order. Sort them so\n // that they are.\n\n utils_1.sortBy(events, e => e.ts);\n\n for (let event of events) {\n if (event.name === \'CpuProfile\') {\n const pidTid = `${event.pid}:${event.tid}`;\n const id = event.id || pidTid;\n cpuProfileByID.set(id, event.args.data.cpuProfile);\n pidTidById.set(id, pidTid);\n }\n\n if (event.name === \'Profile\') {\n const pidTid = `${event.pid}:${event.tid}`;\n cpuProfileByID.set(event.id || pidTid, Object.assign({\n startTime: 0,\n endTime: 0,\n nodes: [],\n samples: [],\n timeDeltas: []\n }, event.args.data));\n\n if (event.id) {\n pidTidById.set(event.id, `${event.pid}:${event.tid}`);\n }\n }\n\n if (event.name === \'thread_name\') {\n threadNameByPidTid.set(`${event.pid}:${event.tid}`, event.args.name);\n }\n\n if (event.name === \'ProfileChunk\') {\n const pidTid = `${event.pid}:${event.tid}`;\n const cpuProfile = cpuProfileByID.get(event.id || pidTid);\n\n if (cpuProfile) {\n const chunk = event.args.data;\n\n if (chunk.cpuProfile) {\n if (chunk.cpuProfile.nodes) {\n cpuProfile.nodes = cpuProfile.nodes.concat(chunk.cpuProfile.nodes);\n }\n\n if (chunk.cpuProfile.samples) {\n cpuProfile.samples = cpuProfile.samples.concat(chunk.cpuProfile.samples);\n }\n }\n\n if (chunk.timeDeltas) {\n cpuProfile.timeDeltas = cpuProfile.timeDeltas.concat(chunk.timeDeltas);\n }\n\n if (chunk.startTime != null) {\n cpuProfile.startTime = chunk.startTime;\n }\n\n if (chunk.endTime != null) {\n cpuProfile.endTime = chunk.endTime;\n }\n } else {\n console.warn(`Ignoring ProfileChunk for undeclared Profile with id ${event.id || pidTid}`);\n }\n }\n }\n\n if (cpuProfileByID.size > 0) {\n const profiles = [];\n let indexToView = 0;\n utils_1.itForEach(cpuProfileByID.keys(), profileId => {\n let threadName = null;\n let pidTid = pidTidById.get(profileId);\n\n if (pidTid) {\n threadName = threadNameByPidTid.get(pidTid) || null;\n\n if (threadName) {}\n }\n\n const profile = importFromChromeCPUProfile(cpuProfileByID.get(profileId));\n\n if (threadName && cpuProfileByID.size > 1) {\n profile.setName(`${fileName} - ${threadName}`);\n\n if (threadName === \'CrRendererMain\') {\n indexToView = profiles.length;\n }\n } else {\n profile.setName(`${fileName}`);\n }\n\n profiles.push(profile);\n });\n return {\n name: fileName,\n indexToView,\n profiles\n };\n } else {\n throw new Error(\'Could not find CPU profile in Timeline\');\n }\n}\n\nexports.importFromChromeTimeline = importFromChromeTimeline;\nconst callFrameToFrameInfo = new Map();\n\nfunction frameInfoForCallFrame(callFrame) {\n return utils_1.getOrInsert(callFrameToFrameInfo, callFrame, callFrame => {\n const name = callFrame.functionName || \'(anonymous)\';\n const file = callFrame.url;\n const line = callFrame.lineNumber;\n const col = callFrame.columnNumber;\n return {\n key: `${name}:${file}:${line}:${col}`,\n name,\n file,\n line,\n col\n };\n });\n}\n\nfunction shouldIgnoreFunction(callFrame) {\n const {\n functionName,\n url\n } = callFrame;\n\n if (url === \'native dummy.js\') {\n // I\'m not really sure what this is about, but this seems to be used\n // as a way of avoiding edge cases in V8\'s implementation.\n // See: https://github.com/v8/v8/blob/b8626ca4/tools/js2c.py#L419-L424\n return true;\n }\n\n return functionName === \'(root)\' || functionName === \'(idle)\';\n}\n\nfunction shouldPlaceOnTopOfPreviousStack(functionName) {\n return functionName === \'(garbage collector)\' || functionName === \'(program)\';\n}\n\nfunction importFromChromeCPUProfile(chromeProfile) {\n const profile = new profile_1.CallTreeProfileBuilder(chromeProfile.endTime - chromeProfile.startTime);\n const nodeById = new Map();\n\n for (let node of chromeProfile.nodes) {\n nodeById.set(node.id, node);\n }\n\n for (let node of chromeProfile.nodes) {\n if (typeof node.parent === \'number\') {\n node.parent = nodeById.get(node.parent);\n }\n\n if (!node.children) continue;\n\n for (let childId of node.children) {\n const child = nodeById.get(childId);\n if (!child) continue;\n child.parent = node;\n }\n }\n\n const samples = [];\n const sampleTimes = []; // The first delta is relative to the profile startTime.\n // Ref: https://github.com/v8/v8/blob/44bd8fd7/src/inspector/js_protocol.json#L1485\n\n let elapsed = chromeProfile.timeDeltas[0]; // Prevents negative time deltas from causing bad data. See\n // https://github.com/jlfwong/speedscope/pull/305 for details.\n\n let lastValidElapsed = elapsed;\n let lastNodeId = NaN; // The chrome CPU profile format doesn\'t collapse identical samples. We\'ll do that\n // here to save a ton of work later doing mergers.\n\n for (let i = 0; i < chromeProfile.samples.length; i++) {\n const nodeId = chromeProfile.samples[i];\n\n if (nodeId != lastNodeId) {\n samples.push(nodeId);\n\n if (elapsed < lastValidElapsed) {\n sampleTimes.push(lastValidElapsed);\n } else {\n sampleTimes.push(elapsed);\n lastValidElapsed = elapsed;\n }\n }\n\n if (i === chromeProfile.samples.length - 1) {\n if (!isNaN(lastNodeId)) {\n samples.push(lastNodeId);\n\n if (elapsed < lastValidElapsed) {\n sampleTimes.push(lastValidElapsed);\n } else {\n sampleTimes.push(elapsed);\n lastValidElapsed = elapsed;\n }\n }\n } else {\n const timeDelta = chromeProfile.timeDeltas[i + 1];\n elapsed += timeDelta;\n lastNodeId = nodeId;\n }\n }\n\n let prevStack = [];\n\n for (let i = 0; i < samples.length; i++) {\n const value = sampleTimes[i];\n const nodeId = samples[i];\n let stackTop = nodeById.get(nodeId);\n if (!stackTop) continue; // Find lowest common ancestor of the current stack and the previous one\n\n let lca = null; // This is O(n^2), but n should be relatively small here (stack height),\n // so hopefully this isn\'t much of a problem\n\n for (lca = stackTop; lca && prevStack.indexOf(lca) === -1; lca = shouldPlaceOnTopOfPreviousStack(lca.callFrame.functionName) ? utils_1.lastOf(prevStack) : lca.parent || null) {} // Close frames that are no longer open\n\n\n while (prevStack.length > 0 && utils_1.lastOf(prevStack) != lca) {\n const closingNode = prevStack.pop();\n const frame = frameInfoForCallFrame(closingNode.callFrame);\n profile.leaveFrame(frame, value);\n } // Open frames that are now becoming open\n\n\n const toOpen = [];\n\n for (let node = stackTop; node && node != lca && !shouldIgnoreFunction(node.callFrame); // Place Chrome internal functions on top of the previous call stack\n node = shouldPlaceOnTopOfPreviousStack(node.callFrame.functionName) ? utils_1.lastOf(prevStack) : node.parent || null) {\n toOpen.push(node);\n }\n\n toOpen.reverse();\n\n for (let node of toOpen) {\n profile.enterFrame(frameInfoForCallFrame(node.callFrame), value);\n }\n\n prevStack = prevStack.concat(toOpen);\n } // Close frames that are open at the end of the trace\n\n\n for (let i = prevStack.length - 1; i >= 0; i--) {\n profile.leaveFrame(frameInfoForCallFrame(prevStack[i].callFrame), utils_1.lastOf(sampleTimes));\n }\n\n profile.setValueFormatter(new value_formatters_1.TimeFormatter(\'microseconds\'));\n return profile.build();\n}\n\nexports.importFromChromeCPUProfile = importFromChromeCPUProfile;\n\nfunction importFromOldV8CPUProfile(content) {\n return importFromChromeCPUProfile(v8cpuFormatter_1.chromeTreeToNodes(content));\n}\n\nexports.importFromOldV8CPUProfile = importFromOldV8CPUProfile;\n\n/***/ }),\n\n/***/ 320:\n/***/ ((__unused_webpack_module, exports) => {\n\n\n\nObject.defineProperty(exports, "__esModule", ({\n value: true\n}));\nexports.chromeTreeToNodes = void 0;\n\nfunction treeToArray(root) {\n const nodes = [];\n\n function visit(node) {\n nodes.push({\n id: node.id,\n callFrame: {\n columnNumber: 0,\n functionName: node.functionName,\n lineNumber: node.lineNumber,\n scriptId: node.scriptId,\n url: node.url\n },\n hitCount: node.hitCount,\n children: node.children.map(child => child.id)\n });\n node.children.forEach(visit);\n }\n\n visit(root);\n return nodes;\n}\n\nfunction timestampsToDeltas(timestamps, startTime) {\n return timestamps.map((timestamp, index) => {\n const lastTimestamp = index === 0 ? startTime * 1000000 : timestamps[index - 1];\n return timestamp - lastTimestamp;\n });\n}\n/**\n * Convert the old tree-based format to the new flat-array based format\n */\n\n\nfunction chromeTreeToNodes(content) {\n // Note that both startTime and endTime are now in microseconds\n return {\n samples: content.samples,\n startTime: content.startTime * 1000000,\n endTime: content.endTime * 1000000,\n nodes: treeToArray(content.head),\n timeDeltas: timestampsToDeltas(content.timestamps, content.startTime)\n };\n}\n\nexports.chromeTreeToNodes = chromeTreeToNodes;\n\n/***/ }),\n\n/***/ 765:\n/***/ ((__unused_webpack_module, exports) => {\n\n\n\nObject.defineProperty(exports, "__esModule", ({\n value: true\n}));\nexports.demangleCpp = void 0;\nlet cppfilt;\nconst cache = new Map(); // This function converts a mangled C++ name such as "__ZNK7Support6ColorFeqERKS0_"\n// into a human-readable symbol (in this case "Support::ColorF::==(Support::ColorF&)")\n\nfunction demangleCpp(name) {\n if (name.startsWith(\'__Z\')) {\n let result = cache.get(name);\n\n if (result !== undefined) {\n name = result;\n } else {\n if (!cppfilt) {\n cppfilt = new Function(\'exports\', code)();\n }\n\n result = cppfilt(name.slice(1));\n result = result === \'(null)\' ? name : result;\n cache.set(name, result);\n name = result;\n }\n }\n\n return name;\n}\n\nexports.demangleCpp = demangleCpp; // This was taken from https://d.fuqu.jp/c++filtjs/\n\nconst code = `\nreturn function(){function r(r){eval.call(null,r)}function a(r){throw print(r+":\\\\n"+(new Error).stack),ke=!0,"Assertion: "+r}function e(r,e){r||a("Assertion failed: "+e)}function i(r,a,i,v){function t(r,a){if("string"==a){var e=Oe;return le.stackAlloc(r.length+1),A(r,e),e}return r}function f(r,a){return"string"==a?s(r):r}try{func=ce.Module["_"+r]}catch(r){}e(func,"Cannot call unknown function "+r+" (perhaps LLVM optimizations or closure removed it?)");var _=0,n=v?v.map(function(r){return t(r,i[_++])}):[];return f(func.apply(null,n),a)}function v(r,a,e){return function(){return i(r,a,e,Array.prototype.slice.call(arguments))}}function t(r,e,i,v){switch(i=i||"i8","*"===i[i.length-1]&&(i="i32"),i){case"i1":Ae[r]=e;break;case"i8":Ae[r]=e;break;case"i16":ye[r>>1]=e;break;case"i32":Se[r>>2]=e;break;case"i64":Se[r>>2]=e;break;case"float":Ce[r>>2]=e;break;case"double":ze[0]=e,Se[r>>2]=xe[0],Se[r+4>>2]=xe[1];break;default:a("invalid type for setValue: "+i)}}function f(r,e,i){switch(e=e||"i8","*"===e[e.length-1]&&(e="i32"),e){case"i1":return Ae[r];case"i8":return Ae[r];case"i16":return ye[r>>1];case"i32":return Se[r>>2];case"i64":return Se[r>>2];case"float":return Ce[r>>2];case"double":return xe[0]=Se[r>>2],xe[1]=Se[r+4>>2],ze[0];default:a("invalid type for setValue: "+e)}return null}function _(r,a,e){var i,v;"number"==typeof r?(i=!0,v=r):(i=!1,v=r.length);var f="string"==typeof a?a:null,_=[Jr,le.stackAlloc,le.staticAlloc][void 0===e?we:e](Math.max(v,f?1:a.length));if(i)return Fa(_,0,v),_;for(var s,n=0;n>12<<12}function l(){for(;Le<=Ie;)Le=o(2*Le);var r=Ae,a=new ArrayBuffer(Le);Ae=new Int8Array(a),ye=new Int16Array(a),Se=new Int32Array(a),ge=new Uint8Array(a),me=new Uint16Array(a),Me=new Uint32Array(a),Ce=new Float32Array(a),Re=new Float64Array(a),Ae.set(r)}function b(r){for(;r.length>0;){var a=r.shift(),e=a.func;"number"==typeof e&&(e=pe[e]),e(void 0===a.arg?null:a.arg)}}function k(){b(Ve)}function u(){b(Be),be.print()}function c(r,a){return Array.prototype.slice.call(Ae.subarray(r,r+a))}function h(r,a){for(var e=new Uint8Array(a),i=0;i255&&(v&=255),e.push(v),i+=1}return a||e.push(0),e}function E(r){for(var a=[],e=0;e255&&(i&=255),a.push(String.fromCharCode(i))}return a.join("")}function A(r,a,e){for(var i=0;i255&&(v&=255),Ae[a+i]=v,i+=1}e||(Ae[a+i]=0)}function g(r,a,e,i){return r>=0?r:a<=32?2*Math.abs(1<=v&&(a<=32||r>v)&&(r=-2*v+r),r}function m(r,a,e){if(0==(0|r)|0==(0|a)|0==(0|e))var i=0;else{Se[r>>2]=0,Se[r+4>>2]=a,Se[r+8>>2]=e;var i=1}var i;return i}function S(r,a,e){if(0==(0|r)|(0|a)<0|0==(0|e))var i=0;else{Se[r>>2]=41,Se[r+4>>2]=a,Se[r+8>>2]=e;var i=1}var i;return i}function M(r,a,e){if(0==(0|r)|0==(0|e))var i=0;else{Se[r>>2]=6,Se[r+4>>2]=a,Se[r+8>>2]=e;var i=1}var i;return i}function C(r,a,e){if(0==(0|r)|0==(0|e))var i=0;else{Se[r>>2]=7,Se[r+4>>2]=a,Se[r+8>>2]=e;var i=1}var i;return i}function R(r,a){var e,i=0==(0|a);do if(i)var v=0;else{var e=(r+32|0)>>2,t=Se[e];if((0|t)>=(0|Se[r+36>>2])){var v=0;break}var f=(t<<2)+Se[r+28>>2]|0;Se[f>>2]=a;var _=Se[e]+1|0;Se[e]=_;var v=1}while(0);var v;return v}function T(r,a){var e,e=(r+12|0)>>2,i=Se[e],v=i+1|0;Se[e]=v;var t=Ae[i]<<24>>24==95;do if(t){var f=i+2|0;if(Se[e]=f,Ae[v]<<24>>24!=90){var _=0;break}var s=O(r,a),_=s}else var _=0;while(0);var _;return _}function O(r,a){var e=r+12|0,i=Ae[Se[e>>2]];r:do if(i<<24>>24==71||i<<24>>24==84)var v=Tr(r),t=v;else{var f=Ar(r),_=0==(0|f)|0==(0|a);do if(!_){if(0!=(1&Se[r+8>>2]|0))break;var s=Me[f>>2],n=(s-25|0)>>>0<3;a:do if(n)for(var o=f;;){var o,l=Me[o+4>>2],b=Me[l>>2];if((b-25|0)>>>0>=3){var k=l,u=b;break a}var o=l}else var k=f,u=s;while(0);var u,k;if(2!=(0|u)){var t=k;break r}var c=k+8|0,h=Me[c>>2],d=(Se[h>>2]-25|0)>>>0<3;a:do if(d)for(var w=h;;){var w,p=Me[w+4>>2];if((Se[p>>2]-25|0)>>>0>=3){var E=p;break a}var w=p}else var E=h;while(0);var E;Se[c>>2]=E;var t=k;break r}while(0);var A=Ae[Se[e>>2]];if(A<<24>>24==0||A<<24>>24==69){var t=f;break}var g=Or(f),y=Sr(r,g),m=D(r,3,f,y),t=m}while(0);var t;return t}function N(r){var a,e,i=Oe;Oe+=4;var v=i,e=v>>2,a=(r+12|0)>>2,t=Me[a],f=Ae[t],_=f<<24>>24;r:do if(f<<24>>24==114||f<<24>>24==86||f<<24>>24==75){var s=I(r,v,0);if(0==(0|s)){var n=0;break}var o=N(r);Se[s>>2]=o;var l=Se[e],b=R(r,l);if(0==(0|b)){var n=0;break}var n=Se[e]}else{do{if(97==(0|_)||98==(0|_)||99==(0|_)||100==(0|_)||101==(0|_)||102==(0|_)||103==(0|_)||104==(0|_)||105==(0|_)||106==(0|_)||108==(0|_)||109==(0|_)||110==(0|_)||111==(0|_)||115==(0|_)||116==(0|_)||118==(0|_)||119==(0|_)||120==(0|_)||121==(0|_)||122==(0|_)){var k=ai+20*(_-97)|0,u=P(r,k);Se[e]=u;var c=r+48|0,h=Se[c>>2]+Se[Se[u+4>>2]+4>>2]|0;Se[c>>2]=h;var d=Se[a]+1|0;Se[a]=d;var n=u;break r}if(117==(0|_)){Se[a]=t+1|0;var w=L(r),p=D(r,34,w,0);Se[e]=p;var E=p}else if(70==(0|_)){var A=F(r);Se[e]=A;var E=A}else if(48==(0|_)||49==(0|_)||50==(0|_)||51==(0|_)||52==(0|_)||53==(0|_)||54==(0|_)||55==(0|_)||56==(0|_)||57==(0|_)||78==(0|_)||90==(0|_)){var g=X(r);Se[e]=g;var E=g}else if(65==(0|_)){var y=j(r);Se[e]=y;var E=y}else if(77==(0|_)){var m=U(r);Se[e]=m;var E=m}else if(84==(0|_)){var S=x(r);if(Se[e]=S,Ae[Se[a]]<<24>>24!=73){var E=S;break}var M=R(r,S);if(0==(0|M)){var n=0;break r}var C=Se[e],T=z(r),O=D(r,4,C,T);Se[e]=O;var E=O}else if(83==(0|_)){var B=ge[t+1|0];if((B-48&255&255)<10|B<<24>>24==95|(B-65&255&255)<26){var H=V(r,0);if(Se[e]=H,Ae[Se[a]]<<24>>24!=73){var n=H;break r}var K=z(r),Y=D(r,4,H,K);Se[e]=Y;var E=Y}else{var G=X(r);if(Se[e]=G,0==(0|G)){var E=0;break}if(21==(0|Se[G>>2])){var n=G;break r}var E=G}}else if(80==(0|_)){Se[a]=t+1|0;var W=N(r),Z=D(r,29,W,0);Se[e]=Z;var E=Z}else if(82==(0|_)){Se[a]=t+1|0;var Q=N(r),q=D(r,30,Q,0);Se[e]=q;var E=q}else if(67==(0|_)){Se[a]=t+1|0;var $=N(r),J=D(r,31,$,0);Se[e]=J;var E=J}else if(71==(0|_)){Se[a]=t+1|0;var rr=N(r),ar=D(r,32,rr,0);Se[e]=ar;var E=ar}else{if(85!=(0|_)){var n=0;break r}Se[a]=t+1|0;var er=L(r);Se[e]=er;var ir=N(r),vr=Se[e],tr=D(r,28,ir,vr);Se[e]=tr;var E=tr}}while(0);var E,fr=R(r,E);if(0==(0|fr)){var n=0;break}var n=Se[e]}while(0);var n;return Oe=i,n}function I(r,a,e){for(var i,v=r+12|0,t=0!=(0|e),f=t?25:22,i=(r+48|0)>>2,_=t?26:23,s=t?27:24,n=a;;){var n,o=Se[v>>2],l=Ae[o];if(l<<24>>24!=114&&l<<24>>24!=86&&l<<24>>24!=75){var b=n;break}var k=o+1|0;if(Se[v>>2]=k,l<<24>>24==114){var u=Se[i]+9|0;Se[i]=u;var c=f}else if(l<<24>>24==86){var h=Se[i]+9|0;Se[i]=h;var c=_}else{var d=Se[i]+6|0;Se[i]=d;var c=s}var c,w=D(r,c,0,0);if(Se[n>>2]=w,0==(0|w)){var b=0;break}var n=w+4|0}var b;return b}function P(r,a){var e=0==(0|a);do if(e)var i=0;else{var v=J(r);if(0==(0|v)){var i=0;break}Se[v>>2]=33,Se[v+4>>2]=a;var i=v}while(0);var i;return i}function D(r,a,e,i){var v,t;do{if(1==(0|a)||2==(0|a)||3==(0|a)||4==(0|a)||10==(0|a)||28==(0|a)||37==(0|a)||43==(0|a)||44==(0|a)||45==(0|a)||46==(0|a)||47==(0|a)||48==(0|a)||49==(0|a)||50==(0|a)){if(0==(0|e)|0==(0|i)){var f=0;t=7;break}t=5;break}if(8==(0|a)||9==(0|a)||11==(0|a)||12==(0|a)||13==(0|a)||14==(0|a)||15==(0|a)||16==(0|a)||17==(0|a)||18==(0|a)||19==(0|a)||20==(0|a)||29==(0|a)||30==(0|a)||31==(0|a)||32==(0|a)||34==(0|a)||38==(0|a)||39==(0|a)||42==(0|a)){if(0==(0|e)){var f=0;t=7;break}t=5;break}if(36==(0|a)){if(0==(0|i)){var f=0;t=7;break}t=5;break}if(35==(0|a)||22==(0|a)||23==(0|a)||24==(0|a)||25==(0|a)||26==(0|a)||27==(0|a))t=5;else{var f=0;t=7}}while(0);do if(5==t){var _=J(r),v=_>>2;if(0==(0|_)){var f=0;break}Se[v]=a,Se[v+1]=e,Se[v+2]=i;var f=_}while(0);var f;return f}function L(r){var a=sr(r);if((0|a)<1)var e=0;else{var i=Rr(r,a);Se[r+44>>2]=i;var e=i}var e;return e}function F(r){var a,a=(r+12|0)>>2,e=Se[a],i=e+1|0;if(Se[a]=i,Ae[e]<<24>>24==70){if(Ae[i]<<24>>24==89){var v=e+2|0;Se[a]=v}var t=Sr(r,1),f=Se[a],_=f+1|0;Se[a]=_;var s=Ae[f]<<24>>24==69?t:0,n=s}else var n=0;var n;return n}function X(r){var a=Ar(r);return a}function j(r){var a,a=(r+12|0)>>2,e=Se[a],i=e+1|0;Se[a]=i;var v=Ae[e]<<24>>24==65;do if(v){var t=Ae[i];if(t<<24>>24==95)var f=0;else if((t-48&255&255)<10){for(var _=i;;){var _,s=_+1|0;if(Se[a]=s,(Ae[s]-48&255&255)>=10)break;var _=s}var n=s-i|0,o=lr(r,i,n);if(0==(0|o)){var l=0;break}var f=o}else{var b=nr(r);if(0==(0|b)){var l=0;break}var f=b}var f,k=Se[a],u=k+1|0;if(Se[a]=u,Ae[k]<<24>>24!=95){var l=0;break}var c=N(r),h=D(r,36,f,c),l=h}else var l=0;while(0);var l;return l}function U(r){var a=Oe;Oe+=4;var e=a,i=r+12|0,v=Se[i>>2],t=v+1|0;Se[i>>2]=t;var f=Ae[v]<<24>>24==77;r:do if(f){var _=N(r),s=I(r,e,1);if(0==(0|s)){var n=0;break}var o=N(r);Se[s>>2]=o;var l=(0|s)==(0|e);do if(!l){if(35==(0|Se[o>>2]))break;var b=Se[e>>2],k=R(r,b);if(0==(0|k)){var n=0;break r}}while(0);var u=Se[e>>2],c=D(r,37,_,u),n=c}else var n=0;while(0);var n;return Oe=a,n}function x(r){var a,a=(r+12|0)>>2,e=Se[a],i=e+1|0;Se[a]=i;var v=Ae[e]<<24>>24==84;do if(v){if(Ae[i]<<24>>24==95)var t=0,f=i;else{var _=sr(r);if((0|_)<0){var s=0;break}var t=_+1|0,f=Se[a]}var f,t;if(Se[a]=f+1|0,Ae[f]<<24>>24!=95){var s=0;break}var n=r+40|0,o=Se[n>>2]+1|0;Se[n>>2]=o;var l=Er(r,t),s=l}else var s=0;while(0);var s;return s}function z(r){var a,e=Oe;Oe+=4;var i=e,v=r+44|0,t=Se[v>>2],a=(r+12|0)>>2,f=Se[a],_=f+1|0;Se[a]=_;var s=Ae[f]<<24>>24==73;r:do if(s){Se[i>>2]=0;for(var n=i;;){var n,o=_r(r);if(0==(0|o)){var l=0;break r}var b=D(r,39,o,0);if(Se[n>>2]=b,0==(0|b)){var l=0;break r}var k=Se[a];if(Ae[k]<<24>>24==69)break;var n=b+8|0}var u=k+1|0;Se[a]=u,Se[v>>2]=t;var l=Se[i>>2]}else var l=0;while(0);var l;return Oe=e,l}function V(r,a){var e,e=(r+12|0)>>2,i=Se[e],v=i+1|0;Se[e]=v;var t=Ae[i]<<24>>24==83;r:do if(t){var f=i+2|0;Se[e]=f;var _=ge[v];if(_<<24>>24==95)var s=0;else{if(!((_-48&255&255)<10|(_-65&255&255)<26)){var n=8&Se[r+8>>2],o=n>>>3,l=0!=(0|n)|0==(0|a);do if(l)var b=o;else{if((Ae[f]-67&255&255)>=2){var b=o;break}var b=1}while(0);for(var b,k=0|ei;;){var k;if(k>>>0>=(ei+196|0)>>>0){var u=0;break r}if(_<<24>>24==Ae[0|k]<<24>>24)break;var k=k+28|0}var c=Se[k+20>>2];if(0!=(0|c)){var h=Se[k+24>>2],d=fr(r,c,h);Se[r+44>>2]=d}if(0==(0|b))var w=k+8|0,p=k+4|0;else var w=k+16|0,p=k+12|0;var p,w,E=Se[w>>2],A=Se[p>>2],g=r+48|0,y=Se[g>>2]+E|0;Se[g>>2]=y;var m=fr(r,A,E),u=m;break}for(var S=_,M=0,C=f;;){var C,M,S;if((S-48&255&255)<10)var R=36*M-48|0;else{if((S-65&255&255)>=26){var u=0;break r}var R=36*M-55|0}var R,T=(S<<24>>24)+R|0;if((0|T)<0){var u=0;break r}var O=C+1|0;Se[e]=O;var N=ge[C];if(N<<24>>24==95)break;var S=N,M=T,C=O}var s=T+1|0}var s;if((0|s)>=(0|Se[r+32>>2])){var u=0;break}var I=r+40|0,P=Se[I>>2]+1|0;Se[I>>2]=P;var u=Se[Se[r+28>>2]+(s<<2)>>2]}else var u=0;while(0);var u;return u}function B(r,a,e,i){var v,t,f,_,s=Oe;Oe+=28;var n,o=s,_=o>>2;Se[_]=r;var l=e+1|0,f=(o+12|0)>>2;Se[f]=l;var b=Jr(l),t=(o+4|0)>>2;if(Se[t]=b,0==(0|b))var k=0,u=1;else{var v=(o+8|0)>>2;Se[v]=0,Se[_+4]=0,Se[_+5]=0;var c=o+24|0;Se[c>>2]=0,H(o,a);var h=Me[t],d=0==(0|h);do{if(!d){var w=Me[v];if(w>>>0>=Me[f]>>>0){n=5;break}Se[v]=w+1|0,Ae[h+w|0]=0,n=6;break}n=5}while(0);5==n&&Y(o,0);var p=Se[t],E=0==(0|p)?Se[c>>2]:Se[f],k=p,u=E}var u,k;return Se[i>>2]=u,Oe=s,k}function H(r,a){var e,i,v,t,f,_,s,n,o,l,b,k,u,c,h,d,w,p,E,A,g,y,m,S,M,C,R,T,O,N,I,P,D,L,F,X,j,U,x,z,V,B,K,G,W,J,vr,tr,fr,_r,sr,nr,or,lr,br,kr,ur,cr,hr,dr,wr,pr=a>>2,Er=r>>2,Ar=Oe;Oe+=184;var gr,yr=Ar,wr=yr>>2,mr=Ar+64,dr=mr>>2,Sr=Ar+72,Mr=Ar+88,Cr=Ar+104,hr=Cr>>2,Rr=Ar+168,Tr=0==(0|a);r:do if(Tr)Z(r);else{var cr=(r+4|0)>>2,Or=Me[cr];if(0==(0|Or))break;var Nr=0|a,Ir=Me[Nr>>2];a:do{if(0==(0|Ir)){if(0!=(4&Se[Er]|0)){var Pr=Se[pr+1],Dr=Se[pr+2];q(r,Pr,Dr);break r}var ur=(r+8|0)>>2,Lr=Me[ur],Fr=a+8|0,Xr=Me[Fr>>2];if((Xr+Lr|0)>>>0>Me[Er+3]>>>0){var jr=Se[pr+1];Q(r,jr,Xr);break r}var Ur=Or+Lr|0,xr=Se[pr+1];Pa(Ur,xr,Xr,1);var zr=Se[ur]+Se[Fr>>2]|0;Se[ur]=zr;break r}if(1==(0|Ir)||2==(0|Ir)){var Vr=Se[pr+1];H(r,Vr);var Br=0==(4&Se[Er]|0),Hr=Me[cr],Kr=0!=(0|Hr);e:do if(Br){do if(Kr){var kr=(r+8|0)>>2,Yr=Me[kr];if((Yr+2|0)>>>0>Me[Er+3]>>>0)break;var Gr=Hr+Yr|0;oe=14906,Ae[Gr]=255&oe,oe>>=8,Ae[Gr+1]=255&oe;var Wr=Se[kr]+2|0;Se[kr]=Wr;break e}while(0);Q(r,0|He.__str120,2)}else{do if(Kr){var Zr=r+8|0,Qr=Me[Zr>>2];if(Qr>>>0>=Me[Er+3]>>>0)break;Se[Zr>>2]=Qr+1|0,Ae[Hr+Qr|0]=46;break e}while(0);Y(r,46)}while(0);var qr=Se[pr+2];H(r,qr);break r}if(3==(0|Ir)){for(var br=(r+20|0)>>2,$r=Me[br],lr=(r+16|0)>>2,Jr=a,ra=0,aa=$r;;){var aa,ra,Jr,ea=Me[Jr+4>>2];if(0==(0|ea)){var ia=ra,va=0;gr=33;break}if(ra>>>0>3){Z(r);break r}var ta=(ra<<4)+yr|0;Se[ta>>2]=aa,Se[br]=ta,Se[((ra<<4)+4>>2)+wr]=ea,Se[((ra<<4)+8>>2)+wr]=0;var fa=Me[lr];Se[((ra<<4)+12>>2)+wr]=fa;var _a=ra+1|0,sa=0|ea,na=Me[sa>>2];if((na-25|0)>>>0>=3){gr=25;break}var Jr=ea,ra=_a,aa=ta}e:do if(25==gr){if(4==(0|na)){Se[dr]=fa,Se[lr]=mr,Se[dr+1]=ea;var oa=Se[sa>>2],la=mr}else var oa=na,la=fa;var la,oa;if(2!=(0|oa)){var ia=_a,va=sa;break}for(var ba=_a,ka=ea+8|0;;){var ka,ba,ua=Me[ka>>2];if((Se[ua>>2]-25|0)>>>0>=3){var ia=ba,va=sa;break e}if(ba>>>0>3)break;var ca=(ba<<4)+yr|0,ha=ba-1|0,da=(ha<<4)+yr|0,or=ca>>2,nr=da>>2;Se[or]=Se[nr],Se[or+1]=Se[nr+1],Se[or+2]=Se[nr+2],Se[or+3]=Se[nr+3],Se[ca>>2]=da,Se[br]=ca,Se[((ha<<4)+4>>2)+wr]=ua,Se[((ha<<4)+8>>2)+wr]=0,Se[((ha<<4)+12>>2)+wr]=la;var ba=ba+1|0,ka=ua+4|0}Z(r);break r}while(0);var va,ia,wa=Se[pr+2];if(H(r,wa),4==(0|Se[va>>2])){var pa=Se[dr];Se[lr]=pa}var Ea=0==(0|ia);e:do if(!Ea)for(var Aa=r+8|0,ga=r+12|0,ya=ia;;){var ya,ma=ya-1|0;if(0==(0|Se[((ma<<4)+8>>2)+wr])){var Sa=Me[cr],Ma=0==(0|Sa);do{if(!Ma){var Ca=Me[Aa>>2];if(Ca>>>0>=Me[ga>>2]>>>0){gr=41;break}Se[Aa>>2]=Ca+1|0,Ae[Sa+Ca|0]=32,gr=42;break}gr=41}while(0);41==gr&&Y(r,32);var Ra=Se[((ma<<4)+4>>2)+wr];$(r,Ra)}if(0==(0|ma))break e;var ya=ma}while(0);Se[br]=$r;break r}if(4==(0|Ir)){var sr=(r+20|0)>>2,Ta=Se[sr];Se[sr]=0;var Oa=Se[pr+1];H(r,Oa);var Na=Me[cr],Ia=0==(0|Na);do{if(!Ia){var _r=(r+8|0)>>2,Da=Me[_r],La=0==(0|Da);do if(!La){if(Ae[Na+(Da-1)|0]<<24>>24!=60)break;Da>>>0>>0?(Se[_r]=Da+1|0,Ae[Na+Da|0]=32):Y(r,32)}while(0);var Fa=Me[cr];if(0==(0|Fa)){gr=54;break}var Xa=Me[_r];if(Xa>>>0>=Me[Er+3]>>>0){gr=54;break}Se[_r]=Xa+1|0,Ae[Fa+Xa|0]=60,gr=55;break}gr=54}while(0);54==gr&&Y(r,60);var ja=Se[pr+2];H(r,ja);var Ua=Me[cr],xa=0==(0|Ua);do{if(!xa){var fr=(r+8|0)>>2,za=Me[fr],Va=0==(0|za);do if(!Va){if(Ae[Ua+(za-1)|0]<<24>>24!=62)break;za>>>0>>0?(Se[fr]=za+1|0,Ae[Ua+za|0]=32):Y(r,32)}while(0);var Ba=Me[cr];if(0==(0|Ba)){gr=64;break}var Ha=Me[fr];if(Ha>>>0>=Me[Er+3]>>>0){gr=64;break}Se[fr]=Ha+1|0,Ae[Ba+Ha|0]=62,gr=65;break}gr=64}while(0);64==gr&&Y(r,62),Se[sr]=Ta;break r}if(5==(0|Ir)){var tr=(r+16|0)>>2,Ka=Me[tr];if(0==(0|Ka)){Z(r);break r}for(var Ya=Se[pr+1],Ga=Se[Ka+4>>2];;){var Ga,Ya,Wa=Se[Ga+8>>2];if(0==(0|Wa))break;if(39!=(0|Se[Wa>>2])){Z(r);break r}if((0|Ya)<1){if(0!=(0|Ya))break;var Za=Se[Ka>>2];Se[tr]=Za;var Qa=Se[Wa+4>>2];H(r,Qa),Se[tr]=Ka;break r}var Ya=Ya-1|0,Ga=Wa}Z(r);break r}if(6==(0|Ir)){var qa=Se[pr+2];H(r,qa);break r}if(7==(0|Ir)){var $a=r+8|0,Ja=Me[$a>>2];Ja>>>0>>0?(Se[$a>>2]=Ja+1|0,Ae[Or+Ja|0]=126):Y(r,126);var re=Se[pr+2];H(r,re);break r}if(8==(0|Ir)){var vr=(r+8|0)>>2,ae=Me[vr];if((ae+11|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str121,11);else{for(var ee=Or+ae|0,ie=0|He.__str121,ve=ee,te=ie+11;ie>2,se=Me[J];if((se+8|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str122,8);else{var ne=Or+se|0,le=0|ne;oe=542397526,Ae[le]=255&oe,oe>>=8,Ae[le+1]=255&oe,oe>>=8,Ae[le+2]=255&oe,oe>>=8,Ae[le+3]=255&oe;var be=ne+4|0;oe=544370534,Ae[be]=255&oe,oe>>=8,Ae[be+1]=255&oe,oe>>=8,Ae[be+2]=255&oe,oe>>=8,Ae[be+3]=255&oe;var ke=Se[J]+8|0;Se[J]=ke}var ue=Se[pr+1];H(r,ue);break r}if(10==(0|Ir)){var W=(r+8|0)>>2,ce=Me[W],he=r+12|0;if((ce+24|0)>>>0>Me[he>>2]>>>0)Q(r,0|He.__str123,24);else{var de=Or+ce|0;Pa(de,0|He.__str123,24,1);var we=Se[W]+24|0;Se[W]=we}var pe=Se[pr+1];H(r,pe);var Ee=Me[cr],ge=0==(0|Ee);do{if(!ge){var ye=Me[W];if((ye+4|0)>>>0>Me[he>>2]>>>0){gr=96;break}var me=Ee+ye|0;oe=762210605,Ae[me]=255&oe,oe>>=8,Ae[me+1]=255&oe,oe>>=8,Ae[me+2]=255&oe,oe>>=8,Ae[me+3]=255&oe;var Ce=Se[W]+4|0;Se[W]=Ce,gr=97;break}gr=96}while(0);96==gr&&Q(r,0|He.__str124,4);var Re=Se[pr+2];H(r,Re);break r}if(11==(0|Ir)){var G=(r+8|0)>>2,Te=Me[G];if((Te+13|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str125,13);else{for(var Ne=Or+Te|0,ie=0|He.__str125,ve=Ne,te=ie+13;ie>2,De=Me[K];if((De+18|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str126,18);else{for(var Le=Or+De|0,ie=0|He.__str126,ve=Le,te=ie+18;ie>2,je=Me[B];if((je+16|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str127,16);else{for(var Ue=Or+je|0,ie=0|He.__str127,ve=Ue,te=ie+16;ie>2,Ve=Me[V];if((Ve+21|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str128,21);else{var Be=Or+Ve|0;Pa(Be,0|He.__str128,21,1);var Ke=Se[V]+21|0;Se[V]=Ke}var Ye=Se[pr+1];H(r,Ye);break r}if(15==(0|Ir)){var z=(r+8|0)>>2,Ge=Me[z];if((Ge+17|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str129,17);else{for(var We=Or+Ge|0,ie=0|He.__str129,ve=We,te=ie+17;ie>2,qe=Me[x];if((qe+26|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str130,26);else{var $e=Or+qe|0;Pa($e,0|He.__str130,26,1);var Je=Se[x]+26|0;Se[x]=Je}var ri=Se[pr+1];H(r,ri);break r}if(17==(0|Ir)){var U=(r+8|0)>>2,ai=Me[U];if((ai+15|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str131,15);else{for(var ei=Or+ai|0,ie=0|He.__str131,ve=ei,te=ie+15;ie>2,ti=Me[j];if((ti+19|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str132,19);else{for(var fi=Or+ti|0,ie=0|He.__str132,ve=fi,te=ie+19;ie>2,ni=Me[X];if((ni+24|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str133,24);else{var oi=Or+ni|0;Pa(oi,0|He.__str133,24,1);var li=Se[X]+24|0;Se[X]=li}var bi=Se[pr+1];H(r,bi);break r}if(20==(0|Ir)){var F=(r+8|0)>>2,ki=Me[F];if((ki+17|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str134,17);else{for(var ui=Or+ki|0,ie=0|He.__str134,ve=ui,te=ie+17;ie>2,di=Me[L],wi=a+8|0,pi=Me[wi>>2];if((pi+di|0)>>>0>Me[Er+3]>>>0){var Ei=Se[pr+1];Q(r,Ei,pi);break r}var Ai=Or+di|0,gi=Se[pr+1];Pa(Ai,gi,pi,1);var yi=Se[L]+Se[wi>>2]|0;Se[L]=yi;break r}if(22==(0|Ir)||23==(0|Ir)||24==(0|Ir)){for(var mi=r+20|0;;){var mi,Si=Me[mi>>2];if(0==(0|Si))break a;if(0==(0|Se[Si+8>>2])){var Mi=Me[Se[Si+4>>2]>>2];if((Mi-22|0)>>>0>=3)break a;if((0|Mi)==(0|Ir))break}var mi=0|Si}var Ci=Se[pr+1];H(r,Ci);break r}if(25!=(0|Ir)&&26!=(0|Ir)&&27!=(0|Ir)&&28!=(0|Ir)&&29!=(0|Ir)&&30!=(0|Ir)&&31!=(0|Ir)&&32!=(0|Ir)){if(33==(0|Ir)){var D=(r+8|0)>>2,Ri=Me[D],P=(a+4|0)>>2,I=Me[P]>>2;if(0==(4&Se[Er]|0)){var Ti=Me[I+1];if((Ti+Ri|0)>>>0>Me[Er+3]>>>0){var Oi=Se[I];Q(r,Oi,Ti);break r}var Ni=Or+Ri|0,Ii=Se[I];Pa(Ni,Ii,Ti,1);var Pi=Se[D]+Se[Se[P]+4>>2]|0;Se[D]=Pi;break r}var Di=Me[I+3];if((Di+Ri|0)>>>0>Me[Er+3]>>>0){var Li=Se[I+2];Q(r,Li,Di);break r}var Fi=Or+Ri|0,Xi=Se[I+2];Pa(Fi,Xi,Di,1);var ji=Se[D]+Se[Se[P]+12>>2]|0;Se[D]=ji;break r}if(34==(0|Ir)){var Ui=Se[pr+1];H(r,Ui);break r}if(35==(0|Ir)){var N=(0|r)>>2;if(0!=(32&Se[N]|0)){var xi=Se[Er+5];rr(r,a,xi)}var zi=a+4|0,Vi=0==(0|Se[zi>>2]);e:do if(!Vi){var O=(r+20|0)>>2,Bi=Se[O],Hi=0|Mr;Se[Hi>>2]=Bi,Se[O]=Mr,Se[Mr+4>>2]=a;var Ki=Mr+8|0;Se[Ki>>2]=0;var Yi=Se[Er+4];Se[Mr+12>>2]=Yi;var Gi=Se[zi>>2];H(r,Gi);var Wi=Se[Hi>>2];if(Se[O]=Wi,0!=(0|Se[Ki>>2]))break r;if(0!=(32&Se[N]|0))break;var Zi=Me[cr],Qi=0==(0|Zi);do if(!Qi){var qi=r+8|0,$i=Me[qi>>2];if($i>>>0>=Me[Er+3]>>>0)break;Se[qi>>2]=$i+1|0,Ae[Zi+$i|0]=32;break e}while(0);Y(r,32)}while(0);if(0!=(32&Se[N]|0))break r;var Ji=Se[Er+5];rr(r,a,Ji);break r}if(36==(0|Ir)){var T=(r+20|0)>>2,rv=Me[T],av=0|Cr;Se[hr]=rv,Se[T]=av,Se[hr+1]=a;var ev=Cr+8|0;Se[ev>>2]=0;var iv=Se[Er+4];Se[hr+3]=iv;for(var vv=rv,tv=1;;){var tv,vv;if(0==(0|vv))break;if((Se[Se[vv+4>>2]>>2]-22|0)>>>0>=3)break;var fv=vv+8|0;if(0==(0|Se[fv>>2])){if(tv>>>0>3){Z(r);break r}var _v=(tv<<4)+Cr|0,R=_v>>2,C=vv>>2;Se[R]=Se[C],Se[R+1]=Se[C+1],Se[R+2]=Se[C+2],Se[R+3]=Se[C+3];var sv=Se[T];Se[_v>>2]=sv,Se[T]=_v,Se[fv>>2]=1;var nv=tv+1|0}else var nv=tv;var nv,vv=Se[vv>>2],tv=nv}var ov=Se[pr+2];if(H(r,ov),Se[T]=rv,0!=(0|Se[ev>>2]))break r;if(tv>>>0>1){for(var lv=tv;;){var lv,bv=lv-1|0,kv=Se[((bv<<4)+4>>2)+hr];if($(r,kv),bv>>>0<=1)break;var lv=bv}var uv=Se[T]}else var uv=rv;var uv;ar(r,a,uv);break r}if(37==(0|Ir)){var M=(r+20|0)>>2,cv=Se[M],hv=0|Rr;Se[hv>>2]=cv,Se[M]=Rr,Se[Rr+4>>2]=a;var dv=Rr+8|0;Se[dv>>2]=0;var wv=Se[Er+4];Se[Rr+12>>2]=wv;var pv=a+4|0,Ev=Se[pr+2];H(r,Ev);var Av=0==(0|Se[dv>>2]);e:do if(Av){var gv=Me[cr],yv=0==(0|gv);do{if(!yv){var mv=r+8|0,Sv=Me[mv>>2];if(Sv>>>0>=Me[Er+3]>>>0){gr=187;break}Se[mv>>2]=Sv+1|0,Ae[gv+Sv|0]=32,gr=188;break}gr=187}while(0);187==gr&&Y(r,32);var Mv=Se[pv>>2];H(r,Mv);var Cv=Me[cr],Rv=0==(0|Cv);do if(!Rv){var S=(r+8|0)>>2,Tv=Me[S];if((Tv+3|0)>>>0>Me[Er+3]>>>0)break;var Ov=Cv+Tv|0;Ae[Ov]=Ae[0|He.__str135],Ae[Ov+1]=Ae[(0|He.__str135)+1],Ae[Ov+2]=Ae[(0|He.__str135)+2];var Nv=Se[S]+3|0;Se[S]=Nv;break e}while(0);Q(r,0|He.__str135,3)}while(0);var Iv=Se[hv>>2];Se[M]=Iv;break r}if(38==(0|Ir)||39==(0|Ir)){var Pv=Se[pr+1];H(r,Pv);var Dv=a+8|0;if(0==(0|Se[Dv>>2]))break r;var Lv=Me[cr],Fv=0==(0|Lv);do{if(!Fv){var m=(r+8|0)>>2,Xv=Me[m];if((Xv+2|0)>>>0>Me[Er+3]>>>0){gr=197;break}var jv=Lv+Xv|0;oe=8236,Ae[jv]=255&oe,oe>>=8,Ae[jv+1]=255&oe;var Uv=Se[m]+2|0;Se[m]=Uv,gr=198;break}gr=197}while(0);197==gr&&Q(r,0|He.__str136,2);var xv=Se[Dv>>2];H(r,xv);break r}if(40==(0|Ir)){var y=(r+8|0)>>2,zv=Me[y],g=(r+12|0)>>2;if((zv+8|0)>>>0>Me[g]>>>0)Q(r,0|He.__str137,8);else{var Vv=Or+zv|0,le=0|Vv;oe=1919250543,Ae[le]=255&oe,oe>>=8,Ae[le+1]=255&oe,oe>>=8,Ae[le+2]=255&oe,oe>>=8,Ae[le+3]=255&oe;var be=Vv+4|0;oe=1919906913,Ae[be]=255&oe,oe>>=8,Ae[be+1]=255&oe,oe>>=8,Ae[be+2]=255&oe,oe>>=8,Ae[be+3]=255&oe;var Bv=Se[y]+8|0;Se[y]=Bv}var A=(a+4|0)>>2,Hv=(Ae[Se[Se[A]+4>>2]]-97&255&255)<26;e:do if(Hv){var Kv=Me[cr],Yv=0==(0|Kv);do if(!Yv){var Gv=Me[y];if(Gv>>>0>=Me[g]>>>0)break;Se[y]=Gv+1|0,Ae[Kv+Gv|0]=32;break e}while(0);Y(r,32)}while(0);var Wv=Me[cr],Zv=0==(0|Wv);do{if(!Zv){var Qv=Me[y],qv=Me[A],$v=Me[qv+8>>2];if(($v+Qv|0)>>>0>Me[g]>>>0){var Jv=qv,rt=$v;break}var at=Wv+Qv|0,et=Se[qv+4>>2];Pa(at,et,$v,1);var it=Se[y]+Se[Se[A]+8>>2]|0;Se[y]=it;break r}var vt=Me[A],Jv=vt,rt=Se[vt+8>>2]}while(0);var rt,Jv,tt=Se[Jv+4>>2];Q(r,tt,rt);break r}if(41==(0|Ir)){var E=(r+8|0)>>2,ft=Me[E];if((ft+9|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str10180,9);else{for(var _t=Or+ft|0,ie=0|He.__str10180,ve=_t,te=ie+9;ie>2,ot=Me[p];if((ot+9|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str10180,9);else{for(var lt=Or+ot|0,ie=0|He.__str10180,ve=lt,te=ie+9;ie>2],ct=42==(0|Se[ut>>2]);e:do if(ct){var w=(r+8|0)>>2,ht=Me[w],dt=r+12|0;ht>>>0>2]>>>0?(Se[w]=ht+1|0,Ae[Or+ht|0]=40):Y(r,40);var wt=Se[kt>>2];er(r,wt);var pt=Me[cr],Et=0==(0|pt);do if(!Et){var At=Me[w];if(At>>>0>=Me[dt>>2]>>>0)break;Se[w]=At+1|0,Ae[pt+At|0]=41;break e}while(0);Y(r,41)}else ir(r,ut);while(0);var gt=Me[cr],yt=0==(0|gt);do{if(!yt){var mt=r+8|0,St=Me[mt>>2];if(St>>>0>=Me[Er+3]>>>0){gr=232;break}Se[mt>>2]=St+1|0,Ae[gt+St|0]=40,gr=233;break}gr=232}while(0);232==gr&&Y(r,40);var Mt=Se[pr+2];H(r,Mt);var Ct=Me[cr],Rt=0==(0|Ct);do if(!Rt){var Tt=r+8|0,Ot=Me[Tt>>2];if(Ot>>>0>=Me[Er+3]>>>0)break;Se[Tt>>2]=Ot+1|0,Ae[Ct+Ot|0]=41;break r}while(0);Y(r,41);break r}if(44==(0|Ir)){var d=(a+8|0)>>2;if(45==(0|Se[Se[d]>>2])){var h=(a+4|0)>>2,Nt=Se[h],It=40==(0|Se[Nt>>2]);do if(It){var Pt=Se[Nt+4>>2];if(1!=(0|Se[Pt+8>>2]))break;if(Ae[Se[Pt+4>>2]]<<24>>24!=62)break;var Dt=r+8|0,Lt=Me[Dt>>2];Lt>>>0>>0?(Se[Dt>>2]=Lt+1|0,Ae[Or+Lt|0]=40):Y(r,40)}while(0);var Ft=Me[cr],Xt=0==(0|Ft);do{if(!Xt){var jt=r+8|0,Ut=Me[jt>>2];if(Ut>>>0>=Me[Er+3]>>>0){gr=248;break}Se[jt>>2]=Ut+1|0,Ae[Ft+Ut|0]=40,gr=249;break}gr=248}while(0);248==gr&&Y(r,40);var xt=Se[Se[d]+4>>2];H(r,xt);var zt=Me[cr],Vt=0==(0|zt);do{if(!Vt){var c=(r+8|0)>>2,Bt=Me[c];if((Bt+2|0)>>>0>Me[Er+3]>>>0){gr=252;break}var Ht=zt+Bt|0;oe=8233,Ae[Ht]=255&oe,oe>>=8,Ae[Ht+1]=255&oe;var Kt=Se[c]+2|0;Se[c]=Kt,gr=253;break}gr=252}while(0);252==gr&&Q(r,0|He.__str139,2);var Yt=Se[h];ir(r,Yt);var Gt=Me[cr],Wt=0==(0|Gt);do{if(!Wt){var u=(r+8|0)>>2,Zt=Me[u];if((Zt+2|0)>>>0>Me[Er+3]>>>0){gr=256;break}var Qt=Gt+Zt|0;oe=10272,Ae[Qt]=255&oe,oe>>=8,Ae[Qt+1]=255&oe;var qt=Se[u]+2|0;Se[u]=qt,gr=257;break}gr=256}while(0);256==gr&&Q(r,0|He.__str140,2);var $t=Se[Se[d]+8>>2];H(r,$t);var Jt=Me[cr],rf=0==(0|Jt);do{if(!rf){var af=r+8|0,ef=Me[af>>2];if(ef>>>0>=Me[Er+3]>>>0){gr=260;break}Se[af>>2]=ef+1|0,Ae[Jt+ef|0]=41,gr=261;break}gr=260}while(0);260==gr&&Y(r,41);var vf=Se[h];if(40!=(0|Se[vf>>2]))break r;var tf=Se[vf+4>>2];if(1!=(0|Se[tf+8>>2]))break r;if(Ae[Se[tf+4>>2]]<<24>>24!=62)break r;var ff=Me[cr],_f=0==(0|ff);do if(!_f){var sf=r+8|0,nf=Me[sf>>2];if(nf>>>0>=Me[Er+3]>>>0)break;Se[sf>>2]=nf+1|0,Ae[ff+nf|0]=41;break r}while(0);Y(r,41);break r}Z(r);break r}if(45==(0|Ir)){Z(r);break r}if(46==(0|Ir)){var of=a+4|0,k=(a+8|0)>>2,lf=Se[k],bf=47==(0|Se[lf>>2]);do if(bf){if(48!=(0|Se[Se[lf+8>>2]>>2]))break;var b=(r+8|0)>>2,kf=Me[b],l=(r+12|0)>>2;kf>>>0>>0?(Se[b]=kf+1|0,Ae[Or+kf|0]=40):Y(r,40);var uf=Se[Se[k]+4>>2];H(r,uf);var cf=Me[cr],hf=0==(0|cf);do{if(!hf){var df=Me[b];if((df+2|0)>>>0>Me[l]>>>0){gr=278;break}var wf=cf+df|0;oe=8233,Ae[wf]=255&oe,oe>>=8,Ae[wf+1]=255&oe;var pf=Se[b]+2|0;Se[b]=pf,gr=279;break}gr=278}while(0);278==gr&&Q(r,0|He.__str139,2);var Ef=Se[of>>2];ir(r,Ef);var Af=Me[cr],gf=0==(0|Af);do{if(!gf){var yf=Me[b];if((yf+2|0)>>>0>Me[l]>>>0){gr=282;break}var mf=Af+yf|0;oe=10272,Ae[mf]=255&oe,oe>>=8,Ae[mf+1]=255&oe;var Sf=Se[b]+2|0;Se[b]=Sf,gr=283;break}gr=282}while(0);282==gr&&Q(r,0|He.__str140,2);var Mf=Se[Se[Se[k]+8>>2]+4>>2];H(r,Mf);var Cf=Me[cr],Rf=0==(0|Cf);do{if(!Rf){var Tf=Me[b];if((Tf+5|0)>>>0>Me[l]>>>0){gr=286;break}var Of=Cf+Tf|0;Ae[Of]=Ae[0|He.__str141],Ae[Of+1]=Ae[(0|He.__str141)+1],Ae[Of+2]=Ae[(0|He.__str141)+2],Ae[Of+3]=Ae[(0|He.__str141)+3],Ae[Of+4]=Ae[(0|He.__str141)+4];var Nf=Se[b]+5|0;Se[b]=Nf,gr=287;break}gr=286}while(0);286==gr&&Q(r,0|He.__str141,5);var If=Se[Se[Se[k]+8>>2]+8>>2];H(r,If);var Pf=Me[cr],Df=0==(0|Pf);do if(!Df){var Lf=Me[b];if(Lf>>>0>=Me[l]>>>0)break;Se[b]=Lf+1|0,Ae[Pf+Lf|0]=41;break r}while(0);Y(r,41);break r}while(0);Z(r);break r}if(47==(0|Ir)||48==(0|Ir)){Z(r);break r}if(49==(0|Ir)||50==(0|Ir)){var Ff=a+4|0,Xf=Se[Ff>>2],jf=33==(0|Se[Xf>>2]);do{if(jf){var Uf=Me[Se[Xf+4>>2]+16>>2];if(1==(0|Uf)||2==(0|Uf)||3==(0|Uf)||4==(0|Uf)||5==(0|Uf)||6==(0|Uf)){var xf=a+8|0;if(0!=(0|Se[Se[xf>>2]>>2])){var zf=Uf;break}if(50==(0|Ir)){var Vf=r+8|0,Bf=Me[Vf>>2];Bf>>>0>>0?(Se[Vf>>2]=Bf+1|0,Ae[Or+Bf|0]=45):Y(r,45)}var Hf=Se[xf>>2];if(H(r,Hf),2==(0|Uf)){var Kf=Me[cr],Yf=0==(0|Kf);do if(!Yf){var Gf=r+8|0,Wf=Me[Gf>>2];if(Wf>>>0>=Me[Er+3]>>>0)break;Se[Gf>>2]=Wf+1|0,Ae[Kf+Wf|0]=117;break r}while(0);Y(r,117);break r}if(3==(0|Uf)){var Zf=Me[cr],Qf=0==(0|Zf);do if(!Qf){var qf=r+8|0,$f=Me[qf>>2];if($f>>>0>=Me[Er+3]>>>0)break;Se[qf>>2]=$f+1|0,Ae[Zf+$f|0]=108;break r}while(0);Y(r,108);break r}if(4==(0|Uf)){var Jf=Me[cr],r_=0==(0|Jf);do if(!r_){var o=(r+8|0)>>2,a_=Me[o];if((a_+2|0)>>>0>Me[Er+3]>>>0)break;var e_=Jf+a_|0;oe=27765,Ae[e_]=255&oe,oe>>=8,Ae[e_+1]=255&oe;var i_=Se[o]+2|0;Se[o]=i_;break r}while(0);Q(r,0|He.__str142,2);break r}if(5==(0|Uf)){var v_=Me[cr],t_=0==(0|v_);do if(!t_){var n=(r+8|0)>>2,f_=Me[n];if((f_+2|0)>>>0>Me[Er+3]>>>0)break;var __=v_+f_|0;oe=27756,Ae[__]=255&oe,oe>>=8,Ae[__+1]=255&oe;var s_=Se[n]+2|0;Se[n]=s_;break r}while(0);Q(r,0|He.__str143,2);break r}if(6==(0|Uf)){var n_=Me[cr],o_=0==(0|n_);do if(!o_){var s=(r+8|0)>>2,l_=Me[s];if((l_+3|0)>>>0>Me[Er+3]>>>0)break;var b_=n_+l_|0;Ae[b_]=Ae[0|He.__str144],Ae[b_+1]=Ae[(0|He.__str144)+1],Ae[b_+2]=Ae[(0|He.__str144)+2];var k_=Se[s]+3|0;Se[s]=k_;break r}while(0);Q(r,0|He.__str144,3);break r}break r}if(7==(0|Uf)){var _=Se[pr+2]>>2;if(0!=(0|Se[_])){var zf=7;break}if(!(1==(0|Se[_+2])&49==(0|Ir))){var zf=Uf;break}var u_=Ae[Se[_+1]]<<24>>24;if(48==(0|u_)){var f=(r+8|0)>>2,c_=Me[f];if((c_+5|0)>>>0>Me[Er+3]>>>0){Q(r,0|He.__str145,5);break r}var h_=Or+c_|0;Ae[h_]=Ae[0|He.__str145],Ae[h_+1]=Ae[(0|He.__str145)+1],Ae[h_+2]=Ae[(0|He.__str145)+2],Ae[h_+3]=Ae[(0|He.__str145)+3],Ae[h_+4]=Ae[(0|He.__str145)+4];var d_=Se[f]+5|0;Se[f]=d_;break r}if(49==(0|u_)){var t=(r+8|0)>>2,w_=Me[t];if((w_+4|0)>>>0>Me[Er+3]>>>0){Q(r,0|He.__str146,4);break r}var p_=Or+w_|0;oe=1702195828,Ae[p_]=255&oe,oe>>=8,Ae[p_+1]=255&oe,oe>>=8,Ae[p_+2]=255&oe,oe>>=8,Ae[p_+3]=255&oe;var E_=Se[t]+4|0;Se[t]=E_;break r}var zf=Uf;break}var zf=Uf;break}var zf=0}while(0);var zf,v=(r+8|0)>>2,A_=Me[v],i=(r+12|0)>>2;A_>>>0>>0?(Se[v]=A_+1|0,Ae[Or+A_|0]=40):Y(r,40);var g_=Se[Ff>>2];H(r,g_);var y_=Me[cr],m_=0==(0|y_);do{if(!m_){var S_=Me[v];if(S_>>>0>=Me[i]>>>0){gr=335;break}Se[v]=S_+1|0,Ae[y_+S_|0]=41,gr=336;break}gr=335}while(0);335==gr&&Y(r,41);var M_=50==(0|Se[Nr>>2]);e:do if(M_){var C_=Me[cr],R_=0==(0|C_);do if(!R_){var T_=Me[v];if(T_>>>0>=Me[i]>>>0)break;Se[v]=T_+1|0,Ae[C_+T_|0]=45;break e}while(0);Y(r,45)}while(0);if(8==(0|zf)){var O_=Me[cr],N_=0==(0|O_);do{if(!N_){var I_=Me[v];if(I_>>>0>=Me[i]>>>0){gr=345;break}Se[v]=I_+1|0,Ae[O_+I_|0]=91,gr=346;break}gr=345}while(0);345==gr&&Y(r,91);var P_=Se[pr+2];H(r,P_);var D_=Me[cr],L_=0==(0|D_);do if(!L_){var F_=Me[v];if(F_>>>0>=Me[i]>>>0)break;Se[v]=F_+1|0,Ae[D_+F_|0]=93;break r}while(0);Y(r,93);break r}var X_=Se[pr+2];H(r,X_);break r}Z(r);break r}}while(0);var e=(r+20|0)>>2,j_=Se[e],U_=0|Sr;Se[U_>>2]=j_,Se[e]=Sr,Se[Sr+4>>2]=a;var x_=Sr+8|0;Se[x_>>2]=0;var z_=Se[Er+4];Se[Sr+12>>2]=z_;var V_=Se[pr+1];H(r,V_),0==(0|Se[x_>>2])&&$(r,a);var B_=Se[U_>>2];Se[e]=B_}while(0);Oe=Ar}function K(r,a,e,i){var v=i>>2;Se[v]=r,Se[v+1]=r+e|0,Se[v+2]=a,Se[v+3]=r,Se[v+6]=e<<1,Se[v+5]=0,Se[v+9]=e,Se[v+8]=0,Se[v+10]=0,Se[v+11]=0,Se[v+12]=0}function Y(r,a){var e,i=r+4|0,v=Me[i>>2],t=0==(0|v);do if(!t){var e=(r+8|0)>>2,f=Me[e];if(f>>>0>2]>>>0)var _=v,s=f;else{tr(r,1);var n=Me[i>>2];if(0==(0|n))break;var _=n,s=Se[e]}var s,_;Ae[_+s|0]=255&a;var o=Se[e]+1|0;Se[e]=o}while(0)}function G(r,a,e,i){var v,t=i>>2,f=Oe;Oe+=4;var _=f,v=_>>2,s=0==(0|r);do if(s){if(0==(0|i)){var n=0;break}Se[t]=-3;var n=0}else{var o=0==(0|e);if(0!=(0|a)&o){if(0==(0|i)){var n=0;break}Se[t]=-3;var n=0}else{var l=W(r,_);if(0==(0|l)){if(0==(0|i)){var n=0;break}if(1==(0|Se[v])){Se[t]=-1;var n=0}else{Se[t]=-2;var n=0}}else{var b=0==(0|a);do if(b){if(o){var k=l;break}var u=Se[v];Se[e>>2]=u;var k=l}else{var c=Ca(l);if(c>>>0>2]>>>0){Ra(a,l);va(l);var k=a}else{va(a);var h=Se[v];Se[e>>2]=h;var k=l}}while(0);var k;if(0==(0|i)){var n=k;break}Se[t]=0;var n=k}}}while(0);var n;return Oe=f,n}function W(r,a){var e,i=Oe;Oe+=52;var v,t=i,e=t>>2;Se[a>>2]=0;var f=Ca(r),_=Ae[r]<<24>>24==95;do{if(_){if(Ae[r+1|0]<<24>>24==90){var s=0;v=13;break}v=3;break}v=3}while(0);do if(3==v){var n=Na(r,0|He.__str117,8);if(0!=(0|n)){var s=1;v=13;break}var o=Ae[r+8|0];if(o<<24>>24!=46&&o<<24>>24!=95&&o<<24>>24!=36){var s=1;v=13;break}var l=r+9|0,b=Ae[l];if(b<<24>>24!=68&&b<<24>>24!=73){\nvar s=1;v=13;break}if(Ae[r+10|0]<<24>>24!=95){var s=1;v=13;break}var k=f+29|0,u=Jr(k);if(0==(0|u)){Se[a>>2]=1;var c=0;v=19;break}Ae[l]<<24>>24==73?Pa(u,0|He.__str118,30,1):Pa(u,0|He.__str119,29,1);var h=r+11|0,c=(Ia(u,h),u);v=19;break}while(0);if(13==v){var s;K(r,17,f,t);var d=Se[e+6],w=Ta(),p=Oe;Oe+=12*d,Oe=Oe+3>>2<<2;var E=Oe;if(Oe+=4*Se[e+9],Oe=Oe+3>>2<<2,Se[e+4]=p,Se[e+7]=E,s)var A=N(t),g=A;else var y=T(t,1),g=y;var g,m=Ae[Se[e+3]]<<24>>24==0?g:0,S=Se[e+12]+f+10*Se[e+10]|0;if(0==(0|m))var M=0;else var C=S/8+S|0,R=B(17,m,C,a),M=R;var M;Oa(w);var c=M}var c;return Oe=i,c}function Z(r){var a=r+4|0,e=Se[a>>2];va(e),Se[a>>2]=0}function Q(r,a,e){var i,v=r+4|0,t=Me[v>>2],f=0==(0|t);do if(!f){var i=(r+8|0)>>2,_=Me[i];if((_+e|0)>>>0>Me[r+12>>2]>>>0){tr(r,e);var s=Me[v>>2];if(0==(0|s))break;var n=s,o=Se[i]}else var n=t,o=_;var o,n;Pa(n+o|0,a,e,1);var l=Se[i]+e|0;Se[i]=l}while(0)}function q(r,a,e){var i,v,t=a+e|0,f=(0|e)>0;r:do if(f)for(var _=t,s=r+4|0,i=(r+8|0)>>2,n=r+12|0,o=a;;){var o,l=(_-o|0)>3;a:do{if(l){if(Ae[o]<<24>>24!=95){v=21;break}if(Ae[o+1|0]<<24>>24!=95){v=21;break}if(Ae[o+2|0]<<24>>24!=85){v=21;break}for(var b=o+3|0,k=0;;){var k,b;if(b>>>0>=t>>>0){v=21;break a}var u=ge[b],c=u<<24>>24;if((u-48&255&255)<10)var h=c-48|0;else if((u-65&255&255)<6)var h=c-55|0;else{if((u-97&255&255)>=6)break;var h=c-87|0}var h,b=b+1|0,k=(k<<4)+h|0}if(!(u<<24>>24==95&k>>>0<256)){v=21;break}var d=Me[s>>2],w=0==(0|d);do if(!w){var p=Me[i];if(p>>>0>=Me[n>>2]>>>0)break;Se[i]=p+1|0,Ae[d+p|0]=255&k;var E=b;v=25;break a}while(0);Y(r,k);var E=b;v=25;break}v=21}while(0);a:do if(21==v){var A=Me[s>>2],g=0==(0|A);do if(!g){var y=Me[i];if(y>>>0>=Me[n>>2]>>>0)break;var m=Ae[o];Se[i]=y+1|0,Ae[A+y|0]=m;var E=o;break a}while(0);var S=Ae[o]<<24>>24;Y(r,S);var E=o}while(0);var E,M=E+1|0;if(M>>>0>=t>>>0)break r;var o=M}while(0)}function $(r,a){var e,i,v,t,f,_,s,n=r>>2,o=Se[a>>2];r:do if(22==(0|o)||25==(0|o)){var l=Me[n+1],b=0==(0|l);do if(!b){var _=(r+8|0)>>2,k=Me[_];if((k+9|0)>>>0>Me[n+3]>>>0)break;for(var u=l+k|0,c=0|He.__str147,h=u,d=c+9;c>2,A=Me[f];if((A+9|0)>>>0>Me[n+3]>>>0)break;for(var g=p+A|0,c=0|He.__str148,h=g,d=c+9;c>2,M=Me[t];if((M+6|0)>>>0>Me[n+3]>>>0)break;var C=m+M|0;Ae[C]=Ae[0|He.__str149],Ae[C+1]=Ae[(0|He.__str149)+1],Ae[C+2]=Ae[(0|He.__str149)+2],Ae[C+3]=Ae[(0|He.__str149)+3],Ae[C+4]=Ae[(0|He.__str149)+4],Ae[C+5]=Ae[(0|He.__str149)+5];var R=Se[t]+6|0;Se[t]=R;break r}while(0);Q(r,0|He.__str149,6)}else if(28==(0|o)){var T=Me[n+1],O=0==(0|T);do{if(!O){var N=r+8|0,I=Me[N>>2];if(I>>>0>=Me[n+3]>>>0){s=17;break}Se[N>>2]=I+1|0,Ae[T+I|0]=32,s=18;break}s=17}while(0);17==s&&Y(r,32);var P=Se[a+8>>2];H(r,P)}else if(29==(0|o)){if(0!=(4&Se[n]|0))break;var D=Me[n+1],L=0==(0|D);do if(!L){var F=r+8|0,X=Me[F>>2];if(X>>>0>=Me[n+3]>>>0)break;Se[F>>2]=X+1|0,Ae[D+X|0]=42;break r}while(0);Y(r,42)}else if(30==(0|o)){var j=Me[n+1],U=0==(0|j);do if(!U){var x=r+8|0,z=Me[x>>2];if(z>>>0>=Me[n+3]>>>0)break;Se[x>>2]=z+1|0,Ae[j+z|0]=38;break r}while(0);Y(r,38)}else if(31==(0|o)){var V=Me[n+1],B=0==(0|V);do if(!B){var v=(r+8|0)>>2,K=Me[v];if((K+8|0)>>>0>Me[n+3]>>>0)break;var G=V+K|0,W=0|G;oe=1886220131,Ae[W]=255&oe,oe>>=8,Ae[W+1]=255&oe,oe>>=8,Ae[W+2]=255&oe,oe>>=8,Ae[W+3]=255&oe;var Z=G+4|0;oe=544761196,Ae[Z]=255&oe,oe>>=8,Ae[Z+1]=255&oe,oe>>=8,Ae[Z+2]=255&oe,oe>>=8,Ae[Z+3]=255&oe;var q=Se[v]+8|0;Se[v]=q;break r}while(0);Q(r,0|He.__str150,8)}else if(32==(0|o)){var $=Me[n+1],J=0==(0|$);do if(!J){var i=(r+8|0)>>2,rr=Me[i];if((rr+10|0)>>>0>Me[n+3]>>>0)break;for(var ar=$+rr|0,c=0|He.__str151,h=ar,d=c+10;c>2],tr=0==(0|vr);do{if(!tr){var fr=r+8|0,_r=Me[fr>>2];if(0!=(0|_r)&&Ae[vr+(_r-1)|0]<<24>>24==40){s=42;break}if(_r>>>0>=Me[n+3]>>>0){s=41;break}Se[fr>>2]=_r+1|0,Ae[vr+_r|0]=32,s=42;break}s=41}while(0);41==s&&Y(r,32);var sr=Se[a+4>>2];H(r,sr);var nr=Me[ir>>2],or=0==(0|nr);do if(!or){var e=(r+8|0)>>2,lr=Me[e];if((lr+3|0)>>>0>Me[n+3]>>>0)break;var br=nr+lr|0;Ae[br]=Ae[0|He.__str135],Ae[br+1]=Ae[(0|He.__str135)+1],Ae[br+2]=Ae[(0|He.__str135)+2];var kr=Se[e]+3|0;Se[e]=kr;break r}while(0);Q(r,0|He.__str135,3)}else if(3==(0|o)){var ur=Se[a+4>>2];H(r,ur)}else H(r,a);while(0)}function J(r){var a=r+20|0,e=Se[a>>2];if((0|e)<(0|Se[r+24>>2])){var i=Se[r+16>>2]+12*e|0,v=e+1|0;Se[a>>2]=v;var t=i}else var t=0;var t;return t}function rr(r,a,e){var i,v,t,f,_=r>>2,s=e,t=s>>2,n=0;r:for(;;){var n,s,o=0==(0|s);do if(!o){if(0!=(0|Se[t+2]))break;var l=Se[Se[t+1]>>2];if(29==(0|l)||30==(0|l)){f=9;break r}if(22==(0|l)||23==(0|l)||24==(0|l)||28==(0|l)||31==(0|l)||32==(0|l)||37==(0|l)){var b=Se[_+1];f=12;break r}var s=Se[t],t=s>>2,n=1;continue r}while(0);if(0!=(0|Se[a+4>>2])&0==(0|n)){f=9;break}var k=0,u=r+4|0,v=u>>2;f=22;break}do if(9==f){var c=Se[_+1];if(0==(0|c)){f=17;break}var h=Se[_+2];if(0==(0|h)){var d=c;f=13;break}var w=Ae[c+(h-1)|0];if(w<<24>>24==40||w<<24>>24==42){f=18;break}var b=c;f=12;break}while(0);do if(12==f){var b;if(0==(0|b)){f=17;break}var d=b;f=13;break}while(0);do if(13==f){var d,p=r+8|0,E=Me[p>>2];if(0!=(0|E)&&Ae[d+(E-1)|0]<<24>>24==32){f=18;break}if(E>>>0>=Me[_+3]>>>0){f=17;break}Se[p>>2]=E+1|0,Ae[d+E|0]=32,f=18;break}while(0);do if(17==f){Y(r,32),f=18;break}while(0);r:do if(18==f){var A=r+4|0,g=Me[A>>2],y=0==(0|g);do if(!y){var m=r+8|0,S=Me[m>>2];if(S>>>0>=Me[_+3]>>>0)break;Se[m>>2]=S+1|0,Ae[g+S|0]=40;var k=1,u=A,v=u>>2;break r}while(0);Y(r,40);var k=1,u=A,v=u>>2}while(0);var u,k,i=(r+20|0)>>2,M=Se[i];Se[i]=0,vr(r,e,0);r:do if(k){var C=Me[v],R=0==(0|C);do if(!R){var T=r+8|0,O=Me[T>>2];if(O>>>0>=Me[_+3]>>>0)break;Se[T>>2]=O+1|0,Ae[C+O|0]=41;break r}while(0);Y(r,41)}while(0);var N=Me[v],I=0==(0|N);do{if(!I){var P=r+8|0,D=Me[P>>2];if(D>>>0>=Me[_+3]>>>0){f=30;break}Se[P>>2]=D+1|0,Ae[N+D|0]=40,f=31;break}f=30}while(0);30==f&&Y(r,40);var L=Se[a+8>>2];0!=(0|L)&&H(r,L);var F=Me[v],X=0==(0|F);do{if(!X){var j=r+8|0,U=Me[j>>2];if(U>>>0>=Me[_+3]>>>0){f=36;break}Se[j>>2]=U+1|0,Ae[F+U|0]=41,f=37;break}f=36}while(0);36==f&&Y(r,41),vr(r,e,1),Se[i]=M}function ar(r,a,e){var i,v,t,f=r>>2,_=0==(0|e);do{if(!_){var s=e,v=s>>2;r:for(;;){var s;if(0==(0|s)){var n=1;t=14;break}if(0==(0|Se[v+2])){var o=36==(0|Se[Se[v+1]>>2]),l=1&o^1;if(o){var n=l;t=14;break}var b=r+4|0,k=Me[b>>2],u=0==(0|k);do{if(!u){var i=(r+8|0)>>2,c=Me[i];if((c+2|0)>>>0>Me[f+3]>>>0){t=9;break}var h=k+c|0;oe=10272,Ae[h]=255&oe,oe>>=8,Ae[h+1]=255&oe;var d=Se[i]+2|0;Se[i]=d,vr(r,e,0),t=10;break}t=9}while(0);9==t&&(Q(r,0|He.__str140,2),vr(r,e,0));var w=Me[b>>2],p=0==(0|w);do if(!p){var E=r+8|0,A=Me[E>>2];if(A>>>0>=Me[f+3]>>>0)break;Se[E>>2]=A+1|0,Ae[w+A|0]=41;var g=l;t=15;break r}while(0);Y(r,41);var g=l;t=15;break}var s=Se[v],v=s>>2}if(14==t){var n;vr(r,e,0);var g=n}var g;if(0!=(0|g)){t=17;break}var y=r+4|0;t=21;break}t=17}while(0);r:do if(17==t){var m=r+4|0,S=Me[m>>2],M=0==(0|S);do if(!M){var C=r+8|0,R=Me[C>>2];if(R>>>0>=Me[f+3]>>>0)break;Se[C>>2]=R+1|0,Ae[S+R|0]=32;var y=m;break r}while(0);Y(r,32);var y=m}while(0);var y,T=Me[y>>2],O=0==(0|T);do{if(!O){var N=r+8|0,I=Me[N>>2];if(I>>>0>=Me[f+3]>>>0){t=24;break}Se[N>>2]=I+1|0,Ae[T+I|0]=91,t=25;break}t=24}while(0);24==t&&Y(r,91);var P=Se[a+4>>2];0!=(0|P)&&H(r,P);var D=Me[y>>2],L=0==(0|D);do{if(!L){var F=r+8|0,X=Me[F>>2];if(X>>>0>=Me[f+3]>>>0){t=30;break}Se[F>>2]=X+1|0,Ae[D+X|0]=93,t=31;break}t=30}while(0);30==t&&Y(r,93)}function er(r,a){var e,i,v,t,f,_,s=Oe;Oe+=8;var n,o=s,_=(a+4|0)>>2,l=Se[_];if(4==(0|Se[l>>2])){var f=(r+20|0)>>2,b=Se[f];Se[f]=0;var t=(r+16|0)>>2,k=Se[t],u=0|o;Se[u>>2]=k,Se[t]=o;var c=Se[_];Se[o+4>>2]=c;var h=Se[c+4>>2];H(r,h);var d=Se[u>>2];Se[t]=d;var v=(r+4|0)>>2,w=Me[v],p=0==(0|w);do{if(!p){var i=(r+8|0)>>2,E=Me[i],A=0==(0|E);do if(!A){if(Ae[w+(E-1)|0]<<24>>24!=60)break;E>>>0>2]>>>0?(Se[i]=E+1|0,Ae[w+E|0]=32):Y(r,32)}while(0);var g=Me[v];if(0==(0|g)){n=12;break}var y=Me[i];if(y>>>0>=Me[r+12>>2]>>>0){n=12;break}Se[i]=y+1|0,Ae[g+y|0]=60,n=13;break}n=12}while(0);12==n&&Y(r,60);var m=Se[Se[_]+8>>2];H(r,m);var S=Me[v],M=0==(0|S);do{if(!M){var e=(r+8|0)>>2,C=Me[e],R=0==(0|C);do if(!R){if(Ae[S+(C-1)|0]<<24>>24!=62)break;C>>>0>2]>>>0?(Se[e]=C+1|0,Ae[S+C|0]=32):Y(r,32)}while(0);var T=Me[v];if(0==(0|T)){n=22;break}var O=Me[e];if(O>>>0>=Me[r+12>>2]>>>0){n=22;break}Se[e]=O+1|0,Ae[T+O|0]=62,n=23;break}n=22}while(0);22==n&&Y(r,62),Se[f]=b}else H(r,l);Oe=s}function ir(r,a){var e,i=40==(0|Se[a>>2]);r:do if(i){var v=Me[r+4>>2],t=0==(0|v);do{if(!t){var e=(r+8|0)>>2,f=Me[e],_=a+4|0,s=Me[_>>2],n=Me[s+8>>2];if((n+f|0)>>>0>Me[r+12>>2]>>>0){var o=s,l=n;break}var b=v+f|0,k=Se[s+4>>2];Pa(b,k,n,1);var u=Se[e]+Se[Se[_>>2]+8>>2]|0;Se[e]=u;break r}var c=Me[a+4>>2],o=c,l=Se[c+8>>2]}while(0);var l,o,h=Se[o+4>>2];Q(r,h,l)}else H(r,a);while(0)}function vr(r,a,e){var i,v,t,f,_,f=(r+4|0)>>2,s=0==(0|e),t=(r+16|0)>>2;r:do if(s)for(var n=a;;){var n;if(0==(0|n)){_=29;break r}if(0==(0|Se[f])){_=29;break r}var o=n+8|0,l=0==(0|Se[o>>2]);do if(l){var b=n+4|0;if((Se[Se[b>>2]>>2]-25|0)>>>0<3)break;Se[o>>2]=1;var k=Me[t],u=Se[n+12>>2];Se[t]=u;var c=Me[b>>2],h=Se[c>>2];if(35==(0|h)){var d=n,w=k,p=c;_=14;break r}if(36==(0|h)){var E=n,A=k,g=c;_=15;break r}if(2==(0|h)){var y=k,m=b;_=16;break r}$(r,c),Se[t]=k}while(0);var n=Se[n>>2]}else for(var S=a;;){var S;if(0==(0|S)){_=29;break r}if(0==(0|Se[f])){_=29;break r}var M=S+8|0;if(0==(0|Se[M>>2])){Se[M>>2]=1;var C=Me[t],R=Se[S+12>>2];Se[t]=R;var T=S+4|0,O=Me[T>>2],N=Se[O>>2];if(35==(0|N)){var d=S,w=C,p=O;_=14;break r}if(36==(0|N)){var E=S,A=C,g=O;_=15;break r}if(2==(0|N)){var y=C,m=T;_=16;break r}$(r,O),Se[t]=C}var S=Se[S>>2]}while(0);if(14==_){var p,w,d,I=Se[d>>2];rr(r,p,I),Se[t]=w}else if(15==_){var g,A,E,P=Se[E>>2];ar(r,g,P),Se[t]=A}else if(16==_){var m,y,v=(r+20|0)>>2,D=Se[v];Se[v]=0;var L=Se[Se[m>>2]+4>>2];H(r,L),Se[v]=D;var F=0==(4&Se[r>>2]|0),X=Me[f],j=0!=(0|X);r:do if(F){do if(j){var i=(r+8|0)>>2,U=Me[i];if((U+2|0)>>>0>Me[r+12>>2]>>>0)break;var x=X+U|0;oe=14906,Ae[x]=255&oe,oe>>=8,Ae[x+1]=255&oe;var z=Se[i]+2|0;Se[i]=z;break r}while(0);Q(r,0|He.__str120,2)}else{do if(j){var V=r+8|0,B=Me[V>>2];if(B>>>0>=Me[r+12>>2]>>>0)break;Se[V>>2]=B+1|0,Ae[X+B|0]=46;break r}while(0);Y(r,46)}while(0);var K=Me[Se[m>>2]+8>>2],G=(Se[K>>2]-25|0)>>>0<3;r:do if(G)for(var W=K;;){var W,Z=Me[W+4>>2];if((Se[Z>>2]-25|0)>>>0>=3){var q=Z;break r}var W=Z}else var q=K;while(0);var q;H(r,q),Se[t]=y}}function tr(r,a){var e,e=(r+4|0)>>2,i=Se[e],v=0==(0|i);r:do if(!v){for(var t=Se[r+8>>2]+a|0,f=r+12|0,_=Se[f>>2],s=i;;){var s,_;if(t>>>0<=_>>>0)break r;var n=_<<1,o=fa(s,n);if(0==(0|o))break;Se[e]=o,Se[f>>2]=n;var _=n,s=o}var l=Se[e];va(l),Se[e]=0,Se[r+24>>2]=1}while(0)}function fr(r,a,e){var i,v=J(r),i=v>>2;return 0!=(0|v)&&(Se[i]=21,Se[i+1]=a,Se[i+2]=e),v}function _r(r){var a,a=(r+12|0)>>2,e=Se[a],i=Ae[e]<<24>>24;if(88==(0|i)){var v=e+1|0;Se[a]=v;var t=nr(r),f=Se[a],_=f+1|0;Se[a]=_;var s=Ae[f]<<24>>24==69?t:0,n=s}else if(76==(0|i))var o=or(r),n=o;else var l=N(r),n=l;var n;return n}function sr(r){var a,a=(r+12|0)>>2,e=Se[a],i=Ae[e];if(i<<24>>24==110){var v=e+1|0;Se[a]=v;var t=1,f=Ae[v],_=v}else var t=0,f=i,_=e;var _,f,t,s=(f-48&255&255)<10;r:do if(s)for(var n=f,o=0,l=_;;){var l,o,n,b=(n<<24>>24)-48+10*o|0,k=l+1|0;Se[a]=k;var u=ge[k];if((u-48&255&255)>=10){var c=b;break r}var n=u,o=b,l=k}else var c=0;while(0);var c,h=0==(0|t)?c:0|-c;return h}function nr(r){var a,e,a=(r+12|0)>>2,i=Se[a],v=Ae[i];do{if(v<<24>>24==76){var t=or(r),f=t;e=21;break}if(v<<24>>24==84){var _=x(r),f=_;e=21;break}if(v<<24>>24==115){if(Ae[i+1|0]<<24>>24!=114){e=8;break}var s=i+2|0;Se[a]=s;var n=N(r),o=br(r);if(Ae[Se[a]]<<24>>24==73){var l=z(r),b=D(r,4,o,l),k=D(r,1,n,b),f=k;e=21;break}var u=D(r,1,n,o),f=u;e=21;break}e=8}while(0);r:do if(8==e){var c=kr(r);if(0==(0|c)){var f=0;break}var h=0|c,d=Se[h>>2],w=40==(0|d);do{if(w){var p=c+4|0,E=r+48|0,A=Se[Se[p>>2]+8>>2]-2+Se[E>>2]|0;Se[E>>2]=A;var g=Se[h>>2];if(40!=(0|g)){var y=g;e=13;break}var m=Se[p>>2],S=Se[m>>2],M=Da(S,0|He.__str90);if(0!=(0|M)){var C=m;e=15;break}var R=N(r),T=D(r,43,c,R),f=T;break r}var y=d;e=13}while(0);do if(13==e){var y;if(40==(0|y)){var C=Se[c+4>>2];e=15;break}if(41==(0|y)){var O=c+4|0;e=17;break}if(42==(0|y)){e=18;break}var f=0;break r}while(0);do if(15==e){var C,O=C+12|0;e=17;break}while(0);do if(17==e){var O,I=Se[O>>2];if(1==(0|I))break;if(2==(0|I)){var P=nr(r),L=nr(r),F=D(r,45,P,L),X=D(r,44,c,F);return X}if(3==(0|I)){var j=nr(r),U=nr(r),V=nr(r),B=D(r,48,U,V),H=D(r,47,j,B),K=D(r,46,c,H);return K}var f=0;break r}while(0);var Y=nr(r),G=D(r,43,c,Y);return G}while(0);var f;return f}function or(r){var a,a=(r+12|0)>>2,e=Se[a],i=e+1|0;Se[a]=i;var v=Ae[e]<<24>>24==76;r:do if(v){if(Ae[i]<<24>>24==95)var t=T(r,0),f=t;else{var _=N(r);if(0==(0|_)){var s=0;break}var n=33==(0|Se[_>>2]);do if(n){var o=Se[_+4>>2];if(0==(0|Se[o+16>>2]))break;var l=r+48|0,b=Se[l>>2]-Se[o+4>>2]|0;Se[l>>2]=b}while(0);var k=Se[a];if(Ae[k]<<24>>24==110){var u=k+1|0;Se[a]=u;var c=50,h=u}else var c=49,h=k;for(var h,c,d=h;;){var d,w=Ae[d];if(w<<24>>24==69)break;if(w<<24>>24==0){var s=0;break r}var p=d+1|0;Se[a]=p;var d=p}var E=lr(r,h,d-h|0),A=D(r,c,_,E),f=A}var f,g=Se[a],y=g+1|0;Se[a]=y;var m=Ae[g]<<24>>24==69?f:0,s=m}else var s=0;while(0);var s;return s}function lr(r,a,e){var i=J(r),v=m(i,a,e),t=0==(0|v)?0:i;return t}function br(r){var a=r+12|0,e=Me[a>>2],i=ge[e],v=(i-48&255&255)<10;do if(v)var t=L(r),f=t;else if((i-97&255&255)<26){var _=kr(r);if(0==(0|_)){var f=0;break}if(40!=(0|Se[_>>2])){var f=_;break}var s=r+48|0,n=Se[Se[_+4>>2]+8>>2]+Se[s>>2]+7|0;Se[s>>2]=n;var f=_}else if(i<<24>>24==67||i<<24>>24==68)var o=hr(r),f=o;else{if(i<<24>>24!=76){var f=0;break}Se[a>>2]=e+1|0;var l=L(r);if(0==(0|l)){var f=0;break}var b=dr(r),k=0==(0|b)?0:l,f=k}while(0);var f;return f}function kr(r){var a,e,a=(r+12|0)>>2,i=Se[a],v=i+1|0;Se[a]=v;var t=ge[i],f=i+2|0;Se[a]=f;var _=ge[v];do{if(t<<24>>24==118){if((_-48&255&255)>=10){var s=49,n=0;e=6;break}var o=(_<<24>>24)-48|0,l=L(r),b=ur(r,o,l),k=b;e=14;break}if(t<<24>>24==99){if(_<<24>>24!=118){var s=49,n=0;e=6;break}var u=N(r),c=D(r,42,u,0),k=c;e=14;break}var s=49,n=0;e=6}while(0);r:do if(6==e){for(;;){var n,s,h=(s-n)/2+n|0,d=(h<<4)+ri|0,w=Se[d>>2],p=Ae[w],E=t<<24>>24==p<<24>>24;if(E&&_<<24>>24==Ae[w+1|0]<<24>>24)break;var A=t<<24>>24>24;do if(A)var g=h,y=n;else{if(E&&_<<24>>24>24){var g=h,y=n;break}var g=s,y=h+1|0}while(0);var y,g;if((0|y)==(0|g)){var k=0;break r}var s=g,n=y}var m=cr(r,d),k=m}while(0);var k;return k}function ur(r,a,e){var i=J(r),v=S(i,a,e),t=0==(0|v)?0:i;return t}function cr(r,a){var e=J(r);return 0!=(0|e)&&(Se[e>>2]=40,Se[e+4>>2]=a),e}function hr(r){var a,e,i=Se[r+44>>2],e=i>>2,v=0==(0|i);do if(!v){var t=Se[e];if(0==(0|t)){var f=r+48|0,_=Se[f>>2]+Se[e+2]|0;Se[f>>2]=_}else{if(21!=(0|t))break;var s=r+48|0,n=Se[s>>2]+Se[e+2]|0;Se[s>>2]=n}}while(0);var a=(r+12|0)>>2,o=Se[a],l=o+1|0;Se[a]=l;var b=Ae[o]<<24>>24;do if(67==(0|b)){var k=o+2|0;Se[a]=k;var u=Ae[l]<<24>>24;if(49==(0|u))var c=1;else if(50==(0|u))var c=2;else{if(51!=(0|u)){var h=0;break}var c=3}var c,d=wr(r,c,i),h=d}else if(68==(0|b)){var w=o+2|0;Se[a]=w;var p=Ae[l]<<24>>24;if(48==(0|p))var E=1;else if(49==(0|p))var E=2;else{if(50!=(0|p)){var h=0;break}var E=3}var E,A=pr(r,E,i),h=A}else var h=0;while(0);var h;return h}function dr(r){var a=r+12|0,e=Se[a>>2];if(Ae[e]<<24>>24==95){var i=e+1|0;Se[a>>2]=i;var v=sr(r),t=v>>>31^1}else var t=1;var t;return t}function wr(r,a,e){var i=J(r),v=M(i,a,e),t=0==(0|v)?0:i;return t}function pr(r,a,e){var i=J(r),v=C(i,a,e),t=0==(0|v)?0:i;return t}function Er(r,a){var e=J(r);return 0!=(0|e)&&(Se[e>>2]=5,Se[e+4>>2]=a),e}function Ar(r){var a,a=(r+12|0)>>2,e=Se[a],i=Ae[e]<<24>>24;do if(78==(0|i))var v=gr(r),t=v;else if(90==(0|i))var f=yr(r),t=f;else if(76==(0|i))var _=br(r),t=_;else if(83==(0|i)){if(Ae[e+1|0]<<24>>24==116){var s=e+2|0;Se[a]=s;var n=lr(r,0|He.__str152,3),o=br(r),l=D(r,1,n,o),b=r+48|0,k=Se[b>>2]+3|0;Se[b>>2]=k;var u=0,c=l}else var h=V(r,0),u=1,c=h;var c,u;if(Ae[Se[a]]<<24>>24!=73){var t=c;break}if(0==(0|u)){var d=R(r,c);if(0==(0|d)){var t=0;break}}var w=z(r),p=D(r,4,c,w),t=p}else{var E=br(r);if(Ae[Se[a]]<<24>>24!=73){var t=E;break}var A=R(r,E);if(0==(0|A)){var t=0;break}var g=z(r),y=D(r,4,E,g),t=y}while(0);var t;return t}function gr(r){var a,e=Oe;Oe+=4;var i=e,a=(r+12|0)>>2,v=Se[a],t=v+1|0;Se[a]=t;var f=Ae[v]<<24>>24==78;do if(f){var _=I(r,i,1);if(0==(0|_)){var s=0;break}var n=mr(r);if(Se[_>>2]=n,0==(0|n)){var s=0;break}var o=Se[a],l=o+1|0;if(Se[a]=l,Ae[o]<<24>>24!=69){var s=0;break}var s=Se[i>>2]}else var s=0;while(0);var s;return Oe=e,s}function yr(r){var a,a=(r+12|0)>>2,e=Se[a],i=e+1|0;Se[a]=i;var v=Ae[e]<<24>>24==90;do if(v){var t=O(r,0),f=Se[a],_=f+1|0;if(Se[a]=_,Ae[f]<<24>>24!=69){var s=0;break}if(Ae[_]<<24>>24==115){var n=f+2|0;Se[a]=n;var o=dr(r);if(0==(0|o)){var s=0;break}var l=lr(r,0|He.__str168,14),b=D(r,2,t,l),s=b}else{var k=Ar(r),u=dr(r);if(0==(0|u)){var s=0;break}var c=D(r,2,t,k),s=c}}else var s=0;while(0);var s;return s}function mr(r){var a,e=r+12|0,i=0;r:for(;;){var i,v=ge[Se[e>>2]];if(v<<24>>24==0){var t=0;break}var f=(v-48&255&255)<10|(v-97&255&255)<26;do{if(!f){if(v<<24>>24==76||v<<24>>24==68||v<<24>>24==67){a=5;break}if(v<<24>>24==83){var _=V(r,1),s=_;a=10;break}if(v<<24>>24==73){if(0==(0|i)){var t=0;break r}var n=z(r),o=4,l=n;a=11;break}if(v<<24>>24==84){var b=x(r),s=b;a=10;break}if(v<<24>>24==69){var t=i;break r}var t=0;break r}a=5}while(0);do if(5==a){var k=br(r),s=k;a=10;break}while(0);do if(10==a){var s;if(0==(0|i)){var u=s;a=12;break}var o=1,l=s;a=11;break}while(0);if(11==a)var l,o,c=D(r,o,i,l),u=c;var u;if(v<<24>>24!=83)if(Ae[Se[e>>2]]<<24>>24!=69){var h=R(r,u);if(0==(0|h)){var t=0;break}var i=u}else var i=u;else var i=u}var t;return t}function Sr(r,a){var e,i,v=Oe;Oe+=4;var t=v,i=t>>2,e=(r+12|0)>>2,f=Se[e];if(Ae[f]<<24>>24==74){var _=f+1|0;Se[e]=_;var s=1}else var s=a;var s;Se[i]=0;var n=s,o=0,l=t;r:for(;;)for(var l,o,n,b=n,k=o;;){var k,b,u=Ae[Se[e]];if(u<<24>>24==0||u<<24>>24==69){var c=Se[i];if(0==(0|c)){var h=0;break r}var d=0==(0|Se[c+8>>2]);do if(d){var w=Se[c+4>>2];if(33!=(0|Se[w>>2])){var p=c;break}var E=Se[w+4>>2];if(9!=(0|Se[E+16>>2])){var p=c;break}var A=r+48|0,g=Se[A>>2]-Se[E+4>>2]|0;Se[A>>2]=g,Se[i]=0;var p=0}else var p=c;while(0);var p,y=D(r,35,k,p),h=y;break r}var m=N(r);if(0==(0|m)){var h=0;break r}if(0==(0|b)){var S=D(r,38,m,0);if(Se[l>>2]=S,0==(0|S)){var h=0;break r}var n=0,o=k,l=S+8|0;continue r}var b=0,k=m}var h;return Oe=v,h}function Mr(r){for(var a=r;;){var a;if(0==(0|a)){var e=0;break}var i=Se[a>>2];if(1!=(0|i)&&2!=(0|i)){if(6==(0|i)||7==(0|i)||42==(0|i)){var e=1;break}var e=0;break}var a=Se[a+8>>2]}var e;return e}function Cr(r){var a=r>>2;Se[a+3]=0,Se[a+2]=0,Se[a+1]=0,Se[a]=0,Se[a+4]=0}function Rr(r,a){var e,e=(r+12|0)>>2,i=Se[e],v=(Se[r+4>>2]-i|0)<(0|a);r:do if(v)var t=0;else{var f=i+a|0;Se[e]=f;var _=0==(4&Se[r+8>>2]|0);do if(!_){if(Ae[f]<<24>>24!=36)break;var s=a+(i+1)|0;Se[e]=s}while(0);var n=(0|a)>9;do if(n){var o=La(i,0|He.__str117,8);if(0!=(0|o))break;var l=Ae[i+8|0];if(l<<24>>24!=46&&l<<24>>24!=95&&l<<24>>24!=36)break;if(Ae[i+9|0]<<24>>24!=78)break;var b=r+48|0,k=22-a+Se[b>>2]|0;Se[b>>2]=k;var u=lr(r,0|He.__str169,21),t=u;break r}while(0);var c=lr(r,i,a),t=c}while(0);var t;return t}function Tr(r){var a,e,e=(r+48|0)>>2,i=Se[e],v=i+20|0;Se[e]=v;var a=(r+12|0)>>2,t=Se[a],f=t+1|0;Se[a]=f;var _=Ae[t];do if(_<<24>>24==84){var s=t+2|0;Se[a]=s;var n=Ae[f]<<24>>24;if(86==(0|n)){var o=i+15|0;Se[e]=o;var l=N(r),b=D(r,8,l,0),k=b}else if(84==(0|n)){var u=i+10|0;Se[e]=u;var c=N(r),h=D(r,9,c,0),k=h}else if(73==(0|n))var d=N(r),w=D(r,11,d,0),k=w;else if(83==(0|n))var p=N(r),E=D(r,12,p,0),k=E;else if(104==(0|n)){var A=Nr(r,104);if(0==(0|A)){var k=0;break}var g=O(r,0),y=D(r,14,g,0),k=y}else if(118==(0|n)){var m=Nr(r,118);if(0==(0|m)){var k=0;break}var S=O(r,0),M=D(r,15,S,0),k=M}else if(99==(0|n)){var C=Nr(r,0);if(0==(0|C)){var k=0;break}var R=Nr(r,0);if(0==(0|R)){var k=0;break}var T=O(r,0),I=D(r,16,T,0),k=I}else if(67==(0|n)){var P=N(r),L=sr(r);if((0|L)<0){var k=0;break}var F=Se[a],X=F+1|0;if(Se[a]=X,Ae[F]<<24>>24!=95){var k=0;break}var j=N(r),U=Se[e]+5|0;Se[e]=U;var x=D(r,10,j,P),k=x}else if(70==(0|n))var z=N(r),V=D(r,13,z,0),k=V;else{if(74!=(0|n)){var k=0;break}var B=N(r),H=D(r,17,B,0),k=H}}else if(_<<24>>24==71){var K=t+2|0;Se[a]=K;var Y=Ae[f]<<24>>24;if(86==(0|Y))var G=Ar(r),W=D(r,18,G,0),k=W;else if(82==(0|Y))var Z=Ar(r),Q=D(r,19,Z,0),k=Q;else{if(65!=(0|Y)){var k=0;break}var q=O(r,0),$=D(r,20,q,0),k=$}}else var k=0;while(0);var k;return k}function Or(r){for(var a,e=r,a=e>>2;;){var e;if(0==(0|e)){var i=0;break}var v=Se[a];if(4==(0|v)){var t=Se[a+1],f=Mr(t),i=0==(0|f)&1;break}if(25!=(0|v)&&26!=(0|v)&&27!=(0|v)){var i=0;break}var e=Se[a+1],a=e>>2}var i;return i}function Nr(r,a){var e;if(0==(0|a)){var i=r+12|0,v=Se[i>>2],t=v+1|0;Se[i>>2]=t;var f=Ae[v]<<24>>24}else var f=a;var f;do{if(104==(0|f)){var _=(sr(r),r+12|0);e=7;break}if(118==(0|f)){var s=(sr(r),r+12|0),n=Se[s>>2],o=n+1|0;if(Se[s>>2]=o,Ae[n]<<24>>24!=95){var l=0;e=8;break}var _=(sr(r),s);e=7;break}var l=0;e=8}while(0);if(7==e){var _,b=Se[_>>2],k=b+1|0;Se[_>>2]=k;var l=Ae[b]<<24>>24==95&1}var l;return l}function Ir(r){var a,e,i=r>>2,v=Oe;Oe+=56;var t,f=v,_=v+8,s=v+16,n=v+36,e=(0|r)>>2,o=Se[e],l=0==(8192&o|0);r:do{if(l){var a=(r+12|0)>>2,b=Se[a];if(Ae[b]<<24>>24!=63){var k=0;t=111;break}var u=b+1|0;Se[a]=u;var c=Ae[u];do if(c<<24>>24==63){if(Ae[b+2|0]<<24>>24==36){var h=b+3|0;if(Ae[h]<<24>>24!=63){var d=5;t=90;break}Se[a]=h;var w=6,p=h}else var w=0,p=u;var p,w,E=p+1|0;Se[a]=E;var A=Ae[E]<<24>>24;do if(48==(0|A)){var g=1;t=81}else{if(49==(0|A)){var g=2;t=81;break}if(50!=(0|A)){if(51==(0|A)){var y=0|He.__str2172,m=E;t=82;break}if(52==(0|A)){var y=0|He.__str3173,m=E;t=82;break}if(53==(0|A)){var y=0|He.__str4174,m=E;t=82;break}if(54==(0|A)){var y=0|He.__str5175,m=E;t=82;break}if(55==(0|A)){var y=0|He.__str6176,m=E;t=82;break}if(56==(0|A)){var y=0|He.__str7177,m=E;t=82;break}if(57==(0|A)){var y=0|He.__str8178,m=E;t=82;break}if(65==(0|A)){var y=0|He.__str9179,m=E;t=82;break}if(66==(0|A)){Se[a]=p+2|0;var S=0|He.__str10180,M=3;t=88;break}if(67==(0|A)){var y=0|He.__str11181,m=E;t=82;break}if(68==(0|A)){var y=0|He.__str12182,m=E;t=82;break}if(69==(0|A)){var y=0|He.__str13183,m=E;t=82;break}if(70==(0|A)){var y=0|He.__str14184,m=E;t=82;break}if(71==(0|A)){var y=0|He.__str15185,m=E;t=82;break}if(72==(0|A)){var y=0|He.__str16186,m=E;t=82;break}if(73==(0|A)){var y=0|He.__str17187,m=E;t=82;break}if(74==(0|A)){var y=0|He.__str18188,m=E;t=82;break}if(75==(0|A)){var y=0|He.__str19189,m=E;t=82;break}if(76==(0|A)){var y=0|He.__str20190,m=E;t=82;break}if(77==(0|A)){var y=0|He.__str21191,m=E;t=82;break}if(78==(0|A)){var y=0|He.__str22192,m=E;t=82;break}if(79==(0|A)){var y=0|He.__str23193,m=E;t=82;break}if(80==(0|A)){var y=0|He.__str24194,m=E;t=82;break}if(81==(0|A)){var y=0|He.__str25195,m=E;t=82;break}if(82==(0|A)){var y=0|He.__str26196,m=E;t=82;break}if(83==(0|A)){var y=0|He.__str27197,m=E;t=82;break}if(84==(0|A)){var y=0|He.__str28198,m=E;t=82;break}if(85==(0|A)){var y=0|He.__str29199,m=E;t=82;break}if(86==(0|A)){var y=0|He.__str30200,m=E;t=82;break}if(87==(0|A)){var y=0|He.__str31201,m=E;t=82;break}if(88==(0|A)){var y=0|He.__str32202,m=E;t=82;break}if(89==(0|A)){var y=0|He.__str33203,m=E;t=82;break}if(90==(0|A)){var y=0|He.__str34204,m=E;t=82;break}if(95==(0|A)){var C=p+2|0;Se[a]=C;var R=Ae[C]<<24>>24;if(48==(0|R)){var y=0|He.__str35205,m=C;t=82;break}if(49==(0|R)){var y=0|He.__str36206,m=C;t=82;break}if(50==(0|R)){var y=0|He.__str37207,m=C;t=82;break}if(51==(0|R)){var y=0|He.__str38208,m=C;t=82;break}if(52==(0|R)){var y=0|He.__str39209,m=C;t=82;break}if(53==(0|R)){var y=0|He.__str40210,m=C;t=82;break}if(54==(0|R)){var y=0|He.__str41211,m=C;t=82;break}if(55==(0|R)){var y=0|He.__str42212,m=C;t=82;break}if(56==(0|R)){var y=0|He.__str43213,m=C;t=82;break}if(57==(0|R)){var y=0|He.__str44214,m=C;t=82;break}if(65==(0|R)){var y=0|He.__str45215,m=C;t=82;break}if(66==(0|R)){var y=0|He.__str46216,m=C;t=82;break}if(67==(0|R)){Se[a]=p+3|0;var T=0|He.__str47217;t=84;break}if(68==(0|R)){var y=0|He.__str48218,m=C;t=82;break}if(69==(0|R)){var y=0|He.__str49219,m=C;t=82;break}if(70==(0|R)){var y=0|He.__str50220,m=C;t=82;break}if(71==(0|R)){var y=0|He.__str51221,m=C;t=82;break}if(72==(0|R)){var y=0|He.__str52222,m=C;t=82;break}if(73==(0|R)){var y=0|He.__str53223,m=C;t=82;break}if(74==(0|R)){var y=0|He.__str54224,m=C;t=82;break}if(75==(0|R)){var y=0|He.__str55225,m=C;t=82;break}if(76==(0|R)){var y=0|He.__str56226,m=C;t=82;break}if(77==(0|R)){var y=0|He.__str57227,m=C;t=82;break}if(78==(0|R)){var y=0|He.__str58228,m=C;t=82;break}if(79==(0|R)){var y=0|He.__str59229,m=C;t=82;break}if(82==(0|R)){var O=4|o;Se[e]=O;var N=p+3|0;Se[a]=N;var I=Ae[N]<<24>>24;if(48==(0|I)){Se[a]=p+4|0,Cr(s);var P=(Pr(r,_,s,0),Se[_>>2]),D=Se[_+4>>2],L=Dr(r,0|He.__str60230,(ne=Oe,Oe+=8,Se[ne>>2]=P,Se[ne+4>>2]=D,ne)),F=Se[a]-1|0;Se[a]=F;var y=L,m=F;t=82;break}if(49==(0|I)){Se[a]=p+4|0;var X=Lr(r),j=Lr(r),U=Lr(r),x=Lr(r),z=Se[a]-1|0;Se[a]=z;var V=Dr(r,0|He.__str61231,(ne=Oe,Oe+=16,Se[ne>>2]=X,Se[ne+4>>2]=j,Se[ne+8>>2]=U,Se[ne+12>>2]=x,ne)),y=V,m=Se[a];t=82;break}if(50==(0|I)){var y=0|He.__str62232,m=N;t=82;break}if(51==(0|I)){var y=0|He.__str63233,m=N;t=82;break}if(52==(0|I)){var y=0|He.__str64234,m=N;t=82;break}var y=0,m=N;t=82;break}if(83==(0|R)){var y=0|He.__str65235,m=C;t=82;break}if(84==(0|R)){var y=0|He.__str66236,m=C;t=82;break}if(85==(0|R)){var y=0|He.__str67237,m=C;t=82;break}if(86==(0|R)){var y=0|He.__str68238,m=C;t=82;break}if(88==(0|R)){var y=0|He.__str69239,m=C;t=82;break}if(89==(0|R)){var y=0|He.__str70240,m=C;t=82;break}var k=0;t=111;break r}var k=0;t=111;break r}var y=0|He.__str1171,m=E;t=82}while(0);do{if(81==t){var g;Se[a]=p+2|0;var B=g;t=83;break}if(82==t){var m,y;if(Se[a]=m+1|0,1==(0|w)||2==(0|w)){var B=w;t=83;break}if(4==(0|w)){var T=y;t=84;break}if(6!=(0|w)){var S=y,M=w;t=88;break}Cr(n);var H=Xr(r,n,0,60,62);if(0==(0|H))var K=y;else var Y=Dr(r,0|He.__str170,(ne=Oe,Oe+=8,Se[ne>>2]=y,Se[ne+4>>2]=H,ne)),K=Y;var K;Se[i+6]=0;var S=K,M=w;t=88;break}}while(0);if(83==t){var B,G=r+40|0,W=Fr(r,0|He._symbol_demangle_dashed_null,-1,G);if(0==(0|W)){var k=0;t=111;break r}var d=B;t=90;break}if(84==t){var T;Se[i+4]=T;var Z=1,Q=T;t=109;break r}if(88==t){var M,S,q=r+40|0,$=Fr(r,S,-1,q);if(0==(0|$)){var k=0;t=111;break r}var d=M;t=90;break}}else{if(c<<24>>24==36){var J=b+2|0;Se[a]=J;var rr=jr(r);Se[i+4]=rr;var ar=0!=(0|rr)&1;t=107;break}var d=0;t=90}while(0);if(90==t){var d,er=Me[a],ir=Ae[er]<<24>>24;if(64==(0|ir))Se[a]=er+1|0;else if(36==(0|ir))t=93;else{var vr=zr(r);if(0==(0|vr)){var k=-1;t=111;break}}if(5==(0|d)){var tr=r+20|0,fr=Se[tr>>2]+1|0;Se[tr>>2]=fr}else if(1==(0|d)||2==(0|d)){if(Me[i+11]>>>0<2){var k=-1;t=111;break}var _r=r+56|0,sr=Me[_r>>2],nr=Se[sr+4>>2];if(1==(0|d))Se[sr>>2]=nr;else{var or=Dr(r,0|He.__str71241,(ne=Oe,Oe+=4,Se[ne>>2]=nr,ne)),lr=Se[_r>>2];Se[lr>>2]=or}var br=4|Se[e];Se[e]=br}else if(3==(0|d)){var kr=Se[e]&-5;Se[e]=kr}var ur=ge[Se[a]];if((ur-48&255&255)<10)var cr=Vr(r),ar=cr;else if((ur-65&255&255)<26)var hr=Br(r,3==(0|d)&1),ar=hr;else{if(ur<<24>>24!=36){var k=-1;t=111;break}var dr=Hr(r),ar=dr}}var ar;if(0==(0|ar)){var k=-1;t=111;break}var Z=ar,Q=Se[i+4];t=109;break}var wr=Pr(r,f,0,0);if(0==(0|wr)){var k=-1;t=111;break}var pr=Se[f>>2],Er=Se[f+4>>2],Ar=Dr(r,0|He.__str170,(ne=Oe,Oe+=8,Se[ne>>2]=pr,Se[ne+4>>2]=Er,ne));Se[i+4]=Ar;var Z=1,Q=Ar;t=109;break}while(0);do if(109==t){var Q,Z;if(0!=(0|Q)){var k=Z;break}Xa(0|He.__str72242,1499,0|He.___func___symbol_demangle,0|He.__str73243);var k=Z}while(0);var k;return Oe=v,k}function Pr(r,a,e,i){var v,t,f,_=Oe;Oe+=24;var s=_,n=_+4,o=_+8,l=_+16,b=_+20;0==(0|a)&&Xa(0|He.__str72242,829,0|He.___func___demangle_datatype,0|He.__str121291);var f=(a+4|0)>>2;Se[f]=0;var t=(0|a)>>2;Se[t]=0;var v=(r+12|0)>>2,k=Me[v],u=k+1|0;Se[v]=u;var c=Ae[k],h=c<<24>>24;do if(95==(0|h)){Se[v]=k+2|0;var d=Ae[u],w=Zr(d);Se[t]=w}else if(67==(0|h)||68==(0|h)||69==(0|h)||70==(0|h)||71==(0|h)||72==(0|h)||73==(0|h)||74==(0|h)||75==(0|h)||77==(0|h)||78==(0|h)||79==(0|h)||88==(0|h)||90==(0|h)){var p=Qr(c);Se[t]=p}else if(84==(0|h)||85==(0|h)||86==(0|h)||89==(0|h)){var E=qr(r);if(0==(0|E))break;var A=0==(32768&Se[r>>2]|0);do if(A)if(84==(0|h))var g=0|He.__str122292;else if(85==(0|h))var g=0|He.__str123293;else if(86==(0|h))var g=0|He.__str124294;else{if(89!=(0|h)){var g=0;break}var g=0|He.__str125295}else var g=0;while(0);var g,y=Dr(r,0|He.__str170,(ne=Oe,Oe+=8,Se[ne>>2]=g,Se[ne+4>>2]=E,ne));Se[t]=y}else if(63==(0|h))if(0==(0|i))$r(a,r,e,63,0);else{var m=Lr(r);if(0==(0|m))break;var S=Dr(r,0|He.__str126296,(ne=Oe,Oe+=4,Se[ne>>2]=m,ne));Se[t]=S}else if(65==(0|h)||66==(0|h))$r(a,r,e,c,i);else if(81==(0|h)||82==(0|h)||83==(0|h)){var M=0==(0|i)?80:c;$r(a,r,e,M,i)}else if(80==(0|h))if(((Ae[u]<<24>>24)-48|0)>>>0<10){var C=k+2|0;if(Se[v]=C,Ae[u]<<24>>24!=54)break;var R=r+44|0,T=Se[R>>2];Se[v]=k+3|0;var O=Ae[C],N=Se[r>>2]&-17,I=Ur(O,s,n,N);if(0==(0|I))break;var P=Pr(r,o,e,0);if(0==(0|P))break;var D=Xr(r,e,1,40,41);if(0==(0|D))break;Se[R>>2]=T;var L=Se[o>>2],F=Se[o+4>>2],X=Se[s>>2],j=Dr(r,0|He.__str127297,(ne=Oe,Oe+=12,Se[ne>>2]=L,Se[ne+4>>2]=F,Se[ne+8>>2]=X,ne));Se[t]=j;var U=Dr(r,0|He.__str128298,(ne=Oe,Oe+=4,Se[ne>>2]=D,ne));Se[f]=U}else $r(a,r,e,80,i);else if(87==(0|h)){if(Ae[u]<<24>>24!=52)break;Se[v]=k+2|0;var x=qr(r);if(0==(0|x))break;if(0==(32768&Se[r>>2]|0)){var z=Dr(r,0|He.__str129299,(ne=Oe,Oe+=4,Se[ne>>2]=x,ne));Se[t]=z}else Se[t]=x}else if(48==(0|h)||49==(0|h)||50==(0|h)||51==(0|h)||52==(0|h)||53==(0|h)||54==(0|h)||55==(0|h)||56==(0|h)||57==(0|h)){var V=h<<1,B=V-96|0,H=Yr(e,B);Se[t]=H;var K=V-95|0,Y=Yr(e,K);Se[f]=Y}else if(36==(0|h)){var G=k+2|0;Se[v]=G;var W=Ae[u]<<24>>24;if(48==(0|W)){var Z=Lr(r);Se[t]=Z}else if(68==(0|W)){var Q=Lr(r);if(0==(0|Q))break;var q=Dr(r,0|He.__str130300,(ne=Oe,Oe+=4,Se[ne>>2]=Q,ne));Se[t]=q}else if(70==(0|W)){var $=Lr(r);if(0==(0|$))break;var J=Lr(r);if(0==(0|J))break;var rr=Dr(r,0|He.__str131301,(ne=Oe,Oe+=8,Se[ne>>2]=$,Se[ne+4>>2]=J,ne));Se[t]=rr}else if(71==(0|W)){var ar=Lr(r);if(0==(0|ar))break;var er=Lr(r);if(0==(0|er))break;var ir=Lr(r);if(0==(0|ir))break;var vr=Dr(r,0|He.__str132302,(ne=Oe,Oe+=12,Se[ne>>2]=ar,Se[ne+4>>2]=er,Se[ne+8>>2]=ir,ne));Se[t]=vr}else if(81==(0|W)){var tr=Lr(r);if(0==(0|tr))break;var fr=Dr(r,0|He.__str133303,(ne=Oe,Oe+=4,Se[ne>>2]=tr,ne));Se[t]=fr}else{if(36!=(0|W))break;if(Ae[G]<<24>>24!=67)break;Se[v]=k+3|0;var _r=xr(r,l,b);if(0==(0|_r))break;var sr=Pr(r,a,e,i);if(0==(0|sr))break;var nr=Se[t],or=Se[l>>2],lr=Dr(r,0|He.__str83253,(ne=Oe,Oe+=8,Se[ne>>2]=nr,Se[ne+4>>2]=or,ne));Se[t]=lr}}while(0);var br=0!=(0|Se[t])&1;return Oe=_,br}function Dr(r,a){var e,i=Oe;Oe+=4;var v=i,e=v>>2,t=v;Se[t>>2]=arguments[Dr.length];var f=1,_=0;r:for(;;){var _,f,s=Ae[a+_|0];do{if(s<<24>>24==0)break r;if(s<<24>>24==37){var n=_+1|0,o=Ae[a+n|0]<<24>>24;if(115==(0|o)){var l=Se[e],b=l,k=l+4|0;Se[e]=k;var u=Se[b>>2];if(0==(0|u)){var c=f,h=n;break}var d=Ca(u),c=d+f|0,h=n;break}if(99==(0|o)){var w=Se[e]+4|0;Se[e]=w;var c=f+1|0,h=n;break}if(37==(0|o))var p=n;else var p=_;var p,c=f+1|0,h=p}else var c=f+1|0,h=_}while(0);var h,c,f=c,_=h+1|0}var E=Wr(r,f);if(0==(0|E))var A=0;else{Se[t>>2]=arguments[Dr.length];var g=E,y=0;r:for(;;){var y,g,m=Ae[a+y|0];do{if(m<<24>>24==0)break r;if(m<<24>>24==37){var S=y+1|0,M=Ae[a+S|0]<<24>>24;if(115==(0|M)){var C=Se[e],R=C,T=C+4|0;Se[e]=T;var O=Se[R>>2];if(0==(0|O)){var N=g,I=S;break}var P=Ca(O);Pa(g,O,P,1);var N=g+P|0,I=S;break}if(99==(0|M)){var D=Se[e],L=D,F=D+4|0;Se[e]=F,Ae[g]=255&Se[L>>2];var N=g+1|0,I=S;break}if(37==(0|M))var X=S;else var X=y;var X;Ae[g]=37;var N=g+1|0,I=X}else{Ae[g]=m;var N=g+1|0,I=y}}while(0);var I,N,g=N,y=I+1|0}Ae[g]=0;var A=E}var A;return Oe=i,A}function Lr(r){var a,a=(r+12|0)>>2,e=Se[a],i=Ae[e];if(i<<24>>24==63){var v=e+1|0;Se[a]=v;var t=1,f=v,_=Ae[v]}else var t=0,f=e,_=i;var _,f,t,s=(_-48&255&255)<9;do if(s){var n=Wr(r,3),o=0!=(0|t);o&&(Ae[n]=45);var l=Ae[Se[a]]+1&255;Ae[n+t|0]=l;var b=o?2:1;\nAe[n+b|0]=0;var k=Se[a]+1|0;Se[a]=k;var u=n}else if(_<<24>>24==57){var c=Wr(r,4),h=0!=(0|t);h&&(Ae[c]=45),Ae[c+t|0]=49;var d=h?2:1;Ae[c+d|0]=48;var w=h?3:2;Ae[c+w|0]=0;var p=Se[a]+1|0;Se[a]=p;var u=c}else{if((_-65&255&255)>=16){var u=0;break}for(var E=0,A=f;;){var A,E,g=A+1|0;Se[a]=g;var y=(Ae[A]<<24>>24)+((E<<4)-65)|0,m=ge[g];if((m-65&255&255)>=16)break;var E=y,A=g}if(m<<24>>24!=64){var u=0;break}var S=Wr(r,17),M=0!=(0|t)?0|He.__str119289:0|ii,C=(za(S,0|He.__str118288,(ne=Oe,Oe+=8,Se[ne>>2]=M,Se[ne+4>>2]=y,ne)),Se[a]+1|0);Se[a]=C;var u=S}while(0);var u;return u}function Fr(r,a,e,i){var v,t,f,_;0==(0|a)&&Xa(0|He.__str72242,212,0|He.___func___str_array_push,0|He.__str115285),0==(0|i)&&Xa(0|He.__str72242,213,0|He.___func___str_array_push,0|He.__str116286);var f=(i+12|0)>>2,s=Me[f],n=0==(0|s);do{if(n){Se[f]=32;var o=Wr(r,128);if(0==(0|o)){var l=0;_=17;break}Se[i+16>>2]=o,_=11;break}if(Me[i+8>>2]>>>0>>0){_=11;break}var b=s<<3,k=Wr(r,b);if(0==(0|k)){var l=0;_=17;break}var u=k,c=i+16|0,h=Se[c>>2],d=Se[f]<<2;Pa(k,h,d,1);var w=Se[f]<<1;Se[f]=w,Se[c>>2]=u,_=11;break}while(0);do if(11==_){if((0|e)==-1)var p=Ca(a),E=p;else var E=e;var E,A=ja(a),g=E+1|0,y=Wr(r,g),t=(i+4|0)>>2,v=(i+16|0)>>2,m=(Se[t]<<2)+Se[v]|0;Se[m>>2]=y;var S=Se[Se[v]+(Se[t]<<2)>>2];if(0==(0|S)){Xa(0|He.__str72242,233,0|He.___func___str_array_push,0|He.__str117287);var M=Se[Se[v]+(Se[t]<<2)>>2]}else var M=S;var M;Pa(M,A,E,1),va(A),Ae[Se[Se[v]+(Se[t]<<2)>>2]+g|0]=0;var C=Se[t]+1|0;Se[t]=C;var R=i+8|0;if(C>>>0>2]>>>0){var l=1;break}Se[R>>2]=C;var l=1}while(0);var l;return l}function Xr(r,a,e,i,v){var t,f,_=Oe;Oe+=28;var s,n=_,o=_+8;Cr(o);var f=(r+12|0)>>2,l=0==(0|e),t=(0|n)>>2,b=n+4|0;r:do if(l)for(;;){var k=Se[f],u=Ae[k];if(u<<24>>24==0){s=12;break r}if(u<<24>>24==64){var c=k;s=7;break r}var h=Pr(r,n,a,1);if(0==(0|h)){var d=0;s=25;break r}var w=Se[t],p=Se[b>>2],E=Dr(r,0|He.__str170,(ne=Oe,Oe+=8,Se[ne>>2]=w,Se[ne+4>>2]=p,ne)),A=Fr(r,E,-1,o);if(0==(0|A)){var d=0;s=25;break r}var g=Se[t],y=Da(g,0|He.__str110280);if(0==(0|y)){s=12;break r}}else for(;;){var m=Se[f],S=Ae[m];if(S<<24>>24==0){s=12;break r}if(S<<24>>24==64){var c=m;s=7;break r}var M=Pr(r,n,a,1);if(0==(0|M)){var d=0;s=25;break r}var C=Se[t],R=Da(C,0|He.__str84254);if(0==(0|R)){s=13;break r}var T=Se[b>>2],O=Dr(r,0|He.__str170,(ne=Oe,Oe+=8,Se[ne>>2]=C,Se[ne+4>>2]=T,ne)),N=Fr(r,O,-1,o);if(0==(0|N)){var d=0;s=25;break r}var I=Se[t],P=Da(I,0|He.__str110280);if(0==(0|P)){s=12;break r}}while(0);do if(7==s){var c;Se[f]=c+1|0,s=12;break}while(0);do if(12==s){if(l){s=14;break}s=13;break}while(0);do if(13==s){var D=Se[f],L=D+1|0;if(Se[f]=L,Ae[D]<<24>>24==90){s=14;break}var d=0;s=25;break}while(0);r:do if(14==s){var F=o+4|0,X=Me[F>>2];do{if(0!=(0|X)){if(1==(0|X)){var j=o+16|0,U=Se[Se[j>>2]>>2],x=Da(U,0|He.__str84254);if(0==(0|x)){s=17;break}var z=j;s=20;break}var V=o+16|0;if(X>>>0<=1){var z=V;s=20;break}for(var B=0,H=1;;){var H,B,K=Se[Se[V>>2]+(H<<2)>>2],Y=Dr(r,0|He.__str112282,(ne=Oe,Oe+=8,Se[ne>>2]=B,Se[ne+4>>2]=K,ne)),G=H+1|0;if(G>>>0>=Me[F>>2]>>>0)break;var B=Y,H=G}if(0==(0|Y)){var z=V;s=20;break}var W=Y,Z=Y;s=21;break}s=17}while(0);if(17==s){var Q=i<<24>>24,q=v<<24>>24,$=Dr(r,0|He.__str111281,(ne=Oe,Oe+=8,Se[ne>>2]=Q,Se[ne+4>>2]=q,ne)),d=$;break}if(20==s)var z,W=Se[Se[z>>2]>>2],Z=0;var Z,W,J=v<<24>>24,rr=v<<24>>24==62;do if(rr){var ar=Ca(W);if(Ae[W+(ar-1)|0]<<24>>24!=62)break;var er=i<<24>>24,ir=Se[Se[o+16>>2]>>2],vr=Dr(r,0|He.__str113283,(ne=Oe,Oe+=16,Se[ne>>2]=er,Se[ne+4>>2]=ir,Se[ne+8>>2]=Z,Se[ne+12>>2]=J,ne)),d=vr;break r}while(0);var tr=i<<24>>24,fr=Se[Se[o+16>>2]>>2],_r=Dr(r,0|He.__str114284,(ne=Oe,Oe+=16,Se[ne>>2]=tr,Se[ne+4>>2]=fr,Se[ne+8>>2]=Z,Se[ne+12>>2]=J,ne)),d=_r}while(0);var d;return Oe=_,d}function jr(r){var a,e=Oe;Oe+=20;var i=e,v=r+24|0,t=Se[v>>2],a=(r+20|0)>>2,f=Se[a],_=r+44|0,s=Se[_>>2];Se[a]=t;var n=Kr(r);if(0==(0|n))var o=0;else{Cr(i);var l=Xr(r,i,0,60,62);if(0==(0|l))var b=n;else var k=Dr(r,0|He.__str170,(ne=Oe,Oe+=8,Se[ne>>2]=n,Se[ne+4>>2]=l,ne)),b=k;var b;Se[v>>2]=t,Se[a]=f,Se[_>>2]=s;var o=b}var o;return Oe=e,o}function Ur(r,a,e,i){var v,t=a>>2;Se[e>>2]=0,Se[t]=0;var f=0==(18&i|0);do{if(f){var _=r<<24>>24,s=1==((_-65)%2|0);if(0==(1&i|0)){if(s?Se[e>>2]=0|He.__str95265:v=14,65==(0|_)||66==(0|_)){Se[t]=0|He.__str96266,v=21;break}if(67==(0|_)||68==(0|_)){Se[t]=0|He.__str97267,v=21;break}if(69==(0|_)||70==(0|_)){Se[t]=0|He.__str98268,v=21;break}if(71==(0|_)||72==(0|_)){Se[t]=0|He.__str99269,v=21;break}if(73==(0|_)||74==(0|_)){Se[t]=0|He.__str100270,v=21;break}if(75==(0|_)||76==(0|_)){v=21;break}if(77==(0|_)){Se[t]=0|He.__str101271,v=21;break}var n=0;v=22;break}if(s?Se[e>>2]=0|He.__str88258:v=5,65==(0|_)||66==(0|_)){Se[t]=0|He.__str89259,v=21;break}if(67==(0|_)||68==(0|_)){Se[t]=0|He.__str90260,v=21;break}if(69==(0|_)||70==(0|_)){Se[t]=0|He.__str91261,v=21;break}if(71==(0|_)||72==(0|_)){Se[t]=0|He.__str92262,v=21;break}if(73==(0|_)||74==(0|_)){Se[t]=0|He.__str93263,v=21;break}if(75==(0|_)||76==(0|_)){v=21;break}if(77==(0|_)){Se[t]=0|He.__str94264,v=21;break}var n=0;v=22;break}v=21}while(0);if(21==v)var n=1;var n;return n}function xr(r,a,e){var i;Se[e>>2]=0;var i=(r+12|0)>>2,v=Se[i];if(Ae[v]<<24>>24==69){Se[e>>2]=0|He.__str102272;var t=Se[i]+1|0;Se[i]=t;var f=t}else var f=v;var f;Se[i]=f+1|0;var _=Ae[f]<<24>>24;if(65==(0|_)){Se[a>>2]=0;var s=1}else if(66==(0|_)){Se[a>>2]=0|He.__str103273;var s=1}else if(67==(0|_)){Se[a>>2]=0|He.__str104274;var s=1}else if(68==(0|_)){Se[a>>2]=0|He.__str105275;var s=1}else var s=0;var s;return s}function zr(r){var a,e,a=(r+12|0)>>2,i=r+40|0,v=r+20|0,t=0|i,f=r+44|0,_=r+48|0,s=r+52|0,n=r+56|0,o=r+20|0,l=r+24|0,b=r+16|0,k=0;r:for(;;){var k,u=Se[a],c=Ae[u];if(c<<24>>24==64){var h=u+1|0;Se[a]=h;var d=1;break}var w=c<<24>>24;do{if(0==(0|w)){var d=0;break r}if(48==(0|w)||49==(0|w)||50==(0|w)||51==(0|w)||52==(0|w)||53==(0|w)||54==(0|w)||55==(0|w)||56==(0|w)||57==(0|w)){var p=u+1|0;Se[a]=p;var E=(Ae[u]<<24>>24)-48|0,A=Yr(v,E),g=A;e=14;break}if(63==(0|w)){var y=u+1|0;Se[a]=y;var m=Ae[y]<<24>>24;if(36==(0|m)){var S=u+2|0;Se[a]=S;var M=jr(r);if(0==(0|M)){var d=0;break r}var C=Fr(r,M,-1,v);if(0==(0|C)){var d=0;break r}var R=M;e=15;break}if(63==(0|m)){var T=Se[t>>2],O=Se[f>>2],N=Se[_>>2],I=Se[s>>2],P=Se[n>>2],D=Se[o>>2],L=Se[l>>2];Cr(i);var F=Ir(r);if(0==(0|F))var X=k;else var j=Se[b>>2],U=Dr(r,0|He.__str109279,(ne=Oe,Oe+=4,Se[ne>>2]=j,ne)),X=U;var X;Se[o>>2]=D,Se[l>>2]=L,Se[t>>2]=T,Se[f>>2]=O,Se[_>>2]=N,Se[s>>2]=I,Se[n>>2]=P;var g=X;e=14;break}var x=Lr(r);if(0==(0|x)){var d=0;break r}var z=Dr(r,0|He.__str109279,(ne=Oe,Oe+=4,Se[ne>>2]=x,ne)),g=z;e=14;break}var V=Kr(r),g=V;e=14;break}while(0);if(14==e){var g;if(0==(0|g)){var d=0;break}var R=g}var R,B=Fr(r,R,-1,i);if(0==(0|B)){var d=0;break}var k=R}var d;return d}function Vr(r){var a,e,i,v=Oe;Oe+=36;var t,f=v,i=f>>2,_=v+4,s=v+8,e=s>>2,n=v+16;Se[i]=0;var o=0|r,l=Se[o>>2],b=0==(128&l|0),k=r+12|0;do if(b){var u=Ae[Se[k>>2]]<<24>>24;if(48==(0|u))var c=0|He.__str76246,h=k,a=h>>2;else if(49==(0|u))var c=0|He.__str77247,h=k,a=h>>2;else{if(50!=(0|u)){var c=0,h=k,a=h>>2;break}var c=0|He.__str78248,h=k,a=h>>2}}else var c=0,h=k,a=h>>2;while(0);var h,c,d=0==(512&l|0);do if(d){if((Ae[Se[a]]-48&255&255)>=3){var w=0;break}var w=0|He.__str79249}else var w=0;while(0);var w,p=Gr(r,0),E=Se[a],A=E+1|0;Se[a]=A;var g=Ae[E]<<24>>24;do{if(48==(0|g)||49==(0|g)||50==(0|g)||51==(0|g)||52==(0|g)||53==(0|g)){var y=r+44|0,m=Se[y>>2];Cr(n);var S=Pr(r,s,n,0);if(0==(0|S)){var M=0;t=28;break}var C=xr(r,f,_);if(0==(0|C)){var M=0;t=28;break}var R=Se[i],T=0==(0|R),O=Se[_>>2];do if(T)Se[i]=O;else{if(0==(0|O))break;var N=Dr(r,0|He.__str83253,(ne=Oe,Oe+=8,Se[ne>>2]=R,Se[ne+4>>2]=O,ne));Se[i]=N}while(0);Se[y>>2]=m,t=22;break}if(54==(0|g)||55==(0|g)){var I=s+4|0;Se[I>>2]=0,Se[e]=0;var P=xr(r,f,_);if(0==(0|P)){var M=0;t=28;break}if(Ae[Se[a]]<<24>>24==64){t=22;break}var D=qr(r);if(0==(0|D)){var M=0;t=28;break}var L=Dr(r,0|He.__str107277,(ne=Oe,Oe+=4,Se[ne>>2]=D,ne));Se[I>>2]=L,t=22;break}if(56==(0|g)||57==(0|g)){Se[e+1]=0,Se[e]=0,Se[i]=0,t=22;break}var M=0;t=28}while(0);if(22==t){var F=0==(4096&Se[o>>2]|0);do{if(F){var X=Se[e],j=Se[i];if(0==(0|j)){var U=X;t=26;break}var x=0!=(0|X)?0|He.__str87257:0,z=0|He.__str87257,V=j,B=x,H=X;t=27;break}Se[i]=0,Se[e+1]=0,Se[e]=0;var U=0;t=26;break}while(0);if(26==t)var U,K=0!=(0|U)?0|He.__str87257:0,z=K,V=0,B=0,H=U;var H,B,V,z,Y=Se[e+1],G=Dr(r,0|He.__str108278,(ne=Oe,Oe+=32,Se[ne>>2]=c,Se[ne+4>>2]=w,Se[ne+8>>2]=H,Se[ne+12>>2]=B,Se[ne+16>>2]=V,Se[ne+20>>2]=z,Se[ne+24>>2]=p,Se[ne+28>>2]=Y,ne));Se[r+16>>2]=G;var M=1}var M;return Oe=v,M}function Br(r,a){var e,i,v,t,f=Oe;Oe+=44;var _,s=f,t=s>>2,n=f+8,o=f+12,v=o>>2,l=f+16,b=f+20,k=f+40;Se[v]=0;var i=(r+12|0)>>2,u=Se[i],c=u+1|0;Se[i]=c;var h=ge[u],d=h<<24>>24,w=(h-65&255&255)>25;r:do if(w)var p=0;else{var e=(0|r)>>2,E=Me[e],A=0==(128&E|0),g=d-65|0;do if(A){var y=g/8|0;if(0==(0|y))var m=0|He.__str76246,S=g;else if(1==(0|y))var m=0|He.__str77247,S=g;else{if(2!=(0|y)){var m=0,S=g;break}var m=0|He.__str78248,S=g}}else var m=0,S=g;while(0);var S,m,M=0==(512&E|0)&h<<24>>24<89,C=(0|S)%8;do if(M)if(2==(0|C)||3==(0|C))var R=m,T=0|He.__str79249;else if(4==(0|C)||5==(0|C))var R=m,T=0|He.__str80250;else{if(6!=(0|C)&&7!=(0|C)){var R=m,T=0;break}var O=Dr(r,0|He.__str81251,(ne=Oe,Oe+=4,Se[ne>>2]=m,ne)),R=O,T=0|He.__str80250}else var R=m,T=0;while(0);var T,R,N=Gr(r,0),I=6==(0|C);do{if(!I){if(7==((d-56)%8|0)){_=14;break}var P=N;_=15;break}_=14}while(0);if(14==_)var D=Lr(r),L=Dr(r,0|He.__str82252,(ne=Oe,Oe+=8,Se[ne>>2]=N,Se[ne+4>>2]=D,ne)),P=L;var P,F=h<<24>>24>88;do if(F)var X=0;else{if((C-2|0)>>>0<2){var X=0;break}var j=xr(r,o,k);if(0==(0|j)){var p=0;break r}var U=Me[v],x=Se[k>>2];if(0==(0|U)&0==(0|x)){var X=0;break}var z=Dr(r,0|He.__str83253,(ne=Oe,Oe+=8,Se[ne>>2]=U,Se[ne+4>>2]=x,ne));Se[v]=z;var X=z}while(0);var X,V=Se[i],B=V+1|0;Se[i]=B;var H=Ae[V],K=Se[e],Y=Ur(H,n,l,K);if(0==(0|Y)){var p=0;break}Cr(b);var G=Se[i];if(Ae[G]<<24>>24==64){Se[t]=0|He.__str84254,Se[t+1]=0;var W=G+1|0;Se[i]=W}else{var Z=Pr(r,s,b,0);if(0==(0|Z)){var p=0;break}}if(0!=(4&Se[e]|0)&&(Se[t+1]=0,Se[t]=0),0==(0|a))var Q=P;else{var q=0|s,$=Se[q>>2],J=s+4|0,rr=Se[J>>2],ar=Dr(r,0|He.__str85255,(ne=Oe,Oe+=12,Se[ne>>2]=P,Se[ne+4>>2]=$,Se[ne+8>>2]=rr,ne));Se[J>>2]=0,Se[q>>2]=0;var Q=ar}var Q,er=r+44|0,ir=Se[er>>2],vr=Xr(r,b,1,40,41);if(0==(0|vr)){var p=0;break}if(0==(4096&Se[e]|0))var tr=vr,fr=X;else{Se[v]=0;var tr=0,fr=0}var fr,tr;Se[er>>2]=ir;var _r=Se[t],sr=Se[t+1];if(0==(0|_r))var nr=0;else var or=0!=(0|sr)?0:0|He.__str87257,nr=or;var nr,lr=Se[n>>2],br=0!=(0|lr)?0|He.__str87257:0,kr=Se[l>>2],ur=Dr(r,0|He.__str86256,(ne=Oe,Oe+=44,Se[ne>>2]=R,Se[ne+4>>2]=T,Se[ne+8>>2]=_r,Se[ne+12>>2]=nr,Se[ne+16>>2]=lr,Se[ne+20>>2]=br,Se[ne+24>>2]=kr,Se[ne+28>>2]=Q,Se[ne+32>>2]=tr,Se[ne+36>>2]=fr,Se[ne+40>>2]=sr,ne));Se[r+16>>2]=ur;var p=1}while(0);var p;return Oe=f,p}function Hr(r){var a,a=(r+12|0)>>2,e=Se[a];if(Ae[e]<<24>>24==36)var i=e;else{Xa(0|He.__str72242,1252,0|He.___func___handle_template,0|He.__str74244);var i=Se[a]}var i;Se[a]=i+1|0;var v=Kr(r),t=0==(0|v);do if(t)var f=0;else{var _=Xr(r,0,0,60,62);if(0==(0|_)){var f=0;break}var s=Dr(r,0|He.__str170,(ne=Oe,Oe+=8,Se[ne>>2]=v,Se[ne+4>>2]=_,ne));Se[r+16>>2]=s;var f=1}while(0);var f;return f}function Kr(r){for(var a,a=(r+12|0)>>2,e=Me[a],i=e,v=Ae[e];;){var v,i;if(!((v-65&255&255)<26|(v-97&255&255)<26|(v-48&255&255)<10)&&v<<24>>24!=95&&v<<24>>24!=36){var t=0;break}var f=i+1|0;Se[a]=f;var _=ge[f];if(_<<24>>24==64){Se[a]=i+2|0;var s=f-e|0,n=r+20|0,o=Fr(r,e,s,n);if(0==(0|o)){var t=0;break}var l=Se[r+24>>2]-1-Se[n>>2]|0,b=Yr(n,l),t=b;break}var i=f,v=_}var t;return t}function Yr(r,a){0==(0|r)&&Xa(0|He.__str72242,263,0|He.___func___str_array_get_ref,0|He.__str75245);var e=Se[r>>2]+a|0;if(e>>>0>2]>>>0)var i=Se[Se[r+16>>2]+(e<<2)>>2];else var i=0;var i;return i}function Gr(r,a){var e,e=(r+44|0)>>2,i=Me[e];if(i>>>0>a>>>0){for(var v=r+56|0,t=a,f=0,_=Se[v>>2],s=i;;){var s,_,f,t,n=Me[_+(t<<2)>>2];if(0==(0|n)){Xa(0|He.__str72242,680,0|He.___func___get_class_string,0|He.__str106276);var o=Se[v>>2],l=o,b=Se[o+(t<<2)>>2],k=Se[e]}else var l=_,b=n,k=s;var k,b,l,u=Ca(b),c=u+(f+2)|0,h=t+1|0;if(h>>>0>=k>>>0)break;var t=h,f=c,_=l,s=k}var d=c-1|0}else var d=-1;var d,w=Wr(r,d);if(0==(0|w))var p=0;else{var E=Se[e]-1|0,A=(0|E)<(0|a);r:do if(A)var g=0;else for(var y=r+56|0,m=0,S=E;;){var S,m,M=Se[Se[y>>2]+(S<<2)>>2],C=Ca(M),R=w+m|0;Pa(R,M,C,1);var T=C+m|0;if((0|S)>(0|a)){var O=T+1|0;Ae[w+T|0]=58;var N=T+2|0;Ae[w+O|0]=58;var I=N}else var I=T;var I,P=S-1|0;if((0|P)<(0|a)){var g=I;break r}var m=I,S=P}while(0);var g;Ae[w+g|0]=0;var p=w}var p;return p}function Wr(r,a){var e,i=a>>>0>1020;do if(i){var v=Se[r+4>>2],t=a+4|0,f=pe[v](t);if(0==(0|f)){var _=0;break}var s=r+60|0,n=Se[s>>2],o=f;Se[o>>2]=n,Se[s>>2]=f,Se[r+64>>2]=0;var _=f+4|0}else{var e=(r+64|0)>>2,l=Me[e];if(l>>>0>>0){var b=Se[r+4>>2],k=pe[b](1024);if(0==(0|k)){var _=0;break}var u=r+60|0,c=Se[u>>2],h=k;Se[h>>2]=c,Se[u>>2]=k,Se[e]=1020;var d=1020,w=k}else var d=l,w=Se[r+60>>2];var w,d;Se[e]=d-a|0;var _=w+(1024-d)|0}while(0);var _;return _}function Zr(r){var a=r<<24>>24;if(68==(0|a))var e=0|He.__str157327;else if(69==(0|a))var e=0|He.__str158328;else if(70==(0|a))var e=0|He.__str159329;else if(71==(0|a))var e=0|He.__str160330;else if(72==(0|a))var e=0|He.__str161331;else if(73==(0|a))var e=0|He.__str162332;else if(74==(0|a))var e=0|He.__str163333;else if(75==(0|a))var e=0|He.__str164334;else if(76==(0|a))var e=0|He.__str165335;else if(77==(0|a))var e=0|He.__str166336;else if(78==(0|a))var e=0|He.__str167337;else if(87==(0|a))var e=0|He.__str168338;else var e=0;var e;return e}function Qr(r){var a=r<<24>>24;if(67==(0|a))var e=0|He.__str145315;else if(68==(0|a))var e=0|He.__str146316;else if(69==(0|a))var e=0|He.__str147317;else if(70==(0|a))var e=0|He.__str148318;else if(71==(0|a))var e=0|He.__str149319;else if(72==(0|a))var e=0|He.__str150320;else if(73==(0|a))var e=0|He.__str151321;else if(74==(0|a))var e=0|He.__str152322;else if(75==(0|a))var e=0|He.__str153323;else if(77==(0|a))var e=0|He.__str154324;else if(78==(0|a))var e=0|He.__str155325;else if(79==(0|a))var e=0|He.__str156326;else if(88==(0|a))var e=0|He.__str84254;else if(90==(0|a))var e=0|He.__str110280;else var e=0;var e;return e}function qr(r){var a=r+44|0,e=Se[a>>2],i=zr(r);if(0==(0|i))var v=0;else var t=Gr(r,e),v=t;var v;return Se[a>>2]=e,v}function $r(r,a,e,i,v){var t,f,_,s=Oe;Oe+=16;var n,o=s,_=o>>2,l=s+4,b=s+8,f=b>>2;Se[l>>2]=0|ii;var t=(a+12|0)>>2,k=Se[t];if(Ae[k]<<24>>24==69){Se[l>>2]=0|He.__str134304;var u=k+1|0;Se[t]=u;var c=0|He.__str134304}else var c=0|ii;var c,h=i<<24>>24;do{if(65==(0|h)){var d=Dr(a,0|He.__str135305,(ne=Oe,Oe+=4,Se[ne>>2]=c,ne)),w=d;n=10;break}if(66==(0|h)){var p=Dr(a,0|He.__str136306,(ne=Oe,Oe+=4,Se[ne>>2]=c,ne)),w=p;n=10;break}if(80==(0|h)){var E=Dr(a,0|He.__str137307,(ne=Oe,Oe+=4,Se[ne>>2]=c,ne)),w=E;n=10;break}if(81==(0|h)){var A=Dr(a,0|He.__str138308,(ne=Oe,Oe+=4,Se[ne>>2]=c,ne)),w=A;n=10;break}if(82==(0|h)){var g=Dr(a,0|He.__str139309,(ne=Oe,Oe+=4,Se[ne>>2]=c,ne)),w=g;n=10;break}if(83==(0|h)){var y=Dr(a,0|He.__str140310,(ne=Oe,Oe+=4,Se[ne>>2]=c,ne)),w=y;n=10;break}if(63==(0|h)){var w=0|ii;n=10}else n=31}while(0);r:do if(10==n){var w,m=xr(a,o,l);if(0==(0|m))break;var S=a+44|0,M=Se[S>>2],C=Se[t],R=Ae[C]<<24>>24==89;a:do if(R){var T=C+1|0;Se[t]=T;var O=Lr(a);if(0==(0|O))break r;var N=Ha(O),I=Ae[w]<<24>>24==32,P=Se[_],D=0==(0|P);do{if(I){if(!D){n=17;break}var L=w+1|0;n=18;break}if(D){var L=w;n=18;break}n=17;break}while(0);if(17==n){var F=Dr(a,0|He.__str141311,(ne=Oe,Oe+=8,Se[ne>>2]=P,Se[ne+4>>2]=w,ne));Se[_]=0;var X=F}else if(18==n)var L,j=Dr(a,0|He.__str142312,(ne=Oe,Oe+=4,Se[ne>>2]=L,ne)),X=j;var X;if(0==(0|N)){var U=X;break}for(var x=X,z=N;;){var z,x,V=z-1|0,B=Lr(a),H=Dr(a,0|He.__str143313,(ne=Oe,Oe+=8,Se[ne>>2]=x,Se[ne+4>>2]=B,ne));if(0==(0|V)){var U=H;break a}var x=H,z=V}}else var U=w;while(0);var U,K=Pr(a,b,e,0);if(0==(0|K))break;var Y=Se[_];if(0==(0|Y)){var G=0==(0|v);do if(G){if(Ae[U]<<24>>24==0){var W=U;break}var Z=U+1|0;if(Ae[Z]<<24>>24!=42){var W=U;break}var Q=Se[f],q=Ca(Q);if(Ae[Q+(q-1)|0]<<24>>24!=42){var W=U;break}var W=Z}else var W=U;while(0);var W,$=Se[f],J=Dr(a,0|He.__str170,(ne=Oe,Oe+=8,Se[ne>>2]=$,Se[ne+4>>2]=W,ne));Se[r>>2]=J}else{var rr=Se[f],ar=Dr(a,0|He.__str144314,(ne=Oe,Oe+=12,Se[ne>>2]=rr,Se[ne+4>>2]=Y,Se[ne+8>>2]=U,ne));Se[r>>2]=ar}var er=Se[f+1];Se[r+4>>2]=er,Se[S>>2]=M}while(0);Oe=s}function Jr(r){var a,e=r>>>0<245;do{if(e){if(r>>>0<11)var i=16;else var i=r+11&-8;var i,v=i>>>3,t=Me[vi>>2],f=t>>>(v>>>0);if(0!=(3&f|0)){var _=(1&f^1)+v|0,s=_<<1,n=(s<<2)+vi+40|0,o=(s+2<<2)+vi+40|0,l=Me[o>>2],b=l+8|0,k=Me[b>>2];if((0|n)==(0|k))Se[vi>>2]=t&(1<<_^-1);else{if(k>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[o>>2]=k,Se[k+12>>2]=n}var u=_<<3;Se[l+4>>2]=3|u;var c=l+(4|u)|0,h=1|Se[c>>2];Se[c>>2]=h;var d=b;a=38;break}if(i>>>0<=Me[vi+8>>2]>>>0){var w=i;a=30;break}if(0!=(0|f)){var p=2<>>12&16,y=A>>>(g>>>0),m=y>>>5&8,S=y>>>(m>>>0),M=S>>>2&4,C=S>>>(M>>>0),R=C>>>1&2,T=C>>>(R>>>0),O=T>>>1&1,N=(m|g|M|R|O)+(T>>>(O>>>0))|0,I=N<<1,P=(I<<2)+vi+40|0,D=(I+2<<2)+vi+40|0,L=Me[D>>2],F=L+8|0,X=Me[F>>2];if((0|P)==(0|X))Se[vi>>2]=t&(1<>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[D>>2]=X,Se[X+12>>2]=P}var j=N<<3,U=j-i|0;Se[L+4>>2]=3|i;var x=L,z=x+i|0;Se[x+(4|i)>>2]=1|U,Se[x+j>>2]=U;var V=Me[vi+8>>2];if(0!=(0|V)){var B=Se[vi+20>>2],H=V>>>2&1073741822,K=(H<<2)+vi+40|0,Y=Me[vi>>2],G=1<<(V>>>3),W=0==(Y&G|0);do{if(!W){var Z=(H+2<<2)+vi+40|0,Q=Me[Z>>2];if(Q>>>0>=Me[vi+16>>2]>>>0){var q=Q,$=Z;break}throw Ka(),"Reached an unreachable!"}Se[vi>>2]=Y|G;var q=K,$=(H+2<<2)+vi+40|0}while(0);var $,q;Se[$>>2]=B,Se[q+12>>2]=B;var J=B+8|0;Se[J>>2]=q;var rr=B+12|0;Se[rr>>2]=K}Se[vi+8>>2]=U,Se[vi+20>>2]=z;var d=F;a=38;break}if(0==(0|Se[vi+4>>2])){var w=i;a=30;break}var ar=ra(i);if(0==(0|ar)){var w=i;a=30;break}var d=ar;a=38;break}if(r>>>0>4294967231){var w=-1;a=30;break}var er=r+11&-8;if(0==(0|Se[vi+4>>2])){var w=er;a=30;break}var ir=ea(er);if(0==(0|ir)){var w=er;a=30;break}var d=ir;a=38;break}while(0);if(30==a){var w,vr=Me[vi+8>>2];if(w>>>0>vr>>>0){var tr=Me[vi+12>>2];if(w>>>0>>0){var fr=tr-w|0;Se[vi+12>>2]=fr;var _r=Me[vi+24>>2],sr=_r;Se[vi+24>>2]=sr+w|0,Se[w+(sr+4)>>2]=1|fr,Se[_r+4>>2]=3|w;var d=_r+8|0}else var nr=aa(w),d=nr}else{var or=vr-w|0,lr=Me[vi+20>>2];if(or>>>0>15){var br=lr;Se[vi+20>>2]=br+w|0,Se[vi+8>>2]=or,Se[w+(br+4)>>2]=1|or,Se[br+vr>>2]=or,Se[lr+4>>2]=3|w}else{Se[vi+8>>2]=0,Se[vi+20>>2]=0,Se[lr+4>>2]=3|vr;var kr=vr+(lr+4)|0,ur=1|Se[kr>>2];Se[kr>>2]=ur}var d=lr+8|0}}var d;return d}function ra(r){var a,e,i,v=Se[vi+4>>2],t=(v&-v)-1|0,f=t>>>12&16,_=t>>>(f>>>0),s=_>>>5&8,n=_>>>(s>>>0),o=n>>>2&4,l=n>>>(o>>>0),b=l>>>1&2,k=l>>>(b>>>0),u=k>>>1&1,c=Me[vi+((s|f|o|b|u)+(k>>>(u>>>0))<<2)+304>>2],h=c,e=h>>2,d=(Se[c+4>>2]&-8)-r|0;r:for(;;)for(var d,h,w=h;;){var w,p=Se[w+16>>2];if(0==(0|p)){var E=Se[w+20>>2];if(0==(0|E))break r;var A=E}else var A=p;var A,g=(Se[A+4>>2]&-8)-r|0;if(g>>>0>>0){var h=A,e=h>>2,d=g;continue r}var w=A}var y=h,m=Me[vi+16>>2],S=y>>>0>>0;do if(!S){var M=y+r|0,C=M;if(y>>>0>=M>>>0)break;var R=Me[e+6],T=Me[e+3],O=(0|T)==(0|h);do if(O){var N=h+20|0,I=Se[N>>2];if(0==(0|I)){var P=h+16|0,D=Se[P>>2];if(0==(0|D)){var L=0,a=L>>2;break}var F=P,X=D}else{var F=N,X=I;i=14}for(;;){var X,F,j=X+20|0,U=Se[j>>2];if(0==(0|U)){var x=X+16|0,z=Me[x>>2];if(0==(0|z))break;var F=x,X=z}else var F=j,X=U}if(F>>>0>>0)throw Ka(),"Reached an unreachable!";Se[F>>2]=0;var L=X,a=L>>2}else{var V=Me[e+2];if(V>>>0>>0)throw Ka(),"Reached an unreachable!";Se[V+12>>2]=T,Se[T+8>>2]=V;var L=T,a=L>>2}while(0);var L,B=0==(0|R);r:do if(!B){var H=h+28|0,K=(Se[H>>2]<<2)+vi+304|0,Y=(0|h)==(0|Se[K>>2]);do{if(Y){if(Se[K>>2]=L,0!=(0|L))break;var G=Se[vi+4>>2]&(1<>2]^-1);Se[vi+4>>2]=G;break r}if(R>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";var W=R+16|0;if((0|Se[W>>2])==(0|h)?Se[W>>2]=L:Se[R+20>>2]=L,0==(0|L))break r}while(0);if(L>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[a+6]=R;var Z=Me[e+4];if(0!=(0|Z)){if(Z>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[a+4]=Z,Se[Z+24>>2]=L}var Q=Me[e+5];if(0==(0|Q))break;if(Q>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[a+5]=Q,Se[Q+24>>2]=L}while(0);if(d>>>0<16){var q=d+r|0;Se[e+1]=3|q;var $=q+(y+4)|0,J=1|Se[$>>2];Se[$>>2]=J}else{Se[e+1]=3|r,Se[r+(y+4)>>2]=1|d,Se[y+d+r>>2]=d;var rr=Me[vi+8>>2];if(0!=(0|rr)){var ar=Me[vi+20>>2],er=rr>>>2&1073741822,ir=(er<<2)+vi+40|0,vr=Me[vi>>2],tr=1<<(rr>>>3),fr=0==(vr&tr|0);do{if(!fr){var _r=(er+2<<2)+vi+40|0,sr=Me[_r>>2];if(sr>>>0>=Me[vi+16>>2]>>>0){var nr=sr,or=_r;break}throw Ka(),"Reached an unreachable!"}Se[vi>>2]=vr|tr;var nr=ir,or=(er+2<<2)+vi+40|0}while(0);var or,nr;Se[or>>2]=ar,Se[nr+12>>2]=ar,Se[ar+8>>2]=nr,Se[ar+12>>2]=ir}Se[vi+8>>2]=d,Se[vi+20>>2]=C}return h+8|0}while(0);throw Ka(),"Reached an unreachable!"}function aa(r){var a,e;0==(0|Se[ti>>2])&&ba();var i=0==(4&Se[vi+440>>2]|0);do{if(i){var v=Se[vi+24>>2],t=0==(0|v);do{if(!t){var f=v,_=ua(f);if(0==(0|_)){e=6;break}var s=Se[ti+8>>2],n=r+47-Se[vi+12>>2]+s&-s;if(n>>>0>=2147483647){e=14;break}var o=re(n);if((0|o)==(Se[_>>2]+Se[_+4>>2]|0)){var l=o,b=n,k=o;e=13;break}var u=o,c=n;e=15;break}e=6}while(0);do if(6==e){var h=re(0);if((0|h)==-1){e=14;break}var d=Se[ti+8>>2],w=d+(r+47)&-d,p=h,E=Se[ti+4>>2],A=E-1|0;if(0==(A&p|0))var g=w;else var g=w-p+(A+p&-E)|0;var g;if(g>>>0>=2147483647){e=14;break}var y=re(g);if((0|y)==(0|h)){var l=h,b=g,k=y;e=13;break}var u=y,c=g;e=15;break}while(0);if(13==e){var k,b,l;if((0|l)!=-1){var m=b,S=l;e=26;break}var u=k,c=b}else if(14==e){var M=4|Se[vi+440>>2];Se[vi+440>>2]=M,e=23;break}var c,u,C=0|-c,R=(0|u)!=-1&c>>>0<2147483647;do{if(R){if(c>>>0>=(r+48|0)>>>0){var T=c;e=21;break}var O=Se[ti+8>>2],N=r+47-c+O&-O;if(N>>>0>=2147483647){var T=c;e=21;break}var I=re(N);if((0|I)==-1){re(C);e=22;break}var T=N+c|0;e=21;break}var T=c;e=21}while(0);if(21==e){var T;if((0|u)!=-1){var m=T,S=u;e=26;break}}var P=4|Se[vi+440>>2];Se[vi+440>>2]=P,e=23;break}e=23}while(0);do if(23==e){var D=Se[ti+8>>2],L=D+(r+47)&-D;if(L>>>0>=2147483647){e=49;break}var F=re(L),X=re(0);if(!((0|X)!=-1&(0|F)!=-1&F>>>0>>0)){e=49;break}var j=X-F|0;if(j>>>0<=(r+40|0)>>>0|(0|F)==-1){e=49;break}var m=j,S=F;e=26;break}while(0);r:do if(26==e){var S,m,U=Se[vi+432>>2]+m|0;Se[vi+432>>2]=U,U>>>0>Me[vi+436>>2]>>>0&&(Se[vi+436>>2]=U);var x=Me[vi+24>>2],z=0==(0|x);a:do if(z){var V=Me[vi+16>>2];0==(0|V)|S>>>0>>0&&(Se[vi+16>>2]=S),Se[vi+444>>2]=S,Se[vi+448>>2]=m,Se[vi+456>>2]=0;var B=Se[ti>>2];Se[vi+36>>2]=B,Se[vi+32>>2]=-1,ha(),ca(S,m-40|0)}else{for(var H=vi+444|0,a=H>>2;;){var H;if(0==(0|H))break;var K=Me[a],Y=H+4|0,G=Me[Y>>2],W=K+G|0;if((0|S)==(0|W)){if(0!=(8&Se[a+3]|0))break;var Z=x;if(!(Z>>>0>=K>>>0&Z>>>0>>0))break;Se[Y>>2]=G+m|0;var Q=Se[vi+24>>2],q=Se[vi+12>>2]+m|0;ca(Q,q);break a}var H=Se[a+2],a=H>>2}S>>>0>2]>>>0&&(Se[vi+16>>2]=S);for(var $=S+m|0,J=vi+444|0;;){var J;if(0==(0|J))break;var rr=0|J,ar=Me[rr>>2];if((0|ar)==(0|$)){if(0!=(8&Se[J+12>>2]|0))break;Se[rr>>2]=S;var er=J+4|0,ir=Se[er>>2]+m|0;Se[er>>2]=ir;var vr=da(S,ar,r),tr=vr;e=50;break r}var J=Se[J+8>>2]}Ma(S,m)}while(0);var fr=Me[vi+12>>2];if(fr>>>0<=r>>>0){e=49;break}var _r=fr-r|0;Se[vi+12>>2]=_r;var sr=Me[vi+24>>2],nr=sr;Se[vi+24>>2]=nr+r|0,Se[r+(nr+4)>>2]=1|_r,Se[sr+4>>2]=3|r;var tr=sr+8|0;e=50;break}while(0);if(49==e){var or=Je();Se[or>>2]=12;var tr=0}var tr;return tr}function ea(r){var a,e,i,v,t,f,_=r>>2,s=0|-r,n=r>>>8,o=0==(0|n);do if(o)var l=0;else{if(r>>>0>16777215){var l=31;break}var b=(n+1048320|0)>>>16&8,k=n<>>16&4,c=k<>>16&2,d=14-(u|b|h)+(c<>>15)|0,l=r>>>((d+7|0)>>>0)&1|d<<1}while(0);var l,w=Me[vi+(l<<2)+304>>2],p=0==(0|w);r:do if(p)var E=0,A=s,g=0;else{if(31==(0|l))var y=0;else var y=25-(l>>>1)|0;for(var y,m=0,S=s,M=w,t=M>>2,C=r<>>0>>0){if((0|T)==(0|r)){var E=M,A=O,g=M;break r}var N=M,I=O}else var N=m,I=S;var I,N,P=Me[t+5],D=Me[((C>>>31<<2)+16>>2)+t],L=0==(0|P)|(0|P)==(0|D)?R:P;if(0==(0|D)){var E=N,A=I,g=L;break r}var m=N,S=I,M=D,t=M>>2,C=C<<1,R=L}}while(0);var g,A,E,F=0==(0|g)&0==(0|E);do if(F){var X=2<>2]&(X|-X);if(0==(0|j)){var U=g;break}var x=(j&-j)-1|0,z=x>>>12&16,V=x>>>(z>>>0),B=V>>>5&8,H=V>>>(B>>>0),K=H>>>2&4,Y=H>>>(K>>>0),G=Y>>>1&2,W=Y>>>(G>>>0),Z=W>>>1&1,U=Se[vi+((B|z|K|G|Z)+(W>>>(Z>>>0))<<2)+304>>2]}else var U=g;while(0);var U,Q=0==(0|U);r:do if(Q)var q=A,$=E,v=$>>2;else for(var J=U,i=J>>2,rr=A,ar=E;;){var ar,rr,J,er=(Se[i+1]&-8)-r|0,ir=er>>>0>>0,vr=ir?er:rr,tr=ir?J:ar,fr=Me[i+4];if(0==(0|fr)){var _r=Me[i+5];if(0==(0|_r)){var q=vr,$=tr,v=$>>2;break r}var J=_r,i=J>>2,rr=vr,ar=tr}else var J=fr,i=J>>2,rr=vr,ar=tr}while(0);var $,q,sr=0==(0|$);r:do{if(!sr){if(q>>>0>=(Se[vi+8>>2]-r|0)>>>0){var nr=0;break}var or=$,e=or>>2,lr=Me[vi+16>>2],br=or>>>0>>0;do if(!br){var kr=or+r|0,ur=kr;if(or>>>0>=kr>>>0)break;var cr=Me[v+6],hr=Me[v+3],dr=(0|hr)==(0|$);do if(dr){var wr=$+20|0,pr=Se[wr>>2];if(0==(0|pr)){var Er=$+16|0,Ar=Se[Er>>2];if(0==(0|Ar)){var gr=0,a=gr>>2;break}var yr=Er,mr=Ar}else{var yr=wr,mr=pr;f=28}for(;;){var mr,yr,Sr=mr+20|0,Mr=Se[Sr>>2];if(0==(0|Mr)){var Cr=mr+16|0,Rr=Me[Cr>>2];if(0==(0|Rr))break;var yr=Cr,mr=Rr}else var yr=Sr,mr=Mr}if(yr>>>0>>0)throw Ka(),"Reached an unreachable!";Se[yr>>2]=0;var gr=mr,a=gr>>2}else{var Tr=Me[v+2];if(Tr>>>0>>0)throw Ka(),"Reached an unreachable!";Se[Tr+12>>2]=hr,Se[hr+8>>2]=Tr;var gr=hr,a=gr>>2}while(0);var gr,Or=0==(0|cr);a:do if(!Or){var Nr=$+28|0,Ir=(Se[Nr>>2]<<2)+vi+304|0,Pr=(0|$)==(0|Se[Ir>>2]);do{if(Pr){if(Se[Ir>>2]=gr,0!=(0|gr))break;var Dr=Se[vi+4>>2]&(1<>2]^-1);Se[vi+4>>2]=Dr;break a}if(cr>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";var Lr=cr+16|0;if((0|Se[Lr>>2])==(0|$)?Se[Lr>>2]=gr:Se[cr+20>>2]=gr,0==(0|gr))break a}while(0);if(gr>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[a+6]=cr;var Fr=Me[v+4];if(0!=(0|Fr)){if(Fr>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[a+4]=Fr,Se[Fr+24>>2]=gr}var Xr=Me[v+5];if(0==(0|Xr))break;if(Xr>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[a+5]=Xr,Se[Xr+24>>2]=gr}while(0);var jr=q>>>0<16;a:do if(jr){var Ur=q+r|0;Se[v+1]=3|Ur;var xr=Ur+(or+4)|0,zr=1|Se[xr>>2];Se[xr>>2]=zr}else if(Se[v+1]=3|r,Se[_+(e+1)]=1|q,Se[(q>>2)+e+_]=q,q>>>0<256){var Vr=q>>>2&1073741822,Br=(Vr<<2)+vi+40|0,Hr=Me[vi>>2],Kr=1<<(q>>>3),Yr=0==(Hr&Kr|0);do{if(!Yr){var Gr=(Vr+2<<2)+vi+40|0,Wr=Me[Gr>>2];if(Wr>>>0>=Me[vi+16>>2]>>>0){var Zr=Wr,Qr=Gr;break}throw Ka(),"Reached an unreachable!"}Se[vi>>2]=Hr|Kr;var Zr=Br,Qr=(Vr+2<<2)+vi+40|0}while(0);var Qr,Zr;Se[Qr>>2]=ur,Se[Zr+12>>2]=ur,Se[_+(e+2)]=Zr,Se[_+(e+3)]=Br}else{var qr=kr,$r=q>>>8,Jr=0==(0|$r);do if(Jr)var ra=0;else{if(q>>>0>16777215){var ra=31;break}var aa=($r+1048320|0)>>>16&8,ea=$r<>>16&4,va=ea<>>16&2,fa=14-(ia|aa|ta)+(va<>>15)|0,ra=q>>>((fa+7|0)>>>0)&1|fa<<1}while(0);var ra,_a=(ra<<2)+vi+304|0;Se[_+(e+7)]=ra;var sa=r+(or+16)|0;Se[_+(e+5)]=0,Se[sa>>2]=0;var na=Se[vi+4>>2],oa=1<>2]=la,Se[_a>>2]=qr,Se[_+(e+6)]=_a,Se[_+(e+3)]=qr,Se[_+(e+2)]=qr}else{if(31==(0|ra))var ba=0;else var ba=25-(ra>>>1)|0;for(var ba,ka=q<>2];;){var ua,ka;if((Se[ua+4>>2]&-8|0)==(0|q)){var ca=ua+8|0,ha=Me[ca>>2],da=Me[vi+16>>2],wa=ua>>>0>>0;do if(!wa){if(ha>>>0>>0)break;Se[ha+12>>2]=qr,Se[ca>>2]=qr,Se[_+(e+2)]=ha,Se[_+(e+3)]=ua,Se[_+(e+6)]=0;break a}while(0);throw Ka(),"Reached an unreachable!"}var pa=(ka>>>31<<2)+ua+16|0,Ea=Me[pa>>2];if(0==(0|Ea)){if(pa>>>0>=Me[vi+16>>2]>>>0){Se[pa>>2]=qr,Se[_+(e+6)]=ua,Se[_+(e+3)]=qr,Se[_+(e+2)]=qr;break a}throw Ka(),"Reached an unreachable!"}var ka=ka<<1,ua=Ea}}}while(0);var nr=$+8|0;break r}while(0);throw Ka(),"Reached an unreachable!"}var nr=0}while(0);var nr;return nr}function ia(r){var a;0==(0|Se[ti>>2])&&ba();var e=r>>>0<4294967232;r:do if(e){var i=Me[vi+24>>2];if(0==(0|i)){var v=0;break}var t=Me[vi+12>>2],f=t>>>0>(r+40|0)>>>0;do if(f){var _=Me[ti+8>>2],s=-40-r-1+t+_|0,n=Math.floor((s>>>0)/(_>>>0)),o=(n-1)*_|0,l=i,b=ua(l);if(0!=(8&Se[b+12>>2]|0))break;var k=re(0),a=(b+4|0)>>2;if((0|k)!=(Se[b>>2]+Se[a]|0))break;var u=o>>>0>2147483646?-2147483648-_|0:o,c=0|-u,h=re(c),d=re(0);if(!((0|h)!=-1&d>>>0>>0))break;var w=k-d|0;if((0|k)==(0|d))break;var p=Se[a]-w|0;Se[a]=p;var E=Se[vi+432>>2]-w|0;Se[vi+432>>2]=E;var A=Se[vi+24>>2],g=Se[vi+12>>2]-w|0;ca(A,g);var v=(0|k)!=(0|d);break r}while(0);if(Me[vi+12>>2]>>>0<=Me[vi+28>>2]>>>0){var v=0;break}Se[vi+28>>2]=-1;var v=0}else var v=0;while(0);var v;return 1&v}function va(r){var a,e,i,v,t,f,_,s=r>>2,n=0==(0|r);r:do if(!n){var o=r-8|0,l=o,b=Me[vi+16>>2],k=o>>>0>>0;a:do if(!k){var u=Me[r-4>>2],c=3&u;if(1==(0|c))break;var h=u&-8,f=h>>2,d=r+(h-8)|0,w=d,p=0==(1&u|0);e:do if(p){var E=Me[o>>2];if(0==(0|c))break r;var A=-8-E|0,t=A>>2,g=r+A|0,y=g,m=E+h|0;if(g>>>0>>0)break a;if((0|y)==(0|Se[vi+20>>2])){var v=(r+(h-4)|0)>>2;if(3!=(3&Se[v]|0)){var S=y,i=S>>2,M=m;break}Se[vi+8>>2]=m;var C=Se[v]&-2;Se[v]=C,Se[t+(s+1)]=1|m,Se[d>>2]=m;break r}if(E>>>0<256){var R=Me[t+(s+2)],T=Me[t+(s+3)];if((0|R)!=(0|T)){var O=((E>>>2&1073741822)<<2)+vi+40|0,N=(0|R)!=(0|O)&R>>>0>>0;do if(!N){if(!((0|T)==(0|O)|T>>>0>=b>>>0))break;Se[R+12>>2]=T,Se[T+8>>2]=R;var S=y,i=S>>2,M=m;break e}while(0);throw Ka(),"Reached an unreachable!"}var I=Se[vi>>2]&(1<<(E>>>3)^-1);Se[vi>>2]=I;var S=y,i=S>>2,M=m}else{var P=g,D=Me[t+(s+6)],L=Me[t+(s+3)],F=(0|L)==(0|P);do if(F){var X=A+(r+20)|0,j=Se[X>>2];if(0==(0|j)){var U=A+(r+16)|0,x=Se[U>>2];if(0==(0|x)){var z=0,e=z>>2;break}var V=U,B=x}else{var V=X,B=j;_=21}for(;;){var B,V,H=B+20|0,K=Se[H>>2];if(0==(0|K)){var Y=B+16|0,G=Me[Y>>2];if(0==(0|G))break;var V=Y,B=G}else var V=H,B=K}if(V>>>0>>0)throw Ka(),"Reached an unreachable!";Se[V>>2]=0;var z=B,e=z>>2}else{var W=Me[t+(s+2)];if(W>>>0>>0)throw Ka(),"Reached an unreachable!";Se[W+12>>2]=L,Se[L+8>>2]=W;var z=L,e=z>>2}while(0);var z;if(0==(0|D)){var S=y,i=S>>2,M=m;break}var Z=A+(r+28)|0,Q=(Se[Z>>2]<<2)+vi+304|0,q=(0|P)==(0|Se[Q>>2]);do{if(q){if(Se[Q>>2]=z,0!=(0|z))break;var $=Se[vi+4>>2]&(1<>2]^-1);Se[vi+4>>2]=$;var S=y,i=S>>2,M=m;break e}if(D>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";var J=D+16|0;if((0|Se[J>>2])==(0|P)?Se[J>>2]=z:Se[D+20>>2]=z,0==(0|z)){var S=y,i=S>>2,M=m;break e}}while(0);if(z>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[e+6]=D;var rr=Me[t+(s+4)];if(0!=(0|rr)){if(rr>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[e+4]=rr,Se[rr+24>>2]=z}var ar=Me[t+(s+5)];if(0==(0|ar)){var S=y,i=S>>2,M=m;break}if(ar>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[e+5]=ar,Se[ar+24>>2]=z;var S=y,i=S>>2,M=m}}else var S=l,i=S>>2,M=h;while(0);var M,S,er=S;if(er>>>0>=d>>>0)break;var ir=r+(h-4)|0,vr=Me[ir>>2];if(0==(1&vr|0))break;var tr=0==(2&vr|0);do{if(tr){if((0|w)==(0|Se[vi+24>>2])){var fr=Se[vi+12>>2]+M|0;Se[vi+12>>2]=fr,Se[vi+24>>2]=S;var _r=1|fr;if(Se[i+1]=_r,(0|S)==(0|Se[vi+20>>2])&&(Se[vi+20>>2]=0,Se[vi+8>>2]=0),fr>>>0<=Me[vi+28>>2]>>>0)break r;ia(0);break r}if((0|w)==(0|Se[vi+20>>2])){var sr=Se[vi+8>>2]+M|0;Se[vi+8>>2]=sr,Se[vi+20>>2]=S;var nr=1|sr;Se[i+1]=nr;var or=er+sr|0;Se[or>>2]=sr;break r}var lr=(vr&-8)+M|0,br=vr>>>3,kr=vr>>>0<256;e:do if(kr){var ur=Me[s+f],cr=Me[((4|h)>>2)+s];if((0|ur)!=(0|cr)){var hr=((vr>>>2&1073741822)<<2)+vi+40|0,dr=(0|ur)==(0|hr);do{if(!dr){if(ur>>>0>2]>>>0){_=66;break}_=63;break}_=63}while(0);do if(63==_){if((0|cr)!=(0|hr)&&cr>>>0>2]>>>0)break;Se[ur+12>>2]=cr,Se[cr+8>>2]=ur;break e}while(0);throw Ka(),"Reached an unreachable!"}var wr=Se[vi>>2]&(1<>2]=wr}else{var pr=d,Er=Me[f+(s+4)],Ar=Me[((4|h)>>2)+s],gr=(0|Ar)==(0|pr);do if(gr){var yr=h+(r+12)|0,mr=Se[yr>>2];if(0==(0|mr)){var Sr=h+(r+8)|0,Mr=Se[Sr>>2];if(0==(0|Mr)){var Cr=0,a=Cr>>2;break}var Rr=Sr,Tr=Mr}else{var Rr=yr,Tr=mr;_=73}for(;;){var Tr,Rr,Or=Tr+20|0,Nr=Se[Or>>2];if(0==(0|Nr)){var Ir=Tr+16|0,Pr=Me[Ir>>2];if(0==(0|Pr))break;var Rr=Ir,Tr=Pr}else var Rr=Or,Tr=Nr}if(Rr>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[Rr>>2]=0;var Cr=Tr,a=Cr>>2}else{var Dr=Me[s+f];if(Dr>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[Dr+12>>2]=Ar,\nSe[Ar+8>>2]=Dr;var Cr=Ar,a=Cr>>2}while(0);var Cr;if(0==(0|Er))break;var Lr=h+(r+20)|0,Fr=(Se[Lr>>2]<<2)+vi+304|0,Xr=(0|pr)==(0|Se[Fr>>2]);do{if(Xr){if(Se[Fr>>2]=Cr,0!=(0|Cr))break;var jr=Se[vi+4>>2]&(1<>2]^-1);Se[vi+4>>2]=jr;break e}if(Er>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";var Ur=Er+16|0;if((0|Se[Ur>>2])==(0|pr)?Se[Ur>>2]=Cr:Se[Er+20>>2]=Cr,0==(0|Cr))break e}while(0);if(Cr>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[a+6]=Er;var xr=Me[f+(s+2)];if(0!=(0|xr)){if(xr>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[a+4]=xr,Se[xr+24>>2]=Cr}var zr=Me[f+(s+3)];if(0==(0|zr))break;if(zr>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[a+5]=zr,Se[zr+24>>2]=Cr}while(0);if(Se[i+1]=1|lr,Se[er+lr>>2]=lr,(0|S)!=(0|Se[vi+20>>2])){var Vr=lr;break}Se[vi+8>>2]=lr;break r}Se[ir>>2]=vr&-2,Se[i+1]=1|M,Se[er+M>>2]=M;var Vr=M}while(0);var Vr;if(Vr>>>0<256){var Br=Vr>>>2&1073741822,Hr=(Br<<2)+vi+40|0,Kr=Me[vi>>2],Yr=1<<(Vr>>>3),Gr=0==(Kr&Yr|0);do{if(!Gr){var Wr=(Br+2<<2)+vi+40|0,Zr=Me[Wr>>2];if(Zr>>>0>=Me[vi+16>>2]>>>0){var Qr=Zr,qr=Wr;break}throw Ka(),"Reached an unreachable!"}Se[vi>>2]=Kr|Yr;var Qr=Hr,qr=(Br+2<<2)+vi+40|0}while(0);var qr,Qr;Se[qr>>2]=S,Se[Qr+12>>2]=S,Se[i+2]=Qr,Se[i+3]=Hr;break r}var $r=S,Jr=Vr>>>8,ra=0==(0|Jr);do if(ra)var aa=0;else{if(Vr>>>0>16777215){var aa=31;break}var ea=(Jr+1048320|0)>>>16&8,va=Jr<>>16&4,_a=va<>>16&2,na=14-(fa|ea|sa)+(_a<>>15)|0,aa=Vr>>>((na+7|0)>>>0)&1|na<<1}while(0);var aa,oa=(aa<<2)+vi+304|0;Se[i+7]=aa,Se[i+5]=0,Se[i+4]=0;var la=Se[vi+4>>2],ba=1<>2]=ua,Se[oa>>2]=$r,Se[i+6]=oa,Se[i+3]=S,Se[i+2]=S}else{if(31==(0|aa))var ca=0;else var ca=25-(aa>>>1)|0;for(var ca,ha=Vr<>2];;){var da,ha;if((Se[da+4>>2]&-8|0)==(0|Vr)){var wa=da+8|0,pa=Me[wa>>2],Ea=Me[vi+16>>2],Aa=da>>>0>>0;do if(!Aa){if(pa>>>0>>0)break;Se[pa+12>>2]=$r,Se[wa>>2]=$r,Se[i+2]=pa,Se[i+3]=da,Se[i+6]=0;break e}while(0);throw Ka(),"Reached an unreachable!"}var ga=(ha>>>31<<2)+da+16|0,ya=Me[ga>>2];if(0==(0|ya)){if(ga>>>0>=Me[vi+16>>2]>>>0){Se[ga>>2]=$r,Se[i+6]=da,Se[i+3]=S,Se[i+2]=S;break e}throw Ka(),"Reached an unreachable!"}var ha=ha<<1,da=ya}}while(0);var ma=Se[vi+32>>2]-1|0;if(Se[vi+32>>2]=ma,0!=(0|ma))break r;ta();break r}while(0);throw Ka(),"Reached an unreachable!"}while(0)}function ta(){var r=Se[vi+452>>2],a=0==(0|r);r:do if(!a)for(var e=r;;){var e,i=Se[e+8>>2];if(0==(0|i))break r;var e=i}while(0);Se[vi+32>>2]=-1}function fa(r,a){if(0==(0|r))var e=Jr(a),i=e;else var v=la(r,a),i=v;var i;return i}function _a(r,a){var e,i=r>>>0<9;do if(i)var v=Jr(a),t=v;else{var f=r>>>0<16?16:r,_=0==(f-1&f|0);r:do if(_)var s=f;else{if(f>>>0<=16){var s=16;break}for(var n=16;;){var n,o=n<<1;if(o>>>0>=f>>>0){var s=o;break r}var n=o}}while(0);var s;if((-64-s|0)>>>0>a>>>0){if(a>>>0<11)var l=16;else var l=a+11&-8;var l,b=Jr(l+(s+12)|0);if(0==(0|b)){var t=0;break}var k=b-8|0;if(0==((b>>>0)%(s>>>0)|0))var u=k,c=0;else{var h=b+(s-1)&-s,d=h-8|0,w=k;if((d-w|0)>>>0>15)var p=d;else var p=h+(s-8)|0;var p,E=p-w|0,e=(b-4|0)>>2,A=Se[e],g=(A&-8)-E|0;if(0==(3&A|0)){var y=Se[k>>2]+E|0;Se[p>>2]=y,Se[p+4>>2]=g;var u=p,c=0}else{var m=p+4|0,S=g|1&Se[m>>2]|2;Se[m>>2]=S;var M=g+(p+4)|0,C=1|Se[M>>2];Se[M>>2]=C;var R=E|1&Se[e]|2;Se[e]=R;var T=b+(E-4)|0,O=1|Se[T>>2];Se[T>>2]=O;var u=p,c=b}}var c,u,N=u+4|0,I=Me[N>>2],P=0==(3&I|0);do if(P)var D=0;else{var L=I&-8;if(L>>>0<=(l+16|0)>>>0){var D=0;break}var F=L-l|0;Se[N>>2]=l|1&I|2,Se[u+(4|l)>>2]=3|F;var X=u+(4|L)|0,j=1|Se[X>>2];Se[X>>2]=j;var D=l+(u+8)|0}while(0);var D;0!=(0|c)&&va(c),0!=(0|D)&&va(D);var t=u+8|0}else{var U=Je();Se[U>>2]=12;var t=0}}while(0);var t;return t}function sa(r,a,e,i){var v,t;0==(0|Se[ti>>2])&&ba();var f=0==(0|i),_=0==(0|r);do{if(f){if(_){var s=Jr(0),n=s;t=30;break}var o=r<<2;if(o>>>0<11){var l=0,b=16;t=9;break}var l=0,b=o+11&-8;t=9;break}if(_){var n=i;t=30;break}var l=i,b=0;t=9;break}while(0);do if(9==t){var b,l,k=0==(1&e|0);r:do if(k){if(_){var u=0,c=0;break}for(var h=0,d=0;;){var d,h,w=Me[a+(d<<2)>>2];if(w>>>0<11)var p=16;else var p=w+11&-8;var p,E=p+h|0,A=d+1|0;if((0|A)==(0|r)){var u=0,c=E;break r}var h=E,d=A}}else{var g=Me[a>>2];if(g>>>0<11)var y=16;else var y=g+11&-8;var y,u=y,c=y*r|0}while(0);var c,u,m=Jr(b-4+c|0);if(0==(0|m)){var n=0;break}var S=m-8|0,M=Se[m-4>>2]&-8;if(0!=(2&e|0)){var C=-4-b+M|0;Fa(m,0,C,1)}if(0==(0|l)){var R=m+c|0,T=M-c|3;Se[m+(c-4)>>2]=T;var O=R,v=O>>2,N=c}else var O=l,v=O>>2,N=M;var N,O;Se[v]=m;var I=r-1|0,P=0==(0|I);r:do if(P)var D=S,L=N;else if(0==(0|u))for(var F=S,X=N,j=0;;){var j,X,F,U=Me[a+(j<<2)>>2];if(U>>>0<11)var x=16;else var x=U+11&-8;var x,z=X-x|0;Se[F+4>>2]=3|x;var V=F+x|0,B=j+1|0;if(Se[(B<<2>>2)+v]=x+(F+8)|0,(0|B)==(0|I)){var D=V,L=z;break r}var F=V,X=z,j=B}else for(var H=3|u,K=u+8|0,Y=S,G=N,W=0;;){var W,G,Y,Z=G-u|0;Se[Y+4>>2]=H;var Q=Y+u|0,q=W+1|0;if(Se[(q<<2>>2)+v]=Y+K|0,(0|q)==(0|I)){var D=Q,L=Z;break r}var Y=Q,G=Z,W=q}while(0);var L,D;Se[D+4>>2]=3|L;var n=O}while(0);var n;return n}function na(r){var a=r>>2;0==(0|Se[ti>>2])&&ba();var e=Me[vi+24>>2];if(0==(0|e))var i=0,v=0,t=0,f=0,_=0,s=0,n=0;else{for(var o=Me[vi+12>>2],l=o+40|0,b=vi+444|0,k=l,u=l,c=1;;){var c,u,k,b,h=Me[b>>2],d=h+8|0;if(0==(7&d|0))var w=0;else var w=7&-d;for(var w,p=b+4|0,E=h+w|0,A=c,g=u,y=k;;){var y,g,A,E;if(E>>>0>>0)break;if(E>>>0>=(h+Se[p>>2]|0)>>>0|(0|E)==(0|e))break;var m=Se[E+4>>2];if(7==(0|m))break;var S=m&-8,M=S+y|0;if(1==(3&m|0))var C=A+1|0,R=S+g|0;else var C=A,R=g;var R,C,E=E+S|0,A=C,g=R,y=M}var T=Me[b+8>>2];if(0==(0|T))break;var b=T,k=y,u=g,c=A}var O=Se[vi+432>>2],i=y,v=A,t=o,f=g,_=O-y|0,s=Se[vi+436>>2],n=O-g|0}var n,s,_,f,t,v,i;Se[a]=i,Se[a+1]=v,Se[a+2]=0,Se[a+3]=0,Se[a+4]=_,Se[a+5]=s,Se[a+6]=0,Se[a+7]=n,Se[a+8]=f,Se[a+9]=t}function oa(){0==(0|Se[ti>>2])&&ba();var r=Me[vi+24>>2],a=0==(0|r);r:do if(a)var e=0,i=0,v=0;else for(var t=Se[vi+436>>2],f=Me[vi+432>>2],_=vi+444|0,s=f-40-Se[vi+12>>2]|0;;){var s,_,n=Me[_>>2],o=n+8|0;if(0==(7&o|0))var l=0;else var l=7&-o;for(var l,b=_+4|0,k=n+l|0,u=s;;){var u,k;if(k>>>0>>0)break;if(k>>>0>=(n+Se[b>>2]|0)>>>0|(0|k)==(0|r))break;var c=Se[k+4>>2];if(7==(0|c))break;var h=c&-8,d=1==(3&c|0)?h:0,w=u-d|0,k=k+h|0,u=w}var p=Me[_+8>>2];if(0==(0|p)){var e=t,i=f,v=u;break r}var _=p,s=u}while(0);var v,i,e,E=Se[Se[qe>>2]+12>>2],A=(Qa(E,0|He.__str339,(ne=Oe,Oe+=4,Se[ne>>2]=e,ne)),Se[Se[qe>>2]+12>>2]),g=(Qa(A,0|He.__str1340,(ne=Oe,Oe+=4,Se[ne>>2]=i,ne)),Se[Se[qe>>2]+12>>2]);Qa(g,0|He.__str2341,(ne=Oe,Oe+=4,Se[ne>>2]=v,ne))}function la(r,a){var e,i,v,t=a>>>0>4294967231;r:do{if(!t){var f=r-8|0,_=f,i=(r-4|0)>>2,s=Me[i],n=s&-8,o=n-8|0,l=r+o|0,b=f>>>0>2]>>>0;do if(!b){var k=3&s;if(!(1!=(0|k)&(0|o)>-8))break;var e=(r+(n-4)|0)>>2;if(0==(1&Se[e]|0))break;if(a>>>0<11)var u=16;else var u=a+11&-8;var u,c=0==(0|k);do{if(c){var h=ka(_,u),d=0,w=h;v=17;break}if(n>>>0>>0){if((0|l)!=(0|Se[vi+24>>2])){v=21;break}var p=Se[vi+12>>2]+n|0;if(p>>>0<=u>>>0){v=21;break}var E=p-u|0,A=r+(u-8)|0;Se[i]=u|1&s|2;var g=1|E;Se[r+(u-4)>>2]=g,Se[vi+24>>2]=A,Se[vi+12>>2]=E;var d=0,w=_;v=17;break}var y=n-u|0;if(y>>>0<=15){var d=0,w=_;v=17;break}Se[i]=u|1&s|2,Se[r+(u-4)>>2]=3|y;var m=1|Se[e];Se[e]=m;var d=r+u|0,w=_;v=17;break}while(0);do if(17==v){var w,d;if(0==(0|w))break;0!=(0|d)&&va(d);var S=w+8|0;break r}while(0);var M=Jr(a);if(0==(0|M)){var S=0;break r}var C=0==(3&Se[i]|0)?8:4,R=n-C|0,T=R>>>0>>0?R:a;Pa(M,r,T,1),va(r);var S=M;break r}while(0);throw Ka(),"Reached an unreachable!"}var O=Je();Se[O>>2]=12;var S=0}while(0);var S;return S}function ba(){if(0==(0|Se[ti>>2])){var r=qa(8);if(0!=(r-1&r|0))throw Ka(),"Reached an unreachable!";Se[ti+8>>2]=r,Se[ti+4>>2]=r,Se[ti+12>>2]=-1,Se[ti+16>>2]=2097152,Se[ti+20>>2]=0,Se[vi+440>>2]=0;var a=$a(0);Se[ti>>2]=a&-16^1431655768}}function ka(r,a){var e=Se[r+4>>2]&-8,i=a>>>0<256;do if(i)var v=0;else{if(e>>>0>=(a+4|0)>>>0&&(e-a|0)>>>0<=Se[ti+8>>2]<<1>>>0){var v=r;break}var v=0}while(0);var v;return v}function ua(r){for(var a,e=vi+444|0,a=e>>2;;){var e,i=Me[a];if(i>>>0<=r>>>0&&(i+Se[a+1]|0)>>>0>r>>>0){var v=e;break}var t=Me[a+2];if(0==(0|t)){var v=0;break}var e=t,a=e>>2}var v;return v}function ca(r,a){var e=r,i=r+8|0;if(0==(7&i|0))var v=0;else var v=7&-i;var v,t=a-v|0;Se[vi+24>>2]=e+v|0,Se[vi+12>>2]=t,Se[v+(e+4)>>2]=1|t,Se[a+(e+4)>>2]=40;var f=Se[ti+16>>2];Se[vi+28>>2]=f}function ha(){for(var r=0;;){var r,a=r<<1,e=(a<<2)+vi+40|0;Se[vi+(a+3<<2)+40>>2]=e,Se[vi+(a+2<<2)+40>>2]=e;var i=r+1|0;if(32==(0|i))break;var r=i}}function da(r,a,e){var i,v,t,f,_=a>>2,s=r>>2,n=r+8|0;if(0==(7&n|0))var o=0;else var o=7&-n;var o,l=a+8|0;if(0==(7&l|0))var b=0,t=b>>2;else var b=7&-l,t=b>>2;var b,k=a+b|0,u=k,c=o+e|0,v=c>>2,h=r+c|0,d=h,w=k-(r+o)-e|0;Se[(o+4>>2)+s]=3|e;var p=(0|u)==(0|Se[vi+24>>2]);r:do if(p){var E=Se[vi+12>>2]+w|0;Se[vi+12>>2]=E,Se[vi+24>>2]=d;var A=1|E;Se[v+(s+1)]=A}else if((0|u)==(0|Se[vi+20>>2])){var g=Se[vi+8>>2]+w|0;Se[vi+8>>2]=g,Se[vi+20>>2]=d;var y=1|g;Se[v+(s+1)]=y;var m=r+g+c|0;Se[m>>2]=g}else{var S=Me[t+(_+1)];if(1==(3&S|0)){var M=S&-8,C=S>>>3,R=S>>>0<256;a:do if(R){var T=Me[((8|b)>>2)+_],O=Me[t+(_+3)];if((0|T)!=(0|O)){var N=((S>>>2&1073741822)<<2)+vi+40|0,I=(0|T)==(0|N);do{if(!I){if(T>>>0>2]>>>0){f=18;break}f=15;break}f=15}while(0);do if(15==f){if((0|O)!=(0|N)&&O>>>0>2]>>>0)break;Se[T+12>>2]=O,Se[O+8>>2]=T;break a}while(0);throw Ka(),"Reached an unreachable!"}var P=Se[vi>>2]&(1<>2]=P}else{var D=k,L=Me[((24|b)>>2)+_],F=Me[t+(_+3)],X=(0|F)==(0|D);do if(X){var j=16|b,U=j+(a+4)|0,x=Se[U>>2];if(0==(0|x)){var z=a+j|0,V=Se[z>>2];if(0==(0|V)){var B=0,i=B>>2;break}var H=z,K=V}else{var H=U,K=x;f=25}for(;;){var K,H,Y=K+20|0,G=Se[Y>>2];if(0==(0|G)){var W=K+16|0,Z=Me[W>>2];if(0==(0|Z))break;var H=W,K=Z}else var H=Y,K=G}if(H>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[H>>2]=0;var B=K,i=B>>2}else{var Q=Me[((8|b)>>2)+_];if(Q>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[Q+12>>2]=F,Se[F+8>>2]=Q;var B=F,i=B>>2}while(0);var B;if(0==(0|L))break;var q=b+(a+28)|0,$=(Se[q>>2]<<2)+vi+304|0,J=(0|D)==(0|Se[$>>2]);do{if(J){if(Se[$>>2]=B,0!=(0|B))break;var rr=Se[vi+4>>2]&(1<>2]^-1);Se[vi+4>>2]=rr;break a}if(L>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";var ar=L+16|0;if((0|Se[ar>>2])==(0|D)?Se[ar>>2]=B:Se[L+20>>2]=B,0==(0|B))break a}while(0);if(B>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[i+6]=L;var er=16|b,ir=Me[(er>>2)+_];if(0!=(0|ir)){if(ir>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[i+4]=ir,Se[ir+24>>2]=B}var vr=Me[(er+4>>2)+_];if(0==(0|vr))break;if(vr>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[i+5]=vr,Se[vr+24>>2]=B}while(0);var tr=a+(M|b)|0,fr=M+w|0}else var tr=u,fr=w;var fr,tr,_r=tr+4|0,sr=Se[_r>>2]&-2;if(Se[_r>>2]=sr,Se[v+(s+1)]=1|fr,Se[(fr>>2)+s+v]=fr,fr>>>0<256){var nr=fr>>>2&1073741822,or=(nr<<2)+vi+40|0,lr=Me[vi>>2],br=1<<(fr>>>3),kr=0==(lr&br|0);do{if(!kr){var ur=(nr+2<<2)+vi+40|0,cr=Me[ur>>2];if(cr>>>0>=Me[vi+16>>2]>>>0){var hr=cr,dr=ur;break}throw Ka(),"Reached an unreachable!"}Se[vi>>2]=lr|br;var hr=or,dr=(nr+2<<2)+vi+40|0}while(0);var dr,hr;Se[dr>>2]=d,Se[hr+12>>2]=d,Se[v+(s+2)]=hr,Se[v+(s+3)]=or}else{var wr=h,pr=fr>>>8,Er=0==(0|pr);do if(Er)var Ar=0;else{if(fr>>>0>16777215){var Ar=31;break}var gr=(pr+1048320|0)>>>16&8,yr=pr<>>16&4,Sr=yr<>>16&2,Cr=14-(mr|gr|Mr)+(Sr<>>15)|0,Ar=fr>>>((Cr+7|0)>>>0)&1|Cr<<1}while(0);var Ar,Rr=(Ar<<2)+vi+304|0;Se[v+(s+7)]=Ar;var Tr=c+(r+16)|0;Se[v+(s+5)]=0,Se[Tr>>2]=0;var Or=Se[vi+4>>2],Nr=1<>2]=Ir,Se[Rr>>2]=wr,Se[v+(s+6)]=Rr,Se[v+(s+3)]=wr,Se[v+(s+2)]=wr}else{if(31==(0|Ar))var Pr=0;else var Pr=25-(Ar>>>1)|0;for(var Pr,Dr=fr<>2];;){var Lr,Dr;if((Se[Lr+4>>2]&-8|0)==(0|fr)){var Fr=Lr+8|0,Xr=Me[Fr>>2],jr=Me[vi+16>>2],Ur=Lr>>>0>>0;do if(!Ur){if(Xr>>>0>>0)break;Se[Xr+12>>2]=wr,Se[Fr>>2]=wr,Se[v+(s+2)]=Xr,Se[v+(s+3)]=Lr,Se[v+(s+6)]=0;break r}while(0);throw Ka(),"Reached an unreachable!"}var xr=(Dr>>>31<<2)+Lr+16|0,zr=Me[xr>>2];if(0==(0|zr)){if(xr>>>0>=Me[vi+16>>2]>>>0){Se[xr>>2]=wr,Se[v+(s+6)]=Lr,Se[v+(s+3)]=wr,Se[v+(s+2)]=wr;break r}throw Ka(),"Reached an unreachable!"}var Dr=Dr<<1,Lr=zr}}}}while(0);return r+(8|o)|0}function wa(r){return 0|He.__str3342}function pa(r){return 0|He.__str14343}function Ea(r){Se[r>>2]=si+8|0}function Aa(r){0!=(0|r)&&va(r)}function ga(r){ya(r);var a=r;Aa(a)}function ya(r){var a=0|r;Ye(a)}function ma(r){var a=0|r;Ea(a),Se[r>>2]=ni+8|0}function Sa(r){var a=0|r;ya(a);var e=r;Aa(e)}function Ma(r,a){var e,i,v=Me[vi+24>>2],i=v>>2,t=v,f=ua(t),_=Se[f>>2],s=Se[f+4>>2],n=_+s|0,o=_+(s-39)|0;if(0==(7&o|0))var l=0;else var l=7&-o;var l,b=_+(s-47)+l|0,k=b>>>0<(v+16|0)>>>0?t:b,u=k+8|0,e=u>>2,c=u,h=r,d=a-40|0;ca(h,d);var w=k+4|0;Se[w>>2]=27,Se[e]=Se[vi+444>>2],Se[e+1]=Se[vi+448>>2],Se[e+2]=Se[vi+452>>2],Se[e+3]=Se[vi+456>>2],Se[vi+444>>2]=r,Se[vi+448>>2]=a,Se[vi+456>>2]=0,Se[vi+452>>2]=c;var p=k+28|0;Se[p>>2]=7;var E=(k+32|0)>>>0>>0;r:do if(E)for(var A=p;;){var A,g=A+4|0;if(Se[g>>2]=7,(A+8|0)>>>0>=n>>>0)break r;var A=g}while(0);var y=(0|k)==(0|t);r:do if(!y){var m=k-v|0,S=t+m|0,M=m+(t+4)|0,C=Se[M>>2]&-2;Se[M>>2]=C;var R=1|m;Se[i+1]=R;var T=S;if(Se[T>>2]=m,m>>>0<256){var O=m>>>2&1073741822,N=(O<<2)+vi+40|0,I=Me[vi>>2],P=1<<(m>>>3),D=0==(I&P|0);do{if(!D){var L=(O+2<<2)+vi+40|0,F=Me[L>>2];if(F>>>0>=Me[vi+16>>2]>>>0){var X=F,j=L;break}throw Ka(),"Reached an unreachable!"}var U=I|P;Se[vi>>2]=U;var X=N,j=(O+2<<2)+vi+40|0}while(0);var j,X;Se[j>>2]=v,Se[X+12>>2]=v,Se[i+2]=X,Se[i+3]=N}else{var x=v,z=m>>>8,V=0==(0|z);do if(V)var B=0;else{if(m>>>0>16777215){var B=31;break}var H=(z+1048320|0)>>>16&8,K=z<>>16&4,G=K<>>16&2,Z=14-(Y|H|W)+(G<>>15)|0,B=m>>>((Z+7|0)>>>0)&1|Z<<1}while(0);var B,Q=(B<<2)+vi+304|0;Se[i+7]=B,Se[i+5]=0,Se[i+4]=0;var q=Se[vi+4>>2],$=1<>2]=J,Se[Q>>2]=x,Se[i+6]=Q,Se[i+3]=v,Se[i+2]=v}else{if(31==(0|B))var rr=0;else var rr=25-(B>>>1)|0;for(var rr,ar=m<>2];;){var er,ar;if((Se[er+4>>2]&-8|0)==(0|m)){var ir=er+8|0,vr=Me[ir>>2],tr=Me[vi+16>>2],fr=er>>>0>>0;do if(!fr){if(vr>>>0>>0)break;Se[vr+12>>2]=x,Se[ir>>2]=x,Se[i+2]=vr,Se[i+3]=er,Se[i+6]=0;break r}while(0);throw Ka(),"Reached an unreachable!"}var _r=(ar>>>31<<2)+er+16|0,sr=Me[_r>>2];if(0==(0|sr)){if(_r>>>0>=Me[vi+16>>2]>>>0){Se[_r>>2]=x,Se[i+6]=er,Se[i+3]=v,Se[i+2]=v;break r}throw Ka(),"Reached an unreachable!"}var ar=ar<<1,er=sr}}}}while(0)}function Ca(r){return d(r)}function Ra(r,a){var e=0;do Ae[r+e]=Ae[a+e],e++;while(0!=Ae[a+e-1]);return r}function Ta(){var r=Ta;return r.LLVM_SAVEDSTACKS||(r.LLVM_SAVEDSTACKS=[]),r.LLVM_SAVEDSTACKS.push(le.stackSave()),r.LLVM_SAVEDSTACKS.length-1}function Oa(r){var a=Ta,e=a.LLVM_SAVEDSTACKS[r];a.LLVM_SAVEDSTACKS.splice(r,1),le.stackRestore(e)}function Na(r,a,e){for(var i=0;it?1:-1;i++}return 0}function Ia(r,a){var e=Ca(r),i=0;do Ae[r+e+i]=Ae[a+i],i++;while(0!=Ae[a+i-1]);return r}function Pa(r,a,e,i){if(e>=20&&a%2==r%2)if(a%4==r%4){for(var v=a+e;a%4;)Ae[r++]=Ae[a++];for(var t=a>>2,f=r>>2,_=v>>2;t<_;)Se[f++]=Se[t++];for(a=t<<2,r=f<<2;a>1,n=r>>1,o=v>>1;st?1:-1}return 0}function Fa(r,a,e,i){if(e>=20){for(var v=r+e;r%4;)Ae[r++]=a;a<0&&(a+=256);for(var t=r>>2,f=v>>2,_=a|a<<8|a<<16|a<<24;t>2],xe[1]=Se[a+_+4>>2],e=ze[0]):"i64"==r?e=[Se[a+_>>2],Se[a+_+4>>2]]:(r="i32",e=Se[a+_>>2]),_+=le.getNativeFieldSize(r),e}for(var i,v,t,f=r,_=0,s=[];;){var n=f;if(i=Ae[f],0===i)break;if(v=Ae[f+1],i=="%".charCodeAt(0)){var o=!1,l=!1,b=!1,k=!1;r:for(;;){switch(v){case"+".charCodeAt(0):o=!0;break;case"-".charCodeAt(0):l=!0;break;case"#".charCodeAt(0):b=!0;break;case"0".charCodeAt(0):if(k)break r;k=!0;break;default:break r}f++,v=Ae[f+1]}var u=0;if(v=="*".charCodeAt(0))u=e("i32"),f++,v=Ae[f+1];else for(;v>="0".charCodeAt(0)&&v<="9".charCodeAt(0);)u=10*u+(v-"0".charCodeAt(0)),f++,v=Ae[f+1];var c=!1;if(v==".".charCodeAt(0)){var h=0;if(c=!0,f++,v=Ae[f+1],v=="*".charCodeAt(0))h=e("i32"),f++;else for(;;){var d=Ae[f+1];if(d<"0".charCodeAt(0)||d>"9".charCodeAt(0))break;h=10*h+(d-"0".charCodeAt(0)),f++}v=Ae[f+1]}else var h=6;var E;switch(String.fromCharCode(v)){case"h":var A=Ae[f+2];A=="h".charCodeAt(0)?(f++,E=1):E=2;break;case"l":var A=Ae[f+2];A=="l".charCodeAt(0)?(f++,E=8):E=4;break;case"L":case"q":case"j":E=8;break;case"z":case"t":case"I":E=4;break;default:E=null}if(E&&f++,v=Ae[f+1],["d","i","u","o","x","X","p"].indexOf(String.fromCharCode(v))!=-1){var m=v=="d".charCodeAt(0)||v=="i".charCodeAt(0);E=E||4;var t=e("i"+8*E);if(8==E&&(t=le.makeBigInt(t[0],t[1],v=="u".charCodeAt(0))),E<=4){var S=Math.pow(256,E)-1;t=(m?y:g)(t&S,8*E)}var M,C=Math.abs(t),R="";if(v=="d".charCodeAt(0)||v=="i".charCodeAt(0))M=y(t,8*E,1).toString(10);else if(v=="u".charCodeAt(0))M=g(t,8*E,1).toString(10),t=Math.abs(t);else if(v=="o".charCodeAt(0))M=(b?"0":"")+C.toString(8);else if(v=="x".charCodeAt(0)||v=="X".charCodeAt(0)){if(R=b?"0x":"",t<0){t=-t,M=(C-1).toString(16);for(var T=[],O=0;OP&&P>=-4?(v=(v=="g".charCodeAt(0)?"f":"F").charCodeAt(0),h-=P+1):(v=(v=="g".charCodeAt(0)?"e":"E").charCodeAt(0),h--),I=Math.min(h,20)}v=="e".charCodeAt(0)||v=="E".charCodeAt(0)?(M=t.toExponential(I),/[eE][-+]\\\\d$/.test(M)&&(M=M.slice(0,-1)+"0"+M.slice(-1))):v!="f".charCodeAt(0)&&v!="F".charCodeAt(0)||(M=t.toFixed(I));var D=M.split("e");if(N&&!b)for(;D[0].length>1&&D[0].indexOf(".")!=-1&&("0"==D[0].slice(-1)||"."==D[0].slice(-1));)D[0]=D[0].slice(0,-1);else for(b&&M.indexOf(".")==-1&&(D[0]+=".");h>I++;)D[0]+="0";M=D[0]+(D.length>1?"e"+D[1]:""),v=="E".charCodeAt(0)&&(M=M.toUpperCase()),o&&t>=0&&(M="+"+M)}else M=(t<0?"-":"")+"inf",k=!1;for(;M.lengthh&&(L=L.slice(0,h))):L=p("(null)",!0),!l)for(;L.length0;)s.push(" ".charCodeAt(0));l||s.push(e("i8"))}else if(v=="n".charCodeAt(0)){var X=e("i32*");Se[X>>2]=s.length}else if(v=="%".charCodeAt(0))s.push(i);else for(var O=n;O="0".charCodeAt(0)&&r<="9".charCodeAt(0)}function Ha(r){for(var a;(a=Ae[r])&&Va(a);)r++;if(!a||!Ba(a))return 0;for(var e=r;(a=Ae[e])&&Ba(a);)e++;return Math.floor(Number(s(r).substr(0,e-r)))}function Ka(r){throw ke=!0,"ABORT: "+r+", at "+(new Error).stack}function Ya(r){return Ya.ret||(Ya.ret=_([0],"i32",we)),Se[Ya.ret>>2]=r,r}function Ga(r,a,e,i){var v=$e.streams[r];if(!v||v.object.isDevice)return Ya(Ge.EBADF),-1;if(v.isWrite){if(v.object.isFolder)return Ya(Ge.EISDIR),-1;if(e<0||i<0)return Ya(Ge.EINVAL),-1;for(var t=v.object.contents;t.length>2]=a),a}function Ja(){return Ya.ret}function re(r){var a=re;a.called||(Ie=o(Ie),a.called=!0);var e=Ie;return 0!=r&&le.staticAlloc(r),e}function ae(){return Se[ae.buf>>2]}function ee(r){r=r||Module.arguments,k();var a=null;return Module._main&&(a=Module.callMain(r),Module.noExitRuntime||u()),a}var ie=[],ve=false,te="object"==typeof window,fe="function"==typeof importScripts,_e=!te&&!ve&&!fe;if(ve){print=function(r){process.stdout.write(r+"\\\\n")},printErr=function(r){process.stderr.write(r+"\\\\n")};var se=require("fs");read=function(r){var a=se.readFileSync(r).toString();return a||"/"==r[0]||(r=__dirname.split("/").slice(0,-1).join("/")+"/src/"+r,a=se.readFileSync(r).toString()),a},load=function(a){r(read(a))},ie=process.argv.slice(2)}else if(_e)this.read||(this.read=function(r){snarf(r)}),"undefined"!=typeof scriptArgs?ie=scriptArgs:"undefined"!=typeof arguments&&(ie=arguments);else if(te)this.print=printErr=function(r){console.log(r)},this.read=function(r){var a=new XMLHttpRequest;return a.open("GET",r,!1),a.send(null),a.responseText},this.arguments&&(ie=arguments);else{if(!fe)throw"Unknown runtime environment. Where are we?";this.load=importScripts}"undefined"==typeof load&&"undefined"!=typeof read&&(this.load=function(a){r(read(a))}),"undefined"==typeof printErr&&(this.printErr=function(){}),"undefined"==typeof print&&(this.print=printErr);try{this.Module=Module}catch(r){this.Module=Module={}}Module.arguments||(Module.arguments=ie),Module.print&&(print=Module.print);var ne,oe,le={stackSave:function(){return Oe},stackRestore:function(r){Oe=r},forceAlign:function(r,a){if(a=a||4,1==a)return r;if(isNumber(r)&&isNumber(a))return Math.ceil(r/a)*a;if(isNumber(a)&&isPowerOfTwo(a)){var e=log2(a);return"(((("+r+")+"+(a-1)+")>>"+e+")<<"+e+")"}return"Math.ceil(("+r+")/"+a+")*"+a},isNumberType:function(r){return r in le.INT_TYPES||r in le.FLOAT_TYPES},isPointerType:function(r){return"*"==r[r.length-1]},isStructType:function(r){return!isPointerType(r)&&(!!/^\\\\[\\\\d+\\\\ x\\\\ (.*)\\\\]/.test(r)||(!!/?/.test(r)||"%"==r[0]))},INT_TYPES:{i1:0,i8:0,i16:0,i32:0,i64:0},FLOAT_TYPES:{float:0,double:0},bitshift64:function(r,e,i,v){var t=Math.pow(2,v)-1;if(v<32)switch(i){case"shl":return[r<>>32-v];case"ashr":return[(r>>>v|(e&t)<<32-v)>>0>>>0,e>>v>>>0];case"lshr":return[(r>>>v|(e&t)<<32-v)>>>0,e>>>v]}else if(32==v)switch(i){case"shl":return[0,r];case"ashr":return[e,(0|e)<0?t:0];case"lshr":return[e,0]}else switch(i){case"shl":return[0,r<>v-32>>>0,(0|e)<0?t:0];case"lshr":return[e>>>v-32,0]}a("unknown bitshift64 op: "+[value,i,v])},or64:function(r,a){var e=0|r|(0|a),i=4294967296*(Math.round(r/4294967296)|Math.round(a/4294967296));return e+i},and64:function(r,a){var e=(0|r)&(0|a),i=4294967296*(Math.round(r/4294967296)&Math.round(a/4294967296));return e+i},xor64:function(r,a){var e=(0|r)^(0|a),i=4294967296*(Math.round(r/4294967296)^Math.round(a/4294967296));return e+i},getNativeTypeSize:function(r,a){if(1==le.QUANTUM_SIZE)return 1;var i={"%i1":1,"%i8":1,"%i16":2,"%i32":4,"%i64":8,"%float":4,"%double":8}["%"+r];if(!i)if("*"==r[r.length-1])i=le.QUANTUM_SIZE;else if("i"==r[0]){var v=parseInt(r.substr(1));e(v%8==0),i=v/8}return i},getNativeFieldSize:function(r){return Math.max(le.getNativeTypeSize(r),le.QUANTUM_SIZE)},dedup:function(r,a){var e={};return a?r.filter(function(r){return!e[r[a]]&&(e[r[a]]=!0,!0)}):r.filter(function(r){return!e[r]&&(e[r]=!0,!0)})},set:function(){for(var r="object"==typeof arguments[0]?arguments[0]:arguments,a={},e=0;e=0&&a.push(f-e),e=f,f}),r.flatSize=le.alignMemory(r.flatSize,r.alignSize),0==a.length?r.flatFactor=r.flatSize:1==le.dedup(a).length&&(r.flatFactor=a[0]),r.needsFlattening=1!=r.flatFactor,r.flatIndexes},generateStructInfo:function(r,a,i){var v,t;if(a){if(i=i||0,v=("undefined"==typeof Types?le.typeInfo:Types.types)[a],!v)return null;e(v.fields.length===r.length,"Number of named fields must match the type for "+a),t=v.flatIndexes}else{var v={fields:r.map(function(r){return r[0]})};t=le.calculateStructAlignment(v)}var f={__size__:v.flatSize};return a?r.forEach(function(r,a){if("string"==typeof r)f[r]=t[a]+i;else{var e;for(var _ in r)e=_;f[e]=le.generateStructInfo(r[e],v.fields[a],t[a])}}):r.forEach(function(r,a){f[r[1]]=t[a]}),f},stackAlloc:function(r){var a=Oe;return Oe+=r,Oe=Oe+3>>2<<2,a},staticAlloc:function(r){var a=Ie;return Ie+=r,Ie=Ie+3>>2<<2,Ie>=Le&&l(),a},alignMemory:function(r,a){var e=r=Math.ceil(r/(a?a:4))*(a?a:4);return e},makeBigInt:function(r,a,e){var i=e?(r>>>0)+4294967296*(a>>>0):(r>>>0)+4294967296*(0|a);return i},QUANTUM_SIZE:4,__dummy__:0},be={MAX_ALLOWED:0,corrections:0,sigs:{},note:function(r,e,i){e||(this.corrections++,this.corrections>=this.MAX_ALLOWED&&a("\\\\n\\\\nToo many corrections!"))},print:function(){}},ke=!1,ue=0,ce=this;Module.ccall=i,Module.setValue=t,Module.getValue=f;var he=0,de=1,we=2;Module.ALLOC_NORMAL=he,Module.ALLOC_STACK=de,Module.ALLOC_STATIC=we,Module.allocate=_,Module.Pointer_stringify=s,Module.Array_stringify=n;var pe,Ee,Ae,ge,ye,me,Se,Me,Ce,Re,Te,Oe,Ne,Ie,Pe=4096,De=Module.TOTAL_STACK||5242880,Le=Module.TOTAL_MEMORY||10485760;Module.FAST_MEMORY||2097152;e(!!(Int32Array&&Float64Array&&new Int32Array(1).subarray&&new Int32Array(1).set),"Cannot fallback to non-typed array case: Code is too specialized");var Fe=new ArrayBuffer(Le);Ae=new Int8Array(Fe),ye=new Int16Array(Fe),Se=new Int32Array(Fe),ge=new Uint8Array(Fe),me=new Uint16Array(Fe),Me=new Uint32Array(Fe),Ce=new Float32Array(Fe),Re=new Float64Array(Fe),Se[0]=255,e(255===ge[0]&&0===ge[3],"Typed arrays 2 must be run on a little-endian system");var Xe=p("(null)");Ie=Xe.length;for(var je=0;je>2)),ze=(Ce.subarray(Ue>>2),Re.subarray(Ue>>3));Ne=Ue+8,Ie=o(Ne);var Ve=[],Be=[];Module.Array_copy=c,Module.TypedArray_copy=h,Module.String_len=d,Module.String_copy=w,Module.intArrayFromString=p,Module.intArrayToString=E,Module.writeStringToMemory=A;var He=[],Ke=0;O.X=1,N.X=1,V.X=1,H.X=1,G.X=1,W.X=1,q.X=1,$.X=1,rr.X=1,ar.X=1,er.X=1,vr.X=1,nr.X=1,or.X=1,kr.X=1,hr.X=1,Ar.X=1,Sr.X=1,Tr.X=1,Ir.X=1,Pr.X=1,Dr.X=1,Lr.X=1,Fr.X=1,Xr.X=1,zr.X=1,Vr.X=1,Br.X=1,Gr.X=1,$r.X=1,Module._malloc=Jr,Jr.X=1,ra.X=1,aa.X=1,ea.X=1,ia.X=1,Module._free=va,va.X=1,_a.X=1,sa.X=1,na.X=1,oa.X=1,la.X=1,da.X=1,Ma.X=1;var Ye,Ge={E2BIG:7,EACCES:13,EADDRINUSE:98,EADDRNOTAVAIL:99,EAFNOSUPPORT:97,EAGAIN:11,EALREADY:114,EBADF:9,EBADMSG:74,EBUSY:16,ECANCELED:125,ECHILD:10,ECONNABORTED:103,ECONNREFUSED:111,ECONNRESET:104,EDEADLK:35,EDESTADDRREQ:89,EDOM:33,EDQUOT:122,EEXIST:17,EFAULT:14,EFBIG:27,EHOSTUNREACH:113,EIDRM:43,EILSEQ:84,EINPROGRESS:115,EINTR:4,EINVAL:22,EIO:5,EISCONN:106,EISDIR:21,ELOOP:40,EMFILE:24,EMLINK:31,EMSGSIZE:90,EMULTIHOP:72,ENAMETOOLONG:36,ENETDOWN:100,ENETRESET:102,ENETUNREACH:101,ENFILE:23,ENOBUFS:105,ENODATA:61,ENODEV:19,ENOENT:2,ENOEXEC:8,ENOLCK:37,ENOLINK:67,ENOMEM:12,ENOMSG:42,ENOPROTOOPT:92,ENOSPC:28,ENOSR:63,ENOSTR:60,ENOSYS:38,ENOTCONN:107,ENOTDIR:20,ENOTEMPTY:39,ENOTRECOVERABLE:131,ENOTSOCK:88,ENOTSUP:95,ENOTTY:25,ENXIO:6,EOVERFLOW:75,EOWNERDEAD:130,EPERM:1,EPIPE:32,EPROTO:71,EPROTONOSUPPORT:93,EPROTOTYPE:91,ERANGE:34,EROFS:30,ESPIPE:29,ESRCH:3,ESTALE:116,ETIME:62,ETIMEDOUT:110,ETXTBSY:26,EWOULDBLOCK:11,EXDEV:18},We=0,Ze=0,Qe=0,qe=0,$e={currentPath:"/",nextInode:2,streams:[null],ignorePermissions:!0,absolutePath:function(r,a){if("string"!=typeof r)return null;void 0===a&&(a=$e.currentPath),r&&"/"==r[0]&&(a="");for(var e=a+"/"+r,i=e.split("/").reverse(),v=[""];i.length;){var t=i.pop();""==t||"."==t||(".."==t?v.length>1&&v.pop():v.push(t))}return 1==v.length?"/":v.join("/")},analyzePath:function(r,a,e){var i={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};if(r=$e.absolutePath(r),"/"==r)i.isRoot=!0,i.exists=i.parentExists=!0,i.name="/",i.path=i.parentPath="/",i.object=i.parentObject=$e.root;else if(null!==r){e=e||0,r=r.slice(1).split("/");for(var v=$e.root,t=[""];r.length;){1==r.length&&v.isFolder&&(i.parentExists=!0,i.parentPath=1==t.length?"/":t.join("/"),i.parentObject=v,i.name=r[0]);var f=r.shift();if(!v.isFolder){i.error=Ge.ENOTDIR;break}if(!v.read){i.error=Ge.EACCES;break}if(!v.contents.hasOwnProperty(f)){i.error=Ge.ENOENT;break}if(v=v.contents[f],v.link&&(!a||0!=r.length)){if(e>40){i.error=Ge.ELOOP;break}var _=$e.absolutePath(v.link,t.join("/"));return $e.analyzePath([_].concat(r).join("/"),a,e+1)}t.push(f),0==r.length&&(i.exists=!0,i.path=t.join("/"),i.object=v)}return i}return i},findObject:function(r,a){$e.ensureRoot();var e=$e.analyzePath(r,a);return e.exists?e.object:(Ya(e.error),null)},createObject:function(r,a,e,i,v){if(r||(r="/"),"string"==typeof r&&(r=$e.findObject(r)),!r)throw Ya(Ge.EACCES),new Error("Parent path must exist.");if(!r.isFolder)throw Ya(Ge.ENOTDIR),\nnew Error("Parent must be a folder.");if(!r.write&&!$e.ignorePermissions)throw Ya(Ge.EACCES),new Error("Parent folder must be writeable.");if(!a||"."==a||".."==a)throw Ya(Ge.ENOENT),new Error("Name must not be empty.");if(r.contents.hasOwnProperty(a))throw Ya(Ge.EEXIST),new Error("Can\'t overwrite object.");r.contents[a]={read:void 0===i||i,write:void 0!==v&&v,timestamp:Date.now(),inodeNumber:$e.nextInode++};for(var t in e)e.hasOwnProperty(t)&&(r.contents[a][t]=e[t]);return r.contents[a]},createFolder:function(r,a,e,i){var v={isFolder:!0,isDevice:!1,contents:{}};return $e.createObject(r,a,v,e,i)},createPath:function(r,a,e,i){var v=$e.findObject(r);if(null===v)throw new Error("Invalid parent.");for(a=a.split("/").reverse();a.length;){var t=a.pop();t&&(v.contents.hasOwnProperty(t)||$e.createFolder(v,t,e,i),v=v.contents[t])}return v},createFile:function(r,a,e,i,v){return e.isFolder=!1,$e.createObject(r,a,e,i,v)},createDataFile:function(r,a,e,i,v){if("string"==typeof e){for(var t=new Array(e.length),f=0,_=e.length;f<_;++f)t[f]=e.charCodeAt(f);e=t}var s={isDevice:!1,contents:e};return $e.createFile(r,a,s,i,v)},createLazyFile:function(r,a,e,i,v){var t={isDevice:!1,url:e};return $e.createFile(r,a,t,i,v)},createLink:function(r,a,e,i,v){var t={isDevice:!1,link:e};return $e.createFile(r,a,t,i,v)},createDevice:function(r,a,e,i){if(!e&&!i)throw new Error("A device must have at least one callback defined.");var v={isDevice:!0,input:e,output:i};return $e.createFile(r,a,v,Boolean(e),Boolean(i))},forceLoadFile:function(r){if(r.isDevice||r.isFolder||r.link||r.contents)return!0;var a=!0;if("undefined"!=typeof XMLHttpRequest)e("Cannot do synchronous binary XHRs in modern browsers. Use --embed-file or --preload-file in emcc");else{if("undefined"==typeof read)throw new Error("Cannot load without read() or XMLHttpRequest.");try{r.contents=p(read(r.url),!0)}catch(r){a=!1}}return a||Ya(Ge.EIO),a},ensureRoot:function(){$e.root||($e.root={read:!0,write:!0,isFolder:!0,isDevice:!1,timestamp:Date.now(),inodeNumber:1,contents:{}})},init:function(r,a,i){function v(r){null===r||r==="\\\\n".charCodeAt(0)?(a.printer(a.buffer.join("")),a.buffer=[]):a.buffer.push(String.fromCharCode(r))}e(!$e.init.initialized,"FS.init was previously called. If you want to initialize later with custom parameters, remove any earlier calls (note that one is automatically added to the generated code)"),$e.init.initialized=!0,$e.ensureRoot(),r=r||Module.stdin,a=a||Module.stdout,i=i||Module.stderr;var t=!0,f=!0,s=!0;r||(t=!1,r=function(){if(!r.cache||!r.cache.length){var a;"undefined"!=typeof window&&"function"==typeof window.prompt?a=window.prompt("Input: "):"function"==typeof readline&&(a=readline()),a||(a=""),r.cache=p(a+"\\\\n",!0)}return r.cache.shift()}),a||(f=!1,a=v),a.printer||(a.printer=print),a.buffer||(a.buffer=[]),i||(s=!1,i=v),i.printer||(i.printer=print),i.buffer||(i.buffer=[]),$e.createFolder("/","tmp",!0,!0);var n=$e.createFolder("/","dev",!0,!0),o=$e.createDevice(n,"stdin",r),l=$e.createDevice(n,"stdout",null,a),b=$e.createDevice(n,"stderr",null,i);$e.createDevice(n,"tty",r,a),$e.streams[1]={path:"/dev/stdin",object:o,position:0,isRead:!0,isWrite:!1,isAppend:!1,isTerminal:!t,error:!1,eof:!1,ungotten:[]},$e.streams[2]={path:"/dev/stdout",object:l,position:0,isRead:!1,isWrite:!0,isAppend:!1,isTerminal:!f,error:!1,eof:!1,ungotten:[]},$e.streams[3]={path:"/dev/stderr",object:b,position:0,isRead:!1,isWrite:!0,isAppend:!1,isTerminal:!s,error:!1,eof:!1,ungotten:[]},We=_([1],"void*",we),Ze=_([2],"void*",we),Qe=_([3],"void*",we),$e.createPath("/","dev/shm/tmp",!0,!0),$e.streams[We]=$e.streams[1],$e.streams[Ze]=$e.streams[2],$e.streams[Qe]=$e.streams[3],qe=_([_([0,0,0,0,We,0,0,0,Ze,0,0,0,Qe,0,0,0],"void*",we)],"void*",we)},quit:function(){$e.init.initialized&&($e.streams[2]&&$e.streams[2].object.output.buffer.length>0&&$e.streams[2].object.output("\\\\n".charCodeAt(0)),$e.streams[3]&&$e.streams[3].object.output.buffer.length>0&&$e.streams[3].object.output("\\\\n".charCodeAt(0)))}},Je=Ja;Ve.unshift({func:function(){$e.ignorePermissions=!1,$e.init.initialized||$e.init()}}),Be.push({func:function(){$e.quit()}}),Ya(0),ae.buf=_(12,"void*",we),Module.callMain=function(r){function a(){for(var r=0;r<3;r++)i.push(0)}var e=r.length+1,i=[_(p("/bin/this.program"),"i8",we)];a();for(var v=0;v>2]=0|He.__str,Se[ri+4>>2]=0|He.__str1,Se[ri+16>>2]=0|He.__str2,Se[ri+20>>2]=0|He.__str3,Se[ri+32>>2]=0|He.__str4,Se[ri+36>>2]=0|He.__str5,Se[ri+48>>2]=0|He.__str6,Se[ri+52>>2]=0|He.__str7,Se[ri+64>>2]=0|He.__str8,Se[ri+68>>2]=0|He.__str7,Se[ri+80>>2]=0|He.__str9,Se[ri+84>>2]=0|He.__str10,Se[ri+96>>2]=0|He.__str11,Se[ri+100>>2]=0|He.__str12,Se[ri+112>>2]=0|He.__str13,Se[ri+116>>2]=0|He.__str14,Se[ri+128>>2]=0|He.__str15,Se[ri+132>>2]=0|He.__str16,Se[ri+144>>2]=0|He.__str17,Se[ri+148>>2]=0|He.__str18,Se[ri+160>>2]=0|He.__str19,Se[ri+164>>2]=0|He.__str20,Se[ri+176>>2]=0|He.__str21,Se[ri+180>>2]=0|He.__str22,Se[ri+192>>2]=0|He.__str23,Se[ri+196>>2]=0|He.__str24,Se[ri+208>>2]=0|He.__str25,Se[ri+212>>2]=0|He.__str26,Se[ri+224>>2]=0|He.__str27,Se[ri+228>>2]=0|He.__str28,Se[ri+240>>2]=0|He.__str29,Se[ri+244>>2]=0|He.__str30,Se[ri+256>>2]=0|He.__str31,Se[ri+260>>2]=0|He.__str32,Se[ri+272>>2]=0|He.__str33,Se[ri+276>>2]=0|He.__str34,Se[ri+288>>2]=0|He.__str35,Se[ri+292>>2]=0|He.__str36,Se[ri+304>>2]=0|He.__str37,Se[ri+308>>2]=0|He.__str38,Se[ri+320>>2]=0|He.__str39,Se[ri+324>>2]=0|He.__str40,Se[ri+336>>2]=0|He.__str41,Se[ri+340>>2]=0|He.__str42,Se[ri+352>>2]=0|He.__str43,Se[ri+356>>2]=0|He.__str44,Se[ri+368>>2]=0|He.__str45,Se[ri+372>>2]=0|He.__str46,Se[ri+384>>2]=0|He.__str47,Se[ri+388>>2]=0|He.__str48,Se[ri+400>>2]=0|He.__str49,Se[ri+404>>2]=0|He.__str119289,Se[ri+416>>2]=0|He.__str51,Se[ri+420>>2]=0|He.__str20,Se[ri+432>>2]=0|He.__str52,Se[ri+436>>2]=0|He.__str53,Se[ri+448>>2]=0|He.__str54,Se[ri+452>>2]=0|He.__str55,Se[ri+464>>2]=0|He.__str56,Se[ri+468>>2]=0|He.__str57,Se[ri+480>>2]=0|He.__str58,Se[ri+484>>2]=0|He.__str119289,Se[ri+496>>2]=0|He.__str59,Se[ri+500>>2]=0|He.__str60,Se[ri+512>>2]=0|He.__str61,Se[ri+516>>2]=0|He.__str62,Se[ri+528>>2]=0|He.__str63,Se[ri+532>>2]=0|He.__str64,Se[ri+544>>2]=0|He.__str65,Se[ri+548>>2]=0|He.__str66,Se[ri+560>>2]=0|He.__str67,Se[ri+564>>2]=0|He.__str68,Se[ri+576>>2]=0|He.__str69,Se[ri+580>>2]=0|He.__str70,Se[ri+592>>2]=0|He.__str71,Se[ri+596>>2]=0|He.__str72,Se[ri+608>>2]=0|He.__str73,Se[ri+612>>2]=0|He.__str74,Se[ri+624>>2]=0|He.__str75,Se[ri+628>>2]=0|He.__str76,Se[ri+640>>2]=0|He.__str77,Se[ri+644>>2]=0|He.__str72,Se[ri+656>>2]=0|He.__str78,Se[ri+660>>2]=0|He.__str79,Se[ri+672>>2]=0|He.__str80,Se[ri+676>>2]=0|He.__str81,Se[ri+688>>2]=0|He.__str82,Se[ri+692>>2]=0|He.__str83,Se[ri+704>>2]=0|He.__str84,Se[ri+708>>2]=0|He.__str85,Se[ri+720>>2]=0|He.__str86,Se[ri+724>>2]=0|He.__str87,Se[ri+736>>2]=0|He.__str88,Se[ri+740>>2]=0|He.__str89,Se[ri+752>>2]=0|He.__str90,Se[ri+756>>2]=0|He.__str91,Se[ri+768>>2]=0|He.__str92,Se[ri+772>>2]=0|He.__str91,Se[ai>>2]=0|He.__str145315,Se[ai+8>>2]=0|He.__str145315,Se[ai+20>>2]=0|He.__str167337,Se[ai+28>>2]=0|He.__str95,Se[ai+40>>2]=0|He.__str146316,Se[ai+48>>2]=0|He.__str97,Se[ai+60>>2]=0|He.__str155325,Se[ai+68>>2]=0|He.__str155325,Se[ai+80>>2]=0|He.__str156326,Se[ai+88>>2]=0|He.__str156326,Se[ai+100>>2]=0|He.__str154324,Se[ai+108>>2]=0|He.__str154324,Se[ai+120>>2]=0|He.__str101,Se[ai+128>>2]=0|He.__str101,Se[ai+140>>2]=0|He.__str147317,Se[ai+148>>2]=0|He.__str147317,Se[ai+160>>2]=0|He.__str150320,Se[ai+168>>2]=0|He.__str150320,Se[ai+180>>2]=0|He.__str151321,Se[ai+188>>2]=0|He.__str105,Se[ai+220>>2]=0|He.__str152322,Se[ai+228>>2]=0|He.__str152322,Se[ai+240>>2]=0|He.__str153323,Se[ai+248>>2]=0|He.__str153323,Se[ai+260>>2]=0|He.__str165335,Se[ai+268>>2]=0|He.__str165335,Se[ai+280>>2]=0|He.__str166336,Se[ai+288>>2]=0|He.__str166336,Se[ai+360>>2]=0|He.__str148318,Se[ai+368>>2]=0|He.__str148318,Se[ai+380>>2]=0|He.__str149319,Se[ai+388>>2]=0|He.__str149319,Se[ai+420>>2]=0|He.__str84254,Se[ai+428>>2]=0|He.__str84254,Se[ai+440>>2]=0|He.__str168338,Se[ai+448>>2]=0|He.__str146316,Se[ai+460>>2]=0|He.__str114,Se[ai+468>>2]=0|He.__str152322,Se[ai+480>>2]=0|He.__str115,Se[ai+488>>2]=0|He.__str115,Se[ai+500>>2]=0|He.__str110280,Se[ai+508>>2]=0|He.__str110280,Se[ei+4>>2]=0|He.__str152,Se[ei+12>>2]=0|He.__str152,Se[ei+32>>2]=0|He.__str153,Se[ei+40>>2]=0|He.__str153,Se[ei+48>>2]=0|He.__str154,Se[ei+60>>2]=0|He.__str155,Se[ei+68>>2]=0|He.__str155,Se[ei+76>>2]=0|He.__str156,Se[ei+88>>2]=0|He.__str157,Se[ei+96>>2]=0|He.__str158,Se[ei+104>>2]=0|He.__str156,Se[ei+116>>2]=0|He.__str159,Se[ei+124>>2]=0|He.__str160,Se[ei+132>>2]=0|He.__str161,Se[ei+144>>2]=0|He.__str162,Se[ei+152>>2]=0|He.__str163,Se[ei+160>>2]=0|He.__str164,Se[ei+172>>2]=0|He.__str165,Se[ei+180>>2]=0|He.__str166,Se[ei+188>>2]=0|He.__str167,Se[si+4>>2]=bi,Se[ni+4>>2]=ki,oi=_([2,0,0,0,0],["i8*",0,0,0,0],we),Se[bi>>2]=oi+8|0,Se[bi+4>>2]=0|He.__ZTSSt9bad_alloc,Se[bi+8>>2]=li,Se[ki>>2]=oi+8|0,Se[ki+4>>2]=0|He.__ZTSSt20bad_array_new_length,Se[ki+8>>2]=bi,ui=16,ci=6,hi=18,di=6,wi=6,pe=[0,0,Jr,0,va,0,ya,0,ga,0,wa,0,Sa,0,pa,0,Ea,0,ma,0],Module.FUNCTION_TABLE=pe,Module.run=ee,Module.preRun&&Module.preRun(),0==Ke){ee()}Module.postRun&&Module.postRun(),Module.___cxa_demangle=G;var pi=v("__cxa_demangle","string",["string","string","number","number"]);return function(r){return pi(r,"",1,0)}}();\n`;\n\n/***/ }),\n\n/***/ 121:\n/***/ ((__unused_webpack_module, exports, __webpack_require__) => {\n\n\n\nObject.defineProperty(exports, "__esModule", ({\n value: true\n}));\nexports.Flamechart = void 0;\n\nconst utils_1 = __webpack_require__(844);\n\nconst math_1 = __webpack_require__(293);\n\nclass Flamechart {\n constructor(source) {\n this.source = source; // Bottom to top\n\n this.layers = [];\n this.totalWeight = 0;\n this.minFrameWidth = 1;\n const stack = [];\n\n const openFrame = (node, value) => {\n const parent = utils_1.lastOf(stack);\n const frame = {\n node,\n parent,\n children: [],\n start: value,\n end: value\n };\n\n if (parent) {\n parent.children.push(frame);\n }\n\n stack.push(frame);\n };\n\n this.minFrameWidth = Infinity;\n\n const closeFrame = (node, value) => {\n console.assert(stack.length > 0);\n const stackTop = stack.pop();\n stackTop.end = value;\n if (stackTop.end - stackTop.start === 0) return;\n const layerIndex = stack.length;\n\n while (this.layers.length <= layerIndex) this.layers.push([]);\n\n this.layers[layerIndex].push(stackTop);\n this.minFrameWidth = Math.min(this.minFrameWidth, stackTop.end - stackTop.start);\n };\n\n this.totalWeight = source.getTotalWeight();\n source.forEachCall(openFrame, closeFrame);\n if (!isFinite(this.minFrameWidth)) this.minFrameWidth = 1;\n }\n\n getTotalWeight() {\n return this.totalWeight;\n }\n\n getLayers() {\n return this.layers;\n }\n\n getColorBucketForFrame(frame) {\n return this.source.getColorBucketForFrame(frame);\n }\n\n getMinFrameWidth() {\n return this.minFrameWidth;\n }\n\n formatValue(v) {\n return this.source.formatValue(v);\n }\n\n getClampedViewportWidth(viewportWidth) {\n const maxWidth = this.getTotalWeight(); // In order to avoid floating point error, we cap the maximum zoom. In\n // particular, it\'s important that at the maximum zoom level, the total\n // trace size + a viewport width is not equal to the trace size due to\n // floating point rounding.\n //\n // For instance, if the profile\'s total weight is 2^60, and the viewport\n // size is 1, trying to move one viewport width right will result in no\n // change because 2^60 + 1 = 2^60 in floating point arithmetic. JavaScript\n // numbers are 64 bit floats, and therefore have 53 mantissa bits. You can\n // see this for yourself in the console. Try:\n //\n // > Math.pow(2, 60) + 1 === Math.pow(2, 60)\n // true\n // > Math.pow(2, 53) + 1 === Math.pow(2, 53)\n // true\n // > Math.pow(2, 52) + 1 === Math.pow(2, 52)\n // false\n //\n // We use 2^40 as a cap instead, since we want to be able to make small\n // adjustments within a viewport width.\n //\n // For reference, this will still allow you to zoom until 1 nanosecond fills\n // the screen in a profile with a duration of over 18 minutes.\n //\n // > Math.pow(2, 40) / (60 * Math.pow(10, 9))\n // 18.325193796266667\n //\n\n const maxZoom = Math.pow(2, 40); // In addition to capping zoom to avoid floating point error, we further cap\n // zoom to avoid letting you zoom in so that the smallest element more than\n // fills the screen, since that probably isn\'t useful. The final zoom cap is\n // determined by the minimum zoom of either 2^40x zoom or the necessary zoom\n // for the smallest frame to fill the screen three times.\n\n const minWidth = math_1.clamp(3 * this.getMinFrameWidth(), maxWidth / maxZoom, maxWidth);\n return math_1.clamp(viewportWidth, minWidth, maxWidth);\n } // Given a desired config-space viewport rectangle, clamp the rectangle so\n // that it fits within the given flamechart. This prevents the viewport from\n // extending past the bounds of the flamechart or zooming in too far.\n\n\n getClampedConfigSpaceViewportRect({\n configSpaceViewportRect,\n renderInverted\n }) {\n const configSpaceSize = new math_1.Vec2(this.getTotalWeight(), this.getLayers().length);\n const width = this.getClampedViewportWidth(configSpaceViewportRect.size.x);\n const size = configSpaceViewportRect.size.withX(width);\n const origin = math_1.Vec2.clamp(configSpaceViewportRect.origin, new math_1.Vec2(0, renderInverted ? 0 : -1), math_1.Vec2.max(math_1.Vec2.zero, configSpaceSize.minus(size).plus(new math_1.Vec2(0, 1))));\n return new math_1.Rect(origin, configSpaceViewportRect.size.withX(width));\n }\n\n}\n\nexports.Flamechart = Flamechart;\n\n/***/ }),\n\n/***/ 293:\n/***/ ((__unused_webpack_module, exports) => {\n\n\n\nObject.defineProperty(exports, "__esModule", ({\n value: true\n}));\nexports.Rect = exports.AffineTransform = exports.Vec2 = exports.clamp = void 0;\n\nfunction clamp(x, minVal, maxVal) {\n if (x < minVal) return minVal;\n if (x > maxVal) return maxVal;\n return x;\n}\n\nexports.clamp = clamp;\n\nlet Vec2 =\n/** @class */\n(() => {\n class Vec2 {\n constructor(x, y) {\n this.x = x;\n this.y = y;\n }\n\n withX(x) {\n return new Vec2(x, this.y);\n }\n\n withY(y) {\n return new Vec2(this.x, y);\n }\n\n plus(other) {\n return new Vec2(this.x + other.x, this.y + other.y);\n }\n\n minus(other) {\n return new Vec2(this.x - other.x, this.y - other.y);\n }\n\n times(scalar) {\n return new Vec2(this.x * scalar, this.y * scalar);\n }\n\n timesPointwise(other) {\n return new Vec2(this.x * other.x, this.y * other.y);\n }\n\n dividedByPointwise(other) {\n return new Vec2(this.x / other.x, this.y / other.y);\n }\n\n dot(other) {\n return this.x * other.x + this.y * other.y;\n }\n\n equals(other) {\n return this.x === other.x && this.y === other.y;\n }\n\n approxEquals(other, epsilon = 1e-9) {\n return Math.abs(this.x - other.x) < epsilon && Math.abs(this.y - other.y) < epsilon;\n }\n\n length2() {\n return this.dot(this);\n }\n\n length() {\n return Math.sqrt(this.length2());\n }\n\n abs() {\n return new Vec2(Math.abs(this.x), Math.abs(this.y));\n }\n\n static min(a, b) {\n return new Vec2(Math.min(a.x, b.x), Math.min(a.y, b.y));\n }\n\n static max(a, b) {\n return new Vec2(Math.max(a.x, b.x), Math.max(a.y, b.y));\n }\n\n static clamp(v, min, max) {\n return new Vec2(clamp(v.x, min.x, max.x), clamp(v.y, min.y, max.y));\n }\n\n flatten() {\n return [this.x, this.y];\n }\n\n }\n\n Vec2.zero = new Vec2(0, 0);\n Vec2.unit = new Vec2(1, 1);\n return Vec2;\n})();\n\nexports.Vec2 = Vec2;\n\nclass AffineTransform {\n constructor(m00 = 1, m01 = 0, m02 = 0, m10 = 0, m11 = 1, m12 = 0) {\n this.m00 = m00;\n this.m01 = m01;\n this.m02 = m02;\n this.m10 = m10;\n this.m11 = m11;\n this.m12 = m12;\n }\n\n withScale(s) {\n let {\n m00,\n m01,\n m02,\n m10,\n m11,\n m12\n } = this;\n m00 = s.x;\n m11 = s.y;\n return new AffineTransform(m00, m01, m02, m10, m11, m12);\n }\n\n static withScale(s) {\n return new AffineTransform().withScale(s);\n }\n\n scaledBy(s) {\n return AffineTransform.withScale(s).times(this);\n }\n\n getScale() {\n return new Vec2(this.m00, this.m11);\n }\n\n withTranslation(t) {\n let {\n m00,\n m01,\n m02,\n m10,\n m11,\n m12\n } = this;\n m02 = t.x;\n m12 = t.y;\n return new AffineTransform(m00, m01, m02, m10, m11, m12);\n }\n\n static withTranslation(t) {\n return new AffineTransform().withTranslation(t);\n }\n\n getTranslation() {\n return new Vec2(this.m02, this.m12);\n }\n\n translatedBy(t) {\n return AffineTransform.withTranslation(t).times(this);\n }\n\n static betweenRects(from, to) {\n return AffineTransform.withTranslation(from.origin.times(-1)).scaledBy(new Vec2(to.size.x / from.size.x, to.size.y / from.size.y)).translatedBy(to.origin);\n }\n\n times(other) {\n const m00 = this.m00 * other.m00 + this.m01 * other.m10;\n const m01 = this.m00 * other.m01 + this.m01 * other.m11;\n const m02 = this.m00 * other.m02 + this.m01 * other.m12 + this.m02;\n const m10 = this.m10 * other.m00 + this.m11 * other.m10;\n const m11 = this.m10 * other.m01 + this.m11 * other.m11;\n const m12 = this.m10 * other.m02 + this.m11 * other.m12 + this.m12;\n return new AffineTransform(m00, m01, m02, m10, m11, m12);\n }\n\n equals(other) {\n return this.m00 == other.m00 && this.m01 == other.m01 && this.m02 == other.m02 && this.m10 == other.m10 && this.m11 == other.m11 && this.m12 == other.m12;\n }\n\n approxEquals(other, epsilon = 1e-9) {\n return Math.abs(this.m00 - other.m00) < epsilon && Math.abs(this.m01 - other.m01) < epsilon && Math.abs(this.m02 - other.m02) < epsilon && Math.abs(this.m10 - other.m10) < epsilon && Math.abs(this.m11 - other.m11) < epsilon && Math.abs(this.m12 - other.m12) < epsilon;\n }\n\n timesScalar(s) {\n const {\n m00,\n m01,\n m02,\n m10,\n m11,\n m12\n } = this;\n return new AffineTransform(s * m00, s * m01, s * m02, s * m10, s * m11, s * m12);\n }\n\n det() {\n const {\n m00,\n m01,\n m02,\n m10,\n m11,\n m12\n } = this;\n const m20 = 0;\n const m21 = 0;\n const m22 = 1;\n return m00 * (m11 * m22 - m12 * m21) - m01 * (m10 * m22 - m12 * m20) + m02 * (m10 * m21 - m11 * m20);\n }\n\n adj() {\n const {\n m00,\n m01,\n m02,\n m10,\n m11,\n m12\n } = this;\n const m20 = 0;\n const m21 = 0;\n const m22 = 1; // Adjugate matrix (a) is the transpose of the\n // cofactor matrix (c).\n //\n // 00 01 02\n // 10 11 12\n // 20 21 22\n\n const a00 =\n /* c00 = */\n +(m11 * m22 - m12 * m21);\n const a01 =\n /* c10 = */\n -(m01 * m22 - m02 * m21);\n const a02 =\n /* c20 = */\n +(m01 * m12 - m02 * m11);\n const a10 =\n /* c01 = */\n -(m10 * m22 - m12 * m20);\n const a11 =\n /* c11 = */\n +(m00 * m22 - m02 * m20);\n const a12 =\n /* c21 = */\n -(m00 * m12 - m02 * m10);\n return new AffineTransform(a00, a01, a02, a10, a11, a12);\n }\n\n inverted() {\n const det = this.det();\n if (det === 0) return null;\n const adj = this.adj();\n return adj.timesScalar(1 / det);\n }\n\n transformVector(v) {\n return new Vec2(v.x * this.m00 + v.y * this.m01, v.x * this.m10 + v.y * this.m11);\n }\n\n inverseTransformVector(v) {\n const inv = this.inverted();\n if (!inv) return null;\n return inv.transformVector(v);\n }\n\n transformPosition(v) {\n return new Vec2(v.x * this.m00 + v.y * this.m01 + this.m02, v.x * this.m10 + v.y * this.m11 + this.m12);\n }\n\n inverseTransformPosition(v) {\n const inv = this.inverted();\n if (!inv) return null;\n return inv.transformPosition(v);\n }\n\n transformRect(r) {\n const size = this.transformVector(r.size);\n const origin = this.transformPosition(r.origin);\n\n if (size.x < 0 && size.y < 0) {\n return new Rect(origin.plus(size), size.abs());\n } else if (size.x < 0) {\n return new Rect(origin.withX(origin.x + size.x), size.abs());\n } else if (size.y < 0) {\n return new Rect(origin.withY(origin.y + size.y), size.abs());\n }\n\n return new Rect(origin, size);\n }\n\n inverseTransformRect(r) {\n const inv = this.inverted();\n if (!inv) return null;\n return inv.transformRect(r);\n }\n\n flatten() {\n // Flatten into GLSL format\n // prettier-ignore\n return [this.m00, this.m10, 0, this.m01, this.m11, 0, this.m02, this.m12, 1];\n }\n\n}\n\nexports.AffineTransform = AffineTransform;\n\nlet Rect =\n/** @class */\n(() => {\n class Rect {\n constructor(origin, size) {\n this.origin = origin;\n this.size = size;\n }\n\n isEmpty() {\n return this.width() == 0 || this.height() == 0;\n }\n\n width() {\n return this.size.x;\n }\n\n height() {\n return this.size.y;\n }\n\n left() {\n return this.origin.x;\n }\n\n right() {\n return this.left() + this.width();\n }\n\n top() {\n return this.origin.y;\n }\n\n bottom() {\n return this.top() + this.height();\n }\n\n topLeft() {\n return this.origin;\n }\n\n topRight() {\n return this.origin.plus(new Vec2(this.width(), 0));\n }\n\n bottomRight() {\n return this.origin.plus(this.size);\n }\n\n bottomLeft() {\n return this.origin.plus(new Vec2(0, this.height()));\n }\n\n withOrigin(origin) {\n return new Rect(origin, this.size);\n }\n\n withSize(size) {\n return new Rect(this.origin, size);\n }\n\n closestPointTo(p) {\n return new Vec2(clamp(p.x, this.left(), this.right()), clamp(p.y, this.top(), this.bottom()));\n }\n\n distanceFrom(p) {\n return p.minus(this.closestPointTo(p)).length();\n }\n\n contains(p) {\n return this.distanceFrom(p) === 0;\n }\n\n hasIntersectionWith(other) {\n const top = Math.max(this.top(), other.top());\n const bottom = Math.max(top, Math.min(this.bottom(), other.bottom()));\n if (bottom - top === 0) return false;\n const left = Math.max(this.left(), other.left());\n const right = Math.max(left, Math.min(this.right(), other.right()));\n if (right - left === 0) return false;\n return true;\n }\n\n intersectWith(other) {\n const topLeft = Vec2.max(this.topLeft(), other.topLeft());\n const bottomRight = Vec2.max(topLeft, Vec2.min(this.bottomRight(), other.bottomRight()));\n return new Rect(topLeft, bottomRight.minus(topLeft));\n }\n\n equals(other) {\n return this.origin.equals(other.origin) && this.size.equals(other.size);\n }\n\n approxEquals(other) {\n return this.origin.approxEquals(other.origin) && this.size.approxEquals(other.size);\n }\n\n area() {\n return this.size.x * this.size.y;\n }\n\n }\n\n Rect.empty = new Rect(Vec2.zero, Vec2.zero);\n Rect.unit = new Rect(Vec2.zero, Vec2.unit);\n Rect.NDC = new Rect(new Vec2(-1, -1), new Vec2(2, 2));\n return Rect;\n})();\n\nexports.Rect = Rect;\n\n/***/ }),\n\n/***/ 211:\n/***/ (function(__unused_webpack_module, exports, __webpack_require__) {\n\n\n\nvar __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function () {\n return m[k];\n }\n });\n} : function (o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\n\nvar __setModuleDefault = this && this.__setModuleDefault || (Object.create ? function (o, v) {\n Object.defineProperty(o, "default", {\n enumerable: true,\n value: v\n });\n} : function (o, v) {\n o["default"] = v;\n});\n\nvar __importStar = this && this.__importStar || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n\n __setModuleDefault(result, mod);\n\n return result;\n};\n\nvar __awaiter = this && this.__awaiter || function (thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function (resolve) {\n resolve(value);\n });\n }\n\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n\n function rejected(value) {\n try {\n step(generator["throw"](value));\n } catch (e) {\n reject(e);\n }\n }\n\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\n\nObject.defineProperty(exports, "__esModule", ({\n value: true\n}));\nexports.CallTreeProfileBuilder = exports.StackListProfileBuilder = exports.Profile = exports.CallTreeNode = exports.Frame = exports.HasWeights = void 0;\n\nconst utils_1 = __webpack_require__(844);\n\nconst value_formatters_1 = __webpack_require__(218);\n\nconst demangleCppModule = Promise.resolve().then(() => __importStar(__webpack_require__(765))); // Force eager loading of the module\n\ndemangleCppModule.then(() => {});\n\nclass HasWeights {\n constructor() {\n this.selfWeight = 0;\n this.totalWeight = 0;\n }\n\n getSelfWeight() {\n return this.selfWeight;\n }\n\n getTotalWeight() {\n return this.totalWeight;\n }\n\n addToTotalWeight(delta) {\n this.totalWeight += delta;\n }\n\n addToSelfWeight(delta) {\n this.selfWeight += delta;\n }\n\n overwriteWeightWith(other) {\n this.selfWeight = other.selfWeight;\n this.totalWeight = other.totalWeight;\n }\n\n}\n\nexports.HasWeights = HasWeights;\n\nlet Frame =\n/** @class */\n(() => {\n class Frame extends HasWeights {\n constructor(info) {\n super();\n this.key = info.key;\n this.name = info.name;\n this.file = info.file;\n this.line = info.line;\n this.col = info.col;\n }\n\n static getOrInsert(set, info) {\n return set.getOrInsert(new Frame(info));\n }\n\n }\n\n Frame.root = new Frame({\n key: \'(speedscope root)\',\n name: \'(speedscope root)\'\n });\n return Frame;\n})();\n\nexports.Frame = Frame;\n\nclass CallTreeNode extends HasWeights {\n constructor(frame, parent) {\n super();\n this.frame = frame;\n this.parent = parent;\n this.children = []; // If a node is "frozen", it means it should no longer be mutated.\n\n this.frozen = false;\n }\n\n isRoot() {\n return this.frame === Frame.root;\n }\n\n isFrozen() {\n return this.frozen;\n }\n\n freeze() {\n this.frozen = true;\n }\n\n}\n\nexports.CallTreeNode = CallTreeNode;\n\nclass Profile {\n constructor(totalWeight = 0) {\n this.name = \'\';\n this.frames = new utils_1.KeyedSet(); // Profiles store two call-trees.\n //\n // The "append order" call tree is the one in which nodes are ordered in\n // whatever order they were appended to their parent.\n //\n // The "grouped" call tree is one in which each node has at most one child per\n // frame. Nodes are ordered in decreasing order of weight\n\n this.appendOrderCalltreeRoot = new CallTreeNode(Frame.root, null);\n this.groupedCalltreeRoot = new CallTreeNode(Frame.root, null); // List of references to CallTreeNodes at the top of the\n // stack at the time of the sample.\n\n this.samples = [];\n this.weights = [];\n this.valueFormatter = new value_formatters_1.RawValueFormatter();\n this.totalNonIdleWeight = null;\n this.totalWeight = totalWeight;\n }\n\n getAppendOrderCalltreeRoot() {\n return this.appendOrderCalltreeRoot;\n }\n\n getGroupedCalltreeRoot() {\n return this.groupedCalltreeRoot;\n }\n\n formatValue(v) {\n return this.valueFormatter.format(v);\n }\n\n setValueFormatter(f) {\n this.valueFormatter = f;\n }\n\n getWeightUnit() {\n return this.valueFormatter.unit;\n }\n\n getName() {\n return this.name;\n }\n\n setName(name) {\n this.name = name;\n }\n\n getTotalWeight() {\n return this.totalWeight;\n }\n\n getTotalNonIdleWeight() {\n if (this.totalNonIdleWeight === null) {\n this.totalNonIdleWeight = this.groupedCalltreeRoot.children.reduce((n, c) => n + c.getTotalWeight(), 0);\n }\n\n return this.totalNonIdleWeight;\n } // This is private because it should only be called in the ProfileBuilder\n // classes. Once a Profile instance has been constructed, it should be treated\n // as immutable.\n\n\n sortGroupedCallTree() {\n function visit(node) {\n node.children.sort((a, b) => -(a.getTotalWeight() - b.getTotalWeight()));\n node.children.forEach(visit);\n }\n\n visit(this.groupedCalltreeRoot);\n }\n\n forEachCallGrouped(openFrame, closeFrame) {\n function visit(node, start) {\n if (node.frame !== Frame.root) {\n openFrame(node, start);\n }\n\n let childTime = 0;\n node.children.forEach(function (child) {\n visit(child, start + childTime);\n childTime += child.getTotalWeight();\n });\n\n if (node.frame !== Frame.root) {\n closeFrame(node, start + node.getTotalWeight());\n }\n }\n\n visit(this.groupedCalltreeRoot, 0);\n }\n\n forEachCall(openFrame, closeFrame) {\n let prevStack = [];\n let value = 0;\n let sampleIndex = 0;\n\n for (let stackTop of this.samples) {\n // Find lowest common ancestor of the current stack and the previous one\n let lca = null; // This is O(n^2), but n should be relatively small here (stack height),\n // so hopefully this isn\'t much of a problem\n\n for (lca = stackTop; lca && lca.frame != Frame.root && prevStack.indexOf(lca) === -1; lca = lca.parent) {} // Close frames that are no longer open\n\n\n while (prevStack.length > 0 && utils_1.lastOf(prevStack) != lca) {\n const node = prevStack.pop();\n closeFrame(node, value);\n } // Open frames that are now becoming open\n\n\n const toOpen = [];\n\n for (let node = stackTop; node && node.frame != Frame.root && node != lca; node = node.parent) {\n toOpen.push(node);\n }\n\n toOpen.reverse();\n\n for (let node of toOpen) {\n openFrame(node, value);\n }\n\n prevStack = prevStack.concat(toOpen);\n value += this.weights[sampleIndex++];\n } // Close frames that are open at the end of the trace\n\n\n for (let i = prevStack.length - 1; i >= 0; i--) {\n closeFrame(prevStack[i], value);\n }\n }\n\n forEachFrame(fn) {\n this.frames.forEach(fn);\n }\n\n getProfileWithRecursionFlattened() {\n const builder = new CallTreeProfileBuilder();\n const stack = [];\n const framesInStack = new Set();\n\n function openFrame(node, value) {\n if (framesInStack.has(node.frame)) {\n stack.push(null);\n } else {\n framesInStack.add(node.frame);\n stack.push(node);\n builder.enterFrame(node.frame, value);\n }\n }\n\n function closeFrame(node, value) {\n const stackTop = stack.pop();\n\n if (stackTop) {\n framesInStack.delete(stackTop.frame);\n builder.leaveFrame(stackTop.frame, value);\n }\n }\n\n this.forEachCall(openFrame, closeFrame);\n const flattenedProfile = builder.build();\n flattenedProfile.name = this.name;\n flattenedProfile.valueFormatter = this.valueFormatter; // When constructing a profile with recursion flattened,\n // counter-intuitive things can happen to "self time" measurements\n // for functions.\n // For example, given the following list of stacks w/ weights:\n //\n // a 1\n // a;b;a 1\n // a;b;a;b;a 1\n // a;b;a 1\n //\n // The resulting profile with recursion flattened out will look like this:\n //\n // a 1\n // a;b 3\n //\n // Which is useful to view, but it\'s counter-intuitive to move self-time\n // for frames around, since analyzing the self-time of functions is an important\n // thing to be able to do accurately, and we don\'t want this to change when recursion\n // is flattened. To work around that, we\'ll just copy the weights directly from the\n // un-flattened profile.\n\n this.forEachFrame(f => {\n flattenedProfile.frames.getOrInsert(f).overwriteWeightWith(f);\n });\n return flattenedProfile;\n }\n\n getInvertedProfileForCallersOf(focalFrameInfo) {\n const focalFrame = Frame.getOrInsert(this.frames, focalFrameInfo);\n const builder = new StackListProfileBuilder(); // TODO(jlfwong): Could construct this at profile\n // construction time rather than on demand.\n\n const nodes = [];\n\n function visit(node) {\n if (node.frame === focalFrame) {\n nodes.push(node);\n } else {\n for (let child of node.children) {\n visit(child);\n }\n }\n }\n\n visit(this.appendOrderCalltreeRoot);\n\n for (let node of nodes) {\n const stack = [];\n\n for (let n = node; n != null && n.frame !== Frame.root; n = n.parent) {\n stack.push(n.frame);\n }\n\n builder.appendSampleWithWeight(stack, node.getTotalWeight());\n }\n\n const ret = builder.build();\n ret.name = this.name;\n ret.valueFormatter = this.valueFormatter;\n return ret;\n }\n\n getProfileForCalleesOf(focalFrameInfo) {\n const focalFrame = Frame.getOrInsert(this.frames, focalFrameInfo);\n const builder = new StackListProfileBuilder();\n\n function recordSubtree(focalFrameNode) {\n const stack = [];\n\n function visit(node) {\n stack.push(node.frame);\n builder.appendSampleWithWeight(stack, node.getSelfWeight());\n\n for (let child of node.children) {\n visit(child);\n }\n\n stack.pop();\n }\n\n visit(focalFrameNode);\n }\n\n function findCalls(node) {\n if (node.frame === focalFrame) {\n recordSubtree(node);\n } else {\n for (let child of node.children) {\n findCalls(child);\n }\n }\n }\n\n findCalls(this.appendOrderCalltreeRoot);\n const ret = builder.build();\n ret.name = this.name;\n ret.valueFormatter = this.valueFormatter;\n return ret;\n } // Demangle symbols for readability\n\n\n demangle() {\n return __awaiter(this, void 0, void 0, function* () {\n let demangleCpp = null;\n\n for (let frame of this.frames) {\n // This function converts a mangled C++ name such as "__ZNK7Support6ColorFeqERKS0_"\n // into a human-readable symbol (in this case "Support::ColorF::==(Support::ColorF&)")\n if (frame.name.startsWith(\'__Z\')) {\n if (!demangleCpp) {\n demangleCpp = (yield demangleCppModule).demangleCpp;\n }\n\n frame.name = demangleCpp(frame.name);\n }\n }\n });\n }\n\n remapNames(callback) {\n for (let frame of this.frames) {\n frame.name = callback(frame.name);\n }\n }\n\n}\n\nexports.Profile = Profile;\n\nclass StackListProfileBuilder extends Profile {\n constructor() {\n super(...arguments);\n this.pendingSample = null;\n }\n\n _appendSample(stack, weight, useAppendOrder) {\n if (isNaN(weight)) throw new Error(\'invalid weight\');\n let node = useAppendOrder ? this.appendOrderCalltreeRoot : this.groupedCalltreeRoot;\n let framesInStack = new Set();\n\n for (let frameInfo of stack) {\n const frame = Frame.getOrInsert(this.frames, frameInfo);\n const last = useAppendOrder ? utils_1.lastOf(node.children) : node.children.find(c => c.frame === frame);\n\n if (last && !last.isFrozen() && last.frame == frame) {\n node = last;\n } else {\n const parent = node;\n node = new CallTreeNode(frame, node);\n parent.children.push(node);\n }\n\n node.addToTotalWeight(weight); // It\'s possible for the same frame to occur multiple\n // times in the same call stack due to either direct\n // or indirect recursion. We want to avoid counting that\n // frame multiple times for a single sample, we so just\n // track all of the unique frames that participated in\n // this call stack, then add to their weight at the end.\n\n framesInStack.add(node.frame);\n }\n\n node.addToSelfWeight(weight);\n\n if (useAppendOrder) {\n for (let child of node.children) {\n child.freeze();\n }\n }\n\n if (useAppendOrder) {\n node.frame.addToSelfWeight(weight);\n\n for (let frame of framesInStack) {\n frame.addToTotalWeight(weight);\n }\n\n if (node === utils_1.lastOf(this.samples)) {\n this.weights[this.weights.length - 1] += weight;\n } else {\n this.samples.push(node);\n this.weights.push(weight);\n }\n }\n }\n\n appendSampleWithWeight(stack, weight) {\n if (weight === 0) {\n // Samples with zero weight have no effect, so let\'s ignore them\n return;\n }\n\n if (weight < 0) {\n throw new Error(\'Samples must have positive weights\');\n }\n\n this._appendSample(stack, weight, true);\n\n this._appendSample(stack, weight, false);\n }\n\n appendSampleWithTimestamp(stack, timestamp) {\n if (this.pendingSample) {\n if (timestamp < this.pendingSample.centralTimestamp) {\n throw new Error(\'Timestamps received out of order\');\n }\n\n const endTimestamp = (timestamp + this.pendingSample.centralTimestamp) / 2;\n this.appendSampleWithWeight(this.pendingSample.stack, endTimestamp - this.pendingSample.startTimestamp);\n this.pendingSample = {\n stack,\n startTimestamp: endTimestamp,\n centralTimestamp: timestamp\n };\n } else {\n this.pendingSample = {\n stack,\n startTimestamp: timestamp,\n centralTimestamp: timestamp\n };\n }\n }\n\n build() {\n if (this.pendingSample) {\n if (this.samples.length > 0) {\n this.appendSampleWithWeight(this.pendingSample.stack, this.pendingSample.centralTimestamp - this.pendingSample.startTimestamp);\n } else {\n // There is only a single sample. In this case, units will be meaningless,\n // so we\'ll append with a weight of 1 and also clear any value formatter\n this.appendSampleWithWeight(this.pendingSample.stack, 1);\n this.setValueFormatter(new value_formatters_1.RawValueFormatter());\n }\n }\n\n this.totalWeight = Math.max(this.totalWeight, this.weights.reduce((a, b) => a + b, 0));\n this.sortGroupedCallTree();\n return this;\n }\n\n}\n\nexports.StackListProfileBuilder = StackListProfileBuilder; // As an alternative API for importing profiles more efficiently, provide a\n// way to open & close frames directly without needing to construct tons of\n// arrays as intermediaries.\n\nclass CallTreeProfileBuilder extends Profile {\n constructor() {\n super(...arguments);\n this.appendOrderStack = [this.appendOrderCalltreeRoot];\n this.groupedOrderStack = [this.groupedCalltreeRoot];\n this.framesInStack = new Map();\n this.stack = [];\n this.lastValue = 0;\n }\n\n addWeightsToFrames(value) {\n const delta = value - this.lastValue;\n\n for (let frame of this.framesInStack.keys()) {\n frame.addToTotalWeight(delta);\n }\n\n const stackTop = utils_1.lastOf(this.stack);\n\n if (stackTop) {\n stackTop.addToSelfWeight(delta);\n }\n }\n\n addWeightsToNodes(value, stack) {\n const delta = value - this.lastValue;\n\n for (let node of stack) {\n node.addToTotalWeight(delta);\n }\n\n const stackTop = utils_1.lastOf(stack);\n\n if (stackTop) {\n stackTop.addToSelfWeight(delta);\n }\n }\n\n _enterFrame(frame, value, useAppendOrder) {\n let stack = useAppendOrder ? this.appendOrderStack : this.groupedOrderStack;\n this.addWeightsToNodes(value, stack);\n let prevTop = utils_1.lastOf(stack);\n\n if (prevTop) {\n if (useAppendOrder) {\n const delta = value - this.lastValue;\n\n if (delta > 0) {\n this.samples.push(prevTop);\n this.weights.push(value - this.lastValue);\n } else if (delta < 0) {\n throw new Error(`Samples must be provided in increasing order of cumulative value. Last sample was ${this.lastValue}, this sample was ${value}`);\n }\n }\n\n const last = useAppendOrder ? utils_1.lastOf(prevTop.children) : prevTop.children.find(c => c.frame === frame);\n let node;\n\n if (last && !last.isFrozen() && last.frame == frame) {\n node = last;\n } else {\n node = new CallTreeNode(frame, prevTop);\n prevTop.children.push(node);\n }\n\n stack.push(node);\n }\n }\n\n enterFrame(frameInfo, value) {\n const frame = Frame.getOrInsert(this.frames, frameInfo);\n this.addWeightsToFrames(value);\n\n this._enterFrame(frame, value, true);\n\n this._enterFrame(frame, value, false);\n\n this.stack.push(frame);\n const frameCount = this.framesInStack.get(frame) || 0;\n this.framesInStack.set(frame, frameCount + 1);\n this.lastValue = value;\n }\n\n _leaveFrame(frame, value, useAppendOrder) {\n let stack = useAppendOrder ? this.appendOrderStack : this.groupedOrderStack;\n this.addWeightsToNodes(value, stack);\n\n if (useAppendOrder) {\n const leavingStackTop = this.appendOrderStack.pop();\n\n if (leavingStackTop == null) {\n throw new Error(`Trying to leave ${frame.key} when stack is empty`);\n }\n\n if (this.lastValue == null) {\n throw new Error(`Trying to leave a ${frame.key} before any have been entered`);\n }\n\n leavingStackTop.freeze();\n\n if (leavingStackTop.frame.key !== frame.key) {\n throw new Error(`Tried to leave frame "${frame.name}" while frame "${leavingStackTop.frame.name}" was at the top at ${value}`);\n }\n\n const delta = value - this.lastValue;\n\n if (delta > 0) {\n this.samples.push(leavingStackTop);\n this.weights.push(value - this.lastValue);\n } else if (delta < 0) {\n throw new Error(`Samples must be provided in increasing order of cumulative value. Last sample was ${this.lastValue}, this sample was ${value}`);\n }\n } else {\n this.groupedOrderStack.pop();\n }\n }\n\n leaveFrame(frameInfo, value) {\n const frame = Frame.getOrInsert(this.frames, frameInfo);\n this.addWeightsToFrames(value);\n\n this._leaveFrame(frame, value, true);\n\n this._leaveFrame(frame, value, false);\n\n this.stack.pop();\n const frameCount = this.framesInStack.get(frame);\n if (frameCount == null) return;\n\n if (frameCount === 1) {\n this.framesInStack.delete(frame);\n } else {\n this.framesInStack.set(frame, frameCount - 1);\n }\n\n this.lastValue = value;\n this.totalWeight = Math.max(this.totalWeight, this.lastValue);\n }\n\n build() {\n // Each stack is expected to contain a single node which we initialize to be\n // the root node.\n if (this.appendOrderStack.length > 1 || this.groupedOrderStack.length > 1) {\n throw new Error(\'Tried to complete profile construction with a non-empty stack\');\n }\n\n this.sortGroupedCallTree();\n return this;\n }\n\n}\n\nexports.CallTreeProfileBuilder = CallTreeProfileBuilder;\n\n/***/ }),\n\n/***/ 844:\n/***/ ((__unused_webpack_module, exports) => {\n\n\n\nObject.defineProperty(exports, "__esModule", ({\n value: true\n}));\nexports.decodeBase64 = exports.lazyStatic = exports.memoizeByReference = exports.memoizeByShallowEquality = exports.objectsHaveShallowEquality = exports.noop = exports.binarySearch = exports.triangle = exports.fract = exports.formatPercent = exports.zeroPad = exports.itReduce = exports.itForEach = exports.itMap = exports.KeyedSet = exports.getOrThrow = exports.getOrElse = exports.getOrInsert = exports.sortBy = exports.lastOf = void 0;\n\nfunction lastOf(ts) {\n return ts[ts.length - 1] || null;\n}\n\nexports.lastOf = lastOf;\n\nfunction sortBy(ts, key) {\n function comparator(a, b) {\n const keyA = key(a);\n const keyB = key(b);\n return keyA < keyB ? -1 : keyA > keyB ? 1 : 0;\n }\n\n ts.sort(comparator);\n}\n\nexports.sortBy = sortBy;\n\nfunction getOrInsert(map, k, fallback) {\n if (!map.has(k)) map.set(k, fallback(k));\n return map.get(k);\n}\n\nexports.getOrInsert = getOrInsert;\n\nfunction getOrElse(map, k, fallback) {\n if (!map.has(k)) return fallback(k);\n return map.get(k);\n}\n\nexports.getOrElse = getOrElse;\n\nfunction getOrThrow(map, k) {\n if (!map.has(k)) {\n throw new Error(`Expected key ${k}`);\n }\n\n return map.get(k);\n}\n\nexports.getOrThrow = getOrThrow;\n\nclass KeyedSet {\n constructor() {\n this.map = new Map();\n }\n\n getOrInsert(t) {\n const key = t.key;\n const existing = this.map.get(key);\n if (existing) return existing;\n this.map.set(key, t);\n return t;\n }\n\n forEach(fn) {\n this.map.forEach(fn);\n }\n\n [Symbol.iterator]() {\n return this.map.values();\n }\n\n}\n\nexports.KeyedSet = KeyedSet;\n\nfunction* itMap(it, f) {\n for (let t of it) {\n yield f(t);\n }\n}\n\nexports.itMap = itMap;\n\nfunction itForEach(it, f) {\n for (let t of it) {\n f(t);\n }\n}\n\nexports.itForEach = itForEach;\n\nfunction itReduce(it, f, init) {\n let accum = init;\n\n for (let t of it) {\n accum = f(accum, t);\n }\n\n return accum;\n}\n\nexports.itReduce = itReduce;\n\nfunction zeroPad(s, width) {\n return new Array(Math.max(width - s.length, 0) + 1).join(\'0\') + s;\n}\n\nexports.zeroPad = zeroPad;\n\nfunction formatPercent(percent) {\n let formattedPercent = `${percent.toFixed(0)}%`;\n if (percent === 100) formattedPercent = \'100%\';else if (percent > 99) formattedPercent = \'>99%\';else if (percent < 0.01) formattedPercent = \'<0.01%\';else if (percent < 1) formattedPercent = `${percent.toFixed(2)}%`;else if (percent < 10) formattedPercent = `${percent.toFixed(1)}%`;\n return formattedPercent;\n}\n\nexports.formatPercent = formatPercent;\n\nfunction fract(x) {\n return x - Math.floor(x);\n}\n\nexports.fract = fract;\n\nfunction triangle(x) {\n return 2.0 * Math.abs(fract(x) - 0.5) - 1.0;\n}\n\nexports.triangle = triangle;\n\nfunction binarySearch(lo, hi, f, target, targetRangeSize = 1) {\n console.assert(!isNaN(targetRangeSize) && !isNaN(target));\n\n while (true) {\n if (hi - lo <= targetRangeSize) return [lo, hi];\n const mid = (hi + lo) / 2;\n const val = f(mid);\n if (val < target) lo = mid;else hi = mid;\n }\n}\n\nexports.binarySearch = binarySearch;\n\nfunction noop(...args) {}\n\nexports.noop = noop;\n\nfunction objectsHaveShallowEquality(a, b) {\n for (let key in a) {\n if (a[key] !== b[key]) return false;\n }\n\n for (let key in b) {\n if (a[key] !== b[key]) return false;\n }\n\n return true;\n}\n\nexports.objectsHaveShallowEquality = objectsHaveShallowEquality;\n\nfunction memoizeByShallowEquality(cb) {\n let last = null;\n return args => {\n let result;\n\n if (last == null) {\n result = cb(args);\n last = {\n args,\n result\n };\n return result;\n } else if (objectsHaveShallowEquality(last.args, args)) {\n return last.result;\n } else {\n last.args = args;\n last.result = cb(args);\n return last.result;\n }\n };\n}\n\nexports.memoizeByShallowEquality = memoizeByShallowEquality;\n\nfunction memoizeByReference(cb) {\n let last = null;\n return args => {\n let result;\n\n if (last == null) {\n result = cb(args);\n last = {\n args,\n result\n };\n return result;\n } else if (last.args === args) {\n return last.result;\n } else {\n last.args = args;\n last.result = cb(args);\n return last.result;\n }\n };\n}\n\nexports.memoizeByReference = memoizeByReference;\n\nfunction lazyStatic(cb) {\n let last = null;\n return () => {\n if (last == null) {\n last = {\n result: cb()\n };\n }\n\n return last.result;\n };\n}\n\nexports.lazyStatic = lazyStatic;\nconst base64lookupTable = lazyStatic(() => {\n const alphabet = \'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\';\n const ret = new Map();\n\n for (let i = 0; i < alphabet.length; i++) {\n ret.set(alphabet.charAt(i), i);\n }\n\n ret.set(\'=\', -1);\n return ret;\n}); // NOTE: There are probably simpler solutions to this problem, but I have this written already, so\n// until we run into problems with this, let\'s just use this.\n//\n// See: https://developer.mozilla.org/en-US/docs/Web/API/WindowBase64/Base64_encoding_and_decoding#The_Unicode_Problem#The_Unicode_Problem\n\nfunction decodeBase64(encoded) {\n // Reference: https://www.rfc-editor.org/rfc/rfc4648.txt\n const lookupTable = base64lookupTable(); // 3 byte groups are represented as sequneces of 4 characters.\n //\n // "The encoding process represents 24-bit groups of input bits as output\n // strings of 4 encoded characters."\n //\n // "Special processing is performed if fewer than 24 bits are available\n // at the end of the data being encoded. A full encoding quantum is\n // always completed at the end of a quantity. When fewer than 24 input\n // bits are available in an input group bits with value zero are added\n // (on the right) to form an integral number of 6-bit groups."\n\n if (encoded.length % 4 !== 0) {\n throw new Error(`Invalid length for base64 encoded string. Expected length % 4 = 0, got length = ${encoded.length}`);\n }\n\n const quartetCount = encoded.length / 4;\n let byteCount; // Special processing is performed if fewer than 24 bits are available\n // at the end of the data being encoded. A full encoding quantum is\n // always completed at the end of a quantity. When fewer than 24 input\n // bits are available in an input group, bits with value zero are added\n // (on the right) to form an integral number of 6-bit groups. Padding\n // at the end of the data is performed using the \'=\' character. Since\n // all base 64 input is an integral number of octets, only the following\n // cases can arise:\n //\n // (1) The final quantum of encoding input is an integral multiple of 24\n // bits; here, the final unit of encoded output will be an integral\n // multiple of 4 characters with no "=" padding.\n //\n // (2) The final quantum of encoding input is exactly 8 bits; here, the\n // final unit of encoded output will be two characters followed by\n // two "=" padding characters.\n //\n // (3) The final quantum of encoding input is exactly 16 bits; here, the\n // final unit of encoded output will be three characters followed by\n // one "=" padding character.\n\n if (encoded.length >= 4) {\n if (encoded.charAt(encoded.length - 1) === \'=\') {\n if (encoded.charAt(encoded.length - 2) === \'=\') {\n // Case (2)\n byteCount = quartetCount * 3 - 2;\n } else {\n // Case (3)\n byteCount = quartetCount * 3 - 1;\n }\n } else {\n // Case (1)\n byteCount = quartetCount * 3;\n }\n } else {\n // Case (1)\n byteCount = quartetCount * 3;\n }\n\n const bytes = new Uint8Array(byteCount);\n let offset = 0;\n\n for (let i = 0; i < quartetCount; i++) {\n const enc1 = encoded.charAt(i * 4 + 0);\n const enc2 = encoded.charAt(i * 4 + 1);\n const enc3 = encoded.charAt(i * 4 + 2);\n const enc4 = encoded.charAt(i * 4 + 3);\n const sextet1 = lookupTable.get(enc1);\n const sextet2 = lookupTable.get(enc2);\n const sextet3 = lookupTable.get(enc3);\n const sextet4 = lookupTable.get(enc4);\n\n if (sextet1 == null || sextet2 == null || sextet3 == null || sextet4 == null) {\n throw new Error(`Invalid quartet at indices ${i * 4} .. ${i * 4 + 3}: ${encoded.substring(i * 4, i * 4 + 3)}`);\n }\n\n bytes[offset++] = sextet1 << 2 | sextet2 >> 4;\n\n if (enc3 !== \'=\') {\n bytes[offset++] = (sextet2 & 15) << 4 | sextet3 >> 2;\n }\n\n if (enc4 !== \'=\') {\n bytes[offset++] = (sextet3 & 7) << 6 | sextet4;\n }\n }\n\n if (offset !== byteCount) {\n throw new Error(`Expected to decode ${byteCount} bytes, but only decoded ${offset})`);\n }\n\n return bytes;\n}\n\nexports.decodeBase64 = decodeBase64;\n\n/***/ }),\n\n/***/ 218:\n/***/ ((__unused_webpack_module, exports, __webpack_require__) => {\n\n\n\nObject.defineProperty(exports, "__esModule", ({\n value: true\n}));\nexports.ByteFormatter = exports.TimeFormatter = exports.RawValueFormatter = void 0;\n\nconst utils_1 = __webpack_require__(844);\n\nclass RawValueFormatter {\n constructor() {\n this.unit = \'none\';\n }\n\n format(v) {\n return v.toLocaleString();\n }\n\n}\n\nexports.RawValueFormatter = RawValueFormatter;\n\nclass TimeFormatter {\n constructor(unit) {\n this.unit = unit;\n if (unit === \'nanoseconds\') this.multiplier = 1e-9;else if (unit === \'microseconds\') this.multiplier = 1e-6;else if (unit === \'milliseconds\') this.multiplier = 1e-3;else this.multiplier = 1;\n }\n\n formatUnsigned(v) {\n const s = v * this.multiplier;\n\n if (s / 60 >= 1) {\n const minutes = Math.floor(s / 60);\n const seconds = Math.floor(s - minutes * 60).toString();\n return `${minutes}:${utils_1.zeroPad(seconds, 2)}`;\n }\n\n if (s / 1 >= 1) return `${s.toFixed(2)}s`;\n if (s / 1e-3 >= 1) return `${(s / 1e-3).toFixed(2)}ms`;\n if (s / 1e-6 >= 1) return `${(s / 1e-6).toFixed(2)}µs`;else return `${(s / 1e-9).toFixed(2)}ns`;\n }\n\n format(v) {\n return `${v < 0 ? \'-\' : \'\'}${this.formatUnsigned(Math.abs(v))}`;\n }\n\n}\n\nexports.TimeFormatter = TimeFormatter;\n\nclass ByteFormatter {\n constructor() {\n this.unit = \'bytes\';\n }\n\n format(v) {\n if (v < 1024) return `${v.toFixed(0)} B`;\n v /= 1024;\n if (v < 1024) return `${v.toFixed(2)} KB`;\n v /= 1024;\n if (v < 1024) return `${v.toFixed(2)} MB`;\n v /= 1024;\n return `${v.toFixed(2)} GB`;\n }\n\n}\n\nexports.ByteFormatter = ByteFormatter;\n\n/***/ }),\n\n/***/ 41:\n/***/ (function(__unused_webpack_module, exports, __webpack_require__) {\n\n\n\nvar __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function () {\n return m[k];\n }\n });\n} : function (o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\n\nvar __exportStar = this && this.__exportStar || function (m, exports) {\n for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);\n};\n\nObject.defineProperty(exports, "__esModule", ({\n value: true\n}));\n\n__exportStar(__webpack_require__(496), exports);\n\n__exportStar(__webpack_require__(121), exports);\n\n/***/ }),\n\n/***/ 715:\n/***/ (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (root, factory) {\n \'use strict\'; // Universal Module Definition (UMD) to support AMD, CommonJS/Node.js, Rhino, and browsers.\n\n /* istanbul ignore next */\n\n if (true) {\n !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(356)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === \'function\' ?\n\t\t(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n } else {}\n})(this, function ErrorStackParser(StackFrame) {\n \'use strict\';\n\n var FIREFOX_SAFARI_STACK_REGEXP = /(^|@)\\S+:\\d+/;\n var CHROME_IE_STACK_REGEXP = /^\\s*at .*(\\S+:\\d+|\\(native\\))/m;\n var SAFARI_NATIVE_CODE_REGEXP = /^(eval@)?(\\[native code])?$/;\n return {\n /**\n * Given an Error object, extract the most information from it.\n *\n * @param {Error} error object\n * @return {Array} of StackFrames\n */\n parse: function ErrorStackParser$$parse(error) {\n if (typeof error.stacktrace !== \'undefined\' || typeof error[\'opera#sourceloc\'] !== \'undefined\') {\n return this.parseOpera(error);\n } else if (error.stack && error.stack.match(CHROME_IE_STACK_REGEXP)) {\n return this.parseV8OrIE(error);\n } else if (error.stack) {\n return this.parseFFOrSafari(error);\n } else {\n throw new Error(\'Cannot parse given Error object\');\n }\n },\n // Separate line and column numbers from a string of the form: (URI:Line:Column)\n extractLocation: function ErrorStackParser$$extractLocation(urlLike) {\n // Fail-fast but return locations like "(native)"\n if (urlLike.indexOf(\':\') === -1) {\n return [urlLike];\n }\n\n var regExp = /(.+?)(?::(\\d+))?(?::(\\d+))?$/;\n var parts = regExp.exec(urlLike.replace(/[()]/g, \'\'));\n return [parts[1], parts[2] || undefined, parts[3] || undefined];\n },\n parseV8OrIE: function ErrorStackParser$$parseV8OrIE(error) {\n var filtered = error.stack.split(\'\\n\').filter(function (line) {\n return !!line.match(CHROME_IE_STACK_REGEXP);\n }, this);\n return filtered.map(function (line) {\n if (line.indexOf(\'(eval \') > -1) {\n // Throw away eval information until we implement stacktrace.js/stackframe#8\n line = line.replace(/eval code/g, \'eval\').replace(/(\\(eval at [^()]*)|(\\),.*$)/g, \'\');\n }\n\n var sanitizedLine = line.replace(/^\\s+/, \'\').replace(/\\(eval code/g, \'(\'); // capture and preseve the parenthesized location "(/foo/my bar.js:12:87)" in\n // case it has spaces in it, as the string is split on \\s+ later on\n\n var location = sanitizedLine.match(/ (\\((.+):(\\d+):(\\d+)\\)$)/); // remove the parenthesized location from the line, if it was matched\n\n sanitizedLine = location ? sanitizedLine.replace(location[0], \'\') : sanitizedLine;\n var tokens = sanitizedLine.split(/\\s+/).slice(1); // if a location was matched, pass it to extractLocation() otherwise pop the last token\n\n var locationParts = this.extractLocation(location ? location[1] : tokens.pop());\n var functionName = tokens.join(\' \') || undefined;\n var fileName = [\'eval\', \'\'].indexOf(locationParts[0]) > -1 ? undefined : locationParts[0];\n return new StackFrame({\n functionName: functionName,\n fileName: fileName,\n lineNumber: locationParts[1],\n columnNumber: locationParts[2],\n source: line\n });\n }, this);\n },\n parseFFOrSafari: function ErrorStackParser$$parseFFOrSafari(error) {\n var filtered = error.stack.split(\'\\n\').filter(function (line) {\n return !line.match(SAFARI_NATIVE_CODE_REGEXP);\n }, this);\n return filtered.map(function (line) {\n // Throw away eval information until we implement stacktrace.js/stackframe#8\n if (line.indexOf(\' > eval\') > -1) {\n line = line.replace(/ line (\\d+)(?: > eval line \\d+)* > eval:\\d+:\\d+/g, \':$1\');\n }\n\n if (line.indexOf(\'@\') === -1 && line.indexOf(\':\') === -1) {\n // Safari eval frames only have function names and nothing else\n return new StackFrame({\n functionName: line\n });\n } else {\n var functionNameRegex = /((.*".+"[^@]*)?[^@]*)(?:@)/;\n var matches = line.match(functionNameRegex);\n var functionName = matches && matches[1] ? matches[1] : undefined;\n var locationParts = this.extractLocation(line.replace(functionNameRegex, \'\'));\n return new StackFrame({\n functionName: functionName,\n fileName: locationParts[0],\n lineNumber: locationParts[1],\n columnNumber: locationParts[2],\n source: line\n });\n }\n }, this);\n },\n parseOpera: function ErrorStackParser$$parseOpera(e) {\n if (!e.stacktrace || e.message.indexOf(\'\\n\') > -1 && e.message.split(\'\\n\').length > e.stacktrace.split(\'\\n\').length) {\n return this.parseOpera9(e);\n } else if (!e.stack) {\n return this.parseOpera10(e);\n } else {\n return this.parseOpera11(e);\n }\n },\n parseOpera9: function ErrorStackParser$$parseOpera9(e) {\n var lineRE = /Line (\\d+).*script (?:in )?(\\S+)/i;\n var lines = e.message.split(\'\\n\');\n var result = [];\n\n for (var i = 2, len = lines.length; i < len; i += 2) {\n var match = lineRE.exec(lines[i]);\n\n if (match) {\n result.push(new StackFrame({\n fileName: match[2],\n lineNumber: match[1],\n source: lines[i]\n }));\n }\n }\n\n return result;\n },\n parseOpera10: function ErrorStackParser$$parseOpera10(e) {\n var lineRE = /Line (\\d+).*script (?:in )?(\\S+)(?:: In function (\\S+))?$/i;\n var lines = e.stacktrace.split(\'\\n\');\n var result = [];\n\n for (var i = 0, len = lines.length; i < len; i += 2) {\n var match = lineRE.exec(lines[i]);\n\n if (match) {\n result.push(new StackFrame({\n functionName: match[3] || undefined,\n fileName: match[2],\n lineNumber: match[1],\n source: lines[i]\n }));\n }\n }\n\n return result;\n },\n // Opera 10.65+ Error.stack very similar to FF/Safari\n parseOpera11: function ErrorStackParser$$parseOpera11(error) {\n var filtered = error.stack.split(\'\\n\').filter(function (line) {\n return !!line.match(FIREFOX_SAFARI_STACK_REGEXP) && !line.match(/^Error created at/);\n }, this);\n return filtered.map(function (line) {\n var tokens = line.split(\'@\');\n var locationParts = this.extractLocation(tokens.pop());\n var functionCall = tokens.shift() || \'\';\n var functionName = functionCall.replace(//, \'$2\').replace(/\\([^)]*\\)/g, \'\') || undefined;\n var argsRaw;\n\n if (functionCall.match(/\\(([^)]*)\\)/)) {\n argsRaw = functionCall.replace(/^[^(]+\\(([^)]*)\\)$/, \'$1\');\n }\n\n var args = argsRaw === undefined || argsRaw === \'[arguments not available]\' ? undefined : argsRaw.split(\',\');\n return new StackFrame({\n functionName: functionName,\n args: args,\n fileName: locationParts[0],\n lineNumber: locationParts[1],\n columnNumber: locationParts[2],\n source: line\n });\n }, this);\n }\n };\n});\n\n/***/ }),\n\n/***/ 69:\n/***/ ((module) => {\n\n\n\nfunction nullthrows(x, message) {\n if (x != null) {\n return x;\n }\n\n var error = new Error(message !== undefined ? message : \'Got unexpected \' + x);\n error.framesToPop = 1; // Skip nullthrows\'s own stack frame.\n\n throw error;\n}\n\nmodule.exports = nullthrows;\nmodule.exports["default"] = nullthrows;\nObject.defineProperty(module.exports, "__esModule", ({\n value: true\n}));\n\n/***/ }),\n\n/***/ 356:\n/***/ (function(module, exports) {\n\nvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (root, factory) {\n \'use strict\'; // Universal Module Definition (UMD) to support AMD, CommonJS/Node.js, Rhino, and browsers.\n\n /* istanbul ignore next */\n\n if (true) {\n !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === \'function\' ?\n\t\t(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n } else {}\n})(this, function () {\n \'use strict\';\n\n function _isNumber(n) {\n return !isNaN(parseFloat(n)) && isFinite(n);\n }\n\n function _capitalize(str) {\n return str.charAt(0).toUpperCase() + str.substring(1);\n }\n\n function _getter(p) {\n return function () {\n return this[p];\n };\n }\n\n var booleanProps = [\'isConstructor\', \'isEval\', \'isNative\', \'isToplevel\'];\n var numericProps = [\'columnNumber\', \'lineNumber\'];\n var stringProps = [\'fileName\', \'functionName\', \'source\'];\n var arrayProps = [\'args\'];\n var props = booleanProps.concat(numericProps, stringProps, arrayProps);\n\n function StackFrame(obj) {\n if (!obj) return;\n\n for (var i = 0; i < props.length; i++) {\n if (obj[props[i]] !== undefined) {\n this[\'set\' + _capitalize(props[i])](obj[props[i]]);\n }\n }\n }\n\n StackFrame.prototype = {\n getArgs: function () {\n return this.args;\n },\n setArgs: function (v) {\n if (Object.prototype.toString.call(v) !== \'[object Array]\') {\n throw new TypeError(\'Args must be an Array\');\n }\n\n this.args = v;\n },\n getEvalOrigin: function () {\n return this.evalOrigin;\n },\n setEvalOrigin: function (v) {\n if (v instanceof StackFrame) {\n this.evalOrigin = v;\n } else if (v instanceof Object) {\n this.evalOrigin = new StackFrame(v);\n } else {\n throw new TypeError(\'Eval Origin must be an Object or StackFrame\');\n }\n },\n toString: function () {\n var fileName = this.getFileName() || \'\';\n var lineNumber = this.getLineNumber() || \'\';\n var columnNumber = this.getColumnNumber() || \'\';\n var functionName = this.getFunctionName() || \'\';\n\n if (this.getIsEval()) {\n if (fileName) {\n return \'[eval] (\' + fileName + \':\' + lineNumber + \':\' + columnNumber + \')\';\n }\n\n return \'[eval]:\' + lineNumber + \':\' + columnNumber;\n }\n\n if (functionName) {\n return functionName + \' (\' + fileName + \':\' + lineNumber + \':\' + columnNumber + \')\';\n }\n\n return fileName + \':\' + lineNumber + \':\' + columnNumber;\n }\n };\n\n StackFrame.fromString = function StackFrame$$fromString(str) {\n var argsStartIndex = str.indexOf(\'(\');\n var argsEndIndex = str.lastIndexOf(\')\');\n var functionName = str.substring(0, argsStartIndex);\n var args = str.substring(argsStartIndex + 1, argsEndIndex).split(\',\');\n var locationString = str.substring(argsEndIndex + 1);\n\n if (locationString.indexOf(\'@\') === 0) {\n var parts = /@(.+?)(?::(\\d+))?(?::(\\d+))?$/.exec(locationString, \'\');\n var fileName = parts[1];\n var lineNumber = parts[2];\n var columnNumber = parts[3];\n }\n\n return new StackFrame({\n functionName: functionName,\n args: args || undefined,\n fileName: fileName,\n lineNumber: lineNumber || undefined,\n columnNumber: columnNumber || undefined\n });\n };\n\n for (var i = 0; i < booleanProps.length; i++) {\n StackFrame.prototype[\'get\' + _capitalize(booleanProps[i])] = _getter(booleanProps[i]);\n\n StackFrame.prototype[\'set\' + _capitalize(booleanProps[i])] = function (p) {\n return function (v) {\n this[p] = Boolean(v);\n };\n }(booleanProps[i]);\n }\n\n for (var j = 0; j < numericProps.length; j++) {\n StackFrame.prototype[\'get\' + _capitalize(numericProps[j])] = _getter(numericProps[j]);\n\n StackFrame.prototype[\'set\' + _capitalize(numericProps[j])] = function (p) {\n return function (v) {\n if (!_isNumber(v)) {\n throw new TypeError(p + \' must be a Number\');\n }\n\n this[p] = Number(v);\n };\n }(numericProps[j]);\n }\n\n for (var k = 0; k < stringProps.length; k++) {\n StackFrame.prototype[\'get\' + _capitalize(stringProps[k])] = _getter(stringProps[k]);\n\n StackFrame.prototype[\'set\' + _capitalize(stringProps[k])] = function (p) {\n return function (v) {\n this[p] = String(v);\n };\n }(stringProps[k]);\n }\n\n return StackFrame;\n});\n\n/***/ }),\n\n/***/ 853:\n/***/ ((module) => {\n\n/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\nvar runtime = function (exports) {\n "use strict";\n\n var Op = Object.prototype;\n var hasOwn = Op.hasOwnProperty;\n var undefined; // More compressible than void 0.\n\n var $Symbol = typeof Symbol === "function" ? Symbol : {};\n var iteratorSymbol = $Symbol.iterator || "@@iterator";\n var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";\n var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";\n\n function define(obj, key, value) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n return obj[key];\n }\n\n try {\n // IE 8 has a broken Object.defineProperty that only works on DOM objects.\n define({}, "");\n } catch (err) {\n define = function (obj, key, value) {\n return obj[key] = value;\n };\n }\n\n function wrap(innerFn, outerFn, self, tryLocsList) {\n // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.\n var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;\n var generator = Object.create(protoGenerator.prototype);\n var context = new Context(tryLocsList || []); // The ._invoke method unifies the implementations of the .next,\n // .throw, and .return methods.\n\n generator._invoke = makeInvokeMethod(innerFn, self, context);\n return generator;\n }\n\n exports.wrap = wrap; // Try/catch helper to minimize deoptimizations. Returns a completion\n // record like context.tryEntries[i].completion. This interface could\n // have been (and was previously) designed to take a closure to be\n // invoked without arguments, but in all the cases we care about we\n // already have an existing method we want to call, so there\'s no need\n // to create a new function object. We can even get away with assuming\n // the method takes exactly one argument, since that happens to be true\n // in every case, so we don\'t have to touch the arguments object. The\n // only additional allocation required is the completion record, which\n // has a stable shape and so hopefully should be cheap to allocate.\n\n function tryCatch(fn, obj, arg) {\n try {\n return {\n type: "normal",\n arg: fn.call(obj, arg)\n };\n } catch (err) {\n return {\n type: "throw",\n arg: err\n };\n }\n }\n\n var GenStateSuspendedStart = "suspendedStart";\n var GenStateSuspendedYield = "suspendedYield";\n var GenStateExecuting = "executing";\n var GenStateCompleted = "completed"; // Returning this object from the innerFn has the same effect as\n // breaking out of the dispatch switch statement.\n\n var ContinueSentinel = {}; // Dummy constructor functions that we use as the .constructor and\n // .constructor.prototype properties for functions that return Generator\n // objects. For full spec compliance, you may wish to configure your\n // minifier not to mangle the names of these two functions.\n\n function Generator() {}\n\n function GeneratorFunction() {}\n\n function GeneratorFunctionPrototype() {} // This is a polyfill for %IteratorPrototype% for environments that\n // don\'t natively support it.\n\n\n var IteratorPrototype = {};\n\n IteratorPrototype[iteratorSymbol] = function () {\n return this;\n };\n\n var getProto = Object.getPrototypeOf;\n var NativeIteratorPrototype = getProto && getProto(getProto(values([])));\n\n if (NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {\n // This environment has a native %IteratorPrototype%; use it instead\n // of the polyfill.\n IteratorPrototype = NativeIteratorPrototype;\n }\n\n var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);\n GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;\n GeneratorFunctionPrototype.constructor = GeneratorFunction;\n GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"); // Helper for defining the .next, .throw, and .return methods of the\n // Iterator interface in terms of a single ._invoke method.\n\n function defineIteratorMethods(prototype) {\n ["next", "throw", "return"].forEach(function (method) {\n define(prototype, method, function (arg) {\n return this._invoke(method, arg);\n });\n });\n }\n\n exports.isGeneratorFunction = function (genFun) {\n var ctor = typeof genFun === "function" && genFun.constructor;\n return ctor ? ctor === GeneratorFunction || // For the native GeneratorFunction constructor, the best we can\n // do is to check its .name property.\n (ctor.displayName || ctor.name) === "GeneratorFunction" : false;\n };\n\n exports.mark = function (genFun) {\n if (Object.setPrototypeOf) {\n Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);\n } else {\n genFun.__proto__ = GeneratorFunctionPrototype;\n define(genFun, toStringTagSymbol, "GeneratorFunction");\n }\n\n genFun.prototype = Object.create(Gp);\n return genFun;\n }; // Within the body of any async function, `await x` is transformed to\n // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test\n // `hasOwn.call(value, "__await")` to determine if the yielded value is\n // meant to be awaited.\n\n\n exports.awrap = function (arg) {\n return {\n __await: arg\n };\n };\n\n function AsyncIterator(generator, PromiseImpl) {\n function invoke(method, arg, resolve, reject) {\n var record = tryCatch(generator[method], generator, arg);\n\n if (record.type === "throw") {\n reject(record.arg);\n } else {\n var result = record.arg;\n var value = result.value;\n\n if (value && typeof value === "object" && hasOwn.call(value, "__await")) {\n return PromiseImpl.resolve(value.__await).then(function (value) {\n invoke("next", value, resolve, reject);\n }, function (err) {\n invoke("throw", err, resolve, reject);\n });\n }\n\n return PromiseImpl.resolve(value).then(function (unwrapped) {\n // When a yielded Promise is resolved, its final value becomes\n // the .value of the Promise<{value,done}> result for the\n // current iteration.\n result.value = unwrapped;\n resolve(result);\n }, function (error) {\n // If a rejected Promise was yielded, throw the rejection back\n // into the async generator function so it can be handled there.\n return invoke("throw", error, resolve, reject);\n });\n }\n }\n\n var previousPromise;\n\n function enqueue(method, arg) {\n function callInvokeWithMethodAndArg() {\n return new PromiseImpl(function (resolve, reject) {\n invoke(method, arg, resolve, reject);\n });\n }\n\n return previousPromise = // If enqueue has been called before, then we want to wait until\n // all previous Promises have been resolved before calling invoke,\n // so that results are always delivered in the correct order. If\n // enqueue has not been called before, then it is important to\n // call invoke immediately, without waiting on a callback to fire,\n // so that the async generator function has the opportunity to do\n // any necessary setup in a predictable way. This predictability\n // is why the Promise constructor synchronously invokes its\n // executor callback, and why async functions synchronously\n // execute code before the first await. Since we implement simple\n // async functions in terms of async generators, it is especially\n // important to get this right, even though it requires care.\n previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, // Avoid propagating failures to Promises returned by later\n // invocations of the iterator.\n callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();\n } // Define the unified helper method that is used to implement .next,\n // .throw, and .return (see defineIteratorMethods).\n\n\n this._invoke = enqueue;\n }\n\n defineIteratorMethods(AsyncIterator.prototype);\n\n AsyncIterator.prototype[asyncIteratorSymbol] = function () {\n return this;\n };\n\n exports.AsyncIterator = AsyncIterator; // Note that simple async functions are implemented on top of\n // AsyncIterator objects; they just return a Promise for the value of\n // the final result produced by the iterator.\n\n exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {\n if (PromiseImpl === void 0) PromiseImpl = Promise;\n var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);\n return exports.isGeneratorFunction(outerFn) ? iter // If outerFn is a generator, return the full iterator.\n : iter.next().then(function (result) {\n return result.done ? result.value : iter.next();\n });\n };\n\n function makeInvokeMethod(innerFn, self, context) {\n var state = GenStateSuspendedStart;\n return function invoke(method, arg) {\n if (state === GenStateExecuting) {\n throw new Error("Generator is already running");\n }\n\n if (state === GenStateCompleted) {\n if (method === "throw") {\n throw arg;\n } // Be forgiving, per 25.3.3.3.3 of the spec:\n // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume\n\n\n return doneResult();\n }\n\n context.method = method;\n context.arg = arg;\n\n while (true) {\n var delegate = context.delegate;\n\n if (delegate) {\n var delegateResult = maybeInvokeDelegate(delegate, context);\n\n if (delegateResult) {\n if (delegateResult === ContinueSentinel) continue;\n return delegateResult;\n }\n }\n\n if (context.method === "next") {\n // Setting context._sent for legacy support of Babel\'s\n // function.sent implementation.\n context.sent = context._sent = context.arg;\n } else if (context.method === "throw") {\n if (state === GenStateSuspendedStart) {\n state = GenStateCompleted;\n throw context.arg;\n }\n\n context.dispatchException(context.arg);\n } else if (context.method === "return") {\n context.abrupt("return", context.arg);\n }\n\n state = GenStateExecuting;\n var record = tryCatch(innerFn, self, context);\n\n if (record.type === "normal") {\n // If an exception is thrown from innerFn, we leave state ===\n // GenStateExecuting and loop back for another invocation.\n state = context.done ? GenStateCompleted : GenStateSuspendedYield;\n\n if (record.arg === ContinueSentinel) {\n continue;\n }\n\n return {\n value: record.arg,\n done: context.done\n };\n } else if (record.type === "throw") {\n state = GenStateCompleted; // Dispatch the exception by looping back around to the\n // context.dispatchException(context.arg) call above.\n\n context.method = "throw";\n context.arg = record.arg;\n }\n }\n };\n } // Call delegate.iterator[context.method](context.arg) and handle the\n // result, either by returning a { value, done } result from the\n // delegate iterator, or by modifying context.method and context.arg,\n // setting context.delegate to null, and returning the ContinueSentinel.\n\n\n function maybeInvokeDelegate(delegate, context) {\n var method = delegate.iterator[context.method];\n\n if (method === undefined) {\n // A .throw or .return when the delegate iterator has no .throw\n // method always terminates the yield* loop.\n context.delegate = null;\n\n if (context.method === "throw") {\n // Note: ["return"] must be used for ES3 parsing compatibility.\n if (delegate.iterator["return"]) {\n // If the delegate iterator has a return method, give it a\n // chance to clean up.\n context.method = "return";\n context.arg = undefined;\n maybeInvokeDelegate(delegate, context);\n\n if (context.method === "throw") {\n // If maybeInvokeDelegate(context) changed context.method from\n // "return" to "throw", let that override the TypeError below.\n return ContinueSentinel;\n }\n }\n\n context.method = "throw";\n context.arg = new TypeError("The iterator does not provide a \'throw\' method");\n }\n\n return ContinueSentinel;\n }\n\n var record = tryCatch(method, delegate.iterator, context.arg);\n\n if (record.type === "throw") {\n context.method = "throw";\n context.arg = record.arg;\n context.delegate = null;\n return ContinueSentinel;\n }\n\n var info = record.arg;\n\n if (!info) {\n context.method = "throw";\n context.arg = new TypeError("iterator result is not an object");\n context.delegate = null;\n return ContinueSentinel;\n }\n\n if (info.done) {\n // Assign the result of the finished delegate to the temporary\n // variable specified by delegate.resultName (see delegateYield).\n context[delegate.resultName] = info.value; // Resume execution at the desired location (see delegateYield).\n\n context.next = delegate.nextLoc; // If context.method was "throw" but the delegate handled the\n // exception, let the outer generator proceed normally. If\n // context.method was "next", forget context.arg since it has been\n // "consumed" by the delegate iterator. If context.method was\n // "return", allow the original .return call to continue in the\n // outer generator.\n\n if (context.method !== "return") {\n context.method = "next";\n context.arg = undefined;\n }\n } else {\n // Re-yield the result returned by the delegate method.\n return info;\n } // The delegate iterator is finished, so forget it and continue with\n // the outer generator.\n\n\n context.delegate = null;\n return ContinueSentinel;\n } // Define Generator.prototype.{next,throw,return} in terms of the\n // unified ._invoke helper method.\n\n\n defineIteratorMethods(Gp);\n define(Gp, toStringTagSymbol, "Generator"); // A Generator should always return itself as the iterator object when the\n // @@iterator function is called on it. Some browsers\' implementations of the\n // iterator prototype chain incorrectly implement this, causing the Generator\n // object to not be returned from this call. This ensures that doesn\'t happen.\n // See https://github.com/facebook/regenerator/issues/274 for more details.\n\n Gp[iteratorSymbol] = function () {\n return this;\n };\n\n Gp.toString = function () {\n return "[object Generator]";\n };\n\n function pushTryEntry(locs) {\n var entry = {\n tryLoc: locs[0]\n };\n\n if (1 in locs) {\n entry.catchLoc = locs[1];\n }\n\n if (2 in locs) {\n entry.finallyLoc = locs[2];\n entry.afterLoc = locs[3];\n }\n\n this.tryEntries.push(entry);\n }\n\n function resetTryEntry(entry) {\n var record = entry.completion || {};\n record.type = "normal";\n delete record.arg;\n entry.completion = record;\n }\n\n function Context(tryLocsList) {\n // The root entry object (effectively a try statement without a catch\n // or a finally block) gives us a place to store values thrown from\n // locations where there is no enclosing try statement.\n this.tryEntries = [{\n tryLoc: "root"\n }];\n tryLocsList.forEach(pushTryEntry, this);\n this.reset(true);\n }\n\n exports.keys = function (object) {\n var keys = [];\n\n for (var key in object) {\n keys.push(key);\n }\n\n keys.reverse(); // Rather than returning an object with a next method, we keep\n // things simple and return the next function itself.\n\n return function next() {\n while (keys.length) {\n var key = keys.pop();\n\n if (key in object) {\n next.value = key;\n next.done = false;\n return next;\n }\n } // To avoid creating an additional object, we just hang the .value\n // and .done properties off the next function object itself. This\n // also ensures that the minifier will not anonymize the function.\n\n\n next.done = true;\n return next;\n };\n };\n\n function values(iterable) {\n if (iterable) {\n var iteratorMethod = iterable[iteratorSymbol];\n\n if (iteratorMethod) {\n return iteratorMethod.call(iterable);\n }\n\n if (typeof iterable.next === "function") {\n return iterable;\n }\n\n if (!isNaN(iterable.length)) {\n var i = -1,\n next = function next() {\n while (++i < iterable.length) {\n if (hasOwn.call(iterable, i)) {\n next.value = iterable[i];\n next.done = false;\n return next;\n }\n }\n\n next.value = undefined;\n next.done = true;\n return next;\n };\n\n return next.next = next;\n }\n } // Return an iterator with no values.\n\n\n return {\n next: doneResult\n };\n }\n\n exports.values = values;\n\n function doneResult() {\n return {\n value: undefined,\n done: true\n };\n }\n\n Context.prototype = {\n constructor: Context,\n reset: function (skipTempReset) {\n this.prev = 0;\n this.next = 0; // Resetting context._sent for legacy support of Babel\'s\n // function.sent implementation.\n\n this.sent = this._sent = undefined;\n this.done = false;\n this.delegate = null;\n this.method = "next";\n this.arg = undefined;\n this.tryEntries.forEach(resetTryEntry);\n\n if (!skipTempReset) {\n for (var name in this) {\n // Not sure about the optimal order of these conditions:\n if (name.charAt(0) === "t" && hasOwn.call(this, name) && !isNaN(+name.slice(1))) {\n this[name] = undefined;\n }\n }\n }\n },\n stop: function () {\n this.done = true;\n var rootEntry = this.tryEntries[0];\n var rootRecord = rootEntry.completion;\n\n if (rootRecord.type === "throw") {\n throw rootRecord.arg;\n }\n\n return this.rval;\n },\n dispatchException: function (exception) {\n if (this.done) {\n throw exception;\n }\n\n var context = this;\n\n function handle(loc, caught) {\n record.type = "throw";\n record.arg = exception;\n context.next = loc;\n\n if (caught) {\n // If the dispatched exception was caught by a catch block,\n // then let that catch block handle the exception normally.\n context.method = "next";\n context.arg = undefined;\n }\n\n return !!caught;\n }\n\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n var record = entry.completion;\n\n if (entry.tryLoc === "root") {\n // Exception thrown outside of any try block that could handle\n // it, so set the completion value of the entire function to\n // throw the exception.\n return handle("end");\n }\n\n if (entry.tryLoc <= this.prev) {\n var hasCatch = hasOwn.call(entry, "catchLoc");\n var hasFinally = hasOwn.call(entry, "finallyLoc");\n\n if (hasCatch && hasFinally) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n } else if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n } else if (hasCatch) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n }\n } else if (hasFinally) {\n if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n } else {\n throw new Error("try statement without catch or finally");\n }\n }\n }\n },\n abrupt: function (type, arg) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n\n if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {\n var finallyEntry = entry;\n break;\n }\n }\n\n if (finallyEntry && (type === "break" || type === "continue") && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc) {\n // Ignore the finally entry if control is not jumping to a\n // location outside the try/catch block.\n finallyEntry = null;\n }\n\n var record = finallyEntry ? finallyEntry.completion : {};\n record.type = type;\n record.arg = arg;\n\n if (finallyEntry) {\n this.method = "next";\n this.next = finallyEntry.finallyLoc;\n return ContinueSentinel;\n }\n\n return this.complete(record);\n },\n complete: function (record, afterLoc) {\n if (record.type === "throw") {\n throw record.arg;\n }\n\n if (record.type === "break" || record.type === "continue") {\n this.next = record.arg;\n } else if (record.type === "return") {\n this.rval = this.arg = record.arg;\n this.method = "return";\n this.next = "end";\n } else if (record.type === "normal" && afterLoc) {\n this.next = afterLoc;\n }\n\n return ContinueSentinel;\n },\n finish: function (finallyLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n\n if (entry.finallyLoc === finallyLoc) {\n this.complete(entry.completion, entry.afterLoc);\n resetTryEntry(entry);\n return ContinueSentinel;\n }\n }\n },\n "catch": function (tryLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n\n if (entry.tryLoc === tryLoc) {\n var record = entry.completion;\n\n if (record.type === "throw") {\n var thrown = record.arg;\n resetTryEntry(entry);\n }\n\n return thrown;\n }\n } // The context.catch method must only be called with a location\n // argument that corresponds to a known catch block.\n\n\n throw new Error("illegal catch attempt");\n },\n delegateYield: function (iterable, resultName, nextLoc) {\n this.delegate = {\n iterator: values(iterable),\n resultName: resultName,\n nextLoc: nextLoc\n };\n\n if (this.method === "next") {\n // Deliberately forget the last sent value so that we don\'t\n // accidentally pass it on to the delegate.\n this.arg = undefined;\n }\n\n return ContinueSentinel;\n }\n }; // Regardless of whether this script is executing as a CommonJS module\n // or not, return the runtime object so that we can declare the variable\n // regeneratorRuntime in the outer scope, which allows this module to be\n // injected easily by `bin/regenerator --include-runtime script.js`.\n\n return exports;\n}( // If this script is executing as a CommonJS module, use module.exports\n// as the regeneratorRuntime namespace. Otherwise create a new empty\n// object. Either way, the resulting object will be used to initialize\n// the regeneratorRuntime variable at the top of this file.\n true ? module.exports : 0);\n\ntry {\n regeneratorRuntime = runtime;\n} catch (accidentalStrictMode) {\n // This module should not be running in strict mode, so the above\n // assignment should always work unless something is misconfigured. Just\n // in case runtime.js accidentally runs in strict mode, we can escape\n // strict mode using a global Function call. This could conceivably fail\n // if a Content Security Policy forbids using Function, but in that case\n // the proper solution is to fix the accidental strict mode problem. If\n // you\'ve misconfigured your bundler to force strict mode and applied a\n // CSP to forbid Function, and you\'re not willing to fix either of those\n // problems, please detail your unique predicament in a GitHub issue.\n Function("r", "regeneratorRuntime = r")(runtime);\n}\n\n/***/ })\n\n/******/ });\n/************************************************************************/\n/******/ // The module cache\n/******/ var __webpack_module_cache__ = {};\n/******/ \n/******/ // The require function\n/******/ function __webpack_require__(moduleId) {\n/******/ \t// Check if module is in cache\n/******/ \tvar cachedModule = __webpack_module_cache__[moduleId];\n/******/ \tif (cachedModule !== undefined) {\n/******/ \t\treturn cachedModule.exports;\n/******/ \t}\n/******/ \t// Create a new module (and put it into the cache)\n/******/ \tvar module = __webpack_module_cache__[moduleId] = {\n/******/ \t\t// no module.id needed\n/******/ \t\t// no module.loaded needed\n/******/ \t\texports: {}\n/******/ \t};\n/******/ \n/******/ \t// Execute the module function\n/******/ \t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/ \n/******/ \t// Return the exports of the module\n/******/ \treturn module.exports;\n/******/ }\n/******/ \n/************************************************************************/\n/******/ /* webpack/runtime/compat get default export */\n/******/ (() => {\n/******/ \t// getDefaultExport function for compatibility with non-harmony modules\n/******/ \t__webpack_require__.n = (module) => {\n/******/ \t\tvar getter = module && module.__esModule ?\n/******/ \t\t\t() => (module[\'default\']) :\n/******/ \t\t\t() => (module);\n/******/ \t\t__webpack_require__.d(getter, { a: getter });\n/******/ \t\treturn getter;\n/******/ \t};\n/******/ })();\n/******/ \n/******/ /* webpack/runtime/define property getters */\n/******/ (() => {\n/******/ \t// define getter functions for harmony exports\n/******/ \t__webpack_require__.d = (exports, definition) => {\n/******/ \t\tfor(var key in definition) {\n/******/ \t\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n/******/ \t\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n/******/ \t\t\t}\n/******/ \t\t}\n/******/ \t};\n/******/ })();\n/******/ \n/******/ /* webpack/runtime/hasOwnProperty shorthand */\n/******/ (() => {\n/******/ \t__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))\n/******/ })();\n/******/ \n/************************************************************************/\nvar __webpack_exports__ = {};\n// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.\n(() => {\n\n// EXPORTS\n__webpack_require__.d(__webpack_exports__, {\n "importFile": () => (/* binding */ importFile_worker_importFile)\n});\n\n// EXTERNAL MODULE: ../react-devtools-timeline/node_modules/regenerator-runtime/runtime.js\nvar runtime = __webpack_require__(853);\n// EXTERNAL MODULE: ../../node_modules/@elg/speedscope/dist/library/library.js\nvar library = __webpack_require__(41);\n;// CONCATENATED MODULE: ../react-devtools-shared/src/devtools/constants.js\nconst CHANGE_LOG_URL = \'https://github.com/facebook/react/blob/main/packages/react-devtools/CHANGELOG.md\';\nconst UNSUPPORTED_VERSION_URL = \'https://reactjs.org/blog/2019/08/15/new-react-devtools.html#how-do-i-get-the-old-version-back\';\nconst REACT_DEVTOOLS_WORKPLACE_URL = \'https://fburl.com/react-devtools-workplace-group\';\nconst THEME_STYLES = {\n light: {\n \'--color-attribute-name\': \'#ef6632\',\n \'--color-attribute-name-not-editable\': \'#23272f\',\n \'--color-attribute-name-inverted\': \'rgba(255, 255, 255, 0.7)\',\n \'--color-attribute-value\': \'#1a1aa6\',\n \'--color-attribute-value-inverted\': \'#ffffff\',\n \'--color-attribute-editable-value\': \'#1a1aa6\',\n \'--color-background\': \'#ffffff\',\n \'--color-background-hover\': \'rgba(0, 136, 250, 0.1)\',\n \'--color-background-inactive\': \'#e5e5e5\',\n \'--color-background-invalid\': \'#fff0f0\',\n \'--color-background-selected\': \'#0088fa\',\n \'--color-button-background\': \'#ffffff\',\n \'--color-button-background-focus\': \'#ededed\',\n \'--color-button\': \'#5f6673\',\n \'--color-button-disabled\': \'#cfd1d5\',\n \'--color-button-active\': \'#0088fa\',\n \'--color-button-focus\': \'#23272f\',\n \'--color-button-hover\': \'#23272f\',\n \'--color-border\': \'#eeeeee\',\n \'--color-commit-did-not-render-fill\': \'#cfd1d5\',\n \'--color-commit-did-not-render-fill-text\': \'#000000\',\n \'--color-commit-did-not-render-pattern\': \'#cfd1d5\',\n \'--color-commit-did-not-render-pattern-text\': \'#333333\',\n \'--color-commit-gradient-0\': \'#37afa9\',\n \'--color-commit-gradient-1\': \'#63b19e\',\n \'--color-commit-gradient-2\': \'#80b393\',\n \'--color-commit-gradient-3\': \'#97b488\',\n \'--color-commit-gradient-4\': \'#abb67d\',\n \'--color-commit-gradient-5\': \'#beb771\',\n \'--color-commit-gradient-6\': \'#cfb965\',\n \'--color-commit-gradient-7\': \'#dfba57\',\n \'--color-commit-gradient-8\': \'#efbb49\',\n \'--color-commit-gradient-9\': \'#febc38\',\n \'--color-commit-gradient-text\': \'#000000\',\n \'--color-component-name\': \'#6a51b2\',\n \'--color-component-name-inverted\': \'#ffffff\',\n \'--color-component-badge-background\': \'rgba(0, 0, 0, 0.1)\',\n \'--color-component-badge-background-inverted\': \'rgba(255, 255, 255, 0.25)\',\n \'--color-component-badge-count\': \'#777d88\',\n \'--color-component-badge-count-inverted\': \'rgba(255, 255, 255, 0.7)\',\n \'--color-console-error-badge-text\': \'#ffffff\',\n \'--color-console-error-background\': \'#fff0f0\',\n \'--color-console-error-border\': \'#ffd6d6\',\n \'--color-console-error-icon\': \'#eb3941\',\n \'--color-console-error-text\': \'#fe2e31\',\n \'--color-console-warning-badge-text\': \'#000000\',\n \'--color-console-warning-background\': \'#fffbe5\',\n \'--color-console-warning-border\': \'#fff5c1\',\n \'--color-console-warning-icon\': \'#f4bd00\',\n \'--color-console-warning-text\': \'#64460c\',\n \'--color-context-background\': \'rgba(0,0,0,.9)\',\n \'--color-context-background-hover\': \'rgba(255, 255, 255, 0.1)\',\n \'--color-context-background-selected\': \'#178fb9\',\n \'--color-context-border\': \'#3d424a\',\n \'--color-context-text\': \'#ffffff\',\n \'--color-context-text-selected\': \'#ffffff\',\n \'--color-dim\': \'#777d88\',\n \'--color-dimmer\': \'#cfd1d5\',\n \'--color-dimmest\': \'#eff0f1\',\n \'--color-error-background\': \'hsl(0, 100%, 97%)\',\n \'--color-error-border\': \'hsl(0, 100%, 92%)\',\n \'--color-error-text\': \'#ff0000\',\n \'--color-expand-collapse-toggle\': \'#777d88\',\n \'--color-forget-badge-background\': \'#2683e2\',\n \'--color-forget-badge-background-inverted\': \'#1a6bbc\',\n \'--color-forget-text\': \'#fff\',\n \'--color-link\': \'#0000ff\',\n \'--color-modal-background\': \'rgba(255, 255, 255, 0.75)\',\n \'--color-bridge-version-npm-background\': \'#eff0f1\',\n \'--color-bridge-version-npm-text\': \'#000000\',\n \'--color-bridge-version-number\': \'#0088fa\',\n \'--color-primitive-hook-badge-background\': \'#e5e5e5\',\n \'--color-primitive-hook-badge-text\': \'#5f6673\',\n \'--color-record-active\': \'#fc3a4b\',\n \'--color-record-hover\': \'#3578e5\',\n \'--color-record-inactive\': \'#0088fa\',\n \'--color-resize-bar\': \'#eeeeee\',\n \'--color-resize-bar-active\': \'#dcdcdc\',\n \'--color-resize-bar-border\': \'#d1d1d1\',\n \'--color-resize-bar-dot\': \'#333333\',\n \'--color-timeline-internal-module\': \'#d1d1d1\',\n \'--color-timeline-internal-module-hover\': \'#c9c9c9\',\n \'--color-timeline-internal-module-text\': \'#444\',\n \'--color-timeline-native-event\': \'#ccc\',\n \'--color-timeline-native-event-hover\': \'#aaa\',\n \'--color-timeline-network-primary\': \'#fcf3dc\',\n \'--color-timeline-network-primary-hover\': \'#f0e7d1\',\n \'--color-timeline-network-secondary\': \'#efc457\',\n \'--color-timeline-network-secondary-hover\': \'#e3ba52\',\n \'--color-timeline-priority-background\': \'#f6f6f6\',\n \'--color-timeline-priority-border\': \'#eeeeee\',\n \'--color-timeline-user-timing\': \'#c9cacd\',\n \'--color-timeline-user-timing-hover\': \'#93959a\',\n \'--color-timeline-react-idle\': \'#d3e5f6\',\n \'--color-timeline-react-idle-hover\': \'#c3d9ef\',\n \'--color-timeline-react-render\': \'#9fc3f3\',\n \'--color-timeline-react-render-hover\': \'#83afe9\',\n \'--color-timeline-react-render-text\': \'#11365e\',\n \'--color-timeline-react-commit\': \'#c88ff0\',\n \'--color-timeline-react-commit-hover\': \'#b281d6\',\n \'--color-timeline-react-commit-text\': \'#3e2c4a\',\n \'--color-timeline-react-layout-effects\': \'#b281d6\',\n \'--color-timeline-react-layout-effects-hover\': \'#9d71bd\',\n \'--color-timeline-react-layout-effects-text\': \'#3e2c4a\',\n \'--color-timeline-react-passive-effects\': \'#b281d6\',\n \'--color-timeline-react-passive-effects-hover\': \'#9d71bd\',\n \'--color-timeline-react-passive-effects-text\': \'#3e2c4a\',\n \'--color-timeline-react-schedule\': \'#9fc3f3\',\n \'--color-timeline-react-schedule-hover\': \'#2683E2\',\n \'--color-timeline-react-suspense-rejected\': \'#f1cc14\',\n \'--color-timeline-react-suspense-rejected-hover\': \'#ffdf37\',\n \'--color-timeline-react-suspense-resolved\': \'#a6e59f\',\n \'--color-timeline-react-suspense-resolved-hover\': \'#89d281\',\n \'--color-timeline-react-suspense-unresolved\': \'#c9cacd\',\n \'--color-timeline-react-suspense-unresolved-hover\': \'#93959a\',\n \'--color-timeline-thrown-error\': \'#ee1638\',\n \'--color-timeline-thrown-error-hover\': \'#da1030\',\n \'--color-timeline-text-color\': \'#000000\',\n \'--color-timeline-text-dim-color\': \'#ccc\',\n \'--color-timeline-react-work-border\': \'#eeeeee\',\n \'--color-search-match\': \'yellow\',\n \'--color-search-match-current\': \'#f7923b\',\n \'--color-selected-tree-highlight-active\': \'rgba(0, 136, 250, 0.1)\',\n \'--color-selected-tree-highlight-inactive\': \'rgba(0, 0, 0, 0.05)\',\n \'--color-scroll-caret\': \'rgba(150, 150, 150, 0.5)\',\n \'--color-tab-selected-border\': \'#0088fa\',\n \'--color-text\': \'#000000\',\n \'--color-text-invalid\': \'#ff0000\',\n \'--color-text-selected\': \'#ffffff\',\n \'--color-toggle-background-invalid\': \'#fc3a4b\',\n \'--color-toggle-background-on\': \'#0088fa\',\n \'--color-toggle-background-off\': \'#cfd1d5\',\n \'--color-toggle-text\': \'#ffffff\',\n \'--color-warning-background\': \'#fb3655\',\n \'--color-warning-background-hover\': \'#f82042\',\n \'--color-warning-text-color\': \'#ffffff\',\n \'--color-warning-text-color-inverted\': \'#fd4d69\',\n // The styles below should be kept in sync with \'root.css\'\n // They are repeated there because they\'re used by e.g. tooltips or context menus\n // which get rendered outside of the DOM subtree (where normal theme/styles are written).\n \'--color-scroll-thumb\': \'#c2c2c2\',\n \'--color-scroll-track\': \'#fafafa\',\n \'--color-tooltip-background\': \'rgba(0, 0, 0, 0.9)\',\n \'--color-tooltip-text\': \'#ffffff\'\n },\n dark: {\n \'--color-attribute-name\': \'#9d87d2\',\n \'--color-attribute-name-not-editable\': \'#ededed\',\n \'--color-attribute-name-inverted\': \'#282828\',\n \'--color-attribute-value\': \'#cedae0\',\n \'--color-attribute-value-inverted\': \'#ffffff\',\n \'--color-attribute-editable-value\': \'yellow\',\n \'--color-background\': \'#282c34\',\n \'--color-background-hover\': \'rgba(255, 255, 255, 0.1)\',\n \'--color-background-inactive\': \'#3d424a\',\n \'--color-background-invalid\': \'#5c0000\',\n \'--color-background-selected\': \'#178fb9\',\n \'--color-button-background\': \'#282c34\',\n \'--color-button-background-focus\': \'#3d424a\',\n \'--color-button\': \'#afb3b9\',\n \'--color-button-active\': \'#61dafb\',\n \'--color-button-disabled\': \'#4f5766\',\n \'--color-button-focus\': \'#a2e9fc\',\n \'--color-button-hover\': \'#ededed\',\n \'--color-border\': \'#3d424a\',\n \'--color-commit-did-not-render-fill\': \'#777d88\',\n \'--color-commit-did-not-render-fill-text\': \'#000000\',\n \'--color-commit-did-not-render-pattern\': \'#666c77\',\n \'--color-commit-did-not-render-pattern-text\': \'#ffffff\',\n \'--color-commit-gradient-0\': \'#37afa9\',\n \'--color-commit-gradient-1\': \'#63b19e\',\n \'--color-commit-gradient-2\': \'#80b393\',\n \'--color-commit-gradient-3\': \'#97b488\',\n \'--color-commit-gradient-4\': \'#abb67d\',\n \'--color-commit-gradient-5\': \'#beb771\',\n \'--color-commit-gradient-6\': \'#cfb965\',\n \'--color-commit-gradient-7\': \'#dfba57\',\n \'--color-commit-gradient-8\': \'#efbb49\',\n \'--color-commit-gradient-9\': \'#febc38\',\n \'--color-commit-gradient-text\': \'#000000\',\n \'--color-component-name\': \'#61dafb\',\n \'--color-component-name-inverted\': \'#282828\',\n \'--color-component-badge-background\': \'#5e6167\',\n \'--color-component-badge-background-inverted\': \'#46494e\',\n \'--color-component-badge-count\': \'#8f949d\',\n \'--color-component-badge-count-inverted\': \'rgba(255, 255, 255, 0.85)\',\n \'--color-console-error-badge-text\': \'#000000\',\n \'--color-console-error-background\': \'#290000\',\n \'--color-console-error-border\': \'#5c0000\',\n \'--color-console-error-icon\': \'#eb3941\',\n \'--color-console-error-text\': \'#fc7f7f\',\n \'--color-console-warning-badge-text\': \'#000000\',\n \'--color-console-warning-background\': \'#332b00\',\n \'--color-console-warning-border\': \'#665500\',\n \'--color-console-warning-icon\': \'#f4bd00\',\n \'--color-console-warning-text\': \'#f5f2ed\',\n \'--color-context-background\': \'rgba(255,255,255,.95)\',\n \'--color-context-background-hover\': \'rgba(0, 136, 250, 0.1)\',\n \'--color-context-background-selected\': \'#0088fa\',\n \'--color-context-border\': \'#eeeeee\',\n \'--color-context-text\': \'#000000\',\n \'--color-context-text-selected\': \'#ffffff\',\n \'--color-dim\': \'#8f949d\',\n \'--color-dimmer\': \'#777d88\',\n \'--color-dimmest\': \'#4f5766\',\n \'--color-error-background\': \'#200\',\n \'--color-error-border\': \'#900\',\n \'--color-error-text\': \'#f55\',\n \'--color-expand-collapse-toggle\': \'#8f949d\',\n \'--color-forget-badge-background\': \'#2683e2\',\n \'--color-forget-badge-background-inverted\': \'#1a6bbc\',\n \'--color-forget-text\': \'#fff\',\n \'--color-link\': \'#61dafb\',\n \'--color-modal-background\': \'rgba(0, 0, 0, 0.75)\',\n \'--color-bridge-version-npm-background\': \'rgba(0, 0, 0, 0.25)\',\n \'--color-bridge-version-npm-text\': \'#ffffff\',\n \'--color-bridge-version-number\': \'yellow\',\n \'--color-primitive-hook-badge-background\': \'rgba(0, 0, 0, 0.25)\',\n \'--color-primitive-hook-badge-text\': \'rgba(255, 255, 255, 0.7)\',\n \'--color-record-active\': \'#fc3a4b\',\n \'--color-record-hover\': \'#a2e9fc\',\n \'--color-record-inactive\': \'#61dafb\',\n \'--color-resize-bar\': \'#282c34\',\n \'--color-resize-bar-active\': \'#31363f\',\n \'--color-resize-bar-border\': \'#3d424a\',\n \'--color-resize-bar-dot\': \'#cfd1d5\',\n \'--color-timeline-internal-module\': \'#303542\',\n \'--color-timeline-internal-module-hover\': \'#363b4a\',\n \'--color-timeline-internal-module-text\': \'#7f8899\',\n \'--color-timeline-native-event\': \'#b2b2b2\',\n \'--color-timeline-native-event-hover\': \'#949494\',\n \'--color-timeline-network-primary\': \'#fcf3dc\',\n \'--color-timeline-network-primary-hover\': \'#e3dbc5\',\n \'--color-timeline-network-secondary\': \'#efc457\',\n \'--color-timeline-network-secondary-hover\': \'#d6af4d\',\n \'--color-timeline-priority-background\': \'#1d2129\',\n \'--color-timeline-priority-border\': \'#282c34\',\n \'--color-timeline-user-timing\': \'#c9cacd\',\n \'--color-timeline-user-timing-hover\': \'#93959a\',\n \'--color-timeline-react-idle\': \'#3d485b\',\n \'--color-timeline-react-idle-hover\': \'#465269\',\n \'--color-timeline-react-render\': \'#2683E2\',\n \'--color-timeline-react-render-hover\': \'#1a76d4\',\n \'--color-timeline-react-render-text\': \'#11365e\',\n \'--color-timeline-react-commit\': \'#731fad\',\n \'--color-timeline-react-commit-hover\': \'#611b94\',\n \'--color-timeline-react-commit-text\': \'#e5c1ff\',\n \'--color-timeline-react-layout-effects\': \'#611b94\',\n \'--color-timeline-react-layout-effects-hover\': \'#51167a\',\n \'--color-timeline-react-layout-effects-text\': \'#e5c1ff\',\n \'--color-timeline-react-passive-effects\': \'#611b94\',\n \'--color-timeline-react-passive-effects-hover\': \'#51167a\',\n \'--color-timeline-react-passive-effects-text\': \'#e5c1ff\',\n \'--color-timeline-react-schedule\': \'#2683E2\',\n \'--color-timeline-react-schedule-hover\': \'#1a76d4\',\n \'--color-timeline-react-suspense-rejected\': \'#f1cc14\',\n \'--color-timeline-react-suspense-rejected-hover\': \'#e4c00f\',\n \'--color-timeline-react-suspense-resolved\': \'#a6e59f\',\n \'--color-timeline-react-suspense-resolved-hover\': \'#89d281\',\n \'--color-timeline-react-suspense-unresolved\': \'#c9cacd\',\n \'--color-timeline-react-suspense-unresolved-hover\': \'#93959a\',\n \'--color-timeline-thrown-error\': \'#fb3655\',\n \'--color-timeline-thrown-error-hover\': \'#f82042\',\n \'--color-timeline-text-color\': \'#282c34\',\n \'--color-timeline-text-dim-color\': \'#555b66\',\n \'--color-timeline-react-work-border\': \'#3d424a\',\n \'--color-search-match\': \'yellow\',\n \'--color-search-match-current\': \'#f7923b\',\n \'--color-selected-tree-highlight-active\': \'rgba(23, 143, 185, 0.15)\',\n \'--color-selected-tree-highlight-inactive\': \'rgba(255, 255, 255, 0.05)\',\n \'--color-scroll-caret\': \'#4f5766\',\n \'--color-shadow\': \'rgba(0, 0, 0, 0.5)\',\n \'--color-tab-selected-border\': \'#178fb9\',\n \'--color-text\': \'#ffffff\',\n \'--color-text-invalid\': \'#ff8080\',\n \'--color-text-selected\': \'#ffffff\',\n \'--color-toggle-background-invalid\': \'#fc3a4b\',\n \'--color-toggle-background-on\': \'#178fb9\',\n \'--color-toggle-background-off\': \'#777d88\',\n \'--color-toggle-text\': \'#ffffff\',\n \'--color-warning-background\': \'#ee1638\',\n \'--color-warning-background-hover\': \'#da1030\',\n \'--color-warning-text-color\': \'#ffffff\',\n \'--color-warning-text-color-inverted\': \'#ee1638\',\n // The styles below should be kept in sync with \'root.css\'\n // They are repeated there because they\'re used by e.g. tooltips or context menus\n // which get rendered outside of the DOM subtree (where normal theme/styles are written).\n \'--color-scroll-thumb\': \'#afb3b9\',\n \'--color-scroll-track\': \'#313640\',\n \'--color-tooltip-background\': \'rgba(255, 255, 255, 0.95)\',\n \'--color-tooltip-text\': \'#000000\'\n },\n compact: {\n \'--font-size-monospace-small\': \'9px\',\n \'--font-size-monospace-normal\': \'11px\',\n \'--font-size-monospace-large\': \'15px\',\n \'--font-size-sans-small\': \'10px\',\n \'--font-size-sans-normal\': \'12px\',\n \'--font-size-sans-large\': \'14px\',\n \'--line-height-data\': \'18px\'\n },\n comfortable: {\n \'--font-size-monospace-small\': \'10px\',\n \'--font-size-monospace-normal\': \'13px\',\n \'--font-size-monospace-large\': \'17px\',\n \'--font-size-sans-small\': \'12px\',\n \'--font-size-sans-normal\': \'14px\',\n \'--font-size-sans-large\': \'16px\',\n \'--line-height-data\': \'22px\'\n }\n}; // HACK\n//\n// Sometimes the inline target is rendered before root styles are applied,\n// which would result in e.g. NaN itemSize being passed to react-window list.\n\nconst COMFORTABLE_LINE_HEIGHT = parseInt(THEME_STYLES.comfortable[\'--line-height-data\'], 10);\nconst COMPACT_LINE_HEIGHT = parseInt(THEME_STYLES.compact[\'--line-height-data\'], 10);\n\n;// CONCATENATED MODULE: ../react-devtools-timeline/src/constants.js\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\n\nconst REACT_TOTAL_NUM_LANES = 31; // Increment this number any time a backwards breaking change is made to the profiler metadata.\n\nconst SCHEDULING_PROFILER_VERSION = 1;\nconst SNAPSHOT_MAX_HEIGHT = 60;\n;// CONCATENATED MODULE: ../react-devtools-timeline/src/import-worker/InvalidProfileError.js\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\n\n/**\n * An error thrown when an invalid profile could not be processed.\n */\nclass InvalidProfileError extends Error {}\n;// CONCATENATED MODULE: ../react-devtools-timeline/node_modules/memoize-one/dist/memoize-one.esm.js\nfunction areInputsEqual(newInputs, lastInputs) {\n if (newInputs.length !== lastInputs.length) {\n return false;\n }\n\n for (var i = 0; i < newInputs.length; i++) {\n if (newInputs[i] !== lastInputs[i]) {\n return false;\n }\n }\n\n return true;\n}\n\nfunction memoizeOne(resultFn, isEqual) {\n if (isEqual === void 0) {\n isEqual = areInputsEqual;\n }\n\n var lastThis;\n var lastArgs = [];\n var lastResult;\n var calledOnce = false;\n\n function memoized() {\n var newArgs = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n newArgs[_i] = arguments[_i];\n }\n\n if (calledOnce && lastThis === this && isEqual(newArgs, lastArgs)) {\n return lastResult;\n }\n\n lastResult = resultFn.apply(this, newArgs);\n calledOnce = true;\n lastThis = this;\n lastArgs = newArgs;\n return lastResult;\n }\n\n return memoized;\n}\n\n/* harmony default export */ const memoize_one_esm = (memoizeOne);\n;// CONCATENATED MODULE: ../react-devtools-timeline/src/utils/getBatchRange.js\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\n\n\nfunction unmemoizedGetBatchRange(batchUID, data, minStartTime = 0) {\n const measures = data.batchUIDToMeasuresMap.get(batchUID);\n\n if (measures == null || measures.length === 0) {\n throw Error(`Could not find measures with batch UID "${batchUID}"`);\n }\n\n const lastMeasure = measures[measures.length - 1];\n const stopTime = lastMeasure.timestamp + lastMeasure.duration;\n\n if (stopTime < minStartTime) {\n return [0, 0];\n }\n\n let startTime = minStartTime;\n\n for (let index = 0; index < measures.length; index++) {\n const measure = measures[index];\n\n if (measure.timestamp >= minStartTime) {\n startTime = measure.timestamp;\n break;\n }\n }\n\n return [startTime, stopTime];\n}\n\nconst getBatchRange = memoize_one_esm(unmemoizedGetBatchRange);\n// EXTERNAL MODULE: ../../node_modules/error-stack-parser/error-stack-parser.js\nvar error_stack_parser = __webpack_require__(715);\nvar error_stack_parser_default = /*#__PURE__*/__webpack_require__.n(error_stack_parser);\n;// CONCATENATED MODULE: ../react-devtools-timeline/src/import-worker/preprocessData.js\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\n\n\n\n\n\nconst NATIVE_EVENT_DURATION_THRESHOLD = 20;\nconst NESTED_UPDATE_DURATION_THRESHOLD = 20;\nconst WARNING_STRINGS = {\n LONG_EVENT_HANDLER: \'An event handler scheduled a big update with React. Consider using the Transition API to defer some of this work.\',\n NESTED_UPDATE: \'A big nested update was scheduled during layout. \' + \'Nested updates require React to re-render synchronously before the browser can paint. \' + \'Consider delaying this update by moving it to a passive effect (useEffect).\',\n SUSPEND_DURING_UPDATE: \'A component suspended during an update which caused a fallback to be shown. \' + "Consider using the Transition API to avoid hiding components after they\'ve been mounted."\n}; // Exported for tests\n\nfunction getLanesFromTransportDecimalBitmask(laneBitmaskString) {\n const laneBitmask = parseInt(laneBitmaskString, 10); // As negative numbers are stored in two\'s complement format, our bitmask\n // checks will be thrown off by them.\n\n if (laneBitmask < 0) {\n return [];\n }\n\n const lanes = [];\n let powersOfTwo = 0;\n\n while (powersOfTwo <= REACT_TOTAL_NUM_LANES) {\n if (1 << powersOfTwo & laneBitmask) {\n lanes.push(powersOfTwo);\n }\n\n powersOfTwo++;\n }\n\n return lanes;\n}\n\nfunction updateLaneToLabelMap(profilerData, laneLabelTuplesString) {\n // These marks appear multiple times in the data;\n // We only need to extact them once.\n if (profilerData.laneToLabelMap.size === 0) {\n const laneLabelTuples = laneLabelTuplesString.split(\',\');\n\n for (let laneIndex = 0; laneIndex < laneLabelTuples.length; laneIndex++) {\n // The numeric lane value (e.g. 64) isn\'t important.\n // The profiler parses and stores the lane\'s position within the bitmap,\n // (e.g. lane 1 is index 0, lane 16 is index 4).\n profilerData.laneToLabelMap.set(laneIndex, laneLabelTuples[laneIndex]);\n }\n }\n}\n\nlet profilerVersion = null;\n\nfunction getLastType(stack) {\n if (stack.length > 0) {\n const {\n type\n } = stack[stack.length - 1];\n return type;\n }\n\n return null;\n}\n\nfunction getDepth(stack) {\n if (stack.length > 0) {\n const {\n depth,\n type\n } = stack[stack.length - 1];\n return type === \'render-idle\' ? depth : depth + 1;\n }\n\n return 0;\n}\n\nfunction markWorkStarted(type, startTime, lanes, currentProfilerData, state) {\n const {\n batchUID,\n measureStack\n } = state;\n const depth = getDepth(measureStack);\n const measure = {\n type,\n batchUID,\n depth,\n lanes,\n timestamp: startTime,\n duration: 0\n };\n state.measureStack.push({\n depth,\n measure,\n startTime,\n type\n }); // This array is pre-initialized when the batchUID is generated.\n\n const measures = currentProfilerData.batchUIDToMeasuresMap.get(batchUID);\n\n if (measures != null) {\n measures.push(measure);\n } else {\n currentProfilerData.batchUIDToMeasuresMap.set(state.batchUID, [measure]);\n } // This array is pre-initialized before processing starts.\n\n\n lanes.forEach(lane => {\n currentProfilerData.laneToReactMeasureMap.get(lane).push(measure);\n });\n}\n\nfunction markWorkCompleted(type, stopTime, currentProfilerData, stack) {\n if (stack.length === 0) {\n console.error(\'Unexpected type "%s" completed at %sms while stack is empty.\', type, stopTime); // Ignore work "completion" user timing mark that doesn\'t complete anything\n\n return;\n }\n\n const last = stack[stack.length - 1];\n\n if (last.type !== type) {\n console.error(\'Unexpected type "%s" completed at %sms before "%s" completed.\', type, stopTime, last.type);\n }\n\n const {\n measure,\n startTime\n } = stack.pop();\n\n if (!measure) {\n console.error(\'Could not find matching measure for type "%s".\', type);\n } // $FlowFixMe[cannot-write] This property should not be writable outside of this function.\n\n\n measure.duration = stopTime - startTime;\n}\n\nfunction throwIfIncomplete(type, stack) {\n const lastIndex = stack.length - 1;\n\n if (lastIndex >= 0) {\n const last = stack[lastIndex];\n\n if (last.stopTime === undefined && last.type === type) {\n throw new InvalidProfileError(`Unexpected type "${type}" started before "${last.type}" completed.`);\n }\n }\n}\n\nfunction processEventDispatch(event, timestamp, profilerData, state) {\n const data = event.args.data;\n const type = data.type;\n\n if (type.startsWith(\'react-\')) {\n const stackTrace = data.stackTrace;\n\n if (stackTrace) {\n const topFrame = stackTrace[stackTrace.length - 1];\n\n if (topFrame.url.includes(\'/react-dom.\')) {\n // Filter out fake React events dispatched by invokeGuardedCallbackDev.\n return;\n }\n }\n } // Reduce noise from events like DOMActivate, load/unload, etc. which are usually not relevant\n\n\n if (type === \'blur\' || type === \'click\' || type === \'input\' || type.startsWith(\'focus\') || type.startsWith(\'key\') || type.startsWith(\'mouse\') || type.startsWith(\'pointer\')) {\n const duration = event.dur / 1000;\n let depth = 0;\n\n while (state.nativeEventStack.length > 0) {\n const prevNativeEvent = state.nativeEventStack[state.nativeEventStack.length - 1];\n const prevStopTime = prevNativeEvent.timestamp + prevNativeEvent.duration;\n\n if (timestamp < prevStopTime) {\n depth = prevNativeEvent.depth + 1;\n break;\n } else {\n state.nativeEventStack.pop();\n }\n }\n\n const nativeEvent = {\n depth,\n duration,\n timestamp,\n type,\n warning: null\n };\n profilerData.nativeEvents.push(nativeEvent); // Keep track of curent event in case future ones overlap.\n // We separate them into different vertical lanes in this case.\n\n state.nativeEventStack.push(nativeEvent);\n }\n}\n\nfunction processResourceFinish(event, timestamp, profilerData, state) {\n const requestId = event.args.data.requestId;\n const networkMeasure = state.requestIdToNetworkMeasureMap.get(requestId);\n\n if (networkMeasure != null) {\n networkMeasure.finishTimestamp = timestamp;\n\n if (networkMeasure.firstReceivedDataTimestamp === 0) {\n networkMeasure.firstReceivedDataTimestamp = timestamp;\n }\n\n if (networkMeasure.lastReceivedDataTimestamp === 0) {\n networkMeasure.lastReceivedDataTimestamp = timestamp;\n } // Clean up now that the resource is done.\n\n\n state.requestIdToNetworkMeasureMap.delete(event.args.data.requestId);\n }\n}\n\nfunction processResourceReceivedData(event, timestamp, profilerData, state) {\n const requestId = event.args.data.requestId;\n const networkMeasure = state.requestIdToNetworkMeasureMap.get(requestId);\n\n if (networkMeasure != null) {\n if (networkMeasure.firstReceivedDataTimestamp === 0) {\n networkMeasure.firstReceivedDataTimestamp = timestamp;\n }\n\n networkMeasure.lastReceivedDataTimestamp = timestamp;\n networkMeasure.finishTimestamp = timestamp;\n }\n}\n\nfunction processResourceReceiveResponse(event, timestamp, profilerData, state) {\n const requestId = event.args.data.requestId;\n const networkMeasure = state.requestIdToNetworkMeasureMap.get(requestId);\n\n if (networkMeasure != null) {\n networkMeasure.receiveResponseTimestamp = timestamp;\n }\n}\n\nfunction processScreenshot(event, timestamp, profilerData, state) {\n const encodedSnapshot = event.args.snapshot; // Base 64 encoded\n\n const snapshot = {\n height: 0,\n image: null,\n imageSource: `data:image/png;base64,${encodedSnapshot}`,\n timestamp,\n width: 0\n }; // Delay processing until we\'ve extracted snapshot dimensions.\n\n let resolveFn = null;\n state.asyncProcessingPromises.push(new Promise(resolve => {\n resolveFn = resolve;\n })); // Parse the Base64 image data to determine native size.\n // This will be used later to scale for display within the thumbnail strip.\n\n fetch(snapshot.imageSource).then(response => response.blob()).then(blob => {\n // $FlowFixMe[cannot-resolve-name] createImageBitmap\n createImageBitmap(blob).then(bitmap => {\n snapshot.height = bitmap.height;\n snapshot.width = bitmap.width;\n resolveFn();\n });\n });\n profilerData.snapshots.push(snapshot);\n}\n\nfunction processResourceSendRequest(event, timestamp, profilerData, state) {\n const data = event.args.data;\n const requestId = data.requestId;\n const availableDepths = new Array(state.requestIdToNetworkMeasureMap.size + 1).fill(true);\n state.requestIdToNetworkMeasureMap.forEach(({\n depth\n }) => {\n availableDepths[depth] = false;\n });\n let depth = 0;\n\n for (let i = 0; i < availableDepths.length; i++) {\n if (availableDepths[i]) {\n depth = i;\n break;\n }\n }\n\n const networkMeasure = {\n depth,\n finishTimestamp: 0,\n firstReceivedDataTimestamp: 0,\n lastReceivedDataTimestamp: 0,\n requestId,\n requestMethod: data.requestMethod,\n priority: data.priority,\n sendRequestTimestamp: timestamp,\n receiveResponseTimestamp: 0,\n url: data.url\n };\n state.requestIdToNetworkMeasureMap.set(requestId, networkMeasure);\n profilerData.networkMeasures.push(networkMeasure);\n networkMeasure.sendRequestTimestamp = timestamp;\n}\n\nfunction processTimelineEvent(event,\n/** Finalized profiler data up to `event`. May be mutated. */\ncurrentProfilerData,\n/** Intermediate processor state. May be mutated. */\nstate) {\n const {\n cat,\n name,\n ts,\n ph\n } = event;\n const startTime = (ts - currentProfilerData.startTime) / 1000;\n\n switch (cat) {\n case \'disabled-by-default-devtools.screenshot\':\n processScreenshot(event, startTime, currentProfilerData, state);\n break;\n\n case \'devtools.timeline\':\n switch (name) {\n case \'EventDispatch\':\n processEventDispatch(event, startTime, currentProfilerData, state);\n break;\n\n case \'ResourceFinish\':\n processResourceFinish(event, startTime, currentProfilerData, state);\n break;\n\n case \'ResourceReceivedData\':\n processResourceReceivedData(event, startTime, currentProfilerData, state);\n break;\n\n case \'ResourceReceiveResponse\':\n processResourceReceiveResponse(event, startTime, currentProfilerData, state);\n break;\n\n case \'ResourceSendRequest\':\n processResourceSendRequest(event, startTime, currentProfilerData, state);\n break;\n }\n\n break;\n\n case \'blink.user_timing\':\n if (name.startsWith(\'--react-version-\')) {\n const [reactVersion] = name.slice(16).split(\'-\');\n currentProfilerData.reactVersion = reactVersion;\n } else if (name.startsWith(\'--profiler-version-\')) {\n const [versionString] = name.slice(19).split(\'-\');\n profilerVersion = parseInt(versionString, 10);\n\n if (profilerVersion !== SCHEDULING_PROFILER_VERSION) {\n throw new InvalidProfileError(`This version of profiling data (${versionString}) is not supported by the current profiler.`);\n }\n } else if (name.startsWith(\'--react-lane-labels-\')) {\n const [laneLabelTuplesString] = name.slice(20).split(\'-\');\n updateLaneToLabelMap(currentProfilerData, laneLabelTuplesString);\n } else if (name.startsWith(\'--component-\')) {\n processReactComponentMeasure(name, startTime, currentProfilerData, state);\n } else if (name.startsWith(\'--schedule-render-\')) {\n const [laneBitmaskString] = name.slice(18).split(\'-\');\n currentProfilerData.schedulingEvents.push({\n type: \'schedule-render\',\n lanes: getLanesFromTransportDecimalBitmask(laneBitmaskString),\n timestamp: startTime,\n warning: null\n });\n } else if (name.startsWith(\'--schedule-forced-update-\')) {\n const [laneBitmaskString, componentName] = name.slice(25).split(\'-\');\n const forceUpdateEvent = {\n type: \'schedule-force-update\',\n lanes: getLanesFromTransportDecimalBitmask(laneBitmaskString),\n componentName,\n timestamp: startTime,\n warning: null\n }; // If this is a nested update, make a note of it.\n // Once we\'re done processing events, we\'ll check to see if it was a long update and warn about it.\n\n if (state.measureStack.find(({\n type\n }) => type === \'commit\')) {\n state.potentialLongNestedUpdate = forceUpdateEvent;\n }\n\n currentProfilerData.schedulingEvents.push(forceUpdateEvent);\n } else if (name.startsWith(\'--schedule-state-update-\')) {\n const [laneBitmaskString, componentName] = name.slice(24).split(\'-\');\n const stateUpdateEvent = {\n type: \'schedule-state-update\',\n lanes: getLanesFromTransportDecimalBitmask(laneBitmaskString),\n componentName,\n timestamp: startTime,\n warning: null\n }; // If this is a nested update, make a note of it.\n // Once we\'re done processing events, we\'ll check to see if it was a long update and warn about it.\n\n if (state.measureStack.find(({\n type\n }) => type === \'commit\')) {\n state.potentialLongNestedUpdate = stateUpdateEvent;\n }\n\n currentProfilerData.schedulingEvents.push(stateUpdateEvent);\n } else if (name.startsWith(\'--error-\')) {\n const [componentName, phase, message] = name.slice(8).split(\'-\');\n currentProfilerData.thrownErrors.push({\n componentName,\n message,\n phase: phase,\n timestamp: startTime,\n type: \'thrown-error\'\n });\n } else if (name.startsWith(\'--suspense-suspend-\')) {\n const [id, componentName, phase, laneBitmaskString, promiseName] = name.slice(19).split(\'-\');\n const lanes = getLanesFromTransportDecimalBitmask(laneBitmaskString);\n const availableDepths = new Array(state.unresolvedSuspenseEvents.size + 1).fill(true);\n state.unresolvedSuspenseEvents.forEach(({\n depth\n }) => {\n availableDepths[depth] = false;\n });\n let depth = 0;\n\n for (let i = 0; i < availableDepths.length; i++) {\n if (availableDepths[i]) {\n depth = i;\n break;\n }\n } // TODO (timeline) Maybe we should calculate depth in post,\n // so unresolved Suspense requests don\'t take up space.\n // We can\'t know if they\'ll be resolved or not at this point.\n // We\'ll just give them a default (fake) duration width.\n\n\n const suspenseEvent = {\n componentName,\n depth,\n duration: null,\n id,\n phase: phase,\n promiseName: promiseName || null,\n resolution: \'unresolved\',\n timestamp: startTime,\n type: \'suspense\',\n warning: null\n };\n\n if (phase === \'update\') {\n // If a component suspended during an update, we should verify that it was during a transition.\n // We need the lane metadata to verify this though.\n // Since that data is only logged during commit, we may not have it yet.\n // Store these events for post-processing then.\n state.potentialSuspenseEventsOutsideOfTransition.push([suspenseEvent, lanes]);\n }\n\n currentProfilerData.suspenseEvents.push(suspenseEvent);\n state.unresolvedSuspenseEvents.set(id, suspenseEvent);\n } else if (name.startsWith(\'--suspense-resolved-\')) {\n const [id] = name.slice(20).split(\'-\');\n const suspenseEvent = state.unresolvedSuspenseEvents.get(id);\n\n if (suspenseEvent != null) {\n state.unresolvedSuspenseEvents.delete(id);\n suspenseEvent.duration = startTime - suspenseEvent.timestamp;\n suspenseEvent.resolution = \'resolved\';\n }\n } else if (name.startsWith(\'--suspense-rejected-\')) {\n const [id] = name.slice(20).split(\'-\');\n const suspenseEvent = state.unresolvedSuspenseEvents.get(id);\n\n if (suspenseEvent != null) {\n state.unresolvedSuspenseEvents.delete(id);\n suspenseEvent.duration = startTime - suspenseEvent.timestamp;\n suspenseEvent.resolution = \'rejected\';\n }\n } else if (name.startsWith(\'--render-start-\')) {\n if (state.nextRenderShouldGenerateNewBatchID) {\n state.nextRenderShouldGenerateNewBatchID = false;\n state.batchUID = state.uidCounter++;\n } // If this render is the result of a nested update, make a note of it.\n // Once we\'re done processing events, we\'ll check to see if it was a long update and warn about it.\n\n\n if (state.potentialLongNestedUpdate !== null) {\n state.potentialLongNestedUpdates.push([state.potentialLongNestedUpdate, state.batchUID]);\n state.potentialLongNestedUpdate = null;\n }\n\n const [laneBitmaskString] = name.slice(15).split(\'-\');\n throwIfIncomplete(\'render\', state.measureStack);\n\n if (getLastType(state.measureStack) !== \'render-idle\') {\n markWorkStarted(\'render-idle\', startTime, getLanesFromTransportDecimalBitmask(laneBitmaskString), currentProfilerData, state);\n }\n\n markWorkStarted(\'render\', startTime, getLanesFromTransportDecimalBitmask(laneBitmaskString), currentProfilerData, state);\n\n for (let i = 0; i < state.nativeEventStack.length; i++) {\n const nativeEvent = state.nativeEventStack[i];\n const stopTime = nativeEvent.timestamp + nativeEvent.duration; // If React work was scheduled during an event handler, and the event had a long duration,\n // it might be because the React render was long and stretched the event.\n // It might also be that the React work was short and that something else stretched the event.\n // Make a note of this event for now and we\'ll examine the batch of React render work later.\n // (We can\'t know until we\'re done processing the React update anyway.)\n\n if (stopTime > startTime) {\n state.potentialLongEvents.push([nativeEvent, state.batchUID]);\n }\n }\n } else if (name.startsWith(\'--render-stop\') || name.startsWith(\'--render-yield\')) {\n markWorkCompleted(\'render\', startTime, currentProfilerData, state.measureStack);\n } else if (name.startsWith(\'--commit-start-\')) {\n state.nextRenderShouldGenerateNewBatchID = true;\n const [laneBitmaskString] = name.slice(15).split(\'-\');\n markWorkStarted(\'commit\', startTime, getLanesFromTransportDecimalBitmask(laneBitmaskString), currentProfilerData, state);\n } else if (name.startsWith(\'--commit-stop\')) {\n markWorkCompleted(\'commit\', startTime, currentProfilerData, state.measureStack);\n markWorkCompleted(\'render-idle\', startTime, currentProfilerData, state.measureStack);\n } else if (name.startsWith(\'--layout-effects-start-\')) {\n const [laneBitmaskString] = name.slice(23).split(\'-\');\n markWorkStarted(\'layout-effects\', startTime, getLanesFromTransportDecimalBitmask(laneBitmaskString), currentProfilerData, state);\n } else if (name.startsWith(\'--layout-effects-stop\')) {\n markWorkCompleted(\'layout-effects\', startTime, currentProfilerData, state.measureStack);\n } else if (name.startsWith(\'--passive-effects-start-\')) {\n const [laneBitmaskString] = name.slice(24).split(\'-\');\n markWorkStarted(\'passive-effects\', startTime, getLanesFromTransportDecimalBitmask(laneBitmaskString), currentProfilerData, state);\n } else if (name.startsWith(\'--passive-effects-stop\')) {\n markWorkCompleted(\'passive-effects\', startTime, currentProfilerData, state.measureStack);\n } else if (name.startsWith(\'--react-internal-module-start-\')) {\n const stackFrameStart = name.slice(30);\n\n if (!state.internalModuleStackStringSet.has(stackFrameStart)) {\n state.internalModuleStackStringSet.add(stackFrameStart);\n const parsedStackFrameStart = parseStackFrame(stackFrameStart);\n state.internalModuleCurrentStackFrame = parsedStackFrameStart;\n }\n } else if (name.startsWith(\'--react-internal-module-stop-\')) {\n const stackFrameStop = name.slice(29);\n\n if (!state.internalModuleStackStringSet.has(stackFrameStop)) {\n state.internalModuleStackStringSet.add(stackFrameStop);\n const parsedStackFrameStop = parseStackFrame(stackFrameStop);\n\n if (parsedStackFrameStop !== null && state.internalModuleCurrentStackFrame !== null) {\n const parsedStackFrameStart = state.internalModuleCurrentStackFrame;\n state.internalModuleCurrentStackFrame = null;\n const range = [parsedStackFrameStart, parsedStackFrameStop];\n const ranges = currentProfilerData.internalModuleSourceToRanges.get(parsedStackFrameStart.fileName);\n\n if (ranges == null) {\n currentProfilerData.internalModuleSourceToRanges.set(parsedStackFrameStart.fileName, [range]);\n } else {\n ranges.push(range);\n }\n }\n }\n } else if (ph === \'R\' || ph === \'n\') {\n // User Timing mark\n currentProfilerData.otherUserTimingMarks.push({\n name,\n timestamp: startTime\n });\n } else if (ph === \'b\') {// TODO: Begin user timing measure\n } else if (ph === \'e\') {// TODO: End user timing measure\n } else if (ph === \'i\' || ph === \'I\') {// Instant events.\n // Note that the capital "I" is a deprecated value that exists in Chrome Canary traces.\n } else {\n throw new InvalidProfileError(`Unrecognized event ${JSON.stringify(event)}! This is likely a bug in this profiler tool.`);\n }\n\n break;\n }\n}\n\nfunction assertNoOverlappingComponentMeasure(state) {\n if (state.currentReactComponentMeasure !== null) {\n console.error(\'Component measure started while another measure in progress:\', state.currentReactComponentMeasure);\n }\n}\n\nfunction assertCurrentComponentMeasureType(state, type) {\n if (state.currentReactComponentMeasure === null) {\n console.error(`Component measure type "${type}" stopped while no measure was in progress`);\n } else if (state.currentReactComponentMeasure.type !== type) {\n console.error(`Component measure type "${type}" stopped while type ${state.currentReactComponentMeasure.type} in progress`);\n }\n}\n\nfunction processReactComponentMeasure(name, startTime, currentProfilerData, state) {\n if (name.startsWith(\'--component-render-start-\')) {\n const [componentName] = name.slice(25).split(\'-\');\n assertNoOverlappingComponentMeasure(state);\n state.currentReactComponentMeasure = {\n componentName,\n timestamp: startTime,\n duration: 0,\n type: \'render\',\n warning: null\n };\n } else if (name === \'--component-render-stop\') {\n assertCurrentComponentMeasureType(state, \'render\');\n\n if (state.currentReactComponentMeasure !== null) {\n const componentMeasure = state.currentReactComponentMeasure;\n componentMeasure.duration = startTime - componentMeasure.timestamp;\n state.currentReactComponentMeasure = null;\n currentProfilerData.componentMeasures.push(componentMeasure);\n }\n } else if (name.startsWith(\'--component-layout-effect-mount-start-\')) {\n const [componentName] = name.slice(38).split(\'-\');\n assertNoOverlappingComponentMeasure(state);\n state.currentReactComponentMeasure = {\n componentName,\n timestamp: startTime,\n duration: 0,\n type: \'layout-effect-mount\',\n warning: null\n };\n } else if (name === \'--component-layout-effect-mount-stop\') {\n assertCurrentComponentMeasureType(state, \'layout-effect-mount\');\n\n if (state.currentReactComponentMeasure !== null) {\n const componentMeasure = state.currentReactComponentMeasure;\n componentMeasure.duration = startTime - componentMeasure.timestamp;\n state.currentReactComponentMeasure = null;\n currentProfilerData.componentMeasures.push(componentMeasure);\n }\n } else if (name.startsWith(\'--component-layout-effect-unmount-start-\')) {\n const [componentName] = name.slice(40).split(\'-\');\n assertNoOverlappingComponentMeasure(state);\n state.currentReactComponentMeasure = {\n componentName,\n timestamp: startTime,\n duration: 0,\n type: \'layout-effect-unmount\',\n warning: null\n };\n } else if (name === \'--component-layout-effect-unmount-stop\') {\n assertCurrentComponentMeasureType(state, \'layout-effect-unmount\');\n\n if (state.currentReactComponentMeasure !== null) {\n const componentMeasure = state.currentReactComponentMeasure;\n componentMeasure.duration = startTime - componentMeasure.timestamp;\n state.currentReactComponentMeasure = null;\n currentProfilerData.componentMeasures.push(componentMeasure);\n }\n } else if (name.startsWith(\'--component-passive-effect-mount-start-\')) {\n const [componentName] = name.slice(39).split(\'-\');\n assertNoOverlappingComponentMeasure(state);\n state.currentReactComponentMeasure = {\n componentName,\n timestamp: startTime,\n duration: 0,\n type: \'passive-effect-mount\',\n warning: null\n };\n } else if (name === \'--component-passive-effect-mount-stop\') {\n assertCurrentComponentMeasureType(state, \'passive-effect-mount\');\n\n if (state.currentReactComponentMeasure !== null) {\n const componentMeasure = state.currentReactComponentMeasure;\n componentMeasure.duration = startTime - componentMeasure.timestamp;\n state.currentReactComponentMeasure = null;\n currentProfilerData.componentMeasures.push(componentMeasure);\n }\n } else if (name.startsWith(\'--component-passive-effect-unmount-start-\')) {\n const [componentName] = name.slice(41).split(\'-\');\n assertNoOverlappingComponentMeasure(state);\n state.currentReactComponentMeasure = {\n componentName,\n timestamp: startTime,\n duration: 0,\n type: \'passive-effect-unmount\',\n warning: null\n };\n } else if (name === \'--component-passive-effect-unmount-stop\') {\n assertCurrentComponentMeasureType(state, \'passive-effect-unmount\');\n\n if (state.currentReactComponentMeasure !== null) {\n const componentMeasure = state.currentReactComponentMeasure;\n componentMeasure.duration = startTime - componentMeasure.timestamp;\n state.currentReactComponentMeasure = null;\n currentProfilerData.componentMeasures.push(componentMeasure);\n }\n }\n}\n\nfunction preprocessFlamechart(rawData) {\n let parsedData;\n\n try {\n parsedData = (0,library.importFromChromeTimeline)(rawData, \'react-devtools\');\n } catch (error) {\n // Assume any Speedscope errors are caused by bad profiles\n const errorToRethrow = new InvalidProfileError(error.message);\n errorToRethrow.stack = error.stack;\n throw errorToRethrow;\n }\n\n const profile = parsedData.profiles[0]; // TODO: Choose the main CPU thread only\n\n const speedscopeFlamechart = new library.Flamechart({\n // $FlowFixMe[method-unbinding]\n getTotalWeight: profile.getTotalWeight.bind(profile),\n // $FlowFixMe[method-unbinding]\n forEachCall: profile.forEachCall.bind(profile),\n // $FlowFixMe[method-unbinding]\n formatValue: profile.formatValue.bind(profile),\n getColorBucketForFrame: () => 0\n });\n const flamechart = speedscopeFlamechart.getLayers().map(layer => layer.map(({\n start,\n end,\n node: {\n frame: {\n name,\n file,\n line,\n col\n }\n }\n }) => ({\n name,\n timestamp: start / 1000,\n duration: (end - start) / 1000,\n scriptUrl: file,\n locationLine: line,\n locationColumn: col\n })));\n return flamechart;\n}\n\nfunction parseStackFrame(stackFrame) {\n const error = new Error();\n error.stack = stackFrame;\n const frames = error_stack_parser_default().parse(error);\n return frames.length === 1 ? frames[0] : null;\n}\n\nasync function preprocessData(timeline) {\n const flamechart = preprocessFlamechart(timeline);\n const laneToReactMeasureMap = new Map();\n\n for (let lane = 0; lane < REACT_TOTAL_NUM_LANES; lane++) {\n laneToReactMeasureMap.set(lane, []);\n }\n\n const profilerData = {\n batchUIDToMeasuresMap: new Map(),\n componentMeasures: [],\n duration: 0,\n flamechart,\n internalModuleSourceToRanges: new Map(),\n laneToLabelMap: new Map(),\n laneToReactMeasureMap,\n nativeEvents: [],\n networkMeasures: [],\n otherUserTimingMarks: [],\n reactVersion: null,\n schedulingEvents: [],\n snapshots: [],\n snapshotHeight: 0,\n startTime: 0,\n suspenseEvents: [],\n thrownErrors: []\n }; // Sort `timeline`. JSON Array Format trace events need not be ordered. See:\n // https://docs.google.com/document/d/1CvAClvFfyA5R-PhYUmn5OOQtYMH4h6I0nSsKchNAySU/preview#heading=h.f2f0yd51wi15\n\n timeline = timeline.filter(Boolean).sort((a, b) => a.ts > b.ts ? 1 : -1); // Events displayed in flamechart have timestamps relative to the profile\n // event\'s startTime. Source: https://github.com/v8/v8/blob/44bd8fd7/src/inspector/js_protocol.json#L1486\n //\n // We\'ll thus expect there to be a \'Profile\' event; if there is not one, we\n // can deduce that there are no flame chart events. As we expect React\n // scheduling profiling user timing marks to be recorded together with browser\n // flame chart events, we can futher deduce that the data is invalid and we\n // don\'t bother finding React events.\n\n const indexOfProfileEvent = timeline.findIndex(event => event.name === \'Profile\');\n\n if (indexOfProfileEvent === -1) {\n return profilerData;\n } // Use Profile event\'s `startTime` as the start time to align with flame chart.\n // TODO: Remove assumption that there\'ll only be 1 \'Profile\' event. If this\n // assumption does not hold, the chart may start at the wrong time.\n\n\n profilerData.startTime = timeline[indexOfProfileEvent].args.data.startTime;\n profilerData.duration = (timeline[timeline.length - 1].ts - profilerData.startTime) / 1000;\n const state = {\n asyncProcessingPromises: [],\n batchUID: 0,\n currentReactComponentMeasure: null,\n internalModuleCurrentStackFrame: null,\n internalModuleStackStringSet: new Set(),\n measureStack: [],\n nativeEventStack: [],\n nextRenderShouldGenerateNewBatchID: true,\n potentialLongEvents: [],\n potentialLongNestedUpdate: null,\n potentialLongNestedUpdates: [],\n potentialSuspenseEventsOutsideOfTransition: [],\n requestIdToNetworkMeasureMap: new Map(),\n uidCounter: 0,\n unresolvedSuspenseEvents: new Map()\n };\n timeline.forEach(event => processTimelineEvent(event, profilerData, state));\n\n if (profilerVersion === null) {\n if (profilerData.schedulingEvents.length === 0 && profilerData.batchUIDToMeasuresMap.size === 0) {\n // No profiler version could indicate data was logged using an older build of React,\n // before an explicitly profiler version was included in the logging data.\n // But it could also indicate that the website was either not using React, or using a production build.\n // The easiest way to check for this case is to see if the data contains any scheduled updates or render work.\n throw new InvalidProfileError(\'No React marks were found in the provided profile.\' + \' Please provide profiling data from an React application running in development or profiling mode.\');\n }\n\n throw new InvalidProfileError(`This version of profiling data is not supported by the current profiler.`);\n } // Validate that all events and measures are complete\n\n\n const {\n measureStack\n } = state;\n\n if (measureStack.length > 0) {\n console.error(\'Incomplete events or measures\', measureStack);\n } // Check for warnings.\n\n\n state.potentialLongEvents.forEach(([nativeEvent, batchUID]) => {\n // See how long the subsequent batch of React work was.\n // Ignore any work that was already started.\n const [startTime, stopTime] = getBatchRange(batchUID, profilerData, nativeEvent.timestamp);\n\n if (stopTime - startTime > NATIVE_EVENT_DURATION_THRESHOLD) {\n nativeEvent.warning = WARNING_STRINGS.LONG_EVENT_HANDLER;\n }\n });\n state.potentialLongNestedUpdates.forEach(([schedulingEvent, batchUID]) => {\n // See how long the subsequent batch of React work was.\n const [startTime, stopTime] = getBatchRange(batchUID, profilerData);\n\n if (stopTime - startTime > NESTED_UPDATE_DURATION_THRESHOLD) {\n // Don\'t warn about transition updates scheduled during the commit phase.\n // e.g. useTransition, useDeferredValue\n // These are allowed to be long-running.\n if (!schedulingEvent.lanes.some(lane => profilerData.laneToLabelMap.get(lane) === \'Transition\')) {// FIXME: This warning doesn\'t account for "nested updates" that are\n // spawned by useDeferredValue. Disabling temporarily until we figure\n // out the right way to handle this.\n // schedulingEvent.warning = WARNING_STRINGS.NESTED_UPDATE;\n }\n }\n });\n state.potentialSuspenseEventsOutsideOfTransition.forEach(([suspenseEvent, lanes]) => {\n // HACK This is a bit gross but the numeric lane value might change between render versions.\n if (!lanes.some(lane => profilerData.laneToLabelMap.get(lane) === \'Transition\')) {\n suspenseEvent.warning = WARNING_STRINGS.SUSPEND_DURING_UPDATE;\n }\n }); // Wait for any async processing to complete before returning.\n // Since processing is done in a worker, async work must complete before data is serialized and returned.\n\n await Promise.all(state.asyncProcessingPromises); // Now that all images have been loaded, let\'s figure out the display size we\'re going to use for our thumbnails:\n // both the ones rendered to the canvas and the ones shown on hover.\n\n if (profilerData.snapshots.length > 0) {\n // NOTE We assume a static window size here, which is not necessarily true but should be for most cases.\n // Regardless, Chrome also sets a single size/ratio and stick with it- so we\'ll do the same.\n const snapshot = profilerData.snapshots[0];\n profilerData.snapshotHeight = Math.min(snapshot.height, SNAPSHOT_MAX_HEIGHT);\n }\n\n return profilerData;\n}\n// EXTERNAL MODULE: ../../node_modules/nullthrows/nullthrows.js\nvar nullthrows = __webpack_require__(69);\nvar nullthrows_default = /*#__PURE__*/__webpack_require__.n(nullthrows);\n;// CONCATENATED MODULE: ../react-devtools-timeline/src/import-worker/readInputData.js\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\n\n\nconst readInputData = file => {\n if (!file.name.endsWith(\'.json\')) {\n throw new InvalidProfileError(\'Invalid file type. Only JSON performance profiles are supported\');\n }\n\n const fileReader = new FileReader();\n return new Promise((resolve, reject) => {\n fileReader.onload = () => {\n const result = nullthrows_default()(fileReader.result);\n\n if (typeof result === \'string\') {\n resolve(result);\n }\n\n reject(new InvalidProfileError(\'Input file was not read as a string\'));\n };\n\n fileReader.onerror = () => reject(fileReader.error);\n\n fileReader.readAsText(file);\n });\n};\n;// CONCATENATED MODULE: ../react-devtools-timeline/src/import-worker/importFile.js\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\n\n\n\n\nasync function importFile(file) {\n try {\n const readFile = await readInputData(file);\n const events = JSON.parse(readFile);\n\n if (events.length === 0) {\n throw new InvalidProfileError(\'No profiling data found in file.\');\n }\n\n const processedData = await preprocessData(events);\n return {\n status: \'SUCCESS\',\n processedData\n };\n } catch (error) {\n if (error instanceof InvalidProfileError) {\n return {\n status: \'INVALID_PROFILE_ERROR\',\n error\n };\n } else {\n return {\n status: \'UNEXPECTED_ERROR\',\n error\n };\n }\n }\n}\n;// CONCATENATED MODULE: ../../node_modules/workerize-loader/dist/rpc-worker-loader.js!../../node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use[1]!../../node_modules/babel-loader/lib/index.js??ruleSet[1].rules[1]!../react-devtools-timeline/src/import-worker/importFile.worker.js\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nconst importFile_worker_importFile = importFile;\naddEventListener(\'message\', function (e) {var _e$data = e.data,type = _e$data.type,method = _e$data.method,id = _e$data.id,params = _e$data.params,f,p;if (type === \'RPC\' && method) {if (f = __webpack_exports__[method]) {p = Promise.resolve().then(function () {return f.apply(__webpack_exports__, params);});} else {p = Promise.reject(\'No such method\');}p.then(function (result) {postMessage({type: \'RPC\',id: id,result: result});}).catch(function (e) {var error = {message: e};if (e.stack) {error.message = e.message;error.stack = e.stack;error.name = e.name;}postMessage({type: \'RPC\',id: id,error: error});});}});postMessage({type: \'RPC\',method: \'ready\'});\n})();\n\n'])),{name:"[name].worker.js"});return URL.revokeObjectURL(URL.createObjectURL(new Blob(['/******/ var __webpack_modules__ = ({\n\n/***/ 496:\n/***/ ((__unused_webpack_module, exports, __webpack_require__) => {\n\n\n\nObject.defineProperty(exports, "__esModule", ({\n value: true\n}));\nexports.importFromOldV8CPUProfile = exports.importFromChromeCPUProfile = exports.importFromChromeTimeline = exports.isChromeTimeline = void 0;\n\nconst profile_1 = __webpack_require__(211);\n\nconst utils_1 = __webpack_require__(844);\n\nconst value_formatters_1 = __webpack_require__(218);\n\nconst v8cpuFormatter_1 = __webpack_require__(320);\n\nfunction isChromeTimeline(rawProfile) {\n if (!Array.isArray(rawProfile)) return false;\n if (rawProfile.length < 1) return false;\n const first = rawProfile[0];\n if (!(\'pid\' in first && \'tid\' in first && \'ph\' in first && \'cat\' in first)) return false;\n if (!rawProfile.find(e => e.name === \'CpuProfile\' || e.name === \'Profile\' || e.name === \'ProfileChunk\')) return false;\n return true;\n}\n\nexports.isChromeTimeline = isChromeTimeline;\n\nfunction importFromChromeTimeline(events, fileName) {\n // It seems like sometimes Chrome timeline files contain multiple CpuProfiles?\n // For now, choose the first one in the list.\n const cpuProfileByID = new Map(); // Maps profile IDs (like "0x3") to pid/tid pairs formatted as `${pid}:${tid}`\n\n const pidTidById = new Map(); // Maps pid/tid pairs to thread names\n\n const threadNameByPidTid = new Map(); // The events aren\'t necessarily recorded in chronological order. Sort them so\n // that they are.\n\n utils_1.sortBy(events, e => e.ts);\n\n for (let event of events) {\n if (event.name === \'CpuProfile\') {\n const pidTid = `${event.pid}:${event.tid}`;\n const id = event.id || pidTid;\n cpuProfileByID.set(id, event.args.data.cpuProfile);\n pidTidById.set(id, pidTid);\n }\n\n if (event.name === \'Profile\') {\n const pidTid = `${event.pid}:${event.tid}`;\n cpuProfileByID.set(event.id || pidTid, Object.assign({\n startTime: 0,\n endTime: 0,\n nodes: [],\n samples: [],\n timeDeltas: []\n }, event.args.data));\n\n if (event.id) {\n pidTidById.set(event.id, `${event.pid}:${event.tid}`);\n }\n }\n\n if (event.name === \'thread_name\') {\n threadNameByPidTid.set(`${event.pid}:${event.tid}`, event.args.name);\n }\n\n if (event.name === \'ProfileChunk\') {\n const pidTid = `${event.pid}:${event.tid}`;\n const cpuProfile = cpuProfileByID.get(event.id || pidTid);\n\n if (cpuProfile) {\n const chunk = event.args.data;\n\n if (chunk.cpuProfile) {\n if (chunk.cpuProfile.nodes) {\n cpuProfile.nodes = cpuProfile.nodes.concat(chunk.cpuProfile.nodes);\n }\n\n if (chunk.cpuProfile.samples) {\n cpuProfile.samples = cpuProfile.samples.concat(chunk.cpuProfile.samples);\n }\n }\n\n if (chunk.timeDeltas) {\n cpuProfile.timeDeltas = cpuProfile.timeDeltas.concat(chunk.timeDeltas);\n }\n\n if (chunk.startTime != null) {\n cpuProfile.startTime = chunk.startTime;\n }\n\n if (chunk.endTime != null) {\n cpuProfile.endTime = chunk.endTime;\n }\n } else {\n console.warn(`Ignoring ProfileChunk for undeclared Profile with id ${event.id || pidTid}`);\n }\n }\n }\n\n if (cpuProfileByID.size > 0) {\n const profiles = [];\n let indexToView = 0;\n utils_1.itForEach(cpuProfileByID.keys(), profileId => {\n let threadName = null;\n let pidTid = pidTidById.get(profileId);\n\n if (pidTid) {\n threadName = threadNameByPidTid.get(pidTid) || null;\n\n if (threadName) {}\n }\n\n const profile = importFromChromeCPUProfile(cpuProfileByID.get(profileId));\n\n if (threadName && cpuProfileByID.size > 1) {\n profile.setName(`${fileName} - ${threadName}`);\n\n if (threadName === \'CrRendererMain\') {\n indexToView = profiles.length;\n }\n } else {\n profile.setName(`${fileName}`);\n }\n\n profiles.push(profile);\n });\n return {\n name: fileName,\n indexToView,\n profiles\n };\n } else {\n throw new Error(\'Could not find CPU profile in Timeline\');\n }\n}\n\nexports.importFromChromeTimeline = importFromChromeTimeline;\nconst callFrameToFrameInfo = new Map();\n\nfunction frameInfoForCallFrame(callFrame) {\n return utils_1.getOrInsert(callFrameToFrameInfo, callFrame, callFrame => {\n const name = callFrame.functionName || \'(anonymous)\';\n const file = callFrame.url;\n const line = callFrame.lineNumber;\n const col = callFrame.columnNumber;\n return {\n key: `${name}:${file}:${line}:${col}`,\n name,\n file,\n line,\n col\n };\n });\n}\n\nfunction shouldIgnoreFunction(callFrame) {\n const {\n functionName,\n url\n } = callFrame;\n\n if (url === \'native dummy.js\') {\n // I\'m not really sure what this is about, but this seems to be used\n // as a way of avoiding edge cases in V8\'s implementation.\n // See: https://github.com/v8/v8/blob/b8626ca4/tools/js2c.py#L419-L424\n return true;\n }\n\n return functionName === \'(root)\' || functionName === \'(idle)\';\n}\n\nfunction shouldPlaceOnTopOfPreviousStack(functionName) {\n return functionName === \'(garbage collector)\' || functionName === \'(program)\';\n}\n\nfunction importFromChromeCPUProfile(chromeProfile) {\n const profile = new profile_1.CallTreeProfileBuilder(chromeProfile.endTime - chromeProfile.startTime);\n const nodeById = new Map();\n\n for (let node of chromeProfile.nodes) {\n nodeById.set(node.id, node);\n }\n\n for (let node of chromeProfile.nodes) {\n if (typeof node.parent === \'number\') {\n node.parent = nodeById.get(node.parent);\n }\n\n if (!node.children) continue;\n\n for (let childId of node.children) {\n const child = nodeById.get(childId);\n if (!child) continue;\n child.parent = node;\n }\n }\n\n const samples = [];\n const sampleTimes = []; // The first delta is relative to the profile startTime.\n // Ref: https://github.com/v8/v8/blob/44bd8fd7/src/inspector/js_protocol.json#L1485\n\n let elapsed = chromeProfile.timeDeltas[0]; // Prevents negative time deltas from causing bad data. See\n // https://github.com/jlfwong/speedscope/pull/305 for details.\n\n let lastValidElapsed = elapsed;\n let lastNodeId = NaN; // The chrome CPU profile format doesn\'t collapse identical samples. We\'ll do that\n // here to save a ton of work later doing mergers.\n\n for (let i = 0; i < chromeProfile.samples.length; i++) {\n const nodeId = chromeProfile.samples[i];\n\n if (nodeId != lastNodeId) {\n samples.push(nodeId);\n\n if (elapsed < lastValidElapsed) {\n sampleTimes.push(lastValidElapsed);\n } else {\n sampleTimes.push(elapsed);\n lastValidElapsed = elapsed;\n }\n }\n\n if (i === chromeProfile.samples.length - 1) {\n if (!isNaN(lastNodeId)) {\n samples.push(lastNodeId);\n\n if (elapsed < lastValidElapsed) {\n sampleTimes.push(lastValidElapsed);\n } else {\n sampleTimes.push(elapsed);\n lastValidElapsed = elapsed;\n }\n }\n } else {\n const timeDelta = chromeProfile.timeDeltas[i + 1];\n elapsed += timeDelta;\n lastNodeId = nodeId;\n }\n }\n\n let prevStack = [];\n\n for (let i = 0; i < samples.length; i++) {\n const value = sampleTimes[i];\n const nodeId = samples[i];\n let stackTop = nodeById.get(nodeId);\n if (!stackTop) continue; // Find lowest common ancestor of the current stack and the previous one\n\n let lca = null; // This is O(n^2), but n should be relatively small here (stack height),\n // so hopefully this isn\'t much of a problem\n\n for (lca = stackTop; lca && prevStack.indexOf(lca) === -1; lca = shouldPlaceOnTopOfPreviousStack(lca.callFrame.functionName) ? utils_1.lastOf(prevStack) : lca.parent || null) {} // Close frames that are no longer open\n\n\n while (prevStack.length > 0 && utils_1.lastOf(prevStack) != lca) {\n const closingNode = prevStack.pop();\n const frame = frameInfoForCallFrame(closingNode.callFrame);\n profile.leaveFrame(frame, value);\n } // Open frames that are now becoming open\n\n\n const toOpen = [];\n\n for (let node = stackTop; node && node != lca && !shouldIgnoreFunction(node.callFrame); // Place Chrome internal functions on top of the previous call stack\n node = shouldPlaceOnTopOfPreviousStack(node.callFrame.functionName) ? utils_1.lastOf(prevStack) : node.parent || null) {\n toOpen.push(node);\n }\n\n toOpen.reverse();\n\n for (let node of toOpen) {\n profile.enterFrame(frameInfoForCallFrame(node.callFrame), value);\n }\n\n prevStack = prevStack.concat(toOpen);\n } // Close frames that are open at the end of the trace\n\n\n for (let i = prevStack.length - 1; i >= 0; i--) {\n profile.leaveFrame(frameInfoForCallFrame(prevStack[i].callFrame), utils_1.lastOf(sampleTimes));\n }\n\n profile.setValueFormatter(new value_formatters_1.TimeFormatter(\'microseconds\'));\n return profile.build();\n}\n\nexports.importFromChromeCPUProfile = importFromChromeCPUProfile;\n\nfunction importFromOldV8CPUProfile(content) {\n return importFromChromeCPUProfile(v8cpuFormatter_1.chromeTreeToNodes(content));\n}\n\nexports.importFromOldV8CPUProfile = importFromOldV8CPUProfile;\n\n/***/ }),\n\n/***/ 320:\n/***/ ((__unused_webpack_module, exports) => {\n\n\n\nObject.defineProperty(exports, "__esModule", ({\n value: true\n}));\nexports.chromeTreeToNodes = void 0;\n\nfunction treeToArray(root) {\n const nodes = [];\n\n function visit(node) {\n nodes.push({\n id: node.id,\n callFrame: {\n columnNumber: 0,\n functionName: node.functionName,\n lineNumber: node.lineNumber,\n scriptId: node.scriptId,\n url: node.url\n },\n hitCount: node.hitCount,\n children: node.children.map(child => child.id)\n });\n node.children.forEach(visit);\n }\n\n visit(root);\n return nodes;\n}\n\nfunction timestampsToDeltas(timestamps, startTime) {\n return timestamps.map((timestamp, index) => {\n const lastTimestamp = index === 0 ? startTime * 1000000 : timestamps[index - 1];\n return timestamp - lastTimestamp;\n });\n}\n/**\n * Convert the old tree-based format to the new flat-array based format\n */\n\n\nfunction chromeTreeToNodes(content) {\n // Note that both startTime and endTime are now in microseconds\n return {\n samples: content.samples,\n startTime: content.startTime * 1000000,\n endTime: content.endTime * 1000000,\n nodes: treeToArray(content.head),\n timeDeltas: timestampsToDeltas(content.timestamps, content.startTime)\n };\n}\n\nexports.chromeTreeToNodes = chromeTreeToNodes;\n\n/***/ }),\n\n/***/ 765:\n/***/ ((__unused_webpack_module, exports) => {\n\n\n\nObject.defineProperty(exports, "__esModule", ({\n value: true\n}));\nexports.demangleCpp = void 0;\nlet cppfilt;\nconst cache = new Map(); // This function converts a mangled C++ name such as "__ZNK7Support6ColorFeqERKS0_"\n// into a human-readable symbol (in this case "Support::ColorF::==(Support::ColorF&)")\n\nfunction demangleCpp(name) {\n if (name.startsWith(\'__Z\')) {\n let result = cache.get(name);\n\n if (result !== undefined) {\n name = result;\n } else {\n if (!cppfilt) {\n cppfilt = new Function(\'exports\', code)();\n }\n\n result = cppfilt(name.slice(1));\n result = result === \'(null)\' ? name : result;\n cache.set(name, result);\n name = result;\n }\n }\n\n return name;\n}\n\nexports.demangleCpp = demangleCpp; // This was taken from https://d.fuqu.jp/c++filtjs/\n\nconst code = `\nreturn function(){function r(r){eval.call(null,r)}function a(r){throw print(r+":\\\\n"+(new Error).stack),ke=!0,"Assertion: "+r}function e(r,e){r||a("Assertion failed: "+e)}function i(r,a,i,v){function t(r,a){if("string"==a){var e=Oe;return le.stackAlloc(r.length+1),A(r,e),e}return r}function f(r,a){return"string"==a?s(r):r}try{func=ce.Module["_"+r]}catch(r){}e(func,"Cannot call unknown function "+r+" (perhaps LLVM optimizations or closure removed it?)");var _=0,n=v?v.map(function(r){return t(r,i[_++])}):[];return f(func.apply(null,n),a)}function v(r,a,e){return function(){return i(r,a,e,Array.prototype.slice.call(arguments))}}function t(r,e,i,v){switch(i=i||"i8","*"===i[i.length-1]&&(i="i32"),i){case"i1":Ae[r]=e;break;case"i8":Ae[r]=e;break;case"i16":ye[r>>1]=e;break;case"i32":Se[r>>2]=e;break;case"i64":Se[r>>2]=e;break;case"float":Ce[r>>2]=e;break;case"double":ze[0]=e,Se[r>>2]=xe[0],Se[r+4>>2]=xe[1];break;default:a("invalid type for setValue: "+i)}}function f(r,e,i){switch(e=e||"i8","*"===e[e.length-1]&&(e="i32"),e){case"i1":return Ae[r];case"i8":return Ae[r];case"i16":return ye[r>>1];case"i32":return Se[r>>2];case"i64":return Se[r>>2];case"float":return Ce[r>>2];case"double":return xe[0]=Se[r>>2],xe[1]=Se[r+4>>2],ze[0];default:a("invalid type for setValue: "+e)}return null}function _(r,a,e){var i,v;"number"==typeof r?(i=!0,v=r):(i=!1,v=r.length);var f="string"==typeof a?a:null,_=[Jr,le.stackAlloc,le.staticAlloc][void 0===e?we:e](Math.max(v,f?1:a.length));if(i)return Fa(_,0,v),_;for(var s,n=0;n>12<<12}function l(){for(;Le<=Ie;)Le=o(2*Le);var r=Ae,a=new ArrayBuffer(Le);Ae=new Int8Array(a),ye=new Int16Array(a),Se=new Int32Array(a),ge=new Uint8Array(a),me=new Uint16Array(a),Me=new Uint32Array(a),Ce=new Float32Array(a),Re=new Float64Array(a),Ae.set(r)}function b(r){for(;r.length>0;){var a=r.shift(),e=a.func;"number"==typeof e&&(e=pe[e]),e(void 0===a.arg?null:a.arg)}}function k(){b(Ve)}function u(){b(Be),be.print()}function c(r,a){return Array.prototype.slice.call(Ae.subarray(r,r+a))}function h(r,a){for(var e=new Uint8Array(a),i=0;i255&&(v&=255),e.push(v),i+=1}return a||e.push(0),e}function E(r){for(var a=[],e=0;e255&&(i&=255),a.push(String.fromCharCode(i))}return a.join("")}function A(r,a,e){for(var i=0;i255&&(v&=255),Ae[a+i]=v,i+=1}e||(Ae[a+i]=0)}function g(r,a,e,i){return r>=0?r:a<=32?2*Math.abs(1<=v&&(a<=32||r>v)&&(r=-2*v+r),r}function m(r,a,e){if(0==(0|r)|0==(0|a)|0==(0|e))var i=0;else{Se[r>>2]=0,Se[r+4>>2]=a,Se[r+8>>2]=e;var i=1}var i;return i}function S(r,a,e){if(0==(0|r)|(0|a)<0|0==(0|e))var i=0;else{Se[r>>2]=41,Se[r+4>>2]=a,Se[r+8>>2]=e;var i=1}var i;return i}function M(r,a,e){if(0==(0|r)|0==(0|e))var i=0;else{Se[r>>2]=6,Se[r+4>>2]=a,Se[r+8>>2]=e;var i=1}var i;return i}function C(r,a,e){if(0==(0|r)|0==(0|e))var i=0;else{Se[r>>2]=7,Se[r+4>>2]=a,Se[r+8>>2]=e;var i=1}var i;return i}function R(r,a){var e,i=0==(0|a);do if(i)var v=0;else{var e=(r+32|0)>>2,t=Se[e];if((0|t)>=(0|Se[r+36>>2])){var v=0;break}var f=(t<<2)+Se[r+28>>2]|0;Se[f>>2]=a;var _=Se[e]+1|0;Se[e]=_;var v=1}while(0);var v;return v}function T(r,a){var e,e=(r+12|0)>>2,i=Se[e],v=i+1|0;Se[e]=v;var t=Ae[i]<<24>>24==95;do if(t){var f=i+2|0;if(Se[e]=f,Ae[v]<<24>>24!=90){var _=0;break}var s=O(r,a),_=s}else var _=0;while(0);var _;return _}function O(r,a){var e=r+12|0,i=Ae[Se[e>>2]];r:do if(i<<24>>24==71||i<<24>>24==84)var v=Tr(r),t=v;else{var f=Ar(r),_=0==(0|f)|0==(0|a);do if(!_){if(0!=(1&Se[r+8>>2]|0))break;var s=Me[f>>2],n=(s-25|0)>>>0<3;a:do if(n)for(var o=f;;){var o,l=Me[o+4>>2],b=Me[l>>2];if((b-25|0)>>>0>=3){var k=l,u=b;break a}var o=l}else var k=f,u=s;while(0);var u,k;if(2!=(0|u)){var t=k;break r}var c=k+8|0,h=Me[c>>2],d=(Se[h>>2]-25|0)>>>0<3;a:do if(d)for(var w=h;;){var w,p=Me[w+4>>2];if((Se[p>>2]-25|0)>>>0>=3){var E=p;break a}var w=p}else var E=h;while(0);var E;Se[c>>2]=E;var t=k;break r}while(0);var A=Ae[Se[e>>2]];if(A<<24>>24==0||A<<24>>24==69){var t=f;break}var g=Or(f),y=Sr(r,g),m=D(r,3,f,y),t=m}while(0);var t;return t}function N(r){var a,e,i=Oe;Oe+=4;var v=i,e=v>>2,a=(r+12|0)>>2,t=Me[a],f=Ae[t],_=f<<24>>24;r:do if(f<<24>>24==114||f<<24>>24==86||f<<24>>24==75){var s=I(r,v,0);if(0==(0|s)){var n=0;break}var o=N(r);Se[s>>2]=o;var l=Se[e],b=R(r,l);if(0==(0|b)){var n=0;break}var n=Se[e]}else{do{if(97==(0|_)||98==(0|_)||99==(0|_)||100==(0|_)||101==(0|_)||102==(0|_)||103==(0|_)||104==(0|_)||105==(0|_)||106==(0|_)||108==(0|_)||109==(0|_)||110==(0|_)||111==(0|_)||115==(0|_)||116==(0|_)||118==(0|_)||119==(0|_)||120==(0|_)||121==(0|_)||122==(0|_)){var k=ai+20*(_-97)|0,u=P(r,k);Se[e]=u;var c=r+48|0,h=Se[c>>2]+Se[Se[u+4>>2]+4>>2]|0;Se[c>>2]=h;var d=Se[a]+1|0;Se[a]=d;var n=u;break r}if(117==(0|_)){Se[a]=t+1|0;var w=L(r),p=D(r,34,w,0);Se[e]=p;var E=p}else if(70==(0|_)){var A=F(r);Se[e]=A;var E=A}else if(48==(0|_)||49==(0|_)||50==(0|_)||51==(0|_)||52==(0|_)||53==(0|_)||54==(0|_)||55==(0|_)||56==(0|_)||57==(0|_)||78==(0|_)||90==(0|_)){var g=X(r);Se[e]=g;var E=g}else if(65==(0|_)){var y=j(r);Se[e]=y;var E=y}else if(77==(0|_)){var m=U(r);Se[e]=m;var E=m}else if(84==(0|_)){var S=x(r);if(Se[e]=S,Ae[Se[a]]<<24>>24!=73){var E=S;break}var M=R(r,S);if(0==(0|M)){var n=0;break r}var C=Se[e],T=z(r),O=D(r,4,C,T);Se[e]=O;var E=O}else if(83==(0|_)){var B=ge[t+1|0];if((B-48&255&255)<10|B<<24>>24==95|(B-65&255&255)<26){var H=V(r,0);if(Se[e]=H,Ae[Se[a]]<<24>>24!=73){var n=H;break r}var K=z(r),Y=D(r,4,H,K);Se[e]=Y;var E=Y}else{var G=X(r);if(Se[e]=G,0==(0|G)){var E=0;break}if(21==(0|Se[G>>2])){var n=G;break r}var E=G}}else if(80==(0|_)){Se[a]=t+1|0;var W=N(r),Z=D(r,29,W,0);Se[e]=Z;var E=Z}else if(82==(0|_)){Se[a]=t+1|0;var Q=N(r),q=D(r,30,Q,0);Se[e]=q;var E=q}else if(67==(0|_)){Se[a]=t+1|0;var $=N(r),J=D(r,31,$,0);Se[e]=J;var E=J}else if(71==(0|_)){Se[a]=t+1|0;var rr=N(r),ar=D(r,32,rr,0);Se[e]=ar;var E=ar}else{if(85!=(0|_)){var n=0;break r}Se[a]=t+1|0;var er=L(r);Se[e]=er;var ir=N(r),vr=Se[e],tr=D(r,28,ir,vr);Se[e]=tr;var E=tr}}while(0);var E,fr=R(r,E);if(0==(0|fr)){var n=0;break}var n=Se[e]}while(0);var n;return Oe=i,n}function I(r,a,e){for(var i,v=r+12|0,t=0!=(0|e),f=t?25:22,i=(r+48|0)>>2,_=t?26:23,s=t?27:24,n=a;;){var n,o=Se[v>>2],l=Ae[o];if(l<<24>>24!=114&&l<<24>>24!=86&&l<<24>>24!=75){var b=n;break}var k=o+1|0;if(Se[v>>2]=k,l<<24>>24==114){var u=Se[i]+9|0;Se[i]=u;var c=f}else if(l<<24>>24==86){var h=Se[i]+9|0;Se[i]=h;var c=_}else{var d=Se[i]+6|0;Se[i]=d;var c=s}var c,w=D(r,c,0,0);if(Se[n>>2]=w,0==(0|w)){var b=0;break}var n=w+4|0}var b;return b}function P(r,a){var e=0==(0|a);do if(e)var i=0;else{var v=J(r);if(0==(0|v)){var i=0;break}Se[v>>2]=33,Se[v+4>>2]=a;var i=v}while(0);var i;return i}function D(r,a,e,i){var v,t;do{if(1==(0|a)||2==(0|a)||3==(0|a)||4==(0|a)||10==(0|a)||28==(0|a)||37==(0|a)||43==(0|a)||44==(0|a)||45==(0|a)||46==(0|a)||47==(0|a)||48==(0|a)||49==(0|a)||50==(0|a)){if(0==(0|e)|0==(0|i)){var f=0;t=7;break}t=5;break}if(8==(0|a)||9==(0|a)||11==(0|a)||12==(0|a)||13==(0|a)||14==(0|a)||15==(0|a)||16==(0|a)||17==(0|a)||18==(0|a)||19==(0|a)||20==(0|a)||29==(0|a)||30==(0|a)||31==(0|a)||32==(0|a)||34==(0|a)||38==(0|a)||39==(0|a)||42==(0|a)){if(0==(0|e)){var f=0;t=7;break}t=5;break}if(36==(0|a)){if(0==(0|i)){var f=0;t=7;break}t=5;break}if(35==(0|a)||22==(0|a)||23==(0|a)||24==(0|a)||25==(0|a)||26==(0|a)||27==(0|a))t=5;else{var f=0;t=7}}while(0);do if(5==t){var _=J(r),v=_>>2;if(0==(0|_)){var f=0;break}Se[v]=a,Se[v+1]=e,Se[v+2]=i;var f=_}while(0);var f;return f}function L(r){var a=sr(r);if((0|a)<1)var e=0;else{var i=Rr(r,a);Se[r+44>>2]=i;var e=i}var e;return e}function F(r){var a,a=(r+12|0)>>2,e=Se[a],i=e+1|0;if(Se[a]=i,Ae[e]<<24>>24==70){if(Ae[i]<<24>>24==89){var v=e+2|0;Se[a]=v}var t=Sr(r,1),f=Se[a],_=f+1|0;Se[a]=_;var s=Ae[f]<<24>>24==69?t:0,n=s}else var n=0;var n;return n}function X(r){var a=Ar(r);return a}function j(r){var a,a=(r+12|0)>>2,e=Se[a],i=e+1|0;Se[a]=i;var v=Ae[e]<<24>>24==65;do if(v){var t=Ae[i];if(t<<24>>24==95)var f=0;else if((t-48&255&255)<10){for(var _=i;;){var _,s=_+1|0;if(Se[a]=s,(Ae[s]-48&255&255)>=10)break;var _=s}var n=s-i|0,o=lr(r,i,n);if(0==(0|o)){var l=0;break}var f=o}else{var b=nr(r);if(0==(0|b)){var l=0;break}var f=b}var f,k=Se[a],u=k+1|0;if(Se[a]=u,Ae[k]<<24>>24!=95){var l=0;break}var c=N(r),h=D(r,36,f,c),l=h}else var l=0;while(0);var l;return l}function U(r){var a=Oe;Oe+=4;var e=a,i=r+12|0,v=Se[i>>2],t=v+1|0;Se[i>>2]=t;var f=Ae[v]<<24>>24==77;r:do if(f){var _=N(r),s=I(r,e,1);if(0==(0|s)){var n=0;break}var o=N(r);Se[s>>2]=o;var l=(0|s)==(0|e);do if(!l){if(35==(0|Se[o>>2]))break;var b=Se[e>>2],k=R(r,b);if(0==(0|k)){var n=0;break r}}while(0);var u=Se[e>>2],c=D(r,37,_,u),n=c}else var n=0;while(0);var n;return Oe=a,n}function x(r){var a,a=(r+12|0)>>2,e=Se[a],i=e+1|0;Se[a]=i;var v=Ae[e]<<24>>24==84;do if(v){if(Ae[i]<<24>>24==95)var t=0,f=i;else{var _=sr(r);if((0|_)<0){var s=0;break}var t=_+1|0,f=Se[a]}var f,t;if(Se[a]=f+1|0,Ae[f]<<24>>24!=95){var s=0;break}var n=r+40|0,o=Se[n>>2]+1|0;Se[n>>2]=o;var l=Er(r,t),s=l}else var s=0;while(0);var s;return s}function z(r){var a,e=Oe;Oe+=4;var i=e,v=r+44|0,t=Se[v>>2],a=(r+12|0)>>2,f=Se[a],_=f+1|0;Se[a]=_;var s=Ae[f]<<24>>24==73;r:do if(s){Se[i>>2]=0;for(var n=i;;){var n,o=_r(r);if(0==(0|o)){var l=0;break r}var b=D(r,39,o,0);if(Se[n>>2]=b,0==(0|b)){var l=0;break r}var k=Se[a];if(Ae[k]<<24>>24==69)break;var n=b+8|0}var u=k+1|0;Se[a]=u,Se[v>>2]=t;var l=Se[i>>2]}else var l=0;while(0);var l;return Oe=e,l}function V(r,a){var e,e=(r+12|0)>>2,i=Se[e],v=i+1|0;Se[e]=v;var t=Ae[i]<<24>>24==83;r:do if(t){var f=i+2|0;Se[e]=f;var _=ge[v];if(_<<24>>24==95)var s=0;else{if(!((_-48&255&255)<10|(_-65&255&255)<26)){var n=8&Se[r+8>>2],o=n>>>3,l=0!=(0|n)|0==(0|a);do if(l)var b=o;else{if((Ae[f]-67&255&255)>=2){var b=o;break}var b=1}while(0);for(var b,k=0|ei;;){var k;if(k>>>0>=(ei+196|0)>>>0){var u=0;break r}if(_<<24>>24==Ae[0|k]<<24>>24)break;var k=k+28|0}var c=Se[k+20>>2];if(0!=(0|c)){var h=Se[k+24>>2],d=fr(r,c,h);Se[r+44>>2]=d}if(0==(0|b))var w=k+8|0,p=k+4|0;else var w=k+16|0,p=k+12|0;var p,w,E=Se[w>>2],A=Se[p>>2],g=r+48|0,y=Se[g>>2]+E|0;Se[g>>2]=y;var m=fr(r,A,E),u=m;break}for(var S=_,M=0,C=f;;){var C,M,S;if((S-48&255&255)<10)var R=36*M-48|0;else{if((S-65&255&255)>=26){var u=0;break r}var R=36*M-55|0}var R,T=(S<<24>>24)+R|0;if((0|T)<0){var u=0;break r}var O=C+1|0;Se[e]=O;var N=ge[C];if(N<<24>>24==95)break;var S=N,M=T,C=O}var s=T+1|0}var s;if((0|s)>=(0|Se[r+32>>2])){var u=0;break}var I=r+40|0,P=Se[I>>2]+1|0;Se[I>>2]=P;var u=Se[Se[r+28>>2]+(s<<2)>>2]}else var u=0;while(0);var u;return u}function B(r,a,e,i){var v,t,f,_,s=Oe;Oe+=28;var n,o=s,_=o>>2;Se[_]=r;var l=e+1|0,f=(o+12|0)>>2;Se[f]=l;var b=Jr(l),t=(o+4|0)>>2;if(Se[t]=b,0==(0|b))var k=0,u=1;else{var v=(o+8|0)>>2;Se[v]=0,Se[_+4]=0,Se[_+5]=0;var c=o+24|0;Se[c>>2]=0,H(o,a);var h=Me[t],d=0==(0|h);do{if(!d){var w=Me[v];if(w>>>0>=Me[f]>>>0){n=5;break}Se[v]=w+1|0,Ae[h+w|0]=0,n=6;break}n=5}while(0);5==n&&Y(o,0);var p=Se[t],E=0==(0|p)?Se[c>>2]:Se[f],k=p,u=E}var u,k;return Se[i>>2]=u,Oe=s,k}function H(r,a){var e,i,v,t,f,_,s,n,o,l,b,k,u,c,h,d,w,p,E,A,g,y,m,S,M,C,R,T,O,N,I,P,D,L,F,X,j,U,x,z,V,B,K,G,W,J,vr,tr,fr,_r,sr,nr,or,lr,br,kr,ur,cr,hr,dr,wr,pr=a>>2,Er=r>>2,Ar=Oe;Oe+=184;var gr,yr=Ar,wr=yr>>2,mr=Ar+64,dr=mr>>2,Sr=Ar+72,Mr=Ar+88,Cr=Ar+104,hr=Cr>>2,Rr=Ar+168,Tr=0==(0|a);r:do if(Tr)Z(r);else{var cr=(r+4|0)>>2,Or=Me[cr];if(0==(0|Or))break;var Nr=0|a,Ir=Me[Nr>>2];a:do{if(0==(0|Ir)){if(0!=(4&Se[Er]|0)){var Pr=Se[pr+1],Dr=Se[pr+2];q(r,Pr,Dr);break r}var ur=(r+8|0)>>2,Lr=Me[ur],Fr=a+8|0,Xr=Me[Fr>>2];if((Xr+Lr|0)>>>0>Me[Er+3]>>>0){var jr=Se[pr+1];Q(r,jr,Xr);break r}var Ur=Or+Lr|0,xr=Se[pr+1];Pa(Ur,xr,Xr,1);var zr=Se[ur]+Se[Fr>>2]|0;Se[ur]=zr;break r}if(1==(0|Ir)||2==(0|Ir)){var Vr=Se[pr+1];H(r,Vr);var Br=0==(4&Se[Er]|0),Hr=Me[cr],Kr=0!=(0|Hr);e:do if(Br){do if(Kr){var kr=(r+8|0)>>2,Yr=Me[kr];if((Yr+2|0)>>>0>Me[Er+3]>>>0)break;var Gr=Hr+Yr|0;oe=14906,Ae[Gr]=255&oe,oe>>=8,Ae[Gr+1]=255&oe;var Wr=Se[kr]+2|0;Se[kr]=Wr;break e}while(0);Q(r,0|He.__str120,2)}else{do if(Kr){var Zr=r+8|0,Qr=Me[Zr>>2];if(Qr>>>0>=Me[Er+3]>>>0)break;Se[Zr>>2]=Qr+1|0,Ae[Hr+Qr|0]=46;break e}while(0);Y(r,46)}while(0);var qr=Se[pr+2];H(r,qr);break r}if(3==(0|Ir)){for(var br=(r+20|0)>>2,$r=Me[br],lr=(r+16|0)>>2,Jr=a,ra=0,aa=$r;;){var aa,ra,Jr,ea=Me[Jr+4>>2];if(0==(0|ea)){var ia=ra,va=0;gr=33;break}if(ra>>>0>3){Z(r);break r}var ta=(ra<<4)+yr|0;Se[ta>>2]=aa,Se[br]=ta,Se[((ra<<4)+4>>2)+wr]=ea,Se[((ra<<4)+8>>2)+wr]=0;var fa=Me[lr];Se[((ra<<4)+12>>2)+wr]=fa;var _a=ra+1|0,sa=0|ea,na=Me[sa>>2];if((na-25|0)>>>0>=3){gr=25;break}var Jr=ea,ra=_a,aa=ta}e:do if(25==gr){if(4==(0|na)){Se[dr]=fa,Se[lr]=mr,Se[dr+1]=ea;var oa=Se[sa>>2],la=mr}else var oa=na,la=fa;var la,oa;if(2!=(0|oa)){var ia=_a,va=sa;break}for(var ba=_a,ka=ea+8|0;;){var ka,ba,ua=Me[ka>>2];if((Se[ua>>2]-25|0)>>>0>=3){var ia=ba,va=sa;break e}if(ba>>>0>3)break;var ca=(ba<<4)+yr|0,ha=ba-1|0,da=(ha<<4)+yr|0,or=ca>>2,nr=da>>2;Se[or]=Se[nr],Se[or+1]=Se[nr+1],Se[or+2]=Se[nr+2],Se[or+3]=Se[nr+3],Se[ca>>2]=da,Se[br]=ca,Se[((ha<<4)+4>>2)+wr]=ua,Se[((ha<<4)+8>>2)+wr]=0,Se[((ha<<4)+12>>2)+wr]=la;var ba=ba+1|0,ka=ua+4|0}Z(r);break r}while(0);var va,ia,wa=Se[pr+2];if(H(r,wa),4==(0|Se[va>>2])){var pa=Se[dr];Se[lr]=pa}var Ea=0==(0|ia);e:do if(!Ea)for(var Aa=r+8|0,ga=r+12|0,ya=ia;;){var ya,ma=ya-1|0;if(0==(0|Se[((ma<<4)+8>>2)+wr])){var Sa=Me[cr],Ma=0==(0|Sa);do{if(!Ma){var Ca=Me[Aa>>2];if(Ca>>>0>=Me[ga>>2]>>>0){gr=41;break}Se[Aa>>2]=Ca+1|0,Ae[Sa+Ca|0]=32,gr=42;break}gr=41}while(0);41==gr&&Y(r,32);var Ra=Se[((ma<<4)+4>>2)+wr];$(r,Ra)}if(0==(0|ma))break e;var ya=ma}while(0);Se[br]=$r;break r}if(4==(0|Ir)){var sr=(r+20|0)>>2,Ta=Se[sr];Se[sr]=0;var Oa=Se[pr+1];H(r,Oa);var Na=Me[cr],Ia=0==(0|Na);do{if(!Ia){var _r=(r+8|0)>>2,Da=Me[_r],La=0==(0|Da);do if(!La){if(Ae[Na+(Da-1)|0]<<24>>24!=60)break;Da>>>0>>0?(Se[_r]=Da+1|0,Ae[Na+Da|0]=32):Y(r,32)}while(0);var Fa=Me[cr];if(0==(0|Fa)){gr=54;break}var Xa=Me[_r];if(Xa>>>0>=Me[Er+3]>>>0){gr=54;break}Se[_r]=Xa+1|0,Ae[Fa+Xa|0]=60,gr=55;break}gr=54}while(0);54==gr&&Y(r,60);var ja=Se[pr+2];H(r,ja);var Ua=Me[cr],xa=0==(0|Ua);do{if(!xa){var fr=(r+8|0)>>2,za=Me[fr],Va=0==(0|za);do if(!Va){if(Ae[Ua+(za-1)|0]<<24>>24!=62)break;za>>>0>>0?(Se[fr]=za+1|0,Ae[Ua+za|0]=32):Y(r,32)}while(0);var Ba=Me[cr];if(0==(0|Ba)){gr=64;break}var Ha=Me[fr];if(Ha>>>0>=Me[Er+3]>>>0){gr=64;break}Se[fr]=Ha+1|0,Ae[Ba+Ha|0]=62,gr=65;break}gr=64}while(0);64==gr&&Y(r,62),Se[sr]=Ta;break r}if(5==(0|Ir)){var tr=(r+16|0)>>2,Ka=Me[tr];if(0==(0|Ka)){Z(r);break r}for(var Ya=Se[pr+1],Ga=Se[Ka+4>>2];;){var Ga,Ya,Wa=Se[Ga+8>>2];if(0==(0|Wa))break;if(39!=(0|Se[Wa>>2])){Z(r);break r}if((0|Ya)<1){if(0!=(0|Ya))break;var Za=Se[Ka>>2];Se[tr]=Za;var Qa=Se[Wa+4>>2];H(r,Qa),Se[tr]=Ka;break r}var Ya=Ya-1|0,Ga=Wa}Z(r);break r}if(6==(0|Ir)){var qa=Se[pr+2];H(r,qa);break r}if(7==(0|Ir)){var $a=r+8|0,Ja=Me[$a>>2];Ja>>>0>>0?(Se[$a>>2]=Ja+1|0,Ae[Or+Ja|0]=126):Y(r,126);var re=Se[pr+2];H(r,re);break r}if(8==(0|Ir)){var vr=(r+8|0)>>2,ae=Me[vr];if((ae+11|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str121,11);else{for(var ee=Or+ae|0,ie=0|He.__str121,ve=ee,te=ie+11;ie>2,se=Me[J];if((se+8|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str122,8);else{var ne=Or+se|0,le=0|ne;oe=542397526,Ae[le]=255&oe,oe>>=8,Ae[le+1]=255&oe,oe>>=8,Ae[le+2]=255&oe,oe>>=8,Ae[le+3]=255&oe;var be=ne+4|0;oe=544370534,Ae[be]=255&oe,oe>>=8,Ae[be+1]=255&oe,oe>>=8,Ae[be+2]=255&oe,oe>>=8,Ae[be+3]=255&oe;var ke=Se[J]+8|0;Se[J]=ke}var ue=Se[pr+1];H(r,ue);break r}if(10==(0|Ir)){var W=(r+8|0)>>2,ce=Me[W],he=r+12|0;if((ce+24|0)>>>0>Me[he>>2]>>>0)Q(r,0|He.__str123,24);else{var de=Or+ce|0;Pa(de,0|He.__str123,24,1);var we=Se[W]+24|0;Se[W]=we}var pe=Se[pr+1];H(r,pe);var Ee=Me[cr],ge=0==(0|Ee);do{if(!ge){var ye=Me[W];if((ye+4|0)>>>0>Me[he>>2]>>>0){gr=96;break}var me=Ee+ye|0;oe=762210605,Ae[me]=255&oe,oe>>=8,Ae[me+1]=255&oe,oe>>=8,Ae[me+2]=255&oe,oe>>=8,Ae[me+3]=255&oe;var Ce=Se[W]+4|0;Se[W]=Ce,gr=97;break}gr=96}while(0);96==gr&&Q(r,0|He.__str124,4);var Re=Se[pr+2];H(r,Re);break r}if(11==(0|Ir)){var G=(r+8|0)>>2,Te=Me[G];if((Te+13|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str125,13);else{for(var Ne=Or+Te|0,ie=0|He.__str125,ve=Ne,te=ie+13;ie>2,De=Me[K];if((De+18|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str126,18);else{for(var Le=Or+De|0,ie=0|He.__str126,ve=Le,te=ie+18;ie>2,je=Me[B];if((je+16|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str127,16);else{for(var Ue=Or+je|0,ie=0|He.__str127,ve=Ue,te=ie+16;ie>2,Ve=Me[V];if((Ve+21|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str128,21);else{var Be=Or+Ve|0;Pa(Be,0|He.__str128,21,1);var Ke=Se[V]+21|0;Se[V]=Ke}var Ye=Se[pr+1];H(r,Ye);break r}if(15==(0|Ir)){var z=(r+8|0)>>2,Ge=Me[z];if((Ge+17|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str129,17);else{for(var We=Or+Ge|0,ie=0|He.__str129,ve=We,te=ie+17;ie>2,qe=Me[x];if((qe+26|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str130,26);else{var $e=Or+qe|0;Pa($e,0|He.__str130,26,1);var Je=Se[x]+26|0;Se[x]=Je}var ri=Se[pr+1];H(r,ri);break r}if(17==(0|Ir)){var U=(r+8|0)>>2,ai=Me[U];if((ai+15|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str131,15);else{for(var ei=Or+ai|0,ie=0|He.__str131,ve=ei,te=ie+15;ie>2,ti=Me[j];if((ti+19|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str132,19);else{for(var fi=Or+ti|0,ie=0|He.__str132,ve=fi,te=ie+19;ie>2,ni=Me[X];if((ni+24|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str133,24);else{var oi=Or+ni|0;Pa(oi,0|He.__str133,24,1);var li=Se[X]+24|0;Se[X]=li}var bi=Se[pr+1];H(r,bi);break r}if(20==(0|Ir)){var F=(r+8|0)>>2,ki=Me[F];if((ki+17|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str134,17);else{for(var ui=Or+ki|0,ie=0|He.__str134,ve=ui,te=ie+17;ie>2,di=Me[L],wi=a+8|0,pi=Me[wi>>2];if((pi+di|0)>>>0>Me[Er+3]>>>0){var Ei=Se[pr+1];Q(r,Ei,pi);break r}var Ai=Or+di|0,gi=Se[pr+1];Pa(Ai,gi,pi,1);var yi=Se[L]+Se[wi>>2]|0;Se[L]=yi;break r}if(22==(0|Ir)||23==(0|Ir)||24==(0|Ir)){for(var mi=r+20|0;;){var mi,Si=Me[mi>>2];if(0==(0|Si))break a;if(0==(0|Se[Si+8>>2])){var Mi=Me[Se[Si+4>>2]>>2];if((Mi-22|0)>>>0>=3)break a;if((0|Mi)==(0|Ir))break}var mi=0|Si}var Ci=Se[pr+1];H(r,Ci);break r}if(25!=(0|Ir)&&26!=(0|Ir)&&27!=(0|Ir)&&28!=(0|Ir)&&29!=(0|Ir)&&30!=(0|Ir)&&31!=(0|Ir)&&32!=(0|Ir)){if(33==(0|Ir)){var D=(r+8|0)>>2,Ri=Me[D],P=(a+4|0)>>2,I=Me[P]>>2;if(0==(4&Se[Er]|0)){var Ti=Me[I+1];if((Ti+Ri|0)>>>0>Me[Er+3]>>>0){var Oi=Se[I];Q(r,Oi,Ti);break r}var Ni=Or+Ri|0,Ii=Se[I];Pa(Ni,Ii,Ti,1);var Pi=Se[D]+Se[Se[P]+4>>2]|0;Se[D]=Pi;break r}var Di=Me[I+3];if((Di+Ri|0)>>>0>Me[Er+3]>>>0){var Li=Se[I+2];Q(r,Li,Di);break r}var Fi=Or+Ri|0,Xi=Se[I+2];Pa(Fi,Xi,Di,1);var ji=Se[D]+Se[Se[P]+12>>2]|0;Se[D]=ji;break r}if(34==(0|Ir)){var Ui=Se[pr+1];H(r,Ui);break r}if(35==(0|Ir)){var N=(0|r)>>2;if(0!=(32&Se[N]|0)){var xi=Se[Er+5];rr(r,a,xi)}var zi=a+4|0,Vi=0==(0|Se[zi>>2]);e:do if(!Vi){var O=(r+20|0)>>2,Bi=Se[O],Hi=0|Mr;Se[Hi>>2]=Bi,Se[O]=Mr,Se[Mr+4>>2]=a;var Ki=Mr+8|0;Se[Ki>>2]=0;var Yi=Se[Er+4];Se[Mr+12>>2]=Yi;var Gi=Se[zi>>2];H(r,Gi);var Wi=Se[Hi>>2];if(Se[O]=Wi,0!=(0|Se[Ki>>2]))break r;if(0!=(32&Se[N]|0))break;var Zi=Me[cr],Qi=0==(0|Zi);do if(!Qi){var qi=r+8|0,$i=Me[qi>>2];if($i>>>0>=Me[Er+3]>>>0)break;Se[qi>>2]=$i+1|0,Ae[Zi+$i|0]=32;break e}while(0);Y(r,32)}while(0);if(0!=(32&Se[N]|0))break r;var Ji=Se[Er+5];rr(r,a,Ji);break r}if(36==(0|Ir)){var T=(r+20|0)>>2,rv=Me[T],av=0|Cr;Se[hr]=rv,Se[T]=av,Se[hr+1]=a;var ev=Cr+8|0;Se[ev>>2]=0;var iv=Se[Er+4];Se[hr+3]=iv;for(var vv=rv,tv=1;;){var tv,vv;if(0==(0|vv))break;if((Se[Se[vv+4>>2]>>2]-22|0)>>>0>=3)break;var fv=vv+8|0;if(0==(0|Se[fv>>2])){if(tv>>>0>3){Z(r);break r}var _v=(tv<<4)+Cr|0,R=_v>>2,C=vv>>2;Se[R]=Se[C],Se[R+1]=Se[C+1],Se[R+2]=Se[C+2],Se[R+3]=Se[C+3];var sv=Se[T];Se[_v>>2]=sv,Se[T]=_v,Se[fv>>2]=1;var nv=tv+1|0}else var nv=tv;var nv,vv=Se[vv>>2],tv=nv}var ov=Se[pr+2];if(H(r,ov),Se[T]=rv,0!=(0|Se[ev>>2]))break r;if(tv>>>0>1){for(var lv=tv;;){var lv,bv=lv-1|0,kv=Se[((bv<<4)+4>>2)+hr];if($(r,kv),bv>>>0<=1)break;var lv=bv}var uv=Se[T]}else var uv=rv;var uv;ar(r,a,uv);break r}if(37==(0|Ir)){var M=(r+20|0)>>2,cv=Se[M],hv=0|Rr;Se[hv>>2]=cv,Se[M]=Rr,Se[Rr+4>>2]=a;var dv=Rr+8|0;Se[dv>>2]=0;var wv=Se[Er+4];Se[Rr+12>>2]=wv;var pv=a+4|0,Ev=Se[pr+2];H(r,Ev);var Av=0==(0|Se[dv>>2]);e:do if(Av){var gv=Me[cr],yv=0==(0|gv);do{if(!yv){var mv=r+8|0,Sv=Me[mv>>2];if(Sv>>>0>=Me[Er+3]>>>0){gr=187;break}Se[mv>>2]=Sv+1|0,Ae[gv+Sv|0]=32,gr=188;break}gr=187}while(0);187==gr&&Y(r,32);var Mv=Se[pv>>2];H(r,Mv);var Cv=Me[cr],Rv=0==(0|Cv);do if(!Rv){var S=(r+8|0)>>2,Tv=Me[S];if((Tv+3|0)>>>0>Me[Er+3]>>>0)break;var Ov=Cv+Tv|0;Ae[Ov]=Ae[0|He.__str135],Ae[Ov+1]=Ae[(0|He.__str135)+1],Ae[Ov+2]=Ae[(0|He.__str135)+2];var Nv=Se[S]+3|0;Se[S]=Nv;break e}while(0);Q(r,0|He.__str135,3)}while(0);var Iv=Se[hv>>2];Se[M]=Iv;break r}if(38==(0|Ir)||39==(0|Ir)){var Pv=Se[pr+1];H(r,Pv);var Dv=a+8|0;if(0==(0|Se[Dv>>2]))break r;var Lv=Me[cr],Fv=0==(0|Lv);do{if(!Fv){var m=(r+8|0)>>2,Xv=Me[m];if((Xv+2|0)>>>0>Me[Er+3]>>>0){gr=197;break}var jv=Lv+Xv|0;oe=8236,Ae[jv]=255&oe,oe>>=8,Ae[jv+1]=255&oe;var Uv=Se[m]+2|0;Se[m]=Uv,gr=198;break}gr=197}while(0);197==gr&&Q(r,0|He.__str136,2);var xv=Se[Dv>>2];H(r,xv);break r}if(40==(0|Ir)){var y=(r+8|0)>>2,zv=Me[y],g=(r+12|0)>>2;if((zv+8|0)>>>0>Me[g]>>>0)Q(r,0|He.__str137,8);else{var Vv=Or+zv|0,le=0|Vv;oe=1919250543,Ae[le]=255&oe,oe>>=8,Ae[le+1]=255&oe,oe>>=8,Ae[le+2]=255&oe,oe>>=8,Ae[le+3]=255&oe;var be=Vv+4|0;oe=1919906913,Ae[be]=255&oe,oe>>=8,Ae[be+1]=255&oe,oe>>=8,Ae[be+2]=255&oe,oe>>=8,Ae[be+3]=255&oe;var Bv=Se[y]+8|0;Se[y]=Bv}var A=(a+4|0)>>2,Hv=(Ae[Se[Se[A]+4>>2]]-97&255&255)<26;e:do if(Hv){var Kv=Me[cr],Yv=0==(0|Kv);do if(!Yv){var Gv=Me[y];if(Gv>>>0>=Me[g]>>>0)break;Se[y]=Gv+1|0,Ae[Kv+Gv|0]=32;break e}while(0);Y(r,32)}while(0);var Wv=Me[cr],Zv=0==(0|Wv);do{if(!Zv){var Qv=Me[y],qv=Me[A],$v=Me[qv+8>>2];if(($v+Qv|0)>>>0>Me[g]>>>0){var Jv=qv,rt=$v;break}var at=Wv+Qv|0,et=Se[qv+4>>2];Pa(at,et,$v,1);var it=Se[y]+Se[Se[A]+8>>2]|0;Se[y]=it;break r}var vt=Me[A],Jv=vt,rt=Se[vt+8>>2]}while(0);var rt,Jv,tt=Se[Jv+4>>2];Q(r,tt,rt);break r}if(41==(0|Ir)){var E=(r+8|0)>>2,ft=Me[E];if((ft+9|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str10180,9);else{for(var _t=Or+ft|0,ie=0|He.__str10180,ve=_t,te=ie+9;ie>2,ot=Me[p];if((ot+9|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str10180,9);else{for(var lt=Or+ot|0,ie=0|He.__str10180,ve=lt,te=ie+9;ie>2],ct=42==(0|Se[ut>>2]);e:do if(ct){var w=(r+8|0)>>2,ht=Me[w],dt=r+12|0;ht>>>0>2]>>>0?(Se[w]=ht+1|0,Ae[Or+ht|0]=40):Y(r,40);var wt=Se[kt>>2];er(r,wt);var pt=Me[cr],Et=0==(0|pt);do if(!Et){var At=Me[w];if(At>>>0>=Me[dt>>2]>>>0)break;Se[w]=At+1|0,Ae[pt+At|0]=41;break e}while(0);Y(r,41)}else ir(r,ut);while(0);var gt=Me[cr],yt=0==(0|gt);do{if(!yt){var mt=r+8|0,St=Me[mt>>2];if(St>>>0>=Me[Er+3]>>>0){gr=232;break}Se[mt>>2]=St+1|0,Ae[gt+St|0]=40,gr=233;break}gr=232}while(0);232==gr&&Y(r,40);var Mt=Se[pr+2];H(r,Mt);var Ct=Me[cr],Rt=0==(0|Ct);do if(!Rt){var Tt=r+8|0,Ot=Me[Tt>>2];if(Ot>>>0>=Me[Er+3]>>>0)break;Se[Tt>>2]=Ot+1|0,Ae[Ct+Ot|0]=41;break r}while(0);Y(r,41);break r}if(44==(0|Ir)){var d=(a+8|0)>>2;if(45==(0|Se[Se[d]>>2])){var h=(a+4|0)>>2,Nt=Se[h],It=40==(0|Se[Nt>>2]);do if(It){var Pt=Se[Nt+4>>2];if(1!=(0|Se[Pt+8>>2]))break;if(Ae[Se[Pt+4>>2]]<<24>>24!=62)break;var Dt=r+8|0,Lt=Me[Dt>>2];Lt>>>0>>0?(Se[Dt>>2]=Lt+1|0,Ae[Or+Lt|0]=40):Y(r,40)}while(0);var Ft=Me[cr],Xt=0==(0|Ft);do{if(!Xt){var jt=r+8|0,Ut=Me[jt>>2];if(Ut>>>0>=Me[Er+3]>>>0){gr=248;break}Se[jt>>2]=Ut+1|0,Ae[Ft+Ut|0]=40,gr=249;break}gr=248}while(0);248==gr&&Y(r,40);var xt=Se[Se[d]+4>>2];H(r,xt);var zt=Me[cr],Vt=0==(0|zt);do{if(!Vt){var c=(r+8|0)>>2,Bt=Me[c];if((Bt+2|0)>>>0>Me[Er+3]>>>0){gr=252;break}var Ht=zt+Bt|0;oe=8233,Ae[Ht]=255&oe,oe>>=8,Ae[Ht+1]=255&oe;var Kt=Se[c]+2|0;Se[c]=Kt,gr=253;break}gr=252}while(0);252==gr&&Q(r,0|He.__str139,2);var Yt=Se[h];ir(r,Yt);var Gt=Me[cr],Wt=0==(0|Gt);do{if(!Wt){var u=(r+8|0)>>2,Zt=Me[u];if((Zt+2|0)>>>0>Me[Er+3]>>>0){gr=256;break}var Qt=Gt+Zt|0;oe=10272,Ae[Qt]=255&oe,oe>>=8,Ae[Qt+1]=255&oe;var qt=Se[u]+2|0;Se[u]=qt,gr=257;break}gr=256}while(0);256==gr&&Q(r,0|He.__str140,2);var $t=Se[Se[d]+8>>2];H(r,$t);var Jt=Me[cr],rf=0==(0|Jt);do{if(!rf){var af=r+8|0,ef=Me[af>>2];if(ef>>>0>=Me[Er+3]>>>0){gr=260;break}Se[af>>2]=ef+1|0,Ae[Jt+ef|0]=41,gr=261;break}gr=260}while(0);260==gr&&Y(r,41);var vf=Se[h];if(40!=(0|Se[vf>>2]))break r;var tf=Se[vf+4>>2];if(1!=(0|Se[tf+8>>2]))break r;if(Ae[Se[tf+4>>2]]<<24>>24!=62)break r;var ff=Me[cr],_f=0==(0|ff);do if(!_f){var sf=r+8|0,nf=Me[sf>>2];if(nf>>>0>=Me[Er+3]>>>0)break;Se[sf>>2]=nf+1|0,Ae[ff+nf|0]=41;break r}while(0);Y(r,41);break r}Z(r);break r}if(45==(0|Ir)){Z(r);break r}if(46==(0|Ir)){var of=a+4|0,k=(a+8|0)>>2,lf=Se[k],bf=47==(0|Se[lf>>2]);do if(bf){if(48!=(0|Se[Se[lf+8>>2]>>2]))break;var b=(r+8|0)>>2,kf=Me[b],l=(r+12|0)>>2;kf>>>0>>0?(Se[b]=kf+1|0,Ae[Or+kf|0]=40):Y(r,40);var uf=Se[Se[k]+4>>2];H(r,uf);var cf=Me[cr],hf=0==(0|cf);do{if(!hf){var df=Me[b];if((df+2|0)>>>0>Me[l]>>>0){gr=278;break}var wf=cf+df|0;oe=8233,Ae[wf]=255&oe,oe>>=8,Ae[wf+1]=255&oe;var pf=Se[b]+2|0;Se[b]=pf,gr=279;break}gr=278}while(0);278==gr&&Q(r,0|He.__str139,2);var Ef=Se[of>>2];ir(r,Ef);var Af=Me[cr],gf=0==(0|Af);do{if(!gf){var yf=Me[b];if((yf+2|0)>>>0>Me[l]>>>0){gr=282;break}var mf=Af+yf|0;oe=10272,Ae[mf]=255&oe,oe>>=8,Ae[mf+1]=255&oe;var Sf=Se[b]+2|0;Se[b]=Sf,gr=283;break}gr=282}while(0);282==gr&&Q(r,0|He.__str140,2);var Mf=Se[Se[Se[k]+8>>2]+4>>2];H(r,Mf);var Cf=Me[cr],Rf=0==(0|Cf);do{if(!Rf){var Tf=Me[b];if((Tf+5|0)>>>0>Me[l]>>>0){gr=286;break}var Of=Cf+Tf|0;Ae[Of]=Ae[0|He.__str141],Ae[Of+1]=Ae[(0|He.__str141)+1],Ae[Of+2]=Ae[(0|He.__str141)+2],Ae[Of+3]=Ae[(0|He.__str141)+3],Ae[Of+4]=Ae[(0|He.__str141)+4];var Nf=Se[b]+5|0;Se[b]=Nf,gr=287;break}gr=286}while(0);286==gr&&Q(r,0|He.__str141,5);var If=Se[Se[Se[k]+8>>2]+8>>2];H(r,If);var Pf=Me[cr],Df=0==(0|Pf);do if(!Df){var Lf=Me[b];if(Lf>>>0>=Me[l]>>>0)break;Se[b]=Lf+1|0,Ae[Pf+Lf|0]=41;break r}while(0);Y(r,41);break r}while(0);Z(r);break r}if(47==(0|Ir)||48==(0|Ir)){Z(r);break r}if(49==(0|Ir)||50==(0|Ir)){var Ff=a+4|0,Xf=Se[Ff>>2],jf=33==(0|Se[Xf>>2]);do{if(jf){var Uf=Me[Se[Xf+4>>2]+16>>2];if(1==(0|Uf)||2==(0|Uf)||3==(0|Uf)||4==(0|Uf)||5==(0|Uf)||6==(0|Uf)){var xf=a+8|0;if(0!=(0|Se[Se[xf>>2]>>2])){var zf=Uf;break}if(50==(0|Ir)){var Vf=r+8|0,Bf=Me[Vf>>2];Bf>>>0>>0?(Se[Vf>>2]=Bf+1|0,Ae[Or+Bf|0]=45):Y(r,45)}var Hf=Se[xf>>2];if(H(r,Hf),2==(0|Uf)){var Kf=Me[cr],Yf=0==(0|Kf);do if(!Yf){var Gf=r+8|0,Wf=Me[Gf>>2];if(Wf>>>0>=Me[Er+3]>>>0)break;Se[Gf>>2]=Wf+1|0,Ae[Kf+Wf|0]=117;break r}while(0);Y(r,117);break r}if(3==(0|Uf)){var Zf=Me[cr],Qf=0==(0|Zf);do if(!Qf){var qf=r+8|0,$f=Me[qf>>2];if($f>>>0>=Me[Er+3]>>>0)break;Se[qf>>2]=$f+1|0,Ae[Zf+$f|0]=108;break r}while(0);Y(r,108);break r}if(4==(0|Uf)){var Jf=Me[cr],r_=0==(0|Jf);do if(!r_){var o=(r+8|0)>>2,a_=Me[o];if((a_+2|0)>>>0>Me[Er+3]>>>0)break;var e_=Jf+a_|0;oe=27765,Ae[e_]=255&oe,oe>>=8,Ae[e_+1]=255&oe;var i_=Se[o]+2|0;Se[o]=i_;break r}while(0);Q(r,0|He.__str142,2);break r}if(5==(0|Uf)){var v_=Me[cr],t_=0==(0|v_);do if(!t_){var n=(r+8|0)>>2,f_=Me[n];if((f_+2|0)>>>0>Me[Er+3]>>>0)break;var __=v_+f_|0;oe=27756,Ae[__]=255&oe,oe>>=8,Ae[__+1]=255&oe;var s_=Se[n]+2|0;Se[n]=s_;break r}while(0);Q(r,0|He.__str143,2);break r}if(6==(0|Uf)){var n_=Me[cr],o_=0==(0|n_);do if(!o_){var s=(r+8|0)>>2,l_=Me[s];if((l_+3|0)>>>0>Me[Er+3]>>>0)break;var b_=n_+l_|0;Ae[b_]=Ae[0|He.__str144],Ae[b_+1]=Ae[(0|He.__str144)+1],Ae[b_+2]=Ae[(0|He.__str144)+2];var k_=Se[s]+3|0;Se[s]=k_;break r}while(0);Q(r,0|He.__str144,3);break r}break r}if(7==(0|Uf)){var _=Se[pr+2]>>2;if(0!=(0|Se[_])){var zf=7;break}if(!(1==(0|Se[_+2])&49==(0|Ir))){var zf=Uf;break}var u_=Ae[Se[_+1]]<<24>>24;if(48==(0|u_)){var f=(r+8|0)>>2,c_=Me[f];if((c_+5|0)>>>0>Me[Er+3]>>>0){Q(r,0|He.__str145,5);break r}var h_=Or+c_|0;Ae[h_]=Ae[0|He.__str145],Ae[h_+1]=Ae[(0|He.__str145)+1],Ae[h_+2]=Ae[(0|He.__str145)+2],Ae[h_+3]=Ae[(0|He.__str145)+3],Ae[h_+4]=Ae[(0|He.__str145)+4];var d_=Se[f]+5|0;Se[f]=d_;break r}if(49==(0|u_)){var t=(r+8|0)>>2,w_=Me[t];if((w_+4|0)>>>0>Me[Er+3]>>>0){Q(r,0|He.__str146,4);break r}var p_=Or+w_|0;oe=1702195828,Ae[p_]=255&oe,oe>>=8,Ae[p_+1]=255&oe,oe>>=8,Ae[p_+2]=255&oe,oe>>=8,Ae[p_+3]=255&oe;var E_=Se[t]+4|0;Se[t]=E_;break r}var zf=Uf;break}var zf=Uf;break}var zf=0}while(0);var zf,v=(r+8|0)>>2,A_=Me[v],i=(r+12|0)>>2;A_>>>0>>0?(Se[v]=A_+1|0,Ae[Or+A_|0]=40):Y(r,40);var g_=Se[Ff>>2];H(r,g_);var y_=Me[cr],m_=0==(0|y_);do{if(!m_){var S_=Me[v];if(S_>>>0>=Me[i]>>>0){gr=335;break}Se[v]=S_+1|0,Ae[y_+S_|0]=41,gr=336;break}gr=335}while(0);335==gr&&Y(r,41);var M_=50==(0|Se[Nr>>2]);e:do if(M_){var C_=Me[cr],R_=0==(0|C_);do if(!R_){var T_=Me[v];if(T_>>>0>=Me[i]>>>0)break;Se[v]=T_+1|0,Ae[C_+T_|0]=45;break e}while(0);Y(r,45)}while(0);if(8==(0|zf)){var O_=Me[cr],N_=0==(0|O_);do{if(!N_){var I_=Me[v];if(I_>>>0>=Me[i]>>>0){gr=345;break}Se[v]=I_+1|0,Ae[O_+I_|0]=91,gr=346;break}gr=345}while(0);345==gr&&Y(r,91);var P_=Se[pr+2];H(r,P_);var D_=Me[cr],L_=0==(0|D_);do if(!L_){var F_=Me[v];if(F_>>>0>=Me[i]>>>0)break;Se[v]=F_+1|0,Ae[D_+F_|0]=93;break r}while(0);Y(r,93);break r}var X_=Se[pr+2];H(r,X_);break r}Z(r);break r}}while(0);var e=(r+20|0)>>2,j_=Se[e],U_=0|Sr;Se[U_>>2]=j_,Se[e]=Sr,Se[Sr+4>>2]=a;var x_=Sr+8|0;Se[x_>>2]=0;var z_=Se[Er+4];Se[Sr+12>>2]=z_;var V_=Se[pr+1];H(r,V_),0==(0|Se[x_>>2])&&$(r,a);var B_=Se[U_>>2];Se[e]=B_}while(0);Oe=Ar}function K(r,a,e,i){var v=i>>2;Se[v]=r,Se[v+1]=r+e|0,Se[v+2]=a,Se[v+3]=r,Se[v+6]=e<<1,Se[v+5]=0,Se[v+9]=e,Se[v+8]=0,Se[v+10]=0,Se[v+11]=0,Se[v+12]=0}function Y(r,a){var e,i=r+4|0,v=Me[i>>2],t=0==(0|v);do if(!t){var e=(r+8|0)>>2,f=Me[e];if(f>>>0>2]>>>0)var _=v,s=f;else{tr(r,1);var n=Me[i>>2];if(0==(0|n))break;var _=n,s=Se[e]}var s,_;Ae[_+s|0]=255&a;var o=Se[e]+1|0;Se[e]=o}while(0)}function G(r,a,e,i){var v,t=i>>2,f=Oe;Oe+=4;var _=f,v=_>>2,s=0==(0|r);do if(s){if(0==(0|i)){var n=0;break}Se[t]=-3;var n=0}else{var o=0==(0|e);if(0!=(0|a)&o){if(0==(0|i)){var n=0;break}Se[t]=-3;var n=0}else{var l=W(r,_);if(0==(0|l)){if(0==(0|i)){var n=0;break}if(1==(0|Se[v])){Se[t]=-1;var n=0}else{Se[t]=-2;var n=0}}else{var b=0==(0|a);do if(b){if(o){var k=l;break}var u=Se[v];Se[e>>2]=u;var k=l}else{var c=Ca(l);if(c>>>0>2]>>>0){Ra(a,l);va(l);var k=a}else{va(a);var h=Se[v];Se[e>>2]=h;var k=l}}while(0);var k;if(0==(0|i)){var n=k;break}Se[t]=0;var n=k}}}while(0);var n;return Oe=f,n}function W(r,a){var e,i=Oe;Oe+=52;var v,t=i,e=t>>2;Se[a>>2]=0;var f=Ca(r),_=Ae[r]<<24>>24==95;do{if(_){if(Ae[r+1|0]<<24>>24==90){var s=0;v=13;break}v=3;break}v=3}while(0);do if(3==v){var n=Na(r,0|He.__str117,8);if(0!=(0|n)){var s=1;v=13;break}var o=Ae[r+8|0];if(o<<24>>24!=46&&o<<24>>24!=95&&o<<24>>24!=36){var s=1;v=13;break}var l=r+9|0,b=Ae[l];if(b<<24>>24!=68&&b<<24>>24!=73){\nvar s=1;v=13;break}if(Ae[r+10|0]<<24>>24!=95){var s=1;v=13;break}var k=f+29|0,u=Jr(k);if(0==(0|u)){Se[a>>2]=1;var c=0;v=19;break}Ae[l]<<24>>24==73?Pa(u,0|He.__str118,30,1):Pa(u,0|He.__str119,29,1);var h=r+11|0,c=(Ia(u,h),u);v=19;break}while(0);if(13==v){var s;K(r,17,f,t);var d=Se[e+6],w=Ta(),p=Oe;Oe+=12*d,Oe=Oe+3>>2<<2;var E=Oe;if(Oe+=4*Se[e+9],Oe=Oe+3>>2<<2,Se[e+4]=p,Se[e+7]=E,s)var A=N(t),g=A;else var y=T(t,1),g=y;var g,m=Ae[Se[e+3]]<<24>>24==0?g:0,S=Se[e+12]+f+10*Se[e+10]|0;if(0==(0|m))var M=0;else var C=S/8+S|0,R=B(17,m,C,a),M=R;var M;Oa(w);var c=M}var c;return Oe=i,c}function Z(r){var a=r+4|0,e=Se[a>>2];va(e),Se[a>>2]=0}function Q(r,a,e){var i,v=r+4|0,t=Me[v>>2],f=0==(0|t);do if(!f){var i=(r+8|0)>>2,_=Me[i];if((_+e|0)>>>0>Me[r+12>>2]>>>0){tr(r,e);var s=Me[v>>2];if(0==(0|s))break;var n=s,o=Se[i]}else var n=t,o=_;var o,n;Pa(n+o|0,a,e,1);var l=Se[i]+e|0;Se[i]=l}while(0)}function q(r,a,e){var i,v,t=a+e|0,f=(0|e)>0;r:do if(f)for(var _=t,s=r+4|0,i=(r+8|0)>>2,n=r+12|0,o=a;;){var o,l=(_-o|0)>3;a:do{if(l){if(Ae[o]<<24>>24!=95){v=21;break}if(Ae[o+1|0]<<24>>24!=95){v=21;break}if(Ae[o+2|0]<<24>>24!=85){v=21;break}for(var b=o+3|0,k=0;;){var k,b;if(b>>>0>=t>>>0){v=21;break a}var u=ge[b],c=u<<24>>24;if((u-48&255&255)<10)var h=c-48|0;else if((u-65&255&255)<6)var h=c-55|0;else{if((u-97&255&255)>=6)break;var h=c-87|0}var h,b=b+1|0,k=(k<<4)+h|0}if(!(u<<24>>24==95&k>>>0<256)){v=21;break}var d=Me[s>>2],w=0==(0|d);do if(!w){var p=Me[i];if(p>>>0>=Me[n>>2]>>>0)break;Se[i]=p+1|0,Ae[d+p|0]=255&k;var E=b;v=25;break a}while(0);Y(r,k);var E=b;v=25;break}v=21}while(0);a:do if(21==v){var A=Me[s>>2],g=0==(0|A);do if(!g){var y=Me[i];if(y>>>0>=Me[n>>2]>>>0)break;var m=Ae[o];Se[i]=y+1|0,Ae[A+y|0]=m;var E=o;break a}while(0);var S=Ae[o]<<24>>24;Y(r,S);var E=o}while(0);var E,M=E+1|0;if(M>>>0>=t>>>0)break r;var o=M}while(0)}function $(r,a){var e,i,v,t,f,_,s,n=r>>2,o=Se[a>>2];r:do if(22==(0|o)||25==(0|o)){var l=Me[n+1],b=0==(0|l);do if(!b){var _=(r+8|0)>>2,k=Me[_];if((k+9|0)>>>0>Me[n+3]>>>0)break;for(var u=l+k|0,c=0|He.__str147,h=u,d=c+9;c>2,A=Me[f];if((A+9|0)>>>0>Me[n+3]>>>0)break;for(var g=p+A|0,c=0|He.__str148,h=g,d=c+9;c>2,M=Me[t];if((M+6|0)>>>0>Me[n+3]>>>0)break;var C=m+M|0;Ae[C]=Ae[0|He.__str149],Ae[C+1]=Ae[(0|He.__str149)+1],Ae[C+2]=Ae[(0|He.__str149)+2],Ae[C+3]=Ae[(0|He.__str149)+3],Ae[C+4]=Ae[(0|He.__str149)+4],Ae[C+5]=Ae[(0|He.__str149)+5];var R=Se[t]+6|0;Se[t]=R;break r}while(0);Q(r,0|He.__str149,6)}else if(28==(0|o)){var T=Me[n+1],O=0==(0|T);do{if(!O){var N=r+8|0,I=Me[N>>2];if(I>>>0>=Me[n+3]>>>0){s=17;break}Se[N>>2]=I+1|0,Ae[T+I|0]=32,s=18;break}s=17}while(0);17==s&&Y(r,32);var P=Se[a+8>>2];H(r,P)}else if(29==(0|o)){if(0!=(4&Se[n]|0))break;var D=Me[n+1],L=0==(0|D);do if(!L){var F=r+8|0,X=Me[F>>2];if(X>>>0>=Me[n+3]>>>0)break;Se[F>>2]=X+1|0,Ae[D+X|0]=42;break r}while(0);Y(r,42)}else if(30==(0|o)){var j=Me[n+1],U=0==(0|j);do if(!U){var x=r+8|0,z=Me[x>>2];if(z>>>0>=Me[n+3]>>>0)break;Se[x>>2]=z+1|0,Ae[j+z|0]=38;break r}while(0);Y(r,38)}else if(31==(0|o)){var V=Me[n+1],B=0==(0|V);do if(!B){var v=(r+8|0)>>2,K=Me[v];if((K+8|0)>>>0>Me[n+3]>>>0)break;var G=V+K|0,W=0|G;oe=1886220131,Ae[W]=255&oe,oe>>=8,Ae[W+1]=255&oe,oe>>=8,Ae[W+2]=255&oe,oe>>=8,Ae[W+3]=255&oe;var Z=G+4|0;oe=544761196,Ae[Z]=255&oe,oe>>=8,Ae[Z+1]=255&oe,oe>>=8,Ae[Z+2]=255&oe,oe>>=8,Ae[Z+3]=255&oe;var q=Se[v]+8|0;Se[v]=q;break r}while(0);Q(r,0|He.__str150,8)}else if(32==(0|o)){var $=Me[n+1],J=0==(0|$);do if(!J){var i=(r+8|0)>>2,rr=Me[i];if((rr+10|0)>>>0>Me[n+3]>>>0)break;for(var ar=$+rr|0,c=0|He.__str151,h=ar,d=c+10;c>2],tr=0==(0|vr);do{if(!tr){var fr=r+8|0,_r=Me[fr>>2];if(0!=(0|_r)&&Ae[vr+(_r-1)|0]<<24>>24==40){s=42;break}if(_r>>>0>=Me[n+3]>>>0){s=41;break}Se[fr>>2]=_r+1|0,Ae[vr+_r|0]=32,s=42;break}s=41}while(0);41==s&&Y(r,32);var sr=Se[a+4>>2];H(r,sr);var nr=Me[ir>>2],or=0==(0|nr);do if(!or){var e=(r+8|0)>>2,lr=Me[e];if((lr+3|0)>>>0>Me[n+3]>>>0)break;var br=nr+lr|0;Ae[br]=Ae[0|He.__str135],Ae[br+1]=Ae[(0|He.__str135)+1],Ae[br+2]=Ae[(0|He.__str135)+2];var kr=Se[e]+3|0;Se[e]=kr;break r}while(0);Q(r,0|He.__str135,3)}else if(3==(0|o)){var ur=Se[a+4>>2];H(r,ur)}else H(r,a);while(0)}function J(r){var a=r+20|0,e=Se[a>>2];if((0|e)<(0|Se[r+24>>2])){var i=Se[r+16>>2]+12*e|0,v=e+1|0;Se[a>>2]=v;var t=i}else var t=0;var t;return t}function rr(r,a,e){var i,v,t,f,_=r>>2,s=e,t=s>>2,n=0;r:for(;;){var n,s,o=0==(0|s);do if(!o){if(0!=(0|Se[t+2]))break;var l=Se[Se[t+1]>>2];if(29==(0|l)||30==(0|l)){f=9;break r}if(22==(0|l)||23==(0|l)||24==(0|l)||28==(0|l)||31==(0|l)||32==(0|l)||37==(0|l)){var b=Se[_+1];f=12;break r}var s=Se[t],t=s>>2,n=1;continue r}while(0);if(0!=(0|Se[a+4>>2])&0==(0|n)){f=9;break}var k=0,u=r+4|0,v=u>>2;f=22;break}do if(9==f){var c=Se[_+1];if(0==(0|c)){f=17;break}var h=Se[_+2];if(0==(0|h)){var d=c;f=13;break}var w=Ae[c+(h-1)|0];if(w<<24>>24==40||w<<24>>24==42){f=18;break}var b=c;f=12;break}while(0);do if(12==f){var b;if(0==(0|b)){f=17;break}var d=b;f=13;break}while(0);do if(13==f){var d,p=r+8|0,E=Me[p>>2];if(0!=(0|E)&&Ae[d+(E-1)|0]<<24>>24==32){f=18;break}if(E>>>0>=Me[_+3]>>>0){f=17;break}Se[p>>2]=E+1|0,Ae[d+E|0]=32,f=18;break}while(0);do if(17==f){Y(r,32),f=18;break}while(0);r:do if(18==f){var A=r+4|0,g=Me[A>>2],y=0==(0|g);do if(!y){var m=r+8|0,S=Me[m>>2];if(S>>>0>=Me[_+3]>>>0)break;Se[m>>2]=S+1|0,Ae[g+S|0]=40;var k=1,u=A,v=u>>2;break r}while(0);Y(r,40);var k=1,u=A,v=u>>2}while(0);var u,k,i=(r+20|0)>>2,M=Se[i];Se[i]=0,vr(r,e,0);r:do if(k){var C=Me[v],R=0==(0|C);do if(!R){var T=r+8|0,O=Me[T>>2];if(O>>>0>=Me[_+3]>>>0)break;Se[T>>2]=O+1|0,Ae[C+O|0]=41;break r}while(0);Y(r,41)}while(0);var N=Me[v],I=0==(0|N);do{if(!I){var P=r+8|0,D=Me[P>>2];if(D>>>0>=Me[_+3]>>>0){f=30;break}Se[P>>2]=D+1|0,Ae[N+D|0]=40,f=31;break}f=30}while(0);30==f&&Y(r,40);var L=Se[a+8>>2];0!=(0|L)&&H(r,L);var F=Me[v],X=0==(0|F);do{if(!X){var j=r+8|0,U=Me[j>>2];if(U>>>0>=Me[_+3]>>>0){f=36;break}Se[j>>2]=U+1|0,Ae[F+U|0]=41,f=37;break}f=36}while(0);36==f&&Y(r,41),vr(r,e,1),Se[i]=M}function ar(r,a,e){var i,v,t,f=r>>2,_=0==(0|e);do{if(!_){var s=e,v=s>>2;r:for(;;){var s;if(0==(0|s)){var n=1;t=14;break}if(0==(0|Se[v+2])){var o=36==(0|Se[Se[v+1]>>2]),l=1&o^1;if(o){var n=l;t=14;break}var b=r+4|0,k=Me[b>>2],u=0==(0|k);do{if(!u){var i=(r+8|0)>>2,c=Me[i];if((c+2|0)>>>0>Me[f+3]>>>0){t=9;break}var h=k+c|0;oe=10272,Ae[h]=255&oe,oe>>=8,Ae[h+1]=255&oe;var d=Se[i]+2|0;Se[i]=d,vr(r,e,0),t=10;break}t=9}while(0);9==t&&(Q(r,0|He.__str140,2),vr(r,e,0));var w=Me[b>>2],p=0==(0|w);do if(!p){var E=r+8|0,A=Me[E>>2];if(A>>>0>=Me[f+3]>>>0)break;Se[E>>2]=A+1|0,Ae[w+A|0]=41;var g=l;t=15;break r}while(0);Y(r,41);var g=l;t=15;break}var s=Se[v],v=s>>2}if(14==t){var n;vr(r,e,0);var g=n}var g;if(0!=(0|g)){t=17;break}var y=r+4|0;t=21;break}t=17}while(0);r:do if(17==t){var m=r+4|0,S=Me[m>>2],M=0==(0|S);do if(!M){var C=r+8|0,R=Me[C>>2];if(R>>>0>=Me[f+3]>>>0)break;Se[C>>2]=R+1|0,Ae[S+R|0]=32;var y=m;break r}while(0);Y(r,32);var y=m}while(0);var y,T=Me[y>>2],O=0==(0|T);do{if(!O){var N=r+8|0,I=Me[N>>2];if(I>>>0>=Me[f+3]>>>0){t=24;break}Se[N>>2]=I+1|0,Ae[T+I|0]=91,t=25;break}t=24}while(0);24==t&&Y(r,91);var P=Se[a+4>>2];0!=(0|P)&&H(r,P);var D=Me[y>>2],L=0==(0|D);do{if(!L){var F=r+8|0,X=Me[F>>2];if(X>>>0>=Me[f+3]>>>0){t=30;break}Se[F>>2]=X+1|0,Ae[D+X|0]=93,t=31;break}t=30}while(0);30==t&&Y(r,93)}function er(r,a){var e,i,v,t,f,_,s=Oe;Oe+=8;var n,o=s,_=(a+4|0)>>2,l=Se[_];if(4==(0|Se[l>>2])){var f=(r+20|0)>>2,b=Se[f];Se[f]=0;var t=(r+16|0)>>2,k=Se[t],u=0|o;Se[u>>2]=k,Se[t]=o;var c=Se[_];Se[o+4>>2]=c;var h=Se[c+4>>2];H(r,h);var d=Se[u>>2];Se[t]=d;var v=(r+4|0)>>2,w=Me[v],p=0==(0|w);do{if(!p){var i=(r+8|0)>>2,E=Me[i],A=0==(0|E);do if(!A){if(Ae[w+(E-1)|0]<<24>>24!=60)break;E>>>0>2]>>>0?(Se[i]=E+1|0,Ae[w+E|0]=32):Y(r,32)}while(0);var g=Me[v];if(0==(0|g)){n=12;break}var y=Me[i];if(y>>>0>=Me[r+12>>2]>>>0){n=12;break}Se[i]=y+1|0,Ae[g+y|0]=60,n=13;break}n=12}while(0);12==n&&Y(r,60);var m=Se[Se[_]+8>>2];H(r,m);var S=Me[v],M=0==(0|S);do{if(!M){var e=(r+8|0)>>2,C=Me[e],R=0==(0|C);do if(!R){if(Ae[S+(C-1)|0]<<24>>24!=62)break;C>>>0>2]>>>0?(Se[e]=C+1|0,Ae[S+C|0]=32):Y(r,32)}while(0);var T=Me[v];if(0==(0|T)){n=22;break}var O=Me[e];if(O>>>0>=Me[r+12>>2]>>>0){n=22;break}Se[e]=O+1|0,Ae[T+O|0]=62,n=23;break}n=22}while(0);22==n&&Y(r,62),Se[f]=b}else H(r,l);Oe=s}function ir(r,a){var e,i=40==(0|Se[a>>2]);r:do if(i){var v=Me[r+4>>2],t=0==(0|v);do{if(!t){var e=(r+8|0)>>2,f=Me[e],_=a+4|0,s=Me[_>>2],n=Me[s+8>>2];if((n+f|0)>>>0>Me[r+12>>2]>>>0){var o=s,l=n;break}var b=v+f|0,k=Se[s+4>>2];Pa(b,k,n,1);var u=Se[e]+Se[Se[_>>2]+8>>2]|0;Se[e]=u;break r}var c=Me[a+4>>2],o=c,l=Se[c+8>>2]}while(0);var l,o,h=Se[o+4>>2];Q(r,h,l)}else H(r,a);while(0)}function vr(r,a,e){var i,v,t,f,_,f=(r+4|0)>>2,s=0==(0|e),t=(r+16|0)>>2;r:do if(s)for(var n=a;;){var n;if(0==(0|n)){_=29;break r}if(0==(0|Se[f])){_=29;break r}var o=n+8|0,l=0==(0|Se[o>>2]);do if(l){var b=n+4|0;if((Se[Se[b>>2]>>2]-25|0)>>>0<3)break;Se[o>>2]=1;var k=Me[t],u=Se[n+12>>2];Se[t]=u;var c=Me[b>>2],h=Se[c>>2];if(35==(0|h)){var d=n,w=k,p=c;_=14;break r}if(36==(0|h)){var E=n,A=k,g=c;_=15;break r}if(2==(0|h)){var y=k,m=b;_=16;break r}$(r,c),Se[t]=k}while(0);var n=Se[n>>2]}else for(var S=a;;){var S;if(0==(0|S)){_=29;break r}if(0==(0|Se[f])){_=29;break r}var M=S+8|0;if(0==(0|Se[M>>2])){Se[M>>2]=1;var C=Me[t],R=Se[S+12>>2];Se[t]=R;var T=S+4|0,O=Me[T>>2],N=Se[O>>2];if(35==(0|N)){var d=S,w=C,p=O;_=14;break r}if(36==(0|N)){var E=S,A=C,g=O;_=15;break r}if(2==(0|N)){var y=C,m=T;_=16;break r}$(r,O),Se[t]=C}var S=Se[S>>2]}while(0);if(14==_){var p,w,d,I=Se[d>>2];rr(r,p,I),Se[t]=w}else if(15==_){var g,A,E,P=Se[E>>2];ar(r,g,P),Se[t]=A}else if(16==_){var m,y,v=(r+20|0)>>2,D=Se[v];Se[v]=0;var L=Se[Se[m>>2]+4>>2];H(r,L),Se[v]=D;var F=0==(4&Se[r>>2]|0),X=Me[f],j=0!=(0|X);r:do if(F){do if(j){var i=(r+8|0)>>2,U=Me[i];if((U+2|0)>>>0>Me[r+12>>2]>>>0)break;var x=X+U|0;oe=14906,Ae[x]=255&oe,oe>>=8,Ae[x+1]=255&oe;var z=Se[i]+2|0;Se[i]=z;break r}while(0);Q(r,0|He.__str120,2)}else{do if(j){var V=r+8|0,B=Me[V>>2];if(B>>>0>=Me[r+12>>2]>>>0)break;Se[V>>2]=B+1|0,Ae[X+B|0]=46;break r}while(0);Y(r,46)}while(0);var K=Me[Se[m>>2]+8>>2],G=(Se[K>>2]-25|0)>>>0<3;r:do if(G)for(var W=K;;){var W,Z=Me[W+4>>2];if((Se[Z>>2]-25|0)>>>0>=3){var q=Z;break r}var W=Z}else var q=K;while(0);var q;H(r,q),Se[t]=y}}function tr(r,a){var e,e=(r+4|0)>>2,i=Se[e],v=0==(0|i);r:do if(!v){for(var t=Se[r+8>>2]+a|0,f=r+12|0,_=Se[f>>2],s=i;;){var s,_;if(t>>>0<=_>>>0)break r;var n=_<<1,o=fa(s,n);if(0==(0|o))break;Se[e]=o,Se[f>>2]=n;var _=n,s=o}var l=Se[e];va(l),Se[e]=0,Se[r+24>>2]=1}while(0)}function fr(r,a,e){var i,v=J(r),i=v>>2;return 0!=(0|v)&&(Se[i]=21,Se[i+1]=a,Se[i+2]=e),v}function _r(r){var a,a=(r+12|0)>>2,e=Se[a],i=Ae[e]<<24>>24;if(88==(0|i)){var v=e+1|0;Se[a]=v;var t=nr(r),f=Se[a],_=f+1|0;Se[a]=_;var s=Ae[f]<<24>>24==69?t:0,n=s}else if(76==(0|i))var o=or(r),n=o;else var l=N(r),n=l;var n;return n}function sr(r){var a,a=(r+12|0)>>2,e=Se[a],i=Ae[e];if(i<<24>>24==110){var v=e+1|0;Se[a]=v;var t=1,f=Ae[v],_=v}else var t=0,f=i,_=e;var _,f,t,s=(f-48&255&255)<10;r:do if(s)for(var n=f,o=0,l=_;;){var l,o,n,b=(n<<24>>24)-48+10*o|0,k=l+1|0;Se[a]=k;var u=ge[k];if((u-48&255&255)>=10){var c=b;break r}var n=u,o=b,l=k}else var c=0;while(0);var c,h=0==(0|t)?c:0|-c;return h}function nr(r){var a,e,a=(r+12|0)>>2,i=Se[a],v=Ae[i];do{if(v<<24>>24==76){var t=or(r),f=t;e=21;break}if(v<<24>>24==84){var _=x(r),f=_;e=21;break}if(v<<24>>24==115){if(Ae[i+1|0]<<24>>24!=114){e=8;break}var s=i+2|0;Se[a]=s;var n=N(r),o=br(r);if(Ae[Se[a]]<<24>>24==73){var l=z(r),b=D(r,4,o,l),k=D(r,1,n,b),f=k;e=21;break}var u=D(r,1,n,o),f=u;e=21;break}e=8}while(0);r:do if(8==e){var c=kr(r);if(0==(0|c)){var f=0;break}var h=0|c,d=Se[h>>2],w=40==(0|d);do{if(w){var p=c+4|0,E=r+48|0,A=Se[Se[p>>2]+8>>2]-2+Se[E>>2]|0;Se[E>>2]=A;var g=Se[h>>2];if(40!=(0|g)){var y=g;e=13;break}var m=Se[p>>2],S=Se[m>>2],M=Da(S,0|He.__str90);if(0!=(0|M)){var C=m;e=15;break}var R=N(r),T=D(r,43,c,R),f=T;break r}var y=d;e=13}while(0);do if(13==e){var y;if(40==(0|y)){var C=Se[c+4>>2];e=15;break}if(41==(0|y)){var O=c+4|0;e=17;break}if(42==(0|y)){e=18;break}var f=0;break r}while(0);do if(15==e){var C,O=C+12|0;e=17;break}while(0);do if(17==e){var O,I=Se[O>>2];if(1==(0|I))break;if(2==(0|I)){var P=nr(r),L=nr(r),F=D(r,45,P,L),X=D(r,44,c,F);return X}if(3==(0|I)){var j=nr(r),U=nr(r),V=nr(r),B=D(r,48,U,V),H=D(r,47,j,B),K=D(r,46,c,H);return K}var f=0;break r}while(0);var Y=nr(r),G=D(r,43,c,Y);return G}while(0);var f;return f}function or(r){var a,a=(r+12|0)>>2,e=Se[a],i=e+1|0;Se[a]=i;var v=Ae[e]<<24>>24==76;r:do if(v){if(Ae[i]<<24>>24==95)var t=T(r,0),f=t;else{var _=N(r);if(0==(0|_)){var s=0;break}var n=33==(0|Se[_>>2]);do if(n){var o=Se[_+4>>2];if(0==(0|Se[o+16>>2]))break;var l=r+48|0,b=Se[l>>2]-Se[o+4>>2]|0;Se[l>>2]=b}while(0);var k=Se[a];if(Ae[k]<<24>>24==110){var u=k+1|0;Se[a]=u;var c=50,h=u}else var c=49,h=k;for(var h,c,d=h;;){var d,w=Ae[d];if(w<<24>>24==69)break;if(w<<24>>24==0){var s=0;break r}var p=d+1|0;Se[a]=p;var d=p}var E=lr(r,h,d-h|0),A=D(r,c,_,E),f=A}var f,g=Se[a],y=g+1|0;Se[a]=y;var m=Ae[g]<<24>>24==69?f:0,s=m}else var s=0;while(0);var s;return s}function lr(r,a,e){var i=J(r),v=m(i,a,e),t=0==(0|v)?0:i;return t}function br(r){var a=r+12|0,e=Me[a>>2],i=ge[e],v=(i-48&255&255)<10;do if(v)var t=L(r),f=t;else if((i-97&255&255)<26){var _=kr(r);if(0==(0|_)){var f=0;break}if(40!=(0|Se[_>>2])){var f=_;break}var s=r+48|0,n=Se[Se[_+4>>2]+8>>2]+Se[s>>2]+7|0;Se[s>>2]=n;var f=_}else if(i<<24>>24==67||i<<24>>24==68)var o=hr(r),f=o;else{if(i<<24>>24!=76){var f=0;break}Se[a>>2]=e+1|0;var l=L(r);if(0==(0|l)){var f=0;break}var b=dr(r),k=0==(0|b)?0:l,f=k}while(0);var f;return f}function kr(r){var a,e,a=(r+12|0)>>2,i=Se[a],v=i+1|0;Se[a]=v;var t=ge[i],f=i+2|0;Se[a]=f;var _=ge[v];do{if(t<<24>>24==118){if((_-48&255&255)>=10){var s=49,n=0;e=6;break}var o=(_<<24>>24)-48|0,l=L(r),b=ur(r,o,l),k=b;e=14;break}if(t<<24>>24==99){if(_<<24>>24!=118){var s=49,n=0;e=6;break}var u=N(r),c=D(r,42,u,0),k=c;e=14;break}var s=49,n=0;e=6}while(0);r:do if(6==e){for(;;){var n,s,h=(s-n)/2+n|0,d=(h<<4)+ri|0,w=Se[d>>2],p=Ae[w],E=t<<24>>24==p<<24>>24;if(E&&_<<24>>24==Ae[w+1|0]<<24>>24)break;var A=t<<24>>24>24;do if(A)var g=h,y=n;else{if(E&&_<<24>>24>24){var g=h,y=n;break}var g=s,y=h+1|0}while(0);var y,g;if((0|y)==(0|g)){var k=0;break r}var s=g,n=y}var m=cr(r,d),k=m}while(0);var k;return k}function ur(r,a,e){var i=J(r),v=S(i,a,e),t=0==(0|v)?0:i;return t}function cr(r,a){var e=J(r);return 0!=(0|e)&&(Se[e>>2]=40,Se[e+4>>2]=a),e}function hr(r){var a,e,i=Se[r+44>>2],e=i>>2,v=0==(0|i);do if(!v){var t=Se[e];if(0==(0|t)){var f=r+48|0,_=Se[f>>2]+Se[e+2]|0;Se[f>>2]=_}else{if(21!=(0|t))break;var s=r+48|0,n=Se[s>>2]+Se[e+2]|0;Se[s>>2]=n}}while(0);var a=(r+12|0)>>2,o=Se[a],l=o+1|0;Se[a]=l;var b=Ae[o]<<24>>24;do if(67==(0|b)){var k=o+2|0;Se[a]=k;var u=Ae[l]<<24>>24;if(49==(0|u))var c=1;else if(50==(0|u))var c=2;else{if(51!=(0|u)){var h=0;break}var c=3}var c,d=wr(r,c,i),h=d}else if(68==(0|b)){var w=o+2|0;Se[a]=w;var p=Ae[l]<<24>>24;if(48==(0|p))var E=1;else if(49==(0|p))var E=2;else{if(50!=(0|p)){var h=0;break}var E=3}var E,A=pr(r,E,i),h=A}else var h=0;while(0);var h;return h}function dr(r){var a=r+12|0,e=Se[a>>2];if(Ae[e]<<24>>24==95){var i=e+1|0;Se[a>>2]=i;var v=sr(r),t=v>>>31^1}else var t=1;var t;return t}function wr(r,a,e){var i=J(r),v=M(i,a,e),t=0==(0|v)?0:i;return t}function pr(r,a,e){var i=J(r),v=C(i,a,e),t=0==(0|v)?0:i;return t}function Er(r,a){var e=J(r);return 0!=(0|e)&&(Se[e>>2]=5,Se[e+4>>2]=a),e}function Ar(r){var a,a=(r+12|0)>>2,e=Se[a],i=Ae[e]<<24>>24;do if(78==(0|i))var v=gr(r),t=v;else if(90==(0|i))var f=yr(r),t=f;else if(76==(0|i))var _=br(r),t=_;else if(83==(0|i)){if(Ae[e+1|0]<<24>>24==116){var s=e+2|0;Se[a]=s;var n=lr(r,0|He.__str152,3),o=br(r),l=D(r,1,n,o),b=r+48|0,k=Se[b>>2]+3|0;Se[b>>2]=k;var u=0,c=l}else var h=V(r,0),u=1,c=h;var c,u;if(Ae[Se[a]]<<24>>24!=73){var t=c;break}if(0==(0|u)){var d=R(r,c);if(0==(0|d)){var t=0;break}}var w=z(r),p=D(r,4,c,w),t=p}else{var E=br(r);if(Ae[Se[a]]<<24>>24!=73){var t=E;break}var A=R(r,E);if(0==(0|A)){var t=0;break}var g=z(r),y=D(r,4,E,g),t=y}while(0);var t;return t}function gr(r){var a,e=Oe;Oe+=4;var i=e,a=(r+12|0)>>2,v=Se[a],t=v+1|0;Se[a]=t;var f=Ae[v]<<24>>24==78;do if(f){var _=I(r,i,1);if(0==(0|_)){var s=0;break}var n=mr(r);if(Se[_>>2]=n,0==(0|n)){var s=0;break}var o=Se[a],l=o+1|0;if(Se[a]=l,Ae[o]<<24>>24!=69){var s=0;break}var s=Se[i>>2]}else var s=0;while(0);var s;return Oe=e,s}function yr(r){var a,a=(r+12|0)>>2,e=Se[a],i=e+1|0;Se[a]=i;var v=Ae[e]<<24>>24==90;do if(v){var t=O(r,0),f=Se[a],_=f+1|0;if(Se[a]=_,Ae[f]<<24>>24!=69){var s=0;break}if(Ae[_]<<24>>24==115){var n=f+2|0;Se[a]=n;var o=dr(r);if(0==(0|o)){var s=0;break}var l=lr(r,0|He.__str168,14),b=D(r,2,t,l),s=b}else{var k=Ar(r),u=dr(r);if(0==(0|u)){var s=0;break}var c=D(r,2,t,k),s=c}}else var s=0;while(0);var s;return s}function mr(r){var a,e=r+12|0,i=0;r:for(;;){var i,v=ge[Se[e>>2]];if(v<<24>>24==0){var t=0;break}var f=(v-48&255&255)<10|(v-97&255&255)<26;do{if(!f){if(v<<24>>24==76||v<<24>>24==68||v<<24>>24==67){a=5;break}if(v<<24>>24==83){var _=V(r,1),s=_;a=10;break}if(v<<24>>24==73){if(0==(0|i)){var t=0;break r}var n=z(r),o=4,l=n;a=11;break}if(v<<24>>24==84){var b=x(r),s=b;a=10;break}if(v<<24>>24==69){var t=i;break r}var t=0;break r}a=5}while(0);do if(5==a){var k=br(r),s=k;a=10;break}while(0);do if(10==a){var s;if(0==(0|i)){var u=s;a=12;break}var o=1,l=s;a=11;break}while(0);if(11==a)var l,o,c=D(r,o,i,l),u=c;var u;if(v<<24>>24!=83)if(Ae[Se[e>>2]]<<24>>24!=69){var h=R(r,u);if(0==(0|h)){var t=0;break}var i=u}else var i=u;else var i=u}var t;return t}function Sr(r,a){var e,i,v=Oe;Oe+=4;var t=v,i=t>>2,e=(r+12|0)>>2,f=Se[e];if(Ae[f]<<24>>24==74){var _=f+1|0;Se[e]=_;var s=1}else var s=a;var s;Se[i]=0;var n=s,o=0,l=t;r:for(;;)for(var l,o,n,b=n,k=o;;){var k,b,u=Ae[Se[e]];if(u<<24>>24==0||u<<24>>24==69){var c=Se[i];if(0==(0|c)){var h=0;break r}var d=0==(0|Se[c+8>>2]);do if(d){var w=Se[c+4>>2];if(33!=(0|Se[w>>2])){var p=c;break}var E=Se[w+4>>2];if(9!=(0|Se[E+16>>2])){var p=c;break}var A=r+48|0,g=Se[A>>2]-Se[E+4>>2]|0;Se[A>>2]=g,Se[i]=0;var p=0}else var p=c;while(0);var p,y=D(r,35,k,p),h=y;break r}var m=N(r);if(0==(0|m)){var h=0;break r}if(0==(0|b)){var S=D(r,38,m,0);if(Se[l>>2]=S,0==(0|S)){var h=0;break r}var n=0,o=k,l=S+8|0;continue r}var b=0,k=m}var h;return Oe=v,h}function Mr(r){for(var a=r;;){var a;if(0==(0|a)){var e=0;break}var i=Se[a>>2];if(1!=(0|i)&&2!=(0|i)){if(6==(0|i)||7==(0|i)||42==(0|i)){var e=1;break}var e=0;break}var a=Se[a+8>>2]}var e;return e}function Cr(r){var a=r>>2;Se[a+3]=0,Se[a+2]=0,Se[a+1]=0,Se[a]=0,Se[a+4]=0}function Rr(r,a){var e,e=(r+12|0)>>2,i=Se[e],v=(Se[r+4>>2]-i|0)<(0|a);r:do if(v)var t=0;else{var f=i+a|0;Se[e]=f;var _=0==(4&Se[r+8>>2]|0);do if(!_){if(Ae[f]<<24>>24!=36)break;var s=a+(i+1)|0;Se[e]=s}while(0);var n=(0|a)>9;do if(n){var o=La(i,0|He.__str117,8);if(0!=(0|o))break;var l=Ae[i+8|0];if(l<<24>>24!=46&&l<<24>>24!=95&&l<<24>>24!=36)break;if(Ae[i+9|0]<<24>>24!=78)break;var b=r+48|0,k=22-a+Se[b>>2]|0;Se[b>>2]=k;var u=lr(r,0|He.__str169,21),t=u;break r}while(0);var c=lr(r,i,a),t=c}while(0);var t;return t}function Tr(r){var a,e,e=(r+48|0)>>2,i=Se[e],v=i+20|0;Se[e]=v;var a=(r+12|0)>>2,t=Se[a],f=t+1|0;Se[a]=f;var _=Ae[t];do if(_<<24>>24==84){var s=t+2|0;Se[a]=s;var n=Ae[f]<<24>>24;if(86==(0|n)){var o=i+15|0;Se[e]=o;var l=N(r),b=D(r,8,l,0),k=b}else if(84==(0|n)){var u=i+10|0;Se[e]=u;var c=N(r),h=D(r,9,c,0),k=h}else if(73==(0|n))var d=N(r),w=D(r,11,d,0),k=w;else if(83==(0|n))var p=N(r),E=D(r,12,p,0),k=E;else if(104==(0|n)){var A=Nr(r,104);if(0==(0|A)){var k=0;break}var g=O(r,0),y=D(r,14,g,0),k=y}else if(118==(0|n)){var m=Nr(r,118);if(0==(0|m)){var k=0;break}var S=O(r,0),M=D(r,15,S,0),k=M}else if(99==(0|n)){var C=Nr(r,0);if(0==(0|C)){var k=0;break}var R=Nr(r,0);if(0==(0|R)){var k=0;break}var T=O(r,0),I=D(r,16,T,0),k=I}else if(67==(0|n)){var P=N(r),L=sr(r);if((0|L)<0){var k=0;break}var F=Se[a],X=F+1|0;if(Se[a]=X,Ae[F]<<24>>24!=95){var k=0;break}var j=N(r),U=Se[e]+5|0;Se[e]=U;var x=D(r,10,j,P),k=x}else if(70==(0|n))var z=N(r),V=D(r,13,z,0),k=V;else{if(74!=(0|n)){var k=0;break}var B=N(r),H=D(r,17,B,0),k=H}}else if(_<<24>>24==71){var K=t+2|0;Se[a]=K;var Y=Ae[f]<<24>>24;if(86==(0|Y))var G=Ar(r),W=D(r,18,G,0),k=W;else if(82==(0|Y))var Z=Ar(r),Q=D(r,19,Z,0),k=Q;else{if(65!=(0|Y)){var k=0;break}var q=O(r,0),$=D(r,20,q,0),k=$}}else var k=0;while(0);var k;return k}function Or(r){for(var a,e=r,a=e>>2;;){var e;if(0==(0|e)){var i=0;break}var v=Se[a];if(4==(0|v)){var t=Se[a+1],f=Mr(t),i=0==(0|f)&1;break}if(25!=(0|v)&&26!=(0|v)&&27!=(0|v)){var i=0;break}var e=Se[a+1],a=e>>2}var i;return i}function Nr(r,a){var e;if(0==(0|a)){var i=r+12|0,v=Se[i>>2],t=v+1|0;Se[i>>2]=t;var f=Ae[v]<<24>>24}else var f=a;var f;do{if(104==(0|f)){var _=(sr(r),r+12|0);e=7;break}if(118==(0|f)){var s=(sr(r),r+12|0),n=Se[s>>2],o=n+1|0;if(Se[s>>2]=o,Ae[n]<<24>>24!=95){var l=0;e=8;break}var _=(sr(r),s);e=7;break}var l=0;e=8}while(0);if(7==e){var _,b=Se[_>>2],k=b+1|0;Se[_>>2]=k;var l=Ae[b]<<24>>24==95&1}var l;return l}function Ir(r){var a,e,i=r>>2,v=Oe;Oe+=56;var t,f=v,_=v+8,s=v+16,n=v+36,e=(0|r)>>2,o=Se[e],l=0==(8192&o|0);r:do{if(l){var a=(r+12|0)>>2,b=Se[a];if(Ae[b]<<24>>24!=63){var k=0;t=111;break}var u=b+1|0;Se[a]=u;var c=Ae[u];do if(c<<24>>24==63){if(Ae[b+2|0]<<24>>24==36){var h=b+3|0;if(Ae[h]<<24>>24!=63){var d=5;t=90;break}Se[a]=h;var w=6,p=h}else var w=0,p=u;var p,w,E=p+1|0;Se[a]=E;var A=Ae[E]<<24>>24;do if(48==(0|A)){var g=1;t=81}else{if(49==(0|A)){var g=2;t=81;break}if(50!=(0|A)){if(51==(0|A)){var y=0|He.__str2172,m=E;t=82;break}if(52==(0|A)){var y=0|He.__str3173,m=E;t=82;break}if(53==(0|A)){var y=0|He.__str4174,m=E;t=82;break}if(54==(0|A)){var y=0|He.__str5175,m=E;t=82;break}if(55==(0|A)){var y=0|He.__str6176,m=E;t=82;break}if(56==(0|A)){var y=0|He.__str7177,m=E;t=82;break}if(57==(0|A)){var y=0|He.__str8178,m=E;t=82;break}if(65==(0|A)){var y=0|He.__str9179,m=E;t=82;break}if(66==(0|A)){Se[a]=p+2|0;var S=0|He.__str10180,M=3;t=88;break}if(67==(0|A)){var y=0|He.__str11181,m=E;t=82;break}if(68==(0|A)){var y=0|He.__str12182,m=E;t=82;break}if(69==(0|A)){var y=0|He.__str13183,m=E;t=82;break}if(70==(0|A)){var y=0|He.__str14184,m=E;t=82;break}if(71==(0|A)){var y=0|He.__str15185,m=E;t=82;break}if(72==(0|A)){var y=0|He.__str16186,m=E;t=82;break}if(73==(0|A)){var y=0|He.__str17187,m=E;t=82;break}if(74==(0|A)){var y=0|He.__str18188,m=E;t=82;break}if(75==(0|A)){var y=0|He.__str19189,m=E;t=82;break}if(76==(0|A)){var y=0|He.__str20190,m=E;t=82;break}if(77==(0|A)){var y=0|He.__str21191,m=E;t=82;break}if(78==(0|A)){var y=0|He.__str22192,m=E;t=82;break}if(79==(0|A)){var y=0|He.__str23193,m=E;t=82;break}if(80==(0|A)){var y=0|He.__str24194,m=E;t=82;break}if(81==(0|A)){var y=0|He.__str25195,m=E;t=82;break}if(82==(0|A)){var y=0|He.__str26196,m=E;t=82;break}if(83==(0|A)){var y=0|He.__str27197,m=E;t=82;break}if(84==(0|A)){var y=0|He.__str28198,m=E;t=82;break}if(85==(0|A)){var y=0|He.__str29199,m=E;t=82;break}if(86==(0|A)){var y=0|He.__str30200,m=E;t=82;break}if(87==(0|A)){var y=0|He.__str31201,m=E;t=82;break}if(88==(0|A)){var y=0|He.__str32202,m=E;t=82;break}if(89==(0|A)){var y=0|He.__str33203,m=E;t=82;break}if(90==(0|A)){var y=0|He.__str34204,m=E;t=82;break}if(95==(0|A)){var C=p+2|0;Se[a]=C;var R=Ae[C]<<24>>24;if(48==(0|R)){var y=0|He.__str35205,m=C;t=82;break}if(49==(0|R)){var y=0|He.__str36206,m=C;t=82;break}if(50==(0|R)){var y=0|He.__str37207,m=C;t=82;break}if(51==(0|R)){var y=0|He.__str38208,m=C;t=82;break}if(52==(0|R)){var y=0|He.__str39209,m=C;t=82;break}if(53==(0|R)){var y=0|He.__str40210,m=C;t=82;break}if(54==(0|R)){var y=0|He.__str41211,m=C;t=82;break}if(55==(0|R)){var y=0|He.__str42212,m=C;t=82;break}if(56==(0|R)){var y=0|He.__str43213,m=C;t=82;break}if(57==(0|R)){var y=0|He.__str44214,m=C;t=82;break}if(65==(0|R)){var y=0|He.__str45215,m=C;t=82;break}if(66==(0|R)){var y=0|He.__str46216,m=C;t=82;break}if(67==(0|R)){Se[a]=p+3|0;var T=0|He.__str47217;t=84;break}if(68==(0|R)){var y=0|He.__str48218,m=C;t=82;break}if(69==(0|R)){var y=0|He.__str49219,m=C;t=82;break}if(70==(0|R)){var y=0|He.__str50220,m=C;t=82;break}if(71==(0|R)){var y=0|He.__str51221,m=C;t=82;break}if(72==(0|R)){var y=0|He.__str52222,m=C;t=82;break}if(73==(0|R)){var y=0|He.__str53223,m=C;t=82;break}if(74==(0|R)){var y=0|He.__str54224,m=C;t=82;break}if(75==(0|R)){var y=0|He.__str55225,m=C;t=82;break}if(76==(0|R)){var y=0|He.__str56226,m=C;t=82;break}if(77==(0|R)){var y=0|He.__str57227,m=C;t=82;break}if(78==(0|R)){var y=0|He.__str58228,m=C;t=82;break}if(79==(0|R)){var y=0|He.__str59229,m=C;t=82;break}if(82==(0|R)){var O=4|o;Se[e]=O;var N=p+3|0;Se[a]=N;var I=Ae[N]<<24>>24;if(48==(0|I)){Se[a]=p+4|0,Cr(s);var P=(Pr(r,_,s,0),Se[_>>2]),D=Se[_+4>>2],L=Dr(r,0|He.__str60230,(ne=Oe,Oe+=8,Se[ne>>2]=P,Se[ne+4>>2]=D,ne)),F=Se[a]-1|0;Se[a]=F;var y=L,m=F;t=82;break}if(49==(0|I)){Se[a]=p+4|0;var X=Lr(r),j=Lr(r),U=Lr(r),x=Lr(r),z=Se[a]-1|0;Se[a]=z;var V=Dr(r,0|He.__str61231,(ne=Oe,Oe+=16,Se[ne>>2]=X,Se[ne+4>>2]=j,Se[ne+8>>2]=U,Se[ne+12>>2]=x,ne)),y=V,m=Se[a];t=82;break}if(50==(0|I)){var y=0|He.__str62232,m=N;t=82;break}if(51==(0|I)){var y=0|He.__str63233,m=N;t=82;break}if(52==(0|I)){var y=0|He.__str64234,m=N;t=82;break}var y=0,m=N;t=82;break}if(83==(0|R)){var y=0|He.__str65235,m=C;t=82;break}if(84==(0|R)){var y=0|He.__str66236,m=C;t=82;break}if(85==(0|R)){var y=0|He.__str67237,m=C;t=82;break}if(86==(0|R)){var y=0|He.__str68238,m=C;t=82;break}if(88==(0|R)){var y=0|He.__str69239,m=C;t=82;break}if(89==(0|R)){var y=0|He.__str70240,m=C;t=82;break}var k=0;t=111;break r}var k=0;t=111;break r}var y=0|He.__str1171,m=E;t=82}while(0);do{if(81==t){var g;Se[a]=p+2|0;var B=g;t=83;break}if(82==t){var m,y;if(Se[a]=m+1|0,1==(0|w)||2==(0|w)){var B=w;t=83;break}if(4==(0|w)){var T=y;t=84;break}if(6!=(0|w)){var S=y,M=w;t=88;break}Cr(n);var H=Xr(r,n,0,60,62);if(0==(0|H))var K=y;else var Y=Dr(r,0|He.__str170,(ne=Oe,Oe+=8,Se[ne>>2]=y,Se[ne+4>>2]=H,ne)),K=Y;var K;Se[i+6]=0;var S=K,M=w;t=88;break}}while(0);if(83==t){var B,G=r+40|0,W=Fr(r,0|He._symbol_demangle_dashed_null,-1,G);if(0==(0|W)){var k=0;t=111;break r}var d=B;t=90;break}if(84==t){var T;Se[i+4]=T;var Z=1,Q=T;t=109;break r}if(88==t){var M,S,q=r+40|0,$=Fr(r,S,-1,q);if(0==(0|$)){var k=0;t=111;break r}var d=M;t=90;break}}else{if(c<<24>>24==36){var J=b+2|0;Se[a]=J;var rr=jr(r);Se[i+4]=rr;var ar=0!=(0|rr)&1;t=107;break}var d=0;t=90}while(0);if(90==t){var d,er=Me[a],ir=Ae[er]<<24>>24;if(64==(0|ir))Se[a]=er+1|0;else if(36==(0|ir))t=93;else{var vr=zr(r);if(0==(0|vr)){var k=-1;t=111;break}}if(5==(0|d)){var tr=r+20|0,fr=Se[tr>>2]+1|0;Se[tr>>2]=fr}else if(1==(0|d)||2==(0|d)){if(Me[i+11]>>>0<2){var k=-1;t=111;break}var _r=r+56|0,sr=Me[_r>>2],nr=Se[sr+4>>2];if(1==(0|d))Se[sr>>2]=nr;else{var or=Dr(r,0|He.__str71241,(ne=Oe,Oe+=4,Se[ne>>2]=nr,ne)),lr=Se[_r>>2];Se[lr>>2]=or}var br=4|Se[e];Se[e]=br}else if(3==(0|d)){var kr=Se[e]&-5;Se[e]=kr}var ur=ge[Se[a]];if((ur-48&255&255)<10)var cr=Vr(r),ar=cr;else if((ur-65&255&255)<26)var hr=Br(r,3==(0|d)&1),ar=hr;else{if(ur<<24>>24!=36){var k=-1;t=111;break}var dr=Hr(r),ar=dr}}var ar;if(0==(0|ar)){var k=-1;t=111;break}var Z=ar,Q=Se[i+4];t=109;break}var wr=Pr(r,f,0,0);if(0==(0|wr)){var k=-1;t=111;break}var pr=Se[f>>2],Er=Se[f+4>>2],Ar=Dr(r,0|He.__str170,(ne=Oe,Oe+=8,Se[ne>>2]=pr,Se[ne+4>>2]=Er,ne));Se[i+4]=Ar;var Z=1,Q=Ar;t=109;break}while(0);do if(109==t){var Q,Z;if(0!=(0|Q)){var k=Z;break}Xa(0|He.__str72242,1499,0|He.___func___symbol_demangle,0|He.__str73243);var k=Z}while(0);var k;return Oe=v,k}function Pr(r,a,e,i){var v,t,f,_=Oe;Oe+=24;var s=_,n=_+4,o=_+8,l=_+16,b=_+20;0==(0|a)&&Xa(0|He.__str72242,829,0|He.___func___demangle_datatype,0|He.__str121291);var f=(a+4|0)>>2;Se[f]=0;var t=(0|a)>>2;Se[t]=0;var v=(r+12|0)>>2,k=Me[v],u=k+1|0;Se[v]=u;var c=Ae[k],h=c<<24>>24;do if(95==(0|h)){Se[v]=k+2|0;var d=Ae[u],w=Zr(d);Se[t]=w}else if(67==(0|h)||68==(0|h)||69==(0|h)||70==(0|h)||71==(0|h)||72==(0|h)||73==(0|h)||74==(0|h)||75==(0|h)||77==(0|h)||78==(0|h)||79==(0|h)||88==(0|h)||90==(0|h)){var p=Qr(c);Se[t]=p}else if(84==(0|h)||85==(0|h)||86==(0|h)||89==(0|h)){var E=qr(r);if(0==(0|E))break;var A=0==(32768&Se[r>>2]|0);do if(A)if(84==(0|h))var g=0|He.__str122292;else if(85==(0|h))var g=0|He.__str123293;else if(86==(0|h))var g=0|He.__str124294;else{if(89!=(0|h)){var g=0;break}var g=0|He.__str125295}else var g=0;while(0);var g,y=Dr(r,0|He.__str170,(ne=Oe,Oe+=8,Se[ne>>2]=g,Se[ne+4>>2]=E,ne));Se[t]=y}else if(63==(0|h))if(0==(0|i))$r(a,r,e,63,0);else{var m=Lr(r);if(0==(0|m))break;var S=Dr(r,0|He.__str126296,(ne=Oe,Oe+=4,Se[ne>>2]=m,ne));Se[t]=S}else if(65==(0|h)||66==(0|h))$r(a,r,e,c,i);else if(81==(0|h)||82==(0|h)||83==(0|h)){var M=0==(0|i)?80:c;$r(a,r,e,M,i)}else if(80==(0|h))if(((Ae[u]<<24>>24)-48|0)>>>0<10){var C=k+2|0;if(Se[v]=C,Ae[u]<<24>>24!=54)break;var R=r+44|0,T=Se[R>>2];Se[v]=k+3|0;var O=Ae[C],N=Se[r>>2]&-17,I=Ur(O,s,n,N);if(0==(0|I))break;var P=Pr(r,o,e,0);if(0==(0|P))break;var D=Xr(r,e,1,40,41);if(0==(0|D))break;Se[R>>2]=T;var L=Se[o>>2],F=Se[o+4>>2],X=Se[s>>2],j=Dr(r,0|He.__str127297,(ne=Oe,Oe+=12,Se[ne>>2]=L,Se[ne+4>>2]=F,Se[ne+8>>2]=X,ne));Se[t]=j;var U=Dr(r,0|He.__str128298,(ne=Oe,Oe+=4,Se[ne>>2]=D,ne));Se[f]=U}else $r(a,r,e,80,i);else if(87==(0|h)){if(Ae[u]<<24>>24!=52)break;Se[v]=k+2|0;var x=qr(r);if(0==(0|x))break;if(0==(32768&Se[r>>2]|0)){var z=Dr(r,0|He.__str129299,(ne=Oe,Oe+=4,Se[ne>>2]=x,ne));Se[t]=z}else Se[t]=x}else if(48==(0|h)||49==(0|h)||50==(0|h)||51==(0|h)||52==(0|h)||53==(0|h)||54==(0|h)||55==(0|h)||56==(0|h)||57==(0|h)){var V=h<<1,B=V-96|0,H=Yr(e,B);Se[t]=H;var K=V-95|0,Y=Yr(e,K);Se[f]=Y}else if(36==(0|h)){var G=k+2|0;Se[v]=G;var W=Ae[u]<<24>>24;if(48==(0|W)){var Z=Lr(r);Se[t]=Z}else if(68==(0|W)){var Q=Lr(r);if(0==(0|Q))break;var q=Dr(r,0|He.__str130300,(ne=Oe,Oe+=4,Se[ne>>2]=Q,ne));Se[t]=q}else if(70==(0|W)){var $=Lr(r);if(0==(0|$))break;var J=Lr(r);if(0==(0|J))break;var rr=Dr(r,0|He.__str131301,(ne=Oe,Oe+=8,Se[ne>>2]=$,Se[ne+4>>2]=J,ne));Se[t]=rr}else if(71==(0|W)){var ar=Lr(r);if(0==(0|ar))break;var er=Lr(r);if(0==(0|er))break;var ir=Lr(r);if(0==(0|ir))break;var vr=Dr(r,0|He.__str132302,(ne=Oe,Oe+=12,Se[ne>>2]=ar,Se[ne+4>>2]=er,Se[ne+8>>2]=ir,ne));Se[t]=vr}else if(81==(0|W)){var tr=Lr(r);if(0==(0|tr))break;var fr=Dr(r,0|He.__str133303,(ne=Oe,Oe+=4,Se[ne>>2]=tr,ne));Se[t]=fr}else{if(36!=(0|W))break;if(Ae[G]<<24>>24!=67)break;Se[v]=k+3|0;var _r=xr(r,l,b);if(0==(0|_r))break;var sr=Pr(r,a,e,i);if(0==(0|sr))break;var nr=Se[t],or=Se[l>>2],lr=Dr(r,0|He.__str83253,(ne=Oe,Oe+=8,Se[ne>>2]=nr,Se[ne+4>>2]=or,ne));Se[t]=lr}}while(0);var br=0!=(0|Se[t])&1;return Oe=_,br}function Dr(r,a){var e,i=Oe;Oe+=4;var v=i,e=v>>2,t=v;Se[t>>2]=arguments[Dr.length];var f=1,_=0;r:for(;;){var _,f,s=Ae[a+_|0];do{if(s<<24>>24==0)break r;if(s<<24>>24==37){var n=_+1|0,o=Ae[a+n|0]<<24>>24;if(115==(0|o)){var l=Se[e],b=l,k=l+4|0;Se[e]=k;var u=Se[b>>2];if(0==(0|u)){var c=f,h=n;break}var d=Ca(u),c=d+f|0,h=n;break}if(99==(0|o)){var w=Se[e]+4|0;Se[e]=w;var c=f+1|0,h=n;break}if(37==(0|o))var p=n;else var p=_;var p,c=f+1|0,h=p}else var c=f+1|0,h=_}while(0);var h,c,f=c,_=h+1|0}var E=Wr(r,f);if(0==(0|E))var A=0;else{Se[t>>2]=arguments[Dr.length];var g=E,y=0;r:for(;;){var y,g,m=Ae[a+y|0];do{if(m<<24>>24==0)break r;if(m<<24>>24==37){var S=y+1|0,M=Ae[a+S|0]<<24>>24;if(115==(0|M)){var C=Se[e],R=C,T=C+4|0;Se[e]=T;var O=Se[R>>2];if(0==(0|O)){var N=g,I=S;break}var P=Ca(O);Pa(g,O,P,1);var N=g+P|0,I=S;break}if(99==(0|M)){var D=Se[e],L=D,F=D+4|0;Se[e]=F,Ae[g]=255&Se[L>>2];var N=g+1|0,I=S;break}if(37==(0|M))var X=S;else var X=y;var X;Ae[g]=37;var N=g+1|0,I=X}else{Ae[g]=m;var N=g+1|0,I=y}}while(0);var I,N,g=N,y=I+1|0}Ae[g]=0;var A=E}var A;return Oe=i,A}function Lr(r){var a,a=(r+12|0)>>2,e=Se[a],i=Ae[e];if(i<<24>>24==63){var v=e+1|0;Se[a]=v;var t=1,f=v,_=Ae[v]}else var t=0,f=e,_=i;var _,f,t,s=(_-48&255&255)<9;do if(s){var n=Wr(r,3),o=0!=(0|t);o&&(Ae[n]=45);var l=Ae[Se[a]]+1&255;Ae[n+t|0]=l;var b=o?2:1;\nAe[n+b|0]=0;var k=Se[a]+1|0;Se[a]=k;var u=n}else if(_<<24>>24==57){var c=Wr(r,4),h=0!=(0|t);h&&(Ae[c]=45),Ae[c+t|0]=49;var d=h?2:1;Ae[c+d|0]=48;var w=h?3:2;Ae[c+w|0]=0;var p=Se[a]+1|0;Se[a]=p;var u=c}else{if((_-65&255&255)>=16){var u=0;break}for(var E=0,A=f;;){var A,E,g=A+1|0;Se[a]=g;var y=(Ae[A]<<24>>24)+((E<<4)-65)|0,m=ge[g];if((m-65&255&255)>=16)break;var E=y,A=g}if(m<<24>>24!=64){var u=0;break}var S=Wr(r,17),M=0!=(0|t)?0|He.__str119289:0|ii,C=(za(S,0|He.__str118288,(ne=Oe,Oe+=8,Se[ne>>2]=M,Se[ne+4>>2]=y,ne)),Se[a]+1|0);Se[a]=C;var u=S}while(0);var u;return u}function Fr(r,a,e,i){var v,t,f,_;0==(0|a)&&Xa(0|He.__str72242,212,0|He.___func___str_array_push,0|He.__str115285),0==(0|i)&&Xa(0|He.__str72242,213,0|He.___func___str_array_push,0|He.__str116286);var f=(i+12|0)>>2,s=Me[f],n=0==(0|s);do{if(n){Se[f]=32;var o=Wr(r,128);if(0==(0|o)){var l=0;_=17;break}Se[i+16>>2]=o,_=11;break}if(Me[i+8>>2]>>>0>>0){_=11;break}var b=s<<3,k=Wr(r,b);if(0==(0|k)){var l=0;_=17;break}var u=k,c=i+16|0,h=Se[c>>2],d=Se[f]<<2;Pa(k,h,d,1);var w=Se[f]<<1;Se[f]=w,Se[c>>2]=u,_=11;break}while(0);do if(11==_){if((0|e)==-1)var p=Ca(a),E=p;else var E=e;var E,A=ja(a),g=E+1|0,y=Wr(r,g),t=(i+4|0)>>2,v=(i+16|0)>>2,m=(Se[t]<<2)+Se[v]|0;Se[m>>2]=y;var S=Se[Se[v]+(Se[t]<<2)>>2];if(0==(0|S)){Xa(0|He.__str72242,233,0|He.___func___str_array_push,0|He.__str117287);var M=Se[Se[v]+(Se[t]<<2)>>2]}else var M=S;var M;Pa(M,A,E,1),va(A),Ae[Se[Se[v]+(Se[t]<<2)>>2]+g|0]=0;var C=Se[t]+1|0;Se[t]=C;var R=i+8|0;if(C>>>0>2]>>>0){var l=1;break}Se[R>>2]=C;var l=1}while(0);var l;return l}function Xr(r,a,e,i,v){var t,f,_=Oe;Oe+=28;var s,n=_,o=_+8;Cr(o);var f=(r+12|0)>>2,l=0==(0|e),t=(0|n)>>2,b=n+4|0;r:do if(l)for(;;){var k=Se[f],u=Ae[k];if(u<<24>>24==0){s=12;break r}if(u<<24>>24==64){var c=k;s=7;break r}var h=Pr(r,n,a,1);if(0==(0|h)){var d=0;s=25;break r}var w=Se[t],p=Se[b>>2],E=Dr(r,0|He.__str170,(ne=Oe,Oe+=8,Se[ne>>2]=w,Se[ne+4>>2]=p,ne)),A=Fr(r,E,-1,o);if(0==(0|A)){var d=0;s=25;break r}var g=Se[t],y=Da(g,0|He.__str110280);if(0==(0|y)){s=12;break r}}else for(;;){var m=Se[f],S=Ae[m];if(S<<24>>24==0){s=12;break r}if(S<<24>>24==64){var c=m;s=7;break r}var M=Pr(r,n,a,1);if(0==(0|M)){var d=0;s=25;break r}var C=Se[t],R=Da(C,0|He.__str84254);if(0==(0|R)){s=13;break r}var T=Se[b>>2],O=Dr(r,0|He.__str170,(ne=Oe,Oe+=8,Se[ne>>2]=C,Se[ne+4>>2]=T,ne)),N=Fr(r,O,-1,o);if(0==(0|N)){var d=0;s=25;break r}var I=Se[t],P=Da(I,0|He.__str110280);if(0==(0|P)){s=12;break r}}while(0);do if(7==s){var c;Se[f]=c+1|0,s=12;break}while(0);do if(12==s){if(l){s=14;break}s=13;break}while(0);do if(13==s){var D=Se[f],L=D+1|0;if(Se[f]=L,Ae[D]<<24>>24==90){s=14;break}var d=0;s=25;break}while(0);r:do if(14==s){var F=o+4|0,X=Me[F>>2];do{if(0!=(0|X)){if(1==(0|X)){var j=o+16|0,U=Se[Se[j>>2]>>2],x=Da(U,0|He.__str84254);if(0==(0|x)){s=17;break}var z=j;s=20;break}var V=o+16|0;if(X>>>0<=1){var z=V;s=20;break}for(var B=0,H=1;;){var H,B,K=Se[Se[V>>2]+(H<<2)>>2],Y=Dr(r,0|He.__str112282,(ne=Oe,Oe+=8,Se[ne>>2]=B,Se[ne+4>>2]=K,ne)),G=H+1|0;if(G>>>0>=Me[F>>2]>>>0)break;var B=Y,H=G}if(0==(0|Y)){var z=V;s=20;break}var W=Y,Z=Y;s=21;break}s=17}while(0);if(17==s){var Q=i<<24>>24,q=v<<24>>24,$=Dr(r,0|He.__str111281,(ne=Oe,Oe+=8,Se[ne>>2]=Q,Se[ne+4>>2]=q,ne)),d=$;break}if(20==s)var z,W=Se[Se[z>>2]>>2],Z=0;var Z,W,J=v<<24>>24,rr=v<<24>>24==62;do if(rr){var ar=Ca(W);if(Ae[W+(ar-1)|0]<<24>>24!=62)break;var er=i<<24>>24,ir=Se[Se[o+16>>2]>>2],vr=Dr(r,0|He.__str113283,(ne=Oe,Oe+=16,Se[ne>>2]=er,Se[ne+4>>2]=ir,Se[ne+8>>2]=Z,Se[ne+12>>2]=J,ne)),d=vr;break r}while(0);var tr=i<<24>>24,fr=Se[Se[o+16>>2]>>2],_r=Dr(r,0|He.__str114284,(ne=Oe,Oe+=16,Se[ne>>2]=tr,Se[ne+4>>2]=fr,Se[ne+8>>2]=Z,Se[ne+12>>2]=J,ne)),d=_r}while(0);var d;return Oe=_,d}function jr(r){var a,e=Oe;Oe+=20;var i=e,v=r+24|0,t=Se[v>>2],a=(r+20|0)>>2,f=Se[a],_=r+44|0,s=Se[_>>2];Se[a]=t;var n=Kr(r);if(0==(0|n))var o=0;else{Cr(i);var l=Xr(r,i,0,60,62);if(0==(0|l))var b=n;else var k=Dr(r,0|He.__str170,(ne=Oe,Oe+=8,Se[ne>>2]=n,Se[ne+4>>2]=l,ne)),b=k;var b;Se[v>>2]=t,Se[a]=f,Se[_>>2]=s;var o=b}var o;return Oe=e,o}function Ur(r,a,e,i){var v,t=a>>2;Se[e>>2]=0,Se[t]=0;var f=0==(18&i|0);do{if(f){var _=r<<24>>24,s=1==((_-65)%2|0);if(0==(1&i|0)){if(s?Se[e>>2]=0|He.__str95265:v=14,65==(0|_)||66==(0|_)){Se[t]=0|He.__str96266,v=21;break}if(67==(0|_)||68==(0|_)){Se[t]=0|He.__str97267,v=21;break}if(69==(0|_)||70==(0|_)){Se[t]=0|He.__str98268,v=21;break}if(71==(0|_)||72==(0|_)){Se[t]=0|He.__str99269,v=21;break}if(73==(0|_)||74==(0|_)){Se[t]=0|He.__str100270,v=21;break}if(75==(0|_)||76==(0|_)){v=21;break}if(77==(0|_)){Se[t]=0|He.__str101271,v=21;break}var n=0;v=22;break}if(s?Se[e>>2]=0|He.__str88258:v=5,65==(0|_)||66==(0|_)){Se[t]=0|He.__str89259,v=21;break}if(67==(0|_)||68==(0|_)){Se[t]=0|He.__str90260,v=21;break}if(69==(0|_)||70==(0|_)){Se[t]=0|He.__str91261,v=21;break}if(71==(0|_)||72==(0|_)){Se[t]=0|He.__str92262,v=21;break}if(73==(0|_)||74==(0|_)){Se[t]=0|He.__str93263,v=21;break}if(75==(0|_)||76==(0|_)){v=21;break}if(77==(0|_)){Se[t]=0|He.__str94264,v=21;break}var n=0;v=22;break}v=21}while(0);if(21==v)var n=1;var n;return n}function xr(r,a,e){var i;Se[e>>2]=0;var i=(r+12|0)>>2,v=Se[i];if(Ae[v]<<24>>24==69){Se[e>>2]=0|He.__str102272;var t=Se[i]+1|0;Se[i]=t;var f=t}else var f=v;var f;Se[i]=f+1|0;var _=Ae[f]<<24>>24;if(65==(0|_)){Se[a>>2]=0;var s=1}else if(66==(0|_)){Se[a>>2]=0|He.__str103273;var s=1}else if(67==(0|_)){Se[a>>2]=0|He.__str104274;var s=1}else if(68==(0|_)){Se[a>>2]=0|He.__str105275;var s=1}else var s=0;var s;return s}function zr(r){var a,e,a=(r+12|0)>>2,i=r+40|0,v=r+20|0,t=0|i,f=r+44|0,_=r+48|0,s=r+52|0,n=r+56|0,o=r+20|0,l=r+24|0,b=r+16|0,k=0;r:for(;;){var k,u=Se[a],c=Ae[u];if(c<<24>>24==64){var h=u+1|0;Se[a]=h;var d=1;break}var w=c<<24>>24;do{if(0==(0|w)){var d=0;break r}if(48==(0|w)||49==(0|w)||50==(0|w)||51==(0|w)||52==(0|w)||53==(0|w)||54==(0|w)||55==(0|w)||56==(0|w)||57==(0|w)){var p=u+1|0;Se[a]=p;var E=(Ae[u]<<24>>24)-48|0,A=Yr(v,E),g=A;e=14;break}if(63==(0|w)){var y=u+1|0;Se[a]=y;var m=Ae[y]<<24>>24;if(36==(0|m)){var S=u+2|0;Se[a]=S;var M=jr(r);if(0==(0|M)){var d=0;break r}var C=Fr(r,M,-1,v);if(0==(0|C)){var d=0;break r}var R=M;e=15;break}if(63==(0|m)){var T=Se[t>>2],O=Se[f>>2],N=Se[_>>2],I=Se[s>>2],P=Se[n>>2],D=Se[o>>2],L=Se[l>>2];Cr(i);var F=Ir(r);if(0==(0|F))var X=k;else var j=Se[b>>2],U=Dr(r,0|He.__str109279,(ne=Oe,Oe+=4,Se[ne>>2]=j,ne)),X=U;var X;Se[o>>2]=D,Se[l>>2]=L,Se[t>>2]=T,Se[f>>2]=O,Se[_>>2]=N,Se[s>>2]=I,Se[n>>2]=P;var g=X;e=14;break}var x=Lr(r);if(0==(0|x)){var d=0;break r}var z=Dr(r,0|He.__str109279,(ne=Oe,Oe+=4,Se[ne>>2]=x,ne)),g=z;e=14;break}var V=Kr(r),g=V;e=14;break}while(0);if(14==e){var g;if(0==(0|g)){var d=0;break}var R=g}var R,B=Fr(r,R,-1,i);if(0==(0|B)){var d=0;break}var k=R}var d;return d}function Vr(r){var a,e,i,v=Oe;Oe+=36;var t,f=v,i=f>>2,_=v+4,s=v+8,e=s>>2,n=v+16;Se[i]=0;var o=0|r,l=Se[o>>2],b=0==(128&l|0),k=r+12|0;do if(b){var u=Ae[Se[k>>2]]<<24>>24;if(48==(0|u))var c=0|He.__str76246,h=k,a=h>>2;else if(49==(0|u))var c=0|He.__str77247,h=k,a=h>>2;else{if(50!=(0|u)){var c=0,h=k,a=h>>2;break}var c=0|He.__str78248,h=k,a=h>>2}}else var c=0,h=k,a=h>>2;while(0);var h,c,d=0==(512&l|0);do if(d){if((Ae[Se[a]]-48&255&255)>=3){var w=0;break}var w=0|He.__str79249}else var w=0;while(0);var w,p=Gr(r,0),E=Se[a],A=E+1|0;Se[a]=A;var g=Ae[E]<<24>>24;do{if(48==(0|g)||49==(0|g)||50==(0|g)||51==(0|g)||52==(0|g)||53==(0|g)){var y=r+44|0,m=Se[y>>2];Cr(n);var S=Pr(r,s,n,0);if(0==(0|S)){var M=0;t=28;break}var C=xr(r,f,_);if(0==(0|C)){var M=0;t=28;break}var R=Se[i],T=0==(0|R),O=Se[_>>2];do if(T)Se[i]=O;else{if(0==(0|O))break;var N=Dr(r,0|He.__str83253,(ne=Oe,Oe+=8,Se[ne>>2]=R,Se[ne+4>>2]=O,ne));Se[i]=N}while(0);Se[y>>2]=m,t=22;break}if(54==(0|g)||55==(0|g)){var I=s+4|0;Se[I>>2]=0,Se[e]=0;var P=xr(r,f,_);if(0==(0|P)){var M=0;t=28;break}if(Ae[Se[a]]<<24>>24==64){t=22;break}var D=qr(r);if(0==(0|D)){var M=0;t=28;break}var L=Dr(r,0|He.__str107277,(ne=Oe,Oe+=4,Se[ne>>2]=D,ne));Se[I>>2]=L,t=22;break}if(56==(0|g)||57==(0|g)){Se[e+1]=0,Se[e]=0,Se[i]=0,t=22;break}var M=0;t=28}while(0);if(22==t){var F=0==(4096&Se[o>>2]|0);do{if(F){var X=Se[e],j=Se[i];if(0==(0|j)){var U=X;t=26;break}var x=0!=(0|X)?0|He.__str87257:0,z=0|He.__str87257,V=j,B=x,H=X;t=27;break}Se[i]=0,Se[e+1]=0,Se[e]=0;var U=0;t=26;break}while(0);if(26==t)var U,K=0!=(0|U)?0|He.__str87257:0,z=K,V=0,B=0,H=U;var H,B,V,z,Y=Se[e+1],G=Dr(r,0|He.__str108278,(ne=Oe,Oe+=32,Se[ne>>2]=c,Se[ne+4>>2]=w,Se[ne+8>>2]=H,Se[ne+12>>2]=B,Se[ne+16>>2]=V,Se[ne+20>>2]=z,Se[ne+24>>2]=p,Se[ne+28>>2]=Y,ne));Se[r+16>>2]=G;var M=1}var M;return Oe=v,M}function Br(r,a){var e,i,v,t,f=Oe;Oe+=44;var _,s=f,t=s>>2,n=f+8,o=f+12,v=o>>2,l=f+16,b=f+20,k=f+40;Se[v]=0;var i=(r+12|0)>>2,u=Se[i],c=u+1|0;Se[i]=c;var h=ge[u],d=h<<24>>24,w=(h-65&255&255)>25;r:do if(w)var p=0;else{var e=(0|r)>>2,E=Me[e],A=0==(128&E|0),g=d-65|0;do if(A){var y=g/8|0;if(0==(0|y))var m=0|He.__str76246,S=g;else if(1==(0|y))var m=0|He.__str77247,S=g;else{if(2!=(0|y)){var m=0,S=g;break}var m=0|He.__str78248,S=g}}else var m=0,S=g;while(0);var S,m,M=0==(512&E|0)&h<<24>>24<89,C=(0|S)%8;do if(M)if(2==(0|C)||3==(0|C))var R=m,T=0|He.__str79249;else if(4==(0|C)||5==(0|C))var R=m,T=0|He.__str80250;else{if(6!=(0|C)&&7!=(0|C)){var R=m,T=0;break}var O=Dr(r,0|He.__str81251,(ne=Oe,Oe+=4,Se[ne>>2]=m,ne)),R=O,T=0|He.__str80250}else var R=m,T=0;while(0);var T,R,N=Gr(r,0),I=6==(0|C);do{if(!I){if(7==((d-56)%8|0)){_=14;break}var P=N;_=15;break}_=14}while(0);if(14==_)var D=Lr(r),L=Dr(r,0|He.__str82252,(ne=Oe,Oe+=8,Se[ne>>2]=N,Se[ne+4>>2]=D,ne)),P=L;var P,F=h<<24>>24>88;do if(F)var X=0;else{if((C-2|0)>>>0<2){var X=0;break}var j=xr(r,o,k);if(0==(0|j)){var p=0;break r}var U=Me[v],x=Se[k>>2];if(0==(0|U)&0==(0|x)){var X=0;break}var z=Dr(r,0|He.__str83253,(ne=Oe,Oe+=8,Se[ne>>2]=U,Se[ne+4>>2]=x,ne));Se[v]=z;var X=z}while(0);var X,V=Se[i],B=V+1|0;Se[i]=B;var H=Ae[V],K=Se[e],Y=Ur(H,n,l,K);if(0==(0|Y)){var p=0;break}Cr(b);var G=Se[i];if(Ae[G]<<24>>24==64){Se[t]=0|He.__str84254,Se[t+1]=0;var W=G+1|0;Se[i]=W}else{var Z=Pr(r,s,b,0);if(0==(0|Z)){var p=0;break}}if(0!=(4&Se[e]|0)&&(Se[t+1]=0,Se[t]=0),0==(0|a))var Q=P;else{var q=0|s,$=Se[q>>2],J=s+4|0,rr=Se[J>>2],ar=Dr(r,0|He.__str85255,(ne=Oe,Oe+=12,Se[ne>>2]=P,Se[ne+4>>2]=$,Se[ne+8>>2]=rr,ne));Se[J>>2]=0,Se[q>>2]=0;var Q=ar}var Q,er=r+44|0,ir=Se[er>>2],vr=Xr(r,b,1,40,41);if(0==(0|vr)){var p=0;break}if(0==(4096&Se[e]|0))var tr=vr,fr=X;else{Se[v]=0;var tr=0,fr=0}var fr,tr;Se[er>>2]=ir;var _r=Se[t],sr=Se[t+1];if(0==(0|_r))var nr=0;else var or=0!=(0|sr)?0:0|He.__str87257,nr=or;var nr,lr=Se[n>>2],br=0!=(0|lr)?0|He.__str87257:0,kr=Se[l>>2],ur=Dr(r,0|He.__str86256,(ne=Oe,Oe+=44,Se[ne>>2]=R,Se[ne+4>>2]=T,Se[ne+8>>2]=_r,Se[ne+12>>2]=nr,Se[ne+16>>2]=lr,Se[ne+20>>2]=br,Se[ne+24>>2]=kr,Se[ne+28>>2]=Q,Se[ne+32>>2]=tr,Se[ne+36>>2]=fr,Se[ne+40>>2]=sr,ne));Se[r+16>>2]=ur;var p=1}while(0);var p;return Oe=f,p}function Hr(r){var a,a=(r+12|0)>>2,e=Se[a];if(Ae[e]<<24>>24==36)var i=e;else{Xa(0|He.__str72242,1252,0|He.___func___handle_template,0|He.__str74244);var i=Se[a]}var i;Se[a]=i+1|0;var v=Kr(r),t=0==(0|v);do if(t)var f=0;else{var _=Xr(r,0,0,60,62);if(0==(0|_)){var f=0;break}var s=Dr(r,0|He.__str170,(ne=Oe,Oe+=8,Se[ne>>2]=v,Se[ne+4>>2]=_,ne));Se[r+16>>2]=s;var f=1}while(0);var f;return f}function Kr(r){for(var a,a=(r+12|0)>>2,e=Me[a],i=e,v=Ae[e];;){var v,i;if(!((v-65&255&255)<26|(v-97&255&255)<26|(v-48&255&255)<10)&&v<<24>>24!=95&&v<<24>>24!=36){var t=0;break}var f=i+1|0;Se[a]=f;var _=ge[f];if(_<<24>>24==64){Se[a]=i+2|0;var s=f-e|0,n=r+20|0,o=Fr(r,e,s,n);if(0==(0|o)){var t=0;break}var l=Se[r+24>>2]-1-Se[n>>2]|0,b=Yr(n,l),t=b;break}var i=f,v=_}var t;return t}function Yr(r,a){0==(0|r)&&Xa(0|He.__str72242,263,0|He.___func___str_array_get_ref,0|He.__str75245);var e=Se[r>>2]+a|0;if(e>>>0>2]>>>0)var i=Se[Se[r+16>>2]+(e<<2)>>2];else var i=0;var i;return i}function Gr(r,a){var e,e=(r+44|0)>>2,i=Me[e];if(i>>>0>a>>>0){for(var v=r+56|0,t=a,f=0,_=Se[v>>2],s=i;;){var s,_,f,t,n=Me[_+(t<<2)>>2];if(0==(0|n)){Xa(0|He.__str72242,680,0|He.___func___get_class_string,0|He.__str106276);var o=Se[v>>2],l=o,b=Se[o+(t<<2)>>2],k=Se[e]}else var l=_,b=n,k=s;var k,b,l,u=Ca(b),c=u+(f+2)|0,h=t+1|0;if(h>>>0>=k>>>0)break;var t=h,f=c,_=l,s=k}var d=c-1|0}else var d=-1;var d,w=Wr(r,d);if(0==(0|w))var p=0;else{var E=Se[e]-1|0,A=(0|E)<(0|a);r:do if(A)var g=0;else for(var y=r+56|0,m=0,S=E;;){var S,m,M=Se[Se[y>>2]+(S<<2)>>2],C=Ca(M),R=w+m|0;Pa(R,M,C,1);var T=C+m|0;if((0|S)>(0|a)){var O=T+1|0;Ae[w+T|0]=58;var N=T+2|0;Ae[w+O|0]=58;var I=N}else var I=T;var I,P=S-1|0;if((0|P)<(0|a)){var g=I;break r}var m=I,S=P}while(0);var g;Ae[w+g|0]=0;var p=w}var p;return p}function Wr(r,a){var e,i=a>>>0>1020;do if(i){var v=Se[r+4>>2],t=a+4|0,f=pe[v](t);if(0==(0|f)){var _=0;break}var s=r+60|0,n=Se[s>>2],o=f;Se[o>>2]=n,Se[s>>2]=f,Se[r+64>>2]=0;var _=f+4|0}else{var e=(r+64|0)>>2,l=Me[e];if(l>>>0>>0){var b=Se[r+4>>2],k=pe[b](1024);if(0==(0|k)){var _=0;break}var u=r+60|0,c=Se[u>>2],h=k;Se[h>>2]=c,Se[u>>2]=k,Se[e]=1020;var d=1020,w=k}else var d=l,w=Se[r+60>>2];var w,d;Se[e]=d-a|0;var _=w+(1024-d)|0}while(0);var _;return _}function Zr(r){var a=r<<24>>24;if(68==(0|a))var e=0|He.__str157327;else if(69==(0|a))var e=0|He.__str158328;else if(70==(0|a))var e=0|He.__str159329;else if(71==(0|a))var e=0|He.__str160330;else if(72==(0|a))var e=0|He.__str161331;else if(73==(0|a))var e=0|He.__str162332;else if(74==(0|a))var e=0|He.__str163333;else if(75==(0|a))var e=0|He.__str164334;else if(76==(0|a))var e=0|He.__str165335;else if(77==(0|a))var e=0|He.__str166336;else if(78==(0|a))var e=0|He.__str167337;else if(87==(0|a))var e=0|He.__str168338;else var e=0;var e;return e}function Qr(r){var a=r<<24>>24;if(67==(0|a))var e=0|He.__str145315;else if(68==(0|a))var e=0|He.__str146316;else if(69==(0|a))var e=0|He.__str147317;else if(70==(0|a))var e=0|He.__str148318;else if(71==(0|a))var e=0|He.__str149319;else if(72==(0|a))var e=0|He.__str150320;else if(73==(0|a))var e=0|He.__str151321;else if(74==(0|a))var e=0|He.__str152322;else if(75==(0|a))var e=0|He.__str153323;else if(77==(0|a))var e=0|He.__str154324;else if(78==(0|a))var e=0|He.__str155325;else if(79==(0|a))var e=0|He.__str156326;else if(88==(0|a))var e=0|He.__str84254;else if(90==(0|a))var e=0|He.__str110280;else var e=0;var e;return e}function qr(r){var a=r+44|0,e=Se[a>>2],i=zr(r);if(0==(0|i))var v=0;else var t=Gr(r,e),v=t;var v;return Se[a>>2]=e,v}function $r(r,a,e,i,v){var t,f,_,s=Oe;Oe+=16;var n,o=s,_=o>>2,l=s+4,b=s+8,f=b>>2;Se[l>>2]=0|ii;var t=(a+12|0)>>2,k=Se[t];if(Ae[k]<<24>>24==69){Se[l>>2]=0|He.__str134304;var u=k+1|0;Se[t]=u;var c=0|He.__str134304}else var c=0|ii;var c,h=i<<24>>24;do{if(65==(0|h)){var d=Dr(a,0|He.__str135305,(ne=Oe,Oe+=4,Se[ne>>2]=c,ne)),w=d;n=10;break}if(66==(0|h)){var p=Dr(a,0|He.__str136306,(ne=Oe,Oe+=4,Se[ne>>2]=c,ne)),w=p;n=10;break}if(80==(0|h)){var E=Dr(a,0|He.__str137307,(ne=Oe,Oe+=4,Se[ne>>2]=c,ne)),w=E;n=10;break}if(81==(0|h)){var A=Dr(a,0|He.__str138308,(ne=Oe,Oe+=4,Se[ne>>2]=c,ne)),w=A;n=10;break}if(82==(0|h)){var g=Dr(a,0|He.__str139309,(ne=Oe,Oe+=4,Se[ne>>2]=c,ne)),w=g;n=10;break}if(83==(0|h)){var y=Dr(a,0|He.__str140310,(ne=Oe,Oe+=4,Se[ne>>2]=c,ne)),w=y;n=10;break}if(63==(0|h)){var w=0|ii;n=10}else n=31}while(0);r:do if(10==n){var w,m=xr(a,o,l);if(0==(0|m))break;var S=a+44|0,M=Se[S>>2],C=Se[t],R=Ae[C]<<24>>24==89;a:do if(R){var T=C+1|0;Se[t]=T;var O=Lr(a);if(0==(0|O))break r;var N=Ha(O),I=Ae[w]<<24>>24==32,P=Se[_],D=0==(0|P);do{if(I){if(!D){n=17;break}var L=w+1|0;n=18;break}if(D){var L=w;n=18;break}n=17;break}while(0);if(17==n){var F=Dr(a,0|He.__str141311,(ne=Oe,Oe+=8,Se[ne>>2]=P,Se[ne+4>>2]=w,ne));Se[_]=0;var X=F}else if(18==n)var L,j=Dr(a,0|He.__str142312,(ne=Oe,Oe+=4,Se[ne>>2]=L,ne)),X=j;var X;if(0==(0|N)){var U=X;break}for(var x=X,z=N;;){var z,x,V=z-1|0,B=Lr(a),H=Dr(a,0|He.__str143313,(ne=Oe,Oe+=8,Se[ne>>2]=x,Se[ne+4>>2]=B,ne));if(0==(0|V)){var U=H;break a}var x=H,z=V}}else var U=w;while(0);var U,K=Pr(a,b,e,0);if(0==(0|K))break;var Y=Se[_];if(0==(0|Y)){var G=0==(0|v);do if(G){if(Ae[U]<<24>>24==0){var W=U;break}var Z=U+1|0;if(Ae[Z]<<24>>24!=42){var W=U;break}var Q=Se[f],q=Ca(Q);if(Ae[Q+(q-1)|0]<<24>>24!=42){var W=U;break}var W=Z}else var W=U;while(0);var W,$=Se[f],J=Dr(a,0|He.__str170,(ne=Oe,Oe+=8,Se[ne>>2]=$,Se[ne+4>>2]=W,ne));Se[r>>2]=J}else{var rr=Se[f],ar=Dr(a,0|He.__str144314,(ne=Oe,Oe+=12,Se[ne>>2]=rr,Se[ne+4>>2]=Y,Se[ne+8>>2]=U,ne));Se[r>>2]=ar}var er=Se[f+1];Se[r+4>>2]=er,Se[S>>2]=M}while(0);Oe=s}function Jr(r){var a,e=r>>>0<245;do{if(e){if(r>>>0<11)var i=16;else var i=r+11&-8;var i,v=i>>>3,t=Me[vi>>2],f=t>>>(v>>>0);if(0!=(3&f|0)){var _=(1&f^1)+v|0,s=_<<1,n=(s<<2)+vi+40|0,o=(s+2<<2)+vi+40|0,l=Me[o>>2],b=l+8|0,k=Me[b>>2];if((0|n)==(0|k))Se[vi>>2]=t&(1<<_^-1);else{if(k>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[o>>2]=k,Se[k+12>>2]=n}var u=_<<3;Se[l+4>>2]=3|u;var c=l+(4|u)|0,h=1|Se[c>>2];Se[c>>2]=h;var d=b;a=38;break}if(i>>>0<=Me[vi+8>>2]>>>0){var w=i;a=30;break}if(0!=(0|f)){var p=2<>>12&16,y=A>>>(g>>>0),m=y>>>5&8,S=y>>>(m>>>0),M=S>>>2&4,C=S>>>(M>>>0),R=C>>>1&2,T=C>>>(R>>>0),O=T>>>1&1,N=(m|g|M|R|O)+(T>>>(O>>>0))|0,I=N<<1,P=(I<<2)+vi+40|0,D=(I+2<<2)+vi+40|0,L=Me[D>>2],F=L+8|0,X=Me[F>>2];if((0|P)==(0|X))Se[vi>>2]=t&(1<>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[D>>2]=X,Se[X+12>>2]=P}var j=N<<3,U=j-i|0;Se[L+4>>2]=3|i;var x=L,z=x+i|0;Se[x+(4|i)>>2]=1|U,Se[x+j>>2]=U;var V=Me[vi+8>>2];if(0!=(0|V)){var B=Se[vi+20>>2],H=V>>>2&1073741822,K=(H<<2)+vi+40|0,Y=Me[vi>>2],G=1<<(V>>>3),W=0==(Y&G|0);do{if(!W){var Z=(H+2<<2)+vi+40|0,Q=Me[Z>>2];if(Q>>>0>=Me[vi+16>>2]>>>0){var q=Q,$=Z;break}throw Ka(),"Reached an unreachable!"}Se[vi>>2]=Y|G;var q=K,$=(H+2<<2)+vi+40|0}while(0);var $,q;Se[$>>2]=B,Se[q+12>>2]=B;var J=B+8|0;Se[J>>2]=q;var rr=B+12|0;Se[rr>>2]=K}Se[vi+8>>2]=U,Se[vi+20>>2]=z;var d=F;a=38;break}if(0==(0|Se[vi+4>>2])){var w=i;a=30;break}var ar=ra(i);if(0==(0|ar)){var w=i;a=30;break}var d=ar;a=38;break}if(r>>>0>4294967231){var w=-1;a=30;break}var er=r+11&-8;if(0==(0|Se[vi+4>>2])){var w=er;a=30;break}var ir=ea(er);if(0==(0|ir)){var w=er;a=30;break}var d=ir;a=38;break}while(0);if(30==a){var w,vr=Me[vi+8>>2];if(w>>>0>vr>>>0){var tr=Me[vi+12>>2];if(w>>>0>>0){var fr=tr-w|0;Se[vi+12>>2]=fr;var _r=Me[vi+24>>2],sr=_r;Se[vi+24>>2]=sr+w|0,Se[w+(sr+4)>>2]=1|fr,Se[_r+4>>2]=3|w;var d=_r+8|0}else var nr=aa(w),d=nr}else{var or=vr-w|0,lr=Me[vi+20>>2];if(or>>>0>15){var br=lr;Se[vi+20>>2]=br+w|0,Se[vi+8>>2]=or,Se[w+(br+4)>>2]=1|or,Se[br+vr>>2]=or,Se[lr+4>>2]=3|w}else{Se[vi+8>>2]=0,Se[vi+20>>2]=0,Se[lr+4>>2]=3|vr;var kr=vr+(lr+4)|0,ur=1|Se[kr>>2];Se[kr>>2]=ur}var d=lr+8|0}}var d;return d}function ra(r){var a,e,i,v=Se[vi+4>>2],t=(v&-v)-1|0,f=t>>>12&16,_=t>>>(f>>>0),s=_>>>5&8,n=_>>>(s>>>0),o=n>>>2&4,l=n>>>(o>>>0),b=l>>>1&2,k=l>>>(b>>>0),u=k>>>1&1,c=Me[vi+((s|f|o|b|u)+(k>>>(u>>>0))<<2)+304>>2],h=c,e=h>>2,d=(Se[c+4>>2]&-8)-r|0;r:for(;;)for(var d,h,w=h;;){var w,p=Se[w+16>>2];if(0==(0|p)){var E=Se[w+20>>2];if(0==(0|E))break r;var A=E}else var A=p;var A,g=(Se[A+4>>2]&-8)-r|0;if(g>>>0>>0){var h=A,e=h>>2,d=g;continue r}var w=A}var y=h,m=Me[vi+16>>2],S=y>>>0>>0;do if(!S){var M=y+r|0,C=M;if(y>>>0>=M>>>0)break;var R=Me[e+6],T=Me[e+3],O=(0|T)==(0|h);do if(O){var N=h+20|0,I=Se[N>>2];if(0==(0|I)){var P=h+16|0,D=Se[P>>2];if(0==(0|D)){var L=0,a=L>>2;break}var F=P,X=D}else{var F=N,X=I;i=14}for(;;){var X,F,j=X+20|0,U=Se[j>>2];if(0==(0|U)){var x=X+16|0,z=Me[x>>2];if(0==(0|z))break;var F=x,X=z}else var F=j,X=U}if(F>>>0>>0)throw Ka(),"Reached an unreachable!";Se[F>>2]=0;var L=X,a=L>>2}else{var V=Me[e+2];if(V>>>0>>0)throw Ka(),"Reached an unreachable!";Se[V+12>>2]=T,Se[T+8>>2]=V;var L=T,a=L>>2}while(0);var L,B=0==(0|R);r:do if(!B){var H=h+28|0,K=(Se[H>>2]<<2)+vi+304|0,Y=(0|h)==(0|Se[K>>2]);do{if(Y){if(Se[K>>2]=L,0!=(0|L))break;var G=Se[vi+4>>2]&(1<>2]^-1);Se[vi+4>>2]=G;break r}if(R>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";var W=R+16|0;if((0|Se[W>>2])==(0|h)?Se[W>>2]=L:Se[R+20>>2]=L,0==(0|L))break r}while(0);if(L>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[a+6]=R;var Z=Me[e+4];if(0!=(0|Z)){if(Z>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[a+4]=Z,Se[Z+24>>2]=L}var Q=Me[e+5];if(0==(0|Q))break;if(Q>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[a+5]=Q,Se[Q+24>>2]=L}while(0);if(d>>>0<16){var q=d+r|0;Se[e+1]=3|q;var $=q+(y+4)|0,J=1|Se[$>>2];Se[$>>2]=J}else{Se[e+1]=3|r,Se[r+(y+4)>>2]=1|d,Se[y+d+r>>2]=d;var rr=Me[vi+8>>2];if(0!=(0|rr)){var ar=Me[vi+20>>2],er=rr>>>2&1073741822,ir=(er<<2)+vi+40|0,vr=Me[vi>>2],tr=1<<(rr>>>3),fr=0==(vr&tr|0);do{if(!fr){var _r=(er+2<<2)+vi+40|0,sr=Me[_r>>2];if(sr>>>0>=Me[vi+16>>2]>>>0){var nr=sr,or=_r;break}throw Ka(),"Reached an unreachable!"}Se[vi>>2]=vr|tr;var nr=ir,or=(er+2<<2)+vi+40|0}while(0);var or,nr;Se[or>>2]=ar,Se[nr+12>>2]=ar,Se[ar+8>>2]=nr,Se[ar+12>>2]=ir}Se[vi+8>>2]=d,Se[vi+20>>2]=C}return h+8|0}while(0);throw Ka(),"Reached an unreachable!"}function aa(r){var a,e;0==(0|Se[ti>>2])&&ba();var i=0==(4&Se[vi+440>>2]|0);do{if(i){var v=Se[vi+24>>2],t=0==(0|v);do{if(!t){var f=v,_=ua(f);if(0==(0|_)){e=6;break}var s=Se[ti+8>>2],n=r+47-Se[vi+12>>2]+s&-s;if(n>>>0>=2147483647){e=14;break}var o=re(n);if((0|o)==(Se[_>>2]+Se[_+4>>2]|0)){var l=o,b=n,k=o;e=13;break}var u=o,c=n;e=15;break}e=6}while(0);do if(6==e){var h=re(0);if((0|h)==-1){e=14;break}var d=Se[ti+8>>2],w=d+(r+47)&-d,p=h,E=Se[ti+4>>2],A=E-1|0;if(0==(A&p|0))var g=w;else var g=w-p+(A+p&-E)|0;var g;if(g>>>0>=2147483647){e=14;break}var y=re(g);if((0|y)==(0|h)){var l=h,b=g,k=y;e=13;break}var u=y,c=g;e=15;break}while(0);if(13==e){var k,b,l;if((0|l)!=-1){var m=b,S=l;e=26;break}var u=k,c=b}else if(14==e){var M=4|Se[vi+440>>2];Se[vi+440>>2]=M,e=23;break}var c,u,C=0|-c,R=(0|u)!=-1&c>>>0<2147483647;do{if(R){if(c>>>0>=(r+48|0)>>>0){var T=c;e=21;break}var O=Se[ti+8>>2],N=r+47-c+O&-O;if(N>>>0>=2147483647){var T=c;e=21;break}var I=re(N);if((0|I)==-1){re(C);e=22;break}var T=N+c|0;e=21;break}var T=c;e=21}while(0);if(21==e){var T;if((0|u)!=-1){var m=T,S=u;e=26;break}}var P=4|Se[vi+440>>2];Se[vi+440>>2]=P,e=23;break}e=23}while(0);do if(23==e){var D=Se[ti+8>>2],L=D+(r+47)&-D;if(L>>>0>=2147483647){e=49;break}var F=re(L),X=re(0);if(!((0|X)!=-1&(0|F)!=-1&F>>>0>>0)){e=49;break}var j=X-F|0;if(j>>>0<=(r+40|0)>>>0|(0|F)==-1){e=49;break}var m=j,S=F;e=26;break}while(0);r:do if(26==e){var S,m,U=Se[vi+432>>2]+m|0;Se[vi+432>>2]=U,U>>>0>Me[vi+436>>2]>>>0&&(Se[vi+436>>2]=U);var x=Me[vi+24>>2],z=0==(0|x);a:do if(z){var V=Me[vi+16>>2];0==(0|V)|S>>>0>>0&&(Se[vi+16>>2]=S),Se[vi+444>>2]=S,Se[vi+448>>2]=m,Se[vi+456>>2]=0;var B=Se[ti>>2];Se[vi+36>>2]=B,Se[vi+32>>2]=-1,ha(),ca(S,m-40|0)}else{for(var H=vi+444|0,a=H>>2;;){var H;if(0==(0|H))break;var K=Me[a],Y=H+4|0,G=Me[Y>>2],W=K+G|0;if((0|S)==(0|W)){if(0!=(8&Se[a+3]|0))break;var Z=x;if(!(Z>>>0>=K>>>0&Z>>>0>>0))break;Se[Y>>2]=G+m|0;var Q=Se[vi+24>>2],q=Se[vi+12>>2]+m|0;ca(Q,q);break a}var H=Se[a+2],a=H>>2}S>>>0>2]>>>0&&(Se[vi+16>>2]=S);for(var $=S+m|0,J=vi+444|0;;){var J;if(0==(0|J))break;var rr=0|J,ar=Me[rr>>2];if((0|ar)==(0|$)){if(0!=(8&Se[J+12>>2]|0))break;Se[rr>>2]=S;var er=J+4|0,ir=Se[er>>2]+m|0;Se[er>>2]=ir;var vr=da(S,ar,r),tr=vr;e=50;break r}var J=Se[J+8>>2]}Ma(S,m)}while(0);var fr=Me[vi+12>>2];if(fr>>>0<=r>>>0){e=49;break}var _r=fr-r|0;Se[vi+12>>2]=_r;var sr=Me[vi+24>>2],nr=sr;Se[vi+24>>2]=nr+r|0,Se[r+(nr+4)>>2]=1|_r,Se[sr+4>>2]=3|r;var tr=sr+8|0;e=50;break}while(0);if(49==e){var or=Je();Se[or>>2]=12;var tr=0}var tr;return tr}function ea(r){var a,e,i,v,t,f,_=r>>2,s=0|-r,n=r>>>8,o=0==(0|n);do if(o)var l=0;else{if(r>>>0>16777215){var l=31;break}var b=(n+1048320|0)>>>16&8,k=n<>>16&4,c=k<>>16&2,d=14-(u|b|h)+(c<>>15)|0,l=r>>>((d+7|0)>>>0)&1|d<<1}while(0);var l,w=Me[vi+(l<<2)+304>>2],p=0==(0|w);r:do if(p)var E=0,A=s,g=0;else{if(31==(0|l))var y=0;else var y=25-(l>>>1)|0;for(var y,m=0,S=s,M=w,t=M>>2,C=r<>>0>>0){if((0|T)==(0|r)){var E=M,A=O,g=M;break r}var N=M,I=O}else var N=m,I=S;var I,N,P=Me[t+5],D=Me[((C>>>31<<2)+16>>2)+t],L=0==(0|P)|(0|P)==(0|D)?R:P;if(0==(0|D)){var E=N,A=I,g=L;break r}var m=N,S=I,M=D,t=M>>2,C=C<<1,R=L}}while(0);var g,A,E,F=0==(0|g)&0==(0|E);do if(F){var X=2<>2]&(X|-X);if(0==(0|j)){var U=g;break}var x=(j&-j)-1|0,z=x>>>12&16,V=x>>>(z>>>0),B=V>>>5&8,H=V>>>(B>>>0),K=H>>>2&4,Y=H>>>(K>>>0),G=Y>>>1&2,W=Y>>>(G>>>0),Z=W>>>1&1,U=Se[vi+((B|z|K|G|Z)+(W>>>(Z>>>0))<<2)+304>>2]}else var U=g;while(0);var U,Q=0==(0|U);r:do if(Q)var q=A,$=E,v=$>>2;else for(var J=U,i=J>>2,rr=A,ar=E;;){var ar,rr,J,er=(Se[i+1]&-8)-r|0,ir=er>>>0>>0,vr=ir?er:rr,tr=ir?J:ar,fr=Me[i+4];if(0==(0|fr)){var _r=Me[i+5];if(0==(0|_r)){var q=vr,$=tr,v=$>>2;break r}var J=_r,i=J>>2,rr=vr,ar=tr}else var J=fr,i=J>>2,rr=vr,ar=tr}while(0);var $,q,sr=0==(0|$);r:do{if(!sr){if(q>>>0>=(Se[vi+8>>2]-r|0)>>>0){var nr=0;break}var or=$,e=or>>2,lr=Me[vi+16>>2],br=or>>>0>>0;do if(!br){var kr=or+r|0,ur=kr;if(or>>>0>=kr>>>0)break;var cr=Me[v+6],hr=Me[v+3],dr=(0|hr)==(0|$);do if(dr){var wr=$+20|0,pr=Se[wr>>2];if(0==(0|pr)){var Er=$+16|0,Ar=Se[Er>>2];if(0==(0|Ar)){var gr=0,a=gr>>2;break}var yr=Er,mr=Ar}else{var yr=wr,mr=pr;f=28}for(;;){var mr,yr,Sr=mr+20|0,Mr=Se[Sr>>2];if(0==(0|Mr)){var Cr=mr+16|0,Rr=Me[Cr>>2];if(0==(0|Rr))break;var yr=Cr,mr=Rr}else var yr=Sr,mr=Mr}if(yr>>>0>>0)throw Ka(),"Reached an unreachable!";Se[yr>>2]=0;var gr=mr,a=gr>>2}else{var Tr=Me[v+2];if(Tr>>>0>>0)throw Ka(),"Reached an unreachable!";Se[Tr+12>>2]=hr,Se[hr+8>>2]=Tr;var gr=hr,a=gr>>2}while(0);var gr,Or=0==(0|cr);a:do if(!Or){var Nr=$+28|0,Ir=(Se[Nr>>2]<<2)+vi+304|0,Pr=(0|$)==(0|Se[Ir>>2]);do{if(Pr){if(Se[Ir>>2]=gr,0!=(0|gr))break;var Dr=Se[vi+4>>2]&(1<>2]^-1);Se[vi+4>>2]=Dr;break a}if(cr>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";var Lr=cr+16|0;if((0|Se[Lr>>2])==(0|$)?Se[Lr>>2]=gr:Se[cr+20>>2]=gr,0==(0|gr))break a}while(0);if(gr>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[a+6]=cr;var Fr=Me[v+4];if(0!=(0|Fr)){if(Fr>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[a+4]=Fr,Se[Fr+24>>2]=gr}var Xr=Me[v+5];if(0==(0|Xr))break;if(Xr>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[a+5]=Xr,Se[Xr+24>>2]=gr}while(0);var jr=q>>>0<16;a:do if(jr){var Ur=q+r|0;Se[v+1]=3|Ur;var xr=Ur+(or+4)|0,zr=1|Se[xr>>2];Se[xr>>2]=zr}else if(Se[v+1]=3|r,Se[_+(e+1)]=1|q,Se[(q>>2)+e+_]=q,q>>>0<256){var Vr=q>>>2&1073741822,Br=(Vr<<2)+vi+40|0,Hr=Me[vi>>2],Kr=1<<(q>>>3),Yr=0==(Hr&Kr|0);do{if(!Yr){var Gr=(Vr+2<<2)+vi+40|0,Wr=Me[Gr>>2];if(Wr>>>0>=Me[vi+16>>2]>>>0){var Zr=Wr,Qr=Gr;break}throw Ka(),"Reached an unreachable!"}Se[vi>>2]=Hr|Kr;var Zr=Br,Qr=(Vr+2<<2)+vi+40|0}while(0);var Qr,Zr;Se[Qr>>2]=ur,Se[Zr+12>>2]=ur,Se[_+(e+2)]=Zr,Se[_+(e+3)]=Br}else{var qr=kr,$r=q>>>8,Jr=0==(0|$r);do if(Jr)var ra=0;else{if(q>>>0>16777215){var ra=31;break}var aa=($r+1048320|0)>>>16&8,ea=$r<>>16&4,va=ea<>>16&2,fa=14-(ia|aa|ta)+(va<>>15)|0,ra=q>>>((fa+7|0)>>>0)&1|fa<<1}while(0);var ra,_a=(ra<<2)+vi+304|0;Se[_+(e+7)]=ra;var sa=r+(or+16)|0;Se[_+(e+5)]=0,Se[sa>>2]=0;var na=Se[vi+4>>2],oa=1<>2]=la,Se[_a>>2]=qr,Se[_+(e+6)]=_a,Se[_+(e+3)]=qr,Se[_+(e+2)]=qr}else{if(31==(0|ra))var ba=0;else var ba=25-(ra>>>1)|0;for(var ba,ka=q<>2];;){var ua,ka;if((Se[ua+4>>2]&-8|0)==(0|q)){var ca=ua+8|0,ha=Me[ca>>2],da=Me[vi+16>>2],wa=ua>>>0>>0;do if(!wa){if(ha>>>0>>0)break;Se[ha+12>>2]=qr,Se[ca>>2]=qr,Se[_+(e+2)]=ha,Se[_+(e+3)]=ua,Se[_+(e+6)]=0;break a}while(0);throw Ka(),"Reached an unreachable!"}var pa=(ka>>>31<<2)+ua+16|0,Ea=Me[pa>>2];if(0==(0|Ea)){if(pa>>>0>=Me[vi+16>>2]>>>0){Se[pa>>2]=qr,Se[_+(e+6)]=ua,Se[_+(e+3)]=qr,Se[_+(e+2)]=qr;break a}throw Ka(),"Reached an unreachable!"}var ka=ka<<1,ua=Ea}}}while(0);var nr=$+8|0;break r}while(0);throw Ka(),"Reached an unreachable!"}var nr=0}while(0);var nr;return nr}function ia(r){var a;0==(0|Se[ti>>2])&&ba();var e=r>>>0<4294967232;r:do if(e){var i=Me[vi+24>>2];if(0==(0|i)){var v=0;break}var t=Me[vi+12>>2],f=t>>>0>(r+40|0)>>>0;do if(f){var _=Me[ti+8>>2],s=-40-r-1+t+_|0,n=Math.floor((s>>>0)/(_>>>0)),o=(n-1)*_|0,l=i,b=ua(l);if(0!=(8&Se[b+12>>2]|0))break;var k=re(0),a=(b+4|0)>>2;if((0|k)!=(Se[b>>2]+Se[a]|0))break;var u=o>>>0>2147483646?-2147483648-_|0:o,c=0|-u,h=re(c),d=re(0);if(!((0|h)!=-1&d>>>0>>0))break;var w=k-d|0;if((0|k)==(0|d))break;var p=Se[a]-w|0;Se[a]=p;var E=Se[vi+432>>2]-w|0;Se[vi+432>>2]=E;var A=Se[vi+24>>2],g=Se[vi+12>>2]-w|0;ca(A,g);var v=(0|k)!=(0|d);break r}while(0);if(Me[vi+12>>2]>>>0<=Me[vi+28>>2]>>>0){var v=0;break}Se[vi+28>>2]=-1;var v=0}else var v=0;while(0);var v;return 1&v}function va(r){var a,e,i,v,t,f,_,s=r>>2,n=0==(0|r);r:do if(!n){var o=r-8|0,l=o,b=Me[vi+16>>2],k=o>>>0>>0;a:do if(!k){var u=Me[r-4>>2],c=3&u;if(1==(0|c))break;var h=u&-8,f=h>>2,d=r+(h-8)|0,w=d,p=0==(1&u|0);e:do if(p){var E=Me[o>>2];if(0==(0|c))break r;var A=-8-E|0,t=A>>2,g=r+A|0,y=g,m=E+h|0;if(g>>>0>>0)break a;if((0|y)==(0|Se[vi+20>>2])){var v=(r+(h-4)|0)>>2;if(3!=(3&Se[v]|0)){var S=y,i=S>>2,M=m;break}Se[vi+8>>2]=m;var C=Se[v]&-2;Se[v]=C,Se[t+(s+1)]=1|m,Se[d>>2]=m;break r}if(E>>>0<256){var R=Me[t+(s+2)],T=Me[t+(s+3)];if((0|R)!=(0|T)){var O=((E>>>2&1073741822)<<2)+vi+40|0,N=(0|R)!=(0|O)&R>>>0>>0;do if(!N){if(!((0|T)==(0|O)|T>>>0>=b>>>0))break;Se[R+12>>2]=T,Se[T+8>>2]=R;var S=y,i=S>>2,M=m;break e}while(0);throw Ka(),"Reached an unreachable!"}var I=Se[vi>>2]&(1<<(E>>>3)^-1);Se[vi>>2]=I;var S=y,i=S>>2,M=m}else{var P=g,D=Me[t+(s+6)],L=Me[t+(s+3)],F=(0|L)==(0|P);do if(F){var X=A+(r+20)|0,j=Se[X>>2];if(0==(0|j)){var U=A+(r+16)|0,x=Se[U>>2];if(0==(0|x)){var z=0,e=z>>2;break}var V=U,B=x}else{var V=X,B=j;_=21}for(;;){var B,V,H=B+20|0,K=Se[H>>2];if(0==(0|K)){var Y=B+16|0,G=Me[Y>>2];if(0==(0|G))break;var V=Y,B=G}else var V=H,B=K}if(V>>>0>>0)throw Ka(),"Reached an unreachable!";Se[V>>2]=0;var z=B,e=z>>2}else{var W=Me[t+(s+2)];if(W>>>0>>0)throw Ka(),"Reached an unreachable!";Se[W+12>>2]=L,Se[L+8>>2]=W;var z=L,e=z>>2}while(0);var z;if(0==(0|D)){var S=y,i=S>>2,M=m;break}var Z=A+(r+28)|0,Q=(Se[Z>>2]<<2)+vi+304|0,q=(0|P)==(0|Se[Q>>2]);do{if(q){if(Se[Q>>2]=z,0!=(0|z))break;var $=Se[vi+4>>2]&(1<>2]^-1);Se[vi+4>>2]=$;var S=y,i=S>>2,M=m;break e}if(D>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";var J=D+16|0;if((0|Se[J>>2])==(0|P)?Se[J>>2]=z:Se[D+20>>2]=z,0==(0|z)){var S=y,i=S>>2,M=m;break e}}while(0);if(z>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[e+6]=D;var rr=Me[t+(s+4)];if(0!=(0|rr)){if(rr>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[e+4]=rr,Se[rr+24>>2]=z}var ar=Me[t+(s+5)];if(0==(0|ar)){var S=y,i=S>>2,M=m;break}if(ar>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[e+5]=ar,Se[ar+24>>2]=z;var S=y,i=S>>2,M=m}}else var S=l,i=S>>2,M=h;while(0);var M,S,er=S;if(er>>>0>=d>>>0)break;var ir=r+(h-4)|0,vr=Me[ir>>2];if(0==(1&vr|0))break;var tr=0==(2&vr|0);do{if(tr){if((0|w)==(0|Se[vi+24>>2])){var fr=Se[vi+12>>2]+M|0;Se[vi+12>>2]=fr,Se[vi+24>>2]=S;var _r=1|fr;if(Se[i+1]=_r,(0|S)==(0|Se[vi+20>>2])&&(Se[vi+20>>2]=0,Se[vi+8>>2]=0),fr>>>0<=Me[vi+28>>2]>>>0)break r;ia(0);break r}if((0|w)==(0|Se[vi+20>>2])){var sr=Se[vi+8>>2]+M|0;Se[vi+8>>2]=sr,Se[vi+20>>2]=S;var nr=1|sr;Se[i+1]=nr;var or=er+sr|0;Se[or>>2]=sr;break r}var lr=(vr&-8)+M|0,br=vr>>>3,kr=vr>>>0<256;e:do if(kr){var ur=Me[s+f],cr=Me[((4|h)>>2)+s];if((0|ur)!=(0|cr)){var hr=((vr>>>2&1073741822)<<2)+vi+40|0,dr=(0|ur)==(0|hr);do{if(!dr){if(ur>>>0>2]>>>0){_=66;break}_=63;break}_=63}while(0);do if(63==_){if((0|cr)!=(0|hr)&&cr>>>0>2]>>>0)break;Se[ur+12>>2]=cr,Se[cr+8>>2]=ur;break e}while(0);throw Ka(),"Reached an unreachable!"}var wr=Se[vi>>2]&(1<>2]=wr}else{var pr=d,Er=Me[f+(s+4)],Ar=Me[((4|h)>>2)+s],gr=(0|Ar)==(0|pr);do if(gr){var yr=h+(r+12)|0,mr=Se[yr>>2];if(0==(0|mr)){var Sr=h+(r+8)|0,Mr=Se[Sr>>2];if(0==(0|Mr)){var Cr=0,a=Cr>>2;break}var Rr=Sr,Tr=Mr}else{var Rr=yr,Tr=mr;_=73}for(;;){var Tr,Rr,Or=Tr+20|0,Nr=Se[Or>>2];if(0==(0|Nr)){var Ir=Tr+16|0,Pr=Me[Ir>>2];if(0==(0|Pr))break;var Rr=Ir,Tr=Pr}else var Rr=Or,Tr=Nr}if(Rr>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[Rr>>2]=0;var Cr=Tr,a=Cr>>2}else{var Dr=Me[s+f];if(Dr>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[Dr+12>>2]=Ar,\nSe[Ar+8>>2]=Dr;var Cr=Ar,a=Cr>>2}while(0);var Cr;if(0==(0|Er))break;var Lr=h+(r+20)|0,Fr=(Se[Lr>>2]<<2)+vi+304|0,Xr=(0|pr)==(0|Se[Fr>>2]);do{if(Xr){if(Se[Fr>>2]=Cr,0!=(0|Cr))break;var jr=Se[vi+4>>2]&(1<>2]^-1);Se[vi+4>>2]=jr;break e}if(Er>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";var Ur=Er+16|0;if((0|Se[Ur>>2])==(0|pr)?Se[Ur>>2]=Cr:Se[Er+20>>2]=Cr,0==(0|Cr))break e}while(0);if(Cr>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[a+6]=Er;var xr=Me[f+(s+2)];if(0!=(0|xr)){if(xr>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[a+4]=xr,Se[xr+24>>2]=Cr}var zr=Me[f+(s+3)];if(0==(0|zr))break;if(zr>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[a+5]=zr,Se[zr+24>>2]=Cr}while(0);if(Se[i+1]=1|lr,Se[er+lr>>2]=lr,(0|S)!=(0|Se[vi+20>>2])){var Vr=lr;break}Se[vi+8>>2]=lr;break r}Se[ir>>2]=vr&-2,Se[i+1]=1|M,Se[er+M>>2]=M;var Vr=M}while(0);var Vr;if(Vr>>>0<256){var Br=Vr>>>2&1073741822,Hr=(Br<<2)+vi+40|0,Kr=Me[vi>>2],Yr=1<<(Vr>>>3),Gr=0==(Kr&Yr|0);do{if(!Gr){var Wr=(Br+2<<2)+vi+40|0,Zr=Me[Wr>>2];if(Zr>>>0>=Me[vi+16>>2]>>>0){var Qr=Zr,qr=Wr;break}throw Ka(),"Reached an unreachable!"}Se[vi>>2]=Kr|Yr;var Qr=Hr,qr=(Br+2<<2)+vi+40|0}while(0);var qr,Qr;Se[qr>>2]=S,Se[Qr+12>>2]=S,Se[i+2]=Qr,Se[i+3]=Hr;break r}var $r=S,Jr=Vr>>>8,ra=0==(0|Jr);do if(ra)var aa=0;else{if(Vr>>>0>16777215){var aa=31;break}var ea=(Jr+1048320|0)>>>16&8,va=Jr<>>16&4,_a=va<>>16&2,na=14-(fa|ea|sa)+(_a<>>15)|0,aa=Vr>>>((na+7|0)>>>0)&1|na<<1}while(0);var aa,oa=(aa<<2)+vi+304|0;Se[i+7]=aa,Se[i+5]=0,Se[i+4]=0;var la=Se[vi+4>>2],ba=1<>2]=ua,Se[oa>>2]=$r,Se[i+6]=oa,Se[i+3]=S,Se[i+2]=S}else{if(31==(0|aa))var ca=0;else var ca=25-(aa>>>1)|0;for(var ca,ha=Vr<>2];;){var da,ha;if((Se[da+4>>2]&-8|0)==(0|Vr)){var wa=da+8|0,pa=Me[wa>>2],Ea=Me[vi+16>>2],Aa=da>>>0>>0;do if(!Aa){if(pa>>>0>>0)break;Se[pa+12>>2]=$r,Se[wa>>2]=$r,Se[i+2]=pa,Se[i+3]=da,Se[i+6]=0;break e}while(0);throw Ka(),"Reached an unreachable!"}var ga=(ha>>>31<<2)+da+16|0,ya=Me[ga>>2];if(0==(0|ya)){if(ga>>>0>=Me[vi+16>>2]>>>0){Se[ga>>2]=$r,Se[i+6]=da,Se[i+3]=S,Se[i+2]=S;break e}throw Ka(),"Reached an unreachable!"}var ha=ha<<1,da=ya}}while(0);var ma=Se[vi+32>>2]-1|0;if(Se[vi+32>>2]=ma,0!=(0|ma))break r;ta();break r}while(0);throw Ka(),"Reached an unreachable!"}while(0)}function ta(){var r=Se[vi+452>>2],a=0==(0|r);r:do if(!a)for(var e=r;;){var e,i=Se[e+8>>2];if(0==(0|i))break r;var e=i}while(0);Se[vi+32>>2]=-1}function fa(r,a){if(0==(0|r))var e=Jr(a),i=e;else var v=la(r,a),i=v;var i;return i}function _a(r,a){var e,i=r>>>0<9;do if(i)var v=Jr(a),t=v;else{var f=r>>>0<16?16:r,_=0==(f-1&f|0);r:do if(_)var s=f;else{if(f>>>0<=16){var s=16;break}for(var n=16;;){var n,o=n<<1;if(o>>>0>=f>>>0){var s=o;break r}var n=o}}while(0);var s;if((-64-s|0)>>>0>a>>>0){if(a>>>0<11)var l=16;else var l=a+11&-8;var l,b=Jr(l+(s+12)|0);if(0==(0|b)){var t=0;break}var k=b-8|0;if(0==((b>>>0)%(s>>>0)|0))var u=k,c=0;else{var h=b+(s-1)&-s,d=h-8|0,w=k;if((d-w|0)>>>0>15)var p=d;else var p=h+(s-8)|0;var p,E=p-w|0,e=(b-4|0)>>2,A=Se[e],g=(A&-8)-E|0;if(0==(3&A|0)){var y=Se[k>>2]+E|0;Se[p>>2]=y,Se[p+4>>2]=g;var u=p,c=0}else{var m=p+4|0,S=g|1&Se[m>>2]|2;Se[m>>2]=S;var M=g+(p+4)|0,C=1|Se[M>>2];Se[M>>2]=C;var R=E|1&Se[e]|2;Se[e]=R;var T=b+(E-4)|0,O=1|Se[T>>2];Se[T>>2]=O;var u=p,c=b}}var c,u,N=u+4|0,I=Me[N>>2],P=0==(3&I|0);do if(P)var D=0;else{var L=I&-8;if(L>>>0<=(l+16|0)>>>0){var D=0;break}var F=L-l|0;Se[N>>2]=l|1&I|2,Se[u+(4|l)>>2]=3|F;var X=u+(4|L)|0,j=1|Se[X>>2];Se[X>>2]=j;var D=l+(u+8)|0}while(0);var D;0!=(0|c)&&va(c),0!=(0|D)&&va(D);var t=u+8|0}else{var U=Je();Se[U>>2]=12;var t=0}}while(0);var t;return t}function sa(r,a,e,i){var v,t;0==(0|Se[ti>>2])&&ba();var f=0==(0|i),_=0==(0|r);do{if(f){if(_){var s=Jr(0),n=s;t=30;break}var o=r<<2;if(o>>>0<11){var l=0,b=16;t=9;break}var l=0,b=o+11&-8;t=9;break}if(_){var n=i;t=30;break}var l=i,b=0;t=9;break}while(0);do if(9==t){var b,l,k=0==(1&e|0);r:do if(k){if(_){var u=0,c=0;break}for(var h=0,d=0;;){var d,h,w=Me[a+(d<<2)>>2];if(w>>>0<11)var p=16;else var p=w+11&-8;var p,E=p+h|0,A=d+1|0;if((0|A)==(0|r)){var u=0,c=E;break r}var h=E,d=A}}else{var g=Me[a>>2];if(g>>>0<11)var y=16;else var y=g+11&-8;var y,u=y,c=y*r|0}while(0);var c,u,m=Jr(b-4+c|0);if(0==(0|m)){var n=0;break}var S=m-8|0,M=Se[m-4>>2]&-8;if(0!=(2&e|0)){var C=-4-b+M|0;Fa(m,0,C,1)}if(0==(0|l)){var R=m+c|0,T=M-c|3;Se[m+(c-4)>>2]=T;var O=R,v=O>>2,N=c}else var O=l,v=O>>2,N=M;var N,O;Se[v]=m;var I=r-1|0,P=0==(0|I);r:do if(P)var D=S,L=N;else if(0==(0|u))for(var F=S,X=N,j=0;;){var j,X,F,U=Me[a+(j<<2)>>2];if(U>>>0<11)var x=16;else var x=U+11&-8;var x,z=X-x|0;Se[F+4>>2]=3|x;var V=F+x|0,B=j+1|0;if(Se[(B<<2>>2)+v]=x+(F+8)|0,(0|B)==(0|I)){var D=V,L=z;break r}var F=V,X=z,j=B}else for(var H=3|u,K=u+8|0,Y=S,G=N,W=0;;){var W,G,Y,Z=G-u|0;Se[Y+4>>2]=H;var Q=Y+u|0,q=W+1|0;if(Se[(q<<2>>2)+v]=Y+K|0,(0|q)==(0|I)){var D=Q,L=Z;break r}var Y=Q,G=Z,W=q}while(0);var L,D;Se[D+4>>2]=3|L;var n=O}while(0);var n;return n}function na(r){var a=r>>2;0==(0|Se[ti>>2])&&ba();var e=Me[vi+24>>2];if(0==(0|e))var i=0,v=0,t=0,f=0,_=0,s=0,n=0;else{for(var o=Me[vi+12>>2],l=o+40|0,b=vi+444|0,k=l,u=l,c=1;;){var c,u,k,b,h=Me[b>>2],d=h+8|0;if(0==(7&d|0))var w=0;else var w=7&-d;for(var w,p=b+4|0,E=h+w|0,A=c,g=u,y=k;;){var y,g,A,E;if(E>>>0>>0)break;if(E>>>0>=(h+Se[p>>2]|0)>>>0|(0|E)==(0|e))break;var m=Se[E+4>>2];if(7==(0|m))break;var S=m&-8,M=S+y|0;if(1==(3&m|0))var C=A+1|0,R=S+g|0;else var C=A,R=g;var R,C,E=E+S|0,A=C,g=R,y=M}var T=Me[b+8>>2];if(0==(0|T))break;var b=T,k=y,u=g,c=A}var O=Se[vi+432>>2],i=y,v=A,t=o,f=g,_=O-y|0,s=Se[vi+436>>2],n=O-g|0}var n,s,_,f,t,v,i;Se[a]=i,Se[a+1]=v,Se[a+2]=0,Se[a+3]=0,Se[a+4]=_,Se[a+5]=s,Se[a+6]=0,Se[a+7]=n,Se[a+8]=f,Se[a+9]=t}function oa(){0==(0|Se[ti>>2])&&ba();var r=Me[vi+24>>2],a=0==(0|r);r:do if(a)var e=0,i=0,v=0;else for(var t=Se[vi+436>>2],f=Me[vi+432>>2],_=vi+444|0,s=f-40-Se[vi+12>>2]|0;;){var s,_,n=Me[_>>2],o=n+8|0;if(0==(7&o|0))var l=0;else var l=7&-o;for(var l,b=_+4|0,k=n+l|0,u=s;;){var u,k;if(k>>>0>>0)break;if(k>>>0>=(n+Se[b>>2]|0)>>>0|(0|k)==(0|r))break;var c=Se[k+4>>2];if(7==(0|c))break;var h=c&-8,d=1==(3&c|0)?h:0,w=u-d|0,k=k+h|0,u=w}var p=Me[_+8>>2];if(0==(0|p)){var e=t,i=f,v=u;break r}var _=p,s=u}while(0);var v,i,e,E=Se[Se[qe>>2]+12>>2],A=(Qa(E,0|He.__str339,(ne=Oe,Oe+=4,Se[ne>>2]=e,ne)),Se[Se[qe>>2]+12>>2]),g=(Qa(A,0|He.__str1340,(ne=Oe,Oe+=4,Se[ne>>2]=i,ne)),Se[Se[qe>>2]+12>>2]);Qa(g,0|He.__str2341,(ne=Oe,Oe+=4,Se[ne>>2]=v,ne))}function la(r,a){var e,i,v,t=a>>>0>4294967231;r:do{if(!t){var f=r-8|0,_=f,i=(r-4|0)>>2,s=Me[i],n=s&-8,o=n-8|0,l=r+o|0,b=f>>>0>2]>>>0;do if(!b){var k=3&s;if(!(1!=(0|k)&(0|o)>-8))break;var e=(r+(n-4)|0)>>2;if(0==(1&Se[e]|0))break;if(a>>>0<11)var u=16;else var u=a+11&-8;var u,c=0==(0|k);do{if(c){var h=ka(_,u),d=0,w=h;v=17;break}if(n>>>0>>0){if((0|l)!=(0|Se[vi+24>>2])){v=21;break}var p=Se[vi+12>>2]+n|0;if(p>>>0<=u>>>0){v=21;break}var E=p-u|0,A=r+(u-8)|0;Se[i]=u|1&s|2;var g=1|E;Se[r+(u-4)>>2]=g,Se[vi+24>>2]=A,Se[vi+12>>2]=E;var d=0,w=_;v=17;break}var y=n-u|0;if(y>>>0<=15){var d=0,w=_;v=17;break}Se[i]=u|1&s|2,Se[r+(u-4)>>2]=3|y;var m=1|Se[e];Se[e]=m;var d=r+u|0,w=_;v=17;break}while(0);do if(17==v){var w,d;if(0==(0|w))break;0!=(0|d)&&va(d);var S=w+8|0;break r}while(0);var M=Jr(a);if(0==(0|M)){var S=0;break r}var C=0==(3&Se[i]|0)?8:4,R=n-C|0,T=R>>>0>>0?R:a;Pa(M,r,T,1),va(r);var S=M;break r}while(0);throw Ka(),"Reached an unreachable!"}var O=Je();Se[O>>2]=12;var S=0}while(0);var S;return S}function ba(){if(0==(0|Se[ti>>2])){var r=qa(8);if(0!=(r-1&r|0))throw Ka(),"Reached an unreachable!";Se[ti+8>>2]=r,Se[ti+4>>2]=r,Se[ti+12>>2]=-1,Se[ti+16>>2]=2097152,Se[ti+20>>2]=0,Se[vi+440>>2]=0;var a=$a(0);Se[ti>>2]=a&-16^1431655768}}function ka(r,a){var e=Se[r+4>>2]&-8,i=a>>>0<256;do if(i)var v=0;else{if(e>>>0>=(a+4|0)>>>0&&(e-a|0)>>>0<=Se[ti+8>>2]<<1>>>0){var v=r;break}var v=0}while(0);var v;return v}function ua(r){for(var a,e=vi+444|0,a=e>>2;;){var e,i=Me[a];if(i>>>0<=r>>>0&&(i+Se[a+1]|0)>>>0>r>>>0){var v=e;break}var t=Me[a+2];if(0==(0|t)){var v=0;break}var e=t,a=e>>2}var v;return v}function ca(r,a){var e=r,i=r+8|0;if(0==(7&i|0))var v=0;else var v=7&-i;var v,t=a-v|0;Se[vi+24>>2]=e+v|0,Se[vi+12>>2]=t,Se[v+(e+4)>>2]=1|t,Se[a+(e+4)>>2]=40;var f=Se[ti+16>>2];Se[vi+28>>2]=f}function ha(){for(var r=0;;){var r,a=r<<1,e=(a<<2)+vi+40|0;Se[vi+(a+3<<2)+40>>2]=e,Se[vi+(a+2<<2)+40>>2]=e;var i=r+1|0;if(32==(0|i))break;var r=i}}function da(r,a,e){var i,v,t,f,_=a>>2,s=r>>2,n=r+8|0;if(0==(7&n|0))var o=0;else var o=7&-n;var o,l=a+8|0;if(0==(7&l|0))var b=0,t=b>>2;else var b=7&-l,t=b>>2;var b,k=a+b|0,u=k,c=o+e|0,v=c>>2,h=r+c|0,d=h,w=k-(r+o)-e|0;Se[(o+4>>2)+s]=3|e;var p=(0|u)==(0|Se[vi+24>>2]);r:do if(p){var E=Se[vi+12>>2]+w|0;Se[vi+12>>2]=E,Se[vi+24>>2]=d;var A=1|E;Se[v+(s+1)]=A}else if((0|u)==(0|Se[vi+20>>2])){var g=Se[vi+8>>2]+w|0;Se[vi+8>>2]=g,Se[vi+20>>2]=d;var y=1|g;Se[v+(s+1)]=y;var m=r+g+c|0;Se[m>>2]=g}else{var S=Me[t+(_+1)];if(1==(3&S|0)){var M=S&-8,C=S>>>3,R=S>>>0<256;a:do if(R){var T=Me[((8|b)>>2)+_],O=Me[t+(_+3)];if((0|T)!=(0|O)){var N=((S>>>2&1073741822)<<2)+vi+40|0,I=(0|T)==(0|N);do{if(!I){if(T>>>0>2]>>>0){f=18;break}f=15;break}f=15}while(0);do if(15==f){if((0|O)!=(0|N)&&O>>>0>2]>>>0)break;Se[T+12>>2]=O,Se[O+8>>2]=T;break a}while(0);throw Ka(),"Reached an unreachable!"}var P=Se[vi>>2]&(1<>2]=P}else{var D=k,L=Me[((24|b)>>2)+_],F=Me[t+(_+3)],X=(0|F)==(0|D);do if(X){var j=16|b,U=j+(a+4)|0,x=Se[U>>2];if(0==(0|x)){var z=a+j|0,V=Se[z>>2];if(0==(0|V)){var B=0,i=B>>2;break}var H=z,K=V}else{var H=U,K=x;f=25}for(;;){var K,H,Y=K+20|0,G=Se[Y>>2];if(0==(0|G)){var W=K+16|0,Z=Me[W>>2];if(0==(0|Z))break;var H=W,K=Z}else var H=Y,K=G}if(H>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[H>>2]=0;var B=K,i=B>>2}else{var Q=Me[((8|b)>>2)+_];if(Q>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[Q+12>>2]=F,Se[F+8>>2]=Q;var B=F,i=B>>2}while(0);var B;if(0==(0|L))break;var q=b+(a+28)|0,$=(Se[q>>2]<<2)+vi+304|0,J=(0|D)==(0|Se[$>>2]);do{if(J){if(Se[$>>2]=B,0!=(0|B))break;var rr=Se[vi+4>>2]&(1<>2]^-1);Se[vi+4>>2]=rr;break a}if(L>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";var ar=L+16|0;if((0|Se[ar>>2])==(0|D)?Se[ar>>2]=B:Se[L+20>>2]=B,0==(0|B))break a}while(0);if(B>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[i+6]=L;var er=16|b,ir=Me[(er>>2)+_];if(0!=(0|ir)){if(ir>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[i+4]=ir,Se[ir+24>>2]=B}var vr=Me[(er+4>>2)+_];if(0==(0|vr))break;if(vr>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[i+5]=vr,Se[vr+24>>2]=B}while(0);var tr=a+(M|b)|0,fr=M+w|0}else var tr=u,fr=w;var fr,tr,_r=tr+4|0,sr=Se[_r>>2]&-2;if(Se[_r>>2]=sr,Se[v+(s+1)]=1|fr,Se[(fr>>2)+s+v]=fr,fr>>>0<256){var nr=fr>>>2&1073741822,or=(nr<<2)+vi+40|0,lr=Me[vi>>2],br=1<<(fr>>>3),kr=0==(lr&br|0);do{if(!kr){var ur=(nr+2<<2)+vi+40|0,cr=Me[ur>>2];if(cr>>>0>=Me[vi+16>>2]>>>0){var hr=cr,dr=ur;break}throw Ka(),"Reached an unreachable!"}Se[vi>>2]=lr|br;var hr=or,dr=(nr+2<<2)+vi+40|0}while(0);var dr,hr;Se[dr>>2]=d,Se[hr+12>>2]=d,Se[v+(s+2)]=hr,Se[v+(s+3)]=or}else{var wr=h,pr=fr>>>8,Er=0==(0|pr);do if(Er)var Ar=0;else{if(fr>>>0>16777215){var Ar=31;break}var gr=(pr+1048320|0)>>>16&8,yr=pr<>>16&4,Sr=yr<>>16&2,Cr=14-(mr|gr|Mr)+(Sr<>>15)|0,Ar=fr>>>((Cr+7|0)>>>0)&1|Cr<<1}while(0);var Ar,Rr=(Ar<<2)+vi+304|0;Se[v+(s+7)]=Ar;var Tr=c+(r+16)|0;Se[v+(s+5)]=0,Se[Tr>>2]=0;var Or=Se[vi+4>>2],Nr=1<>2]=Ir,Se[Rr>>2]=wr,Se[v+(s+6)]=Rr,Se[v+(s+3)]=wr,Se[v+(s+2)]=wr}else{if(31==(0|Ar))var Pr=0;else var Pr=25-(Ar>>>1)|0;for(var Pr,Dr=fr<>2];;){var Lr,Dr;if((Se[Lr+4>>2]&-8|0)==(0|fr)){var Fr=Lr+8|0,Xr=Me[Fr>>2],jr=Me[vi+16>>2],Ur=Lr>>>0>>0;do if(!Ur){if(Xr>>>0>>0)break;Se[Xr+12>>2]=wr,Se[Fr>>2]=wr,Se[v+(s+2)]=Xr,Se[v+(s+3)]=Lr,Se[v+(s+6)]=0;break r}while(0);throw Ka(),"Reached an unreachable!"}var xr=(Dr>>>31<<2)+Lr+16|0,zr=Me[xr>>2];if(0==(0|zr)){if(xr>>>0>=Me[vi+16>>2]>>>0){Se[xr>>2]=wr,Se[v+(s+6)]=Lr,Se[v+(s+3)]=wr,Se[v+(s+2)]=wr;break r}throw Ka(),"Reached an unreachable!"}var Dr=Dr<<1,Lr=zr}}}}while(0);return r+(8|o)|0}function wa(r){return 0|He.__str3342}function pa(r){return 0|He.__str14343}function Ea(r){Se[r>>2]=si+8|0}function Aa(r){0!=(0|r)&&va(r)}function ga(r){ya(r);var a=r;Aa(a)}function ya(r){var a=0|r;Ye(a)}function ma(r){var a=0|r;Ea(a),Se[r>>2]=ni+8|0}function Sa(r){var a=0|r;ya(a);var e=r;Aa(e)}function Ma(r,a){var e,i,v=Me[vi+24>>2],i=v>>2,t=v,f=ua(t),_=Se[f>>2],s=Se[f+4>>2],n=_+s|0,o=_+(s-39)|0;if(0==(7&o|0))var l=0;else var l=7&-o;var l,b=_+(s-47)+l|0,k=b>>>0<(v+16|0)>>>0?t:b,u=k+8|0,e=u>>2,c=u,h=r,d=a-40|0;ca(h,d);var w=k+4|0;Se[w>>2]=27,Se[e]=Se[vi+444>>2],Se[e+1]=Se[vi+448>>2],Se[e+2]=Se[vi+452>>2],Se[e+3]=Se[vi+456>>2],Se[vi+444>>2]=r,Se[vi+448>>2]=a,Se[vi+456>>2]=0,Se[vi+452>>2]=c;var p=k+28|0;Se[p>>2]=7;var E=(k+32|0)>>>0>>0;r:do if(E)for(var A=p;;){var A,g=A+4|0;if(Se[g>>2]=7,(A+8|0)>>>0>=n>>>0)break r;var A=g}while(0);var y=(0|k)==(0|t);r:do if(!y){var m=k-v|0,S=t+m|0,M=m+(t+4)|0,C=Se[M>>2]&-2;Se[M>>2]=C;var R=1|m;Se[i+1]=R;var T=S;if(Se[T>>2]=m,m>>>0<256){var O=m>>>2&1073741822,N=(O<<2)+vi+40|0,I=Me[vi>>2],P=1<<(m>>>3),D=0==(I&P|0);do{if(!D){var L=(O+2<<2)+vi+40|0,F=Me[L>>2];if(F>>>0>=Me[vi+16>>2]>>>0){var X=F,j=L;break}throw Ka(),"Reached an unreachable!"}var U=I|P;Se[vi>>2]=U;var X=N,j=(O+2<<2)+vi+40|0}while(0);var j,X;Se[j>>2]=v,Se[X+12>>2]=v,Se[i+2]=X,Se[i+3]=N}else{var x=v,z=m>>>8,V=0==(0|z);do if(V)var B=0;else{if(m>>>0>16777215){var B=31;break}var H=(z+1048320|0)>>>16&8,K=z<>>16&4,G=K<>>16&2,Z=14-(Y|H|W)+(G<>>15)|0,B=m>>>((Z+7|0)>>>0)&1|Z<<1}while(0);var B,Q=(B<<2)+vi+304|0;Se[i+7]=B,Se[i+5]=0,Se[i+4]=0;var q=Se[vi+4>>2],$=1<>2]=J,Se[Q>>2]=x,Se[i+6]=Q,Se[i+3]=v,Se[i+2]=v}else{if(31==(0|B))var rr=0;else var rr=25-(B>>>1)|0;for(var rr,ar=m<>2];;){var er,ar;if((Se[er+4>>2]&-8|0)==(0|m)){var ir=er+8|0,vr=Me[ir>>2],tr=Me[vi+16>>2],fr=er>>>0>>0;do if(!fr){if(vr>>>0>>0)break;Se[vr+12>>2]=x,Se[ir>>2]=x,Se[i+2]=vr,Se[i+3]=er,Se[i+6]=0;break r}while(0);throw Ka(),"Reached an unreachable!"}var _r=(ar>>>31<<2)+er+16|0,sr=Me[_r>>2];if(0==(0|sr)){if(_r>>>0>=Me[vi+16>>2]>>>0){Se[_r>>2]=x,Se[i+6]=er,Se[i+3]=v,Se[i+2]=v;break r}throw Ka(),"Reached an unreachable!"}var ar=ar<<1,er=sr}}}}while(0)}function Ca(r){return d(r)}function Ra(r,a){var e=0;do Ae[r+e]=Ae[a+e],e++;while(0!=Ae[a+e-1]);return r}function Ta(){var r=Ta;return r.LLVM_SAVEDSTACKS||(r.LLVM_SAVEDSTACKS=[]),r.LLVM_SAVEDSTACKS.push(le.stackSave()),r.LLVM_SAVEDSTACKS.length-1}function Oa(r){var a=Ta,e=a.LLVM_SAVEDSTACKS[r];a.LLVM_SAVEDSTACKS.splice(r,1),le.stackRestore(e)}function Na(r,a,e){for(var i=0;it?1:-1;i++}return 0}function Ia(r,a){var e=Ca(r),i=0;do Ae[r+e+i]=Ae[a+i],i++;while(0!=Ae[a+i-1]);return r}function Pa(r,a,e,i){if(e>=20&&a%2==r%2)if(a%4==r%4){for(var v=a+e;a%4;)Ae[r++]=Ae[a++];for(var t=a>>2,f=r>>2,_=v>>2;t<_;)Se[f++]=Se[t++];for(a=t<<2,r=f<<2;a>1,n=r>>1,o=v>>1;st?1:-1}return 0}function Fa(r,a,e,i){if(e>=20){for(var v=r+e;r%4;)Ae[r++]=a;a<0&&(a+=256);for(var t=r>>2,f=v>>2,_=a|a<<8|a<<16|a<<24;t>2],xe[1]=Se[a+_+4>>2],e=ze[0]):"i64"==r?e=[Se[a+_>>2],Se[a+_+4>>2]]:(r="i32",e=Se[a+_>>2]),_+=le.getNativeFieldSize(r),e}for(var i,v,t,f=r,_=0,s=[];;){var n=f;if(i=Ae[f],0===i)break;if(v=Ae[f+1],i=="%".charCodeAt(0)){var o=!1,l=!1,b=!1,k=!1;r:for(;;){switch(v){case"+".charCodeAt(0):o=!0;break;case"-".charCodeAt(0):l=!0;break;case"#".charCodeAt(0):b=!0;break;case"0".charCodeAt(0):if(k)break r;k=!0;break;default:break r}f++,v=Ae[f+1]}var u=0;if(v=="*".charCodeAt(0))u=e("i32"),f++,v=Ae[f+1];else for(;v>="0".charCodeAt(0)&&v<="9".charCodeAt(0);)u=10*u+(v-"0".charCodeAt(0)),f++,v=Ae[f+1];var c=!1;if(v==".".charCodeAt(0)){var h=0;if(c=!0,f++,v=Ae[f+1],v=="*".charCodeAt(0))h=e("i32"),f++;else for(;;){var d=Ae[f+1];if(d<"0".charCodeAt(0)||d>"9".charCodeAt(0))break;h=10*h+(d-"0".charCodeAt(0)),f++}v=Ae[f+1]}else var h=6;var E;switch(String.fromCharCode(v)){case"h":var A=Ae[f+2];A=="h".charCodeAt(0)?(f++,E=1):E=2;break;case"l":var A=Ae[f+2];A=="l".charCodeAt(0)?(f++,E=8):E=4;break;case"L":case"q":case"j":E=8;break;case"z":case"t":case"I":E=4;break;default:E=null}if(E&&f++,v=Ae[f+1],["d","i","u","o","x","X","p"].indexOf(String.fromCharCode(v))!=-1){var m=v=="d".charCodeAt(0)||v=="i".charCodeAt(0);E=E||4;var t=e("i"+8*E);if(8==E&&(t=le.makeBigInt(t[0],t[1],v=="u".charCodeAt(0))),E<=4){var S=Math.pow(256,E)-1;t=(m?y:g)(t&S,8*E)}var M,C=Math.abs(t),R="";if(v=="d".charCodeAt(0)||v=="i".charCodeAt(0))M=y(t,8*E,1).toString(10);else if(v=="u".charCodeAt(0))M=g(t,8*E,1).toString(10),t=Math.abs(t);else if(v=="o".charCodeAt(0))M=(b?"0":"")+C.toString(8);else if(v=="x".charCodeAt(0)||v=="X".charCodeAt(0)){if(R=b?"0x":"",t<0){t=-t,M=(C-1).toString(16);for(var T=[],O=0;OP&&P>=-4?(v=(v=="g".charCodeAt(0)?"f":"F").charCodeAt(0),h-=P+1):(v=(v=="g".charCodeAt(0)?"e":"E").charCodeAt(0),h--),I=Math.min(h,20)}v=="e".charCodeAt(0)||v=="E".charCodeAt(0)?(M=t.toExponential(I),/[eE][-+]\\\\d$/.test(M)&&(M=M.slice(0,-1)+"0"+M.slice(-1))):v!="f".charCodeAt(0)&&v!="F".charCodeAt(0)||(M=t.toFixed(I));var D=M.split("e");if(N&&!b)for(;D[0].length>1&&D[0].indexOf(".")!=-1&&("0"==D[0].slice(-1)||"."==D[0].slice(-1));)D[0]=D[0].slice(0,-1);else for(b&&M.indexOf(".")==-1&&(D[0]+=".");h>I++;)D[0]+="0";M=D[0]+(D.length>1?"e"+D[1]:""),v=="E".charCodeAt(0)&&(M=M.toUpperCase()),o&&t>=0&&(M="+"+M)}else M=(t<0?"-":"")+"inf",k=!1;for(;M.lengthh&&(L=L.slice(0,h))):L=p("(null)",!0),!l)for(;L.length0;)s.push(" ".charCodeAt(0));l||s.push(e("i8"))}else if(v=="n".charCodeAt(0)){var X=e("i32*");Se[X>>2]=s.length}else if(v=="%".charCodeAt(0))s.push(i);else for(var O=n;O="0".charCodeAt(0)&&r<="9".charCodeAt(0)}function Ha(r){for(var a;(a=Ae[r])&&Va(a);)r++;if(!a||!Ba(a))return 0;for(var e=r;(a=Ae[e])&&Ba(a);)e++;return Math.floor(Number(s(r).substr(0,e-r)))}function Ka(r){throw ke=!0,"ABORT: "+r+", at "+(new Error).stack}function Ya(r){return Ya.ret||(Ya.ret=_([0],"i32",we)),Se[Ya.ret>>2]=r,r}function Ga(r,a,e,i){var v=$e.streams[r];if(!v||v.object.isDevice)return Ya(Ge.EBADF),-1;if(v.isWrite){if(v.object.isFolder)return Ya(Ge.EISDIR),-1;if(e<0||i<0)return Ya(Ge.EINVAL),-1;for(var t=v.object.contents;t.length>2]=a),a}function Ja(){return Ya.ret}function re(r){var a=re;a.called||(Ie=o(Ie),a.called=!0);var e=Ie;return 0!=r&&le.staticAlloc(r),e}function ae(){return Se[ae.buf>>2]}function ee(r){r=r||Module.arguments,k();var a=null;return Module._main&&(a=Module.callMain(r),Module.noExitRuntime||u()),a}var ie=[],ve=false,te="object"==typeof window,fe="function"==typeof importScripts,_e=!te&&!ve&&!fe;if(ve){print=function(r){process.stdout.write(r+"\\\\n")},printErr=function(r){process.stderr.write(r+"\\\\n")};var se=require("fs");read=function(r){var a=se.readFileSync(r).toString();return a||"/"==r[0]||(r=__dirname.split("/").slice(0,-1).join("/")+"/src/"+r,a=se.readFileSync(r).toString()),a},load=function(a){r(read(a))},ie=process.argv.slice(2)}else if(_e)this.read||(this.read=function(r){snarf(r)}),"undefined"!=typeof scriptArgs?ie=scriptArgs:"undefined"!=typeof arguments&&(ie=arguments);else if(te)this.print=printErr=function(r){console.log(r)},this.read=function(r){var a=new XMLHttpRequest;return a.open("GET",r,!1),a.send(null),a.responseText},this.arguments&&(ie=arguments);else{if(!fe)throw"Unknown runtime environment. Where are we?";this.load=importScripts}"undefined"==typeof load&&"undefined"!=typeof read&&(this.load=function(a){r(read(a))}),"undefined"==typeof printErr&&(this.printErr=function(){}),"undefined"==typeof print&&(this.print=printErr);try{this.Module=Module}catch(r){this.Module=Module={}}Module.arguments||(Module.arguments=ie),Module.print&&(print=Module.print);var ne,oe,le={stackSave:function(){return Oe},stackRestore:function(r){Oe=r},forceAlign:function(r,a){if(a=a||4,1==a)return r;if(isNumber(r)&&isNumber(a))return Math.ceil(r/a)*a;if(isNumber(a)&&isPowerOfTwo(a)){var e=log2(a);return"(((("+r+")+"+(a-1)+")>>"+e+")<<"+e+")"}return"Math.ceil(("+r+")/"+a+")*"+a},isNumberType:function(r){return r in le.INT_TYPES||r in le.FLOAT_TYPES},isPointerType:function(r){return"*"==r[r.length-1]},isStructType:function(r){return!isPointerType(r)&&(!!/^\\\\[\\\\d+\\\\ x\\\\ (.*)\\\\]/.test(r)||(!!/?/.test(r)||"%"==r[0]))},INT_TYPES:{i1:0,i8:0,i16:0,i32:0,i64:0},FLOAT_TYPES:{float:0,double:0},bitshift64:function(r,e,i,v){var t=Math.pow(2,v)-1;if(v<32)switch(i){case"shl":return[r<>>32-v];case"ashr":return[(r>>>v|(e&t)<<32-v)>>0>>>0,e>>v>>>0];case"lshr":return[(r>>>v|(e&t)<<32-v)>>>0,e>>>v]}else if(32==v)switch(i){case"shl":return[0,r];case"ashr":return[e,(0|e)<0?t:0];case"lshr":return[e,0]}else switch(i){case"shl":return[0,r<>v-32>>>0,(0|e)<0?t:0];case"lshr":return[e>>>v-32,0]}a("unknown bitshift64 op: "+[value,i,v])},or64:function(r,a){var e=0|r|(0|a),i=4294967296*(Math.round(r/4294967296)|Math.round(a/4294967296));return e+i},and64:function(r,a){var e=(0|r)&(0|a),i=4294967296*(Math.round(r/4294967296)&Math.round(a/4294967296));return e+i},xor64:function(r,a){var e=(0|r)^(0|a),i=4294967296*(Math.round(r/4294967296)^Math.round(a/4294967296));return e+i},getNativeTypeSize:function(r,a){if(1==le.QUANTUM_SIZE)return 1;var i={"%i1":1,"%i8":1,"%i16":2,"%i32":4,"%i64":8,"%float":4,"%double":8}["%"+r];if(!i)if("*"==r[r.length-1])i=le.QUANTUM_SIZE;else if("i"==r[0]){var v=parseInt(r.substr(1));e(v%8==0),i=v/8}return i},getNativeFieldSize:function(r){return Math.max(le.getNativeTypeSize(r),le.QUANTUM_SIZE)},dedup:function(r,a){var e={};return a?r.filter(function(r){return!e[r[a]]&&(e[r[a]]=!0,!0)}):r.filter(function(r){return!e[r]&&(e[r]=!0,!0)})},set:function(){for(var r="object"==typeof arguments[0]?arguments[0]:arguments,a={},e=0;e=0&&a.push(f-e),e=f,f}),r.flatSize=le.alignMemory(r.flatSize,r.alignSize),0==a.length?r.flatFactor=r.flatSize:1==le.dedup(a).length&&(r.flatFactor=a[0]),r.needsFlattening=1!=r.flatFactor,r.flatIndexes},generateStructInfo:function(r,a,i){var v,t;if(a){if(i=i||0,v=("undefined"==typeof Types?le.typeInfo:Types.types)[a],!v)return null;e(v.fields.length===r.length,"Number of named fields must match the type for "+a),t=v.flatIndexes}else{var v={fields:r.map(function(r){return r[0]})};t=le.calculateStructAlignment(v)}var f={__size__:v.flatSize};return a?r.forEach(function(r,a){if("string"==typeof r)f[r]=t[a]+i;else{var e;for(var _ in r)e=_;f[e]=le.generateStructInfo(r[e],v.fields[a],t[a])}}):r.forEach(function(r,a){f[r[1]]=t[a]}),f},stackAlloc:function(r){var a=Oe;return Oe+=r,Oe=Oe+3>>2<<2,a},staticAlloc:function(r){var a=Ie;return Ie+=r,Ie=Ie+3>>2<<2,Ie>=Le&&l(),a},alignMemory:function(r,a){var e=r=Math.ceil(r/(a?a:4))*(a?a:4);return e},makeBigInt:function(r,a,e){var i=e?(r>>>0)+4294967296*(a>>>0):(r>>>0)+4294967296*(0|a);return i},QUANTUM_SIZE:4,__dummy__:0},be={MAX_ALLOWED:0,corrections:0,sigs:{},note:function(r,e,i){e||(this.corrections++,this.corrections>=this.MAX_ALLOWED&&a("\\\\n\\\\nToo many corrections!"))},print:function(){}},ke=!1,ue=0,ce=this;Module.ccall=i,Module.setValue=t,Module.getValue=f;var he=0,de=1,we=2;Module.ALLOC_NORMAL=he,Module.ALLOC_STACK=de,Module.ALLOC_STATIC=we,Module.allocate=_,Module.Pointer_stringify=s,Module.Array_stringify=n;var pe,Ee,Ae,ge,ye,me,Se,Me,Ce,Re,Te,Oe,Ne,Ie,Pe=4096,De=Module.TOTAL_STACK||5242880,Le=Module.TOTAL_MEMORY||10485760;Module.FAST_MEMORY||2097152;e(!!(Int32Array&&Float64Array&&new Int32Array(1).subarray&&new Int32Array(1).set),"Cannot fallback to non-typed array case: Code is too specialized");var Fe=new ArrayBuffer(Le);Ae=new Int8Array(Fe),ye=new Int16Array(Fe),Se=new Int32Array(Fe),ge=new Uint8Array(Fe),me=new Uint16Array(Fe),Me=new Uint32Array(Fe),Ce=new Float32Array(Fe),Re=new Float64Array(Fe),Se[0]=255,e(255===ge[0]&&0===ge[3],"Typed arrays 2 must be run on a little-endian system");var Xe=p("(null)");Ie=Xe.length;for(var je=0;je>2)),ze=(Ce.subarray(Ue>>2),Re.subarray(Ue>>3));Ne=Ue+8,Ie=o(Ne);var Ve=[],Be=[];Module.Array_copy=c,Module.TypedArray_copy=h,Module.String_len=d,Module.String_copy=w,Module.intArrayFromString=p,Module.intArrayToString=E,Module.writeStringToMemory=A;var He=[],Ke=0;O.X=1,N.X=1,V.X=1,H.X=1,G.X=1,W.X=1,q.X=1,$.X=1,rr.X=1,ar.X=1,er.X=1,vr.X=1,nr.X=1,or.X=1,kr.X=1,hr.X=1,Ar.X=1,Sr.X=1,Tr.X=1,Ir.X=1,Pr.X=1,Dr.X=1,Lr.X=1,Fr.X=1,Xr.X=1,zr.X=1,Vr.X=1,Br.X=1,Gr.X=1,$r.X=1,Module._malloc=Jr,Jr.X=1,ra.X=1,aa.X=1,ea.X=1,ia.X=1,Module._free=va,va.X=1,_a.X=1,sa.X=1,na.X=1,oa.X=1,la.X=1,da.X=1,Ma.X=1;var Ye,Ge={E2BIG:7,EACCES:13,EADDRINUSE:98,EADDRNOTAVAIL:99,EAFNOSUPPORT:97,EAGAIN:11,EALREADY:114,EBADF:9,EBADMSG:74,EBUSY:16,ECANCELED:125,ECHILD:10,ECONNABORTED:103,ECONNREFUSED:111,ECONNRESET:104,EDEADLK:35,EDESTADDRREQ:89,EDOM:33,EDQUOT:122,EEXIST:17,EFAULT:14,EFBIG:27,EHOSTUNREACH:113,EIDRM:43,EILSEQ:84,EINPROGRESS:115,EINTR:4,EINVAL:22,EIO:5,EISCONN:106,EISDIR:21,ELOOP:40,EMFILE:24,EMLINK:31,EMSGSIZE:90,EMULTIHOP:72,ENAMETOOLONG:36,ENETDOWN:100,ENETRESET:102,ENETUNREACH:101,ENFILE:23,ENOBUFS:105,ENODATA:61,ENODEV:19,ENOENT:2,ENOEXEC:8,ENOLCK:37,ENOLINK:67,ENOMEM:12,ENOMSG:42,ENOPROTOOPT:92,ENOSPC:28,ENOSR:63,ENOSTR:60,ENOSYS:38,ENOTCONN:107,ENOTDIR:20,ENOTEMPTY:39,ENOTRECOVERABLE:131,ENOTSOCK:88,ENOTSUP:95,ENOTTY:25,ENXIO:6,EOVERFLOW:75,EOWNERDEAD:130,EPERM:1,EPIPE:32,EPROTO:71,EPROTONOSUPPORT:93,EPROTOTYPE:91,ERANGE:34,EROFS:30,ESPIPE:29,ESRCH:3,ESTALE:116,ETIME:62,ETIMEDOUT:110,ETXTBSY:26,EWOULDBLOCK:11,EXDEV:18},We=0,Ze=0,Qe=0,qe=0,$e={currentPath:"/",nextInode:2,streams:[null],ignorePermissions:!0,absolutePath:function(r,a){if("string"!=typeof r)return null;void 0===a&&(a=$e.currentPath),r&&"/"==r[0]&&(a="");for(var e=a+"/"+r,i=e.split("/").reverse(),v=[""];i.length;){var t=i.pop();""==t||"."==t||(".."==t?v.length>1&&v.pop():v.push(t))}return 1==v.length?"/":v.join("/")},analyzePath:function(r,a,e){var i={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};if(r=$e.absolutePath(r),"/"==r)i.isRoot=!0,i.exists=i.parentExists=!0,i.name="/",i.path=i.parentPath="/",i.object=i.parentObject=$e.root;else if(null!==r){e=e||0,r=r.slice(1).split("/");for(var v=$e.root,t=[""];r.length;){1==r.length&&v.isFolder&&(i.parentExists=!0,i.parentPath=1==t.length?"/":t.join("/"),i.parentObject=v,i.name=r[0]);var f=r.shift();if(!v.isFolder){i.error=Ge.ENOTDIR;break}if(!v.read){i.error=Ge.EACCES;break}if(!v.contents.hasOwnProperty(f)){i.error=Ge.ENOENT;break}if(v=v.contents[f],v.link&&(!a||0!=r.length)){if(e>40){i.error=Ge.ELOOP;break}var _=$e.absolutePath(v.link,t.join("/"));return $e.analyzePath([_].concat(r).join("/"),a,e+1)}t.push(f),0==r.length&&(i.exists=!0,i.path=t.join("/"),i.object=v)}return i}return i},findObject:function(r,a){$e.ensureRoot();var e=$e.analyzePath(r,a);return e.exists?e.object:(Ya(e.error),null)},createObject:function(r,a,e,i,v){if(r||(r="/"),"string"==typeof r&&(r=$e.findObject(r)),!r)throw Ya(Ge.EACCES),new Error("Parent path must exist.");if(!r.isFolder)throw Ya(Ge.ENOTDIR),\nnew Error("Parent must be a folder.");if(!r.write&&!$e.ignorePermissions)throw Ya(Ge.EACCES),new Error("Parent folder must be writeable.");if(!a||"."==a||".."==a)throw Ya(Ge.ENOENT),new Error("Name must not be empty.");if(r.contents.hasOwnProperty(a))throw Ya(Ge.EEXIST),new Error("Can\'t overwrite object.");r.contents[a]={read:void 0===i||i,write:void 0!==v&&v,timestamp:Date.now(),inodeNumber:$e.nextInode++};for(var t in e)e.hasOwnProperty(t)&&(r.contents[a][t]=e[t]);return r.contents[a]},createFolder:function(r,a,e,i){var v={isFolder:!0,isDevice:!1,contents:{}};return $e.createObject(r,a,v,e,i)},createPath:function(r,a,e,i){var v=$e.findObject(r);if(null===v)throw new Error("Invalid parent.");for(a=a.split("/").reverse();a.length;){var t=a.pop();t&&(v.contents.hasOwnProperty(t)||$e.createFolder(v,t,e,i),v=v.contents[t])}return v},createFile:function(r,a,e,i,v){return e.isFolder=!1,$e.createObject(r,a,e,i,v)},createDataFile:function(r,a,e,i,v){if("string"==typeof e){for(var t=new Array(e.length),f=0,_=e.length;f<_;++f)t[f]=e.charCodeAt(f);e=t}var s={isDevice:!1,contents:e};return $e.createFile(r,a,s,i,v)},createLazyFile:function(r,a,e,i,v){var t={isDevice:!1,url:e};return $e.createFile(r,a,t,i,v)},createLink:function(r,a,e,i,v){var t={isDevice:!1,link:e};return $e.createFile(r,a,t,i,v)},createDevice:function(r,a,e,i){if(!e&&!i)throw new Error("A device must have at least one callback defined.");var v={isDevice:!0,input:e,output:i};return $e.createFile(r,a,v,Boolean(e),Boolean(i))},forceLoadFile:function(r){if(r.isDevice||r.isFolder||r.link||r.contents)return!0;var a=!0;if("undefined"!=typeof XMLHttpRequest)e("Cannot do synchronous binary XHRs in modern browsers. Use --embed-file or --preload-file in emcc");else{if("undefined"==typeof read)throw new Error("Cannot load without read() or XMLHttpRequest.");try{r.contents=p(read(r.url),!0)}catch(r){a=!1}}return a||Ya(Ge.EIO),a},ensureRoot:function(){$e.root||($e.root={read:!0,write:!0,isFolder:!0,isDevice:!1,timestamp:Date.now(),inodeNumber:1,contents:{}})},init:function(r,a,i){function v(r){null===r||r==="\\\\n".charCodeAt(0)?(a.printer(a.buffer.join("")),a.buffer=[]):a.buffer.push(String.fromCharCode(r))}e(!$e.init.initialized,"FS.init was previously called. If you want to initialize later with custom parameters, remove any earlier calls (note that one is automatically added to the generated code)"),$e.init.initialized=!0,$e.ensureRoot(),r=r||Module.stdin,a=a||Module.stdout,i=i||Module.stderr;var t=!0,f=!0,s=!0;r||(t=!1,r=function(){if(!r.cache||!r.cache.length){var a;"undefined"!=typeof window&&"function"==typeof window.prompt?a=window.prompt("Input: "):"function"==typeof readline&&(a=readline()),a||(a=""),r.cache=p(a+"\\\\n",!0)}return r.cache.shift()}),a||(f=!1,a=v),a.printer||(a.printer=print),a.buffer||(a.buffer=[]),i||(s=!1,i=v),i.printer||(i.printer=print),i.buffer||(i.buffer=[]),$e.createFolder("/","tmp",!0,!0);var n=$e.createFolder("/","dev",!0,!0),o=$e.createDevice(n,"stdin",r),l=$e.createDevice(n,"stdout",null,a),b=$e.createDevice(n,"stderr",null,i);$e.createDevice(n,"tty",r,a),$e.streams[1]={path:"/dev/stdin",object:o,position:0,isRead:!0,isWrite:!1,isAppend:!1,isTerminal:!t,error:!1,eof:!1,ungotten:[]},$e.streams[2]={path:"/dev/stdout",object:l,position:0,isRead:!1,isWrite:!0,isAppend:!1,isTerminal:!f,error:!1,eof:!1,ungotten:[]},$e.streams[3]={path:"/dev/stderr",object:b,position:0,isRead:!1,isWrite:!0,isAppend:!1,isTerminal:!s,error:!1,eof:!1,ungotten:[]},We=_([1],"void*",we),Ze=_([2],"void*",we),Qe=_([3],"void*",we),$e.createPath("/","dev/shm/tmp",!0,!0),$e.streams[We]=$e.streams[1],$e.streams[Ze]=$e.streams[2],$e.streams[Qe]=$e.streams[3],qe=_([_([0,0,0,0,We,0,0,0,Ze,0,0,0,Qe,0,0,0],"void*",we)],"void*",we)},quit:function(){$e.init.initialized&&($e.streams[2]&&$e.streams[2].object.output.buffer.length>0&&$e.streams[2].object.output("\\\\n".charCodeAt(0)),$e.streams[3]&&$e.streams[3].object.output.buffer.length>0&&$e.streams[3].object.output("\\\\n".charCodeAt(0)))}},Je=Ja;Ve.unshift({func:function(){$e.ignorePermissions=!1,$e.init.initialized||$e.init()}}),Be.push({func:function(){$e.quit()}}),Ya(0),ae.buf=_(12,"void*",we),Module.callMain=function(r){function a(){for(var r=0;r<3;r++)i.push(0)}var e=r.length+1,i=[_(p("/bin/this.program"),"i8",we)];a();for(var v=0;v>2]=0|He.__str,Se[ri+4>>2]=0|He.__str1,Se[ri+16>>2]=0|He.__str2,Se[ri+20>>2]=0|He.__str3,Se[ri+32>>2]=0|He.__str4,Se[ri+36>>2]=0|He.__str5,Se[ri+48>>2]=0|He.__str6,Se[ri+52>>2]=0|He.__str7,Se[ri+64>>2]=0|He.__str8,Se[ri+68>>2]=0|He.__str7,Se[ri+80>>2]=0|He.__str9,Se[ri+84>>2]=0|He.__str10,Se[ri+96>>2]=0|He.__str11,Se[ri+100>>2]=0|He.__str12,Se[ri+112>>2]=0|He.__str13,Se[ri+116>>2]=0|He.__str14,Se[ri+128>>2]=0|He.__str15,Se[ri+132>>2]=0|He.__str16,Se[ri+144>>2]=0|He.__str17,Se[ri+148>>2]=0|He.__str18,Se[ri+160>>2]=0|He.__str19,Se[ri+164>>2]=0|He.__str20,Se[ri+176>>2]=0|He.__str21,Se[ri+180>>2]=0|He.__str22,Se[ri+192>>2]=0|He.__str23,Se[ri+196>>2]=0|He.__str24,Se[ri+208>>2]=0|He.__str25,Se[ri+212>>2]=0|He.__str26,Se[ri+224>>2]=0|He.__str27,Se[ri+228>>2]=0|He.__str28,Se[ri+240>>2]=0|He.__str29,Se[ri+244>>2]=0|He.__str30,Se[ri+256>>2]=0|He.__str31,Se[ri+260>>2]=0|He.__str32,Se[ri+272>>2]=0|He.__str33,Se[ri+276>>2]=0|He.__str34,Se[ri+288>>2]=0|He.__str35,Se[ri+292>>2]=0|He.__str36,Se[ri+304>>2]=0|He.__str37,Se[ri+308>>2]=0|He.__str38,Se[ri+320>>2]=0|He.__str39,Se[ri+324>>2]=0|He.__str40,Se[ri+336>>2]=0|He.__str41,Se[ri+340>>2]=0|He.__str42,Se[ri+352>>2]=0|He.__str43,Se[ri+356>>2]=0|He.__str44,Se[ri+368>>2]=0|He.__str45,Se[ri+372>>2]=0|He.__str46,Se[ri+384>>2]=0|He.__str47,Se[ri+388>>2]=0|He.__str48,Se[ri+400>>2]=0|He.__str49,Se[ri+404>>2]=0|He.__str119289,Se[ri+416>>2]=0|He.__str51,Se[ri+420>>2]=0|He.__str20,Se[ri+432>>2]=0|He.__str52,Se[ri+436>>2]=0|He.__str53,Se[ri+448>>2]=0|He.__str54,Se[ri+452>>2]=0|He.__str55,Se[ri+464>>2]=0|He.__str56,Se[ri+468>>2]=0|He.__str57,Se[ri+480>>2]=0|He.__str58,Se[ri+484>>2]=0|He.__str119289,Se[ri+496>>2]=0|He.__str59,Se[ri+500>>2]=0|He.__str60,Se[ri+512>>2]=0|He.__str61,Se[ri+516>>2]=0|He.__str62,Se[ri+528>>2]=0|He.__str63,Se[ri+532>>2]=0|He.__str64,Se[ri+544>>2]=0|He.__str65,Se[ri+548>>2]=0|He.__str66,Se[ri+560>>2]=0|He.__str67,Se[ri+564>>2]=0|He.__str68,Se[ri+576>>2]=0|He.__str69,Se[ri+580>>2]=0|He.__str70,Se[ri+592>>2]=0|He.__str71,Se[ri+596>>2]=0|He.__str72,Se[ri+608>>2]=0|He.__str73,Se[ri+612>>2]=0|He.__str74,Se[ri+624>>2]=0|He.__str75,Se[ri+628>>2]=0|He.__str76,Se[ri+640>>2]=0|He.__str77,Se[ri+644>>2]=0|He.__str72,Se[ri+656>>2]=0|He.__str78,Se[ri+660>>2]=0|He.__str79,Se[ri+672>>2]=0|He.__str80,Se[ri+676>>2]=0|He.__str81,Se[ri+688>>2]=0|He.__str82,Se[ri+692>>2]=0|He.__str83,Se[ri+704>>2]=0|He.__str84,Se[ri+708>>2]=0|He.__str85,Se[ri+720>>2]=0|He.__str86,Se[ri+724>>2]=0|He.__str87,Se[ri+736>>2]=0|He.__str88,Se[ri+740>>2]=0|He.__str89,Se[ri+752>>2]=0|He.__str90,Se[ri+756>>2]=0|He.__str91,Se[ri+768>>2]=0|He.__str92,Se[ri+772>>2]=0|He.__str91,Se[ai>>2]=0|He.__str145315,Se[ai+8>>2]=0|He.__str145315,Se[ai+20>>2]=0|He.__str167337,Se[ai+28>>2]=0|He.__str95,Se[ai+40>>2]=0|He.__str146316,Se[ai+48>>2]=0|He.__str97,Se[ai+60>>2]=0|He.__str155325,Se[ai+68>>2]=0|He.__str155325,Se[ai+80>>2]=0|He.__str156326,Se[ai+88>>2]=0|He.__str156326,Se[ai+100>>2]=0|He.__str154324,Se[ai+108>>2]=0|He.__str154324,Se[ai+120>>2]=0|He.__str101,Se[ai+128>>2]=0|He.__str101,Se[ai+140>>2]=0|He.__str147317,Se[ai+148>>2]=0|He.__str147317,Se[ai+160>>2]=0|He.__str150320,Se[ai+168>>2]=0|He.__str150320,Se[ai+180>>2]=0|He.__str151321,Se[ai+188>>2]=0|He.__str105,Se[ai+220>>2]=0|He.__str152322,Se[ai+228>>2]=0|He.__str152322,Se[ai+240>>2]=0|He.__str153323,Se[ai+248>>2]=0|He.__str153323,Se[ai+260>>2]=0|He.__str165335,Se[ai+268>>2]=0|He.__str165335,Se[ai+280>>2]=0|He.__str166336,Se[ai+288>>2]=0|He.__str166336,Se[ai+360>>2]=0|He.__str148318,Se[ai+368>>2]=0|He.__str148318,Se[ai+380>>2]=0|He.__str149319,Se[ai+388>>2]=0|He.__str149319,Se[ai+420>>2]=0|He.__str84254,Se[ai+428>>2]=0|He.__str84254,Se[ai+440>>2]=0|He.__str168338,Se[ai+448>>2]=0|He.__str146316,Se[ai+460>>2]=0|He.__str114,Se[ai+468>>2]=0|He.__str152322,Se[ai+480>>2]=0|He.__str115,Se[ai+488>>2]=0|He.__str115,Se[ai+500>>2]=0|He.__str110280,Se[ai+508>>2]=0|He.__str110280,Se[ei+4>>2]=0|He.__str152,Se[ei+12>>2]=0|He.__str152,Se[ei+32>>2]=0|He.__str153,Se[ei+40>>2]=0|He.__str153,Se[ei+48>>2]=0|He.__str154,Se[ei+60>>2]=0|He.__str155,Se[ei+68>>2]=0|He.__str155,Se[ei+76>>2]=0|He.__str156,Se[ei+88>>2]=0|He.__str157,Se[ei+96>>2]=0|He.__str158,Se[ei+104>>2]=0|He.__str156,Se[ei+116>>2]=0|He.__str159,Se[ei+124>>2]=0|He.__str160,Se[ei+132>>2]=0|He.__str161,Se[ei+144>>2]=0|He.__str162,Se[ei+152>>2]=0|He.__str163,Se[ei+160>>2]=0|He.__str164,Se[ei+172>>2]=0|He.__str165,Se[ei+180>>2]=0|He.__str166,Se[ei+188>>2]=0|He.__str167,Se[si+4>>2]=bi,Se[ni+4>>2]=ki,oi=_([2,0,0,0,0],["i8*",0,0,0,0],we),Se[bi>>2]=oi+8|0,Se[bi+4>>2]=0|He.__ZTSSt9bad_alloc,Se[bi+8>>2]=li,Se[ki>>2]=oi+8|0,Se[ki+4>>2]=0|He.__ZTSSt20bad_array_new_length,Se[ki+8>>2]=bi,ui=16,ci=6,hi=18,di=6,wi=6,pe=[0,0,Jr,0,va,0,ya,0,ga,0,wa,0,Sa,0,pa,0,Ea,0,ma,0],Module.FUNCTION_TABLE=pe,Module.run=ee,Module.preRun&&Module.preRun(),0==Ke){ee()}Module.postRun&&Module.postRun(),Module.___cxa_demangle=G;var pi=v("__cxa_demangle","string",["string","string","number","number"]);return function(r){return pi(r,"",1,0)}}();\n`;\n\n/***/ }),\n\n/***/ 121:\n/***/ ((__unused_webpack_module, exports, __webpack_require__) => {\n\n\n\nObject.defineProperty(exports, "__esModule", ({\n value: true\n}));\nexports.Flamechart = void 0;\n\nconst utils_1 = __webpack_require__(844);\n\nconst math_1 = __webpack_require__(293);\n\nclass Flamechart {\n constructor(source) {\n this.source = source; // Bottom to top\n\n this.layers = [];\n this.totalWeight = 0;\n this.minFrameWidth = 1;\n const stack = [];\n\n const openFrame = (node, value) => {\n const parent = utils_1.lastOf(stack);\n const frame = {\n node,\n parent,\n children: [],\n start: value,\n end: value\n };\n\n if (parent) {\n parent.children.push(frame);\n }\n\n stack.push(frame);\n };\n\n this.minFrameWidth = Infinity;\n\n const closeFrame = (node, value) => {\n console.assert(stack.length > 0);\n const stackTop = stack.pop();\n stackTop.end = value;\n if (stackTop.end - stackTop.start === 0) return;\n const layerIndex = stack.length;\n\n while (this.layers.length <= layerIndex) this.layers.push([]);\n\n this.layers[layerIndex].push(stackTop);\n this.minFrameWidth = Math.min(this.minFrameWidth, stackTop.end - stackTop.start);\n };\n\n this.totalWeight = source.getTotalWeight();\n source.forEachCall(openFrame, closeFrame);\n if (!isFinite(this.minFrameWidth)) this.minFrameWidth = 1;\n }\n\n getTotalWeight() {\n return this.totalWeight;\n }\n\n getLayers() {\n return this.layers;\n }\n\n getColorBucketForFrame(frame) {\n return this.source.getColorBucketForFrame(frame);\n }\n\n getMinFrameWidth() {\n return this.minFrameWidth;\n }\n\n formatValue(v) {\n return this.source.formatValue(v);\n }\n\n getClampedViewportWidth(viewportWidth) {\n const maxWidth = this.getTotalWeight(); // In order to avoid floating point error, we cap the maximum zoom. In\n // particular, it\'s important that at the maximum zoom level, the total\n // trace size + a viewport width is not equal to the trace size due to\n // floating point rounding.\n //\n // For instance, if the profile\'s total weight is 2^60, and the viewport\n // size is 1, trying to move one viewport width right will result in no\n // change because 2^60 + 1 = 2^60 in floating point arithmetic. JavaScript\n // numbers are 64 bit floats, and therefore have 53 mantissa bits. You can\n // see this for yourself in the console. Try:\n //\n // > Math.pow(2, 60) + 1 === Math.pow(2, 60)\n // true\n // > Math.pow(2, 53) + 1 === Math.pow(2, 53)\n // true\n // > Math.pow(2, 52) + 1 === Math.pow(2, 52)\n // false\n //\n // We use 2^40 as a cap instead, since we want to be able to make small\n // adjustments within a viewport width.\n //\n // For reference, this will still allow you to zoom until 1 nanosecond fills\n // the screen in a profile with a duration of over 18 minutes.\n //\n // > Math.pow(2, 40) / (60 * Math.pow(10, 9))\n // 18.325193796266667\n //\n\n const maxZoom = Math.pow(2, 40); // In addition to capping zoom to avoid floating point error, we further cap\n // zoom to avoid letting you zoom in so that the smallest element more than\n // fills the screen, since that probably isn\'t useful. The final zoom cap is\n // determined by the minimum zoom of either 2^40x zoom or the necessary zoom\n // for the smallest frame to fill the screen three times.\n\n const minWidth = math_1.clamp(3 * this.getMinFrameWidth(), maxWidth / maxZoom, maxWidth);\n return math_1.clamp(viewportWidth, minWidth, maxWidth);\n } // Given a desired config-space viewport rectangle, clamp the rectangle so\n // that it fits within the given flamechart. This prevents the viewport from\n // extending past the bounds of the flamechart or zooming in too far.\n\n\n getClampedConfigSpaceViewportRect({\n configSpaceViewportRect,\n renderInverted\n }) {\n const configSpaceSize = new math_1.Vec2(this.getTotalWeight(), this.getLayers().length);\n const width = this.getClampedViewportWidth(configSpaceViewportRect.size.x);\n const size = configSpaceViewportRect.size.withX(width);\n const origin = math_1.Vec2.clamp(configSpaceViewportRect.origin, new math_1.Vec2(0, renderInverted ? 0 : -1), math_1.Vec2.max(math_1.Vec2.zero, configSpaceSize.minus(size).plus(new math_1.Vec2(0, 1))));\n return new math_1.Rect(origin, configSpaceViewportRect.size.withX(width));\n }\n\n}\n\nexports.Flamechart = Flamechart;\n\n/***/ }),\n\n/***/ 293:\n/***/ ((__unused_webpack_module, exports) => {\n\n\n\nObject.defineProperty(exports, "__esModule", ({\n value: true\n}));\nexports.Rect = exports.AffineTransform = exports.Vec2 = exports.clamp = void 0;\n\nfunction clamp(x, minVal, maxVal) {\n if (x < minVal) return minVal;\n if (x > maxVal) return maxVal;\n return x;\n}\n\nexports.clamp = clamp;\n\nlet Vec2 =\n/** @class */\n(() => {\n class Vec2 {\n constructor(x, y) {\n this.x = x;\n this.y = y;\n }\n\n withX(x) {\n return new Vec2(x, this.y);\n }\n\n withY(y) {\n return new Vec2(this.x, y);\n }\n\n plus(other) {\n return new Vec2(this.x + other.x, this.y + other.y);\n }\n\n minus(other) {\n return new Vec2(this.x - other.x, this.y - other.y);\n }\n\n times(scalar) {\n return new Vec2(this.x * scalar, this.y * scalar);\n }\n\n timesPointwise(other) {\n return new Vec2(this.x * other.x, this.y * other.y);\n }\n\n dividedByPointwise(other) {\n return new Vec2(this.x / other.x, this.y / other.y);\n }\n\n dot(other) {\n return this.x * other.x + this.y * other.y;\n }\n\n equals(other) {\n return this.x === other.x && this.y === other.y;\n }\n\n approxEquals(other, epsilon = 1e-9) {\n return Math.abs(this.x - other.x) < epsilon && Math.abs(this.y - other.y) < epsilon;\n }\n\n length2() {\n return this.dot(this);\n }\n\n length() {\n return Math.sqrt(this.length2());\n }\n\n abs() {\n return new Vec2(Math.abs(this.x), Math.abs(this.y));\n }\n\n static min(a, b) {\n return new Vec2(Math.min(a.x, b.x), Math.min(a.y, b.y));\n }\n\n static max(a, b) {\n return new Vec2(Math.max(a.x, b.x), Math.max(a.y, b.y));\n }\n\n static clamp(v, min, max) {\n return new Vec2(clamp(v.x, min.x, max.x), clamp(v.y, min.y, max.y));\n }\n\n flatten() {\n return [this.x, this.y];\n }\n\n }\n\n Vec2.zero = new Vec2(0, 0);\n Vec2.unit = new Vec2(1, 1);\n return Vec2;\n})();\n\nexports.Vec2 = Vec2;\n\nclass AffineTransform {\n constructor(m00 = 1, m01 = 0, m02 = 0, m10 = 0, m11 = 1, m12 = 0) {\n this.m00 = m00;\n this.m01 = m01;\n this.m02 = m02;\n this.m10 = m10;\n this.m11 = m11;\n this.m12 = m12;\n }\n\n withScale(s) {\n let {\n m00,\n m01,\n m02,\n m10,\n m11,\n m12\n } = this;\n m00 = s.x;\n m11 = s.y;\n return new AffineTransform(m00, m01, m02, m10, m11, m12);\n }\n\n static withScale(s) {\n return new AffineTransform().withScale(s);\n }\n\n scaledBy(s) {\n return AffineTransform.withScale(s).times(this);\n }\n\n getScale() {\n return new Vec2(this.m00, this.m11);\n }\n\n withTranslation(t) {\n let {\n m00,\n m01,\n m02,\n m10,\n m11,\n m12\n } = this;\n m02 = t.x;\n m12 = t.y;\n return new AffineTransform(m00, m01, m02, m10, m11, m12);\n }\n\n static withTranslation(t) {\n return new AffineTransform().withTranslation(t);\n }\n\n getTranslation() {\n return new Vec2(this.m02, this.m12);\n }\n\n translatedBy(t) {\n return AffineTransform.withTranslation(t).times(this);\n }\n\n static betweenRects(from, to) {\n return AffineTransform.withTranslation(from.origin.times(-1)).scaledBy(new Vec2(to.size.x / from.size.x, to.size.y / from.size.y)).translatedBy(to.origin);\n }\n\n times(other) {\n const m00 = this.m00 * other.m00 + this.m01 * other.m10;\n const m01 = this.m00 * other.m01 + this.m01 * other.m11;\n const m02 = this.m00 * other.m02 + this.m01 * other.m12 + this.m02;\n const m10 = this.m10 * other.m00 + this.m11 * other.m10;\n const m11 = this.m10 * other.m01 + this.m11 * other.m11;\n const m12 = this.m10 * other.m02 + this.m11 * other.m12 + this.m12;\n return new AffineTransform(m00, m01, m02, m10, m11, m12);\n }\n\n equals(other) {\n return this.m00 == other.m00 && this.m01 == other.m01 && this.m02 == other.m02 && this.m10 == other.m10 && this.m11 == other.m11 && this.m12 == other.m12;\n }\n\n approxEquals(other, epsilon = 1e-9) {\n return Math.abs(this.m00 - other.m00) < epsilon && Math.abs(this.m01 - other.m01) < epsilon && Math.abs(this.m02 - other.m02) < epsilon && Math.abs(this.m10 - other.m10) < epsilon && Math.abs(this.m11 - other.m11) < epsilon && Math.abs(this.m12 - other.m12) < epsilon;\n }\n\n timesScalar(s) {\n const {\n m00,\n m01,\n m02,\n m10,\n m11,\n m12\n } = this;\n return new AffineTransform(s * m00, s * m01, s * m02, s * m10, s * m11, s * m12);\n }\n\n det() {\n const {\n m00,\n m01,\n m02,\n m10,\n m11,\n m12\n } = this;\n const m20 = 0;\n const m21 = 0;\n const m22 = 1;\n return m00 * (m11 * m22 - m12 * m21) - m01 * (m10 * m22 - m12 * m20) + m02 * (m10 * m21 - m11 * m20);\n }\n\n adj() {\n const {\n m00,\n m01,\n m02,\n m10,\n m11,\n m12\n } = this;\n const m20 = 0;\n const m21 = 0;\n const m22 = 1; // Adjugate matrix (a) is the transpose of the\n // cofactor matrix (c).\n //\n // 00 01 02\n // 10 11 12\n // 20 21 22\n\n const a00 =\n /* c00 = */\n +(m11 * m22 - m12 * m21);\n const a01 =\n /* c10 = */\n -(m01 * m22 - m02 * m21);\n const a02 =\n /* c20 = */\n +(m01 * m12 - m02 * m11);\n const a10 =\n /* c01 = */\n -(m10 * m22 - m12 * m20);\n const a11 =\n /* c11 = */\n +(m00 * m22 - m02 * m20);\n const a12 =\n /* c21 = */\n -(m00 * m12 - m02 * m10);\n return new AffineTransform(a00, a01, a02, a10, a11, a12);\n }\n\n inverted() {\n const det = this.det();\n if (det === 0) return null;\n const adj = this.adj();\n return adj.timesScalar(1 / det);\n }\n\n transformVector(v) {\n return new Vec2(v.x * this.m00 + v.y * this.m01, v.x * this.m10 + v.y * this.m11);\n }\n\n inverseTransformVector(v) {\n const inv = this.inverted();\n if (!inv) return null;\n return inv.transformVector(v);\n }\n\n transformPosition(v) {\n return new Vec2(v.x * this.m00 + v.y * this.m01 + this.m02, v.x * this.m10 + v.y * this.m11 + this.m12);\n }\n\n inverseTransformPosition(v) {\n const inv = this.inverted();\n if (!inv) return null;\n return inv.transformPosition(v);\n }\n\n transformRect(r) {\n const size = this.transformVector(r.size);\n const origin = this.transformPosition(r.origin);\n\n if (size.x < 0 && size.y < 0) {\n return new Rect(origin.plus(size), size.abs());\n } else if (size.x < 0) {\n return new Rect(origin.withX(origin.x + size.x), size.abs());\n } else if (size.y < 0) {\n return new Rect(origin.withY(origin.y + size.y), size.abs());\n }\n\n return new Rect(origin, size);\n }\n\n inverseTransformRect(r) {\n const inv = this.inverted();\n if (!inv) return null;\n return inv.transformRect(r);\n }\n\n flatten() {\n // Flatten into GLSL format\n // prettier-ignore\n return [this.m00, this.m10, 0, this.m01, this.m11, 0, this.m02, this.m12, 1];\n }\n\n}\n\nexports.AffineTransform = AffineTransform;\n\nlet Rect =\n/** @class */\n(() => {\n class Rect {\n constructor(origin, size) {\n this.origin = origin;\n this.size = size;\n }\n\n isEmpty() {\n return this.width() == 0 || this.height() == 0;\n }\n\n width() {\n return this.size.x;\n }\n\n height() {\n return this.size.y;\n }\n\n left() {\n return this.origin.x;\n }\n\n right() {\n return this.left() + this.width();\n }\n\n top() {\n return this.origin.y;\n }\n\n bottom() {\n return this.top() + this.height();\n }\n\n topLeft() {\n return this.origin;\n }\n\n topRight() {\n return this.origin.plus(new Vec2(this.width(), 0));\n }\n\n bottomRight() {\n return this.origin.plus(this.size);\n }\n\n bottomLeft() {\n return this.origin.plus(new Vec2(0, this.height()));\n }\n\n withOrigin(origin) {\n return new Rect(origin, this.size);\n }\n\n withSize(size) {\n return new Rect(this.origin, size);\n }\n\n closestPointTo(p) {\n return new Vec2(clamp(p.x, this.left(), this.right()), clamp(p.y, this.top(), this.bottom()));\n }\n\n distanceFrom(p) {\n return p.minus(this.closestPointTo(p)).length();\n }\n\n contains(p) {\n return this.distanceFrom(p) === 0;\n }\n\n hasIntersectionWith(other) {\n const top = Math.max(this.top(), other.top());\n const bottom = Math.max(top, Math.min(this.bottom(), other.bottom()));\n if (bottom - top === 0) return false;\n const left = Math.max(this.left(), other.left());\n const right = Math.max(left, Math.min(this.right(), other.right()));\n if (right - left === 0) return false;\n return true;\n }\n\n intersectWith(other) {\n const topLeft = Vec2.max(this.topLeft(), other.topLeft());\n const bottomRight = Vec2.max(topLeft, Vec2.min(this.bottomRight(), other.bottomRight()));\n return new Rect(topLeft, bottomRight.minus(topLeft));\n }\n\n equals(other) {\n return this.origin.equals(other.origin) && this.size.equals(other.size);\n }\n\n approxEquals(other) {\n return this.origin.approxEquals(other.origin) && this.size.approxEquals(other.size);\n }\n\n area() {\n return this.size.x * this.size.y;\n }\n\n }\n\n Rect.empty = new Rect(Vec2.zero, Vec2.zero);\n Rect.unit = new Rect(Vec2.zero, Vec2.unit);\n Rect.NDC = new Rect(new Vec2(-1, -1), new Vec2(2, 2));\n return Rect;\n})();\n\nexports.Rect = Rect;\n\n/***/ }),\n\n/***/ 211:\n/***/ (function(__unused_webpack_module, exports, __webpack_require__) {\n\n\n\nvar __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function () {\n return m[k];\n }\n });\n} : function (o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\n\nvar __setModuleDefault = this && this.__setModuleDefault || (Object.create ? function (o, v) {\n Object.defineProperty(o, "default", {\n enumerable: true,\n value: v\n });\n} : function (o, v) {\n o["default"] = v;\n});\n\nvar __importStar = this && this.__importStar || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n\n __setModuleDefault(result, mod);\n\n return result;\n};\n\nvar __awaiter = this && this.__awaiter || function (thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function (resolve) {\n resolve(value);\n });\n }\n\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n\n function rejected(value) {\n try {\n step(generator["throw"](value));\n } catch (e) {\n reject(e);\n }\n }\n\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\n\nObject.defineProperty(exports, "__esModule", ({\n value: true\n}));\nexports.CallTreeProfileBuilder = exports.StackListProfileBuilder = exports.Profile = exports.CallTreeNode = exports.Frame = exports.HasWeights = void 0;\n\nconst utils_1 = __webpack_require__(844);\n\nconst value_formatters_1 = __webpack_require__(218);\n\nconst demangleCppModule = Promise.resolve().then(() => __importStar(__webpack_require__(765))); // Force eager loading of the module\n\ndemangleCppModule.then(() => {});\n\nclass HasWeights {\n constructor() {\n this.selfWeight = 0;\n this.totalWeight = 0;\n }\n\n getSelfWeight() {\n return this.selfWeight;\n }\n\n getTotalWeight() {\n return this.totalWeight;\n }\n\n addToTotalWeight(delta) {\n this.totalWeight += delta;\n }\n\n addToSelfWeight(delta) {\n this.selfWeight += delta;\n }\n\n overwriteWeightWith(other) {\n this.selfWeight = other.selfWeight;\n this.totalWeight = other.totalWeight;\n }\n\n}\n\nexports.HasWeights = HasWeights;\n\nlet Frame =\n/** @class */\n(() => {\n class Frame extends HasWeights {\n constructor(info) {\n super();\n this.key = info.key;\n this.name = info.name;\n this.file = info.file;\n this.line = info.line;\n this.col = info.col;\n }\n\n static getOrInsert(set, info) {\n return set.getOrInsert(new Frame(info));\n }\n\n }\n\n Frame.root = new Frame({\n key: \'(speedscope root)\',\n name: \'(speedscope root)\'\n });\n return Frame;\n})();\n\nexports.Frame = Frame;\n\nclass CallTreeNode extends HasWeights {\n constructor(frame, parent) {\n super();\n this.frame = frame;\n this.parent = parent;\n this.children = []; // If a node is "frozen", it means it should no longer be mutated.\n\n this.frozen = false;\n }\n\n isRoot() {\n return this.frame === Frame.root;\n }\n\n isFrozen() {\n return this.frozen;\n }\n\n freeze() {\n this.frozen = true;\n }\n\n}\n\nexports.CallTreeNode = CallTreeNode;\n\nclass Profile {\n constructor(totalWeight = 0) {\n this.name = \'\';\n this.frames = new utils_1.KeyedSet(); // Profiles store two call-trees.\n //\n // The "append order" call tree is the one in which nodes are ordered in\n // whatever order they were appended to their parent.\n //\n // The "grouped" call tree is one in which each node has at most one child per\n // frame. Nodes are ordered in decreasing order of weight\n\n this.appendOrderCalltreeRoot = new CallTreeNode(Frame.root, null);\n this.groupedCalltreeRoot = new CallTreeNode(Frame.root, null); // List of references to CallTreeNodes at the top of the\n // stack at the time of the sample.\n\n this.samples = [];\n this.weights = [];\n this.valueFormatter = new value_formatters_1.RawValueFormatter();\n this.totalNonIdleWeight = null;\n this.totalWeight = totalWeight;\n }\n\n getAppendOrderCalltreeRoot() {\n return this.appendOrderCalltreeRoot;\n }\n\n getGroupedCalltreeRoot() {\n return this.groupedCalltreeRoot;\n }\n\n formatValue(v) {\n return this.valueFormatter.format(v);\n }\n\n setValueFormatter(f) {\n this.valueFormatter = f;\n }\n\n getWeightUnit() {\n return this.valueFormatter.unit;\n }\n\n getName() {\n return this.name;\n }\n\n setName(name) {\n this.name = name;\n }\n\n getTotalWeight() {\n return this.totalWeight;\n }\n\n getTotalNonIdleWeight() {\n if (this.totalNonIdleWeight === null) {\n this.totalNonIdleWeight = this.groupedCalltreeRoot.children.reduce((n, c) => n + c.getTotalWeight(), 0);\n }\n\n return this.totalNonIdleWeight;\n } // This is private because it should only be called in the ProfileBuilder\n // classes. Once a Profile instance has been constructed, it should be treated\n // as immutable.\n\n\n sortGroupedCallTree() {\n function visit(node) {\n node.children.sort((a, b) => -(a.getTotalWeight() - b.getTotalWeight()));\n node.children.forEach(visit);\n }\n\n visit(this.groupedCalltreeRoot);\n }\n\n forEachCallGrouped(openFrame, closeFrame) {\n function visit(node, start) {\n if (node.frame !== Frame.root) {\n openFrame(node, start);\n }\n\n let childTime = 0;\n node.children.forEach(function (child) {\n visit(child, start + childTime);\n childTime += child.getTotalWeight();\n });\n\n if (node.frame !== Frame.root) {\n closeFrame(node, start + node.getTotalWeight());\n }\n }\n\n visit(this.groupedCalltreeRoot, 0);\n }\n\n forEachCall(openFrame, closeFrame) {\n let prevStack = [];\n let value = 0;\n let sampleIndex = 0;\n\n for (let stackTop of this.samples) {\n // Find lowest common ancestor of the current stack and the previous one\n let lca = null; // This is O(n^2), but n should be relatively small here (stack height),\n // so hopefully this isn\'t much of a problem\n\n for (lca = stackTop; lca && lca.frame != Frame.root && prevStack.indexOf(lca) === -1; lca = lca.parent) {} // Close frames that are no longer open\n\n\n while (prevStack.length > 0 && utils_1.lastOf(prevStack) != lca) {\n const node = prevStack.pop();\n closeFrame(node, value);\n } // Open frames that are now becoming open\n\n\n const toOpen = [];\n\n for (let node = stackTop; node && node.frame != Frame.root && node != lca; node = node.parent) {\n toOpen.push(node);\n }\n\n toOpen.reverse();\n\n for (let node of toOpen) {\n openFrame(node, value);\n }\n\n prevStack = prevStack.concat(toOpen);\n value += this.weights[sampleIndex++];\n } // Close frames that are open at the end of the trace\n\n\n for (let i = prevStack.length - 1; i >= 0; i--) {\n closeFrame(prevStack[i], value);\n }\n }\n\n forEachFrame(fn) {\n this.frames.forEach(fn);\n }\n\n getProfileWithRecursionFlattened() {\n const builder = new CallTreeProfileBuilder();\n const stack = [];\n const framesInStack = new Set();\n\n function openFrame(node, value) {\n if (framesInStack.has(node.frame)) {\n stack.push(null);\n } else {\n framesInStack.add(node.frame);\n stack.push(node);\n builder.enterFrame(node.frame, value);\n }\n }\n\n function closeFrame(node, value) {\n const stackTop = stack.pop();\n\n if (stackTop) {\n framesInStack.delete(stackTop.frame);\n builder.leaveFrame(stackTop.frame, value);\n }\n }\n\n this.forEachCall(openFrame, closeFrame);\n const flattenedProfile = builder.build();\n flattenedProfile.name = this.name;\n flattenedProfile.valueFormatter = this.valueFormatter; // When constructing a profile with recursion flattened,\n // counter-intuitive things can happen to "self time" measurements\n // for functions.\n // For example, given the following list of stacks w/ weights:\n //\n // a 1\n // a;b;a 1\n // a;b;a;b;a 1\n // a;b;a 1\n //\n // The resulting profile with recursion flattened out will look like this:\n //\n // a 1\n // a;b 3\n //\n // Which is useful to view, but it\'s counter-intuitive to move self-time\n // for frames around, since analyzing the self-time of functions is an important\n // thing to be able to do accurately, and we don\'t want this to change when recursion\n // is flattened. To work around that, we\'ll just copy the weights directly from the\n // un-flattened profile.\n\n this.forEachFrame(f => {\n flattenedProfile.frames.getOrInsert(f).overwriteWeightWith(f);\n });\n return flattenedProfile;\n }\n\n getInvertedProfileForCallersOf(focalFrameInfo) {\n const focalFrame = Frame.getOrInsert(this.frames, focalFrameInfo);\n const builder = new StackListProfileBuilder(); // TODO(jlfwong): Could construct this at profile\n // construction time rather than on demand.\n\n const nodes = [];\n\n function visit(node) {\n if (node.frame === focalFrame) {\n nodes.push(node);\n } else {\n for (let child of node.children) {\n visit(child);\n }\n }\n }\n\n visit(this.appendOrderCalltreeRoot);\n\n for (let node of nodes) {\n const stack = [];\n\n for (let n = node; n != null && n.frame !== Frame.root; n = n.parent) {\n stack.push(n.frame);\n }\n\n builder.appendSampleWithWeight(stack, node.getTotalWeight());\n }\n\n const ret = builder.build();\n ret.name = this.name;\n ret.valueFormatter = this.valueFormatter;\n return ret;\n }\n\n getProfileForCalleesOf(focalFrameInfo) {\n const focalFrame = Frame.getOrInsert(this.frames, focalFrameInfo);\n const builder = new StackListProfileBuilder();\n\n function recordSubtree(focalFrameNode) {\n const stack = [];\n\n function visit(node) {\n stack.push(node.frame);\n builder.appendSampleWithWeight(stack, node.getSelfWeight());\n\n for (let child of node.children) {\n visit(child);\n }\n\n stack.pop();\n }\n\n visit(focalFrameNode);\n }\n\n function findCalls(node) {\n if (node.frame === focalFrame) {\n recordSubtree(node);\n } else {\n for (let child of node.children) {\n findCalls(child);\n }\n }\n }\n\n findCalls(this.appendOrderCalltreeRoot);\n const ret = builder.build();\n ret.name = this.name;\n ret.valueFormatter = this.valueFormatter;\n return ret;\n } // Demangle symbols for readability\n\n\n demangle() {\n return __awaiter(this, void 0, void 0, function* () {\n let demangleCpp = null;\n\n for (let frame of this.frames) {\n // This function converts a mangled C++ name such as "__ZNK7Support6ColorFeqERKS0_"\n // into a human-readable symbol (in this case "Support::ColorF::==(Support::ColorF&)")\n if (frame.name.startsWith(\'__Z\')) {\n if (!demangleCpp) {\n demangleCpp = (yield demangleCppModule).demangleCpp;\n }\n\n frame.name = demangleCpp(frame.name);\n }\n }\n });\n }\n\n remapNames(callback) {\n for (let frame of this.frames) {\n frame.name = callback(frame.name);\n }\n }\n\n}\n\nexports.Profile = Profile;\n\nclass StackListProfileBuilder extends Profile {\n constructor() {\n super(...arguments);\n this.pendingSample = null;\n }\n\n _appendSample(stack, weight, useAppendOrder) {\n if (isNaN(weight)) throw new Error(\'invalid weight\');\n let node = useAppendOrder ? this.appendOrderCalltreeRoot : this.groupedCalltreeRoot;\n let framesInStack = new Set();\n\n for (let frameInfo of stack) {\n const frame = Frame.getOrInsert(this.frames, frameInfo);\n const last = useAppendOrder ? utils_1.lastOf(node.children) : node.children.find(c => c.frame === frame);\n\n if (last && !last.isFrozen() && last.frame == frame) {\n node = last;\n } else {\n const parent = node;\n node = new CallTreeNode(frame, node);\n parent.children.push(node);\n }\n\n node.addToTotalWeight(weight); // It\'s possible for the same frame to occur multiple\n // times in the same call stack due to either direct\n // or indirect recursion. We want to avoid counting that\n // frame multiple times for a single sample, we so just\n // track all of the unique frames that participated in\n // this call stack, then add to their weight at the end.\n\n framesInStack.add(node.frame);\n }\n\n node.addToSelfWeight(weight);\n\n if (useAppendOrder) {\n for (let child of node.children) {\n child.freeze();\n }\n }\n\n if (useAppendOrder) {\n node.frame.addToSelfWeight(weight);\n\n for (let frame of framesInStack) {\n frame.addToTotalWeight(weight);\n }\n\n if (node === utils_1.lastOf(this.samples)) {\n this.weights[this.weights.length - 1] += weight;\n } else {\n this.samples.push(node);\n this.weights.push(weight);\n }\n }\n }\n\n appendSampleWithWeight(stack, weight) {\n if (weight === 0) {\n // Samples with zero weight have no effect, so let\'s ignore them\n return;\n }\n\n if (weight < 0) {\n throw new Error(\'Samples must have positive weights\');\n }\n\n this._appendSample(stack, weight, true);\n\n this._appendSample(stack, weight, false);\n }\n\n appendSampleWithTimestamp(stack, timestamp) {\n if (this.pendingSample) {\n if (timestamp < this.pendingSample.centralTimestamp) {\n throw new Error(\'Timestamps received out of order\');\n }\n\n const endTimestamp = (timestamp + this.pendingSample.centralTimestamp) / 2;\n this.appendSampleWithWeight(this.pendingSample.stack, endTimestamp - this.pendingSample.startTimestamp);\n this.pendingSample = {\n stack,\n startTimestamp: endTimestamp,\n centralTimestamp: timestamp\n };\n } else {\n this.pendingSample = {\n stack,\n startTimestamp: timestamp,\n centralTimestamp: timestamp\n };\n }\n }\n\n build() {\n if (this.pendingSample) {\n if (this.samples.length > 0) {\n this.appendSampleWithWeight(this.pendingSample.stack, this.pendingSample.centralTimestamp - this.pendingSample.startTimestamp);\n } else {\n // There is only a single sample. In this case, units will be meaningless,\n // so we\'ll append with a weight of 1 and also clear any value formatter\n this.appendSampleWithWeight(this.pendingSample.stack, 1);\n this.setValueFormatter(new value_formatters_1.RawValueFormatter());\n }\n }\n\n this.totalWeight = Math.max(this.totalWeight, this.weights.reduce((a, b) => a + b, 0));\n this.sortGroupedCallTree();\n return this;\n }\n\n}\n\nexports.StackListProfileBuilder = StackListProfileBuilder; // As an alternative API for importing profiles more efficiently, provide a\n// way to open & close frames directly without needing to construct tons of\n// arrays as intermediaries.\n\nclass CallTreeProfileBuilder extends Profile {\n constructor() {\n super(...arguments);\n this.appendOrderStack = [this.appendOrderCalltreeRoot];\n this.groupedOrderStack = [this.groupedCalltreeRoot];\n this.framesInStack = new Map();\n this.stack = [];\n this.lastValue = 0;\n }\n\n addWeightsToFrames(value) {\n const delta = value - this.lastValue;\n\n for (let frame of this.framesInStack.keys()) {\n frame.addToTotalWeight(delta);\n }\n\n const stackTop = utils_1.lastOf(this.stack);\n\n if (stackTop) {\n stackTop.addToSelfWeight(delta);\n }\n }\n\n addWeightsToNodes(value, stack) {\n const delta = value - this.lastValue;\n\n for (let node of stack) {\n node.addToTotalWeight(delta);\n }\n\n const stackTop = utils_1.lastOf(stack);\n\n if (stackTop) {\n stackTop.addToSelfWeight(delta);\n }\n }\n\n _enterFrame(frame, value, useAppendOrder) {\n let stack = useAppendOrder ? this.appendOrderStack : this.groupedOrderStack;\n this.addWeightsToNodes(value, stack);\n let prevTop = utils_1.lastOf(stack);\n\n if (prevTop) {\n if (useAppendOrder) {\n const delta = value - this.lastValue;\n\n if (delta > 0) {\n this.samples.push(prevTop);\n this.weights.push(value - this.lastValue);\n } else if (delta < 0) {\n throw new Error(`Samples must be provided in increasing order of cumulative value. Last sample was ${this.lastValue}, this sample was ${value}`);\n }\n }\n\n const last = useAppendOrder ? utils_1.lastOf(prevTop.children) : prevTop.children.find(c => c.frame === frame);\n let node;\n\n if (last && !last.isFrozen() && last.frame == frame) {\n node = last;\n } else {\n node = new CallTreeNode(frame, prevTop);\n prevTop.children.push(node);\n }\n\n stack.push(node);\n }\n }\n\n enterFrame(frameInfo, value) {\n const frame = Frame.getOrInsert(this.frames, frameInfo);\n this.addWeightsToFrames(value);\n\n this._enterFrame(frame, value, true);\n\n this._enterFrame(frame, value, false);\n\n this.stack.push(frame);\n const frameCount = this.framesInStack.get(frame) || 0;\n this.framesInStack.set(frame, frameCount + 1);\n this.lastValue = value;\n }\n\n _leaveFrame(frame, value, useAppendOrder) {\n let stack = useAppendOrder ? this.appendOrderStack : this.groupedOrderStack;\n this.addWeightsToNodes(value, stack);\n\n if (useAppendOrder) {\n const leavingStackTop = this.appendOrderStack.pop();\n\n if (leavingStackTop == null) {\n throw new Error(`Trying to leave ${frame.key} when stack is empty`);\n }\n\n if (this.lastValue == null) {\n throw new Error(`Trying to leave a ${frame.key} before any have been entered`);\n }\n\n leavingStackTop.freeze();\n\n if (leavingStackTop.frame.key !== frame.key) {\n throw new Error(`Tried to leave frame "${frame.name}" while frame "${leavingStackTop.frame.name}" was at the top at ${value}`);\n }\n\n const delta = value - this.lastValue;\n\n if (delta > 0) {\n this.samples.push(leavingStackTop);\n this.weights.push(value - this.lastValue);\n } else if (delta < 0) {\n throw new Error(`Samples must be provided in increasing order of cumulative value. Last sample was ${this.lastValue}, this sample was ${value}`);\n }\n } else {\n this.groupedOrderStack.pop();\n }\n }\n\n leaveFrame(frameInfo, value) {\n const frame = Frame.getOrInsert(this.frames, frameInfo);\n this.addWeightsToFrames(value);\n\n this._leaveFrame(frame, value, true);\n\n this._leaveFrame(frame, value, false);\n\n this.stack.pop();\n const frameCount = this.framesInStack.get(frame);\n if (frameCount == null) return;\n\n if (frameCount === 1) {\n this.framesInStack.delete(frame);\n } else {\n this.framesInStack.set(frame, frameCount - 1);\n }\n\n this.lastValue = value;\n this.totalWeight = Math.max(this.totalWeight, this.lastValue);\n }\n\n build() {\n // Each stack is expected to contain a single node which we initialize to be\n // the root node.\n if (this.appendOrderStack.length > 1 || this.groupedOrderStack.length > 1) {\n throw new Error(\'Tried to complete profile construction with a non-empty stack\');\n }\n\n this.sortGroupedCallTree();\n return this;\n }\n\n}\n\nexports.CallTreeProfileBuilder = CallTreeProfileBuilder;\n\n/***/ }),\n\n/***/ 844:\n/***/ ((__unused_webpack_module, exports) => {\n\n\n\nObject.defineProperty(exports, "__esModule", ({\n value: true\n}));\nexports.decodeBase64 = exports.lazyStatic = exports.memoizeByReference = exports.memoizeByShallowEquality = exports.objectsHaveShallowEquality = exports.noop = exports.binarySearch = exports.triangle = exports.fract = exports.formatPercent = exports.zeroPad = exports.itReduce = exports.itForEach = exports.itMap = exports.KeyedSet = exports.getOrThrow = exports.getOrElse = exports.getOrInsert = exports.sortBy = exports.lastOf = void 0;\n\nfunction lastOf(ts) {\n return ts[ts.length - 1] || null;\n}\n\nexports.lastOf = lastOf;\n\nfunction sortBy(ts, key) {\n function comparator(a, b) {\n const keyA = key(a);\n const keyB = key(b);\n return keyA < keyB ? -1 : keyA > keyB ? 1 : 0;\n }\n\n ts.sort(comparator);\n}\n\nexports.sortBy = sortBy;\n\nfunction getOrInsert(map, k, fallback) {\n if (!map.has(k)) map.set(k, fallback(k));\n return map.get(k);\n}\n\nexports.getOrInsert = getOrInsert;\n\nfunction getOrElse(map, k, fallback) {\n if (!map.has(k)) return fallback(k);\n return map.get(k);\n}\n\nexports.getOrElse = getOrElse;\n\nfunction getOrThrow(map, k) {\n if (!map.has(k)) {\n throw new Error(`Expected key ${k}`);\n }\n\n return map.get(k);\n}\n\nexports.getOrThrow = getOrThrow;\n\nclass KeyedSet {\n constructor() {\n this.map = new Map();\n }\n\n getOrInsert(t) {\n const key = t.key;\n const existing = this.map.get(key);\n if (existing) return existing;\n this.map.set(key, t);\n return t;\n }\n\n forEach(fn) {\n this.map.forEach(fn);\n }\n\n [Symbol.iterator]() {\n return this.map.values();\n }\n\n}\n\nexports.KeyedSet = KeyedSet;\n\nfunction* itMap(it, f) {\n for (let t of it) {\n yield f(t);\n }\n}\n\nexports.itMap = itMap;\n\nfunction itForEach(it, f) {\n for (let t of it) {\n f(t);\n }\n}\n\nexports.itForEach = itForEach;\n\nfunction itReduce(it, f, init) {\n let accum = init;\n\n for (let t of it) {\n accum = f(accum, t);\n }\n\n return accum;\n}\n\nexports.itReduce = itReduce;\n\nfunction zeroPad(s, width) {\n return new Array(Math.max(width - s.length, 0) + 1).join(\'0\') + s;\n}\n\nexports.zeroPad = zeroPad;\n\nfunction formatPercent(percent) {\n let formattedPercent = `${percent.toFixed(0)}%`;\n if (percent === 100) formattedPercent = \'100%\';else if (percent > 99) formattedPercent = \'>99%\';else if (percent < 0.01) formattedPercent = \'<0.01%\';else if (percent < 1) formattedPercent = `${percent.toFixed(2)}%`;else if (percent < 10) formattedPercent = `${percent.toFixed(1)}%`;\n return formattedPercent;\n}\n\nexports.formatPercent = formatPercent;\n\nfunction fract(x) {\n return x - Math.floor(x);\n}\n\nexports.fract = fract;\n\nfunction triangle(x) {\n return 2.0 * Math.abs(fract(x) - 0.5) - 1.0;\n}\n\nexports.triangle = triangle;\n\nfunction binarySearch(lo, hi, f, target, targetRangeSize = 1) {\n console.assert(!isNaN(targetRangeSize) && !isNaN(target));\n\n while (true) {\n if (hi - lo <= targetRangeSize) return [lo, hi];\n const mid = (hi + lo) / 2;\n const val = f(mid);\n if (val < target) lo = mid;else hi = mid;\n }\n}\n\nexports.binarySearch = binarySearch;\n\nfunction noop(...args) {}\n\nexports.noop = noop;\n\nfunction objectsHaveShallowEquality(a, b) {\n for (let key in a) {\n if (a[key] !== b[key]) return false;\n }\n\n for (let key in b) {\n if (a[key] !== b[key]) return false;\n }\n\n return true;\n}\n\nexports.objectsHaveShallowEquality = objectsHaveShallowEquality;\n\nfunction memoizeByShallowEquality(cb) {\n let last = null;\n return args => {\n let result;\n\n if (last == null) {\n result = cb(args);\n last = {\n args,\n result\n };\n return result;\n } else if (objectsHaveShallowEquality(last.args, args)) {\n return last.result;\n } else {\n last.args = args;\n last.result = cb(args);\n return last.result;\n }\n };\n}\n\nexports.memoizeByShallowEquality = memoizeByShallowEquality;\n\nfunction memoizeByReference(cb) {\n let last = null;\n return args => {\n let result;\n\n if (last == null) {\n result = cb(args);\n last = {\n args,\n result\n };\n return result;\n } else if (last.args === args) {\n return last.result;\n } else {\n last.args = args;\n last.result = cb(args);\n return last.result;\n }\n };\n}\n\nexports.memoizeByReference = memoizeByReference;\n\nfunction lazyStatic(cb) {\n let last = null;\n return () => {\n if (last == null) {\n last = {\n result: cb()\n };\n }\n\n return last.result;\n };\n}\n\nexports.lazyStatic = lazyStatic;\nconst base64lookupTable = lazyStatic(() => {\n const alphabet = \'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\';\n const ret = new Map();\n\n for (let i = 0; i < alphabet.length; i++) {\n ret.set(alphabet.charAt(i), i);\n }\n\n ret.set(\'=\', -1);\n return ret;\n}); // NOTE: There are probably simpler solutions to this problem, but I have this written already, so\n// until we run into problems with this, let\'s just use this.\n//\n// See: https://developer.mozilla.org/en-US/docs/Web/API/WindowBase64/Base64_encoding_and_decoding#The_Unicode_Problem#The_Unicode_Problem\n\nfunction decodeBase64(encoded) {\n // Reference: https://www.rfc-editor.org/rfc/rfc4648.txt\n const lookupTable = base64lookupTable(); // 3 byte groups are represented as sequneces of 4 characters.\n //\n // "The encoding process represents 24-bit groups of input bits as output\n // strings of 4 encoded characters."\n //\n // "Special processing is performed if fewer than 24 bits are available\n // at the end of the data being encoded. A full encoding quantum is\n // always completed at the end of a quantity. When fewer than 24 input\n // bits are available in an input group bits with value zero are added\n // (on the right) to form an integral number of 6-bit groups."\n\n if (encoded.length % 4 !== 0) {\n throw new Error(`Invalid length for base64 encoded string. Expected length % 4 = 0, got length = ${encoded.length}`);\n }\n\n const quartetCount = encoded.length / 4;\n let byteCount; // Special processing is performed if fewer than 24 bits are available\n // at the end of the data being encoded. A full encoding quantum is\n // always completed at the end of a quantity. When fewer than 24 input\n // bits are available in an input group, bits with value zero are added\n // (on the right) to form an integral number of 6-bit groups. Padding\n // at the end of the data is performed using the \'=\' character. Since\n // all base 64 input is an integral number of octets, only the following\n // cases can arise:\n //\n // (1) The final quantum of encoding input is an integral multiple of 24\n // bits; here, the final unit of encoded output will be an integral\n // multiple of 4 characters with no "=" padding.\n //\n // (2) The final quantum of encoding input is exactly 8 bits; here, the\n // final unit of encoded output will be two characters followed by\n // two "=" padding characters.\n //\n // (3) The final quantum of encoding input is exactly 16 bits; here, the\n // final unit of encoded output will be three characters followed by\n // one "=" padding character.\n\n if (encoded.length >= 4) {\n if (encoded.charAt(encoded.length - 1) === \'=\') {\n if (encoded.charAt(encoded.length - 2) === \'=\') {\n // Case (2)\n byteCount = quartetCount * 3 - 2;\n } else {\n // Case (3)\n byteCount = quartetCount * 3 - 1;\n }\n } else {\n // Case (1)\n byteCount = quartetCount * 3;\n }\n } else {\n // Case (1)\n byteCount = quartetCount * 3;\n }\n\n const bytes = new Uint8Array(byteCount);\n let offset = 0;\n\n for (let i = 0; i < quartetCount; i++) {\n const enc1 = encoded.charAt(i * 4 + 0);\n const enc2 = encoded.charAt(i * 4 + 1);\n const enc3 = encoded.charAt(i * 4 + 2);\n const enc4 = encoded.charAt(i * 4 + 3);\n const sextet1 = lookupTable.get(enc1);\n const sextet2 = lookupTable.get(enc2);\n const sextet3 = lookupTable.get(enc3);\n const sextet4 = lookupTable.get(enc4);\n\n if (sextet1 == null || sextet2 == null || sextet3 == null || sextet4 == null) {\n throw new Error(`Invalid quartet at indices ${i * 4} .. ${i * 4 + 3}: ${encoded.substring(i * 4, i * 4 + 3)}`);\n }\n\n bytes[offset++] = sextet1 << 2 | sextet2 >> 4;\n\n if (enc3 !== \'=\') {\n bytes[offset++] = (sextet2 & 15) << 4 | sextet3 >> 2;\n }\n\n if (enc4 !== \'=\') {\n bytes[offset++] = (sextet3 & 7) << 6 | sextet4;\n }\n }\n\n if (offset !== byteCount) {\n throw new Error(`Expected to decode ${byteCount} bytes, but only decoded ${offset})`);\n }\n\n return bytes;\n}\n\nexports.decodeBase64 = decodeBase64;\n\n/***/ }),\n\n/***/ 218:\n/***/ ((__unused_webpack_module, exports, __webpack_require__) => {\n\n\n\nObject.defineProperty(exports, "__esModule", ({\n value: true\n}));\nexports.ByteFormatter = exports.TimeFormatter = exports.RawValueFormatter = void 0;\n\nconst utils_1 = __webpack_require__(844);\n\nclass RawValueFormatter {\n constructor() {\n this.unit = \'none\';\n }\n\n format(v) {\n return v.toLocaleString();\n }\n\n}\n\nexports.RawValueFormatter = RawValueFormatter;\n\nclass TimeFormatter {\n constructor(unit) {\n this.unit = unit;\n if (unit === \'nanoseconds\') this.multiplier = 1e-9;else if (unit === \'microseconds\') this.multiplier = 1e-6;else if (unit === \'milliseconds\') this.multiplier = 1e-3;else this.multiplier = 1;\n }\n\n formatUnsigned(v) {\n const s = v * this.multiplier;\n\n if (s / 60 >= 1) {\n const minutes = Math.floor(s / 60);\n const seconds = Math.floor(s - minutes * 60).toString();\n return `${minutes}:${utils_1.zeroPad(seconds, 2)}`;\n }\n\n if (s / 1 >= 1) return `${s.toFixed(2)}s`;\n if (s / 1e-3 >= 1) return `${(s / 1e-3).toFixed(2)}ms`;\n if (s / 1e-6 >= 1) return `${(s / 1e-6).toFixed(2)}µs`;else return `${(s / 1e-9).toFixed(2)}ns`;\n }\n\n format(v) {\n return `${v < 0 ? \'-\' : \'\'}${this.formatUnsigned(Math.abs(v))}`;\n }\n\n}\n\nexports.TimeFormatter = TimeFormatter;\n\nclass ByteFormatter {\n constructor() {\n this.unit = \'bytes\';\n }\n\n format(v) {\n if (v < 1024) return `${v.toFixed(0)} B`;\n v /= 1024;\n if (v < 1024) return `${v.toFixed(2)} KB`;\n v /= 1024;\n if (v < 1024) return `${v.toFixed(2)} MB`;\n v /= 1024;\n return `${v.toFixed(2)} GB`;\n }\n\n}\n\nexports.ByteFormatter = ByteFormatter;\n\n/***/ }),\n\n/***/ 41:\n/***/ (function(__unused_webpack_module, exports, __webpack_require__) {\n\n\n\nvar __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function () {\n return m[k];\n }\n });\n} : function (o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\n\nvar __exportStar = this && this.__exportStar || function (m, exports) {\n for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);\n};\n\nObject.defineProperty(exports, "__esModule", ({\n value: true\n}));\n\n__exportStar(__webpack_require__(496), exports);\n\n__exportStar(__webpack_require__(121), exports);\n\n/***/ }),\n\n/***/ 715:\n/***/ (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (root, factory) {\n \'use strict\'; // Universal Module Definition (UMD) to support AMD, CommonJS/Node.js, Rhino, and browsers.\n\n /* istanbul ignore next */\n\n if (true) {\n !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(356)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === \'function\' ?\n\t\t(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n } else {}\n})(this, function ErrorStackParser(StackFrame) {\n \'use strict\';\n\n var FIREFOX_SAFARI_STACK_REGEXP = /(^|@)\\S+:\\d+/;\n var CHROME_IE_STACK_REGEXP = /^\\s*at .*(\\S+:\\d+|\\(native\\))/m;\n var SAFARI_NATIVE_CODE_REGEXP = /^(eval@)?(\\[native code])?$/;\n return {\n /**\n * Given an Error object, extract the most information from it.\n *\n * @param {Error} error object\n * @return {Array} of StackFrames\n */\n parse: function ErrorStackParser$$parse(error) {\n if (typeof error.stacktrace !== \'undefined\' || typeof error[\'opera#sourceloc\'] !== \'undefined\') {\n return this.parseOpera(error);\n } else if (error.stack && error.stack.match(CHROME_IE_STACK_REGEXP)) {\n return this.parseV8OrIE(error);\n } else if (error.stack) {\n return this.parseFFOrSafari(error);\n } else {\n throw new Error(\'Cannot parse given Error object\');\n }\n },\n // Separate line and column numbers from a string of the form: (URI:Line:Column)\n extractLocation: function ErrorStackParser$$extractLocation(urlLike) {\n // Fail-fast but return locations like "(native)"\n if (urlLike.indexOf(\':\') === -1) {\n return [urlLike];\n }\n\n var regExp = /(.+?)(?::(\\d+))?(?::(\\d+))?$/;\n var parts = regExp.exec(urlLike.replace(/[()]/g, \'\'));\n return [parts[1], parts[2] || undefined, parts[3] || undefined];\n },\n parseV8OrIE: function ErrorStackParser$$parseV8OrIE(error) {\n var filtered = error.stack.split(\'\\n\').filter(function (line) {\n return !!line.match(CHROME_IE_STACK_REGEXP);\n }, this);\n return filtered.map(function (line) {\n if (line.indexOf(\'(eval \') > -1) {\n // Throw away eval information until we implement stacktrace.js/stackframe#8\n line = line.replace(/eval code/g, \'eval\').replace(/(\\(eval at [^()]*)|(\\),.*$)/g, \'\');\n }\n\n var sanitizedLine = line.replace(/^\\s+/, \'\').replace(/\\(eval code/g, \'(\'); // capture and preseve the parenthesized location "(/foo/my bar.js:12:87)" in\n // case it has spaces in it, as the string is split on \\s+ later on\n\n var location = sanitizedLine.match(/ (\\((.+):(\\d+):(\\d+)\\)$)/); // remove the parenthesized location from the line, if it was matched\n\n sanitizedLine = location ? sanitizedLine.replace(location[0], \'\') : sanitizedLine;\n var tokens = sanitizedLine.split(/\\s+/).slice(1); // if a location was matched, pass it to extractLocation() otherwise pop the last token\n\n var locationParts = this.extractLocation(location ? location[1] : tokens.pop());\n var functionName = tokens.join(\' \') || undefined;\n var fileName = [\'eval\', \'\'].indexOf(locationParts[0]) > -1 ? undefined : locationParts[0];\n return new StackFrame({\n functionName: functionName,\n fileName: fileName,\n lineNumber: locationParts[1],\n columnNumber: locationParts[2],\n source: line\n });\n }, this);\n },\n parseFFOrSafari: function ErrorStackParser$$parseFFOrSafari(error) {\n var filtered = error.stack.split(\'\\n\').filter(function (line) {\n return !line.match(SAFARI_NATIVE_CODE_REGEXP);\n }, this);\n return filtered.map(function (line) {\n // Throw away eval information until we implement stacktrace.js/stackframe#8\n if (line.indexOf(\' > eval\') > -1) {\n line = line.replace(/ line (\\d+)(?: > eval line \\d+)* > eval:\\d+:\\d+/g, \':$1\');\n }\n\n if (line.indexOf(\'@\') === -1 && line.indexOf(\':\') === -1) {\n // Safari eval frames only have function names and nothing else\n return new StackFrame({\n functionName: line\n });\n } else {\n var functionNameRegex = /((.*".+"[^@]*)?[^@]*)(?:@)/;\n var matches = line.match(functionNameRegex);\n var functionName = matches && matches[1] ? matches[1] : undefined;\n var locationParts = this.extractLocation(line.replace(functionNameRegex, \'\'));\n return new StackFrame({\n functionName: functionName,\n fileName: locationParts[0],\n lineNumber: locationParts[1],\n columnNumber: locationParts[2],\n source: line\n });\n }\n }, this);\n },\n parseOpera: function ErrorStackParser$$parseOpera(e) {\n if (!e.stacktrace || e.message.indexOf(\'\\n\') > -1 && e.message.split(\'\\n\').length > e.stacktrace.split(\'\\n\').length) {\n return this.parseOpera9(e);\n } else if (!e.stack) {\n return this.parseOpera10(e);\n } else {\n return this.parseOpera11(e);\n }\n },\n parseOpera9: function ErrorStackParser$$parseOpera9(e) {\n var lineRE = /Line (\\d+).*script (?:in )?(\\S+)/i;\n var lines = e.message.split(\'\\n\');\n var result = [];\n\n for (var i = 2, len = lines.length; i < len; i += 2) {\n var match = lineRE.exec(lines[i]);\n\n if (match) {\n result.push(new StackFrame({\n fileName: match[2],\n lineNumber: match[1],\n source: lines[i]\n }));\n }\n }\n\n return result;\n },\n parseOpera10: function ErrorStackParser$$parseOpera10(e) {\n var lineRE = /Line (\\d+).*script (?:in )?(\\S+)(?:: In function (\\S+))?$/i;\n var lines = e.stacktrace.split(\'\\n\');\n var result = [];\n\n for (var i = 0, len = lines.length; i < len; i += 2) {\n var match = lineRE.exec(lines[i]);\n\n if (match) {\n result.push(new StackFrame({\n functionName: match[3] || undefined,\n fileName: match[2],\n lineNumber: match[1],\n source: lines[i]\n }));\n }\n }\n\n return result;\n },\n // Opera 10.65+ Error.stack very similar to FF/Safari\n parseOpera11: function ErrorStackParser$$parseOpera11(error) {\n var filtered = error.stack.split(\'\\n\').filter(function (line) {\n return !!line.match(FIREFOX_SAFARI_STACK_REGEXP) && !line.match(/^Error created at/);\n }, this);\n return filtered.map(function (line) {\n var tokens = line.split(\'@\');\n var locationParts = this.extractLocation(tokens.pop());\n var functionCall = tokens.shift() || \'\';\n var functionName = functionCall.replace(//, \'$2\').replace(/\\([^)]*\\)/g, \'\') || undefined;\n var argsRaw;\n\n if (functionCall.match(/\\(([^)]*)\\)/)) {\n argsRaw = functionCall.replace(/^[^(]+\\(([^)]*)\\)$/, \'$1\');\n }\n\n var args = argsRaw === undefined || argsRaw === \'[arguments not available]\' ? undefined : argsRaw.split(\',\');\n return new StackFrame({\n functionName: functionName,\n args: args,\n fileName: locationParts[0],\n lineNumber: locationParts[1],\n columnNumber: locationParts[2],\n source: line\n });\n }, this);\n }\n };\n});\n\n/***/ }),\n\n/***/ 69:\n/***/ ((module) => {\n\n\n\nfunction nullthrows(x, message) {\n if (x != null) {\n return x;\n }\n\n var error = new Error(message !== undefined ? message : \'Got unexpected \' + x);\n error.framesToPop = 1; // Skip nullthrows\'s own stack frame.\n\n throw error;\n}\n\nmodule.exports = nullthrows;\nmodule.exports["default"] = nullthrows;\nObject.defineProperty(module.exports, "__esModule", ({\n value: true\n}));\n\n/***/ }),\n\n/***/ 356:\n/***/ (function(module, exports) {\n\nvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (root, factory) {\n \'use strict\'; // Universal Module Definition (UMD) to support AMD, CommonJS/Node.js, Rhino, and browsers.\n\n /* istanbul ignore next */\n\n if (true) {\n !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === \'function\' ?\n\t\t(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n } else {}\n})(this, function () {\n \'use strict\';\n\n function _isNumber(n) {\n return !isNaN(parseFloat(n)) && isFinite(n);\n }\n\n function _capitalize(str) {\n return str.charAt(0).toUpperCase() + str.substring(1);\n }\n\n function _getter(p) {\n return function () {\n return this[p];\n };\n }\n\n var booleanProps = [\'isConstructor\', \'isEval\', \'isNative\', \'isToplevel\'];\n var numericProps = [\'columnNumber\', \'lineNumber\'];\n var stringProps = [\'fileName\', \'functionName\', \'source\'];\n var arrayProps = [\'args\'];\n var props = booleanProps.concat(numericProps, stringProps, arrayProps);\n\n function StackFrame(obj) {\n if (!obj) return;\n\n for (var i = 0; i < props.length; i++) {\n if (obj[props[i]] !== undefined) {\n this[\'set\' + _capitalize(props[i])](obj[props[i]]);\n }\n }\n }\n\n StackFrame.prototype = {\n getArgs: function () {\n return this.args;\n },\n setArgs: function (v) {\n if (Object.prototype.toString.call(v) !== \'[object Array]\') {\n throw new TypeError(\'Args must be an Array\');\n }\n\n this.args = v;\n },\n getEvalOrigin: function () {\n return this.evalOrigin;\n },\n setEvalOrigin: function (v) {\n if (v instanceof StackFrame) {\n this.evalOrigin = v;\n } else if (v instanceof Object) {\n this.evalOrigin = new StackFrame(v);\n } else {\n throw new TypeError(\'Eval Origin must be an Object or StackFrame\');\n }\n },\n toString: function () {\n var fileName = this.getFileName() || \'\';\n var lineNumber = this.getLineNumber() || \'\';\n var columnNumber = this.getColumnNumber() || \'\';\n var functionName = this.getFunctionName() || \'\';\n\n if (this.getIsEval()) {\n if (fileName) {\n return \'[eval] (\' + fileName + \':\' + lineNumber + \':\' + columnNumber + \')\';\n }\n\n return \'[eval]:\' + lineNumber + \':\' + columnNumber;\n }\n\n if (functionName) {\n return functionName + \' (\' + fileName + \':\' + lineNumber + \':\' + columnNumber + \')\';\n }\n\n return fileName + \':\' + lineNumber + \':\' + columnNumber;\n }\n };\n\n StackFrame.fromString = function StackFrame$$fromString(str) {\n var argsStartIndex = str.indexOf(\'(\');\n var argsEndIndex = str.lastIndexOf(\')\');\n var functionName = str.substring(0, argsStartIndex);\n var args = str.substring(argsStartIndex + 1, argsEndIndex).split(\',\');\n var locationString = str.substring(argsEndIndex + 1);\n\n if (locationString.indexOf(\'@\') === 0) {\n var parts = /@(.+?)(?::(\\d+))?(?::(\\d+))?$/.exec(locationString, \'\');\n var fileName = parts[1];\n var lineNumber = parts[2];\n var columnNumber = parts[3];\n }\n\n return new StackFrame({\n functionName: functionName,\n args: args || undefined,\n fileName: fileName,\n lineNumber: lineNumber || undefined,\n columnNumber: columnNumber || undefined\n });\n };\n\n for (var i = 0; i < booleanProps.length; i++) {\n StackFrame.prototype[\'get\' + _capitalize(booleanProps[i])] = _getter(booleanProps[i]);\n\n StackFrame.prototype[\'set\' + _capitalize(booleanProps[i])] = function (p) {\n return function (v) {\n this[p] = Boolean(v);\n };\n }(booleanProps[i]);\n }\n\n for (var j = 0; j < numericProps.length; j++) {\n StackFrame.prototype[\'get\' + _capitalize(numericProps[j])] = _getter(numericProps[j]);\n\n StackFrame.prototype[\'set\' + _capitalize(numericProps[j])] = function (p) {\n return function (v) {\n if (!_isNumber(v)) {\n throw new TypeError(p + \' must be a Number\');\n }\n\n this[p] = Number(v);\n };\n }(numericProps[j]);\n }\n\n for (var k = 0; k < stringProps.length; k++) {\n StackFrame.prototype[\'get\' + _capitalize(stringProps[k])] = _getter(stringProps[k]);\n\n StackFrame.prototype[\'set\' + _capitalize(stringProps[k])] = function (p) {\n return function (v) {\n this[p] = String(v);\n };\n }(stringProps[k]);\n }\n\n return StackFrame;\n});\n\n/***/ }),\n\n/***/ 853:\n/***/ ((module) => {\n\n/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\nvar runtime = function (exports) {\n "use strict";\n\n var Op = Object.prototype;\n var hasOwn = Op.hasOwnProperty;\n var undefined; // More compressible than void 0.\n\n var $Symbol = typeof Symbol === "function" ? Symbol : {};\n var iteratorSymbol = $Symbol.iterator || "@@iterator";\n var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";\n var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";\n\n function define(obj, key, value) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n return obj[key];\n }\n\n try {\n // IE 8 has a broken Object.defineProperty that only works on DOM objects.\n define({}, "");\n } catch (err) {\n define = function (obj, key, value) {\n return obj[key] = value;\n };\n }\n\n function wrap(innerFn, outerFn, self, tryLocsList) {\n // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.\n var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;\n var generator = Object.create(protoGenerator.prototype);\n var context = new Context(tryLocsList || []); // The ._invoke method unifies the implementations of the .next,\n // .throw, and .return methods.\n\n generator._invoke = makeInvokeMethod(innerFn, self, context);\n return generator;\n }\n\n exports.wrap = wrap; // Try/catch helper to minimize deoptimizations. Returns a completion\n // record like context.tryEntries[i].completion. This interface could\n // have been (and was previously) designed to take a closure to be\n // invoked without arguments, but in all the cases we care about we\n // already have an existing method we want to call, so there\'s no need\n // to create a new function object. We can even get away with assuming\n // the method takes exactly one argument, since that happens to be true\n // in every case, so we don\'t have to touch the arguments object. The\n // only additional allocation required is the completion record, which\n // has a stable shape and so hopefully should be cheap to allocate.\n\n function tryCatch(fn, obj, arg) {\n try {\n return {\n type: "normal",\n arg: fn.call(obj, arg)\n };\n } catch (err) {\n return {\n type: "throw",\n arg: err\n };\n }\n }\n\n var GenStateSuspendedStart = "suspendedStart";\n var GenStateSuspendedYield = "suspendedYield";\n var GenStateExecuting = "executing";\n var GenStateCompleted = "completed"; // Returning this object from the innerFn has the same effect as\n // breaking out of the dispatch switch statement.\n\n var ContinueSentinel = {}; // Dummy constructor functions that we use as the .constructor and\n // .constructor.prototype properties for functions that return Generator\n // objects. For full spec compliance, you may wish to configure your\n // minifier not to mangle the names of these two functions.\n\n function Generator() {}\n\n function GeneratorFunction() {}\n\n function GeneratorFunctionPrototype() {} // This is a polyfill for %IteratorPrototype% for environments that\n // don\'t natively support it.\n\n\n var IteratorPrototype = {};\n\n IteratorPrototype[iteratorSymbol] = function () {\n return this;\n };\n\n var getProto = Object.getPrototypeOf;\n var NativeIteratorPrototype = getProto && getProto(getProto(values([])));\n\n if (NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {\n // This environment has a native %IteratorPrototype%; use it instead\n // of the polyfill.\n IteratorPrototype = NativeIteratorPrototype;\n }\n\n var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);\n GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;\n GeneratorFunctionPrototype.constructor = GeneratorFunction;\n GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"); // Helper for defining the .next, .throw, and .return methods of the\n // Iterator interface in terms of a single ._invoke method.\n\n function defineIteratorMethods(prototype) {\n ["next", "throw", "return"].forEach(function (method) {\n define(prototype, method, function (arg) {\n return this._invoke(method, arg);\n });\n });\n }\n\n exports.isGeneratorFunction = function (genFun) {\n var ctor = typeof genFun === "function" && genFun.constructor;\n return ctor ? ctor === GeneratorFunction || // For the native GeneratorFunction constructor, the best we can\n // do is to check its .name property.\n (ctor.displayName || ctor.name) === "GeneratorFunction" : false;\n };\n\n exports.mark = function (genFun) {\n if (Object.setPrototypeOf) {\n Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);\n } else {\n genFun.__proto__ = GeneratorFunctionPrototype;\n define(genFun, toStringTagSymbol, "GeneratorFunction");\n }\n\n genFun.prototype = Object.create(Gp);\n return genFun;\n }; // Within the body of any async function, `await x` is transformed to\n // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test\n // `hasOwn.call(value, "__await")` to determine if the yielded value is\n // meant to be awaited.\n\n\n exports.awrap = function (arg) {\n return {\n __await: arg\n };\n };\n\n function AsyncIterator(generator, PromiseImpl) {\n function invoke(method, arg, resolve, reject) {\n var record = tryCatch(generator[method], generator, arg);\n\n if (record.type === "throw") {\n reject(record.arg);\n } else {\n var result = record.arg;\n var value = result.value;\n\n if (value && typeof value === "object" && hasOwn.call(value, "__await")) {\n return PromiseImpl.resolve(value.__await).then(function (value) {\n invoke("next", value, resolve, reject);\n }, function (err) {\n invoke("throw", err, resolve, reject);\n });\n }\n\n return PromiseImpl.resolve(value).then(function (unwrapped) {\n // When a yielded Promise is resolved, its final value becomes\n // the .value of the Promise<{value,done}> result for the\n // current iteration.\n result.value = unwrapped;\n resolve(result);\n }, function (error) {\n // If a rejected Promise was yielded, throw the rejection back\n // into the async generator function so it can be handled there.\n return invoke("throw", error, resolve, reject);\n });\n }\n }\n\n var previousPromise;\n\n function enqueue(method, arg) {\n function callInvokeWithMethodAndArg() {\n return new PromiseImpl(function (resolve, reject) {\n invoke(method, arg, resolve, reject);\n });\n }\n\n return previousPromise = // If enqueue has been called before, then we want to wait until\n // all previous Promises have been resolved before calling invoke,\n // so that results are always delivered in the correct order. If\n // enqueue has not been called before, then it is important to\n // call invoke immediately, without waiting on a callback to fire,\n // so that the async generator function has the opportunity to do\n // any necessary setup in a predictable way. This predictability\n // is why the Promise constructor synchronously invokes its\n // executor callback, and why async functions synchronously\n // execute code before the first await. Since we implement simple\n // async functions in terms of async generators, it is especially\n // important to get this right, even though it requires care.\n previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, // Avoid propagating failures to Promises returned by later\n // invocations of the iterator.\n callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();\n } // Define the unified helper method that is used to implement .next,\n // .throw, and .return (see defineIteratorMethods).\n\n\n this._invoke = enqueue;\n }\n\n defineIteratorMethods(AsyncIterator.prototype);\n\n AsyncIterator.prototype[asyncIteratorSymbol] = function () {\n return this;\n };\n\n exports.AsyncIterator = AsyncIterator; // Note that simple async functions are implemented on top of\n // AsyncIterator objects; they just return a Promise for the value of\n // the final result produced by the iterator.\n\n exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {\n if (PromiseImpl === void 0) PromiseImpl = Promise;\n var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);\n return exports.isGeneratorFunction(outerFn) ? iter // If outerFn is a generator, return the full iterator.\n : iter.next().then(function (result) {\n return result.done ? result.value : iter.next();\n });\n };\n\n function makeInvokeMethod(innerFn, self, context) {\n var state = GenStateSuspendedStart;\n return function invoke(method, arg) {\n if (state === GenStateExecuting) {\n throw new Error("Generator is already running");\n }\n\n if (state === GenStateCompleted) {\n if (method === "throw") {\n throw arg;\n } // Be forgiving, per 25.3.3.3.3 of the spec:\n // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume\n\n\n return doneResult();\n }\n\n context.method = method;\n context.arg = arg;\n\n while (true) {\n var delegate = context.delegate;\n\n if (delegate) {\n var delegateResult = maybeInvokeDelegate(delegate, context);\n\n if (delegateResult) {\n if (delegateResult === ContinueSentinel) continue;\n return delegateResult;\n }\n }\n\n if (context.method === "next") {\n // Setting context._sent for legacy support of Babel\'s\n // function.sent implementation.\n context.sent = context._sent = context.arg;\n } else if (context.method === "throw") {\n if (state === GenStateSuspendedStart) {\n state = GenStateCompleted;\n throw context.arg;\n }\n\n context.dispatchException(context.arg);\n } else if (context.method === "return") {\n context.abrupt("return", context.arg);\n }\n\n state = GenStateExecuting;\n var record = tryCatch(innerFn, self, context);\n\n if (record.type === "normal") {\n // If an exception is thrown from innerFn, we leave state ===\n // GenStateExecuting and loop back for another invocation.\n state = context.done ? GenStateCompleted : GenStateSuspendedYield;\n\n if (record.arg === ContinueSentinel) {\n continue;\n }\n\n return {\n value: record.arg,\n done: context.done\n };\n } else if (record.type === "throw") {\n state = GenStateCompleted; // Dispatch the exception by looping back around to the\n // context.dispatchException(context.arg) call above.\n\n context.method = "throw";\n context.arg = record.arg;\n }\n }\n };\n } // Call delegate.iterator[context.method](context.arg) and handle the\n // result, either by returning a { value, done } result from the\n // delegate iterator, or by modifying context.method and context.arg,\n // setting context.delegate to null, and returning the ContinueSentinel.\n\n\n function maybeInvokeDelegate(delegate, context) {\n var method = delegate.iterator[context.method];\n\n if (method === undefined) {\n // A .throw or .return when the delegate iterator has no .throw\n // method always terminates the yield* loop.\n context.delegate = null;\n\n if (context.method === "throw") {\n // Note: ["return"] must be used for ES3 parsing compatibility.\n if (delegate.iterator["return"]) {\n // If the delegate iterator has a return method, give it a\n // chance to clean up.\n context.method = "return";\n context.arg = undefined;\n maybeInvokeDelegate(delegate, context);\n\n if (context.method === "throw") {\n // If maybeInvokeDelegate(context) changed context.method from\n // "return" to "throw", let that override the TypeError below.\n return ContinueSentinel;\n }\n }\n\n context.method = "throw";\n context.arg = new TypeError("The iterator does not provide a \'throw\' method");\n }\n\n return ContinueSentinel;\n }\n\n var record = tryCatch(method, delegate.iterator, context.arg);\n\n if (record.type === "throw") {\n context.method = "throw";\n context.arg = record.arg;\n context.delegate = null;\n return ContinueSentinel;\n }\n\n var info = record.arg;\n\n if (!info) {\n context.method = "throw";\n context.arg = new TypeError("iterator result is not an object");\n context.delegate = null;\n return ContinueSentinel;\n }\n\n if (info.done) {\n // Assign the result of the finished delegate to the temporary\n // variable specified by delegate.resultName (see delegateYield).\n context[delegate.resultName] = info.value; // Resume execution at the desired location (see delegateYield).\n\n context.next = delegate.nextLoc; // If context.method was "throw" but the delegate handled the\n // exception, let the outer generator proceed normally. If\n // context.method was "next", forget context.arg since it has been\n // "consumed" by the delegate iterator. If context.method was\n // "return", allow the original .return call to continue in the\n // outer generator.\n\n if (context.method !== "return") {\n context.method = "next";\n context.arg = undefined;\n }\n } else {\n // Re-yield the result returned by the delegate method.\n return info;\n } // The delegate iterator is finished, so forget it and continue with\n // the outer generator.\n\n\n context.delegate = null;\n return ContinueSentinel;\n } // Define Generator.prototype.{next,throw,return} in terms of the\n // unified ._invoke helper method.\n\n\n defineIteratorMethods(Gp);\n define(Gp, toStringTagSymbol, "Generator"); // A Generator should always return itself as the iterator object when the\n // @@iterator function is called on it. Some browsers\' implementations of the\n // iterator prototype chain incorrectly implement this, causing the Generator\n // object to not be returned from this call. This ensures that doesn\'t happen.\n // See https://github.com/facebook/regenerator/issues/274 for more details.\n\n Gp[iteratorSymbol] = function () {\n return this;\n };\n\n Gp.toString = function () {\n return "[object Generator]";\n };\n\n function pushTryEntry(locs) {\n var entry = {\n tryLoc: locs[0]\n };\n\n if (1 in locs) {\n entry.catchLoc = locs[1];\n }\n\n if (2 in locs) {\n entry.finallyLoc = locs[2];\n entry.afterLoc = locs[3];\n }\n\n this.tryEntries.push(entry);\n }\n\n function resetTryEntry(entry) {\n var record = entry.completion || {};\n record.type = "normal";\n delete record.arg;\n entry.completion = record;\n }\n\n function Context(tryLocsList) {\n // The root entry object (effectively a try statement without a catch\n // or a finally block) gives us a place to store values thrown from\n // locations where there is no enclosing try statement.\n this.tryEntries = [{\n tryLoc: "root"\n }];\n tryLocsList.forEach(pushTryEntry, this);\n this.reset(true);\n }\n\n exports.keys = function (object) {\n var keys = [];\n\n for (var key in object) {\n keys.push(key);\n }\n\n keys.reverse(); // Rather than returning an object with a next method, we keep\n // things simple and return the next function itself.\n\n return function next() {\n while (keys.length) {\n var key = keys.pop();\n\n if (key in object) {\n next.value = key;\n next.done = false;\n return next;\n }\n } // To avoid creating an additional object, we just hang the .value\n // and .done properties off the next function object itself. This\n // also ensures that the minifier will not anonymize the function.\n\n\n next.done = true;\n return next;\n };\n };\n\n function values(iterable) {\n if (iterable) {\n var iteratorMethod = iterable[iteratorSymbol];\n\n if (iteratorMethod) {\n return iteratorMethod.call(iterable);\n }\n\n if (typeof iterable.next === "function") {\n return iterable;\n }\n\n if (!isNaN(iterable.length)) {\n var i = -1,\n next = function next() {\n while (++i < iterable.length) {\n if (hasOwn.call(iterable, i)) {\n next.value = iterable[i];\n next.done = false;\n return next;\n }\n }\n\n next.value = undefined;\n next.done = true;\n return next;\n };\n\n return next.next = next;\n }\n } // Return an iterator with no values.\n\n\n return {\n next: doneResult\n };\n }\n\n exports.values = values;\n\n function doneResult() {\n return {\n value: undefined,\n done: true\n };\n }\n\n Context.prototype = {\n constructor: Context,\n reset: function (skipTempReset) {\n this.prev = 0;\n this.next = 0; // Resetting context._sent for legacy support of Babel\'s\n // function.sent implementation.\n\n this.sent = this._sent = undefined;\n this.done = false;\n this.delegate = null;\n this.method = "next";\n this.arg = undefined;\n this.tryEntries.forEach(resetTryEntry);\n\n if (!skipTempReset) {\n for (var name in this) {\n // Not sure about the optimal order of these conditions:\n if (name.charAt(0) === "t" && hasOwn.call(this, name) && !isNaN(+name.slice(1))) {\n this[name] = undefined;\n }\n }\n }\n },\n stop: function () {\n this.done = true;\n var rootEntry = this.tryEntries[0];\n var rootRecord = rootEntry.completion;\n\n if (rootRecord.type === "throw") {\n throw rootRecord.arg;\n }\n\n return this.rval;\n },\n dispatchException: function (exception) {\n if (this.done) {\n throw exception;\n }\n\n var context = this;\n\n function handle(loc, caught) {\n record.type = "throw";\n record.arg = exception;\n context.next = loc;\n\n if (caught) {\n // If the dispatched exception was caught by a catch block,\n // then let that catch block handle the exception normally.\n context.method = "next";\n context.arg = undefined;\n }\n\n return !!caught;\n }\n\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n var record = entry.completion;\n\n if (entry.tryLoc === "root") {\n // Exception thrown outside of any try block that could handle\n // it, so set the completion value of the entire function to\n // throw the exception.\n return handle("end");\n }\n\n if (entry.tryLoc <= this.prev) {\n var hasCatch = hasOwn.call(entry, "catchLoc");\n var hasFinally = hasOwn.call(entry, "finallyLoc");\n\n if (hasCatch && hasFinally) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n } else if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n } else if (hasCatch) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n }\n } else if (hasFinally) {\n if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n } else {\n throw new Error("try statement without catch or finally");\n }\n }\n }\n },\n abrupt: function (type, arg) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n\n if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {\n var finallyEntry = entry;\n break;\n }\n }\n\n if (finallyEntry && (type === "break" || type === "continue") && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc) {\n // Ignore the finally entry if control is not jumping to a\n // location outside the try/catch block.\n finallyEntry = null;\n }\n\n var record = finallyEntry ? finallyEntry.completion : {};\n record.type = type;\n record.arg = arg;\n\n if (finallyEntry) {\n this.method = "next";\n this.next = finallyEntry.finallyLoc;\n return ContinueSentinel;\n }\n\n return this.complete(record);\n },\n complete: function (record, afterLoc) {\n if (record.type === "throw") {\n throw record.arg;\n }\n\n if (record.type === "break" || record.type === "continue") {\n this.next = record.arg;\n } else if (record.type === "return") {\n this.rval = this.arg = record.arg;\n this.method = "return";\n this.next = "end";\n } else if (record.type === "normal" && afterLoc) {\n this.next = afterLoc;\n }\n\n return ContinueSentinel;\n },\n finish: function (finallyLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n\n if (entry.finallyLoc === finallyLoc) {\n this.complete(entry.completion, entry.afterLoc);\n resetTryEntry(entry);\n return ContinueSentinel;\n }\n }\n },\n "catch": function (tryLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n\n if (entry.tryLoc === tryLoc) {\n var record = entry.completion;\n\n if (record.type === "throw") {\n var thrown = record.arg;\n resetTryEntry(entry);\n }\n\n return thrown;\n }\n } // The context.catch method must only be called with a location\n // argument that corresponds to a known catch block.\n\n\n throw new Error("illegal catch attempt");\n },\n delegateYield: function (iterable, resultName, nextLoc) {\n this.delegate = {\n iterator: values(iterable),\n resultName: resultName,\n nextLoc: nextLoc\n };\n\n if (this.method === "next") {\n // Deliberately forget the last sent value so that we don\'t\n // accidentally pass it on to the delegate.\n this.arg = undefined;\n }\n\n return ContinueSentinel;\n }\n }; // Regardless of whether this script is executing as a CommonJS module\n // or not, return the runtime object so that we can declare the variable\n // regeneratorRuntime in the outer scope, which allows this module to be\n // injected easily by `bin/regenerator --include-runtime script.js`.\n\n return exports;\n}( // If this script is executing as a CommonJS module, use module.exports\n// as the regeneratorRuntime namespace. Otherwise create a new empty\n// object. Either way, the resulting object will be used to initialize\n// the regeneratorRuntime variable at the top of this file.\n true ? module.exports : 0);\n\ntry {\n regeneratorRuntime = runtime;\n} catch (accidentalStrictMode) {\n // This module should not be running in strict mode, so the above\n // assignment should always work unless something is misconfigured. Just\n // in case runtime.js accidentally runs in strict mode, we can escape\n // strict mode using a global Function call. This could conceivably fail\n // if a Content Security Policy forbids using Function, but in that case\n // the proper solution is to fix the accidental strict mode problem. If\n // you\'ve misconfigured your bundler to force strict mode and applied a\n // CSP to forbid Function, and you\'re not willing to fix either of those\n // problems, please detail your unique predicament in a GitHub issue.\n Function("r", "regeneratorRuntime = r")(runtime);\n}\n\n/***/ })\n\n/******/ });\n/************************************************************************/\n/******/ // The module cache\n/******/ var __webpack_module_cache__ = {};\n/******/ \n/******/ // The require function\n/******/ function __webpack_require__(moduleId) {\n/******/ \t// Check if module is in cache\n/******/ \tvar cachedModule = __webpack_module_cache__[moduleId];\n/******/ \tif (cachedModule !== undefined) {\n/******/ \t\treturn cachedModule.exports;\n/******/ \t}\n/******/ \t// Create a new module (and put it into the cache)\n/******/ \tvar module = __webpack_module_cache__[moduleId] = {\n/******/ \t\t// no module.id needed\n/******/ \t\t// no module.loaded needed\n/******/ \t\texports: {}\n/******/ \t};\n/******/ \n/******/ \t// Execute the module function\n/******/ \t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/ \n/******/ \t// Return the exports of the module\n/******/ \treturn module.exports;\n/******/ }\n/******/ \n/************************************************************************/\n/******/ /* webpack/runtime/compat get default export */\n/******/ (() => {\n/******/ \t// getDefaultExport function for compatibility with non-harmony modules\n/******/ \t__webpack_require__.n = (module) => {\n/******/ \t\tvar getter = module && module.__esModule ?\n/******/ \t\t\t() => (module[\'default\']) :\n/******/ \t\t\t() => (module);\n/******/ \t\t__webpack_require__.d(getter, { a: getter });\n/******/ \t\treturn getter;\n/******/ \t};\n/******/ })();\n/******/ \n/******/ /* webpack/runtime/define property getters */\n/******/ (() => {\n/******/ \t// define getter functions for harmony exports\n/******/ \t__webpack_require__.d = (exports, definition) => {\n/******/ \t\tfor(var key in definition) {\n/******/ \t\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n/******/ \t\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n/******/ \t\t\t}\n/******/ \t\t}\n/******/ \t};\n/******/ })();\n/******/ \n/******/ /* webpack/runtime/hasOwnProperty shorthand */\n/******/ (() => {\n/******/ \t__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))\n/******/ })();\n/******/ \n/************************************************************************/\nvar __webpack_exports__ = {};\n// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.\n(() => {\n\n// EXPORTS\n__webpack_require__.d(__webpack_exports__, {\n "importFile": () => (/* binding */ importFile_worker_importFile)\n});\n\n// EXTERNAL MODULE: ../react-devtools-timeline/node_modules/regenerator-runtime/runtime.js\nvar runtime = __webpack_require__(853);\n// EXTERNAL MODULE: ../../node_modules/@elg/speedscope/dist/library/library.js\nvar library = __webpack_require__(41);\n;// CONCATENATED MODULE: ../react-devtools-shared/src/devtools/constants.js\nconst CHANGE_LOG_URL = \'https://github.com/facebook/react/blob/main/packages/react-devtools/CHANGELOG.md\';\nconst UNSUPPORTED_VERSION_URL = \'https://reactjs.org/blog/2019/08/15/new-react-devtools.html#how-do-i-get-the-old-version-back\';\nconst REACT_DEVTOOLS_WORKPLACE_URL = \'https://fburl.com/react-devtools-workplace-group\';\nconst THEME_STYLES = {\n light: {\n \'--color-attribute-name\': \'#ef6632\',\n \'--color-attribute-name-not-editable\': \'#23272f\',\n \'--color-attribute-name-inverted\': \'rgba(255, 255, 255, 0.7)\',\n \'--color-attribute-value\': \'#1a1aa6\',\n \'--color-attribute-value-inverted\': \'#ffffff\',\n \'--color-attribute-editable-value\': \'#1a1aa6\',\n \'--color-background\': \'#ffffff\',\n \'--color-background-hover\': \'rgba(0, 136, 250, 0.1)\',\n \'--color-background-inactive\': \'#e5e5e5\',\n \'--color-background-invalid\': \'#fff0f0\',\n \'--color-background-selected\': \'#0088fa\',\n \'--color-button-background\': \'#ffffff\',\n \'--color-button-background-focus\': \'#ededed\',\n \'--color-button\': \'#5f6673\',\n \'--color-button-disabled\': \'#cfd1d5\',\n \'--color-button-active\': \'#0088fa\',\n \'--color-button-focus\': \'#23272f\',\n \'--color-button-hover\': \'#23272f\',\n \'--color-border\': \'#eeeeee\',\n \'--color-commit-did-not-render-fill\': \'#cfd1d5\',\n \'--color-commit-did-not-render-fill-text\': \'#000000\',\n \'--color-commit-did-not-render-pattern\': \'#cfd1d5\',\n \'--color-commit-did-not-render-pattern-text\': \'#333333\',\n \'--color-commit-gradient-0\': \'#37afa9\',\n \'--color-commit-gradient-1\': \'#63b19e\',\n \'--color-commit-gradient-2\': \'#80b393\',\n \'--color-commit-gradient-3\': \'#97b488\',\n \'--color-commit-gradient-4\': \'#abb67d\',\n \'--color-commit-gradient-5\': \'#beb771\',\n \'--color-commit-gradient-6\': \'#cfb965\',\n \'--color-commit-gradient-7\': \'#dfba57\',\n \'--color-commit-gradient-8\': \'#efbb49\',\n \'--color-commit-gradient-9\': \'#febc38\',\n \'--color-commit-gradient-text\': \'#000000\',\n \'--color-component-name\': \'#6a51b2\',\n \'--color-component-name-inverted\': \'#ffffff\',\n \'--color-component-badge-background\': \'rgba(0, 0, 0, 0.1)\',\n \'--color-component-badge-background-inverted\': \'rgba(255, 255, 255, 0.25)\',\n \'--color-component-badge-count\': \'#777d88\',\n \'--color-component-badge-count-inverted\': \'rgba(255, 255, 255, 0.7)\',\n \'--color-console-error-badge-text\': \'#ffffff\',\n \'--color-console-error-background\': \'#fff0f0\',\n \'--color-console-error-border\': \'#ffd6d6\',\n \'--color-console-error-icon\': \'#eb3941\',\n \'--color-console-error-text\': \'#fe2e31\',\n \'--color-console-warning-badge-text\': \'#000000\',\n \'--color-console-warning-background\': \'#fffbe5\',\n \'--color-console-warning-border\': \'#fff5c1\',\n \'--color-console-warning-icon\': \'#f4bd00\',\n \'--color-console-warning-text\': \'#64460c\',\n \'--color-context-background\': \'rgba(0,0,0,.9)\',\n \'--color-context-background-hover\': \'rgba(255, 255, 255, 0.1)\',\n \'--color-context-background-selected\': \'#178fb9\',\n \'--color-context-border\': \'#3d424a\',\n \'--color-context-text\': \'#ffffff\',\n \'--color-context-text-selected\': \'#ffffff\',\n \'--color-dim\': \'#777d88\',\n \'--color-dimmer\': \'#cfd1d5\',\n \'--color-dimmest\': \'#eff0f1\',\n \'--color-error-background\': \'hsl(0, 100%, 97%)\',\n \'--color-error-border\': \'hsl(0, 100%, 92%)\',\n \'--color-error-text\': \'#ff0000\',\n \'--color-expand-collapse-toggle\': \'#777d88\',\n \'--color-forget-badge-background\': \'#2683e2\',\n \'--color-forget-badge-background-inverted\': \'#1a6bbc\',\n \'--color-forget-text\': \'#fff\',\n \'--color-link\': \'#0000ff\',\n \'--color-modal-background\': \'rgba(255, 255, 255, 0.75)\',\n \'--color-bridge-version-npm-background\': \'#eff0f1\',\n \'--color-bridge-version-npm-text\': \'#000000\',\n \'--color-bridge-version-number\': \'#0088fa\',\n \'--color-primitive-hook-badge-background\': \'#e5e5e5\',\n \'--color-primitive-hook-badge-text\': \'#5f6673\',\n \'--color-record-active\': \'#fc3a4b\',\n \'--color-record-hover\': \'#3578e5\',\n \'--color-record-inactive\': \'#0088fa\',\n \'--color-resize-bar\': \'#eeeeee\',\n \'--color-resize-bar-active\': \'#dcdcdc\',\n \'--color-resize-bar-border\': \'#d1d1d1\',\n \'--color-resize-bar-dot\': \'#333333\',\n \'--color-timeline-internal-module\': \'#d1d1d1\',\n \'--color-timeline-internal-module-hover\': \'#c9c9c9\',\n \'--color-timeline-internal-module-text\': \'#444\',\n \'--color-timeline-native-event\': \'#ccc\',\n \'--color-timeline-native-event-hover\': \'#aaa\',\n \'--color-timeline-network-primary\': \'#fcf3dc\',\n \'--color-timeline-network-primary-hover\': \'#f0e7d1\',\n \'--color-timeline-network-secondary\': \'#efc457\',\n \'--color-timeline-network-secondary-hover\': \'#e3ba52\',\n \'--color-timeline-priority-background\': \'#f6f6f6\',\n \'--color-timeline-priority-border\': \'#eeeeee\',\n \'--color-timeline-user-timing\': \'#c9cacd\',\n \'--color-timeline-user-timing-hover\': \'#93959a\',\n \'--color-timeline-react-idle\': \'#d3e5f6\',\n \'--color-timeline-react-idle-hover\': \'#c3d9ef\',\n \'--color-timeline-react-render\': \'#9fc3f3\',\n \'--color-timeline-react-render-hover\': \'#83afe9\',\n \'--color-timeline-react-render-text\': \'#11365e\',\n \'--color-timeline-react-commit\': \'#c88ff0\',\n \'--color-timeline-react-commit-hover\': \'#b281d6\',\n \'--color-timeline-react-commit-text\': \'#3e2c4a\',\n \'--color-timeline-react-layout-effects\': \'#b281d6\',\n \'--color-timeline-react-layout-effects-hover\': \'#9d71bd\',\n \'--color-timeline-react-layout-effects-text\': \'#3e2c4a\',\n \'--color-timeline-react-passive-effects\': \'#b281d6\',\n \'--color-timeline-react-passive-effects-hover\': \'#9d71bd\',\n \'--color-timeline-react-passive-effects-text\': \'#3e2c4a\',\n \'--color-timeline-react-schedule\': \'#9fc3f3\',\n \'--color-timeline-react-schedule-hover\': \'#2683E2\',\n \'--color-timeline-react-suspense-rejected\': \'#f1cc14\',\n \'--color-timeline-react-suspense-rejected-hover\': \'#ffdf37\',\n \'--color-timeline-react-suspense-resolved\': \'#a6e59f\',\n \'--color-timeline-react-suspense-resolved-hover\': \'#89d281\',\n \'--color-timeline-react-suspense-unresolved\': \'#c9cacd\',\n \'--color-timeline-react-suspense-unresolved-hover\': \'#93959a\',\n \'--color-timeline-thrown-error\': \'#ee1638\',\n \'--color-timeline-thrown-error-hover\': \'#da1030\',\n \'--color-timeline-text-color\': \'#000000\',\n \'--color-timeline-text-dim-color\': \'#ccc\',\n \'--color-timeline-react-work-border\': \'#eeeeee\',\n \'--color-search-match\': \'yellow\',\n \'--color-search-match-current\': \'#f7923b\',\n \'--color-selected-tree-highlight-active\': \'rgba(0, 136, 250, 0.1)\',\n \'--color-selected-tree-highlight-inactive\': \'rgba(0, 0, 0, 0.05)\',\n \'--color-scroll-caret\': \'rgba(150, 150, 150, 0.5)\',\n \'--color-tab-selected-border\': \'#0088fa\',\n \'--color-text\': \'#000000\',\n \'--color-text-invalid\': \'#ff0000\',\n \'--color-text-selected\': \'#ffffff\',\n \'--color-toggle-background-invalid\': \'#fc3a4b\',\n \'--color-toggle-background-on\': \'#0088fa\',\n \'--color-toggle-background-off\': \'#cfd1d5\',\n \'--color-toggle-text\': \'#ffffff\',\n \'--color-warning-background\': \'#fb3655\',\n \'--color-warning-background-hover\': \'#f82042\',\n \'--color-warning-text-color\': \'#ffffff\',\n \'--color-warning-text-color-inverted\': \'#fd4d69\',\n // The styles below should be kept in sync with \'root.css\'\n // They are repeated there because they\'re used by e.g. tooltips or context menus\n // which get rendered outside of the DOM subtree (where normal theme/styles are written).\n \'--color-scroll-thumb\': \'#c2c2c2\',\n \'--color-scroll-track\': \'#fafafa\',\n \'--color-tooltip-background\': \'rgba(0, 0, 0, 0.9)\',\n \'--color-tooltip-text\': \'#ffffff\'\n },\n dark: {\n \'--color-attribute-name\': \'#9d87d2\',\n \'--color-attribute-name-not-editable\': \'#ededed\',\n \'--color-attribute-name-inverted\': \'#282828\',\n \'--color-attribute-value\': \'#cedae0\',\n \'--color-attribute-value-inverted\': \'#ffffff\',\n \'--color-attribute-editable-value\': \'yellow\',\n \'--color-background\': \'#282c34\',\n \'--color-background-hover\': \'rgba(255, 255, 255, 0.1)\',\n \'--color-background-inactive\': \'#3d424a\',\n \'--color-background-invalid\': \'#5c0000\',\n \'--color-background-selected\': \'#178fb9\',\n \'--color-button-background\': \'#282c34\',\n \'--color-button-background-focus\': \'#3d424a\',\n \'--color-button\': \'#afb3b9\',\n \'--color-button-active\': \'#61dafb\',\n \'--color-button-disabled\': \'#4f5766\',\n \'--color-button-focus\': \'#a2e9fc\',\n \'--color-button-hover\': \'#ededed\',\n \'--color-border\': \'#3d424a\',\n \'--color-commit-did-not-render-fill\': \'#777d88\',\n \'--color-commit-did-not-render-fill-text\': \'#000000\',\n \'--color-commit-did-not-render-pattern\': \'#666c77\',\n \'--color-commit-did-not-render-pattern-text\': \'#ffffff\',\n \'--color-commit-gradient-0\': \'#37afa9\',\n \'--color-commit-gradient-1\': \'#63b19e\',\n \'--color-commit-gradient-2\': \'#80b393\',\n \'--color-commit-gradient-3\': \'#97b488\',\n \'--color-commit-gradient-4\': \'#abb67d\',\n \'--color-commit-gradient-5\': \'#beb771\',\n \'--color-commit-gradient-6\': \'#cfb965\',\n \'--color-commit-gradient-7\': \'#dfba57\',\n \'--color-commit-gradient-8\': \'#efbb49\',\n \'--color-commit-gradient-9\': \'#febc38\',\n \'--color-commit-gradient-text\': \'#000000\',\n \'--color-component-name\': \'#61dafb\',\n \'--color-component-name-inverted\': \'#282828\',\n \'--color-component-badge-background\': \'#5e6167\',\n \'--color-component-badge-background-inverted\': \'#46494e\',\n \'--color-component-badge-count\': \'#8f949d\',\n \'--color-component-badge-count-inverted\': \'rgba(255, 255, 255, 0.85)\',\n \'--color-console-error-badge-text\': \'#000000\',\n \'--color-console-error-background\': \'#290000\',\n \'--color-console-error-border\': \'#5c0000\',\n \'--color-console-error-icon\': \'#eb3941\',\n \'--color-console-error-text\': \'#fc7f7f\',\n \'--color-console-warning-badge-text\': \'#000000\',\n \'--color-console-warning-background\': \'#332b00\',\n \'--color-console-warning-border\': \'#665500\',\n \'--color-console-warning-icon\': \'#f4bd00\',\n \'--color-console-warning-text\': \'#f5f2ed\',\n \'--color-context-background\': \'rgba(255,255,255,.95)\',\n \'--color-context-background-hover\': \'rgba(0, 136, 250, 0.1)\',\n \'--color-context-background-selected\': \'#0088fa\',\n \'--color-context-border\': \'#eeeeee\',\n \'--color-context-text\': \'#000000\',\n \'--color-context-text-selected\': \'#ffffff\',\n \'--color-dim\': \'#8f949d\',\n \'--color-dimmer\': \'#777d88\',\n \'--color-dimmest\': \'#4f5766\',\n \'--color-error-background\': \'#200\',\n \'--color-error-border\': \'#900\',\n \'--color-error-text\': \'#f55\',\n \'--color-expand-collapse-toggle\': \'#8f949d\',\n \'--color-forget-badge-background\': \'#2683e2\',\n \'--color-forget-badge-background-inverted\': \'#1a6bbc\',\n \'--color-forget-text\': \'#fff\',\n \'--color-link\': \'#61dafb\',\n \'--color-modal-background\': \'rgba(0, 0, 0, 0.75)\',\n \'--color-bridge-version-npm-background\': \'rgba(0, 0, 0, 0.25)\',\n \'--color-bridge-version-npm-text\': \'#ffffff\',\n \'--color-bridge-version-number\': \'yellow\',\n \'--color-primitive-hook-badge-background\': \'rgba(0, 0, 0, 0.25)\',\n \'--color-primitive-hook-badge-text\': \'rgba(255, 255, 255, 0.7)\',\n \'--color-record-active\': \'#fc3a4b\',\n \'--color-record-hover\': \'#a2e9fc\',\n \'--color-record-inactive\': \'#61dafb\',\n \'--color-resize-bar\': \'#282c34\',\n \'--color-resize-bar-active\': \'#31363f\',\n \'--color-resize-bar-border\': \'#3d424a\',\n \'--color-resize-bar-dot\': \'#cfd1d5\',\n \'--color-timeline-internal-module\': \'#303542\',\n \'--color-timeline-internal-module-hover\': \'#363b4a\',\n \'--color-timeline-internal-module-text\': \'#7f8899\',\n \'--color-timeline-native-event\': \'#b2b2b2\',\n \'--color-timeline-native-event-hover\': \'#949494\',\n \'--color-timeline-network-primary\': \'#fcf3dc\',\n \'--color-timeline-network-primary-hover\': \'#e3dbc5\',\n \'--color-timeline-network-secondary\': \'#efc457\',\n \'--color-timeline-network-secondary-hover\': \'#d6af4d\',\n \'--color-timeline-priority-background\': \'#1d2129\',\n \'--color-timeline-priority-border\': \'#282c34\',\n \'--color-timeline-user-timing\': \'#c9cacd\',\n \'--color-timeline-user-timing-hover\': \'#93959a\',\n \'--color-timeline-react-idle\': \'#3d485b\',\n \'--color-timeline-react-idle-hover\': \'#465269\',\n \'--color-timeline-react-render\': \'#2683E2\',\n \'--color-timeline-react-render-hover\': \'#1a76d4\',\n \'--color-timeline-react-render-text\': \'#11365e\',\n \'--color-timeline-react-commit\': \'#731fad\',\n \'--color-timeline-react-commit-hover\': \'#611b94\',\n \'--color-timeline-react-commit-text\': \'#e5c1ff\',\n \'--color-timeline-react-layout-effects\': \'#611b94\',\n \'--color-timeline-react-layout-effects-hover\': \'#51167a\',\n \'--color-timeline-react-layout-effects-text\': \'#e5c1ff\',\n \'--color-timeline-react-passive-effects\': \'#611b94\',\n \'--color-timeline-react-passive-effects-hover\': \'#51167a\',\n \'--color-timeline-react-passive-effects-text\': \'#e5c1ff\',\n \'--color-timeline-react-schedule\': \'#2683E2\',\n \'--color-timeline-react-schedule-hover\': \'#1a76d4\',\n \'--color-timeline-react-suspense-rejected\': \'#f1cc14\',\n \'--color-timeline-react-suspense-rejected-hover\': \'#e4c00f\',\n \'--color-timeline-react-suspense-resolved\': \'#a6e59f\',\n \'--color-timeline-react-suspense-resolved-hover\': \'#89d281\',\n \'--color-timeline-react-suspense-unresolved\': \'#c9cacd\',\n \'--color-timeline-react-suspense-unresolved-hover\': \'#93959a\',\n \'--color-timeline-thrown-error\': \'#fb3655\',\n \'--color-timeline-thrown-error-hover\': \'#f82042\',\n \'--color-timeline-text-color\': \'#282c34\',\n \'--color-timeline-text-dim-color\': \'#555b66\',\n \'--color-timeline-react-work-border\': \'#3d424a\',\n \'--color-search-match\': \'yellow\',\n \'--color-search-match-current\': \'#f7923b\',\n \'--color-selected-tree-highlight-active\': \'rgba(23, 143, 185, 0.15)\',\n \'--color-selected-tree-highlight-inactive\': \'rgba(255, 255, 255, 0.05)\',\n \'--color-scroll-caret\': \'#4f5766\',\n \'--color-shadow\': \'rgba(0, 0, 0, 0.5)\',\n \'--color-tab-selected-border\': \'#178fb9\',\n \'--color-text\': \'#ffffff\',\n \'--color-text-invalid\': \'#ff8080\',\n \'--color-text-selected\': \'#ffffff\',\n \'--color-toggle-background-invalid\': \'#fc3a4b\',\n \'--color-toggle-background-on\': \'#178fb9\',\n \'--color-toggle-background-off\': \'#777d88\',\n \'--color-toggle-text\': \'#ffffff\',\n \'--color-warning-background\': \'#ee1638\',\n \'--color-warning-background-hover\': \'#da1030\',\n \'--color-warning-text-color\': \'#ffffff\',\n \'--color-warning-text-color-inverted\': \'#ee1638\',\n // The styles below should be kept in sync with \'root.css\'\n // They are repeated there because they\'re used by e.g. tooltips or context menus\n // which get rendered outside of the DOM subtree (where normal theme/styles are written).\n \'--color-scroll-thumb\': \'#afb3b9\',\n \'--color-scroll-track\': \'#313640\',\n \'--color-tooltip-background\': \'rgba(255, 255, 255, 0.95)\',\n \'--color-tooltip-text\': \'#000000\'\n },\n compact: {\n \'--font-size-monospace-small\': \'9px\',\n \'--font-size-monospace-normal\': \'11px\',\n \'--font-size-monospace-large\': \'15px\',\n \'--font-size-sans-small\': \'10px\',\n \'--font-size-sans-normal\': \'12px\',\n \'--font-size-sans-large\': \'14px\',\n \'--line-height-data\': \'18px\'\n },\n comfortable: {\n \'--font-size-monospace-small\': \'10px\',\n \'--font-size-monospace-normal\': \'13px\',\n \'--font-size-monospace-large\': \'17px\',\n \'--font-size-sans-small\': \'12px\',\n \'--font-size-sans-normal\': \'14px\',\n \'--font-size-sans-large\': \'16px\',\n \'--line-height-data\': \'22px\'\n }\n}; // HACK\n//\n// Sometimes the inline target is rendered before root styles are applied,\n// which would result in e.g. NaN itemSize being passed to react-window list.\n\nconst COMFORTABLE_LINE_HEIGHT = parseInt(THEME_STYLES.comfortable[\'--line-height-data\'], 10);\nconst COMPACT_LINE_HEIGHT = parseInt(THEME_STYLES.compact[\'--line-height-data\'], 10);\n\n;// CONCATENATED MODULE: ../react-devtools-timeline/src/constants.js\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\n\nconst REACT_TOTAL_NUM_LANES = 31; // Increment this number any time a backwards breaking change is made to the profiler metadata.\n\nconst SCHEDULING_PROFILER_VERSION = 1;\nconst SNAPSHOT_MAX_HEIGHT = 60;\n;// CONCATENATED MODULE: ../react-devtools-timeline/src/import-worker/InvalidProfileError.js\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\n\n/**\n * An error thrown when an invalid profile could not be processed.\n */\nclass InvalidProfileError extends Error {}\n;// CONCATENATED MODULE: ../react-devtools-timeline/node_modules/memoize-one/dist/memoize-one.esm.js\nfunction areInputsEqual(newInputs, lastInputs) {\n if (newInputs.length !== lastInputs.length) {\n return false;\n }\n\n for (var i = 0; i < newInputs.length; i++) {\n if (newInputs[i] !== lastInputs[i]) {\n return false;\n }\n }\n\n return true;\n}\n\nfunction memoizeOne(resultFn, isEqual) {\n if (isEqual === void 0) {\n isEqual = areInputsEqual;\n }\n\n var lastThis;\n var lastArgs = [];\n var lastResult;\n var calledOnce = false;\n\n function memoized() {\n var newArgs = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n newArgs[_i] = arguments[_i];\n }\n\n if (calledOnce && lastThis === this && isEqual(newArgs, lastArgs)) {\n return lastResult;\n }\n\n lastResult = resultFn.apply(this, newArgs);\n calledOnce = true;\n lastThis = this;\n lastArgs = newArgs;\n return lastResult;\n }\n\n return memoized;\n}\n\n/* harmony default export */ const memoize_one_esm = (memoizeOne);\n;// CONCATENATED MODULE: ../react-devtools-timeline/src/utils/getBatchRange.js\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\n\n\nfunction unmemoizedGetBatchRange(batchUID, data, minStartTime = 0) {\n const measures = data.batchUIDToMeasuresMap.get(batchUID);\n\n if (measures == null || measures.length === 0) {\n throw Error(`Could not find measures with batch UID "${batchUID}"`);\n }\n\n const lastMeasure = measures[measures.length - 1];\n const stopTime = lastMeasure.timestamp + lastMeasure.duration;\n\n if (stopTime < minStartTime) {\n return [0, 0];\n }\n\n let startTime = minStartTime;\n\n for (let index = 0; index < measures.length; index++) {\n const measure = measures[index];\n\n if (measure.timestamp >= minStartTime) {\n startTime = measure.timestamp;\n break;\n }\n }\n\n return [startTime, stopTime];\n}\n\nconst getBatchRange = memoize_one_esm(unmemoizedGetBatchRange);\n// EXTERNAL MODULE: ../../node_modules/error-stack-parser/error-stack-parser.js\nvar error_stack_parser = __webpack_require__(715);\nvar error_stack_parser_default = /*#__PURE__*/__webpack_require__.n(error_stack_parser);\n;// CONCATENATED MODULE: ../react-devtools-timeline/src/import-worker/preprocessData.js\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\n\n\n\n\n\nconst NATIVE_EVENT_DURATION_THRESHOLD = 20;\nconst NESTED_UPDATE_DURATION_THRESHOLD = 20;\nconst WARNING_STRINGS = {\n LONG_EVENT_HANDLER: \'An event handler scheduled a big update with React. Consider using the Transition API to defer some of this work.\',\n NESTED_UPDATE: \'A big nested update was scheduled during layout. \' + \'Nested updates require React to re-render synchronously before the browser can paint. \' + \'Consider delaying this update by moving it to a passive effect (useEffect).\',\n SUSPEND_DURING_UPDATE: \'A component suspended during an update which caused a fallback to be shown. \' + "Consider using the Transition API to avoid hiding components after they\'ve been mounted."\n}; // Exported for tests\n\nfunction getLanesFromTransportDecimalBitmask(laneBitmaskString) {\n const laneBitmask = parseInt(laneBitmaskString, 10); // As negative numbers are stored in two\'s complement format, our bitmask\n // checks will be thrown off by them.\n\n if (laneBitmask < 0) {\n return [];\n }\n\n const lanes = [];\n let powersOfTwo = 0;\n\n while (powersOfTwo <= REACT_TOTAL_NUM_LANES) {\n if (1 << powersOfTwo & laneBitmask) {\n lanes.push(powersOfTwo);\n }\n\n powersOfTwo++;\n }\n\n return lanes;\n}\n\nfunction updateLaneToLabelMap(profilerData, laneLabelTuplesString) {\n // These marks appear multiple times in the data;\n // We only need to extact them once.\n if (profilerData.laneToLabelMap.size === 0) {\n const laneLabelTuples = laneLabelTuplesString.split(\',\');\n\n for (let laneIndex = 0; laneIndex < laneLabelTuples.length; laneIndex++) {\n // The numeric lane value (e.g. 64) isn\'t important.\n // The profiler parses and stores the lane\'s position within the bitmap,\n // (e.g. lane 1 is index 0, lane 16 is index 4).\n profilerData.laneToLabelMap.set(laneIndex, laneLabelTuples[laneIndex]);\n }\n }\n}\n\nlet profilerVersion = null;\n\nfunction getLastType(stack) {\n if (stack.length > 0) {\n const {\n type\n } = stack[stack.length - 1];\n return type;\n }\n\n return null;\n}\n\nfunction getDepth(stack) {\n if (stack.length > 0) {\n const {\n depth,\n type\n } = stack[stack.length - 1];\n return type === \'render-idle\' ? depth : depth + 1;\n }\n\n return 0;\n}\n\nfunction markWorkStarted(type, startTime, lanes, currentProfilerData, state) {\n const {\n batchUID,\n measureStack\n } = state;\n const depth = getDepth(measureStack);\n const measure = {\n type,\n batchUID,\n depth,\n lanes,\n timestamp: startTime,\n duration: 0\n };\n state.measureStack.push({\n depth,\n measure,\n startTime,\n type\n }); // This array is pre-initialized when the batchUID is generated.\n\n const measures = currentProfilerData.batchUIDToMeasuresMap.get(batchUID);\n\n if (measures != null) {\n measures.push(measure);\n } else {\n currentProfilerData.batchUIDToMeasuresMap.set(state.batchUID, [measure]);\n } // This array is pre-initialized before processing starts.\n\n\n lanes.forEach(lane => {\n currentProfilerData.laneToReactMeasureMap.get(lane).push(measure);\n });\n}\n\nfunction markWorkCompleted(type, stopTime, currentProfilerData, stack) {\n if (stack.length === 0) {\n console.error(\'Unexpected type "%s" completed at %sms while stack is empty.\', type, stopTime); // Ignore work "completion" user timing mark that doesn\'t complete anything\n\n return;\n }\n\n const last = stack[stack.length - 1];\n\n if (last.type !== type) {\n console.error(\'Unexpected type "%s" completed at %sms before "%s" completed.\', type, stopTime, last.type);\n }\n\n const {\n measure,\n startTime\n } = stack.pop();\n\n if (!measure) {\n console.error(\'Could not find matching measure for type "%s".\', type);\n } // $FlowFixMe[cannot-write] This property should not be writable outside of this function.\n\n\n measure.duration = stopTime - startTime;\n}\n\nfunction throwIfIncomplete(type, stack) {\n const lastIndex = stack.length - 1;\n\n if (lastIndex >= 0) {\n const last = stack[lastIndex];\n\n if (last.stopTime === undefined && last.type === type) {\n throw new InvalidProfileError(`Unexpected type "${type}" started before "${last.type}" completed.`);\n }\n }\n}\n\nfunction processEventDispatch(event, timestamp, profilerData, state) {\n const data = event.args.data;\n const type = data.type;\n\n if (type.startsWith(\'react-\')) {\n const stackTrace = data.stackTrace;\n\n if (stackTrace) {\n const topFrame = stackTrace[stackTrace.length - 1];\n\n if (topFrame.url.includes(\'/react-dom.\')) {\n // Filter out fake React events dispatched by invokeGuardedCallbackDev.\n return;\n }\n }\n } // Reduce noise from events like DOMActivate, load/unload, etc. which are usually not relevant\n\n\n if (type === \'blur\' || type === \'click\' || type === \'input\' || type.startsWith(\'focus\') || type.startsWith(\'key\') || type.startsWith(\'mouse\') || type.startsWith(\'pointer\')) {\n const duration = event.dur / 1000;\n let depth = 0;\n\n while (state.nativeEventStack.length > 0) {\n const prevNativeEvent = state.nativeEventStack[state.nativeEventStack.length - 1];\n const prevStopTime = prevNativeEvent.timestamp + prevNativeEvent.duration;\n\n if (timestamp < prevStopTime) {\n depth = prevNativeEvent.depth + 1;\n break;\n } else {\n state.nativeEventStack.pop();\n }\n }\n\n const nativeEvent = {\n depth,\n duration,\n timestamp,\n type,\n warning: null\n };\n profilerData.nativeEvents.push(nativeEvent); // Keep track of curent event in case future ones overlap.\n // We separate them into different vertical lanes in this case.\n\n state.nativeEventStack.push(nativeEvent);\n }\n}\n\nfunction processResourceFinish(event, timestamp, profilerData, state) {\n const requestId = event.args.data.requestId;\n const networkMeasure = state.requestIdToNetworkMeasureMap.get(requestId);\n\n if (networkMeasure != null) {\n networkMeasure.finishTimestamp = timestamp;\n\n if (networkMeasure.firstReceivedDataTimestamp === 0) {\n networkMeasure.firstReceivedDataTimestamp = timestamp;\n }\n\n if (networkMeasure.lastReceivedDataTimestamp === 0) {\n networkMeasure.lastReceivedDataTimestamp = timestamp;\n } // Clean up now that the resource is done.\n\n\n state.requestIdToNetworkMeasureMap.delete(event.args.data.requestId);\n }\n}\n\nfunction processResourceReceivedData(event, timestamp, profilerData, state) {\n const requestId = event.args.data.requestId;\n const networkMeasure = state.requestIdToNetworkMeasureMap.get(requestId);\n\n if (networkMeasure != null) {\n if (networkMeasure.firstReceivedDataTimestamp === 0) {\n networkMeasure.firstReceivedDataTimestamp = timestamp;\n }\n\n networkMeasure.lastReceivedDataTimestamp = timestamp;\n networkMeasure.finishTimestamp = timestamp;\n }\n}\n\nfunction processResourceReceiveResponse(event, timestamp, profilerData, state) {\n const requestId = event.args.data.requestId;\n const networkMeasure = state.requestIdToNetworkMeasureMap.get(requestId);\n\n if (networkMeasure != null) {\n networkMeasure.receiveResponseTimestamp = timestamp;\n }\n}\n\nfunction processScreenshot(event, timestamp, profilerData, state) {\n const encodedSnapshot = event.args.snapshot; // Base 64 encoded\n\n const snapshot = {\n height: 0,\n image: null,\n imageSource: `data:image/png;base64,${encodedSnapshot}`,\n timestamp,\n width: 0\n }; // Delay processing until we\'ve extracted snapshot dimensions.\n\n let resolveFn = null;\n state.asyncProcessingPromises.push(new Promise(resolve => {\n resolveFn = resolve;\n })); // Parse the Base64 image data to determine native size.\n // This will be used later to scale for display within the thumbnail strip.\n\n fetch(snapshot.imageSource).then(response => response.blob()).then(blob => {\n // $FlowFixMe[cannot-resolve-name] createImageBitmap\n createImageBitmap(blob).then(bitmap => {\n snapshot.height = bitmap.height;\n snapshot.width = bitmap.width;\n resolveFn();\n });\n });\n profilerData.snapshots.push(snapshot);\n}\n\nfunction processResourceSendRequest(event, timestamp, profilerData, state) {\n const data = event.args.data;\n const requestId = data.requestId;\n const availableDepths = new Array(state.requestIdToNetworkMeasureMap.size + 1).fill(true);\n state.requestIdToNetworkMeasureMap.forEach(({\n depth\n }) => {\n availableDepths[depth] = false;\n });\n let depth = 0;\n\n for (let i = 0; i < availableDepths.length; i++) {\n if (availableDepths[i]) {\n depth = i;\n break;\n }\n }\n\n const networkMeasure = {\n depth,\n finishTimestamp: 0,\n firstReceivedDataTimestamp: 0,\n lastReceivedDataTimestamp: 0,\n requestId,\n requestMethod: data.requestMethod,\n priority: data.priority,\n sendRequestTimestamp: timestamp,\n receiveResponseTimestamp: 0,\n url: data.url\n };\n state.requestIdToNetworkMeasureMap.set(requestId, networkMeasure);\n profilerData.networkMeasures.push(networkMeasure);\n networkMeasure.sendRequestTimestamp = timestamp;\n}\n\nfunction processTimelineEvent(event,\n/** Finalized profiler data up to `event`. May be mutated. */\ncurrentProfilerData,\n/** Intermediate processor state. May be mutated. */\nstate) {\n const {\n cat,\n name,\n ts,\n ph\n } = event;\n const startTime = (ts - currentProfilerData.startTime) / 1000;\n\n switch (cat) {\n case \'disabled-by-default-devtools.screenshot\':\n processScreenshot(event, startTime, currentProfilerData, state);\n break;\n\n case \'devtools.timeline\':\n switch (name) {\n case \'EventDispatch\':\n processEventDispatch(event, startTime, currentProfilerData, state);\n break;\n\n case \'ResourceFinish\':\n processResourceFinish(event, startTime, currentProfilerData, state);\n break;\n\n case \'ResourceReceivedData\':\n processResourceReceivedData(event, startTime, currentProfilerData, state);\n break;\n\n case \'ResourceReceiveResponse\':\n processResourceReceiveResponse(event, startTime, currentProfilerData, state);\n break;\n\n case \'ResourceSendRequest\':\n processResourceSendRequest(event, startTime, currentProfilerData, state);\n break;\n }\n\n break;\n\n case \'blink.user_timing\':\n if (name.startsWith(\'--react-version-\')) {\n const [reactVersion] = name.slice(16).split(\'-\');\n currentProfilerData.reactVersion = reactVersion;\n } else if (name.startsWith(\'--profiler-version-\')) {\n const [versionString] = name.slice(19).split(\'-\');\n profilerVersion = parseInt(versionString, 10);\n\n if (profilerVersion !== SCHEDULING_PROFILER_VERSION) {\n throw new InvalidProfileError(`This version of profiling data (${versionString}) is not supported by the current profiler.`);\n }\n } else if (name.startsWith(\'--react-lane-labels-\')) {\n const [laneLabelTuplesString] = name.slice(20).split(\'-\');\n updateLaneToLabelMap(currentProfilerData, laneLabelTuplesString);\n } else if (name.startsWith(\'--component-\')) {\n processReactComponentMeasure(name, startTime, currentProfilerData, state);\n } else if (name.startsWith(\'--schedule-render-\')) {\n const [laneBitmaskString] = name.slice(18).split(\'-\');\n currentProfilerData.schedulingEvents.push({\n type: \'schedule-render\',\n lanes: getLanesFromTransportDecimalBitmask(laneBitmaskString),\n timestamp: startTime,\n warning: null\n });\n } else if (name.startsWith(\'--schedule-forced-update-\')) {\n const [laneBitmaskString, componentName] = name.slice(25).split(\'-\');\n const forceUpdateEvent = {\n type: \'schedule-force-update\',\n lanes: getLanesFromTransportDecimalBitmask(laneBitmaskString),\n componentName,\n timestamp: startTime,\n warning: null\n }; // If this is a nested update, make a note of it.\n // Once we\'re done processing events, we\'ll check to see if it was a long update and warn about it.\n\n if (state.measureStack.find(({\n type\n }) => type === \'commit\')) {\n state.potentialLongNestedUpdate = forceUpdateEvent;\n }\n\n currentProfilerData.schedulingEvents.push(forceUpdateEvent);\n } else if (name.startsWith(\'--schedule-state-update-\')) {\n const [laneBitmaskString, componentName] = name.slice(24).split(\'-\');\n const stateUpdateEvent = {\n type: \'schedule-state-update\',\n lanes: getLanesFromTransportDecimalBitmask(laneBitmaskString),\n componentName,\n timestamp: startTime,\n warning: null\n }; // If this is a nested update, make a note of it.\n // Once we\'re done processing events, we\'ll check to see if it was a long update and warn about it.\n\n if (state.measureStack.find(({\n type\n }) => type === \'commit\')) {\n state.potentialLongNestedUpdate = stateUpdateEvent;\n }\n\n currentProfilerData.schedulingEvents.push(stateUpdateEvent);\n } else if (name.startsWith(\'--error-\')) {\n const [componentName, phase, message] = name.slice(8).split(\'-\');\n currentProfilerData.thrownErrors.push({\n componentName,\n message,\n phase: phase,\n timestamp: startTime,\n type: \'thrown-error\'\n });\n } else if (name.startsWith(\'--suspense-suspend-\')) {\n const [id, componentName, phase, laneBitmaskString, promiseName] = name.slice(19).split(\'-\');\n const lanes = getLanesFromTransportDecimalBitmask(laneBitmaskString);\n const availableDepths = new Array(state.unresolvedSuspenseEvents.size + 1).fill(true);\n state.unresolvedSuspenseEvents.forEach(({\n depth\n }) => {\n availableDepths[depth] = false;\n });\n let depth = 0;\n\n for (let i = 0; i < availableDepths.length; i++) {\n if (availableDepths[i]) {\n depth = i;\n break;\n }\n } // TODO (timeline) Maybe we should calculate depth in post,\n // so unresolved Suspense requests don\'t take up space.\n // We can\'t know if they\'ll be resolved or not at this point.\n // We\'ll just give them a default (fake) duration width.\n\n\n const suspenseEvent = {\n componentName,\n depth,\n duration: null,\n id,\n phase: phase,\n promiseName: promiseName || null,\n resolution: \'unresolved\',\n timestamp: startTime,\n type: \'suspense\',\n warning: null\n };\n\n if (phase === \'update\') {\n // If a component suspended during an update, we should verify that it was during a transition.\n // We need the lane metadata to verify this though.\n // Since that data is only logged during commit, we may not have it yet.\n // Store these events for post-processing then.\n state.potentialSuspenseEventsOutsideOfTransition.push([suspenseEvent, lanes]);\n }\n\n currentProfilerData.suspenseEvents.push(suspenseEvent);\n state.unresolvedSuspenseEvents.set(id, suspenseEvent);\n } else if (name.startsWith(\'--suspense-resolved-\')) {\n const [id] = name.slice(20).split(\'-\');\n const suspenseEvent = state.unresolvedSuspenseEvents.get(id);\n\n if (suspenseEvent != null) {\n state.unresolvedSuspenseEvents.delete(id);\n suspenseEvent.duration = startTime - suspenseEvent.timestamp;\n suspenseEvent.resolution = \'resolved\';\n }\n } else if (name.startsWith(\'--suspense-rejected-\')) {\n const [id] = name.slice(20).split(\'-\');\n const suspenseEvent = state.unresolvedSuspenseEvents.get(id);\n\n if (suspenseEvent != null) {\n state.unresolvedSuspenseEvents.delete(id);\n suspenseEvent.duration = startTime - suspenseEvent.timestamp;\n suspenseEvent.resolution = \'rejected\';\n }\n } else if (name.startsWith(\'--render-start-\')) {\n if (state.nextRenderShouldGenerateNewBatchID) {\n state.nextRenderShouldGenerateNewBatchID = false;\n state.batchUID = state.uidCounter++;\n } // If this render is the result of a nested update, make a note of it.\n // Once we\'re done processing events, we\'ll check to see if it was a long update and warn about it.\n\n\n if (state.potentialLongNestedUpdate !== null) {\n state.potentialLongNestedUpdates.push([state.potentialLongNestedUpdate, state.batchUID]);\n state.potentialLongNestedUpdate = null;\n }\n\n const [laneBitmaskString] = name.slice(15).split(\'-\');\n throwIfIncomplete(\'render\', state.measureStack);\n\n if (getLastType(state.measureStack) !== \'render-idle\') {\n markWorkStarted(\'render-idle\', startTime, getLanesFromTransportDecimalBitmask(laneBitmaskString), currentProfilerData, state);\n }\n\n markWorkStarted(\'render\', startTime, getLanesFromTransportDecimalBitmask(laneBitmaskString), currentProfilerData, state);\n\n for (let i = 0; i < state.nativeEventStack.length; i++) {\n const nativeEvent = state.nativeEventStack[i];\n const stopTime = nativeEvent.timestamp + nativeEvent.duration; // If React work was scheduled during an event handler, and the event had a long duration,\n // it might be because the React render was long and stretched the event.\n // It might also be that the React work was short and that something else stretched the event.\n // Make a note of this event for now and we\'ll examine the batch of React render work later.\n // (We can\'t know until we\'re done processing the React update anyway.)\n\n if (stopTime > startTime) {\n state.potentialLongEvents.push([nativeEvent, state.batchUID]);\n }\n }\n } else if (name.startsWith(\'--render-stop\') || name.startsWith(\'--render-yield\')) {\n markWorkCompleted(\'render\', startTime, currentProfilerData, state.measureStack);\n } else if (name.startsWith(\'--commit-start-\')) {\n state.nextRenderShouldGenerateNewBatchID = true;\n const [laneBitmaskString] = name.slice(15).split(\'-\');\n markWorkStarted(\'commit\', startTime, getLanesFromTransportDecimalBitmask(laneBitmaskString), currentProfilerData, state);\n } else if (name.startsWith(\'--commit-stop\')) {\n markWorkCompleted(\'commit\', startTime, currentProfilerData, state.measureStack);\n markWorkCompleted(\'render-idle\', startTime, currentProfilerData, state.measureStack);\n } else if (name.startsWith(\'--layout-effects-start-\')) {\n const [laneBitmaskString] = name.slice(23).split(\'-\');\n markWorkStarted(\'layout-effects\', startTime, getLanesFromTransportDecimalBitmask(laneBitmaskString), currentProfilerData, state);\n } else if (name.startsWith(\'--layout-effects-stop\')) {\n markWorkCompleted(\'layout-effects\', startTime, currentProfilerData, state.measureStack);\n } else if (name.startsWith(\'--passive-effects-start-\')) {\n const [laneBitmaskString] = name.slice(24).split(\'-\');\n markWorkStarted(\'passive-effects\', startTime, getLanesFromTransportDecimalBitmask(laneBitmaskString), currentProfilerData, state);\n } else if (name.startsWith(\'--passive-effects-stop\')) {\n markWorkCompleted(\'passive-effects\', startTime, currentProfilerData, state.measureStack);\n } else if (name.startsWith(\'--react-internal-module-start-\')) {\n const stackFrameStart = name.slice(30);\n\n if (!state.internalModuleStackStringSet.has(stackFrameStart)) {\n state.internalModuleStackStringSet.add(stackFrameStart);\n const parsedStackFrameStart = parseStackFrame(stackFrameStart);\n state.internalModuleCurrentStackFrame = parsedStackFrameStart;\n }\n } else if (name.startsWith(\'--react-internal-module-stop-\')) {\n const stackFrameStop = name.slice(29);\n\n if (!state.internalModuleStackStringSet.has(stackFrameStop)) {\n state.internalModuleStackStringSet.add(stackFrameStop);\n const parsedStackFrameStop = parseStackFrame(stackFrameStop);\n\n if (parsedStackFrameStop !== null && state.internalModuleCurrentStackFrame !== null) {\n const parsedStackFrameStart = state.internalModuleCurrentStackFrame;\n state.internalModuleCurrentStackFrame = null;\n const range = [parsedStackFrameStart, parsedStackFrameStop];\n const ranges = currentProfilerData.internalModuleSourceToRanges.get(parsedStackFrameStart.fileName);\n\n if (ranges == null) {\n currentProfilerData.internalModuleSourceToRanges.set(parsedStackFrameStart.fileName, [range]);\n } else {\n ranges.push(range);\n }\n }\n }\n } else if (ph === \'R\' || ph === \'n\') {\n // User Timing mark\n currentProfilerData.otherUserTimingMarks.push({\n name,\n timestamp: startTime\n });\n } else if (ph === \'b\') {// TODO: Begin user timing measure\n } else if (ph === \'e\') {// TODO: End user timing measure\n } else if (ph === \'i\' || ph === \'I\') {// Instant events.\n // Note that the capital "I" is a deprecated value that exists in Chrome Canary traces.\n } else {\n throw new InvalidProfileError(`Unrecognized event ${JSON.stringify(event)}! This is likely a bug in this profiler tool.`);\n }\n\n break;\n }\n}\n\nfunction assertNoOverlappingComponentMeasure(state) {\n if (state.currentReactComponentMeasure !== null) {\n console.error(\'Component measure started while another measure in progress:\', state.currentReactComponentMeasure);\n }\n}\n\nfunction assertCurrentComponentMeasureType(state, type) {\n if (state.currentReactComponentMeasure === null) {\n console.error(`Component measure type "${type}" stopped while no measure was in progress`);\n } else if (state.currentReactComponentMeasure.type !== type) {\n console.error(`Component measure type "${type}" stopped while type ${state.currentReactComponentMeasure.type} in progress`);\n }\n}\n\nfunction processReactComponentMeasure(name, startTime, currentProfilerData, state) {\n if (name.startsWith(\'--component-render-start-\')) {\n const [componentName] = name.slice(25).split(\'-\');\n assertNoOverlappingComponentMeasure(state);\n state.currentReactComponentMeasure = {\n componentName,\n timestamp: startTime,\n duration: 0,\n type: \'render\',\n warning: null\n };\n } else if (name === \'--component-render-stop\') {\n assertCurrentComponentMeasureType(state, \'render\');\n\n if (state.currentReactComponentMeasure !== null) {\n const componentMeasure = state.currentReactComponentMeasure;\n componentMeasure.duration = startTime - componentMeasure.timestamp;\n state.currentReactComponentMeasure = null;\n currentProfilerData.componentMeasures.push(componentMeasure);\n }\n } else if (name.startsWith(\'--component-layout-effect-mount-start-\')) {\n const [componentName] = name.slice(38).split(\'-\');\n assertNoOverlappingComponentMeasure(state);\n state.currentReactComponentMeasure = {\n componentName,\n timestamp: startTime,\n duration: 0,\n type: \'layout-effect-mount\',\n warning: null\n };\n } else if (name === \'--component-layout-effect-mount-stop\') {\n assertCurrentComponentMeasureType(state, \'layout-effect-mount\');\n\n if (state.currentReactComponentMeasure !== null) {\n const componentMeasure = state.currentReactComponentMeasure;\n componentMeasure.duration = startTime - componentMeasure.timestamp;\n state.currentReactComponentMeasure = null;\n currentProfilerData.componentMeasures.push(componentMeasure);\n }\n } else if (name.startsWith(\'--component-layout-effect-unmount-start-\')) {\n const [componentName] = name.slice(40).split(\'-\');\n assertNoOverlappingComponentMeasure(state);\n state.currentReactComponentMeasure = {\n componentName,\n timestamp: startTime,\n duration: 0,\n type: \'layout-effect-unmount\',\n warning: null\n };\n } else if (name === \'--component-layout-effect-unmount-stop\') {\n assertCurrentComponentMeasureType(state, \'layout-effect-unmount\');\n\n if (state.currentReactComponentMeasure !== null) {\n const componentMeasure = state.currentReactComponentMeasure;\n componentMeasure.duration = startTime - componentMeasure.timestamp;\n state.currentReactComponentMeasure = null;\n currentProfilerData.componentMeasures.push(componentMeasure);\n }\n } else if (name.startsWith(\'--component-passive-effect-mount-start-\')) {\n const [componentName] = name.slice(39).split(\'-\');\n assertNoOverlappingComponentMeasure(state);\n state.currentReactComponentMeasure = {\n componentName,\n timestamp: startTime,\n duration: 0,\n type: \'passive-effect-mount\',\n warning: null\n };\n } else if (name === \'--component-passive-effect-mount-stop\') {\n assertCurrentComponentMeasureType(state, \'passive-effect-mount\');\n\n if (state.currentReactComponentMeasure !== null) {\n const componentMeasure = state.currentReactComponentMeasure;\n componentMeasure.duration = startTime - componentMeasure.timestamp;\n state.currentReactComponentMeasure = null;\n currentProfilerData.componentMeasures.push(componentMeasure);\n }\n } else if (name.startsWith(\'--component-passive-effect-unmount-start-\')) {\n const [componentName] = name.slice(41).split(\'-\');\n assertNoOverlappingComponentMeasure(state);\n state.currentReactComponentMeasure = {\n componentName,\n timestamp: startTime,\n duration: 0,\n type: \'passive-effect-unmount\',\n warning: null\n };\n } else if (name === \'--component-passive-effect-unmount-stop\') {\n assertCurrentComponentMeasureType(state, \'passive-effect-unmount\');\n\n if (state.currentReactComponentMeasure !== null) {\n const componentMeasure = state.currentReactComponentMeasure;\n componentMeasure.duration = startTime - componentMeasure.timestamp;\n state.currentReactComponentMeasure = null;\n currentProfilerData.componentMeasures.push(componentMeasure);\n }\n }\n}\n\nfunction preprocessFlamechart(rawData) {\n let parsedData;\n\n try {\n parsedData = (0,library.importFromChromeTimeline)(rawData, \'react-devtools\');\n } catch (error) {\n // Assume any Speedscope errors are caused by bad profiles\n const errorToRethrow = new InvalidProfileError(error.message);\n errorToRethrow.stack = error.stack;\n throw errorToRethrow;\n }\n\n const profile = parsedData.profiles[0]; // TODO: Choose the main CPU thread only\n\n const speedscopeFlamechart = new library.Flamechart({\n // $FlowFixMe[method-unbinding]\n getTotalWeight: profile.getTotalWeight.bind(profile),\n // $FlowFixMe[method-unbinding]\n forEachCall: profile.forEachCall.bind(profile),\n // $FlowFixMe[method-unbinding]\n formatValue: profile.formatValue.bind(profile),\n getColorBucketForFrame: () => 0\n });\n const flamechart = speedscopeFlamechart.getLayers().map(layer => layer.map(({\n start,\n end,\n node: {\n frame: {\n name,\n file,\n line,\n col\n }\n }\n }) => ({\n name,\n timestamp: start / 1000,\n duration: (end - start) / 1000,\n scriptUrl: file,\n locationLine: line,\n locationColumn: col\n })));\n return flamechart;\n}\n\nfunction parseStackFrame(stackFrame) {\n const error = new Error();\n error.stack = stackFrame;\n const frames = error_stack_parser_default().parse(error);\n return frames.length === 1 ? frames[0] : null;\n}\n\nasync function preprocessData(timeline) {\n const flamechart = preprocessFlamechart(timeline);\n const laneToReactMeasureMap = new Map();\n\n for (let lane = 0; lane < REACT_TOTAL_NUM_LANES; lane++) {\n laneToReactMeasureMap.set(lane, []);\n }\n\n const profilerData = {\n batchUIDToMeasuresMap: new Map(),\n componentMeasures: [],\n duration: 0,\n flamechart,\n internalModuleSourceToRanges: new Map(),\n laneToLabelMap: new Map(),\n laneToReactMeasureMap,\n nativeEvents: [],\n networkMeasures: [],\n otherUserTimingMarks: [],\n reactVersion: null,\n schedulingEvents: [],\n snapshots: [],\n snapshotHeight: 0,\n startTime: 0,\n suspenseEvents: [],\n thrownErrors: []\n }; // Sort `timeline`. JSON Array Format trace events need not be ordered. See:\n // https://docs.google.com/document/d/1CvAClvFfyA5R-PhYUmn5OOQtYMH4h6I0nSsKchNAySU/preview#heading=h.f2f0yd51wi15\n\n timeline = timeline.filter(Boolean).sort((a, b) => a.ts > b.ts ? 1 : -1); // Events displayed in flamechart have timestamps relative to the profile\n // event\'s startTime. Source: https://github.com/v8/v8/blob/44bd8fd7/src/inspector/js_protocol.json#L1486\n //\n // We\'ll thus expect there to be a \'Profile\' event; if there is not one, we\n // can deduce that there are no flame chart events. As we expect React\n // scheduling profiling user timing marks to be recorded together with browser\n // flame chart events, we can futher deduce that the data is invalid and we\n // don\'t bother finding React events.\n\n const indexOfProfileEvent = timeline.findIndex(event => event.name === \'Profile\');\n\n if (indexOfProfileEvent === -1) {\n return profilerData;\n } // Use Profile event\'s `startTime` as the start time to align with flame chart.\n // TODO: Remove assumption that there\'ll only be 1 \'Profile\' event. If this\n // assumption does not hold, the chart may start at the wrong time.\n\n\n profilerData.startTime = timeline[indexOfProfileEvent].args.data.startTime;\n profilerData.duration = (timeline[timeline.length - 1].ts - profilerData.startTime) / 1000;\n const state = {\n asyncProcessingPromises: [],\n batchUID: 0,\n currentReactComponentMeasure: null,\n internalModuleCurrentStackFrame: null,\n internalModuleStackStringSet: new Set(),\n measureStack: [],\n nativeEventStack: [],\n nextRenderShouldGenerateNewBatchID: true,\n potentialLongEvents: [],\n potentialLongNestedUpdate: null,\n potentialLongNestedUpdates: [],\n potentialSuspenseEventsOutsideOfTransition: [],\n requestIdToNetworkMeasureMap: new Map(),\n uidCounter: 0,\n unresolvedSuspenseEvents: new Map()\n };\n timeline.forEach(event => processTimelineEvent(event, profilerData, state));\n\n if (profilerVersion === null) {\n if (profilerData.schedulingEvents.length === 0 && profilerData.batchUIDToMeasuresMap.size === 0) {\n // No profiler version could indicate data was logged using an older build of React,\n // before an explicitly profiler version was included in the logging data.\n // But it could also indicate that the website was either not using React, or using a production build.\n // The easiest way to check for this case is to see if the data contains any scheduled updates or render work.\n throw new InvalidProfileError(\'No React marks were found in the provided profile.\' + \' Please provide profiling data from an React application running in development or profiling mode.\');\n }\n\n throw new InvalidProfileError(`This version of profiling data is not supported by the current profiler.`);\n } // Validate that all events and measures are complete\n\n\n const {\n measureStack\n } = state;\n\n if (measureStack.length > 0) {\n console.error(\'Incomplete events or measures\', measureStack);\n } // Check for warnings.\n\n\n state.potentialLongEvents.forEach(([nativeEvent, batchUID]) => {\n // See how long the subsequent batch of React work was.\n // Ignore any work that was already started.\n const [startTime, stopTime] = getBatchRange(batchUID, profilerData, nativeEvent.timestamp);\n\n if (stopTime - startTime > NATIVE_EVENT_DURATION_THRESHOLD) {\n nativeEvent.warning = WARNING_STRINGS.LONG_EVENT_HANDLER;\n }\n });\n state.potentialLongNestedUpdates.forEach(([schedulingEvent, batchUID]) => {\n // See how long the subsequent batch of React work was.\n const [startTime, stopTime] = getBatchRange(batchUID, profilerData);\n\n if (stopTime - startTime > NESTED_UPDATE_DURATION_THRESHOLD) {\n // Don\'t warn about transition updates scheduled during the commit phase.\n // e.g. useTransition, useDeferredValue\n // These are allowed to be long-running.\n if (!schedulingEvent.lanes.some(lane => profilerData.laneToLabelMap.get(lane) === \'Transition\')) {// FIXME: This warning doesn\'t account for "nested updates" that are\n // spawned by useDeferredValue. Disabling temporarily until we figure\n // out the right way to handle this.\n // schedulingEvent.warning = WARNING_STRINGS.NESTED_UPDATE;\n }\n }\n });\n state.potentialSuspenseEventsOutsideOfTransition.forEach(([suspenseEvent, lanes]) => {\n // HACK This is a bit gross but the numeric lane value might change between render versions.\n if (!lanes.some(lane => profilerData.laneToLabelMap.get(lane) === \'Transition\')) {\n suspenseEvent.warning = WARNING_STRINGS.SUSPEND_DURING_UPDATE;\n }\n }); // Wait for any async processing to complete before returning.\n // Since processing is done in a worker, async work must complete before data is serialized and returned.\n\n await Promise.all(state.asyncProcessingPromises); // Now that all images have been loaded, let\'s figure out the display size we\'re going to use for our thumbnails:\n // both the ones rendered to the canvas and the ones shown on hover.\n\n if (profilerData.snapshots.length > 0) {\n // NOTE We assume a static window size here, which is not necessarily true but should be for most cases.\n // Regardless, Chrome also sets a single size/ratio and stick with it- so we\'ll do the same.\n const snapshot = profilerData.snapshots[0];\n profilerData.snapshotHeight = Math.min(snapshot.height, SNAPSHOT_MAX_HEIGHT);\n }\n\n return profilerData;\n}\n// EXTERNAL MODULE: ../../node_modules/nullthrows/nullthrows.js\nvar nullthrows = __webpack_require__(69);\nvar nullthrows_default = /*#__PURE__*/__webpack_require__.n(nullthrows);\n;// CONCATENATED MODULE: ../react-devtools-timeline/src/import-worker/readInputData.js\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\n\n\nconst readInputData = file => {\n if (!file.name.endsWith(\'.json\')) {\n throw new InvalidProfileError(\'Invalid file type. Only JSON performance profiles are supported\');\n }\n\n const fileReader = new FileReader();\n return new Promise((resolve, reject) => {\n fileReader.onload = () => {\n const result = nullthrows_default()(fileReader.result);\n\n if (typeof result === \'string\') {\n resolve(result);\n }\n\n reject(new InvalidProfileError(\'Input file was not read as a string\'));\n };\n\n fileReader.onerror = () => reject(fileReader.error);\n\n fileReader.readAsText(file);\n });\n};\n;// CONCATENATED MODULE: ../react-devtools-timeline/src/import-worker/importFile.js\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\n\n\n\n\nasync function importFile(file) {\n try {\n const readFile = await readInputData(file);\n const events = JSON.parse(readFile);\n\n if (events.length === 0) {\n throw new InvalidProfileError(\'No profiling data found in file.\');\n }\n\n const processedData = await preprocessData(events);\n return {\n status: \'SUCCESS\',\n processedData\n };\n } catch (error) {\n if (error instanceof InvalidProfileError) {\n return {\n status: \'INVALID_PROFILE_ERROR\',\n error\n };\n } else {\n return {\n status: \'UNEXPECTED_ERROR\',\n error\n };\n }\n }\n}\n;// CONCATENATED MODULE: ../../node_modules/workerize-loader/dist/rpc-worker-loader.js!../../node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use[1]!../../node_modules/babel-loader/lib/index.js??ruleSet[1].rules[1]!../react-devtools-timeline/src/import-worker/importFile.worker.js\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nconst importFile_worker_importFile = importFile;\naddEventListener(\'message\', function (e) {var _e$data = e.data,type = _e$data.type,method = _e$data.method,id = _e$data.id,params = _e$data.params,f,p;if (type === \'RPC\' && method) {if (f = __webpack_exports__[method]) {p = Promise.resolve().then(function () {return f.apply(__webpack_exports__, params);});} else {p = Promise.reject(\'No such method\');}p.then(function (result) {postMessage({type: \'RPC\',id: id,result: result});}).catch(function (e) {var error = {message: e};if (e.stack) {error.message = e.message;error.stack = e.stack;error.name = e.name;}postMessage({type: \'RPC\',id: id,error: error});});}});postMessage({type: \'RPC\',method: \'ready\'});\n})();\n\n']))),n(e,a),e}}},n={};function a(e){var r=n[e];if(void 0!==r)return r.exports;var i=n[e]={exports:{}};return t[e].call(i.exports,i,i.exports,a),i.exports}a.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return a.d(r,{a:r}),r},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(t,n){if(1&n&&(t=this(t)),8&n)return t;if("object"==typeof t&&t){if(4&n&&t.__esModule)return t;if(16&n&&"function"==typeof t.then)return t}var i=Object.create(null);a.r(i);var o={};e=e||[null,r({}),r([]),r(r)];for(var s=2&n&&t;"object"==typeof s&&!~e.indexOf(s);s=r(s))Object.getOwnPropertyNames(s).forEach((e=>o[e]=()=>t[e]));return o.default=()=>t,a.d(i,o),i},a.d=(e,r)=>{for(var t in r)a.o(r,t)&&!a.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},a.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};(()=>{a.d(i,{EH:()=>Qh,MT:()=>Jh,j2:()=>Zh});var e={};a.r(e),a.d(e,{importFile:()=>Bv});var r=a(147),t=a.t(r,2),n=a(852);class o{constructor(){var e,r,t;e=this,r="listenersMap",t=new Map,r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t}addListener(e,r){const t=this.listenersMap.get(e);if(void 0===t)this.listenersMap.set(e,[r]);else{t.indexOf(r)<0&&t.push(r)}}emit(e,...r){const t=this.listenersMap.get(e);if(void 0!==t)if(1===t.length){t[0].apply(null,r)}else{let e=!1,n=null;const a=Array.from(t);for(let t=0;t=0&&t.splice(e,1)}}}function s(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}const l=[{version:0,minNpmVersion:'"<4.11.0"',maxNpmVersion:'"<4.11.0"'},{version:1,minNpmVersion:"4.13.0",maxNpmVersion:"4.21.0"},{version:2,minNpmVersion:"4.22.0",maxNpmVersion:null}],c=l[l.length-1];const u=class extends o{constructor(e){super(),s(this,"_isShutdown",!1),s(this,"_messageQueue",[]),s(this,"_timeoutID",null),s(this,"_wallUnlisten",null),s(this,"_flush",(()=>{if(null!==this._timeoutID&&(clearTimeout(this._timeoutID),this._timeoutID=null),this._messageQueue.length){for(let e=0;e{switch(n){case"context":this.send("overrideContext",{id:e,path:r,rendererID:t,wasForwarded:!0,value:a});break;case"hooks":this.send("overrideHookState",{id:e,path:r,rendererID:t,wasForwarded:!0,value:a});break;case"props":this.send("overrideProps",{id:e,path:r,rendererID:t,wasForwarded:!0,value:a});break;case"state":this.send("overrideState",{id:e,path:r,rendererID:t,wasForwarded:!0,value:a})}})),this._wall=e,this._wallUnlisten=e.listen((e=>{e&&e.event&&this.emit(e.event,e.payload)}))||null,this.addListener("overrideValueAtPath",this.overrideValueAtPath)}get wall(){return this._wall}send(e,...r){this._isShutdown?console.warn(`Cannot send message "${e}" through a Bridge that has been shutdown.`):(this._messageQueue.push(e,r),this._timeoutID||(this._timeoutID=setTimeout(this._flush,0)))}shutdown(){if(this._isShutdown)return void console.warn("Bridge was already shutdown.");this.emit("shutdown"),this.send("shutdown"),this._isShutdown=!0,this.addListener=function(){},this.emit=function(){},this.removeAllListeners();const e=this._wallUnlisten;e&&e();do{this._flush()}while(this._messageQueue.length);null!==this._timeoutID&&(clearTimeout(this._timeoutID),this._timeoutID=null)}};var f=a(537),d=a(599);const v=!1,h=!1,m=1,p=2,_=3,S=4,g=5,b=6,w=7,k="React::DevTools::defaultTab",E="React::DevTools::componentFilters",y="React::DevTools::openInEditorUrl",D="React::DevTools::openInEditorUrlPreset",A="React::DevTools::parseHookNames",C="React::DevTools::breakOnConsoleErrors",M="React::DevTools::theme",x="React::DevTools::appendComponentStack",T="React::DevTools::showInlineWarningsAndErrors",H="React::DevTools::traceUpdatesEnabled",N="React::DevTools::hideConsoleLogsInStrictMode",R=5,I=1,O=2,F=5,P=6,L=7,z=8,B=9,V=10,U=11,W=12,j=1,$=2,X=3,G=4;var K=a(18),q=a.n(K),Y=a(377);const Q=!0,J=Symbol.for("react.element"),Z=(Symbol.for("react.transitional.element"),Symbol.for("react.portal")),ee=Symbol.for("react.fragment"),re=Symbol.for("react.strict_mode"),te=Symbol.for("react.profiler"),ne=Symbol.for("react.provider"),ae=Symbol.for("react.consumer"),ie=Symbol.for("react.context"),oe=Symbol.for("react.forward_ref"),se=Symbol.for("react.suspense"),le=Symbol.for("react.suspense_list"),ce=Symbol.for("react.memo"),ue=Symbol.for("react.lazy"),fe=(Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode"),Symbol.for("react.offscreen"),Symbol.for("react.legacy_hidden"),Symbol.for("react.tracing_marker"));Symbol.for("react.memo_cache_sentinel"),Symbol.for("react.postpone"),Symbol.iterator;Symbol.asyncIterator;function de(e){try{return localStorage.getItem(e)}catch(e){return null}}function ve(e,r){try{return localStorage.setItem(e,r)}catch(e){}}const he={inspectable:Symbol("inspectable"),inspected:Symbol("inspected"),name:Symbol("name"),preview_long:Symbol("preview_long"),preview_short:Symbol("preview_short"),readonly:Symbol("readonly"),size:Symbol("size"),type:Symbol("type"),unserializable:Symbol("unserializable")};function me(e,r,t,n){const a=xe(e,t);if(null!=a&&(a[he.unserializable]||(delete a[he.inspectable],delete a[he.inspected],delete a[he.name],delete a[he.preview_long],delete a[he.preview_short],delete a[he.readonly],delete a[he.size],delete a[he.type])),null!==n&&r.unserializable.length>0){const e=r.unserializable[0];let a=e.length===t.length;for(let r=0;r{const t=r.length,n=r[t-1],a=xe(e,r.slice(0,t-1));if(!a||!a.hasOwnProperty(n))return;const i=a[n];if(i)if("infinity"===i.type)a[n]=1/0;else if("nan"===i.type)a[n]=NaN;else if("undefined"===i.type)a[n]=void 0;else{const e={};e[he.inspectable]=!!i.inspectable,e[he.inspected]=!1,e[he.name]=i.name,e[he.preview_long]=i.preview_long,e[he.preview_short]=i.preview_short,e[he.size]=i.size,e[he.readonly]=!!i.readonly,e[he.type]=i.type,a[n]=e}})),t.forEach((r=>{const t=r.length,n=r[t-1],a=xe(e,r.slice(0,t-1));if(!a||!a.hasOwnProperty(n))return;const i=a[n],o={...i};_e(o,i),a[n]=o})),e}function _e(e,r){Object.defineProperties(e,{[he.inspected]:{configurable:!0,enumerable:!1,value:!!r.inspected},[he.name]:{configurable:!0,enumerable:!1,value:r.name},[he.preview_long]:{configurable:!0,enumerable:!1,value:r.preview_long},[he.preview_short]:{configurable:!0,enumerable:!1,value:r.preview_short},[he.size]:{configurable:!0,enumerable:!1,value:r.size},[he.readonly]:{configurable:!0,enumerable:!1,value:!!r.readonly},[he.type]:{configurable:!0,enumerable:!1,value:r.type},[he.unserializable]:{configurable:!0,enumerable:!1,value:!!r.unserializable}}),delete e.inspected,delete e.name,delete e.preview_long,delete e.preview_short,delete e.size,delete e.readonly,delete e.type,delete e.unserializable}const Se=Array.isArray,ge=Object.prototype.hasOwnProperty,be=new WeakMap;new(q())({max:1e3});function we(e,r){return e.toString()>r.toString()?1:r.toString()>e.toString()?-1:0}function ke(e,r="Anonymous"){const t=be.get(e);if(null!=t)return t;let n=r;return"string"==typeof e.displayName?n=e.displayName:"string"==typeof e.name&&""!==e.name&&(n=e.name),be.set(e,n),n}function Ee(e,r,t){let n="";for(let a=r;a<=t;a++)n+=String.fromCodePoint(e[a]);return n}function ye(){try{const e=de(E);if(null!=e){return Ae(JSON.parse(e))}}catch(e){}return[{type:j,value:L,isEnabled:!0}]}function De(e){ve(E,JSON.stringify(Ae(e)))}function Ae(e){return Array.isArray(e)?e.filter((e=>e.type!==X)):e}function Ce(e,r){if(null===e)return{formattedDisplayName:null,hocDisplayNames:null,compiledWithForget:!1};if(e.startsWith("Forget(")){const t=e.slice(7,e.length-1),{formattedDisplayName:n,hocDisplayNames:a}=Ce(t,r);return{formattedDisplayName:n,hocDisplayNames:a,compiledWithForget:!0}}let t=null;switch(r){case I:case P:case F:case z:if(e.indexOf("(")>=0){const r=e.match(/[^()]+/g);null!=r&&(e=r.pop(),t=r)}}return{formattedDisplayName:e,hocDisplayNames:t,compiledWithForget:!1}}function Me(e,r){for(const t in e)if(!(t in r))return!0;for(const t in r)if(e[t]!==r[t])return!0;return!1}function xe(e,r){return r.reduce(((e,r)=>{if(e){if(ge.call(e,r))return e[r];if("function"==typeof e[Symbol.iterator])return Array.from(e)[r]}return null}),e)}function Te(e){const r=(0,Y.kM)(e)||function(e){if("object"==typeof e&&null!==e){const r=e.$$typeof;switch(r){case J:const t=e.type;switch(t){case ee:case te:case re:case se:case le:return t;default:const e=t&&t.$$typeof;switch(e){case ie:case oe:case ue:case ce:return e;case ae:if(Q)return e;case ne:if(!Q)return e;default:return r}}case Z:return r}}}(e);switch(r){case Y.AI:return"ContextConsumer";case Y.HQ:return"ContextProvider";case Y.A4:return"ForwardRef";case Y.HY:return"Fragment";case Y.oM:return"Lazy";case Y._Y:return"Memo";case Y.h_:return"Portal";case Y.Q1:return"Profiler";case Y.nF:return"StrictMode";case Y.n4:return"Suspense";case le:return"SuspenseList";case fe:return"TracingMarker";default:const{type:r}=e;return"string"==typeof r?r:"function"==typeof r?ke(r,"Anonymous"):null!=r?"NotImplementedInDevtools":"Element"}}const He=50;function Ne(e,r=He){return e.length>r?e.slice(0,r)+"…":e}function Re(e,r){if(null!=e&&ge.call(e,he.type))return r?e[he.preview_long]:e[he.preview_short];const t=function(e){if(null===e)return"null";if(void 0===e)return"undefined";if((0,Y.kK)(e))return"react_element";if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return"html_element";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"function":return"function";case"number":return Number.isNaN(e)?"nan":Number.isFinite(e)?"number":"infinity";case"object":if(Se(e))return"array";if(ArrayBuffer.isView(e))return ge.call(e.constructor,"BYTES_PER_ELEMENT")?"typed_array":"data_view";if(e.constructor&&"ArrayBuffer"===e.constructor.name)return"array_buffer";if("function"==typeof e[Symbol.iterator]){const r=e[Symbol.iterator]();if(r)return r===e?"opaque_iterator":"iterator"}else{if(e.constructor&&"RegExp"===e.constructor.name)return"regexp";{const r=Object.prototype.toString.call(e);if("[object Date]"===r)return"date";if("[object HTMLAllCollection]"===r)return"html_all_collection"}}return Ie(e)?"object":"class_instance";case"string":return"string";case"symbol":return"symbol";case"undefined":return"[object HTMLAllCollection]"===Object.prototype.toString.call(e)?"html_all_collection":"undefined";default:return"unknown"}}(e);switch(t){case"html_element":return`<${Ne(e.tagName.toLowerCase())} />`;case"function":return Ne(`ƒ ${"function"==typeof e.name?"":e.name}() {}`);case"string":return`"${e}"`;case"bigint":return Ne(e.toString()+"n");case"regexp":case"symbol":return Ne(e.toString());case"react_element":return`<${Ne(Te(e)||"Unknown")} />`;case"array_buffer":return`ArrayBuffer(${e.byteLength})`;case"data_view":return`DataView(${e.buffer.byteLength})`;case"array":if(r){let r="";for(let t=0;t0&&(r+=", "),r+=Re(e[t],!1),!(r.length>He));t++);return`[${Ne(r)}]`}return`Array(${ge.call(e,he.size)?e[he.size]:e.length})`;case"typed_array":const t=`${e.constructor.name}(${e.length})`;if(r){let r="";for(let t=0;t0&&(r+=", "),r+=e[t],!(r.length>He));t++);return`${t} [${Ne(r)}]`}return t;case"iterator":const n=e.constructor.name;if(r){const r=Array.from(e);let t="";for(let e=0;e0&&(t+=", "),Se(n)){t+=`${Re(n[0],!0)} => ${Re(n[1],!1)}`}else t+=Re(n,!1);if(t.length>He)break}return`${n}(${e.size}) {${Ne(t)}}`}return`${n}(${e.size})`;case"opaque_iterator":return e[Symbol.toStringTag];case"date":return e.toString();case"class_instance":return e.constructor.name;case"object":if(r){const r=Array.from(function(e){const r=new Set;let t=e;for(;null!=t;){const e=[...Object.keys(t),...Object.getOwnPropertySymbols(t)],n=Object.getOwnPropertyDescriptors(t);e.forEach((e=>{n[e].enumerable&&r.add(e)})),t=Object.getPrototypeOf(t)}return r}(e)).sort(we);let t="";for(let n=0;n0&&(t+=", "),t+=`${a.toString()}: ${Re(e[a],!1)}`,t.length>He)break}return`{${Ne(t)}}`}return"{…}";case"boolean":case"number":case"infinity":case"nan":case"null":case"undefined":return e;default:try{return Ne(String(e))}catch(e){return"unserializable"}}}const Ie=e=>{const r=Object.getPrototypeOf(e);if(!r)return!0;return!Object.getPrototypeOf(r)};function Oe(e){const{formattedDisplayName:r,hocDisplayNames:t,compiledWithForget:n}=Ce(e.displayName,e.type);return{...e,displayName:r,hocDisplayNames:t,compiledWithForget:n}}function Fe(e){return e.replace("/./","/")}var Pe=a(804),Le=a.n(Pe);function ze(e,r=!1){let t=" ";e.children.length>0&&(t=e.isCollapsed?"▸":"▾");let n="";null!==e.key&&(n=` key="${e.key}"`);let a=null;null!==e.hocDisplayNames&&(a=[...e.hocDisplayNames]);const i=null===a?"":` [${a.join("][")}]`;let o="";return r&&(o=` (${e.isCollapsed?1:e.weight})`),`${" ".repeat(e.depth+1)}${t} <${e.displayName||"null"}${n}>${i}${o}`}function Be(e){return"string"==typeof e&&e.length>=2&&"'"===e.charAt(0)&&"'"===e.charAt(e.length-1)?'"'+e.slice(1,e.length-1)+'"':e}function Ve(e){switch(e){case"Infinity":return 1/0;case"NaN":return NaN;case"undefined":return;default:return Le().parse(Be(e))}}function Ue(e){if("number"==typeof e){if(Number.isNaN(e))return"NaN";if(!Number.isFinite(e))return"Infinity"}else if(void 0===e)return"undefined";return JSON.stringify(e)}const We=/\n\s+at /,je=/([^\s]+) \((.+):(.+):(.+)\)/;const $e=["var(--color-commit-gradient-0)","var(--color-commit-gradient-1)","var(--color-commit-gradient-2)","var(--color-commit-gradient-3)","var(--color-commit-gradient-4)","var(--color-commit-gradient-5)","var(--color-commit-gradient-6)","var(--color-commit-gradient-7)","var(--color-commit-gradient-8)","var(--color-commit-gradient-9)"];const Xe=e=>{const r=$e.length-1;let t;return t=Number.isNaN(e)?0:Number.isFinite(e)?Math.max(0,Math.min(r,e))*r:r,$e[Math.round(t)]},Ge=e=>Math.round(10*e)/10||"<0.1",Ke=e=>Math.round(Math.round(e)/100)/10,qe=(e,r,t,n)=>(a,i)=>r-e==0?i:(a-e)/(r-e)*(n-t),Ye=(e,...r)=>{v&&console.log(`%cCommitTreeBuilder %c${e}`,"color: pink; font-weight: bold;","font-weight: bold;",...r)},Qe=new Map;function Je({commitIndex:e,profilerStore:r,rootID:t}){Qe.has(t)||Qe.set(t,[]);const n=Qe.get(t);if(eZe(r,e,t,n))))}function er(e,r){const t=new Map(e.nodes),n=e=>{const r=Object.assign({},t.get(e));return t.set(e,r),r};let a=2,i=null;const o=[null],s=r[a++],l=a+s;for(;ae!==i))}else;}break}case b:throw Error("Operation REMOVE_ROOT is not supported while profiling.");case _:{i=r[a+1];const e=r[a+2],t=r.slice(a+3,a+3+e);a=a+3+e,v&&Ye("Re-order",`fiber ${i} children ${t.join(",")}`);n(i).children=Array.from(t);break}case w:{i=r[a+1];const e=r[a+1];a+=3,v&&Ye("Subtree mode",`Subtree with root ${i} set to mode ${e}`);break}case S:{i=r[a+1];const e=n(i);e.treeBaseDuration=r[a+2]/1e3,v&&Ye("Update",`fiber ${i} treeBaseDuration to ${e.treeBaseDuration}`),a+=3;break}case g:{i=r[a+1];const e=r[a+2],t=r[a+3];a+=4,v&&Ye("Warnings and Errors update",`fiber ${i} has ${e} errors and ${t} warnings`);break}default:throw Error(`Unsupported Bridge operation "${e}"`)}}return{nodes:t,rootID:e.rootID}}const rr=e=>{if(v){const{nodes:r,rootID:t}=e;console.group("__printTree()");const n=[t,0];for(;n.length>0;){const e=n.shift(),t=n.shift(),a=r.get(e);if(null==a)throw Error(`Could not find node with id "${e}" in commit tree`);console.log(`${"•".repeat(t)}${a.id}:${a.displayName||""} ${a.key?`key:"${a.key}"`:""} (${a.treeBaseDuration})`),a.children.forEach((e=>{n.push(e,t+1)}))}console.groupEnd()}},tr=new Map;const nr=new Map;function ar(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}class ir{constructor(e){ar(this,"_fiberCommits",new Map),ar(this,"getCommitTree",(({commitIndex:e,rootID:r})=>Je({commitIndex:e,profilerStore:this._profilerStore,rootID:r}))),ar(this,"getFiberCommits",(({fiberID:e,rootID:r})=>{const t=this._fiberCommits.get(e);if(null!=t)return t;const n=[];return this._profilerStore.getDataForRoot(r).commitData.forEach(((r,t)=>{r.fiberActualDurations.has(e)&&n.push(t)})),this._fiberCommits.set(e,n),n})),ar(this,"getFlamegraphChartData",(({commitIndex:e,commitTree:r,rootID:t})=>function({commitIndex:e,commitTree:r,profilerStore:t,rootID:n}){const a=t.getCommitData(n,e),{fiberActualDurations:i,fiberSelfDurations:o}=a,{nodes:s}=r,l=`${n}-${e}`;if(tr.has(l))return tr.get(l);const c=new Map,u=new Set,f=[];let d=0,v=0;const h=(e,r,t)=>{c.set(e,t);const n=s.get(e);if(null==n)throw Error(`Could not find node with id "${e}" in commit tree`);const{children:a,displayName:l,hocDisplayNames:u,key:m,treeBaseDuration:p,compiledWithForget:_}=n,S=i.get(e)||0,g=o.get(e)||0,b=i.has(e),w=l||"Anonymous",k=null!==m?` key="${m}"`:"";let E="";const y=_?"✨ ":"";null!==u&&u.length>0&&(E=` (${u[0]})`);let D=`${y}${w}${E}${k}`;b&&(D+=` (${Ge(g)}ms of ${Ge(S)}ms)`),d=Math.max(d,t),v=Math.max(v,g);const A={actualDuration:S,didRender:b,id:e,label:D,name:w,offset:r-p,selfDuration:g,treeBaseDuration:p};t>f.length?f.push([A]):f[t-1].push(A);for(let e=a.length-1;e>=0;e--){const n=a[e];r-=h(n,r,t+1).treeBaseDuration}return A};let m=0;if(s.size>0){const e=s.get(n);if(null==e)throw Error(`Could not find root node with id "${n}" in commit tree`);for(let r=e.children.length-1;r>=0;r--){const t=e.children[r],n=s.get(t);if(null==n)throw Error(`Could not find node with id "${t}" in commit tree`);m+=n.treeBaseDuration,h(t,m,1)}i.forEach(((e,r)=>{let t=s.get(r);if(null!=t){let e=t.parentID;for(;0!==e&&!u.has(e);)u.add(e),t=s.get(e),e=null!=t?t.parentID:0}}))}const p={baseDuration:m,depth:d,idToDepthMap:c,maxSelfDuration:v,renderPathNodes:u,rows:f};return tr.set(l,p),p}({commitIndex:e,commitTree:r,profilerStore:this._profilerStore,rootID:t}))),ar(this,"getRankedChartData",(({commitIndex:e,commitTree:r,rootID:t})=>function({commitIndex:e,commitTree:r,profilerStore:t,rootID:n}){const a=t.getCommitData(n,e),{fiberActualDurations:i,fiberSelfDurations:o}=a,{nodes:s}=r,l=`${n}-${e}`;if(nr.has(l))return nr.get(l);let c=0;const u=[];i.forEach(((e,r)=>{const t=s.get(r);if(null==t)throw Error(`Could not find node with id "${r}" in commit tree`);const{displayName:n,key:a,parentID:i,type:l,compiledWithForget:f}=t;if(0===i)return;const d=o.get(r)||0;c=Math.max(c,d);const v=n||"Anonymous";let h="";l===P?h=" (ForwardRef)":l===z&&(h=" (Memo)");const m=`${f?"✨ ":""}${v}${h}${null!==a?` key="${a}"`:""} (${Ge(d)}ms)`;u.push({id:r,label:m,name:v,value:d})}));const f={maxValue:c,nodes:u.sort(((e,r)=>r.value-e.value))};return nr.set(l,f),f}({commitIndex:e,commitTree:r,profilerStore:this._profilerStore,rootID:t}))),this._profilerStore=e}invalidate(){this._fiberCommits.clear(),Qe.clear(),tr.clear(),nr.clear()}}function or(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}class sr extends o{constructor(e,r,t){super(),or(this,"_dataBackends",[]),or(this,"_dataFrontend",null),or(this,"_initialRendererIDs",new Set),or(this,"_initialSnapshotsByRootID",new Map),or(this,"_inProgressOperationsByRootID",new Map),or(this,"_isProfiling",!1),or(this,"_rendererIDsThatReportedProfilingData",new Set),or(this,"_rendererQueue",new Set),or(this,"_takeProfilingSnapshotRecursive",((e,r)=>{const t=this._store.getElementByID(e);if(null!==t){const n={id:e,children:t.children.slice(0),displayName:t.displayName,hocDisplayNames:t.hocDisplayNames,key:t.key,type:t.type,compiledWithForget:t.compiledWithForget};r.set(e,n),t.children.forEach((e=>this._takeProfilingSnapshotRecursive(e,r)))}})),or(this,"onBridgeOperations",(e=>{const r=e[0],t=e[1];if(this._isProfiling){let n=this._inProgressOperationsByRootID.get(t);null==n?(n=[e],this._inProgressOperationsByRootID.set(t,n)):n.push(e),this._initialRendererIDs.has(r)||this._initialRendererIDs.add(r),this._initialSnapshotsByRootID.has(t)||this._initialSnapshotsByRootID.set(t,new Map),this._rendererIDsThatReportedProfilingData.add(r)}})),or(this,"onBridgeProfilingData",(e=>{if(this._isProfiling)return;const{rendererID:r}=e;if(!this._rendererQueue.has(r))throw Error(`Unexpected profiling data update from renderer "${r}"`);this._dataBackends.push(e),this._rendererQueue.delete(r),0===this._rendererQueue.size&&(this._dataFrontend=function(e,r,t){const n=new Map,a=[];return e.forEach((e=>{const{timelineData:i}=e;if(null!=i){const{batchUIDToMeasuresKeyValueArray:e,internalModuleSourceToRanges:r,laneToLabelKeyValueArray:t,laneToReactMeasureKeyValueArray:n,...o}=i;a.push({...o,batchUIDToMeasuresMap:new Map(e),internalModuleSourceToRanges:new Map(r),laneToLabelMap:new Map(t),laneToReactMeasureMap:new Map(n)})}e.dataForRoots.forEach((({commitData:e,displayName:a,initialTreeBaseDurations:i,rootID:o})=>{const s=r.get(o);if(null==s)throw Error(`Could not find profiling operations for root "${o}"`);const l=t.get(o);if(null==l)throw Error(`Could not find profiling snapshots for root "${o}"`);const c=e.map(((e,r)=>({changeDescriptions:null!=e.changeDescriptions?new Map(e.changeDescriptions):null,duration:e.duration,effectDuration:e.effectDuration,fiberActualDurations:new Map(e.fiberActualDurations),fiberSelfDurations:new Map(e.fiberSelfDurations),passiveEffectDuration:e.passiveEffectDuration,priorityLevel:e.priorityLevel,timestamp:e.timestamp,updaters:null!==e.updaters?e.updaters.map(Oe):null})));n.set(o,{commitData:c,displayName:a,initialTreeBaseDurations:new Map(i),operations:s,rootID:o,snapshots:l})}))})),{dataForRoots:n,imported:!1,timelineData:a}}(this._dataBackends,this._inProgressOperationsByRootID,this._initialSnapshotsByRootID),this._dataBackends.splice(0),this.emit("isProcessingData"))})),or(this,"onBridgeShutdown",(()=>{this._bridge.removeListener("operations",this.onBridgeOperations),this._bridge.removeListener("profilingData",this.onBridgeProfilingData),this._bridge.removeListener("profilingStatus",this.onProfilingStatus),this._bridge.removeListener("shutdown",this.onBridgeShutdown)})),or(this,"onProfilingStatus",(e=>{if(e){this._dataBackends.splice(0),this._dataFrontend=null,this._initialRendererIDs.clear(),this._initialSnapshotsByRootID.clear(),this._inProgressOperationsByRootID.clear(),this._rendererIDsThatReportedProfilingData.clear(),this._rendererQueue.clear();for(const e of this._store.rootIDToRendererID.values())this._initialRendererIDs.has(e)||this._initialRendererIDs.add(e);this._store.roots.forEach((e=>{const r=new Map;this._initialSnapshotsByRootID.set(e,r),this._takeProfilingSnapshotRecursive(e,r)}))}this._isProfiling!==e&&(this._isProfiling=e,this._cache.invalidate(),this.emit("isProfiling"),e||(this._dataBackends.splice(0),this._rendererQueue.clear(),this._rendererIDsThatReportedProfilingData.forEach((e=>{this._rendererQueue.has(e)||(this._rendererQueue.add(e),this._bridge.send("getProfilingData",{rendererID:e}))})),this.emit("isProcessingData")))})),this._bridge=e,this._isProfiling=t,this._store=r,e.addListener("operations",this.onBridgeOperations),e.addListener("profilingData",this.onBridgeProfilingData),e.addListener("profilingStatus",this.onProfilingStatus),e.addListener("shutdown",this.onBridgeShutdown),e.send("getProfilingStatus"),this._cache=new ir(this)}getCommitData(e,r){if(null!==this._dataFrontend){const t=this._dataFrontend.dataForRoots.get(e);if(null!=t){const e=t.commitData[r];if(null!=e)return e}}throw Error(`Could not find commit data for root "${e}" and commit "${r}"`)}getDataForRoot(e){if(null!==this._dataFrontend){const r=this._dataFrontend.dataForRoots.get(e);if(null!=r)return r}throw Error(`Could not find commit data for root "${e}"`)}get didRecordCommits(){return null!==this._dataFrontend&&this._dataFrontend.dataForRoots.size>0}get isProcessingData(){return this._rendererQueue.size>0||this._dataBackends.length>0}get isProfiling(){return this._isProfiling}get profilingCache(){return this._cache}get profilingData(){return this._dataFrontend}set profilingData(e){this._isProfiling?console.warn("Profiling data cannot be updated while profiling is in progress."):(this._dataBackends.splice(0),this._dataFrontend=e,this._initialRendererIDs.clear(),this._initialSnapshotsByRootID.clear(),this._inProgressOperationsByRootID.clear(),this._cache.invalidate(),this.emit("profilingData"))}clear(){this._dataBackends.splice(0),this._dataFrontend=null,this._initialRendererIDs.clear(),this._initialSnapshotsByRootID.clear(),this._inProgressOperationsByRootID.clear(),this._rendererQueue.clear(),this._cache.invalidate(),this.emit("profilingData")}startProfiling(){this._bridge.send("startProfiling",this._store.recordChangeDescriptions)}stopProfiling(){this._bridge.send("stopProfiling")}}class lr extends Error{constructor(e){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,lr),this.name="UnsupportedBridgeOperationError"}}function cr(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}const ur=(e,...r)=>{v&&console.log(`%cStore %c${e}`,"color: green; font-weight: bold;","font-weight: bold;",...r)},fr="React::DevTools::collapseNodesByDefault",dr="React::DevTools::recordChangeDescriptions";class vr extends o{constructor(e,r){super(),cr(this,"_backendVersion",null),cr(this,"_cachedErrorCount",0),cr(this,"_cachedWarningCount",0),cr(this,"_cachedErrorAndWarningTuples",null),cr(this,"_collapseNodesByDefault",!0),cr(this,"_errorsAndWarnings",new Map),cr(this,"_hasOwnerMetadata",!1),cr(this,"_idToElement",new Map),cr(this,"_isNativeStyleEditorSupported",!1),cr(this,"_isBackendStorageAPISupported",!1),cr(this,"_isSynchronousXHRSupported",!1),cr(this,"_nativeStyleEditorValidAttributes",null),cr(this,"_onBridgeProtocolTimeoutID",null),cr(this,"_ownersMap",new Map),cr(this,"_recordChangeDescriptions",!1),cr(this,"_revision",0),cr(this,"_roots",[]),cr(this,"_rootIDToCapabilities",new Map),cr(this,"_rootIDToRendererID",new Map),cr(this,"_supportsNativeInspection",!0),cr(this,"_supportsProfiling",!1),cr(this,"_supportsReloadAndProfile",!1),cr(this,"_supportsTimeline",!1),cr(this,"_supportsTraceUpdates",!1),cr(this,"_rootSupportsBasicProfiling",!1),cr(this,"_rootSupportsTimelineProfiling",!1),cr(this,"_bridgeProtocol",null),cr(this,"_unsupportedBridgeProtocolDetected",!1),cr(this,"_unsupportedRendererVersionDetected",!1),cr(this,"_weightAcrossRoots",0),cr(this,"_adjustParentTreeWeight",((e,r)=>{let t=!1;for(;null!=e;){if(e.weight+=r,e.isCollapsed){t=!0;break}e=this._idToElement.get(e.parentID)}t||(this._weightAcrossRoots+=r)})),cr(this,"onBridgeNativeStyleEditorSupported",(({isSupported:e,validAttributes:r})=>{this._isNativeStyleEditorSupported=e,this._nativeStyleEditorValidAttributes=r||null,this.emit("supportsNativeStyleEditor")})),cr(this,"onBridgeOperations",(e=>{v&&(console.groupCollapsed("onBridgeOperations"),ur("onBridgeOperations",e.join(",")));let r=!1,t=!1;const n=e[0],a=[],i=new Map;let o=2;const s=[null],l=e[o];o++;const c=o+l;for(;o0;o++;const s=0!=(1&e[o]),l=0!=(2&e[o]);o++;let c=!1,u=!1;(null===this._bridgeProtocol||this._bridgeProtocol.version>=2)&&(c=e[o]>0,o++,u=e[o]>0,o++),this._roots=this._roots.concat(t),this._rootIDToRendererID.set(t,n),this._rootIDToCapabilities.set(t,{supportsBasicProfiling:s,hasOwnerMetadata:u,supportsStrictMode:c,supportsTimeline:l});const f=!a&&c;this._idToElement.set(t,{children:[],depth:-1,displayName:null,hocDisplayNames:null,id:t,isCollapsed:!1,isStrictModeNonCompliant:f,key:null,ownerID:0,parentID:0,type:i,weight:0,compiledWithForget:!1}),r=!0}else{const r=e[o];o++;const n=e[o];o++;const l=s[e[o]];o++;const c=s[e[o]];o++,v&&ur("Add",`node ${t} (${l||"null"}) as child of ${r}`);const u=this._idToElement.get(r);if(void 0===u){this._throwAndEmitError(Error(`Cannot add child "${t}" to parent "${r}" because parent node was not found in the Store.`));break}u.children.push(t);const{formattedDisplayName:f,hocDisplayNames:d,compiledWithForget:h}=Ce(l,i),m={children:[],depth:u.depth+1,displayName:f,hocDisplayNames:d,id:t,isCollapsed:this._collapseNodesByDefault,isStrictModeNonCompliant:u.isStrictModeNonCompliant,key:c,ownerID:n,parentID:r,type:i,weight:1,compiledWithForget:h};if(this._idToElement.set(t,m),a.push(t),this._adjustParentTreeWeight(u,1),n>0){let e=this._ownersMap.get(n);void 0===e&&(e=new Set,this._ownersMap.set(n,e)),e.add(t)}}break}case p:{const n=e[o+1];o+=2;for(let a=0;a0&&this._throwAndEmitError(Error(`Node "${n}" was removed before its children.`)),this._idToElement.delete(n);let f=null;if(0===c)v&&ur("Remove",`node ${n} root`),this._roots=this._roots.filter((e=>e!==n)),this._rootIDToRendererID.delete(n),this._rootIDToCapabilities.delete(n),r=!0;else{if(v&&ur("Remove",`node ${n} from parent ${c}`),f=this._idToElement.get(c),void 0===f){this._throwAndEmitError(Error(`Cannot remove node "${n}" from parent "${c}" because no matching node was found in the Store.`));break}const e=f.children.indexOf(n);f.children.splice(e,1)}if(this._adjustParentTreeWeight(f,-u),i.set(n,c),this._ownersMap.delete(n),l>0){const e=this._ownersMap.get(l);void 0!==e&&e.delete(n)}this._errorsAndWarnings.has(n)&&(this._errorsAndWarnings.delete(n),t=!0)}break}case b:{o+=1;const r=e[1];v&&ur(`Remove root ${r}`);const t=e=>{const r=this._idToElement.get(e);if(this._idToElement.delete(e),r)for(let e=0;ee!==r)),this._weightAcrossRoots-=n.weight;break}case _:{const r=e[o+1],t=e[o+2];o+=3;const n=this._idToElement.get(r);if(void 0===n){this._throwAndEmitError(Error(`Cannot reorder children for node "${r}" because no matching node was found in the Store.`));break}const a=n.children;a.length!==t&&this._throwAndEmitError(Error("Children cannot be added or removed during a reorder operation."));for(let r=0;r{e.isStrictModeNonCompliant=!1})),v&&ur("Subtree mode",`Subtree with root ${r} set to mode ${t}`);break}case S:o+=3;break;case g:const c=e[o+1],u=e[o+2],f=e[o+3];o+=4,u>0||f>0?this._errorsAndWarnings.set(c,{errorCount:u,warningCount:f}):this._errorsAndWarnings.has(c)&&this._errorsAndWarnings.delete(c),t=!0;break;default:this._throwAndEmitError(new lr(`Unsupported Bridge operation "${l}"`))}}if(this._revision++,this._cachedErrorAndWarningTuples=null,t){let e=0,r=0;this._errorsAndWarnings.forEach((t=>{e+=t.errorCount,r+=t.warningCount})),this._cachedErrorCount=e,this._cachedWarningCount=r}if(r){const e=this._rootSupportsBasicProfiling,r=this._rootSupportsTimelineProfiling;this._hasOwnerMetadata=!1,this._rootSupportsBasicProfiling=!1,this._rootSupportsTimelineProfiling=!1,this._rootIDToCapabilities.forEach((({supportsBasicProfiling:e,hasOwnerMetadata:r,supportsTimeline:t})=>{e&&(this._rootSupportsBasicProfiling=!0),r&&(this._hasOwnerMetadata=!0),t&&(this._rootSupportsTimelineProfiling=!0)})),this.emit("roots"),this._rootSupportsBasicProfiling!==e&&this.emit("rootSupportsBasicProfiling"),this._rootSupportsTimelineProfiling!==r&&this.emit("rootSupportsTimelineProfiling")}v&&(console.log(function(e,r=!1,t=null){const n=[];let a=0;function i(e){return null===t?"":t.selectedElementIndex===e?"→":" "}function o(r){const{errorCount:t,warningCount:n}=e.getErrorAndWarningCountForElementID(r.id);return 0===t&&0===n?"":` ${t>0?"✕":""}${n>0?"⚠":""}`}const s=null!==t?t.ownerFlatTree:null;if(null!==s)n.push("[owners]"+(r?` (${s.length})`:"")),s.forEach(((e,r)=>{const t=i(r),a=ze(e,!1),s=o(e);n.push(`${t}${a}${s}`)}));else{const t=e._errorsAndWarnings;if(t.size>0){let e=0,r=0;t.forEach((t=>{e+=t.errorCount,r+=t.warningCount})),n.push(`✕ ${e}, ⚠ ${r}`)}if(e.roots.forEach((t=>{const{weight:s}=e.getElementByID(t),l=r?` (${s})`:"";n.push(`[root]${l}`);for(let t=a;t{this._componentFilters=e,De(e)})),cr(this,"onBridgeShutdown",(()=>{v&&ur("onBridgeShutdown","unsubscribing from Bridge");const e=this._bridge;e.removeListener("operations",this.onBridgeOperations),e.removeListener("overrideComponentFilters",this.onBridgeOverrideComponentFilters),e.removeListener("shutdown",this.onBridgeShutdown),e.removeListener("isBackendStorageAPISupported",this.onBackendStorageAPISupported),e.removeListener("isNativeStyleEditorSupported",this.onBridgeNativeStyleEditorSupported),e.removeListener("isSynchronousXHRSupported",this.onBridgeSynchronousXHRSupported),e.removeListener("unsupportedRendererVersion",this.onBridgeUnsupportedRendererVersion),e.removeListener("backendVersion",this.onBridgeBackendVersion),e.removeListener("bridgeProtocol",this.onBridgeProtocol),e.removeListener("saveToClipboard",this.onSaveToClipboard),null!==this._onBridgeProtocolTimeoutID&&(clearTimeout(this._onBridgeProtocolTimeoutID),this._onBridgeProtocolTimeoutID=null)})),cr(this,"onBackendStorageAPISupported",(e=>{this._isBackendStorageAPISupported=e,this.emit("supportsReloadAndProfile")})),cr(this,"onBridgeSynchronousXHRSupported",(e=>{this._isSynchronousXHRSupported=e,this.emit("supportsReloadAndProfile")})),cr(this,"onBridgeUnsupportedRendererVersion",(()=>{this._unsupportedRendererVersionDetected=!0,this.emit("unsupportedRendererVersionDetected")})),cr(this,"onBridgeBackendVersion",(e=>{this._backendVersion=e,this.emit("backendVersion")})),cr(this,"onBridgeProtocol",(e=>{null!==this._onBridgeProtocolTimeoutID&&(clearTimeout(this._onBridgeProtocolTimeoutID),this._onBridgeProtocolTimeoutID=null),this._bridgeProtocol=e,e.version,c.version})),cr(this,"onBridgeProtocolTimeout",(()=>{this._onBridgeProtocolTimeoutID=null,this._bridgeProtocol=l[0],this.emit("unsupportedBridgeProtocolDetected")})),cr(this,"onSaveToClipboard",(e=>{(0,f.copy)(e)})),v&&ur("constructor","subscribing to Bridge"),this._collapseNodesByDefault="true"===de(fr),this._recordChangeDescriptions="true"===de(dr),this._componentFilters=ye();let t=!1;if(null!=r){t=!0===r.isProfiling;const{supportsNativeInspection:e,supportsProfiling:n,supportsReloadAndProfile:a,supportsTimeline:i,supportsTraceUpdates:o}=r;this._supportsNativeInspection=!1!==e,n&&(this._supportsProfiling=!0),a&&(this._supportsReloadAndProfile=!0),i&&(this._supportsTimeline=!0),o&&(this._supportsTraceUpdates=!0)}this._bridge=e,e.addListener("operations",this.onBridgeOperations),e.addListener("overrideComponentFilters",this.onBridgeOverrideComponentFilters),e.addListener("shutdown",this.onBridgeShutdown),e.addListener("isBackendStorageAPISupported",this.onBackendStorageAPISupported),e.addListener("isNativeStyleEditorSupported",this.onBridgeNativeStyleEditorSupported),e.addListener("isSynchronousXHRSupported",this.onBridgeSynchronousXHRSupported),e.addListener("unsupportedRendererVersion",this.onBridgeUnsupportedRendererVersion),this._profilerStore=new sr(e,this,t),null!=r&&r.checkBridgeProtocolCompatibility&&(this._onBridgeProtocolTimeoutID=setTimeout(this.onBridgeProtocolTimeout,1e4),e.addListener("bridgeProtocol",this.onBridgeProtocol),e.send("getBridgeProtocol")),e.addListener("backendVersion",this.onBridgeBackendVersion),e.send("getBackendVersion"),e.addListener("saveToClipboard",this.onSaveToClipboard)}assertExpectedRootMapSizes(){0===this.roots.length&&(this.assertMapSizeMatchesRootCount(this._idToElement,"_idToElement"),this.assertMapSizeMatchesRootCount(this._ownersMap,"_ownersMap")),this.assertMapSizeMatchesRootCount(this._rootIDToCapabilities,"_rootIDToCapabilities"),this.assertMapSizeMatchesRootCount(this._rootIDToRendererID,"_rootIDToRendererID")}assertMapSizeMatchesRootCount(e,r){const t=this.roots.length;e.size!==t&&this._throwAndEmitError(Error(`Expected ${r} to contain ${t} items, but it contains ${e.size} items\n\n${(0,d.inspect)(e,{depth:20})}`))}get backendVersion(){return this._backendVersion}get collapseNodesByDefault(){return this._collapseNodesByDefault}set collapseNodesByDefault(e){this._collapseNodesByDefault=e,ve(fr,e?"true":"false"),this.emit("collapseNodesByDefault")}get componentFilters(){return this._componentFilters}set componentFilters(e){this._profilerStore.isProfiling&&this._throwAndEmitError(Error("Cannot modify filter preferences while profiling"));const r=this._componentFilters.filter((e=>e.isEnabled)),t=e.filter((e=>e.isEnabled));let n=r.length!==t.length;if(!n)for(let e=0;e=this.numElements)return console.warn(`Invalid index ${e} specified; store contains ${this.numElements} items.`),null;let r,t=0;for(let n=0;ne)break;t+=r.weight}}if(void 0===r)return null;let n=r,a=t-1;for(;e!==a;){const r=n.children.length;for(let t=0;t{const n=this.getIndexOfElementID(t);if(null!==n){let r=0,a=e.length;for(;r>1;e[t].index>n?a=t:r=t+1}e.splice(r,0,{id:t,index:n})}})),this._cachedErrorAndWarningTuples=e,e}getErrorAndWarningCountForElementID(e){return this._errorsAndWarnings.get(e)||{errorCount:0,warningCount:0}}getIndexOfElementID(e){const r=this.getElementByID(e);if(null===r||0===r.parentID)return null;let t=e,n=r.parentID,a=0;for(;;){const e=this._idToElement.get(n);if(void 0===e)return null;const{children:r}=e;for(let e=0;e(this.getIndexOfElementID(e)||0)-(this.getIndexOfElementID(r)||0))).forEach((a=>{const i=this._idToElement.get(a);if(void 0!==i){let o=i.parentID,s=0;for(;o>0;){if(o===e||n.has(o)){s=t.get(o)+1,t.set(a,s);break}const r=this._idToElement.get(o);if(void 0===r)break;o=r.parentID}0===s&&this._throwAndEmitError(Error("Invalid owners list")),r.push({...i,depth:s})}}))}}return r}getRendererIDForElement(e){let r=this._idToElement.get(e);for(;void 0!==r;){if(0===r.parentID){const e=this._rootIDToRendererID.get(r.id);return null==e?null:e}r=this._idToElement.get(r.parentID)}return null}getRootIDForElement(e){let r=this._idToElement.get(e);for(;void 0!==r;){if(0===r.parentID)return r.id;r=this._idToElement.get(r.parentID)}return null}isInsideCollapsedSubTree(e){let r=this._idToElement.get(e);for(;null!=r;){if(0===r.parentID)return!1;if(r=this._idToElement.get(r.parentID),null!=r&&r.isCollapsed)return!0}return!1}toggleIsCollapsed(e,r){let t=!1;const n=this.getElementByID(e);if(null!==n){if(r){if(n.type===U&&this._throwAndEmitError(Error("Root nodes cannot be collapsed")),!n.isCollapsed){t=!0,n.isCollapsed=!0;const e=1-n.weight;let r=this._idToElement.get(n.parentID);for(;void 0!==r;)r.weight+=e,r=this._idToElement.get(r.parentID)}}else{let e=n;for(;null!=e;){const r=e.isCollapsed?1:e.weight;if(e.isCollapsed){t=!0,e.isCollapsed=!1;const n=(e.isCollapsed?1:e.weight)-r;let a=this._idToElement.get(e.parentID);for(;void 0!==a&&(a.weight+=n,!a.isCollapsed);)a=this._idToElement.get(a.parentID)}e=0!==e.parentID?this.getElementByID(e.parentID):null}}if(t){let e=0;this._roots.forEach((r=>{const{weight:t}=this.getElementByID(r);e+=t})),this._weightAcrossRoots=e,this.emit("mutated",[[],new Map])}}}_recursivelyUpdateSubtree(e,r){const t=this._idToElement.get(e);t&&(r(t),t.children.forEach((e=>this._recursivelyUpdateSubtree(e,r))))}_throwAndEmitError(e){throw this.emit("error",e),e}}const hr=(0,r.createContext)(null);hr.displayName="BridgeContext";const mr=(0,r.createContext)(null);mr.displayName="StoreContext";const pr=(0,r.createContext)({isEnabledForInspectedElement:!1,viewAttributeSourceFunction:null});pr.displayName="ContextMenuContext";const _r=(0,r.createContext)({readOnly:!1,hideSettings:!1,hideToggleErrorAction:!1,hideToggleSuspenseAction:!1,hideLogAction:!1,hideViewSourceAction:!1});let Sr;Sr="undefined"!=typeof window?window:"undefined"!=typeof self?self:global;let gr=null,br=null;const wr=Sr.clearTimeout,kr=Sr.setTimeout,Er=Sr.cancelAnimationFrame||Sr.mozCancelAnimationFrame||Sr.webkitCancelAnimationFrame,yr=Sr.requestAnimationFrame||Sr.mozRequestAnimationFrame||Sr.webkitRequestAnimationFrame;function Dr(e){let r,t,n,a,i,o,s;const l="undefined"!=typeof document&&document.attachEvent;if(!l){o=function(e){const r=e.__resizeTriggers__,t=r.firstElementChild,n=r.lastElementChild,a=t.firstElementChild;n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight,a.style.width=t.offsetWidth+1+"px",a.style.height=t.offsetHeight+1+"px",t.scrollLeft=t.scrollWidth,t.scrollTop=t.scrollHeight},i=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},s=function(e){if(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)return;const r=this;o(this),this.__resizeRAF__&&gr(this.__resizeRAF__),this.__resizeRAF__=br((function(){i(r)&&(r.__resizeLast__.width=r.offsetWidth,r.__resizeLast__.height=r.offsetHeight,r.__resizeListeners__.forEach((function(t){t.call(r,e)})))}))};let e=!1,l="";n="animationstart";const c="Webkit Moz O ms".split(" ");let u="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),f="";{const r=document.createElement("fakeelement");if(void 0!==r.style.animationName&&(e=!0),!1===e)for(let t=0;t div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',i=t.head||t.getElementsByTagName("head")[0],o=t.createElement("style");o.id="detectElementResize",o.type="text/css",null!=e&&o.setAttribute("nonce",e),o.styleSheet?o.styleSheet.cssText=n:o.appendChild(t.createTextNode(n)),i.appendChild(o)}}(l),i.__resizeLast__={},i.__resizeListeners__=[],(i.__resizeTriggers__=l.createElement("div")).className="resize-triggers";const u=l.createElement("div");u.className="expand-trigger",u.appendChild(l.createElement("div"));const f=l.createElement("div");f.className="contract-trigger",i.__resizeTriggers__.appendChild(u),i.__resizeTriggers__.appendChild(f),i.appendChild(i.__resizeTriggers__),o(i),i.addEventListener("scroll",s,!0),n&&(i.__resizeTriggers__.__animationListener__=function(e){e.animationName===t&&o(i)},i.__resizeTriggers__.addEventListener(n,i.__resizeTriggers__.__animationListener__))}i.__resizeListeners__.push(c)}},removeResizeListener:function(e,r){if(l)e.detachEvent("onresize",r);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(r),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",s,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(n,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}null==Er||null==yr?(gr=wr,br=function(e){return kr(e,20)}):(gr=function([e,r]){Er(e),wr(r)},br=function(e){const r=yr((function(){wr(t),e()})),t=kr((function(){Er(r),e()}),20);return[r,t]});class Ar extends r.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:r,onResize:t}=this.props;if(this._parentNode){const n=window.getComputedStyle(this._parentNode)||{},a=parseFloat(n.paddingLeft||"0"),i=parseFloat(n.paddingRight||"0"),o=parseFloat(n.paddingTop||"0"),s=parseFloat(n.paddingBottom||"0"),l=this._parentNode.getBoundingClientRect(),c=l.height-o-s,u=l.width-a-i,f=this._parentNode.offsetHeight-o-s,d=this._parentNode.offsetWidth-a-i;(e||this.state.height===f&&this.state.scaledHeight===c)&&(r||this.state.width===d&&this.state.scaledWidth===u)||(this.setState({height:f,width:d,scaledHeight:c,scaledWidth:u}),"function"==typeof t&&t({height:f,scaledHeight:c,scaledWidth:u,width:d}))}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props,r=this._autoSizer?this._autoSizer.parentNode:null;if(null!=r&&r.ownerDocument&&r.ownerDocument.defaultView&&r instanceof r.ownerDocument.defaultView.HTMLElement){this._parentNode=r;const t=r.ownerDocument.defaultView.ResizeObserver;null!=t?(this._resizeObserver=new t((()=>{this._timeoutId=setTimeout(this._onResize,0)})),this._resizeObserver.observe(r)):(this._detectElementResize=Dr(e),this._detectElementResize.addResizeListener(r,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:e,defaultHeight:t,defaultWidth:n,disableHeight:a=!1,disableWidth:i=!1,nonce:o,onResize:s,style:l={},tagName:c="div",...u}=this.props,{height:f,scaledHeight:d,scaledWidth:v,width:h}=this.state,m={overflow:"visible"},p={};let _=!1;return a||(0===f&&(_=!0),m.height=0,p.height=f,p.scaledHeight=d),i||(0===h&&(_=!0),m.width=0,p.width=h,p.scaledWidth=v),(0,r.createElement)(c,{ref:this._setRef,style:{...m,...l},...u},!_&&e(p))}}function Cr(){return Cr=Object.assign?Object.assign.bind():function(e){for(var r=1;r=0||(a[t]=e[t]);return a}var Or="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function Fr(e){cancelAnimationFrame(e.id)}function Pr(e,r){var t=Or();var n={id:requestAnimationFrame((function a(){Or()-t>=r?e.call(null):n.id=requestAnimationFrame(a)}))};return n}var Lr=-1;function zr(e){if(void 0===e&&(e=!1),-1===Lr||e){var r=document.createElement("div"),t=r.style;t.width="50px",t.height="50px",t.overflow="scroll",document.body.appendChild(r),Lr=r.offsetWidth-r.clientWidth,document.body.removeChild(r)}return Lr}var Br=null;function Vr(e){if(void 0===e&&(e=!1),null===Br||e){var r=document.createElement("div"),t=r.style;t.width="50px",t.height="50px",t.overflow="scroll",t.direction="rtl";var n=document.createElement("div"),a=n.style;return a.width="100px",a.height="100px",r.appendChild(n),document.body.appendChild(r),r.scrollLeft>0?Br="positive-descending":(r.scrollLeft=1,Br=0===r.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(r),Br}return Br}var Ur=function(e,r){return e};function Wr(e){var t,n=e.getItemOffset,a=e.getEstimatedTotalSize,i=e.getItemSize,o=e.getOffsetForIndexAndAlignment,s=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,c=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,f=e.validateProps;return t=function(e){function t(r){var t;return(t=e.call(this,r)||this)._instanceProps=c(t.props,Mr(t)),t._outerRef=void 0,t._resetIsScrollingTimeoutId=null,t.state={instance:Mr(t),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof t.props.initialScrollOffset?t.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},t._callOnItemsRendered=void 0,t._callOnItemsRendered=Rr((function(e,r,n,a){return t.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:r,visibleStartIndex:n,visibleStopIndex:a})})),t._callOnScroll=void 0,t._callOnScroll=Rr((function(e,r,n){return t.props.onScroll({scrollDirection:e,scrollOffset:r,scrollUpdateWasRequested:n})})),t._getItemStyle=void 0,t._getItemStyle=function(e){var r,a=t.props,o=a.direction,s=a.itemSize,l=a.layout,c=t._getItemStyleCache(u&&s,u&&l,u&&o);if(c.hasOwnProperty(e))r=c[e];else{var f=n(t.props,e,t._instanceProps),d=i(t.props,e,t._instanceProps),v="horizontal"===o||"horizontal"===l,h="rtl"===o,m=v?f:0;c[e]=r={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:v?0:f,height:v?"100%":d,width:v?d:"100%"}}return r},t._getItemStyleCache=void 0,t._getItemStyleCache=Rr((function(e,r,t){return{}})),t._onScrollHorizontal=function(e){var r=e.currentTarget,n=r.clientWidth,a=r.scrollLeft,i=r.scrollWidth;t.setState((function(e){if(e.scrollOffset===a)return null;var r=t.props.direction,o=a;if("rtl"===r)switch(Vr()){case"negative":o=-a;break;case"positive-descending":o=i-n-a}return o=Math.max(0,Math.min(o,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffsetl.clientWidth?zr():0:l.scrollHeight>l.clientHeight?zr():0}this.scrollTo(o(this.props,e,r,i,this._instanceProps,s))},d.componentDidMount=function(){var e=this.props,r=e.direction,t=e.initialScrollOffset,n=e.layout;if("number"==typeof t&&null!=this._outerRef){var a=this._outerRef;"horizontal"===r||"horizontal"===n?a.scrollLeft=t:a.scrollTop=t}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,r=e.direction,t=e.layout,n=this.state,a=n.scrollOffset;if(n.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===r||"horizontal"===t)if("rtl"===r)switch(Vr()){case"negative":i.scrollLeft=-a;break;case"positive-ascending":i.scrollLeft=a;break;default:var o=i.clientWidth,s=i.scrollWidth;i.scrollLeft=s-o-a}else i.scrollLeft=a;else i.scrollTop=a}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&Fr(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,n=e.className,i=e.direction,o=e.height,s=e.innerRef,l=e.innerElementType,c=e.innerTagName,u=e.itemCount,f=e.itemData,d=e.itemKey,v=void 0===d?Ur:d,h=e.layout,m=e.outerElementType,p=e.outerTagName,_=e.style,S=e.useIsScrolling,g=e.width,b=this.state.isScrolling,w="horizontal"===i||"horizontal"===h,k=w?this._onScrollHorizontal:this._onScrollVertical,E=this._getRangeToRender(),y=E[0],D=E[1],A=[];if(u>0)for(var C=y;C<=D;C++)A.push((0,r.createElement)(t,{data:f,key:v(C,f),index:C,isScrolling:S?b:void 0,style:this._getItemStyle(C)}));var M=a(this.props,this._instanceProps);return(0,r.createElement)(m||p||"div",{className:n,onScroll:k,ref:this._outerRefSetter,style:Cr({position:"relative",height:o,width:g,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:i},_)},(0,r.createElement)(l||c||"div",{children:A,ref:s,style:{height:w?"100%":M,pointerEvents:b?"none":void 0,width:w?M:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),r=e[0],t=e[1],n=e[2],a=e[3];this._callOnItemsRendered(r,t,n,a)}if("function"==typeof this.props.onScroll){var i=this.state,o=i.scrollDirection,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(o,s,l)}},d._getRangeToRender=function(){var e=this.props,r=e.itemCount,t=e.overscanCount,n=this.state,a=n.isScrolling,i=n.scrollDirection,o=n.scrollOffset;if(0===r)return[0,0,0,0];var c=s(this.props,o,this._instanceProps),u=l(this.props,c,o,this._instanceProps),f=a&&"backward"!==i?1:Math.max(1,t),d=a&&"forward"!==i?1:Math.max(1,t);return[Math.max(0,c-f),Math.max(0,Math.min(r-1,u+d)),c,u]},t}(r.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var jr=function(e,r){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,r.instance},$r=Wr({getItemOffset:function(e,r){return r*e.itemSize},getItemSize:function(e,r){return e.itemSize},getEstimatedTotalSize:function(e){var r=e.itemCount;return e.itemSize*r},getOffsetForIndexAndAlignment:function(e,r,t,n,a,i){var o=e.direction,s=e.height,l=e.itemCount,c=e.itemSize,u=e.layout,f=e.width,d="horizontal"===o||"horizontal"===u?f:s,v=Math.max(0,l*c-d),h=Math.min(v,r*c),m=Math.max(0,r*c-d+c+i);switch("smart"===t&&(t=n>=m-d&&n<=h+d?"auto":"center"),t){case"start":return h;case"end":return m;case"center":var p=Math.round(m+(h-m)/2);return pv+Math.floor(d/2)?v:p;default:return n>=m&&n<=h?n:n0&&(d=!0,n=n+10&&(d=!0,n=n>0?n-1:f-1);break;case"HANDLE_STORE_MUTATION":if(""!==i){const[r,o]=t.payload;o.forEach(((e,r)=>{const t=a.indexOf(r);t>=0&&(a=a.slice(0,t).concat(a.slice(t+1)),0===a.length?n=null:n>=a.length&&(n=a.length-1))})),r.forEach((r=>{const t=e.getElementByID(r);if(null!==t){const{displayName:o}=t,s=et(i);if(null!==o&&s.test(o)){const t=e.getIndexOfElementID(r);let i=!1;for(let r=0;r{ct(e,t,r,a)})),a.length>0&&(n=null===c?null!==s?function(e,r,t){const n=r.findIndex((r=>{const n=e.getIndexOfElementID(r);return null!==n&&n>=t}));return-1===n?0:n}(e,a,s):0:Math.min(c,a.length-1))}break;default:return r}if(i!==u){const e=a.indexOf(o);-1===e?d=!0:n=e}return d&&null!==n&&(o=a[n],s=e.getIndexOfElementID(o)),{...r,selectedElementID:o,selectedElementIndex:s,searchIndex:n,searchResults:a,searchText:i}}function lt({children:e,defaultInspectedElementID:t,defaultOwnerID:n,defaultSelectedElementID:a,defaultSelectedElementIndex:i}){const o=(0,r.useContext)(hr),s=(0,r.useContext)(mr),l=(0,r.useMemo)((()=>s.revision),[s]),c=(0,r.useMemo)((()=>(e,r)=>{const{type:t}=r;switch(t){case"GO_TO_NEXT_SEARCH_RESULT":case"GO_TO_PREVIOUS_SEARCH_RESULT":case"HANDLE_STORE_MUTATION":case"RESET_OWNER_STACK":case"SELECT_ELEMENT_AT_INDEX":case"SELECT_ELEMENT_BY_ID":case"SELECT_CHILD_ELEMENT_IN_TREE":case"SELECT_NEXT_ELEMENT_IN_TREE":case"SELECT_NEXT_ELEMENT_WITH_ERROR_OR_WARNING_IN_TREE":case"SELECT_NEXT_SIBLING_IN_TREE":case"SELECT_OWNER_LIST_NEXT_ELEMENT_IN_TREE":case"SELECT_OWNER_LIST_PREVIOUS_ELEMENT_IN_TREE":case"SELECT_PARENT_ELEMENT_IN_TREE":case"SELECT_PREVIOUS_ELEMENT_IN_TREE":case"SELECT_PREVIOUS_ELEMENT_WITH_ERROR_OR_WARNING_IN_TREE":case"SELECT_PREVIOUS_SIBLING_IN_TREE":case"SELECT_OWNER":case"UPDATE_INSPECTED_ELEMENT_ID":case"SET_SEARCH_TEXT":return e=function(e,r,t){let{numElements:n,ownerSubtreeLeafElementID:a,selectedElementIndex:i,selectedElementID:o}=r,s=!0;if(null===r.ownerID)switch(t.type){case"HANDLE_STORE_MUTATION":n=e.numElements;const l=t.payload[1];for(;null!==o&&l.has(o);)o=l.get(o);0===o&&(i=null);break;case"SELECT_CHILD_ELEMENT_IN_TREE":if(a=null,null!==i){const r=e.getElementAtIndex(i);if(null!==r&&r.children.length>0&&!r.isCollapsed){const t=r.children[0],n=e.getIndexOfElementID(t);null!==n&&(i=n)}}break;case"SELECT_ELEMENT_AT_INDEX":a=null,i=t.payload;break;case"SELECT_ELEMENT_BY_ID":a=null,s=!1,o=t.payload,i=null===o?null:e.getIndexOfElementID(o);break;case"SELECT_NEXT_ELEMENT_IN_TREE":a=null,null===i||i+1>=n?i=0:i++;break;case"SELECT_NEXT_SIBLING_IN_TREE":if(a=null,null!==i){const r=e.getElementAtIndex(i);if(null!==r&&0!==r.parentID){const t=e.getElementByID(r.parentID);if(null!==t){const{children:n}=t,a=n.indexOf(r.id),o=a0?n[a-1]:n[n.length-1];i=e.getIndexOfElementID(o)}}}break;case"SELECT_PREVIOUS_ELEMENT_WITH_ERROR_OR_WARNING_IN_TREE":{const t=e.getElementsWithErrorsAndWarnings();if(0===t.length)return r;let n,a=0;if(null!==i)for(let e=t.length-1;e>=0;e--){const{index:r}=t[e];if(!(r>=i))break;a=e}0===a?(n=t[t.length-1],o=n.id,i=n.index):(n=t[a-1],o=n.id,i=n.index),s=!1;break}case"SELECT_NEXT_ELEMENT_WITH_ERROR_OR_WARNING_IN_TREE":{const t=e.getElementsWithErrorsAndWarnings();if(0===t.length)return r;let n,a=-1;if(null!==i)for(let e=0;e=t.length-1?(n=t[0],o=n.id,i=n.index):(n=t[a+1],o=n.id,i=n.index),s=!1;break}default:return r}return s&&i!==r.selectedElementIndex&&(o=null===i?null:e.getElementIDAtIndex(i)),{...r,numElements:n,ownerSubtreeLeafElementID:a,selectedElementIndex:i,selectedElementID:o}}(s,e,r),e=st(s,e,r),e=function(e,r,t){let{numElements:n,selectedElementID:a,selectedElementIndex:i,ownerID:o,ownerFlatTree:s}=r;const{searchIndex:l,searchResults:c,searchText:u}=r;let f=i;switch(t.type){case"HANDLE_STORE_MUTATION":null!==o?e.containsElement(o)?(s=e.getOwnersListForElement(o),null!==a&&(i=s.findIndex((e=>e.id===a)))):(o=null,s=null,a=null):null!==a&&(i=e.getIndexOfElementID(a)),-1===i&&(i=null,a=null);break;case"RESET_OWNER_STACK":o=null,s=null,i=null!==a?e.getIndexOfElementID(a):null;break;case"SELECT_ELEMENT_AT_INDEX":null!==s&&(i=t.payload);break;case"SELECT_ELEMENT_BY_ID":if(null!==s){const r=t.payload;null===r?i=null:(i=s.findIndex((e=>e.id===r)),null!==i&&i<0&&(o=null,s=null,i=e.getIndexOfElementID(r)))}break;case"SELECT_NEXT_ELEMENT_IN_TREE":null!==s&&s.length>0&&(null===i?i=0:i+10&&null!==i&&i>0&&i--;break;case"SELECT_OWNER":e.hasOwnerMetadata&&(o=t.payload,s=e.getOwnersListForElement(o),i=0,f=null);break;default:return r}return s===r.ownerFlatTree&&"HANDLE_STORE_MUTATION"!==t.type||(n=null===s?e.numElements:s.length),i!==f&&(null===i?a=null:null!==s&&(a=s[i].id)),{...r,numElements:n,selectedElementID:a,selectedElementIndex:i,searchIndex:l,searchResults:c,searchText:u,ownerID:o,ownerFlatTree:s}}(s,e,r),e=function(e,r,t){const{type:n}=t;if("UPDATE_INSPECTED_ELEMENT_ID"===n&&r.inspectedElementID!==r.selectedElementID)return{...r,inspectedElementID:r.selectedElementID};return r}(0,e,r),null!==e.selectedElementID&&s.isInsideCollapsedSubTree(e.selectedElementID)?{...e,selectedElementIndex:null}:e;default:throw new Error(`Unrecognized action "${t}"`)}}),[s]),[u,f]=(0,r.useReducer)(c,{numElements:s.numElements,ownerSubtreeLeafElementID:null,selectedElementID:null==a?null:a,selectedElementIndex:null==i?null:i,searchIndex:null,searchResults:[],searchText:"",ownerID:null==n?null:n,ownerFlatTree:null,inspectedElementID:null==t?null:t}),d=(0,r.useCallback)((e=>{f(e),(0,r.startTransition)((()=>{f({type:"UPDATE_INSPECTED_ELEMENT_ID"})}))}),[f]);(0,r.useEffect)((()=>{const e=e=>d({type:"SELECT_ELEMENT_BY_ID",payload:e});return o.addListener("selectFiber",e),()=>o.removeListener("selectFiber",e)}),[o,d]);const v=(0,r.useRef)(null);return(0,r.useLayoutEffect)((()=>{if(u.selectedElementID!==v.current&&(v.current=u.selectedElementID,null!==u.selectedElementID)){const e=s.getElementByID(u.selectedElementID);null!==e&&e.parentID>0&&s.toggleIsCollapsed(e.parentID,!1)}}),[u.selectedElementID,s]),(0,r.useEffect)((()=>{const e=([e,r])=>{d({type:"HANDLE_STORE_MUTATION",payload:[e,r]})};return s.revision!==l&&d({type:"HANDLE_STORE_MUTATION",payload:[[],new Map]}),s.addListener("mutated",e),()=>s.removeListener("mutated",e)}),[d,l,s]),r.createElement(it.Provider,{value:u},r.createElement(ot.Provider,{value:d},e))}function ct(e,r,t,n){const a=e.getElementByID(r);if(null==a)return;const{children:i,displayName:o,hocDisplayNames:s,compiledWithForget:l}=a;(null!=o&&!0===t.test(o)||null!=s&&s.length>0&&!0===s.some((e=>t.test(e)))||l&&t.test("Forget"))&&n.push(r),i.forEach((r=>ct(e,r,t,n)))}ot.displayName="TreeDispatcherContext";const ut={Icon:"QLIjinwPX2BYeYhjDPgw"};function ft({className:e="",title:t="",type:n}){let a=null;switch(n){case"arrow":a=dt;break;case"bug":a=vt;break;case"code":a=ht;break;case"components":a=mt;break;case"copy":a=pt;break;case"error":a=_t;break;case"facebook":a=St;break;case"flame-chart":a=gt;break;case"profiler":a=bt;break;case"ranked-chart":a=Et;break;case"timeline":a=wt;break;case"search":a=kt;break;case"settings":a=yt;break;case"store-as-global-variable":a=Dt;break;case"strict-mode-non-compliant":a=At;break;case"warning":a=Ct;break;default:console.warn(`Unsupported type "${n}" specified for Icon`)}return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:`${ut.Icon} ${e}`,width:"24",height:"24",viewBox:"0 0 24 24"},t&&r.createElement("title",null,t),r.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),r.createElement("path",{fill:"currentColor",d:a}))}const dt="M8 5v14l11-7z",vt="\n M20 8h-2.81c-.45-.78-1.07-1.45-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5c-.49\n 0-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09\n 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21\n 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20V8zm-6 8h-4v-2h4v2zm0-4h-4v-2h4v2z\n",ht="\n M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z\n ",mt="M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z",pt="\n M3 13h2v-2H3v2zm0 4h2v-2H3v2zm2 4v-2H3a2 2 0 0 0 2 2zM3 9h2V7H3v2zm12 12h2v-2h-2v2zm4-18H9a2 2 0 0 0-2\n 2v10a2 2 0 0 0 2 2h10c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 12H9V5h10v10zm-8 6h2v-2h-2v2zm-4 0h2v-2H7v2z\n",_t="M16.971 0h-9.942l-7.029 7.029v9.941l7.029 7.03h9.941l7.03-7.029v-9.942l-7.029-7.029zm-1.402 16.945l-3.554-3.521-3.518 3.568-1.418-1.418 3.507-3.566-3.586-3.472 1.418-1.417 3.581 3.458 3.539-3.583 1.431 1.431-3.535 3.568 3.566 3.522-1.431 1.43z",St="\n M22,12c0-5.52-4.48-10-10-10S2,6.48,2,12c0,4.84,3.44,8.87,8,9.8V15H8v-3h2V9.5C10,7.57,11.57,6,13.5,6H16v3h-2 c-0.55,0-1,0.45-1,1v2h3v3h-3v6.95C18.05,21.45,22,17.19,22,12z\n",gt="\n M10.0650893,21.5040462 C7.14020814,20.6850349 5,18.0558698 5,14.9390244 C5,14.017627\n 5,9.81707317 7.83333333,7.37804878 C7.83333333,7.37804878 7.58333333,11.199187 10,\n 10.6300813 C11.125,10.326087 13.0062497,7.63043487 8.91666667,2.5 C14.1666667,3.06910569\n 19,9.32926829 19,14.9390244 C19,18.0558698 16.8597919,20.6850349 13.9349107,21.5040462\n C14.454014,21.0118505 14.7765152,20.3233394 14.7765152,19.5613412 C14.7765152,17.2826087\n 12,15.0875871 12,15.0875871 C12,15.0875871 9.22348485,17.2826087 9.22348485,19.5613412\n C9.22348485,20.3233394 9.54598603,21.0118505 10.0650893,21.5040462 Z M12.0833333,20.6514763\n C11.3814715,20.6514763 10.8125,20.1226027 10.8125,19.4702042 C10.8125,18.6069669\n 12.0833333,16.9347829 12.0833333,16.9347829 C12.0833333,16.9347829 13.3541667,18.6069669\n 13.3541667,19.4702042 C13.3541667,20.1226027 12.7851952,20.6514763 12.0833333,20.6514763 Z\n",bt="M5 9.2h3V19H5zM10.6 5h2.8v14h-2.8zm5.6 8H19v6h-2.8z",wt="\n M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0\n 16H5V9h14v10zm0-12H5V5h14v2zM7 11h5v5H7z\n",kt="\n M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91\n 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99\n 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z\n",Et="M3 5h18v3H3zM3 10.5h13v3H3zM3 16h8v3H3z",yt="\n M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.12-.22-.39-.3-.61-.22l-2.49\n 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65C14.46 2.18 14.25 2 14 2h-4c-.25 0-.46.18-.49.42l-.38\n 2.65c-.61.25-1.17.59-1.69.98l-2.49-1c-.23-.09-.49 0-.61.22l-2 3.46c-.13.22-.07.49.12.64l2.11\n 1.65c-.04.32-.07.65-.07.98s.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.12.22.39.3.61.22l2.49-1c.52.4\n 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49\n 1c.23.09.49 0 .61-.22l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.65zM12 15.5c-1.93 0-3.5-1.57-3.5-3.5s1.57-3.5\n 3.5-3.5 3.5 1.57 3.5 3.5-1.57 3.5-3.5 3.5z\n",Dt="\n M20 8h-2.81c-.45-.78-1.07-1.45-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5c-.49 0-.96.06-1.41.17L8.41\n 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04\n 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20V8zm-6\n 8h-4v-2h4v2zm0-4h-4v-2h4v2z\n",At="\n M4.47 21h15.06c1.54 0 2.5-1.67 1.73-3L13.73 4.99c-.77-1.33-2.69-1.33-3.46 0L2.74 18c-.77 1.33.19 3 1.73 3zM12\n 14c-.55 0-1-.45-1-1v-2c0-.55.45-1 1-1s1 .45 1 1v2c0 .55-.45 1-1 1zm1 4h-2v-2h2v2z\n",Ct="M12 1l-12 22h24l-12-22zm-1 8h2v7h-2v-7zm1 11.25c-.69 0-1.25-.56-1.25-1.25s.56-1.25 1.25-1.25 1.25.56 1.25 1.25-.56 1.25-1.25 1.25z",Mt="https://github.com/facebook/react/blob/main/packages/react-devtools/CHANGELOG.md",xt="https://reactjs.org/blog/2019/08/15/new-react-devtools.html#how-do-i-get-the-old-version-back",Tt="https://fburl.com/react-devtools-workplace-group",Ht={light:{"--color-attribute-name":"#ef6632","--color-attribute-name-not-editable":"#23272f","--color-attribute-name-inverted":"rgba(255, 255, 255, 0.7)","--color-attribute-value":"#1a1aa6","--color-attribute-value-inverted":"#ffffff","--color-attribute-editable-value":"#1a1aa6","--color-background":"#ffffff","--color-background-hover":"rgba(0, 136, 250, 0.1)","--color-background-inactive":"#e5e5e5","--color-background-invalid":"#fff0f0","--color-background-selected":"#0088fa","--color-button-background":"#ffffff","--color-button-background-focus":"#ededed","--color-button":"#5f6673","--color-button-disabled":"#cfd1d5","--color-button-active":"#0088fa","--color-button-focus":"#23272f","--color-button-hover":"#23272f","--color-border":"#eeeeee","--color-commit-did-not-render-fill":"#cfd1d5","--color-commit-did-not-render-fill-text":"#000000","--color-commit-did-not-render-pattern":"#cfd1d5","--color-commit-did-not-render-pattern-text":"#333333","--color-commit-gradient-0":"#37afa9","--color-commit-gradient-1":"#63b19e","--color-commit-gradient-2":"#80b393","--color-commit-gradient-3":"#97b488","--color-commit-gradient-4":"#abb67d","--color-commit-gradient-5":"#beb771","--color-commit-gradient-6":"#cfb965","--color-commit-gradient-7":"#dfba57","--color-commit-gradient-8":"#efbb49","--color-commit-gradient-9":"#febc38","--color-commit-gradient-text":"#000000","--color-component-name":"#6a51b2","--color-component-name-inverted":"#ffffff","--color-component-badge-background":"rgba(0, 0, 0, 0.1)","--color-component-badge-background-inverted":"rgba(255, 255, 255, 0.25)","--color-component-badge-count":"#777d88","--color-component-badge-count-inverted":"rgba(255, 255, 255, 0.7)","--color-console-error-badge-text":"#ffffff","--color-console-error-background":"#fff0f0","--color-console-error-border":"#ffd6d6","--color-console-error-icon":"#eb3941","--color-console-error-text":"#fe2e31","--color-console-warning-badge-text":"#000000","--color-console-warning-background":"#fffbe5","--color-console-warning-border":"#fff5c1","--color-console-warning-icon":"#f4bd00","--color-console-warning-text":"#64460c","--color-context-background":"rgba(0,0,0,.9)","--color-context-background-hover":"rgba(255, 255, 255, 0.1)","--color-context-background-selected":"#178fb9","--color-context-border":"#3d424a","--color-context-text":"#ffffff","--color-context-text-selected":"#ffffff","--color-dim":"#777d88","--color-dimmer":"#cfd1d5","--color-dimmest":"#eff0f1","--color-error-background":"hsl(0, 100%, 97%)","--color-error-border":"hsl(0, 100%, 92%)","--color-error-text":"#ff0000","--color-expand-collapse-toggle":"#777d88","--color-forget-badge-background":"#2683e2","--color-forget-badge-background-inverted":"#1a6bbc","--color-forget-text":"#fff","--color-link":"#0000ff","--color-modal-background":"rgba(255, 255, 255, 0.75)","--color-bridge-version-npm-background":"#eff0f1","--color-bridge-version-npm-text":"#000000","--color-bridge-version-number":"#0088fa","--color-primitive-hook-badge-background":"#e5e5e5","--color-primitive-hook-badge-text":"#5f6673","--color-record-active":"#fc3a4b","--color-record-hover":"#3578e5","--color-record-inactive":"#0088fa","--color-resize-bar":"#eeeeee","--color-resize-bar-active":"#dcdcdc","--color-resize-bar-border":"#d1d1d1","--color-resize-bar-dot":"#333333","--color-timeline-internal-module":"#d1d1d1","--color-timeline-internal-module-hover":"#c9c9c9","--color-timeline-internal-module-text":"#444","--color-timeline-native-event":"#ccc","--color-timeline-native-event-hover":"#aaa","--color-timeline-network-primary":"#fcf3dc","--color-timeline-network-primary-hover":"#f0e7d1","--color-timeline-network-secondary":"#efc457","--color-timeline-network-secondary-hover":"#e3ba52","--color-timeline-priority-background":"#f6f6f6","--color-timeline-priority-border":"#eeeeee","--color-timeline-user-timing":"#c9cacd","--color-timeline-user-timing-hover":"#93959a","--color-timeline-react-idle":"#d3e5f6","--color-timeline-react-idle-hover":"#c3d9ef","--color-timeline-react-render":"#9fc3f3","--color-timeline-react-render-hover":"#83afe9","--color-timeline-react-render-text":"#11365e","--color-timeline-react-commit":"#c88ff0","--color-timeline-react-commit-hover":"#b281d6","--color-timeline-react-commit-text":"#3e2c4a","--color-timeline-react-layout-effects":"#b281d6","--color-timeline-react-layout-effects-hover":"#9d71bd","--color-timeline-react-layout-effects-text":"#3e2c4a","--color-timeline-react-passive-effects":"#b281d6","--color-timeline-react-passive-effects-hover":"#9d71bd","--color-timeline-react-passive-effects-text":"#3e2c4a","--color-timeline-react-schedule":"#9fc3f3","--color-timeline-react-schedule-hover":"#2683E2","--color-timeline-react-suspense-rejected":"#f1cc14","--color-timeline-react-suspense-rejected-hover":"#ffdf37","--color-timeline-react-suspense-resolved":"#a6e59f","--color-timeline-react-suspense-resolved-hover":"#89d281","--color-timeline-react-suspense-unresolved":"#c9cacd","--color-timeline-react-suspense-unresolved-hover":"#93959a","--color-timeline-thrown-error":"#ee1638","--color-timeline-thrown-error-hover":"#da1030","--color-timeline-text-color":"#000000","--color-timeline-text-dim-color":"#ccc","--color-timeline-react-work-border":"#eeeeee","--color-search-match":"yellow","--color-search-match-current":"#f7923b","--color-selected-tree-highlight-active":"rgba(0, 136, 250, 0.1)","--color-selected-tree-highlight-inactive":"rgba(0, 0, 0, 0.05)","--color-scroll-caret":"rgba(150, 150, 150, 0.5)","--color-tab-selected-border":"#0088fa","--color-text":"#000000","--color-text-invalid":"#ff0000","--color-text-selected":"#ffffff","--color-toggle-background-invalid":"#fc3a4b","--color-toggle-background-on":"#0088fa","--color-toggle-background-off":"#cfd1d5","--color-toggle-text":"#ffffff","--color-warning-background":"#fb3655","--color-warning-background-hover":"#f82042","--color-warning-text-color":"#ffffff","--color-warning-text-color-inverted":"#fd4d69","--color-scroll-thumb":"#c2c2c2","--color-scroll-track":"#fafafa","--color-tooltip-background":"rgba(0, 0, 0, 0.9)","--color-tooltip-text":"#ffffff"},dark:{"--color-attribute-name":"#9d87d2","--color-attribute-name-not-editable":"#ededed","--color-attribute-name-inverted":"#282828","--color-attribute-value":"#cedae0","--color-attribute-value-inverted":"#ffffff","--color-attribute-editable-value":"yellow","--color-background":"#282c34","--color-background-hover":"rgba(255, 255, 255, 0.1)","--color-background-inactive":"#3d424a","--color-background-invalid":"#5c0000","--color-background-selected":"#178fb9","--color-button-background":"#282c34","--color-button-background-focus":"#3d424a","--color-button":"#afb3b9","--color-button-active":"#61dafb","--color-button-disabled":"#4f5766","--color-button-focus":"#a2e9fc","--color-button-hover":"#ededed","--color-border":"#3d424a","--color-commit-did-not-render-fill":"#777d88","--color-commit-did-not-render-fill-text":"#000000","--color-commit-did-not-render-pattern":"#666c77","--color-commit-did-not-render-pattern-text":"#ffffff","--color-commit-gradient-0":"#37afa9","--color-commit-gradient-1":"#63b19e","--color-commit-gradient-2":"#80b393","--color-commit-gradient-3":"#97b488","--color-commit-gradient-4":"#abb67d","--color-commit-gradient-5":"#beb771","--color-commit-gradient-6":"#cfb965","--color-commit-gradient-7":"#dfba57","--color-commit-gradient-8":"#efbb49","--color-commit-gradient-9":"#febc38","--color-commit-gradient-text":"#000000","--color-component-name":"#61dafb","--color-component-name-inverted":"#282828","--color-component-badge-background":"#5e6167","--color-component-badge-background-inverted":"#46494e","--color-component-badge-count":"#8f949d","--color-component-badge-count-inverted":"rgba(255, 255, 255, 0.85)","--color-console-error-badge-text":"#000000","--color-console-error-background":"#290000","--color-console-error-border":"#5c0000","--color-console-error-icon":"#eb3941","--color-console-error-text":"#fc7f7f","--color-console-warning-badge-text":"#000000","--color-console-warning-background":"#332b00","--color-console-warning-border":"#665500","--color-console-warning-icon":"#f4bd00","--color-console-warning-text":"#f5f2ed","--color-context-background":"rgba(255,255,255,.95)","--color-context-background-hover":"rgba(0, 136, 250, 0.1)","--color-context-background-selected":"#0088fa","--color-context-border":"#eeeeee","--color-context-text":"#000000","--color-context-text-selected":"#ffffff","--color-dim":"#8f949d","--color-dimmer":"#777d88","--color-dimmest":"#4f5766","--color-error-background":"#200","--color-error-border":"#900","--color-error-text":"#f55","--color-expand-collapse-toggle":"#8f949d","--color-forget-badge-background":"#2683e2","--color-forget-badge-background-inverted":"#1a6bbc","--color-forget-text":"#fff","--color-link":"#61dafb","--color-modal-background":"rgba(0, 0, 0, 0.75)","--color-bridge-version-npm-background":"rgba(0, 0, 0, 0.25)","--color-bridge-version-npm-text":"#ffffff","--color-bridge-version-number":"yellow","--color-primitive-hook-badge-background":"rgba(0, 0, 0, 0.25)","--color-primitive-hook-badge-text":"rgba(255, 255, 255, 0.7)","--color-record-active":"#fc3a4b","--color-record-hover":"#a2e9fc","--color-record-inactive":"#61dafb","--color-resize-bar":"#282c34","--color-resize-bar-active":"#31363f","--color-resize-bar-border":"#3d424a","--color-resize-bar-dot":"#cfd1d5","--color-timeline-internal-module":"#303542","--color-timeline-internal-module-hover":"#363b4a","--color-timeline-internal-module-text":"#7f8899","--color-timeline-native-event":"#b2b2b2","--color-timeline-native-event-hover":"#949494","--color-timeline-network-primary":"#fcf3dc","--color-timeline-network-primary-hover":"#e3dbc5","--color-timeline-network-secondary":"#efc457","--color-timeline-network-secondary-hover":"#d6af4d","--color-timeline-priority-background":"#1d2129","--color-timeline-priority-border":"#282c34","--color-timeline-user-timing":"#c9cacd","--color-timeline-user-timing-hover":"#93959a","--color-timeline-react-idle":"#3d485b","--color-timeline-react-idle-hover":"#465269","--color-timeline-react-render":"#2683E2","--color-timeline-react-render-hover":"#1a76d4","--color-timeline-react-render-text":"#11365e","--color-timeline-react-commit":"#731fad","--color-timeline-react-commit-hover":"#611b94","--color-timeline-react-commit-text":"#e5c1ff","--color-timeline-react-layout-effects":"#611b94","--color-timeline-react-layout-effects-hover":"#51167a","--color-timeline-react-layout-effects-text":"#e5c1ff","--color-timeline-react-passive-effects":"#611b94","--color-timeline-react-passive-effects-hover":"#51167a","--color-timeline-react-passive-effects-text":"#e5c1ff","--color-timeline-react-schedule":"#2683E2","--color-timeline-react-schedule-hover":"#1a76d4","--color-timeline-react-suspense-rejected":"#f1cc14","--color-timeline-react-suspense-rejected-hover":"#e4c00f","--color-timeline-react-suspense-resolved":"#a6e59f","--color-timeline-react-suspense-resolved-hover":"#89d281","--color-timeline-react-suspense-unresolved":"#c9cacd","--color-timeline-react-suspense-unresolved-hover":"#93959a","--color-timeline-thrown-error":"#fb3655","--color-timeline-thrown-error-hover":"#f82042","--color-timeline-text-color":"#282c34","--color-timeline-text-dim-color":"#555b66","--color-timeline-react-work-border":"#3d424a","--color-search-match":"yellow","--color-search-match-current":"#f7923b","--color-selected-tree-highlight-active":"rgba(23, 143, 185, 0.15)","--color-selected-tree-highlight-inactive":"rgba(255, 255, 255, 0.05)","--color-scroll-caret":"#4f5766","--color-shadow":"rgba(0, 0, 0, 0.5)","--color-tab-selected-border":"#178fb9","--color-text":"#ffffff","--color-text-invalid":"#ff8080","--color-text-selected":"#ffffff","--color-toggle-background-invalid":"#fc3a4b","--color-toggle-background-on":"#178fb9","--color-toggle-background-off":"#777d88","--color-toggle-text":"#ffffff","--color-warning-background":"#ee1638","--color-warning-background-hover":"#da1030","--color-warning-text-color":"#ffffff","--color-warning-text-color-inverted":"#ee1638","--color-scroll-thumb":"#afb3b9","--color-scroll-track":"#313640","--color-tooltip-background":"rgba(255, 255, 255, 0.95)","--color-tooltip-text":"#000000"},compact:{"--font-size-monospace-small":"9px","--font-size-monospace-normal":"11px","--font-size-monospace-large":"15px","--font-size-sans-small":"10px","--font-size-sans-normal":"12px","--font-size-sans-large":"14px","--line-height-data":"18px"},comfortable:{"--font-size-monospace-small":"10px","--font-size-monospace-normal":"13px","--font-size-monospace-large":"17px","--font-size-sans-small":"12px","--font-size-sans-normal":"14px","--font-size-sans-large":"16px","--line-height-data":"22px"}},Nt=parseInt(Ht.comfortable["--line-height-data"],10),Rt=parseInt(Ht.compact["--line-height-data"],10);var It=a(677),Ot=a.n(It);function Ft(e,r){switch(r.type){case"RESET":return{...e,editableValue:Ue(r.externalValue),externalValue:r.externalValue,hasPendingChanges:!1,isValid:!0,parsedValue:r.externalValue};case"UPDATE":let t,n=!1;try{t=Ve(r.editableValue),n=!0}catch(e){}return{...e,editableValue:Be(r.editableValue),externalValue:r.externalValue,hasPendingChanges:Ue(r.externalValue)!==r.editableValue,isValid:n,parsedValue:n?t:e.parsedValue};default:throw new Error(`Invalid action "${r.type}"`)}}function Pt(e,t,n){const a=(0,r.useCallback)((()=>{try{const r=de(e);if(null!=r)return JSON.parse(r)}catch(e){console.log(e)}return"function"==typeof t?t():t}),[t,e]),[i,o]=(0,r.useState)(a),s=(0,r.useCallback)((r=>{try{const t=r instanceof Function?r(i):r;o(t),ve(e,JSON.stringify(t)),window.dispatchEvent(new Event(e)),null!=n&&n(t,e)}catch(e){console.log(e)}}),[e,i]);return(0,r.useLayoutEffect)((()=>{const r=r=>{const t=a();e===r.key&&i!==t&&s(t)};return window.addEventListener("storage",r),()=>{window.removeEventListener("storage",r)}}),[a,e,i,s]),[i,s]}function Lt(e,t,n=!0){(0,r.useEffect)((()=>{if(null===e.current)return()=>{};const r=e=>{"Escape"===e.key&&t()},a=r=>{null===e.current||e.current.contains(r.target)||(r.stopPropagation(),r.preventDefault(),t())};let i=null,o=setTimeout((()=>{o=null;const t=e.current;null!=t&&(i=t.getRootNode(),i.addEventListener("keydown",r),n&&i.addEventListener("click",a,!0))}),0);return()=>{null!==o&&clearTimeout(o),null!==i&&(i.removeEventListener("keydown",r),i.removeEventListener("click",a,!0))}}),[e,t,n])}function zt({getCurrentValue:e,subscribe:t}){const[n,a]=(0,r.useState)((()=>({getCurrentValue:e,subscribe:t,value:e()})));return n.getCurrentValue===e&&n.subscribe===t||a({getCurrentValue:e,subscribe:t,value:e()}),(0,r.useEffect)((()=>{let r=!1;const n=()=>{r||a((r=>{if(r.getCurrentValue!==e||r.subscribe!==t)return r;const n=e();return r.value===n?r:{...r,value:n}}))},i=t(n);return n(),()=>{r=!0,i()}}),[e,t]),n.value}function Bt(){const e=(0,r.useContext)(hr),t=(0,r.useContext)(mr),n=(0,r.useCallback)((r=>{const n=t.getElementByID(r),a=t.getRendererIDForElement(r);null!==n&&null!==a&&e.send("highlightNativeElement",{displayName:n.displayName,hideAfterTimeout:!1,id:r,openNativeElementsPanel:!1,rendererID:a,scrollIntoView:!1})}),[t,e]);return{highlightNativeElement:n,clearHighlightNativeElement:(0,r.useCallback)((()=>{e.send("clearNativeElementHighlight")}),[e])}}const Vt=!1,Ut=!1;const Wt=function(){},jt=(0,r.createContext)(null);function $t(e,r){return Pt(e,r,((e,r)=>{Wt({event_name:"settings-changed",metadata:{source:"localStorage setter",key:r,value:e}})}))}function Xt({browserTheme:e,children:t,componentsPortalContainer:n,profilerPortalContainer:a}){const i=(0,r.useContext)(hr),[o,s]=$t("React::DevTools::displayDensity","compact"),[l,c]=$t(M,"auto"),[u,f]=$t(x,!0),[d,v]=$t(C,!1),[h,m]=$t(A,!1),[p,_]=$t(N,!1),[S,g]=$t(T,!0),[b,w]=$t(H,!1),k=(0,r.useMemo)((()=>{const e=[document.documentElement];return null!=n&&e.push(n.ownerDocument.documentElement),null!=a&&e.push(a.ownerDocument.documentElement),e}),[n,a]);(0,r.useLayoutEffect)((()=>{switch(o){case"comfortable":Gt("comfortable",k);break;case"compact":Gt("compact",k);break;default:throw Error(`Unsupported displayDensity value "${o}"`)}}),[o,k]),(0,r.useLayoutEffect)((()=>{switch(l){case"light":Kt("light",k);break;case"dark":Kt("dark",k);break;case"auto":Kt(e,k);break;default:throw Error(`Unsupported theme value "${l}"`)}}),[e,l,k]),(0,r.useEffect)((()=>{i.send("updateConsolePatchSettings",{appendComponentStack:u,breakOnConsoleErrors:d,showInlineWarningsAndErrors:S,hideConsoleLogsInStrictMode:p,browserTheme:e})}),[i,u,d,S,p,e]),(0,r.useEffect)((()=>{i.send("setTraceUpdatesEnabled",b)}),[i,b]);const E=(0,r.useMemo)((()=>({appendComponentStack:u,breakOnConsoleErrors:d,displayDensity:o,lineHeight:"compact"===o?Rt:Nt,parseHookNames:h,setAppendComponentStack:f,setBreakOnConsoleErrors:v,setDisplayDensity:s,setParseHookNames:m,setTheme:c,setTraceUpdatesEnabled:w,setShowInlineWarningsAndErrors:g,showInlineWarningsAndErrors:S,setHideConsoleLogsInStrictMode:_,hideConsoleLogsInStrictMode:p,theme:l,browserTheme:e,traceUpdatesEnabled:b})),[u,d,o,h,f,v,s,m,c,w,g,S,_,p,l,e,b]);return r.createElement(jt.Provider,{value:E},t)}function Gt(e,r){const t=getComputedStyle(document.body).getPropertyValue(`--${e}-root-font-size`);document.querySelector(":root").style.fontSize=t}function Kt(e,r){r.forEach((r=>{r.style.scrollbarColor=`var(--${e}-color-scroll-thumb) var(--${e}-color-scroll-track)`}))}jt.displayName="SettingsContext";const qt={ButtonIcon:"t616OcxJgTxzU23xzvW3"};function Yt({className:e="",type:t}){let n=null;switch(t){case"add":n=Qt;break;case"cancel":n=Jt;break;case"clear":n=Zt;break;case"close":n=en;break;case"collapsed":n=rn;break;case"copy":n=tn;break;case"delete":n=nn;break;case"down":n=an;break;case"editor":n=An;break;case"expanded":n=on;break;case"export":n=sn;break;case"filter":n=ln;break;case"import":n=cn;break;case"log-data":n=un;break;case"more":n=fn;break;case"next":n=dn;break;case"parse-hook-names":n=vn;break;case"previous":n=hn;break;case"record":n=mn;break;case"reload":n=pn;break;case"save":n=_n;break;case"search":n=Sn;break;case"settings":n=gn;break;case"error":n=bn;break;case"suspend":n=wn;break;case"undo":n=kn;break;case"up":n=En;break;case"view-dom":n=yn;break;case"view-source":n=Dn;break;default:console.warn(`Unsupported type "${t}" specified for ButtonIcon`)}return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:`${qt.ButtonIcon} ${e}`,width:"24",height:"24",viewBox:"0 0 24 24"},r.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),"string"==typeof n?r.createElement("path",{fill:"currentColor",d:n}):n)}const Qt="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11h-4v4h-2v-4H7v-2h4V7h2v4h4v2z",Jt="\n M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\n",Zt="\n M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69\n 16.9C4.63 15.55 4 13.85 4 12zm8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8z\n",en="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z",rn="M10 17l5-5-5-5v10z",tn="\n M3 13h2v-2H3v2zm0 4h2v-2H3v2zm2 4v-2H3a2 2 0 0 0 2 2zM3 9h2V7H3v2zm12 12h2v-2h-2v2zm4-18H9a2 2 0 0 0-2\n 2v10a2 2 0 0 0 2 2h10c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 12H9V5h10v10zm-8 6h2v-2h-2v2zm-4 0h2v-2H7v2z\n",nn="\n M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12\n 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z\n",an="M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z",on="M7 10l5 5 5-5z",sn="M15.82,2.14v7H21l-9,9L3,9.18H8.18v-7ZM3,20.13H21v1.73H3Z",ln="M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z",cn="M8.18,18.13v-7H3l9-8.95,9,9H15.82v7ZM3,20.13H21v1.73H3Z",un="\n M20 8h-2.81c-.45-.78-1.07-1.45-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5c-.49 0-.96.06-1.41.17L8.41\n 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04\n 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20V8zm-6\n 8h-4v-2h4v2zm0-4h-4v-2h4v2z\n",fn="\n M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9\n 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z\n",dn="M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z",vn=r.createElement("g",null,r.createElement("polygon",{points:"20,7 20.94,4.94 23,4 20.94,3.06 20,1 19.06,3.06 17,4 19.06,4.94"}),r.createElement("polygon",{points:"8.5,7 9.44,4.94 11.5,4 9.44,3.06 8.5,1 7.56,3.06 5.5,4 7.56,4.94"}),r.createElement("polygon",{points:"20,12.5 19.06,14.56 17,15.5 19.06,16.44 20,18.5 20.94,16.44 23,15.5 20.94,14.56"}),r.createElement("path",{d:"M17.71,9.12l-2.83-2.83C14.68,6.1,14.43,6,14.17,6c-0.26,0-0.51,0.1-0.71,0.29L2.29,17.46c-0.39,0.39-0.39,1.02,0,1.41 l2.83,2.83C5.32,21.9,5.57,22,5.83,22s0.51-0.1,0.71-0.29l11.17-11.17C18.1,10.15,18.1,9.51,17.71,9.12z M14.17,8.42l1.41,1.41 L14.41,11L13,9.59L14.17,8.42z M5.83,19.59l-1.41-1.41L11.59,11L13,12.41L5.83,19.59z"})),hn="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",mn="M4,12a8,8 0 1,0 16,0a8,8 0 1,0 -16,0",pn="\n M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0\n 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0\n 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z\n",_n="\n M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z\n",Sn="\n M8.5,22H3.7l-1.4-1.5V3.8l1.3-1.5h17.2l1,1.5v4.9h-1.3V4.3l-0.4-0.6H4.2L3.6,4.3V20l0.7,0.7h4.2V22z\n M23,13.9l-4.6,3.6l4.6,4.6l-1.1,1.1l-4.7-4.4l-3.3,4.4l-3.2-12.3L23,13.9z\n",gn="\n M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.12-.22-.39-.3-.61-.22l-2.49\n 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65C14.46 2.18 14.25 2 14 2h-4c-.25 0-.46.18-.49.42l-.38\n 2.65c-.61.25-1.17.59-1.69.98l-2.49-1c-.23-.09-.49 0-.61.22l-2 3.46c-.13.22-.07.49.12.64l2.11\n 1.65c-.04.32-.07.65-.07.98s.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.12.22.39.3.61.22l2.49-1c.52.4\n 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49\n 1c.23.09.49 0 .61-.22l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.65zM12 15.5c-1.93 0-3.5-1.57-3.5-3.5s1.57-3.5\n 3.5-3.5 3.5 1.57 3.5 3.5-1.57 3.5-3.5 3.5z\n",bn="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z",wn="\n M15 1H9v2h6V1zm-4 13h2V8h-2v6zm8.03-6.61l1.42-1.42c-.43-.51-.9-.99-1.41-1.41l-1.42 1.42C16.07 4.74 14.12 4 12 4c-4.97\n 0-9 4.03-9 9s4.02 9 9 9 9-4.03 9-9c0-2.12-.74-4.07-1.97-5.61zM12 20c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z\n",kn="\n M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88\n 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z\n",En="M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z",yn="\n M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12\n 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3\n 3-1.34 3-3-1.34-3-3-3z\n",Dn="\n M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z\n ",An="\n M7 5h10v2h2V3c0-1.1-.9-1.99-2-1.99L7 1c-1.1 0-2 .9-2 2v4h2V5zm8.41 11.59L20 12l-4.59-4.59L14 8.83 17.17 12 14 15.17l1.41 1.42zM10 15.17L6.83 12 10 8.83 8.59 7.41 4 12l4.59 4.59L10 15.17zM17 19H7v-2H5v4c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2v-4h-2v2z\n",Cn={Badge:"srEfgwlgMuqiVfvkQIvd"};function Mn({className:e="",children:t}){return r.createElement("div",{className:`${Cn.Badge} ${e}`},t)}const xn={Element:"PFyuu5xBjR8uxX6thYbZ",InactiveSelectedElement:"iUJPAOCrle8In4qQfWxv",SelectedElement:"HZliX8_6EyENDRMMudN1",HoveredElement:"sgAe5RpaAMDGW_sU5o2L",Wrapper:"NBAhV9ShwRUirQXQbAv2",KeyName:"jm66uQ9yPiywLYg_mbpq",KeyValue:"S9otH361hPUibpM9aUpv",Highlight:"GOTV0C4MoXywapiTV03U",CurrentHighlight:"kVA4R0YpVXwfidREhviQ",ExpandCollapseToggle:"Kr5jbyCbolRzNSFzovW1",BadgesBlock:"Fx3j0RUMWHB5BecGc2_Q",ErrorIcon:"Xt2SitK2jELL4hLu6Mdy",ErrorIconContrast:"Rj45rwaNiDfhb7PGI4l_",StrictMode:"WiNfvaLp1fGWpo6uMIiJ",StrictModeContrast:"_66netzHqTarCYM811yp",WarningIcon:"at0eyFbv9icLAQdvXWuC",WarningIconContrast:"xIxPkdllpGllMVH8jq8H"},{useMemo:Tn,useContext:Hn}=t;const Nn=function({displayName:e,id:t}){const{searchIndex:n,searchResults:a,searchText:i}=Hn(it),o=Tn((()=>a.includes(t)),[t,a]),s=null!==n&&t===a[n];if(!o||null===e)return e;const l=et(i).exec(e);if(null===l)return e;const c=l.index,u=c+l[0].length,f=[];return c>0&&f.push(r.createElement("span",{key:"begin"},e.slice(0,c))),f.push(r.createElement("mark",{key:"middle",className:s?xn.CurrentHighlight:xn.Highlight},e.slice(c,u))),ue.length)&&(r=e.length);for(var t=0,n=new Array(r);t=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}function $n(e,r){if(null!=e)if(Un(e))e(r);else try{e.current=r}catch(t){throw new Error('Cannot assign value "'+r+'" to ref "'+e+'"')}}function Xn(){for(var e=arguments.length,t=new Array(e),n=0;n=0||(a[t]=e[t]);return a}(e,Jn);return(0,r.createElement)(a,Qn({ref:t,style:Qn({border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"},o)},s))}));var ea,ra=["bottom","height","left","right","top","width"],ta=new Map,na=function e(){var r=[];ta.forEach((function(e,t){var n,a,i=t.getBoundingClientRect();n=i,a=e.rect,void 0===n&&(n={}),void 0===a&&(a={}),ra.some((function(e){return n[e]!==a[e]}))&&(e.rect=i,r.push(e))})),r.forEach((function(e){e.callbacks.forEach((function(r){return r(e.rect)}))})),ea=window.requestAnimationFrame(e)};const aa=function(e,r){return{observe:function(){var t=0===ta.size;ta.has(e)?ta.get(e).callbacks.push(r):ta.set(e,{rect:void 0,hasRectChanged:!1,callbacks:[r]}),t&&na()},unobserve:function(){var t=ta.get(e);if(t){var n=t.callbacks.indexOf(r);n>=0&&t.callbacks.splice(n,1),t.callbacks.length||ta.delete(e),ta.size||cancelAnimationFrame(ea)}}}};function ia(e,t,n){var a,i,o;"boolean"==typeof t?a=t:(a=null==(o=null==t?void 0:t.observe)||o,i=null==t?void 0:t.onChange);Un(n)&&(i=n);var s=(0,r.useState)(e.current),l=s[0],c=s[1],u=(0,r.useRef)(!1),f=(0,r.useRef)(!1),d=(0,r.useState)(null),v=d[0],h=d[1],m=(0,r.useRef)(i);return On((function(){m.current=i,e.current!==l&&c(e.current)})),On((function(){l&&!u.current&&(u.current=!0,h(l.getBoundingClientRect()))}),[l]),On((function(){if(a){var r=l;if(f.current||(f.current=!0,r=e.current),r){var t=aa(r,(function(e){null==m.current||m.current(e),h(e)}));return t.observe(),function(){t.unobserve()}}}}),[a,l,e]),v}function oa(){return oa=Object.assign||function(e){for(var r=1;r=0||(a[t]=e[t]);return a}var la,ca,ua,fa,da,va,ha,ma,pa=["children","label","ariaLabel","id","DEBUG_STYLE"],_a=["label","ariaLabel","isVisible","id"],Sa=["ariaLabel","aria-label","as","id","isVisible","label","position","style","triggerRect"],ga=["type"];!function(e){e.Idle="IDLE",e.Focused="FOCUSED",e.Visible="VISIBLE",e.LeavingVisible="LEAVING_VISIBLE",e.Dismissed="DISMISSED"}(ha||(ha={})),function(e){e.Blur="BLUR",e.Focus="FOCUS",e.GlobalMouseMove="GLOBAL_MOUSE_MOVE",e.MouseDown="MOUSE_DOWN",e.MouseEnter="MOUSE_ENTER",e.MouseLeave="MOUSE_LEAVE",e.MouseMove="MOUSE_MOVE",e.Rest="REST",e.SelectWithKeyboard="SELECT_WITH_KEYBOARD",e.TimeComplete="TIME_COMPLETE"}(ma||(ma={}));var ba,wa,ka={initial:ha.Idle,states:(va={},va[ha.Idle]={enter:Da,on:(la={},la[ma.MouseEnter]=ha.Focused,la[ma.Focus]=ha.Visible,la)},va[ha.Focused]={enter:function(){window.clearTimeout(ba),ba=window.setTimeout((function(){Na({type:ma.Rest})}),100)},leave:function(){window.clearTimeout(ba)},on:(ca={},ca[ma.MouseMove]=ha.Focused,ca[ma.MouseLeave]=ha.Idle,ca[ma.MouseDown]=ha.Dismissed,ca[ma.Blur]=ha.Idle,ca[ma.Rest]=ha.Visible,ca)},va[ha.Visible]={on:(ua={},ua[ma.Focus]=ha.Focused,ua[ma.MouseEnter]=ha.Focused,ua[ma.MouseLeave]=ha.LeavingVisible,ua[ma.Blur]=ha.LeavingVisible,ua[ma.MouseDown]=ha.Dismissed,ua[ma.SelectWithKeyboard]=ha.Dismissed,ua[ma.GlobalMouseMove]=ha.LeavingVisible,ua)},va[ha.LeavingVisible]={enter:function(){window.clearTimeout(wa),wa=window.setTimeout((function(){return Na({type:ma.TimeComplete})}),500)},leave:function(){window.clearTimeout(wa),Da()},on:(fa={},fa[ma.MouseEnter]=ha.Visible,fa[ma.Focus]=ha.Visible,fa[ma.TimeComplete]=ha.Idle,fa)},va[ha.Dismissed]={leave:function(){Da()},on:(da={},da[ma.MouseLeave]=ha.Idle,da[ma.Blur]=ha.Idle,da)},va)},Ea={value:ka.initial,context:{id:null}},ya=[];function Da(){Ea.context.id=null}function Aa(e){var t=void 0===e?{}:e,n=t.id,a=t.onPointerEnter,i=t.onPointerMove,o=t.onPointerLeave,s=t.onPointerDown,l=t.onMouseEnter,c=t.onMouseMove,u=t.onMouseLeave,f=t.onMouseDown,d=t.onFocus,v=t.onBlur,h=t.onKeyDown,m=t.disabled,p=t.ref,_=t.DEBUG_STYLE,S=String(zn(n)),g=(0,r.useState)(!!_||Ra(S,!0)),b=g[0],w=g[1],k=(0,r.useRef)(null),E=Xn(p,k),y=ia(k,{observe:b});function D(e,r){return"undefined"!=typeof window&&"PointerEvent"in window?e:Gn(e,r)}function A(e){return function(r){"mouse"===r.pointerType&&e(r)}}function C(){Na({type:ma.MouseEnter,id:S})}function M(){Na({type:ma.MouseMove,id:S})}function x(){Na({type:ma.MouseLeave})}function T(){Ea.context.id===S&&Na({type:ma.MouseDown})}return(0,r.useEffect)((function(){return e=function(){w(Ra(S))},ya.push(e),function(){ya.splice(ya.indexOf(e),1)};var e}),[S]),(0,r.useEffect)((function(){var e=Bn(k.current);function r(e){"Escape"!==e.key&&"Esc"!==e.key||Ea.value!==ha.Visible||Na({type:ma.SelectWithKeyboard})}return e.addEventListener("keydown",r),function(){return e.removeEventListener("keydown",r)}}),[]),function(e){var t=e.disabled,n=e.isVisible,a=e.ref;(0,r.useEffect)((function(){if("undefined"!=typeof window&&"PointerEvent"in window&&t&&n){var e=Bn(a.current);return e.addEventListener("mousemove",r),function(){e.removeEventListener("mousemove",r)}}function r(e){n&&(e.target instanceof Element&&e.target.closest("[data-reach-tooltip-trigger][data-state='tooltip-visible']")||Na({type:ma.GlobalMouseMove}))}}),[t,n,a])}({disabled:m,isVisible:b,ref:k}),[{"aria-describedby":b?Vn("tooltip",S):void 0,"data-state":b?"tooltip-visible":"tooltip-hidden","data-reach-tooltip-trigger":"",ref:E,onPointerEnter:Gn(a,A(C)),onPointerMove:Gn(i,A(M)),onPointerLeave:Gn(o,A(x)),onPointerDown:Gn(s,A(T)),onMouseEnter:D(l,C),onMouseMove:D(c,M),onMouseLeave:D(u,x),onMouseDown:D(f,T),onFocus:Gn(d,(function(){window.__REACH_DISABLE_TOOLTIPS||Na({type:ma.Focus,id:S})})),onBlur:Gn(v,(function(){Ea.context.id===S&&Na({type:ma.Blur})})),onKeyDown:Gn(h,(function(e){"Enter"!==e.key&&" "!==e.key||Na({type:ma.SelectWithKeyboard})}))},{id:S,triggerRect:y,isVisible:b},b]}var Ca=(0,r.forwardRef)((function(e,t){var n=e.children,a=e.label,i=e.ariaLabel,o=e.id,s=e.DEBUG_STYLE,l=sa(e,pa),c=r.Children.only(n),u=Aa({id:o,onPointerEnter:c.props.onPointerEnter,onPointerMove:c.props.onPointerMove,onPointerLeave:c.props.onPointerLeave,onPointerDown:c.props.onPointerDown,onMouseEnter:c.props.onMouseEnter,onMouseMove:c.props.onMouseMove,onMouseLeave:c.props.onMouseLeave,onMouseDown:c.props.onMouseDown,onFocus:c.props.onFocus,onBlur:c.props.onBlur,onKeyDown:c.props.onKeyDown,disabled:c.props.disabled,ref:c.ref,DEBUG_STYLE:s}),f=u[0],d=u[1];return(0,r.createElement)(r.Fragment,null,(0,r.cloneElement)(c,f),(0,r.createElement)(Ma,oa({ref:t,label:a,"aria-label":i},d,l)))}));var Ma=(0,r.forwardRef)((function(e,t){var n=e.label,a=e.ariaLabel,i=e.isVisible,o=e.id,s=sa(e,_a);return i?(0,r.createElement)(Yn,null,(0,r.createElement)(xa,oa({ref:t,label:n,"aria-label":a,isVisible:i},s,{id:Vn("tooltip",String(o))}))):null}));var xa=(0,r.forwardRef)((function(e,t){var n=e.ariaLabel,a=e["aria-label"],i=e.as,o=void 0===i?"div":i,s=e.id,l=e.isVisible,c=e.label,u=e.position,f=void 0===u?Ha:u,d=e.style,v=e.triggerRect,h=sa(e,Sa),m=null!=(a||n),p=(0,r.useRef)(null),_=Xn(t,p),S=ia(p,{observe:l});return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(o,oa({role:m?void 0:"tooltip"},h,{ref:_,"data-reach-tooltip":"",id:m?void 0:s,style:oa({},d,Ta(f,v,S))}),c),m&&(0,r.createElement)(Zn,{role:"tooltip",id:s},a||n))}));function Ta(e,r,t){return!t?{visibility:"hidden"}:e(r,t)}var Ha=function(e,r,t){void 0===t&&(t=8);var n,a,i,o,s,l=(o=Bn(n),s=o.defaultView||window,o?{width:null!=(a=o.documentElement.clientWidth)?a:s.innerWidth,height:null!=(i=o.documentElement.clientHeight)?i:s.innerHeight}:{width:0,height:0}),c=l.width,u=l.height;if(!e||!r)return{};var f={top:e.top-r.height<0,right:c{const{theme:e,displayDensity:t,browserTheme:n}=(0,r.useContext)(jt);return(0,r.useMemo)((()=>({...Ht[t],...Ht["auto"===e?n:e]})),[e,n,t])};function Pa(){return Pa=Object.assign||function(e){for(var r=1;r{const a=Fa();return r.createElement(Ia,Pa({className:`${Oa} ${t}`,style:a},n),e)};function za({children:e,className:t="",isDisabled:n=!1,isChecked:a,onChange:i,testName:o,title:s}){let l;l=n?Rn.ToggleDisabled:a?Rn.ToggleOn:Rn.ToggleOff;const c=(0,r.useCallback)((()=>i(!a)),[a,i]);let u=r.createElement("button",{className:`${l} ${t}`,"data-testname":o,disabled:n,onClick:c},r.createElement("span",{className:Rn.ToggleContent,tabIndex:-1},e));return s&&(u=r.createElement(La,{label:s},u)),u}const Ba={Root:"sP6uS8ZOU4PkDlNU0AYK",ForgetToggle:"j3Lt3YqBHSwuvIVtnIxU"};function Va(e){const{className:t=""}=e,n=e.indexable?r.createElement(Nn,{displayName:"Memo",id:e.elementID}):"Memo";return r.createElement(za,{onChange:()=>{},className:Ba.ForgetToggle,title:"✨ This component has been auto-memoized by the React Compiler."},r.createElement(Mn,{className:`${Ba.Root} ${t}`},n))}const Ua={Root:"SjNrJ30jUO5kUSCsWh4c",ExtraLabel:"j9rH1DJ2jYY7I1tswNOx"};function Wa({compiledWithForget:e,hocDisplayNames:t,elementID:n,className:a=""}){return e||null!=t&&0!==t.length?r.createElement("div",{className:`${Ua.Root} ${a}`},e&&r.createElement(Va,{indexable:!0,elementID:n}),null!=t&&t.length>0&&r.createElement(Mn,null,r.createElement(Nn,{displayName:t[0],id:n})),null!=t&&t.length>1&&r.createElement("div",{className:Ua.ExtraLabel},"+",t.length-1)):null}function ja({data:e,index:t,style:n}){const a=(0,r.useContext)(mr),{ownerFlatTree:i,ownerID:o,selectedElementID:s}=(0,r.useContext)(it),l=(0,r.useContext)(ot),{showInlineWarningsAndErrors:c}=r.useContext(jt),u=null!==i?i[t]:a.getElementAtIndex(t),[f,d]=(0,r.useState)(!1),{isNavigatingWithKeyboard:v,onElementMouseEnter:h,treeFocused:m}=e,p=null===u?null:u.id,_=s===p,S=(0,r.useMemo)((()=>({getCurrentValue:()=>null===u?{errorCount:0,warningCount:0}:a.getErrorAndWarningCountForElementID(u.id),subscribe:e=>(a.addListener("mutated",e),()=>a.removeListener("mutated",e))})),[a,u]),{errorCount:g,warningCount:b}=zt(S);if(null==u)return console.warn(` Could not find element at index ${t}`),null;const{depth:w,displayName:k,hocDisplayNames:E,isStrictModeNonCompliant:y,key:D,compiledWithForget:A}=u,C=y&&0===w;let M=xn.Element;return _?M=m?xn.SelectedElement:xn.InactiveSelectedElement:f&&!v&&(M=xn.HoveredElement),r.createElement("div",{className:M,onMouseEnter:()=>{d(!0),null!==p&&h(p)},onMouseLeave:()=>{d(!1)},onMouseDown:({metaKey:e})=>{null!==p&&(Wt({event_name:"select-element",metadata:{source:"click-element"}}),l({type:"SELECT_ELEMENT_BY_ID",payload:e?null:p}))},onDoubleClick:()=>{null!==p&&l({type:"SELECT_OWNER",payload:p})},style:n,"data-testname":"ComponentTreeListItem","data-depth":w},r.createElement("div",{className:xn.Wrapper,style:{transform:`translateX(calc(${w} * var(--indentation-size)))`}},null===o&&r.createElement(Xa,{element:u,store:a}),r.createElement(Nn,{displayName:k,id:p}),D&&r.createElement(r.Fragment,null," ",r.createElement("span",{className:xn.KeyName},"key"),'="',r.createElement("span",{className:xn.KeyValue,title:D,onDoubleClick:e=>{e.stopPropagation(),e.preventDefault()}},D),'"'),r.createElement(Wa,{hocDisplayNames:E,compiledWithForget:A,elementID:p,className:xn.BadgesBlock}),c&&g>0&&r.createElement(ft,{type:"error",className:_&&m?xn.ErrorIconContrast:xn.ErrorIcon}),c&&b>0&&r.createElement(ft,{type:"warning",className:_&&m?xn.WarningIconContrast:xn.WarningIcon}),C&&r.createElement(ft,{className:_&&m?xn.StrictModeContrast:xn.StrictMode,title:"This component is not running in StrictMode.",type:"strict-mode-non-compliant"})))}const $a=e=>{e.preventDefault(),e.stopPropagation()};function Xa({element:e,store:t}){const{children:n,id:a,isCollapsed:i}=e;return 0===n.length?r.createElement("div",{className:xn.ExpandCollapseToggle}):r.createElement("div",{className:xn.ExpandCollapseToggle,onMouseDown:e=>{e.stopPropagation()},onClick:e=>{e.preventDefault(),e.stopPropagation(),t.toggleIsCollapsed(a,!i)},onDoubleClick:$a},r.createElement(Yt,{type:i?"collapsed":"expanded"}))}function Ga(){const[e,t]=(0,r.useState)(!1),n=(0,r.useContext)(hr),a=(0,r.useCallback)((e=>{t(e),e?(Wt({event_name:"inspect-element-button-clicked"}),n.send("startInspectingNative")):n.send("stopInspectingNative",!1)}),[n]);return(0,r.useEffect)((()=>{const e=()=>t(!1);return n.addListener("stopInspectingNative",e),()=>n.removeListener("stopInspectingNative",e)}),[n]),r.createElement(za,{onChange:a,isChecked:e,title:"Select an element in the page to inspect it"},r.createElement(Yt,{type:"search"}))}const Ka={Button:"MOeHyomWH2dTqysCu6Ii",ButtonContent:"Bqh_X7NE5GXewPWjYfHS"};function qa(){return qa=Object.assign||function(e){for(var r=1;r0&&r.createElement(Mn,null,t[0]),null!=t&&t.length>1&&r.createElement("div",{className:Qa.ExtraLabel},"+",t.length-1)):null}const Za=0,ei=1,ri=2;let ti;if("function"==typeof r.use)ti=function(e){return r.use(e)};else{if("object"!=typeof r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)throw new Error("react-cache: Unsupported React version");{const e=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;ti=function(r){const t=e.current;if(null===t)throw new Error("react-cache: read and preload may only be called from within a component's render. They are not supported in event handlers or lifecycle methods.");return t.readContext(r)}}}const ni=(0,r.createContext)(null),ai=new Map,ii=new Map;function oi(e){let r=ai.get(e);if(void 0===r){const t=ii.get(e);r=void 0!==t&&t.useWeakMap?new WeakMap:new Map,ai.set(e,r)}return r}function si(e,r,t,n){const a=oi(e),i=a.get(n);if(void 0===i){const e=r(t);e.then((e=>{if(i.status===Za){const r=i;r.status=ei,r.value=e}}),(e=>{if(i.status===Za){const r=i;r.status=ri,r.value=e}}));const i={status:Za,value:e};return a.set(n,i),i}return i}function li(e,r,t={}){const n={clear(){ai.delete(n)},invalidate(e){oi(n).delete(e)},read(t){ti(ni);const a=r(t),i=si(n,e,t,a);switch(i.status){case Za:throw i.value;case ei:return i.value;case ri:throw i.value;default:return}},preload(t){ti(ni);const a=r(t);si(n,e,t,a)},write(e,r){const t=oi(n),a={status:ei,value:r};t.set(e,a)}};return ii.set(n,t),n}const ci=(0,r.createContext)(null);ci.displayName="OwnersListContext";const ui=new WeakMap,fi=li((e=>{const r=ui.get(e);if(null!=r)return r.promise;let t=null;const n=new Promise((e=>{t=e}));return ui.set(e,{promise:n,resolveFn:t}),n}),(e=>e),{useWeakMap:!0});function di({children:e}){const t=(0,r.useContext)(hr),n=(0,r.useContext)(mr),{ownerID:a}=(0,r.useContext)(it),i=(0,r.useCallback)((e=>{const r=n.getElementByID(e);return null!==r?fi.read(r):null}),[n]);return(0,r.useEffect)((()=>{const e=e=>{const r=e.id,t=n.getElementByID(r);if(null!==t){const r=ui.get(t);null!=r&&(ui.delete(t),r.resolveFn(null===e.owners?null:e.owners.map(Oe)))}};return t.addListener("ownersList",e),()=>t.removeListener("ownersList",e)}),[t,n]),(0,r.useEffect)((()=>{if(null!==a){const e=n.getRendererIDForElement(a);null!==e&&t.send("getOwnersList",{id:a,rendererID:e})}return()=>{}}),[t,a,n]),r.createElement(ci.Provider,{value:i},e)}var vi=a(29),hi=a.n(vi);function mi(){return mi=Object.assign||function(e){for(var r=1;r=0||(a[t]=e[t]);return a}(e,pi),f=(0,r.useRef)(null),d=ia(f,{observe:!u.hidden}),v=ia(i,{observe:!u.hidden}),h=Xn(f,t);return function(e,t){var n=Bn(e.current);function a(e){"Tab"===e.key&&t.current&&0===hi()(t.current).length||("Tab"===e.key&&e.shiftKey?u(e)?f(e):d(e)?v(e):m(e)&&_():"Tab"===e.key&&(o()?s(e):l()?c(e):h(e)&&_()))}function i(){var r=hi()(n),a=r&&e.current?r.indexOf(e.current):-1,i=r&&r[a+1];return(!t.current||!t.current.contains(i||null))&&i}function o(){return!!e.current&&e.current===n.activeElement}function s(e){var r=t.current&&hi()(t.current);r&&r[0]&&(e.preventDefault(),r[0].focus())}function l(){if(!!t.current&&t.current.contains(n.activeElement||null)){var e=t.current&&hi()(t.current);return Boolean(e&&e[e.length-1]===n.activeElement)}return!1}function c(e){var r=i();r&&(e.preventDefault(),r.focus())}function u(e){if(e.shiftKey){var r=i();return e.target===r}}function f(e){var r=t.current&&hi()(t.current),n=r&&r[r.length-1];n&&(e.preventDefault(),n.focus())}function d(e){var r=t.current&&hi()(t.current);return!!r&&(0!==r.length&&e.target===r[0])}function v(r){var t;r.preventDefault(),null==(t=e.current)||t.focus()}function h(e){var r=t.current?hi()(n).filter((function(e){return!t.current.contains(e)})):null;return!!r&&e.target===r[r.length-1]}function m(e){return e.target===hi()(n)[0]}(0,r.useEffect)((function(){return n.addEventListener("keydown",a),function(){n.removeEventListener("keydown",a)}}),[]);var p=[];function _(){var e=t.current&&hi()(t.current);e&&(e.forEach((function(e){p.push([e,e.tabIndex]),e.tabIndex=-1})),n.addEventListener("focusin",S))}function S(){n.removeEventListener("focusin",S),p.forEach((function(e){var r=e[0],t=e[1];r.tabIndex=t}))}}(i,f),(0,r.createElement)(a,mi({"data-reach-popover":"",ref:h},u,{style:mi({position:"absolute"},gi.apply(void 0,[s,v,d].concat(c)),u.style)}))}));function gi(e,r,t){for(var n=arguments.length,a=new Array(n>3?n-3:0),i=3;i=0||(a[t]=e[t]);return a}(e,Ai);r&&i((function(e){var a;if(null!=t)return[].concat(e,[Di({},n,{element:r,index:t})]).sort((function(e,r){return e.index-r.index}));if(0===e.length)a=[Di({},n,{element:r,index:0})];else if(e.find((function(e){return e.element===r})))a=e;else{var i=e.findIndex((function(e){return!(!e.element||!r)&&Boolean(e.element.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_PRECEDING)})),o=Di({},n,{element:r,index:i});a=-1===i?[].concat(e,[o]):[].concat(e.slice(0,i),[o],e.slice(i))}return a.map((function(e,r){return Di({},e,{index:r})}))}))}),[]),s=(0,r.useCallback)((function(e){e&&i((function(r){return r.filter((function(r){return e!==r.element}))}))}),[]);return(0,r.createElement)(t.Provider,{value:(0,r.useMemo)((function(){return{descendants:a,registerDescendant:o,unregisterDescendant:s}}),[a,o,s])},n)}function xi(e){return"which"in e?3===e.which:"button"in e&&2===e.button}function Ti(e){var t=(0,r.useRef)(null);return(0,r.useEffect)((function(){t.current=e}),[e]),t.current}function Hi(e,r){if(null==e)return{};var t,n,a={},i=Object.keys(e);for(n=0;n=0||(a[t]=e[t]);return a}function Ni(){return Ni=Object.assign||function(e){for(var r=1;r8||t>8)&&(k.current=!0)}L||null==P||v||g({type:Wi,payload:{index:P,dropdownRef:b}})})),onFocus:Gn(h,(function(){k.current=!0,L||null==P||v||g({type:Wi,payload:{index:P}})})),onMouseUp:Gn(f,(function(e){xi(e.nativeEvent)||(k.current?a?R.current?R.current=!1:M.current&&M.current.click():v||B():k.current=!0)}))})}}function Qi(e){e.id;var t=e.onKeyDown,n=e.ref,a=Hi(e,Oi),i=to(),o=i.dispatch,s=i.triggerRef,l=i.dropdownRef,c=i.selectCallbacks,u=i.dropdownId,f=i.state,d=f.isExpanded,v=f.triggerId,h=f.selectionIndex,m=f.typeaheadQuery,p=no(),_=Xn(l,n);(0,r.useEffect)((function(){var e=function(e,r){void 0===r&&(r="");if(!r)return null;var t=e.find((function(e){var t,n,a;return!e.disabled&&(null==(t=e.element)||null==(n=t.dataset)||null==(a=n.valuetext)?void 0:a.toLowerCase().startsWith(r))}));return t?e.indexOf(t):null}(p,m);m&&null!=e&&o({type:Wi,payload:{index:e,dropdownRef:l}});var r=window.setTimeout((function(){return m&&o({type:Ui,payload:""})}),1e3);return function(){return window.clearTimeout(r)}}),[o,p,m,l]);var S=Ti(p.length),g=Ti(p[h]),b=Ti(h);(0,r.useEffect)((function(){h>p.length-1?o({type:Wi,payload:{index:p.length-1,dropdownRef:l}}):S!==p.length&&h>-1&&g&&b===h&&p[h]!==g&&o({type:Wi,payload:{index:p.findIndex((function(e){return e.key===(null==g?void 0:g.key)})),dropdownRef:l}})}),[l,o,p,S,g,b,h]);var w,k,E,y,D,A,C,M,x,T,H,N,R,I,O=Gn((function(e){var r=e.key;if(d)switch(r){case"Enter":case" ":var t=p.find((function(e){return e.index===h}));t&&!t.disabled&&(e.preventDefault(),t.isLink&&t.element?t.element.click():(eo(s.current),c.current[t.index]&&c.current[t.index](),o({type:Li})));break;case"Escape":eo(s.current),o({type:zi});break;case"Tab":e.preventDefault();break;default:if("string"==typeof r&&1===r.length){var n=m+r.toLowerCase();o({type:Ui,payload:n})}}}),(w=$i,k={currentIndex:h,orientation:"vertical",rotate:!1,filter:function(e){return!e.disabled},callback:function(e){o({type:Wi,payload:{index:e,dropdownRef:l}})},key:"index"},E=(0,r.useContext)(w).descendants,y=k.callback,D=k.currentIndex,A=k.filter,C=k.key,M=void 0===C?"index":C,x=k.orientation,T=void 0===x?"vertical":x,H=k.rotate,N=void 0===H||H,R=k.rtl,I=void 0!==R&&R,function(e){if(["ArrowDown","ArrowUp","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(e.key)){var r=null!=D?D:-1,t=A?E.filter(A):E;if(t.length){var n=t.findIndex((function(e){return e.index===D}));switch(e.key){case"ArrowDown":if("vertical"===T||"both"===T){e.preventDefault();var a=d();y("option"===M?a:a[M])}break;case"ArrowUp":if("vertical"===T||"both"===T){e.preventDefault();var i=v();y("option"===M?i:i[M])}break;case"ArrowLeft":if("horizontal"===T||"both"===T){e.preventDefault();var o=(I?d:v)();y("option"===M?o:o[M])}break;case"ArrowRight":if("horizontal"===T||"both"===T){e.preventDefault();var s=(I?v:d)();y("option"===M?s:s[M])}break;case"PageUp":e.preventDefault();var l=(e.ctrlKey?v:h)();y("option"===M?l:l[M]);break;case"Home":e.preventDefault();var c=h();y("option"===M?c:c[M]);break;case"PageDown":e.preventDefault();var u=(e.ctrlKey?d:m)();y("option"===M?u:u[M]);break;case"End":e.preventDefault();var f=m();y("option"===M?f:f[M])}}}function d(){return r===m().index?N?h():t[n]:t[(n+1)%t.length]}function v(){return r===h().index?N?m():t[n]:t[(n-1+t.length)%t.length]}function h(){return t[0]}function m(){return t[t.length-1]}}));return{data:{activeDescendant:Zi(h)||void 0,triggerId:v},props:Ni({tabIndex:-1},a,{ref:_,id:u,onKeyDown:Gn(t,O)})}}function Ji(e){var t=e.onBlur,n=e.portal,a=void 0===n||n,i=e.position,o=e.ref,s=Hi(e,Fi),l=to(),c=l.triggerRef,u=l.triggerClickedRef,f=l.dispatch,d=l.dropdownRef,v=l.popoverRef,h=l.state.isExpanded,m=Xn(v,o);return(0,r.useEffect)((function(){if(h){var e=Bn(v.current);return e.addEventListener("mousedown",r),function(){e.removeEventListener("mousedown",r)}}function r(e){var r,t;u.current?u.current=!1:(r=v.current,t=e.target,r&&r.contains(t)||f({type:zi}))}}),[u,c,f,d,v,h]),{data:{portal:a,position:i,targetRef:c,isExpanded:h},props:Ni({ref:m,hidden:!h,onBlur:Gn(t,(function(e){e.currentTarget.contains(e.relatedTarget)||f({type:zi})}))},s)}}function Zi(e){var t=(0,r.useContext)(Xi).dropdownId;return null!=e&&e>-1?Vn("option-"+e,t):void 0}function eo(e){e&&e.focus()}function ro(e,r){switch(void 0===r&&(r={}),r.type){case Li:case zi:return Ni({},e,{isExpanded:!1,selectionIndex:-1});case"OPEN_MENU_AT_FIRST_ITEM":return Ni({},e,{isExpanded:!0,selectionIndex:0});case Bi:return Ni({},e,{isExpanded:!0,selectionIndex:r.payload.index});case Vi:return Ni({},e,{isExpanded:!0,selectionIndex:-1});case Wi:var t=r.payload.dropdownRef,n=void 0===t?{current:null}:t;if(r.payload.index>=0&&r.payload.index!==e.selectionIndex){if(n.current){var a=Bn(n.current);n.current!==(null==a?void 0:a.activeElement)&&n.current.focus()}return Ni({},e,{selectionIndex:null!=r.payload.max?Math.min(Math.max(r.payload.index,0),r.payload.max):Math.max(r.payload.index,0)})}return e;case Pi:return Ni({},e,{selectionIndex:-1});case ji:return Ni({},e,{triggerId:r.payload});case Ui:return void 0!==r.payload?Ni({},e,{typeaheadQuery:r.payload}):e;default:return e}}function to(){return(0,r.useContext)(Xi)}function no(){return e=$i,(0,r.useContext)(e).descendants;var e}function ao(){return ao=Object.assign||function(e){for(var r=1;r=0||(a[t]=e[t]);return a}var oo=["as","id","children"],so=["as"],lo=["as"],co=["as"],uo=["as"],fo=["portal"],vo=["as"],ho=(0,r.forwardRef)((function(e,t){var n=e.as,a=void 0===n?r.Fragment:n,i=e.id,o=e.children,s=io(e,oo),l=(0,r.useMemo)((function(){try{return(0,Y.M2)((0,r.createElement)(a,null))}catch(e){return!1}}),[a])?{}:ao({ref:t,id:i,"data-reach-menu":""},s);return(0,r.createElement)(a,l,(0,r.createElement)(Ki,{id:i,children:o}))}));var mo=(0,r.forwardRef)((function(e,t){var n=e.as,a=void 0===n?"button":n,i=qi(ao({},io(e,so),{ref:t})),o=i.data,s=o.isExpanded,l=o.controls,c=i.props;return(0,r.createElement)(a,ao({"aria-expanded":!!s||void 0,"aria-haspopup":!0,"aria-controls":l},c,{"data-reach-menu-button":""}))}));var po=(0,r.forwardRef)((function(e,t){var n=e.as,a=void 0===n?"div":n,i=Yi(ao({},io(e,lo),{ref:t})),o=i.data.disabled,s=i.props;return(0,r.createElement)(a,ao({role:"menuitem"},s,{"aria-disabled":o||void 0,"data-reach-menu-item":""}))})),_o=(0,r.forwardRef)((function(e,t){var n=e.as,a=void 0===n?"div":n,i=io(e,co);return(0,r.createElement)(po,ao({},i,{ref:t,as:a}))}));var So=(0,r.forwardRef)((function(e,t){var n=e.as,a=void 0===n?"div":n,i=Qi(ao({},io(e,uo),{ref:t})),o=i.data,s=o.activeDescendant,l=o.triggerId,c=i.props;return(0,r.createElement)(a,ao({"aria-activedescendant":s,"aria-labelledby":l||void 0,role:"menu"},c,{"data-reach-menu-items":""}))}));var go=(0,r.forwardRef)((function(e,t){var n=e.portal,a=void 0===n||n,i=io(e,fo);return(0,r.createElement)(bo,{portal:a},(0,r.createElement)(So,ao({},i,{ref:t,"data-reach-menu-list":""})))}));var bo=(0,r.forwardRef)((function(e,t){var n=e.as,a=void 0===n?"div":n,i=Ji(ao({},io(e,vo),{ref:t})),o=i.data,s=o.portal,l=o.targetRef,c=o.position,u=i.props,f={"data-reach-menu-popover":""};return s?(0,r.createElement)(_i,ao({},u,f,{as:a,targetRef:l,position:c})):(0,r.createElement)(a,ao({},u,f))}));function wo(){return wo=Object.assign||function(e){for(var r=1;r{const n=Fa();return r.createElement(go,wo({style:n},t),e)},Eo={OwnerStack:"WHQXCIB889mhOibUlVw3",Component:"yUIRrL7yKCLaXF6ItcoI",Bar:"nhMZmmw7LxaMIBx6xoM8",VRule:"cUTK6f0z3ITKjeL2ol8i",MenuButton:"r2aVXzu4LAnDVb2tmbPW",MenuButtonContent:"oAO_XVma76tsNMmoxTxO",Modal:"juYKJGefcTFWuubhKPTL",NotInStore:"lyr9bhz0P7vmm4xPXrSw",BadgesBlock:"WcjXaYs8j6rLO0JwrTSp"};function yo(e,r){switch(r.type){case"UPDATE_OWNER_ID":const t=r.owners.findIndex((e=>e.id===r.ownerID));return{ownerID:r.ownerID,owners:r.owners,selectedIndex:t};case"UPDATE_SELECTED_INDEX":return{...e,selectedIndex:r.selectedIndex};default:throw new Error(`Invalid action "${r.type}"`)}}function Do(){const e=(0,r.useContext)(ci),{ownerID:t}=(0,r.useContext)(it),n=(0,r.useContext)(ot),[a,i]=(0,r.useReducer)(yo,{ownerID:null,owners:[],selectedIndex:0});if(null===t)i({type:"UPDATE_OWNER_ID",ownerID:null,owners:[]});else if(t!==a.ownerID){const r=a.owners.findIndex((e=>e.id===t))>=0;i({type:"UPDATE_OWNER_ID",ownerID:t,owners:r?a.owners:e(t)||[]})}const{owners:o,selectedIndex:s}=a,l=(0,r.useCallback)((e=>{if(null!==e){const r=o.indexOf(e);i({type:"UPDATE_SELECTED_INDEX",selectedIndex:r>=0?r:0}),n({type:"SELECT_OWNER",payload:e.id})}else i({type:"UPDATE_SELECTED_INDEX",selectedIndex:0}),n({type:"RESET_OWNER_STACK"})}),[o,n]),[c,u]=(0,r.useState)(0),f=(0,r.useRef)(null),d=function(e,t){const[n,a]=(0,r.useState)(!1);return(0,r.useLayoutEffect)((()=>{if(null===e.current)return()=>{};const r=e.current,n=Ot()((()=>a(r.clientWidth<=t)),100);n();const i=r.ownerDocument.defaultView;return i.addEventListener("resize",n),()=>i.removeEventListener("resize",n)}),[e,t]),n}(f,c),v=o[s];return(0,r.useLayoutEffect)((()=>{if(null===f.current||d)return()=>{};let e=0;for(let r=0;rr.createElement(Co,{key:t,owner:e,isSelected:t===s,selectOwner:l})))),r.createElement("div",{className:Eo.VRule}),r.createElement(Ya,{onClick:()=>l(null),title:"Back to tree view"},r.createElement(Yt,{type:"close"})))}function Ao({owners:e,selectOwner:t}){const n=(0,r.useContext)(mr),a=[];for(let i=e.length-1;i>=0;i--){const o=e[i],s=n.containsElement(o.id);a.push(r.createElement(_o,{key:o.id,className:`${Eo.Component} ${s?"":Eo.NotInStore}`,onSelect:()=>s?t(o):null},o.displayName,r.createElement(Ja,{hocDisplayNames:o.hocDisplayNames,compiledWithForget:o.compiledWithForget,className:Eo.BadgesBlock})))}return r.createElement(ho,null,r.createElement(mo,{className:Eo.MenuButton},r.createElement(La,{label:"Open elements dropdown"},r.createElement("span",{className:Eo.MenuButtonContent,tabIndex:-1},r.createElement(Yt,{type:"more"})))),r.createElement(ko,{className:Eo.Modal},a))}function Co({isSelected:e,owner:t,selectOwner:n}){const a=(0,r.useContext)(mr),{displayName:i,hocDisplayNames:o,compiledWithForget:s}=t,l=a.containsElement(t.id),c=(0,r.useCallback)((()=>{l&&n(t)}),[l,n,t]);return r.createElement(za,{className:`${Eo.Component} ${l?"":Eo.NotInStore}`,isChecked:e,onChange:c},i,r.createElement(Ja,{hocDisplayNames:o,compiledWithForget:s,className:Eo.BadgesBlock}))}function Mo({owners:e,selectedIndex:t,selectOwner:n}){const a=(0,r.useContext)(mr);if(t<=0)return null;const i=e[t-1],o=a.containsElement(i.id);return r.createElement(Ya,{className:o?void 0:Eo.NotInStore,onClick:()=>o?n(i):null,title:`Up to ${i.displayName||"owner"}`},r.createElement(Yt,{type:"previous"}))}const xo={SearchInput:"VMs1TFKbGygwf2rHPPkR",Input:"DIPlRR9ISDncbPNuOIrF",InputIcon:"Ti4BEBXnbAQp1lGUIsYx",IndexLabel:"yVLbSSc1CG5ZY60ChkxC",LeftVRule:"RO_9dALMy9pEJs_usl1_"};function To({goToNextResult:e,goToPreviousResult:t,placeholder:n,search:a,searchIndex:i,searchResultsCount:o,searchText:s,testName:l}){const c=(0,r.useRef)(null);return(0,r.useEffect)((()=>{if(null===c.current)return()=>{};const e=e=>{const{key:r,metaKey:t}=e;"f"===r&&t&&null!==c.current&&(c.current.focus(),e.preventDefault(),e.stopPropagation())},r=c.current.ownerDocument;return r.addEventListener("keydown",e),()=>r.removeEventListener("keydown",e)}),[]),r.createElement("div",{className:xo.SearchInput,"data-testname":l},r.createElement(ft,{className:xo.InputIcon,type:"search"}),r.createElement("input",{"data-testname":l?`${l}-Input`:void 0,className:xo.Input,onChange:({currentTarget:e})=>{a(e.value)},onKeyPress:({key:r,shiftKey:n})=>{"Enter"===r&&(n?t():e())},placeholder:n,ref:c,value:s}),!!s&&r.createElement(r.Fragment,null,r.createElement("span",{className:xo.IndexLabel,"data-testname":l?`${l}-ResultsCount`:void 0},Math.min(i+1,o)," |"," ",o),r.createElement("div",{className:xo.LeftVRule}),r.createElement(Ya,{"data-testname":l?`${l}-PreviousButton`:void 0,disabled:!s,onClick:t,title:r.createElement(r.Fragment,null,"Scroll to previous search result (",r.createElement("kbd",null,"Shift")," +"," ",r.createElement("kbd",null,"Enter"),")")},r.createElement(Yt,{type:"up"})),r.createElement(Ya,{"data-testname":l?`${l}-NextButton`:void 0,disabled:!s,onClick:e,title:r.createElement(r.Fragment,null,"Scroll to next search result (",r.createElement("kbd",null,"Enter"),")")},r.createElement(Yt,{type:"down"})),r.createElement(Ya,{"data-testname":l?`${l}-ResetButton`:void 0,disabled:!s,onClick:()=>a(""),title:"Reset search"},r.createElement(Yt,{type:"close"}))))}function Ho(e){const{searchIndex:t,searchResults:n,searchText:a}=(0,r.useContext)(it),i=(0,r.useContext)(ot);return r.createElement(To,{goToNextResult:()=>i({type:"GO_TO_NEXT_SEARCH_RESULT"}),goToPreviousResult:()=>i({type:"GO_TO_PREVIOUS_SEARCH_RESULT"}),placeholder:"Search (text or /regex/)",search:e=>i({type:"SET_SEARCH_TEXT",payload:e}),searchIndex:t,searchResultsCount:n.length,searchText:a,testName:"ComponentSearchInput"})}const No=(0,r.createContext)(null);function Ro({children:e}){const[t,n]=(0,r.useState)(!1),a=(0,r.useMemo)((()=>({isModalShowing:t,setIsModalShowing:n})),[t,n]);return r.createElement(No.Provider,{value:a},e)}function Io(){const{setIsModalShowing:e}=(0,r.useContext)(No),t=(0,r.useContext)(mr),{profilerStore:n}=t,a=(0,r.useCallback)((()=>e(!0)),[e]),i=zt((0,r.useMemo)((()=>({getCurrentValue:()=>n.isProfiling,subscribe:e=>(n.addListener("isProfiling",e),()=>n.removeListener("isProfiling",e))})),[n]));return r.createElement(Ya,{disabled:i,onClick:a,title:"View settings"},r.createElement(Yt,{type:"settings"}))}No.displayName="SettingsModalContext";const Oo=(0,r.createContext)(!1),Fo={Active:"kdV7QNZg7DoUYF_P3pHh",Inactive:"TUJK9x5GTxI9hMQD4CUP"};function Po(e){const{lineHeight:t}=(0,r.useContext)(jt),n=(0,r.useContext)(mr),a=(0,r.useContext)(Oo),{ownerID:i,selectedElementID:o}=(0,r.useContext)(it),s=(0,r.useMemo)((()=>({getCurrentValue:()=>{if(null===o||n.isInsideCollapsedSubTree(o))return null;const e=n.getElementByID(o);if(null===e||e.isCollapsed||0===e.children.length)return null;const r=n.getIndexOfElementID(e.children[0]);if(null===r)return null;let t=null,a=e;for(;null!==a;)if(a.isCollapsed||0===a.children.length)t=n.getIndexOfElementID(a.id),a=null;else{const e=a.children[a.children.length-1];a=n.getElementByID(e)}return null===t?null:{startIndex:r,stopIndex:t}},subscribe:e=>(n.addListener("mutated",e),()=>{n.removeListener("mutated",e)})})),[o,n]),l=zt(s);if(null!==i)return null;if(null===l)return null;const{startIndex:c,stopIndex:u}=l;return r.createElement("div",{className:a?Fo.Active:Fo.Inactive,style:{position:"absolute",top:c*t+"px",height:(u+1-c)*t+"px"}})}class Lo extends Error{constructor(e){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,Lo),this.name="TimeoutError"}}class zo extends Error{constructor(){super(),Error.captureStackTrace&&Error.captureStackTrace(this,zo),this.name="ElementPollingCancellationError"}}function Bo(e,r,t,n,a,i=!1){const o=Wo++,s=function(e,r,t,n,a=!1){return new Promise(((i,o)=>{const s=()=>{t.removeListener(r,u),t.removeListener("shutdown",l),a&&t.removeListener("pauseElementPolling",c),clearTimeout(d)},l=()=>{s(),o(new Error("Failed to inspect element. Try again or restart React DevTools."))},c=()=>{s(),o(new zo)},u=r=>{r.responseID===e&&(s(),i(r))},f=()=>{s(),o(new Lo(n))};t.addListener(r,u),t.addListener("shutdown",l),a&&t.addListener("pauseElementPolling",c);const d=setTimeout(f,Uo)}))}(o,"inspectedElement",e,`Timed out while inspecting element ${t}.`,i);return e.send("inspectElement",{forceFullData:r,id:t,path:n,rendererID:a,requestID:o}),s}let Vo=0;const Uo=1e4;let Wo=0;function jo(e,r){if(null!==e){const{cleaned:t,data:n,unserializable:a}=e;if(r){const{length:e}=r;if(e>0)return pe(n,t.map((r=>r.slice(e))),a.map((r=>r.slice(e))))}return pe(n,t,a)}return null}const $o={Tree:"eym3VHX8dLMdgKTfvKFp",List:"spkW6SBc8slOOEwsvkVe",InnerElementType:"q1EQ300j6SHomtf4uDLK",SearchInput:"lZrwozgZWn6U_97Og5BR",AutoSizerWrapper:"kEhyJm9EDBUWcHAFZeFI",VRule:"aJUb5cChORMbLRrbpgMQ",Loading:"EyQLmPex2HUhDtdv5CDj",IconAndCount:"KB_8VeUHgJzB_clWZEhK",ErrorIcon:"_azOr6JJwPNm7sFNMcjV",WarningIcon:"_cXcjlSefrLNRqBwgL4W",ZeroElementsNotice:"fPhx_IyaNqzzB8Ck0RCD",fadeIn:"zqTATXE0YEbpxHbarDOQ",Link:"Hx0OASUc_YUYAswWj_SN"},Xo=12;function Go(e){const t=(0,r.useContext)(ot),{numElements:n,ownerID:a,searchIndex:i,searchResults:o,selectedElementID:s,selectedElementIndex:l}=(0,r.useContext)(it),c=(0,r.useContext)(hr),u=(0,r.useContext)(mr),{hideSettings:f}=(0,r.useContext)(_r),[d,v]=(0,r.useState)(!1),{highlightNativeElement:h,clearHighlightNativeElement:m}=Bt(),p=(0,r.useRef)(null),_=(0,r.useRef)(null),[S,g]=(0,r.useState)(!1),{lineHeight:b,showInlineWarningsAndErrors:w}=(0,r.useContext)(jt),k=(0,r.useCallback)((e=>{null!=e&&null!==l&&e.scrollToItem(l,"smart")}),[l]);(0,r.useEffect)((()=>{function e(e){e&&null!==_.current&&(_.current.focus(),Wt({event_name:"select-element",metadata:{source:"inspector"}}))}return c.addListener("stopInspectingNative",e),()=>c.removeListener("stopInspectingNative",e)}),[c]);const E=(0,r.useRef)(null);(0,r.useEffect)((()=>{if(null===p.current)return()=>{};const e=e=>{if("INPUT"===e.target.tagName||e.defaultPrevented)return;let r;switch(e.key){case"ArrowDown":e.preventDefault(),e.altKey?t({type:"SELECT_NEXT_SIBLING_IN_TREE"}):t({type:"SELECT_NEXT_ELEMENT_IN_TREE"});break;case"ArrowLeft":e.preventDefault(),r=null!==s?u.getElementByID(s):null,null!==r&&(e.altKey?null!==r.ownerID&&t({type:"SELECT_OWNER_LIST_PREVIOUS_ELEMENT_IN_TREE"}):r.children.length>0&&!r.isCollapsed?u.toggleIsCollapsed(r.id,!0):t({type:"SELECT_PARENT_ELEMENT_IN_TREE"}));break;case"ArrowRight":e.preventDefault(),r=null!==s?u.getElementByID(s):null,null!==r&&(e.altKey?t({type:"SELECT_OWNER_LIST_NEXT_ELEMENT_IN_TREE"}):r.children.length>0&&r.isCollapsed?u.toggleIsCollapsed(r.id,!1):t({type:"SELECT_CHILD_ELEMENT_IN_TREE"}));break;case"ArrowUp":e.preventDefault(),e.altKey?t({type:"SELECT_PREVIOUS_SIBLING_IN_TREE"}):t({type:"SELECT_PREVIOUS_ELEMENT_IN_TREE"});break;default:return}v(!0)},r=p.current;return r.addEventListener("keydown",e),()=>{r.removeEventListener("keydown",e)}}),[t,s,u]);const y=(0,r.useCallback)((()=>g(!1)),[]),D=(0,r.useCallback)((()=>{g(!0),null===l&&n>0&&t({type:"SELECT_ELEMENT_AT_INDEX",payload:0})}),[t,n,l]),A=(0,r.useCallback)((e=>{switch(e.key){case"Enter":case" ":null!==s&&t({type:"SELECT_OWNER",payload:s})}}),[t,s]),C=(0,r.useRef)({searchIndex:i,searchResults:o});(0,r.useEffect)((()=>{let e=!1;C.current.searchIndex===i&&C.current.searchResults===o||(C.current.searchIndex=i,C.current.searchResults=o,e=!0),(d||e)&&(null!==s?h(s):m())}),[c,d,h,i,o,s]);const M=(0,r.useCallback)((e=>{d||h(e)}),[d,h]),x=(0,r.useCallback)((()=>{v(!1)}),[]),T=m,H=(0,r.useMemo)((()=>({numElements:n,isNavigatingWithKeyboard:d,onElementMouseEnter:M,lastScrolledIDRef:E,treeFocused:S})),[n,d,M,E,S]),N=(0,r.useCallback)((e=>u.getElementIDAtIndex(e)),[u]),R=r.useCallback((()=>{t({type:"SELECT_PREVIOUS_ELEMENT_WITH_ERROR_OR_WARNING_IN_TREE"})}),[]),I=r.useCallback((()=>{t({type:"SELECT_NEXT_ELEMENT_WITH_ERROR_OR_WARNING_IN_TREE"})}),[]),O=(0,r.useMemo)((()=>({getCurrentValue:()=>({errors:u.errorCount,warnings:u.warningCount}),subscribe:e=>(u.addListener("mutated",e),()=>u.removeListener("mutated",e))})),[u]),{errors:F,warnings:P}=zt(O),L=r.createElement("div",{className:$o.ZeroElementsNotice},r.createElement("p",null,"Loading React Element Tree..."),r.createElement("p",null,"If this seems stuck, please follow the"," ",r.createElement("a",{className:$o.Link,href:"https://github.com/facebook/react/blob/main/packages/react-devtools/README.md#the-react-tab-shows-no-components",target:"_blank"},"troubleshooting instructions"),"."));return r.createElement(Oo.Provider,{value:S},r.createElement("div",{className:$o.Tree,ref:p},r.createElement("div",{className:$o.SearchInput},u.supportsNativeInspection&&r.createElement(r.Fragment,null,r.createElement(Ga,null),r.createElement("div",{className:$o.VRule})),r.createElement(r.Suspense,{fallback:r.createElement(qo,null)},null!==a?r.createElement(Do,null):r.createElement(Ho,null)),w&&null===a&&(F>0||P>0)&&r.createElement(r.Fragment,null,r.createElement("div",{className:$o.VRule}),F>0&&r.createElement("div",{className:$o.IconAndCount},r.createElement(ft,{className:$o.ErrorIcon,type:"error"}),F),P>0&&r.createElement("div",{className:$o.IconAndCount},r.createElement(ft,{className:$o.WarningIcon,type:"warning"}),P),r.createElement(Ya,{onClick:R,title:"Scroll to previous error or warning"},r.createElement(Yt,{type:"up"})),r.createElement(Ya,{onClick:I,title:"Scroll to next error or warning"},r.createElement(Yt,{type:"down"})),r.createElement(Ya,{onClick:()=>{!function({bridge:e,store:r}){r.rootIDToRendererID.forEach((r=>{e.send("clearErrorsAndWarnings",{rendererID:r})}))}({bridge:c,store:u})},title:"Clear all errors and warnings"},r.createElement(Yt,{type:"clear"}))),!f&&r.createElement(r.Fragment,null,r.createElement("div",{className:$o.VRule}),r.createElement(Io,null))),0===n?L:r.createElement("div",{className:$o.AutoSizerWrapper,onBlur:y,onFocus:D,onKeyPress:A,onMouseMove:x,onMouseLeave:T,ref:_,tabIndex:0},r.createElement(Ar,null,(({height:e,width:t})=>r.createElement($r,{className:$o.List,height:e,innerElementType:Ko,itemCount:n,itemData:H,itemKey:N,itemSize:b,ref:k,width:t},ja))))))}function Ko({children:e,style:t}){const{ownerID:n}=(0,r.useContext)(it),a=(0,r.useMemo)((()=>new WeakMap),[]),i=(0,r.useRef)(Xo),o=(0,r.useRef)(0),s=(0,r.useRef)(n),l=(0,r.useRef)(null);return n!==s.current&&(s.current=n,i.current=Xo),(0,r.useEffect)((()=>{null!==l.current&&function(e,r,t,n){const a=e.parentElement,i=a.clientWidth;if(0===i)return;i>n.current&&(t.current=Xo),n.current=i;let o=t.current;for(const t of e.children){const e=parseInt(t.getAttribute("data-depth"),10)||0;let n=0;const a=r.get(t);if(null!=a)n=a;else{const{firstElementChild:e}=t;null!=e&&(n=e.clientWidth,r.set(t,n))}const s=Math.max(0,i-n);o=Math.min(o,s/e)}t.current=o,a.style.setProperty("--indentation-size",`${o}px`)}(l.current,a,i,o)})),r.createElement("div",{className:$o.InnerElementType,ref:l,style:t},r.createElement(Po,null),e)}function qo(){return r.createElement("div",{className:$o.Loading},"Loading...")}const Yo={GitHubLinkRow:"Jw1vKro1qyK08Kgi4lXQ",WorkplaceGroupRow:"OkQt7gez_5Zbv2tBz9YF",ErrorBoundary:"pobssL55b_qBkor0dyEw",ErrorInfo:"BMCPOZq6VTru3nezN1CN",HeaderRow:"bjCnYALBmWFWJRvlKnuR",ErrorHeader:"If9hSNFolZzI9zjxe3uB",TimeoutHeader:"X_tgW3kFmkwoAYI8Lurx",ErrorStack:"rdu6ANHP3wTLYuVNOjjy",TimeoutStack:"ONoWSLRXZt1O9VpA6ZNN",LoadingIcon:"t0mXgtmAtexoj3eNFSi2",ReportIcon:"hkM9y_1BmI1h9s2LJuEi",ReportLink:"BT7EiwHag0LPFdKGZRUA",FacebookOnly:"Z_Xw4ThFHcPmvHXpe8sP",ReproSteps:"Bppxr4Hl_IlmCJM_jAlw",UpdateExistingIssuePrompt:"plwu44QqkJ3Sazkvcuz6",CloseButton:"ujPGMsE_z9gPJoyVF1D_",CloseButtonIcon:"HMpcHV7bWRjXWHCZ3iDI",InfoBox:"drfHT3jZUSEYSS0XNYL_"};function Qo({callStack:e,children:t,componentStack:n,errorMessage:a}){return r.createElement("div",{className:Yo.ErrorBoundary},t,r.createElement("div",{className:Yo.ErrorInfo},r.createElement("div",{className:Yo.HeaderRow},r.createElement("div",{className:Yo.ErrorHeader},a||"Bridge protocol mismatch")),r.createElement("div",{className:Yo.InfoBox},"An incompatible version of ",r.createElement("code",null,"react-devtools-core")," has been embedded in a renderer like React Native. To fix this, update the"," ",r.createElement("code",null,"react-devtools-core")," package within the React Native application, or downgrade the ",r.createElement("code",null,"react-devtools")," package you use to open the DevTools UI."),!!e&&r.createElement("div",{className:Yo.ErrorStack},"The error was thrown ",e.trim())))}function Jo({callStack:e,children:t,componentStack:n,dismissError:a=null,errorMessage:i}){return r.createElement("div",{className:Yo.ErrorBoundary},t,r.createElement("div",{className:Yo.ErrorInfo},r.createElement("div",{className:Yo.HeaderRow},r.createElement("div",{className:Yo.ErrorHeader},"Uncaught Error: ",i||""),null!==a&&r.createElement(Ya,{className:Yo.CloseButton,onClick:a},"Dismiss",r.createElement(Yt,{className:Yo.CloseButtonIcon,type:"close"}))),!!e&&r.createElement("div",{className:Yo.ErrorStack},"The error was thrown ",e.trim()),!!n&&r.createElement("div",{className:Yo.ErrorStack},"The error occurred ",n.trim())))}const Zo={Icon:"p7QWUJGSatfPkY7Fxv1X"};function es({className:e=""}){return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:`${Zo.Icon} ${e}`,width:"24",height:"24",viewBox:"0 0 100 100"},r.createElement("path",{d:"M0 0h100v100H0z",fill:"none"}),r.createElement("circle",{fill:"currentColor",stroke:"none",cx:"20",cy:"50",r:"10"},r.createElement("animate",{attributeName:"opacity",dur:"1s",values:"0;1;0",repeatCount:"indefinite",begin:"0.1"})),r.createElement("circle",{fill:"currentColor",stroke:"none",cx:"50",cy:"50",r:"10"},r.createElement("animate",{attributeName:"opacity",dur:"1s",values:"0;1;0",repeatCount:"indefinite",begin:"0.2"})),r.createElement("circle",{fill:"currentColor",stroke:"none",cx:"80",cy:"50",r:"10"},r.createElement("animate",{attributeName:"opacity",dur:"1s",values:"0;1;0",repeatCount:"indefinite",begin:"0.3"})))}function rs(){return r.createElement("div",{className:Yo.GitHubLinkRow},r.createElement(es,{className:Yo.LoadingIcon}),"Searching GitHub for reports of this error...")}const ts="https://api.github.com/search/issues";function ns(e){e=e.replace(/"[0-9]+"/g,"");return ts+"?q="+encodeURIComponent(e)+"%20"+["in:title","is:issue","is:open","is:public",'label:"Component: Developer Tools"',"repo:facebook/react"].map(encodeURIComponent).join("%20")}const as=3e3,is=0,os=1,ss=2;function ls(){return new Map}function cs(e){e=function(e){return e=e.replace(/"[0-9]+"/,""),e}(e);const t=(0,r.unstable_getCacheForType)(ls);let n=t.get(e);if(!n){const r=new Set,a=()=>{r.forEach((e=>e())),r.clear()},i=n={status:is,value:{then(e){r.add(e)},displayName:`Searching GitHub issues for error "${e}"`}};let o=!1;(async function(e){const r=await fetch(ns(e)),t=await r.json();if(t.items.length>0){const e=t.items[0];return{title:e.title,url:e.html_url}}return null})(e).then((e=>{if(!o){if(e){const r=i;r.status=os,r.value=e}else{const e=i;e.status=ss,e.value=null}a()}})).catch((e=>{const r=i;r.status=ss,r.value=null,a()})),setTimeout((()=>{o=!0;const e=i;e.status=ss,e.value=null,a()}),as),t.set(e,n)}const a=function(e){if(e.status===os)return e;if(e.status===ss)return e;throw e.value}(n).value;return a}function us({gitHubIssue:e}){const{title:t,url:n}=e;return r.createElement("div",{className:Yo.GitHubLinkRow},r.createElement(ft,{className:Yo.ReportIcon,type:"bug"}),r.createElement("div",{className:Yo.UpdateExistingIssuePrompt},"Update existing issue:"),r.createElement("a",{className:Yo.ReportLink,href:n,rel:"noopener noreferrer",target:"_blank",title:"Report bug"},t))}const fs=["Component: Developer Tools","Type: Bug","Status: Unconfirmed"],ds="devtools_bug_report.yml";function vs({callStack:e,componentStack:t,errorMessage:n}){let a="https://github.com/facebook/react";if(!a)return null;const i=null!==n?ns(n):"(none)",o=`[DevTools Bug] ${n||""}`;return a+=`/issues/new?${[`template=${ds}`,`labels=${encodeURIComponent(fs.join(","))}`,`title=${encodeURIComponent(o)}`,"automated_package=react-devtools-fusebox","automated_version=5.2.0-57fbe3ba37",`automated_error_message=${encodeURIComponent(n||"")}`,`automated_call_stack=${encodeURIComponent(e||"")}`,`automated_component_stack=${encodeURIComponent(t||"")}`,`automated_github_query_string=${i}`].join("&")}`,r.createElement("div",{className:Yo.GitHubLinkRow},r.createElement(ft,{className:Yo.ReportIcon,type:"bug"}),r.createElement("a",{className:Yo.ReportLink,href:a,rel:"noopener noreferrer",target:"_blank",title:"Report bug"},"Report this issue"),r.createElement("div",{className:Yo.ReproSteps},"(Please include steps on how to reproduce it and the components used.)"))}function hs(){return Ut?r.createElement("div",{className:Yo.WorkplaceGroupRow},r.createElement(ft,{className:Yo.ReportIcon,type:"facebook"}),r.createElement("a",{className:Yo.ReportLink,href:Tt,rel:"noopener noreferrer",target:"_blank",title:"Report bug"},"Report this on Workplace"),r.createElement("div",{className:Yo.FacebookOnly},"(Facebook employees only.)")):null}function ms({callStack:e,componentStack:t,errorMessage:n}){const a=null!==n?cs(n):null;let i;return i=null!=a?r.createElement(us,{gitHubIssue:a}):r.createElement(vs,{callStack:e,componentStack:t,errorMessage:n}),r.createElement(r.Fragment,null,i,r.createElement(hs,null))}function ps({callStack:e,children:t,componentStack:n,dismissError:a=null,errorMessage:i}){return r.createElement("div",{className:Yo.ErrorBoundary},t,r.createElement("div",{className:Yo.ErrorInfo},r.createElement("div",{className:Yo.HeaderRow},r.createElement("div",{className:Yo.TimeoutHeader},i||"Timed out waiting"),r.createElement(Ya,{className:Yo.CloseButton,onClick:a},"Retry",r.createElement(Yt,{className:Yo.CloseButtonIcon,type:"close"}))),!!n&&r.createElement("div",{className:Yo.TimeoutStack},"The timeout occurred ",n.trim())))}function _s({callStack:e,children:t,info:n,componentStack:a,errorMessage:i}){return r.createElement("div",{className:Yo.ErrorBoundary},t,r.createElement("div",{className:Yo.ErrorInfo},r.createElement("div",{className:Yo.HeaderRow},r.createElement("div",{className:Yo.ErrorHeader},i)),!!n&&r.createElement("div",{className:Yo.InfoBox},n),!!e&&r.createElement("div",{className:Yo.ErrorStack},"The error was thrown ",e.trim())))}class Ss extends Error{constructor(e){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,Ss),this.name="UserError"}}class gs extends Error{constructor(e){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,gs),this.name="UnknownHookError"}}function bs(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}const ws={callStack:null,canDismiss:!1,componentStack:null,errorMessage:null,hasError:!1,isUnsupportedBridgeOperationError:!1,isTimeout:!1,isUserError:!1,isUnknownHookError:!1};class ks extends r.Component{constructor(...e){super(...e),bs(this,"state",ws),bs(this,"_logError",((e,r)=>{Wt({event_name:"error",error_message:e.message??null,error_stack:e.stack??null,error_component_stack:r??null})})),bs(this,"_dismissError",(()=>{const e=this.props.onBeforeDismissCallback;"function"==typeof e&&e(),this.setState(ws)})),bs(this,"_onStoreError",(e=>{this.state.hasError||(this._logError(e,null),this.setState({...ks.getDerivedStateFromError(e),canDismiss:!0}))}))}static getDerivedStateFromError(e){const r="object"==typeof e&&null!==e&&"string"==typeof e.message?e.message:null,t=e instanceof Lo,n=e instanceof Ss,a=e instanceof gs,i=e instanceof lr;return{callStack:"object"==typeof e&&null!==e&&"string"==typeof e.stack?e.stack.split("\n").slice(1).join("\n"):null,errorMessage:r,hasError:!0,isUnsupportedBridgeOperationError:i,isUnknownHookError:a,isTimeout:t,isUserError:n}}componentDidCatch(e,{componentStack:r}){this._logError(e,r),this.setState({componentStack:r})}componentDidMount(){const{store:e}=this.props;null!=e&&e.addListener("error",this._onStoreError)}componentWillUnmount(){const{store:e}=this.props;null!=e&&e.removeListener("error",this._onStoreError)}render(){const{canDismiss:e,children:t}=this.props,{callStack:n,canDismiss:a,componentStack:i,errorMessage:o,hasError:s,isUnsupportedBridgeOperationError:l,isTimeout:c,isUserError:u,isUnknownHookError:f}=this.state;return s?c?r.createElement(ps,{callStack:n,componentStack:i,dismissError:e||a?this._dismissError:null,errorMessage:o}):l?r.createElement(Qo,{callStack:n,componentStack:i,errorMessage:o}):u?r.createElement(_s,{callStack:n,componentStack:i,errorMessage:o||"Error occured in inspected element",info:r.createElement(r.Fragment,null,"React DevTools encountered an error while trying to inspect the hooks. This is most likely caused by a developer error in the currently inspected element. Please see your console for logged error.")}):f?r.createElement(_s,{callStack:n,componentStack:i,errorMessage:o||"Encountered an unknown hook",info:r.createElement(r.Fragment,null,"React DevTools encountered an unknown hook. This is probably because the react-debug-tools package is out of date. To fix, upgrade the React DevTools to the most recent version.")}):r.createElement(Jo,{callStack:n,componentStack:i,dismissError:e||a?this._dismissError:null,errorMessage:o},r.createElement(r.Suspense,{fallback:r.createElement(rs,null)},r.createElement(ms,{callStack:n,componentStack:i,errorMessage:o}))):t}}const Es=ks;function ys({children:e}){const t=Fa(),n=r.useMemo((()=>({...t,width:"100%",height:"100%"})),[t]);return r.createElement("div",{style:n},e)}function Ds(e){return function({portalContainer:t,...n}){const a=(0,r.useContext)(mr);let i=r.createElement(Es,{store:a},r.createElement(e,n));return null!=t&&(i=r.createElement(ys,null,r.createElement("div",{"data-react-devtools-portal-root":!0,style:{width:"100vw",height:"100vh"}},i))),null!=t?(0,qn.createPortal)(i,t):i}}const As=new(q())({max:25});function Cs(e,r,t,n,a=!1){const{id:i}=r;return Bo(e,!As.has(i),i,t,n,a).then((e=>{const{type:r}=e;let n;switch(r){case"error":{const{message:r,stack:t,errorType:n}=e;let a;throw a="user"===n?new Ss(r):"unknown-hook"===n?new gs(r):new Error(r),a.stack=t||a.stack,a}case"no-change":if(n=As.get(i),null!=n)return[n,r];throw Error(`Cached data for element "${i}" not found`);case"not-found":throw As.del(i),Error(`Element "${i}" not found`);case"full-data":return n=function(e){const{canEditFunctionProps:r,canEditFunctionPropsDeletePaths:t,canEditFunctionPropsRenamePaths:n,canEditHooks:a,canEditHooksAndDeletePaths:i,canEditHooksAndRenamePaths:o,canToggleError:s,isErrored:l,targetErrorBoundaryID:c,canToggleSuspense:u,canViewSource:f,hasLegacyContext:d,id:v,type:h,owners:m,source:p,context:_,hooks:S,plugins:g,props:b,rendererPackageName:w,rendererVersion:k,rootType:E,state:y,key:D,errors:A,warnings:C}=e;return{canEditFunctionProps:r,canEditFunctionPropsDeletePaths:t,canEditFunctionPropsRenamePaths:n,canEditHooks:a,canEditHooksAndDeletePaths:i,canEditHooksAndRenamePaths:o,canToggleError:s,isErrored:l,targetErrorBoundaryID:c,canToggleSuspense:u,canViewSource:f,hasLegacyContext:d,id:v,key:D,plugins:g,rendererPackageName:w,rendererVersion:k,rootType:E,source:p&&p.sourceURL?p:null,type:h,owners:null===m?null:m.map(Oe),context:jo(_),hooks:jo(S),props:jo(b),state:jo(y),errors:A,warnings:C}}(e.value),As.set(i,n),[n,r];case"hydrated-path":const a=e,{value:o}=a;if(n=As.get(i)||null,null!==n)return n={...n},null!=t&&me(n,o,t,jo(o,t)),As.set(i,n),[n,r]}throw Error(`Unable to inspect element with id "${i}"`)}))}const Ms=0,xs=1,Ts=2;function Hs(){return new WeakMap}function Ns(e,t,n,a){const i=(0,r.unstable_getCacheForType)(Hs);let o=i.get(e);if(!o){const r=new Set,s={then(e){r.add(e)},displayName:`Inspecting ${e.displayName||"Unknown"}`},l=()=>{r.forEach((e=>e())),r.clear()},c=o={status:Ms,value:s},u=n.getRendererIDForElement(e.id);if(null==u){const r=c;return r.status=Ts,r.value=new Error(`Could not inspect element with id "${e.id}". No renderer found.`),i.set(e,o),null}Cs(a,e,t,u).then((([e])=>{const r=c;r.status=xs,r.value=e,l()}),(e=>{console.error(e);const r=c;r.status=Ts,r.value=e,l()})),i.set(e,o)}const s=function(e){if(e.status===xs)return e;throw e.value}(o).value;return s}function Rs({bridge:e,element:t,refresh:n,store:a}){const{id:i}=t,o=a.getRendererIDForElement(i);if(null!=o)return Cs(e,t,null,o,!0).then((([e,a])=>{"full-data"===a&&(0,r.startTransition)((()=>{const[r,a]=function(e,r){const t={status:xs,value:r},n=Hs();return n.set(e,t),[Hs,n]}(t,e);n(r,a)}))}))}const Is={Wrapper:"VaoI4BlPGgwJwhOCRtsD"};function Os({children:e}){const{selectedElementID:t}=(0,r.useContext)(it),n=(0,r.unstable_useCacheRefresh)(),a=(0,r.useCallback)((()=>{!function(e){(0,r.startTransition)((()=>{const r=Hs();e(Hs,r)}))}(n)}),[n]);return r.createElement("div",{className:Is.Wrapper},r.createElement(Es,{key:t,canDismiss:!0,onBeforeDismissCallback:a},e))}const Fs={Background:"PFpmDOwgyV41JdBnRz9Z",Dialog:"WAQNM1ZU8dHWiSzemaQm",Title:"FCX_167XYnlhwfNuLzWn",Buttons:"GYUAYcxRXmi3HpeXVySA",Button:"eGn4soiHkWtcMEAhslki"},Ps=(0,r.createContext)(null);function Ls(e,r){switch(r.type){case"HIDE":return{dialogs:e.dialogs.filter((e=>e.id!==r.id))};case"SHOW":return{dialogs:[...e.dialogs,{canBeDismissed:!1!==r.canBeDismissed,content:r.content,id:r.id,title:r.title||null}]};default:throw new Error(`Invalid action "${r.type}"`)}}function zs({children:e}){const[t,n]=(0,r.useReducer)(Ls,{dialogs:[]}),a=(0,r.useMemo)((()=>({dialogs:t.dialogs,dispatch:n})),[t,n]);return r.createElement(Ps.Provider,{value:a},e)}function Bs(e){const{dialogs:t,dispatch:n}=(0,r.useContext)(Ps);return 0===t.length?null:r.createElement("div",{className:Fs.Background},t.map((e=>r.createElement(Vs,{key:e.id,canBeDismissed:e.canBeDismissed,content:e.content,dispatch:n,id:e.id,title:e.title}))))}function Vs({canBeDismissed:e,content:t,dispatch:n,id:a,title:i}){const o=(0,r.useCallback)((()=>{e&&n({type:"HIDE",id:a})}),[e,n]),s=(0,r.useRef)(null);Lt(s,o,!1);return r.createElement("div",{ref:s,className:Fs.Dialog,onClick:e=>{e.stopPropagation()}},null!==i&&r.createElement("div",{className:Fs.Title},i),t,e&&r.createElement("div",{className:Fs.Buttons},r.createElement(Ya,{autoFocus:!0,className:Fs.Button,onClick:o},"Okay")))}function Us(){return!!(0,r.useContext)(mr).componentFilters.find((e=>e.type===j&&e.value===W&&e.isEnabled))?r.createElement("div",null,"Suspended state cannot be toggled while Suspense components are hidden. Disable the filter and try again."):r.createElement("div",null,"The selected element is not within a Suspense container. Suspending it would cause an error.")}Ps.displayName="ModalDialogContext";const Ws={Root:"eKXhn2sbXs1thQ1xt1b6"};function js({hocDisplayNames:e,compiledWithForget:t}){return t||null!=e&&0!==e.length?r.createElement("div",{className:Ws.Root},t&&r.createElement(Va,{indexable:!1}),null!==e&&e.map((e=>r.createElement(Mn,{key:e},e)))):null}const $s={Input:"hL22yQCjQzU4O_pjtwuf"};function Xs(){return Xs=Object.assign||function(e){for(var r=1;r{const r=e.target;null!==r&&(r.selectionStart=0,r.selectionEnd=i.length),"function"==typeof t&&t(e)},placeholder:n,style:{width:`calc(${s?n.length:i.length}ch + 1px)`},value:s?"":i},o))}const Ks={Input:"HPF7_KiXXen5Qvttf5jQ"};function qs({allowEmpty:e=!1,allowWhiteSpace:t=!1,autoFocus:n=!1,className:a="",initialValue:i="",overrideName:o,path:s,type:l}){const[c,u]=(0,r.useState)(i),[f,d]=(0,r.useState)(!1),v=(0,r.useCallback)((({target:r})=>{let n=r.value;t||(n=n.trim()),d(!(!e&&""===n)),u(n)}),[o]),h=(0,r.useCallback)((e=>{switch(e.stopPropagation(),e.key){case"Enter":case"Tab":if(f){const e=s.slice(0,s.length-1);o([...e,i],[...e,c])}break;case"Escape":u(i)}}),[c,u,f,i,o]);return r.createElement(Gs,{autoFocus:n,className:[Ks.Input,a].join(" "),onChange:v,onKeyDown:h,placeholder:"new entry",testName:"EditableName",type:"text",value:c})}const Ys={Checkbox:"WqT8rJzZBGSUJHMBA9Tx",Input:"OOzAmP7gDhP65LH4K2s6",Invalid:"y1WpuFCfhxR1kOosMGBp"};function Qs({className:e="",overrideValue:t,path:n,value:a}){const[i,o]=function(e){const[t,n]=(0,r.useReducer)(Ft,{editableValue:Ue(e),externalValue:e,hasPendingChanges:!1,isValid:!0,parsedValue:e});return Object.is(t.externalValue,e)||(t.hasPendingChanges?n({type:"UPDATE",editableValue:t.editableValue,externalValue:e}):n({type:"RESET",externalValue:e})),[t,n]}(a),{editableValue:s,hasPendingChanges:l,isValid:c,parsedValue:u}=i,f=()=>{c&&l&&t(n,u)};let d="";d=void 0===s?"(undefined)":"Enter valid JSON";const v=!0===u||!1===u;return r.createElement(r.Fragment,null,r.createElement("input",{autoComplete:"new-password",className:`${c?Ys.Input:Ys.Invalid} ${e}`,"data-testname":"EditableValue",onBlur:f,onChange:({target:e})=>o({type:"UPDATE",editableValue:e.value,externalValue:a}),onKeyDown:e=>{switch(e.stopPropagation(),e.key){case"Enter":f();break;case"Escape":o({type:"RESET",externalValue:a})}},placeholder:d,type:"text",value:s}),v&&r.createElement("input",{className:Ys.Checkbox,checked:u,type:"checkbox",onChange:({target:e})=>{o({type:"UPDATE",editableValue:e.checked,externalValue:a}),t(n,e.checked)}}))}function Js(e){let r=0;for(let t=0;t0,className:[Zs.EditableName,d&&Zs.Invalid].join(" "),initialValue:"",overrideName:(r,t)=>{const n=t[t.length-1];let h,m=!0;try{h=Ve(n),m=!1}catch(e){}if(d!==m&&v(m),!m){f(u+1);const{id:r}=o,t=l.getRendererIDForElement(r);if(null!==t){let n=s;null!=a&&(n=Js(n)),e.send("overrideValueAtPath",{type:c,hookID:a,id:r,path:[...n,i],rendererID:t,value:h})}}},path:s})))}const rl={NewKeyValue:"UzMVso49lBzxLL1HjInq",EditableName:"PaA9USRcdHeCV9WiBbyS",EditableValue:"Pb3Nu0F3u7sIozsGv8uZ"};function tl({bridge:e,depth:t,hidden:n,hookID:a,inspectedElement:i,path:o,store:s,type:l}){const[c,u]=(0,r.useState)(0),[f,d]=(0,r.useState)("");return r.createElement("div",{"data-testname":"NewKeyValue",key:c,hidden:n,style:{paddingLeft:.75*(t-1)+"rem"}},r.createElement("div",{className:rl.NewKeyValue},r.createElement(qs,{autoFocus:c>0,className:rl.EditableName,overrideName:(e,r)=>{d(r[r.length-1])},path:[]}),": ",r.createElement(Qs,{className:rl.EditableValue,overrideValue:(r,t)=>{if(!f)return;d(""),u(c+1);const{id:n}=i,o=s.getRendererIDForElement(n);if(null!==o){let i=r;null!=a&&(i=Js(i)),e.send("overrideValueAtPath",{type:l,hookID:a,id:n,path:i,rendererID:o,value:t})}},path:[...o,f],value:""})))}const nl={ExpandCollapseToggle:"j6QZWx6K5z35fz2Growk"};function al({disabled:e,isOpen:t,setIsOpen:n}){return r.createElement(Ya,{className:nl.ExpandCollapseToggle,disabled:e,onClick:()=>n((e=>!e)),title:(t?"Collapse":"Expand")+" prop value"},r.createElement(Yt,{type:t?"expanded":"collapsed"}))}const il={Item:"ZscuKd4JSHrHyo1Oh3Wp",Name:"G9s7nMRxj2l1XUUhn0Pl",EditableName:"qUQ5ooYij_68DtCFL535",AfterName:"VJhTyYOqjANsOJsHvfPg",Value:"RSM9HPTOPas5xWSc9s1C",Link:"rm6VrdRUsB9aSPSGSD8Y",ExpandCollapseToggleSpacer:"hOboECmgQcJF9U5FRRjW",DeleteArrayItemButton:"DJ7rUAWzmhVRtbYkt9bg",HookName:"YOB3sdCfSr_qYyMcvl9Z"},ol="undefined"!=typeof performance&&"function"==typeof performance.mark&&"function"==typeof performance.clearMarks,sl="undefined"!=typeof performance&&"function"==typeof performance.now;function ll(e){ol&&performance.mark(e+"-start")}function cl(e){ol&&(performance.mark(e+"-end"),performance.measure(e,e+"-start",e+"-end"),performance.clearMarks(e+"-start"),performance.clearMarks(e+"-end"))}function ul(){return sl?performance.now():Date.now()}const fl=3e4,dl=0,vl=1,hl=2;let ml=new WeakMap;function pl(e,r,t,n){let a=ml.get(e);if(v&&(console.groupCollapsed("loadHookNames() record:"),console.log(a),console.groupEnd()),!a){const i=new Set,o={then(e){i.add(e)},displayName:`Loading hook names for ${e.displayName||"Unknown"}`};let s,l=!1,c="unknown",u=null;const f=()=>{s&&(clearTimeout(s),s=null),i.forEach((e=>e())),i.clear()},d=a={status:dl,value:o};!function(e,r,t){const n=ul();h&&ll(e),r((()=>{if(h&&cl(e),null!=t){const e=ul()-n;t(e)}}))}("loadHookNames",(e=>{t(r,n).then((function(r){if(!l){if(v&&console.log("[hookNamesCache] onSuccess() hookNames:",r),r){const e=d;e.status=vl,e.value=r}else{const e=d;e.status=hl,e.value=null}c="success",u=r,e(),f()}}),(function(r){if(l)return;v&&console.log("[hookNamesCache] onError()"),console.error(r);const t=d;t.status=hl,t.value=null,c="error",e(),f()})),s=setTimeout((function(){v&&console.log("[hookNamesCache] onTimeout()"),s=null,l=!0;const r=d;r.status=hl,r.value=null,c="timeout",e(),f()}),fl)}),(r=>{Wt({event_name:"load-hook-names",event_status:c,duration_ms:r,inspected_element_display_name:e.displayName,inspected_element_number_of_hooks:u?.size??null})})),ml.set(e,a)}const i=function(e){if(e.status===vl)return e;if(e.status===hl)return e;throw e.value}(a).value;return i}const _l=3e4,Sl=0,gl=1,bl=2,wl=new Map;function kl(e){let r=wl.get(e);if(v&&console.log(`[dynamicImportCache] loadModule("${e.name}")`),!r){const t=new Set,n={then(e){t.add(e)},displayName:`Loading module "${e.name}"`},a=()=>{s&&(clearTimeout(s),s=null),t.forEach((e=>e())),t.clear()},i=r={status:Sl,value:n};let o=!1;e().then((r=>{if(v&&console.log(`[dynamicImportCache] loadModule("${e.name}") then()`),o)return;const t=i;t.status=gl,t.value=r,a()}),(r=>{if(v&&console.log(`[dynamicImportCache] loadModule("${e.name}") catch()`),o)return;console.log(r);const t=i;t.status=bl,t.value=null,a()}));let s=setTimeout((function(){v&&console.log(`[dynamicImportCache] loadModule("${e.name}") onTimeout()`),s=null,o=!0;const r=i;r.status=bl,r.value=null,a()}),_l);wl.set(e,r)}const t=function(e){if(e.status===gl)return e;if(e.status===bl)return e;throw e.value}(r).value;return t}const El=(0,r.createContext)(null);El.displayName="FetchFileWithCachingContext";const yl=El,Dl=(0,r.createContext)(null);Dl.displayName="HookNamesModuleLoaderContext";const Al=Dl,Cl=(0,r.createContext)(null);function Ml({children:e}){const{selectedElementID:t}=(0,r.useContext)(it),n=(0,r.useContext)(yl),a=(0,r.useContext)(hr),i=(0,r.useContext)(mr),{parseHookNames:o}=(0,r.useContext)(jt),s=(0,r.useContext)(Al),l=(0,r.unstable_useCacheRefresh)(),[c,u]=(0,r.useState)({element:null,path:null}),f=null!==t?i.getElementByID(t):null,d=null!=f&&function(e){const r=ml.get(e);return null!=r&&r.status===vl}(f),[v,h]=(0,r.useState)(o||d),[m,p]=(0,r.useState)(!0),_=null!==f&&f!==c.element;_&&(u({element:f,path:null}),h(o||d));const S=(0,r.useRef)(null);let g=null,b=null;if(!_&&null!==f&&(b=Ns(f,c.path,i,a),"function"==typeof s&&(v||d))){const e=kl(s);if(null!==e){const{parseHookNames:r,purgeCachedMetadata:t}=e;S.current=t,null!==b&&null!==b.hooks&&null!==r&&(g=pl(f,b.hooks,r,n))}}const w=(0,r.useCallback)((()=>{(0,r.startTransition)((()=>{h((e=>!e)),l()}))}),[h]),k=(0,r.useCallback)((e=>{(0,r.startTransition)((()=>{u({element:c.element,path:e}),l()}))}),[u,c]);(0,r.useEffect)((()=>{const e=S.current;if("function"==typeof e){const t=()=>{(0,r.startTransition)((()=>{ml=new WeakMap,e(),l()}))};return a.addListener("fastRefreshScheduled",t),()=>a.removeListener("fastRefreshScheduled",t)}}),[a]),(0,r.useEffect)((()=>{null!==c.path&&u({element:c.element,path:null})}),[c]),(0,r.useEffect)((()=>{p(!0);const e=()=>p(!1);return a.addListener("shutdown",e),()=>a.removeListener("shutdown",e)}),[a]),(0,r.useEffect)((()=>{if(null!==f&&m){const{abort:e,pause:r,resume:t}=function({bridge:e,element:r,refresh:t,store:n}){let a="idle";function i(){return a="running",Promise.allSettled([Rs({bridge:e,element:r,refresh:t,store:n}),new Promise((e=>setTimeout(e,1e3)))]).then((([{status:e,reason:r}])=>{if("rejected"===e&&"aborted"!==a){if(r instanceof zo)return;console.error(r)}})).finally((()=>{const e="aborted"!==a&&"paused"!==a;if(a="idle",e)return i()}))}return i(),{abort:function(){a="aborted"},resume:function(){"running"!==a&&"aborted"!==a&&(a="idle",i())},pause:function(){"paused"!==a&&"aborted"!==a&&(a="paused")}}}({bridge:a,element:f,refresh:l,store:i});return a.addListener("resumeElementPolling",t),a.addListener("pauseElementPolling",r),()=>{a.removeListener("resumeElementPolling",t),a.removeListener("pauseElementPolling",r),e()}}}),[f,g,b,c,m]);const E=(0,r.useMemo)((()=>({hookNames:g,inspectedElement:b,inspectPaths:k,parseHookNames:v,toggleParseHookNames:w})),[g,b,k,v,w]);return r.createElement(Cl.Provider,{value:E},e)}const xl=["file:///","http://","https://","vscode://"],Tl={ContextMenuItem:"omYdOiQA4INhfDwXiCGT"};function Hl({children:e,onClick:t,hide:n}){const a=()=>{t(),n()};return r.createElement("div",{className:Tl.ContextMenuItem,onClick:a,onTouchEnd:a},e)}const Nl={ContextMenu:"pVySJG3jMP40bWLFGBla"};function Rl({anchorElementRef:e,position:t,items:n,hide:a,ref:i=(0,r.createRef)()}){const o=e.current;if(null==o)throw new Error("Attempted to open a context menu for an element, which is not mounted");const s=o.ownerDocument,l=s.querySelector("[data-react-devtools-portal-root]");return(0,r.useLayoutEffect)((()=>{const e=i.current;function r(r){e.contains(r.target)||a()}s.addEventListener("mousedown",r),s.addEventListener("touchstart",r),s.addEventListener("keydown",r);const n=s.defaultView;return n.addEventListener("resize",a),function(e,r,t){const n=e.ownerDocument.defaultView;t+e.offsetHeight>=n.innerHeight?t-e.offsetHeight>0?e.style.top=t-e.offsetHeight+"px":e.style.top="0px":e.style.top=`${t}px`,r+e.offsetWidth>=n.innerWidth?r-e.offsetWidth>0?e.style.left=r-e.offsetWidth+"px":e.style.left="0px":e.style.left=`${r}px`}(e,t.x,t.y),()=>{s.removeEventListener("mousedown",r),s.removeEventListener("touchstart",r),s.removeEventListener("keydown",r),n.removeEventListener("resize",a)}}),[]),null==l||0===n.length?null:(0,qn.createPortal)(r.createElement("div",{className:Nl.ContextMenu,ref:i},n.map((({onClick:e,content:t},n)=>r.createElement(Hl,{key:n,onClick:e,hide:a},t)))),l)}function Il({anchorElementRef:e,items:t,closedMenuStub:n=null,ref:a}){const{shouldShow:i,position:o,hide:s}=function(e){const[t,n]=(0,r.useState)(!1),[a,i]=r.useState(null),o=(0,r.useCallback)((()=>{n(!1),i(null)}),[]);return(0,r.useEffect)((()=>{const r=e.current;if(null!=r)return r.addEventListener("contextmenu",t),()=>{r.removeEventListener("contextmenu",t)};function t(e){e.preventDefault(),e.stopPropagation();const{pageX:t,pageY:a}=e,o=r?.ownerDocument,s=o?.querySelector("[data-react-devtools-portal-root]");if(null==s)throw new Error("DevTools tooltip root node not found: can't display the context menu");const{top:l,left:c}=s.getBoundingClientRect();n(!0),i({x:t-c,y:a-l})}}),[e]),{shouldShow:t,position:a,hide:o}}(e);return(0,r.useImperativeHandle)(a,(()=>({isShown:()=>i,hide:s})),[i,s]),i?r.createElement(Rl,{anchorElementRef:e,position:o,hide:s,items:t,ref:a}):n}const Ol={ContextMenuItemContent:"ZplKR_6Ki52aunUdBR3W"};function Fl({children:e,anchorElementRef:t,store:n,attributeSourceCanBeInspected:a,bridge:i,id:o,path:s,canBeCopiedToClipboard:l}){const{isEnabledForInspectedElement:c,viewAttributeSourceFunction:u}=(0,r.useContext)(pr),f=r.useMemo((()=>{const e=[{onClick:()=>{const e=n.getRendererIDForElement(o);null!==e&&function({bridge:e,id:r,path:t,rendererID:n}){e.send("storeAsGlobal",{count:Vo++,id:r,path:t,rendererID:n})}({bridge:i,id:o,path:s,rendererID:e})},content:r.createElement("span",{className:Ol.ContextMenuItemContent},r.createElement(ft,{type:"store-as-global-variable"}),r.createElement("label",null,"Store as global variable"))}];return l&&e.unshift({onClick:()=>{const e=n.getRendererIDForElement(o);null!==e&&function({bridge:e,id:r,path:t,rendererID:n}){e.send("copyElementPath",{id:r,path:t,rendererID:n})}({bridge:i,id:o,path:s,rendererID:e})},content:r.createElement("span",{className:Ol.ContextMenuItemContent},r.createElement(ft,{type:"copy"}),r.createElement("label",null,"Copy value to clipboard"))}),null!=u&&a&&e.push({onClick:()=>u(o,s),content:r.createElement("span",{className:Ol.ContextMenuItemContent},r.createElement(ft,{type:"code"}),r.createElement("label",null,"Go to definition"))}),e}),[n,u,a,l,i,o,s]);return c?r.createElement(r.Fragment,null,e,r.createElement(Il,{anchorElementRef:t,items:f})):e}const Pl=Object.prototype.hasOwnProperty;function Ll({alphaSort:e,bridge:t,canDeletePaths:n,canEditValues:a,canRenamePaths:i,canRenamePathsAtDepth:o,depth:s,element:l,inspectedElement:c,isDirectChildOfAnArray:u,hidden:f,hookID:d,hookName:v,name:h,path:m,pathRoot:p,store:_,value:S}){const{readOnly:g}=(0,r.useContext)(_r);n=!g&&n,a=!g&&a,i=!g&&i;const{id:b}=c,w=(0,r.useMemo)((()=>[p,...m]),[p,m]),[k,E]=(0,r.useState)(!1),y=(0,r.useRef)(null),{inspectPaths:D}=(0,r.useContext)(Cl);let A=!1,C=!1;null!==S&&"object"==typeof S&&(A=S[he.inspectable]&&0!==S[he.size],C=S[he.readonly]);const[M,x]=(0,r.useTransition)(),T=()=>{k?E(!1):(E(!0),A&&x((()=>{D([p,...m])})))},H=typeof S,N="number"===H||"string"===H||"boolean"===H||null==S,R="function"===(null!==S&&"object"==typeof S&&Pl.call(S,he.type)?S[he.type]:typeof S),I={paddingLeft:.75*(s-1)+"rem"},O=(e,r)=>{null!=d&&(e=Js(e));const n=_.getRendererIDForElement(b);null!==n&&t.send("overrideValueAtPath",{hookID:d,id:b,path:e,rendererID:n,type:p,value:r})},F=e=>{null!=d&&(e=Js(e));const r=_.getRendererIDForElement(b);null!==r&&t.send("deletePath",{hookID:d,id:b,path:e,rendererID:r,type:p})},P=(e,r)=>{if(""===r[r.length-1])n&&F(e);else{null!=d&&(e=Js(e),r=Js(r));const n=_.getRendererIDForElement(b);null!==n&&t.send("renamePath",{hookID:d,id:b,newPath:r,oldPath:e,rendererID:n,type:p})}};let L,z=i;z&&"function"==typeof o&&(z=o(s)),L=u?n?r.createElement(zl,{name:h,deletePath:F,path:m}):r.createElement("span",{className:il.Name},h,!!v&&r.createElement("span",{className:il.HookName},"(",v,")")):z?r.createElement(qs,{allowEmpty:n,className:il.EditableName,initialValue:h,overrideName:P,path:m}):r.createElement("span",{className:il.Name,"data-testname":"NonEditableName"},h,!!v&&r.createElement("span",{className:il.HookName},"(",v,")"));let B=null;if(N){let e=S;"string"===H?e=`"${S}"`:"boolean"===H?e=S?"true":"false":null===S?e="null":void 0===S?e="undefined":isNaN(S)&&(e="NaN");let n=!1;"string"===H&&xl.some((e=>S.startsWith(e)))&&(n=!0),B=r.createElement(Fl,{key:"root",anchorElementRef:y,attributeSourceCanBeInspected:R,canBeCopiedToClipboard:!R,store:_,bridge:t,id:b,path:w},r.createElement("div",{"data-testname":"KeyValue",className:il.Item,hidden:f,ref:y,style:I},r.createElement("div",{className:il.ExpandCollapseToggleSpacer}),L,r.createElement("div",{className:il.AfterName},":"),a?r.createElement(Qs,{overrideValue:O,path:m,value:S}):n?r.createElement("a",{className:il.Link,href:S,target:"_blank",rel:"noopener noreferrer"},e):r.createElement("span",{className:il.Value,"data-testname":"NonEditableValue"},e)))}else if(Pl.call(S,he.type)&&!Pl.call(S,he.unserializable))B=r.createElement(Fl,{key:"root",anchorElementRef:y,attributeSourceCanBeInspected:R,canBeCopiedToClipboard:!R,store:_,bridge:t,id:b,path:w},r.createElement("div",{"data-testname":"KeyValue",className:il.Item,hidden:f,ref:y,style:I},A?r.createElement(al,{isOpen:k,setIsOpen:T}):r.createElement("div",{className:il.ExpandCollapseToggleSpacer}),L,r.createElement("div",{className:il.AfterName},":"),r.createElement("span",{className:il.Value,onClick:A?T:void 0},rt(S)))),M&&(B=r.createElement(r.Fragment,null,B,r.createElement("div",{className:il.Item,style:I},r.createElement("div",{className:il.ExpandCollapseToggleSpacer}),r.createElement(es,null))));else if(Se(S)){const u=S.length>0||a,v=rt(S);B=S.map(((u,v)=>r.createElement(Ll,{key:v,alphaSort:e,bridge:t,canDeletePaths:n&&!C,canEditValues:a&&!C,canRenamePaths:i&&!C,canRenamePathsAtDepth:o,depth:s+1,element:l,hookID:d,inspectedElement:c,isDirectChildOfAnArray:!0,hidden:f||!k,name:v,path:m.concat(v),pathRoot:p,store:_,value:S[v]}))),a&&!C&&B.push(r.createElement(el,{key:"NewKeyValue",bridge:t,depth:s+1,hidden:f||!k,hookID:d,index:S.length,element:l,inspectedElement:c,path:m,store:_,type:p})),B.unshift(r.createElement(Fl,{key:`${s}-root`,anchorElementRef:y,attributeSourceCanBeInspected:R,canBeCopiedToClipboard:!R,store:_,bridge:t,id:b,path:w},r.createElement("div",{"data-testname":"KeyValue",className:il.Item,hidden:f,ref:y,style:I},u?r.createElement(al,{isOpen:k,setIsOpen:E}):r.createElement("div",{className:il.ExpandCollapseToggleSpacer}),L,r.createElement("div",{className:il.AfterName},":"),r.createElement("span",{className:il.Value,onClick:u?T:void 0},v))))}else{const u=Object.entries(S);e&&u.sort(Zr);const v=u.length>0||a,h=rt(S);B=u.map((([u,v])=>r.createElement(Ll,{key:u,alphaSort:e,bridge:t,canDeletePaths:n&&!C,canEditValues:a&&!C,canRenamePaths:i&&!C,canRenamePathsAtDepth:o,depth:s+1,element:l,hookID:d,inspectedElement:c,hidden:f||!k,name:u,path:m.concat(u),pathRoot:p,store:_,value:v}))),a&&!C&&B.push(r.createElement(tl,{key:"NewKeyValue",bridge:t,depth:s+1,element:l,hidden:f||!k,hookID:d,inspectedElement:c,path:m,store:_,type:p})),B.unshift(r.createElement(Fl,{key:`${s}-root`,anchorElementRef:y,attributeSourceCanBeInspected:R,canBeCopiedToClipboard:!R,store:_,bridge:t,id:b,path:w},r.createElement("div",{"data-testname":"KeyValue",className:il.Item,hidden:f,ref:y,style:I},v?r.createElement(al,{isOpen:k,setIsOpen:E}):r.createElement("div",{className:il.ExpandCollapseToggleSpacer}),L,r.createElement("div",{className:il.AfterName},":"),r.createElement("span",{className:il.Value,onClick:v?T:void 0},h))))}return B}function zl({deletePath:e,name:t,path:n}){return r.createElement(r.Fragment,null,r.createElement(Ya,{className:il.DeleteArrayItemButton,onClick:r=>{r.stopPropagation(),e(n)},title:"Delete entry"},r.createElement(Yt,{type:"delete"})),r.createElement("span",{className:il.Name},t))}const Bl={InspectedElementTree:"ltOoJtAx5EC08rarvM4p",HeaderRow:"yS0BAulI6Ht22u7u94d8",Header:"fm_upKhhfGKt4zSRnhpE",Item:"j_4cxqwZqXAlcGfn6dJP",Name:"Mrf7n7Pe5sy2ngEb7vZS",Value:"_V05tLtyASx_cJMSpgrV",None:"ysNVmdovBZAYNF423jos",Empty:"MyDmtcCLu0zArOXrI9YD",ToggleSuspenseRow:"s0nJkLbCCF_l1MSRX98S",EditableValue:"yF6fDjinAwiJTU3rYMJA"};function Vl({bridge:e,element:t,inspectedElement:n,store:a}){const{hasLegacyContext:i,context:o,type:s}=n,l=s!==I&&s!==F,c=null!=o?Object.entries(o):null;null!==c&&c.sort(Zr);const u=null===c||0===c.length,d=()=>(0,f.copy)(nt(o)),v=e=>e>1;return u?null:r.createElement("div",{className:Bl.InspectedElementTree},r.createElement("div",{className:Bl.HeaderRow},r.createElement("div",{className:Bl.Header},i?"legacy context":"context"),!u&&r.createElement(Ya,{onClick:d,title:"Copy to clipboard"},r.createElement(Yt,{type:"copy"}))),u&&r.createElement("div",{className:Bl.Empty},"None"),!u&&c.map((([i,o])=>r.createElement(Ll,{key:i,alphaSort:!0,bridge:e,canDeletePaths:!l,canEditValues:!l,canRenamePaths:!l,canRenamePathsAtDepth:v,depth:1,element:t,hidden:!1,inspectedElement:n,name:i,path:[i],pathRoot:"context",store:a,type:"context",value:o}))))}const Ul={ErrorTree:"DmmJ_c1P9vfx9ERrACGM",WarningTree:"RjKfbqv4ZTMxYD91YOsJ",HeaderRow:"ZZgXK0QkPtmRlYNt1vOs",Error:"F8ZcQwTPGdaFfSSN4It1",Warning:"OKLOnFhXJqOtrex9P8_W",Message:"rD5uo9vzQItqB5zWzoQ3",ErrorBadge:"_Ua1vMlecyqFUldp7wAc",WarningBadge:"qNkjOY6DYZsJpx3DRwkD"};function Wl({bridge:e,inspectedElement:t,store:n}){const a=(0,r.unstable_useCacheRefresh)(),[i,o]=(0,r.useTransition)(),[s,l]=(0,r.useTransition)(),{showInlineWarningsAndErrors:c}=(0,r.useContext)(jt);if(!c)return null;const{errors:u,warnings:f}=t;return r.createElement(r.Fragment,null,u.length>0&&r.createElement(jl,{badgeClassName:Ul.ErrorBadge,bridge:e,className:Ul.ErrorTree,clearMessages:()=>{const{id:r}=t,i=n.getRendererIDForElement(r);null!==i&&o((()=>{!function({bridge:e,id:r,rendererID:t}){e.send("clearErrorsForFiberID",{rendererID:t,id:r})}({bridge:e,id:r,rendererID:i}),a()}))},entries:u,isTransitionPending:i,label:"errors",messageClassName:Ul.Error}),f.length>0&&r.createElement(jl,{badgeClassName:Ul.WarningBadge,bridge:e,className:Ul.WarningTree,clearMessages:()=>{const{id:r}=t,i=n.getRendererIDForElement(r);null!==i&&l((()=>{!function({bridge:e,id:r,rendererID:t}){e.send("clearWarningsForFiberID",{rendererID:t,id:r})}({bridge:e,id:r,rendererID:i}),a()}))},entries:f,isTransitionPending:s,label:"warnings",messageClassName:Ul.Warning}))}function jl({badgeClassName:e,actions:t,className:n,clearMessages:a,entries:i,isTransitionPending:o,label:s,messageClassName:l}){return 0===i.length?null:r.createElement("div",{className:`${Bl.InspectedElementTree} ${n}`},r.createElement("div",{className:`${Bl.HeaderRow} ${Ul.HeaderRow}`},r.createElement("div",{className:Bl.Header},s),r.createElement(Ya,{disabled:o,onClick:a,title:`Clear all ${s} for this component`},r.createElement(Yt,{type:"clear"}))),i.map((([t,n],a)=>r.createElement($l,{key:`${s}-${a}`,badgeClassName:e,className:l,count:n,message:t}))))}function $l({className:e,badgeClassName:t,count:n,message:a}){return r.createElement("div",{className:e},n>1&&r.createElement("div",{className:t},n),r.createElement("div",{className:Ul.Message,title:a},a))}const Xl={HooksTreeView:"oqZagvwqy5I1eS9JxuSJ",Hook:"aW5tBwpso5J9aiKDockj",Children:"AP1pfbidtpgoAIb9ZD0R",HeaderRow:"qnPv6TP0mB6Bq4K7owJ5",Header:"EU9PS8tCnHx9BDUiWzPQ",NameValueRow:"pDUvmgJDA6w4qIhWgSGe",Name:"uUpdXk_BA8PtV6w7_bvZ",NameAnonymous:"Pa1JZ9djVog6TIyaUlQB",EditableName:"eHFNUPL3Js9_s88rp5UW",Value:"CcGuLGOGx_QLVeJUNxEr",None:"d8jC9zgp1ezvSNfA31B_",TruncationIndicator:"EuKEnHO8Pe9Otdm7Ljwv",ExpandCollapseToggleSpacer:"lNiUhoYzRTtFNM5vxbog",PrimitiveHookNumber:"XGq4Z3xUrxK0rJ5OhXLo",HookName:"dFN2pn7cHDWz0UnPq7Ot",ToggleError:"JIMU22sckhXA_8Tmwk1T"};function Gl({bridge:e,element:t,hookNames:n,inspectedElement:a,parseHookNames:i,store:o,toggleParseHookNames:s}){const{hooks:l,id:c}=a,[u,d]=(0,r.useState)(i),v=()=>{d(!i),s()},h=(0,r.useContext)(Al),m=i&&null===n;let p;p=m?"Hook parsing failed":i?"Parsing hook names ...":"Parse hook names (may be slow)";const _=()=>(0,f.copy)(function(e){const r=Object.assign([],e),t=[...r];for(;t.length>0;){const e=t.pop();delete e.id,delete e.isStateEditable,e.subHooks.length>0&&t.push(...e.subHooks)}tt(r);try{return JSON.stringify(r,null,2)}catch(e){return""}}(l));return null===l?null:r.createElement("div",{className:Xl.HooksTreeView,"data-testname":"InspectedElementHooksTree"},r.createElement("div",{className:Xl.HeaderRow},r.createElement("div",{className:Xl.Header},"hooks"),"function"==typeof h&&(!i||m)&&r.createElement(za,{className:m?Xl.ToggleError:null,isChecked:u,isDisabled:u||m,onChange:v,testName:"LoadHookNamesButton",title:p},r.createElement(Yt,{type:"parse-hook-names"})),r.createElement(Ya,{onClick:_,title:"Copy to clipboard"},r.createElement(Yt,{type:"copy"}))),r.createElement(Kl,{hookNames:n,hooks:l,id:c,element:t,inspectedElement:a,path:[]}))}function Kl({element:e,hookNames:t,hooks:n,id:a,inspectedElement:i,path:o}){return n.map(((s,l)=>r.createElement(ql,{key:l,element:e,hook:n[l],hookNames:t,id:a,inspectedElement:i,path:o.concat([l])})))}function ql({element:e,hook:t,hookNames:n,id:a,inspectedElement:i,path:o}){const{canEditHooks:s,canEditHooksAndDeletePaths:l,canEditHooksAndRenamePaths:c}=i,{id:u,isStateEditable:f,subHooks:d,value:v}=t,h=null==u||!f,m=!h&&l,p=!h&&s,_=!h&&c,S=(0,r.useContext)(hr),g=(0,r.useContext)(mr),[b,w]=(0,r.useState)(!1),k=(0,r.useCallback)((()=>w((e=>!e))),[]);if(t.hasOwnProperty(he.inspected))return r.createElement("div",{className:Xl.Hook},r.createElement("div",{className:Xl.NameValueRow},r.createElement("span",{className:Xl.TruncationIndicator},"...")));const E=e=>f&&e>1,y=d.length>0;let D=t.name;null!==u&&(D=r.createElement(r.Fragment,null,r.createElement("span",{className:Xl.PrimitiveHookNumber},u+1),D));const A=typeof v;let C,M=!1;const x=t.hookSource,T=null!=n&&null!=x?n.get(function({fileName:e,lineNumber:r,columnNumber:t}){if(null==e||null==r||null==t)throw Error("Hook source code location not found.");return`${e}:${r}:${t}`}(x)):null,H=T?r.createElement(r.Fragment,null,D,!!T&&r.createElement("span",{className:Xl.HookName},"(",T,")")):D;if("string"===A?C=`"${v}"`:"boolean"===A?C=v?"true":"false":"number"===A?C=v:null===v?C="null":void 0===v?C=null:Se(v)?(M=!0,C="Array"):"object"===A&&(M=!0,C="Object"),y){const t=Se(d)?r.createElement(Kl,{element:e,hooks:d,hookNames:n,id:a,inspectedElement:i,path:o.concat(["subHooks"])}):r.createElement(Ll,{alphaSort:!1,bridge:S,canDeletePaths:m,canEditValues:p,canRenamePaths:_,canRenamePathsAtDepth:E,depth:1,element:e,hookID:u,hookName:T,inspectedElement:i,name:"subHooks",path:o.concat(["subHooks"]),store:g,type:"hooks",value:d});return M?r.createElement("div",{className:Xl.Hook},r.createElement("div",{className:Xl.NameValueRow},r.createElement(al,{isOpen:b,setIsOpen:w}),r.createElement("span",{onClick:k,className:""!==D?Xl.Name:Xl.NameAnonymous},H||"Anonymous"),r.createElement("span",{className:Xl.Value,onClick:k},b||rt(v))),r.createElement("div",{className:Xl.Children,hidden:!b},r.createElement(Ll,{alphaSort:!1,bridge:S,canDeletePaths:m,canEditValues:p,canRenamePaths:_,canRenamePathsAtDepth:E,depth:1,element:e,hookID:u,hookName:T,inspectedElement:i,name:"DebugValue",path:o.concat(["value"]),pathRoot:"hooks",store:g,value:v}),t)):r.createElement("div",{className:Xl.Hook},r.createElement("div",{className:Xl.NameValueRow},r.createElement(al,{isOpen:b,setIsOpen:w}),r.createElement("span",{onClick:k,className:""!==D?Xl.Name:Xl.NameAnonymous},H||"Anonymous")," ",r.createElement("span",{className:Xl.Value,onClick:k},C)),r.createElement("div",{className:Xl.Children,hidden:!b},t))}return M?r.createElement("div",{className:Xl.Hook},r.createElement(Ll,{alphaSort:!1,bridge:S,canDeletePaths:m,canEditValues:p,canRenamePaths:_,canRenamePathsAtDepth:E,depth:1,element:e,hookID:u,hookName:T,inspectedElement:i,name:D,path:o.concat(["value"]),pathRoot:"hooks",store:g,value:v})):r.createElement("div",{className:Xl.Hook},r.createElement(Ll,{alphaSort:!1,bridge:S,canDeletePaths:!1,canEditValues:p,canRenamePaths:!1,depth:1,element:e,hookID:u,hookName:T,inspectedElement:i,name:D,path:o.concat(["value"]),pathRoot:"hooks",store:g,value:v}))}const Yl=r.memo(Gl);function Ql({bridge:e,element:t,inspectedElement:n,store:a}){const{readOnly:i}=r.useContext(_r),{canEditFunctionProps:o,canEditFunctionPropsDeletePaths:s,canEditFunctionPropsRenamePaths:l,props:c,type:u}=n,d=u===I||s,v=!i&&(u===I||o),h=u===I||l,m=null!=c?Object.entries(c):null;null!==m&&m.sort(Zr);const p=null===m||0===m.length;return r.createElement("div",{className:Bl.InspectedElementTree,"data-testname":"InspectedElementPropsTree"},r.createElement("div",{className:Bl.HeaderRow},r.createElement("div",{className:Bl.Header},"props"),!p&&r.createElement(Ya,{onClick:()=>(0,f.copy)(nt(c)),title:"Copy to clipboard"},r.createElement(Yt,{type:"copy"}))),!p&&m.map((([i,o])=>r.createElement(Ll,{key:i,alphaSort:!0,bridge:e,canDeletePaths:d,canEditValues:v,canRenamePaths:h,depth:1,element:t,hidden:!1,inspectedElement:n,name:i,path:[i],pathRoot:"props",store:a,value:o}))),v&&r.createElement(tl,{bridge:e,depth:0,hidden:!1,inspectedElement:n,path:[],store:a,type:"props"}))}function Jl({bridge:e,element:t,inspectedElement:n,store:a}){const{state:i,type:o}=n,s=o===L,l=null!=i?Object.entries(i):null,c=null===l||0===l.length;if(c||s)return null;null!==l&&l.sort(Zr);return r.createElement("div",{className:Bl.InspectedElementTree},r.createElement("div",{className:Bl.HeaderRow},r.createElement("div",{className:Bl.Header},"state"),!c&&r.createElement(Ya,{onClick:()=>(0,f.copy)(nt(i)),title:"Copy to clipboard"},r.createElement(Yt,{type:"copy"}))),c&&r.createElement("div",{className:Bl.Empty},"None"),!c&&l.map((([i,o])=>r.createElement(Ll,{key:i,alphaSort:!0,bridge:e,canDeletePaths:!0,canEditValues:!0,canRenamePaths:!0,depth:1,element:t,hidden:!1,inspectedElement:n,name:i,path:[i],pathRoot:"state",store:a,value:o}))))}const Zl={Source:"c1QgeBjOjJN4llhpOFbO"};function ec({bridge:e,element:t,inspectedElement:n,store:a}){if(!Vt)return null;const i=n.plugins.stylex;if(null==i)return null;const{resolvedStyles:o,sources:s}=i;return r.createElement("div",{className:Bl.InspectedElementTree},r.createElement("div",{className:Bl.HeaderRow},r.createElement("div",{className:Bl.Header},"stylex")),s.map((e=>r.createElement("div",{key:e,className:Zl.Source},e))),Object.entries(o).map((([i,o])=>r.createElement(Ll,{key:i,alphaSort:!0,bridge:e,canDeletePaths:!1,canEditValues:!1,canRenamePaths:!1,depth:1,element:t,hidden:!1,inspectedElement:n,name:i,path:[i],pathRoot:"stylex",store:a,value:o}))))}function rc({bridge:e,inspectedElement:t,store:n}){const{readOnly:a}=r.useContext(_r),{id:i,state:o,type:s}=t,l=!a&&t.canToggleSuspense;if(s!==W)return null;const c=null!==o;return r.createElement("div",{className:Bl.InspectedElementTree},r.createElement("div",{className:Bl.HeaderRow},r.createElement("div",{className:Bl.Header},"suspense")),r.createElement("div",{className:Bl.ToggleSuspenseRow},r.createElement("span",{className:Bl.Name},"Suspended"),l?r.createElement(Qs,{key:c,overrideValue:(r,t)=>{const a=n.getRendererIDForElement(i);null!==a&&e.send("overrideSuspense",{id:i,rendererID:a,forceFallback:t})},path:["suspense","Suspended"],value:c}):r.createElement("span",{className:Bl.Value},c?"true":"false")))}const tc=(0,r.createContext)(null);tc.displayName="NativeStyleContext";const nc=new WeakMap,ac=li((e=>{const r=nc.get(e);if(null!=r)return r.promise;let t=null;const n=new Promise((e=>{t=e}));return nc.set(e,{promise:n,resolveFn:t}),n}),(e=>e),{useWeakMap:!0});function ic({children:e}){const t=(0,r.useContext)(hr),n=(0,r.useContext)(mr),a=(0,r.useCallback)((e=>{const r=n.getElementByID(e);return null!==r?ac.read(r):null}),[n]),{selectedElementID:i}=(0,r.useContext)(it),[o,s]=(0,r.useState)(null);(0,r.useEffect)((()=>{const e=({id:e,layout:r,style:t})=>{const a=n.getElementByID(e);if(null!==a){const n={layout:r,style:t},o=nc.get(a);null!=o?(nc.delete(a),(0,qn.unstable_batchedUpdates)((()=>{o.resolveFn(n),s(n)}))):(ac.write(a,n),e===i&&s(n))}};return t.addListener("NativeStyleEditor_styleAndLayout",e),()=>t.removeListener("NativeStyleEditor_styleAndLayout",e)}),[t,o,i,n]),(0,r.useEffect)((()=>{if(null===i)return()=>{};const e=n.getRendererIDForElement(i);let r=null;const a=()=>{r=null,null!==e&&t.send("NativeStyleEditor_measure",{id:i,rendererID:e})};a();const o=({id:e})=>{e===i&&(null!==r&&clearTimeout(r),r=setTimeout(a,1e3))};return t.addListener("NativeStyleEditor_styleAndLayout",o),()=>{t.removeListener("NativeStyleEditor_styleAndLayout",o),null!==r&&clearTimeout(r)}}),[t,i,n]);const l=(0,r.useMemo)((()=>({getStyleAndLayout:a})),[o,a]);return r.createElement(tc.Provider,{value:l},e)}const oc={LayoutViewer:"VD1V5qP1lmb39G72wedQ",Header:"rPAerX5hZNiGDJppOpbq",DashedBox:"OjNFM01Zj7nlXPIL6pBS",SolidBox:"DVd3LfnV9a0r1xnIo2pk",LabelRow:"Adu1dCHqsyjaVcuOcKY8",Label:"Vi7zav3ohBNd6o2HBeAT",BoxRow:"Te5NNRzWp5nqqs8NI4Pu"};function sc({id:e,layout:t}){const{height:n,margin:a,padding:i,y:o,width:s,x:l}=t;return r.createElement("div",{className:oc.LayoutViewer},r.createElement("div",{className:oc.Header},"layout"),r.createElement("div",{className:oc.DashedBox},r.createElement("div",{className:oc.LabelRow},r.createElement("label",{className:oc.Label},"margin"),r.createElement("label",null,a.top||"-")),r.createElement("div",{className:oc.BoxRow},r.createElement("label",null,a.left||"-"),r.createElement("div",{className:oc.SolidBox},r.createElement("div",{className:oc.LabelRow},r.createElement("label",{className:oc.Label},"padding"),r.createElement("label",null,i.top||"-")),r.createElement("div",{className:oc.BoxRow},r.createElement("label",null,i.left||"-"),r.createElement("div",{className:oc.DashedBox},r.createElement("div",{className:oc.LabelRow},lc(s)," x ",lc(n)," (",lc(l),", ",lc(o),")")),r.createElement("label",null,i.right||"-")),r.createElement("label",null,i.bottom||"-")),r.createElement("label",null,a.right||"-")),r.createElement("label",null,a.bottom||"-")))}function lc(e){return Math.round(e)===e?e:e.toFixed(1)}const cc={StyleEditor:"AmFh8ffKc6AedWQcGfpg",HeaderRow:"K_w5p9mPdwobJpJAVuOQ",Header:"S7T4EnXABpbKz7nLGU2H",Brackets:"NG7VgJltN4BT6xCuPOWt",Row:"E_2radqSW5Xlnn_R49zP",Invalid:"uyTHMxxFwiDt8VsOJ2Em",Attribute:"kQ0bT0HwWb8fuRYqCmyz",Value:"BeqejgY4rmJOmPKTLUlN",Input:"JhnyWgS3UJleovrVteqQ"};function uc({id:e,style:t}){const n=(0,r.useContext)(hr),a=(0,r.useContext)(mr),i=(r,t,i)=>{const o=a.getRendererIDForElement(e);null!==o&&n.send("NativeStyleEditor_renameAttribute",{id:e,rendererID:o,oldName:r,newName:t,value:i})},o=(r,t)=>{const i=a.getRendererIDForElement(e);null!==i&&n.send("NativeStyleEditor_setValue",{id:e,rendererID:i,name:r,value:t})},s=(0,r.useMemo)((()=>Array.from(Object.keys(t))),[t]);return r.createElement("div",{className:cc.StyleEditor},r.createElement("div",{className:cc.HeaderRow},r.createElement("div",{className:cc.Header},r.createElement("div",{className:cc.Brackets},"style {")),r.createElement(Ya,{onClick:()=>(0,f.copy)(nt(t)),title:"Copy to clipboard"},r.createElement(Yt,{type:"copy"}))),s.length>0&&s.map((e=>r.createElement(dc,{key:e,attribute:e,changeAttribute:i,changeValue:o,validAttributes:a.nativeStyleEditorValidAttributes,value:t[e]}))),r.createElement(fc,{changeAttribute:i,changeValue:o,validAttributes:a.nativeStyleEditorValidAttributes}),r.createElement("div",{className:cc.Brackets},"}"))}function fc({changeAttribute:e,changeValue:t,validAttributes:n}){const[a,i]=(0,r.useState)(0),o=(0,r.useRef)("");return r.createElement(dc,{key:a,attribute:"",attributePlaceholder:"attribute",changeAttribute:(e,r,t)=>{o.current=r},changeValue:(e,r)=>{""!==o.current&&(""!==r&&t(o.current,r),i(a+1))},validAttributes:n,value:"",valuePlaceholder:"value"})}function dc({attribute:e,attributePlaceholder:t,changeAttribute:n,changeValue:a,validAttributes:i,value:o,valuePlaceholder:s}){const[l,c]=(0,r.useState)(e),[u,f]=(0,r.useState)(JSON.stringify(o)),[d,v]=(0,r.useState)(!0),[h,m]=(0,r.useState)(!0);return r.createElement("div",{className:cc.Row},r.createElement(vc,{className:d?cc.Attribute:cc.Invalid,onChange:e=>{const r=""===e||null===i||i.indexOf(e)>=0;(0,qn.unstable_batchedUpdates)((()=>{c(e),v(r)}))},onReset:()=>{c(e)},onSubmit:()=>{d&&h&&e!==l&&n(e,l,o)},placeholder:t,value:l}),": ",r.createElement(vc,{className:h?cc.Value:cc.Invalid,onChange:e=>{let r=!1;try{JSON.parse(Be(e)),r=!0}catch(e){}(0,qn.unstable_batchedUpdates)((()=>{f(e),m(r)}))},onReset:()=>{f(o)},onSubmit:()=>{if(d&&h){const r=JSON.parse(Be(u));o!==r&&a(e,r)}},placeholder:s,value:u}),";")}function vc({className:e,onChange:t,onReset:n,onSubmit:a,placeholder:i,value:o}){return r.createElement(Gs,{className:`${e} ${cc.Input}`,onBlur:a,onChange:e=>t(e.target.value),onKeyDown:e=>{switch(e.key){case"Enter":a();break;case"Escape":n();break;case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":e.stopPropagation()}},placeholder:i,value:o})}function hc(e){const t=(0,r.useContext)(mr);return zt((0,r.useMemo)((()=>({getCurrentValue:()=>t.supportsNativeStyleEditor,subscribe:e=>(t.addListener("supportsNativeStyleEditor",e),()=>{t.removeListener("supportsNativeStyleEditor",e)})})),[t]))?r.createElement(mc,null):null}function mc(e){const{getStyleAndLayout:t}=(0,r.useContext)(tc),{inspectedElementID:n}=(0,r.useContext)(it);if(null===n)return null;const a=t(n);if(null===a)return null;const{layout:i,style:o}=a;return r.createElement(r.Fragment,null,null!==i&&r.createElement(sc,{id:n,layout:i}),null!==o&&r.createElement(uc,{id:n,style:null!==o?o:{}}))}var pc=a(486);const _c="QGBqdeQCINFdybolYjz_";const Sc=function({height:e,width:t}){return r.createElement("div",{className:_c,style:{height:e,width:t}})},gc={Source:"YdqMguRALd3o4QHKOkCP",SourceHeaderRow:"LmOPSwtqCOPq95UvFbZg",SourceHeader:"GjPupFqKLWTIvKnSU0NK",SourceOneLiner:"Vj7XlvFgqsT7YZZSQp8Q"};function bc({source:e,symbolicatedSourcePromise:t}){const n=r.use(t);if(null==n){const{sourceURL:t,line:n,column:a}=e,i=()=>(0,f.copy)(`${t}:${n}:${a}`);return r.createElement(Ya,{onClick:i,title:"Copy to clipboard"},r.createElement(Yt,{type:"copy"}))}const{sourceURL:a,line:i,column:o}=n;return r.createElement(Ya,{onClick:()=>(0,f.copy)(`${a}:${i}:${o}`),title:"Copy to clipboard"},r.createElement(Yt,{type:"copy"}))}function wc({source:e,symbolicatedSourcePromise:t}){const n=r.use(t);if(null==n){const{sourceURL:t,line:n}=e;return r.createElement("div",{className:gc.SourceOneLiner},kc(t,n))}const{sourceURL:a,line:i}=n;return r.createElement("div",{className:gc.SourceOneLiner},kc(a,i))}function kc(e,r){const t=e.includes("//&")?(0,pc.toNormalUrl)(e):e,n=/^(.*)[\\\/]/;let a=t.replace(n,"");if(/^index\./.test(a)){const e=t.match(n);if(e){const r=e[1];if(r){a=r.replace(n,"")+"/"+a}}}return`${a}:${r}`}const Ec=function({source:e,symbolicatedSourcePromise:t}){return r.createElement("div",{className:gc.Source,"data-testname":"InspectedElementView-Source"},r.createElement("div",{className:gc.SourceHeaderRow},r.createElement("div",{className:gc.SourceHeader},"source"),r.createElement(r.Suspense,{fallback:r.createElement(Sc,{height:16,width:16})},r.createElement(bc,{source:e,symbolicatedSourcePromise:t}))),r.createElement(r.Suspense,{fallback:r.createElement("div",{className:gc.SourceOneLiner},r.createElement(Sc,{height:16,width:"40%"}))},r.createElement(wc,{source:e,symbolicatedSourcePromise:t})))},yc={Owners:"degzlzEXnOfIq7O6aEtD",OwnersHeader:"QyzwGL5CVGmpYxajigQg",Owner:"G1iPSTGC6eNcmT5RjA6C",InspectedElement:"YOXaHk9xYzASY3DKURUA",InspectedElementBadgesContainer:"s7UqGwXK0u5IO8pB45HE",NotInStore:"G2BCKBICgnFcziDETl7t",OwnerButton:"YuAWbMYGVSUD5Xw13fGJ",OwnerContent:"YXMHJBveMFexrfyxqi6O",OwnersMetaField:"P14TYiR8U2gzEkHw_ISN"};function Dc({element:e,hookNames:t,inspectedElement:n,parseHookNames:a,toggleParseHookNames:i,symbolicatedSourcePromise:o}){const{owners:s,rendererPackageName:l,rendererVersion:c,rootType:u,source:f}=n,d=(0,r.useContext)(hr),v=(0,r.useContext)(mr),h=null!==l&&null!==c?`${l}@${c}`:null,m=null!==s&&s.length>0,p=m||null!==h||null!==u;return r.createElement(r.Fragment,null,r.createElement("div",{className:yc.InspectedElement},r.createElement("div",{className:yc.InspectedElementBadgesContainer},r.createElement(js,{hocDisplayNames:e.hocDisplayNames,compiledWithForget:e.compiledWithForget})),r.createElement(Ql,{bridge:d,element:e,inspectedElement:n,store:v}),r.createElement(rc,{bridge:d,inspectedElement:n,store:v}),r.createElement(Jl,{bridge:d,element:e,inspectedElement:n,store:v}),r.createElement(Yl,{bridge:d,element:e,hookNames:t,inspectedElement:n,parseHookNames:a,store:v,toggleParseHookNames:i}),r.createElement(Vl,{bridge:d,element:e,inspectedElement:n,store:v}),Vt&&r.createElement(ec,{bridge:d,element:e,inspectedElement:n,store:v}),r.createElement(Wl,{bridge:d,element:e,inspectedElement:n,store:v}),r.createElement(hc,null),p&&r.createElement("div",{className:yc.Owners,"data-testname":"InspectedElementView-Owners"},r.createElement("div",{className:yc.OwnersHeader},"rendered by"),m&&s?.map((e=>r.createElement(Ac,{key:e.id,displayName:e.displayName||"Anonymous",hocDisplayNames:e.hocDisplayNames,compiledWithForget:e.compiledWithForget,id:e.id,isInStore:v.containsElement(e.id),type:e.type}))),null!==u&&r.createElement("div",{className:yc.OwnersMetaField},u),null!==h&&r.createElement("div",{className:yc.OwnersMetaField},h)),null!=f&&r.createElement(Ec,{source:f,symbolicatedSourcePromise:o})))}function Ac({displayName:e,hocDisplayNames:t,compiledWithForget:n,id:a,isInStore:i}){const o=(0,r.useContext)(ot),{highlightNativeElement:s,clearHighlightNativeElement:l}=Bt(),c=(0,r.useCallback)((()=>{Wt({event_name:"select-element",metadata:{source:"owner-view"}}),o({type:"SELECT_ELEMENT_BY_ID",payload:a})}),[o,a]);return r.createElement(Ya,{key:a,className:yc.OwnerButton,disabled:!i,onClick:c,onMouseEnter:()=>s(a),onMouseLeave:l},r.createElement("span",{className:yc.OwnerContent},r.createElement("span",{className:`${yc.Owner} ${i?"":yc.NotInStore}`,title:e},e),r.createElement(Ja,{hocDisplayNames:t,compiledWithForget:n})))}for(var Cc={},Mc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",xc=0;xc{const t=e.offset,n=t.line,a=t.column;if(nn){if(!(o-s>0)){s=o;break}o=s}else{if(!(s-i>0)){s=i;break}i=s}}else if(e>r){if(!(o-s>0)){s=o;break}o=s}else{if(!(s-i>0)){s=i;break}i=s}}if(null==a)throw Error(`Could not find matching section for line:${r} and column:${e}`);return null===a.sourceMapConsumer&&(a.sourceMapConsumer=new Hc(a.map)),a.sourceMapConsumer.originalPositionFor({columnNumber:e,lineNumber:r})}return{originalPositionFor:n}}(e):function(e){const r=function(e,r,t){const n=ul();h&&ll(e);const a=r();h&&cl(e),null!=t&&t(ul()-n);return a}("Decoding source map mappings with sourcemap-codec",(()=>function(e){for(var r=[],t=[],n=[0,0,0,0,0],a=0,i=0,o=0,s=0;i>>=1,f&&(s=0===s?-2147483648:-s),n[a]+=s,a++,s=o=0}}}return Tc(t,n,a),r.push(t),r}(e.mappings)));function t({columnNumber:t,lineNumber:n}){const a=t-1,i=r[n-1];let o=null,s=0,l=i.length-1,c=-1;for(;s<=l;){c=Math.floor((l+s)/2),o=i[c];const e=o[0];if(e===a)break;if(e>a){if(!(l-c>0)){c=l;break}l=c}else{if(!(c-s>0)){c=s;break}s=c}}for(;c>0;){if(i[c-1][0]!==a)break;c--}if(null==o)throw Error(`Could not find runtime location for line:${n} and column:${t}`);const u=o[1],f=null!=e.sourcesContent?e.sourcesContent[u]:null,d=e.sources[u]??null,v=o[2]+1,h=o[3];if(null===f||null===d)throw Error(`Could not find original source for line:${n} and column:${t}`);return{column:h,line:v,sourceContent:f,sourceURL:d}}return{originalPositionFor:t}}(e)}const Nc=new Map;async function Rc(e,r,t,n){const a=`${r}:${t}:${n}`,i=Nc.get(a);if(null!=i)return i;const o=async function(e,r,t,n){const a=await e(r).catch((()=>null));if(null==a)return null;const i=a.split(/[\r\n]+/);for(let r=i.length-1;r>=0;--r){const a=i[r];if(a){if(!a.startsWith("//#"))break;if(a.includes(Ic)){const r=a.indexOf(Ic),i=a.slice(r+Ic.length,a.length),o=await e(i).catch((()=>null));if(null!=o)try{const e=Hc(JSON.parse(o)),{sourceURL:r,line:a,column:s}=e.originalPositionFor({lineNumber:t,columnNumber:n});try{new URL(r);return{sourceURL:Fe(r),line:a,column:s}}catch(e){if(r.startsWith("/"))return{sourceURL:r,line:a,column:s};const[t]=i.split(/[?#&]/);return{sourceURL:t+(t.endsWith("/")?"":"/")+r,line:a,column:s}}}catch(e){return null}return null}}}return null}(e,r,t,n);return Nc.set(a,o),o}const Ic="sourceMappingURL=";const Oc=function({editorURL:e,source:t,symbolicatedSourcePromise:n}){const a=r.use(n),{url:i,shouldDisableButton:o}=function(e,r){try{const t=new URL(e);let n=r.sourceURL;if(n.includes("://")){if(!__IS_INTERNAL_VERSION__)return{url:null,shouldDisableButton:!0};{const e=".js/",r=n.lastIndexOf(e);if(-1===r)return{url:null,shouldDisableButton:!0};n=n.slice(r+e.length,n.length)}}const a=String(r.line);return t.href=t.href.replace("{path}",n).replace("{line}",a).replace("%7Bpath%7D",n).replace("%7Bline%7D",a),{url:t,shouldDisableButton:!1}}catch(e){return{url:null,shouldDisableButton:!0}}}(e,a||t);return r.createElement(Ya,{disabled:o,onClick:()=>window.open(i),title:"Open in editor"},r.createElement(Yt,{type:"editor"}))},Fc=(0,r.createContext)(null);Fc.displayName="ViewElementSourceContext";const Pc=Fc,{useCallback:Lc,useContext:zc}=t;function Bc({canViewSource:e,source:t,symbolicatedSourcePromise:n,canViewElementSourceFunction:a,viewElementSourceFunction:i}){const o=null==n?null:r.use(n),s=!!e&&null!=i&&null!=t&&(null==a||a(t,o)),l=Lc((()=>{null!=i&&null!=t&&i(t,o)}),[t,o]);return r.createElement(Ya,{disabled:!s,onClick:l,title:"View source for this element"},r.createElement(Yt,{type:"view-source"}))}const Vc=function({canViewSource:e,source:t,symbolicatedSourcePromise:n}){const{canViewElementSourceFunction:a,viewElementSourceFunction:i}=zc(Pc);return r.createElement(r.Suspense,{fallback:r.createElement(Sc,{height:16,width:24})},r.createElement(Bc,{canViewSource:e,source:t,symbolicatedSourcePromise:n,canViewElementSourceFunction:a,viewElementSourceFunction:i}))},Uc={InspectedElement:"W87cPUOEq9_b8BJ8wzi_",TitleRow:"bRyo53K1qkVwP17eMtpB",Key:"aBtzuUuPzsX7SMY12BlU",KeyArrow:"nj4SAMmTUsR18n1AhsRR",SelectedComponentName:"fzFQP5c1Nu7WdBiHvVcv",Component:"sZBTjxc2Uuj6j1x1PXgE",Loading:"ioBCP8YZ8QjgPhP8HHS0",StrictModeNonCompliant:"qItvNDYiaAL24IKVfRqL"};function Wc(e){const{inspectedElementID:t}=(0,r.useContext)(it),n=(0,r.useContext)(ot),a=(0,r.useContext)(hr),i=(0,r.useContext)(mr),{hideToggleErrorAction:o,hideToggleSuspenseAction:s,hideLogAction:l,hideViewSourceAction:c}=(0,r.useContext)(_r),{dispatch:u}=(0,r.useContext)(Ps),{hookNames:f,inspectedElement:d,parseHookNames:v,toggleParseHookNames:h}=(0,r.useContext)(Cl),m=(0,r.useContext)(yl),p=r.useMemo((()=>{if(null==d)return null;if(null==m)return Promise.resolve(null);const{source:e}=d;if(null==e)return Promise.resolve(null);const{sourceURL:r,line:t,column:n}=e;return Rc(m,r,t,n)}),[d]),_=null!==t?i.getElementByID(t):null,S=(0,r.useCallback)((()=>{if(null!==_&&null!==t){const e=i.getRendererIDForElement(t);null!==e&&a.send("highlightNativeElement",{displayName:_.displayName,hideAfterTimeout:!0,id:t,openNativeElementsPanel:!0,rendererID:e,scrollIntoView:!0})}}),[a,_,t,i]),g=(0,r.useCallback)((()=>{if(null!==t){const e=i.getRendererIDForElement(t);null!==e&&a.send("logElementToConsole",{id:t,rendererID:e})}}),[a,t,i]),b=null!=d&&d.isErrored,w=null!=d?d.targetErrorBoundaryID:null,k=null!==_&&_.type===W&&null!=d&&null!=d.state,E=!o&&null!=d&&d.canToggleError,D=!s&&null!=d&&d.canToggleSuspense,A=(0,r.useSyncExternalStore)((function(e){return window.addEventListener(y,e),function(){window.removeEventListener(y,e)}}),(function(){return function(){try{const e=de(y);if(null!=e)return JSON.parse(e)}catch(e){}return""}()})),C=(0,r.useCallback)((()=>{if(null==d||null==w)return;const e=i.getRendererIDForElement(w);null!==e&&(w!==d.id&&n({type:"SELECT_ELEMENT_BY_ID",payload:w}),a.send("overrideError",{id:w,rendererID:e,forceError:!b}))}),[a,n,b,w]),M=(0,r.useCallback)((()=>{let e=null,t=_;for(;null!==t;){if(t.type===W){e=t;break}t=t.parentID>0?i.getElementByID(t.parentID):null}if(null===e)u({id:"InspectedElement",type:"SHOW",content:r.createElement(Us,null)});else{const r=e.id;e!==_&&n({type:"SELECT_ELEMENT_BY_ID",payload:r});const t=i.getRendererIDForElement(r);null!==t&&a.send("overrideSuspense",{id:r,rendererID:t,forceFallback:!k})}}),[a,n,_,k,u,i]);if(null===_)return r.createElement("div",{className:Uc.InspectedElement},r.createElement("div",{className:Uc.TitleRow}));let x=null;return _.isStrictModeNonCompliant&&(x=r.createElement("a",{className:Uc.StrictModeNonCompliant,href:"https://react.dev/reference/react/StrictMode",rel:"noopener noreferrer",target:"_blank",title:"This component is not running in StrictMode. Click to learn more."},r.createElement(ft,{type:"strict-mode-non-compliant"}))),r.createElement("div",{className:Uc.InspectedElement},r.createElement("div",{className:Uc.TitleRow,"data-testname":"InspectedElement-Title"},x,_.key&&r.createElement(r.Fragment,null,r.createElement("div",{className:Uc.Key,title:`key "${_.key}"`},_.key),r.createElement("div",{className:Uc.KeyArrow})),r.createElement("div",{className:Uc.SelectedComponentName},r.createElement("div",{className:_.isStrictModeNonCompliant?Uc.StrictModeNonCompliant:Uc.Component,title:_.displayName},_.displayName)),!!A&&null!=d&&null!=d.source&&null!=p&&r.createElement(r.Suspense,{fallback:r.createElement(Sc,{height:16,width:24})},r.createElement(Oc,{editorURL:A,source:d.source,symbolicatedSourcePromise:p})),E&&r.createElement(za,{isChecked:b,onChange:C,title:b?"Clear the forced error":"Force the selected component into an errored state"},r.createElement(Yt,{type:"error"})),D&&r.createElement(za,{isChecked:k,onChange:M,title:k?"Unsuspend the selected component":"Suspend the selected component"},r.createElement(Yt,{type:"suspend"})),i.supportsNativeInspection&&r.createElement(Ya,{onClick:S,title:"Inspect the matching DOM element"},r.createElement(Yt,{type:"view-dom"})),!l&&r.createElement(Ya,{onClick:g,title:"Log this component data to the console"},r.createElement(Yt,{type:"log-data"})),!c&&r.createElement(Vc,{canViewSource:d?.canViewSource,source:d?.source,symbolicatedSourcePromise:p})),null===d&&r.createElement("div",{className:Uc.Loading},"Loading..."),null!==d&&null!=p&&r.createElement(Dc,{key:t,element:_,hookNames:f,inspectedElement:d,parseHookNames:v,toggleParseHookNames:h,symbolicatedSourcePromise:p}))}const jc={Tab:"azF2eH48iOjBz6HDO9Ow",TabCurrent:"LPaApyuVrcOGD5qUoWQn",TabDisabled:"dLYZXm2g99I3865s06gd",TabSizeNavigation:"z_9NPSY02xL5C_rKNbEi",TabSizeProfiler:"bj5wjZcEkvD4cnSPS9kl",TabSizeSettings:"E9aLzYNgVRQ5FElw5qvk",Input:"yX6Fn0DUz_VpvVLkzsUL",IconSizeNavigation:"nNtZVyEhqWkkeV_FcVUV",IconSizeProfiler:"llzBtlsevYNSK2AemPVE",IconSizeSettings:"z6c_Nl9j9w9_Ysw2pjBz",IconDisabled:"WvobeGrHZIFWyhQtt4q4",TabLabelNavigation:"qyile5WCa81wrByw4pnO",TabLabelProfiler:"ZXKpfJKiQo9w3SECMfLW",TabLabelSettings:"hQi4CAO4RGdWxa7jdQuX",VRule:"IXUXIDmjzs4W4EylMtEP"};function $c({currentTab:e,disabled:t=!1,id:n,selectTab:a,tabs:i,type:o}){if(!i.some((r=>null!==r&&r.id===e))){const e=i.find((e=>null!==e));a(e.id)}const s=(0,r.useCallback)((({currentTarget:e})=>a(e.value)),[a]),l=(0,r.useCallback)((e=>{switch(e.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":e.stopPropagation()}}),[]);let c,u,f;switch(o){case"navigation":c=jc.IconSizeNavigation,u=jc.TabLabelNavigation,f=jc.TabSizeNavigation;break;case"profiler":c=jc.IconSizeProfiler,u=jc.TabLabelProfiler,f=jc.TabSizeProfiler;break;case"settings":c=jc.IconSizeSettings,u=jc.TabLabelSettings,f=jc.TabSizeSettings;break;default:throw Error(`Unsupported type "${o}"`)}return r.createElement(r.Fragment,null,i.map((i=>{if(null===i)return r.createElement("div",{key:"VRule",className:jc.VRule});const{icon:o,id:d,label:v,title:h}=i;let m=r.createElement("label",{className:[f,t?jc.TabDisabled:jc.Tab,t||e!==d?"":jc.TabCurrent].join(" "),"data-testname":`TabBarButton-${d}`,key:d,onKeyDown:l,onMouseDown:()=>a(d)},r.createElement("input",{type:"radio",className:jc.Input,checked:e===d,disabled:t,name:n,value:d,onChange:s}),r.createElement(ft,{className:`${t?jc.IconDisabled:""} ${c}`,type:o}),r.createElement("span",{className:u},v));return h&&(m=r.createElement(La,{key:d,label:h},m)),m})))}const Xc={Settings:"or1HUOer1f963ovFvr5c",Setting:"tUXIEFu9F_lS1kviOJqI",OpenInURLSetting:"nJPtP4BdOmVGjNgNGrft",OptionGroup:"LF27cZYKRmoLaJO_HhHw",RadioLabel:"gL712cWer1wW2mjuBxkL",Spacer:"zt7jGYrjsD3qQHNXrN4u",CheckboxOption:"WOW_X2PmrOQlYsEdM3Xs",HRule:"QdRJQ2ye3WuBBFQd5Erc",Header:"RwHFQRMh3YU9unsmEpEV",ButtonIcon:"EIoKgKJ5y33CHiAHF9vg",NoFiltersCell:"uMyt1rJ3xueXHSqObKvX",Table:"IUAA3lAy01Gi5SZLApio",TableRow:"GXiKg5qR1JJ41p147V6w",TableCell:"t42VqdEeUQxAZuw2K6dw",Input:"aX39zH4zrFhnSC6I9m_Z",InvalidRegExp:"r8Qvw_BhB46V8Zk5t8id",ToggleOffInvalid:"ncG7Mh41PuWfpuGMeP07",ToggleOnInvalid:"LnhMDoxboSJz70znSVVs",ToggleOff:"vTLPI_vaoDzDutbGmwDJ",ToggleOn:"zyhbm27fRcSESereFAhG",ToggleInsideOff:"R7l0YlZcT6dEVIL_Q3YO",ToggleInsideOn:"HXWZgik4UCPBgIWd3K0Y",ReleaseNotes:"z5hEC7NmGsfJUbrLoAiK",ReleaseNotesLink:"So46zBz2hS7SSvk1M1Db",Warning:"dj8ag9rXvtGe07NoRnoz",VersionsList:"BEsTZEoadFfmBZ7GXvj8"},Gc="vscode://file/{path}:{line}";function Kc(e){const t=(0,r.useContext)(mr),{parseHookNames:n,setParseHookNames:a}=(0,r.useContext)(jt),i=zt((0,r.useMemo)((()=>({getCurrentValue:()=>t.collapseNodesByDefault,subscribe:e=>(t.addListener("collapseNodesByDefault",e),()=>t.removeListener("collapseNodesByDefault",e))})),[t])),o=(0,r.useCallback)((({currentTarget:e})=>{t.collapseNodesByDefault=!e.checked}),[t]),s=(0,r.useCallback)((({currentTarget:e})=>{a(e.checked)}),[a]),[l,c]=Pt(D,"custom"),[u,f]=Pt(y,""),[d,v]=(0,r.useState)((()=>[...t.componentFilters])),h=(0,r.useCallback)((()=>{v((e=>[...e,{type:j,value:L,isEnabled:!0}]))}),[]),m=(0,r.useCallback)(((e,r)=>{v((t=>{const n=[...t],a=t.indexOf(e);return a>=0&&(r===j?n[a]={type:j,isEnabled:e.isEnabled,value:L}:r===$?n[a]={type:$,isEnabled:e.isEnabled,isValid:!0,value:""}:r===X?n[a]={type:X,isEnabled:e.isEnabled,isValid:!0,value:""}:r===G&&(n[a]={type:G,isEnabled:e.isEnabled,isValid:!0})),n}))}),[]),p=(0,r.useCallback)(((e,r)=>{if(e.type!==j)throw Error("Invalid value for element type filter");v((t=>{const n=[...t];if(e.type===j){const a=t.indexOf(e);a>=0&&(n[a]={...e,value:r})}return n}))}),[]),_=(0,r.useCallback)(((e,r)=>{if(e.type===j)throw Error("Invalid value for element type filter");v((t=>{const n=[...t];if(e.type===$||e.type===X){const a=t.indexOf(e);if(a>=0){let t=!0;try{new RegExp(r)}catch(e){t=!1}n[a]={...e,isValid:t,value:r}}}return n}))}),[]),S=(0,r.useCallback)((e=>{v((r=>{const t=[...r];return t.splice(e,1),t}))}),[]),g=(0,r.useCallback)(((e,r)=>{v((t=>{const n=[...t],a=t.indexOf(e);return a>=0&&(e.type===j||e.type===$||e.type===X||e.type===G)&&(n[a]={...n[a],isEnabled:r}),n}))}),[]),b=(0,r.useRef)(d);return(0,r.useEffect)((()=>(b.current=d,()=>{})),[d]),(0,r.useEffect)((()=>()=>{t.componentFilters=[...b.current]}),[t]),r.createElement("div",{className:Xc.Settings},r.createElement("label",{className:Xc.Setting},r.createElement("input",{type:"checkbox",checked:!i,onChange:o})," ","Expand component tree by default"),r.createElement("label",{className:Xc.Setting},r.createElement("input",{type:"checkbox",checked:n,onChange:s})," ","Always parse hook names from source"," ",r.createElement("span",{className:Xc.Warning},"(may be slow)")),r.createElement("label",{className:Xc.OpenInURLSetting},"Open in Editor URL:"," ",r.createElement("select",{className:Xc.Select,value:l,onChange:({currentTarget:e})=>{const r=e.value;c(r),"vscode"===r?f(Gc):"custom"===r&&f("")}},r.createElement("option",{value:"vscode"},"VS Code"),r.createElement("option",{value:"custom"},"Custom")),"custom"===l&&r.createElement("input",{className:Xc.Input,type:"text",placeholder:"",value:u,onChange:e=>{f(e.target.value)}})),r.createElement("div",{className:Xc.Header},"Hide components where..."),r.createElement("table",{className:Xc.Table},r.createElement("tbody",null,0===d.length&&r.createElement("tr",{className:Xc.TableRow},r.createElement("td",{className:Xc.NoFiltersCell},"No filters have been added.")),d.map(((e,t)=>r.createElement("tr",{className:Xc.TableRow,key:t},r.createElement("td",{className:Xc.TableCell},r.createElement(za,{className:!1!==e.isValid?"":Xc.InvalidRegExp,isChecked:e.isEnabled,onChange:r=>g(e,r),title:!1===e.isValid?"Filter invalid":e.isEnabled?"Filter enabled":"Filter disabled"},r.createElement(qc,{isEnabled:e.isEnabled,isValid:null==e.isValid||!0===e.isValid}))),r.createElement("td",{className:Xc.TableCell},r.createElement("select",{className:Xc.Select,value:e.type,onChange:({currentTarget:r})=>m(e,parseInt(r.value,10))},r.createElement("option",{value:$},"name"),r.createElement("option",{value:j},"type"),r.createElement("option",{value:G},"hoc"))),r.createElement("td",{className:Xc.TableCell},e.type===j&&"equals",(e.type===X||e.type===$)&&"matches"),r.createElement("td",{className:Xc.TableCell},e.type===j&&r.createElement("select",{className:Xc.Select,value:e.value,onChange:({currentTarget:r})=>p(e,parseInt(r.value,10))},r.createElement("option",{value:I},"class"),r.createElement("option",{value:O},"context"),r.createElement("option",{value:F},"function"),r.createElement("option",{value:P},"forward ref"),r.createElement("option",{value:L},"dom nodes (e.g.
)"),r.createElement("option",{value:z},"memo"),r.createElement("option",{value:B},"other"),r.createElement("option",{value:V},"profiler"),r.createElement("option",{value:W},"suspense")),(e.type===X||e.type===$)&&r.createElement("input",{className:Xc.Input,type:"text",placeholder:"Regular expression",onChange:({currentTarget:r})=>_(e,r.value),value:e.value})),r.createElement("td",{className:Xc.TableCell},r.createElement(Ya,{onClick:()=>S(t),title:"Delete filter"},r.createElement(Yt,{type:"delete"})))))))),r.createElement(Ya,{onClick:h,title:"Add filter"},r.createElement(Yt,{className:Xc.ButtonIcon,type:"add"}),"Add filter"),d.length>0&&r.createElement(Ya,{onClick:()=>{v([])},title:"Delete all filters"},r.createElement(Yt,{className:Xc.ButtonIcon,type:"delete"}),"Delete all filters"))}function qc({isEnabled:e,isValid:t}){let n;return n=t?e?Xc.ToggleOn:Xc.ToggleOff:e?Xc.ToggleOnInvalid:Xc.ToggleOffInvalid,r.createElement("div",{className:n},r.createElement("div",{className:e?Xc.ToggleInsideOn:Xc.ToggleInsideOff}))}function Yc(e){const{appendComponentStack:t,breakOnConsoleErrors:n,hideConsoleLogsInStrictMode:a,setAppendComponentStack:i,setBreakOnConsoleErrors:o,setShowInlineWarningsAndErrors:s,showInlineWarningsAndErrors:l,setHideConsoleLogsInStrictMode:c}=(0,r.useContext)(jt);return r.createElement("div",{className:Xc.Settings},r.createElement("div",{className:Xc.Setting},r.createElement("label",null,r.createElement("input",{type:"checkbox",checked:t,onChange:({currentTarget:e})=>i(e.checked)})," ","Append component stacks to console warnings and errors.")),r.createElement("div",{className:Xc.Setting},r.createElement("label",null,r.createElement("input",{type:"checkbox",checked:l,onChange:({currentTarget:e})=>s(e.checked)})," ","Show inline warnings and errors.")),r.createElement("div",{className:Xc.Setting},r.createElement("label",null,r.createElement("input",{type:"checkbox",checked:n,onChange:({currentTarget:e})=>o(e.checked)})," ","Break on warnings")),r.createElement("div",{className:Xc.Setting},r.createElement("label",null,r.createElement("input",{type:"checkbox",checked:a,onChange:({currentTarget:e})=>c(e.checked)})," ","Hide logs during second render in Strict Mode")))}function Qc(e){const{displayDensity:t,setDisplayDensity:n,setTheme:a,setTraceUpdatesEnabled:i,theme:o,traceUpdatesEnabled:s}=(0,r.useContext)(jt),{backendVersion:l,supportsTraceUpdates:c}=(0,r.useContext)(mr),u="5.2.0-57fbe3ba37",f=l&&l!==u;return r.createElement("div",{className:Xc.Settings},r.createElement("div",{className:Xc.Setting},r.createElement("div",{className:Xc.RadioLabel},"Theme"),r.createElement("select",{className:Xc.Select,value:o,onChange:({currentTarget:e})=>a(e.value)},r.createElement("option",{value:"auto"},"Auto"),r.createElement("option",{value:"light"},"Light"),r.createElement("option",{value:"dark"},"Dark"))),r.createElement("div",{className:Xc.Setting},r.createElement("div",{className:Xc.RadioLabel},"Display density"),r.createElement("select",{className:Xc.Select,value:t,onChange:({currentTarget:e})=>n(e.value)},r.createElement("option",{value:"compact"},"Compact"),r.createElement("option",{value:"comfortable"},"Comfortable"))),c&&r.createElement("div",{className:Xc.Setting},r.createElement("label",null,r.createElement("input",{type:"checkbox",checked:s,onChange:({currentTarget:e})=>i(e.checked)})," ","Highlight updates when components render.")),r.createElement("div",{className:Xc.ReleaseNotes},f&&r.createElement("div",null,r.createElement("ul",{className:Xc.VersionsList},r.createElement("li",null,r.createElement(Jc,{label:"DevTools backend version:",version:l})),r.createElement("li",null,r.createElement(Jc,{label:"DevTools frontend version:",version:u})))),!f&&r.createElement(Jc,{label:"DevTools version:",version:u})))}function Jc({label:e,version:t}){const n=(0,r.useMemo)((()=>function(e){if(!e)return null;const r=e.replace(/^(\d+)\.(\d+)\.(\d+).*/,"$1$2$3");return`${Mt}#${r}`}(t)),[t]);return null==t?null:r.createElement(r.Fragment,null,e," ",r.createElement("a",{className:Xc.ReleaseNotesLink,target:"_blank",rel:"noopener noreferrer",href:n},t))}const Zc=(0,r.createContext)(null);function eu({children:e}){const t=(0,r.useContext)(mr),{selectedElementID:n}=(0,r.useContext)(it),a=(0,r.useContext)(ot),{profilerStore:i}=t,o=(0,r.useMemo)((()=>({getCurrentValue:()=>({didRecordCommits:i.didRecordCommits,isProcessingData:i.isProcessingData,isProfiling:i.isProfiling,profilingData:i.profilingData,supportsProfiling:t.rootSupportsBasicProfiling}),subscribe:e=>(i.addListener("profilingData",e),i.addListener("isProcessingData",e),i.addListener("isProfiling",e),t.addListener("rootSupportsBasicProfiling",e),()=>{i.removeListener("profilingData",e),i.removeListener("isProcessingData",e),i.removeListener("isProfiling",e),t.removeListener("rootSupportsBasicProfiling",e)})})),[i,t]),{didRecordCommits:s,isProcessingData:l,isProfiling:c,profilingData:u,supportsProfiling:f}=zt(o),[d,v]=(0,r.useState)(null),[h,m]=(0,r.useState)(null),[p,_]=(0,r.useState)(null),[S,g]=(0,r.useState)(null),b=(0,r.useCallback)(((e,r)=>{_(e),g(r),null!==e&&null!==u&&!1===u.imported&&t.containsElement(e)&&a({type:"SELECT_ELEMENT_BY_ID",payload:e})}),[a,_,g,t,u]),w=(0,r.useCallback)((e=>{b(null,null),m(e)}),[m,b]);d!==u&&(0,qn.unstable_batchedUpdates)((()=>{v(u);const e=null!==u?u.dataForRoots:null;if(null!=e){const r=e.keys().next().value||null;if(null===h||!e.has(h)){let a=null;null!==n&&(a=t.getRootIDForElement(n)),null!==a&&e.has(a)?w(a):w(r)}}}));const[k,E]=Pt("React::DevTools::isCommitFilterEnabled",!1),[y,D]=Pt("minCommitDuration",0),[A,C]=(0,r.useState)(null),[M,x]=Pt("React::DevTools::Profiler::defaultTab","flame-chart",(e=>{Wt({event_name:"profiler-tab-changed",metadata:{tabId:e}})})),T=(0,r.useCallback)((()=>{Wt({event_name:"profiling-start",metadata:{current_tab:M}}),t.profilerStore.startProfiling()}),[t,M]),H=(0,r.useCallback)((()=>t.profilerStore.stopProfiling()),[t]);c&&(0,qn.unstable_batchedUpdates)((()=>{null!==A&&C(null),null!==p&&(_(null),g(null))}));const N=(0,r.useMemo)((()=>({selectedTabID:M,selectTab:x,didRecordCommits:s,isProcessingData:l,isProfiling:c,profilingData:u,startProfiling:T,stopProfiling:H,supportsProfiling:f,rootID:h,setRootID:w,isCommitFilterEnabled:k,setIsCommitFilterEnabled:E,minCommitDuration:y,setMinCommitDuration:D,selectedCommitIndex:A,selectCommitIndex:C,selectedFiberID:p,selectedFiberName:S,selectFiber:b})),[M,x,s,l,c,u,T,H,f,h,m,w,k,E,y,D,A,C,p,S,b]);return r.createElement(Zc.Provider,{value:N},e)}function ru(e){const{isCommitFilterEnabled:t,minCommitDuration:n,setIsCommitFilterEnabled:a,setMinCommitDuration:i}=(0,r.useContext)(Zc),o=(0,r.useContext)(mr),s=zt((0,r.useMemo)((()=>({getCurrentValue:()=>o.recordChangeDescriptions,subscribe:e=>(o.addListener("recordChangeDescriptions",e),()=>o.removeListener("recordChangeDescriptions",e))})),[o])),l=(0,r.useCallback)((({currentTarget:e})=>{o.recordChangeDescriptions=e.checked}),[o]),c=(0,r.useCallback)((e=>{const r=parseFloat(e.currentTarget.value);i(Number.isNaN(r)||r<=0?0:r)}),[i]),u=(0,r.useCallback)((e=>{const r=e.currentTarget.checked;a(r),r&&null!==f.current&&f.current.focus()}),[a]),f=(0,r.useRef)(null);return r.createElement("div",{className:Xc.Settings},r.createElement("div",{className:Xc.Setting},r.createElement("label",null,r.createElement("input",{type:"checkbox",checked:s,onChange:l})," ","Record why each component rendered while profiling.")),r.createElement("div",{className:Xc.Setting},r.createElement("label",null,r.createElement("input",{checked:t,onChange:u,type:"checkbox"})," ","Hide commits below")," ",r.createElement("input",{className:Xc.Input,onChange:c,ref:f,type:"number",value:n})," ","(ms)"))}Zc.displayName="ProfilerContext";const tu={Background:"eMk7OK1dSU4XuQKUmWp0",Modal:"d9G5s2h3mDlCu62lRtbP",Spacer:"jbn0ZHmV4PmusgY73fFS",Tabs:"kf0dDWEgXidq8lUyeIUe",Content:"SXNg3Gs7j4CMOilBuQfo"};function nu(e){const{isModalShowing:t,setIsModalShowing:n}=(0,r.useContext)(No),a=(0,r.useContext)(mr),{profilerStore:i}=a;return zt((0,r.useMemo)((()=>({getCurrentValue:()=>i.isProfiling,subscribe:e=>(i.addListener("isProfiling",e),()=>i.removeListener("isProfiling",e))})),[i]))&&t&&n(!1),t?r.createElement(au,null):null}function au(e){const{setIsModalShowing:t}=(0,r.useContext)(No),n=(0,r.useCallback)((()=>t(!1)),[t]),[a,i]=Pt("React::DevTools::selectedSettingsTabID","general"),o=(0,r.useRef)(null);Lt(o,n),(0,r.useEffect)((()=>{null!==o.current&&o.current.focus()}),[o]);let s=null;switch(a){case"components":s=r.createElement(Kc,null);break;case"debugging":s=r.createElement(Yc,null);break;case"general":s=r.createElement(Qc,null);break;case"profiler":s=r.createElement(ru,null)}return r.createElement("div",{className:tu.Background},r.createElement("div",{className:tu.Modal,ref:o},r.createElement("div",{className:tu.Tabs},r.createElement($c,{currentTab:a,id:"Settings",selectTab:i,tabs:iu,type:"settings"}),r.createElement("div",{className:tu.Spacer}),r.createElement(Ya,{onClick:n,title:"Close settings dialog"},r.createElement(Yt,{type:"close"}))),r.createElement("div",{className:tu.Content},s)))}const iu=[{id:"general",icon:"settings",label:"General"},{id:"debugging",icon:"bug",label:"Debugging"},{id:"components",icon:"components",label:"Components"},{id:"profiler",icon:"profiler",label:"Profiler"}],ou={Components:"sq7P_up0IVLFeviKrLng",TreeWrapper:"mtKVxGxGerKyM404mgS6",InspectedElementWrapper:"zBXCQOyxTkno88EftTO3",ResizeBarWrapper:"LvlXDd_vWgrnA_2hlp6P",ResizeBar:"KruXWRv8AZhJAyJ4mgCu",Loading:"Fto6ZGpW1Z2LYY_Tb3Uz"};function su(){return r.createElement("div",{className:ou.Loading},"Loading...")}const lu="React::DevTools::createResizeReducer",cu=600,uu=50;function fu(){let e=.65,r=.5;try{let t=de(lu);null!=t&&(t=JSON.parse(t),e=t.horizontalPercentage,r=t.verticalPercentage)}catch(e){}return{horizontalPercentage:e,isResizing:!1,verticalPercentage:r}}function du(e,r){switch(r.type){case"ACTION_SET_IS_RESIZING":return{...e,isResizing:r.payload};case"ACTION_SET_HORIZONTAL_PERCENTAGE":return{...e,horizontalPercentage:r.payload};case"ACTION_SET_VERTICAL_PERCENTAGE":return{...e,verticalPercentage:r.payload};default:return e}}function vu(e,r,t){null!==e&&null!==r&&e.style.setProperty(`--${r}-resize-percentage`,`${t}%`)}const hu=Ds((function(e){const t=(0,r.useRef)(null),n=(0,r.useRef)(null),[a,i]=(0,r.useReducer)(du,null,fu),{horizontalPercentage:o,verticalPercentage:s}=a;(0,r.useLayoutEffect)((()=>{const e=n.current;vu(e,"horizontal",100*o),vu(e,"vertical",100*s)}),[]),(0,r.useEffect)((()=>{const e=setTimeout((()=>{ve(lu,JSON.stringify({horizontalPercentage:o,verticalPercentage:s}))}),500);return()=>clearTimeout(e)}),[o,s]);const{isResizing:l}=a;let c,u;return l&&(u=()=>i({type:"ACTION_SET_IS_RESIZING",payload:!1}),c=e=>{const r=n.current,a=t.current;if(!l||null===a||null===r)return;e.preventDefault();const o=function(e){if(null!=e){const{width:r}=e.getBoundingClientRect();return r>cu?"horizontal":"vertical"}return null}(a),{height:s,width:c,left:u,top:f}=a.getBoundingClientRect(),d="horizontal"===o?e.clientX-u:e.clientY-f;if(d>uu&&d<("horizontal"===o?c-uu:s-uu)){const e="horizontal"===o?c:s,t="horizontal"===o?"ACTION_SET_HORIZONTAL_PERCENTAGE":"ACTION_SET_VERTICAL_PERCENTAGE";vu(r,o,d/e*100),i({type:t,payload:d/e})}}),r.createElement(Ro,null,r.createElement(di,null,r.createElement("div",{ref:t,className:ou.Components,onMouseMove:c,onMouseLeave:u,onMouseUp:u},r.createElement(r.Fragment,null,r.createElement("div",{ref:n,className:ou.TreeWrapper},r.createElement(Go,null)),r.createElement("div",{className:ou.ResizeBarWrapper},r.createElement("div",{onMouseDown:()=>i({type:"ACTION_SET_IS_RESIZING",payload:!0}),className:ou.ResizeBar})),r.createElement("div",{className:ou.InspectedElementWrapper},r.createElement(ic,null,r.createElement(Os,null,r.createElement(r.Suspense,{fallback:r.createElement(su,null)},r.createElement(Ml,null,r.createElement(Wc,null)))))),r.createElement(Bs,null),r.createElement(nu,null)))))})),mu=(0,r.createContext)(null);function pu({children:e}){const t=(0,r.useRef)(null),[n,a]=(0,r.useState)(null),i=(0,r.useContext)(mr),o=(0,r.useSyncExternalStore)((function(e){return i.addListener("rootSupportsTimelineProfiling",e),function(){i.removeListener("rootSupportsTimelineProfiling",e)}}),(function(){return i.rootSupportsTimelineProfiling})),s=(0,r.useSyncExternalStore)((function(e){return i.profilerStore.addListener("isProcessingData",e),i.profilerStore.addListener("profilingData",e),function(){i.profilerStore.removeListener("isProcessingData",e),i.profilerStore.removeListener("profilingData",e)}}),(function(){return i.profilerStore.profilingData?.timelineData||null})),l=(0,r.useMemo)((()=>{const e=new Set,r=new Set,t={offset:0,length:0},n={horizontalScrollState:t,onHorizontalScrollStateChange:r=>{e.add(r)},onSearchRegExpStateChange:e=>{r.add(e)},searchRegExp:null,updateHorizontalScrollState:r=>{t.offset===r.offset&&t.length===r.length||(t.offset=r.offset,t.length=r.length,e.forEach((e=>{e(r)})))},updateSearchRegExpState:e=>{n.searchRegExp=e,r.forEach((r=>{r(e)}))},viewToMutableViewStateMap:new Map};return n}),[n]),[c,u]=(0,r.useState)(null),f=(0,r.useMemo)((()=>({file:n,inMemoryTimelineData:s,isTimelineSupported:o,searchInputContainerRef:t,setFile:a,viewState:l,selectEvent:u,selectedEvent:c})),[n,s,o,a,l,u,c]);return r.createElement(mu.Provider,{value:f},e)}function _u(){const e=(0,r.useContext)(mr),{didRecordCommits:t,isProfiling:n}=(0,r.useContext)(Zc),{file:a,setFile:i}=(0,r.useContext)(mu),{profilerStore:o}=e,s=t,l=null!==a;return r.createElement(Ya,{disabled:n||!(s||l),onClick:()=>{s&&o.clear(),l&&i(null)},title:"Clear profiling data"},r.createElement(Yt,{type:"clear"}))}mu.displayName="TimelineContext";const Su={NoCommitData:"L8woOxFUxxEIixztHQ7F",Header:"AtobNEaumeuDxis8vMZL",FilterMessage:"wNUSnerUEet4FbVLoMYW"};function gu(e){return r.createElement("div",{className:Su.NoCommitData},r.createElement("div",{className:Su.Header},"There is no data matching the current filter criteria."),r.createElement("div",{className:Su.FilterMessage},"Try adjusting the commit filter in Profiler settings."))}const bu=30,wu=5,ku={Group:"nxmnW8DZWX5ncv9cnvFA",Rect:"UnrCr_TjeWWD_jCqAUG3",ForeignObject:"nKkkaaYNee8JgVSmCnbu",Div:"p9pnq6uefSWIZs0uyvsm"},Eu=35;function yu({color:e,height:t,isDimmed:n=!1,label:a,onClick:i,onMouseEnter:o,onMouseLeave:s,onDoubleClick:l,textStyle:c,width:u,x:f,y:d}){return r.createElement("g",{className:ku.Group,transform:`translate(${f},${d})`},r.createElement("rect",{width:u,height:t,fill:e,onClick:i,onMouseEnter:o,onMouseLeave:s,onDoubleClick:l,className:ku.Rect,style:{opacity:n?.5:1}}),u>=Eu&&r.createElement("foreignObject",{width:u,height:t,className:ku.ForeignObject,style:{paddingLeft:f<0?-f:0,opacity:n?.75:1,display:u{e.stopPropagation(),u(r,t)}),[u]),_=()=>{o()},S=parseInt(n.top,10),g=h[t],b=s(null!==l?l.offset:0,f);return r.createElement(r.Fragment,null,g.map((e=>{const{didRender:n,id:a,label:o,name:l,offset:u,selfDuration:h,treeBaseDuration:g}=e,w=s(u,f),k=s(g,f);if(k<2)return null;if(w+kb+f)return null;let E="url(#didNotRenderPattern)",y="var(--color-commit-did-not-render-pattern-text)";return n?(E=Xe(h/v),y="var(--color-commit-gradient-text)"):d.has(a)&&(E="var(--color-commit-did-not-render-fill)",y="var(--color-commit-did-not-render-fill-text)"),r.createElement(yu,{color:E,height:m,isDimmed:tp(e,a,l),onMouseEnter:()=>(e=>{const{id:r,name:t}=e;i({id:r,name:t})})(e),onMouseLeave:_,textStyle:{color:y},width:k,x:w-b,y:S})})))}const Au=(0,r.memo)(Du,qr),Cu={Item:"IkCgTd3uBjVma0pkjIWQ",Key:"o966ewEpKp83bg2KkhK9",Label:"_8XubYXHe9_RJazk947v"};function Mu({fiberID:e}){const{profilerStore:t}=(0,r.useContext)(mr),{rootID:n,selectedCommitIndex:a}=(0,r.useContext)(Zc);if(null===a)return null;const{changeDescriptions:i}=t.getCommitData(n,a);if(null===i)return null;const o=i.get(e);if(null==o)return null;const{context:s,didHooksChange:l,hooks:c,isFirstMount:u,props:f,state:d}=o;if(u)return r.createElement("div",{className:Cu.Component},r.createElement("label",{className:Cu.Label},"Why did this render?"),r.createElement("div",{className:Cu.Item},"This is the first time the component rendered."));const v=[];return!0===s?v.push(r.createElement("div",{key:"context",className:Cu.Item},"• Context changed")):"object"==typeof s&&null!==s&&0!==s.length&&v.push(r.createElement("div",{key:"context",className:Cu.Item},"• Context changed:",s.map((e=>r.createElement("span",{key:e,className:Cu.Key},e))))),l&&(Array.isArray(c)?v.push(r.createElement("div",{key:"hooks",className:Cu.Item},"• ",function(e){const r=e.map((e=>e+1));switch(r.length){case 0:return"No hooks changed";case 1:return`Hook ${r[0]} changed`;case 2:return`Hooks ${r[0]} and ${r[1]} changed`;default:return`Hooks ${r.slice(0,r.length-1).join(", ")} and ${r[r.length-1]} changed`}}(c))):v.push(r.createElement("div",{key:"hooks",className:Cu.Item},"• Hooks changed"))),null!==f&&0!==f.length&&v.push(r.createElement("div",{key:"props",className:Cu.Item},"• Props changed:",f.map((e=>r.createElement("span",{key:e,className:Cu.Key},e))))),null!==d&&0!==d.length&&v.push(r.createElement("div",{key:"state",className:Cu.Item},"• State changed:",d.map((e=>r.createElement("span",{key:e,className:Cu.Key},e))))),0===v.length&&v.push(r.createElement("div",{key:"nothing",className:Cu.Item},"The parent component rendered.")),r.createElement("div",null,r.createElement("label",{className:Cu.Label},"Why did this render?"),v)}const xu={Toolbar:"ANH3uQmqdejNNBMFVElK",BadgesContainer:"ktt_CXlygBWE6kn8NPge",Content:"gQwq51H6S25d6j5fprQ6",Component:"lYjHEFZCqsMukwE8ta6U",CurrentCommit:"WfcYLToZgb8sJXT8vsc0"};function Tu({fiberData:e}){const{profilerStore:t}=(0,r.useContext)(mr),{rootID:n,selectedCommitIndex:a}=(0,r.useContext)(Zc),{id:i,name:o}=e,{profilingCache:s}=t;if(null===n||null===a)return null;const l=s.getFiberCommits({fiberID:i,rootID:n}),{nodes:c}=s.getCommitTree({rootID:n,commitIndex:a}),u=c.get(i);let f=null,d=0;for(d=0;d{const r=o.current;if(null!=r){const t=function(e,r){if(null!==e){let t=e;for(;null!=t.parentElement&&"relative"!==t.style.position;)t=t.parentElement;const{height:n,left:a,top:i,width:o}=t.getBoundingClientRect();return{height:n,mouseX:r.clientX-a,mouseY:r.clientY-i,width:o}}return Nu}(i.current,e),{left:n,top:a}=function(e,r){const{height:t,mouseX:n,mouseY:a,width:i}=r;let o=0,s=0;o=a+Iu+e.offsetHeight>=t?a-Iu-e.offsetHeight>0?a-e.offsetHeight-Iu+"px":"0px":`${a+Iu}px`;s=n+Iu+e.offsetWidth>=i?n-Iu-e.offsetWidth>0?n-e.offsetWidth-Iu+"px":"0px":`${n+2*Iu}px`;return{left:s,top:o}}(r,t);r.style.left=n,r.style.top=a}},l=null===n?Hu.hidden:"";return r.createElement("div",{className:Hu.Container,onMouseMove:e=>{s(e)},ref:i},r.createElement("div",{className:`${Hu.Tooltip} ${l} ${t||""}`,ref:o,style:a},n),e)}const Iu=5;const Ou={Container:"fXsETZvykyOnCWEVGTyA",PatternPath:"f8UQT2oHvCCgil4vX43p"};function Fu(){return Fu=Object.assign||function(e){for(var r=1;r{e.stopPropagation(),i(null,null)}),[i]);let l=null,c=null;return null!==a&&(l=o.getCommitTree({commitIndex:a,rootID:n}),c=o.getFlamegraphChartData({commitIndex:a,commitTree:l,rootID:n})),null!=l&&null!=c&&c.depth>0?r.createElement("div",{className:Ou.Container,onClick:s},r.createElement(Ar,null,(({height:e,width:t})=>r.createElement(Lu,{chartData:c,commitTree:l,height:e,width:t})))):r.createElement(gu,null)}function Lu({chartData:e,commitTree:t,height:n,width:a}){const[i,o]=(0,r.useState)(null),{lineHeight:s}=(0,r.useContext)(jt),{selectFiber:l,selectedFiberID:c}=(0,r.useContext)(Zc),{highlightNativeElement:u,clearHighlightNativeElement:f}=Bt(),d=(0,r.useMemo)((()=>{if(null===c)return 0;const r=e.idToDepthMap.get(c);return void 0!==r?r-1:0}),[e,c]),v=(0,r.useMemo)((()=>null!==c&&e.rows[d].find((e=>e.id===c))||null),[e,c,d]),h=(0,r.useCallback)((({id:e,name:r})=>{u(e),o({id:e,name:r})}),[u]),m=(0,r.useCallback)((()=>{f(),o(null)}),[f]),p=(0,r.useMemo)((()=>({chartData:e,onElementMouseEnter:h,onElementMouseLeave:m,scaleX:qe(0,null!==v?v.treeBaseDuration:e.baseDuration,0,a),selectedChartNode:v,selectedChartNodeIndex:d,selectFiber:l,width:a})),[e,h,m,v,d,l,a]),_=(0,r.useMemo)((()=>null!==i?r.createElement(Tu,{fiberData:i}):null),[i]);return r.createElement(Ru,{label:_},r.createElement($r,{height:n,innerElementType:zu,itemCount:e.depth,itemData:p,itemSize:s,width:a},Au))}const zu=(0,r.forwardRef)((({children:e,...t},n)=>r.createElement("svg",Fu({ref:n},t),r.createElement("defs",null,r.createElement("pattern",{id:"didNotRenderPattern",patternUnits:"userSpaceOnUse",width:"4",height:"4"},r.createElement("path",{d:"M-1,1 l2,-2 M0,4 l4,-4 M3,5 l2,-2",className:Ou.PatternPath}))),e)));function Bu({data:e,index:t,style:n}){const{chartData:a,onElementMouseEnter:i,onElementMouseLeave:o,scaleX:s,selectedFiberIndex:l,selectFiber:c,width:u}=e,f=a.nodes[t],{lineHeight:d}=(0,r.useContext)(jt),v=(0,r.useCallback)((e=>{e.stopPropagation();const{id:r,name:t}=f;c(r,t)}),[f,c]),h=parseInt(n.top,10);return r.createElement(yu,{color:Xe(f.value/a.maxValue),height:d,isDimmed:t{const{id:e,name:r}=f;i({id:e,name:r})},onMouseLeave:()=>{o()},width:Math.max(wu,s(f.value,u)),x:0,y:h})}const Vu=(0,r.memo)(Bu,qr),Uu={Container:"dCqfL52pEXxTO91bkkNQ"};function Wu(e){const{profilerStore:t}=(0,r.useContext)(mr),{rootID:n,selectedCommitIndex:a,selectFiber:i}=(0,r.useContext)(Zc),{profilingCache:o}=t,s=(0,r.useCallback)((e=>{e.stopPropagation(),i(null,null)}),[i]);let l=null,c=null;return null!==a&&(l=o.getCommitTree({commitIndex:a,rootID:n}),c=o.getRankedChartData({commitIndex:a,commitTree:l,rootID:n})),null!=l&&null!=c&&c.nodes.length>0?r.createElement("div",{className:Uu.Container,onClick:s},r.createElement(Ar,null,(({height:e,width:t})=>r.createElement(ju,{chartData:c,commitTree:l,height:e,width:t})))):r.createElement(gu,null)}function ju({chartData:e,commitTree:t,height:n,width:a}){const[i,o]=(0,r.useState)(null),{lineHeight:s}=(0,r.useContext)(jt),{selectedFiberID:l,selectFiber:c}=(0,r.useContext)(Zc),{highlightNativeElement:u,clearHighlightNativeElement:f}=Bt(),d=(0,r.useMemo)((()=>$u(e,l)),[e,l]),v=(0,r.useCallback)((({id:e,name:r})=>{u(e),o({id:e,name:r})}),[u]),h=(0,r.useCallback)((()=>{f(),o(null)}),[f]),m=(0,r.useMemo)((()=>({chartData:e,onElementMouseEnter:v,onElementMouseLeave:h,scaleX:qe(0,e.nodes[d].value,0,a),selectedFiberID:l,selectedFiberIndex:d,selectFiber:c,width:a})),[e,v,h,l,d,c,a]),p=(0,r.useMemo)((()=>null!==i?r.createElement(Tu,{fiberData:i}):null),[i]);return r.createElement(Ru,{label:p},r.createElement($r,{height:n,innerElementType:"svg",itemCount:e.nodes.length,itemData:m,itemSize:s,width:a},Vu))}const $u=(e,r)=>{if(null===r)return 0;const{nodes:t}=e;for(let e=0;e{i.push(r.createElement("option",{key:t,value:t},e.displayName))}));const o=(0,r.useCallback)((({currentTarget:e})=>{a(parseInt(e.value,10))}),[a]);return null===t||t.dataForRoots.size<=1?null:r.createElement(r.Fragment,null,r.createElement("div",{className:Xu.Spacer}),r.createElement("select",{value:n,onChange:o},i))}const Ku={ActiveRecordToggle:"X3iRH_cmlxUnnqQJPwdk",InactiveRecordToggle:"_Fmh73Tp_hVdvSq0LfwS",DisabledRecordToggle:"D2ZC9ljzCsU1D10UgRfa"};function qu({disabled:e}){const{isProfiling:t,startProfiling:n,stopProfiling:a}=(0,r.useContext)(Zc);let i=Ku.InactiveRecordToggle;return e?i=Ku.DisabledRecordToggle:t&&(i=Ku.ActiveRecordToggle),r.createElement(Ya,{className:i,disabled:e,onClick:t?a:n,testName:"ProfilerToggleButton",title:t?"Stop profiling":"Start profiling"},r.createElement(Yt,{type:"record"}))}const Yu={Profiler:"PQXvlxJHC_mjwS_kG5hZ",LeftColumn:"wOW0mX_KSifasFYp2M07",RightColumn:"qNTcxtkwuoNmuFcG3uNQ",Content:"F9s7klTfnkD_0fKNmX48",Column:"O24130u6b3M44pVmHhCv",Paragraph:"trpdR27polx2zi2M9anI",Row:"MP9kRGAcsvXwBIKtJEjY",LearnMoreRow:"SCM8kzD_pFUd1D02QPtH",Header:"i7tKtcE5WUEZ2bsj4PAy",Toolbar:"P93KFw4qPKJlTiW5iGWi",VRule:"rBTEU03NyiBSbh_F7eBN",Spacer:"puj9ffDcr9TRErtUxYA5",StopRecordingButton:"Nox22y17MWpcgoM0b2sW",ContentFallback:"SLdUfzK4Y4h6B5NNry2P",SnapshotSelectorFallback:"p18y0jnRRFvWc9Aahph6",Link:"qIhKE7GPUn_qxk7BAASy",TimelineSearchInputContainer:"g6w1S218i5WBsiU5d1A3",LearnMoreLink:"hQFhOL9f3ZT4IO97Mr85"};function Qu(){return r.createElement("div",{className:Yu.Column},r.createElement("div",{className:Yu.Header},"No profiling data has been recorded."),r.createElement("div",{className:Yu.Row},"Click the record button ",r.createElement(qu,null)," to start recording."),r.createElement("div",{className:`${Yu.Row} ${Yu.LearnMoreRow}`},"Click"," ",r.createElement("a",{className:Yu.LearnMoreLink,href:"https://fb.me/react-devtools-profiling",rel:"noopener noreferrer",target:"_blank"},"here")," ","to learn more about profiling."))}function Ju(){return r.createElement("div",{className:Yu.Column},r.createElement("div",{className:Yu.Header},"Profiling is in progress..."),r.createElement("div",{className:Yu.Row},"Click the record button ",r.createElement(qu,null)," to stop recording."))}const Zu=window.devicePixelRatio||1,ef=10,rf=1/Zu,tf=[1,2,5,10,20,50,100,200,500,1e3,2e3,5e3];let nf={BACKGROUND:"",INTERNAL_MODULE_FRAME:"",INTERNAL_MODULE_FRAME_HOVER:"",INTERNAL_MODULE_FRAME_TEXT:"",NATIVE_EVENT:"",NATIVE_EVENT_HOVER:"",NETWORK_PRIMARY:"",NETWORK_PRIMARY_HOVER:"",NETWORK_SECONDARY:"",NETWORK_SECONDARY_HOVER:"",PRIORITY_BACKGROUND:"",PRIORITY_BORDER:"",PRIORITY_LABEL:"",USER_TIMING:"",USER_TIMING_HOVER:"",REACT_IDLE:"",REACT_IDLE_HOVER:"",REACT_RENDER:"",REACT_RENDER_HOVER:"",REACT_RENDER_TEXT:"",REACT_COMMIT:"",REACT_COMMIT_HOVER:"",REACT_COMMIT_TEXT:"",REACT_LAYOUT_EFFECTS:"",REACT_LAYOUT_EFFECTS_HOVER:"",REACT_LAYOUT_EFFECTS_TEXT:"",REACT_PASSIVE_EFFECTS:"",REACT_PASSIVE_EFFECTS_HOVER:"",REACT_PASSIVE_EFFECTS_TEXT:"",REACT_RESIZE_BAR:"",REACT_RESIZE_BAR_ACTIVE:"",REACT_RESIZE_BAR_BORDER:"",REACT_RESIZE_BAR_DOT:"",REACT_SCHEDULE:"",REACT_SCHEDULE_HOVER:"",REACT_SUSPENSE_REJECTED_EVENT:"",REACT_SUSPENSE_REJECTED_EVENT_HOVER:"",REACT_SUSPENSE_RESOLVED_EVENT:"",REACT_SUSPENSE_RESOLVED_EVENT_HOVER:"",REACT_SUSPENSE_UNRESOLVED_EVENT:"",REACT_SUSPENSE_UNRESOLVED_EVENT_HOVER:"",REACT_THROWN_ERROR:"",REACT_THROWN_ERROR_HOVER:"",REACT_WORK_BORDER:"",SCROLL_CARET:"",SCRUBBER_BACKGROUND:"",SCRUBBER_BORDER:"",SEARCH_RESULT_FILL:"",TEXT_COLOR:"",TEXT_DIM_COLOR:"",TIME_MARKER_LABEL:"",WARNING_BACKGROUND:"",WARNING_BACKGROUND_HOVER:"",WARNING_TEXT:"",WARNING_TEXT_INVERED:""};function af(e,r){if(e.length!==r.length)return!1;for(var t=0;t=0&&r>=0}function df(e){return[e.origin.y,e.origin.x+e.size.width,e.origin.y+e.size.height,e.origin.x]}function vf(e){const[r,t,n,a]=e;return{origin:{x:a,y:r},size:{width:t-a,height:n-r}}}function hf(e,r){if(0===e.size.width||0===e.size.height||0===r.size.width||0===r.size.height)return!1;const[t,n,a,i]=df(e),[o,s,l,c]=df(r);return!(n{const a=e.getContext("2d",{alpha:!1});return n&&(!function(e,r,t){e.width=t*Zu,e.height=r*Zu,e.style.width=`${t}px`,e.style.height=`${r}px`}(e,r,t),a.scale(Zu,Zu)),a}));class Sf{constructor(e){var r,t,n;n={activeView:null,hoveredView:null},(t="_viewRefs")in(r=this)?Object.defineProperty(r,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[t]=n,this._resetHoveredEvent=e}hasActiveView(){return null!==this._viewRefs.activeView}setCanvas(e,r){this._context=_f(e,r.height,r.width),this._canvasSize=r,this.rootView&&this.rootView.setNeedsDisplay()}displayIfNeeded(){const{rootView:e,_canvasSize:r,_context:t}=this;e&&t&&r&&(e.setFrame({origin:sf,size:r}),e.setVisibleArea({origin:sf,size:r}),e.displayIfNeeded(t,this._viewRefs))}getCurrentCursor(){const{activeView:e,hoveredView:r}=this._viewRefs;return null!==e?e.currentCursor:null!==r?r.currentCursor:null}handleInteraction(e){const r=this.rootView;if(null!=r){const t=this._viewRefs;switch(e.type){case"mousemove":case"wheel-control":case"wheel-meta":case"wheel-plain":case"wheel-shift":const n=t.hoveredView;t.hoveredView=null,r.handleInteractionAndPropagateToSubviews(e,t),null!==n&&null===t.hoveredView&&this._resetHoveredEvent();break;default:r.handleInteractionAndPropagateToSubviews(e,t)}}}}function gf(e){return{view:e,frame:e.frame}}const bf=e=>e,wf=(e,r)=>e.map((e=>({...e,frame:r}))),kf=(e,r)=>{let t=r.origin.y;return e.map((e=>{const n=e.view.desiredSize(),a=n?n.height:r.origin.y+r.size.height-t,i={origin:{x:r.origin.x,y:t},size:{width:r.size.width,height:a}};return t+=a,{...e,frame:i}}))};function Ef(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}class yf{constructor(e,r,t=bf,n=r,a=null){Ef(this,"currentCursor",null),Ef(this,"subviews",[]),Ef(this,"_needsDisplay",!0),Ef(this,"_subviewsNeedDisplay",!1),this._backgroundColor=a||null,this.surface=e,this.frame=r,this._layouter=t,this.visibleArea=n}setNeedsDisplay(){this._needsDisplay=!0,this.superview&&this.superview._setSubviewsNeedDisplay(),this.subviews.forEach((e=>e.setNeedsDisplay()))}_setSubviewsNeedDisplay(){this._subviewsNeedDisplay=!0,this.superview&&this.superview._setSubviewsNeedDisplay()}setFrame(e){uf(this.frame,e)||(this.frame=e,ff(e.size)?this.frame=e:this.frame=cf,this.setNeedsDisplay())}setVisibleArea(e){uf(this.visibleArea,e)||(ff(e.size)?this.visibleArea=e:this.visibleArea=cf,this.setNeedsDisplay())}desiredSize(){this._needsDisplay&&this.layoutSubviews();return function(...e){if(0===e.length)return cf;const[r,...t]=e;return vf(t.map(df).reduce(((e,r)=>{const[t,n,a,i]=e,[o,s,l,c]=r;return[Math.min(t,o),Math.max(n,s),Math.max(a,l),Math.min(i,c)]}),df(r)))}(...this.subviews.map((e=>e.frame))).size}addSubview(e){this.subviews.includes(e)||(this.subviews.push(e),e.superview=this)}removeSubview(e){const r=this.subviews.indexOf(e);-1!==r&&(e.superview=void 0,this.subviews.splice(r,1))}removeAllSubviews(){this.subviews.forEach((e=>e.superview=void 0)),this.subviews=[]}displayIfNeeded(e,r){if((this._needsDisplay||this._subviewsNeedDisplay)&&hf(this.frame,this.visibleArea)&&!function({width:e,height:r}){return e<=0||r<=0}(this.visibleArea.size)){this.layoutSubviews(),this._needsDisplay&&(this._needsDisplay=!1),this._subviewsNeedDisplay&&(this._subviewsNeedDisplay=!1);const t=this.visibleArea,n=new Path2D;n.rect(t.origin.x,t.origin.y,t.size.width,t.size.height),e.save(),e.clip(n),e.beginPath(),this.draw(e,r),e.restore()}}layoutSubviews(){const{frame:e,_layouter:r,subviews:t,visibleArea:n}=this;const a=r(t.map(gf),e);a.forEach((({view:e,frame:r})=>e.setFrame(r))),t.forEach(((e,r)=>{hf(n,e.frame)?e.setVisibleArea(mf(n,e.frame)):e.setVisibleArea(cf)}))}draw(e,r){const{subviews:t,visibleArea:n}=this;t.forEach((t=>{hf(n,t.visibleArea)&&t.displayIfNeeded(e,r)}));const a=this._backgroundColor;if(null!==a){const r=this.desiredSize();n.size.height>r.height&&(e.fillStyle=a,e.fillRect(n.origin.x,n.origin.y+r.height,n.size.width,n.size.height-r.height))}}handleInteraction(e,r){}handleInteractionAndPropagateToSubviews(e,r){const{subviews:t,visibleArea:n}=this;if(0===n.size.height)return!1;for(let a=t.length-1;a>=0;a--){const i=t[a];if(hf(n,i.visibleArea)){if(!0===i.handleInteractionAndPropagateToSubviews(e,r))return!0}}return!(!0!==this.handleInteraction(e,r))}}class Df extends yf{draw(e){const{visibleArea:r}=this;e.fillStyle=nf.BACKGROUND,e.fillRect(r.origin.x,r.origin.y,r.size.width,r.size.height)}}function Af(e,r,t){if(Number.isNaN(e)||Number.isNaN(r)||Number.isNaN(t))throw new Error(`Clamp was called with NaN. Args: min: ${e}, max: ${r}, value: ${t}.`);return Math.min(r,Math.max(e,t))}function Cf(e,r){return{offset:Af(-(e.length-r),0,e.offset),length:e.length}}function Mf({state:e,minContentLength:r,maxContentLength:t,containerLength:n}){return{offset:e.offset,length:Af(Math.max(r,n),Math.max(n,t),e.length)}}function xf({state:e,minContentLength:r,maxContentLength:t,containerLength:n}){return Cf(Mf({state:e,minContentLength:r,maxContentLength:t,containerLength:n}),n)}function Tf({state:e,delta:r,containerLength:t}){return Cf({offset:e.offset+r,length:e.length},t)}function Hf({state:e,rangeStart:r,rangeEnd:t,contentLength:n,minContentLength:a,maxContentLength:i,containerLength:o}){const s=Mf({state:{offset:e.offset,length:n*(o/(t-r))},minContentLength:a,maxContentLength:i,containerLength:o});return Cf({offset:-r*(s.length/n),length:s.length},o)}function Nf(e,r){return e.offset===r.offset&&e.length===r.length}const Rf=.25,If=1e3;class Of extends yf{constructor(e,r,t,n,a){var i,o,s;super(e,r),s=!1,(o="_isPanning")in(i=this)?Object.defineProperty(i,o,{value:s,enumerable:!0,configurable:!0,writable:!0}):i[o]=s,this._contentView=t,this._intrinsicContentWidth=n,this._viewState=a,a.onHorizontalScrollStateChange((e=>{this.zoomToRange(e.offset,e.length)})),this.addSubview(t)}setScrollState(e){Nf(xf({state:e,minContentLength:this._intrinsicContentWidth*Rf,maxContentLength:this._intrinsicContentWidth*If,containerLength:this.frame.size.width}),this._viewState.horizontalScrollState)||this.setNeedsDisplay()}zoomToRange(e,r){const t=Hf({state:this._viewState.horizontalScrollState,rangeStart:e,rangeEnd:r,contentLength:this._intrinsicContentWidth,minContentLength:this._intrinsicContentWidth*Rf,maxContentLength:this._intrinsicContentWidth*If,containerLength:this.frame.size.width});this.setScrollState(t)}desiredSize(){return this._contentView.desiredSize()}layoutSubviews(){const{offset:e,length:r}=this._viewState.horizontalScrollState,t={origin:{x:this.frame.origin.x+e,y:this.frame.origin.y},size:{width:r,height:this.frame.size.height}};this._contentView.setFrame(t),super.layoutSubviews()}handleInteraction(e,r){switch(e.type){case"mousedown":this._handleMouseDown(e,r);break;case"mousemove":this._handleMouseMove(e,r);break;case"mouseup":this._handleMouseUp(e,r);break;case"wheel-plain":case"wheel-shift":this._handleWheel(e)}}_handleMouseDown(e,r){pf(e.payload.location,this.frame)&&(this._isPanning=!0,r.activeView=this,this.currentCursor="grabbing")}_handleMouseMove(e,r){const t=pf(e.payload.location,this.frame);if(t&&null===r.hoveredView&&(r.hoveredView=this),r.activeView===this?this.currentCursor="grabbing":t&&(this.currentCursor="grab"),!this._isPanning)return;const{movementX:n,movementY:a}=e.payload.event;if(Math.abs(n)a){if(i<1)return;if("wheel-shift"===e.type)return;const t=function({state:e,multiplier:r,fixedPoint:t,minContentLength:n,maxContentLength:a,containerLength:i}){const o=Mf({state:{offset:e.offset,length:e.length*r},minContentLength:n,maxContentLength:a,containerLength:i});return Cf({offset:t+e.offset-t*(o.length/e.length),length:o.length},i)}({state:this._viewState.horizontalScrollState,multiplier:1+.005*-n,fixedPoint:r.x-this._viewState.horizontalScrollState.offset,minContentLength:this._intrinsicContentWidth*Rf,maxContentLength:this._intrinsicContentWidth*If,containerLength:this.frame.size.width});this._viewState.updateHorizontalScrollState(t)}else{if(a<1)return;const e=Tf({state:this._viewState.horizontalScrollState,delta:-t,containerLength:this.frame.size.width});this._viewState.updateHorizontalScrollState(e)}}}class Ff extends yf{constructor(e,r,t,n,a){super(e,r),this._contentView=t,this._isPanning=!1,this._mutableViewStateKey=a+":VerticalScrollView",this._onChangeCallback=null,this._scrollState={offset:0,length:0},this._viewState=n,this.addSubview(t),this._restoreMutableViewState()}setFrame(e){super.setFrame(e),this._setScrollState(this._scrollState)}desiredSize(){return this._contentView.desiredSize()}draw(e,r){if(super.draw(e,r),this.frame.size.height>15){const r=this._scrollState.offset,t=this._contentView.desiredSize(),n=r,a=this.frame.size.height-t.height-r;if(n<0||a<0){const{visibleArea:r}=this,{x:t,y:i}=r.origin,{width:o,height:s}=r.size,l=t+o/2,c=5,u=l+c,f=l-c;if(n<0){const r=i+3;e.beginPath(),e.moveTo(l,r),e.lineTo(u,r+3),e.lineTo(f,r+3),e.closePath(),e.fillStyle=nf.SCROLL_CARET,e.fill()}if(a<0){const r=i+s-3;e.beginPath(),e.moveTo(l,r),e.lineTo(u,r-3),e.lineTo(f,r-3),e.closePath(),e.fillStyle=nf.SCROLL_CARET,e.fill()}}}}layoutSubviews(){const{offset:e}=this._scrollState,r=this._contentView.desiredSize(),t=this.frame.size.height,n=r?r.height:0,a=Math.max(n,t),i={origin:{x:this.frame.origin.x,y:this.frame.origin.y+e},size:{width:this.frame.size.width,height:a}};this._contentView.setFrame(i),super.layoutSubviews()}handleInteraction(e){switch(e.type){case"mousedown":return this._handleMouseDown(e);case"mousemove":return this._handleMouseMove(e);case"mouseup":return this._handleMouseUp(e);case"wheel-shift":return this._handleWheelShift(e)}}onChange(e){this._onChangeCallback=e}scrollBy(e){const r=Tf({state:this._scrollState,delta:-e,containerLength:this.frame.size.height});return this._setScrollState(r)}_handleMouseDown(e){if(pf(e.payload.location,this.frame)){this.frame.size.heightMath.abs(t))return;const n=Tf({state:this._scrollState,delta:e.payload.event.movementY,containerLength:this.frame.size.height});return this._setScrollState(n),!0}_handleMouseUp(e){this._isPanning&&(this._isPanning=!1)}_handleWheelShift(e){const{location:r,delta:{deltaX:t,deltaY:n}}=e.payload;if(!pf(r,this.frame))return!1;const a=Math.abs(t),i=Math.abs(n);return!(a>i)&&(!(i<1)&&this.scrollBy(n))}_restoreMutableViewState(){this._viewState.viewToMutableViewStateMap.has(this._mutableViewStateKey)?this._scrollState=this._viewState.viewToMutableViewStateMap.get(this._mutableViewStateKey):this._viewState.viewToMutableViewStateMap.set(this._mutableViewStateKey,this._scrollState),this.setNeedsDisplay()}_setScrollState(e){const r=this._contentView.frame.size.height,t=this.frame.size.height,n=xf({state:e,minContentLength:r,maxContentLength:r,containerLength:t});return Nf(n,this._scrollState)?r!==t:(this._scrollState.offset=n.offset,this._scrollState.length=n.length,this.setNeedsDisplay(),null!==this._onChangeCallback&&this._onChangeCallback(n,this.frame.size.height),!0)}}const Pf=new Map;function Lf(e,r){let t=Pf.get(r);return null==t&&(t=e.measureText(r).width,Pf.set(r,t)),t}function zf(e,r,t,n,a){const{fillStyle:i=nf.TEXT_COLOR,fontSize:o=ef,textAlign:s="left"}=a||{};if(t.size.width>6){r.textAlign=s,r.textBaseline="middle",r.font=`${o}px sans-serif`;const{x:a,y:l}=t.origin,c=function(e,r,t){const n=r.length-1;let a=0,i=n,o=0,s=null;for(;a<=i;){const l=Math.floor((a+i)/2),c=l===n?r:r.slice(0,l)+"…";Lf(e,c)<=t?(oe.hideScrollBarIfLessThanHeight}_updateLayoutStateAndResizeBar(e){e<=8&&(e=0),this._layoutState.barOffsetY=e,this._resizeBar.showLabel=0===e}_updateLayoutState(){const{frame:e,_resizingState:r}=this,t=this._subview.desiredSize().height;let n=this._layoutState.barOffsetY;if(r){const{mouseY:t,cursorOffsetInBarFrame:a}=r;n=t-e.origin.y-a}this._updateLayoutStateAndResizeBar(Af(0,t,n))}_updateSubviewFrames(){const{frame:{origin:{x:e,y:r},size:{width:t}},_layoutState:{barOffsetY:n}}=this,a=this._resizeBar.desiredSize();0===n?this._subview.setFrame(Uf):this._subview.setFrame({origin:{x:e,y:r},size:{width:t,height:n}}),this._resizeBar.setFrame({origin:{x:e,y:r+n},size:{width:t,height:a.height}})}_handleClick(e){if(!this._shouldRenderResizeBar())return;if(pf(e.payload.location,this.frame)&&0===this._layoutState.barOffsetY){const e=this._subview.desiredSize();return this._updateLayoutStateAndResizeBar(e.height),this.setNeedsDisplay(),!0}}_handleDoubleClick(e){if(!this._shouldRenderResizeBar())return;return pf(e.payload.location,this.frame)&&this._layoutState.barOffsetY>0?(this._updateLayoutStateAndResizeBar(0),this.setNeedsDisplay(),!0):void 0}_handleMouseDown(e){const r=e.payload.location,t=this._resizeBar.frame;if(pf(r,t)){const e=r.y;return this._resizingState={cursorOffsetInBarFrame:e-t.origin.y,mouseY:e},!0}}_handleMouseMove(e){const{_resizingState:r}=this;if(r)return this._resizingState={...r,mouseY:e.payload.location.y},this.setNeedsDisplay(),!0}_handleMouseUp(e){this._resizingState&&(this._resizingState=null)}getCursorActiveSubView(e){return pf(e.payload.location,this._resizeBar.frame)?this:null}handleInteraction(e,r){switch(e.type){case"click":return this._handleClick(e);case"double-click":return this._handleDoubleClick(e);case"mousedown":return this._handleMouseDown(e);case"mousemove":return this._handleMouseMove(e);case"mouseup":return this._handleMouseUp(e)}}}const jf=40,$f=800;let Xf=null;function Gf(e,t){const n=(0,r.useRef)(!1),a=(0,r.useRef)(!1);(0,r.useEffect)((()=>{const r=e.current;if(!r)return;function i(e){const t=function(e){return Xf&&e.width===Xf.width&&e.height===Xf.height||(Xf={width:e.width,height:e.height,rect:e.getBoundingClientRect()}),Xf.rect}(r);return{x:e.x-t.left,y:e.y-t.top}}const o=e=>{a.current||t({type:"click",payload:{event:e,location:i({x:e.x,y:e.y})}})},s=e=>{a.current||t({type:"double-click",payload:{event:e,location:i({x:e.x,y:e.y})}})},l=e=>{a.current=!1,n.current=!0,t({type:"mousedown",payload:{event:e,location:i({x:e.x,y:e.y})}})},c=e=>{n.current&&(a.current=!0),t({type:"mousemove",payload:{event:e,location:i({x:e.x,y:e.y})}})},u=e=>{n.current=!1,t({type:"mouseup",payload:{event:e,location:i({x:e.x,y:e.y})}})},f=e=>{e.preventDefault(),e.stopPropagation();const r=i({x:e.x,y:e.y}),n=function(e){let r=e.deltaX,t=e.deltaY;return e.deltaMode===WheelEvent.DOM_DELTA_LINE?(r*=jf,t*=jf):e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(r*=$f,t*=$f),{deltaX:r,deltaY:t}}(e);return e.shiftKey?t({type:"wheel-shift",payload:{event:e,location:r,delta:n}}):e.ctrlKey?t({type:"wheel-control",payload:{event:e,location:r,delta:n}}):e.metaKey?t({type:"wheel-meta",payload:{event:e,location:r,delta:n}}):t({type:"wheel-plain",payload:{event:e,location:r,delta:n}}),!1},d=r.ownerDocument;return d.addEventListener("mousemove",c),d.addEventListener("mouseup",u),r.addEventListener("click",o),r.addEventListener("dblclick",s),r.addEventListener("mousedown",l),r.addEventListener("wheel",f),()=>{d.removeEventListener("mousemove",c),d.removeEventListener("mouseup",u),r.removeEventListener("click",o),r.removeEventListener("dblclick",s),r.removeEventListener("mousedown",l),r.removeEventListener("wheel",f)}}),[e,t])}const Kf=(e,r)=>{const[t,n]=e,a=t.view.desiredSize().height>r.size.height?n.view.desiredSize().width:0,i={...t,frame:{origin:t.view.frame.origin,size:{width:r.size.width-a,height:r.size.height}}};return[i,{...n,frame:{origin:{x:i.frame.origin.x+i.frame.size.width,y:r.origin.y},size:{width:a,height:r.size.height}}}]};function qf(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}class Yf extends yf{constructor(e,r,t,n){super(e,r,Kf),qf(this,"_isProcessingOnChange",!1),qf(this,"_isScrolling",!1),qf(this,"_scrollOffset",0),qf(this,"_onVerticalScrollViewChange",((e,r)=>{const t=e.length-r;if(0===t)return;const n=Math.abs(e.offset)/t,a=this._scrollBarView.getMaxScrollThumbY();this._isProcessingOnChange=!0,this._scrollBarView.setScrollThumbY(n*a),this._isProcessingOnChange=!1})),this._contentView=t,this._verticalScrollView=new Ff(e,r,t,n,"VerticalScrollOverflowView"),this._verticalScrollView.onChange(this._onVerticalScrollViewChange),this._scrollBarView=new Zf(e,r,this),this.addSubview(this._verticalScrollView),this.addSubview(this._scrollBarView)}layoutSubviews(){super.layoutSubviews();const e=this._contentView.desiredSize();this._scrollBarView.setContentHeight(e.height)}setScrollOffset(e,r){const t=e-this._scrollOffset;this._isProcessingOnChange||this._verticalScrollView.scrollBy(-t),this._scrollOffset=e,this.setNeedsDisplay()}}function Qf(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}const Jf={origin:{x:0,y:0},size:{width:0,height:0}};class Zf extends yf{constructor(e,r,t){super(e,r),Qf(this,"_contentHeight",0),Qf(this,"_isScrolling",!1),Qf(this,"_scrollBarRect",Jf),Qf(this,"_scrollThumbRect",Jf),this._verticalScrollOverflowView=t}desiredSize(){return{width:14,height:0}}getMaxScrollThumbY(){const{height:e}=this.frame.size;return e-this._scrollThumbRect.size.height}setContentHeight(e){this._contentHeight=e;const{height:r,width:t}=this.frame.size,n={origin:{x:this.frame.origin.x,y:this._scrollThumbRect.origin.y},size:{width:t,height:r*(r/e)}};uf(this._scrollThumbRect,n)||(this._scrollThumbRect=n,this.setNeedsDisplay())}setScrollThumbY(e){const{height:r}=this.frame.size,t=this.getMaxScrollThumbY(),n=Math.max(0,Math.min(t,e));this._scrollThumbRect={...this._scrollThumbRect,origin:{x:this.frame.origin.x,y:n}};const a=n/t*(this._contentHeight-r)*-1;this._verticalScrollOverflowView.setScrollOffset(a,t)}draw(e,r){const{x:t,y:n}=this.frame.origin,{width:a,height:i}=this.frame.size;e.fillStyle=nf.REACT_RESIZE_BAR,e.fillRect(t,n,a,i),e.fillStyle=nf.SCROLL_CARET,e.fillRect(this._scrollThumbRect.origin.x,this._scrollThumbRect.origin.y,this._scrollThumbRect.size.width,this._scrollThumbRect.size.height),e.fillStyle=nf.REACT_RESIZE_BAR_BORDER,e.fillRect(t,n,rf,i)}handleInteraction(e,r){switch(e.type){case"click":this._handleClick(e,r);break;case"mousedown":this._handleMouseDown(e,r);break;case"mousemove":this._handleMouseMove(e,r);break;case"mouseup":this._handleMouseUp(e,r)}}_handleClick(e,r){const{location:t}=e.payload;if(pf(t,this.frame)){if(pf(t,this._scrollThumbRect))return;const e=this._scrollThumbRect.origin.y,r=t.y,{height:n}=this.frame.size,a=n/this._contentHeight*n*.8;this.setScrollThumbY(r>e?this._scrollThumbRect.origin.y+a:this._scrollThumbRect.origin.y-a)}}_handleMouseDown(e,r){const{location:t}=e.payload;pf(t,this._scrollThumbRect)&&(r.activeView=this,this.currentCursor="default",this._isScrolling=!0,this.setNeedsDisplay())}_handleMouseMove(e,r){const{event:t,location:n}=e.payload;pf(n,this.frame)&&(r.hoveredView!==this&&(r.hoveredView=this),this.currentCursor="default"),r.activeView===this&&(this.currentCursor="default",this.setScrollThumbY(this._scrollThumbRect.origin.y+t.movementY))}_handleMouseUp(e,r){r.activeView===this&&(r.activeView=null),this._isScrolling&&(this._isScrolling=!1,this.setNeedsDisplay())}}function ed(e,r){return r.size.width/e}function rd(e,r,t){return t.origin.x+e*r}function td(e,r,t){return(e-t.origin.x)/r}function nd(e,r){return e*r}function ad(e,r){return e/r}var id=a(894),od=a.n(id);function sd(e){return e.toLocaleString(void 0,{minimumFractionDigits:1,maximumFractionDigits:1})+"ms"}function ld(e){return od()(e,{millisecondsDecimalDigits:1})}function cd(e,r){return e.length>r?`${e.slice(0,r-1)}…`:e}function ud(e){switch(e.type){case"schedule-render":return"render scheduled";case"schedule-state-update":return"state update scheduled";case"schedule-force-update":return"force update scheduled";default:return null}}function fd(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}const dd=14+rf;class vd extends yf{constructor(e,r,t,n){super(e,r),fd(this,"_cachedSearchRegExp",null),fd(this,"_hoveredComponentMeasure",null),fd(this,"onHover",null),this._profilerData=t,this._viewState=n,this._cachedSearchMatches=new Map,this._cachedSearchRegExp=null,n.onSearchRegExpStateChange((()=>{this.setNeedsDisplay()})),this._intrinsicSize={width:t.duration,height:dd}}desiredSize(){return this._intrinsicSize}setHoveredEvent(e){this._hoveredComponentMeasure!==e&&(this._hoveredComponentMeasure=e,this.setNeedsDisplay())}_drawSingleReactComponentMeasure(e,r,t,n,a){const{frame:i}=this,{componentName:o,duration:s,timestamp:l,type:c,warning:u}=t,f=rd(l,n,i),d=rd(l+s,n,i),v={origin:{x:f,y:i.origin.y},size:{width:d-f,height:14}};if(!hf(v,r))return!1;if(nd(s,n)<1)return!1;let h=null,m=null;const p=mf(v,r);if(e.beginPath(),null!==u)e.fillStyle=a?nf.WARNING_BACKGROUND_HOVER:nf.WARNING_BACKGROUND;else switch(c){case"render":e.fillStyle=a?nf.REACT_RENDER_HOVER:nf.REACT_RENDER,h=nf.REACT_RENDER_TEXT,m="rendered";break;case"layout-effect-mount":e.fillStyle=a?nf.REACT_LAYOUT_EFFECTS_HOVER:nf.REACT_LAYOUT_EFFECTS,h=nf.REACT_LAYOUT_EFFECTS_TEXT,m="mounted layout effect";break;case"layout-effect-unmount":e.fillStyle=a?nf.REACT_LAYOUT_EFFECTS_HOVER:nf.REACT_LAYOUT_EFFECTS,h=nf.REACT_LAYOUT_EFFECTS_TEXT,m="unmounted layout effect";break;case"passive-effect-mount":e.fillStyle=a?nf.REACT_PASSIVE_EFFECTS_HOVER:nf.REACT_PASSIVE_EFFECTS,h=nf.REACT_PASSIVE_EFFECTS_TEXT,m="mounted passive effect";break;case"passive-effect-unmount":e.fillStyle=a?nf.REACT_PASSIVE_EFFECTS_HOVER:nf.REACT_PASSIVE_EFFECTS,h=nf.REACT_PASSIVE_EFFECTS_TEXT,m="unmounted passive effect"}let _=!1;const S=this._cachedSearchRegExp;if(null!==S){const e=this._cachedSearchMatches,r=e.get(o);null!=r?_=r:(_=null!==o.match(S),e.set(o,_))}_&&(e.fillStyle=nf.SEARCH_RESULT_FILL),e.fillRect(p.origin.x,p.origin.y,p.size.width,p.size.height);return zf(`${o} ${m} - ${ld(s)}`,e,v,p,{fillStyle:h}),!0}draw(e){const{frame:r,_profilerData:{componentMeasures:t},_hoveredComponentMeasure:n,visibleArea:a}=this,i=this._viewState.searchRegExp;this._cachedSearchRegExp!==i&&(this._cachedSearchMatches=new Map,this._cachedSearchRegExp=i),e.fillStyle=nf.BACKGROUND,e.fillRect(a.origin.x,a.origin.y,a.size.width,a.size.height);const o=ed(this._intrinsicSize.width,r);let s=!1;t.forEach((r=>{s=this._drawSingleReactComponentMeasure(e,a,r,o,r===n)||s})),s||zf("(zoom or pan to see React components)",e,a,a,{fillStyle:nf.TEXT_DIM_COLOR,textAlign:"center"}),e.fillStyle=nf.PRIORITY_BORDER,e.fillRect(a.origin.x,a.origin.y+dd-rf,a.size.width,rf)}_handleMouseMove(e,r){const{frame:t,_intrinsicSize:n,onHover:a,visibleArea:i}=this;if(!a)return;const{location:o}=e.payload;if(!pf(o,i))return void a(null);const s=ed(n.width,t),l=td(o.x,s,t),c=this._profilerData.componentMeasures;for(let e=c.length-1;e>=0;e--){const t=c[e],{duration:n,timestamp:i}=t;if(l>=i&&l<=i+n)return this.currentCursor="context-menu",r.hoveredView=this,void a(t)}a(null)}handleInteraction(e,r){if("mousemove"===e.type)this._handleMouseMove(e,r)}}function hd(e,r){const{locationColumn:t,locationLine:n,scriptUrl:a}=r;if(null==a||null==t||null==n)return!1;if(a.includes("/react-devtools")||a.includes("/react_devtools")||a.includes("fmkadmapgofadopljbjfkapdkoienihi")||a.includes("dnjnjgbfilfphmojnmhliehogmojhclc")||a.includes("ikiahnapldjmdmpkmfhjdjilojjhgcbf"))return!0;const i=e.get(a);if(null!=i)for(let e=0;er.lineNumber||n===r.lineNumber&&t>=r.columnNumber,s=n>8,this._satSpace),l:pd(r>>16,this._lightnessSpace),a:pd(r>>24,this._alphaSpace)}}}({min:30,max:330},{min:50,max:80,count:3},85);function gd({scriptUrl:e}){return Sd.colorForID(e??"")}function bd(e){return md(gd(e))}function wd(e){return md(function(e,r){return{...e,l:e.l-r}}(gd(e),5))}Sd.setColorForID("",{h:43.6,s:45.8,l:90.6,a:100});class kd extends yf{constructor(e,r,t,n,a){super(e,r),_d(this,"_hoveredStackFrame",null),_d(this,"_onHover",null),_d(this,"_didGrab",!1),this._stackLayer=t,this._stackFrameSet=new Set(t),this._internalModuleSourceToRanges=n,this._intrinsicSize={width:a,height:14}}desiredSize(){return this._intrinsicSize}setHoveredFlamechartStackFrame(e){if(this._hoveredStackFrame===e)return;const r=e&&this._stackFrameSet.has(e)?e:null;this._hoveredStackFrame!==r&&(this._hoveredStackFrame=r,this.setNeedsDisplay())}draw(e){const{frame:r,_stackLayer:t,_hoveredStackFrame:n,_intrinsicSize:a,visibleArea:i}=this;e.fillStyle=nf.PRIORITY_BACKGROUND,e.fillRect(i.origin.x,i.origin.y,i.size.width,i.size.height);const o=ed(a.width,r);for(let a=0;a=1&&d<=s.x&&d+v>=s.x)return this.currentCursor="context-menu",r.hoveredView=this,void i(a);d>s.x?u=e-1:c=e+1}i(null)}handleInteraction(e,r){if("mousemove"===e.type)this._handleMouseMove(e,r)}}class Ed extends yf{constructor(e,r,t,n,a){super(e,r,wf),_d(this,"_flamechartRowViews",[]),_d(this,"_hoveredStackFrame",null),_d(this,"_onHover",null),this.setDataAndUpdateSubviews(t,n,a)}setDataAndUpdateSubviews(e,r,t){const{surface:n,frame:a,_onHover:i,_hoveredStackFrame:o}=this;this._verticalStackView&&(this.removeAllSubviews(),this._flamechartRowViews=[]),this._verticalStackView=new yf(n,a,kf),this._flamechartRowViews=e.map((e=>{const s=new kd(n,a,e,r,t);return this._verticalStackView.addSubview(s),s._onHover=i,s.setHoveredFlamechartStackFrame(o),s})),this.addSubview(new Df(n,a)),this.addSubview(this._verticalStackView)}setHoveredFlamechartStackFrame(e){this._hoveredStackFrame=e,this._flamechartRowViews.forEach((r=>r.setHoveredFlamechartStackFrame(e)))}setOnHover(e){this._onHover=e,this._flamechartRowViews.forEach((r=>r._onHover=e))}desiredSize(){return{...this._verticalStackView.desiredSize(),maxInitialHeight:0}}_handleMouseMove(e){const{_onHover:r,visibleArea:t}=this;if(!r)return;const{location:n}=e.payload;pf(n,t)||r(null)}handleInteraction(e){if("mousemove"===e.type)this._handleMouseMove(e)}}function yd(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}const Dd=14+rf;class Ad extends yf{constructor(e,r,t){super(e,r),yd(this,"_hoveredEvent",null),yd(this,"_maxDepth",0),yd(this,"onHover",null),this._profilerData=t,this._performPreflightComputations()}_performPreflightComputations(){this._depthToNativeEvent=new Map;const{duration:e,nativeEvents:r}=this._profilerData;r.forEach((e=>{const r=e.depth;this._maxDepth=Math.max(this._maxDepth,r),this._depthToNativeEvent.has(r)?this._depthToNativeEvent.get(r).push(e):this._depthToNativeEvent.set(r,[e])})),this._intrinsicSize={width:e,height:(this._maxDepth+1)*Dd,hideScrollBarIfLessThanHeight:Dd}}desiredSize(){return this._intrinsicSize}setHoveredEvent(e){this._hoveredEvent!==e&&(this._hoveredEvent=e,this.setNeedsDisplay())}_drawSingleNativeEvent(e,r,t,n,a,i){const{frame:o}=this,{depth:s,duration:l,timestamp:c,type:u,warning:f}=t;n+=s*Dd;const d=rd(c,a,o),v={origin:{x:d,y:n},size:{width:rd(c+l,a,o)-d,height:14}};if(!hf(v,r))return;if(nd(l,a)<1)return;const h=mf(v,r);e.beginPath(),e.fillStyle=null!==f?i?nf.WARNING_BACKGROUND_HOVER:nf.WARNING_BACKGROUND:i?nf.NATIVE_EVENT_HOVER:nf.NATIVE_EVENT,e.fillRect(h.origin.x,h.origin.y,h.size.width,h.size.height);zf(`${u} - ${ld(l)}`,e,v,h)}draw(e){const{frame:r,_profilerData:{nativeEvents:t},_hoveredEvent:n,visibleArea:a}=this;e.fillStyle=nf.PRIORITY_BACKGROUND,e.fillRect(a.origin.x,a.origin.y,a.size.width,a.size.height);const i=ed(this._intrinsicSize.width,r);t.forEach((t=>{this._drawSingleNativeEvent(e,a,t,r.origin.y,i,t===n)}));for(let t=0;t<=this._maxDepth;t++){const t={origin:{x:r.origin.x,y:r.origin.y+14},size:{width:r.size.width,height:rf}};if(hf(t,a)){const r=mf(t,a);e.fillStyle=nf.PRIORITY_BORDER,e.fillRect(r.origin.x,r.origin.y,r.size.width,r.size.height)}}}_handleMouseMove(e,r){const{frame:t,_intrinsicSize:n,onHover:a,visibleArea:i}=this;if(!a)return;const{location:o}=e.payload;if(!pf(o,i))return void a(null);const s=ed(n.width,t),l=td(o.x,s,t),c=o.y-t.origin.y,u=Math.floor(c/Dd),f=this._depthToNativeEvent.get(u);if(f)for(let e=f.length-1;e>=0;e--){const t=f[e],{duration:n,timestamp:i}=t;if(l>=i&&l<=i+n)return r.hoveredView=this,void a(t)}a(null)}handleInteraction(e,r){if("mousemove"===e.type)this._handleMouseMove(e,r)}}function Cd(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}const Md=14+rf,xd=/([^:]+:\/\/[^\/]+)/;class Td extends yf{constructor(e,r,t){super(e,r),Cd(this,"_hoveredNetworkMeasure",null),Cd(this,"_maxDepth",0),Cd(this,"onHover",null),this._profilerData=t,this._performPreflightComputations()}_performPreflightComputations(){this._depthToNetworkMeasure=new Map;const{duration:e,networkMeasures:r}=this._profilerData;r.forEach((e=>{const r=e.depth;this._maxDepth=Math.max(this._maxDepth,r),this._depthToNetworkMeasure.has(r)?this._depthToNetworkMeasure.get(r).push(e):this._depthToNetworkMeasure.set(r,[e])})),this._intrinsicSize={width:e,height:(this._maxDepth+1)*Md,maxInitialHeight:0}}desiredSize(){return this._intrinsicSize}setHoveredEvent(e){this._hoveredNetworkMeasure!==e&&(this._hoveredNetworkMeasure=e,this.setNeedsDisplay())}_drawSingleNetworkMeasure(e,r,t,n,a){const{frame:i,visibleArea:o}=this,{depth:s,finishTimestamp:l,firstReceivedDataTimestamp:c,lastReceivedDataTimestamp:u,receiveResponseTimestamp:f,sendRequestTimestamp:d,url:v}=r,h=this._profilerData.duration,m=l||u||h,p=f||c||m,_=rd(d,n,i),S=rd(p,n,i),g=rd(m,n,i);if(nd(g-_,n)<1)return;const b={origin:{x:_,y:t+=s*Md},size:{width:g-_,height:14}};if(!hf(b,o))return;let w={origin:{x:_,y:t},size:{width:g-_,height:14}};hf(w,o)&&(e.beginPath(),e.fillStyle=this._hoveredNetworkMeasure===r?nf.NETWORK_SECONDARY_HOVER:nf.NETWORK_SECONDARY,e.fillRect(w.origin.x,w.origin.y,w.size.width,w.size.height)),w={origin:{x:_+rf,y:t+rf},size:{width:S-_-rf,height:14-2*rf}},hf(w,o)&&(e.beginPath(),e.fillStyle=this._hoveredNetworkMeasure===r?nf.NETWORK_PRIMARY_HOVER:nf.NETWORK_PRIMARY,e.fillRect(w.origin.x,w.origin.y,w.size.width,w.size.height));const k=v.match(xd),E=null!==k?k[1]:v;zf((0!==l?`${ld(l-d)} - `:"")+E,e,b,o)}draw(e){const{frame:r,_profilerData:{networkMeasures:t},_hoveredNetworkMeasure:n,visibleArea:a}=this;e.fillStyle=nf.PRIORITY_BACKGROUND,e.fillRect(a.origin.x,a.origin.y,a.size.width,a.size.height);const i=ed(this._intrinsicSize.width,r);t.forEach((t=>{this._drawSingleNetworkMeasure(e,t,r.origin.y,i,t===n)}));for(let t=0;t<=this._maxDepth;t++){const n={origin:{x:r.origin.x,y:r.origin.y+(t+1)*Md-rf},size:{width:r.size.width,height:rf}};if(hf(n,a)){const r=mf(n,a);e.fillStyle=nf.PRIORITY_BORDER,e.fillRect(r.origin.x,r.origin.y,r.size.width,r.size.height)}}}_handleMouseMove(e,r){const{frame:t,_intrinsicSize:n,onHover:a,visibleArea:i}=this;if(!a)return;const{location:o}=e.payload;if(!pf(o,i))return void a(null);const s=ed(n.width,t),l=td(o.x,s,t),c=o.y-t.origin.y,u=Math.floor(c/Md),f=this._depthToNetworkMeasure.get(u),d=this._profilerData.duration;if(f)for(let e=f.length-1;e>=0;e--){const t=f[e],{finishTimestamp:n,lastReceivedDataTimestamp:i,sendRequestTimestamp:o}=t;if(l>=o&&l<=(n||i||d))return this.currentCursor="context-menu",r.hoveredView=this,void a(t)}r.hoveredView===this&&(r.hoveredView=null),a(null)}handleInteraction(e,r){if("mousemove"===e.type)this._handleMouseMove(e,r)}}function Hd(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}const Nd=14+rf;class Rd extends yf{constructor(e,r,t){super(e,r),Hd(this,"_hoveredMeasure",null),Hd(this,"onHover",null),this._profilerData=t,this._performPreflightComputations()}_performPreflightComputations(){this._lanesToRender=[];for(const[e,r]of this._profilerData.laneToReactMeasureMap)r.length>0&&this._lanesToRender.push(e);this._intrinsicSize={width:this._profilerData.duration,height:this._lanesToRender.length*Nd,hideScrollBarIfLessThanHeight:Nd,maxInitialHeight:5*Nd}}desiredSize(){return this._intrinsicSize}setHoveredMeasure(e){this._hoveredMeasure!==e&&(this._hoveredMeasure=e,this.setNeedsDisplay())}_drawSingleReactMeasure(e,r,t,n,a,i,o,s){const{frame:l,visibleArea:c}=this,{timestamp:u,type:f,duration:d}=t;let v=null,h=null,m=null,p=null;const _=nd(d,i);if(_<=0)return;const S=rd(u,i,l),g={origin:{x:S,y:a},size:{width:_,height:14}};if(!hf(g,r))return;const b=mf(g,r);let w=g;switch(f){case"commit":v=nf.REACT_COMMIT,h=nf.REACT_COMMIT_HOVER,m=nf.REACT_COMMIT_HOVER,p=nf.REACT_COMMIT_TEXT,null!=n&&n.timestamp=a.length)return void i(null);const f=a[u],d=ed(n.width,t),v=td(l.x,d,t),h=o.laneToReactMeasureMap.get(f);if(h){for(let e=h.length-1;e>=0;e--){const t=h[e],{duration:n,timestamp:a}=t;if(v>=a&&v<=a+n)return this.currentCursor="context-menu",r.hoveredView=this,void i(t)}i(null)}else i(null)}handleInteraction(e,r){if("mousemove"===e.type)this._handleMouseMove(e,r)}}function Id(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}class Od extends yf{constructor(e,r,t){super(e,r),Id(this,"_hoveredEvent",null),Id(this,"onHover",null),Id(this,"onClick",null),this._profilerData=t,this._intrinsicSize={width:this._profilerData.duration,height:14}}desiredSize(){return this._intrinsicSize}setHoveredEvent(e){this._hoveredEvent!==e&&(this._hoveredEvent=e,this.setNeedsDisplay())}_drawSingleSchedulingEvent(e,r,t,n,a,i){const{frame:o}=this,{timestamp:s,type:l,warning:c}=t,u=rd(s,a,o),f={origin:{x:u-3,y:n},size:{width:6,height:6}};if(!hf(f,r))return;let d=null;if(null!==c)d=i?nf.WARNING_BACKGROUND_HOVER:nf.WARNING_BACKGROUND;else switch(l){case"schedule-render":case"schedule-state-update":case"schedule-force-update":d=i?nf.REACT_SCHEDULE_HOVER:nf.REACT_SCHEDULE}if(null!==d){const r=f.origin.y+3;e.beginPath(),e.fillStyle=d,e.arc(u,r,3,0,2*Math.PI),e.fill()}}draw(e){const{frame:r,_profilerData:{schedulingEvents:t},_hoveredEvent:n,visibleArea:a}=this;e.fillStyle=nf.BACKGROUND,e.fillRect(a.origin.x,a.origin.y,a.size.width,a.size.height);const i=r.origin.y+4,o=ed(this._intrinsicSize.width,r),s=[];t.forEach((r=>{r!==n?this._drawSingleSchedulingEvent(e,a,r,i,o,!1):s.push(r)})),s.forEach((r=>{this._drawSingleSchedulingEvent(e,a,r,i,o,!0)}));const l={origin:{x:r.origin.x,y:r.origin.y+14-rf},size:{width:r.size.width,height:rf}};if(hf(l,a)){const r=mf(l,a);e.fillStyle=nf.REACT_WORK_BORDER,e.fillRect(r.origin.x,r.origin.y,r.size.width,r.size.height)}}_handleMouseMove(e,r){const{frame:t,onHover:n,visibleArea:a}=this;if(!n)return;const{location:i}=e.payload;if(!pf(i,a))return void n(null);const{_profilerData:{schedulingEvents:o}}=this,s=ed(this._intrinsicSize.width,t),l=td(i.x,s,t),c=ad(3,s);for(let e=o.length-1;e>=0;e--){const t=o[e],{timestamp:a}=t;if(a-c<=l&&l<=a+c)return this.currentCursor="pointer",r.hoveredView=this,void n(t)}n(null)}_handleClick(e){const{onClick:r}=this;if(r){const{_profilerData:{schedulingEvents:e}}=this,t=e.findIndex((e=>e===this._hoveredEvent));r(this._hoveredEvent,t>=0?t:null)}}handleInteraction(e,r){switch(e.type){case"mousemove":this._handleMouseMove(e,r);break;case"click":this._handleClick(e)}}}function Fd(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}class Pd extends yf{constructor(e,r,t){super(e,r),Fd(this,"_hoverLocation",null),Fd(this,"onHover",null),this._intrinsicSize={width:t.duration,height:t.snapshotHeight},this._profilerData=t}desiredSize(){return this._intrinsicSize}draw(e){const r=this._profilerData.snapshotHeight,{visibleArea:t}=this;e.fillStyle=nf.BACKGROUND,e.fillRect(t.origin.x,t.origin.y,t.size.width,t.size.height);const n=t.origin.y;let a=t.origin.x;for(;a{this._drawSnapshotImage(e,t,s)},r.src=t.imageSource}else this._drawSnapshotImage(e,t,s);a+=o+rf}const i=this._hoverLocation;if(null!==i){const r=3+2*rf,n=r/2;e.fillStyle=nf.SCRUBBER_BORDER,e.fillRect(i.x-n,t.origin.y,r,t.size.height),e.fillStyle=nf.SCRUBBER_BACKGROUND,e.fillRect(i.x-n+rf,t.origin.y,3,t.size.height)}}handleInteraction(e,r){switch(e.type){case"mousemove":case"wheel-control":case"wheel-meta":case"wheel-plain":case"wheel-shift":this._updateHover(e.payload.location,r)}}_drawSnapshotImage(e,r,t){const n=this.visibleArea,a=!uf(t,n);if(a){const r=mf(t,n);e.save(),e.beginPath(),e.rect(r.origin.x,r.origin.y,r.size.width,r.size.height),e.closePath(),e.clip()}e.fillStyle=nf.REACT_RESIZE_BAR_BORDER,e.fillRect(t.origin.x,t.origin.y,t.size.width,t.size.height),e.drawImage(r.image,0,0,r.width,r.height,t.origin.x+rf,t.origin.y+rf,t.size.width-2*rf,t.size.height-2*rf),a&&e.restore()}_findClosestSnapshot(e){const r=this.frame,t=ed(this._intrinsicSize.width,r),n=this._profilerData.snapshots;let a=0,i=n.length-1;for(;a<=i;){const o=Math.floor((a+i)/2),s=n[o],{timestamp:l}=s;e{const r=e.depth;this._maxDepth=Math.max(this._maxDepth,r),this._depthToSuspenseEvent.has(r)?this._depthToSuspenseEvent.get(r).push(e):this._depthToSuspenseEvent.set(r,[e])})),this._intrinsicSize={width:e,height:(this._maxDepth+1)*zd,hideScrollBarIfLessThanHeight:zd,maxInitialHeight:3*zd}}desiredSize(){return this._intrinsicSize}setHoveredEvent(e){this._hoveredEvent!==e&&(this._hoveredEvent=e,this.setNeedsDisplay())}_drawSingleSuspenseEvent(e,r,t,n,a,i){const{frame:o}=this,{componentName:s,depth:l,duration:c,phase:u,promiseName:f,resolution:d,timestamp:v,warning:h}=t;n+=l*zd;let m=null;if(null!==h)m=i?nf.WARNING_BACKGROUND_HOVER:nf.WARNING_BACKGROUND;else switch(d){case"rejected":m=i?nf.REACT_SUSPENSE_REJECTED_EVENT_HOVER:nf.REACT_SUSPENSE_REJECTED_EVENT;break;case"resolved":m=i?nf.REACT_SUSPENSE_RESOLVED_EVENT_HOVER:nf.REACT_SUSPENSE_RESOLVED_EVENT;break;case"unresolved":m=i?nf.REACT_SUSPENSE_UNRESOLVED_EVENT_HOVER:nf.REACT_SUSPENSE_UNRESOLVED_EVENT}const p=rd(v,a,o);if(null===c){const t=8,a=t/2,i=(n+=3)+a;if(!hf({origin:{x:p-a,y:n},size:{width:t,height:t}},r))return;e.beginPath(),e.fillStyle=m,e.moveTo(p,i-a),e.lineTo(p+a,i),e.lineTo(p,i+a),e.lineTo(p-a,i),e.fill()}else{const t={origin:{x:p,y:n},size:{width:rd(v+c,a,o)-p,height:14}};if(!hf(t,r))return;if(nd(c,a)<1)return;const i=mf(t,r);e.beginPath(),e.fillStyle=m,e.fillRect(i.origin.x,i.origin.y,i.size.width,i.size.height);let l="suspended";null!=f?l=f:null!=s&&(l=`${s} ${l}`),null!==u&&(l+=` during ${u}`),"unresolved"!==d&&(l+=` - ${ld(c)}`),zf(l,e,t,i)}}draw(e){const{frame:r,_profilerData:{suspenseEvents:t},_hoveredEvent:n,visibleArea:a}=this;e.fillStyle=nf.PRIORITY_BACKGROUND,e.fillRect(a.origin.x,a.origin.y,a.size.width,a.size.height);const i=ed(this._intrinsicSize.width,r);t.forEach((t=>{this._drawSingleSuspenseEvent(e,a,t,r.origin.y,i,t===n)}));for(let t=0;t<=this._maxDepth;t++){const n={origin:{x:r.origin.x,y:r.origin.y+(t+1)*zd-rf},size:{width:r.size.width,height:rf}};if(hf(n,a)){const r=mf(n,a);e.fillStyle=nf.REACT_WORK_BORDER,e.fillRect(r.origin.x,r.origin.y,r.size.width,r.size.height)}}}_handleMouseMove(e,r){const{frame:t,_intrinsicSize:n,onHover:a,visibleArea:i}=this;if(!a)return;const{location:o}=e.payload;if(!pf(o,i))return void a(null);const s=ed(n.width,t),l=td(o.x,s,t),c=o.y-t.origin.y,u=Math.floor(c/zd),f=this._depthToSuspenseEvent.get(u);if(f)for(let e=f.length-1;e>=0;e--){const t=f[e],{duration:n,timestamp:i}=t;if(null===n){const e=ad(4,s);if(i-e<=l&&l<=i+e)return this.currentCursor="context-menu",r.hoveredView=this,void a(t)}else if(l>=i&&l<=i+n)return this.currentCursor="context-menu",r.hoveredView=this,void a(t)}a(null)}handleInteraction(e,r){if("mousemove"===e.type)this._handleMouseMove(e,r)}}function Vd(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}class Ud extends yf{constructor(e,r,t){super(e,r),Vd(this,"_hoveredEvent",null),Vd(this,"onHover",null),this._profilerData=t,this._intrinsicSize={width:this._profilerData.duration,height:14}}desiredSize(){return this._intrinsicSize}setHoveredEvent(e){this._hoveredEvent!==e&&(this._hoveredEvent=e,this.setNeedsDisplay())}_drawSingleThrownError(e,r,t,n,a,i){const{frame:o}=this,{timestamp:s}=t,l=rd(s,a,o),c={origin:{x:l-3,y:n},size:{width:6,height:6}};if(!hf(c,r))return;const u=i?nf.REACT_THROWN_ERROR_HOVER:nf.REACT_THROWN_ERROR,f=c.origin.y+3;e.beginPath(),e.fillStyle=u,e.arc(l,f,3,0,2*Math.PI),e.fill()}draw(e){const{frame:r,_profilerData:{thrownErrors:t},_hoveredEvent:n,visibleArea:a}=this;e.fillStyle=nf.BACKGROUND,e.fillRect(a.origin.x,a.origin.y,a.size.width,a.size.height);const i=r.origin.y+4,o=ed(this._intrinsicSize.width,r),s=[];t.forEach((r=>{r!==n?this._drawSingleThrownError(e,a,r,i,o,!1):s.push(r)})),s.forEach((r=>{this._drawSingleThrownError(e,a,r,i,o,!0)}));const l={origin:{x:r.origin.x,y:r.origin.y+14-rf},size:{width:r.size.width,height:rf}};if(hf(l,a)){const r=mf(l,a);e.fillStyle=nf.REACT_WORK_BORDER,e.fillRect(r.origin.x,r.origin.y,r.size.width,r.size.height)}}_handleMouseMove(e,r){const{frame:t,onHover:n,visibleArea:a}=this;if(!n)return;const{location:i}=e.payload;if(!pf(i,a))return void n(null);const{_profilerData:{thrownErrors:o}}=this,s=ed(this._intrinsicSize.width,t),l=td(i.x,s,t),c=ad(3,s);for(let e=o.length-1;e>=0;e--){const t=o[e],{timestamp:a}=t;if(a-c<=l&&l<=a+c)return this.currentCursor="context-menu",r.hoveredView=this,void n(t)}n(null)}handleInteraction(e,r){if("mousemove"===e.type)this._handleMouseMove(e,r)}}const Wd=20+rf,jd=80+rf;class $d extends yf{constructor(e,r,t){super(e,r),this._totalDuration=t,this._intrinsicSize={width:this._totalDuration,height:Wd}}desiredSize(){return this._intrinsicSize}_getTimeTickInterval(e){for(let r=0;r70)return t}return tf[0]}draw(e){const{frame:r,_intrinsicSize:t,visibleArea:n}=this,a={origin:r.origin,size:{width:r.size.width,height:t.height}},i=mf(a,n);e.fillStyle=nf.BACKGROUND,e.fillRect(i.origin.x,i.origin.y,i.size.width,i.size.height);const o=ed(t.width,a),s=this._getTimeTickInterval(o);for(let r=Math.ceil(td(i.origin.x-jd,o,a)/s)*s;;r+=s){if(r<=0)continue;const t=rd(r,o,a);if(t>i.origin.x+i.size.width)break;const n=Math.round(r);e.fillStyle=nf.PRIORITY_BORDER,e.fillRect(t,i.origin.y+20-8,rf,8),e.fillStyle=nf.TIME_MARKER_LABEL,e.textAlign="right",e.textBaseline="middle",e.font=`${ef}px sans-serif`,e.fillText(`${n}ms`,t-8,10)}const l={origin:{x:a.origin.x,y:a.origin.y+a.size.height-rf},size:{width:a.size.width,height:rf}};if(hf(l,n)){const r=mf(l,n);e.fillStyle=nf.PRIORITY_BORDER,e.fillRect(r.origin.x,r.origin.y,r.size.width,r.size.height)}}}function Xd(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}class Gd extends yf{constructor(e,r,t,n){super(e,r),Xd(this,"_hoveredMark",null),Xd(this,"onHover",null),this._marks=t,this._intrinsicSize={width:n,height:16}}desiredSize(){return this._intrinsicSize}setHoveredMark(e){this._hoveredMark!==e&&(this._hoveredMark=e,this.setNeedsDisplay())}_drawSingleMark(e,r,t,n,a,i){const{frame:o}=this,{timestamp:s}=t,l=rd(s,a,o);if(!hf({origin:{x:l-4,y:n},size:{width:8,height:8}},r))return;const c=i?nf.USER_TIMING_HOVER:nf.USER_TIMING;if(null!==c){const r=n+4;e.beginPath(),e.fillStyle=c,e.moveTo(l,r-4),e.lineTo(l+4,r),e.lineTo(l,r+4),e.lineTo(l-4,r),e.fill()}}draw(e){const{frame:r,_marks:t,_hoveredMark:n,visibleArea:a}=this;e.fillStyle=nf.BACKGROUND,e.fillRect(a.origin.x,a.origin.y,a.size.width,a.size.height);const i=r.origin.y+4,o=ed(this._intrinsicSize.width,r);t.forEach((r=>{r!==n&&this._drawSingleMark(e,a,r,i,o,!1)})),null!==n&&this._drawSingleMark(e,a,n,i,o,!0);const s={origin:{x:r.origin.x,y:r.origin.y+16-rf},size:{width:r.size.width,height:rf}};if(hf(s,a)){const r=mf(s,a);e.fillStyle=nf.PRIORITY_BORDER,e.fillRect(r.origin.x,r.origin.y,r.size.width,r.size.height)}}_handleMouseMove(e,r){const{frame:t,onHover:n,visibleArea:a}=this;if(!n)return;const{location:i}=e.payload;if(!pf(i,a))return void n(null);const{_marks:o}=this,s=ed(this._intrinsicSize.width,t),l=td(i.x,s,t),c=ad(4,s);for(let e=o.length-1;e>=0;e--){const t=o[e],{timestamp:a}=t;if(a-c<=l&&l<=a+c)return r.hoveredView=this,void n(t)}n(null)}handleInteraction(e,r){if("mousemove"===e.type)this._handleMouseMove(e,r)}}const Kd=of((function(e,r,t=0){const n=r.batchUIDToMeasuresMap.get(e);if(null==n||0===n.length)throw Error(`Could not find measures with batch UID "${e}"`);const a=n[n.length-1],i=a.timestamp+a.duration;if(i=t){o=r.timestamp;break}}return[o,i]})),qd=10,Yd=5;const Qd={Tooltip:"N3EGKzrGIkBOWEWDf9L7",TooltipSection:"AzaWiYKucXJKkE2mLtJl",TooltipWarningSection:"egwTq8xaZYmu5AwzN7q3",SingleLineTextSection:"I89UegKZ4CVKZ4fZi70A",Divider:"VNOllhItld4Pgmtf5Ppw",DetailsGrid:"MPvO_4SSYDzHNp4lE94K",DetailsGridLabel:"sZnI6xuf_7orBe2Asxn_",DetailsGridLongValue:"M0WUFL6gXSNmExgreLwO",FlamechartStackFrameName:"d9f4tr7dJUEW6jrEDyOt",ComponentName:"ejuIKX4HIM2d9POSXI85",ReactMeasureLabel:"s2XYTneQ2NK7qdHee2Jn",UserTimingLabel:"GMAYJazv4K7ZpOr97hCQ",NativeEventName:"w6QmYYdfsQPk6sau6zog",WarningText:"XGcHiWMwrBc5c2KR8wLv",Image:"Y4pd_lwDQuEbGYYczxPw",DimText:"F9Q4ycxrR5Cx58QdXTQF"};function Jd({canvasRef:e,data:t,height:n,hoveredEvent:a,origin:i,width:o}){const s=function({canvasRef:e,mouseX:t,mouseY:n}){const a=(0,r.useRef)(null);let i=window.innerHeight,o=window.innerWidth;const s=e.current;if(null!==s){const e=s.getBoundingClientRect();i=e.top+e.height,o=e.left+e.width}return(0,r.useLayoutEffect)((()=>{const e=a.current;null!==e&&(n+qd+e.offsetHeight>=i?n-Yd-e.offsetHeight>0?e.style.top=n-e.offsetHeight-Yd+"px":e.style.top="0px":e.style.top=`${n+qd}px`,t+qd+e.offsetWidth>=o?t-Yd-e.offsetWidth>0?e.style.left=t-e.offsetWidth-Yd+"px":e.style.left="0px":e.style.left=`${t+qd}px`)})),a}({canvasRef:e,mouseX:i.x,mouseY:i.y});if(null===a)return null;const{componentMeasure:l,flamechartStackFrame:c,measure:u,nativeEvent:f,networkMeasure:d,schedulingEvent:v,snapshot:h,suspenseEvent:m,thrownError:p,userTimingMark:_}=a;let S=null;return null!==l?S=r.createElement(Zd,{componentMeasure:l}):null!==f?S=r.createElement(rv,{nativeEvent:f}):null!==d?S=r.createElement(tv,{networkMeasure:d}):null!==v?S=r.createElement(nv,{data:t,schedulingEvent:v}):null!==h?S=r.createElement(av,{height:n,snapshot:h,width:o}):null!==m?S=r.createElement(iv,{suspenseEvent:m}):null!==u?S=r.createElement(ov,{data:t,measure:u}):null!==c?S=r.createElement(ev,{stackFrame:c}):null!==_?S=r.createElement(sv,{mark:_}):null!==p&&(S=r.createElement(lv,{thrownError:p})),null!==S?r.createElement("div",{className:Qd.Tooltip,ref:s},S):null}const Zd=({componentMeasure:e})=>{const{componentName:t,duration:n,timestamp:a,type:i,warning:o}=e;let s=t;switch(i){case"render":s+=" rendered";break;case"layout-effect-mount":s+=" mounted layout effect";break;case"layout-effect-unmount":s+=" unmounted layout effect";break;case"passive-effect-mount":s+=" mounted passive effect";break;case"passive-effect-unmount":s+=" unmounted passive effect"}return r.createElement(r.Fragment,null,r.createElement("div",{className:Qd.TooltipSection},cd(s,768),r.createElement("div",{className:Qd.Divider}),r.createElement("div",{className:Qd.DetailsGrid},r.createElement("div",{className:Qd.DetailsGridLabel},"Timestamp:"),r.createElement("div",null,sd(a)),r.createElement("div",{className:Qd.DetailsGridLabel},"Duration:"),r.createElement("div",null,ld(n)))),null!==o&&r.createElement("div",{className:Qd.TooltipWarningSection},r.createElement("div",{className:Qd.WarningText},o)))},ev=({stackFrame:e})=>{const{name:t,timestamp:n,duration:a,locationLine:i,locationColumn:o}=e;return r.createElement("div",{className:Qd.TooltipSection},r.createElement("span",{className:Qd.FlamechartStackFrameName},t),r.createElement("div",{className:Qd.DetailsGrid},r.createElement("div",{className:Qd.DetailsGridLabel},"Timestamp:"),r.createElement("div",null,sd(n)),r.createElement("div",{className:Qd.DetailsGridLabel},"Duration:"),r.createElement("div",null,ld(a)),(void 0!==i||void 0!==o)&&r.createElement(r.Fragment,null,r.createElement("div",{className:Qd.DetailsGridLabel},"Location:"),r.createElement("div",null,"line ",i,", column ",o))))},rv=({nativeEvent:e})=>{const{duration:t,timestamp:n,type:a,warning:i}=e;return r.createElement(r.Fragment,null,r.createElement("div",{className:Qd.TooltipSection},r.createElement("span",{className:Qd.NativeEventName},cd(a,768)),"event",r.createElement("div",{className:Qd.Divider}),r.createElement("div",{className:Qd.DetailsGrid},r.createElement("div",{className:Qd.DetailsGridLabel},"Timestamp:"),r.createElement("div",null,sd(n)),r.createElement("div",{className:Qd.DetailsGridLabel},"Duration:"),r.createElement("div",null,ld(t)))),null!==i&&r.createElement("div",{className:Qd.TooltipWarningSection},r.createElement("div",{className:Qd.WarningText},i)))},tv=({networkMeasure:e})=>{const{finishTimestamp:t,lastReceivedDataTimestamp:n,priority:a,sendRequestTimestamp:i,url:o}=e;let s=o;if(s.length>60){const e=Math.floor(30);s=o.slice(0,e)+"…"+o.slice(o.length-e)}const l=(t||n)>0?ld(t-i):"(incomplete)";return r.createElement("div",{className:Qd.SingleLineTextSection},l," ",r.createElement("span",{className:Qd.DimText},a)," ",s)},nv=({data:e,schedulingEvent:t})=>{const n=ud(t);if(!n)return null;let a=null,i=null;switch(t.type){case"schedule-render":case"schedule-state-update":case"schedule-force-update":i=t.lanes,a=i.map((r=>e.laneToLabelMap.get(r)))}const{componentName:o,timestamp:s,warning:l}=t;return r.createElement(r.Fragment,null,r.createElement("div",{className:Qd.TooltipSection},o&&r.createElement("span",{className:Qd.ComponentName},cd(o,100)),n,r.createElement("div",{className:Qd.Divider}),r.createElement("div",{className:Qd.DetailsGrid},null!==a&&null!==i&&r.createElement(r.Fragment,null,r.createElement("div",{className:Qd.DetailsGridLabel},"Lanes:"),r.createElement("div",null,a.join(", ")," (",i.join(", "),")")),r.createElement("div",{className:Qd.DetailsGridLabel},"Timestamp:"),r.createElement("div",null,sd(s)))),null!==l&&r.createElement("div",{className:Qd.TooltipWarningSection},r.createElement("div",{className:Qd.WarningText},l)))},av=({height:e,snapshot:t,width:n})=>{const a=t.width/t.height;let i=t.width,o=t.height;return i>n&&(i=n,o=i/a),o>e&&(o=e,i=o*a),r.createElement("img",{className:Qd.Image,src:t.imageSource,style:{height:o,width:i}})},iv=({suspenseEvent:e})=>{const{componentName:t,duration:n,phase:a,promiseName:i,resolution:o,timestamp:s,warning:l}=e;let c="suspended";return null!==a&&(c+=` during ${a}`),r.createElement(r.Fragment,null,r.createElement("div",{className:Qd.TooltipSection},t&&r.createElement("span",{className:Qd.ComponentName},cd(t,100)),c,r.createElement("div",{className:Qd.Divider}),r.createElement("div",{className:Qd.DetailsGrid},null!==i&&r.createElement(r.Fragment,null,r.createElement("div",{className:Qd.DetailsGridLabel},"Resource:"),r.createElement("div",{className:Qd.DetailsGridLongValue},i)),r.createElement("div",{className:Qd.DetailsGridLabel},"Status:"),r.createElement("div",null,o),r.createElement("div",{className:Qd.DetailsGridLabel},"Timestamp:"),r.createElement("div",null,sd(s)),null!==n&&r.createElement(r.Fragment,null,r.createElement("div",{className:Qd.DetailsGridLabel},"Duration:"),r.createElement("div",null,ld(n))))),null!==l&&r.createElement("div",{className:Qd.TooltipWarningSection},r.createElement("div",{className:Qd.WarningText},l)))},ov=({data:e,measure:t})=>{const n=function(e){switch(e){case"commit":return"react commit";case"render-idle":return"react idle";case"render":return"react render";case"layout-effects":return"react layout effects";case"passive-effects":return"react passive effects";default:return null}}(t.type);if(!n)return null;const{batchUID:a,duration:i,timestamp:o,lanes:s}=t,[l,c]=Kd(a,e),u=s.map((r=>e.laneToLabelMap.get(r)));return r.createElement("div",{className:Qd.TooltipSection},r.createElement("span",{className:Qd.ReactMeasureLabel},n),r.createElement("div",{className:Qd.Divider}),r.createElement("div",{className:Qd.DetailsGrid},r.createElement("div",{className:Qd.DetailsGridLabel},"Timestamp:"),r.createElement("div",null,sd(o)),"render-idle"!==t.type&&r.createElement(r.Fragment,null,r.createElement("div",{className:Qd.DetailsGridLabel},"Duration:"),r.createElement("div",null,ld(i))),r.createElement("div",{className:Qd.DetailsGridLabel},"Batch duration:"),r.createElement("div",null,ld(c-l)),r.createElement("div",{className:Qd.DetailsGridLabel},"Lane",1===s.length?"":"s",":"),r.createElement("div",null,u.length>0?`${u.join(", ")} (${s.join(", ")})`:s.join(", "))))},sv=({mark:e})=>{const{name:t,timestamp:n}=e;return r.createElement("div",{className:Qd.TooltipSection},r.createElement("span",{className:Qd.UserTimingLabel},t),r.createElement("div",{className:Qd.Divider}),r.createElement("div",{className:Qd.DetailsGrid},r.createElement("div",{className:Qd.DetailsGridLabel},"Timestamp:"),r.createElement("div",null,sd(n))))},lv=({thrownError:e})=>{const{componentName:t,message:n,phase:a,timestamp:i}=e,o=`threw an error during ${a}`;return r.createElement("div",{className:Qd.TooltipSection},t&&r.createElement("span",{className:Qd.ComponentName},cd(t,100)),r.createElement("span",{className:Qd.UserTimingLabel},o),r.createElement("div",{className:Qd.Divider}),r.createElement("div",{className:Qd.DetailsGrid},r.createElement("div",{className:Qd.DetailsGridLabel},"Timestamp:"),r.createElement("div",null,sd(i)),""!==n&&r.createElement(r.Fragment,null,r.createElement("div",{className:Qd.DetailsGridLabel},"Error:"),r.createElement("div",null,n))))},cv=[];function uv(e,r){let{searchIndex:t,searchRegExp:n,searchResults:a,searchText:i}=e;switch(r.type){case"GO_TO_NEXT_SEARCH_RESULT":a.length>0&&(-1===t||t+1===a.length?t=0:t++);break;case"GO_TO_PREVIOUS_SEARCH_RESULT":a.length>0&&(-1===t||0===t?t=a.length-1:t--);break;case"SET_SEARCH_TEXT":if(i=r.payload,n=null,a=[],""!==i){const r=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");n=new RegExp(`^${r}`,"i");let o=null;t>=0&&a.length>t&&(o=a[t]);const s=e.profilerData.componentMeasures;let l=-1;for(let e=0;e=0?l:0}}return{profilerData:e.profilerData,searchIndex:t,searchRegExp:n,searchResults:a,searchText:i}}const fv=(0,r.createContext)(null);function dv({children:e,profilerData:t,viewState:n}){const[a,i]=(0,r.useReducer)(uv,{profilerData:t,searchIndex:-1,searchRegExp:null,searchResults:cv,searchText:""}),o=(0,r.useMemo)((()=>({...a,dispatch:i})),[a]);return r.createElement(fv.Provider,{value:o},e)}function vv({canvasRef:e,timelineData:t,hoveredEvent:n,viewState:a,canvasWidth:i,closedMenuStub:o,ref:s}){const l=(0,r.useMemo)((()=>{if(null==n)return[];const{componentMeasure:e,flamechartStackFrame:r,measure:o,networkMeasure:s,schedulingEvent:l,suspenseEvent:c}=n,u=[];return null!=e&&u.push({onClick:()=>(0,f.copy)(e.componentName),content:"Copy component name"}),null!=s&&u.push({onClick:()=>(0,f.copy)(s.url),content:"Copy URL"}),null!=l&&u.push({onClick:()=>(0,f.copy)(l.componentName),content:"Copy component name"}),null!=c&&u.push({onClick:()=>(0,f.copy)(c.componentName),content:"Copy component name"}),null!=o&&u.push({onClick:()=>function(e,r,t,n){const{batchUID:a}=r,[i,o]=Kd(a,e),s=Hf({state:t.horizontalScrollState,rangeStart:i,rangeEnd:o,contentLength:e.duration,minContentLength:e.duration*Rf,maxContentLength:e.duration*If,containerLength:n});t.updateHorizontalScrollState(s)}(t,o,a,i),content:"Zoom to batch"},{onClick:()=>function(e,r){const{batchUID:t,duration:n,timestamp:a,type:i}=r,[o,s]=Kd(t,e);(0,f.copy)(JSON.stringify({type:i,timestamp:od()(a),duration:od()(n),batchDuration:od()(s-o)}))}(t,o),content:"Copy summary"}),null!=r&&u.push({onClick:()=>(0,f.copy)(r.scriptUrl),content:"Copy file path"},{onClick:()=>(0,f.copy)(`line ${r.locationLine??""}, column ${r.locationColumn??""}`),content:"Copy location"}),u}),[n,a,i]);return r.createElement(Il,{anchorElementRef:e,items:l,closedMenuStub:o,ref:s})}fv.displayName="TimelineSearchContext";const hv="OEnj08490n7qDJm7CNI8";const mv={componentMeasure:null,flamechartStackFrame:null,measure:null,nativeEvent:null,networkMeasure:null,schedulingEvent:null,snapshot:null,suspenseEvent:null,thrownError:null,userTimingMark:null};function pv({data:e,height:t,viewState:n,width:a}){const i=(0,r.useRef)(null),[o,s]=(0,r.useState)(sf),[l,c]=(0,r.useState)(null),[u,f]=(0,r.useState)(null),d=(0,r.useRef)(null),v=(0,r.useCallback)((()=>c(mv)),[]),h=(0,r.useCallback)((e=>{if(c(e),d.current?.isShown())return;const{componentMeasure:r,flamechartStackFrame:t,measure:n,networkMeasure:a,schedulingEvent:i,suspenseEvent:o}=e;null==r&&null==t&&null==n&&null==a&&null==i&&null==o||f(e)}),[d]),{searchIndex:m,searchRegExp:p,searchResults:_}=(0,r.useContext)(fv);(0,r.useLayoutEffect)((()=>{n.updateSearchRegExpState(p);const r=_.length>0?_[m]:null;if(null!=r){const t=Hf({state:n.horizontalScrollState,rangeStart:r.timestamp,rangeEnd:r.timestamp+r.duration,contentLength:e.duration,minContentLength:e.duration*Rf,maxContentLength:e.duration*If,containerLength:a});n.updateHorizontalScrollState(t)}S.current.displayIfNeeded()}),[m,p,_,n]);const S=(0,r.useRef)(new Sf(v)),g=(0,r.useRef)(null),b=(0,r.useRef)(null),w=(0,r.useRef)(null),k=(0,r.useRef)(null),E=(0,r.useRef)(null),y=(0,r.useRef)(null),D=(0,r.useRef)(null),A=(0,r.useRef)(null),C=(0,r.useRef)(null),M=(0,r.useRef)(null);(0,r.useLayoutEffect)((()=>{const r=S.current,o={origin:sf,size:{width:a,height:t}};function s(t,a,s=!1,l=!1){let c=null;s&&(c=new Ff(r,o,t,n,a));const u=new Of(r,o,null!==c?c:t,e.duration,n);let f=null;return l&&(f=new Wf(r,o,u,n,i,a)),f||u}n.onHorizontalScrollStateChange((e=>{d.current?.hide()})),n.updateHorizontalScrollState(xf({state:n.horizontalScrollState,minContentLength:e.duration*Rf,maxContentLength:e.duration*If,containerLength:o.size.width}));const l=s(new $d(r,o,e.duration),"time");let c=null;if(e.otherUserTimingMarks.length>0){const t=new Gd(r,o,e.otherUserTimingMarks,e.duration);g.current=t,c=s(t,"user timing api")}let u=null;if(e.nativeEvents.length>0){const t=new Ad(r,o,e);b.current=t,u=s(t,"events",!0,!0)}let f=null;if(e.thrownErrors.length>0){const t=new Ud(r,o,e);M.current=t,f=s(t,"thrown errors")}let v=null;if(e.schedulingEvents.length>0){const t=new Od(r,o,e);w.current=t,v=s(t,"react updates")}let h=null;if(e.suspenseEvents.length>0){const t=new Bd(r,o,e);k.current=t,h=s(t,"suspense",!0,!0)}const m=new Rd(r,o,e);y.current=m;const p=s(m,"react scheduling",!0,!0);let _=null;if(e.componentMeasures.length>0){const t=new vd(r,o,e,n);E.current=t,_=s(t,"react components")}let x=null;if(e.snapshots.length>0){const t=new Pd(r,o,e);C.current=t,x=s(t,"snapshots",!0,!0)}let T=null;if(e.snapshots.length>0){const t=new Td(r,o,e);A.current=t,T=s(t,"network",!0,!0)}let H=null;if(e.flamechart.length>0){const t=new Ed(r,o,e.flamechart,e.internalModuleSourceToRanges,e.duration);D.current=t,H=s(t,"flamechart",!0,!0)}const N=new yf(r,o,kf,o,nf.BACKGROUND);N.addSubview(l),null!==c&&N.addSubview(c),null!==u&&N.addSubview(u),null!==v&&N.addSubview(v),null!==f&&N.addSubview(f),null!==h&&N.addSubview(h),null!==p&&N.addSubview(p),null!==_&&N.addSubview(_),null!==x&&N.addSubview(x),null!==T&&N.addSubview(T),null!==H&&N.addSubview(H);const R=new Yf(r,o,N,n);S.current.rootView=R}),[e]),(0,r.useLayoutEffect)((()=>{i.current&&S.current.setCanvas(i.current,{width:a,height:t})}),[a,t]);const x=(0,r.useCallback)((e=>{const r=i.current;if(null===r)return;const t=S.current;t.handleInteraction(e),t.displayIfNeeded(),r.style.cursor=t.getCurrentCursor()||"default",s({x:e.payload.event.x,y:e.payload.event.y})}),[]);Gf(i,x);const{selectEvent:T}=(0,r.useContext)(mu);return(0,r.useEffect)((()=>{const{current:e}=g;e&&(e.onHover=e=>{l&&l.userTimingMark===e||h({...mv,userTimingMark:e})});const{current:r}=b;r&&(r.onHover=e=>{l&&l.nativeEvent===e||h({...mv,nativeEvent:e})});const{current:t}=w;t&&(t.onHover=e=>{l&&l.schedulingEvent===e||h({...mv,schedulingEvent:e})},t.onClick=e=>{T({...mv,schedulingEvent:e})});const{current:n}=k;n&&(n.onHover=e=>{l&&l.suspenseEvent===e||h({...mv,suspenseEvent:e})});const{current:a}=y;a&&(a.onHover=e=>{l&&l.measure===e||h({...mv,measure:e})});const{current:i}=E;i&&(i.onHover=e=>{l&&l.componentMeasure===e||h({...mv,componentMeasure:e})});const{current:o}=C;o&&(o.onHover=e=>{l&&l.snapshot===e||h({...mv,snapshot:e})});const{current:s}=D;s&&s.setOnHover((e=>{l&&l.flamechartStackFrame===e||h({...mv,flamechartStackFrame:e})}));const{current:c}=A;c&&(c.onHover=e=>{l&&l.networkMeasure===e||h({...mv,networkMeasure:e})});const{current:u}=M;u&&(u.onHover=e=>{l&&l.thrownError===e||h({...mv,thrownError:e})})}),[l,e]),(0,r.useLayoutEffect)((()=>{const e=g.current;e&&e.setHoveredMark(l?l.userTimingMark:null);const r=b.current;r&&r.setHoveredEvent(l?l.nativeEvent:null);const t=w.current;t&&t.setHoveredEvent(l?l.schedulingEvent:null);const n=k.current;n&&n.setHoveredEvent(l?l.suspenseEvent:null);const a=y.current;a&&a.setHoveredMeasure(l?l.measure:null);const i=D.current;i&&i.setHoveredFlamechartStackFrame(l?l.flamechartStackFrame:null);const o=A.current;o&&o.setHoveredEvent(l?l.networkMeasure:null)}),[l]),(0,r.useLayoutEffect)((()=>{S.current.displayIfNeeded()})),r.createElement(r.Fragment,null,r.createElement("canvas",{ref:i,height:t,width:a}),r.createElement(vv,{canvasRef:i,hoveredEvent:u,timelineData:e,viewState:n,canvasWidth:a,closedMenuStub:S.current.hasActiveView()?null:r.createElement(Jd,{canvasRef:i,data:e,height:t,hoveredEvent:l,origin:o,width:a}),ref:d}))}const _v=function({profilerData:e,viewState:t}){return r.createElement("div",{className:hv,style:{backgroundColor:nf.BACKGROUND}},r.createElement(Ar,null,(({height:n,width:a})=>r.createElement(pv,{data:e,height:n,viewState:t,width:a}))))};a(853);var Sv=a(41);const gv=31,bv=1,wv=60;class kv extends Error{}var Ev=a(715),yv=a.n(Ev);const Dv=20,Av=20,Cv={LONG_EVENT_HANDLER:"An event handler scheduled a big update with React. Consider using the Transition API to defer some of this work.",NESTED_UPDATE:"A big nested update was scheduled during layout. Nested updates require React to re-render synchronously before the browser can paint. Consider delaying this update by moving it to a passive effect (useEffect).",SUSPEND_DURING_UPDATE:"A component suspended during an update which caused a fallback to be shown. Consider using the Transition API to avoid hiding components after they've been mounted."};function Mv(e){const r=parseInt(e,10);if(r<0)return[];const t=[];let n=0;for(;n<=gv;)1<0){const{depth:r,type:t}=e[e.length-1];return"render-idle"===t?r:r+1}return 0}(o),l={type:e,batchUID:i,depth:s,lanes:t,timestamp:r,duration:0};a.measureStack.push({depth:s,measure:l,startTime:r,type:e});const c=n.batchUIDToMeasuresMap.get(i);null!=c?c.push(l):n.batchUIDToMeasuresMap.set(a.batchUID,[l]),t.forEach((e=>{n.laneToReactMeasureMap.get(e).push(l)}))}function Hv(e,r,t,n){if(0===n.length)return void console.error('Unexpected type "%s" completed at %sms while stack is empty.',e,r);const a=n[n.length-1];a.type!==e&&console.error('Unexpected type "%s" completed at %sms before "%s" completed.',e,r,a.type);const{measure:i,startTime:o}=n.pop();i||console.error('Could not find matching measure for type "%s".',e),i.duration=r-o}function Nv(e,r,t){const{cat:n,name:a,ts:i,ph:o}=e,s=(i-r.startTime)/1e3;switch(n){case"disabled-by-default-devtools.screenshot":!function(e,r,t,n){const a={height:0,image:null,imageSource:`data:image/png;base64,${e.args.snapshot}`,timestamp:r,width:0};let i=null;n.asyncProcessingPromises.push(new Promise((e=>{i=e}))),fetch(a.imageSource).then((e=>e.blob())).then((e=>{createImageBitmap(e).then((e=>{a.height=e.height,a.width=e.width,i()}))})),t.snapshots.push(a)}(e,s,r,t);break;case"devtools.timeline":switch(a){case"EventDispatch":!function(e,r,t,n){const a=e.args.data,i=a.type;if(i.startsWith("react-")){const e=a.stackTrace;if(e&&e[e.length-1].url.includes("/react-dom."))return}if("blur"===i||"click"===i||"input"===i||i.startsWith("focus")||i.startsWith("key")||i.startsWith("mouse")||i.startsWith("pointer")){const a=e.dur/1e3;let o=0;for(;n.nativeEventStack.length>0;){const e=n.nativeEventStack[n.nativeEventStack.length-1];if(r{o[e]=!1}));let s=0;for(let e=0;e"commit"===e))&&(t.potentialLongNestedUpdate=i),r.schedulingEvents.push(i)}else if(a.startsWith("--schedule-state-update-")){const[e,n]=a.slice(24).split("-"),i={type:"schedule-state-update",lanes:Mv(e),componentName:n,timestamp:s,warning:null};t.measureStack.find((({type:e})=>"commit"===e))&&(t.potentialLongNestedUpdate=i),r.schedulingEvents.push(i)}else if(a.startsWith("--error-")){const[e,t,n]=a.slice(8).split("-");r.thrownErrors.push({componentName:e,message:n,phase:t,timestamp:s,type:"thrown-error"})}else if(a.startsWith("--suspense-suspend-")){const[e,n,i,o,l]=a.slice(19).split("-"),c=Mv(o),u=new Array(t.unresolvedSuspenseEvents.size+1).fill(!0);t.unresolvedSuspenseEvents.forEach((({depth:e})=>{u[e]=!1}));let f=0;for(let e=0;e=0){const n=r[t];if(void 0===n.stopTime&&n.type===e)throw new kv(`Unexpected type "${e}" started before "${n.type}" completed.`)}}("render",t.measureStack),"render-idle"!==function(e){if(e.length>0){const{type:r}=e[e.length-1];return r}return null}(t.measureStack)&&Tv("render-idle",s,Mv(e),r,t),Tv("render",s,Mv(e),r,t);for(let e=0;es&&t.potentialLongEvents.push([r,t.batchUID])}}else if(a.startsWith("--render-stop")||a.startsWith("--render-yield"))Hv("render",s,0,t.measureStack);else if(a.startsWith("--commit-start-")){t.nextRenderShouldGenerateNewBatchID=!0;const[e]=a.slice(15).split("-");Tv("commit",s,Mv(e),r,t)}else if(a.startsWith("--commit-stop"))Hv("commit",s,0,t.measureStack),Hv("render-idle",s,0,t.measureStack);else if(a.startsWith("--layout-effects-start-")){const[e]=a.slice(23).split("-");Tv("layout-effects",s,Mv(e),r,t)}else if(a.startsWith("--layout-effects-stop"))Hv("layout-effects",s,0,t.measureStack);else if(a.startsWith("--passive-effects-start-")){const[e]=a.slice(24).split("-");Tv("passive-effects",s,Mv(e),r,t)}else if(a.startsWith("--passive-effects-stop"))Hv("passive-effects",s,0,t.measureStack);else if(a.startsWith("--react-internal-module-start-")){const e=a.slice(30);if(!t.internalModuleStackStringSet.has(e)){t.internalModuleStackStringSet.add(e);const r=Ov(e);t.internalModuleCurrentStackFrame=r}}else if(a.startsWith("--react-internal-module-stop-")){const e=a.slice(29);if(!t.internalModuleStackStringSet.has(e)){t.internalModuleStackStringSet.add(e);const n=Ov(e);if(null!==n&&null!==t.internalModuleCurrentStackFrame){const e=t.internalModuleCurrentStackFrame;t.internalModuleCurrentStackFrame=null;const a=[e,n],i=r.internalModuleSourceToRanges.get(e.fileName);null==i?r.internalModuleSourceToRanges.set(e.fileName,[a]):i.push(a)}}}else if("R"===o||"n"===o)r.otherUserTimingMarks.push({name:a,timestamp:s});else if("b"===o);else if("e"===o);else if("i"!==o&&"I"!==o)throw new kv(`Unrecognized event ${JSON.stringify(e)}! This is likely a bug in this profiler tool.`)}}function Rv(e){null!==e.currentReactComponentMeasure&&console.error("Component measure started while another measure in progress:",e.currentReactComponentMeasure)}function Iv(e,r){null===e.currentReactComponentMeasure?console.error(`Component measure type "${r}" stopped while no measure was in progress`):e.currentReactComponentMeasure.type!==r&&console.error(`Component measure type "${r}" stopped while type ${e.currentReactComponentMeasure.type} in progress`)}function Ov(e){const r=new Error;r.stack=e;const t=yv().parse(r);return 1===t.length?t[0]:null}async function Fv(e){const r=function(e){let r;try{r=(0,Sv.importFromChromeTimeline)(e,"react-devtools")}catch(e){const r=new kv(e.message);throw r.stack=e.stack,r}const t=r.profiles[0];return new Sv.Flamechart({getTotalWeight:t.getTotalWeight.bind(t),forEachCall:t.forEachCall.bind(t),formatValue:t.formatValue.bind(t),getColorBucketForFrame:()=>0}).getLayers().map((e=>e.map((({start:e,end:r,node:{frame:{name:t,file:n,line:a,col:i}}})=>({name:t,timestamp:e/1e3,duration:(r-e)/1e3,scriptUrl:n,locationLine:a,locationColumn:i})))))}(e),t=new Map;for(let e=0;ee.ts>r.ts?1:-1))).findIndex((e=>"Profile"===e.name));if(-1===a)return n;n.startTime=e[a].args.data.startTime,n.duration=(e[e.length-1].ts-n.startTime)/1e3;const i={asyncProcessingPromises:[],batchUID:0,currentReactComponentMeasure:null,internalModuleCurrentStackFrame:null,internalModuleStackStringSet:new Set,measureStack:[],nativeEventStack:[],nextRenderShouldGenerateNewBatchID:!0,potentialLongEvents:[],potentialLongNestedUpdate:null,potentialLongNestedUpdates:[],potentialSuspenseEventsOutsideOfTransition:[],requestIdToNetworkMeasureMap:new Map,uidCounter:0,unresolvedSuspenseEvents:new Map};if(e.forEach((e=>Nv(e,n,i))),null===xv){if(0===n.schedulingEvents.length&&0===n.batchUIDToMeasuresMap.size)throw new kv("No React marks were found in the provided profile. Please provide profiling data from an React application running in development or profiling mode.");throw new kv("This version of profiling data is not supported by the current profiler.")}const{measureStack:o}=i;if(o.length>0&&console.error("Incomplete events or measures",o),i.potentialLongEvents.forEach((([e,r])=>{const[t,a]=Kd(r,n,e.timestamp);a-t>Dv&&(e.warning=Cv.LONG_EVENT_HANDLER)})),i.potentialLongNestedUpdates.forEach((([e,r])=>{const[t,a]=Kd(r,n);a-t>Av&&e.lanes.some((e=>"Transition"===n.laneToLabelMap.get(e)))})),i.potentialSuspenseEventsOutsideOfTransition.forEach((([e,r])=>{r.some((e=>"Transition"===n.laneToLabelMap.get(e)))||(e.warning=Cv.SUSPEND_DURING_UPDATE)})),await Promise.all(i.asyncProcessingPromises),n.snapshots.length>0){const e=n.snapshots[0];n.snapshotHeight=Math.min(e.height,wv)}return n}var Pv=a(69),Lv=a.n(Pv);const zv=e=>{if(!e.name.endsWith(".json"))throw new kv("Invalid file type. Only JSON performance profiles are supported");const r=new FileReader;return new Promise(((t,n)=>{r.onload=()=>{const e=Lv()(r.result);"string"==typeof e&&t(e),n(new kv("Input file was not read as a string"))},r.onerror=()=>n(r.error),r.readAsText(e)}))};async function Bv(e){try{const r=await zv(e),t=JSON.parse(r);if(0===t.length)throw new kv("No profiling data found in file.");return{status:"SUCCESS",processedData:await Fv(t)}}catch(e){return e instanceof kv?{status:"INVALID_PROFILE_ERROR",error:e}:{status:"UNEXPECTED_ERROR",error:e}}}var Vv=a(282),Uv=a.n(Vv);const Wv=window.Worker?Uv()():e,jv=1,$v=2,Xv=new Map;function Gv(e){const r=e.name;let t=Xv.get(r);if(!t){const n=new Set,a=()=>{n.forEach((e=>e())),n.clear()},i=t={status:0,value:{then(e){n.add(e)},displayName:`Importing file "${r}"`}};(e=>Wv.importFile(e))(e).then((e=>{switch(e.status){case"SUCCESS":const r=i;r.status=jv,r.value=e.processedData;break;case"INVALID_PROFILE_ERROR":case"UNEXPECTED_ERROR":const t=i;t.status=$v,t.value=e.error}a()})),Xv.set(r,t)}const n=function(e){if(e.status===jv)return e;if(e.status===$v)return e;throw e.value}(t).value;return n}function Kv(e){const{searchInputContainerRef:t}=(0,r.useContext)(mu),{dispatch:n,searchIndex:a,searchResults:i,searchText:o}=(0,r.useContext)(fv);if(null===t.current)return null;return(0,qn.createPortal)(r.createElement(To,{goToNextResult:()=>n({type:"GO_TO_NEXT_SEARCH_RESULT"}),goToPreviousResult:()=>n({type:"GO_TO_PREVIOUS_SEARCH_RESULT"}),placeholder:"Search components by name",search:e=>n({type:"SET_SEARCH_TEXT",payload:e}),searchIndex:a,searchResultsCount:i.length,searchText:o}),t.current)}const qv={Column:"QjVtusM1KGirAKftEjwY",Header:"jiMh2PwnK6_SN21x4Q7M",Paragraph:"pNkugLfjnL1A_GKSmR2Q",Link:"M9S99onnkkihyqGdp7ag",LearnMoreRow:"Zu1Ac7CcqoyQYyYmgeqc",Code:"Ixc7sI8z0MqS7K2bdXGW",MetaGKRow:"fwIa_vMWRtgmxAgYtV2y"};function Yv(){return r.createElement("div",{className:qv.Column},r.createElement("div",{className:qv.Header},"Timeline profiling not supported."),r.createElement("p",{className:qv.Paragraph},r.createElement("span",null,"Timeline profiler requires a development or profiling build of"," ",r.createElement("code",{className:qv.Code},"react-dom@^18"),".")),r.createElement("div",{className:qv.LearnMoreRow},"Click"," ",r.createElement("a",{className:qv.Link,href:"https://fb.me/react-devtools-profiling",rel:"noopener noreferrer",target:"_blank"},"here")," ","to learn more about profiling."),Ut&&r.createElement("div",{className:qv.MetaGKRow},r.createElement("strong",null,"Meta only"),": Enable the"," ",r.createElement("a",{className:qv.Link,href:"https://fburl.com/react-devtools-scheduling-profiler-gk",rel:"noopener noreferrer",target:"_blank"},"react_enable_scheduling_profiler GK"),"."))}const Qv={Content:"eue06UGfhEQuo2ZKaXrY",ErrorMessage:"K_JJva1_xDfpSRy6RpDu",Row:"fU0E28avKp3oPxeR34NR",EmptyStateContainer:"wjNO8GSvNqofzPC3JMXU",Header:"tWwch6_bJnvq33qchywK"};function Jv(e){const{file:t,inMemoryTimelineData:n,isTimelineSupported:a,setFile:i,viewState:o}=(0,r.useContext)(mu),{didRecordCommits:s,isProfiling:l}=(0,r.useContext)(Zc),c=(0,r.useRef)(null),{theme:u}=(0,r.useContext)(jt),f=(0,r.useDeferredValue)(u),[d,v]=(0,r.useState)(u);(0,r.useLayoutEffect)((()=>{const e=setInterval((()=>{(function(e){const r=getComputedStyle(e);return null!=r.getPropertyValue("--color-background")&&(nf={BACKGROUND:r.getPropertyValue("--color-background"),INTERNAL_MODULE_FRAME:r.getPropertyValue("--color-timeline-internal-module"),INTERNAL_MODULE_FRAME_HOVER:r.getPropertyValue("--color-timeline-internal-module-hover"),INTERNAL_MODULE_FRAME_TEXT:r.getPropertyValue("--color-timeline-internal-module-text"),NATIVE_EVENT:r.getPropertyValue("--color-timeline-native-event"),NATIVE_EVENT_HOVER:r.getPropertyValue("--color-timeline-native-event-hover"),NETWORK_PRIMARY:r.getPropertyValue("--color-timeline-network-primary"),NETWORK_PRIMARY_HOVER:r.getPropertyValue("--color-timeline-network-primary-hover"),NETWORK_SECONDARY:r.getPropertyValue("--color-timeline-network-secondary"),NETWORK_SECONDARY_HOVER:r.getPropertyValue("--color-timeline-network-secondary-hover"),PRIORITY_BACKGROUND:r.getPropertyValue("--color-timeline-priority-background"),PRIORITY_BORDER:r.getPropertyValue("--color-timeline-priority-border"),PRIORITY_LABEL:r.getPropertyValue("--color-text"),USER_TIMING:r.getPropertyValue("--color-timeline-user-timing"),USER_TIMING_HOVER:r.getPropertyValue("--color-timeline-user-timing-hover"),REACT_IDLE:r.getPropertyValue("--color-timeline-react-idle"),REACT_IDLE_HOVER:r.getPropertyValue("--color-timeline-react-idle-hover"),REACT_RENDER:r.getPropertyValue("--color-timeline-react-render"),REACT_RENDER_HOVER:r.getPropertyValue("--color-timeline-react-render-hover"),REACT_RENDER_TEXT:r.getPropertyValue("--color-timeline-react-render-text"),REACT_COMMIT:r.getPropertyValue("--color-timeline-react-commit"),REACT_COMMIT_HOVER:r.getPropertyValue("--color-timeline-react-commit-hover"),REACT_COMMIT_TEXT:r.getPropertyValue("--color-timeline-react-commit-text"),REACT_LAYOUT_EFFECTS:r.getPropertyValue("--color-timeline-react-layout-effects"),REACT_LAYOUT_EFFECTS_HOVER:r.getPropertyValue("--color-timeline-react-layout-effects-hover"),REACT_LAYOUT_EFFECTS_TEXT:r.getPropertyValue("--color-timeline-react-layout-effects-text"),REACT_PASSIVE_EFFECTS:r.getPropertyValue("--color-timeline-react-passive-effects"),REACT_PASSIVE_EFFECTS_HOVER:r.getPropertyValue("--color-timeline-react-passive-effects-hover"),REACT_PASSIVE_EFFECTS_TEXT:r.getPropertyValue("--color-timeline-react-passive-effects-text"),REACT_RESIZE_BAR:r.getPropertyValue("--color-resize-bar"),REACT_RESIZE_BAR_ACTIVE:r.getPropertyValue("--color-resize-bar-active"),REACT_RESIZE_BAR_BORDER:r.getPropertyValue("--color-resize-bar-border"),REACT_RESIZE_BAR_DOT:r.getPropertyValue("--color-resize-bar-dot"),REACT_SCHEDULE:r.getPropertyValue("--color-timeline-react-schedule"),REACT_SCHEDULE_HOVER:r.getPropertyValue("--color-timeline-react-schedule-hover"),REACT_SUSPENSE_REJECTED_EVENT:r.getPropertyValue("--color-timeline-react-suspense-rejected"),REACT_SUSPENSE_REJECTED_EVENT_HOVER:r.getPropertyValue("--color-timeline-react-suspense-rejected-hover"),REACT_SUSPENSE_RESOLVED_EVENT:r.getPropertyValue("--color-timeline-react-suspense-resolved"),REACT_SUSPENSE_RESOLVED_EVENT_HOVER:r.getPropertyValue("--color-timeline-react-suspense-resolved-hover"),REACT_SUSPENSE_UNRESOLVED_EVENT:r.getPropertyValue("--color-timeline-react-suspense-unresolved"),REACT_SUSPENSE_UNRESOLVED_EVENT_HOVER:r.getPropertyValue("--color-timeline-react-suspense-unresolved-hover"),REACT_THROWN_ERROR:r.getPropertyValue("--color-timeline-thrown-error"),REACT_THROWN_ERROR_HOVER:r.getPropertyValue("--color-timeline-thrown-error-hover"),REACT_WORK_BORDER:r.getPropertyValue("--color-timeline-react-work-border"),SCROLL_CARET:r.getPropertyValue("--color-scroll-caret"),SCRUBBER_BACKGROUND:r.getPropertyValue("--color-timeline-react-suspense-rejected"),SEARCH_RESULT_FILL:r.getPropertyValue("--color-timeline-react-suspense-rejected"),SCRUBBER_BORDER:r.getPropertyValue("--color-timeline-text-color"),TEXT_COLOR:r.getPropertyValue("--color-timeline-text-color"),TEXT_DIM_COLOR:r.getPropertyValue("--color-timeline-text-dim-color"),TIME_MARKER_LABEL:r.getPropertyValue("--color-text"),WARNING_BACKGROUND:r.getPropertyValue("--color-warning-background"),WARNING_BACKGROUND_HOVER:r.getPropertyValue("--color-warning-background-hover"),WARNING_TEXT:r.getPropertyValue("--color-warning-text-color"),WARNING_TEXT_INVERED:r.getPropertyValue("--color-warning-text-color-inverted")},!0)})(c.current)&&(clearInterval(e),v(f))}),50);return()=>{clearInterval(e)}}),[f]);let h=null;if(l)h=r.createElement(Ju,null);else if(n&&n.length>0){const e=n[0];h=r.createElement(dv,{profilerData:e,viewState:o},r.createElement(Kv,null),r.createElement(_v,{profilerData:e,viewState:o}))}else h=t?r.createElement(r.Suspense,{fallback:r.createElement(Zv,null)},r.createElement(th,{file:t,key:d,onFileSelect:i,viewState:o})):s?r.createElement(rh,null):a?r.createElement(Qu,null):r.createElement(Yv,null);return r.createElement("div",{className:Qv.Content,ref:c},h)}const Zv=()=>r.createElement("div",{className:Qv.EmptyStateContainer},r.createElement("div",{className:Qv.Header},"Processing data..."),r.createElement("div",{className:Qv.Row},"This should only take a minute.")),eh=({error:e,onFileSelect:t})=>r.createElement("div",{className:Qv.EmptyStateContainer},r.createElement("div",{className:Qv.Header},"Could not load profile"),e.message&&r.createElement("div",{className:Qv.Row},r.createElement("div",{className:Qv.ErrorMessage},e.message)),r.createElement("div",{className:Qv.Row},"Try importing another Chrome performance profile.")),rh=()=>r.createElement("div",{className:Qv.EmptyStateContainer},r.createElement("div",{className:Qv.Row},"This current profile does not contain timeline data.")),th=({file:e,onFileSelect:t,viewState:n})=>{if(null===e)return null;const a=Gv(e);return a instanceof Error?r.createElement(eh,{error:a,onFileSelect:t}):r.createElement(dv,{profilerData:a,viewState:n},r.createElement(Kv,null),r.createElement(_v,{profilerData:a,viewState:n}))},nh={Toolbar:"lgd3ZCMgCXtUMxt070tV",Content:"sWXfInUyKrvDk6lK2o9D",List:"tubB5UBWO8CymMFmA5CF",ListItem:"UOZgvcZmCsPSOtKDj0WN",Label:"fDFFFS6FSdkZVvvvVkUt",Value:"jlV06smRNDvlE9a_KfXK",Row:"jCiyjnM7GK5KxPMT5GMO",UnclickableSource:"BTlRsBnXtBSjjGNX0uzb",ClickableSource:"fRBYQh_ObZ4pHWasihPS"};function ah({eventInfo:e}){const{canViewElementSourceFunction:t,viewElementSourceFunction:n}=(0,r.useContext)(Pc),{componentName:a,timestamp:i}=e,o=e.componentStack||null;return r.createElement(r.Fragment,null,r.createElement("div",{className:nh.Toolbar},a," ",ud(e)),r.createElement("div",{className:nh.Content,tabIndex:0},r.createElement("ul",{className:nh.List},r.createElement("li",{className:nh.ListItem},r.createElement("label",{className:nh.Label},"Timestamp"),":"," ",r.createElement("span",{className:nh.Value},sd(i))),o&&r.createElement("li",{className:nh.ListItem},r.createElement("div",{className:nh.Row},r.createElement("label",{className:nh.Label},"Rendered by"),r.createElement(Ya,{onClick:()=>(0,f.copy)(o),title:"Copy component stack to clipboard"},r.createElement(Yt,{type:"copy"}))),r.createElement("ul",{className:nh.List},function(e){const r=[];return e.split(We).slice(1).forEach((e=>{const t=je.exec(e);if(t){const[,e,n,a,i]=t;r.push([e,[n,parseInt(a,10),parseInt(i,10)]])}else r.push([e,null])})),r}(o).map((([e,a],i)=>{if(null==a)return r.createElement("li",{key:i},r.createElement(Ya,{className:nh.UnclickableSource,disabled:!0},e));const[o,s,l]=a,c={sourceURL:o,line:s,column:l},u=null==t||t(c,null),f=u&&null!=n?()=>n(c,null):()=>null;return r.createElement("li",{key:i},r.createElement(Ya,{className:u?nh.ClickableSource:nh.UnclickableSource,disabled:!u,onClick:f},e))})))))))}function ih(e){const{selectedEvent:t}=(0,r.useContext)(mu);return t&&t.schedulingEvent?r.createElement(ah,{eventInfo:t.schedulingEvent}):null}function oh({disabled:e}){const t=(0,r.useContext)(hr),n=(0,r.useContext)(mr),a=(0,r.useMemo)((()=>({getCurrentValue:()=>({recordChangeDescriptions:n.recordChangeDescriptions,supportsReloadAndProfile:n.supportsReloadAndProfile}),subscribe:e=>(n.addListener("recordChangeDescriptions",e),n.addListener("supportsReloadAndProfile",e),()=>{n.removeListener("recordChangeDescriptions",e),n.removeListener("supportsReloadAndProfile",e)})})),[n]),{recordChangeDescriptions:i,supportsReloadAndProfile:o}=zt(a),s=(0,r.useCallback)((()=>{t.send("reloadAndProfile",i)}),[t,i]);return o?r.createElement(Ya,{disabled:e,onClick:s,title:"Reload and start profiling"},r.createElement(Yt,{type:"reload"})):null}const sh=Array.isArray;const lh=function(e){return sh(e)},ch=Object.prototype.hasOwnProperty,uh={VRule:"N8H0SJ33TtBea__rELXw",Input:"_08ibVjqcFQVJ0Dv8n1AX",ErrorMessage:"aieWFlSkxB_kzGCdLw_G"};function fh(){const{isProfiling:e,profilingData:t,rootID:n}=(0,r.useContext)(Zc),{setFile:a}=(0,r.useContext)(mu),i=(0,r.useContext)(mr),{profilerStore:o}=i,s=(0,r.useRef)(null),l=(0,r.useRef)(null),{dispatch:c}=(0,r.useContext)(Ps),u=o.didRecordCommits,f=(0,r.useCallback)((()=>{if(null===n)return;const e=l.current;if(null!==t&&null!==e){const r=function(e){const r=e.timelineData.map((({batchUIDToMeasuresMap:e,componentMeasures:r,duration:t,flamechart:n,internalModuleSourceToRanges:a,laneToLabelMap:i,laneToReactMeasureMap:o,nativeEvents:s,networkMeasures:l,otherUserTimingMarks:c,reactVersion:u,schedulingEvents:f,snapshots:d,snapshotHeight:v,startTime:h,suspenseEvents:m,thrownErrors:p})=>({batchUIDToMeasuresKeyValueArray:Array.from(e.entries()),componentMeasures:r,duration:t,flamechart:n,internalModuleSourceToRanges:Array.from(a.entries()),laneToLabelKeyValueArray:Array.from(i.entries()),laneToReactMeasureKeyValueArray:Array.from(o.entries()),nativeEvents:s,networkMeasures:l,otherUserTimingMarks:c,reactVersion:u,schedulingEvents:f,snapshots:d,snapshotHeight:v,startTime:h,suspenseEvents:m,thrownErrors:p}))),t=[];return e.dataForRoots.forEach((({commitData:e,displayName:r,initialTreeBaseDurations:n,operations:a,rootID:i,snapshots:o})=>{t.push({commitData:e.map((({changeDescriptions:e,duration:r,effectDuration:t,fiberActualDurations:n,fiberSelfDurations:a,passiveEffectDuration:i,priorityLevel:o,timestamp:s,updaters:l})=>({changeDescriptions:null!=e?Array.from(e.entries()):null,duration:r,effectDuration:t,fiberActualDurations:Array.from(n.entries()),fiberSelfDurations:Array.from(a.entries()),passiveEffectDuration:i,priorityLevel:o,timestamp:s,updaters:l}))),displayName:r,initialTreeBaseDurations:Array.from(n.entries()),operations:a,rootID:i,snapshots:Array.from(o.entries())})})),{version:R,dataForRoots:t,timelineData:r}}(t),n=new Date;!function(e,r,t){const n=new Blob([t],{type:"text/plain;charset=utf-8"});null!==at&&URL.revokeObjectURL(at),at=URL.createObjectURL(n),e.setAttribute("href",at),e.setAttribute("download",r),e.click()}(e,`profiling-data.${n.toLocaleDateString(void 0,{year:"numeric",month:"2-digit",day:"2-digit"}).replace(/\//g,"-")}.${n.toLocaleTimeString(void 0,{hour12:!1}).replace(/:/g,"-")}.json`,JSON.stringify(r,null,2))}}),[n,t]),d=(0,r.useCallback)((()=>{null!==s.current&&s.current.click()}),[]);return r.createElement(r.Fragment,null,r.createElement("div",{className:uh.VRule}),r.createElement("input",{ref:s,className:uh.Input,type:"file",accept:".json",onChange:()=>{const e=s.current;if(null!==e&&e.files.length>0){const t=e.files[0],n=new FileReader;n.addEventListener("load",(()=>{const e=n.result,i=JSON.parse(e);if(!lh(i)&&ch.call(i,"version")){a(null);try{const e=i;o.profilingData=function(e){const{version:r}=e;if(r!==R)throw Error(`Unsupported profile export version "${r}". Supported version is "${R}".`);const t=e.timelineData?e.timelineData.map((({batchUIDToMeasuresKeyValueArray:e,componentMeasures:r,duration:t,flamechart:n,internalModuleSourceToRanges:a,laneToLabelKeyValueArray:i,laneToReactMeasureKeyValueArray:o,nativeEvents:s,networkMeasures:l,otherUserTimingMarks:c,reactVersion:u,schedulingEvents:f,snapshots:d,snapshotHeight:v,startTime:h,suspenseEvents:m,thrownErrors:p})=>({batchUIDToMeasuresMap:new Map(e),componentMeasures:r,duration:t,flamechart:n,internalModuleSourceToRanges:new Map(a),laneToLabelMap:new Map(i),laneToReactMeasureMap:new Map(o),nativeEvents:s,networkMeasures:l,otherUserTimingMarks:c,reactVersion:u,schedulingEvents:f,snapshots:d,snapshotHeight:v,startTime:h,suspenseEvents:m,thrownErrors:p}))):[],n=new Map;return e.dataForRoots.forEach((({commitData:e,displayName:r,initialTreeBaseDurations:t,operations:a,rootID:i,snapshots:o})=>{n.set(i,{commitData:e.map((({changeDescriptions:e,duration:r,effectDuration:t,fiberActualDurations:n,fiberSelfDurations:a,passiveEffectDuration:i,priorityLevel:o,timestamp:s,updaters:l})=>({changeDescriptions:null!=e?new Map(e):null,duration:r,effectDuration:t,fiberActualDurations:new Map(n),fiberSelfDurations:new Map(a),passiveEffectDuration:i,priorityLevel:o,timestamp:s,updaters:l}))),displayName:r,initialTreeBaseDurations:new Map(t),operations:a,rootID:i,snapshots:new Map(o)})})),{dataForRoots:n,imported:!0,timelineData:t}}(e)}catch(e){c({id:"ProfilingImportExportButtons",type:"SHOW",title:"Import failed",content:r.createElement(r.Fragment,null,r.createElement("div",null,"The profiling data you selected cannot be imported."),null!==e&&r.createElement("div",{className:uh.ErrorMessage},e.message))})}}else o.clear(),a(t)})),n.readAsText(t)}},tabIndex:-1}),r.createElement("a",{ref:l,className:uh.Input}),r.createElement(Ya,{disabled:e,onClick:d,title:"Load profile..."},r.createElement(Yt,{type:"import"})),r.createElement(Ya,{disabled:e||!u,onClick:f,title:"Save profile..."},r.createElement(Yt,{type:"export"})))}const dh="jw93IlCe1adpUzntTNgc",vh="_5XUdsPllhotmtTs9R33A",hh="tX5mJ_WVcSwasnpmMncZ";function mh({data:e,index:t,style:n}){const{filteredCommitIndices:a,maxDuration:i,selectedCommitIndex:o,selectCommitIndex:s,setHoveredCommitIndex:l,startCommitDrag:c,totalDurations:u}=e,f=u[t=a[t]],d=Math.min(1,Math.max(0,Math.cbrt(f)/Math.cbrt(i)))||0,v=Math.min(1,Math.max(0,f/i))||0,h=o===t,m=parseFloat(n.width)-1;let p;return!h&&f>0&&(p=Xe(v)),r.createElement("div",{className:dh,onMouseDown:({buttons:e,target:r})=>{1===e&&(s(t),c({commitIndex:t,left:r.getBoundingClientRect().left,sizeIncrement:parseFloat(n.width)}))},onMouseEnter:()=>l(t),style:{...n,width:m,borderBottom:h?"3px solid var(--color-tab-selected-border)":void 0}},r.createElement("div",{className:h?hh:vh,style:{height:`${Math.round(100*d)}%`,backgroundColor:p}}))}const ph=(0,r.memo)(mh,qr),_h={List:"sfkKfFJiQWXm4ZkgOQA_",Tooltip:"uWBBMcT5QRe8BLmRr5DN",TooltipList:"PeBCG3928_FRgKe17he8",TooltipListItem:"wKr9YTA5FM7_JaJbZOv2",TooltipLabel:"cfm4U9M_1T9x2RmXMrxG",TooltipValue:"qRIEqFLWDIjANIC0Ntie",DurationsWrapper:"izM1TvBpZUUcTQ42Frqn",DurationsList:"s7evU0HIQSOHulfOSX9I",DurationsListItem:"c8bhlz4IND24Tuk1grrp",DurationsLabel:"WD60Q47uUTiP3xkXlZyb",DurationsValue:"xhTBBmJDUq4Q4FqKQ0Ej"};function Sh({commitData:e,commitTimes:t,filteredCommitIndices:n,selectedCommitIndex:a,selectedFilteredCommitIndex:i,selectCommitIndex:o,totalDurations:s}){return r.createElement(Ar,null,(({height:l,width:c})=>r.createElement(gh,{commitData:e,commitTimes:t,height:l,filteredCommitIndices:n,selectedCommitIndex:a,selectedFilteredCommitIndex:i,selectCommitIndex:o,totalDurations:s,width:c})))}function gh({commitData:e,selectedCommitIndex:t,commitTimes:n,height:a,filteredCommitIndices:i,selectedFilteredCommitIndex:o,selectCommitIndex:s,totalDurations:l,width:c}){const u=(0,r.useRef)(null),f=(0,r.useRef)(null),d=(0,r.useRef)(null);(0,r.useEffect)((()=>{o!==d.current&&(d.current=o,null!==o&&null!==u.current&&u.current.scrollToItem(o))}),[u,o]);const v=(0,r.useMemo)((()=>Math.max(wu,c/i.length)),[i,c]),h=(0,r.useMemo)((()=>l.reduce(((e,r)=>Math.max(e,r)),0)),[l]),m=i.length-1,[p,_]=(0,r.useState)(null),S=({buttons:e,pageX:r})=>{if(0!==e){if(null!==p){const{commitIndex:e,left:t,sizeIncrement:n}=p;let a=e,i=t;if(re;)e+=n,a+=1}a<0?a=0:a>m&&(a=m),s(a)}}else _(null)};(0,r.useEffect)((()=>{if(null===p)return;const e=f.current;if(null!==e){const r=e.ownerDocument;return r.addEventListener("mousemove",S),()=>{r.removeEventListener("mousemove",S)}}}),[p]);const[g,b]=(0,r.useState)(null),w=(0,r.useMemo)((()=>({commitTimes:n,filteredCommitIndices:i,maxDuration:h,selectedCommitIndex:t,selectedFilteredCommitIndex:o,selectCommitIndex:s,setHoveredCommitIndex:b,startCommitDrag:_,totalDurations:l})),[n,i,h,t,o,s,b,l]);let k=null;if(null!==g){const{duration:t,effectDuration:n,passiveEffectDuration:a,priorityLevel:i,timestamp:o}=e[g];k=null!==n||null!==a||null!==i?r.createElement("ul",{className:_h.TooltipList},null!==i&&r.createElement("li",{className:_h.TooltipListItem},r.createElement("label",{className:_h.TooltipLabel},"Priority"),r.createElement("span",{className:_h.TooltipValue},i)),r.createElement("li",{className:_h.TooltipListItem},r.createElement("label",{className:_h.TooltipLabel},"Committed at"),r.createElement("span",{className:_h.TooltipValue},Ke(o),"s")),r.createElement("li",{className:_h.TooltipListItem},r.createElement("div",{className:_h.DurationsWrapper},r.createElement("label",{className:_h.TooltipLabel},"Durations"),r.createElement("ul",{className:_h.DurationsList},r.createElement("li",{className:_h.DurationsListItem},r.createElement("label",{className:_h.DurationsLabel},"Render"),r.createElement("span",{className:_h.DurationsValue},Ge(t),"ms")),null!==n&&r.createElement("li",{className:_h.DurationsListItem},r.createElement("label",{className:_h.DurationsLabel},"Layout effects"),r.createElement("span",{className:_h.DurationsValue},Ge(n),"ms")),null!==a&&r.createElement("li",{className:_h.DurationsListItem},r.createElement("label",{className:_h.DurationsLabel},"Passive effects"),r.createElement("span",{className:_h.DurationsValue},Ge(a),"ms")))))):`${Ge(t)}ms at ${Ke(o)}s`}return r.createElement(Ru,{className:_h.Tooltip,label:k},r.createElement("div",{ref:f,style:{height:a,width:c},onMouseLeave:()=>b(null)},r.createElement($r,{className:_h.List,layout:"horizontal",height:a,itemCount:i.length,itemData:w,itemSize:v,ref:u,width:c},ph)))}const bh={Button:"_CufCnCVGPGWnSFl1uho",Commits:"Hl8vt0A1Pvc45oOEfvfc",IndexLabel:"xiLvxcsoqxeWVh07R31l",NoCommits:"jsUKzO10uV20A3wnvydO",Input:"ugxes_bEQaeJOFCGJiHj"};function wh(e){const{isCommitFilterEnabled:t,minCommitDuration:n,rootID:a,selectedCommitIndex:i,selectCommitIndex:o}=(0,r.useContext)(Zc),{profilerStore:s}=(0,r.useContext)(mr),{commitData:l}=s.getDataForRoot(a),c=[],u=[];l.forEach((e=>{c.push(e.duration+(e.effectDuration||0)+(e.passiveEffectDuration||0)),u.push(e.timestamp)}));const f=(0,r.useMemo)((()=>l.reduce(((e,r,a)=>((!t||r.duration>=n)&&e.push(a),e)),[])),[l,t,n]),d=f.length,v=(0,r.useMemo)((()=>{if(null!==i)for(let e=0;e0?0:null):v>=d&&o(0===d?null:d-1);let h=null;if(d>0){const e=e=>{const r=parseInt(e.currentTarget.value,10);if(!isNaN(r)){const e=Math.min(Math.max(r-1,0),d-1);o(f[e])}},t=e=>{e.currentTarget.select()},n=e=>{switch(e.key){case"ArrowDown":p(),e.stopPropagation();break;case"ArrowUp":m(),e.stopPropagation()}},a=r.createElement("input",{className:bh.Input,"data-testname":"SnapshotSelector-Input",type:"text",inputMode:"numeric",pattern:"[0-9]*",value:v+1,size:`${d}`.length,onChange:e,onClick:t,onKeyDown:n});h=r.createElement(r.Fragment,null,a," / ",d)}const m=()=>{let e=v+1;e===f.length&&(e=0),o(f[e])},p=()=>{let e=v-1;e<0&&(e=f.length-1),o(f[e])};return 0===l.length?null:r.createElement(r.Fragment,null,r.createElement("span",{className:bh.IndexLabel,"data-testname":"SnapshotSelector-Label"},h),r.createElement(Ya,{className:bh.Button,"data-testname":"SnapshotSelector-PreviousButton",disabled:0===d,onClick:p,title:"Select previous commit"},r.createElement(Yt,{type:"previous"})),r.createElement("div",{className:bh.Commits,onKeyDown:e=>{switch(e.key){case"ArrowLeft":p(),e.stopPropagation();break;case"ArrowRight":m(),e.stopPropagation()}},style:{flex:d>0?"1 1 auto":"0 0 auto",maxWidth:d>0?d*bu:void 0},tabIndex:0},d>0&&r.createElement(Sh,{commitData:l,commitTimes:u,filteredCommitIndices:f,selectedCommitIndex:i,selectedFilteredCommitIndex:v,selectCommitIndex:o,totalDurations:c}),0===d&&r.createElement("div",{className:bh.NoCommits},"No commits")),r.createElement(Ya,{className:bh.Button,"data-testname":"SnapshotSelector-NextButton",disabled:0===d,onClick:m,title:"Select next commit"},r.createElement(Yt,{type:"next"})))}const kh={Updaters:"N5BzlnGYbkkzyvpM4qiQ",NoUpdaters:"OgEAxEkwb3k_69AoeGQg",Updater:"_1c63tyMUi98qTClO_SL",UnmountedUpdater:"IfiD3wgD1AOg2rtpeal7"};function Eh({commitTree:e,updaters:t}){const{selectFiber:n}=(0,r.useContext)(Zc),a=t.length>0?t.map((t=>{const{displayName:a,id:i,key:o,type:s}=t;return e.nodes.has(i)&&s!==U?r.createElement("button",{key:i,className:kh.Updater,onClick:()=>n(i,a)},a," ",o?`key="${o}"`:""):r.createElement("div",{key:i,className:kh.UnmountedUpdater},a," ",o?`key="${o}"`:"")})):r.createElement("div",{key:"none",className:kh.NoUpdaters},"(unknown)");return r.createElement("div",{className:kh.Updaters},a)}const yh={Toolbar:"Db7NQhHEeI91oH3Hvbam",Content:"aZe2MG7Dqp4KMuyOUDBb",List:"f6VXZunRdhS7mNMG6eEP",ListItem:"kcRreMlssKZxm_LOVtFG",Label:"ZwF9CPaTyMcALuS4IHhC",Value:"uo6JwMiedyAH3mIG8aVo",NothingSelected:"I2PpODEiFO9QPDXyopKq",DurationsList:"BCDwBn2mncLqqERXZimU",DurationsListItem:"QRBDzhIQcmbPsRZCmqac"};function Dh(e){const{selectedCommitIndex:t,rootID:n}=(0,r.useContext)(Zc),{profilerStore:a}=(0,r.useContext)(mr);if(null===n||null===t)return r.createElement("div",{className:yh.NothingSelected},"Nothing selected");const{duration:i,effectDuration:o,passiveEffectDuration:s,priorityLevel:l,timestamp:c,updaters:u}=a.getCommitData(n,t),f=null!==o||null!==s,d=null!==u?Je({commitIndex:t,profilerStore:a,rootID:n}):null;return r.createElement(r.Fragment,null,r.createElement("div",{className:yh.Toolbar},"Commit information"),r.createElement("div",{className:yh.Content},r.createElement("ul",{className:yh.List},null!==l&&r.createElement("li",{className:yh.ListItem},r.createElement("label",{className:yh.Label},"Priority"),":"," ",r.createElement("span",{className:yh.Value},l)),r.createElement("li",{className:yh.ListItem},r.createElement("label",{className:yh.Label},"Committed at"),":"," ",r.createElement("span",{className:yh.Value},Ke(c),"s")),!f&&r.createElement("li",{className:yh.ListItem},r.createElement("label",{className:yh.Label},"Render duration"),":"," ",r.createElement("span",{className:yh.Value},Ge(i),"ms")),f&&r.createElement("li",{className:yh.ListItem},r.createElement("label",{className:yh.Label},"Durations"),r.createElement("ul",{className:yh.DurationsList},r.createElement("li",{className:yh.DurationsListItem},r.createElement("label",{className:yh.Label},"Render"),":"," ",r.createElement("span",{className:yh.Value},Ge(i),"ms")),null!==o&&r.createElement("li",{className:yh.DurationsListItem},r.createElement("label",{className:yh.Label},"Layout effects"),":"," ",r.createElement("span",{className:yh.Value},Ge(o),"ms")),null!==s&&r.createElement("li",{className:yh.DurationsListItem},r.createElement("label",{className:yh.Label},"Passive effects"),":"," ",r.createElement("span",{className:yh.Value},Ge(s),"ms")))),null!==u&&null!==d&&r.createElement("li",{className:yh.ListItem},r.createElement("label",{className:yh.Label},"What caused this update"),"?",r.createElement(Eh,{commitTree:d,updaters:u})))))}function Ah(){return r.createElement("div",{className:Yu.Column},r.createElement("div",{className:Yu.Header},"Processing data..."),r.createElement("div",{className:Yu.Row},"This should only take a minute."))}function Ch(){return r.createElement("div",{className:Yu.Column},r.createElement("div",{className:Yu.Header},"Profiling not supported."),r.createElement("p",{className:Yu.Paragraph},"Profiling support requires either a development or profiling build of React v16.5+."),r.createElement("p",{className:Yu.Paragraph},"Learn more at"," ",r.createElement("a",{className:Yu.Link,href:"https://fb.me/react-devtools-profiling",rel:"noopener noreferrer",target:"_blank"},"reactjs.org/link/profiling"),"."))}const Mh={Toolbar:"kksxAeylH3yoPGPSZs4x",Content:"VJy47nzDRAprXO7tY3LS",Component:"ISf33Slct6dgSxu6Jgnp",Label:"aHgahOIZbyM7IqHd3i2t",CurrentCommit:"DHfht546g4Kr5iX3Oa6Q",Commit:"q3pfRhYTXkmwbWV74Kww"};function xh(){const{profilerStore:e}=(0,r.useContext)(mr),{rootID:t,selectCommitIndex:n,selectedCommitIndex:a,selectedFiberID:i,selectedFiberName:o,selectFiber:s}=(0,r.useContext)(Zc),{profilingCache:l}=e,c=(0,r.useRef)(null);if((0,r.useEffect)((()=>{const e=c.current;null!==e&&"function"==typeof e.scrollIntoView&&e.scrollIntoView({block:"nearest",inline:"nearest"})}),[a]),null===i||null===t||null===a)return null;const u=l.getFiberCommits({fiberID:i,rootID:t}),{nodes:f}=l.getCommitTree({rootID:t,commitIndex:a}),d=f.get(i),v=[];let h=0;for(h=0;hn(i)},Ke(s),"s for ",Ge(o),"ms"))}return r.createElement(r.Fragment,null,r.createElement("div",{className:Mh.Toolbar},r.createElement("div",{className:Mh.Component},o||"Selected component"),r.createElement(Ya,{onClick:()=>s(null,null),title:"Back to commit view"},r.createElement(Yt,{type:"close"}))),r.createElement("div",{className:Mh.Content,onKeyDown:e=>{switch(e.key){case"ArrowUp":if(null!==a){const e=u.indexOf(a),r=e>0?e-1:u.length-1;n(u[r])}e.preventDefault();break;case"ArrowDown":if(null!==a){const e=u.indexOf(a),r=e0&&r.createElement("div",null,r.createElement("label",{className:Mh.Label},"Rendered at: "),v),0===v.length&&r.createElement("div",null,"Did not render during this profiling session.")))}const Th=()=>r.createElement("div",{className:Yu.Column},r.createElement("div",{className:Yu.Header},"Timeline only"),r.createElement("div",{className:Yu.Row},"The current profile contains only Timeline data.")),Hh=[{id:"flame-chart",icon:"flame-chart",label:"Flamegraph",title:"Flamegraph chart"},{id:"ranked-chart",icon:"ranked-chart",label:"Ranked",title:"Ranked chart"}],Nh=[...Hh,null,{id:"timeline",icon:"timeline",label:"Timeline",title:"Timeline"}],Rh=Ds((function(e){const{didRecordCommits:t,isProcessingData:n,isProfiling:a,selectedCommitIndex:i,selectedFiberID:o,selectedTabID:s,selectTab:l,supportsProfiling:c}=(0,r.useContext)(Zc),{file:u,searchInputContainerRef:f}=(0,r.useContext)(mu),{supportsTimeline:d}=(0,r.useContext)(mr),v="timeline"!==s;let h=null;if(t||"timeline"===s)switch(s){case"flame-chart":h=r.createElement(Pu,null);break;case"ranked-chart":h=r.createElement(Wu,null);break;case"timeline":h=r.createElement(Jv,null)}else h=a?r.createElement(Ju,null):n?r.createElement(Ah,null):u?r.createElement(Th,null):c?r.createElement(Qu,null):r.createElement(Ch,null);let m=null;if(!a&&!n&&t)switch(s){case"flame-chart":case"ranked-chart":null!==i&&(m=null!==o?r.createElement(xh,null):r.createElement(Dh,null));break;case"timeline":m=r.createElement(ih,null)}return r.createElement(Ro,null,r.createElement("div",{className:Yu.Profiler},r.createElement("div",{className:Yu.LeftColumn},r.createElement("div",{className:Yu.Toolbar},r.createElement(qu,{disabled:!c}),r.createElement(oh,{disabled:!c}),r.createElement(_u,null),r.createElement(fh,null),r.createElement("div",{className:Yu.VRule}),r.createElement($c,{currentTab:s,id:"Profiler",selectTab:l,tabs:d?Nh:Hh,type:"profiler"}),r.createElement(Gu,null),r.createElement("div",{className:Yu.Spacer}),!v&&r.createElement("div",{ref:f,className:Yu.TimelineSearchInputContainer}),r.createElement(Io,null),v&&t&&r.createElement(r.Fragment,null,r.createElement("div",{className:Yu.VRule}),r.createElement(wh,null))),r.createElement("div",{className:Yu.Content},h,r.createElement(Bs,null))),r.createElement("div",{className:Yu.RightColumn},m),r.createElement(nu,null)))})),Ih={ReactLogo:"REvy6Ilr7KQBh3VP5KtT"};function Oh({className:e}){return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:`${Ih.ReactLogo} ${e||""}`,viewBox:"-11.5 -10.23174 23 20.46348"},r.createElement("circle",{cx:"0",cy:"0",r:"2.05",fill:"currentColor"}),r.createElement("g",{stroke:"currentColor",strokeWidth:"1",fill:"none"},r.createElement("ellipse",{rx:"11",ry:"4.2"}),r.createElement("ellipse",{rx:"11",ry:"4.2",transform:"rotate(60)"}),r.createElement("ellipse",{rx:"11",ry:"4.2",transform:"rotate(120)"})))}const Fh={Column:"WCWwtFCxOl5nFSUfDDGa",Title:"OnEPWhy5tIMKTSyQh0Ft",Version:"x5T9XRpiOFNLuohENqPx",NpmCommand:"y82TcRh54m1qPbnRqfgX",Paragraph:"Rof042N87RxT4OmFvFtV",Link:"WH5ByD51MpftIKuPl22B"},Ph="5.2.0-57fbe3ba37",Lh="https://fb.me/devtools-unsupported-bridge-protocol",zh="UnsupportedBridgeProtocolDialog";function Bh(e){const{dialogs:t,dispatch:n}=(0,r.useContext)(Ps),a=(0,r.useContext)(mr),i=!!t.find((e=>e.id===zh));return(0,r.useEffect)((()=>{const e=()=>{i?a.unsupportedBridgeProtocolDetected||n({type:"HIDE",id:zh}):a.unsupportedBridgeProtocolDetected&&n({canBeDismissed:!1,id:zh,type:"SHOW",content:r.createElement(Vh,{unsupportedBridgeProtocol:a.bridgeProtocol})})};return e(),a.addListener("unsupportedBridgeProtocolDetected",e),()=>{a.removeListener("unsupportedBridgeProtocolDetected",e)}}),[i,a]),null}function Vh({unsupportedBridgeProtocol:e}){const{version:t,minNpmVersion:n,maxNpmVersion:a}=e;let i;if(null===a){const e=`npm i -g react-devtools@^${n}`;i=r.createElement(r.Fragment,null,r.createElement("p",{className:Fh.Paragraph},"To fix this, upgrade the DevTools NPM package:"),r.createElement("pre",{className:Fh.NpmCommand},e,r.createElement(Ya,{onClick:()=>(0,f.copy)(e),title:"Copy upgrade command to clipboard"},r.createElement(Yt,{type:"copy"}))))}else{const e=`npm i -g react-devtools@${a}`;i=r.createElement(r.Fragment,null,r.createElement("p",{className:Fh.Paragraph},"To fix this, downgrade the DevTools NPM package:"),r.createElement("pre",{className:Fh.NpmCommand},e,r.createElement(Ya,{onClick:()=>(0,f.copy)(e),title:"Copy downgrade command to clipboard"},r.createElement(Yt,{type:"copy"}))))}return r.createElement(r.Fragment,null,r.createElement("div",{className:Fh.Column},r.createElement("div",{className:Fh.Title},"Unsupported DevTools backend version"),r.createElement("p",{className:Fh.Paragraph},"You are running ",r.createElement("code",null,"react-devtools")," version"," ",r.createElement("span",{className:Fh.Version},Ph),"."),r.createElement("p",{className:Fh.Paragraph},"This requires bridge protocol"," ",r.createElement("span",{className:Fh.Version},"version ",c.version),". However the current backend version uses bridge protocol"," ",r.createElement("span",{className:Fh.Version},"version ",t),"."),i,r.createElement("p",{className:Fh.Paragraph},"Or"," ",r.createElement("a",{className:Fh.Link,href:Lh,target:"_blank"},"click here")," ","for more information.")))}const Uh={Row:"tINNQLO_ESQYrWI5Rp6a",Title:"N1Ps1KUz8upQaCUzkRb5",ReleaseNotesLink:"jt836PeIJQhMqB1vKLQi"};function Wh(e){const{dispatch:t}=(0,r.useContext)(Ps),n=(0,r.useContext)(mr),[a,i]=(0,r.useState)("dialog-not-shown");return(0,r.useEffect)((()=>{if("dialog-not-shown"===a){const e=()=>{(0,qn.unstable_batchedUpdates)((()=>{i("show-dialog"),t({canBeDismissed:!0,id:"UnsupportedVersionDialog",type:"SHOW",content:r.createElement(jh,null)})}))};if(!n.unsupportedRendererVersionDetected)return n.addListener("unsupportedRendererVersionDetected",e),()=>{n.removeListener("unsupportedRendererVersionDetected",e)};e()}}),[a,n]),null}function jh(e){return r.createElement(r.Fragment,null,r.createElement("div",{className:Uh.Row},r.createElement("div",null,r.createElement("div",{className:Uh.Title},"Unsupported React version detected"),r.createElement("p",null,"This version of React DevTools supports React DOM v15+ and React Native v61+."),r.createElement("p",null,"In order to use DevTools with an older version of React, you'll need to"," ",r.createElement("a",{className:Uh.ReleaseNotesLink,target:"_blank",rel:"noopener noreferrer",href:xt},"install an older version of the extension"),"."))))}const $h={Command:"p8jhsAoxvFjiAgT7yMG9"};function Xh(e){const t=(0,r.useContext)(hr),{dispatch:n}=(0,r.useContext)(Ps);return(0,r.useEffect)((()=>{let e=t.wall.listen((t=>{switch(t.type){case"call":case"event":case"many-events":n({canBeDismissed:!1,id:"WarnIfLegacyBackendDetected",type:"SHOW",title:"DevTools v4 is incompatible with this version of React",content:r.createElement(Gh,null)}),"function"==typeof e&&(e(),e=null)}switch(t.event){case"isBackendStorageAPISupported":case"isNativeStyleEditorSupported":case"operations":case"overrideComponentFilters":"function"==typeof e&&(e(),e=null)}}));return()=>{"function"==typeof e&&(e(),e=null)}}),[t,n]),null}function Gh(e){return r.createElement(r.Fragment,null,r.createElement("p",null,"Either upgrade React or install React DevTools v3:"),r.createElement("code",{className:$h.Command},"npm install -d react-devtools@^3"))}const Kh={DevTools:"Hkuka5z7FNWzWV4iBl5N",TabBar:"tPiY5I6mjO9E1BEvS3GI",Spacer:"Wp5jbuBw2jpcKiKlQRTT",TabContent:"M1NR4kt2K_VBDm0ap8WR",DevToolsVersion:"lflmhRDlQN6CHxnrjuAx"},qh=[{id:"components",icon:"components",label:"Components",title:"React Components"},{id:"profiler",icon:"profiler",label:"Profiler",title:"React Profiler"}];function Yh({bridge:e,browserTheme:t="light",canViewElementSourceFunction:n,componentsPortalContainer:a,defaultTab:i="components",enabledInspectedElementContextMenu:o=!1,fetchFileWithCaching:s,hookNamesModuleLoaderFunction:l,overrideTab:c,profilerPortalContainer:u,showTabBar:f=!1,store:d,warnIfLegacyBackendDetected:v=!1,warnIfUnsupportedVersionDetected:h=!1,viewAttributeSourceFunction:m,viewElementSourceFunction:p,readOnly:_,hideSettings:S,hideToggleErrorAction:g,hideToggleSuspenseAction:b,hideLogAction:w,hideViewSourceAction:E}){const[y,D]=Pt(k,i);let A=y;null!=c&&(A=c);const C=(0,r.useCallback)((e=>{!0===f&&Wt("components"===e?{event_name:"selected-components-tab"}:{event_name:"selected-profiler-tab"}),D(e)}),[D,f]),M=(0,r.useMemo)((()=>({readOnly:_||!1,hideSettings:S||!1,hideToggleErrorAction:g||!1,hideToggleSuspenseAction:b||!1,hideLogAction:w||!1,hideViewSourceAction:E||!1})),[_,S,g,b,w,E]),x=(0,r.useMemo)((()=>({canViewElementSourceFunction:n||null,viewElementSourceFunction:p||null})),[n,p]),T=(0,r.useMemo)((()=>({isEnabledForInspectedElement:o,viewAttributeSourceFunction:m||null})),[o,m]),H=(0,r.useRef)(null);return(0,r.useEffect)((()=>{if(!f)return;const e=H.current;if(null===e)return;const r=e.ownerDocument.defaultView,t=e=>{if(e.ctrlKey||e.metaKey)switch(e.key){case"1":C(qh[0].id),e.preventDefault(),e.stopPropagation();break;case"2":C(qh[1].id),e.preventDefault(),e.stopPropagation()}};return r.addEventListener("keydown",t),()=>{r.removeEventListener("keydown",t)}}),[f]),(0,r.useLayoutEffect)((()=>()=>{try{e.shutdown()}catch(e){}}),[e]),(0,r.useEffect)((()=>{Wt({event_name:"loaded-dev-tools"})}),[]),r.createElement(hr.Provider,{value:e},r.createElement(mr.Provider,{value:d},r.createElement(_r.Provider,{value:M},r.createElement(pr.Provider,{value:T},r.createElement(zs,null,r.createElement(Xt,{browserTheme:t,componentsPortalContainer:a,profilerPortalContainer:u},r.createElement(Pc.Provider,{value:x},r.createElement(Al.Provider,{value:l||null},r.createElement(yl.Provider,{value:s||null},r.createElement(lt,null,r.createElement(eu,null,r.createElement(pu,null,r.createElement(ys,null,r.createElement("div",{className:Kh.DevTools,ref:H,"data-react-devtools-portal-root":!0},f&&r.createElement("div",{className:Kh.TabBar},r.createElement(Oh,null),r.createElement("span",{className:Kh.DevToolsVersion},"5.2.0-57fbe3ba37"),r.createElement("div",{className:Kh.Spacer}),r.createElement($c,{currentTab:A,id:"DevTools",selectTab:C,tabs:qh,type:"navigation"})),r.createElement("div",{className:Kh.TabContent,hidden:"components"!==A},r.createElement(hu,{portalContainer:a})),r.createElement("div",{className:Kh.TabContent,hidden:"profiler"!==A},r.createElement(Rh,{portalContainer:u}))))))))))),r.createElement(Bh,null),v&&r.createElement(Xh,null),h&&r.createElement(Wh,null))))))}function Qh(e){return new u(null!=e?e:{listen:()=>{},send:()=>{}})}function Jh(e,r){return new vr(e,{checkBridgeProtocolCompatibility:!0,supportsTraceUpdates:!0,supportsNativeInspection:!0,...r})}function Zh(e,t){const{bridge:a,store:i,theme:o="light",viewAttributeSourceFunction:s,viewElementSourceFunction:l,canViewElementSourceFunction:c}=t;(0,n.createRoot)(e).render(r.createElement(Yh,{bridge:a,browserTheme:o,store:i,showTabBar:!0,warnIfLegacyBackendDetected:!0,enabledInspectedElementContextMenu:!0,viewAttributeSourceFunction:s,viewElementSourceFunction:l,canViewElementSourceFunction:c}))}})();var o=i.EH,s=i.MT,l=i.j2;const c=new CSSStyleSheet;c.replaceSync(":root{--reach-menu-button:1}[data-reach-menu]{position:relative}[data-reach-menu-popover]{display:block;position:absolute}[data-reach-menu-popover][hidden]{display:none}[data-reach-menu-list],\n[data-reach-menu-items]{display:block;white-space:nowrap;border:solid 1px hsla(0,0%,0%,0.25);background:hsla(0,100%,100%,0.99);outline:none;padding:1rem 0;font-size:85%}[data-reach-menu-item]{display:block;user-select:none}[data-reach-menu-item]{cursor:pointer;display:block;color:inherit;font:inherit;text-decoration:initial;padding:5px 20px}[data-reach-menu-item][data-selected]{background:hsl(211,81%,36%);color:white;outline:none}[data-reach-menu-item][aria-disabled]{opacity:0.5;cursor:not-allowed}:root{--reach-tooltip:1}[data-reach-tooltip]{z-index:1;pointer-events:none;position:absolute;padding:0.25em 0.5em;box-shadow:2px 2px 10px hsla(0,0%,0%,0.1);white-space:nowrap;font-size:85%;background:#f0f0f0;color:#444;border:solid 1px #ccc}.QLIjinwPX2BYeYhjDPgw{width:1rem;height:1rem;fill:currentColor}.t616OcxJgTxzU23xzvW3{width:1rem;height:1rem;fill:currentColor}.srEfgwlgMuqiVfvkQIvd{display:inline-block;background-color:var(--color-component-badge-background);color:var(--color-text);padding:0.125rem 0.25rem;line-height:normal;border-radius:0.125rem;font-family:var(--font-family-monospace);font-size:var(--font-size-monospace-small)}.PFyuu5xBjR8uxX6thYbZ,\n.iUJPAOCrle8In4qQfWxv,\n.HZliX8_6EyENDRMMudN1,\n.sgAe5RpaAMDGW_sU5o2L{color:var(--color-component-name)}.sgAe5RpaAMDGW_sU5o2L{background-color:var(--color-background-hover)}.iUJPAOCrle8In4qQfWxv{background-color:var(--color-background-inactive)}.NBAhV9ShwRUirQXQbAv2{padding:0 0.25rem;white-space:pre;height:var(--line-height-data);line-height:var(--line-height-data);display:inline-flex;align-items:center;cursor:default;user-select:none}.HZliX8_6EyENDRMMudN1{background-color:var(--color-background-selected);color:var(--color-text-selected);--color-component-name:var(--color-component-name-inverted);--color-text:var(--color-text-selected);--color-component-badge-background:var(\n --color-component-badge-background-inverted\n );--color-forget-badge-background:var(--color-forget-badge-background-inverted);--color-component-badge-count:var(--color-component-badge-count-inverted);--color-attribute-name:var(--color-attribute-name-inverted);--color-attribute-value:var(--color-attribute-value-inverted);--color-expand-collapse-toggle:var(--color-component-name-inverted)}.jm66uQ9yPiywLYg_mbpq{color:var(--color-attribute-name)}.S9otH361hPUibpM9aUpv{color:var(--color-attribute-value);user-select:text;max-width:100px;overflow-x:hidden;text-overflow:ellipsis}.GOTV0C4MoXywapiTV03U{background-color:var(--color-search-match)}.kVA4R0YpVXwfidREhviQ{background-color:var(--color-search-match-current)}.Kr5jbyCbolRzNSFzovW1{display:inline-flex;width:1rem;height:1rem;flex:0 0 1rem;color:var(--color-expand-collapse-toggle)}.Fx3j0RUMWHB5BecGc2_Q{margin-left:0.25rem}.Xt2SitK2jELL4hLu6Mdy,\n.Rj45rwaNiDfhb7PGI4l_,\n.WiNfvaLp1fGWpo6uMIiJ,\n._66netzHqTarCYM811yp,\n.at0eyFbv9icLAQdvXWuC,\n.xIxPkdllpGllMVH8jq8H{height:0.75rem!important;width:0.75rem!important;margin-left:0.25rem}.Xt2SitK2jELL4hLu6Mdy{color:var(--color-console-error-icon)}.WiNfvaLp1fGWpo6uMIiJ{color:var(--color-dimmer)}.at0eyFbv9icLAQdvXWuC{color:var(--color-console-warning-icon)}.Rj45rwaNiDfhb7PGI4l_, .xIxPkdllpGllMVH8jq8H{color:var(--color-component-name)}._66netzHqTarCYM811yp{color:var(--color-text)}.dPHAvUl3PSp59chvDv66,\n.rcOJ8fC0AbSrvixHIvdw,\n.V5OmBsGHEXanXzw77sNS{background:var(--color-button-background);border:none;border-radius:0.25rem;padding:0;flex:0 0 auto}.UiyBzzjpBaN73sNiaNdk{display:inline-flex;align-items:center;border-radius:0.25rem;padding:0.25rem}.V5OmBsGHEXanXzw77sNS{border:none;background:var(--color-button-background);color:var(--color-button)}.V5OmBsGHEXanXzw77sNS:hover{color:var(--color-button-hover)}.rcOJ8fC0AbSrvixHIvdw,\n.rcOJ8fC0AbSrvixHIvdw:active{color:var(--color-button-active);outline:none}.rcOJ8fC0AbSrvixHIvdw:focus,\n.V5OmBsGHEXanXzw77sNS:focus,\n.UiyBzzjpBaN73sNiaNdk:focus{outline:none}.rcOJ8fC0AbSrvixHIvdw:focus > .UiyBzzjpBaN73sNiaNdk,\n.V5OmBsGHEXanXzw77sNS:focus > .UiyBzzjpBaN73sNiaNdk{background:var(--color-button-background-focus)}.dPHAvUl3PSp59chvDv66{background:var(--color-button-background);color:var(--color-button-disabled);cursor:default}.qcO5nQrEYlrbGUI5_HV2{border:none;border-radius:0.25rem;padding:0.25rem 0.5rem;font-family:var(--font-family-sans);font-size:12px;background-color:var(--color-tooltip-background);color:var(--color-tooltip-text);box-shadow:1px 1px 2px var(--color-shadow);z-index:10000002}.sP6uS8ZOU4PkDlNU0AYK{background-color:var(--color-forget-badge-background);color:var(--color-forget-text);padding-right:1.75em;position:relative}.sP6uS8ZOU4PkDlNU0AYK::after{bottom:0;content:'✨';position:absolute;right:0.25em}.j3Lt3YqBHSwuvIVtnIxU{display:flex}.j3Lt3YqBHSwuvIVtnIxU > span{padding:0}.SjNrJ30jUO5kUSCsWh4c{display:inline-flex;align-items:center}.SjNrJ30jUO5kUSCsWh4c *:not(:first-child){margin-left:0.25rem}.j9rH1DJ2jYY7I1tswNOx{font-family:var(--font-family-monospace);font-size:var(--font-size-monospace-small);color:var(--color-component-badge-count)}.MOeHyomWH2dTqysCu6Ii{border:none;background:var(--color-button-background);color:var(--color-button);padding:0;border-radius:0.25rem;flex:0 0 auto;cursor:pointer}.Bqh_X7NE5GXewPWjYfHS{display:inline-flex;align-items:center;border-radius:0.25rem;padding:0.25rem}.MOeHyomWH2dTqysCu6Ii:hover{color:var(--color-button-hover)}.MOeHyomWH2dTqysCu6Ii:active{color:var(--color-button-focus);outline:none}.MOeHyomWH2dTqysCu6Ii:focus,\n.Bqh_X7NE5GXewPWjYfHS:focus{outline:none}.MOeHyomWH2dTqysCu6Ii:focus > .Bqh_X7NE5GXewPWjYfHS{background:var(--color-button-background-focus)}.MOeHyomWH2dTqysCu6Ii:disabled,\n.MOeHyomWH2dTqysCu6Ii:disabled:active{background:var(--color-button-background);color:var(--color-button-disabled);cursor:default}.KnW_4cWEGGD9FwhVT9QD{display:inline-flex;align-items:center}.KnW_4cWEGGD9FwhVT9QD *:not(:first-child){margin-left:0.25rem}.HoegScUNT6el6r_64bVM{font-family:var(--font-family-monospace);font-size:var(--font-size-monospace-small);color:var(--color-component-badge-count)}.WHQXCIB889mhOibUlVw3{max-width:100%;overflow-x:auto;flex:1;display:flex;align-items:center;position:relative}.yUIRrL7yKCLaXF6ItcoI,\n.yUIRrL7yKCLaXF6ItcoI[data-reach-menu-item]{font-family:var(--font-family-monospace);font-size:var(--font-size-monospace-normal);user-select:none;white-space:nowrap;display:flex;align-items:center}.yUIRrL7yKCLaXF6ItcoI[data-reach-menu-item][data-selected],\n.yUIRrL7yKCLaXF6ItcoI[data-reach-menu-item][data-selected]:hover{color:var(--color-text-selected);background:var(--color-background-selected)}.yUIRrL7yKCLaXF6ItcoI[data-reach-menu-item][data-selected]:focus{outline:none}.nhMZmmw7LxaMIBx6xoM8{display:flex;flex:1 1 auto;overflow-x:auto}.cUTK6f0z3ITKjeL2ol8i{flex:0 0 auto;height:20px;width:1px;background-color:var(--color-border);margin:0 0.5rem}.r2aVXzu4LAnDVb2tmbPW{border-radius:0.25rem;display:inline-flex;align-items:center;padding:0;flex:0 0 auto;border:none;background:var(--color-button-background);color:var(--color-button)}.oAO_XVma76tsNMmoxTxO{display:inline-flex;align-items:center;border-radius:0.25rem;padding:0.25rem}.r2aVXzu4LAnDVb2tmbPW:hover{color:var(--color-button-hover)}.r2aVXzu4LAnDVb2tmbPW[aria-expanded='true'],\n.r2aVXzu4LAnDVb2tmbPW[aria-expanded='true']:active{color:var(--color-button-active);outline:none}.r2aVXzu4LAnDVb2tmbPW:focus,\n.oAO_XVma76tsNMmoxTxO:focus{outline:none}.r2aVXzu4LAnDVb2tmbPW:focus > .oAO_XVma76tsNMmoxTxO{background:var(--color-button-background-focus)}.juYKJGefcTFWuubhKPTL[data-reach-menu-list]{display:inline-flex;flex-direction:column;background-color:var(--color-background);color:var(--color-button);padding:0.25rem 0;padding-right:0;border:1px solid var(--color-border);border-radius:0.25rem;max-height:10rem;overflow:auto;z-index:10000002;position:relative;font-family:var(--font-family-monospace);font-size:var(--font-size-monospace-normal)}.lyr9bhz0P7vmm4xPXrSw,\n.lyr9bhz0P7vmm4xPXrSw:hover{color:var(--color-dimmest)}.WcjXaYs8j6rLO0JwrTSp{margin-left:0.25rem}.VMs1TFKbGygwf2rHPPkR{flex:1 1;display:flex;align-items:center}.DIPlRR9ISDncbPNuOIrF{flex:1 1 100px;width:100px;font-size:var(--font-size-sans-large);outline:none;border:none;background-color:var(--color-background);color:var(--color-text);padding-left:1.5rem;margin-left:-1rem}.Ti4BEBXnbAQp1lGUIsYx{pointer-events:none;z-index:2;color:var(--color-dimmer)}.yVLbSSc1CG5ZY60ChkxC{color:var(--color-dim);font-size:var(--font-size-sans-normal);white-space:pre}.RO_9dALMy9pEJs_usl1_{height:20px;width:1px;background-color:var(--color-border)}.RO_9dALMy9pEJs_usl1_{margin:0 0.25rem 0 0.5rem}.kdV7QNZg7DoUYF_P3pHh,\n.TUJK9x5GTxI9hMQD4CUP{position:absolute;left:0;width:100%;z-index:0;pointer-events:none}.kdV7QNZg7DoUYF_P3pHh{background-color:var(--color-selected-tree-highlight-active)}.TUJK9x5GTxI9hMQD4CUP{background-color:var(--color-selected-tree-highlight-inactive)}.eym3VHX8dLMdgKTfvKFp{position:relative;height:100%;width:100%;display:flex;flex-direction:column;border-top:1px solid var(--color-border);--indentation-size:12px}.spkW6SBc8slOOEwsvkVe{overflow-x:hidden!important}.q1EQ300j6SHomtf4uDLK{overflow-x:hidden}.lZrwozgZWn6U_97Og5BR{flex:0 0 42px;display:flex;align-items:center;border-bottom:1px solid var(--color-border);padding:0.5rem}.kEhyJm9EDBUWcHAFZeFI{width:100%;overflow:hidden;flex:1 0 auto}.kEhyJm9EDBUWcHAFZeFI:focus{outline:none}.spkW6SBc8slOOEwsvkVe{font-family:var(--font-family-monospace);font-size:var(--font-size-monospace-normal);line-height:var(--line-height-data)}.aJUb5cChORMbLRrbpgMQ{height:20px;width:1px;flex:0 0 1px;margin:0 0.5rem;background-color:var(--color-border)}.EyQLmPex2HUhDtdv5CDj{height:100%;padding-left:0.5rem;display:flex;align-items:center;flex:1;justify-content:flex-start;font-size:var(--font-size-sans-large);color:var(--color-dim)}.KB_8VeUHgJzB_clWZEhK{display:flex;align-items:center;font-size:var(--font-size-sans-normal)}._azOr6JJwPNm7sFNMcjV, ._cXcjlSefrLNRqBwgL4W{width:0.75rem;height:0.75rem;margin-left:0.25rem;margin-right:0.25rem;flex:0 0 auto}._azOr6JJwPNm7sFNMcjV{color:var(--color-console-error-icon)}._cXcjlSefrLNRqBwgL4W{color:var(--color-console-warning-icon)}.fPhx_IyaNqzzB8Ck0RCD{padding-left:1em;opacity:0;animation:zqTATXE0YEbpxHbarDOQ 0.5s forwards;animation-delay:2s}@keyframes zqTATXE0YEbpxHbarDOQ{0%{opacity:0}100%{opacity:1}}.Hx0OASUc_YUYAswWj_SN{color:var(--color-button-active)}.Jw1vKro1qyK08Kgi4lXQ{flex:0 0 auto;display:flex;align-items:center;text-overflow:ellipsis;white-space:nowrap;overflow:auto;padding:0.25rem 0.5rem;background:var(--color-console-warning-background);color:var(--color-text);border-bottom:1px solid var(--color-console-warning-border);border-top:1px solid var(--color-console-warning-border)}.OkQt7gez_5Zbv2tBz9YF{flex:0 0 auto;display:flex;align-items:center;text-overflow:ellipsis;white-space:nowrap;overflow:auto;padding:0.25rem 0.5rem;background:var(--color-background-hover);border-bottom:1px solid var(--color-border)}.pobssL55b_qBkor0dyEw{height:100%;width:100%;background-color:var(--color-background);display:flex;flex-direction:column;border:1px solid var(--color-border)}.BMCPOZq6VTru3nezN1CN{padding:0.5rem;overflow:auto}.bjCnYALBmWFWJRvlKnuR{display:flex;flex-direction:row;font-size:var(--font-size-sans-large);font-weight:bold}.If9hSNFolZzI9zjxe3uB,\n.X_tgW3kFmkwoAYI8Lurx{flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.If9hSNFolZzI9zjxe3uB{color:var(--color-error-text)}.X_tgW3kFmkwoAYI8Lurx{color:var(--color-text)}.rdu6ANHP3wTLYuVNOjjy,\n.ONoWSLRXZt1O9VpA6ZNN{margin-top:0.5rem;white-space:pre-wrap;font-family:var(--font-family-monospace);font-size:var(--font-size-monospace-normal);-webkit-font-smoothing:initial;border-radius:0.25rem;padding:0.5rem;overflow:auto}.rdu6ANHP3wTLYuVNOjjy{background-color:var(--color-error-background);border:1px solid var(--color-error-border);color:var(--color-error-text)}.ONoWSLRXZt1O9VpA6ZNN{background-color:var(--color-console-warning-background);color:var(--color-console-warning-text);border:var(--color-console-warning-border)}.t0mXgtmAtexoj3eNFSi2{margin-right:0.25rem}.hkM9y_1BmI1h9s2LJuEi{margin-right:0.25rem}.BT7EiwHag0LPFdKGZRUA{color:var(--color-link)}.Z_Xw4ThFHcPmvHXpe8sP{margin-left:0.25rem}.Bppxr4Hl_IlmCJM_jAlw{margin-left:0.25rem;color:var(--color-console-warning-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.plwu44QqkJ3Sazkvcuz6{margin-right:0.25rem;color:var(--color-console-warning-text)}.ujPGMsE_z9gPJoyVF1D_{font-weight:bold}.HMpcHV7bWRjXWHCZ3iDI{margin-left:0.25rem}.drfHT3jZUSEYSS0XNYL_{margin-top:0.5rem;background:var(--color-console-warning-background);border:1px solid var(--color-console-warning-border);padding:0.25rem 0.5rem;border-radius:0.5rem;color:var(--color-console-warning-text)}.p7QWUJGSatfPkY7Fxv1X{width:1rem;height:1rem;fill:currentColor}.VaoI4BlPGgwJwhOCRtsD{height:100%}.PFpmDOwgyV41JdBnRz9Z{position:absolute;width:100%;height:100%;display:flex;flex-direction:row;align-items:flex-start;justify-content:center;padding:1rem;background-color:var(--color-modal-background);overflow:auto}.WAQNM1ZU8dHWiSzemaQm{position:relative;z-index:3;margin:0 0.25rem;width:25rem;min-width:20rem;max-width:100%;display:inline-block;background-color:var(--color-background);box-shadow:0 2px 4px var(--color-shadow);padding:0.5rem;border:1px solid var(--color-border);border-radius:0.25rem;font-size:var(--font-size-sans-normal)}.FCX_167XYnlhwfNuLzWn{font-size:var(--font-size-sans-large);margin-bottom:0.5rem}.GYUAYcxRXmi3HpeXVySA{text-align:right;margin-top:0.5rem}.eGn4soiHkWtcMEAhslki{font-size:var(--font-size-sans-large)}.eKXhn2sbXs1thQ1xt1b6{user-select:none;display:inline-flex}.eKXhn2sbXs1thQ1xt1b6 *:not(:first-child){margin-left:0.25rem}.hL22yQCjQzU4O_pjtwuf{min-width:0.5rem;flex:1 1 auto;border:none;background:transparent;outline:none;padding:0;border:none;font-family:var(--font-family-monospace);font-size:var(--font-size-monospace-normal)}.hL22yQCjQzU4O_pjtwuf:focus{border-color:var(--color-border)}.HPF7_KiXXen5Qvttf5jQ{flex:0 1 auto;box-shadow:0px 1px 3px transparent;color:var(--color-text)}.HPF7_KiXXen5Qvttf5jQ:focus{color:var(--color-text);box-shadow:0px 1px 3px var(--color-shadow)}.WqT8rJzZBGSUJHMBA9Tx{flex:0 0 auto;align-self:center;margin:0 0.25rem}.OOzAmP7gDhP65LH4K2s6{flex:1 1;background:none;border:1px solid transparent;color:var(--color-attribute-editable-value);border-radius:0.125rem;font-family:var(--font-family-monospace);font-size:var(--font-size-monospace-normal)}.y1WpuFCfhxR1kOosMGBp{flex:1 1;background:none;border:1px solid transparent;color:var(--color-attribute-editable-value);border-radius:0.125rem;font-family:var(--font-family-monospace);font-size:var(--font-size-monospace-normal);background-color:var(--color-background-invalid);color:var(--color-text-invalid);--color-border:var(--color-text-invalid)}.OOzAmP7gDhP65LH4K2s6:focus,\n.y1WpuFCfhxR1kOosMGBp:focus{background-color:var(--color-button-background-focus);outline:none}.ZftnGfJwnziFAgoRJyPx{white-space:nowrap;display:flex;align-items:center}.PzzlrSyI7WPRAeoi1BdZ{margin-left:1rem}.VIenmLs6g9LI6NqCHNde{background-color:var(--color-background-invalid);color:var(--color-text-invalid)!important}.VIenmLs6g9LI6NqCHNde:focus{background-color:var(--color-button-background-focus)}.UzMVso49lBzxLL1HjInq{white-space:nowrap;display:flex;align-items:center}.PaA9USRcdHeCV9WiBbyS{margin-left:1rem}.Pb3Nu0F3u7sIozsGv8uZ{min-width:1rem}.j6QZWx6K5z35fz2Growk{flex:0 0 1rem;width:1rem;height:1rem;padding:0;color:var(--color-expand-collapse-toggle)}.ZscuKd4JSHrHyo1Oh3Wp:not([hidden]){display:flex}.G9s7nMRxj2l1XUUhn0Pl{color:var(--color-attribute-name-not-editable);flex:0 0 auto;cursor:default}.qUQ5ooYij_68DtCFL535{color:var(--color-attribute-name);flex:0 0 auto;cursor:default}.VJhTyYOqjANsOJsHvfPg{color:var(--color-text);margin-right:0.5rem}.RSM9HPTOPas5xWSc9s1C{color:var(--color-attribute-value);white-space:pre;overflow:hidden;text-overflow:ellipsis;cursor:default;flex:1}.rm6VrdRUsB9aSPSGSD8Y{color:var(--color-link);white-space:pre;overflow:hidden;text-overflow:ellipsis;flex:1}.hOboECmgQcJF9U5FRRjW{flex:0 0 1rem;width:1rem}.DJ7rUAWzmhVRtbYkt9bg{padding:0;margin-right:0.125rem}.YOB3sdCfSr_qYyMcvl9Z{color:var(--color-component-name)}.omYdOiQA4INhfDwXiCGT{display:flex;align-items:center;color:var(--color-context-text);padding:0.5rem 0.75rem;cursor:default;border-top:1px solid var(--color-context-border);font-family:var(--font-family-sans);font-size:var(--font-size-sans-normal)}.omYdOiQA4INhfDwXiCGT:first-of-type{border-top:none}.omYdOiQA4INhfDwXiCGT:hover,\n.omYdOiQA4INhfDwXiCGT:focus{outline:0;background-color:var(--color-context-background-hover)}.omYdOiQA4INhfDwXiCGT:active{background-color:var(--color-context-background-selected);color:var(--color-context-text-selected)}.pVySJG3jMP40bWLFGBla{position:absolute;background-color:var(--color-context-background);box-shadow:1px 1px 2px var(--color-shadow);border-radius:0.25rem;overflow:hidden;z-index:10000002;user-select:none}.ZplKR_6Ki52aunUdBR3W{display:flex;flex-direction:row;align-items:center;gap:0.5rem}.ltOoJtAx5EC08rarvM4p{padding:0.25rem}.ltOoJtAx5EC08rarvM4p:first-of-type{border-top:none}.yS0BAulI6Ht22u7u94d8{display:flex;align-items:center}.fm_upKhhfGKt4zSRnhpE{display:flex;align-items:center;flex:1 1;font-family:var(--font-family-sans)}.j_4cxqwZqXAlcGfn6dJP{display:flex}.Mrf7n7Pe5sy2ngEb7vZS{color:var(--color-attribute-name);flex:0 0 auto}.Mrf7n7Pe5sy2ngEb7vZS:after{content:': ';color:var(--color-text);margin-right:0.5rem}._V05tLtyASx_cJMSpgrV{color:var(--color-attribute-value);overflow:hidden;text-overflow:ellipsis}.ysNVmdovBZAYNF423jos{color:var(--color-dimmer);font-style:italic}.MyDmtcCLu0zArOXrI9YD{color:var(--color-dimmer);font-style:italic;padding-left:0.75rem}.s0nJkLbCCF_l1MSRX98S{padding-left:1rem;white-space:nowrap;display:flex;align-items:center}.yF6fDjinAwiJTU3rYMJA{min-width:1rem}.DmmJ_c1P9vfx9ERrACGM, .RjKfbqv4ZTMxYD91YOsJ{padding:0.25rem 0 0 0}.ZZgXK0QkPtmRlYNt1vOs{padding:0 0.25rem}.ZZgXK0QkPtmRlYNt1vOs{padding:0 0.25rem}.F8ZcQwTPGdaFfSSN4It1, .OKLOnFhXJqOtrex9P8_W{padding:0 0.5rem;display:flex;align-items:center}.F8ZcQwTPGdaFfSSN4It1{border-top:1px solid var(--color-console-error-border);background-color:var(--color-console-error-background);color:var(--color-error-text);padding:0 0.5rem}.OKLOnFhXJqOtrex9P8_W{border-top:1px solid var(--color-console-warning-border);background-color:var(--color-console-warning-background);color:var(--color-warning-text);padding:0 0.5rem}.rD5uo9vzQItqB5zWzoQ3{overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap}._Ua1vMlecyqFUldp7wAc,\n.qNkjOY6DYZsJpx3DRwkD{display:inline-block;width:0.75rem;height:0.75rem;flex:0 0 0.75rem;line-height:0.75rem;text-align:center;border-radius:0.25rem;margin-right:0.25rem;font-size:var(--font-size-monospace-small)}._Ua1vMlecyqFUldp7wAc{background-color:var(--color-console-error-icon);color:var(--color-console-error-badge-text)}.qNkjOY6DYZsJpx3DRwkD{background-color:var(--color-console-warning-icon);color:var(--color-console-warning-badge-text)}.oqZagvwqy5I1eS9JxuSJ{padding:0.25rem;border-top:1px solid var(--color-border)}.AP1pfbidtpgoAIb9ZD0R{padding-left:1rem}.qnPv6TP0mB6Bq4K7owJ5{display:flex;align-items:center}.EU9PS8tCnHx9BDUiWzPQ{flex:1 1;font-family:var(--font-family-sans)}.pDUvmgJDA6w4qIhWgSGe{display:flex}.uUpdXk_BA8PtV6w7_bvZ,\n.Pa1JZ9djVog6TIyaUlQB{flex:0 0 auto;cursor:default}.uUpdXk_BA8PtV6w7_bvZ{color:var(--color-dim)}.Pa1JZ9djVog6TIyaUlQB{color:var(--color-dimmer)}.eHFNUPL3Js9_s88rp5UW{color:var(--color-attribute-name);flex:0 0 auto;cursor:default}.eHFNUPL3Js9_s88rp5UW:after,\n.uUpdXk_BA8PtV6w7_bvZ:after{color:var(--color-text);content:': ';margin-right:0.5rem}.CcGuLGOGx_QLVeJUNxEr{color:var(--color-attribute-value);overflow:hidden;text-overflow:ellipsis;cursor:default;white-space:nowrap}.d8jC9zgp1ezvSNfA31B_{color:var(--color-dimmer);font-style:italic}.EuKEnHO8Pe9Otdm7Ljwv{color:var(--color-dimmer)}.lNiUhoYzRTtFNM5vxbog{flex:0 0 1rem;width:1rem}.XGq4Z3xUrxK0rJ5OhXLo{background-color:var(--color-primitive-hook-badge-background);color:var(--color-primitive-hook-badge-text);font-size:var(--font-size-monospace-small);margin-right:0.25rem;border-radius:0.125rem;padding:0.125rem 0.25rem}.dFN2pn7cHDWz0UnPq7Ot{color:var(--color-component-name)}.JIMU22sckhXA_8Tmwk1T{color:var(--color-error-text)}.c1QgeBjOjJN4llhpOFbO{color:var(--color-dim);margin-left:1rem;overflow:auto;text-overflow:ellipsis}.VD1V5qP1lmb39G72wedQ{padding:0.25rem;border-top:1px solid var(--color-border);font-family:var(--font-family-monospace);font-size:var(--font-size-monospace-small)}.rPAerX5hZNiGDJppOpbq{font-family:var(--font-family-sans)}.OjNFM01Zj7nlXPIL6pBS,\n.DVd3LfnV9a0r1xnIo2pk{flex:1 1 auto;display:flex;flex-direction:column;align-items:center;border-width:1px;border-color:var(--color-dim);padding:0.25rem;margin:0.25rem}.OjNFM01Zj7nlXPIL6pBS{border-style:dashed}.DVd3LfnV9a0r1xnIo2pk{border-style:solid}.Adu1dCHqsyjaVcuOcKY8{width:100%;position:relative;display:flex;align-items:center;justify-content:center}.Vi7zav3ohBNd6o2HBeAT{position:absolute;left:0.5rem;flex:1 0 100px;color:var(--color-attribute-name)}.Te5NNRzWp5nqqs8NI4Pu{width:100%;display:flex;flex-direction:row;align-items:center}.AmFh8ffKc6AedWQcGfpg{font-family:var(--font-family-monospace);font-size:var(--font-size-monospace-normal);padding:0.25rem;border-top:1px solid var(--color-border)}.K_w5p9mPdwobJpJAVuOQ{display:flex;align-items:center}.S7T4EnXABpbKz7nLGU2H{flex:1 1}.NG7VgJltN4BT6xCuPOWt{font-family:var(--font-family-sans);font-size:var(--font-size-sans-small)}.E_2radqSW5Xlnn_R49zP{white-space:nowrap;padding-left:1rem;display:flex;align-items:center}.uyTHMxxFwiDt8VsOJ2Em{background-color:var(--color-background-invalid);color:var(--color-text-invalid);--color-border:var(--color-text-invalid)}.kQ0bT0HwWb8fuRYqCmyz{color:var(--color-attribute-name)}.BeqejgY4rmJOmPKTLUlN{color:var(--color-attribute-value)}.JhnyWgS3UJleovrVteqQ{flex:0 1 auto;padding:1px;box-shadow:0px 1px 3px transparent}.JhnyWgS3UJleovrVteqQ:focus{color:var(--color-text);box-shadow:0px 1px 3px var(--color-shadow)}.QGBqdeQCINFdybolYjz_{border-radius:0.25rem;animation:v9U5NmE9fqe0TBuebXMr 2s infinite}@keyframes v9U5NmE9fqe0TBuebXMr{0%, 100%{background-color:var(--color-dim)}50%{background-color:var(--color-dimmest)}}.YdqMguRALd3o4QHKOkCP{padding:0.25rem;border-top:1px solid var(--color-border)}.LmOPSwtqCOPq95UvFbZg{display:flex;align-items:center;min-height:24px}.GjPupFqKLWTIvKnSU0NK{flex:1 1;font-family:var(--font-family-sans)}.Vj7XlvFgqsT7YZZSQp8Q{font-family:var(--font-family-monospace);font-size:var(--font-size-monospace-normal);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;margin-left:1rem}.degzlzEXnOfIq7O6aEtD{padding:0.25rem;border-top:1px solid var(--color-border)}.QyzwGL5CVGmpYxajigQg{font-family:var(--font-family-sans)}.G1iPSTGC6eNcmT5RjA6C{color:var(--color-component-name);font-family:var(--font-family-monospace);font-size:var(--font-size-monospace-normal);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.YOXaHk9xYzASY3DKURUA{overflow-x:hidden;overflow-y:auto;font-family:var(--font-family-monospace);font-size:var(--font-size-monospace-normal);line-height:var(--line-height-data)}.s7UqGwXK0u5IO8pB45HE:not(:empty){padding:0.25rem;border-bottom:1px solid var(--color-border)}.G1iPSTGC6eNcmT5RjA6C{border-radius:0.25rem;padding:0.125rem 0.25rem;background:none;border:none;display:block}.G1iPSTGC6eNcmT5RjA6C:focus{outline:none;background-color:var(--color-button-background-focus)}.G2BCKBICgnFcziDETl7t{color:var(--color-dim);cursor:default}.YuAWbMYGVSUD5Xw13fGJ{cursor:pointer;width:100%;padding:0}.YXMHJBveMFexrfyxqi6O{display:flex;align-items:center;padding-left:1rem;width:100%;border-radius:0.25rem}.YXMHJBveMFexrfyxqi6O:hover{background-color:var(--color-background-hover)}.P14TYiR8U2gzEkHw_ISN{padding-left:1.25rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.W87cPUOEq9_b8BJ8wzi_{display:flex;flex-direction:column;height:100%;width:100%;border-left:1px solid var(--color-border);border-top:1px solid var(--color-border)}.bRyo53K1qkVwP17eMtpB{flex:0 0 42px;display:flex;align-items:center;font-size:var(--font-size-monospace-large);border-bottom:1px solid var(--color-border);padding:0.5rem}.aBtzuUuPzsX7SMY12BlU{flex:0 1 auto;padding-left:0.25rem;padding-right:0.125rem;line-height:1rem;border-top-left-radius:0.125rem;border-bottom-left-radius:0.125rem;display:inline-block;background-color:var(--color-component-badge-background);color:var(--color-text);font-family:var(--font-family-monospace);font-size:var(--font-size-monospace-small);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.nj4SAMmTUsR18n1AhsRR{height:1rem;width:1rem;margin-right:-0.25rem;border:0.5rem solid transparent;border-left:0.5rem solid var(--color-component-badge-background)}.fzFQP5c1Nu7WdBiHvVcv{flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;line-height:normal}.sZBTjxc2Uuj6j1x1PXgE{flex:1 1 auto;color:var(--color-component-name);font-family:var(--font-family-monospace);font-size:var(--font-size-monospace-normal);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.ioBCP8YZ8QjgPhP8HHS0{padding:0.25rem;color:var(--color-dimmer);font-style:italic;border-left:1px solid var(--color-border)}.qItvNDYiaAL24IKVfRqL{margin-right:0.25rem;color:var(--color-console-error-icon)}.azF2eH48iOjBz6HDO9Ow,\n.LPaApyuVrcOGD5qUoWQn,\n.dLYZXm2g99I3865s06gd{height:100%;display:flex;align-items:center;cursor:pointer;border-top:3px solid transparent;border-bottom:3px solid transparent;user-select:none;color:var(--color-text);position:relative;-webkit-app-region:no-drag}.azF2eH48iOjBz6HDO9Ow:hover,\n.LPaApyuVrcOGD5qUoWQn:hover{background-color:var(--color-background-hover)}.azF2eH48iOjBz6HDO9Ow:focus-within,\n.LPaApyuVrcOGD5qUoWQn:focus-within{background-color:var(--color-background-hover)}.LPaApyuVrcOGD5qUoWQn{border-bottom:3px solid var(--color-tab-selected-border)}.dLYZXm2g99I3865s06gd{color:var(--color-dim);cursor:default}.z_9NPSY02xL5C_rKNbEi{font-size:var(--font-size-sans-large);padding:0.5rem 1rem}.bj5wjZcEkvD4cnSPS9kl{font-size:var(--font-size-sans-normal);padding:0.25rem 0.5rem}.E9aLzYNgVRQ5FElw5qvk{font-size:var(--font-size-sans-normal);padding:0.25rem 0.5rem}.yX6Fn0DUz_VpvVLkzsUL{width:0;margin:0;opacity:0;position:absolute}.nNtZVyEhqWkkeV_FcVUV,\n.llzBtlsevYNSK2AemPVE,\n.z6c_Nl9j9w9_Ysw2pjBz{margin-right:0.5rem;color:var(--color-button-active)}.WvobeGrHZIFWyhQtt4q4{color:var(--color-dim)}.nNtZVyEhqWkkeV_FcVUV{width:1.5rem;height:1.5rem}.llzBtlsevYNSK2AemPVE{width:1rem;height:1rem}.z6c_Nl9j9w9_Ysw2pjBz{width:1rem;height:1rem}.IXUXIDmjzs4W4EylMtEP{height:20px;width:1px;border-left:1px solid var(--color-border);padding-left:0.25rem;margin-left:0.25rem}@media screen and (max-width: 525px){.nNtZVyEhqWkkeV_FcVUV{margin-right:0}.qyile5WCa81wrByw4pnO{display:none}}@media screen and (max-width: 900px){.ZXKpfJKiQo9w3SECMfLW{display:none}.llzBtlsevYNSK2AemPVE{margin-right:0}}@media screen and (max-width: 400px){.hQi4CAO4RGdWxa7jdQuX{display:none}.z6c_Nl9j9w9_Ysw2pjBz{margin-right:0}}.or1HUOer1f963ovFvr5c{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;font-family:var(--font-family-sans);font-size:var(--font-size-sans-normal)}.tUXIEFu9F_lS1kviOJqI{margin-bottom:0.5rem}.tUXIEFu9F_lS1kviOJqI:last-of-type{margin-bottom:0}.nJPtP4BdOmVGjNgNGrft{margin:0.5rem 0}.LF27cZYKRmoLaJO_HhHw{display:inline-flex;flex-direction:row;align-items:center;user-select:none;margin:0 1rem 0.5rem 0}.LF27cZYKRmoLaJO_HhHw:last-of-type{margin-right:0}.gL712cWer1wW2mjuBxkL{display:inline;margin-right:0.5rem}.zt7jGYrjsD3qQHNXrN4u{height:0.5rem}.WOW_X2PmrOQlYsEdM3Xs{display:block;padding:0 0 0.5rem}.QdRJQ2ye3WuBBFQd5Erc{height:1px;background-color:var(--color-border);width:100%;border:none;margin:0.5rem 0}.RwHFQRMh3YU9unsmEpEV{font-size:var(--font-size-sans-large);margin-top:0.5rem}.EIoKgKJ5y33CHiAHF9vg{margin-right:0.25rem}.uMyt1rJ3xueXHSqObKvX{padding:0.25rem 0;color:var(--color-dim)}.IUAA3lAy01Gi5SZLApio{min-width:20rem;margin-top:0.5rem;border-spacing:0}.GXiKg5qR1JJ41p147V6w{padding-bottom:0.5rem}.t42VqdEeUQxAZuw2K6dw{padding:0;padding-right:0.5rem}.t42VqdEeUQxAZuw2K6dw:last-of-type{text-align:right;padding-right:0}.aX39zH4zrFhnSC6I9m_Z{border:1px solid var(--color-border);border-radius:0.125rem;padding:0.125rem;margin-left:.5rem}.r8Qvw_BhB46V8Zk5t8id,\n.r8Qvw_BhB46V8Zk5t8id:active,\n.r8Qvw_BhB46V8Zk5t8id:focus,\n.r8Qvw_BhB46V8Zk5t8id:hover{color:var(--color-value-invalid)}.ncG7Mh41PuWfpuGMeP07,\n.LnhMDoxboSJz70znSVVs,\n.vTLPI_vaoDzDutbGmwDJ,\n.zyhbm27fRcSESereFAhG{border-radius:0.75rem;width:1rem;height:0.625rem;display:flex;align-items:center;padding:0.125rem}.ncG7Mh41PuWfpuGMeP07{background-color:var(--color-toggle-background-invalid);justify-content:flex-start}.LnhMDoxboSJz70znSVVs{background-color:var(--color-toggle-background-invalid);justify-content:flex-end}.vTLPI_vaoDzDutbGmwDJ{background-color:var(--color-toggle-background-off);justify-content:flex-start}.zyhbm27fRcSESereFAhG{background-color:var(--color-toggle-background-on);justify-content:flex-end}.R7l0YlZcT6dEVIL_Q3YO,\n.HXWZgik4UCPBgIWd3K0Y{border-radius:0.375rem;width:0.375rem;height:0.375rem;background-color:var(--color-toggle-text)}.z5hEC7NmGsfJUbrLoAiK{width:100%;background-color:var(--color-background-hover);padding:0.25rem 0.5rem;border-radius:0.25rem}.So46zBz2hS7SSvk1M1Db{color:var(--color-button-active)}.dj8ag9rXvtGe07NoRnoz{color:var(--color-error-text)}.BEsTZEoadFfmBZ7GXvj8{list-style:none;padding:0;margin:0}.eMk7OK1dSU4XuQKUmWp0{position:absolute;z-index:3;width:100%;top:0;bottom:0;background-color:var(--color-modal-background);display:flex;align-items:flex-start;justify-content:center;font-size:var(--font-size-sans-normal);padding:1rem}.d9G5s2h3mDlCu62lRtbP{display:flex;flex-direction:column;flex:0 1 auto;max-height:100%;background-color:var(--color-background);border:1px solid var(--color-border);box-shadow:0 2px 4px var(--color-shadow);border-radius:0.25rem;overflow:auto;width:410px;max-width:100%}.jbn0ZHmV4PmusgY73fFS{flex:1}.kf0dDWEgXidq8lUyeIUe{display:flex;flex-direction:row;border-bottom:1px solid var(--color-border);padding-right:0.25rem;flex:0 0 auto}.SXNg3Gs7j4CMOilBuQfo{padding:0.5rem;flex:0 1 auto;overflow:auto}.sq7P_up0IVLFeviKrLng{position:relative;width:100%;height:100%;display:flex;flex-direction:row;background-color:var(--color-background);color:var(--color-text);font-family:var(--font-family-sans)}.sq7P_up0IVLFeviKrLng, .sq7P_up0IVLFeviKrLng *{box-sizing:border-box;-webkit-font-smoothing:var(--font-smoothing)}.mtKVxGxGerKyM404mgS6{flex:0 0 var(--horizontal-resize-percentage);overflow:auto}.zBXCQOyxTkno88EftTO3{flex:1 1 35%;overflow-x:hidden;overflow-y:auto}.LvlXDd_vWgrnA_2hlp6P{flex:0 0 0px;position:relative}.KruXWRv8AZhJAyJ4mgCu{position:absolute;left:-2px;width:5px;height:100%;cursor:ew-resize}@media screen and (max-width: 600px){.sq7P_up0IVLFeviKrLng{flex-direction:column}.mtKVxGxGerKyM404mgS6{flex:0 0 var(--vertical-resize-percentage)}.zBXCQOyxTkno88EftTO3{flex:1 1 50%}.KruXWRv8AZhJAyJ4mgCu{top:-2px;left:0;width:100%;height:5px;cursor:ns-resize}}.Fto6ZGpW1Z2LYY_Tb3Uz{height:100%;padding-left:0.5rem;display:flex;align-items:center;justify-content:center;font-size:var(--font-size-sans-large);color:var(--color-dim);border-left:1px solid var(--color-border)}.L8woOxFUxxEIixztHQ7F{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}.AtobNEaumeuDxis8vMZL{font-size:var(--font-size-sans-large);margin-bottom:0.5rem}.wNUSnerUEet4FbVLoMYW{display:flex;align-items:center}.nxmnW8DZWX5ncv9cnvFA{transition:all ease-in-out 250ms}.UnrCr_TjeWWD_jCqAUG3{cursor:pointer;stroke:var(--color-background);transition:all ease-in-out 250ms}.nKkkaaYNee8JgVSmCnbu{pointer-events:none;transition:all ease-in-out 250ms}.p9pnq6uefSWIZs0uyvsm{pointer-events:none;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-family:var(--font-family-sans);font-size:var(--font-size-sans-normal);margin-left:0.25rem;margin-right:0.25rem;line-height:1.5;padding:0 0 0;font-weight:400;color:var(--color-commit-gradient-text);text-align:left;transition:all ease-in-out 250ms}.IkCgTd3uBjVma0pkjIWQ{margin-top:0.25rem}.o966ewEpKp83bg2KkhK9{font-family:var(--font-family-monospace);font-size:var(--font-size-monospace-small);line-height:1}.o966ewEpKp83bg2KkhK9:first-of-type::before{content:' ('}.o966ewEpKp83bg2KkhK9::after{content:', '}.o966ewEpKp83bg2KkhK9:last-of-type::after{content:')'}._8XubYXHe9_RJazk947v{font-weight:bold}.ANH3uQmqdejNNBMFVElK{padding:0.25rem 0;flex:0 0 auto;display:flex;flex-direction:column;gap:0.25rem}.ktt_CXlygBWE6kn8NPge{display:flex;flex-direction:column;gap:0.25rem}.ktt_CXlygBWE6kn8NPge:not(:empty){padding-bottom:0.25rem;border-bottom:1px solid var(--color-border)}.gQwq51H6S25d6j5fprQ6{user-select:none;overflow-y:auto}.lYjHEFZCqsMukwE8ta6U{flex:1;font-weight:bold;font-family:var(--font-family-monospace);font-size:var(--font-size-monospace-normal);white-space:nowrap;overflow-x:hidden;text-overflow:ellipsis;padding-bottom:0.25rem;border-bottom:1px solid var(--color-border)}.WfcYLToZgb8sJXT8vsc0{display:block;width:100%;text-align:left;background:none;border:none}.i_taW1oEEfmhrYS7WdvQ{position:absolute;pointer-events:none;border:none;border-radius:0.25rem;padding:0.25rem 0.5rem;font-family:var(--font-family-sans);font-size:12px;background-color:var(--color-tooltip-background);color:var(--color-tooltip-text);opacity:1;white-space:nowrap;z-index:10000002}.i_taW1oEEfmhrYS7WdvQ.YejlWmbOor4qvPIIBEOz{opacity:0}.ilzqvnQHcTjo1_CPyuBQ{width:-moz-max-content;width:-webkit-max-content}.fXsETZvykyOnCWEVGTyA{width:100%;flex:1;padding:0.5rem}.f8UQT2oHvCCgil4vX43p{stroke:var(--color-commit-did-not-render-pattern);stroke-width:1}.dCqfL52pEXxTO91bkkNQ{width:100%;flex:1;padding:0.5rem}.Y8k43_cve4m9S1C1lzcc{flex:1}.X3iRH_cmlxUnnqQJPwdk{color:var(--color-record-active)}.X3iRH_cmlxUnnqQJPwdk:hover{color:var(--color-record-active)}.X3iRH_cmlxUnnqQJPwdk:focus{color:var(--color-record-active)}.X3iRH_cmlxUnnqQJPwdk:active{color:var(--color-record-hover)}._Fmh73Tp_hVdvSq0LfwS{color:var(--color-record-inactive)}._Fmh73Tp_hVdvSq0LfwS:hover{color:var(--color-record-hover)}._Fmh73Tp_hVdvSq0LfwS:focus{color:var(--color-record-inactive)}._Fmh73Tp_hVdvSq0LfwS:active{color:var(--color-record-hover)}.D2ZC9ljzCsU1D10UgRfa{color:var(--color-button-disabled)}.D2ZC9ljzCsU1D10UgRfa:hover{color:var(--color-button-disabled)}.D2ZC9ljzCsU1D10UgRfa:focus{color:var(--color-button-disabled)}.D2ZC9ljzCsU1D10UgRfa:active{color:var(--color-button-disabled)}.PQXvlxJHC_mjwS_kG5hZ{width:100%;height:100%;position:relative;display:flex;flex-direction:row;align-items:stretch;font-family:var(--font-family-sans);font-size:var(--font-size-sans-normal);background-color:var(--color-background);color:var(--color-text)}.PQXvlxJHC_mjwS_kG5hZ, .PQXvlxJHC_mjwS_kG5hZ *{box-sizing:border-box;-webkit-font-smoothing:var(--font-smoothing)}.wOW0mX_KSifasFYp2M07{display:flex;flex-direction:column;flex:2 1 200px;border-top:1px solid var(--color-border)}.qNTcxtkwuoNmuFcG3uNQ{display:flex;flex-direction:column;flex:1 1 100px;max-width:300px;overflow-x:hidden;border-left:1px solid var(--color-border);border-top:1px solid var(--color-border)}.F9s7klTfnkD_0fKNmX48{position:relative;flex:1 1 auto;display:flex;flex-direction:column;align-items:center;justify-content:center}.O24130u6b3M44pVmHhCv{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0 1rem}.trpdR27polx2zi2M9anI{text-align:center}.MP9kRGAcsvXwBIKtJEjY{display:flex;flex-direction:row;align-items:center;justify-content:center}.SCM8kzD_pFUd1D02QPtH{margin-top:1rem;color:var(--color-dim);font-size:var(--font-size-sans-small)}.i7tKtcE5WUEZ2bsj4PAy{font-size:var(--font-size-sans-large);margin-bottom:0.5rem}.P93KFw4qPKJlTiW5iGWi{height:2.25rem;padding:0 0.25rem;flex:0 0 auto;display:flex;align-items:center;border-bottom:1px solid var(--color-border)}.rBTEU03NyiBSbh_F7eBN{height:20px;width:1px;border-left:1px solid var(--color-border);padding-left:0.25rem;margin-left:0.25rem}.puj9ffDcr9TRErtUxYA5{flex:1}.Nox22y17MWpcgoM0b2sW{font-size:var(--font-size-sans-large);padding:0.5rem}.SLdUfzK4Y4h6B5NNry2P{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:var(--font-size-sans-large);color:var(--color-dim)}.p18y0jnRRFvWc9Aahph6{height:100%;padding-left:0.5rem;display:flex;align-items:center;justify-content:center;font-size:var(--font-size-sans-large);color:var(--color-dim)}.qIhKE7GPUn_qxk7BAASy{color:var(--color-button)}.g6w1S218i5WBsiU5d1A3{flex:1 1;display:flex;align-items:center}.hQFhOL9f3ZT4IO97Mr85{color:var(--color-link);margin-left:0.25rem;margin-right:0.25rem}.N3EGKzrGIkBOWEWDf9L7{position:fixed}.AzaWiYKucXJKkE2mLtJl,\n.egwTq8xaZYmu5AwzN7q3,\n.I89UegKZ4CVKZ4fZi70A{display:block;border-radius:0.125rem;padding:0.25rem;user-select:none;pointer-events:none;background-color:var(--color-tooltip-background);box-shadow:1px 1px 2px var(--color-shadow);color:var(--color-tooltip-text);font-size:11px}.egwTq8xaZYmu5AwzN7q3{margin-top:0.25rem;background-color:var(--color-warning-background)}.AzaWiYKucXJKkE2mLtJl,\n.egwTq8xaZYmu5AwzN7q3{max-width:300px}.I89UegKZ4CVKZ4fZi70A{white-space:nowrap}.VNOllhItld4Pgmtf5Ppw{height:1px;background-color:#aaa;margin:0.25rem 0}.MPvO_4SSYDzHNp4lE94K{display:grid;padding-top:5px;grid-gap:2px 5px;grid-template-columns:min-content auto}.sZnI6xuf_7orBe2Asxn_{color:var(--color-dim);text-align:right;white-space:nowrap}.M0WUFL6gXSNmExgreLwO{word-break:break-all;max-height:50vh;overflow:hidden}.d9f4tr7dJUEW6jrEDyOt{word-break:break-word}.ejuIKX4HIM2d9POSXI85{font-weight:bold;word-break:break-word;margin-right:0.25rem}.GMAYJazv4K7ZpOr97hCQ{word-break:break-word}.w6QmYYdfsQPk6sau6zog{font-weight:bold;word-break:break-word;margin-right:0.25rem}.XGcHiWMwrBc5c2KR8wLv{color:var(--color-warning-text-color)}.Y4pd_lwDQuEbGYYczxPw{border:1px solid var(--color-border)}.F9Q4ycxrR5Cx58QdXTQF{color:var(--color-dim)}.OEnj08490n7qDJm7CNI8{position:absolute;top:0;bottom:0;left:0;right:0}.QjVtusM1KGirAKftEjwY{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0 1rem}.jiMh2PwnK6_SN21x4Q7M{font-size:var(--font-size-sans-large);margin-bottom:0.5rem}.pNkugLfjnL1A_GKSmR2Q{text-align:center;margin:0}.M9S99onnkkihyqGdp7ag{color:var(--color-link)}.Zu1Ac7CcqoyQYyYmgeqc{margin-top:1rem;color:var(--color-dim);font-size:var(--font-size-sans-small)}.Ixc7sI8z0MqS7K2bdXGW{color:var(--color-bridge-version-number)}.fwIa_vMWRtgmxAgYtV2y{background:var(--color-background-hover);padding:0.25rem 0.5rem;border-radius:0.25rem;margin-top:1rem}.eue06UGfhEQuo2ZKaXrY{width:100%;position:relative;flex:1 1 auto;display:flex;flex-direction:column;align-items:center;justify-content:center}.K_JJva1_xDfpSRy6RpDu{margin:0.5rem 0;color:var(--color-dim);font-family:var(--font-family-monospace);font-size:var(--font-size-monospace-normal)}.fU0E28avKp3oPxeR34NR{display:flex;flex-direction:row;align-items:center;justify-content:center;flex-flow:wrap}.wjNO8GSvNqofzPC3JMXU{text-align:center}.tWwch6_bJnvq33qchywK{font-size:var(--font-size-sans-large);margin-bottom:0.5rem}.lgd3ZCMgCXtUMxt070tV{height:2.25rem;padding:0 0.5rem;flex:0 0 auto;display:flex;align-items:center;border-bottom:1px solid var(--color-border)}.sWXfInUyKrvDk6lK2o9D{padding:0.5rem;user-select:none;overflow:auto}.tubB5UBWO8CymMFmA5CF{list-style:none;margin:0;padding:0}.UOZgvcZmCsPSOtKDj0WN{flex:1 1;margin:0 0 0.5rem}.fDFFFS6FSdkZVvvvVkUt{overflow:hidden;text-overflow:ellipsis;font-weight:bold;flex:1 1}.jlV06smRNDvlE9a_KfXK{font-family:var(--font-family-monospace);font-size:var(--font-size-monospace-normal)}.jCiyjnM7GK5KxPMT5GMO{display:flex;flex-direction:row;align-items:center;border-top:1px solid var(--color-border)}.BTlRsBnXtBSjjGNX0uzb,\n.fRBYQh_ObZ4pHWasihPS{width:100%;overflow:hidden;text-overflow:ellipsis;font-family:var(--font-family-sans);font-size:var(--font-size-sans-normal)}.BTlRsBnXtBSjjGNX0uzb{color:var(--color-dim)}.fRBYQh_ObZ4pHWasihPS{color:var(--color-text)}.fRBYQh_ObZ4pHWasihPS:focus,\n.fRBYQh_ObZ4pHWasihPS:hover{background-color:var(--color-background-hover)}.N8H0SJ33TtBea__rELXw{height:20px;width:1px;border-left:1px solid var(--color-border);padding-left:0.25rem;margin-left:0.25rem}._08ibVjqcFQVJ0Dv8n1AX{position:absolute!important;height:1px;width:1px;overflow:hidden;clip:rect(1px,1px,1px,1px)}.aieWFlSkxB_kzGCdLw_G{margin:0.5rem 0;color:var(--color-dim);font-family:var(--font-family-monospace);font-size:var(--font-size-monospace-normal)}.jw93IlCe1adpUzntTNgc{user-select:none;cursor:pointer;border-bottom:3px solid transparent;padding-top:4px;padding-bottom:1px;display:flex;align-items:flex-end}.jw93IlCe1adpUzntTNgc:hover{background-color:var(--color-background)}._5XUdsPllhotmtTs9R33A,\n.tX5mJ_WVcSwasnpmMncZ{width:100%;min-height:2px;background-color:var(--color-commit-did-not-render-fill);color:var(--color-commit-did-not-render-fill-text)}.tX5mJ_WVcSwasnpmMncZ{background-color:var(--color-button-active)}.sfkKfFJiQWXm4ZkgOQA_{overflow-x:hidden!important}.uWBBMcT5QRe8BLmRr5DN{margin-top:2.5rem}.PeBCG3928_FRgKe17he8{list-style:none;padding:0;margin:0}.wKr9YTA5FM7_JaJbZOv2{display:flex}.cfm4U9M_1T9x2RmXMrxG{font-weight:bold;margin-right:0.25rem}.cfm4U9M_1T9x2RmXMrxG:after{content:':'}.qRIEqFLWDIjANIC0Ntie{flex-grow:1;text-align:end}.izM1TvBpZUUcTQ42Frqn{flex-grow:1}.s7evU0HIQSOHulfOSX9I{list-style:none;margin:0 0 0 1rem;padding:0}.c8bhlz4IND24Tuk1grrp{display:flex}.WD60Q47uUTiP3xkXlZyb{margin-right:0.25rem}.WD60Q47uUTiP3xkXlZyb:after{content:':'}.xhTBBmJDUq4Q4FqKQ0Ej{flex-grow:1;text-align:end}._CufCnCVGPGWnSFl1uho{flex:0 0 auto;margin-left:0.25rem}.Hl8vt0A1Pvc45oOEfvfc{height:100%;min-width:30px;margin-left:0.25rem;overflow:visible}.Hl8vt0A1Pvc45oOEfvfc:focus{outline:none;background-color:var(--color-button-background-focus)}.xiLvxcsoqxeWVh07R31l{flex:0 0 auto;white-space:nowrap;font-family:var(--font-family-monospace);margin-left:0.25rem}.jsUKzO10uV20A3wnvydO{height:100%;display:flex;align-items:center;justify-content:center;color:var(--color-dim)}.ugxes_bEQaeJOFCGJiHj{background:none;font-size:var(--font-size-sans-normal);text-align:right;font-family:var(--font-family-monospace);border:1px solid transparent;border-radius:0.125rem;padding:0.125rem;color:var(--color-attribute-editable-value)}.ugxes_bEQaeJOFCGJiHj:focus{background-color:var(--color-button-background-focus);outline:none}.N5BzlnGYbkkzyvpM4qiQ{margin:0 0 0.5rem}.OgEAxEkwb3k_69AoeGQg,\n._1c63tyMUi98qTClO_SL,\n.IfiD3wgD1AOg2rtpeal7{display:block;width:100%;text-align:left;background:none;border:none;padding:0.25rem 0.5rem;color:var(--color-text)}._1c63tyMUi98qTClO_SL:focus,\n._1c63tyMUi98qTClO_SL:hover{outline:none;background-color:var(--color-background-hover)}.OgEAxEkwb3k_69AoeGQg,\n.IfiD3wgD1AOg2rtpeal7{color:var(--color-dim)}.Db7NQhHEeI91oH3Hvbam{height:2.25rem;padding:0 0.5rem;flex:0 0 auto;display:flex;align-items:center;border-bottom:1px solid var(--color-border)}.aZe2MG7Dqp4KMuyOUDBb{padding:0.5rem;user-select:none;overflow:auto}.f6VXZunRdhS7mNMG6eEP{list-style:none;margin:0;padding:0}.kcRreMlssKZxm_LOVtFG{margin:0 0 0.5rem}.ZwF9CPaTyMcALuS4IHhC{overflow:hidden;text-overflow:ellipsis;font-weight:bold}.uo6JwMiedyAH3mIG8aVo{font-family:var(--font-family-monospace);font-size:var(--font-size-monospace-normal)}.I2PpODEiFO9QPDXyopKq{display:flex;align-items:center;justify-content:center;height:100%;color:var(--color-dim)}.BCDwBn2mncLqqERXZimU{list-style:none;margin:0.25rem 0 0 0;padding:0;background:var(--color-background-inactive);padding:0.25rem 0.5rem;border-radius:0.25rem}.QRBDzhIQcmbPsRZCmqac{margin:0.25rem 0 0 0}.QRBDzhIQcmbPsRZCmqac:first-of-type{margin:0}.kksxAeylH3yoPGPSZs4x{height:2.25rem;padding:0 0.5rem;flex:0 0 auto;display:flex;align-items:center;border-bottom:1px solid var(--color-border)}.VJy47nzDRAprXO7tY3LS{padding:0.5rem;user-select:none;overflow-y:auto;display:flex;flex-direction:column;gap:0.5rem}.ISf33Slct6dgSxu6Jgnp{flex:1;color:var(--color-component-name);font-family:var(--font-family-monospace);font-size:var(--font-size-monospace-normal);white-space:nowrap;overflow-x:hidden;text-overflow:ellipsis}.aHgahOIZbyM7IqHd3i2t{font-weight:bold;margin-bottom:0.5rem}.DHfht546g4Kr5iX3Oa6Q,\n.q3pfRhYTXkmwbWV74Kww{display:block;width:100%;text-align:left;background:none;border:none;padding:0.25rem 0.5rem;color:var(--color-text)}.q3pfRhYTXkmwbWV74Kww:focus,\n.q3pfRhYTXkmwbWV74Kww:hover{outline:none;background-color:var(--color-background-hover)}.DHfht546g4Kr5iX3Oa6Q{background-color:var(--color-background-selected);color:var(--color-text-selected)}.DHfht546g4Kr5iX3Oa6Q:focus{outline:none}.REvy6Ilr7KQBh3VP5KtT{width:1.75rem;height:1.75rem;margin:0 0.75rem 0 0.25rem;color:var(--color-button-active)}.WCWwtFCxOl5nFSUfDDGa{display:flex;flex-direction:column}.OnEPWhy5tIMKTSyQh0Ft{font-size:var(--font-size-sans-large);margin-bottom:0.5rem}.x5T9XRpiOFNLuohENqPx{color:var(--color-bridge-version-number);font-weight:bold}.y82TcRh54m1qPbnRqfgX{display:flex;justify-content:space-between;padding:0.25rem 0.25rem 0.25rem 0.5rem;background-color:var(--color-bridge-version-npm-background);color:var(--color-bridge-version-npm-text);margin:0;font-family:var(--font-family-monospace);font-size:var(--font-size-monospace-large)}.Rof042N87RxT4OmFvFtV{margin:0.5rem 0}.WH5ByD51MpftIKuPl22B{color:var(--color-link)}.tINNQLO_ESQYrWI5Rp6a{display:flex;flex-direction:row;align-items:center}.N1Ps1KUz8upQaCUzkRb5{font-size:var(--font-size-sans-large);margin-bottom:0.5rem}.jt836PeIJQhMqB1vKLQi{color:var(--color-button-active)}.p8jhsAoxvFjiAgT7yMG9{background-color:var(--color-dimmest);padding:0.25rem 0.5rem;display:block;border-radius:0.125rem}.Hkuka5z7FNWzWV4iBl5N{width:100%;height:100%;display:flex;flex-direction:column;background-color:var(--color-background);color:var(--color-text)}.tPiY5I6mjO9E1BEvS3GI{flex:0 0 auto;display:flex;align-items:center;padding:0 0.5rem;background-color:var(--color-background);border-top:1px solid var(--color-border);font-family:var(--font-family-sans);font-size:var(--font-size-sans-large);user-select:none;-webkit-app-region:drag}.Wp5jbuBw2jpcKiKlQRTT{flex:1}.M1NR4kt2K_VBDm0ap8WR{flex:1 1 100%;overflow:auto;-webkit-app-region:no-drag}.lflmhRDlQN6CHxnrjuAx{font-size:var(--font-size-sans-normal);margin-right:0.5rem}.lflmhRDlQN6CHxnrjuAx:before{font-size:var(--font-size-sans-large);content:'DevTools '}@media screen and (max-width: 400px){.lflmhRDlQN6CHxnrjuAx:before{content:''}}@media screen and (max-width: 300px){.lflmhRDlQN6CHxnrjuAx{display:none}}.Hkuka5z7FNWzWV4iBl5N, .Hkuka5z7FNWzWV4iBl5N *{box-sizing:border-box;-webkit-font-smoothing:var(--font-smoothing)}:root{--font-smoothing:auto;--font-family-monospace:'SFMono-Regular',Consolas,'Liberation Mono',Menlo,Courier,monospace;--font-family-sans:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol}\n/*# sourceURL=package/frontend.css */\n");export{c as CSS,o as createBridge,s as createStore,l as initialize}; +function(r){function t(e,r){return function(){e.apply(r,arguments)}}function n(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=null,this._value=null,this._deferreds=[],c(e,t(i,this),t(o,this))}function a(e){var r=this;return null===this._state?void this._deferreds.push(e):void u((function(){var t=r._state?e.onFulfilled:e.onRejected;if(null!==t){var n;try{n=t(r._value)}catch(r){return void e.reject(r)}e.resolve(n)}else(r._state?e.resolve:e.reject)(r._value)}))}function i(e){try{if(e===this)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var r=e.then;if("function"==typeof r)return void c(t(r,e),t(i,this),t(o,this))}this._state=!0,this._value=e,s.call(this)}catch(e){o.call(this,e)}}function o(e){this._state=!1,this._value=e,s.call(this)}function s(){for(var e=0,r=this._deferreds.length;r>e;e++)a.call(this,this._deferreds[e]);this._deferreds=null}function l(e,r,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof r?r:null,this.resolve=t,this.reject=n}function c(e,r,t){var n=!1;try{e((function(e){n||(n=!0,r(e))}),(function(e){n||(n=!0,t(e))}))}catch(e){if(n)return;n=!0,t(e)}}var u=n.immediateFn||"function"==typeof setImmediate&&setImmediate||function(e){setTimeout(e,1)},f=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};n.prototype.catch=function(e){return this.then(null,e)},n.prototype.then=function(e,r){var t=this;return new n((function(n,i){a.call(t,new l(e,r,n,i))}))},n.all=function(){var e=Array.prototype.slice.call(1===arguments.length&&f(arguments[0])?arguments[0]:arguments);return new n((function(r,t){function n(i,o){try{if(o&&("object"==typeof o||"function"==typeof o)){var s=o.then;if("function"==typeof s)return void s.call(o,(function(e){n(i,e)}),t)}e[i]=o,0==--a&&r(e)}catch(e){t(e)}}if(0===e.length)return r([]);for(var a=e.length,i=0;in;n++)e[n].then(r,t)}))},e.exports?e.exports=n:r.Promise||(r.Promise=n)}(this),a.copy=function(e){return new Promise((function(r,t){if("string"!=typeof e&&!("text/plain"in e))throw new Error("You must provide a text/plain type.");var n="string"==typeof e?e:e["text/plain"];window.clipboardData.setData("Text",n)?r():t(new Error("Copying was rejected."))}))},a.paste=function(){return new Promise((function(e,r){var t=window.clipboardData.getData("Text");t?e(t):r(new Error("Pasting was rejected."))}))}),a}()},715:function(e,r,t){var n,a,i;a=[t(356)],void 0===(i="function"==typeof(n=function(e){var r=/(^|@)\S+:\d+/,t=/^\s*at .*(\S+:\d+|\(native\))/m,n=/^(eval@)?(\[native code])?$/;return{parse:function(e){if(void 0!==e.stacktrace||void 0!==e["opera#sourceloc"])return this.parseOpera(e);if(e.stack&&e.stack.match(t))return this.parseV8OrIE(e);if(e.stack)return this.parseFFOrSafari(e);throw new Error("Cannot parse given Error object")},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var r=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));return[r[1],r[2]||void 0,r[3]||void 0]},parseV8OrIE:function(r){return r.stack.split("\n").filter((function(e){return!!e.match(t)}),this).map((function(r){r.indexOf("(eval ")>-1&&(r=r.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var t=r.replace(/^\s+/,"").replace(/\(eval code/g,"("),n=t.match(/ (\((.+):(\d+):(\d+)\)$)/),a=(t=n?t.replace(n[0],""):t).split(/\s+/).slice(1),i=this.extractLocation(n?n[1]:a.pop()),o=a.join(" ")||void 0,s=["eval",""].indexOf(i[0])>-1?void 0:i[0];return new e({functionName:o,fileName:s,lineNumber:i[1],columnNumber:i[2],source:r})}),this)},parseFFOrSafari:function(r){return r.stack.split("\n").filter((function(e){return!e.match(n)}),this).map((function(r){if(r.indexOf(" > eval")>-1&&(r=r.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===r.indexOf("@")&&-1===r.indexOf(":"))return new e({functionName:r});var t=/((.*".+"[^@]*)?[^@]*)(?:@)/,n=r.match(t),a=n&&n[1]?n[1]:void 0,i=this.extractLocation(r.replace(t,""));return new e({functionName:a,fileName:i[0],lineNumber:i[1],columnNumber:i[2],source:r})}),this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(r){for(var t=/Line (\d+).*script (?:in )?(\S+)/i,n=r.message.split("\n"),a=[],i=2,o=n.length;i/,"$2").replace(/\([^)]*\)/g,"")||void 0;i.match(/\(([^)]*)\)/)&&(t=i.replace(/^[^(]+\(([^)]*)\)$/,"$1"));var s=void 0===t||"[arguments not available]"===t?void 0:t.split(",");return new e({functionName:o,args:s,fileName:a[0],lineNumber:a[1],columnNumber:a[2],source:r})}),this)}}})?n.apply(r,a):n)||(e.exports=i)},14:e=>{var r=/[|\\{}()[\]^$+*?.]/g;e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(r,"\\$&")}},486:e=>{const r=/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;function t(e){const t=e.match(r);if(null==t)throw new Error("Unexpected error - failed to regex-match URL");return{schemeAndAuthority:(t[1]||"")+(t[3]||""),path:t[5]||"",hasQueryPart:null!=t[6],queryWithoutQuestionMark:t[7]||"",fragmentWithHash:t[8]||""}}function n(e){const r=t(e);return-1===r.path.indexOf("//&")?e:r.schemeAndAuthority+r.path.replace("//&","?")+(r.queryWithoutQuestionMark.length>0?"&"+r.queryWithoutQuestionMark:"")+r.fragmentWithHash}e.exports={isJscSafeUrl:function(e){return!t(e).hasQueryPart},toNormalUrl:n,toJscSafeUrl:function(e){if(!t(e).hasQueryPart)return e;const r=t(n(e));if(r.queryWithoutQuestionMark.length>0&&(""===r.path||"/"===r.path))throw new Error(`The given URL "${e}" has an empty path and cannot be converted to a JSC-safe format.`);return r.schemeAndAuthority+r.path+(r.queryWithoutQuestionMark.length>0?"//&"+r.queryWithoutQuestionMark.replace(/\?/g,"%3F"):"")+r.fragmentWithHash}}},804:function(e){e.exports=function(){function e(e,r){return e(r={exports:{}},r.exports),r.exports}var r=e((function(e){var r=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)})),t=e((function(e){var r=e.exports={version:"2.6.5"};"number"==typeof __e&&(__e=r)})),n=(t.version,function(e){return"object"==typeof e?null!==e:"function"==typeof e}),a=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e},i=function(e){try{return!!e()}catch(e){return!0}},o=!i((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),s=r.document,l=n(s)&&n(s.createElement),c=function(e){return l?s.createElement(e):{}},u=!o&&!i((function(){return 7!=Object.defineProperty(c("div"),"a",{get:function(){return 7}}).a})),f=function(e,r){if(!n(e))return e;var t,a;if(r&&"function"==typeof(t=e.toString)&&!n(a=t.call(e)))return a;if("function"==typeof(t=e.valueOf)&&!n(a=t.call(e)))return a;if(!r&&"function"==typeof(t=e.toString)&&!n(a=t.call(e)))return a;throw TypeError("Can't convert object to primitive value")},d=Object.defineProperty,v={f:o?Object.defineProperty:function(e,r,t){if(a(e),r=f(r,!0),a(t),u)try{return d(e,r,t)}catch(e){}if("get"in t||"set"in t)throw TypeError("Accessors not supported!");return"value"in t&&(e[r]=t.value),e}},h=function(e,r){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:r}},m=o?function(e,r,t){return v.f(e,r,h(1,t))}:function(e,r,t){return e[r]=t,e},p={}.hasOwnProperty,_=function(e,r){return p.call(e,r)},S=0,g=Math.random(),b=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++S+g).toString(36))},w=!1,k=e((function(e){var n="__core-js_shared__",a=r[n]||(r[n]={});(e.exports=function(e,r){return a[e]||(a[e]=void 0!==r?r:{})})("versions",[]).push({version:t.version,mode:w?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})})),E=k("native-function-to-string",Function.toString),y=e((function(e){var n=b("src"),a="toString",i=(""+E).split(a);t.inspectSource=function(e){return E.call(e)},(e.exports=function(e,t,a,o){var s="function"==typeof a;s&&(_(a,"name")||m(a,"name",t)),e[t]!==a&&(s&&(_(a,n)||m(a,n,e[t]?""+e[t]:i.join(String(t)))),e===r?e[t]=a:o?e[t]?e[t]=a:m(e,t,a):(delete e[t],m(e,t,a)))})(Function.prototype,a,(function(){return"function"==typeof this&&this[n]||E.call(this)}))})),D=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e},A=function(e,r,t){if(D(e),void 0===r)return e;switch(t){case 1:return function(t){return e.call(r,t)};case 2:return function(t,n){return e.call(r,t,n)};case 3:return function(t,n,a){return e.call(r,t,n,a)}}return function(){return e.apply(r,arguments)}},C="prototype",M=function(e,n,a){var i,o,s,l,c=e&M.F,u=e&M.G,f=e&M.S,d=e&M.P,v=e&M.B,h=u?r:f?r[n]||(r[n]={}):(r[n]||{})[C],p=u?t:t[n]||(t[n]={}),_=p[C]||(p[C]={});for(i in u&&(a=n),a)s=((o=!c&&h&&void 0!==h[i])?h:a)[i],l=v&&o?A(s,r):d&&"function"==typeof s?A(Function.call,s):s,h&&y(h,i,s,e&M.U),p[i]!=s&&m(p,i,l),d&&_[i]!=s&&(_[i]=s)};r.core=t,M.F=1,M.G=2,M.S=4,M.P=8,M.B=16,M.W=32,M.U=64,M.R=128;var x,T=M,H=Math.ceil,N=Math.floor,R=function(e){return isNaN(e=+e)?0:(e>0?N:H)(e)},I=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},O=(x=!1,function(e,r){var t,n,a=String(I(e)),i=R(r),o=a.length;return i<0||i>=o?x?"":void 0:(t=a.charCodeAt(i))<55296||t>56319||i+1===o||(n=a.charCodeAt(i+1))<56320||n>57343?x?a.charAt(i):t:x?a.slice(i,i+2):n-56320+(t-55296<<10)+65536});T(T.P,"String",{codePointAt:function(e){return O(this,e)}}),t.String.codePointAt;var F=Math.max,P=Math.min,L=function(e,r){return(e=R(e))<0?F(e+r,0):P(e,r)},z=String.fromCharCode,B=String.fromCodePoint;T(T.S+T.F*(!!B&&1!=B.length),"String",{fromCodePoint:function(e){for(var r,t=arguments,n=[],a=arguments.length,i=0;a>i;){if(r=+t[i++],L(r,1114111)!==r)throw RangeError(r+" is not a valid code point");n.push(r<65536?z(r):z(55296+((r-=65536)>>10),r%1024+56320))}return n.join("")}}),t.String.fromCodePoint;var V,U,W,j,$,X,G,K,q,Y,Q,J,Z,ee,re={Space_Separator:/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,ID_Start:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,ID_Continue:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},te={isSpaceSeparator:function(e){return"string"==typeof e&&re.Space_Separator.test(e)},isIdStartChar:function(e){return"string"==typeof e&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||"$"===e||"_"===e||re.ID_Start.test(e))},isIdContinueChar:function(e){return"string"==typeof e&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||"$"===e||"_"===e||"‌"===e||"‍"===e||re.ID_Continue.test(e))},isDigit:function(e){return"string"==typeof e&&/[0-9]/.test(e)},isHexDigit:function(e){return"string"==typeof e&&/[0-9A-Fa-f]/.test(e)}},ne=function(e,r){V=String(e),U="start",W=[],j=0,$=1,X=0,G=void 0,K=void 0,q=void 0;do{G=ie(),he[U]()}while("eof"!==G.type);return"function"==typeof r?ae({"":q},"",r):q};function ae(e,r,t){var n=e[r];if(null!=n&&"object"==typeof n)for(var a in n){var i=ae(n,a,t);void 0===i?delete n[a]:n[a]=i}return t.call(e,r,n)}function ie(){for(Y="default",Q="",J=!1,Z=1;;){ee=oe();var e=le[Y]();if(e)return e}}function oe(){if(V[j])return String.fromCodePoint(V.codePointAt(j))}function se(){var e=oe();return"\n"===e?($++,X=0):e?X+=e.length:X++,e&&(j+=e.length),e}var le={default:function(){switch(ee){case"\t":case"\v":case"\f":case" ":case" ":case"\ufeff":case"\n":case"\r":case"\u2028":case"\u2029":return void se();case"/":return se(),void(Y="comment");case void 0:return se(),ce("eof")}if(!te.isSpaceSeparator(ee))return le[U]();se()},comment:function(){switch(ee){case"*":return se(),void(Y="multiLineComment");case"/":return se(),void(Y="singleLineComment")}throw _e(se())},multiLineComment:function(){switch(ee){case"*":return se(),void(Y="multiLineCommentAsterisk");case void 0:throw _e(se())}se()},multiLineCommentAsterisk:function(){switch(ee){case"*":return void se();case"/":return se(),void(Y="default");case void 0:throw _e(se())}se(),Y="multiLineComment"},singleLineComment:function(){switch(ee){case"\n":case"\r":case"\u2028":case"\u2029":return se(),void(Y="default");case void 0:return se(),ce("eof")}se()},value:function(){switch(ee){case"{":case"[":return ce("punctuator",se());case"n":return se(),ue("ull"),ce("null",null);case"t":return se(),ue("rue"),ce("boolean",!0);case"f":return se(),ue("alse"),ce("boolean",!1);case"-":case"+":return"-"===se()&&(Z=-1),void(Y="sign");case".":return Q=se(),void(Y="decimalPointLeading");case"0":return Q=se(),void(Y="zero");case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return Q=se(),void(Y="decimalInteger");case"I":return se(),ue("nfinity"),ce("numeric",1/0);case"N":return se(),ue("aN"),ce("numeric",NaN);case'"':case"'":return J='"'===se(),Q="",void(Y="string")}throw _e(se())},identifierNameStartEscape:function(){if("u"!==ee)throw _e(se());se();var e=ve();switch(e){case"$":case"_":break;default:if(!te.isIdStartChar(e))throw ge()}Q+=e,Y="identifierName"},identifierName:function(){switch(ee){case"$":case"_":case"‌":case"‍":return void(Q+=se());case"\\":return se(),void(Y="identifierNameEscape")}if(!te.isIdContinueChar(ee))return ce("identifier",Q);Q+=se()},identifierNameEscape:function(){if("u"!==ee)throw _e(se());se();var e=ve();switch(e){case"$":case"_":case"‌":case"‍":break;default:if(!te.isIdContinueChar(e))throw ge()}Q+=e,Y="identifierName"},sign:function(){switch(ee){case".":return Q=se(),void(Y="decimalPointLeading");case"0":return Q=se(),void(Y="zero");case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return Q=se(),void(Y="decimalInteger");case"I":return se(),ue("nfinity"),ce("numeric",Z*(1/0));case"N":return se(),ue("aN"),ce("numeric",NaN)}throw _e(se())},zero:function(){switch(ee){case".":return Q+=se(),void(Y="decimalPoint");case"e":case"E":return Q+=se(),void(Y="decimalExponent");case"x":case"X":return Q+=se(),void(Y="hexadecimal")}return ce("numeric",0*Z)},decimalInteger:function(){switch(ee){case".":return Q+=se(),void(Y="decimalPoint");case"e":case"E":return Q+=se(),void(Y="decimalExponent")}if(!te.isDigit(ee))return ce("numeric",Z*Number(Q));Q+=se()},decimalPointLeading:function(){if(te.isDigit(ee))return Q+=se(),void(Y="decimalFraction");throw _e(se())},decimalPoint:function(){switch(ee){case"e":case"E":return Q+=se(),void(Y="decimalExponent")}return te.isDigit(ee)?(Q+=se(),void(Y="decimalFraction")):ce("numeric",Z*Number(Q))},decimalFraction:function(){switch(ee){case"e":case"E":return Q+=se(),void(Y="decimalExponent")}if(!te.isDigit(ee))return ce("numeric",Z*Number(Q));Q+=se()},decimalExponent:function(){switch(ee){case"+":case"-":return Q+=se(),void(Y="decimalExponentSign")}if(te.isDigit(ee))return Q+=se(),void(Y="decimalExponentInteger");throw _e(se())},decimalExponentSign:function(){if(te.isDigit(ee))return Q+=se(),void(Y="decimalExponentInteger");throw _e(se())},decimalExponentInteger:function(){if(!te.isDigit(ee))return ce("numeric",Z*Number(Q));Q+=se()},hexadecimal:function(){if(te.isHexDigit(ee))return Q+=se(),void(Y="hexadecimalInteger");throw _e(se())},hexadecimalInteger:function(){if(!te.isHexDigit(ee))return ce("numeric",Z*Number(Q));Q+=se()},string:function(){switch(ee){case"\\":return se(),void(Q+=fe());case'"':return J?(se(),ce("string",Q)):void(Q+=se());case"'":return J?void(Q+=se()):(se(),ce("string",Q));case"\n":case"\r":throw _e(se());case"\u2028":case"\u2029":be(ee);break;case void 0:throw _e(se())}Q+=se()},start:function(){switch(ee){case"{":case"[":return ce("punctuator",se())}Y="value"},beforePropertyName:function(){switch(ee){case"$":case"_":return Q=se(),void(Y="identifierName");case"\\":return se(),void(Y="identifierNameStartEscape");case"}":return ce("punctuator",se());case'"':case"'":return J='"'===se(),void(Y="string")}if(te.isIdStartChar(ee))return Q+=se(),void(Y="identifierName");throw _e(se())},afterPropertyName:function(){if(":"===ee)return ce("punctuator",se());throw _e(se())},beforePropertyValue:function(){Y="value"},afterPropertyValue:function(){switch(ee){case",":case"}":return ce("punctuator",se())}throw _e(se())},beforeArrayValue:function(){if("]"===ee)return ce("punctuator",se());Y="value"},afterArrayValue:function(){switch(ee){case",":case"]":return ce("punctuator",se())}throw _e(se())},end:function(){throw _e(se())}};function ce(e,r){return{type:e,value:r,line:$,column:X}}function ue(e){for(var r=0,t=e;r0;){var t=oe();if(!te.isHexDigit(t))throw _e(se());e+=se()}return String.fromCodePoint(parseInt(e,16))}var he={start:function(){if("eof"===G.type)throw Se();me()},beforePropertyName:function(){switch(G.type){case"identifier":case"string":return K=G.value,void(U="afterPropertyName");case"punctuator":return void pe();case"eof":throw Se()}},afterPropertyName:function(){if("eof"===G.type)throw Se();U="beforePropertyValue"},beforePropertyValue:function(){if("eof"===G.type)throw Se();me()},beforeArrayValue:function(){if("eof"===G.type)throw Se();"punctuator"!==G.type||"]"!==G.value?me():pe()},afterPropertyValue:function(){if("eof"===G.type)throw Se();switch(G.value){case",":return void(U="beforePropertyName");case"}":pe()}},afterArrayValue:function(){if("eof"===G.type)throw Se();switch(G.value){case",":return void(U="beforeArrayValue");case"]":pe()}},end:function(){}};function me(){var e;switch(G.type){case"punctuator":switch(G.value){case"{":e={};break;case"[":e=[]}break;case"null":case"boolean":case"numeric":case"string":e=G.value}if(void 0===q)q=e;else{var r=W[W.length-1];Array.isArray(r)?r.push(e):r[K]=e}if(null!==e&&"object"==typeof e)W.push(e),U=Array.isArray(e)?"beforeArrayValue":"beforePropertyName";else{var t=W[W.length-1];U=null==t?"end":Array.isArray(t)?"afterArrayValue":"afterPropertyValue"}}function pe(){W.pop();var e=W[W.length-1];U=null==e?"end":Array.isArray(e)?"afterArrayValue":"afterPropertyValue"}function _e(e){return ke(void 0===e?"JSON5: invalid end of input at "+$+":"+X:"JSON5: invalid character '"+we(e)+"' at "+$+":"+X)}function Se(){return ke("JSON5: invalid end of input at "+$+":"+X)}function ge(){return ke("JSON5: invalid identifier character at "+$+":"+(X-=5))}function be(e){console.warn("JSON5: '"+we(e)+"' in strings is not valid ECMAScript; consider escaping")}function we(e){var r={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(r[e])return r[e];if(e<" "){var t=e.charCodeAt(0).toString(16);return"\\x"+("00"+t).substring(t.length)}return e}function ke(e){var r=new SyntaxError(e);return r.lineNumber=$,r.columnNumber=X,r}return{parse:ne,stringify:function(e,r,t){var n,a,i,o=[],s="",l="";if(null==r||"object"!=typeof r||Array.isArray(r)||(t=r.space,i=r.quote,r=r.replacer),"function"==typeof r)a=r;else if(Array.isArray(r)){n=[];for(var c=0,u=r;c0&&(t=Math.min(10,Math.floor(t)),l=" ".substr(0,t)):"string"==typeof t&&(l=t.substr(0,10)),v("",{"":e});function v(e,r){var t=r[e];switch(null!=t&&("function"==typeof t.toJSON5?t=t.toJSON5(e):"function"==typeof t.toJSON&&(t=t.toJSON(e))),a&&(t=a.call(r,e,t)),t instanceof Number?t=Number(t):t instanceof String?t=String(t):t instanceof Boolean&&(t=t.valueOf()),t){case null:return"null";case!0:return"true";case!1:return"false"}return"string"==typeof t?h(t,!1):"number"==typeof t?String(t):"object"==typeof t?Array.isArray(t)?_(t):m(t):void 0}function h(e){for(var r={"'":.1,'"':.2},t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},n="",a=0;a=0)throw TypeError("Converting circular structure to JSON5");o.push(e);var r=s;s+=l;for(var t,a,i=[],c=0,u=n||Object.keys(e);c=0)throw TypeError("Converting circular structure to JSON5");o.push(e);var r=s;s+=l;for(var t,n=[],a=0;a{var r="Expected a function",t=NaN,n="[object Symbol]",a=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt,c="object"==typeof global&&global&&global.Object===Object&&global,u="object"==typeof self&&self&&self.Object===Object&&self,f=c||u||Function("return this")(),d=Object.prototype.toString,v=Math.max,h=Math.min,m=function(){return f.Date.now()};function p(e,t,n){var a,i,o,s,l,c,u=0,f=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError(r);function g(r){var t=a,n=i;return a=i=void 0,u=r,s=e.apply(n,t)}function b(e){var r=e-c;return void 0===c||r>=t||r<0||d&&e-u>=o}function w(){var e=m();if(b(e))return k(e);l=setTimeout(w,function(e){var r=t-(e-c);return d?h(r,o-(e-u)):r}(e))}function k(e){return l=void 0,p&&a?g(e):(a=i=void 0,s)}function E(){var e=m(),r=b(e);if(a=arguments,i=this,c=e,r){if(void 0===l)return function(e){return u=e,l=setTimeout(w,t),f?g(e):s}(c);if(d)return l=setTimeout(w,t),g(c)}return void 0===l&&(l=setTimeout(w,t)),s}return t=S(t)||0,_(n)&&(f=!!n.leading,o=(d="maxWait"in n)?v(S(n.maxWait)||0,t):o,p="trailing"in n?!!n.trailing:p),E.cancel=function(){void 0!==l&&clearTimeout(l),u=0,a=c=i=l=void 0},E.flush=function(){return void 0===l?s:k(m())},E}function _(e){var r=typeof e;return!!e&&("object"==r||"function"==r)}function S(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&d.call(e)==n}(e))return t;if(_(e)){var r="function"==typeof e.valueOf?e.valueOf():e;e=_(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var c=o.test(e);return c||s.test(e)?l(e.slice(2),c?2:8):i.test(e)?t:+e}e.exports=function(e,t,n){var a=!0,i=!0;if("function"!=typeof e)throw new TypeError(r);return _(n)&&(a="leading"in n?!!n.leading:a,i="trailing"in n?!!n.trailing:i),p(e,t,{leading:a,maxWait:t,trailing:i})}},18:(e,r,t)=>{var n=t(397);e.exports=S;var a,i=t(745),o=t(599),s=t(986),l=(a="function"==typeof Symbol&&"1"!==n.env._nodeLRUCacheForceNoSymbol?function(e){return Symbol(e)}:function(e){return"_"+e})("max"),c=a("length"),u=a("lengthCalculator"),f=a("allowStale"),d=a("maxAge"),v=a("dispose"),h=a("noDisposeOnSet"),m=a("lruList"),p=a("cache");function _(){return 1}function S(e){if(!(this instanceof S))return new S(e);"number"==typeof e&&(e={max:e}),e||(e={});var r=this[l]=e.max;(!r||"number"!=typeof r||r<=0)&&(this[l]=1/0);var t=e.length||_;"function"!=typeof t&&(t=_),this[u]=t,this[f]=e.stale||!1,this[d]=e.maxAge||0,this[v]=e.dispose,this[h]=e.noDisposeOnSet||!1,this.reset()}function g(e,r,t,n){var a=t.value;w(e,a)&&(E(e,t),e[f]||(a=void 0)),a&&r.call(n,a.value,a.key,e)}function b(e,r,t){var n=e[p].get(r);if(n){var a=n.value;w(e,a)?(E(e,n),e[f]||(a=void 0)):t&&e[m].unshiftNode(n),a&&(a=a.value)}return a}function w(e,r){if(!r||!r.maxAge&&!e[d])return!1;var t=Date.now()-r.now;return r.maxAge?t>r.maxAge:e[d]&&t>e[d]}function k(e){if(e[c]>e[l])for(var r=e[m].tail;e[c]>e[l]&&null!==r;){var t=r.prev;E(e,r),r=t}}function E(e,r){if(r){var t=r.value;e[v]&&e[v](t.key,t.value),e[c]-=t.length,e[p].delete(t.key),e[m].removeNode(r)}}function y(e,r,t,n,a){this.key=e,this.value=r,this.length=t,this.now=n,this.maxAge=a||0}Object.defineProperty(S.prototype,"max",{set:function(e){(!e||"number"!=typeof e||e<=0)&&(e=1/0),this[l]=e,k(this)},get:function(){return this[l]},enumerable:!0}),Object.defineProperty(S.prototype,"allowStale",{set:function(e){this[f]=!!e},get:function(){return this[f]},enumerable:!0}),Object.defineProperty(S.prototype,"maxAge",{set:function(e){(!e||"number"!=typeof e||e<0)&&(e=0),this[d]=e,k(this)},get:function(){return this[d]},enumerable:!0}),Object.defineProperty(S.prototype,"lengthCalculator",{set:function(e){"function"!=typeof e&&(e=_),e!==this[u]&&(this[u]=e,this[c]=0,this[m].forEach((function(e){e.length=this[u](e.value,e.key),this[c]+=e.length}),this)),k(this)},get:function(){return this[u]},enumerable:!0}),Object.defineProperty(S.prototype,"length",{get:function(){return this[c]},enumerable:!0}),Object.defineProperty(S.prototype,"itemCount",{get:function(){return this[m].length},enumerable:!0}),S.prototype.rforEach=function(e,r){r=r||this;for(var t=this[m].tail;null!==t;){var n=t.prev;g(this,e,t,r),t=n}},S.prototype.forEach=function(e,r){r=r||this;for(var t=this[m].head;null!==t;){var n=t.next;g(this,e,t,r),t=n}},S.prototype.keys=function(){return this[m].toArray().map((function(e){return e.key}),this)},S.prototype.values=function(){return this[m].toArray().map((function(e){return e.value}),this)},S.prototype.reset=function(){this[v]&&this[m]&&this[m].length&&this[m].forEach((function(e){this[v](e.key,e.value)}),this),this[p]=new i,this[m]=new s,this[c]=0},S.prototype.dump=function(){return this[m].map((function(e){if(!w(this,e))return{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}}),this).toArray().filter((function(e){return e}))},S.prototype.dumpLru=function(){return this[m]},S.prototype.inspect=function(e,r){var t="LRUCache {",n=!1;this[f]&&(t+="\n allowStale: true",n=!0);var a=this[l];a&&a!==1/0&&(n&&(t+=","),t+="\n max: "+o.inspect(a,r),n=!0);var i=this[d];i&&(n&&(t+=","),t+="\n maxAge: "+o.inspect(i,r),n=!0);var s=this[u];s&&s!==_&&(n&&(t+=","),t+="\n length: "+o.inspect(this[c],r),n=!0);var v=!1;return this[m].forEach((function(e){v?t+=",\n ":(n&&(t+=",\n"),v=!0,t+="\n ");var a=o.inspect(e.key).split("\n").join("\n "),l={value:e.value};e.maxAge!==i&&(l.maxAge=e.maxAge),s!==_&&(l.length=e.length),w(this,e)&&(l.stale=!0),l=o.inspect(l,r).split("\n").join("\n "),t+=a+" => "+l})),(v||n)&&(t+="\n"),t+="}"},S.prototype.set=function(e,r,t){var n=(t=t||this[d])?Date.now():0,a=this[u](r,e);if(this[p].has(e)){if(a>this[l])return E(this,this[p].get(e)),!1;var i=this[p].get(e).value;return this[v]&&(this[h]||this[v](e,i.value)),i.now=n,i.maxAge=t,i.value=r,this[c]+=a-i.length,i.length=a,this.get(e),k(this),!0}var o=new y(e,r,a,n,t);return o.length>this[l]?(this[v]&&this[v](e,r),!1):(this[c]+=o.length,this[m].unshift(o),this[p].set(e,this[m].head),k(this),!0)},S.prototype.has=function(e){return!!this[p].has(e)&&!w(this,this[p].get(e).value)},S.prototype.get=function(e){return b(this,e,!0)},S.prototype.peek=function(e){return b(this,e,!1)},S.prototype.pop=function(){var e=this[m].tail;return e?(E(this,e),e.value):null},S.prototype.del=function(e){E(this,this[p].get(e))},S.prototype.load=function(e){this.reset();for(var r=Date.now(),t=e.length-1;t>=0;t--){var n=e[t],a=n.e||0;if(0===a)this.set(n.k,n.v);else{var i=a-r;i>0&&this.set(n.k,n.v,i)}}},S.prototype.prune=function(){var e=this;this[p].forEach((function(r,t){b(e,t,!1)}))}},69:e=>{function r(e,r){if(null!=e)return e;var t=new Error(void 0!==r?r:"Got unexpected "+e);throw t.framesToPop=1,t}e.exports=r,e.exports.default=r,Object.defineProperty(e.exports,"__esModule",{value:!0})},417:e=>{e.exports=e=>{if("number"!=typeof e)throw new TypeError("Expected a number");const r=e>0?Math.floor:Math.ceil;return{days:r(e/864e5),hours:r(e/36e5)%24,minutes:r(e/6e4)%60,seconds:r(e/1e3)%60,milliseconds:r(e)%1e3,microseconds:r(1e3*e)%1e3,nanoseconds:r(1e6*e)%1e3}}},894:(e,r,t)=>{const n=t(417);e.exports=(e,r={})=>{if(!Number.isFinite(e))throw new TypeError("Expected a finite number");r.colonNotation&&(r.compact=!1,r.formatSubMilliseconds=!1,r.separateMilliseconds=!1,r.verbose=!1),r.compact&&(r.secondsDecimalDigits=0,r.millisecondsDecimalDigits=0);const t=[],a=(e,n,a,i)=>{if(!(0!==t.length&&r.colonNotation||0!==e||r.colonNotation&&"m"===a))return;let o,s;if(i=(i||e||"0").toString(),r.colonNotation){o=t.length>0?":":"",s="";const e=i.includes(".")?i.split(".")[0].length:i.length,r=t.length>0?2:1;i="0".repeat(Math.max(0,r-e))+i}else o="",s=r.verbose?" "+(l=n,1===e?l:`${l}s`):a;var l;t.push(o+i+s)},i=n(e);if(a(Math.trunc(i.days/365),"year","y"),a(i.days%365,"day","d"),a(i.hours,"hour","h"),a(i.minutes,"minute","m"),r.separateMilliseconds||r.formatSubMilliseconds||e<1e3)if(a(i.seconds,"second","s"),r.formatSubMilliseconds)a(i.milliseconds,"millisecond","ms"),a(i.microseconds,"microsecond","µs"),a(i.nanoseconds,"nanosecond","ns");else{const e=i.milliseconds+i.microseconds/1e3+i.nanoseconds/1e6,t="number"==typeof r.millisecondsDecimalDigits?r.millisecondsDecimalDigits:0,n=e>=1?Math.round(e):Math.ceil(e),o=t?e.toFixed(t):n;a(Number.parseFloat(o,10),"millisecond","ms",o)}else{const t=((e,r)=>{const t=Math.floor(e*10**r+1e-7);return(Math.round(t)/10**r).toFixed(r)})(e/1e3%60,"number"==typeof r.secondsDecimalDigits?r.secondsDecimalDigits:1),n=r.keepDecimalsOnWholeSeconds?t:t.replace(/\.0+$/,"");a(Number.parseFloat(n,10),"second","s",n)}if(0===t.length)return"0"+(r.verbose?" milliseconds":"ms");if(r.compact)return t[0];if("number"==typeof r.unitCount){const e=r.colonNotation?"":" ";return t.slice(0,Math.max(r.unitCount,1)).join(e)}return r.colonNotation?t.join(""):t.join(" ")}},397:e=>{var r,t,n=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function o(e){if(r===setTimeout)return setTimeout(e,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:a}catch(e){r=a}try{t="function"==typeof clearTimeout?clearTimeout:i}catch(e){t=i}}();var s,l=[],c=!1,u=-1;function f(){c&&s&&(c=!1,s.length?l=s.concat(l):u=-1,l.length&&d())}function d(){if(!c){var e=o(f);c=!0;for(var r=l.length;r;){for(s=l,l=[];++u1)for(var t=1;t{var n=t(327);function a(){}function i(){}i.resetWarningCache=a,e.exports=function(){function e(e,r,t,a,i,o){if(o!==n){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function r(){return e}e.isRequired=e;var t={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:r,element:e,elementType:e,instanceOf:r,node:e,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:i,resetWarningCache:a};return t.PropTypes=t,t}},352:(e,r,t)=>{e.exports=t(793)()},327:e=>{e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},745:(e,r,t)=>{var n=t(397);"pseudomap"===n.env.npm_package_name&&"test"===n.env.npm_lifecycle_script&&(n.env.TEST_PSEUDOMAP="true"),"function"!=typeof Map||n.env.TEST_PSEUDOMAP?e.exports=t(503):e.exports=Map},503:e=>{var r=Object.prototype.hasOwnProperty;function t(e){if(!(this instanceof t))throw new TypeError("Constructor PseudoMap requires 'new'");if(this.clear(),e)if(e instanceof t||"function"==typeof Map&&e instanceof Map)e.forEach((function(e,r){this.set(r,e)}),this);else{if(!Array.isArray(e))throw new TypeError("invalid argument");e.forEach((function(e){this.set(e[0],e[1])}),this)}}function n(e,r){return e===r||e!=e&&r!=r}function a(e,r,t){this.key=e,this.value=r,this._index=t}function i(e,t){for(var a=0,i="_"+t,o=i;r.call(e,o);o=i+a++)if(n(e[o].key,t))return e[o]}e.exports=t,t.prototype.forEach=function(e,r){r=r||this,Object.keys(this._data).forEach((function(t){"size"!==t&&e.call(r,this._data[t].value,this._data[t].key)}),this)},t.prototype.has=function(e){return!!i(this._data,e)},t.prototype.get=function(e){var r=i(this._data,e);return r&&r.value},t.prototype.set=function(e,t){!function(e,t,i){for(var o=0,s="_"+t,l=s;r.call(e,l);l=s+o++)if(n(e[l].key,t))return void(e[l].value=i);e.size++,e[l]=new a(t,i,l)}(this._data,e,t)},t.prototype.delete=function(e){var r=i(this._data,e);r&&(delete this._data[r._index],this._data.size--)},t.prototype.clear=function(){var e=Object.create(null);e.size=0,Object.defineProperty(this,"_data",{value:e,enumerable:!1,configurable:!0,writable:!1})},Object.defineProperty(t.prototype,"size",{get:function(){return this._data.size},set:function(e){},enumerable:!0,configurable:!0}),t.prototype.values=t.prototype.keys=t.prototype.entries=function(){throw new Error("iterators are not implemented in this version")}},356:function(e,r){var t,n,a;n=[],void 0===(a="function"==typeof(t=function(){function e(e){return!isNaN(parseFloat(e))&&isFinite(e)}function r(e){return e.charAt(0).toUpperCase()+e.substring(1)}function t(e){return function(){return this[e]}}var n=["isConstructor","isEval","isNative","isToplevel"],a=["columnNumber","lineNumber"],i=["fileName","functionName","source"],o=["args"],s=n.concat(a,i,o);function l(e){if(e)for(var t=0;t{var r=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'],t=r.join(","),n="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;function a(e,r){r=r||{};var a,o,s,u=[],f=[],d=e.querySelectorAll(t);for(r.includeContainer&&n.call(e,t)&&(d=Array.prototype.slice.apply(d)).unshift(e),a=0;a{"function"==typeof Object.create?e.exports=function(e,r){e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,r){e.super_=r;var t=function(){};t.prototype=r.prototype,e.prototype=new t,e.prototype.constructor=e}},772:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},599:(e,r,t)=>{var n=t(397),a=/%[sdj%]/g;r.format=function(e){if(!_(e)){for(var r=[],t=0;t=i)return e;switch(e){case"%s":return String(n[t++]);case"%d":return Number(n[t++]);case"%j":try{return JSON.stringify(n[t++])}catch(e){return"[Circular]"}default:return e}})),l=n[t];t=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),h(t)?n.showHidden=t:t&&r._extend(n,t),S(n.showHidden)&&(n.showHidden=!1),S(n.depth)&&(n.depth=2),S(n.colors)&&(n.colors=!1),S(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=l),u(n,e,n.depth)}function l(e,r){var t=s.styles[r];return t?"["+s.colors[t][0]+"m"+e+"["+s.colors[t][1]+"m":e}function c(e,r){return e}function u(e,t,n){if(e.customInspect&&t&&E(t.inspect)&&t.inspect!==r.inspect&&(!t.constructor||t.constructor.prototype!==t)){var a=t.inspect(n,e);return _(a)||(a=u(e,a,n)),a}var i=function(e,r){if(S(r))return e.stylize("undefined","undefined");if(_(r)){var t="'"+JSON.stringify(r).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(t,"string")}if(p(r))return e.stylize(""+r,"number");if(h(r))return e.stylize(""+r,"boolean");if(m(r))return e.stylize("null","null")}(e,t);if(i)return i;var o=Object.keys(t),s=function(e){var r={};return e.forEach((function(e,t){r[e]=!0})),r}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),k(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return f(t);if(0===o.length){if(E(t)){var l=t.name?": "+t.name:"";return e.stylize("[Function"+l+"]","special")}if(g(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(w(t))return e.stylize(Date.prototype.toString.call(t),"date");if(k(t))return f(t)}var c,b="",y=!1,D=["{","}"];(v(t)&&(y=!0,D=["[","]"]),E(t))&&(b=" [Function"+(t.name?": "+t.name:"")+"]");return g(t)&&(b=" "+RegExp.prototype.toString.call(t)),w(t)&&(b=" "+Date.prototype.toUTCString.call(t)),k(t)&&(b=" "+f(t)),0!==o.length||y&&0!=t.length?n<0?g(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),c=y?function(e,r,t,n,a){for(var i=[],o=0,s=r.length;o=0&&0,e+r.replace(/\u001b\[\d\d?m/g,"").length+1}),0);if(n>60)return t[0]+(""===r?"":r+"\n ")+" "+e.join(",\n ")+" "+t[1];return t[0]+r+" "+e.join(", ")+" "+t[1]}(c,b,D)):D[0]+b+D[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,r,t,n,a,i){var o,s,l;if((l=Object.getOwnPropertyDescriptor(r,a)||{value:r[a]}).get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),C(n,a)||(o="["+a+"]"),s||(e.seen.indexOf(l.value)<0?(s=m(t)?u(e,l.value,null):u(e,l.value,t-1)).indexOf("\n")>-1&&(s=i?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),S(o)){if(i&&a.match(/^\d+$/))return s;(o=JSON.stringify(""+a)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function v(e){return Array.isArray(e)}function h(e){return"boolean"==typeof e}function m(e){return null===e}function p(e){return"number"==typeof e}function _(e){return"string"==typeof e}function S(e){return void 0===e}function g(e){return b(e)&&"[object RegExp]"===y(e)}function b(e){return"object"==typeof e&&null!==e}function w(e){return b(e)&&"[object Date]"===y(e)}function k(e){return b(e)&&("[object Error]"===y(e)||e instanceof Error)}function E(e){return"function"==typeof e}function y(e){return Object.prototype.toString.call(e)}function D(e){return e<10?"0"+e.toString(10):e.toString(10)}r.debuglog=function(e){if(S(i)&&(i=n.env.NODE_DEBUG||""),e=e.toUpperCase(),!o[e])if(new RegExp("\\b"+e+"\\b","i").test(i)){var t=n.pid;o[e]=function(){var n=r.format.apply(r,arguments);console.error("%s %d: %s",e,t,n)}}else o[e]=function(){};return o[e]},r.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},r.isArray=v,r.isBoolean=h,r.isNull=m,r.isNullOrUndefined=function(e){return null==e},r.isNumber=p,r.isString=_,r.isSymbol=function(e){return"symbol"==typeof e},r.isUndefined=S,r.isRegExp=g,r.isObject=b,r.isDate=w,r.isError=k,r.isFunction=E,r.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},r.isBuffer=t(772);var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function C(e,r){return Object.prototype.hasOwnProperty.call(e,r)}r.log=function(){var e,t;console.log("%s - %s",(e=new Date,t=[D(e.getHours()),D(e.getMinutes()),D(e.getSeconds())].join(":"),[e.getDate(),A[e.getMonth()],t].join(" ")),r.format.apply(r,arguments))},r.inherits=t(510),r._extend=function(e,r){if(!r||!b(r))return e;for(var t=Object.keys(r),n=t.length;n--;)e[t[n]]=r[t[n]];return e}},803:e=>{e.exports=function(e,r){var t=0,n={};e.addEventListener("message",(function(r){var t=r.data;if("RPC"===t.type)if(t.id){var a=n[t.id];a&&(delete n[t.id],t.error?a[1](Object.assign(Error(t.error.message),t.error)):a[0](t.result))}else{var i=document.createEvent("Event");i.initEvent(t.method,!1,!1),i.data=t.params,e.dispatchEvent(i)}})),r.forEach((function(r){e[r]=function(){var a=arguments;return new Promise((function(i,o){var s=++t;n[s]=[i,o],e.postMessage({type:"RPC",id:s,method:r,params:[].slice.call(a)})}))}}))}},986:e=>{function r(e){var t=this;if(t instanceof r||(t=new r),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var n=0,a=arguments.length;n1)t=r;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");n=this.head.next,t=this.head.value}for(var a=0;null!==n;a++)t=e(t,n.value,a),n=n.next;return t},r.prototype.reduceReverse=function(e,r){var t,n=this.tail;if(arguments.length>1)t=r;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");n=this.tail.prev,t=this.tail.value}for(var a=this.length-1;null!==n;a--)t=e(t,n.value,a),n=n.prev;return t},r.prototype.toArray=function(){for(var e=new Array(this.length),r=0,t=this.head;null!==t;r++)e[r]=t.value,t=t.next;return e},r.prototype.toArrayReverse=function(){for(var e=new Array(this.length),r=0,t=this.tail;null!==t;r++)e[r]=t.value,t=t.prev;return e},r.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r;if(tthis.length&&(t=this.length);for(var a=0,i=this.head;null!==i&&athis.length&&(t=this.length);for(var a=this.length,i=this.tail;null!==i&&a>t;a--)i=i.prev;for(;null!==i&&a>e;a--,i=i.prev)n.push(i.value);return n},r.prototype.reverse=function(){for(var e=this.head,r=this.tail,t=e;null!==t;t=t.prev){var n=t.prev;t.prev=t.next,t.next=n}return this.head=r,this.tail=e,this}},853:e=>{var r=function(e){var r,t=Object.prototype,n=t.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",o=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function l(e,r,t){return Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}),e[r]}try{l({},"")}catch(e){l=function(e,r,t){return e[r]=t}}function c(e,r,t,n){var a=r&&r.prototype instanceof p?r:p,i=Object.create(a.prototype),o=new M(n||[]);return i._invoke=function(e,r,t){var n=f;return function(a,i){if(n===v)throw new Error("Generator is already running");if(n===h){if("throw"===a)throw i;return T()}for(t.method=a,t.arg=i;;){var o=t.delegate;if(o){var s=D(o,t);if(s){if(s===m)continue;return s}}if("next"===t.method)t.sent=t._sent=t.arg;else if("throw"===t.method){if(n===f)throw n=h,t.arg;t.dispatchException(t.arg)}else"return"===t.method&&t.abrupt("return",t.arg);n=v;var l=u(e,r,t);if("normal"===l.type){if(n=t.done?h:d,l.arg===m)continue;return{value:l.arg,done:t.done}}"throw"===l.type&&(n=h,t.method="throw",t.arg=l.arg)}}}(e,t,o),i}function u(e,r,t){try{return{type:"normal",arg:e.call(r,t)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var f="suspendedStart",d="suspendedYield",v="executing",h="completed",m={};function p(){}function _(){}function S(){}var g={};g[i]=function(){return this};var b=Object.getPrototypeOf,w=b&&b(b(x([])));w&&w!==t&&n.call(w,i)&&(g=w);var k=S.prototype=p.prototype=Object.create(g);function E(e){["next","throw","return"].forEach((function(r){l(e,r,(function(e){return this._invoke(r,e)}))}))}function y(e,r){function t(a,i,o,s){var l=u(e[a],e,i);if("throw"!==l.type){var c=l.arg,f=c.value;return f&&"object"==typeof f&&n.call(f,"__await")?r.resolve(f.__await).then((function(e){t("next",e,o,s)}),(function(e){t("throw",e,o,s)})):r.resolve(f).then((function(e){c.value=e,o(c)}),(function(e){return t("throw",e,o,s)}))}s(l.arg)}var a;this._invoke=function(e,n){function i(){return new r((function(r,a){t(e,n,r,a)}))}return a=a?a.then(i,i):i()}}function D(e,t){var n=e.iterator[t.method];if(n===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=r,D(e,t),"throw"===t.method))return m;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var a=u(n,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,m;var i=a.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=r),t.delegate=null,m):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,m)}function A(e){var r={tryLoc:e[0]};1 in e&&(r.catchLoc=e[1]),2 in e&&(r.finallyLoc=e[2],r.afterLoc=e[3]),this.tryEntries.push(r)}function C(e){var r=e.completion||{};r.type="normal",delete r.arg,e.completion=r}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function x(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,o=function t(){for(;++a=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var l=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(l&&c){if(this.prev=0;--t){var a=this.tryEntries[t];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev=0;--r){var t=this.tryEntries[r];if(t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),C(t),m}},catch:function(e){for(var r=this.tryEntries.length-1;r>=0;--r){var t=this.tryEntries[r];if(t.tryLoc===e){var n=t.completion;if("throw"===n.type){var a=n.arg;C(t)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:x(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=r),m}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},282:(e,r,t)=>{var n=t(803),a=["importFile"];e.exports=function(){var e=new Worker(URL.createObjectURL(new Blob(['/******/ var __webpack_modules__ = ({\n\n/***/ 496:\n/***/ ((__unused_webpack_module, exports, __webpack_require__) => {\n\n\n\nObject.defineProperty(exports, "__esModule", ({\n value: true\n}));\nexports.importFromOldV8CPUProfile = exports.importFromChromeCPUProfile = exports.importFromChromeTimeline = exports.isChromeTimeline = void 0;\n\nconst profile_1 = __webpack_require__(211);\n\nconst utils_1 = __webpack_require__(844);\n\nconst value_formatters_1 = __webpack_require__(218);\n\nconst v8cpuFormatter_1 = __webpack_require__(320);\n\nfunction isChromeTimeline(rawProfile) {\n if (!Array.isArray(rawProfile)) return false;\n if (rawProfile.length < 1) return false;\n const first = rawProfile[0];\n if (!(\'pid\' in first && \'tid\' in first && \'ph\' in first && \'cat\' in first)) return false;\n if (!rawProfile.find(e => e.name === \'CpuProfile\' || e.name === \'Profile\' || e.name === \'ProfileChunk\')) return false;\n return true;\n}\n\nexports.isChromeTimeline = isChromeTimeline;\n\nfunction importFromChromeTimeline(events, fileName) {\n // It seems like sometimes Chrome timeline files contain multiple CpuProfiles?\n // For now, choose the first one in the list.\n const cpuProfileByID = new Map(); // Maps profile IDs (like "0x3") to pid/tid pairs formatted as `${pid}:${tid}`\n\n const pidTidById = new Map(); // Maps pid/tid pairs to thread names\n\n const threadNameByPidTid = new Map(); // The events aren\'t necessarily recorded in chronological order. Sort them so\n // that they are.\n\n utils_1.sortBy(events, e => e.ts);\n\n for (let event of events) {\n if (event.name === \'CpuProfile\') {\n const pidTid = `${event.pid}:${event.tid}`;\n const id = event.id || pidTid;\n cpuProfileByID.set(id, event.args.data.cpuProfile);\n pidTidById.set(id, pidTid);\n }\n\n if (event.name === \'Profile\') {\n const pidTid = `${event.pid}:${event.tid}`;\n cpuProfileByID.set(event.id || pidTid, Object.assign({\n startTime: 0,\n endTime: 0,\n nodes: [],\n samples: [],\n timeDeltas: []\n }, event.args.data));\n\n if (event.id) {\n pidTidById.set(event.id, `${event.pid}:${event.tid}`);\n }\n }\n\n if (event.name === \'thread_name\') {\n threadNameByPidTid.set(`${event.pid}:${event.tid}`, event.args.name);\n }\n\n if (event.name === \'ProfileChunk\') {\n const pidTid = `${event.pid}:${event.tid}`;\n const cpuProfile = cpuProfileByID.get(event.id || pidTid);\n\n if (cpuProfile) {\n const chunk = event.args.data;\n\n if (chunk.cpuProfile) {\n if (chunk.cpuProfile.nodes) {\n cpuProfile.nodes = cpuProfile.nodes.concat(chunk.cpuProfile.nodes);\n }\n\n if (chunk.cpuProfile.samples) {\n cpuProfile.samples = cpuProfile.samples.concat(chunk.cpuProfile.samples);\n }\n }\n\n if (chunk.timeDeltas) {\n cpuProfile.timeDeltas = cpuProfile.timeDeltas.concat(chunk.timeDeltas);\n }\n\n if (chunk.startTime != null) {\n cpuProfile.startTime = chunk.startTime;\n }\n\n if (chunk.endTime != null) {\n cpuProfile.endTime = chunk.endTime;\n }\n } else {\n console.warn(`Ignoring ProfileChunk for undeclared Profile with id ${event.id || pidTid}`);\n }\n }\n }\n\n if (cpuProfileByID.size > 0) {\n const profiles = [];\n let indexToView = 0;\n utils_1.itForEach(cpuProfileByID.keys(), profileId => {\n let threadName = null;\n let pidTid = pidTidById.get(profileId);\n\n if (pidTid) {\n threadName = threadNameByPidTid.get(pidTid) || null;\n\n if (threadName) {}\n }\n\n const profile = importFromChromeCPUProfile(cpuProfileByID.get(profileId));\n\n if (threadName && cpuProfileByID.size > 1) {\n profile.setName(`${fileName} - ${threadName}`);\n\n if (threadName === \'CrRendererMain\') {\n indexToView = profiles.length;\n }\n } else {\n profile.setName(`${fileName}`);\n }\n\n profiles.push(profile);\n });\n return {\n name: fileName,\n indexToView,\n profiles\n };\n } else {\n throw new Error(\'Could not find CPU profile in Timeline\');\n }\n}\n\nexports.importFromChromeTimeline = importFromChromeTimeline;\nconst callFrameToFrameInfo = new Map();\n\nfunction frameInfoForCallFrame(callFrame) {\n return utils_1.getOrInsert(callFrameToFrameInfo, callFrame, callFrame => {\n const name = callFrame.functionName || \'(anonymous)\';\n const file = callFrame.url;\n const line = callFrame.lineNumber;\n const col = callFrame.columnNumber;\n return {\n key: `${name}:${file}:${line}:${col}`,\n name,\n file,\n line,\n col\n };\n });\n}\n\nfunction shouldIgnoreFunction(callFrame) {\n const {\n functionName,\n url\n } = callFrame;\n\n if (url === \'native dummy.js\') {\n // I\'m not really sure what this is about, but this seems to be used\n // as a way of avoiding edge cases in V8\'s implementation.\n // See: https://github.com/v8/v8/blob/b8626ca4/tools/js2c.py#L419-L424\n return true;\n }\n\n return functionName === \'(root)\' || functionName === \'(idle)\';\n}\n\nfunction shouldPlaceOnTopOfPreviousStack(functionName) {\n return functionName === \'(garbage collector)\' || functionName === \'(program)\';\n}\n\nfunction importFromChromeCPUProfile(chromeProfile) {\n const profile = new profile_1.CallTreeProfileBuilder(chromeProfile.endTime - chromeProfile.startTime);\n const nodeById = new Map();\n\n for (let node of chromeProfile.nodes) {\n nodeById.set(node.id, node);\n }\n\n for (let node of chromeProfile.nodes) {\n if (typeof node.parent === \'number\') {\n node.parent = nodeById.get(node.parent);\n }\n\n if (!node.children) continue;\n\n for (let childId of node.children) {\n const child = nodeById.get(childId);\n if (!child) continue;\n child.parent = node;\n }\n }\n\n const samples = [];\n const sampleTimes = []; // The first delta is relative to the profile startTime.\n // Ref: https://github.com/v8/v8/blob/44bd8fd7/src/inspector/js_protocol.json#L1485\n\n let elapsed = chromeProfile.timeDeltas[0]; // Prevents negative time deltas from causing bad data. See\n // https://github.com/jlfwong/speedscope/pull/305 for details.\n\n let lastValidElapsed = elapsed;\n let lastNodeId = NaN; // The chrome CPU profile format doesn\'t collapse identical samples. We\'ll do that\n // here to save a ton of work later doing mergers.\n\n for (let i = 0; i < chromeProfile.samples.length; i++) {\n const nodeId = chromeProfile.samples[i];\n\n if (nodeId != lastNodeId) {\n samples.push(nodeId);\n\n if (elapsed < lastValidElapsed) {\n sampleTimes.push(lastValidElapsed);\n } else {\n sampleTimes.push(elapsed);\n lastValidElapsed = elapsed;\n }\n }\n\n if (i === chromeProfile.samples.length - 1) {\n if (!isNaN(lastNodeId)) {\n samples.push(lastNodeId);\n\n if (elapsed < lastValidElapsed) {\n sampleTimes.push(lastValidElapsed);\n } else {\n sampleTimes.push(elapsed);\n lastValidElapsed = elapsed;\n }\n }\n } else {\n const timeDelta = chromeProfile.timeDeltas[i + 1];\n elapsed += timeDelta;\n lastNodeId = nodeId;\n }\n }\n\n let prevStack = [];\n\n for (let i = 0; i < samples.length; i++) {\n const value = sampleTimes[i];\n const nodeId = samples[i];\n let stackTop = nodeById.get(nodeId);\n if (!stackTop) continue; // Find lowest common ancestor of the current stack and the previous one\n\n let lca = null; // This is O(n^2), but n should be relatively small here (stack height),\n // so hopefully this isn\'t much of a problem\n\n for (lca = stackTop; lca && prevStack.indexOf(lca) === -1; lca = shouldPlaceOnTopOfPreviousStack(lca.callFrame.functionName) ? utils_1.lastOf(prevStack) : lca.parent || null) {} // Close frames that are no longer open\n\n\n while (prevStack.length > 0 && utils_1.lastOf(prevStack) != lca) {\n const closingNode = prevStack.pop();\n const frame = frameInfoForCallFrame(closingNode.callFrame);\n profile.leaveFrame(frame, value);\n } // Open frames that are now becoming open\n\n\n const toOpen = [];\n\n for (let node = stackTop; node && node != lca && !shouldIgnoreFunction(node.callFrame); // Place Chrome internal functions on top of the previous call stack\n node = shouldPlaceOnTopOfPreviousStack(node.callFrame.functionName) ? utils_1.lastOf(prevStack) : node.parent || null) {\n toOpen.push(node);\n }\n\n toOpen.reverse();\n\n for (let node of toOpen) {\n profile.enterFrame(frameInfoForCallFrame(node.callFrame), value);\n }\n\n prevStack = prevStack.concat(toOpen);\n } // Close frames that are open at the end of the trace\n\n\n for (let i = prevStack.length - 1; i >= 0; i--) {\n profile.leaveFrame(frameInfoForCallFrame(prevStack[i].callFrame), utils_1.lastOf(sampleTimes));\n }\n\n profile.setValueFormatter(new value_formatters_1.TimeFormatter(\'microseconds\'));\n return profile.build();\n}\n\nexports.importFromChromeCPUProfile = importFromChromeCPUProfile;\n\nfunction importFromOldV8CPUProfile(content) {\n return importFromChromeCPUProfile(v8cpuFormatter_1.chromeTreeToNodes(content));\n}\n\nexports.importFromOldV8CPUProfile = importFromOldV8CPUProfile;\n\n/***/ }),\n\n/***/ 320:\n/***/ ((__unused_webpack_module, exports) => {\n\n\n\nObject.defineProperty(exports, "__esModule", ({\n value: true\n}));\nexports.chromeTreeToNodes = void 0;\n\nfunction treeToArray(root) {\n const nodes = [];\n\n function visit(node) {\n nodes.push({\n id: node.id,\n callFrame: {\n columnNumber: 0,\n functionName: node.functionName,\n lineNumber: node.lineNumber,\n scriptId: node.scriptId,\n url: node.url\n },\n hitCount: node.hitCount,\n children: node.children.map(child => child.id)\n });\n node.children.forEach(visit);\n }\n\n visit(root);\n return nodes;\n}\n\nfunction timestampsToDeltas(timestamps, startTime) {\n return timestamps.map((timestamp, index) => {\n const lastTimestamp = index === 0 ? startTime * 1000000 : timestamps[index - 1];\n return timestamp - lastTimestamp;\n });\n}\n/**\n * Convert the old tree-based format to the new flat-array based format\n */\n\n\nfunction chromeTreeToNodes(content) {\n // Note that both startTime and endTime are now in microseconds\n return {\n samples: content.samples,\n startTime: content.startTime * 1000000,\n endTime: content.endTime * 1000000,\n nodes: treeToArray(content.head),\n timeDeltas: timestampsToDeltas(content.timestamps, content.startTime)\n };\n}\n\nexports.chromeTreeToNodes = chromeTreeToNodes;\n\n/***/ }),\n\n/***/ 765:\n/***/ ((__unused_webpack_module, exports) => {\n\n\n\nObject.defineProperty(exports, "__esModule", ({\n value: true\n}));\nexports.demangleCpp = void 0;\nlet cppfilt;\nconst cache = new Map(); // This function converts a mangled C++ name such as "__ZNK7Support6ColorFeqERKS0_"\n// into a human-readable symbol (in this case "Support::ColorF::==(Support::ColorF&)")\n\nfunction demangleCpp(name) {\n if (name.startsWith(\'__Z\')) {\n let result = cache.get(name);\n\n if (result !== undefined) {\n name = result;\n } else {\n if (!cppfilt) {\n cppfilt = new Function(\'exports\', code)();\n }\n\n result = cppfilt(name.slice(1));\n result = result === \'(null)\' ? name : result;\n cache.set(name, result);\n name = result;\n }\n }\n\n return name;\n}\n\nexports.demangleCpp = demangleCpp; // This was taken from https://d.fuqu.jp/c++filtjs/\n\nconst code = `\nreturn function(){function r(r){eval.call(null,r)}function a(r){throw print(r+":\\\\n"+(new Error).stack),ke=!0,"Assertion: "+r}function e(r,e){r||a("Assertion failed: "+e)}function i(r,a,i,v){function t(r,a){if("string"==a){var e=Oe;return le.stackAlloc(r.length+1),A(r,e),e}return r}function f(r,a){return"string"==a?s(r):r}try{func=ce.Module["_"+r]}catch(r){}e(func,"Cannot call unknown function "+r+" (perhaps LLVM optimizations or closure removed it?)");var _=0,n=v?v.map(function(r){return t(r,i[_++])}):[];return f(func.apply(null,n),a)}function v(r,a,e){return function(){return i(r,a,e,Array.prototype.slice.call(arguments))}}function t(r,e,i,v){switch(i=i||"i8","*"===i[i.length-1]&&(i="i32"),i){case"i1":Ae[r]=e;break;case"i8":Ae[r]=e;break;case"i16":ye[r>>1]=e;break;case"i32":Se[r>>2]=e;break;case"i64":Se[r>>2]=e;break;case"float":Ce[r>>2]=e;break;case"double":ze[0]=e,Se[r>>2]=xe[0],Se[r+4>>2]=xe[1];break;default:a("invalid type for setValue: "+i)}}function f(r,e,i){switch(e=e||"i8","*"===e[e.length-1]&&(e="i32"),e){case"i1":return Ae[r];case"i8":return Ae[r];case"i16":return ye[r>>1];case"i32":return Se[r>>2];case"i64":return Se[r>>2];case"float":return Ce[r>>2];case"double":return xe[0]=Se[r>>2],xe[1]=Se[r+4>>2],ze[0];default:a("invalid type for setValue: "+e)}return null}function _(r,a,e){var i,v;"number"==typeof r?(i=!0,v=r):(i=!1,v=r.length);var f="string"==typeof a?a:null,_=[Jr,le.stackAlloc,le.staticAlloc][void 0===e?we:e](Math.max(v,f?1:a.length));if(i)return Fa(_,0,v),_;for(var s,n=0;n>12<<12}function l(){for(;Le<=Ie;)Le=o(2*Le);var r=Ae,a=new ArrayBuffer(Le);Ae=new Int8Array(a),ye=new Int16Array(a),Se=new Int32Array(a),ge=new Uint8Array(a),me=new Uint16Array(a),Me=new Uint32Array(a),Ce=new Float32Array(a),Re=new Float64Array(a),Ae.set(r)}function b(r){for(;r.length>0;){var a=r.shift(),e=a.func;"number"==typeof e&&(e=pe[e]),e(void 0===a.arg?null:a.arg)}}function k(){b(Ve)}function u(){b(Be),be.print()}function c(r,a){return Array.prototype.slice.call(Ae.subarray(r,r+a))}function h(r,a){for(var e=new Uint8Array(a),i=0;i255&&(v&=255),e.push(v),i+=1}return a||e.push(0),e}function E(r){for(var a=[],e=0;e255&&(i&=255),a.push(String.fromCharCode(i))}return a.join("")}function A(r,a,e){for(var i=0;i255&&(v&=255),Ae[a+i]=v,i+=1}e||(Ae[a+i]=0)}function g(r,a,e,i){return r>=0?r:a<=32?2*Math.abs(1<=v&&(a<=32||r>v)&&(r=-2*v+r),r}function m(r,a,e){if(0==(0|r)|0==(0|a)|0==(0|e))var i=0;else{Se[r>>2]=0,Se[r+4>>2]=a,Se[r+8>>2]=e;var i=1}var i;return i}function S(r,a,e){if(0==(0|r)|(0|a)<0|0==(0|e))var i=0;else{Se[r>>2]=41,Se[r+4>>2]=a,Se[r+8>>2]=e;var i=1}var i;return i}function M(r,a,e){if(0==(0|r)|0==(0|e))var i=0;else{Se[r>>2]=6,Se[r+4>>2]=a,Se[r+8>>2]=e;var i=1}var i;return i}function C(r,a,e){if(0==(0|r)|0==(0|e))var i=0;else{Se[r>>2]=7,Se[r+4>>2]=a,Se[r+8>>2]=e;var i=1}var i;return i}function R(r,a){var e,i=0==(0|a);do if(i)var v=0;else{var e=(r+32|0)>>2,t=Se[e];if((0|t)>=(0|Se[r+36>>2])){var v=0;break}var f=(t<<2)+Se[r+28>>2]|0;Se[f>>2]=a;var _=Se[e]+1|0;Se[e]=_;var v=1}while(0);var v;return v}function T(r,a){var e,e=(r+12|0)>>2,i=Se[e],v=i+1|0;Se[e]=v;var t=Ae[i]<<24>>24==95;do if(t){var f=i+2|0;if(Se[e]=f,Ae[v]<<24>>24!=90){var _=0;break}var s=O(r,a),_=s}else var _=0;while(0);var _;return _}function O(r,a){var e=r+12|0,i=Ae[Se[e>>2]];r:do if(i<<24>>24==71||i<<24>>24==84)var v=Tr(r),t=v;else{var f=Ar(r),_=0==(0|f)|0==(0|a);do if(!_){if(0!=(1&Se[r+8>>2]|0))break;var s=Me[f>>2],n=(s-25|0)>>>0<3;a:do if(n)for(var o=f;;){var o,l=Me[o+4>>2],b=Me[l>>2];if((b-25|0)>>>0>=3){var k=l,u=b;break a}var o=l}else var k=f,u=s;while(0);var u,k;if(2!=(0|u)){var t=k;break r}var c=k+8|0,h=Me[c>>2],d=(Se[h>>2]-25|0)>>>0<3;a:do if(d)for(var w=h;;){var w,p=Me[w+4>>2];if((Se[p>>2]-25|0)>>>0>=3){var E=p;break a}var w=p}else var E=h;while(0);var E;Se[c>>2]=E;var t=k;break r}while(0);var A=Ae[Se[e>>2]];if(A<<24>>24==0||A<<24>>24==69){var t=f;break}var g=Or(f),y=Sr(r,g),m=D(r,3,f,y),t=m}while(0);var t;return t}function N(r){var a,e,i=Oe;Oe+=4;var v=i,e=v>>2,a=(r+12|0)>>2,t=Me[a],f=Ae[t],_=f<<24>>24;r:do if(f<<24>>24==114||f<<24>>24==86||f<<24>>24==75){var s=I(r,v,0);if(0==(0|s)){var n=0;break}var o=N(r);Se[s>>2]=o;var l=Se[e],b=R(r,l);if(0==(0|b)){var n=0;break}var n=Se[e]}else{do{if(97==(0|_)||98==(0|_)||99==(0|_)||100==(0|_)||101==(0|_)||102==(0|_)||103==(0|_)||104==(0|_)||105==(0|_)||106==(0|_)||108==(0|_)||109==(0|_)||110==(0|_)||111==(0|_)||115==(0|_)||116==(0|_)||118==(0|_)||119==(0|_)||120==(0|_)||121==(0|_)||122==(0|_)){var k=ai+20*(_-97)|0,u=P(r,k);Se[e]=u;var c=r+48|0,h=Se[c>>2]+Se[Se[u+4>>2]+4>>2]|0;Se[c>>2]=h;var d=Se[a]+1|0;Se[a]=d;var n=u;break r}if(117==(0|_)){Se[a]=t+1|0;var w=L(r),p=D(r,34,w,0);Se[e]=p;var E=p}else if(70==(0|_)){var A=F(r);Se[e]=A;var E=A}else if(48==(0|_)||49==(0|_)||50==(0|_)||51==(0|_)||52==(0|_)||53==(0|_)||54==(0|_)||55==(0|_)||56==(0|_)||57==(0|_)||78==(0|_)||90==(0|_)){var g=X(r);Se[e]=g;var E=g}else if(65==(0|_)){var y=j(r);Se[e]=y;var E=y}else if(77==(0|_)){var m=U(r);Se[e]=m;var E=m}else if(84==(0|_)){var S=x(r);if(Se[e]=S,Ae[Se[a]]<<24>>24!=73){var E=S;break}var M=R(r,S);if(0==(0|M)){var n=0;break r}var C=Se[e],T=z(r),O=D(r,4,C,T);Se[e]=O;var E=O}else if(83==(0|_)){var B=ge[t+1|0];if((B-48&255&255)<10|B<<24>>24==95|(B-65&255&255)<26){var H=V(r,0);if(Se[e]=H,Ae[Se[a]]<<24>>24!=73){var n=H;break r}var K=z(r),Y=D(r,4,H,K);Se[e]=Y;var E=Y}else{var G=X(r);if(Se[e]=G,0==(0|G)){var E=0;break}if(21==(0|Se[G>>2])){var n=G;break r}var E=G}}else if(80==(0|_)){Se[a]=t+1|0;var W=N(r),Z=D(r,29,W,0);Se[e]=Z;var E=Z}else if(82==(0|_)){Se[a]=t+1|0;var Q=N(r),q=D(r,30,Q,0);Se[e]=q;var E=q}else if(67==(0|_)){Se[a]=t+1|0;var $=N(r),J=D(r,31,$,0);Se[e]=J;var E=J}else if(71==(0|_)){Se[a]=t+1|0;var rr=N(r),ar=D(r,32,rr,0);Se[e]=ar;var E=ar}else{if(85!=(0|_)){var n=0;break r}Se[a]=t+1|0;var er=L(r);Se[e]=er;var ir=N(r),vr=Se[e],tr=D(r,28,ir,vr);Se[e]=tr;var E=tr}}while(0);var E,fr=R(r,E);if(0==(0|fr)){var n=0;break}var n=Se[e]}while(0);var n;return Oe=i,n}function I(r,a,e){for(var i,v=r+12|0,t=0!=(0|e),f=t?25:22,i=(r+48|0)>>2,_=t?26:23,s=t?27:24,n=a;;){var n,o=Se[v>>2],l=Ae[o];if(l<<24>>24!=114&&l<<24>>24!=86&&l<<24>>24!=75){var b=n;break}var k=o+1|0;if(Se[v>>2]=k,l<<24>>24==114){var u=Se[i]+9|0;Se[i]=u;var c=f}else if(l<<24>>24==86){var h=Se[i]+9|0;Se[i]=h;var c=_}else{var d=Se[i]+6|0;Se[i]=d;var c=s}var c,w=D(r,c,0,0);if(Se[n>>2]=w,0==(0|w)){var b=0;break}var n=w+4|0}var b;return b}function P(r,a){var e=0==(0|a);do if(e)var i=0;else{var v=J(r);if(0==(0|v)){var i=0;break}Se[v>>2]=33,Se[v+4>>2]=a;var i=v}while(0);var i;return i}function D(r,a,e,i){var v,t;do{if(1==(0|a)||2==(0|a)||3==(0|a)||4==(0|a)||10==(0|a)||28==(0|a)||37==(0|a)||43==(0|a)||44==(0|a)||45==(0|a)||46==(0|a)||47==(0|a)||48==(0|a)||49==(0|a)||50==(0|a)){if(0==(0|e)|0==(0|i)){var f=0;t=7;break}t=5;break}if(8==(0|a)||9==(0|a)||11==(0|a)||12==(0|a)||13==(0|a)||14==(0|a)||15==(0|a)||16==(0|a)||17==(0|a)||18==(0|a)||19==(0|a)||20==(0|a)||29==(0|a)||30==(0|a)||31==(0|a)||32==(0|a)||34==(0|a)||38==(0|a)||39==(0|a)||42==(0|a)){if(0==(0|e)){var f=0;t=7;break}t=5;break}if(36==(0|a)){if(0==(0|i)){var f=0;t=7;break}t=5;break}if(35==(0|a)||22==(0|a)||23==(0|a)||24==(0|a)||25==(0|a)||26==(0|a)||27==(0|a))t=5;else{var f=0;t=7}}while(0);do if(5==t){var _=J(r),v=_>>2;if(0==(0|_)){var f=0;break}Se[v]=a,Se[v+1]=e,Se[v+2]=i;var f=_}while(0);var f;return f}function L(r){var a=sr(r);if((0|a)<1)var e=0;else{var i=Rr(r,a);Se[r+44>>2]=i;var e=i}var e;return e}function F(r){var a,a=(r+12|0)>>2,e=Se[a],i=e+1|0;if(Se[a]=i,Ae[e]<<24>>24==70){if(Ae[i]<<24>>24==89){var v=e+2|0;Se[a]=v}var t=Sr(r,1),f=Se[a],_=f+1|0;Se[a]=_;var s=Ae[f]<<24>>24==69?t:0,n=s}else var n=0;var n;return n}function X(r){var a=Ar(r);return a}function j(r){var a,a=(r+12|0)>>2,e=Se[a],i=e+1|0;Se[a]=i;var v=Ae[e]<<24>>24==65;do if(v){var t=Ae[i];if(t<<24>>24==95)var f=0;else if((t-48&255&255)<10){for(var _=i;;){var _,s=_+1|0;if(Se[a]=s,(Ae[s]-48&255&255)>=10)break;var _=s}var n=s-i|0,o=lr(r,i,n);if(0==(0|o)){var l=0;break}var f=o}else{var b=nr(r);if(0==(0|b)){var l=0;break}var f=b}var f,k=Se[a],u=k+1|0;if(Se[a]=u,Ae[k]<<24>>24!=95){var l=0;break}var c=N(r),h=D(r,36,f,c),l=h}else var l=0;while(0);var l;return l}function U(r){var a=Oe;Oe+=4;var e=a,i=r+12|0,v=Se[i>>2],t=v+1|0;Se[i>>2]=t;var f=Ae[v]<<24>>24==77;r:do if(f){var _=N(r),s=I(r,e,1);if(0==(0|s)){var n=0;break}var o=N(r);Se[s>>2]=o;var l=(0|s)==(0|e);do if(!l){if(35==(0|Se[o>>2]))break;var b=Se[e>>2],k=R(r,b);if(0==(0|k)){var n=0;break r}}while(0);var u=Se[e>>2],c=D(r,37,_,u),n=c}else var n=0;while(0);var n;return Oe=a,n}function x(r){var a,a=(r+12|0)>>2,e=Se[a],i=e+1|0;Se[a]=i;var v=Ae[e]<<24>>24==84;do if(v){if(Ae[i]<<24>>24==95)var t=0,f=i;else{var _=sr(r);if((0|_)<0){var s=0;break}var t=_+1|0,f=Se[a]}var f,t;if(Se[a]=f+1|0,Ae[f]<<24>>24!=95){var s=0;break}var n=r+40|0,o=Se[n>>2]+1|0;Se[n>>2]=o;var l=Er(r,t),s=l}else var s=0;while(0);var s;return s}function z(r){var a,e=Oe;Oe+=4;var i=e,v=r+44|0,t=Se[v>>2],a=(r+12|0)>>2,f=Se[a],_=f+1|0;Se[a]=_;var s=Ae[f]<<24>>24==73;r:do if(s){Se[i>>2]=0;for(var n=i;;){var n,o=_r(r);if(0==(0|o)){var l=0;break r}var b=D(r,39,o,0);if(Se[n>>2]=b,0==(0|b)){var l=0;break r}var k=Se[a];if(Ae[k]<<24>>24==69)break;var n=b+8|0}var u=k+1|0;Se[a]=u,Se[v>>2]=t;var l=Se[i>>2]}else var l=0;while(0);var l;return Oe=e,l}function V(r,a){var e,e=(r+12|0)>>2,i=Se[e],v=i+1|0;Se[e]=v;var t=Ae[i]<<24>>24==83;r:do if(t){var f=i+2|0;Se[e]=f;var _=ge[v];if(_<<24>>24==95)var s=0;else{if(!((_-48&255&255)<10|(_-65&255&255)<26)){var n=8&Se[r+8>>2],o=n>>>3,l=0!=(0|n)|0==(0|a);do if(l)var b=o;else{if((Ae[f]-67&255&255)>=2){var b=o;break}var b=1}while(0);for(var b,k=0|ei;;){var k;if(k>>>0>=(ei+196|0)>>>0){var u=0;break r}if(_<<24>>24==Ae[0|k]<<24>>24)break;var k=k+28|0}var c=Se[k+20>>2];if(0!=(0|c)){var h=Se[k+24>>2],d=fr(r,c,h);Se[r+44>>2]=d}if(0==(0|b))var w=k+8|0,p=k+4|0;else var w=k+16|0,p=k+12|0;var p,w,E=Se[w>>2],A=Se[p>>2],g=r+48|0,y=Se[g>>2]+E|0;Se[g>>2]=y;var m=fr(r,A,E),u=m;break}for(var S=_,M=0,C=f;;){var C,M,S;if((S-48&255&255)<10)var R=36*M-48|0;else{if((S-65&255&255)>=26){var u=0;break r}var R=36*M-55|0}var R,T=(S<<24>>24)+R|0;if((0|T)<0){var u=0;break r}var O=C+1|0;Se[e]=O;var N=ge[C];if(N<<24>>24==95)break;var S=N,M=T,C=O}var s=T+1|0}var s;if((0|s)>=(0|Se[r+32>>2])){var u=0;break}var I=r+40|0,P=Se[I>>2]+1|0;Se[I>>2]=P;var u=Se[Se[r+28>>2]+(s<<2)>>2]}else var u=0;while(0);var u;return u}function B(r,a,e,i){var v,t,f,_,s=Oe;Oe+=28;var n,o=s,_=o>>2;Se[_]=r;var l=e+1|0,f=(o+12|0)>>2;Se[f]=l;var b=Jr(l),t=(o+4|0)>>2;if(Se[t]=b,0==(0|b))var k=0,u=1;else{var v=(o+8|0)>>2;Se[v]=0,Se[_+4]=0,Se[_+5]=0;var c=o+24|0;Se[c>>2]=0,H(o,a);var h=Me[t],d=0==(0|h);do{if(!d){var w=Me[v];if(w>>>0>=Me[f]>>>0){n=5;break}Se[v]=w+1|0,Ae[h+w|0]=0,n=6;break}n=5}while(0);5==n&&Y(o,0);var p=Se[t],E=0==(0|p)?Se[c>>2]:Se[f],k=p,u=E}var u,k;return Se[i>>2]=u,Oe=s,k}function H(r,a){var e,i,v,t,f,_,s,n,o,l,b,k,u,c,h,d,w,p,E,A,g,y,m,S,M,C,R,T,O,N,I,P,D,L,F,X,j,U,x,z,V,B,K,G,W,J,vr,tr,fr,_r,sr,nr,or,lr,br,kr,ur,cr,hr,dr,wr,pr=a>>2,Er=r>>2,Ar=Oe;Oe+=184;var gr,yr=Ar,wr=yr>>2,mr=Ar+64,dr=mr>>2,Sr=Ar+72,Mr=Ar+88,Cr=Ar+104,hr=Cr>>2,Rr=Ar+168,Tr=0==(0|a);r:do if(Tr)Z(r);else{var cr=(r+4|0)>>2,Or=Me[cr];if(0==(0|Or))break;var Nr=0|a,Ir=Me[Nr>>2];a:do{if(0==(0|Ir)){if(0!=(4&Se[Er]|0)){var Pr=Se[pr+1],Dr=Se[pr+2];q(r,Pr,Dr);break r}var ur=(r+8|0)>>2,Lr=Me[ur],Fr=a+8|0,Xr=Me[Fr>>2];if((Xr+Lr|0)>>>0>Me[Er+3]>>>0){var jr=Se[pr+1];Q(r,jr,Xr);break r}var Ur=Or+Lr|0,xr=Se[pr+1];Pa(Ur,xr,Xr,1);var zr=Se[ur]+Se[Fr>>2]|0;Se[ur]=zr;break r}if(1==(0|Ir)||2==(0|Ir)){var Vr=Se[pr+1];H(r,Vr);var Br=0==(4&Se[Er]|0),Hr=Me[cr],Kr=0!=(0|Hr);e:do if(Br){do if(Kr){var kr=(r+8|0)>>2,Yr=Me[kr];if((Yr+2|0)>>>0>Me[Er+3]>>>0)break;var Gr=Hr+Yr|0;oe=14906,Ae[Gr]=255&oe,oe>>=8,Ae[Gr+1]=255&oe;var Wr=Se[kr]+2|0;Se[kr]=Wr;break e}while(0);Q(r,0|He.__str120,2)}else{do if(Kr){var Zr=r+8|0,Qr=Me[Zr>>2];if(Qr>>>0>=Me[Er+3]>>>0)break;Se[Zr>>2]=Qr+1|0,Ae[Hr+Qr|0]=46;break e}while(0);Y(r,46)}while(0);var qr=Se[pr+2];H(r,qr);break r}if(3==(0|Ir)){for(var br=(r+20|0)>>2,$r=Me[br],lr=(r+16|0)>>2,Jr=a,ra=0,aa=$r;;){var aa,ra,Jr,ea=Me[Jr+4>>2];if(0==(0|ea)){var ia=ra,va=0;gr=33;break}if(ra>>>0>3){Z(r);break r}var ta=(ra<<4)+yr|0;Se[ta>>2]=aa,Se[br]=ta,Se[((ra<<4)+4>>2)+wr]=ea,Se[((ra<<4)+8>>2)+wr]=0;var fa=Me[lr];Se[((ra<<4)+12>>2)+wr]=fa;var _a=ra+1|0,sa=0|ea,na=Me[sa>>2];if((na-25|0)>>>0>=3){gr=25;break}var Jr=ea,ra=_a,aa=ta}e:do if(25==gr){if(4==(0|na)){Se[dr]=fa,Se[lr]=mr,Se[dr+1]=ea;var oa=Se[sa>>2],la=mr}else var oa=na,la=fa;var la,oa;if(2!=(0|oa)){var ia=_a,va=sa;break}for(var ba=_a,ka=ea+8|0;;){var ka,ba,ua=Me[ka>>2];if((Se[ua>>2]-25|0)>>>0>=3){var ia=ba,va=sa;break e}if(ba>>>0>3)break;var ca=(ba<<4)+yr|0,ha=ba-1|0,da=(ha<<4)+yr|0,or=ca>>2,nr=da>>2;Se[or]=Se[nr],Se[or+1]=Se[nr+1],Se[or+2]=Se[nr+2],Se[or+3]=Se[nr+3],Se[ca>>2]=da,Se[br]=ca,Se[((ha<<4)+4>>2)+wr]=ua,Se[((ha<<4)+8>>2)+wr]=0,Se[((ha<<4)+12>>2)+wr]=la;var ba=ba+1|0,ka=ua+4|0}Z(r);break r}while(0);var va,ia,wa=Se[pr+2];if(H(r,wa),4==(0|Se[va>>2])){var pa=Se[dr];Se[lr]=pa}var Ea=0==(0|ia);e:do if(!Ea)for(var Aa=r+8|0,ga=r+12|0,ya=ia;;){var ya,ma=ya-1|0;if(0==(0|Se[((ma<<4)+8>>2)+wr])){var Sa=Me[cr],Ma=0==(0|Sa);do{if(!Ma){var Ca=Me[Aa>>2];if(Ca>>>0>=Me[ga>>2]>>>0){gr=41;break}Se[Aa>>2]=Ca+1|0,Ae[Sa+Ca|0]=32,gr=42;break}gr=41}while(0);41==gr&&Y(r,32);var Ra=Se[((ma<<4)+4>>2)+wr];$(r,Ra)}if(0==(0|ma))break e;var ya=ma}while(0);Se[br]=$r;break r}if(4==(0|Ir)){var sr=(r+20|0)>>2,Ta=Se[sr];Se[sr]=0;var Oa=Se[pr+1];H(r,Oa);var Na=Me[cr],Ia=0==(0|Na);do{if(!Ia){var _r=(r+8|0)>>2,Da=Me[_r],La=0==(0|Da);do if(!La){if(Ae[Na+(Da-1)|0]<<24>>24!=60)break;Da>>>0>>0?(Se[_r]=Da+1|0,Ae[Na+Da|0]=32):Y(r,32)}while(0);var Fa=Me[cr];if(0==(0|Fa)){gr=54;break}var Xa=Me[_r];if(Xa>>>0>=Me[Er+3]>>>0){gr=54;break}Se[_r]=Xa+1|0,Ae[Fa+Xa|0]=60,gr=55;break}gr=54}while(0);54==gr&&Y(r,60);var ja=Se[pr+2];H(r,ja);var Ua=Me[cr],xa=0==(0|Ua);do{if(!xa){var fr=(r+8|0)>>2,za=Me[fr],Va=0==(0|za);do if(!Va){if(Ae[Ua+(za-1)|0]<<24>>24!=62)break;za>>>0>>0?(Se[fr]=za+1|0,Ae[Ua+za|0]=32):Y(r,32)}while(0);var Ba=Me[cr];if(0==(0|Ba)){gr=64;break}var Ha=Me[fr];if(Ha>>>0>=Me[Er+3]>>>0){gr=64;break}Se[fr]=Ha+1|0,Ae[Ba+Ha|0]=62,gr=65;break}gr=64}while(0);64==gr&&Y(r,62),Se[sr]=Ta;break r}if(5==(0|Ir)){var tr=(r+16|0)>>2,Ka=Me[tr];if(0==(0|Ka)){Z(r);break r}for(var Ya=Se[pr+1],Ga=Se[Ka+4>>2];;){var Ga,Ya,Wa=Se[Ga+8>>2];if(0==(0|Wa))break;if(39!=(0|Se[Wa>>2])){Z(r);break r}if((0|Ya)<1){if(0!=(0|Ya))break;var Za=Se[Ka>>2];Se[tr]=Za;var Qa=Se[Wa+4>>2];H(r,Qa),Se[tr]=Ka;break r}var Ya=Ya-1|0,Ga=Wa}Z(r);break r}if(6==(0|Ir)){var qa=Se[pr+2];H(r,qa);break r}if(7==(0|Ir)){var $a=r+8|0,Ja=Me[$a>>2];Ja>>>0>>0?(Se[$a>>2]=Ja+1|0,Ae[Or+Ja|0]=126):Y(r,126);var re=Se[pr+2];H(r,re);break r}if(8==(0|Ir)){var vr=(r+8|0)>>2,ae=Me[vr];if((ae+11|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str121,11);else{for(var ee=Or+ae|0,ie=0|He.__str121,ve=ee,te=ie+11;ie>2,se=Me[J];if((se+8|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str122,8);else{var ne=Or+se|0,le=0|ne;oe=542397526,Ae[le]=255&oe,oe>>=8,Ae[le+1]=255&oe,oe>>=8,Ae[le+2]=255&oe,oe>>=8,Ae[le+3]=255&oe;var be=ne+4|0;oe=544370534,Ae[be]=255&oe,oe>>=8,Ae[be+1]=255&oe,oe>>=8,Ae[be+2]=255&oe,oe>>=8,Ae[be+3]=255&oe;var ke=Se[J]+8|0;Se[J]=ke}var ue=Se[pr+1];H(r,ue);break r}if(10==(0|Ir)){var W=(r+8|0)>>2,ce=Me[W],he=r+12|0;if((ce+24|0)>>>0>Me[he>>2]>>>0)Q(r,0|He.__str123,24);else{var de=Or+ce|0;Pa(de,0|He.__str123,24,1);var we=Se[W]+24|0;Se[W]=we}var pe=Se[pr+1];H(r,pe);var Ee=Me[cr],ge=0==(0|Ee);do{if(!ge){var ye=Me[W];if((ye+4|0)>>>0>Me[he>>2]>>>0){gr=96;break}var me=Ee+ye|0;oe=762210605,Ae[me]=255&oe,oe>>=8,Ae[me+1]=255&oe,oe>>=8,Ae[me+2]=255&oe,oe>>=8,Ae[me+3]=255&oe;var Ce=Se[W]+4|0;Se[W]=Ce,gr=97;break}gr=96}while(0);96==gr&&Q(r,0|He.__str124,4);var Re=Se[pr+2];H(r,Re);break r}if(11==(0|Ir)){var G=(r+8|0)>>2,Te=Me[G];if((Te+13|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str125,13);else{for(var Ne=Or+Te|0,ie=0|He.__str125,ve=Ne,te=ie+13;ie>2,De=Me[K];if((De+18|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str126,18);else{for(var Le=Or+De|0,ie=0|He.__str126,ve=Le,te=ie+18;ie>2,je=Me[B];if((je+16|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str127,16);else{for(var Ue=Or+je|0,ie=0|He.__str127,ve=Ue,te=ie+16;ie>2,Ve=Me[V];if((Ve+21|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str128,21);else{var Be=Or+Ve|0;Pa(Be,0|He.__str128,21,1);var Ke=Se[V]+21|0;Se[V]=Ke}var Ye=Se[pr+1];H(r,Ye);break r}if(15==(0|Ir)){var z=(r+8|0)>>2,Ge=Me[z];if((Ge+17|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str129,17);else{for(var We=Or+Ge|0,ie=0|He.__str129,ve=We,te=ie+17;ie>2,qe=Me[x];if((qe+26|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str130,26);else{var $e=Or+qe|0;Pa($e,0|He.__str130,26,1);var Je=Se[x]+26|0;Se[x]=Je}var ri=Se[pr+1];H(r,ri);break r}if(17==(0|Ir)){var U=(r+8|0)>>2,ai=Me[U];if((ai+15|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str131,15);else{for(var ei=Or+ai|0,ie=0|He.__str131,ve=ei,te=ie+15;ie>2,ti=Me[j];if((ti+19|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str132,19);else{for(var fi=Or+ti|0,ie=0|He.__str132,ve=fi,te=ie+19;ie>2,ni=Me[X];if((ni+24|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str133,24);else{var oi=Or+ni|0;Pa(oi,0|He.__str133,24,1);var li=Se[X]+24|0;Se[X]=li}var bi=Se[pr+1];H(r,bi);break r}if(20==(0|Ir)){var F=(r+8|0)>>2,ki=Me[F];if((ki+17|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str134,17);else{for(var ui=Or+ki|0,ie=0|He.__str134,ve=ui,te=ie+17;ie>2,di=Me[L],wi=a+8|0,pi=Me[wi>>2];if((pi+di|0)>>>0>Me[Er+3]>>>0){var Ei=Se[pr+1];Q(r,Ei,pi);break r}var Ai=Or+di|0,gi=Se[pr+1];Pa(Ai,gi,pi,1);var yi=Se[L]+Se[wi>>2]|0;Se[L]=yi;break r}if(22==(0|Ir)||23==(0|Ir)||24==(0|Ir)){for(var mi=r+20|0;;){var mi,Si=Me[mi>>2];if(0==(0|Si))break a;if(0==(0|Se[Si+8>>2])){var Mi=Me[Se[Si+4>>2]>>2];if((Mi-22|0)>>>0>=3)break a;if((0|Mi)==(0|Ir))break}var mi=0|Si}var Ci=Se[pr+1];H(r,Ci);break r}if(25!=(0|Ir)&&26!=(0|Ir)&&27!=(0|Ir)&&28!=(0|Ir)&&29!=(0|Ir)&&30!=(0|Ir)&&31!=(0|Ir)&&32!=(0|Ir)){if(33==(0|Ir)){var D=(r+8|0)>>2,Ri=Me[D],P=(a+4|0)>>2,I=Me[P]>>2;if(0==(4&Se[Er]|0)){var Ti=Me[I+1];if((Ti+Ri|0)>>>0>Me[Er+3]>>>0){var Oi=Se[I];Q(r,Oi,Ti);break r}var Ni=Or+Ri|0,Ii=Se[I];Pa(Ni,Ii,Ti,1);var Pi=Se[D]+Se[Se[P]+4>>2]|0;Se[D]=Pi;break r}var Di=Me[I+3];if((Di+Ri|0)>>>0>Me[Er+3]>>>0){var Li=Se[I+2];Q(r,Li,Di);break r}var Fi=Or+Ri|0,Xi=Se[I+2];Pa(Fi,Xi,Di,1);var ji=Se[D]+Se[Se[P]+12>>2]|0;Se[D]=ji;break r}if(34==(0|Ir)){var Ui=Se[pr+1];H(r,Ui);break r}if(35==(0|Ir)){var N=(0|r)>>2;if(0!=(32&Se[N]|0)){var xi=Se[Er+5];rr(r,a,xi)}var zi=a+4|0,Vi=0==(0|Se[zi>>2]);e:do if(!Vi){var O=(r+20|0)>>2,Bi=Se[O],Hi=0|Mr;Se[Hi>>2]=Bi,Se[O]=Mr,Se[Mr+4>>2]=a;var Ki=Mr+8|0;Se[Ki>>2]=0;var Yi=Se[Er+4];Se[Mr+12>>2]=Yi;var Gi=Se[zi>>2];H(r,Gi);var Wi=Se[Hi>>2];if(Se[O]=Wi,0!=(0|Se[Ki>>2]))break r;if(0!=(32&Se[N]|0))break;var Zi=Me[cr],Qi=0==(0|Zi);do if(!Qi){var qi=r+8|0,$i=Me[qi>>2];if($i>>>0>=Me[Er+3]>>>0)break;Se[qi>>2]=$i+1|0,Ae[Zi+$i|0]=32;break e}while(0);Y(r,32)}while(0);if(0!=(32&Se[N]|0))break r;var Ji=Se[Er+5];rr(r,a,Ji);break r}if(36==(0|Ir)){var T=(r+20|0)>>2,rv=Me[T],av=0|Cr;Se[hr]=rv,Se[T]=av,Se[hr+1]=a;var ev=Cr+8|0;Se[ev>>2]=0;var iv=Se[Er+4];Se[hr+3]=iv;for(var vv=rv,tv=1;;){var tv,vv;if(0==(0|vv))break;if((Se[Se[vv+4>>2]>>2]-22|0)>>>0>=3)break;var fv=vv+8|0;if(0==(0|Se[fv>>2])){if(tv>>>0>3){Z(r);break r}var _v=(tv<<4)+Cr|0,R=_v>>2,C=vv>>2;Se[R]=Se[C],Se[R+1]=Se[C+1],Se[R+2]=Se[C+2],Se[R+3]=Se[C+3];var sv=Se[T];Se[_v>>2]=sv,Se[T]=_v,Se[fv>>2]=1;var nv=tv+1|0}else var nv=tv;var nv,vv=Se[vv>>2],tv=nv}var ov=Se[pr+2];if(H(r,ov),Se[T]=rv,0!=(0|Se[ev>>2]))break r;if(tv>>>0>1){for(var lv=tv;;){var lv,bv=lv-1|0,kv=Se[((bv<<4)+4>>2)+hr];if($(r,kv),bv>>>0<=1)break;var lv=bv}var uv=Se[T]}else var uv=rv;var uv;ar(r,a,uv);break r}if(37==(0|Ir)){var M=(r+20|0)>>2,cv=Se[M],hv=0|Rr;Se[hv>>2]=cv,Se[M]=Rr,Se[Rr+4>>2]=a;var dv=Rr+8|0;Se[dv>>2]=0;var wv=Se[Er+4];Se[Rr+12>>2]=wv;var pv=a+4|0,Ev=Se[pr+2];H(r,Ev);var Av=0==(0|Se[dv>>2]);e:do if(Av){var gv=Me[cr],yv=0==(0|gv);do{if(!yv){var mv=r+8|0,Sv=Me[mv>>2];if(Sv>>>0>=Me[Er+3]>>>0){gr=187;break}Se[mv>>2]=Sv+1|0,Ae[gv+Sv|0]=32,gr=188;break}gr=187}while(0);187==gr&&Y(r,32);var Mv=Se[pv>>2];H(r,Mv);var Cv=Me[cr],Rv=0==(0|Cv);do if(!Rv){var S=(r+8|0)>>2,Tv=Me[S];if((Tv+3|0)>>>0>Me[Er+3]>>>0)break;var Ov=Cv+Tv|0;Ae[Ov]=Ae[0|He.__str135],Ae[Ov+1]=Ae[(0|He.__str135)+1],Ae[Ov+2]=Ae[(0|He.__str135)+2];var Nv=Se[S]+3|0;Se[S]=Nv;break e}while(0);Q(r,0|He.__str135,3)}while(0);var Iv=Se[hv>>2];Se[M]=Iv;break r}if(38==(0|Ir)||39==(0|Ir)){var Pv=Se[pr+1];H(r,Pv);var Dv=a+8|0;if(0==(0|Se[Dv>>2]))break r;var Lv=Me[cr],Fv=0==(0|Lv);do{if(!Fv){var m=(r+8|0)>>2,Xv=Me[m];if((Xv+2|0)>>>0>Me[Er+3]>>>0){gr=197;break}var jv=Lv+Xv|0;oe=8236,Ae[jv]=255&oe,oe>>=8,Ae[jv+1]=255&oe;var Uv=Se[m]+2|0;Se[m]=Uv,gr=198;break}gr=197}while(0);197==gr&&Q(r,0|He.__str136,2);var xv=Se[Dv>>2];H(r,xv);break r}if(40==(0|Ir)){var y=(r+8|0)>>2,zv=Me[y],g=(r+12|0)>>2;if((zv+8|0)>>>0>Me[g]>>>0)Q(r,0|He.__str137,8);else{var Vv=Or+zv|0,le=0|Vv;oe=1919250543,Ae[le]=255&oe,oe>>=8,Ae[le+1]=255&oe,oe>>=8,Ae[le+2]=255&oe,oe>>=8,Ae[le+3]=255&oe;var be=Vv+4|0;oe=1919906913,Ae[be]=255&oe,oe>>=8,Ae[be+1]=255&oe,oe>>=8,Ae[be+2]=255&oe,oe>>=8,Ae[be+3]=255&oe;var Bv=Se[y]+8|0;Se[y]=Bv}var A=(a+4|0)>>2,Hv=(Ae[Se[Se[A]+4>>2]]-97&255&255)<26;e:do if(Hv){var Kv=Me[cr],Yv=0==(0|Kv);do if(!Yv){var Gv=Me[y];if(Gv>>>0>=Me[g]>>>0)break;Se[y]=Gv+1|0,Ae[Kv+Gv|0]=32;break e}while(0);Y(r,32)}while(0);var Wv=Me[cr],Zv=0==(0|Wv);do{if(!Zv){var Qv=Me[y],qv=Me[A],$v=Me[qv+8>>2];if(($v+Qv|0)>>>0>Me[g]>>>0){var Jv=qv,rt=$v;break}var at=Wv+Qv|0,et=Se[qv+4>>2];Pa(at,et,$v,1);var it=Se[y]+Se[Se[A]+8>>2]|0;Se[y]=it;break r}var vt=Me[A],Jv=vt,rt=Se[vt+8>>2]}while(0);var rt,Jv,tt=Se[Jv+4>>2];Q(r,tt,rt);break r}if(41==(0|Ir)){var E=(r+8|0)>>2,ft=Me[E];if((ft+9|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str10180,9);else{for(var _t=Or+ft|0,ie=0|He.__str10180,ve=_t,te=ie+9;ie>2,ot=Me[p];if((ot+9|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str10180,9);else{for(var lt=Or+ot|0,ie=0|He.__str10180,ve=lt,te=ie+9;ie>2],ct=42==(0|Se[ut>>2]);e:do if(ct){var w=(r+8|0)>>2,ht=Me[w],dt=r+12|0;ht>>>0>2]>>>0?(Se[w]=ht+1|0,Ae[Or+ht|0]=40):Y(r,40);var wt=Se[kt>>2];er(r,wt);var pt=Me[cr],Et=0==(0|pt);do if(!Et){var At=Me[w];if(At>>>0>=Me[dt>>2]>>>0)break;Se[w]=At+1|0,Ae[pt+At|0]=41;break e}while(0);Y(r,41)}else ir(r,ut);while(0);var gt=Me[cr],yt=0==(0|gt);do{if(!yt){var mt=r+8|0,St=Me[mt>>2];if(St>>>0>=Me[Er+3]>>>0){gr=232;break}Se[mt>>2]=St+1|0,Ae[gt+St|0]=40,gr=233;break}gr=232}while(0);232==gr&&Y(r,40);var Mt=Se[pr+2];H(r,Mt);var Ct=Me[cr],Rt=0==(0|Ct);do if(!Rt){var Tt=r+8|0,Ot=Me[Tt>>2];if(Ot>>>0>=Me[Er+3]>>>0)break;Se[Tt>>2]=Ot+1|0,Ae[Ct+Ot|0]=41;break r}while(0);Y(r,41);break r}if(44==(0|Ir)){var d=(a+8|0)>>2;if(45==(0|Se[Se[d]>>2])){var h=(a+4|0)>>2,Nt=Se[h],It=40==(0|Se[Nt>>2]);do if(It){var Pt=Se[Nt+4>>2];if(1!=(0|Se[Pt+8>>2]))break;if(Ae[Se[Pt+4>>2]]<<24>>24!=62)break;var Dt=r+8|0,Lt=Me[Dt>>2];Lt>>>0>>0?(Se[Dt>>2]=Lt+1|0,Ae[Or+Lt|0]=40):Y(r,40)}while(0);var Ft=Me[cr],Xt=0==(0|Ft);do{if(!Xt){var jt=r+8|0,Ut=Me[jt>>2];if(Ut>>>0>=Me[Er+3]>>>0){gr=248;break}Se[jt>>2]=Ut+1|0,Ae[Ft+Ut|0]=40,gr=249;break}gr=248}while(0);248==gr&&Y(r,40);var xt=Se[Se[d]+4>>2];H(r,xt);var zt=Me[cr],Vt=0==(0|zt);do{if(!Vt){var c=(r+8|0)>>2,Bt=Me[c];if((Bt+2|0)>>>0>Me[Er+3]>>>0){gr=252;break}var Ht=zt+Bt|0;oe=8233,Ae[Ht]=255&oe,oe>>=8,Ae[Ht+1]=255&oe;var Kt=Se[c]+2|0;Se[c]=Kt,gr=253;break}gr=252}while(0);252==gr&&Q(r,0|He.__str139,2);var Yt=Se[h];ir(r,Yt);var Gt=Me[cr],Wt=0==(0|Gt);do{if(!Wt){var u=(r+8|0)>>2,Zt=Me[u];if((Zt+2|0)>>>0>Me[Er+3]>>>0){gr=256;break}var Qt=Gt+Zt|0;oe=10272,Ae[Qt]=255&oe,oe>>=8,Ae[Qt+1]=255&oe;var qt=Se[u]+2|0;Se[u]=qt,gr=257;break}gr=256}while(0);256==gr&&Q(r,0|He.__str140,2);var $t=Se[Se[d]+8>>2];H(r,$t);var Jt=Me[cr],rf=0==(0|Jt);do{if(!rf){var af=r+8|0,ef=Me[af>>2];if(ef>>>0>=Me[Er+3]>>>0){gr=260;break}Se[af>>2]=ef+1|0,Ae[Jt+ef|0]=41,gr=261;break}gr=260}while(0);260==gr&&Y(r,41);var vf=Se[h];if(40!=(0|Se[vf>>2]))break r;var tf=Se[vf+4>>2];if(1!=(0|Se[tf+8>>2]))break r;if(Ae[Se[tf+4>>2]]<<24>>24!=62)break r;var ff=Me[cr],_f=0==(0|ff);do if(!_f){var sf=r+8|0,nf=Me[sf>>2];if(nf>>>0>=Me[Er+3]>>>0)break;Se[sf>>2]=nf+1|0,Ae[ff+nf|0]=41;break r}while(0);Y(r,41);break r}Z(r);break r}if(45==(0|Ir)){Z(r);break r}if(46==(0|Ir)){var of=a+4|0,k=(a+8|0)>>2,lf=Se[k],bf=47==(0|Se[lf>>2]);do if(bf){if(48!=(0|Se[Se[lf+8>>2]>>2]))break;var b=(r+8|0)>>2,kf=Me[b],l=(r+12|0)>>2;kf>>>0>>0?(Se[b]=kf+1|0,Ae[Or+kf|0]=40):Y(r,40);var uf=Se[Se[k]+4>>2];H(r,uf);var cf=Me[cr],hf=0==(0|cf);do{if(!hf){var df=Me[b];if((df+2|0)>>>0>Me[l]>>>0){gr=278;break}var wf=cf+df|0;oe=8233,Ae[wf]=255&oe,oe>>=8,Ae[wf+1]=255&oe;var pf=Se[b]+2|0;Se[b]=pf,gr=279;break}gr=278}while(0);278==gr&&Q(r,0|He.__str139,2);var Ef=Se[of>>2];ir(r,Ef);var Af=Me[cr],gf=0==(0|Af);do{if(!gf){var yf=Me[b];if((yf+2|0)>>>0>Me[l]>>>0){gr=282;break}var mf=Af+yf|0;oe=10272,Ae[mf]=255&oe,oe>>=8,Ae[mf+1]=255&oe;var Sf=Se[b]+2|0;Se[b]=Sf,gr=283;break}gr=282}while(0);282==gr&&Q(r,0|He.__str140,2);var Mf=Se[Se[Se[k]+8>>2]+4>>2];H(r,Mf);var Cf=Me[cr],Rf=0==(0|Cf);do{if(!Rf){var Tf=Me[b];if((Tf+5|0)>>>0>Me[l]>>>0){gr=286;break}var Of=Cf+Tf|0;Ae[Of]=Ae[0|He.__str141],Ae[Of+1]=Ae[(0|He.__str141)+1],Ae[Of+2]=Ae[(0|He.__str141)+2],Ae[Of+3]=Ae[(0|He.__str141)+3],Ae[Of+4]=Ae[(0|He.__str141)+4];var Nf=Se[b]+5|0;Se[b]=Nf,gr=287;break}gr=286}while(0);286==gr&&Q(r,0|He.__str141,5);var If=Se[Se[Se[k]+8>>2]+8>>2];H(r,If);var Pf=Me[cr],Df=0==(0|Pf);do if(!Df){var Lf=Me[b];if(Lf>>>0>=Me[l]>>>0)break;Se[b]=Lf+1|0,Ae[Pf+Lf|0]=41;break r}while(0);Y(r,41);break r}while(0);Z(r);break r}if(47==(0|Ir)||48==(0|Ir)){Z(r);break r}if(49==(0|Ir)||50==(0|Ir)){var Ff=a+4|0,Xf=Se[Ff>>2],jf=33==(0|Se[Xf>>2]);do{if(jf){var Uf=Me[Se[Xf+4>>2]+16>>2];if(1==(0|Uf)||2==(0|Uf)||3==(0|Uf)||4==(0|Uf)||5==(0|Uf)||6==(0|Uf)){var xf=a+8|0;if(0!=(0|Se[Se[xf>>2]>>2])){var zf=Uf;break}if(50==(0|Ir)){var Vf=r+8|0,Bf=Me[Vf>>2];Bf>>>0>>0?(Se[Vf>>2]=Bf+1|0,Ae[Or+Bf|0]=45):Y(r,45)}var Hf=Se[xf>>2];if(H(r,Hf),2==(0|Uf)){var Kf=Me[cr],Yf=0==(0|Kf);do if(!Yf){var Gf=r+8|0,Wf=Me[Gf>>2];if(Wf>>>0>=Me[Er+3]>>>0)break;Se[Gf>>2]=Wf+1|0,Ae[Kf+Wf|0]=117;break r}while(0);Y(r,117);break r}if(3==(0|Uf)){var Zf=Me[cr],Qf=0==(0|Zf);do if(!Qf){var qf=r+8|0,$f=Me[qf>>2];if($f>>>0>=Me[Er+3]>>>0)break;Se[qf>>2]=$f+1|0,Ae[Zf+$f|0]=108;break r}while(0);Y(r,108);break r}if(4==(0|Uf)){var Jf=Me[cr],r_=0==(0|Jf);do if(!r_){var o=(r+8|0)>>2,a_=Me[o];if((a_+2|0)>>>0>Me[Er+3]>>>0)break;var e_=Jf+a_|0;oe=27765,Ae[e_]=255&oe,oe>>=8,Ae[e_+1]=255&oe;var i_=Se[o]+2|0;Se[o]=i_;break r}while(0);Q(r,0|He.__str142,2);break r}if(5==(0|Uf)){var v_=Me[cr],t_=0==(0|v_);do if(!t_){var n=(r+8|0)>>2,f_=Me[n];if((f_+2|0)>>>0>Me[Er+3]>>>0)break;var __=v_+f_|0;oe=27756,Ae[__]=255&oe,oe>>=8,Ae[__+1]=255&oe;var s_=Se[n]+2|0;Se[n]=s_;break r}while(0);Q(r,0|He.__str143,2);break r}if(6==(0|Uf)){var n_=Me[cr],o_=0==(0|n_);do if(!o_){var s=(r+8|0)>>2,l_=Me[s];if((l_+3|0)>>>0>Me[Er+3]>>>0)break;var b_=n_+l_|0;Ae[b_]=Ae[0|He.__str144],Ae[b_+1]=Ae[(0|He.__str144)+1],Ae[b_+2]=Ae[(0|He.__str144)+2];var k_=Se[s]+3|0;Se[s]=k_;break r}while(0);Q(r,0|He.__str144,3);break r}break r}if(7==(0|Uf)){var _=Se[pr+2]>>2;if(0!=(0|Se[_])){var zf=7;break}if(!(1==(0|Se[_+2])&49==(0|Ir))){var zf=Uf;break}var u_=Ae[Se[_+1]]<<24>>24;if(48==(0|u_)){var f=(r+8|0)>>2,c_=Me[f];if((c_+5|0)>>>0>Me[Er+3]>>>0){Q(r,0|He.__str145,5);break r}var h_=Or+c_|0;Ae[h_]=Ae[0|He.__str145],Ae[h_+1]=Ae[(0|He.__str145)+1],Ae[h_+2]=Ae[(0|He.__str145)+2],Ae[h_+3]=Ae[(0|He.__str145)+3],Ae[h_+4]=Ae[(0|He.__str145)+4];var d_=Se[f]+5|0;Se[f]=d_;break r}if(49==(0|u_)){var t=(r+8|0)>>2,w_=Me[t];if((w_+4|0)>>>0>Me[Er+3]>>>0){Q(r,0|He.__str146,4);break r}var p_=Or+w_|0;oe=1702195828,Ae[p_]=255&oe,oe>>=8,Ae[p_+1]=255&oe,oe>>=8,Ae[p_+2]=255&oe,oe>>=8,Ae[p_+3]=255&oe;var E_=Se[t]+4|0;Se[t]=E_;break r}var zf=Uf;break}var zf=Uf;break}var zf=0}while(0);var zf,v=(r+8|0)>>2,A_=Me[v],i=(r+12|0)>>2;A_>>>0>>0?(Se[v]=A_+1|0,Ae[Or+A_|0]=40):Y(r,40);var g_=Se[Ff>>2];H(r,g_);var y_=Me[cr],m_=0==(0|y_);do{if(!m_){var S_=Me[v];if(S_>>>0>=Me[i]>>>0){gr=335;break}Se[v]=S_+1|0,Ae[y_+S_|0]=41,gr=336;break}gr=335}while(0);335==gr&&Y(r,41);var M_=50==(0|Se[Nr>>2]);e:do if(M_){var C_=Me[cr],R_=0==(0|C_);do if(!R_){var T_=Me[v];if(T_>>>0>=Me[i]>>>0)break;Se[v]=T_+1|0,Ae[C_+T_|0]=45;break e}while(0);Y(r,45)}while(0);if(8==(0|zf)){var O_=Me[cr],N_=0==(0|O_);do{if(!N_){var I_=Me[v];if(I_>>>0>=Me[i]>>>0){gr=345;break}Se[v]=I_+1|0,Ae[O_+I_|0]=91,gr=346;break}gr=345}while(0);345==gr&&Y(r,91);var P_=Se[pr+2];H(r,P_);var D_=Me[cr],L_=0==(0|D_);do if(!L_){var F_=Me[v];if(F_>>>0>=Me[i]>>>0)break;Se[v]=F_+1|0,Ae[D_+F_|0]=93;break r}while(0);Y(r,93);break r}var X_=Se[pr+2];H(r,X_);break r}Z(r);break r}}while(0);var e=(r+20|0)>>2,j_=Se[e],U_=0|Sr;Se[U_>>2]=j_,Se[e]=Sr,Se[Sr+4>>2]=a;var x_=Sr+8|0;Se[x_>>2]=0;var z_=Se[Er+4];Se[Sr+12>>2]=z_;var V_=Se[pr+1];H(r,V_),0==(0|Se[x_>>2])&&$(r,a);var B_=Se[U_>>2];Se[e]=B_}while(0);Oe=Ar}function K(r,a,e,i){var v=i>>2;Se[v]=r,Se[v+1]=r+e|0,Se[v+2]=a,Se[v+3]=r,Se[v+6]=e<<1,Se[v+5]=0,Se[v+9]=e,Se[v+8]=0,Se[v+10]=0,Se[v+11]=0,Se[v+12]=0}function Y(r,a){var e,i=r+4|0,v=Me[i>>2],t=0==(0|v);do if(!t){var e=(r+8|0)>>2,f=Me[e];if(f>>>0>2]>>>0)var _=v,s=f;else{tr(r,1);var n=Me[i>>2];if(0==(0|n))break;var _=n,s=Se[e]}var s,_;Ae[_+s|0]=255&a;var o=Se[e]+1|0;Se[e]=o}while(0)}function G(r,a,e,i){var v,t=i>>2,f=Oe;Oe+=4;var _=f,v=_>>2,s=0==(0|r);do if(s){if(0==(0|i)){var n=0;break}Se[t]=-3;var n=0}else{var o=0==(0|e);if(0!=(0|a)&o){if(0==(0|i)){var n=0;break}Se[t]=-3;var n=0}else{var l=W(r,_);if(0==(0|l)){if(0==(0|i)){var n=0;break}if(1==(0|Se[v])){Se[t]=-1;var n=0}else{Se[t]=-2;var n=0}}else{var b=0==(0|a);do if(b){if(o){var k=l;break}var u=Se[v];Se[e>>2]=u;var k=l}else{var c=Ca(l);if(c>>>0>2]>>>0){Ra(a,l);va(l);var k=a}else{va(a);var h=Se[v];Se[e>>2]=h;var k=l}}while(0);var k;if(0==(0|i)){var n=k;break}Se[t]=0;var n=k}}}while(0);var n;return Oe=f,n}function W(r,a){var e,i=Oe;Oe+=52;var v,t=i,e=t>>2;Se[a>>2]=0;var f=Ca(r),_=Ae[r]<<24>>24==95;do{if(_){if(Ae[r+1|0]<<24>>24==90){var s=0;v=13;break}v=3;break}v=3}while(0);do if(3==v){var n=Na(r,0|He.__str117,8);if(0!=(0|n)){var s=1;v=13;break}var o=Ae[r+8|0];if(o<<24>>24!=46&&o<<24>>24!=95&&o<<24>>24!=36){var s=1;v=13;break}var l=r+9|0,b=Ae[l];if(b<<24>>24!=68&&b<<24>>24!=73){\nvar s=1;v=13;break}if(Ae[r+10|0]<<24>>24!=95){var s=1;v=13;break}var k=f+29|0,u=Jr(k);if(0==(0|u)){Se[a>>2]=1;var c=0;v=19;break}Ae[l]<<24>>24==73?Pa(u,0|He.__str118,30,1):Pa(u,0|He.__str119,29,1);var h=r+11|0,c=(Ia(u,h),u);v=19;break}while(0);if(13==v){var s;K(r,17,f,t);var d=Se[e+6],w=Ta(),p=Oe;Oe+=12*d,Oe=Oe+3>>2<<2;var E=Oe;if(Oe+=4*Se[e+9],Oe=Oe+3>>2<<2,Se[e+4]=p,Se[e+7]=E,s)var A=N(t),g=A;else var y=T(t,1),g=y;var g,m=Ae[Se[e+3]]<<24>>24==0?g:0,S=Se[e+12]+f+10*Se[e+10]|0;if(0==(0|m))var M=0;else var C=S/8+S|0,R=B(17,m,C,a),M=R;var M;Oa(w);var c=M}var c;return Oe=i,c}function Z(r){var a=r+4|0,e=Se[a>>2];va(e),Se[a>>2]=0}function Q(r,a,e){var i,v=r+4|0,t=Me[v>>2],f=0==(0|t);do if(!f){var i=(r+8|0)>>2,_=Me[i];if((_+e|0)>>>0>Me[r+12>>2]>>>0){tr(r,e);var s=Me[v>>2];if(0==(0|s))break;var n=s,o=Se[i]}else var n=t,o=_;var o,n;Pa(n+o|0,a,e,1);var l=Se[i]+e|0;Se[i]=l}while(0)}function q(r,a,e){var i,v,t=a+e|0,f=(0|e)>0;r:do if(f)for(var _=t,s=r+4|0,i=(r+8|0)>>2,n=r+12|0,o=a;;){var o,l=(_-o|0)>3;a:do{if(l){if(Ae[o]<<24>>24!=95){v=21;break}if(Ae[o+1|0]<<24>>24!=95){v=21;break}if(Ae[o+2|0]<<24>>24!=85){v=21;break}for(var b=o+3|0,k=0;;){var k,b;if(b>>>0>=t>>>0){v=21;break a}var u=ge[b],c=u<<24>>24;if((u-48&255&255)<10)var h=c-48|0;else if((u-65&255&255)<6)var h=c-55|0;else{if((u-97&255&255)>=6)break;var h=c-87|0}var h,b=b+1|0,k=(k<<4)+h|0}if(!(u<<24>>24==95&k>>>0<256)){v=21;break}var d=Me[s>>2],w=0==(0|d);do if(!w){var p=Me[i];if(p>>>0>=Me[n>>2]>>>0)break;Se[i]=p+1|0,Ae[d+p|0]=255&k;var E=b;v=25;break a}while(0);Y(r,k);var E=b;v=25;break}v=21}while(0);a:do if(21==v){var A=Me[s>>2],g=0==(0|A);do if(!g){var y=Me[i];if(y>>>0>=Me[n>>2]>>>0)break;var m=Ae[o];Se[i]=y+1|0,Ae[A+y|0]=m;var E=o;break a}while(0);var S=Ae[o]<<24>>24;Y(r,S);var E=o}while(0);var E,M=E+1|0;if(M>>>0>=t>>>0)break r;var o=M}while(0)}function $(r,a){var e,i,v,t,f,_,s,n=r>>2,o=Se[a>>2];r:do if(22==(0|o)||25==(0|o)){var l=Me[n+1],b=0==(0|l);do if(!b){var _=(r+8|0)>>2,k=Me[_];if((k+9|0)>>>0>Me[n+3]>>>0)break;for(var u=l+k|0,c=0|He.__str147,h=u,d=c+9;c>2,A=Me[f];if((A+9|0)>>>0>Me[n+3]>>>0)break;for(var g=p+A|0,c=0|He.__str148,h=g,d=c+9;c>2,M=Me[t];if((M+6|0)>>>0>Me[n+3]>>>0)break;var C=m+M|0;Ae[C]=Ae[0|He.__str149],Ae[C+1]=Ae[(0|He.__str149)+1],Ae[C+2]=Ae[(0|He.__str149)+2],Ae[C+3]=Ae[(0|He.__str149)+3],Ae[C+4]=Ae[(0|He.__str149)+4],Ae[C+5]=Ae[(0|He.__str149)+5];var R=Se[t]+6|0;Se[t]=R;break r}while(0);Q(r,0|He.__str149,6)}else if(28==(0|o)){var T=Me[n+1],O=0==(0|T);do{if(!O){var N=r+8|0,I=Me[N>>2];if(I>>>0>=Me[n+3]>>>0){s=17;break}Se[N>>2]=I+1|0,Ae[T+I|0]=32,s=18;break}s=17}while(0);17==s&&Y(r,32);var P=Se[a+8>>2];H(r,P)}else if(29==(0|o)){if(0!=(4&Se[n]|0))break;var D=Me[n+1],L=0==(0|D);do if(!L){var F=r+8|0,X=Me[F>>2];if(X>>>0>=Me[n+3]>>>0)break;Se[F>>2]=X+1|0,Ae[D+X|0]=42;break r}while(0);Y(r,42)}else if(30==(0|o)){var j=Me[n+1],U=0==(0|j);do if(!U){var x=r+8|0,z=Me[x>>2];if(z>>>0>=Me[n+3]>>>0)break;Se[x>>2]=z+1|0,Ae[j+z|0]=38;break r}while(0);Y(r,38)}else if(31==(0|o)){var V=Me[n+1],B=0==(0|V);do if(!B){var v=(r+8|0)>>2,K=Me[v];if((K+8|0)>>>0>Me[n+3]>>>0)break;var G=V+K|0,W=0|G;oe=1886220131,Ae[W]=255&oe,oe>>=8,Ae[W+1]=255&oe,oe>>=8,Ae[W+2]=255&oe,oe>>=8,Ae[W+3]=255&oe;var Z=G+4|0;oe=544761196,Ae[Z]=255&oe,oe>>=8,Ae[Z+1]=255&oe,oe>>=8,Ae[Z+2]=255&oe,oe>>=8,Ae[Z+3]=255&oe;var q=Se[v]+8|0;Se[v]=q;break r}while(0);Q(r,0|He.__str150,8)}else if(32==(0|o)){var $=Me[n+1],J=0==(0|$);do if(!J){var i=(r+8|0)>>2,rr=Me[i];if((rr+10|0)>>>0>Me[n+3]>>>0)break;for(var ar=$+rr|0,c=0|He.__str151,h=ar,d=c+10;c>2],tr=0==(0|vr);do{if(!tr){var fr=r+8|0,_r=Me[fr>>2];if(0!=(0|_r)&&Ae[vr+(_r-1)|0]<<24>>24==40){s=42;break}if(_r>>>0>=Me[n+3]>>>0){s=41;break}Se[fr>>2]=_r+1|0,Ae[vr+_r|0]=32,s=42;break}s=41}while(0);41==s&&Y(r,32);var sr=Se[a+4>>2];H(r,sr);var nr=Me[ir>>2],or=0==(0|nr);do if(!or){var e=(r+8|0)>>2,lr=Me[e];if((lr+3|0)>>>0>Me[n+3]>>>0)break;var br=nr+lr|0;Ae[br]=Ae[0|He.__str135],Ae[br+1]=Ae[(0|He.__str135)+1],Ae[br+2]=Ae[(0|He.__str135)+2];var kr=Se[e]+3|0;Se[e]=kr;break r}while(0);Q(r,0|He.__str135,3)}else if(3==(0|o)){var ur=Se[a+4>>2];H(r,ur)}else H(r,a);while(0)}function J(r){var a=r+20|0,e=Se[a>>2];if((0|e)<(0|Se[r+24>>2])){var i=Se[r+16>>2]+12*e|0,v=e+1|0;Se[a>>2]=v;var t=i}else var t=0;var t;return t}function rr(r,a,e){var i,v,t,f,_=r>>2,s=e,t=s>>2,n=0;r:for(;;){var n,s,o=0==(0|s);do if(!o){if(0!=(0|Se[t+2]))break;var l=Se[Se[t+1]>>2];if(29==(0|l)||30==(0|l)){f=9;break r}if(22==(0|l)||23==(0|l)||24==(0|l)||28==(0|l)||31==(0|l)||32==(0|l)||37==(0|l)){var b=Se[_+1];f=12;break r}var s=Se[t],t=s>>2,n=1;continue r}while(0);if(0!=(0|Se[a+4>>2])&0==(0|n)){f=9;break}var k=0,u=r+4|0,v=u>>2;f=22;break}do if(9==f){var c=Se[_+1];if(0==(0|c)){f=17;break}var h=Se[_+2];if(0==(0|h)){var d=c;f=13;break}var w=Ae[c+(h-1)|0];if(w<<24>>24==40||w<<24>>24==42){f=18;break}var b=c;f=12;break}while(0);do if(12==f){var b;if(0==(0|b)){f=17;break}var d=b;f=13;break}while(0);do if(13==f){var d,p=r+8|0,E=Me[p>>2];if(0!=(0|E)&&Ae[d+(E-1)|0]<<24>>24==32){f=18;break}if(E>>>0>=Me[_+3]>>>0){f=17;break}Se[p>>2]=E+1|0,Ae[d+E|0]=32,f=18;break}while(0);do if(17==f){Y(r,32),f=18;break}while(0);r:do if(18==f){var A=r+4|0,g=Me[A>>2],y=0==(0|g);do if(!y){var m=r+8|0,S=Me[m>>2];if(S>>>0>=Me[_+3]>>>0)break;Se[m>>2]=S+1|0,Ae[g+S|0]=40;var k=1,u=A,v=u>>2;break r}while(0);Y(r,40);var k=1,u=A,v=u>>2}while(0);var u,k,i=(r+20|0)>>2,M=Se[i];Se[i]=0,vr(r,e,0);r:do if(k){var C=Me[v],R=0==(0|C);do if(!R){var T=r+8|0,O=Me[T>>2];if(O>>>0>=Me[_+3]>>>0)break;Se[T>>2]=O+1|0,Ae[C+O|0]=41;break r}while(0);Y(r,41)}while(0);var N=Me[v],I=0==(0|N);do{if(!I){var P=r+8|0,D=Me[P>>2];if(D>>>0>=Me[_+3]>>>0){f=30;break}Se[P>>2]=D+1|0,Ae[N+D|0]=40,f=31;break}f=30}while(0);30==f&&Y(r,40);var L=Se[a+8>>2];0!=(0|L)&&H(r,L);var F=Me[v],X=0==(0|F);do{if(!X){var j=r+8|0,U=Me[j>>2];if(U>>>0>=Me[_+3]>>>0){f=36;break}Se[j>>2]=U+1|0,Ae[F+U|0]=41,f=37;break}f=36}while(0);36==f&&Y(r,41),vr(r,e,1),Se[i]=M}function ar(r,a,e){var i,v,t,f=r>>2,_=0==(0|e);do{if(!_){var s=e,v=s>>2;r:for(;;){var s;if(0==(0|s)){var n=1;t=14;break}if(0==(0|Se[v+2])){var o=36==(0|Se[Se[v+1]>>2]),l=1&o^1;if(o){var n=l;t=14;break}var b=r+4|0,k=Me[b>>2],u=0==(0|k);do{if(!u){var i=(r+8|0)>>2,c=Me[i];if((c+2|0)>>>0>Me[f+3]>>>0){t=9;break}var h=k+c|0;oe=10272,Ae[h]=255&oe,oe>>=8,Ae[h+1]=255&oe;var d=Se[i]+2|0;Se[i]=d,vr(r,e,0),t=10;break}t=9}while(0);9==t&&(Q(r,0|He.__str140,2),vr(r,e,0));var w=Me[b>>2],p=0==(0|w);do if(!p){var E=r+8|0,A=Me[E>>2];if(A>>>0>=Me[f+3]>>>0)break;Se[E>>2]=A+1|0,Ae[w+A|0]=41;var g=l;t=15;break r}while(0);Y(r,41);var g=l;t=15;break}var s=Se[v],v=s>>2}if(14==t){var n;vr(r,e,0);var g=n}var g;if(0!=(0|g)){t=17;break}var y=r+4|0;t=21;break}t=17}while(0);r:do if(17==t){var m=r+4|0,S=Me[m>>2],M=0==(0|S);do if(!M){var C=r+8|0,R=Me[C>>2];if(R>>>0>=Me[f+3]>>>0)break;Se[C>>2]=R+1|0,Ae[S+R|0]=32;var y=m;break r}while(0);Y(r,32);var y=m}while(0);var y,T=Me[y>>2],O=0==(0|T);do{if(!O){var N=r+8|0,I=Me[N>>2];if(I>>>0>=Me[f+3]>>>0){t=24;break}Se[N>>2]=I+1|0,Ae[T+I|0]=91,t=25;break}t=24}while(0);24==t&&Y(r,91);var P=Se[a+4>>2];0!=(0|P)&&H(r,P);var D=Me[y>>2],L=0==(0|D);do{if(!L){var F=r+8|0,X=Me[F>>2];if(X>>>0>=Me[f+3]>>>0){t=30;break}Se[F>>2]=X+1|0,Ae[D+X|0]=93,t=31;break}t=30}while(0);30==t&&Y(r,93)}function er(r,a){var e,i,v,t,f,_,s=Oe;Oe+=8;var n,o=s,_=(a+4|0)>>2,l=Se[_];if(4==(0|Se[l>>2])){var f=(r+20|0)>>2,b=Se[f];Se[f]=0;var t=(r+16|0)>>2,k=Se[t],u=0|o;Se[u>>2]=k,Se[t]=o;var c=Se[_];Se[o+4>>2]=c;var h=Se[c+4>>2];H(r,h);var d=Se[u>>2];Se[t]=d;var v=(r+4|0)>>2,w=Me[v],p=0==(0|w);do{if(!p){var i=(r+8|0)>>2,E=Me[i],A=0==(0|E);do if(!A){if(Ae[w+(E-1)|0]<<24>>24!=60)break;E>>>0>2]>>>0?(Se[i]=E+1|0,Ae[w+E|0]=32):Y(r,32)}while(0);var g=Me[v];if(0==(0|g)){n=12;break}var y=Me[i];if(y>>>0>=Me[r+12>>2]>>>0){n=12;break}Se[i]=y+1|0,Ae[g+y|0]=60,n=13;break}n=12}while(0);12==n&&Y(r,60);var m=Se[Se[_]+8>>2];H(r,m);var S=Me[v],M=0==(0|S);do{if(!M){var e=(r+8|0)>>2,C=Me[e],R=0==(0|C);do if(!R){if(Ae[S+(C-1)|0]<<24>>24!=62)break;C>>>0>2]>>>0?(Se[e]=C+1|0,Ae[S+C|0]=32):Y(r,32)}while(0);var T=Me[v];if(0==(0|T)){n=22;break}var O=Me[e];if(O>>>0>=Me[r+12>>2]>>>0){n=22;break}Se[e]=O+1|0,Ae[T+O|0]=62,n=23;break}n=22}while(0);22==n&&Y(r,62),Se[f]=b}else H(r,l);Oe=s}function ir(r,a){var e,i=40==(0|Se[a>>2]);r:do if(i){var v=Me[r+4>>2],t=0==(0|v);do{if(!t){var e=(r+8|0)>>2,f=Me[e],_=a+4|0,s=Me[_>>2],n=Me[s+8>>2];if((n+f|0)>>>0>Me[r+12>>2]>>>0){var o=s,l=n;break}var b=v+f|0,k=Se[s+4>>2];Pa(b,k,n,1);var u=Se[e]+Se[Se[_>>2]+8>>2]|0;Se[e]=u;break r}var c=Me[a+4>>2],o=c,l=Se[c+8>>2]}while(0);var l,o,h=Se[o+4>>2];Q(r,h,l)}else H(r,a);while(0)}function vr(r,a,e){var i,v,t,f,_,f=(r+4|0)>>2,s=0==(0|e),t=(r+16|0)>>2;r:do if(s)for(var n=a;;){var n;if(0==(0|n)){_=29;break r}if(0==(0|Se[f])){_=29;break r}var o=n+8|0,l=0==(0|Se[o>>2]);do if(l){var b=n+4|0;if((Se[Se[b>>2]>>2]-25|0)>>>0<3)break;Se[o>>2]=1;var k=Me[t],u=Se[n+12>>2];Se[t]=u;var c=Me[b>>2],h=Se[c>>2];if(35==(0|h)){var d=n,w=k,p=c;_=14;break r}if(36==(0|h)){var E=n,A=k,g=c;_=15;break r}if(2==(0|h)){var y=k,m=b;_=16;break r}$(r,c),Se[t]=k}while(0);var n=Se[n>>2]}else for(var S=a;;){var S;if(0==(0|S)){_=29;break r}if(0==(0|Se[f])){_=29;break r}var M=S+8|0;if(0==(0|Se[M>>2])){Se[M>>2]=1;var C=Me[t],R=Se[S+12>>2];Se[t]=R;var T=S+4|0,O=Me[T>>2],N=Se[O>>2];if(35==(0|N)){var d=S,w=C,p=O;_=14;break r}if(36==(0|N)){var E=S,A=C,g=O;_=15;break r}if(2==(0|N)){var y=C,m=T;_=16;break r}$(r,O),Se[t]=C}var S=Se[S>>2]}while(0);if(14==_){var p,w,d,I=Se[d>>2];rr(r,p,I),Se[t]=w}else if(15==_){var g,A,E,P=Se[E>>2];ar(r,g,P),Se[t]=A}else if(16==_){var m,y,v=(r+20|0)>>2,D=Se[v];Se[v]=0;var L=Se[Se[m>>2]+4>>2];H(r,L),Se[v]=D;var F=0==(4&Se[r>>2]|0),X=Me[f],j=0!=(0|X);r:do if(F){do if(j){var i=(r+8|0)>>2,U=Me[i];if((U+2|0)>>>0>Me[r+12>>2]>>>0)break;var x=X+U|0;oe=14906,Ae[x]=255&oe,oe>>=8,Ae[x+1]=255&oe;var z=Se[i]+2|0;Se[i]=z;break r}while(0);Q(r,0|He.__str120,2)}else{do if(j){var V=r+8|0,B=Me[V>>2];if(B>>>0>=Me[r+12>>2]>>>0)break;Se[V>>2]=B+1|0,Ae[X+B|0]=46;break r}while(0);Y(r,46)}while(0);var K=Me[Se[m>>2]+8>>2],G=(Se[K>>2]-25|0)>>>0<3;r:do if(G)for(var W=K;;){var W,Z=Me[W+4>>2];if((Se[Z>>2]-25|0)>>>0>=3){var q=Z;break r}var W=Z}else var q=K;while(0);var q;H(r,q),Se[t]=y}}function tr(r,a){var e,e=(r+4|0)>>2,i=Se[e],v=0==(0|i);r:do if(!v){for(var t=Se[r+8>>2]+a|0,f=r+12|0,_=Se[f>>2],s=i;;){var s,_;if(t>>>0<=_>>>0)break r;var n=_<<1,o=fa(s,n);if(0==(0|o))break;Se[e]=o,Se[f>>2]=n;var _=n,s=o}var l=Se[e];va(l),Se[e]=0,Se[r+24>>2]=1}while(0)}function fr(r,a,e){var i,v=J(r),i=v>>2;return 0!=(0|v)&&(Se[i]=21,Se[i+1]=a,Se[i+2]=e),v}function _r(r){var a,a=(r+12|0)>>2,e=Se[a],i=Ae[e]<<24>>24;if(88==(0|i)){var v=e+1|0;Se[a]=v;var t=nr(r),f=Se[a],_=f+1|0;Se[a]=_;var s=Ae[f]<<24>>24==69?t:0,n=s}else if(76==(0|i))var o=or(r),n=o;else var l=N(r),n=l;var n;return n}function sr(r){var a,a=(r+12|0)>>2,e=Se[a],i=Ae[e];if(i<<24>>24==110){var v=e+1|0;Se[a]=v;var t=1,f=Ae[v],_=v}else var t=0,f=i,_=e;var _,f,t,s=(f-48&255&255)<10;r:do if(s)for(var n=f,o=0,l=_;;){var l,o,n,b=(n<<24>>24)-48+10*o|0,k=l+1|0;Se[a]=k;var u=ge[k];if((u-48&255&255)>=10){var c=b;break r}var n=u,o=b,l=k}else var c=0;while(0);var c,h=0==(0|t)?c:0|-c;return h}function nr(r){var a,e,a=(r+12|0)>>2,i=Se[a],v=Ae[i];do{if(v<<24>>24==76){var t=or(r),f=t;e=21;break}if(v<<24>>24==84){var _=x(r),f=_;e=21;break}if(v<<24>>24==115){if(Ae[i+1|0]<<24>>24!=114){e=8;break}var s=i+2|0;Se[a]=s;var n=N(r),o=br(r);if(Ae[Se[a]]<<24>>24==73){var l=z(r),b=D(r,4,o,l),k=D(r,1,n,b),f=k;e=21;break}var u=D(r,1,n,o),f=u;e=21;break}e=8}while(0);r:do if(8==e){var c=kr(r);if(0==(0|c)){var f=0;break}var h=0|c,d=Se[h>>2],w=40==(0|d);do{if(w){var p=c+4|0,E=r+48|0,A=Se[Se[p>>2]+8>>2]-2+Se[E>>2]|0;Se[E>>2]=A;var g=Se[h>>2];if(40!=(0|g)){var y=g;e=13;break}var m=Se[p>>2],S=Se[m>>2],M=Da(S,0|He.__str90);if(0!=(0|M)){var C=m;e=15;break}var R=N(r),T=D(r,43,c,R),f=T;break r}var y=d;e=13}while(0);do if(13==e){var y;if(40==(0|y)){var C=Se[c+4>>2];e=15;break}if(41==(0|y)){var O=c+4|0;e=17;break}if(42==(0|y)){e=18;break}var f=0;break r}while(0);do if(15==e){var C,O=C+12|0;e=17;break}while(0);do if(17==e){var O,I=Se[O>>2];if(1==(0|I))break;if(2==(0|I)){var P=nr(r),L=nr(r),F=D(r,45,P,L),X=D(r,44,c,F);return X}if(3==(0|I)){var j=nr(r),U=nr(r),V=nr(r),B=D(r,48,U,V),H=D(r,47,j,B),K=D(r,46,c,H);return K}var f=0;break r}while(0);var Y=nr(r),G=D(r,43,c,Y);return G}while(0);var f;return f}function or(r){var a,a=(r+12|0)>>2,e=Se[a],i=e+1|0;Se[a]=i;var v=Ae[e]<<24>>24==76;r:do if(v){if(Ae[i]<<24>>24==95)var t=T(r,0),f=t;else{var _=N(r);if(0==(0|_)){var s=0;break}var n=33==(0|Se[_>>2]);do if(n){var o=Se[_+4>>2];if(0==(0|Se[o+16>>2]))break;var l=r+48|0,b=Se[l>>2]-Se[o+4>>2]|0;Se[l>>2]=b}while(0);var k=Se[a];if(Ae[k]<<24>>24==110){var u=k+1|0;Se[a]=u;var c=50,h=u}else var c=49,h=k;for(var h,c,d=h;;){var d,w=Ae[d];if(w<<24>>24==69)break;if(w<<24>>24==0){var s=0;break r}var p=d+1|0;Se[a]=p;var d=p}var E=lr(r,h,d-h|0),A=D(r,c,_,E),f=A}var f,g=Se[a],y=g+1|0;Se[a]=y;var m=Ae[g]<<24>>24==69?f:0,s=m}else var s=0;while(0);var s;return s}function lr(r,a,e){var i=J(r),v=m(i,a,e),t=0==(0|v)?0:i;return t}function br(r){var a=r+12|0,e=Me[a>>2],i=ge[e],v=(i-48&255&255)<10;do if(v)var t=L(r),f=t;else if((i-97&255&255)<26){var _=kr(r);if(0==(0|_)){var f=0;break}if(40!=(0|Se[_>>2])){var f=_;break}var s=r+48|0,n=Se[Se[_+4>>2]+8>>2]+Se[s>>2]+7|0;Se[s>>2]=n;var f=_}else if(i<<24>>24==67||i<<24>>24==68)var o=hr(r),f=o;else{if(i<<24>>24!=76){var f=0;break}Se[a>>2]=e+1|0;var l=L(r);if(0==(0|l)){var f=0;break}var b=dr(r),k=0==(0|b)?0:l,f=k}while(0);var f;return f}function kr(r){var a,e,a=(r+12|0)>>2,i=Se[a],v=i+1|0;Se[a]=v;var t=ge[i],f=i+2|0;Se[a]=f;var _=ge[v];do{if(t<<24>>24==118){if((_-48&255&255)>=10){var s=49,n=0;e=6;break}var o=(_<<24>>24)-48|0,l=L(r),b=ur(r,o,l),k=b;e=14;break}if(t<<24>>24==99){if(_<<24>>24!=118){var s=49,n=0;e=6;break}var u=N(r),c=D(r,42,u,0),k=c;e=14;break}var s=49,n=0;e=6}while(0);r:do if(6==e){for(;;){var n,s,h=(s-n)/2+n|0,d=(h<<4)+ri|0,w=Se[d>>2],p=Ae[w],E=t<<24>>24==p<<24>>24;if(E&&_<<24>>24==Ae[w+1|0]<<24>>24)break;var A=t<<24>>24>24;do if(A)var g=h,y=n;else{if(E&&_<<24>>24>24){var g=h,y=n;break}var g=s,y=h+1|0}while(0);var y,g;if((0|y)==(0|g)){var k=0;break r}var s=g,n=y}var m=cr(r,d),k=m}while(0);var k;return k}function ur(r,a,e){var i=J(r),v=S(i,a,e),t=0==(0|v)?0:i;return t}function cr(r,a){var e=J(r);return 0!=(0|e)&&(Se[e>>2]=40,Se[e+4>>2]=a),e}function hr(r){var a,e,i=Se[r+44>>2],e=i>>2,v=0==(0|i);do if(!v){var t=Se[e];if(0==(0|t)){var f=r+48|0,_=Se[f>>2]+Se[e+2]|0;Se[f>>2]=_}else{if(21!=(0|t))break;var s=r+48|0,n=Se[s>>2]+Se[e+2]|0;Se[s>>2]=n}}while(0);var a=(r+12|0)>>2,o=Se[a],l=o+1|0;Se[a]=l;var b=Ae[o]<<24>>24;do if(67==(0|b)){var k=o+2|0;Se[a]=k;var u=Ae[l]<<24>>24;if(49==(0|u))var c=1;else if(50==(0|u))var c=2;else{if(51!=(0|u)){var h=0;break}var c=3}var c,d=wr(r,c,i),h=d}else if(68==(0|b)){var w=o+2|0;Se[a]=w;var p=Ae[l]<<24>>24;if(48==(0|p))var E=1;else if(49==(0|p))var E=2;else{if(50!=(0|p)){var h=0;break}var E=3}var E,A=pr(r,E,i),h=A}else var h=0;while(0);var h;return h}function dr(r){var a=r+12|0,e=Se[a>>2];if(Ae[e]<<24>>24==95){var i=e+1|0;Se[a>>2]=i;var v=sr(r),t=v>>>31^1}else var t=1;var t;return t}function wr(r,a,e){var i=J(r),v=M(i,a,e),t=0==(0|v)?0:i;return t}function pr(r,a,e){var i=J(r),v=C(i,a,e),t=0==(0|v)?0:i;return t}function Er(r,a){var e=J(r);return 0!=(0|e)&&(Se[e>>2]=5,Se[e+4>>2]=a),e}function Ar(r){var a,a=(r+12|0)>>2,e=Se[a],i=Ae[e]<<24>>24;do if(78==(0|i))var v=gr(r),t=v;else if(90==(0|i))var f=yr(r),t=f;else if(76==(0|i))var _=br(r),t=_;else if(83==(0|i)){if(Ae[e+1|0]<<24>>24==116){var s=e+2|0;Se[a]=s;var n=lr(r,0|He.__str152,3),o=br(r),l=D(r,1,n,o),b=r+48|0,k=Se[b>>2]+3|0;Se[b>>2]=k;var u=0,c=l}else var h=V(r,0),u=1,c=h;var c,u;if(Ae[Se[a]]<<24>>24!=73){var t=c;break}if(0==(0|u)){var d=R(r,c);if(0==(0|d)){var t=0;break}}var w=z(r),p=D(r,4,c,w),t=p}else{var E=br(r);if(Ae[Se[a]]<<24>>24!=73){var t=E;break}var A=R(r,E);if(0==(0|A)){var t=0;break}var g=z(r),y=D(r,4,E,g),t=y}while(0);var t;return t}function gr(r){var a,e=Oe;Oe+=4;var i=e,a=(r+12|0)>>2,v=Se[a],t=v+1|0;Se[a]=t;var f=Ae[v]<<24>>24==78;do if(f){var _=I(r,i,1);if(0==(0|_)){var s=0;break}var n=mr(r);if(Se[_>>2]=n,0==(0|n)){var s=0;break}var o=Se[a],l=o+1|0;if(Se[a]=l,Ae[o]<<24>>24!=69){var s=0;break}var s=Se[i>>2]}else var s=0;while(0);var s;return Oe=e,s}function yr(r){var a,a=(r+12|0)>>2,e=Se[a],i=e+1|0;Se[a]=i;var v=Ae[e]<<24>>24==90;do if(v){var t=O(r,0),f=Se[a],_=f+1|0;if(Se[a]=_,Ae[f]<<24>>24!=69){var s=0;break}if(Ae[_]<<24>>24==115){var n=f+2|0;Se[a]=n;var o=dr(r);if(0==(0|o)){var s=0;break}var l=lr(r,0|He.__str168,14),b=D(r,2,t,l),s=b}else{var k=Ar(r),u=dr(r);if(0==(0|u)){var s=0;break}var c=D(r,2,t,k),s=c}}else var s=0;while(0);var s;return s}function mr(r){var a,e=r+12|0,i=0;r:for(;;){var i,v=ge[Se[e>>2]];if(v<<24>>24==0){var t=0;break}var f=(v-48&255&255)<10|(v-97&255&255)<26;do{if(!f){if(v<<24>>24==76||v<<24>>24==68||v<<24>>24==67){a=5;break}if(v<<24>>24==83){var _=V(r,1),s=_;a=10;break}if(v<<24>>24==73){if(0==(0|i)){var t=0;break r}var n=z(r),o=4,l=n;a=11;break}if(v<<24>>24==84){var b=x(r),s=b;a=10;break}if(v<<24>>24==69){var t=i;break r}var t=0;break r}a=5}while(0);do if(5==a){var k=br(r),s=k;a=10;break}while(0);do if(10==a){var s;if(0==(0|i)){var u=s;a=12;break}var o=1,l=s;a=11;break}while(0);if(11==a)var l,o,c=D(r,o,i,l),u=c;var u;if(v<<24>>24!=83)if(Ae[Se[e>>2]]<<24>>24!=69){var h=R(r,u);if(0==(0|h)){var t=0;break}var i=u}else var i=u;else var i=u}var t;return t}function Sr(r,a){var e,i,v=Oe;Oe+=4;var t=v,i=t>>2,e=(r+12|0)>>2,f=Se[e];if(Ae[f]<<24>>24==74){var _=f+1|0;Se[e]=_;var s=1}else var s=a;var s;Se[i]=0;var n=s,o=0,l=t;r:for(;;)for(var l,o,n,b=n,k=o;;){var k,b,u=Ae[Se[e]];if(u<<24>>24==0||u<<24>>24==69){var c=Se[i];if(0==(0|c)){var h=0;break r}var d=0==(0|Se[c+8>>2]);do if(d){var w=Se[c+4>>2];if(33!=(0|Se[w>>2])){var p=c;break}var E=Se[w+4>>2];if(9!=(0|Se[E+16>>2])){var p=c;break}var A=r+48|0,g=Se[A>>2]-Se[E+4>>2]|0;Se[A>>2]=g,Se[i]=0;var p=0}else var p=c;while(0);var p,y=D(r,35,k,p),h=y;break r}var m=N(r);if(0==(0|m)){var h=0;break r}if(0==(0|b)){var S=D(r,38,m,0);if(Se[l>>2]=S,0==(0|S)){var h=0;break r}var n=0,o=k,l=S+8|0;continue r}var b=0,k=m}var h;return Oe=v,h}function Mr(r){for(var a=r;;){var a;if(0==(0|a)){var e=0;break}var i=Se[a>>2];if(1!=(0|i)&&2!=(0|i)){if(6==(0|i)||7==(0|i)||42==(0|i)){var e=1;break}var e=0;break}var a=Se[a+8>>2]}var e;return e}function Cr(r){var a=r>>2;Se[a+3]=0,Se[a+2]=0,Se[a+1]=0,Se[a]=0,Se[a+4]=0}function Rr(r,a){var e,e=(r+12|0)>>2,i=Se[e],v=(Se[r+4>>2]-i|0)<(0|a);r:do if(v)var t=0;else{var f=i+a|0;Se[e]=f;var _=0==(4&Se[r+8>>2]|0);do if(!_){if(Ae[f]<<24>>24!=36)break;var s=a+(i+1)|0;Se[e]=s}while(0);var n=(0|a)>9;do if(n){var o=La(i,0|He.__str117,8);if(0!=(0|o))break;var l=Ae[i+8|0];if(l<<24>>24!=46&&l<<24>>24!=95&&l<<24>>24!=36)break;if(Ae[i+9|0]<<24>>24!=78)break;var b=r+48|0,k=22-a+Se[b>>2]|0;Se[b>>2]=k;var u=lr(r,0|He.__str169,21),t=u;break r}while(0);var c=lr(r,i,a),t=c}while(0);var t;return t}function Tr(r){var a,e,e=(r+48|0)>>2,i=Se[e],v=i+20|0;Se[e]=v;var a=(r+12|0)>>2,t=Se[a],f=t+1|0;Se[a]=f;var _=Ae[t];do if(_<<24>>24==84){var s=t+2|0;Se[a]=s;var n=Ae[f]<<24>>24;if(86==(0|n)){var o=i+15|0;Se[e]=o;var l=N(r),b=D(r,8,l,0),k=b}else if(84==(0|n)){var u=i+10|0;Se[e]=u;var c=N(r),h=D(r,9,c,0),k=h}else if(73==(0|n))var d=N(r),w=D(r,11,d,0),k=w;else if(83==(0|n))var p=N(r),E=D(r,12,p,0),k=E;else if(104==(0|n)){var A=Nr(r,104);if(0==(0|A)){var k=0;break}var g=O(r,0),y=D(r,14,g,0),k=y}else if(118==(0|n)){var m=Nr(r,118);if(0==(0|m)){var k=0;break}var S=O(r,0),M=D(r,15,S,0),k=M}else if(99==(0|n)){var C=Nr(r,0);if(0==(0|C)){var k=0;break}var R=Nr(r,0);if(0==(0|R)){var k=0;break}var T=O(r,0),I=D(r,16,T,0),k=I}else if(67==(0|n)){var P=N(r),L=sr(r);if((0|L)<0){var k=0;break}var F=Se[a],X=F+1|0;if(Se[a]=X,Ae[F]<<24>>24!=95){var k=0;break}var j=N(r),U=Se[e]+5|0;Se[e]=U;var x=D(r,10,j,P),k=x}else if(70==(0|n))var z=N(r),V=D(r,13,z,0),k=V;else{if(74!=(0|n)){var k=0;break}var B=N(r),H=D(r,17,B,0),k=H}}else if(_<<24>>24==71){var K=t+2|0;Se[a]=K;var Y=Ae[f]<<24>>24;if(86==(0|Y))var G=Ar(r),W=D(r,18,G,0),k=W;else if(82==(0|Y))var Z=Ar(r),Q=D(r,19,Z,0),k=Q;else{if(65!=(0|Y)){var k=0;break}var q=O(r,0),$=D(r,20,q,0),k=$}}else var k=0;while(0);var k;return k}function Or(r){for(var a,e=r,a=e>>2;;){var e;if(0==(0|e)){var i=0;break}var v=Se[a];if(4==(0|v)){var t=Se[a+1],f=Mr(t),i=0==(0|f)&1;break}if(25!=(0|v)&&26!=(0|v)&&27!=(0|v)){var i=0;break}var e=Se[a+1],a=e>>2}var i;return i}function Nr(r,a){var e;if(0==(0|a)){var i=r+12|0,v=Se[i>>2],t=v+1|0;Se[i>>2]=t;var f=Ae[v]<<24>>24}else var f=a;var f;do{if(104==(0|f)){var _=(sr(r),r+12|0);e=7;break}if(118==(0|f)){var s=(sr(r),r+12|0),n=Se[s>>2],o=n+1|0;if(Se[s>>2]=o,Ae[n]<<24>>24!=95){var l=0;e=8;break}var _=(sr(r),s);e=7;break}var l=0;e=8}while(0);if(7==e){var _,b=Se[_>>2],k=b+1|0;Se[_>>2]=k;var l=Ae[b]<<24>>24==95&1}var l;return l}function Ir(r){var a,e,i=r>>2,v=Oe;Oe+=56;var t,f=v,_=v+8,s=v+16,n=v+36,e=(0|r)>>2,o=Se[e],l=0==(8192&o|0);r:do{if(l){var a=(r+12|0)>>2,b=Se[a];if(Ae[b]<<24>>24!=63){var k=0;t=111;break}var u=b+1|0;Se[a]=u;var c=Ae[u];do if(c<<24>>24==63){if(Ae[b+2|0]<<24>>24==36){var h=b+3|0;if(Ae[h]<<24>>24!=63){var d=5;t=90;break}Se[a]=h;var w=6,p=h}else var w=0,p=u;var p,w,E=p+1|0;Se[a]=E;var A=Ae[E]<<24>>24;do if(48==(0|A)){var g=1;t=81}else{if(49==(0|A)){var g=2;t=81;break}if(50!=(0|A)){if(51==(0|A)){var y=0|He.__str2172,m=E;t=82;break}if(52==(0|A)){var y=0|He.__str3173,m=E;t=82;break}if(53==(0|A)){var y=0|He.__str4174,m=E;t=82;break}if(54==(0|A)){var y=0|He.__str5175,m=E;t=82;break}if(55==(0|A)){var y=0|He.__str6176,m=E;t=82;break}if(56==(0|A)){var y=0|He.__str7177,m=E;t=82;break}if(57==(0|A)){var y=0|He.__str8178,m=E;t=82;break}if(65==(0|A)){var y=0|He.__str9179,m=E;t=82;break}if(66==(0|A)){Se[a]=p+2|0;var S=0|He.__str10180,M=3;t=88;break}if(67==(0|A)){var y=0|He.__str11181,m=E;t=82;break}if(68==(0|A)){var y=0|He.__str12182,m=E;t=82;break}if(69==(0|A)){var y=0|He.__str13183,m=E;t=82;break}if(70==(0|A)){var y=0|He.__str14184,m=E;t=82;break}if(71==(0|A)){var y=0|He.__str15185,m=E;t=82;break}if(72==(0|A)){var y=0|He.__str16186,m=E;t=82;break}if(73==(0|A)){var y=0|He.__str17187,m=E;t=82;break}if(74==(0|A)){var y=0|He.__str18188,m=E;t=82;break}if(75==(0|A)){var y=0|He.__str19189,m=E;t=82;break}if(76==(0|A)){var y=0|He.__str20190,m=E;t=82;break}if(77==(0|A)){var y=0|He.__str21191,m=E;t=82;break}if(78==(0|A)){var y=0|He.__str22192,m=E;t=82;break}if(79==(0|A)){var y=0|He.__str23193,m=E;t=82;break}if(80==(0|A)){var y=0|He.__str24194,m=E;t=82;break}if(81==(0|A)){var y=0|He.__str25195,m=E;t=82;break}if(82==(0|A)){var y=0|He.__str26196,m=E;t=82;break}if(83==(0|A)){var y=0|He.__str27197,m=E;t=82;break}if(84==(0|A)){var y=0|He.__str28198,m=E;t=82;break}if(85==(0|A)){var y=0|He.__str29199,m=E;t=82;break}if(86==(0|A)){var y=0|He.__str30200,m=E;t=82;break}if(87==(0|A)){var y=0|He.__str31201,m=E;t=82;break}if(88==(0|A)){var y=0|He.__str32202,m=E;t=82;break}if(89==(0|A)){var y=0|He.__str33203,m=E;t=82;break}if(90==(0|A)){var y=0|He.__str34204,m=E;t=82;break}if(95==(0|A)){var C=p+2|0;Se[a]=C;var R=Ae[C]<<24>>24;if(48==(0|R)){var y=0|He.__str35205,m=C;t=82;break}if(49==(0|R)){var y=0|He.__str36206,m=C;t=82;break}if(50==(0|R)){var y=0|He.__str37207,m=C;t=82;break}if(51==(0|R)){var y=0|He.__str38208,m=C;t=82;break}if(52==(0|R)){var y=0|He.__str39209,m=C;t=82;break}if(53==(0|R)){var y=0|He.__str40210,m=C;t=82;break}if(54==(0|R)){var y=0|He.__str41211,m=C;t=82;break}if(55==(0|R)){var y=0|He.__str42212,m=C;t=82;break}if(56==(0|R)){var y=0|He.__str43213,m=C;t=82;break}if(57==(0|R)){var y=0|He.__str44214,m=C;t=82;break}if(65==(0|R)){var y=0|He.__str45215,m=C;t=82;break}if(66==(0|R)){var y=0|He.__str46216,m=C;t=82;break}if(67==(0|R)){Se[a]=p+3|0;var T=0|He.__str47217;t=84;break}if(68==(0|R)){var y=0|He.__str48218,m=C;t=82;break}if(69==(0|R)){var y=0|He.__str49219,m=C;t=82;break}if(70==(0|R)){var y=0|He.__str50220,m=C;t=82;break}if(71==(0|R)){var y=0|He.__str51221,m=C;t=82;break}if(72==(0|R)){var y=0|He.__str52222,m=C;t=82;break}if(73==(0|R)){var y=0|He.__str53223,m=C;t=82;break}if(74==(0|R)){var y=0|He.__str54224,m=C;t=82;break}if(75==(0|R)){var y=0|He.__str55225,m=C;t=82;break}if(76==(0|R)){var y=0|He.__str56226,m=C;t=82;break}if(77==(0|R)){var y=0|He.__str57227,m=C;t=82;break}if(78==(0|R)){var y=0|He.__str58228,m=C;t=82;break}if(79==(0|R)){var y=0|He.__str59229,m=C;t=82;break}if(82==(0|R)){var O=4|o;Se[e]=O;var N=p+3|0;Se[a]=N;var I=Ae[N]<<24>>24;if(48==(0|I)){Se[a]=p+4|0,Cr(s);var P=(Pr(r,_,s,0),Se[_>>2]),D=Se[_+4>>2],L=Dr(r,0|He.__str60230,(ne=Oe,Oe+=8,Se[ne>>2]=P,Se[ne+4>>2]=D,ne)),F=Se[a]-1|0;Se[a]=F;var y=L,m=F;t=82;break}if(49==(0|I)){Se[a]=p+4|0;var X=Lr(r),j=Lr(r),U=Lr(r),x=Lr(r),z=Se[a]-1|0;Se[a]=z;var V=Dr(r,0|He.__str61231,(ne=Oe,Oe+=16,Se[ne>>2]=X,Se[ne+4>>2]=j,Se[ne+8>>2]=U,Se[ne+12>>2]=x,ne)),y=V,m=Se[a];t=82;break}if(50==(0|I)){var y=0|He.__str62232,m=N;t=82;break}if(51==(0|I)){var y=0|He.__str63233,m=N;t=82;break}if(52==(0|I)){var y=0|He.__str64234,m=N;t=82;break}var y=0,m=N;t=82;break}if(83==(0|R)){var y=0|He.__str65235,m=C;t=82;break}if(84==(0|R)){var y=0|He.__str66236,m=C;t=82;break}if(85==(0|R)){var y=0|He.__str67237,m=C;t=82;break}if(86==(0|R)){var y=0|He.__str68238,m=C;t=82;break}if(88==(0|R)){var y=0|He.__str69239,m=C;t=82;break}if(89==(0|R)){var y=0|He.__str70240,m=C;t=82;break}var k=0;t=111;break r}var k=0;t=111;break r}var y=0|He.__str1171,m=E;t=82}while(0);do{if(81==t){var g;Se[a]=p+2|0;var B=g;t=83;break}if(82==t){var m,y;if(Se[a]=m+1|0,1==(0|w)||2==(0|w)){var B=w;t=83;break}if(4==(0|w)){var T=y;t=84;break}if(6!=(0|w)){var S=y,M=w;t=88;break}Cr(n);var H=Xr(r,n,0,60,62);if(0==(0|H))var K=y;else var Y=Dr(r,0|He.__str170,(ne=Oe,Oe+=8,Se[ne>>2]=y,Se[ne+4>>2]=H,ne)),K=Y;var K;Se[i+6]=0;var S=K,M=w;t=88;break}}while(0);if(83==t){var B,G=r+40|0,W=Fr(r,0|He._symbol_demangle_dashed_null,-1,G);if(0==(0|W)){var k=0;t=111;break r}var d=B;t=90;break}if(84==t){var T;Se[i+4]=T;var Z=1,Q=T;t=109;break r}if(88==t){var M,S,q=r+40|0,$=Fr(r,S,-1,q);if(0==(0|$)){var k=0;t=111;break r}var d=M;t=90;break}}else{if(c<<24>>24==36){var J=b+2|0;Se[a]=J;var rr=jr(r);Se[i+4]=rr;var ar=0!=(0|rr)&1;t=107;break}var d=0;t=90}while(0);if(90==t){var d,er=Me[a],ir=Ae[er]<<24>>24;if(64==(0|ir))Se[a]=er+1|0;else if(36==(0|ir))t=93;else{var vr=zr(r);if(0==(0|vr)){var k=-1;t=111;break}}if(5==(0|d)){var tr=r+20|0,fr=Se[tr>>2]+1|0;Se[tr>>2]=fr}else if(1==(0|d)||2==(0|d)){if(Me[i+11]>>>0<2){var k=-1;t=111;break}var _r=r+56|0,sr=Me[_r>>2],nr=Se[sr+4>>2];if(1==(0|d))Se[sr>>2]=nr;else{var or=Dr(r,0|He.__str71241,(ne=Oe,Oe+=4,Se[ne>>2]=nr,ne)),lr=Se[_r>>2];Se[lr>>2]=or}var br=4|Se[e];Se[e]=br}else if(3==(0|d)){var kr=Se[e]&-5;Se[e]=kr}var ur=ge[Se[a]];if((ur-48&255&255)<10)var cr=Vr(r),ar=cr;else if((ur-65&255&255)<26)var hr=Br(r,3==(0|d)&1),ar=hr;else{if(ur<<24>>24!=36){var k=-1;t=111;break}var dr=Hr(r),ar=dr}}var ar;if(0==(0|ar)){var k=-1;t=111;break}var Z=ar,Q=Se[i+4];t=109;break}var wr=Pr(r,f,0,0);if(0==(0|wr)){var k=-1;t=111;break}var pr=Se[f>>2],Er=Se[f+4>>2],Ar=Dr(r,0|He.__str170,(ne=Oe,Oe+=8,Se[ne>>2]=pr,Se[ne+4>>2]=Er,ne));Se[i+4]=Ar;var Z=1,Q=Ar;t=109;break}while(0);do if(109==t){var Q,Z;if(0!=(0|Q)){var k=Z;break}Xa(0|He.__str72242,1499,0|He.___func___symbol_demangle,0|He.__str73243);var k=Z}while(0);var k;return Oe=v,k}function Pr(r,a,e,i){var v,t,f,_=Oe;Oe+=24;var s=_,n=_+4,o=_+8,l=_+16,b=_+20;0==(0|a)&&Xa(0|He.__str72242,829,0|He.___func___demangle_datatype,0|He.__str121291);var f=(a+4|0)>>2;Se[f]=0;var t=(0|a)>>2;Se[t]=0;var v=(r+12|0)>>2,k=Me[v],u=k+1|0;Se[v]=u;var c=Ae[k],h=c<<24>>24;do if(95==(0|h)){Se[v]=k+2|0;var d=Ae[u],w=Zr(d);Se[t]=w}else if(67==(0|h)||68==(0|h)||69==(0|h)||70==(0|h)||71==(0|h)||72==(0|h)||73==(0|h)||74==(0|h)||75==(0|h)||77==(0|h)||78==(0|h)||79==(0|h)||88==(0|h)||90==(0|h)){var p=Qr(c);Se[t]=p}else if(84==(0|h)||85==(0|h)||86==(0|h)||89==(0|h)){var E=qr(r);if(0==(0|E))break;var A=0==(32768&Se[r>>2]|0);do if(A)if(84==(0|h))var g=0|He.__str122292;else if(85==(0|h))var g=0|He.__str123293;else if(86==(0|h))var g=0|He.__str124294;else{if(89!=(0|h)){var g=0;break}var g=0|He.__str125295}else var g=0;while(0);var g,y=Dr(r,0|He.__str170,(ne=Oe,Oe+=8,Se[ne>>2]=g,Se[ne+4>>2]=E,ne));Se[t]=y}else if(63==(0|h))if(0==(0|i))$r(a,r,e,63,0);else{var m=Lr(r);if(0==(0|m))break;var S=Dr(r,0|He.__str126296,(ne=Oe,Oe+=4,Se[ne>>2]=m,ne));Se[t]=S}else if(65==(0|h)||66==(0|h))$r(a,r,e,c,i);else if(81==(0|h)||82==(0|h)||83==(0|h)){var M=0==(0|i)?80:c;$r(a,r,e,M,i)}else if(80==(0|h))if(((Ae[u]<<24>>24)-48|0)>>>0<10){var C=k+2|0;if(Se[v]=C,Ae[u]<<24>>24!=54)break;var R=r+44|0,T=Se[R>>2];Se[v]=k+3|0;var O=Ae[C],N=Se[r>>2]&-17,I=Ur(O,s,n,N);if(0==(0|I))break;var P=Pr(r,o,e,0);if(0==(0|P))break;var D=Xr(r,e,1,40,41);if(0==(0|D))break;Se[R>>2]=T;var L=Se[o>>2],F=Se[o+4>>2],X=Se[s>>2],j=Dr(r,0|He.__str127297,(ne=Oe,Oe+=12,Se[ne>>2]=L,Se[ne+4>>2]=F,Se[ne+8>>2]=X,ne));Se[t]=j;var U=Dr(r,0|He.__str128298,(ne=Oe,Oe+=4,Se[ne>>2]=D,ne));Se[f]=U}else $r(a,r,e,80,i);else if(87==(0|h)){if(Ae[u]<<24>>24!=52)break;Se[v]=k+2|0;var x=qr(r);if(0==(0|x))break;if(0==(32768&Se[r>>2]|0)){var z=Dr(r,0|He.__str129299,(ne=Oe,Oe+=4,Se[ne>>2]=x,ne));Se[t]=z}else Se[t]=x}else if(48==(0|h)||49==(0|h)||50==(0|h)||51==(0|h)||52==(0|h)||53==(0|h)||54==(0|h)||55==(0|h)||56==(0|h)||57==(0|h)){var V=h<<1,B=V-96|0,H=Yr(e,B);Se[t]=H;var K=V-95|0,Y=Yr(e,K);Se[f]=Y}else if(36==(0|h)){var G=k+2|0;Se[v]=G;var W=Ae[u]<<24>>24;if(48==(0|W)){var Z=Lr(r);Se[t]=Z}else if(68==(0|W)){var Q=Lr(r);if(0==(0|Q))break;var q=Dr(r,0|He.__str130300,(ne=Oe,Oe+=4,Se[ne>>2]=Q,ne));Se[t]=q}else if(70==(0|W)){var $=Lr(r);if(0==(0|$))break;var J=Lr(r);if(0==(0|J))break;var rr=Dr(r,0|He.__str131301,(ne=Oe,Oe+=8,Se[ne>>2]=$,Se[ne+4>>2]=J,ne));Se[t]=rr}else if(71==(0|W)){var ar=Lr(r);if(0==(0|ar))break;var er=Lr(r);if(0==(0|er))break;var ir=Lr(r);if(0==(0|ir))break;var vr=Dr(r,0|He.__str132302,(ne=Oe,Oe+=12,Se[ne>>2]=ar,Se[ne+4>>2]=er,Se[ne+8>>2]=ir,ne));Se[t]=vr}else if(81==(0|W)){var tr=Lr(r);if(0==(0|tr))break;var fr=Dr(r,0|He.__str133303,(ne=Oe,Oe+=4,Se[ne>>2]=tr,ne));Se[t]=fr}else{if(36!=(0|W))break;if(Ae[G]<<24>>24!=67)break;Se[v]=k+3|0;var _r=xr(r,l,b);if(0==(0|_r))break;var sr=Pr(r,a,e,i);if(0==(0|sr))break;var nr=Se[t],or=Se[l>>2],lr=Dr(r,0|He.__str83253,(ne=Oe,Oe+=8,Se[ne>>2]=nr,Se[ne+4>>2]=or,ne));Se[t]=lr}}while(0);var br=0!=(0|Se[t])&1;return Oe=_,br}function Dr(r,a){var e,i=Oe;Oe+=4;var v=i,e=v>>2,t=v;Se[t>>2]=arguments[Dr.length];var f=1,_=0;r:for(;;){var _,f,s=Ae[a+_|0];do{if(s<<24>>24==0)break r;if(s<<24>>24==37){var n=_+1|0,o=Ae[a+n|0]<<24>>24;if(115==(0|o)){var l=Se[e],b=l,k=l+4|0;Se[e]=k;var u=Se[b>>2];if(0==(0|u)){var c=f,h=n;break}var d=Ca(u),c=d+f|0,h=n;break}if(99==(0|o)){var w=Se[e]+4|0;Se[e]=w;var c=f+1|0,h=n;break}if(37==(0|o))var p=n;else var p=_;var p,c=f+1|0,h=p}else var c=f+1|0,h=_}while(0);var h,c,f=c,_=h+1|0}var E=Wr(r,f);if(0==(0|E))var A=0;else{Se[t>>2]=arguments[Dr.length];var g=E,y=0;r:for(;;){var y,g,m=Ae[a+y|0];do{if(m<<24>>24==0)break r;if(m<<24>>24==37){var S=y+1|0,M=Ae[a+S|0]<<24>>24;if(115==(0|M)){var C=Se[e],R=C,T=C+4|0;Se[e]=T;var O=Se[R>>2];if(0==(0|O)){var N=g,I=S;break}var P=Ca(O);Pa(g,O,P,1);var N=g+P|0,I=S;break}if(99==(0|M)){var D=Se[e],L=D,F=D+4|0;Se[e]=F,Ae[g]=255&Se[L>>2];var N=g+1|0,I=S;break}if(37==(0|M))var X=S;else var X=y;var X;Ae[g]=37;var N=g+1|0,I=X}else{Ae[g]=m;var N=g+1|0,I=y}}while(0);var I,N,g=N,y=I+1|0}Ae[g]=0;var A=E}var A;return Oe=i,A}function Lr(r){var a,a=(r+12|0)>>2,e=Se[a],i=Ae[e];if(i<<24>>24==63){var v=e+1|0;Se[a]=v;var t=1,f=v,_=Ae[v]}else var t=0,f=e,_=i;var _,f,t,s=(_-48&255&255)<9;do if(s){var n=Wr(r,3),o=0!=(0|t);o&&(Ae[n]=45);var l=Ae[Se[a]]+1&255;Ae[n+t|0]=l;var b=o?2:1;\nAe[n+b|0]=0;var k=Se[a]+1|0;Se[a]=k;var u=n}else if(_<<24>>24==57){var c=Wr(r,4),h=0!=(0|t);h&&(Ae[c]=45),Ae[c+t|0]=49;var d=h?2:1;Ae[c+d|0]=48;var w=h?3:2;Ae[c+w|0]=0;var p=Se[a]+1|0;Se[a]=p;var u=c}else{if((_-65&255&255)>=16){var u=0;break}for(var E=0,A=f;;){var A,E,g=A+1|0;Se[a]=g;var y=(Ae[A]<<24>>24)+((E<<4)-65)|0,m=ge[g];if((m-65&255&255)>=16)break;var E=y,A=g}if(m<<24>>24!=64){var u=0;break}var S=Wr(r,17),M=0!=(0|t)?0|He.__str119289:0|ii,C=(za(S,0|He.__str118288,(ne=Oe,Oe+=8,Se[ne>>2]=M,Se[ne+4>>2]=y,ne)),Se[a]+1|0);Se[a]=C;var u=S}while(0);var u;return u}function Fr(r,a,e,i){var v,t,f,_;0==(0|a)&&Xa(0|He.__str72242,212,0|He.___func___str_array_push,0|He.__str115285),0==(0|i)&&Xa(0|He.__str72242,213,0|He.___func___str_array_push,0|He.__str116286);var f=(i+12|0)>>2,s=Me[f],n=0==(0|s);do{if(n){Se[f]=32;var o=Wr(r,128);if(0==(0|o)){var l=0;_=17;break}Se[i+16>>2]=o,_=11;break}if(Me[i+8>>2]>>>0>>0){_=11;break}var b=s<<3,k=Wr(r,b);if(0==(0|k)){var l=0;_=17;break}var u=k,c=i+16|0,h=Se[c>>2],d=Se[f]<<2;Pa(k,h,d,1);var w=Se[f]<<1;Se[f]=w,Se[c>>2]=u,_=11;break}while(0);do if(11==_){if((0|e)==-1)var p=Ca(a),E=p;else var E=e;var E,A=ja(a),g=E+1|0,y=Wr(r,g),t=(i+4|0)>>2,v=(i+16|0)>>2,m=(Se[t]<<2)+Se[v]|0;Se[m>>2]=y;var S=Se[Se[v]+(Se[t]<<2)>>2];if(0==(0|S)){Xa(0|He.__str72242,233,0|He.___func___str_array_push,0|He.__str117287);var M=Se[Se[v]+(Se[t]<<2)>>2]}else var M=S;var M;Pa(M,A,E,1),va(A),Ae[Se[Se[v]+(Se[t]<<2)>>2]+g|0]=0;var C=Se[t]+1|0;Se[t]=C;var R=i+8|0;if(C>>>0>2]>>>0){var l=1;break}Se[R>>2]=C;var l=1}while(0);var l;return l}function Xr(r,a,e,i,v){var t,f,_=Oe;Oe+=28;var s,n=_,o=_+8;Cr(o);var f=(r+12|0)>>2,l=0==(0|e),t=(0|n)>>2,b=n+4|0;r:do if(l)for(;;){var k=Se[f],u=Ae[k];if(u<<24>>24==0){s=12;break r}if(u<<24>>24==64){var c=k;s=7;break r}var h=Pr(r,n,a,1);if(0==(0|h)){var d=0;s=25;break r}var w=Se[t],p=Se[b>>2],E=Dr(r,0|He.__str170,(ne=Oe,Oe+=8,Se[ne>>2]=w,Se[ne+4>>2]=p,ne)),A=Fr(r,E,-1,o);if(0==(0|A)){var d=0;s=25;break r}var g=Se[t],y=Da(g,0|He.__str110280);if(0==(0|y)){s=12;break r}}else for(;;){var m=Se[f],S=Ae[m];if(S<<24>>24==0){s=12;break r}if(S<<24>>24==64){var c=m;s=7;break r}var M=Pr(r,n,a,1);if(0==(0|M)){var d=0;s=25;break r}var C=Se[t],R=Da(C,0|He.__str84254);if(0==(0|R)){s=13;break r}var T=Se[b>>2],O=Dr(r,0|He.__str170,(ne=Oe,Oe+=8,Se[ne>>2]=C,Se[ne+4>>2]=T,ne)),N=Fr(r,O,-1,o);if(0==(0|N)){var d=0;s=25;break r}var I=Se[t],P=Da(I,0|He.__str110280);if(0==(0|P)){s=12;break r}}while(0);do if(7==s){var c;Se[f]=c+1|0,s=12;break}while(0);do if(12==s){if(l){s=14;break}s=13;break}while(0);do if(13==s){var D=Se[f],L=D+1|0;if(Se[f]=L,Ae[D]<<24>>24==90){s=14;break}var d=0;s=25;break}while(0);r:do if(14==s){var F=o+4|0,X=Me[F>>2];do{if(0!=(0|X)){if(1==(0|X)){var j=o+16|0,U=Se[Se[j>>2]>>2],x=Da(U,0|He.__str84254);if(0==(0|x)){s=17;break}var z=j;s=20;break}var V=o+16|0;if(X>>>0<=1){var z=V;s=20;break}for(var B=0,H=1;;){var H,B,K=Se[Se[V>>2]+(H<<2)>>2],Y=Dr(r,0|He.__str112282,(ne=Oe,Oe+=8,Se[ne>>2]=B,Se[ne+4>>2]=K,ne)),G=H+1|0;if(G>>>0>=Me[F>>2]>>>0)break;var B=Y,H=G}if(0==(0|Y)){var z=V;s=20;break}var W=Y,Z=Y;s=21;break}s=17}while(0);if(17==s){var Q=i<<24>>24,q=v<<24>>24,$=Dr(r,0|He.__str111281,(ne=Oe,Oe+=8,Se[ne>>2]=Q,Se[ne+4>>2]=q,ne)),d=$;break}if(20==s)var z,W=Se[Se[z>>2]>>2],Z=0;var Z,W,J=v<<24>>24,rr=v<<24>>24==62;do if(rr){var ar=Ca(W);if(Ae[W+(ar-1)|0]<<24>>24!=62)break;var er=i<<24>>24,ir=Se[Se[o+16>>2]>>2],vr=Dr(r,0|He.__str113283,(ne=Oe,Oe+=16,Se[ne>>2]=er,Se[ne+4>>2]=ir,Se[ne+8>>2]=Z,Se[ne+12>>2]=J,ne)),d=vr;break r}while(0);var tr=i<<24>>24,fr=Se[Se[o+16>>2]>>2],_r=Dr(r,0|He.__str114284,(ne=Oe,Oe+=16,Se[ne>>2]=tr,Se[ne+4>>2]=fr,Se[ne+8>>2]=Z,Se[ne+12>>2]=J,ne)),d=_r}while(0);var d;return Oe=_,d}function jr(r){var a,e=Oe;Oe+=20;var i=e,v=r+24|0,t=Se[v>>2],a=(r+20|0)>>2,f=Se[a],_=r+44|0,s=Se[_>>2];Se[a]=t;var n=Kr(r);if(0==(0|n))var o=0;else{Cr(i);var l=Xr(r,i,0,60,62);if(0==(0|l))var b=n;else var k=Dr(r,0|He.__str170,(ne=Oe,Oe+=8,Se[ne>>2]=n,Se[ne+4>>2]=l,ne)),b=k;var b;Se[v>>2]=t,Se[a]=f,Se[_>>2]=s;var o=b}var o;return Oe=e,o}function Ur(r,a,e,i){var v,t=a>>2;Se[e>>2]=0,Se[t]=0;var f=0==(18&i|0);do{if(f){var _=r<<24>>24,s=1==((_-65)%2|0);if(0==(1&i|0)){if(s?Se[e>>2]=0|He.__str95265:v=14,65==(0|_)||66==(0|_)){Se[t]=0|He.__str96266,v=21;break}if(67==(0|_)||68==(0|_)){Se[t]=0|He.__str97267,v=21;break}if(69==(0|_)||70==(0|_)){Se[t]=0|He.__str98268,v=21;break}if(71==(0|_)||72==(0|_)){Se[t]=0|He.__str99269,v=21;break}if(73==(0|_)||74==(0|_)){Se[t]=0|He.__str100270,v=21;break}if(75==(0|_)||76==(0|_)){v=21;break}if(77==(0|_)){Se[t]=0|He.__str101271,v=21;break}var n=0;v=22;break}if(s?Se[e>>2]=0|He.__str88258:v=5,65==(0|_)||66==(0|_)){Se[t]=0|He.__str89259,v=21;break}if(67==(0|_)||68==(0|_)){Se[t]=0|He.__str90260,v=21;break}if(69==(0|_)||70==(0|_)){Se[t]=0|He.__str91261,v=21;break}if(71==(0|_)||72==(0|_)){Se[t]=0|He.__str92262,v=21;break}if(73==(0|_)||74==(0|_)){Se[t]=0|He.__str93263,v=21;break}if(75==(0|_)||76==(0|_)){v=21;break}if(77==(0|_)){Se[t]=0|He.__str94264,v=21;break}var n=0;v=22;break}v=21}while(0);if(21==v)var n=1;var n;return n}function xr(r,a,e){var i;Se[e>>2]=0;var i=(r+12|0)>>2,v=Se[i];if(Ae[v]<<24>>24==69){Se[e>>2]=0|He.__str102272;var t=Se[i]+1|0;Se[i]=t;var f=t}else var f=v;var f;Se[i]=f+1|0;var _=Ae[f]<<24>>24;if(65==(0|_)){Se[a>>2]=0;var s=1}else if(66==(0|_)){Se[a>>2]=0|He.__str103273;var s=1}else if(67==(0|_)){Se[a>>2]=0|He.__str104274;var s=1}else if(68==(0|_)){Se[a>>2]=0|He.__str105275;var s=1}else var s=0;var s;return s}function zr(r){var a,e,a=(r+12|0)>>2,i=r+40|0,v=r+20|0,t=0|i,f=r+44|0,_=r+48|0,s=r+52|0,n=r+56|0,o=r+20|0,l=r+24|0,b=r+16|0,k=0;r:for(;;){var k,u=Se[a],c=Ae[u];if(c<<24>>24==64){var h=u+1|0;Se[a]=h;var d=1;break}var w=c<<24>>24;do{if(0==(0|w)){var d=0;break r}if(48==(0|w)||49==(0|w)||50==(0|w)||51==(0|w)||52==(0|w)||53==(0|w)||54==(0|w)||55==(0|w)||56==(0|w)||57==(0|w)){var p=u+1|0;Se[a]=p;var E=(Ae[u]<<24>>24)-48|0,A=Yr(v,E),g=A;e=14;break}if(63==(0|w)){var y=u+1|0;Se[a]=y;var m=Ae[y]<<24>>24;if(36==(0|m)){var S=u+2|0;Se[a]=S;var M=jr(r);if(0==(0|M)){var d=0;break r}var C=Fr(r,M,-1,v);if(0==(0|C)){var d=0;break r}var R=M;e=15;break}if(63==(0|m)){var T=Se[t>>2],O=Se[f>>2],N=Se[_>>2],I=Se[s>>2],P=Se[n>>2],D=Se[o>>2],L=Se[l>>2];Cr(i);var F=Ir(r);if(0==(0|F))var X=k;else var j=Se[b>>2],U=Dr(r,0|He.__str109279,(ne=Oe,Oe+=4,Se[ne>>2]=j,ne)),X=U;var X;Se[o>>2]=D,Se[l>>2]=L,Se[t>>2]=T,Se[f>>2]=O,Se[_>>2]=N,Se[s>>2]=I,Se[n>>2]=P;var g=X;e=14;break}var x=Lr(r);if(0==(0|x)){var d=0;break r}var z=Dr(r,0|He.__str109279,(ne=Oe,Oe+=4,Se[ne>>2]=x,ne)),g=z;e=14;break}var V=Kr(r),g=V;e=14;break}while(0);if(14==e){var g;if(0==(0|g)){var d=0;break}var R=g}var R,B=Fr(r,R,-1,i);if(0==(0|B)){var d=0;break}var k=R}var d;return d}function Vr(r){var a,e,i,v=Oe;Oe+=36;var t,f=v,i=f>>2,_=v+4,s=v+8,e=s>>2,n=v+16;Se[i]=0;var o=0|r,l=Se[o>>2],b=0==(128&l|0),k=r+12|0;do if(b){var u=Ae[Se[k>>2]]<<24>>24;if(48==(0|u))var c=0|He.__str76246,h=k,a=h>>2;else if(49==(0|u))var c=0|He.__str77247,h=k,a=h>>2;else{if(50!=(0|u)){var c=0,h=k,a=h>>2;break}var c=0|He.__str78248,h=k,a=h>>2}}else var c=0,h=k,a=h>>2;while(0);var h,c,d=0==(512&l|0);do if(d){if((Ae[Se[a]]-48&255&255)>=3){var w=0;break}var w=0|He.__str79249}else var w=0;while(0);var w,p=Gr(r,0),E=Se[a],A=E+1|0;Se[a]=A;var g=Ae[E]<<24>>24;do{if(48==(0|g)||49==(0|g)||50==(0|g)||51==(0|g)||52==(0|g)||53==(0|g)){var y=r+44|0,m=Se[y>>2];Cr(n);var S=Pr(r,s,n,0);if(0==(0|S)){var M=0;t=28;break}var C=xr(r,f,_);if(0==(0|C)){var M=0;t=28;break}var R=Se[i],T=0==(0|R),O=Se[_>>2];do if(T)Se[i]=O;else{if(0==(0|O))break;var N=Dr(r,0|He.__str83253,(ne=Oe,Oe+=8,Se[ne>>2]=R,Se[ne+4>>2]=O,ne));Se[i]=N}while(0);Se[y>>2]=m,t=22;break}if(54==(0|g)||55==(0|g)){var I=s+4|0;Se[I>>2]=0,Se[e]=0;var P=xr(r,f,_);if(0==(0|P)){var M=0;t=28;break}if(Ae[Se[a]]<<24>>24==64){t=22;break}var D=qr(r);if(0==(0|D)){var M=0;t=28;break}var L=Dr(r,0|He.__str107277,(ne=Oe,Oe+=4,Se[ne>>2]=D,ne));Se[I>>2]=L,t=22;break}if(56==(0|g)||57==(0|g)){Se[e+1]=0,Se[e]=0,Se[i]=0,t=22;break}var M=0;t=28}while(0);if(22==t){var F=0==(4096&Se[o>>2]|0);do{if(F){var X=Se[e],j=Se[i];if(0==(0|j)){var U=X;t=26;break}var x=0!=(0|X)?0|He.__str87257:0,z=0|He.__str87257,V=j,B=x,H=X;t=27;break}Se[i]=0,Se[e+1]=0,Se[e]=0;var U=0;t=26;break}while(0);if(26==t)var U,K=0!=(0|U)?0|He.__str87257:0,z=K,V=0,B=0,H=U;var H,B,V,z,Y=Se[e+1],G=Dr(r,0|He.__str108278,(ne=Oe,Oe+=32,Se[ne>>2]=c,Se[ne+4>>2]=w,Se[ne+8>>2]=H,Se[ne+12>>2]=B,Se[ne+16>>2]=V,Se[ne+20>>2]=z,Se[ne+24>>2]=p,Se[ne+28>>2]=Y,ne));Se[r+16>>2]=G;var M=1}var M;return Oe=v,M}function Br(r,a){var e,i,v,t,f=Oe;Oe+=44;var _,s=f,t=s>>2,n=f+8,o=f+12,v=o>>2,l=f+16,b=f+20,k=f+40;Se[v]=0;var i=(r+12|0)>>2,u=Se[i],c=u+1|0;Se[i]=c;var h=ge[u],d=h<<24>>24,w=(h-65&255&255)>25;r:do if(w)var p=0;else{var e=(0|r)>>2,E=Me[e],A=0==(128&E|0),g=d-65|0;do if(A){var y=g/8|0;if(0==(0|y))var m=0|He.__str76246,S=g;else if(1==(0|y))var m=0|He.__str77247,S=g;else{if(2!=(0|y)){var m=0,S=g;break}var m=0|He.__str78248,S=g}}else var m=0,S=g;while(0);var S,m,M=0==(512&E|0)&h<<24>>24<89,C=(0|S)%8;do if(M)if(2==(0|C)||3==(0|C))var R=m,T=0|He.__str79249;else if(4==(0|C)||5==(0|C))var R=m,T=0|He.__str80250;else{if(6!=(0|C)&&7!=(0|C)){var R=m,T=0;break}var O=Dr(r,0|He.__str81251,(ne=Oe,Oe+=4,Se[ne>>2]=m,ne)),R=O,T=0|He.__str80250}else var R=m,T=0;while(0);var T,R,N=Gr(r,0),I=6==(0|C);do{if(!I){if(7==((d-56)%8|0)){_=14;break}var P=N;_=15;break}_=14}while(0);if(14==_)var D=Lr(r),L=Dr(r,0|He.__str82252,(ne=Oe,Oe+=8,Se[ne>>2]=N,Se[ne+4>>2]=D,ne)),P=L;var P,F=h<<24>>24>88;do if(F)var X=0;else{if((C-2|0)>>>0<2){var X=0;break}var j=xr(r,o,k);if(0==(0|j)){var p=0;break r}var U=Me[v],x=Se[k>>2];if(0==(0|U)&0==(0|x)){var X=0;break}var z=Dr(r,0|He.__str83253,(ne=Oe,Oe+=8,Se[ne>>2]=U,Se[ne+4>>2]=x,ne));Se[v]=z;var X=z}while(0);var X,V=Se[i],B=V+1|0;Se[i]=B;var H=Ae[V],K=Se[e],Y=Ur(H,n,l,K);if(0==(0|Y)){var p=0;break}Cr(b);var G=Se[i];if(Ae[G]<<24>>24==64){Se[t]=0|He.__str84254,Se[t+1]=0;var W=G+1|0;Se[i]=W}else{var Z=Pr(r,s,b,0);if(0==(0|Z)){var p=0;break}}if(0!=(4&Se[e]|0)&&(Se[t+1]=0,Se[t]=0),0==(0|a))var Q=P;else{var q=0|s,$=Se[q>>2],J=s+4|0,rr=Se[J>>2],ar=Dr(r,0|He.__str85255,(ne=Oe,Oe+=12,Se[ne>>2]=P,Se[ne+4>>2]=$,Se[ne+8>>2]=rr,ne));Se[J>>2]=0,Se[q>>2]=0;var Q=ar}var Q,er=r+44|0,ir=Se[er>>2],vr=Xr(r,b,1,40,41);if(0==(0|vr)){var p=0;break}if(0==(4096&Se[e]|0))var tr=vr,fr=X;else{Se[v]=0;var tr=0,fr=0}var fr,tr;Se[er>>2]=ir;var _r=Se[t],sr=Se[t+1];if(0==(0|_r))var nr=0;else var or=0!=(0|sr)?0:0|He.__str87257,nr=or;var nr,lr=Se[n>>2],br=0!=(0|lr)?0|He.__str87257:0,kr=Se[l>>2],ur=Dr(r,0|He.__str86256,(ne=Oe,Oe+=44,Se[ne>>2]=R,Se[ne+4>>2]=T,Se[ne+8>>2]=_r,Se[ne+12>>2]=nr,Se[ne+16>>2]=lr,Se[ne+20>>2]=br,Se[ne+24>>2]=kr,Se[ne+28>>2]=Q,Se[ne+32>>2]=tr,Se[ne+36>>2]=fr,Se[ne+40>>2]=sr,ne));Se[r+16>>2]=ur;var p=1}while(0);var p;return Oe=f,p}function Hr(r){var a,a=(r+12|0)>>2,e=Se[a];if(Ae[e]<<24>>24==36)var i=e;else{Xa(0|He.__str72242,1252,0|He.___func___handle_template,0|He.__str74244);var i=Se[a]}var i;Se[a]=i+1|0;var v=Kr(r),t=0==(0|v);do if(t)var f=0;else{var _=Xr(r,0,0,60,62);if(0==(0|_)){var f=0;break}var s=Dr(r,0|He.__str170,(ne=Oe,Oe+=8,Se[ne>>2]=v,Se[ne+4>>2]=_,ne));Se[r+16>>2]=s;var f=1}while(0);var f;return f}function Kr(r){for(var a,a=(r+12|0)>>2,e=Me[a],i=e,v=Ae[e];;){var v,i;if(!((v-65&255&255)<26|(v-97&255&255)<26|(v-48&255&255)<10)&&v<<24>>24!=95&&v<<24>>24!=36){var t=0;break}var f=i+1|0;Se[a]=f;var _=ge[f];if(_<<24>>24==64){Se[a]=i+2|0;var s=f-e|0,n=r+20|0,o=Fr(r,e,s,n);if(0==(0|o)){var t=0;break}var l=Se[r+24>>2]-1-Se[n>>2]|0,b=Yr(n,l),t=b;break}var i=f,v=_}var t;return t}function Yr(r,a){0==(0|r)&&Xa(0|He.__str72242,263,0|He.___func___str_array_get_ref,0|He.__str75245);var e=Se[r>>2]+a|0;if(e>>>0>2]>>>0)var i=Se[Se[r+16>>2]+(e<<2)>>2];else var i=0;var i;return i}function Gr(r,a){var e,e=(r+44|0)>>2,i=Me[e];if(i>>>0>a>>>0){for(var v=r+56|0,t=a,f=0,_=Se[v>>2],s=i;;){var s,_,f,t,n=Me[_+(t<<2)>>2];if(0==(0|n)){Xa(0|He.__str72242,680,0|He.___func___get_class_string,0|He.__str106276);var o=Se[v>>2],l=o,b=Se[o+(t<<2)>>2],k=Se[e]}else var l=_,b=n,k=s;var k,b,l,u=Ca(b),c=u+(f+2)|0,h=t+1|0;if(h>>>0>=k>>>0)break;var t=h,f=c,_=l,s=k}var d=c-1|0}else var d=-1;var d,w=Wr(r,d);if(0==(0|w))var p=0;else{var E=Se[e]-1|0,A=(0|E)<(0|a);r:do if(A)var g=0;else for(var y=r+56|0,m=0,S=E;;){var S,m,M=Se[Se[y>>2]+(S<<2)>>2],C=Ca(M),R=w+m|0;Pa(R,M,C,1);var T=C+m|0;if((0|S)>(0|a)){var O=T+1|0;Ae[w+T|0]=58;var N=T+2|0;Ae[w+O|0]=58;var I=N}else var I=T;var I,P=S-1|0;if((0|P)<(0|a)){var g=I;break r}var m=I,S=P}while(0);var g;Ae[w+g|0]=0;var p=w}var p;return p}function Wr(r,a){var e,i=a>>>0>1020;do if(i){var v=Se[r+4>>2],t=a+4|0,f=pe[v](t);if(0==(0|f)){var _=0;break}var s=r+60|0,n=Se[s>>2],o=f;Se[o>>2]=n,Se[s>>2]=f,Se[r+64>>2]=0;var _=f+4|0}else{var e=(r+64|0)>>2,l=Me[e];if(l>>>0>>0){var b=Se[r+4>>2],k=pe[b](1024);if(0==(0|k)){var _=0;break}var u=r+60|0,c=Se[u>>2],h=k;Se[h>>2]=c,Se[u>>2]=k,Se[e]=1020;var d=1020,w=k}else var d=l,w=Se[r+60>>2];var w,d;Se[e]=d-a|0;var _=w+(1024-d)|0}while(0);var _;return _}function Zr(r){var a=r<<24>>24;if(68==(0|a))var e=0|He.__str157327;else if(69==(0|a))var e=0|He.__str158328;else if(70==(0|a))var e=0|He.__str159329;else if(71==(0|a))var e=0|He.__str160330;else if(72==(0|a))var e=0|He.__str161331;else if(73==(0|a))var e=0|He.__str162332;else if(74==(0|a))var e=0|He.__str163333;else if(75==(0|a))var e=0|He.__str164334;else if(76==(0|a))var e=0|He.__str165335;else if(77==(0|a))var e=0|He.__str166336;else if(78==(0|a))var e=0|He.__str167337;else if(87==(0|a))var e=0|He.__str168338;else var e=0;var e;return e}function Qr(r){var a=r<<24>>24;if(67==(0|a))var e=0|He.__str145315;else if(68==(0|a))var e=0|He.__str146316;else if(69==(0|a))var e=0|He.__str147317;else if(70==(0|a))var e=0|He.__str148318;else if(71==(0|a))var e=0|He.__str149319;else if(72==(0|a))var e=0|He.__str150320;else if(73==(0|a))var e=0|He.__str151321;else if(74==(0|a))var e=0|He.__str152322;else if(75==(0|a))var e=0|He.__str153323;else if(77==(0|a))var e=0|He.__str154324;else if(78==(0|a))var e=0|He.__str155325;else if(79==(0|a))var e=0|He.__str156326;else if(88==(0|a))var e=0|He.__str84254;else if(90==(0|a))var e=0|He.__str110280;else var e=0;var e;return e}function qr(r){var a=r+44|0,e=Se[a>>2],i=zr(r);if(0==(0|i))var v=0;else var t=Gr(r,e),v=t;var v;return Se[a>>2]=e,v}function $r(r,a,e,i,v){var t,f,_,s=Oe;Oe+=16;var n,o=s,_=o>>2,l=s+4,b=s+8,f=b>>2;Se[l>>2]=0|ii;var t=(a+12|0)>>2,k=Se[t];if(Ae[k]<<24>>24==69){Se[l>>2]=0|He.__str134304;var u=k+1|0;Se[t]=u;var c=0|He.__str134304}else var c=0|ii;var c,h=i<<24>>24;do{if(65==(0|h)){var d=Dr(a,0|He.__str135305,(ne=Oe,Oe+=4,Se[ne>>2]=c,ne)),w=d;n=10;break}if(66==(0|h)){var p=Dr(a,0|He.__str136306,(ne=Oe,Oe+=4,Se[ne>>2]=c,ne)),w=p;n=10;break}if(80==(0|h)){var E=Dr(a,0|He.__str137307,(ne=Oe,Oe+=4,Se[ne>>2]=c,ne)),w=E;n=10;break}if(81==(0|h)){var A=Dr(a,0|He.__str138308,(ne=Oe,Oe+=4,Se[ne>>2]=c,ne)),w=A;n=10;break}if(82==(0|h)){var g=Dr(a,0|He.__str139309,(ne=Oe,Oe+=4,Se[ne>>2]=c,ne)),w=g;n=10;break}if(83==(0|h)){var y=Dr(a,0|He.__str140310,(ne=Oe,Oe+=4,Se[ne>>2]=c,ne)),w=y;n=10;break}if(63==(0|h)){var w=0|ii;n=10}else n=31}while(0);r:do if(10==n){var w,m=xr(a,o,l);if(0==(0|m))break;var S=a+44|0,M=Se[S>>2],C=Se[t],R=Ae[C]<<24>>24==89;a:do if(R){var T=C+1|0;Se[t]=T;var O=Lr(a);if(0==(0|O))break r;var N=Ha(O),I=Ae[w]<<24>>24==32,P=Se[_],D=0==(0|P);do{if(I){if(!D){n=17;break}var L=w+1|0;n=18;break}if(D){var L=w;n=18;break}n=17;break}while(0);if(17==n){var F=Dr(a,0|He.__str141311,(ne=Oe,Oe+=8,Se[ne>>2]=P,Se[ne+4>>2]=w,ne));Se[_]=0;var X=F}else if(18==n)var L,j=Dr(a,0|He.__str142312,(ne=Oe,Oe+=4,Se[ne>>2]=L,ne)),X=j;var X;if(0==(0|N)){var U=X;break}for(var x=X,z=N;;){var z,x,V=z-1|0,B=Lr(a),H=Dr(a,0|He.__str143313,(ne=Oe,Oe+=8,Se[ne>>2]=x,Se[ne+4>>2]=B,ne));if(0==(0|V)){var U=H;break a}var x=H,z=V}}else var U=w;while(0);var U,K=Pr(a,b,e,0);if(0==(0|K))break;var Y=Se[_];if(0==(0|Y)){var G=0==(0|v);do if(G){if(Ae[U]<<24>>24==0){var W=U;break}var Z=U+1|0;if(Ae[Z]<<24>>24!=42){var W=U;break}var Q=Se[f],q=Ca(Q);if(Ae[Q+(q-1)|0]<<24>>24!=42){var W=U;break}var W=Z}else var W=U;while(0);var W,$=Se[f],J=Dr(a,0|He.__str170,(ne=Oe,Oe+=8,Se[ne>>2]=$,Se[ne+4>>2]=W,ne));Se[r>>2]=J}else{var rr=Se[f],ar=Dr(a,0|He.__str144314,(ne=Oe,Oe+=12,Se[ne>>2]=rr,Se[ne+4>>2]=Y,Se[ne+8>>2]=U,ne));Se[r>>2]=ar}var er=Se[f+1];Se[r+4>>2]=er,Se[S>>2]=M}while(0);Oe=s}function Jr(r){var a,e=r>>>0<245;do{if(e){if(r>>>0<11)var i=16;else var i=r+11&-8;var i,v=i>>>3,t=Me[vi>>2],f=t>>>(v>>>0);if(0!=(3&f|0)){var _=(1&f^1)+v|0,s=_<<1,n=(s<<2)+vi+40|0,o=(s+2<<2)+vi+40|0,l=Me[o>>2],b=l+8|0,k=Me[b>>2];if((0|n)==(0|k))Se[vi>>2]=t&(1<<_^-1);else{if(k>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[o>>2]=k,Se[k+12>>2]=n}var u=_<<3;Se[l+4>>2]=3|u;var c=l+(4|u)|0,h=1|Se[c>>2];Se[c>>2]=h;var d=b;a=38;break}if(i>>>0<=Me[vi+8>>2]>>>0){var w=i;a=30;break}if(0!=(0|f)){var p=2<>>12&16,y=A>>>(g>>>0),m=y>>>5&8,S=y>>>(m>>>0),M=S>>>2&4,C=S>>>(M>>>0),R=C>>>1&2,T=C>>>(R>>>0),O=T>>>1&1,N=(m|g|M|R|O)+(T>>>(O>>>0))|0,I=N<<1,P=(I<<2)+vi+40|0,D=(I+2<<2)+vi+40|0,L=Me[D>>2],F=L+8|0,X=Me[F>>2];if((0|P)==(0|X))Se[vi>>2]=t&(1<>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[D>>2]=X,Se[X+12>>2]=P}var j=N<<3,U=j-i|0;Se[L+4>>2]=3|i;var x=L,z=x+i|0;Se[x+(4|i)>>2]=1|U,Se[x+j>>2]=U;var V=Me[vi+8>>2];if(0!=(0|V)){var B=Se[vi+20>>2],H=V>>>2&1073741822,K=(H<<2)+vi+40|0,Y=Me[vi>>2],G=1<<(V>>>3),W=0==(Y&G|0);do{if(!W){var Z=(H+2<<2)+vi+40|0,Q=Me[Z>>2];if(Q>>>0>=Me[vi+16>>2]>>>0){var q=Q,$=Z;break}throw Ka(),"Reached an unreachable!"}Se[vi>>2]=Y|G;var q=K,$=(H+2<<2)+vi+40|0}while(0);var $,q;Se[$>>2]=B,Se[q+12>>2]=B;var J=B+8|0;Se[J>>2]=q;var rr=B+12|0;Se[rr>>2]=K}Se[vi+8>>2]=U,Se[vi+20>>2]=z;var d=F;a=38;break}if(0==(0|Se[vi+4>>2])){var w=i;a=30;break}var ar=ra(i);if(0==(0|ar)){var w=i;a=30;break}var d=ar;a=38;break}if(r>>>0>4294967231){var w=-1;a=30;break}var er=r+11&-8;if(0==(0|Se[vi+4>>2])){var w=er;a=30;break}var ir=ea(er);if(0==(0|ir)){var w=er;a=30;break}var d=ir;a=38;break}while(0);if(30==a){var w,vr=Me[vi+8>>2];if(w>>>0>vr>>>0){var tr=Me[vi+12>>2];if(w>>>0>>0){var fr=tr-w|0;Se[vi+12>>2]=fr;var _r=Me[vi+24>>2],sr=_r;Se[vi+24>>2]=sr+w|0,Se[w+(sr+4)>>2]=1|fr,Se[_r+4>>2]=3|w;var d=_r+8|0}else var nr=aa(w),d=nr}else{var or=vr-w|0,lr=Me[vi+20>>2];if(or>>>0>15){var br=lr;Se[vi+20>>2]=br+w|0,Se[vi+8>>2]=or,Se[w+(br+4)>>2]=1|or,Se[br+vr>>2]=or,Se[lr+4>>2]=3|w}else{Se[vi+8>>2]=0,Se[vi+20>>2]=0,Se[lr+4>>2]=3|vr;var kr=vr+(lr+4)|0,ur=1|Se[kr>>2];Se[kr>>2]=ur}var d=lr+8|0}}var d;return d}function ra(r){var a,e,i,v=Se[vi+4>>2],t=(v&-v)-1|0,f=t>>>12&16,_=t>>>(f>>>0),s=_>>>5&8,n=_>>>(s>>>0),o=n>>>2&4,l=n>>>(o>>>0),b=l>>>1&2,k=l>>>(b>>>0),u=k>>>1&1,c=Me[vi+((s|f|o|b|u)+(k>>>(u>>>0))<<2)+304>>2],h=c,e=h>>2,d=(Se[c+4>>2]&-8)-r|0;r:for(;;)for(var d,h,w=h;;){var w,p=Se[w+16>>2];if(0==(0|p)){var E=Se[w+20>>2];if(0==(0|E))break r;var A=E}else var A=p;var A,g=(Se[A+4>>2]&-8)-r|0;if(g>>>0>>0){var h=A,e=h>>2,d=g;continue r}var w=A}var y=h,m=Me[vi+16>>2],S=y>>>0>>0;do if(!S){var M=y+r|0,C=M;if(y>>>0>=M>>>0)break;var R=Me[e+6],T=Me[e+3],O=(0|T)==(0|h);do if(O){var N=h+20|0,I=Se[N>>2];if(0==(0|I)){var P=h+16|0,D=Se[P>>2];if(0==(0|D)){var L=0,a=L>>2;break}var F=P,X=D}else{var F=N,X=I;i=14}for(;;){var X,F,j=X+20|0,U=Se[j>>2];if(0==(0|U)){var x=X+16|0,z=Me[x>>2];if(0==(0|z))break;var F=x,X=z}else var F=j,X=U}if(F>>>0>>0)throw Ka(),"Reached an unreachable!";Se[F>>2]=0;var L=X,a=L>>2}else{var V=Me[e+2];if(V>>>0>>0)throw Ka(),"Reached an unreachable!";Se[V+12>>2]=T,Se[T+8>>2]=V;var L=T,a=L>>2}while(0);var L,B=0==(0|R);r:do if(!B){var H=h+28|0,K=(Se[H>>2]<<2)+vi+304|0,Y=(0|h)==(0|Se[K>>2]);do{if(Y){if(Se[K>>2]=L,0!=(0|L))break;var G=Se[vi+4>>2]&(1<>2]^-1);Se[vi+4>>2]=G;break r}if(R>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";var W=R+16|0;if((0|Se[W>>2])==(0|h)?Se[W>>2]=L:Se[R+20>>2]=L,0==(0|L))break r}while(0);if(L>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[a+6]=R;var Z=Me[e+4];if(0!=(0|Z)){if(Z>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[a+4]=Z,Se[Z+24>>2]=L}var Q=Me[e+5];if(0==(0|Q))break;if(Q>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[a+5]=Q,Se[Q+24>>2]=L}while(0);if(d>>>0<16){var q=d+r|0;Se[e+1]=3|q;var $=q+(y+4)|0,J=1|Se[$>>2];Se[$>>2]=J}else{Se[e+1]=3|r,Se[r+(y+4)>>2]=1|d,Se[y+d+r>>2]=d;var rr=Me[vi+8>>2];if(0!=(0|rr)){var ar=Me[vi+20>>2],er=rr>>>2&1073741822,ir=(er<<2)+vi+40|0,vr=Me[vi>>2],tr=1<<(rr>>>3),fr=0==(vr&tr|0);do{if(!fr){var _r=(er+2<<2)+vi+40|0,sr=Me[_r>>2];if(sr>>>0>=Me[vi+16>>2]>>>0){var nr=sr,or=_r;break}throw Ka(),"Reached an unreachable!"}Se[vi>>2]=vr|tr;var nr=ir,or=(er+2<<2)+vi+40|0}while(0);var or,nr;Se[or>>2]=ar,Se[nr+12>>2]=ar,Se[ar+8>>2]=nr,Se[ar+12>>2]=ir}Se[vi+8>>2]=d,Se[vi+20>>2]=C}return h+8|0}while(0);throw Ka(),"Reached an unreachable!"}function aa(r){var a,e;0==(0|Se[ti>>2])&&ba();var i=0==(4&Se[vi+440>>2]|0);do{if(i){var v=Se[vi+24>>2],t=0==(0|v);do{if(!t){var f=v,_=ua(f);if(0==(0|_)){e=6;break}var s=Se[ti+8>>2],n=r+47-Se[vi+12>>2]+s&-s;if(n>>>0>=2147483647){e=14;break}var o=re(n);if((0|o)==(Se[_>>2]+Se[_+4>>2]|0)){var l=o,b=n,k=o;e=13;break}var u=o,c=n;e=15;break}e=6}while(0);do if(6==e){var h=re(0);if((0|h)==-1){e=14;break}var d=Se[ti+8>>2],w=d+(r+47)&-d,p=h,E=Se[ti+4>>2],A=E-1|0;if(0==(A&p|0))var g=w;else var g=w-p+(A+p&-E)|0;var g;if(g>>>0>=2147483647){e=14;break}var y=re(g);if((0|y)==(0|h)){var l=h,b=g,k=y;e=13;break}var u=y,c=g;e=15;break}while(0);if(13==e){var k,b,l;if((0|l)!=-1){var m=b,S=l;e=26;break}var u=k,c=b}else if(14==e){var M=4|Se[vi+440>>2];Se[vi+440>>2]=M,e=23;break}var c,u,C=0|-c,R=(0|u)!=-1&c>>>0<2147483647;do{if(R){if(c>>>0>=(r+48|0)>>>0){var T=c;e=21;break}var O=Se[ti+8>>2],N=r+47-c+O&-O;if(N>>>0>=2147483647){var T=c;e=21;break}var I=re(N);if((0|I)==-1){re(C);e=22;break}var T=N+c|0;e=21;break}var T=c;e=21}while(0);if(21==e){var T;if((0|u)!=-1){var m=T,S=u;e=26;break}}var P=4|Se[vi+440>>2];Se[vi+440>>2]=P,e=23;break}e=23}while(0);do if(23==e){var D=Se[ti+8>>2],L=D+(r+47)&-D;if(L>>>0>=2147483647){e=49;break}var F=re(L),X=re(0);if(!((0|X)!=-1&(0|F)!=-1&F>>>0>>0)){e=49;break}var j=X-F|0;if(j>>>0<=(r+40|0)>>>0|(0|F)==-1){e=49;break}var m=j,S=F;e=26;break}while(0);r:do if(26==e){var S,m,U=Se[vi+432>>2]+m|0;Se[vi+432>>2]=U,U>>>0>Me[vi+436>>2]>>>0&&(Se[vi+436>>2]=U);var x=Me[vi+24>>2],z=0==(0|x);a:do if(z){var V=Me[vi+16>>2];0==(0|V)|S>>>0>>0&&(Se[vi+16>>2]=S),Se[vi+444>>2]=S,Se[vi+448>>2]=m,Se[vi+456>>2]=0;var B=Se[ti>>2];Se[vi+36>>2]=B,Se[vi+32>>2]=-1,ha(),ca(S,m-40|0)}else{for(var H=vi+444|0,a=H>>2;;){var H;if(0==(0|H))break;var K=Me[a],Y=H+4|0,G=Me[Y>>2],W=K+G|0;if((0|S)==(0|W)){if(0!=(8&Se[a+3]|0))break;var Z=x;if(!(Z>>>0>=K>>>0&Z>>>0>>0))break;Se[Y>>2]=G+m|0;var Q=Se[vi+24>>2],q=Se[vi+12>>2]+m|0;ca(Q,q);break a}var H=Se[a+2],a=H>>2}S>>>0>2]>>>0&&(Se[vi+16>>2]=S);for(var $=S+m|0,J=vi+444|0;;){var J;if(0==(0|J))break;var rr=0|J,ar=Me[rr>>2];if((0|ar)==(0|$)){if(0!=(8&Se[J+12>>2]|0))break;Se[rr>>2]=S;var er=J+4|0,ir=Se[er>>2]+m|0;Se[er>>2]=ir;var vr=da(S,ar,r),tr=vr;e=50;break r}var J=Se[J+8>>2]}Ma(S,m)}while(0);var fr=Me[vi+12>>2];if(fr>>>0<=r>>>0){e=49;break}var _r=fr-r|0;Se[vi+12>>2]=_r;var sr=Me[vi+24>>2],nr=sr;Se[vi+24>>2]=nr+r|0,Se[r+(nr+4)>>2]=1|_r,Se[sr+4>>2]=3|r;var tr=sr+8|0;e=50;break}while(0);if(49==e){var or=Je();Se[or>>2]=12;var tr=0}var tr;return tr}function ea(r){var a,e,i,v,t,f,_=r>>2,s=0|-r,n=r>>>8,o=0==(0|n);do if(o)var l=0;else{if(r>>>0>16777215){var l=31;break}var b=(n+1048320|0)>>>16&8,k=n<>>16&4,c=k<>>16&2,d=14-(u|b|h)+(c<>>15)|0,l=r>>>((d+7|0)>>>0)&1|d<<1}while(0);var l,w=Me[vi+(l<<2)+304>>2],p=0==(0|w);r:do if(p)var E=0,A=s,g=0;else{if(31==(0|l))var y=0;else var y=25-(l>>>1)|0;for(var y,m=0,S=s,M=w,t=M>>2,C=r<>>0>>0){if((0|T)==(0|r)){var E=M,A=O,g=M;break r}var N=M,I=O}else var N=m,I=S;var I,N,P=Me[t+5],D=Me[((C>>>31<<2)+16>>2)+t],L=0==(0|P)|(0|P)==(0|D)?R:P;if(0==(0|D)){var E=N,A=I,g=L;break r}var m=N,S=I,M=D,t=M>>2,C=C<<1,R=L}}while(0);var g,A,E,F=0==(0|g)&0==(0|E);do if(F){var X=2<>2]&(X|-X);if(0==(0|j)){var U=g;break}var x=(j&-j)-1|0,z=x>>>12&16,V=x>>>(z>>>0),B=V>>>5&8,H=V>>>(B>>>0),K=H>>>2&4,Y=H>>>(K>>>0),G=Y>>>1&2,W=Y>>>(G>>>0),Z=W>>>1&1,U=Se[vi+((B|z|K|G|Z)+(W>>>(Z>>>0))<<2)+304>>2]}else var U=g;while(0);var U,Q=0==(0|U);r:do if(Q)var q=A,$=E,v=$>>2;else for(var J=U,i=J>>2,rr=A,ar=E;;){var ar,rr,J,er=(Se[i+1]&-8)-r|0,ir=er>>>0>>0,vr=ir?er:rr,tr=ir?J:ar,fr=Me[i+4];if(0==(0|fr)){var _r=Me[i+5];if(0==(0|_r)){var q=vr,$=tr,v=$>>2;break r}var J=_r,i=J>>2,rr=vr,ar=tr}else var J=fr,i=J>>2,rr=vr,ar=tr}while(0);var $,q,sr=0==(0|$);r:do{if(!sr){if(q>>>0>=(Se[vi+8>>2]-r|0)>>>0){var nr=0;break}var or=$,e=or>>2,lr=Me[vi+16>>2],br=or>>>0>>0;do if(!br){var kr=or+r|0,ur=kr;if(or>>>0>=kr>>>0)break;var cr=Me[v+6],hr=Me[v+3],dr=(0|hr)==(0|$);do if(dr){var wr=$+20|0,pr=Se[wr>>2];if(0==(0|pr)){var Er=$+16|0,Ar=Se[Er>>2];if(0==(0|Ar)){var gr=0,a=gr>>2;break}var yr=Er,mr=Ar}else{var yr=wr,mr=pr;f=28}for(;;){var mr,yr,Sr=mr+20|0,Mr=Se[Sr>>2];if(0==(0|Mr)){var Cr=mr+16|0,Rr=Me[Cr>>2];if(0==(0|Rr))break;var yr=Cr,mr=Rr}else var yr=Sr,mr=Mr}if(yr>>>0>>0)throw Ka(),"Reached an unreachable!";Se[yr>>2]=0;var gr=mr,a=gr>>2}else{var Tr=Me[v+2];if(Tr>>>0>>0)throw Ka(),"Reached an unreachable!";Se[Tr+12>>2]=hr,Se[hr+8>>2]=Tr;var gr=hr,a=gr>>2}while(0);var gr,Or=0==(0|cr);a:do if(!Or){var Nr=$+28|0,Ir=(Se[Nr>>2]<<2)+vi+304|0,Pr=(0|$)==(0|Se[Ir>>2]);do{if(Pr){if(Se[Ir>>2]=gr,0!=(0|gr))break;var Dr=Se[vi+4>>2]&(1<>2]^-1);Se[vi+4>>2]=Dr;break a}if(cr>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";var Lr=cr+16|0;if((0|Se[Lr>>2])==(0|$)?Se[Lr>>2]=gr:Se[cr+20>>2]=gr,0==(0|gr))break a}while(0);if(gr>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[a+6]=cr;var Fr=Me[v+4];if(0!=(0|Fr)){if(Fr>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[a+4]=Fr,Se[Fr+24>>2]=gr}var Xr=Me[v+5];if(0==(0|Xr))break;if(Xr>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[a+5]=Xr,Se[Xr+24>>2]=gr}while(0);var jr=q>>>0<16;a:do if(jr){var Ur=q+r|0;Se[v+1]=3|Ur;var xr=Ur+(or+4)|0,zr=1|Se[xr>>2];Se[xr>>2]=zr}else if(Se[v+1]=3|r,Se[_+(e+1)]=1|q,Se[(q>>2)+e+_]=q,q>>>0<256){var Vr=q>>>2&1073741822,Br=(Vr<<2)+vi+40|0,Hr=Me[vi>>2],Kr=1<<(q>>>3),Yr=0==(Hr&Kr|0);do{if(!Yr){var Gr=(Vr+2<<2)+vi+40|0,Wr=Me[Gr>>2];if(Wr>>>0>=Me[vi+16>>2]>>>0){var Zr=Wr,Qr=Gr;break}throw Ka(),"Reached an unreachable!"}Se[vi>>2]=Hr|Kr;var Zr=Br,Qr=(Vr+2<<2)+vi+40|0}while(0);var Qr,Zr;Se[Qr>>2]=ur,Se[Zr+12>>2]=ur,Se[_+(e+2)]=Zr,Se[_+(e+3)]=Br}else{var qr=kr,$r=q>>>8,Jr=0==(0|$r);do if(Jr)var ra=0;else{if(q>>>0>16777215){var ra=31;break}var aa=($r+1048320|0)>>>16&8,ea=$r<>>16&4,va=ea<>>16&2,fa=14-(ia|aa|ta)+(va<>>15)|0,ra=q>>>((fa+7|0)>>>0)&1|fa<<1}while(0);var ra,_a=(ra<<2)+vi+304|0;Se[_+(e+7)]=ra;var sa=r+(or+16)|0;Se[_+(e+5)]=0,Se[sa>>2]=0;var na=Se[vi+4>>2],oa=1<>2]=la,Se[_a>>2]=qr,Se[_+(e+6)]=_a,Se[_+(e+3)]=qr,Se[_+(e+2)]=qr}else{if(31==(0|ra))var ba=0;else var ba=25-(ra>>>1)|0;for(var ba,ka=q<>2];;){var ua,ka;if((Se[ua+4>>2]&-8|0)==(0|q)){var ca=ua+8|0,ha=Me[ca>>2],da=Me[vi+16>>2],wa=ua>>>0>>0;do if(!wa){if(ha>>>0>>0)break;Se[ha+12>>2]=qr,Se[ca>>2]=qr,Se[_+(e+2)]=ha,Se[_+(e+3)]=ua,Se[_+(e+6)]=0;break a}while(0);throw Ka(),"Reached an unreachable!"}var pa=(ka>>>31<<2)+ua+16|0,Ea=Me[pa>>2];if(0==(0|Ea)){if(pa>>>0>=Me[vi+16>>2]>>>0){Se[pa>>2]=qr,Se[_+(e+6)]=ua,Se[_+(e+3)]=qr,Se[_+(e+2)]=qr;break a}throw Ka(),"Reached an unreachable!"}var ka=ka<<1,ua=Ea}}}while(0);var nr=$+8|0;break r}while(0);throw Ka(),"Reached an unreachable!"}var nr=0}while(0);var nr;return nr}function ia(r){var a;0==(0|Se[ti>>2])&&ba();var e=r>>>0<4294967232;r:do if(e){var i=Me[vi+24>>2];if(0==(0|i)){var v=0;break}var t=Me[vi+12>>2],f=t>>>0>(r+40|0)>>>0;do if(f){var _=Me[ti+8>>2],s=-40-r-1+t+_|0,n=Math.floor((s>>>0)/(_>>>0)),o=(n-1)*_|0,l=i,b=ua(l);if(0!=(8&Se[b+12>>2]|0))break;var k=re(0),a=(b+4|0)>>2;if((0|k)!=(Se[b>>2]+Se[a]|0))break;var u=o>>>0>2147483646?-2147483648-_|0:o,c=0|-u,h=re(c),d=re(0);if(!((0|h)!=-1&d>>>0>>0))break;var w=k-d|0;if((0|k)==(0|d))break;var p=Se[a]-w|0;Se[a]=p;var E=Se[vi+432>>2]-w|0;Se[vi+432>>2]=E;var A=Se[vi+24>>2],g=Se[vi+12>>2]-w|0;ca(A,g);var v=(0|k)!=(0|d);break r}while(0);if(Me[vi+12>>2]>>>0<=Me[vi+28>>2]>>>0){var v=0;break}Se[vi+28>>2]=-1;var v=0}else var v=0;while(0);var v;return 1&v}function va(r){var a,e,i,v,t,f,_,s=r>>2,n=0==(0|r);r:do if(!n){var o=r-8|0,l=o,b=Me[vi+16>>2],k=o>>>0>>0;a:do if(!k){var u=Me[r-4>>2],c=3&u;if(1==(0|c))break;var h=u&-8,f=h>>2,d=r+(h-8)|0,w=d,p=0==(1&u|0);e:do if(p){var E=Me[o>>2];if(0==(0|c))break r;var A=-8-E|0,t=A>>2,g=r+A|0,y=g,m=E+h|0;if(g>>>0>>0)break a;if((0|y)==(0|Se[vi+20>>2])){var v=(r+(h-4)|0)>>2;if(3!=(3&Se[v]|0)){var S=y,i=S>>2,M=m;break}Se[vi+8>>2]=m;var C=Se[v]&-2;Se[v]=C,Se[t+(s+1)]=1|m,Se[d>>2]=m;break r}if(E>>>0<256){var R=Me[t+(s+2)],T=Me[t+(s+3)];if((0|R)!=(0|T)){var O=((E>>>2&1073741822)<<2)+vi+40|0,N=(0|R)!=(0|O)&R>>>0>>0;do if(!N){if(!((0|T)==(0|O)|T>>>0>=b>>>0))break;Se[R+12>>2]=T,Se[T+8>>2]=R;var S=y,i=S>>2,M=m;break e}while(0);throw Ka(),"Reached an unreachable!"}var I=Se[vi>>2]&(1<<(E>>>3)^-1);Se[vi>>2]=I;var S=y,i=S>>2,M=m}else{var P=g,D=Me[t+(s+6)],L=Me[t+(s+3)],F=(0|L)==(0|P);do if(F){var X=A+(r+20)|0,j=Se[X>>2];if(0==(0|j)){var U=A+(r+16)|0,x=Se[U>>2];if(0==(0|x)){var z=0,e=z>>2;break}var V=U,B=x}else{var V=X,B=j;_=21}for(;;){var B,V,H=B+20|0,K=Se[H>>2];if(0==(0|K)){var Y=B+16|0,G=Me[Y>>2];if(0==(0|G))break;var V=Y,B=G}else var V=H,B=K}if(V>>>0>>0)throw Ka(),"Reached an unreachable!";Se[V>>2]=0;var z=B,e=z>>2}else{var W=Me[t+(s+2)];if(W>>>0>>0)throw Ka(),"Reached an unreachable!";Se[W+12>>2]=L,Se[L+8>>2]=W;var z=L,e=z>>2}while(0);var z;if(0==(0|D)){var S=y,i=S>>2,M=m;break}var Z=A+(r+28)|0,Q=(Se[Z>>2]<<2)+vi+304|0,q=(0|P)==(0|Se[Q>>2]);do{if(q){if(Se[Q>>2]=z,0!=(0|z))break;var $=Se[vi+4>>2]&(1<>2]^-1);Se[vi+4>>2]=$;var S=y,i=S>>2,M=m;break e}if(D>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";var J=D+16|0;if((0|Se[J>>2])==(0|P)?Se[J>>2]=z:Se[D+20>>2]=z,0==(0|z)){var S=y,i=S>>2,M=m;break e}}while(0);if(z>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[e+6]=D;var rr=Me[t+(s+4)];if(0!=(0|rr)){if(rr>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[e+4]=rr,Se[rr+24>>2]=z}var ar=Me[t+(s+5)];if(0==(0|ar)){var S=y,i=S>>2,M=m;break}if(ar>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[e+5]=ar,Se[ar+24>>2]=z;var S=y,i=S>>2,M=m}}else var S=l,i=S>>2,M=h;while(0);var M,S,er=S;if(er>>>0>=d>>>0)break;var ir=r+(h-4)|0,vr=Me[ir>>2];if(0==(1&vr|0))break;var tr=0==(2&vr|0);do{if(tr){if((0|w)==(0|Se[vi+24>>2])){var fr=Se[vi+12>>2]+M|0;Se[vi+12>>2]=fr,Se[vi+24>>2]=S;var _r=1|fr;if(Se[i+1]=_r,(0|S)==(0|Se[vi+20>>2])&&(Se[vi+20>>2]=0,Se[vi+8>>2]=0),fr>>>0<=Me[vi+28>>2]>>>0)break r;ia(0);break r}if((0|w)==(0|Se[vi+20>>2])){var sr=Se[vi+8>>2]+M|0;Se[vi+8>>2]=sr,Se[vi+20>>2]=S;var nr=1|sr;Se[i+1]=nr;var or=er+sr|0;Se[or>>2]=sr;break r}var lr=(vr&-8)+M|0,br=vr>>>3,kr=vr>>>0<256;e:do if(kr){var ur=Me[s+f],cr=Me[((4|h)>>2)+s];if((0|ur)!=(0|cr)){var hr=((vr>>>2&1073741822)<<2)+vi+40|0,dr=(0|ur)==(0|hr);do{if(!dr){if(ur>>>0>2]>>>0){_=66;break}_=63;break}_=63}while(0);do if(63==_){if((0|cr)!=(0|hr)&&cr>>>0>2]>>>0)break;Se[ur+12>>2]=cr,Se[cr+8>>2]=ur;break e}while(0);throw Ka(),"Reached an unreachable!"}var wr=Se[vi>>2]&(1<>2]=wr}else{var pr=d,Er=Me[f+(s+4)],Ar=Me[((4|h)>>2)+s],gr=(0|Ar)==(0|pr);do if(gr){var yr=h+(r+12)|0,mr=Se[yr>>2];if(0==(0|mr)){var Sr=h+(r+8)|0,Mr=Se[Sr>>2];if(0==(0|Mr)){var Cr=0,a=Cr>>2;break}var Rr=Sr,Tr=Mr}else{var Rr=yr,Tr=mr;_=73}for(;;){var Tr,Rr,Or=Tr+20|0,Nr=Se[Or>>2];if(0==(0|Nr)){var Ir=Tr+16|0,Pr=Me[Ir>>2];if(0==(0|Pr))break;var Rr=Ir,Tr=Pr}else var Rr=Or,Tr=Nr}if(Rr>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[Rr>>2]=0;var Cr=Tr,a=Cr>>2}else{var Dr=Me[s+f];if(Dr>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[Dr+12>>2]=Ar,\nSe[Ar+8>>2]=Dr;var Cr=Ar,a=Cr>>2}while(0);var Cr;if(0==(0|Er))break;var Lr=h+(r+20)|0,Fr=(Se[Lr>>2]<<2)+vi+304|0,Xr=(0|pr)==(0|Se[Fr>>2]);do{if(Xr){if(Se[Fr>>2]=Cr,0!=(0|Cr))break;var jr=Se[vi+4>>2]&(1<>2]^-1);Se[vi+4>>2]=jr;break e}if(Er>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";var Ur=Er+16|0;if((0|Se[Ur>>2])==(0|pr)?Se[Ur>>2]=Cr:Se[Er+20>>2]=Cr,0==(0|Cr))break e}while(0);if(Cr>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[a+6]=Er;var xr=Me[f+(s+2)];if(0!=(0|xr)){if(xr>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[a+4]=xr,Se[xr+24>>2]=Cr}var zr=Me[f+(s+3)];if(0==(0|zr))break;if(zr>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[a+5]=zr,Se[zr+24>>2]=Cr}while(0);if(Se[i+1]=1|lr,Se[er+lr>>2]=lr,(0|S)!=(0|Se[vi+20>>2])){var Vr=lr;break}Se[vi+8>>2]=lr;break r}Se[ir>>2]=vr&-2,Se[i+1]=1|M,Se[er+M>>2]=M;var Vr=M}while(0);var Vr;if(Vr>>>0<256){var Br=Vr>>>2&1073741822,Hr=(Br<<2)+vi+40|0,Kr=Me[vi>>2],Yr=1<<(Vr>>>3),Gr=0==(Kr&Yr|0);do{if(!Gr){var Wr=(Br+2<<2)+vi+40|0,Zr=Me[Wr>>2];if(Zr>>>0>=Me[vi+16>>2]>>>0){var Qr=Zr,qr=Wr;break}throw Ka(),"Reached an unreachable!"}Se[vi>>2]=Kr|Yr;var Qr=Hr,qr=(Br+2<<2)+vi+40|0}while(0);var qr,Qr;Se[qr>>2]=S,Se[Qr+12>>2]=S,Se[i+2]=Qr,Se[i+3]=Hr;break r}var $r=S,Jr=Vr>>>8,ra=0==(0|Jr);do if(ra)var aa=0;else{if(Vr>>>0>16777215){var aa=31;break}var ea=(Jr+1048320|0)>>>16&8,va=Jr<>>16&4,_a=va<>>16&2,na=14-(fa|ea|sa)+(_a<>>15)|0,aa=Vr>>>((na+7|0)>>>0)&1|na<<1}while(0);var aa,oa=(aa<<2)+vi+304|0;Se[i+7]=aa,Se[i+5]=0,Se[i+4]=0;var la=Se[vi+4>>2],ba=1<>2]=ua,Se[oa>>2]=$r,Se[i+6]=oa,Se[i+3]=S,Se[i+2]=S}else{if(31==(0|aa))var ca=0;else var ca=25-(aa>>>1)|0;for(var ca,ha=Vr<>2];;){var da,ha;if((Se[da+4>>2]&-8|0)==(0|Vr)){var wa=da+8|0,pa=Me[wa>>2],Ea=Me[vi+16>>2],Aa=da>>>0>>0;do if(!Aa){if(pa>>>0>>0)break;Se[pa+12>>2]=$r,Se[wa>>2]=$r,Se[i+2]=pa,Se[i+3]=da,Se[i+6]=0;break e}while(0);throw Ka(),"Reached an unreachable!"}var ga=(ha>>>31<<2)+da+16|0,ya=Me[ga>>2];if(0==(0|ya)){if(ga>>>0>=Me[vi+16>>2]>>>0){Se[ga>>2]=$r,Se[i+6]=da,Se[i+3]=S,Se[i+2]=S;break e}throw Ka(),"Reached an unreachable!"}var ha=ha<<1,da=ya}}while(0);var ma=Se[vi+32>>2]-1|0;if(Se[vi+32>>2]=ma,0!=(0|ma))break r;ta();break r}while(0);throw Ka(),"Reached an unreachable!"}while(0)}function ta(){var r=Se[vi+452>>2],a=0==(0|r);r:do if(!a)for(var e=r;;){var e,i=Se[e+8>>2];if(0==(0|i))break r;var e=i}while(0);Se[vi+32>>2]=-1}function fa(r,a){if(0==(0|r))var e=Jr(a),i=e;else var v=la(r,a),i=v;var i;return i}function _a(r,a){var e,i=r>>>0<9;do if(i)var v=Jr(a),t=v;else{var f=r>>>0<16?16:r,_=0==(f-1&f|0);r:do if(_)var s=f;else{if(f>>>0<=16){var s=16;break}for(var n=16;;){var n,o=n<<1;if(o>>>0>=f>>>0){var s=o;break r}var n=o}}while(0);var s;if((-64-s|0)>>>0>a>>>0){if(a>>>0<11)var l=16;else var l=a+11&-8;var l,b=Jr(l+(s+12)|0);if(0==(0|b)){var t=0;break}var k=b-8|0;if(0==((b>>>0)%(s>>>0)|0))var u=k,c=0;else{var h=b+(s-1)&-s,d=h-8|0,w=k;if((d-w|0)>>>0>15)var p=d;else var p=h+(s-8)|0;var p,E=p-w|0,e=(b-4|0)>>2,A=Se[e],g=(A&-8)-E|0;if(0==(3&A|0)){var y=Se[k>>2]+E|0;Se[p>>2]=y,Se[p+4>>2]=g;var u=p,c=0}else{var m=p+4|0,S=g|1&Se[m>>2]|2;Se[m>>2]=S;var M=g+(p+4)|0,C=1|Se[M>>2];Se[M>>2]=C;var R=E|1&Se[e]|2;Se[e]=R;var T=b+(E-4)|0,O=1|Se[T>>2];Se[T>>2]=O;var u=p,c=b}}var c,u,N=u+4|0,I=Me[N>>2],P=0==(3&I|0);do if(P)var D=0;else{var L=I&-8;if(L>>>0<=(l+16|0)>>>0){var D=0;break}var F=L-l|0;Se[N>>2]=l|1&I|2,Se[u+(4|l)>>2]=3|F;var X=u+(4|L)|0,j=1|Se[X>>2];Se[X>>2]=j;var D=l+(u+8)|0}while(0);var D;0!=(0|c)&&va(c),0!=(0|D)&&va(D);var t=u+8|0}else{var U=Je();Se[U>>2]=12;var t=0}}while(0);var t;return t}function sa(r,a,e,i){var v,t;0==(0|Se[ti>>2])&&ba();var f=0==(0|i),_=0==(0|r);do{if(f){if(_){var s=Jr(0),n=s;t=30;break}var o=r<<2;if(o>>>0<11){var l=0,b=16;t=9;break}var l=0,b=o+11&-8;t=9;break}if(_){var n=i;t=30;break}var l=i,b=0;t=9;break}while(0);do if(9==t){var b,l,k=0==(1&e|0);r:do if(k){if(_){var u=0,c=0;break}for(var h=0,d=0;;){var d,h,w=Me[a+(d<<2)>>2];if(w>>>0<11)var p=16;else var p=w+11&-8;var p,E=p+h|0,A=d+1|0;if((0|A)==(0|r)){var u=0,c=E;break r}var h=E,d=A}}else{var g=Me[a>>2];if(g>>>0<11)var y=16;else var y=g+11&-8;var y,u=y,c=y*r|0}while(0);var c,u,m=Jr(b-4+c|0);if(0==(0|m)){var n=0;break}var S=m-8|0,M=Se[m-4>>2]&-8;if(0!=(2&e|0)){var C=-4-b+M|0;Fa(m,0,C,1)}if(0==(0|l)){var R=m+c|0,T=M-c|3;Se[m+(c-4)>>2]=T;var O=R,v=O>>2,N=c}else var O=l,v=O>>2,N=M;var N,O;Se[v]=m;var I=r-1|0,P=0==(0|I);r:do if(P)var D=S,L=N;else if(0==(0|u))for(var F=S,X=N,j=0;;){var j,X,F,U=Me[a+(j<<2)>>2];if(U>>>0<11)var x=16;else var x=U+11&-8;var x,z=X-x|0;Se[F+4>>2]=3|x;var V=F+x|0,B=j+1|0;if(Se[(B<<2>>2)+v]=x+(F+8)|0,(0|B)==(0|I)){var D=V,L=z;break r}var F=V,X=z,j=B}else for(var H=3|u,K=u+8|0,Y=S,G=N,W=0;;){var W,G,Y,Z=G-u|0;Se[Y+4>>2]=H;var Q=Y+u|0,q=W+1|0;if(Se[(q<<2>>2)+v]=Y+K|0,(0|q)==(0|I)){var D=Q,L=Z;break r}var Y=Q,G=Z,W=q}while(0);var L,D;Se[D+4>>2]=3|L;var n=O}while(0);var n;return n}function na(r){var a=r>>2;0==(0|Se[ti>>2])&&ba();var e=Me[vi+24>>2];if(0==(0|e))var i=0,v=0,t=0,f=0,_=0,s=0,n=0;else{for(var o=Me[vi+12>>2],l=o+40|0,b=vi+444|0,k=l,u=l,c=1;;){var c,u,k,b,h=Me[b>>2],d=h+8|0;if(0==(7&d|0))var w=0;else var w=7&-d;for(var w,p=b+4|0,E=h+w|0,A=c,g=u,y=k;;){var y,g,A,E;if(E>>>0>>0)break;if(E>>>0>=(h+Se[p>>2]|0)>>>0|(0|E)==(0|e))break;var m=Se[E+4>>2];if(7==(0|m))break;var S=m&-8,M=S+y|0;if(1==(3&m|0))var C=A+1|0,R=S+g|0;else var C=A,R=g;var R,C,E=E+S|0,A=C,g=R,y=M}var T=Me[b+8>>2];if(0==(0|T))break;var b=T,k=y,u=g,c=A}var O=Se[vi+432>>2],i=y,v=A,t=o,f=g,_=O-y|0,s=Se[vi+436>>2],n=O-g|0}var n,s,_,f,t,v,i;Se[a]=i,Se[a+1]=v,Se[a+2]=0,Se[a+3]=0,Se[a+4]=_,Se[a+5]=s,Se[a+6]=0,Se[a+7]=n,Se[a+8]=f,Se[a+9]=t}function oa(){0==(0|Se[ti>>2])&&ba();var r=Me[vi+24>>2],a=0==(0|r);r:do if(a)var e=0,i=0,v=0;else for(var t=Se[vi+436>>2],f=Me[vi+432>>2],_=vi+444|0,s=f-40-Se[vi+12>>2]|0;;){var s,_,n=Me[_>>2],o=n+8|0;if(0==(7&o|0))var l=0;else var l=7&-o;for(var l,b=_+4|0,k=n+l|0,u=s;;){var u,k;if(k>>>0>>0)break;if(k>>>0>=(n+Se[b>>2]|0)>>>0|(0|k)==(0|r))break;var c=Se[k+4>>2];if(7==(0|c))break;var h=c&-8,d=1==(3&c|0)?h:0,w=u-d|0,k=k+h|0,u=w}var p=Me[_+8>>2];if(0==(0|p)){var e=t,i=f,v=u;break r}var _=p,s=u}while(0);var v,i,e,E=Se[Se[qe>>2]+12>>2],A=(Qa(E,0|He.__str339,(ne=Oe,Oe+=4,Se[ne>>2]=e,ne)),Se[Se[qe>>2]+12>>2]),g=(Qa(A,0|He.__str1340,(ne=Oe,Oe+=4,Se[ne>>2]=i,ne)),Se[Se[qe>>2]+12>>2]);Qa(g,0|He.__str2341,(ne=Oe,Oe+=4,Se[ne>>2]=v,ne))}function la(r,a){var e,i,v,t=a>>>0>4294967231;r:do{if(!t){var f=r-8|0,_=f,i=(r-4|0)>>2,s=Me[i],n=s&-8,o=n-8|0,l=r+o|0,b=f>>>0>2]>>>0;do if(!b){var k=3&s;if(!(1!=(0|k)&(0|o)>-8))break;var e=(r+(n-4)|0)>>2;if(0==(1&Se[e]|0))break;if(a>>>0<11)var u=16;else var u=a+11&-8;var u,c=0==(0|k);do{if(c){var h=ka(_,u),d=0,w=h;v=17;break}if(n>>>0>>0){if((0|l)!=(0|Se[vi+24>>2])){v=21;break}var p=Se[vi+12>>2]+n|0;if(p>>>0<=u>>>0){v=21;break}var E=p-u|0,A=r+(u-8)|0;Se[i]=u|1&s|2;var g=1|E;Se[r+(u-4)>>2]=g,Se[vi+24>>2]=A,Se[vi+12>>2]=E;var d=0,w=_;v=17;break}var y=n-u|0;if(y>>>0<=15){var d=0,w=_;v=17;break}Se[i]=u|1&s|2,Se[r+(u-4)>>2]=3|y;var m=1|Se[e];Se[e]=m;var d=r+u|0,w=_;v=17;break}while(0);do if(17==v){var w,d;if(0==(0|w))break;0!=(0|d)&&va(d);var S=w+8|0;break r}while(0);var M=Jr(a);if(0==(0|M)){var S=0;break r}var C=0==(3&Se[i]|0)?8:4,R=n-C|0,T=R>>>0>>0?R:a;Pa(M,r,T,1),va(r);var S=M;break r}while(0);throw Ka(),"Reached an unreachable!"}var O=Je();Se[O>>2]=12;var S=0}while(0);var S;return S}function ba(){if(0==(0|Se[ti>>2])){var r=qa(8);if(0!=(r-1&r|0))throw Ka(),"Reached an unreachable!";Se[ti+8>>2]=r,Se[ti+4>>2]=r,Se[ti+12>>2]=-1,Se[ti+16>>2]=2097152,Se[ti+20>>2]=0,Se[vi+440>>2]=0;var a=$a(0);Se[ti>>2]=a&-16^1431655768}}function ka(r,a){var e=Se[r+4>>2]&-8,i=a>>>0<256;do if(i)var v=0;else{if(e>>>0>=(a+4|0)>>>0&&(e-a|0)>>>0<=Se[ti+8>>2]<<1>>>0){var v=r;break}var v=0}while(0);var v;return v}function ua(r){for(var a,e=vi+444|0,a=e>>2;;){var e,i=Me[a];if(i>>>0<=r>>>0&&(i+Se[a+1]|0)>>>0>r>>>0){var v=e;break}var t=Me[a+2];if(0==(0|t)){var v=0;break}var e=t,a=e>>2}var v;return v}function ca(r,a){var e=r,i=r+8|0;if(0==(7&i|0))var v=0;else var v=7&-i;var v,t=a-v|0;Se[vi+24>>2]=e+v|0,Se[vi+12>>2]=t,Se[v+(e+4)>>2]=1|t,Se[a+(e+4)>>2]=40;var f=Se[ti+16>>2];Se[vi+28>>2]=f}function ha(){for(var r=0;;){var r,a=r<<1,e=(a<<2)+vi+40|0;Se[vi+(a+3<<2)+40>>2]=e,Se[vi+(a+2<<2)+40>>2]=e;var i=r+1|0;if(32==(0|i))break;var r=i}}function da(r,a,e){var i,v,t,f,_=a>>2,s=r>>2,n=r+8|0;if(0==(7&n|0))var o=0;else var o=7&-n;var o,l=a+8|0;if(0==(7&l|0))var b=0,t=b>>2;else var b=7&-l,t=b>>2;var b,k=a+b|0,u=k,c=o+e|0,v=c>>2,h=r+c|0,d=h,w=k-(r+o)-e|0;Se[(o+4>>2)+s]=3|e;var p=(0|u)==(0|Se[vi+24>>2]);r:do if(p){var E=Se[vi+12>>2]+w|0;Se[vi+12>>2]=E,Se[vi+24>>2]=d;var A=1|E;Se[v+(s+1)]=A}else if((0|u)==(0|Se[vi+20>>2])){var g=Se[vi+8>>2]+w|0;Se[vi+8>>2]=g,Se[vi+20>>2]=d;var y=1|g;Se[v+(s+1)]=y;var m=r+g+c|0;Se[m>>2]=g}else{var S=Me[t+(_+1)];if(1==(3&S|0)){var M=S&-8,C=S>>>3,R=S>>>0<256;a:do if(R){var T=Me[((8|b)>>2)+_],O=Me[t+(_+3)];if((0|T)!=(0|O)){var N=((S>>>2&1073741822)<<2)+vi+40|0,I=(0|T)==(0|N);do{if(!I){if(T>>>0>2]>>>0){f=18;break}f=15;break}f=15}while(0);do if(15==f){if((0|O)!=(0|N)&&O>>>0>2]>>>0)break;Se[T+12>>2]=O,Se[O+8>>2]=T;break a}while(0);throw Ka(),"Reached an unreachable!"}var P=Se[vi>>2]&(1<>2]=P}else{var D=k,L=Me[((24|b)>>2)+_],F=Me[t+(_+3)],X=(0|F)==(0|D);do if(X){var j=16|b,U=j+(a+4)|0,x=Se[U>>2];if(0==(0|x)){var z=a+j|0,V=Se[z>>2];if(0==(0|V)){var B=0,i=B>>2;break}var H=z,K=V}else{var H=U,K=x;f=25}for(;;){var K,H,Y=K+20|0,G=Se[Y>>2];if(0==(0|G)){var W=K+16|0,Z=Me[W>>2];if(0==(0|Z))break;var H=W,K=Z}else var H=Y,K=G}if(H>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[H>>2]=0;var B=K,i=B>>2}else{var Q=Me[((8|b)>>2)+_];if(Q>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[Q+12>>2]=F,Se[F+8>>2]=Q;var B=F,i=B>>2}while(0);var B;if(0==(0|L))break;var q=b+(a+28)|0,$=(Se[q>>2]<<2)+vi+304|0,J=(0|D)==(0|Se[$>>2]);do{if(J){if(Se[$>>2]=B,0!=(0|B))break;var rr=Se[vi+4>>2]&(1<>2]^-1);Se[vi+4>>2]=rr;break a}if(L>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";var ar=L+16|0;if((0|Se[ar>>2])==(0|D)?Se[ar>>2]=B:Se[L+20>>2]=B,0==(0|B))break a}while(0);if(B>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[i+6]=L;var er=16|b,ir=Me[(er>>2)+_];if(0!=(0|ir)){if(ir>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[i+4]=ir,Se[ir+24>>2]=B}var vr=Me[(er+4>>2)+_];if(0==(0|vr))break;if(vr>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[i+5]=vr,Se[vr+24>>2]=B}while(0);var tr=a+(M|b)|0,fr=M+w|0}else var tr=u,fr=w;var fr,tr,_r=tr+4|0,sr=Se[_r>>2]&-2;if(Se[_r>>2]=sr,Se[v+(s+1)]=1|fr,Se[(fr>>2)+s+v]=fr,fr>>>0<256){var nr=fr>>>2&1073741822,or=(nr<<2)+vi+40|0,lr=Me[vi>>2],br=1<<(fr>>>3),kr=0==(lr&br|0);do{if(!kr){var ur=(nr+2<<2)+vi+40|0,cr=Me[ur>>2];if(cr>>>0>=Me[vi+16>>2]>>>0){var hr=cr,dr=ur;break}throw Ka(),"Reached an unreachable!"}Se[vi>>2]=lr|br;var hr=or,dr=(nr+2<<2)+vi+40|0}while(0);var dr,hr;Se[dr>>2]=d,Se[hr+12>>2]=d,Se[v+(s+2)]=hr,Se[v+(s+3)]=or}else{var wr=h,pr=fr>>>8,Er=0==(0|pr);do if(Er)var Ar=0;else{if(fr>>>0>16777215){var Ar=31;break}var gr=(pr+1048320|0)>>>16&8,yr=pr<>>16&4,Sr=yr<>>16&2,Cr=14-(mr|gr|Mr)+(Sr<>>15)|0,Ar=fr>>>((Cr+7|0)>>>0)&1|Cr<<1}while(0);var Ar,Rr=(Ar<<2)+vi+304|0;Se[v+(s+7)]=Ar;var Tr=c+(r+16)|0;Se[v+(s+5)]=0,Se[Tr>>2]=0;var Or=Se[vi+4>>2],Nr=1<>2]=Ir,Se[Rr>>2]=wr,Se[v+(s+6)]=Rr,Se[v+(s+3)]=wr,Se[v+(s+2)]=wr}else{if(31==(0|Ar))var Pr=0;else var Pr=25-(Ar>>>1)|0;for(var Pr,Dr=fr<>2];;){var Lr,Dr;if((Se[Lr+4>>2]&-8|0)==(0|fr)){var Fr=Lr+8|0,Xr=Me[Fr>>2],jr=Me[vi+16>>2],Ur=Lr>>>0>>0;do if(!Ur){if(Xr>>>0>>0)break;Se[Xr+12>>2]=wr,Se[Fr>>2]=wr,Se[v+(s+2)]=Xr,Se[v+(s+3)]=Lr,Se[v+(s+6)]=0;break r}while(0);throw Ka(),"Reached an unreachable!"}var xr=(Dr>>>31<<2)+Lr+16|0,zr=Me[xr>>2];if(0==(0|zr)){if(xr>>>0>=Me[vi+16>>2]>>>0){Se[xr>>2]=wr,Se[v+(s+6)]=Lr,Se[v+(s+3)]=wr,Se[v+(s+2)]=wr;break r}throw Ka(),"Reached an unreachable!"}var Dr=Dr<<1,Lr=zr}}}}while(0);return r+(8|o)|0}function wa(r){return 0|He.__str3342}function pa(r){return 0|He.__str14343}function Ea(r){Se[r>>2]=si+8|0}function Aa(r){0!=(0|r)&&va(r)}function ga(r){ya(r);var a=r;Aa(a)}function ya(r){var a=0|r;Ye(a)}function ma(r){var a=0|r;Ea(a),Se[r>>2]=ni+8|0}function Sa(r){var a=0|r;ya(a);var e=r;Aa(e)}function Ma(r,a){var e,i,v=Me[vi+24>>2],i=v>>2,t=v,f=ua(t),_=Se[f>>2],s=Se[f+4>>2],n=_+s|0,o=_+(s-39)|0;if(0==(7&o|0))var l=0;else var l=7&-o;var l,b=_+(s-47)+l|0,k=b>>>0<(v+16|0)>>>0?t:b,u=k+8|0,e=u>>2,c=u,h=r,d=a-40|0;ca(h,d);var w=k+4|0;Se[w>>2]=27,Se[e]=Se[vi+444>>2],Se[e+1]=Se[vi+448>>2],Se[e+2]=Se[vi+452>>2],Se[e+3]=Se[vi+456>>2],Se[vi+444>>2]=r,Se[vi+448>>2]=a,Se[vi+456>>2]=0,Se[vi+452>>2]=c;var p=k+28|0;Se[p>>2]=7;var E=(k+32|0)>>>0>>0;r:do if(E)for(var A=p;;){var A,g=A+4|0;if(Se[g>>2]=7,(A+8|0)>>>0>=n>>>0)break r;var A=g}while(0);var y=(0|k)==(0|t);r:do if(!y){var m=k-v|0,S=t+m|0,M=m+(t+4)|0,C=Se[M>>2]&-2;Se[M>>2]=C;var R=1|m;Se[i+1]=R;var T=S;if(Se[T>>2]=m,m>>>0<256){var O=m>>>2&1073741822,N=(O<<2)+vi+40|0,I=Me[vi>>2],P=1<<(m>>>3),D=0==(I&P|0);do{if(!D){var L=(O+2<<2)+vi+40|0,F=Me[L>>2];if(F>>>0>=Me[vi+16>>2]>>>0){var X=F,j=L;break}throw Ka(),"Reached an unreachable!"}var U=I|P;Se[vi>>2]=U;var X=N,j=(O+2<<2)+vi+40|0}while(0);var j,X;Se[j>>2]=v,Se[X+12>>2]=v,Se[i+2]=X,Se[i+3]=N}else{var x=v,z=m>>>8,V=0==(0|z);do if(V)var B=0;else{if(m>>>0>16777215){var B=31;break}var H=(z+1048320|0)>>>16&8,K=z<>>16&4,G=K<>>16&2,Z=14-(Y|H|W)+(G<>>15)|0,B=m>>>((Z+7|0)>>>0)&1|Z<<1}while(0);var B,Q=(B<<2)+vi+304|0;Se[i+7]=B,Se[i+5]=0,Se[i+4]=0;var q=Se[vi+4>>2],$=1<>2]=J,Se[Q>>2]=x,Se[i+6]=Q,Se[i+3]=v,Se[i+2]=v}else{if(31==(0|B))var rr=0;else var rr=25-(B>>>1)|0;for(var rr,ar=m<>2];;){var er,ar;if((Se[er+4>>2]&-8|0)==(0|m)){var ir=er+8|0,vr=Me[ir>>2],tr=Me[vi+16>>2],fr=er>>>0>>0;do if(!fr){if(vr>>>0>>0)break;Se[vr+12>>2]=x,Se[ir>>2]=x,Se[i+2]=vr,Se[i+3]=er,Se[i+6]=0;break r}while(0);throw Ka(),"Reached an unreachable!"}var _r=(ar>>>31<<2)+er+16|0,sr=Me[_r>>2];if(0==(0|sr)){if(_r>>>0>=Me[vi+16>>2]>>>0){Se[_r>>2]=x,Se[i+6]=er,Se[i+3]=v,Se[i+2]=v;break r}throw Ka(),"Reached an unreachable!"}var ar=ar<<1,er=sr}}}}while(0)}function Ca(r){return d(r)}function Ra(r,a){var e=0;do Ae[r+e]=Ae[a+e],e++;while(0!=Ae[a+e-1]);return r}function Ta(){var r=Ta;return r.LLVM_SAVEDSTACKS||(r.LLVM_SAVEDSTACKS=[]),r.LLVM_SAVEDSTACKS.push(le.stackSave()),r.LLVM_SAVEDSTACKS.length-1}function Oa(r){var a=Ta,e=a.LLVM_SAVEDSTACKS[r];a.LLVM_SAVEDSTACKS.splice(r,1),le.stackRestore(e)}function Na(r,a,e){for(var i=0;it?1:-1;i++}return 0}function Ia(r,a){var e=Ca(r),i=0;do Ae[r+e+i]=Ae[a+i],i++;while(0!=Ae[a+i-1]);return r}function Pa(r,a,e,i){if(e>=20&&a%2==r%2)if(a%4==r%4){for(var v=a+e;a%4;)Ae[r++]=Ae[a++];for(var t=a>>2,f=r>>2,_=v>>2;t<_;)Se[f++]=Se[t++];for(a=t<<2,r=f<<2;a>1,n=r>>1,o=v>>1;st?1:-1}return 0}function Fa(r,a,e,i){if(e>=20){for(var v=r+e;r%4;)Ae[r++]=a;a<0&&(a+=256);for(var t=r>>2,f=v>>2,_=a|a<<8|a<<16|a<<24;t>2],xe[1]=Se[a+_+4>>2],e=ze[0]):"i64"==r?e=[Se[a+_>>2],Se[a+_+4>>2]]:(r="i32",e=Se[a+_>>2]),_+=le.getNativeFieldSize(r),e}for(var i,v,t,f=r,_=0,s=[];;){var n=f;if(i=Ae[f],0===i)break;if(v=Ae[f+1],i=="%".charCodeAt(0)){var o=!1,l=!1,b=!1,k=!1;r:for(;;){switch(v){case"+".charCodeAt(0):o=!0;break;case"-".charCodeAt(0):l=!0;break;case"#".charCodeAt(0):b=!0;break;case"0".charCodeAt(0):if(k)break r;k=!0;break;default:break r}f++,v=Ae[f+1]}var u=0;if(v=="*".charCodeAt(0))u=e("i32"),f++,v=Ae[f+1];else for(;v>="0".charCodeAt(0)&&v<="9".charCodeAt(0);)u=10*u+(v-"0".charCodeAt(0)),f++,v=Ae[f+1];var c=!1;if(v==".".charCodeAt(0)){var h=0;if(c=!0,f++,v=Ae[f+1],v=="*".charCodeAt(0))h=e("i32"),f++;else for(;;){var d=Ae[f+1];if(d<"0".charCodeAt(0)||d>"9".charCodeAt(0))break;h=10*h+(d-"0".charCodeAt(0)),f++}v=Ae[f+1]}else var h=6;var E;switch(String.fromCharCode(v)){case"h":var A=Ae[f+2];A=="h".charCodeAt(0)?(f++,E=1):E=2;break;case"l":var A=Ae[f+2];A=="l".charCodeAt(0)?(f++,E=8):E=4;break;case"L":case"q":case"j":E=8;break;case"z":case"t":case"I":E=4;break;default:E=null}if(E&&f++,v=Ae[f+1],["d","i","u","o","x","X","p"].indexOf(String.fromCharCode(v))!=-1){var m=v=="d".charCodeAt(0)||v=="i".charCodeAt(0);E=E||4;var t=e("i"+8*E);if(8==E&&(t=le.makeBigInt(t[0],t[1],v=="u".charCodeAt(0))),E<=4){var S=Math.pow(256,E)-1;t=(m?y:g)(t&S,8*E)}var M,C=Math.abs(t),R="";if(v=="d".charCodeAt(0)||v=="i".charCodeAt(0))M=y(t,8*E,1).toString(10);else if(v=="u".charCodeAt(0))M=g(t,8*E,1).toString(10),t=Math.abs(t);else if(v=="o".charCodeAt(0))M=(b?"0":"")+C.toString(8);else if(v=="x".charCodeAt(0)||v=="X".charCodeAt(0)){if(R=b?"0x":"",t<0){t=-t,M=(C-1).toString(16);for(var T=[],O=0;OP&&P>=-4?(v=(v=="g".charCodeAt(0)?"f":"F").charCodeAt(0),h-=P+1):(v=(v=="g".charCodeAt(0)?"e":"E").charCodeAt(0),h--),I=Math.min(h,20)}v=="e".charCodeAt(0)||v=="E".charCodeAt(0)?(M=t.toExponential(I),/[eE][-+]\\\\d$/.test(M)&&(M=M.slice(0,-1)+"0"+M.slice(-1))):v!="f".charCodeAt(0)&&v!="F".charCodeAt(0)||(M=t.toFixed(I));var D=M.split("e");if(N&&!b)for(;D[0].length>1&&D[0].indexOf(".")!=-1&&("0"==D[0].slice(-1)||"."==D[0].slice(-1));)D[0]=D[0].slice(0,-1);else for(b&&M.indexOf(".")==-1&&(D[0]+=".");h>I++;)D[0]+="0";M=D[0]+(D.length>1?"e"+D[1]:""),v=="E".charCodeAt(0)&&(M=M.toUpperCase()),o&&t>=0&&(M="+"+M)}else M=(t<0?"-":"")+"inf",k=!1;for(;M.lengthh&&(L=L.slice(0,h))):L=p("(null)",!0),!l)for(;L.length0;)s.push(" ".charCodeAt(0));l||s.push(e("i8"))}else if(v=="n".charCodeAt(0)){var X=e("i32*");Se[X>>2]=s.length}else if(v=="%".charCodeAt(0))s.push(i);else for(var O=n;O="0".charCodeAt(0)&&r<="9".charCodeAt(0)}function Ha(r){for(var a;(a=Ae[r])&&Va(a);)r++;if(!a||!Ba(a))return 0;for(var e=r;(a=Ae[e])&&Ba(a);)e++;return Math.floor(Number(s(r).substr(0,e-r)))}function Ka(r){throw ke=!0,"ABORT: "+r+", at "+(new Error).stack}function Ya(r){return Ya.ret||(Ya.ret=_([0],"i32",we)),Se[Ya.ret>>2]=r,r}function Ga(r,a,e,i){var v=$e.streams[r];if(!v||v.object.isDevice)return Ya(Ge.EBADF),-1;if(v.isWrite){if(v.object.isFolder)return Ya(Ge.EISDIR),-1;if(e<0||i<0)return Ya(Ge.EINVAL),-1;for(var t=v.object.contents;t.length>2]=a),a}function Ja(){return Ya.ret}function re(r){var a=re;a.called||(Ie=o(Ie),a.called=!0);var e=Ie;return 0!=r&&le.staticAlloc(r),e}function ae(){return Se[ae.buf>>2]}function ee(r){r=r||Module.arguments,k();var a=null;return Module._main&&(a=Module.callMain(r),Module.noExitRuntime||u()),a}var ie=[],ve=false,te="object"==typeof window,fe="function"==typeof importScripts,_e=!te&&!ve&&!fe;if(ve){print=function(r){process.stdout.write(r+"\\\\n")},printErr=function(r){process.stderr.write(r+"\\\\n")};var se=require("fs");read=function(r){var a=se.readFileSync(r).toString();return a||"/"==r[0]||(r=__dirname.split("/").slice(0,-1).join("/")+"/src/"+r,a=se.readFileSync(r).toString()),a},load=function(a){r(read(a))},ie=process.argv.slice(2)}else if(_e)this.read||(this.read=function(r){snarf(r)}),"undefined"!=typeof scriptArgs?ie=scriptArgs:"undefined"!=typeof arguments&&(ie=arguments);else if(te)this.print=printErr=function(r){console.log(r)},this.read=function(r){var a=new XMLHttpRequest;return a.open("GET",r,!1),a.send(null),a.responseText},this.arguments&&(ie=arguments);else{if(!fe)throw"Unknown runtime environment. Where are we?";this.load=importScripts}"undefined"==typeof load&&"undefined"!=typeof read&&(this.load=function(a){r(read(a))}),"undefined"==typeof printErr&&(this.printErr=function(){}),"undefined"==typeof print&&(this.print=printErr);try{this.Module=Module}catch(r){this.Module=Module={}}Module.arguments||(Module.arguments=ie),Module.print&&(print=Module.print);var ne,oe,le={stackSave:function(){return Oe},stackRestore:function(r){Oe=r},forceAlign:function(r,a){if(a=a||4,1==a)return r;if(isNumber(r)&&isNumber(a))return Math.ceil(r/a)*a;if(isNumber(a)&&isPowerOfTwo(a)){var e=log2(a);return"(((("+r+")+"+(a-1)+")>>"+e+")<<"+e+")"}return"Math.ceil(("+r+")/"+a+")*"+a},isNumberType:function(r){return r in le.INT_TYPES||r in le.FLOAT_TYPES},isPointerType:function(r){return"*"==r[r.length-1]},isStructType:function(r){return!isPointerType(r)&&(!!/^\\\\[\\\\d+\\\\ x\\\\ (.*)\\\\]/.test(r)||(!!/?/.test(r)||"%"==r[0]))},INT_TYPES:{i1:0,i8:0,i16:0,i32:0,i64:0},FLOAT_TYPES:{float:0,double:0},bitshift64:function(r,e,i,v){var t=Math.pow(2,v)-1;if(v<32)switch(i){case"shl":return[r<>>32-v];case"ashr":return[(r>>>v|(e&t)<<32-v)>>0>>>0,e>>v>>>0];case"lshr":return[(r>>>v|(e&t)<<32-v)>>>0,e>>>v]}else if(32==v)switch(i){case"shl":return[0,r];case"ashr":return[e,(0|e)<0?t:0];case"lshr":return[e,0]}else switch(i){case"shl":return[0,r<>v-32>>>0,(0|e)<0?t:0];case"lshr":return[e>>>v-32,0]}a("unknown bitshift64 op: "+[value,i,v])},or64:function(r,a){var e=0|r|(0|a),i=4294967296*(Math.round(r/4294967296)|Math.round(a/4294967296));return e+i},and64:function(r,a){var e=(0|r)&(0|a),i=4294967296*(Math.round(r/4294967296)&Math.round(a/4294967296));return e+i},xor64:function(r,a){var e=(0|r)^(0|a),i=4294967296*(Math.round(r/4294967296)^Math.round(a/4294967296));return e+i},getNativeTypeSize:function(r,a){if(1==le.QUANTUM_SIZE)return 1;var i={"%i1":1,"%i8":1,"%i16":2,"%i32":4,"%i64":8,"%float":4,"%double":8}["%"+r];if(!i)if("*"==r[r.length-1])i=le.QUANTUM_SIZE;else if("i"==r[0]){var v=parseInt(r.substr(1));e(v%8==0),i=v/8}return i},getNativeFieldSize:function(r){return Math.max(le.getNativeTypeSize(r),le.QUANTUM_SIZE)},dedup:function(r,a){var e={};return a?r.filter(function(r){return!e[r[a]]&&(e[r[a]]=!0,!0)}):r.filter(function(r){return!e[r]&&(e[r]=!0,!0)})},set:function(){for(var r="object"==typeof arguments[0]?arguments[0]:arguments,a={},e=0;e=0&&a.push(f-e),e=f,f}),r.flatSize=le.alignMemory(r.flatSize,r.alignSize),0==a.length?r.flatFactor=r.flatSize:1==le.dedup(a).length&&(r.flatFactor=a[0]),r.needsFlattening=1!=r.flatFactor,r.flatIndexes},generateStructInfo:function(r,a,i){var v,t;if(a){if(i=i||0,v=("undefined"==typeof Types?le.typeInfo:Types.types)[a],!v)return null;e(v.fields.length===r.length,"Number of named fields must match the type for "+a),t=v.flatIndexes}else{var v={fields:r.map(function(r){return r[0]})};t=le.calculateStructAlignment(v)}var f={__size__:v.flatSize};return a?r.forEach(function(r,a){if("string"==typeof r)f[r]=t[a]+i;else{var e;for(var _ in r)e=_;f[e]=le.generateStructInfo(r[e],v.fields[a],t[a])}}):r.forEach(function(r,a){f[r[1]]=t[a]}),f},stackAlloc:function(r){var a=Oe;return Oe+=r,Oe=Oe+3>>2<<2,a},staticAlloc:function(r){var a=Ie;return Ie+=r,Ie=Ie+3>>2<<2,Ie>=Le&&l(),a},alignMemory:function(r,a){var e=r=Math.ceil(r/(a?a:4))*(a?a:4);return e},makeBigInt:function(r,a,e){var i=e?(r>>>0)+4294967296*(a>>>0):(r>>>0)+4294967296*(0|a);return i},QUANTUM_SIZE:4,__dummy__:0},be={MAX_ALLOWED:0,corrections:0,sigs:{},note:function(r,e,i){e||(this.corrections++,this.corrections>=this.MAX_ALLOWED&&a("\\\\n\\\\nToo many corrections!"))},print:function(){}},ke=!1,ue=0,ce=this;Module.ccall=i,Module.setValue=t,Module.getValue=f;var he=0,de=1,we=2;Module.ALLOC_NORMAL=he,Module.ALLOC_STACK=de,Module.ALLOC_STATIC=we,Module.allocate=_,Module.Pointer_stringify=s,Module.Array_stringify=n;var pe,Ee,Ae,ge,ye,me,Se,Me,Ce,Re,Te,Oe,Ne,Ie,Pe=4096,De=Module.TOTAL_STACK||5242880,Le=Module.TOTAL_MEMORY||10485760;Module.FAST_MEMORY||2097152;e(!!(Int32Array&&Float64Array&&new Int32Array(1).subarray&&new Int32Array(1).set),"Cannot fallback to non-typed array case: Code is too specialized");var Fe=new ArrayBuffer(Le);Ae=new Int8Array(Fe),ye=new Int16Array(Fe),Se=new Int32Array(Fe),ge=new Uint8Array(Fe),me=new Uint16Array(Fe),Me=new Uint32Array(Fe),Ce=new Float32Array(Fe),Re=new Float64Array(Fe),Se[0]=255,e(255===ge[0]&&0===ge[3],"Typed arrays 2 must be run on a little-endian system");var Xe=p("(null)");Ie=Xe.length;for(var je=0;je>2)),ze=(Ce.subarray(Ue>>2),Re.subarray(Ue>>3));Ne=Ue+8,Ie=o(Ne);var Ve=[],Be=[];Module.Array_copy=c,Module.TypedArray_copy=h,Module.String_len=d,Module.String_copy=w,Module.intArrayFromString=p,Module.intArrayToString=E,Module.writeStringToMemory=A;var He=[],Ke=0;O.X=1,N.X=1,V.X=1,H.X=1,G.X=1,W.X=1,q.X=1,$.X=1,rr.X=1,ar.X=1,er.X=1,vr.X=1,nr.X=1,or.X=1,kr.X=1,hr.X=1,Ar.X=1,Sr.X=1,Tr.X=1,Ir.X=1,Pr.X=1,Dr.X=1,Lr.X=1,Fr.X=1,Xr.X=1,zr.X=1,Vr.X=1,Br.X=1,Gr.X=1,$r.X=1,Module._malloc=Jr,Jr.X=1,ra.X=1,aa.X=1,ea.X=1,ia.X=1,Module._free=va,va.X=1,_a.X=1,sa.X=1,na.X=1,oa.X=1,la.X=1,da.X=1,Ma.X=1;var Ye,Ge={E2BIG:7,EACCES:13,EADDRINUSE:98,EADDRNOTAVAIL:99,EAFNOSUPPORT:97,EAGAIN:11,EALREADY:114,EBADF:9,EBADMSG:74,EBUSY:16,ECANCELED:125,ECHILD:10,ECONNABORTED:103,ECONNREFUSED:111,ECONNRESET:104,EDEADLK:35,EDESTADDRREQ:89,EDOM:33,EDQUOT:122,EEXIST:17,EFAULT:14,EFBIG:27,EHOSTUNREACH:113,EIDRM:43,EILSEQ:84,EINPROGRESS:115,EINTR:4,EINVAL:22,EIO:5,EISCONN:106,EISDIR:21,ELOOP:40,EMFILE:24,EMLINK:31,EMSGSIZE:90,EMULTIHOP:72,ENAMETOOLONG:36,ENETDOWN:100,ENETRESET:102,ENETUNREACH:101,ENFILE:23,ENOBUFS:105,ENODATA:61,ENODEV:19,ENOENT:2,ENOEXEC:8,ENOLCK:37,ENOLINK:67,ENOMEM:12,ENOMSG:42,ENOPROTOOPT:92,ENOSPC:28,ENOSR:63,ENOSTR:60,ENOSYS:38,ENOTCONN:107,ENOTDIR:20,ENOTEMPTY:39,ENOTRECOVERABLE:131,ENOTSOCK:88,ENOTSUP:95,ENOTTY:25,ENXIO:6,EOVERFLOW:75,EOWNERDEAD:130,EPERM:1,EPIPE:32,EPROTO:71,EPROTONOSUPPORT:93,EPROTOTYPE:91,ERANGE:34,EROFS:30,ESPIPE:29,ESRCH:3,ESTALE:116,ETIME:62,ETIMEDOUT:110,ETXTBSY:26,EWOULDBLOCK:11,EXDEV:18},We=0,Ze=0,Qe=0,qe=0,$e={currentPath:"/",nextInode:2,streams:[null],ignorePermissions:!0,absolutePath:function(r,a){if("string"!=typeof r)return null;void 0===a&&(a=$e.currentPath),r&&"/"==r[0]&&(a="");for(var e=a+"/"+r,i=e.split("/").reverse(),v=[""];i.length;){var t=i.pop();""==t||"."==t||(".."==t?v.length>1&&v.pop():v.push(t))}return 1==v.length?"/":v.join("/")},analyzePath:function(r,a,e){var i={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};if(r=$e.absolutePath(r),"/"==r)i.isRoot=!0,i.exists=i.parentExists=!0,i.name="/",i.path=i.parentPath="/",i.object=i.parentObject=$e.root;else if(null!==r){e=e||0,r=r.slice(1).split("/");for(var v=$e.root,t=[""];r.length;){1==r.length&&v.isFolder&&(i.parentExists=!0,i.parentPath=1==t.length?"/":t.join("/"),i.parentObject=v,i.name=r[0]);var f=r.shift();if(!v.isFolder){i.error=Ge.ENOTDIR;break}if(!v.read){i.error=Ge.EACCES;break}if(!v.contents.hasOwnProperty(f)){i.error=Ge.ENOENT;break}if(v=v.contents[f],v.link&&(!a||0!=r.length)){if(e>40){i.error=Ge.ELOOP;break}var _=$e.absolutePath(v.link,t.join("/"));return $e.analyzePath([_].concat(r).join("/"),a,e+1)}t.push(f),0==r.length&&(i.exists=!0,i.path=t.join("/"),i.object=v)}return i}return i},findObject:function(r,a){$e.ensureRoot();var e=$e.analyzePath(r,a);return e.exists?e.object:(Ya(e.error),null)},createObject:function(r,a,e,i,v){if(r||(r="/"),"string"==typeof r&&(r=$e.findObject(r)),!r)throw Ya(Ge.EACCES),new Error("Parent path must exist.");if(!r.isFolder)throw Ya(Ge.ENOTDIR),\nnew Error("Parent must be a folder.");if(!r.write&&!$e.ignorePermissions)throw Ya(Ge.EACCES),new Error("Parent folder must be writeable.");if(!a||"."==a||".."==a)throw Ya(Ge.ENOENT),new Error("Name must not be empty.");if(r.contents.hasOwnProperty(a))throw Ya(Ge.EEXIST),new Error("Can\'t overwrite object.");r.contents[a]={read:void 0===i||i,write:void 0!==v&&v,timestamp:Date.now(),inodeNumber:$e.nextInode++};for(var t in e)e.hasOwnProperty(t)&&(r.contents[a][t]=e[t]);return r.contents[a]},createFolder:function(r,a,e,i){var v={isFolder:!0,isDevice:!1,contents:{}};return $e.createObject(r,a,v,e,i)},createPath:function(r,a,e,i){var v=$e.findObject(r);if(null===v)throw new Error("Invalid parent.");for(a=a.split("/").reverse();a.length;){var t=a.pop();t&&(v.contents.hasOwnProperty(t)||$e.createFolder(v,t,e,i),v=v.contents[t])}return v},createFile:function(r,a,e,i,v){return e.isFolder=!1,$e.createObject(r,a,e,i,v)},createDataFile:function(r,a,e,i,v){if("string"==typeof e){for(var t=new Array(e.length),f=0,_=e.length;f<_;++f)t[f]=e.charCodeAt(f);e=t}var s={isDevice:!1,contents:e};return $e.createFile(r,a,s,i,v)},createLazyFile:function(r,a,e,i,v){var t={isDevice:!1,url:e};return $e.createFile(r,a,t,i,v)},createLink:function(r,a,e,i,v){var t={isDevice:!1,link:e};return $e.createFile(r,a,t,i,v)},createDevice:function(r,a,e,i){if(!e&&!i)throw new Error("A device must have at least one callback defined.");var v={isDevice:!0,input:e,output:i};return $e.createFile(r,a,v,Boolean(e),Boolean(i))},forceLoadFile:function(r){if(r.isDevice||r.isFolder||r.link||r.contents)return!0;var a=!0;if("undefined"!=typeof XMLHttpRequest)e("Cannot do synchronous binary XHRs in modern browsers. Use --embed-file or --preload-file in emcc");else{if("undefined"==typeof read)throw new Error("Cannot load without read() or XMLHttpRequest.");try{r.contents=p(read(r.url),!0)}catch(r){a=!1}}return a||Ya(Ge.EIO),a},ensureRoot:function(){$e.root||($e.root={read:!0,write:!0,isFolder:!0,isDevice:!1,timestamp:Date.now(),inodeNumber:1,contents:{}})},init:function(r,a,i){function v(r){null===r||r==="\\\\n".charCodeAt(0)?(a.printer(a.buffer.join("")),a.buffer=[]):a.buffer.push(String.fromCharCode(r))}e(!$e.init.initialized,"FS.init was previously called. If you want to initialize later with custom parameters, remove any earlier calls (note that one is automatically added to the generated code)"),$e.init.initialized=!0,$e.ensureRoot(),r=r||Module.stdin,a=a||Module.stdout,i=i||Module.stderr;var t=!0,f=!0,s=!0;r||(t=!1,r=function(){if(!r.cache||!r.cache.length){var a;"undefined"!=typeof window&&"function"==typeof window.prompt?a=window.prompt("Input: "):"function"==typeof readline&&(a=readline()),a||(a=""),r.cache=p(a+"\\\\n",!0)}return r.cache.shift()}),a||(f=!1,a=v),a.printer||(a.printer=print),a.buffer||(a.buffer=[]),i||(s=!1,i=v),i.printer||(i.printer=print),i.buffer||(i.buffer=[]),$e.createFolder("/","tmp",!0,!0);var n=$e.createFolder("/","dev",!0,!0),o=$e.createDevice(n,"stdin",r),l=$e.createDevice(n,"stdout",null,a),b=$e.createDevice(n,"stderr",null,i);$e.createDevice(n,"tty",r,a),$e.streams[1]={path:"/dev/stdin",object:o,position:0,isRead:!0,isWrite:!1,isAppend:!1,isTerminal:!t,error:!1,eof:!1,ungotten:[]},$e.streams[2]={path:"/dev/stdout",object:l,position:0,isRead:!1,isWrite:!0,isAppend:!1,isTerminal:!f,error:!1,eof:!1,ungotten:[]},$e.streams[3]={path:"/dev/stderr",object:b,position:0,isRead:!1,isWrite:!0,isAppend:!1,isTerminal:!s,error:!1,eof:!1,ungotten:[]},We=_([1],"void*",we),Ze=_([2],"void*",we),Qe=_([3],"void*",we),$e.createPath("/","dev/shm/tmp",!0,!0),$e.streams[We]=$e.streams[1],$e.streams[Ze]=$e.streams[2],$e.streams[Qe]=$e.streams[3],qe=_([_([0,0,0,0,We,0,0,0,Ze,0,0,0,Qe,0,0,0],"void*",we)],"void*",we)},quit:function(){$e.init.initialized&&($e.streams[2]&&$e.streams[2].object.output.buffer.length>0&&$e.streams[2].object.output("\\\\n".charCodeAt(0)),$e.streams[3]&&$e.streams[3].object.output.buffer.length>0&&$e.streams[3].object.output("\\\\n".charCodeAt(0)))}},Je=Ja;Ve.unshift({func:function(){$e.ignorePermissions=!1,$e.init.initialized||$e.init()}}),Be.push({func:function(){$e.quit()}}),Ya(0),ae.buf=_(12,"void*",we),Module.callMain=function(r){function a(){for(var r=0;r<3;r++)i.push(0)}var e=r.length+1,i=[_(p("/bin/this.program"),"i8",we)];a();for(var v=0;v>2]=0|He.__str,Se[ri+4>>2]=0|He.__str1,Se[ri+16>>2]=0|He.__str2,Se[ri+20>>2]=0|He.__str3,Se[ri+32>>2]=0|He.__str4,Se[ri+36>>2]=0|He.__str5,Se[ri+48>>2]=0|He.__str6,Se[ri+52>>2]=0|He.__str7,Se[ri+64>>2]=0|He.__str8,Se[ri+68>>2]=0|He.__str7,Se[ri+80>>2]=0|He.__str9,Se[ri+84>>2]=0|He.__str10,Se[ri+96>>2]=0|He.__str11,Se[ri+100>>2]=0|He.__str12,Se[ri+112>>2]=0|He.__str13,Se[ri+116>>2]=0|He.__str14,Se[ri+128>>2]=0|He.__str15,Se[ri+132>>2]=0|He.__str16,Se[ri+144>>2]=0|He.__str17,Se[ri+148>>2]=0|He.__str18,Se[ri+160>>2]=0|He.__str19,Se[ri+164>>2]=0|He.__str20,Se[ri+176>>2]=0|He.__str21,Se[ri+180>>2]=0|He.__str22,Se[ri+192>>2]=0|He.__str23,Se[ri+196>>2]=0|He.__str24,Se[ri+208>>2]=0|He.__str25,Se[ri+212>>2]=0|He.__str26,Se[ri+224>>2]=0|He.__str27,Se[ri+228>>2]=0|He.__str28,Se[ri+240>>2]=0|He.__str29,Se[ri+244>>2]=0|He.__str30,Se[ri+256>>2]=0|He.__str31,Se[ri+260>>2]=0|He.__str32,Se[ri+272>>2]=0|He.__str33,Se[ri+276>>2]=0|He.__str34,Se[ri+288>>2]=0|He.__str35,Se[ri+292>>2]=0|He.__str36,Se[ri+304>>2]=0|He.__str37,Se[ri+308>>2]=0|He.__str38,Se[ri+320>>2]=0|He.__str39,Se[ri+324>>2]=0|He.__str40,Se[ri+336>>2]=0|He.__str41,Se[ri+340>>2]=0|He.__str42,Se[ri+352>>2]=0|He.__str43,Se[ri+356>>2]=0|He.__str44,Se[ri+368>>2]=0|He.__str45,Se[ri+372>>2]=0|He.__str46,Se[ri+384>>2]=0|He.__str47,Se[ri+388>>2]=0|He.__str48,Se[ri+400>>2]=0|He.__str49,Se[ri+404>>2]=0|He.__str119289,Se[ri+416>>2]=0|He.__str51,Se[ri+420>>2]=0|He.__str20,Se[ri+432>>2]=0|He.__str52,Se[ri+436>>2]=0|He.__str53,Se[ri+448>>2]=0|He.__str54,Se[ri+452>>2]=0|He.__str55,Se[ri+464>>2]=0|He.__str56,Se[ri+468>>2]=0|He.__str57,Se[ri+480>>2]=0|He.__str58,Se[ri+484>>2]=0|He.__str119289,Se[ri+496>>2]=0|He.__str59,Se[ri+500>>2]=0|He.__str60,Se[ri+512>>2]=0|He.__str61,Se[ri+516>>2]=0|He.__str62,Se[ri+528>>2]=0|He.__str63,Se[ri+532>>2]=0|He.__str64,Se[ri+544>>2]=0|He.__str65,Se[ri+548>>2]=0|He.__str66,Se[ri+560>>2]=0|He.__str67,Se[ri+564>>2]=0|He.__str68,Se[ri+576>>2]=0|He.__str69,Se[ri+580>>2]=0|He.__str70,Se[ri+592>>2]=0|He.__str71,Se[ri+596>>2]=0|He.__str72,Se[ri+608>>2]=0|He.__str73,Se[ri+612>>2]=0|He.__str74,Se[ri+624>>2]=0|He.__str75,Se[ri+628>>2]=0|He.__str76,Se[ri+640>>2]=0|He.__str77,Se[ri+644>>2]=0|He.__str72,Se[ri+656>>2]=0|He.__str78,Se[ri+660>>2]=0|He.__str79,Se[ri+672>>2]=0|He.__str80,Se[ri+676>>2]=0|He.__str81,Se[ri+688>>2]=0|He.__str82,Se[ri+692>>2]=0|He.__str83,Se[ri+704>>2]=0|He.__str84,Se[ri+708>>2]=0|He.__str85,Se[ri+720>>2]=0|He.__str86,Se[ri+724>>2]=0|He.__str87,Se[ri+736>>2]=0|He.__str88,Se[ri+740>>2]=0|He.__str89,Se[ri+752>>2]=0|He.__str90,Se[ri+756>>2]=0|He.__str91,Se[ri+768>>2]=0|He.__str92,Se[ri+772>>2]=0|He.__str91,Se[ai>>2]=0|He.__str145315,Se[ai+8>>2]=0|He.__str145315,Se[ai+20>>2]=0|He.__str167337,Se[ai+28>>2]=0|He.__str95,Se[ai+40>>2]=0|He.__str146316,Se[ai+48>>2]=0|He.__str97,Se[ai+60>>2]=0|He.__str155325,Se[ai+68>>2]=0|He.__str155325,Se[ai+80>>2]=0|He.__str156326,Se[ai+88>>2]=0|He.__str156326,Se[ai+100>>2]=0|He.__str154324,Se[ai+108>>2]=0|He.__str154324,Se[ai+120>>2]=0|He.__str101,Se[ai+128>>2]=0|He.__str101,Se[ai+140>>2]=0|He.__str147317,Se[ai+148>>2]=0|He.__str147317,Se[ai+160>>2]=0|He.__str150320,Se[ai+168>>2]=0|He.__str150320,Se[ai+180>>2]=0|He.__str151321,Se[ai+188>>2]=0|He.__str105,Se[ai+220>>2]=0|He.__str152322,Se[ai+228>>2]=0|He.__str152322,Se[ai+240>>2]=0|He.__str153323,Se[ai+248>>2]=0|He.__str153323,Se[ai+260>>2]=0|He.__str165335,Se[ai+268>>2]=0|He.__str165335,Se[ai+280>>2]=0|He.__str166336,Se[ai+288>>2]=0|He.__str166336,Se[ai+360>>2]=0|He.__str148318,Se[ai+368>>2]=0|He.__str148318,Se[ai+380>>2]=0|He.__str149319,Se[ai+388>>2]=0|He.__str149319,Se[ai+420>>2]=0|He.__str84254,Se[ai+428>>2]=0|He.__str84254,Se[ai+440>>2]=0|He.__str168338,Se[ai+448>>2]=0|He.__str146316,Se[ai+460>>2]=0|He.__str114,Se[ai+468>>2]=0|He.__str152322,Se[ai+480>>2]=0|He.__str115,Se[ai+488>>2]=0|He.__str115,Se[ai+500>>2]=0|He.__str110280,Se[ai+508>>2]=0|He.__str110280,Se[ei+4>>2]=0|He.__str152,Se[ei+12>>2]=0|He.__str152,Se[ei+32>>2]=0|He.__str153,Se[ei+40>>2]=0|He.__str153,Se[ei+48>>2]=0|He.__str154,Se[ei+60>>2]=0|He.__str155,Se[ei+68>>2]=0|He.__str155,Se[ei+76>>2]=0|He.__str156,Se[ei+88>>2]=0|He.__str157,Se[ei+96>>2]=0|He.__str158,Se[ei+104>>2]=0|He.__str156,Se[ei+116>>2]=0|He.__str159,Se[ei+124>>2]=0|He.__str160,Se[ei+132>>2]=0|He.__str161,Se[ei+144>>2]=0|He.__str162,Se[ei+152>>2]=0|He.__str163,Se[ei+160>>2]=0|He.__str164,Se[ei+172>>2]=0|He.__str165,Se[ei+180>>2]=0|He.__str166,Se[ei+188>>2]=0|He.__str167,Se[si+4>>2]=bi,Se[ni+4>>2]=ki,oi=_([2,0,0,0,0],["i8*",0,0,0,0],we),Se[bi>>2]=oi+8|0,Se[bi+4>>2]=0|He.__ZTSSt9bad_alloc,Se[bi+8>>2]=li,Se[ki>>2]=oi+8|0,Se[ki+4>>2]=0|He.__ZTSSt20bad_array_new_length,Se[ki+8>>2]=bi,ui=16,ci=6,hi=18,di=6,wi=6,pe=[0,0,Jr,0,va,0,ya,0,ga,0,wa,0,Sa,0,pa,0,Ea,0,ma,0],Module.FUNCTION_TABLE=pe,Module.run=ee,Module.preRun&&Module.preRun(),0==Ke){ee()}Module.postRun&&Module.postRun(),Module.___cxa_demangle=G;var pi=v("__cxa_demangle","string",["string","string","number","number"]);return function(r){return pi(r,"",1,0)}}();\n`;\n\n/***/ }),\n\n/***/ 121:\n/***/ ((__unused_webpack_module, exports, __webpack_require__) => {\n\n\n\nObject.defineProperty(exports, "__esModule", ({\n value: true\n}));\nexports.Flamechart = void 0;\n\nconst utils_1 = __webpack_require__(844);\n\nconst math_1 = __webpack_require__(293);\n\nclass Flamechart {\n constructor(source) {\n this.source = source; // Bottom to top\n\n this.layers = [];\n this.totalWeight = 0;\n this.minFrameWidth = 1;\n const stack = [];\n\n const openFrame = (node, value) => {\n const parent = utils_1.lastOf(stack);\n const frame = {\n node,\n parent,\n children: [],\n start: value,\n end: value\n };\n\n if (parent) {\n parent.children.push(frame);\n }\n\n stack.push(frame);\n };\n\n this.minFrameWidth = Infinity;\n\n const closeFrame = (node, value) => {\n console.assert(stack.length > 0);\n const stackTop = stack.pop();\n stackTop.end = value;\n if (stackTop.end - stackTop.start === 0) return;\n const layerIndex = stack.length;\n\n while (this.layers.length <= layerIndex) this.layers.push([]);\n\n this.layers[layerIndex].push(stackTop);\n this.minFrameWidth = Math.min(this.minFrameWidth, stackTop.end - stackTop.start);\n };\n\n this.totalWeight = source.getTotalWeight();\n source.forEachCall(openFrame, closeFrame);\n if (!isFinite(this.minFrameWidth)) this.minFrameWidth = 1;\n }\n\n getTotalWeight() {\n return this.totalWeight;\n }\n\n getLayers() {\n return this.layers;\n }\n\n getColorBucketForFrame(frame) {\n return this.source.getColorBucketForFrame(frame);\n }\n\n getMinFrameWidth() {\n return this.minFrameWidth;\n }\n\n formatValue(v) {\n return this.source.formatValue(v);\n }\n\n getClampedViewportWidth(viewportWidth) {\n const maxWidth = this.getTotalWeight(); // In order to avoid floating point error, we cap the maximum zoom. In\n // particular, it\'s important that at the maximum zoom level, the total\n // trace size + a viewport width is not equal to the trace size due to\n // floating point rounding.\n //\n // For instance, if the profile\'s total weight is 2^60, and the viewport\n // size is 1, trying to move one viewport width right will result in no\n // change because 2^60 + 1 = 2^60 in floating point arithmetic. JavaScript\n // numbers are 64 bit floats, and therefore have 53 mantissa bits. You can\n // see this for yourself in the console. Try:\n //\n // > Math.pow(2, 60) + 1 === Math.pow(2, 60)\n // true\n // > Math.pow(2, 53) + 1 === Math.pow(2, 53)\n // true\n // > Math.pow(2, 52) + 1 === Math.pow(2, 52)\n // false\n //\n // We use 2^40 as a cap instead, since we want to be able to make small\n // adjustments within a viewport width.\n //\n // For reference, this will still allow you to zoom until 1 nanosecond fills\n // the screen in a profile with a duration of over 18 minutes.\n //\n // > Math.pow(2, 40) / (60 * Math.pow(10, 9))\n // 18.325193796266667\n //\n\n const maxZoom = Math.pow(2, 40); // In addition to capping zoom to avoid floating point error, we further cap\n // zoom to avoid letting you zoom in so that the smallest element more than\n // fills the screen, since that probably isn\'t useful. The final zoom cap is\n // determined by the minimum zoom of either 2^40x zoom or the necessary zoom\n // for the smallest frame to fill the screen three times.\n\n const minWidth = math_1.clamp(3 * this.getMinFrameWidth(), maxWidth / maxZoom, maxWidth);\n return math_1.clamp(viewportWidth, minWidth, maxWidth);\n } // Given a desired config-space viewport rectangle, clamp the rectangle so\n // that it fits within the given flamechart. This prevents the viewport from\n // extending past the bounds of the flamechart or zooming in too far.\n\n\n getClampedConfigSpaceViewportRect({\n configSpaceViewportRect,\n renderInverted\n }) {\n const configSpaceSize = new math_1.Vec2(this.getTotalWeight(), this.getLayers().length);\n const width = this.getClampedViewportWidth(configSpaceViewportRect.size.x);\n const size = configSpaceViewportRect.size.withX(width);\n const origin = math_1.Vec2.clamp(configSpaceViewportRect.origin, new math_1.Vec2(0, renderInverted ? 0 : -1), math_1.Vec2.max(math_1.Vec2.zero, configSpaceSize.minus(size).plus(new math_1.Vec2(0, 1))));\n return new math_1.Rect(origin, configSpaceViewportRect.size.withX(width));\n }\n\n}\n\nexports.Flamechart = Flamechart;\n\n/***/ }),\n\n/***/ 293:\n/***/ ((__unused_webpack_module, exports) => {\n\n\n\nObject.defineProperty(exports, "__esModule", ({\n value: true\n}));\nexports.Rect = exports.AffineTransform = exports.Vec2 = exports.clamp = void 0;\n\nfunction clamp(x, minVal, maxVal) {\n if (x < minVal) return minVal;\n if (x > maxVal) return maxVal;\n return x;\n}\n\nexports.clamp = clamp;\n\nlet Vec2 =\n/** @class */\n(() => {\n class Vec2 {\n constructor(x, y) {\n this.x = x;\n this.y = y;\n }\n\n withX(x) {\n return new Vec2(x, this.y);\n }\n\n withY(y) {\n return new Vec2(this.x, y);\n }\n\n plus(other) {\n return new Vec2(this.x + other.x, this.y + other.y);\n }\n\n minus(other) {\n return new Vec2(this.x - other.x, this.y - other.y);\n }\n\n times(scalar) {\n return new Vec2(this.x * scalar, this.y * scalar);\n }\n\n timesPointwise(other) {\n return new Vec2(this.x * other.x, this.y * other.y);\n }\n\n dividedByPointwise(other) {\n return new Vec2(this.x / other.x, this.y / other.y);\n }\n\n dot(other) {\n return this.x * other.x + this.y * other.y;\n }\n\n equals(other) {\n return this.x === other.x && this.y === other.y;\n }\n\n approxEquals(other, epsilon = 1e-9) {\n return Math.abs(this.x - other.x) < epsilon && Math.abs(this.y - other.y) < epsilon;\n }\n\n length2() {\n return this.dot(this);\n }\n\n length() {\n return Math.sqrt(this.length2());\n }\n\n abs() {\n return new Vec2(Math.abs(this.x), Math.abs(this.y));\n }\n\n static min(a, b) {\n return new Vec2(Math.min(a.x, b.x), Math.min(a.y, b.y));\n }\n\n static max(a, b) {\n return new Vec2(Math.max(a.x, b.x), Math.max(a.y, b.y));\n }\n\n static clamp(v, min, max) {\n return new Vec2(clamp(v.x, min.x, max.x), clamp(v.y, min.y, max.y));\n }\n\n flatten() {\n return [this.x, this.y];\n }\n\n }\n\n Vec2.zero = new Vec2(0, 0);\n Vec2.unit = new Vec2(1, 1);\n return Vec2;\n})();\n\nexports.Vec2 = Vec2;\n\nclass AffineTransform {\n constructor(m00 = 1, m01 = 0, m02 = 0, m10 = 0, m11 = 1, m12 = 0) {\n this.m00 = m00;\n this.m01 = m01;\n this.m02 = m02;\n this.m10 = m10;\n this.m11 = m11;\n this.m12 = m12;\n }\n\n withScale(s) {\n let {\n m00,\n m01,\n m02,\n m10,\n m11,\n m12\n } = this;\n m00 = s.x;\n m11 = s.y;\n return new AffineTransform(m00, m01, m02, m10, m11, m12);\n }\n\n static withScale(s) {\n return new AffineTransform().withScale(s);\n }\n\n scaledBy(s) {\n return AffineTransform.withScale(s).times(this);\n }\n\n getScale() {\n return new Vec2(this.m00, this.m11);\n }\n\n withTranslation(t) {\n let {\n m00,\n m01,\n m02,\n m10,\n m11,\n m12\n } = this;\n m02 = t.x;\n m12 = t.y;\n return new AffineTransform(m00, m01, m02, m10, m11, m12);\n }\n\n static withTranslation(t) {\n return new AffineTransform().withTranslation(t);\n }\n\n getTranslation() {\n return new Vec2(this.m02, this.m12);\n }\n\n translatedBy(t) {\n return AffineTransform.withTranslation(t).times(this);\n }\n\n static betweenRects(from, to) {\n return AffineTransform.withTranslation(from.origin.times(-1)).scaledBy(new Vec2(to.size.x / from.size.x, to.size.y / from.size.y)).translatedBy(to.origin);\n }\n\n times(other) {\n const m00 = this.m00 * other.m00 + this.m01 * other.m10;\n const m01 = this.m00 * other.m01 + this.m01 * other.m11;\n const m02 = this.m00 * other.m02 + this.m01 * other.m12 + this.m02;\n const m10 = this.m10 * other.m00 + this.m11 * other.m10;\n const m11 = this.m10 * other.m01 + this.m11 * other.m11;\n const m12 = this.m10 * other.m02 + this.m11 * other.m12 + this.m12;\n return new AffineTransform(m00, m01, m02, m10, m11, m12);\n }\n\n equals(other) {\n return this.m00 == other.m00 && this.m01 == other.m01 && this.m02 == other.m02 && this.m10 == other.m10 && this.m11 == other.m11 && this.m12 == other.m12;\n }\n\n approxEquals(other, epsilon = 1e-9) {\n return Math.abs(this.m00 - other.m00) < epsilon && Math.abs(this.m01 - other.m01) < epsilon && Math.abs(this.m02 - other.m02) < epsilon && Math.abs(this.m10 - other.m10) < epsilon && Math.abs(this.m11 - other.m11) < epsilon && Math.abs(this.m12 - other.m12) < epsilon;\n }\n\n timesScalar(s) {\n const {\n m00,\n m01,\n m02,\n m10,\n m11,\n m12\n } = this;\n return new AffineTransform(s * m00, s * m01, s * m02, s * m10, s * m11, s * m12);\n }\n\n det() {\n const {\n m00,\n m01,\n m02,\n m10,\n m11,\n m12\n } = this;\n const m20 = 0;\n const m21 = 0;\n const m22 = 1;\n return m00 * (m11 * m22 - m12 * m21) - m01 * (m10 * m22 - m12 * m20) + m02 * (m10 * m21 - m11 * m20);\n }\n\n adj() {\n const {\n m00,\n m01,\n m02,\n m10,\n m11,\n m12\n } = this;\n const m20 = 0;\n const m21 = 0;\n const m22 = 1; // Adjugate matrix (a) is the transpose of the\n // cofactor matrix (c).\n //\n // 00 01 02\n // 10 11 12\n // 20 21 22\n\n const a00 =\n /* c00 = */\n +(m11 * m22 - m12 * m21);\n const a01 =\n /* c10 = */\n -(m01 * m22 - m02 * m21);\n const a02 =\n /* c20 = */\n +(m01 * m12 - m02 * m11);\n const a10 =\n /* c01 = */\n -(m10 * m22 - m12 * m20);\n const a11 =\n /* c11 = */\n +(m00 * m22 - m02 * m20);\n const a12 =\n /* c21 = */\n -(m00 * m12 - m02 * m10);\n return new AffineTransform(a00, a01, a02, a10, a11, a12);\n }\n\n inverted() {\n const det = this.det();\n if (det === 0) return null;\n const adj = this.adj();\n return adj.timesScalar(1 / det);\n }\n\n transformVector(v) {\n return new Vec2(v.x * this.m00 + v.y * this.m01, v.x * this.m10 + v.y * this.m11);\n }\n\n inverseTransformVector(v) {\n const inv = this.inverted();\n if (!inv) return null;\n return inv.transformVector(v);\n }\n\n transformPosition(v) {\n return new Vec2(v.x * this.m00 + v.y * this.m01 + this.m02, v.x * this.m10 + v.y * this.m11 + this.m12);\n }\n\n inverseTransformPosition(v) {\n const inv = this.inverted();\n if (!inv) return null;\n return inv.transformPosition(v);\n }\n\n transformRect(r) {\n const size = this.transformVector(r.size);\n const origin = this.transformPosition(r.origin);\n\n if (size.x < 0 && size.y < 0) {\n return new Rect(origin.plus(size), size.abs());\n } else if (size.x < 0) {\n return new Rect(origin.withX(origin.x + size.x), size.abs());\n } else if (size.y < 0) {\n return new Rect(origin.withY(origin.y + size.y), size.abs());\n }\n\n return new Rect(origin, size);\n }\n\n inverseTransformRect(r) {\n const inv = this.inverted();\n if (!inv) return null;\n return inv.transformRect(r);\n }\n\n flatten() {\n // Flatten into GLSL format\n // prettier-ignore\n return [this.m00, this.m10, 0, this.m01, this.m11, 0, this.m02, this.m12, 1];\n }\n\n}\n\nexports.AffineTransform = AffineTransform;\n\nlet Rect =\n/** @class */\n(() => {\n class Rect {\n constructor(origin, size) {\n this.origin = origin;\n this.size = size;\n }\n\n isEmpty() {\n return this.width() == 0 || this.height() == 0;\n }\n\n width() {\n return this.size.x;\n }\n\n height() {\n return this.size.y;\n }\n\n left() {\n return this.origin.x;\n }\n\n right() {\n return this.left() + this.width();\n }\n\n top() {\n return this.origin.y;\n }\n\n bottom() {\n return this.top() + this.height();\n }\n\n topLeft() {\n return this.origin;\n }\n\n topRight() {\n return this.origin.plus(new Vec2(this.width(), 0));\n }\n\n bottomRight() {\n return this.origin.plus(this.size);\n }\n\n bottomLeft() {\n return this.origin.plus(new Vec2(0, this.height()));\n }\n\n withOrigin(origin) {\n return new Rect(origin, this.size);\n }\n\n withSize(size) {\n return new Rect(this.origin, size);\n }\n\n closestPointTo(p) {\n return new Vec2(clamp(p.x, this.left(), this.right()), clamp(p.y, this.top(), this.bottom()));\n }\n\n distanceFrom(p) {\n return p.minus(this.closestPointTo(p)).length();\n }\n\n contains(p) {\n return this.distanceFrom(p) === 0;\n }\n\n hasIntersectionWith(other) {\n const top = Math.max(this.top(), other.top());\n const bottom = Math.max(top, Math.min(this.bottom(), other.bottom()));\n if (bottom - top === 0) return false;\n const left = Math.max(this.left(), other.left());\n const right = Math.max(left, Math.min(this.right(), other.right()));\n if (right - left === 0) return false;\n return true;\n }\n\n intersectWith(other) {\n const topLeft = Vec2.max(this.topLeft(), other.topLeft());\n const bottomRight = Vec2.max(topLeft, Vec2.min(this.bottomRight(), other.bottomRight()));\n return new Rect(topLeft, bottomRight.minus(topLeft));\n }\n\n equals(other) {\n return this.origin.equals(other.origin) && this.size.equals(other.size);\n }\n\n approxEquals(other) {\n return this.origin.approxEquals(other.origin) && this.size.approxEquals(other.size);\n }\n\n area() {\n return this.size.x * this.size.y;\n }\n\n }\n\n Rect.empty = new Rect(Vec2.zero, Vec2.zero);\n Rect.unit = new Rect(Vec2.zero, Vec2.unit);\n Rect.NDC = new Rect(new Vec2(-1, -1), new Vec2(2, 2));\n return Rect;\n})();\n\nexports.Rect = Rect;\n\n/***/ }),\n\n/***/ 211:\n/***/ (function(__unused_webpack_module, exports, __webpack_require__) {\n\n\n\nvar __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function () {\n return m[k];\n }\n });\n} : function (o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\n\nvar __setModuleDefault = this && this.__setModuleDefault || (Object.create ? function (o, v) {\n Object.defineProperty(o, "default", {\n enumerable: true,\n value: v\n });\n} : function (o, v) {\n o["default"] = v;\n});\n\nvar __importStar = this && this.__importStar || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n\n __setModuleDefault(result, mod);\n\n return result;\n};\n\nvar __awaiter = this && this.__awaiter || function (thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function (resolve) {\n resolve(value);\n });\n }\n\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n\n function rejected(value) {\n try {\n step(generator["throw"](value));\n } catch (e) {\n reject(e);\n }\n }\n\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\n\nObject.defineProperty(exports, "__esModule", ({\n value: true\n}));\nexports.CallTreeProfileBuilder = exports.StackListProfileBuilder = exports.Profile = exports.CallTreeNode = exports.Frame = exports.HasWeights = void 0;\n\nconst utils_1 = __webpack_require__(844);\n\nconst value_formatters_1 = __webpack_require__(218);\n\nconst demangleCppModule = Promise.resolve().then(() => __importStar(__webpack_require__(765))); // Force eager loading of the module\n\ndemangleCppModule.then(() => {});\n\nclass HasWeights {\n constructor() {\n this.selfWeight = 0;\n this.totalWeight = 0;\n }\n\n getSelfWeight() {\n return this.selfWeight;\n }\n\n getTotalWeight() {\n return this.totalWeight;\n }\n\n addToTotalWeight(delta) {\n this.totalWeight += delta;\n }\n\n addToSelfWeight(delta) {\n this.selfWeight += delta;\n }\n\n overwriteWeightWith(other) {\n this.selfWeight = other.selfWeight;\n this.totalWeight = other.totalWeight;\n }\n\n}\n\nexports.HasWeights = HasWeights;\n\nlet Frame =\n/** @class */\n(() => {\n class Frame extends HasWeights {\n constructor(info) {\n super();\n this.key = info.key;\n this.name = info.name;\n this.file = info.file;\n this.line = info.line;\n this.col = info.col;\n }\n\n static getOrInsert(set, info) {\n return set.getOrInsert(new Frame(info));\n }\n\n }\n\n Frame.root = new Frame({\n key: \'(speedscope root)\',\n name: \'(speedscope root)\'\n });\n return Frame;\n})();\n\nexports.Frame = Frame;\n\nclass CallTreeNode extends HasWeights {\n constructor(frame, parent) {\n super();\n this.frame = frame;\n this.parent = parent;\n this.children = []; // If a node is "frozen", it means it should no longer be mutated.\n\n this.frozen = false;\n }\n\n isRoot() {\n return this.frame === Frame.root;\n }\n\n isFrozen() {\n return this.frozen;\n }\n\n freeze() {\n this.frozen = true;\n }\n\n}\n\nexports.CallTreeNode = CallTreeNode;\n\nclass Profile {\n constructor(totalWeight = 0) {\n this.name = \'\';\n this.frames = new utils_1.KeyedSet(); // Profiles store two call-trees.\n //\n // The "append order" call tree is the one in which nodes are ordered in\n // whatever order they were appended to their parent.\n //\n // The "grouped" call tree is one in which each node has at most one child per\n // frame. Nodes are ordered in decreasing order of weight\n\n this.appendOrderCalltreeRoot = new CallTreeNode(Frame.root, null);\n this.groupedCalltreeRoot = new CallTreeNode(Frame.root, null); // List of references to CallTreeNodes at the top of the\n // stack at the time of the sample.\n\n this.samples = [];\n this.weights = [];\n this.valueFormatter = new value_formatters_1.RawValueFormatter();\n this.totalNonIdleWeight = null;\n this.totalWeight = totalWeight;\n }\n\n getAppendOrderCalltreeRoot() {\n return this.appendOrderCalltreeRoot;\n }\n\n getGroupedCalltreeRoot() {\n return this.groupedCalltreeRoot;\n }\n\n formatValue(v) {\n return this.valueFormatter.format(v);\n }\n\n setValueFormatter(f) {\n this.valueFormatter = f;\n }\n\n getWeightUnit() {\n return this.valueFormatter.unit;\n }\n\n getName() {\n return this.name;\n }\n\n setName(name) {\n this.name = name;\n }\n\n getTotalWeight() {\n return this.totalWeight;\n }\n\n getTotalNonIdleWeight() {\n if (this.totalNonIdleWeight === null) {\n this.totalNonIdleWeight = this.groupedCalltreeRoot.children.reduce((n, c) => n + c.getTotalWeight(), 0);\n }\n\n return this.totalNonIdleWeight;\n } // This is private because it should only be called in the ProfileBuilder\n // classes. Once a Profile instance has been constructed, it should be treated\n // as immutable.\n\n\n sortGroupedCallTree() {\n function visit(node) {\n node.children.sort((a, b) => -(a.getTotalWeight() - b.getTotalWeight()));\n node.children.forEach(visit);\n }\n\n visit(this.groupedCalltreeRoot);\n }\n\n forEachCallGrouped(openFrame, closeFrame) {\n function visit(node, start) {\n if (node.frame !== Frame.root) {\n openFrame(node, start);\n }\n\n let childTime = 0;\n node.children.forEach(function (child) {\n visit(child, start + childTime);\n childTime += child.getTotalWeight();\n });\n\n if (node.frame !== Frame.root) {\n closeFrame(node, start + node.getTotalWeight());\n }\n }\n\n visit(this.groupedCalltreeRoot, 0);\n }\n\n forEachCall(openFrame, closeFrame) {\n let prevStack = [];\n let value = 0;\n let sampleIndex = 0;\n\n for (let stackTop of this.samples) {\n // Find lowest common ancestor of the current stack and the previous one\n let lca = null; // This is O(n^2), but n should be relatively small here (stack height),\n // so hopefully this isn\'t much of a problem\n\n for (lca = stackTop; lca && lca.frame != Frame.root && prevStack.indexOf(lca) === -1; lca = lca.parent) {} // Close frames that are no longer open\n\n\n while (prevStack.length > 0 && utils_1.lastOf(prevStack) != lca) {\n const node = prevStack.pop();\n closeFrame(node, value);\n } // Open frames that are now becoming open\n\n\n const toOpen = [];\n\n for (let node = stackTop; node && node.frame != Frame.root && node != lca; node = node.parent) {\n toOpen.push(node);\n }\n\n toOpen.reverse();\n\n for (let node of toOpen) {\n openFrame(node, value);\n }\n\n prevStack = prevStack.concat(toOpen);\n value += this.weights[sampleIndex++];\n } // Close frames that are open at the end of the trace\n\n\n for (let i = prevStack.length - 1; i >= 0; i--) {\n closeFrame(prevStack[i], value);\n }\n }\n\n forEachFrame(fn) {\n this.frames.forEach(fn);\n }\n\n getProfileWithRecursionFlattened() {\n const builder = new CallTreeProfileBuilder();\n const stack = [];\n const framesInStack = new Set();\n\n function openFrame(node, value) {\n if (framesInStack.has(node.frame)) {\n stack.push(null);\n } else {\n framesInStack.add(node.frame);\n stack.push(node);\n builder.enterFrame(node.frame, value);\n }\n }\n\n function closeFrame(node, value) {\n const stackTop = stack.pop();\n\n if (stackTop) {\n framesInStack.delete(stackTop.frame);\n builder.leaveFrame(stackTop.frame, value);\n }\n }\n\n this.forEachCall(openFrame, closeFrame);\n const flattenedProfile = builder.build();\n flattenedProfile.name = this.name;\n flattenedProfile.valueFormatter = this.valueFormatter; // When constructing a profile with recursion flattened,\n // counter-intuitive things can happen to "self time" measurements\n // for functions.\n // For example, given the following list of stacks w/ weights:\n //\n // a 1\n // a;b;a 1\n // a;b;a;b;a 1\n // a;b;a 1\n //\n // The resulting profile with recursion flattened out will look like this:\n //\n // a 1\n // a;b 3\n //\n // Which is useful to view, but it\'s counter-intuitive to move self-time\n // for frames around, since analyzing the self-time of functions is an important\n // thing to be able to do accurately, and we don\'t want this to change when recursion\n // is flattened. To work around that, we\'ll just copy the weights directly from the\n // un-flattened profile.\n\n this.forEachFrame(f => {\n flattenedProfile.frames.getOrInsert(f).overwriteWeightWith(f);\n });\n return flattenedProfile;\n }\n\n getInvertedProfileForCallersOf(focalFrameInfo) {\n const focalFrame = Frame.getOrInsert(this.frames, focalFrameInfo);\n const builder = new StackListProfileBuilder(); // TODO(jlfwong): Could construct this at profile\n // construction time rather than on demand.\n\n const nodes = [];\n\n function visit(node) {\n if (node.frame === focalFrame) {\n nodes.push(node);\n } else {\n for (let child of node.children) {\n visit(child);\n }\n }\n }\n\n visit(this.appendOrderCalltreeRoot);\n\n for (let node of nodes) {\n const stack = [];\n\n for (let n = node; n != null && n.frame !== Frame.root; n = n.parent) {\n stack.push(n.frame);\n }\n\n builder.appendSampleWithWeight(stack, node.getTotalWeight());\n }\n\n const ret = builder.build();\n ret.name = this.name;\n ret.valueFormatter = this.valueFormatter;\n return ret;\n }\n\n getProfileForCalleesOf(focalFrameInfo) {\n const focalFrame = Frame.getOrInsert(this.frames, focalFrameInfo);\n const builder = new StackListProfileBuilder();\n\n function recordSubtree(focalFrameNode) {\n const stack = [];\n\n function visit(node) {\n stack.push(node.frame);\n builder.appendSampleWithWeight(stack, node.getSelfWeight());\n\n for (let child of node.children) {\n visit(child);\n }\n\n stack.pop();\n }\n\n visit(focalFrameNode);\n }\n\n function findCalls(node) {\n if (node.frame === focalFrame) {\n recordSubtree(node);\n } else {\n for (let child of node.children) {\n findCalls(child);\n }\n }\n }\n\n findCalls(this.appendOrderCalltreeRoot);\n const ret = builder.build();\n ret.name = this.name;\n ret.valueFormatter = this.valueFormatter;\n return ret;\n } // Demangle symbols for readability\n\n\n demangle() {\n return __awaiter(this, void 0, void 0, function* () {\n let demangleCpp = null;\n\n for (let frame of this.frames) {\n // This function converts a mangled C++ name such as "__ZNK7Support6ColorFeqERKS0_"\n // into a human-readable symbol (in this case "Support::ColorF::==(Support::ColorF&)")\n if (frame.name.startsWith(\'__Z\')) {\n if (!demangleCpp) {\n demangleCpp = (yield demangleCppModule).demangleCpp;\n }\n\n frame.name = demangleCpp(frame.name);\n }\n }\n });\n }\n\n remapNames(callback) {\n for (let frame of this.frames) {\n frame.name = callback(frame.name);\n }\n }\n\n}\n\nexports.Profile = Profile;\n\nclass StackListProfileBuilder extends Profile {\n constructor() {\n super(...arguments);\n this.pendingSample = null;\n }\n\n _appendSample(stack, weight, useAppendOrder) {\n if (isNaN(weight)) throw new Error(\'invalid weight\');\n let node = useAppendOrder ? this.appendOrderCalltreeRoot : this.groupedCalltreeRoot;\n let framesInStack = new Set();\n\n for (let frameInfo of stack) {\n const frame = Frame.getOrInsert(this.frames, frameInfo);\n const last = useAppendOrder ? utils_1.lastOf(node.children) : node.children.find(c => c.frame === frame);\n\n if (last && !last.isFrozen() && last.frame == frame) {\n node = last;\n } else {\n const parent = node;\n node = new CallTreeNode(frame, node);\n parent.children.push(node);\n }\n\n node.addToTotalWeight(weight); // It\'s possible for the same frame to occur multiple\n // times in the same call stack due to either direct\n // or indirect recursion. We want to avoid counting that\n // frame multiple times for a single sample, we so just\n // track all of the unique frames that participated in\n // this call stack, then add to their weight at the end.\n\n framesInStack.add(node.frame);\n }\n\n node.addToSelfWeight(weight);\n\n if (useAppendOrder) {\n for (let child of node.children) {\n child.freeze();\n }\n }\n\n if (useAppendOrder) {\n node.frame.addToSelfWeight(weight);\n\n for (let frame of framesInStack) {\n frame.addToTotalWeight(weight);\n }\n\n if (node === utils_1.lastOf(this.samples)) {\n this.weights[this.weights.length - 1] += weight;\n } else {\n this.samples.push(node);\n this.weights.push(weight);\n }\n }\n }\n\n appendSampleWithWeight(stack, weight) {\n if (weight === 0) {\n // Samples with zero weight have no effect, so let\'s ignore them\n return;\n }\n\n if (weight < 0) {\n throw new Error(\'Samples must have positive weights\');\n }\n\n this._appendSample(stack, weight, true);\n\n this._appendSample(stack, weight, false);\n }\n\n appendSampleWithTimestamp(stack, timestamp) {\n if (this.pendingSample) {\n if (timestamp < this.pendingSample.centralTimestamp) {\n throw new Error(\'Timestamps received out of order\');\n }\n\n const endTimestamp = (timestamp + this.pendingSample.centralTimestamp) / 2;\n this.appendSampleWithWeight(this.pendingSample.stack, endTimestamp - this.pendingSample.startTimestamp);\n this.pendingSample = {\n stack,\n startTimestamp: endTimestamp,\n centralTimestamp: timestamp\n };\n } else {\n this.pendingSample = {\n stack,\n startTimestamp: timestamp,\n centralTimestamp: timestamp\n };\n }\n }\n\n build() {\n if (this.pendingSample) {\n if (this.samples.length > 0) {\n this.appendSampleWithWeight(this.pendingSample.stack, this.pendingSample.centralTimestamp - this.pendingSample.startTimestamp);\n } else {\n // There is only a single sample. In this case, units will be meaningless,\n // so we\'ll append with a weight of 1 and also clear any value formatter\n this.appendSampleWithWeight(this.pendingSample.stack, 1);\n this.setValueFormatter(new value_formatters_1.RawValueFormatter());\n }\n }\n\n this.totalWeight = Math.max(this.totalWeight, this.weights.reduce((a, b) => a + b, 0));\n this.sortGroupedCallTree();\n return this;\n }\n\n}\n\nexports.StackListProfileBuilder = StackListProfileBuilder; // As an alternative API for importing profiles more efficiently, provide a\n// way to open & close frames directly without needing to construct tons of\n// arrays as intermediaries.\n\nclass CallTreeProfileBuilder extends Profile {\n constructor() {\n super(...arguments);\n this.appendOrderStack = [this.appendOrderCalltreeRoot];\n this.groupedOrderStack = [this.groupedCalltreeRoot];\n this.framesInStack = new Map();\n this.stack = [];\n this.lastValue = 0;\n }\n\n addWeightsToFrames(value) {\n const delta = value - this.lastValue;\n\n for (let frame of this.framesInStack.keys()) {\n frame.addToTotalWeight(delta);\n }\n\n const stackTop = utils_1.lastOf(this.stack);\n\n if (stackTop) {\n stackTop.addToSelfWeight(delta);\n }\n }\n\n addWeightsToNodes(value, stack) {\n const delta = value - this.lastValue;\n\n for (let node of stack) {\n node.addToTotalWeight(delta);\n }\n\n const stackTop = utils_1.lastOf(stack);\n\n if (stackTop) {\n stackTop.addToSelfWeight(delta);\n }\n }\n\n _enterFrame(frame, value, useAppendOrder) {\n let stack = useAppendOrder ? this.appendOrderStack : this.groupedOrderStack;\n this.addWeightsToNodes(value, stack);\n let prevTop = utils_1.lastOf(stack);\n\n if (prevTop) {\n if (useAppendOrder) {\n const delta = value - this.lastValue;\n\n if (delta > 0) {\n this.samples.push(prevTop);\n this.weights.push(value - this.lastValue);\n } else if (delta < 0) {\n throw new Error(`Samples must be provided in increasing order of cumulative value. Last sample was ${this.lastValue}, this sample was ${value}`);\n }\n }\n\n const last = useAppendOrder ? utils_1.lastOf(prevTop.children) : prevTop.children.find(c => c.frame === frame);\n let node;\n\n if (last && !last.isFrozen() && last.frame == frame) {\n node = last;\n } else {\n node = new CallTreeNode(frame, prevTop);\n prevTop.children.push(node);\n }\n\n stack.push(node);\n }\n }\n\n enterFrame(frameInfo, value) {\n const frame = Frame.getOrInsert(this.frames, frameInfo);\n this.addWeightsToFrames(value);\n\n this._enterFrame(frame, value, true);\n\n this._enterFrame(frame, value, false);\n\n this.stack.push(frame);\n const frameCount = this.framesInStack.get(frame) || 0;\n this.framesInStack.set(frame, frameCount + 1);\n this.lastValue = value;\n }\n\n _leaveFrame(frame, value, useAppendOrder) {\n let stack = useAppendOrder ? this.appendOrderStack : this.groupedOrderStack;\n this.addWeightsToNodes(value, stack);\n\n if (useAppendOrder) {\n const leavingStackTop = this.appendOrderStack.pop();\n\n if (leavingStackTop == null) {\n throw new Error(`Trying to leave ${frame.key} when stack is empty`);\n }\n\n if (this.lastValue == null) {\n throw new Error(`Trying to leave a ${frame.key} before any have been entered`);\n }\n\n leavingStackTop.freeze();\n\n if (leavingStackTop.frame.key !== frame.key) {\n throw new Error(`Tried to leave frame "${frame.name}" while frame "${leavingStackTop.frame.name}" was at the top at ${value}`);\n }\n\n const delta = value - this.lastValue;\n\n if (delta > 0) {\n this.samples.push(leavingStackTop);\n this.weights.push(value - this.lastValue);\n } else if (delta < 0) {\n throw new Error(`Samples must be provided in increasing order of cumulative value. Last sample was ${this.lastValue}, this sample was ${value}`);\n }\n } else {\n this.groupedOrderStack.pop();\n }\n }\n\n leaveFrame(frameInfo, value) {\n const frame = Frame.getOrInsert(this.frames, frameInfo);\n this.addWeightsToFrames(value);\n\n this._leaveFrame(frame, value, true);\n\n this._leaveFrame(frame, value, false);\n\n this.stack.pop();\n const frameCount = this.framesInStack.get(frame);\n if (frameCount == null) return;\n\n if (frameCount === 1) {\n this.framesInStack.delete(frame);\n } else {\n this.framesInStack.set(frame, frameCount - 1);\n }\n\n this.lastValue = value;\n this.totalWeight = Math.max(this.totalWeight, this.lastValue);\n }\n\n build() {\n // Each stack is expected to contain a single node which we initialize to be\n // the root node.\n if (this.appendOrderStack.length > 1 || this.groupedOrderStack.length > 1) {\n throw new Error(\'Tried to complete profile construction with a non-empty stack\');\n }\n\n this.sortGroupedCallTree();\n return this;\n }\n\n}\n\nexports.CallTreeProfileBuilder = CallTreeProfileBuilder;\n\n/***/ }),\n\n/***/ 844:\n/***/ ((__unused_webpack_module, exports) => {\n\n\n\nObject.defineProperty(exports, "__esModule", ({\n value: true\n}));\nexports.decodeBase64 = exports.lazyStatic = exports.memoizeByReference = exports.memoizeByShallowEquality = exports.objectsHaveShallowEquality = exports.noop = exports.binarySearch = exports.triangle = exports.fract = exports.formatPercent = exports.zeroPad = exports.itReduce = exports.itForEach = exports.itMap = exports.KeyedSet = exports.getOrThrow = exports.getOrElse = exports.getOrInsert = exports.sortBy = exports.lastOf = void 0;\n\nfunction lastOf(ts) {\n return ts[ts.length - 1] || null;\n}\n\nexports.lastOf = lastOf;\n\nfunction sortBy(ts, key) {\n function comparator(a, b) {\n const keyA = key(a);\n const keyB = key(b);\n return keyA < keyB ? -1 : keyA > keyB ? 1 : 0;\n }\n\n ts.sort(comparator);\n}\n\nexports.sortBy = sortBy;\n\nfunction getOrInsert(map, k, fallback) {\n if (!map.has(k)) map.set(k, fallback(k));\n return map.get(k);\n}\n\nexports.getOrInsert = getOrInsert;\n\nfunction getOrElse(map, k, fallback) {\n if (!map.has(k)) return fallback(k);\n return map.get(k);\n}\n\nexports.getOrElse = getOrElse;\n\nfunction getOrThrow(map, k) {\n if (!map.has(k)) {\n throw new Error(`Expected key ${k}`);\n }\n\n return map.get(k);\n}\n\nexports.getOrThrow = getOrThrow;\n\nclass KeyedSet {\n constructor() {\n this.map = new Map();\n }\n\n getOrInsert(t) {\n const key = t.key;\n const existing = this.map.get(key);\n if (existing) return existing;\n this.map.set(key, t);\n return t;\n }\n\n forEach(fn) {\n this.map.forEach(fn);\n }\n\n [Symbol.iterator]() {\n return this.map.values();\n }\n\n}\n\nexports.KeyedSet = KeyedSet;\n\nfunction* itMap(it, f) {\n for (let t of it) {\n yield f(t);\n }\n}\n\nexports.itMap = itMap;\n\nfunction itForEach(it, f) {\n for (let t of it) {\n f(t);\n }\n}\n\nexports.itForEach = itForEach;\n\nfunction itReduce(it, f, init) {\n let accum = init;\n\n for (let t of it) {\n accum = f(accum, t);\n }\n\n return accum;\n}\n\nexports.itReduce = itReduce;\n\nfunction zeroPad(s, width) {\n return new Array(Math.max(width - s.length, 0) + 1).join(\'0\') + s;\n}\n\nexports.zeroPad = zeroPad;\n\nfunction formatPercent(percent) {\n let formattedPercent = `${percent.toFixed(0)}%`;\n if (percent === 100) formattedPercent = \'100%\';else if (percent > 99) formattedPercent = \'>99%\';else if (percent < 0.01) formattedPercent = \'<0.01%\';else if (percent < 1) formattedPercent = `${percent.toFixed(2)}%`;else if (percent < 10) formattedPercent = `${percent.toFixed(1)}%`;\n return formattedPercent;\n}\n\nexports.formatPercent = formatPercent;\n\nfunction fract(x) {\n return x - Math.floor(x);\n}\n\nexports.fract = fract;\n\nfunction triangle(x) {\n return 2.0 * Math.abs(fract(x) - 0.5) - 1.0;\n}\n\nexports.triangle = triangle;\n\nfunction binarySearch(lo, hi, f, target, targetRangeSize = 1) {\n console.assert(!isNaN(targetRangeSize) && !isNaN(target));\n\n while (true) {\n if (hi - lo <= targetRangeSize) return [lo, hi];\n const mid = (hi + lo) / 2;\n const val = f(mid);\n if (val < target) lo = mid;else hi = mid;\n }\n}\n\nexports.binarySearch = binarySearch;\n\nfunction noop(...args) {}\n\nexports.noop = noop;\n\nfunction objectsHaveShallowEquality(a, b) {\n for (let key in a) {\n if (a[key] !== b[key]) return false;\n }\n\n for (let key in b) {\n if (a[key] !== b[key]) return false;\n }\n\n return true;\n}\n\nexports.objectsHaveShallowEquality = objectsHaveShallowEquality;\n\nfunction memoizeByShallowEquality(cb) {\n let last = null;\n return args => {\n let result;\n\n if (last == null) {\n result = cb(args);\n last = {\n args,\n result\n };\n return result;\n } else if (objectsHaveShallowEquality(last.args, args)) {\n return last.result;\n } else {\n last.args = args;\n last.result = cb(args);\n return last.result;\n }\n };\n}\n\nexports.memoizeByShallowEquality = memoizeByShallowEquality;\n\nfunction memoizeByReference(cb) {\n let last = null;\n return args => {\n let result;\n\n if (last == null) {\n result = cb(args);\n last = {\n args,\n result\n };\n return result;\n } else if (last.args === args) {\n return last.result;\n } else {\n last.args = args;\n last.result = cb(args);\n return last.result;\n }\n };\n}\n\nexports.memoizeByReference = memoizeByReference;\n\nfunction lazyStatic(cb) {\n let last = null;\n return () => {\n if (last == null) {\n last = {\n result: cb()\n };\n }\n\n return last.result;\n };\n}\n\nexports.lazyStatic = lazyStatic;\nconst base64lookupTable = lazyStatic(() => {\n const alphabet = \'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\';\n const ret = new Map();\n\n for (let i = 0; i < alphabet.length; i++) {\n ret.set(alphabet.charAt(i), i);\n }\n\n ret.set(\'=\', -1);\n return ret;\n}); // NOTE: There are probably simpler solutions to this problem, but I have this written already, so\n// until we run into problems with this, let\'s just use this.\n//\n// See: https://developer.mozilla.org/en-US/docs/Web/API/WindowBase64/Base64_encoding_and_decoding#The_Unicode_Problem#The_Unicode_Problem\n\nfunction decodeBase64(encoded) {\n // Reference: https://www.rfc-editor.org/rfc/rfc4648.txt\n const lookupTable = base64lookupTable(); // 3 byte groups are represented as sequneces of 4 characters.\n //\n // "The encoding process represents 24-bit groups of input bits as output\n // strings of 4 encoded characters."\n //\n // "Special processing is performed if fewer than 24 bits are available\n // at the end of the data being encoded. A full encoding quantum is\n // always completed at the end of a quantity. When fewer than 24 input\n // bits are available in an input group bits with value zero are added\n // (on the right) to form an integral number of 6-bit groups."\n\n if (encoded.length % 4 !== 0) {\n throw new Error(`Invalid length for base64 encoded string. Expected length % 4 = 0, got length = ${encoded.length}`);\n }\n\n const quartetCount = encoded.length / 4;\n let byteCount; // Special processing is performed if fewer than 24 bits are available\n // at the end of the data being encoded. A full encoding quantum is\n // always completed at the end of a quantity. When fewer than 24 input\n // bits are available in an input group, bits with value zero are added\n // (on the right) to form an integral number of 6-bit groups. Padding\n // at the end of the data is performed using the \'=\' character. Since\n // all base 64 input is an integral number of octets, only the following\n // cases can arise:\n //\n // (1) The final quantum of encoding input is an integral multiple of 24\n // bits; here, the final unit of encoded output will be an integral\n // multiple of 4 characters with no "=" padding.\n //\n // (2) The final quantum of encoding input is exactly 8 bits; here, the\n // final unit of encoded output will be two characters followed by\n // two "=" padding characters.\n //\n // (3) The final quantum of encoding input is exactly 16 bits; here, the\n // final unit of encoded output will be three characters followed by\n // one "=" padding character.\n\n if (encoded.length >= 4) {\n if (encoded.charAt(encoded.length - 1) === \'=\') {\n if (encoded.charAt(encoded.length - 2) === \'=\') {\n // Case (2)\n byteCount = quartetCount * 3 - 2;\n } else {\n // Case (3)\n byteCount = quartetCount * 3 - 1;\n }\n } else {\n // Case (1)\n byteCount = quartetCount * 3;\n }\n } else {\n // Case (1)\n byteCount = quartetCount * 3;\n }\n\n const bytes = new Uint8Array(byteCount);\n let offset = 0;\n\n for (let i = 0; i < quartetCount; i++) {\n const enc1 = encoded.charAt(i * 4 + 0);\n const enc2 = encoded.charAt(i * 4 + 1);\n const enc3 = encoded.charAt(i * 4 + 2);\n const enc4 = encoded.charAt(i * 4 + 3);\n const sextet1 = lookupTable.get(enc1);\n const sextet2 = lookupTable.get(enc2);\n const sextet3 = lookupTable.get(enc3);\n const sextet4 = lookupTable.get(enc4);\n\n if (sextet1 == null || sextet2 == null || sextet3 == null || sextet4 == null) {\n throw new Error(`Invalid quartet at indices ${i * 4} .. ${i * 4 + 3}: ${encoded.substring(i * 4, i * 4 + 3)}`);\n }\n\n bytes[offset++] = sextet1 << 2 | sextet2 >> 4;\n\n if (enc3 !== \'=\') {\n bytes[offset++] = (sextet2 & 15) << 4 | sextet3 >> 2;\n }\n\n if (enc4 !== \'=\') {\n bytes[offset++] = (sextet3 & 7) << 6 | sextet4;\n }\n }\n\n if (offset !== byteCount) {\n throw new Error(`Expected to decode ${byteCount} bytes, but only decoded ${offset})`);\n }\n\n return bytes;\n}\n\nexports.decodeBase64 = decodeBase64;\n\n/***/ }),\n\n/***/ 218:\n/***/ ((__unused_webpack_module, exports, __webpack_require__) => {\n\n\n\nObject.defineProperty(exports, "__esModule", ({\n value: true\n}));\nexports.ByteFormatter = exports.TimeFormatter = exports.RawValueFormatter = void 0;\n\nconst utils_1 = __webpack_require__(844);\n\nclass RawValueFormatter {\n constructor() {\n this.unit = \'none\';\n }\n\n format(v) {\n return v.toLocaleString();\n }\n\n}\n\nexports.RawValueFormatter = RawValueFormatter;\n\nclass TimeFormatter {\n constructor(unit) {\n this.unit = unit;\n if (unit === \'nanoseconds\') this.multiplier = 1e-9;else if (unit === \'microseconds\') this.multiplier = 1e-6;else if (unit === \'milliseconds\') this.multiplier = 1e-3;else this.multiplier = 1;\n }\n\n formatUnsigned(v) {\n const s = v * this.multiplier;\n\n if (s / 60 >= 1) {\n const minutes = Math.floor(s / 60);\n const seconds = Math.floor(s - minutes * 60).toString();\n return `${minutes}:${utils_1.zeroPad(seconds, 2)}`;\n }\n\n if (s / 1 >= 1) return `${s.toFixed(2)}s`;\n if (s / 1e-3 >= 1) return `${(s / 1e-3).toFixed(2)}ms`;\n if (s / 1e-6 >= 1) return `${(s / 1e-6).toFixed(2)}µs`;else return `${(s / 1e-9).toFixed(2)}ns`;\n }\n\n format(v) {\n return `${v < 0 ? \'-\' : \'\'}${this.formatUnsigned(Math.abs(v))}`;\n }\n\n}\n\nexports.TimeFormatter = TimeFormatter;\n\nclass ByteFormatter {\n constructor() {\n this.unit = \'bytes\';\n }\n\n format(v) {\n if (v < 1024) return `${v.toFixed(0)} B`;\n v /= 1024;\n if (v < 1024) return `${v.toFixed(2)} KB`;\n v /= 1024;\n if (v < 1024) return `${v.toFixed(2)} MB`;\n v /= 1024;\n return `${v.toFixed(2)} GB`;\n }\n\n}\n\nexports.ByteFormatter = ByteFormatter;\n\n/***/ }),\n\n/***/ 41:\n/***/ (function(__unused_webpack_module, exports, __webpack_require__) {\n\n\n\nvar __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function () {\n return m[k];\n }\n });\n} : function (o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\n\nvar __exportStar = this && this.__exportStar || function (m, exports) {\n for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);\n};\n\nObject.defineProperty(exports, "__esModule", ({\n value: true\n}));\n\n__exportStar(__webpack_require__(496), exports);\n\n__exportStar(__webpack_require__(121), exports);\n\n/***/ }),\n\n/***/ 715:\n/***/ (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (root, factory) {\n \'use strict\'; // Universal Module Definition (UMD) to support AMD, CommonJS/Node.js, Rhino, and browsers.\n\n /* istanbul ignore next */\n\n if (true) {\n !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(356)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === \'function\' ?\n\t\t(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n } else {}\n})(this, function ErrorStackParser(StackFrame) {\n \'use strict\';\n\n var FIREFOX_SAFARI_STACK_REGEXP = /(^|@)\\S+:\\d+/;\n var CHROME_IE_STACK_REGEXP = /^\\s*at .*(\\S+:\\d+|\\(native\\))/m;\n var SAFARI_NATIVE_CODE_REGEXP = /^(eval@)?(\\[native code])?$/;\n return {\n /**\n * Given an Error object, extract the most information from it.\n *\n * @param {Error} error object\n * @return {Array} of StackFrames\n */\n parse: function ErrorStackParser$$parse(error) {\n if (typeof error.stacktrace !== \'undefined\' || typeof error[\'opera#sourceloc\'] !== \'undefined\') {\n return this.parseOpera(error);\n } else if (error.stack && error.stack.match(CHROME_IE_STACK_REGEXP)) {\n return this.parseV8OrIE(error);\n } else if (error.stack) {\n return this.parseFFOrSafari(error);\n } else {\n throw new Error(\'Cannot parse given Error object\');\n }\n },\n // Separate line and column numbers from a string of the form: (URI:Line:Column)\n extractLocation: function ErrorStackParser$$extractLocation(urlLike) {\n // Fail-fast but return locations like "(native)"\n if (urlLike.indexOf(\':\') === -1) {\n return [urlLike];\n }\n\n var regExp = /(.+?)(?::(\\d+))?(?::(\\d+))?$/;\n var parts = regExp.exec(urlLike.replace(/[()]/g, \'\'));\n return [parts[1], parts[2] || undefined, parts[3] || undefined];\n },\n parseV8OrIE: function ErrorStackParser$$parseV8OrIE(error) {\n var filtered = error.stack.split(\'\\n\').filter(function (line) {\n return !!line.match(CHROME_IE_STACK_REGEXP);\n }, this);\n return filtered.map(function (line) {\n if (line.indexOf(\'(eval \') > -1) {\n // Throw away eval information until we implement stacktrace.js/stackframe#8\n line = line.replace(/eval code/g, \'eval\').replace(/(\\(eval at [^()]*)|(\\),.*$)/g, \'\');\n }\n\n var sanitizedLine = line.replace(/^\\s+/, \'\').replace(/\\(eval code/g, \'(\'); // capture and preseve the parenthesized location "(/foo/my bar.js:12:87)" in\n // case it has spaces in it, as the string is split on \\s+ later on\n\n var location = sanitizedLine.match(/ (\\((.+):(\\d+):(\\d+)\\)$)/); // remove the parenthesized location from the line, if it was matched\n\n sanitizedLine = location ? sanitizedLine.replace(location[0], \'\') : sanitizedLine;\n var tokens = sanitizedLine.split(/\\s+/).slice(1); // if a location was matched, pass it to extractLocation() otherwise pop the last token\n\n var locationParts = this.extractLocation(location ? location[1] : tokens.pop());\n var functionName = tokens.join(\' \') || undefined;\n var fileName = [\'eval\', \'\'].indexOf(locationParts[0]) > -1 ? undefined : locationParts[0];\n return new StackFrame({\n functionName: functionName,\n fileName: fileName,\n lineNumber: locationParts[1],\n columnNumber: locationParts[2],\n source: line\n });\n }, this);\n },\n parseFFOrSafari: function ErrorStackParser$$parseFFOrSafari(error) {\n var filtered = error.stack.split(\'\\n\').filter(function (line) {\n return !line.match(SAFARI_NATIVE_CODE_REGEXP);\n }, this);\n return filtered.map(function (line) {\n // Throw away eval information until we implement stacktrace.js/stackframe#8\n if (line.indexOf(\' > eval\') > -1) {\n line = line.replace(/ line (\\d+)(?: > eval line \\d+)* > eval:\\d+:\\d+/g, \':$1\');\n }\n\n if (line.indexOf(\'@\') === -1 && line.indexOf(\':\') === -1) {\n // Safari eval frames only have function names and nothing else\n return new StackFrame({\n functionName: line\n });\n } else {\n var functionNameRegex = /((.*".+"[^@]*)?[^@]*)(?:@)/;\n var matches = line.match(functionNameRegex);\n var functionName = matches && matches[1] ? matches[1] : undefined;\n var locationParts = this.extractLocation(line.replace(functionNameRegex, \'\'));\n return new StackFrame({\n functionName: functionName,\n fileName: locationParts[0],\n lineNumber: locationParts[1],\n columnNumber: locationParts[2],\n source: line\n });\n }\n }, this);\n },\n parseOpera: function ErrorStackParser$$parseOpera(e) {\n if (!e.stacktrace || e.message.indexOf(\'\\n\') > -1 && e.message.split(\'\\n\').length > e.stacktrace.split(\'\\n\').length) {\n return this.parseOpera9(e);\n } else if (!e.stack) {\n return this.parseOpera10(e);\n } else {\n return this.parseOpera11(e);\n }\n },\n parseOpera9: function ErrorStackParser$$parseOpera9(e) {\n var lineRE = /Line (\\d+).*script (?:in )?(\\S+)/i;\n var lines = e.message.split(\'\\n\');\n var result = [];\n\n for (var i = 2, len = lines.length; i < len; i += 2) {\n var match = lineRE.exec(lines[i]);\n\n if (match) {\n result.push(new StackFrame({\n fileName: match[2],\n lineNumber: match[1],\n source: lines[i]\n }));\n }\n }\n\n return result;\n },\n parseOpera10: function ErrorStackParser$$parseOpera10(e) {\n var lineRE = /Line (\\d+).*script (?:in )?(\\S+)(?:: In function (\\S+))?$/i;\n var lines = e.stacktrace.split(\'\\n\');\n var result = [];\n\n for (var i = 0, len = lines.length; i < len; i += 2) {\n var match = lineRE.exec(lines[i]);\n\n if (match) {\n result.push(new StackFrame({\n functionName: match[3] || undefined,\n fileName: match[2],\n lineNumber: match[1],\n source: lines[i]\n }));\n }\n }\n\n return result;\n },\n // Opera 10.65+ Error.stack very similar to FF/Safari\n parseOpera11: function ErrorStackParser$$parseOpera11(error) {\n var filtered = error.stack.split(\'\\n\').filter(function (line) {\n return !!line.match(FIREFOX_SAFARI_STACK_REGEXP) && !line.match(/^Error created at/);\n }, this);\n return filtered.map(function (line) {\n var tokens = line.split(\'@\');\n var locationParts = this.extractLocation(tokens.pop());\n var functionCall = tokens.shift() || \'\';\n var functionName = functionCall.replace(//, \'$2\').replace(/\\([^)]*\\)/g, \'\') || undefined;\n var argsRaw;\n\n if (functionCall.match(/\\(([^)]*)\\)/)) {\n argsRaw = functionCall.replace(/^[^(]+\\(([^)]*)\\)$/, \'$1\');\n }\n\n var args = argsRaw === undefined || argsRaw === \'[arguments not available]\' ? undefined : argsRaw.split(\',\');\n return new StackFrame({\n functionName: functionName,\n args: args,\n fileName: locationParts[0],\n lineNumber: locationParts[1],\n columnNumber: locationParts[2],\n source: line\n });\n }, this);\n }\n };\n});\n\n/***/ }),\n\n/***/ 69:\n/***/ ((module) => {\n\n\n\nfunction nullthrows(x, message) {\n if (x != null) {\n return x;\n }\n\n var error = new Error(message !== undefined ? message : \'Got unexpected \' + x);\n error.framesToPop = 1; // Skip nullthrows\'s own stack frame.\n\n throw error;\n}\n\nmodule.exports = nullthrows;\nmodule.exports["default"] = nullthrows;\nObject.defineProperty(module.exports, "__esModule", ({\n value: true\n}));\n\n/***/ }),\n\n/***/ 356:\n/***/ (function(module, exports) {\n\nvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (root, factory) {\n \'use strict\'; // Universal Module Definition (UMD) to support AMD, CommonJS/Node.js, Rhino, and browsers.\n\n /* istanbul ignore next */\n\n if (true) {\n !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === \'function\' ?\n\t\t(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n } else {}\n})(this, function () {\n \'use strict\';\n\n function _isNumber(n) {\n return !isNaN(parseFloat(n)) && isFinite(n);\n }\n\n function _capitalize(str) {\n return str.charAt(0).toUpperCase() + str.substring(1);\n }\n\n function _getter(p) {\n return function () {\n return this[p];\n };\n }\n\n var booleanProps = [\'isConstructor\', \'isEval\', \'isNative\', \'isToplevel\'];\n var numericProps = [\'columnNumber\', \'lineNumber\'];\n var stringProps = [\'fileName\', \'functionName\', \'source\'];\n var arrayProps = [\'args\'];\n var props = booleanProps.concat(numericProps, stringProps, arrayProps);\n\n function StackFrame(obj) {\n if (!obj) return;\n\n for (var i = 0; i < props.length; i++) {\n if (obj[props[i]] !== undefined) {\n this[\'set\' + _capitalize(props[i])](obj[props[i]]);\n }\n }\n }\n\n StackFrame.prototype = {\n getArgs: function () {\n return this.args;\n },\n setArgs: function (v) {\n if (Object.prototype.toString.call(v) !== \'[object Array]\') {\n throw new TypeError(\'Args must be an Array\');\n }\n\n this.args = v;\n },\n getEvalOrigin: function () {\n return this.evalOrigin;\n },\n setEvalOrigin: function (v) {\n if (v instanceof StackFrame) {\n this.evalOrigin = v;\n } else if (v instanceof Object) {\n this.evalOrigin = new StackFrame(v);\n } else {\n throw new TypeError(\'Eval Origin must be an Object or StackFrame\');\n }\n },\n toString: function () {\n var fileName = this.getFileName() || \'\';\n var lineNumber = this.getLineNumber() || \'\';\n var columnNumber = this.getColumnNumber() || \'\';\n var functionName = this.getFunctionName() || \'\';\n\n if (this.getIsEval()) {\n if (fileName) {\n return \'[eval] (\' + fileName + \':\' + lineNumber + \':\' + columnNumber + \')\';\n }\n\n return \'[eval]:\' + lineNumber + \':\' + columnNumber;\n }\n\n if (functionName) {\n return functionName + \' (\' + fileName + \':\' + lineNumber + \':\' + columnNumber + \')\';\n }\n\n return fileName + \':\' + lineNumber + \':\' + columnNumber;\n }\n };\n\n StackFrame.fromString = function StackFrame$$fromString(str) {\n var argsStartIndex = str.indexOf(\'(\');\n var argsEndIndex = str.lastIndexOf(\')\');\n var functionName = str.substring(0, argsStartIndex);\n var args = str.substring(argsStartIndex + 1, argsEndIndex).split(\',\');\n var locationString = str.substring(argsEndIndex + 1);\n\n if (locationString.indexOf(\'@\') === 0) {\n var parts = /@(.+?)(?::(\\d+))?(?::(\\d+))?$/.exec(locationString, \'\');\n var fileName = parts[1];\n var lineNumber = parts[2];\n var columnNumber = parts[3];\n }\n\n return new StackFrame({\n functionName: functionName,\n args: args || undefined,\n fileName: fileName,\n lineNumber: lineNumber || undefined,\n columnNumber: columnNumber || undefined\n });\n };\n\n for (var i = 0; i < booleanProps.length; i++) {\n StackFrame.prototype[\'get\' + _capitalize(booleanProps[i])] = _getter(booleanProps[i]);\n\n StackFrame.prototype[\'set\' + _capitalize(booleanProps[i])] = function (p) {\n return function (v) {\n this[p] = Boolean(v);\n };\n }(booleanProps[i]);\n }\n\n for (var j = 0; j < numericProps.length; j++) {\n StackFrame.prototype[\'get\' + _capitalize(numericProps[j])] = _getter(numericProps[j]);\n\n StackFrame.prototype[\'set\' + _capitalize(numericProps[j])] = function (p) {\n return function (v) {\n if (!_isNumber(v)) {\n throw new TypeError(p + \' must be a Number\');\n }\n\n this[p] = Number(v);\n };\n }(numericProps[j]);\n }\n\n for (var k = 0; k < stringProps.length; k++) {\n StackFrame.prototype[\'get\' + _capitalize(stringProps[k])] = _getter(stringProps[k]);\n\n StackFrame.prototype[\'set\' + _capitalize(stringProps[k])] = function (p) {\n return function (v) {\n this[p] = String(v);\n };\n }(stringProps[k]);\n }\n\n return StackFrame;\n});\n\n/***/ }),\n\n/***/ 853:\n/***/ ((module) => {\n\n/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\nvar runtime = function (exports) {\n "use strict";\n\n var Op = Object.prototype;\n var hasOwn = Op.hasOwnProperty;\n var undefined; // More compressible than void 0.\n\n var $Symbol = typeof Symbol === "function" ? Symbol : {};\n var iteratorSymbol = $Symbol.iterator || "@@iterator";\n var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";\n var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";\n\n function define(obj, key, value) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n return obj[key];\n }\n\n try {\n // IE 8 has a broken Object.defineProperty that only works on DOM objects.\n define({}, "");\n } catch (err) {\n define = function (obj, key, value) {\n return obj[key] = value;\n };\n }\n\n function wrap(innerFn, outerFn, self, tryLocsList) {\n // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.\n var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;\n var generator = Object.create(protoGenerator.prototype);\n var context = new Context(tryLocsList || []); // The ._invoke method unifies the implementations of the .next,\n // .throw, and .return methods.\n\n generator._invoke = makeInvokeMethod(innerFn, self, context);\n return generator;\n }\n\n exports.wrap = wrap; // Try/catch helper to minimize deoptimizations. Returns a completion\n // record like context.tryEntries[i].completion. This interface could\n // have been (and was previously) designed to take a closure to be\n // invoked without arguments, but in all the cases we care about we\n // already have an existing method we want to call, so there\'s no need\n // to create a new function object. We can even get away with assuming\n // the method takes exactly one argument, since that happens to be true\n // in every case, so we don\'t have to touch the arguments object. The\n // only additional allocation required is the completion record, which\n // has a stable shape and so hopefully should be cheap to allocate.\n\n function tryCatch(fn, obj, arg) {\n try {\n return {\n type: "normal",\n arg: fn.call(obj, arg)\n };\n } catch (err) {\n return {\n type: "throw",\n arg: err\n };\n }\n }\n\n var GenStateSuspendedStart = "suspendedStart";\n var GenStateSuspendedYield = "suspendedYield";\n var GenStateExecuting = "executing";\n var GenStateCompleted = "completed"; // Returning this object from the innerFn has the same effect as\n // breaking out of the dispatch switch statement.\n\n var ContinueSentinel = {}; // Dummy constructor functions that we use as the .constructor and\n // .constructor.prototype properties for functions that return Generator\n // objects. For full spec compliance, you may wish to configure your\n // minifier not to mangle the names of these two functions.\n\n function Generator() {}\n\n function GeneratorFunction() {}\n\n function GeneratorFunctionPrototype() {} // This is a polyfill for %IteratorPrototype% for environments that\n // don\'t natively support it.\n\n\n var IteratorPrototype = {};\n\n IteratorPrototype[iteratorSymbol] = function () {\n return this;\n };\n\n var getProto = Object.getPrototypeOf;\n var NativeIteratorPrototype = getProto && getProto(getProto(values([])));\n\n if (NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {\n // This environment has a native %IteratorPrototype%; use it instead\n // of the polyfill.\n IteratorPrototype = NativeIteratorPrototype;\n }\n\n var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);\n GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;\n GeneratorFunctionPrototype.constructor = GeneratorFunction;\n GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"); // Helper for defining the .next, .throw, and .return methods of the\n // Iterator interface in terms of a single ._invoke method.\n\n function defineIteratorMethods(prototype) {\n ["next", "throw", "return"].forEach(function (method) {\n define(prototype, method, function (arg) {\n return this._invoke(method, arg);\n });\n });\n }\n\n exports.isGeneratorFunction = function (genFun) {\n var ctor = typeof genFun === "function" && genFun.constructor;\n return ctor ? ctor === GeneratorFunction || // For the native GeneratorFunction constructor, the best we can\n // do is to check its .name property.\n (ctor.displayName || ctor.name) === "GeneratorFunction" : false;\n };\n\n exports.mark = function (genFun) {\n if (Object.setPrototypeOf) {\n Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);\n } else {\n genFun.__proto__ = GeneratorFunctionPrototype;\n define(genFun, toStringTagSymbol, "GeneratorFunction");\n }\n\n genFun.prototype = Object.create(Gp);\n return genFun;\n }; // Within the body of any async function, `await x` is transformed to\n // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test\n // `hasOwn.call(value, "__await")` to determine if the yielded value is\n // meant to be awaited.\n\n\n exports.awrap = function (arg) {\n return {\n __await: arg\n };\n };\n\n function AsyncIterator(generator, PromiseImpl) {\n function invoke(method, arg, resolve, reject) {\n var record = tryCatch(generator[method], generator, arg);\n\n if (record.type === "throw") {\n reject(record.arg);\n } else {\n var result = record.arg;\n var value = result.value;\n\n if (value && typeof value === "object" && hasOwn.call(value, "__await")) {\n return PromiseImpl.resolve(value.__await).then(function (value) {\n invoke("next", value, resolve, reject);\n }, function (err) {\n invoke("throw", err, resolve, reject);\n });\n }\n\n return PromiseImpl.resolve(value).then(function (unwrapped) {\n // When a yielded Promise is resolved, its final value becomes\n // the .value of the Promise<{value,done}> result for the\n // current iteration.\n result.value = unwrapped;\n resolve(result);\n }, function (error) {\n // If a rejected Promise was yielded, throw the rejection back\n // into the async generator function so it can be handled there.\n return invoke("throw", error, resolve, reject);\n });\n }\n }\n\n var previousPromise;\n\n function enqueue(method, arg) {\n function callInvokeWithMethodAndArg() {\n return new PromiseImpl(function (resolve, reject) {\n invoke(method, arg, resolve, reject);\n });\n }\n\n return previousPromise = // If enqueue has been called before, then we want to wait until\n // all previous Promises have been resolved before calling invoke,\n // so that results are always delivered in the correct order. If\n // enqueue has not been called before, then it is important to\n // call invoke immediately, without waiting on a callback to fire,\n // so that the async generator function has the opportunity to do\n // any necessary setup in a predictable way. This predictability\n // is why the Promise constructor synchronously invokes its\n // executor callback, and why async functions synchronously\n // execute code before the first await. Since we implement simple\n // async functions in terms of async generators, it is especially\n // important to get this right, even though it requires care.\n previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, // Avoid propagating failures to Promises returned by later\n // invocations of the iterator.\n callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();\n } // Define the unified helper method that is used to implement .next,\n // .throw, and .return (see defineIteratorMethods).\n\n\n this._invoke = enqueue;\n }\n\n defineIteratorMethods(AsyncIterator.prototype);\n\n AsyncIterator.prototype[asyncIteratorSymbol] = function () {\n return this;\n };\n\n exports.AsyncIterator = AsyncIterator; // Note that simple async functions are implemented on top of\n // AsyncIterator objects; they just return a Promise for the value of\n // the final result produced by the iterator.\n\n exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {\n if (PromiseImpl === void 0) PromiseImpl = Promise;\n var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);\n return exports.isGeneratorFunction(outerFn) ? iter // If outerFn is a generator, return the full iterator.\n : iter.next().then(function (result) {\n return result.done ? result.value : iter.next();\n });\n };\n\n function makeInvokeMethod(innerFn, self, context) {\n var state = GenStateSuspendedStart;\n return function invoke(method, arg) {\n if (state === GenStateExecuting) {\n throw new Error("Generator is already running");\n }\n\n if (state === GenStateCompleted) {\n if (method === "throw") {\n throw arg;\n } // Be forgiving, per 25.3.3.3.3 of the spec:\n // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume\n\n\n return doneResult();\n }\n\n context.method = method;\n context.arg = arg;\n\n while (true) {\n var delegate = context.delegate;\n\n if (delegate) {\n var delegateResult = maybeInvokeDelegate(delegate, context);\n\n if (delegateResult) {\n if (delegateResult === ContinueSentinel) continue;\n return delegateResult;\n }\n }\n\n if (context.method === "next") {\n // Setting context._sent for legacy support of Babel\'s\n // function.sent implementation.\n context.sent = context._sent = context.arg;\n } else if (context.method === "throw") {\n if (state === GenStateSuspendedStart) {\n state = GenStateCompleted;\n throw context.arg;\n }\n\n context.dispatchException(context.arg);\n } else if (context.method === "return") {\n context.abrupt("return", context.arg);\n }\n\n state = GenStateExecuting;\n var record = tryCatch(innerFn, self, context);\n\n if (record.type === "normal") {\n // If an exception is thrown from innerFn, we leave state ===\n // GenStateExecuting and loop back for another invocation.\n state = context.done ? GenStateCompleted : GenStateSuspendedYield;\n\n if (record.arg === ContinueSentinel) {\n continue;\n }\n\n return {\n value: record.arg,\n done: context.done\n };\n } else if (record.type === "throw") {\n state = GenStateCompleted; // Dispatch the exception by looping back around to the\n // context.dispatchException(context.arg) call above.\n\n context.method = "throw";\n context.arg = record.arg;\n }\n }\n };\n } // Call delegate.iterator[context.method](context.arg) and handle the\n // result, either by returning a { value, done } result from the\n // delegate iterator, or by modifying context.method and context.arg,\n // setting context.delegate to null, and returning the ContinueSentinel.\n\n\n function maybeInvokeDelegate(delegate, context) {\n var method = delegate.iterator[context.method];\n\n if (method === undefined) {\n // A .throw or .return when the delegate iterator has no .throw\n // method always terminates the yield* loop.\n context.delegate = null;\n\n if (context.method === "throw") {\n // Note: ["return"] must be used for ES3 parsing compatibility.\n if (delegate.iterator["return"]) {\n // If the delegate iterator has a return method, give it a\n // chance to clean up.\n context.method = "return";\n context.arg = undefined;\n maybeInvokeDelegate(delegate, context);\n\n if (context.method === "throw") {\n // If maybeInvokeDelegate(context) changed context.method from\n // "return" to "throw", let that override the TypeError below.\n return ContinueSentinel;\n }\n }\n\n context.method = "throw";\n context.arg = new TypeError("The iterator does not provide a \'throw\' method");\n }\n\n return ContinueSentinel;\n }\n\n var record = tryCatch(method, delegate.iterator, context.arg);\n\n if (record.type === "throw") {\n context.method = "throw";\n context.arg = record.arg;\n context.delegate = null;\n return ContinueSentinel;\n }\n\n var info = record.arg;\n\n if (!info) {\n context.method = "throw";\n context.arg = new TypeError("iterator result is not an object");\n context.delegate = null;\n return ContinueSentinel;\n }\n\n if (info.done) {\n // Assign the result of the finished delegate to the temporary\n // variable specified by delegate.resultName (see delegateYield).\n context[delegate.resultName] = info.value; // Resume execution at the desired location (see delegateYield).\n\n context.next = delegate.nextLoc; // If context.method was "throw" but the delegate handled the\n // exception, let the outer generator proceed normally. If\n // context.method was "next", forget context.arg since it has been\n // "consumed" by the delegate iterator. If context.method was\n // "return", allow the original .return call to continue in the\n // outer generator.\n\n if (context.method !== "return") {\n context.method = "next";\n context.arg = undefined;\n }\n } else {\n // Re-yield the result returned by the delegate method.\n return info;\n } // The delegate iterator is finished, so forget it and continue with\n // the outer generator.\n\n\n context.delegate = null;\n return ContinueSentinel;\n } // Define Generator.prototype.{next,throw,return} in terms of the\n // unified ._invoke helper method.\n\n\n defineIteratorMethods(Gp);\n define(Gp, toStringTagSymbol, "Generator"); // A Generator should always return itself as the iterator object when the\n // @@iterator function is called on it. Some browsers\' implementations of the\n // iterator prototype chain incorrectly implement this, causing the Generator\n // object to not be returned from this call. This ensures that doesn\'t happen.\n // See https://github.com/facebook/regenerator/issues/274 for more details.\n\n Gp[iteratorSymbol] = function () {\n return this;\n };\n\n Gp.toString = function () {\n return "[object Generator]";\n };\n\n function pushTryEntry(locs) {\n var entry = {\n tryLoc: locs[0]\n };\n\n if (1 in locs) {\n entry.catchLoc = locs[1];\n }\n\n if (2 in locs) {\n entry.finallyLoc = locs[2];\n entry.afterLoc = locs[3];\n }\n\n this.tryEntries.push(entry);\n }\n\n function resetTryEntry(entry) {\n var record = entry.completion || {};\n record.type = "normal";\n delete record.arg;\n entry.completion = record;\n }\n\n function Context(tryLocsList) {\n // The root entry object (effectively a try statement without a catch\n // or a finally block) gives us a place to store values thrown from\n // locations where there is no enclosing try statement.\n this.tryEntries = [{\n tryLoc: "root"\n }];\n tryLocsList.forEach(pushTryEntry, this);\n this.reset(true);\n }\n\n exports.keys = function (object) {\n var keys = [];\n\n for (var key in object) {\n keys.push(key);\n }\n\n keys.reverse(); // Rather than returning an object with a next method, we keep\n // things simple and return the next function itself.\n\n return function next() {\n while (keys.length) {\n var key = keys.pop();\n\n if (key in object) {\n next.value = key;\n next.done = false;\n return next;\n }\n } // To avoid creating an additional object, we just hang the .value\n // and .done properties off the next function object itself. This\n // also ensures that the minifier will not anonymize the function.\n\n\n next.done = true;\n return next;\n };\n };\n\n function values(iterable) {\n if (iterable) {\n var iteratorMethod = iterable[iteratorSymbol];\n\n if (iteratorMethod) {\n return iteratorMethod.call(iterable);\n }\n\n if (typeof iterable.next === "function") {\n return iterable;\n }\n\n if (!isNaN(iterable.length)) {\n var i = -1,\n next = function next() {\n while (++i < iterable.length) {\n if (hasOwn.call(iterable, i)) {\n next.value = iterable[i];\n next.done = false;\n return next;\n }\n }\n\n next.value = undefined;\n next.done = true;\n return next;\n };\n\n return next.next = next;\n }\n } // Return an iterator with no values.\n\n\n return {\n next: doneResult\n };\n }\n\n exports.values = values;\n\n function doneResult() {\n return {\n value: undefined,\n done: true\n };\n }\n\n Context.prototype = {\n constructor: Context,\n reset: function (skipTempReset) {\n this.prev = 0;\n this.next = 0; // Resetting context._sent for legacy support of Babel\'s\n // function.sent implementation.\n\n this.sent = this._sent = undefined;\n this.done = false;\n this.delegate = null;\n this.method = "next";\n this.arg = undefined;\n this.tryEntries.forEach(resetTryEntry);\n\n if (!skipTempReset) {\n for (var name in this) {\n // Not sure about the optimal order of these conditions:\n if (name.charAt(0) === "t" && hasOwn.call(this, name) && !isNaN(+name.slice(1))) {\n this[name] = undefined;\n }\n }\n }\n },\n stop: function () {\n this.done = true;\n var rootEntry = this.tryEntries[0];\n var rootRecord = rootEntry.completion;\n\n if (rootRecord.type === "throw") {\n throw rootRecord.arg;\n }\n\n return this.rval;\n },\n dispatchException: function (exception) {\n if (this.done) {\n throw exception;\n }\n\n var context = this;\n\n function handle(loc, caught) {\n record.type = "throw";\n record.arg = exception;\n context.next = loc;\n\n if (caught) {\n // If the dispatched exception was caught by a catch block,\n // then let that catch block handle the exception normally.\n context.method = "next";\n context.arg = undefined;\n }\n\n return !!caught;\n }\n\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n var record = entry.completion;\n\n if (entry.tryLoc === "root") {\n // Exception thrown outside of any try block that could handle\n // it, so set the completion value of the entire function to\n // throw the exception.\n return handle("end");\n }\n\n if (entry.tryLoc <= this.prev) {\n var hasCatch = hasOwn.call(entry, "catchLoc");\n var hasFinally = hasOwn.call(entry, "finallyLoc");\n\n if (hasCatch && hasFinally) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n } else if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n } else if (hasCatch) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n }\n } else if (hasFinally) {\n if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n } else {\n throw new Error("try statement without catch or finally");\n }\n }\n }\n },\n abrupt: function (type, arg) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n\n if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {\n var finallyEntry = entry;\n break;\n }\n }\n\n if (finallyEntry && (type === "break" || type === "continue") && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc) {\n // Ignore the finally entry if control is not jumping to a\n // location outside the try/catch block.\n finallyEntry = null;\n }\n\n var record = finallyEntry ? finallyEntry.completion : {};\n record.type = type;\n record.arg = arg;\n\n if (finallyEntry) {\n this.method = "next";\n this.next = finallyEntry.finallyLoc;\n return ContinueSentinel;\n }\n\n return this.complete(record);\n },\n complete: function (record, afterLoc) {\n if (record.type === "throw") {\n throw record.arg;\n }\n\n if (record.type === "break" || record.type === "continue") {\n this.next = record.arg;\n } else if (record.type === "return") {\n this.rval = this.arg = record.arg;\n this.method = "return";\n this.next = "end";\n } else if (record.type === "normal" && afterLoc) {\n this.next = afterLoc;\n }\n\n return ContinueSentinel;\n },\n finish: function (finallyLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n\n if (entry.finallyLoc === finallyLoc) {\n this.complete(entry.completion, entry.afterLoc);\n resetTryEntry(entry);\n return ContinueSentinel;\n }\n }\n },\n "catch": function (tryLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n\n if (entry.tryLoc === tryLoc) {\n var record = entry.completion;\n\n if (record.type === "throw") {\n var thrown = record.arg;\n resetTryEntry(entry);\n }\n\n return thrown;\n }\n } // The context.catch method must only be called with a location\n // argument that corresponds to a known catch block.\n\n\n throw new Error("illegal catch attempt");\n },\n delegateYield: function (iterable, resultName, nextLoc) {\n this.delegate = {\n iterator: values(iterable),\n resultName: resultName,\n nextLoc: nextLoc\n };\n\n if (this.method === "next") {\n // Deliberately forget the last sent value so that we don\'t\n // accidentally pass it on to the delegate.\n this.arg = undefined;\n }\n\n return ContinueSentinel;\n }\n }; // Regardless of whether this script is executing as a CommonJS module\n // or not, return the runtime object so that we can declare the variable\n // regeneratorRuntime in the outer scope, which allows this module to be\n // injected easily by `bin/regenerator --include-runtime script.js`.\n\n return exports;\n}( // If this script is executing as a CommonJS module, use module.exports\n// as the regeneratorRuntime namespace. Otherwise create a new empty\n// object. Either way, the resulting object will be used to initialize\n// the regeneratorRuntime variable at the top of this file.\n true ? module.exports : 0);\n\ntry {\n regeneratorRuntime = runtime;\n} catch (accidentalStrictMode) {\n // This module should not be running in strict mode, so the above\n // assignment should always work unless something is misconfigured. Just\n // in case runtime.js accidentally runs in strict mode, we can escape\n // strict mode using a global Function call. This could conceivably fail\n // if a Content Security Policy forbids using Function, but in that case\n // the proper solution is to fix the accidental strict mode problem. If\n // you\'ve misconfigured your bundler to force strict mode and applied a\n // CSP to forbid Function, and you\'re not willing to fix either of those\n // problems, please detail your unique predicament in a GitHub issue.\n Function("r", "regeneratorRuntime = r")(runtime);\n}\n\n/***/ })\n\n/******/ });\n/************************************************************************/\n/******/ // The module cache\n/******/ var __webpack_module_cache__ = {};\n/******/ \n/******/ // The require function\n/******/ function __webpack_require__(moduleId) {\n/******/ \t// Check if module is in cache\n/******/ \tvar cachedModule = __webpack_module_cache__[moduleId];\n/******/ \tif (cachedModule !== undefined) {\n/******/ \t\treturn cachedModule.exports;\n/******/ \t}\n/******/ \t// Create a new module (and put it into the cache)\n/******/ \tvar module = __webpack_module_cache__[moduleId] = {\n/******/ \t\t// no module.id needed\n/******/ \t\t// no module.loaded needed\n/******/ \t\texports: {}\n/******/ \t};\n/******/ \n/******/ \t// Execute the module function\n/******/ \t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/ \n/******/ \t// Return the exports of the module\n/******/ \treturn module.exports;\n/******/ }\n/******/ \n/************************************************************************/\n/******/ /* webpack/runtime/compat get default export */\n/******/ (() => {\n/******/ \t// getDefaultExport function for compatibility with non-harmony modules\n/******/ \t__webpack_require__.n = (module) => {\n/******/ \t\tvar getter = module && module.__esModule ?\n/******/ \t\t\t() => (module[\'default\']) :\n/******/ \t\t\t() => (module);\n/******/ \t\t__webpack_require__.d(getter, { a: getter });\n/******/ \t\treturn getter;\n/******/ \t};\n/******/ })();\n/******/ \n/******/ /* webpack/runtime/define property getters */\n/******/ (() => {\n/******/ \t// define getter functions for harmony exports\n/******/ \t__webpack_require__.d = (exports, definition) => {\n/******/ \t\tfor(var key in definition) {\n/******/ \t\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n/******/ \t\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n/******/ \t\t\t}\n/******/ \t\t}\n/******/ \t};\n/******/ })();\n/******/ \n/******/ /* webpack/runtime/hasOwnProperty shorthand */\n/******/ (() => {\n/******/ \t__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))\n/******/ })();\n/******/ \n/************************************************************************/\nvar __webpack_exports__ = {};\n// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.\n(() => {\n\n// EXPORTS\n__webpack_require__.d(__webpack_exports__, {\n "importFile": () => (/* binding */ importFile_worker_importFile)\n});\n\n// EXTERNAL MODULE: ../react-devtools-timeline/node_modules/regenerator-runtime/runtime.js\nvar runtime = __webpack_require__(853);\n// EXTERNAL MODULE: ../../node_modules/@elg/speedscope/dist/library/library.js\nvar library = __webpack_require__(41);\n;// CONCATENATED MODULE: ../react-devtools-shared/src/devtools/constants.js\nconst CHANGE_LOG_URL = \'https://github.com/facebook/react/blob/main/packages/react-devtools/CHANGELOG.md\';\nconst UNSUPPORTED_VERSION_URL = \'https://reactjs.org/blog/2019/08/15/new-react-devtools.html#how-do-i-get-the-old-version-back\';\nconst REACT_DEVTOOLS_WORKPLACE_URL = \'https://fburl.com/react-devtools-workplace-group\';\nconst THEME_STYLES = {\n light: {\n \'--color-attribute-name\': \'#ef6632\',\n \'--color-attribute-name-not-editable\': \'#23272f\',\n \'--color-attribute-name-inverted\': \'rgba(255, 255, 255, 0.7)\',\n \'--color-attribute-value\': \'#1a1aa6\',\n \'--color-attribute-value-inverted\': \'#ffffff\',\n \'--color-attribute-editable-value\': \'#1a1aa6\',\n \'--color-background\': \'#ffffff\',\n \'--color-background-hover\': \'rgba(0, 136, 250, 0.1)\',\n \'--color-background-inactive\': \'#e5e5e5\',\n \'--color-background-invalid\': \'#fff0f0\',\n \'--color-background-selected\': \'#0088fa\',\n \'--color-button-background\': \'#ffffff\',\n \'--color-button-background-focus\': \'#ededed\',\n \'--color-button\': \'#5f6673\',\n \'--color-button-disabled\': \'#cfd1d5\',\n \'--color-button-active\': \'#0088fa\',\n \'--color-button-focus\': \'#23272f\',\n \'--color-button-hover\': \'#23272f\',\n \'--color-border\': \'#eeeeee\',\n \'--color-commit-did-not-render-fill\': \'#cfd1d5\',\n \'--color-commit-did-not-render-fill-text\': \'#000000\',\n \'--color-commit-did-not-render-pattern\': \'#cfd1d5\',\n \'--color-commit-did-not-render-pattern-text\': \'#333333\',\n \'--color-commit-gradient-0\': \'#37afa9\',\n \'--color-commit-gradient-1\': \'#63b19e\',\n \'--color-commit-gradient-2\': \'#80b393\',\n \'--color-commit-gradient-3\': \'#97b488\',\n \'--color-commit-gradient-4\': \'#abb67d\',\n \'--color-commit-gradient-5\': \'#beb771\',\n \'--color-commit-gradient-6\': \'#cfb965\',\n \'--color-commit-gradient-7\': \'#dfba57\',\n \'--color-commit-gradient-8\': \'#efbb49\',\n \'--color-commit-gradient-9\': \'#febc38\',\n \'--color-commit-gradient-text\': \'#000000\',\n \'--color-component-name\': \'#6a51b2\',\n \'--color-component-name-inverted\': \'#ffffff\',\n \'--color-component-badge-background\': \'rgba(0, 0, 0, 0.1)\',\n \'--color-component-badge-background-inverted\': \'rgba(255, 255, 255, 0.25)\',\n \'--color-component-badge-count\': \'#777d88\',\n \'--color-component-badge-count-inverted\': \'rgba(255, 255, 255, 0.7)\',\n \'--color-console-error-badge-text\': \'#ffffff\',\n \'--color-console-error-background\': \'#fff0f0\',\n \'--color-console-error-border\': \'#ffd6d6\',\n \'--color-console-error-icon\': \'#eb3941\',\n \'--color-console-error-text\': \'#fe2e31\',\n \'--color-console-warning-badge-text\': \'#000000\',\n \'--color-console-warning-background\': \'#fffbe5\',\n \'--color-console-warning-border\': \'#fff5c1\',\n \'--color-console-warning-icon\': \'#f4bd00\',\n \'--color-console-warning-text\': \'#64460c\',\n \'--color-context-background\': \'rgba(0,0,0,.9)\',\n \'--color-context-background-hover\': \'rgba(255, 255, 255, 0.1)\',\n \'--color-context-background-selected\': \'#178fb9\',\n \'--color-context-border\': \'#3d424a\',\n \'--color-context-text\': \'#ffffff\',\n \'--color-context-text-selected\': \'#ffffff\',\n \'--color-dim\': \'#777d88\',\n \'--color-dimmer\': \'#cfd1d5\',\n \'--color-dimmest\': \'#eff0f1\',\n \'--color-error-background\': \'hsl(0, 100%, 97%)\',\n \'--color-error-border\': \'hsl(0, 100%, 92%)\',\n \'--color-error-text\': \'#ff0000\',\n \'--color-expand-collapse-toggle\': \'#777d88\',\n \'--color-forget-badge-background\': \'#2683e2\',\n \'--color-forget-badge-background-inverted\': \'#1a6bbc\',\n \'--color-forget-text\': \'#fff\',\n \'--color-link\': \'#0000ff\',\n \'--color-modal-background\': \'rgba(255, 255, 255, 0.75)\',\n \'--color-bridge-version-npm-background\': \'#eff0f1\',\n \'--color-bridge-version-npm-text\': \'#000000\',\n \'--color-bridge-version-number\': \'#0088fa\',\n \'--color-primitive-hook-badge-background\': \'#e5e5e5\',\n \'--color-primitive-hook-badge-text\': \'#5f6673\',\n \'--color-record-active\': \'#fc3a4b\',\n \'--color-record-hover\': \'#3578e5\',\n \'--color-record-inactive\': \'#0088fa\',\n \'--color-resize-bar\': \'#eeeeee\',\n \'--color-resize-bar-active\': \'#dcdcdc\',\n \'--color-resize-bar-border\': \'#d1d1d1\',\n \'--color-resize-bar-dot\': \'#333333\',\n \'--color-timeline-internal-module\': \'#d1d1d1\',\n \'--color-timeline-internal-module-hover\': \'#c9c9c9\',\n \'--color-timeline-internal-module-text\': \'#444\',\n \'--color-timeline-native-event\': \'#ccc\',\n \'--color-timeline-native-event-hover\': \'#aaa\',\n \'--color-timeline-network-primary\': \'#fcf3dc\',\n \'--color-timeline-network-primary-hover\': \'#f0e7d1\',\n \'--color-timeline-network-secondary\': \'#efc457\',\n \'--color-timeline-network-secondary-hover\': \'#e3ba52\',\n \'--color-timeline-priority-background\': \'#f6f6f6\',\n \'--color-timeline-priority-border\': \'#eeeeee\',\n \'--color-timeline-user-timing\': \'#c9cacd\',\n \'--color-timeline-user-timing-hover\': \'#93959a\',\n \'--color-timeline-react-idle\': \'#d3e5f6\',\n \'--color-timeline-react-idle-hover\': \'#c3d9ef\',\n \'--color-timeline-react-render\': \'#9fc3f3\',\n \'--color-timeline-react-render-hover\': \'#83afe9\',\n \'--color-timeline-react-render-text\': \'#11365e\',\n \'--color-timeline-react-commit\': \'#c88ff0\',\n \'--color-timeline-react-commit-hover\': \'#b281d6\',\n \'--color-timeline-react-commit-text\': \'#3e2c4a\',\n \'--color-timeline-react-layout-effects\': \'#b281d6\',\n \'--color-timeline-react-layout-effects-hover\': \'#9d71bd\',\n \'--color-timeline-react-layout-effects-text\': \'#3e2c4a\',\n \'--color-timeline-react-passive-effects\': \'#b281d6\',\n \'--color-timeline-react-passive-effects-hover\': \'#9d71bd\',\n \'--color-timeline-react-passive-effects-text\': \'#3e2c4a\',\n \'--color-timeline-react-schedule\': \'#9fc3f3\',\n \'--color-timeline-react-schedule-hover\': \'#2683E2\',\n \'--color-timeline-react-suspense-rejected\': \'#f1cc14\',\n \'--color-timeline-react-suspense-rejected-hover\': \'#ffdf37\',\n \'--color-timeline-react-suspense-resolved\': \'#a6e59f\',\n \'--color-timeline-react-suspense-resolved-hover\': \'#89d281\',\n \'--color-timeline-react-suspense-unresolved\': \'#c9cacd\',\n \'--color-timeline-react-suspense-unresolved-hover\': \'#93959a\',\n \'--color-timeline-thrown-error\': \'#ee1638\',\n \'--color-timeline-thrown-error-hover\': \'#da1030\',\n \'--color-timeline-text-color\': \'#000000\',\n \'--color-timeline-text-dim-color\': \'#ccc\',\n \'--color-timeline-react-work-border\': \'#eeeeee\',\n \'--color-search-match\': \'yellow\',\n \'--color-search-match-current\': \'#f7923b\',\n \'--color-selected-tree-highlight-active\': \'rgba(0, 136, 250, 0.1)\',\n \'--color-selected-tree-highlight-inactive\': \'rgba(0, 0, 0, 0.05)\',\n \'--color-scroll-caret\': \'rgba(150, 150, 150, 0.5)\',\n \'--color-tab-selected-border\': \'#0088fa\',\n \'--color-text\': \'#000000\',\n \'--color-text-invalid\': \'#ff0000\',\n \'--color-text-selected\': \'#ffffff\',\n \'--color-toggle-background-invalid\': \'#fc3a4b\',\n \'--color-toggle-background-on\': \'#0088fa\',\n \'--color-toggle-background-off\': \'#cfd1d5\',\n \'--color-toggle-text\': \'#ffffff\',\n \'--color-warning-background\': \'#fb3655\',\n \'--color-warning-background-hover\': \'#f82042\',\n \'--color-warning-text-color\': \'#ffffff\',\n \'--color-warning-text-color-inverted\': \'#fd4d69\',\n // The styles below should be kept in sync with \'root.css\'\n // They are repeated there because they\'re used by e.g. tooltips or context menus\n // which get rendered outside of the DOM subtree (where normal theme/styles are written).\n \'--color-scroll-thumb\': \'#c2c2c2\',\n \'--color-scroll-track\': \'#fafafa\',\n \'--color-tooltip-background\': \'rgba(0, 0, 0, 0.9)\',\n \'--color-tooltip-text\': \'#ffffff\'\n },\n dark: {\n \'--color-attribute-name\': \'#9d87d2\',\n \'--color-attribute-name-not-editable\': \'#ededed\',\n \'--color-attribute-name-inverted\': \'#282828\',\n \'--color-attribute-value\': \'#cedae0\',\n \'--color-attribute-value-inverted\': \'#ffffff\',\n \'--color-attribute-editable-value\': \'yellow\',\n \'--color-background\': \'#282c34\',\n \'--color-background-hover\': \'rgba(255, 255, 255, 0.1)\',\n \'--color-background-inactive\': \'#3d424a\',\n \'--color-background-invalid\': \'#5c0000\',\n \'--color-background-selected\': \'#178fb9\',\n \'--color-button-background\': \'#282c34\',\n \'--color-button-background-focus\': \'#3d424a\',\n \'--color-button\': \'#afb3b9\',\n \'--color-button-active\': \'#61dafb\',\n \'--color-button-disabled\': \'#4f5766\',\n \'--color-button-focus\': \'#a2e9fc\',\n \'--color-button-hover\': \'#ededed\',\n \'--color-border\': \'#3d424a\',\n \'--color-commit-did-not-render-fill\': \'#777d88\',\n \'--color-commit-did-not-render-fill-text\': \'#000000\',\n \'--color-commit-did-not-render-pattern\': \'#666c77\',\n \'--color-commit-did-not-render-pattern-text\': \'#ffffff\',\n \'--color-commit-gradient-0\': \'#37afa9\',\n \'--color-commit-gradient-1\': \'#63b19e\',\n \'--color-commit-gradient-2\': \'#80b393\',\n \'--color-commit-gradient-3\': \'#97b488\',\n \'--color-commit-gradient-4\': \'#abb67d\',\n \'--color-commit-gradient-5\': \'#beb771\',\n \'--color-commit-gradient-6\': \'#cfb965\',\n \'--color-commit-gradient-7\': \'#dfba57\',\n \'--color-commit-gradient-8\': \'#efbb49\',\n \'--color-commit-gradient-9\': \'#febc38\',\n \'--color-commit-gradient-text\': \'#000000\',\n \'--color-component-name\': \'#61dafb\',\n \'--color-component-name-inverted\': \'#282828\',\n \'--color-component-badge-background\': \'#5e6167\',\n \'--color-component-badge-background-inverted\': \'#46494e\',\n \'--color-component-badge-count\': \'#8f949d\',\n \'--color-component-badge-count-inverted\': \'rgba(255, 255, 255, 0.85)\',\n \'--color-console-error-badge-text\': \'#000000\',\n \'--color-console-error-background\': \'#290000\',\n \'--color-console-error-border\': \'#5c0000\',\n \'--color-console-error-icon\': \'#eb3941\',\n \'--color-console-error-text\': \'#fc7f7f\',\n \'--color-console-warning-badge-text\': \'#000000\',\n \'--color-console-warning-background\': \'#332b00\',\n \'--color-console-warning-border\': \'#665500\',\n \'--color-console-warning-icon\': \'#f4bd00\',\n \'--color-console-warning-text\': \'#f5f2ed\',\n \'--color-context-background\': \'rgba(255,255,255,.95)\',\n \'--color-context-background-hover\': \'rgba(0, 136, 250, 0.1)\',\n \'--color-context-background-selected\': \'#0088fa\',\n \'--color-context-border\': \'#eeeeee\',\n \'--color-context-text\': \'#000000\',\n \'--color-context-text-selected\': \'#ffffff\',\n \'--color-dim\': \'#8f949d\',\n \'--color-dimmer\': \'#777d88\',\n \'--color-dimmest\': \'#4f5766\',\n \'--color-error-background\': \'#200\',\n \'--color-error-border\': \'#900\',\n \'--color-error-text\': \'#f55\',\n \'--color-expand-collapse-toggle\': \'#8f949d\',\n \'--color-forget-badge-background\': \'#2683e2\',\n \'--color-forget-badge-background-inverted\': \'#1a6bbc\',\n \'--color-forget-text\': \'#fff\',\n \'--color-link\': \'#61dafb\',\n \'--color-modal-background\': \'rgba(0, 0, 0, 0.75)\',\n \'--color-bridge-version-npm-background\': \'rgba(0, 0, 0, 0.25)\',\n \'--color-bridge-version-npm-text\': \'#ffffff\',\n \'--color-bridge-version-number\': \'yellow\',\n \'--color-primitive-hook-badge-background\': \'rgba(0, 0, 0, 0.25)\',\n \'--color-primitive-hook-badge-text\': \'rgba(255, 255, 255, 0.7)\',\n \'--color-record-active\': \'#fc3a4b\',\n \'--color-record-hover\': \'#a2e9fc\',\n \'--color-record-inactive\': \'#61dafb\',\n \'--color-resize-bar\': \'#282c34\',\n \'--color-resize-bar-active\': \'#31363f\',\n \'--color-resize-bar-border\': \'#3d424a\',\n \'--color-resize-bar-dot\': \'#cfd1d5\',\n \'--color-timeline-internal-module\': \'#303542\',\n \'--color-timeline-internal-module-hover\': \'#363b4a\',\n \'--color-timeline-internal-module-text\': \'#7f8899\',\n \'--color-timeline-native-event\': \'#b2b2b2\',\n \'--color-timeline-native-event-hover\': \'#949494\',\n \'--color-timeline-network-primary\': \'#fcf3dc\',\n \'--color-timeline-network-primary-hover\': \'#e3dbc5\',\n \'--color-timeline-network-secondary\': \'#efc457\',\n \'--color-timeline-network-secondary-hover\': \'#d6af4d\',\n \'--color-timeline-priority-background\': \'#1d2129\',\n \'--color-timeline-priority-border\': \'#282c34\',\n \'--color-timeline-user-timing\': \'#c9cacd\',\n \'--color-timeline-user-timing-hover\': \'#93959a\',\n \'--color-timeline-react-idle\': \'#3d485b\',\n \'--color-timeline-react-idle-hover\': \'#465269\',\n \'--color-timeline-react-render\': \'#2683E2\',\n \'--color-timeline-react-render-hover\': \'#1a76d4\',\n \'--color-timeline-react-render-text\': \'#11365e\',\n \'--color-timeline-react-commit\': \'#731fad\',\n \'--color-timeline-react-commit-hover\': \'#611b94\',\n \'--color-timeline-react-commit-text\': \'#e5c1ff\',\n \'--color-timeline-react-layout-effects\': \'#611b94\',\n \'--color-timeline-react-layout-effects-hover\': \'#51167a\',\n \'--color-timeline-react-layout-effects-text\': \'#e5c1ff\',\n \'--color-timeline-react-passive-effects\': \'#611b94\',\n \'--color-timeline-react-passive-effects-hover\': \'#51167a\',\n \'--color-timeline-react-passive-effects-text\': \'#e5c1ff\',\n \'--color-timeline-react-schedule\': \'#2683E2\',\n \'--color-timeline-react-schedule-hover\': \'#1a76d4\',\n \'--color-timeline-react-suspense-rejected\': \'#f1cc14\',\n \'--color-timeline-react-suspense-rejected-hover\': \'#e4c00f\',\n \'--color-timeline-react-suspense-resolved\': \'#a6e59f\',\n \'--color-timeline-react-suspense-resolved-hover\': \'#89d281\',\n \'--color-timeline-react-suspense-unresolved\': \'#c9cacd\',\n \'--color-timeline-react-suspense-unresolved-hover\': \'#93959a\',\n \'--color-timeline-thrown-error\': \'#fb3655\',\n \'--color-timeline-thrown-error-hover\': \'#f82042\',\n \'--color-timeline-text-color\': \'#282c34\',\n \'--color-timeline-text-dim-color\': \'#555b66\',\n \'--color-timeline-react-work-border\': \'#3d424a\',\n \'--color-search-match\': \'yellow\',\n \'--color-search-match-current\': \'#f7923b\',\n \'--color-selected-tree-highlight-active\': \'rgba(23, 143, 185, 0.15)\',\n \'--color-selected-tree-highlight-inactive\': \'rgba(255, 255, 255, 0.05)\',\n \'--color-scroll-caret\': \'#4f5766\',\n \'--color-shadow\': \'rgba(0, 0, 0, 0.5)\',\n \'--color-tab-selected-border\': \'#178fb9\',\n \'--color-text\': \'#ffffff\',\n \'--color-text-invalid\': \'#ff8080\',\n \'--color-text-selected\': \'#ffffff\',\n \'--color-toggle-background-invalid\': \'#fc3a4b\',\n \'--color-toggle-background-on\': \'#178fb9\',\n \'--color-toggle-background-off\': \'#777d88\',\n \'--color-toggle-text\': \'#ffffff\',\n \'--color-warning-background\': \'#ee1638\',\n \'--color-warning-background-hover\': \'#da1030\',\n \'--color-warning-text-color\': \'#ffffff\',\n \'--color-warning-text-color-inverted\': \'#ee1638\',\n // The styles below should be kept in sync with \'root.css\'\n // They are repeated there because they\'re used by e.g. tooltips or context menus\n // which get rendered outside of the DOM subtree (where normal theme/styles are written).\n \'--color-scroll-thumb\': \'#afb3b9\',\n \'--color-scroll-track\': \'#313640\',\n \'--color-tooltip-background\': \'rgba(255, 255, 255, 0.95)\',\n \'--color-tooltip-text\': \'#000000\'\n },\n compact: {\n \'--font-size-monospace-small\': \'9px\',\n \'--font-size-monospace-normal\': \'11px\',\n \'--font-size-monospace-large\': \'15px\',\n \'--font-size-sans-small\': \'10px\',\n \'--font-size-sans-normal\': \'12px\',\n \'--font-size-sans-large\': \'14px\',\n \'--line-height-data\': \'18px\'\n },\n comfortable: {\n \'--font-size-monospace-small\': \'10px\',\n \'--font-size-monospace-normal\': \'13px\',\n \'--font-size-monospace-large\': \'17px\',\n \'--font-size-sans-small\': \'12px\',\n \'--font-size-sans-normal\': \'14px\',\n \'--font-size-sans-large\': \'16px\',\n \'--line-height-data\': \'22px\'\n }\n}; // HACK\n//\n// Sometimes the inline target is rendered before root styles are applied,\n// which would result in e.g. NaN itemSize being passed to react-window list.\n\nconst COMFORTABLE_LINE_HEIGHT = parseInt(THEME_STYLES.comfortable[\'--line-height-data\'], 10);\nconst COMPACT_LINE_HEIGHT = parseInt(THEME_STYLES.compact[\'--line-height-data\'], 10);\n\n;// CONCATENATED MODULE: ../react-devtools-timeline/src/constants.js\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\n\nconst REACT_TOTAL_NUM_LANES = 31; // Increment this number any time a backwards breaking change is made to the profiler metadata.\n\nconst SCHEDULING_PROFILER_VERSION = 1;\nconst SNAPSHOT_MAX_HEIGHT = 60;\n;// CONCATENATED MODULE: ../react-devtools-timeline/src/import-worker/InvalidProfileError.js\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\n\n/**\n * An error thrown when an invalid profile could not be processed.\n */\nclass InvalidProfileError extends Error {}\n;// CONCATENATED MODULE: ../react-devtools-timeline/node_modules/memoize-one/dist/memoize-one.esm.js\nfunction areInputsEqual(newInputs, lastInputs) {\n if (newInputs.length !== lastInputs.length) {\n return false;\n }\n\n for (var i = 0; i < newInputs.length; i++) {\n if (newInputs[i] !== lastInputs[i]) {\n return false;\n }\n }\n\n return true;\n}\n\nfunction memoizeOne(resultFn, isEqual) {\n if (isEqual === void 0) {\n isEqual = areInputsEqual;\n }\n\n var lastThis;\n var lastArgs = [];\n var lastResult;\n var calledOnce = false;\n\n function memoized() {\n var newArgs = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n newArgs[_i] = arguments[_i];\n }\n\n if (calledOnce && lastThis === this && isEqual(newArgs, lastArgs)) {\n return lastResult;\n }\n\n lastResult = resultFn.apply(this, newArgs);\n calledOnce = true;\n lastThis = this;\n lastArgs = newArgs;\n return lastResult;\n }\n\n return memoized;\n}\n\n/* harmony default export */ const memoize_one_esm = (memoizeOne);\n;// CONCATENATED MODULE: ../react-devtools-timeline/src/utils/getBatchRange.js\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\n\n\nfunction unmemoizedGetBatchRange(batchUID, data, minStartTime = 0) {\n const measures = data.batchUIDToMeasuresMap.get(batchUID);\n\n if (measures == null || measures.length === 0) {\n throw Error(`Could not find measures with batch UID "${batchUID}"`);\n }\n\n const lastMeasure = measures[measures.length - 1];\n const stopTime = lastMeasure.timestamp + lastMeasure.duration;\n\n if (stopTime < minStartTime) {\n return [0, 0];\n }\n\n let startTime = minStartTime;\n\n for (let index = 0; index < measures.length; index++) {\n const measure = measures[index];\n\n if (measure.timestamp >= minStartTime) {\n startTime = measure.timestamp;\n break;\n }\n }\n\n return [startTime, stopTime];\n}\n\nconst getBatchRange = memoize_one_esm(unmemoizedGetBatchRange);\n// EXTERNAL MODULE: ../../node_modules/error-stack-parser/error-stack-parser.js\nvar error_stack_parser = __webpack_require__(715);\nvar error_stack_parser_default = /*#__PURE__*/__webpack_require__.n(error_stack_parser);\n;// CONCATENATED MODULE: ../react-devtools-timeline/src/import-worker/preprocessData.js\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\n\n\n\n\n\nconst NATIVE_EVENT_DURATION_THRESHOLD = 20;\nconst NESTED_UPDATE_DURATION_THRESHOLD = 20;\nconst WARNING_STRINGS = {\n LONG_EVENT_HANDLER: \'An event handler scheduled a big update with React. Consider using the Transition API to defer some of this work.\',\n NESTED_UPDATE: \'A big nested update was scheduled during layout. \' + \'Nested updates require React to re-render synchronously before the browser can paint. \' + \'Consider delaying this update by moving it to a passive effect (useEffect).\',\n SUSPEND_DURING_UPDATE: \'A component suspended during an update which caused a fallback to be shown. \' + "Consider using the Transition API to avoid hiding components after they\'ve been mounted."\n}; // Exported for tests\n\nfunction getLanesFromTransportDecimalBitmask(laneBitmaskString) {\n const laneBitmask = parseInt(laneBitmaskString, 10); // As negative numbers are stored in two\'s complement format, our bitmask\n // checks will be thrown off by them.\n\n if (laneBitmask < 0) {\n return [];\n }\n\n const lanes = [];\n let powersOfTwo = 0;\n\n while (powersOfTwo <= REACT_TOTAL_NUM_LANES) {\n if (1 << powersOfTwo & laneBitmask) {\n lanes.push(powersOfTwo);\n }\n\n powersOfTwo++;\n }\n\n return lanes;\n}\n\nfunction updateLaneToLabelMap(profilerData, laneLabelTuplesString) {\n // These marks appear multiple times in the data;\n // We only need to extact them once.\n if (profilerData.laneToLabelMap.size === 0) {\n const laneLabelTuples = laneLabelTuplesString.split(\',\');\n\n for (let laneIndex = 0; laneIndex < laneLabelTuples.length; laneIndex++) {\n // The numeric lane value (e.g. 64) isn\'t important.\n // The profiler parses and stores the lane\'s position within the bitmap,\n // (e.g. lane 1 is index 0, lane 16 is index 4).\n profilerData.laneToLabelMap.set(laneIndex, laneLabelTuples[laneIndex]);\n }\n }\n}\n\nlet profilerVersion = null;\n\nfunction getLastType(stack) {\n if (stack.length > 0) {\n const {\n type\n } = stack[stack.length - 1];\n return type;\n }\n\n return null;\n}\n\nfunction getDepth(stack) {\n if (stack.length > 0) {\n const {\n depth,\n type\n } = stack[stack.length - 1];\n return type === \'render-idle\' ? depth : depth + 1;\n }\n\n return 0;\n}\n\nfunction markWorkStarted(type, startTime, lanes, currentProfilerData, state) {\n const {\n batchUID,\n measureStack\n } = state;\n const depth = getDepth(measureStack);\n const measure = {\n type,\n batchUID,\n depth,\n lanes,\n timestamp: startTime,\n duration: 0\n };\n state.measureStack.push({\n depth,\n measure,\n startTime,\n type\n }); // This array is pre-initialized when the batchUID is generated.\n\n const measures = currentProfilerData.batchUIDToMeasuresMap.get(batchUID);\n\n if (measures != null) {\n measures.push(measure);\n } else {\n currentProfilerData.batchUIDToMeasuresMap.set(state.batchUID, [measure]);\n } // This array is pre-initialized before processing starts.\n\n\n lanes.forEach(lane => {\n currentProfilerData.laneToReactMeasureMap.get(lane).push(measure);\n });\n}\n\nfunction markWorkCompleted(type, stopTime, currentProfilerData, stack) {\n if (stack.length === 0) {\n console.error(\'Unexpected type "%s" completed at %sms while stack is empty.\', type, stopTime); // Ignore work "completion" user timing mark that doesn\'t complete anything\n\n return;\n }\n\n const last = stack[stack.length - 1];\n\n if (last.type !== type) {\n console.error(\'Unexpected type "%s" completed at %sms before "%s" completed.\', type, stopTime, last.type);\n }\n\n const {\n measure,\n startTime\n } = stack.pop();\n\n if (!measure) {\n console.error(\'Could not find matching measure for type "%s".\', type);\n } // $FlowFixMe[cannot-write] This property should not be writable outside of this function.\n\n\n measure.duration = stopTime - startTime;\n}\n\nfunction throwIfIncomplete(type, stack) {\n const lastIndex = stack.length - 1;\n\n if (lastIndex >= 0) {\n const last = stack[lastIndex];\n\n if (last.stopTime === undefined && last.type === type) {\n throw new InvalidProfileError(`Unexpected type "${type}" started before "${last.type}" completed.`);\n }\n }\n}\n\nfunction processEventDispatch(event, timestamp, profilerData, state) {\n const data = event.args.data;\n const type = data.type;\n\n if (type.startsWith(\'react-\')) {\n const stackTrace = data.stackTrace;\n\n if (stackTrace) {\n const topFrame = stackTrace[stackTrace.length - 1];\n\n if (topFrame.url.includes(\'/react-dom.\')) {\n // Filter out fake React events dispatched by invokeGuardedCallbackDev.\n return;\n }\n }\n } // Reduce noise from events like DOMActivate, load/unload, etc. which are usually not relevant\n\n\n if (type === \'blur\' || type === \'click\' || type === \'input\' || type.startsWith(\'focus\') || type.startsWith(\'key\') || type.startsWith(\'mouse\') || type.startsWith(\'pointer\')) {\n const duration = event.dur / 1000;\n let depth = 0;\n\n while (state.nativeEventStack.length > 0) {\n const prevNativeEvent = state.nativeEventStack[state.nativeEventStack.length - 1];\n const prevStopTime = prevNativeEvent.timestamp + prevNativeEvent.duration;\n\n if (timestamp < prevStopTime) {\n depth = prevNativeEvent.depth + 1;\n break;\n } else {\n state.nativeEventStack.pop();\n }\n }\n\n const nativeEvent = {\n depth,\n duration,\n timestamp,\n type,\n warning: null\n };\n profilerData.nativeEvents.push(nativeEvent); // Keep track of curent event in case future ones overlap.\n // We separate them into different vertical lanes in this case.\n\n state.nativeEventStack.push(nativeEvent);\n }\n}\n\nfunction processResourceFinish(event, timestamp, profilerData, state) {\n const requestId = event.args.data.requestId;\n const networkMeasure = state.requestIdToNetworkMeasureMap.get(requestId);\n\n if (networkMeasure != null) {\n networkMeasure.finishTimestamp = timestamp;\n\n if (networkMeasure.firstReceivedDataTimestamp === 0) {\n networkMeasure.firstReceivedDataTimestamp = timestamp;\n }\n\n if (networkMeasure.lastReceivedDataTimestamp === 0) {\n networkMeasure.lastReceivedDataTimestamp = timestamp;\n } // Clean up now that the resource is done.\n\n\n state.requestIdToNetworkMeasureMap.delete(event.args.data.requestId);\n }\n}\n\nfunction processResourceReceivedData(event, timestamp, profilerData, state) {\n const requestId = event.args.data.requestId;\n const networkMeasure = state.requestIdToNetworkMeasureMap.get(requestId);\n\n if (networkMeasure != null) {\n if (networkMeasure.firstReceivedDataTimestamp === 0) {\n networkMeasure.firstReceivedDataTimestamp = timestamp;\n }\n\n networkMeasure.lastReceivedDataTimestamp = timestamp;\n networkMeasure.finishTimestamp = timestamp;\n }\n}\n\nfunction processResourceReceiveResponse(event, timestamp, profilerData, state) {\n const requestId = event.args.data.requestId;\n const networkMeasure = state.requestIdToNetworkMeasureMap.get(requestId);\n\n if (networkMeasure != null) {\n networkMeasure.receiveResponseTimestamp = timestamp;\n }\n}\n\nfunction processScreenshot(event, timestamp, profilerData, state) {\n const encodedSnapshot = event.args.snapshot; // Base 64 encoded\n\n const snapshot = {\n height: 0,\n image: null,\n imageSource: `data:image/png;base64,${encodedSnapshot}`,\n timestamp,\n width: 0\n }; // Delay processing until we\'ve extracted snapshot dimensions.\n\n let resolveFn = null;\n state.asyncProcessingPromises.push(new Promise(resolve => {\n resolveFn = resolve;\n })); // Parse the Base64 image data to determine native size.\n // This will be used later to scale for display within the thumbnail strip.\n\n fetch(snapshot.imageSource).then(response => response.blob()).then(blob => {\n // $FlowFixMe[cannot-resolve-name] createImageBitmap\n createImageBitmap(blob).then(bitmap => {\n snapshot.height = bitmap.height;\n snapshot.width = bitmap.width;\n resolveFn();\n });\n });\n profilerData.snapshots.push(snapshot);\n}\n\nfunction processResourceSendRequest(event, timestamp, profilerData, state) {\n const data = event.args.data;\n const requestId = data.requestId;\n const availableDepths = new Array(state.requestIdToNetworkMeasureMap.size + 1).fill(true);\n state.requestIdToNetworkMeasureMap.forEach(({\n depth\n }) => {\n availableDepths[depth] = false;\n });\n let depth = 0;\n\n for (let i = 0; i < availableDepths.length; i++) {\n if (availableDepths[i]) {\n depth = i;\n break;\n }\n }\n\n const networkMeasure = {\n depth,\n finishTimestamp: 0,\n firstReceivedDataTimestamp: 0,\n lastReceivedDataTimestamp: 0,\n requestId,\n requestMethod: data.requestMethod,\n priority: data.priority,\n sendRequestTimestamp: timestamp,\n receiveResponseTimestamp: 0,\n url: data.url\n };\n state.requestIdToNetworkMeasureMap.set(requestId, networkMeasure);\n profilerData.networkMeasures.push(networkMeasure);\n networkMeasure.sendRequestTimestamp = timestamp;\n}\n\nfunction processTimelineEvent(event,\n/** Finalized profiler data up to `event`. May be mutated. */\ncurrentProfilerData,\n/** Intermediate processor state. May be mutated. */\nstate) {\n const {\n cat,\n name,\n ts,\n ph\n } = event;\n const startTime = (ts - currentProfilerData.startTime) / 1000;\n\n switch (cat) {\n case \'disabled-by-default-devtools.screenshot\':\n processScreenshot(event, startTime, currentProfilerData, state);\n break;\n\n case \'devtools.timeline\':\n switch (name) {\n case \'EventDispatch\':\n processEventDispatch(event, startTime, currentProfilerData, state);\n break;\n\n case \'ResourceFinish\':\n processResourceFinish(event, startTime, currentProfilerData, state);\n break;\n\n case \'ResourceReceivedData\':\n processResourceReceivedData(event, startTime, currentProfilerData, state);\n break;\n\n case \'ResourceReceiveResponse\':\n processResourceReceiveResponse(event, startTime, currentProfilerData, state);\n break;\n\n case \'ResourceSendRequest\':\n processResourceSendRequest(event, startTime, currentProfilerData, state);\n break;\n }\n\n break;\n\n case \'blink.user_timing\':\n if (name.startsWith(\'--react-version-\')) {\n const [reactVersion] = name.slice(16).split(\'-\');\n currentProfilerData.reactVersion = reactVersion;\n } else if (name.startsWith(\'--profiler-version-\')) {\n const [versionString] = name.slice(19).split(\'-\');\n profilerVersion = parseInt(versionString, 10);\n\n if (profilerVersion !== SCHEDULING_PROFILER_VERSION) {\n throw new InvalidProfileError(`This version of profiling data (${versionString}) is not supported by the current profiler.`);\n }\n } else if (name.startsWith(\'--react-lane-labels-\')) {\n const [laneLabelTuplesString] = name.slice(20).split(\'-\');\n updateLaneToLabelMap(currentProfilerData, laneLabelTuplesString);\n } else if (name.startsWith(\'--component-\')) {\n processReactComponentMeasure(name, startTime, currentProfilerData, state);\n } else if (name.startsWith(\'--schedule-render-\')) {\n const [laneBitmaskString] = name.slice(18).split(\'-\');\n currentProfilerData.schedulingEvents.push({\n type: \'schedule-render\',\n lanes: getLanesFromTransportDecimalBitmask(laneBitmaskString),\n timestamp: startTime,\n warning: null\n });\n } else if (name.startsWith(\'--schedule-forced-update-\')) {\n const [laneBitmaskString, componentName] = name.slice(25).split(\'-\');\n const forceUpdateEvent = {\n type: \'schedule-force-update\',\n lanes: getLanesFromTransportDecimalBitmask(laneBitmaskString),\n componentName,\n timestamp: startTime,\n warning: null\n }; // If this is a nested update, make a note of it.\n // Once we\'re done processing events, we\'ll check to see if it was a long update and warn about it.\n\n if (state.measureStack.find(({\n type\n }) => type === \'commit\')) {\n state.potentialLongNestedUpdate = forceUpdateEvent;\n }\n\n currentProfilerData.schedulingEvents.push(forceUpdateEvent);\n } else if (name.startsWith(\'--schedule-state-update-\')) {\n const [laneBitmaskString, componentName] = name.slice(24).split(\'-\');\n const stateUpdateEvent = {\n type: \'schedule-state-update\',\n lanes: getLanesFromTransportDecimalBitmask(laneBitmaskString),\n componentName,\n timestamp: startTime,\n warning: null\n }; // If this is a nested update, make a note of it.\n // Once we\'re done processing events, we\'ll check to see if it was a long update and warn about it.\n\n if (state.measureStack.find(({\n type\n }) => type === \'commit\')) {\n state.potentialLongNestedUpdate = stateUpdateEvent;\n }\n\n currentProfilerData.schedulingEvents.push(stateUpdateEvent);\n } else if (name.startsWith(\'--error-\')) {\n const [componentName, phase, message] = name.slice(8).split(\'-\');\n currentProfilerData.thrownErrors.push({\n componentName,\n message,\n phase: phase,\n timestamp: startTime,\n type: \'thrown-error\'\n });\n } else if (name.startsWith(\'--suspense-suspend-\')) {\n const [id, componentName, phase, laneBitmaskString, promiseName] = name.slice(19).split(\'-\');\n const lanes = getLanesFromTransportDecimalBitmask(laneBitmaskString);\n const availableDepths = new Array(state.unresolvedSuspenseEvents.size + 1).fill(true);\n state.unresolvedSuspenseEvents.forEach(({\n depth\n }) => {\n availableDepths[depth] = false;\n });\n let depth = 0;\n\n for (let i = 0; i < availableDepths.length; i++) {\n if (availableDepths[i]) {\n depth = i;\n break;\n }\n } // TODO (timeline) Maybe we should calculate depth in post,\n // so unresolved Suspense requests don\'t take up space.\n // We can\'t know if they\'ll be resolved or not at this point.\n // We\'ll just give them a default (fake) duration width.\n\n\n const suspenseEvent = {\n componentName,\n depth,\n duration: null,\n id,\n phase: phase,\n promiseName: promiseName || null,\n resolution: \'unresolved\',\n timestamp: startTime,\n type: \'suspense\',\n warning: null\n };\n\n if (phase === \'update\') {\n // If a component suspended during an update, we should verify that it was during a transition.\n // We need the lane metadata to verify this though.\n // Since that data is only logged during commit, we may not have it yet.\n // Store these events for post-processing then.\n state.potentialSuspenseEventsOutsideOfTransition.push([suspenseEvent, lanes]);\n }\n\n currentProfilerData.suspenseEvents.push(suspenseEvent);\n state.unresolvedSuspenseEvents.set(id, suspenseEvent);\n } else if (name.startsWith(\'--suspense-resolved-\')) {\n const [id] = name.slice(20).split(\'-\');\n const suspenseEvent = state.unresolvedSuspenseEvents.get(id);\n\n if (suspenseEvent != null) {\n state.unresolvedSuspenseEvents.delete(id);\n suspenseEvent.duration = startTime - suspenseEvent.timestamp;\n suspenseEvent.resolution = \'resolved\';\n }\n } else if (name.startsWith(\'--suspense-rejected-\')) {\n const [id] = name.slice(20).split(\'-\');\n const suspenseEvent = state.unresolvedSuspenseEvents.get(id);\n\n if (suspenseEvent != null) {\n state.unresolvedSuspenseEvents.delete(id);\n suspenseEvent.duration = startTime - suspenseEvent.timestamp;\n suspenseEvent.resolution = \'rejected\';\n }\n } else if (name.startsWith(\'--render-start-\')) {\n if (state.nextRenderShouldGenerateNewBatchID) {\n state.nextRenderShouldGenerateNewBatchID = false;\n state.batchUID = state.uidCounter++;\n } // If this render is the result of a nested update, make a note of it.\n // Once we\'re done processing events, we\'ll check to see if it was a long update and warn about it.\n\n\n if (state.potentialLongNestedUpdate !== null) {\n state.potentialLongNestedUpdates.push([state.potentialLongNestedUpdate, state.batchUID]);\n state.potentialLongNestedUpdate = null;\n }\n\n const [laneBitmaskString] = name.slice(15).split(\'-\');\n throwIfIncomplete(\'render\', state.measureStack);\n\n if (getLastType(state.measureStack) !== \'render-idle\') {\n markWorkStarted(\'render-idle\', startTime, getLanesFromTransportDecimalBitmask(laneBitmaskString), currentProfilerData, state);\n }\n\n markWorkStarted(\'render\', startTime, getLanesFromTransportDecimalBitmask(laneBitmaskString), currentProfilerData, state);\n\n for (let i = 0; i < state.nativeEventStack.length; i++) {\n const nativeEvent = state.nativeEventStack[i];\n const stopTime = nativeEvent.timestamp + nativeEvent.duration; // If React work was scheduled during an event handler, and the event had a long duration,\n // it might be because the React render was long and stretched the event.\n // It might also be that the React work was short and that something else stretched the event.\n // Make a note of this event for now and we\'ll examine the batch of React render work later.\n // (We can\'t know until we\'re done processing the React update anyway.)\n\n if (stopTime > startTime) {\n state.potentialLongEvents.push([nativeEvent, state.batchUID]);\n }\n }\n } else if (name.startsWith(\'--render-stop\') || name.startsWith(\'--render-yield\')) {\n markWorkCompleted(\'render\', startTime, currentProfilerData, state.measureStack);\n } else if (name.startsWith(\'--commit-start-\')) {\n state.nextRenderShouldGenerateNewBatchID = true;\n const [laneBitmaskString] = name.slice(15).split(\'-\');\n markWorkStarted(\'commit\', startTime, getLanesFromTransportDecimalBitmask(laneBitmaskString), currentProfilerData, state);\n } else if (name.startsWith(\'--commit-stop\')) {\n markWorkCompleted(\'commit\', startTime, currentProfilerData, state.measureStack);\n markWorkCompleted(\'render-idle\', startTime, currentProfilerData, state.measureStack);\n } else if (name.startsWith(\'--layout-effects-start-\')) {\n const [laneBitmaskString] = name.slice(23).split(\'-\');\n markWorkStarted(\'layout-effects\', startTime, getLanesFromTransportDecimalBitmask(laneBitmaskString), currentProfilerData, state);\n } else if (name.startsWith(\'--layout-effects-stop\')) {\n markWorkCompleted(\'layout-effects\', startTime, currentProfilerData, state.measureStack);\n } else if (name.startsWith(\'--passive-effects-start-\')) {\n const [laneBitmaskString] = name.slice(24).split(\'-\');\n markWorkStarted(\'passive-effects\', startTime, getLanesFromTransportDecimalBitmask(laneBitmaskString), currentProfilerData, state);\n } else if (name.startsWith(\'--passive-effects-stop\')) {\n markWorkCompleted(\'passive-effects\', startTime, currentProfilerData, state.measureStack);\n } else if (name.startsWith(\'--react-internal-module-start-\')) {\n const stackFrameStart = name.slice(30);\n\n if (!state.internalModuleStackStringSet.has(stackFrameStart)) {\n state.internalModuleStackStringSet.add(stackFrameStart);\n const parsedStackFrameStart = parseStackFrame(stackFrameStart);\n state.internalModuleCurrentStackFrame = parsedStackFrameStart;\n }\n } else if (name.startsWith(\'--react-internal-module-stop-\')) {\n const stackFrameStop = name.slice(29);\n\n if (!state.internalModuleStackStringSet.has(stackFrameStop)) {\n state.internalModuleStackStringSet.add(stackFrameStop);\n const parsedStackFrameStop = parseStackFrame(stackFrameStop);\n\n if (parsedStackFrameStop !== null && state.internalModuleCurrentStackFrame !== null) {\n const parsedStackFrameStart = state.internalModuleCurrentStackFrame;\n state.internalModuleCurrentStackFrame = null;\n const range = [parsedStackFrameStart, parsedStackFrameStop];\n const ranges = currentProfilerData.internalModuleSourceToRanges.get(parsedStackFrameStart.fileName);\n\n if (ranges == null) {\n currentProfilerData.internalModuleSourceToRanges.set(parsedStackFrameStart.fileName, [range]);\n } else {\n ranges.push(range);\n }\n }\n }\n } else if (ph === \'R\' || ph === \'n\') {\n // User Timing mark\n currentProfilerData.otherUserTimingMarks.push({\n name,\n timestamp: startTime\n });\n } else if (ph === \'b\') {// TODO: Begin user timing measure\n } else if (ph === \'e\') {// TODO: End user timing measure\n } else if (ph === \'i\' || ph === \'I\') {// Instant events.\n // Note that the capital "I" is a deprecated value that exists in Chrome Canary traces.\n } else {\n throw new InvalidProfileError(`Unrecognized event ${JSON.stringify(event)}! This is likely a bug in this profiler tool.`);\n }\n\n break;\n }\n}\n\nfunction assertNoOverlappingComponentMeasure(state) {\n if (state.currentReactComponentMeasure !== null) {\n console.error(\'Component measure started while another measure in progress:\', state.currentReactComponentMeasure);\n }\n}\n\nfunction assertCurrentComponentMeasureType(state, type) {\n if (state.currentReactComponentMeasure === null) {\n console.error(`Component measure type "${type}" stopped while no measure was in progress`);\n } else if (state.currentReactComponentMeasure.type !== type) {\n console.error(`Component measure type "${type}" stopped while type ${state.currentReactComponentMeasure.type} in progress`);\n }\n}\n\nfunction processReactComponentMeasure(name, startTime, currentProfilerData, state) {\n if (name.startsWith(\'--component-render-start-\')) {\n const [componentName] = name.slice(25).split(\'-\');\n assertNoOverlappingComponentMeasure(state);\n state.currentReactComponentMeasure = {\n componentName,\n timestamp: startTime,\n duration: 0,\n type: \'render\',\n warning: null\n };\n } else if (name === \'--component-render-stop\') {\n assertCurrentComponentMeasureType(state, \'render\');\n\n if (state.currentReactComponentMeasure !== null) {\n const componentMeasure = state.currentReactComponentMeasure;\n componentMeasure.duration = startTime - componentMeasure.timestamp;\n state.currentReactComponentMeasure = null;\n currentProfilerData.componentMeasures.push(componentMeasure);\n }\n } else if (name.startsWith(\'--component-layout-effect-mount-start-\')) {\n const [componentName] = name.slice(38).split(\'-\');\n assertNoOverlappingComponentMeasure(state);\n state.currentReactComponentMeasure = {\n componentName,\n timestamp: startTime,\n duration: 0,\n type: \'layout-effect-mount\',\n warning: null\n };\n } else if (name === \'--component-layout-effect-mount-stop\') {\n assertCurrentComponentMeasureType(state, \'layout-effect-mount\');\n\n if (state.currentReactComponentMeasure !== null) {\n const componentMeasure = state.currentReactComponentMeasure;\n componentMeasure.duration = startTime - componentMeasure.timestamp;\n state.currentReactComponentMeasure = null;\n currentProfilerData.componentMeasures.push(componentMeasure);\n }\n } else if (name.startsWith(\'--component-layout-effect-unmount-start-\')) {\n const [componentName] = name.slice(40).split(\'-\');\n assertNoOverlappingComponentMeasure(state);\n state.currentReactComponentMeasure = {\n componentName,\n timestamp: startTime,\n duration: 0,\n type: \'layout-effect-unmount\',\n warning: null\n };\n } else if (name === \'--component-layout-effect-unmount-stop\') {\n assertCurrentComponentMeasureType(state, \'layout-effect-unmount\');\n\n if (state.currentReactComponentMeasure !== null) {\n const componentMeasure = state.currentReactComponentMeasure;\n componentMeasure.duration = startTime - componentMeasure.timestamp;\n state.currentReactComponentMeasure = null;\n currentProfilerData.componentMeasures.push(componentMeasure);\n }\n } else if (name.startsWith(\'--component-passive-effect-mount-start-\')) {\n const [componentName] = name.slice(39).split(\'-\');\n assertNoOverlappingComponentMeasure(state);\n state.currentReactComponentMeasure = {\n componentName,\n timestamp: startTime,\n duration: 0,\n type: \'passive-effect-mount\',\n warning: null\n };\n } else if (name === \'--component-passive-effect-mount-stop\') {\n assertCurrentComponentMeasureType(state, \'passive-effect-mount\');\n\n if (state.currentReactComponentMeasure !== null) {\n const componentMeasure = state.currentReactComponentMeasure;\n componentMeasure.duration = startTime - componentMeasure.timestamp;\n state.currentReactComponentMeasure = null;\n currentProfilerData.componentMeasures.push(componentMeasure);\n }\n } else if (name.startsWith(\'--component-passive-effect-unmount-start-\')) {\n const [componentName] = name.slice(41).split(\'-\');\n assertNoOverlappingComponentMeasure(state);\n state.currentReactComponentMeasure = {\n componentName,\n timestamp: startTime,\n duration: 0,\n type: \'passive-effect-unmount\',\n warning: null\n };\n } else if (name === \'--component-passive-effect-unmount-stop\') {\n assertCurrentComponentMeasureType(state, \'passive-effect-unmount\');\n\n if (state.currentReactComponentMeasure !== null) {\n const componentMeasure = state.currentReactComponentMeasure;\n componentMeasure.duration = startTime - componentMeasure.timestamp;\n state.currentReactComponentMeasure = null;\n currentProfilerData.componentMeasures.push(componentMeasure);\n }\n }\n}\n\nfunction preprocessFlamechart(rawData) {\n let parsedData;\n\n try {\n parsedData = (0,library.importFromChromeTimeline)(rawData, \'react-devtools\');\n } catch (error) {\n // Assume any Speedscope errors are caused by bad profiles\n const errorToRethrow = new InvalidProfileError(error.message);\n errorToRethrow.stack = error.stack;\n throw errorToRethrow;\n }\n\n const profile = parsedData.profiles[0]; // TODO: Choose the main CPU thread only\n\n const speedscopeFlamechart = new library.Flamechart({\n // $FlowFixMe[method-unbinding]\n getTotalWeight: profile.getTotalWeight.bind(profile),\n // $FlowFixMe[method-unbinding]\n forEachCall: profile.forEachCall.bind(profile),\n // $FlowFixMe[method-unbinding]\n formatValue: profile.formatValue.bind(profile),\n getColorBucketForFrame: () => 0\n });\n const flamechart = speedscopeFlamechart.getLayers().map(layer => layer.map(({\n start,\n end,\n node: {\n frame: {\n name,\n file,\n line,\n col\n }\n }\n }) => ({\n name,\n timestamp: start / 1000,\n duration: (end - start) / 1000,\n scriptUrl: file,\n locationLine: line,\n locationColumn: col\n })));\n return flamechart;\n}\n\nfunction parseStackFrame(stackFrame) {\n const error = new Error();\n error.stack = stackFrame;\n const frames = error_stack_parser_default().parse(error);\n return frames.length === 1 ? frames[0] : null;\n}\n\nasync function preprocessData(timeline) {\n const flamechart = preprocessFlamechart(timeline);\n const laneToReactMeasureMap = new Map();\n\n for (let lane = 0; lane < REACT_TOTAL_NUM_LANES; lane++) {\n laneToReactMeasureMap.set(lane, []);\n }\n\n const profilerData = {\n batchUIDToMeasuresMap: new Map(),\n componentMeasures: [],\n duration: 0,\n flamechart,\n internalModuleSourceToRanges: new Map(),\n laneToLabelMap: new Map(),\n laneToReactMeasureMap,\n nativeEvents: [],\n networkMeasures: [],\n otherUserTimingMarks: [],\n reactVersion: null,\n schedulingEvents: [],\n snapshots: [],\n snapshotHeight: 0,\n startTime: 0,\n suspenseEvents: [],\n thrownErrors: []\n }; // Sort `timeline`. JSON Array Format trace events need not be ordered. See:\n // https://docs.google.com/document/d/1CvAClvFfyA5R-PhYUmn5OOQtYMH4h6I0nSsKchNAySU/preview#heading=h.f2f0yd51wi15\n\n timeline = timeline.filter(Boolean).sort((a, b) => a.ts > b.ts ? 1 : -1); // Events displayed in flamechart have timestamps relative to the profile\n // event\'s startTime. Source: https://github.com/v8/v8/blob/44bd8fd7/src/inspector/js_protocol.json#L1486\n //\n // We\'ll thus expect there to be a \'Profile\' event; if there is not one, we\n // can deduce that there are no flame chart events. As we expect React\n // scheduling profiling user timing marks to be recorded together with browser\n // flame chart events, we can futher deduce that the data is invalid and we\n // don\'t bother finding React events.\n\n const indexOfProfileEvent = timeline.findIndex(event => event.name === \'Profile\');\n\n if (indexOfProfileEvent === -1) {\n return profilerData;\n } // Use Profile event\'s `startTime` as the start time to align with flame chart.\n // TODO: Remove assumption that there\'ll only be 1 \'Profile\' event. If this\n // assumption does not hold, the chart may start at the wrong time.\n\n\n profilerData.startTime = timeline[indexOfProfileEvent].args.data.startTime;\n profilerData.duration = (timeline[timeline.length - 1].ts - profilerData.startTime) / 1000;\n const state = {\n asyncProcessingPromises: [],\n batchUID: 0,\n currentReactComponentMeasure: null,\n internalModuleCurrentStackFrame: null,\n internalModuleStackStringSet: new Set(),\n measureStack: [],\n nativeEventStack: [],\n nextRenderShouldGenerateNewBatchID: true,\n potentialLongEvents: [],\n potentialLongNestedUpdate: null,\n potentialLongNestedUpdates: [],\n potentialSuspenseEventsOutsideOfTransition: [],\n requestIdToNetworkMeasureMap: new Map(),\n uidCounter: 0,\n unresolvedSuspenseEvents: new Map()\n };\n timeline.forEach(event => processTimelineEvent(event, profilerData, state));\n\n if (profilerVersion === null) {\n if (profilerData.schedulingEvents.length === 0 && profilerData.batchUIDToMeasuresMap.size === 0) {\n // No profiler version could indicate data was logged using an older build of React,\n // before an explicitly profiler version was included in the logging data.\n // But it could also indicate that the website was either not using React, or using a production build.\n // The easiest way to check for this case is to see if the data contains any scheduled updates or render work.\n throw new InvalidProfileError(\'No React marks were found in the provided profile.\' + \' Please provide profiling data from an React application running in development or profiling mode.\');\n }\n\n throw new InvalidProfileError(`This version of profiling data is not supported by the current profiler.`);\n } // Validate that all events and measures are complete\n\n\n const {\n measureStack\n } = state;\n\n if (measureStack.length > 0) {\n console.error(\'Incomplete events or measures\', measureStack);\n } // Check for warnings.\n\n\n state.potentialLongEvents.forEach(([nativeEvent, batchUID]) => {\n // See how long the subsequent batch of React work was.\n // Ignore any work that was already started.\n const [startTime, stopTime] = getBatchRange(batchUID, profilerData, nativeEvent.timestamp);\n\n if (stopTime - startTime > NATIVE_EVENT_DURATION_THRESHOLD) {\n nativeEvent.warning = WARNING_STRINGS.LONG_EVENT_HANDLER;\n }\n });\n state.potentialLongNestedUpdates.forEach(([schedulingEvent, batchUID]) => {\n // See how long the subsequent batch of React work was.\n const [startTime, stopTime] = getBatchRange(batchUID, profilerData);\n\n if (stopTime - startTime > NESTED_UPDATE_DURATION_THRESHOLD) {\n // Don\'t warn about transition updates scheduled during the commit phase.\n // e.g. useTransition, useDeferredValue\n // These are allowed to be long-running.\n if (!schedulingEvent.lanes.some(lane => profilerData.laneToLabelMap.get(lane) === \'Transition\')) {// FIXME: This warning doesn\'t account for "nested updates" that are\n // spawned by useDeferredValue. Disabling temporarily until we figure\n // out the right way to handle this.\n // schedulingEvent.warning = WARNING_STRINGS.NESTED_UPDATE;\n }\n }\n });\n state.potentialSuspenseEventsOutsideOfTransition.forEach(([suspenseEvent, lanes]) => {\n // HACK This is a bit gross but the numeric lane value might change between render versions.\n if (!lanes.some(lane => profilerData.laneToLabelMap.get(lane) === \'Transition\')) {\n suspenseEvent.warning = WARNING_STRINGS.SUSPEND_DURING_UPDATE;\n }\n }); // Wait for any async processing to complete before returning.\n // Since processing is done in a worker, async work must complete before data is serialized and returned.\n\n await Promise.all(state.asyncProcessingPromises); // Now that all images have been loaded, let\'s figure out the display size we\'re going to use for our thumbnails:\n // both the ones rendered to the canvas and the ones shown on hover.\n\n if (profilerData.snapshots.length > 0) {\n // NOTE We assume a static window size here, which is not necessarily true but should be for most cases.\n // Regardless, Chrome also sets a single size/ratio and stick with it- so we\'ll do the same.\n const snapshot = profilerData.snapshots[0];\n profilerData.snapshotHeight = Math.min(snapshot.height, SNAPSHOT_MAX_HEIGHT);\n }\n\n return profilerData;\n}\n// EXTERNAL MODULE: ../../node_modules/nullthrows/nullthrows.js\nvar nullthrows = __webpack_require__(69);\nvar nullthrows_default = /*#__PURE__*/__webpack_require__.n(nullthrows);\n;// CONCATENATED MODULE: ../react-devtools-timeline/src/import-worker/readInputData.js\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\n\n\nconst readInputData = file => {\n if (!file.name.endsWith(\'.json\')) {\n throw new InvalidProfileError(\'Invalid file type. Only JSON performance profiles are supported\');\n }\n\n const fileReader = new FileReader();\n return new Promise((resolve, reject) => {\n fileReader.onload = () => {\n const result = nullthrows_default()(fileReader.result);\n\n if (typeof result === \'string\') {\n resolve(result);\n }\n\n reject(new InvalidProfileError(\'Input file was not read as a string\'));\n };\n\n fileReader.onerror = () => reject(fileReader.error);\n\n fileReader.readAsText(file);\n });\n};\n;// CONCATENATED MODULE: ../react-devtools-timeline/src/import-worker/importFile.js\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\n\n\n\n\nasync function importFile(file) {\n try {\n const readFile = await readInputData(file);\n const events = JSON.parse(readFile);\n\n if (events.length === 0) {\n throw new InvalidProfileError(\'No profiling data found in file.\');\n }\n\n const processedData = await preprocessData(events);\n return {\n status: \'SUCCESS\',\n processedData\n };\n } catch (error) {\n if (error instanceof InvalidProfileError) {\n return {\n status: \'INVALID_PROFILE_ERROR\',\n error\n };\n } else {\n return {\n status: \'UNEXPECTED_ERROR\',\n error\n };\n }\n }\n}\n;// CONCATENATED MODULE: ../../node_modules/workerize-loader/dist/rpc-worker-loader.js!../../node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use[1]!../../node_modules/babel-loader/lib/index.js??ruleSet[1].rules[1]!../react-devtools-timeline/src/import-worker/importFile.worker.js\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nconst importFile_worker_importFile = importFile;\naddEventListener(\'message\', function (e) {var _e$data = e.data,type = _e$data.type,method = _e$data.method,id = _e$data.id,params = _e$data.params,f,p;if (type === \'RPC\' && method) {if (f = __webpack_exports__[method]) {p = Promise.resolve().then(function () {return f.apply(__webpack_exports__, params);});} else {p = Promise.reject(\'No such method\');}p.then(function (result) {postMessage({type: \'RPC\',id: id,result: result});}).catch(function (e) {var error = {message: e};if (e.stack) {error.message = e.message;error.stack = e.stack;error.name = e.name;}postMessage({type: \'RPC\',id: id,error: error});});}});postMessage({type: \'RPC\',method: \'ready\'});\n})();\n\n'])),{name:"[name].worker.js"});return URL.revokeObjectURL(URL.createObjectURL(new Blob(['/******/ var __webpack_modules__ = ({\n\n/***/ 496:\n/***/ ((__unused_webpack_module, exports, __webpack_require__) => {\n\n\n\nObject.defineProperty(exports, "__esModule", ({\n value: true\n}));\nexports.importFromOldV8CPUProfile = exports.importFromChromeCPUProfile = exports.importFromChromeTimeline = exports.isChromeTimeline = void 0;\n\nconst profile_1 = __webpack_require__(211);\n\nconst utils_1 = __webpack_require__(844);\n\nconst value_formatters_1 = __webpack_require__(218);\n\nconst v8cpuFormatter_1 = __webpack_require__(320);\n\nfunction isChromeTimeline(rawProfile) {\n if (!Array.isArray(rawProfile)) return false;\n if (rawProfile.length < 1) return false;\n const first = rawProfile[0];\n if (!(\'pid\' in first && \'tid\' in first && \'ph\' in first && \'cat\' in first)) return false;\n if (!rawProfile.find(e => e.name === \'CpuProfile\' || e.name === \'Profile\' || e.name === \'ProfileChunk\')) return false;\n return true;\n}\n\nexports.isChromeTimeline = isChromeTimeline;\n\nfunction importFromChromeTimeline(events, fileName) {\n // It seems like sometimes Chrome timeline files contain multiple CpuProfiles?\n // For now, choose the first one in the list.\n const cpuProfileByID = new Map(); // Maps profile IDs (like "0x3") to pid/tid pairs formatted as `${pid}:${tid}`\n\n const pidTidById = new Map(); // Maps pid/tid pairs to thread names\n\n const threadNameByPidTid = new Map(); // The events aren\'t necessarily recorded in chronological order. Sort them so\n // that they are.\n\n utils_1.sortBy(events, e => e.ts);\n\n for (let event of events) {\n if (event.name === \'CpuProfile\') {\n const pidTid = `${event.pid}:${event.tid}`;\n const id = event.id || pidTid;\n cpuProfileByID.set(id, event.args.data.cpuProfile);\n pidTidById.set(id, pidTid);\n }\n\n if (event.name === \'Profile\') {\n const pidTid = `${event.pid}:${event.tid}`;\n cpuProfileByID.set(event.id || pidTid, Object.assign({\n startTime: 0,\n endTime: 0,\n nodes: [],\n samples: [],\n timeDeltas: []\n }, event.args.data));\n\n if (event.id) {\n pidTidById.set(event.id, `${event.pid}:${event.tid}`);\n }\n }\n\n if (event.name === \'thread_name\') {\n threadNameByPidTid.set(`${event.pid}:${event.tid}`, event.args.name);\n }\n\n if (event.name === \'ProfileChunk\') {\n const pidTid = `${event.pid}:${event.tid}`;\n const cpuProfile = cpuProfileByID.get(event.id || pidTid);\n\n if (cpuProfile) {\n const chunk = event.args.data;\n\n if (chunk.cpuProfile) {\n if (chunk.cpuProfile.nodes) {\n cpuProfile.nodes = cpuProfile.nodes.concat(chunk.cpuProfile.nodes);\n }\n\n if (chunk.cpuProfile.samples) {\n cpuProfile.samples = cpuProfile.samples.concat(chunk.cpuProfile.samples);\n }\n }\n\n if (chunk.timeDeltas) {\n cpuProfile.timeDeltas = cpuProfile.timeDeltas.concat(chunk.timeDeltas);\n }\n\n if (chunk.startTime != null) {\n cpuProfile.startTime = chunk.startTime;\n }\n\n if (chunk.endTime != null) {\n cpuProfile.endTime = chunk.endTime;\n }\n } else {\n console.warn(`Ignoring ProfileChunk for undeclared Profile with id ${event.id || pidTid}`);\n }\n }\n }\n\n if (cpuProfileByID.size > 0) {\n const profiles = [];\n let indexToView = 0;\n utils_1.itForEach(cpuProfileByID.keys(), profileId => {\n let threadName = null;\n let pidTid = pidTidById.get(profileId);\n\n if (pidTid) {\n threadName = threadNameByPidTid.get(pidTid) || null;\n\n if (threadName) {}\n }\n\n const profile = importFromChromeCPUProfile(cpuProfileByID.get(profileId));\n\n if (threadName && cpuProfileByID.size > 1) {\n profile.setName(`${fileName} - ${threadName}`);\n\n if (threadName === \'CrRendererMain\') {\n indexToView = profiles.length;\n }\n } else {\n profile.setName(`${fileName}`);\n }\n\n profiles.push(profile);\n });\n return {\n name: fileName,\n indexToView,\n profiles\n };\n } else {\n throw new Error(\'Could not find CPU profile in Timeline\');\n }\n}\n\nexports.importFromChromeTimeline = importFromChromeTimeline;\nconst callFrameToFrameInfo = new Map();\n\nfunction frameInfoForCallFrame(callFrame) {\n return utils_1.getOrInsert(callFrameToFrameInfo, callFrame, callFrame => {\n const name = callFrame.functionName || \'(anonymous)\';\n const file = callFrame.url;\n const line = callFrame.lineNumber;\n const col = callFrame.columnNumber;\n return {\n key: `${name}:${file}:${line}:${col}`,\n name,\n file,\n line,\n col\n };\n });\n}\n\nfunction shouldIgnoreFunction(callFrame) {\n const {\n functionName,\n url\n } = callFrame;\n\n if (url === \'native dummy.js\') {\n // I\'m not really sure what this is about, but this seems to be used\n // as a way of avoiding edge cases in V8\'s implementation.\n // See: https://github.com/v8/v8/blob/b8626ca4/tools/js2c.py#L419-L424\n return true;\n }\n\n return functionName === \'(root)\' || functionName === \'(idle)\';\n}\n\nfunction shouldPlaceOnTopOfPreviousStack(functionName) {\n return functionName === \'(garbage collector)\' || functionName === \'(program)\';\n}\n\nfunction importFromChromeCPUProfile(chromeProfile) {\n const profile = new profile_1.CallTreeProfileBuilder(chromeProfile.endTime - chromeProfile.startTime);\n const nodeById = new Map();\n\n for (let node of chromeProfile.nodes) {\n nodeById.set(node.id, node);\n }\n\n for (let node of chromeProfile.nodes) {\n if (typeof node.parent === \'number\') {\n node.parent = nodeById.get(node.parent);\n }\n\n if (!node.children) continue;\n\n for (let childId of node.children) {\n const child = nodeById.get(childId);\n if (!child) continue;\n child.parent = node;\n }\n }\n\n const samples = [];\n const sampleTimes = []; // The first delta is relative to the profile startTime.\n // Ref: https://github.com/v8/v8/blob/44bd8fd7/src/inspector/js_protocol.json#L1485\n\n let elapsed = chromeProfile.timeDeltas[0]; // Prevents negative time deltas from causing bad data. See\n // https://github.com/jlfwong/speedscope/pull/305 for details.\n\n let lastValidElapsed = elapsed;\n let lastNodeId = NaN; // The chrome CPU profile format doesn\'t collapse identical samples. We\'ll do that\n // here to save a ton of work later doing mergers.\n\n for (let i = 0; i < chromeProfile.samples.length; i++) {\n const nodeId = chromeProfile.samples[i];\n\n if (nodeId != lastNodeId) {\n samples.push(nodeId);\n\n if (elapsed < lastValidElapsed) {\n sampleTimes.push(lastValidElapsed);\n } else {\n sampleTimes.push(elapsed);\n lastValidElapsed = elapsed;\n }\n }\n\n if (i === chromeProfile.samples.length - 1) {\n if (!isNaN(lastNodeId)) {\n samples.push(lastNodeId);\n\n if (elapsed < lastValidElapsed) {\n sampleTimes.push(lastValidElapsed);\n } else {\n sampleTimes.push(elapsed);\n lastValidElapsed = elapsed;\n }\n }\n } else {\n const timeDelta = chromeProfile.timeDeltas[i + 1];\n elapsed += timeDelta;\n lastNodeId = nodeId;\n }\n }\n\n let prevStack = [];\n\n for (let i = 0; i < samples.length; i++) {\n const value = sampleTimes[i];\n const nodeId = samples[i];\n let stackTop = nodeById.get(nodeId);\n if (!stackTop) continue; // Find lowest common ancestor of the current stack and the previous one\n\n let lca = null; // This is O(n^2), but n should be relatively small here (stack height),\n // so hopefully this isn\'t much of a problem\n\n for (lca = stackTop; lca && prevStack.indexOf(lca) === -1; lca = shouldPlaceOnTopOfPreviousStack(lca.callFrame.functionName) ? utils_1.lastOf(prevStack) : lca.parent || null) {} // Close frames that are no longer open\n\n\n while (prevStack.length > 0 && utils_1.lastOf(prevStack) != lca) {\n const closingNode = prevStack.pop();\n const frame = frameInfoForCallFrame(closingNode.callFrame);\n profile.leaveFrame(frame, value);\n } // Open frames that are now becoming open\n\n\n const toOpen = [];\n\n for (let node = stackTop; node && node != lca && !shouldIgnoreFunction(node.callFrame); // Place Chrome internal functions on top of the previous call stack\n node = shouldPlaceOnTopOfPreviousStack(node.callFrame.functionName) ? utils_1.lastOf(prevStack) : node.parent || null) {\n toOpen.push(node);\n }\n\n toOpen.reverse();\n\n for (let node of toOpen) {\n profile.enterFrame(frameInfoForCallFrame(node.callFrame), value);\n }\n\n prevStack = prevStack.concat(toOpen);\n } // Close frames that are open at the end of the trace\n\n\n for (let i = prevStack.length - 1; i >= 0; i--) {\n profile.leaveFrame(frameInfoForCallFrame(prevStack[i].callFrame), utils_1.lastOf(sampleTimes));\n }\n\n profile.setValueFormatter(new value_formatters_1.TimeFormatter(\'microseconds\'));\n return profile.build();\n}\n\nexports.importFromChromeCPUProfile = importFromChromeCPUProfile;\n\nfunction importFromOldV8CPUProfile(content) {\n return importFromChromeCPUProfile(v8cpuFormatter_1.chromeTreeToNodes(content));\n}\n\nexports.importFromOldV8CPUProfile = importFromOldV8CPUProfile;\n\n/***/ }),\n\n/***/ 320:\n/***/ ((__unused_webpack_module, exports) => {\n\n\n\nObject.defineProperty(exports, "__esModule", ({\n value: true\n}));\nexports.chromeTreeToNodes = void 0;\n\nfunction treeToArray(root) {\n const nodes = [];\n\n function visit(node) {\n nodes.push({\n id: node.id,\n callFrame: {\n columnNumber: 0,\n functionName: node.functionName,\n lineNumber: node.lineNumber,\n scriptId: node.scriptId,\n url: node.url\n },\n hitCount: node.hitCount,\n children: node.children.map(child => child.id)\n });\n node.children.forEach(visit);\n }\n\n visit(root);\n return nodes;\n}\n\nfunction timestampsToDeltas(timestamps, startTime) {\n return timestamps.map((timestamp, index) => {\n const lastTimestamp = index === 0 ? startTime * 1000000 : timestamps[index - 1];\n return timestamp - lastTimestamp;\n });\n}\n/**\n * Convert the old tree-based format to the new flat-array based format\n */\n\n\nfunction chromeTreeToNodes(content) {\n // Note that both startTime and endTime are now in microseconds\n return {\n samples: content.samples,\n startTime: content.startTime * 1000000,\n endTime: content.endTime * 1000000,\n nodes: treeToArray(content.head),\n timeDeltas: timestampsToDeltas(content.timestamps, content.startTime)\n };\n}\n\nexports.chromeTreeToNodes = chromeTreeToNodes;\n\n/***/ }),\n\n/***/ 765:\n/***/ ((__unused_webpack_module, exports) => {\n\n\n\nObject.defineProperty(exports, "__esModule", ({\n value: true\n}));\nexports.demangleCpp = void 0;\nlet cppfilt;\nconst cache = new Map(); // This function converts a mangled C++ name such as "__ZNK7Support6ColorFeqERKS0_"\n// into a human-readable symbol (in this case "Support::ColorF::==(Support::ColorF&)")\n\nfunction demangleCpp(name) {\n if (name.startsWith(\'__Z\')) {\n let result = cache.get(name);\n\n if (result !== undefined) {\n name = result;\n } else {\n if (!cppfilt) {\n cppfilt = new Function(\'exports\', code)();\n }\n\n result = cppfilt(name.slice(1));\n result = result === \'(null)\' ? name : result;\n cache.set(name, result);\n name = result;\n }\n }\n\n return name;\n}\n\nexports.demangleCpp = demangleCpp; // This was taken from https://d.fuqu.jp/c++filtjs/\n\nconst code = `\nreturn function(){function r(r){eval.call(null,r)}function a(r){throw print(r+":\\\\n"+(new Error).stack),ke=!0,"Assertion: "+r}function e(r,e){r||a("Assertion failed: "+e)}function i(r,a,i,v){function t(r,a){if("string"==a){var e=Oe;return le.stackAlloc(r.length+1),A(r,e),e}return r}function f(r,a){return"string"==a?s(r):r}try{func=ce.Module["_"+r]}catch(r){}e(func,"Cannot call unknown function "+r+" (perhaps LLVM optimizations or closure removed it?)");var _=0,n=v?v.map(function(r){return t(r,i[_++])}):[];return f(func.apply(null,n),a)}function v(r,a,e){return function(){return i(r,a,e,Array.prototype.slice.call(arguments))}}function t(r,e,i,v){switch(i=i||"i8","*"===i[i.length-1]&&(i="i32"),i){case"i1":Ae[r]=e;break;case"i8":Ae[r]=e;break;case"i16":ye[r>>1]=e;break;case"i32":Se[r>>2]=e;break;case"i64":Se[r>>2]=e;break;case"float":Ce[r>>2]=e;break;case"double":ze[0]=e,Se[r>>2]=xe[0],Se[r+4>>2]=xe[1];break;default:a("invalid type for setValue: "+i)}}function f(r,e,i){switch(e=e||"i8","*"===e[e.length-1]&&(e="i32"),e){case"i1":return Ae[r];case"i8":return Ae[r];case"i16":return ye[r>>1];case"i32":return Se[r>>2];case"i64":return Se[r>>2];case"float":return Ce[r>>2];case"double":return xe[0]=Se[r>>2],xe[1]=Se[r+4>>2],ze[0];default:a("invalid type for setValue: "+e)}return null}function _(r,a,e){var i,v;"number"==typeof r?(i=!0,v=r):(i=!1,v=r.length);var f="string"==typeof a?a:null,_=[Jr,le.stackAlloc,le.staticAlloc][void 0===e?we:e](Math.max(v,f?1:a.length));if(i)return Fa(_,0,v),_;for(var s,n=0;n>12<<12}function l(){for(;Le<=Ie;)Le=o(2*Le);var r=Ae,a=new ArrayBuffer(Le);Ae=new Int8Array(a),ye=new Int16Array(a),Se=new Int32Array(a),ge=new Uint8Array(a),me=new Uint16Array(a),Me=new Uint32Array(a),Ce=new Float32Array(a),Re=new Float64Array(a),Ae.set(r)}function b(r){for(;r.length>0;){var a=r.shift(),e=a.func;"number"==typeof e&&(e=pe[e]),e(void 0===a.arg?null:a.arg)}}function k(){b(Ve)}function u(){b(Be),be.print()}function c(r,a){return Array.prototype.slice.call(Ae.subarray(r,r+a))}function h(r,a){for(var e=new Uint8Array(a),i=0;i255&&(v&=255),e.push(v),i+=1}return a||e.push(0),e}function E(r){for(var a=[],e=0;e255&&(i&=255),a.push(String.fromCharCode(i))}return a.join("")}function A(r,a,e){for(var i=0;i255&&(v&=255),Ae[a+i]=v,i+=1}e||(Ae[a+i]=0)}function g(r,a,e,i){return r>=0?r:a<=32?2*Math.abs(1<=v&&(a<=32||r>v)&&(r=-2*v+r),r}function m(r,a,e){if(0==(0|r)|0==(0|a)|0==(0|e))var i=0;else{Se[r>>2]=0,Se[r+4>>2]=a,Se[r+8>>2]=e;var i=1}var i;return i}function S(r,a,e){if(0==(0|r)|(0|a)<0|0==(0|e))var i=0;else{Se[r>>2]=41,Se[r+4>>2]=a,Se[r+8>>2]=e;var i=1}var i;return i}function M(r,a,e){if(0==(0|r)|0==(0|e))var i=0;else{Se[r>>2]=6,Se[r+4>>2]=a,Se[r+8>>2]=e;var i=1}var i;return i}function C(r,a,e){if(0==(0|r)|0==(0|e))var i=0;else{Se[r>>2]=7,Se[r+4>>2]=a,Se[r+8>>2]=e;var i=1}var i;return i}function R(r,a){var e,i=0==(0|a);do if(i)var v=0;else{var e=(r+32|0)>>2,t=Se[e];if((0|t)>=(0|Se[r+36>>2])){var v=0;break}var f=(t<<2)+Se[r+28>>2]|0;Se[f>>2]=a;var _=Se[e]+1|0;Se[e]=_;var v=1}while(0);var v;return v}function T(r,a){var e,e=(r+12|0)>>2,i=Se[e],v=i+1|0;Se[e]=v;var t=Ae[i]<<24>>24==95;do if(t){var f=i+2|0;if(Se[e]=f,Ae[v]<<24>>24!=90){var _=0;break}var s=O(r,a),_=s}else var _=0;while(0);var _;return _}function O(r,a){var e=r+12|0,i=Ae[Se[e>>2]];r:do if(i<<24>>24==71||i<<24>>24==84)var v=Tr(r),t=v;else{var f=Ar(r),_=0==(0|f)|0==(0|a);do if(!_){if(0!=(1&Se[r+8>>2]|0))break;var s=Me[f>>2],n=(s-25|0)>>>0<3;a:do if(n)for(var o=f;;){var o,l=Me[o+4>>2],b=Me[l>>2];if((b-25|0)>>>0>=3){var k=l,u=b;break a}var o=l}else var k=f,u=s;while(0);var u,k;if(2!=(0|u)){var t=k;break r}var c=k+8|0,h=Me[c>>2],d=(Se[h>>2]-25|0)>>>0<3;a:do if(d)for(var w=h;;){var w,p=Me[w+4>>2];if((Se[p>>2]-25|0)>>>0>=3){var E=p;break a}var w=p}else var E=h;while(0);var E;Se[c>>2]=E;var t=k;break r}while(0);var A=Ae[Se[e>>2]];if(A<<24>>24==0||A<<24>>24==69){var t=f;break}var g=Or(f),y=Sr(r,g),m=D(r,3,f,y),t=m}while(0);var t;return t}function N(r){var a,e,i=Oe;Oe+=4;var v=i,e=v>>2,a=(r+12|0)>>2,t=Me[a],f=Ae[t],_=f<<24>>24;r:do if(f<<24>>24==114||f<<24>>24==86||f<<24>>24==75){var s=I(r,v,0);if(0==(0|s)){var n=0;break}var o=N(r);Se[s>>2]=o;var l=Se[e],b=R(r,l);if(0==(0|b)){var n=0;break}var n=Se[e]}else{do{if(97==(0|_)||98==(0|_)||99==(0|_)||100==(0|_)||101==(0|_)||102==(0|_)||103==(0|_)||104==(0|_)||105==(0|_)||106==(0|_)||108==(0|_)||109==(0|_)||110==(0|_)||111==(0|_)||115==(0|_)||116==(0|_)||118==(0|_)||119==(0|_)||120==(0|_)||121==(0|_)||122==(0|_)){var k=ai+20*(_-97)|0,u=P(r,k);Se[e]=u;var c=r+48|0,h=Se[c>>2]+Se[Se[u+4>>2]+4>>2]|0;Se[c>>2]=h;var d=Se[a]+1|0;Se[a]=d;var n=u;break r}if(117==(0|_)){Se[a]=t+1|0;var w=L(r),p=D(r,34,w,0);Se[e]=p;var E=p}else if(70==(0|_)){var A=F(r);Se[e]=A;var E=A}else if(48==(0|_)||49==(0|_)||50==(0|_)||51==(0|_)||52==(0|_)||53==(0|_)||54==(0|_)||55==(0|_)||56==(0|_)||57==(0|_)||78==(0|_)||90==(0|_)){var g=X(r);Se[e]=g;var E=g}else if(65==(0|_)){var y=j(r);Se[e]=y;var E=y}else if(77==(0|_)){var m=U(r);Se[e]=m;var E=m}else if(84==(0|_)){var S=x(r);if(Se[e]=S,Ae[Se[a]]<<24>>24!=73){var E=S;break}var M=R(r,S);if(0==(0|M)){var n=0;break r}var C=Se[e],T=z(r),O=D(r,4,C,T);Se[e]=O;var E=O}else if(83==(0|_)){var B=ge[t+1|0];if((B-48&255&255)<10|B<<24>>24==95|(B-65&255&255)<26){var H=V(r,0);if(Se[e]=H,Ae[Se[a]]<<24>>24!=73){var n=H;break r}var K=z(r),Y=D(r,4,H,K);Se[e]=Y;var E=Y}else{var G=X(r);if(Se[e]=G,0==(0|G)){var E=0;break}if(21==(0|Se[G>>2])){var n=G;break r}var E=G}}else if(80==(0|_)){Se[a]=t+1|0;var W=N(r),Z=D(r,29,W,0);Se[e]=Z;var E=Z}else if(82==(0|_)){Se[a]=t+1|0;var Q=N(r),q=D(r,30,Q,0);Se[e]=q;var E=q}else if(67==(0|_)){Se[a]=t+1|0;var $=N(r),J=D(r,31,$,0);Se[e]=J;var E=J}else if(71==(0|_)){Se[a]=t+1|0;var rr=N(r),ar=D(r,32,rr,0);Se[e]=ar;var E=ar}else{if(85!=(0|_)){var n=0;break r}Se[a]=t+1|0;var er=L(r);Se[e]=er;var ir=N(r),vr=Se[e],tr=D(r,28,ir,vr);Se[e]=tr;var E=tr}}while(0);var E,fr=R(r,E);if(0==(0|fr)){var n=0;break}var n=Se[e]}while(0);var n;return Oe=i,n}function I(r,a,e){for(var i,v=r+12|0,t=0!=(0|e),f=t?25:22,i=(r+48|0)>>2,_=t?26:23,s=t?27:24,n=a;;){var n,o=Se[v>>2],l=Ae[o];if(l<<24>>24!=114&&l<<24>>24!=86&&l<<24>>24!=75){var b=n;break}var k=o+1|0;if(Se[v>>2]=k,l<<24>>24==114){var u=Se[i]+9|0;Se[i]=u;var c=f}else if(l<<24>>24==86){var h=Se[i]+9|0;Se[i]=h;var c=_}else{var d=Se[i]+6|0;Se[i]=d;var c=s}var c,w=D(r,c,0,0);if(Se[n>>2]=w,0==(0|w)){var b=0;break}var n=w+4|0}var b;return b}function P(r,a){var e=0==(0|a);do if(e)var i=0;else{var v=J(r);if(0==(0|v)){var i=0;break}Se[v>>2]=33,Se[v+4>>2]=a;var i=v}while(0);var i;return i}function D(r,a,e,i){var v,t;do{if(1==(0|a)||2==(0|a)||3==(0|a)||4==(0|a)||10==(0|a)||28==(0|a)||37==(0|a)||43==(0|a)||44==(0|a)||45==(0|a)||46==(0|a)||47==(0|a)||48==(0|a)||49==(0|a)||50==(0|a)){if(0==(0|e)|0==(0|i)){var f=0;t=7;break}t=5;break}if(8==(0|a)||9==(0|a)||11==(0|a)||12==(0|a)||13==(0|a)||14==(0|a)||15==(0|a)||16==(0|a)||17==(0|a)||18==(0|a)||19==(0|a)||20==(0|a)||29==(0|a)||30==(0|a)||31==(0|a)||32==(0|a)||34==(0|a)||38==(0|a)||39==(0|a)||42==(0|a)){if(0==(0|e)){var f=0;t=7;break}t=5;break}if(36==(0|a)){if(0==(0|i)){var f=0;t=7;break}t=5;break}if(35==(0|a)||22==(0|a)||23==(0|a)||24==(0|a)||25==(0|a)||26==(0|a)||27==(0|a))t=5;else{var f=0;t=7}}while(0);do if(5==t){var _=J(r),v=_>>2;if(0==(0|_)){var f=0;break}Se[v]=a,Se[v+1]=e,Se[v+2]=i;var f=_}while(0);var f;return f}function L(r){var a=sr(r);if((0|a)<1)var e=0;else{var i=Rr(r,a);Se[r+44>>2]=i;var e=i}var e;return e}function F(r){var a,a=(r+12|0)>>2,e=Se[a],i=e+1|0;if(Se[a]=i,Ae[e]<<24>>24==70){if(Ae[i]<<24>>24==89){var v=e+2|0;Se[a]=v}var t=Sr(r,1),f=Se[a],_=f+1|0;Se[a]=_;var s=Ae[f]<<24>>24==69?t:0,n=s}else var n=0;var n;return n}function X(r){var a=Ar(r);return a}function j(r){var a,a=(r+12|0)>>2,e=Se[a],i=e+1|0;Se[a]=i;var v=Ae[e]<<24>>24==65;do if(v){var t=Ae[i];if(t<<24>>24==95)var f=0;else if((t-48&255&255)<10){for(var _=i;;){var _,s=_+1|0;if(Se[a]=s,(Ae[s]-48&255&255)>=10)break;var _=s}var n=s-i|0,o=lr(r,i,n);if(0==(0|o)){var l=0;break}var f=o}else{var b=nr(r);if(0==(0|b)){var l=0;break}var f=b}var f,k=Se[a],u=k+1|0;if(Se[a]=u,Ae[k]<<24>>24!=95){var l=0;break}var c=N(r),h=D(r,36,f,c),l=h}else var l=0;while(0);var l;return l}function U(r){var a=Oe;Oe+=4;var e=a,i=r+12|0,v=Se[i>>2],t=v+1|0;Se[i>>2]=t;var f=Ae[v]<<24>>24==77;r:do if(f){var _=N(r),s=I(r,e,1);if(0==(0|s)){var n=0;break}var o=N(r);Se[s>>2]=o;var l=(0|s)==(0|e);do if(!l){if(35==(0|Se[o>>2]))break;var b=Se[e>>2],k=R(r,b);if(0==(0|k)){var n=0;break r}}while(0);var u=Se[e>>2],c=D(r,37,_,u),n=c}else var n=0;while(0);var n;return Oe=a,n}function x(r){var a,a=(r+12|0)>>2,e=Se[a],i=e+1|0;Se[a]=i;var v=Ae[e]<<24>>24==84;do if(v){if(Ae[i]<<24>>24==95)var t=0,f=i;else{var _=sr(r);if((0|_)<0){var s=0;break}var t=_+1|0,f=Se[a]}var f,t;if(Se[a]=f+1|0,Ae[f]<<24>>24!=95){var s=0;break}var n=r+40|0,o=Se[n>>2]+1|0;Se[n>>2]=o;var l=Er(r,t),s=l}else var s=0;while(0);var s;return s}function z(r){var a,e=Oe;Oe+=4;var i=e,v=r+44|0,t=Se[v>>2],a=(r+12|0)>>2,f=Se[a],_=f+1|0;Se[a]=_;var s=Ae[f]<<24>>24==73;r:do if(s){Se[i>>2]=0;for(var n=i;;){var n,o=_r(r);if(0==(0|o)){var l=0;break r}var b=D(r,39,o,0);if(Se[n>>2]=b,0==(0|b)){var l=0;break r}var k=Se[a];if(Ae[k]<<24>>24==69)break;var n=b+8|0}var u=k+1|0;Se[a]=u,Se[v>>2]=t;var l=Se[i>>2]}else var l=0;while(0);var l;return Oe=e,l}function V(r,a){var e,e=(r+12|0)>>2,i=Se[e],v=i+1|0;Se[e]=v;var t=Ae[i]<<24>>24==83;r:do if(t){var f=i+2|0;Se[e]=f;var _=ge[v];if(_<<24>>24==95)var s=0;else{if(!((_-48&255&255)<10|(_-65&255&255)<26)){var n=8&Se[r+8>>2],o=n>>>3,l=0!=(0|n)|0==(0|a);do if(l)var b=o;else{if((Ae[f]-67&255&255)>=2){var b=o;break}var b=1}while(0);for(var b,k=0|ei;;){var k;if(k>>>0>=(ei+196|0)>>>0){var u=0;break r}if(_<<24>>24==Ae[0|k]<<24>>24)break;var k=k+28|0}var c=Se[k+20>>2];if(0!=(0|c)){var h=Se[k+24>>2],d=fr(r,c,h);Se[r+44>>2]=d}if(0==(0|b))var w=k+8|0,p=k+4|0;else var w=k+16|0,p=k+12|0;var p,w,E=Se[w>>2],A=Se[p>>2],g=r+48|0,y=Se[g>>2]+E|0;Se[g>>2]=y;var m=fr(r,A,E),u=m;break}for(var S=_,M=0,C=f;;){var C,M,S;if((S-48&255&255)<10)var R=36*M-48|0;else{if((S-65&255&255)>=26){var u=0;break r}var R=36*M-55|0}var R,T=(S<<24>>24)+R|0;if((0|T)<0){var u=0;break r}var O=C+1|0;Se[e]=O;var N=ge[C];if(N<<24>>24==95)break;var S=N,M=T,C=O}var s=T+1|0}var s;if((0|s)>=(0|Se[r+32>>2])){var u=0;break}var I=r+40|0,P=Se[I>>2]+1|0;Se[I>>2]=P;var u=Se[Se[r+28>>2]+(s<<2)>>2]}else var u=0;while(0);var u;return u}function B(r,a,e,i){var v,t,f,_,s=Oe;Oe+=28;var n,o=s,_=o>>2;Se[_]=r;var l=e+1|0,f=(o+12|0)>>2;Se[f]=l;var b=Jr(l),t=(o+4|0)>>2;if(Se[t]=b,0==(0|b))var k=0,u=1;else{var v=(o+8|0)>>2;Se[v]=0,Se[_+4]=0,Se[_+5]=0;var c=o+24|0;Se[c>>2]=0,H(o,a);var h=Me[t],d=0==(0|h);do{if(!d){var w=Me[v];if(w>>>0>=Me[f]>>>0){n=5;break}Se[v]=w+1|0,Ae[h+w|0]=0,n=6;break}n=5}while(0);5==n&&Y(o,0);var p=Se[t],E=0==(0|p)?Se[c>>2]:Se[f],k=p,u=E}var u,k;return Se[i>>2]=u,Oe=s,k}function H(r,a){var e,i,v,t,f,_,s,n,o,l,b,k,u,c,h,d,w,p,E,A,g,y,m,S,M,C,R,T,O,N,I,P,D,L,F,X,j,U,x,z,V,B,K,G,W,J,vr,tr,fr,_r,sr,nr,or,lr,br,kr,ur,cr,hr,dr,wr,pr=a>>2,Er=r>>2,Ar=Oe;Oe+=184;var gr,yr=Ar,wr=yr>>2,mr=Ar+64,dr=mr>>2,Sr=Ar+72,Mr=Ar+88,Cr=Ar+104,hr=Cr>>2,Rr=Ar+168,Tr=0==(0|a);r:do if(Tr)Z(r);else{var cr=(r+4|0)>>2,Or=Me[cr];if(0==(0|Or))break;var Nr=0|a,Ir=Me[Nr>>2];a:do{if(0==(0|Ir)){if(0!=(4&Se[Er]|0)){var Pr=Se[pr+1],Dr=Se[pr+2];q(r,Pr,Dr);break r}var ur=(r+8|0)>>2,Lr=Me[ur],Fr=a+8|0,Xr=Me[Fr>>2];if((Xr+Lr|0)>>>0>Me[Er+3]>>>0){var jr=Se[pr+1];Q(r,jr,Xr);break r}var Ur=Or+Lr|0,xr=Se[pr+1];Pa(Ur,xr,Xr,1);var zr=Se[ur]+Se[Fr>>2]|0;Se[ur]=zr;break r}if(1==(0|Ir)||2==(0|Ir)){var Vr=Se[pr+1];H(r,Vr);var Br=0==(4&Se[Er]|0),Hr=Me[cr],Kr=0!=(0|Hr);e:do if(Br){do if(Kr){var kr=(r+8|0)>>2,Yr=Me[kr];if((Yr+2|0)>>>0>Me[Er+3]>>>0)break;var Gr=Hr+Yr|0;oe=14906,Ae[Gr]=255&oe,oe>>=8,Ae[Gr+1]=255&oe;var Wr=Se[kr]+2|0;Se[kr]=Wr;break e}while(0);Q(r,0|He.__str120,2)}else{do if(Kr){var Zr=r+8|0,Qr=Me[Zr>>2];if(Qr>>>0>=Me[Er+3]>>>0)break;Se[Zr>>2]=Qr+1|0,Ae[Hr+Qr|0]=46;break e}while(0);Y(r,46)}while(0);var qr=Se[pr+2];H(r,qr);break r}if(3==(0|Ir)){for(var br=(r+20|0)>>2,$r=Me[br],lr=(r+16|0)>>2,Jr=a,ra=0,aa=$r;;){var aa,ra,Jr,ea=Me[Jr+4>>2];if(0==(0|ea)){var ia=ra,va=0;gr=33;break}if(ra>>>0>3){Z(r);break r}var ta=(ra<<4)+yr|0;Se[ta>>2]=aa,Se[br]=ta,Se[((ra<<4)+4>>2)+wr]=ea,Se[((ra<<4)+8>>2)+wr]=0;var fa=Me[lr];Se[((ra<<4)+12>>2)+wr]=fa;var _a=ra+1|0,sa=0|ea,na=Me[sa>>2];if((na-25|0)>>>0>=3){gr=25;break}var Jr=ea,ra=_a,aa=ta}e:do if(25==gr){if(4==(0|na)){Se[dr]=fa,Se[lr]=mr,Se[dr+1]=ea;var oa=Se[sa>>2],la=mr}else var oa=na,la=fa;var la,oa;if(2!=(0|oa)){var ia=_a,va=sa;break}for(var ba=_a,ka=ea+8|0;;){var ka,ba,ua=Me[ka>>2];if((Se[ua>>2]-25|0)>>>0>=3){var ia=ba,va=sa;break e}if(ba>>>0>3)break;var ca=(ba<<4)+yr|0,ha=ba-1|0,da=(ha<<4)+yr|0,or=ca>>2,nr=da>>2;Se[or]=Se[nr],Se[or+1]=Se[nr+1],Se[or+2]=Se[nr+2],Se[or+3]=Se[nr+3],Se[ca>>2]=da,Se[br]=ca,Se[((ha<<4)+4>>2)+wr]=ua,Se[((ha<<4)+8>>2)+wr]=0,Se[((ha<<4)+12>>2)+wr]=la;var ba=ba+1|0,ka=ua+4|0}Z(r);break r}while(0);var va,ia,wa=Se[pr+2];if(H(r,wa),4==(0|Se[va>>2])){var pa=Se[dr];Se[lr]=pa}var Ea=0==(0|ia);e:do if(!Ea)for(var Aa=r+8|0,ga=r+12|0,ya=ia;;){var ya,ma=ya-1|0;if(0==(0|Se[((ma<<4)+8>>2)+wr])){var Sa=Me[cr],Ma=0==(0|Sa);do{if(!Ma){var Ca=Me[Aa>>2];if(Ca>>>0>=Me[ga>>2]>>>0){gr=41;break}Se[Aa>>2]=Ca+1|0,Ae[Sa+Ca|0]=32,gr=42;break}gr=41}while(0);41==gr&&Y(r,32);var Ra=Se[((ma<<4)+4>>2)+wr];$(r,Ra)}if(0==(0|ma))break e;var ya=ma}while(0);Se[br]=$r;break r}if(4==(0|Ir)){var sr=(r+20|0)>>2,Ta=Se[sr];Se[sr]=0;var Oa=Se[pr+1];H(r,Oa);var Na=Me[cr],Ia=0==(0|Na);do{if(!Ia){var _r=(r+8|0)>>2,Da=Me[_r],La=0==(0|Da);do if(!La){if(Ae[Na+(Da-1)|0]<<24>>24!=60)break;Da>>>0>>0?(Se[_r]=Da+1|0,Ae[Na+Da|0]=32):Y(r,32)}while(0);var Fa=Me[cr];if(0==(0|Fa)){gr=54;break}var Xa=Me[_r];if(Xa>>>0>=Me[Er+3]>>>0){gr=54;break}Se[_r]=Xa+1|0,Ae[Fa+Xa|0]=60,gr=55;break}gr=54}while(0);54==gr&&Y(r,60);var ja=Se[pr+2];H(r,ja);var Ua=Me[cr],xa=0==(0|Ua);do{if(!xa){var fr=(r+8|0)>>2,za=Me[fr],Va=0==(0|za);do if(!Va){if(Ae[Ua+(za-1)|0]<<24>>24!=62)break;za>>>0>>0?(Se[fr]=za+1|0,Ae[Ua+za|0]=32):Y(r,32)}while(0);var Ba=Me[cr];if(0==(0|Ba)){gr=64;break}var Ha=Me[fr];if(Ha>>>0>=Me[Er+3]>>>0){gr=64;break}Se[fr]=Ha+1|0,Ae[Ba+Ha|0]=62,gr=65;break}gr=64}while(0);64==gr&&Y(r,62),Se[sr]=Ta;break r}if(5==(0|Ir)){var tr=(r+16|0)>>2,Ka=Me[tr];if(0==(0|Ka)){Z(r);break r}for(var Ya=Se[pr+1],Ga=Se[Ka+4>>2];;){var Ga,Ya,Wa=Se[Ga+8>>2];if(0==(0|Wa))break;if(39!=(0|Se[Wa>>2])){Z(r);break r}if((0|Ya)<1){if(0!=(0|Ya))break;var Za=Se[Ka>>2];Se[tr]=Za;var Qa=Se[Wa+4>>2];H(r,Qa),Se[tr]=Ka;break r}var Ya=Ya-1|0,Ga=Wa}Z(r);break r}if(6==(0|Ir)){var qa=Se[pr+2];H(r,qa);break r}if(7==(0|Ir)){var $a=r+8|0,Ja=Me[$a>>2];Ja>>>0>>0?(Se[$a>>2]=Ja+1|0,Ae[Or+Ja|0]=126):Y(r,126);var re=Se[pr+2];H(r,re);break r}if(8==(0|Ir)){var vr=(r+8|0)>>2,ae=Me[vr];if((ae+11|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str121,11);else{for(var ee=Or+ae|0,ie=0|He.__str121,ve=ee,te=ie+11;ie>2,se=Me[J];if((se+8|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str122,8);else{var ne=Or+se|0,le=0|ne;oe=542397526,Ae[le]=255&oe,oe>>=8,Ae[le+1]=255&oe,oe>>=8,Ae[le+2]=255&oe,oe>>=8,Ae[le+3]=255&oe;var be=ne+4|0;oe=544370534,Ae[be]=255&oe,oe>>=8,Ae[be+1]=255&oe,oe>>=8,Ae[be+2]=255&oe,oe>>=8,Ae[be+3]=255&oe;var ke=Se[J]+8|0;Se[J]=ke}var ue=Se[pr+1];H(r,ue);break r}if(10==(0|Ir)){var W=(r+8|0)>>2,ce=Me[W],he=r+12|0;if((ce+24|0)>>>0>Me[he>>2]>>>0)Q(r,0|He.__str123,24);else{var de=Or+ce|0;Pa(de,0|He.__str123,24,1);var we=Se[W]+24|0;Se[W]=we}var pe=Se[pr+1];H(r,pe);var Ee=Me[cr],ge=0==(0|Ee);do{if(!ge){var ye=Me[W];if((ye+4|0)>>>0>Me[he>>2]>>>0){gr=96;break}var me=Ee+ye|0;oe=762210605,Ae[me]=255&oe,oe>>=8,Ae[me+1]=255&oe,oe>>=8,Ae[me+2]=255&oe,oe>>=8,Ae[me+3]=255&oe;var Ce=Se[W]+4|0;Se[W]=Ce,gr=97;break}gr=96}while(0);96==gr&&Q(r,0|He.__str124,4);var Re=Se[pr+2];H(r,Re);break r}if(11==(0|Ir)){var G=(r+8|0)>>2,Te=Me[G];if((Te+13|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str125,13);else{for(var Ne=Or+Te|0,ie=0|He.__str125,ve=Ne,te=ie+13;ie>2,De=Me[K];if((De+18|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str126,18);else{for(var Le=Or+De|0,ie=0|He.__str126,ve=Le,te=ie+18;ie>2,je=Me[B];if((je+16|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str127,16);else{for(var Ue=Or+je|0,ie=0|He.__str127,ve=Ue,te=ie+16;ie>2,Ve=Me[V];if((Ve+21|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str128,21);else{var Be=Or+Ve|0;Pa(Be,0|He.__str128,21,1);var Ke=Se[V]+21|0;Se[V]=Ke}var Ye=Se[pr+1];H(r,Ye);break r}if(15==(0|Ir)){var z=(r+8|0)>>2,Ge=Me[z];if((Ge+17|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str129,17);else{for(var We=Or+Ge|0,ie=0|He.__str129,ve=We,te=ie+17;ie>2,qe=Me[x];if((qe+26|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str130,26);else{var $e=Or+qe|0;Pa($e,0|He.__str130,26,1);var Je=Se[x]+26|0;Se[x]=Je}var ri=Se[pr+1];H(r,ri);break r}if(17==(0|Ir)){var U=(r+8|0)>>2,ai=Me[U];if((ai+15|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str131,15);else{for(var ei=Or+ai|0,ie=0|He.__str131,ve=ei,te=ie+15;ie>2,ti=Me[j];if((ti+19|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str132,19);else{for(var fi=Or+ti|0,ie=0|He.__str132,ve=fi,te=ie+19;ie>2,ni=Me[X];if((ni+24|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str133,24);else{var oi=Or+ni|0;Pa(oi,0|He.__str133,24,1);var li=Se[X]+24|0;Se[X]=li}var bi=Se[pr+1];H(r,bi);break r}if(20==(0|Ir)){var F=(r+8|0)>>2,ki=Me[F];if((ki+17|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str134,17);else{for(var ui=Or+ki|0,ie=0|He.__str134,ve=ui,te=ie+17;ie>2,di=Me[L],wi=a+8|0,pi=Me[wi>>2];if((pi+di|0)>>>0>Me[Er+3]>>>0){var Ei=Se[pr+1];Q(r,Ei,pi);break r}var Ai=Or+di|0,gi=Se[pr+1];Pa(Ai,gi,pi,1);var yi=Se[L]+Se[wi>>2]|0;Se[L]=yi;break r}if(22==(0|Ir)||23==(0|Ir)||24==(0|Ir)){for(var mi=r+20|0;;){var mi,Si=Me[mi>>2];if(0==(0|Si))break a;if(0==(0|Se[Si+8>>2])){var Mi=Me[Se[Si+4>>2]>>2];if((Mi-22|0)>>>0>=3)break a;if((0|Mi)==(0|Ir))break}var mi=0|Si}var Ci=Se[pr+1];H(r,Ci);break r}if(25!=(0|Ir)&&26!=(0|Ir)&&27!=(0|Ir)&&28!=(0|Ir)&&29!=(0|Ir)&&30!=(0|Ir)&&31!=(0|Ir)&&32!=(0|Ir)){if(33==(0|Ir)){var D=(r+8|0)>>2,Ri=Me[D],P=(a+4|0)>>2,I=Me[P]>>2;if(0==(4&Se[Er]|0)){var Ti=Me[I+1];if((Ti+Ri|0)>>>0>Me[Er+3]>>>0){var Oi=Se[I];Q(r,Oi,Ti);break r}var Ni=Or+Ri|0,Ii=Se[I];Pa(Ni,Ii,Ti,1);var Pi=Se[D]+Se[Se[P]+4>>2]|0;Se[D]=Pi;break r}var Di=Me[I+3];if((Di+Ri|0)>>>0>Me[Er+3]>>>0){var Li=Se[I+2];Q(r,Li,Di);break r}var Fi=Or+Ri|0,Xi=Se[I+2];Pa(Fi,Xi,Di,1);var ji=Se[D]+Se[Se[P]+12>>2]|0;Se[D]=ji;break r}if(34==(0|Ir)){var Ui=Se[pr+1];H(r,Ui);break r}if(35==(0|Ir)){var N=(0|r)>>2;if(0!=(32&Se[N]|0)){var xi=Se[Er+5];rr(r,a,xi)}var zi=a+4|0,Vi=0==(0|Se[zi>>2]);e:do if(!Vi){var O=(r+20|0)>>2,Bi=Se[O],Hi=0|Mr;Se[Hi>>2]=Bi,Se[O]=Mr,Se[Mr+4>>2]=a;var Ki=Mr+8|0;Se[Ki>>2]=0;var Yi=Se[Er+4];Se[Mr+12>>2]=Yi;var Gi=Se[zi>>2];H(r,Gi);var Wi=Se[Hi>>2];if(Se[O]=Wi,0!=(0|Se[Ki>>2]))break r;if(0!=(32&Se[N]|0))break;var Zi=Me[cr],Qi=0==(0|Zi);do if(!Qi){var qi=r+8|0,$i=Me[qi>>2];if($i>>>0>=Me[Er+3]>>>0)break;Se[qi>>2]=$i+1|0,Ae[Zi+$i|0]=32;break e}while(0);Y(r,32)}while(0);if(0!=(32&Se[N]|0))break r;var Ji=Se[Er+5];rr(r,a,Ji);break r}if(36==(0|Ir)){var T=(r+20|0)>>2,rv=Me[T],av=0|Cr;Se[hr]=rv,Se[T]=av,Se[hr+1]=a;var ev=Cr+8|0;Se[ev>>2]=0;var iv=Se[Er+4];Se[hr+3]=iv;for(var vv=rv,tv=1;;){var tv,vv;if(0==(0|vv))break;if((Se[Se[vv+4>>2]>>2]-22|0)>>>0>=3)break;var fv=vv+8|0;if(0==(0|Se[fv>>2])){if(tv>>>0>3){Z(r);break r}var _v=(tv<<4)+Cr|0,R=_v>>2,C=vv>>2;Se[R]=Se[C],Se[R+1]=Se[C+1],Se[R+2]=Se[C+2],Se[R+3]=Se[C+3];var sv=Se[T];Se[_v>>2]=sv,Se[T]=_v,Se[fv>>2]=1;var nv=tv+1|0}else var nv=tv;var nv,vv=Se[vv>>2],tv=nv}var ov=Se[pr+2];if(H(r,ov),Se[T]=rv,0!=(0|Se[ev>>2]))break r;if(tv>>>0>1){for(var lv=tv;;){var lv,bv=lv-1|0,kv=Se[((bv<<4)+4>>2)+hr];if($(r,kv),bv>>>0<=1)break;var lv=bv}var uv=Se[T]}else var uv=rv;var uv;ar(r,a,uv);break r}if(37==(0|Ir)){var M=(r+20|0)>>2,cv=Se[M],hv=0|Rr;Se[hv>>2]=cv,Se[M]=Rr,Se[Rr+4>>2]=a;var dv=Rr+8|0;Se[dv>>2]=0;var wv=Se[Er+4];Se[Rr+12>>2]=wv;var pv=a+4|0,Ev=Se[pr+2];H(r,Ev);var Av=0==(0|Se[dv>>2]);e:do if(Av){var gv=Me[cr],yv=0==(0|gv);do{if(!yv){var mv=r+8|0,Sv=Me[mv>>2];if(Sv>>>0>=Me[Er+3]>>>0){gr=187;break}Se[mv>>2]=Sv+1|0,Ae[gv+Sv|0]=32,gr=188;break}gr=187}while(0);187==gr&&Y(r,32);var Mv=Se[pv>>2];H(r,Mv);var Cv=Me[cr],Rv=0==(0|Cv);do if(!Rv){var S=(r+8|0)>>2,Tv=Me[S];if((Tv+3|0)>>>0>Me[Er+3]>>>0)break;var Ov=Cv+Tv|0;Ae[Ov]=Ae[0|He.__str135],Ae[Ov+1]=Ae[(0|He.__str135)+1],Ae[Ov+2]=Ae[(0|He.__str135)+2];var Nv=Se[S]+3|0;Se[S]=Nv;break e}while(0);Q(r,0|He.__str135,3)}while(0);var Iv=Se[hv>>2];Se[M]=Iv;break r}if(38==(0|Ir)||39==(0|Ir)){var Pv=Se[pr+1];H(r,Pv);var Dv=a+8|0;if(0==(0|Se[Dv>>2]))break r;var Lv=Me[cr],Fv=0==(0|Lv);do{if(!Fv){var m=(r+8|0)>>2,Xv=Me[m];if((Xv+2|0)>>>0>Me[Er+3]>>>0){gr=197;break}var jv=Lv+Xv|0;oe=8236,Ae[jv]=255&oe,oe>>=8,Ae[jv+1]=255&oe;var Uv=Se[m]+2|0;Se[m]=Uv,gr=198;break}gr=197}while(0);197==gr&&Q(r,0|He.__str136,2);var xv=Se[Dv>>2];H(r,xv);break r}if(40==(0|Ir)){var y=(r+8|0)>>2,zv=Me[y],g=(r+12|0)>>2;if((zv+8|0)>>>0>Me[g]>>>0)Q(r,0|He.__str137,8);else{var Vv=Or+zv|0,le=0|Vv;oe=1919250543,Ae[le]=255&oe,oe>>=8,Ae[le+1]=255&oe,oe>>=8,Ae[le+2]=255&oe,oe>>=8,Ae[le+3]=255&oe;var be=Vv+4|0;oe=1919906913,Ae[be]=255&oe,oe>>=8,Ae[be+1]=255&oe,oe>>=8,Ae[be+2]=255&oe,oe>>=8,Ae[be+3]=255&oe;var Bv=Se[y]+8|0;Se[y]=Bv}var A=(a+4|0)>>2,Hv=(Ae[Se[Se[A]+4>>2]]-97&255&255)<26;e:do if(Hv){var Kv=Me[cr],Yv=0==(0|Kv);do if(!Yv){var Gv=Me[y];if(Gv>>>0>=Me[g]>>>0)break;Se[y]=Gv+1|0,Ae[Kv+Gv|0]=32;break e}while(0);Y(r,32)}while(0);var Wv=Me[cr],Zv=0==(0|Wv);do{if(!Zv){var Qv=Me[y],qv=Me[A],$v=Me[qv+8>>2];if(($v+Qv|0)>>>0>Me[g]>>>0){var Jv=qv,rt=$v;break}var at=Wv+Qv|0,et=Se[qv+4>>2];Pa(at,et,$v,1);var it=Se[y]+Se[Se[A]+8>>2]|0;Se[y]=it;break r}var vt=Me[A],Jv=vt,rt=Se[vt+8>>2]}while(0);var rt,Jv,tt=Se[Jv+4>>2];Q(r,tt,rt);break r}if(41==(0|Ir)){var E=(r+8|0)>>2,ft=Me[E];if((ft+9|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str10180,9);else{for(var _t=Or+ft|0,ie=0|He.__str10180,ve=_t,te=ie+9;ie>2,ot=Me[p];if((ot+9|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str10180,9);else{for(var lt=Or+ot|0,ie=0|He.__str10180,ve=lt,te=ie+9;ie>2],ct=42==(0|Se[ut>>2]);e:do if(ct){var w=(r+8|0)>>2,ht=Me[w],dt=r+12|0;ht>>>0>2]>>>0?(Se[w]=ht+1|0,Ae[Or+ht|0]=40):Y(r,40);var wt=Se[kt>>2];er(r,wt);var pt=Me[cr],Et=0==(0|pt);do if(!Et){var At=Me[w];if(At>>>0>=Me[dt>>2]>>>0)break;Se[w]=At+1|0,Ae[pt+At|0]=41;break e}while(0);Y(r,41)}else ir(r,ut);while(0);var gt=Me[cr],yt=0==(0|gt);do{if(!yt){var mt=r+8|0,St=Me[mt>>2];if(St>>>0>=Me[Er+3]>>>0){gr=232;break}Se[mt>>2]=St+1|0,Ae[gt+St|0]=40,gr=233;break}gr=232}while(0);232==gr&&Y(r,40);var Mt=Se[pr+2];H(r,Mt);var Ct=Me[cr],Rt=0==(0|Ct);do if(!Rt){var Tt=r+8|0,Ot=Me[Tt>>2];if(Ot>>>0>=Me[Er+3]>>>0)break;Se[Tt>>2]=Ot+1|0,Ae[Ct+Ot|0]=41;break r}while(0);Y(r,41);break r}if(44==(0|Ir)){var d=(a+8|0)>>2;if(45==(0|Se[Se[d]>>2])){var h=(a+4|0)>>2,Nt=Se[h],It=40==(0|Se[Nt>>2]);do if(It){var Pt=Se[Nt+4>>2];if(1!=(0|Se[Pt+8>>2]))break;if(Ae[Se[Pt+4>>2]]<<24>>24!=62)break;var Dt=r+8|0,Lt=Me[Dt>>2];Lt>>>0>>0?(Se[Dt>>2]=Lt+1|0,Ae[Or+Lt|0]=40):Y(r,40)}while(0);var Ft=Me[cr],Xt=0==(0|Ft);do{if(!Xt){var jt=r+8|0,Ut=Me[jt>>2];if(Ut>>>0>=Me[Er+3]>>>0){gr=248;break}Se[jt>>2]=Ut+1|0,Ae[Ft+Ut|0]=40,gr=249;break}gr=248}while(0);248==gr&&Y(r,40);var xt=Se[Se[d]+4>>2];H(r,xt);var zt=Me[cr],Vt=0==(0|zt);do{if(!Vt){var c=(r+8|0)>>2,Bt=Me[c];if((Bt+2|0)>>>0>Me[Er+3]>>>0){gr=252;break}var Ht=zt+Bt|0;oe=8233,Ae[Ht]=255&oe,oe>>=8,Ae[Ht+1]=255&oe;var Kt=Se[c]+2|0;Se[c]=Kt,gr=253;break}gr=252}while(0);252==gr&&Q(r,0|He.__str139,2);var Yt=Se[h];ir(r,Yt);var Gt=Me[cr],Wt=0==(0|Gt);do{if(!Wt){var u=(r+8|0)>>2,Zt=Me[u];if((Zt+2|0)>>>0>Me[Er+3]>>>0){gr=256;break}var Qt=Gt+Zt|0;oe=10272,Ae[Qt]=255&oe,oe>>=8,Ae[Qt+1]=255&oe;var qt=Se[u]+2|0;Se[u]=qt,gr=257;break}gr=256}while(0);256==gr&&Q(r,0|He.__str140,2);var $t=Se[Se[d]+8>>2];H(r,$t);var Jt=Me[cr],rf=0==(0|Jt);do{if(!rf){var af=r+8|0,ef=Me[af>>2];if(ef>>>0>=Me[Er+3]>>>0){gr=260;break}Se[af>>2]=ef+1|0,Ae[Jt+ef|0]=41,gr=261;break}gr=260}while(0);260==gr&&Y(r,41);var vf=Se[h];if(40!=(0|Se[vf>>2]))break r;var tf=Se[vf+4>>2];if(1!=(0|Se[tf+8>>2]))break r;if(Ae[Se[tf+4>>2]]<<24>>24!=62)break r;var ff=Me[cr],_f=0==(0|ff);do if(!_f){var sf=r+8|0,nf=Me[sf>>2];if(nf>>>0>=Me[Er+3]>>>0)break;Se[sf>>2]=nf+1|0,Ae[ff+nf|0]=41;break r}while(0);Y(r,41);break r}Z(r);break r}if(45==(0|Ir)){Z(r);break r}if(46==(0|Ir)){var of=a+4|0,k=(a+8|0)>>2,lf=Se[k],bf=47==(0|Se[lf>>2]);do if(bf){if(48!=(0|Se[Se[lf+8>>2]>>2]))break;var b=(r+8|0)>>2,kf=Me[b],l=(r+12|0)>>2;kf>>>0>>0?(Se[b]=kf+1|0,Ae[Or+kf|0]=40):Y(r,40);var uf=Se[Se[k]+4>>2];H(r,uf);var cf=Me[cr],hf=0==(0|cf);do{if(!hf){var df=Me[b];if((df+2|0)>>>0>Me[l]>>>0){gr=278;break}var wf=cf+df|0;oe=8233,Ae[wf]=255&oe,oe>>=8,Ae[wf+1]=255&oe;var pf=Se[b]+2|0;Se[b]=pf,gr=279;break}gr=278}while(0);278==gr&&Q(r,0|He.__str139,2);var Ef=Se[of>>2];ir(r,Ef);var Af=Me[cr],gf=0==(0|Af);do{if(!gf){var yf=Me[b];if((yf+2|0)>>>0>Me[l]>>>0){gr=282;break}var mf=Af+yf|0;oe=10272,Ae[mf]=255&oe,oe>>=8,Ae[mf+1]=255&oe;var Sf=Se[b]+2|0;Se[b]=Sf,gr=283;break}gr=282}while(0);282==gr&&Q(r,0|He.__str140,2);var Mf=Se[Se[Se[k]+8>>2]+4>>2];H(r,Mf);var Cf=Me[cr],Rf=0==(0|Cf);do{if(!Rf){var Tf=Me[b];if((Tf+5|0)>>>0>Me[l]>>>0){gr=286;break}var Of=Cf+Tf|0;Ae[Of]=Ae[0|He.__str141],Ae[Of+1]=Ae[(0|He.__str141)+1],Ae[Of+2]=Ae[(0|He.__str141)+2],Ae[Of+3]=Ae[(0|He.__str141)+3],Ae[Of+4]=Ae[(0|He.__str141)+4];var Nf=Se[b]+5|0;Se[b]=Nf,gr=287;break}gr=286}while(0);286==gr&&Q(r,0|He.__str141,5);var If=Se[Se[Se[k]+8>>2]+8>>2];H(r,If);var Pf=Me[cr],Df=0==(0|Pf);do if(!Df){var Lf=Me[b];if(Lf>>>0>=Me[l]>>>0)break;Se[b]=Lf+1|0,Ae[Pf+Lf|0]=41;break r}while(0);Y(r,41);break r}while(0);Z(r);break r}if(47==(0|Ir)||48==(0|Ir)){Z(r);break r}if(49==(0|Ir)||50==(0|Ir)){var Ff=a+4|0,Xf=Se[Ff>>2],jf=33==(0|Se[Xf>>2]);do{if(jf){var Uf=Me[Se[Xf+4>>2]+16>>2];if(1==(0|Uf)||2==(0|Uf)||3==(0|Uf)||4==(0|Uf)||5==(0|Uf)||6==(0|Uf)){var xf=a+8|0;if(0!=(0|Se[Se[xf>>2]>>2])){var zf=Uf;break}if(50==(0|Ir)){var Vf=r+8|0,Bf=Me[Vf>>2];Bf>>>0>>0?(Se[Vf>>2]=Bf+1|0,Ae[Or+Bf|0]=45):Y(r,45)}var Hf=Se[xf>>2];if(H(r,Hf),2==(0|Uf)){var Kf=Me[cr],Yf=0==(0|Kf);do if(!Yf){var Gf=r+8|0,Wf=Me[Gf>>2];if(Wf>>>0>=Me[Er+3]>>>0)break;Se[Gf>>2]=Wf+1|0,Ae[Kf+Wf|0]=117;break r}while(0);Y(r,117);break r}if(3==(0|Uf)){var Zf=Me[cr],Qf=0==(0|Zf);do if(!Qf){var qf=r+8|0,$f=Me[qf>>2];if($f>>>0>=Me[Er+3]>>>0)break;Se[qf>>2]=$f+1|0,Ae[Zf+$f|0]=108;break r}while(0);Y(r,108);break r}if(4==(0|Uf)){var Jf=Me[cr],r_=0==(0|Jf);do if(!r_){var o=(r+8|0)>>2,a_=Me[o];if((a_+2|0)>>>0>Me[Er+3]>>>0)break;var e_=Jf+a_|0;oe=27765,Ae[e_]=255&oe,oe>>=8,Ae[e_+1]=255&oe;var i_=Se[o]+2|0;Se[o]=i_;break r}while(0);Q(r,0|He.__str142,2);break r}if(5==(0|Uf)){var v_=Me[cr],t_=0==(0|v_);do if(!t_){var n=(r+8|0)>>2,f_=Me[n];if((f_+2|0)>>>0>Me[Er+3]>>>0)break;var __=v_+f_|0;oe=27756,Ae[__]=255&oe,oe>>=8,Ae[__+1]=255&oe;var s_=Se[n]+2|0;Se[n]=s_;break r}while(0);Q(r,0|He.__str143,2);break r}if(6==(0|Uf)){var n_=Me[cr],o_=0==(0|n_);do if(!o_){var s=(r+8|0)>>2,l_=Me[s];if((l_+3|0)>>>0>Me[Er+3]>>>0)break;var b_=n_+l_|0;Ae[b_]=Ae[0|He.__str144],Ae[b_+1]=Ae[(0|He.__str144)+1],Ae[b_+2]=Ae[(0|He.__str144)+2];var k_=Se[s]+3|0;Se[s]=k_;break r}while(0);Q(r,0|He.__str144,3);break r}break r}if(7==(0|Uf)){var _=Se[pr+2]>>2;if(0!=(0|Se[_])){var zf=7;break}if(!(1==(0|Se[_+2])&49==(0|Ir))){var zf=Uf;break}var u_=Ae[Se[_+1]]<<24>>24;if(48==(0|u_)){var f=(r+8|0)>>2,c_=Me[f];if((c_+5|0)>>>0>Me[Er+3]>>>0){Q(r,0|He.__str145,5);break r}var h_=Or+c_|0;Ae[h_]=Ae[0|He.__str145],Ae[h_+1]=Ae[(0|He.__str145)+1],Ae[h_+2]=Ae[(0|He.__str145)+2],Ae[h_+3]=Ae[(0|He.__str145)+3],Ae[h_+4]=Ae[(0|He.__str145)+4];var d_=Se[f]+5|0;Se[f]=d_;break r}if(49==(0|u_)){var t=(r+8|0)>>2,w_=Me[t];if((w_+4|0)>>>0>Me[Er+3]>>>0){Q(r,0|He.__str146,4);break r}var p_=Or+w_|0;oe=1702195828,Ae[p_]=255&oe,oe>>=8,Ae[p_+1]=255&oe,oe>>=8,Ae[p_+2]=255&oe,oe>>=8,Ae[p_+3]=255&oe;var E_=Se[t]+4|0;Se[t]=E_;break r}var zf=Uf;break}var zf=Uf;break}var zf=0}while(0);var zf,v=(r+8|0)>>2,A_=Me[v],i=(r+12|0)>>2;A_>>>0>>0?(Se[v]=A_+1|0,Ae[Or+A_|0]=40):Y(r,40);var g_=Se[Ff>>2];H(r,g_);var y_=Me[cr],m_=0==(0|y_);do{if(!m_){var S_=Me[v];if(S_>>>0>=Me[i]>>>0){gr=335;break}Se[v]=S_+1|0,Ae[y_+S_|0]=41,gr=336;break}gr=335}while(0);335==gr&&Y(r,41);var M_=50==(0|Se[Nr>>2]);e:do if(M_){var C_=Me[cr],R_=0==(0|C_);do if(!R_){var T_=Me[v];if(T_>>>0>=Me[i]>>>0)break;Se[v]=T_+1|0,Ae[C_+T_|0]=45;break e}while(0);Y(r,45)}while(0);if(8==(0|zf)){var O_=Me[cr],N_=0==(0|O_);do{if(!N_){var I_=Me[v];if(I_>>>0>=Me[i]>>>0){gr=345;break}Se[v]=I_+1|0,Ae[O_+I_|0]=91,gr=346;break}gr=345}while(0);345==gr&&Y(r,91);var P_=Se[pr+2];H(r,P_);var D_=Me[cr],L_=0==(0|D_);do if(!L_){var F_=Me[v];if(F_>>>0>=Me[i]>>>0)break;Se[v]=F_+1|0,Ae[D_+F_|0]=93;break r}while(0);Y(r,93);break r}var X_=Se[pr+2];H(r,X_);break r}Z(r);break r}}while(0);var e=(r+20|0)>>2,j_=Se[e],U_=0|Sr;Se[U_>>2]=j_,Se[e]=Sr,Se[Sr+4>>2]=a;var x_=Sr+8|0;Se[x_>>2]=0;var z_=Se[Er+4];Se[Sr+12>>2]=z_;var V_=Se[pr+1];H(r,V_),0==(0|Se[x_>>2])&&$(r,a);var B_=Se[U_>>2];Se[e]=B_}while(0);Oe=Ar}function K(r,a,e,i){var v=i>>2;Se[v]=r,Se[v+1]=r+e|0,Se[v+2]=a,Se[v+3]=r,Se[v+6]=e<<1,Se[v+5]=0,Se[v+9]=e,Se[v+8]=0,Se[v+10]=0,Se[v+11]=0,Se[v+12]=0}function Y(r,a){var e,i=r+4|0,v=Me[i>>2],t=0==(0|v);do if(!t){var e=(r+8|0)>>2,f=Me[e];if(f>>>0>2]>>>0)var _=v,s=f;else{tr(r,1);var n=Me[i>>2];if(0==(0|n))break;var _=n,s=Se[e]}var s,_;Ae[_+s|0]=255&a;var o=Se[e]+1|0;Se[e]=o}while(0)}function G(r,a,e,i){var v,t=i>>2,f=Oe;Oe+=4;var _=f,v=_>>2,s=0==(0|r);do if(s){if(0==(0|i)){var n=0;break}Se[t]=-3;var n=0}else{var o=0==(0|e);if(0!=(0|a)&o){if(0==(0|i)){var n=0;break}Se[t]=-3;var n=0}else{var l=W(r,_);if(0==(0|l)){if(0==(0|i)){var n=0;break}if(1==(0|Se[v])){Se[t]=-1;var n=0}else{Se[t]=-2;var n=0}}else{var b=0==(0|a);do if(b){if(o){var k=l;break}var u=Se[v];Se[e>>2]=u;var k=l}else{var c=Ca(l);if(c>>>0>2]>>>0){Ra(a,l);va(l);var k=a}else{va(a);var h=Se[v];Se[e>>2]=h;var k=l}}while(0);var k;if(0==(0|i)){var n=k;break}Se[t]=0;var n=k}}}while(0);var n;return Oe=f,n}function W(r,a){var e,i=Oe;Oe+=52;var v,t=i,e=t>>2;Se[a>>2]=0;var f=Ca(r),_=Ae[r]<<24>>24==95;do{if(_){if(Ae[r+1|0]<<24>>24==90){var s=0;v=13;break}v=3;break}v=3}while(0);do if(3==v){var n=Na(r,0|He.__str117,8);if(0!=(0|n)){var s=1;v=13;break}var o=Ae[r+8|0];if(o<<24>>24!=46&&o<<24>>24!=95&&o<<24>>24!=36){var s=1;v=13;break}var l=r+9|0,b=Ae[l];if(b<<24>>24!=68&&b<<24>>24!=73){\nvar s=1;v=13;break}if(Ae[r+10|0]<<24>>24!=95){var s=1;v=13;break}var k=f+29|0,u=Jr(k);if(0==(0|u)){Se[a>>2]=1;var c=0;v=19;break}Ae[l]<<24>>24==73?Pa(u,0|He.__str118,30,1):Pa(u,0|He.__str119,29,1);var h=r+11|0,c=(Ia(u,h),u);v=19;break}while(0);if(13==v){var s;K(r,17,f,t);var d=Se[e+6],w=Ta(),p=Oe;Oe+=12*d,Oe=Oe+3>>2<<2;var E=Oe;if(Oe+=4*Se[e+9],Oe=Oe+3>>2<<2,Se[e+4]=p,Se[e+7]=E,s)var A=N(t),g=A;else var y=T(t,1),g=y;var g,m=Ae[Se[e+3]]<<24>>24==0?g:0,S=Se[e+12]+f+10*Se[e+10]|0;if(0==(0|m))var M=0;else var C=S/8+S|0,R=B(17,m,C,a),M=R;var M;Oa(w);var c=M}var c;return Oe=i,c}function Z(r){var a=r+4|0,e=Se[a>>2];va(e),Se[a>>2]=0}function Q(r,a,e){var i,v=r+4|0,t=Me[v>>2],f=0==(0|t);do if(!f){var i=(r+8|0)>>2,_=Me[i];if((_+e|0)>>>0>Me[r+12>>2]>>>0){tr(r,e);var s=Me[v>>2];if(0==(0|s))break;var n=s,o=Se[i]}else var n=t,o=_;var o,n;Pa(n+o|0,a,e,1);var l=Se[i]+e|0;Se[i]=l}while(0)}function q(r,a,e){var i,v,t=a+e|0,f=(0|e)>0;r:do if(f)for(var _=t,s=r+4|0,i=(r+8|0)>>2,n=r+12|0,o=a;;){var o,l=(_-o|0)>3;a:do{if(l){if(Ae[o]<<24>>24!=95){v=21;break}if(Ae[o+1|0]<<24>>24!=95){v=21;break}if(Ae[o+2|0]<<24>>24!=85){v=21;break}for(var b=o+3|0,k=0;;){var k,b;if(b>>>0>=t>>>0){v=21;break a}var u=ge[b],c=u<<24>>24;if((u-48&255&255)<10)var h=c-48|0;else if((u-65&255&255)<6)var h=c-55|0;else{if((u-97&255&255)>=6)break;var h=c-87|0}var h,b=b+1|0,k=(k<<4)+h|0}if(!(u<<24>>24==95&k>>>0<256)){v=21;break}var d=Me[s>>2],w=0==(0|d);do if(!w){var p=Me[i];if(p>>>0>=Me[n>>2]>>>0)break;Se[i]=p+1|0,Ae[d+p|0]=255&k;var E=b;v=25;break a}while(0);Y(r,k);var E=b;v=25;break}v=21}while(0);a:do if(21==v){var A=Me[s>>2],g=0==(0|A);do if(!g){var y=Me[i];if(y>>>0>=Me[n>>2]>>>0)break;var m=Ae[o];Se[i]=y+1|0,Ae[A+y|0]=m;var E=o;break a}while(0);var S=Ae[o]<<24>>24;Y(r,S);var E=o}while(0);var E,M=E+1|0;if(M>>>0>=t>>>0)break r;var o=M}while(0)}function $(r,a){var e,i,v,t,f,_,s,n=r>>2,o=Se[a>>2];r:do if(22==(0|o)||25==(0|o)){var l=Me[n+1],b=0==(0|l);do if(!b){var _=(r+8|0)>>2,k=Me[_];if((k+9|0)>>>0>Me[n+3]>>>0)break;for(var u=l+k|0,c=0|He.__str147,h=u,d=c+9;c>2,A=Me[f];if((A+9|0)>>>0>Me[n+3]>>>0)break;for(var g=p+A|0,c=0|He.__str148,h=g,d=c+9;c>2,M=Me[t];if((M+6|0)>>>0>Me[n+3]>>>0)break;var C=m+M|0;Ae[C]=Ae[0|He.__str149],Ae[C+1]=Ae[(0|He.__str149)+1],Ae[C+2]=Ae[(0|He.__str149)+2],Ae[C+3]=Ae[(0|He.__str149)+3],Ae[C+4]=Ae[(0|He.__str149)+4],Ae[C+5]=Ae[(0|He.__str149)+5];var R=Se[t]+6|0;Se[t]=R;break r}while(0);Q(r,0|He.__str149,6)}else if(28==(0|o)){var T=Me[n+1],O=0==(0|T);do{if(!O){var N=r+8|0,I=Me[N>>2];if(I>>>0>=Me[n+3]>>>0){s=17;break}Se[N>>2]=I+1|0,Ae[T+I|0]=32,s=18;break}s=17}while(0);17==s&&Y(r,32);var P=Se[a+8>>2];H(r,P)}else if(29==(0|o)){if(0!=(4&Se[n]|0))break;var D=Me[n+1],L=0==(0|D);do if(!L){var F=r+8|0,X=Me[F>>2];if(X>>>0>=Me[n+3]>>>0)break;Se[F>>2]=X+1|0,Ae[D+X|0]=42;break r}while(0);Y(r,42)}else if(30==(0|o)){var j=Me[n+1],U=0==(0|j);do if(!U){var x=r+8|0,z=Me[x>>2];if(z>>>0>=Me[n+3]>>>0)break;Se[x>>2]=z+1|0,Ae[j+z|0]=38;break r}while(0);Y(r,38)}else if(31==(0|o)){var V=Me[n+1],B=0==(0|V);do if(!B){var v=(r+8|0)>>2,K=Me[v];if((K+8|0)>>>0>Me[n+3]>>>0)break;var G=V+K|0,W=0|G;oe=1886220131,Ae[W]=255&oe,oe>>=8,Ae[W+1]=255&oe,oe>>=8,Ae[W+2]=255&oe,oe>>=8,Ae[W+3]=255&oe;var Z=G+4|0;oe=544761196,Ae[Z]=255&oe,oe>>=8,Ae[Z+1]=255&oe,oe>>=8,Ae[Z+2]=255&oe,oe>>=8,Ae[Z+3]=255&oe;var q=Se[v]+8|0;Se[v]=q;break r}while(0);Q(r,0|He.__str150,8)}else if(32==(0|o)){var $=Me[n+1],J=0==(0|$);do if(!J){var i=(r+8|0)>>2,rr=Me[i];if((rr+10|0)>>>0>Me[n+3]>>>0)break;for(var ar=$+rr|0,c=0|He.__str151,h=ar,d=c+10;c>2],tr=0==(0|vr);do{if(!tr){var fr=r+8|0,_r=Me[fr>>2];if(0!=(0|_r)&&Ae[vr+(_r-1)|0]<<24>>24==40){s=42;break}if(_r>>>0>=Me[n+3]>>>0){s=41;break}Se[fr>>2]=_r+1|0,Ae[vr+_r|0]=32,s=42;break}s=41}while(0);41==s&&Y(r,32);var sr=Se[a+4>>2];H(r,sr);var nr=Me[ir>>2],or=0==(0|nr);do if(!or){var e=(r+8|0)>>2,lr=Me[e];if((lr+3|0)>>>0>Me[n+3]>>>0)break;var br=nr+lr|0;Ae[br]=Ae[0|He.__str135],Ae[br+1]=Ae[(0|He.__str135)+1],Ae[br+2]=Ae[(0|He.__str135)+2];var kr=Se[e]+3|0;Se[e]=kr;break r}while(0);Q(r,0|He.__str135,3)}else if(3==(0|o)){var ur=Se[a+4>>2];H(r,ur)}else H(r,a);while(0)}function J(r){var a=r+20|0,e=Se[a>>2];if((0|e)<(0|Se[r+24>>2])){var i=Se[r+16>>2]+12*e|0,v=e+1|0;Se[a>>2]=v;var t=i}else var t=0;var t;return t}function rr(r,a,e){var i,v,t,f,_=r>>2,s=e,t=s>>2,n=0;r:for(;;){var n,s,o=0==(0|s);do if(!o){if(0!=(0|Se[t+2]))break;var l=Se[Se[t+1]>>2];if(29==(0|l)||30==(0|l)){f=9;break r}if(22==(0|l)||23==(0|l)||24==(0|l)||28==(0|l)||31==(0|l)||32==(0|l)||37==(0|l)){var b=Se[_+1];f=12;break r}var s=Se[t],t=s>>2,n=1;continue r}while(0);if(0!=(0|Se[a+4>>2])&0==(0|n)){f=9;break}var k=0,u=r+4|0,v=u>>2;f=22;break}do if(9==f){var c=Se[_+1];if(0==(0|c)){f=17;break}var h=Se[_+2];if(0==(0|h)){var d=c;f=13;break}var w=Ae[c+(h-1)|0];if(w<<24>>24==40||w<<24>>24==42){f=18;break}var b=c;f=12;break}while(0);do if(12==f){var b;if(0==(0|b)){f=17;break}var d=b;f=13;break}while(0);do if(13==f){var d,p=r+8|0,E=Me[p>>2];if(0!=(0|E)&&Ae[d+(E-1)|0]<<24>>24==32){f=18;break}if(E>>>0>=Me[_+3]>>>0){f=17;break}Se[p>>2]=E+1|0,Ae[d+E|0]=32,f=18;break}while(0);do if(17==f){Y(r,32),f=18;break}while(0);r:do if(18==f){var A=r+4|0,g=Me[A>>2],y=0==(0|g);do if(!y){var m=r+8|0,S=Me[m>>2];if(S>>>0>=Me[_+3]>>>0)break;Se[m>>2]=S+1|0,Ae[g+S|0]=40;var k=1,u=A,v=u>>2;break r}while(0);Y(r,40);var k=1,u=A,v=u>>2}while(0);var u,k,i=(r+20|0)>>2,M=Se[i];Se[i]=0,vr(r,e,0);r:do if(k){var C=Me[v],R=0==(0|C);do if(!R){var T=r+8|0,O=Me[T>>2];if(O>>>0>=Me[_+3]>>>0)break;Se[T>>2]=O+1|0,Ae[C+O|0]=41;break r}while(0);Y(r,41)}while(0);var N=Me[v],I=0==(0|N);do{if(!I){var P=r+8|0,D=Me[P>>2];if(D>>>0>=Me[_+3]>>>0){f=30;break}Se[P>>2]=D+1|0,Ae[N+D|0]=40,f=31;break}f=30}while(0);30==f&&Y(r,40);var L=Se[a+8>>2];0!=(0|L)&&H(r,L);var F=Me[v],X=0==(0|F);do{if(!X){var j=r+8|0,U=Me[j>>2];if(U>>>0>=Me[_+3]>>>0){f=36;break}Se[j>>2]=U+1|0,Ae[F+U|0]=41,f=37;break}f=36}while(0);36==f&&Y(r,41),vr(r,e,1),Se[i]=M}function ar(r,a,e){var i,v,t,f=r>>2,_=0==(0|e);do{if(!_){var s=e,v=s>>2;r:for(;;){var s;if(0==(0|s)){var n=1;t=14;break}if(0==(0|Se[v+2])){var o=36==(0|Se[Se[v+1]>>2]),l=1&o^1;if(o){var n=l;t=14;break}var b=r+4|0,k=Me[b>>2],u=0==(0|k);do{if(!u){var i=(r+8|0)>>2,c=Me[i];if((c+2|0)>>>0>Me[f+3]>>>0){t=9;break}var h=k+c|0;oe=10272,Ae[h]=255&oe,oe>>=8,Ae[h+1]=255&oe;var d=Se[i]+2|0;Se[i]=d,vr(r,e,0),t=10;break}t=9}while(0);9==t&&(Q(r,0|He.__str140,2),vr(r,e,0));var w=Me[b>>2],p=0==(0|w);do if(!p){var E=r+8|0,A=Me[E>>2];if(A>>>0>=Me[f+3]>>>0)break;Se[E>>2]=A+1|0,Ae[w+A|0]=41;var g=l;t=15;break r}while(0);Y(r,41);var g=l;t=15;break}var s=Se[v],v=s>>2}if(14==t){var n;vr(r,e,0);var g=n}var g;if(0!=(0|g)){t=17;break}var y=r+4|0;t=21;break}t=17}while(0);r:do if(17==t){var m=r+4|0,S=Me[m>>2],M=0==(0|S);do if(!M){var C=r+8|0,R=Me[C>>2];if(R>>>0>=Me[f+3]>>>0)break;Se[C>>2]=R+1|0,Ae[S+R|0]=32;var y=m;break r}while(0);Y(r,32);var y=m}while(0);var y,T=Me[y>>2],O=0==(0|T);do{if(!O){var N=r+8|0,I=Me[N>>2];if(I>>>0>=Me[f+3]>>>0){t=24;break}Se[N>>2]=I+1|0,Ae[T+I|0]=91,t=25;break}t=24}while(0);24==t&&Y(r,91);var P=Se[a+4>>2];0!=(0|P)&&H(r,P);var D=Me[y>>2],L=0==(0|D);do{if(!L){var F=r+8|0,X=Me[F>>2];if(X>>>0>=Me[f+3]>>>0){t=30;break}Se[F>>2]=X+1|0,Ae[D+X|0]=93,t=31;break}t=30}while(0);30==t&&Y(r,93)}function er(r,a){var e,i,v,t,f,_,s=Oe;Oe+=8;var n,o=s,_=(a+4|0)>>2,l=Se[_];if(4==(0|Se[l>>2])){var f=(r+20|0)>>2,b=Se[f];Se[f]=0;var t=(r+16|0)>>2,k=Se[t],u=0|o;Se[u>>2]=k,Se[t]=o;var c=Se[_];Se[o+4>>2]=c;var h=Se[c+4>>2];H(r,h);var d=Se[u>>2];Se[t]=d;var v=(r+4|0)>>2,w=Me[v],p=0==(0|w);do{if(!p){var i=(r+8|0)>>2,E=Me[i],A=0==(0|E);do if(!A){if(Ae[w+(E-1)|0]<<24>>24!=60)break;E>>>0>2]>>>0?(Se[i]=E+1|0,Ae[w+E|0]=32):Y(r,32)}while(0);var g=Me[v];if(0==(0|g)){n=12;break}var y=Me[i];if(y>>>0>=Me[r+12>>2]>>>0){n=12;break}Se[i]=y+1|0,Ae[g+y|0]=60,n=13;break}n=12}while(0);12==n&&Y(r,60);var m=Se[Se[_]+8>>2];H(r,m);var S=Me[v],M=0==(0|S);do{if(!M){var e=(r+8|0)>>2,C=Me[e],R=0==(0|C);do if(!R){if(Ae[S+(C-1)|0]<<24>>24!=62)break;C>>>0>2]>>>0?(Se[e]=C+1|0,Ae[S+C|0]=32):Y(r,32)}while(0);var T=Me[v];if(0==(0|T)){n=22;break}var O=Me[e];if(O>>>0>=Me[r+12>>2]>>>0){n=22;break}Se[e]=O+1|0,Ae[T+O|0]=62,n=23;break}n=22}while(0);22==n&&Y(r,62),Se[f]=b}else H(r,l);Oe=s}function ir(r,a){var e,i=40==(0|Se[a>>2]);r:do if(i){var v=Me[r+4>>2],t=0==(0|v);do{if(!t){var e=(r+8|0)>>2,f=Me[e],_=a+4|0,s=Me[_>>2],n=Me[s+8>>2];if((n+f|0)>>>0>Me[r+12>>2]>>>0){var o=s,l=n;break}var b=v+f|0,k=Se[s+4>>2];Pa(b,k,n,1);var u=Se[e]+Se[Se[_>>2]+8>>2]|0;Se[e]=u;break r}var c=Me[a+4>>2],o=c,l=Se[c+8>>2]}while(0);var l,o,h=Se[o+4>>2];Q(r,h,l)}else H(r,a);while(0)}function vr(r,a,e){var i,v,t,f,_,f=(r+4|0)>>2,s=0==(0|e),t=(r+16|0)>>2;r:do if(s)for(var n=a;;){var n;if(0==(0|n)){_=29;break r}if(0==(0|Se[f])){_=29;break r}var o=n+8|0,l=0==(0|Se[o>>2]);do if(l){var b=n+4|0;if((Se[Se[b>>2]>>2]-25|0)>>>0<3)break;Se[o>>2]=1;var k=Me[t],u=Se[n+12>>2];Se[t]=u;var c=Me[b>>2],h=Se[c>>2];if(35==(0|h)){var d=n,w=k,p=c;_=14;break r}if(36==(0|h)){var E=n,A=k,g=c;_=15;break r}if(2==(0|h)){var y=k,m=b;_=16;break r}$(r,c),Se[t]=k}while(0);var n=Se[n>>2]}else for(var S=a;;){var S;if(0==(0|S)){_=29;break r}if(0==(0|Se[f])){_=29;break r}var M=S+8|0;if(0==(0|Se[M>>2])){Se[M>>2]=1;var C=Me[t],R=Se[S+12>>2];Se[t]=R;var T=S+4|0,O=Me[T>>2],N=Se[O>>2];if(35==(0|N)){var d=S,w=C,p=O;_=14;break r}if(36==(0|N)){var E=S,A=C,g=O;_=15;break r}if(2==(0|N)){var y=C,m=T;_=16;break r}$(r,O),Se[t]=C}var S=Se[S>>2]}while(0);if(14==_){var p,w,d,I=Se[d>>2];rr(r,p,I),Se[t]=w}else if(15==_){var g,A,E,P=Se[E>>2];ar(r,g,P),Se[t]=A}else if(16==_){var m,y,v=(r+20|0)>>2,D=Se[v];Se[v]=0;var L=Se[Se[m>>2]+4>>2];H(r,L),Se[v]=D;var F=0==(4&Se[r>>2]|0),X=Me[f],j=0!=(0|X);r:do if(F){do if(j){var i=(r+8|0)>>2,U=Me[i];if((U+2|0)>>>0>Me[r+12>>2]>>>0)break;var x=X+U|0;oe=14906,Ae[x]=255&oe,oe>>=8,Ae[x+1]=255&oe;var z=Se[i]+2|0;Se[i]=z;break r}while(0);Q(r,0|He.__str120,2)}else{do if(j){var V=r+8|0,B=Me[V>>2];if(B>>>0>=Me[r+12>>2]>>>0)break;Se[V>>2]=B+1|0,Ae[X+B|0]=46;break r}while(0);Y(r,46)}while(0);var K=Me[Se[m>>2]+8>>2],G=(Se[K>>2]-25|0)>>>0<3;r:do if(G)for(var W=K;;){var W,Z=Me[W+4>>2];if((Se[Z>>2]-25|0)>>>0>=3){var q=Z;break r}var W=Z}else var q=K;while(0);var q;H(r,q),Se[t]=y}}function tr(r,a){var e,e=(r+4|0)>>2,i=Se[e],v=0==(0|i);r:do if(!v){for(var t=Se[r+8>>2]+a|0,f=r+12|0,_=Se[f>>2],s=i;;){var s,_;if(t>>>0<=_>>>0)break r;var n=_<<1,o=fa(s,n);if(0==(0|o))break;Se[e]=o,Se[f>>2]=n;var _=n,s=o}var l=Se[e];va(l),Se[e]=0,Se[r+24>>2]=1}while(0)}function fr(r,a,e){var i,v=J(r),i=v>>2;return 0!=(0|v)&&(Se[i]=21,Se[i+1]=a,Se[i+2]=e),v}function _r(r){var a,a=(r+12|0)>>2,e=Se[a],i=Ae[e]<<24>>24;if(88==(0|i)){var v=e+1|0;Se[a]=v;var t=nr(r),f=Se[a],_=f+1|0;Se[a]=_;var s=Ae[f]<<24>>24==69?t:0,n=s}else if(76==(0|i))var o=or(r),n=o;else var l=N(r),n=l;var n;return n}function sr(r){var a,a=(r+12|0)>>2,e=Se[a],i=Ae[e];if(i<<24>>24==110){var v=e+1|0;Se[a]=v;var t=1,f=Ae[v],_=v}else var t=0,f=i,_=e;var _,f,t,s=(f-48&255&255)<10;r:do if(s)for(var n=f,o=0,l=_;;){var l,o,n,b=(n<<24>>24)-48+10*o|0,k=l+1|0;Se[a]=k;var u=ge[k];if((u-48&255&255)>=10){var c=b;break r}var n=u,o=b,l=k}else var c=0;while(0);var c,h=0==(0|t)?c:0|-c;return h}function nr(r){var a,e,a=(r+12|0)>>2,i=Se[a],v=Ae[i];do{if(v<<24>>24==76){var t=or(r),f=t;e=21;break}if(v<<24>>24==84){var _=x(r),f=_;e=21;break}if(v<<24>>24==115){if(Ae[i+1|0]<<24>>24!=114){e=8;break}var s=i+2|0;Se[a]=s;var n=N(r),o=br(r);if(Ae[Se[a]]<<24>>24==73){var l=z(r),b=D(r,4,o,l),k=D(r,1,n,b),f=k;e=21;break}var u=D(r,1,n,o),f=u;e=21;break}e=8}while(0);r:do if(8==e){var c=kr(r);if(0==(0|c)){var f=0;break}var h=0|c,d=Se[h>>2],w=40==(0|d);do{if(w){var p=c+4|0,E=r+48|0,A=Se[Se[p>>2]+8>>2]-2+Se[E>>2]|0;Se[E>>2]=A;var g=Se[h>>2];if(40!=(0|g)){var y=g;e=13;break}var m=Se[p>>2],S=Se[m>>2],M=Da(S,0|He.__str90);if(0!=(0|M)){var C=m;e=15;break}var R=N(r),T=D(r,43,c,R),f=T;break r}var y=d;e=13}while(0);do if(13==e){var y;if(40==(0|y)){var C=Se[c+4>>2];e=15;break}if(41==(0|y)){var O=c+4|0;e=17;break}if(42==(0|y)){e=18;break}var f=0;break r}while(0);do if(15==e){var C,O=C+12|0;e=17;break}while(0);do if(17==e){var O,I=Se[O>>2];if(1==(0|I))break;if(2==(0|I)){var P=nr(r),L=nr(r),F=D(r,45,P,L),X=D(r,44,c,F);return X}if(3==(0|I)){var j=nr(r),U=nr(r),V=nr(r),B=D(r,48,U,V),H=D(r,47,j,B),K=D(r,46,c,H);return K}var f=0;break r}while(0);var Y=nr(r),G=D(r,43,c,Y);return G}while(0);var f;return f}function or(r){var a,a=(r+12|0)>>2,e=Se[a],i=e+1|0;Se[a]=i;var v=Ae[e]<<24>>24==76;r:do if(v){if(Ae[i]<<24>>24==95)var t=T(r,0),f=t;else{var _=N(r);if(0==(0|_)){var s=0;break}var n=33==(0|Se[_>>2]);do if(n){var o=Se[_+4>>2];if(0==(0|Se[o+16>>2]))break;var l=r+48|0,b=Se[l>>2]-Se[o+4>>2]|0;Se[l>>2]=b}while(0);var k=Se[a];if(Ae[k]<<24>>24==110){var u=k+1|0;Se[a]=u;var c=50,h=u}else var c=49,h=k;for(var h,c,d=h;;){var d,w=Ae[d];if(w<<24>>24==69)break;if(w<<24>>24==0){var s=0;break r}var p=d+1|0;Se[a]=p;var d=p}var E=lr(r,h,d-h|0),A=D(r,c,_,E),f=A}var f,g=Se[a],y=g+1|0;Se[a]=y;var m=Ae[g]<<24>>24==69?f:0,s=m}else var s=0;while(0);var s;return s}function lr(r,a,e){var i=J(r),v=m(i,a,e),t=0==(0|v)?0:i;return t}function br(r){var a=r+12|0,e=Me[a>>2],i=ge[e],v=(i-48&255&255)<10;do if(v)var t=L(r),f=t;else if((i-97&255&255)<26){var _=kr(r);if(0==(0|_)){var f=0;break}if(40!=(0|Se[_>>2])){var f=_;break}var s=r+48|0,n=Se[Se[_+4>>2]+8>>2]+Se[s>>2]+7|0;Se[s>>2]=n;var f=_}else if(i<<24>>24==67||i<<24>>24==68)var o=hr(r),f=o;else{if(i<<24>>24!=76){var f=0;break}Se[a>>2]=e+1|0;var l=L(r);if(0==(0|l)){var f=0;break}var b=dr(r),k=0==(0|b)?0:l,f=k}while(0);var f;return f}function kr(r){var a,e,a=(r+12|0)>>2,i=Se[a],v=i+1|0;Se[a]=v;var t=ge[i],f=i+2|0;Se[a]=f;var _=ge[v];do{if(t<<24>>24==118){if((_-48&255&255)>=10){var s=49,n=0;e=6;break}var o=(_<<24>>24)-48|0,l=L(r),b=ur(r,o,l),k=b;e=14;break}if(t<<24>>24==99){if(_<<24>>24!=118){var s=49,n=0;e=6;break}var u=N(r),c=D(r,42,u,0),k=c;e=14;break}var s=49,n=0;e=6}while(0);r:do if(6==e){for(;;){var n,s,h=(s-n)/2+n|0,d=(h<<4)+ri|0,w=Se[d>>2],p=Ae[w],E=t<<24>>24==p<<24>>24;if(E&&_<<24>>24==Ae[w+1|0]<<24>>24)break;var A=t<<24>>24>24;do if(A)var g=h,y=n;else{if(E&&_<<24>>24>24){var g=h,y=n;break}var g=s,y=h+1|0}while(0);var y,g;if((0|y)==(0|g)){var k=0;break r}var s=g,n=y}var m=cr(r,d),k=m}while(0);var k;return k}function ur(r,a,e){var i=J(r),v=S(i,a,e),t=0==(0|v)?0:i;return t}function cr(r,a){var e=J(r);return 0!=(0|e)&&(Se[e>>2]=40,Se[e+4>>2]=a),e}function hr(r){var a,e,i=Se[r+44>>2],e=i>>2,v=0==(0|i);do if(!v){var t=Se[e];if(0==(0|t)){var f=r+48|0,_=Se[f>>2]+Se[e+2]|0;Se[f>>2]=_}else{if(21!=(0|t))break;var s=r+48|0,n=Se[s>>2]+Se[e+2]|0;Se[s>>2]=n}}while(0);var a=(r+12|0)>>2,o=Se[a],l=o+1|0;Se[a]=l;var b=Ae[o]<<24>>24;do if(67==(0|b)){var k=o+2|0;Se[a]=k;var u=Ae[l]<<24>>24;if(49==(0|u))var c=1;else if(50==(0|u))var c=2;else{if(51!=(0|u)){var h=0;break}var c=3}var c,d=wr(r,c,i),h=d}else if(68==(0|b)){var w=o+2|0;Se[a]=w;var p=Ae[l]<<24>>24;if(48==(0|p))var E=1;else if(49==(0|p))var E=2;else{if(50!=(0|p)){var h=0;break}var E=3}var E,A=pr(r,E,i),h=A}else var h=0;while(0);var h;return h}function dr(r){var a=r+12|0,e=Se[a>>2];if(Ae[e]<<24>>24==95){var i=e+1|0;Se[a>>2]=i;var v=sr(r),t=v>>>31^1}else var t=1;var t;return t}function wr(r,a,e){var i=J(r),v=M(i,a,e),t=0==(0|v)?0:i;return t}function pr(r,a,e){var i=J(r),v=C(i,a,e),t=0==(0|v)?0:i;return t}function Er(r,a){var e=J(r);return 0!=(0|e)&&(Se[e>>2]=5,Se[e+4>>2]=a),e}function Ar(r){var a,a=(r+12|0)>>2,e=Se[a],i=Ae[e]<<24>>24;do if(78==(0|i))var v=gr(r),t=v;else if(90==(0|i))var f=yr(r),t=f;else if(76==(0|i))var _=br(r),t=_;else if(83==(0|i)){if(Ae[e+1|0]<<24>>24==116){var s=e+2|0;Se[a]=s;var n=lr(r,0|He.__str152,3),o=br(r),l=D(r,1,n,o),b=r+48|0,k=Se[b>>2]+3|0;Se[b>>2]=k;var u=0,c=l}else var h=V(r,0),u=1,c=h;var c,u;if(Ae[Se[a]]<<24>>24!=73){var t=c;break}if(0==(0|u)){var d=R(r,c);if(0==(0|d)){var t=0;break}}var w=z(r),p=D(r,4,c,w),t=p}else{var E=br(r);if(Ae[Se[a]]<<24>>24!=73){var t=E;break}var A=R(r,E);if(0==(0|A)){var t=0;break}var g=z(r),y=D(r,4,E,g),t=y}while(0);var t;return t}function gr(r){var a,e=Oe;Oe+=4;var i=e,a=(r+12|0)>>2,v=Se[a],t=v+1|0;Se[a]=t;var f=Ae[v]<<24>>24==78;do if(f){var _=I(r,i,1);if(0==(0|_)){var s=0;break}var n=mr(r);if(Se[_>>2]=n,0==(0|n)){var s=0;break}var o=Se[a],l=o+1|0;if(Se[a]=l,Ae[o]<<24>>24!=69){var s=0;break}var s=Se[i>>2]}else var s=0;while(0);var s;return Oe=e,s}function yr(r){var a,a=(r+12|0)>>2,e=Se[a],i=e+1|0;Se[a]=i;var v=Ae[e]<<24>>24==90;do if(v){var t=O(r,0),f=Se[a],_=f+1|0;if(Se[a]=_,Ae[f]<<24>>24!=69){var s=0;break}if(Ae[_]<<24>>24==115){var n=f+2|0;Se[a]=n;var o=dr(r);if(0==(0|o)){var s=0;break}var l=lr(r,0|He.__str168,14),b=D(r,2,t,l),s=b}else{var k=Ar(r),u=dr(r);if(0==(0|u)){var s=0;break}var c=D(r,2,t,k),s=c}}else var s=0;while(0);var s;return s}function mr(r){var a,e=r+12|0,i=0;r:for(;;){var i,v=ge[Se[e>>2]];if(v<<24>>24==0){var t=0;break}var f=(v-48&255&255)<10|(v-97&255&255)<26;do{if(!f){if(v<<24>>24==76||v<<24>>24==68||v<<24>>24==67){a=5;break}if(v<<24>>24==83){var _=V(r,1),s=_;a=10;break}if(v<<24>>24==73){if(0==(0|i)){var t=0;break r}var n=z(r),o=4,l=n;a=11;break}if(v<<24>>24==84){var b=x(r),s=b;a=10;break}if(v<<24>>24==69){var t=i;break r}var t=0;break r}a=5}while(0);do if(5==a){var k=br(r),s=k;a=10;break}while(0);do if(10==a){var s;if(0==(0|i)){var u=s;a=12;break}var o=1,l=s;a=11;break}while(0);if(11==a)var l,o,c=D(r,o,i,l),u=c;var u;if(v<<24>>24!=83)if(Ae[Se[e>>2]]<<24>>24!=69){var h=R(r,u);if(0==(0|h)){var t=0;break}var i=u}else var i=u;else var i=u}var t;return t}function Sr(r,a){var e,i,v=Oe;Oe+=4;var t=v,i=t>>2,e=(r+12|0)>>2,f=Se[e];if(Ae[f]<<24>>24==74){var _=f+1|0;Se[e]=_;var s=1}else var s=a;var s;Se[i]=0;var n=s,o=0,l=t;r:for(;;)for(var l,o,n,b=n,k=o;;){var k,b,u=Ae[Se[e]];if(u<<24>>24==0||u<<24>>24==69){var c=Se[i];if(0==(0|c)){var h=0;break r}var d=0==(0|Se[c+8>>2]);do if(d){var w=Se[c+4>>2];if(33!=(0|Se[w>>2])){var p=c;break}var E=Se[w+4>>2];if(9!=(0|Se[E+16>>2])){var p=c;break}var A=r+48|0,g=Se[A>>2]-Se[E+4>>2]|0;Se[A>>2]=g,Se[i]=0;var p=0}else var p=c;while(0);var p,y=D(r,35,k,p),h=y;break r}var m=N(r);if(0==(0|m)){var h=0;break r}if(0==(0|b)){var S=D(r,38,m,0);if(Se[l>>2]=S,0==(0|S)){var h=0;break r}var n=0,o=k,l=S+8|0;continue r}var b=0,k=m}var h;return Oe=v,h}function Mr(r){for(var a=r;;){var a;if(0==(0|a)){var e=0;break}var i=Se[a>>2];if(1!=(0|i)&&2!=(0|i)){if(6==(0|i)||7==(0|i)||42==(0|i)){var e=1;break}var e=0;break}var a=Se[a+8>>2]}var e;return e}function Cr(r){var a=r>>2;Se[a+3]=0,Se[a+2]=0,Se[a+1]=0,Se[a]=0,Se[a+4]=0}function Rr(r,a){var e,e=(r+12|0)>>2,i=Se[e],v=(Se[r+4>>2]-i|0)<(0|a);r:do if(v)var t=0;else{var f=i+a|0;Se[e]=f;var _=0==(4&Se[r+8>>2]|0);do if(!_){if(Ae[f]<<24>>24!=36)break;var s=a+(i+1)|0;Se[e]=s}while(0);var n=(0|a)>9;do if(n){var o=La(i,0|He.__str117,8);if(0!=(0|o))break;var l=Ae[i+8|0];if(l<<24>>24!=46&&l<<24>>24!=95&&l<<24>>24!=36)break;if(Ae[i+9|0]<<24>>24!=78)break;var b=r+48|0,k=22-a+Se[b>>2]|0;Se[b>>2]=k;var u=lr(r,0|He.__str169,21),t=u;break r}while(0);var c=lr(r,i,a),t=c}while(0);var t;return t}function Tr(r){var a,e,e=(r+48|0)>>2,i=Se[e],v=i+20|0;Se[e]=v;var a=(r+12|0)>>2,t=Se[a],f=t+1|0;Se[a]=f;var _=Ae[t];do if(_<<24>>24==84){var s=t+2|0;Se[a]=s;var n=Ae[f]<<24>>24;if(86==(0|n)){var o=i+15|0;Se[e]=o;var l=N(r),b=D(r,8,l,0),k=b}else if(84==(0|n)){var u=i+10|0;Se[e]=u;var c=N(r),h=D(r,9,c,0),k=h}else if(73==(0|n))var d=N(r),w=D(r,11,d,0),k=w;else if(83==(0|n))var p=N(r),E=D(r,12,p,0),k=E;else if(104==(0|n)){var A=Nr(r,104);if(0==(0|A)){var k=0;break}var g=O(r,0),y=D(r,14,g,0),k=y}else if(118==(0|n)){var m=Nr(r,118);if(0==(0|m)){var k=0;break}var S=O(r,0),M=D(r,15,S,0),k=M}else if(99==(0|n)){var C=Nr(r,0);if(0==(0|C)){var k=0;break}var R=Nr(r,0);if(0==(0|R)){var k=0;break}var T=O(r,0),I=D(r,16,T,0),k=I}else if(67==(0|n)){var P=N(r),L=sr(r);if((0|L)<0){var k=0;break}var F=Se[a],X=F+1|0;if(Se[a]=X,Ae[F]<<24>>24!=95){var k=0;break}var j=N(r),U=Se[e]+5|0;Se[e]=U;var x=D(r,10,j,P),k=x}else if(70==(0|n))var z=N(r),V=D(r,13,z,0),k=V;else{if(74!=(0|n)){var k=0;break}var B=N(r),H=D(r,17,B,0),k=H}}else if(_<<24>>24==71){var K=t+2|0;Se[a]=K;var Y=Ae[f]<<24>>24;if(86==(0|Y))var G=Ar(r),W=D(r,18,G,0),k=W;else if(82==(0|Y))var Z=Ar(r),Q=D(r,19,Z,0),k=Q;else{if(65!=(0|Y)){var k=0;break}var q=O(r,0),$=D(r,20,q,0),k=$}}else var k=0;while(0);var k;return k}function Or(r){for(var a,e=r,a=e>>2;;){var e;if(0==(0|e)){var i=0;break}var v=Se[a];if(4==(0|v)){var t=Se[a+1],f=Mr(t),i=0==(0|f)&1;break}if(25!=(0|v)&&26!=(0|v)&&27!=(0|v)){var i=0;break}var e=Se[a+1],a=e>>2}var i;return i}function Nr(r,a){var e;if(0==(0|a)){var i=r+12|0,v=Se[i>>2],t=v+1|0;Se[i>>2]=t;var f=Ae[v]<<24>>24}else var f=a;var f;do{if(104==(0|f)){var _=(sr(r),r+12|0);e=7;break}if(118==(0|f)){var s=(sr(r),r+12|0),n=Se[s>>2],o=n+1|0;if(Se[s>>2]=o,Ae[n]<<24>>24!=95){var l=0;e=8;break}var _=(sr(r),s);e=7;break}var l=0;e=8}while(0);if(7==e){var _,b=Se[_>>2],k=b+1|0;Se[_>>2]=k;var l=Ae[b]<<24>>24==95&1}var l;return l}function Ir(r){var a,e,i=r>>2,v=Oe;Oe+=56;var t,f=v,_=v+8,s=v+16,n=v+36,e=(0|r)>>2,o=Se[e],l=0==(8192&o|0);r:do{if(l){var a=(r+12|0)>>2,b=Se[a];if(Ae[b]<<24>>24!=63){var k=0;t=111;break}var u=b+1|0;Se[a]=u;var c=Ae[u];do if(c<<24>>24==63){if(Ae[b+2|0]<<24>>24==36){var h=b+3|0;if(Ae[h]<<24>>24!=63){var d=5;t=90;break}Se[a]=h;var w=6,p=h}else var w=0,p=u;var p,w,E=p+1|0;Se[a]=E;var A=Ae[E]<<24>>24;do if(48==(0|A)){var g=1;t=81}else{if(49==(0|A)){var g=2;t=81;break}if(50!=(0|A)){if(51==(0|A)){var y=0|He.__str2172,m=E;t=82;break}if(52==(0|A)){var y=0|He.__str3173,m=E;t=82;break}if(53==(0|A)){var y=0|He.__str4174,m=E;t=82;break}if(54==(0|A)){var y=0|He.__str5175,m=E;t=82;break}if(55==(0|A)){var y=0|He.__str6176,m=E;t=82;break}if(56==(0|A)){var y=0|He.__str7177,m=E;t=82;break}if(57==(0|A)){var y=0|He.__str8178,m=E;t=82;break}if(65==(0|A)){var y=0|He.__str9179,m=E;t=82;break}if(66==(0|A)){Se[a]=p+2|0;var S=0|He.__str10180,M=3;t=88;break}if(67==(0|A)){var y=0|He.__str11181,m=E;t=82;break}if(68==(0|A)){var y=0|He.__str12182,m=E;t=82;break}if(69==(0|A)){var y=0|He.__str13183,m=E;t=82;break}if(70==(0|A)){var y=0|He.__str14184,m=E;t=82;break}if(71==(0|A)){var y=0|He.__str15185,m=E;t=82;break}if(72==(0|A)){var y=0|He.__str16186,m=E;t=82;break}if(73==(0|A)){var y=0|He.__str17187,m=E;t=82;break}if(74==(0|A)){var y=0|He.__str18188,m=E;t=82;break}if(75==(0|A)){var y=0|He.__str19189,m=E;t=82;break}if(76==(0|A)){var y=0|He.__str20190,m=E;t=82;break}if(77==(0|A)){var y=0|He.__str21191,m=E;t=82;break}if(78==(0|A)){var y=0|He.__str22192,m=E;t=82;break}if(79==(0|A)){var y=0|He.__str23193,m=E;t=82;break}if(80==(0|A)){var y=0|He.__str24194,m=E;t=82;break}if(81==(0|A)){var y=0|He.__str25195,m=E;t=82;break}if(82==(0|A)){var y=0|He.__str26196,m=E;t=82;break}if(83==(0|A)){var y=0|He.__str27197,m=E;t=82;break}if(84==(0|A)){var y=0|He.__str28198,m=E;t=82;break}if(85==(0|A)){var y=0|He.__str29199,m=E;t=82;break}if(86==(0|A)){var y=0|He.__str30200,m=E;t=82;break}if(87==(0|A)){var y=0|He.__str31201,m=E;t=82;break}if(88==(0|A)){var y=0|He.__str32202,m=E;t=82;break}if(89==(0|A)){var y=0|He.__str33203,m=E;t=82;break}if(90==(0|A)){var y=0|He.__str34204,m=E;t=82;break}if(95==(0|A)){var C=p+2|0;Se[a]=C;var R=Ae[C]<<24>>24;if(48==(0|R)){var y=0|He.__str35205,m=C;t=82;break}if(49==(0|R)){var y=0|He.__str36206,m=C;t=82;break}if(50==(0|R)){var y=0|He.__str37207,m=C;t=82;break}if(51==(0|R)){var y=0|He.__str38208,m=C;t=82;break}if(52==(0|R)){var y=0|He.__str39209,m=C;t=82;break}if(53==(0|R)){var y=0|He.__str40210,m=C;t=82;break}if(54==(0|R)){var y=0|He.__str41211,m=C;t=82;break}if(55==(0|R)){var y=0|He.__str42212,m=C;t=82;break}if(56==(0|R)){var y=0|He.__str43213,m=C;t=82;break}if(57==(0|R)){var y=0|He.__str44214,m=C;t=82;break}if(65==(0|R)){var y=0|He.__str45215,m=C;t=82;break}if(66==(0|R)){var y=0|He.__str46216,m=C;t=82;break}if(67==(0|R)){Se[a]=p+3|0;var T=0|He.__str47217;t=84;break}if(68==(0|R)){var y=0|He.__str48218,m=C;t=82;break}if(69==(0|R)){var y=0|He.__str49219,m=C;t=82;break}if(70==(0|R)){var y=0|He.__str50220,m=C;t=82;break}if(71==(0|R)){var y=0|He.__str51221,m=C;t=82;break}if(72==(0|R)){var y=0|He.__str52222,m=C;t=82;break}if(73==(0|R)){var y=0|He.__str53223,m=C;t=82;break}if(74==(0|R)){var y=0|He.__str54224,m=C;t=82;break}if(75==(0|R)){var y=0|He.__str55225,m=C;t=82;break}if(76==(0|R)){var y=0|He.__str56226,m=C;t=82;break}if(77==(0|R)){var y=0|He.__str57227,m=C;t=82;break}if(78==(0|R)){var y=0|He.__str58228,m=C;t=82;break}if(79==(0|R)){var y=0|He.__str59229,m=C;t=82;break}if(82==(0|R)){var O=4|o;Se[e]=O;var N=p+3|0;Se[a]=N;var I=Ae[N]<<24>>24;if(48==(0|I)){Se[a]=p+4|0,Cr(s);var P=(Pr(r,_,s,0),Se[_>>2]),D=Se[_+4>>2],L=Dr(r,0|He.__str60230,(ne=Oe,Oe+=8,Se[ne>>2]=P,Se[ne+4>>2]=D,ne)),F=Se[a]-1|0;Se[a]=F;var y=L,m=F;t=82;break}if(49==(0|I)){Se[a]=p+4|0;var X=Lr(r),j=Lr(r),U=Lr(r),x=Lr(r),z=Se[a]-1|0;Se[a]=z;var V=Dr(r,0|He.__str61231,(ne=Oe,Oe+=16,Se[ne>>2]=X,Se[ne+4>>2]=j,Se[ne+8>>2]=U,Se[ne+12>>2]=x,ne)),y=V,m=Se[a];t=82;break}if(50==(0|I)){var y=0|He.__str62232,m=N;t=82;break}if(51==(0|I)){var y=0|He.__str63233,m=N;t=82;break}if(52==(0|I)){var y=0|He.__str64234,m=N;t=82;break}var y=0,m=N;t=82;break}if(83==(0|R)){var y=0|He.__str65235,m=C;t=82;break}if(84==(0|R)){var y=0|He.__str66236,m=C;t=82;break}if(85==(0|R)){var y=0|He.__str67237,m=C;t=82;break}if(86==(0|R)){var y=0|He.__str68238,m=C;t=82;break}if(88==(0|R)){var y=0|He.__str69239,m=C;t=82;break}if(89==(0|R)){var y=0|He.__str70240,m=C;t=82;break}var k=0;t=111;break r}var k=0;t=111;break r}var y=0|He.__str1171,m=E;t=82}while(0);do{if(81==t){var g;Se[a]=p+2|0;var B=g;t=83;break}if(82==t){var m,y;if(Se[a]=m+1|0,1==(0|w)||2==(0|w)){var B=w;t=83;break}if(4==(0|w)){var T=y;t=84;break}if(6!=(0|w)){var S=y,M=w;t=88;break}Cr(n);var H=Xr(r,n,0,60,62);if(0==(0|H))var K=y;else var Y=Dr(r,0|He.__str170,(ne=Oe,Oe+=8,Se[ne>>2]=y,Se[ne+4>>2]=H,ne)),K=Y;var K;Se[i+6]=0;var S=K,M=w;t=88;break}}while(0);if(83==t){var B,G=r+40|0,W=Fr(r,0|He._symbol_demangle_dashed_null,-1,G);if(0==(0|W)){var k=0;t=111;break r}var d=B;t=90;break}if(84==t){var T;Se[i+4]=T;var Z=1,Q=T;t=109;break r}if(88==t){var M,S,q=r+40|0,$=Fr(r,S,-1,q);if(0==(0|$)){var k=0;t=111;break r}var d=M;t=90;break}}else{if(c<<24>>24==36){var J=b+2|0;Se[a]=J;var rr=jr(r);Se[i+4]=rr;var ar=0!=(0|rr)&1;t=107;break}var d=0;t=90}while(0);if(90==t){var d,er=Me[a],ir=Ae[er]<<24>>24;if(64==(0|ir))Se[a]=er+1|0;else if(36==(0|ir))t=93;else{var vr=zr(r);if(0==(0|vr)){var k=-1;t=111;break}}if(5==(0|d)){var tr=r+20|0,fr=Se[tr>>2]+1|0;Se[tr>>2]=fr}else if(1==(0|d)||2==(0|d)){if(Me[i+11]>>>0<2){var k=-1;t=111;break}var _r=r+56|0,sr=Me[_r>>2],nr=Se[sr+4>>2];if(1==(0|d))Se[sr>>2]=nr;else{var or=Dr(r,0|He.__str71241,(ne=Oe,Oe+=4,Se[ne>>2]=nr,ne)),lr=Se[_r>>2];Se[lr>>2]=or}var br=4|Se[e];Se[e]=br}else if(3==(0|d)){var kr=Se[e]&-5;Se[e]=kr}var ur=ge[Se[a]];if((ur-48&255&255)<10)var cr=Vr(r),ar=cr;else if((ur-65&255&255)<26)var hr=Br(r,3==(0|d)&1),ar=hr;else{if(ur<<24>>24!=36){var k=-1;t=111;break}var dr=Hr(r),ar=dr}}var ar;if(0==(0|ar)){var k=-1;t=111;break}var Z=ar,Q=Se[i+4];t=109;break}var wr=Pr(r,f,0,0);if(0==(0|wr)){var k=-1;t=111;break}var pr=Se[f>>2],Er=Se[f+4>>2],Ar=Dr(r,0|He.__str170,(ne=Oe,Oe+=8,Se[ne>>2]=pr,Se[ne+4>>2]=Er,ne));Se[i+4]=Ar;var Z=1,Q=Ar;t=109;break}while(0);do if(109==t){var Q,Z;if(0!=(0|Q)){var k=Z;break}Xa(0|He.__str72242,1499,0|He.___func___symbol_demangle,0|He.__str73243);var k=Z}while(0);var k;return Oe=v,k}function Pr(r,a,e,i){var v,t,f,_=Oe;Oe+=24;var s=_,n=_+4,o=_+8,l=_+16,b=_+20;0==(0|a)&&Xa(0|He.__str72242,829,0|He.___func___demangle_datatype,0|He.__str121291);var f=(a+4|0)>>2;Se[f]=0;var t=(0|a)>>2;Se[t]=0;var v=(r+12|0)>>2,k=Me[v],u=k+1|0;Se[v]=u;var c=Ae[k],h=c<<24>>24;do if(95==(0|h)){Se[v]=k+2|0;var d=Ae[u],w=Zr(d);Se[t]=w}else if(67==(0|h)||68==(0|h)||69==(0|h)||70==(0|h)||71==(0|h)||72==(0|h)||73==(0|h)||74==(0|h)||75==(0|h)||77==(0|h)||78==(0|h)||79==(0|h)||88==(0|h)||90==(0|h)){var p=Qr(c);Se[t]=p}else if(84==(0|h)||85==(0|h)||86==(0|h)||89==(0|h)){var E=qr(r);if(0==(0|E))break;var A=0==(32768&Se[r>>2]|0);do if(A)if(84==(0|h))var g=0|He.__str122292;else if(85==(0|h))var g=0|He.__str123293;else if(86==(0|h))var g=0|He.__str124294;else{if(89!=(0|h)){var g=0;break}var g=0|He.__str125295}else var g=0;while(0);var g,y=Dr(r,0|He.__str170,(ne=Oe,Oe+=8,Se[ne>>2]=g,Se[ne+4>>2]=E,ne));Se[t]=y}else if(63==(0|h))if(0==(0|i))$r(a,r,e,63,0);else{var m=Lr(r);if(0==(0|m))break;var S=Dr(r,0|He.__str126296,(ne=Oe,Oe+=4,Se[ne>>2]=m,ne));Se[t]=S}else if(65==(0|h)||66==(0|h))$r(a,r,e,c,i);else if(81==(0|h)||82==(0|h)||83==(0|h)){var M=0==(0|i)?80:c;$r(a,r,e,M,i)}else if(80==(0|h))if(((Ae[u]<<24>>24)-48|0)>>>0<10){var C=k+2|0;if(Se[v]=C,Ae[u]<<24>>24!=54)break;var R=r+44|0,T=Se[R>>2];Se[v]=k+3|0;var O=Ae[C],N=Se[r>>2]&-17,I=Ur(O,s,n,N);if(0==(0|I))break;var P=Pr(r,o,e,0);if(0==(0|P))break;var D=Xr(r,e,1,40,41);if(0==(0|D))break;Se[R>>2]=T;var L=Se[o>>2],F=Se[o+4>>2],X=Se[s>>2],j=Dr(r,0|He.__str127297,(ne=Oe,Oe+=12,Se[ne>>2]=L,Se[ne+4>>2]=F,Se[ne+8>>2]=X,ne));Se[t]=j;var U=Dr(r,0|He.__str128298,(ne=Oe,Oe+=4,Se[ne>>2]=D,ne));Se[f]=U}else $r(a,r,e,80,i);else if(87==(0|h)){if(Ae[u]<<24>>24!=52)break;Se[v]=k+2|0;var x=qr(r);if(0==(0|x))break;if(0==(32768&Se[r>>2]|0)){var z=Dr(r,0|He.__str129299,(ne=Oe,Oe+=4,Se[ne>>2]=x,ne));Se[t]=z}else Se[t]=x}else if(48==(0|h)||49==(0|h)||50==(0|h)||51==(0|h)||52==(0|h)||53==(0|h)||54==(0|h)||55==(0|h)||56==(0|h)||57==(0|h)){var V=h<<1,B=V-96|0,H=Yr(e,B);Se[t]=H;var K=V-95|0,Y=Yr(e,K);Se[f]=Y}else if(36==(0|h)){var G=k+2|0;Se[v]=G;var W=Ae[u]<<24>>24;if(48==(0|W)){var Z=Lr(r);Se[t]=Z}else if(68==(0|W)){var Q=Lr(r);if(0==(0|Q))break;var q=Dr(r,0|He.__str130300,(ne=Oe,Oe+=4,Se[ne>>2]=Q,ne));Se[t]=q}else if(70==(0|W)){var $=Lr(r);if(0==(0|$))break;var J=Lr(r);if(0==(0|J))break;var rr=Dr(r,0|He.__str131301,(ne=Oe,Oe+=8,Se[ne>>2]=$,Se[ne+4>>2]=J,ne));Se[t]=rr}else if(71==(0|W)){var ar=Lr(r);if(0==(0|ar))break;var er=Lr(r);if(0==(0|er))break;var ir=Lr(r);if(0==(0|ir))break;var vr=Dr(r,0|He.__str132302,(ne=Oe,Oe+=12,Se[ne>>2]=ar,Se[ne+4>>2]=er,Se[ne+8>>2]=ir,ne));Se[t]=vr}else if(81==(0|W)){var tr=Lr(r);if(0==(0|tr))break;var fr=Dr(r,0|He.__str133303,(ne=Oe,Oe+=4,Se[ne>>2]=tr,ne));Se[t]=fr}else{if(36!=(0|W))break;if(Ae[G]<<24>>24!=67)break;Se[v]=k+3|0;var _r=xr(r,l,b);if(0==(0|_r))break;var sr=Pr(r,a,e,i);if(0==(0|sr))break;var nr=Se[t],or=Se[l>>2],lr=Dr(r,0|He.__str83253,(ne=Oe,Oe+=8,Se[ne>>2]=nr,Se[ne+4>>2]=or,ne));Se[t]=lr}}while(0);var br=0!=(0|Se[t])&1;return Oe=_,br}function Dr(r,a){var e,i=Oe;Oe+=4;var v=i,e=v>>2,t=v;Se[t>>2]=arguments[Dr.length];var f=1,_=0;r:for(;;){var _,f,s=Ae[a+_|0];do{if(s<<24>>24==0)break r;if(s<<24>>24==37){var n=_+1|0,o=Ae[a+n|0]<<24>>24;if(115==(0|o)){var l=Se[e],b=l,k=l+4|0;Se[e]=k;var u=Se[b>>2];if(0==(0|u)){var c=f,h=n;break}var d=Ca(u),c=d+f|0,h=n;break}if(99==(0|o)){var w=Se[e]+4|0;Se[e]=w;var c=f+1|0,h=n;break}if(37==(0|o))var p=n;else var p=_;var p,c=f+1|0,h=p}else var c=f+1|0,h=_}while(0);var h,c,f=c,_=h+1|0}var E=Wr(r,f);if(0==(0|E))var A=0;else{Se[t>>2]=arguments[Dr.length];var g=E,y=0;r:for(;;){var y,g,m=Ae[a+y|0];do{if(m<<24>>24==0)break r;if(m<<24>>24==37){var S=y+1|0,M=Ae[a+S|0]<<24>>24;if(115==(0|M)){var C=Se[e],R=C,T=C+4|0;Se[e]=T;var O=Se[R>>2];if(0==(0|O)){var N=g,I=S;break}var P=Ca(O);Pa(g,O,P,1);var N=g+P|0,I=S;break}if(99==(0|M)){var D=Se[e],L=D,F=D+4|0;Se[e]=F,Ae[g]=255&Se[L>>2];var N=g+1|0,I=S;break}if(37==(0|M))var X=S;else var X=y;var X;Ae[g]=37;var N=g+1|0,I=X}else{Ae[g]=m;var N=g+1|0,I=y}}while(0);var I,N,g=N,y=I+1|0}Ae[g]=0;var A=E}var A;return Oe=i,A}function Lr(r){var a,a=(r+12|0)>>2,e=Se[a],i=Ae[e];if(i<<24>>24==63){var v=e+1|0;Se[a]=v;var t=1,f=v,_=Ae[v]}else var t=0,f=e,_=i;var _,f,t,s=(_-48&255&255)<9;do if(s){var n=Wr(r,3),o=0!=(0|t);o&&(Ae[n]=45);var l=Ae[Se[a]]+1&255;Ae[n+t|0]=l;var b=o?2:1;\nAe[n+b|0]=0;var k=Se[a]+1|0;Se[a]=k;var u=n}else if(_<<24>>24==57){var c=Wr(r,4),h=0!=(0|t);h&&(Ae[c]=45),Ae[c+t|0]=49;var d=h?2:1;Ae[c+d|0]=48;var w=h?3:2;Ae[c+w|0]=0;var p=Se[a]+1|0;Se[a]=p;var u=c}else{if((_-65&255&255)>=16){var u=0;break}for(var E=0,A=f;;){var A,E,g=A+1|0;Se[a]=g;var y=(Ae[A]<<24>>24)+((E<<4)-65)|0,m=ge[g];if((m-65&255&255)>=16)break;var E=y,A=g}if(m<<24>>24!=64){var u=0;break}var S=Wr(r,17),M=0!=(0|t)?0|He.__str119289:0|ii,C=(za(S,0|He.__str118288,(ne=Oe,Oe+=8,Se[ne>>2]=M,Se[ne+4>>2]=y,ne)),Se[a]+1|0);Se[a]=C;var u=S}while(0);var u;return u}function Fr(r,a,e,i){var v,t,f,_;0==(0|a)&&Xa(0|He.__str72242,212,0|He.___func___str_array_push,0|He.__str115285),0==(0|i)&&Xa(0|He.__str72242,213,0|He.___func___str_array_push,0|He.__str116286);var f=(i+12|0)>>2,s=Me[f],n=0==(0|s);do{if(n){Se[f]=32;var o=Wr(r,128);if(0==(0|o)){var l=0;_=17;break}Se[i+16>>2]=o,_=11;break}if(Me[i+8>>2]>>>0>>0){_=11;break}var b=s<<3,k=Wr(r,b);if(0==(0|k)){var l=0;_=17;break}var u=k,c=i+16|0,h=Se[c>>2],d=Se[f]<<2;Pa(k,h,d,1);var w=Se[f]<<1;Se[f]=w,Se[c>>2]=u,_=11;break}while(0);do if(11==_){if((0|e)==-1)var p=Ca(a),E=p;else var E=e;var E,A=ja(a),g=E+1|0,y=Wr(r,g),t=(i+4|0)>>2,v=(i+16|0)>>2,m=(Se[t]<<2)+Se[v]|0;Se[m>>2]=y;var S=Se[Se[v]+(Se[t]<<2)>>2];if(0==(0|S)){Xa(0|He.__str72242,233,0|He.___func___str_array_push,0|He.__str117287);var M=Se[Se[v]+(Se[t]<<2)>>2]}else var M=S;var M;Pa(M,A,E,1),va(A),Ae[Se[Se[v]+(Se[t]<<2)>>2]+g|0]=0;var C=Se[t]+1|0;Se[t]=C;var R=i+8|0;if(C>>>0>2]>>>0){var l=1;break}Se[R>>2]=C;var l=1}while(0);var l;return l}function Xr(r,a,e,i,v){var t,f,_=Oe;Oe+=28;var s,n=_,o=_+8;Cr(o);var f=(r+12|0)>>2,l=0==(0|e),t=(0|n)>>2,b=n+4|0;r:do if(l)for(;;){var k=Se[f],u=Ae[k];if(u<<24>>24==0){s=12;break r}if(u<<24>>24==64){var c=k;s=7;break r}var h=Pr(r,n,a,1);if(0==(0|h)){var d=0;s=25;break r}var w=Se[t],p=Se[b>>2],E=Dr(r,0|He.__str170,(ne=Oe,Oe+=8,Se[ne>>2]=w,Se[ne+4>>2]=p,ne)),A=Fr(r,E,-1,o);if(0==(0|A)){var d=0;s=25;break r}var g=Se[t],y=Da(g,0|He.__str110280);if(0==(0|y)){s=12;break r}}else for(;;){var m=Se[f],S=Ae[m];if(S<<24>>24==0){s=12;break r}if(S<<24>>24==64){var c=m;s=7;break r}var M=Pr(r,n,a,1);if(0==(0|M)){var d=0;s=25;break r}var C=Se[t],R=Da(C,0|He.__str84254);if(0==(0|R)){s=13;break r}var T=Se[b>>2],O=Dr(r,0|He.__str170,(ne=Oe,Oe+=8,Se[ne>>2]=C,Se[ne+4>>2]=T,ne)),N=Fr(r,O,-1,o);if(0==(0|N)){var d=0;s=25;break r}var I=Se[t],P=Da(I,0|He.__str110280);if(0==(0|P)){s=12;break r}}while(0);do if(7==s){var c;Se[f]=c+1|0,s=12;break}while(0);do if(12==s){if(l){s=14;break}s=13;break}while(0);do if(13==s){var D=Se[f],L=D+1|0;if(Se[f]=L,Ae[D]<<24>>24==90){s=14;break}var d=0;s=25;break}while(0);r:do if(14==s){var F=o+4|0,X=Me[F>>2];do{if(0!=(0|X)){if(1==(0|X)){var j=o+16|0,U=Se[Se[j>>2]>>2],x=Da(U,0|He.__str84254);if(0==(0|x)){s=17;break}var z=j;s=20;break}var V=o+16|0;if(X>>>0<=1){var z=V;s=20;break}for(var B=0,H=1;;){var H,B,K=Se[Se[V>>2]+(H<<2)>>2],Y=Dr(r,0|He.__str112282,(ne=Oe,Oe+=8,Se[ne>>2]=B,Se[ne+4>>2]=K,ne)),G=H+1|0;if(G>>>0>=Me[F>>2]>>>0)break;var B=Y,H=G}if(0==(0|Y)){var z=V;s=20;break}var W=Y,Z=Y;s=21;break}s=17}while(0);if(17==s){var Q=i<<24>>24,q=v<<24>>24,$=Dr(r,0|He.__str111281,(ne=Oe,Oe+=8,Se[ne>>2]=Q,Se[ne+4>>2]=q,ne)),d=$;break}if(20==s)var z,W=Se[Se[z>>2]>>2],Z=0;var Z,W,J=v<<24>>24,rr=v<<24>>24==62;do if(rr){var ar=Ca(W);if(Ae[W+(ar-1)|0]<<24>>24!=62)break;var er=i<<24>>24,ir=Se[Se[o+16>>2]>>2],vr=Dr(r,0|He.__str113283,(ne=Oe,Oe+=16,Se[ne>>2]=er,Se[ne+4>>2]=ir,Se[ne+8>>2]=Z,Se[ne+12>>2]=J,ne)),d=vr;break r}while(0);var tr=i<<24>>24,fr=Se[Se[o+16>>2]>>2],_r=Dr(r,0|He.__str114284,(ne=Oe,Oe+=16,Se[ne>>2]=tr,Se[ne+4>>2]=fr,Se[ne+8>>2]=Z,Se[ne+12>>2]=J,ne)),d=_r}while(0);var d;return Oe=_,d}function jr(r){var a,e=Oe;Oe+=20;var i=e,v=r+24|0,t=Se[v>>2],a=(r+20|0)>>2,f=Se[a],_=r+44|0,s=Se[_>>2];Se[a]=t;var n=Kr(r);if(0==(0|n))var o=0;else{Cr(i);var l=Xr(r,i,0,60,62);if(0==(0|l))var b=n;else var k=Dr(r,0|He.__str170,(ne=Oe,Oe+=8,Se[ne>>2]=n,Se[ne+4>>2]=l,ne)),b=k;var b;Se[v>>2]=t,Se[a]=f,Se[_>>2]=s;var o=b}var o;return Oe=e,o}function Ur(r,a,e,i){var v,t=a>>2;Se[e>>2]=0,Se[t]=0;var f=0==(18&i|0);do{if(f){var _=r<<24>>24,s=1==((_-65)%2|0);if(0==(1&i|0)){if(s?Se[e>>2]=0|He.__str95265:v=14,65==(0|_)||66==(0|_)){Se[t]=0|He.__str96266,v=21;break}if(67==(0|_)||68==(0|_)){Se[t]=0|He.__str97267,v=21;break}if(69==(0|_)||70==(0|_)){Se[t]=0|He.__str98268,v=21;break}if(71==(0|_)||72==(0|_)){Se[t]=0|He.__str99269,v=21;break}if(73==(0|_)||74==(0|_)){Se[t]=0|He.__str100270,v=21;break}if(75==(0|_)||76==(0|_)){v=21;break}if(77==(0|_)){Se[t]=0|He.__str101271,v=21;break}var n=0;v=22;break}if(s?Se[e>>2]=0|He.__str88258:v=5,65==(0|_)||66==(0|_)){Se[t]=0|He.__str89259,v=21;break}if(67==(0|_)||68==(0|_)){Se[t]=0|He.__str90260,v=21;break}if(69==(0|_)||70==(0|_)){Se[t]=0|He.__str91261,v=21;break}if(71==(0|_)||72==(0|_)){Se[t]=0|He.__str92262,v=21;break}if(73==(0|_)||74==(0|_)){Se[t]=0|He.__str93263,v=21;break}if(75==(0|_)||76==(0|_)){v=21;break}if(77==(0|_)){Se[t]=0|He.__str94264,v=21;break}var n=0;v=22;break}v=21}while(0);if(21==v)var n=1;var n;return n}function xr(r,a,e){var i;Se[e>>2]=0;var i=(r+12|0)>>2,v=Se[i];if(Ae[v]<<24>>24==69){Se[e>>2]=0|He.__str102272;var t=Se[i]+1|0;Se[i]=t;var f=t}else var f=v;var f;Se[i]=f+1|0;var _=Ae[f]<<24>>24;if(65==(0|_)){Se[a>>2]=0;var s=1}else if(66==(0|_)){Se[a>>2]=0|He.__str103273;var s=1}else if(67==(0|_)){Se[a>>2]=0|He.__str104274;var s=1}else if(68==(0|_)){Se[a>>2]=0|He.__str105275;var s=1}else var s=0;var s;return s}function zr(r){var a,e,a=(r+12|0)>>2,i=r+40|0,v=r+20|0,t=0|i,f=r+44|0,_=r+48|0,s=r+52|0,n=r+56|0,o=r+20|0,l=r+24|0,b=r+16|0,k=0;r:for(;;){var k,u=Se[a],c=Ae[u];if(c<<24>>24==64){var h=u+1|0;Se[a]=h;var d=1;break}var w=c<<24>>24;do{if(0==(0|w)){var d=0;break r}if(48==(0|w)||49==(0|w)||50==(0|w)||51==(0|w)||52==(0|w)||53==(0|w)||54==(0|w)||55==(0|w)||56==(0|w)||57==(0|w)){var p=u+1|0;Se[a]=p;var E=(Ae[u]<<24>>24)-48|0,A=Yr(v,E),g=A;e=14;break}if(63==(0|w)){var y=u+1|0;Se[a]=y;var m=Ae[y]<<24>>24;if(36==(0|m)){var S=u+2|0;Se[a]=S;var M=jr(r);if(0==(0|M)){var d=0;break r}var C=Fr(r,M,-1,v);if(0==(0|C)){var d=0;break r}var R=M;e=15;break}if(63==(0|m)){var T=Se[t>>2],O=Se[f>>2],N=Se[_>>2],I=Se[s>>2],P=Se[n>>2],D=Se[o>>2],L=Se[l>>2];Cr(i);var F=Ir(r);if(0==(0|F))var X=k;else var j=Se[b>>2],U=Dr(r,0|He.__str109279,(ne=Oe,Oe+=4,Se[ne>>2]=j,ne)),X=U;var X;Se[o>>2]=D,Se[l>>2]=L,Se[t>>2]=T,Se[f>>2]=O,Se[_>>2]=N,Se[s>>2]=I,Se[n>>2]=P;var g=X;e=14;break}var x=Lr(r);if(0==(0|x)){var d=0;break r}var z=Dr(r,0|He.__str109279,(ne=Oe,Oe+=4,Se[ne>>2]=x,ne)),g=z;e=14;break}var V=Kr(r),g=V;e=14;break}while(0);if(14==e){var g;if(0==(0|g)){var d=0;break}var R=g}var R,B=Fr(r,R,-1,i);if(0==(0|B)){var d=0;break}var k=R}var d;return d}function Vr(r){var a,e,i,v=Oe;Oe+=36;var t,f=v,i=f>>2,_=v+4,s=v+8,e=s>>2,n=v+16;Se[i]=0;var o=0|r,l=Se[o>>2],b=0==(128&l|0),k=r+12|0;do if(b){var u=Ae[Se[k>>2]]<<24>>24;if(48==(0|u))var c=0|He.__str76246,h=k,a=h>>2;else if(49==(0|u))var c=0|He.__str77247,h=k,a=h>>2;else{if(50!=(0|u)){var c=0,h=k,a=h>>2;break}var c=0|He.__str78248,h=k,a=h>>2}}else var c=0,h=k,a=h>>2;while(0);var h,c,d=0==(512&l|0);do if(d){if((Ae[Se[a]]-48&255&255)>=3){var w=0;break}var w=0|He.__str79249}else var w=0;while(0);var w,p=Gr(r,0),E=Se[a],A=E+1|0;Se[a]=A;var g=Ae[E]<<24>>24;do{if(48==(0|g)||49==(0|g)||50==(0|g)||51==(0|g)||52==(0|g)||53==(0|g)){var y=r+44|0,m=Se[y>>2];Cr(n);var S=Pr(r,s,n,0);if(0==(0|S)){var M=0;t=28;break}var C=xr(r,f,_);if(0==(0|C)){var M=0;t=28;break}var R=Se[i],T=0==(0|R),O=Se[_>>2];do if(T)Se[i]=O;else{if(0==(0|O))break;var N=Dr(r,0|He.__str83253,(ne=Oe,Oe+=8,Se[ne>>2]=R,Se[ne+4>>2]=O,ne));Se[i]=N}while(0);Se[y>>2]=m,t=22;break}if(54==(0|g)||55==(0|g)){var I=s+4|0;Se[I>>2]=0,Se[e]=0;var P=xr(r,f,_);if(0==(0|P)){var M=0;t=28;break}if(Ae[Se[a]]<<24>>24==64){t=22;break}var D=qr(r);if(0==(0|D)){var M=0;t=28;break}var L=Dr(r,0|He.__str107277,(ne=Oe,Oe+=4,Se[ne>>2]=D,ne));Se[I>>2]=L,t=22;break}if(56==(0|g)||57==(0|g)){Se[e+1]=0,Se[e]=0,Se[i]=0,t=22;break}var M=0;t=28}while(0);if(22==t){var F=0==(4096&Se[o>>2]|0);do{if(F){var X=Se[e],j=Se[i];if(0==(0|j)){var U=X;t=26;break}var x=0!=(0|X)?0|He.__str87257:0,z=0|He.__str87257,V=j,B=x,H=X;t=27;break}Se[i]=0,Se[e+1]=0,Se[e]=0;var U=0;t=26;break}while(0);if(26==t)var U,K=0!=(0|U)?0|He.__str87257:0,z=K,V=0,B=0,H=U;var H,B,V,z,Y=Se[e+1],G=Dr(r,0|He.__str108278,(ne=Oe,Oe+=32,Se[ne>>2]=c,Se[ne+4>>2]=w,Se[ne+8>>2]=H,Se[ne+12>>2]=B,Se[ne+16>>2]=V,Se[ne+20>>2]=z,Se[ne+24>>2]=p,Se[ne+28>>2]=Y,ne));Se[r+16>>2]=G;var M=1}var M;return Oe=v,M}function Br(r,a){var e,i,v,t,f=Oe;Oe+=44;var _,s=f,t=s>>2,n=f+8,o=f+12,v=o>>2,l=f+16,b=f+20,k=f+40;Se[v]=0;var i=(r+12|0)>>2,u=Se[i],c=u+1|0;Se[i]=c;var h=ge[u],d=h<<24>>24,w=(h-65&255&255)>25;r:do if(w)var p=0;else{var e=(0|r)>>2,E=Me[e],A=0==(128&E|0),g=d-65|0;do if(A){var y=g/8|0;if(0==(0|y))var m=0|He.__str76246,S=g;else if(1==(0|y))var m=0|He.__str77247,S=g;else{if(2!=(0|y)){var m=0,S=g;break}var m=0|He.__str78248,S=g}}else var m=0,S=g;while(0);var S,m,M=0==(512&E|0)&h<<24>>24<89,C=(0|S)%8;do if(M)if(2==(0|C)||3==(0|C))var R=m,T=0|He.__str79249;else if(4==(0|C)||5==(0|C))var R=m,T=0|He.__str80250;else{if(6!=(0|C)&&7!=(0|C)){var R=m,T=0;break}var O=Dr(r,0|He.__str81251,(ne=Oe,Oe+=4,Se[ne>>2]=m,ne)),R=O,T=0|He.__str80250}else var R=m,T=0;while(0);var T,R,N=Gr(r,0),I=6==(0|C);do{if(!I){if(7==((d-56)%8|0)){_=14;break}var P=N;_=15;break}_=14}while(0);if(14==_)var D=Lr(r),L=Dr(r,0|He.__str82252,(ne=Oe,Oe+=8,Se[ne>>2]=N,Se[ne+4>>2]=D,ne)),P=L;var P,F=h<<24>>24>88;do if(F)var X=0;else{if((C-2|0)>>>0<2){var X=0;break}var j=xr(r,o,k);if(0==(0|j)){var p=0;break r}var U=Me[v],x=Se[k>>2];if(0==(0|U)&0==(0|x)){var X=0;break}var z=Dr(r,0|He.__str83253,(ne=Oe,Oe+=8,Se[ne>>2]=U,Se[ne+4>>2]=x,ne));Se[v]=z;var X=z}while(0);var X,V=Se[i],B=V+1|0;Se[i]=B;var H=Ae[V],K=Se[e],Y=Ur(H,n,l,K);if(0==(0|Y)){var p=0;break}Cr(b);var G=Se[i];if(Ae[G]<<24>>24==64){Se[t]=0|He.__str84254,Se[t+1]=0;var W=G+1|0;Se[i]=W}else{var Z=Pr(r,s,b,0);if(0==(0|Z)){var p=0;break}}if(0!=(4&Se[e]|0)&&(Se[t+1]=0,Se[t]=0),0==(0|a))var Q=P;else{var q=0|s,$=Se[q>>2],J=s+4|0,rr=Se[J>>2],ar=Dr(r,0|He.__str85255,(ne=Oe,Oe+=12,Se[ne>>2]=P,Se[ne+4>>2]=$,Se[ne+8>>2]=rr,ne));Se[J>>2]=0,Se[q>>2]=0;var Q=ar}var Q,er=r+44|0,ir=Se[er>>2],vr=Xr(r,b,1,40,41);if(0==(0|vr)){var p=0;break}if(0==(4096&Se[e]|0))var tr=vr,fr=X;else{Se[v]=0;var tr=0,fr=0}var fr,tr;Se[er>>2]=ir;var _r=Se[t],sr=Se[t+1];if(0==(0|_r))var nr=0;else var or=0!=(0|sr)?0:0|He.__str87257,nr=or;var nr,lr=Se[n>>2],br=0!=(0|lr)?0|He.__str87257:0,kr=Se[l>>2],ur=Dr(r,0|He.__str86256,(ne=Oe,Oe+=44,Se[ne>>2]=R,Se[ne+4>>2]=T,Se[ne+8>>2]=_r,Se[ne+12>>2]=nr,Se[ne+16>>2]=lr,Se[ne+20>>2]=br,Se[ne+24>>2]=kr,Se[ne+28>>2]=Q,Se[ne+32>>2]=tr,Se[ne+36>>2]=fr,Se[ne+40>>2]=sr,ne));Se[r+16>>2]=ur;var p=1}while(0);var p;return Oe=f,p}function Hr(r){var a,a=(r+12|0)>>2,e=Se[a];if(Ae[e]<<24>>24==36)var i=e;else{Xa(0|He.__str72242,1252,0|He.___func___handle_template,0|He.__str74244);var i=Se[a]}var i;Se[a]=i+1|0;var v=Kr(r),t=0==(0|v);do if(t)var f=0;else{var _=Xr(r,0,0,60,62);if(0==(0|_)){var f=0;break}var s=Dr(r,0|He.__str170,(ne=Oe,Oe+=8,Se[ne>>2]=v,Se[ne+4>>2]=_,ne));Se[r+16>>2]=s;var f=1}while(0);var f;return f}function Kr(r){for(var a,a=(r+12|0)>>2,e=Me[a],i=e,v=Ae[e];;){var v,i;if(!((v-65&255&255)<26|(v-97&255&255)<26|(v-48&255&255)<10)&&v<<24>>24!=95&&v<<24>>24!=36){var t=0;break}var f=i+1|0;Se[a]=f;var _=ge[f];if(_<<24>>24==64){Se[a]=i+2|0;var s=f-e|0,n=r+20|0,o=Fr(r,e,s,n);if(0==(0|o)){var t=0;break}var l=Se[r+24>>2]-1-Se[n>>2]|0,b=Yr(n,l),t=b;break}var i=f,v=_}var t;return t}function Yr(r,a){0==(0|r)&&Xa(0|He.__str72242,263,0|He.___func___str_array_get_ref,0|He.__str75245);var e=Se[r>>2]+a|0;if(e>>>0>2]>>>0)var i=Se[Se[r+16>>2]+(e<<2)>>2];else var i=0;var i;return i}function Gr(r,a){var e,e=(r+44|0)>>2,i=Me[e];if(i>>>0>a>>>0){for(var v=r+56|0,t=a,f=0,_=Se[v>>2],s=i;;){var s,_,f,t,n=Me[_+(t<<2)>>2];if(0==(0|n)){Xa(0|He.__str72242,680,0|He.___func___get_class_string,0|He.__str106276);var o=Se[v>>2],l=o,b=Se[o+(t<<2)>>2],k=Se[e]}else var l=_,b=n,k=s;var k,b,l,u=Ca(b),c=u+(f+2)|0,h=t+1|0;if(h>>>0>=k>>>0)break;var t=h,f=c,_=l,s=k}var d=c-1|0}else var d=-1;var d,w=Wr(r,d);if(0==(0|w))var p=0;else{var E=Se[e]-1|0,A=(0|E)<(0|a);r:do if(A)var g=0;else for(var y=r+56|0,m=0,S=E;;){var S,m,M=Se[Se[y>>2]+(S<<2)>>2],C=Ca(M),R=w+m|0;Pa(R,M,C,1);var T=C+m|0;if((0|S)>(0|a)){var O=T+1|0;Ae[w+T|0]=58;var N=T+2|0;Ae[w+O|0]=58;var I=N}else var I=T;var I,P=S-1|0;if((0|P)<(0|a)){var g=I;break r}var m=I,S=P}while(0);var g;Ae[w+g|0]=0;var p=w}var p;return p}function Wr(r,a){var e,i=a>>>0>1020;do if(i){var v=Se[r+4>>2],t=a+4|0,f=pe[v](t);if(0==(0|f)){var _=0;break}var s=r+60|0,n=Se[s>>2],o=f;Se[o>>2]=n,Se[s>>2]=f,Se[r+64>>2]=0;var _=f+4|0}else{var e=(r+64|0)>>2,l=Me[e];if(l>>>0>>0){var b=Se[r+4>>2],k=pe[b](1024);if(0==(0|k)){var _=0;break}var u=r+60|0,c=Se[u>>2],h=k;Se[h>>2]=c,Se[u>>2]=k,Se[e]=1020;var d=1020,w=k}else var d=l,w=Se[r+60>>2];var w,d;Se[e]=d-a|0;var _=w+(1024-d)|0}while(0);var _;return _}function Zr(r){var a=r<<24>>24;if(68==(0|a))var e=0|He.__str157327;else if(69==(0|a))var e=0|He.__str158328;else if(70==(0|a))var e=0|He.__str159329;else if(71==(0|a))var e=0|He.__str160330;else if(72==(0|a))var e=0|He.__str161331;else if(73==(0|a))var e=0|He.__str162332;else if(74==(0|a))var e=0|He.__str163333;else if(75==(0|a))var e=0|He.__str164334;else if(76==(0|a))var e=0|He.__str165335;else if(77==(0|a))var e=0|He.__str166336;else if(78==(0|a))var e=0|He.__str167337;else if(87==(0|a))var e=0|He.__str168338;else var e=0;var e;return e}function Qr(r){var a=r<<24>>24;if(67==(0|a))var e=0|He.__str145315;else if(68==(0|a))var e=0|He.__str146316;else if(69==(0|a))var e=0|He.__str147317;else if(70==(0|a))var e=0|He.__str148318;else if(71==(0|a))var e=0|He.__str149319;else if(72==(0|a))var e=0|He.__str150320;else if(73==(0|a))var e=0|He.__str151321;else if(74==(0|a))var e=0|He.__str152322;else if(75==(0|a))var e=0|He.__str153323;else if(77==(0|a))var e=0|He.__str154324;else if(78==(0|a))var e=0|He.__str155325;else if(79==(0|a))var e=0|He.__str156326;else if(88==(0|a))var e=0|He.__str84254;else if(90==(0|a))var e=0|He.__str110280;else var e=0;var e;return e}function qr(r){var a=r+44|0,e=Se[a>>2],i=zr(r);if(0==(0|i))var v=0;else var t=Gr(r,e),v=t;var v;return Se[a>>2]=e,v}function $r(r,a,e,i,v){var t,f,_,s=Oe;Oe+=16;var n,o=s,_=o>>2,l=s+4,b=s+8,f=b>>2;Se[l>>2]=0|ii;var t=(a+12|0)>>2,k=Se[t];if(Ae[k]<<24>>24==69){Se[l>>2]=0|He.__str134304;var u=k+1|0;Se[t]=u;var c=0|He.__str134304}else var c=0|ii;var c,h=i<<24>>24;do{if(65==(0|h)){var d=Dr(a,0|He.__str135305,(ne=Oe,Oe+=4,Se[ne>>2]=c,ne)),w=d;n=10;break}if(66==(0|h)){var p=Dr(a,0|He.__str136306,(ne=Oe,Oe+=4,Se[ne>>2]=c,ne)),w=p;n=10;break}if(80==(0|h)){var E=Dr(a,0|He.__str137307,(ne=Oe,Oe+=4,Se[ne>>2]=c,ne)),w=E;n=10;break}if(81==(0|h)){var A=Dr(a,0|He.__str138308,(ne=Oe,Oe+=4,Se[ne>>2]=c,ne)),w=A;n=10;break}if(82==(0|h)){var g=Dr(a,0|He.__str139309,(ne=Oe,Oe+=4,Se[ne>>2]=c,ne)),w=g;n=10;break}if(83==(0|h)){var y=Dr(a,0|He.__str140310,(ne=Oe,Oe+=4,Se[ne>>2]=c,ne)),w=y;n=10;break}if(63==(0|h)){var w=0|ii;n=10}else n=31}while(0);r:do if(10==n){var w,m=xr(a,o,l);if(0==(0|m))break;var S=a+44|0,M=Se[S>>2],C=Se[t],R=Ae[C]<<24>>24==89;a:do if(R){var T=C+1|0;Se[t]=T;var O=Lr(a);if(0==(0|O))break r;var N=Ha(O),I=Ae[w]<<24>>24==32,P=Se[_],D=0==(0|P);do{if(I){if(!D){n=17;break}var L=w+1|0;n=18;break}if(D){var L=w;n=18;break}n=17;break}while(0);if(17==n){var F=Dr(a,0|He.__str141311,(ne=Oe,Oe+=8,Se[ne>>2]=P,Se[ne+4>>2]=w,ne));Se[_]=0;var X=F}else if(18==n)var L,j=Dr(a,0|He.__str142312,(ne=Oe,Oe+=4,Se[ne>>2]=L,ne)),X=j;var X;if(0==(0|N)){var U=X;break}for(var x=X,z=N;;){var z,x,V=z-1|0,B=Lr(a),H=Dr(a,0|He.__str143313,(ne=Oe,Oe+=8,Se[ne>>2]=x,Se[ne+4>>2]=B,ne));if(0==(0|V)){var U=H;break a}var x=H,z=V}}else var U=w;while(0);var U,K=Pr(a,b,e,0);if(0==(0|K))break;var Y=Se[_];if(0==(0|Y)){var G=0==(0|v);do if(G){if(Ae[U]<<24>>24==0){var W=U;break}var Z=U+1|0;if(Ae[Z]<<24>>24!=42){var W=U;break}var Q=Se[f],q=Ca(Q);if(Ae[Q+(q-1)|0]<<24>>24!=42){var W=U;break}var W=Z}else var W=U;while(0);var W,$=Se[f],J=Dr(a,0|He.__str170,(ne=Oe,Oe+=8,Se[ne>>2]=$,Se[ne+4>>2]=W,ne));Se[r>>2]=J}else{var rr=Se[f],ar=Dr(a,0|He.__str144314,(ne=Oe,Oe+=12,Se[ne>>2]=rr,Se[ne+4>>2]=Y,Se[ne+8>>2]=U,ne));Se[r>>2]=ar}var er=Se[f+1];Se[r+4>>2]=er,Se[S>>2]=M}while(0);Oe=s}function Jr(r){var a,e=r>>>0<245;do{if(e){if(r>>>0<11)var i=16;else var i=r+11&-8;var i,v=i>>>3,t=Me[vi>>2],f=t>>>(v>>>0);if(0!=(3&f|0)){var _=(1&f^1)+v|0,s=_<<1,n=(s<<2)+vi+40|0,o=(s+2<<2)+vi+40|0,l=Me[o>>2],b=l+8|0,k=Me[b>>2];if((0|n)==(0|k))Se[vi>>2]=t&(1<<_^-1);else{if(k>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[o>>2]=k,Se[k+12>>2]=n}var u=_<<3;Se[l+4>>2]=3|u;var c=l+(4|u)|0,h=1|Se[c>>2];Se[c>>2]=h;var d=b;a=38;break}if(i>>>0<=Me[vi+8>>2]>>>0){var w=i;a=30;break}if(0!=(0|f)){var p=2<>>12&16,y=A>>>(g>>>0),m=y>>>5&8,S=y>>>(m>>>0),M=S>>>2&4,C=S>>>(M>>>0),R=C>>>1&2,T=C>>>(R>>>0),O=T>>>1&1,N=(m|g|M|R|O)+(T>>>(O>>>0))|0,I=N<<1,P=(I<<2)+vi+40|0,D=(I+2<<2)+vi+40|0,L=Me[D>>2],F=L+8|0,X=Me[F>>2];if((0|P)==(0|X))Se[vi>>2]=t&(1<>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[D>>2]=X,Se[X+12>>2]=P}var j=N<<3,U=j-i|0;Se[L+4>>2]=3|i;var x=L,z=x+i|0;Se[x+(4|i)>>2]=1|U,Se[x+j>>2]=U;var V=Me[vi+8>>2];if(0!=(0|V)){var B=Se[vi+20>>2],H=V>>>2&1073741822,K=(H<<2)+vi+40|0,Y=Me[vi>>2],G=1<<(V>>>3),W=0==(Y&G|0);do{if(!W){var Z=(H+2<<2)+vi+40|0,Q=Me[Z>>2];if(Q>>>0>=Me[vi+16>>2]>>>0){var q=Q,$=Z;break}throw Ka(),"Reached an unreachable!"}Se[vi>>2]=Y|G;var q=K,$=(H+2<<2)+vi+40|0}while(0);var $,q;Se[$>>2]=B,Se[q+12>>2]=B;var J=B+8|0;Se[J>>2]=q;var rr=B+12|0;Se[rr>>2]=K}Se[vi+8>>2]=U,Se[vi+20>>2]=z;var d=F;a=38;break}if(0==(0|Se[vi+4>>2])){var w=i;a=30;break}var ar=ra(i);if(0==(0|ar)){var w=i;a=30;break}var d=ar;a=38;break}if(r>>>0>4294967231){var w=-1;a=30;break}var er=r+11&-8;if(0==(0|Se[vi+4>>2])){var w=er;a=30;break}var ir=ea(er);if(0==(0|ir)){var w=er;a=30;break}var d=ir;a=38;break}while(0);if(30==a){var w,vr=Me[vi+8>>2];if(w>>>0>vr>>>0){var tr=Me[vi+12>>2];if(w>>>0>>0){var fr=tr-w|0;Se[vi+12>>2]=fr;var _r=Me[vi+24>>2],sr=_r;Se[vi+24>>2]=sr+w|0,Se[w+(sr+4)>>2]=1|fr,Se[_r+4>>2]=3|w;var d=_r+8|0}else var nr=aa(w),d=nr}else{var or=vr-w|0,lr=Me[vi+20>>2];if(or>>>0>15){var br=lr;Se[vi+20>>2]=br+w|0,Se[vi+8>>2]=or,Se[w+(br+4)>>2]=1|or,Se[br+vr>>2]=or,Se[lr+4>>2]=3|w}else{Se[vi+8>>2]=0,Se[vi+20>>2]=0,Se[lr+4>>2]=3|vr;var kr=vr+(lr+4)|0,ur=1|Se[kr>>2];Se[kr>>2]=ur}var d=lr+8|0}}var d;return d}function ra(r){var a,e,i,v=Se[vi+4>>2],t=(v&-v)-1|0,f=t>>>12&16,_=t>>>(f>>>0),s=_>>>5&8,n=_>>>(s>>>0),o=n>>>2&4,l=n>>>(o>>>0),b=l>>>1&2,k=l>>>(b>>>0),u=k>>>1&1,c=Me[vi+((s|f|o|b|u)+(k>>>(u>>>0))<<2)+304>>2],h=c,e=h>>2,d=(Se[c+4>>2]&-8)-r|0;r:for(;;)for(var d,h,w=h;;){var w,p=Se[w+16>>2];if(0==(0|p)){var E=Se[w+20>>2];if(0==(0|E))break r;var A=E}else var A=p;var A,g=(Se[A+4>>2]&-8)-r|0;if(g>>>0>>0){var h=A,e=h>>2,d=g;continue r}var w=A}var y=h,m=Me[vi+16>>2],S=y>>>0>>0;do if(!S){var M=y+r|0,C=M;if(y>>>0>=M>>>0)break;var R=Me[e+6],T=Me[e+3],O=(0|T)==(0|h);do if(O){var N=h+20|0,I=Se[N>>2];if(0==(0|I)){var P=h+16|0,D=Se[P>>2];if(0==(0|D)){var L=0,a=L>>2;break}var F=P,X=D}else{var F=N,X=I;i=14}for(;;){var X,F,j=X+20|0,U=Se[j>>2];if(0==(0|U)){var x=X+16|0,z=Me[x>>2];if(0==(0|z))break;var F=x,X=z}else var F=j,X=U}if(F>>>0>>0)throw Ka(),"Reached an unreachable!";Se[F>>2]=0;var L=X,a=L>>2}else{var V=Me[e+2];if(V>>>0>>0)throw Ka(),"Reached an unreachable!";Se[V+12>>2]=T,Se[T+8>>2]=V;var L=T,a=L>>2}while(0);var L,B=0==(0|R);r:do if(!B){var H=h+28|0,K=(Se[H>>2]<<2)+vi+304|0,Y=(0|h)==(0|Se[K>>2]);do{if(Y){if(Se[K>>2]=L,0!=(0|L))break;var G=Se[vi+4>>2]&(1<>2]^-1);Se[vi+4>>2]=G;break r}if(R>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";var W=R+16|0;if((0|Se[W>>2])==(0|h)?Se[W>>2]=L:Se[R+20>>2]=L,0==(0|L))break r}while(0);if(L>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[a+6]=R;var Z=Me[e+4];if(0!=(0|Z)){if(Z>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[a+4]=Z,Se[Z+24>>2]=L}var Q=Me[e+5];if(0==(0|Q))break;if(Q>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[a+5]=Q,Se[Q+24>>2]=L}while(0);if(d>>>0<16){var q=d+r|0;Se[e+1]=3|q;var $=q+(y+4)|0,J=1|Se[$>>2];Se[$>>2]=J}else{Se[e+1]=3|r,Se[r+(y+4)>>2]=1|d,Se[y+d+r>>2]=d;var rr=Me[vi+8>>2];if(0!=(0|rr)){var ar=Me[vi+20>>2],er=rr>>>2&1073741822,ir=(er<<2)+vi+40|0,vr=Me[vi>>2],tr=1<<(rr>>>3),fr=0==(vr&tr|0);do{if(!fr){var _r=(er+2<<2)+vi+40|0,sr=Me[_r>>2];if(sr>>>0>=Me[vi+16>>2]>>>0){var nr=sr,or=_r;break}throw Ka(),"Reached an unreachable!"}Se[vi>>2]=vr|tr;var nr=ir,or=(er+2<<2)+vi+40|0}while(0);var or,nr;Se[or>>2]=ar,Se[nr+12>>2]=ar,Se[ar+8>>2]=nr,Se[ar+12>>2]=ir}Se[vi+8>>2]=d,Se[vi+20>>2]=C}return h+8|0}while(0);throw Ka(),"Reached an unreachable!"}function aa(r){var a,e;0==(0|Se[ti>>2])&&ba();var i=0==(4&Se[vi+440>>2]|0);do{if(i){var v=Se[vi+24>>2],t=0==(0|v);do{if(!t){var f=v,_=ua(f);if(0==(0|_)){e=6;break}var s=Se[ti+8>>2],n=r+47-Se[vi+12>>2]+s&-s;if(n>>>0>=2147483647){e=14;break}var o=re(n);if((0|o)==(Se[_>>2]+Se[_+4>>2]|0)){var l=o,b=n,k=o;e=13;break}var u=o,c=n;e=15;break}e=6}while(0);do if(6==e){var h=re(0);if((0|h)==-1){e=14;break}var d=Se[ti+8>>2],w=d+(r+47)&-d,p=h,E=Se[ti+4>>2],A=E-1|0;if(0==(A&p|0))var g=w;else var g=w-p+(A+p&-E)|0;var g;if(g>>>0>=2147483647){e=14;break}var y=re(g);if((0|y)==(0|h)){var l=h,b=g,k=y;e=13;break}var u=y,c=g;e=15;break}while(0);if(13==e){var k,b,l;if((0|l)!=-1){var m=b,S=l;e=26;break}var u=k,c=b}else if(14==e){var M=4|Se[vi+440>>2];Se[vi+440>>2]=M,e=23;break}var c,u,C=0|-c,R=(0|u)!=-1&c>>>0<2147483647;do{if(R){if(c>>>0>=(r+48|0)>>>0){var T=c;e=21;break}var O=Se[ti+8>>2],N=r+47-c+O&-O;if(N>>>0>=2147483647){var T=c;e=21;break}var I=re(N);if((0|I)==-1){re(C);e=22;break}var T=N+c|0;e=21;break}var T=c;e=21}while(0);if(21==e){var T;if((0|u)!=-1){var m=T,S=u;e=26;break}}var P=4|Se[vi+440>>2];Se[vi+440>>2]=P,e=23;break}e=23}while(0);do if(23==e){var D=Se[ti+8>>2],L=D+(r+47)&-D;if(L>>>0>=2147483647){e=49;break}var F=re(L),X=re(0);if(!((0|X)!=-1&(0|F)!=-1&F>>>0>>0)){e=49;break}var j=X-F|0;if(j>>>0<=(r+40|0)>>>0|(0|F)==-1){e=49;break}var m=j,S=F;e=26;break}while(0);r:do if(26==e){var S,m,U=Se[vi+432>>2]+m|0;Se[vi+432>>2]=U,U>>>0>Me[vi+436>>2]>>>0&&(Se[vi+436>>2]=U);var x=Me[vi+24>>2],z=0==(0|x);a:do if(z){var V=Me[vi+16>>2];0==(0|V)|S>>>0>>0&&(Se[vi+16>>2]=S),Se[vi+444>>2]=S,Se[vi+448>>2]=m,Se[vi+456>>2]=0;var B=Se[ti>>2];Se[vi+36>>2]=B,Se[vi+32>>2]=-1,ha(),ca(S,m-40|0)}else{for(var H=vi+444|0,a=H>>2;;){var H;if(0==(0|H))break;var K=Me[a],Y=H+4|0,G=Me[Y>>2],W=K+G|0;if((0|S)==(0|W)){if(0!=(8&Se[a+3]|0))break;var Z=x;if(!(Z>>>0>=K>>>0&Z>>>0>>0))break;Se[Y>>2]=G+m|0;var Q=Se[vi+24>>2],q=Se[vi+12>>2]+m|0;ca(Q,q);break a}var H=Se[a+2],a=H>>2}S>>>0>2]>>>0&&(Se[vi+16>>2]=S);for(var $=S+m|0,J=vi+444|0;;){var J;if(0==(0|J))break;var rr=0|J,ar=Me[rr>>2];if((0|ar)==(0|$)){if(0!=(8&Se[J+12>>2]|0))break;Se[rr>>2]=S;var er=J+4|0,ir=Se[er>>2]+m|0;Se[er>>2]=ir;var vr=da(S,ar,r),tr=vr;e=50;break r}var J=Se[J+8>>2]}Ma(S,m)}while(0);var fr=Me[vi+12>>2];if(fr>>>0<=r>>>0){e=49;break}var _r=fr-r|0;Se[vi+12>>2]=_r;var sr=Me[vi+24>>2],nr=sr;Se[vi+24>>2]=nr+r|0,Se[r+(nr+4)>>2]=1|_r,Se[sr+4>>2]=3|r;var tr=sr+8|0;e=50;break}while(0);if(49==e){var or=Je();Se[or>>2]=12;var tr=0}var tr;return tr}function ea(r){var a,e,i,v,t,f,_=r>>2,s=0|-r,n=r>>>8,o=0==(0|n);do if(o)var l=0;else{if(r>>>0>16777215){var l=31;break}var b=(n+1048320|0)>>>16&8,k=n<>>16&4,c=k<>>16&2,d=14-(u|b|h)+(c<>>15)|0,l=r>>>((d+7|0)>>>0)&1|d<<1}while(0);var l,w=Me[vi+(l<<2)+304>>2],p=0==(0|w);r:do if(p)var E=0,A=s,g=0;else{if(31==(0|l))var y=0;else var y=25-(l>>>1)|0;for(var y,m=0,S=s,M=w,t=M>>2,C=r<>>0>>0){if((0|T)==(0|r)){var E=M,A=O,g=M;break r}var N=M,I=O}else var N=m,I=S;var I,N,P=Me[t+5],D=Me[((C>>>31<<2)+16>>2)+t],L=0==(0|P)|(0|P)==(0|D)?R:P;if(0==(0|D)){var E=N,A=I,g=L;break r}var m=N,S=I,M=D,t=M>>2,C=C<<1,R=L}}while(0);var g,A,E,F=0==(0|g)&0==(0|E);do if(F){var X=2<>2]&(X|-X);if(0==(0|j)){var U=g;break}var x=(j&-j)-1|0,z=x>>>12&16,V=x>>>(z>>>0),B=V>>>5&8,H=V>>>(B>>>0),K=H>>>2&4,Y=H>>>(K>>>0),G=Y>>>1&2,W=Y>>>(G>>>0),Z=W>>>1&1,U=Se[vi+((B|z|K|G|Z)+(W>>>(Z>>>0))<<2)+304>>2]}else var U=g;while(0);var U,Q=0==(0|U);r:do if(Q)var q=A,$=E,v=$>>2;else for(var J=U,i=J>>2,rr=A,ar=E;;){var ar,rr,J,er=(Se[i+1]&-8)-r|0,ir=er>>>0>>0,vr=ir?er:rr,tr=ir?J:ar,fr=Me[i+4];if(0==(0|fr)){var _r=Me[i+5];if(0==(0|_r)){var q=vr,$=tr,v=$>>2;break r}var J=_r,i=J>>2,rr=vr,ar=tr}else var J=fr,i=J>>2,rr=vr,ar=tr}while(0);var $,q,sr=0==(0|$);r:do{if(!sr){if(q>>>0>=(Se[vi+8>>2]-r|0)>>>0){var nr=0;break}var or=$,e=or>>2,lr=Me[vi+16>>2],br=or>>>0>>0;do if(!br){var kr=or+r|0,ur=kr;if(or>>>0>=kr>>>0)break;var cr=Me[v+6],hr=Me[v+3],dr=(0|hr)==(0|$);do if(dr){var wr=$+20|0,pr=Se[wr>>2];if(0==(0|pr)){var Er=$+16|0,Ar=Se[Er>>2];if(0==(0|Ar)){var gr=0,a=gr>>2;break}var yr=Er,mr=Ar}else{var yr=wr,mr=pr;f=28}for(;;){var mr,yr,Sr=mr+20|0,Mr=Se[Sr>>2];if(0==(0|Mr)){var Cr=mr+16|0,Rr=Me[Cr>>2];if(0==(0|Rr))break;var yr=Cr,mr=Rr}else var yr=Sr,mr=Mr}if(yr>>>0>>0)throw Ka(),"Reached an unreachable!";Se[yr>>2]=0;var gr=mr,a=gr>>2}else{var Tr=Me[v+2];if(Tr>>>0>>0)throw Ka(),"Reached an unreachable!";Se[Tr+12>>2]=hr,Se[hr+8>>2]=Tr;var gr=hr,a=gr>>2}while(0);var gr,Or=0==(0|cr);a:do if(!Or){var Nr=$+28|0,Ir=(Se[Nr>>2]<<2)+vi+304|0,Pr=(0|$)==(0|Se[Ir>>2]);do{if(Pr){if(Se[Ir>>2]=gr,0!=(0|gr))break;var Dr=Se[vi+4>>2]&(1<>2]^-1);Se[vi+4>>2]=Dr;break a}if(cr>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";var Lr=cr+16|0;if((0|Se[Lr>>2])==(0|$)?Se[Lr>>2]=gr:Se[cr+20>>2]=gr,0==(0|gr))break a}while(0);if(gr>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[a+6]=cr;var Fr=Me[v+4];if(0!=(0|Fr)){if(Fr>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[a+4]=Fr,Se[Fr+24>>2]=gr}var Xr=Me[v+5];if(0==(0|Xr))break;if(Xr>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[a+5]=Xr,Se[Xr+24>>2]=gr}while(0);var jr=q>>>0<16;a:do if(jr){var Ur=q+r|0;Se[v+1]=3|Ur;var xr=Ur+(or+4)|0,zr=1|Se[xr>>2];Se[xr>>2]=zr}else if(Se[v+1]=3|r,Se[_+(e+1)]=1|q,Se[(q>>2)+e+_]=q,q>>>0<256){var Vr=q>>>2&1073741822,Br=(Vr<<2)+vi+40|0,Hr=Me[vi>>2],Kr=1<<(q>>>3),Yr=0==(Hr&Kr|0);do{if(!Yr){var Gr=(Vr+2<<2)+vi+40|0,Wr=Me[Gr>>2];if(Wr>>>0>=Me[vi+16>>2]>>>0){var Zr=Wr,Qr=Gr;break}throw Ka(),"Reached an unreachable!"}Se[vi>>2]=Hr|Kr;var Zr=Br,Qr=(Vr+2<<2)+vi+40|0}while(0);var Qr,Zr;Se[Qr>>2]=ur,Se[Zr+12>>2]=ur,Se[_+(e+2)]=Zr,Se[_+(e+3)]=Br}else{var qr=kr,$r=q>>>8,Jr=0==(0|$r);do if(Jr)var ra=0;else{if(q>>>0>16777215){var ra=31;break}var aa=($r+1048320|0)>>>16&8,ea=$r<>>16&4,va=ea<>>16&2,fa=14-(ia|aa|ta)+(va<>>15)|0,ra=q>>>((fa+7|0)>>>0)&1|fa<<1}while(0);var ra,_a=(ra<<2)+vi+304|0;Se[_+(e+7)]=ra;var sa=r+(or+16)|0;Se[_+(e+5)]=0,Se[sa>>2]=0;var na=Se[vi+4>>2],oa=1<>2]=la,Se[_a>>2]=qr,Se[_+(e+6)]=_a,Se[_+(e+3)]=qr,Se[_+(e+2)]=qr}else{if(31==(0|ra))var ba=0;else var ba=25-(ra>>>1)|0;for(var ba,ka=q<>2];;){var ua,ka;if((Se[ua+4>>2]&-8|0)==(0|q)){var ca=ua+8|0,ha=Me[ca>>2],da=Me[vi+16>>2],wa=ua>>>0>>0;do if(!wa){if(ha>>>0>>0)break;Se[ha+12>>2]=qr,Se[ca>>2]=qr,Se[_+(e+2)]=ha,Se[_+(e+3)]=ua,Se[_+(e+6)]=0;break a}while(0);throw Ka(),"Reached an unreachable!"}var pa=(ka>>>31<<2)+ua+16|0,Ea=Me[pa>>2];if(0==(0|Ea)){if(pa>>>0>=Me[vi+16>>2]>>>0){Se[pa>>2]=qr,Se[_+(e+6)]=ua,Se[_+(e+3)]=qr,Se[_+(e+2)]=qr;break a}throw Ka(),"Reached an unreachable!"}var ka=ka<<1,ua=Ea}}}while(0);var nr=$+8|0;break r}while(0);throw Ka(),"Reached an unreachable!"}var nr=0}while(0);var nr;return nr}function ia(r){var a;0==(0|Se[ti>>2])&&ba();var e=r>>>0<4294967232;r:do if(e){var i=Me[vi+24>>2];if(0==(0|i)){var v=0;break}var t=Me[vi+12>>2],f=t>>>0>(r+40|0)>>>0;do if(f){var _=Me[ti+8>>2],s=-40-r-1+t+_|0,n=Math.floor((s>>>0)/(_>>>0)),o=(n-1)*_|0,l=i,b=ua(l);if(0!=(8&Se[b+12>>2]|0))break;var k=re(0),a=(b+4|0)>>2;if((0|k)!=(Se[b>>2]+Se[a]|0))break;var u=o>>>0>2147483646?-2147483648-_|0:o,c=0|-u,h=re(c),d=re(0);if(!((0|h)!=-1&d>>>0>>0))break;var w=k-d|0;if((0|k)==(0|d))break;var p=Se[a]-w|0;Se[a]=p;var E=Se[vi+432>>2]-w|0;Se[vi+432>>2]=E;var A=Se[vi+24>>2],g=Se[vi+12>>2]-w|0;ca(A,g);var v=(0|k)!=(0|d);break r}while(0);if(Me[vi+12>>2]>>>0<=Me[vi+28>>2]>>>0){var v=0;break}Se[vi+28>>2]=-1;var v=0}else var v=0;while(0);var v;return 1&v}function va(r){var a,e,i,v,t,f,_,s=r>>2,n=0==(0|r);r:do if(!n){var o=r-8|0,l=o,b=Me[vi+16>>2],k=o>>>0>>0;a:do if(!k){var u=Me[r-4>>2],c=3&u;if(1==(0|c))break;var h=u&-8,f=h>>2,d=r+(h-8)|0,w=d,p=0==(1&u|0);e:do if(p){var E=Me[o>>2];if(0==(0|c))break r;var A=-8-E|0,t=A>>2,g=r+A|0,y=g,m=E+h|0;if(g>>>0>>0)break a;if((0|y)==(0|Se[vi+20>>2])){var v=(r+(h-4)|0)>>2;if(3!=(3&Se[v]|0)){var S=y,i=S>>2,M=m;break}Se[vi+8>>2]=m;var C=Se[v]&-2;Se[v]=C,Se[t+(s+1)]=1|m,Se[d>>2]=m;break r}if(E>>>0<256){var R=Me[t+(s+2)],T=Me[t+(s+3)];if((0|R)!=(0|T)){var O=((E>>>2&1073741822)<<2)+vi+40|0,N=(0|R)!=(0|O)&R>>>0>>0;do if(!N){if(!((0|T)==(0|O)|T>>>0>=b>>>0))break;Se[R+12>>2]=T,Se[T+8>>2]=R;var S=y,i=S>>2,M=m;break e}while(0);throw Ka(),"Reached an unreachable!"}var I=Se[vi>>2]&(1<<(E>>>3)^-1);Se[vi>>2]=I;var S=y,i=S>>2,M=m}else{var P=g,D=Me[t+(s+6)],L=Me[t+(s+3)],F=(0|L)==(0|P);do if(F){var X=A+(r+20)|0,j=Se[X>>2];if(0==(0|j)){var U=A+(r+16)|0,x=Se[U>>2];if(0==(0|x)){var z=0,e=z>>2;break}var V=U,B=x}else{var V=X,B=j;_=21}for(;;){var B,V,H=B+20|0,K=Se[H>>2];if(0==(0|K)){var Y=B+16|0,G=Me[Y>>2];if(0==(0|G))break;var V=Y,B=G}else var V=H,B=K}if(V>>>0>>0)throw Ka(),"Reached an unreachable!";Se[V>>2]=0;var z=B,e=z>>2}else{var W=Me[t+(s+2)];if(W>>>0>>0)throw Ka(),"Reached an unreachable!";Se[W+12>>2]=L,Se[L+8>>2]=W;var z=L,e=z>>2}while(0);var z;if(0==(0|D)){var S=y,i=S>>2,M=m;break}var Z=A+(r+28)|0,Q=(Se[Z>>2]<<2)+vi+304|0,q=(0|P)==(0|Se[Q>>2]);do{if(q){if(Se[Q>>2]=z,0!=(0|z))break;var $=Se[vi+4>>2]&(1<>2]^-1);Se[vi+4>>2]=$;var S=y,i=S>>2,M=m;break e}if(D>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";var J=D+16|0;if((0|Se[J>>2])==(0|P)?Se[J>>2]=z:Se[D+20>>2]=z,0==(0|z)){var S=y,i=S>>2,M=m;break e}}while(0);if(z>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[e+6]=D;var rr=Me[t+(s+4)];if(0!=(0|rr)){if(rr>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[e+4]=rr,Se[rr+24>>2]=z}var ar=Me[t+(s+5)];if(0==(0|ar)){var S=y,i=S>>2,M=m;break}if(ar>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[e+5]=ar,Se[ar+24>>2]=z;var S=y,i=S>>2,M=m}}else var S=l,i=S>>2,M=h;while(0);var M,S,er=S;if(er>>>0>=d>>>0)break;var ir=r+(h-4)|0,vr=Me[ir>>2];if(0==(1&vr|0))break;var tr=0==(2&vr|0);do{if(tr){if((0|w)==(0|Se[vi+24>>2])){var fr=Se[vi+12>>2]+M|0;Se[vi+12>>2]=fr,Se[vi+24>>2]=S;var _r=1|fr;if(Se[i+1]=_r,(0|S)==(0|Se[vi+20>>2])&&(Se[vi+20>>2]=0,Se[vi+8>>2]=0),fr>>>0<=Me[vi+28>>2]>>>0)break r;ia(0);break r}if((0|w)==(0|Se[vi+20>>2])){var sr=Se[vi+8>>2]+M|0;Se[vi+8>>2]=sr,Se[vi+20>>2]=S;var nr=1|sr;Se[i+1]=nr;var or=er+sr|0;Se[or>>2]=sr;break r}var lr=(vr&-8)+M|0,br=vr>>>3,kr=vr>>>0<256;e:do if(kr){var ur=Me[s+f],cr=Me[((4|h)>>2)+s];if((0|ur)!=(0|cr)){var hr=((vr>>>2&1073741822)<<2)+vi+40|0,dr=(0|ur)==(0|hr);do{if(!dr){if(ur>>>0>2]>>>0){_=66;break}_=63;break}_=63}while(0);do if(63==_){if((0|cr)!=(0|hr)&&cr>>>0>2]>>>0)break;Se[ur+12>>2]=cr,Se[cr+8>>2]=ur;break e}while(0);throw Ka(),"Reached an unreachable!"}var wr=Se[vi>>2]&(1<>2]=wr}else{var pr=d,Er=Me[f+(s+4)],Ar=Me[((4|h)>>2)+s],gr=(0|Ar)==(0|pr);do if(gr){var yr=h+(r+12)|0,mr=Se[yr>>2];if(0==(0|mr)){var Sr=h+(r+8)|0,Mr=Se[Sr>>2];if(0==(0|Mr)){var Cr=0,a=Cr>>2;break}var Rr=Sr,Tr=Mr}else{var Rr=yr,Tr=mr;_=73}for(;;){var Tr,Rr,Or=Tr+20|0,Nr=Se[Or>>2];if(0==(0|Nr)){var Ir=Tr+16|0,Pr=Me[Ir>>2];if(0==(0|Pr))break;var Rr=Ir,Tr=Pr}else var Rr=Or,Tr=Nr}if(Rr>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[Rr>>2]=0;var Cr=Tr,a=Cr>>2}else{var Dr=Me[s+f];if(Dr>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[Dr+12>>2]=Ar,\nSe[Ar+8>>2]=Dr;var Cr=Ar,a=Cr>>2}while(0);var Cr;if(0==(0|Er))break;var Lr=h+(r+20)|0,Fr=(Se[Lr>>2]<<2)+vi+304|0,Xr=(0|pr)==(0|Se[Fr>>2]);do{if(Xr){if(Se[Fr>>2]=Cr,0!=(0|Cr))break;var jr=Se[vi+4>>2]&(1<>2]^-1);Se[vi+4>>2]=jr;break e}if(Er>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";var Ur=Er+16|0;if((0|Se[Ur>>2])==(0|pr)?Se[Ur>>2]=Cr:Se[Er+20>>2]=Cr,0==(0|Cr))break e}while(0);if(Cr>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[a+6]=Er;var xr=Me[f+(s+2)];if(0!=(0|xr)){if(xr>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[a+4]=xr,Se[xr+24>>2]=Cr}var zr=Me[f+(s+3)];if(0==(0|zr))break;if(zr>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[a+5]=zr,Se[zr+24>>2]=Cr}while(0);if(Se[i+1]=1|lr,Se[er+lr>>2]=lr,(0|S)!=(0|Se[vi+20>>2])){var Vr=lr;break}Se[vi+8>>2]=lr;break r}Se[ir>>2]=vr&-2,Se[i+1]=1|M,Se[er+M>>2]=M;var Vr=M}while(0);var Vr;if(Vr>>>0<256){var Br=Vr>>>2&1073741822,Hr=(Br<<2)+vi+40|0,Kr=Me[vi>>2],Yr=1<<(Vr>>>3),Gr=0==(Kr&Yr|0);do{if(!Gr){var Wr=(Br+2<<2)+vi+40|0,Zr=Me[Wr>>2];if(Zr>>>0>=Me[vi+16>>2]>>>0){var Qr=Zr,qr=Wr;break}throw Ka(),"Reached an unreachable!"}Se[vi>>2]=Kr|Yr;var Qr=Hr,qr=(Br+2<<2)+vi+40|0}while(0);var qr,Qr;Se[qr>>2]=S,Se[Qr+12>>2]=S,Se[i+2]=Qr,Se[i+3]=Hr;break r}var $r=S,Jr=Vr>>>8,ra=0==(0|Jr);do if(ra)var aa=0;else{if(Vr>>>0>16777215){var aa=31;break}var ea=(Jr+1048320|0)>>>16&8,va=Jr<>>16&4,_a=va<>>16&2,na=14-(fa|ea|sa)+(_a<>>15)|0,aa=Vr>>>((na+7|0)>>>0)&1|na<<1}while(0);var aa,oa=(aa<<2)+vi+304|0;Se[i+7]=aa,Se[i+5]=0,Se[i+4]=0;var la=Se[vi+4>>2],ba=1<>2]=ua,Se[oa>>2]=$r,Se[i+6]=oa,Se[i+3]=S,Se[i+2]=S}else{if(31==(0|aa))var ca=0;else var ca=25-(aa>>>1)|0;for(var ca,ha=Vr<>2];;){var da,ha;if((Se[da+4>>2]&-8|0)==(0|Vr)){var wa=da+8|0,pa=Me[wa>>2],Ea=Me[vi+16>>2],Aa=da>>>0>>0;do if(!Aa){if(pa>>>0>>0)break;Se[pa+12>>2]=$r,Se[wa>>2]=$r,Se[i+2]=pa,Se[i+3]=da,Se[i+6]=0;break e}while(0);throw Ka(),"Reached an unreachable!"}var ga=(ha>>>31<<2)+da+16|0,ya=Me[ga>>2];if(0==(0|ya)){if(ga>>>0>=Me[vi+16>>2]>>>0){Se[ga>>2]=$r,Se[i+6]=da,Se[i+3]=S,Se[i+2]=S;break e}throw Ka(),"Reached an unreachable!"}var ha=ha<<1,da=ya}}while(0);var ma=Se[vi+32>>2]-1|0;if(Se[vi+32>>2]=ma,0!=(0|ma))break r;ta();break r}while(0);throw Ka(),"Reached an unreachable!"}while(0)}function ta(){var r=Se[vi+452>>2],a=0==(0|r);r:do if(!a)for(var e=r;;){var e,i=Se[e+8>>2];if(0==(0|i))break r;var e=i}while(0);Se[vi+32>>2]=-1}function fa(r,a){if(0==(0|r))var e=Jr(a),i=e;else var v=la(r,a),i=v;var i;return i}function _a(r,a){var e,i=r>>>0<9;do if(i)var v=Jr(a),t=v;else{var f=r>>>0<16?16:r,_=0==(f-1&f|0);r:do if(_)var s=f;else{if(f>>>0<=16){var s=16;break}for(var n=16;;){var n,o=n<<1;if(o>>>0>=f>>>0){var s=o;break r}var n=o}}while(0);var s;if((-64-s|0)>>>0>a>>>0){if(a>>>0<11)var l=16;else var l=a+11&-8;var l,b=Jr(l+(s+12)|0);if(0==(0|b)){var t=0;break}var k=b-8|0;if(0==((b>>>0)%(s>>>0)|0))var u=k,c=0;else{var h=b+(s-1)&-s,d=h-8|0,w=k;if((d-w|0)>>>0>15)var p=d;else var p=h+(s-8)|0;var p,E=p-w|0,e=(b-4|0)>>2,A=Se[e],g=(A&-8)-E|0;if(0==(3&A|0)){var y=Se[k>>2]+E|0;Se[p>>2]=y,Se[p+4>>2]=g;var u=p,c=0}else{var m=p+4|0,S=g|1&Se[m>>2]|2;Se[m>>2]=S;var M=g+(p+4)|0,C=1|Se[M>>2];Se[M>>2]=C;var R=E|1&Se[e]|2;Se[e]=R;var T=b+(E-4)|0,O=1|Se[T>>2];Se[T>>2]=O;var u=p,c=b}}var c,u,N=u+4|0,I=Me[N>>2],P=0==(3&I|0);do if(P)var D=0;else{var L=I&-8;if(L>>>0<=(l+16|0)>>>0){var D=0;break}var F=L-l|0;Se[N>>2]=l|1&I|2,Se[u+(4|l)>>2]=3|F;var X=u+(4|L)|0,j=1|Se[X>>2];Se[X>>2]=j;var D=l+(u+8)|0}while(0);var D;0!=(0|c)&&va(c),0!=(0|D)&&va(D);var t=u+8|0}else{var U=Je();Se[U>>2]=12;var t=0}}while(0);var t;return t}function sa(r,a,e,i){var v,t;0==(0|Se[ti>>2])&&ba();var f=0==(0|i),_=0==(0|r);do{if(f){if(_){var s=Jr(0),n=s;t=30;break}var o=r<<2;if(o>>>0<11){var l=0,b=16;t=9;break}var l=0,b=o+11&-8;t=9;break}if(_){var n=i;t=30;break}var l=i,b=0;t=9;break}while(0);do if(9==t){var b,l,k=0==(1&e|0);r:do if(k){if(_){var u=0,c=0;break}for(var h=0,d=0;;){var d,h,w=Me[a+(d<<2)>>2];if(w>>>0<11)var p=16;else var p=w+11&-8;var p,E=p+h|0,A=d+1|0;if((0|A)==(0|r)){var u=0,c=E;break r}var h=E,d=A}}else{var g=Me[a>>2];if(g>>>0<11)var y=16;else var y=g+11&-8;var y,u=y,c=y*r|0}while(0);var c,u,m=Jr(b-4+c|0);if(0==(0|m)){var n=0;break}var S=m-8|0,M=Se[m-4>>2]&-8;if(0!=(2&e|0)){var C=-4-b+M|0;Fa(m,0,C,1)}if(0==(0|l)){var R=m+c|0,T=M-c|3;Se[m+(c-4)>>2]=T;var O=R,v=O>>2,N=c}else var O=l,v=O>>2,N=M;var N,O;Se[v]=m;var I=r-1|0,P=0==(0|I);r:do if(P)var D=S,L=N;else if(0==(0|u))for(var F=S,X=N,j=0;;){var j,X,F,U=Me[a+(j<<2)>>2];if(U>>>0<11)var x=16;else var x=U+11&-8;var x,z=X-x|0;Se[F+4>>2]=3|x;var V=F+x|0,B=j+1|0;if(Se[(B<<2>>2)+v]=x+(F+8)|0,(0|B)==(0|I)){var D=V,L=z;break r}var F=V,X=z,j=B}else for(var H=3|u,K=u+8|0,Y=S,G=N,W=0;;){var W,G,Y,Z=G-u|0;Se[Y+4>>2]=H;var Q=Y+u|0,q=W+1|0;if(Se[(q<<2>>2)+v]=Y+K|0,(0|q)==(0|I)){var D=Q,L=Z;break r}var Y=Q,G=Z,W=q}while(0);var L,D;Se[D+4>>2]=3|L;var n=O}while(0);var n;return n}function na(r){var a=r>>2;0==(0|Se[ti>>2])&&ba();var e=Me[vi+24>>2];if(0==(0|e))var i=0,v=0,t=0,f=0,_=0,s=0,n=0;else{for(var o=Me[vi+12>>2],l=o+40|0,b=vi+444|0,k=l,u=l,c=1;;){var c,u,k,b,h=Me[b>>2],d=h+8|0;if(0==(7&d|0))var w=0;else var w=7&-d;for(var w,p=b+4|0,E=h+w|0,A=c,g=u,y=k;;){var y,g,A,E;if(E>>>0>>0)break;if(E>>>0>=(h+Se[p>>2]|0)>>>0|(0|E)==(0|e))break;var m=Se[E+4>>2];if(7==(0|m))break;var S=m&-8,M=S+y|0;if(1==(3&m|0))var C=A+1|0,R=S+g|0;else var C=A,R=g;var R,C,E=E+S|0,A=C,g=R,y=M}var T=Me[b+8>>2];if(0==(0|T))break;var b=T,k=y,u=g,c=A}var O=Se[vi+432>>2],i=y,v=A,t=o,f=g,_=O-y|0,s=Se[vi+436>>2],n=O-g|0}var n,s,_,f,t,v,i;Se[a]=i,Se[a+1]=v,Se[a+2]=0,Se[a+3]=0,Se[a+4]=_,Se[a+5]=s,Se[a+6]=0,Se[a+7]=n,Se[a+8]=f,Se[a+9]=t}function oa(){0==(0|Se[ti>>2])&&ba();var r=Me[vi+24>>2],a=0==(0|r);r:do if(a)var e=0,i=0,v=0;else for(var t=Se[vi+436>>2],f=Me[vi+432>>2],_=vi+444|0,s=f-40-Se[vi+12>>2]|0;;){var s,_,n=Me[_>>2],o=n+8|0;if(0==(7&o|0))var l=0;else var l=7&-o;for(var l,b=_+4|0,k=n+l|0,u=s;;){var u,k;if(k>>>0>>0)break;if(k>>>0>=(n+Se[b>>2]|0)>>>0|(0|k)==(0|r))break;var c=Se[k+4>>2];if(7==(0|c))break;var h=c&-8,d=1==(3&c|0)?h:0,w=u-d|0,k=k+h|0,u=w}var p=Me[_+8>>2];if(0==(0|p)){var e=t,i=f,v=u;break r}var _=p,s=u}while(0);var v,i,e,E=Se[Se[qe>>2]+12>>2],A=(Qa(E,0|He.__str339,(ne=Oe,Oe+=4,Se[ne>>2]=e,ne)),Se[Se[qe>>2]+12>>2]),g=(Qa(A,0|He.__str1340,(ne=Oe,Oe+=4,Se[ne>>2]=i,ne)),Se[Se[qe>>2]+12>>2]);Qa(g,0|He.__str2341,(ne=Oe,Oe+=4,Se[ne>>2]=v,ne))}function la(r,a){var e,i,v,t=a>>>0>4294967231;r:do{if(!t){var f=r-8|0,_=f,i=(r-4|0)>>2,s=Me[i],n=s&-8,o=n-8|0,l=r+o|0,b=f>>>0>2]>>>0;do if(!b){var k=3&s;if(!(1!=(0|k)&(0|o)>-8))break;var e=(r+(n-4)|0)>>2;if(0==(1&Se[e]|0))break;if(a>>>0<11)var u=16;else var u=a+11&-8;var u,c=0==(0|k);do{if(c){var h=ka(_,u),d=0,w=h;v=17;break}if(n>>>0>>0){if((0|l)!=(0|Se[vi+24>>2])){v=21;break}var p=Se[vi+12>>2]+n|0;if(p>>>0<=u>>>0){v=21;break}var E=p-u|0,A=r+(u-8)|0;Se[i]=u|1&s|2;var g=1|E;Se[r+(u-4)>>2]=g,Se[vi+24>>2]=A,Se[vi+12>>2]=E;var d=0,w=_;v=17;break}var y=n-u|0;if(y>>>0<=15){var d=0,w=_;v=17;break}Se[i]=u|1&s|2,Se[r+(u-4)>>2]=3|y;var m=1|Se[e];Se[e]=m;var d=r+u|0,w=_;v=17;break}while(0);do if(17==v){var w,d;if(0==(0|w))break;0!=(0|d)&&va(d);var S=w+8|0;break r}while(0);var M=Jr(a);if(0==(0|M)){var S=0;break r}var C=0==(3&Se[i]|0)?8:4,R=n-C|0,T=R>>>0>>0?R:a;Pa(M,r,T,1),va(r);var S=M;break r}while(0);throw Ka(),"Reached an unreachable!"}var O=Je();Se[O>>2]=12;var S=0}while(0);var S;return S}function ba(){if(0==(0|Se[ti>>2])){var r=qa(8);if(0!=(r-1&r|0))throw Ka(),"Reached an unreachable!";Se[ti+8>>2]=r,Se[ti+4>>2]=r,Se[ti+12>>2]=-1,Se[ti+16>>2]=2097152,Se[ti+20>>2]=0,Se[vi+440>>2]=0;var a=$a(0);Se[ti>>2]=a&-16^1431655768}}function ka(r,a){var e=Se[r+4>>2]&-8,i=a>>>0<256;do if(i)var v=0;else{if(e>>>0>=(a+4|0)>>>0&&(e-a|0)>>>0<=Se[ti+8>>2]<<1>>>0){var v=r;break}var v=0}while(0);var v;return v}function ua(r){for(var a,e=vi+444|0,a=e>>2;;){var e,i=Me[a];if(i>>>0<=r>>>0&&(i+Se[a+1]|0)>>>0>r>>>0){var v=e;break}var t=Me[a+2];if(0==(0|t)){var v=0;break}var e=t,a=e>>2}var v;return v}function ca(r,a){var e=r,i=r+8|0;if(0==(7&i|0))var v=0;else var v=7&-i;var v,t=a-v|0;Se[vi+24>>2]=e+v|0,Se[vi+12>>2]=t,Se[v+(e+4)>>2]=1|t,Se[a+(e+4)>>2]=40;var f=Se[ti+16>>2];Se[vi+28>>2]=f}function ha(){for(var r=0;;){var r,a=r<<1,e=(a<<2)+vi+40|0;Se[vi+(a+3<<2)+40>>2]=e,Se[vi+(a+2<<2)+40>>2]=e;var i=r+1|0;if(32==(0|i))break;var r=i}}function da(r,a,e){var i,v,t,f,_=a>>2,s=r>>2,n=r+8|0;if(0==(7&n|0))var o=0;else var o=7&-n;var o,l=a+8|0;if(0==(7&l|0))var b=0,t=b>>2;else var b=7&-l,t=b>>2;var b,k=a+b|0,u=k,c=o+e|0,v=c>>2,h=r+c|0,d=h,w=k-(r+o)-e|0;Se[(o+4>>2)+s]=3|e;var p=(0|u)==(0|Se[vi+24>>2]);r:do if(p){var E=Se[vi+12>>2]+w|0;Se[vi+12>>2]=E,Se[vi+24>>2]=d;var A=1|E;Se[v+(s+1)]=A}else if((0|u)==(0|Se[vi+20>>2])){var g=Se[vi+8>>2]+w|0;Se[vi+8>>2]=g,Se[vi+20>>2]=d;var y=1|g;Se[v+(s+1)]=y;var m=r+g+c|0;Se[m>>2]=g}else{var S=Me[t+(_+1)];if(1==(3&S|0)){var M=S&-8,C=S>>>3,R=S>>>0<256;a:do if(R){var T=Me[((8|b)>>2)+_],O=Me[t+(_+3)];if((0|T)!=(0|O)){var N=((S>>>2&1073741822)<<2)+vi+40|0,I=(0|T)==(0|N);do{if(!I){if(T>>>0>2]>>>0){f=18;break}f=15;break}f=15}while(0);do if(15==f){if((0|O)!=(0|N)&&O>>>0>2]>>>0)break;Se[T+12>>2]=O,Se[O+8>>2]=T;break a}while(0);throw Ka(),"Reached an unreachable!"}var P=Se[vi>>2]&(1<>2]=P}else{var D=k,L=Me[((24|b)>>2)+_],F=Me[t+(_+3)],X=(0|F)==(0|D);do if(X){var j=16|b,U=j+(a+4)|0,x=Se[U>>2];if(0==(0|x)){var z=a+j|0,V=Se[z>>2];if(0==(0|V)){var B=0,i=B>>2;break}var H=z,K=V}else{var H=U,K=x;f=25}for(;;){var K,H,Y=K+20|0,G=Se[Y>>2];if(0==(0|G)){var W=K+16|0,Z=Me[W>>2];if(0==(0|Z))break;var H=W,K=Z}else var H=Y,K=G}if(H>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[H>>2]=0;var B=K,i=B>>2}else{var Q=Me[((8|b)>>2)+_];if(Q>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[Q+12>>2]=F,Se[F+8>>2]=Q;var B=F,i=B>>2}while(0);var B;if(0==(0|L))break;var q=b+(a+28)|0,$=(Se[q>>2]<<2)+vi+304|0,J=(0|D)==(0|Se[$>>2]);do{if(J){if(Se[$>>2]=B,0!=(0|B))break;var rr=Se[vi+4>>2]&(1<>2]^-1);Se[vi+4>>2]=rr;break a}if(L>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";var ar=L+16|0;if((0|Se[ar>>2])==(0|D)?Se[ar>>2]=B:Se[L+20>>2]=B,0==(0|B))break a}while(0);if(B>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[i+6]=L;var er=16|b,ir=Me[(er>>2)+_];if(0!=(0|ir)){if(ir>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[i+4]=ir,Se[ir+24>>2]=B}var vr=Me[(er+4>>2)+_];if(0==(0|vr))break;if(vr>>>0>2]>>>0)throw Ka(),"Reached an unreachable!";Se[i+5]=vr,Se[vr+24>>2]=B}while(0);var tr=a+(M|b)|0,fr=M+w|0}else var tr=u,fr=w;var fr,tr,_r=tr+4|0,sr=Se[_r>>2]&-2;if(Se[_r>>2]=sr,Se[v+(s+1)]=1|fr,Se[(fr>>2)+s+v]=fr,fr>>>0<256){var nr=fr>>>2&1073741822,or=(nr<<2)+vi+40|0,lr=Me[vi>>2],br=1<<(fr>>>3),kr=0==(lr&br|0);do{if(!kr){var ur=(nr+2<<2)+vi+40|0,cr=Me[ur>>2];if(cr>>>0>=Me[vi+16>>2]>>>0){var hr=cr,dr=ur;break}throw Ka(),"Reached an unreachable!"}Se[vi>>2]=lr|br;var hr=or,dr=(nr+2<<2)+vi+40|0}while(0);var dr,hr;Se[dr>>2]=d,Se[hr+12>>2]=d,Se[v+(s+2)]=hr,Se[v+(s+3)]=or}else{var wr=h,pr=fr>>>8,Er=0==(0|pr);do if(Er)var Ar=0;else{if(fr>>>0>16777215){var Ar=31;break}var gr=(pr+1048320|0)>>>16&8,yr=pr<>>16&4,Sr=yr<>>16&2,Cr=14-(mr|gr|Mr)+(Sr<>>15)|0,Ar=fr>>>((Cr+7|0)>>>0)&1|Cr<<1}while(0);var Ar,Rr=(Ar<<2)+vi+304|0;Se[v+(s+7)]=Ar;var Tr=c+(r+16)|0;Se[v+(s+5)]=0,Se[Tr>>2]=0;var Or=Se[vi+4>>2],Nr=1<>2]=Ir,Se[Rr>>2]=wr,Se[v+(s+6)]=Rr,Se[v+(s+3)]=wr,Se[v+(s+2)]=wr}else{if(31==(0|Ar))var Pr=0;else var Pr=25-(Ar>>>1)|0;for(var Pr,Dr=fr<>2];;){var Lr,Dr;if((Se[Lr+4>>2]&-8|0)==(0|fr)){var Fr=Lr+8|0,Xr=Me[Fr>>2],jr=Me[vi+16>>2],Ur=Lr>>>0>>0;do if(!Ur){if(Xr>>>0>>0)break;Se[Xr+12>>2]=wr,Se[Fr>>2]=wr,Se[v+(s+2)]=Xr,Se[v+(s+3)]=Lr,Se[v+(s+6)]=0;break r}while(0);throw Ka(),"Reached an unreachable!"}var xr=(Dr>>>31<<2)+Lr+16|0,zr=Me[xr>>2];if(0==(0|zr)){if(xr>>>0>=Me[vi+16>>2]>>>0){Se[xr>>2]=wr,Se[v+(s+6)]=Lr,Se[v+(s+3)]=wr,Se[v+(s+2)]=wr;break r}throw Ka(),"Reached an unreachable!"}var Dr=Dr<<1,Lr=zr}}}}while(0);return r+(8|o)|0}function wa(r){return 0|He.__str3342}function pa(r){return 0|He.__str14343}function Ea(r){Se[r>>2]=si+8|0}function Aa(r){0!=(0|r)&&va(r)}function ga(r){ya(r);var a=r;Aa(a)}function ya(r){var a=0|r;Ye(a)}function ma(r){var a=0|r;Ea(a),Se[r>>2]=ni+8|0}function Sa(r){var a=0|r;ya(a);var e=r;Aa(e)}function Ma(r,a){var e,i,v=Me[vi+24>>2],i=v>>2,t=v,f=ua(t),_=Se[f>>2],s=Se[f+4>>2],n=_+s|0,o=_+(s-39)|0;if(0==(7&o|0))var l=0;else var l=7&-o;var l,b=_+(s-47)+l|0,k=b>>>0<(v+16|0)>>>0?t:b,u=k+8|0,e=u>>2,c=u,h=r,d=a-40|0;ca(h,d);var w=k+4|0;Se[w>>2]=27,Se[e]=Se[vi+444>>2],Se[e+1]=Se[vi+448>>2],Se[e+2]=Se[vi+452>>2],Se[e+3]=Se[vi+456>>2],Se[vi+444>>2]=r,Se[vi+448>>2]=a,Se[vi+456>>2]=0,Se[vi+452>>2]=c;var p=k+28|0;Se[p>>2]=7;var E=(k+32|0)>>>0>>0;r:do if(E)for(var A=p;;){var A,g=A+4|0;if(Se[g>>2]=7,(A+8|0)>>>0>=n>>>0)break r;var A=g}while(0);var y=(0|k)==(0|t);r:do if(!y){var m=k-v|0,S=t+m|0,M=m+(t+4)|0,C=Se[M>>2]&-2;Se[M>>2]=C;var R=1|m;Se[i+1]=R;var T=S;if(Se[T>>2]=m,m>>>0<256){var O=m>>>2&1073741822,N=(O<<2)+vi+40|0,I=Me[vi>>2],P=1<<(m>>>3),D=0==(I&P|0);do{if(!D){var L=(O+2<<2)+vi+40|0,F=Me[L>>2];if(F>>>0>=Me[vi+16>>2]>>>0){var X=F,j=L;break}throw Ka(),"Reached an unreachable!"}var U=I|P;Se[vi>>2]=U;var X=N,j=(O+2<<2)+vi+40|0}while(0);var j,X;Se[j>>2]=v,Se[X+12>>2]=v,Se[i+2]=X,Se[i+3]=N}else{var x=v,z=m>>>8,V=0==(0|z);do if(V)var B=0;else{if(m>>>0>16777215){var B=31;break}var H=(z+1048320|0)>>>16&8,K=z<>>16&4,G=K<>>16&2,Z=14-(Y|H|W)+(G<>>15)|0,B=m>>>((Z+7|0)>>>0)&1|Z<<1}while(0);var B,Q=(B<<2)+vi+304|0;Se[i+7]=B,Se[i+5]=0,Se[i+4]=0;var q=Se[vi+4>>2],$=1<>2]=J,Se[Q>>2]=x,Se[i+6]=Q,Se[i+3]=v,Se[i+2]=v}else{if(31==(0|B))var rr=0;else var rr=25-(B>>>1)|0;for(var rr,ar=m<>2];;){var er,ar;if((Se[er+4>>2]&-8|0)==(0|m)){var ir=er+8|0,vr=Me[ir>>2],tr=Me[vi+16>>2],fr=er>>>0>>0;do if(!fr){if(vr>>>0>>0)break;Se[vr+12>>2]=x,Se[ir>>2]=x,Se[i+2]=vr,Se[i+3]=er,Se[i+6]=0;break r}while(0);throw Ka(),"Reached an unreachable!"}var _r=(ar>>>31<<2)+er+16|0,sr=Me[_r>>2];if(0==(0|sr)){if(_r>>>0>=Me[vi+16>>2]>>>0){Se[_r>>2]=x,Se[i+6]=er,Se[i+3]=v,Se[i+2]=v;break r}throw Ka(),"Reached an unreachable!"}var ar=ar<<1,er=sr}}}}while(0)}function Ca(r){return d(r)}function Ra(r,a){var e=0;do Ae[r+e]=Ae[a+e],e++;while(0!=Ae[a+e-1]);return r}function Ta(){var r=Ta;return r.LLVM_SAVEDSTACKS||(r.LLVM_SAVEDSTACKS=[]),r.LLVM_SAVEDSTACKS.push(le.stackSave()),r.LLVM_SAVEDSTACKS.length-1}function Oa(r){var a=Ta,e=a.LLVM_SAVEDSTACKS[r];a.LLVM_SAVEDSTACKS.splice(r,1),le.stackRestore(e)}function Na(r,a,e){for(var i=0;it?1:-1;i++}return 0}function Ia(r,a){var e=Ca(r),i=0;do Ae[r+e+i]=Ae[a+i],i++;while(0!=Ae[a+i-1]);return r}function Pa(r,a,e,i){if(e>=20&&a%2==r%2)if(a%4==r%4){for(var v=a+e;a%4;)Ae[r++]=Ae[a++];for(var t=a>>2,f=r>>2,_=v>>2;t<_;)Se[f++]=Se[t++];for(a=t<<2,r=f<<2;a>1,n=r>>1,o=v>>1;st?1:-1}return 0}function Fa(r,a,e,i){if(e>=20){for(var v=r+e;r%4;)Ae[r++]=a;a<0&&(a+=256);for(var t=r>>2,f=v>>2,_=a|a<<8|a<<16|a<<24;t>2],xe[1]=Se[a+_+4>>2],e=ze[0]):"i64"==r?e=[Se[a+_>>2],Se[a+_+4>>2]]:(r="i32",e=Se[a+_>>2]),_+=le.getNativeFieldSize(r),e}for(var i,v,t,f=r,_=0,s=[];;){var n=f;if(i=Ae[f],0===i)break;if(v=Ae[f+1],i=="%".charCodeAt(0)){var o=!1,l=!1,b=!1,k=!1;r:for(;;){switch(v){case"+".charCodeAt(0):o=!0;break;case"-".charCodeAt(0):l=!0;break;case"#".charCodeAt(0):b=!0;break;case"0".charCodeAt(0):if(k)break r;k=!0;break;default:break r}f++,v=Ae[f+1]}var u=0;if(v=="*".charCodeAt(0))u=e("i32"),f++,v=Ae[f+1];else for(;v>="0".charCodeAt(0)&&v<="9".charCodeAt(0);)u=10*u+(v-"0".charCodeAt(0)),f++,v=Ae[f+1];var c=!1;if(v==".".charCodeAt(0)){var h=0;if(c=!0,f++,v=Ae[f+1],v=="*".charCodeAt(0))h=e("i32"),f++;else for(;;){var d=Ae[f+1];if(d<"0".charCodeAt(0)||d>"9".charCodeAt(0))break;h=10*h+(d-"0".charCodeAt(0)),f++}v=Ae[f+1]}else var h=6;var E;switch(String.fromCharCode(v)){case"h":var A=Ae[f+2];A=="h".charCodeAt(0)?(f++,E=1):E=2;break;case"l":var A=Ae[f+2];A=="l".charCodeAt(0)?(f++,E=8):E=4;break;case"L":case"q":case"j":E=8;break;case"z":case"t":case"I":E=4;break;default:E=null}if(E&&f++,v=Ae[f+1],["d","i","u","o","x","X","p"].indexOf(String.fromCharCode(v))!=-1){var m=v=="d".charCodeAt(0)||v=="i".charCodeAt(0);E=E||4;var t=e("i"+8*E);if(8==E&&(t=le.makeBigInt(t[0],t[1],v=="u".charCodeAt(0))),E<=4){var S=Math.pow(256,E)-1;t=(m?y:g)(t&S,8*E)}var M,C=Math.abs(t),R="";if(v=="d".charCodeAt(0)||v=="i".charCodeAt(0))M=y(t,8*E,1).toString(10);else if(v=="u".charCodeAt(0))M=g(t,8*E,1).toString(10),t=Math.abs(t);else if(v=="o".charCodeAt(0))M=(b?"0":"")+C.toString(8);else if(v=="x".charCodeAt(0)||v=="X".charCodeAt(0)){if(R=b?"0x":"",t<0){t=-t,M=(C-1).toString(16);for(var T=[],O=0;OP&&P>=-4?(v=(v=="g".charCodeAt(0)?"f":"F").charCodeAt(0),h-=P+1):(v=(v=="g".charCodeAt(0)?"e":"E").charCodeAt(0),h--),I=Math.min(h,20)}v=="e".charCodeAt(0)||v=="E".charCodeAt(0)?(M=t.toExponential(I),/[eE][-+]\\\\d$/.test(M)&&(M=M.slice(0,-1)+"0"+M.slice(-1))):v!="f".charCodeAt(0)&&v!="F".charCodeAt(0)||(M=t.toFixed(I));var D=M.split("e");if(N&&!b)for(;D[0].length>1&&D[0].indexOf(".")!=-1&&("0"==D[0].slice(-1)||"."==D[0].slice(-1));)D[0]=D[0].slice(0,-1);else for(b&&M.indexOf(".")==-1&&(D[0]+=".");h>I++;)D[0]+="0";M=D[0]+(D.length>1?"e"+D[1]:""),v=="E".charCodeAt(0)&&(M=M.toUpperCase()),o&&t>=0&&(M="+"+M)}else M=(t<0?"-":"")+"inf",k=!1;for(;M.lengthh&&(L=L.slice(0,h))):L=p("(null)",!0),!l)for(;L.length0;)s.push(" ".charCodeAt(0));l||s.push(e("i8"))}else if(v=="n".charCodeAt(0)){var X=e("i32*");Se[X>>2]=s.length}else if(v=="%".charCodeAt(0))s.push(i);else for(var O=n;O="0".charCodeAt(0)&&r<="9".charCodeAt(0)}function Ha(r){for(var a;(a=Ae[r])&&Va(a);)r++;if(!a||!Ba(a))return 0;for(var e=r;(a=Ae[e])&&Ba(a);)e++;return Math.floor(Number(s(r).substr(0,e-r)))}function Ka(r){throw ke=!0,"ABORT: "+r+", at "+(new Error).stack}function Ya(r){return Ya.ret||(Ya.ret=_([0],"i32",we)),Se[Ya.ret>>2]=r,r}function Ga(r,a,e,i){var v=$e.streams[r];if(!v||v.object.isDevice)return Ya(Ge.EBADF),-1;if(v.isWrite){if(v.object.isFolder)return Ya(Ge.EISDIR),-1;if(e<0||i<0)return Ya(Ge.EINVAL),-1;for(var t=v.object.contents;t.length>2]=a),a}function Ja(){return Ya.ret}function re(r){var a=re;a.called||(Ie=o(Ie),a.called=!0);var e=Ie;return 0!=r&&le.staticAlloc(r),e}function ae(){return Se[ae.buf>>2]}function ee(r){r=r||Module.arguments,k();var a=null;return Module._main&&(a=Module.callMain(r),Module.noExitRuntime||u()),a}var ie=[],ve=false,te="object"==typeof window,fe="function"==typeof importScripts,_e=!te&&!ve&&!fe;if(ve){print=function(r){process.stdout.write(r+"\\\\n")},printErr=function(r){process.stderr.write(r+"\\\\n")};var se=require("fs");read=function(r){var a=se.readFileSync(r).toString();return a||"/"==r[0]||(r=__dirname.split("/").slice(0,-1).join("/")+"/src/"+r,a=se.readFileSync(r).toString()),a},load=function(a){r(read(a))},ie=process.argv.slice(2)}else if(_e)this.read||(this.read=function(r){snarf(r)}),"undefined"!=typeof scriptArgs?ie=scriptArgs:"undefined"!=typeof arguments&&(ie=arguments);else if(te)this.print=printErr=function(r){console.log(r)},this.read=function(r){var a=new XMLHttpRequest;return a.open("GET",r,!1),a.send(null),a.responseText},this.arguments&&(ie=arguments);else{if(!fe)throw"Unknown runtime environment. Where are we?";this.load=importScripts}"undefined"==typeof load&&"undefined"!=typeof read&&(this.load=function(a){r(read(a))}),"undefined"==typeof printErr&&(this.printErr=function(){}),"undefined"==typeof print&&(this.print=printErr);try{this.Module=Module}catch(r){this.Module=Module={}}Module.arguments||(Module.arguments=ie),Module.print&&(print=Module.print);var ne,oe,le={stackSave:function(){return Oe},stackRestore:function(r){Oe=r},forceAlign:function(r,a){if(a=a||4,1==a)return r;if(isNumber(r)&&isNumber(a))return Math.ceil(r/a)*a;if(isNumber(a)&&isPowerOfTwo(a)){var e=log2(a);return"(((("+r+")+"+(a-1)+")>>"+e+")<<"+e+")"}return"Math.ceil(("+r+")/"+a+")*"+a},isNumberType:function(r){return r in le.INT_TYPES||r in le.FLOAT_TYPES},isPointerType:function(r){return"*"==r[r.length-1]},isStructType:function(r){return!isPointerType(r)&&(!!/^\\\\[\\\\d+\\\\ x\\\\ (.*)\\\\]/.test(r)||(!!/?/.test(r)||"%"==r[0]))},INT_TYPES:{i1:0,i8:0,i16:0,i32:0,i64:0},FLOAT_TYPES:{float:0,double:0},bitshift64:function(r,e,i,v){var t=Math.pow(2,v)-1;if(v<32)switch(i){case"shl":return[r<>>32-v];case"ashr":return[(r>>>v|(e&t)<<32-v)>>0>>>0,e>>v>>>0];case"lshr":return[(r>>>v|(e&t)<<32-v)>>>0,e>>>v]}else if(32==v)switch(i){case"shl":return[0,r];case"ashr":return[e,(0|e)<0?t:0];case"lshr":return[e,0]}else switch(i){case"shl":return[0,r<>v-32>>>0,(0|e)<0?t:0];case"lshr":return[e>>>v-32,0]}a("unknown bitshift64 op: "+[value,i,v])},or64:function(r,a){var e=0|r|(0|a),i=4294967296*(Math.round(r/4294967296)|Math.round(a/4294967296));return e+i},and64:function(r,a){var e=(0|r)&(0|a),i=4294967296*(Math.round(r/4294967296)&Math.round(a/4294967296));return e+i},xor64:function(r,a){var e=(0|r)^(0|a),i=4294967296*(Math.round(r/4294967296)^Math.round(a/4294967296));return e+i},getNativeTypeSize:function(r,a){if(1==le.QUANTUM_SIZE)return 1;var i={"%i1":1,"%i8":1,"%i16":2,"%i32":4,"%i64":8,"%float":4,"%double":8}["%"+r];if(!i)if("*"==r[r.length-1])i=le.QUANTUM_SIZE;else if("i"==r[0]){var v=parseInt(r.substr(1));e(v%8==0),i=v/8}return i},getNativeFieldSize:function(r){return Math.max(le.getNativeTypeSize(r),le.QUANTUM_SIZE)},dedup:function(r,a){var e={};return a?r.filter(function(r){return!e[r[a]]&&(e[r[a]]=!0,!0)}):r.filter(function(r){return!e[r]&&(e[r]=!0,!0)})},set:function(){for(var r="object"==typeof arguments[0]?arguments[0]:arguments,a={},e=0;e=0&&a.push(f-e),e=f,f}),r.flatSize=le.alignMemory(r.flatSize,r.alignSize),0==a.length?r.flatFactor=r.flatSize:1==le.dedup(a).length&&(r.flatFactor=a[0]),r.needsFlattening=1!=r.flatFactor,r.flatIndexes},generateStructInfo:function(r,a,i){var v,t;if(a){if(i=i||0,v=("undefined"==typeof Types?le.typeInfo:Types.types)[a],!v)return null;e(v.fields.length===r.length,"Number of named fields must match the type for "+a),t=v.flatIndexes}else{var v={fields:r.map(function(r){return r[0]})};t=le.calculateStructAlignment(v)}var f={__size__:v.flatSize};return a?r.forEach(function(r,a){if("string"==typeof r)f[r]=t[a]+i;else{var e;for(var _ in r)e=_;f[e]=le.generateStructInfo(r[e],v.fields[a],t[a])}}):r.forEach(function(r,a){f[r[1]]=t[a]}),f},stackAlloc:function(r){var a=Oe;return Oe+=r,Oe=Oe+3>>2<<2,a},staticAlloc:function(r){var a=Ie;return Ie+=r,Ie=Ie+3>>2<<2,Ie>=Le&&l(),a},alignMemory:function(r,a){var e=r=Math.ceil(r/(a?a:4))*(a?a:4);return e},makeBigInt:function(r,a,e){var i=e?(r>>>0)+4294967296*(a>>>0):(r>>>0)+4294967296*(0|a);return i},QUANTUM_SIZE:4,__dummy__:0},be={MAX_ALLOWED:0,corrections:0,sigs:{},note:function(r,e,i){e||(this.corrections++,this.corrections>=this.MAX_ALLOWED&&a("\\\\n\\\\nToo many corrections!"))},print:function(){}},ke=!1,ue=0,ce=this;Module.ccall=i,Module.setValue=t,Module.getValue=f;var he=0,de=1,we=2;Module.ALLOC_NORMAL=he,Module.ALLOC_STACK=de,Module.ALLOC_STATIC=we,Module.allocate=_,Module.Pointer_stringify=s,Module.Array_stringify=n;var pe,Ee,Ae,ge,ye,me,Se,Me,Ce,Re,Te,Oe,Ne,Ie,Pe=4096,De=Module.TOTAL_STACK||5242880,Le=Module.TOTAL_MEMORY||10485760;Module.FAST_MEMORY||2097152;e(!!(Int32Array&&Float64Array&&new Int32Array(1).subarray&&new Int32Array(1).set),"Cannot fallback to non-typed array case: Code is too specialized");var Fe=new ArrayBuffer(Le);Ae=new Int8Array(Fe),ye=new Int16Array(Fe),Se=new Int32Array(Fe),ge=new Uint8Array(Fe),me=new Uint16Array(Fe),Me=new Uint32Array(Fe),Ce=new Float32Array(Fe),Re=new Float64Array(Fe),Se[0]=255,e(255===ge[0]&&0===ge[3],"Typed arrays 2 must be run on a little-endian system");var Xe=p("(null)");Ie=Xe.length;for(var je=0;je>2)),ze=(Ce.subarray(Ue>>2),Re.subarray(Ue>>3));Ne=Ue+8,Ie=o(Ne);var Ve=[],Be=[];Module.Array_copy=c,Module.TypedArray_copy=h,Module.String_len=d,Module.String_copy=w,Module.intArrayFromString=p,Module.intArrayToString=E,Module.writeStringToMemory=A;var He=[],Ke=0;O.X=1,N.X=1,V.X=1,H.X=1,G.X=1,W.X=1,q.X=1,$.X=1,rr.X=1,ar.X=1,er.X=1,vr.X=1,nr.X=1,or.X=1,kr.X=1,hr.X=1,Ar.X=1,Sr.X=1,Tr.X=1,Ir.X=1,Pr.X=1,Dr.X=1,Lr.X=1,Fr.X=1,Xr.X=1,zr.X=1,Vr.X=1,Br.X=1,Gr.X=1,$r.X=1,Module._malloc=Jr,Jr.X=1,ra.X=1,aa.X=1,ea.X=1,ia.X=1,Module._free=va,va.X=1,_a.X=1,sa.X=1,na.X=1,oa.X=1,la.X=1,da.X=1,Ma.X=1;var Ye,Ge={E2BIG:7,EACCES:13,EADDRINUSE:98,EADDRNOTAVAIL:99,EAFNOSUPPORT:97,EAGAIN:11,EALREADY:114,EBADF:9,EBADMSG:74,EBUSY:16,ECANCELED:125,ECHILD:10,ECONNABORTED:103,ECONNREFUSED:111,ECONNRESET:104,EDEADLK:35,EDESTADDRREQ:89,EDOM:33,EDQUOT:122,EEXIST:17,EFAULT:14,EFBIG:27,EHOSTUNREACH:113,EIDRM:43,EILSEQ:84,EINPROGRESS:115,EINTR:4,EINVAL:22,EIO:5,EISCONN:106,EISDIR:21,ELOOP:40,EMFILE:24,EMLINK:31,EMSGSIZE:90,EMULTIHOP:72,ENAMETOOLONG:36,ENETDOWN:100,ENETRESET:102,ENETUNREACH:101,ENFILE:23,ENOBUFS:105,ENODATA:61,ENODEV:19,ENOENT:2,ENOEXEC:8,ENOLCK:37,ENOLINK:67,ENOMEM:12,ENOMSG:42,ENOPROTOOPT:92,ENOSPC:28,ENOSR:63,ENOSTR:60,ENOSYS:38,ENOTCONN:107,ENOTDIR:20,ENOTEMPTY:39,ENOTRECOVERABLE:131,ENOTSOCK:88,ENOTSUP:95,ENOTTY:25,ENXIO:6,EOVERFLOW:75,EOWNERDEAD:130,EPERM:1,EPIPE:32,EPROTO:71,EPROTONOSUPPORT:93,EPROTOTYPE:91,ERANGE:34,EROFS:30,ESPIPE:29,ESRCH:3,ESTALE:116,ETIME:62,ETIMEDOUT:110,ETXTBSY:26,EWOULDBLOCK:11,EXDEV:18},We=0,Ze=0,Qe=0,qe=0,$e={currentPath:"/",nextInode:2,streams:[null],ignorePermissions:!0,absolutePath:function(r,a){if("string"!=typeof r)return null;void 0===a&&(a=$e.currentPath),r&&"/"==r[0]&&(a="");for(var e=a+"/"+r,i=e.split("/").reverse(),v=[""];i.length;){var t=i.pop();""==t||"."==t||(".."==t?v.length>1&&v.pop():v.push(t))}return 1==v.length?"/":v.join("/")},analyzePath:function(r,a,e){var i={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};if(r=$e.absolutePath(r),"/"==r)i.isRoot=!0,i.exists=i.parentExists=!0,i.name="/",i.path=i.parentPath="/",i.object=i.parentObject=$e.root;else if(null!==r){e=e||0,r=r.slice(1).split("/");for(var v=$e.root,t=[""];r.length;){1==r.length&&v.isFolder&&(i.parentExists=!0,i.parentPath=1==t.length?"/":t.join("/"),i.parentObject=v,i.name=r[0]);var f=r.shift();if(!v.isFolder){i.error=Ge.ENOTDIR;break}if(!v.read){i.error=Ge.EACCES;break}if(!v.contents.hasOwnProperty(f)){i.error=Ge.ENOENT;break}if(v=v.contents[f],v.link&&(!a||0!=r.length)){if(e>40){i.error=Ge.ELOOP;break}var _=$e.absolutePath(v.link,t.join("/"));return $e.analyzePath([_].concat(r).join("/"),a,e+1)}t.push(f),0==r.length&&(i.exists=!0,i.path=t.join("/"),i.object=v)}return i}return i},findObject:function(r,a){$e.ensureRoot();var e=$e.analyzePath(r,a);return e.exists?e.object:(Ya(e.error),null)},createObject:function(r,a,e,i,v){if(r||(r="/"),"string"==typeof r&&(r=$e.findObject(r)),!r)throw Ya(Ge.EACCES),new Error("Parent path must exist.");if(!r.isFolder)throw Ya(Ge.ENOTDIR),\nnew Error("Parent must be a folder.");if(!r.write&&!$e.ignorePermissions)throw Ya(Ge.EACCES),new Error("Parent folder must be writeable.");if(!a||"."==a||".."==a)throw Ya(Ge.ENOENT),new Error("Name must not be empty.");if(r.contents.hasOwnProperty(a))throw Ya(Ge.EEXIST),new Error("Can\'t overwrite object.");r.contents[a]={read:void 0===i||i,write:void 0!==v&&v,timestamp:Date.now(),inodeNumber:$e.nextInode++};for(var t in e)e.hasOwnProperty(t)&&(r.contents[a][t]=e[t]);return r.contents[a]},createFolder:function(r,a,e,i){var v={isFolder:!0,isDevice:!1,contents:{}};return $e.createObject(r,a,v,e,i)},createPath:function(r,a,e,i){var v=$e.findObject(r);if(null===v)throw new Error("Invalid parent.");for(a=a.split("/").reverse();a.length;){var t=a.pop();t&&(v.contents.hasOwnProperty(t)||$e.createFolder(v,t,e,i),v=v.contents[t])}return v},createFile:function(r,a,e,i,v){return e.isFolder=!1,$e.createObject(r,a,e,i,v)},createDataFile:function(r,a,e,i,v){if("string"==typeof e){for(var t=new Array(e.length),f=0,_=e.length;f<_;++f)t[f]=e.charCodeAt(f);e=t}var s={isDevice:!1,contents:e};return $e.createFile(r,a,s,i,v)},createLazyFile:function(r,a,e,i,v){var t={isDevice:!1,url:e};return $e.createFile(r,a,t,i,v)},createLink:function(r,a,e,i,v){var t={isDevice:!1,link:e};return $e.createFile(r,a,t,i,v)},createDevice:function(r,a,e,i){if(!e&&!i)throw new Error("A device must have at least one callback defined.");var v={isDevice:!0,input:e,output:i};return $e.createFile(r,a,v,Boolean(e),Boolean(i))},forceLoadFile:function(r){if(r.isDevice||r.isFolder||r.link||r.contents)return!0;var a=!0;if("undefined"!=typeof XMLHttpRequest)e("Cannot do synchronous binary XHRs in modern browsers. Use --embed-file or --preload-file in emcc");else{if("undefined"==typeof read)throw new Error("Cannot load without read() or XMLHttpRequest.");try{r.contents=p(read(r.url),!0)}catch(r){a=!1}}return a||Ya(Ge.EIO),a},ensureRoot:function(){$e.root||($e.root={read:!0,write:!0,isFolder:!0,isDevice:!1,timestamp:Date.now(),inodeNumber:1,contents:{}})},init:function(r,a,i){function v(r){null===r||r==="\\\\n".charCodeAt(0)?(a.printer(a.buffer.join("")),a.buffer=[]):a.buffer.push(String.fromCharCode(r))}e(!$e.init.initialized,"FS.init was previously called. If you want to initialize later with custom parameters, remove any earlier calls (note that one is automatically added to the generated code)"),$e.init.initialized=!0,$e.ensureRoot(),r=r||Module.stdin,a=a||Module.stdout,i=i||Module.stderr;var t=!0,f=!0,s=!0;r||(t=!1,r=function(){if(!r.cache||!r.cache.length){var a;"undefined"!=typeof window&&"function"==typeof window.prompt?a=window.prompt("Input: "):"function"==typeof readline&&(a=readline()),a||(a=""),r.cache=p(a+"\\\\n",!0)}return r.cache.shift()}),a||(f=!1,a=v),a.printer||(a.printer=print),a.buffer||(a.buffer=[]),i||(s=!1,i=v),i.printer||(i.printer=print),i.buffer||(i.buffer=[]),$e.createFolder("/","tmp",!0,!0);var n=$e.createFolder("/","dev",!0,!0),o=$e.createDevice(n,"stdin",r),l=$e.createDevice(n,"stdout",null,a),b=$e.createDevice(n,"stderr",null,i);$e.createDevice(n,"tty",r,a),$e.streams[1]={path:"/dev/stdin",object:o,position:0,isRead:!0,isWrite:!1,isAppend:!1,isTerminal:!t,error:!1,eof:!1,ungotten:[]},$e.streams[2]={path:"/dev/stdout",object:l,position:0,isRead:!1,isWrite:!0,isAppend:!1,isTerminal:!f,error:!1,eof:!1,ungotten:[]},$e.streams[3]={path:"/dev/stderr",object:b,position:0,isRead:!1,isWrite:!0,isAppend:!1,isTerminal:!s,error:!1,eof:!1,ungotten:[]},We=_([1],"void*",we),Ze=_([2],"void*",we),Qe=_([3],"void*",we),$e.createPath("/","dev/shm/tmp",!0,!0),$e.streams[We]=$e.streams[1],$e.streams[Ze]=$e.streams[2],$e.streams[Qe]=$e.streams[3],qe=_([_([0,0,0,0,We,0,0,0,Ze,0,0,0,Qe,0,0,0],"void*",we)],"void*",we)},quit:function(){$e.init.initialized&&($e.streams[2]&&$e.streams[2].object.output.buffer.length>0&&$e.streams[2].object.output("\\\\n".charCodeAt(0)),$e.streams[3]&&$e.streams[3].object.output.buffer.length>0&&$e.streams[3].object.output("\\\\n".charCodeAt(0)))}},Je=Ja;Ve.unshift({func:function(){$e.ignorePermissions=!1,$e.init.initialized||$e.init()}}),Be.push({func:function(){$e.quit()}}),Ya(0),ae.buf=_(12,"void*",we),Module.callMain=function(r){function a(){for(var r=0;r<3;r++)i.push(0)}var e=r.length+1,i=[_(p("/bin/this.program"),"i8",we)];a();for(var v=0;v>2]=0|He.__str,Se[ri+4>>2]=0|He.__str1,Se[ri+16>>2]=0|He.__str2,Se[ri+20>>2]=0|He.__str3,Se[ri+32>>2]=0|He.__str4,Se[ri+36>>2]=0|He.__str5,Se[ri+48>>2]=0|He.__str6,Se[ri+52>>2]=0|He.__str7,Se[ri+64>>2]=0|He.__str8,Se[ri+68>>2]=0|He.__str7,Se[ri+80>>2]=0|He.__str9,Se[ri+84>>2]=0|He.__str10,Se[ri+96>>2]=0|He.__str11,Se[ri+100>>2]=0|He.__str12,Se[ri+112>>2]=0|He.__str13,Se[ri+116>>2]=0|He.__str14,Se[ri+128>>2]=0|He.__str15,Se[ri+132>>2]=0|He.__str16,Se[ri+144>>2]=0|He.__str17,Se[ri+148>>2]=0|He.__str18,Se[ri+160>>2]=0|He.__str19,Se[ri+164>>2]=0|He.__str20,Se[ri+176>>2]=0|He.__str21,Se[ri+180>>2]=0|He.__str22,Se[ri+192>>2]=0|He.__str23,Se[ri+196>>2]=0|He.__str24,Se[ri+208>>2]=0|He.__str25,Se[ri+212>>2]=0|He.__str26,Se[ri+224>>2]=0|He.__str27,Se[ri+228>>2]=0|He.__str28,Se[ri+240>>2]=0|He.__str29,Se[ri+244>>2]=0|He.__str30,Se[ri+256>>2]=0|He.__str31,Se[ri+260>>2]=0|He.__str32,Se[ri+272>>2]=0|He.__str33,Se[ri+276>>2]=0|He.__str34,Se[ri+288>>2]=0|He.__str35,Se[ri+292>>2]=0|He.__str36,Se[ri+304>>2]=0|He.__str37,Se[ri+308>>2]=0|He.__str38,Se[ri+320>>2]=0|He.__str39,Se[ri+324>>2]=0|He.__str40,Se[ri+336>>2]=0|He.__str41,Se[ri+340>>2]=0|He.__str42,Se[ri+352>>2]=0|He.__str43,Se[ri+356>>2]=0|He.__str44,Se[ri+368>>2]=0|He.__str45,Se[ri+372>>2]=0|He.__str46,Se[ri+384>>2]=0|He.__str47,Se[ri+388>>2]=0|He.__str48,Se[ri+400>>2]=0|He.__str49,Se[ri+404>>2]=0|He.__str119289,Se[ri+416>>2]=0|He.__str51,Se[ri+420>>2]=0|He.__str20,Se[ri+432>>2]=0|He.__str52,Se[ri+436>>2]=0|He.__str53,Se[ri+448>>2]=0|He.__str54,Se[ri+452>>2]=0|He.__str55,Se[ri+464>>2]=0|He.__str56,Se[ri+468>>2]=0|He.__str57,Se[ri+480>>2]=0|He.__str58,Se[ri+484>>2]=0|He.__str119289,Se[ri+496>>2]=0|He.__str59,Se[ri+500>>2]=0|He.__str60,Se[ri+512>>2]=0|He.__str61,Se[ri+516>>2]=0|He.__str62,Se[ri+528>>2]=0|He.__str63,Se[ri+532>>2]=0|He.__str64,Se[ri+544>>2]=0|He.__str65,Se[ri+548>>2]=0|He.__str66,Se[ri+560>>2]=0|He.__str67,Se[ri+564>>2]=0|He.__str68,Se[ri+576>>2]=0|He.__str69,Se[ri+580>>2]=0|He.__str70,Se[ri+592>>2]=0|He.__str71,Se[ri+596>>2]=0|He.__str72,Se[ri+608>>2]=0|He.__str73,Se[ri+612>>2]=0|He.__str74,Se[ri+624>>2]=0|He.__str75,Se[ri+628>>2]=0|He.__str76,Se[ri+640>>2]=0|He.__str77,Se[ri+644>>2]=0|He.__str72,Se[ri+656>>2]=0|He.__str78,Se[ri+660>>2]=0|He.__str79,Se[ri+672>>2]=0|He.__str80,Se[ri+676>>2]=0|He.__str81,Se[ri+688>>2]=0|He.__str82,Se[ri+692>>2]=0|He.__str83,Se[ri+704>>2]=0|He.__str84,Se[ri+708>>2]=0|He.__str85,Se[ri+720>>2]=0|He.__str86,Se[ri+724>>2]=0|He.__str87,Se[ri+736>>2]=0|He.__str88,Se[ri+740>>2]=0|He.__str89,Se[ri+752>>2]=0|He.__str90,Se[ri+756>>2]=0|He.__str91,Se[ri+768>>2]=0|He.__str92,Se[ri+772>>2]=0|He.__str91,Se[ai>>2]=0|He.__str145315,Se[ai+8>>2]=0|He.__str145315,Se[ai+20>>2]=0|He.__str167337,Se[ai+28>>2]=0|He.__str95,Se[ai+40>>2]=0|He.__str146316,Se[ai+48>>2]=0|He.__str97,Se[ai+60>>2]=0|He.__str155325,Se[ai+68>>2]=0|He.__str155325,Se[ai+80>>2]=0|He.__str156326,Se[ai+88>>2]=0|He.__str156326,Se[ai+100>>2]=0|He.__str154324,Se[ai+108>>2]=0|He.__str154324,Se[ai+120>>2]=0|He.__str101,Se[ai+128>>2]=0|He.__str101,Se[ai+140>>2]=0|He.__str147317,Se[ai+148>>2]=0|He.__str147317,Se[ai+160>>2]=0|He.__str150320,Se[ai+168>>2]=0|He.__str150320,Se[ai+180>>2]=0|He.__str151321,Se[ai+188>>2]=0|He.__str105,Se[ai+220>>2]=0|He.__str152322,Se[ai+228>>2]=0|He.__str152322,Se[ai+240>>2]=0|He.__str153323,Se[ai+248>>2]=0|He.__str153323,Se[ai+260>>2]=0|He.__str165335,Se[ai+268>>2]=0|He.__str165335,Se[ai+280>>2]=0|He.__str166336,Se[ai+288>>2]=0|He.__str166336,Se[ai+360>>2]=0|He.__str148318,Se[ai+368>>2]=0|He.__str148318,Se[ai+380>>2]=0|He.__str149319,Se[ai+388>>2]=0|He.__str149319,Se[ai+420>>2]=0|He.__str84254,Se[ai+428>>2]=0|He.__str84254,Se[ai+440>>2]=0|He.__str168338,Se[ai+448>>2]=0|He.__str146316,Se[ai+460>>2]=0|He.__str114,Se[ai+468>>2]=0|He.__str152322,Se[ai+480>>2]=0|He.__str115,Se[ai+488>>2]=0|He.__str115,Se[ai+500>>2]=0|He.__str110280,Se[ai+508>>2]=0|He.__str110280,Se[ei+4>>2]=0|He.__str152,Se[ei+12>>2]=0|He.__str152,Se[ei+32>>2]=0|He.__str153,Se[ei+40>>2]=0|He.__str153,Se[ei+48>>2]=0|He.__str154,Se[ei+60>>2]=0|He.__str155,Se[ei+68>>2]=0|He.__str155,Se[ei+76>>2]=0|He.__str156,Se[ei+88>>2]=0|He.__str157,Se[ei+96>>2]=0|He.__str158,Se[ei+104>>2]=0|He.__str156,Se[ei+116>>2]=0|He.__str159,Se[ei+124>>2]=0|He.__str160,Se[ei+132>>2]=0|He.__str161,Se[ei+144>>2]=0|He.__str162,Se[ei+152>>2]=0|He.__str163,Se[ei+160>>2]=0|He.__str164,Se[ei+172>>2]=0|He.__str165,Se[ei+180>>2]=0|He.__str166,Se[ei+188>>2]=0|He.__str167,Se[si+4>>2]=bi,Se[ni+4>>2]=ki,oi=_([2,0,0,0,0],["i8*",0,0,0,0],we),Se[bi>>2]=oi+8|0,Se[bi+4>>2]=0|He.__ZTSSt9bad_alloc,Se[bi+8>>2]=li,Se[ki>>2]=oi+8|0,Se[ki+4>>2]=0|He.__ZTSSt20bad_array_new_length,Se[ki+8>>2]=bi,ui=16,ci=6,hi=18,di=6,wi=6,pe=[0,0,Jr,0,va,0,ya,0,ga,0,wa,0,Sa,0,pa,0,Ea,0,ma,0],Module.FUNCTION_TABLE=pe,Module.run=ee,Module.preRun&&Module.preRun(),0==Ke){ee()}Module.postRun&&Module.postRun(),Module.___cxa_demangle=G;var pi=v("__cxa_demangle","string",["string","string","number","number"]);return function(r){return pi(r,"",1,0)}}();\n`;\n\n/***/ }),\n\n/***/ 121:\n/***/ ((__unused_webpack_module, exports, __webpack_require__) => {\n\n\n\nObject.defineProperty(exports, "__esModule", ({\n value: true\n}));\nexports.Flamechart = void 0;\n\nconst utils_1 = __webpack_require__(844);\n\nconst math_1 = __webpack_require__(293);\n\nclass Flamechart {\n constructor(source) {\n this.source = source; // Bottom to top\n\n this.layers = [];\n this.totalWeight = 0;\n this.minFrameWidth = 1;\n const stack = [];\n\n const openFrame = (node, value) => {\n const parent = utils_1.lastOf(stack);\n const frame = {\n node,\n parent,\n children: [],\n start: value,\n end: value\n };\n\n if (parent) {\n parent.children.push(frame);\n }\n\n stack.push(frame);\n };\n\n this.minFrameWidth = Infinity;\n\n const closeFrame = (node, value) => {\n console.assert(stack.length > 0);\n const stackTop = stack.pop();\n stackTop.end = value;\n if (stackTop.end - stackTop.start === 0) return;\n const layerIndex = stack.length;\n\n while (this.layers.length <= layerIndex) this.layers.push([]);\n\n this.layers[layerIndex].push(stackTop);\n this.minFrameWidth = Math.min(this.minFrameWidth, stackTop.end - stackTop.start);\n };\n\n this.totalWeight = source.getTotalWeight();\n source.forEachCall(openFrame, closeFrame);\n if (!isFinite(this.minFrameWidth)) this.minFrameWidth = 1;\n }\n\n getTotalWeight() {\n return this.totalWeight;\n }\n\n getLayers() {\n return this.layers;\n }\n\n getColorBucketForFrame(frame) {\n return this.source.getColorBucketForFrame(frame);\n }\n\n getMinFrameWidth() {\n return this.minFrameWidth;\n }\n\n formatValue(v) {\n return this.source.formatValue(v);\n }\n\n getClampedViewportWidth(viewportWidth) {\n const maxWidth = this.getTotalWeight(); // In order to avoid floating point error, we cap the maximum zoom. In\n // particular, it\'s important that at the maximum zoom level, the total\n // trace size + a viewport width is not equal to the trace size due to\n // floating point rounding.\n //\n // For instance, if the profile\'s total weight is 2^60, and the viewport\n // size is 1, trying to move one viewport width right will result in no\n // change because 2^60 + 1 = 2^60 in floating point arithmetic. JavaScript\n // numbers are 64 bit floats, and therefore have 53 mantissa bits. You can\n // see this for yourself in the console. Try:\n //\n // > Math.pow(2, 60) + 1 === Math.pow(2, 60)\n // true\n // > Math.pow(2, 53) + 1 === Math.pow(2, 53)\n // true\n // > Math.pow(2, 52) + 1 === Math.pow(2, 52)\n // false\n //\n // We use 2^40 as a cap instead, since we want to be able to make small\n // adjustments within a viewport width.\n //\n // For reference, this will still allow you to zoom until 1 nanosecond fills\n // the screen in a profile with a duration of over 18 minutes.\n //\n // > Math.pow(2, 40) / (60 * Math.pow(10, 9))\n // 18.325193796266667\n //\n\n const maxZoom = Math.pow(2, 40); // In addition to capping zoom to avoid floating point error, we further cap\n // zoom to avoid letting you zoom in so that the smallest element more than\n // fills the screen, since that probably isn\'t useful. The final zoom cap is\n // determined by the minimum zoom of either 2^40x zoom or the necessary zoom\n // for the smallest frame to fill the screen three times.\n\n const minWidth = math_1.clamp(3 * this.getMinFrameWidth(), maxWidth / maxZoom, maxWidth);\n return math_1.clamp(viewportWidth, minWidth, maxWidth);\n } // Given a desired config-space viewport rectangle, clamp the rectangle so\n // that it fits within the given flamechart. This prevents the viewport from\n // extending past the bounds of the flamechart or zooming in too far.\n\n\n getClampedConfigSpaceViewportRect({\n configSpaceViewportRect,\n renderInverted\n }) {\n const configSpaceSize = new math_1.Vec2(this.getTotalWeight(), this.getLayers().length);\n const width = this.getClampedViewportWidth(configSpaceViewportRect.size.x);\n const size = configSpaceViewportRect.size.withX(width);\n const origin = math_1.Vec2.clamp(configSpaceViewportRect.origin, new math_1.Vec2(0, renderInverted ? 0 : -1), math_1.Vec2.max(math_1.Vec2.zero, configSpaceSize.minus(size).plus(new math_1.Vec2(0, 1))));\n return new math_1.Rect(origin, configSpaceViewportRect.size.withX(width));\n }\n\n}\n\nexports.Flamechart = Flamechart;\n\n/***/ }),\n\n/***/ 293:\n/***/ ((__unused_webpack_module, exports) => {\n\n\n\nObject.defineProperty(exports, "__esModule", ({\n value: true\n}));\nexports.Rect = exports.AffineTransform = exports.Vec2 = exports.clamp = void 0;\n\nfunction clamp(x, minVal, maxVal) {\n if (x < minVal) return minVal;\n if (x > maxVal) return maxVal;\n return x;\n}\n\nexports.clamp = clamp;\n\nlet Vec2 =\n/** @class */\n(() => {\n class Vec2 {\n constructor(x, y) {\n this.x = x;\n this.y = y;\n }\n\n withX(x) {\n return new Vec2(x, this.y);\n }\n\n withY(y) {\n return new Vec2(this.x, y);\n }\n\n plus(other) {\n return new Vec2(this.x + other.x, this.y + other.y);\n }\n\n minus(other) {\n return new Vec2(this.x - other.x, this.y - other.y);\n }\n\n times(scalar) {\n return new Vec2(this.x * scalar, this.y * scalar);\n }\n\n timesPointwise(other) {\n return new Vec2(this.x * other.x, this.y * other.y);\n }\n\n dividedByPointwise(other) {\n return new Vec2(this.x / other.x, this.y / other.y);\n }\n\n dot(other) {\n return this.x * other.x + this.y * other.y;\n }\n\n equals(other) {\n return this.x === other.x && this.y === other.y;\n }\n\n approxEquals(other, epsilon = 1e-9) {\n return Math.abs(this.x - other.x) < epsilon && Math.abs(this.y - other.y) < epsilon;\n }\n\n length2() {\n return this.dot(this);\n }\n\n length() {\n return Math.sqrt(this.length2());\n }\n\n abs() {\n return new Vec2(Math.abs(this.x), Math.abs(this.y));\n }\n\n static min(a, b) {\n return new Vec2(Math.min(a.x, b.x), Math.min(a.y, b.y));\n }\n\n static max(a, b) {\n return new Vec2(Math.max(a.x, b.x), Math.max(a.y, b.y));\n }\n\n static clamp(v, min, max) {\n return new Vec2(clamp(v.x, min.x, max.x), clamp(v.y, min.y, max.y));\n }\n\n flatten() {\n return [this.x, this.y];\n }\n\n }\n\n Vec2.zero = new Vec2(0, 0);\n Vec2.unit = new Vec2(1, 1);\n return Vec2;\n})();\n\nexports.Vec2 = Vec2;\n\nclass AffineTransform {\n constructor(m00 = 1, m01 = 0, m02 = 0, m10 = 0, m11 = 1, m12 = 0) {\n this.m00 = m00;\n this.m01 = m01;\n this.m02 = m02;\n this.m10 = m10;\n this.m11 = m11;\n this.m12 = m12;\n }\n\n withScale(s) {\n let {\n m00,\n m01,\n m02,\n m10,\n m11,\n m12\n } = this;\n m00 = s.x;\n m11 = s.y;\n return new AffineTransform(m00, m01, m02, m10, m11, m12);\n }\n\n static withScale(s) {\n return new AffineTransform().withScale(s);\n }\n\n scaledBy(s) {\n return AffineTransform.withScale(s).times(this);\n }\n\n getScale() {\n return new Vec2(this.m00, this.m11);\n }\n\n withTranslation(t) {\n let {\n m00,\n m01,\n m02,\n m10,\n m11,\n m12\n } = this;\n m02 = t.x;\n m12 = t.y;\n return new AffineTransform(m00, m01, m02, m10, m11, m12);\n }\n\n static withTranslation(t) {\n return new AffineTransform().withTranslation(t);\n }\n\n getTranslation() {\n return new Vec2(this.m02, this.m12);\n }\n\n translatedBy(t) {\n return AffineTransform.withTranslation(t).times(this);\n }\n\n static betweenRects(from, to) {\n return AffineTransform.withTranslation(from.origin.times(-1)).scaledBy(new Vec2(to.size.x / from.size.x, to.size.y / from.size.y)).translatedBy(to.origin);\n }\n\n times(other) {\n const m00 = this.m00 * other.m00 + this.m01 * other.m10;\n const m01 = this.m00 * other.m01 + this.m01 * other.m11;\n const m02 = this.m00 * other.m02 + this.m01 * other.m12 + this.m02;\n const m10 = this.m10 * other.m00 + this.m11 * other.m10;\n const m11 = this.m10 * other.m01 + this.m11 * other.m11;\n const m12 = this.m10 * other.m02 + this.m11 * other.m12 + this.m12;\n return new AffineTransform(m00, m01, m02, m10, m11, m12);\n }\n\n equals(other) {\n return this.m00 == other.m00 && this.m01 == other.m01 && this.m02 == other.m02 && this.m10 == other.m10 && this.m11 == other.m11 && this.m12 == other.m12;\n }\n\n approxEquals(other, epsilon = 1e-9) {\n return Math.abs(this.m00 - other.m00) < epsilon && Math.abs(this.m01 - other.m01) < epsilon && Math.abs(this.m02 - other.m02) < epsilon && Math.abs(this.m10 - other.m10) < epsilon && Math.abs(this.m11 - other.m11) < epsilon && Math.abs(this.m12 - other.m12) < epsilon;\n }\n\n timesScalar(s) {\n const {\n m00,\n m01,\n m02,\n m10,\n m11,\n m12\n } = this;\n return new AffineTransform(s * m00, s * m01, s * m02, s * m10, s * m11, s * m12);\n }\n\n det() {\n const {\n m00,\n m01,\n m02,\n m10,\n m11,\n m12\n } = this;\n const m20 = 0;\n const m21 = 0;\n const m22 = 1;\n return m00 * (m11 * m22 - m12 * m21) - m01 * (m10 * m22 - m12 * m20) + m02 * (m10 * m21 - m11 * m20);\n }\n\n adj() {\n const {\n m00,\n m01,\n m02,\n m10,\n m11,\n m12\n } = this;\n const m20 = 0;\n const m21 = 0;\n const m22 = 1; // Adjugate matrix (a) is the transpose of the\n // cofactor matrix (c).\n //\n // 00 01 02\n // 10 11 12\n // 20 21 22\n\n const a00 =\n /* c00 = */\n +(m11 * m22 - m12 * m21);\n const a01 =\n /* c10 = */\n -(m01 * m22 - m02 * m21);\n const a02 =\n /* c20 = */\n +(m01 * m12 - m02 * m11);\n const a10 =\n /* c01 = */\n -(m10 * m22 - m12 * m20);\n const a11 =\n /* c11 = */\n +(m00 * m22 - m02 * m20);\n const a12 =\n /* c21 = */\n -(m00 * m12 - m02 * m10);\n return new AffineTransform(a00, a01, a02, a10, a11, a12);\n }\n\n inverted() {\n const det = this.det();\n if (det === 0) return null;\n const adj = this.adj();\n return adj.timesScalar(1 / det);\n }\n\n transformVector(v) {\n return new Vec2(v.x * this.m00 + v.y * this.m01, v.x * this.m10 + v.y * this.m11);\n }\n\n inverseTransformVector(v) {\n const inv = this.inverted();\n if (!inv) return null;\n return inv.transformVector(v);\n }\n\n transformPosition(v) {\n return new Vec2(v.x * this.m00 + v.y * this.m01 + this.m02, v.x * this.m10 + v.y * this.m11 + this.m12);\n }\n\n inverseTransformPosition(v) {\n const inv = this.inverted();\n if (!inv) return null;\n return inv.transformPosition(v);\n }\n\n transformRect(r) {\n const size = this.transformVector(r.size);\n const origin = this.transformPosition(r.origin);\n\n if (size.x < 0 && size.y < 0) {\n return new Rect(origin.plus(size), size.abs());\n } else if (size.x < 0) {\n return new Rect(origin.withX(origin.x + size.x), size.abs());\n } else if (size.y < 0) {\n return new Rect(origin.withY(origin.y + size.y), size.abs());\n }\n\n return new Rect(origin, size);\n }\n\n inverseTransformRect(r) {\n const inv = this.inverted();\n if (!inv) return null;\n return inv.transformRect(r);\n }\n\n flatten() {\n // Flatten into GLSL format\n // prettier-ignore\n return [this.m00, this.m10, 0, this.m01, this.m11, 0, this.m02, this.m12, 1];\n }\n\n}\n\nexports.AffineTransform = AffineTransform;\n\nlet Rect =\n/** @class */\n(() => {\n class Rect {\n constructor(origin, size) {\n this.origin = origin;\n this.size = size;\n }\n\n isEmpty() {\n return this.width() == 0 || this.height() == 0;\n }\n\n width() {\n return this.size.x;\n }\n\n height() {\n return this.size.y;\n }\n\n left() {\n return this.origin.x;\n }\n\n right() {\n return this.left() + this.width();\n }\n\n top() {\n return this.origin.y;\n }\n\n bottom() {\n return this.top() + this.height();\n }\n\n topLeft() {\n return this.origin;\n }\n\n topRight() {\n return this.origin.plus(new Vec2(this.width(), 0));\n }\n\n bottomRight() {\n return this.origin.plus(this.size);\n }\n\n bottomLeft() {\n return this.origin.plus(new Vec2(0, this.height()));\n }\n\n withOrigin(origin) {\n return new Rect(origin, this.size);\n }\n\n withSize(size) {\n return new Rect(this.origin, size);\n }\n\n closestPointTo(p) {\n return new Vec2(clamp(p.x, this.left(), this.right()), clamp(p.y, this.top(), this.bottom()));\n }\n\n distanceFrom(p) {\n return p.minus(this.closestPointTo(p)).length();\n }\n\n contains(p) {\n return this.distanceFrom(p) === 0;\n }\n\n hasIntersectionWith(other) {\n const top = Math.max(this.top(), other.top());\n const bottom = Math.max(top, Math.min(this.bottom(), other.bottom()));\n if (bottom - top === 0) return false;\n const left = Math.max(this.left(), other.left());\n const right = Math.max(left, Math.min(this.right(), other.right()));\n if (right - left === 0) return false;\n return true;\n }\n\n intersectWith(other) {\n const topLeft = Vec2.max(this.topLeft(), other.topLeft());\n const bottomRight = Vec2.max(topLeft, Vec2.min(this.bottomRight(), other.bottomRight()));\n return new Rect(topLeft, bottomRight.minus(topLeft));\n }\n\n equals(other) {\n return this.origin.equals(other.origin) && this.size.equals(other.size);\n }\n\n approxEquals(other) {\n return this.origin.approxEquals(other.origin) && this.size.approxEquals(other.size);\n }\n\n area() {\n return this.size.x * this.size.y;\n }\n\n }\n\n Rect.empty = new Rect(Vec2.zero, Vec2.zero);\n Rect.unit = new Rect(Vec2.zero, Vec2.unit);\n Rect.NDC = new Rect(new Vec2(-1, -1), new Vec2(2, 2));\n return Rect;\n})();\n\nexports.Rect = Rect;\n\n/***/ }),\n\n/***/ 211:\n/***/ (function(__unused_webpack_module, exports, __webpack_require__) {\n\n\n\nvar __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function () {\n return m[k];\n }\n });\n} : function (o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\n\nvar __setModuleDefault = this && this.__setModuleDefault || (Object.create ? function (o, v) {\n Object.defineProperty(o, "default", {\n enumerable: true,\n value: v\n });\n} : function (o, v) {\n o["default"] = v;\n});\n\nvar __importStar = this && this.__importStar || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n\n __setModuleDefault(result, mod);\n\n return result;\n};\n\nvar __awaiter = this && this.__awaiter || function (thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function (resolve) {\n resolve(value);\n });\n }\n\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n\n function rejected(value) {\n try {\n step(generator["throw"](value));\n } catch (e) {\n reject(e);\n }\n }\n\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\n\nObject.defineProperty(exports, "__esModule", ({\n value: true\n}));\nexports.CallTreeProfileBuilder = exports.StackListProfileBuilder = exports.Profile = exports.CallTreeNode = exports.Frame = exports.HasWeights = void 0;\n\nconst utils_1 = __webpack_require__(844);\n\nconst value_formatters_1 = __webpack_require__(218);\n\nconst demangleCppModule = Promise.resolve().then(() => __importStar(__webpack_require__(765))); // Force eager loading of the module\n\ndemangleCppModule.then(() => {});\n\nclass HasWeights {\n constructor() {\n this.selfWeight = 0;\n this.totalWeight = 0;\n }\n\n getSelfWeight() {\n return this.selfWeight;\n }\n\n getTotalWeight() {\n return this.totalWeight;\n }\n\n addToTotalWeight(delta) {\n this.totalWeight += delta;\n }\n\n addToSelfWeight(delta) {\n this.selfWeight += delta;\n }\n\n overwriteWeightWith(other) {\n this.selfWeight = other.selfWeight;\n this.totalWeight = other.totalWeight;\n }\n\n}\n\nexports.HasWeights = HasWeights;\n\nlet Frame =\n/** @class */\n(() => {\n class Frame extends HasWeights {\n constructor(info) {\n super();\n this.key = info.key;\n this.name = info.name;\n this.file = info.file;\n this.line = info.line;\n this.col = info.col;\n }\n\n static getOrInsert(set, info) {\n return set.getOrInsert(new Frame(info));\n }\n\n }\n\n Frame.root = new Frame({\n key: \'(speedscope root)\',\n name: \'(speedscope root)\'\n });\n return Frame;\n})();\n\nexports.Frame = Frame;\n\nclass CallTreeNode extends HasWeights {\n constructor(frame, parent) {\n super();\n this.frame = frame;\n this.parent = parent;\n this.children = []; // If a node is "frozen", it means it should no longer be mutated.\n\n this.frozen = false;\n }\n\n isRoot() {\n return this.frame === Frame.root;\n }\n\n isFrozen() {\n return this.frozen;\n }\n\n freeze() {\n this.frozen = true;\n }\n\n}\n\nexports.CallTreeNode = CallTreeNode;\n\nclass Profile {\n constructor(totalWeight = 0) {\n this.name = \'\';\n this.frames = new utils_1.KeyedSet(); // Profiles store two call-trees.\n //\n // The "append order" call tree is the one in which nodes are ordered in\n // whatever order they were appended to their parent.\n //\n // The "grouped" call tree is one in which each node has at most one child per\n // frame. Nodes are ordered in decreasing order of weight\n\n this.appendOrderCalltreeRoot = new CallTreeNode(Frame.root, null);\n this.groupedCalltreeRoot = new CallTreeNode(Frame.root, null); // List of references to CallTreeNodes at the top of the\n // stack at the time of the sample.\n\n this.samples = [];\n this.weights = [];\n this.valueFormatter = new value_formatters_1.RawValueFormatter();\n this.totalNonIdleWeight = null;\n this.totalWeight = totalWeight;\n }\n\n getAppendOrderCalltreeRoot() {\n return this.appendOrderCalltreeRoot;\n }\n\n getGroupedCalltreeRoot() {\n return this.groupedCalltreeRoot;\n }\n\n formatValue(v) {\n return this.valueFormatter.format(v);\n }\n\n setValueFormatter(f) {\n this.valueFormatter = f;\n }\n\n getWeightUnit() {\n return this.valueFormatter.unit;\n }\n\n getName() {\n return this.name;\n }\n\n setName(name) {\n this.name = name;\n }\n\n getTotalWeight() {\n return this.totalWeight;\n }\n\n getTotalNonIdleWeight() {\n if (this.totalNonIdleWeight === null) {\n this.totalNonIdleWeight = this.groupedCalltreeRoot.children.reduce((n, c) => n + c.getTotalWeight(), 0);\n }\n\n return this.totalNonIdleWeight;\n } // This is private because it should only be called in the ProfileBuilder\n // classes. Once a Profile instance has been constructed, it should be treated\n // as immutable.\n\n\n sortGroupedCallTree() {\n function visit(node) {\n node.children.sort((a, b) => -(a.getTotalWeight() - b.getTotalWeight()));\n node.children.forEach(visit);\n }\n\n visit(this.groupedCalltreeRoot);\n }\n\n forEachCallGrouped(openFrame, closeFrame) {\n function visit(node, start) {\n if (node.frame !== Frame.root) {\n openFrame(node, start);\n }\n\n let childTime = 0;\n node.children.forEach(function (child) {\n visit(child, start + childTime);\n childTime += child.getTotalWeight();\n });\n\n if (node.frame !== Frame.root) {\n closeFrame(node, start + node.getTotalWeight());\n }\n }\n\n visit(this.groupedCalltreeRoot, 0);\n }\n\n forEachCall(openFrame, closeFrame) {\n let prevStack = [];\n let value = 0;\n let sampleIndex = 0;\n\n for (let stackTop of this.samples) {\n // Find lowest common ancestor of the current stack and the previous one\n let lca = null; // This is O(n^2), but n should be relatively small here (stack height),\n // so hopefully this isn\'t much of a problem\n\n for (lca = stackTop; lca && lca.frame != Frame.root && prevStack.indexOf(lca) === -1; lca = lca.parent) {} // Close frames that are no longer open\n\n\n while (prevStack.length > 0 && utils_1.lastOf(prevStack) != lca) {\n const node = prevStack.pop();\n closeFrame(node, value);\n } // Open frames that are now becoming open\n\n\n const toOpen = [];\n\n for (let node = stackTop; node && node.frame != Frame.root && node != lca; node = node.parent) {\n toOpen.push(node);\n }\n\n toOpen.reverse();\n\n for (let node of toOpen) {\n openFrame(node, value);\n }\n\n prevStack = prevStack.concat(toOpen);\n value += this.weights[sampleIndex++];\n } // Close frames that are open at the end of the trace\n\n\n for (let i = prevStack.length - 1; i >= 0; i--) {\n closeFrame(prevStack[i], value);\n }\n }\n\n forEachFrame(fn) {\n this.frames.forEach(fn);\n }\n\n getProfileWithRecursionFlattened() {\n const builder = new CallTreeProfileBuilder();\n const stack = [];\n const framesInStack = new Set();\n\n function openFrame(node, value) {\n if (framesInStack.has(node.frame)) {\n stack.push(null);\n } else {\n framesInStack.add(node.frame);\n stack.push(node);\n builder.enterFrame(node.frame, value);\n }\n }\n\n function closeFrame(node, value) {\n const stackTop = stack.pop();\n\n if (stackTop) {\n framesInStack.delete(stackTop.frame);\n builder.leaveFrame(stackTop.frame, value);\n }\n }\n\n this.forEachCall(openFrame, closeFrame);\n const flattenedProfile = builder.build();\n flattenedProfile.name = this.name;\n flattenedProfile.valueFormatter = this.valueFormatter; // When constructing a profile with recursion flattened,\n // counter-intuitive things can happen to "self time" measurements\n // for functions.\n // For example, given the following list of stacks w/ weights:\n //\n // a 1\n // a;b;a 1\n // a;b;a;b;a 1\n // a;b;a 1\n //\n // The resulting profile with recursion flattened out will look like this:\n //\n // a 1\n // a;b 3\n //\n // Which is useful to view, but it\'s counter-intuitive to move self-time\n // for frames around, since analyzing the self-time of functions is an important\n // thing to be able to do accurately, and we don\'t want this to change when recursion\n // is flattened. To work around that, we\'ll just copy the weights directly from the\n // un-flattened profile.\n\n this.forEachFrame(f => {\n flattenedProfile.frames.getOrInsert(f).overwriteWeightWith(f);\n });\n return flattenedProfile;\n }\n\n getInvertedProfileForCallersOf(focalFrameInfo) {\n const focalFrame = Frame.getOrInsert(this.frames, focalFrameInfo);\n const builder = new StackListProfileBuilder(); // TODO(jlfwong): Could construct this at profile\n // construction time rather than on demand.\n\n const nodes = [];\n\n function visit(node) {\n if (node.frame === focalFrame) {\n nodes.push(node);\n } else {\n for (let child of node.children) {\n visit(child);\n }\n }\n }\n\n visit(this.appendOrderCalltreeRoot);\n\n for (let node of nodes) {\n const stack = [];\n\n for (let n = node; n != null && n.frame !== Frame.root; n = n.parent) {\n stack.push(n.frame);\n }\n\n builder.appendSampleWithWeight(stack, node.getTotalWeight());\n }\n\n const ret = builder.build();\n ret.name = this.name;\n ret.valueFormatter = this.valueFormatter;\n return ret;\n }\n\n getProfileForCalleesOf(focalFrameInfo) {\n const focalFrame = Frame.getOrInsert(this.frames, focalFrameInfo);\n const builder = new StackListProfileBuilder();\n\n function recordSubtree(focalFrameNode) {\n const stack = [];\n\n function visit(node) {\n stack.push(node.frame);\n builder.appendSampleWithWeight(stack, node.getSelfWeight());\n\n for (let child of node.children) {\n visit(child);\n }\n\n stack.pop();\n }\n\n visit(focalFrameNode);\n }\n\n function findCalls(node) {\n if (node.frame === focalFrame) {\n recordSubtree(node);\n } else {\n for (let child of node.children) {\n findCalls(child);\n }\n }\n }\n\n findCalls(this.appendOrderCalltreeRoot);\n const ret = builder.build();\n ret.name = this.name;\n ret.valueFormatter = this.valueFormatter;\n return ret;\n } // Demangle symbols for readability\n\n\n demangle() {\n return __awaiter(this, void 0, void 0, function* () {\n let demangleCpp = null;\n\n for (let frame of this.frames) {\n // This function converts a mangled C++ name such as "__ZNK7Support6ColorFeqERKS0_"\n // into a human-readable symbol (in this case "Support::ColorF::==(Support::ColorF&)")\n if (frame.name.startsWith(\'__Z\')) {\n if (!demangleCpp) {\n demangleCpp = (yield demangleCppModule).demangleCpp;\n }\n\n frame.name = demangleCpp(frame.name);\n }\n }\n });\n }\n\n remapNames(callback) {\n for (let frame of this.frames) {\n frame.name = callback(frame.name);\n }\n }\n\n}\n\nexports.Profile = Profile;\n\nclass StackListProfileBuilder extends Profile {\n constructor() {\n super(...arguments);\n this.pendingSample = null;\n }\n\n _appendSample(stack, weight, useAppendOrder) {\n if (isNaN(weight)) throw new Error(\'invalid weight\');\n let node = useAppendOrder ? this.appendOrderCalltreeRoot : this.groupedCalltreeRoot;\n let framesInStack = new Set();\n\n for (let frameInfo of stack) {\n const frame = Frame.getOrInsert(this.frames, frameInfo);\n const last = useAppendOrder ? utils_1.lastOf(node.children) : node.children.find(c => c.frame === frame);\n\n if (last && !last.isFrozen() && last.frame == frame) {\n node = last;\n } else {\n const parent = node;\n node = new CallTreeNode(frame, node);\n parent.children.push(node);\n }\n\n node.addToTotalWeight(weight); // It\'s possible for the same frame to occur multiple\n // times in the same call stack due to either direct\n // or indirect recursion. We want to avoid counting that\n // frame multiple times for a single sample, we so just\n // track all of the unique frames that participated in\n // this call stack, then add to their weight at the end.\n\n framesInStack.add(node.frame);\n }\n\n node.addToSelfWeight(weight);\n\n if (useAppendOrder) {\n for (let child of node.children) {\n child.freeze();\n }\n }\n\n if (useAppendOrder) {\n node.frame.addToSelfWeight(weight);\n\n for (let frame of framesInStack) {\n frame.addToTotalWeight(weight);\n }\n\n if (node === utils_1.lastOf(this.samples)) {\n this.weights[this.weights.length - 1] += weight;\n } else {\n this.samples.push(node);\n this.weights.push(weight);\n }\n }\n }\n\n appendSampleWithWeight(stack, weight) {\n if (weight === 0) {\n // Samples with zero weight have no effect, so let\'s ignore them\n return;\n }\n\n if (weight < 0) {\n throw new Error(\'Samples must have positive weights\');\n }\n\n this._appendSample(stack, weight, true);\n\n this._appendSample(stack, weight, false);\n }\n\n appendSampleWithTimestamp(stack, timestamp) {\n if (this.pendingSample) {\n if (timestamp < this.pendingSample.centralTimestamp) {\n throw new Error(\'Timestamps received out of order\');\n }\n\n const endTimestamp = (timestamp + this.pendingSample.centralTimestamp) / 2;\n this.appendSampleWithWeight(this.pendingSample.stack, endTimestamp - this.pendingSample.startTimestamp);\n this.pendingSample = {\n stack,\n startTimestamp: endTimestamp,\n centralTimestamp: timestamp\n };\n } else {\n this.pendingSample = {\n stack,\n startTimestamp: timestamp,\n centralTimestamp: timestamp\n };\n }\n }\n\n build() {\n if (this.pendingSample) {\n if (this.samples.length > 0) {\n this.appendSampleWithWeight(this.pendingSample.stack, this.pendingSample.centralTimestamp - this.pendingSample.startTimestamp);\n } else {\n // There is only a single sample. In this case, units will be meaningless,\n // so we\'ll append with a weight of 1 and also clear any value formatter\n this.appendSampleWithWeight(this.pendingSample.stack, 1);\n this.setValueFormatter(new value_formatters_1.RawValueFormatter());\n }\n }\n\n this.totalWeight = Math.max(this.totalWeight, this.weights.reduce((a, b) => a + b, 0));\n this.sortGroupedCallTree();\n return this;\n }\n\n}\n\nexports.StackListProfileBuilder = StackListProfileBuilder; // As an alternative API for importing profiles more efficiently, provide a\n// way to open & close frames directly without needing to construct tons of\n// arrays as intermediaries.\n\nclass CallTreeProfileBuilder extends Profile {\n constructor() {\n super(...arguments);\n this.appendOrderStack = [this.appendOrderCalltreeRoot];\n this.groupedOrderStack = [this.groupedCalltreeRoot];\n this.framesInStack = new Map();\n this.stack = [];\n this.lastValue = 0;\n }\n\n addWeightsToFrames(value) {\n const delta = value - this.lastValue;\n\n for (let frame of this.framesInStack.keys()) {\n frame.addToTotalWeight(delta);\n }\n\n const stackTop = utils_1.lastOf(this.stack);\n\n if (stackTop) {\n stackTop.addToSelfWeight(delta);\n }\n }\n\n addWeightsToNodes(value, stack) {\n const delta = value - this.lastValue;\n\n for (let node of stack) {\n node.addToTotalWeight(delta);\n }\n\n const stackTop = utils_1.lastOf(stack);\n\n if (stackTop) {\n stackTop.addToSelfWeight(delta);\n }\n }\n\n _enterFrame(frame, value, useAppendOrder) {\n let stack = useAppendOrder ? this.appendOrderStack : this.groupedOrderStack;\n this.addWeightsToNodes(value, stack);\n let prevTop = utils_1.lastOf(stack);\n\n if (prevTop) {\n if (useAppendOrder) {\n const delta = value - this.lastValue;\n\n if (delta > 0) {\n this.samples.push(prevTop);\n this.weights.push(value - this.lastValue);\n } else if (delta < 0) {\n throw new Error(`Samples must be provided in increasing order of cumulative value. Last sample was ${this.lastValue}, this sample was ${value}`);\n }\n }\n\n const last = useAppendOrder ? utils_1.lastOf(prevTop.children) : prevTop.children.find(c => c.frame === frame);\n let node;\n\n if (last && !last.isFrozen() && last.frame == frame) {\n node = last;\n } else {\n node = new CallTreeNode(frame, prevTop);\n prevTop.children.push(node);\n }\n\n stack.push(node);\n }\n }\n\n enterFrame(frameInfo, value) {\n const frame = Frame.getOrInsert(this.frames, frameInfo);\n this.addWeightsToFrames(value);\n\n this._enterFrame(frame, value, true);\n\n this._enterFrame(frame, value, false);\n\n this.stack.push(frame);\n const frameCount = this.framesInStack.get(frame) || 0;\n this.framesInStack.set(frame, frameCount + 1);\n this.lastValue = value;\n }\n\n _leaveFrame(frame, value, useAppendOrder) {\n let stack = useAppendOrder ? this.appendOrderStack : this.groupedOrderStack;\n this.addWeightsToNodes(value, stack);\n\n if (useAppendOrder) {\n const leavingStackTop = this.appendOrderStack.pop();\n\n if (leavingStackTop == null) {\n throw new Error(`Trying to leave ${frame.key} when stack is empty`);\n }\n\n if (this.lastValue == null) {\n throw new Error(`Trying to leave a ${frame.key} before any have been entered`);\n }\n\n leavingStackTop.freeze();\n\n if (leavingStackTop.frame.key !== frame.key) {\n throw new Error(`Tried to leave frame "${frame.name}" while frame "${leavingStackTop.frame.name}" was at the top at ${value}`);\n }\n\n const delta = value - this.lastValue;\n\n if (delta > 0) {\n this.samples.push(leavingStackTop);\n this.weights.push(value - this.lastValue);\n } else if (delta < 0) {\n throw new Error(`Samples must be provided in increasing order of cumulative value. Last sample was ${this.lastValue}, this sample was ${value}`);\n }\n } else {\n this.groupedOrderStack.pop();\n }\n }\n\n leaveFrame(frameInfo, value) {\n const frame = Frame.getOrInsert(this.frames, frameInfo);\n this.addWeightsToFrames(value);\n\n this._leaveFrame(frame, value, true);\n\n this._leaveFrame(frame, value, false);\n\n this.stack.pop();\n const frameCount = this.framesInStack.get(frame);\n if (frameCount == null) return;\n\n if (frameCount === 1) {\n this.framesInStack.delete(frame);\n } else {\n this.framesInStack.set(frame, frameCount - 1);\n }\n\n this.lastValue = value;\n this.totalWeight = Math.max(this.totalWeight, this.lastValue);\n }\n\n build() {\n // Each stack is expected to contain a single node which we initialize to be\n // the root node.\n if (this.appendOrderStack.length > 1 || this.groupedOrderStack.length > 1) {\n throw new Error(\'Tried to complete profile construction with a non-empty stack\');\n }\n\n this.sortGroupedCallTree();\n return this;\n }\n\n}\n\nexports.CallTreeProfileBuilder = CallTreeProfileBuilder;\n\n/***/ }),\n\n/***/ 844:\n/***/ ((__unused_webpack_module, exports) => {\n\n\n\nObject.defineProperty(exports, "__esModule", ({\n value: true\n}));\nexports.decodeBase64 = exports.lazyStatic = exports.memoizeByReference = exports.memoizeByShallowEquality = exports.objectsHaveShallowEquality = exports.noop = exports.binarySearch = exports.triangle = exports.fract = exports.formatPercent = exports.zeroPad = exports.itReduce = exports.itForEach = exports.itMap = exports.KeyedSet = exports.getOrThrow = exports.getOrElse = exports.getOrInsert = exports.sortBy = exports.lastOf = void 0;\n\nfunction lastOf(ts) {\n return ts[ts.length - 1] || null;\n}\n\nexports.lastOf = lastOf;\n\nfunction sortBy(ts, key) {\n function comparator(a, b) {\n const keyA = key(a);\n const keyB = key(b);\n return keyA < keyB ? -1 : keyA > keyB ? 1 : 0;\n }\n\n ts.sort(comparator);\n}\n\nexports.sortBy = sortBy;\n\nfunction getOrInsert(map, k, fallback) {\n if (!map.has(k)) map.set(k, fallback(k));\n return map.get(k);\n}\n\nexports.getOrInsert = getOrInsert;\n\nfunction getOrElse(map, k, fallback) {\n if (!map.has(k)) return fallback(k);\n return map.get(k);\n}\n\nexports.getOrElse = getOrElse;\n\nfunction getOrThrow(map, k) {\n if (!map.has(k)) {\n throw new Error(`Expected key ${k}`);\n }\n\n return map.get(k);\n}\n\nexports.getOrThrow = getOrThrow;\n\nclass KeyedSet {\n constructor() {\n this.map = new Map();\n }\n\n getOrInsert(t) {\n const key = t.key;\n const existing = this.map.get(key);\n if (existing) return existing;\n this.map.set(key, t);\n return t;\n }\n\n forEach(fn) {\n this.map.forEach(fn);\n }\n\n [Symbol.iterator]() {\n return this.map.values();\n }\n\n}\n\nexports.KeyedSet = KeyedSet;\n\nfunction* itMap(it, f) {\n for (let t of it) {\n yield f(t);\n }\n}\n\nexports.itMap = itMap;\n\nfunction itForEach(it, f) {\n for (let t of it) {\n f(t);\n }\n}\n\nexports.itForEach = itForEach;\n\nfunction itReduce(it, f, init) {\n let accum = init;\n\n for (let t of it) {\n accum = f(accum, t);\n }\n\n return accum;\n}\n\nexports.itReduce = itReduce;\n\nfunction zeroPad(s, width) {\n return new Array(Math.max(width - s.length, 0) + 1).join(\'0\') + s;\n}\n\nexports.zeroPad = zeroPad;\n\nfunction formatPercent(percent) {\n let formattedPercent = `${percent.toFixed(0)}%`;\n if (percent === 100) formattedPercent = \'100%\';else if (percent > 99) formattedPercent = \'>99%\';else if (percent < 0.01) formattedPercent = \'<0.01%\';else if (percent < 1) formattedPercent = `${percent.toFixed(2)}%`;else if (percent < 10) formattedPercent = `${percent.toFixed(1)}%`;\n return formattedPercent;\n}\n\nexports.formatPercent = formatPercent;\n\nfunction fract(x) {\n return x - Math.floor(x);\n}\n\nexports.fract = fract;\n\nfunction triangle(x) {\n return 2.0 * Math.abs(fract(x) - 0.5) - 1.0;\n}\n\nexports.triangle = triangle;\n\nfunction binarySearch(lo, hi, f, target, targetRangeSize = 1) {\n console.assert(!isNaN(targetRangeSize) && !isNaN(target));\n\n while (true) {\n if (hi - lo <= targetRangeSize) return [lo, hi];\n const mid = (hi + lo) / 2;\n const val = f(mid);\n if (val < target) lo = mid;else hi = mid;\n }\n}\n\nexports.binarySearch = binarySearch;\n\nfunction noop(...args) {}\n\nexports.noop = noop;\n\nfunction objectsHaveShallowEquality(a, b) {\n for (let key in a) {\n if (a[key] !== b[key]) return false;\n }\n\n for (let key in b) {\n if (a[key] !== b[key]) return false;\n }\n\n return true;\n}\n\nexports.objectsHaveShallowEquality = objectsHaveShallowEquality;\n\nfunction memoizeByShallowEquality(cb) {\n let last = null;\n return args => {\n let result;\n\n if (last == null) {\n result = cb(args);\n last = {\n args,\n result\n };\n return result;\n } else if (objectsHaveShallowEquality(last.args, args)) {\n return last.result;\n } else {\n last.args = args;\n last.result = cb(args);\n return last.result;\n }\n };\n}\n\nexports.memoizeByShallowEquality = memoizeByShallowEquality;\n\nfunction memoizeByReference(cb) {\n let last = null;\n return args => {\n let result;\n\n if (last == null) {\n result = cb(args);\n last = {\n args,\n result\n };\n return result;\n } else if (last.args === args) {\n return last.result;\n } else {\n last.args = args;\n last.result = cb(args);\n return last.result;\n }\n };\n}\n\nexports.memoizeByReference = memoizeByReference;\n\nfunction lazyStatic(cb) {\n let last = null;\n return () => {\n if (last == null) {\n last = {\n result: cb()\n };\n }\n\n return last.result;\n };\n}\n\nexports.lazyStatic = lazyStatic;\nconst base64lookupTable = lazyStatic(() => {\n const alphabet = \'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\';\n const ret = new Map();\n\n for (let i = 0; i < alphabet.length; i++) {\n ret.set(alphabet.charAt(i), i);\n }\n\n ret.set(\'=\', -1);\n return ret;\n}); // NOTE: There are probably simpler solutions to this problem, but I have this written already, so\n// until we run into problems with this, let\'s just use this.\n//\n// See: https://developer.mozilla.org/en-US/docs/Web/API/WindowBase64/Base64_encoding_and_decoding#The_Unicode_Problem#The_Unicode_Problem\n\nfunction decodeBase64(encoded) {\n // Reference: https://www.rfc-editor.org/rfc/rfc4648.txt\n const lookupTable = base64lookupTable(); // 3 byte groups are represented as sequneces of 4 characters.\n //\n // "The encoding process represents 24-bit groups of input bits as output\n // strings of 4 encoded characters."\n //\n // "Special processing is performed if fewer than 24 bits are available\n // at the end of the data being encoded. A full encoding quantum is\n // always completed at the end of a quantity. When fewer than 24 input\n // bits are available in an input group bits with value zero are added\n // (on the right) to form an integral number of 6-bit groups."\n\n if (encoded.length % 4 !== 0) {\n throw new Error(`Invalid length for base64 encoded string. Expected length % 4 = 0, got length = ${encoded.length}`);\n }\n\n const quartetCount = encoded.length / 4;\n let byteCount; // Special processing is performed if fewer than 24 bits are available\n // at the end of the data being encoded. A full encoding quantum is\n // always completed at the end of a quantity. When fewer than 24 input\n // bits are available in an input group, bits with value zero are added\n // (on the right) to form an integral number of 6-bit groups. Padding\n // at the end of the data is performed using the \'=\' character. Since\n // all base 64 input is an integral number of octets, only the following\n // cases can arise:\n //\n // (1) The final quantum of encoding input is an integral multiple of 24\n // bits; here, the final unit of encoded output will be an integral\n // multiple of 4 characters with no "=" padding.\n //\n // (2) The final quantum of encoding input is exactly 8 bits; here, the\n // final unit of encoded output will be two characters followed by\n // two "=" padding characters.\n //\n // (3) The final quantum of encoding input is exactly 16 bits; here, the\n // final unit of encoded output will be three characters followed by\n // one "=" padding character.\n\n if (encoded.length >= 4) {\n if (encoded.charAt(encoded.length - 1) === \'=\') {\n if (encoded.charAt(encoded.length - 2) === \'=\') {\n // Case (2)\n byteCount = quartetCount * 3 - 2;\n } else {\n // Case (3)\n byteCount = quartetCount * 3 - 1;\n }\n } else {\n // Case (1)\n byteCount = quartetCount * 3;\n }\n } else {\n // Case (1)\n byteCount = quartetCount * 3;\n }\n\n const bytes = new Uint8Array(byteCount);\n let offset = 0;\n\n for (let i = 0; i < quartetCount; i++) {\n const enc1 = encoded.charAt(i * 4 + 0);\n const enc2 = encoded.charAt(i * 4 + 1);\n const enc3 = encoded.charAt(i * 4 + 2);\n const enc4 = encoded.charAt(i * 4 + 3);\n const sextet1 = lookupTable.get(enc1);\n const sextet2 = lookupTable.get(enc2);\n const sextet3 = lookupTable.get(enc3);\n const sextet4 = lookupTable.get(enc4);\n\n if (sextet1 == null || sextet2 == null || sextet3 == null || sextet4 == null) {\n throw new Error(`Invalid quartet at indices ${i * 4} .. ${i * 4 + 3}: ${encoded.substring(i * 4, i * 4 + 3)}`);\n }\n\n bytes[offset++] = sextet1 << 2 | sextet2 >> 4;\n\n if (enc3 !== \'=\') {\n bytes[offset++] = (sextet2 & 15) << 4 | sextet3 >> 2;\n }\n\n if (enc4 !== \'=\') {\n bytes[offset++] = (sextet3 & 7) << 6 | sextet4;\n }\n }\n\n if (offset !== byteCount) {\n throw new Error(`Expected to decode ${byteCount} bytes, but only decoded ${offset})`);\n }\n\n return bytes;\n}\n\nexports.decodeBase64 = decodeBase64;\n\n/***/ }),\n\n/***/ 218:\n/***/ ((__unused_webpack_module, exports, __webpack_require__) => {\n\n\n\nObject.defineProperty(exports, "__esModule", ({\n value: true\n}));\nexports.ByteFormatter = exports.TimeFormatter = exports.RawValueFormatter = void 0;\n\nconst utils_1 = __webpack_require__(844);\n\nclass RawValueFormatter {\n constructor() {\n this.unit = \'none\';\n }\n\n format(v) {\n return v.toLocaleString();\n }\n\n}\n\nexports.RawValueFormatter = RawValueFormatter;\n\nclass TimeFormatter {\n constructor(unit) {\n this.unit = unit;\n if (unit === \'nanoseconds\') this.multiplier = 1e-9;else if (unit === \'microseconds\') this.multiplier = 1e-6;else if (unit === \'milliseconds\') this.multiplier = 1e-3;else this.multiplier = 1;\n }\n\n formatUnsigned(v) {\n const s = v * this.multiplier;\n\n if (s / 60 >= 1) {\n const minutes = Math.floor(s / 60);\n const seconds = Math.floor(s - minutes * 60).toString();\n return `${minutes}:${utils_1.zeroPad(seconds, 2)}`;\n }\n\n if (s / 1 >= 1) return `${s.toFixed(2)}s`;\n if (s / 1e-3 >= 1) return `${(s / 1e-3).toFixed(2)}ms`;\n if (s / 1e-6 >= 1) return `${(s / 1e-6).toFixed(2)}µs`;else return `${(s / 1e-9).toFixed(2)}ns`;\n }\n\n format(v) {\n return `${v < 0 ? \'-\' : \'\'}${this.formatUnsigned(Math.abs(v))}`;\n }\n\n}\n\nexports.TimeFormatter = TimeFormatter;\n\nclass ByteFormatter {\n constructor() {\n this.unit = \'bytes\';\n }\n\n format(v) {\n if (v < 1024) return `${v.toFixed(0)} B`;\n v /= 1024;\n if (v < 1024) return `${v.toFixed(2)} KB`;\n v /= 1024;\n if (v < 1024) return `${v.toFixed(2)} MB`;\n v /= 1024;\n return `${v.toFixed(2)} GB`;\n }\n\n}\n\nexports.ByteFormatter = ByteFormatter;\n\n/***/ }),\n\n/***/ 41:\n/***/ (function(__unused_webpack_module, exports, __webpack_require__) {\n\n\n\nvar __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function () {\n return m[k];\n }\n });\n} : function (o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\n\nvar __exportStar = this && this.__exportStar || function (m, exports) {\n for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);\n};\n\nObject.defineProperty(exports, "__esModule", ({\n value: true\n}));\n\n__exportStar(__webpack_require__(496), exports);\n\n__exportStar(__webpack_require__(121), exports);\n\n/***/ }),\n\n/***/ 715:\n/***/ (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (root, factory) {\n \'use strict\'; // Universal Module Definition (UMD) to support AMD, CommonJS/Node.js, Rhino, and browsers.\n\n /* istanbul ignore next */\n\n if (true) {\n !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(356)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === \'function\' ?\n\t\t(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n } else {}\n})(this, function ErrorStackParser(StackFrame) {\n \'use strict\';\n\n var FIREFOX_SAFARI_STACK_REGEXP = /(^|@)\\S+:\\d+/;\n var CHROME_IE_STACK_REGEXP = /^\\s*at .*(\\S+:\\d+|\\(native\\))/m;\n var SAFARI_NATIVE_CODE_REGEXP = /^(eval@)?(\\[native code])?$/;\n return {\n /**\n * Given an Error object, extract the most information from it.\n *\n * @param {Error} error object\n * @return {Array} of StackFrames\n */\n parse: function ErrorStackParser$$parse(error) {\n if (typeof error.stacktrace !== \'undefined\' || typeof error[\'opera#sourceloc\'] !== \'undefined\') {\n return this.parseOpera(error);\n } else if (error.stack && error.stack.match(CHROME_IE_STACK_REGEXP)) {\n return this.parseV8OrIE(error);\n } else if (error.stack) {\n return this.parseFFOrSafari(error);\n } else {\n throw new Error(\'Cannot parse given Error object\');\n }\n },\n // Separate line and column numbers from a string of the form: (URI:Line:Column)\n extractLocation: function ErrorStackParser$$extractLocation(urlLike) {\n // Fail-fast but return locations like "(native)"\n if (urlLike.indexOf(\':\') === -1) {\n return [urlLike];\n }\n\n var regExp = /(.+?)(?::(\\d+))?(?::(\\d+))?$/;\n var parts = regExp.exec(urlLike.replace(/[()]/g, \'\'));\n return [parts[1], parts[2] || undefined, parts[3] || undefined];\n },\n parseV8OrIE: function ErrorStackParser$$parseV8OrIE(error) {\n var filtered = error.stack.split(\'\\n\').filter(function (line) {\n return !!line.match(CHROME_IE_STACK_REGEXP);\n }, this);\n return filtered.map(function (line) {\n if (line.indexOf(\'(eval \') > -1) {\n // Throw away eval information until we implement stacktrace.js/stackframe#8\n line = line.replace(/eval code/g, \'eval\').replace(/(\\(eval at [^()]*)|(\\),.*$)/g, \'\');\n }\n\n var sanitizedLine = line.replace(/^\\s+/, \'\').replace(/\\(eval code/g, \'(\'); // capture and preseve the parenthesized location "(/foo/my bar.js:12:87)" in\n // case it has spaces in it, as the string is split on \\s+ later on\n\n var location = sanitizedLine.match(/ (\\((.+):(\\d+):(\\d+)\\)$)/); // remove the parenthesized location from the line, if it was matched\n\n sanitizedLine = location ? sanitizedLine.replace(location[0], \'\') : sanitizedLine;\n var tokens = sanitizedLine.split(/\\s+/).slice(1); // if a location was matched, pass it to extractLocation() otherwise pop the last token\n\n var locationParts = this.extractLocation(location ? location[1] : tokens.pop());\n var functionName = tokens.join(\' \') || undefined;\n var fileName = [\'eval\', \'\'].indexOf(locationParts[0]) > -1 ? undefined : locationParts[0];\n return new StackFrame({\n functionName: functionName,\n fileName: fileName,\n lineNumber: locationParts[1],\n columnNumber: locationParts[2],\n source: line\n });\n }, this);\n },\n parseFFOrSafari: function ErrorStackParser$$parseFFOrSafari(error) {\n var filtered = error.stack.split(\'\\n\').filter(function (line) {\n return !line.match(SAFARI_NATIVE_CODE_REGEXP);\n }, this);\n return filtered.map(function (line) {\n // Throw away eval information until we implement stacktrace.js/stackframe#8\n if (line.indexOf(\' > eval\') > -1) {\n line = line.replace(/ line (\\d+)(?: > eval line \\d+)* > eval:\\d+:\\d+/g, \':$1\');\n }\n\n if (line.indexOf(\'@\') === -1 && line.indexOf(\':\') === -1) {\n // Safari eval frames only have function names and nothing else\n return new StackFrame({\n functionName: line\n });\n } else {\n var functionNameRegex = /((.*".+"[^@]*)?[^@]*)(?:@)/;\n var matches = line.match(functionNameRegex);\n var functionName = matches && matches[1] ? matches[1] : undefined;\n var locationParts = this.extractLocation(line.replace(functionNameRegex, \'\'));\n return new StackFrame({\n functionName: functionName,\n fileName: locationParts[0],\n lineNumber: locationParts[1],\n columnNumber: locationParts[2],\n source: line\n });\n }\n }, this);\n },\n parseOpera: function ErrorStackParser$$parseOpera(e) {\n if (!e.stacktrace || e.message.indexOf(\'\\n\') > -1 && e.message.split(\'\\n\').length > e.stacktrace.split(\'\\n\').length) {\n return this.parseOpera9(e);\n } else if (!e.stack) {\n return this.parseOpera10(e);\n } else {\n return this.parseOpera11(e);\n }\n },\n parseOpera9: function ErrorStackParser$$parseOpera9(e) {\n var lineRE = /Line (\\d+).*script (?:in )?(\\S+)/i;\n var lines = e.message.split(\'\\n\');\n var result = [];\n\n for (var i = 2, len = lines.length; i < len; i += 2) {\n var match = lineRE.exec(lines[i]);\n\n if (match) {\n result.push(new StackFrame({\n fileName: match[2],\n lineNumber: match[1],\n source: lines[i]\n }));\n }\n }\n\n return result;\n },\n parseOpera10: function ErrorStackParser$$parseOpera10(e) {\n var lineRE = /Line (\\d+).*script (?:in )?(\\S+)(?:: In function (\\S+))?$/i;\n var lines = e.stacktrace.split(\'\\n\');\n var result = [];\n\n for (var i = 0, len = lines.length; i < len; i += 2) {\n var match = lineRE.exec(lines[i]);\n\n if (match) {\n result.push(new StackFrame({\n functionName: match[3] || undefined,\n fileName: match[2],\n lineNumber: match[1],\n source: lines[i]\n }));\n }\n }\n\n return result;\n },\n // Opera 10.65+ Error.stack very similar to FF/Safari\n parseOpera11: function ErrorStackParser$$parseOpera11(error) {\n var filtered = error.stack.split(\'\\n\').filter(function (line) {\n return !!line.match(FIREFOX_SAFARI_STACK_REGEXP) && !line.match(/^Error created at/);\n }, this);\n return filtered.map(function (line) {\n var tokens = line.split(\'@\');\n var locationParts = this.extractLocation(tokens.pop());\n var functionCall = tokens.shift() || \'\';\n var functionName = functionCall.replace(//, \'$2\').replace(/\\([^)]*\\)/g, \'\') || undefined;\n var argsRaw;\n\n if (functionCall.match(/\\(([^)]*)\\)/)) {\n argsRaw = functionCall.replace(/^[^(]+\\(([^)]*)\\)$/, \'$1\');\n }\n\n var args = argsRaw === undefined || argsRaw === \'[arguments not available]\' ? undefined : argsRaw.split(\',\');\n return new StackFrame({\n functionName: functionName,\n args: args,\n fileName: locationParts[0],\n lineNumber: locationParts[1],\n columnNumber: locationParts[2],\n source: line\n });\n }, this);\n }\n };\n});\n\n/***/ }),\n\n/***/ 69:\n/***/ ((module) => {\n\n\n\nfunction nullthrows(x, message) {\n if (x != null) {\n return x;\n }\n\n var error = new Error(message !== undefined ? message : \'Got unexpected \' + x);\n error.framesToPop = 1; // Skip nullthrows\'s own stack frame.\n\n throw error;\n}\n\nmodule.exports = nullthrows;\nmodule.exports["default"] = nullthrows;\nObject.defineProperty(module.exports, "__esModule", ({\n value: true\n}));\n\n/***/ }),\n\n/***/ 356:\n/***/ (function(module, exports) {\n\nvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (root, factory) {\n \'use strict\'; // Universal Module Definition (UMD) to support AMD, CommonJS/Node.js, Rhino, and browsers.\n\n /* istanbul ignore next */\n\n if (true) {\n !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === \'function\' ?\n\t\t(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n } else {}\n})(this, function () {\n \'use strict\';\n\n function _isNumber(n) {\n return !isNaN(parseFloat(n)) && isFinite(n);\n }\n\n function _capitalize(str) {\n return str.charAt(0).toUpperCase() + str.substring(1);\n }\n\n function _getter(p) {\n return function () {\n return this[p];\n };\n }\n\n var booleanProps = [\'isConstructor\', \'isEval\', \'isNative\', \'isToplevel\'];\n var numericProps = [\'columnNumber\', \'lineNumber\'];\n var stringProps = [\'fileName\', \'functionName\', \'source\'];\n var arrayProps = [\'args\'];\n var props = booleanProps.concat(numericProps, stringProps, arrayProps);\n\n function StackFrame(obj) {\n if (!obj) return;\n\n for (var i = 0; i < props.length; i++) {\n if (obj[props[i]] !== undefined) {\n this[\'set\' + _capitalize(props[i])](obj[props[i]]);\n }\n }\n }\n\n StackFrame.prototype = {\n getArgs: function () {\n return this.args;\n },\n setArgs: function (v) {\n if (Object.prototype.toString.call(v) !== \'[object Array]\') {\n throw new TypeError(\'Args must be an Array\');\n }\n\n this.args = v;\n },\n getEvalOrigin: function () {\n return this.evalOrigin;\n },\n setEvalOrigin: function (v) {\n if (v instanceof StackFrame) {\n this.evalOrigin = v;\n } else if (v instanceof Object) {\n this.evalOrigin = new StackFrame(v);\n } else {\n throw new TypeError(\'Eval Origin must be an Object or StackFrame\');\n }\n },\n toString: function () {\n var fileName = this.getFileName() || \'\';\n var lineNumber = this.getLineNumber() || \'\';\n var columnNumber = this.getColumnNumber() || \'\';\n var functionName = this.getFunctionName() || \'\';\n\n if (this.getIsEval()) {\n if (fileName) {\n return \'[eval] (\' + fileName + \':\' + lineNumber + \':\' + columnNumber + \')\';\n }\n\n return \'[eval]:\' + lineNumber + \':\' + columnNumber;\n }\n\n if (functionName) {\n return functionName + \' (\' + fileName + \':\' + lineNumber + \':\' + columnNumber + \')\';\n }\n\n return fileName + \':\' + lineNumber + \':\' + columnNumber;\n }\n };\n\n StackFrame.fromString = function StackFrame$$fromString(str) {\n var argsStartIndex = str.indexOf(\'(\');\n var argsEndIndex = str.lastIndexOf(\')\');\n var functionName = str.substring(0, argsStartIndex);\n var args = str.substring(argsStartIndex + 1, argsEndIndex).split(\',\');\n var locationString = str.substring(argsEndIndex + 1);\n\n if (locationString.indexOf(\'@\') === 0) {\n var parts = /@(.+?)(?::(\\d+))?(?::(\\d+))?$/.exec(locationString, \'\');\n var fileName = parts[1];\n var lineNumber = parts[2];\n var columnNumber = parts[3];\n }\n\n return new StackFrame({\n functionName: functionName,\n args: args || undefined,\n fileName: fileName,\n lineNumber: lineNumber || undefined,\n columnNumber: columnNumber || undefined\n });\n };\n\n for (var i = 0; i < booleanProps.length; i++) {\n StackFrame.prototype[\'get\' + _capitalize(booleanProps[i])] = _getter(booleanProps[i]);\n\n StackFrame.prototype[\'set\' + _capitalize(booleanProps[i])] = function (p) {\n return function (v) {\n this[p] = Boolean(v);\n };\n }(booleanProps[i]);\n }\n\n for (var j = 0; j < numericProps.length; j++) {\n StackFrame.prototype[\'get\' + _capitalize(numericProps[j])] = _getter(numericProps[j]);\n\n StackFrame.prototype[\'set\' + _capitalize(numericProps[j])] = function (p) {\n return function (v) {\n if (!_isNumber(v)) {\n throw new TypeError(p + \' must be a Number\');\n }\n\n this[p] = Number(v);\n };\n }(numericProps[j]);\n }\n\n for (var k = 0; k < stringProps.length; k++) {\n StackFrame.prototype[\'get\' + _capitalize(stringProps[k])] = _getter(stringProps[k]);\n\n StackFrame.prototype[\'set\' + _capitalize(stringProps[k])] = function (p) {\n return function (v) {\n this[p] = String(v);\n };\n }(stringProps[k]);\n }\n\n return StackFrame;\n});\n\n/***/ }),\n\n/***/ 853:\n/***/ ((module) => {\n\n/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\nvar runtime = function (exports) {\n "use strict";\n\n var Op = Object.prototype;\n var hasOwn = Op.hasOwnProperty;\n var undefined; // More compressible than void 0.\n\n var $Symbol = typeof Symbol === "function" ? Symbol : {};\n var iteratorSymbol = $Symbol.iterator || "@@iterator";\n var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";\n var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";\n\n function define(obj, key, value) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n return obj[key];\n }\n\n try {\n // IE 8 has a broken Object.defineProperty that only works on DOM objects.\n define({}, "");\n } catch (err) {\n define = function (obj, key, value) {\n return obj[key] = value;\n };\n }\n\n function wrap(innerFn, outerFn, self, tryLocsList) {\n // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.\n var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;\n var generator = Object.create(protoGenerator.prototype);\n var context = new Context(tryLocsList || []); // The ._invoke method unifies the implementations of the .next,\n // .throw, and .return methods.\n\n generator._invoke = makeInvokeMethod(innerFn, self, context);\n return generator;\n }\n\n exports.wrap = wrap; // Try/catch helper to minimize deoptimizations. Returns a completion\n // record like context.tryEntries[i].completion. This interface could\n // have been (and was previously) designed to take a closure to be\n // invoked without arguments, but in all the cases we care about we\n // already have an existing method we want to call, so there\'s no need\n // to create a new function object. We can even get away with assuming\n // the method takes exactly one argument, since that happens to be true\n // in every case, so we don\'t have to touch the arguments object. The\n // only additional allocation required is the completion record, which\n // has a stable shape and so hopefully should be cheap to allocate.\n\n function tryCatch(fn, obj, arg) {\n try {\n return {\n type: "normal",\n arg: fn.call(obj, arg)\n };\n } catch (err) {\n return {\n type: "throw",\n arg: err\n };\n }\n }\n\n var GenStateSuspendedStart = "suspendedStart";\n var GenStateSuspendedYield = "suspendedYield";\n var GenStateExecuting = "executing";\n var GenStateCompleted = "completed"; // Returning this object from the innerFn has the same effect as\n // breaking out of the dispatch switch statement.\n\n var ContinueSentinel = {}; // Dummy constructor functions that we use as the .constructor and\n // .constructor.prototype properties for functions that return Generator\n // objects. For full spec compliance, you may wish to configure your\n // minifier not to mangle the names of these two functions.\n\n function Generator() {}\n\n function GeneratorFunction() {}\n\n function GeneratorFunctionPrototype() {} // This is a polyfill for %IteratorPrototype% for environments that\n // don\'t natively support it.\n\n\n var IteratorPrototype = {};\n\n IteratorPrototype[iteratorSymbol] = function () {\n return this;\n };\n\n var getProto = Object.getPrototypeOf;\n var NativeIteratorPrototype = getProto && getProto(getProto(values([])));\n\n if (NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {\n // This environment has a native %IteratorPrototype%; use it instead\n // of the polyfill.\n IteratorPrototype = NativeIteratorPrototype;\n }\n\n var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);\n GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;\n GeneratorFunctionPrototype.constructor = GeneratorFunction;\n GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"); // Helper for defining the .next, .throw, and .return methods of the\n // Iterator interface in terms of a single ._invoke method.\n\n function defineIteratorMethods(prototype) {\n ["next", "throw", "return"].forEach(function (method) {\n define(prototype, method, function (arg) {\n return this._invoke(method, arg);\n });\n });\n }\n\n exports.isGeneratorFunction = function (genFun) {\n var ctor = typeof genFun === "function" && genFun.constructor;\n return ctor ? ctor === GeneratorFunction || // For the native GeneratorFunction constructor, the best we can\n // do is to check its .name property.\n (ctor.displayName || ctor.name) === "GeneratorFunction" : false;\n };\n\n exports.mark = function (genFun) {\n if (Object.setPrototypeOf) {\n Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);\n } else {\n genFun.__proto__ = GeneratorFunctionPrototype;\n define(genFun, toStringTagSymbol, "GeneratorFunction");\n }\n\n genFun.prototype = Object.create(Gp);\n return genFun;\n }; // Within the body of any async function, `await x` is transformed to\n // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test\n // `hasOwn.call(value, "__await")` to determine if the yielded value is\n // meant to be awaited.\n\n\n exports.awrap = function (arg) {\n return {\n __await: arg\n };\n };\n\n function AsyncIterator(generator, PromiseImpl) {\n function invoke(method, arg, resolve, reject) {\n var record = tryCatch(generator[method], generator, arg);\n\n if (record.type === "throw") {\n reject(record.arg);\n } else {\n var result = record.arg;\n var value = result.value;\n\n if (value && typeof value === "object" && hasOwn.call(value, "__await")) {\n return PromiseImpl.resolve(value.__await).then(function (value) {\n invoke("next", value, resolve, reject);\n }, function (err) {\n invoke("throw", err, resolve, reject);\n });\n }\n\n return PromiseImpl.resolve(value).then(function (unwrapped) {\n // When a yielded Promise is resolved, its final value becomes\n // the .value of the Promise<{value,done}> result for the\n // current iteration.\n result.value = unwrapped;\n resolve(result);\n }, function (error) {\n // If a rejected Promise was yielded, throw the rejection back\n // into the async generator function so it can be handled there.\n return invoke("throw", error, resolve, reject);\n });\n }\n }\n\n var previousPromise;\n\n function enqueue(method, arg) {\n function callInvokeWithMethodAndArg() {\n return new PromiseImpl(function (resolve, reject) {\n invoke(method, arg, resolve, reject);\n });\n }\n\n return previousPromise = // If enqueue has been called before, then we want to wait until\n // all previous Promises have been resolved before calling invoke,\n // so that results are always delivered in the correct order. If\n // enqueue has not been called before, then it is important to\n // call invoke immediately, without waiting on a callback to fire,\n // so that the async generator function has the opportunity to do\n // any necessary setup in a predictable way. This predictability\n // is why the Promise constructor synchronously invokes its\n // executor callback, and why async functions synchronously\n // execute code before the first await. Since we implement simple\n // async functions in terms of async generators, it is especially\n // important to get this right, even though it requires care.\n previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, // Avoid propagating failures to Promises returned by later\n // invocations of the iterator.\n callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();\n } // Define the unified helper method that is used to implement .next,\n // .throw, and .return (see defineIteratorMethods).\n\n\n this._invoke = enqueue;\n }\n\n defineIteratorMethods(AsyncIterator.prototype);\n\n AsyncIterator.prototype[asyncIteratorSymbol] = function () {\n return this;\n };\n\n exports.AsyncIterator = AsyncIterator; // Note that simple async functions are implemented on top of\n // AsyncIterator objects; they just return a Promise for the value of\n // the final result produced by the iterator.\n\n exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {\n if (PromiseImpl === void 0) PromiseImpl = Promise;\n var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);\n return exports.isGeneratorFunction(outerFn) ? iter // If outerFn is a generator, return the full iterator.\n : iter.next().then(function (result) {\n return result.done ? result.value : iter.next();\n });\n };\n\n function makeInvokeMethod(innerFn, self, context) {\n var state = GenStateSuspendedStart;\n return function invoke(method, arg) {\n if (state === GenStateExecuting) {\n throw new Error("Generator is already running");\n }\n\n if (state === GenStateCompleted) {\n if (method === "throw") {\n throw arg;\n } // Be forgiving, per 25.3.3.3.3 of the spec:\n // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume\n\n\n return doneResult();\n }\n\n context.method = method;\n context.arg = arg;\n\n while (true) {\n var delegate = context.delegate;\n\n if (delegate) {\n var delegateResult = maybeInvokeDelegate(delegate, context);\n\n if (delegateResult) {\n if (delegateResult === ContinueSentinel) continue;\n return delegateResult;\n }\n }\n\n if (context.method === "next") {\n // Setting context._sent for legacy support of Babel\'s\n // function.sent implementation.\n context.sent = context._sent = context.arg;\n } else if (context.method === "throw") {\n if (state === GenStateSuspendedStart) {\n state = GenStateCompleted;\n throw context.arg;\n }\n\n context.dispatchException(context.arg);\n } else if (context.method === "return") {\n context.abrupt("return", context.arg);\n }\n\n state = GenStateExecuting;\n var record = tryCatch(innerFn, self, context);\n\n if (record.type === "normal") {\n // If an exception is thrown from innerFn, we leave state ===\n // GenStateExecuting and loop back for another invocation.\n state = context.done ? GenStateCompleted : GenStateSuspendedYield;\n\n if (record.arg === ContinueSentinel) {\n continue;\n }\n\n return {\n value: record.arg,\n done: context.done\n };\n } else if (record.type === "throw") {\n state = GenStateCompleted; // Dispatch the exception by looping back around to the\n // context.dispatchException(context.arg) call above.\n\n context.method = "throw";\n context.arg = record.arg;\n }\n }\n };\n } // Call delegate.iterator[context.method](context.arg) and handle the\n // result, either by returning a { value, done } result from the\n // delegate iterator, or by modifying context.method and context.arg,\n // setting context.delegate to null, and returning the ContinueSentinel.\n\n\n function maybeInvokeDelegate(delegate, context) {\n var method = delegate.iterator[context.method];\n\n if (method === undefined) {\n // A .throw or .return when the delegate iterator has no .throw\n // method always terminates the yield* loop.\n context.delegate = null;\n\n if (context.method === "throw") {\n // Note: ["return"] must be used for ES3 parsing compatibility.\n if (delegate.iterator["return"]) {\n // If the delegate iterator has a return method, give it a\n // chance to clean up.\n context.method = "return";\n context.arg = undefined;\n maybeInvokeDelegate(delegate, context);\n\n if (context.method === "throw") {\n // If maybeInvokeDelegate(context) changed context.method from\n // "return" to "throw", let that override the TypeError below.\n return ContinueSentinel;\n }\n }\n\n context.method = "throw";\n context.arg = new TypeError("The iterator does not provide a \'throw\' method");\n }\n\n return ContinueSentinel;\n }\n\n var record = tryCatch(method, delegate.iterator, context.arg);\n\n if (record.type === "throw") {\n context.method = "throw";\n context.arg = record.arg;\n context.delegate = null;\n return ContinueSentinel;\n }\n\n var info = record.arg;\n\n if (!info) {\n context.method = "throw";\n context.arg = new TypeError("iterator result is not an object");\n context.delegate = null;\n return ContinueSentinel;\n }\n\n if (info.done) {\n // Assign the result of the finished delegate to the temporary\n // variable specified by delegate.resultName (see delegateYield).\n context[delegate.resultName] = info.value; // Resume execution at the desired location (see delegateYield).\n\n context.next = delegate.nextLoc; // If context.method was "throw" but the delegate handled the\n // exception, let the outer generator proceed normally. If\n // context.method was "next", forget context.arg since it has been\n // "consumed" by the delegate iterator. If context.method was\n // "return", allow the original .return call to continue in the\n // outer generator.\n\n if (context.method !== "return") {\n context.method = "next";\n context.arg = undefined;\n }\n } else {\n // Re-yield the result returned by the delegate method.\n return info;\n } // The delegate iterator is finished, so forget it and continue with\n // the outer generator.\n\n\n context.delegate = null;\n return ContinueSentinel;\n } // Define Generator.prototype.{next,throw,return} in terms of the\n // unified ._invoke helper method.\n\n\n defineIteratorMethods(Gp);\n define(Gp, toStringTagSymbol, "Generator"); // A Generator should always return itself as the iterator object when the\n // @@iterator function is called on it. Some browsers\' implementations of the\n // iterator prototype chain incorrectly implement this, causing the Generator\n // object to not be returned from this call. This ensures that doesn\'t happen.\n // See https://github.com/facebook/regenerator/issues/274 for more details.\n\n Gp[iteratorSymbol] = function () {\n return this;\n };\n\n Gp.toString = function () {\n return "[object Generator]";\n };\n\n function pushTryEntry(locs) {\n var entry = {\n tryLoc: locs[0]\n };\n\n if (1 in locs) {\n entry.catchLoc = locs[1];\n }\n\n if (2 in locs) {\n entry.finallyLoc = locs[2];\n entry.afterLoc = locs[3];\n }\n\n this.tryEntries.push(entry);\n }\n\n function resetTryEntry(entry) {\n var record = entry.completion || {};\n record.type = "normal";\n delete record.arg;\n entry.completion = record;\n }\n\n function Context(tryLocsList) {\n // The root entry object (effectively a try statement without a catch\n // or a finally block) gives us a place to store values thrown from\n // locations where there is no enclosing try statement.\n this.tryEntries = [{\n tryLoc: "root"\n }];\n tryLocsList.forEach(pushTryEntry, this);\n this.reset(true);\n }\n\n exports.keys = function (object) {\n var keys = [];\n\n for (var key in object) {\n keys.push(key);\n }\n\n keys.reverse(); // Rather than returning an object with a next method, we keep\n // things simple and return the next function itself.\n\n return function next() {\n while (keys.length) {\n var key = keys.pop();\n\n if (key in object) {\n next.value = key;\n next.done = false;\n return next;\n }\n } // To avoid creating an additional object, we just hang the .value\n // and .done properties off the next function object itself. This\n // also ensures that the minifier will not anonymize the function.\n\n\n next.done = true;\n return next;\n };\n };\n\n function values(iterable) {\n if (iterable) {\n var iteratorMethod = iterable[iteratorSymbol];\n\n if (iteratorMethod) {\n return iteratorMethod.call(iterable);\n }\n\n if (typeof iterable.next === "function") {\n return iterable;\n }\n\n if (!isNaN(iterable.length)) {\n var i = -1,\n next = function next() {\n while (++i < iterable.length) {\n if (hasOwn.call(iterable, i)) {\n next.value = iterable[i];\n next.done = false;\n return next;\n }\n }\n\n next.value = undefined;\n next.done = true;\n return next;\n };\n\n return next.next = next;\n }\n } // Return an iterator with no values.\n\n\n return {\n next: doneResult\n };\n }\n\n exports.values = values;\n\n function doneResult() {\n return {\n value: undefined,\n done: true\n };\n }\n\n Context.prototype = {\n constructor: Context,\n reset: function (skipTempReset) {\n this.prev = 0;\n this.next = 0; // Resetting context._sent for legacy support of Babel\'s\n // function.sent implementation.\n\n this.sent = this._sent = undefined;\n this.done = false;\n this.delegate = null;\n this.method = "next";\n this.arg = undefined;\n this.tryEntries.forEach(resetTryEntry);\n\n if (!skipTempReset) {\n for (var name in this) {\n // Not sure about the optimal order of these conditions:\n if (name.charAt(0) === "t" && hasOwn.call(this, name) && !isNaN(+name.slice(1))) {\n this[name] = undefined;\n }\n }\n }\n },\n stop: function () {\n this.done = true;\n var rootEntry = this.tryEntries[0];\n var rootRecord = rootEntry.completion;\n\n if (rootRecord.type === "throw") {\n throw rootRecord.arg;\n }\n\n return this.rval;\n },\n dispatchException: function (exception) {\n if (this.done) {\n throw exception;\n }\n\n var context = this;\n\n function handle(loc, caught) {\n record.type = "throw";\n record.arg = exception;\n context.next = loc;\n\n if (caught) {\n // If the dispatched exception was caught by a catch block,\n // then let that catch block handle the exception normally.\n context.method = "next";\n context.arg = undefined;\n }\n\n return !!caught;\n }\n\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n var record = entry.completion;\n\n if (entry.tryLoc === "root") {\n // Exception thrown outside of any try block that could handle\n // it, so set the completion value of the entire function to\n // throw the exception.\n return handle("end");\n }\n\n if (entry.tryLoc <= this.prev) {\n var hasCatch = hasOwn.call(entry, "catchLoc");\n var hasFinally = hasOwn.call(entry, "finallyLoc");\n\n if (hasCatch && hasFinally) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n } else if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n } else if (hasCatch) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n }\n } else if (hasFinally) {\n if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n } else {\n throw new Error("try statement without catch or finally");\n }\n }\n }\n },\n abrupt: function (type, arg) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n\n if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {\n var finallyEntry = entry;\n break;\n }\n }\n\n if (finallyEntry && (type === "break" || type === "continue") && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc) {\n // Ignore the finally entry if control is not jumping to a\n // location outside the try/catch block.\n finallyEntry = null;\n }\n\n var record = finallyEntry ? finallyEntry.completion : {};\n record.type = type;\n record.arg = arg;\n\n if (finallyEntry) {\n this.method = "next";\n this.next = finallyEntry.finallyLoc;\n return ContinueSentinel;\n }\n\n return this.complete(record);\n },\n complete: function (record, afterLoc) {\n if (record.type === "throw") {\n throw record.arg;\n }\n\n if (record.type === "break" || record.type === "continue") {\n this.next = record.arg;\n } else if (record.type === "return") {\n this.rval = this.arg = record.arg;\n this.method = "return";\n this.next = "end";\n } else if (record.type === "normal" && afterLoc) {\n this.next = afterLoc;\n }\n\n return ContinueSentinel;\n },\n finish: function (finallyLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n\n if (entry.finallyLoc === finallyLoc) {\n this.complete(entry.completion, entry.afterLoc);\n resetTryEntry(entry);\n return ContinueSentinel;\n }\n }\n },\n "catch": function (tryLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n\n if (entry.tryLoc === tryLoc) {\n var record = entry.completion;\n\n if (record.type === "throw") {\n var thrown = record.arg;\n resetTryEntry(entry);\n }\n\n return thrown;\n }\n } // The context.catch method must only be called with a location\n // argument that corresponds to a known catch block.\n\n\n throw new Error("illegal catch attempt");\n },\n delegateYield: function (iterable, resultName, nextLoc) {\n this.delegate = {\n iterator: values(iterable),\n resultName: resultName,\n nextLoc: nextLoc\n };\n\n if (this.method === "next") {\n // Deliberately forget the last sent value so that we don\'t\n // accidentally pass it on to the delegate.\n this.arg = undefined;\n }\n\n return ContinueSentinel;\n }\n }; // Regardless of whether this script is executing as a CommonJS module\n // or not, return the runtime object so that we can declare the variable\n // regeneratorRuntime in the outer scope, which allows this module to be\n // injected easily by `bin/regenerator --include-runtime script.js`.\n\n return exports;\n}( // If this script is executing as a CommonJS module, use module.exports\n// as the regeneratorRuntime namespace. Otherwise create a new empty\n// object. Either way, the resulting object will be used to initialize\n// the regeneratorRuntime variable at the top of this file.\n true ? module.exports : 0);\n\ntry {\n regeneratorRuntime = runtime;\n} catch (accidentalStrictMode) {\n // This module should not be running in strict mode, so the above\n // assignment should always work unless something is misconfigured. Just\n // in case runtime.js accidentally runs in strict mode, we can escape\n // strict mode using a global Function call. This could conceivably fail\n // if a Content Security Policy forbids using Function, but in that case\n // the proper solution is to fix the accidental strict mode problem. If\n // you\'ve misconfigured your bundler to force strict mode and applied a\n // CSP to forbid Function, and you\'re not willing to fix either of those\n // problems, please detail your unique predicament in a GitHub issue.\n Function("r", "regeneratorRuntime = r")(runtime);\n}\n\n/***/ })\n\n/******/ });\n/************************************************************************/\n/******/ // The module cache\n/******/ var __webpack_module_cache__ = {};\n/******/ \n/******/ // The require function\n/******/ function __webpack_require__(moduleId) {\n/******/ \t// Check if module is in cache\n/******/ \tvar cachedModule = __webpack_module_cache__[moduleId];\n/******/ \tif (cachedModule !== undefined) {\n/******/ \t\treturn cachedModule.exports;\n/******/ \t}\n/******/ \t// Create a new module (and put it into the cache)\n/******/ \tvar module = __webpack_module_cache__[moduleId] = {\n/******/ \t\t// no module.id needed\n/******/ \t\t// no module.loaded needed\n/******/ \t\texports: {}\n/******/ \t};\n/******/ \n/******/ \t// Execute the module function\n/******/ \t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/ \n/******/ \t// Return the exports of the module\n/******/ \treturn module.exports;\n/******/ }\n/******/ \n/************************************************************************/\n/******/ /* webpack/runtime/compat get default export */\n/******/ (() => {\n/******/ \t// getDefaultExport function for compatibility with non-harmony modules\n/******/ \t__webpack_require__.n = (module) => {\n/******/ \t\tvar getter = module && module.__esModule ?\n/******/ \t\t\t() => (module[\'default\']) :\n/******/ \t\t\t() => (module);\n/******/ \t\t__webpack_require__.d(getter, { a: getter });\n/******/ \t\treturn getter;\n/******/ \t};\n/******/ })();\n/******/ \n/******/ /* webpack/runtime/define property getters */\n/******/ (() => {\n/******/ \t// define getter functions for harmony exports\n/******/ \t__webpack_require__.d = (exports, definition) => {\n/******/ \t\tfor(var key in definition) {\n/******/ \t\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n/******/ \t\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n/******/ \t\t\t}\n/******/ \t\t}\n/******/ \t};\n/******/ })();\n/******/ \n/******/ /* webpack/runtime/hasOwnProperty shorthand */\n/******/ (() => {\n/******/ \t__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))\n/******/ })();\n/******/ \n/************************************************************************/\nvar __webpack_exports__ = {};\n// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.\n(() => {\n\n// EXPORTS\n__webpack_require__.d(__webpack_exports__, {\n "importFile": () => (/* binding */ importFile_worker_importFile)\n});\n\n// EXTERNAL MODULE: ../react-devtools-timeline/node_modules/regenerator-runtime/runtime.js\nvar runtime = __webpack_require__(853);\n// EXTERNAL MODULE: ../../node_modules/@elg/speedscope/dist/library/library.js\nvar library = __webpack_require__(41);\n;// CONCATENATED MODULE: ../react-devtools-shared/src/devtools/constants.js\nconst CHANGE_LOG_URL = \'https://github.com/facebook/react/blob/main/packages/react-devtools/CHANGELOG.md\';\nconst UNSUPPORTED_VERSION_URL = \'https://reactjs.org/blog/2019/08/15/new-react-devtools.html#how-do-i-get-the-old-version-back\';\nconst REACT_DEVTOOLS_WORKPLACE_URL = \'https://fburl.com/react-devtools-workplace-group\';\nconst THEME_STYLES = {\n light: {\n \'--color-attribute-name\': \'#ef6632\',\n \'--color-attribute-name-not-editable\': \'#23272f\',\n \'--color-attribute-name-inverted\': \'rgba(255, 255, 255, 0.7)\',\n \'--color-attribute-value\': \'#1a1aa6\',\n \'--color-attribute-value-inverted\': \'#ffffff\',\n \'--color-attribute-editable-value\': \'#1a1aa6\',\n \'--color-background\': \'#ffffff\',\n \'--color-background-hover\': \'rgba(0, 136, 250, 0.1)\',\n \'--color-background-inactive\': \'#e5e5e5\',\n \'--color-background-invalid\': \'#fff0f0\',\n \'--color-background-selected\': \'#0088fa\',\n \'--color-button-background\': \'#ffffff\',\n \'--color-button-background-focus\': \'#ededed\',\n \'--color-button\': \'#5f6673\',\n \'--color-button-disabled\': \'#cfd1d5\',\n \'--color-button-active\': \'#0088fa\',\n \'--color-button-focus\': \'#23272f\',\n \'--color-button-hover\': \'#23272f\',\n \'--color-border\': \'#eeeeee\',\n \'--color-commit-did-not-render-fill\': \'#cfd1d5\',\n \'--color-commit-did-not-render-fill-text\': \'#000000\',\n \'--color-commit-did-not-render-pattern\': \'#cfd1d5\',\n \'--color-commit-did-not-render-pattern-text\': \'#333333\',\n \'--color-commit-gradient-0\': \'#37afa9\',\n \'--color-commit-gradient-1\': \'#63b19e\',\n \'--color-commit-gradient-2\': \'#80b393\',\n \'--color-commit-gradient-3\': \'#97b488\',\n \'--color-commit-gradient-4\': \'#abb67d\',\n \'--color-commit-gradient-5\': \'#beb771\',\n \'--color-commit-gradient-6\': \'#cfb965\',\n \'--color-commit-gradient-7\': \'#dfba57\',\n \'--color-commit-gradient-8\': \'#efbb49\',\n \'--color-commit-gradient-9\': \'#febc38\',\n \'--color-commit-gradient-text\': \'#000000\',\n \'--color-component-name\': \'#6a51b2\',\n \'--color-component-name-inverted\': \'#ffffff\',\n \'--color-component-badge-background\': \'rgba(0, 0, 0, 0.1)\',\n \'--color-component-badge-background-inverted\': \'rgba(255, 255, 255, 0.25)\',\n \'--color-component-badge-count\': \'#777d88\',\n \'--color-component-badge-count-inverted\': \'rgba(255, 255, 255, 0.7)\',\n \'--color-console-error-badge-text\': \'#ffffff\',\n \'--color-console-error-background\': \'#fff0f0\',\n \'--color-console-error-border\': \'#ffd6d6\',\n \'--color-console-error-icon\': \'#eb3941\',\n \'--color-console-error-text\': \'#fe2e31\',\n \'--color-console-warning-badge-text\': \'#000000\',\n \'--color-console-warning-background\': \'#fffbe5\',\n \'--color-console-warning-border\': \'#fff5c1\',\n \'--color-console-warning-icon\': \'#f4bd00\',\n \'--color-console-warning-text\': \'#64460c\',\n \'--color-context-background\': \'rgba(0,0,0,.9)\',\n \'--color-context-background-hover\': \'rgba(255, 255, 255, 0.1)\',\n \'--color-context-background-selected\': \'#178fb9\',\n \'--color-context-border\': \'#3d424a\',\n \'--color-context-text\': \'#ffffff\',\n \'--color-context-text-selected\': \'#ffffff\',\n \'--color-dim\': \'#777d88\',\n \'--color-dimmer\': \'#cfd1d5\',\n \'--color-dimmest\': \'#eff0f1\',\n \'--color-error-background\': \'hsl(0, 100%, 97%)\',\n \'--color-error-border\': \'hsl(0, 100%, 92%)\',\n \'--color-error-text\': \'#ff0000\',\n \'--color-expand-collapse-toggle\': \'#777d88\',\n \'--color-forget-badge-background\': \'#2683e2\',\n \'--color-forget-badge-background-inverted\': \'#1a6bbc\',\n \'--color-forget-text\': \'#fff\',\n \'--color-link\': \'#0000ff\',\n \'--color-modal-background\': \'rgba(255, 255, 255, 0.75)\',\n \'--color-bridge-version-npm-background\': \'#eff0f1\',\n \'--color-bridge-version-npm-text\': \'#000000\',\n \'--color-bridge-version-number\': \'#0088fa\',\n \'--color-primitive-hook-badge-background\': \'#e5e5e5\',\n \'--color-primitive-hook-badge-text\': \'#5f6673\',\n \'--color-record-active\': \'#fc3a4b\',\n \'--color-record-hover\': \'#3578e5\',\n \'--color-record-inactive\': \'#0088fa\',\n \'--color-resize-bar\': \'#eeeeee\',\n \'--color-resize-bar-active\': \'#dcdcdc\',\n \'--color-resize-bar-border\': \'#d1d1d1\',\n \'--color-resize-bar-dot\': \'#333333\',\n \'--color-timeline-internal-module\': \'#d1d1d1\',\n \'--color-timeline-internal-module-hover\': \'#c9c9c9\',\n \'--color-timeline-internal-module-text\': \'#444\',\n \'--color-timeline-native-event\': \'#ccc\',\n \'--color-timeline-native-event-hover\': \'#aaa\',\n \'--color-timeline-network-primary\': \'#fcf3dc\',\n \'--color-timeline-network-primary-hover\': \'#f0e7d1\',\n \'--color-timeline-network-secondary\': \'#efc457\',\n \'--color-timeline-network-secondary-hover\': \'#e3ba52\',\n \'--color-timeline-priority-background\': \'#f6f6f6\',\n \'--color-timeline-priority-border\': \'#eeeeee\',\n \'--color-timeline-user-timing\': \'#c9cacd\',\n \'--color-timeline-user-timing-hover\': \'#93959a\',\n \'--color-timeline-react-idle\': \'#d3e5f6\',\n \'--color-timeline-react-idle-hover\': \'#c3d9ef\',\n \'--color-timeline-react-render\': \'#9fc3f3\',\n \'--color-timeline-react-render-hover\': \'#83afe9\',\n \'--color-timeline-react-render-text\': \'#11365e\',\n \'--color-timeline-react-commit\': \'#c88ff0\',\n \'--color-timeline-react-commit-hover\': \'#b281d6\',\n \'--color-timeline-react-commit-text\': \'#3e2c4a\',\n \'--color-timeline-react-layout-effects\': \'#b281d6\',\n \'--color-timeline-react-layout-effects-hover\': \'#9d71bd\',\n \'--color-timeline-react-layout-effects-text\': \'#3e2c4a\',\n \'--color-timeline-react-passive-effects\': \'#b281d6\',\n \'--color-timeline-react-passive-effects-hover\': \'#9d71bd\',\n \'--color-timeline-react-passive-effects-text\': \'#3e2c4a\',\n \'--color-timeline-react-schedule\': \'#9fc3f3\',\n \'--color-timeline-react-schedule-hover\': \'#2683E2\',\n \'--color-timeline-react-suspense-rejected\': \'#f1cc14\',\n \'--color-timeline-react-suspense-rejected-hover\': \'#ffdf37\',\n \'--color-timeline-react-suspense-resolved\': \'#a6e59f\',\n \'--color-timeline-react-suspense-resolved-hover\': \'#89d281\',\n \'--color-timeline-react-suspense-unresolved\': \'#c9cacd\',\n \'--color-timeline-react-suspense-unresolved-hover\': \'#93959a\',\n \'--color-timeline-thrown-error\': \'#ee1638\',\n \'--color-timeline-thrown-error-hover\': \'#da1030\',\n \'--color-timeline-text-color\': \'#000000\',\n \'--color-timeline-text-dim-color\': \'#ccc\',\n \'--color-timeline-react-work-border\': \'#eeeeee\',\n \'--color-search-match\': \'yellow\',\n \'--color-search-match-current\': \'#f7923b\',\n \'--color-selected-tree-highlight-active\': \'rgba(0, 136, 250, 0.1)\',\n \'--color-selected-tree-highlight-inactive\': \'rgba(0, 0, 0, 0.05)\',\n \'--color-scroll-caret\': \'rgba(150, 150, 150, 0.5)\',\n \'--color-tab-selected-border\': \'#0088fa\',\n \'--color-text\': \'#000000\',\n \'--color-text-invalid\': \'#ff0000\',\n \'--color-text-selected\': \'#ffffff\',\n \'--color-toggle-background-invalid\': \'#fc3a4b\',\n \'--color-toggle-background-on\': \'#0088fa\',\n \'--color-toggle-background-off\': \'#cfd1d5\',\n \'--color-toggle-text\': \'#ffffff\',\n \'--color-warning-background\': \'#fb3655\',\n \'--color-warning-background-hover\': \'#f82042\',\n \'--color-warning-text-color\': \'#ffffff\',\n \'--color-warning-text-color-inverted\': \'#fd4d69\',\n // The styles below should be kept in sync with \'root.css\'\n // They are repeated there because they\'re used by e.g. tooltips or context menus\n // which get rendered outside of the DOM subtree (where normal theme/styles are written).\n \'--color-scroll-thumb\': \'#c2c2c2\',\n \'--color-scroll-track\': \'#fafafa\',\n \'--color-tooltip-background\': \'rgba(0, 0, 0, 0.9)\',\n \'--color-tooltip-text\': \'#ffffff\'\n },\n dark: {\n \'--color-attribute-name\': \'#9d87d2\',\n \'--color-attribute-name-not-editable\': \'#ededed\',\n \'--color-attribute-name-inverted\': \'#282828\',\n \'--color-attribute-value\': \'#cedae0\',\n \'--color-attribute-value-inverted\': \'#ffffff\',\n \'--color-attribute-editable-value\': \'yellow\',\n \'--color-background\': \'#282c34\',\n \'--color-background-hover\': \'rgba(255, 255, 255, 0.1)\',\n \'--color-background-inactive\': \'#3d424a\',\n \'--color-background-invalid\': \'#5c0000\',\n \'--color-background-selected\': \'#178fb9\',\n \'--color-button-background\': \'#282c34\',\n \'--color-button-background-focus\': \'#3d424a\',\n \'--color-button\': \'#afb3b9\',\n \'--color-button-active\': \'#61dafb\',\n \'--color-button-disabled\': \'#4f5766\',\n \'--color-button-focus\': \'#a2e9fc\',\n \'--color-button-hover\': \'#ededed\',\n \'--color-border\': \'#3d424a\',\n \'--color-commit-did-not-render-fill\': \'#777d88\',\n \'--color-commit-did-not-render-fill-text\': \'#000000\',\n \'--color-commit-did-not-render-pattern\': \'#666c77\',\n \'--color-commit-did-not-render-pattern-text\': \'#ffffff\',\n \'--color-commit-gradient-0\': \'#37afa9\',\n \'--color-commit-gradient-1\': \'#63b19e\',\n \'--color-commit-gradient-2\': \'#80b393\',\n \'--color-commit-gradient-3\': \'#97b488\',\n \'--color-commit-gradient-4\': \'#abb67d\',\n \'--color-commit-gradient-5\': \'#beb771\',\n \'--color-commit-gradient-6\': \'#cfb965\',\n \'--color-commit-gradient-7\': \'#dfba57\',\n \'--color-commit-gradient-8\': \'#efbb49\',\n \'--color-commit-gradient-9\': \'#febc38\',\n \'--color-commit-gradient-text\': \'#000000\',\n \'--color-component-name\': \'#61dafb\',\n \'--color-component-name-inverted\': \'#282828\',\n \'--color-component-badge-background\': \'#5e6167\',\n \'--color-component-badge-background-inverted\': \'#46494e\',\n \'--color-component-badge-count\': \'#8f949d\',\n \'--color-component-badge-count-inverted\': \'rgba(255, 255, 255, 0.85)\',\n \'--color-console-error-badge-text\': \'#000000\',\n \'--color-console-error-background\': \'#290000\',\n \'--color-console-error-border\': \'#5c0000\',\n \'--color-console-error-icon\': \'#eb3941\',\n \'--color-console-error-text\': \'#fc7f7f\',\n \'--color-console-warning-badge-text\': \'#000000\',\n \'--color-console-warning-background\': \'#332b00\',\n \'--color-console-warning-border\': \'#665500\',\n \'--color-console-warning-icon\': \'#f4bd00\',\n \'--color-console-warning-text\': \'#f5f2ed\',\n \'--color-context-background\': \'rgba(255,255,255,.95)\',\n \'--color-context-background-hover\': \'rgba(0, 136, 250, 0.1)\',\n \'--color-context-background-selected\': \'#0088fa\',\n \'--color-context-border\': \'#eeeeee\',\n \'--color-context-text\': \'#000000\',\n \'--color-context-text-selected\': \'#ffffff\',\n \'--color-dim\': \'#8f949d\',\n \'--color-dimmer\': \'#777d88\',\n \'--color-dimmest\': \'#4f5766\',\n \'--color-error-background\': \'#200\',\n \'--color-error-border\': \'#900\',\n \'--color-error-text\': \'#f55\',\n \'--color-expand-collapse-toggle\': \'#8f949d\',\n \'--color-forget-badge-background\': \'#2683e2\',\n \'--color-forget-badge-background-inverted\': \'#1a6bbc\',\n \'--color-forget-text\': \'#fff\',\n \'--color-link\': \'#61dafb\',\n \'--color-modal-background\': \'rgba(0, 0, 0, 0.75)\',\n \'--color-bridge-version-npm-background\': \'rgba(0, 0, 0, 0.25)\',\n \'--color-bridge-version-npm-text\': \'#ffffff\',\n \'--color-bridge-version-number\': \'yellow\',\n \'--color-primitive-hook-badge-background\': \'rgba(0, 0, 0, 0.25)\',\n \'--color-primitive-hook-badge-text\': \'rgba(255, 255, 255, 0.7)\',\n \'--color-record-active\': \'#fc3a4b\',\n \'--color-record-hover\': \'#a2e9fc\',\n \'--color-record-inactive\': \'#61dafb\',\n \'--color-resize-bar\': \'#282c34\',\n \'--color-resize-bar-active\': \'#31363f\',\n \'--color-resize-bar-border\': \'#3d424a\',\n \'--color-resize-bar-dot\': \'#cfd1d5\',\n \'--color-timeline-internal-module\': \'#303542\',\n \'--color-timeline-internal-module-hover\': \'#363b4a\',\n \'--color-timeline-internal-module-text\': \'#7f8899\',\n \'--color-timeline-native-event\': \'#b2b2b2\',\n \'--color-timeline-native-event-hover\': \'#949494\',\n \'--color-timeline-network-primary\': \'#fcf3dc\',\n \'--color-timeline-network-primary-hover\': \'#e3dbc5\',\n \'--color-timeline-network-secondary\': \'#efc457\',\n \'--color-timeline-network-secondary-hover\': \'#d6af4d\',\n \'--color-timeline-priority-background\': \'#1d2129\',\n \'--color-timeline-priority-border\': \'#282c34\',\n \'--color-timeline-user-timing\': \'#c9cacd\',\n \'--color-timeline-user-timing-hover\': \'#93959a\',\n \'--color-timeline-react-idle\': \'#3d485b\',\n \'--color-timeline-react-idle-hover\': \'#465269\',\n \'--color-timeline-react-render\': \'#2683E2\',\n \'--color-timeline-react-render-hover\': \'#1a76d4\',\n \'--color-timeline-react-render-text\': \'#11365e\',\n \'--color-timeline-react-commit\': \'#731fad\',\n \'--color-timeline-react-commit-hover\': \'#611b94\',\n \'--color-timeline-react-commit-text\': \'#e5c1ff\',\n \'--color-timeline-react-layout-effects\': \'#611b94\',\n \'--color-timeline-react-layout-effects-hover\': \'#51167a\',\n \'--color-timeline-react-layout-effects-text\': \'#e5c1ff\',\n \'--color-timeline-react-passive-effects\': \'#611b94\',\n \'--color-timeline-react-passive-effects-hover\': \'#51167a\',\n \'--color-timeline-react-passive-effects-text\': \'#e5c1ff\',\n \'--color-timeline-react-schedule\': \'#2683E2\',\n \'--color-timeline-react-schedule-hover\': \'#1a76d4\',\n \'--color-timeline-react-suspense-rejected\': \'#f1cc14\',\n \'--color-timeline-react-suspense-rejected-hover\': \'#e4c00f\',\n \'--color-timeline-react-suspense-resolved\': \'#a6e59f\',\n \'--color-timeline-react-suspense-resolved-hover\': \'#89d281\',\n \'--color-timeline-react-suspense-unresolved\': \'#c9cacd\',\n \'--color-timeline-react-suspense-unresolved-hover\': \'#93959a\',\n \'--color-timeline-thrown-error\': \'#fb3655\',\n \'--color-timeline-thrown-error-hover\': \'#f82042\',\n \'--color-timeline-text-color\': \'#282c34\',\n \'--color-timeline-text-dim-color\': \'#555b66\',\n \'--color-timeline-react-work-border\': \'#3d424a\',\n \'--color-search-match\': \'yellow\',\n \'--color-search-match-current\': \'#f7923b\',\n \'--color-selected-tree-highlight-active\': \'rgba(23, 143, 185, 0.15)\',\n \'--color-selected-tree-highlight-inactive\': \'rgba(255, 255, 255, 0.05)\',\n \'--color-scroll-caret\': \'#4f5766\',\n \'--color-shadow\': \'rgba(0, 0, 0, 0.5)\',\n \'--color-tab-selected-border\': \'#178fb9\',\n \'--color-text\': \'#ffffff\',\n \'--color-text-invalid\': \'#ff8080\',\n \'--color-text-selected\': \'#ffffff\',\n \'--color-toggle-background-invalid\': \'#fc3a4b\',\n \'--color-toggle-background-on\': \'#178fb9\',\n \'--color-toggle-background-off\': \'#777d88\',\n \'--color-toggle-text\': \'#ffffff\',\n \'--color-warning-background\': \'#ee1638\',\n \'--color-warning-background-hover\': \'#da1030\',\n \'--color-warning-text-color\': \'#ffffff\',\n \'--color-warning-text-color-inverted\': \'#ee1638\',\n // The styles below should be kept in sync with \'root.css\'\n // They are repeated there because they\'re used by e.g. tooltips or context menus\n // which get rendered outside of the DOM subtree (where normal theme/styles are written).\n \'--color-scroll-thumb\': \'#afb3b9\',\n \'--color-scroll-track\': \'#313640\',\n \'--color-tooltip-background\': \'rgba(255, 255, 255, 0.95)\',\n \'--color-tooltip-text\': \'#000000\'\n },\n compact: {\n \'--font-size-monospace-small\': \'9px\',\n \'--font-size-monospace-normal\': \'11px\',\n \'--font-size-monospace-large\': \'15px\',\n \'--font-size-sans-small\': \'10px\',\n \'--font-size-sans-normal\': \'12px\',\n \'--font-size-sans-large\': \'14px\',\n \'--line-height-data\': \'18px\'\n },\n comfortable: {\n \'--font-size-monospace-small\': \'10px\',\n \'--font-size-monospace-normal\': \'13px\',\n \'--font-size-monospace-large\': \'17px\',\n \'--font-size-sans-small\': \'12px\',\n \'--font-size-sans-normal\': \'14px\',\n \'--font-size-sans-large\': \'16px\',\n \'--line-height-data\': \'22px\'\n }\n}; // HACK\n//\n// Sometimes the inline target is rendered before root styles are applied,\n// which would result in e.g. NaN itemSize being passed to react-window list.\n\nconst COMFORTABLE_LINE_HEIGHT = parseInt(THEME_STYLES.comfortable[\'--line-height-data\'], 10);\nconst COMPACT_LINE_HEIGHT = parseInt(THEME_STYLES.compact[\'--line-height-data\'], 10);\n\n;// CONCATENATED MODULE: ../react-devtools-timeline/src/constants.js\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\n\nconst REACT_TOTAL_NUM_LANES = 31; // Increment this number any time a backwards breaking change is made to the profiler metadata.\n\nconst SCHEDULING_PROFILER_VERSION = 1;\nconst SNAPSHOT_MAX_HEIGHT = 60;\n;// CONCATENATED MODULE: ../react-devtools-timeline/src/import-worker/InvalidProfileError.js\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\n\n/**\n * An error thrown when an invalid profile could not be processed.\n */\nclass InvalidProfileError extends Error {}\n;// CONCATENATED MODULE: ../react-devtools-timeline/node_modules/memoize-one/dist/memoize-one.esm.js\nfunction areInputsEqual(newInputs, lastInputs) {\n if (newInputs.length !== lastInputs.length) {\n return false;\n }\n\n for (var i = 0; i < newInputs.length; i++) {\n if (newInputs[i] !== lastInputs[i]) {\n return false;\n }\n }\n\n return true;\n}\n\nfunction memoizeOne(resultFn, isEqual) {\n if (isEqual === void 0) {\n isEqual = areInputsEqual;\n }\n\n var lastThis;\n var lastArgs = [];\n var lastResult;\n var calledOnce = false;\n\n function memoized() {\n var newArgs = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n newArgs[_i] = arguments[_i];\n }\n\n if (calledOnce && lastThis === this && isEqual(newArgs, lastArgs)) {\n return lastResult;\n }\n\n lastResult = resultFn.apply(this, newArgs);\n calledOnce = true;\n lastThis = this;\n lastArgs = newArgs;\n return lastResult;\n }\n\n return memoized;\n}\n\n/* harmony default export */ const memoize_one_esm = (memoizeOne);\n;// CONCATENATED MODULE: ../react-devtools-timeline/src/utils/getBatchRange.js\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\n\n\nfunction unmemoizedGetBatchRange(batchUID, data, minStartTime = 0) {\n const measures = data.batchUIDToMeasuresMap.get(batchUID);\n\n if (measures == null || measures.length === 0) {\n throw Error(`Could not find measures with batch UID "${batchUID}"`);\n }\n\n const lastMeasure = measures[measures.length - 1];\n const stopTime = lastMeasure.timestamp + lastMeasure.duration;\n\n if (stopTime < minStartTime) {\n return [0, 0];\n }\n\n let startTime = minStartTime;\n\n for (let index = 0; index < measures.length; index++) {\n const measure = measures[index];\n\n if (measure.timestamp >= minStartTime) {\n startTime = measure.timestamp;\n break;\n }\n }\n\n return [startTime, stopTime];\n}\n\nconst getBatchRange = memoize_one_esm(unmemoizedGetBatchRange);\n// EXTERNAL MODULE: ../../node_modules/error-stack-parser/error-stack-parser.js\nvar error_stack_parser = __webpack_require__(715);\nvar error_stack_parser_default = /*#__PURE__*/__webpack_require__.n(error_stack_parser);\n;// CONCATENATED MODULE: ../react-devtools-timeline/src/import-worker/preprocessData.js\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\n\n\n\n\n\nconst NATIVE_EVENT_DURATION_THRESHOLD = 20;\nconst NESTED_UPDATE_DURATION_THRESHOLD = 20;\nconst WARNING_STRINGS = {\n LONG_EVENT_HANDLER: \'An event handler scheduled a big update with React. Consider using the Transition API to defer some of this work.\',\n NESTED_UPDATE: \'A big nested update was scheduled during layout. \' + \'Nested updates require React to re-render synchronously before the browser can paint. \' + \'Consider delaying this update by moving it to a passive effect (useEffect).\',\n SUSPEND_DURING_UPDATE: \'A component suspended during an update which caused a fallback to be shown. \' + "Consider using the Transition API to avoid hiding components after they\'ve been mounted."\n}; // Exported for tests\n\nfunction getLanesFromTransportDecimalBitmask(laneBitmaskString) {\n const laneBitmask = parseInt(laneBitmaskString, 10); // As negative numbers are stored in two\'s complement format, our bitmask\n // checks will be thrown off by them.\n\n if (laneBitmask < 0) {\n return [];\n }\n\n const lanes = [];\n let powersOfTwo = 0;\n\n while (powersOfTwo <= REACT_TOTAL_NUM_LANES) {\n if (1 << powersOfTwo & laneBitmask) {\n lanes.push(powersOfTwo);\n }\n\n powersOfTwo++;\n }\n\n return lanes;\n}\n\nfunction updateLaneToLabelMap(profilerData, laneLabelTuplesString) {\n // These marks appear multiple times in the data;\n // We only need to extact them once.\n if (profilerData.laneToLabelMap.size === 0) {\n const laneLabelTuples = laneLabelTuplesString.split(\',\');\n\n for (let laneIndex = 0; laneIndex < laneLabelTuples.length; laneIndex++) {\n // The numeric lane value (e.g. 64) isn\'t important.\n // The profiler parses and stores the lane\'s position within the bitmap,\n // (e.g. lane 1 is index 0, lane 16 is index 4).\n profilerData.laneToLabelMap.set(laneIndex, laneLabelTuples[laneIndex]);\n }\n }\n}\n\nlet profilerVersion = null;\n\nfunction getLastType(stack) {\n if (stack.length > 0) {\n const {\n type\n } = stack[stack.length - 1];\n return type;\n }\n\n return null;\n}\n\nfunction getDepth(stack) {\n if (stack.length > 0) {\n const {\n depth,\n type\n } = stack[stack.length - 1];\n return type === \'render-idle\' ? depth : depth + 1;\n }\n\n return 0;\n}\n\nfunction markWorkStarted(type, startTime, lanes, currentProfilerData, state) {\n const {\n batchUID,\n measureStack\n } = state;\n const depth = getDepth(measureStack);\n const measure = {\n type,\n batchUID,\n depth,\n lanes,\n timestamp: startTime,\n duration: 0\n };\n state.measureStack.push({\n depth,\n measure,\n startTime,\n type\n }); // This array is pre-initialized when the batchUID is generated.\n\n const measures = currentProfilerData.batchUIDToMeasuresMap.get(batchUID);\n\n if (measures != null) {\n measures.push(measure);\n } else {\n currentProfilerData.batchUIDToMeasuresMap.set(state.batchUID, [measure]);\n } // This array is pre-initialized before processing starts.\n\n\n lanes.forEach(lane => {\n currentProfilerData.laneToReactMeasureMap.get(lane).push(measure);\n });\n}\n\nfunction markWorkCompleted(type, stopTime, currentProfilerData, stack) {\n if (stack.length === 0) {\n console.error(\'Unexpected type "%s" completed at %sms while stack is empty.\', type, stopTime); // Ignore work "completion" user timing mark that doesn\'t complete anything\n\n return;\n }\n\n const last = stack[stack.length - 1];\n\n if (last.type !== type) {\n console.error(\'Unexpected type "%s" completed at %sms before "%s" completed.\', type, stopTime, last.type);\n }\n\n const {\n measure,\n startTime\n } = stack.pop();\n\n if (!measure) {\n console.error(\'Could not find matching measure for type "%s".\', type);\n } // $FlowFixMe[cannot-write] This property should not be writable outside of this function.\n\n\n measure.duration = stopTime - startTime;\n}\n\nfunction throwIfIncomplete(type, stack) {\n const lastIndex = stack.length - 1;\n\n if (lastIndex >= 0) {\n const last = stack[lastIndex];\n\n if (last.stopTime === undefined && last.type === type) {\n throw new InvalidProfileError(`Unexpected type "${type}" started before "${last.type}" completed.`);\n }\n }\n}\n\nfunction processEventDispatch(event, timestamp, profilerData, state) {\n const data = event.args.data;\n const type = data.type;\n\n if (type.startsWith(\'react-\')) {\n const stackTrace = data.stackTrace;\n\n if (stackTrace) {\n const topFrame = stackTrace[stackTrace.length - 1];\n\n if (topFrame.url.includes(\'/react-dom.\')) {\n // Filter out fake React events dispatched by invokeGuardedCallbackDev.\n return;\n }\n }\n } // Reduce noise from events like DOMActivate, load/unload, etc. which are usually not relevant\n\n\n if (type === \'blur\' || type === \'click\' || type === \'input\' || type.startsWith(\'focus\') || type.startsWith(\'key\') || type.startsWith(\'mouse\') || type.startsWith(\'pointer\')) {\n const duration = event.dur / 1000;\n let depth = 0;\n\n while (state.nativeEventStack.length > 0) {\n const prevNativeEvent = state.nativeEventStack[state.nativeEventStack.length - 1];\n const prevStopTime = prevNativeEvent.timestamp + prevNativeEvent.duration;\n\n if (timestamp < prevStopTime) {\n depth = prevNativeEvent.depth + 1;\n break;\n } else {\n state.nativeEventStack.pop();\n }\n }\n\n const nativeEvent = {\n depth,\n duration,\n timestamp,\n type,\n warning: null\n };\n profilerData.nativeEvents.push(nativeEvent); // Keep track of curent event in case future ones overlap.\n // We separate them into different vertical lanes in this case.\n\n state.nativeEventStack.push(nativeEvent);\n }\n}\n\nfunction processResourceFinish(event, timestamp, profilerData, state) {\n const requestId = event.args.data.requestId;\n const networkMeasure = state.requestIdToNetworkMeasureMap.get(requestId);\n\n if (networkMeasure != null) {\n networkMeasure.finishTimestamp = timestamp;\n\n if (networkMeasure.firstReceivedDataTimestamp === 0) {\n networkMeasure.firstReceivedDataTimestamp = timestamp;\n }\n\n if (networkMeasure.lastReceivedDataTimestamp === 0) {\n networkMeasure.lastReceivedDataTimestamp = timestamp;\n } // Clean up now that the resource is done.\n\n\n state.requestIdToNetworkMeasureMap.delete(event.args.data.requestId);\n }\n}\n\nfunction processResourceReceivedData(event, timestamp, profilerData, state) {\n const requestId = event.args.data.requestId;\n const networkMeasure = state.requestIdToNetworkMeasureMap.get(requestId);\n\n if (networkMeasure != null) {\n if (networkMeasure.firstReceivedDataTimestamp === 0) {\n networkMeasure.firstReceivedDataTimestamp = timestamp;\n }\n\n networkMeasure.lastReceivedDataTimestamp = timestamp;\n networkMeasure.finishTimestamp = timestamp;\n }\n}\n\nfunction processResourceReceiveResponse(event, timestamp, profilerData, state) {\n const requestId = event.args.data.requestId;\n const networkMeasure = state.requestIdToNetworkMeasureMap.get(requestId);\n\n if (networkMeasure != null) {\n networkMeasure.receiveResponseTimestamp = timestamp;\n }\n}\n\nfunction processScreenshot(event, timestamp, profilerData, state) {\n const encodedSnapshot = event.args.snapshot; // Base 64 encoded\n\n const snapshot = {\n height: 0,\n image: null,\n imageSource: `data:image/png;base64,${encodedSnapshot}`,\n timestamp,\n width: 0\n }; // Delay processing until we\'ve extracted snapshot dimensions.\n\n let resolveFn = null;\n state.asyncProcessingPromises.push(new Promise(resolve => {\n resolveFn = resolve;\n })); // Parse the Base64 image data to determine native size.\n // This will be used later to scale for display within the thumbnail strip.\n\n fetch(snapshot.imageSource).then(response => response.blob()).then(blob => {\n // $FlowFixMe[cannot-resolve-name] createImageBitmap\n createImageBitmap(blob).then(bitmap => {\n snapshot.height = bitmap.height;\n snapshot.width = bitmap.width;\n resolveFn();\n });\n });\n profilerData.snapshots.push(snapshot);\n}\n\nfunction processResourceSendRequest(event, timestamp, profilerData, state) {\n const data = event.args.data;\n const requestId = data.requestId;\n const availableDepths = new Array(state.requestIdToNetworkMeasureMap.size + 1).fill(true);\n state.requestIdToNetworkMeasureMap.forEach(({\n depth\n }) => {\n availableDepths[depth] = false;\n });\n let depth = 0;\n\n for (let i = 0; i < availableDepths.length; i++) {\n if (availableDepths[i]) {\n depth = i;\n break;\n }\n }\n\n const networkMeasure = {\n depth,\n finishTimestamp: 0,\n firstReceivedDataTimestamp: 0,\n lastReceivedDataTimestamp: 0,\n requestId,\n requestMethod: data.requestMethod,\n priority: data.priority,\n sendRequestTimestamp: timestamp,\n receiveResponseTimestamp: 0,\n url: data.url\n };\n state.requestIdToNetworkMeasureMap.set(requestId, networkMeasure);\n profilerData.networkMeasures.push(networkMeasure);\n networkMeasure.sendRequestTimestamp = timestamp;\n}\n\nfunction processTimelineEvent(event,\n/** Finalized profiler data up to `event`. May be mutated. */\ncurrentProfilerData,\n/** Intermediate processor state. May be mutated. */\nstate) {\n const {\n cat,\n name,\n ts,\n ph\n } = event;\n const startTime = (ts - currentProfilerData.startTime) / 1000;\n\n switch (cat) {\n case \'disabled-by-default-devtools.screenshot\':\n processScreenshot(event, startTime, currentProfilerData, state);\n break;\n\n case \'devtools.timeline\':\n switch (name) {\n case \'EventDispatch\':\n processEventDispatch(event, startTime, currentProfilerData, state);\n break;\n\n case \'ResourceFinish\':\n processResourceFinish(event, startTime, currentProfilerData, state);\n break;\n\n case \'ResourceReceivedData\':\n processResourceReceivedData(event, startTime, currentProfilerData, state);\n break;\n\n case \'ResourceReceiveResponse\':\n processResourceReceiveResponse(event, startTime, currentProfilerData, state);\n break;\n\n case \'ResourceSendRequest\':\n processResourceSendRequest(event, startTime, currentProfilerData, state);\n break;\n }\n\n break;\n\n case \'blink.user_timing\':\n if (name.startsWith(\'--react-version-\')) {\n const [reactVersion] = name.slice(16).split(\'-\');\n currentProfilerData.reactVersion = reactVersion;\n } else if (name.startsWith(\'--profiler-version-\')) {\n const [versionString] = name.slice(19).split(\'-\');\n profilerVersion = parseInt(versionString, 10);\n\n if (profilerVersion !== SCHEDULING_PROFILER_VERSION) {\n throw new InvalidProfileError(`This version of profiling data (${versionString}) is not supported by the current profiler.`);\n }\n } else if (name.startsWith(\'--react-lane-labels-\')) {\n const [laneLabelTuplesString] = name.slice(20).split(\'-\');\n updateLaneToLabelMap(currentProfilerData, laneLabelTuplesString);\n } else if (name.startsWith(\'--component-\')) {\n processReactComponentMeasure(name, startTime, currentProfilerData, state);\n } else if (name.startsWith(\'--schedule-render-\')) {\n const [laneBitmaskString] = name.slice(18).split(\'-\');\n currentProfilerData.schedulingEvents.push({\n type: \'schedule-render\',\n lanes: getLanesFromTransportDecimalBitmask(laneBitmaskString),\n timestamp: startTime,\n warning: null\n });\n } else if (name.startsWith(\'--schedule-forced-update-\')) {\n const [laneBitmaskString, componentName] = name.slice(25).split(\'-\');\n const forceUpdateEvent = {\n type: \'schedule-force-update\',\n lanes: getLanesFromTransportDecimalBitmask(laneBitmaskString),\n componentName,\n timestamp: startTime,\n warning: null\n }; // If this is a nested update, make a note of it.\n // Once we\'re done processing events, we\'ll check to see if it was a long update and warn about it.\n\n if (state.measureStack.find(({\n type\n }) => type === \'commit\')) {\n state.potentialLongNestedUpdate = forceUpdateEvent;\n }\n\n currentProfilerData.schedulingEvents.push(forceUpdateEvent);\n } else if (name.startsWith(\'--schedule-state-update-\')) {\n const [laneBitmaskString, componentName] = name.slice(24).split(\'-\');\n const stateUpdateEvent = {\n type: \'schedule-state-update\',\n lanes: getLanesFromTransportDecimalBitmask(laneBitmaskString),\n componentName,\n timestamp: startTime,\n warning: null\n }; // If this is a nested update, make a note of it.\n // Once we\'re done processing events, we\'ll check to see if it was a long update and warn about it.\n\n if (state.measureStack.find(({\n type\n }) => type === \'commit\')) {\n state.potentialLongNestedUpdate = stateUpdateEvent;\n }\n\n currentProfilerData.schedulingEvents.push(stateUpdateEvent);\n } else if (name.startsWith(\'--error-\')) {\n const [componentName, phase, message] = name.slice(8).split(\'-\');\n currentProfilerData.thrownErrors.push({\n componentName,\n message,\n phase: phase,\n timestamp: startTime,\n type: \'thrown-error\'\n });\n } else if (name.startsWith(\'--suspense-suspend-\')) {\n const [id, componentName, phase, laneBitmaskString, promiseName] = name.slice(19).split(\'-\');\n const lanes = getLanesFromTransportDecimalBitmask(laneBitmaskString);\n const availableDepths = new Array(state.unresolvedSuspenseEvents.size + 1).fill(true);\n state.unresolvedSuspenseEvents.forEach(({\n depth\n }) => {\n availableDepths[depth] = false;\n });\n let depth = 0;\n\n for (let i = 0; i < availableDepths.length; i++) {\n if (availableDepths[i]) {\n depth = i;\n break;\n }\n } // TODO (timeline) Maybe we should calculate depth in post,\n // so unresolved Suspense requests don\'t take up space.\n // We can\'t know if they\'ll be resolved or not at this point.\n // We\'ll just give them a default (fake) duration width.\n\n\n const suspenseEvent = {\n componentName,\n depth,\n duration: null,\n id,\n phase: phase,\n promiseName: promiseName || null,\n resolution: \'unresolved\',\n timestamp: startTime,\n type: \'suspense\',\n warning: null\n };\n\n if (phase === \'update\') {\n // If a component suspended during an update, we should verify that it was during a transition.\n // We need the lane metadata to verify this though.\n // Since that data is only logged during commit, we may not have it yet.\n // Store these events for post-processing then.\n state.potentialSuspenseEventsOutsideOfTransition.push([suspenseEvent, lanes]);\n }\n\n currentProfilerData.suspenseEvents.push(suspenseEvent);\n state.unresolvedSuspenseEvents.set(id, suspenseEvent);\n } else if (name.startsWith(\'--suspense-resolved-\')) {\n const [id] = name.slice(20).split(\'-\');\n const suspenseEvent = state.unresolvedSuspenseEvents.get(id);\n\n if (suspenseEvent != null) {\n state.unresolvedSuspenseEvents.delete(id);\n suspenseEvent.duration = startTime - suspenseEvent.timestamp;\n suspenseEvent.resolution = \'resolved\';\n }\n } else if (name.startsWith(\'--suspense-rejected-\')) {\n const [id] = name.slice(20).split(\'-\');\n const suspenseEvent = state.unresolvedSuspenseEvents.get(id);\n\n if (suspenseEvent != null) {\n state.unresolvedSuspenseEvents.delete(id);\n suspenseEvent.duration = startTime - suspenseEvent.timestamp;\n suspenseEvent.resolution = \'rejected\';\n }\n } else if (name.startsWith(\'--render-start-\')) {\n if (state.nextRenderShouldGenerateNewBatchID) {\n state.nextRenderShouldGenerateNewBatchID = false;\n state.batchUID = state.uidCounter++;\n } // If this render is the result of a nested update, make a note of it.\n // Once we\'re done processing events, we\'ll check to see if it was a long update and warn about it.\n\n\n if (state.potentialLongNestedUpdate !== null) {\n state.potentialLongNestedUpdates.push([state.potentialLongNestedUpdate, state.batchUID]);\n state.potentialLongNestedUpdate = null;\n }\n\n const [laneBitmaskString] = name.slice(15).split(\'-\');\n throwIfIncomplete(\'render\', state.measureStack);\n\n if (getLastType(state.measureStack) !== \'render-idle\') {\n markWorkStarted(\'render-idle\', startTime, getLanesFromTransportDecimalBitmask(laneBitmaskString), currentProfilerData, state);\n }\n\n markWorkStarted(\'render\', startTime, getLanesFromTransportDecimalBitmask(laneBitmaskString), currentProfilerData, state);\n\n for (let i = 0; i < state.nativeEventStack.length; i++) {\n const nativeEvent = state.nativeEventStack[i];\n const stopTime = nativeEvent.timestamp + nativeEvent.duration; // If React work was scheduled during an event handler, and the event had a long duration,\n // it might be because the React render was long and stretched the event.\n // It might also be that the React work was short and that something else stretched the event.\n // Make a note of this event for now and we\'ll examine the batch of React render work later.\n // (We can\'t know until we\'re done processing the React update anyway.)\n\n if (stopTime > startTime) {\n state.potentialLongEvents.push([nativeEvent, state.batchUID]);\n }\n }\n } else if (name.startsWith(\'--render-stop\') || name.startsWith(\'--render-yield\')) {\n markWorkCompleted(\'render\', startTime, currentProfilerData, state.measureStack);\n } else if (name.startsWith(\'--commit-start-\')) {\n state.nextRenderShouldGenerateNewBatchID = true;\n const [laneBitmaskString] = name.slice(15).split(\'-\');\n markWorkStarted(\'commit\', startTime, getLanesFromTransportDecimalBitmask(laneBitmaskString), currentProfilerData, state);\n } else if (name.startsWith(\'--commit-stop\')) {\n markWorkCompleted(\'commit\', startTime, currentProfilerData, state.measureStack);\n markWorkCompleted(\'render-idle\', startTime, currentProfilerData, state.measureStack);\n } else if (name.startsWith(\'--layout-effects-start-\')) {\n const [laneBitmaskString] = name.slice(23).split(\'-\');\n markWorkStarted(\'layout-effects\', startTime, getLanesFromTransportDecimalBitmask(laneBitmaskString), currentProfilerData, state);\n } else if (name.startsWith(\'--layout-effects-stop\')) {\n markWorkCompleted(\'layout-effects\', startTime, currentProfilerData, state.measureStack);\n } else if (name.startsWith(\'--passive-effects-start-\')) {\n const [laneBitmaskString] = name.slice(24).split(\'-\');\n markWorkStarted(\'passive-effects\', startTime, getLanesFromTransportDecimalBitmask(laneBitmaskString), currentProfilerData, state);\n } else if (name.startsWith(\'--passive-effects-stop\')) {\n markWorkCompleted(\'passive-effects\', startTime, currentProfilerData, state.measureStack);\n } else if (name.startsWith(\'--react-internal-module-start-\')) {\n const stackFrameStart = name.slice(30);\n\n if (!state.internalModuleStackStringSet.has(stackFrameStart)) {\n state.internalModuleStackStringSet.add(stackFrameStart);\n const parsedStackFrameStart = parseStackFrame(stackFrameStart);\n state.internalModuleCurrentStackFrame = parsedStackFrameStart;\n }\n } else if (name.startsWith(\'--react-internal-module-stop-\')) {\n const stackFrameStop = name.slice(29);\n\n if (!state.internalModuleStackStringSet.has(stackFrameStop)) {\n state.internalModuleStackStringSet.add(stackFrameStop);\n const parsedStackFrameStop = parseStackFrame(stackFrameStop);\n\n if (parsedStackFrameStop !== null && state.internalModuleCurrentStackFrame !== null) {\n const parsedStackFrameStart = state.internalModuleCurrentStackFrame;\n state.internalModuleCurrentStackFrame = null;\n const range = [parsedStackFrameStart, parsedStackFrameStop];\n const ranges = currentProfilerData.internalModuleSourceToRanges.get(parsedStackFrameStart.fileName);\n\n if (ranges == null) {\n currentProfilerData.internalModuleSourceToRanges.set(parsedStackFrameStart.fileName, [range]);\n } else {\n ranges.push(range);\n }\n }\n }\n } else if (ph === \'R\' || ph === \'n\') {\n // User Timing mark\n currentProfilerData.otherUserTimingMarks.push({\n name,\n timestamp: startTime\n });\n } else if (ph === \'b\') {// TODO: Begin user timing measure\n } else if (ph === \'e\') {// TODO: End user timing measure\n } else if (ph === \'i\' || ph === \'I\') {// Instant events.\n // Note that the capital "I" is a deprecated value that exists in Chrome Canary traces.\n } else {\n throw new InvalidProfileError(`Unrecognized event ${JSON.stringify(event)}! This is likely a bug in this profiler tool.`);\n }\n\n break;\n }\n}\n\nfunction assertNoOverlappingComponentMeasure(state) {\n if (state.currentReactComponentMeasure !== null) {\n console.error(\'Component measure started while another measure in progress:\', state.currentReactComponentMeasure);\n }\n}\n\nfunction assertCurrentComponentMeasureType(state, type) {\n if (state.currentReactComponentMeasure === null) {\n console.error(`Component measure type "${type}" stopped while no measure was in progress`);\n } else if (state.currentReactComponentMeasure.type !== type) {\n console.error(`Component measure type "${type}" stopped while type ${state.currentReactComponentMeasure.type} in progress`);\n }\n}\n\nfunction processReactComponentMeasure(name, startTime, currentProfilerData, state) {\n if (name.startsWith(\'--component-render-start-\')) {\n const [componentName] = name.slice(25).split(\'-\');\n assertNoOverlappingComponentMeasure(state);\n state.currentReactComponentMeasure = {\n componentName,\n timestamp: startTime,\n duration: 0,\n type: \'render\',\n warning: null\n };\n } else if (name === \'--component-render-stop\') {\n assertCurrentComponentMeasureType(state, \'render\');\n\n if (state.currentReactComponentMeasure !== null) {\n const componentMeasure = state.currentReactComponentMeasure;\n componentMeasure.duration = startTime - componentMeasure.timestamp;\n state.currentReactComponentMeasure = null;\n currentProfilerData.componentMeasures.push(componentMeasure);\n }\n } else if (name.startsWith(\'--component-layout-effect-mount-start-\')) {\n const [componentName] = name.slice(38).split(\'-\');\n assertNoOverlappingComponentMeasure(state);\n state.currentReactComponentMeasure = {\n componentName,\n timestamp: startTime,\n duration: 0,\n type: \'layout-effect-mount\',\n warning: null\n };\n } else if (name === \'--component-layout-effect-mount-stop\') {\n assertCurrentComponentMeasureType(state, \'layout-effect-mount\');\n\n if (state.currentReactComponentMeasure !== null) {\n const componentMeasure = state.currentReactComponentMeasure;\n componentMeasure.duration = startTime - componentMeasure.timestamp;\n state.currentReactComponentMeasure = null;\n currentProfilerData.componentMeasures.push(componentMeasure);\n }\n } else if (name.startsWith(\'--component-layout-effect-unmount-start-\')) {\n const [componentName] = name.slice(40).split(\'-\');\n assertNoOverlappingComponentMeasure(state);\n state.currentReactComponentMeasure = {\n componentName,\n timestamp: startTime,\n duration: 0,\n type: \'layout-effect-unmount\',\n warning: null\n };\n } else if (name === \'--component-layout-effect-unmount-stop\') {\n assertCurrentComponentMeasureType(state, \'layout-effect-unmount\');\n\n if (state.currentReactComponentMeasure !== null) {\n const componentMeasure = state.currentReactComponentMeasure;\n componentMeasure.duration = startTime - componentMeasure.timestamp;\n state.currentReactComponentMeasure = null;\n currentProfilerData.componentMeasures.push(componentMeasure);\n }\n } else if (name.startsWith(\'--component-passive-effect-mount-start-\')) {\n const [componentName] = name.slice(39).split(\'-\');\n assertNoOverlappingComponentMeasure(state);\n state.currentReactComponentMeasure = {\n componentName,\n timestamp: startTime,\n duration: 0,\n type: \'passive-effect-mount\',\n warning: null\n };\n } else if (name === \'--component-passive-effect-mount-stop\') {\n assertCurrentComponentMeasureType(state, \'passive-effect-mount\');\n\n if (state.currentReactComponentMeasure !== null) {\n const componentMeasure = state.currentReactComponentMeasure;\n componentMeasure.duration = startTime - componentMeasure.timestamp;\n state.currentReactComponentMeasure = null;\n currentProfilerData.componentMeasures.push(componentMeasure);\n }\n } else if (name.startsWith(\'--component-passive-effect-unmount-start-\')) {\n const [componentName] = name.slice(41).split(\'-\');\n assertNoOverlappingComponentMeasure(state);\n state.currentReactComponentMeasure = {\n componentName,\n timestamp: startTime,\n duration: 0,\n type: \'passive-effect-unmount\',\n warning: null\n };\n } else if (name === \'--component-passive-effect-unmount-stop\') {\n assertCurrentComponentMeasureType(state, \'passive-effect-unmount\');\n\n if (state.currentReactComponentMeasure !== null) {\n const componentMeasure = state.currentReactComponentMeasure;\n componentMeasure.duration = startTime - componentMeasure.timestamp;\n state.currentReactComponentMeasure = null;\n currentProfilerData.componentMeasures.push(componentMeasure);\n }\n }\n}\n\nfunction preprocessFlamechart(rawData) {\n let parsedData;\n\n try {\n parsedData = (0,library.importFromChromeTimeline)(rawData, \'react-devtools\');\n } catch (error) {\n // Assume any Speedscope errors are caused by bad profiles\n const errorToRethrow = new InvalidProfileError(error.message);\n errorToRethrow.stack = error.stack;\n throw errorToRethrow;\n }\n\n const profile = parsedData.profiles[0]; // TODO: Choose the main CPU thread only\n\n const speedscopeFlamechart = new library.Flamechart({\n // $FlowFixMe[method-unbinding]\n getTotalWeight: profile.getTotalWeight.bind(profile),\n // $FlowFixMe[method-unbinding]\n forEachCall: profile.forEachCall.bind(profile),\n // $FlowFixMe[method-unbinding]\n formatValue: profile.formatValue.bind(profile),\n getColorBucketForFrame: () => 0\n });\n const flamechart = speedscopeFlamechart.getLayers().map(layer => layer.map(({\n start,\n end,\n node: {\n frame: {\n name,\n file,\n line,\n col\n }\n }\n }) => ({\n name,\n timestamp: start / 1000,\n duration: (end - start) / 1000,\n scriptUrl: file,\n locationLine: line,\n locationColumn: col\n })));\n return flamechart;\n}\n\nfunction parseStackFrame(stackFrame) {\n const error = new Error();\n error.stack = stackFrame;\n const frames = error_stack_parser_default().parse(error);\n return frames.length === 1 ? frames[0] : null;\n}\n\nasync function preprocessData(timeline) {\n const flamechart = preprocessFlamechart(timeline);\n const laneToReactMeasureMap = new Map();\n\n for (let lane = 0; lane < REACT_TOTAL_NUM_LANES; lane++) {\n laneToReactMeasureMap.set(lane, []);\n }\n\n const profilerData = {\n batchUIDToMeasuresMap: new Map(),\n componentMeasures: [],\n duration: 0,\n flamechart,\n internalModuleSourceToRanges: new Map(),\n laneToLabelMap: new Map(),\n laneToReactMeasureMap,\n nativeEvents: [],\n networkMeasures: [],\n otherUserTimingMarks: [],\n reactVersion: null,\n schedulingEvents: [],\n snapshots: [],\n snapshotHeight: 0,\n startTime: 0,\n suspenseEvents: [],\n thrownErrors: []\n }; // Sort `timeline`. JSON Array Format trace events need not be ordered. See:\n // https://docs.google.com/document/d/1CvAClvFfyA5R-PhYUmn5OOQtYMH4h6I0nSsKchNAySU/preview#heading=h.f2f0yd51wi15\n\n timeline = timeline.filter(Boolean).sort((a, b) => a.ts > b.ts ? 1 : -1); // Events displayed in flamechart have timestamps relative to the profile\n // event\'s startTime. Source: https://github.com/v8/v8/blob/44bd8fd7/src/inspector/js_protocol.json#L1486\n //\n // We\'ll thus expect there to be a \'Profile\' event; if there is not one, we\n // can deduce that there are no flame chart events. As we expect React\n // scheduling profiling user timing marks to be recorded together with browser\n // flame chart events, we can futher deduce that the data is invalid and we\n // don\'t bother finding React events.\n\n const indexOfProfileEvent = timeline.findIndex(event => event.name === \'Profile\');\n\n if (indexOfProfileEvent === -1) {\n return profilerData;\n } // Use Profile event\'s `startTime` as the start time to align with flame chart.\n // TODO: Remove assumption that there\'ll only be 1 \'Profile\' event. If this\n // assumption does not hold, the chart may start at the wrong time.\n\n\n profilerData.startTime = timeline[indexOfProfileEvent].args.data.startTime;\n profilerData.duration = (timeline[timeline.length - 1].ts - profilerData.startTime) / 1000;\n const state = {\n asyncProcessingPromises: [],\n batchUID: 0,\n currentReactComponentMeasure: null,\n internalModuleCurrentStackFrame: null,\n internalModuleStackStringSet: new Set(),\n measureStack: [],\n nativeEventStack: [],\n nextRenderShouldGenerateNewBatchID: true,\n potentialLongEvents: [],\n potentialLongNestedUpdate: null,\n potentialLongNestedUpdates: [],\n potentialSuspenseEventsOutsideOfTransition: [],\n requestIdToNetworkMeasureMap: new Map(),\n uidCounter: 0,\n unresolvedSuspenseEvents: new Map()\n };\n timeline.forEach(event => processTimelineEvent(event, profilerData, state));\n\n if (profilerVersion === null) {\n if (profilerData.schedulingEvents.length === 0 && profilerData.batchUIDToMeasuresMap.size === 0) {\n // No profiler version could indicate data was logged using an older build of React,\n // before an explicitly profiler version was included in the logging data.\n // But it could also indicate that the website was either not using React, or using a production build.\n // The easiest way to check for this case is to see if the data contains any scheduled updates or render work.\n throw new InvalidProfileError(\'No React marks were found in the provided profile.\' + \' Please provide profiling data from an React application running in development or profiling mode.\');\n }\n\n throw new InvalidProfileError(`This version of profiling data is not supported by the current profiler.`);\n } // Validate that all events and measures are complete\n\n\n const {\n measureStack\n } = state;\n\n if (measureStack.length > 0) {\n console.error(\'Incomplete events or measures\', measureStack);\n } // Check for warnings.\n\n\n state.potentialLongEvents.forEach(([nativeEvent, batchUID]) => {\n // See how long the subsequent batch of React work was.\n // Ignore any work that was already started.\n const [startTime, stopTime] = getBatchRange(batchUID, profilerData, nativeEvent.timestamp);\n\n if (stopTime - startTime > NATIVE_EVENT_DURATION_THRESHOLD) {\n nativeEvent.warning = WARNING_STRINGS.LONG_EVENT_HANDLER;\n }\n });\n state.potentialLongNestedUpdates.forEach(([schedulingEvent, batchUID]) => {\n // See how long the subsequent batch of React work was.\n const [startTime, stopTime] = getBatchRange(batchUID, profilerData);\n\n if (stopTime - startTime > NESTED_UPDATE_DURATION_THRESHOLD) {\n // Don\'t warn about transition updates scheduled during the commit phase.\n // e.g. useTransition, useDeferredValue\n // These are allowed to be long-running.\n if (!schedulingEvent.lanes.some(lane => profilerData.laneToLabelMap.get(lane) === \'Transition\')) {// FIXME: This warning doesn\'t account for "nested updates" that are\n // spawned by useDeferredValue. Disabling temporarily until we figure\n // out the right way to handle this.\n // schedulingEvent.warning = WARNING_STRINGS.NESTED_UPDATE;\n }\n }\n });\n state.potentialSuspenseEventsOutsideOfTransition.forEach(([suspenseEvent, lanes]) => {\n // HACK This is a bit gross but the numeric lane value might change between render versions.\n if (!lanes.some(lane => profilerData.laneToLabelMap.get(lane) === \'Transition\')) {\n suspenseEvent.warning = WARNING_STRINGS.SUSPEND_DURING_UPDATE;\n }\n }); // Wait for any async processing to complete before returning.\n // Since processing is done in a worker, async work must complete before data is serialized and returned.\n\n await Promise.all(state.asyncProcessingPromises); // Now that all images have been loaded, let\'s figure out the display size we\'re going to use for our thumbnails:\n // both the ones rendered to the canvas and the ones shown on hover.\n\n if (profilerData.snapshots.length > 0) {\n // NOTE We assume a static window size here, which is not necessarily true but should be for most cases.\n // Regardless, Chrome also sets a single size/ratio and stick with it- so we\'ll do the same.\n const snapshot = profilerData.snapshots[0];\n profilerData.snapshotHeight = Math.min(snapshot.height, SNAPSHOT_MAX_HEIGHT);\n }\n\n return profilerData;\n}\n// EXTERNAL MODULE: ../../node_modules/nullthrows/nullthrows.js\nvar nullthrows = __webpack_require__(69);\nvar nullthrows_default = /*#__PURE__*/__webpack_require__.n(nullthrows);\n;// CONCATENATED MODULE: ../react-devtools-timeline/src/import-worker/readInputData.js\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\n\n\nconst readInputData = file => {\n if (!file.name.endsWith(\'.json\')) {\n throw new InvalidProfileError(\'Invalid file type. Only JSON performance profiles are supported\');\n }\n\n const fileReader = new FileReader();\n return new Promise((resolve, reject) => {\n fileReader.onload = () => {\n const result = nullthrows_default()(fileReader.result);\n\n if (typeof result === \'string\') {\n resolve(result);\n }\n\n reject(new InvalidProfileError(\'Input file was not read as a string\'));\n };\n\n fileReader.onerror = () => reject(fileReader.error);\n\n fileReader.readAsText(file);\n });\n};\n;// CONCATENATED MODULE: ../react-devtools-timeline/src/import-worker/importFile.js\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\n\n\n\n\nasync function importFile(file) {\n try {\n const readFile = await readInputData(file);\n const events = JSON.parse(readFile);\n\n if (events.length === 0) {\n throw new InvalidProfileError(\'No profiling data found in file.\');\n }\n\n const processedData = await preprocessData(events);\n return {\n status: \'SUCCESS\',\n processedData\n };\n } catch (error) {\n if (error instanceof InvalidProfileError) {\n return {\n status: \'INVALID_PROFILE_ERROR\',\n error\n };\n } else {\n return {\n status: \'UNEXPECTED_ERROR\',\n error\n };\n }\n }\n}\n;// CONCATENATED MODULE: ../../node_modules/workerize-loader/dist/rpc-worker-loader.js!../../node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use[1]!../../node_modules/babel-loader/lib/index.js??ruleSet[1].rules[1]!../react-devtools-timeline/src/import-worker/importFile.worker.js\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nconst importFile_worker_importFile = importFile;\naddEventListener(\'message\', function (e) {var _e$data = e.data,type = _e$data.type,method = _e$data.method,id = _e$data.id,params = _e$data.params,f,p;if (type === \'RPC\' && method) {if (f = __webpack_exports__[method]) {p = Promise.resolve().then(function () {return f.apply(__webpack_exports__, params);});} else {p = Promise.reject(\'No such method\');}p.then(function (result) {postMessage({type: \'RPC\',id: id,result: result});}).catch(function (e) {var error = {message: e};if (e.stack) {error.message = e.message;error.stack = e.stack;error.name = e.name;}postMessage({type: \'RPC\',id: id,error: error});});}});postMessage({type: \'RPC\',method: \'ready\'});\n})();\n\n']))),n(e,a),e}}},n={};function a(e){var r=n[e];if(void 0!==r)return r.exports;var i=n[e]={exports:{}};return t[e].call(i.exports,i,i.exports,a),i.exports}a.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return a.d(r,{a:r}),r},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(t,n){if(1&n&&(t=this(t)),8&n)return t;if("object"==typeof t&&t){if(4&n&&t.__esModule)return t;if(16&n&&"function"==typeof t.then)return t}var i=Object.create(null);a.r(i);var o={};e=e||[null,r({}),r([]),r(r)];for(var s=2&n&&t;"object"==typeof s&&!~e.indexOf(s);s=r(s))Object.getOwnPropertyNames(s).forEach((e=>o[e]=()=>t[e]));return o.default=()=>t,a.d(i,o),i},a.d=(e,r)=>{for(var t in r)a.o(r,t)&&!a.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},a.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};(()=>{a.d(i,{EH:()=>Qh,MT:()=>Jh,j2:()=>Zh});var e={};a.r(e),a.d(e,{importFile:()=>Bv});var r=a(147),t=a.t(r,2),n=a(852);class o{constructor(){var e,r,t;e=this,r="listenersMap",t=new Map,r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t}addListener(e,r){const t=this.listenersMap.get(e);if(void 0===t)this.listenersMap.set(e,[r]);else{t.indexOf(r)<0&&t.push(r)}}emit(e,...r){const t=this.listenersMap.get(e);if(void 0!==t)if(1===t.length){t[0].apply(null,r)}else{let e=!1,n=null;const a=Array.from(t);for(let t=0;t=0&&t.splice(e,1)}}}function s(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}const l=[{version:0,minNpmVersion:'"<4.11.0"',maxNpmVersion:'"<4.11.0"'},{version:1,minNpmVersion:"4.13.0",maxNpmVersion:"4.21.0"},{version:2,minNpmVersion:"4.22.0",maxNpmVersion:null}],c=l[l.length-1];const u=class extends o{constructor(e){super(),s(this,"_isShutdown",!1),s(this,"_messageQueue",[]),s(this,"_timeoutID",null),s(this,"_wallUnlisten",null),s(this,"_flush",(()=>{if(null!==this._timeoutID&&(clearTimeout(this._timeoutID),this._timeoutID=null),this._messageQueue.length){for(let e=0;e{switch(n){case"context":this.send("overrideContext",{id:e,path:r,rendererID:t,wasForwarded:!0,value:a});break;case"hooks":this.send("overrideHookState",{id:e,path:r,rendererID:t,wasForwarded:!0,value:a});break;case"props":this.send("overrideProps",{id:e,path:r,rendererID:t,wasForwarded:!0,value:a});break;case"state":this.send("overrideState",{id:e,path:r,rendererID:t,wasForwarded:!0,value:a})}})),this._wall=e,this._wallUnlisten=e.listen((e=>{e&&e.event&&this.emit(e.event,e.payload)}))||null,this.addListener("overrideValueAtPath",this.overrideValueAtPath)}get wall(){return this._wall}send(e,...r){this._isShutdown?console.warn(`Cannot send message "${e}" through a Bridge that has been shutdown.`):(this._messageQueue.push(e,r),this._timeoutID||(this._timeoutID=setTimeout(this._flush,0)))}shutdown(){if(this._isShutdown)return void console.warn("Bridge was already shutdown.");this.emit("shutdown"),this.send("shutdown"),this._isShutdown=!0,this.addListener=function(){},this.emit=function(){},this.removeAllListeners();const e=this._wallUnlisten;e&&e();do{this._flush()}while(this._messageQueue.length);null!==this._timeoutID&&(clearTimeout(this._timeoutID),this._timeoutID=null)}};var f=a(537),d=a(599);const v=!1,h=!1,m=1,p=2,_=3,S=4,g=5,b=6,w=7,k="React::DevTools::defaultTab",E="React::DevTools::componentFilters",y="React::DevTools::openInEditorUrl",D="React::DevTools::openInEditorUrlPreset",A="React::DevTools::parseHookNames",C="React::DevTools::breakOnConsoleErrors",M="React::DevTools::theme",x="React::DevTools::appendComponentStack",T="React::DevTools::showInlineWarningsAndErrors",H="React::DevTools::traceUpdatesEnabled",N="React::DevTools::hideConsoleLogsInStrictMode",R=5,I=1,O=2,F=5,P=6,L=7,z=8,B=9,V=10,U=11,W=12,j=1,$=2,X=3,G=4;var K=a(18),q=a.n(K),Y=a(377);const Q=!0,J=Symbol.for("react.element"),Z=(Symbol.for("react.transitional.element"),Symbol.for("react.portal")),ee=Symbol.for("react.fragment"),re=Symbol.for("react.strict_mode"),te=Symbol.for("react.profiler"),ne=Symbol.for("react.provider"),ae=Symbol.for("react.consumer"),ie=Symbol.for("react.context"),oe=Symbol.for("react.forward_ref"),se=Symbol.for("react.suspense"),le=Symbol.for("react.suspense_list"),ce=Symbol.for("react.memo"),ue=Symbol.for("react.lazy"),fe=(Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode"),Symbol.for("react.offscreen"),Symbol.for("react.legacy_hidden"),Symbol.for("react.tracing_marker"));Symbol.for("react.memo_cache_sentinel"),Symbol.for("react.postpone"),Symbol.iterator;Symbol.asyncIterator;function de(e){try{return localStorage.getItem(e)}catch(e){return null}}function ve(e,r){try{return localStorage.setItem(e,r)}catch(e){}}const he={inspectable:Symbol("inspectable"),inspected:Symbol("inspected"),name:Symbol("name"),preview_long:Symbol("preview_long"),preview_short:Symbol("preview_short"),readonly:Symbol("readonly"),size:Symbol("size"),type:Symbol("type"),unserializable:Symbol("unserializable")};function me(e,r,t,n){const a=xe(e,t);if(null!=a&&(a[he.unserializable]||(delete a[he.inspectable],delete a[he.inspected],delete a[he.name],delete a[he.preview_long],delete a[he.preview_short],delete a[he.readonly],delete a[he.size],delete a[he.type])),null!==n&&r.unserializable.length>0){const e=r.unserializable[0];let a=e.length===t.length;for(let r=0;r{const t=r.length,n=r[t-1],a=xe(e,r.slice(0,t-1));if(!a||!a.hasOwnProperty(n))return;const i=a[n];if(i)if("infinity"===i.type)a[n]=1/0;else if("nan"===i.type)a[n]=NaN;else if("undefined"===i.type)a[n]=void 0;else{const e={};e[he.inspectable]=!!i.inspectable,e[he.inspected]=!1,e[he.name]=i.name,e[he.preview_long]=i.preview_long,e[he.preview_short]=i.preview_short,e[he.size]=i.size,e[he.readonly]=!!i.readonly,e[he.type]=i.type,a[n]=e}})),t.forEach((r=>{const t=r.length,n=r[t-1],a=xe(e,r.slice(0,t-1));if(!a||!a.hasOwnProperty(n))return;const i=a[n],o={...i};_e(o,i),a[n]=o})),e}function _e(e,r){Object.defineProperties(e,{[he.inspected]:{configurable:!0,enumerable:!1,value:!!r.inspected},[he.name]:{configurable:!0,enumerable:!1,value:r.name},[he.preview_long]:{configurable:!0,enumerable:!1,value:r.preview_long},[he.preview_short]:{configurable:!0,enumerable:!1,value:r.preview_short},[he.size]:{configurable:!0,enumerable:!1,value:r.size},[he.readonly]:{configurable:!0,enumerable:!1,value:!!r.readonly},[he.type]:{configurable:!0,enumerable:!1,value:r.type},[he.unserializable]:{configurable:!0,enumerable:!1,value:!!r.unserializable}}),delete e.inspected,delete e.name,delete e.preview_long,delete e.preview_short,delete e.size,delete e.readonly,delete e.type,delete e.unserializable}const Se=Array.isArray,ge=Object.prototype.hasOwnProperty,be=new WeakMap;new(q())({max:1e3});function we(e,r){return e.toString()>r.toString()?1:r.toString()>e.toString()?-1:0}function ke(e,r="Anonymous"){const t=be.get(e);if(null!=t)return t;let n=r;return"string"==typeof e.displayName?n=e.displayName:"string"==typeof e.name&&""!==e.name&&(n=e.name),be.set(e,n),n}function Ee(e,r,t){let n="";for(let a=r;a<=t;a++)n+=String.fromCodePoint(e[a]);return n}function ye(){try{const e=de(E);if(null!=e){return Ae(JSON.parse(e))}}catch(e){}return[{type:j,value:L,isEnabled:!0}]}function De(e){ve(E,JSON.stringify(Ae(e)))}function Ae(e){return Array.isArray(e)?e.filter((e=>e.type!==X)):e}function Ce(e,r){if(null===e)return{formattedDisplayName:null,hocDisplayNames:null,compiledWithForget:!1};if(e.startsWith("Forget(")){const t=e.slice(7,e.length-1),{formattedDisplayName:n,hocDisplayNames:a}=Ce(t,r);return{formattedDisplayName:n,hocDisplayNames:a,compiledWithForget:!0}}let t=null;switch(r){case I:case P:case F:case z:if(e.indexOf("(")>=0){const r=e.match(/[^()]+/g);null!=r&&(e=r.pop(),t=r)}}return{formattedDisplayName:e,hocDisplayNames:t,compiledWithForget:!1}}function Me(e,r){for(const t in e)if(!(t in r))return!0;for(const t in r)if(e[t]!==r[t])return!0;return!1}function xe(e,r){return r.reduce(((e,r)=>{if(e){if(ge.call(e,r))return e[r];if("function"==typeof e[Symbol.iterator])return Array.from(e)[r]}return null}),e)}function Te(e){const r=(0,Y.kM)(e)||function(e){if("object"==typeof e&&null!==e){const r=e.$$typeof;switch(r){case J:const t=e.type;switch(t){case ee:case te:case re:case se:case le:return t;default:const e=t&&t.$$typeof;switch(e){case ie:case oe:case ue:case ce:return e;case ae:if(Q)return e;case ne:if(!Q)return e;default:return r}}case Z:return r}}}(e);switch(r){case Y.AI:return"ContextConsumer";case Y.HQ:return"ContextProvider";case Y.A4:return"ForwardRef";case Y.HY:return"Fragment";case Y.oM:return"Lazy";case Y._Y:return"Memo";case Y.h_:return"Portal";case Y.Q1:return"Profiler";case Y.nF:return"StrictMode";case Y.n4:return"Suspense";case le:return"SuspenseList";case fe:return"TracingMarker";default:const{type:r}=e;return"string"==typeof r?r:"function"==typeof r?ke(r,"Anonymous"):null!=r?"NotImplementedInDevtools":"Element"}}const He=50;function Ne(e,r=He){return e.length>r?e.slice(0,r)+"…":e}function Re(e,r){if(null!=e&&ge.call(e,he.type))return r?e[he.preview_long]:e[he.preview_short];const t=function(e){if(null===e)return"null";if(void 0===e)return"undefined";if((0,Y.kK)(e))return"react_element";if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return"html_element";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"function":return"function";case"number":return Number.isNaN(e)?"nan":Number.isFinite(e)?"number":"infinity";case"object":if(Se(e))return"array";if(ArrayBuffer.isView(e))return ge.call(e.constructor,"BYTES_PER_ELEMENT")?"typed_array":"data_view";if(e.constructor&&"ArrayBuffer"===e.constructor.name)return"array_buffer";if("function"==typeof e[Symbol.iterator]){const r=e[Symbol.iterator]();if(r)return r===e?"opaque_iterator":"iterator"}else{if(e.constructor&&"RegExp"===e.constructor.name)return"regexp";{const r=Object.prototype.toString.call(e);if("[object Date]"===r)return"date";if("[object HTMLAllCollection]"===r)return"html_all_collection"}}return Ie(e)?"object":"class_instance";case"string":return"string";case"symbol":return"symbol";case"undefined":return"[object HTMLAllCollection]"===Object.prototype.toString.call(e)?"html_all_collection":"undefined";default:return"unknown"}}(e);switch(t){case"html_element":return`<${Ne(e.tagName.toLowerCase())} />`;case"function":return Ne(`ƒ ${"function"==typeof e.name?"":e.name}() {}`);case"string":return`"${e}"`;case"bigint":return Ne(e.toString()+"n");case"regexp":case"symbol":return Ne(e.toString());case"react_element":return`<${Ne(Te(e)||"Unknown")} />`;case"array_buffer":return`ArrayBuffer(${e.byteLength})`;case"data_view":return`DataView(${e.buffer.byteLength})`;case"array":if(r){let r="";for(let t=0;t0&&(r+=", "),r+=Re(e[t],!1),!(r.length>He));t++);return`[${Ne(r)}]`}return`Array(${ge.call(e,he.size)?e[he.size]:e.length})`;case"typed_array":const t=`${e.constructor.name}(${e.length})`;if(r){let r="";for(let t=0;t0&&(r+=", "),r+=e[t],!(r.length>He));t++);return`${t} [${Ne(r)}]`}return t;case"iterator":const n=e.constructor.name;if(r){const r=Array.from(e);let t="";for(let e=0;e0&&(t+=", "),Se(n)){t+=`${Re(n[0],!0)} => ${Re(n[1],!1)}`}else t+=Re(n,!1);if(t.length>He)break}return`${n}(${e.size}) {${Ne(t)}}`}return`${n}(${e.size})`;case"opaque_iterator":return e[Symbol.toStringTag];case"date":return e.toString();case"class_instance":return e.constructor.name;case"object":if(r){const r=Array.from(function(e){const r=new Set;let t=e;for(;null!=t;){const e=[...Object.keys(t),...Object.getOwnPropertySymbols(t)],n=Object.getOwnPropertyDescriptors(t);e.forEach((e=>{n[e].enumerable&&r.add(e)})),t=Object.getPrototypeOf(t)}return r}(e)).sort(we);let t="";for(let n=0;n0&&(t+=", "),t+=`${a.toString()}: ${Re(e[a],!1)}`,t.length>He)break}return`{${Ne(t)}}`}return"{…}";case"boolean":case"number":case"infinity":case"nan":case"null":case"undefined":return e;default:try{return Ne(String(e))}catch(e){return"unserializable"}}}const Ie=e=>{const r=Object.getPrototypeOf(e);if(!r)return!0;return!Object.getPrototypeOf(r)};function Oe(e){const{formattedDisplayName:r,hocDisplayNames:t,compiledWithForget:n}=Ce(e.displayName,e.type);return{...e,displayName:r,hocDisplayNames:t,compiledWithForget:n}}function Fe(e){return e.replace("/./","/")}var Pe=a(804),Le=a.n(Pe);function ze(e,r=!1){let t=" ";e.children.length>0&&(t=e.isCollapsed?"▸":"▾");let n="";null!==e.key&&(n=` key="${e.key}"`);let a=null;null!==e.hocDisplayNames&&(a=[...e.hocDisplayNames]);const i=null===a?"":` [${a.join("][")}]`;let o="";return r&&(o=` (${e.isCollapsed?1:e.weight})`),`${" ".repeat(e.depth+1)}${t} <${e.displayName||"null"}${n}>${i}${o}`}function Be(e){return"string"==typeof e&&e.length>=2&&"'"===e.charAt(0)&&"'"===e.charAt(e.length-1)?'"'+e.slice(1,e.length-1)+'"':e}function Ve(e){switch(e){case"Infinity":return 1/0;case"NaN":return NaN;case"undefined":return;default:return Le().parse(Be(e))}}function Ue(e){if("number"==typeof e){if(Number.isNaN(e))return"NaN";if(!Number.isFinite(e))return"Infinity"}else if(void 0===e)return"undefined";return JSON.stringify(e)}const We=/\n\s+at /,je=/([^\s]+) \((.+):(.+):(.+)\)/;const $e=["var(--color-commit-gradient-0)","var(--color-commit-gradient-1)","var(--color-commit-gradient-2)","var(--color-commit-gradient-3)","var(--color-commit-gradient-4)","var(--color-commit-gradient-5)","var(--color-commit-gradient-6)","var(--color-commit-gradient-7)","var(--color-commit-gradient-8)","var(--color-commit-gradient-9)"];const Xe=e=>{const r=$e.length-1;let t;return t=Number.isNaN(e)?0:Number.isFinite(e)?Math.max(0,Math.min(r,e))*r:r,$e[Math.round(t)]},Ge=e=>Math.round(10*e)/10||"<0.1",Ke=e=>Math.round(Math.round(e)/100)/10,qe=(e,r,t,n)=>(a,i)=>r-e==0?i:(a-e)/(r-e)*(n-t),Ye=(e,...r)=>{v&&console.log(`%cCommitTreeBuilder %c${e}`,"color: pink; font-weight: bold;","font-weight: bold;",...r)},Qe=new Map;function Je({commitIndex:e,profilerStore:r,rootID:t}){Qe.has(t)||Qe.set(t,[]);const n=Qe.get(t);if(eZe(r,e,t,n))))}function er(e,r){const t=new Map(e.nodes),n=e=>{const r=Object.assign({},t.get(e));return t.set(e,r),r};let a=2,i=null;const o=[null],s=r[a++],l=a+s;for(;ae!==i))}else;}break}case b:throw Error("Operation REMOVE_ROOT is not supported while profiling.");case _:{i=r[a+1];const e=r[a+2],t=r.slice(a+3,a+3+e);a=a+3+e,v&&Ye("Re-order",`fiber ${i} children ${t.join(",")}`);n(i).children=Array.from(t);break}case w:{i=r[a+1];const e=r[a+1];a+=3,v&&Ye("Subtree mode",`Subtree with root ${i} set to mode ${e}`);break}case S:{i=r[a+1];const e=n(i);e.treeBaseDuration=r[a+2]/1e3,v&&Ye("Update",`fiber ${i} treeBaseDuration to ${e.treeBaseDuration}`),a+=3;break}case g:{i=r[a+1];const e=r[a+2],t=r[a+3];a+=4,v&&Ye("Warnings and Errors update",`fiber ${i} has ${e} errors and ${t} warnings`);break}default:throw Error(`Unsupported Bridge operation "${e}"`)}}return{nodes:t,rootID:e.rootID}}const rr=e=>{if(v){const{nodes:r,rootID:t}=e;console.group("__printTree()");const n=[t,0];for(;n.length>0;){const e=n.shift(),t=n.shift(),a=r.get(e);if(null==a)throw Error(`Could not find node with id "${e}" in commit tree`);console.log(`${"•".repeat(t)}${a.id}:${a.displayName||""} ${a.key?`key:"${a.key}"`:""} (${a.treeBaseDuration})`),a.children.forEach((e=>{n.push(e,t+1)}))}console.groupEnd()}},tr=new Map;const nr=new Map;function ar(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}class ir{constructor(e){ar(this,"_fiberCommits",new Map),ar(this,"getCommitTree",(({commitIndex:e,rootID:r})=>Je({commitIndex:e,profilerStore:this._profilerStore,rootID:r}))),ar(this,"getFiberCommits",(({fiberID:e,rootID:r})=>{const t=this._fiberCommits.get(e);if(null!=t)return t;const n=[];return this._profilerStore.getDataForRoot(r).commitData.forEach(((r,t)=>{r.fiberActualDurations.has(e)&&n.push(t)})),this._fiberCommits.set(e,n),n})),ar(this,"getFlamegraphChartData",(({commitIndex:e,commitTree:r,rootID:t})=>function({commitIndex:e,commitTree:r,profilerStore:t,rootID:n}){const a=t.getCommitData(n,e),{fiberActualDurations:i,fiberSelfDurations:o}=a,{nodes:s}=r,l=`${n}-${e}`;if(tr.has(l))return tr.get(l);const c=new Map,u=new Set,f=[];let d=0,v=0;const h=(e,r,t)=>{c.set(e,t);const n=s.get(e);if(null==n)throw Error(`Could not find node with id "${e}" in commit tree`);const{children:a,displayName:l,hocDisplayNames:u,key:m,treeBaseDuration:p,compiledWithForget:_}=n,S=i.get(e)||0,g=o.get(e)||0,b=i.has(e),w=l||"Anonymous",k=null!==m?` key="${m}"`:"";let E="";const y=_?"✨ ":"";null!==u&&u.length>0&&(E=` (${u[0]})`);let D=`${y}${w}${E}${k}`;b&&(D+=` (${Ge(g)}ms of ${Ge(S)}ms)`),d=Math.max(d,t),v=Math.max(v,g);const A={actualDuration:S,didRender:b,id:e,label:D,name:w,offset:r-p,selfDuration:g,treeBaseDuration:p};t>f.length?f.push([A]):f[t-1].push(A);for(let e=a.length-1;e>=0;e--){const n=a[e];r-=h(n,r,t+1).treeBaseDuration}return A};let m=0;if(s.size>0){const e=s.get(n);if(null==e)throw Error(`Could not find root node with id "${n}" in commit tree`);for(let r=e.children.length-1;r>=0;r--){const t=e.children[r],n=s.get(t);if(null==n)throw Error(`Could not find node with id "${t}" in commit tree`);m+=n.treeBaseDuration,h(t,m,1)}i.forEach(((e,r)=>{let t=s.get(r);if(null!=t){let e=t.parentID;for(;0!==e&&!u.has(e);)u.add(e),t=s.get(e),e=null!=t?t.parentID:0}}))}const p={baseDuration:m,depth:d,idToDepthMap:c,maxSelfDuration:v,renderPathNodes:u,rows:f};return tr.set(l,p),p}({commitIndex:e,commitTree:r,profilerStore:this._profilerStore,rootID:t}))),ar(this,"getRankedChartData",(({commitIndex:e,commitTree:r,rootID:t})=>function({commitIndex:e,commitTree:r,profilerStore:t,rootID:n}){const a=t.getCommitData(n,e),{fiberActualDurations:i,fiberSelfDurations:o}=a,{nodes:s}=r,l=`${n}-${e}`;if(nr.has(l))return nr.get(l);let c=0;const u=[];i.forEach(((e,r)=>{const t=s.get(r);if(null==t)throw Error(`Could not find node with id "${r}" in commit tree`);const{displayName:n,key:a,parentID:i,type:l,compiledWithForget:f}=t;if(0===i)return;const d=o.get(r)||0;c=Math.max(c,d);const v=n||"Anonymous";let h="";l===P?h=" (ForwardRef)":l===z&&(h=" (Memo)");const m=`${f?"✨ ":""}${v}${h}${null!==a?` key="${a}"`:""} (${Ge(d)}ms)`;u.push({id:r,label:m,name:v,value:d})}));const f={maxValue:c,nodes:u.sort(((e,r)=>r.value-e.value))};return nr.set(l,f),f}({commitIndex:e,commitTree:r,profilerStore:this._profilerStore,rootID:t}))),this._profilerStore=e}invalidate(){this._fiberCommits.clear(),Qe.clear(),tr.clear(),nr.clear()}}function or(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}class sr extends o{constructor(e,r,t){super(),or(this,"_dataBackends",[]),or(this,"_dataFrontend",null),or(this,"_initialRendererIDs",new Set),or(this,"_initialSnapshotsByRootID",new Map),or(this,"_inProgressOperationsByRootID",new Map),or(this,"_isProfiling",!1),or(this,"_rendererIDsThatReportedProfilingData",new Set),or(this,"_rendererQueue",new Set),or(this,"_takeProfilingSnapshotRecursive",((e,r)=>{const t=this._store.getElementByID(e);if(null!==t){const n={id:e,children:t.children.slice(0),displayName:t.displayName,hocDisplayNames:t.hocDisplayNames,key:t.key,type:t.type,compiledWithForget:t.compiledWithForget};r.set(e,n),t.children.forEach((e=>this._takeProfilingSnapshotRecursive(e,r)))}})),or(this,"onBridgeOperations",(e=>{const r=e[0],t=e[1];if(this._isProfiling){let n=this._inProgressOperationsByRootID.get(t);null==n?(n=[e],this._inProgressOperationsByRootID.set(t,n)):n.push(e),this._initialRendererIDs.has(r)||this._initialRendererIDs.add(r),this._initialSnapshotsByRootID.has(t)||this._initialSnapshotsByRootID.set(t,new Map),this._rendererIDsThatReportedProfilingData.add(r)}})),or(this,"onBridgeProfilingData",(e=>{if(this._isProfiling)return;const{rendererID:r}=e;if(!this._rendererQueue.has(r))throw Error(`Unexpected profiling data update from renderer "${r}"`);this._dataBackends.push(e),this._rendererQueue.delete(r),0===this._rendererQueue.size&&(this._dataFrontend=function(e,r,t){const n=new Map,a=[];return e.forEach((e=>{const{timelineData:i}=e;if(null!=i){const{batchUIDToMeasuresKeyValueArray:e,internalModuleSourceToRanges:r,laneToLabelKeyValueArray:t,laneToReactMeasureKeyValueArray:n,...o}=i;a.push({...o,batchUIDToMeasuresMap:new Map(e),internalModuleSourceToRanges:new Map(r),laneToLabelMap:new Map(t),laneToReactMeasureMap:new Map(n)})}e.dataForRoots.forEach((({commitData:e,displayName:a,initialTreeBaseDurations:i,rootID:o})=>{const s=r.get(o);if(null==s)throw Error(`Could not find profiling operations for root "${o}"`);const l=t.get(o);if(null==l)throw Error(`Could not find profiling snapshots for root "${o}"`);const c=e.map(((e,r)=>({changeDescriptions:null!=e.changeDescriptions?new Map(e.changeDescriptions):null,duration:e.duration,effectDuration:e.effectDuration,fiberActualDurations:new Map(e.fiberActualDurations),fiberSelfDurations:new Map(e.fiberSelfDurations),passiveEffectDuration:e.passiveEffectDuration,priorityLevel:e.priorityLevel,timestamp:e.timestamp,updaters:null!==e.updaters?e.updaters.map(Oe):null})));n.set(o,{commitData:c,displayName:a,initialTreeBaseDurations:new Map(i),operations:s,rootID:o,snapshots:l})}))})),{dataForRoots:n,imported:!1,timelineData:a}}(this._dataBackends,this._inProgressOperationsByRootID,this._initialSnapshotsByRootID),this._dataBackends.splice(0),this.emit("isProcessingData"))})),or(this,"onBridgeShutdown",(()=>{this._bridge.removeListener("operations",this.onBridgeOperations),this._bridge.removeListener("profilingData",this.onBridgeProfilingData),this._bridge.removeListener("profilingStatus",this.onProfilingStatus),this._bridge.removeListener("shutdown",this.onBridgeShutdown)})),or(this,"onProfilingStatus",(e=>{if(e){this._dataBackends.splice(0),this._dataFrontend=null,this._initialRendererIDs.clear(),this._initialSnapshotsByRootID.clear(),this._inProgressOperationsByRootID.clear(),this._rendererIDsThatReportedProfilingData.clear(),this._rendererQueue.clear();for(const e of this._store.rootIDToRendererID.values())this._initialRendererIDs.has(e)||this._initialRendererIDs.add(e);this._store.roots.forEach((e=>{const r=new Map;this._initialSnapshotsByRootID.set(e,r),this._takeProfilingSnapshotRecursive(e,r)}))}this._isProfiling!==e&&(this._isProfiling=e,this._cache.invalidate(),this.emit("isProfiling"),e||(this._dataBackends.splice(0),this._rendererQueue.clear(),this._rendererIDsThatReportedProfilingData.forEach((e=>{this._rendererQueue.has(e)||(this._rendererQueue.add(e),this._bridge.send("getProfilingData",{rendererID:e}))})),this.emit("isProcessingData")))})),this._bridge=e,this._isProfiling=t,this._store=r,e.addListener("operations",this.onBridgeOperations),e.addListener("profilingData",this.onBridgeProfilingData),e.addListener("profilingStatus",this.onProfilingStatus),e.addListener("shutdown",this.onBridgeShutdown),e.send("getProfilingStatus"),this._cache=new ir(this)}getCommitData(e,r){if(null!==this._dataFrontend){const t=this._dataFrontend.dataForRoots.get(e);if(null!=t){const e=t.commitData[r];if(null!=e)return e}}throw Error(`Could not find commit data for root "${e}" and commit "${r}"`)}getDataForRoot(e){if(null!==this._dataFrontend){const r=this._dataFrontend.dataForRoots.get(e);if(null!=r)return r}throw Error(`Could not find commit data for root "${e}"`)}get didRecordCommits(){return null!==this._dataFrontend&&this._dataFrontend.dataForRoots.size>0}get isProcessingData(){return this._rendererQueue.size>0||this._dataBackends.length>0}get isProfiling(){return this._isProfiling}get profilingCache(){return this._cache}get profilingData(){return this._dataFrontend}set profilingData(e){this._isProfiling?console.warn("Profiling data cannot be updated while profiling is in progress."):(this._dataBackends.splice(0),this._dataFrontend=e,this._initialRendererIDs.clear(),this._initialSnapshotsByRootID.clear(),this._inProgressOperationsByRootID.clear(),this._cache.invalidate(),this.emit("profilingData"))}clear(){this._dataBackends.splice(0),this._dataFrontend=null,this._initialRendererIDs.clear(),this._initialSnapshotsByRootID.clear(),this._inProgressOperationsByRootID.clear(),this._rendererQueue.clear(),this._cache.invalidate(),this.emit("profilingData")}startProfiling(){this._bridge.send("startProfiling",this._store.recordChangeDescriptions)}stopProfiling(){this._bridge.send("stopProfiling")}}class lr extends Error{constructor(e){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,lr),this.name="UnsupportedBridgeOperationError"}}function cr(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}const ur=(e,...r)=>{v&&console.log(`%cStore %c${e}`,"color: green; font-weight: bold;","font-weight: bold;",...r)},fr="React::DevTools::collapseNodesByDefault",dr="React::DevTools::recordChangeDescriptions";class vr extends o{constructor(e,r){super(),cr(this,"_backendVersion",null),cr(this,"_cachedErrorCount",0),cr(this,"_cachedWarningCount",0),cr(this,"_cachedErrorAndWarningTuples",null),cr(this,"_collapseNodesByDefault",!0),cr(this,"_errorsAndWarnings",new Map),cr(this,"_hasOwnerMetadata",!1),cr(this,"_idToElement",new Map),cr(this,"_isNativeStyleEditorSupported",!1),cr(this,"_isBackendStorageAPISupported",!1),cr(this,"_isSynchronousXHRSupported",!1),cr(this,"_nativeStyleEditorValidAttributes",null),cr(this,"_onBridgeProtocolTimeoutID",null),cr(this,"_ownersMap",new Map),cr(this,"_recordChangeDescriptions",!1),cr(this,"_revision",0),cr(this,"_roots",[]),cr(this,"_rootIDToCapabilities",new Map),cr(this,"_rootIDToRendererID",new Map),cr(this,"_supportsNativeInspection",!1),cr(this,"_supportsReloadAndProfile",!1),cr(this,"_supportsTimeline",!1),cr(this,"_supportsTraceUpdates",!1),cr(this,"_rootSupportsBasicProfiling",!1),cr(this,"_rootSupportsTimelineProfiling",!1),cr(this,"_bridgeProtocol",null),cr(this,"_unsupportedBridgeProtocolDetected",!1),cr(this,"_unsupportedRendererVersionDetected",!1),cr(this,"_weightAcrossRoots",0),cr(this,"_adjustParentTreeWeight",((e,r)=>{let t=!1;for(;null!=e;){if(e.weight+=r,e.isCollapsed){t=!0;break}e=this._idToElement.get(e.parentID)}t||(this._weightAcrossRoots+=r)})),cr(this,"onBridgeNativeStyleEditorSupported",(({isSupported:e,validAttributes:r})=>{this._isNativeStyleEditorSupported=e,this._nativeStyleEditorValidAttributes=r||null,this.emit("supportsNativeStyleEditor")})),cr(this,"onBridgeOperations",(e=>{v&&(console.groupCollapsed("onBridgeOperations"),ur("onBridgeOperations",e.join(",")));let r=!1,t=!1;const n=e[0],a=[],i=new Map;let o=2;const s=[null],l=e[o];o++;const c=o+l;for(;o0;o++;const s=0!=(1&e[o]),l=0!=(2&e[o]);o++;let c=!1,u=!1;(null===this._bridgeProtocol||this._bridgeProtocol.version>=2)&&(c=e[o]>0,o++,u=e[o]>0,o++),this._roots=this._roots.concat(t),this._rootIDToRendererID.set(t,n),this._rootIDToCapabilities.set(t,{supportsBasicProfiling:s,hasOwnerMetadata:u,supportsStrictMode:c,supportsTimeline:l});const f=!a&&c;this._idToElement.set(t,{children:[],depth:-1,displayName:null,hocDisplayNames:null,id:t,isCollapsed:!1,isStrictModeNonCompliant:f,key:null,ownerID:0,parentID:0,type:i,weight:0,compiledWithForget:!1}),r=!0}else{const r=e[o];o++;const n=e[o];o++;const l=s[e[o]];o++;const c=s[e[o]];o++,v&&ur("Add",`node ${t} (${l||"null"}) as child of ${r}`);const u=this._idToElement.get(r);if(void 0===u){this._throwAndEmitError(Error(`Cannot add child "${t}" to parent "${r}" because parent node was not found in the Store.`));break}u.children.push(t);const{formattedDisplayName:f,hocDisplayNames:d,compiledWithForget:h}=Ce(l,i),m={children:[],depth:u.depth+1,displayName:f,hocDisplayNames:d,id:t,isCollapsed:this._collapseNodesByDefault,isStrictModeNonCompliant:u.isStrictModeNonCompliant,key:c,ownerID:n,parentID:r,type:i,weight:1,compiledWithForget:h};if(this._idToElement.set(t,m),a.push(t),this._adjustParentTreeWeight(u,1),n>0){let e=this._ownersMap.get(n);void 0===e&&(e=new Set,this._ownersMap.set(n,e)),e.add(t)}}break}case p:{const n=e[o+1];o+=2;for(let a=0;a0&&this._throwAndEmitError(Error(`Node "${n}" was removed before its children.`)),this._idToElement.delete(n);let f=null;if(0===c)v&&ur("Remove",`node ${n} root`),this._roots=this._roots.filter((e=>e!==n)),this._rootIDToRendererID.delete(n),this._rootIDToCapabilities.delete(n),r=!0;else{if(v&&ur("Remove",`node ${n} from parent ${c}`),f=this._idToElement.get(c),void 0===f){this._throwAndEmitError(Error(`Cannot remove node "${n}" from parent "${c}" because no matching node was found in the Store.`));break}const e=f.children.indexOf(n);f.children.splice(e,1)}if(this._adjustParentTreeWeight(f,-u),i.set(n,c),this._ownersMap.delete(n),l>0){const e=this._ownersMap.get(l);void 0!==e&&e.delete(n)}this._errorsAndWarnings.has(n)&&(this._errorsAndWarnings.delete(n),t=!0)}break}case b:{o+=1;const r=e[1];v&&ur(`Remove root ${r}`);const t=e=>{const r=this._idToElement.get(e);if(this._idToElement.delete(e),r)for(let e=0;ee!==r)),this._weightAcrossRoots-=n.weight;break}case _:{const r=e[o+1],t=e[o+2];o+=3;const n=this._idToElement.get(r);if(void 0===n){this._throwAndEmitError(Error(`Cannot reorder children for node "${r}" because no matching node was found in the Store.`));break}const a=n.children;a.length!==t&&this._throwAndEmitError(Error("Children cannot be added or removed during a reorder operation."));for(let r=0;r{e.isStrictModeNonCompliant=!1})),v&&ur("Subtree mode",`Subtree with root ${r} set to mode ${t}`);break}case S:o+=3;break;case g:const c=e[o+1],u=e[o+2],f=e[o+3];o+=4,u>0||f>0?this._errorsAndWarnings.set(c,{errorCount:u,warningCount:f}):this._errorsAndWarnings.has(c)&&this._errorsAndWarnings.delete(c),t=!0;break;default:this._throwAndEmitError(new lr(`Unsupported Bridge operation "${l}"`))}}if(this._revision++,this._cachedErrorAndWarningTuples=null,t){let e=0,r=0;this._errorsAndWarnings.forEach((t=>{e+=t.errorCount,r+=t.warningCount})),this._cachedErrorCount=e,this._cachedWarningCount=r}if(r){const e=this._rootSupportsBasicProfiling,r=this._rootSupportsTimelineProfiling;this._hasOwnerMetadata=!1,this._rootSupportsBasicProfiling=!1,this._rootSupportsTimelineProfiling=!1,this._rootIDToCapabilities.forEach((({supportsBasicProfiling:e,hasOwnerMetadata:r,supportsTimeline:t})=>{e&&(this._rootSupportsBasicProfiling=!0),r&&(this._hasOwnerMetadata=!0),t&&(this._rootSupportsTimelineProfiling=!0)})),this.emit("roots"),this._rootSupportsBasicProfiling!==e&&this.emit("rootSupportsBasicProfiling"),this._rootSupportsTimelineProfiling!==r&&this.emit("rootSupportsTimelineProfiling")}v&&(console.log(function(e,r=!1,t=null){const n=[];let a=0;function i(e){return null===t?"":t.selectedElementIndex===e?"→":" "}function o(r){const{errorCount:t,warningCount:n}=e.getErrorAndWarningCountForElementID(r.id);return 0===t&&0===n?"":` ${t>0?"✕":""}${n>0?"⚠":""}`}const s=null!==t?t.ownerFlatTree:null;if(null!==s)n.push("[owners]"+(r?` (${s.length})`:"")),s.forEach(((e,r)=>{const t=i(r),a=ze(e,!1),s=o(e);n.push(`${t}${a}${s}`)}));else{const t=e._errorsAndWarnings;if(t.size>0){let e=0,r=0;t.forEach((t=>{e+=t.errorCount,r+=t.warningCount})),n.push(`✕ ${e}, ⚠ ${r}`)}if(e.roots.forEach((t=>{const{weight:s}=e.getElementByID(t),l=r?` (${s})`:"";n.push(`[root]${l}`);for(let t=a;t{this._componentFilters=e,De(e)})),cr(this,"onBridgeShutdown",(()=>{v&&ur("onBridgeShutdown","unsubscribing from Bridge");const e=this._bridge;e.removeListener("operations",this.onBridgeOperations),e.removeListener("overrideComponentFilters",this.onBridgeOverrideComponentFilters),e.removeListener("shutdown",this.onBridgeShutdown),e.removeListener("isBackendStorageAPISupported",this.onBackendStorageAPISupported),e.removeListener("isNativeStyleEditorSupported",this.onBridgeNativeStyleEditorSupported),e.removeListener("isSynchronousXHRSupported",this.onBridgeSynchronousXHRSupported),e.removeListener("unsupportedRendererVersion",this.onBridgeUnsupportedRendererVersion),e.removeListener("backendVersion",this.onBridgeBackendVersion),e.removeListener("bridgeProtocol",this.onBridgeProtocol),e.removeListener("saveToClipboard",this.onSaveToClipboard),null!==this._onBridgeProtocolTimeoutID&&(clearTimeout(this._onBridgeProtocolTimeoutID),this._onBridgeProtocolTimeoutID=null)})),cr(this,"onBackendStorageAPISupported",(e=>{this._isBackendStorageAPISupported=e,this.emit("supportsReloadAndProfile")})),cr(this,"onBridgeSynchronousXHRSupported",(e=>{this._isSynchronousXHRSupported=e,this.emit("supportsReloadAndProfile")})),cr(this,"onBridgeUnsupportedRendererVersion",(()=>{this._unsupportedRendererVersionDetected=!0,this.emit("unsupportedRendererVersionDetected")})),cr(this,"onBridgeBackendVersion",(e=>{this._backendVersion=e,this.emit("backendVersion")})),cr(this,"onBridgeProtocol",(e=>{null!==this._onBridgeProtocolTimeoutID&&(clearTimeout(this._onBridgeProtocolTimeoutID),this._onBridgeProtocolTimeoutID=null),this._bridgeProtocol=e,e.version,c.version})),cr(this,"onBridgeProtocolTimeout",(()=>{this._onBridgeProtocolTimeoutID=null,this._bridgeProtocol=l[0],this.emit("unsupportedBridgeProtocolDetected")})),cr(this,"onSaveToClipboard",(e=>{(0,f.copy)(e)})),v&&ur("constructor","subscribing to Bridge"),this._collapseNodesByDefault="true"===de(fr),this._recordChangeDescriptions="true"===de(dr),this._componentFilters=ye();let t=!1;if(null!=r){t=!0===r.isProfiling;const{supportsNativeInspection:e,supportsReloadAndProfile:n,supportsTimeline:a,supportsTraceUpdates:i}=r;e&&(this._supportsNativeInspection=!0),n&&(this._supportsReloadAndProfile=!0),a&&(this._supportsTimeline=!0),i&&(this._supportsTraceUpdates=!0)}this._bridge=e,e.addListener("operations",this.onBridgeOperations),e.addListener("overrideComponentFilters",this.onBridgeOverrideComponentFilters),e.addListener("shutdown",this.onBridgeShutdown),e.addListener("isBackendStorageAPISupported",this.onBackendStorageAPISupported),e.addListener("isNativeStyleEditorSupported",this.onBridgeNativeStyleEditorSupported),e.addListener("isSynchronousXHRSupported",this.onBridgeSynchronousXHRSupported),e.addListener("unsupportedRendererVersion",this.onBridgeUnsupportedRendererVersion),this._profilerStore=new sr(e,this,t),null!=r&&r.checkBridgeProtocolCompatibility&&(this._onBridgeProtocolTimeoutID=setTimeout(this.onBridgeProtocolTimeout,1e4),e.addListener("bridgeProtocol",this.onBridgeProtocol),e.send("getBridgeProtocol")),e.addListener("backendVersion",this.onBridgeBackendVersion),e.send("getBackendVersion"),e.addListener("saveToClipboard",this.onSaveToClipboard)}assertExpectedRootMapSizes(){0===this.roots.length&&(this.assertMapSizeMatchesRootCount(this._idToElement,"_idToElement"),this.assertMapSizeMatchesRootCount(this._ownersMap,"_ownersMap")),this.assertMapSizeMatchesRootCount(this._rootIDToCapabilities,"_rootIDToCapabilities"),this.assertMapSizeMatchesRootCount(this._rootIDToRendererID,"_rootIDToRendererID")}assertMapSizeMatchesRootCount(e,r){const t=this.roots.length;e.size!==t&&this._throwAndEmitError(Error(`Expected ${r} to contain ${t} items, but it contains ${e.size} items\n\n${(0,d.inspect)(e,{depth:20})}`))}get backendVersion(){return this._backendVersion}get collapseNodesByDefault(){return this._collapseNodesByDefault}set collapseNodesByDefault(e){this._collapseNodesByDefault=e,ve(fr,e?"true":"false"),this.emit("collapseNodesByDefault")}get componentFilters(){return this._componentFilters}set componentFilters(e){this._profilerStore.isProfiling&&this._throwAndEmitError(Error("Cannot modify filter preferences while profiling"));const r=this._componentFilters.filter((e=>e.isEnabled)),t=e.filter((e=>e.isEnabled));let n=r.length!==t.length;if(!n)for(let e=0;e=this.numElements)return console.warn(`Invalid index ${e} specified; store contains ${this.numElements} items.`),null;let r,t=0;for(let n=0;ne)break;t+=r.weight}}if(void 0===r)return null;let n=r,a=t-1;for(;e!==a;){const r=n.children.length;for(let t=0;t{const n=this.getIndexOfElementID(t);if(null!==n){let r=0,a=e.length;for(;r>1;e[t].index>n?a=t:r=t+1}e.splice(r,0,{id:t,index:n})}})),this._cachedErrorAndWarningTuples=e,e}getErrorAndWarningCountForElementID(e){return this._errorsAndWarnings.get(e)||{errorCount:0,warningCount:0}}getIndexOfElementID(e){const r=this.getElementByID(e);if(null===r||0===r.parentID)return null;let t=e,n=r.parentID,a=0;for(;;){const e=this._idToElement.get(n);if(void 0===e)return null;const{children:r}=e;for(let e=0;e(this.getIndexOfElementID(e)||0)-(this.getIndexOfElementID(r)||0))).forEach((a=>{const i=this._idToElement.get(a);if(void 0!==i){let o=i.parentID,s=0;for(;o>0;){if(o===e||n.has(o)){s=t.get(o)+1,t.set(a,s);break}const r=this._idToElement.get(o);if(void 0===r)break;o=r.parentID}0===s&&this._throwAndEmitError(Error("Invalid owners list")),r.push({...i,depth:s})}}))}}return r}getRendererIDForElement(e){let r=this._idToElement.get(e);for(;void 0!==r;){if(0===r.parentID){const e=this._rootIDToRendererID.get(r.id);return null==e?null:e}r=this._idToElement.get(r.parentID)}return null}getRootIDForElement(e){let r=this._idToElement.get(e);for(;void 0!==r;){if(0===r.parentID)return r.id;r=this._idToElement.get(r.parentID)}return null}isInsideCollapsedSubTree(e){let r=this._idToElement.get(e);for(;null!=r;){if(0===r.parentID)return!1;if(r=this._idToElement.get(r.parentID),null!=r&&r.isCollapsed)return!0}return!1}toggleIsCollapsed(e,r){let t=!1;const n=this.getElementByID(e);if(null!==n){if(r){if(n.type===U&&this._throwAndEmitError(Error("Root nodes cannot be collapsed")),!n.isCollapsed){t=!0,n.isCollapsed=!0;const e=1-n.weight;let r=this._idToElement.get(n.parentID);for(;void 0!==r;)r.weight+=e,r=this._idToElement.get(r.parentID)}}else{let e=n;for(;null!=e;){const r=e.isCollapsed?1:e.weight;if(e.isCollapsed){t=!0,e.isCollapsed=!1;const n=(e.isCollapsed?1:e.weight)-r;let a=this._idToElement.get(e.parentID);for(;void 0!==a&&(a.weight+=n,!a.isCollapsed);)a=this._idToElement.get(a.parentID)}e=0!==e.parentID?this.getElementByID(e.parentID):null}}if(t){let e=0;this._roots.forEach((r=>{const{weight:t}=this.getElementByID(r);e+=t})),this._weightAcrossRoots=e,this.emit("mutated",[[],new Map])}}}_recursivelyUpdateSubtree(e,r){const t=this._idToElement.get(e);t&&(r(t),t.children.forEach((e=>this._recursivelyUpdateSubtree(e,r))))}_throwAndEmitError(e){throw this.emit("error",e),e}}const hr=(0,r.createContext)(null);hr.displayName="BridgeContext";const mr=(0,r.createContext)(null);mr.displayName="StoreContext";const pr=(0,r.createContext)({isEnabledForInspectedElement:!1,viewAttributeSourceFunction:null});pr.displayName="ContextMenuContext";const _r=(0,r.createContext)({readOnly:!1,hideSettings:!1,hideToggleErrorAction:!1,hideToggleSuspenseAction:!1,hideLogAction:!1,hideViewSourceAction:!1});let Sr;Sr="undefined"!=typeof window?window:"undefined"!=typeof self?self:global;let gr=null,br=null;const wr=Sr.clearTimeout,kr=Sr.setTimeout,Er=Sr.cancelAnimationFrame||Sr.mozCancelAnimationFrame||Sr.webkitCancelAnimationFrame,yr=Sr.requestAnimationFrame||Sr.mozRequestAnimationFrame||Sr.webkitRequestAnimationFrame;function Dr(e){let r,t,n,a,i,o,s;const l="undefined"!=typeof document&&document.attachEvent;if(!l){o=function(e){const r=e.__resizeTriggers__,t=r.firstElementChild,n=r.lastElementChild,a=t.firstElementChild;n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight,a.style.width=t.offsetWidth+1+"px",a.style.height=t.offsetHeight+1+"px",t.scrollLeft=t.scrollWidth,t.scrollTop=t.scrollHeight},i=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},s=function(e){if(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)return;const r=this;o(this),this.__resizeRAF__&&gr(this.__resizeRAF__),this.__resizeRAF__=br((function(){i(r)&&(r.__resizeLast__.width=r.offsetWidth,r.__resizeLast__.height=r.offsetHeight,r.__resizeListeners__.forEach((function(t){t.call(r,e)})))}))};let e=!1,l="";n="animationstart";const c="Webkit Moz O ms".split(" ");let u="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),f="";{const r=document.createElement("fakeelement");if(void 0!==r.style.animationName&&(e=!0),!1===e)for(let t=0;t div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',i=t.head||t.getElementsByTagName("head")[0],o=t.createElement("style");o.id="detectElementResize",o.type="text/css",null!=e&&o.setAttribute("nonce",e),o.styleSheet?o.styleSheet.cssText=n:o.appendChild(t.createTextNode(n)),i.appendChild(o)}}(l),i.__resizeLast__={},i.__resizeListeners__=[],(i.__resizeTriggers__=l.createElement("div")).className="resize-triggers";const u=l.createElement("div");u.className="expand-trigger",u.appendChild(l.createElement("div"));const f=l.createElement("div");f.className="contract-trigger",i.__resizeTriggers__.appendChild(u),i.__resizeTriggers__.appendChild(f),i.appendChild(i.__resizeTriggers__),o(i),i.addEventListener("scroll",s,!0),n&&(i.__resizeTriggers__.__animationListener__=function(e){e.animationName===t&&o(i)},i.__resizeTriggers__.addEventListener(n,i.__resizeTriggers__.__animationListener__))}i.__resizeListeners__.push(c)}},removeResizeListener:function(e,r){if(l)e.detachEvent("onresize",r);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(r),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",s,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(n,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}null==Er||null==yr?(gr=wr,br=function(e){return kr(e,20)}):(gr=function([e,r]){Er(e),wr(r)},br=function(e){const r=yr((function(){wr(t),e()})),t=kr((function(){Er(r),e()}),20);return[r,t]});class Ar extends r.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:r,onResize:t}=this.props;if(this._parentNode){const n=window.getComputedStyle(this._parentNode)||{},a=parseFloat(n.paddingLeft||"0"),i=parseFloat(n.paddingRight||"0"),o=parseFloat(n.paddingTop||"0"),s=parseFloat(n.paddingBottom||"0"),l=this._parentNode.getBoundingClientRect(),c=l.height-o-s,u=l.width-a-i,f=this._parentNode.offsetHeight-o-s,d=this._parentNode.offsetWidth-a-i;(e||this.state.height===f&&this.state.scaledHeight===c)&&(r||this.state.width===d&&this.state.scaledWidth===u)||(this.setState({height:f,width:d,scaledHeight:c,scaledWidth:u}),"function"==typeof t&&t({height:f,scaledHeight:c,scaledWidth:u,width:d}))}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props,r=this._autoSizer?this._autoSizer.parentNode:null;if(null!=r&&r.ownerDocument&&r.ownerDocument.defaultView&&r instanceof r.ownerDocument.defaultView.HTMLElement){this._parentNode=r;const t=r.ownerDocument.defaultView.ResizeObserver;null!=t?(this._resizeObserver=new t((()=>{this._timeoutId=setTimeout(this._onResize,0)})),this._resizeObserver.observe(r)):(this._detectElementResize=Dr(e),this._detectElementResize.addResizeListener(r,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:e,defaultHeight:t,defaultWidth:n,disableHeight:a=!1,disableWidth:i=!1,nonce:o,onResize:s,style:l={},tagName:c="div",...u}=this.props,{height:f,scaledHeight:d,scaledWidth:v,width:h}=this.state,m={overflow:"visible"},p={};let _=!1;return a||(0===f&&(_=!0),m.height=0,p.height=f,p.scaledHeight=d),i||(0===h&&(_=!0),m.width=0,p.width=h,p.scaledWidth=v),(0,r.createElement)(c,{ref:this._setRef,style:{...m,...l},...u},!_&&e(p))}}function Cr(){return Cr=Object.assign?Object.assign.bind():function(e){for(var r=1;r=0||(a[t]=e[t]);return a}var Or="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function Fr(e){cancelAnimationFrame(e.id)}function Pr(e,r){var t=Or();var n={id:requestAnimationFrame((function a(){Or()-t>=r?e.call(null):n.id=requestAnimationFrame(a)}))};return n}var Lr=-1;function zr(e){if(void 0===e&&(e=!1),-1===Lr||e){var r=document.createElement("div"),t=r.style;t.width="50px",t.height="50px",t.overflow="scroll",document.body.appendChild(r),Lr=r.offsetWidth-r.clientWidth,document.body.removeChild(r)}return Lr}var Br=null;function Vr(e){if(void 0===e&&(e=!1),null===Br||e){var r=document.createElement("div"),t=r.style;t.width="50px",t.height="50px",t.overflow="scroll",t.direction="rtl";var n=document.createElement("div"),a=n.style;return a.width="100px",a.height="100px",r.appendChild(n),document.body.appendChild(r),r.scrollLeft>0?Br="positive-descending":(r.scrollLeft=1,Br=0===r.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(r),Br}return Br}var Ur=function(e,r){return e};function Wr(e){var t,n=e.getItemOffset,a=e.getEstimatedTotalSize,i=e.getItemSize,o=e.getOffsetForIndexAndAlignment,s=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,c=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,f=e.validateProps;return t=function(e){function t(r){var t;return(t=e.call(this,r)||this)._instanceProps=c(t.props,Mr(t)),t._outerRef=void 0,t._resetIsScrollingTimeoutId=null,t.state={instance:Mr(t),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof t.props.initialScrollOffset?t.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},t._callOnItemsRendered=void 0,t._callOnItemsRendered=Rr((function(e,r,n,a){return t.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:r,visibleStartIndex:n,visibleStopIndex:a})})),t._callOnScroll=void 0,t._callOnScroll=Rr((function(e,r,n){return t.props.onScroll({scrollDirection:e,scrollOffset:r,scrollUpdateWasRequested:n})})),t._getItemStyle=void 0,t._getItemStyle=function(e){var r,a=t.props,o=a.direction,s=a.itemSize,l=a.layout,c=t._getItemStyleCache(u&&s,u&&l,u&&o);if(c.hasOwnProperty(e))r=c[e];else{var f=n(t.props,e,t._instanceProps),d=i(t.props,e,t._instanceProps),v="horizontal"===o||"horizontal"===l,h="rtl"===o,m=v?f:0;c[e]=r={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:v?0:f,height:v?"100%":d,width:v?d:"100%"}}return r},t._getItemStyleCache=void 0,t._getItemStyleCache=Rr((function(e,r,t){return{}})),t._onScrollHorizontal=function(e){var r=e.currentTarget,n=r.clientWidth,a=r.scrollLeft,i=r.scrollWidth;t.setState((function(e){if(e.scrollOffset===a)return null;var r=t.props.direction,o=a;if("rtl"===r)switch(Vr()){case"negative":o=-a;break;case"positive-descending":o=i-n-a}return o=Math.max(0,Math.min(o,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffsetl.clientWidth?zr():0:l.scrollHeight>l.clientHeight?zr():0}this.scrollTo(o(this.props,e,r,i,this._instanceProps,s))},d.componentDidMount=function(){var e=this.props,r=e.direction,t=e.initialScrollOffset,n=e.layout;if("number"==typeof t&&null!=this._outerRef){var a=this._outerRef;"horizontal"===r||"horizontal"===n?a.scrollLeft=t:a.scrollTop=t}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,r=e.direction,t=e.layout,n=this.state,a=n.scrollOffset;if(n.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===r||"horizontal"===t)if("rtl"===r)switch(Vr()){case"negative":i.scrollLeft=-a;break;case"positive-ascending":i.scrollLeft=a;break;default:var o=i.clientWidth,s=i.scrollWidth;i.scrollLeft=s-o-a}else i.scrollLeft=a;else i.scrollTop=a}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&Fr(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,n=e.className,i=e.direction,o=e.height,s=e.innerRef,l=e.innerElementType,c=e.innerTagName,u=e.itemCount,f=e.itemData,d=e.itemKey,v=void 0===d?Ur:d,h=e.layout,m=e.outerElementType,p=e.outerTagName,_=e.style,S=e.useIsScrolling,g=e.width,b=this.state.isScrolling,w="horizontal"===i||"horizontal"===h,k=w?this._onScrollHorizontal:this._onScrollVertical,E=this._getRangeToRender(),y=E[0],D=E[1],A=[];if(u>0)for(var C=y;C<=D;C++)A.push((0,r.createElement)(t,{data:f,key:v(C,f),index:C,isScrolling:S?b:void 0,style:this._getItemStyle(C)}));var M=a(this.props,this._instanceProps);return(0,r.createElement)(m||p||"div",{className:n,onScroll:k,ref:this._outerRefSetter,style:Cr({position:"relative",height:o,width:g,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:i},_)},(0,r.createElement)(l||c||"div",{children:A,ref:s,style:{height:w?"100%":M,pointerEvents:b?"none":void 0,width:w?M:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),r=e[0],t=e[1],n=e[2],a=e[3];this._callOnItemsRendered(r,t,n,a)}if("function"==typeof this.props.onScroll){var i=this.state,o=i.scrollDirection,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(o,s,l)}},d._getRangeToRender=function(){var e=this.props,r=e.itemCount,t=e.overscanCount,n=this.state,a=n.isScrolling,i=n.scrollDirection,o=n.scrollOffset;if(0===r)return[0,0,0,0];var c=s(this.props,o,this._instanceProps),u=l(this.props,c,o,this._instanceProps),f=a&&"backward"!==i?1:Math.max(1,t),d=a&&"forward"!==i?1:Math.max(1,t);return[Math.max(0,c-f),Math.max(0,Math.min(r-1,u+d)),c,u]},t}(r.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var jr=function(e,r){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,r.instance},$r=Wr({getItemOffset:function(e,r){return r*e.itemSize},getItemSize:function(e,r){return e.itemSize},getEstimatedTotalSize:function(e){var r=e.itemCount;return e.itemSize*r},getOffsetForIndexAndAlignment:function(e,r,t,n,a,i){var o=e.direction,s=e.height,l=e.itemCount,c=e.itemSize,u=e.layout,f=e.width,d="horizontal"===o||"horizontal"===u?f:s,v=Math.max(0,l*c-d),h=Math.min(v,r*c),m=Math.max(0,r*c-d+c+i);switch("smart"===t&&(t=n>=m-d&&n<=h+d?"auto":"center"),t){case"start":return h;case"end":return m;case"center":var p=Math.round(m+(h-m)/2);return pv+Math.floor(d/2)?v:p;default:return n>=m&&n<=h?n:n0&&(d=!0,n=n+10&&(d=!0,n=n>0?n-1:f-1);break;case"HANDLE_STORE_MUTATION":if(""!==i){const[r,o]=t.payload;o.forEach(((e,r)=>{const t=a.indexOf(r);t>=0&&(a=a.slice(0,t).concat(a.slice(t+1)),0===a.length?n=null:n>=a.length&&(n=a.length-1))})),r.forEach((r=>{const t=e.getElementByID(r);if(null!==t){const{displayName:o}=t,s=et(i);if(null!==o&&s.test(o)){const t=e.getIndexOfElementID(r);let i=!1;for(let r=0;r{ct(e,t,r,a)})),a.length>0&&(n=null===c?null!==s?function(e,r,t){const n=r.findIndex((r=>{const n=e.getIndexOfElementID(r);return null!==n&&n>=t}));return-1===n?0:n}(e,a,s):0:Math.min(c,a.length-1))}break;default:return r}if(i!==u){const e=a.indexOf(o);-1===e?d=!0:n=e}return d&&null!==n&&(o=a[n],s=e.getIndexOfElementID(o)),{...r,selectedElementID:o,selectedElementIndex:s,searchIndex:n,searchResults:a,searchText:i}}function lt({children:e,defaultInspectedElementID:t,defaultOwnerID:n,defaultSelectedElementID:a,defaultSelectedElementIndex:i}){const o=(0,r.useContext)(hr),s=(0,r.useContext)(mr),l=(0,r.useMemo)((()=>s.revision),[s]),c=(0,r.useMemo)((()=>(e,r)=>{const{type:t}=r;switch(t){case"GO_TO_NEXT_SEARCH_RESULT":case"GO_TO_PREVIOUS_SEARCH_RESULT":case"HANDLE_STORE_MUTATION":case"RESET_OWNER_STACK":case"SELECT_ELEMENT_AT_INDEX":case"SELECT_ELEMENT_BY_ID":case"SELECT_CHILD_ELEMENT_IN_TREE":case"SELECT_NEXT_ELEMENT_IN_TREE":case"SELECT_NEXT_ELEMENT_WITH_ERROR_OR_WARNING_IN_TREE":case"SELECT_NEXT_SIBLING_IN_TREE":case"SELECT_OWNER_LIST_NEXT_ELEMENT_IN_TREE":case"SELECT_OWNER_LIST_PREVIOUS_ELEMENT_IN_TREE":case"SELECT_PARENT_ELEMENT_IN_TREE":case"SELECT_PREVIOUS_ELEMENT_IN_TREE":case"SELECT_PREVIOUS_ELEMENT_WITH_ERROR_OR_WARNING_IN_TREE":case"SELECT_PREVIOUS_SIBLING_IN_TREE":case"SELECT_OWNER":case"UPDATE_INSPECTED_ELEMENT_ID":case"SET_SEARCH_TEXT":return e=function(e,r,t){let{numElements:n,ownerSubtreeLeafElementID:a,selectedElementIndex:i,selectedElementID:o}=r,s=!0;if(null===r.ownerID)switch(t.type){case"HANDLE_STORE_MUTATION":n=e.numElements;const l=t.payload[1];for(;null!==o&&l.has(o);)o=l.get(o);0===o&&(i=null);break;case"SELECT_CHILD_ELEMENT_IN_TREE":if(a=null,null!==i){const r=e.getElementAtIndex(i);if(null!==r&&r.children.length>0&&!r.isCollapsed){const t=r.children[0],n=e.getIndexOfElementID(t);null!==n&&(i=n)}}break;case"SELECT_ELEMENT_AT_INDEX":a=null,i=t.payload;break;case"SELECT_ELEMENT_BY_ID":a=null,s=!1,o=t.payload,i=null===o?null:e.getIndexOfElementID(o);break;case"SELECT_NEXT_ELEMENT_IN_TREE":a=null,null===i||i+1>=n?i=0:i++;break;case"SELECT_NEXT_SIBLING_IN_TREE":if(a=null,null!==i){const r=e.getElementAtIndex(i);if(null!==r&&0!==r.parentID){const t=e.getElementByID(r.parentID);if(null!==t){const{children:n}=t,a=n.indexOf(r.id),o=a0?n[a-1]:n[n.length-1];i=e.getIndexOfElementID(o)}}}break;case"SELECT_PREVIOUS_ELEMENT_WITH_ERROR_OR_WARNING_IN_TREE":{const t=e.getElementsWithErrorsAndWarnings();if(0===t.length)return r;let n,a=0;if(null!==i)for(let e=t.length-1;e>=0;e--){const{index:r}=t[e];if(!(r>=i))break;a=e}0===a?(n=t[t.length-1],o=n.id,i=n.index):(n=t[a-1],o=n.id,i=n.index),s=!1;break}case"SELECT_NEXT_ELEMENT_WITH_ERROR_OR_WARNING_IN_TREE":{const t=e.getElementsWithErrorsAndWarnings();if(0===t.length)return r;let n,a=-1;if(null!==i)for(let e=0;e=t.length-1?(n=t[0],o=n.id,i=n.index):(n=t[a+1],o=n.id,i=n.index),s=!1;break}default:return r}return s&&i!==r.selectedElementIndex&&(o=null===i?null:e.getElementIDAtIndex(i)),{...r,numElements:n,ownerSubtreeLeafElementID:a,selectedElementIndex:i,selectedElementID:o}}(s,e,r),e=st(s,e,r),e=function(e,r,t){let{numElements:n,selectedElementID:a,selectedElementIndex:i,ownerID:o,ownerFlatTree:s}=r;const{searchIndex:l,searchResults:c,searchText:u}=r;let f=i;switch(t.type){case"HANDLE_STORE_MUTATION":null!==o?e.containsElement(o)?(s=e.getOwnersListForElement(o),null!==a&&(i=s.findIndex((e=>e.id===a)))):(o=null,s=null,a=null):null!==a&&(i=e.getIndexOfElementID(a)),-1===i&&(i=null,a=null);break;case"RESET_OWNER_STACK":o=null,s=null,i=null!==a?e.getIndexOfElementID(a):null;break;case"SELECT_ELEMENT_AT_INDEX":null!==s&&(i=t.payload);break;case"SELECT_ELEMENT_BY_ID":if(null!==s){const r=t.payload;null===r?i=null:(i=s.findIndex((e=>e.id===r)),null!==i&&i<0&&(o=null,s=null,i=e.getIndexOfElementID(r)))}break;case"SELECT_NEXT_ELEMENT_IN_TREE":null!==s&&s.length>0&&(null===i?i=0:i+10&&null!==i&&i>0&&i--;break;case"SELECT_OWNER":e.hasOwnerMetadata&&(o=t.payload,s=e.getOwnersListForElement(o),i=0,f=null);break;default:return r}return s===r.ownerFlatTree&&"HANDLE_STORE_MUTATION"!==t.type||(n=null===s?e.numElements:s.length),i!==f&&(null===i?a=null:null!==s&&(a=s[i].id)),{...r,numElements:n,selectedElementID:a,selectedElementIndex:i,searchIndex:l,searchResults:c,searchText:u,ownerID:o,ownerFlatTree:s}}(s,e,r),e=function(e,r,t){const{type:n}=t;if("UPDATE_INSPECTED_ELEMENT_ID"===n&&r.inspectedElementID!==r.selectedElementID)return{...r,inspectedElementID:r.selectedElementID};return r}(0,e,r),null!==e.selectedElementID&&s.isInsideCollapsedSubTree(e.selectedElementID)?{...e,selectedElementIndex:null}:e;default:throw new Error(`Unrecognized action "${t}"`)}}),[s]),[u,f]=(0,r.useReducer)(c,{numElements:s.numElements,ownerSubtreeLeafElementID:null,selectedElementID:null==a?null:a,selectedElementIndex:null==i?null:i,searchIndex:null,searchResults:[],searchText:"",ownerID:null==n?null:n,ownerFlatTree:null,inspectedElementID:null==t?null:t}),d=(0,r.useCallback)((e=>{f(e),(0,r.startTransition)((()=>{f({type:"UPDATE_INSPECTED_ELEMENT_ID"})}))}),[f]);(0,r.useEffect)((()=>{const e=e=>d({type:"SELECT_ELEMENT_BY_ID",payload:e});return o.addListener("selectFiber",e),()=>o.removeListener("selectFiber",e)}),[o,d]);const v=(0,r.useRef)(null);return(0,r.useLayoutEffect)((()=>{if(u.selectedElementID!==v.current&&(v.current=u.selectedElementID,null!==u.selectedElementID)){const e=s.getElementByID(u.selectedElementID);null!==e&&e.parentID>0&&s.toggleIsCollapsed(e.parentID,!1)}}),[u.selectedElementID,s]),(0,r.useEffect)((()=>{const e=([e,r])=>{d({type:"HANDLE_STORE_MUTATION",payload:[e,r]})};return s.revision!==l&&d({type:"HANDLE_STORE_MUTATION",payload:[[],new Map]}),s.addListener("mutated",e),()=>s.removeListener("mutated",e)}),[d,l,s]),r.createElement(it.Provider,{value:u},r.createElement(ot.Provider,{value:d},e))}function ct(e,r,t,n){const a=e.getElementByID(r);if(null==a)return;const{children:i,displayName:o,hocDisplayNames:s,compiledWithForget:l}=a;(null!=o&&!0===t.test(o)||null!=s&&s.length>0&&!0===s.some((e=>t.test(e)))||l&&t.test("Forget"))&&n.push(r),i.forEach((r=>ct(e,r,t,n)))}ot.displayName="TreeDispatcherContext";const ut={Icon:"QLIjinwPX2BYeYhjDPgw"};function ft({className:e="",title:t="",type:n}){let a=null;switch(n){case"arrow":a=dt;break;case"bug":a=vt;break;case"code":a=ht;break;case"components":a=mt;break;case"copy":a=pt;break;case"error":a=_t;break;case"facebook":a=St;break;case"flame-chart":a=gt;break;case"profiler":a=bt;break;case"ranked-chart":a=Et;break;case"timeline":a=wt;break;case"search":a=kt;break;case"settings":a=yt;break;case"store-as-global-variable":a=Dt;break;case"strict-mode-non-compliant":a=At;break;case"warning":a=Ct;break;default:console.warn(`Unsupported type "${n}" specified for Icon`)}return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:`${ut.Icon} ${e}`,width:"24",height:"24",viewBox:"0 0 24 24"},t&&r.createElement("title",null,t),r.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),r.createElement("path",{fill:"currentColor",d:a}))}const dt="M8 5v14l11-7z",vt="\n M20 8h-2.81c-.45-.78-1.07-1.45-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5c-.49\n 0-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09\n 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21\n 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20V8zm-6 8h-4v-2h4v2zm0-4h-4v-2h4v2z\n",ht="\n M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z\n ",mt="M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z",pt="\n M3 13h2v-2H3v2zm0 4h2v-2H3v2zm2 4v-2H3a2 2 0 0 0 2 2zM3 9h2V7H3v2zm12 12h2v-2h-2v2zm4-18H9a2 2 0 0 0-2\n 2v10a2 2 0 0 0 2 2h10c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 12H9V5h10v10zm-8 6h2v-2h-2v2zm-4 0h2v-2H7v2z\n",_t="M16.971 0h-9.942l-7.029 7.029v9.941l7.029 7.03h9.941l7.03-7.029v-9.942l-7.029-7.029zm-1.402 16.945l-3.554-3.521-3.518 3.568-1.418-1.418 3.507-3.566-3.586-3.472 1.418-1.417 3.581 3.458 3.539-3.583 1.431 1.431-3.535 3.568 3.566 3.522-1.431 1.43z",St="\n M22,12c0-5.52-4.48-10-10-10S2,6.48,2,12c0,4.84,3.44,8.87,8,9.8V15H8v-3h2V9.5C10,7.57,11.57,6,13.5,6H16v3h-2 c-0.55,0-1,0.45-1,1v2h3v3h-3v6.95C18.05,21.45,22,17.19,22,12z\n",gt="\n M10.0650893,21.5040462 C7.14020814,20.6850349 5,18.0558698 5,14.9390244 C5,14.017627\n 5,9.81707317 7.83333333,7.37804878 C7.83333333,7.37804878 7.58333333,11.199187 10,\n 10.6300813 C11.125,10.326087 13.0062497,7.63043487 8.91666667,2.5 C14.1666667,3.06910569\n 19,9.32926829 19,14.9390244 C19,18.0558698 16.8597919,20.6850349 13.9349107,21.5040462\n C14.454014,21.0118505 14.7765152,20.3233394 14.7765152,19.5613412 C14.7765152,17.2826087\n 12,15.0875871 12,15.0875871 C12,15.0875871 9.22348485,17.2826087 9.22348485,19.5613412\n C9.22348485,20.3233394 9.54598603,21.0118505 10.0650893,21.5040462 Z M12.0833333,20.6514763\n C11.3814715,20.6514763 10.8125,20.1226027 10.8125,19.4702042 C10.8125,18.6069669\n 12.0833333,16.9347829 12.0833333,16.9347829 C12.0833333,16.9347829 13.3541667,18.6069669\n 13.3541667,19.4702042 C13.3541667,20.1226027 12.7851952,20.6514763 12.0833333,20.6514763 Z\n",bt="M5 9.2h3V19H5zM10.6 5h2.8v14h-2.8zm5.6 8H19v6h-2.8z",wt="\n M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0\n 16H5V9h14v10zm0-12H5V5h14v2zM7 11h5v5H7z\n",kt="\n M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91\n 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99\n 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z\n",Et="M3 5h18v3H3zM3 10.5h13v3H3zM3 16h8v3H3z",yt="\n M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.12-.22-.39-.3-.61-.22l-2.49\n 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65C14.46 2.18 14.25 2 14 2h-4c-.25 0-.46.18-.49.42l-.38\n 2.65c-.61.25-1.17.59-1.69.98l-2.49-1c-.23-.09-.49 0-.61.22l-2 3.46c-.13.22-.07.49.12.64l2.11\n 1.65c-.04.32-.07.65-.07.98s.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.12.22.39.3.61.22l2.49-1c.52.4\n 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49\n 1c.23.09.49 0 .61-.22l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.65zM12 15.5c-1.93 0-3.5-1.57-3.5-3.5s1.57-3.5\n 3.5-3.5 3.5 1.57 3.5 3.5-1.57 3.5-3.5 3.5z\n",Dt="\n M20 8h-2.81c-.45-.78-1.07-1.45-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5c-.49 0-.96.06-1.41.17L8.41\n 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04\n 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20V8zm-6\n 8h-4v-2h4v2zm0-4h-4v-2h4v2z\n",At="\n M4.47 21h15.06c1.54 0 2.5-1.67 1.73-3L13.73 4.99c-.77-1.33-2.69-1.33-3.46 0L2.74 18c-.77 1.33.19 3 1.73 3zM12\n 14c-.55 0-1-.45-1-1v-2c0-.55.45-1 1-1s1 .45 1 1v2c0 .55-.45 1-1 1zm1 4h-2v-2h2v2z\n",Ct="M12 1l-12 22h24l-12-22zm-1 8h2v7h-2v-7zm1 11.25c-.69 0-1.25-.56-1.25-1.25s.56-1.25 1.25-1.25 1.25.56 1.25 1.25-.56 1.25-1.25 1.25z",Mt="https://github.com/facebook/react/blob/main/packages/react-devtools/CHANGELOG.md",xt="https://reactjs.org/blog/2019/08/15/new-react-devtools.html#how-do-i-get-the-old-version-back",Tt="https://fburl.com/react-devtools-workplace-group",Ht={light:{"--color-attribute-name":"#ef6632","--color-attribute-name-not-editable":"#23272f","--color-attribute-name-inverted":"rgba(255, 255, 255, 0.7)","--color-attribute-value":"#1a1aa6","--color-attribute-value-inverted":"#ffffff","--color-attribute-editable-value":"#1a1aa6","--color-background":"#ffffff","--color-background-hover":"rgba(0, 136, 250, 0.1)","--color-background-inactive":"#e5e5e5","--color-background-invalid":"#fff0f0","--color-background-selected":"#0088fa","--color-button-background":"#ffffff","--color-button-background-focus":"#ededed","--color-button":"#5f6673","--color-button-disabled":"#cfd1d5","--color-button-active":"#0088fa","--color-button-focus":"#23272f","--color-button-hover":"#23272f","--color-border":"#eeeeee","--color-commit-did-not-render-fill":"#cfd1d5","--color-commit-did-not-render-fill-text":"#000000","--color-commit-did-not-render-pattern":"#cfd1d5","--color-commit-did-not-render-pattern-text":"#333333","--color-commit-gradient-0":"#37afa9","--color-commit-gradient-1":"#63b19e","--color-commit-gradient-2":"#80b393","--color-commit-gradient-3":"#97b488","--color-commit-gradient-4":"#abb67d","--color-commit-gradient-5":"#beb771","--color-commit-gradient-6":"#cfb965","--color-commit-gradient-7":"#dfba57","--color-commit-gradient-8":"#efbb49","--color-commit-gradient-9":"#febc38","--color-commit-gradient-text":"#000000","--color-component-name":"#6a51b2","--color-component-name-inverted":"#ffffff","--color-component-badge-background":"rgba(0, 0, 0, 0.1)","--color-component-badge-background-inverted":"rgba(255, 255, 255, 0.25)","--color-component-badge-count":"#777d88","--color-component-badge-count-inverted":"rgba(255, 255, 255, 0.7)","--color-console-error-badge-text":"#ffffff","--color-console-error-background":"#fff0f0","--color-console-error-border":"#ffd6d6","--color-console-error-icon":"#eb3941","--color-console-error-text":"#fe2e31","--color-console-warning-badge-text":"#000000","--color-console-warning-background":"#fffbe5","--color-console-warning-border":"#fff5c1","--color-console-warning-icon":"#f4bd00","--color-console-warning-text":"#64460c","--color-context-background":"rgba(0,0,0,.9)","--color-context-background-hover":"rgba(255, 255, 255, 0.1)","--color-context-background-selected":"#178fb9","--color-context-border":"#3d424a","--color-context-text":"#ffffff","--color-context-text-selected":"#ffffff","--color-dim":"#777d88","--color-dimmer":"#cfd1d5","--color-dimmest":"#eff0f1","--color-error-background":"hsl(0, 100%, 97%)","--color-error-border":"hsl(0, 100%, 92%)","--color-error-text":"#ff0000","--color-expand-collapse-toggle":"#777d88","--color-forget-badge-background":"#2683e2","--color-forget-badge-background-inverted":"#1a6bbc","--color-forget-text":"#fff","--color-link":"#0000ff","--color-modal-background":"rgba(255, 255, 255, 0.75)","--color-bridge-version-npm-background":"#eff0f1","--color-bridge-version-npm-text":"#000000","--color-bridge-version-number":"#0088fa","--color-primitive-hook-badge-background":"#e5e5e5","--color-primitive-hook-badge-text":"#5f6673","--color-record-active":"#fc3a4b","--color-record-hover":"#3578e5","--color-record-inactive":"#0088fa","--color-resize-bar":"#eeeeee","--color-resize-bar-active":"#dcdcdc","--color-resize-bar-border":"#d1d1d1","--color-resize-bar-dot":"#333333","--color-timeline-internal-module":"#d1d1d1","--color-timeline-internal-module-hover":"#c9c9c9","--color-timeline-internal-module-text":"#444","--color-timeline-native-event":"#ccc","--color-timeline-native-event-hover":"#aaa","--color-timeline-network-primary":"#fcf3dc","--color-timeline-network-primary-hover":"#f0e7d1","--color-timeline-network-secondary":"#efc457","--color-timeline-network-secondary-hover":"#e3ba52","--color-timeline-priority-background":"#f6f6f6","--color-timeline-priority-border":"#eeeeee","--color-timeline-user-timing":"#c9cacd","--color-timeline-user-timing-hover":"#93959a","--color-timeline-react-idle":"#d3e5f6","--color-timeline-react-idle-hover":"#c3d9ef","--color-timeline-react-render":"#9fc3f3","--color-timeline-react-render-hover":"#83afe9","--color-timeline-react-render-text":"#11365e","--color-timeline-react-commit":"#c88ff0","--color-timeline-react-commit-hover":"#b281d6","--color-timeline-react-commit-text":"#3e2c4a","--color-timeline-react-layout-effects":"#b281d6","--color-timeline-react-layout-effects-hover":"#9d71bd","--color-timeline-react-layout-effects-text":"#3e2c4a","--color-timeline-react-passive-effects":"#b281d6","--color-timeline-react-passive-effects-hover":"#9d71bd","--color-timeline-react-passive-effects-text":"#3e2c4a","--color-timeline-react-schedule":"#9fc3f3","--color-timeline-react-schedule-hover":"#2683E2","--color-timeline-react-suspense-rejected":"#f1cc14","--color-timeline-react-suspense-rejected-hover":"#ffdf37","--color-timeline-react-suspense-resolved":"#a6e59f","--color-timeline-react-suspense-resolved-hover":"#89d281","--color-timeline-react-suspense-unresolved":"#c9cacd","--color-timeline-react-suspense-unresolved-hover":"#93959a","--color-timeline-thrown-error":"#ee1638","--color-timeline-thrown-error-hover":"#da1030","--color-timeline-text-color":"#000000","--color-timeline-text-dim-color":"#ccc","--color-timeline-react-work-border":"#eeeeee","--color-search-match":"yellow","--color-search-match-current":"#f7923b","--color-selected-tree-highlight-active":"rgba(0, 136, 250, 0.1)","--color-selected-tree-highlight-inactive":"rgba(0, 0, 0, 0.05)","--color-scroll-caret":"rgba(150, 150, 150, 0.5)","--color-tab-selected-border":"#0088fa","--color-text":"#000000","--color-text-invalid":"#ff0000","--color-text-selected":"#ffffff","--color-toggle-background-invalid":"#fc3a4b","--color-toggle-background-on":"#0088fa","--color-toggle-background-off":"#cfd1d5","--color-toggle-text":"#ffffff","--color-warning-background":"#fb3655","--color-warning-background-hover":"#f82042","--color-warning-text-color":"#ffffff","--color-warning-text-color-inverted":"#fd4d69","--color-scroll-thumb":"#c2c2c2","--color-scroll-track":"#fafafa","--color-tooltip-background":"rgba(0, 0, 0, 0.9)","--color-tooltip-text":"#ffffff"},dark:{"--color-attribute-name":"#9d87d2","--color-attribute-name-not-editable":"#ededed","--color-attribute-name-inverted":"#282828","--color-attribute-value":"#cedae0","--color-attribute-value-inverted":"#ffffff","--color-attribute-editable-value":"yellow","--color-background":"#282c34","--color-background-hover":"rgba(255, 255, 255, 0.1)","--color-background-inactive":"#3d424a","--color-background-invalid":"#5c0000","--color-background-selected":"#178fb9","--color-button-background":"#282c34","--color-button-background-focus":"#3d424a","--color-button":"#afb3b9","--color-button-active":"#61dafb","--color-button-disabled":"#4f5766","--color-button-focus":"#a2e9fc","--color-button-hover":"#ededed","--color-border":"#3d424a","--color-commit-did-not-render-fill":"#777d88","--color-commit-did-not-render-fill-text":"#000000","--color-commit-did-not-render-pattern":"#666c77","--color-commit-did-not-render-pattern-text":"#ffffff","--color-commit-gradient-0":"#37afa9","--color-commit-gradient-1":"#63b19e","--color-commit-gradient-2":"#80b393","--color-commit-gradient-3":"#97b488","--color-commit-gradient-4":"#abb67d","--color-commit-gradient-5":"#beb771","--color-commit-gradient-6":"#cfb965","--color-commit-gradient-7":"#dfba57","--color-commit-gradient-8":"#efbb49","--color-commit-gradient-9":"#febc38","--color-commit-gradient-text":"#000000","--color-component-name":"#61dafb","--color-component-name-inverted":"#282828","--color-component-badge-background":"#5e6167","--color-component-badge-background-inverted":"#46494e","--color-component-badge-count":"#8f949d","--color-component-badge-count-inverted":"rgba(255, 255, 255, 0.85)","--color-console-error-badge-text":"#000000","--color-console-error-background":"#290000","--color-console-error-border":"#5c0000","--color-console-error-icon":"#eb3941","--color-console-error-text":"#fc7f7f","--color-console-warning-badge-text":"#000000","--color-console-warning-background":"#332b00","--color-console-warning-border":"#665500","--color-console-warning-icon":"#f4bd00","--color-console-warning-text":"#f5f2ed","--color-context-background":"rgba(255,255,255,.95)","--color-context-background-hover":"rgba(0, 136, 250, 0.1)","--color-context-background-selected":"#0088fa","--color-context-border":"#eeeeee","--color-context-text":"#000000","--color-context-text-selected":"#ffffff","--color-dim":"#8f949d","--color-dimmer":"#777d88","--color-dimmest":"#4f5766","--color-error-background":"#200","--color-error-border":"#900","--color-error-text":"#f55","--color-expand-collapse-toggle":"#8f949d","--color-forget-badge-background":"#2683e2","--color-forget-badge-background-inverted":"#1a6bbc","--color-forget-text":"#fff","--color-link":"#61dafb","--color-modal-background":"rgba(0, 0, 0, 0.75)","--color-bridge-version-npm-background":"rgba(0, 0, 0, 0.25)","--color-bridge-version-npm-text":"#ffffff","--color-bridge-version-number":"yellow","--color-primitive-hook-badge-background":"rgba(0, 0, 0, 0.25)","--color-primitive-hook-badge-text":"rgba(255, 255, 255, 0.7)","--color-record-active":"#fc3a4b","--color-record-hover":"#a2e9fc","--color-record-inactive":"#61dafb","--color-resize-bar":"#282c34","--color-resize-bar-active":"#31363f","--color-resize-bar-border":"#3d424a","--color-resize-bar-dot":"#cfd1d5","--color-timeline-internal-module":"#303542","--color-timeline-internal-module-hover":"#363b4a","--color-timeline-internal-module-text":"#7f8899","--color-timeline-native-event":"#b2b2b2","--color-timeline-native-event-hover":"#949494","--color-timeline-network-primary":"#fcf3dc","--color-timeline-network-primary-hover":"#e3dbc5","--color-timeline-network-secondary":"#efc457","--color-timeline-network-secondary-hover":"#d6af4d","--color-timeline-priority-background":"#1d2129","--color-timeline-priority-border":"#282c34","--color-timeline-user-timing":"#c9cacd","--color-timeline-user-timing-hover":"#93959a","--color-timeline-react-idle":"#3d485b","--color-timeline-react-idle-hover":"#465269","--color-timeline-react-render":"#2683E2","--color-timeline-react-render-hover":"#1a76d4","--color-timeline-react-render-text":"#11365e","--color-timeline-react-commit":"#731fad","--color-timeline-react-commit-hover":"#611b94","--color-timeline-react-commit-text":"#e5c1ff","--color-timeline-react-layout-effects":"#611b94","--color-timeline-react-layout-effects-hover":"#51167a","--color-timeline-react-layout-effects-text":"#e5c1ff","--color-timeline-react-passive-effects":"#611b94","--color-timeline-react-passive-effects-hover":"#51167a","--color-timeline-react-passive-effects-text":"#e5c1ff","--color-timeline-react-schedule":"#2683E2","--color-timeline-react-schedule-hover":"#1a76d4","--color-timeline-react-suspense-rejected":"#f1cc14","--color-timeline-react-suspense-rejected-hover":"#e4c00f","--color-timeline-react-suspense-resolved":"#a6e59f","--color-timeline-react-suspense-resolved-hover":"#89d281","--color-timeline-react-suspense-unresolved":"#c9cacd","--color-timeline-react-suspense-unresolved-hover":"#93959a","--color-timeline-thrown-error":"#fb3655","--color-timeline-thrown-error-hover":"#f82042","--color-timeline-text-color":"#282c34","--color-timeline-text-dim-color":"#555b66","--color-timeline-react-work-border":"#3d424a","--color-search-match":"yellow","--color-search-match-current":"#f7923b","--color-selected-tree-highlight-active":"rgba(23, 143, 185, 0.15)","--color-selected-tree-highlight-inactive":"rgba(255, 255, 255, 0.05)","--color-scroll-caret":"#4f5766","--color-shadow":"rgba(0, 0, 0, 0.5)","--color-tab-selected-border":"#178fb9","--color-text":"#ffffff","--color-text-invalid":"#ff8080","--color-text-selected":"#ffffff","--color-toggle-background-invalid":"#fc3a4b","--color-toggle-background-on":"#178fb9","--color-toggle-background-off":"#777d88","--color-toggle-text":"#ffffff","--color-warning-background":"#ee1638","--color-warning-background-hover":"#da1030","--color-warning-text-color":"#ffffff","--color-warning-text-color-inverted":"#ee1638","--color-scroll-thumb":"#afb3b9","--color-scroll-track":"#313640","--color-tooltip-background":"rgba(255, 255, 255, 0.95)","--color-tooltip-text":"#000000"},compact:{"--font-size-monospace-small":"9px","--font-size-monospace-normal":"11px","--font-size-monospace-large":"15px","--font-size-sans-small":"10px","--font-size-sans-normal":"12px","--font-size-sans-large":"14px","--line-height-data":"18px"},comfortable:{"--font-size-monospace-small":"10px","--font-size-monospace-normal":"13px","--font-size-monospace-large":"17px","--font-size-sans-small":"12px","--font-size-sans-normal":"14px","--font-size-sans-large":"16px","--line-height-data":"22px"}},Nt=parseInt(Ht.comfortable["--line-height-data"],10),Rt=parseInt(Ht.compact["--line-height-data"],10);var It=a(677),Ot=a.n(It);function Ft(e,r){switch(r.type){case"RESET":return{...e,editableValue:Ue(r.externalValue),externalValue:r.externalValue,hasPendingChanges:!1,isValid:!0,parsedValue:r.externalValue};case"UPDATE":let t,n=!1;try{t=Ve(r.editableValue),n=!0}catch(e){}return{...e,editableValue:Be(r.editableValue),externalValue:r.externalValue,hasPendingChanges:Ue(r.externalValue)!==r.editableValue,isValid:n,parsedValue:n?t:e.parsedValue};default:throw new Error(`Invalid action "${r.type}"`)}}function Pt(e,t,n){const a=(0,r.useCallback)((()=>{try{const r=de(e);if(null!=r)return JSON.parse(r)}catch(e){console.log(e)}return"function"==typeof t?t():t}),[t,e]),[i,o]=(0,r.useState)(a),s=(0,r.useCallback)((r=>{try{const t=r instanceof Function?r(i):r;o(t),ve(e,JSON.stringify(t)),window.dispatchEvent(new Event(e)),null!=n&&n(t,e)}catch(e){console.log(e)}}),[e,i]);return(0,r.useLayoutEffect)((()=>{const r=r=>{const t=a();e===r.key&&i!==t&&s(t)};return window.addEventListener("storage",r),()=>{window.removeEventListener("storage",r)}}),[a,e,i,s]),[i,s]}function Lt(e,t,n=!0){(0,r.useEffect)((()=>{if(null===e.current)return()=>{};const r=e=>{"Escape"===e.key&&t()},a=r=>{null===e.current||e.current.contains(r.target)||(r.stopPropagation(),r.preventDefault(),t())};let i=null,o=setTimeout((()=>{o=null;const t=e.current;null!=t&&(i=t.getRootNode(),i.addEventListener("keydown",r),n&&i.addEventListener("click",a,!0))}),0);return()=>{null!==o&&clearTimeout(o),null!==i&&(i.removeEventListener("keydown",r),i.removeEventListener("click",a,!0))}}),[e,t,n])}function zt({getCurrentValue:e,subscribe:t}){const[n,a]=(0,r.useState)((()=>({getCurrentValue:e,subscribe:t,value:e()})));return n.getCurrentValue===e&&n.subscribe===t||a({getCurrentValue:e,subscribe:t,value:e()}),(0,r.useEffect)((()=>{let r=!1;const n=()=>{r||a((r=>{if(r.getCurrentValue!==e||r.subscribe!==t)return r;const n=e();return r.value===n?r:{...r,value:n}}))},i=t(n);return n(),()=>{r=!0,i()}}),[e,t]),n.value}function Bt(){const e=(0,r.useContext)(hr),t=(0,r.useContext)(mr),n=(0,r.useCallback)((r=>{const n=t.getElementByID(r),a=t.getRendererIDForElement(r);null!==n&&null!==a&&e.send("highlightNativeElement",{displayName:n.displayName,hideAfterTimeout:!1,id:r,openNativeElementsPanel:!1,rendererID:a,scrollIntoView:!1})}),[t,e]);return{highlightNativeElement:n,clearHighlightNativeElement:(0,r.useCallback)((()=>{e.send("clearNativeElementHighlight")}),[e])}}const Vt=!1,Ut=!1;const Wt=function(){},jt=(0,r.createContext)(null);function $t(e,r){return Pt(e,r,((e,r)=>{Wt({event_name:"settings-changed",metadata:{source:"localStorage setter",key:r,value:e}})}))}function Xt({browserTheme:e,children:t,componentsPortalContainer:n,profilerPortalContainer:a}){const i=(0,r.useContext)(hr),[o,s]=$t("React::DevTools::displayDensity","compact"),[l,c]=$t(M,"auto"),[u,f]=$t(x,!0),[d,v]=$t(C,!1),[h,m]=$t(A,!1),[p,_]=$t(N,!1),[S,g]=$t(T,!0),[b,w]=$t(H,!1),k=(0,r.useMemo)((()=>{const e=[document.documentElement];return null!=n&&e.push(n.ownerDocument.documentElement),null!=a&&e.push(a.ownerDocument.documentElement),e}),[n,a]);(0,r.useLayoutEffect)((()=>{switch(o){case"comfortable":Gt("comfortable",k);break;case"compact":Gt("compact",k);break;default:throw Error(`Unsupported displayDensity value "${o}"`)}}),[o,k]),(0,r.useLayoutEffect)((()=>{switch(l){case"light":Kt("light",k);break;case"dark":Kt("dark",k);break;case"auto":Kt(e,k);break;default:throw Error(`Unsupported theme value "${l}"`)}}),[e,l,k]),(0,r.useEffect)((()=>{i.send("updateConsolePatchSettings",{appendComponentStack:u,breakOnConsoleErrors:d,showInlineWarningsAndErrors:S,hideConsoleLogsInStrictMode:p,browserTheme:e})}),[i,u,d,S,p,e]),(0,r.useEffect)((()=>{i.send("setTraceUpdatesEnabled",b)}),[i,b]);const E=(0,r.useMemo)((()=>({appendComponentStack:u,breakOnConsoleErrors:d,displayDensity:o,lineHeight:"compact"===o?Rt:Nt,parseHookNames:h,setAppendComponentStack:f,setBreakOnConsoleErrors:v,setDisplayDensity:s,setParseHookNames:m,setTheme:c,setTraceUpdatesEnabled:w,setShowInlineWarningsAndErrors:g,showInlineWarningsAndErrors:S,setHideConsoleLogsInStrictMode:_,hideConsoleLogsInStrictMode:p,theme:l,browserTheme:e,traceUpdatesEnabled:b})),[u,d,o,h,f,v,s,m,c,w,g,S,_,p,l,e,b]);return r.createElement(jt.Provider,{value:E},t)}function Gt(e,r){const t=getComputedStyle(document.body).getPropertyValue(`--${e}-root-font-size`);document.querySelector(":root").style.fontSize=t}function Kt(e,r){r.forEach((r=>{r.style.scrollbarColor=`var(--${e}-color-scroll-thumb) var(--${e}-color-scroll-track)`}))}jt.displayName="SettingsContext";const qt={ButtonIcon:"t616OcxJgTxzU23xzvW3"};function Yt({className:e="",type:t}){let n=null;switch(t){case"add":n=Qt;break;case"cancel":n=Jt;break;case"clear":n=Zt;break;case"close":n=en;break;case"collapsed":n=rn;break;case"copy":n=tn;break;case"delete":n=nn;break;case"down":n=an;break;case"editor":n=An;break;case"expanded":n=on;break;case"export":n=sn;break;case"filter":n=ln;break;case"import":n=cn;break;case"log-data":n=un;break;case"more":n=fn;break;case"next":n=dn;break;case"parse-hook-names":n=vn;break;case"previous":n=hn;break;case"record":n=mn;break;case"reload":n=pn;break;case"save":n=_n;break;case"search":n=Sn;break;case"settings":n=gn;break;case"error":n=bn;break;case"suspend":n=wn;break;case"undo":n=kn;break;case"up":n=En;break;case"view-dom":n=yn;break;case"view-source":n=Dn;break;default:console.warn(`Unsupported type "${t}" specified for ButtonIcon`)}return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:`${qt.ButtonIcon} ${e}`,width:"24",height:"24",viewBox:"0 0 24 24"},r.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),"string"==typeof n?r.createElement("path",{fill:"currentColor",d:n}):n)}const Qt="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11h-4v4h-2v-4H7v-2h4V7h2v4h4v2z",Jt="\n M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\n",Zt="\n M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69\n 16.9C4.63 15.55 4 13.85 4 12zm8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8z\n",en="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z",rn="M10 17l5-5-5-5v10z",tn="\n M3 13h2v-2H3v2zm0 4h2v-2H3v2zm2 4v-2H3a2 2 0 0 0 2 2zM3 9h2V7H3v2zm12 12h2v-2h-2v2zm4-18H9a2 2 0 0 0-2\n 2v10a2 2 0 0 0 2 2h10c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 12H9V5h10v10zm-8 6h2v-2h-2v2zm-4 0h2v-2H7v2z\n",nn="\n M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12\n 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z\n",an="M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z",on="M7 10l5 5 5-5z",sn="M15.82,2.14v7H21l-9,9L3,9.18H8.18v-7ZM3,20.13H21v1.73H3Z",ln="M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z",cn="M8.18,18.13v-7H3l9-8.95,9,9H15.82v7ZM3,20.13H21v1.73H3Z",un="\n M20 8h-2.81c-.45-.78-1.07-1.45-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5c-.49 0-.96.06-1.41.17L8.41\n 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04\n 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20V8zm-6\n 8h-4v-2h4v2zm0-4h-4v-2h4v2z\n",fn="\n M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9\n 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z\n",dn="M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z",vn=r.createElement("g",null,r.createElement("polygon",{points:"20,7 20.94,4.94 23,4 20.94,3.06 20,1 19.06,3.06 17,4 19.06,4.94"}),r.createElement("polygon",{points:"8.5,7 9.44,4.94 11.5,4 9.44,3.06 8.5,1 7.56,3.06 5.5,4 7.56,4.94"}),r.createElement("polygon",{points:"20,12.5 19.06,14.56 17,15.5 19.06,16.44 20,18.5 20.94,16.44 23,15.5 20.94,14.56"}),r.createElement("path",{d:"M17.71,9.12l-2.83-2.83C14.68,6.1,14.43,6,14.17,6c-0.26,0-0.51,0.1-0.71,0.29L2.29,17.46c-0.39,0.39-0.39,1.02,0,1.41 l2.83,2.83C5.32,21.9,5.57,22,5.83,22s0.51-0.1,0.71-0.29l11.17-11.17C18.1,10.15,18.1,9.51,17.71,9.12z M14.17,8.42l1.41,1.41 L14.41,11L13,9.59L14.17,8.42z M5.83,19.59l-1.41-1.41L11.59,11L13,12.41L5.83,19.59z"})),hn="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",mn="M4,12a8,8 0 1,0 16,0a8,8 0 1,0 -16,0",pn="\n M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0\n 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0\n 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z\n",_n="\n M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z\n",Sn="\n M8.5,22H3.7l-1.4-1.5V3.8l1.3-1.5h17.2l1,1.5v4.9h-1.3V4.3l-0.4-0.6H4.2L3.6,4.3V20l0.7,0.7h4.2V22z\n M23,13.9l-4.6,3.6l4.6,4.6l-1.1,1.1l-4.7-4.4l-3.3,4.4l-3.2-12.3L23,13.9z\n",gn="\n M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.12-.22-.39-.3-.61-.22l-2.49\n 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65C14.46 2.18 14.25 2 14 2h-4c-.25 0-.46.18-.49.42l-.38\n 2.65c-.61.25-1.17.59-1.69.98l-2.49-1c-.23-.09-.49 0-.61.22l-2 3.46c-.13.22-.07.49.12.64l2.11\n 1.65c-.04.32-.07.65-.07.98s.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.12.22.39.3.61.22l2.49-1c.52.4\n 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49\n 1c.23.09.49 0 .61-.22l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.65zM12 15.5c-1.93 0-3.5-1.57-3.5-3.5s1.57-3.5\n 3.5-3.5 3.5 1.57 3.5 3.5-1.57 3.5-3.5 3.5z\n",bn="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z",wn="\n M15 1H9v2h6V1zm-4 13h2V8h-2v6zm8.03-6.61l1.42-1.42c-.43-.51-.9-.99-1.41-1.41l-1.42 1.42C16.07 4.74 14.12 4 12 4c-4.97\n 0-9 4.03-9 9s4.02 9 9 9 9-4.03 9-9c0-2.12-.74-4.07-1.97-5.61zM12 20c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z\n",kn="\n M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88\n 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z\n",En="M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z",yn="\n M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12\n 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3\n 3-1.34 3-3-1.34-3-3-3z\n",Dn="\n M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z\n ",An="\n M7 5h10v2h2V3c0-1.1-.9-1.99-2-1.99L7 1c-1.1 0-2 .9-2 2v4h2V5zm8.41 11.59L20 12l-4.59-4.59L14 8.83 17.17 12 14 15.17l1.41 1.42zM10 15.17L6.83 12 10 8.83 8.59 7.41 4 12l4.59 4.59L10 15.17zM17 19H7v-2H5v4c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2v-4h-2v2z\n",Cn={Badge:"srEfgwlgMuqiVfvkQIvd"};function Mn({className:e="",children:t}){return r.createElement("div",{className:`${Cn.Badge} ${e}`},t)}const xn={Element:"PFyuu5xBjR8uxX6thYbZ",InactiveSelectedElement:"iUJPAOCrle8In4qQfWxv",SelectedElement:"HZliX8_6EyENDRMMudN1",HoveredElement:"sgAe5RpaAMDGW_sU5o2L",Wrapper:"NBAhV9ShwRUirQXQbAv2",KeyName:"jm66uQ9yPiywLYg_mbpq",KeyValue:"S9otH361hPUibpM9aUpv",Highlight:"GOTV0C4MoXywapiTV03U",CurrentHighlight:"kVA4R0YpVXwfidREhviQ",ExpandCollapseToggle:"Kr5jbyCbolRzNSFzovW1",BadgesBlock:"Fx3j0RUMWHB5BecGc2_Q",ErrorIcon:"Xt2SitK2jELL4hLu6Mdy",ErrorIconContrast:"Rj45rwaNiDfhb7PGI4l_",StrictMode:"WiNfvaLp1fGWpo6uMIiJ",StrictModeContrast:"_66netzHqTarCYM811yp",WarningIcon:"at0eyFbv9icLAQdvXWuC",WarningIconContrast:"xIxPkdllpGllMVH8jq8H"},{useMemo:Tn,useContext:Hn}=t;const Nn=function({displayName:e,id:t}){const{searchIndex:n,searchResults:a,searchText:i}=Hn(it),o=Tn((()=>a.includes(t)),[t,a]),s=null!==n&&t===a[n];if(!o||null===e)return e;const l=et(i).exec(e);if(null===l)return e;const c=l.index,u=c+l[0].length,f=[];return c>0&&f.push(r.createElement("span",{key:"begin"},e.slice(0,c))),f.push(r.createElement("mark",{key:"middle",className:s?xn.CurrentHighlight:xn.Highlight},e.slice(c,u))),ue.length)&&(r=e.length);for(var t=0,n=new Array(r);t=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}function $n(e,r){if(null!=e)if(Un(e))e(r);else try{e.current=r}catch(t){throw new Error('Cannot assign value "'+r+'" to ref "'+e+'"')}}function Xn(){for(var e=arguments.length,t=new Array(e),n=0;n=0||(a[t]=e[t]);return a}(e,Jn);return(0,r.createElement)(a,Qn({ref:t,style:Qn({border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"},o)},s))}));var ea,ra=["bottom","height","left","right","top","width"],ta=new Map,na=function e(){var r=[];ta.forEach((function(e,t){var n,a,i=t.getBoundingClientRect();n=i,a=e.rect,void 0===n&&(n={}),void 0===a&&(a={}),ra.some((function(e){return n[e]!==a[e]}))&&(e.rect=i,r.push(e))})),r.forEach((function(e){e.callbacks.forEach((function(r){return r(e.rect)}))})),ea=window.requestAnimationFrame(e)};const aa=function(e,r){return{observe:function(){var t=0===ta.size;ta.has(e)?ta.get(e).callbacks.push(r):ta.set(e,{rect:void 0,hasRectChanged:!1,callbacks:[r]}),t&&na()},unobserve:function(){var t=ta.get(e);if(t){var n=t.callbacks.indexOf(r);n>=0&&t.callbacks.splice(n,1),t.callbacks.length||ta.delete(e),ta.size||cancelAnimationFrame(ea)}}}};function ia(e,t,n){var a,i,o;"boolean"==typeof t?a=t:(a=null==(o=null==t?void 0:t.observe)||o,i=null==t?void 0:t.onChange);Un(n)&&(i=n);var s=(0,r.useState)(e.current),l=s[0],c=s[1],u=(0,r.useRef)(!1),f=(0,r.useRef)(!1),d=(0,r.useState)(null),v=d[0],h=d[1],m=(0,r.useRef)(i);return On((function(){m.current=i,e.current!==l&&c(e.current)})),On((function(){l&&!u.current&&(u.current=!0,h(l.getBoundingClientRect()))}),[l]),On((function(){if(a){var r=l;if(f.current||(f.current=!0,r=e.current),r){var t=aa(r,(function(e){null==m.current||m.current(e),h(e)}));return t.observe(),function(){t.unobserve()}}}}),[a,l,e]),v}function oa(){return oa=Object.assign||function(e){for(var r=1;r=0||(a[t]=e[t]);return a}var la,ca,ua,fa,da,va,ha,ma,pa=["children","label","ariaLabel","id","DEBUG_STYLE"],_a=["label","ariaLabel","isVisible","id"],Sa=["ariaLabel","aria-label","as","id","isVisible","label","position","style","triggerRect"],ga=["type"];!function(e){e.Idle="IDLE",e.Focused="FOCUSED",e.Visible="VISIBLE",e.LeavingVisible="LEAVING_VISIBLE",e.Dismissed="DISMISSED"}(ha||(ha={})),function(e){e.Blur="BLUR",e.Focus="FOCUS",e.GlobalMouseMove="GLOBAL_MOUSE_MOVE",e.MouseDown="MOUSE_DOWN",e.MouseEnter="MOUSE_ENTER",e.MouseLeave="MOUSE_LEAVE",e.MouseMove="MOUSE_MOVE",e.Rest="REST",e.SelectWithKeyboard="SELECT_WITH_KEYBOARD",e.TimeComplete="TIME_COMPLETE"}(ma||(ma={}));var ba,wa,ka={initial:ha.Idle,states:(va={},va[ha.Idle]={enter:Da,on:(la={},la[ma.MouseEnter]=ha.Focused,la[ma.Focus]=ha.Visible,la)},va[ha.Focused]={enter:function(){window.clearTimeout(ba),ba=window.setTimeout((function(){Na({type:ma.Rest})}),100)},leave:function(){window.clearTimeout(ba)},on:(ca={},ca[ma.MouseMove]=ha.Focused,ca[ma.MouseLeave]=ha.Idle,ca[ma.MouseDown]=ha.Dismissed,ca[ma.Blur]=ha.Idle,ca[ma.Rest]=ha.Visible,ca)},va[ha.Visible]={on:(ua={},ua[ma.Focus]=ha.Focused,ua[ma.MouseEnter]=ha.Focused,ua[ma.MouseLeave]=ha.LeavingVisible,ua[ma.Blur]=ha.LeavingVisible,ua[ma.MouseDown]=ha.Dismissed,ua[ma.SelectWithKeyboard]=ha.Dismissed,ua[ma.GlobalMouseMove]=ha.LeavingVisible,ua)},va[ha.LeavingVisible]={enter:function(){window.clearTimeout(wa),wa=window.setTimeout((function(){return Na({type:ma.TimeComplete})}),500)},leave:function(){window.clearTimeout(wa),Da()},on:(fa={},fa[ma.MouseEnter]=ha.Visible,fa[ma.Focus]=ha.Visible,fa[ma.TimeComplete]=ha.Idle,fa)},va[ha.Dismissed]={leave:function(){Da()},on:(da={},da[ma.MouseLeave]=ha.Idle,da[ma.Blur]=ha.Idle,da)},va)},Ea={value:ka.initial,context:{id:null}},ya=[];function Da(){Ea.context.id=null}function Aa(e){var t=void 0===e?{}:e,n=t.id,a=t.onPointerEnter,i=t.onPointerMove,o=t.onPointerLeave,s=t.onPointerDown,l=t.onMouseEnter,c=t.onMouseMove,u=t.onMouseLeave,f=t.onMouseDown,d=t.onFocus,v=t.onBlur,h=t.onKeyDown,m=t.disabled,p=t.ref,_=t.DEBUG_STYLE,S=String(zn(n)),g=(0,r.useState)(!!_||Ra(S,!0)),b=g[0],w=g[1],k=(0,r.useRef)(null),E=Xn(p,k),y=ia(k,{observe:b});function D(e,r){return"undefined"!=typeof window&&"PointerEvent"in window?e:Gn(e,r)}function A(e){return function(r){"mouse"===r.pointerType&&e(r)}}function C(){Na({type:ma.MouseEnter,id:S})}function M(){Na({type:ma.MouseMove,id:S})}function x(){Na({type:ma.MouseLeave})}function T(){Ea.context.id===S&&Na({type:ma.MouseDown})}return(0,r.useEffect)((function(){return e=function(){w(Ra(S))},ya.push(e),function(){ya.splice(ya.indexOf(e),1)};var e}),[S]),(0,r.useEffect)((function(){var e=Bn(k.current);function r(e){"Escape"!==e.key&&"Esc"!==e.key||Ea.value!==ha.Visible||Na({type:ma.SelectWithKeyboard})}return e.addEventListener("keydown",r),function(){return e.removeEventListener("keydown",r)}}),[]),function(e){var t=e.disabled,n=e.isVisible,a=e.ref;(0,r.useEffect)((function(){if("undefined"!=typeof window&&"PointerEvent"in window&&t&&n){var e=Bn(a.current);return e.addEventListener("mousemove",r),function(){e.removeEventListener("mousemove",r)}}function r(e){n&&(e.target instanceof Element&&e.target.closest("[data-reach-tooltip-trigger][data-state='tooltip-visible']")||Na({type:ma.GlobalMouseMove}))}}),[t,n,a])}({disabled:m,isVisible:b,ref:k}),[{"aria-describedby":b?Vn("tooltip",S):void 0,"data-state":b?"tooltip-visible":"tooltip-hidden","data-reach-tooltip-trigger":"",ref:E,onPointerEnter:Gn(a,A(C)),onPointerMove:Gn(i,A(M)),onPointerLeave:Gn(o,A(x)),onPointerDown:Gn(s,A(T)),onMouseEnter:D(l,C),onMouseMove:D(c,M),onMouseLeave:D(u,x),onMouseDown:D(f,T),onFocus:Gn(d,(function(){window.__REACH_DISABLE_TOOLTIPS||Na({type:ma.Focus,id:S})})),onBlur:Gn(v,(function(){Ea.context.id===S&&Na({type:ma.Blur})})),onKeyDown:Gn(h,(function(e){"Enter"!==e.key&&" "!==e.key||Na({type:ma.SelectWithKeyboard})}))},{id:S,triggerRect:y,isVisible:b},b]}var Ca=(0,r.forwardRef)((function(e,t){var n=e.children,a=e.label,i=e.ariaLabel,o=e.id,s=e.DEBUG_STYLE,l=sa(e,pa),c=r.Children.only(n),u=Aa({id:o,onPointerEnter:c.props.onPointerEnter,onPointerMove:c.props.onPointerMove,onPointerLeave:c.props.onPointerLeave,onPointerDown:c.props.onPointerDown,onMouseEnter:c.props.onMouseEnter,onMouseMove:c.props.onMouseMove,onMouseLeave:c.props.onMouseLeave,onMouseDown:c.props.onMouseDown,onFocus:c.props.onFocus,onBlur:c.props.onBlur,onKeyDown:c.props.onKeyDown,disabled:c.props.disabled,ref:c.ref,DEBUG_STYLE:s}),f=u[0],d=u[1];return(0,r.createElement)(r.Fragment,null,(0,r.cloneElement)(c,f),(0,r.createElement)(Ma,oa({ref:t,label:a,"aria-label":i},d,l)))}));var Ma=(0,r.forwardRef)((function(e,t){var n=e.label,a=e.ariaLabel,i=e.isVisible,o=e.id,s=sa(e,_a);return i?(0,r.createElement)(Yn,null,(0,r.createElement)(xa,oa({ref:t,label:n,"aria-label":a,isVisible:i},s,{id:Vn("tooltip",String(o))}))):null}));var xa=(0,r.forwardRef)((function(e,t){var n=e.ariaLabel,a=e["aria-label"],i=e.as,o=void 0===i?"div":i,s=e.id,l=e.isVisible,c=e.label,u=e.position,f=void 0===u?Ha:u,d=e.style,v=e.triggerRect,h=sa(e,Sa),m=null!=(a||n),p=(0,r.useRef)(null),_=Xn(t,p),S=ia(p,{observe:l});return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(o,oa({role:m?void 0:"tooltip"},h,{ref:_,"data-reach-tooltip":"",id:m?void 0:s,style:oa({},d,Ta(f,v,S))}),c),m&&(0,r.createElement)(Zn,{role:"tooltip",id:s},a||n))}));function Ta(e,r,t){return!t?{visibility:"hidden"}:e(r,t)}var Ha=function(e,r,t){void 0===t&&(t=8);var n,a,i,o,s,l=(o=Bn(n),s=o.defaultView||window,o?{width:null!=(a=o.documentElement.clientWidth)?a:s.innerWidth,height:null!=(i=o.documentElement.clientHeight)?i:s.innerHeight}:{width:0,height:0}),c=l.width,u=l.height;if(!e||!r)return{};var f={top:e.top-r.height<0,right:c{const{theme:e,displayDensity:t,browserTheme:n}=(0,r.useContext)(jt);return(0,r.useMemo)((()=>({...Ht[t],...Ht["auto"===e?n:e]})),[e,n,t])};function Pa(){return Pa=Object.assign||function(e){for(var r=1;r{const a=Fa();return r.createElement(Ia,Pa({className:`${Oa} ${t}`,style:a},n),e)};function za({children:e,className:t="",isDisabled:n=!1,isChecked:a,onChange:i,testName:o,title:s}){let l;l=n?Rn.ToggleDisabled:a?Rn.ToggleOn:Rn.ToggleOff;const c=(0,r.useCallback)((()=>i(!a)),[a,i]);let u=r.createElement("button",{className:`${l} ${t}`,"data-testname":o,disabled:n,onClick:c},r.createElement("span",{className:Rn.ToggleContent,tabIndex:-1},e));return s&&(u=r.createElement(La,{label:s},u)),u}const Ba={Root:"sP6uS8ZOU4PkDlNU0AYK",ForgetToggle:"j3Lt3YqBHSwuvIVtnIxU"};function Va(e){const{className:t=""}=e,n=e.indexable?r.createElement(Nn,{displayName:"Memo",id:e.elementID}):"Memo";return r.createElement(za,{onChange:()=>{},className:Ba.ForgetToggle,title:"✨ This component has been auto-memoized by the React Compiler."},r.createElement(Mn,{className:`${Ba.Root} ${t}`},n))}const Ua={Root:"SjNrJ30jUO5kUSCsWh4c",ExtraLabel:"j9rH1DJ2jYY7I1tswNOx"};function Wa({compiledWithForget:e,hocDisplayNames:t,elementID:n,className:a=""}){return e||null!=t&&0!==t.length?r.createElement("div",{className:`${Ua.Root} ${a}`},e&&r.createElement(Va,{indexable:!0,elementID:n}),null!=t&&t.length>0&&r.createElement(Mn,null,r.createElement(Nn,{displayName:t[0],id:n})),null!=t&&t.length>1&&r.createElement("div",{className:Ua.ExtraLabel},"+",t.length-1)):null}function ja({data:e,index:t,style:n}){const a=(0,r.useContext)(mr),{ownerFlatTree:i,ownerID:o,selectedElementID:s}=(0,r.useContext)(it),l=(0,r.useContext)(ot),{showInlineWarningsAndErrors:c}=r.useContext(jt),u=null!==i?i[t]:a.getElementAtIndex(t),[f,d]=(0,r.useState)(!1),{isNavigatingWithKeyboard:v,onElementMouseEnter:h,treeFocused:m}=e,p=null===u?null:u.id,_=s===p,S=(0,r.useMemo)((()=>({getCurrentValue:()=>null===u?{errorCount:0,warningCount:0}:a.getErrorAndWarningCountForElementID(u.id),subscribe:e=>(a.addListener("mutated",e),()=>a.removeListener("mutated",e))})),[a,u]),{errorCount:g,warningCount:b}=zt(S);if(null==u)return console.warn(` Could not find element at index ${t}`),null;const{depth:w,displayName:k,hocDisplayNames:E,isStrictModeNonCompliant:y,key:D,compiledWithForget:A}=u,C=y&&0===w;let M=xn.Element;return _?M=m?xn.SelectedElement:xn.InactiveSelectedElement:f&&!v&&(M=xn.HoveredElement),r.createElement("div",{className:M,onMouseEnter:()=>{d(!0),null!==p&&h(p)},onMouseLeave:()=>{d(!1)},onMouseDown:({metaKey:e})=>{null!==p&&(Wt({event_name:"select-element",metadata:{source:"click-element"}}),l({type:"SELECT_ELEMENT_BY_ID",payload:e?null:p}))},onDoubleClick:()=>{null!==p&&l({type:"SELECT_OWNER",payload:p})},style:n,"data-testname":"ComponentTreeListItem","data-depth":w},r.createElement("div",{className:xn.Wrapper,style:{transform:`translateX(calc(${w} * var(--indentation-size)))`}},null===o&&r.createElement(Xa,{element:u,store:a}),r.createElement(Nn,{displayName:k,id:p}),D&&r.createElement(r.Fragment,null," ",r.createElement("span",{className:xn.KeyName},"key"),'="',r.createElement("span",{className:xn.KeyValue,title:D,onDoubleClick:e=>{e.stopPropagation(),e.preventDefault()}},D),'"'),r.createElement(Wa,{hocDisplayNames:E,compiledWithForget:A,elementID:p,className:xn.BadgesBlock}),c&&g>0&&r.createElement(ft,{type:"error",className:_&&m?xn.ErrorIconContrast:xn.ErrorIcon}),c&&b>0&&r.createElement(ft,{type:"warning",className:_&&m?xn.WarningIconContrast:xn.WarningIcon}),C&&r.createElement(ft,{className:_&&m?xn.StrictModeContrast:xn.StrictMode,title:"This component is not running in StrictMode.",type:"strict-mode-non-compliant"})))}const $a=e=>{e.preventDefault(),e.stopPropagation()};function Xa({element:e,store:t}){const{children:n,id:a,isCollapsed:i}=e;return 0===n.length?r.createElement("div",{className:xn.ExpandCollapseToggle}):r.createElement("div",{className:xn.ExpandCollapseToggle,onMouseDown:e=>{e.stopPropagation()},onClick:e=>{e.preventDefault(),e.stopPropagation(),t.toggleIsCollapsed(a,!i)},onDoubleClick:$a},r.createElement(Yt,{type:i?"collapsed":"expanded"}))}function Ga(){const[e,t]=(0,r.useState)(!1),n=(0,r.useContext)(hr),a=(0,r.useCallback)((e=>{t(e),e?(Wt({event_name:"inspect-element-button-clicked"}),n.send("startInspectingNative")):n.send("stopInspectingNative",!1)}),[n]);return(0,r.useEffect)((()=>{const e=()=>t(!1);return n.addListener("stopInspectingNative",e),()=>n.removeListener("stopInspectingNative",e)}),[n]),r.createElement(za,{onChange:a,isChecked:e,title:"Select an element in the page to inspect it"},r.createElement(Yt,{type:"search"}))}const Ka={Button:"MOeHyomWH2dTqysCu6Ii",ButtonContent:"Bqh_X7NE5GXewPWjYfHS"};function qa(){return qa=Object.assign||function(e){for(var r=1;r0&&r.createElement(Mn,null,t[0]),null!=t&&t.length>1&&r.createElement("div",{className:Qa.ExtraLabel},"+",t.length-1)):null}const Za=0,ei=1,ri=2;let ti;if("function"==typeof r.use)ti=function(e){return r.use(e)};else{if("object"!=typeof r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)throw new Error("react-cache: Unsupported React version");{const e=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;ti=function(r){const t=e.current;if(null===t)throw new Error("react-cache: read and preload may only be called from within a component's render. They are not supported in event handlers or lifecycle methods.");return t.readContext(r)}}}const ni=(0,r.createContext)(null),ai=new Map,ii=new Map;function oi(e){let r=ai.get(e);if(void 0===r){const t=ii.get(e);r=void 0!==t&&t.useWeakMap?new WeakMap:new Map,ai.set(e,r)}return r}function si(e,r,t,n){const a=oi(e),i=a.get(n);if(void 0===i){const e=r(t);e.then((e=>{if(i.status===Za){const r=i;r.status=ei,r.value=e}}),(e=>{if(i.status===Za){const r=i;r.status=ri,r.value=e}}));const i={status:Za,value:e};return a.set(n,i),i}return i}function li(e,r,t={}){const n={clear(){ai.delete(n)},invalidate(e){oi(n).delete(e)},read(t){ti(ni);const a=r(t),i=si(n,e,t,a);switch(i.status){case Za:throw i.value;case ei:return i.value;case ri:throw i.value;default:return}},preload(t){ti(ni);const a=r(t);si(n,e,t,a)},write(e,r){const t=oi(n),a={status:ei,value:r};t.set(e,a)}};return ii.set(n,t),n}const ci=(0,r.createContext)(null);ci.displayName="OwnersListContext";const ui=new WeakMap,fi=li((e=>{const r=ui.get(e);if(null!=r)return r.promise;let t=null;const n=new Promise((e=>{t=e}));return ui.set(e,{promise:n,resolveFn:t}),n}),(e=>e),{useWeakMap:!0});function di({children:e}){const t=(0,r.useContext)(hr),n=(0,r.useContext)(mr),{ownerID:a}=(0,r.useContext)(it),i=(0,r.useCallback)((e=>{const r=n.getElementByID(e);return null!==r?fi.read(r):null}),[n]);return(0,r.useEffect)((()=>{const e=e=>{const r=e.id,t=n.getElementByID(r);if(null!==t){const r=ui.get(t);null!=r&&(ui.delete(t),r.resolveFn(null===e.owners?null:e.owners.map(Oe)))}};return t.addListener("ownersList",e),()=>t.removeListener("ownersList",e)}),[t,n]),(0,r.useEffect)((()=>{if(null!==a){const e=n.getRendererIDForElement(a);null!==e&&t.send("getOwnersList",{id:a,rendererID:e})}return()=>{}}),[t,a,n]),r.createElement(ci.Provider,{value:i},e)}var vi=a(29),hi=a.n(vi);function mi(){return mi=Object.assign||function(e){for(var r=1;r=0||(a[t]=e[t]);return a}(e,pi),f=(0,r.useRef)(null),d=ia(f,{observe:!u.hidden}),v=ia(i,{observe:!u.hidden}),h=Xn(f,t);return function(e,t){var n=Bn(e.current);function a(e){"Tab"===e.key&&t.current&&0===hi()(t.current).length||("Tab"===e.key&&e.shiftKey?u(e)?f(e):d(e)?v(e):m(e)&&_():"Tab"===e.key&&(o()?s(e):l()?c(e):h(e)&&_()))}function i(){var r=hi()(n),a=r&&e.current?r.indexOf(e.current):-1,i=r&&r[a+1];return(!t.current||!t.current.contains(i||null))&&i}function o(){return!!e.current&&e.current===n.activeElement}function s(e){var r=t.current&&hi()(t.current);r&&r[0]&&(e.preventDefault(),r[0].focus())}function l(){if(!!t.current&&t.current.contains(n.activeElement||null)){var e=t.current&&hi()(t.current);return Boolean(e&&e[e.length-1]===n.activeElement)}return!1}function c(e){var r=i();r&&(e.preventDefault(),r.focus())}function u(e){if(e.shiftKey){var r=i();return e.target===r}}function f(e){var r=t.current&&hi()(t.current),n=r&&r[r.length-1];n&&(e.preventDefault(),n.focus())}function d(e){var r=t.current&&hi()(t.current);return!!r&&(0!==r.length&&e.target===r[0])}function v(r){var t;r.preventDefault(),null==(t=e.current)||t.focus()}function h(e){var r=t.current?hi()(n).filter((function(e){return!t.current.contains(e)})):null;return!!r&&e.target===r[r.length-1]}function m(e){return e.target===hi()(n)[0]}(0,r.useEffect)((function(){return n.addEventListener("keydown",a),function(){n.removeEventListener("keydown",a)}}),[]);var p=[];function _(){var e=t.current&&hi()(t.current);e&&(e.forEach((function(e){p.push([e,e.tabIndex]),e.tabIndex=-1})),n.addEventListener("focusin",S))}function S(){n.removeEventListener("focusin",S),p.forEach((function(e){var r=e[0],t=e[1];r.tabIndex=t}))}}(i,f),(0,r.createElement)(a,mi({"data-reach-popover":"",ref:h},u,{style:mi({position:"absolute"},gi.apply(void 0,[s,v,d].concat(c)),u.style)}))}));function gi(e,r,t){for(var n=arguments.length,a=new Array(n>3?n-3:0),i=3;i=0||(a[t]=e[t]);return a}(e,Ai);r&&i((function(e){var a;if(null!=t)return[].concat(e,[Di({},n,{element:r,index:t})]).sort((function(e,r){return e.index-r.index}));if(0===e.length)a=[Di({},n,{element:r,index:0})];else if(e.find((function(e){return e.element===r})))a=e;else{var i=e.findIndex((function(e){return!(!e.element||!r)&&Boolean(e.element.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_PRECEDING)})),o=Di({},n,{element:r,index:i});a=-1===i?[].concat(e,[o]):[].concat(e.slice(0,i),[o],e.slice(i))}return a.map((function(e,r){return Di({},e,{index:r})}))}))}),[]),s=(0,r.useCallback)((function(e){e&&i((function(r){return r.filter((function(r){return e!==r.element}))}))}),[]);return(0,r.createElement)(t.Provider,{value:(0,r.useMemo)((function(){return{descendants:a,registerDescendant:o,unregisterDescendant:s}}),[a,o,s])},n)}function xi(e){return"which"in e?3===e.which:"button"in e&&2===e.button}function Ti(e){var t=(0,r.useRef)(null);return(0,r.useEffect)((function(){t.current=e}),[e]),t.current}function Hi(e,r){if(null==e)return{};var t,n,a={},i=Object.keys(e);for(n=0;n=0||(a[t]=e[t]);return a}function Ni(){return Ni=Object.assign||function(e){for(var r=1;r8||t>8)&&(k.current=!0)}L||null==P||v||g({type:Wi,payload:{index:P,dropdownRef:b}})})),onFocus:Gn(h,(function(){k.current=!0,L||null==P||v||g({type:Wi,payload:{index:P}})})),onMouseUp:Gn(f,(function(e){xi(e.nativeEvent)||(k.current?a?R.current?R.current=!1:M.current&&M.current.click():v||B():k.current=!0)}))})}}function Qi(e){e.id;var t=e.onKeyDown,n=e.ref,a=Hi(e,Oi),i=to(),o=i.dispatch,s=i.triggerRef,l=i.dropdownRef,c=i.selectCallbacks,u=i.dropdownId,f=i.state,d=f.isExpanded,v=f.triggerId,h=f.selectionIndex,m=f.typeaheadQuery,p=no(),_=Xn(l,n);(0,r.useEffect)((function(){var e=function(e,r){void 0===r&&(r="");if(!r)return null;var t=e.find((function(e){var t,n,a;return!e.disabled&&(null==(t=e.element)||null==(n=t.dataset)||null==(a=n.valuetext)?void 0:a.toLowerCase().startsWith(r))}));return t?e.indexOf(t):null}(p,m);m&&null!=e&&o({type:Wi,payload:{index:e,dropdownRef:l}});var r=window.setTimeout((function(){return m&&o({type:Ui,payload:""})}),1e3);return function(){return window.clearTimeout(r)}}),[o,p,m,l]);var S=Ti(p.length),g=Ti(p[h]),b=Ti(h);(0,r.useEffect)((function(){h>p.length-1?o({type:Wi,payload:{index:p.length-1,dropdownRef:l}}):S!==p.length&&h>-1&&g&&b===h&&p[h]!==g&&o({type:Wi,payload:{index:p.findIndex((function(e){return e.key===(null==g?void 0:g.key)})),dropdownRef:l}})}),[l,o,p,S,g,b,h]);var w,k,E,y,D,A,C,M,x,T,H,N,R,I,O=Gn((function(e){var r=e.key;if(d)switch(r){case"Enter":case" ":var t=p.find((function(e){return e.index===h}));t&&!t.disabled&&(e.preventDefault(),t.isLink&&t.element?t.element.click():(eo(s.current),c.current[t.index]&&c.current[t.index](),o({type:Li})));break;case"Escape":eo(s.current),o({type:zi});break;case"Tab":e.preventDefault();break;default:if("string"==typeof r&&1===r.length){var n=m+r.toLowerCase();o({type:Ui,payload:n})}}}),(w=$i,k={currentIndex:h,orientation:"vertical",rotate:!1,filter:function(e){return!e.disabled},callback:function(e){o({type:Wi,payload:{index:e,dropdownRef:l}})},key:"index"},E=(0,r.useContext)(w).descendants,y=k.callback,D=k.currentIndex,A=k.filter,C=k.key,M=void 0===C?"index":C,x=k.orientation,T=void 0===x?"vertical":x,H=k.rotate,N=void 0===H||H,R=k.rtl,I=void 0!==R&&R,function(e){if(["ArrowDown","ArrowUp","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(e.key)){var r=null!=D?D:-1,t=A?E.filter(A):E;if(t.length){var n=t.findIndex((function(e){return e.index===D}));switch(e.key){case"ArrowDown":if("vertical"===T||"both"===T){e.preventDefault();var a=d();y("option"===M?a:a[M])}break;case"ArrowUp":if("vertical"===T||"both"===T){e.preventDefault();var i=v();y("option"===M?i:i[M])}break;case"ArrowLeft":if("horizontal"===T||"both"===T){e.preventDefault();var o=(I?d:v)();y("option"===M?o:o[M])}break;case"ArrowRight":if("horizontal"===T||"both"===T){e.preventDefault();var s=(I?v:d)();y("option"===M?s:s[M])}break;case"PageUp":e.preventDefault();var l=(e.ctrlKey?v:h)();y("option"===M?l:l[M]);break;case"Home":e.preventDefault();var c=h();y("option"===M?c:c[M]);break;case"PageDown":e.preventDefault();var u=(e.ctrlKey?d:m)();y("option"===M?u:u[M]);break;case"End":e.preventDefault();var f=m();y("option"===M?f:f[M])}}}function d(){return r===m().index?N?h():t[n]:t[(n+1)%t.length]}function v(){return r===h().index?N?m():t[n]:t[(n-1+t.length)%t.length]}function h(){return t[0]}function m(){return t[t.length-1]}}));return{data:{activeDescendant:Zi(h)||void 0,triggerId:v},props:Ni({tabIndex:-1},a,{ref:_,id:u,onKeyDown:Gn(t,O)})}}function Ji(e){var t=e.onBlur,n=e.portal,a=void 0===n||n,i=e.position,o=e.ref,s=Hi(e,Fi),l=to(),c=l.triggerRef,u=l.triggerClickedRef,f=l.dispatch,d=l.dropdownRef,v=l.popoverRef,h=l.state.isExpanded,m=Xn(v,o);return(0,r.useEffect)((function(){if(h){var e=Bn(v.current);return e.addEventListener("mousedown",r),function(){e.removeEventListener("mousedown",r)}}function r(e){var r,t;u.current?u.current=!1:(r=v.current,t=e.target,r&&r.contains(t)||f({type:zi}))}}),[u,c,f,d,v,h]),{data:{portal:a,position:i,targetRef:c,isExpanded:h},props:Ni({ref:m,hidden:!h,onBlur:Gn(t,(function(e){e.currentTarget.contains(e.relatedTarget)||f({type:zi})}))},s)}}function Zi(e){var t=(0,r.useContext)(Xi).dropdownId;return null!=e&&e>-1?Vn("option-"+e,t):void 0}function eo(e){e&&e.focus()}function ro(e,r){switch(void 0===r&&(r={}),r.type){case Li:case zi:return Ni({},e,{isExpanded:!1,selectionIndex:-1});case"OPEN_MENU_AT_FIRST_ITEM":return Ni({},e,{isExpanded:!0,selectionIndex:0});case Bi:return Ni({},e,{isExpanded:!0,selectionIndex:r.payload.index});case Vi:return Ni({},e,{isExpanded:!0,selectionIndex:-1});case Wi:var t=r.payload.dropdownRef,n=void 0===t?{current:null}:t;if(r.payload.index>=0&&r.payload.index!==e.selectionIndex){if(n.current){var a=Bn(n.current);n.current!==(null==a?void 0:a.activeElement)&&n.current.focus()}return Ni({},e,{selectionIndex:null!=r.payload.max?Math.min(Math.max(r.payload.index,0),r.payload.max):Math.max(r.payload.index,0)})}return e;case Pi:return Ni({},e,{selectionIndex:-1});case ji:return Ni({},e,{triggerId:r.payload});case Ui:return void 0!==r.payload?Ni({},e,{typeaheadQuery:r.payload}):e;default:return e}}function to(){return(0,r.useContext)(Xi)}function no(){return e=$i,(0,r.useContext)(e).descendants;var e}function ao(){return ao=Object.assign||function(e){for(var r=1;r=0||(a[t]=e[t]);return a}var oo=["as","id","children"],so=["as"],lo=["as"],co=["as"],uo=["as"],fo=["portal"],vo=["as"],ho=(0,r.forwardRef)((function(e,t){var n=e.as,a=void 0===n?r.Fragment:n,i=e.id,o=e.children,s=io(e,oo),l=(0,r.useMemo)((function(){try{return(0,Y.M2)((0,r.createElement)(a,null))}catch(e){return!1}}),[a])?{}:ao({ref:t,id:i,"data-reach-menu":""},s);return(0,r.createElement)(a,l,(0,r.createElement)(Ki,{id:i,children:o}))}));var mo=(0,r.forwardRef)((function(e,t){var n=e.as,a=void 0===n?"button":n,i=qi(ao({},io(e,so),{ref:t})),o=i.data,s=o.isExpanded,l=o.controls,c=i.props;return(0,r.createElement)(a,ao({"aria-expanded":!!s||void 0,"aria-haspopup":!0,"aria-controls":l},c,{"data-reach-menu-button":""}))}));var po=(0,r.forwardRef)((function(e,t){var n=e.as,a=void 0===n?"div":n,i=Yi(ao({},io(e,lo),{ref:t})),o=i.data.disabled,s=i.props;return(0,r.createElement)(a,ao({role:"menuitem"},s,{"aria-disabled":o||void 0,"data-reach-menu-item":""}))})),_o=(0,r.forwardRef)((function(e,t){var n=e.as,a=void 0===n?"div":n,i=io(e,co);return(0,r.createElement)(po,ao({},i,{ref:t,as:a}))}));var So=(0,r.forwardRef)((function(e,t){var n=e.as,a=void 0===n?"div":n,i=Qi(ao({},io(e,uo),{ref:t})),o=i.data,s=o.activeDescendant,l=o.triggerId,c=i.props;return(0,r.createElement)(a,ao({"aria-activedescendant":s,"aria-labelledby":l||void 0,role:"menu"},c,{"data-reach-menu-items":""}))}));var go=(0,r.forwardRef)((function(e,t){var n=e.portal,a=void 0===n||n,i=io(e,fo);return(0,r.createElement)(bo,{portal:a},(0,r.createElement)(So,ao({},i,{ref:t,"data-reach-menu-list":""})))}));var bo=(0,r.forwardRef)((function(e,t){var n=e.as,a=void 0===n?"div":n,i=Ji(ao({},io(e,vo),{ref:t})),o=i.data,s=o.portal,l=o.targetRef,c=o.position,u=i.props,f={"data-reach-menu-popover":""};return s?(0,r.createElement)(_i,ao({},u,f,{as:a,targetRef:l,position:c})):(0,r.createElement)(a,ao({},u,f))}));function wo(){return wo=Object.assign||function(e){for(var r=1;r{const n=Fa();return r.createElement(go,wo({style:n},t),e)},Eo={OwnerStack:"WHQXCIB889mhOibUlVw3",Component:"yUIRrL7yKCLaXF6ItcoI",Bar:"nhMZmmw7LxaMIBx6xoM8",VRule:"cUTK6f0z3ITKjeL2ol8i",MenuButton:"r2aVXzu4LAnDVb2tmbPW",MenuButtonContent:"oAO_XVma76tsNMmoxTxO",Modal:"juYKJGefcTFWuubhKPTL",NotInStore:"lyr9bhz0P7vmm4xPXrSw",BadgesBlock:"WcjXaYs8j6rLO0JwrTSp"};function yo(e,r){switch(r.type){case"UPDATE_OWNER_ID":const t=r.owners.findIndex((e=>e.id===r.ownerID));return{ownerID:r.ownerID,owners:r.owners,selectedIndex:t};case"UPDATE_SELECTED_INDEX":return{...e,selectedIndex:r.selectedIndex};default:throw new Error(`Invalid action "${r.type}"`)}}function Do(){const e=(0,r.useContext)(ci),{ownerID:t}=(0,r.useContext)(it),n=(0,r.useContext)(ot),[a,i]=(0,r.useReducer)(yo,{ownerID:null,owners:[],selectedIndex:0});if(null===t)i({type:"UPDATE_OWNER_ID",ownerID:null,owners:[]});else if(t!==a.ownerID){const r=a.owners.findIndex((e=>e.id===t))>=0;i({type:"UPDATE_OWNER_ID",ownerID:t,owners:r?a.owners:e(t)||[]})}const{owners:o,selectedIndex:s}=a,l=(0,r.useCallback)((e=>{if(null!==e){const r=o.indexOf(e);i({type:"UPDATE_SELECTED_INDEX",selectedIndex:r>=0?r:0}),n({type:"SELECT_OWNER",payload:e.id})}else i({type:"UPDATE_SELECTED_INDEX",selectedIndex:0}),n({type:"RESET_OWNER_STACK"})}),[o,n]),[c,u]=(0,r.useState)(0),f=(0,r.useRef)(null),d=function(e,t){const[n,a]=(0,r.useState)(!1);return(0,r.useLayoutEffect)((()=>{if(null===e.current)return()=>{};const r=e.current,n=Ot()((()=>a(r.clientWidth<=t)),100);n();const i=r.ownerDocument.defaultView;return i.addEventListener("resize",n),()=>i.removeEventListener("resize",n)}),[e,t]),n}(f,c),v=o[s];return(0,r.useLayoutEffect)((()=>{if(null===f.current||d)return()=>{};let e=0;for(let r=0;rr.createElement(Co,{key:t,owner:e,isSelected:t===s,selectOwner:l})))),r.createElement("div",{className:Eo.VRule}),r.createElement(Ya,{onClick:()=>l(null),title:"Back to tree view"},r.createElement(Yt,{type:"close"})))}function Ao({owners:e,selectOwner:t}){const n=(0,r.useContext)(mr),a=[];for(let i=e.length-1;i>=0;i--){const o=e[i],s=n.containsElement(o.id);a.push(r.createElement(_o,{key:o.id,className:`${Eo.Component} ${s?"":Eo.NotInStore}`,onSelect:()=>s?t(o):null},o.displayName,r.createElement(Ja,{hocDisplayNames:o.hocDisplayNames,compiledWithForget:o.compiledWithForget,className:Eo.BadgesBlock})))}return r.createElement(ho,null,r.createElement(mo,{className:Eo.MenuButton},r.createElement(La,{label:"Open elements dropdown"},r.createElement("span",{className:Eo.MenuButtonContent,tabIndex:-1},r.createElement(Yt,{type:"more"})))),r.createElement(ko,{className:Eo.Modal},a))}function Co({isSelected:e,owner:t,selectOwner:n}){const a=(0,r.useContext)(mr),{displayName:i,hocDisplayNames:o,compiledWithForget:s}=t,l=a.containsElement(t.id),c=(0,r.useCallback)((()=>{l&&n(t)}),[l,n,t]);return r.createElement(za,{className:`${Eo.Component} ${l?"":Eo.NotInStore}`,isChecked:e,onChange:c},i,r.createElement(Ja,{hocDisplayNames:o,compiledWithForget:s,className:Eo.BadgesBlock}))}function Mo({owners:e,selectedIndex:t,selectOwner:n}){const a=(0,r.useContext)(mr);if(t<=0)return null;const i=e[t-1],o=a.containsElement(i.id);return r.createElement(Ya,{className:o?void 0:Eo.NotInStore,onClick:()=>o?n(i):null,title:`Up to ${i.displayName||"owner"}`},r.createElement(Yt,{type:"previous"}))}const xo={SearchInput:"VMs1TFKbGygwf2rHPPkR",Input:"DIPlRR9ISDncbPNuOIrF",InputIcon:"Ti4BEBXnbAQp1lGUIsYx",IndexLabel:"yVLbSSc1CG5ZY60ChkxC",LeftVRule:"RO_9dALMy9pEJs_usl1_"};function To({goToNextResult:e,goToPreviousResult:t,placeholder:n,search:a,searchIndex:i,searchResultsCount:o,searchText:s,testName:l}){const c=(0,r.useRef)(null);return(0,r.useEffect)((()=>{if(null===c.current)return()=>{};const e=e=>{const{key:r,metaKey:t}=e;"f"===r&&t&&null!==c.current&&(c.current.focus(),e.preventDefault(),e.stopPropagation())},r=c.current.ownerDocument;return r.addEventListener("keydown",e),()=>r.removeEventListener("keydown",e)}),[]),r.createElement("div",{className:xo.SearchInput,"data-testname":l},r.createElement(ft,{className:xo.InputIcon,type:"search"}),r.createElement("input",{"data-testname":l?`${l}-Input`:void 0,className:xo.Input,onChange:({currentTarget:e})=>{a(e.value)},onKeyPress:({key:r,shiftKey:n})=>{"Enter"===r&&(n?t():e())},placeholder:n,ref:c,value:s}),!!s&&r.createElement(r.Fragment,null,r.createElement("span",{className:xo.IndexLabel,"data-testname":l?`${l}-ResultsCount`:void 0},Math.min(i+1,o)," |"," ",o),r.createElement("div",{className:xo.LeftVRule}),r.createElement(Ya,{"data-testname":l?`${l}-PreviousButton`:void 0,disabled:!s,onClick:t,title:r.createElement(r.Fragment,null,"Scroll to previous search result (",r.createElement("kbd",null,"Shift")," +"," ",r.createElement("kbd",null,"Enter"),")")},r.createElement(Yt,{type:"up"})),r.createElement(Ya,{"data-testname":l?`${l}-NextButton`:void 0,disabled:!s,onClick:e,title:r.createElement(r.Fragment,null,"Scroll to next search result (",r.createElement("kbd",null,"Enter"),")")},r.createElement(Yt,{type:"down"})),r.createElement(Ya,{"data-testname":l?`${l}-ResetButton`:void 0,disabled:!s,onClick:()=>a(""),title:"Reset search"},r.createElement(Yt,{type:"close"}))))}function Ho(e){const{searchIndex:t,searchResults:n,searchText:a}=(0,r.useContext)(it),i=(0,r.useContext)(ot);return r.createElement(To,{goToNextResult:()=>i({type:"GO_TO_NEXT_SEARCH_RESULT"}),goToPreviousResult:()=>i({type:"GO_TO_PREVIOUS_SEARCH_RESULT"}),placeholder:"Search (text or /regex/)",search:e=>i({type:"SET_SEARCH_TEXT",payload:e}),searchIndex:t,searchResultsCount:n.length,searchText:a,testName:"ComponentSearchInput"})}const No=(0,r.createContext)(null);function Ro({children:e}){const[t,n]=(0,r.useState)(!1),a=(0,r.useMemo)((()=>({isModalShowing:t,setIsModalShowing:n})),[t,n]);return r.createElement(No.Provider,{value:a},e)}function Io(){const{setIsModalShowing:e}=(0,r.useContext)(No),t=(0,r.useContext)(mr),{profilerStore:n}=t,a=(0,r.useCallback)((()=>e(!0)),[e]),i=zt((0,r.useMemo)((()=>({getCurrentValue:()=>n.isProfiling,subscribe:e=>(n.addListener("isProfiling",e),()=>n.removeListener("isProfiling",e))})),[n]));return r.createElement(Ya,{disabled:i,onClick:a,title:"View settings"},r.createElement(Yt,{type:"settings"}))}No.displayName="SettingsModalContext";const Oo=(0,r.createContext)(!1),Fo={Active:"kdV7QNZg7DoUYF_P3pHh",Inactive:"TUJK9x5GTxI9hMQD4CUP"};function Po(e){const{lineHeight:t}=(0,r.useContext)(jt),n=(0,r.useContext)(mr),a=(0,r.useContext)(Oo),{ownerID:i,selectedElementID:o}=(0,r.useContext)(it),s=(0,r.useMemo)((()=>({getCurrentValue:()=>{if(null===o||n.isInsideCollapsedSubTree(o))return null;const e=n.getElementByID(o);if(null===e||e.isCollapsed||0===e.children.length)return null;const r=n.getIndexOfElementID(e.children[0]);if(null===r)return null;let t=null,a=e;for(;null!==a;)if(a.isCollapsed||0===a.children.length)t=n.getIndexOfElementID(a.id),a=null;else{const e=a.children[a.children.length-1];a=n.getElementByID(e)}return null===t?null:{startIndex:r,stopIndex:t}},subscribe:e=>(n.addListener("mutated",e),()=>{n.removeListener("mutated",e)})})),[o,n]),l=zt(s);if(null!==i)return null;if(null===l)return null;const{startIndex:c,stopIndex:u}=l;return r.createElement("div",{className:a?Fo.Active:Fo.Inactive,style:{position:"absolute",top:c*t+"px",height:(u+1-c)*t+"px"}})}class Lo extends Error{constructor(e){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,Lo),this.name="TimeoutError"}}class zo extends Error{constructor(){super(),Error.captureStackTrace&&Error.captureStackTrace(this,zo),this.name="ElementPollingCancellationError"}}function Bo(e,r,t,n,a,i=!1){const o=Wo++,s=function(e,r,t,n,a=!1){return new Promise(((i,o)=>{const s=()=>{t.removeListener(r,u),t.removeListener("shutdown",l),a&&t.removeListener("pauseElementPolling",c),clearTimeout(d)},l=()=>{s(),o(new Error("Failed to inspect element. Try again or restart React DevTools."))},c=()=>{s(),o(new zo)},u=r=>{r.responseID===e&&(s(),i(r))},f=()=>{s(),o(new Lo(n))};t.addListener(r,u),t.addListener("shutdown",l),a&&t.addListener("pauseElementPolling",c);const d=setTimeout(f,Uo)}))}(o,"inspectedElement",e,`Timed out while inspecting element ${t}.`,i);return e.send("inspectElement",{forceFullData:r,id:t,path:n,rendererID:a,requestID:o}),s}let Vo=0;const Uo=1e4;let Wo=0;function jo(e,r){if(null!==e){const{cleaned:t,data:n,unserializable:a}=e;if(r){const{length:e}=r;if(e>0)return pe(n,t.map((r=>r.slice(e))),a.map((r=>r.slice(e))))}return pe(n,t,a)}return null}const $o={Tree:"eym3VHX8dLMdgKTfvKFp",List:"spkW6SBc8slOOEwsvkVe",InnerElementType:"q1EQ300j6SHomtf4uDLK",SearchInput:"lZrwozgZWn6U_97Og5BR",AutoSizerWrapper:"kEhyJm9EDBUWcHAFZeFI",VRule:"aJUb5cChORMbLRrbpgMQ",Loading:"EyQLmPex2HUhDtdv5CDj",IconAndCount:"KB_8VeUHgJzB_clWZEhK",ErrorIcon:"_azOr6JJwPNm7sFNMcjV",WarningIcon:"_cXcjlSefrLNRqBwgL4W",ZeroElementsNotice:"fPhx_IyaNqzzB8Ck0RCD",fadeIn:"zqTATXE0YEbpxHbarDOQ",Link:"Hx0OASUc_YUYAswWj_SN"},Xo=12;function Go(e){const t=(0,r.useContext)(ot),{numElements:n,ownerID:a,searchIndex:i,searchResults:o,selectedElementID:s,selectedElementIndex:l}=(0,r.useContext)(it),c=(0,r.useContext)(hr),u=(0,r.useContext)(mr),{hideSettings:f}=(0,r.useContext)(_r),[d,v]=(0,r.useState)(!1),{highlightNativeElement:h,clearHighlightNativeElement:m}=Bt(),p=(0,r.useRef)(null),_=(0,r.useRef)(null),[S,g]=(0,r.useState)(!1),{lineHeight:b,showInlineWarningsAndErrors:w}=(0,r.useContext)(jt),k=(0,r.useCallback)((e=>{null!=e&&null!==l&&e.scrollToItem(l,"smart")}),[l]);(0,r.useEffect)((()=>{function e(e){e&&null!==_.current&&(_.current.focus(),Wt({event_name:"select-element",metadata:{source:"inspector"}}))}return c.addListener("stopInspectingNative",e),()=>c.removeListener("stopInspectingNative",e)}),[c]);const E=(0,r.useRef)(null);(0,r.useEffect)((()=>{if(null===p.current)return()=>{};const e=e=>{if("INPUT"===e.target.tagName||e.defaultPrevented)return;let r;switch(e.key){case"ArrowDown":e.preventDefault(),e.altKey?t({type:"SELECT_NEXT_SIBLING_IN_TREE"}):t({type:"SELECT_NEXT_ELEMENT_IN_TREE"});break;case"ArrowLeft":e.preventDefault(),r=null!==s?u.getElementByID(s):null,null!==r&&(e.altKey?null!==r.ownerID&&t({type:"SELECT_OWNER_LIST_PREVIOUS_ELEMENT_IN_TREE"}):r.children.length>0&&!r.isCollapsed?u.toggleIsCollapsed(r.id,!0):t({type:"SELECT_PARENT_ELEMENT_IN_TREE"}));break;case"ArrowRight":e.preventDefault(),r=null!==s?u.getElementByID(s):null,null!==r&&(e.altKey?t({type:"SELECT_OWNER_LIST_NEXT_ELEMENT_IN_TREE"}):r.children.length>0&&r.isCollapsed?u.toggleIsCollapsed(r.id,!1):t({type:"SELECT_CHILD_ELEMENT_IN_TREE"}));break;case"ArrowUp":e.preventDefault(),e.altKey?t({type:"SELECT_PREVIOUS_SIBLING_IN_TREE"}):t({type:"SELECT_PREVIOUS_ELEMENT_IN_TREE"});break;default:return}v(!0)},r=p.current;return r.addEventListener("keydown",e),()=>{r.removeEventListener("keydown",e)}}),[t,s,u]);const y=(0,r.useCallback)((()=>g(!1)),[]),D=(0,r.useCallback)((()=>{g(!0),null===l&&n>0&&t({type:"SELECT_ELEMENT_AT_INDEX",payload:0})}),[t,n,l]),A=(0,r.useCallback)((e=>{switch(e.key){case"Enter":case" ":null!==s&&t({type:"SELECT_OWNER",payload:s})}}),[t,s]),C=(0,r.useRef)({searchIndex:i,searchResults:o});(0,r.useEffect)((()=>{let e=!1;C.current.searchIndex===i&&C.current.searchResults===o||(C.current.searchIndex=i,C.current.searchResults=o,e=!0),(d||e)&&(null!==s?h(s):m())}),[c,d,h,i,o,s]);const M=(0,r.useCallback)((e=>{d||h(e)}),[d,h]),x=(0,r.useCallback)((()=>{v(!1)}),[]),T=m,H=(0,r.useMemo)((()=>({numElements:n,isNavigatingWithKeyboard:d,onElementMouseEnter:M,lastScrolledIDRef:E,treeFocused:S})),[n,d,M,E,S]),N=(0,r.useCallback)((e=>u.getElementIDAtIndex(e)),[u]),R=r.useCallback((()=>{t({type:"SELECT_PREVIOUS_ELEMENT_WITH_ERROR_OR_WARNING_IN_TREE"})}),[]),I=r.useCallback((()=>{t({type:"SELECT_NEXT_ELEMENT_WITH_ERROR_OR_WARNING_IN_TREE"})}),[]),O=(0,r.useMemo)((()=>({getCurrentValue:()=>({errors:u.errorCount,warnings:u.warningCount}),subscribe:e=>(u.addListener("mutated",e),()=>u.removeListener("mutated",e))})),[u]),{errors:F,warnings:P}=zt(O),L=r.createElement("div",{className:$o.ZeroElementsNotice},r.createElement("p",null,"Loading React Element Tree..."),r.createElement("p",null,"If this seems stuck, please follow the"," ",r.createElement("a",{className:$o.Link,href:"https://github.com/facebook/react/blob/main/packages/react-devtools/README.md#the-react-tab-shows-no-components",target:"_blank"},"troubleshooting instructions"),"."));return r.createElement(Oo.Provider,{value:S},r.createElement("div",{className:$o.Tree,ref:p},r.createElement("div",{className:$o.SearchInput},u.supportsNativeInspection&&r.createElement(r.Fragment,null,r.createElement(Ga,null),r.createElement("div",{className:$o.VRule})),r.createElement(r.Suspense,{fallback:r.createElement(qo,null)},null!==a?r.createElement(Do,null):r.createElement(Ho,null)),w&&null===a&&(F>0||P>0)&&r.createElement(r.Fragment,null,r.createElement("div",{className:$o.VRule}),F>0&&r.createElement("div",{className:$o.IconAndCount},r.createElement(ft,{className:$o.ErrorIcon,type:"error"}),F),P>0&&r.createElement("div",{className:$o.IconAndCount},r.createElement(ft,{className:$o.WarningIcon,type:"warning"}),P),r.createElement(Ya,{onClick:R,title:"Scroll to previous error or warning"},r.createElement(Yt,{type:"up"})),r.createElement(Ya,{onClick:I,title:"Scroll to next error or warning"},r.createElement(Yt,{type:"down"})),r.createElement(Ya,{onClick:()=>{!function({bridge:e,store:r}){r.rootIDToRendererID.forEach((r=>{e.send("clearErrorsAndWarnings",{rendererID:r})}))}({bridge:c,store:u})},title:"Clear all errors and warnings"},r.createElement(Yt,{type:"clear"}))),!f&&r.createElement(r.Fragment,null,r.createElement("div",{className:$o.VRule}),r.createElement(Io,null))),0===n?L:r.createElement("div",{className:$o.AutoSizerWrapper,onBlur:y,onFocus:D,onKeyPress:A,onMouseMove:x,onMouseLeave:T,ref:_,tabIndex:0},r.createElement(Ar,null,(({height:e,width:t})=>r.createElement($r,{className:$o.List,height:e,innerElementType:Ko,itemCount:n,itemData:H,itemKey:N,itemSize:b,ref:k,width:t},ja))))))}function Ko({children:e,style:t}){const{ownerID:n}=(0,r.useContext)(it),a=(0,r.useMemo)((()=>new WeakMap),[]),i=(0,r.useRef)(Xo),o=(0,r.useRef)(0),s=(0,r.useRef)(n),l=(0,r.useRef)(null);return n!==s.current&&(s.current=n,i.current=Xo),(0,r.useEffect)((()=>{null!==l.current&&function(e,r,t,n){const a=e.parentElement,i=a.clientWidth;if(0===i)return;i>n.current&&(t.current=Xo),n.current=i;let o=t.current;for(const t of e.children){const e=parseInt(t.getAttribute("data-depth"),10)||0;let n=0;const a=r.get(t);if(null!=a)n=a;else{const{firstElementChild:e}=t;null!=e&&(n=e.clientWidth,r.set(t,n))}const s=Math.max(0,i-n);o=Math.min(o,s/e)}t.current=o,a.style.setProperty("--indentation-size",`${o}px`)}(l.current,a,i,o)})),r.createElement("div",{className:$o.InnerElementType,ref:l,style:t},r.createElement(Po,null),e)}function qo(){return r.createElement("div",{className:$o.Loading},"Loading...")}const Yo={GitHubLinkRow:"Jw1vKro1qyK08Kgi4lXQ",WorkplaceGroupRow:"OkQt7gez_5Zbv2tBz9YF",ErrorBoundary:"pobssL55b_qBkor0dyEw",ErrorInfo:"BMCPOZq6VTru3nezN1CN",HeaderRow:"bjCnYALBmWFWJRvlKnuR",ErrorHeader:"If9hSNFolZzI9zjxe3uB",TimeoutHeader:"X_tgW3kFmkwoAYI8Lurx",ErrorStack:"rdu6ANHP3wTLYuVNOjjy",TimeoutStack:"ONoWSLRXZt1O9VpA6ZNN",LoadingIcon:"t0mXgtmAtexoj3eNFSi2",ReportIcon:"hkM9y_1BmI1h9s2LJuEi",ReportLink:"BT7EiwHag0LPFdKGZRUA",FacebookOnly:"Z_Xw4ThFHcPmvHXpe8sP",ReproSteps:"Bppxr4Hl_IlmCJM_jAlw",UpdateExistingIssuePrompt:"plwu44QqkJ3Sazkvcuz6",CloseButton:"ujPGMsE_z9gPJoyVF1D_",CloseButtonIcon:"HMpcHV7bWRjXWHCZ3iDI",InfoBox:"drfHT3jZUSEYSS0XNYL_"};function Qo({callStack:e,children:t,componentStack:n,errorMessage:a}){return r.createElement("div",{className:Yo.ErrorBoundary},t,r.createElement("div",{className:Yo.ErrorInfo},r.createElement("div",{className:Yo.HeaderRow},r.createElement("div",{className:Yo.ErrorHeader},a||"Bridge protocol mismatch")),r.createElement("div",{className:Yo.InfoBox},"An incompatible version of ",r.createElement("code",null,"react-devtools-core")," has been embedded in a renderer like React Native. To fix this, update the"," ",r.createElement("code",null,"react-devtools-core")," package within the React Native application, or downgrade the ",r.createElement("code",null,"react-devtools")," package you use to open the DevTools UI."),!!e&&r.createElement("div",{className:Yo.ErrorStack},"The error was thrown ",e.trim())))}function Jo({callStack:e,children:t,componentStack:n,dismissError:a=null,errorMessage:i}){return r.createElement("div",{className:Yo.ErrorBoundary},t,r.createElement("div",{className:Yo.ErrorInfo},r.createElement("div",{className:Yo.HeaderRow},r.createElement("div",{className:Yo.ErrorHeader},"Uncaught Error: ",i||""),null!==a&&r.createElement(Ya,{className:Yo.CloseButton,onClick:a},"Dismiss",r.createElement(Yt,{className:Yo.CloseButtonIcon,type:"close"}))),!!e&&r.createElement("div",{className:Yo.ErrorStack},"The error was thrown ",e.trim()),!!n&&r.createElement("div",{className:Yo.ErrorStack},"The error occurred ",n.trim())))}const Zo={Icon:"p7QWUJGSatfPkY7Fxv1X"};function es({className:e=""}){return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:`${Zo.Icon} ${e}`,width:"24",height:"24",viewBox:"0 0 100 100"},r.createElement("path",{d:"M0 0h100v100H0z",fill:"none"}),r.createElement("circle",{fill:"currentColor",stroke:"none",cx:"20",cy:"50",r:"10"},r.createElement("animate",{attributeName:"opacity",dur:"1s",values:"0;1;0",repeatCount:"indefinite",begin:"0.1"})),r.createElement("circle",{fill:"currentColor",stroke:"none",cx:"50",cy:"50",r:"10"},r.createElement("animate",{attributeName:"opacity",dur:"1s",values:"0;1;0",repeatCount:"indefinite",begin:"0.2"})),r.createElement("circle",{fill:"currentColor",stroke:"none",cx:"80",cy:"50",r:"10"},r.createElement("animate",{attributeName:"opacity",dur:"1s",values:"0;1;0",repeatCount:"indefinite",begin:"0.3"})))}function rs(){return r.createElement("div",{className:Yo.GitHubLinkRow},r.createElement(es,{className:Yo.LoadingIcon}),"Searching GitHub for reports of this error...")}const ts="https://api.github.com/search/issues";function ns(e){e=e.replace(/"[0-9]+"/g,"");return ts+"?q="+encodeURIComponent(e)+"%20"+["in:title","is:issue","is:open","is:public",'label:"Component: Developer Tools"',"repo:facebook/react"].map(encodeURIComponent).join("%20")}const as=3e3,is=0,os=1,ss=2;function ls(){return new Map}function cs(e){e=function(e){return e=e.replace(/"[0-9]+"/,""),e}(e);const t=(0,r.unstable_getCacheForType)(ls);let n=t.get(e);if(!n){const r=new Set,a=()=>{r.forEach((e=>e())),r.clear()},i=n={status:is,value:{then(e){r.add(e)},displayName:`Searching GitHub issues for error "${e}"`}};let o=!1;(async function(e){const r=await fetch(ns(e)),t=await r.json();if(t.items.length>0){const e=t.items[0];return{title:e.title,url:e.html_url}}return null})(e).then((e=>{if(!o){if(e){const r=i;r.status=os,r.value=e}else{const e=i;e.status=ss,e.value=null}a()}})).catch((e=>{const r=i;r.status=ss,r.value=null,a()})),setTimeout((()=>{o=!0;const e=i;e.status=ss,e.value=null,a()}),as),t.set(e,n)}const a=function(e){if(e.status===os)return e;if(e.status===ss)return e;throw e.value}(n).value;return a}function us({gitHubIssue:e}){const{title:t,url:n}=e;return r.createElement("div",{className:Yo.GitHubLinkRow},r.createElement(ft,{className:Yo.ReportIcon,type:"bug"}),r.createElement("div",{className:Yo.UpdateExistingIssuePrompt},"Update existing issue:"),r.createElement("a",{className:Yo.ReportLink,href:n,rel:"noopener noreferrer",target:"_blank",title:"Report bug"},t))}const fs=["Component: Developer Tools","Type: Bug","Status: Unconfirmed"],ds="devtools_bug_report.yml";function vs({callStack:e,componentStack:t,errorMessage:n}){let a="https://github.com/facebook/react";if(!a)return null;const i=null!==n?ns(n):"(none)",o=`[DevTools Bug] ${n||""}`;return a+=`/issues/new?${[`template=${ds}`,`labels=${encodeURIComponent(fs.join(","))}`,`title=${encodeURIComponent(o)}`,"automated_package=react-devtools-fusebox","automated_version=5.2.0-827cbea417",`automated_error_message=${encodeURIComponent(n||"")}`,`automated_call_stack=${encodeURIComponent(e||"")}`,`automated_component_stack=${encodeURIComponent(t||"")}`,`automated_github_query_string=${i}`].join("&")}`,r.createElement("div",{className:Yo.GitHubLinkRow},r.createElement(ft,{className:Yo.ReportIcon,type:"bug"}),r.createElement("a",{className:Yo.ReportLink,href:a,rel:"noopener noreferrer",target:"_blank",title:"Report bug"},"Report this issue"),r.createElement("div",{className:Yo.ReproSteps},"(Please include steps on how to reproduce it and the components used.)"))}function hs(){return Ut?r.createElement("div",{className:Yo.WorkplaceGroupRow},r.createElement(ft,{className:Yo.ReportIcon,type:"facebook"}),r.createElement("a",{className:Yo.ReportLink,href:Tt,rel:"noopener noreferrer",target:"_blank",title:"Report bug"},"Report this on Workplace"),r.createElement("div",{className:Yo.FacebookOnly},"(Facebook employees only.)")):null}function ms({callStack:e,componentStack:t,errorMessage:n}){const a=null!==n?cs(n):null;let i;return i=null!=a?r.createElement(us,{gitHubIssue:a}):r.createElement(vs,{callStack:e,componentStack:t,errorMessage:n}),r.createElement(r.Fragment,null,i,r.createElement(hs,null))}function ps({callStack:e,children:t,componentStack:n,dismissError:a=null,errorMessage:i}){return r.createElement("div",{className:Yo.ErrorBoundary},t,r.createElement("div",{className:Yo.ErrorInfo},r.createElement("div",{className:Yo.HeaderRow},r.createElement("div",{className:Yo.TimeoutHeader},i||"Timed out waiting"),r.createElement(Ya,{className:Yo.CloseButton,onClick:a},"Retry",r.createElement(Yt,{className:Yo.CloseButtonIcon,type:"close"}))),!!n&&r.createElement("div",{className:Yo.TimeoutStack},"The timeout occurred ",n.trim())))}function _s({callStack:e,children:t,info:n,componentStack:a,errorMessage:i}){return r.createElement("div",{className:Yo.ErrorBoundary},t,r.createElement("div",{className:Yo.ErrorInfo},r.createElement("div",{className:Yo.HeaderRow},r.createElement("div",{className:Yo.ErrorHeader},i)),!!n&&r.createElement("div",{className:Yo.InfoBox},n),!!e&&r.createElement("div",{className:Yo.ErrorStack},"The error was thrown ",e.trim())))}class Ss extends Error{constructor(e){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,Ss),this.name="UserError"}}class gs extends Error{constructor(e){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,gs),this.name="UnknownHookError"}}function bs(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}const ws={callStack:null,canDismiss:!1,componentStack:null,errorMessage:null,hasError:!1,isUnsupportedBridgeOperationError:!1,isTimeout:!1,isUserError:!1,isUnknownHookError:!1};class ks extends r.Component{constructor(...e){super(...e),bs(this,"state",ws),bs(this,"_logError",((e,r)=>{Wt({event_name:"error",error_message:e.message??null,error_stack:e.stack??null,error_component_stack:r??null})})),bs(this,"_dismissError",(()=>{const e=this.props.onBeforeDismissCallback;"function"==typeof e&&e(),this.setState(ws)})),bs(this,"_onStoreError",(e=>{this.state.hasError||(this._logError(e,null),this.setState({...ks.getDerivedStateFromError(e),canDismiss:!0}))}))}static getDerivedStateFromError(e){const r="object"==typeof e&&null!==e&&"string"==typeof e.message?e.message:null,t=e instanceof Lo,n=e instanceof Ss,a=e instanceof gs,i=e instanceof lr;return{callStack:"object"==typeof e&&null!==e&&"string"==typeof e.stack?e.stack.split("\n").slice(1).join("\n"):null,errorMessage:r,hasError:!0,isUnsupportedBridgeOperationError:i,isUnknownHookError:a,isTimeout:t,isUserError:n}}componentDidCatch(e,{componentStack:r}){this._logError(e,r),this.setState({componentStack:r})}componentDidMount(){const{store:e}=this.props;null!=e&&e.addListener("error",this._onStoreError)}componentWillUnmount(){const{store:e}=this.props;null!=e&&e.removeListener("error",this._onStoreError)}render(){const{canDismiss:e,children:t}=this.props,{callStack:n,canDismiss:a,componentStack:i,errorMessage:o,hasError:s,isUnsupportedBridgeOperationError:l,isTimeout:c,isUserError:u,isUnknownHookError:f}=this.state;return s?c?r.createElement(ps,{callStack:n,componentStack:i,dismissError:e||a?this._dismissError:null,errorMessage:o}):l?r.createElement(Qo,{callStack:n,componentStack:i,errorMessage:o}):u?r.createElement(_s,{callStack:n,componentStack:i,errorMessage:o||"Error occured in inspected element",info:r.createElement(r.Fragment,null,"React DevTools encountered an error while trying to inspect the hooks. This is most likely caused by a developer error in the currently inspected element. Please see your console for logged error.")}):f?r.createElement(_s,{callStack:n,componentStack:i,errorMessage:o||"Encountered an unknown hook",info:r.createElement(r.Fragment,null,"React DevTools encountered an unknown hook. This is probably because the react-debug-tools package is out of date. To fix, upgrade the React DevTools to the most recent version.")}):r.createElement(Jo,{callStack:n,componentStack:i,dismissError:e||a?this._dismissError:null,errorMessage:o},r.createElement(r.Suspense,{fallback:r.createElement(rs,null)},r.createElement(ms,{callStack:n,componentStack:i,errorMessage:o}))):t}}const Es=ks;function ys({children:e}){const t=Fa(),n=r.useMemo((()=>({...t,width:"100%",height:"100%"})),[t]);return r.createElement("div",{style:n},e)}function Ds(e){return function({portalContainer:t,...n}){const a=(0,r.useContext)(mr);let i=r.createElement(Es,{store:a},r.createElement(e,n));return null!=t&&(i=r.createElement(ys,null,r.createElement("div",{"data-react-devtools-portal-root":!0,style:{width:"100vw",height:"100vh"}},i))),null!=t?(0,qn.createPortal)(i,t):i}}const As=new(q())({max:25});function Cs(e,r,t,n,a=!1){const{id:i}=r;return Bo(e,!As.has(i),i,t,n,a).then((e=>{const{type:r}=e;let n;switch(r){case"error":{const{message:r,stack:t,errorType:n}=e;let a;throw a="user"===n?new Ss(r):"unknown-hook"===n?new gs(r):new Error(r),a.stack=t||a.stack,a}case"no-change":if(n=As.get(i),null!=n)return[n,r];throw Error(`Cached data for element "${i}" not found`);case"not-found":throw As.del(i),Error(`Element "${i}" not found`);case"full-data":return n=function(e){const{canEditFunctionProps:r,canEditFunctionPropsDeletePaths:t,canEditFunctionPropsRenamePaths:n,canEditHooks:a,canEditHooksAndDeletePaths:i,canEditHooksAndRenamePaths:o,canToggleError:s,isErrored:l,targetErrorBoundaryID:c,canToggleSuspense:u,canViewSource:f,hasLegacyContext:d,id:v,type:h,owners:m,source:p,context:_,hooks:S,plugins:g,props:b,rendererPackageName:w,rendererVersion:k,rootType:E,state:y,key:D,errors:A,warnings:C}=e;return{canEditFunctionProps:r,canEditFunctionPropsDeletePaths:t,canEditFunctionPropsRenamePaths:n,canEditHooks:a,canEditHooksAndDeletePaths:i,canEditHooksAndRenamePaths:o,canToggleError:s,isErrored:l,targetErrorBoundaryID:c,canToggleSuspense:u,canViewSource:f,hasLegacyContext:d,id:v,key:D,plugins:g,rendererPackageName:w,rendererVersion:k,rootType:E,source:p&&p.sourceURL?p:null,type:h,owners:null===m?null:m.map(Oe),context:jo(_),hooks:jo(S),props:jo(b),state:jo(y),errors:A,warnings:C}}(e.value),As.set(i,n),[n,r];case"hydrated-path":const a=e,{value:o}=a;if(n=As.get(i)||null,null!==n)return n={...n},null!=t&&me(n,o,t,jo(o,t)),As.set(i,n),[n,r]}throw Error(`Unable to inspect element with id "${i}"`)}))}const Ms=0,xs=1,Ts=2;function Hs(){return new WeakMap}function Ns(e,t,n,a){const i=(0,r.unstable_getCacheForType)(Hs);let o=i.get(e);if(!o){const r=new Set,s={then(e){r.add(e)},displayName:`Inspecting ${e.displayName||"Unknown"}`},l=()=>{r.forEach((e=>e())),r.clear()},c=o={status:Ms,value:s},u=n.getRendererIDForElement(e.id);if(null==u){const r=c;return r.status=Ts,r.value=new Error(`Could not inspect element with id "${e.id}". No renderer found.`),i.set(e,o),null}Cs(a,e,t,u).then((([e])=>{const r=c;r.status=xs,r.value=e,l()}),(e=>{console.error(e);const r=c;r.status=Ts,r.value=e,l()})),i.set(e,o)}const s=function(e){if(e.status===xs)return e;throw e.value}(o).value;return s}function Rs({bridge:e,element:t,refresh:n,store:a}){const{id:i}=t,o=a.getRendererIDForElement(i);if(null!=o)return Cs(e,t,null,o,!0).then((([e,a])=>{"full-data"===a&&(0,r.startTransition)((()=>{const[r,a]=function(e,r){const t={status:xs,value:r},n=Hs();return n.set(e,t),[Hs,n]}(t,e);n(r,a)}))}))}const Is={Wrapper:"VaoI4BlPGgwJwhOCRtsD"};function Os({children:e}){const{selectedElementID:t}=(0,r.useContext)(it),n=(0,r.unstable_useCacheRefresh)(),a=(0,r.useCallback)((()=>{!function(e){(0,r.startTransition)((()=>{const r=Hs();e(Hs,r)}))}(n)}),[n]);return r.createElement("div",{className:Is.Wrapper},r.createElement(Es,{key:t,canDismiss:!0,onBeforeDismissCallback:a},e))}const Fs={Background:"PFpmDOwgyV41JdBnRz9Z",Dialog:"WAQNM1ZU8dHWiSzemaQm",Title:"FCX_167XYnlhwfNuLzWn",Buttons:"GYUAYcxRXmi3HpeXVySA",Button:"eGn4soiHkWtcMEAhslki"},Ps=(0,r.createContext)(null);function Ls(e,r){switch(r.type){case"HIDE":return{dialogs:e.dialogs.filter((e=>e.id!==r.id))};case"SHOW":return{dialogs:[...e.dialogs,{canBeDismissed:!1!==r.canBeDismissed,content:r.content,id:r.id,title:r.title||null}]};default:throw new Error(`Invalid action "${r.type}"`)}}function zs({children:e}){const[t,n]=(0,r.useReducer)(Ls,{dialogs:[]}),a=(0,r.useMemo)((()=>({dialogs:t.dialogs,dispatch:n})),[t,n]);return r.createElement(Ps.Provider,{value:a},e)}function Bs(e){const{dialogs:t,dispatch:n}=(0,r.useContext)(Ps);return 0===t.length?null:r.createElement("div",{className:Fs.Background},t.map((e=>r.createElement(Vs,{key:e.id,canBeDismissed:e.canBeDismissed,content:e.content,dispatch:n,id:e.id,title:e.title}))))}function Vs({canBeDismissed:e,content:t,dispatch:n,id:a,title:i}){const o=(0,r.useCallback)((()=>{e&&n({type:"HIDE",id:a})}),[e,n]),s=(0,r.useRef)(null);Lt(s,o,!1);return r.createElement("div",{ref:s,className:Fs.Dialog,onClick:e=>{e.stopPropagation()}},null!==i&&r.createElement("div",{className:Fs.Title},i),t,e&&r.createElement("div",{className:Fs.Buttons},r.createElement(Ya,{autoFocus:!0,className:Fs.Button,onClick:o},"Okay")))}function Us(){return!!(0,r.useContext)(mr).componentFilters.find((e=>e.type===j&&e.value===W&&e.isEnabled))?r.createElement("div",null,"Suspended state cannot be toggled while Suspense components are hidden. Disable the filter and try again."):r.createElement("div",null,"The selected element is not within a Suspense container. Suspending it would cause an error.")}Ps.displayName="ModalDialogContext";const Ws={Root:"eKXhn2sbXs1thQ1xt1b6"};function js({hocDisplayNames:e,compiledWithForget:t}){return t||null!=e&&0!==e.length?r.createElement("div",{className:Ws.Root},t&&r.createElement(Va,{indexable:!1}),null!==e&&e.map((e=>r.createElement(Mn,{key:e},e)))):null}const $s={Input:"hL22yQCjQzU4O_pjtwuf"};function Xs(){return Xs=Object.assign||function(e){for(var r=1;r{const r=e.target;null!==r&&(r.selectionStart=0,r.selectionEnd=i.length),"function"==typeof t&&t(e)},placeholder:n,style:{width:`calc(${s?n.length:i.length}ch + 1px)`},value:s?"":i},o))}const Ks={Input:"HPF7_KiXXen5Qvttf5jQ"};function qs({allowEmpty:e=!1,allowWhiteSpace:t=!1,autoFocus:n=!1,className:a="",initialValue:i="",overrideName:o,path:s,type:l}){const[c,u]=(0,r.useState)(i),[f,d]=(0,r.useState)(!1),v=(0,r.useCallback)((({target:r})=>{let n=r.value;t||(n=n.trim()),d(!(!e&&""===n)),u(n)}),[o]),h=(0,r.useCallback)((e=>{switch(e.stopPropagation(),e.key){case"Enter":case"Tab":if(f){const e=s.slice(0,s.length-1);o([...e,i],[...e,c])}break;case"Escape":u(i)}}),[c,u,f,i,o]);return r.createElement(Gs,{autoFocus:n,className:[Ks.Input,a].join(" "),onChange:v,onKeyDown:h,placeholder:"new entry",testName:"EditableName",type:"text",value:c})}const Ys={Checkbox:"WqT8rJzZBGSUJHMBA9Tx",Input:"OOzAmP7gDhP65LH4K2s6",Invalid:"y1WpuFCfhxR1kOosMGBp"};function Qs({className:e="",overrideValue:t,path:n,value:a}){const[i,o]=function(e){const[t,n]=(0,r.useReducer)(Ft,{editableValue:Ue(e),externalValue:e,hasPendingChanges:!1,isValid:!0,parsedValue:e});return Object.is(t.externalValue,e)||(t.hasPendingChanges?n({type:"UPDATE",editableValue:t.editableValue,externalValue:e}):n({type:"RESET",externalValue:e})),[t,n]}(a),{editableValue:s,hasPendingChanges:l,isValid:c,parsedValue:u}=i,f=()=>{c&&l&&t(n,u)};let d="";d=void 0===s?"(undefined)":"Enter valid JSON";const v=!0===u||!1===u;return r.createElement(r.Fragment,null,r.createElement("input",{autoComplete:"new-password",className:`${c?Ys.Input:Ys.Invalid} ${e}`,"data-testname":"EditableValue",onBlur:f,onChange:({target:e})=>o({type:"UPDATE",editableValue:e.value,externalValue:a}),onKeyDown:e=>{switch(e.stopPropagation(),e.key){case"Enter":f();break;case"Escape":o({type:"RESET",externalValue:a})}},placeholder:d,type:"text",value:s}),v&&r.createElement("input",{className:Ys.Checkbox,checked:u,type:"checkbox",onChange:({target:e})=>{o({type:"UPDATE",editableValue:e.checked,externalValue:a}),t(n,e.checked)}}))}function Js(e){let r=0;for(let t=0;t0,className:[Zs.EditableName,d&&Zs.Invalid].join(" "),initialValue:"",overrideName:(r,t)=>{const n=t[t.length-1];let h,m=!0;try{h=Ve(n),m=!1}catch(e){}if(d!==m&&v(m),!m){f(u+1);const{id:r}=o,t=l.getRendererIDForElement(r);if(null!==t){let n=s;null!=a&&(n=Js(n)),e.send("overrideValueAtPath",{type:c,hookID:a,id:r,path:[...n,i],rendererID:t,value:h})}}},path:s})))}const rl={NewKeyValue:"UzMVso49lBzxLL1HjInq",EditableName:"PaA9USRcdHeCV9WiBbyS",EditableValue:"Pb3Nu0F3u7sIozsGv8uZ"};function tl({bridge:e,depth:t,hidden:n,hookID:a,inspectedElement:i,path:o,store:s,type:l}){const[c,u]=(0,r.useState)(0),[f,d]=(0,r.useState)("");return r.createElement("div",{"data-testname":"NewKeyValue",key:c,hidden:n,style:{paddingLeft:.75*(t-1)+"rem"}},r.createElement("div",{className:rl.NewKeyValue},r.createElement(qs,{autoFocus:c>0,className:rl.EditableName,overrideName:(e,r)=>{d(r[r.length-1])},path:[]}),": ",r.createElement(Qs,{className:rl.EditableValue,overrideValue:(r,t)=>{if(!f)return;d(""),u(c+1);const{id:n}=i,o=s.getRendererIDForElement(n);if(null!==o){let i=r;null!=a&&(i=Js(i)),e.send("overrideValueAtPath",{type:l,hookID:a,id:n,path:i,rendererID:o,value:t})}},path:[...o,f],value:""})))}const nl={ExpandCollapseToggle:"j6QZWx6K5z35fz2Growk"};function al({disabled:e,isOpen:t,setIsOpen:n}){return r.createElement(Ya,{className:nl.ExpandCollapseToggle,disabled:e,onClick:()=>n((e=>!e)),title:(t?"Collapse":"Expand")+" prop value"},r.createElement(Yt,{type:t?"expanded":"collapsed"}))}const il={Item:"ZscuKd4JSHrHyo1Oh3Wp",Name:"G9s7nMRxj2l1XUUhn0Pl",EditableName:"qUQ5ooYij_68DtCFL535",AfterName:"VJhTyYOqjANsOJsHvfPg",Value:"RSM9HPTOPas5xWSc9s1C",Link:"rm6VrdRUsB9aSPSGSD8Y",ExpandCollapseToggleSpacer:"hOboECmgQcJF9U5FRRjW",DeleteArrayItemButton:"DJ7rUAWzmhVRtbYkt9bg",HookName:"YOB3sdCfSr_qYyMcvl9Z"},ol="undefined"!=typeof performance&&"function"==typeof performance.mark&&"function"==typeof performance.clearMarks,sl="undefined"!=typeof performance&&"function"==typeof performance.now;function ll(e){ol&&performance.mark(e+"-start")}function cl(e){ol&&(performance.mark(e+"-end"),performance.measure(e,e+"-start",e+"-end"),performance.clearMarks(e+"-start"),performance.clearMarks(e+"-end"))}function ul(){return sl?performance.now():Date.now()}const fl=3e4,dl=0,vl=1,hl=2;let ml=new WeakMap;function pl(e,r,t,n){let a=ml.get(e);if(v&&(console.groupCollapsed("loadHookNames() record:"),console.log(a),console.groupEnd()),!a){const i=new Set,o={then(e){i.add(e)},displayName:`Loading hook names for ${e.displayName||"Unknown"}`};let s,l=!1,c="unknown",u=null;const f=()=>{s&&(clearTimeout(s),s=null),i.forEach((e=>e())),i.clear()},d=a={status:dl,value:o};!function(e,r,t){const n=ul();h&&ll(e),r((()=>{if(h&&cl(e),null!=t){const e=ul()-n;t(e)}}))}("loadHookNames",(e=>{t(r,n).then((function(r){if(!l){if(v&&console.log("[hookNamesCache] onSuccess() hookNames:",r),r){const e=d;e.status=vl,e.value=r}else{const e=d;e.status=hl,e.value=null}c="success",u=r,e(),f()}}),(function(r){if(l)return;v&&console.log("[hookNamesCache] onError()"),console.error(r);const t=d;t.status=hl,t.value=null,c="error",e(),f()})),s=setTimeout((function(){v&&console.log("[hookNamesCache] onTimeout()"),s=null,l=!0;const r=d;r.status=hl,r.value=null,c="timeout",e(),f()}),fl)}),(r=>{Wt({event_name:"load-hook-names",event_status:c,duration_ms:r,inspected_element_display_name:e.displayName,inspected_element_number_of_hooks:u?.size??null})})),ml.set(e,a)}const i=function(e){if(e.status===vl)return e;if(e.status===hl)return e;throw e.value}(a).value;return i}const _l=3e4,Sl=0,gl=1,bl=2,wl=new Map;function kl(e){let r=wl.get(e);if(v&&console.log(`[dynamicImportCache] loadModule("${e.name}")`),!r){const t=new Set,n={then(e){t.add(e)},displayName:`Loading module "${e.name}"`},a=()=>{s&&(clearTimeout(s),s=null),t.forEach((e=>e())),t.clear()},i=r={status:Sl,value:n};let o=!1;e().then((r=>{if(v&&console.log(`[dynamicImportCache] loadModule("${e.name}") then()`),o)return;const t=i;t.status=gl,t.value=r,a()}),(r=>{if(v&&console.log(`[dynamicImportCache] loadModule("${e.name}") catch()`),o)return;console.log(r);const t=i;t.status=bl,t.value=null,a()}));let s=setTimeout((function(){v&&console.log(`[dynamicImportCache] loadModule("${e.name}") onTimeout()`),s=null,o=!0;const r=i;r.status=bl,r.value=null,a()}),_l);wl.set(e,r)}const t=function(e){if(e.status===gl)return e;if(e.status===bl)return e;throw e.value}(r).value;return t}const El=(0,r.createContext)(null);El.displayName="FetchFileWithCachingContext";const yl=El,Dl=(0,r.createContext)(null);Dl.displayName="HookNamesModuleLoaderContext";const Al=Dl,Cl=(0,r.createContext)(null);function Ml({children:e}){const{selectedElementID:t}=(0,r.useContext)(it),n=(0,r.useContext)(yl),a=(0,r.useContext)(hr),i=(0,r.useContext)(mr),{parseHookNames:o}=(0,r.useContext)(jt),s=(0,r.useContext)(Al),l=(0,r.unstable_useCacheRefresh)(),[c,u]=(0,r.useState)({element:null,path:null}),f=null!==t?i.getElementByID(t):null,d=null!=f&&function(e){const r=ml.get(e);return null!=r&&r.status===vl}(f),[v,h]=(0,r.useState)(o||d),[m,p]=(0,r.useState)(!0),_=null!==f&&f!==c.element;_&&(u({element:f,path:null}),h(o||d));const S=(0,r.useRef)(null);let g=null,b=null;if(!_&&null!==f&&(b=Ns(f,c.path,i,a),"function"==typeof s&&(v||d))){const e=kl(s);if(null!==e){const{parseHookNames:r,purgeCachedMetadata:t}=e;S.current=t,null!==b&&null!==b.hooks&&null!==r&&(g=pl(f,b.hooks,r,n))}}const w=(0,r.useCallback)((()=>{(0,r.startTransition)((()=>{h((e=>!e)),l()}))}),[h]),k=(0,r.useCallback)((e=>{(0,r.startTransition)((()=>{u({element:c.element,path:e}),l()}))}),[u,c]);(0,r.useEffect)((()=>{const e=S.current;if("function"==typeof e){const t=()=>{(0,r.startTransition)((()=>{ml=new WeakMap,e(),l()}))};return a.addListener("fastRefreshScheduled",t),()=>a.removeListener("fastRefreshScheduled",t)}}),[a]),(0,r.useEffect)((()=>{null!==c.path&&u({element:c.element,path:null})}),[c]),(0,r.useEffect)((()=>{p(!0);const e=()=>p(!1);return a.addListener("shutdown",e),()=>a.removeListener("shutdown",e)}),[a]),(0,r.useEffect)((()=>{if(null!==f&&m){const{abort:e,pause:r,resume:t}=function({bridge:e,element:r,refresh:t,store:n}){let a="idle";function i(){return a="running",Promise.allSettled([Rs({bridge:e,element:r,refresh:t,store:n}),new Promise((e=>setTimeout(e,1e3)))]).then((([{status:e,reason:r}])=>{if("rejected"===e&&"aborted"!==a){if(r instanceof zo)return;console.error(r)}})).finally((()=>{const e="aborted"!==a&&"paused"!==a;if(a="idle",e)return i()}))}return i(),{abort:function(){a="aborted"},resume:function(){"running"!==a&&"aborted"!==a&&(a="idle",i())},pause:function(){"paused"!==a&&"aborted"!==a&&(a="paused")}}}({bridge:a,element:f,refresh:l,store:i});return a.addListener("resumeElementPolling",t),a.addListener("pauseElementPolling",r),()=>{a.removeListener("resumeElementPolling",t),a.removeListener("pauseElementPolling",r),e()}}}),[f,g,b,c,m]);const E=(0,r.useMemo)((()=>({hookNames:g,inspectedElement:b,inspectPaths:k,parseHookNames:v,toggleParseHookNames:w})),[g,b,k,v,w]);return r.createElement(Cl.Provider,{value:E},e)}const xl=["file:///","http://","https://","vscode://"],Tl={ContextMenuItem:"omYdOiQA4INhfDwXiCGT"};function Hl({children:e,onClick:t,hide:n}){const a=()=>{t(),n()};return r.createElement("div",{className:Tl.ContextMenuItem,onClick:a,onTouchEnd:a},e)}const Nl={ContextMenu:"pVySJG3jMP40bWLFGBla"};function Rl({anchorElementRef:e,position:t,items:n,hide:a,ref:i=(0,r.createRef)()}){const o=e.current;if(null==o)throw new Error("Attempted to open a context menu for an element, which is not mounted");const s=o.ownerDocument,l=s.querySelector("[data-react-devtools-portal-root]");return(0,r.useLayoutEffect)((()=>{const e=i.current;function r(r){e.contains(r.target)||a()}s.addEventListener("mousedown",r),s.addEventListener("touchstart",r),s.addEventListener("keydown",r);const n=s.defaultView;return n.addEventListener("resize",a),function(e,r,t){const n=e.ownerDocument.defaultView;t+e.offsetHeight>=n.innerHeight?t-e.offsetHeight>0?e.style.top=t-e.offsetHeight+"px":e.style.top="0px":e.style.top=`${t}px`,r+e.offsetWidth>=n.innerWidth?r-e.offsetWidth>0?e.style.left=r-e.offsetWidth+"px":e.style.left="0px":e.style.left=`${r}px`}(e,t.x,t.y),()=>{s.removeEventListener("mousedown",r),s.removeEventListener("touchstart",r),s.removeEventListener("keydown",r),n.removeEventListener("resize",a)}}),[]),null==l||0===n.length?null:(0,qn.createPortal)(r.createElement("div",{className:Nl.ContextMenu,ref:i},n.map((({onClick:e,content:t},n)=>r.createElement(Hl,{key:n,onClick:e,hide:a},t)))),l)}function Il({anchorElementRef:e,items:t,closedMenuStub:n=null,ref:a}){const{shouldShow:i,position:o,hide:s}=function(e){const[t,n]=(0,r.useState)(!1),[a,i]=r.useState(null),o=(0,r.useCallback)((()=>{n(!1),i(null)}),[]);return(0,r.useEffect)((()=>{const r=e.current;if(null!=r)return r.addEventListener("contextmenu",t),()=>{r.removeEventListener("contextmenu",t)};function t(e){e.preventDefault(),e.stopPropagation();const{pageX:t,pageY:a}=e,o=r?.ownerDocument,s=o?.querySelector("[data-react-devtools-portal-root]");if(null==s)throw new Error("DevTools tooltip root node not found: can't display the context menu");const{top:l,left:c}=s.getBoundingClientRect();n(!0),i({x:t-c,y:a-l})}}),[e]),{shouldShow:t,position:a,hide:o}}(e);return(0,r.useImperativeHandle)(a,(()=>({isShown:()=>i,hide:s})),[i,s]),i?r.createElement(Rl,{anchorElementRef:e,position:o,hide:s,items:t,ref:a}):n}const Ol={ContextMenuItemContent:"ZplKR_6Ki52aunUdBR3W"};function Fl({children:e,anchorElementRef:t,store:n,attributeSourceCanBeInspected:a,bridge:i,id:o,path:s,canBeCopiedToClipboard:l}){const{isEnabledForInspectedElement:c,viewAttributeSourceFunction:u}=(0,r.useContext)(pr),f=r.useMemo((()=>{const e=[{onClick:()=>{const e=n.getRendererIDForElement(o);null!==e&&function({bridge:e,id:r,path:t,rendererID:n}){e.send("storeAsGlobal",{count:Vo++,id:r,path:t,rendererID:n})}({bridge:i,id:o,path:s,rendererID:e})},content:r.createElement("span",{className:Ol.ContextMenuItemContent},r.createElement(ft,{type:"store-as-global-variable"}),r.createElement("label",null,"Store as global variable"))}];return l&&e.unshift({onClick:()=>{const e=n.getRendererIDForElement(o);null!==e&&function({bridge:e,id:r,path:t,rendererID:n}){e.send("copyElementPath",{id:r,path:t,rendererID:n})}({bridge:i,id:o,path:s,rendererID:e})},content:r.createElement("span",{className:Ol.ContextMenuItemContent},r.createElement(ft,{type:"copy"}),r.createElement("label",null,"Copy value to clipboard"))}),null!=u&&a&&e.push({onClick:()=>u(o,s),content:r.createElement("span",{className:Ol.ContextMenuItemContent},r.createElement(ft,{type:"code"}),r.createElement("label",null,"Go to definition"))}),e}),[n,u,a,l,i,o,s]);return c?r.createElement(r.Fragment,null,e,r.createElement(Il,{anchorElementRef:t,items:f})):e}const Pl=Object.prototype.hasOwnProperty;function Ll({alphaSort:e,bridge:t,canDeletePaths:n,canEditValues:a,canRenamePaths:i,canRenamePathsAtDepth:o,depth:s,element:l,inspectedElement:c,isDirectChildOfAnArray:u,hidden:f,hookID:d,hookName:v,name:h,path:m,pathRoot:p,store:_,value:S}){const{readOnly:g}=(0,r.useContext)(_r);n=!g&&n,a=!g&&a,i=!g&&i;const{id:b}=c,w=(0,r.useMemo)((()=>[p,...m]),[p,m]),[k,E]=(0,r.useState)(!1),y=(0,r.useRef)(null),{inspectPaths:D}=(0,r.useContext)(Cl);let A=!1,C=!1;null!==S&&"object"==typeof S&&(A=S[he.inspectable]&&0!==S[he.size],C=S[he.readonly]);const[M,x]=(0,r.useTransition)(),T=()=>{k?E(!1):(E(!0),A&&x((()=>{D([p,...m])})))},H=typeof S,N="number"===H||"string"===H||"boolean"===H||null==S,R="function"===(null!==S&&"object"==typeof S&&Pl.call(S,he.type)?S[he.type]:typeof S),I={paddingLeft:.75*(s-1)+"rem"},O=(e,r)=>{null!=d&&(e=Js(e));const n=_.getRendererIDForElement(b);null!==n&&t.send("overrideValueAtPath",{hookID:d,id:b,path:e,rendererID:n,type:p,value:r})},F=e=>{null!=d&&(e=Js(e));const r=_.getRendererIDForElement(b);null!==r&&t.send("deletePath",{hookID:d,id:b,path:e,rendererID:r,type:p})},P=(e,r)=>{if(""===r[r.length-1])n&&F(e);else{null!=d&&(e=Js(e),r=Js(r));const n=_.getRendererIDForElement(b);null!==n&&t.send("renamePath",{hookID:d,id:b,newPath:r,oldPath:e,rendererID:n,type:p})}};let L,z=i;z&&"function"==typeof o&&(z=o(s)),L=u?n?r.createElement(zl,{name:h,deletePath:F,path:m}):r.createElement("span",{className:il.Name},h,!!v&&r.createElement("span",{className:il.HookName},"(",v,")")):z?r.createElement(qs,{allowEmpty:n,className:il.EditableName,initialValue:h,overrideName:P,path:m}):r.createElement("span",{className:il.Name,"data-testname":"NonEditableName"},h,!!v&&r.createElement("span",{className:il.HookName},"(",v,")"));let B=null;if(N){let e=S;"string"===H?e=`"${S}"`:"boolean"===H?e=S?"true":"false":null===S?e="null":void 0===S?e="undefined":isNaN(S)&&(e="NaN");let n=!1;"string"===H&&xl.some((e=>S.startsWith(e)))&&(n=!0),B=r.createElement(Fl,{key:"root",anchorElementRef:y,attributeSourceCanBeInspected:R,canBeCopiedToClipboard:!R,store:_,bridge:t,id:b,path:w},r.createElement("div",{"data-testname":"KeyValue",className:il.Item,hidden:f,ref:y,style:I},r.createElement("div",{className:il.ExpandCollapseToggleSpacer}),L,r.createElement("div",{className:il.AfterName},":"),a?r.createElement(Qs,{overrideValue:O,path:m,value:S}):n?r.createElement("a",{className:il.Link,href:S,target:"_blank",rel:"noopener noreferrer"},e):r.createElement("span",{className:il.Value,"data-testname":"NonEditableValue"},e)))}else if(Pl.call(S,he.type)&&!Pl.call(S,he.unserializable))B=r.createElement(Fl,{key:"root",anchorElementRef:y,attributeSourceCanBeInspected:R,canBeCopiedToClipboard:!R,store:_,bridge:t,id:b,path:w},r.createElement("div",{"data-testname":"KeyValue",className:il.Item,hidden:f,ref:y,style:I},A?r.createElement(al,{isOpen:k,setIsOpen:T}):r.createElement("div",{className:il.ExpandCollapseToggleSpacer}),L,r.createElement("div",{className:il.AfterName},":"),r.createElement("span",{className:il.Value,onClick:A?T:void 0},rt(S)))),M&&(B=r.createElement(r.Fragment,null,B,r.createElement("div",{className:il.Item,style:I},r.createElement("div",{className:il.ExpandCollapseToggleSpacer}),r.createElement(es,null))));else if(Se(S)){const u=S.length>0||a,v=rt(S);B=S.map(((u,v)=>r.createElement(Ll,{key:v,alphaSort:e,bridge:t,canDeletePaths:n&&!C,canEditValues:a&&!C,canRenamePaths:i&&!C,canRenamePathsAtDepth:o,depth:s+1,element:l,hookID:d,inspectedElement:c,isDirectChildOfAnArray:!0,hidden:f||!k,name:v,path:m.concat(v),pathRoot:p,store:_,value:S[v]}))),a&&!C&&B.push(r.createElement(el,{key:"NewKeyValue",bridge:t,depth:s+1,hidden:f||!k,hookID:d,index:S.length,element:l,inspectedElement:c,path:m,store:_,type:p})),B.unshift(r.createElement(Fl,{key:`${s}-root`,anchorElementRef:y,attributeSourceCanBeInspected:R,canBeCopiedToClipboard:!R,store:_,bridge:t,id:b,path:w},r.createElement("div",{"data-testname":"KeyValue",className:il.Item,hidden:f,ref:y,style:I},u?r.createElement(al,{isOpen:k,setIsOpen:E}):r.createElement("div",{className:il.ExpandCollapseToggleSpacer}),L,r.createElement("div",{className:il.AfterName},":"),r.createElement("span",{className:il.Value,onClick:u?T:void 0},v))))}else{const u=Object.entries(S);e&&u.sort(Zr);const v=u.length>0||a,h=rt(S);B=u.map((([u,v])=>r.createElement(Ll,{key:u,alphaSort:e,bridge:t,canDeletePaths:n&&!C,canEditValues:a&&!C,canRenamePaths:i&&!C,canRenamePathsAtDepth:o,depth:s+1,element:l,hookID:d,inspectedElement:c,hidden:f||!k,name:u,path:m.concat(u),pathRoot:p,store:_,value:v}))),a&&!C&&B.push(r.createElement(tl,{key:"NewKeyValue",bridge:t,depth:s+1,element:l,hidden:f||!k,hookID:d,inspectedElement:c,path:m,store:_,type:p})),B.unshift(r.createElement(Fl,{key:`${s}-root`,anchorElementRef:y,attributeSourceCanBeInspected:R,canBeCopiedToClipboard:!R,store:_,bridge:t,id:b,path:w},r.createElement("div",{"data-testname":"KeyValue",className:il.Item,hidden:f,ref:y,style:I},v?r.createElement(al,{isOpen:k,setIsOpen:E}):r.createElement("div",{className:il.ExpandCollapseToggleSpacer}),L,r.createElement("div",{className:il.AfterName},":"),r.createElement("span",{className:il.Value,onClick:v?T:void 0},h))))}return B}function zl({deletePath:e,name:t,path:n}){return r.createElement(r.Fragment,null,r.createElement(Ya,{className:il.DeleteArrayItemButton,onClick:r=>{r.stopPropagation(),e(n)},title:"Delete entry"},r.createElement(Yt,{type:"delete"})),r.createElement("span",{className:il.Name},t))}const Bl={InspectedElementTree:"ltOoJtAx5EC08rarvM4p",HeaderRow:"yS0BAulI6Ht22u7u94d8",Header:"fm_upKhhfGKt4zSRnhpE",Item:"j_4cxqwZqXAlcGfn6dJP",Name:"Mrf7n7Pe5sy2ngEb7vZS",Value:"_V05tLtyASx_cJMSpgrV",None:"ysNVmdovBZAYNF423jos",Empty:"MyDmtcCLu0zArOXrI9YD",ToggleSuspenseRow:"s0nJkLbCCF_l1MSRX98S",EditableValue:"yF6fDjinAwiJTU3rYMJA"};function Vl({bridge:e,element:t,inspectedElement:n,store:a}){const{hasLegacyContext:i,context:o,type:s}=n,l=s!==I&&s!==F,c=null!=o?Object.entries(o):null;null!==c&&c.sort(Zr);const u=null===c||0===c.length,d=()=>(0,f.copy)(nt(o)),v=e=>e>1;return u?null:r.createElement("div",{className:Bl.InspectedElementTree},r.createElement("div",{className:Bl.HeaderRow},r.createElement("div",{className:Bl.Header},i?"legacy context":"context"),!u&&r.createElement(Ya,{onClick:d,title:"Copy to clipboard"},r.createElement(Yt,{type:"copy"}))),u&&r.createElement("div",{className:Bl.Empty},"None"),!u&&c.map((([i,o])=>r.createElement(Ll,{key:i,alphaSort:!0,bridge:e,canDeletePaths:!l,canEditValues:!l,canRenamePaths:!l,canRenamePathsAtDepth:v,depth:1,element:t,hidden:!1,inspectedElement:n,name:i,path:[i],pathRoot:"context",store:a,type:"context",value:o}))))}const Ul={ErrorTree:"DmmJ_c1P9vfx9ERrACGM",WarningTree:"RjKfbqv4ZTMxYD91YOsJ",HeaderRow:"ZZgXK0QkPtmRlYNt1vOs",Error:"F8ZcQwTPGdaFfSSN4It1",Warning:"OKLOnFhXJqOtrex9P8_W",Message:"rD5uo9vzQItqB5zWzoQ3",ErrorBadge:"_Ua1vMlecyqFUldp7wAc",WarningBadge:"qNkjOY6DYZsJpx3DRwkD"};function Wl({bridge:e,inspectedElement:t,store:n}){const a=(0,r.unstable_useCacheRefresh)(),[i,o]=(0,r.useTransition)(),[s,l]=(0,r.useTransition)(),{showInlineWarningsAndErrors:c}=(0,r.useContext)(jt);if(!c)return null;const{errors:u,warnings:f}=t;return r.createElement(r.Fragment,null,u.length>0&&r.createElement(jl,{badgeClassName:Ul.ErrorBadge,bridge:e,className:Ul.ErrorTree,clearMessages:()=>{const{id:r}=t,i=n.getRendererIDForElement(r);null!==i&&o((()=>{!function({bridge:e,id:r,rendererID:t}){e.send("clearErrorsForFiberID",{rendererID:t,id:r})}({bridge:e,id:r,rendererID:i}),a()}))},entries:u,isTransitionPending:i,label:"errors",messageClassName:Ul.Error}),f.length>0&&r.createElement(jl,{badgeClassName:Ul.WarningBadge,bridge:e,className:Ul.WarningTree,clearMessages:()=>{const{id:r}=t,i=n.getRendererIDForElement(r);null!==i&&l((()=>{!function({bridge:e,id:r,rendererID:t}){e.send("clearWarningsForFiberID",{rendererID:t,id:r})}({bridge:e,id:r,rendererID:i}),a()}))},entries:f,isTransitionPending:s,label:"warnings",messageClassName:Ul.Warning}))}function jl({badgeClassName:e,actions:t,className:n,clearMessages:a,entries:i,isTransitionPending:o,label:s,messageClassName:l}){return 0===i.length?null:r.createElement("div",{className:`${Bl.InspectedElementTree} ${n}`},r.createElement("div",{className:`${Bl.HeaderRow} ${Ul.HeaderRow}`},r.createElement("div",{className:Bl.Header},s),r.createElement(Ya,{disabled:o,onClick:a,title:`Clear all ${s} for this component`},r.createElement(Yt,{type:"clear"}))),i.map((([t,n],a)=>r.createElement($l,{key:`${s}-${a}`,badgeClassName:e,className:l,count:n,message:t}))))}function $l({className:e,badgeClassName:t,count:n,message:a}){return r.createElement("div",{className:e},n>1&&r.createElement("div",{className:t},n),r.createElement("div",{className:Ul.Message,title:a},a))}const Xl={HooksTreeView:"oqZagvwqy5I1eS9JxuSJ",Hook:"aW5tBwpso5J9aiKDockj",Children:"AP1pfbidtpgoAIb9ZD0R",HeaderRow:"qnPv6TP0mB6Bq4K7owJ5",Header:"EU9PS8tCnHx9BDUiWzPQ",NameValueRow:"pDUvmgJDA6w4qIhWgSGe",Name:"uUpdXk_BA8PtV6w7_bvZ",NameAnonymous:"Pa1JZ9djVog6TIyaUlQB",EditableName:"eHFNUPL3Js9_s88rp5UW",Value:"CcGuLGOGx_QLVeJUNxEr",None:"d8jC9zgp1ezvSNfA31B_",TruncationIndicator:"EuKEnHO8Pe9Otdm7Ljwv",ExpandCollapseToggleSpacer:"lNiUhoYzRTtFNM5vxbog",PrimitiveHookNumber:"XGq4Z3xUrxK0rJ5OhXLo",HookName:"dFN2pn7cHDWz0UnPq7Ot",ToggleError:"JIMU22sckhXA_8Tmwk1T"};function Gl({bridge:e,element:t,hookNames:n,inspectedElement:a,parseHookNames:i,store:o,toggleParseHookNames:s}){const{hooks:l,id:c}=a,[u,d]=(0,r.useState)(i),v=()=>{d(!i),s()},h=(0,r.useContext)(Al),m=i&&null===n;let p;p=m?"Hook parsing failed":i?"Parsing hook names ...":"Parse hook names (may be slow)";const _=()=>(0,f.copy)(function(e){const r=Object.assign([],e),t=[...r];for(;t.length>0;){const e=t.pop();delete e.id,delete e.isStateEditable,e.subHooks.length>0&&t.push(...e.subHooks)}tt(r);try{return JSON.stringify(r,null,2)}catch(e){return""}}(l));return null===l?null:r.createElement("div",{className:Xl.HooksTreeView,"data-testname":"InspectedElementHooksTree"},r.createElement("div",{className:Xl.HeaderRow},r.createElement("div",{className:Xl.Header},"hooks"),"function"==typeof h&&(!i||m)&&r.createElement(za,{className:m?Xl.ToggleError:null,isChecked:u,isDisabled:u||m,onChange:v,testName:"LoadHookNamesButton",title:p},r.createElement(Yt,{type:"parse-hook-names"})),r.createElement(Ya,{onClick:_,title:"Copy to clipboard"},r.createElement(Yt,{type:"copy"}))),r.createElement(Kl,{hookNames:n,hooks:l,id:c,element:t,inspectedElement:a,path:[]}))}function Kl({element:e,hookNames:t,hooks:n,id:a,inspectedElement:i,path:o}){return n.map(((s,l)=>r.createElement(ql,{key:l,element:e,hook:n[l],hookNames:t,id:a,inspectedElement:i,path:o.concat([l])})))}function ql({element:e,hook:t,hookNames:n,id:a,inspectedElement:i,path:o}){const{canEditHooks:s,canEditHooksAndDeletePaths:l,canEditHooksAndRenamePaths:c}=i,{id:u,isStateEditable:f,subHooks:d,value:v}=t,h=null==u||!f,m=!h&&l,p=!h&&s,_=!h&&c,S=(0,r.useContext)(hr),g=(0,r.useContext)(mr),[b,w]=(0,r.useState)(!1),k=(0,r.useCallback)((()=>w((e=>!e))),[]);if(t.hasOwnProperty(he.inspected))return r.createElement("div",{className:Xl.Hook},r.createElement("div",{className:Xl.NameValueRow},r.createElement("span",{className:Xl.TruncationIndicator},"...")));const E=e=>f&&e>1,y=d.length>0;let D=t.name;null!==u&&(D=r.createElement(r.Fragment,null,r.createElement("span",{className:Xl.PrimitiveHookNumber},u+1),D));const A=typeof v;let C,M=!1;const x=t.hookSource,T=null!=n&&null!=x?n.get(function({fileName:e,lineNumber:r,columnNumber:t}){if(null==e||null==r||null==t)throw Error("Hook source code location not found.");return`${e}:${r}:${t}`}(x)):null,H=T?r.createElement(r.Fragment,null,D,!!T&&r.createElement("span",{className:Xl.HookName},"(",T,")")):D;if("string"===A?C=`"${v}"`:"boolean"===A?C=v?"true":"false":"number"===A?C=v:null===v?C="null":void 0===v?C=null:Se(v)?(M=!0,C="Array"):"object"===A&&(M=!0,C="Object"),y){const t=Se(d)?r.createElement(Kl,{element:e,hooks:d,hookNames:n,id:a,inspectedElement:i,path:o.concat(["subHooks"])}):r.createElement(Ll,{alphaSort:!1,bridge:S,canDeletePaths:m,canEditValues:p,canRenamePaths:_,canRenamePathsAtDepth:E,depth:1,element:e,hookID:u,hookName:T,inspectedElement:i,name:"subHooks",path:o.concat(["subHooks"]),store:g,type:"hooks",value:d});return M?r.createElement("div",{className:Xl.Hook},r.createElement("div",{className:Xl.NameValueRow},r.createElement(al,{isOpen:b,setIsOpen:w}),r.createElement("span",{onClick:k,className:""!==D?Xl.Name:Xl.NameAnonymous},H||"Anonymous"),r.createElement("span",{className:Xl.Value,onClick:k},b||rt(v))),r.createElement("div",{className:Xl.Children,hidden:!b},r.createElement(Ll,{alphaSort:!1,bridge:S,canDeletePaths:m,canEditValues:p,canRenamePaths:_,canRenamePathsAtDepth:E,depth:1,element:e,hookID:u,hookName:T,inspectedElement:i,name:"DebugValue",path:o.concat(["value"]),pathRoot:"hooks",store:g,value:v}),t)):r.createElement("div",{className:Xl.Hook},r.createElement("div",{className:Xl.NameValueRow},r.createElement(al,{isOpen:b,setIsOpen:w}),r.createElement("span",{onClick:k,className:""!==D?Xl.Name:Xl.NameAnonymous},H||"Anonymous")," ",r.createElement("span",{className:Xl.Value,onClick:k},C)),r.createElement("div",{className:Xl.Children,hidden:!b},t))}return M?r.createElement("div",{className:Xl.Hook},r.createElement(Ll,{alphaSort:!1,bridge:S,canDeletePaths:m,canEditValues:p,canRenamePaths:_,canRenamePathsAtDepth:E,depth:1,element:e,hookID:u,hookName:T,inspectedElement:i,name:D,path:o.concat(["value"]),pathRoot:"hooks",store:g,value:v})):r.createElement("div",{className:Xl.Hook},r.createElement(Ll,{alphaSort:!1,bridge:S,canDeletePaths:!1,canEditValues:p,canRenamePaths:!1,depth:1,element:e,hookID:u,hookName:T,inspectedElement:i,name:D,path:o.concat(["value"]),pathRoot:"hooks",store:g,value:v}))}const Yl=r.memo(Gl);function Ql({bridge:e,element:t,inspectedElement:n,store:a}){const{readOnly:i}=r.useContext(_r),{canEditFunctionProps:o,canEditFunctionPropsDeletePaths:s,canEditFunctionPropsRenamePaths:l,props:c,type:u}=n,d=u===I||s,v=!i&&(u===I||o),h=u===I||l,m=null!=c?Object.entries(c):null;null!==m&&m.sort(Zr);const p=null===m||0===m.length;return r.createElement("div",{className:Bl.InspectedElementTree,"data-testname":"InspectedElementPropsTree"},r.createElement("div",{className:Bl.HeaderRow},r.createElement("div",{className:Bl.Header},"props"),!p&&r.createElement(Ya,{onClick:()=>(0,f.copy)(nt(c)),title:"Copy to clipboard"},r.createElement(Yt,{type:"copy"}))),!p&&m.map((([i,o])=>r.createElement(Ll,{key:i,alphaSort:!0,bridge:e,canDeletePaths:d,canEditValues:v,canRenamePaths:h,depth:1,element:t,hidden:!1,inspectedElement:n,name:i,path:[i],pathRoot:"props",store:a,value:o}))),v&&r.createElement(tl,{bridge:e,depth:0,hidden:!1,inspectedElement:n,path:[],store:a,type:"props"}))}function Jl({bridge:e,element:t,inspectedElement:n,store:a}){const{state:i,type:o}=n,s=o===L,l=null!=i?Object.entries(i):null,c=null===l||0===l.length;if(c||s)return null;null!==l&&l.sort(Zr);return r.createElement("div",{className:Bl.InspectedElementTree},r.createElement("div",{className:Bl.HeaderRow},r.createElement("div",{className:Bl.Header},"state"),!c&&r.createElement(Ya,{onClick:()=>(0,f.copy)(nt(i)),title:"Copy to clipboard"},r.createElement(Yt,{type:"copy"}))),c&&r.createElement("div",{className:Bl.Empty},"None"),!c&&l.map((([i,o])=>r.createElement(Ll,{key:i,alphaSort:!0,bridge:e,canDeletePaths:!0,canEditValues:!0,canRenamePaths:!0,depth:1,element:t,hidden:!1,inspectedElement:n,name:i,path:[i],pathRoot:"state",store:a,value:o}))))}const Zl={Source:"c1QgeBjOjJN4llhpOFbO"};function ec({bridge:e,element:t,inspectedElement:n,store:a}){if(!Vt)return null;const i=n.plugins.stylex;if(null==i)return null;const{resolvedStyles:o,sources:s}=i;return r.createElement("div",{className:Bl.InspectedElementTree},r.createElement("div",{className:Bl.HeaderRow},r.createElement("div",{className:Bl.Header},"stylex")),s.map((e=>r.createElement("div",{key:e,className:Zl.Source},e))),Object.entries(o).map((([i,o])=>r.createElement(Ll,{key:i,alphaSort:!0,bridge:e,canDeletePaths:!1,canEditValues:!1,canRenamePaths:!1,depth:1,element:t,hidden:!1,inspectedElement:n,name:i,path:[i],pathRoot:"stylex",store:a,value:o}))))}function rc({bridge:e,inspectedElement:t,store:n}){const{readOnly:a}=r.useContext(_r),{id:i,state:o,type:s}=t,l=!a&&t.canToggleSuspense;if(s!==W)return null;const c=null!==o;return r.createElement("div",{className:Bl.InspectedElementTree},r.createElement("div",{className:Bl.HeaderRow},r.createElement("div",{className:Bl.Header},"suspense")),r.createElement("div",{className:Bl.ToggleSuspenseRow},r.createElement("span",{className:Bl.Name},"Suspended"),l?r.createElement(Qs,{key:c,overrideValue:(r,t)=>{const a=n.getRendererIDForElement(i);null!==a&&e.send("overrideSuspense",{id:i,rendererID:a,forceFallback:t})},path:["suspense","Suspended"],value:c}):r.createElement("span",{className:Bl.Value},c?"true":"false")))}const tc=(0,r.createContext)(null);tc.displayName="NativeStyleContext";const nc=new WeakMap,ac=li((e=>{const r=nc.get(e);if(null!=r)return r.promise;let t=null;const n=new Promise((e=>{t=e}));return nc.set(e,{promise:n,resolveFn:t}),n}),(e=>e),{useWeakMap:!0});function ic({children:e}){const t=(0,r.useContext)(hr),n=(0,r.useContext)(mr),a=(0,r.useCallback)((e=>{const r=n.getElementByID(e);return null!==r?ac.read(r):null}),[n]),{selectedElementID:i}=(0,r.useContext)(it),[o,s]=(0,r.useState)(null);(0,r.useEffect)((()=>{const e=({id:e,layout:r,style:t})=>{const a=n.getElementByID(e);if(null!==a){const n={layout:r,style:t},o=nc.get(a);null!=o?(nc.delete(a),(0,qn.unstable_batchedUpdates)((()=>{o.resolveFn(n),s(n)}))):(ac.write(a,n),e===i&&s(n))}};return t.addListener("NativeStyleEditor_styleAndLayout",e),()=>t.removeListener("NativeStyleEditor_styleAndLayout",e)}),[t,o,i,n]),(0,r.useEffect)((()=>{if(null===i)return()=>{};const e=n.getRendererIDForElement(i);let r=null;const a=()=>{r=null,null!==e&&t.send("NativeStyleEditor_measure",{id:i,rendererID:e})};a();const o=({id:e})=>{e===i&&(null!==r&&clearTimeout(r),r=setTimeout(a,1e3))};return t.addListener("NativeStyleEditor_styleAndLayout",o),()=>{t.removeListener("NativeStyleEditor_styleAndLayout",o),null!==r&&clearTimeout(r)}}),[t,i,n]);const l=(0,r.useMemo)((()=>({getStyleAndLayout:a})),[o,a]);return r.createElement(tc.Provider,{value:l},e)}const oc={LayoutViewer:"VD1V5qP1lmb39G72wedQ",Header:"rPAerX5hZNiGDJppOpbq",DashedBox:"OjNFM01Zj7nlXPIL6pBS",SolidBox:"DVd3LfnV9a0r1xnIo2pk",LabelRow:"Adu1dCHqsyjaVcuOcKY8",Label:"Vi7zav3ohBNd6o2HBeAT",BoxRow:"Te5NNRzWp5nqqs8NI4Pu"};function sc({id:e,layout:t}){const{height:n,margin:a,padding:i,y:o,width:s,x:l}=t;return r.createElement("div",{className:oc.LayoutViewer},r.createElement("div",{className:oc.Header},"layout"),r.createElement("div",{className:oc.DashedBox},r.createElement("div",{className:oc.LabelRow},r.createElement("label",{className:oc.Label},"margin"),r.createElement("label",null,a.top||"-")),r.createElement("div",{className:oc.BoxRow},r.createElement("label",null,a.left||"-"),r.createElement("div",{className:oc.SolidBox},r.createElement("div",{className:oc.LabelRow},r.createElement("label",{className:oc.Label},"padding"),r.createElement("label",null,i.top||"-")),r.createElement("div",{className:oc.BoxRow},r.createElement("label",null,i.left||"-"),r.createElement("div",{className:oc.DashedBox},r.createElement("div",{className:oc.LabelRow},lc(s)," x ",lc(n)," (",lc(l),", ",lc(o),")")),r.createElement("label",null,i.right||"-")),r.createElement("label",null,i.bottom||"-")),r.createElement("label",null,a.right||"-")),r.createElement("label",null,a.bottom||"-")))}function lc(e){return Math.round(e)===e?e:e.toFixed(1)}const cc={StyleEditor:"AmFh8ffKc6AedWQcGfpg",HeaderRow:"K_w5p9mPdwobJpJAVuOQ",Header:"S7T4EnXABpbKz7nLGU2H",Brackets:"NG7VgJltN4BT6xCuPOWt",Row:"E_2radqSW5Xlnn_R49zP",Invalid:"uyTHMxxFwiDt8VsOJ2Em",Attribute:"kQ0bT0HwWb8fuRYqCmyz",Value:"BeqejgY4rmJOmPKTLUlN",Input:"JhnyWgS3UJleovrVteqQ"};function uc({id:e,style:t}){const n=(0,r.useContext)(hr),a=(0,r.useContext)(mr),i=(r,t,i)=>{const o=a.getRendererIDForElement(e);null!==o&&n.send("NativeStyleEditor_renameAttribute",{id:e,rendererID:o,oldName:r,newName:t,value:i})},o=(r,t)=>{const i=a.getRendererIDForElement(e);null!==i&&n.send("NativeStyleEditor_setValue",{id:e,rendererID:i,name:r,value:t})},s=(0,r.useMemo)((()=>Array.from(Object.keys(t))),[t]);return r.createElement("div",{className:cc.StyleEditor},r.createElement("div",{className:cc.HeaderRow},r.createElement("div",{className:cc.Header},r.createElement("div",{className:cc.Brackets},"style {")),r.createElement(Ya,{onClick:()=>(0,f.copy)(nt(t)),title:"Copy to clipboard"},r.createElement(Yt,{type:"copy"}))),s.length>0&&s.map((e=>r.createElement(dc,{key:e,attribute:e,changeAttribute:i,changeValue:o,validAttributes:a.nativeStyleEditorValidAttributes,value:t[e]}))),r.createElement(fc,{changeAttribute:i,changeValue:o,validAttributes:a.nativeStyleEditorValidAttributes}),r.createElement("div",{className:cc.Brackets},"}"))}function fc({changeAttribute:e,changeValue:t,validAttributes:n}){const[a,i]=(0,r.useState)(0),o=(0,r.useRef)("");return r.createElement(dc,{key:a,attribute:"",attributePlaceholder:"attribute",changeAttribute:(e,r,t)=>{o.current=r},changeValue:(e,r)=>{""!==o.current&&(""!==r&&t(o.current,r),i(a+1))},validAttributes:n,value:"",valuePlaceholder:"value"})}function dc({attribute:e,attributePlaceholder:t,changeAttribute:n,changeValue:a,validAttributes:i,value:o,valuePlaceholder:s}){const[l,c]=(0,r.useState)(e),[u,f]=(0,r.useState)(JSON.stringify(o)),[d,v]=(0,r.useState)(!0),[h,m]=(0,r.useState)(!0);return r.createElement("div",{className:cc.Row},r.createElement(vc,{className:d?cc.Attribute:cc.Invalid,onChange:e=>{const r=""===e||null===i||i.indexOf(e)>=0;(0,qn.unstable_batchedUpdates)((()=>{c(e),v(r)}))},onReset:()=>{c(e)},onSubmit:()=>{d&&h&&e!==l&&n(e,l,o)},placeholder:t,value:l}),": ",r.createElement(vc,{className:h?cc.Value:cc.Invalid,onChange:e=>{let r=!1;try{JSON.parse(Be(e)),r=!0}catch(e){}(0,qn.unstable_batchedUpdates)((()=>{f(e),m(r)}))},onReset:()=>{f(o)},onSubmit:()=>{if(d&&h){const r=JSON.parse(Be(u));o!==r&&a(e,r)}},placeholder:s,value:u}),";")}function vc({className:e,onChange:t,onReset:n,onSubmit:a,placeholder:i,value:o}){return r.createElement(Gs,{className:`${e} ${cc.Input}`,onBlur:a,onChange:e=>t(e.target.value),onKeyDown:e=>{switch(e.key){case"Enter":a();break;case"Escape":n();break;case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":e.stopPropagation()}},placeholder:i,value:o})}function hc(e){const t=(0,r.useContext)(mr);return zt((0,r.useMemo)((()=>({getCurrentValue:()=>t.supportsNativeStyleEditor,subscribe:e=>(t.addListener("supportsNativeStyleEditor",e),()=>{t.removeListener("supportsNativeStyleEditor",e)})})),[t]))?r.createElement(mc,null):null}function mc(e){const{getStyleAndLayout:t}=(0,r.useContext)(tc),{inspectedElementID:n}=(0,r.useContext)(it);if(null===n)return null;const a=t(n);if(null===a)return null;const{layout:i,style:o}=a;return r.createElement(r.Fragment,null,null!==i&&r.createElement(sc,{id:n,layout:i}),null!==o&&r.createElement(uc,{id:n,style:null!==o?o:{}}))}var pc=a(486);const _c="QGBqdeQCINFdybolYjz_";const Sc=function({height:e,width:t}){return r.createElement("div",{className:_c,style:{height:e,width:t}})},gc={Source:"YdqMguRALd3o4QHKOkCP",SourceHeaderRow:"LmOPSwtqCOPq95UvFbZg",SourceHeader:"GjPupFqKLWTIvKnSU0NK",SourceOneLiner:"Vj7XlvFgqsT7YZZSQp8Q"};function bc({source:e,symbolicatedSourcePromise:t}){const n=r.use(t);if(null==n){const{sourceURL:t,line:n,column:a}=e,i=()=>(0,f.copy)(`${t}:${n}:${a}`);return r.createElement(Ya,{onClick:i,title:"Copy to clipboard"},r.createElement(Yt,{type:"copy"}))}const{sourceURL:a,line:i,column:o}=n;return r.createElement(Ya,{onClick:()=>(0,f.copy)(`${a}:${i}:${o}`),title:"Copy to clipboard"},r.createElement(Yt,{type:"copy"}))}function wc({source:e,symbolicatedSourcePromise:t}){const n=r.use(t);if(null==n){const{sourceURL:t,line:n}=e;return r.createElement("div",{className:gc.SourceOneLiner},kc(t,n))}const{sourceURL:a,line:i}=n;return r.createElement("div",{className:gc.SourceOneLiner},kc(a,i))}function kc(e,r){const t=e.includes("//&")?(0,pc.toNormalUrl)(e):e,n=/^(.*)[\\\/]/;let a=t.replace(n,"");if(/^index\./.test(a)){const e=t.match(n);if(e){const r=e[1];if(r){a=r.replace(n,"")+"/"+a}}}return`${a}:${r}`}const Ec=function({source:e,symbolicatedSourcePromise:t}){return r.createElement("div",{className:gc.Source,"data-testname":"InspectedElementView-Source"},r.createElement("div",{className:gc.SourceHeaderRow},r.createElement("div",{className:gc.SourceHeader},"source"),r.createElement(r.Suspense,{fallback:r.createElement(Sc,{height:16,width:16})},r.createElement(bc,{source:e,symbolicatedSourcePromise:t}))),r.createElement(r.Suspense,{fallback:r.createElement("div",{className:gc.SourceOneLiner},r.createElement(Sc,{height:16,width:"40%"}))},r.createElement(wc,{source:e,symbolicatedSourcePromise:t})))},yc={Owners:"degzlzEXnOfIq7O6aEtD",OwnersHeader:"QyzwGL5CVGmpYxajigQg",Owner:"G1iPSTGC6eNcmT5RjA6C",InspectedElement:"YOXaHk9xYzASY3DKURUA",InspectedElementBadgesContainer:"s7UqGwXK0u5IO8pB45HE",NotInStore:"G2BCKBICgnFcziDETl7t",OwnerButton:"YuAWbMYGVSUD5Xw13fGJ",OwnerContent:"YXMHJBveMFexrfyxqi6O",OwnersMetaField:"P14TYiR8U2gzEkHw_ISN"};function Dc({element:e,hookNames:t,inspectedElement:n,parseHookNames:a,toggleParseHookNames:i,symbolicatedSourcePromise:o}){const{owners:s,rendererPackageName:l,rendererVersion:c,rootType:u,source:f}=n,d=(0,r.useContext)(hr),v=(0,r.useContext)(mr),h=null!==l&&null!==c?`${l}@${c}`:null,m=null!==s&&s.length>0,p=m||null!==h||null!==u;return r.createElement(r.Fragment,null,r.createElement("div",{className:yc.InspectedElement},r.createElement("div",{className:yc.InspectedElementBadgesContainer},r.createElement(js,{hocDisplayNames:e.hocDisplayNames,compiledWithForget:e.compiledWithForget})),r.createElement(Ql,{bridge:d,element:e,inspectedElement:n,store:v}),r.createElement(rc,{bridge:d,inspectedElement:n,store:v}),r.createElement(Jl,{bridge:d,element:e,inspectedElement:n,store:v}),r.createElement(Yl,{bridge:d,element:e,hookNames:t,inspectedElement:n,parseHookNames:a,store:v,toggleParseHookNames:i}),r.createElement(Vl,{bridge:d,element:e,inspectedElement:n,store:v}),Vt&&r.createElement(ec,{bridge:d,element:e,inspectedElement:n,store:v}),r.createElement(Wl,{bridge:d,element:e,inspectedElement:n,store:v}),r.createElement(hc,null),p&&r.createElement("div",{className:yc.Owners,"data-testname":"InspectedElementView-Owners"},r.createElement("div",{className:yc.OwnersHeader},"rendered by"),m&&s?.map((e=>r.createElement(Ac,{key:e.id,displayName:e.displayName||"Anonymous",hocDisplayNames:e.hocDisplayNames,compiledWithForget:e.compiledWithForget,id:e.id,isInStore:v.containsElement(e.id),type:e.type}))),null!==u&&r.createElement("div",{className:yc.OwnersMetaField},u),null!==h&&r.createElement("div",{className:yc.OwnersMetaField},h)),null!=f&&r.createElement(Ec,{source:f,symbolicatedSourcePromise:o})))}function Ac({displayName:e,hocDisplayNames:t,compiledWithForget:n,id:a,isInStore:i}){const o=(0,r.useContext)(ot),{highlightNativeElement:s,clearHighlightNativeElement:l}=Bt(),c=(0,r.useCallback)((()=>{Wt({event_name:"select-element",metadata:{source:"owner-view"}}),o({type:"SELECT_ELEMENT_BY_ID",payload:a})}),[o,a]);return r.createElement(Ya,{key:a,className:yc.OwnerButton,disabled:!i,onClick:c,onMouseEnter:()=>s(a),onMouseLeave:l},r.createElement("span",{className:yc.OwnerContent},r.createElement("span",{className:`${yc.Owner} ${i?"":yc.NotInStore}`,title:e},e),r.createElement(Ja,{hocDisplayNames:t,compiledWithForget:n})))}for(var Cc={},Mc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",xc=0;xc{const t=e.offset,n=t.line,a=t.column;if(nn){if(!(o-s>0)){s=o;break}o=s}else{if(!(s-i>0)){s=i;break}i=s}}else if(e>r){if(!(o-s>0)){s=o;break}o=s}else{if(!(s-i>0)){s=i;break}i=s}}if(null==a)throw Error(`Could not find matching section for line:${r} and column:${e}`);return null===a.sourceMapConsumer&&(a.sourceMapConsumer=new Hc(a.map)),a.sourceMapConsumer.originalPositionFor({columnNumber:e,lineNumber:r})}return{originalPositionFor:n}}(e):function(e){const r=function(e,r,t){const n=ul();h&&ll(e);const a=r();h&&cl(e),null!=t&&t(ul()-n);return a}("Decoding source map mappings with sourcemap-codec",(()=>function(e){for(var r=[],t=[],n=[0,0,0,0,0],a=0,i=0,o=0,s=0;i>>=1,f&&(s=0===s?-2147483648:-s),n[a]+=s,a++,s=o=0}}}return Tc(t,n,a),r.push(t),r}(e.mappings)));function t({columnNumber:t,lineNumber:n}){const a=t-1,i=r[n-1];let o=null,s=0,l=i.length-1,c=-1;for(;s<=l;){c=Math.floor((l+s)/2),o=i[c];const e=o[0];if(e===a)break;if(e>a){if(!(l-c>0)){c=l;break}l=c}else{if(!(c-s>0)){c=s;break}s=c}}for(;c>0;){if(i[c-1][0]!==a)break;c--}if(null==o)throw Error(`Could not find runtime location for line:${n} and column:${t}`);const u=o[1],f=null!=e.sourcesContent?e.sourcesContent[u]:null,d=e.sources[u]??null,v=o[2]+1,h=o[3];if(null===f||null===d)throw Error(`Could not find original source for line:${n} and column:${t}`);return{column:h,line:v,sourceContent:f,sourceURL:d}}return{originalPositionFor:t}}(e)}const Nc=new Map;async function Rc(e,r,t,n){const a=`${r}:${t}:${n}`,i=Nc.get(a);if(null!=i)return i;const o=async function(e,r,t,n){const a=await e(r).catch((()=>null));if(null==a)return null;const i=a.split(/[\r\n]+/);for(let r=i.length-1;r>=0;--r){const a=i[r];if(a){if(!a.startsWith("//#"))break;if(a.includes(Ic)){const r=a.indexOf(Ic),i=a.slice(r+Ic.length,a.length),o=await e(i).catch((()=>null));if(null!=o)try{const e=Hc(JSON.parse(o)),{sourceURL:r,line:a,column:s}=e.originalPositionFor({lineNumber:t,columnNumber:n});try{new URL(r);return{sourceURL:Fe(r),line:a,column:s}}catch(e){if(r.startsWith("/"))return{sourceURL:r,line:a,column:s};const[t]=i.split(/[?#&]/);return{sourceURL:t+(t.endsWith("/")?"":"/")+r,line:a,column:s}}}catch(e){return null}return null}}}return null}(e,r,t,n);return Nc.set(a,o),o}const Ic="sourceMappingURL=";const Oc=function({editorURL:e,source:t,symbolicatedSourcePromise:n}){const a=r.use(n),{url:i,shouldDisableButton:o}=function(e,r){try{const t=new URL(e);let n=r.sourceURL;if(n.includes("://")){if(!__IS_INTERNAL_VERSION__)return{url:null,shouldDisableButton:!0};{const e=".js/",r=n.lastIndexOf(e);if(-1===r)return{url:null,shouldDisableButton:!0};n=n.slice(r+e.length,n.length)}}const a=String(r.line);return t.href=t.href.replace("{path}",n).replace("{line}",a).replace("%7Bpath%7D",n).replace("%7Bline%7D",a),{url:t,shouldDisableButton:!1}}catch(e){return{url:null,shouldDisableButton:!0}}}(e,a||t);return r.createElement(Ya,{disabled:o,onClick:()=>window.open(i),title:"Open in editor"},r.createElement(Yt,{type:"editor"}))},Fc=(0,r.createContext)(null);Fc.displayName="ViewElementSourceContext";const Pc=Fc,{useCallback:Lc,useContext:zc}=t;function Bc({canViewSource:e,source:t,symbolicatedSourcePromise:n,canViewElementSourceFunction:a,viewElementSourceFunction:i}){const o=null==n?null:r.use(n),s=!!e&&null!=i&&null!=t&&(null==a||a(t,o)),l=Lc((()=>{null!=i&&null!=t&&i(t,o)}),[t,o]);return r.createElement(Ya,{disabled:!s,onClick:l,title:"View source for this element"},r.createElement(Yt,{type:"view-source"}))}const Vc=function({canViewSource:e,source:t,symbolicatedSourcePromise:n}){const{canViewElementSourceFunction:a,viewElementSourceFunction:i}=zc(Pc);return r.createElement(r.Suspense,{fallback:r.createElement(Sc,{height:16,width:24})},r.createElement(Bc,{canViewSource:e,source:t,symbolicatedSourcePromise:n,canViewElementSourceFunction:a,viewElementSourceFunction:i}))},Uc={InspectedElement:"W87cPUOEq9_b8BJ8wzi_",TitleRow:"bRyo53K1qkVwP17eMtpB",Key:"aBtzuUuPzsX7SMY12BlU",KeyArrow:"nj4SAMmTUsR18n1AhsRR",SelectedComponentName:"fzFQP5c1Nu7WdBiHvVcv",Component:"sZBTjxc2Uuj6j1x1PXgE",Loading:"ioBCP8YZ8QjgPhP8HHS0",StrictModeNonCompliant:"qItvNDYiaAL24IKVfRqL"};function Wc(e){const{inspectedElementID:t}=(0,r.useContext)(it),n=(0,r.useContext)(ot),a=(0,r.useContext)(hr),i=(0,r.useContext)(mr),{hideToggleErrorAction:o,hideToggleSuspenseAction:s,hideLogAction:l,hideViewSourceAction:c}=(0,r.useContext)(_r),{dispatch:u}=(0,r.useContext)(Ps),{hookNames:f,inspectedElement:d,parseHookNames:v,toggleParseHookNames:h}=(0,r.useContext)(Cl),m=(0,r.useContext)(yl),p=r.useMemo((()=>{if(null==d)return null;if(null==m)return Promise.resolve(null);const{source:e}=d;if(null==e)return Promise.resolve(null);const{sourceURL:r,line:t,column:n}=e;return Rc(m,r,t,n)}),[d]),_=null!==t?i.getElementByID(t):null,S=(0,r.useCallback)((()=>{if(null!==_&&null!==t){const e=i.getRendererIDForElement(t);null!==e&&a.send("highlightNativeElement",{displayName:_.displayName,hideAfterTimeout:!0,id:t,openNativeElementsPanel:!0,rendererID:e,scrollIntoView:!0})}}),[a,_,t,i]),g=(0,r.useCallback)((()=>{if(null!==t){const e=i.getRendererIDForElement(t);null!==e&&a.send("logElementToConsole",{id:t,rendererID:e})}}),[a,t,i]),b=null!=d&&d.isErrored,w=null!=d?d.targetErrorBoundaryID:null,k=null!==_&&_.type===W&&null!=d&&null!=d.state,E=!o&&null!=d&&d.canToggleError,D=!s&&null!=d&&d.canToggleSuspense,A=(0,r.useSyncExternalStore)((function(e){return window.addEventListener(y,e),function(){window.removeEventListener(y,e)}}),(function(){return function(){try{const e=de(y);if(null!=e)return JSON.parse(e)}catch(e){}return""}()})),C=(0,r.useCallback)((()=>{if(null==d||null==w)return;const e=i.getRendererIDForElement(w);null!==e&&(w!==d.id&&n({type:"SELECT_ELEMENT_BY_ID",payload:w}),a.send("overrideError",{id:w,rendererID:e,forceError:!b}))}),[a,n,b,w]),M=(0,r.useCallback)((()=>{let e=null,t=_;for(;null!==t;){if(t.type===W){e=t;break}t=t.parentID>0?i.getElementByID(t.parentID):null}if(null===e)u({id:"InspectedElement",type:"SHOW",content:r.createElement(Us,null)});else{const r=e.id;e!==_&&n({type:"SELECT_ELEMENT_BY_ID",payload:r});const t=i.getRendererIDForElement(r);null!==t&&a.send("overrideSuspense",{id:r,rendererID:t,forceFallback:!k})}}),[a,n,_,k,u,i]);if(null===_)return r.createElement("div",{className:Uc.InspectedElement},r.createElement("div",{className:Uc.TitleRow}));let x=null;return _.isStrictModeNonCompliant&&(x=r.createElement("a",{className:Uc.StrictModeNonCompliant,href:"https://react.dev/reference/react/StrictMode",rel:"noopener noreferrer",target:"_blank",title:"This component is not running in StrictMode. Click to learn more."},r.createElement(ft,{type:"strict-mode-non-compliant"}))),r.createElement("div",{className:Uc.InspectedElement},r.createElement("div",{className:Uc.TitleRow,"data-testname":"InspectedElement-Title"},x,_.key&&r.createElement(r.Fragment,null,r.createElement("div",{className:Uc.Key,title:`key "${_.key}"`},_.key),r.createElement("div",{className:Uc.KeyArrow})),r.createElement("div",{className:Uc.SelectedComponentName},r.createElement("div",{className:_.isStrictModeNonCompliant?Uc.StrictModeNonCompliant:Uc.Component,title:_.displayName},_.displayName)),!!A&&null!=d&&null!=d.source&&null!=p&&r.createElement(r.Suspense,{fallback:r.createElement(Sc,{height:16,width:24})},r.createElement(Oc,{editorURL:A,source:d.source,symbolicatedSourcePromise:p})),E&&r.createElement(za,{isChecked:b,onChange:C,title:b?"Clear the forced error":"Force the selected component into an errored state"},r.createElement(Yt,{type:"error"})),D&&r.createElement(za,{isChecked:k,onChange:M,title:k?"Unsuspend the selected component":"Suspend the selected component"},r.createElement(Yt,{type:"suspend"})),i.supportsNativeInspection&&r.createElement(Ya,{onClick:S,title:"Inspect the matching DOM element"},r.createElement(Yt,{type:"view-dom"})),!l&&r.createElement(Ya,{onClick:g,title:"Log this component data to the console"},r.createElement(Yt,{type:"log-data"})),!c&&r.createElement(Vc,{canViewSource:d?.canViewSource,source:d?.source,symbolicatedSourcePromise:p})),null===d&&r.createElement("div",{className:Uc.Loading},"Loading..."),null!==d&&null!=p&&r.createElement(Dc,{key:t,element:_,hookNames:f,inspectedElement:d,parseHookNames:v,toggleParseHookNames:h,symbolicatedSourcePromise:p}))}const jc={Tab:"azF2eH48iOjBz6HDO9Ow",TabCurrent:"LPaApyuVrcOGD5qUoWQn",TabDisabled:"dLYZXm2g99I3865s06gd",TabSizeNavigation:"z_9NPSY02xL5C_rKNbEi",TabSizeProfiler:"bj5wjZcEkvD4cnSPS9kl",TabSizeSettings:"E9aLzYNgVRQ5FElw5qvk",Input:"yX6Fn0DUz_VpvVLkzsUL",IconSizeNavigation:"nNtZVyEhqWkkeV_FcVUV",IconSizeProfiler:"llzBtlsevYNSK2AemPVE",IconSizeSettings:"z6c_Nl9j9w9_Ysw2pjBz",IconDisabled:"WvobeGrHZIFWyhQtt4q4",TabLabelNavigation:"qyile5WCa81wrByw4pnO",TabLabelProfiler:"ZXKpfJKiQo9w3SECMfLW",TabLabelSettings:"hQi4CAO4RGdWxa7jdQuX",VRule:"IXUXIDmjzs4W4EylMtEP"};function $c({currentTab:e,disabled:t=!1,id:n,selectTab:a,tabs:i,type:o}){if(!i.some((r=>null!==r&&r.id===e))){const e=i.find((e=>null!==e));a(e.id)}const s=(0,r.useCallback)((({currentTarget:e})=>a(e.value)),[a]),l=(0,r.useCallback)((e=>{switch(e.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":e.stopPropagation()}}),[]);let c,u,f;switch(o){case"navigation":c=jc.IconSizeNavigation,u=jc.TabLabelNavigation,f=jc.TabSizeNavigation;break;case"profiler":c=jc.IconSizeProfiler,u=jc.TabLabelProfiler,f=jc.TabSizeProfiler;break;case"settings":c=jc.IconSizeSettings,u=jc.TabLabelSettings,f=jc.TabSizeSettings;break;default:throw Error(`Unsupported type "${o}"`)}return r.createElement(r.Fragment,null,i.map((i=>{if(null===i)return r.createElement("div",{key:"VRule",className:jc.VRule});const{icon:o,id:d,label:v,title:h}=i;let m=r.createElement("label",{className:[f,t?jc.TabDisabled:jc.Tab,t||e!==d?"":jc.TabCurrent].join(" "),"data-testname":`TabBarButton-${d}`,key:d,onKeyDown:l,onMouseDown:()=>a(d)},r.createElement("input",{type:"radio",className:jc.Input,checked:e===d,disabled:t,name:n,value:d,onChange:s}),r.createElement(ft,{className:`${t?jc.IconDisabled:""} ${c}`,type:o}),r.createElement("span",{className:u},v));return h&&(m=r.createElement(La,{key:d,label:h},m)),m})))}const Xc={Settings:"or1HUOer1f963ovFvr5c",Setting:"tUXIEFu9F_lS1kviOJqI",OpenInURLSetting:"nJPtP4BdOmVGjNgNGrft",OptionGroup:"LF27cZYKRmoLaJO_HhHw",RadioLabel:"gL712cWer1wW2mjuBxkL",Spacer:"zt7jGYrjsD3qQHNXrN4u",CheckboxOption:"WOW_X2PmrOQlYsEdM3Xs",HRule:"QdRJQ2ye3WuBBFQd5Erc",Header:"RwHFQRMh3YU9unsmEpEV",ButtonIcon:"EIoKgKJ5y33CHiAHF9vg",NoFiltersCell:"uMyt1rJ3xueXHSqObKvX",Table:"IUAA3lAy01Gi5SZLApio",TableRow:"GXiKg5qR1JJ41p147V6w",TableCell:"t42VqdEeUQxAZuw2K6dw",Input:"aX39zH4zrFhnSC6I9m_Z",InvalidRegExp:"r8Qvw_BhB46V8Zk5t8id",ToggleOffInvalid:"ncG7Mh41PuWfpuGMeP07",ToggleOnInvalid:"LnhMDoxboSJz70znSVVs",ToggleOff:"vTLPI_vaoDzDutbGmwDJ",ToggleOn:"zyhbm27fRcSESereFAhG",ToggleInsideOff:"R7l0YlZcT6dEVIL_Q3YO",ToggleInsideOn:"HXWZgik4UCPBgIWd3K0Y",ReleaseNotes:"z5hEC7NmGsfJUbrLoAiK",ReleaseNotesLink:"So46zBz2hS7SSvk1M1Db",StrictModeLink:"yfb_Pqtyw8opvNhmcfY6",Warning:"dj8ag9rXvtGe07NoRnoz",VersionsList:"BEsTZEoadFfmBZ7GXvj8"},Gc="vscode://file/{path}:{line}";function Kc(e){const t=(0,r.useContext)(mr),{parseHookNames:n,setParseHookNames:a}=(0,r.useContext)(jt),i=zt((0,r.useMemo)((()=>({getCurrentValue:()=>t.collapseNodesByDefault,subscribe:e=>(t.addListener("collapseNodesByDefault",e),()=>t.removeListener("collapseNodesByDefault",e))})),[t])),o=(0,r.useCallback)((({currentTarget:e})=>{t.collapseNodesByDefault=!e.checked}),[t]),s=(0,r.useCallback)((({currentTarget:e})=>{a(e.checked)}),[a]),[l,c]=Pt(D,"custom"),[u,f]=Pt(y,""),[d,v]=(0,r.useState)((()=>[...t.componentFilters])),h=(0,r.useCallback)((()=>{v((e=>[...e,{type:j,value:L,isEnabled:!0}]))}),[]),m=(0,r.useCallback)(((e,r)=>{v((t=>{const n=[...t],a=t.indexOf(e);return a>=0&&(r===j?n[a]={type:j,isEnabled:e.isEnabled,value:L}:r===$?n[a]={type:$,isEnabled:e.isEnabled,isValid:!0,value:""}:r===X?n[a]={type:X,isEnabled:e.isEnabled,isValid:!0,value:""}:r===G&&(n[a]={type:G,isEnabled:e.isEnabled,isValid:!0})),n}))}),[]),p=(0,r.useCallback)(((e,r)=>{if(e.type!==j)throw Error("Invalid value for element type filter");v((t=>{const n=[...t];if(e.type===j){const a=t.indexOf(e);a>=0&&(n[a]={...e,value:r})}return n}))}),[]),_=(0,r.useCallback)(((e,r)=>{if(e.type===j)throw Error("Invalid value for element type filter");v((t=>{const n=[...t];if(e.type===$||e.type===X){const a=t.indexOf(e);if(a>=0){let t=!0;try{new RegExp(r)}catch(e){t=!1}n[a]={...e,isValid:t,value:r}}}return n}))}),[]),S=(0,r.useCallback)((e=>{v((r=>{const t=[...r];return t.splice(e,1),t}))}),[]),g=(0,r.useCallback)(((e,r)=>{v((t=>{const n=[...t],a=t.indexOf(e);return a>=0&&(e.type===j||e.type===$||e.type===X||e.type===G)&&(n[a]={...n[a],isEnabled:r}),n}))}),[]),b=(0,r.useRef)(d);return(0,r.useEffect)((()=>(b.current=d,()=>{})),[d]),(0,r.useEffect)((()=>()=>{t.componentFilters=[...b.current]}),[t]),r.createElement("div",{className:Xc.Settings},r.createElement("label",{className:Xc.Setting},r.createElement("input",{type:"checkbox",checked:!i,onChange:o})," ","Expand component tree by default"),r.createElement("label",{className:Xc.Setting},r.createElement("input",{type:"checkbox",checked:n,onChange:s})," ","Always parse hook names from source"," ",r.createElement("span",{className:Xc.Warning},"(may be slow)")),r.createElement("label",{className:Xc.OpenInURLSetting},"Open in Editor URL:"," ",r.createElement("select",{className:Xc.Select,value:l,onChange:({currentTarget:e})=>{const r=e.value;c(r),"vscode"===r?f(Gc):"custom"===r&&f("")}},r.createElement("option",{value:"vscode"},"VS Code"),r.createElement("option",{value:"custom"},"Custom")),"custom"===l&&r.createElement("input",{className:Xc.Input,type:"text",placeholder:"",value:u,onChange:e=>{f(e.target.value)}})),r.createElement("div",{className:Xc.Header},"Hide components where..."),r.createElement("table",{className:Xc.Table},r.createElement("tbody",null,0===d.length&&r.createElement("tr",{className:Xc.TableRow},r.createElement("td",{className:Xc.NoFiltersCell},"No filters have been added.")),d.map(((e,t)=>r.createElement("tr",{className:Xc.TableRow,key:t},r.createElement("td",{className:Xc.TableCell},r.createElement(za,{className:!1!==e.isValid?"":Xc.InvalidRegExp,isChecked:e.isEnabled,onChange:r=>g(e,r),title:!1===e.isValid?"Filter invalid":e.isEnabled?"Filter enabled":"Filter disabled"},r.createElement(qc,{isEnabled:e.isEnabled,isValid:null==e.isValid||!0===e.isValid}))),r.createElement("td",{className:Xc.TableCell},r.createElement("select",{className:Xc.Select,value:e.type,onChange:({currentTarget:r})=>m(e,parseInt(r.value,10))},r.createElement("option",{value:$},"name"),r.createElement("option",{value:j},"type"),r.createElement("option",{value:G},"hoc"))),r.createElement("td",{className:Xc.TableCell},e.type===j&&"equals",(e.type===X||e.type===$)&&"matches"),r.createElement("td",{className:Xc.TableCell},e.type===j&&r.createElement("select",{className:Xc.Select,value:e.value,onChange:({currentTarget:r})=>p(e,parseInt(r.value,10))},r.createElement("option",{value:I},"class"),r.createElement("option",{value:O},"context"),r.createElement("option",{value:F},"function"),r.createElement("option",{value:P},"forward ref"),r.createElement("option",{value:L},"dom nodes (e.g.
)"),r.createElement("option",{value:z},"memo"),r.createElement("option",{value:B},"other"),r.createElement("option",{value:V},"profiler"),r.createElement("option",{value:W},"suspense")),(e.type===X||e.type===$)&&r.createElement("input",{className:Xc.Input,type:"text",placeholder:"Regular expression",onChange:({currentTarget:r})=>_(e,r.value),value:e.value})),r.createElement("td",{className:Xc.TableCell},r.createElement(Ya,{onClick:()=>S(t),title:"Delete filter"},r.createElement(Yt,{type:"delete"})))))))),r.createElement(Ya,{onClick:h,title:"Add filter"},r.createElement(Yt,{className:Xc.ButtonIcon,type:"add"}),"Add filter"),d.length>0&&r.createElement(Ya,{onClick:()=>{v([])},title:"Delete all filters"},r.createElement(Yt,{className:Xc.ButtonIcon,type:"delete"}),"Delete all filters"))}function qc({isEnabled:e,isValid:t}){let n;return n=t?e?Xc.ToggleOn:Xc.ToggleOff:e?Xc.ToggleOnInvalid:Xc.ToggleOffInvalid,r.createElement("div",{className:n},r.createElement("div",{className:e?Xc.ToggleInsideOn:Xc.ToggleInsideOff}))}function Yc(e){const{appendComponentStack:t,breakOnConsoleErrors:n,hideConsoleLogsInStrictMode:a,setAppendComponentStack:i,setBreakOnConsoleErrors:o,setShowInlineWarningsAndErrors:s,showInlineWarningsAndErrors:l,setHideConsoleLogsInStrictMode:c}=(0,r.useContext)(jt);return r.createElement("div",{className:Xc.Settings},r.createElement("div",{className:Xc.Setting},r.createElement("label",null,r.createElement("input",{type:"checkbox",checked:t,onChange:({currentTarget:e})=>i(e.checked)})," ","Append component stacks to console warnings and errors.")),r.createElement("div",{className:Xc.Setting},r.createElement("label",null,r.createElement("input",{type:"checkbox",checked:l,onChange:({currentTarget:e})=>s(e.checked)})," ","Show inline warnings and errors.")),r.createElement("div",{className:Xc.Setting},r.createElement("label",null,r.createElement("input",{type:"checkbox",checked:n,onChange:({currentTarget:e})=>o(e.checked)})," ","Break on warnings")),r.createElement("div",{className:Xc.Setting},r.createElement("label",null,r.createElement("input",{type:"checkbox",checked:a,onChange:({currentTarget:e})=>c(e.checked)})," ","Hide logs during additional invocations in"," ",r.createElement("a",{className:Xc.StrictModeLink,target:"_blank",rel:"noopener noreferrer",href:"https://react.dev/reference/react/StrictMode"},"Strict Mode"))))}function Qc(e){const{displayDensity:t,setDisplayDensity:n,setTheme:a,setTraceUpdatesEnabled:i,theme:o,traceUpdatesEnabled:s}=(0,r.useContext)(jt),{backendVersion:l,supportsTraceUpdates:c}=(0,r.useContext)(mr),u="5.2.0-827cbea417",f=l&&l!==u;return r.createElement("div",{className:Xc.Settings},r.createElement("div",{className:Xc.Setting},r.createElement("div",{className:Xc.RadioLabel},"Theme"),r.createElement("select",{className:Xc.Select,value:o,onChange:({currentTarget:e})=>a(e.value)},r.createElement("option",{value:"auto"},"Auto"),r.createElement("option",{value:"light"},"Light"),r.createElement("option",{value:"dark"},"Dark"))),r.createElement("div",{className:Xc.Setting},r.createElement("div",{className:Xc.RadioLabel},"Display density"),r.createElement("select",{className:Xc.Select,value:t,onChange:({currentTarget:e})=>n(e.value)},r.createElement("option",{value:"compact"},"Compact"),r.createElement("option",{value:"comfortable"},"Comfortable"))),c&&r.createElement("div",{className:Xc.Setting},r.createElement("label",null,r.createElement("input",{type:"checkbox",checked:s,onChange:({currentTarget:e})=>i(e.checked)})," ","Highlight updates when components render.")),r.createElement("div",{className:Xc.ReleaseNotes},f&&r.createElement("div",null,r.createElement("ul",{className:Xc.VersionsList},r.createElement("li",null,r.createElement(Jc,{label:"DevTools backend version:",version:l})),r.createElement("li",null,r.createElement(Jc,{label:"DevTools frontend version:",version:u})))),!f&&r.createElement(Jc,{label:"DevTools version:",version:u})))}function Jc({label:e,version:t}){const n=(0,r.useMemo)((()=>function(e){if(!e)return null;const r=e.replace(/^(\d+)\.(\d+)\.(\d+).*/,"$1$2$3");return`${Mt}#${r}`}(t)),[t]);return null==t?null:r.createElement(r.Fragment,null,e," ",r.createElement("a",{className:Xc.ReleaseNotesLink,target:"_blank",rel:"noopener noreferrer",href:n},t))}const Zc=(0,r.createContext)(null);function eu({children:e}){const t=(0,r.useContext)(mr),{selectedElementID:n}=(0,r.useContext)(it),a=(0,r.useContext)(ot),{profilerStore:i}=t,o=(0,r.useMemo)((()=>({getCurrentValue:()=>({didRecordCommits:i.didRecordCommits,isProcessingData:i.isProcessingData,isProfiling:i.isProfiling,profilingData:i.profilingData,supportsProfiling:t.rootSupportsBasicProfiling}),subscribe:e=>(i.addListener("profilingData",e),i.addListener("isProcessingData",e),i.addListener("isProfiling",e),t.addListener("rootSupportsBasicProfiling",e),()=>{i.removeListener("profilingData",e),i.removeListener("isProcessingData",e),i.removeListener("isProfiling",e),t.removeListener("rootSupportsBasicProfiling",e)})})),[i,t]),{didRecordCommits:s,isProcessingData:l,isProfiling:c,profilingData:u,supportsProfiling:f}=zt(o),[d,v]=(0,r.useState)(null),[h,m]=(0,r.useState)(null),[p,_]=(0,r.useState)(null),[S,g]=(0,r.useState)(null),b=(0,r.useCallback)(((e,r)=>{_(e),g(r),null!==e&&null!==u&&!1===u.imported&&t.containsElement(e)&&a({type:"SELECT_ELEMENT_BY_ID",payload:e})}),[a,_,g,t,u]),w=(0,r.useCallback)((e=>{b(null,null),m(e)}),[m,b]);d!==u&&(0,qn.unstable_batchedUpdates)((()=>{v(u);const e=null!==u?u.dataForRoots:null;if(null!=e){const r=e.keys().next().value||null;if(null===h||!e.has(h)){let a=null;null!==n&&(a=t.getRootIDForElement(n)),null!==a&&e.has(a)?w(a):w(r)}}}));const[k,E]=Pt("React::DevTools::isCommitFilterEnabled",!1),[y,D]=Pt("minCommitDuration",0),[A,C]=(0,r.useState)(null),[M,x]=Pt("React::DevTools::Profiler::defaultTab","flame-chart",(e=>{Wt({event_name:"profiler-tab-changed",metadata:{tabId:e}})})),T=(0,r.useCallback)((()=>{Wt({event_name:"profiling-start",metadata:{current_tab:M}}),t.profilerStore.startProfiling()}),[t,M]),H=(0,r.useCallback)((()=>t.profilerStore.stopProfiling()),[t]);c&&(0,qn.unstable_batchedUpdates)((()=>{null!==A&&C(null),null!==p&&(_(null),g(null))}));const N=(0,r.useMemo)((()=>({selectedTabID:M,selectTab:x,didRecordCommits:s,isProcessingData:l,isProfiling:c,profilingData:u,startProfiling:T,stopProfiling:H,supportsProfiling:f,rootID:h,setRootID:w,isCommitFilterEnabled:k,setIsCommitFilterEnabled:E,minCommitDuration:y,setMinCommitDuration:D,selectedCommitIndex:A,selectCommitIndex:C,selectedFiberID:p,selectedFiberName:S,selectFiber:b})),[M,x,s,l,c,u,T,H,f,h,m,w,k,E,y,D,A,C,p,S,b]);return r.createElement(Zc.Provider,{value:N},e)}function ru(e){const{isCommitFilterEnabled:t,minCommitDuration:n,setIsCommitFilterEnabled:a,setMinCommitDuration:i}=(0,r.useContext)(Zc),o=(0,r.useContext)(mr),s=zt((0,r.useMemo)((()=>({getCurrentValue:()=>o.recordChangeDescriptions,subscribe:e=>(o.addListener("recordChangeDescriptions",e),()=>o.removeListener("recordChangeDescriptions",e))})),[o])),l=(0,r.useCallback)((({currentTarget:e})=>{o.recordChangeDescriptions=e.checked}),[o]),c=(0,r.useCallback)((e=>{const r=parseFloat(e.currentTarget.value);i(Number.isNaN(r)||r<=0?0:r)}),[i]),u=(0,r.useCallback)((e=>{const r=e.currentTarget.checked;a(r),r&&null!==f.current&&f.current.focus()}),[a]),f=(0,r.useRef)(null);return r.createElement("div",{className:Xc.Settings},r.createElement("div",{className:Xc.Setting},r.createElement("label",null,r.createElement("input",{type:"checkbox",checked:s,onChange:l})," ","Record why each component rendered while profiling.")),r.createElement("div",{className:Xc.Setting},r.createElement("label",null,r.createElement("input",{checked:t,onChange:u,type:"checkbox"})," ","Hide commits below")," ",r.createElement("input",{className:Xc.Input,onChange:c,ref:f,type:"number",value:n})," ","(ms)"))}Zc.displayName="ProfilerContext";const tu={Background:"eMk7OK1dSU4XuQKUmWp0",Modal:"d9G5s2h3mDlCu62lRtbP",Spacer:"jbn0ZHmV4PmusgY73fFS",Tabs:"kf0dDWEgXidq8lUyeIUe",Content:"SXNg3Gs7j4CMOilBuQfo"};function nu(e){const{isModalShowing:t,setIsModalShowing:n}=(0,r.useContext)(No),a=(0,r.useContext)(mr),{profilerStore:i}=a;return zt((0,r.useMemo)((()=>({getCurrentValue:()=>i.isProfiling,subscribe:e=>(i.addListener("isProfiling",e),()=>i.removeListener("isProfiling",e))})),[i]))&&t&&n(!1),t?r.createElement(au,null):null}function au(e){const{setIsModalShowing:t}=(0,r.useContext)(No),n=(0,r.useCallback)((()=>t(!1)),[t]),[a,i]=Pt("React::DevTools::selectedSettingsTabID","general"),o=(0,r.useRef)(null);Lt(o,n),(0,r.useEffect)((()=>{null!==o.current&&o.current.focus()}),[o]);let s=null;switch(a){case"components":s=r.createElement(Kc,null);break;case"debugging":s=r.createElement(Yc,null);break;case"general":s=r.createElement(Qc,null);break;case"profiler":s=r.createElement(ru,null)}return r.createElement("div",{className:tu.Background},r.createElement("div",{className:tu.Modal,ref:o},r.createElement("div",{className:tu.Tabs},r.createElement($c,{currentTab:a,id:"Settings",selectTab:i,tabs:iu,type:"settings"}),r.createElement("div",{className:tu.Spacer}),r.createElement(Ya,{onClick:n,title:"Close settings dialog"},r.createElement(Yt,{type:"close"}))),r.createElement("div",{className:tu.Content},s)))}const iu=[{id:"general",icon:"settings",label:"General"},{id:"debugging",icon:"bug",label:"Debugging"},{id:"components",icon:"components",label:"Components"},{id:"profiler",icon:"profiler",label:"Profiler"}],ou={Components:"sq7P_up0IVLFeviKrLng",TreeWrapper:"mtKVxGxGerKyM404mgS6",InspectedElementWrapper:"zBXCQOyxTkno88EftTO3",ResizeBarWrapper:"LvlXDd_vWgrnA_2hlp6P",ResizeBar:"KruXWRv8AZhJAyJ4mgCu",Loading:"Fto6ZGpW1Z2LYY_Tb3Uz"};function su(){return r.createElement("div",{className:ou.Loading},"Loading...")}const lu="React::DevTools::createResizeReducer",cu=600,uu=50;function fu(){let e=.65,r=.5;try{let t=de(lu);null!=t&&(t=JSON.parse(t),e=t.horizontalPercentage,r=t.verticalPercentage)}catch(e){}return{horizontalPercentage:e,isResizing:!1,verticalPercentage:r}}function du(e,r){switch(r.type){case"ACTION_SET_IS_RESIZING":return{...e,isResizing:r.payload};case"ACTION_SET_HORIZONTAL_PERCENTAGE":return{...e,horizontalPercentage:r.payload};case"ACTION_SET_VERTICAL_PERCENTAGE":return{...e,verticalPercentage:r.payload};default:return e}}function vu(e,r,t){null!==e&&null!==r&&e.style.setProperty(`--${r}-resize-percentage`,`${t}%`)}const hu=Ds((function(e){const t=(0,r.useRef)(null),n=(0,r.useRef)(null),[a,i]=(0,r.useReducer)(du,null,fu),{horizontalPercentage:o,verticalPercentage:s}=a;(0,r.useLayoutEffect)((()=>{const e=n.current;vu(e,"horizontal",100*o),vu(e,"vertical",100*s)}),[]),(0,r.useEffect)((()=>{const e=setTimeout((()=>{ve(lu,JSON.stringify({horizontalPercentage:o,verticalPercentage:s}))}),500);return()=>clearTimeout(e)}),[o,s]);const{isResizing:l}=a;let c,u;return l&&(u=()=>i({type:"ACTION_SET_IS_RESIZING",payload:!1}),c=e=>{const r=n.current,a=t.current;if(!l||null===a||null===r)return;e.preventDefault();const o=function(e){if(null!=e){const{width:r}=e.getBoundingClientRect();return r>cu?"horizontal":"vertical"}return null}(a),{height:s,width:c,left:u,top:f}=a.getBoundingClientRect(),d="horizontal"===o?e.clientX-u:e.clientY-f;if(d>uu&&d<("horizontal"===o?c-uu:s-uu)){const e="horizontal"===o?c:s,t="horizontal"===o?"ACTION_SET_HORIZONTAL_PERCENTAGE":"ACTION_SET_VERTICAL_PERCENTAGE";vu(r,o,d/e*100),i({type:t,payload:d/e})}}),r.createElement(Ro,null,r.createElement(di,null,r.createElement("div",{ref:t,className:ou.Components,onMouseMove:c,onMouseLeave:u,onMouseUp:u},r.createElement(r.Fragment,null,r.createElement("div",{ref:n,className:ou.TreeWrapper},r.createElement(Go,null)),r.createElement("div",{className:ou.ResizeBarWrapper},r.createElement("div",{onMouseDown:()=>i({type:"ACTION_SET_IS_RESIZING",payload:!0}),className:ou.ResizeBar})),r.createElement("div",{className:ou.InspectedElementWrapper},r.createElement(ic,null,r.createElement(Os,null,r.createElement(r.Suspense,{fallback:r.createElement(su,null)},r.createElement(Ml,null,r.createElement(Wc,null)))))),r.createElement(Bs,null),r.createElement(nu,null)))))})),mu=(0,r.createContext)(null);function pu({children:e}){const t=(0,r.useRef)(null),[n,a]=(0,r.useState)(null),i=(0,r.useContext)(mr),o=(0,r.useSyncExternalStore)((function(e){return i.addListener("rootSupportsTimelineProfiling",e),function(){i.removeListener("rootSupportsTimelineProfiling",e)}}),(function(){return i.rootSupportsTimelineProfiling})),s=(0,r.useSyncExternalStore)((function(e){return i.profilerStore.addListener("isProcessingData",e),i.profilerStore.addListener("profilingData",e),function(){i.profilerStore.removeListener("isProcessingData",e),i.profilerStore.removeListener("profilingData",e)}}),(function(){return i.profilerStore.profilingData?.timelineData||null})),l=(0,r.useMemo)((()=>{const e=new Set,r=new Set,t={offset:0,length:0},n={horizontalScrollState:t,onHorizontalScrollStateChange:r=>{e.add(r)},onSearchRegExpStateChange:e=>{r.add(e)},searchRegExp:null,updateHorizontalScrollState:r=>{t.offset===r.offset&&t.length===r.length||(t.offset=r.offset,t.length=r.length,e.forEach((e=>{e(r)})))},updateSearchRegExpState:e=>{n.searchRegExp=e,r.forEach((r=>{r(e)}))},viewToMutableViewStateMap:new Map};return n}),[n]),[c,u]=(0,r.useState)(null),f=(0,r.useMemo)((()=>({file:n,inMemoryTimelineData:s,isTimelineSupported:o,searchInputContainerRef:t,setFile:a,viewState:l,selectEvent:u,selectedEvent:c})),[n,s,o,a,l,u,c]);return r.createElement(mu.Provider,{value:f},e)}function _u(){const e=(0,r.useContext)(mr),{didRecordCommits:t,isProfiling:n}=(0,r.useContext)(Zc),{file:a,setFile:i}=(0,r.useContext)(mu),{profilerStore:o}=e,s=t,l=null!==a;return r.createElement(Ya,{disabled:n||!(s||l),onClick:()=>{s&&o.clear(),l&&i(null)},title:"Clear profiling data"},r.createElement(Yt,{type:"clear"}))}mu.displayName="TimelineContext";const Su={NoCommitData:"L8woOxFUxxEIixztHQ7F",Header:"AtobNEaumeuDxis8vMZL",FilterMessage:"wNUSnerUEet4FbVLoMYW"};function gu(e){return r.createElement("div",{className:Su.NoCommitData},r.createElement("div",{className:Su.Header},"There is no data matching the current filter criteria."),r.createElement("div",{className:Su.FilterMessage},"Try adjusting the commit filter in Profiler settings."))}const bu=30,wu=5,ku={Group:"nxmnW8DZWX5ncv9cnvFA",Rect:"UnrCr_TjeWWD_jCqAUG3",ForeignObject:"nKkkaaYNee8JgVSmCnbu",Div:"p9pnq6uefSWIZs0uyvsm"},Eu=35;function yu({color:e,height:t,isDimmed:n=!1,label:a,onClick:i,onMouseEnter:o,onMouseLeave:s,onDoubleClick:l,textStyle:c,width:u,x:f,y:d}){return r.createElement("g",{className:ku.Group,transform:`translate(${f},${d})`},r.createElement("rect",{width:u,height:t,fill:e,onClick:i,onMouseEnter:o,onMouseLeave:s,onDoubleClick:l,className:ku.Rect,style:{opacity:n?.5:1}}),u>=Eu&&r.createElement("foreignObject",{width:u,height:t,className:ku.ForeignObject,style:{paddingLeft:f<0?-f:0,opacity:n?.75:1,display:u{e.stopPropagation(),u(r,t)}),[u]),_=()=>{o()},S=parseInt(n.top,10),g=h[t],b=s(null!==l?l.offset:0,f);return r.createElement(r.Fragment,null,g.map((e=>{const{didRender:n,id:a,label:o,name:l,offset:u,selfDuration:h,treeBaseDuration:g}=e,w=s(u,f),k=s(g,f);if(k<2)return null;if(w+kb+f)return null;let E="url(#didNotRenderPattern)",y="var(--color-commit-did-not-render-pattern-text)";return n?(E=Xe(h/v),y="var(--color-commit-gradient-text)"):d.has(a)&&(E="var(--color-commit-did-not-render-fill)",y="var(--color-commit-did-not-render-fill-text)"),r.createElement(yu,{color:E,height:m,isDimmed:tp(e,a,l),onMouseEnter:()=>(e=>{const{id:r,name:t}=e;i({id:r,name:t})})(e),onMouseLeave:_,textStyle:{color:y},width:k,x:w-b,y:S})})))}const Au=(0,r.memo)(Du,qr),Cu={Item:"IkCgTd3uBjVma0pkjIWQ",Key:"o966ewEpKp83bg2KkhK9",Label:"_8XubYXHe9_RJazk947v"};function Mu({fiberID:e}){const{profilerStore:t}=(0,r.useContext)(mr),{rootID:n,selectedCommitIndex:a}=(0,r.useContext)(Zc);if(null===a)return null;const{changeDescriptions:i}=t.getCommitData(n,a);if(null===i)return null;const o=i.get(e);if(null==o)return null;const{context:s,didHooksChange:l,hooks:c,isFirstMount:u,props:f,state:d}=o;if(u)return r.createElement("div",{className:Cu.Component},r.createElement("label",{className:Cu.Label},"Why did this render?"),r.createElement("div",{className:Cu.Item},"This is the first time the component rendered."));const v=[];return!0===s?v.push(r.createElement("div",{key:"context",className:Cu.Item},"• Context changed")):"object"==typeof s&&null!==s&&0!==s.length&&v.push(r.createElement("div",{key:"context",className:Cu.Item},"• Context changed:",s.map((e=>r.createElement("span",{key:e,className:Cu.Key},e))))),l&&(Array.isArray(c)?v.push(r.createElement("div",{key:"hooks",className:Cu.Item},"• ",function(e){const r=e.map((e=>e+1));switch(r.length){case 0:return"No hooks changed";case 1:return`Hook ${r[0]} changed`;case 2:return`Hooks ${r[0]} and ${r[1]} changed`;default:return`Hooks ${r.slice(0,r.length-1).join(", ")} and ${r[r.length-1]} changed`}}(c))):v.push(r.createElement("div",{key:"hooks",className:Cu.Item},"• Hooks changed"))),null!==f&&0!==f.length&&v.push(r.createElement("div",{key:"props",className:Cu.Item},"• Props changed:",f.map((e=>r.createElement("span",{key:e,className:Cu.Key},e))))),null!==d&&0!==d.length&&v.push(r.createElement("div",{key:"state",className:Cu.Item},"• State changed:",d.map((e=>r.createElement("span",{key:e,className:Cu.Key},e))))),0===v.length&&v.push(r.createElement("div",{key:"nothing",className:Cu.Item},"The parent component rendered.")),r.createElement("div",null,r.createElement("label",{className:Cu.Label},"Why did this render?"),v)}const xu={Toolbar:"ANH3uQmqdejNNBMFVElK",BadgesContainer:"ktt_CXlygBWE6kn8NPge",Content:"gQwq51H6S25d6j5fprQ6",Component:"lYjHEFZCqsMukwE8ta6U",CurrentCommit:"WfcYLToZgb8sJXT8vsc0"};function Tu({fiberData:e}){const{profilerStore:t}=(0,r.useContext)(mr),{rootID:n,selectedCommitIndex:a}=(0,r.useContext)(Zc),{id:i,name:o}=e,{profilingCache:s}=t;if(null===n||null===a)return null;const l=s.getFiberCommits({fiberID:i,rootID:n}),{nodes:c}=s.getCommitTree({rootID:n,commitIndex:a}),u=c.get(i);let f=null,d=0;for(d=0;d{const r=o.current;if(null!=r){const t=function(e,r){if(null!==e){let t=e;for(;null!=t.parentElement&&"relative"!==t.style.position;)t=t.parentElement;const{height:n,left:a,top:i,width:o}=t.getBoundingClientRect();return{height:n,mouseX:r.clientX-a,mouseY:r.clientY-i,width:o}}return Nu}(i.current,e),{left:n,top:a}=function(e,r){const{height:t,mouseX:n,mouseY:a,width:i}=r;let o=0,s=0;o=a+Iu+e.offsetHeight>=t?a-Iu-e.offsetHeight>0?a-e.offsetHeight-Iu+"px":"0px":`${a+Iu}px`;s=n+Iu+e.offsetWidth>=i?n-Iu-e.offsetWidth>0?n-e.offsetWidth-Iu+"px":"0px":`${n+2*Iu}px`;return{left:s,top:o}}(r,t);r.style.left=n,r.style.top=a}},l=null===n?Hu.hidden:"";return r.createElement("div",{className:Hu.Container,onMouseMove:e=>{s(e)},ref:i},r.createElement("div",{className:`${Hu.Tooltip} ${l} ${t||""}`,ref:o,style:a},n),e)}const Iu=5;const Ou={Container:"fXsETZvykyOnCWEVGTyA",PatternPath:"f8UQT2oHvCCgil4vX43p"};function Fu(){return Fu=Object.assign||function(e){for(var r=1;r{e.stopPropagation(),i(null,null)}),[i]);let l=null,c=null;return null!==a&&(l=o.getCommitTree({commitIndex:a,rootID:n}),c=o.getFlamegraphChartData({commitIndex:a,commitTree:l,rootID:n})),null!=l&&null!=c&&c.depth>0?r.createElement("div",{className:Ou.Container,onClick:s},r.createElement(Ar,null,(({height:e,width:t})=>r.createElement(Lu,{chartData:c,commitTree:l,height:e,width:t})))):r.createElement(gu,null)}function Lu({chartData:e,commitTree:t,height:n,width:a}){const[i,o]=(0,r.useState)(null),{lineHeight:s}=(0,r.useContext)(jt),{selectFiber:l,selectedFiberID:c}=(0,r.useContext)(Zc),{highlightNativeElement:u,clearHighlightNativeElement:f}=Bt(),d=(0,r.useMemo)((()=>{if(null===c)return 0;const r=e.idToDepthMap.get(c);return void 0!==r?r-1:0}),[e,c]),v=(0,r.useMemo)((()=>null!==c&&e.rows[d].find((e=>e.id===c))||null),[e,c,d]),h=(0,r.useCallback)((({id:e,name:r})=>{u(e),o({id:e,name:r})}),[u]),m=(0,r.useCallback)((()=>{f(),o(null)}),[f]),p=(0,r.useMemo)((()=>({chartData:e,onElementMouseEnter:h,onElementMouseLeave:m,scaleX:qe(0,null!==v?v.treeBaseDuration:e.baseDuration,0,a),selectedChartNode:v,selectedChartNodeIndex:d,selectFiber:l,width:a})),[e,h,m,v,d,l,a]),_=(0,r.useMemo)((()=>null!==i?r.createElement(Tu,{fiberData:i}):null),[i]);return r.createElement(Ru,{label:_},r.createElement($r,{height:n,innerElementType:zu,itemCount:e.depth,itemData:p,itemSize:s,width:a},Au))}const zu=(0,r.forwardRef)((({children:e,...t},n)=>r.createElement("svg",Fu({ref:n},t),r.createElement("defs",null,r.createElement("pattern",{id:"didNotRenderPattern",patternUnits:"userSpaceOnUse",width:"4",height:"4"},r.createElement("path",{d:"M-1,1 l2,-2 M0,4 l4,-4 M3,5 l2,-2",className:Ou.PatternPath}))),e)));function Bu({data:e,index:t,style:n}){const{chartData:a,onElementMouseEnter:i,onElementMouseLeave:o,scaleX:s,selectedFiberIndex:l,selectFiber:c,width:u}=e,f=a.nodes[t],{lineHeight:d}=(0,r.useContext)(jt),v=(0,r.useCallback)((e=>{e.stopPropagation();const{id:r,name:t}=f;c(r,t)}),[f,c]),h=parseInt(n.top,10);return r.createElement(yu,{color:Xe(f.value/a.maxValue),height:d,isDimmed:t{const{id:e,name:r}=f;i({id:e,name:r})},onMouseLeave:()=>{o()},width:Math.max(wu,s(f.value,u)),x:0,y:h})}const Vu=(0,r.memo)(Bu,qr),Uu={Container:"dCqfL52pEXxTO91bkkNQ"};function Wu(e){const{profilerStore:t}=(0,r.useContext)(mr),{rootID:n,selectedCommitIndex:a,selectFiber:i}=(0,r.useContext)(Zc),{profilingCache:o}=t,s=(0,r.useCallback)((e=>{e.stopPropagation(),i(null,null)}),[i]);let l=null,c=null;return null!==a&&(l=o.getCommitTree({commitIndex:a,rootID:n}),c=o.getRankedChartData({commitIndex:a,commitTree:l,rootID:n})),null!=l&&null!=c&&c.nodes.length>0?r.createElement("div",{className:Uu.Container,onClick:s},r.createElement(Ar,null,(({height:e,width:t})=>r.createElement(ju,{chartData:c,commitTree:l,height:e,width:t})))):r.createElement(gu,null)}function ju({chartData:e,commitTree:t,height:n,width:a}){const[i,o]=(0,r.useState)(null),{lineHeight:s}=(0,r.useContext)(jt),{selectedFiberID:l,selectFiber:c}=(0,r.useContext)(Zc),{highlightNativeElement:u,clearHighlightNativeElement:f}=Bt(),d=(0,r.useMemo)((()=>$u(e,l)),[e,l]),v=(0,r.useCallback)((({id:e,name:r})=>{u(e),o({id:e,name:r})}),[u]),h=(0,r.useCallback)((()=>{f(),o(null)}),[f]),m=(0,r.useMemo)((()=>({chartData:e,onElementMouseEnter:v,onElementMouseLeave:h,scaleX:qe(0,e.nodes[d].value,0,a),selectedFiberID:l,selectedFiberIndex:d,selectFiber:c,width:a})),[e,v,h,l,d,c,a]),p=(0,r.useMemo)((()=>null!==i?r.createElement(Tu,{fiberData:i}):null),[i]);return r.createElement(Ru,{label:p},r.createElement($r,{height:n,innerElementType:"svg",itemCount:e.nodes.length,itemData:m,itemSize:s,width:a},Vu))}const $u=(e,r)=>{if(null===r)return 0;const{nodes:t}=e;for(let e=0;e{i.push(r.createElement("option",{key:t,value:t},e.displayName))}));const o=(0,r.useCallback)((({currentTarget:e})=>{a(parseInt(e.value,10))}),[a]);return null===t||t.dataForRoots.size<=1?null:r.createElement(r.Fragment,null,r.createElement("div",{className:Xu.Spacer}),r.createElement("select",{value:n,onChange:o},i))}const Ku={ActiveRecordToggle:"X3iRH_cmlxUnnqQJPwdk",InactiveRecordToggle:"_Fmh73Tp_hVdvSq0LfwS",DisabledRecordToggle:"D2ZC9ljzCsU1D10UgRfa"};function qu({disabled:e}){const{isProfiling:t,startProfiling:n,stopProfiling:a}=(0,r.useContext)(Zc);let i=Ku.InactiveRecordToggle;return e?i=Ku.DisabledRecordToggle:t&&(i=Ku.ActiveRecordToggle),r.createElement(Ya,{className:i,disabled:e,onClick:t?a:n,testName:"ProfilerToggleButton",title:t?"Stop profiling":"Start profiling"},r.createElement(Yt,{type:"record"}))}const Yu={Profiler:"PQXvlxJHC_mjwS_kG5hZ",LeftColumn:"wOW0mX_KSifasFYp2M07",RightColumn:"qNTcxtkwuoNmuFcG3uNQ",Content:"F9s7klTfnkD_0fKNmX48",Column:"O24130u6b3M44pVmHhCv",Paragraph:"trpdR27polx2zi2M9anI",Row:"MP9kRGAcsvXwBIKtJEjY",LearnMoreRow:"SCM8kzD_pFUd1D02QPtH",Header:"i7tKtcE5WUEZ2bsj4PAy",Toolbar:"P93KFw4qPKJlTiW5iGWi",VRule:"rBTEU03NyiBSbh_F7eBN",Spacer:"puj9ffDcr9TRErtUxYA5",StopRecordingButton:"Nox22y17MWpcgoM0b2sW",ContentFallback:"SLdUfzK4Y4h6B5NNry2P",SnapshotSelectorFallback:"p18y0jnRRFvWc9Aahph6",Link:"qIhKE7GPUn_qxk7BAASy",TimelineSearchInputContainer:"g6w1S218i5WBsiU5d1A3",LearnMoreLink:"hQFhOL9f3ZT4IO97Mr85"};function Qu(){return r.createElement("div",{className:Yu.Column},r.createElement("div",{className:Yu.Header},"No profiling data has been recorded."),r.createElement("div",{className:Yu.Row},"Click the record button ",r.createElement(qu,null)," to start recording."),r.createElement("div",{className:`${Yu.Row} ${Yu.LearnMoreRow}`},"Click"," ",r.createElement("a",{className:Yu.LearnMoreLink,href:"https://fb.me/react-devtools-profiling",rel:"noopener noreferrer",target:"_blank"},"here")," ","to learn more about profiling."))}function Ju(){return r.createElement("div",{className:Yu.Column},r.createElement("div",{className:Yu.Header},"Profiling is in progress..."),r.createElement("div",{className:Yu.Row},"Click the record button ",r.createElement(qu,null)," to stop recording."))}const Zu=window.devicePixelRatio||1,ef=10,rf=1/Zu,tf=[1,2,5,10,20,50,100,200,500,1e3,2e3,5e3];let nf={BACKGROUND:"",INTERNAL_MODULE_FRAME:"",INTERNAL_MODULE_FRAME_HOVER:"",INTERNAL_MODULE_FRAME_TEXT:"",NATIVE_EVENT:"",NATIVE_EVENT_HOVER:"",NETWORK_PRIMARY:"",NETWORK_PRIMARY_HOVER:"",NETWORK_SECONDARY:"",NETWORK_SECONDARY_HOVER:"",PRIORITY_BACKGROUND:"",PRIORITY_BORDER:"",PRIORITY_LABEL:"",USER_TIMING:"",USER_TIMING_HOVER:"",REACT_IDLE:"",REACT_IDLE_HOVER:"",REACT_RENDER:"",REACT_RENDER_HOVER:"",REACT_RENDER_TEXT:"",REACT_COMMIT:"",REACT_COMMIT_HOVER:"",REACT_COMMIT_TEXT:"",REACT_LAYOUT_EFFECTS:"",REACT_LAYOUT_EFFECTS_HOVER:"",REACT_LAYOUT_EFFECTS_TEXT:"",REACT_PASSIVE_EFFECTS:"",REACT_PASSIVE_EFFECTS_HOVER:"",REACT_PASSIVE_EFFECTS_TEXT:"",REACT_RESIZE_BAR:"",REACT_RESIZE_BAR_ACTIVE:"",REACT_RESIZE_BAR_BORDER:"",REACT_RESIZE_BAR_DOT:"",REACT_SCHEDULE:"",REACT_SCHEDULE_HOVER:"",REACT_SUSPENSE_REJECTED_EVENT:"",REACT_SUSPENSE_REJECTED_EVENT_HOVER:"",REACT_SUSPENSE_RESOLVED_EVENT:"",REACT_SUSPENSE_RESOLVED_EVENT_HOVER:"",REACT_SUSPENSE_UNRESOLVED_EVENT:"",REACT_SUSPENSE_UNRESOLVED_EVENT_HOVER:"",REACT_THROWN_ERROR:"",REACT_THROWN_ERROR_HOVER:"",REACT_WORK_BORDER:"",SCROLL_CARET:"",SCRUBBER_BACKGROUND:"",SCRUBBER_BORDER:"",SEARCH_RESULT_FILL:"",TEXT_COLOR:"",TEXT_DIM_COLOR:"",TIME_MARKER_LABEL:"",WARNING_BACKGROUND:"",WARNING_BACKGROUND_HOVER:"",WARNING_TEXT:"",WARNING_TEXT_INVERED:""};function af(e,r){if(e.length!==r.length)return!1;for(var t=0;t=0&&r>=0}function df(e){return[e.origin.y,e.origin.x+e.size.width,e.origin.y+e.size.height,e.origin.x]}function vf(e){const[r,t,n,a]=e;return{origin:{x:a,y:r},size:{width:t-a,height:n-r}}}function hf(e,r){if(0===e.size.width||0===e.size.height||0===r.size.width||0===r.size.height)return!1;const[t,n,a,i]=df(e),[o,s,l,c]=df(r);return!(n{const a=e.getContext("2d",{alpha:!1});return n&&(!function(e,r,t){e.width=t*Zu,e.height=r*Zu,e.style.width=`${t}px`,e.style.height=`${r}px`}(e,r,t),a.scale(Zu,Zu)),a}));class Sf{constructor(e){var r,t,n;n={activeView:null,hoveredView:null},(t="_viewRefs")in(r=this)?Object.defineProperty(r,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[t]=n,this._resetHoveredEvent=e}hasActiveView(){return null!==this._viewRefs.activeView}setCanvas(e,r){this._context=_f(e,r.height,r.width),this._canvasSize=r,this.rootView&&this.rootView.setNeedsDisplay()}displayIfNeeded(){const{rootView:e,_canvasSize:r,_context:t}=this;e&&t&&r&&(e.setFrame({origin:sf,size:r}),e.setVisibleArea({origin:sf,size:r}),e.displayIfNeeded(t,this._viewRefs))}getCurrentCursor(){const{activeView:e,hoveredView:r}=this._viewRefs;return null!==e?e.currentCursor:null!==r?r.currentCursor:null}handleInteraction(e){const r=this.rootView;if(null!=r){const t=this._viewRefs;switch(e.type){case"mousemove":case"wheel-control":case"wheel-meta":case"wheel-plain":case"wheel-shift":const n=t.hoveredView;t.hoveredView=null,r.handleInteractionAndPropagateToSubviews(e,t),null!==n&&null===t.hoveredView&&this._resetHoveredEvent();break;default:r.handleInteractionAndPropagateToSubviews(e,t)}}}}function gf(e){return{view:e,frame:e.frame}}const bf=e=>e,wf=(e,r)=>e.map((e=>({...e,frame:r}))),kf=(e,r)=>{let t=r.origin.y;return e.map((e=>{const n=e.view.desiredSize(),a=n?n.height:r.origin.y+r.size.height-t,i={origin:{x:r.origin.x,y:t},size:{width:r.size.width,height:a}};return t+=a,{...e,frame:i}}))};function Ef(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}class yf{constructor(e,r,t=bf,n=r,a=null){Ef(this,"currentCursor",null),Ef(this,"subviews",[]),Ef(this,"_needsDisplay",!0),Ef(this,"_subviewsNeedDisplay",!1),this._backgroundColor=a||null,this.surface=e,this.frame=r,this._layouter=t,this.visibleArea=n}setNeedsDisplay(){this._needsDisplay=!0,this.superview&&this.superview._setSubviewsNeedDisplay(),this.subviews.forEach((e=>e.setNeedsDisplay()))}_setSubviewsNeedDisplay(){this._subviewsNeedDisplay=!0,this.superview&&this.superview._setSubviewsNeedDisplay()}setFrame(e){uf(this.frame,e)||(this.frame=e,ff(e.size)?this.frame=e:this.frame=cf,this.setNeedsDisplay())}setVisibleArea(e){uf(this.visibleArea,e)||(ff(e.size)?this.visibleArea=e:this.visibleArea=cf,this.setNeedsDisplay())}desiredSize(){this._needsDisplay&&this.layoutSubviews();return function(...e){if(0===e.length)return cf;const[r,...t]=e;return vf(t.map(df).reduce(((e,r)=>{const[t,n,a,i]=e,[o,s,l,c]=r;return[Math.min(t,o),Math.max(n,s),Math.max(a,l),Math.min(i,c)]}),df(r)))}(...this.subviews.map((e=>e.frame))).size}addSubview(e){this.subviews.includes(e)||(this.subviews.push(e),e.superview=this)}removeSubview(e){const r=this.subviews.indexOf(e);-1!==r&&(e.superview=void 0,this.subviews.splice(r,1))}removeAllSubviews(){this.subviews.forEach((e=>e.superview=void 0)),this.subviews=[]}displayIfNeeded(e,r){if((this._needsDisplay||this._subviewsNeedDisplay)&&hf(this.frame,this.visibleArea)&&!function({width:e,height:r}){return e<=0||r<=0}(this.visibleArea.size)){this.layoutSubviews(),this._needsDisplay&&(this._needsDisplay=!1),this._subviewsNeedDisplay&&(this._subviewsNeedDisplay=!1);const t=this.visibleArea,n=new Path2D;n.rect(t.origin.x,t.origin.y,t.size.width,t.size.height),e.save(),e.clip(n),e.beginPath(),this.draw(e,r),e.restore()}}layoutSubviews(){const{frame:e,_layouter:r,subviews:t,visibleArea:n}=this;const a=r(t.map(gf),e);a.forEach((({view:e,frame:r})=>e.setFrame(r))),t.forEach(((e,r)=>{hf(n,e.frame)?e.setVisibleArea(mf(n,e.frame)):e.setVisibleArea(cf)}))}draw(e,r){const{subviews:t,visibleArea:n}=this;t.forEach((t=>{hf(n,t.visibleArea)&&t.displayIfNeeded(e,r)}));const a=this._backgroundColor;if(null!==a){const r=this.desiredSize();n.size.height>r.height&&(e.fillStyle=a,e.fillRect(n.origin.x,n.origin.y+r.height,n.size.width,n.size.height-r.height))}}handleInteraction(e,r){}handleInteractionAndPropagateToSubviews(e,r){const{subviews:t,visibleArea:n}=this;if(0===n.size.height)return!1;for(let a=t.length-1;a>=0;a--){const i=t[a];if(hf(n,i.visibleArea)){if(!0===i.handleInteractionAndPropagateToSubviews(e,r))return!0}}return!(!0!==this.handleInteraction(e,r))}}class Df extends yf{draw(e){const{visibleArea:r}=this;e.fillStyle=nf.BACKGROUND,e.fillRect(r.origin.x,r.origin.y,r.size.width,r.size.height)}}function Af(e,r,t){if(Number.isNaN(e)||Number.isNaN(r)||Number.isNaN(t))throw new Error(`Clamp was called with NaN. Args: min: ${e}, max: ${r}, value: ${t}.`);return Math.min(r,Math.max(e,t))}function Cf(e,r){return{offset:Af(-(e.length-r),0,e.offset),length:e.length}}function Mf({state:e,minContentLength:r,maxContentLength:t,containerLength:n}){return{offset:e.offset,length:Af(Math.max(r,n),Math.max(n,t),e.length)}}function xf({state:e,minContentLength:r,maxContentLength:t,containerLength:n}){return Cf(Mf({state:e,minContentLength:r,maxContentLength:t,containerLength:n}),n)}function Tf({state:e,delta:r,containerLength:t}){return Cf({offset:e.offset+r,length:e.length},t)}function Hf({state:e,rangeStart:r,rangeEnd:t,contentLength:n,minContentLength:a,maxContentLength:i,containerLength:o}){const s=Mf({state:{offset:e.offset,length:n*(o/(t-r))},minContentLength:a,maxContentLength:i,containerLength:o});return Cf({offset:-r*(s.length/n),length:s.length},o)}function Nf(e,r){return e.offset===r.offset&&e.length===r.length}const Rf=.25,If=1e3;class Of extends yf{constructor(e,r,t,n,a){var i,o,s;super(e,r),s=!1,(o="_isPanning")in(i=this)?Object.defineProperty(i,o,{value:s,enumerable:!0,configurable:!0,writable:!0}):i[o]=s,this._contentView=t,this._intrinsicContentWidth=n,this._viewState=a,a.onHorizontalScrollStateChange((e=>{this.zoomToRange(e.offset,e.length)})),this.addSubview(t)}setScrollState(e){Nf(xf({state:e,minContentLength:this._intrinsicContentWidth*Rf,maxContentLength:this._intrinsicContentWidth*If,containerLength:this.frame.size.width}),this._viewState.horizontalScrollState)||this.setNeedsDisplay()}zoomToRange(e,r){const t=Hf({state:this._viewState.horizontalScrollState,rangeStart:e,rangeEnd:r,contentLength:this._intrinsicContentWidth,minContentLength:this._intrinsicContentWidth*Rf,maxContentLength:this._intrinsicContentWidth*If,containerLength:this.frame.size.width});this.setScrollState(t)}desiredSize(){return this._contentView.desiredSize()}layoutSubviews(){const{offset:e,length:r}=this._viewState.horizontalScrollState,t={origin:{x:this.frame.origin.x+e,y:this.frame.origin.y},size:{width:r,height:this.frame.size.height}};this._contentView.setFrame(t),super.layoutSubviews()}handleInteraction(e,r){switch(e.type){case"mousedown":this._handleMouseDown(e,r);break;case"mousemove":this._handleMouseMove(e,r);break;case"mouseup":this._handleMouseUp(e,r);break;case"wheel-plain":case"wheel-shift":this._handleWheel(e)}}_handleMouseDown(e,r){pf(e.payload.location,this.frame)&&(this._isPanning=!0,r.activeView=this,this.currentCursor="grabbing")}_handleMouseMove(e,r){const t=pf(e.payload.location,this.frame);if(t&&null===r.hoveredView&&(r.hoveredView=this),r.activeView===this?this.currentCursor="grabbing":t&&(this.currentCursor="grab"),!this._isPanning)return;const{movementX:n,movementY:a}=e.payload.event;if(Math.abs(n)a){if(i<1)return;if("wheel-shift"===e.type)return;const t=function({state:e,multiplier:r,fixedPoint:t,minContentLength:n,maxContentLength:a,containerLength:i}){const o=Mf({state:{offset:e.offset,length:e.length*r},minContentLength:n,maxContentLength:a,containerLength:i});return Cf({offset:t+e.offset-t*(o.length/e.length),length:o.length},i)}({state:this._viewState.horizontalScrollState,multiplier:1+.005*-n,fixedPoint:r.x-this._viewState.horizontalScrollState.offset,minContentLength:this._intrinsicContentWidth*Rf,maxContentLength:this._intrinsicContentWidth*If,containerLength:this.frame.size.width});this._viewState.updateHorizontalScrollState(t)}else{if(a<1)return;const e=Tf({state:this._viewState.horizontalScrollState,delta:-t,containerLength:this.frame.size.width});this._viewState.updateHorizontalScrollState(e)}}}class Ff extends yf{constructor(e,r,t,n,a){super(e,r),this._contentView=t,this._isPanning=!1,this._mutableViewStateKey=a+":VerticalScrollView",this._onChangeCallback=null,this._scrollState={offset:0,length:0},this._viewState=n,this.addSubview(t),this._restoreMutableViewState()}setFrame(e){super.setFrame(e),this._setScrollState(this._scrollState)}desiredSize(){return this._contentView.desiredSize()}draw(e,r){if(super.draw(e,r),this.frame.size.height>15){const r=this._scrollState.offset,t=this._contentView.desiredSize(),n=r,a=this.frame.size.height-t.height-r;if(n<0||a<0){const{visibleArea:r}=this,{x:t,y:i}=r.origin,{width:o,height:s}=r.size,l=t+o/2,c=5,u=l+c,f=l-c;if(n<0){const r=i+3;e.beginPath(),e.moveTo(l,r),e.lineTo(u,r+3),e.lineTo(f,r+3),e.closePath(),e.fillStyle=nf.SCROLL_CARET,e.fill()}if(a<0){const r=i+s-3;e.beginPath(),e.moveTo(l,r),e.lineTo(u,r-3),e.lineTo(f,r-3),e.closePath(),e.fillStyle=nf.SCROLL_CARET,e.fill()}}}}layoutSubviews(){const{offset:e}=this._scrollState,r=this._contentView.desiredSize(),t=this.frame.size.height,n=r?r.height:0,a=Math.max(n,t),i={origin:{x:this.frame.origin.x,y:this.frame.origin.y+e},size:{width:this.frame.size.width,height:a}};this._contentView.setFrame(i),super.layoutSubviews()}handleInteraction(e){switch(e.type){case"mousedown":return this._handleMouseDown(e);case"mousemove":return this._handleMouseMove(e);case"mouseup":return this._handleMouseUp(e);case"wheel-shift":return this._handleWheelShift(e)}}onChange(e){this._onChangeCallback=e}scrollBy(e){const r=Tf({state:this._scrollState,delta:-e,containerLength:this.frame.size.height});return this._setScrollState(r)}_handleMouseDown(e){if(pf(e.payload.location,this.frame)){this.frame.size.heightMath.abs(t))return;const n=Tf({state:this._scrollState,delta:e.payload.event.movementY,containerLength:this.frame.size.height});return this._setScrollState(n),!0}_handleMouseUp(e){this._isPanning&&(this._isPanning=!1)}_handleWheelShift(e){const{location:r,delta:{deltaX:t,deltaY:n}}=e.payload;if(!pf(r,this.frame))return!1;const a=Math.abs(t),i=Math.abs(n);return!(a>i)&&(!(i<1)&&this.scrollBy(n))}_restoreMutableViewState(){this._viewState.viewToMutableViewStateMap.has(this._mutableViewStateKey)?this._scrollState=this._viewState.viewToMutableViewStateMap.get(this._mutableViewStateKey):this._viewState.viewToMutableViewStateMap.set(this._mutableViewStateKey,this._scrollState),this.setNeedsDisplay()}_setScrollState(e){const r=this._contentView.frame.size.height,t=this.frame.size.height,n=xf({state:e,minContentLength:r,maxContentLength:r,containerLength:t});return Nf(n,this._scrollState)?r!==t:(this._scrollState.offset=n.offset,this._scrollState.length=n.length,this.setNeedsDisplay(),null!==this._onChangeCallback&&this._onChangeCallback(n,this.frame.size.height),!0)}}const Pf=new Map;function Lf(e,r){let t=Pf.get(r);return null==t&&(t=e.measureText(r).width,Pf.set(r,t)),t}function zf(e,r,t,n,a){const{fillStyle:i=nf.TEXT_COLOR,fontSize:o=ef,textAlign:s="left"}=a||{};if(t.size.width>6){r.textAlign=s,r.textBaseline="middle",r.font=`${o}px sans-serif`;const{x:a,y:l}=t.origin,c=function(e,r,t){const n=r.length-1;let a=0,i=n,o=0,s=null;for(;a<=i;){const l=Math.floor((a+i)/2),c=l===n?r:r.slice(0,l)+"…";Lf(e,c)<=t?(oe.hideScrollBarIfLessThanHeight}_updateLayoutStateAndResizeBar(e){e<=8&&(e=0),this._layoutState.barOffsetY=e,this._resizeBar.showLabel=0===e}_updateLayoutState(){const{frame:e,_resizingState:r}=this,t=this._subview.desiredSize().height;let n=this._layoutState.barOffsetY;if(r){const{mouseY:t,cursorOffsetInBarFrame:a}=r;n=t-e.origin.y-a}this._updateLayoutStateAndResizeBar(Af(0,t,n))}_updateSubviewFrames(){const{frame:{origin:{x:e,y:r},size:{width:t}},_layoutState:{barOffsetY:n}}=this,a=this._resizeBar.desiredSize();0===n?this._subview.setFrame(Uf):this._subview.setFrame({origin:{x:e,y:r},size:{width:t,height:n}}),this._resizeBar.setFrame({origin:{x:e,y:r+n},size:{width:t,height:a.height}})}_handleClick(e){if(!this._shouldRenderResizeBar())return;if(pf(e.payload.location,this.frame)&&0===this._layoutState.barOffsetY){const e=this._subview.desiredSize();return this._updateLayoutStateAndResizeBar(e.height),this.setNeedsDisplay(),!0}}_handleDoubleClick(e){if(!this._shouldRenderResizeBar())return;return pf(e.payload.location,this.frame)&&this._layoutState.barOffsetY>0?(this._updateLayoutStateAndResizeBar(0),this.setNeedsDisplay(),!0):void 0}_handleMouseDown(e){const r=e.payload.location,t=this._resizeBar.frame;if(pf(r,t)){const e=r.y;return this._resizingState={cursorOffsetInBarFrame:e-t.origin.y,mouseY:e},!0}}_handleMouseMove(e){const{_resizingState:r}=this;if(r)return this._resizingState={...r,mouseY:e.payload.location.y},this.setNeedsDisplay(),!0}_handleMouseUp(e){this._resizingState&&(this._resizingState=null)}getCursorActiveSubView(e){return pf(e.payload.location,this._resizeBar.frame)?this:null}handleInteraction(e,r){switch(e.type){case"click":return this._handleClick(e);case"double-click":return this._handleDoubleClick(e);case"mousedown":return this._handleMouseDown(e);case"mousemove":return this._handleMouseMove(e);case"mouseup":return this._handleMouseUp(e)}}}const jf=40,$f=800;let Xf=null;function Gf(e,t){const n=(0,r.useRef)(!1),a=(0,r.useRef)(!1);(0,r.useEffect)((()=>{const r=e.current;if(!r)return;function i(e){const t=function(e){return Xf&&e.width===Xf.width&&e.height===Xf.height||(Xf={width:e.width,height:e.height,rect:e.getBoundingClientRect()}),Xf.rect}(r);return{x:e.x-t.left,y:e.y-t.top}}const o=e=>{a.current||t({type:"click",payload:{event:e,location:i({x:e.x,y:e.y})}})},s=e=>{a.current||t({type:"double-click",payload:{event:e,location:i({x:e.x,y:e.y})}})},l=e=>{a.current=!1,n.current=!0,t({type:"mousedown",payload:{event:e,location:i({x:e.x,y:e.y})}})},c=e=>{n.current&&(a.current=!0),t({type:"mousemove",payload:{event:e,location:i({x:e.x,y:e.y})}})},u=e=>{n.current=!1,t({type:"mouseup",payload:{event:e,location:i({x:e.x,y:e.y})}})},f=e=>{e.preventDefault(),e.stopPropagation();const r=i({x:e.x,y:e.y}),n=function(e){let r=e.deltaX,t=e.deltaY;return e.deltaMode===WheelEvent.DOM_DELTA_LINE?(r*=jf,t*=jf):e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(r*=$f,t*=$f),{deltaX:r,deltaY:t}}(e);return e.shiftKey?t({type:"wheel-shift",payload:{event:e,location:r,delta:n}}):e.ctrlKey?t({type:"wheel-control",payload:{event:e,location:r,delta:n}}):e.metaKey?t({type:"wheel-meta",payload:{event:e,location:r,delta:n}}):t({type:"wheel-plain",payload:{event:e,location:r,delta:n}}),!1},d=r.ownerDocument;return d.addEventListener("mousemove",c),d.addEventListener("mouseup",u),r.addEventListener("click",o),r.addEventListener("dblclick",s),r.addEventListener("mousedown",l),r.addEventListener("wheel",f),()=>{d.removeEventListener("mousemove",c),d.removeEventListener("mouseup",u),r.removeEventListener("click",o),r.removeEventListener("dblclick",s),r.removeEventListener("mousedown",l),r.removeEventListener("wheel",f)}}),[e,t])}const Kf=(e,r)=>{const[t,n]=e,a=t.view.desiredSize().height>r.size.height?n.view.desiredSize().width:0,i={...t,frame:{origin:t.view.frame.origin,size:{width:r.size.width-a,height:r.size.height}}};return[i,{...n,frame:{origin:{x:i.frame.origin.x+i.frame.size.width,y:r.origin.y},size:{width:a,height:r.size.height}}}]};function qf(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}class Yf extends yf{constructor(e,r,t,n){super(e,r,Kf),qf(this,"_isProcessingOnChange",!1),qf(this,"_isScrolling",!1),qf(this,"_scrollOffset",0),qf(this,"_onVerticalScrollViewChange",((e,r)=>{const t=e.length-r;if(0===t)return;const n=Math.abs(e.offset)/t,a=this._scrollBarView.getMaxScrollThumbY();this._isProcessingOnChange=!0,this._scrollBarView.setScrollThumbY(n*a),this._isProcessingOnChange=!1})),this._contentView=t,this._verticalScrollView=new Ff(e,r,t,n,"VerticalScrollOverflowView"),this._verticalScrollView.onChange(this._onVerticalScrollViewChange),this._scrollBarView=new Zf(e,r,this),this.addSubview(this._verticalScrollView),this.addSubview(this._scrollBarView)}layoutSubviews(){super.layoutSubviews();const e=this._contentView.desiredSize();this._scrollBarView.setContentHeight(e.height)}setScrollOffset(e,r){const t=e-this._scrollOffset;this._isProcessingOnChange||this._verticalScrollView.scrollBy(-t),this._scrollOffset=e,this.setNeedsDisplay()}}function Qf(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}const Jf={origin:{x:0,y:0},size:{width:0,height:0}};class Zf extends yf{constructor(e,r,t){super(e,r),Qf(this,"_contentHeight",0),Qf(this,"_isScrolling",!1),Qf(this,"_scrollBarRect",Jf),Qf(this,"_scrollThumbRect",Jf),this._verticalScrollOverflowView=t}desiredSize(){return{width:14,height:0}}getMaxScrollThumbY(){const{height:e}=this.frame.size;return e-this._scrollThumbRect.size.height}setContentHeight(e){this._contentHeight=e;const{height:r,width:t}=this.frame.size,n={origin:{x:this.frame.origin.x,y:this._scrollThumbRect.origin.y},size:{width:t,height:r*(r/e)}};uf(this._scrollThumbRect,n)||(this._scrollThumbRect=n,this.setNeedsDisplay())}setScrollThumbY(e){const{height:r}=this.frame.size,t=this.getMaxScrollThumbY(),n=Math.max(0,Math.min(t,e));this._scrollThumbRect={...this._scrollThumbRect,origin:{x:this.frame.origin.x,y:n}};const a=n/t*(this._contentHeight-r)*-1;this._verticalScrollOverflowView.setScrollOffset(a,t)}draw(e,r){const{x:t,y:n}=this.frame.origin,{width:a,height:i}=this.frame.size;e.fillStyle=nf.REACT_RESIZE_BAR,e.fillRect(t,n,a,i),e.fillStyle=nf.SCROLL_CARET,e.fillRect(this._scrollThumbRect.origin.x,this._scrollThumbRect.origin.y,this._scrollThumbRect.size.width,this._scrollThumbRect.size.height),e.fillStyle=nf.REACT_RESIZE_BAR_BORDER,e.fillRect(t,n,rf,i)}handleInteraction(e,r){switch(e.type){case"click":this._handleClick(e,r);break;case"mousedown":this._handleMouseDown(e,r);break;case"mousemove":this._handleMouseMove(e,r);break;case"mouseup":this._handleMouseUp(e,r)}}_handleClick(e,r){const{location:t}=e.payload;if(pf(t,this.frame)){if(pf(t,this._scrollThumbRect))return;const e=this._scrollThumbRect.origin.y,r=t.y,{height:n}=this.frame.size,a=n/this._contentHeight*n*.8;this.setScrollThumbY(r>e?this._scrollThumbRect.origin.y+a:this._scrollThumbRect.origin.y-a)}}_handleMouseDown(e,r){const{location:t}=e.payload;pf(t,this._scrollThumbRect)&&(r.activeView=this,this.currentCursor="default",this._isScrolling=!0,this.setNeedsDisplay())}_handleMouseMove(e,r){const{event:t,location:n}=e.payload;pf(n,this.frame)&&(r.hoveredView!==this&&(r.hoveredView=this),this.currentCursor="default"),r.activeView===this&&(this.currentCursor="default",this.setScrollThumbY(this._scrollThumbRect.origin.y+t.movementY))}_handleMouseUp(e,r){r.activeView===this&&(r.activeView=null),this._isScrolling&&(this._isScrolling=!1,this.setNeedsDisplay())}}function ed(e,r){return r.size.width/e}function rd(e,r,t){return t.origin.x+e*r}function td(e,r,t){return(e-t.origin.x)/r}function nd(e,r){return e*r}function ad(e,r){return e/r}var id=a(894),od=a.n(id);function sd(e){return e.toLocaleString(void 0,{minimumFractionDigits:1,maximumFractionDigits:1})+"ms"}function ld(e){return od()(e,{millisecondsDecimalDigits:1})}function cd(e,r){return e.length>r?`${e.slice(0,r-1)}…`:e}function ud(e){switch(e.type){case"schedule-render":return"render scheduled";case"schedule-state-update":return"state update scheduled";case"schedule-force-update":return"force update scheduled";default:return null}}function fd(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}const dd=14+rf;class vd extends yf{constructor(e,r,t,n){super(e,r),fd(this,"_cachedSearchRegExp",null),fd(this,"_hoveredComponentMeasure",null),fd(this,"onHover",null),this._profilerData=t,this._viewState=n,this._cachedSearchMatches=new Map,this._cachedSearchRegExp=null,n.onSearchRegExpStateChange((()=>{this.setNeedsDisplay()})),this._intrinsicSize={width:t.duration,height:dd}}desiredSize(){return this._intrinsicSize}setHoveredEvent(e){this._hoveredComponentMeasure!==e&&(this._hoveredComponentMeasure=e,this.setNeedsDisplay())}_drawSingleReactComponentMeasure(e,r,t,n,a){const{frame:i}=this,{componentName:o,duration:s,timestamp:l,type:c,warning:u}=t,f=rd(l,n,i),d=rd(l+s,n,i),v={origin:{x:f,y:i.origin.y},size:{width:d-f,height:14}};if(!hf(v,r))return!1;if(nd(s,n)<1)return!1;let h=null,m=null;const p=mf(v,r);if(e.beginPath(),null!==u)e.fillStyle=a?nf.WARNING_BACKGROUND_HOVER:nf.WARNING_BACKGROUND;else switch(c){case"render":e.fillStyle=a?nf.REACT_RENDER_HOVER:nf.REACT_RENDER,h=nf.REACT_RENDER_TEXT,m="rendered";break;case"layout-effect-mount":e.fillStyle=a?nf.REACT_LAYOUT_EFFECTS_HOVER:nf.REACT_LAYOUT_EFFECTS,h=nf.REACT_LAYOUT_EFFECTS_TEXT,m="mounted layout effect";break;case"layout-effect-unmount":e.fillStyle=a?nf.REACT_LAYOUT_EFFECTS_HOVER:nf.REACT_LAYOUT_EFFECTS,h=nf.REACT_LAYOUT_EFFECTS_TEXT,m="unmounted layout effect";break;case"passive-effect-mount":e.fillStyle=a?nf.REACT_PASSIVE_EFFECTS_HOVER:nf.REACT_PASSIVE_EFFECTS,h=nf.REACT_PASSIVE_EFFECTS_TEXT,m="mounted passive effect";break;case"passive-effect-unmount":e.fillStyle=a?nf.REACT_PASSIVE_EFFECTS_HOVER:nf.REACT_PASSIVE_EFFECTS,h=nf.REACT_PASSIVE_EFFECTS_TEXT,m="unmounted passive effect"}let _=!1;const S=this._cachedSearchRegExp;if(null!==S){const e=this._cachedSearchMatches,r=e.get(o);null!=r?_=r:(_=null!==o.match(S),e.set(o,_))}_&&(e.fillStyle=nf.SEARCH_RESULT_FILL),e.fillRect(p.origin.x,p.origin.y,p.size.width,p.size.height);return zf(`${o} ${m} - ${ld(s)}`,e,v,p,{fillStyle:h}),!0}draw(e){const{frame:r,_profilerData:{componentMeasures:t},_hoveredComponentMeasure:n,visibleArea:a}=this,i=this._viewState.searchRegExp;this._cachedSearchRegExp!==i&&(this._cachedSearchMatches=new Map,this._cachedSearchRegExp=i),e.fillStyle=nf.BACKGROUND,e.fillRect(a.origin.x,a.origin.y,a.size.width,a.size.height);const o=ed(this._intrinsicSize.width,r);let s=!1;t.forEach((r=>{s=this._drawSingleReactComponentMeasure(e,a,r,o,r===n)||s})),s||zf("(zoom or pan to see React components)",e,a,a,{fillStyle:nf.TEXT_DIM_COLOR,textAlign:"center"}),e.fillStyle=nf.PRIORITY_BORDER,e.fillRect(a.origin.x,a.origin.y+dd-rf,a.size.width,rf)}_handleMouseMove(e,r){const{frame:t,_intrinsicSize:n,onHover:a,visibleArea:i}=this;if(!a)return;const{location:o}=e.payload;if(!pf(o,i))return void a(null);const s=ed(n.width,t),l=td(o.x,s,t),c=this._profilerData.componentMeasures;for(let e=c.length-1;e>=0;e--){const t=c[e],{duration:n,timestamp:i}=t;if(l>=i&&l<=i+n)return this.currentCursor="context-menu",r.hoveredView=this,void a(t)}a(null)}handleInteraction(e,r){if("mousemove"===e.type)this._handleMouseMove(e,r)}}function hd(e,r){const{locationColumn:t,locationLine:n,scriptUrl:a}=r;if(null==a||null==t||null==n)return!1;if(a.includes("/react-devtools")||a.includes("/react_devtools")||a.includes("fmkadmapgofadopljbjfkapdkoienihi")||a.includes("dnjnjgbfilfphmojnmhliehogmojhclc")||a.includes("ikiahnapldjmdmpkmfhjdjilojjhgcbf"))return!0;const i=e.get(a);if(null!=i)for(let e=0;er.lineNumber||n===r.lineNumber&&t>=r.columnNumber,s=n>8,this._satSpace),l:pd(r>>16,this._lightnessSpace),a:pd(r>>24,this._alphaSpace)}}}({min:30,max:330},{min:50,max:80,count:3},85);function gd({scriptUrl:e}){return Sd.colorForID(e??"")}function bd(e){return md(gd(e))}function wd(e){return md(function(e,r){return{...e,l:e.l-r}}(gd(e),5))}Sd.setColorForID("",{h:43.6,s:45.8,l:90.6,a:100});class kd extends yf{constructor(e,r,t,n,a){super(e,r),_d(this,"_hoveredStackFrame",null),_d(this,"_onHover",null),_d(this,"_didGrab",!1),this._stackLayer=t,this._stackFrameSet=new Set(t),this._internalModuleSourceToRanges=n,this._intrinsicSize={width:a,height:14}}desiredSize(){return this._intrinsicSize}setHoveredFlamechartStackFrame(e){if(this._hoveredStackFrame===e)return;const r=e&&this._stackFrameSet.has(e)?e:null;this._hoveredStackFrame!==r&&(this._hoveredStackFrame=r,this.setNeedsDisplay())}draw(e){const{frame:r,_stackLayer:t,_hoveredStackFrame:n,_intrinsicSize:a,visibleArea:i}=this;e.fillStyle=nf.PRIORITY_BACKGROUND,e.fillRect(i.origin.x,i.origin.y,i.size.width,i.size.height);const o=ed(a.width,r);for(let a=0;a=1&&d<=s.x&&d+v>=s.x)return this.currentCursor="context-menu",r.hoveredView=this,void i(a);d>s.x?u=e-1:c=e+1}i(null)}handleInteraction(e,r){if("mousemove"===e.type)this._handleMouseMove(e,r)}}class Ed extends yf{constructor(e,r,t,n,a){super(e,r,wf),_d(this,"_flamechartRowViews",[]),_d(this,"_hoveredStackFrame",null),_d(this,"_onHover",null),this.setDataAndUpdateSubviews(t,n,a)}setDataAndUpdateSubviews(e,r,t){const{surface:n,frame:a,_onHover:i,_hoveredStackFrame:o}=this;this._verticalStackView&&(this.removeAllSubviews(),this._flamechartRowViews=[]),this._verticalStackView=new yf(n,a,kf),this._flamechartRowViews=e.map((e=>{const s=new kd(n,a,e,r,t);return this._verticalStackView.addSubview(s),s._onHover=i,s.setHoveredFlamechartStackFrame(o),s})),this.addSubview(new Df(n,a)),this.addSubview(this._verticalStackView)}setHoveredFlamechartStackFrame(e){this._hoveredStackFrame=e,this._flamechartRowViews.forEach((r=>r.setHoveredFlamechartStackFrame(e)))}setOnHover(e){this._onHover=e,this._flamechartRowViews.forEach((r=>r._onHover=e))}desiredSize(){return{...this._verticalStackView.desiredSize(),maxInitialHeight:0}}_handleMouseMove(e){const{_onHover:r,visibleArea:t}=this;if(!r)return;const{location:n}=e.payload;pf(n,t)||r(null)}handleInteraction(e){if("mousemove"===e.type)this._handleMouseMove(e)}}function yd(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}const Dd=14+rf;class Ad extends yf{constructor(e,r,t){super(e,r),yd(this,"_hoveredEvent",null),yd(this,"_maxDepth",0),yd(this,"onHover",null),this._profilerData=t,this._performPreflightComputations()}_performPreflightComputations(){this._depthToNativeEvent=new Map;const{duration:e,nativeEvents:r}=this._profilerData;r.forEach((e=>{const r=e.depth;this._maxDepth=Math.max(this._maxDepth,r),this._depthToNativeEvent.has(r)?this._depthToNativeEvent.get(r).push(e):this._depthToNativeEvent.set(r,[e])})),this._intrinsicSize={width:e,height:(this._maxDepth+1)*Dd,hideScrollBarIfLessThanHeight:Dd}}desiredSize(){return this._intrinsicSize}setHoveredEvent(e){this._hoveredEvent!==e&&(this._hoveredEvent=e,this.setNeedsDisplay())}_drawSingleNativeEvent(e,r,t,n,a,i){const{frame:o}=this,{depth:s,duration:l,timestamp:c,type:u,warning:f}=t;n+=s*Dd;const d=rd(c,a,o),v={origin:{x:d,y:n},size:{width:rd(c+l,a,o)-d,height:14}};if(!hf(v,r))return;if(nd(l,a)<1)return;const h=mf(v,r);e.beginPath(),e.fillStyle=null!==f?i?nf.WARNING_BACKGROUND_HOVER:nf.WARNING_BACKGROUND:i?nf.NATIVE_EVENT_HOVER:nf.NATIVE_EVENT,e.fillRect(h.origin.x,h.origin.y,h.size.width,h.size.height);zf(`${u} - ${ld(l)}`,e,v,h)}draw(e){const{frame:r,_profilerData:{nativeEvents:t},_hoveredEvent:n,visibleArea:a}=this;e.fillStyle=nf.PRIORITY_BACKGROUND,e.fillRect(a.origin.x,a.origin.y,a.size.width,a.size.height);const i=ed(this._intrinsicSize.width,r);t.forEach((t=>{this._drawSingleNativeEvent(e,a,t,r.origin.y,i,t===n)}));for(let t=0;t<=this._maxDepth;t++){const t={origin:{x:r.origin.x,y:r.origin.y+14},size:{width:r.size.width,height:rf}};if(hf(t,a)){const r=mf(t,a);e.fillStyle=nf.PRIORITY_BORDER,e.fillRect(r.origin.x,r.origin.y,r.size.width,r.size.height)}}}_handleMouseMove(e,r){const{frame:t,_intrinsicSize:n,onHover:a,visibleArea:i}=this;if(!a)return;const{location:o}=e.payload;if(!pf(o,i))return void a(null);const s=ed(n.width,t),l=td(o.x,s,t),c=o.y-t.origin.y,u=Math.floor(c/Dd),f=this._depthToNativeEvent.get(u);if(f)for(let e=f.length-1;e>=0;e--){const t=f[e],{duration:n,timestamp:i}=t;if(l>=i&&l<=i+n)return r.hoveredView=this,void a(t)}a(null)}handleInteraction(e,r){if("mousemove"===e.type)this._handleMouseMove(e,r)}}function Cd(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}const Md=14+rf,xd=/([^:]+:\/\/[^\/]+)/;class Td extends yf{constructor(e,r,t){super(e,r),Cd(this,"_hoveredNetworkMeasure",null),Cd(this,"_maxDepth",0),Cd(this,"onHover",null),this._profilerData=t,this._performPreflightComputations()}_performPreflightComputations(){this._depthToNetworkMeasure=new Map;const{duration:e,networkMeasures:r}=this._profilerData;r.forEach((e=>{const r=e.depth;this._maxDepth=Math.max(this._maxDepth,r),this._depthToNetworkMeasure.has(r)?this._depthToNetworkMeasure.get(r).push(e):this._depthToNetworkMeasure.set(r,[e])})),this._intrinsicSize={width:e,height:(this._maxDepth+1)*Md,maxInitialHeight:0}}desiredSize(){return this._intrinsicSize}setHoveredEvent(e){this._hoveredNetworkMeasure!==e&&(this._hoveredNetworkMeasure=e,this.setNeedsDisplay())}_drawSingleNetworkMeasure(e,r,t,n,a){const{frame:i,visibleArea:o}=this,{depth:s,finishTimestamp:l,firstReceivedDataTimestamp:c,lastReceivedDataTimestamp:u,receiveResponseTimestamp:f,sendRequestTimestamp:d,url:v}=r,h=this._profilerData.duration,m=l||u||h,p=f||c||m,_=rd(d,n,i),S=rd(p,n,i),g=rd(m,n,i);if(nd(g-_,n)<1)return;const b={origin:{x:_,y:t+=s*Md},size:{width:g-_,height:14}};if(!hf(b,o))return;let w={origin:{x:_,y:t},size:{width:g-_,height:14}};hf(w,o)&&(e.beginPath(),e.fillStyle=this._hoveredNetworkMeasure===r?nf.NETWORK_SECONDARY_HOVER:nf.NETWORK_SECONDARY,e.fillRect(w.origin.x,w.origin.y,w.size.width,w.size.height)),w={origin:{x:_+rf,y:t+rf},size:{width:S-_-rf,height:14-2*rf}},hf(w,o)&&(e.beginPath(),e.fillStyle=this._hoveredNetworkMeasure===r?nf.NETWORK_PRIMARY_HOVER:nf.NETWORK_PRIMARY,e.fillRect(w.origin.x,w.origin.y,w.size.width,w.size.height));const k=v.match(xd),E=null!==k?k[1]:v;zf((0!==l?`${ld(l-d)} - `:"")+E,e,b,o)}draw(e){const{frame:r,_profilerData:{networkMeasures:t},_hoveredNetworkMeasure:n,visibleArea:a}=this;e.fillStyle=nf.PRIORITY_BACKGROUND,e.fillRect(a.origin.x,a.origin.y,a.size.width,a.size.height);const i=ed(this._intrinsicSize.width,r);t.forEach((t=>{this._drawSingleNetworkMeasure(e,t,r.origin.y,i,t===n)}));for(let t=0;t<=this._maxDepth;t++){const n={origin:{x:r.origin.x,y:r.origin.y+(t+1)*Md-rf},size:{width:r.size.width,height:rf}};if(hf(n,a)){const r=mf(n,a);e.fillStyle=nf.PRIORITY_BORDER,e.fillRect(r.origin.x,r.origin.y,r.size.width,r.size.height)}}}_handleMouseMove(e,r){const{frame:t,_intrinsicSize:n,onHover:a,visibleArea:i}=this;if(!a)return;const{location:o}=e.payload;if(!pf(o,i))return void a(null);const s=ed(n.width,t),l=td(o.x,s,t),c=o.y-t.origin.y,u=Math.floor(c/Md),f=this._depthToNetworkMeasure.get(u),d=this._profilerData.duration;if(f)for(let e=f.length-1;e>=0;e--){const t=f[e],{finishTimestamp:n,lastReceivedDataTimestamp:i,sendRequestTimestamp:o}=t;if(l>=o&&l<=(n||i||d))return this.currentCursor="context-menu",r.hoveredView=this,void a(t)}r.hoveredView===this&&(r.hoveredView=null),a(null)}handleInteraction(e,r){if("mousemove"===e.type)this._handleMouseMove(e,r)}}function Hd(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}const Nd=14+rf;class Rd extends yf{constructor(e,r,t){super(e,r),Hd(this,"_hoveredMeasure",null),Hd(this,"onHover",null),this._profilerData=t,this._performPreflightComputations()}_performPreflightComputations(){this._lanesToRender=[];for(const[e,r]of this._profilerData.laneToReactMeasureMap)r.length>0&&this._lanesToRender.push(e);this._intrinsicSize={width:this._profilerData.duration,height:this._lanesToRender.length*Nd,hideScrollBarIfLessThanHeight:Nd,maxInitialHeight:5*Nd}}desiredSize(){return this._intrinsicSize}setHoveredMeasure(e){this._hoveredMeasure!==e&&(this._hoveredMeasure=e,this.setNeedsDisplay())}_drawSingleReactMeasure(e,r,t,n,a,i,o,s){const{frame:l,visibleArea:c}=this,{timestamp:u,type:f,duration:d}=t;let v=null,h=null,m=null,p=null;const _=nd(d,i);if(_<=0)return;const S=rd(u,i,l),g={origin:{x:S,y:a},size:{width:_,height:14}};if(!hf(g,r))return;const b=mf(g,r);let w=g;switch(f){case"commit":v=nf.REACT_COMMIT,h=nf.REACT_COMMIT_HOVER,m=nf.REACT_COMMIT_HOVER,p=nf.REACT_COMMIT_TEXT,null!=n&&n.timestamp=a.length)return void i(null);const f=a[u],d=ed(n.width,t),v=td(l.x,d,t),h=o.laneToReactMeasureMap.get(f);if(h){for(let e=h.length-1;e>=0;e--){const t=h[e],{duration:n,timestamp:a}=t;if(v>=a&&v<=a+n)return this.currentCursor="context-menu",r.hoveredView=this,void i(t)}i(null)}else i(null)}handleInteraction(e,r){if("mousemove"===e.type)this._handleMouseMove(e,r)}}function Id(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}class Od extends yf{constructor(e,r,t){super(e,r),Id(this,"_hoveredEvent",null),Id(this,"onHover",null),Id(this,"onClick",null),this._profilerData=t,this._intrinsicSize={width:this._profilerData.duration,height:14}}desiredSize(){return this._intrinsicSize}setHoveredEvent(e){this._hoveredEvent!==e&&(this._hoveredEvent=e,this.setNeedsDisplay())}_drawSingleSchedulingEvent(e,r,t,n,a,i){const{frame:o}=this,{timestamp:s,type:l,warning:c}=t,u=rd(s,a,o),f={origin:{x:u-3,y:n},size:{width:6,height:6}};if(!hf(f,r))return;let d=null;if(null!==c)d=i?nf.WARNING_BACKGROUND_HOVER:nf.WARNING_BACKGROUND;else switch(l){case"schedule-render":case"schedule-state-update":case"schedule-force-update":d=i?nf.REACT_SCHEDULE_HOVER:nf.REACT_SCHEDULE}if(null!==d){const r=f.origin.y+3;e.beginPath(),e.fillStyle=d,e.arc(u,r,3,0,2*Math.PI),e.fill()}}draw(e){const{frame:r,_profilerData:{schedulingEvents:t},_hoveredEvent:n,visibleArea:a}=this;e.fillStyle=nf.BACKGROUND,e.fillRect(a.origin.x,a.origin.y,a.size.width,a.size.height);const i=r.origin.y+4,o=ed(this._intrinsicSize.width,r),s=[];t.forEach((r=>{r!==n?this._drawSingleSchedulingEvent(e,a,r,i,o,!1):s.push(r)})),s.forEach((r=>{this._drawSingleSchedulingEvent(e,a,r,i,o,!0)}));const l={origin:{x:r.origin.x,y:r.origin.y+14-rf},size:{width:r.size.width,height:rf}};if(hf(l,a)){const r=mf(l,a);e.fillStyle=nf.REACT_WORK_BORDER,e.fillRect(r.origin.x,r.origin.y,r.size.width,r.size.height)}}_handleMouseMove(e,r){const{frame:t,onHover:n,visibleArea:a}=this;if(!n)return;const{location:i}=e.payload;if(!pf(i,a))return void n(null);const{_profilerData:{schedulingEvents:o}}=this,s=ed(this._intrinsicSize.width,t),l=td(i.x,s,t),c=ad(3,s);for(let e=o.length-1;e>=0;e--){const t=o[e],{timestamp:a}=t;if(a-c<=l&&l<=a+c)return this.currentCursor="pointer",r.hoveredView=this,void n(t)}n(null)}_handleClick(e){const{onClick:r}=this;if(r){const{_profilerData:{schedulingEvents:e}}=this,t=e.findIndex((e=>e===this._hoveredEvent));r(this._hoveredEvent,t>=0?t:null)}}handleInteraction(e,r){switch(e.type){case"mousemove":this._handleMouseMove(e,r);break;case"click":this._handleClick(e)}}}function Fd(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}class Pd extends yf{constructor(e,r,t){super(e,r),Fd(this,"_hoverLocation",null),Fd(this,"onHover",null),this._intrinsicSize={width:t.duration,height:t.snapshotHeight},this._profilerData=t}desiredSize(){return this._intrinsicSize}draw(e){const r=this._profilerData.snapshotHeight,{visibleArea:t}=this;e.fillStyle=nf.BACKGROUND,e.fillRect(t.origin.x,t.origin.y,t.size.width,t.size.height);const n=t.origin.y;let a=t.origin.x;for(;a{this._drawSnapshotImage(e,t,s)},r.src=t.imageSource}else this._drawSnapshotImage(e,t,s);a+=o+rf}const i=this._hoverLocation;if(null!==i){const r=3+2*rf,n=r/2;e.fillStyle=nf.SCRUBBER_BORDER,e.fillRect(i.x-n,t.origin.y,r,t.size.height),e.fillStyle=nf.SCRUBBER_BACKGROUND,e.fillRect(i.x-n+rf,t.origin.y,3,t.size.height)}}handleInteraction(e,r){switch(e.type){case"mousemove":case"wheel-control":case"wheel-meta":case"wheel-plain":case"wheel-shift":this._updateHover(e.payload.location,r)}}_drawSnapshotImage(e,r,t){const n=this.visibleArea,a=!uf(t,n);if(a){const r=mf(t,n);e.save(),e.beginPath(),e.rect(r.origin.x,r.origin.y,r.size.width,r.size.height),e.closePath(),e.clip()}e.fillStyle=nf.REACT_RESIZE_BAR_BORDER,e.fillRect(t.origin.x,t.origin.y,t.size.width,t.size.height),e.drawImage(r.image,0,0,r.width,r.height,t.origin.x+rf,t.origin.y+rf,t.size.width-2*rf,t.size.height-2*rf),a&&e.restore()}_findClosestSnapshot(e){const r=this.frame,t=ed(this._intrinsicSize.width,r),n=this._profilerData.snapshots;let a=0,i=n.length-1;for(;a<=i;){const o=Math.floor((a+i)/2),s=n[o],{timestamp:l}=s;e{const r=e.depth;this._maxDepth=Math.max(this._maxDepth,r),this._depthToSuspenseEvent.has(r)?this._depthToSuspenseEvent.get(r).push(e):this._depthToSuspenseEvent.set(r,[e])})),this._intrinsicSize={width:e,height:(this._maxDepth+1)*zd,hideScrollBarIfLessThanHeight:zd,maxInitialHeight:3*zd}}desiredSize(){return this._intrinsicSize}setHoveredEvent(e){this._hoveredEvent!==e&&(this._hoveredEvent=e,this.setNeedsDisplay())}_drawSingleSuspenseEvent(e,r,t,n,a,i){const{frame:o}=this,{componentName:s,depth:l,duration:c,phase:u,promiseName:f,resolution:d,timestamp:v,warning:h}=t;n+=l*zd;let m=null;if(null!==h)m=i?nf.WARNING_BACKGROUND_HOVER:nf.WARNING_BACKGROUND;else switch(d){case"rejected":m=i?nf.REACT_SUSPENSE_REJECTED_EVENT_HOVER:nf.REACT_SUSPENSE_REJECTED_EVENT;break;case"resolved":m=i?nf.REACT_SUSPENSE_RESOLVED_EVENT_HOVER:nf.REACT_SUSPENSE_RESOLVED_EVENT;break;case"unresolved":m=i?nf.REACT_SUSPENSE_UNRESOLVED_EVENT_HOVER:nf.REACT_SUSPENSE_UNRESOLVED_EVENT}const p=rd(v,a,o);if(null===c){const t=8,a=t/2,i=(n+=3)+a;if(!hf({origin:{x:p-a,y:n},size:{width:t,height:t}},r))return;e.beginPath(),e.fillStyle=m,e.moveTo(p,i-a),e.lineTo(p+a,i),e.lineTo(p,i+a),e.lineTo(p-a,i),e.fill()}else{const t={origin:{x:p,y:n},size:{width:rd(v+c,a,o)-p,height:14}};if(!hf(t,r))return;if(nd(c,a)<1)return;const i=mf(t,r);e.beginPath(),e.fillStyle=m,e.fillRect(i.origin.x,i.origin.y,i.size.width,i.size.height);let l="suspended";null!=f?l=f:null!=s&&(l=`${s} ${l}`),null!==u&&(l+=` during ${u}`),"unresolved"!==d&&(l+=` - ${ld(c)}`),zf(l,e,t,i)}}draw(e){const{frame:r,_profilerData:{suspenseEvents:t},_hoveredEvent:n,visibleArea:a}=this;e.fillStyle=nf.PRIORITY_BACKGROUND,e.fillRect(a.origin.x,a.origin.y,a.size.width,a.size.height);const i=ed(this._intrinsicSize.width,r);t.forEach((t=>{this._drawSingleSuspenseEvent(e,a,t,r.origin.y,i,t===n)}));for(let t=0;t<=this._maxDepth;t++){const n={origin:{x:r.origin.x,y:r.origin.y+(t+1)*zd-rf},size:{width:r.size.width,height:rf}};if(hf(n,a)){const r=mf(n,a);e.fillStyle=nf.REACT_WORK_BORDER,e.fillRect(r.origin.x,r.origin.y,r.size.width,r.size.height)}}}_handleMouseMove(e,r){const{frame:t,_intrinsicSize:n,onHover:a,visibleArea:i}=this;if(!a)return;const{location:o}=e.payload;if(!pf(o,i))return void a(null);const s=ed(n.width,t),l=td(o.x,s,t),c=o.y-t.origin.y,u=Math.floor(c/zd),f=this._depthToSuspenseEvent.get(u);if(f)for(let e=f.length-1;e>=0;e--){const t=f[e],{duration:n,timestamp:i}=t;if(null===n){const e=ad(4,s);if(i-e<=l&&l<=i+e)return this.currentCursor="context-menu",r.hoveredView=this,void a(t)}else if(l>=i&&l<=i+n)return this.currentCursor="context-menu",r.hoveredView=this,void a(t)}a(null)}handleInteraction(e,r){if("mousemove"===e.type)this._handleMouseMove(e,r)}}function Vd(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}class Ud extends yf{constructor(e,r,t){super(e,r),Vd(this,"_hoveredEvent",null),Vd(this,"onHover",null),this._profilerData=t,this._intrinsicSize={width:this._profilerData.duration,height:14}}desiredSize(){return this._intrinsicSize}setHoveredEvent(e){this._hoveredEvent!==e&&(this._hoveredEvent=e,this.setNeedsDisplay())}_drawSingleThrownError(e,r,t,n,a,i){const{frame:o}=this,{timestamp:s}=t,l=rd(s,a,o),c={origin:{x:l-3,y:n},size:{width:6,height:6}};if(!hf(c,r))return;const u=i?nf.REACT_THROWN_ERROR_HOVER:nf.REACT_THROWN_ERROR,f=c.origin.y+3;e.beginPath(),e.fillStyle=u,e.arc(l,f,3,0,2*Math.PI),e.fill()}draw(e){const{frame:r,_profilerData:{thrownErrors:t},_hoveredEvent:n,visibleArea:a}=this;e.fillStyle=nf.BACKGROUND,e.fillRect(a.origin.x,a.origin.y,a.size.width,a.size.height);const i=r.origin.y+4,o=ed(this._intrinsicSize.width,r),s=[];t.forEach((r=>{r!==n?this._drawSingleThrownError(e,a,r,i,o,!1):s.push(r)})),s.forEach((r=>{this._drawSingleThrownError(e,a,r,i,o,!0)}));const l={origin:{x:r.origin.x,y:r.origin.y+14-rf},size:{width:r.size.width,height:rf}};if(hf(l,a)){const r=mf(l,a);e.fillStyle=nf.REACT_WORK_BORDER,e.fillRect(r.origin.x,r.origin.y,r.size.width,r.size.height)}}_handleMouseMove(e,r){const{frame:t,onHover:n,visibleArea:a}=this;if(!n)return;const{location:i}=e.payload;if(!pf(i,a))return void n(null);const{_profilerData:{thrownErrors:o}}=this,s=ed(this._intrinsicSize.width,t),l=td(i.x,s,t),c=ad(3,s);for(let e=o.length-1;e>=0;e--){const t=o[e],{timestamp:a}=t;if(a-c<=l&&l<=a+c)return this.currentCursor="context-menu",r.hoveredView=this,void n(t)}n(null)}handleInteraction(e,r){if("mousemove"===e.type)this._handleMouseMove(e,r)}}const Wd=20+rf,jd=80+rf;class $d extends yf{constructor(e,r,t){super(e,r),this._totalDuration=t,this._intrinsicSize={width:this._totalDuration,height:Wd}}desiredSize(){return this._intrinsicSize}_getTimeTickInterval(e){for(let r=0;r70)return t}return tf[0]}draw(e){const{frame:r,_intrinsicSize:t,visibleArea:n}=this,a={origin:r.origin,size:{width:r.size.width,height:t.height}},i=mf(a,n);e.fillStyle=nf.BACKGROUND,e.fillRect(i.origin.x,i.origin.y,i.size.width,i.size.height);const o=ed(t.width,a),s=this._getTimeTickInterval(o);for(let r=Math.ceil(td(i.origin.x-jd,o,a)/s)*s;;r+=s){if(r<=0)continue;const t=rd(r,o,a);if(t>i.origin.x+i.size.width)break;const n=Math.round(r);e.fillStyle=nf.PRIORITY_BORDER,e.fillRect(t,i.origin.y+20-8,rf,8),e.fillStyle=nf.TIME_MARKER_LABEL,e.textAlign="right",e.textBaseline="middle",e.font=`${ef}px sans-serif`,e.fillText(`${n}ms`,t-8,10)}const l={origin:{x:a.origin.x,y:a.origin.y+a.size.height-rf},size:{width:a.size.width,height:rf}};if(hf(l,n)){const r=mf(l,n);e.fillStyle=nf.PRIORITY_BORDER,e.fillRect(r.origin.x,r.origin.y,r.size.width,r.size.height)}}}function Xd(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}class Gd extends yf{constructor(e,r,t,n){super(e,r),Xd(this,"_hoveredMark",null),Xd(this,"onHover",null),this._marks=t,this._intrinsicSize={width:n,height:16}}desiredSize(){return this._intrinsicSize}setHoveredMark(e){this._hoveredMark!==e&&(this._hoveredMark=e,this.setNeedsDisplay())}_drawSingleMark(e,r,t,n,a,i){const{frame:o}=this,{timestamp:s}=t,l=rd(s,a,o);if(!hf({origin:{x:l-4,y:n},size:{width:8,height:8}},r))return;const c=i?nf.USER_TIMING_HOVER:nf.USER_TIMING;if(null!==c){const r=n+4;e.beginPath(),e.fillStyle=c,e.moveTo(l,r-4),e.lineTo(l+4,r),e.lineTo(l,r+4),e.lineTo(l-4,r),e.fill()}}draw(e){const{frame:r,_marks:t,_hoveredMark:n,visibleArea:a}=this;e.fillStyle=nf.BACKGROUND,e.fillRect(a.origin.x,a.origin.y,a.size.width,a.size.height);const i=r.origin.y+4,o=ed(this._intrinsicSize.width,r);t.forEach((r=>{r!==n&&this._drawSingleMark(e,a,r,i,o,!1)})),null!==n&&this._drawSingleMark(e,a,n,i,o,!0);const s={origin:{x:r.origin.x,y:r.origin.y+16-rf},size:{width:r.size.width,height:rf}};if(hf(s,a)){const r=mf(s,a);e.fillStyle=nf.PRIORITY_BORDER,e.fillRect(r.origin.x,r.origin.y,r.size.width,r.size.height)}}_handleMouseMove(e,r){const{frame:t,onHover:n,visibleArea:a}=this;if(!n)return;const{location:i}=e.payload;if(!pf(i,a))return void n(null);const{_marks:o}=this,s=ed(this._intrinsicSize.width,t),l=td(i.x,s,t),c=ad(4,s);for(let e=o.length-1;e>=0;e--){const t=o[e],{timestamp:a}=t;if(a-c<=l&&l<=a+c)return r.hoveredView=this,void n(t)}n(null)}handleInteraction(e,r){if("mousemove"===e.type)this._handleMouseMove(e,r)}}const Kd=of((function(e,r,t=0){const n=r.batchUIDToMeasuresMap.get(e);if(null==n||0===n.length)throw Error(`Could not find measures with batch UID "${e}"`);const a=n[n.length-1],i=a.timestamp+a.duration;if(i=t){o=r.timestamp;break}}return[o,i]})),qd=10,Yd=5;const Qd={Tooltip:"N3EGKzrGIkBOWEWDf9L7",TooltipSection:"AzaWiYKucXJKkE2mLtJl",TooltipWarningSection:"egwTq8xaZYmu5AwzN7q3",SingleLineTextSection:"I89UegKZ4CVKZ4fZi70A",Divider:"VNOllhItld4Pgmtf5Ppw",DetailsGrid:"MPvO_4SSYDzHNp4lE94K",DetailsGridLabel:"sZnI6xuf_7orBe2Asxn_",DetailsGridLongValue:"M0WUFL6gXSNmExgreLwO",FlamechartStackFrameName:"d9f4tr7dJUEW6jrEDyOt",ComponentName:"ejuIKX4HIM2d9POSXI85",ReactMeasureLabel:"s2XYTneQ2NK7qdHee2Jn",UserTimingLabel:"GMAYJazv4K7ZpOr97hCQ",NativeEventName:"w6QmYYdfsQPk6sau6zog",WarningText:"XGcHiWMwrBc5c2KR8wLv",Image:"Y4pd_lwDQuEbGYYczxPw",DimText:"F9Q4ycxrR5Cx58QdXTQF"};function Jd({canvasRef:e,data:t,height:n,hoveredEvent:a,origin:i,width:o}){const s=function({canvasRef:e,mouseX:t,mouseY:n}){const a=(0,r.useRef)(null);let i=window.innerHeight,o=window.innerWidth;const s=e.current;if(null!==s){const e=s.getBoundingClientRect();i=e.top+e.height,o=e.left+e.width}return(0,r.useLayoutEffect)((()=>{const e=a.current;null!==e&&(n+qd+e.offsetHeight>=i?n-Yd-e.offsetHeight>0?e.style.top=n-e.offsetHeight-Yd+"px":e.style.top="0px":e.style.top=`${n+qd}px`,t+qd+e.offsetWidth>=o?t-Yd-e.offsetWidth>0?e.style.left=t-e.offsetWidth-Yd+"px":e.style.left="0px":e.style.left=`${t+qd}px`)})),a}({canvasRef:e,mouseX:i.x,mouseY:i.y});if(null===a)return null;const{componentMeasure:l,flamechartStackFrame:c,measure:u,nativeEvent:f,networkMeasure:d,schedulingEvent:v,snapshot:h,suspenseEvent:m,thrownError:p,userTimingMark:_}=a;let S=null;return null!==l?S=r.createElement(Zd,{componentMeasure:l}):null!==f?S=r.createElement(rv,{nativeEvent:f}):null!==d?S=r.createElement(tv,{networkMeasure:d}):null!==v?S=r.createElement(nv,{data:t,schedulingEvent:v}):null!==h?S=r.createElement(av,{height:n,snapshot:h,width:o}):null!==m?S=r.createElement(iv,{suspenseEvent:m}):null!==u?S=r.createElement(ov,{data:t,measure:u}):null!==c?S=r.createElement(ev,{stackFrame:c}):null!==_?S=r.createElement(sv,{mark:_}):null!==p&&(S=r.createElement(lv,{thrownError:p})),null!==S?r.createElement("div",{className:Qd.Tooltip,ref:s},S):null}const Zd=({componentMeasure:e})=>{const{componentName:t,duration:n,timestamp:a,type:i,warning:o}=e;let s=t;switch(i){case"render":s+=" rendered";break;case"layout-effect-mount":s+=" mounted layout effect";break;case"layout-effect-unmount":s+=" unmounted layout effect";break;case"passive-effect-mount":s+=" mounted passive effect";break;case"passive-effect-unmount":s+=" unmounted passive effect"}return r.createElement(r.Fragment,null,r.createElement("div",{className:Qd.TooltipSection},cd(s,768),r.createElement("div",{className:Qd.Divider}),r.createElement("div",{className:Qd.DetailsGrid},r.createElement("div",{className:Qd.DetailsGridLabel},"Timestamp:"),r.createElement("div",null,sd(a)),r.createElement("div",{className:Qd.DetailsGridLabel},"Duration:"),r.createElement("div",null,ld(n)))),null!==o&&r.createElement("div",{className:Qd.TooltipWarningSection},r.createElement("div",{className:Qd.WarningText},o)))},ev=({stackFrame:e})=>{const{name:t,timestamp:n,duration:a,locationLine:i,locationColumn:o}=e;return r.createElement("div",{className:Qd.TooltipSection},r.createElement("span",{className:Qd.FlamechartStackFrameName},t),r.createElement("div",{className:Qd.DetailsGrid},r.createElement("div",{className:Qd.DetailsGridLabel},"Timestamp:"),r.createElement("div",null,sd(n)),r.createElement("div",{className:Qd.DetailsGridLabel},"Duration:"),r.createElement("div",null,ld(a)),(void 0!==i||void 0!==o)&&r.createElement(r.Fragment,null,r.createElement("div",{className:Qd.DetailsGridLabel},"Location:"),r.createElement("div",null,"line ",i,", column ",o))))},rv=({nativeEvent:e})=>{const{duration:t,timestamp:n,type:a,warning:i}=e;return r.createElement(r.Fragment,null,r.createElement("div",{className:Qd.TooltipSection},r.createElement("span",{className:Qd.NativeEventName},cd(a,768)),"event",r.createElement("div",{className:Qd.Divider}),r.createElement("div",{className:Qd.DetailsGrid},r.createElement("div",{className:Qd.DetailsGridLabel},"Timestamp:"),r.createElement("div",null,sd(n)),r.createElement("div",{className:Qd.DetailsGridLabel},"Duration:"),r.createElement("div",null,ld(t)))),null!==i&&r.createElement("div",{className:Qd.TooltipWarningSection},r.createElement("div",{className:Qd.WarningText},i)))},tv=({networkMeasure:e})=>{const{finishTimestamp:t,lastReceivedDataTimestamp:n,priority:a,sendRequestTimestamp:i,url:o}=e;let s=o;if(s.length>60){const e=Math.floor(30);s=o.slice(0,e)+"…"+o.slice(o.length-e)}const l=(t||n)>0?ld(t-i):"(incomplete)";return r.createElement("div",{className:Qd.SingleLineTextSection},l," ",r.createElement("span",{className:Qd.DimText},a)," ",s)},nv=({data:e,schedulingEvent:t})=>{const n=ud(t);if(!n)return null;let a=null,i=null;switch(t.type){case"schedule-render":case"schedule-state-update":case"schedule-force-update":i=t.lanes,a=i.map((r=>e.laneToLabelMap.get(r)))}const{componentName:o,timestamp:s,warning:l}=t;return r.createElement(r.Fragment,null,r.createElement("div",{className:Qd.TooltipSection},o&&r.createElement("span",{className:Qd.ComponentName},cd(o,100)),n,r.createElement("div",{className:Qd.Divider}),r.createElement("div",{className:Qd.DetailsGrid},null!==a&&null!==i&&r.createElement(r.Fragment,null,r.createElement("div",{className:Qd.DetailsGridLabel},"Lanes:"),r.createElement("div",null,a.join(", ")," (",i.join(", "),")")),r.createElement("div",{className:Qd.DetailsGridLabel},"Timestamp:"),r.createElement("div",null,sd(s)))),null!==l&&r.createElement("div",{className:Qd.TooltipWarningSection},r.createElement("div",{className:Qd.WarningText},l)))},av=({height:e,snapshot:t,width:n})=>{const a=t.width/t.height;let i=t.width,o=t.height;return i>n&&(i=n,o=i/a),o>e&&(o=e,i=o*a),r.createElement("img",{className:Qd.Image,src:t.imageSource,style:{height:o,width:i}})},iv=({suspenseEvent:e})=>{const{componentName:t,duration:n,phase:a,promiseName:i,resolution:o,timestamp:s,warning:l}=e;let c="suspended";return null!==a&&(c+=` during ${a}`),r.createElement(r.Fragment,null,r.createElement("div",{className:Qd.TooltipSection},t&&r.createElement("span",{className:Qd.ComponentName},cd(t,100)),c,r.createElement("div",{className:Qd.Divider}),r.createElement("div",{className:Qd.DetailsGrid},null!==i&&r.createElement(r.Fragment,null,r.createElement("div",{className:Qd.DetailsGridLabel},"Resource:"),r.createElement("div",{className:Qd.DetailsGridLongValue},i)),r.createElement("div",{className:Qd.DetailsGridLabel},"Status:"),r.createElement("div",null,o),r.createElement("div",{className:Qd.DetailsGridLabel},"Timestamp:"),r.createElement("div",null,sd(s)),null!==n&&r.createElement(r.Fragment,null,r.createElement("div",{className:Qd.DetailsGridLabel},"Duration:"),r.createElement("div",null,ld(n))))),null!==l&&r.createElement("div",{className:Qd.TooltipWarningSection},r.createElement("div",{className:Qd.WarningText},l)))},ov=({data:e,measure:t})=>{const n=function(e){switch(e){case"commit":return"react commit";case"render-idle":return"react idle";case"render":return"react render";case"layout-effects":return"react layout effects";case"passive-effects":return"react passive effects";default:return null}}(t.type);if(!n)return null;const{batchUID:a,duration:i,timestamp:o,lanes:s}=t,[l,c]=Kd(a,e),u=s.map((r=>e.laneToLabelMap.get(r)));return r.createElement("div",{className:Qd.TooltipSection},r.createElement("span",{className:Qd.ReactMeasureLabel},n),r.createElement("div",{className:Qd.Divider}),r.createElement("div",{className:Qd.DetailsGrid},r.createElement("div",{className:Qd.DetailsGridLabel},"Timestamp:"),r.createElement("div",null,sd(o)),"render-idle"!==t.type&&r.createElement(r.Fragment,null,r.createElement("div",{className:Qd.DetailsGridLabel},"Duration:"),r.createElement("div",null,ld(i))),r.createElement("div",{className:Qd.DetailsGridLabel},"Batch duration:"),r.createElement("div",null,ld(c-l)),r.createElement("div",{className:Qd.DetailsGridLabel},"Lane",1===s.length?"":"s",":"),r.createElement("div",null,u.length>0?`${u.join(", ")} (${s.join(", ")})`:s.join(", "))))},sv=({mark:e})=>{const{name:t,timestamp:n}=e;return r.createElement("div",{className:Qd.TooltipSection},r.createElement("span",{className:Qd.UserTimingLabel},t),r.createElement("div",{className:Qd.Divider}),r.createElement("div",{className:Qd.DetailsGrid},r.createElement("div",{className:Qd.DetailsGridLabel},"Timestamp:"),r.createElement("div",null,sd(n))))},lv=({thrownError:e})=>{const{componentName:t,message:n,phase:a,timestamp:i}=e,o=`threw an error during ${a}`;return r.createElement("div",{className:Qd.TooltipSection},t&&r.createElement("span",{className:Qd.ComponentName},cd(t,100)),r.createElement("span",{className:Qd.UserTimingLabel},o),r.createElement("div",{className:Qd.Divider}),r.createElement("div",{className:Qd.DetailsGrid},r.createElement("div",{className:Qd.DetailsGridLabel},"Timestamp:"),r.createElement("div",null,sd(i)),""!==n&&r.createElement(r.Fragment,null,r.createElement("div",{className:Qd.DetailsGridLabel},"Error:"),r.createElement("div",null,n))))},cv=[];function uv(e,r){let{searchIndex:t,searchRegExp:n,searchResults:a,searchText:i}=e;switch(r.type){case"GO_TO_NEXT_SEARCH_RESULT":a.length>0&&(-1===t||t+1===a.length?t=0:t++);break;case"GO_TO_PREVIOUS_SEARCH_RESULT":a.length>0&&(-1===t||0===t?t=a.length-1:t--);break;case"SET_SEARCH_TEXT":if(i=r.payload,n=null,a=[],""!==i){const r=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");n=new RegExp(`^${r}`,"i");let o=null;t>=0&&a.length>t&&(o=a[t]);const s=e.profilerData.componentMeasures;let l=-1;for(let e=0;e=0?l:0}}return{profilerData:e.profilerData,searchIndex:t,searchRegExp:n,searchResults:a,searchText:i}}const fv=(0,r.createContext)(null);function dv({children:e,profilerData:t,viewState:n}){const[a,i]=(0,r.useReducer)(uv,{profilerData:t,searchIndex:-1,searchRegExp:null,searchResults:cv,searchText:""}),o=(0,r.useMemo)((()=>({...a,dispatch:i})),[a]);return r.createElement(fv.Provider,{value:o},e)}function vv({canvasRef:e,timelineData:t,hoveredEvent:n,viewState:a,canvasWidth:i,closedMenuStub:o,ref:s}){const l=(0,r.useMemo)((()=>{if(null==n)return[];const{componentMeasure:e,flamechartStackFrame:r,measure:o,networkMeasure:s,schedulingEvent:l,suspenseEvent:c}=n,u=[];return null!=e&&u.push({onClick:()=>(0,f.copy)(e.componentName),content:"Copy component name"}),null!=s&&u.push({onClick:()=>(0,f.copy)(s.url),content:"Copy URL"}),null!=l&&u.push({onClick:()=>(0,f.copy)(l.componentName),content:"Copy component name"}),null!=c&&u.push({onClick:()=>(0,f.copy)(c.componentName),content:"Copy component name"}),null!=o&&u.push({onClick:()=>function(e,r,t,n){const{batchUID:a}=r,[i,o]=Kd(a,e),s=Hf({state:t.horizontalScrollState,rangeStart:i,rangeEnd:o,contentLength:e.duration,minContentLength:e.duration*Rf,maxContentLength:e.duration*If,containerLength:n});t.updateHorizontalScrollState(s)}(t,o,a,i),content:"Zoom to batch"},{onClick:()=>function(e,r){const{batchUID:t,duration:n,timestamp:a,type:i}=r,[o,s]=Kd(t,e);(0,f.copy)(JSON.stringify({type:i,timestamp:od()(a),duration:od()(n),batchDuration:od()(s-o)}))}(t,o),content:"Copy summary"}),null!=r&&u.push({onClick:()=>(0,f.copy)(r.scriptUrl),content:"Copy file path"},{onClick:()=>(0,f.copy)(`line ${r.locationLine??""}, column ${r.locationColumn??""}`),content:"Copy location"}),u}),[n,a,i]);return r.createElement(Il,{anchorElementRef:e,items:l,closedMenuStub:o,ref:s})}fv.displayName="TimelineSearchContext";const hv="OEnj08490n7qDJm7CNI8";const mv={componentMeasure:null,flamechartStackFrame:null,measure:null,nativeEvent:null,networkMeasure:null,schedulingEvent:null,snapshot:null,suspenseEvent:null,thrownError:null,userTimingMark:null};function pv({data:e,height:t,viewState:n,width:a}){const i=(0,r.useRef)(null),[o,s]=(0,r.useState)(sf),[l,c]=(0,r.useState)(null),[u,f]=(0,r.useState)(null),d=(0,r.useRef)(null),v=(0,r.useCallback)((()=>c(mv)),[]),h=(0,r.useCallback)((e=>{if(c(e),d.current?.isShown())return;const{componentMeasure:r,flamechartStackFrame:t,measure:n,networkMeasure:a,schedulingEvent:i,suspenseEvent:o}=e;null==r&&null==t&&null==n&&null==a&&null==i&&null==o||f(e)}),[d]),{searchIndex:m,searchRegExp:p,searchResults:_}=(0,r.useContext)(fv);(0,r.useLayoutEffect)((()=>{n.updateSearchRegExpState(p);const r=_.length>0?_[m]:null;if(null!=r){const t=Hf({state:n.horizontalScrollState,rangeStart:r.timestamp,rangeEnd:r.timestamp+r.duration,contentLength:e.duration,minContentLength:e.duration*Rf,maxContentLength:e.duration*If,containerLength:a});n.updateHorizontalScrollState(t)}S.current.displayIfNeeded()}),[m,p,_,n]);const S=(0,r.useRef)(new Sf(v)),g=(0,r.useRef)(null),b=(0,r.useRef)(null),w=(0,r.useRef)(null),k=(0,r.useRef)(null),E=(0,r.useRef)(null),y=(0,r.useRef)(null),D=(0,r.useRef)(null),A=(0,r.useRef)(null),C=(0,r.useRef)(null),M=(0,r.useRef)(null);(0,r.useLayoutEffect)((()=>{const r=S.current,o={origin:sf,size:{width:a,height:t}};function s(t,a,s=!1,l=!1){let c=null;s&&(c=new Ff(r,o,t,n,a));const u=new Of(r,o,null!==c?c:t,e.duration,n);let f=null;return l&&(f=new Wf(r,o,u,n,i,a)),f||u}n.onHorizontalScrollStateChange((e=>{d.current?.hide()})),n.updateHorizontalScrollState(xf({state:n.horizontalScrollState,minContentLength:e.duration*Rf,maxContentLength:e.duration*If,containerLength:o.size.width}));const l=s(new $d(r,o,e.duration),"time");let c=null;if(e.otherUserTimingMarks.length>0){const t=new Gd(r,o,e.otherUserTimingMarks,e.duration);g.current=t,c=s(t,"user timing api")}let u=null;if(e.nativeEvents.length>0){const t=new Ad(r,o,e);b.current=t,u=s(t,"events",!0,!0)}let f=null;if(e.thrownErrors.length>0){const t=new Ud(r,o,e);M.current=t,f=s(t,"thrown errors")}let v=null;if(e.schedulingEvents.length>0){const t=new Od(r,o,e);w.current=t,v=s(t,"react updates")}let h=null;if(e.suspenseEvents.length>0){const t=new Bd(r,o,e);k.current=t,h=s(t,"suspense",!0,!0)}const m=new Rd(r,o,e);y.current=m;const p=s(m,"react scheduling",!0,!0);let _=null;if(e.componentMeasures.length>0){const t=new vd(r,o,e,n);E.current=t,_=s(t,"react components")}let x=null;if(e.snapshots.length>0){const t=new Pd(r,o,e);C.current=t,x=s(t,"snapshots",!0,!0)}let T=null;if(e.snapshots.length>0){const t=new Td(r,o,e);A.current=t,T=s(t,"network",!0,!0)}let H=null;if(e.flamechart.length>0){const t=new Ed(r,o,e.flamechart,e.internalModuleSourceToRanges,e.duration);D.current=t,H=s(t,"flamechart",!0,!0)}const N=new yf(r,o,kf,o,nf.BACKGROUND);N.addSubview(l),null!==c&&N.addSubview(c),null!==u&&N.addSubview(u),null!==v&&N.addSubview(v),null!==f&&N.addSubview(f),null!==h&&N.addSubview(h),null!==p&&N.addSubview(p),null!==_&&N.addSubview(_),null!==x&&N.addSubview(x),null!==T&&N.addSubview(T),null!==H&&N.addSubview(H);const R=new Yf(r,o,N,n);S.current.rootView=R}),[e]),(0,r.useLayoutEffect)((()=>{i.current&&S.current.setCanvas(i.current,{width:a,height:t})}),[a,t]);const x=(0,r.useCallback)((e=>{const r=i.current;if(null===r)return;const t=S.current;t.handleInteraction(e),t.displayIfNeeded(),r.style.cursor=t.getCurrentCursor()||"default",s({x:e.payload.event.x,y:e.payload.event.y})}),[]);Gf(i,x);const{selectEvent:T}=(0,r.useContext)(mu);return(0,r.useEffect)((()=>{const{current:e}=g;e&&(e.onHover=e=>{l&&l.userTimingMark===e||h({...mv,userTimingMark:e})});const{current:r}=b;r&&(r.onHover=e=>{l&&l.nativeEvent===e||h({...mv,nativeEvent:e})});const{current:t}=w;t&&(t.onHover=e=>{l&&l.schedulingEvent===e||h({...mv,schedulingEvent:e})},t.onClick=e=>{T({...mv,schedulingEvent:e})});const{current:n}=k;n&&(n.onHover=e=>{l&&l.suspenseEvent===e||h({...mv,suspenseEvent:e})});const{current:a}=y;a&&(a.onHover=e=>{l&&l.measure===e||h({...mv,measure:e})});const{current:i}=E;i&&(i.onHover=e=>{l&&l.componentMeasure===e||h({...mv,componentMeasure:e})});const{current:o}=C;o&&(o.onHover=e=>{l&&l.snapshot===e||h({...mv,snapshot:e})});const{current:s}=D;s&&s.setOnHover((e=>{l&&l.flamechartStackFrame===e||h({...mv,flamechartStackFrame:e})}));const{current:c}=A;c&&(c.onHover=e=>{l&&l.networkMeasure===e||h({...mv,networkMeasure:e})});const{current:u}=M;u&&(u.onHover=e=>{l&&l.thrownError===e||h({...mv,thrownError:e})})}),[l,e]),(0,r.useLayoutEffect)((()=>{const e=g.current;e&&e.setHoveredMark(l?l.userTimingMark:null);const r=b.current;r&&r.setHoveredEvent(l?l.nativeEvent:null);const t=w.current;t&&t.setHoveredEvent(l?l.schedulingEvent:null);const n=k.current;n&&n.setHoveredEvent(l?l.suspenseEvent:null);const a=y.current;a&&a.setHoveredMeasure(l?l.measure:null);const i=D.current;i&&i.setHoveredFlamechartStackFrame(l?l.flamechartStackFrame:null);const o=A.current;o&&o.setHoveredEvent(l?l.networkMeasure:null)}),[l]),(0,r.useLayoutEffect)((()=>{S.current.displayIfNeeded()})),r.createElement(r.Fragment,null,r.createElement("canvas",{ref:i,height:t,width:a}),r.createElement(vv,{canvasRef:i,hoveredEvent:u,timelineData:e,viewState:n,canvasWidth:a,closedMenuStub:S.current.hasActiveView()?null:r.createElement(Jd,{canvasRef:i,data:e,height:t,hoveredEvent:l,origin:o,width:a}),ref:d}))}const _v=function({profilerData:e,viewState:t}){return r.createElement("div",{className:hv,style:{backgroundColor:nf.BACKGROUND}},r.createElement(Ar,null,(({height:n,width:a})=>r.createElement(pv,{data:e,height:n,viewState:t,width:a}))))};a(853);var Sv=a(41);const gv=31,bv=1,wv=60;class kv extends Error{}var Ev=a(715),yv=a.n(Ev);const Dv=20,Av=20,Cv={LONG_EVENT_HANDLER:"An event handler scheduled a big update with React. Consider using the Transition API to defer some of this work.",NESTED_UPDATE:"A big nested update was scheduled during layout. Nested updates require React to re-render synchronously before the browser can paint. Consider delaying this update by moving it to a passive effect (useEffect).",SUSPEND_DURING_UPDATE:"A component suspended during an update which caused a fallback to be shown. Consider using the Transition API to avoid hiding components after they've been mounted."};function Mv(e){const r=parseInt(e,10);if(r<0)return[];const t=[];let n=0;for(;n<=gv;)1<0){const{depth:r,type:t}=e[e.length-1];return"render-idle"===t?r:r+1}return 0}(o),l={type:e,batchUID:i,depth:s,lanes:t,timestamp:r,duration:0};a.measureStack.push({depth:s,measure:l,startTime:r,type:e});const c=n.batchUIDToMeasuresMap.get(i);null!=c?c.push(l):n.batchUIDToMeasuresMap.set(a.batchUID,[l]),t.forEach((e=>{n.laneToReactMeasureMap.get(e).push(l)}))}function Hv(e,r,t,n){if(0===n.length)return void console.error('Unexpected type "%s" completed at %sms while stack is empty.',e,r);const a=n[n.length-1];a.type!==e&&console.error('Unexpected type "%s" completed at %sms before "%s" completed.',e,r,a.type);const{measure:i,startTime:o}=n.pop();i||console.error('Could not find matching measure for type "%s".',e),i.duration=r-o}function Nv(e,r,t){const{cat:n,name:a,ts:i,ph:o}=e,s=(i-r.startTime)/1e3;switch(n){case"disabled-by-default-devtools.screenshot":!function(e,r,t,n){const a={height:0,image:null,imageSource:`data:image/png;base64,${e.args.snapshot}`,timestamp:r,width:0};let i=null;n.asyncProcessingPromises.push(new Promise((e=>{i=e}))),fetch(a.imageSource).then((e=>e.blob())).then((e=>{createImageBitmap(e).then((e=>{a.height=e.height,a.width=e.width,i()}))})),t.snapshots.push(a)}(e,s,r,t);break;case"devtools.timeline":switch(a){case"EventDispatch":!function(e,r,t,n){const a=e.args.data,i=a.type;if(i.startsWith("react-")){const e=a.stackTrace;if(e&&e[e.length-1].url.includes("/react-dom."))return}if("blur"===i||"click"===i||"input"===i||i.startsWith("focus")||i.startsWith("key")||i.startsWith("mouse")||i.startsWith("pointer")){const a=e.dur/1e3;let o=0;for(;n.nativeEventStack.length>0;){const e=n.nativeEventStack[n.nativeEventStack.length-1];if(r{o[e]=!1}));let s=0;for(let e=0;e"commit"===e))&&(t.potentialLongNestedUpdate=i),r.schedulingEvents.push(i)}else if(a.startsWith("--schedule-state-update-")){const[e,n]=a.slice(24).split("-"),i={type:"schedule-state-update",lanes:Mv(e),componentName:n,timestamp:s,warning:null};t.measureStack.find((({type:e})=>"commit"===e))&&(t.potentialLongNestedUpdate=i),r.schedulingEvents.push(i)}else if(a.startsWith("--error-")){const[e,t,n]=a.slice(8).split("-");r.thrownErrors.push({componentName:e,message:n,phase:t,timestamp:s,type:"thrown-error"})}else if(a.startsWith("--suspense-suspend-")){const[e,n,i,o,l]=a.slice(19).split("-"),c=Mv(o),u=new Array(t.unresolvedSuspenseEvents.size+1).fill(!0);t.unresolvedSuspenseEvents.forEach((({depth:e})=>{u[e]=!1}));let f=0;for(let e=0;e=0){const n=r[t];if(void 0===n.stopTime&&n.type===e)throw new kv(`Unexpected type "${e}" started before "${n.type}" completed.`)}}("render",t.measureStack),"render-idle"!==function(e){if(e.length>0){const{type:r}=e[e.length-1];return r}return null}(t.measureStack)&&Tv("render-idle",s,Mv(e),r,t),Tv("render",s,Mv(e),r,t);for(let e=0;es&&t.potentialLongEvents.push([r,t.batchUID])}}else if(a.startsWith("--render-stop")||a.startsWith("--render-yield"))Hv("render",s,0,t.measureStack);else if(a.startsWith("--commit-start-")){t.nextRenderShouldGenerateNewBatchID=!0;const[e]=a.slice(15).split("-");Tv("commit",s,Mv(e),r,t)}else if(a.startsWith("--commit-stop"))Hv("commit",s,0,t.measureStack),Hv("render-idle",s,0,t.measureStack);else if(a.startsWith("--layout-effects-start-")){const[e]=a.slice(23).split("-");Tv("layout-effects",s,Mv(e),r,t)}else if(a.startsWith("--layout-effects-stop"))Hv("layout-effects",s,0,t.measureStack);else if(a.startsWith("--passive-effects-start-")){const[e]=a.slice(24).split("-");Tv("passive-effects",s,Mv(e),r,t)}else if(a.startsWith("--passive-effects-stop"))Hv("passive-effects",s,0,t.measureStack);else if(a.startsWith("--react-internal-module-start-")){const e=a.slice(30);if(!t.internalModuleStackStringSet.has(e)){t.internalModuleStackStringSet.add(e);const r=Ov(e);t.internalModuleCurrentStackFrame=r}}else if(a.startsWith("--react-internal-module-stop-")){const e=a.slice(29);if(!t.internalModuleStackStringSet.has(e)){t.internalModuleStackStringSet.add(e);const n=Ov(e);if(null!==n&&null!==t.internalModuleCurrentStackFrame){const e=t.internalModuleCurrentStackFrame;t.internalModuleCurrentStackFrame=null;const a=[e,n],i=r.internalModuleSourceToRanges.get(e.fileName);null==i?r.internalModuleSourceToRanges.set(e.fileName,[a]):i.push(a)}}}else if("R"===o||"n"===o)r.otherUserTimingMarks.push({name:a,timestamp:s});else if("b"===o);else if("e"===o);else if("i"!==o&&"I"!==o)throw new kv(`Unrecognized event ${JSON.stringify(e)}! This is likely a bug in this profiler tool.`)}}function Rv(e){null!==e.currentReactComponentMeasure&&console.error("Component measure started while another measure in progress:",e.currentReactComponentMeasure)}function Iv(e,r){null===e.currentReactComponentMeasure?console.error(`Component measure type "${r}" stopped while no measure was in progress`):e.currentReactComponentMeasure.type!==r&&console.error(`Component measure type "${r}" stopped while type ${e.currentReactComponentMeasure.type} in progress`)}function Ov(e){const r=new Error;r.stack=e;const t=yv().parse(r);return 1===t.length?t[0]:null}async function Fv(e){const r=function(e){let r;try{r=(0,Sv.importFromChromeTimeline)(e,"react-devtools")}catch(e){const r=new kv(e.message);throw r.stack=e.stack,r}const t=r.profiles[0];return new Sv.Flamechart({getTotalWeight:t.getTotalWeight.bind(t),forEachCall:t.forEachCall.bind(t),formatValue:t.formatValue.bind(t),getColorBucketForFrame:()=>0}).getLayers().map((e=>e.map((({start:e,end:r,node:{frame:{name:t,file:n,line:a,col:i}}})=>({name:t,timestamp:e/1e3,duration:(r-e)/1e3,scriptUrl:n,locationLine:a,locationColumn:i})))))}(e),t=new Map;for(let e=0;ee.ts>r.ts?1:-1))).findIndex((e=>"Profile"===e.name));if(-1===a)return n;n.startTime=e[a].args.data.startTime,n.duration=(e[e.length-1].ts-n.startTime)/1e3;const i={asyncProcessingPromises:[],batchUID:0,currentReactComponentMeasure:null,internalModuleCurrentStackFrame:null,internalModuleStackStringSet:new Set,measureStack:[],nativeEventStack:[],nextRenderShouldGenerateNewBatchID:!0,potentialLongEvents:[],potentialLongNestedUpdate:null,potentialLongNestedUpdates:[],potentialSuspenseEventsOutsideOfTransition:[],requestIdToNetworkMeasureMap:new Map,uidCounter:0,unresolvedSuspenseEvents:new Map};if(e.forEach((e=>Nv(e,n,i))),null===xv){if(0===n.schedulingEvents.length&&0===n.batchUIDToMeasuresMap.size)throw new kv("No React marks were found in the provided profile. Please provide profiling data from an React application running in development or profiling mode.");throw new kv("This version of profiling data is not supported by the current profiler.")}const{measureStack:o}=i;if(o.length>0&&console.error("Incomplete events or measures",o),i.potentialLongEvents.forEach((([e,r])=>{const[t,a]=Kd(r,n,e.timestamp);a-t>Dv&&(e.warning=Cv.LONG_EVENT_HANDLER)})),i.potentialLongNestedUpdates.forEach((([e,r])=>{const[t,a]=Kd(r,n);a-t>Av&&e.lanes.some((e=>"Transition"===n.laneToLabelMap.get(e)))})),i.potentialSuspenseEventsOutsideOfTransition.forEach((([e,r])=>{r.some((e=>"Transition"===n.laneToLabelMap.get(e)))||(e.warning=Cv.SUSPEND_DURING_UPDATE)})),await Promise.all(i.asyncProcessingPromises),n.snapshots.length>0){const e=n.snapshots[0];n.snapshotHeight=Math.min(e.height,wv)}return n}var Pv=a(69),Lv=a.n(Pv);const zv=e=>{if(!e.name.endsWith(".json"))throw new kv("Invalid file type. Only JSON performance profiles are supported");const r=new FileReader;return new Promise(((t,n)=>{r.onload=()=>{const e=Lv()(r.result);"string"==typeof e&&t(e),n(new kv("Input file was not read as a string"))},r.onerror=()=>n(r.error),r.readAsText(e)}))};async function Bv(e){try{const r=await zv(e),t=JSON.parse(r);if(0===t.length)throw new kv("No profiling data found in file.");return{status:"SUCCESS",processedData:await Fv(t)}}catch(e){return e instanceof kv?{status:"INVALID_PROFILE_ERROR",error:e}:{status:"UNEXPECTED_ERROR",error:e}}}var Vv=a(282),Uv=a.n(Vv);const Wv=window.Worker?Uv()():e,jv=1,$v=2,Xv=new Map;function Gv(e){const r=e.name;let t=Xv.get(r);if(!t){const n=new Set,a=()=>{n.forEach((e=>e())),n.clear()},i=t={status:0,value:{then(e){n.add(e)},displayName:`Importing file "${r}"`}};(e=>Wv.importFile(e))(e).then((e=>{switch(e.status){case"SUCCESS":const r=i;r.status=jv,r.value=e.processedData;break;case"INVALID_PROFILE_ERROR":case"UNEXPECTED_ERROR":const t=i;t.status=$v,t.value=e.error}a()})),Xv.set(r,t)}const n=function(e){if(e.status===jv)return e;if(e.status===$v)return e;throw e.value}(t).value;return n}function Kv(e){const{searchInputContainerRef:t}=(0,r.useContext)(mu),{dispatch:n,searchIndex:a,searchResults:i,searchText:o}=(0,r.useContext)(fv);if(null===t.current)return null;return(0,qn.createPortal)(r.createElement(To,{goToNextResult:()=>n({type:"GO_TO_NEXT_SEARCH_RESULT"}),goToPreviousResult:()=>n({type:"GO_TO_PREVIOUS_SEARCH_RESULT"}),placeholder:"Search components by name",search:e=>n({type:"SET_SEARCH_TEXT",payload:e}),searchIndex:a,searchResultsCount:i.length,searchText:o}),t.current)}const qv={Column:"QjVtusM1KGirAKftEjwY",Header:"jiMh2PwnK6_SN21x4Q7M",Paragraph:"pNkugLfjnL1A_GKSmR2Q",Link:"M9S99onnkkihyqGdp7ag",LearnMoreRow:"Zu1Ac7CcqoyQYyYmgeqc",Code:"Ixc7sI8z0MqS7K2bdXGW",MetaGKRow:"fwIa_vMWRtgmxAgYtV2y"};function Yv(){return r.createElement("div",{className:qv.Column},r.createElement("div",{className:qv.Header},"Timeline profiling not supported."),r.createElement("p",{className:qv.Paragraph},r.createElement("span",null,"Timeline profiler requires a development or profiling build of"," ",r.createElement("code",{className:qv.Code},"react-dom@^18"),".")),r.createElement("div",{className:qv.LearnMoreRow},"Click"," ",r.createElement("a",{className:qv.Link,href:"https://fb.me/react-devtools-profiling",rel:"noopener noreferrer",target:"_blank"},"here")," ","to learn more about profiling."),Ut&&r.createElement("div",{className:qv.MetaGKRow},r.createElement("strong",null,"Meta only"),": Enable the"," ",r.createElement("a",{className:qv.Link,href:"https://fburl.com/react-devtools-scheduling-profiler-gk",rel:"noopener noreferrer",target:"_blank"},"react_enable_scheduling_profiler GK"),"."))}const Qv={Content:"eue06UGfhEQuo2ZKaXrY",ErrorMessage:"K_JJva1_xDfpSRy6RpDu",Row:"fU0E28avKp3oPxeR34NR",EmptyStateContainer:"wjNO8GSvNqofzPC3JMXU",Header:"tWwch6_bJnvq33qchywK"};function Jv(e){const{file:t,inMemoryTimelineData:n,isTimelineSupported:a,setFile:i,viewState:o}=(0,r.useContext)(mu),{didRecordCommits:s,isProfiling:l}=(0,r.useContext)(Zc),c=(0,r.useRef)(null),{theme:u}=(0,r.useContext)(jt),f=(0,r.useDeferredValue)(u),[d,v]=(0,r.useState)(u);(0,r.useLayoutEffect)((()=>{const e=setInterval((()=>{(function(e){const r=getComputedStyle(e);return null!=r.getPropertyValue("--color-background")&&(nf={BACKGROUND:r.getPropertyValue("--color-background"),INTERNAL_MODULE_FRAME:r.getPropertyValue("--color-timeline-internal-module"),INTERNAL_MODULE_FRAME_HOVER:r.getPropertyValue("--color-timeline-internal-module-hover"),INTERNAL_MODULE_FRAME_TEXT:r.getPropertyValue("--color-timeline-internal-module-text"),NATIVE_EVENT:r.getPropertyValue("--color-timeline-native-event"),NATIVE_EVENT_HOVER:r.getPropertyValue("--color-timeline-native-event-hover"),NETWORK_PRIMARY:r.getPropertyValue("--color-timeline-network-primary"),NETWORK_PRIMARY_HOVER:r.getPropertyValue("--color-timeline-network-primary-hover"),NETWORK_SECONDARY:r.getPropertyValue("--color-timeline-network-secondary"),NETWORK_SECONDARY_HOVER:r.getPropertyValue("--color-timeline-network-secondary-hover"),PRIORITY_BACKGROUND:r.getPropertyValue("--color-timeline-priority-background"),PRIORITY_BORDER:r.getPropertyValue("--color-timeline-priority-border"),PRIORITY_LABEL:r.getPropertyValue("--color-text"),USER_TIMING:r.getPropertyValue("--color-timeline-user-timing"),USER_TIMING_HOVER:r.getPropertyValue("--color-timeline-user-timing-hover"),REACT_IDLE:r.getPropertyValue("--color-timeline-react-idle"),REACT_IDLE_HOVER:r.getPropertyValue("--color-timeline-react-idle-hover"),REACT_RENDER:r.getPropertyValue("--color-timeline-react-render"),REACT_RENDER_HOVER:r.getPropertyValue("--color-timeline-react-render-hover"),REACT_RENDER_TEXT:r.getPropertyValue("--color-timeline-react-render-text"),REACT_COMMIT:r.getPropertyValue("--color-timeline-react-commit"),REACT_COMMIT_HOVER:r.getPropertyValue("--color-timeline-react-commit-hover"),REACT_COMMIT_TEXT:r.getPropertyValue("--color-timeline-react-commit-text"),REACT_LAYOUT_EFFECTS:r.getPropertyValue("--color-timeline-react-layout-effects"),REACT_LAYOUT_EFFECTS_HOVER:r.getPropertyValue("--color-timeline-react-layout-effects-hover"),REACT_LAYOUT_EFFECTS_TEXT:r.getPropertyValue("--color-timeline-react-layout-effects-text"),REACT_PASSIVE_EFFECTS:r.getPropertyValue("--color-timeline-react-passive-effects"),REACT_PASSIVE_EFFECTS_HOVER:r.getPropertyValue("--color-timeline-react-passive-effects-hover"),REACT_PASSIVE_EFFECTS_TEXT:r.getPropertyValue("--color-timeline-react-passive-effects-text"),REACT_RESIZE_BAR:r.getPropertyValue("--color-resize-bar"),REACT_RESIZE_BAR_ACTIVE:r.getPropertyValue("--color-resize-bar-active"),REACT_RESIZE_BAR_BORDER:r.getPropertyValue("--color-resize-bar-border"),REACT_RESIZE_BAR_DOT:r.getPropertyValue("--color-resize-bar-dot"),REACT_SCHEDULE:r.getPropertyValue("--color-timeline-react-schedule"),REACT_SCHEDULE_HOVER:r.getPropertyValue("--color-timeline-react-schedule-hover"),REACT_SUSPENSE_REJECTED_EVENT:r.getPropertyValue("--color-timeline-react-suspense-rejected"),REACT_SUSPENSE_REJECTED_EVENT_HOVER:r.getPropertyValue("--color-timeline-react-suspense-rejected-hover"),REACT_SUSPENSE_RESOLVED_EVENT:r.getPropertyValue("--color-timeline-react-suspense-resolved"),REACT_SUSPENSE_RESOLVED_EVENT_HOVER:r.getPropertyValue("--color-timeline-react-suspense-resolved-hover"),REACT_SUSPENSE_UNRESOLVED_EVENT:r.getPropertyValue("--color-timeline-react-suspense-unresolved"),REACT_SUSPENSE_UNRESOLVED_EVENT_HOVER:r.getPropertyValue("--color-timeline-react-suspense-unresolved-hover"),REACT_THROWN_ERROR:r.getPropertyValue("--color-timeline-thrown-error"),REACT_THROWN_ERROR_HOVER:r.getPropertyValue("--color-timeline-thrown-error-hover"),REACT_WORK_BORDER:r.getPropertyValue("--color-timeline-react-work-border"),SCROLL_CARET:r.getPropertyValue("--color-scroll-caret"),SCRUBBER_BACKGROUND:r.getPropertyValue("--color-timeline-react-suspense-rejected"),SEARCH_RESULT_FILL:r.getPropertyValue("--color-timeline-react-suspense-rejected"),SCRUBBER_BORDER:r.getPropertyValue("--color-timeline-text-color"),TEXT_COLOR:r.getPropertyValue("--color-timeline-text-color"),TEXT_DIM_COLOR:r.getPropertyValue("--color-timeline-text-dim-color"),TIME_MARKER_LABEL:r.getPropertyValue("--color-text"),WARNING_BACKGROUND:r.getPropertyValue("--color-warning-background"),WARNING_BACKGROUND_HOVER:r.getPropertyValue("--color-warning-background-hover"),WARNING_TEXT:r.getPropertyValue("--color-warning-text-color"),WARNING_TEXT_INVERED:r.getPropertyValue("--color-warning-text-color-inverted")},!0)})(c.current)&&(clearInterval(e),v(f))}),50);return()=>{clearInterval(e)}}),[f]);let h=null;if(l)h=r.createElement(Ju,null);else if(n&&n.length>0){const e=n[0];h=r.createElement(dv,{profilerData:e,viewState:o},r.createElement(Kv,null),r.createElement(_v,{profilerData:e,viewState:o}))}else h=t?r.createElement(r.Suspense,{fallback:r.createElement(Zv,null)},r.createElement(th,{file:t,key:d,onFileSelect:i,viewState:o})):s?r.createElement(rh,null):a?r.createElement(Qu,null):r.createElement(Yv,null);return r.createElement("div",{className:Qv.Content,ref:c},h)}const Zv=()=>r.createElement("div",{className:Qv.EmptyStateContainer},r.createElement("div",{className:Qv.Header},"Processing data..."),r.createElement("div",{className:Qv.Row},"This should only take a minute.")),eh=({error:e,onFileSelect:t})=>r.createElement("div",{className:Qv.EmptyStateContainer},r.createElement("div",{className:Qv.Header},"Could not load profile"),e.message&&r.createElement("div",{className:Qv.Row},r.createElement("div",{className:Qv.ErrorMessage},e.message)),r.createElement("div",{className:Qv.Row},"Try importing another Chrome performance profile.")),rh=()=>r.createElement("div",{className:Qv.EmptyStateContainer},r.createElement("div",{className:Qv.Row},"This current profile does not contain timeline data.")),th=({file:e,onFileSelect:t,viewState:n})=>{if(null===e)return null;const a=Gv(e);return a instanceof Error?r.createElement(eh,{error:a,onFileSelect:t}):r.createElement(dv,{profilerData:a,viewState:n},r.createElement(Kv,null),r.createElement(_v,{profilerData:a,viewState:n}))},nh={Toolbar:"lgd3ZCMgCXtUMxt070tV",Content:"sWXfInUyKrvDk6lK2o9D",List:"tubB5UBWO8CymMFmA5CF",ListItem:"UOZgvcZmCsPSOtKDj0WN",Label:"fDFFFS6FSdkZVvvvVkUt",Value:"jlV06smRNDvlE9a_KfXK",Row:"jCiyjnM7GK5KxPMT5GMO",UnclickableSource:"BTlRsBnXtBSjjGNX0uzb",ClickableSource:"fRBYQh_ObZ4pHWasihPS"};function ah({eventInfo:e}){const{canViewElementSourceFunction:t,viewElementSourceFunction:n}=(0,r.useContext)(Pc),{componentName:a,timestamp:i}=e,o=e.componentStack||null;return r.createElement(r.Fragment,null,r.createElement("div",{className:nh.Toolbar},a," ",ud(e)),r.createElement("div",{className:nh.Content,tabIndex:0},r.createElement("ul",{className:nh.List},r.createElement("li",{className:nh.ListItem},r.createElement("label",{className:nh.Label},"Timestamp"),":"," ",r.createElement("span",{className:nh.Value},sd(i))),o&&r.createElement("li",{className:nh.ListItem},r.createElement("div",{className:nh.Row},r.createElement("label",{className:nh.Label},"Rendered by"),r.createElement(Ya,{onClick:()=>(0,f.copy)(o),title:"Copy component stack to clipboard"},r.createElement(Yt,{type:"copy"}))),r.createElement("ul",{className:nh.List},function(e){const r=[];return e.split(We).slice(1).forEach((e=>{const t=je.exec(e);if(t){const[,e,n,a,i]=t;r.push([e,[n,parseInt(a,10),parseInt(i,10)]])}else r.push([e,null])})),r}(o).map((([e,a],i)=>{if(null==a)return r.createElement("li",{key:i},r.createElement(Ya,{className:nh.UnclickableSource,disabled:!0},e));const[o,s,l]=a,c={sourceURL:o,line:s,column:l},u=null==t||t(c,null),f=u&&null!=n?()=>n(c,null):()=>null;return r.createElement("li",{key:i},r.createElement(Ya,{className:u?nh.ClickableSource:nh.UnclickableSource,disabled:!u,onClick:f},e))})))))))}function ih(e){const{selectedEvent:t}=(0,r.useContext)(mu);return t&&t.schedulingEvent?r.createElement(ah,{eventInfo:t.schedulingEvent}):null}function oh({disabled:e}){const t=(0,r.useContext)(hr),n=(0,r.useContext)(mr),a=(0,r.useMemo)((()=>({getCurrentValue:()=>({recordChangeDescriptions:n.recordChangeDescriptions,supportsReloadAndProfile:n.supportsReloadAndProfile}),subscribe:e=>(n.addListener("recordChangeDescriptions",e),n.addListener("supportsReloadAndProfile",e),()=>{n.removeListener("recordChangeDescriptions",e),n.removeListener("supportsReloadAndProfile",e)})})),[n]),{recordChangeDescriptions:i,supportsReloadAndProfile:o}=zt(a),s=(0,r.useCallback)((()=>{t.send("reloadAndProfile",i)}),[t,i]);return o?r.createElement(Ya,{disabled:e,onClick:s,title:"Reload and start profiling"},r.createElement(Yt,{type:"reload"})):null}const sh=Array.isArray;const lh=function(e){return sh(e)},ch=Object.prototype.hasOwnProperty,uh={VRule:"N8H0SJ33TtBea__rELXw",Input:"_08ibVjqcFQVJ0Dv8n1AX",ErrorMessage:"aieWFlSkxB_kzGCdLw_G"};function fh(){const{isProfiling:e,profilingData:t,rootID:n}=(0,r.useContext)(Zc),{setFile:a}=(0,r.useContext)(mu),i=(0,r.useContext)(mr),{profilerStore:o}=i,s=(0,r.useRef)(null),l=(0,r.useRef)(null),{dispatch:c}=(0,r.useContext)(Ps),u=o.didRecordCommits,f=(0,r.useCallback)((()=>{if(null===n)return;const e=l.current;if(null!==t&&null!==e){const r=function(e){const r=e.timelineData.map((({batchUIDToMeasuresMap:e,componentMeasures:r,duration:t,flamechart:n,internalModuleSourceToRanges:a,laneToLabelMap:i,laneToReactMeasureMap:o,nativeEvents:s,networkMeasures:l,otherUserTimingMarks:c,reactVersion:u,schedulingEvents:f,snapshots:d,snapshotHeight:v,startTime:h,suspenseEvents:m,thrownErrors:p})=>({batchUIDToMeasuresKeyValueArray:Array.from(e.entries()),componentMeasures:r,duration:t,flamechart:n,internalModuleSourceToRanges:Array.from(a.entries()),laneToLabelKeyValueArray:Array.from(i.entries()),laneToReactMeasureKeyValueArray:Array.from(o.entries()),nativeEvents:s,networkMeasures:l,otherUserTimingMarks:c,reactVersion:u,schedulingEvents:f,snapshots:d,snapshotHeight:v,startTime:h,suspenseEvents:m,thrownErrors:p}))),t=[];return e.dataForRoots.forEach((({commitData:e,displayName:r,initialTreeBaseDurations:n,operations:a,rootID:i,snapshots:o})=>{t.push({commitData:e.map((({changeDescriptions:e,duration:r,effectDuration:t,fiberActualDurations:n,fiberSelfDurations:a,passiveEffectDuration:i,priorityLevel:o,timestamp:s,updaters:l})=>({changeDescriptions:null!=e?Array.from(e.entries()):null,duration:r,effectDuration:t,fiberActualDurations:Array.from(n.entries()),fiberSelfDurations:Array.from(a.entries()),passiveEffectDuration:i,priorityLevel:o,timestamp:s,updaters:l}))),displayName:r,initialTreeBaseDurations:Array.from(n.entries()),operations:a,rootID:i,snapshots:Array.from(o.entries())})})),{version:R,dataForRoots:t,timelineData:r}}(t),n=new Date;!function(e,r,t){const n=new Blob([t],{type:"text/plain;charset=utf-8"});null!==at&&URL.revokeObjectURL(at),at=URL.createObjectURL(n),e.setAttribute("href",at),e.setAttribute("download",r),e.click()}(e,`profiling-data.${n.toLocaleDateString(void 0,{year:"numeric",month:"2-digit",day:"2-digit"}).replace(/\//g,"-")}.${n.toLocaleTimeString(void 0,{hour12:!1}).replace(/:/g,"-")}.json`,JSON.stringify(r,null,2))}}),[n,t]),d=(0,r.useCallback)((()=>{null!==s.current&&s.current.click()}),[]);return r.createElement(r.Fragment,null,r.createElement("div",{className:uh.VRule}),r.createElement("input",{ref:s,className:uh.Input,type:"file",accept:".json",onChange:()=>{const e=s.current;if(null!==e&&e.files.length>0){const t=e.files[0],n=new FileReader;n.addEventListener("load",(()=>{const e=n.result,i=JSON.parse(e);if(!lh(i)&&ch.call(i,"version")){a(null);try{const e=i;o.profilingData=function(e){const{version:r}=e;if(r!==R)throw Error(`Unsupported profile export version "${r}". Supported version is "${R}".`);const t=e.timelineData?e.timelineData.map((({batchUIDToMeasuresKeyValueArray:e,componentMeasures:r,duration:t,flamechart:n,internalModuleSourceToRanges:a,laneToLabelKeyValueArray:i,laneToReactMeasureKeyValueArray:o,nativeEvents:s,networkMeasures:l,otherUserTimingMarks:c,reactVersion:u,schedulingEvents:f,snapshots:d,snapshotHeight:v,startTime:h,suspenseEvents:m,thrownErrors:p})=>({batchUIDToMeasuresMap:new Map(e),componentMeasures:r,duration:t,flamechart:n,internalModuleSourceToRanges:new Map(a),laneToLabelMap:new Map(i),laneToReactMeasureMap:new Map(o),nativeEvents:s,networkMeasures:l,otherUserTimingMarks:c,reactVersion:u,schedulingEvents:f,snapshots:d,snapshotHeight:v,startTime:h,suspenseEvents:m,thrownErrors:p}))):[],n=new Map;return e.dataForRoots.forEach((({commitData:e,displayName:r,initialTreeBaseDurations:t,operations:a,rootID:i,snapshots:o})=>{n.set(i,{commitData:e.map((({changeDescriptions:e,duration:r,effectDuration:t,fiberActualDurations:n,fiberSelfDurations:a,passiveEffectDuration:i,priorityLevel:o,timestamp:s,updaters:l})=>({changeDescriptions:null!=e?new Map(e):null,duration:r,effectDuration:t,fiberActualDurations:new Map(n),fiberSelfDurations:new Map(a),passiveEffectDuration:i,priorityLevel:o,timestamp:s,updaters:l}))),displayName:r,initialTreeBaseDurations:new Map(t),operations:a,rootID:i,snapshots:new Map(o)})})),{dataForRoots:n,imported:!0,timelineData:t}}(e)}catch(e){c({id:"ProfilingImportExportButtons",type:"SHOW",title:"Import failed",content:r.createElement(r.Fragment,null,r.createElement("div",null,"The profiling data you selected cannot be imported."),null!==e&&r.createElement("div",{className:uh.ErrorMessage},e.message))})}}else o.clear(),a(t)})),n.readAsText(t)}},tabIndex:-1}),r.createElement("a",{ref:l,className:uh.Input}),r.createElement(Ya,{disabled:e,onClick:d,title:"Load profile..."},r.createElement(Yt,{type:"import"})),r.createElement(Ya,{disabled:e||!u,onClick:f,title:"Save profile..."},r.createElement(Yt,{type:"export"})))}const dh="jw93IlCe1adpUzntTNgc",vh="_5XUdsPllhotmtTs9R33A",hh="tX5mJ_WVcSwasnpmMncZ";function mh({data:e,index:t,style:n}){const{filteredCommitIndices:a,maxDuration:i,selectedCommitIndex:o,selectCommitIndex:s,setHoveredCommitIndex:l,startCommitDrag:c,totalDurations:u}=e,f=u[t=a[t]],d=Math.min(1,Math.max(0,Math.cbrt(f)/Math.cbrt(i)))||0,v=Math.min(1,Math.max(0,f/i))||0,h=o===t,m=parseFloat(n.width)-1;let p;return!h&&f>0&&(p=Xe(v)),r.createElement("div",{className:dh,onMouseDown:({buttons:e,target:r})=>{1===e&&(s(t),c({commitIndex:t,left:r.getBoundingClientRect().left,sizeIncrement:parseFloat(n.width)}))},onMouseEnter:()=>l(t),style:{...n,width:m,borderBottom:h?"3px solid var(--color-tab-selected-border)":void 0}},r.createElement("div",{className:h?hh:vh,style:{height:`${Math.round(100*d)}%`,backgroundColor:p}}))}const ph=(0,r.memo)(mh,qr),_h={List:"sfkKfFJiQWXm4ZkgOQA_",Tooltip:"uWBBMcT5QRe8BLmRr5DN",TooltipList:"PeBCG3928_FRgKe17he8",TooltipListItem:"wKr9YTA5FM7_JaJbZOv2",TooltipLabel:"cfm4U9M_1T9x2RmXMrxG",TooltipValue:"qRIEqFLWDIjANIC0Ntie",DurationsWrapper:"izM1TvBpZUUcTQ42Frqn",DurationsList:"s7evU0HIQSOHulfOSX9I",DurationsListItem:"c8bhlz4IND24Tuk1grrp",DurationsLabel:"WD60Q47uUTiP3xkXlZyb",DurationsValue:"xhTBBmJDUq4Q4FqKQ0Ej"};function Sh({commitData:e,commitTimes:t,filteredCommitIndices:n,selectedCommitIndex:a,selectedFilteredCommitIndex:i,selectCommitIndex:o,totalDurations:s}){return r.createElement(Ar,null,(({height:l,width:c})=>r.createElement(gh,{commitData:e,commitTimes:t,height:l,filteredCommitIndices:n,selectedCommitIndex:a,selectedFilteredCommitIndex:i,selectCommitIndex:o,totalDurations:s,width:c})))}function gh({commitData:e,selectedCommitIndex:t,commitTimes:n,height:a,filteredCommitIndices:i,selectedFilteredCommitIndex:o,selectCommitIndex:s,totalDurations:l,width:c}){const u=(0,r.useRef)(null),f=(0,r.useRef)(null),d=(0,r.useRef)(null);(0,r.useEffect)((()=>{o!==d.current&&(d.current=o,null!==o&&null!==u.current&&u.current.scrollToItem(o))}),[u,o]);const v=(0,r.useMemo)((()=>Math.max(wu,c/i.length)),[i,c]),h=(0,r.useMemo)((()=>l.reduce(((e,r)=>Math.max(e,r)),0)),[l]),m=i.length-1,[p,_]=(0,r.useState)(null),S=({buttons:e,pageX:r})=>{if(0!==e){if(null!==p){const{commitIndex:e,left:t,sizeIncrement:n}=p;let a=e,i=t;if(re;)e+=n,a+=1}a<0?a=0:a>m&&(a=m),s(a)}}else _(null)};(0,r.useEffect)((()=>{if(null===p)return;const e=f.current;if(null!==e){const r=e.ownerDocument;return r.addEventListener("mousemove",S),()=>{r.removeEventListener("mousemove",S)}}}),[p]);const[g,b]=(0,r.useState)(null),w=(0,r.useMemo)((()=>({commitTimes:n,filteredCommitIndices:i,maxDuration:h,selectedCommitIndex:t,selectedFilteredCommitIndex:o,selectCommitIndex:s,setHoveredCommitIndex:b,startCommitDrag:_,totalDurations:l})),[n,i,h,t,o,s,b,l]);let k=null;if(null!==g){const{duration:t,effectDuration:n,passiveEffectDuration:a,priorityLevel:i,timestamp:o}=e[g];k=null!==n||null!==a||null!==i?r.createElement("ul",{className:_h.TooltipList},null!==i&&r.createElement("li",{className:_h.TooltipListItem},r.createElement("label",{className:_h.TooltipLabel},"Priority"),r.createElement("span",{className:_h.TooltipValue},i)),r.createElement("li",{className:_h.TooltipListItem},r.createElement("label",{className:_h.TooltipLabel},"Committed at"),r.createElement("span",{className:_h.TooltipValue},Ke(o),"s")),r.createElement("li",{className:_h.TooltipListItem},r.createElement("div",{className:_h.DurationsWrapper},r.createElement("label",{className:_h.TooltipLabel},"Durations"),r.createElement("ul",{className:_h.DurationsList},r.createElement("li",{className:_h.DurationsListItem},r.createElement("label",{className:_h.DurationsLabel},"Render"),r.createElement("span",{className:_h.DurationsValue},Ge(t),"ms")),null!==n&&r.createElement("li",{className:_h.DurationsListItem},r.createElement("label",{className:_h.DurationsLabel},"Layout effects"),r.createElement("span",{className:_h.DurationsValue},Ge(n),"ms")),null!==a&&r.createElement("li",{className:_h.DurationsListItem},r.createElement("label",{className:_h.DurationsLabel},"Passive effects"),r.createElement("span",{className:_h.DurationsValue},Ge(a),"ms")))))):`${Ge(t)}ms at ${Ke(o)}s`}return r.createElement(Ru,{className:_h.Tooltip,label:k},r.createElement("div",{ref:f,style:{height:a,width:c},onMouseLeave:()=>b(null)},r.createElement($r,{className:_h.List,layout:"horizontal",height:a,itemCount:i.length,itemData:w,itemSize:v,ref:u,width:c},ph)))}const bh={Button:"_CufCnCVGPGWnSFl1uho",Commits:"Hl8vt0A1Pvc45oOEfvfc",IndexLabel:"xiLvxcsoqxeWVh07R31l",NoCommits:"jsUKzO10uV20A3wnvydO",Input:"ugxes_bEQaeJOFCGJiHj"};function wh(e){const{isCommitFilterEnabled:t,minCommitDuration:n,rootID:a,selectedCommitIndex:i,selectCommitIndex:o}=(0,r.useContext)(Zc),{profilerStore:s}=(0,r.useContext)(mr),{commitData:l}=s.getDataForRoot(a),c=[],u=[];l.forEach((e=>{c.push(e.duration+(e.effectDuration||0)+(e.passiveEffectDuration||0)),u.push(e.timestamp)}));const f=(0,r.useMemo)((()=>l.reduce(((e,r,a)=>((!t||r.duration>=n)&&e.push(a),e)),[])),[l,t,n]),d=f.length,v=(0,r.useMemo)((()=>{if(null!==i)for(let e=0;e0?0:null):v>=d&&o(0===d?null:d-1);let h=null;if(d>0){const e=e=>{const r=parseInt(e.currentTarget.value,10);if(!isNaN(r)){const e=Math.min(Math.max(r-1,0),d-1);o(f[e])}},t=e=>{e.currentTarget.select()},n=e=>{switch(e.key){case"ArrowDown":p(),e.stopPropagation();break;case"ArrowUp":m(),e.stopPropagation()}},a=r.createElement("input",{className:bh.Input,"data-testname":"SnapshotSelector-Input",type:"text",inputMode:"numeric",pattern:"[0-9]*",value:v+1,size:`${d}`.length,onChange:e,onClick:t,onKeyDown:n});h=r.createElement(r.Fragment,null,a," / ",d)}const m=()=>{let e=v+1;e===f.length&&(e=0),o(f[e])},p=()=>{let e=v-1;e<0&&(e=f.length-1),o(f[e])};return 0===l.length?null:r.createElement(r.Fragment,null,r.createElement("span",{className:bh.IndexLabel,"data-testname":"SnapshotSelector-Label"},h),r.createElement(Ya,{className:bh.Button,"data-testname":"SnapshotSelector-PreviousButton",disabled:0===d,onClick:p,title:"Select previous commit"},r.createElement(Yt,{type:"previous"})),r.createElement("div",{className:bh.Commits,onKeyDown:e=>{switch(e.key){case"ArrowLeft":p(),e.stopPropagation();break;case"ArrowRight":m(),e.stopPropagation()}},style:{flex:d>0?"1 1 auto":"0 0 auto",maxWidth:d>0?d*bu:void 0},tabIndex:0},d>0&&r.createElement(Sh,{commitData:l,commitTimes:u,filteredCommitIndices:f,selectedCommitIndex:i,selectedFilteredCommitIndex:v,selectCommitIndex:o,totalDurations:c}),0===d&&r.createElement("div",{className:bh.NoCommits},"No commits")),r.createElement(Ya,{className:bh.Button,"data-testname":"SnapshotSelector-NextButton",disabled:0===d,onClick:m,title:"Select next commit"},r.createElement(Yt,{type:"next"})))}const kh={Updaters:"N5BzlnGYbkkzyvpM4qiQ",NoUpdaters:"OgEAxEkwb3k_69AoeGQg",Updater:"_1c63tyMUi98qTClO_SL",UnmountedUpdater:"IfiD3wgD1AOg2rtpeal7"};function Eh({commitTree:e,updaters:t}){const{selectFiber:n}=(0,r.useContext)(Zc),a=t.length>0?t.map((t=>{const{displayName:a,id:i,key:o,type:s}=t;return e.nodes.has(i)&&s!==U?r.createElement("button",{key:i,className:kh.Updater,onClick:()=>n(i,a)},a," ",o?`key="${o}"`:""):r.createElement("div",{key:i,className:kh.UnmountedUpdater},a," ",o?`key="${o}"`:"")})):r.createElement("div",{key:"none",className:kh.NoUpdaters},"(unknown)");return r.createElement("div",{className:kh.Updaters},a)}const yh={Toolbar:"Db7NQhHEeI91oH3Hvbam",Content:"aZe2MG7Dqp4KMuyOUDBb",List:"f6VXZunRdhS7mNMG6eEP",ListItem:"kcRreMlssKZxm_LOVtFG",Label:"ZwF9CPaTyMcALuS4IHhC",Value:"uo6JwMiedyAH3mIG8aVo",NothingSelected:"I2PpODEiFO9QPDXyopKq",DurationsList:"BCDwBn2mncLqqERXZimU",DurationsListItem:"QRBDzhIQcmbPsRZCmqac"};function Dh(e){const{selectedCommitIndex:t,rootID:n}=(0,r.useContext)(Zc),{profilerStore:a}=(0,r.useContext)(mr);if(null===n||null===t)return r.createElement("div",{className:yh.NothingSelected},"Nothing selected");const{duration:i,effectDuration:o,passiveEffectDuration:s,priorityLevel:l,timestamp:c,updaters:u}=a.getCommitData(n,t),f=null!==o||null!==s,d=null!==u?Je({commitIndex:t,profilerStore:a,rootID:n}):null;return r.createElement(r.Fragment,null,r.createElement("div",{className:yh.Toolbar},"Commit information"),r.createElement("div",{className:yh.Content},r.createElement("ul",{className:yh.List},null!==l&&r.createElement("li",{className:yh.ListItem},r.createElement("label",{className:yh.Label},"Priority"),":"," ",r.createElement("span",{className:yh.Value},l)),r.createElement("li",{className:yh.ListItem},r.createElement("label",{className:yh.Label},"Committed at"),":"," ",r.createElement("span",{className:yh.Value},Ke(c),"s")),!f&&r.createElement("li",{className:yh.ListItem},r.createElement("label",{className:yh.Label},"Render duration"),":"," ",r.createElement("span",{className:yh.Value},Ge(i),"ms")),f&&r.createElement("li",{className:yh.ListItem},r.createElement("label",{className:yh.Label},"Durations"),r.createElement("ul",{className:yh.DurationsList},r.createElement("li",{className:yh.DurationsListItem},r.createElement("label",{className:yh.Label},"Render"),":"," ",r.createElement("span",{className:yh.Value},Ge(i),"ms")),null!==o&&r.createElement("li",{className:yh.DurationsListItem},r.createElement("label",{className:yh.Label},"Layout effects"),":"," ",r.createElement("span",{className:yh.Value},Ge(o),"ms")),null!==s&&r.createElement("li",{className:yh.DurationsListItem},r.createElement("label",{className:yh.Label},"Passive effects"),":"," ",r.createElement("span",{className:yh.Value},Ge(s),"ms")))),null!==u&&null!==d&&r.createElement("li",{className:yh.ListItem},r.createElement("label",{className:yh.Label},"What caused this update"),"?",r.createElement(Eh,{commitTree:d,updaters:u})))))}function Ah(){return r.createElement("div",{className:Yu.Column},r.createElement("div",{className:Yu.Header},"Processing data..."),r.createElement("div",{className:Yu.Row},"This should only take a minute."))}function Ch(){return r.createElement("div",{className:Yu.Column},r.createElement("div",{className:Yu.Header},"Profiling not supported."),r.createElement("p",{className:Yu.Paragraph},"Profiling support requires either a development or profiling build of React v16.5+."),r.createElement("p",{className:Yu.Paragraph},"Learn more at"," ",r.createElement("a",{className:Yu.Link,href:"https://fb.me/react-devtools-profiling",rel:"noopener noreferrer",target:"_blank"},"reactjs.org/link/profiling"),"."))}const Mh={Toolbar:"kksxAeylH3yoPGPSZs4x",Content:"VJy47nzDRAprXO7tY3LS",Component:"ISf33Slct6dgSxu6Jgnp",Label:"aHgahOIZbyM7IqHd3i2t",CurrentCommit:"DHfht546g4Kr5iX3Oa6Q",Commit:"q3pfRhYTXkmwbWV74Kww"};function xh(){const{profilerStore:e}=(0,r.useContext)(mr),{rootID:t,selectCommitIndex:n,selectedCommitIndex:a,selectedFiberID:i,selectedFiberName:o,selectFiber:s}=(0,r.useContext)(Zc),{profilingCache:l}=e,c=(0,r.useRef)(null);if((0,r.useEffect)((()=>{const e=c.current;null!==e&&"function"==typeof e.scrollIntoView&&e.scrollIntoView({block:"nearest",inline:"nearest"})}),[a]),null===i||null===t||null===a)return null;const u=l.getFiberCommits({fiberID:i,rootID:t}),{nodes:f}=l.getCommitTree({rootID:t,commitIndex:a}),d=f.get(i),v=[];let h=0;for(h=0;hn(i)},Ke(s),"s for ",Ge(o),"ms"))}return r.createElement(r.Fragment,null,r.createElement("div",{className:Mh.Toolbar},r.createElement("div",{className:Mh.Component},o||"Selected component"),r.createElement(Ya,{onClick:()=>s(null,null),title:"Back to commit view"},r.createElement(Yt,{type:"close"}))),r.createElement("div",{className:Mh.Content,onKeyDown:e=>{switch(e.key){case"ArrowUp":if(null!==a){const e=u.indexOf(a),r=e>0?e-1:u.length-1;n(u[r])}e.preventDefault();break;case"ArrowDown":if(null!==a){const e=u.indexOf(a),r=e0&&r.createElement("div",null,r.createElement("label",{className:Mh.Label},"Rendered at: "),v),0===v.length&&r.createElement("div",null,"Did not render during this profiling session.")))}const Th=()=>r.createElement("div",{className:Yu.Column},r.createElement("div",{className:Yu.Header},"Timeline only"),r.createElement("div",{className:Yu.Row},"The current profile contains only Timeline data.")),Hh=[{id:"flame-chart",icon:"flame-chart",label:"Flamegraph",title:"Flamegraph chart"},{id:"ranked-chart",icon:"ranked-chart",label:"Ranked",title:"Ranked chart"}],Nh=[...Hh,null,{id:"timeline",icon:"timeline",label:"Timeline",title:"Timeline"}],Rh=Ds((function(e){const{didRecordCommits:t,isProcessingData:n,isProfiling:a,selectedCommitIndex:i,selectedFiberID:o,selectedTabID:s,selectTab:l,supportsProfiling:c}=(0,r.useContext)(Zc),{file:u,searchInputContainerRef:f}=(0,r.useContext)(mu),{supportsTimeline:d}=(0,r.useContext)(mr),v="timeline"!==s;let h=null;if(t||"timeline"===s)switch(s){case"flame-chart":h=r.createElement(Pu,null);break;case"ranked-chart":h=r.createElement(Wu,null);break;case"timeline":h=r.createElement(Jv,null)}else h=a?r.createElement(Ju,null):n?r.createElement(Ah,null):u?r.createElement(Th,null):c?r.createElement(Qu,null):r.createElement(Ch,null);let m=null;if(!a&&!n&&t)switch(s){case"flame-chart":case"ranked-chart":null!==i&&(m=null!==o?r.createElement(xh,null):r.createElement(Dh,null));break;case"timeline":m=r.createElement(ih,null)}return r.createElement(Ro,null,r.createElement("div",{className:Yu.Profiler},r.createElement("div",{className:Yu.LeftColumn},r.createElement("div",{className:Yu.Toolbar},r.createElement(qu,{disabled:!c}),r.createElement(oh,{disabled:!c}),r.createElement(_u,null),r.createElement(fh,null),r.createElement("div",{className:Yu.VRule}),r.createElement($c,{currentTab:s,id:"Profiler",selectTab:l,tabs:d?Nh:Hh,type:"profiler"}),r.createElement(Gu,null),r.createElement("div",{className:Yu.Spacer}),!v&&r.createElement("div",{ref:f,className:Yu.TimelineSearchInputContainer}),r.createElement(Io,null),v&&t&&r.createElement(r.Fragment,null,r.createElement("div",{className:Yu.VRule}),r.createElement(wh,null))),r.createElement("div",{className:Yu.Content},h,r.createElement(Bs,null))),r.createElement("div",{className:Yu.RightColumn},m),r.createElement(nu,null)))})),Ih={ReactLogo:"REvy6Ilr7KQBh3VP5KtT"};function Oh({className:e}){return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:`${Ih.ReactLogo} ${e||""}`,viewBox:"-11.5 -10.23174 23 20.46348"},r.createElement("circle",{cx:"0",cy:"0",r:"2.05",fill:"currentColor"}),r.createElement("g",{stroke:"currentColor",strokeWidth:"1",fill:"none"},r.createElement("ellipse",{rx:"11",ry:"4.2"}),r.createElement("ellipse",{rx:"11",ry:"4.2",transform:"rotate(60)"}),r.createElement("ellipse",{rx:"11",ry:"4.2",transform:"rotate(120)"})))}const Fh={Column:"WCWwtFCxOl5nFSUfDDGa",Title:"OnEPWhy5tIMKTSyQh0Ft",Version:"x5T9XRpiOFNLuohENqPx",NpmCommand:"y82TcRh54m1qPbnRqfgX",Paragraph:"Rof042N87RxT4OmFvFtV",Link:"WH5ByD51MpftIKuPl22B"},Ph="5.2.0-827cbea417",Lh="https://fb.me/devtools-unsupported-bridge-protocol",zh="UnsupportedBridgeProtocolDialog";function Bh(e){const{dialogs:t,dispatch:n}=(0,r.useContext)(Ps),a=(0,r.useContext)(mr),i=!!t.find((e=>e.id===zh));return(0,r.useEffect)((()=>{const e=()=>{i?a.unsupportedBridgeProtocolDetected||n({type:"HIDE",id:zh}):a.unsupportedBridgeProtocolDetected&&n({canBeDismissed:!1,id:zh,type:"SHOW",content:r.createElement(Vh,{unsupportedBridgeProtocol:a.bridgeProtocol})})};return e(),a.addListener("unsupportedBridgeProtocolDetected",e),()=>{a.removeListener("unsupportedBridgeProtocolDetected",e)}}),[i,a]),null}function Vh({unsupportedBridgeProtocol:e}){const{version:t,minNpmVersion:n,maxNpmVersion:a}=e;let i;if(null===a){const e=`npm i -g react-devtools@^${n}`;i=r.createElement(r.Fragment,null,r.createElement("p",{className:Fh.Paragraph},"To fix this, upgrade the DevTools NPM package:"),r.createElement("pre",{className:Fh.NpmCommand},e,r.createElement(Ya,{onClick:()=>(0,f.copy)(e),title:"Copy upgrade command to clipboard"},r.createElement(Yt,{type:"copy"}))))}else{const e=`npm i -g react-devtools@${a}`;i=r.createElement(r.Fragment,null,r.createElement("p",{className:Fh.Paragraph},"To fix this, downgrade the DevTools NPM package:"),r.createElement("pre",{className:Fh.NpmCommand},e,r.createElement(Ya,{onClick:()=>(0,f.copy)(e),title:"Copy downgrade command to clipboard"},r.createElement(Yt,{type:"copy"}))))}return r.createElement(r.Fragment,null,r.createElement("div",{className:Fh.Column},r.createElement("div",{className:Fh.Title},"Unsupported DevTools backend version"),r.createElement("p",{className:Fh.Paragraph},"You are running ",r.createElement("code",null,"react-devtools")," version"," ",r.createElement("span",{className:Fh.Version},Ph),"."),r.createElement("p",{className:Fh.Paragraph},"This requires bridge protocol"," ",r.createElement("span",{className:Fh.Version},"version ",c.version),". However the current backend version uses bridge protocol"," ",r.createElement("span",{className:Fh.Version},"version ",t),"."),i,r.createElement("p",{className:Fh.Paragraph},"Or"," ",r.createElement("a",{className:Fh.Link,href:Lh,target:"_blank"},"click here")," ","for more information.")))}const Uh={Row:"tINNQLO_ESQYrWI5Rp6a",Title:"N1Ps1KUz8upQaCUzkRb5",ReleaseNotesLink:"jt836PeIJQhMqB1vKLQi"};function Wh(e){const{dispatch:t}=(0,r.useContext)(Ps),n=(0,r.useContext)(mr),[a,i]=(0,r.useState)("dialog-not-shown");return(0,r.useEffect)((()=>{if("dialog-not-shown"===a){const e=()=>{(0,qn.unstable_batchedUpdates)((()=>{i("show-dialog"),t({canBeDismissed:!0,id:"UnsupportedVersionDialog",type:"SHOW",content:r.createElement(jh,null)})}))};if(!n.unsupportedRendererVersionDetected)return n.addListener("unsupportedRendererVersionDetected",e),()=>{n.removeListener("unsupportedRendererVersionDetected",e)};e()}}),[a,n]),null}function jh(e){return r.createElement(r.Fragment,null,r.createElement("div",{className:Uh.Row},r.createElement("div",null,r.createElement("div",{className:Uh.Title},"Unsupported React version detected"),r.createElement("p",null,"This version of React DevTools supports React DOM v15+ and React Native v61+."),r.createElement("p",null,"In order to use DevTools with an older version of React, you'll need to"," ",r.createElement("a",{className:Uh.ReleaseNotesLink,target:"_blank",rel:"noopener noreferrer",href:xt},"install an older version of the extension"),"."))))}const $h={Command:"p8jhsAoxvFjiAgT7yMG9"};function Xh(e){const t=(0,r.useContext)(hr),{dispatch:n}=(0,r.useContext)(Ps);return(0,r.useEffect)((()=>{let e=t.wall.listen((t=>{switch(t.type){case"call":case"event":case"many-events":n({canBeDismissed:!1,id:"WarnIfLegacyBackendDetected",type:"SHOW",title:"DevTools v4 is incompatible with this version of React",content:r.createElement(Gh,null)}),"function"==typeof e&&(e(),e=null)}switch(t.event){case"isBackendStorageAPISupported":case"isNativeStyleEditorSupported":case"operations":case"overrideComponentFilters":"function"==typeof e&&(e(),e=null)}}));return()=>{"function"==typeof e&&(e(),e=null)}}),[t,n]),null}function Gh(e){return r.createElement(r.Fragment,null,r.createElement("p",null,"Either upgrade React or install React DevTools v3:"),r.createElement("code",{className:$h.Command},"npm install -d react-devtools@^3"))}const Kh={DevTools:"Hkuka5z7FNWzWV4iBl5N",TabBar:"tPiY5I6mjO9E1BEvS3GI",Spacer:"Wp5jbuBw2jpcKiKlQRTT",TabContent:"M1NR4kt2K_VBDm0ap8WR",DevToolsVersion:"lflmhRDlQN6CHxnrjuAx"},qh=[{id:"components",icon:"components",label:"Components",title:"React Components"},{id:"profiler",icon:"profiler",label:"Profiler",title:"React Profiler"}];function Yh({bridge:e,browserTheme:t="light",canViewElementSourceFunction:n,componentsPortalContainer:a,defaultTab:i="components",enabledInspectedElementContextMenu:o=!1,fetchFileWithCaching:s,hookNamesModuleLoaderFunction:l,overrideTab:c,profilerPortalContainer:u,showTabBar:f=!1,store:d,warnIfLegacyBackendDetected:v=!1,warnIfUnsupportedVersionDetected:h=!1,viewAttributeSourceFunction:m,viewElementSourceFunction:p,readOnly:_,hideSettings:S,hideToggleErrorAction:g,hideToggleSuspenseAction:b,hideLogAction:w,hideViewSourceAction:E}){const[y,D]=Pt(k,i);let A=y;null!=c&&(A=c);const C=(0,r.useCallback)((e=>{!0===f&&Wt("components"===e?{event_name:"selected-components-tab"}:{event_name:"selected-profiler-tab"}),D(e)}),[D,f]),M=(0,r.useMemo)((()=>({readOnly:_||!1,hideSettings:S||!1,hideToggleErrorAction:g||!1,hideToggleSuspenseAction:b||!1,hideLogAction:w||!1,hideViewSourceAction:E||!1})),[_,S,g,b,w,E]),x=(0,r.useMemo)((()=>({canViewElementSourceFunction:n||null,viewElementSourceFunction:p||null})),[n,p]),T=(0,r.useMemo)((()=>({isEnabledForInspectedElement:o,viewAttributeSourceFunction:m||null})),[o,m]),H=(0,r.useRef)(null);return(0,r.useEffect)((()=>{if(!f)return;const e=H.current;if(null===e)return;const r=e.ownerDocument.defaultView,t=e=>{if(e.ctrlKey||e.metaKey)switch(e.key){case"1":C(qh[0].id),e.preventDefault(),e.stopPropagation();break;case"2":C(qh[1].id),e.preventDefault(),e.stopPropagation()}};return r.addEventListener("keydown",t),()=>{r.removeEventListener("keydown",t)}}),[f]),(0,r.useLayoutEffect)((()=>()=>{try{e.shutdown()}catch(e){}}),[e]),(0,r.useEffect)((()=>{Wt({event_name:"loaded-dev-tools"})}),[]),r.createElement(hr.Provider,{value:e},r.createElement(mr.Provider,{value:d},r.createElement(_r.Provider,{value:M},r.createElement(pr.Provider,{value:T},r.createElement(zs,null,r.createElement(Xt,{browserTheme:t,componentsPortalContainer:a,profilerPortalContainer:u},r.createElement(Pc.Provider,{value:x},r.createElement(Al.Provider,{value:l||null},r.createElement(yl.Provider,{value:s||null},r.createElement(lt,null,r.createElement(eu,null,r.createElement(pu,null,r.createElement(ys,null,r.createElement("div",{className:Kh.DevTools,ref:H,"data-react-devtools-portal-root":!0},f&&r.createElement("div",{className:Kh.TabBar},r.createElement(Oh,null),r.createElement("span",{className:Kh.DevToolsVersion},"5.2.0-827cbea417"),r.createElement("div",{className:Kh.Spacer}),r.createElement($c,{currentTab:A,id:"DevTools",selectTab:C,tabs:qh,type:"navigation"})),r.createElement("div",{className:Kh.TabContent,hidden:"components"!==A},r.createElement(hu,{portalContainer:a})),r.createElement("div",{className:Kh.TabContent,hidden:"profiler"!==A},r.createElement(Rh,{portalContainer:u}))))))))))),r.createElement(Bh,null),v&&r.createElement(Xh,null),h&&r.createElement(Wh,null))))))}function Qh(e){return new u(null!=e?e:{listen:()=>{},send:()=>{}})}function Jh(e,r){return new vr(e,{checkBridgeProtocolCompatibility:!0,supportsTraceUpdates:!0,...r})}function Zh(e,t){const{bridge:a,store:i,theme:o="light",viewAttributeSourceFunction:s,viewElementSourceFunction:l,canViewElementSourceFunction:c}=t;(0,n.createRoot)(e).render(r.createElement(Yh,{bridge:a,browserTheme:o,store:i,showTabBar:!0,warnIfLegacyBackendDetected:!0,enabledInspectedElementContextMenu:!0,viewAttributeSourceFunction:s,viewElementSourceFunction:l,canViewElementSourceFunction:c}))}})();var o=i.EH,s=i.MT,l=i.j2;const c=new CSSStyleSheet;c.replaceSync(":root{--reach-menu-button:1}[data-reach-menu]{position:relative}[data-reach-menu-popover]{display:block;position:absolute}[data-reach-menu-popover][hidden]{display:none}[data-reach-menu-list],\n[data-reach-menu-items]{display:block;white-space:nowrap;border:solid 1px hsla(0,0%,0%,0.25);background:hsla(0,100%,100%,0.99);outline:none;padding:1rem 0;font-size:85%}[data-reach-menu-item]{display:block;user-select:none}[data-reach-menu-item]{cursor:pointer;display:block;color:inherit;font:inherit;text-decoration:initial;padding:5px 20px}[data-reach-menu-item][data-selected]{background:hsl(211,81%,36%);color:white;outline:none}[data-reach-menu-item][aria-disabled]{opacity:0.5;cursor:not-allowed}:root{--reach-tooltip:1}[data-reach-tooltip]{z-index:1;pointer-events:none;position:absolute;padding:0.25em 0.5em;box-shadow:2px 2px 10px hsla(0,0%,0%,0.1);white-space:nowrap;font-size:85%;background:#f0f0f0;color:#444;border:solid 1px #ccc}.QLIjinwPX2BYeYhjDPgw{width:1rem;height:1rem;fill:currentColor}.t616OcxJgTxzU23xzvW3{width:1rem;height:1rem;fill:currentColor}.srEfgwlgMuqiVfvkQIvd{display:inline-block;background-color:var(--color-component-badge-background);color:var(--color-text);padding:0.125rem 0.25rem;line-height:normal;border-radius:0.125rem;font-family:var(--font-family-monospace);font-size:var(--font-size-monospace-small)}.PFyuu5xBjR8uxX6thYbZ,\n.iUJPAOCrle8In4qQfWxv,\n.HZliX8_6EyENDRMMudN1,\n.sgAe5RpaAMDGW_sU5o2L{color:var(--color-component-name)}.sgAe5RpaAMDGW_sU5o2L{background-color:var(--color-background-hover)}.iUJPAOCrle8In4qQfWxv{background-color:var(--color-background-inactive)}.NBAhV9ShwRUirQXQbAv2{padding:0 0.25rem;white-space:pre;height:var(--line-height-data);line-height:var(--line-height-data);display:inline-flex;align-items:center;cursor:default;user-select:none}.HZliX8_6EyENDRMMudN1{background-color:var(--color-background-selected);color:var(--color-text-selected);--color-component-name:var(--color-component-name-inverted);--color-text:var(--color-text-selected);--color-component-badge-background:var(\n --color-component-badge-background-inverted\n );--color-forget-badge-background:var(--color-forget-badge-background-inverted);--color-component-badge-count:var(--color-component-badge-count-inverted);--color-attribute-name:var(--color-attribute-name-inverted);--color-attribute-value:var(--color-attribute-value-inverted);--color-expand-collapse-toggle:var(--color-component-name-inverted)}.jm66uQ9yPiywLYg_mbpq{color:var(--color-attribute-name)}.S9otH361hPUibpM9aUpv{color:var(--color-attribute-value);user-select:text;max-width:100px;overflow-x:hidden;text-overflow:ellipsis}.GOTV0C4MoXywapiTV03U{background-color:var(--color-search-match)}.kVA4R0YpVXwfidREhviQ{background-color:var(--color-search-match-current)}.Kr5jbyCbolRzNSFzovW1{display:inline-flex;width:1rem;height:1rem;flex:0 0 1rem;color:var(--color-expand-collapse-toggle)}.Fx3j0RUMWHB5BecGc2_Q{margin-left:0.25rem}.Xt2SitK2jELL4hLu6Mdy,\n.Rj45rwaNiDfhb7PGI4l_,\n.WiNfvaLp1fGWpo6uMIiJ,\n._66netzHqTarCYM811yp,\n.at0eyFbv9icLAQdvXWuC,\n.xIxPkdllpGllMVH8jq8H{height:0.75rem!important;width:0.75rem!important;margin-left:0.25rem}.Xt2SitK2jELL4hLu6Mdy{color:var(--color-console-error-icon)}.WiNfvaLp1fGWpo6uMIiJ{color:var(--color-dimmer)}.at0eyFbv9icLAQdvXWuC{color:var(--color-console-warning-icon)}.Rj45rwaNiDfhb7PGI4l_, .xIxPkdllpGllMVH8jq8H{color:var(--color-component-name)}._66netzHqTarCYM811yp{color:var(--color-text)}.dPHAvUl3PSp59chvDv66,\n.rcOJ8fC0AbSrvixHIvdw,\n.V5OmBsGHEXanXzw77sNS{background:var(--color-button-background);border:none;border-radius:0.25rem;padding:0;flex:0 0 auto}.UiyBzzjpBaN73sNiaNdk{display:inline-flex;align-items:center;border-radius:0.25rem;padding:0.25rem}.V5OmBsGHEXanXzw77sNS{border:none;background:var(--color-button-background);color:var(--color-button)}.V5OmBsGHEXanXzw77sNS:hover{color:var(--color-button-hover)}.rcOJ8fC0AbSrvixHIvdw,\n.rcOJ8fC0AbSrvixHIvdw:active{color:var(--color-button-active);outline:none}.rcOJ8fC0AbSrvixHIvdw:focus,\n.V5OmBsGHEXanXzw77sNS:focus,\n.UiyBzzjpBaN73sNiaNdk:focus{outline:none}.rcOJ8fC0AbSrvixHIvdw:focus > .UiyBzzjpBaN73sNiaNdk,\n.V5OmBsGHEXanXzw77sNS:focus > .UiyBzzjpBaN73sNiaNdk{background:var(--color-button-background-focus)}.dPHAvUl3PSp59chvDv66{background:var(--color-button-background);color:var(--color-button-disabled);cursor:default}.qcO5nQrEYlrbGUI5_HV2{border:none;border-radius:0.25rem;padding:0.25rem 0.5rem;font-family:var(--font-family-sans);font-size:12px;background-color:var(--color-tooltip-background);color:var(--color-tooltip-text);box-shadow:1px 1px 2px var(--color-shadow);z-index:10000002}.sP6uS8ZOU4PkDlNU0AYK{background-color:var(--color-forget-badge-background);color:var(--color-forget-text);padding-right:1.75em;position:relative}.sP6uS8ZOU4PkDlNU0AYK::after{bottom:0;content:'✨';position:absolute;right:0.25em}.j3Lt3YqBHSwuvIVtnIxU{display:flex}.j3Lt3YqBHSwuvIVtnIxU > span{padding:0}.SjNrJ30jUO5kUSCsWh4c{display:inline-flex;align-items:center}.SjNrJ30jUO5kUSCsWh4c *:not(:first-child){margin-left:0.25rem}.j9rH1DJ2jYY7I1tswNOx{font-family:var(--font-family-monospace);font-size:var(--font-size-monospace-small);color:var(--color-component-badge-count)}.MOeHyomWH2dTqysCu6Ii{border:none;background:var(--color-button-background);color:var(--color-button);padding:0;border-radius:0.25rem;flex:0 0 auto;cursor:pointer}.Bqh_X7NE5GXewPWjYfHS{display:inline-flex;align-items:center;border-radius:0.25rem;padding:0.25rem}.MOeHyomWH2dTqysCu6Ii:hover{color:var(--color-button-hover)}.MOeHyomWH2dTqysCu6Ii:active{color:var(--color-button-focus);outline:none}.MOeHyomWH2dTqysCu6Ii:focus,\n.Bqh_X7NE5GXewPWjYfHS:focus{outline:none}.MOeHyomWH2dTqysCu6Ii:focus > .Bqh_X7NE5GXewPWjYfHS{background:var(--color-button-background-focus)}.MOeHyomWH2dTqysCu6Ii:disabled,\n.MOeHyomWH2dTqysCu6Ii:disabled:active{background:var(--color-button-background);color:var(--color-button-disabled);cursor:default}.KnW_4cWEGGD9FwhVT9QD{display:inline-flex;align-items:center}.KnW_4cWEGGD9FwhVT9QD *:not(:first-child){margin-left:0.25rem}.HoegScUNT6el6r_64bVM{font-family:var(--font-family-monospace);font-size:var(--font-size-monospace-small);color:var(--color-component-badge-count)}.WHQXCIB889mhOibUlVw3{max-width:100%;overflow-x:auto;flex:1;display:flex;align-items:center;position:relative}.yUIRrL7yKCLaXF6ItcoI,\n.yUIRrL7yKCLaXF6ItcoI[data-reach-menu-item]{font-family:var(--font-family-monospace);font-size:var(--font-size-monospace-normal);user-select:none;white-space:nowrap;display:flex;align-items:center}.yUIRrL7yKCLaXF6ItcoI[data-reach-menu-item][data-selected],\n.yUIRrL7yKCLaXF6ItcoI[data-reach-menu-item][data-selected]:hover{color:var(--color-text-selected);background:var(--color-background-selected)}.yUIRrL7yKCLaXF6ItcoI[data-reach-menu-item][data-selected]:focus{outline:none}.nhMZmmw7LxaMIBx6xoM8{display:flex;flex:1 1 auto;overflow-x:auto}.cUTK6f0z3ITKjeL2ol8i{flex:0 0 auto;height:20px;width:1px;background-color:var(--color-border);margin:0 0.5rem}.r2aVXzu4LAnDVb2tmbPW{border-radius:0.25rem;display:inline-flex;align-items:center;padding:0;flex:0 0 auto;border:none;background:var(--color-button-background);color:var(--color-button)}.oAO_XVma76tsNMmoxTxO{display:inline-flex;align-items:center;border-radius:0.25rem;padding:0.25rem}.r2aVXzu4LAnDVb2tmbPW:hover{color:var(--color-button-hover)}.r2aVXzu4LAnDVb2tmbPW[aria-expanded='true'],\n.r2aVXzu4LAnDVb2tmbPW[aria-expanded='true']:active{color:var(--color-button-active);outline:none}.r2aVXzu4LAnDVb2tmbPW:focus,\n.oAO_XVma76tsNMmoxTxO:focus{outline:none}.r2aVXzu4LAnDVb2tmbPW:focus > .oAO_XVma76tsNMmoxTxO{background:var(--color-button-background-focus)}.juYKJGefcTFWuubhKPTL[data-reach-menu-list]{display:inline-flex;flex-direction:column;background-color:var(--color-background);color:var(--color-button);padding:0.25rem 0;padding-right:0;border:1px solid var(--color-border);border-radius:0.25rem;max-height:10rem;overflow:auto;z-index:10000002;position:relative;font-family:var(--font-family-monospace);font-size:var(--font-size-monospace-normal)}.lyr9bhz0P7vmm4xPXrSw,\n.lyr9bhz0P7vmm4xPXrSw:hover{color:var(--color-dimmest)}.WcjXaYs8j6rLO0JwrTSp{margin-left:0.25rem}.VMs1TFKbGygwf2rHPPkR{flex:1 1;display:flex;align-items:center}.DIPlRR9ISDncbPNuOIrF{flex:1 1 100px;width:100px;font-size:var(--font-size-sans-large);outline:none;border:none;background-color:var(--color-background);color:var(--color-text);padding-left:1.5rem;margin-left:-1rem}.Ti4BEBXnbAQp1lGUIsYx{pointer-events:none;z-index:2;color:var(--color-dimmer)}.yVLbSSc1CG5ZY60ChkxC{color:var(--color-dim);font-size:var(--font-size-sans-normal);white-space:pre}.RO_9dALMy9pEJs_usl1_{height:20px;width:1px;background-color:var(--color-border)}.RO_9dALMy9pEJs_usl1_{margin:0 0.25rem 0 0.5rem}.kdV7QNZg7DoUYF_P3pHh,\n.TUJK9x5GTxI9hMQD4CUP{position:absolute;left:0;width:100%;z-index:0;pointer-events:none}.kdV7QNZg7DoUYF_P3pHh{background-color:var(--color-selected-tree-highlight-active)}.TUJK9x5GTxI9hMQD4CUP{background-color:var(--color-selected-tree-highlight-inactive)}.eym3VHX8dLMdgKTfvKFp{position:relative;height:100%;width:100%;display:flex;flex-direction:column;border-top:1px solid var(--color-border);--indentation-size:12px}.spkW6SBc8slOOEwsvkVe{overflow-x:hidden!important}.q1EQ300j6SHomtf4uDLK{overflow-x:hidden}.lZrwozgZWn6U_97Og5BR{flex:0 0 42px;display:flex;align-items:center;border-bottom:1px solid var(--color-border);padding:0.5rem}.kEhyJm9EDBUWcHAFZeFI{width:100%;overflow:hidden;flex:1 0 auto}.kEhyJm9EDBUWcHAFZeFI:focus{outline:none}.spkW6SBc8slOOEwsvkVe{font-family:var(--font-family-monospace);font-size:var(--font-size-monospace-normal);line-height:var(--line-height-data)}.aJUb5cChORMbLRrbpgMQ{height:20px;width:1px;flex:0 0 1px;margin:0 0.5rem;background-color:var(--color-border)}.EyQLmPex2HUhDtdv5CDj{height:100%;padding-left:0.5rem;display:flex;align-items:center;flex:1;justify-content:flex-start;font-size:var(--font-size-sans-large);color:var(--color-dim)}.KB_8VeUHgJzB_clWZEhK{display:flex;align-items:center;font-size:var(--font-size-sans-normal)}._azOr6JJwPNm7sFNMcjV, ._cXcjlSefrLNRqBwgL4W{width:0.75rem;height:0.75rem;margin-left:0.25rem;margin-right:0.25rem;flex:0 0 auto}._azOr6JJwPNm7sFNMcjV{color:var(--color-console-error-icon)}._cXcjlSefrLNRqBwgL4W{color:var(--color-console-warning-icon)}.fPhx_IyaNqzzB8Ck0RCD{padding-left:1em;opacity:0;animation:zqTATXE0YEbpxHbarDOQ 0.5s forwards;animation-delay:2s}@keyframes zqTATXE0YEbpxHbarDOQ{0%{opacity:0}100%{opacity:1}}.Hx0OASUc_YUYAswWj_SN{color:var(--color-button-active)}.Jw1vKro1qyK08Kgi4lXQ{flex:0 0 auto;display:flex;align-items:center;text-overflow:ellipsis;white-space:nowrap;overflow:auto;padding:0.25rem 0.5rem;background:var(--color-console-warning-background);color:var(--color-text);border-bottom:1px solid var(--color-console-warning-border);border-top:1px solid var(--color-console-warning-border)}.OkQt7gez_5Zbv2tBz9YF{flex:0 0 auto;display:flex;align-items:center;text-overflow:ellipsis;white-space:nowrap;overflow:auto;padding:0.25rem 0.5rem;background:var(--color-background-hover);border-bottom:1px solid var(--color-border)}.pobssL55b_qBkor0dyEw{height:100%;width:100%;background-color:var(--color-background);display:flex;flex-direction:column;border:1px solid var(--color-border)}.BMCPOZq6VTru3nezN1CN{padding:0.5rem;overflow:auto}.bjCnYALBmWFWJRvlKnuR{display:flex;flex-direction:row;font-size:var(--font-size-sans-large);font-weight:bold}.If9hSNFolZzI9zjxe3uB,\n.X_tgW3kFmkwoAYI8Lurx{flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.If9hSNFolZzI9zjxe3uB{color:var(--color-error-text)}.X_tgW3kFmkwoAYI8Lurx{color:var(--color-text)}.rdu6ANHP3wTLYuVNOjjy,\n.ONoWSLRXZt1O9VpA6ZNN{margin-top:0.5rem;white-space:pre-wrap;font-family:var(--font-family-monospace);font-size:var(--font-size-monospace-normal);-webkit-font-smoothing:initial;border-radius:0.25rem;padding:0.5rem;overflow:auto}.rdu6ANHP3wTLYuVNOjjy{background-color:var(--color-error-background);border:1px solid var(--color-error-border);color:var(--color-error-text)}.ONoWSLRXZt1O9VpA6ZNN{background-color:var(--color-console-warning-background);color:var(--color-console-warning-text);border:var(--color-console-warning-border)}.t0mXgtmAtexoj3eNFSi2{margin-right:0.25rem}.hkM9y_1BmI1h9s2LJuEi{margin-right:0.25rem}.BT7EiwHag0LPFdKGZRUA{color:var(--color-link)}.Z_Xw4ThFHcPmvHXpe8sP{margin-left:0.25rem}.Bppxr4Hl_IlmCJM_jAlw{margin-left:0.25rem;color:var(--color-console-warning-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.plwu44QqkJ3Sazkvcuz6{margin-right:0.25rem;color:var(--color-console-warning-text)}.ujPGMsE_z9gPJoyVF1D_{font-weight:bold}.HMpcHV7bWRjXWHCZ3iDI{margin-left:0.25rem}.drfHT3jZUSEYSS0XNYL_{margin-top:0.5rem;background:var(--color-console-warning-background);border:1px solid var(--color-console-warning-border);padding:0.25rem 0.5rem;border-radius:0.5rem;color:var(--color-console-warning-text)}.p7QWUJGSatfPkY7Fxv1X{width:1rem;height:1rem;fill:currentColor}.VaoI4BlPGgwJwhOCRtsD{height:100%}.PFpmDOwgyV41JdBnRz9Z{position:absolute;width:100%;height:100%;display:flex;flex-direction:row;align-items:flex-start;justify-content:center;padding:1rem;background-color:var(--color-modal-background);overflow:auto}.WAQNM1ZU8dHWiSzemaQm{position:relative;z-index:3;margin:0 0.25rem;width:25rem;min-width:20rem;max-width:100%;display:inline-block;background-color:var(--color-background);box-shadow:0 2px 4px var(--color-shadow);padding:0.5rem;border:1px solid var(--color-border);border-radius:0.25rem;font-size:var(--font-size-sans-normal)}.FCX_167XYnlhwfNuLzWn{font-size:var(--font-size-sans-large);margin-bottom:0.5rem}.GYUAYcxRXmi3HpeXVySA{text-align:right;margin-top:0.5rem}.eGn4soiHkWtcMEAhslki{font-size:var(--font-size-sans-large)}.eKXhn2sbXs1thQ1xt1b6{user-select:none;display:inline-flex}.eKXhn2sbXs1thQ1xt1b6 *:not(:first-child){margin-left:0.25rem}.hL22yQCjQzU4O_pjtwuf{min-width:0.5rem;flex:1 1 auto;border:none;background:transparent;outline:none;padding:0;border:none;font-family:var(--font-family-monospace);font-size:var(--font-size-monospace-normal)}.hL22yQCjQzU4O_pjtwuf:focus{border-color:var(--color-border)}.HPF7_KiXXen5Qvttf5jQ{flex:0 1 auto;box-shadow:0px 1px 3px transparent;color:var(--color-text)}.HPF7_KiXXen5Qvttf5jQ:focus{color:var(--color-text);box-shadow:0px 1px 3px var(--color-shadow)}.WqT8rJzZBGSUJHMBA9Tx{flex:0 0 auto;align-self:center;margin:0 0.25rem}.OOzAmP7gDhP65LH4K2s6{flex:1 1;background:none;border:1px solid transparent;color:var(--color-attribute-editable-value);border-radius:0.125rem;font-family:var(--font-family-monospace);font-size:var(--font-size-monospace-normal)}.y1WpuFCfhxR1kOosMGBp{flex:1 1;background:none;border:1px solid transparent;color:var(--color-attribute-editable-value);border-radius:0.125rem;font-family:var(--font-family-monospace);font-size:var(--font-size-monospace-normal);background-color:var(--color-background-invalid);color:var(--color-text-invalid);--color-border:var(--color-text-invalid)}.OOzAmP7gDhP65LH4K2s6:focus,\n.y1WpuFCfhxR1kOosMGBp:focus{background-color:var(--color-button-background-focus);outline:none}.ZftnGfJwnziFAgoRJyPx{white-space:nowrap;display:flex;align-items:center}.PzzlrSyI7WPRAeoi1BdZ{margin-left:1rem}.VIenmLs6g9LI6NqCHNde{background-color:var(--color-background-invalid);color:var(--color-text-invalid)!important}.VIenmLs6g9LI6NqCHNde:focus{background-color:var(--color-button-background-focus)}.UzMVso49lBzxLL1HjInq{white-space:nowrap;display:flex;align-items:center}.PaA9USRcdHeCV9WiBbyS{margin-left:1rem}.Pb3Nu0F3u7sIozsGv8uZ{min-width:1rem}.j6QZWx6K5z35fz2Growk{flex:0 0 1rem;width:1rem;height:1rem;padding:0;color:var(--color-expand-collapse-toggle)}.ZscuKd4JSHrHyo1Oh3Wp:not([hidden]){display:flex}.G9s7nMRxj2l1XUUhn0Pl{color:var(--color-attribute-name-not-editable);flex:0 0 auto;cursor:default}.qUQ5ooYij_68DtCFL535{color:var(--color-attribute-name);flex:0 0 auto;cursor:default}.VJhTyYOqjANsOJsHvfPg{color:var(--color-text);margin-right:0.5rem}.RSM9HPTOPas5xWSc9s1C{color:var(--color-attribute-value);white-space:pre;overflow:hidden;text-overflow:ellipsis;cursor:default;flex:1}.rm6VrdRUsB9aSPSGSD8Y{color:var(--color-link);white-space:pre;overflow:hidden;text-overflow:ellipsis;flex:1}.hOboECmgQcJF9U5FRRjW{flex:0 0 1rem;width:1rem}.DJ7rUAWzmhVRtbYkt9bg{padding:0;margin-right:0.125rem}.YOB3sdCfSr_qYyMcvl9Z{color:var(--color-component-name)}.omYdOiQA4INhfDwXiCGT{display:flex;align-items:center;color:var(--color-context-text);padding:0.5rem 0.75rem;cursor:default;border-top:1px solid var(--color-context-border);font-family:var(--font-family-sans);font-size:var(--font-size-sans-normal)}.omYdOiQA4INhfDwXiCGT:first-of-type{border-top:none}.omYdOiQA4INhfDwXiCGT:hover,\n.omYdOiQA4INhfDwXiCGT:focus{outline:0;background-color:var(--color-context-background-hover)}.omYdOiQA4INhfDwXiCGT:active{background-color:var(--color-context-background-selected);color:var(--color-context-text-selected)}.pVySJG3jMP40bWLFGBla{position:absolute;background-color:var(--color-context-background);box-shadow:1px 1px 2px var(--color-shadow);border-radius:0.25rem;overflow:hidden;z-index:10000002;user-select:none}.ZplKR_6Ki52aunUdBR3W{display:flex;flex-direction:row;align-items:center;gap:0.5rem}.ltOoJtAx5EC08rarvM4p{padding:0.25rem}.ltOoJtAx5EC08rarvM4p:first-of-type{border-top:none}.yS0BAulI6Ht22u7u94d8{display:flex;align-items:center}.fm_upKhhfGKt4zSRnhpE{display:flex;align-items:center;flex:1 1;font-family:var(--font-family-sans)}.j_4cxqwZqXAlcGfn6dJP{display:flex}.Mrf7n7Pe5sy2ngEb7vZS{color:var(--color-attribute-name);flex:0 0 auto}.Mrf7n7Pe5sy2ngEb7vZS:after{content:': ';color:var(--color-text);margin-right:0.5rem}._V05tLtyASx_cJMSpgrV{color:var(--color-attribute-value);overflow:hidden;text-overflow:ellipsis}.ysNVmdovBZAYNF423jos{color:var(--color-dimmer);font-style:italic}.MyDmtcCLu0zArOXrI9YD{color:var(--color-dimmer);font-style:italic;padding-left:0.75rem}.s0nJkLbCCF_l1MSRX98S{padding-left:1rem;white-space:nowrap;display:flex;align-items:center}.yF6fDjinAwiJTU3rYMJA{min-width:1rem}.DmmJ_c1P9vfx9ERrACGM, .RjKfbqv4ZTMxYD91YOsJ{padding:0.25rem 0 0 0}.ZZgXK0QkPtmRlYNt1vOs{padding:0 0.25rem}.ZZgXK0QkPtmRlYNt1vOs{padding:0 0.25rem}.F8ZcQwTPGdaFfSSN4It1, .OKLOnFhXJqOtrex9P8_W{padding:0 0.5rem;display:flex;align-items:center}.F8ZcQwTPGdaFfSSN4It1{border-top:1px solid var(--color-console-error-border);background-color:var(--color-console-error-background);color:var(--color-error-text);padding:0 0.5rem}.OKLOnFhXJqOtrex9P8_W{border-top:1px solid var(--color-console-warning-border);background-color:var(--color-console-warning-background);color:var(--color-warning-text);padding:0 0.5rem}.rD5uo9vzQItqB5zWzoQ3{overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap}._Ua1vMlecyqFUldp7wAc,\n.qNkjOY6DYZsJpx3DRwkD{display:inline-block;width:0.75rem;height:0.75rem;flex:0 0 0.75rem;line-height:0.75rem;text-align:center;border-radius:0.25rem;margin-right:0.25rem;font-size:var(--font-size-monospace-small)}._Ua1vMlecyqFUldp7wAc{background-color:var(--color-console-error-icon);color:var(--color-console-error-badge-text)}.qNkjOY6DYZsJpx3DRwkD{background-color:var(--color-console-warning-icon);color:var(--color-console-warning-badge-text)}.oqZagvwqy5I1eS9JxuSJ{padding:0.25rem;border-top:1px solid var(--color-border)}.AP1pfbidtpgoAIb9ZD0R{padding-left:1rem}.qnPv6TP0mB6Bq4K7owJ5{display:flex;align-items:center}.EU9PS8tCnHx9BDUiWzPQ{flex:1 1;font-family:var(--font-family-sans)}.pDUvmgJDA6w4qIhWgSGe{display:flex}.uUpdXk_BA8PtV6w7_bvZ,\n.Pa1JZ9djVog6TIyaUlQB{flex:0 0 auto;cursor:default}.uUpdXk_BA8PtV6w7_bvZ{color:var(--color-dim)}.Pa1JZ9djVog6TIyaUlQB{color:var(--color-dimmer)}.eHFNUPL3Js9_s88rp5UW{color:var(--color-attribute-name);flex:0 0 auto;cursor:default}.eHFNUPL3Js9_s88rp5UW:after,\n.uUpdXk_BA8PtV6w7_bvZ:after{color:var(--color-text);content:': ';margin-right:0.5rem}.CcGuLGOGx_QLVeJUNxEr{color:var(--color-attribute-value);overflow:hidden;text-overflow:ellipsis;cursor:default;white-space:nowrap}.d8jC9zgp1ezvSNfA31B_{color:var(--color-dimmer);font-style:italic}.EuKEnHO8Pe9Otdm7Ljwv{color:var(--color-dimmer)}.lNiUhoYzRTtFNM5vxbog{flex:0 0 1rem;width:1rem}.XGq4Z3xUrxK0rJ5OhXLo{background-color:var(--color-primitive-hook-badge-background);color:var(--color-primitive-hook-badge-text);font-size:var(--font-size-monospace-small);margin-right:0.25rem;border-radius:0.125rem;padding:0.125rem 0.25rem}.dFN2pn7cHDWz0UnPq7Ot{color:var(--color-component-name)}.JIMU22sckhXA_8Tmwk1T{color:var(--color-error-text)}.c1QgeBjOjJN4llhpOFbO{color:var(--color-dim);margin-left:1rem;overflow:auto;text-overflow:ellipsis}.VD1V5qP1lmb39G72wedQ{padding:0.25rem;border-top:1px solid var(--color-border);font-family:var(--font-family-monospace);font-size:var(--font-size-monospace-small)}.rPAerX5hZNiGDJppOpbq{font-family:var(--font-family-sans)}.OjNFM01Zj7nlXPIL6pBS,\n.DVd3LfnV9a0r1xnIo2pk{flex:1 1 auto;display:flex;flex-direction:column;align-items:center;border-width:1px;border-color:var(--color-dim);padding:0.25rem;margin:0.25rem}.OjNFM01Zj7nlXPIL6pBS{border-style:dashed}.DVd3LfnV9a0r1xnIo2pk{border-style:solid}.Adu1dCHqsyjaVcuOcKY8{width:100%;position:relative;display:flex;align-items:center;justify-content:center}.Vi7zav3ohBNd6o2HBeAT{position:absolute;left:0.5rem;flex:1 0 100px;color:var(--color-attribute-name)}.Te5NNRzWp5nqqs8NI4Pu{width:100%;display:flex;flex-direction:row;align-items:center}.AmFh8ffKc6AedWQcGfpg{font-family:var(--font-family-monospace);font-size:var(--font-size-monospace-normal);padding:0.25rem;border-top:1px solid var(--color-border)}.K_w5p9mPdwobJpJAVuOQ{display:flex;align-items:center}.S7T4EnXABpbKz7nLGU2H{flex:1 1}.NG7VgJltN4BT6xCuPOWt{font-family:var(--font-family-sans);font-size:var(--font-size-sans-small)}.E_2radqSW5Xlnn_R49zP{white-space:nowrap;padding-left:1rem;display:flex;align-items:center}.uyTHMxxFwiDt8VsOJ2Em{background-color:var(--color-background-invalid);color:var(--color-text-invalid);--color-border:var(--color-text-invalid)}.kQ0bT0HwWb8fuRYqCmyz{color:var(--color-attribute-name)}.BeqejgY4rmJOmPKTLUlN{color:var(--color-attribute-value)}.JhnyWgS3UJleovrVteqQ{flex:0 1 auto;padding:1px;box-shadow:0px 1px 3px transparent}.JhnyWgS3UJleovrVteqQ:focus{color:var(--color-text);box-shadow:0px 1px 3px var(--color-shadow)}.QGBqdeQCINFdybolYjz_{border-radius:0.25rem;animation:v9U5NmE9fqe0TBuebXMr 2s infinite}@keyframes v9U5NmE9fqe0TBuebXMr{0%, 100%{background-color:var(--color-dim)}50%{background-color:var(--color-dimmest)}}.YdqMguRALd3o4QHKOkCP{padding:0.25rem;border-top:1px solid var(--color-border)}.LmOPSwtqCOPq95UvFbZg{display:flex;align-items:center;min-height:24px}.GjPupFqKLWTIvKnSU0NK{flex:1 1;font-family:var(--font-family-sans)}.Vj7XlvFgqsT7YZZSQp8Q{font-family:var(--font-family-monospace);font-size:var(--font-size-monospace-normal);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;margin-left:1rem}.degzlzEXnOfIq7O6aEtD{padding:0.25rem;border-top:1px solid var(--color-border)}.QyzwGL5CVGmpYxajigQg{font-family:var(--font-family-sans)}.G1iPSTGC6eNcmT5RjA6C{color:var(--color-component-name);font-family:var(--font-family-monospace);font-size:var(--font-size-monospace-normal);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.YOXaHk9xYzASY3DKURUA{overflow-x:hidden;overflow-y:auto;font-family:var(--font-family-monospace);font-size:var(--font-size-monospace-normal);line-height:var(--line-height-data)}.s7UqGwXK0u5IO8pB45HE:not(:empty){padding:0.25rem;border-bottom:1px solid var(--color-border)}.G1iPSTGC6eNcmT5RjA6C{border-radius:0.25rem;padding:0.125rem 0.25rem;background:none;border:none;display:block}.G1iPSTGC6eNcmT5RjA6C:focus{outline:none;background-color:var(--color-button-background-focus)}.G2BCKBICgnFcziDETl7t{color:var(--color-dim);cursor:default}.YuAWbMYGVSUD5Xw13fGJ{cursor:pointer;width:100%;padding:0}.YXMHJBveMFexrfyxqi6O{display:flex;align-items:center;padding-left:1rem;width:100%;border-radius:0.25rem}.YXMHJBveMFexrfyxqi6O:hover{background-color:var(--color-background-hover)}.P14TYiR8U2gzEkHw_ISN{padding-left:1.25rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.W87cPUOEq9_b8BJ8wzi_{display:flex;flex-direction:column;height:100%;width:100%;border-left:1px solid var(--color-border);border-top:1px solid var(--color-border)}.bRyo53K1qkVwP17eMtpB{flex:0 0 42px;display:flex;align-items:center;font-size:var(--font-size-monospace-large);border-bottom:1px solid var(--color-border);padding:0.5rem}.aBtzuUuPzsX7SMY12BlU{flex:0 1 auto;padding-left:0.25rem;padding-right:0.125rem;line-height:1rem;border-top-left-radius:0.125rem;border-bottom-left-radius:0.125rem;display:inline-block;background-color:var(--color-component-badge-background);color:var(--color-text);font-family:var(--font-family-monospace);font-size:var(--font-size-monospace-small);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.nj4SAMmTUsR18n1AhsRR{height:1rem;width:1rem;margin-right:-0.25rem;border:0.5rem solid transparent;border-left:0.5rem solid var(--color-component-badge-background)}.fzFQP5c1Nu7WdBiHvVcv{flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;line-height:normal}.sZBTjxc2Uuj6j1x1PXgE{flex:1 1 auto;color:var(--color-component-name);font-family:var(--font-family-monospace);font-size:var(--font-size-monospace-normal);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.ioBCP8YZ8QjgPhP8HHS0{padding:0.25rem;color:var(--color-dimmer);font-style:italic;border-left:1px solid var(--color-border)}.qItvNDYiaAL24IKVfRqL{margin-right:0.25rem;color:var(--color-console-error-icon)}.azF2eH48iOjBz6HDO9Ow,\n.LPaApyuVrcOGD5qUoWQn,\n.dLYZXm2g99I3865s06gd{height:100%;display:flex;align-items:center;cursor:pointer;border-top:3px solid transparent;border-bottom:3px solid transparent;user-select:none;color:var(--color-text);position:relative;-webkit-app-region:no-drag}.azF2eH48iOjBz6HDO9Ow:hover,\n.LPaApyuVrcOGD5qUoWQn:hover{background-color:var(--color-background-hover)}.azF2eH48iOjBz6HDO9Ow:focus-within,\n.LPaApyuVrcOGD5qUoWQn:focus-within{background-color:var(--color-background-hover)}.LPaApyuVrcOGD5qUoWQn{border-bottom:3px solid var(--color-tab-selected-border)}.dLYZXm2g99I3865s06gd{color:var(--color-dim);cursor:default}.z_9NPSY02xL5C_rKNbEi{font-size:var(--font-size-sans-large);padding:0.5rem 1rem}.bj5wjZcEkvD4cnSPS9kl{font-size:var(--font-size-sans-normal);padding:0.25rem 0.5rem}.E9aLzYNgVRQ5FElw5qvk{font-size:var(--font-size-sans-normal);padding:0.25rem 0.5rem}.yX6Fn0DUz_VpvVLkzsUL{width:0;margin:0;opacity:0;position:absolute}.nNtZVyEhqWkkeV_FcVUV,\n.llzBtlsevYNSK2AemPVE,\n.z6c_Nl9j9w9_Ysw2pjBz{margin-right:0.5rem;color:var(--color-button-active)}.WvobeGrHZIFWyhQtt4q4{color:var(--color-dim)}.nNtZVyEhqWkkeV_FcVUV{width:1.5rem;height:1.5rem}.llzBtlsevYNSK2AemPVE{width:1rem;height:1rem}.z6c_Nl9j9w9_Ysw2pjBz{width:1rem;height:1rem}.IXUXIDmjzs4W4EylMtEP{height:20px;width:1px;border-left:1px solid var(--color-border);padding-left:0.25rem;margin-left:0.25rem}@media screen and (max-width: 525px){.nNtZVyEhqWkkeV_FcVUV{margin-right:0}.qyile5WCa81wrByw4pnO{display:none}}@media screen and (max-width: 900px){.ZXKpfJKiQo9w3SECMfLW{display:none}.llzBtlsevYNSK2AemPVE{margin-right:0}}@media screen and (max-width: 400px){.hQi4CAO4RGdWxa7jdQuX{display:none}.z6c_Nl9j9w9_Ysw2pjBz{margin-right:0}}.or1HUOer1f963ovFvr5c{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;font-family:var(--font-family-sans);font-size:var(--font-size-sans-normal)}.tUXIEFu9F_lS1kviOJqI{margin-bottom:0.5rem}.tUXIEFu9F_lS1kviOJqI:last-of-type{margin-bottom:0}.nJPtP4BdOmVGjNgNGrft{margin:0.5rem 0}.LF27cZYKRmoLaJO_HhHw{display:inline-flex;flex-direction:row;align-items:center;user-select:none;margin:0 1rem 0.5rem 0}.LF27cZYKRmoLaJO_HhHw:last-of-type{margin-right:0}.gL712cWer1wW2mjuBxkL{display:inline;margin-right:0.5rem}.zt7jGYrjsD3qQHNXrN4u{height:0.5rem}.WOW_X2PmrOQlYsEdM3Xs{display:block;padding:0 0 0.5rem}.QdRJQ2ye3WuBBFQd5Erc{height:1px;background-color:var(--color-border);width:100%;border:none;margin:0.5rem 0}.RwHFQRMh3YU9unsmEpEV{font-size:var(--font-size-sans-large);margin-top:0.5rem}.EIoKgKJ5y33CHiAHF9vg{margin-right:0.25rem}.uMyt1rJ3xueXHSqObKvX{padding:0.25rem 0;color:var(--color-dim)}.IUAA3lAy01Gi5SZLApio{min-width:20rem;margin-top:0.5rem;border-spacing:0}.GXiKg5qR1JJ41p147V6w{padding-bottom:0.5rem}.t42VqdEeUQxAZuw2K6dw{padding:0;padding-right:0.5rem}.t42VqdEeUQxAZuw2K6dw:last-of-type{text-align:right;padding-right:0}.aX39zH4zrFhnSC6I9m_Z{border:1px solid var(--color-border);border-radius:0.125rem;padding:0.125rem;margin-left:.5rem}.r8Qvw_BhB46V8Zk5t8id,\n.r8Qvw_BhB46V8Zk5t8id:active,\n.r8Qvw_BhB46V8Zk5t8id:focus,\n.r8Qvw_BhB46V8Zk5t8id:hover{color:var(--color-value-invalid)}.ncG7Mh41PuWfpuGMeP07,\n.LnhMDoxboSJz70znSVVs,\n.vTLPI_vaoDzDutbGmwDJ,\n.zyhbm27fRcSESereFAhG{border-radius:0.75rem;width:1rem;height:0.625rem;display:flex;align-items:center;padding:0.125rem}.ncG7Mh41PuWfpuGMeP07{background-color:var(--color-toggle-background-invalid);justify-content:flex-start}.LnhMDoxboSJz70znSVVs{background-color:var(--color-toggle-background-invalid);justify-content:flex-end}.vTLPI_vaoDzDutbGmwDJ{background-color:var(--color-toggle-background-off);justify-content:flex-start}.zyhbm27fRcSESereFAhG{background-color:var(--color-toggle-background-on);justify-content:flex-end}.R7l0YlZcT6dEVIL_Q3YO,\n.HXWZgik4UCPBgIWd3K0Y{border-radius:0.375rem;width:0.375rem;height:0.375rem;background-color:var(--color-toggle-text)}.z5hEC7NmGsfJUbrLoAiK{width:100%;background-color:var(--color-background-hover);padding:0.25rem 0.5rem;border-radius:0.25rem}.So46zBz2hS7SSvk1M1Db, .yfb_Pqtyw8opvNhmcfY6{color:var(--color-button-active)}.dj8ag9rXvtGe07NoRnoz{color:var(--color-error-text)}.BEsTZEoadFfmBZ7GXvj8{list-style:none;padding:0;margin:0}.eMk7OK1dSU4XuQKUmWp0{position:absolute;z-index:3;width:100%;top:0;bottom:0;background-color:var(--color-modal-background);display:flex;align-items:flex-start;justify-content:center;font-size:var(--font-size-sans-normal);padding:1rem}.d9G5s2h3mDlCu62lRtbP{display:flex;flex-direction:column;flex:0 1 auto;max-height:100%;background-color:var(--color-background);border:1px solid var(--color-border);box-shadow:0 2px 4px var(--color-shadow);border-radius:0.25rem;overflow:auto;width:410px;max-width:100%}.jbn0ZHmV4PmusgY73fFS{flex:1}.kf0dDWEgXidq8lUyeIUe{display:flex;flex-direction:row;border-bottom:1px solid var(--color-border);padding-right:0.25rem;flex:0 0 auto}.SXNg3Gs7j4CMOilBuQfo{padding:0.5rem;flex:0 1 auto;overflow:auto}.sq7P_up0IVLFeviKrLng{position:relative;width:100%;height:100%;display:flex;flex-direction:row;background-color:var(--color-background);color:var(--color-text);font-family:var(--font-family-sans)}.sq7P_up0IVLFeviKrLng, .sq7P_up0IVLFeviKrLng *{box-sizing:border-box;-webkit-font-smoothing:var(--font-smoothing)}.mtKVxGxGerKyM404mgS6{flex:0 0 var(--horizontal-resize-percentage);overflow:auto}.zBXCQOyxTkno88EftTO3{flex:1 1 35%;overflow-x:hidden;overflow-y:auto}.LvlXDd_vWgrnA_2hlp6P{flex:0 0 0px;position:relative}.KruXWRv8AZhJAyJ4mgCu{position:absolute;left:-2px;width:5px;height:100%;cursor:ew-resize}@media screen and (max-width: 600px){.sq7P_up0IVLFeviKrLng{flex-direction:column}.mtKVxGxGerKyM404mgS6{flex:0 0 var(--vertical-resize-percentage)}.zBXCQOyxTkno88EftTO3{flex:1 1 50%}.KruXWRv8AZhJAyJ4mgCu{top:-2px;left:0;width:100%;height:5px;cursor:ns-resize}}.Fto6ZGpW1Z2LYY_Tb3Uz{height:100%;padding-left:0.5rem;display:flex;align-items:center;justify-content:center;font-size:var(--font-size-sans-large);color:var(--color-dim);border-left:1px solid var(--color-border)}.L8woOxFUxxEIixztHQ7F{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}.AtobNEaumeuDxis8vMZL{font-size:var(--font-size-sans-large);margin-bottom:0.5rem}.wNUSnerUEet4FbVLoMYW{display:flex;align-items:center}.nxmnW8DZWX5ncv9cnvFA{transition:all ease-in-out 250ms}.UnrCr_TjeWWD_jCqAUG3{cursor:pointer;stroke:var(--color-background);transition:all ease-in-out 250ms}.nKkkaaYNee8JgVSmCnbu{pointer-events:none;transition:all ease-in-out 250ms}.p9pnq6uefSWIZs0uyvsm{pointer-events:none;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-family:var(--font-family-sans);font-size:var(--font-size-sans-normal);margin-left:0.25rem;margin-right:0.25rem;line-height:1.5;padding:0 0 0;font-weight:400;color:var(--color-commit-gradient-text);text-align:left;transition:all ease-in-out 250ms}.IkCgTd3uBjVma0pkjIWQ{margin-top:0.25rem}.o966ewEpKp83bg2KkhK9{font-family:var(--font-family-monospace);font-size:var(--font-size-monospace-small);line-height:1}.o966ewEpKp83bg2KkhK9:first-of-type::before{content:' ('}.o966ewEpKp83bg2KkhK9::after{content:', '}.o966ewEpKp83bg2KkhK9:last-of-type::after{content:')'}._8XubYXHe9_RJazk947v{font-weight:bold}.ANH3uQmqdejNNBMFVElK{padding:0.25rem 0;flex:0 0 auto;display:flex;flex-direction:column;gap:0.25rem}.ktt_CXlygBWE6kn8NPge{display:flex;flex-direction:column;gap:0.25rem}.ktt_CXlygBWE6kn8NPge:not(:empty){padding-bottom:0.25rem;border-bottom:1px solid var(--color-border)}.gQwq51H6S25d6j5fprQ6{user-select:none;overflow-y:auto}.lYjHEFZCqsMukwE8ta6U{flex:1;font-weight:bold;font-family:var(--font-family-monospace);font-size:var(--font-size-monospace-normal);white-space:nowrap;overflow-x:hidden;text-overflow:ellipsis;padding-bottom:0.25rem;border-bottom:1px solid var(--color-border)}.WfcYLToZgb8sJXT8vsc0{display:block;width:100%;text-align:left;background:none;border:none}.i_taW1oEEfmhrYS7WdvQ{position:absolute;pointer-events:none;border:none;border-radius:0.25rem;padding:0.25rem 0.5rem;font-family:var(--font-family-sans);font-size:12px;background-color:var(--color-tooltip-background);color:var(--color-tooltip-text);opacity:1;white-space:nowrap;z-index:10000002}.i_taW1oEEfmhrYS7WdvQ.YejlWmbOor4qvPIIBEOz{opacity:0}.ilzqvnQHcTjo1_CPyuBQ{width:-moz-max-content;width:-webkit-max-content}.fXsETZvykyOnCWEVGTyA{width:100%;flex:1;padding:0.5rem}.f8UQT2oHvCCgil4vX43p{stroke:var(--color-commit-did-not-render-pattern);stroke-width:1}.dCqfL52pEXxTO91bkkNQ{width:100%;flex:1;padding:0.5rem}.Y8k43_cve4m9S1C1lzcc{flex:1}.X3iRH_cmlxUnnqQJPwdk{color:var(--color-record-active)}.X3iRH_cmlxUnnqQJPwdk:hover{color:var(--color-record-active)}.X3iRH_cmlxUnnqQJPwdk:focus{color:var(--color-record-active)}.X3iRH_cmlxUnnqQJPwdk:active{color:var(--color-record-hover)}._Fmh73Tp_hVdvSq0LfwS{color:var(--color-record-inactive)}._Fmh73Tp_hVdvSq0LfwS:hover{color:var(--color-record-hover)}._Fmh73Tp_hVdvSq0LfwS:focus{color:var(--color-record-inactive)}._Fmh73Tp_hVdvSq0LfwS:active{color:var(--color-record-hover)}.D2ZC9ljzCsU1D10UgRfa{color:var(--color-button-disabled)}.D2ZC9ljzCsU1D10UgRfa:hover{color:var(--color-button-disabled)}.D2ZC9ljzCsU1D10UgRfa:focus{color:var(--color-button-disabled)}.D2ZC9ljzCsU1D10UgRfa:active{color:var(--color-button-disabled)}.PQXvlxJHC_mjwS_kG5hZ{width:100%;height:100%;position:relative;display:flex;flex-direction:row;align-items:stretch;font-family:var(--font-family-sans);font-size:var(--font-size-sans-normal);background-color:var(--color-background);color:var(--color-text)}.PQXvlxJHC_mjwS_kG5hZ, .PQXvlxJHC_mjwS_kG5hZ *{box-sizing:border-box;-webkit-font-smoothing:var(--font-smoothing)}.wOW0mX_KSifasFYp2M07{display:flex;flex-direction:column;flex:2 1 200px;border-top:1px solid var(--color-border)}.qNTcxtkwuoNmuFcG3uNQ{display:flex;flex-direction:column;flex:1 1 100px;max-width:300px;overflow-x:hidden;border-left:1px solid var(--color-border);border-top:1px solid var(--color-border)}.F9s7klTfnkD_0fKNmX48{position:relative;flex:1 1 auto;display:flex;flex-direction:column;align-items:center;justify-content:center}.O24130u6b3M44pVmHhCv{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0 1rem}.trpdR27polx2zi2M9anI{text-align:center}.MP9kRGAcsvXwBIKtJEjY{display:flex;flex-direction:row;align-items:center;justify-content:center}.SCM8kzD_pFUd1D02QPtH{margin-top:1rem;color:var(--color-dim);font-size:var(--font-size-sans-small)}.i7tKtcE5WUEZ2bsj4PAy{font-size:var(--font-size-sans-large);margin-bottom:0.5rem}.P93KFw4qPKJlTiW5iGWi{height:2.25rem;padding:0 0.25rem;flex:0 0 auto;display:flex;align-items:center;border-bottom:1px solid var(--color-border)}.rBTEU03NyiBSbh_F7eBN{height:20px;width:1px;border-left:1px solid var(--color-border);padding-left:0.25rem;margin-left:0.25rem}.puj9ffDcr9TRErtUxYA5{flex:1}.Nox22y17MWpcgoM0b2sW{font-size:var(--font-size-sans-large);padding:0.5rem}.SLdUfzK4Y4h6B5NNry2P{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:var(--font-size-sans-large);color:var(--color-dim)}.p18y0jnRRFvWc9Aahph6{height:100%;padding-left:0.5rem;display:flex;align-items:center;justify-content:center;font-size:var(--font-size-sans-large);color:var(--color-dim)}.qIhKE7GPUn_qxk7BAASy{color:var(--color-button)}.g6w1S218i5WBsiU5d1A3{flex:1 1;display:flex;align-items:center}.hQFhOL9f3ZT4IO97Mr85{color:var(--color-link);margin-left:0.25rem;margin-right:0.25rem}.N3EGKzrGIkBOWEWDf9L7{position:fixed}.AzaWiYKucXJKkE2mLtJl,\n.egwTq8xaZYmu5AwzN7q3,\n.I89UegKZ4CVKZ4fZi70A{display:block;border-radius:0.125rem;padding:0.25rem;user-select:none;pointer-events:none;background-color:var(--color-tooltip-background);box-shadow:1px 1px 2px var(--color-shadow);color:var(--color-tooltip-text);font-size:11px}.egwTq8xaZYmu5AwzN7q3{margin-top:0.25rem;background-color:var(--color-warning-background)}.AzaWiYKucXJKkE2mLtJl,\n.egwTq8xaZYmu5AwzN7q3{max-width:300px}.I89UegKZ4CVKZ4fZi70A{white-space:nowrap}.VNOllhItld4Pgmtf5Ppw{height:1px;background-color:#aaa;margin:0.25rem 0}.MPvO_4SSYDzHNp4lE94K{display:grid;padding-top:5px;grid-gap:2px 5px;grid-template-columns:min-content auto}.sZnI6xuf_7orBe2Asxn_{color:var(--color-dim);text-align:right;white-space:nowrap}.M0WUFL6gXSNmExgreLwO{word-break:break-all;max-height:50vh;overflow:hidden}.d9f4tr7dJUEW6jrEDyOt{word-break:break-word}.ejuIKX4HIM2d9POSXI85{font-weight:bold;word-break:break-word;margin-right:0.25rem}.GMAYJazv4K7ZpOr97hCQ{word-break:break-word}.w6QmYYdfsQPk6sau6zog{font-weight:bold;word-break:break-word;margin-right:0.25rem}.XGcHiWMwrBc5c2KR8wLv{color:var(--color-warning-text-color)}.Y4pd_lwDQuEbGYYczxPw{border:1px solid var(--color-border)}.F9Q4ycxrR5Cx58QdXTQF{color:var(--color-dim)}.OEnj08490n7qDJm7CNI8{position:absolute;top:0;bottom:0;left:0;right:0}.QjVtusM1KGirAKftEjwY{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0 1rem}.jiMh2PwnK6_SN21x4Q7M{font-size:var(--font-size-sans-large);margin-bottom:0.5rem}.pNkugLfjnL1A_GKSmR2Q{text-align:center;margin:0}.M9S99onnkkihyqGdp7ag{color:var(--color-link)}.Zu1Ac7CcqoyQYyYmgeqc{margin-top:1rem;color:var(--color-dim);font-size:var(--font-size-sans-small)}.Ixc7sI8z0MqS7K2bdXGW{color:var(--color-bridge-version-number)}.fwIa_vMWRtgmxAgYtV2y{background:var(--color-background-hover);padding:0.25rem 0.5rem;border-radius:0.25rem;margin-top:1rem}.eue06UGfhEQuo2ZKaXrY{width:100%;position:relative;flex:1 1 auto;display:flex;flex-direction:column;align-items:center;justify-content:center}.K_JJva1_xDfpSRy6RpDu{margin:0.5rem 0;color:var(--color-dim);font-family:var(--font-family-monospace);font-size:var(--font-size-monospace-normal)}.fU0E28avKp3oPxeR34NR{display:flex;flex-direction:row;align-items:center;justify-content:center;flex-flow:wrap}.wjNO8GSvNqofzPC3JMXU{text-align:center}.tWwch6_bJnvq33qchywK{font-size:var(--font-size-sans-large);margin-bottom:0.5rem}.lgd3ZCMgCXtUMxt070tV{height:2.25rem;padding:0 0.5rem;flex:0 0 auto;display:flex;align-items:center;border-bottom:1px solid var(--color-border)}.sWXfInUyKrvDk6lK2o9D{padding:0.5rem;user-select:none;overflow:auto}.tubB5UBWO8CymMFmA5CF{list-style:none;margin:0;padding:0}.UOZgvcZmCsPSOtKDj0WN{flex:1 1;margin:0 0 0.5rem}.fDFFFS6FSdkZVvvvVkUt{overflow:hidden;text-overflow:ellipsis;font-weight:bold;flex:1 1}.jlV06smRNDvlE9a_KfXK{font-family:var(--font-family-monospace);font-size:var(--font-size-monospace-normal)}.jCiyjnM7GK5KxPMT5GMO{display:flex;flex-direction:row;align-items:center;border-top:1px solid var(--color-border)}.BTlRsBnXtBSjjGNX0uzb,\n.fRBYQh_ObZ4pHWasihPS{width:100%;overflow:hidden;text-overflow:ellipsis;font-family:var(--font-family-sans);font-size:var(--font-size-sans-normal)}.BTlRsBnXtBSjjGNX0uzb{color:var(--color-dim)}.fRBYQh_ObZ4pHWasihPS{color:var(--color-text)}.fRBYQh_ObZ4pHWasihPS:focus,\n.fRBYQh_ObZ4pHWasihPS:hover{background-color:var(--color-background-hover)}.N8H0SJ33TtBea__rELXw{height:20px;width:1px;border-left:1px solid var(--color-border);padding-left:0.25rem;margin-left:0.25rem}._08ibVjqcFQVJ0Dv8n1AX{position:absolute!important;height:1px;width:1px;overflow:hidden;clip:rect(1px,1px,1px,1px)}.aieWFlSkxB_kzGCdLw_G{margin:0.5rem 0;color:var(--color-dim);font-family:var(--font-family-monospace);font-size:var(--font-size-monospace-normal)}.jw93IlCe1adpUzntTNgc{user-select:none;cursor:pointer;border-bottom:3px solid transparent;padding-top:4px;padding-bottom:1px;display:flex;align-items:flex-end}.jw93IlCe1adpUzntTNgc:hover{background-color:var(--color-background)}._5XUdsPllhotmtTs9R33A,\n.tX5mJ_WVcSwasnpmMncZ{width:100%;min-height:2px;background-color:var(--color-commit-did-not-render-fill);color:var(--color-commit-did-not-render-fill-text)}.tX5mJ_WVcSwasnpmMncZ{background-color:var(--color-button-active)}.sfkKfFJiQWXm4ZkgOQA_{overflow-x:hidden!important}.uWBBMcT5QRe8BLmRr5DN{margin-top:2.5rem}.PeBCG3928_FRgKe17he8{list-style:none;padding:0;margin:0}.wKr9YTA5FM7_JaJbZOv2{display:flex}.cfm4U9M_1T9x2RmXMrxG{font-weight:bold;margin-right:0.25rem}.cfm4U9M_1T9x2RmXMrxG:after{content:':'}.qRIEqFLWDIjANIC0Ntie{flex-grow:1;text-align:end}.izM1TvBpZUUcTQ42Frqn{flex-grow:1}.s7evU0HIQSOHulfOSX9I{list-style:none;margin:0 0 0 1rem;padding:0}.c8bhlz4IND24Tuk1grrp{display:flex}.WD60Q47uUTiP3xkXlZyb{margin-right:0.25rem}.WD60Q47uUTiP3xkXlZyb:after{content:':'}.xhTBBmJDUq4Q4FqKQ0Ej{flex-grow:1;text-align:end}._CufCnCVGPGWnSFl1uho{flex:0 0 auto;margin-left:0.25rem}.Hl8vt0A1Pvc45oOEfvfc{height:100%;min-width:30px;margin-left:0.25rem;overflow:visible}.Hl8vt0A1Pvc45oOEfvfc:focus{outline:none;background-color:var(--color-button-background-focus)}.xiLvxcsoqxeWVh07R31l{flex:0 0 auto;white-space:nowrap;font-family:var(--font-family-monospace);margin-left:0.25rem}.jsUKzO10uV20A3wnvydO{height:100%;display:flex;align-items:center;justify-content:center;color:var(--color-dim)}.ugxes_bEQaeJOFCGJiHj{background:none;font-size:var(--font-size-sans-normal);text-align:right;font-family:var(--font-family-monospace);border:1px solid transparent;border-radius:0.125rem;padding:0.125rem;color:var(--color-attribute-editable-value)}.ugxes_bEQaeJOFCGJiHj:focus{background-color:var(--color-button-background-focus);outline:none}.N5BzlnGYbkkzyvpM4qiQ{margin:0 0 0.5rem}.OgEAxEkwb3k_69AoeGQg,\n._1c63tyMUi98qTClO_SL,\n.IfiD3wgD1AOg2rtpeal7{display:block;width:100%;text-align:left;background:none;border:none;padding:0.25rem 0.5rem;color:var(--color-text)}._1c63tyMUi98qTClO_SL:focus,\n._1c63tyMUi98qTClO_SL:hover{outline:none;background-color:var(--color-background-hover)}.OgEAxEkwb3k_69AoeGQg,\n.IfiD3wgD1AOg2rtpeal7{color:var(--color-dim)}.Db7NQhHEeI91oH3Hvbam{height:2.25rem;padding:0 0.5rem;flex:0 0 auto;display:flex;align-items:center;border-bottom:1px solid var(--color-border)}.aZe2MG7Dqp4KMuyOUDBb{padding:0.5rem;user-select:none;overflow:auto}.f6VXZunRdhS7mNMG6eEP{list-style:none;margin:0;padding:0}.kcRreMlssKZxm_LOVtFG{margin:0 0 0.5rem}.ZwF9CPaTyMcALuS4IHhC{overflow:hidden;text-overflow:ellipsis;font-weight:bold}.uo6JwMiedyAH3mIG8aVo{font-family:var(--font-family-monospace);font-size:var(--font-size-monospace-normal)}.I2PpODEiFO9QPDXyopKq{display:flex;align-items:center;justify-content:center;height:100%;color:var(--color-dim)}.BCDwBn2mncLqqERXZimU{list-style:none;margin:0.25rem 0 0 0;padding:0;background:var(--color-background-inactive);padding:0.25rem 0.5rem;border-radius:0.25rem}.QRBDzhIQcmbPsRZCmqac{margin:0.25rem 0 0 0}.QRBDzhIQcmbPsRZCmqac:first-of-type{margin:0}.kksxAeylH3yoPGPSZs4x{height:2.25rem;padding:0 0.5rem;flex:0 0 auto;display:flex;align-items:center;border-bottom:1px solid var(--color-border)}.VJy47nzDRAprXO7tY3LS{padding:0.5rem;user-select:none;overflow-y:auto;display:flex;flex-direction:column;gap:0.5rem}.ISf33Slct6dgSxu6Jgnp{flex:1;color:var(--color-component-name);font-family:var(--font-family-monospace);font-size:var(--font-size-monospace-normal);white-space:nowrap;overflow-x:hidden;text-overflow:ellipsis}.aHgahOIZbyM7IqHd3i2t{font-weight:bold;margin-bottom:0.5rem}.DHfht546g4Kr5iX3Oa6Q,\n.q3pfRhYTXkmwbWV74Kww{display:block;width:100%;text-align:left;background:none;border:none;padding:0.25rem 0.5rem;color:var(--color-text)}.q3pfRhYTXkmwbWV74Kww:focus,\n.q3pfRhYTXkmwbWV74Kww:hover{outline:none;background-color:var(--color-background-hover)}.DHfht546g4Kr5iX3Oa6Q{background-color:var(--color-background-selected);color:var(--color-text-selected)}.DHfht546g4Kr5iX3Oa6Q:focus{outline:none}.REvy6Ilr7KQBh3VP5KtT{width:1.75rem;height:1.75rem;margin:0 0.75rem 0 0.25rem;color:var(--color-button-active)}.WCWwtFCxOl5nFSUfDDGa{display:flex;flex-direction:column}.OnEPWhy5tIMKTSyQh0Ft{font-size:var(--font-size-sans-large);margin-bottom:0.5rem}.x5T9XRpiOFNLuohENqPx{color:var(--color-bridge-version-number);font-weight:bold}.y82TcRh54m1qPbnRqfgX{display:flex;justify-content:space-between;padding:0.25rem 0.25rem 0.25rem 0.5rem;background-color:var(--color-bridge-version-npm-background);color:var(--color-bridge-version-npm-text);margin:0;font-family:var(--font-family-monospace);font-size:var(--font-size-monospace-large)}.Rof042N87RxT4OmFvFtV{margin:0.5rem 0}.WH5ByD51MpftIKuPl22B{color:var(--color-link)}.tINNQLO_ESQYrWI5Rp6a{display:flex;flex-direction:row;align-items:center}.N1Ps1KUz8upQaCUzkRb5{font-size:var(--font-size-sans-large);margin-bottom:0.5rem}.jt836PeIJQhMqB1vKLQi{color:var(--color-button-active)}.p8jhsAoxvFjiAgT7yMG9{background-color:var(--color-dimmest);padding:0.25rem 0.5rem;display:block;border-radius:0.125rem}.Hkuka5z7FNWzWV4iBl5N{width:100%;height:100%;display:flex;flex-direction:column;background-color:var(--color-background);color:var(--color-text)}.tPiY5I6mjO9E1BEvS3GI{flex:0 0 auto;display:flex;align-items:center;padding:0 0.5rem;background-color:var(--color-background);border-top:1px solid var(--color-border);font-family:var(--font-family-sans);font-size:var(--font-size-sans-large);user-select:none;-webkit-app-region:drag}.Wp5jbuBw2jpcKiKlQRTT{flex:1}.M1NR4kt2K_VBDm0ap8WR{flex:1 1 100%;overflow:auto;-webkit-app-region:no-drag}.lflmhRDlQN6CHxnrjuAx{font-size:var(--font-size-sans-normal);margin-right:0.5rem}.lflmhRDlQN6CHxnrjuAx:before{font-size:var(--font-size-sans-large);content:'DevTools '}@media screen and (max-width: 400px){.lflmhRDlQN6CHxnrjuAx:before{content:''}}@media screen and (max-width: 300px){.lflmhRDlQN6CHxnrjuAx{display:none}}.Hkuka5z7FNWzWV4iBl5N, .Hkuka5z7FNWzWV4iBl5N *{box-sizing:border-box;-webkit-font-smoothing:var(--font-smoothing)}:root{--font-smoothing:auto;--font-family-monospace:'SFMono-Regular',Consolas,'Liberation Mono',Menlo,Courier,monospace;--font-family-sans:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol}\n/*# sourceURL=package/frontend.css */\n");export{c as CSS,o as createBridge,s as createStore,l as initialize};