pxt-core 10.0.21 → 10.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/built/react-common/components/util.d.ts +1 -0
  2. package/built/target.js +1 -1
  3. package/built/web/main.js +1 -1
  4. package/built/web/multiplayer/js/{main.0e73ac24.js → main.121cfaf0.js} +2 -2
  5. package/built/web/pxtasseteditor.js +1 -1
  6. package/built/web/pxtweb.js +1 -1
  7. package/built/web/react-common-authcode.css +1 -1
  8. package/built/web/react-common-multiplayer.css +1 -1
  9. package/built/web/react-common-skillmap.css +1 -1
  10. package/built/web/rtlreact-common-authcode.css +1 -1
  11. package/built/web/rtlreact-common-multiplayer.css +1 -1
  12. package/built/web/rtlreact-common-skillmap.css +1 -1
  13. package/built/web/rtlsemantic.css +1 -1
  14. package/built/web/semantic.css +1 -1
  15. package/built/web/skillmap/js/{main.f7e01730.js → main.e95746dc.js} +2 -2
  16. package/built/web/teachertool/js/{main.dc513d1e.js → main.cb9a9260.js} +2 -2
  17. package/built/web/tutorialtool/js/{main.c3bf42cf.js → main.03b71032.js} +2 -2
  18. package/docfiles/pxtweb/cookieCompliance.ts +15 -0
  19. package/package.json +1 -1
  20. package/react-common/components/controls/EditorToggle.tsx +5 -1
  21. package/react-common/components/controls/FocusList.tsx +7 -38
  22. package/react-common/components/controls/FocusTrap.tsx +7 -7
  23. package/react-common/components/share/ShareInfo.tsx +8 -5
  24. package/react-common/components/util.tsx +21 -0
  25. package/react-common/styles/controls/Modal.less +3 -1
  26. package/react-common/styles/react-common-variables.less +1 -1
  27. package/react-common/styles/share/share.less +7 -0
  28. package/webapp/public/multiplayer.html +1 -1
  29. package/webapp/public/skillmap.html +1 -1
  30. package/webapp/public/teachertool.html +1 -1
  31. package/webapp/public/tutorialtool.html +1 -1
@@ -1,2 +1,2 @@
1
- /*! For license information please see main.0e73ac24.js.LICENSE.txt */
2
- !function(){var e={6186:function(e,t,n){"use strict";var r=n(8466),i=n(3705),a=n(6),o=n(3830);function s(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!i)throw Error(s(227));var u=new Set,l={};function c(e,t){f(e,t),f(e+"Capture",t)}function f(e,t){for(l[e]=t,e=0;e<t.length;e++)u.add(t[e])}var d=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h=Object.prototype.hasOwnProperty,m={},v={};function y(e,t,n,r,i,a,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new y(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new y(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new y(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new y(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new y(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new y(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new y(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new y(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new y(e,5,!1,e.toLowerCase(),null,!1,!1)}));var b=/[\-:]([a-z])/g;function w(e){return e[1].toUpperCase()}function x(e,t,n,r){var i=g.hasOwnProperty(t)?g[t]:null;(null!==i?0===i.type:!r&&2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1]))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!h.call(v,e)||!h.call(m,e)&&(p.test(e)?v[e]=!0:(m[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(b,w);g[t]=new y(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(b,w);g[t]=new y(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(b,w);g[t]=new y(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new y(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new y("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new y(e,1,!1,e.toLowerCase(),null,!0,!0)}));var k=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_=60103,E=60106,S=60107,O=60108,A=60114,C=60109,T=60110,N=60112,j=60113,P=60120,R=60115,I=60116,L=60121,M=60128,B=60129,D=60130,U=60131;if("function"==typeof Symbol&&Symbol.for){var F=Symbol.for;_=F("react.element"),E=F("react.portal"),S=F("react.fragment"),O=F("react.strict_mode"),A=F("react.profiler"),C=F("react.provider"),T=F("react.context"),N=F("react.forward_ref"),j=F("react.suspense"),P=F("react.suspense_list"),R=F("react.memo"),I=F("react.lazy"),L=F("react.block"),F("react.scope"),M=F("react.opaque.id"),B=F("react.debug_trace_mode"),D=F("react.offscreen"),U=F("react.legacy_hidden")}var z,V="function"==typeof Symbol&&Symbol.iterator;function H(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=V&&e[V]||e["@@iterator"])?e:null}function W(e){if(void 0===z)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);z=t&&t[1]||""}return"\n"+z+e}var q=!1;function G(e,t){if(!e||q)return"";q=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var i=e.stack.split("\n"),a=r.stack.split("\n"),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(1!==o||1!==s)do{if(o--,0>--s||i[o]!==a[s])return"\n"+i[o].replace(" at new "," at ")}while(1<=o&&0<=s);break}}}finally{q=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?W(e):""}function Z(e){switch(e.tag){case 5:return W(e.type);case 16:return W("Lazy");case 13:return W("Suspense");case 19:return W("SuspenseList");case 0:case 2:case 15:return G(e.type,!1);case 11:return G(e.type.render,!1);case 22:return G(e.type._render,!1);case 1:return G(e.type,!0);default:return""}}function Y(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case S:return"Fragment";case E:return"Portal";case A:return"Profiler";case O:return"StrictMode";case j:return"Suspense";case P:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case T:return(e.displayName||"Context")+".Consumer";case C:return(e._context.displayName||"Context")+".Provider";case N:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case R:return Y(e.type);case L:return Y(e._render);case I:t=e._payload,e=e._init;try{return Y(e(t))}catch(e){}}return null}function $(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function K(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function X(e){e._valueTracker||(e._valueTracker=function(e){var t=K(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=K(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function J(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function ee(e,t){var n=t.checked;return a({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function te(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=$(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function ne(e,t){null!=(t=t.checked)&&x(e,"checked",t,!1)}function re(e,t){ne(e,t);var n=$(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ae(e,t.type,n):t.hasOwnProperty("defaultValue")&&ae(e,t.type,$(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function ie(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ae(e,t,n){"number"===t&&J(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function oe(e,t){return e=a({children:void 0},t),(t=function(e){var t="";return i.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function se(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+$(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function ue(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(s(91));return a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function le(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(s(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(s(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:$(n)}}function ce(e,t){var n=$(t.value),r=$(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function fe(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var de="http://www.w3.org/1999/xhtml";function pe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function he(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?pe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var me,ve,ye=(ve=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((me=me||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=me.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ve(e,t)}))}:ve);function ge(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var be={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},we=["Webkit","ms","Moz","O"];function xe(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||be.hasOwnProperty(e)&&be[e]?(""+t).trim():t+"px"}function ke(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=xe(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(be).forEach((function(e){we.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),be[t]=be[e]}))}));var _e=a({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ee(e,t){if(t){if(_e[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(s(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(s(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(s(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(s(62))}}function Se(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Oe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ae=null,Ce=null,Te=null;function Ne(e){if(e=ei(e)){if("function"!=typeof Ae)throw Error(s(280));var t=e.stateNode;t&&(t=ni(t),Ae(e.stateNode,e.type,t))}}function je(e){Ce?Te?Te.push(e):Te=[e]:Ce=e}function Pe(){if(Ce){var e=Ce,t=Te;if(Te=Ce=null,Ne(e),t)for(e=0;e<t.length;e++)Ne(t[e])}}function Re(e,t){return e(t)}function Ie(e,t,n,r,i){return e(t,n,r,i)}function Le(){}var Me=Re,Be=!1,De=!1;function Ue(){null===Ce&&null===Te||(Le(),Pe())}function Fe(e,t){var n=e.stateNode;if(null===n)return null;var r=ni(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(s(231,t,typeof n));return n}var ze=!1;if(d)try{var Ve={};Object.defineProperty(Ve,"passive",{get:function(){ze=!0}}),window.addEventListener("test",Ve,Ve),window.removeEventListener("test",Ve,Ve)}catch(ve){ze=!1}function He(e,t,n,r,i,a,o,s,u){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}var We=!1,qe=null,Ge=!1,Ze=null,Ye={onError:function(e){We=!0,qe=e}};function $e(e,t,n,r,i,a,o,s,u){We=!1,qe=null,He.apply(Ye,arguments)}function Ke(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Xe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function Qe(e){if(Ke(e)!==e)throw Error(s(188))}function Je(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ke(e)))throw Error(s(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return Qe(i),e;if(a===r)return Qe(i),t;a=a.sibling}throw Error(s(188))}if(n.return!==r.return)n=i,r=a;else{for(var o=!1,u=i.child;u;){if(u===n){o=!0,n=i,r=a;break}if(u===r){o=!0,r=i,n=a;break}u=u.sibling}if(!o){for(u=a.child;u;){if(u===n){o=!0,n=a,r=i;break}if(u===r){o=!0,r=a,n=i;break}u=u.sibling}if(!o)throw Error(s(189))}}if(n.alternate!==r)throw Error(s(190))}if(3!==n.tag)throw Error(s(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function et(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var tt,nt,rt,it,at=!1,ot=[],st=null,ut=null,lt=null,ct=new Map,ft=new Map,dt=[],pt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ht(e,t,n,r,i){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:i,targetContainers:[r]}}function mt(e,t){switch(e){case"focusin":case"focusout":st=null;break;case"dragenter":case"dragleave":ut=null;break;case"mouseover":case"mouseout":lt=null;break;case"pointerover":case"pointerout":ct.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ft.delete(t.pointerId)}}function vt(e,t,n,r,i,a){return null===e||e.nativeEvent!==a?(e=ht(t,n,r,i,a),null!==t&&null!==(t=ei(t))&&nt(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function yt(e){var t=Jr(e.target);if(null!==t){var n=Ke(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Xe(n)))return e.blockedOn=t,void it(e.lanePriority,(function(){o.unstable_runWithPriority(e.priority,(function(){rt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function gt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=ei(n))&&nt(t),e.blockedOn=n,!1;t.shift()}return!0}function bt(e,t,n){gt(e)&&n.delete(t)}function wt(){for(at=!1;0<ot.length;){var e=ot[0];if(null!==e.blockedOn){null!==(e=ei(e.blockedOn))&&tt(e);break}for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&ot.shift()}null!==st&&gt(st)&&(st=null),null!==ut&&gt(ut)&&(ut=null),null!==lt&&gt(lt)&&(lt=null),ct.forEach(bt),ft.forEach(bt)}function xt(e,t){e.blockedOn===t&&(e.blockedOn=null,at||(at=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,wt)))}function kt(e){function t(t){return xt(t,e)}if(0<ot.length){xt(ot[0],e);for(var n=1;n<ot.length;n++){var r=ot[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==st&&xt(st,e),null!==ut&&xt(ut,e),null!==lt&&xt(lt,e),ct.forEach(t),ft.forEach(t),n=0;n<dt.length;n++)(r=dt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<dt.length&&null===(n=dt[0]).blockedOn;)yt(n),null===n.blockedOn&&dt.shift()}function _t(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Et={animationend:_t("Animation","AnimationEnd"),animationiteration:_t("Animation","AnimationIteration"),animationstart:_t("Animation","AnimationStart"),transitionend:_t("Transition","TransitionEnd")},St={},Ot={};function At(e){if(St[e])return St[e];if(!Et[e])return e;var t,n=Et[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ot)return St[e]=n[t];return e}d&&(Ot=document.createElement("div").style,"AnimationEvent"in window||(delete Et.animationend.animation,delete Et.animationiteration.animation,delete Et.animationstart.animation),"TransitionEvent"in window||delete Et.transitionend.transition);var Ct=At("animationend"),Tt=At("animationiteration"),Nt=At("animationstart"),jt=At("transitionend"),Pt=new Map,Rt=new Map,It=["abort","abort",Ct,"animationEnd",Tt,"animationIteration",Nt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",jt,"transitionEnd","waiting","waiting"];function Lt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1];i="on"+(i[0].toUpperCase()+i.slice(1)),Rt.set(r,t),Pt.set(r,i),c(i,[r])}}(0,o.unstable_now)();var Mt=8;function Bt(e){if(0!=(1&e))return Mt=15,1;if(0!=(2&e))return Mt=14,2;if(0!=(4&e))return Mt=13,4;var t=24&e;return 0!==t?(Mt=12,t):0!=(32&e)?(Mt=11,32):0!=(t=192&e)?(Mt=10,t):0!=(256&e)?(Mt=9,256):0!=(t=3584&e)?(Mt=8,t):0!=(4096&e)?(Mt=7,4096):0!=(t=4186112&e)?(Mt=6,t):0!=(t=62914560&e)?(Mt=5,t):67108864&e?(Mt=4,67108864):0!=(134217728&e)?(Mt=3,134217728):0!=(t=805306368&e)?(Mt=2,t):0!=(1073741824&e)?(Mt=1,1073741824):(Mt=8,e)}function Dt(e,t){var n=e.pendingLanes;if(0===n)return Mt=0;var r=0,i=0,a=e.expiredLanes,o=e.suspendedLanes,s=e.pingedLanes;if(0!==a)r=a,i=Mt=15;else if(0!=(a=134217727&n)){var u=a&~o;0!==u?(r=Bt(u),i=Mt):0!=(s&=a)&&(r=Bt(s),i=Mt)}else 0!=(a=n&~o)?(r=Bt(a),i=Mt):0!==s&&(r=Bt(s),i=Mt);if(0===r)return 0;if(r=n&((0>(r=31-Wt(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0==(t&o)){if(Bt(t),i<=Mt)return t;Mt=i}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-Wt(t)),r|=e[n],t&=~i;return r}function Ut(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Ft(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=zt(24&~t))?Ft(10,t):e;case 10:return 0===(e=zt(192&~t))?Ft(8,t):e;case 8:return 0===(e=zt(3584&~t))&&0===(e=zt(4186112&~t))&&(e=512),e;case 2:return 0===(t=zt(805306368&~t))&&(t=268435456),t}throw Error(s(358,e))}function zt(e){return e&-e}function Vt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ht(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Wt(t)]=n}var Wt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(qt(e)/Gt|0)|0},qt=Math.log,Gt=Math.LN2,Zt=o.unstable_UserBlockingPriority,Yt=o.unstable_runWithPriority,$t=!0;function Kt(e,t,n,r){Be||Le();var i=Qt,a=Be;Be=!0;try{Ie(i,e,t,n,r)}finally{(Be=a)||Ue()}}function Xt(e,t,n,r){Yt(Zt,Qt.bind(null,e,t,n,r))}function Qt(e,t,n,r){var i;if($t)if((i=0==(4&t))&&0<ot.length&&-1<pt.indexOf(e))e=ht(null,e,t,n,r),ot.push(e);else{var a=Jt(e,t,n,r);if(null===a)i&&mt(e,r);else{if(i){if(-1<pt.indexOf(e))return e=ht(a,e,t,n,r),void ot.push(e);if(function(e,t,n,r,i){switch(t){case"focusin":return st=vt(st,e,t,n,r,i),!0;case"dragenter":return ut=vt(ut,e,t,n,r,i),!0;case"mouseover":return lt=vt(lt,e,t,n,r,i),!0;case"pointerover":var a=i.pointerId;return ct.set(a,vt(ct.get(a)||null,e,t,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,ft.set(a,vt(ft.get(a)||null,e,t,n,r,i)),!0}return!1}(a,e,t,n,r))return;mt(e,r)}Pr(e,t,r,null,n)}}}function Jt(e,t,n,r){var i=Oe(r);if(null!==(i=Jr(i))){var a=Ke(i);if(null===a)i=null;else{var o=a.tag;if(13===o){if(null!==(i=Xe(a)))return i;i=null}else if(3===o){if(a.stateNode.hydrate)return 3===a.tag?a.stateNode.containerInfo:null;i=null}else a!==i&&(i=null)}}return Pr(e,t,r,i,n),null}var en=null,tn=null,nn=null;function rn(){if(nn)return nn;var e,t,n=tn,r=n.length,i="value"in en?en.value:en.textContent,a=i.length;for(e=0;e<r&&n[e]===i[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===i[a-t];t++);return nn=i.slice(e,1<t?1-t:void 0)}function an(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function on(){return!0}function sn(){return!1}function un(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?on:sn,this.isPropagationStopped=sn,this}return a(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=on)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=on)},persist:function(){},isPersistent:on}),t}var ln,cn,fn,dn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pn=un(dn),hn=a({},dn,{view:0,detail:0}),mn=un(hn),vn=a({},hn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:An,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==fn&&(fn&&"mousemove"===e.type?(ln=e.screenX-fn.screenX,cn=e.screenY-fn.screenY):cn=ln=0,fn=e),ln)},movementY:function(e){return"movementY"in e?e.movementY:cn}}),yn=un(vn),gn=un(a({},vn,{dataTransfer:0})),bn=un(a({},hn,{relatedTarget:0})),wn=un(a({},dn,{animationName:0,elapsedTime:0,pseudoElement:0})),xn=un(a({},dn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),kn=un(a({},dn,{data:0})),_n={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},En={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function On(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function An(){return On}var Cn=un(a({},hn,{key:function(e){if(e.key){var t=_n[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=an(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?En[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:An,charCode:function(e){return"keypress"===e.type?an(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?an(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),Tn=un(a({},vn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Nn=un(a({},hn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:An})),jn=un(a({},dn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Pn=un(a({},vn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Rn=[9,13,27,32],In=d&&"CompositionEvent"in window,Ln=null;d&&"documentMode"in document&&(Ln=document.documentMode);var Mn=d&&"TextEvent"in window&&!Ln,Bn=d&&(!In||Ln&&8<Ln&&11>=Ln),Dn=String.fromCharCode(32),Un=!1;function Fn(e,t){switch(e){case"keyup":return-1!==Rn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Vn=!1,Hn={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 Wn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Hn[e.type]:"textarea"===t}function qn(e,t,n,r){je(r),0<(t=Ir(t,"onChange")).length&&(n=new pn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Gn=null,Zn=null;function Yn(e){Or(e,0)}function $n(e){if(Q(ti(e)))return e}function Kn(e,t){if("change"===e)return t}var Xn=!1;if(d){var Qn;if(d){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"==typeof er.oninput}Qn=Jn}else Qn=!1;Xn=Qn&&(!document.documentMode||9<document.documentMode)}function tr(){Gn&&(Gn.detachEvent("onpropertychange",nr),Zn=Gn=null)}function nr(e){if("value"===e.propertyName&&$n(Zn)){var t=[];if(qn(t,Zn,e,Oe(e)),e=Yn,Be)e(t);else{Be=!0;try{Re(e,t)}finally{Be=!1,Ue()}}}}function rr(e,t,n){"focusin"===e?(tr(),Zn=n,(Gn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return $n(Zn)}function ar(e,t){if("click"===e)return $n(t)}function or(e,t){if("input"===e||"change"===e)return $n(t)}var sr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},ur=Object.prototype.hasOwnProperty;function lr(e,t){if(sr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!ur.call(t,n[r])||!sr(e[n[r]],t[n[r]]))return!1;return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function fr(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pr(){for(var e=window,t=J();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=J((e=t.contentWindow).document)}return t}function hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var mr=d&&"documentMode"in document&&11>=document.documentMode,vr=null,yr=null,gr=null,br=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==vr||vr!==J(r)||(r="selectionStart"in(r=vr)&&hr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},gr&&lr(gr,r)||(gr=r,0<(r=Ir(yr,"onSelect")).length&&(t=new pn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=vr)))}Lt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Lt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Lt(It,2);for(var xr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),kr=0;kr<xr.length;kr++)Rt.set(xr[kr],0);f("onMouseEnter",["mouseout","mouseover"]),f("onMouseLeave",["mouseout","mouseover"]),f("onPointerEnter",["pointerout","pointerover"]),f("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _r="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Er=new Set("cancel close invalid load scroll toggle".split(" ").concat(_r));function Sr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,a,o,u,l){if($e.apply(this,arguments),We){if(!We)throw Error(s(198));var c=qe;We=!1,qe=null,Ge||(Ge=!0,Ze=c)}}(r,t,void 0,e),e.currentTarget=null}function Or(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],u=s.instance,l=s.currentTarget;if(s=s.listener,u!==a&&i.isPropagationStopped())break e;Sr(i,s,l),a=u}else for(o=0;o<r.length;o++){if(u=(s=r[o]).instance,l=s.currentTarget,s=s.listener,u!==a&&i.isPropagationStopped())break e;Sr(i,s,l),a=u}}}if(Ge)throw e=Ze,Ge=!1,Ze=null,e}function Ar(e,t){var n=ri(t),r=e+"__bubble";n.has(r)||(jr(t,e,2,!1),n.add(r))}var Cr="_reactListening"+Math.random().toString(36).slice(2);function Tr(e){e[Cr]||(e[Cr]=!0,u.forEach((function(t){Er.has(t)||Nr(t,!1,e,null),Nr(t,!0,e,null)})))}function Nr(e,t,n,r){var i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,a=n;if("selectionchange"===e&&9!==n.nodeType&&(a=n.ownerDocument),null!==r&&!t&&Er.has(e)){if("scroll"!==e)return;i|=2,a=r}var o=ri(a),s=e+"__"+(t?"capture":"bubble");o.has(s)||(t&&(i|=4),jr(a,e,i,t),o.add(s))}function jr(e,t,n,r){var i=Rt.get(t);switch(void 0===i?2:i){case 0:i=Kt;break;case 1:i=Xt;break;default:i=Qt}n=i.bind(null,t,n,e),i=void 0,!ze||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Pr(e,t,n,r,i){var a=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var o=r.tag;if(3===o||4===o){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===o)for(o=r.return;null!==o;){var u=o.tag;if((3===u||4===u)&&((u=o.stateNode.containerInfo)===i||8===u.nodeType&&u.parentNode===i))return;o=o.return}for(;null!==s;){if(null===(o=Jr(s)))return;if(5===(u=o.tag)||6===u){r=a=o;continue e}s=s.parentNode}}r=r.return}!function(e,t,n){if(De)return e();De=!0;try{Me(e,t,n)}finally{De=!1,Ue()}}((function(){var r=a,i=Oe(n),o=[];e:{var s=Pt.get(e);if(void 0!==s){var u=pn,l=e;switch(e){case"keypress":if(0===an(n))break e;case"keydown":case"keyup":u=Cn;break;case"focusin":l="focus",u=bn;break;case"focusout":l="blur",u=bn;break;case"beforeblur":case"afterblur":u=bn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=yn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=Nn;break;case Ct:case Tt:case Nt:u=wn;break;case jt:u=jn;break;case"scroll":u=mn;break;case"wheel":u=Pn;break;case"copy":case"cut":case"paste":u=xn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=Tn}var c=0!=(4&t),f=!c&&"scroll"===e,d=c?null!==s?s+"Capture":null:s;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==d&&null!=(m=Fe(h,d))&&c.push(Rr(h,m,p))),f)break;h=h.return}0<c.length&&(s=new u(s,l,null,n,i),o.push({event:s,listeners:c}))}}if(0==(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||0!=(16&t)||!(l=n.relatedTarget||n.fromElement)||!Jr(l)&&!l[Xr])&&(u||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,u?(u=r,null!==(l=(l=n.relatedTarget||n.toElement)?Jr(l):null)&&(l!==(f=Ke(l))||5!==l.tag&&6!==l.tag)&&(l=null)):(u=null,l=r),u!==l)){if(c=yn,m="onMouseLeave",d="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Tn,m="onPointerLeave",d="onPointerEnter",h="pointer"),f=null==u?s:ti(u),p=null==l?s:ti(l),(s=new c(m,h+"leave",u,n,i)).target=f,s.relatedTarget=p,m=null,Jr(i)===r&&((c=new c(d,h+"enter",l,n,i)).target=p,c.relatedTarget=f,m=c),f=m,u&&l)e:{for(d=l,h=0,p=c=u;p;p=Lr(p))h++;for(p=0,m=d;m;m=Lr(m))p++;for(;0<h-p;)c=Lr(c),h--;for(;0<p-h;)d=Lr(d),p--;for(;h--;){if(c===d||null!==d&&c===d.alternate)break e;c=Lr(c),d=Lr(d)}c=null}else c=null;null!==u&&Mr(o,s,u,c,!1),null!==l&&null!==f&&Mr(o,f,l,c,!0)}if("select"===(u=(s=r?ti(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===u&&"file"===s.type)var v=Kn;else if(Wn(s))if(Xn)v=or;else{v=ir;var y=rr}else(u=s.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(v=ar);switch(v&&(v=v(e,r))?qn(o,v,n,i):(y&&y(e,s,r),"focusout"===e&&(y=s._wrapperState)&&y.controlled&&"number"===s.type&&ae(s,"number",s.value)),y=r?ti(r):window,e){case"focusin":(Wn(y)||"true"===y.contentEditable)&&(vr=y,yr=r,gr=null);break;case"focusout":gr=yr=vr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,wr(o,n,i);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":wr(o,n,i)}var g;if(In)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Vn?Fn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Bn&&"ko"!==n.locale&&(Vn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Vn&&(g=rn()):(tn="value"in(en=i)?en.value:en.textContent,Vn=!0)),0<(y=Ir(r,b)).length&&(b=new kn(b,e,null,n,i),o.push({event:b,listeners:y}),(g||null!==(g=zn(n)))&&(b.data=g))),(g=Mn?function(e,t){switch(e){case"compositionend":return zn(t);case"keypress":return 32!==t.which?null:(Un=!0,Dn);case"textInput":return(e=t.data)===Dn&&Un?null:e;default:return null}}(e,n):function(e,t){if(Vn)return"compositionend"===e||!In&&Fn(e,t)?(e=rn(),nn=tn=en=null,Vn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Bn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=Ir(r,"onBeforeInput")).length&&(i=new kn("onBeforeInput","beforeinput",null,n,i),o.push({event:i,listeners:r}),i.data=g)}Or(o,t)}))}function Rr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ir(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,a=i.stateNode;5===i.tag&&null!==a&&(i=a,null!=(a=Fe(e,n))&&r.unshift(Rr(e,a,i)),null!=(a=Fe(e,t))&&r.push(Rr(e,a,i))),e=e.return}return r}function Lr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Mr(e,t,n,r,i){for(var a=t._reactName,o=[];null!==n&&n!==r;){var s=n,u=s.alternate,l=s.stateNode;if(null!==u&&u===r)break;5===s.tag&&null!==l&&(s=l,i?null!=(u=Fe(n,a))&&o.unshift(Rr(n,u,s)):i||null!=(u=Fe(n,a))&&o.push(Rr(n,u,s))),n=n.return}0!==o.length&&e.push({event:t,listeners:o})}function Br(){}var Dr=null,Ur=null;function Fr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function zr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Vr="function"==typeof setTimeout?setTimeout:void 0,Hr="function"==typeof clearTimeout?clearTimeout:void 0;function Wr(e){(1===e.nodeType||9===e.nodeType&&null!=(e=e.body))&&(e.textContent="")}function qr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Gr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Zr=0,Yr=Math.random().toString(36).slice(2),$r="__reactFiber$"+Yr,Kr="__reactProps$"+Yr,Xr="__reactContainer$"+Yr,Qr="__reactEvents$"+Yr;function Jr(e){var t=e[$r];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Xr]||n[$r]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Gr(e);null!==e;){if(n=e[$r])return n;e=Gr(e)}return t}n=(e=n).parentNode}return null}function ei(e){return!(e=e[$r]||e[Xr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ti(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(s(33))}function ni(e){return e[Kr]||null}function ri(e){var t=e[Qr];return void 0===t&&(t=e[Qr]=new Set),t}var ii=[],ai=-1;function oi(e){return{current:e}}function si(e){0>ai||(e.current=ii[ai],ii[ai]=null,ai--)}function ui(e,t){ai++,ii[ai]=e.current,e.current=t}var li={},ci=oi(li),fi=oi(!1),di=li;function pi(e,t){var n=e.type.contextTypes;if(!n)return li;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,a={};for(i in n)a[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function hi(e){return null!==(e=e.childContextTypes)&&void 0!==e}function mi(){si(fi),si(ci)}function vi(e,t,n){if(ci.current!==li)throw Error(s(168));ui(ci,t),ui(fi,n)}function yi(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(s(108,Y(t)||"Unknown",i));return a({},n,r)}function gi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||li,di=ci.current,ui(ci,e),ui(fi,fi.current),!0}function bi(e,t,n){var r=e.stateNode;if(!r)throw Error(s(169));n?(e=yi(e,t,di),r.__reactInternalMemoizedMergedChildContext=e,si(fi),si(ci),ui(ci,e)):si(fi),ui(fi,n)}var wi=null,xi=null,ki=o.unstable_runWithPriority,_i=o.unstable_scheduleCallback,Ei=o.unstable_cancelCallback,Si=o.unstable_shouldYield,Oi=o.unstable_requestPaint,Ai=o.unstable_now,Ci=o.unstable_getCurrentPriorityLevel,Ti=o.unstable_ImmediatePriority,Ni=o.unstable_UserBlockingPriority,ji=o.unstable_NormalPriority,Pi=o.unstable_LowPriority,Ri=o.unstable_IdlePriority,Ii={},Li=void 0!==Oi?Oi:function(){},Mi=null,Bi=null,Di=!1,Ui=Ai(),Fi=1e4>Ui?Ai:function(){return Ai()-Ui};function zi(){switch(Ci()){case Ti:return 99;case Ni:return 98;case ji:return 97;case Pi:return 96;case Ri:return 95;default:throw Error(s(332))}}function Vi(e){switch(e){case 99:return Ti;case 98:return Ni;case 97:return ji;case 96:return Pi;case 95:return Ri;default:throw Error(s(332))}}function Hi(e,t){return e=Vi(e),ki(e,t)}function Wi(e,t,n){return e=Vi(e),_i(e,t,n)}function qi(){if(null!==Bi){var e=Bi;Bi=null,Ei(e)}Gi()}function Gi(){if(!Di&&null!==Mi){Di=!0;var e=0;try{var t=Mi;Hi(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Mi=null}catch(t){throw null!==Mi&&(Mi=Mi.slice(e+1)),_i(Ti,qi),t}finally{Di=!1}}}var Zi=k.ReactCurrentBatchConfig;function Yi(e,t){if(e&&e.defaultProps){for(var n in t=a({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var $i=oi(null),Ki=null,Xi=null,Qi=null;function Ji(){Qi=Xi=Ki=null}function ea(e){var t=$i.current;si($i),e.type._context._currentValue=t}function ta(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function na(e,t){Ki=e,Qi=Xi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Io=!0),e.firstContext=null)}function ra(e,t){if(Qi!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Qi=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Xi){if(null===Ki)throw Error(s(308));Xi=t,Ki.dependencies={lanes:0,firstContext:t,responders:null}}else Xi=Xi.next=t;return e._currentValue}var ia=!1;function aa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function oa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function sa(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ua(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function la(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?i=a=o:a=a.next=o,n=n.next}while(null!==n);null===a?i=a=t:a=a.next=t}else i=a=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ca(e,t,n,r){var i=e.updateQueue;ia=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,u=i.shared.pending;if(null!==u){i.shared.pending=null;var l=u,c=l.next;l.next=null,null===s?o=c:s.next=c,s=l;var f=e.alternate;if(null!==f){var d=(f=f.updateQueue).lastBaseUpdate;d!==s&&(null===d?f.firstBaseUpdate=c:d.next=c,f.lastBaseUpdate=l)}}if(null!==o){for(d=i.baseState,s=0,f=c=l=null;;){u=o.lane;var p=o.eventTime;if((r&u)===u){null!==f&&(f=f.next={eventTime:p,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var h=e,m=o;switch(u=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(p,d,u);break e}d=h;break e;case 3:h.flags=-4097&h.flags|64;case 0:if(null===(u="function"==typeof(h=m.payload)?h.call(p,d,u):h)||void 0===u)break e;d=a({},d,u);break e;case 2:ia=!0}}null!==o.callback&&(e.flags|=32,null===(u=i.effects)?i.effects=[o]:u.push(o))}else p={eventTime:p,lane:u,tag:o.tag,payload:o.payload,callback:o.callback,next:null},null===f?(c=f=p,l=d):f=f.next=p,s|=u;if(null===(o=o.next)){if(null===(u=i.shared.pending))break;o=u.next,u.next=null,i.lastBaseUpdate=u,i.shared.pending=null}}null===f&&(l=d),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=f,Ms|=s,e.lanes=s,e.memoizedState=d}}function fa(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(s(191,i));i.call(r)}}}var da=(new i.Component).refs;function pa(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:a({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ha={isMounted:function(e){return!!(e=e._reactInternals)&&Ke(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=su(),i=uu(e),a=sa(r,i);a.payload=t,null!=n&&(a.callback=n),ua(e,a),lu(e,i,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=su(),i=uu(e),a=sa(r,i);a.tag=1,a.payload=t,null!=n&&(a.callback=n),ua(e,a),lu(e,i,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=su(),r=uu(e),i=sa(n,r);i.tag=2,null!=t&&(i.callback=t),ua(e,i),lu(e,r,n)}};function ma(e,t,n,r,i,a,o){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,o):!(t.prototype&&t.prototype.isPureReactComponent&&lr(n,r)&&lr(i,a))}function va(e,t,n){var r=!1,i=li,a=t.contextType;return"object"==typeof a&&null!==a?a=ra(a):(i=hi(t)?di:ci.current,a=(r=null!==(r=t.contextTypes)&&void 0!==r)?pi(e,i):li),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ha,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function ya(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ha.enqueueReplaceState(t,t.state,null)}function ga(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=da,aa(e);var a=t.contextType;"object"==typeof a&&null!==a?i.context=ra(a):(a=hi(t)?di:ci.current,i.context=pi(e,a)),ca(e,n,i,r),i.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(pa(e,t,a,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&ha.enqueueReplaceState(i,i.state,null),ca(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4)}var ba=Array.isArray;function wa(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(s(309));var r=n.stateNode}if(!r)throw Error(s(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=r.refs;t===da&&(t=r.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}if("string"!=typeof e)throw Error(s(284));if(!n._owner)throw Error(s(290,e))}return e}function xa(e,t){if("textarea"!==e.type)throw Error(s(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function ka(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=zu(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function o(t){return e&&null===t.alternate&&(t.flags=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=qu(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function l(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=wa(e,t,n),r.return=e,r):((r=Vu(n.type,n.key,n.props,null,e.mode,r)).ref=wa(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Gu(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function f(e,t,n,r,a){return null===t||7!==t.tag?((t=Hu(n,e.mode,r,a)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=qu(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case _:return(n=Vu(t.type,t.key,t.props,null,e.mode,n)).ref=wa(e,null,t),n.return=e,n;case E:return(t=Gu(t,e.mode,n)).return=e,t}if(ba(t)||H(t))return(t=Hu(t,e.mode,n,null)).return=e,t;xa(e,t)}return null}function p(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:u(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case _:return n.key===i?n.type===S?f(e,t,n.props.children,r,i):l(e,t,n,r):null;case E:return n.key===i?c(e,t,n,r):null}if(ba(n)||H(n))return null!==i?null:f(e,t,n,r,null);xa(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r||"number"==typeof r)return u(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case _:return e=e.get(null===r.key?n:r.key)||null,r.type===S?f(t,e,r.props.children,i,r.key):l(t,e,r,i);case E:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(ba(r)||H(r))return f(t,e=e.get(n)||null,r,i,null);xa(t,r)}return null}function m(i,o,s,u){for(var l=null,c=null,f=o,m=o=0,v=null;null!==f&&m<s.length;m++){f.index>m?(v=f,f=null):v=f.sibling;var y=p(i,f,s[m],u);if(null===y){null===f&&(f=v);break}e&&f&&null===y.alternate&&t(i,f),o=a(y,o,m),null===c?l=y:c.sibling=y,c=y,f=v}if(m===s.length)return n(i,f),l;if(null===f){for(;m<s.length;m++)null!==(f=d(i,s[m],u))&&(o=a(f,o,m),null===c?l=f:c.sibling=f,c=f);return l}for(f=r(i,f);m<s.length;m++)null!==(v=h(f,i,m,s[m],u))&&(e&&null!==v.alternate&&f.delete(null===v.key?m:v.key),o=a(v,o,m),null===c?l=v:c.sibling=v,c=v);return e&&f.forEach((function(e){return t(i,e)})),l}function v(i,o,u,l){var c=H(u);if("function"!=typeof c)throw Error(s(150));if(null==(u=c.call(u)))throw Error(s(151));for(var f=c=null,m=o,v=o=0,y=null,g=u.next();null!==m&&!g.done;v++,g=u.next()){m.index>v?(y=m,m=null):y=m.sibling;var b=p(i,m,g.value,l);if(null===b){null===m&&(m=y);break}e&&m&&null===b.alternate&&t(i,m),o=a(b,o,v),null===f?c=b:f.sibling=b,f=b,m=y}if(g.done)return n(i,m),c;if(null===m){for(;!g.done;v++,g=u.next())null!==(g=d(i,g.value,l))&&(o=a(g,o,v),null===f?c=g:f.sibling=g,f=g);return c}for(m=r(i,m);!g.done;v++,g=u.next())null!==(g=h(m,i,v,g.value,l))&&(e&&null!==g.alternate&&m.delete(null===g.key?v:g.key),o=a(g,o,v),null===f?c=g:f.sibling=g,f=g);return e&&m.forEach((function(e){return t(i,e)})),c}return function(e,r,a,u){var l="object"==typeof a&&null!==a&&a.type===S&&null===a.key;l&&(a=a.props.children);var c="object"==typeof a&&null!==a;if(c)switch(a.$$typeof){case _:e:{for(c=a.key,l=r;null!==l;){if(l.key===c){if(7===l.tag){if(a.type===S){n(e,l.sibling),(r=i(l,a.props.children)).return=e,e=r;break e}}else if(l.elementType===a.type){n(e,l.sibling),(r=i(l,a.props)).ref=wa(e,l,a),r.return=e,e=r;break e}n(e,l);break}t(e,l),l=l.sibling}a.type===S?((r=Hu(a.props.children,e.mode,u,a.key)).return=e,e=r):((u=Vu(a.type,a.key,a.props,null,e.mode,u)).ref=wa(e,r,a),u.return=e,e=u)}return o(e);case E:e:{for(l=a.key;null!==r;){if(r.key===l){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),(r=i(r,a.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Gu(a,e.mode,u)).return=e,e=r}return o(e)}if("string"==typeof a||"number"==typeof a)return a=""+a,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,a)).return=e,e=r):(n(e,r),(r=qu(a,e.mode,u)).return=e,e=r),o(e);if(ba(a))return m(e,r,a,u);if(H(a))return v(e,r,a,u);if(c&&xa(e,a),void 0===a&&!l)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(s(152,Y(e.type)||"Component"))}return n(e,r)}}var _a=ka(!0),Ea=ka(!1),Sa={},Oa=oi(Sa),Aa=oi(Sa),Ca=oi(Sa);function Ta(e){if(e===Sa)throw Error(s(174));return e}function Na(e,t){switch(ui(Ca,t),ui(Aa,e),ui(Oa,Sa),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:he(null,"");break;default:t=he(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}si(Oa),ui(Oa,t)}function ja(){si(Oa),si(Aa),si(Ca)}function Pa(e){Ta(Ca.current);var t=Ta(Oa.current),n=he(t,e.type);t!==n&&(ui(Aa,e),ui(Oa,n))}function Ra(e){Aa.current===e&&(si(Oa),si(Aa))}var Ia=oi(0);function La(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ma=null,Ba=null,Da=!1;function Ua(e,t){var n=Uu(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Fa(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function za(e){if(Da){var t=Ba;if(t){var n=t;if(!Fa(e,t)){if(!(t=qr(n.nextSibling))||!Fa(e,t))return e.flags=-1025&e.flags|2,Da=!1,void(Ma=e);Ua(Ma,n)}Ma=e,Ba=qr(t.firstChild)}else e.flags=-1025&e.flags|2,Da=!1,Ma=e}}function Va(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Ma=e}function Ha(e){if(e!==Ma)return!1;if(!Da)return Va(e),Da=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!zr(t,e.memoizedProps))for(t=Ba;t;)Ua(e,t),t=qr(t.nextSibling);if(Va(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(s(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Ba=qr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Ba=null}}else Ba=Ma?qr(e.stateNode.nextSibling):null;return!0}function Wa(){Ba=Ma=null,Da=!1}var qa=[];function Ga(){for(var e=0;e<qa.length;e++)qa[e]._workInProgressVersionPrimary=null;qa.length=0}var Za=k.ReactCurrentDispatcher,Ya=k.ReactCurrentBatchConfig,$a=0,Ka=null,Xa=null,Qa=null,Ja=!1,eo=!1;function to(){throw Error(s(321))}function no(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function ro(e,t,n,r,i,a){if($a=a,Ka=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Za.current=null===e||null===e.memoizedState?No:jo,e=n(r,i),eo){a=0;do{if(eo=!1,!(25>a))throw Error(s(301));a+=1,Qa=Xa=null,t.updateQueue=null,Za.current=Po,e=n(r,i)}while(eo)}if(Za.current=To,t=null!==Xa&&null!==Xa.next,$a=0,Qa=Xa=Ka=null,Ja=!1,t)throw Error(s(300));return e}function io(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Qa?Ka.memoizedState=Qa=e:Qa=Qa.next=e,Qa}function ao(){if(null===Xa){var e=Ka.alternate;e=null!==e?e.memoizedState:null}else e=Xa.next;var t=null===Qa?Ka.memoizedState:Qa.next;if(null!==t)Qa=t,Xa=e;else{if(null===e)throw Error(s(310));e={memoizedState:(Xa=e).memoizedState,baseState:Xa.baseState,baseQueue:Xa.baseQueue,queue:Xa.queue,next:null},null===Qa?Ka.memoizedState=Qa=e:Qa=Qa.next=e}return Qa}function oo(e,t){return"function"==typeof t?t(e):t}function so(e){var t=ao(),n=t.queue;if(null===n)throw Error(s(311));n.lastRenderedReducer=e;var r=Xa,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var o=i.next;i.next=a.next,a.next=o}r.baseQueue=i=a,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var u=o=a=null,l=i;do{var c=l.lane;if(($a&c)===c)null!==u&&(u=u.next={lane:0,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),r=l.eagerReducer===e?l.eagerState:e(r,l.action);else{var f={lane:c,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};null===u?(o=u=f,a=r):u=u.next=f,Ka.lanes|=c,Ms|=c}l=l.next}while(null!==l&&l!==i);null===u?a=r:u.next=o,sr(r,t.memoizedState)||(Io=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=u,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function uo(e){var t=ao(),n=t.queue;if(null===n)throw Error(s(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var o=i=i.next;do{a=e(a,o.action),o=o.next}while(o!==i);sr(a,t.memoizedState)||(Io=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function lo(e,t,n){var r=t._getVersion;r=r(t._source);var i=t._workInProgressVersionPrimary;if(null!==i?e=i===r:(e=e.mutableReadLanes,(e=($a&e)===e)&&(t._workInProgressVersionPrimary=r,qa.push(t))),e)return n(t._source);throw qa.push(t),Error(s(350))}function co(e,t,n,r){var i=Cs;if(null===i)throw Error(s(349));var a=t._getVersion,o=a(t._source),u=Za.current,l=u.useState((function(){return lo(i,t,n)})),c=l[1],f=l[0];l=Qa;var d=e.memoizedState,p=d.refs,h=p.getSnapshot,m=d.source;d=d.subscribe;var v=Ka;return e.memoizedState={refs:p,source:t,subscribe:r},u.useEffect((function(){p.getSnapshot=n,p.setSnapshot=c;var e=a(t._source);if(!sr(o,e)){e=n(t._source),sr(f,e)||(c(e),e=uu(v),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,s=e;0<s;){var u=31-Wt(s),l=1<<u;r[u]|=e,s&=~l}}}),[n,t,r]),u.useEffect((function(){return r(t._source,(function(){var e=p.getSnapshot,n=p.setSnapshot;try{n(e(t._source));var r=uu(v);i.mutableReadLanes|=r&i.pendingLanes}catch(e){n((function(){throw e}))}}))}),[t,r]),sr(h,n)&&sr(m,t)&&sr(d,r)||((e={pending:null,dispatch:null,lastRenderedReducer:oo,lastRenderedState:f}).dispatch=c=Co.bind(null,Ka,e),l.queue=e,l.baseQueue=null,f=lo(i,t,n),l.memoizedState=l.baseState=f),f}function fo(e,t,n){return co(ao(),e,t,n)}function po(e){var t=io();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:oo,lastRenderedState:e}).dispatch=Co.bind(null,Ka,e),[t.memoizedState,e]}function ho(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Ka.updateQueue)?(t={lastEffect:null},Ka.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function mo(e){return e={current:e},io().memoizedState=e}function vo(){return ao().memoizedState}function yo(e,t,n,r){var i=io();Ka.flags|=e,i.memoizedState=ho(1|t,n,void 0,void 0===r?null:r)}function go(e,t,n,r){var i=ao();r=void 0===r?null:r;var a=void 0;if(null!==Xa){var o=Xa.memoizedState;if(a=o.destroy,null!==r&&no(r,o.deps))return void ho(t,n,a,r)}Ka.flags|=e,i.memoizedState=ho(1|t,n,a,r)}function bo(e,t){return yo(516,4,e,t)}function wo(e,t){return go(516,4,e,t)}function xo(e,t){return go(4,2,e,t)}function ko(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function _o(e,t,n){return n=null!=n?n.concat([e]):null,go(4,2,ko.bind(null,t,e),n)}function Eo(){}function So(e,t){var n=ao();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&no(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Oo(e,t){var n=ao();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&no(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ao(e,t){var n=zi();Hi(98>n?98:n,(function(){e(!0)})),Hi(97<n?97:n,(function(){var n=Ya.transition;Ya.transition=1;try{e(!1),t()}finally{Ya.transition=n}}))}function Co(e,t,n){var r=su(),i=uu(e),a={lane:i,action:n,eagerReducer:null,eagerState:null,next:null},o=t.pending;if(null===o?a.next=a:(a.next=o.next,o.next=a),t.pending=a,o=e.alternate,e===Ka||null!==o&&o===Ka)eo=Ja=!0;else{if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var s=t.lastRenderedState,u=o(s,n);if(a.eagerReducer=o,a.eagerState=u,sr(u,s))return}catch(e){}lu(e,i,r)}}var To={readContext:ra,useCallback:to,useContext:to,useEffect:to,useImperativeHandle:to,useLayoutEffect:to,useMemo:to,useReducer:to,useRef:to,useState:to,useDebugValue:to,useDeferredValue:to,useTransition:to,useMutableSource:to,useOpaqueIdentifier:to,unstable_isNewReconciler:!1},No={readContext:ra,useCallback:function(e,t){return io().memoizedState=[e,void 0===t?null:t],e},useContext:ra,useEffect:bo,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,yo(4,2,ko.bind(null,t,e),n)},useLayoutEffect:function(e,t){return yo(4,2,e,t)},useMemo:function(e,t){var n=io();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=io();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Co.bind(null,Ka,e),[r.memoizedState,e]},useRef:mo,useState:po,useDebugValue:Eo,useDeferredValue:function(e){var t=po(e),n=t[0],r=t[1];return bo((function(){var t=Ya.transition;Ya.transition=1;try{r(e)}finally{Ya.transition=t}}),[e]),n},useTransition:function(){var e=po(!1),t=e[0];return mo(e=Ao.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=io();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},co(r,e,t,n)},useOpaqueIdentifier:function(){if(Da){var e=!1,t=function(e){return{$$typeof:M,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Zr++).toString(36))),Error(s(355))})),n=po(t)[1];return 0==(2&Ka.mode)&&(Ka.flags|=516,ho(5,(function(){n("r:"+(Zr++).toString(36))}),void 0,null)),t}return po(t="r:"+(Zr++).toString(36)),t},unstable_isNewReconciler:!1},jo={readContext:ra,useCallback:So,useContext:ra,useEffect:wo,useImperativeHandle:_o,useLayoutEffect:xo,useMemo:Oo,useReducer:so,useRef:vo,useState:function(){return so(oo)},useDebugValue:Eo,useDeferredValue:function(e){var t=so(oo),n=t[0],r=t[1];return wo((function(){var t=Ya.transition;Ya.transition=1;try{r(e)}finally{Ya.transition=t}}),[e]),n},useTransition:function(){var e=so(oo)[0];return[vo().current,e]},useMutableSource:fo,useOpaqueIdentifier:function(){return so(oo)[0]},unstable_isNewReconciler:!1},Po={readContext:ra,useCallback:So,useContext:ra,useEffect:wo,useImperativeHandle:_o,useLayoutEffect:xo,useMemo:Oo,useReducer:uo,useRef:vo,useState:function(){return uo(oo)},useDebugValue:Eo,useDeferredValue:function(e){var t=uo(oo),n=t[0],r=t[1];return wo((function(){var t=Ya.transition;Ya.transition=1;try{r(e)}finally{Ya.transition=t}}),[e]),n},useTransition:function(){var e=uo(oo)[0];return[vo().current,e]},useMutableSource:fo,useOpaqueIdentifier:function(){return uo(oo)[0]},unstable_isNewReconciler:!1},Ro=k.ReactCurrentOwner,Io=!1;function Lo(e,t,n,r){t.child=null===e?Ea(t,null,n,r):_a(t,e.child,n,r)}function Mo(e,t,n,r,i){n=n.render;var a=t.ref;return na(t,i),r=ro(e,t,n,r,a,i),null===e||Io?(t.flags|=1,Lo(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,es(e,t,i))}function Bo(e,t,n,r,i,a){if(null===e){var o=n.type;return"function"!=typeof o||Fu(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Vu(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Do(e,t,o,r,i,a))}return o=e.child,0==(i&a)&&(i=o.memoizedProps,(n=null!==(n=n.compare)?n:lr)(i,r)&&e.ref===t.ref)?es(e,t,a):(t.flags|=1,(e=zu(o,r)).ref=t.ref,e.return=t,t.child=e)}function Do(e,t,n,r,i,a){if(null!==e&&lr(e.memoizedProps,r)&&e.ref===t.ref){if(Io=!1,0==(a&i))return t.lanes=e.lanes,es(e,t,a);0!=(16384&e.flags)&&(Io=!0)}return zo(e,t,n,r,a)}function Uo(e,t,n){var r=t.pendingProps,i=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0==(4&t.mode))t.memoizedState={baseLanes:0},yu(t,n);else{if(0==(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},yu(t,e),null;t.memoizedState={baseLanes:0},yu(t,null!==a?a.baseLanes:n)}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,yu(t,r);return Lo(e,t,i,n),t.child}function Fo(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function zo(e,t,n,r,i){var a=hi(n)?di:ci.current;return a=pi(t,a),na(t,i),n=ro(e,t,n,r,a,i),null===e||Io?(t.flags|=1,Lo(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,es(e,t,i))}function Vo(e,t,n,r,i){if(hi(n)){var a=!0;gi(t)}else a=!1;if(na(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),va(t,n,r),ga(t,n,r,i),r=!0;else if(null===e){var o=t.stateNode,s=t.memoizedProps;o.props=s;var u=o.context,l=n.contextType;l="object"==typeof l&&null!==l?ra(l):pi(t,l=hi(n)?di:ci.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof o.getSnapshotBeforeUpdate;f||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(s!==r||u!==l)&&ya(t,o,r,l),ia=!1;var d=t.memoizedState;o.state=d,ca(t,r,o,i),u=t.memoizedState,s!==r||d!==u||fi.current||ia?("function"==typeof c&&(pa(t,n,c,r),u=t.memoizedState),(s=ia||ma(t,n,s,r,d,u,l))?(f||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.flags|=4)):("function"==typeof o.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=l,r=s):("function"==typeof o.componentDidMount&&(t.flags|=4),r=!1)}else{o=t.stateNode,oa(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:Yi(t.type,s),o.props=l,f=t.pendingProps,d=o.context,u="object"==typeof(u=n.contextType)&&null!==u?ra(u):pi(t,u=hi(n)?di:ci.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(s!==f||d!==u)&&ya(t,o,r,u),ia=!1,d=t.memoizedState,o.state=d,ca(t,r,o,i);var h=t.memoizedState;s!==f||d!==h||fi.current||ia?("function"==typeof p&&(pa(t,n,p,r),h=t.memoizedState),(l=ia||ma(t,n,l,r,d,h,u))?(c||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,h,u),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,h,u)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof o.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=h),o.props=r,o.state=h,o.context=u,r=l):("function"!=typeof o.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),r=!1)}return Ho(e,t,n,r,a,i)}function Ho(e,t,n,r,i,a){Fo(e,t);var o=0!=(64&t.flags);if(!r&&!o)return i&&bi(t,n,!1),es(e,t,a);r=t.stateNode,Ro.current=t;var s=o&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&o?(t.child=_a(t,e.child,null,a),t.child=_a(t,null,s,a)):Lo(e,t,s,a),t.memoizedState=r.state,i&&bi(t,n,!0),t.child}function Wo(e){var t=e.stateNode;t.pendingContext?vi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&vi(0,t.context,!1),Na(e,t.containerInfo)}var qo,Go,Zo,Yo={dehydrated:null,retryLane:0};function $o(e,t,n){var r,i=t.pendingProps,a=Ia.current,o=!1;return(r=0!=(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(o=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(a|=1),ui(Ia,1&a),null===e?(void 0!==i.fallback&&za(t),e=i.children,a=i.fallback,o?(e=Ko(t,e,a,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Yo,e):"number"==typeof i.unstable_expectedLoadTime?(e=Ko(t,e,a,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Yo,t.lanes=33554432,e):((n=Wu({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,o?(i=function(e,t,n,r,i){var a=t.mode,o=e.child;e=o.sibling;var s={mode:"hidden",children:n};return 0==(2&a)&&t.child!==o?((n=t.child).childLanes=0,n.pendingProps=s,null!==(o=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=o,o.nextEffect=null):t.firstEffect=t.lastEffect=null):n=zu(o,s),null!==e?r=zu(e,r):(r=Hu(r,a,i,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}(e,t,i.children,i.fallback,n),o=t.child,a=e.child.memoizedState,o.memoizedState=null===a?{baseLanes:n}:{baseLanes:a.baseLanes|n},o.childLanes=e.childLanes&~n,t.memoizedState=Yo,i):(n=function(e,t,n,r){var i=e.child;return e=i.sibling,n=zu(i,{mode:"visible",children:n}),0==(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}(e,t,i.children,n),t.memoizedState=null,n))}function Ko(e,t,n,r){var i=e.mode,a=e.child;return t={mode:"hidden",children:t},0==(2&i)&&null!==a?(a.childLanes=0,a.pendingProps=t):a=Wu(t,i,0,null),n=Hu(n,i,r,null),a.return=e,n.return=e,a.sibling=n,e.child=a,n}function Xo(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),ta(e.return,t)}function Qo(e,t,n,r,i,a){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,lastEffect:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.lastEffect=a)}function Jo(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(Lo(e,t,r.children,n),0!=(2&(r=Ia.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!=(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Xo(e,n);else if(19===e.tag)Xo(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ui(Ia,r),0==(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===La(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Qo(t,!1,i,n,a,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===La(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Qo(t,!0,n,null,a,t.lastEffect);break;case"together":Qo(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function es(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ms|=t.lanes,0!=(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(s(153));if(null!==t.child){for(n=zu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=zu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function ts(e,t){if(!Da)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ns(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return hi(t.type)&&mi(),null;case 3:return ja(),si(fi),si(ci),Ga(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Ha(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:Ra(t);var i=Ta(Ca.current);if(n=t.type,null!==e&&null!=t.stateNode)Go(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(s(166));return null}if(e=Ta(Oa.current),Ha(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[$r]=t,r[Kr]=o,n){case"dialog":Ar("cancel",r),Ar("close",r);break;case"iframe":case"object":case"embed":Ar("load",r);break;case"video":case"audio":for(e=0;e<_r.length;e++)Ar(_r[e],r);break;case"source":Ar("error",r);break;case"img":case"image":case"link":Ar("error",r),Ar("load",r);break;case"details":Ar("toggle",r);break;case"input":te(r,o),Ar("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Ar("invalid",r);break;case"textarea":le(r,o),Ar("invalid",r)}for(var u in Ee(n,o),e=null,o)o.hasOwnProperty(u)&&(i=o[u],"children"===u?"string"==typeof i?r.textContent!==i&&(e=["children",i]):"number"==typeof i&&r.textContent!==""+i&&(e=["children",""+i]):l.hasOwnProperty(u)&&null!=i&&"onScroll"===u&&Ar("scroll",r));switch(n){case"input":X(r),ie(r,o,!0);break;case"textarea":X(r),fe(r);break;case"select":case"option":break;default:"function"==typeof o.onClick&&(r.onclick=Br)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(u=9===i.nodeType?i:i.ownerDocument,e===de&&(e=pe(n)),e===de?"script"===n?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),"select"===n&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[$r]=t,e[Kr]=r,qo(e,t),t.stateNode=e,u=Se(n,r),n){case"dialog":Ar("cancel",e),Ar("close",e),i=r;break;case"iframe":case"object":case"embed":Ar("load",e),i=r;break;case"video":case"audio":for(i=0;i<_r.length;i++)Ar(_r[i],e);i=r;break;case"source":Ar("error",e),i=r;break;case"img":case"image":case"link":Ar("error",e),Ar("load",e),i=r;break;case"details":Ar("toggle",e),i=r;break;case"input":te(e,r),i=ee(e,r),Ar("invalid",e);break;case"option":i=oe(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=a({},r,{value:void 0}),Ar("invalid",e);break;case"textarea":le(e,r),i=ue(e,r),Ar("invalid",e);break;default:i=r}Ee(n,i);var c=i;for(o in c)if(c.hasOwnProperty(o)){var f=c[o];"style"===o?ke(e,f):"dangerouslySetInnerHTML"===o?null!=(f=f?f.__html:void 0)&&ye(e,f):"children"===o?"string"==typeof f?("textarea"!==n||""!==f)&&ge(e,f):"number"==typeof f&&ge(e,""+f):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(l.hasOwnProperty(o)?null!=f&&"onScroll"===o&&Ar("scroll",e):null!=f&&x(e,o,f,u))}switch(n){case"input":X(e),ie(e,r,!1);break;case"textarea":X(e),fe(e);break;case"option":null!=r.value&&e.setAttribute("value",""+$(r.value));break;case"select":e.multiple=!!r.multiple,null!=(o=r.value)?se(e,!!r.multiple,o,!1):null!=r.defaultValue&&se(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Br)}Fr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Zo(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(s(166));n=Ta(Ca.current),Ta(Oa.current),Ha(t)?(r=t.stateNode,n=t.memoizedProps,r[$r]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[$r]=t,t.stateNode=r)}return null;case 13:return si(Ia),r=t.memoizedState,0!=(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Ha(t):n=null!==e.memoizedState,r&&!n&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Ia.current)?0===Rs&&(Rs=3):(0!==Rs&&3!==Rs||(Rs=4),null===Cs||0==(134217727&Ms)&&0==(134217727&Bs)||pu(Cs,Ns))),(r||n)&&(t.flags|=4),null);case 4:return ja(),null===e&&Tr(t.stateNode.containerInfo),null;case 10:return ea(t),null;case 19:if(si(Ia),null===(r=t.memoizedState))return null;if(o=0!=(64&t.flags),null===(u=r.rendering))if(o)ts(r,!1);else{if(0!==Rs||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(u=La(e))){for(t.flags|=64,ts(r,!1),null!==(o=u.updateQueue)&&(t.updateQueue=o,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(o=n).flags&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,null===(u=o.alternate)?(o.childLanes=0,o.lanes=e,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=u.childLanes,o.lanes=u.lanes,o.child=u.child,o.memoizedProps=u.memoizedProps,o.memoizedState=u.memoizedState,o.updateQueue=u.updateQueue,o.type=u.type,e=u.dependencies,o.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ui(Ia,1&Ia.current|2),t.child}e=e.sibling}null!==r.tail&&Fi()>zs&&(t.flags|=64,o=!0,ts(r,!1),t.lanes=33554432)}else{if(!o)if(null!==(e=La(u))){if(t.flags|=64,o=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),ts(r,!0),null===r.tail&&"hidden"===r.tailMode&&!u.alternate&&!Da)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Fi()-r.renderingStartTime>zs&&1073741824!==n&&(t.flags|=64,o=!0,ts(r,!1),t.lanes=33554432);r.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=r.last)?n.sibling=u:t.child=u,r.last=u)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Fi(),n.sibling=null,t=Ia.current,ui(Ia,o?1&t|2:1&t),n):null;case 23:case 24:return gu(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(s(156,t.tag))}function rs(e){switch(e.tag){case 1:hi(e.type)&&mi();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(ja(),si(fi),si(ci),Ga(),0!=(64&(t=e.flags)))throw Error(s(285));return e.flags=-4097&t|64,e;case 5:return Ra(e),null;case 13:return si(Ia),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return si(Ia),null;case 4:return ja(),null;case 10:return ea(e),null;case 23:case 24:return gu(),null;default:return null}}function is(e,t){try{var n="",r=t;do{n+=Z(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i}}function as(e,t){try{r.error(t.value)}catch(e){setTimeout((function(){throw e}))}}qo=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Go=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Ta(Oa.current);var o,s=null;switch(n){case"input":i=ee(e,i),r=ee(e,r),s=[];break;case"option":i=oe(e,i),r=oe(e,r),s=[];break;case"select":i=a({},i,{value:void 0}),r=a({},r,{value:void 0}),s=[];break;case"textarea":i=ue(e,i),r=ue(e,r),s=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Br)}for(f in Ee(n,r),n=null,i)if(!r.hasOwnProperty(f)&&i.hasOwnProperty(f)&&null!=i[f])if("style"===f){var u=i[f];for(o in u)u.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==f&&"children"!==f&&"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(l.hasOwnProperty(f)?s||(s=[]):(s=s||[]).push(f,null));for(f in r){var c=r[f];if(u=null!=i?i[f]:void 0,r.hasOwnProperty(f)&&c!==u&&(null!=c||null!=u))if("style"===f)if(u){for(o in u)!u.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&u[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(s||(s=[]),s.push(f,n)),n=c;else"dangerouslySetInnerHTML"===f?(c=c?c.__html:void 0,u=u?u.__html:void 0,null!=c&&u!==c&&(s=s||[]).push(f,c)):"children"===f?"string"!=typeof c&&"number"!=typeof c||(s=s||[]).push(f,""+c):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&(l.hasOwnProperty(f)?(null!=c&&"onScroll"===f&&Ar("scroll",e),s||u===c||(s=[])):"object"==typeof c&&null!==c&&c.$$typeof===M?c.toString():(s=s||[]).push(f,c))}n&&(s=s||[]).push("style",n);var f=s;(t.updateQueue=f)&&(t.flags|=4)}},Zo=function(e,t,n,r){n!==r&&(t.flags|=4)};var os="function"==typeof WeakMap?WeakMap:Map;function ss(e,t,n){(n=sa(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){qs||(qs=!0,Gs=r),as(0,t)},n}function us(e,t,n){(n=sa(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return as(0,t),r(i)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Zs?Zs=new Set([this]):Zs.add(this),as(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var ls="function"==typeof WeakSet?WeakSet:Set;function cs(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Lu(e,t)}else t.current=null}function fs(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Yi(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Wr(t.stateNode.containerInfo))}throw Error(s(163))}function ds(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var i=e;r=i.next,0!=(4&(i=i.tag))&&0!=(1&i)&&(Pu(n,e),ju(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Yi(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&fa(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}fa(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Fr(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&kt(n)))))}throw Error(s(163))}function ps(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"==typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var i=n.memoizedProps.style;i=null!=i&&i.hasOwnProperty("display")?i.display:null,r.style.display=xe("display",i)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function hs(e,t){if(xi&&"function"==typeof xi.onCommitFiberUnmount)try{xi.onCommitFiberUnmount(wi,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,void 0!==i)if(0!=(4&r))Pu(t,n);else{r=t;try{i()}catch(e){Lu(r,e)}}n=n.next}while(n!==e)}break;case 1:if(cs(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Lu(t,e)}break;case 5:cs(t);break;case 4:ws(e,t)}}function ms(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function vs(e){return 5===e.tag||3===e.tag||4===e.tag}function ys(e){e:{for(var t=e.return;null!==t;){if(vs(t))break e;t=t.return}throw Error(s(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(s(161))}16&n.flags&&(ge(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||vs(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?gs(e,n,t):bs(e,n,t)}function gs(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Br));else if(4!==r&&null!==(e=e.child))for(gs(e,t,n),e=e.sibling;null!==e;)gs(e,t,n),e=e.sibling}function bs(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(bs(e,t,n),e=e.sibling;null!==e;)bs(e,t,n),e=e.sibling}function ws(e,t){for(var n,r,i=t,a=!1;;){if(!a){a=i.return;e:for(;;){if(null===a)throw Error(s(160));switch(n=a.stateNode,a.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}a=a.return}a=!0}if(5===i.tag||6===i.tag){e:for(var o=e,u=i,l=u;;)if(hs(o,l),null!==l.child&&4!==l.tag)l.child.return=l,l=l.child;else{if(l===u)break e;for(;null===l.sibling;){if(null===l.return||l.return===u)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}r?(o=n,u=i.stateNode,8===o.nodeType?o.parentNode.removeChild(u):o.removeChild(u)):n.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(hs(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(a=!1)}i.sibling.return=i.return,i=i.sibling}}function xs(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3==(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:case 12:case 17:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var i=null!==e?e.memoizedProps:r;e=t.type;var a=t.updateQueue;if(t.updateQueue=null,null!==a){for(n[Kr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&ne(n,r),Se(e,i),t=Se(e,r),i=0;i<a.length;i+=2){var o=a[i],u=a[i+1];"style"===o?ke(n,u):"dangerouslySetInnerHTML"===o?ye(n,u):"children"===o?ge(n,u):x(n,o,u,t)}switch(e){case"input":re(n,r);break;case"textarea":ce(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(a=r.value)?se(n,!!r.multiple,a,!1):e!==!!r.multiple&&(null!=r.defaultValue?se(n,!!r.multiple,r.defaultValue,!0):se(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(s(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,kt(n.containerInfo)));case 13:return null!==t.memoizedState&&(Fs=Fi(),ps(t.child,!0)),void ks(t);case 19:return void ks(t);case 23:case 24:return void ps(t,null!==t.memoizedState)}throw Error(s(163))}function ks(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new ls),t.forEach((function(t){var r=Bu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function _s(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&null!==(t=t.memoizedState)&&null===t.dehydrated}var Es=Math.ceil,Ss=k.ReactCurrentDispatcher,Os=k.ReactCurrentOwner,As=0,Cs=null,Ts=null,Ns=0,js=0,Ps=oi(0),Rs=0,Is=null,Ls=0,Ms=0,Bs=0,Ds=0,Us=null,Fs=0,zs=1/0;function Vs(){zs=Fi()+500}var Hs,Ws=null,qs=!1,Gs=null,Zs=null,Ys=!1,$s=null,Ks=90,Xs=[],Qs=[],Js=null,eu=0,tu=null,nu=-1,ru=0,iu=0,au=null,ou=!1;function su(){return 0!=(48&As)?Fi():-1!==nu?nu:nu=Fi()}function uu(e){if(0==(2&(e=e.mode)))return 1;if(0==(4&e))return 99===zi()?1:2;if(0===ru&&(ru=Ls),0!==Zi.transition){0!==iu&&(iu=null!==Us?Us.pendingLanes:0),e=ru;var t=4186112&~iu;return 0==(t&=-t)&&0==(t=(e=4186112&~e)&-e)&&(t=8192),t}return e=zi(),e=Ft(0!=(4&As)&&98===e?12:e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),ru)}function lu(e,t,n){if(50<eu)throw eu=0,tu=null,Error(s(185));if(null===(e=cu(e,t)))return null;Ht(e,t,n),e===Cs&&(Bs|=t,4===Rs&&pu(e,Ns));var r=zi();1===t?0!=(8&As)&&0==(48&As)?hu(e):(fu(e,n),0===As&&(Vs(),qi())):(0==(4&As)||98!==r&&99!==r||(null===Js?Js=new Set([e]):Js.add(e)),fu(e,n)),Us=e}function cu(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function fu(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,a=e.expirationTimes,o=e.pendingLanes;0<o;){var u=31-Wt(o),l=1<<u,c=a[u];if(-1===c){if(0==(l&r)||0!=(l&i)){c=t,Bt(l);var f=Mt;a[u]=10<=f?c+250:6<=f?c+5e3:-1}}else c<=t&&(e.expiredLanes|=l);o&=~l}if(r=Dt(e,e===Cs?Ns:0),t=Mt,0===r)null!==n&&(n!==Ii&&Ei(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Ii&&Ei(n)}15===t?(n=hu.bind(null,e),null===Mi?(Mi=[n],Bi=_i(Ti,Gi)):Mi.push(n),n=Ii):14===t?n=Wi(99,hu.bind(null,e)):n=Wi(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(s(358,e))}}(t),du.bind(null,e)),e.callbackPriority=t,e.callbackNode=n}}function du(e){if(nu=-1,iu=ru=0,0!=(48&As))throw Error(s(327));var t=e.callbackNode;if(Nu()&&e.callbackNode!==t)return null;var n=Dt(e,e===Cs?Ns:0);if(0===n)return null;var r=n,i=As;As|=16;var a=xu();for(Cs===e&&Ns===r||(Vs(),bu(e,r));;)try{Eu();break}catch(t){wu(e,t)}if(Ji(),Ss.current=a,As=i,null!==Ts?r=0:(Cs=null,Ns=0,r=Rs),0!=(Ls&Bs))bu(e,0);else if(0!==r){if(2===r&&(As|=64,e.hydrate&&(e.hydrate=!1,Wr(e.containerInfo)),0!==(n=Ut(e))&&(r=ku(e,n))),1===r)throw t=Is,bu(e,0),pu(e,n),fu(e,Fi()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(s(345));case 2:case 5:Au(e);break;case 3:if(pu(e,n),(62914560&n)===n&&10<(r=Fs+500-Fi())){if(0!==Dt(e,0))break;if(((i=e.suspendedLanes)&n)!==n){su(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Vr(Au.bind(null,e),r);break}Au(e);break;case 4:if(pu(e,n),(4186112&n)===n)break;for(r=e.eventTimes,i=-1;0<n;){var o=31-Wt(n);a=1<<o,(o=r[o])>i&&(i=o),n&=~a}if(n=i,10<(n=(120>(n=Fi()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Es(n/1960))-n)){e.timeoutHandle=Vr(Au.bind(null,e),n);break}Au(e);break;default:throw Error(s(329))}}return fu(e,Fi()),e.callbackNode===t?du.bind(null,e):null}function pu(e,t){for(t&=~Ds,t&=~Bs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Wt(t),r=1<<n;e[n]=-1,t&=~r}}function hu(e){if(0!=(48&As))throw Error(s(327));if(Nu(),e===Cs&&0!=(e.expiredLanes&Ns)){var t=Ns,n=ku(e,t);0!=(Ls&Bs)&&(n=ku(e,t=Dt(e,t)))}else n=ku(e,t=Dt(e,0));if(0!==e.tag&&2===n&&(As|=64,e.hydrate&&(e.hydrate=!1,Wr(e.containerInfo)),0!==(t=Ut(e))&&(n=ku(e,t))),1===n)throw n=Is,bu(e,0),pu(e,t),fu(e,Fi()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Au(e),fu(e,Fi()),null}function mu(e,t){var n=As;As|=1;try{return e(t)}finally{0===(As=n)&&(Vs(),qi())}}function vu(e,t){var n=As;As&=-2,As|=8;try{return e(t)}finally{0===(As=n)&&(Vs(),qi())}}function yu(e,t){ui(Ps,js),js|=t,Ls|=t}function gu(){js=Ps.current,si(Ps)}function bu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Hr(n)),null!==Ts)for(n=Ts.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&mi();break;case 3:ja(),si(fi),si(ci),Ga();break;case 5:Ra(r);break;case 4:ja();break;case 13:case 19:si(Ia);break;case 10:ea(r);break;case 23:case 24:gu()}n=n.return}Cs=e,Ts=zu(e.current,null),Ns=js=Ls=t,Rs=0,Is=null,Ds=Bs=Ms=0}function wu(e,t){for(;;){var n=Ts;try{if(Ji(),Za.current=To,Ja){for(var r=Ka.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}Ja=!1}if($a=0,Qa=Xa=Ka=null,eo=!1,Os.current=null,null===n||null===n.return){Rs=1,Is=t,Ts=null;break}e:{var a=e,o=n.return,s=n,u=t;if(t=Ns,s.flags|=2048,s.firstEffect=s.lastEffect=null,null!==u&&"object"==typeof u&&"function"==typeof u.then){var l=u;if(0==(2&s.mode)){var c=s.alternate;c?(s.updateQueue=c.updateQueue,s.memoizedState=c.memoizedState,s.lanes=c.lanes):(s.updateQueue=null,s.memoizedState=null)}var f=0!=(1&Ia.current),d=o;do{var p;if(p=13===d.tag){var h=d.memoizedState;if(null!==h)p=null!==h.dehydrated;else{var m=d.memoizedProps;p=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!f)}}if(p){var v=d.updateQueue;if(null===v){var y=new Set;y.add(l),d.updateQueue=y}else v.add(l);if(0==(2&d.mode)){if(d.flags|=64,s.flags|=16384,s.flags&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var g=sa(-1,1);g.tag=2,ua(s,g)}s.lanes|=1;break e}u=void 0,s=t;var b=a.pingCache;if(null===b?(b=a.pingCache=new os,u=new Set,b.set(l,u)):void 0===(u=b.get(l))&&(u=new Set,b.set(l,u)),!u.has(s)){u.add(s);var w=Mu.bind(null,a,l,s);l.then(w,w)}d.flags|=4096,d.lanes=t;break e}d=d.return}while(null!==d);u=Error((Y(s.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Rs&&(Rs=2),u=is(u,s),d=o;do{switch(d.tag){case 3:a=u,d.flags|=4096,t&=-t,d.lanes|=t,la(d,ss(0,a,t));break e;case 1:a=u;var x=d.type,k=d.stateNode;if(0==(64&d.flags)&&("function"==typeof x.getDerivedStateFromError||null!==k&&"function"==typeof k.componentDidCatch&&(null===Zs||!Zs.has(k)))){d.flags|=4096,t&=-t,d.lanes|=t,la(d,us(d,a,t));break e}}d=d.return}while(null!==d)}Ou(n)}catch(e){t=e,Ts===n&&null!==n&&(Ts=n=n.return);continue}break}}function xu(){var e=Ss.current;return Ss.current=To,null===e?To:e}function ku(e,t){var n=As;As|=16;var r=xu();for(Cs===e&&Ns===t||bu(e,t);;)try{_u();break}catch(t){wu(e,t)}if(Ji(),As=n,Ss.current=r,null!==Ts)throw Error(s(261));return Cs=null,Ns=0,Rs}function _u(){for(;null!==Ts;)Su(Ts)}function Eu(){for(;null!==Ts&&!Si();)Su(Ts)}function Su(e){var t=Hs(e.alternate,e,js);e.memoizedProps=e.pendingProps,null===t?Ou(e):Ts=t,Os.current=null}function Ou(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=ns(n,t,js)))return void(Ts=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&js)||0==(4&n.mode)){for(var r=0,i=n.child;null!==i;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=rs(t)))return n.flags&=2047,void(Ts=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Ts=t);Ts=t=e}while(null!==t);0===Rs&&(Rs=5)}function Au(e){var t=zi();return Hi(99,Cu.bind(null,e,t)),null}function Cu(e,t){do{Nu()}while(null!==$s);if(0!=(48&As))throw Error(s(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(s(177));e.callbackNode=null;var r=n.lanes|n.childLanes,i=r,a=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var o=e.eventTimes,u=e.expirationTimes;0<a;){var l=31-Wt(a),c=1<<l;i[l]=0,o[l]=-1,u[l]=-1,a&=~c}if(null!==Js&&0==(24&r)&&Js.has(e)&&Js.delete(e),e===Cs&&(Ts=Cs=null,Ns=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(i=As,As|=32,Os.current=null,Dr=$t,hr(o=pr())){if("selectionStart"in o)u={start:o.selectionStart,end:o.selectionEnd};else e:if(u=(u=o.ownerDocument)&&u.defaultView||window,(c=u.getSelection&&u.getSelection())&&0!==c.rangeCount){u=c.anchorNode,a=c.anchorOffset,l=c.focusNode,c=c.focusOffset;try{u.nodeType,l.nodeType}catch(e){u=null;break e}var f=0,d=-1,p=-1,h=0,m=0,v=o,y=null;t:for(;;){for(var g;v!==u||0!==a&&3!==v.nodeType||(d=f+a),v!==l||0!==c&&3!==v.nodeType||(p=f+c),3===v.nodeType&&(f+=v.nodeValue.length),null!==(g=v.firstChild);)y=v,v=g;for(;;){if(v===o)break t;if(y===u&&++h===a&&(d=f),y===l&&++m===c&&(p=f),null!==(g=v.nextSibling))break;y=(v=y).parentNode}v=g}u=-1===d||-1===p?null:{start:d,end:p}}else u=null;u=u||{start:0,end:0}}else u=null;Ur={focusedElem:o,selectionRange:u},$t=!1,au=null,ou=!1,Ws=r;do{try{Tu()}catch(e){if(null===Ws)throw Error(s(330));Lu(Ws,e),Ws=Ws.nextEffect}}while(null!==Ws);au=null,Ws=r;do{try{for(o=e;null!==Ws;){var b=Ws.flags;if(16&b&&ge(Ws.stateNode,""),128&b){var w=Ws.alternate;if(null!==w){var x=w.ref;null!==x&&("function"==typeof x?x(null):x.current=null)}}switch(1038&b){case 2:ys(Ws),Ws.flags&=-3;break;case 6:ys(Ws),Ws.flags&=-3,xs(Ws.alternate,Ws);break;case 1024:Ws.flags&=-1025;break;case 1028:Ws.flags&=-1025,xs(Ws.alternate,Ws);break;case 4:xs(Ws.alternate,Ws);break;case 8:ws(o,u=Ws);var k=u.alternate;ms(u),null!==k&&ms(k)}Ws=Ws.nextEffect}}catch(e){if(null===Ws)throw Error(s(330));Lu(Ws,e),Ws=Ws.nextEffect}}while(null!==Ws);if(x=Ur,w=pr(),b=x.focusedElem,o=x.selectionRange,w!==b&&b&&b.ownerDocument&&dr(b.ownerDocument.documentElement,b)){null!==o&&hr(b)&&(w=o.start,void 0===(x=o.end)&&(x=w),"selectionStart"in b?(b.selectionStart=w,b.selectionEnd=Math.min(x,b.value.length)):(x=(w=b.ownerDocument||document)&&w.defaultView||window).getSelection&&(x=x.getSelection(),u=b.textContent.length,k=Math.min(o.start,u),o=void 0===o.end?k:Math.min(o.end,u),!x.extend&&k>o&&(u=o,o=k,k=u),u=fr(b,k),a=fr(b,o),u&&a&&(1!==x.rangeCount||x.anchorNode!==u.node||x.anchorOffset!==u.offset||x.focusNode!==a.node||x.focusOffset!==a.offset)&&((w=w.createRange()).setStart(u.node,u.offset),x.removeAllRanges(),k>o?(x.addRange(w),x.extend(a.node,a.offset)):(w.setEnd(a.node,a.offset),x.addRange(w))))),w=[];for(x=b;x=x.parentNode;)1===x.nodeType&&w.push({element:x,left:x.scrollLeft,top:x.scrollTop});for("function"==typeof b.focus&&b.focus(),b=0;b<w.length;b++)(x=w[b]).element.scrollLeft=x.left,x.element.scrollTop=x.top}$t=!!Dr,Ur=Dr=null,e.current=n,Ws=r;do{try{for(b=e;null!==Ws;){var _=Ws.flags;if(36&_&&ds(b,Ws.alternate,Ws),128&_){w=void 0;var E=Ws.ref;if(null!==E){var S=Ws.stateNode;Ws.tag,w=S,"function"==typeof E?E(w):E.current=w}}Ws=Ws.nextEffect}}catch(e){if(null===Ws)throw Error(s(330));Lu(Ws,e),Ws=Ws.nextEffect}}while(null!==Ws);Ws=null,Li(),As=i}else e.current=n;if(Ys)Ys=!1,$s=e,Ks=t;else for(Ws=r;null!==Ws;)t=Ws.nextEffect,Ws.nextEffect=null,8&Ws.flags&&((_=Ws).sibling=null,_.stateNode=null),Ws=t;if(0===(r=e.pendingLanes)&&(Zs=null),1===r?e===tu?eu++:(eu=0,tu=e):eu=0,n=n.stateNode,xi&&"function"==typeof xi.onCommitFiberRoot)try{xi.onCommitFiberRoot(wi,n,void 0,64==(64&n.current.flags))}catch(e){}if(fu(e,Fi()),qs)throw qs=!1,e=Gs,Gs=null,e;return 0!=(8&As)||qi(),null}function Tu(){for(;null!==Ws;){var e=Ws.alternate;ou||null===au||(0!=(8&Ws.flags)?et(Ws,au)&&(ou=!0):13===Ws.tag&&_s(e,Ws)&&et(Ws,au)&&(ou=!0));var t=Ws.flags;0!=(256&t)&&fs(e,Ws),0==(512&t)||Ys||(Ys=!0,Wi(97,(function(){return Nu(),null}))),Ws=Ws.nextEffect}}function Nu(){if(90!==Ks){var e=97<Ks?97:Ks;return Ks=90,Hi(e,Ru)}return!1}function ju(e,t){Xs.push(t,e),Ys||(Ys=!0,Wi(97,(function(){return Nu(),null})))}function Pu(e,t){Qs.push(t,e),Ys||(Ys=!0,Wi(97,(function(){return Nu(),null})))}function Ru(){if(null===$s)return!1;var e=$s;if($s=null,0!=(48&As))throw Error(s(331));var t=As;As|=32;var n=Qs;Qs=[];for(var r=0;r<n.length;r+=2){var i=n[r],a=n[r+1],o=i.destroy;if(i.destroy=void 0,"function"==typeof o)try{o()}catch(e){if(null===a)throw Error(s(330));Lu(a,e)}}for(n=Xs,Xs=[],r=0;r<n.length;r+=2){i=n[r],a=n[r+1];try{var u=i.create;i.destroy=u()}catch(e){if(null===a)throw Error(s(330));Lu(a,e)}}for(u=e.current.firstEffect;null!==u;)e=u.nextEffect,u.nextEffect=null,8&u.flags&&(u.sibling=null,u.stateNode=null),u=e;return As=t,qi(),!0}function Iu(e,t,n){ua(e,t=ss(0,t=is(n,t),1)),t=su(),null!==(e=cu(e,1))&&(Ht(e,1,t),fu(e,t))}function Lu(e,t){if(3===e.tag)Iu(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Iu(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Zs||!Zs.has(r))){var i=us(n,e=is(t,e),1);if(ua(n,i),i=su(),null!==(n=cu(n,1)))Ht(n,1,i),fu(n,i);else if("function"==typeof r.componentDidCatch&&(null===Zs||!Zs.has(r)))try{r.componentDidCatch(t,e)}catch(e){}break}}n=n.return}}function Mu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=su(),e.pingedLanes|=e.suspendedLanes&n,Cs===e&&(Ns&n)===n&&(4===Rs||3===Rs&&(62914560&Ns)===Ns&&500>Fi()-Fs?bu(e,0):Ds|=n),fu(e,t)}function Bu(e,t){var n=e.stateNode;null!==n&&n.delete(t),0==(t=0)&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===zi()?1:2:(0===ru&&(ru=Ls),0===(t=zt(62914560&~ru))&&(t=4194304))),n=su(),null!==(e=cu(e,t))&&(Ht(e,t,n),fu(e,n))}function Du(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Uu(e,t,n,r){return new Du(e,t,n,r)}function Fu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function zu(e,t){var n=e.alternate;return null===n?((n=Uu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Vu(e,t,n,r,i,a){var o=2;if(r=e,"function"==typeof e)Fu(e)&&(o=1);else if("string"==typeof e)o=5;else e:switch(e){case S:return Hu(n.children,i,a,t);case B:o=8,i|=16;break;case O:o=8,i|=1;break;case A:return(e=Uu(12,n,t,8|i)).elementType=A,e.type=A,e.lanes=a,e;case j:return(e=Uu(13,n,t,i)).type=j,e.elementType=j,e.lanes=a,e;case P:return(e=Uu(19,n,t,i)).elementType=P,e.lanes=a,e;case D:return Wu(n,i,a,t);case U:return(e=Uu(24,n,t,i)).elementType=U,e.lanes=a,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case C:o=10;break e;case T:o=9;break e;case N:o=11;break e;case R:o=14;break e;case I:o=16,r=null;break e;case L:o=22;break e}throw Error(s(130,null==e?e:typeof e,""))}return(t=Uu(o,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function Hu(e,t,n,r){return(e=Uu(7,e,r,t)).lanes=n,e}function Wu(e,t,n,r){return(e=Uu(23,e,r,t)).elementType=D,e.lanes=n,e}function qu(e,t,n){return(e=Uu(6,e,null,t)).lanes=n,e}function Gu(e,t,n){return(t=Uu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Zu(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Vt(0),this.expirationTimes=Vt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vt(0),this.mutableSourceEagerHydrationData=null}function Yu(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:E,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function $u(e,t,n,r){var i=t.current,a=su(),o=uu(i);e:if(n){t:{if(Ke(n=n._reactInternals)!==n||1!==n.tag)throw Error(s(170));var u=n;do{switch(u.tag){case 3:u=u.stateNode.context;break t;case 1:if(hi(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break t}}u=u.return}while(null!==u);throw Error(s(171))}if(1===n.tag){var l=n.type;if(hi(l)){n=yi(n,l,u);break e}}n=u}else n=li;return null===t.context?t.context=n:t.pendingContext=n,(t=sa(a,o)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),ua(i,t),lu(i,o,a),o}function Ku(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Xu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Qu(e,t){Xu(e,t),(e=e.alternate)&&Xu(e,t)}function Ju(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Zu(e,t,null!=n&&!0===n.hydrate),t=Uu(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,aa(t),e[Xr]=n.current,Tr(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var i=(t=r[e])._getVersion;i=i(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,i]:n.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=n}function el(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function tl(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a._internalRoot;if("function"==typeof i){var s=i;i=function(){var e=Ku(o);s.call(e)}}$u(t,o,e,i)}else{if(a=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Ju(e,0,t?{hydrate:!0}:void 0)}(n,r),o=a._internalRoot,"function"==typeof i){var u=i;i=function(){var e=Ku(o);u.call(e)}}vu((function(){$u(t,o,e,i)}))}return Ku(o)}function nl(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!el(t))throw Error(s(200));return Yu(e,t,null,n)}Hs=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||fi.current)Io=!0;else{if(0==(n&r)){switch(Io=!1,t.tag){case 3:Wo(t),Wa();break;case 5:Pa(t);break;case 1:hi(t.type)&&gi(t);break;case 4:Na(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var i=t.type._context;ui($i,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!=(n&t.child.childLanes)?$o(e,t,n):(ui(Ia,1&Ia.current),null!==(t=es(e,t,n))?t.sibling:null);ui(Ia,1&Ia.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return Jo(e,t,n);t.flags|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),ui(Ia,Ia.current),r)break;return null;case 23:case 24:return t.lanes=0,Uo(e,t,n)}return es(e,t,n)}Io=0!=(16384&e.flags)}else Io=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=pi(t,ci.current),na(t,n),i=ro(null,t,r,e,i,n),t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,hi(r)){var a=!0;gi(t)}else a=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,aa(t);var o=r.getDerivedStateFromProps;"function"==typeof o&&pa(t,r,o,e),i.updater=ha,t.stateNode=i,i._reactInternals=t,ga(t,r,e,n),t=Ho(null,t,r,!0,a,n)}else t.tag=0,Lo(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=(a=i._init)(i._payload),t.type=i,a=t.tag=function(e){if("function"==typeof e)return Fu(e)?1:0;if(null!=e){if((e=e.$$typeof)===N)return 11;if(e===R)return 14}return 2}(i),e=Yi(i,e),a){case 0:t=zo(null,t,i,e,n);break e;case 1:t=Vo(null,t,i,e,n);break e;case 11:t=Mo(null,t,i,e,n);break e;case 14:t=Bo(null,t,i,Yi(i.type,e),r,n);break e}throw Error(s(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,zo(e,t,r,i=t.elementType===r?i:Yi(r,i),n);case 1:return r=t.type,i=t.pendingProps,Vo(e,t,r,i=t.elementType===r?i:Yi(r,i),n);case 3:if(Wo(t),r=t.updateQueue,null===e||null===r)throw Error(s(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,oa(e,t),ca(t,r,null,n),(r=t.memoizedState.element)===i)Wa(),t=es(e,t,n);else{if((a=(i=t.stateNode).hydrate)&&(Ba=qr(t.stateNode.containerInfo.firstChild),Ma=t,a=Da=!0),a){if(null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i<e.length;i+=2)(a=e[i])._workInProgressVersionPrimary=e[i+1],qa.push(a);for(n=Ea(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Lo(e,t,r,n),Wa();t=t.child}return t;case 5:return Pa(t),null===e&&za(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,o=i.children,zr(r,i)?o=null:null!==a&&zr(r,a)&&(t.flags|=16),Fo(e,t),Lo(e,t,o,n),t.child;case 6:return null===e&&za(t),null;case 13:return $o(e,t,n);case 4:return Na(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=_a(t,null,r,n):Lo(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,Mo(e,t,r,i=t.elementType===r?i:Yi(r,i),n);case 7:return Lo(e,t,t.pendingProps,n),t.child;case 8:case 12:return Lo(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value;var u=t.type._context;if(ui($i,u._currentValue),u._currentValue=a,null!==o)if(u=o.value,0==(a=sr(u,a)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(u,a):1073741823))){if(o.children===i.children&&!fi.current){t=es(e,t,n);break e}}else for(null!==(u=t.child)&&(u.return=t);null!==u;){var l=u.dependencies;if(null!==l){o=u.child;for(var c=l.firstContext;null!==c;){if(c.context===r&&0!=(c.observedBits&a)){1===u.tag&&((c=sa(-1,n&-n)).tag=2,ua(u,c)),u.lanes|=n,null!==(c=u.alternate)&&(c.lanes|=n),ta(u.return,n),l.lanes|=n;break}c=c.next}}else o=10===u.tag&&u.type===t.type?null:u.child;if(null!==o)o.return=u;else for(o=u;null!==o;){if(o===t){o=null;break}if(null!==(u=o.sibling)){u.return=o.return,o=u;break}o=o.return}u=o}Lo(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(a=t.pendingProps).children,na(t,n),r=r(i=ra(i,a.unstable_observedBits)),t.flags|=1,Lo(e,t,r,n),t.child;case 14:return a=Yi(i=t.type,t.pendingProps),Bo(e,t,i,a=Yi(i.type,a),r,n);case 15:return Do(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Yi(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,hi(r)?(e=!0,gi(t)):e=!1,na(t,n),va(t,r,i),ga(t,r,i,n),Ho(null,t,r,!0,e,n);case 19:return Jo(e,t,n);case 23:case 24:return Uo(e,t,n)}throw Error(s(156,t.tag))},Ju.prototype.render=function(e){$u(e,this._internalRoot,null,null)},Ju.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;$u(null,e,null,(function(){t[Xr]=null}))},tt=function(e){13===e.tag&&(lu(e,4,su()),Qu(e,4))},nt=function(e){13===e.tag&&(lu(e,67108864,su()),Qu(e,67108864))},rt=function(e){if(13===e.tag){var t=su(),n=uu(e);lu(e,n,t),Qu(e,n)}},it=function(e,t){return t()},Ae=function(e,t,n){switch(t){case"input":if(re(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=ni(r);if(!i)throw Error(s(90));Q(r),re(r,i)}}}break;case"textarea":ce(e,n);break;case"select":null!=(t=n.value)&&se(e,!!n.multiple,t,!1)}},Re=mu,Ie=function(e,t,n,r,i){var a=As;As|=4;try{return Hi(98,e.bind(null,t,n,r,i))}finally{0===(As=a)&&(Vs(),qi())}},Le=function(){0==(49&As)&&(function(){if(null!==Js){var e=Js;Js=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,fu(e,Fi())}))}qi()}(),Nu())},Me=function(e,t){var n=As;As|=2;try{return e(t)}finally{0===(As=n)&&(Vs(),qi())}};var rl={Events:[ei,ti,ni,je,Pe,Nu,{current:!1}]},il={findFiberByHostInstance:Jr,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},al={bundleType:il.bundleType,version:il.version,rendererPackageName:il.rendererPackageName,rendererConfig:il.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:k.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Je(e))?null:e.stateNode},findFiberByHostInstance:il.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ol=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ol.isDisabled&&ol.supportsFiber)try{wi=ol.inject(al),xi=ol}catch(ve){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=rl,t.createPortal=nl,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(s(188));throw Error(s(268,Object.keys(e)))}return null===(e=Je(t))?null:e.stateNode},t.flushSync=function(e,t){var n=As;if(0!=(48&n))return e(t);As|=1;try{if(e)return Hi(99,e.bind(null,t))}finally{As=n,qi()}},t.hydrate=function(e,t,n){if(!el(t))throw Error(s(200));return tl(null,e,t,!0,n)},t.render=function(e,t,n){if(!el(t))throw Error(s(200));return tl(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!el(e))throw Error(s(40));return!!e._reactRootContainer&&(vu((function(){tl(null,null,e,!1,(function(){e._reactRootContainer=null,e[Xr]=null}))})),!0)},t.unstable_batchedUpdates=mu,t.unstable_createPortal=function(e,t){return nl(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!el(n))throw Error(s(200));if(null==e||void 0===e._reactInternals)throw Error(s(38));return tl(e,t,n,!1,r)},t.version="17.0.2"},6377:function(e,t,n){"use strict";var r=n(8466);!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){r.error(e)}}(),e.exports=n(6186)},4819:function(e,t,n){"use strict";n(6);var r=n(3705),i=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var a=Symbol.for;i=a("react.element"),t.Fragment=a("react.fragment")}var o=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,n){var r,a={},l=null,c=null;for(r in void 0!==n&&(l=""+n),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(c=t.ref),t)s.call(t,r)&&!u.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:i,type:e,key:l,ref:c,props:a,_owner:o.current}}t.jsx=l,t.jsxs=l},4348:function(e,t,n){"use strict";var r=n(6),i=60103,a=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var o=60109,s=60110,u=60112;t.Suspense=60113;var l=60115,c=60116;if("function"==typeof Symbol&&Symbol.for){var f=Symbol.for;i=f("react.element"),a=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),o=f("react.provider"),s=f("react.context"),u=f("react.forward_ref"),t.Suspense=f("react.suspense"),l=f("react.memo"),c=f("react.lazy")}var d="function"==typeof Symbol&&Symbol.iterator;function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m={};function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}function y(){}function g(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(p(85));this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var b=g.prototype=new y;b.constructor=g,r(b,v.prototype),b.isPureReactComponent=!0;var w={current:null},x=Object.prototype.hasOwnProperty,k={key:!0,ref:!0,__self:!0,__source:!0};function _(e,t,n){var r,a={},o=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(o=""+t.key),t)x.call(t,r)&&!k.hasOwnProperty(r)&&(a[r]=t[r]);var u=arguments.length-2;if(1===u)a.children=n;else if(1<u){for(var l=Array(u),c=0;c<u;c++)l[c]=arguments[c+2];a.children=l}if(e&&e.defaultProps)for(r in u=e.defaultProps)void 0===a[r]&&(a[r]=u[r]);return{$$typeof:i,type:e,key:o,ref:s,props:a,_owner:w.current}}function E(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var S=/\/+/g;function O(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function A(e,t,n,r,o){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var u=!1;if(null===e)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case i:case a:u=!0}}if(u)return o=o(u=e),e=""===r?"."+O(u,0):r,Array.isArray(o)?(n="",null!=e&&(n=e.replace(S,"$&/")+"/"),A(o,t,n,"",(function(e){return e}))):null!=o&&(E(o)&&(o=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||u&&u.key===o.key?"":(""+o.key).replace(S,"$&/")+"/")+e)),t.push(o)),1;if(u=0,r=""===r?".":r+":",Array.isArray(e))for(var l=0;l<e.length;l++){var c=r+O(s=e[l],l);u+=A(s,t,n,c,o)}else if("function"==typeof(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e)))for(e=c.call(e),l=0;!(s=e.next()).done;)u+=A(s=s.value,t,n,c=r+O(s,l++),o);else if("object"===s)throw t=""+e,Error(p(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return u}function C(e,t,n){if(null==e)return e;var r=[],i=0;return A(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function T(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var N={current:null};function j(){var e=N.current;if(null===e)throw Error(p(321));return e}var P={ReactCurrentDispatcher:N,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:C,forEach:function(e,t,n){C(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return C(e,(function(){t++})),t},toArray:function(e){return C(e,(function(e){return e}))||[]},only:function(e){if(!E(e))throw Error(p(143));return e}},t.Component=v,t.PureComponent=g,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P,t.cloneElement=function(e,t,n){if(null==e)throw Error(p(267,e));var a=r({},e.props),o=e.key,s=e.ref,u=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,u=w.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)x.call(t,c)&&!k.hasOwnProperty(c)&&(a[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)a.children=n;else if(1<c){l=Array(c);for(var f=0;f<c;f++)l[f]=arguments[f+2];a.children=l}return{$$typeof:i,type:e.type,key:o,ref:s,props:a,_owner:u}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:s,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:o,_context:e},e.Consumer=e},t.createElement=_,t.createFactory=function(e){var t=_.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=E,t.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:T}},t.memo=function(e,t){return{$$typeof:l,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return j().useCallback(e,t)},t.useContext=function(e,t){return j().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return j().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return j().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return j().useLayoutEffect(e,t)},t.useMemo=function(e,t){return j().useMemo(e,t)},t.useReducer=function(e,t,n){return j().useReducer(e,t,n)},t.useRef=function(e){return j().useRef(e)},t.useState=function(e){return j().useState(e)},t.version="17.0.2"},3705:function(e,t,n){"use strict";e.exports=n(4348)},1411:function(e,t,n){"use strict";e.exports=n(4819)},5205:function(e,t,n){"use strict";var r=n(7490),i=n(8466);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o,s,u=n(3905).codes,l=u.ERR_AMBIGUOUS_ARGUMENT,c=u.ERR_INVALID_ARG_TYPE,f=u.ERR_INVALID_ARG_VALUE,d=u.ERR_INVALID_RETURN_VALUE,p=u.ERR_MISSING_ARGS,h=n(8264),m=n(7736).inspect,v=n(7736).types,y=v.isPromise,g=v.isRegExp,b=Object.assign?Object.assign:n(3843).assign,w=Object.is?Object.is:n(8199);function x(){var e=n(8527);o=e.isDeepEqual,s=e.isDeepStrictEqual}new Map;var k=!1,_=e.exports=A,E={};function S(e){if(e.message instanceof Error)throw e.message;throw new h(e)}function O(e,t,n,r){if(!n){var i=!1;if(0===t)i=!0,r="No value argument passed to `assert.ok()`";else if(r instanceof Error)throw r;var a=new h({actual:n,expected:!0,message:r,operator:"==",stackStartFn:e});throw a.generatedMessage=i,a}}function A(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];O.apply(void 0,[A,t.length].concat(t))}_.fail=function e(t,n,a,o,s){var u,l=arguments.length;if(0===l)u="Failed";else if(1===l)a=t,t=void 0;else{if(!1===k){k=!0;var c=r.emitWarning?r.emitWarning:i.warn.bind(i);c("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}2===l&&(o="!=")}if(a instanceof Error)throw a;var f={actual:t,expected:n,operator:void 0===o?"fail":o,stackStartFn:s||e};void 0!==a&&(f.message=a);var d=new h(f);throw u&&(d.message=u,d.generatedMessage=!0),d},_.AssertionError=h,_.ok=A,_.equal=function e(t,n,r){if(arguments.length<2)throw new p("actual","expected");t!=n&&S({actual:t,expected:n,message:r,operator:"==",stackStartFn:e})},_.notEqual=function e(t,n,r){if(arguments.length<2)throw new p("actual","expected");t==n&&S({actual:t,expected:n,message:r,operator:"!=",stackStartFn:e})},_.deepEqual=function e(t,n,r){if(arguments.length<2)throw new p("actual","expected");void 0===o&&x(),o(t,n)||S({actual:t,expected:n,message:r,operator:"deepEqual",stackStartFn:e})},_.notDeepEqual=function e(t,n,r){if(arguments.length<2)throw new p("actual","expected");void 0===o&&x(),o(t,n)&&S({actual:t,expected:n,message:r,operator:"notDeepEqual",stackStartFn:e})},_.deepStrictEqual=function e(t,n,r){if(arguments.length<2)throw new p("actual","expected");void 0===o&&x(),s(t,n)||S({actual:t,expected:n,message:r,operator:"deepStrictEqual",stackStartFn:e})},_.notDeepStrictEqual=function e(t,n,r){if(arguments.length<2)throw new p("actual","expected");void 0===o&&x(),s(t,n)&&S({actual:t,expected:n,message:r,operator:"notDeepStrictEqual",stackStartFn:e})},_.strictEqual=function e(t,n,r){if(arguments.length<2)throw new p("actual","expected");w(t,n)||S({actual:t,expected:n,message:r,operator:"strictEqual",stackStartFn:e})},_.notStrictEqual=function e(t,n,r){if(arguments.length<2)throw new p("actual","expected");w(t,n)&&S({actual:t,expected:n,message:r,operator:"notStrictEqual",stackStartFn:e})};var C=function e(t,n,r){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n.forEach((function(e){e in t&&(void 0!==r&&"string"==typeof r[e]&&g(t[e])&&t[e].test(r[e])?i[e]=r[e]:i[e]=t[e])}))};function T(e,t,n,r,i,a){if(!(n in e)||!s(e[n],t[n])){if(!r){var o=new C(e,i),u=new C(t,i,e),l=new h({actual:o,expected:u,operator:"deepStrictEqual",stackStartFn:a});throw l.actual=e,l.expected=t,l.operator=a.name,l}S({actual:e,expected:t,message:r,operator:a.name,stackStartFn:a})}}function N(e,t,n,r){if("function"!=typeof t){if(g(t))return t.test(e);if(2===arguments.length)throw new c("expected",["Function","RegExp"],t);if("object"!==a(e)||null===e){var i=new h({actual:e,expected:t,message:n,operator:"deepStrictEqual",stackStartFn:r});throw i.operator=r.name,i}var s=Object.keys(t);if(t instanceof Error)s.push("name","message");else if(0===s.length)throw new f("error",t,"may not be an empty object");return void 0===o&&x(),s.forEach((function(i){"string"==typeof e[i]&&g(t[i])&&t[i].test(e[i])||T(e,t,i,n,s,r)})),!0}return void 0!==t.prototype&&e instanceof t||!Error.isPrototypeOf(t)&&!0===t.call({},e)}function j(e){if("function"!=typeof e)throw new c("fn","Function",e);try{e()}catch(e){return e}return E}function P(e){return y(e)||null!==e&&"object"===a(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function R(e){return Promise.resolve().then((function(){var t;if("function"==typeof e){if(!P(t=e()))throw new d("instance of Promise","promiseFn",t)}else{if(!P(e))throw new c("promiseFn",["Function","Promise"],e);t=e}return Promise.resolve().then((function(){return t})).then((function(){return E})).catch((function(e){return e}))}))}function I(e,t,n,r){if("string"==typeof n){if(4===arguments.length)throw new c("error",["Object","Error","Function","RegExp"],n);if("object"===a(t)&&null!==t){if(t.message===n)throw new l("error/message",'The error message "'.concat(t.message,'" is identical to the message.'))}else if(t===n)throw new l("error/message",'The error "'.concat(t,'" is identical to the message.'));r=n,n=void 0}else if(null!=n&&"object"!==a(n)&&"function"!=typeof n)throw new c("error",["Object","Error","Function","RegExp"],n);if(t===E){var i="";n&&n.name&&(i+=" (".concat(n.name,")")),i+=r?": ".concat(r):".";var o="rejects"===e.name?"rejection":"exception";S({actual:void 0,expected:n,operator:e.name,message:"Missing expected ".concat(o).concat(i),stackStartFn:e})}if(n&&!N(t,n,r,e))throw t}function L(e,t,n,r){if(t!==E){if("string"==typeof n&&(r=n,n=void 0),!n||N(t,n)){var i=r?": ".concat(r):".",a="doesNotReject"===e.name?"rejection":"exception";S({actual:t,expected:n,operator:e.name,message:"Got unwanted ".concat(a).concat(i,"\n")+'Actual message: "'.concat(t&&t.message,'"'),stackStartFn:e})}throw t}}function M(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];O.apply(void 0,[M,t.length].concat(t))}_.throws=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];I.apply(void 0,[e,j(t)].concat(r))},_.rejects=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return R(t).then((function(t){return I.apply(void 0,[e,t].concat(r))}))},_.doesNotThrow=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];L.apply(void 0,[e,j(t)].concat(r))},_.doesNotReject=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return R(t).then((function(t){return L.apply(void 0,[e,t].concat(r))}))},_.ifError=function e(t){if(null!=t){var n="ifError got unwanted exception: ";"object"===a(t)&&"string"==typeof t.message?0===t.message.length&&t.constructor?n+=t.constructor.name:n+=t.message:n+=m(t);var r=new h({actual:t,expected:null,operator:"ifError",message:n,stackStartFn:e}),i=t.stack;if("string"==typeof i){var o=i.split("\n");o.shift();for(var s=r.stack.split("\n"),u=0;u<o.length;u++){var l=s.indexOf(o[u]);if(-1!==l){s=s.slice(0,l);break}}r.stack="".concat(s.join("\n"),"\n").concat(o.join("\n"))}throw r}},_.strict=b(M,_,{equal:_.strictEqual,deepEqual:_.deepStrictEqual,notEqual:_.notStrictEqual,notDeepEqual:_.notDeepStrictEqual}),_.strict.strict=_.strict},8264:function(e,t,n){"use strict";var r=n(7490);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?s(e):t}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){var t="function"==typeof Map?new Map:void 0;return(u=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return c(e,arguments,d(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),f(r,e)})(e)}function l(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function c(e,t,n){return(c=l()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&f(i,n.prototype),i}).apply(null,arguments)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var h=n(7736).inspect,m=n(3905).codes.ERR_INVALID_ARG_TYPE;function v(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}var y="",g="",b="",w="",x={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function k(e){var t=Object.keys(e),n=Object.create(Object.getPrototypeOf(e));return t.forEach((function(t){n[t]=e[t]})),Object.defineProperty(n,"message",{value:e.message}),n}function _(e){return h(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function E(e,t,n){var i="",a="",o=0,s="",u=!1,l=_(e),c=l.split("\n"),f=_(t).split("\n"),d=0,h="";if("strictEqual"===n&&"object"===p(e)&&"object"===p(t)&&null!==e&&null!==t&&(n="strictEqualObject"),1===c.length&&1===f.length&&c[0]!==f[0]){var m=c[0].length+f[0].length;if(m<=10){if(!("object"===p(e)&&null!==e||"object"===p(t)&&null!==t||0===e&&0===t))return"".concat(x[n],"\n\n")+"".concat(c[0]," !== ").concat(f[0],"\n")}else if("strictEqualObject"!==n&&m<(r.stderr&&r.stderr.isTTY?r.stderr.columns:80)){for(;c[0][d]===f[0][d];)d++;d>2&&(h="\n ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var n=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,n-e.length)}(" ",d),"^"),d=0)}}for(var k=c[c.length-1],E=f[f.length-1];k===E&&(d++<2?s="\n ".concat(k).concat(s):i=k,c.pop(),f.pop(),0!==c.length&&0!==f.length);)k=c[c.length-1],E=f[f.length-1];var S=Math.max(c.length,f.length);if(0===S){var O=l.split("\n");if(O.length>30)for(O[26]="".concat(y,"...").concat(w);O.length>27;)O.pop();return"".concat(x.notIdentical,"\n\n").concat(O.join("\n"),"\n")}d>3&&(s="\n".concat(y,"...").concat(w).concat(s),u=!0),""!==i&&(s="\n ".concat(i).concat(s),i="");var A=0,C=x[n]+"\n".concat(g,"+ actual").concat(w," ").concat(b,"- expected").concat(w),T=" ".concat(y,"...").concat(w," Lines skipped");for(d=0;d<S;d++){var N=d-o;if(c.length<d+1)N>1&&d>2&&(N>4?(a+="\n".concat(y,"...").concat(w),u=!0):N>3&&(a+="\n ".concat(f[d-2]),A++),a+="\n ".concat(f[d-1]),A++),o=d,i+="\n".concat(b,"-").concat(w," ").concat(f[d]),A++;else if(f.length<d+1)N>1&&d>2&&(N>4?(a+="\n".concat(y,"...").concat(w),u=!0):N>3&&(a+="\n ".concat(c[d-2]),A++),a+="\n ".concat(c[d-1]),A++),o=d,a+="\n".concat(g,"+").concat(w," ").concat(c[d]),A++;else{var j=f[d],P=c[d],R=P!==j&&(!v(P,",")||P.slice(0,-1)!==j);R&&v(j,",")&&j.slice(0,-1)===P&&(R=!1,P+=","),R?(N>1&&d>2&&(N>4?(a+="\n".concat(y,"...").concat(w),u=!0):N>3&&(a+="\n ".concat(c[d-2]),A++),a+="\n ".concat(c[d-1]),A++),o=d,a+="\n".concat(g,"+").concat(w," ").concat(P),i+="\n".concat(b,"-").concat(w," ").concat(j),A+=2):(a+=i,i="",1!==N&&0!==d||(a+="\n ".concat(P),A++))}if(A>20&&d<S-2)return"".concat(C).concat(T,"\n").concat(a,"\n").concat(y,"...").concat(w).concat(i,"\n")+"".concat(y,"...").concat(w)}return"".concat(C).concat(u?T:"","\n").concat(a).concat(i).concat(s).concat(h)}var S=function(e){function t(e){var n;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),"object"!==p(e)||null===e)throw new m("options","Object",e);var i=e.message,a=e.operator,u=e.stackStartFn,l=e.actual,c=e.expected,f=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=i)n=o(this,d(t).call(this,String(i)));else if(r.stderr&&r.stderr.isTTY&&(r.stderr&&r.stderr.getColorDepth&&1!==r.stderr.getColorDepth()?(y="",g="",w="",b=""):(y="",g="",w="",b="")),"object"===p(l)&&null!==l&&"object"===p(c)&&null!==c&&"stack"in l&&l instanceof Error&&"stack"in c&&c instanceof Error&&(l=k(l),c=k(c)),"deepStrictEqual"===a||"strictEqual"===a)n=o(this,d(t).call(this,E(l,c,a)));else if("notDeepStrictEqual"===a||"notStrictEqual"===a){var h=x[a],v=_(l).split("\n");if("notStrictEqual"===a&&"object"===p(l)&&null!==l&&(h=x.notStrictEqualObject),v.length>30)for(v[26]="".concat(y,"...").concat(w);v.length>27;)v.pop();n=1===v.length?o(this,d(t).call(this,"".concat(h," ").concat(v[0]))):o(this,d(t).call(this,"".concat(h,"\n\n").concat(v.join("\n"),"\n")))}else{var S=_(l),O="",A=x[a];"notDeepEqual"===a||"notEqual"===a?(S="".concat(x[a],"\n\n").concat(S)).length>1024&&(S="".concat(S.slice(0,1021),"...")):(O="".concat(_(c)),S.length>512&&(S="".concat(S.slice(0,509),"...")),O.length>512&&(O="".concat(O.slice(0,509),"...")),"deepEqual"===a||"equal"===a?S="".concat(A,"\n\n").concat(S,"\n\nshould equal\n\n"):O=" ".concat(a," ").concat(O)),n=o(this,d(t).call(this,"".concat(S).concat(O)))}return Error.stackTraceLimit=f,n.generatedMessage=!i,Object.defineProperty(s(n),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),n.code="ERR_ASSERTION",n.actual=l,n.expected=c,n.operator=a,Error.captureStackTrace&&Error.captureStackTrace(s(n),u),n.stack,n.name="AssertionError",o(n)}var n,u;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(t,e),n=t,(u=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:h.custom,value:function(e,t){return h(this,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){i(e,t,n[t])}))}return e}({},t,{customInspect:!1,depth:0}))}}])&&a(n.prototype,u),t}(u(Error));e.exports=S},3905:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var s,u,l={};function c(e,t,n){n||(n=Error);var r=function(n){function r(n,o,s){var u;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(u=i(this,a(r).call(this,function(e,n,r){return"string"==typeof t?t:t(e,n,r)}(n,o,s)))).code=e,u}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(r,n),r}(n);l[e]=r}function f(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(e){return String(e)})),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}c("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),c("ERR_INVALID_ARG_TYPE",(function(e,t,i){var a,o,u;if(void 0===s&&(s=n(5205)),s("string"==typeof e,"'name' must be a string"),"string"==typeof t&&(o="not ",t.substr(0,o.length)===o)?(a="must not be",t=t.replace(/^not /,"")):a="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))u="The ".concat(e," ").concat(a," ").concat(f(t,"type"));else{var l=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+".".length>e.length)&&-1!==e.indexOf(".",n)}(e)?"property":"argument";u='The "'.concat(e,'" ').concat(l," ").concat(a," ").concat(f(t,"type"))}return u+". Received type ".concat(r(i))}),TypeError),c("ERR_INVALID_ARG_VALUE",(function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===u&&(u=n(7736));var i=u.inspect(t);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(r,". Received ").concat(i)}),TypeError,RangeError),c("ERR_INVALID_RETURN_VALUE",(function(e,t,n){var i;return i=n&&n.constructor&&n.constructor.name?"instance of ".concat(n.constructor.name):"type ".concat(r(n)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(i,".")}),TypeError),c("ERR_MISSING_ARGS",(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];void 0===s&&(s=n(5205)),s(t.length>0,"At least one arg needs to be specified");var i="The ",a=t.length;switch(t=t.map((function(e){return'"'.concat(e,'"')})),a){case 1:i+="".concat(t[0]," argument");break;case 2:i+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:i+=t.slice(0,a-1).join(", "),i+=", and ".concat(t[a-1]," arguments")}return"".concat(i," must be specified")}),TypeError),e.exports.codes=l},8527:function(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a=void 0!==/a/g.flags,o=function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t},s=function(e){var t=[];return e.forEach((function(e,n){return t.push([n,e])})),t},u=Object.is?Object.is:n(8199),l=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},c=Number.isNaN?Number.isNaN:n(5738);function f(e){return e.call.bind(e)}var d=f(Object.prototype.hasOwnProperty),p=f(Object.prototype.propertyIsEnumerable),h=f(Object.prototype.toString),m=n(7736).types,v=m.isAnyArrayBuffer,y=m.isArrayBufferView,g=m.isDate,b=m.isMap,w=m.isRegExp,x=m.isSet,k=m.isNativeError,_=m.isBoxedPrimitive,E=m.isNumberObject,S=m.isStringObject,O=m.isBooleanObject,A=m.isBigIntObject,C=m.isSymbolObject,T=m.isFloat32Array,N=m.isFloat64Array;function j(e){if(0===e.length||e.length>10)return!0;for(var t=0;t<e.length;t++){var n=e.charCodeAt(t);if(n<48||n>57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function P(e){return Object.keys(e).filter(j).concat(l(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function R(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0}function I(e,t,n,r){if(e===t)return 0!==e||!n||u(e,t);if(n){if("object"!==i(e))return"number"==typeof e&&c(e)&&c(t);if("object"!==i(t)||null===e||null===t)return!1;if(Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1}else{if(null===e||"object"!==i(e))return(null===t||"object"!==i(t))&&e==t;if(null===t||"object"!==i(t))return!1}var o,s,l,f,d=h(e);if(d!==h(t))return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;var p=P(e),m=P(t);return p.length===m.length&&M(e,t,n,r,1,p)}if("[object Object]"===d&&(!b(e)&&b(t)||!x(e)&&x(t)))return!1;if(g(e)){if(!g(t)||Date.prototype.getTime.call(e)!==Date.prototype.getTime.call(t))return!1}else if(w(e)){if(!w(t)||(l=e,f=t,!(a?l.source===f.source&&l.flags===f.flags:RegExp.prototype.toString.call(l)===RegExp.prototype.toString.call(f))))return!1}else if(k(e)||e instanceof Error){if(e.message!==t.message||e.name!==t.name)return!1}else{if(y(e)){if(n||!T(e)&&!N(e)){if(!function(e,t){return e.byteLength===t.byteLength&&0===R(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}(e,t))return!1}else if(!function(e,t){if(e.byteLength!==t.byteLength)return!1;for(var n=0;n<e.byteLength;n++)if(e[n]!==t[n])return!1;return!0}(e,t))return!1;var j=P(e),I=P(t);return j.length===I.length&&M(e,t,n,r,0,j)}if(x(e))return!(!x(t)||e.size!==t.size)&&M(e,t,n,r,2);if(b(e))return!(!b(t)||e.size!==t.size)&&M(e,t,n,r,3);if(v(e)){if(s=t,(o=e).byteLength!==s.byteLength||0!==R(new Uint8Array(o),new Uint8Array(s)))return!1}else if(_(e)&&!function(e,t){return E(e)?E(t)&&u(Number.prototype.valueOf.call(e),Number.prototype.valueOf.call(t)):S(e)?S(t)&&String.prototype.valueOf.call(e)===String.prototype.valueOf.call(t):O(e)?O(t)&&Boolean.prototype.valueOf.call(e)===Boolean.prototype.valueOf.call(t):A(e)?A(t)&&BigInt.prototype.valueOf.call(e)===BigInt.prototype.valueOf.call(t):C(t)&&Symbol.prototype.valueOf.call(e)===Symbol.prototype.valueOf.call(t)}(e,t))return!1}return M(e,t,n,r,0)}function L(e,t){return t.filter((function(t){return p(e,t)}))}function M(e,t,n,r,i,a){if(5===arguments.length){a=Object.keys(e);var o=Object.keys(t);if(a.length!==o.length)return!1}for(var s=0;s<a.length;s++)if(!d(t,a[s]))return!1;if(n&&5===arguments.length){var u=l(e);if(0!==u.length){var c=0;for(s=0;s<u.length;s++){var f=u[s];if(p(e,f)){if(!p(t,f))return!1;a.push(f),c++}else if(p(t,f))return!1}var h=l(t);if(u.length!==h.length&&L(t,h).length!==c)return!1}else{var m=l(t);if(0!==m.length&&0!==L(t,m).length)return!1}}if(0===a.length&&(0===i||1===i&&0===e.length||0===e.size))return!0;if(void 0===r)r={val1:new Map,val2:new Map,position:0};else{var v=r.val1.get(e);if(void 0!==v){var y=r.val2.get(t);if(void 0!==y)return v===y}r.position++}r.val1.set(e,r.position),r.val2.set(t,r.position);var g=V(e,t,n,a,r,i);return r.val1.delete(e),r.val2.delete(t),g}function B(e,t,n,r){for(var i=o(e),a=0;a<i.length;a++){var s=i[a];if(I(t,s,n,r))return e.delete(s),!0}return!1}function D(e){switch(i(e)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":e=+e;case"number":if(c(e))return!1}return!0}function U(e,t,n){var r=D(n);return null!=r?r:t.has(r)&&!e.has(r)}function F(e,t,n,r,i){var a=D(n);if(null!=a)return a;var o=t.get(a);return!(void 0===o&&!t.has(a)||!I(r,o,!1,i))&&!e.has(a)&&I(r,o,!1,i)}function z(e,t,n,r,i,a){for(var s=o(e),u=0;u<s.length;u++){var l=s[u];if(I(n,l,i,a)&&I(r,t.get(l),i,a))return e.delete(l),!0}return!1}function V(e,t,n,a,u,l){var c=0;if(2===l){if(!function(e,t,n,r){for(var a=null,s=o(e),u=0;u<s.length;u++){var l=s[u];if("object"===i(l)&&null!==l)null===a&&(a=new Set),a.add(l);else if(!t.has(l)){if(n)return!1;if(!U(e,t,l))return!1;null===a&&(a=new Set),a.add(l)}}if(null!==a){for(var c=o(t),f=0;f<c.length;f++){var d=c[f];if("object"===i(d)&&null!==d){if(!B(a,d,n,r))return!1}else if(!n&&!e.has(d)&&!B(a,d,n,r))return!1}return 0===a.size}return!0}(e,t,n,u))return!1}else if(3===l){if(!function(e,t,n,a){for(var o=null,u=s(e),l=0;l<u.length;l++){var c=r(u[l],2),f=c[0],d=c[1];if("object"===i(f)&&null!==f)null===o&&(o=new Set),o.add(f);else{var p=t.get(f);if(void 0===p&&!t.has(f)||!I(d,p,n,a)){if(n)return!1;if(!F(e,t,f,d,a))return!1;null===o&&(o=new Set),o.add(f)}}}if(null!==o){for(var h=s(t),m=0;m<h.length;m++){var v=r(h[m],2),y=(f=v[0],v[1]);if("object"===i(f)&&null!==f){if(!z(o,e,f,y,n,a))return!1}else if(!(n||e.has(f)&&I(e.get(f),y,!1,a)||z(o,e,f,y,!1,a)))return!1}return 0===o.size}return!0}(e,t,n,u))return!1}else if(1===l)for(;c<e.length;c++){if(!d(e,c)){if(d(t,c))return!1;for(var f=Object.keys(e);c<f.length;c++){var p=f[c];if(!d(t,p)||!I(e[p],t[p],n,u))return!1}return f.length===Object.keys(t).length}if(!d(t,c)||!I(e[c],t[c],n,u))return!1}for(c=0;c<a.length;c++){var h=a[c];if(!I(e[h],t[h],n,u))return!1}return!0}e.exports={isDeepEqual:function(e,t){return I(e,t,!1)},isDeepStrictEqual:function(e,t){return I(e,t,!0)}}},2470:function(e,t){"use strict";t.byteLength=function(e){var t=u(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,a=u(e),o=a[0],s=a[1],l=new i(function(e,t,n){return 3*(t+n)/4-n}(0,o,s)),c=0,f=s>0?o-4:o;for(n=0;n<f;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],l[c++]=t>>16&255,l[c++]=t>>8&255,l[c++]=255&t;return 2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,l[c++]=255&t),1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,l[c++]=t>>8&255,l[c++]=255&t),l},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,a=[],o=16383,s=0,u=r-i;s<u;s+=o)a.push(l(e,s,s+o>u?u:s+o));return 1===i?(t=e[r-1],a.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],a.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),a.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,s=a.length;o<s;++o)n[o]=a[o],r[a.charCodeAt(o)]=o;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,r){for(var i,a,o=[],s=t;s<r;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),o.push(n[(a=i)>>18&63]+n[a>>12&63]+n[a>>6&63]+n[63&a]);return o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},4227:function(e,t,n){"use strict";var r=n(918).Buffer,i=n(7490),a=n(5205),o=n(400),s=n(8106),u=n(1833),l=n(7572);for(var c in l)t[c]=l[c];function f(e){if("number"!=typeof e||e<t.DEFLATE||e>t.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=e,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}t.NONE=0,t.DEFLATE=1,t.INFLATE=2,t.GZIP=3,t.GUNZIP=4,t.DEFLATERAW=5,t.INFLATERAW=6,t.UNZIP=7,f.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,a(this.init_done,"close before init"),a(this.mode<=t.UNZIP),this.mode===t.DEFLATE||this.mode===t.GZIP||this.mode===t.DEFLATERAW?s.deflateEnd(this.strm):this.mode!==t.INFLATE&&this.mode!==t.GUNZIP&&this.mode!==t.INFLATERAW&&this.mode!==t.UNZIP||u.inflateEnd(this.strm),this.mode=t.NONE,this.dictionary=null)},f.prototype.write=function(e,t,n,r,i,a,o){return this._write(!0,e,t,n,r,i,a,o)},f.prototype.writeSync=function(e,t,n,r,i,a,o){return this._write(!1,e,t,n,r,i,a,o)},f.prototype._write=function(e,n,o,s,u,l,c,f){if(a.equal(arguments.length,8),a(this.init_done,"write before init"),a(this.mode!==t.NONE,"already finalized"),a.equal(!1,this.write_in_progress,"write already in progress"),a.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,a.equal(!1,void 0===n,"must provide flush value"),this.write_in_progress=!0,n!==t.Z_NO_FLUSH&&n!==t.Z_PARTIAL_FLUSH&&n!==t.Z_SYNC_FLUSH&&n!==t.Z_FULL_FLUSH&&n!==t.Z_FINISH&&n!==t.Z_BLOCK)throw new Error("Invalid flush value");if(null==o&&(o=r.alloc(0),u=0,s=0),this.strm.avail_in=u,this.strm.input=o,this.strm.next_in=s,this.strm.avail_out=f,this.strm.output=l,this.strm.next_out=c,this.flush=n,!e)return this._process(),this._checkError()?this._afterSync():void 0;var d=this;return i.nextTick((function(){d._process(),d._after()})),this},f.prototype._afterSync=function(){var e=this.strm.avail_out,t=this.strm.avail_in;return this.write_in_progress=!1,[t,e]},f.prototype._process=function(){var e=null;switch(this.mode){case t.DEFLATE:case t.GZIP:case t.DEFLATERAW:this.err=s.deflate(this.strm,this.flush);break;case t.UNZIP:switch(this.strm.avail_in>0&&(e=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(null===e)break;if(31!==this.strm.input[e]){this.mode=t.INFLATE;break}if(this.gzip_id_bytes_read=1,e++,1===this.strm.avail_in)break;case 1:if(null===e)break;139===this.strm.input[e]?(this.gzip_id_bytes_read=2,this.mode=t.GUNZIP):this.mode=t.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case t.INFLATE:case t.GUNZIP:case t.INFLATERAW:for(this.err=u.inflate(this.strm,this.flush),this.err===t.Z_NEED_DICT&&this.dictionary&&(this.err=u.inflateSetDictionary(this.strm,this.dictionary),this.err===t.Z_OK?this.err=u.inflate(this.strm,this.flush):this.err===t.Z_DATA_ERROR&&(this.err=t.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===t.GUNZIP&&this.err===t.Z_STREAM_END&&0!==this.strm.next_in[0];)this.reset(),this.err=u.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},f.prototype._checkError=function(){switch(this.err){case t.Z_OK:case t.Z_BUF_ERROR:if(0!==this.strm.avail_out&&this.flush===t.Z_FINISH)return this._error("unexpected end of file"),!1;break;case t.Z_STREAM_END:break;case t.Z_NEED_DICT:return null==this.dictionary?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},f.prototype._after=function(){if(this._checkError()){var e=this.strm.avail_out,t=this.strm.avail_in;this.write_in_progress=!1,this.callback(t,e),this.pending_close&&this.close()}},f.prototype._error=function(e){this.strm.msg&&(e=this.strm.msg),this.onerror(e,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},f.prototype.init=function(e,n,r,i,o){a(4===arguments.length||5===arguments.length,"init(windowBits, level, memLevel, strategy, [dictionary])"),a(e>=8&&e<=15,"invalid windowBits"),a(n>=-1&&n<=9,"invalid compression level"),a(r>=1&&r<=9,"invalid memlevel"),a(i===t.Z_FILTERED||i===t.Z_HUFFMAN_ONLY||i===t.Z_RLE||i===t.Z_FIXED||i===t.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(n,e,r,i,o),this._setDictionary()},f.prototype.params=function(){throw new Error("deflateParams Not supported")},f.prototype.reset=function(){this._reset(),this._setDictionary()},f.prototype._init=function(e,n,r,i,a){switch(this.level=e,this.windowBits=n,this.memLevel=r,this.strategy=i,this.flush=t.Z_NO_FLUSH,this.err=t.Z_OK,this.mode!==t.GZIP&&this.mode!==t.GUNZIP||(this.windowBits+=16),this.mode===t.UNZIP&&(this.windowBits+=32),this.mode!==t.DEFLATERAW&&this.mode!==t.INFLATERAW||(this.windowBits=-1*this.windowBits),this.strm=new o,this.mode){case t.DEFLATE:case t.GZIP:case t.DEFLATERAW:this.err=s.deflateInit2(this.strm,this.level,t.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case t.INFLATE:case t.GUNZIP:case t.INFLATERAW:case t.UNZIP:this.err=u.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==t.Z_OK&&this._error("Init error"),this.dictionary=a,this.write_in_progress=!1,this.init_done=!0},f.prototype._setDictionary=function(){if(null!=this.dictionary){switch(this.err=t.Z_OK,this.mode){case t.DEFLATE:case t.DEFLATERAW:this.err=s.deflateSetDictionary(this.strm,this.dictionary)}this.err!==t.Z_OK&&this._error("Failed to set dictionary")}},f.prototype._reset=function(){switch(this.err=t.Z_OK,this.mode){case t.DEFLATE:case t.DEFLATERAW:case t.GZIP:this.err=s.deflateReset(this.strm);break;case t.INFLATE:case t.INFLATERAW:case t.GUNZIP:this.err=u.inflateReset(this.strm)}this.err!==t.Z_OK&&this._error("Failed to reset stream")},t.Zlib=f},1899:function(e,t,n){"use strict";var r=n(7490),i=n(918).Buffer,a=n(3841).Transform,o=n(4227),s=n(7736),u=n(5205).ok,l=n(918).kMaxLength,c="Cannot create final Buffer. It would be larger than 0x"+l.toString(16)+" bytes";o.Z_MIN_WINDOWBITS=8,o.Z_MAX_WINDOWBITS=15,o.Z_DEFAULT_WINDOWBITS=15,o.Z_MIN_CHUNK=64,o.Z_MAX_CHUNK=1/0,o.Z_DEFAULT_CHUNK=16384,o.Z_MIN_MEMLEVEL=1,o.Z_MAX_MEMLEVEL=9,o.Z_DEFAULT_MEMLEVEL=8,o.Z_MIN_LEVEL=-1,o.Z_MAX_LEVEL=9,o.Z_DEFAULT_LEVEL=o.Z_DEFAULT_COMPRESSION;for(var f=Object.keys(o),d=0;d<f.length;d++){var p=f[d];p.match(/^Z/)&&Object.defineProperty(t,p,{enumerable:!0,value:o[p],writable:!1})}for(var h={Z_OK:o.Z_OK,Z_STREAM_END:o.Z_STREAM_END,Z_NEED_DICT:o.Z_NEED_DICT,Z_ERRNO:o.Z_ERRNO,Z_STREAM_ERROR:o.Z_STREAM_ERROR,Z_DATA_ERROR:o.Z_DATA_ERROR,Z_MEM_ERROR:o.Z_MEM_ERROR,Z_BUF_ERROR:o.Z_BUF_ERROR,Z_VERSION_ERROR:o.Z_VERSION_ERROR},m=Object.keys(h),v=0;v<m.length;v++){var y=m[v];h[h[y]]=y}function g(e,t,n){var r=[],a=0;function o(){for(var t;null!==(t=e.read());)r.push(t),a+=t.length;e.once("readable",o)}function s(){var t,o=null;a>=l?o=new RangeError(c):t=i.concat(r,a),r=[],e.close(),n(o,t)}e.on("error",(function(t){e.removeListener("end",s),e.removeListener("readable",o),n(t)})),e.on("end",s),e.end(t),o()}function b(e,t){if("string"==typeof t&&(t=i.from(t)),!i.isBuffer(t))throw new TypeError("Not a string or buffer");var n=e._finishFlushFlag;return e._processChunk(t,n)}function w(e){if(!(this instanceof w))return new w(e);C.call(this,e,o.DEFLATE)}function x(e){if(!(this instanceof x))return new x(e);C.call(this,e,o.INFLATE)}function k(e){if(!(this instanceof k))return new k(e);C.call(this,e,o.GZIP)}function _(e){if(!(this instanceof _))return new _(e);C.call(this,e,o.GUNZIP)}function E(e){if(!(this instanceof E))return new E(e);C.call(this,e,o.DEFLATERAW)}function S(e){if(!(this instanceof S))return new S(e);C.call(this,e,o.INFLATERAW)}function O(e){if(!(this instanceof O))return new O(e);C.call(this,e,o.UNZIP)}function A(e){return e===o.Z_NO_FLUSH||e===o.Z_PARTIAL_FLUSH||e===o.Z_SYNC_FLUSH||e===o.Z_FULL_FLUSH||e===o.Z_FINISH||e===o.Z_BLOCK}function C(e,n){var r=this;if(this._opts=e=e||{},this._chunkSize=e.chunkSize||t.Z_DEFAULT_CHUNK,a.call(this,e),e.flush&&!A(e.flush))throw new Error("Invalid flush flag: "+e.flush);if(e.finishFlush&&!A(e.finishFlush))throw new Error("Invalid flush flag: "+e.finishFlush);if(this._flushFlag=e.flush||o.Z_NO_FLUSH,this._finishFlushFlag=void 0!==e.finishFlush?e.finishFlush:o.Z_FINISH,e.chunkSize&&(e.chunkSize<t.Z_MIN_CHUNK||e.chunkSize>t.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+e.chunkSize);if(e.windowBits&&(e.windowBits<t.Z_MIN_WINDOWBITS||e.windowBits>t.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+e.windowBits);if(e.level&&(e.level<t.Z_MIN_LEVEL||e.level>t.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+e.level);if(e.memLevel&&(e.memLevel<t.Z_MIN_MEMLEVEL||e.memLevel>t.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+e.memLevel);if(e.strategy&&e.strategy!=t.Z_FILTERED&&e.strategy!=t.Z_HUFFMAN_ONLY&&e.strategy!=t.Z_RLE&&e.strategy!=t.Z_FIXED&&e.strategy!=t.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+e.strategy);if(e.dictionary&&!i.isBuffer(e.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new o.Zlib(n);var s=this;this._hadError=!1,this._handle.onerror=function(e,n){T(s),s._hadError=!0;var r=new Error(e);r.errno=n,r.code=t.codes[n],s.emit("error",r)};var u=t.Z_DEFAULT_COMPRESSION;"number"==typeof e.level&&(u=e.level);var l=t.Z_DEFAULT_STRATEGY;"number"==typeof e.strategy&&(l=e.strategy),this._handle.init(e.windowBits||t.Z_DEFAULT_WINDOWBITS,u,e.memLevel||t.Z_DEFAULT_MEMLEVEL,l,e.dictionary),this._buffer=i.allocUnsafe(this._chunkSize),this._offset=0,this._level=u,this._strategy=l,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!r._handle},configurable:!0,enumerable:!0})}function T(e,t){t&&r.nextTick(t),e._handle&&(e._handle.close(),e._handle=null)}function N(e){e.emit("close")}Object.defineProperty(t,"codes",{enumerable:!0,value:Object.freeze(h),writable:!1}),t.Deflate=w,t.Inflate=x,t.Gzip=k,t.Gunzip=_,t.DeflateRaw=E,t.InflateRaw=S,t.Unzip=O,t.createDeflate=function(e){return new w(e)},t.createInflate=function(e){return new x(e)},t.createDeflateRaw=function(e){return new E(e)},t.createInflateRaw=function(e){return new S(e)},t.createGzip=function(e){return new k(e)},t.createGunzip=function(e){return new _(e)},t.createUnzip=function(e){return new O(e)},t.deflate=function(e,t,n){return"function"==typeof t&&(n=t,t={}),g(new w(t),e,n)},t.deflateSync=function(e,t){return b(new w(t),e)},t.gzip=function(e,t,n){return"function"==typeof t&&(n=t,t={}),g(new k(t),e,n)},t.gzipSync=function(e,t){return b(new k(t),e)},t.deflateRaw=function(e,t,n){return"function"==typeof t&&(n=t,t={}),g(new E(t),e,n)},t.deflateRawSync=function(e,t){return b(new E(t),e)},t.unzip=function(e,t,n){return"function"==typeof t&&(n=t,t={}),g(new O(t),e,n)},t.unzipSync=function(e,t){return b(new O(t),e)},t.inflate=function(e,t,n){return"function"==typeof t&&(n=t,t={}),g(new x(t),e,n)},t.inflateSync=function(e,t){return b(new x(t),e)},t.gunzip=function(e,t,n){return"function"==typeof t&&(n=t,t={}),g(new _(t),e,n)},t.gunzipSync=function(e,t){return b(new _(t),e)},t.inflateRaw=function(e,t,n){return"function"==typeof t&&(n=t,t={}),g(new S(t),e,n)},t.inflateRawSync=function(e,t){return b(new S(t),e)},s.inherits(C,a),C.prototype.params=function(e,n,i){if(e<t.Z_MIN_LEVEL||e>t.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+e);if(n!=t.Z_FILTERED&&n!=t.Z_HUFFMAN_ONLY&&n!=t.Z_RLE&&n!=t.Z_FIXED&&n!=t.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+n);if(this._level!==e||this._strategy!==n){var a=this;this.flush(o.Z_SYNC_FLUSH,(function(){u(a._handle,"zlib binding closed"),a._handle.params(e,n),a._hadError||(a._level=e,a._strategy=n,i&&i())}))}else r.nextTick(i)},C.prototype.reset=function(){return u(this._handle,"zlib binding closed"),this._handle.reset()},C.prototype._flush=function(e){this._transform(i.alloc(0),"",e)},C.prototype.flush=function(e,t){var n=this,a=this._writableState;("function"==typeof e||void 0===e&&!t)&&(t=e,e=o.Z_FULL_FLUSH),a.ended?t&&r.nextTick(t):a.ending?t&&this.once("end",t):a.needDrain?t&&this.once("drain",(function(){return n.flush(e,t)})):(this._flushFlag=e,this.write(i.alloc(0),"",t))},C.prototype.close=function(e){T(this,e),r.nextTick(N,this)},C.prototype._transform=function(e,t,n){var r,a=this._writableState,s=(a.ending||a.ended)&&(!e||a.length===e.length);return null===e||i.isBuffer(e)?this._handle?(s?r=this._finishFlushFlag:(r=this._flushFlag,e.length>=a.length&&(this._flushFlag=this._opts.flush||o.Z_NO_FLUSH)),void this._processChunk(e,r,n)):n(new Error("zlib binding closed")):n(new Error("invalid input"))},C.prototype._processChunk=function(e,t,n){var r=e&&e.length,a=this._chunkSize-this._offset,o=0,s=this,f="function"==typeof n;if(!f){var d,p=[],h=0;this.on("error",(function(e){d=e})),u(this._handle,"zlib binding closed");do{var m=this._handle.writeSync(t,e,o,r,this._buffer,this._offset,a)}while(!this._hadError&&g(m[0],m[1]));if(this._hadError)throw d;if(h>=l)throw T(this),new RangeError(c);var v=i.concat(p,h);return T(this),v}u(this._handle,"zlib binding closed");var y=this._handle.write(t,e,o,r,this._buffer,this._offset,a);function g(l,c){if(this&&(this.buffer=null,this.callback=null),!s._hadError){var d=a-c;if(u(d>=0,"have should not go down"),d>0){var m=s._buffer.slice(s._offset,s._offset+d);s._offset+=d,f?s.push(m):(p.push(m),h+=m.length)}if((0===c||s._offset>=s._chunkSize)&&(a=s._chunkSize,s._offset=0,s._buffer=i.allocUnsafe(s._chunkSize)),0===c){if(o+=r-l,r=l,!f)return!0;var v=s._handle.write(t,e,o,r,s._buffer,s._offset,s._chunkSize);return v.callback=g,void(v.buffer=e)}if(!f)return!1;n()}}y.buffer=e,y.callback=g},s.inherits(w,C),s.inherits(x,C),s.inherits(k,C),s.inherits(_,C),s.inherits(E,C),s.inherits(S,C),s.inherits(O,C)},918:function(e,t,n){"use strict";var r=n(8466),i=n(6690).default,a=n(9728).default,o=n(6115).default,s=n(1655).default,u=n(6389).default,l=n(2470),c=n(545),f="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=h,t.SlowBuffer=function(e){return+e!=e&&(e=0),h.alloc(+e)},t.INSPECT_MAX_BYTES=50;var d=2147483647;function p(e){if(e>d)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,h.prototype),t}function h(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return y(e)}return m(e,t,n)}function m(e,t,n){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!h.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=0|x(e,t),r=p(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(te(e,Uint8Array)){var t=new Uint8Array(e);return b(t.buffer,t.byteOffset,t.byteLength)}return g(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(te(e,ArrayBuffer)||e&&te(e.buffer,ArrayBuffer))return b(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(te(e,SharedArrayBuffer)||e&&te(e.buffer,SharedArrayBuffer)))return b(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return h.from(r,t,n);var i=function(e){if(h.isBuffer(e)){var t=0|w(e.length),n=p(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||ne(e.length)?p(0):g(e):"Buffer"===e.type&&Array.isArray(e.data)?g(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return h.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function v(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function y(e){return v(e),p(e<0?0:0|w(e))}function g(e){for(var t=e.length<0?0:0|w(e.length),n=p(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function b(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');var r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,h.prototype),r}function w(e){if(e>=d)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+d.toString(16)+" bytes");return 0|e}function x(e,t){if(h.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||te(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return Q(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return J(e).length;default:if(i)return r?-1:Q(e).length;t=(""+t).toLowerCase(),i=!0}}function k(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return M(this,t,n);case"utf8":case"utf-8":return P(this,t,n);case"ascii":return I(this,t,n);case"latin1":case"binary":return L(this,t,n);case"base64":return j(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function _(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function E(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),ne(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=h.from(t,r)),h.isBuffer(t))return 0===t.length?-1:S(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):S(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function S(e,t,n,r,i){var a,o=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,s/=2,u/=2,n/=2}function l(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var c=-1;for(a=n;a<s;a++)if(l(e,a)===l(t,-1===c?0:a-c)){if(-1===c&&(c=a),a-c+1===u)return c*o}else-1!==c&&(a-=a-c),c=-1}else for(n+u>s&&(n=s-u),a=n;a>=0;a--){for(var f=!0,d=0;d<u;d++)if(l(e,a+d)!==l(t,d)){f=!1;break}if(f)return a}return-1}function O(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var a,o=t.length;for(r>o/2&&(r=o/2),a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(ne(s))return a;e[n+a]=s}return a}function A(e,t,n,r){return ee(Q(t,e.length-n),e,n,r)}function C(e,t,n,r){return ee(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function T(e,t,n,r){return ee(J(t),e,n,r)}function N(e,t,n,r){return ee(function(e,t){for(var n,r,i,a=[],o=0;o<e.length&&!((t-=2)<0);++o)r=(n=e.charCodeAt(o))>>8,i=n%256,a.push(i),a.push(r);return a}(t,e.length-n),e,n,r)}function j(e,t,n){return 0===t&&n===e.length?l.fromByteArray(e):l.fromByteArray(e.slice(t,n))}function P(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var a=e[i],o=null,s=a>239?4:a>223?3:a>191?2:1;if(i+s<=n){var u=void 0,l=void 0,c=void 0,f=void 0;switch(s){case 1:a<128&&(o=a);break;case 2:128==(192&(u=e[i+1]))&&(f=(31&a)<<6|63&u)>127&&(o=f);break;case 3:u=e[i+1],l=e[i+2],128==(192&u)&&128==(192&l)&&(f=(15&a)<<12|(63&u)<<6|63&l)>2047&&(f<55296||f>57343)&&(o=f);break;case 4:u=e[i+1],l=e[i+2],c=e[i+3],128==(192&u)&&128==(192&l)&&128==(192&c)&&(f=(15&a)<<18|(63&u)<<12|(63&l)<<6|63&c)>65535&&f<1114112&&(o=f)}}null===o?(o=65533,s=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=s}return function(e){var t=e.length;if(t<=R)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=R));return n}(r)}t.kMaxLength=d,h.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),h.TYPED_ARRAY_SUPPORT||void 0===r||"function"!=typeof r.error||r.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(h.prototype,"parent",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.buffer}}),Object.defineProperty(h.prototype,"offset",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.byteOffset}}),h.poolSize=8192,h.from=function(e,t,n){return m(e,t,n)},Object.setPrototypeOf(h.prototype,Uint8Array.prototype),Object.setPrototypeOf(h,Uint8Array),h.alloc=function(e,t,n){return function(e,t,n){return v(e),e<=0?p(e):void 0!==t?"string"==typeof n?p(e).fill(t,n):p(e).fill(t):p(e)}(e,t,n)},h.allocUnsafe=function(e){return y(e)},h.allocUnsafeSlow=function(e){return y(e)},h.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==h.prototype},h.compare=function(e,t){if(te(e,Uint8Array)&&(e=h.from(e,e.offset,e.byteLength)),te(t,Uint8Array)&&(t=h.from(t,t.offset,t.byteLength)),!h.isBuffer(e)||!h.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},h.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},h.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return h.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=h.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(te(a,Uint8Array))i+a.length>r.length?(h.isBuffer(a)||(a=h.from(a)),a.copy(r,i)):Uint8Array.prototype.set.call(r,a,i);else{if(!h.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i)}i+=a.length}return r},h.byteLength=x,h.prototype._isBuffer=!0,h.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)_(this,t,t+1);return this},h.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)_(this,t,t+3),_(this,t+1,t+2);return this},h.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)_(this,t,t+7),_(this,t+1,t+6),_(this,t+2,t+5),_(this,t+3,t+4);return this},h.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?P(this,0,e):k.apply(this,arguments)},h.prototype.toLocaleString=h.prototype.toString,h.prototype.equals=function(e){if(!h.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===h.compare(this,e)},h.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},f&&(h.prototype[f]=h.prototype.inspect),h.prototype.compare=function(e,t,n,r,i){if(te(e,Uint8Array)&&(e=h.from(e,e.offset,e.byteLength)),!h.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0),s=Math.min(a,o),u=this.slice(r,i),l=e.slice(t,n),c=0;c<s;++c)if(u[c]!==l[c]){a=u[c],o=l[c];break}return a<o?-1:o<a?1:0},h.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},h.prototype.indexOf=function(e,t,n){return E(this,e,t,n,!0)},h.prototype.lastIndexOf=function(e,t,n){return E(this,e,t,n,!1)},h.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return O(this,e,t,n);case"utf8":case"utf-8":return A(this,e,t,n);case"ascii":case"latin1":case"binary":return C(this,e,t,n);case"base64":return T(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var R=4096;function I(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function L(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function M(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",a=t;a<n;++a)i+=re[e[a]];return i}function B(e,t,n){for(var r=e.slice(t,n),i="",a=0;a<r.length-1;a+=2)i+=String.fromCharCode(r[a]+256*r[a+1]);return i}function D(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function U(e,t,n,r,i,a){if(!h.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function F(e,t,n,r,i){Y(t,r,i,e,n,7);var a=Number(t&BigInt(4294967295));e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a;var o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,n}function z(e,t,n,r,i){Y(t,r,i,e,n,7);var a=Number(t&BigInt(4294967295));e[n+7]=a,a>>=8,e[n+6]=a,a>>=8,e[n+5]=a,a>>=8,e[n+4]=a;var o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=o,o>>=8,e[n+2]=o,o>>=8,e[n+1]=o,o>>=8,e[n]=o,n+8}function V(e,t,n,r,i,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function H(e,t,n,r,i){return t=+t,n>>>=0,i||V(e,0,n,4),c.write(e,t,n,r,23,4),n+4}function W(e,t,n,r,i){return t=+t,n>>>=0,i||V(e,0,n,8),c.write(e,t,n,r,52,8),n+8}h.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return Object.setPrototypeOf(r,h.prototype),r},h.prototype.readUintLE=h.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||D(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r},h.prototype.readUintBE=h.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||D(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},h.prototype.readUint8=h.prototype.readUInt8=function(e,t){return e>>>=0,t||D(e,1,this.length),this[e]},h.prototype.readUint16LE=h.prototype.readUInt16LE=function(e,t){return e>>>=0,t||D(e,2,this.length),this[e]|this[e+1]<<8},h.prototype.readUint16BE=h.prototype.readUInt16BE=function(e,t){return e>>>=0,t||D(e,2,this.length),this[e]<<8|this[e+1]},h.prototype.readUint32LE=h.prototype.readUInt32LE=function(e,t){return e>>>=0,t||D(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},h.prototype.readUint32BE=h.prototype.readUInt32BE=function(e,t){return e>>>=0,t||D(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},h.prototype.readBigUInt64LE=ie((function(e){$(e>>>=0,"offset");var t=this[e],n=this[e+7];void 0!==t&&void 0!==n||K(e,this.length-8);var r=t+this[++e]*Math.pow(2,8)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,24),i=this[++e]+this[++e]*Math.pow(2,8)+this[++e]*Math.pow(2,16)+n*Math.pow(2,24);return BigInt(r)+(BigInt(i)<<BigInt(32))})),h.prototype.readBigUInt64BE=ie((function(e){$(e>>>=0,"offset");var t=this[e],n=this[e+7];void 0!==t&&void 0!==n||K(e,this.length-8);var r=t*Math.pow(2,24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+this[++e],i=this[++e]*Math.pow(2,24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+n;return(BigInt(r)<<BigInt(32))+BigInt(i)})),h.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||D(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},h.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||D(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},h.prototype.readInt8=function(e,t){return e>>>=0,t||D(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},h.prototype.readInt16LE=function(e,t){e>>>=0,t||D(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},h.prototype.readInt16BE=function(e,t){e>>>=0,t||D(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},h.prototype.readInt32LE=function(e,t){return e>>>=0,t||D(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},h.prototype.readInt32BE=function(e,t){return e>>>=0,t||D(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},h.prototype.readBigInt64LE=ie((function(e){$(e>>>=0,"offset");var t=this[e],n=this[e+7];void 0!==t&&void 0!==n||K(e,this.length-8);var r=this[e+4]+this[e+5]*Math.pow(2,8)+this[e+6]*Math.pow(2,16)+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+this[++e]*Math.pow(2,8)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,24))})),h.prototype.readBigInt64BE=ie((function(e){$(e>>>=0,"offset");var t=this[e],n=this[e+7];void 0!==t&&void 0!==n||K(e,this.length-8);var r=(t<<24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*Math.pow(2,24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+n)})),h.prototype.readFloatLE=function(e,t){return e>>>=0,t||D(e,4,this.length),c.read(this,e,!0,23,4)},h.prototype.readFloatBE=function(e,t){return e>>>=0,t||D(e,4,this.length),c.read(this,e,!1,23,4)},h.prototype.readDoubleLE=function(e,t){return e>>>=0,t||D(e,8,this.length),c.read(this,e,!0,52,8)},h.prototype.readDoubleBE=function(e,t){return e>>>=0,t||D(e,8,this.length),c.read(this,e,!1,52,8)},h.prototype.writeUintLE=h.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||U(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,a=0;for(this[t]=255&e;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},h.prototype.writeUintBE=h.prototype.writeUIntBE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||U(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},h.prototype.writeUint8=h.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,1,255,0),this[t]=255&e,t+1},h.prototype.writeUint16LE=h.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},h.prototype.writeUint16BE=h.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},h.prototype.writeUint32LE=h.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},h.prototype.writeUint32BE=h.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},h.prototype.writeBigUInt64LE=ie((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return F(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),h.prototype.writeBigUInt64BE=ie((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return z(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),h.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);U(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a<n&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},h.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);U(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},h.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},h.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},h.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},h.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},h.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},h.prototype.writeBigInt64LE=ie((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return F(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),h.prototype.writeBigInt64BE=ie((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return z(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),h.prototype.writeFloatLE=function(e,t,n){return H(this,e,t,!0,n)},h.prototype.writeFloatBE=function(e,t,n){return H(this,e,t,!1,n)},h.prototype.writeDoubleLE=function(e,t,n){return W(this,e,t,!0,n)},h.prototype.writeDoubleBE=function(e,t,n){return W(this,e,t,!1,n)},h.prototype.copy=function(e,t,n,r){if(!h.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i=r-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},h.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!h.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){var i=e.charCodeAt(0);("utf8"===r&&i<128||"latin1"===r)&&(e=i)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var a;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(a=t;a<n;++a)this[a]=e;else{var o=h.isBuffer(e)?e:h.from(e,r),s=o.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<n-t;++a)this[a+t]=o[a%s]}return this};var q={};function G(e,t,n){q[e]=function(n){s(l,n);var r=u(l);function l(){var n;return i(this,l),n=r.call(this),Object.defineProperty(o(n),"message",{value:t.apply(o(n),arguments),writable:!0,configurable:!0}),n.name="".concat(n.name," [").concat(e,"]"),n.stack,delete n.name,n}return a(l,[{key:"code",get:function(){return e},set:function(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}},{key:"toString",value:function(){return"".concat(this.name," [").concat(e,"]: ").concat(this.message)}}]),l}(n)}function Z(e){for(var t="",n=e.length,r="-"===e[0]?1:0;n>=r+4;n-=3)t="_".concat(e.slice(n-3,n)).concat(t);return"".concat(e.slice(0,n)).concat(t)}function Y(e,t,n,r,i,a){if(e>n||e<t){var o,s="bigint"==typeof t?"n":"";throw o=a>3?0===t||t===BigInt(0)?">= 0".concat(s," and < 2").concat(s," ** ").concat(8*(a+1)).concat(s):">= -(2".concat(s," ** ").concat(8*(a+1)-1).concat(s,") and < 2 ** ")+"".concat(8*(a+1)-1).concat(s):">= ".concat(t).concat(s," and <= ").concat(n).concat(s),new q.ERR_OUT_OF_RANGE("value",o,e)}!function(e,t,n){$(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||K(t,e.length-(n+1))}(r,i,a)}function $(e,t){if("number"!=typeof e)throw new q.ERR_INVALID_ARG_TYPE(t,"number",e)}function K(e,t,n){if(Math.floor(e)!==e)throw $(e,n),new q.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new q.ERR_BUFFER_OUT_OF_BOUNDS;throw new q.ERR_OUT_OF_RANGE(n||"offset",">= ".concat(n?1:0," and <= ").concat(t),e)}G("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?"".concat(e," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"}),RangeError),G("ERR_INVALID_ARG_TYPE",(function(e,t){return'The "'.concat(e,'" argument must be of type number. Received type ').concat(typeof t)}),TypeError),G("ERR_OUT_OF_RANGE",(function(e,t,n){var r='The value of "'.concat(e,'" is out of range.'),i=n;return Number.isInteger(n)&&Math.abs(n)>Math.pow(2,32)?i=Z(String(n)):"bigint"==typeof n&&(i=String(n),(n>Math.pow(BigInt(2),BigInt(32))||n<-Math.pow(BigInt(2),BigInt(32)))&&(i=Z(i)),i+="n"),r+" It must be ".concat(t,". Received ").concat(i)}),RangeError);var X=/[^+/0-9A-Za-z-_]/g;function Q(e,t){var n;t=t||1/0;for(var r=e.length,i=null,a=[],o=0;o<r;++o){if((n=e.charCodeAt(o))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function J(e){return l.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(X,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function ee(e,t,n,r){var i;for(i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function te(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function ne(e){return e!=e}var re=function(){for(var e="0123456789abcdef",t=new Array(256),n=0;n<16;++n)for(var r=16*n,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t}();function ie(e){return"undefined"==typeof BigInt?ae:e}function ae(){throw new Error("BigInt not supported")}},4680:function(e,t,n){"use strict";var r=n(8476),i=n(9962),a=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&a(e,".prototype.")>-1?i(n):n}},9962:function(e,t,n){"use strict";var r=n(1199),i=n(8476),a=i("%Function.prototype.apply%"),o=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||r.call(o,a),u=i("%Object.getOwnPropertyDescriptor%",!0),l=i("%Object.defineProperty%",!0),c=i("%Math.max%");if(l)try{l({},"a",{value:1})}catch(e){l=null}e.exports=function(e){var t=s(r,o,arguments);if(u&&l){var n=u(t,"length");n.configurable&&l(t,"length",{value:1+c(0,e.length-(arguments.length-1))})}return t};var f=function(){return s(r,a,arguments)};l?l(e.exports,"apply",{value:f}):e.exports.apply=f},8466:function(e,t,n){var r=n(7736),i=n(5205);function a(){return(new Date).getTime()}var o,s=Array.prototype.slice,u={};o=void 0!==n.g&&n.g.console?n.g.console:"undefined"!=typeof window&&window.console?window.console:{};for(var l=[[function(){},"log"],[function(){o.log.apply(o,arguments)},"info"],[function(){o.log.apply(o,arguments)},"warn"],[function(){o.warn.apply(o,arguments)},"error"],[function(e){u[e]=a()},"time"],[function(e){var t=u[e];if(!t)throw new Error("No such label: "+e);delete u[e];var n=a()-t;o.log(e+": "+n+"ms")},"timeEnd"],[function(){var e=new Error;e.name="Trace",e.message=r.format.apply(null,arguments),o.error(e.stack)},"trace"],[function(e){o.log(r.inspect(e)+"\n")},"dir"],[function(e){if(!e){var t=s.call(arguments,1);i.ok(!1,r.format.apply(null,t))}},"assert"]],c=0;c<l.length;c++){var f=l[c],d=f[0],p=f[1];o[p]||(o[p]=d)}e.exports=o},9959:function(e,t,n){"use strict";var r=n(6328),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),a=Object.prototype.toString,o=Array.prototype.concat,s=Object.defineProperty,u=n(2926)(),l=s&&u,c=function(e,t,n,r){var i;(!(t in e)||"function"==typeof(i=r)&&"[object Function]"===a.call(i)&&r())&&(l?s(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0}):e[t]=n)},f=function(e,t){var n=arguments.length>2?arguments[2]:{},a=r(t);i&&(a=o.call(a,Object.getOwnPropertySymbols(t)));for(var s=0;s<a.length;s+=1)c(e,a[s],t[a[s]],n[a[s]])};f.supportsDescriptors=!!l,e.exports=f},3843:function(e){"use strict";function t(e,t){if(null==e)throw new TypeError("Cannot convert first argument to object");for(var n=Object(e),r=1;r<arguments.length;r++){var i=arguments[r];if(null!=i)for(var a=Object.keys(Object(i)),o=0,s=a.length;o<s;o++){var u=a[o],l=Object.getOwnPropertyDescriptor(i,u);void 0!==l&&l.enumerable&&(n[u]=i[u])}}return n}e.exports={assign:t,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:t})}}},8041:function(e,t,n){"use strict";var r,i=n(8466),a="object"==typeof Reflect?Reflect:null,o=a&&"function"==typeof a.apply?a.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=a&&"function"==typeof a.ownKeys?a.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!=e};function u(){u.init.call(this)}e.exports=u,e.exports.once=function(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,a),r(n)}function a(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}g(e,t,a,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&g(e,"error",t,{once:!0})}(e,i)}))},u.EventEmitter=u,u.prototype._events=void 0,u.prototype._eventsCount=0,u.prototype._maxListeners=void 0;var l=10;function c(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function f(e){return void 0===e._maxListeners?u.defaultMaxListeners:e._maxListeners}function d(e,t,n,r){var a,o,s,u;if(c(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),s=o[t]),void 0===s)s=o[t]=n,++e._eventsCount;else if("function"==typeof s?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(a=f(e))>0&&s.length>a&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,u=l,i&&i.warn&&i.warn(u)}return e}function p(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=p.bind(r);return i.listener=n,r.wrapFn=i,i}function m(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):y(i,i.length)}function v(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function y(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function g(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(a){r.once&&e.removeEventListener(t,i),n(a)}))}}Object.defineProperty(u,"defaultMaxListeners",{enumerable:!0,get:function(){return l},set:function(e){if("number"!=typeof e||e<0||s(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");l=e}}),u.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},u.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||s(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},u.prototype.getMaxListeners=function(){return f(this)},u.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=i[e];if(void 0===u)return!1;if("function"==typeof u)o(u,this,t);else{var l=u.length,c=y(u,l);for(n=0;n<l;++n)o(c[n],this,t)}return!0},u.prototype.addListener=function(e,t){return d(this,e,t,!1)},u.prototype.on=u.prototype.addListener,u.prototype.prependListener=function(e,t){return d(this,e,t,!0)},u.prototype.once=function(e,t){return c(t),this.on(e,h(this,e,t)),this},u.prototype.prependOnceListener=function(e,t){return c(t),this.prependListener(e,h(this,e,t)),this},u.prototype.removeListener=function(e,t){var n,r,i,a,o;if(c(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){o=n[a].listener,i=a;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,o||t)}return this},u.prototype.off=u.prototype.removeListener,u.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,a=Object.keys(n);for(r=0;r<a.length;++r)"removeListener"!==(i=a[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},u.prototype.listeners=function(e){return m(this,e,!0)},u.prototype.rawListeners=function(e){return m(this,e,!1)},u.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):v.call(e,t)},u.prototype.listenerCount=v,u.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},5767:function(e,t,n){"use strict";var r=n(8866),i=Object.prototype.toString,a=Object.prototype.hasOwnProperty,o=function(e,t,n){for(var r=0,i=e.length;r<i;r++)a.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))},s=function(e,t,n){for(var r=0,i=e.length;r<i;r++)null==n?t(e.charAt(r),r,e):t.call(n,e.charAt(r),r,e)},u=function(e,t,n){for(var r in e)a.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))};e.exports=function(e,t,n){if(!r(t))throw new TypeError("iterator must be a function");var a;arguments.length>=3&&(a=n),"[object Array]"===i.call(e)?o(e,t,a):"string"==typeof e?s(e,t,a):u(e,t,a)}},2781:function(e){"use strict";var t="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,r=Object.prototype.toString,i="[object Function]";e.exports=function(e){var a=this;if("function"!=typeof a||r.call(a)!==i)throw new TypeError(t+a);for(var o,s=n.call(arguments,1),u=function(){if(this instanceof o){var t=a.apply(this,s.concat(n.call(arguments)));return Object(t)===t?t:this}return a.apply(e,s.concat(n.call(arguments)))},l=Math.max(0,a.length-s.length),c=[],f=0;f<l;f++)c.push("$"+f);if(o=Function("binder","return function ("+c.join(",")+"){ return binder.apply(this,arguments); }")(u),a.prototype){var d=function(){};d.prototype=a.prototype,o.prototype=new d,d.prototype=null}return o}},1199:function(e,t,n){"use strict";var r=n(2781);e.exports=Function.prototype.bind||r},8476:function(e,t,n){"use strict";var r,i=SyntaxError,a=Function,o=TypeError,s=function(e){try{return a('"use strict"; return ('+e+").constructor;")()}catch(e){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(e){u=null}var l=function(){throw new o},c=u?function(){try{return l}catch(e){try{return u(arguments,"callee").get}catch(e){return l}}}():l,f=n(5520)(),d=Object.getPrototypeOf||function(e){return e.__proto__},p={},h="undefined"==typeof Uint8Array?r:d(Uint8Array),m={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":f?d([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":a,"%GeneratorFunction%":p,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":f?d(d([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&f?d((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&f?d((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f?d(""[Symbol.iterator]()):r,"%Symbol%":f?Symbol:r,"%SyntaxError%":i,"%ThrowTypeError%":c,"%TypedArray%":h,"%TypeError%":o,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet},v=function e(t){var n;if("%AsyncFunction%"===t)n=s("async function () {}");else if("%GeneratorFunction%"===t)n=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=s("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&(n=d(i.prototype))}return m[t]=n,n},y={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},g=n(1199),b=n(7838),w=g.call(Function.call,Array.prototype.concat),x=g.call(Function.apply,Array.prototype.splice),k=g.call(Function.call,String.prototype.replace),_=g.call(Function.call,String.prototype.slice),E=g.call(Function.call,RegExp.prototype.exec),S=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,O=/\\(\\)?/g,A=function(e){var t=_(e,0,1),n=_(e,-1);if("%"===t&&"%"!==n)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var r=[];return k(e,S,(function(e,t,n,i){r[r.length]=n?k(i,O,"$1"):t||e})),r},C=function(e,t){var n,r=e;if(b(y,r)&&(r="%"+(n=y[r])[0]+"%"),b(m,r)){var a=m[r];if(a===p&&(a=v(r)),void 0===a&&!t)throw new o("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:a}}throw new i("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new o('"allowMissing" argument must be a boolean');if(null===E(/^%?[^%]*%?$/,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=A(e),r=n.length>0?n[0]:"",a=C("%"+r+"%",t),s=a.name,l=a.value,c=!1,f=a.alias;f&&(r=f[0],x(n,w([0,1],f)));for(var d=1,p=!0;d<n.length;d+=1){var h=n[d],v=_(h,0,1),y=_(h,-1);if(('"'===v||"'"===v||"`"===v||'"'===y||"'"===y||"`"===y)&&v!==y)throw new i("property names with quotes must have matching quotes");if("constructor"!==h&&p||(c=!0),b(m,s="%"+(r+="."+h)+"%"))l=m[s];else if(null!=l){if(!(h in l)){if(!t)throw new o("base intrinsic for "+e+" exists, but the property is not available.");return}if(u&&d+1>=n.length){var g=u(l,h);l=(p=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:l[h]}else p=b(l,h),l=l[h];p&&!c&&(m[s]=l)}}return l}},2926:function(e,t,n){"use strict";var r=n(8476)("%Object.defineProperty%",!0),i=function(){if(r)try{return r({},"a",{value:1}),!0}catch(e){return!1}return!1};i.hasArrayLengthDefineBug=function(){if(!i())return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},5520:function(e,t,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,i=n(541);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&i()}},541:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},8857:function(e,t,n){"use strict";var r=n(541);e.exports=function(){return r()&&!!Symbol.toStringTag}},7838:function(e,t,n){"use strict";var r=n(1199);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},545:function(e,t){t.read=function(e,t,n,r,i){var a,o,s=8*i-r-1,u=(1<<s)-1,l=u>>1,c=-7,f=n?i-1:0,d=n?-1:1,p=e[t+f];for(f+=d,a=p&(1<<-c)-1,p>>=-c,c+=s;c>0;a=256*a+e[t+f],f+=d,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=r;c>0;o=256*o+e[t+f],f+=d,c-=8);if(0===a)a=1-l;else{if(a===u)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,r),a-=l}return(p?-1:1)*o*Math.pow(2,a-r)},t.write=function(e,t,n,r,i,a){var o,s,u,l=8*a-i-1,c=(1<<l)-1,f=c>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:a-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-o))<1&&(o--,u*=2),(t+=o+f>=1?d/u:d*Math.pow(2,1-f))*u>=2&&(o++,u/=2),o+f>=c?(s=0,o=c):o+f>=1?(s=(t*u-1)*Math.pow(2,i),o+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),o=0));i>=8;e[n+p]=255&s,p+=h,s/=256,i-=8);for(o=o<<i|s,l+=i;l>0;e[n+p]=255&o,p+=h,o/=256,l-=8);e[n+p-h]|=128*m}},273:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},5021:function(e,t,n){"use strict";var r=n(8857)(),i=n(4680)("Object.prototype.toString"),a=function(e){return!(r&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===i(e)},o=function(e){return!!a(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==i(e)&&"[object Function]"===i(e.callee)},s=function(){return a(arguments)}();a.isLegacyArguments=o,e.exports=s?a:o},8866:function(e){"use strict";var t,n,r=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw n}}),n={},i((function(){throw 42}),null,t)}catch(e){e!==n&&(i=null)}else i=null;var a=/^\s*class\b/,o=function(e){try{var t=r.call(e);return a.test(t)}catch(e){return!1}},s=function(e){try{return!o(e)&&(r.call(e),!0)}catch(e){return!1}},u=Object.prototype.toString,l="function"==typeof Symbol&&!!Symbol.toStringTag,c=!(0 in[,]),f=function(){return!1};if("object"==typeof document){var d=document.all;u.call(d)===u.call(document.all)&&(f=function(e){if((c||!e)&&(void 0===e||"object"==typeof e))try{var t=u.call(e);return("[object HTMLAllCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=i?function(e){if(f(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;try{i(e,null,t)}catch(e){if(e!==n)return!1}return!o(e)}:function(e){if(f(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(l)return s(e);if(o(e))return!1;var t=u.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t||s(e)}},7469:function(e,t,n){"use strict";var r,i=Object.prototype.toString,a=Function.prototype.toString,o=/^\s*(?:function)?\*/,s=n(8857)(),u=Object.getPrototypeOf;e.exports=function(e){if("function"!=typeof e)return!1;if(o.test(a.call(e)))return!0;if(!s)return"[object GeneratorFunction]"===i.call(e);if(!u)return!1;if(void 0===r){var t=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch(e){}}();r=!!t&&u(t)}return u(e)===r}},1546:function(e){"use strict";e.exports=function(e){return e!=e}},5738:function(e,t,n){"use strict";var r=n(9962),i=n(9959),a=n(1546),o=n(9221),s=n(5434),u=r(o(),Number);i(u,{getPolyfill:o,implementation:a,shim:s}),e.exports=u},9221:function(e,t,n){"use strict";var r=n(1546);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:r}},5434:function(e,t,n){"use strict";var r=n(9959),i=n(9221);e.exports=function(){var e=i();return r(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},2105:function(e,t,n){"use strict";var r=n(5767),i=n(3645),a=n(4680),o=a("Object.prototype.toString"),s=n(8857)(),u="undefined"==typeof globalThis?n.g:globalThis,l=i(),c=a("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n<e.length;n+=1)if(e[n]===t)return n;return-1},f=a("String.prototype.slice"),d={},p=n(3397),h=Object.getPrototypeOf;s&&p&&h&&r(l,(function(e){var t=new u[e];if(Symbol.toStringTag in t){var n=h(t),r=p(n,Symbol.toStringTag);if(!r){var i=h(n);r=p(i,Symbol.toStringTag)}d[e]=r.get}})),e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!s||!(Symbol.toStringTag in e)){var t=f(o(e),8,-1);return c(l,t)>-1}return!!p&&function(e){var t=!1;return r(d,(function(n,r){if(!t)try{t=n.call(e)===r}catch(e){}})),t}(e)}},4091:function(e){"use strict";var t=function(e){return e!=e};e.exports=function(e,n){return 0===e&&0===n?1/e==1/n:e===n||!(!t(e)||!t(n))}},8199:function(e,t,n){"use strict";var r=n(9959),i=n(9962),a=n(4091),o=n(4584),s=n(8229),u=i(o(),Object);r(u,{getPolyfill:o,implementation:a,shim:s}),e.exports=u},4584:function(e,t,n){"use strict";var r=n(4091);e.exports=function(){return"function"==typeof Object.is?Object.is:r}},8229:function(e,t,n){"use strict";var r=n(4584),i=n(9959);e.exports=function(){var e=r();return i(Object,{is:e},{is:function(){return Object.is!==e}}),e}},2782:function(e,t,n){"use strict";var r;if(!Object.keys){var i=Object.prototype.hasOwnProperty,a=Object.prototype.toString,o=n(2950),s=Object.prototype.propertyIsEnumerable,u=!s.call({toString:null},"toString"),l=s.call((function(){}),"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(e){var t=e.constructor;return t&&t.prototype===e},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!d["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{f(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();r=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===a.call(e),r=o(e),s=t&&"[object String]"===a.call(e),d=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var h=l&&n;if(s&&e.length>0&&!i.call(e,0))for(var m=0;m<e.length;++m)d.push(String(m));if(r&&e.length>0)for(var v=0;v<e.length;++v)d.push(String(v));else for(var y in e)h&&"prototype"===y||!i.call(e,y)||d.push(String(y));if(u)for(var g=function(e){if("undefined"==typeof window||!p)return f(e);try{return f(e)}catch(e){return!1}}(e),b=0;b<c.length;++b)g&&"constructor"===c[b]||!i.call(e,c[b])||d.push(c[b]);return d}}e.exports=r},6328:function(e,t,n){"use strict";var r=Array.prototype.slice,i=n(2950),a=Object.keys,o=a?function(e){return a(e)}:n(2782),s=Object.keys;o.shim=function(){Object.keys?function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)||(Object.keys=function(e){return i(e)?s(r.call(e)):s(e)}):Object.keys=o;return Object.keys||o},e.exports=o},2950:function(e){"use strict";var t=Object.prototype.toString;e.exports=function(e){var n=t.call(e),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),r}},6931:function(e,t){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var i in n)r(n,i)&&(e[i]=n[i])}}return e},t.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){var t,n,r,i,a,o;for(r=0,t=0,n=e.length;t<n;t++)r+=e[t].length;for(o=new Uint8Array(r),i=0,t=0,n=e.length;t<n;t++)a=e[t],o.set(a,i),i+=a.length;return o}},a={arraySet:function(e,t,n,r,i){for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){return[].concat.apply([],e)}};t.setTyped=function(e){e?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,i)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,a))},t.setTyped(n)},3040:function(e){"use strict";e.exports=function(e,t,n,r){for(var i=65535&e|0,a=e>>>16&65535|0,o=0;0!==n;){n-=o=n>2e3?2e3:n;do{a=a+(i=i+t[r++]|0)|0}while(--o);i%=65521,a%=65521}return i|a<<16|0}},7572:function(e){"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},6558:function(e){"use strict";var t=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();e.exports=function(e,n,r,i){var a=t,o=i+r;e^=-1;for(var s=i;s<o;s++)e=e>>>8^a[255&(e^n[s])];return-1^e}},8106:function(e,t,n){"use strict";var r,i=n(6931),a=n(3226),o=n(3040),s=n(6558),u=n(4274),l=-2,c=258,f=262,d=103,p=113,h=666;function m(e,t){return e.msg=u[t],t}function v(e){return(e<<1)-(e>4?9:0)}function y(e){for(var t=e.length;--t>=0;)e[t]=0}function g(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(i.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function b(e,t){a._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,g(e.strm)}function w(e,t){e.pending_buf[e.pending++]=t}function x(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function k(e,t,n,r){var a=e.avail_in;return a>r&&(a=r),0===a?0:(e.avail_in-=a,i.arraySet(t,e.input,e.next_in,a,n),1===e.state.wrap?e.adler=o(e.adler,t,a,n):2===e.state.wrap&&(e.adler=s(e.adler,t,a,n)),e.next_in+=a,e.total_in+=a,a)}function _(e,t){var n,r,i=e.max_chain_length,a=e.strstart,o=e.prev_length,s=e.nice_match,u=e.strstart>e.w_size-f?e.strstart-(e.w_size-f):0,l=e.window,d=e.w_mask,p=e.prev,h=e.strstart+c,m=l[a+o-1],v=l[a+o];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(l[(n=t)+o]===v&&l[n+o-1]===m&&l[n]===l[a]&&l[++n]===l[a+1]){a+=2,n++;do{}while(l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&a<h);if(r=c-(h-a),a=h-c,r>o){if(e.match_start=t,o=r,r>=s)break;m=l[a+o-1],v=l[a+o]}}}while((t=p[t&d])>u&&0!=--i);return o<=e.lookahead?o:e.lookahead}function E(e){var t,n,r,a,o,s=e.w_size;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=s+(s-f)){i.arraySet(e.window,e.window,s,s,0),e.match_start-=s,e.strstart-=s,e.block_start-=s,t=n=e.hash_size;do{r=e.head[--t],e.head[t]=r>=s?r-s:0}while(--n);t=n=s;do{r=e.prev[--t],e.prev[t]=r>=s?r-s:0}while(--n);a+=s}if(0===e.strm.avail_in)break;if(n=k(e.strm,e.window,e.strstart+e.lookahead,a),e.lookahead+=n,e.lookahead+e.insert>=3)for(o=e.strstart-e.insert,e.ins_h=e.window[o],e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+3-1])&e.hash_mask,e.prev[o&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=o,o++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<f&&0!==e.strm.avail_in)}function S(e,t){for(var n,r;;){if(e.lookahead<f){if(E(e),e.lookahead<f&&0===t)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-f&&(e.match_length=_(e,n)),e.match_length>=3)if(r=a._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(b(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,4===t?(b(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(b(e,!1),0===e.strm.avail_out)?1:2}function O(e,t){for(var n,r,i;;){if(e.lookahead<f){if(E(e),e.lookahead<f&&0===t)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-f&&(e.match_length=_(e,n),e.match_length<=5&&(1===e.strategy||3===e.match_length&&e.strstart-e.match_start>4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-3,r=a._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!=--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,r&&(b(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((r=a._tr_tally(e,0,e.window[e.strstart-1]))&&b(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=a._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,4===t?(b(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(b(e,!1),0===e.strm.avail_out)?1:2}function A(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}function C(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(1146),this.dyn_dtree=new i.Buf16(122),this.bl_tree=new i.Buf16(78),y(this.dyn_ltree),y(this.dyn_dtree),y(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(16),this.heap=new i.Buf16(573),y(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(573),y(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function T(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:p,e.adler=2===t.wrap?0:1,t.last_flush=0,a._tr_init(t),0):m(e,l)}function N(e){var t,n=T(e);return 0===n&&((t=e.state).window_size=2*t.w_size,y(t.head),t.max_lazy_match=r[t.level].max_lazy,t.good_match=r[t.level].good_length,t.nice_match=r[t.level].nice_length,t.max_chain_length=r[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0),n}function j(e,t,n,r,a,o){if(!e)return l;var s=1;if(-1===t&&(t=6),r<0?(s=0,r=-r):r>15&&(s=2,r-=16),a<1||a>9||8!==n||r<8||r>15||t<0||t>9||o<0||o>4)return m(e,l);8===r&&(r=9);var u=new C;return e.state=u,u.strm=e,u.wrap=s,u.gzhead=null,u.w_bits=r,u.w_size=1<<u.w_bits,u.w_mask=u.w_size-1,u.hash_bits=a+7,u.hash_size=1<<u.hash_bits,u.hash_mask=u.hash_size-1,u.hash_shift=~~((u.hash_bits+3-1)/3),u.window=new i.Buf8(2*u.w_size),u.head=new i.Buf16(u.hash_size),u.prev=new i.Buf16(u.w_size),u.lit_bufsize=1<<a+6,u.pending_buf_size=4*u.lit_bufsize,u.pending_buf=new i.Buf8(u.pending_buf_size),u.d_buf=1*u.lit_bufsize,u.l_buf=3*u.lit_bufsize,u.level=t,u.strategy=o,u.method=n,N(e)}r=[new A(0,0,0,0,(function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(E(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,b(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-f&&(b(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(b(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(b(e,!1),e.strm.avail_out),1)})),new A(4,4,8,4,S),new A(4,5,16,8,S),new A(4,6,32,32,S),new A(4,4,16,16,O),new A(8,16,32,32,O),new A(8,16,128,128,O),new A(8,32,128,256,O),new A(32,128,258,1024,O),new A(32,258,258,4096,O)],t.deflateInit=function(e,t){return j(e,t,8,15,8,0)},t.deflateInit2=j,t.deflateReset=N,t.deflateResetKeep=T,t.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?l:(e.state.gzhead=t,0):l},t.deflate=function(e,t){var n,i,o,u;if(!e||!e.state||t>5||t<0)return e?m(e,l):l;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||i.status===h&&4!==t)return m(e,0===e.avail_out?-5:l);if(i.strm=e,n=i.last_flush,i.last_flush=t,42===i.status)if(2===i.wrap)e.adler=0,w(i,31),w(i,139),w(i,8),i.gzhead?(w(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),w(i,255&i.gzhead.time),w(i,i.gzhead.time>>8&255),w(i,i.gzhead.time>>16&255),w(i,i.gzhead.time>>24&255),w(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),w(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(w(i,255&i.gzhead.extra.length),w(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(w(i,0),w(i,0),w(i,0),w(i,0),w(i,0),w(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),w(i,3),i.status=p);else{var f=8+(i.w_bits-8<<4)<<8;f|=(i.strategy>=2||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(f|=32),f+=31-f%31,i.status=p,x(i,f),0!==i.strstart&&(x(i,e.adler>>>16),x(i,65535&e.adler)),e.adler=1}if(69===i.status)if(i.gzhead.extra){for(o=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),g(e),o=i.pending,i.pending!==i.pending_buf_size));)w(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),g(e),o=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,w(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),0===u&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),g(e),o=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,w(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),0===u&&(i.status=d)}else i.status=d;if(i.status===d&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&g(e),i.pending+2<=i.pending_buf_size&&(w(i,255&e.adler),w(i,e.adler>>8&255),e.adler=0,i.status=p)):i.status=p),0!==i.pending){if(g(e),0===e.avail_out)return i.last_flush=-1,0}else if(0===e.avail_in&&v(t)<=v(n)&&4!==t)return m(e,-5);if(i.status===h&&0!==e.avail_in)return m(e,-5);if(0!==e.avail_in||0!==i.lookahead||0!==t&&i.status!==h){var k=2===i.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(E(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(b(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(b(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(b(e,!1),0===e.strm.avail_out)?1:2}(i,t):3===i.strategy?function(e,t){for(var n,r,i,o,s=e.window;;){if(e.lookahead<=c){if(E(e),e.lookahead<=c&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(r=s[i=e.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){o=e.strstart+c;do{}while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&i<o);e.match_length=c-(o-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(n=a._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(b(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(b(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(b(e,!1),0===e.strm.avail_out)?1:2}(i,t):r[i.level].func(i,t);if(3!==k&&4!==k||(i.status=h),1===k||3===k)return 0===e.avail_out&&(i.last_flush=-1),0;if(2===k&&(1===t?a._tr_align(i):5!==t&&(a._tr_stored_block(i,0,0,!1),3===t&&(y(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),g(e),0===e.avail_out))return i.last_flush=-1,0}return 4!==t?0:i.wrap<=0?1:(2===i.wrap?(w(i,255&e.adler),w(i,e.adler>>8&255),w(i,e.adler>>16&255),w(i,e.adler>>24&255),w(i,255&e.total_in),w(i,e.total_in>>8&255),w(i,e.total_in>>16&255),w(i,e.total_in>>24&255)):(x(i,e.adler>>>16),x(i,65535&e.adler)),g(e),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?0:1)},t.deflateEnd=function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&t!==d&&t!==p&&t!==h?m(e,l):(e.state=null,t===p?m(e,-3):0):l},t.deflateSetDictionary=function(e,t){var n,r,a,s,u,c,f,d,p=t.length;if(!e||!e.state)return l;if(2===(s=(n=e.state).wrap)||1===s&&42!==n.status||n.lookahead)return l;for(1===s&&(e.adler=o(e.adler,t,p,0)),n.wrap=0,p>=n.w_size&&(0===s&&(y(n.head),n.strstart=0,n.block_start=0,n.insert=0),d=new i.Buf8(n.w_size),i.arraySet(d,t,p-n.w_size,n.w_size,0),t=d,p=n.w_size),u=e.avail_in,c=e.next_in,f=e.input,e.avail_in=p,e.next_in=0,e.input=t,E(n);n.lookahead>=3;){r=n.strstart,a=n.lookahead-2;do{n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+3-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++}while(--a);n.strstart=r,n.lookahead=2,E(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,e.next_in=c,e.input=f,e.avail_in=u,n.wrap=s,0},t.deflateInfo="pako deflate (from Nodeca project)"},6997:function(e){"use strict";e.exports=function(e,t){var n,r,i,a,o,s,u,l,c,f,d,p,h,m,v,y,g,b,w,x,k,_,E,S,O;n=e.state,r=e.next_in,S=e.input,i=r+(e.avail_in-5),a=e.next_out,O=e.output,o=a-(t-e.avail_out),s=a+(e.avail_out-257),u=n.dmax,l=n.wsize,c=n.whave,f=n.wnext,d=n.window,p=n.hold,h=n.bits,m=n.lencode,v=n.distcode,y=(1<<n.lenbits)-1,g=(1<<n.distbits)-1;e:do{h<15&&(p+=S[r++]<<h,h+=8,p+=S[r++]<<h,h+=8),b=m[p&y];t:for(;;){if(p>>>=w=b>>>24,h-=w,0==(w=b>>>16&255))O[a++]=65535&b;else{if(!(16&w)){if(0==(64&w)){b=m[(65535&b)+(p&(1<<w)-1)];continue t}if(32&w){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}x=65535&b,(w&=15)&&(h<w&&(p+=S[r++]<<h,h+=8),x+=p&(1<<w)-1,p>>>=w,h-=w),h<15&&(p+=S[r++]<<h,h+=8,p+=S[r++]<<h,h+=8),b=v[p&g];n:for(;;){if(p>>>=w=b>>>24,h-=w,!(16&(w=b>>>16&255))){if(0==(64&w)){b=v[(65535&b)+(p&(1<<w)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(k=65535&b,h<(w&=15)&&(p+=S[r++]<<h,(h+=8)<w&&(p+=S[r++]<<h,h+=8)),(k+=p&(1<<w)-1)>u){e.msg="invalid distance too far back",n.mode=30;break e}if(p>>>=w,h-=w,k>(w=a-o)){if((w=k-w)>c&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(_=0,E=d,0===f){if(_+=l-w,w<x){x-=w;do{O[a++]=d[_++]}while(--w);_=a-k,E=O}}else if(f<w){if(_+=l+f-w,(w-=f)<x){x-=w;do{O[a++]=d[_++]}while(--w);if(_=0,f<x){x-=w=f;do{O[a++]=d[_++]}while(--w);_=a-k,E=O}}}else if(_+=f-w,w<x){x-=w;do{O[a++]=d[_++]}while(--w);_=a-k,E=O}for(;x>2;)O[a++]=E[_++],O[a++]=E[_++],O[a++]=E[_++],x-=3;x&&(O[a++]=E[_++],x>1&&(O[a++]=E[_++]))}else{_=a-k;do{O[a++]=O[_++],O[a++]=O[_++],O[a++]=O[_++],x-=3}while(x>2);x&&(O[a++]=O[_++],x>1&&(O[a++]=O[_++]))}break}}break}}while(r<i&&a<s);r-=x=h>>3,p&=(1<<(h-=x<<3))-1,e.next_in=r,e.next_out=a,e.avail_in=r<i?i-r+5:5-(r-i),e.avail_out=a<s?s-a+257:257-(a-s),n.hold=p,n.bits=h}},1833:function(e,t,n){"use strict";var r=n(6931),i=n(3040),a=n(6558),o=n(6997),s=n(3443),u=-2,l=12,c=30;function f(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function d(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function p(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32(852),t.distcode=t.distdyn=new r.Buf32(592),t.sane=1,t.back=-1,0):u}function h(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,p(e)):u}function m(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?u:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,h(e))):u}function v(e,t){var n,r;return e?(r=new d,e.state=r,r.window=null,0!==(n=m(e,t))&&(e.state=null),n):u}var y,g,b=!0;function w(e){if(b){var t;for(y=new r.Buf32(512),g=new r.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(1,e.lens,0,288,y,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(2,e.lens,0,32,g,0,e.work,{bits:5}),b=!1}e.lencode=y,e.lenbits=9,e.distcode=g,e.distbits=5}function x(e,t,n,i){var a,o=e.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new r.Buf8(o.wsize)),i>=o.wsize?(r.arraySet(o.window,t,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):((a=o.wsize-o.wnext)>i&&(a=i),r.arraySet(o.window,t,n-i,a,o.wnext),(i-=a)?(r.arraySet(o.window,t,n-i,i,0),o.wnext=i,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=a))),0}t.inflateReset=h,t.inflateReset2=m,t.inflateResetKeep=p,t.inflateInit=function(e){return v(e,15)},t.inflateInit2=v,t.inflate=function(e,t){var n,d,p,h,m,v,y,g,b,k,_,E,S,O,A,C,T,N,j,P,R,I,L,M,B=0,D=new r.Buf8(4),U=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return u;(n=e.state).mode===l&&(n.mode=13),m=e.next_out,p=e.output,y=e.avail_out,h=e.next_in,d=e.input,v=e.avail_in,g=n.hold,b=n.bits,k=v,_=y,I=0;e:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;b<16;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}if(2&n.wrap&&35615===g){n.check=0,D[0]=255&g,D[1]=g>>>8&255,n.check=a(n.check,D,2,0),g=0,b=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&g)<<8)+(g>>8))%31){e.msg="incorrect header check",n.mode=c;break}if(8!=(15&g)){e.msg="unknown compression method",n.mode=c;break}if(b-=4,R=8+(15&(g>>>=4)),0===n.wbits)n.wbits=R;else if(R>n.wbits){e.msg="invalid window size",n.mode=c;break}n.dmax=1<<R,e.adler=n.check=1,n.mode=512&g?10:l,g=0,b=0;break;case 2:for(;b<16;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}if(n.flags=g,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=c;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=c;break}n.head&&(n.head.text=g>>8&1),512&n.flags&&(D[0]=255&g,D[1]=g>>>8&255,n.check=a(n.check,D,2,0)),g=0,b=0,n.mode=3;case 3:for(;b<32;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}n.head&&(n.head.time=g),512&n.flags&&(D[0]=255&g,D[1]=g>>>8&255,D[2]=g>>>16&255,D[3]=g>>>24&255,n.check=a(n.check,D,4,0)),g=0,b=0,n.mode=4;case 4:for(;b<16;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}n.head&&(n.head.xflags=255&g,n.head.os=g>>8),512&n.flags&&(D[0]=255&g,D[1]=g>>>8&255,n.check=a(n.check,D,2,0)),g=0,b=0,n.mode=5;case 5:if(1024&n.flags){for(;b<16;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}n.length=g,n.head&&(n.head.extra_len=g),512&n.flags&&(D[0]=255&g,D[1]=g>>>8&255,n.check=a(n.check,D,2,0)),g=0,b=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((E=n.length)>v&&(E=v),E&&(n.head&&(R=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,d,h,E,R)),512&n.flags&&(n.check=a(n.check,d,E,h)),v-=E,h+=E,n.length-=E),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===v)break e;E=0;do{R=d[h+E++],n.head&&R&&n.length<65536&&(n.head.name+=String.fromCharCode(R))}while(R&&E<v);if(512&n.flags&&(n.check=a(n.check,d,E,h)),v-=E,h+=E,R)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===v)break e;E=0;do{R=d[h+E++],n.head&&R&&n.length<65536&&(n.head.comment+=String.fromCharCode(R))}while(R&&E<v);if(512&n.flags&&(n.check=a(n.check,d,E,h)),v-=E,h+=E,R)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;b<16;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}if(g!==(65535&n.check)){e.msg="header crc mismatch",n.mode=c;break}g=0,b=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=l;break;case 10:for(;b<32;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}e.adler=n.check=f(g),g=0,b=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=m,e.avail_out=y,e.next_in=h,e.avail_in=v,n.hold=g,n.bits=b,2;e.adler=n.check=1,n.mode=l;case l:if(5===t||6===t)break e;case 13:if(n.last){g>>>=7&b,b-=7&b,n.mode=27;break}for(;b<3;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}switch(n.last=1&g,b-=1,3&(g>>>=1)){case 0:n.mode=14;break;case 1:if(w(n),n.mode=20,6===t){g>>>=2,b-=2;break e}break;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=c}g>>>=2,b-=2;break;case 14:for(g>>>=7&b,b-=7&b;b<32;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}if((65535&g)!=(g>>>16^65535)){e.msg="invalid stored block lengths",n.mode=c;break}if(n.length=65535&g,g=0,b=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(E=n.length){if(E>v&&(E=v),E>y&&(E=y),0===E)break e;r.arraySet(p,d,h,E,m),v-=E,h+=E,y-=E,m+=E,n.length-=E;break}n.mode=l;break;case 17:for(;b<14;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}if(n.nlen=257+(31&g),g>>>=5,b-=5,n.ndist=1+(31&g),g>>>=5,b-=5,n.ncode=4+(15&g),g>>>=4,b-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=c;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;b<3;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}n.lens[U[n.have++]]=7&g,g>>>=3,b-=3}for(;n.have<19;)n.lens[U[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,L={bits:n.lenbits},I=s(0,n.lens,0,19,n.lencode,0,n.work,L),n.lenbits=L.bits,I){e.msg="invalid code lengths set",n.mode=c;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;C=(B=n.lencode[g&(1<<n.lenbits)-1])>>>16&255,T=65535&B,!((A=B>>>24)<=b);){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}if(T<16)g>>>=A,b-=A,n.lens[n.have++]=T;else{if(16===T){for(M=A+2;b<M;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}if(g>>>=A,b-=A,0===n.have){e.msg="invalid bit length repeat",n.mode=c;break}R=n.lens[n.have-1],E=3+(3&g),g>>>=2,b-=2}else if(17===T){for(M=A+3;b<M;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}b-=A,R=0,E=3+(7&(g>>>=A)),g>>>=3,b-=3}else{for(M=A+7;b<M;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}b-=A,R=0,E=11+(127&(g>>>=A)),g>>>=7,b-=7}if(n.have+E>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=c;break}for(;E--;)n.lens[n.have++]=R}}if(n.mode===c)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=c;break}if(n.lenbits=9,L={bits:n.lenbits},I=s(1,n.lens,0,n.nlen,n.lencode,0,n.work,L),n.lenbits=L.bits,I){e.msg="invalid literal/lengths set",n.mode=c;break}if(n.distbits=6,n.distcode=n.distdyn,L={bits:n.distbits},I=s(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,L),n.distbits=L.bits,I){e.msg="invalid distances set",n.mode=c;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(v>=6&&y>=258){e.next_out=m,e.avail_out=y,e.next_in=h,e.avail_in=v,n.hold=g,n.bits=b,o(e,_),m=e.next_out,p=e.output,y=e.avail_out,h=e.next_in,d=e.input,v=e.avail_in,g=n.hold,b=n.bits,n.mode===l&&(n.back=-1);break}for(n.back=0;C=(B=n.lencode[g&(1<<n.lenbits)-1])>>>16&255,T=65535&B,!((A=B>>>24)<=b);){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}if(C&&0==(240&C)){for(N=A,j=C,P=T;C=(B=n.lencode[P+((g&(1<<N+j)-1)>>N)])>>>16&255,T=65535&B,!(N+(A=B>>>24)<=b);){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}g>>>=N,b-=N,n.back+=N}if(g>>>=A,b-=A,n.back+=A,n.length=T,0===C){n.mode=26;break}if(32&C){n.back=-1,n.mode=l;break}if(64&C){e.msg="invalid literal/length code",n.mode=c;break}n.extra=15&C,n.mode=22;case 22:if(n.extra){for(M=n.extra;b<M;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}n.length+=g&(1<<n.extra)-1,g>>>=n.extra,b-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;C=(B=n.distcode[g&(1<<n.distbits)-1])>>>16&255,T=65535&B,!((A=B>>>24)<=b);){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}if(0==(240&C)){for(N=A,j=C,P=T;C=(B=n.distcode[P+((g&(1<<N+j)-1)>>N)])>>>16&255,T=65535&B,!(N+(A=B>>>24)<=b);){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}g>>>=N,b-=N,n.back+=N}if(g>>>=A,b-=A,n.back+=A,64&C){e.msg="invalid distance code",n.mode=c;break}n.offset=T,n.extra=15&C,n.mode=24;case 24:if(n.extra){for(M=n.extra;b<M;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}n.offset+=g&(1<<n.extra)-1,g>>>=n.extra,b-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=c;break}n.mode=25;case 25:if(0===y)break e;if(E=_-y,n.offset>E){if((E=n.offset-E)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=c;break}E>n.wnext?(E-=n.wnext,S=n.wsize-E):S=n.wnext-E,E>n.length&&(E=n.length),O=n.window}else O=p,S=m-n.offset,E=n.length;E>y&&(E=y),y-=E,n.length-=E;do{p[m++]=O[S++]}while(--E);0===n.length&&(n.mode=21);break;case 26:if(0===y)break e;p[m++]=n.length,y--,n.mode=21;break;case 27:if(n.wrap){for(;b<32;){if(0===v)break e;v--,g|=d[h++]<<b,b+=8}if(_-=y,e.total_out+=_,n.total+=_,_&&(e.adler=n.check=n.flags?a(n.check,p,_,m-_):i(n.check,p,_,m-_)),_=y,(n.flags?g:f(g))!==n.check){e.msg="incorrect data check",n.mode=c;break}g=0,b=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;b<32;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}if(g!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=c;break}g=0,b=0}n.mode=29;case 29:I=1;break e;case c:I=-3;break e;case 31:return-4;default:return u}return e.next_out=m,e.avail_out=y,e.next_in=h,e.avail_in=v,n.hold=g,n.bits=b,(n.wsize||_!==e.avail_out&&n.mode<c&&(n.mode<27||4!==t))&&x(e,e.output,e.next_out,_-e.avail_out)?(n.mode=31,-4):(k-=e.avail_in,_-=e.avail_out,e.total_in+=k,e.total_out+=_,n.total+=_,n.wrap&&_&&(e.adler=n.check=n.flags?a(n.check,p,_,e.next_out-_):i(n.check,p,_,e.next_out-_)),e.data_type=n.bits+(n.last?64:0)+(n.mode===l?128:0)+(20===n.mode||15===n.mode?256:0),(0===k&&0===_||4===t)&&0===I&&(I=-5),I)},t.inflateEnd=function(e){if(!e||!e.state)return u;var t=e.state;return t.window&&(t.window=null),e.state=null,0},t.inflateGetHeader=function(e,t){var n;return e&&e.state?0==(2&(n=e.state).wrap)?u:(n.head=t,t.done=!1,0):u},t.inflateSetDictionary=function(e,t){var n,r=t.length;return e&&e.state?0!==(n=e.state).wrap&&11!==n.mode?u:11===n.mode&&i(1,t,r,0)!==n.check?-3:x(e,t,r,r)?(n.mode=31,-4):(n.havedict=1,0):u},t.inflateInfo="pako inflate (from Nodeca project)"},3443:function(e,t,n){"use strict";var r=n(6931),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],o=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(e,t,n,u,l,c,f,d){var p,h,m,v,y,g,b,w,x,k=d.bits,_=0,E=0,S=0,O=0,A=0,C=0,T=0,N=0,j=0,P=0,R=null,I=0,L=new r.Buf16(16),M=new r.Buf16(16),B=null,D=0;for(_=0;_<=15;_++)L[_]=0;for(E=0;E<u;E++)L[t[n+E]]++;for(A=k,O=15;O>=1&&0===L[O];O--);if(A>O&&(A=O),0===O)return l[c++]=20971520,l[c++]=20971520,d.bits=1,0;for(S=1;S<O&&0===L[S];S++);for(A<S&&(A=S),N=1,_=1;_<=15;_++)if(N<<=1,(N-=L[_])<0)return-1;if(N>0&&(0===e||1!==O))return-1;for(M[1]=0,_=1;_<15;_++)M[_+1]=M[_]+L[_];for(E=0;E<u;E++)0!==t[n+E]&&(f[M[t[n+E]]++]=E);if(0===e?(R=B=f,g=19):1===e?(R=i,I-=257,B=a,D-=257,g=256):(R=o,B=s,g=-1),P=0,E=0,_=S,y=c,C=A,T=0,m=-1,v=(j=1<<A)-1,1===e&&j>852||2===e&&j>592)return 1;for(;;){b=_-T,f[E]<g?(w=0,x=f[E]):f[E]>g?(w=B[D+f[E]],x=R[I+f[E]]):(w=96,x=0),p=1<<_-T,S=h=1<<C;do{l[y+(P>>T)+(h-=p)]=b<<24|w<<16|x|0}while(0!==h);for(p=1<<_-1;P&p;)p>>=1;if(0!==p?(P&=p-1,P+=p):P=0,E++,0==--L[_]){if(_===O)break;_=t[n+f[E]]}if(_>A&&(P&v)!==m){for(0===T&&(T=A),y+=S,N=1<<(C=_-T);C+T<O&&!((N-=L[C+T])<=0);)C++,N<<=1;if(j+=1<<C,1===e&&j>852||2===e&&j>592)return 1;l[m=P&v]=A<<24|C<<16|y-c|0}}return 0!==P&&(l[y+P]=_-T<<24|64<<16|0),d.bits=A,0}},4274:function(e){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},3226:function(e,t,n){"use strict";var r=n(6931);function i(e){for(var t=e.length;--t>=0;)e[t]=0}var a=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],o=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],u=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],l=new Array(576);i(l);var c=new Array(60);i(c);var f=new Array(512);i(f);var d=new Array(256);i(d);var p=new Array(29);i(p);var h,m,v,y=new Array(30);function g(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function b(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function w(e){return e<256?f[e]:f[256+(e>>>7)]}function x(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function k(e,t,n){e.bi_valid>16-n?(e.bi_buf|=t<<e.bi_valid&65535,x(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function _(e,t,n){k(e,n[2*t],n[2*t+1])}function E(e,t){var n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}function S(e,t,n){var r,i,a=new Array(16),o=0;for(r=1;r<=15;r++)a[r]=o=o+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=E(a[s]++,s))}}function O(e){var t;for(t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function A(e){e.bi_valid>8?x(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function C(e,t,n,r){var i=2*t,a=2*n;return e[i]<e[a]||e[i]===e[a]&&r[t]<=r[n]}function T(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&C(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!C(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r}function N(e,t,n){var r,i,s,u,l=0;if(0!==e.last_lit)do{r=e.pending_buf[e.d_buf+2*l]<<8|e.pending_buf[e.d_buf+2*l+1],i=e.pending_buf[e.l_buf+l],l++,0===r?_(e,i,t):(_(e,(s=d[i])+256+1,t),0!==(u=a[s])&&k(e,i-=p[s],u),_(e,s=w(--r),n),0!==(u=o[s])&&k(e,r-=y[s],u))}while(l<e.last_lit);_(e,256,t)}function j(e,t){var n,r,i,a=t.dyn_tree,o=t.stat_desc.static_tree,s=t.stat_desc.has_stree,u=t.stat_desc.elems,l=-1;for(e.heap_len=0,e.heap_max=573,n=0;n<u;n++)0!==a[2*n]?(e.heap[++e.heap_len]=l=n,e.depth[n]=0):a[2*n+1]=0;for(;e.heap_len<2;)a[2*(i=e.heap[++e.heap_len]=l<2?++l:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=o[2*i+1]);for(t.max_code=l,n=e.heap_len>>1;n>=1;n--)T(e,a,n);i=u;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],T(e,a,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,a[2*i]=a[2*n]+a[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,a[2*n+1]=a[2*r+1]=i,e.heap[1]=i++,T(e,a,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,a,o,s,u=t.dyn_tree,l=t.max_code,c=t.stat_desc.static_tree,f=t.stat_desc.has_stree,d=t.stat_desc.extra_bits,p=t.stat_desc.extra_base,h=t.stat_desc.max_length,m=0;for(a=0;a<=15;a++)e.bl_count[a]=0;for(u[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<573;n++)(a=u[2*u[2*(r=e.heap[n])+1]+1]+1)>h&&(a=h,m++),u[2*r+1]=a,r>l||(e.bl_count[a]++,o=0,r>=p&&(o=d[r-p]),s=u[2*r],e.opt_len+=s*(a+o),f&&(e.static_len+=s*(c[2*r+1]+o)));if(0!==m){do{for(a=h-1;0===e.bl_count[a];)a--;e.bl_count[a]--,e.bl_count[a+1]+=2,e.bl_count[h]--,m-=2}while(m>0);for(a=h;0!==a;a--)for(r=e.bl_count[a];0!==r;)(i=e.heap[--n])>l||(u[2*i+1]!==a&&(e.opt_len+=(a-u[2*i+1])*u[2*i],u[2*i+1]=a),r--)}}(e,t),S(a,l,e.bl_count)}function P(e,t,n){var r,i,a=-1,o=t[1],s=0,u=7,l=4;for(0===o&&(u=138,l=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=o,o=t[2*(r+1)+1],++s<u&&i===o||(s<l?e.bl_tree[2*i]+=s:0!==i?(i!==a&&e.bl_tree[2*i]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,s=0,a=i,0===o?(u=138,l=3):i===o?(u=6,l=3):(u=7,l=4))}function R(e,t,n){var r,i,a=-1,o=t[1],s=0,u=7,l=4;for(0===o&&(u=138,l=3),r=0;r<=n;r++)if(i=o,o=t[2*(r+1)+1],!(++s<u&&i===o)){if(s<l)do{_(e,i,e.bl_tree)}while(0!=--s);else 0!==i?(i!==a&&(_(e,i,e.bl_tree),s--),_(e,16,e.bl_tree),k(e,s-3,2)):s<=10?(_(e,17,e.bl_tree),k(e,s-3,3)):(_(e,18,e.bl_tree),k(e,s-11,7));s=0,a=i,0===o?(u=138,l=3):i===o?(u=6,l=3):(u=7,l=4)}}i(y);var I=!1;function L(e,t,n,i){k(e,0+(i?1:0),3),function(e,t,n,i){A(e),x(e,n),x(e,~n),r.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}(e,t,n)}t._tr_init=function(e){I||(function(){var e,t,n,r,i,u=new Array(16);for(n=0,r=0;r<28;r++)for(p[r]=n,e=0;e<1<<a[r];e++)d[n++]=r;for(d[n-1]=r,i=0,r=0;r<16;r++)for(y[r]=i,e=0;e<1<<o[r];e++)f[i++]=r;for(i>>=7;r<30;r++)for(y[r]=i<<7,e=0;e<1<<o[r]-7;e++)f[256+i++]=r;for(t=0;t<=15;t++)u[t]=0;for(e=0;e<=143;)l[2*e+1]=8,e++,u[8]++;for(;e<=255;)l[2*e+1]=9,e++,u[9]++;for(;e<=279;)l[2*e+1]=7,e++,u[7]++;for(;e<=287;)l[2*e+1]=8,e++,u[8]++;for(S(l,287,u),e=0;e<30;e++)c[2*e+1]=5,c[2*e]=E(e,5);h=new g(l,a,257,286,15),m=new g(c,o,0,30,15),v=new g(new Array(0),s,0,19,7)}(),I=!0),e.l_desc=new b(e.dyn_ltree,h),e.d_desc=new b(e.dyn_dtree,m),e.bl_desc=new b(e.bl_tree,v),e.bi_buf=0,e.bi_valid=0,O(e)},t._tr_stored_block=L,t._tr_flush_block=function(e,t,n,r){var i,a,o=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<256;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),j(e,e.l_desc),j(e,e.d_desc),o=function(e){var t;for(P(e,e.dyn_ltree,e.l_desc.max_code),P(e,e.dyn_dtree,e.d_desc.max_code),j(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*u[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(a=e.static_len+3+7>>>3)<=i&&(i=a)):i=a=n+5,n+4<=i&&-1!==t?L(e,t,n,r):4===e.strategy||a===i?(k(e,2+(r?1:0),3),N(e,l,c)):(k(e,4+(r?1:0),3),function(e,t,n,r){var i;for(k(e,t-257,5),k(e,n-1,5),k(e,r-4,4),i=0;i<r;i++)k(e,e.bl_tree[2*u[i]+1],3);R(e,e.dyn_ltree,t-1),R(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),N(e,e.dyn_ltree,e.dyn_dtree)),O(e),r&&A(e)},t._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(d[n]+256+1)]++,e.dyn_dtree[2*w(t)]++),e.last_lit===e.lit_bufsize-1},t._tr_align=function(e){k(e,2,3),_(e,256,l),function(e){16===e.bi_valid?(x(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},400:function(e){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},7490:function(e){var t,n,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function o(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var s,u=[],l=!1,c=-1;function f(){l&&s&&(l=!1,s.length?u=s.concat(u):c=-1,u.length&&d())}function d(){if(!l){var e=o(f);l=!0;for(var t=u.length;t;){for(s=u,u=[];++c<t;)s&&s[c].run();c=-1,t=u.length}s=null,l=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new p(e,t)),1!==u.length||l||o(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=h,r.addListener=h,r.once=h,r.off=h,r.removeListener=h,r.removeAllListeners=h,r.emit=h,r.prependListener=h,r.prependOnceListener=h,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},1729:function(e,t,n){"use strict";var r=n(9165);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,a,o){if(o!==r){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 t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:i};return n.PropTypes=n,n}},5192:function(e,t,n){e.exports=n(1729)()},9165:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},1092:function(e){"use strict";var t={};function n(e,n,r){r||(r=Error);var i=function(e){var t,r;function i(t,r,i){return e.call(this,function(e,t,r){return"string"==typeof n?n:n(e,t,r)}(t,r,i))||this}return r=e,(t=i).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r,i}(r);i.prototype.name=r.name,i.prototype.code=e,t[e]=i}function r(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(e){return String(e)})),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}n("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),n("ERR_INVALID_ARG_TYPE",(function(e,t,n){var i,a,o;if("string"==typeof t&&(a="not ",t.substr(0,a.length)===a)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))o="The ".concat(e," ").concat(i," ").concat(r(t,"type"));else{var s=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+".".length>e.length)&&-1!==e.indexOf(".",n)}(e)?"property":"argument";o='The "'.concat(e,'" ').concat(s," ").concat(i," ").concat(r(t,"type"))}return o+". Received type ".concat(typeof n)}),TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},6085:function(e,t,n){"use strict";var r=n(7490),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=c;var a=n(6405),o=n(7423);n(273)(c,a);for(var s=i(o.prototype),u=0;u<s.length;u++){var l=s[u];c.prototype[l]||(c.prototype[l]=o.prototype[l])}function c(e){if(!(this instanceof c))return new c(e);a.call(this,e),o.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",f)))}function f(){this._writableState.ended||r.nextTick(d,this)}function d(e){e.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},9543:function(e,t,n){"use strict";e.exports=i;var r=n(4917);function i(e){if(!(this instanceof i))return new i(e);r.call(this,e)}n(273)(i,r),i.prototype._transform=function(e,t,n){n(null,e)}},6405:function(e,t,n){"use strict";var r,i=n(7490);e.exports=S,S.ReadableState=E,n(8041).EventEmitter;var a,o=function(e,t){return e.listeners(t).length},s=n(8747),u=n(918).Buffer,l=n.g.Uint8Array||function(){},c=n(4616);a=c&&c.debuglog?c.debuglog("stream"):function(){};var f,d,p,h=n(5489),m=n(6617),v=n(5999).getHighWaterMark,y=n(1092).q,g=y.ERR_INVALID_ARG_TYPE,b=y.ERR_STREAM_PUSH_AFTER_EOF,w=y.ERR_METHOD_NOT_IMPLEMENTED,x=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(273)(S,s);var k=m.errorOrDestroy,_=["error","close","destroy","pause","resume"];function E(e,t,i){r=r||n(6085),e=e||{},"boolean"!=typeof i&&(i=t instanceof r),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=v(this,e,"readableHighWaterMark",i),this.buffer=new h,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(f||(f=n(8570).s),this.decoder=new f(e.encoding),this.encoding=e.encoding)}function S(e){if(r=r||n(6085),!(this instanceof S))return new S(e);var t=this instanceof r;this._readableState=new E(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),s.call(this)}function O(e,t,n,r,i){a("readableAddChunk",t);var o,s=e._readableState;if(null===t)s.reading=!1,function(e,t){if(a("onEofChunk"),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?N(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,j(e)))}}(e,s);else if(i||(o=function(e,t){var n,r;return r=t,u.isBuffer(r)||r instanceof l||"string"==typeof t||void 0===t||e.objectMode||(n=new g("chunk",["string","Buffer","Uint8Array"],t)),n}(s,t)),o)k(e,o);else if(s.objectMode||t&&t.length>0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),r)s.endEmitted?k(e,new x):A(e,s,t,!0);else if(s.ended)k(e,new b);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!n?(t=s.decoder.write(t),s.objectMode||0!==t.length?A(e,s,t,!1):P(e,s)):A(e,s,t,!1)}else r||(s.reading=!1,P(e,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function A(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&N(e)),P(e,t)}Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),S.prototype.destroy=m.destroy,S.prototype._undestroy=m.undestroy,S.prototype._destroy=function(e,t){t(e)},S.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=u.from(e,t),t=""),n=!0),O(this,e,t,!1,n)},S.prototype.unshift=function(e){return O(this,e,null,!0,!1)},S.prototype.isPaused=function(){return!1===this._readableState.flowing},S.prototype.setEncoding=function(e){f||(f=n(8570).s);var t=new f(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";null!==r;)i+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var C=1073741824;function T(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=C?e=C:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function N(e){var t=e._readableState;a("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(a("emitReadable",t.flowing),t.emittedReadable=!0,i.nextTick(j,e))}function j(e){var t=e._readableState;a("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,B(e)}function P(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(R,e,t))}function R(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var n=t.length;if(a("maybeReadMore read 0"),e.read(0),n===t.length)break}t.readingMore=!1}function I(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function L(e){a("readable nexttick read 0"),e.read(0)}function M(e,t){a("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),B(e),t.flowing&&!t.reading&&e.read(0)}function B(e){var t=e._readableState;for(a("flow",t.flowing);t.flowing&&null!==e.read(););}function D(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function U(e){var t=e._readableState;a("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,i.nextTick(F,t,e))}function F(e,t){if(a("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function z(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}S.prototype.read=function(e){a("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return a("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?U(this):N(this),null;if(0===(e=T(e,t))&&t.ended)return 0===t.length&&U(this),null;var r,i=t.needReadable;return a("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&a("length less than watermark",i=!0),t.ended||t.reading?a("reading or ended",i=!1):i&&(a("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=T(n,t))),null===(r=e>0?D(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&U(this)),null!==r&&this.emit("data",r),r},S.prototype._read=function(e){k(this,new w("_read()"))},S.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e)}r.pipesCount+=1,a("pipe count=%d opts=%j",r.pipesCount,t);var s=t&&!1===t.end||e===i.stdout||e===i.stderr?m:u;function u(){a("onend"),e.end()}r.endEmitted?i.nextTick(s):n.once("end",s),e.on("unpipe",(function t(i,o){a("onunpipe"),i===n&&o&&!1===o.hasUnpiped&&(o.hasUnpiped=!0,a("cleanup"),e.removeListener("close",p),e.removeListener("finish",h),e.removeListener("drain",l),e.removeListener("error",d),e.removeListener("unpipe",t),n.removeListener("end",u),n.removeListener("end",m),n.removeListener("data",f),c=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||l())}));var l=function(e){return function(){var t=e._readableState;a("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,B(e))}}(n);e.on("drain",l);var c=!1;function f(t){a("ondata");var i=e.write(t);a("dest.write",i),!1===i&&((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==z(r.pipes,e))&&!c&&(a("false write response, pause",r.awaitDrain),r.awaitDrain++),n.pause())}function d(t){a("onerror",t),m(),e.removeListener("error",d),0===o(e,"error")&&k(e,t)}function p(){e.removeListener("finish",h),m()}function h(){a("onfinish"),e.removeListener("close",p),m()}function m(){a("unpipe"),n.unpipe(e)}return n.on("data",f),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",d),e.once("close",p),e.once("finish",h),e.emit("pipe",n),r.flowing||(a("pipe resume"),n.resume()),e},S.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<i;a++)r[a].emit("unpipe",this,{hasUnpiped:!1});return this}var o=z(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},S.prototype.on=function(e,t){var n=s.prototype.on.call(this,e,t),r=this._readableState;return"data"===e?(r.readableListening=this.listenerCount("readable")>0,!1!==r.flowing&&this.resume()):"readable"===e&&(r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,a("on readable",r.length,r.reading),r.length?N(this):r.reading||i.nextTick(L,this))),n},S.prototype.addListener=S.prototype.on,S.prototype.removeListener=function(e,t){var n=s.prototype.removeListener.call(this,e,t);return"readable"===e&&i.nextTick(I,this),n},S.prototype.removeAllListeners=function(e){var t=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||i.nextTick(I,this),t},S.prototype.resume=function(){var e=this._readableState;return e.flowing||(a("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(M,e,t))}(this,e)),e.paused=!1,this},S.prototype.pause=function(){return a("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(a("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},S.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",(function(){if(a("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){a("wrapped data"),n.decoder&&(i=n.decoder.write(i)),(!n.objectMode||null!=i)&&(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<_.length;o++)e.on(_[o],this.emit.bind(this,_[o]));return this._read=function(t){a("wrapped _read",t),r&&(r=!1,e.resume())},this},"function"==typeof Symbol&&(S.prototype[Symbol.asyncIterator]=function(){return void 0===d&&(d=n(1218)),d(this)}),Object.defineProperty(S.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(S.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(S.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),S._fromList=D,Object.defineProperty(S.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(S.from=function(e,t){return void 0===p&&(p=n(7670)),p(S,e,t)})},4917:function(e,t,n){"use strict";e.exports=c;var r=n(1092).q,i=r.ERR_METHOD_NOT_IMPLEMENTED,a=r.ERR_MULTIPLE_CALLBACK,o=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=r.ERR_TRANSFORM_WITH_LENGTH_0,u=n(6085);function l(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(null===r)return this.emit("error",new a);n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function c(e){if(!(this instanceof c))return new c(e);u.call(this,e),this._transformState={afterTransform:l.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",f)}function f(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush((function(t,n){d(e,t,n)}))}function d(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new s;if(e._transformState.transforming)throw new o;return e.push(null)}n(273)(c,u),c.prototype.push=function(e,t){return this._transformState.needTransform=!1,u.prototype.push.call(this,e,t)},c.prototype._transform=function(e,t,n){n(new i("_transform()"))},c.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},c.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},c.prototype._destroy=function(e,t){u.prototype._destroy.call(this,e,(function(e){t(e)}))}},7423:function(e,t,n){"use strict";var r,i=n(7490);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;for(e.entry=null;r;){var i=r.callback;t.pendingcb--,i(undefined),r=r.next}t.corkedRequestsFree.next=e}(t,e)}}e.exports=S,S.WritableState=E;var o,s={deprecate:n(9043)},u=n(8747),l=n(918).Buffer,c=n.g.Uint8Array||function(){},f=n(6617),d=n(5999).getHighWaterMark,p=n(1092).q,h=p.ERR_INVALID_ARG_TYPE,m=p.ERR_METHOD_NOT_IMPLEMENTED,v=p.ERR_MULTIPLE_CALLBACK,y=p.ERR_STREAM_CANNOT_PIPE,g=p.ERR_STREAM_DESTROYED,b=p.ERR_STREAM_NULL_VALUES,w=p.ERR_STREAM_WRITE_AFTER_END,x=p.ERR_UNKNOWN_ENCODING,k=f.errorOrDestroy;function _(){}function E(e,t,o){r=r||n(6085),e=e||{},"boolean"!=typeof o&&(o=t instanceof r),this.objectMode=!!e.objectMode,o&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=d(this,e,"writableHighWaterMark",o),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,a=n.writecb;if("function"!=typeof a)throw new v;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,a){--t.pendingcb,n?(i.nextTick(a,r),i.nextTick(j,e,t),e._writableState.errorEmitted=!0,k(e,r)):(a(r),e._writableState.errorEmitted=!0,k(e,r),j(e,t))}(e,n,r,t,a);else{var o=T(n)||e.destroyed;o||n.corked||n.bufferProcessing||!n.bufferedRequest||C(e,n),r?i.nextTick(A,e,n,o,a):A(e,n,o,a)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function S(e){var t=this instanceof(r=r||n(6085));if(!t&&!o.call(S,this))return new S(e);this._writableState=new E(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),u.call(this)}function O(e,t,n,r,i,a,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new g("write")):n?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function A(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),j(e,t)}function C(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),o=t.corkedRequestsFree;o.entry=n;for(var s=0,u=!0;n;)i[s]=n,n.isBuf||(u=!1),n=n.next,s+=1;i.allBuffers=u,O(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;n;){var l=n.chunk,c=n.encoding,f=n.callback;if(O(e,t,!1,t.objectMode?1:l.length,l,c,f),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function T(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function N(e,t){e._final((function(n){t.pendingcb--,n&&k(e,n),t.prefinished=!0,e.emit("prefinish"),j(e,t)}))}function j(e,t){var n=T(t);if(n&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,i.nextTick(N,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var r=e._readableState;(!r||r.autoDestroy&&r.endEmitted)&&e.destroy()}return n}n(273)(S,u),E.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(E.prototype,"buffer",{get:s.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(o=Function.prototype[Symbol.hasInstance],Object.defineProperty(S,Symbol.hasInstance,{value:function(e){return!!o.call(this,e)||this===S&&e&&e._writableState instanceof E}})):o=function(e){return e instanceof this},S.prototype.pipe=function(){k(this,new y)},S.prototype.write=function(e,t,n){var r,a=this._writableState,o=!1,s=!a.objectMode&&(r=e,l.isBuffer(r)||r instanceof c);return s&&!l.isBuffer(e)&&(e=function(e){return l.from(e)}(e)),"function"==typeof t&&(n=t,t=null),s?t="buffer":t||(t=a.defaultEncoding),"function"!=typeof n&&(n=_),a.ending?function(e,t){var n=new w;k(e,n),i.nextTick(t,n)}(this,n):(s||function(e,t,n,r){var a;return null===n?a=new b:"string"==typeof n||t.objectMode||(a=new h("chunk",["string","Buffer"],n)),!a||(k(e,a),i.nextTick(r,a),!1)}(this,a,e,n))&&(a.pendingcb++,o=function(e,t,n,r,i,a){if(!n){var o=function(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=l.from(t,n)),t}(t,r,i);r!==o&&(n=!0,i="buffer",r=o)}var s=t.objectMode?1:r.length;t.length+=s;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:a,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else O(e,t,!1,s,r,i,a);return u}(this,a,s,e,t,n)),o},S.prototype.cork=function(){this._writableState.corked++},S.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||C(this,e))},S.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new x(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(S.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),S.prototype._write=function(e,t,n){n(new m("_write()"))},S.prototype._writev=null,S.prototype.end=function(e,t,n){var r=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||function(e,t,n){t.ending=!0,j(e,t),n&&(t.finished?i.nextTick(n):e.once("finish",n)),t.ended=!0,e.writable=!1}(this,r,n),this},Object.defineProperty(S.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),S.prototype.destroy=f.destroy,S.prototype._undestroy=f.undestroy,S.prototype._destroy=function(e,t){t(e)}},1218:function(e,t,n){"use strict";var r,i=n(7490);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(4297),s=Symbol("lastResolve"),u=Symbol("lastReject"),l=Symbol("error"),c=Symbol("ended"),f=Symbol("lastPromise"),d=Symbol("handlePromise"),p=Symbol("stream");function h(e,t){return{value:e,done:t}}function m(e){var t=e[s];if(null!==t){var n=e[p].read();null!==n&&(e[f]=null,e[s]=null,e[u]=null,t(h(n,!1)))}}function v(e){i.nextTick(m,e)}var y=Object.getPrototypeOf((function(){})),g=Object.setPrototypeOf((a(r={get stream(){return this[p]},next:function(){var e=this,t=this[l];if(null!==t)return Promise.reject(t);if(this[c])return Promise.resolve(h(void 0,!0));if(this[p].destroyed)return new Promise((function(t,n){i.nextTick((function(){e[l]?n(e[l]):t(h(void 0,!0))}))}));var n,r=this[f];if(r)n=new Promise(function(e,t){return function(n,r){e.then((function(){t[c]?n(h(void 0,!0)):t[d](n,r)}),r)}}(r,this));else{var a=this[p].read();if(null!==a)return Promise.resolve(h(a,!1));n=new Promise(this[d])}return this[f]=n,n}},Symbol.asyncIterator,(function(){return this})),a(r,"return",(function(){var e=this;return new Promise((function(t,n){e[p].destroy(null,(function(e){e?n(e):t(h(void 0,!0))}))}))})),r),y);e.exports=function(e){var t,n=Object.create(g,(a(t={},p,{value:e,writable:!0}),a(t,s,{value:null,writable:!0}),a(t,u,{value:null,writable:!0}),a(t,l,{value:null,writable:!0}),a(t,c,{value:e._readableState.endEmitted,writable:!0}),a(t,d,{value:function(e,t){var r=n[p].read();r?(n[f]=null,n[s]=null,n[u]=null,e(h(r,!1))):(n[s]=e,n[u]=t)},writable:!0}),t));return n[f]=null,o(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=n[u];return null!==t&&(n[f]=null,n[s]=null,n[u]=null,t(e)),void(n[l]=e)}var r=n[s];null!==r&&(n[f]=null,n[s]=null,n[u]=null,r(h(void 0,!0))),n[c]=!0})),e.on("readable",v.bind(null,n)),n}},5489:function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var o=n(918).Buffer,s=n(2361).inspect,u=s&&s.custom||"inspect";e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,n;return t=e,(n=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return o.alloc(0);for(var t,n,r,i=o.allocUnsafe(e>>>0),a=this.head,s=0;a;)t=a.data,n=i,r=s,o.prototype.copy.call(t,n,r),s+=a.data.length,a=a.next;return i}},{key:"consume",value:function(e,t){var n;return e<this.head.data.length?(n=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):n=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,n=1,r=t.data;for(e-=r.length;t=t.next;){var i=t.data,a=e>i.length?i.length:e;if(a===i.length?r+=i:r+=i.slice(0,e),0==(e-=a)){a===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(a));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(e){var t=o.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,a=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,a),0==(e-=a)){a===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(a));break}++r}return this.length-=r,t}},{key:u,value:function(e,t){return s(this,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t,{depth:0,customInspect:!1}))}}])&&a(t.prototype,n),e}()},6617:function(e,t,n){"use strict";var r=n(7490);function i(e,t){o(e,t),a(e)}function a(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function o(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=this,s=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return s||u?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,r.nextTick(o,this,e)):r.nextTick(o,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?n._writableState?n._writableState.errorEmitted?r.nextTick(a,n):(n._writableState.errorEmitted=!0,r.nextTick(i,n,e)):r.nextTick(i,n,e):t?(r.nextTick(a,n),t(e)):r.nextTick(a,n)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}}},4297:function(e,t,n){"use strict";var r=n(1092).q.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,n,a){if("function"==typeof n)return e(t,null,n);n||(n={}),a=function(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r)}}}(a||i);var o=n.readable||!1!==n.readable&&t.readable,s=n.writable||!1!==n.writable&&t.writable,u=function(){t.writable||c()},l=t._writableState&&t._writableState.finished,c=function(){s=!1,l=!0,o||a.call(t)},f=t._readableState&&t._readableState.endEmitted,d=function(){o=!1,f=!0,s||a.call(t)},p=function(e){a.call(t,e)},h=function(){var e;return o&&!f?(t._readableState&&t._readableState.ended||(e=new r),a.call(t,e)):s&&!l?(t._writableState&&t._writableState.ended||(e=new r),a.call(t,e)):void 0},m=function(){t.req.on("finish",c)};return function(e){return e.setHeader&&"function"==typeof e.abort}(t)?(t.on("complete",c),t.on("abort",h),t.req?m():t.on("request",m)):s&&!t._writableState&&(t.on("end",u),t.on("close",u)),t.on("end",d),t.on("finish",c),!1!==n.error&&t.on("error",p),t.on("close",h),function(){t.removeListener("complete",c),t.removeListener("abort",h),t.removeListener("request",m),t.req&&t.req.removeListener("finish",c),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",c),t.removeListener("end",d),t.removeListener("error",p),t.removeListener("close",h)}}},7670:function(e){e.exports=function(){throw new Error("Readable.from is not available in the browser")}},6545:function(e,t,n){"use strict";var r,i=n(1092).q,a=i.ERR_MISSING_ARGS,o=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function u(e,t,i,a){a=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(a);var s=!1;e.on("close",(function(){s=!0})),void 0===r&&(r=n(4297)),r(e,{readable:t,writable:i},(function(e){if(e)return a(e);s=!0,a()}));var u=!1;return function(t){if(!s&&!u)return u=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(e)?e.abort():"function"==typeof e.destroy?e.destroy():void a(t||new o("pipe"))}}function l(e){e()}function c(e,t){return e.pipe(t)}function f(e){return e.length?"function"!=typeof e[e.length-1]?s:e.pop():s}e.exports=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,i=f(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new a("streams");var o=t.map((function(e,n){var a=n<t.length-1;return u(e,a,n>0,(function(e){r||(r=e),e&&o.forEach(l),a||(o.forEach(l),i(r))}))}));return t.reduce(c)}},5999:function(e,t,n){"use strict";var r=n(1092).q.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,n,i){var a=function(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}(t,i,n);if(null!=a){if(!isFinite(a)||Math.floor(a)!==a||a<0)throw new r(i?n:"highWaterMark",a);return Math.floor(a)}return e.objectMode?16:16384}}},8747:function(e,t,n){e.exports=n(8041).EventEmitter},5734:function(e,t,n){var r=n(918),i=r.Buffer;function a(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(a(r,t),t.Buffer=o),a(i,o),o.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},o.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},1398:function(e,t,n){"use strict";var r=n(918).Buffer,i=n(6690).default,a=n(9728).default,o=n(4370),s=function(){function e(t){if(i(this,e),this.length=0,this._encoding="utf8",this._writeOffset=0,this._readOffset=0,e.isSmartBufferOptions(t))if(t.encoding&&(o.checkEncoding(t.encoding),this._encoding=t.encoding),t.size){if(!(o.isFiniteInteger(t.size)&&t.size>0))throw new Error(o.ERRORS.INVALID_SMARTBUFFER_SIZE);this._buff=r.allocUnsafe(t.size)}else if(t.buff){if(!r.isBuffer(t.buff))throw new Error(o.ERRORS.INVALID_SMARTBUFFER_BUFFER);this._buff=t.buff,this.length=t.buff.length}else this._buff=r.allocUnsafe(4096);else{if(void 0!==t)throw new Error(o.ERRORS.INVALID_SMARTBUFFER_OBJECT);this._buff=r.allocUnsafe(4096)}}return a(e,[{key:"readInt8",value:function(e){return this._readNumberValue(r.prototype.readInt8,1,e)}},{key:"readInt16BE",value:function(e){return this._readNumberValue(r.prototype.readInt16BE,2,e)}},{key:"readInt16LE",value:function(e){return this._readNumberValue(r.prototype.readInt16LE,2,e)}},{key:"readInt32BE",value:function(e){return this._readNumberValue(r.prototype.readInt32BE,4,e)}},{key:"readInt32LE",value:function(e){return this._readNumberValue(r.prototype.readInt32LE,4,e)}},{key:"readBigInt64BE",value:function(e){return o.bigIntAndBufferInt64Check("readBigInt64BE"),this._readNumberValue(r.prototype.readBigInt64BE,8,e)}},{key:"readBigInt64LE",value:function(e){return o.bigIntAndBufferInt64Check("readBigInt64LE"),this._readNumberValue(r.prototype.readBigInt64LE,8,e)}},{key:"writeInt8",value:function(e,t){return this._writeNumberValue(r.prototype.writeInt8,1,e,t),this}},{key:"insertInt8",value:function(e,t){return this._insertNumberValue(r.prototype.writeInt8,1,e,t)}},{key:"writeInt16BE",value:function(e,t){return this._writeNumberValue(r.prototype.writeInt16BE,2,e,t)}},{key:"insertInt16BE",value:function(e,t){return this._insertNumberValue(r.prototype.writeInt16BE,2,e,t)}},{key:"writeInt16LE",value:function(e,t){return this._writeNumberValue(r.prototype.writeInt16LE,2,e,t)}},{key:"insertInt16LE",value:function(e,t){return this._insertNumberValue(r.prototype.writeInt16LE,2,e,t)}},{key:"writeInt32BE",value:function(e,t){return this._writeNumberValue(r.prototype.writeInt32BE,4,e,t)}},{key:"insertInt32BE",value:function(e,t){return this._insertNumberValue(r.prototype.writeInt32BE,4,e,t)}},{key:"writeInt32LE",value:function(e,t){return this._writeNumberValue(r.prototype.writeInt32LE,4,e,t)}},{key:"insertInt32LE",value:function(e,t){return this._insertNumberValue(r.prototype.writeInt32LE,4,e,t)}},{key:"writeBigInt64BE",value:function(e,t){return o.bigIntAndBufferInt64Check("writeBigInt64BE"),this._writeNumberValue(r.prototype.writeBigInt64BE,8,e,t)}},{key:"insertBigInt64BE",value:function(e,t){return o.bigIntAndBufferInt64Check("writeBigInt64BE"),this._insertNumberValue(r.prototype.writeBigInt64BE,8,e,t)}},{key:"writeBigInt64LE",value:function(e,t){return o.bigIntAndBufferInt64Check("writeBigInt64LE"),this._writeNumberValue(r.prototype.writeBigInt64LE,8,e,t)}},{key:"insertBigInt64LE",value:function(e,t){return o.bigIntAndBufferInt64Check("writeBigInt64LE"),this._insertNumberValue(r.prototype.writeBigInt64LE,8,e,t)}},{key:"readUInt8",value:function(e){return this._readNumberValue(r.prototype.readUInt8,1,e)}},{key:"readUInt16BE",value:function(e){return this._readNumberValue(r.prototype.readUInt16BE,2,e)}},{key:"readUInt16LE",value:function(e){return this._readNumberValue(r.prototype.readUInt16LE,2,e)}},{key:"readUInt32BE",value:function(e){return this._readNumberValue(r.prototype.readUInt32BE,4,e)}},{key:"readUInt32LE",value:function(e){return this._readNumberValue(r.prototype.readUInt32LE,4,e)}},{key:"readBigUInt64BE",value:function(e){return o.bigIntAndBufferInt64Check("readBigUInt64BE"),this._readNumberValue(r.prototype.readBigUInt64BE,8,e)}},{key:"readBigUInt64LE",value:function(e){return o.bigIntAndBufferInt64Check("readBigUInt64LE"),this._readNumberValue(r.prototype.readBigUInt64LE,8,e)}},{key:"writeUInt8",value:function(e,t){return this._writeNumberValue(r.prototype.writeUInt8,1,e,t)}},{key:"insertUInt8",value:function(e,t){return this._insertNumberValue(r.prototype.writeUInt8,1,e,t)}},{key:"writeUInt16BE",value:function(e,t){return this._writeNumberValue(r.prototype.writeUInt16BE,2,e,t)}},{key:"insertUInt16BE",value:function(e,t){return this._insertNumberValue(r.prototype.writeUInt16BE,2,e,t)}},{key:"writeUInt16LE",value:function(e,t){return this._writeNumberValue(r.prototype.writeUInt16LE,2,e,t)}},{key:"insertUInt16LE",value:function(e,t){return this._insertNumberValue(r.prototype.writeUInt16LE,2,e,t)}},{key:"writeUInt32BE",value:function(e,t){return this._writeNumberValue(r.prototype.writeUInt32BE,4,e,t)}},{key:"insertUInt32BE",value:function(e,t){return this._insertNumberValue(r.prototype.writeUInt32BE,4,e,t)}},{key:"writeUInt32LE",value:function(e,t){return this._writeNumberValue(r.prototype.writeUInt32LE,4,e,t)}},{key:"insertUInt32LE",value:function(e,t){return this._insertNumberValue(r.prototype.writeUInt32LE,4,e,t)}},{key:"writeBigUInt64BE",value:function(e,t){return o.bigIntAndBufferInt64Check("writeBigUInt64BE"),this._writeNumberValue(r.prototype.writeBigUInt64BE,8,e,t)}},{key:"insertBigUInt64BE",value:function(e,t){return o.bigIntAndBufferInt64Check("writeBigUInt64BE"),this._insertNumberValue(r.prototype.writeBigUInt64BE,8,e,t)}},{key:"writeBigUInt64LE",value:function(e,t){return o.bigIntAndBufferInt64Check("writeBigUInt64LE"),this._writeNumberValue(r.prototype.writeBigUInt64LE,8,e,t)}},{key:"insertBigUInt64LE",value:function(e,t){return o.bigIntAndBufferInt64Check("writeBigUInt64LE"),this._insertNumberValue(r.prototype.writeBigUInt64LE,8,e,t)}},{key:"readFloatBE",value:function(e){return this._readNumberValue(r.prototype.readFloatBE,4,e)}},{key:"readFloatLE",value:function(e){return this._readNumberValue(r.prototype.readFloatLE,4,e)}},{key:"writeFloatBE",value:function(e,t){return this._writeNumberValue(r.prototype.writeFloatBE,4,e,t)}},{key:"insertFloatBE",value:function(e,t){return this._insertNumberValue(r.prototype.writeFloatBE,4,e,t)}},{key:"writeFloatLE",value:function(e,t){return this._writeNumberValue(r.prototype.writeFloatLE,4,e,t)}},{key:"insertFloatLE",value:function(e,t){return this._insertNumberValue(r.prototype.writeFloatLE,4,e,t)}},{key:"readDoubleBE",value:function(e){return this._readNumberValue(r.prototype.readDoubleBE,8,e)}},{key:"readDoubleLE",value:function(e){return this._readNumberValue(r.prototype.readDoubleLE,8,e)}},{key:"writeDoubleBE",value:function(e,t){return this._writeNumberValue(r.prototype.writeDoubleBE,8,e,t)}},{key:"insertDoubleBE",value:function(e,t){return this._insertNumberValue(r.prototype.writeDoubleBE,8,e,t)}},{key:"writeDoubleLE",value:function(e,t){return this._writeNumberValue(r.prototype.writeDoubleLE,8,e,t)}},{key:"insertDoubleLE",value:function(e,t){return this._insertNumberValue(r.prototype.writeDoubleLE,8,e,t)}},{key:"readString",value:function(e,t){var n;"number"==typeof e?(o.checkLengthValue(e),n=Math.min(e,this.length-this._readOffset)):(t=e,n=this.length-this._readOffset),void 0!==t&&o.checkEncoding(t);var r=this._buff.slice(this._readOffset,this._readOffset+n).toString(t||this._encoding);return this._readOffset+=n,r}},{key:"insertString",value:function(e,t,n){return o.checkOffsetValue(t),this._handleString(e,!0,t,n)}},{key:"writeString",value:function(e,t,n){return this._handleString(e,!1,t,n)}},{key:"readStringNT",value:function(e){void 0!==e&&o.checkEncoding(e);for(var t=this.length,n=this._readOffset;n<this.length;n++)if(0===this._buff[n]){t=n;break}var r=this._buff.slice(this._readOffset,t);return this._readOffset=t+1,r.toString(e||this._encoding)}},{key:"insertStringNT",value:function(e,t,n){return o.checkOffsetValue(t),this.insertString(e,t,n),this.insertUInt8(0,t+e.length),this}},{key:"writeStringNT",value:function(e,t,n){return this.writeString(e,t,n),this.writeUInt8(0,"number"==typeof t?t+e.length:this.writeOffset),this}},{key:"readBuffer",value:function(e){void 0!==e&&o.checkLengthValue(e);var t="number"==typeof e?e:this.length,n=Math.min(this.length,this._readOffset+t),r=this._buff.slice(this._readOffset,n);return this._readOffset=n,r}},{key:"insertBuffer",value:function(e,t){return o.checkOffsetValue(t),this._handleBuffer(e,!0,t)}},{key:"writeBuffer",value:function(e,t){return this._handleBuffer(e,!1,t)}},{key:"readBufferNT",value:function(){for(var e=this.length,t=this._readOffset;t<this.length;t++)if(0===this._buff[t]){e=t;break}var n=this._buff.slice(this._readOffset,e);return this._readOffset=e+1,n}},{key:"insertBufferNT",value:function(e,t){return o.checkOffsetValue(t),this.insertBuffer(e,t),this.insertUInt8(0,t+e.length),this}},{key:"writeBufferNT",value:function(e,t){return void 0!==t&&o.checkOffsetValue(t),this.writeBuffer(e,t),this.writeUInt8(0,"number"==typeof t?t+e.length:this._writeOffset),this}},{key:"clear",value:function(){return this._writeOffset=0,this._readOffset=0,this.length=0,this}},{key:"remaining",value:function(){return this.length-this._readOffset}},{key:"readOffset",get:function(){return this._readOffset},set:function(e){o.checkOffsetValue(e),o.checkTargetOffset(e,this),this._readOffset=e}},{key:"writeOffset",get:function(){return this._writeOffset},set:function(e){o.checkOffsetValue(e),o.checkTargetOffset(e,this),this._writeOffset=e}},{key:"encoding",get:function(){return this._encoding},set:function(e){o.checkEncoding(e),this._encoding=e}},{key:"internalBuffer",get:function(){return this._buff}},{key:"toBuffer",value:function(){return this._buff.slice(0,this.length)}},{key:"toString",value:function(e){var t="string"==typeof e?e:this._encoding;return o.checkEncoding(t),this._buff.toString(t,0,this.length)}},{key:"destroy",value:function(){return this.clear(),this}},{key:"_handleString",value:function(e,t,n,i){var a=this._writeOffset,s=this._encoding;"number"==typeof n?a=n:"string"==typeof n&&(o.checkEncoding(n),s=n),"string"==typeof i&&(o.checkEncoding(i),s=i);var u=r.byteLength(e,s);return t?this.ensureInsertable(u,a):this._ensureWriteable(u,a),this._buff.write(e,a,u,s),t?this._writeOffset+=u:"number"==typeof n?this._writeOffset=Math.max(this._writeOffset,a+u):this._writeOffset+=u,this}},{key:"_handleBuffer",value:function(e,t,n){var r="number"==typeof n?n:this._writeOffset;return t?this.ensureInsertable(e.length,r):this._ensureWriteable(e.length,r),e.copy(this._buff,r),t?this._writeOffset+=e.length:"number"==typeof n?this._writeOffset=Math.max(this._writeOffset,r+e.length):this._writeOffset+=e.length,this}},{key:"ensureReadable",value:function(e,t){var n=this._readOffset;if(void 0!==t&&(o.checkOffsetValue(t),n=t),n<0||n+e>this.length)throw new Error(o.ERRORS.INVALID_READ_BEYOND_BOUNDS)}},{key:"ensureInsertable",value:function(e,t){o.checkOffsetValue(t),this._ensureCapacity(this.length+e),t<this.length&&this._buff.copy(this._buff,t+e,t,this._buff.length),t+e>this.length?this.length=t+e:this.length+=e}},{key:"_ensureWriteable",value:function(e,t){var n="number"==typeof t?t:this._writeOffset;this._ensureCapacity(n+e),n+e>this.length&&(this.length=n+e)}},{key:"_ensureCapacity",value:function(e){var t=this._buff.length;if(e>t){var n=this._buff,i=3*t/2+1;i<e&&(i=e),this._buff=r.allocUnsafe(i),n.copy(this._buff,0,0,t)}}},{key:"_readNumberValue",value:function(e,t,n){this.ensureReadable(t,n);var r=e.call(this._buff,"number"==typeof n?n:this._readOffset);return void 0===n&&(this._readOffset+=t),r}},{key:"_insertNumberValue",value:function(e,t,n,r){return o.checkOffsetValue(r),this.ensureInsertable(t,r),e.call(this._buff,n,r),this._writeOffset+=t,this}},{key:"_writeNumberValue",value:function(e,t,n,r){if("number"==typeof r){if(r<0)throw new Error(o.ERRORS.INVALID_WRITE_BEYOND_BOUNDS);o.checkOffsetValue(r)}var i="number"==typeof r?r:this._writeOffset;return this._ensureWriteable(t,i),e.call(this._buff,n,i),"number"==typeof r?this._writeOffset=Math.max(this._writeOffset,i+t):this._writeOffset+=t,this}}],[{key:"fromSize",value:function(e,t){return new this({size:e,encoding:t})}},{key:"fromBuffer",value:function(e,t){return new this({buff:e,encoding:t})}},{key:"fromOptions",value:function(e){return new this(e)}},{key:"isSmartBufferOptions",value:function(e){var t=e;return t&&(void 0!==t.encoding||void 0!==t.size||void 0!==t.buff)}}]),e}();t.$=s},4370:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(918),i={INVALID_ENCODING:"Invalid encoding provided. Please specify a valid encoding the internal Node.js Buffer supports.",INVALID_SMARTBUFFER_SIZE:"Invalid size provided. Size must be a valid integer greater than zero.",INVALID_SMARTBUFFER_BUFFER:"Invalid Buffer provided in SmartBufferOptions.",INVALID_SMARTBUFFER_OBJECT:"Invalid SmartBufferOptions object supplied to SmartBuffer constructor or factory methods.",INVALID_OFFSET:"An invalid offset value was provided.",INVALID_OFFSET_NON_NUMBER:"An invalid offset value was provided. A numeric value is required.",INVALID_LENGTH:"An invalid length value was provided.",INVALID_LENGTH_NON_NUMBER:"An invalid length value was provived. A numeric value is required.",INVALID_TARGET_OFFSET:"Target offset is beyond the bounds of the internal SmartBuffer data.",INVALID_TARGET_LENGTH:"Specified length value moves cursor beyong the bounds of the internal SmartBuffer data.",INVALID_READ_BEYOND_BOUNDS:"Attempted to read beyond the bounds of the managed data.",INVALID_WRITE_BEYOND_BOUNDS:"Attempted to write beyond the bounds of the managed data."};function a(e){return"number"==typeof e&&isFinite(e)&&function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}(e)}function o(e,t){if("number"!=typeof e)throw new Error(t?i.INVALID_OFFSET_NON_NUMBER:i.INVALID_LENGTH_NON_NUMBER);if(!a(e)||e<0)throw new Error(t?i.INVALID_OFFSET:i.INVALID_LENGTH)}t.ERRORS=i,t.checkEncoding=function(e){if(!r.Buffer.isEncoding(e))throw new Error(i.INVALID_ENCODING)},t.isFiniteInteger=a,t.checkLengthValue=function(e){o(e,!1)},t.checkOffsetValue=function(e){o(e,!0)},t.checkTargetOffset=function(e,t){if(e<0||e>t.length)throw new Error(i.INVALID_TARGET_OFFSET)},t.bigIntAndBufferInt64Check=function(e){if("undefined"==typeof BigInt)throw new Error("Platform does not support JS BigInt type.");if(void 0===r.Buffer.prototype[e])throw new Error("Platform does not support Buffer.prototype.".concat(e,"."))}},3841:function(e,t,n){e.exports=i;var r=n(8041).EventEmitter;function i(){r.call(this)}n(273)(i,r),i.Readable=n(6405),i.Writable=n(7423),i.Duplex=n(6085),i.Transform=n(4917),i.PassThrough=n(9543),i.finished=n(4297),i.pipeline=n(6545),i.Stream=i,i.prototype.pipe=function(e,t){var n=this;function i(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function a(){n.readable&&n.resume&&n.resume()}n.on("data",i),e.on("drain",a),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",u));var o=!1;function s(){o||(o=!0,e.end())}function u(){o||(o=!0,"function"==typeof e.destroy&&e.destroy())}function l(e){if(c(),0===r.listenerCount(this,"error"))throw e}function c(){n.removeListener("data",i),e.removeListener("drain",a),n.removeListener("end",s),n.removeListener("close",u),n.removeListener("error",l),e.removeListener("error",l),n.removeListener("end",c),n.removeListener("close",c),e.removeListener("close",c)}return n.on("error",l),e.on("error",l),n.on("end",c),n.on("close",c),e.on("close",c),e.emit("pipe",n),e}},8570:function(e,t,n){"use strict";var r=n(5734).Buffer,i=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function a(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=l,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=c,this.end=f,t=3;break;default:return this.write=d,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function u(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function l(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function c(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}t.s=a,a.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},a.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},a.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=o(t[r]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--r<n||-2===i?0:(i=o(t[r]))>=0?(i>0&&(e.lastNeed=i-2),i):--r<n||-2===i?0:(i=o(t[r]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},9043:function(e,t,n){var r=n(8466);function i(e){try{if(!n.g.localStorage)return!1}catch(e){return!1}var t=n.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=function(e,t){if(i("noDeprecation"))return e;var n=!1;return function(){if(!n){if(i("throwDeprecation"))throw new Error(t);i("traceDeprecation")?r.trace(t):r.warn(t),n=!0}return e.apply(this,arguments)}}},6181:function(e){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},902:function(e,t,n){"use strict";var r=n(5021),i=n(7469),a=n(1520),o=n(2105);function s(e){return e.call.bind(e)}var u="undefined"!=typeof BigInt,l="undefined"!=typeof Symbol,c=s(Object.prototype.toString),f=s(Number.prototype.valueOf),d=s(String.prototype.valueOf),p=s(Boolean.prototype.valueOf);if(u)var h=s(BigInt.prototype.valueOf);if(l)var m=s(Symbol.prototype.valueOf);function v(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function y(e){return"[object Map]"===c(e)}function g(e){return"[object Set]"===c(e)}function b(e){return"[object WeakMap]"===c(e)}function w(e){return"[object WeakSet]"===c(e)}function x(e){return"[object ArrayBuffer]"===c(e)}function k(e){return"undefined"!=typeof ArrayBuffer&&(x.working?x(e):e instanceof ArrayBuffer)}function _(e){return"[object DataView]"===c(e)}function E(e){return"undefined"!=typeof DataView&&(_.working?_(e):e instanceof DataView)}t.isArgumentsObject=r,t.isGeneratorFunction=i,t.isTypedArray=o,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):o(e)||E(e)},t.isUint8Array=function(e){return"Uint8Array"===a(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===a(e)},t.isUint16Array=function(e){return"Uint16Array"===a(e)},t.isUint32Array=function(e){return"Uint32Array"===a(e)},t.isInt8Array=function(e){return"Int8Array"===a(e)},t.isInt16Array=function(e){return"Int16Array"===a(e)},t.isInt32Array=function(e){return"Int32Array"===a(e)},t.isFloat32Array=function(e){return"Float32Array"===a(e)},t.isFloat64Array=function(e){return"Float64Array"===a(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===a(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===a(e)},y.working="undefined"!=typeof Map&&y(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(y.working?y(e):e instanceof Map)},g.working="undefined"!=typeof Set&&g(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(g.working?g(e):e instanceof Set)},b.working="undefined"!=typeof WeakMap&&b(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(b.working?b(e):e instanceof WeakMap)},w.working="undefined"!=typeof WeakSet&&w(new WeakSet),t.isWeakSet=function(e){return w(e)},x.working="undefined"!=typeof ArrayBuffer&&x(new ArrayBuffer),t.isArrayBuffer=k,_.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&_(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=E;var S="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function O(e){return"[object SharedArrayBuffer]"===c(e)}function A(e){return void 0!==S&&(void 0===O.working&&(O.working=O(new S)),O.working?O(e):e instanceof S)}function C(e){return v(e,f)}function T(e){return v(e,d)}function N(e){return v(e,p)}function j(e){return u&&v(e,h)}function P(e){return l&&v(e,m)}t.isSharedArrayBuffer=A,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===c(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===c(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===c(e)},t.isGeneratorObject=function(e){return"[object Generator]"===c(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===c(e)},t.isNumberObject=C,t.isStringObject=T,t.isBooleanObject=N,t.isBigIntObject=j,t.isSymbolObject=P,t.isBoxedPrimitive=function(e){return C(e)||T(e)||N(e)||j(e)||P(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(k(e)||A(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))},7736:function(e,t,n){var r=n(7490),i=n(8466),a=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},o=/%[sdj%]/g;t.format=function(e){if(!w(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(c(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,i=r.length,a=String(e).replace(o,(function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),s=r[n];n<i;s=r[++n])g(s)||!_(s)?a+=" "+s:a+=" "+c(s);return a},t.deprecate=function(e,n){if(void 0!==r&&!0===r.noDeprecation)return e;if(void 0===r)return function(){return t.deprecate(e,n).apply(this,arguments)};var a=!1;return function(){if(!a){if(r.throwDeprecation)throw new Error(n);r.traceDeprecation?i.trace(n):i.error(n),a=!0}return e.apply(this,arguments)}};var s={},u=/^$/;if({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.NODE_DEBUG){var l={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.NODE_DEBUG;l=l.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),u=new RegExp("^"+l+"$","i")}function c(e,n){var r={seen:[],stylize:d};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),y(n)?r.showHidden=n:n&&t._extend(r,n),x(r.showHidden)&&(r.showHidden=!1),x(r.depth)&&(r.depth=2),x(r.colors)&&(r.colors=!1),x(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=f),p(r,e,r.depth)}function f(e,t){var n=c.styles[t];return n?"["+c.colors[n][0]+"m"+e+"["+c.colors[n][1]+"m":e}function d(e,t){return e}function p(e,n,r){if(e.customInspect&&n&&O(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return w(i)||(i=p(e,i,r)),i}var a=function(e,t){if(x(t))return e.stylize("undefined","undefined");if(w(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return b(t)?e.stylize(""+t,"number"):y(t)?e.stylize(""+t,"boolean"):g(t)?e.stylize("null","null"):void 0}(e,n);if(a)return a;var o=Object.keys(n),s=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(n)),S(n)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return h(n);if(0===o.length){if(O(n)){var u=n.name?": "+n.name:"";return e.stylize("[Function"+u+"]","special")}if(k(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(E(n))return e.stylize(Date.prototype.toString.call(n),"date");if(S(n))return h(n)}var l,c="",f=!1,d=["{","}"];return v(n)&&(f=!0,d=["[","]"]),O(n)&&(c=" [Function"+(n.name?": "+n.name:"")+"]"),k(n)&&(c=" "+RegExp.prototype.toString.call(n)),E(n)&&(c=" "+Date.prototype.toUTCString.call(n)),S(n)&&(c=" "+h(n)),0!==o.length||f&&0!=n.length?r<0?k(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),l=f?function(e,t,n,r,i){for(var a=[],o=0,s=t.length;o<s;++o)j(t,String(o))?a.push(m(e,t,n,r,String(o),!0)):a.push("");return i.forEach((function(i){i.match(/^\d+$/)||a.push(m(e,t,n,r,i,!0))})),a}(e,n,r,s,o):o.map((function(t){return m(e,n,r,s,t,f)})),e.seen.pop(),function(e,t,n){return e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(l,c,d)):d[0]+c+d[1]}function h(e){return"["+Error.prototype.toString.call(e)+"]"}function m(e,t,n,r,i,a){var o,s,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),j(r,i)||(o="["+i+"]"),s||(e.seen.indexOf(u.value)<0?(s=g(n)?p(e,u.value,null):p(e,u.value,n-1)).indexOf("\n")>-1&&(s=a?s.split("\n").map((function(e){return" "+e})).join("\n").slice(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),x(o)){if(a&&i.match(/^\d+$/))return s;(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),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 y(e){return"boolean"==typeof e}function g(e){return null===e}function b(e){return"number"==typeof e}function w(e){return"string"==typeof e}function x(e){return void 0===e}function k(e){return _(e)&&"[object RegExp]"===A(e)}function _(e){return"object"==typeof e&&null!==e}function E(e){return _(e)&&"[object Date]"===A(e)}function S(e){return _(e)&&("[object Error]"===A(e)||e instanceof Error)}function O(e){return"function"==typeof e}function A(e){return Object.prototype.toString.call(e)}function C(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!s[e])if(u.test(e)){var n=r.pid;s[e]=function(){var r=t.format.apply(t,arguments);i.error("%s %d: %s",e,n,r)}}else s[e]=function(){};return s[e]},t.inspect=c,c.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]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=n(902),t.isArray=v,t.isBoolean=y,t.isNull=g,t.isNullOrUndefined=function(e){return null==e},t.isNumber=b,t.isString=w,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=x,t.isRegExp=k,t.types.isRegExp=k,t.isObject=_,t.isDate=E,t.types.isDate=E,t.isError=S,t.types.isNativeError=S,t.isFunction=O,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(6181);var T=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function N(){var e=new Date,t=[C(e.getHours()),C(e.getMinutes()),C(e.getSeconds())].join(":");return[e.getDate(),T[e.getMonth()],t].join(" ")}function j(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){i.log("%s - %s",N(),t.format.apply(t,arguments))},t.inherits=n(273),t._extend=function(e,t){if(!t||!_(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var P="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function R(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(P&&e[P]){var t;if("function"!=typeof(t=e[P]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,P,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),i=[],a=0;a<arguments.length;a++)i.push(arguments[a]);i.push((function(e,r){e?n(e):t(r)}));try{e.apply(this,i)}catch(e){n(e)}return r}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),P&&Object.defineProperty(t,P,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,a(e))},t.promisify.custom=P,t.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n]);var i=t.pop();if("function"!=typeof i)throw new TypeError("The last argument must be of type Function");var a=this,o=function(){return i.apply(a,arguments)};e.apply(this,t).then((function(e){r.nextTick(o.bind(null,null,e))}),(function(e){r.nextTick(R.bind(null,e,o))}))}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,a(e)),t}},1520:function(e,t,n){"use strict";var r=n(5767),i=n(3645),a=n(4680),o=a("Object.prototype.toString"),s=n(8857)(),u="undefined"==typeof globalThis?n.g:globalThis,l=i(),c=a("String.prototype.slice"),f={},d=n(3397),p=Object.getPrototypeOf;s&&d&&p&&r(l,(function(e){if("function"==typeof u[e]){var t=new u[e];if(Symbol.toStringTag in t){var n=p(t),r=d(n,Symbol.toStringTag);if(!r){var i=p(n);r=d(i,Symbol.toStringTag)}f[e]=r.get}}}));var h=n(2105);e.exports=function(e){return!!h(e)&&(s&&Symbol.toStringTag in e?function(e){var t=!1;return r(f,(function(n,r){if(!t)try{var i=n.call(e);i===r&&(t=i)}catch(e){}})),t}(e):c(o(e),8,-1))}},6:function(e){"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,a){for(var o,s,u=i(e),l=1;l<arguments.length;l++){for(var c in o=Object(arguments[l]))n.call(o,c)&&(u[c]=o[c]);if(t){s=t(o);for(var f=0;f<s.length;f++)r.call(o,s[f])&&(u[s[f]]=o[s[f]])}}return u}},8666:function(e,t,n){"use strict";var r,i,a,o,s=n(8466);if("object"==typeof performance&&"function"==typeof performance.now){var u=performance;t.unstable_now=function(){return u.now()}}else{var l=Date,c=l.now();t.unstable_now=function(){return l.now()-c}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var f=null,d=null,p=function e(){if(null!==f)try{var n=t.unstable_now();f(!0,n),f=null}catch(t){throw setTimeout(e,0),t}};r=function(e){null!==f?setTimeout(r,0,e):(f=e,setTimeout(p,0))},i=function(e,t){d=setTimeout(e,t)},a=function(){clearTimeout(d)},t.unstable_shouldYield=function(){return!1},o=t.unstable_forceFrameRate=function(){}}else{var h=window.setTimeout,m=window.clearTimeout;if(void 0!==s){var v=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&s.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof v&&s.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var y=!1,g=null,b=-1,w=5,x=0;t.unstable_shouldYield=function(){return t.unstable_now()>=x},o=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?s.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):w=0<e?Math.floor(1e3/e):5};var k=new MessageChannel,_=k.port2;k.port1.onmessage=function(){if(null!==g){var e=t.unstable_now();x=e+w;try{g(!0,e)?_.postMessage(null):(y=!1,g=null)}catch(e){throw _.postMessage(null),e}}else y=!1},r=function(e){g=e,y||(y=!0,_.postMessage(null))},i=function(e,n){b=h((function(){e(t.unstable_now())}),n)},a=function(){m(b),b=-1}}function E(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<A(i,t)))break e;e[r]=t,e[n]=i,n=r}}function S(e){return void 0===(e=e[0])?null:e}function O(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var a=2*(r+1)-1,o=e[a],s=a+1,u=e[s];if(void 0!==o&&0>A(o,n))void 0!==u&&0>A(u,o)?(e[r]=u,e[s]=n,r=s):(e[r]=o,e[a]=n,r=a);else{if(!(void 0!==u&&0>A(u,n)))break e;e[r]=u,e[s]=n,r=s}}}return t}return null}function A(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var C=[],T=[],N=1,j=null,P=3,R=!1,I=!1,L=!1;function M(e){for(var t=S(T);null!==t;){if(null===t.callback)O(T);else{if(!(t.startTime<=e))break;O(T),t.sortIndex=t.expirationTime,E(C,t)}t=S(T)}}function B(e){if(L=!1,M(e),!I)if(null!==S(C))I=!0,r(D);else{var t=S(T);null!==t&&i(B,t.startTime-e)}}function D(e,n){I=!1,L&&(L=!1,a()),R=!0;var r=P;try{for(M(n),j=S(C);null!==j&&(!(j.expirationTime>n)||e&&!t.unstable_shouldYield());){var o=j.callback;if("function"==typeof o){j.callback=null,P=j.priorityLevel;var s=o(j.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?j.callback=s:j===S(C)&&O(C),M(n)}else O(C);j=S(C)}if(null!==j)var u=!0;else{var l=S(T);null!==l&&i(B,l.startTime-n),u=!1}return u}finally{j=null,P=r,R=!1}}var U=o;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){I||R||(I=!0,r(D))},t.unstable_getCurrentPriorityLevel=function(){return P},t.unstable_getFirstCallbackNode=function(){return S(C)},t.unstable_next=function(e){switch(P){case 1:case 2:case 3:var t=3;break;default:t=P}var n=P;P=t;try{return e()}finally{P=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=U,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=P;P=e;try{return t()}finally{P=n}},t.unstable_scheduleCallback=function(e,n,o){var s=t.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?s+o:s,e){case 1:var u=-1;break;case 2:u=250;break;case 5:u=1073741823;break;case 4:u=1e4;break;default:u=5e3}return e={id:N++,callback:n,priorityLevel:e,startTime:o,expirationTime:u=o+u,sortIndex:-1},o>s?(e.sortIndex=o,E(T,e),null===S(C)&&e===S(T)&&(L?a():L=!0,i(B,o-s))):(e.sortIndex=u,E(C,e),I||R||(I=!0,r(D))),e},t.unstable_wrapCallback=function(e){var t=P;return function(){var n=P;P=t;try{return e.apply(this,arguments)}finally{P=n}}}},3830:function(e,t,n){"use strict";e.exports=n(8666)},2361:function(){},4616:function(){},6115:function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},6690:function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},9728:function(e){function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},6389:function(e,t,n){var r=n(3808),i=n(9617),a=n(4993);e.exports=function(e){var t=i();return function(){var n,i=r(e);if(t){var o=r(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return a(this,n)}},e.exports.__esModule=!0,e.exports.default=e.exports},3808:function(e){function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},1655:function(e,t,n){var r=n(6015);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},9617:function(e){e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}},e.exports.__esModule=!0,e.exports.default=e.exports},4993:function(e,t,n){var r=n(8698).default,i=n(6115);e.exports=function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)},e.exports.__esModule=!0,e.exports.default=e.exports},6015:function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},8698:function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},3645:function(e,t,n){"use strict";var r=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],i="undefined"==typeof globalThis?n.g:globalThis;e.exports=function(){for(var e=[],t=0;t<r.length;t++)"function"==typeof i[r[t]]&&(e[e.length]=r[t]);return e}},3397:function(e,t,n){"use strict";var r=n(8476)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(e){r=null}e.exports=r}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e,t,r,i,a=n(3705),o=n(6377);function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,i=e}finally{try{o||null==n.return||n.return()}finally{if(s)throw i}}return a}}(e,t)||u(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(t){switch(t){case e.Pressed:return"Pressed";case e.Released:return"Released";case e.Held:return"Held"}}function h(t){switch(t){case"Pressed":return e.Pressed;case"Released":return e.Released;case"Held":return e.Held}}function m(e){switch(e){case i.MuteAllChannels:return"muteallchannels";case i.PlayInstruction:return"playinstructions"}}function v(e){switch(e){case"muteallchannels":return i.MuteAllChannels;case"playinstructions":return i.PlayInstruction}}!function(e){e[e.Pressed=1]="Pressed",e[e.Released=2]="Released",e[e.Held=3]="Held"}(e||(e={})),function(e){e[e.Player=0]="Player",e[e.Reaction=1]="Reaction"}(t||(t={})),function(e){e[e.None=0]="None",e[e.Left=1]="Left",e[e.Up=2]="Up",e[e.Right=3]="Right",e[e.Down=4]="Down",e[e.A=5]="A",e[e.B=6]="B",e[e.Menu=7]="Menu",e[e.Screenshot=-1]="Screenshot",e[e.Gif=-2]="Gif",e[e.Reset=-3]="Reset",e[e.TogglePause=-4]="TogglePause"}(r||(r={})),function(e){e[e.MuteAllChannels=0]="MuteAllChannels",e[e.PlayInstruction=1]="PlayInstruction"}(i||(i={}));var y,g={users:[]};y||(y={});var b={netMode:"init",authStatus:"unknown",profile:void 0,clientRole:void 0,playerSlot:void 0,joinCode:void 0,gameState:void 0,gameMetadata:void 0,gamePaused:void 0,toasts:[],presence:d({},g),modal:void 0,modalOpts:void 0,muted:pxt.BrowserUtils.isSafari(),deepLinks:{},reactions:{},targetConfig:void 0};function w(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||u(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t){switch(t.type){case"SET_USER_PROFILE":var n;return d(d({},e),{},{profile:t.profile,authStatus:null!==(n=t.profile)&&void 0!==n&&n.id?"signed-in":"signed-out"});case"SET_CLIENT_ROLE":return d(d({},e),{},{clientRole:t.clientRole});case"SET_NET_MODE":var r=d(d({},e),{},{netMode:t.mode});return"init"===t.mode&&(r=d(d({},r),{},{clientRole:void 0,playerSlot:void 0,joinCode:void 0,gameState:void 0,gameMetadata:void 0,gamePaused:void 0,presence:d({},g),modal:void 0,modalOpts:void 0})),r;case"SET_GAME_INFO":return d(d({},e),{},{gameState:d(d({},e.gameState),t.gameInfo)});case"SET_GAME_METADATA":return d(d({},e),{},{gameMetadata:t.gameMetadata});case"SET_GAME_ID":return d(d({},e),{},{gameState:d(d({},e.gameState),{},{gameId:t.gameId})});case"SET_PLAYER_SLOT":return d(d({},e),{},{playerSlot:t.playerSlot});case"CLEAR_GAME_INFO":return d(d({},e),{},{playerSlot:void 0,gameState:void 0,gameMetadata:void 0});case"SET_GAME_MODE":return d(d({},e),{},{gameState:d(d({},e.gameState),{},{gameMode:t.gameMode})});case"SHOW_TOAST":return d(d({},e),{},{toasts:[].concat(w(e.toasts),[t.toast])});case"DISMISS_TOAST":return d(d({},e),{},{toasts:e.toasts.filter((function(e){return e.id!==t.id}))});case"SET_PRESENCE":return d(d({},e),{},{presence:d({},t.presence)});case"SET_REACTION":return d(d({},e),{},{reactions:d(d({},e.reactions),{},c({},t.clientId,{id:t.reactionId,index:t.index}))});case"CLEAR_REACTION":return d(d({},e),{},{reactions:d(d({},e.reactions),{},c({},t.clientId,void 0))});case"SHOW_MODAL":return d(d({},e),{},{modal:t.modalType,modalOpts:t.modalOpts});case"CLEAR_MODAL":return d(d({},e),{},{modal:void 0,modalOpts:void 0});case"SET_DEEP_LINKS":return d(d({},e),{},{deepLinks:{shareCode:t.shareCode,joinCode:t.shareCode?void 0:t.joinCode}});case"SET_MUTE":return d(d({},e),{},{muted:t.value});case"SET_GAME_PAUSED":return d(d({},e),{},{gamePaused:t.gamePaused});case"SET_TARGET_CONFIG":return d(d({},e),{},{targetConfig:t.targetConfig});case"SET_PRESENCE_ICON_OVERRIDE":var i,a,o=(null===(i=e.gameState)||void 0===i||null===(a=i.presenceIconOverrides)||void 0===a?void 0:a.slice())||[];return o[t.slot]=t.icon,d(d({},e),{},{gameState:d(d({},e.gameState),{},{presenceIconOverrides:o})});case"SET_REACTION_ICON_OVERRIDE":var s,u,l=(null===(s=e.gameState)||void 0===s||null===(u=s.reactionIconOverrides)||void 0===u?void 0:u.slice())||[];return l[t.slot]=t.icon,d(d({},e),{},{gameState:d(d({},e.gameState),{},{reactionIconOverrides:l})})}}var k,_,E=n(1411),S=(0,a.createContext)({state:void 0,dispatch:void 0});function O(e){var t=l((0,a.useReducer)(x,b),2),n=t[0],r=t[1];return(0,a.useEffect)((function(){k=n,_=r}),[n,r]),(0,E.jsx)(S.Provider,{value:{state:n,dispatch:r},children:e.children})}function A(){return(0,E.jsx)("div",{className:"tw-w-screen tw-h-screen tw-flex tw-justify-center tw-items-center tw-text-xl tw-text-white",children:lf("Loading...")})}var C,T=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:21;return crypto.getRandomValues(new Uint8Array(e)).reduce((function(e,t){return e+((t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_")}),"")},N=function(e){return{type:"SET_USER_PROFILE",profile:e}},j=function(e){return{type:"SET_CLIENT_ROLE",clientRole:e}},P=function(e){return{type:"SET_NET_MODE",mode:e}},R=function(e){return{type:"SET_GAME_INFO",gameInfo:e}},I=function(e){return{type:"SET_GAME_METADATA",gameMetadata:e}},L=function(e){return{type:"SET_GAME_ID",gameId:e}},M=function(e){return{type:"SET_PLAYER_SLOT",playerSlot:e}},B=function(e){return{type:"SET_GAME_MODE",gameMode:e}},D=function(e){return{type:"SHOW_TOAST",toast:d({id:T(8)},e)}},U=function(e){return{type:"DISMISS_TOAST",id:e}},F=function(e){return{type:"SET_PRESENCE",presence:e}},z=function(e,t,n){return{type:"SET_REACTION",clientId:e,reactionId:t,index:n}},V=function(e){return{type:"CLEAR_REACTION",clientId:e}},H=function(e,t){return{type:"SHOW_MODAL",modalType:e,modalOpts:t}},W=function(e,t){return{type:"SET_DEEP_LINKS",shareCode:e,joinCode:t}},q=function(e){return{type:"SET_GAME_PAUSED",gamePaused:e}},G=function(e,t){return{type:"SET_PRESENCE_ICON_OVERRIDE",slot:e,icon:t}},Z=function(e,t){return{type:"SET_REACTION_ICON_OVERRIDE",slot:e,icon:t}};function Y(){var e=(0,a.useContext)(S).state.deepLinks,t=e.shareCode,n=e.joinCode,r=lf("Sign in to host this multiplayer game"),i=lf("Sign up to host this multiplayer game"),o=lf("Sign in to join multiplayer game {0}",n),s=lf("Sign up to join multiplayer game {0}",n),u=lf("Sign in to host or join a multiplayer game"),l=lf("Sign up to host or join a multiplayer game");return(0,a.useMemo)((function(){return t?{signInMessage:r,signUpMessage:i}:n?{signInMessage:o,signUpMessage:s}:{signInMessage:u,signUpMessage:l}}),[t,n])}function $(){var e=(0,a.useContext)(S).dispatch,t=Y();return(0,a.useEffect)((function(){e(H("sign-in",{dialogMessages:t}))}),[t]),(0,E.jsx)(E.Fragment,{})}function K(e){return(K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function X(){X=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",o=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof f?t:f,a=Object.create(i.prototype),o=new _(r||[]);return a._invoke=function(e,t,n){var r="suspendedStart";return function(i,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw a;return{value:void 0,done:!0}}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=w(o,n);if(s){if(s===c)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=l(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===c)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,o),a}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var c={};function f(){}function d(){}function p(){}var h={};s(h,i,(function(){return this}));var m=Object.getPrototypeOf,v=m&&m(m(E([])));v&&v!==t&&n.call(v,i)&&(h=v);var y=p.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function r(i,a,o,s){var u=l(e[i],e,a);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==K(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,o,s)}),(function(e){r("throw",e,o,s)})):t.resolve(f).then((function(e){c.value=e,o(c)}),(function(e){return r("throw",e,o,s)}))}s(u.arg)}var i;this._invoke=function(e,n){function a(){return new t((function(t,i){r(e,n,t,i)}))}return i=i?i.then(a,a):a()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return c;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var r=l(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,c;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,c):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,c)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function E(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 r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:S}}function S(){return{value:void 0,done:!0}}return d.prototype=p,s(y,"constructor",p),s(p,"constructor",d),d.displayName=s(p,o,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,s(e,o,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},g(b.prototype),s(b.prototype,a,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,i,a){void 0===a&&(a=Promise);var o=new b(u(t,n,r,i),a);return e.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},g(y),s(y,o,"Generator"),s(y,i,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=E,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return o.type="throw",o.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,c):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),c},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),c}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},e}function Q(e,t,n,r,i,a,o){try{var s=e[a](o),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function J(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){Q(a,r,i,o,s,"next",e)}function s(e){Q(a,r,i,o,s,"throw",e)}o(void 0)}))}}function ee(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=u(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function te(e){var t="number"==typeof e.which?e.which:e.keyCode;13!==t&&32!==t||(e.preventDefault(),e.currentTarget.click())}function ne(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return"string"==typeof e})).reduce((function(e,t){return e.concat(t.split(" "))}),[]).map((function(e){return e.trim()})).filter((function(e){return!!e})).join(" ")}!function(e){e[e.Selected=0]="Selected",e[e.Unselected=1]="Unselected",e[e.Waiting=2]="Waiting"}(C||(C={}));var re=function(e){var t=e.id,n=e.className,r=e.style,i=e.ariaLabel,a=e.ariaHidden,o=e.ariaDescribedBy,s=e.ariaControls,u=e.ariaExpanded,l=e.ariaHasPopup,c=e.ariaPosInSet,f=e.ariaSetSize,d=e.ariaSelected,p=e.ariaPressed,h=e.role,m=e.onClick,v=e.onKeydown,y=e.onBlur,g=e.buttonRef,b=e.title,w=e.label,x=e.leftIcon,k=e.rightIcon,_=e.hardDisabled,S=e.href,O=e.target,A=e.tabIndex,C=e.children,T=e.disabled,N=ne("common-button",n,(T=T||_)&&"disabled");return(0,E.jsxs)("button",{id:t,className:N,style:r,title:b,ref:g,onClick:T?void 0:function(e){m&&m(),S&&window.open(S,O||"_blank","noopener,noreferrer"),e.stopPropagation(),e.preventDefault()},onKeyDown:v||te,onBlur:y,role:h||"button",tabIndex:A||(T?-1:0),disabled:_,"aria-label":i,"aria-hidden":a,"aria-controls":s,"aria-expanded":u,"aria-haspopup":l,"aria-posinset":c,"aria-setsize":f,"aria-describedby":o,"aria-selected":d,"aria-pressed":p,children:[(x||k||w)&&(0,E.jsxs)("span",{className:"common-button-flex",children:[x&&(0,E.jsx)("i",{className:x,"aria-hidden":!0}),(0,E.jsx)("span",{className:"common-button-label",children:w}),k&&(0,E.jsx)("i",{className:"right "+k,"aria-hidden":!0})]}),C]})},ie=function(e){var t,n,r=e.id,i=e.className,a=e.role,o=e.ariaHidden,s=e.ariaLabel,u=e.childTabStopId,l=e.children,c=e.onItemReceivedFocus,f=e.useUpAndDownArrowKeys,d=function(e){return"true"===e.getAttribute("data-isfocusable")&&"none"!==getComputedStyle(e).display},p=function(){return t.find((function(e){return d(e)}))},h=function(){for(var e=0;e<t.length;e++)if(d(t[t.length-1-e]))return t[t.length-1-e];return t[0]},m=function(e,n){for(var r,i=1;i<t.length;i++)if(r=n?t[(e+i)%t.length]:t[(e+t.length-i)%t.length],d(r))return r;return t[0]};return(0,E.jsx)("div",{id:r,className:i,role:a,tabIndex:u?void 0:0,onKeyDown:function(e){var r;if(null!==(r=t)&&void 0!==r&&r.length){var i=document.activeElement,a=t.indexOf(i),o=function(e){e.focus(),c&&c(e)};-1===a&&i!==n||("Enter"===e.key||" "===e.key?(e.preventDefault(),e.stopPropagation(),i.click?i.click():i.dispatchEvent(new Event("click"))):e.key===(f?"ArrowDown":"ArrowRight")?(a===t.length-1||i===n?o(p()):o(m(a,!0)),e.preventDefault(),e.stopPropagation()):e.key===(f?"ArrowUp":"ArrowLeft")?(o(0===a||i===n?h():m(a,!1)),e.preventDefault(),e.stopPropagation()):"Home"===e.key?(o(p()),e.preventDefault(),e.stopPropagation()):"End"===e.key&&(o(h()),e.preventDefault(),e.stopPropagation()))}},ref:function(e){if(e&&!n){n=e;var r=e.querySelectorAll('[tabindex]:not([tabindex="-1"]),[data-isfocusable]');t=[];var i,a=ee(r.values());try{for(a.s();!(i=a.n()).done;){var o=i.value;t.push(o),o.setAttribute("tabindex","-1"),o.setAttribute("data-isfocusable","true")}}catch(e){a.e(e)}finally{a.f()}if(u){var s=n.querySelector("#"+u);s&&s.setAttribute("tabindex","0")}}},"aria-hidden":o,"aria-label":s,children:l})},ae=function(e){var t,n,r=e.id,i=e.className,o=e.inputClassName,s=e.groupClassName,u=e.role,c=e.ariaHidden,f=e.ariaLabel,d=e.initialValue,p=e.label,h=e.title,m=e.placeholder,v=e.icon,y=e.iconTitle,g=e.disabled,b=e.type,w=e.readOnly,x=e.autoComplete,k=e.selectOnClick,_=e.onChange,S=e.onEnterKey,O=e.onIconClick,A=e.onBlur,C=e.onOptionSelected,T=e.handleInputRef,N=e.preserveValueOnBlur,j=e.options,P=l(a.useState(void 0),2),R=P[0],I=P[1],L=l(a.useState(!1),2),M=L[0],B=L[1],D=function(e){return e&&-1!=Object.values(j).indexOf(e)?"dropdown-item-".concat(e):void 0};return(0,E.jsxs)("div",{className:ne("common-input-wrapper",g&&"disabled",i),onBlur:function(e){M&&!n.contains(e.relatedTarget)&&B(!1)},ref:function(e){e&&(n=e)},children:[p&&(0,E.jsx)("label",{className:"common-input-label",htmlFor:r,children:p}),(0,E.jsxs)("div",{className:ne("common-input-group",s),children:[(0,E.jsx)("input",{id:r,className:ne("common-input",v&&"has-icon",o),title:h,role:u||"textbox",tabIndex:g?-1:0,"aria-label":f,"aria-hidden":c,type:b||"text",placeholder:m,value:void 0!==R?R:d||"",readOnly:!!w,onClick:function(e){k&&e.target.select(),j&&!M&&B(!0)},onChange:function(e){var t=e.target.value;w||R===t||I(t),_&&_(t)},onKeyDown:function(t){var n="number"==typeof t.which?t.which:t.keyCode;if(13===n||e.treatSpaceAsEnter&&32===n)S&&(t.preventDefault(),S(R));else if(j&&M&&"ArrowDown"===t.key){var r;null===(r=document.getElementById(D(Object.values(j)[0])))||void 0===r||r.focus(),t.preventDefault(),t.stopPropagation()}else if(j&&M&&"ArrowUp"===t.key){var i,a=Object.values(j);null===(i=document.getElementById(D(a[a.length-1])))||void 0===i||i.focus(),t.preventDefault(),t.stopPropagation()}},onBlur:function(){A&&A(R),N||I(void 0)},autoComplete:x?"":"off",autoCorrect:x?"":"off",autoCapitalize:x?"":"off",spellCheck:x,disabled:g,ref:T}),v&&(O?(0,E.jsx)(re,{leftIcon:v,title:y,disabled:g,onClick:function(){O&&O(R)}}):(0,E.jsx)("i",{className:v,"aria-hidden":!0})),j&&(0,E.jsx)(re,{leftIcon:M?"fas fa-chevron-up":"fas fa-chevron-down",title:y,disabled:g,ariaHasPopup:"listbox",ariaExpanded:M,ariaLabel:f,onClick:function(){j&&B(!M)}})]}),M&&(0,E.jsx)(ie,{role:"listbox",className:"common-menu-dropdown-pane common-dropdown-shadow",childTabStopId:null!==(t=D(R))&&void 0!==t?t:D(Object.values(j)[0]),"aria-labelledby":r,useUpAndDownArrowKeys:!0,children:(0,E.jsx)("ul",{role:"presentation",children:Object.keys(j).map((function(e){return(0,E.jsx)("li",{role:"presentation",children:(0,E.jsx)(re,{title:e,label:e,id:D(j[e]),className:ne("common-dropdown-item"),onClick:function(){return function(e){var t;B(!1);var n=j[e];I(n),C&&C(n),null===(t=document.getElementById(r))||void 0===t||t.focus()}(e)},ariaSelected:D(j[e])===D(null!=R?R:d),role:"option"})},e)}))})})]})},oe=function(e){var t=e.id,n=e.className,r=e.ariaLabel,i=e.href,a=e.target,o=e.children,s=e.tabIndex,u=ne("common-link",n);return(0,E.jsx)("a",{id:t,className:u,"aria-label":r,href:i,target:a,rel:"_blank"===a?"noopener noreferrer":"",tabIndex:null!=s?s:0,children:o})};function se(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ue(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function le(e,t,n){return t&&ue(e.prototype,t),n&&ue(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ce(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fe(e,t){return(fe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function de(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fe(e,t)}function pe(e){return(pe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function he(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function me(e,t){if(t&&("object"===K(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ce(e)}function ve(e){var t=he();return function(){var n,r=pe(e);if(t){var i=pe(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return me(this,n)}}function ye(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=pe(e)););return e}function ge(){return(ge="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=ye(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}}).apply(this,arguments)}function be(e,t,n){return(be=he()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&fe(i,n.prototype),i}).apply(null,arguments)}function we(e){var t="function"==typeof Map?new Map:void 0;return(we=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return be(e,arguments,pe(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),fe(r,e)})(e)}var xe=Object.create(null);xe.open="0",xe.close="1",xe.ping="2",xe.pong="3",xe.message="4",xe.upgrade="5",xe.noop="6";var ke=Object.create(null);Object.keys(xe).forEach((function(e){ke[xe[e]]=e}));for(var _e={type:"error",data:"parser error"},Ee="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),Se="function"==typeof ArrayBuffer,Oe=function(e,t){var n=new FileReader;return n.onload=function(){var e=n.result.split(",")[1];t("b"+e)},n.readAsDataURL(e)},Ae=function(e,t,n){var r,i=e.type,a=e.data;return Ee&&a instanceof Blob?t?n(a):Oe(a,n):Se&&(a instanceof ArrayBuffer||(r=a,"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(r):r&&r.buffer instanceof ArrayBuffer))?t?n(a):Oe(new Blob([a]),n):n(xe[i]+(a||""))},Ce="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Te="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Ne=0;Ne<Ce.length;Ne++)Te[Ce.charCodeAt(Ne)]=Ne;var je="function"==typeof ArrayBuffer,Pe=function(e,t){if(je){var n=function(e){var t,n,r,i,a,o=.75*e.length,s=e.length,u=0;"="===e[e.length-1]&&(o--,"="===e[e.length-2]&&o--);var l=new ArrayBuffer(o),c=new Uint8Array(l);for(t=0;t<s;t+=4)n=Te[e.charCodeAt(t)],r=Te[e.charCodeAt(t+1)],i=Te[e.charCodeAt(t+2)],a=Te[e.charCodeAt(t+3)],c[u++]=n<<2|r>>4,c[u++]=(15&r)<<4|i>>2,c[u++]=(3&i)<<6|63&a;return l}(e);return Re(n,t)}return{base64:!0,data:e}},Re=function(e,t){return"blob"===t&&e instanceof ArrayBuffer?new Blob([e]):e},Ie=function(e,t){if("string"!=typeof e)return{type:"message",data:Re(e,t)};var n=e.charAt(0);return"b"===n?{type:"message",data:Pe(e.substring(1),t)}:ke[n]?e.length>1?{type:ke[n],data:e.substring(1)}:{type:ke[n]}:_e},Le=String.fromCharCode(30);function Me(e){if(e)return function(e){for(var t in Me.prototype)e[t]=Me.prototype[t];return e}(e)}Me.prototype.on=Me.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},Me.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},Me.prototype.off=Me.prototype.removeListener=Me.prototype.removeAllListeners=Me.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var i=0;i<r.length;i++)if((n=r[i])===t||n.fn===t){r.splice(i,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},Me.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var i=(n=n.slice(0)).length;r<i;++r)n[r].apply(this,t)}return this},Me.prototype.emitReserved=Me.prototype.emit,Me.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},Me.prototype.hasListeners=function(e){return!!this.listeners(e).length};var Be="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")();function De(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce((function(t,n){return e.hasOwnProperty(n)&&(t[n]=e[n]),t}),{})}var Ue=setTimeout,Fe=clearTimeout;function ze(e,t){t.useNativeTimers?(e.setTimeoutFn=Ue.bind(Be),e.clearTimeoutFn=Fe.bind(Be)):(e.setTimeoutFn=setTimeout.bind(Be),e.clearTimeoutFn=clearTimeout.bind(Be))}var Ve,He=function(e){de(n,e);var t=ve(n);function n(e,r,i){var a;return se(this,n),(a=t.call(this,e)).description=r,a.context=i,a.type="TransportError",a}return le(n)}(we(Error)),We=function(e){de(n,e);var t=ve(n);function n(e){var r;return se(this,n),(r=t.call(this)).writable=!1,ze(ce(r),e),r.opts=e,r.query=e.query,r.readyState="",r.socket=e.socket,r}return le(n,[{key:"onError",value:function(e,t,r){return ge(pe(n.prototype),"emitReserved",this).call(this,"error",new He(e,t,r)),this}},{key:"open",value:function(){return"closed"!==this.readyState&&""!==this.readyState||(this.readyState="opening",this.doOpen()),this}},{key:"close",value:function(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}},{key:"send",value:function(e){"open"===this.readyState&&this.write(e)}},{key:"onOpen",value:function(){this.readyState="open",this.writable=!0,ge(pe(n.prototype),"emitReserved",this).call(this,"open")}},{key:"onData",value:function(e){var t=Ie(e,this.socket.binaryType);this.onPacket(t)}},{key:"onPacket",value:function(e){ge(pe(n.prototype),"emitReserved",this).call(this,"packet",e)}},{key:"onClose",value:function(e){this.readyState="closed",ge(pe(n.prototype),"emitReserved",this).call(this,"close",e)}}]),n}(Me),qe="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),Ge={},Ze=0,Ye=0;function $e(e){var t="";do{t=qe[e%64]+t,e=Math.floor(e/64)}while(e>0);return t}function Ke(){var e=$e(+new Date);return e!==Ve?(Ze=0,Ve=e):e+"."+$e(Ze++)}for(;Ye<64;Ye++)Ge[qe[Ye]]=Ye;function Xe(e){var t="";for(var n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function Qe(e){for(var t={},n=e.split("&"),r=0,i=n.length;r<i;r++){var a=n[r].split("=");t[decodeURIComponent(a[0])]=decodeURIComponent(a[1])}return t}var Je=!1;try{Je="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}var et=Je;function tt(e){var t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||et))return new XMLHttpRequest}catch(e){}if(!t)try{return new(Be[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(e){}}function nt(){}var rt=null!=new tt({xdomain:!1}).responseType,it=function(e){de(n,e);var t=ve(n);function n(e){var r;if(se(this,n),(r=t.call(this,e)).polling=!1,"undefined"!=typeof location){var i="https:"===location.protocol,a=location.port;a||(a=i?"443":"80"),r.xd="undefined"!=typeof location&&e.hostname!==location.hostname||a!==e.port,r.xs=e.secure!==i}var o=e&&e.forceBase64;return r.supportsBinary=rt&&!o,r}return le(n,[{key:"name",get:function(){return"polling"}},{key:"doOpen",value:function(){this.poll()}},{key:"pause",value:function(e){var t=this;this.readyState="pausing";var n=function(){t.readyState="paused",e()};if(this.polling||!this.writable){var r=0;this.polling&&(r++,this.once("pollComplete",(function(){--r||n()}))),this.writable||(r++,this.once("drain",(function(){--r||n()})))}else n()}},{key:"poll",value:function(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}},{key:"onData",value:function(e){var t=this;(function(e,t){for(var n=e.split(Le),r=[],i=0;i<n.length;i++){var a=Ie(n[i],t);if(r.push(a),"error"===a.type)break}return r})(e,this.socket.binaryType).forEach((function(e){if("opening"===t.readyState&&"open"===e.type&&t.onOpen(),"close"===e.type)return t.onClose({description:"transport closed by the server"}),!1;t.onPacket(e)})),"closed"!==this.readyState&&(this.polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this.poll())}},{key:"doClose",value:function(){var e=this,t=function(){e.write([{type:"close"}])};"open"===this.readyState?t():this.once("open",t)}},{key:"write",value:function(e){var t=this;this.writable=!1,function(e,t){var n=e.length,r=new Array(n),i=0;e.forEach((function(e,a){Ae(e,!1,(function(e){r[a]=e,++i===n&&t(r.join(Le))}))}))}(e,(function(e){t.doWrite(e,(function(){t.writable=!0,t.emitReserved("drain")}))}))}},{key:"uri",value:function(){var e=this.query||{},t=this.opts.secure?"https":"http",n="";!1!==this.opts.timestampRequests&&(e[this.opts.timestampParam]=Ke()),this.supportsBinary||e.sid||(e.b64=1),this.opts.port&&("https"===t&&443!==Number(this.opts.port)||"http"===t&&80!==Number(this.opts.port))&&(n=":"+this.opts.port);var r=Xe(e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+n+this.opts.path+(r.length?"?"+r:"")}},{key:"request",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign(e,{xd:this.xd,xs:this.xs},this.opts),new at(this.uri(),e)}},{key:"doWrite",value:function(e,t){var n=this,r=this.request({method:"POST",data:e});r.on("success",t),r.on("error",(function(e,t){n.onError("xhr post error",e,t)}))}},{key:"doPoll",value:function(){var e=this,t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(function(t,n){e.onError("xhr poll error",t,n)})),this.pollXhr=t}}]),n}(We),at=function(e){de(n,e);var t=ve(n);function n(e,r){var i;return se(this,n),ze(ce(i=t.call(this)),r),i.opts=r,i.method=r.method||"GET",i.uri=e,i.async=!1!==r.async,i.data=void 0!==r.data?r.data:null,i.create(),i}return le(n,[{key:"create",value:function(){var e=this,t=De(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd,t.xscheme=!!this.opts.xs;var r=this.xhr=new tt(t);try{r.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders)for(var i in r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0),this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(i)&&r.setRequestHeader(i,this.opts.extraHeaders[i])}catch(e){}if("POST"===this.method)try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{r.setRequestHeader("Accept","*/*")}catch(e){}"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=function(){4===r.readyState&&(200===r.status||1223===r.status?e.onLoad():e.setTimeoutFn((function(){e.onError("number"==typeof r.status?r.status:0)}),0))},r.send(this.data)}catch(t){return void this.setTimeoutFn((function(){e.onError(t)}),0)}"undefined"!=typeof document&&(this.index=n.requestsCount++,n.requests[this.index]=this)}},{key:"onError",value:function(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}},{key:"cleanup",value:function(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=nt,e)try{this.xhr.abort()}catch(e){}"undefined"!=typeof document&&delete n.requests[this.index],this.xhr=null}}},{key:"onLoad",value:function(){var e=this.xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}},{key:"abort",value:function(){this.cleanup()}}]),n}(Me);function ot(){for(var e in at.requests)at.requests.hasOwnProperty(e)&&at.requests[e].abort()}at.requestsCount=0,at.requests={},"undefined"!=typeof document&&("function"==typeof attachEvent?attachEvent("onunload",ot):"function"==typeof addEventListener&&addEventListener("onpagehide"in Be?"pagehide":"unload",ot,!1));var st="function"==typeof Promise&&"function"==typeof Promise.resolve?function(e){return Promise.resolve().then(e)}:function(e,t){return t(e,0)},ut=Be.WebSocket||Be.MozWebSocket,lt=(n(918).Buffer,"undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase()),ct={websocket:function(e){de(n,e);var t=ve(n);function n(e){var r;return se(this,n),(r=t.call(this,e)).supportsBinary=!e.forceBase64,r}return le(n,[{key:"name",get:function(){return"websocket"}},{key:"doOpen",value:function(){if(this.check()){var e=this.uri(),t=this.opts.protocols,n=lt?{}:De(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=lt?new ut(e,t,n):t?new ut(e,t):new ut(e)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType||"arraybuffer",this.addEventListeners()}}},{key:"addEventListeners",value:function(){var e=this;this.ws.onopen=function(){e.opts.autoUnref&&e.ws._socket.unref(),e.onOpen()},this.ws.onclose=function(t){return e.onClose({description:"websocket connection closed",context:t})},this.ws.onmessage=function(t){return e.onData(t.data)},this.ws.onerror=function(t){return e.onError("websocket error",t)}}},{key:"write",value:function(e){var t=this;this.writable=!1;for(var n=function(n){var r=e[n],i=n===e.length-1;Ae(r,t.supportsBinary,(function(e){try{t.ws.send(e)}catch(e){}i&&st((function(){t.writable=!0,t.emitReserved("drain")}),t.setTimeoutFn)}))},r=0;r<e.length;r++)n(r)}},{key:"doClose",value:function(){void 0!==this.ws&&(this.ws.close(),this.ws=null)}},{key:"uri",value:function(){var e=this.query||{},t=this.opts.secure?"wss":"ws",n="";this.opts.port&&("wss"===t&&443!==Number(this.opts.port)||"ws"===t&&80!==Number(this.opts.port))&&(n=":"+this.opts.port),this.opts.timestampRequests&&(e[this.opts.timestampParam]=Ke()),this.supportsBinary||(e.b64=1);var r=Xe(e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+n+this.opts.path+(r.length?"?"+r:"")}},{key:"check",value:function(){return!!ut}}]),n}(We),polling:it},ft=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,dt=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function pt(e){var t=e,n=e.indexOf("["),r=e.indexOf("]");-1!=n&&-1!=r&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));for(var i=ft.exec(e||""),a={},o=14;o--;)a[dt[o]]=i[o]||"";return-1!=n&&-1!=r&&(a.source=t,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a.pathNames=function(e,t){var n=t.replace(/\/{2,9}/g,"/").split("/");return"/"!=t.substr(0,1)&&0!==t.length||n.splice(0,1),"/"==t.substr(t.length-1,1)&&n.splice(n.length-1,1),n}(0,a.path),a.queryKey=function(e,t){var n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,r){t&&(n[t]=r)})),n}(0,a.query),a}var ht=function(e){de(n,e);var t=ve(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return se(this,n),r=t.call(this),e&&"object"==typeof e&&(i=e,e=null),e?(e=pt(e),i.hostname=e.host,i.secure="https"===e.protocol||"wss"===e.protocol,i.port=e.port,e.query&&(i.query=e.query)):i.host&&(i.hostname=pt(i.host).host),ze(ce(r),i),r.secure=null!=i.secure?i.secure:"undefined"!=typeof location&&"https:"===location.protocol,i.hostname&&!i.port&&(i.port=r.secure?"443":"80"),r.hostname=i.hostname||("undefined"!=typeof location?location.hostname:"localhost"),r.port=i.port||("undefined"!=typeof location&&location.port?location.port:r.secure?"443":"80"),r.transports=i.transports||["polling","websocket"],r.readyState="",r.writeBuffer=[],r.prevBufferLen=0,r.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!0},i),r.opts.path=r.opts.path.replace(/\/$/,"")+"/","string"==typeof r.opts.query&&(r.opts.query=Qe(r.opts.query)),r.id=null,r.upgrades=null,r.pingInterval=null,r.pingTimeout=null,r.pingTimeoutTimer=null,"function"==typeof addEventListener&&(r.opts.closeOnBeforeunload&&addEventListener("beforeunload",(function(){r.transport&&(r.transport.removeAllListeners(),r.transport.close())}),!1),"localhost"!==r.hostname&&(r.offlineEventListener=function(){r.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",r.offlineEventListener,!1))),r.open(),r}return le(n,[{key:"createTransport",value:function(e){var t=Object.assign({},this.opts.query);t.EIO=4,t.transport=e,this.id&&(t.sid=this.id);var n=Object.assign({},this.opts.transportOptions[e],this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return new ct[e](n)}},{key:"open",value:function(){var e,t=this;if(this.opts.rememberUpgrade&&n.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn((function(){t.emitReserved("error","No transports available")}),0);e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(e){return this.transports.shift(),void this.open()}e.open(),this.setTransport(e)}},{key:"setTransport",value:function(e){var t=this;this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",(function(e){return t.onClose("transport close",e)}))}},{key:"probe",value:function(e){var t=this,r=this.createTransport(e),i=!1;n.priorWebsocketSuccess=!1;var a=function(){i||(r.send([{type:"ping",data:"probe"}]),r.once("packet",(function(e){if(!i)if("pong"===e.type&&"probe"===e.data){if(t.upgrading=!0,t.emitReserved("upgrading",r),!r)return;n.priorWebsocketSuccess="websocket"===r.name,t.transport.pause((function(){i||"closed"!==t.readyState&&(f(),t.setTransport(r),r.send([{type:"upgrade"}]),t.emitReserved("upgrade",r),r=null,t.upgrading=!1,t.flush())}))}else{var a=new Error("probe error");a.transport=r.name,t.emitReserved("upgradeError",a)}})))};function o(){i||(i=!0,f(),r.close(),r=null)}var s=function(e){var n=new Error("probe error: "+e);n.transport=r.name,o(),t.emitReserved("upgradeError",n)};function u(){s("transport closed")}function l(){s("socket closed")}function c(e){r&&e.name!==r.name&&o()}var f=function(){r.removeListener("open",a),r.removeListener("error",s),r.removeListener("close",u),t.off("close",l),t.off("upgrading",c)};r.once("open",a),r.once("error",s),r.once("close",u),this.once("close",l),this.once("upgrading",c),r.open()}},{key:"onOpen",value:function(){if(this.readyState="open",n.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade&&this.transport.pause)for(var e=0,t=this.upgrades.length;e<t;e++)this.probe(this.upgrades[e])}},{key:"onPacket",value:function(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.resetPingTimeout(),this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":var t=new Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data)}}},{key:"onHandshake",value:function(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.maxPayload=e.maxPayload,this.onOpen(),"closed"!==this.readyState&&this.resetPingTimeout()}},{key:"resetPingTimeout",value:function(){var e=this;this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn((function(){e.onClose("ping timeout")}),this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}},{key:"onDrain",value:function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}},{key:"flush",value:function(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){var e=this.getWritablePackets();this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}},{key:"getWritablePackets",value:function(){if(!(this.maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;for(var e,t=1,n=0;n<this.writeBuffer.length;n++){var r=this.writeBuffer[n].data;if(r&&(t+="string"==typeof(e=r)?function(e){for(var t=0,n=0,r=0,i=e.length;r<i;r++)(t=e.charCodeAt(r))<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}(e):Math.ceil(1.33*(e.byteLength||e.size))),n>0&&t>this.maxPayload)return this.writeBuffer.slice(0,n);t+=2}return this.writeBuffer}},{key:"write",value:function(e,t,n){return this.sendPacket("message",e,t,n),this}},{key:"send",value:function(e,t,n){return this.sendPacket("message",e,t,n),this}},{key:"sendPacket",value:function(e,t,n,r){if("function"==typeof t&&(r=t,t=void 0),"function"==typeof n&&(r=n,n=null),"closing"!==this.readyState&&"closed"!==this.readyState){(n=n||{}).compress=!1!==n.compress;var i={type:e,data:t,options:n};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),r&&this.once("flush",r),this.flush()}}},{key:"close",value:function(){var e=this,t=function(){e.onClose("forced close"),e.transport.close()},n=function n(){e.off("upgrade",n),e.off("upgradeError",n),t()},r=function(){e.once("upgrade",n),e.once("upgradeError",n)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",(function(){e.upgrading?r():t()})):this.upgrading?r():t()),this}},{key:"onError",value:function(e){n.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}},{key:"onClose",value:function(e,t){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"==typeof removeEventListener&&removeEventListener("offline",this.offlineEventListener,!1),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}},{key:"filterUpgrades",value:function(e){for(var t=[],n=0,r=e.length;n<r;n++)~this.transports.indexOf(e[n])&&t.push(e[n]);return t}}]),n}(Me);ht.protocol=4,ht.protocol;var mt,vt=n(1398),yt=function(e){de(n,pxt.auth.AuthClient);var t=ve(n);function n(){return se(this,n),t.apply(this,arguments)}return le(n,[{key:"onSignedIn",value:function(){var e=J(X().mark((function e(){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=hr,e.next=3,this.firstNameAsync();case 3:return e.t1=e.sent,e.next=6,(0,e.t0)(e.t1);case 6:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"onSignedOut",value:function(){var e=J(X().mark((function e(){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,vr(void 0);case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"onSignInFailed",value:function(){return Promise.resolve()}},{key:"onUserProfileChanged",value:function(){var e=J(X().mark((function e(){var t;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,pxt.auth.getUserStateAsync();case 2:return null!==(t=e.sent)&&void 0!==t&&t.profile&&pxt.auth.generateUserProfilePicDataUrl(t.profile),e.next=6,vr(t.profile);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"onUserPreferencesChanged",value:function(e){return Promise.resolve()}},{key:"onStateCleared",value:function(){return Promise.resolve()}},{key:"onProfileDeleted",value:function(){var e=J(X().mark((function e(t){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"onApiError",value:function(e){return Promise.resolve()}},{key:"firstNameAsync",value:function(){var e=J(X().mark((function e(){var t;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,pxt.auth.getUserStateAsync();case 2:return t=e.sent,e.abrupt("return",pxt.auth.firstName(null==t?void 0:t.profile));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()}]),n}();function gt(){return bt.apply(this,arguments)}function bt(){return(bt=J(X().mark((function e(){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(pxt.auth.hasIdentity()){e.next=2;break}return e.abrupt("return",void 0);case 2:if(!mt){e.next=4;break}return e.abrupt("return",mt);case 4:return mt=new Promise(function(){var e=J(X().mark((function e(t,n){var r;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=new yt,e.next=3,r.initAsync();case 3:return e.next=5,r.authCheckAsync();case 5:return e.next=7,r.initialUserPreferencesAsync();case 7:t(r);case 8:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()),e.abrupt("return",mt);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function wt(){return(wt=J(X().mark((function e(){var t,n;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,gt();case 2:if(t=e.sent,!(n=pxt.Util.parseQueryString(window.location.href)).authcallback){e.next=9;break}return e.next=7,pxt.auth.loginCallbackAsync(n);case 7:e.next=12;break;case 9:return e.next=11,null==t?void 0:t.authCheckAsync();case 11:return e.abrupt("return",e.sent);case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function xt(e){return kt.apply(this,arguments)}function kt(){return(kt=J(X().mark((function e(t){var n;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,gt();case 2:return n=e.sent,e.next=5,null==n?void 0:n.logoutAsync(t);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function _t(e,t,n){return Et.apply(this,arguments)}function Et(){return(Et=J(X().mark((function e(t,n,r){var i;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,gt();case 2:return i=e.sent,e.next=5,null==i?void 0:i.loginAsync(t,n,r);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function St(){return Ot.apply(this,arguments)}function Ot(){return(Ot=J(X().mark((function e(){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,pxt.auth.getAuthTokenAsync();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var At=n(1899),Ct=n.n(At);function Tt(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++)e[r]^=t[r];return e}function Nt(e){return new Promise((function(t,n){Ct().gzip(e,(function(e,r){e?n(e):t(r)}))}))}function jt(e){return new Promise((function(t,n){Ct().gunzip(e,(function(e,r){e?n(e):t(r)}))}))}function Pt(e){try{var t,n=new URL(e||"");n.searchParams.has("join")&&(e=null!==(t=n.searchParams.get("join"))&&void 0!==t?t:void 0)}catch(e){}if(e&&6===(e=e.toUpperCase().replace(/[^A-Z0-9]/g,"")).length)return e}function Rt(e){try{var t,n=new URL(e||"");n.searchParams.has("host")&&(e=null!==(t=n.searchParams.get("host"))&&void 0!==t?t:void 0)}catch(e){}if(e)return pxt.Cloud.parseScriptId(e)}function It(e){var t;if(e)return!pxt.BrowserUtils.isLocalHostDev()||e.startsWith("https:")||e.startsWith("data:")?e:(null===(t=pxt.appTarget)||void 0===t?void 0:t.appTheme.homeUrl)+e}var Lt,Mt,Bt=n(8466),Dt=function(e){var t;return Lt&&!e||(Lt=new pxt.MainPackage((null===(t=Lt)||void 0===t?void 0:t.host())||new Gt)),Lt};function Ut(e){return Ft.apply(this,arguments)}function Ft(){return(Ft=J(X().mark((function e(t){var n,r,i;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n="server"===t.mpRole?"pub:".concat(t.id):"empty:clientprj",(null===(r=Dt())||void 0===r?void 0:r._verspec)===n&&!n.startsWith("pub:S")){e.next=10;break}return(i=Dt(!0)).host().cacheStoreAsync(n,void 0),i._verspec=n,e.next=8,i.host().downloadPackageAsync(Dt(),[]);case 8:return e.next=10,Dt().installAllAsync();case 10:try{"client"===t.mpRole&&(Vt(Dt()).files[pxt.MAIN_TS]="multiplayer.init()")}catch(e){Bt.error(lf("Cannot load extension: {0}",e))}case 11:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function zt(e,t){var n={},r=Object.keys(t.fileSystem).sort().join(";");return n[r]||(n[r]=pxtc.getApiInfo(e,t.jres)),n[r]}function Vt(e){var t=e._editorPkg;if(t)return t;var n=void 0;e!=Dt()&&(n=Vt(Dt()));var r=new Ht(e,n);return e==Dt()&&(r.topPkg=r),e._editorPkg=r,r}pxt.react.getTilemapProject||(pxt.react.getTilemapProject=function(){return Mt||(Mt=new pxt.TilemapProject).loadPackage(Dt()),Mt});var Ht=function(){function e(t,n){se(this,e),this.ksPkg=t,this.topPkg=n,this.files={},this.id=void 0}return le(e,[{key:"getKsPkg",value:function(){return this.ksPkg}},{key:"getPkgId",value:function(){return this.ksPkg?this.ksPkg.id:this.id}},{key:"isTopLevel",value:function(){return this.ksPkg&&0==this.ksPkg.level}},{key:"setFiles",value:function(e){this.files=e}},{key:"getAllFiles",value:function(){return pxt.Util.mapMap(this.files,(function(e,t){return t}))}}]),e}();function Wt(){var e=pxt.appTarget.tsprj,t=pxt.U.clone(e.files);return t[pxt.CONFIG_NAME]=pxt.Package.stringifyConfig(e.config),t[pxt.MAIN_BLOCKS]="",t}var qt,Gt=function(){function e(){se(this,e),this.githubPackageCache={}}return le(e,[{key:"readFile",value:function(e,t){var n=Vt(e);return pxt.U.lookup(n.files,t)}},{key:"writeFile",value:function(e,t,n){Vt(e).files[t]=n}},{key:"getHexInfoAsync",value:function(e){return pxt.hexloader.getHexInfoAsync(this,e)}},{key:"cacheStoreAsync",value:function(){var e=J(X().mark((function e(t,n){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{this.githubPackageCache[t]=n?JSON.parse(n):void 0}catch(e){}case 1:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"cacheGetAsync",value:function(){var e=J(X().mark((function e(t){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",null);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"patchDependencies",value:function(e,t,n){if(!n)return!1;var r=pxt.github.parseRepoId(n);if(!r)return!1;for(var i=0,a=Object.keys(e.dependencies);i<a.length;i++){var o=a[i],s=e.dependencies[o],u=pxt.github.parseRepoId(s);if(u&&r.fullName==u.fullName)return pxt.semver.strcmp(r.tag,u.tag)<0&&(e.dependencies[o]=n),!0}return!1}},{key:"downloadPackageAsync",value:function(e,t){var n=this,r=e.verProtocol(),i=void 0;"github"!=r&&"pub"!=r||(i=this.githubPackageCache[e._verspec]);var a=Vt(e);return(i?Promise.resolve(i):e.commonDownloadAsync()).then((function(o){if(o)return"github"!=r&&"pub"!=r||i||(n.githubPackageCache[e._verspec]=pxt.Util.clone(o)),a.setFiles(o),Promise.resolve();if("empty"==r){if(0==Object.keys(a.files).length&&a.setFiles(Wt()),t&&t.length){var s=Vt(e).files,u=JSON.parse(s[pxt.CONFIG_NAME]);t.forEach((function(e){n.addPackageToConfig(u,e)})),s[pxt.CONFIG_NAME]=pxt.Package.stringifyConfig(u)}return Promise.resolve()}if("docs"==r){var l=Wt(),c=JSON.parse(l[pxt.CONFIG_NAME]);return e.verArgument().split(",").forEach((function(e){n.addPackageToConfig(c,e)})),c.yotta||(c.yotta={}),c.yotta.ignoreConflicts=!0,l[pxt.CONFIG_NAME]=pxt.Package.stringifyConfig(c),a.setFiles(l),Promise.resolve()}return"invalid"==r?(pxt.log("skipping invalid pkg ".concat(e.id)),Promise.resolve()):Promise.reject("Cannot download ".concat(e.version(),"; unknown protocol"))}))}},{key:"addPackageToConfig",value:function(e,t){var n=/^([a-zA-Z0-9_-]+)(=(.+))?$/.exec(t);if(n){if(n[3]&&this.patchDependencies(e,n[1],n[3]))return!1;e.dependencies[n[1]]=n[3]||"*"}else Bt.warn("unknown package syntax ".concat(t));return!0}}]),e}();function Zt(){var e=Dt().getTargetOptions();return Dt().getCompileOptionsAsync(e)}function Yt(e){var t={};if("server"!=e.mpRole)return t;var n=e.id;try{var r=window.localStorage.getItem(n);r&&(t=JSON.parse(r))}catch(e){}return t}function $t(e,t,n){if("server"==e.mpRole){var r=e.id,i=Yt(e);null!=n?i[t]=n:delete i[t];try{window.localStorage.setItem(r,JSON.stringify(i))}catch(e){}}}function Kt(e,t){var n=Date.now();return pxt.debug("worker op: "+e),pxt.worker.getWorker(pxt.webConfig.workerjs).opAsync(e,t).then((function(t){return pxt.appTarget.compile.switches.time&&(pxt.log("Worker perf: ".concat(e," ").concat(Date.now()-n,"ms")),t.times&&pxt.debug(t.times)),pxt.debug("worker op done: "+e),t}))}function Xt(e){return Qt.apply(this,arguments)}function Qt(){return(Qt=J(X().mark((function e(t){var n,r;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Zt();case 2:return n=e.sent,t&&t(n),e.next=6,Kt("compile",{options:n});case 6:return(r=e.sent).diagnostics&&r.diagnostics.length>0&&r.diagnostics.forEach((function(e){Bt.error(e.messageText)})),e.abrupt("return",r);case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Jt(e){if(qt||(qt=new pxsim.SimulatorDriver(e)),e&&(qt.container=e),qt.container)return qt}function en(e,t,n){var r,i=Jt(e),a=n||{},o=a.fnArgs,s=a.parts,u=a.usedBuiltinParts,l=null===(r=pxt.appTarget.simulator)||void 0===r?void 0:r.boardDefinition,c={debug:!0,mute:t.mute,boardDefinition:l,parts:s,builtinParts:u,fnArgs:o,cdnUrl:pxt.webConfig.commitCdnUrl,localizedStrings:pxt.Util.getLocalizedStrings(),storedState:Yt(t),single:!0,autofocus:!0,queryParameters:t.simQueryParams,mpRole:t.mpRole};return i.setRunOptions(c),c}function tn(){return(tn=J(X().mark((function e(t,n){var r;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:en(t,n),null===(r=Jt())||void 0===r||r.preload(1,!0);case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function nn(e,t){return rn.apply(this,arguments)}function rn(){return(rn=J(X().mark((function e(t,n){var r,i,a,o,s,u;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=n.builtJsInfo,e.t0){e.next=5;break}return e.next=4,an(n);case 4:e.t0=e.sent;case 5:if(a=e.t0,o=a.js){e.next=10;break}return Bt.error("Program failed to compile"),e.abrupt("return",void 0);case 10:return s=en(t,n,a),(u=Jt(t)).options.messageSimulators=null===(r=pxt.appTarget)||void 0===r||null===(i=r.simulator)||void 0===i?void 0:i.messageSimulators,u.options.onSimulatorCommand=function(e){"restart"===e.command&&(s.storedState=Yt(n),u.run(o,s)),"setstate"==e.command&&e.stateKey&&$t(n,e.stateKey,e.stateValue)},a.breakpoints&&u.setBreakpoints(a.breakpoints),u.run(o,s),e.abrupt("return",a);case 17:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function an(e){return on.apply(this,arguments)}function on(){return(on=J(X().mark((function e(t){var n,r,i,a,o,s;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ut(t);case 2:return i=!1,a=pxt.appTarget.versions.target,e.next=6,Xt((function(e){var n;if(e.computeUsedParts=!0,e.breakpoints=!0,"client"==t.mpRole&&(e.fileSystem[pxt.MAIN_TS]="multiplayer.init()"),e.target.preferredEditor===pxt.PYTHON_PROJECT_NAME){e.target.preferredEditor=pxt.JAVASCRIPT_PROJECT_NAME,e.ast=!0;var r=zt(pxtc.compile(e).ast,e);e.apisInfo=r,e.target.preferredEditor=pxt.PYTHON_PROJECT_NAME}var o=null===(n=Dt().config.targetVersions)||void 0===n?void 0:n.target;if(o&&a&&pxt.semver.cmp(pxt.semver.parse(o),pxt.semver.parse(a))<0)for(var s=0,u=Object.keys(e.fileSystem);s<u.length;s++){var l=u[s];!pxt.Util.startsWith(l,"pxt_modules")&&pxt.Util.endsWith(l,".ts")&&(i=!0,e.fileSystem[l]=pxt.patching.patchJavaScript(o,e.fileSystem[l]))}}));case 6:if(o=e.sent,!((null===(n=o.diagnostics)||void 0===n?void 0:n.length)>0&&i)){e.next=12;break}return pxt.log("Compile with upgrade rules failed, trying again with original code"),e.next=11,Xt((function(e){"client"===t.mpRole&&(e.fileSystem[pxt.MAIN_TS]="multiplayer.init()")}));case 11:o=e.sent;case 12:return(null===(r=o.diagnostics)||void 0===r?void 0:r.length)>0&&(Bt.error("Diagnostics",o.diagnostics),_(P("init")),In("compile-failed")),(s=pxtc.buildSimJsInfo(o)).parts=o.usedParts,e.abrupt("return",s);case 16:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var sn,un,ln=n(918).Buffer,cn=n(8466),fn=pxt.BrowserUtils.isLocalHostDev()?"https://multiplayer.staging.pxt.io":"arcade.makecode.com"===window.location.hostname?"https://mp.makecode.com":"https://multiplayer.staging.pxt.io",dn=function(){function e(){var t=this;se(this,e),this.sock=void 0,this.screen=void 0,this.clientRole=void 0,this.gameOverReason=void 0,this.receivedJoinMessageInTimeHandler=void 0,this.paused=!1,this.recvMessageAsync=function(){var e=J(X().mark((function e(n){var r,i,a;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n instanceof ArrayBuffer)){e.next=20;break}r=vt.$.fromBuffer(ln.from(n)),i=r.readUInt16LE(),e.t0=i,e.next=e.t0===un.Binary.MessageType.CompressedScreen?6:e.t0===un.Binary.MessageType.Input?9:e.t0===un.Binary.MessageType.Audio?12:e.t0===un.Binary.MessageType.Icon?15:18;break;case 6:return e.next=8,t.recvCompressedScreenMessageAsync(r);case 8:case 11:case 14:case 17:case 27:case 30:case 33:case 36:case 39:case 42:case 45:case 48:case 51:return e.abrupt("return",e.sent);case 9:return e.next=11,t.recvInputMessageAsync(r);case 12:return e.next=14,t.recvAudioMessageAsync(r);case 15:return e.next=17,t.recvIconMessageAsync(r);case 18:case 52:e.next=55;break;case 20:if("string"!=typeof n){e.next=54;break}a=JSON.parse(n),e.t1=a.type,e.next="joined"===e.t1?25:"start-game"===e.t1?28:"presence"===e.t1?31:"reaction"===e.t1?34:"player-joined"===e.t1?37:"player-left"===e.t1?40:"game-over"===e.t1?43:"pause-game"===e.t1?46:"resume-game"===e.t1?49:52;break;case 25:return e.next=27,t.recvJoinedMessageAsync(a);case 28:return e.next=30,t.recvStartGameMessageAsync(a);case 31:return e.next=33,t.recvPresenceMessageAsync(a);case 34:return e.next=36,t.recvReactionMessageAsync(a);case 37:return e.next=39,t.recvPlayerJoinedMessageAsync(a);case 40:return e.next=42,t.recvPlayerLeftMessageAsync(a);case 43:return e.next=45,t.recvGameOverMessageAsync(a);case 46:return e.next=48,t.recvPauseGameMessageAsync(a);case 49:return e.next=51,t.recvResumeGameMessageAsync(a);case 54:throw new Error("Unknown payload: ".concat(n));case 55:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.recvMessageWithJoinTimeout=function(){var e=J(X().mark((function e(n,r){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{"string"==typeof n&&"joined"===JSON.parse(n).type&&(t.sock&&(t.sock.removeListener("message",t.receivedJoinMessageInTimeHandler),t.receivedJoinMessageInTimeHandler=void 0),r())}catch(e){cn.error("Error processing message",e),pn(),r()}case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()}return le(e,[{key:"destroy",value:function(){try{var e;null===(e=this.sock)||void 0===e||e.close(),this.sock=void 0}catch(e){}}},{key:"sendMessage",value:function(e){if(e instanceof ln){var t;null===(t=this.sock)||void 0===t||t.send(e,{},(function(e){e&&pxt.log("Error sending message. "+e.toString())}))}else{var n,r=JSON.stringify(e);null===(n=this.sock)||void 0===n||n.send(r,{},(function(e){e&&pxt.log("Error sending message. "+e.toString())}))}}},{key:"connectAsync",value:function(){var e=J(X().mark((function e(t){var n=this;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,r){var i=setTimeout((function(){r("Timed out connecting to game server"),pn()}),2e4);n.sock=new ht(fn,{transports:["websocket"],path:"/mp"}),n.sock.binaryType="arraybuffer",n.sock.on("open",(function(){var r,a,o;pxt.debug("socket opened"),n.receivedJoinMessageInTimeHandler=function(){var t=J(X().mark((function t(r){return X().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.recvMessageWithJoinTimeout(r,(function(){clearTimeout(i),e()}));case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),null===(r=n.sock)||void 0===r||r.on("message",n.receivedJoinMessageInTimeHandler),null===(a=n.sock)||void 0===a||a.on("message",function(){var e=J(X().mark((function e(t){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,n.recvMessageAsync(t);case 3:e.next=9;break;case 5:e.prev=5,e.t0=e.catch(0),cn.error("Error processing message",e.t0),pn();case 9:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(t){return e.apply(this,arguments)}}()),null===(o=n.sock)||void 0===o||o.on("close",(function(){pxt.debug("socket disconnected"),er(n.gameOverReason),clearTimeout(i),e()})),n.sendMessage({type:"connect",ticket:t,version:un.VERSION})}))})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"hostGameAsync",value:function(){var e=J(X().mark((function e(t){var n,r,i;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t=encodeURIComponent(t),e.next=4,St();case 4:return n=e.sent,e.next=7,fetch("".concat(fn,"/api/game/host/").concat(t),{credentials:"include",headers:{Authorization:"mkcd "+n}});case 7:if(200===(r=e.sent).status){e.next=10;break}return e.abrupt("return",{success:!1,statusCode:r.status});case 10:return e.next=12,r.json();case 12:if(null!==(i=e.sent)&&void 0!==i&&i.joinTicket){e.next=15;break}throw new Error("Game server did not return a join ticket");case 15:return e.next=17,this.connectAsync(i.joinTicket);case 17:return e.abrupt("return",d(d({},i),{},{success:!0,statusCode:r.status}));case 20:return e.prev=20,e.t0=e.catch(0),e.abrupt("return",{success:!1,statusCode:500});case 23:case"end":return e.stop()}}),e,this,[[0,20]])})));return function(t){return e.apply(this,arguments)}}()},{key:"joinGameAsync",value:function(){var e=J(X().mark((function e(t){var n,r,i;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t=encodeURIComponent(t),e.next=4,St();case 4:return n=e.sent,e.next=7,fetch("".concat(fn,"/api/game/join/").concat(t),{credentials:"include",headers:{Authorization:"mkcd "+n}});case 7:if(200===(r=e.sent).status){e.next=10;break}return e.abrupt("return",{success:!1,statusCode:r.status});case 10:return e.next=12,r.json();case 12:if(null!==(i=e.sent)&&void 0!==i&&i.joinTicket){e.next=15;break}throw new Error("Game server did not return a join ticket");case 15:return e.next=17,this.connectAsync(i.joinTicket);case 17:return e.abrupt("return",d(d({},i),{},{success:!this.gameOverReason,statusCode:this.gameOverReason?"full"===this.gameOverReason?507:418:r.status}));case 20:return e.prev=20,e.t0=e.catch(0),e.abrupt("return",{success:!1,statusCode:500});case 23:case"end":return e.stop()}}),e,this,[[0,20]])})));return function(t){return e.apply(this,arguments)}}()},{key:"startGameAsync",value:function(){var e=J(X().mark((function e(){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.sendMessage({type:"start-game"});case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"leaveGameAsync",value:function(){var e=J(X().mark((function e(t){var n;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.gameOverReason=t,null===(n=this.sock)||void 0===n||n.close();case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"sendReactionAsync",value:function(){var e=J(X().mark((function e(t){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.sendMessage({type:"reaction",index:t});case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"recvJoinedMessageAsync",value:function(){var e=J(X().mark((function e(t){var n,r,i,a;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return pxt.debug("Server said we're joined as \"".concat(t.role,'" in slot "').concat(t.slot,'"')),n=t.gameMode,r=t.gamePaused,i=t.shareCode,a=t.role,this.clientRole=a,this.paused=r,e.next=6,gr(i);case 6:if(!e.sent){e.next=9;break}return e.next=9,Yn(n,r,t.slot);case 9:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"recvStartGameMessageAsync",value:function(){var e=J(X().mark((function e(t){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return pxt.debug("Server said start game"),e.next=3,Yn("playing",this.paused);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"recvPresenceMessageAsync",value:function(){var e=J(X().mark((function e(t){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return pxt.debug("Server sent presence"),e.next=3,tr(t.presence);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"recvReactionMessageAsync",value:function(){var e=J(X().mark((function e(t){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return pxt.debug("Server sent reaction"),e.next=3,ur(t.clientId,t.index);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"recvPlayerJoinedMessageAsync",value:function(){var e=J(X().mark((function e(t){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(pxt.debug("Server sent player joined"),"host"!==this.clientRole){e.next=4;break}return e.next=4,this.sendCurrentScreenAsync();case 4:return e.next=6,cr(t.clientId);case 6:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"recvPlayerLeftMessageAsync",value:function(){var e=J(X().mark((function e(t){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return pxt.debug("Server sent player joined"),e.next=3,dr(t.clientId);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"recvGameOverMessageAsync",value:function(){var e=J(X().mark((function e(t){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return pxt.debug("Server sent game over"),e.next=3,wr(t.reason);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"recvPauseGameMessageAsync",value:function(){var e=J(X().mark((function e(t){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return pxt.debug("Server sent pause game"),this.paused=!0,e.next=4,kr();case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"recvResumeGameMessageAsync",value:function(){var e=J(X().mark((function e(t){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return pxt.debug("Server sent resume game"),this.paused=!1,e.next=4,Er();case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"recvCompressedScreenMessageAsync",value:function(){var e=J(X().mark((function e(t){var n,r,i,a,o,s,u;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=un.Binary.unpackCompressedScreenMessage(t),r=n.zippedData,i=n.isDelta,e.next=3,jt(r);case 3:a=e.sent,i?this.screen&&Tt(this.screen,a):this.screen=a,o=this.getCurrentScreen(),s=o.image,u=o.palette,s&&this.postToSimFrame({type:"multiplayer",content:"Image",image:{data:s},palette:u});case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"recvInputMessageAsync",value:function(){var e=J(X().mark((function e(t){var n,i,a,o,s;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=un.Binary.unpackInputMessage(t),i=n.button,a=n.state,o=n.slot,s=p(a),!(i<=r.None||i>=r.Menu||o<2)&&s){e.next=4;break}return e.abrupt("return");case 4:this.postToSimFrame({type:"multiplayer",content:"Button",clientNumber:o-1,button:i,state:s});case 5:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"recvAudioMessageAsync",value:function(){var e=J(X().mark((function e(t){var n,r,i;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=un.Binary.unpackAudioMessage(t),r=n.instruction,i=n.soundbuf,this.postToSimFrame({type:"multiplayer",content:"Audio",instruction:m(r),soundbuf:i});case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"recvIconMessageAsync",value:function(){var e=J(X().mark((function e(n){var r,i,a,o,s,u,l,c;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=un.Binary.unpackIconMessage(n),i=r.iconType,a=r.iconSlot,o=r.iconBuffer,!(i===t.Player&&a>=1&&a<=4)){e.next=4;break}e.next=8;break;case 4:if(!(i===t.Reaction&&a>=1&&a<=6)){e.next=7;break}e.next=8;break;case 7:return e.abrupt("return");case 8:if(!o){e.next=18;break}return e.next=11,jt(o);case 11:s=e.sent,u=s.slice(0,48),l=s.slice(48),c=pxt.convertUint8BufferToPngUri(u,l),Nr(i,a,c),e.next=19;break;case 18:Nr(i,a);case 19:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"postToSimFrame",value:function(e){var t;null===(t=Jt())||void 0===t||t.postMessage(e)}},{key:"sendInputAsync",value:function(){var e=J(X().mark((function e(t,n){var r;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.paused){e.next=2;break}return e.abrupt("return");case 2:r=un.Binary.packInputMessage(t,h(n)),this.sendMessage(r);case 4:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"sendAudioAsync",value:function(){var e=J(X().mark((function e(t,n){var r;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.paused){e.next=2;break}return e.abrupt("return");case 2:r=un.Binary.packAudioMessage(v(t),ln.from(n)),this.sendMessage(r);case 4:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"sendIconAsync",value:function(){var e=J(X().mark((function e(t,n,r,i){var a,o,s;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!r||!i){e.next=5;break}return o=ln.concat([r,i]),e.next=4,Nt(o);case 4:a=e.sent;case 5:s=un.Binary.packIconMessage(t,n,a),this.sendMessage(s);case 7:case"end":return e.stop()}}),e,this)})));return function(t,n,r,i){return e.apply(this,arguments)}}()},{key:"sendScreenUpdateAsync",value:function(){var e=J(X().mark((function e(t,n){var r,i,a,o,s,u,l,c,f;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(r=[]).push(ln.from(t)),n&&r.push(ln.from(n)),i=ln.concat(r),(a=!this.screen)?this.screen=i:(Tt(i,this.screen),Tt(this.screen,i)),o=!0,s=0;case 10:if(!(s<i.length)){e.next=17;break}if(0===i[s]){e.next=14;break}return o=!1,e.abrupt("break",17);case 14:s++,e.next=10;break;case 17:if(o&&!a){e.next=23;break}return e.next=20,Nt(i);case 20:u=e.sent,l=un.Binary.packCompressedScreenMessage(u,!a),this.sendMessage(l);case 23:e.next=30;break;case 25:return e.next=27,Nt(this.screen);case 27:c=e.sent,f=un.Binary.packCompressedScreenMessage(c,!1),this.sendMessage(f);case 30:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"sendCurrentScreenAsync",value:function(){var e=J(X().mark((function e(){var t,n;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.screen){e.next=6;break}return e.next=3,Nt(this.screen);case 3:t=e.sent,n=un.Binary.packCompressedScreenMessage(t,!1),this.sendMessage(n);case 6:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"kickPlayer",value:function(e){var t={type:"kick-player",clientId:e};this.sendMessage(t)}},{key:"gameOver",value:function(e){this.gameOverReason=e,pn()}},{key:"getCurrentScreen",value:function(){return this.screen?{image:this.screen.slice(0,9608),palette:this.screen.length>=9656?this.screen.slice(9608,9656).map((function(e){return e})):void 0}:{image:void 0,palette:void 0}}},{key:"pauseGameAsync",value:function(){var e=J(X().mark((function e(){var t;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.paused=!0,t={type:"pause-game"},this.sendMessage(t);case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"resumeGameAsync",value:function(){var e=J(X().mark((function e(){var t;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.paused=!1,t={type:"resume-game"},this.sendMessage(t);case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),e}();function pn(){var e;null===(e=sn)||void 0===e||e.destroy(),sn=void 0}function hn(e){return mn.apply(this,arguments)}function mn(){return(mn=J(X().mark((function e(t){var n;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return pn(),sn=new dn,e.next=4,sn.hostGameAsync(t);case 4:return n=e.sent,e.abrupt("return",n);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function vn(e){return yn.apply(this,arguments)}function yn(){return(yn=J(X().mark((function e(t){var n;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return pn(),sn=new dn,e.next=4,sn.joinGameAsync(t);case 4:return n=e.sent,e.abrupt("return",n);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function gn(){return bn.apply(this,arguments)}function bn(){return(bn=J(X().mark((function e(){var t;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===(t=sn)||void 0===t?void 0:t.startGameAsync();case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function wn(e){return xn.apply(this,arguments)}function xn(){return(xn=J(X().mark((function e(t){var n;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===(n=sn)||void 0===n?void 0:n.leaveGameAsync(t);case 2:pn();case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function kn(e){return _n.apply(this,arguments)}function _n(){return(_n=J(X().mark((function e(t){var n;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===(n=sn)||void 0===n?void 0:n.sendReactionAsync(t);case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function En(e,t){return Sn.apply(this,arguments)}function Sn(){return(Sn=J(X().mark((function e(t,n){var r;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===(r=sn)||void 0===r?void 0:r.sendInputAsync(t,n);case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function On(e,t){return An.apply(this,arguments)}function An(){return(An=J(X().mark((function e(t,n){var r;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===(r=sn)||void 0===r?void 0:r.sendAudioAsync(t,n);case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Cn(e,t,n,r){return Tn.apply(this,arguments)}function Tn(){return(Tn=J(X().mark((function e(t,n,r,i){var a;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===(a=sn)||void 0===a?void 0:a.sendIconAsync(t,n,r,i);case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Nn(e,t){return jn.apply(this,arguments)}function jn(){return(jn=J(X().mark((function e(t,n){var r;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===(r=sn)||void 0===r?void 0:r.sendScreenUpdateAsync(t,n);case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Pn(){return Rn.apply(this,arguments)}function Rn(){return(Rn=J(X().mark((function e(){var t;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===(t=sn)||void 0===t?void 0:t.sendCurrentScreenAsync();case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function In(e){var t;null===(t=sn)||void 0===t||t.gameOver(e)}function Ln(){return Mn.apply(this,arguments)}function Mn(){return(Mn=J(X().mark((function e(){var t;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===(t=sn)||void 0===t?void 0:t.pauseGameAsync();case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Bn(){return Dn.apply(this,arguments)}function Dn(){return(Dn=J(X().mark((function e(){var t;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===(t=sn)||void 0===t?void 0:t.resumeGameAsync();case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Un(){pn()}function Fn(e){return zn.apply(this,arguments)}function zn(){return(zn=J(X().mark((function e(t){var n,r;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=Rt(t)){e.next=3;break}return e.abrupt("return",_(D({type:"error",text:lf("Invalid share code or link. Please try again."),timeoutMs:5e3})));case 3:return n=D({type:"info",text:lf("Connecting..."),showSpinner:!0}),e.prev=4,_(P("connecting")),_(n),e.next=9,hn(t);case 9:if(r=e.sent,pxt.debug(r),!r.success){e.next=18;break}_(D({type:"success",text:lf("Connected!"),timeoutMs:5e3})),_(j("host")),_(R(r)),_(P("connected")),e.next=19;break;case 18:throw new Error("host http response: ".concat(r.statusCode));case 19:e.next=26;break;case 21:e.prev=21,e.t0=e.catch(4),pxt.log(e.t0.toString()),_(D({type:"error",text:lf("Something went wrong. Please try again."),timeoutMs:5e3})),_(P("init"));case 26:return e.prev=26,_(U(n.toast.id)),e.finish(26);case 29:case"end":return e.stop()}}),e,null,[[4,21,26,29]])})))).apply(this,arguments)}function Vn(e){return Hn.apply(this,arguments)}function Hn(){return(Hn=J(X().mark((function e(t){var n,r;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=Pt(t)){e.next=3;break}return e.abrupt("return",_(D({type:"error",text:lf("Invalid join code. Please try again."),timeoutMs:5e3})));case 3:return n=D({type:"info",text:lf("Connecting..."),showSpinner:!0}),e.prev=4,_(P("connecting")),_(n),e.next=9,vn(t);case 9:if(r=e.sent,pxt.debug(r),!r.success){e.next=18;break}_(D({type:"success",text:lf("Connected!"),timeoutMs:5e3})),_(j("guest")),_(R(r)),_(P("connected")),e.next=28;break;case 18:if(404!==r.statusCode){e.next=23;break}er("not-found"),_(P("init")),e.next=28;break;case 23:if(507!==r.statusCode){e.next=27;break}_(P("init")),e.next=28;break;case 27:throw new Error("join http response: ".concat(r.statusCode));case 28:e.next=35;break;case 30:e.prev=30,e.t0=e.catch(4),pxt.log(e.t0.toString()),_(D({type:"error",text:lf("Something went wrong. Please try again."),timeoutMs:5e3})),_(P("init"));case 35:return e.prev=35,_(U(n.toast.id)),e.finish(35);case 38:case"end":return e.stop()}}),e,null,[[4,30,35,38]])})))).apply(this,arguments)}function Wn(){return qn.apply(this,arguments)}function qn(){return(qn=J(X().mark((function e(){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,gn();case 3:e.next=7;break;case 5:e.prev=5,e.t0=e.catch(0);case 7:return e.prev=7,e.finish(7);case 9:case"end":return e.stop()}}),e,null,[[0,5,7,9]])})))).apply(this,arguments)}function Gn(e){return Zn.apply(this,arguments)}function Zn(){return(Zn=J(X().mark((function e(t){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,pxt.tickEvent("mp.leavegame"),e.next=4,wn(t);case 4:_({type:"CLEAR_GAME_INFO"}),_({type:"SET_GAME_METADATA",gameMetadata:void 0}),e.next=10;break;case 8:e.prev=8,e.t0=e.catch(0);case 10:return e.prev=10,e.finish(10);case 12:case"end":return e.stop()}}),e,null,[[0,8,10,12]])})))).apply(this,arguments)}function Yn(e,t,n){return $n.apply(this,arguments)}function $n(){return($n=J(X().mark((function e(t,n,r){var i;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=k.clientRole;try{r&&_(M(r)),_(B(t)),"playing"===t&&(_({type:"CLEAR_MODAL"}),_(D({type:"info",text:lf("Game started!"),timeoutMs:5e3})),n&&"host"!==i&&kr())}catch(e){}case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Kn(e,t,n){return Xn.apply(this,arguments)}function Xn(){return(Xn=J(X().mark((function e(t,n,r){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,_t(t,n,r);case 3:e.next=7;break;case 5:e.prev=5,e.t0=e.catch(0);case 7:return e.prev=7,e.finish(7);case 9:case"end":return e.stop()}}),e,null,[[0,5,7,9]])})))).apply(this,arguments)}function Qn(){return Jn.apply(this,arguments)}function Jn(){return(Jn=J(X().mark((function e(){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,Un(),e.next=4,xt();case 4:e.next=8;break;case 6:e.prev=6,e.t0=e.catch(0);case 8:return e.prev=8,e.finish(8);case 10:case"end":return e.stop()}}),e,null,[[0,6,8,10]])})))).apply(this,arguments)}function er(e){try{switch(_(P("init")),e){case"kicked":return pxt.tickEvent("mp.gotkicked"),_(D({type:"info",text:lf("Host kicked you from the game"),icon:"🤔",timeoutMs:5e3}));case"ended":return pxt.tickEvent("mp.gameover"),_(D({type:"info",text:lf("Game ended"),timeoutMs:5e3}));case"left":return pxt.tickEvent("mp.leftgame"),_(D({type:"info",text:lf("You left the game"),timeoutMs:5e3}));case"full":return pxt.tickEvent("mp.gamefull"),_(D({type:"warning",text:lf("Game is full"),timeoutMs:5e3,icon:"😤"}));case"rejected":return pxt.tickEvent("mp.gamerejected"),_(D({type:"error",text:lf("Game rejected your join request"),timeoutMs:5e3}));case"not-found":return pxt.tickEvent("mp.gamenotfound"),_(D({type:"warning",text:lf("Game not found"),timeoutMs:5e3,icon:"😟"}));case"compile-failed":return pxt.tickEvent("mp.compilefailed"),_(D({type:"error",text:lf("There was a problem loading this game"),timeoutMs:5e3,icon:"😟"}));default:return pxt.tickEvent("mp.disconnected"),_(D({type:"error",text:lf("Game disconnected"),timeoutMs:5e3}))}}catch(e){}}function tr(e){return nr.apply(this,arguments)}function nr(){return(nr=J(X().mark((function e(t){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{_(F(t))}catch(e){}case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}!function(e){var t;e.VERSION=2,function(e){var t;!function(e){e[e.Input=1]="Input",e[e.CompressedScreen=3]="CompressedScreen",e[e.Audio=4]="Audio",e[e.Icon=5]="Icon"}(t||(t={})),e.MessageType=t,e.packInputMessage=function(e,n){var r=new vt.$;return r.writeUInt16LE(t.Input),r.writeUInt16LE(e),r.writeUInt8(n),r.toBuffer()},e.unpackInputMessage=function(e){return{button:e.readUInt16LE(),state:e.readUInt8(),slot:e.readUInt8()}},e.packCompressedScreenMessage=function(e,n){var r=new vt.$;return r.writeUInt16LE(t.CompressedScreen),r.writeUInt8(n?1:0),r.writeBuffer(e),r.toBuffer()},e.unpackCompressedScreenMessage=function(e){var t=1===e.readUInt8();return{zippedData:e.readBuffer(),isDelta:t}},e.packAudioMessage=function(e,n){var r=new vt.$;return r.writeUInt16LE(t.Audio),r.writeUInt8(e),n&&r.writeBuffer(n),r.toBuffer()},e.unpackAudioMessage=function(e){return{instruction:e.readUInt8(),soundbuf:e.remaining()?e.readBuffer():void 0}},e.packIconMessage=function(e,n,r){var i=new vt.$;return i.writeUInt16LE(t.Icon),i.writeUInt8(e),i.writeUInt8(n),r&&i.writeBuffer(r),i.toBuffer()},e.unpackIconMessage=function(e){var t,n=e.readUInt8(),r=e.readUInt8();return e.remaining()&&(t=e.readBuffer()),{iconType:n,iconSlot:r,iconBuffer:t}}}(t||(t=e.Binary||(e.Binary={})))}(un||(un={}));var rr,ir=[{name:lf("smile"),emoji:"😃"},{name:lf("laugh"),emoji:"🤣"},{name:lf("surprise"),emoji:"😯"},{name:lf("cry"),emoji:"😫"},{name:lf("scared"),emoji:"😬"},{name:lf("angry"),emoji:"😠"}],ar=[];function or(e){return sr.apply(this,arguments)}function sr(){return(sr=J(X().mark((function e(t){var n;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,ar[t]&&!(ar[t]+250<Date.now())){e.next=7;break}return ar[t]=Date.now(),n=ir[t],pxt.tickEvent("mp.sendreaction",{reaction:n.name}),e.next=7,kn(t);case 7:e.next=11;break;case 9:e.prev=9,e.t0=e.catch(0);case 11:return e.prev=11,e.finish(11);case 13:case"end":return e.stop()}}),e,null,[[0,9,11,13]])})))).apply(this,arguments)}function ur(e,t){return lr.apply(this,arguments)}function lr(){return(lr=J(X().mark((function e(t,n){var r;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{r=T(),_(z(t,r,n)),setTimeout((function(){var e;(null===(e=k.reactions[t])||void 0===e?void 0:e.id)===r&&_(V(t))}),1e3)}catch(e){}case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function cr(e){return fr.apply(this,arguments)}function fr(){return(fr=J(X().mark((function e(t){var n,r;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{(n=k.presence.users.find((function(e){return e.id===t})))&&(_(D({type:"info",text:lf("Player {0} joined the game.",n.slot),timeoutMs:5e3})),null===(r=Jt())||void 0===r||r.postMessage({type:"multiplayer",content:"Connection",slot:n.slot,connected:!0}))}catch(e){}case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function dr(e){return pr.apply(this,arguments)}function pr(){return(pr=J(X().mark((function e(t){var n,r;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{(n=k.presence.users.find((function(e){return e.id===t})))&&(_(D({type:"info",text:lf("Player {0} left the game.",n.slot),timeoutMs:5e3})),null===(r=Jt())||void 0===r||r.postMessage({type:"multiplayer",content:"Connection",slot:n.slot,connected:!1}))}catch(e){}case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function hr(e){return mr.apply(this,arguments)}function mr(){return(mr=J(X().mark((function e(t){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{_(D({type:"success",text:lf("Welcome {0}!",t),timeoutMs:5e3}))}catch(e){}case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function vr(e){return yr.apply(this,arguments)}function yr(){return(yr=J(X().mark((function e(t){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{_(t?N(t):{type:"SET_USER_PROFILE",profile:void 0})}catch(e){}case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function gr(e){return br.apply(this,arguments)}function br(){return(br=J(X().mark((function e(t){var n,r,i,a,o,s;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n="https://makecode.com/api/".concat(t),e.next=4,fetch(n);case 4:return r=e.sent,e.next=7,r.json();case 7:return i=e.sent,a=i.name||lf("Untitled"),o=i.description||"",s="".concat(n,"/thumb"),_(I({title:a,description:o,thumbnail:s})),_(L(t)),e.abrupt("return",!0);case 16:return e.prev=16,e.t0=e.catch(0),pxt.log(e.t0.toString()),_(P("init")),_(D({type:"error",text:lf("Something went wrong. Please try again."),timeoutMs:5e3})),e.abrupt("return",!1);case 22:return e.prev=22,e.finish(22);case 24:case"end":return e.stop()}}),e,null,[[0,16,22,24]])})))).apply(this,arguments)}function wr(e){return xr.apply(this,arguments)}function xr(){return(xr=J(X().mark((function e(t){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{In(t)}catch(e){}case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function kr(){return _r.apply(this,arguments)}function _r(){return(_r=J(X().mark((function e(){var t,n;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=k.clientRole,e.prev=1,"host"!==t){e.next=6;break}return pxt.tickEvent("mp.host.pausegame"),e.next=6,Ln();case 6:null===(n=Jt())||void 0===n||n.resume(pxsim.SimulatorDebuggerCommand.Pause),_(q(!0)),e.next=12;break;case 10:e.prev=10,e.t0=e.catch(1);case 12:return e.prev=12,e.finish(12);case 14:case"end":return e.stop()}}),e,null,[[1,10,12,14]])})))).apply(this,arguments)}function Er(){return Sr.apply(this,arguments)}function Sr(){return(Sr=J(X().mark((function e(){var t,n,r,i,a;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=k.clientRole,n=k.presence,e.prev=1,"host"!==t){e.next=6;break}return pxt.tickEvent("mp.host.resumegame"),e.next=6,Bn();case 6:if(null===(r=Jt())||void 0===r||r.resume(pxsim.SimulatorDebuggerCommand.Resume),_(q(!1)),"host"!==t){e.next=13;break}for(i=function(e){var t,r=!!n.users.find((function(t){return t.slot===e}));null===(t=Jt())||void 0===t||t.postMessage({type:"multiplayer",content:"Connection",slot:e,connected:r})},a=1;a<=4;a++)i(a);return e.next=13,Pn();case 13:e.next=17;break;case 15:e.prev=15,e.t0=e.catch(1);case 17:return e.prev=17,e.finish(17);case 19:case"end":return e.stop()}}),e,null,[[1,15,17,19]])})))).apply(this,arguments)}function Or(e){return Ar.apply(this,arguments)}function Ar(){return(Ar=J(X().mark((function e(t){var n,r,i;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=k.clientRole,r=k.gameState,i=(null!=r?r:{}).gameMode,e.prev=2,t||"host"!==n||"playing"!==i){e.next=6;break}return e.next=6,kr();case 6:e.next=10;break;case 8:e.prev=8,e.t0=e.catch(2);case 10:return e.prev=10,e.finish(10);case 12:case"end":return e.stop()}}),e,null,[[2,8,10,12]])})))).apply(this,arguments)}function Cr(e,t){return Tr.apply(this,arguments)}function Tr(){return(Tr=J(X().mark((function e(t,n){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,pxt.tickEvent("mp.reportabuse"),e.next=4,fetch("https://makecode.com/api/".concat(t,"/abusereports"),{method:"POST",body:JSON.stringify({text:n})});case 4:if(200!==e.sent.status){e.next=9;break}_(D({type:"success",text:lf("Thank you for helping keep Microsoft MakeCode a friendly place!"),icon:"✅",timeoutMs:5e3})),e.next=10;break;case 9:throw new Error("Failed to send abuse report");case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(0),_(D({type:"error",text:lf("Sorry, we couldn't send your report. Please try again later."),timeoutMs:5e3}));case 15:return e.prev=15,e.finish(15);case 17:case"end":return e.stop()}}),e,null,[[0,12,15,17]])})))).apply(this,arguments)}function Nr(e,t,n){return jr.apply(this,arguments)}function jr(){return(jr=J(X().mark((function e(n,r,i){var a;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{a=n===t.Player?G:Z,_(a(r,i))}catch(e){}case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Pr(e){var t;return(0,E.jsxs)("div",{children:[(0,E.jsx)(re,{className:"tw-m-0 tw-px-8 ".concat(e.selected?"tw-font-bold":""),title:e.title,label:null!==(t=e.label)&&void 0!==t?t:e.title,onClick:e.onClick}),(0,E.jsx)("div",{className:"tw-mx-1 tw-border-b-2 tw-rounded-sm tw-ease-linear tw-duration-[75ms]",style:{borderColor:e.selected?"var(--primary-color)":"transparent"}})]})}function Rr(e){var t=e.title,n=e.subtitle,r=e.image,i=Rt(e.shareId),a=function(){var e=J(X().mark((function e(){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return pxt.tickEvent("mp.hostbutton",{id:i,title:t}),e.next=3,Fn(i);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),o=lf("Host a multiplayer session with '{0}'",pxt.U.rlf(t)),s=null!=r?r:"https://makecode.com/api/".concat(i,"/thumb"),u=lf("Preview image for game");return(0,E.jsx)(re,{className:"tw-p-0 sm:tw-pb-1 tw-flex tw-grow tw-shrink tw-basis-1 tw-max-w-[min(12em,30vw)] tw-rounded-md tw-border-solid tw-border-1 tw-border-gray-300 tw-overflow-hidden tw-drop-shadow-xl",onClick:a,title:o,label:(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("img",{className:"tw-w-full tw-aspect-[4/3]",src:s,alt:u}),(0,E.jsx)("div",{className:"tw-text-left tw-px-2 tw-pt-1 tw-hidden tw-truncate tw-leading-normal sm:tw-block",children:pxt.U.rlf(t)}),(0,E.jsx)("div",{className:"tw-text-left tw-px-2 tw-text-sm tw-text-gray-500 tw-truncate tw-leading-normal tw-hidden md:tw-block",children:pxt.U.rlf(n)})]})})}function Ir(){var e,t=(0,a.useContext)(S).state.targetConfig,n=l((0,a.useState)("join"),2),r=n[0],i=n[1],o=(0,a.useRef)(),s=(0,a.useRef)(),u=(0,a.useCallback)((function(e){o.current=e}),[]),c=(0,a.useCallback)((function(e){s.current=e}),[]),f=function(){var e=J(X().mark((function e(){var t;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null==o||null===(t=o.current)||void 0===t||!t.value){e.next=3;break}return e.next=3,Vn(o.current.value);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),d=function(){var e=J(X().mark((function e(){var t;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null==s||null===(t=s.current)||void 0===t||!t.value){e.next=3;break}return e.next=3,Fn(s.current.value);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),p=lf("Enter share code or link"),h=lf("How do I get a share code or link?"),m=lf("More games to play with your friends"),v=null==t||null===(e=t.multiplayer)||void 0===e?void 0:e.games,y=!(null==v||!v.length);return(0,E.jsxs)("div",{className:"tw-flex tw-flex-col tw-w-screen tw-h-screen tw-justify-center tw-items-center",children:[(0,E.jsx)("div",{className:"tw-bg-white tw-rounded-lg tw-drop-shadow-xl tw-min-h-[17rem] tw-min-w-[17rem] md:tw-min-w-[25rem]",children:(0,E.jsx)("div",{className:"tw-py-5 tw-px-10 ",children:(0,E.jsxs)("div",{className:"tw-pt-2",children:[(0,E.jsxs)("div",{className:"tw-flex tw-justify-center",children:[(0,E.jsx)(Pr,{title:lf("Join Game"),label:(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("div",{className:"tw-hidden sm:tw-inline",children:lf("Join Game")}),(0,E.jsx)("div",{className:"sm:tw-hidden",children:lf("Join")})]}),selected:"join"===r,onClick:function(){return i("join")}}),(0,E.jsx)(Pr,{title:lf("Host Game"),label:(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("div",{className:"tw-hidden sm:tw-inline",children:lf("Host Game")}),(0,E.jsx)("div",{className:"sm:tw-hidden",children:lf("Host")})]}),selected:"host"===r,onClick:function(){return i("host")}})]}),(0,E.jsxs)("div",{className:"tw-pt-2",children:["join"===r&&(0,E.jsxs)("div",{className:"tw-w-full tw-flex tw-flex-col tw-gap-4 tw-mt-2 tw-justify-center tw-items-center",children:[(0,E.jsx)("div",{className:"tw-w-full",children:(0,E.jsx)(ae,{groupClassName:"tw-w-full tw-border-1 tw-h-full tw-rounded",inputClassName:"tw-text-center tw-p-2",title:lf("Join Code"),autoComplete:!1,handleInputRef:u,preserveValueOnBlur:!0,onEnterKey:f,placeholder:lf("Enter game code")})}),(0,E.jsx)("div",{children:(0,E.jsx)(re,{className:"primary tw-px-10",label:lf("Enter"),title:lf("Join Game"),onClick:f})}),(0,E.jsx)("div",{className:"tw-text-sm",children:(0,E.jsx)(oe,{href:"/multiplayer#join-game",target:"_blank",children:lf("How do I get a game code?")})})]}),"host"===r&&(0,E.jsxs)("div",{className:"tw-w-full tw-flex tw-flex-col tw-gap-4 tw-mt-2 tw-justify-center tw-items-center",children:[(0,E.jsx)("div",{className:"tw-w-full",children:(0,E.jsx)(ae,{groupClassName:"tw-w-full tw-border-1 tw-h-full tw-rounded",inputClassName:"tw-p-2",title:lf("Share Code"),autoComplete:!1,handleInputRef:c,preserveValueOnBlur:!0,onEnterKey:d,placeholder:p})}),(0,E.jsx)("div",{children:(0,E.jsx)(re,{className:"primary tw-px-10",label:lf("Launch"),title:lf("Host Game"),onClick:d})}),(0,E.jsx)("div",{className:"tw-text-sm",children:(0,E.jsx)(oe,{href:"/multiplayer#host-game",target:"_blank",children:h})})]})]})]})})}),y&&(0,E.jsxs)("div",{className:"tw-max-w-[min(90vw,60em)] tw-p-2 tw-flex tw-flex-col tw-shrink",children:[(0,E.jsx)("div",{className:"tw-w-full tw-p-2",children:m}),(0,E.jsx)("div",{className:"tw-flex tw-justify-between tw-space-x-1 md:tw-space-x-4",children:v.map((function(e,t){return(0,E.jsx)(Rr,{shareId:e.shareId,title:pxt.Util.rlf("{id:game-title}".concat(e.title)),subtitle:pxt.Util.rlf("{id:game-subtitle}".concat(e.subtitle)),image:It(e.image)},t)}))})]})]})}function Lr(){var e=(0,a.useContext)(S).state,t=e.playerSlot,n=e.gameState,r=e.clientRole,i=e.gamePaused,o=null==n?void 0:n.gameId,s=null==n?void 0:n.gameMode,u=(0,a.useRef)(null),l=["background-color=ED3636&button-stroke=8D2525","background-color=4E4EE9&button-stroke=3333A1","background-color=FF9A14&button-stroke=B0701A","background-color=4EB94E&button-stroke=245D24"][(t||0)-1],c="host"===r,f=function(){var e=J(X().mark((function e(t){var n,r,i;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.image,r=t.palette,i=n.data,e.next=4,Nn(i,r);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),d=function(){var e=J(X().mark((function e(t){var n,r;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.button,r=t.state,e.next=3,En(n,r);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),p=function(){var e=J(X().mark((function e(t){var n,r;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.instruction,r=t.soundbuf,e.next=3,On(n,r);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),h=function(){var e=J(X().mark((function e(t){var n,r,i,a,o;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.iconType,r=t.palette,i=t.icon,a=t.slot,o=(i||{}).data,e.next=4,Cn(n,a,r,o);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();(0,a.useEffect)((function(){var e=function(e){var t=e.data;switch(t.type){case"status":if("running"===t.state&&"guest"===r){var n,i=function(){var e;return(null===(e=sn)||void 0===e?void 0:e.getCurrentScreen())||{image:void 0,palette:void 0}}(),a=i.image,o=i.palette;a&&(null===(n=Jt())||void 0===n||n.postMessage({type:"multiplayer",content:"Image",image:{data:a},palette:o}))}return;case"toplevelcodefinished":if("host"===r){var s,u=ee(null==k?void 0:k.presence.users);try{for(u.s();!(s=u.n()).done;){var l,c=s.value;null===(l=Jt())||void 0===l||l.postMessage({type:"multiplayer",content:"Connection",slot:c.slot,connected:!0})}}catch(e){u.e(e)}finally{u.f()}}return;case"multiplayer":var m=t.origin,v=t.content;return void("client"===m&&"Button"===v?d(t):"server"===m&&"Image"===v?f(t):"server"===m&&"Audio"===v?p(t):"server"===m&&"Icon"===v&&h(t))}};return window.addEventListener("message",e),function(){return window.removeEventListener("message",e)}}),[r]);var m=function(){return c?{simQueryParams:l,mpRole:"server",id:o}:{simQueryParams:l,mpRole:"client"}},v=function(){var e=J(X().mark((function e(){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return rr=an(m()),e.next=3,rr;case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),y=function(){var e=J(X().mark((function e(){var t;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=m(),!rr){e.next=5;break}return e.next=4,rr;case 4:t.builtJsInfo=e.sent;case 5:return rr=nn(u.current,t),e.next=8,rr;case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,a.useEffect)((function(){"playing"===s&&y()}),[s]),(0,a.useEffect)((function(){"playing"!==s&&u.current&&function(e,t){tn.apply(this,arguments)}(u.current,m())}),[r,t]),(0,a.useEffect)((function(){c||v()}),[r]),(0,a.useEffect)((function(){c&&o&&v()}),[r,o]),(0,a.useEffect)((function(){return function(){rr=void 0}})),(0,E.jsx)("div",{id:"sim-container",ref:u,className:"tw-grow tw-w-screen md:tw-w-[calc(100vw-6rem)]",style:{filter:i?"grayscale(70%) blur(1px)":"none",transition:"filter .25s"}})}var Mr,Br,Dr=Object.defineProperty,Ur=Object.getOwnPropertySymbols,Fr=Object.prototype.hasOwnProperty,zr=Object.prototype.propertyIsEnumerable,Vr=function(e,t,n){return t in e?Dr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n};!function(e){var t=function(){function t(e,n,r,a){if(se(this,t),this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version value out of range");if(a<-1||a>7)throw new RangeError("Mask value out of range");this.size=4*e+17;for(var o=[],s=0;s<this.size;s++)o.push(!1);for(var u=0;u<this.size;u++)this.modules.push(o.slice()),this.isFunction.push(o.slice());this.drawFunctionPatterns();var l=this.addEccAndInterleave(r);if(this.drawCodewords(l),-1==a)for(var c=1e9,f=0;f<8;f++){this.applyMask(f),this.drawFormatBits(f);var d=this.getPenaltyScore();d<c&&(a=f,c=d),this.applyMask(f)}i(0<=a&&a<=7),this.mask=a,this.applyMask(a),this.drawFormatBits(a),this.isFunction=[]}return le(t,[{key:"getModule",value:function(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}},{key:"getModules",value:function(){return this.modules}},{key:"drawFunctionPatterns",value:function(){for(var e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);for(var t=this.getAlignmentPatternPositions(),n=t.length,r=0;r<n;r++)for(var i=0;i<n;i++)0==r&&0==i||0==r&&i==n-1||r==n-1&&0==i||this.drawAlignmentPattern(t[r],t[i]);this.drawFormatBits(0),this.drawVersion()}},{key:"drawFormatBits",value:function(e){for(var t=this.errorCorrectionLevel.formatBits<<3|e,n=t,a=0;a<10;a++)n=n<<1^1335*(n>>>9);var o=21522^(t<<10|n);i(o>>>15==0);for(var s=0;s<=5;s++)this.setFunctionModule(8,s,r(o,s));this.setFunctionModule(8,7,r(o,6)),this.setFunctionModule(8,8,r(o,7)),this.setFunctionModule(7,8,r(o,8));for(var u=9;u<15;u++)this.setFunctionModule(14-u,8,r(o,u));for(var l=0;l<8;l++)this.setFunctionModule(this.size-1-l,8,r(o,l));for(var c=8;c<15;c++)this.setFunctionModule(8,this.size-15+c,r(o,c));this.setFunctionModule(8,this.size-8,!0)}},{key:"drawVersion",value:function(){if(!(this.version<7)){for(var e=this.version,t=0;t<12;t++)e=e<<1^7973*(e>>>11);var n=this.version<<12|e;i(n>>>18==0);for(var a=0;a<18;a++){var o=r(n,a),s=this.size-11+a%3,u=Math.floor(a/3);this.setFunctionModule(s,u,o),this.setFunctionModule(u,s,o)}}}},{key:"drawFinderPattern",value:function(e,t){for(var n=-4;n<=4;n++)for(var r=-4;r<=4;r++){var i=Math.max(Math.abs(r),Math.abs(n)),a=e+r,o=t+n;0<=a&&a<this.size&&0<=o&&o<this.size&&this.setFunctionModule(a,o,2!=i&&4!=i)}}},{key:"drawAlignmentPattern",value:function(e,t){for(var n=-2;n<=2;n++)for(var r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,1!=Math.max(Math.abs(r),Math.abs(n)))}},{key:"setFunctionModule",value:function(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}},{key:"addEccAndInterleave",value:function(e){var n=this.version,r=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,r))throw new RangeError("Invalid argument");for(var a=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],o=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],s=Math.floor(t.getNumRawDataModules(n)/8),u=a-s%a,l=Math.floor(s/a),c=[],f=t.reedSolomonComputeDivisor(o),d=0,p=0;d<a;d++){var h=e.slice(p,p+l-o+(d<u?0:1));p+=h.length;var m=t.reedSolomonComputeRemainder(h,f);d<u&&h.push(0),c.push(h.concat(m))}for(var v=[],y=function(e){c.forEach((function(t,n){(e!=l-o||n>=u)&&v.push(t[e])}))},g=0;g<c[0].length;g++)y(g);return i(v.length==s),v}},{key:"drawCodewords",value:function(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");for(var n=0,a=this.size-1;a>=1;a-=2){6==a&&(a=5);for(var o=0;o<this.size;o++)for(var s=0;s<2;s++){var u=a-s,l=0==(a+1&2)?this.size-1-o:o;!this.isFunction[l][u]&&n<8*e.length&&(this.modules[l][u]=r(e[n>>>3],7-(7&n)),n++)}}i(n==8*e.length)}},{key:"applyMask",value:function(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(var t=0;t<this.size;t++)for(var n=0;n<this.size;n++){var r=void 0;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}},{key:"getPenaltyScore",value:function(){for(var e=0,n=0;n<this.size;n++){for(var r=!1,a=0,o=[0,0,0,0,0,0,0],s=0;s<this.size;s++)this.modules[n][s]==r?5==++a?e+=t.PENALTY_N1:a>5&&e++:(this.finderPenaltyAddHistory(a,o),r||(e+=this.finderPenaltyCountPatterns(o)*t.PENALTY_N3),r=this.modules[n][s],a=1);e+=this.finderPenaltyTerminateAndCount(r,a,o)*t.PENALTY_N3}for(var u=0;u<this.size;u++){for(var l=!1,c=0,f=[0,0,0,0,0,0,0],d=0;d<this.size;d++)this.modules[d][u]==l?5==++c?e+=t.PENALTY_N1:c>5&&e++:(this.finderPenaltyAddHistory(c,f),l||(e+=this.finderPenaltyCountPatterns(f)*t.PENALTY_N3),l=this.modules[d][u],c=1);e+=this.finderPenaltyTerminateAndCount(l,c,f)*t.PENALTY_N3}for(var p=0;p<this.size-1;p++)for(var h=0;h<this.size-1;h++){var m=this.modules[p][h];m==this.modules[p][h+1]&&m==this.modules[p+1][h]&&m==this.modules[p+1][h+1]&&(e+=t.PENALTY_N2)}var v,y=0,g=ee(this.modules);try{for(g.s();!(v=g.n()).done;)y=v.value.reduce((function(e,t){return e+(t?1:0)}),y)}catch(e){g.e(e)}finally{g.f()}var b=this.size*this.size,w=Math.ceil(Math.abs(20*y-10*b)/b)-1;return i(0<=w&&w<=9),i(0<=(e+=w*t.PENALTY_N4)&&e<=2568888),e}},{key:"getAlignmentPatternPositions",value:function(){if(1==this.version)return[];for(var e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2)),n=[6],r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}},{key:"finderPenaltyCountPatterns",value:function(e){var t=e[1];i(t<=3*this.size);var n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}},{key:"finderPenaltyTerminateAndCount",value:function(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}},{key:"finderPenaltyAddHistory",value:function(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}}],[{key:"encodeText",value:function(n,r){var i=e.QrSegment.makeSegments(n);return t.encodeSegments(i,r)}},{key:"encodeBinary",value:function(n,r){var i=e.QrSegment.makeBytes(n);return t.encodeSegments([i],r)}},{key:"encodeSegments",value:function(e,r){var o,s,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:40,c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,f=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];if(!(t.MIN_VERSION<=u&&u<=l&&l<=t.MAX_VERSION)||c<-1||c>7)throw new RangeError("Invalid value");for(o=u;;o++){var d=8*t.getNumDataCodewords(o,r),p=a.getTotalBits(e,o);if(p<=d){s=p;break}if(o>=l)throw new RangeError("Data too long")}for(var h=0,m=[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH];h<m.length;h++){var v=m[h];f&&s<=8*t.getNumDataCodewords(o,v)&&(r=v)}var y,g=[],b=ee(e);try{for(b.s();!(y=b.n()).done;){var w=y.value;n(w.mode.modeBits,4,g),n(w.numChars,w.mode.numCharCountBits(o),g);var x,k=ee(w.getData());try{for(k.s();!(x=k.n()).done;){var _=x.value;g.push(_)}}catch(e){k.e(e)}finally{k.f()}}}catch(e){b.e(e)}finally{b.f()}i(g.length==s);var E=8*t.getNumDataCodewords(o,r);i(g.length<=E),n(0,Math.min(4,E-g.length),g),n(0,(8-g.length%8)%8,g),i(g.length%8==0);for(var S=236;g.length<E;S^=253)n(S,8,g);for(var O=[];8*O.length<g.length;)O.push(0);return g.forEach((function(e,t){return O[t>>>3]|=e<<7-(7&t)})),new t(o,r,O,c)}},{key:"getNumRawDataModules",value:function(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version number out of range");var n=(16*e+128)*e+64;if(e>=2){var r=Math.floor(e/7)+2;n-=(25*r-10)*r-55,e>=7&&(n-=36)}return i(208<=n&&n<=29648),n}},{key:"getNumDataCodewords",value:function(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}},{key:"reedSolomonComputeDivisor",value:function(e){if(e<1||e>255)throw new RangeError("Degree out of range");for(var n=[],r=0;r<e-1;r++)n.push(0);n.push(1);for(var i=1,a=0;a<e;a++){for(var o=0;o<n.length;o++)n[o]=t.reedSolomonMultiply(n[o],i),o+1<n.length&&(n[o]^=n[o+1]);i=t.reedSolomonMultiply(i,2)}return n}},{key:"reedSolomonComputeRemainder",value:function(e,n){var r,i=n.map((function(e){return 0})),a=ee(e);try{var o=function(){var e=r.value^i.shift();i.push(0),n.forEach((function(n,r){return i[r]^=t.reedSolomonMultiply(n,e)}))};for(a.s();!(r=a.n()).done;)o()}catch(e){a.e(e)}finally{a.f()}return i}},{key:"reedSolomonMultiply",value:function(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");for(var n=0,r=7;r>=0;r--)n=n<<1^285*(n>>>7),n^=(t>>>r&1)*e;return i(n>>>8==0),n}}]),t}();function n(e,t,n){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(var r=t-1;r>=0;r--)n.push(e>>>r&1)}function r(e,t){return 0!=(e>>>t&1)}function i(e){if(!e)throw new Error("Assertion error")}t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;var a=function(){function e(t,n,r){if(se(this,e),this.mode=t,this.numChars=n,this.bitData=r,n<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}return le(e,[{key:"getData",value:function(){return this.bitData.slice()}}],[{key:"makeBytes",value:function(t){var r,i=[],a=ee(t);try{for(a.s();!(r=a.n()).done;)n(r.value,8,i)}catch(e){a.e(e)}finally{a.f()}return new e(e.Mode.BYTE,t.length,i)}},{key:"makeNumeric",value:function(t){if(!e.isNumeric(t))throw new RangeError("String contains non-numeric characters");for(var r=[],i=0;i<t.length;){var a=Math.min(t.length-i,3);n(parseInt(t.substr(i,a),10),3*a+1,r),i+=a}return new e(e.Mode.NUMERIC,t.length,r)}},{key:"makeAlphanumeric",value:function(t){if(!e.isAlphanumeric(t))throw new RangeError("String contains unencodable characters in alphanumeric mode");var r,i=[];for(r=0;r+2<=t.length;r+=2){var a=45*e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r));n(a+=e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r+1)),11,i)}return r<t.length&&n(e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r)),6,i),new e(e.Mode.ALPHANUMERIC,t.length,i)}},{key:"makeSegments",value:function(t){return""==t?[]:e.isNumeric(t)?[e.makeNumeric(t)]:e.isAlphanumeric(t)?[e.makeAlphanumeric(t)]:[e.makeBytes(e.toUtf8ByteArray(t))]}},{key:"makeEci",value:function(t){var r=[];if(t<0)throw new RangeError("ECI assignment value out of range");if(t<128)n(t,8,r);else if(t<16384)n(2,2,r),n(t,14,r);else{if(!(t<1e6))throw new RangeError("ECI assignment value out of range");n(6,3,r),n(t,21,r)}return new e(e.Mode.ECI,0,r)}},{key:"isNumeric",value:function(t){return e.NUMERIC_REGEX.test(t)}},{key:"isAlphanumeric",value:function(t){return e.ALPHANUMERIC_REGEX.test(t)}},{key:"getTotalBits",value:function(e,t){var n,r=0,i=ee(e);try{for(i.s();!(n=i.n()).done;){var a=n.value,o=a.mode.numCharCountBits(t);if(a.numChars>=1<<o)return 1/0;r+=4+o+a.bitData.length}}catch(e){i.e(e)}finally{i.f()}return r}},{key:"toUtf8ByteArray",value:function(e){e=encodeURI(e);for(var t=[],n=0;n<e.length;n++)"%"!=e.charAt(n)?t.push(e.charCodeAt(n)):(t.push(parseInt(e.substr(n+1,2),16)),n+=2);return t}}]),e}();a.NUMERIC_REGEX=/^[0-9]*$/,a.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,a.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=a}(Mr||(Mr={})),function(e){var t=le((function e(t,n){se(this,e),this.ordinal=t,this.formatBits=n})),n=t;n.LOW=new t(0,1),n.MEDIUM=new t(1,0),n.QUARTILE=new t(2,3),n.HIGH=new t(3,2),e.Ecc=n}((Br=Mr||(Mr={})).QrCode||(Br.QrCode={})),function(e){!function(e){var t=function(){function e(t,n){se(this,e),this.modeBits=t,this.numBitsCharCount=n}return le(e,[{key:"numCharCountBits",value:function(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}}]),e}(),n=t;n.NUMERIC=new t(1,[10,12,14]),n.ALPHANUMERIC=new t(2,[9,11,13]),n.BYTE=new t(4,[8,16,16]),n.KANJI=new t(8,[8,10,12]),n.ECI=new t(7,[0,0,0]),e.Mode=n}(e.QrSegment||(e.QrSegment={}))}(Mr||(Mr={}));var Hr=Mr,Wr={L:Hr.QrCode.Ecc.LOW,M:Hr.QrCode.Ecc.MEDIUM,Q:Hr.QrCode.Ecc.QUARTILE,H:Hr.QrCode.Ecc.HIGH};function qr(e){var t=e,n=t.value,r=t.size,i=void 0===r?128:r,o=t.level,s=void 0===o?"L":o,u=t.bgColor,l=void 0===u?"#FFFFFF":u,c=t.fgColor,f=void 0===c?"#000000":c,d=t.includeMargin,p=void 0!==d&&d,h=t.imageSettings,m=function(e,t){var n={};for(var r in e)Fr.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Ur){var i,a=ee(Ur(e));try{for(a.s();!(i=a.n()).done;)r=i.value,t.indexOf(r)<0&&zr.call(e,r)&&(n[r]=e[r])}catch(e){a.e(e)}finally{a.f()}}return n}(t,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]),v=Hr.QrCode.encodeText(n,Wr[s]).getModules(),y=p?4:0,g=v.length+2*y,b=function(e,t,n,r){if(null==r)return null;var i=n?4:0,a=e.length+2*i,o=Math.floor(.1*t),s=a/t,u=(r.width||o)*s,l=(r.height||o)*s,c=null==r.x?e.length/2-u/2:r.x*s,f=null==r.y?e.length/2-l/2:r.y*s,d=null;if(r.excavate){var p=Math.floor(c),h=Math.floor(f);d={x:p,y:h,w:Math.ceil(u+c-p),h:Math.ceil(l+f-h)}}return{x:c,y:f,h:l,w:u,excavation:d}}(v,i,p,h),w=null;null!=h&&null!=b&&(null!=b.excavation&&(v=function(e,t){return e.slice().map((function(e,n){return n<t.y||n>=t.y+t.h?e:e.map((function(e,n){return(n<t.x||n>=t.x+t.w)&&e}))}))}(v,b.excavation)),w=a.createElement("image",{xlinkHref:h.src,height:b.h,width:b.w,x:b.x+y,y:b.y+y,preserveAspectRatio:"none"}));var x=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[];return e.forEach((function(e,r){var i=null;e.forEach((function(a,o){if(!a&&null!==i)return n.push("M".concat(i+t," ").concat(r+t,"h").concat(o-i,"v1H").concat(i+t,"z")),void(i=null);if(o!==e.length-1)a&&null===i&&(i=o);else{if(!a)return;null===i?n.push("M".concat(o+t,",").concat(r+t," h1v1H").concat(o+t,"z")):n.push("M".concat(i+t,",").concat(r+t," h").concat(o+1-i,"v1H").concat(i+t,"z"))}}))})),n.join("")}(v,y);return a.createElement("svg",function(e,t){for(var n in t||(t={}))Fr.call(t,n)&&Vr(e,n,t[n]);if(Ur){var r,i=ee(Ur(t));try{for(i.s();!(r=i.n()).done;)n=r.value,zr.call(t,n)&&Vr(e,n,t[n])}catch(e){i.e(e)}finally{i.f()}}return e}({height:i,width:i,viewBox:"0 0 ".concat(g," ").concat(g)},m),a.createElement("path",{fill:l,d:"M0,0 h".concat(g,"v").concat(g,"H0z"),shapeRendering:"crispEdges"}),a.createElement("path",{fill:f,d:x,shapeRendering:"crispEdges"}),w)}!function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}}();var Gr={prefix:"far",iconName:"copy",icon:[512,512,[],"f0c5","M502.6 70.63l-61.25-61.25C435.4 3.371 427.2 0 418.7 0H255.1c-35.35 0-64 28.66-64 64l.0195 256C192 355.4 220.7 384 256 384h192c35.2 0 64-28.8 64-64V93.25C512 84.77 508.6 76.63 502.6 70.63zM464 320c0 8.836-7.164 16-16 16H255.1c-8.838 0-16-7.164-16-16L239.1 64.13c0-8.836 7.164-16 16-16h128L384 96c0 17.67 14.33 32 32 32h47.1V320zM272 448c0 8.836-7.164 16-16 16H63.1c-8.838 0-16-7.164-16-16L47.98 192.1c0-8.836 7.164-16 16-16H160V128H63.99c-35.35 0-64 28.65-64 64l.0098 256C.002 483.3 28.66 512 64 512h192c35.2 0 64-28.8 64-64v-32h-47.1L272 448z"]},Zr={prefix:"far",iconName:"circle-xmark",icon:[512,512,[61532,"times-circle","xmark-circle"],"f057","M175 175C184.4 165.7 199.6 165.7 208.1 175L255.1 222.1L303 175C312.4 165.7 327.6 165.7 336.1 175C346.3 184.4 346.3 199.6 336.1 208.1L289.9 255.1L336.1 303C346.3 312.4 346.3 327.6 336.1 336.1C327.6 346.3 312.4 346.3 303 336.1L255.1 289.9L208.1 336.1C199.6 346.3 184.4 346.3 175 336.1C165.7 327.6 165.7 312.4 175 303L222.1 255.1L175 208.1C165.7 199.6 165.7 184.4 175 175V175zM512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256zM256 48C141.1 48 48 141.1 48 256C48 370.9 141.1 464 256 464C370.9 464 464 370.9 464 256C464 141.1 370.9 48 256 48z"]},Yr={prefix:"fas",iconName:"circle-notch",icon:[512,512,[],"f1ce","M222.7 32.1c5 16.9-4.6 34.8-21.5 39.8C121.8 95.6 64 169.1 64 256c0 106 86 192 192 192s192-86 192-192c0-86.9-57.8-160.4-137.1-184.1c-16.9-5-26.6-22.9-21.5-39.8s22.9-26.6 39.8-21.5C434.9 42.1 512 140 512 256c0 141.4-114.6 256-256 256S0 397.4 0 256C0 140 77.1 42.1 182.9 10.6c16.9-5 34.8 4.6 39.8 21.5z"]},$r={prefix:"fas",iconName:"check",icon:[512,512,[10003,10004],"f00c","M470.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L192 338.7 425.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]},Kr=n(8466);function Xr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xr(Object(n),!0).forEach((function(t){ti(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Jr(e){return(Jr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ei(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ti(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ni(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,i=e}finally{try{o||null==n.return||n.return()}finally{if(s)throw i}}return a}}(e,t)||ii(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ri(e){return function(e){if(Array.isArray(e))return ai(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ii(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ii(e,t){if(e){if("string"==typeof e)return ai(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ai(e,t):void 0}}function ai(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var oi=function(){},si={},ui={},li=null,ci={mark:oi,measure:oi};try{"undefined"!=typeof window&&(si=window),"undefined"!=typeof document&&(ui=document),"undefined"!=typeof MutationObserver&&(li=MutationObserver),"undefined"!=typeof performance&&(ci=performance)}catch(e){}var fi,di,pi,hi,mi,vi=(si.navigator||{}).userAgent,yi=void 0===vi?"":vi,gi=si,bi=ui,wi=li,xi=ci,ki=(gi.document,!!bi.documentElement&&!!bi.head&&"function"==typeof bi.addEventListener&&"function"==typeof bi.createElement),_i=~yi.indexOf("MSIE")||~yi.indexOf("Trident/"),Ei="svg-inline--fa",Si="data-fa-i2svg",Oi="data-fa-pseudo-element",Ai="data-prefix",Ci="data-icon",Ti="fontawesome-i2svg",Ni=["HTML","HEAD","STYLE","SCRIPT"],ji=function(){try{return!0}catch(e){return!1}}(),Pi="classic",Ri="sharp",Ii=[Pi,Ri];function Li(e){return new Proxy(e,{get:function(e,t){return t in e?e[t]:e.classic}})}var Mi=Li((ti(fi={},Pi,{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit","fa-kit":"kit"}),ti(fi,Ri,{fa:"solid",fass:"solid","fa-solid":"solid"}),fi)),Bi=Li((ti(di={},Pi,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),ti(di,Ri,{solid:"fass"}),di)),Di=Li((ti(pi={},Pi,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),ti(pi,Ri,{fass:"fa-solid"}),pi)),Ui=Li((ti(hi={},Pi,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),ti(hi,Ri,{"fa-solid":"fass"}),hi)),Fi=/fa(s|r|l|t|d|b|k|ss)?[\-\ ]/,zi="fa-layers-text",Vi=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,Hi=Li((ti(mi={},Pi,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),ti(mi,Ri,{900:"fass"}),mi)),Wi=[1,2,3,4,5,6,7,8,9,10],qi=Wi.concat([11,12,13,14,15,16,17,18,19,20]),Gi=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Zi="duotone-group",Yi="primary",$i="secondary",Ki=new Set;Object.keys(Bi.classic).map(Ki.add.bind(Ki)),Object.keys(Bi.sharp).map(Ki.add.bind(Ki));var Xi=[].concat(Ii,ri(Ki),["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",Zi,"swap-opacity",Yi,$i]).concat(Wi.map((function(e){return"".concat(e,"x")}))).concat(qi.map((function(e){return"w-".concat(e)}))),Qi=gi.FontAwesomeConfig||{};bi&&"function"==typeof bi.querySelector&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach((function(e){var t=ni(e,2),n=t[0],r=t[1],i=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=bi.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(n));null!=i&&(Qi[r]=i)}));var Ji={styleDefault:"solid",familyDefault:"classic",cssPrefix:"fa",replacementClass:Ei,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Qi.familyPrefix&&(Qi.cssPrefix=Qi.familyPrefix);var ea=Qr(Qr({},Ji),Qi);ea.autoReplaceSvg||(ea.observeMutations=!1);var ta={};Object.keys(Ji).forEach((function(e){Object.defineProperty(ta,e,{enumerable:!0,set:function(t){ea[e]=t,na.forEach((function(e){return e(ta)}))},get:function(){return ea[e]}})})),Object.defineProperty(ta,"familyPrefix",{enumerable:!0,set:function(e){ea.cssPrefix=e,na.forEach((function(e){return e(ta)}))},get:function(){return ea.cssPrefix}}),gi.FontAwesomeConfig=ta;var na=[],ra=16,ia={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function aa(){for(var e=12,t="";e-- >0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function oa(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function sa(e){return e.classList?oa(e.classList):(e.getAttribute("class")||"").split(" ").filter((function(e){return e}))}function ua(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function la(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")}),"")}function ca(e){return e.size!==ia.size||e.x!==ia.x||e.y!==ia.y||e.rotate!==ia.rotate||e.flipX||e.flipY}function fa(){var e="fa",t=Ei,n=ta.cssPrefix,r=ta.replacementClass,i=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-counter-scale, 0.25));\n transform: scale(var(--fa-counter-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(var(--fa-li-width, 2em) * -1);\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n -webkit-animation-name: fa-beat;\n animation-name: fa-beat;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n -webkit-animation-name: fa-bounce;\n animation-name: fa-bounce;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n -webkit-animation-name: fa-fade;\n animation-name: fa-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n -webkit-animation-name: fa-beat-fade;\n animation-name: fa-beat-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n -webkit-animation-name: fa-flip;\n animation-name: fa-flip;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n -webkit-animation-name: fa-shake;\n animation-name: fa-shake;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 2s);\n animation-duration: var(--fa-animation-duration, 2s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n -webkit-animation-delay: -1ms;\n animation-delay: -1ms;\n -webkit-animation-duration: 1ms;\n animation-duration: 1ms;\n -webkit-animation-iteration-count: 1;\n animation-iteration-count: 1;\n transition-delay: 0s;\n transition-duration: 0s;\n }\n}\n@-webkit-keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@-webkit-keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@-webkit-keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@-webkit-keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@-webkit-keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@-webkit-keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n -webkit-transform: rotate(var(--fa-rotate-angle, none));\n transform: rotate(var(--fa-rotate-angle, none));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';if(n!==e||r!==t){var a=new RegExp("\\.".concat(e,"\\-"),"g"),o=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");i=i.replace(a,".".concat(n,"-")).replace(o,"--".concat(n,"-")).replace(s,".".concat(r))}return i}var da=!1;function pa(){ta.autoAddCss&&!da&&(function(e){if(e&&ki){var t=bi.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=bi.head.childNodes,r=null,i=n.length-1;i>-1;i--){var a=n[i],o=(a.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(r=a)}bi.head.insertBefore(t,r)}}(fa()),da=!0)}var ha={mixout:function(){return{dom:{css:fa,insertCss:pa}}},hooks:function(){return{beforeDOMElementCreation:function(){pa()},beforeI2svg:function(){pa()}}}},ma=gi||{};ma.___FONT_AWESOME___||(ma.___FONT_AWESOME___={}),ma.___FONT_AWESOME___.styles||(ma.___FONT_AWESOME___.styles={}),ma.___FONT_AWESOME___.hooks||(ma.___FONT_AWESOME___.hooks={}),ma.___FONT_AWESOME___.shims||(ma.___FONT_AWESOME___.shims=[]);var va=ma.___FONT_AWESOME___,ya=[],ga=!1;function ba(e){ki&&(ga?setTimeout(e,0):ya.push(e))}function wa(e){var t=e.tag,n=e.attributes,r=void 0===n?{}:n,i=e.children,a=void 0===i?[]:i;return"string"==typeof e?ua(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,'="').concat(ua(e[n]),'" ')}),"").trim()}(r),">").concat(a.map(wa).join(""),"</").concat(t,">")}function xa(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}ki&&((ga=(bi.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(bi.readyState))||bi.addEventListener("DOMContentLoaded",(function e(){bi.removeEventListener("DOMContentLoaded",e),ga=1,ya.map((function(e){return e()}))})));var ka=function(e,t,n,r){var i,a,o,s=Object.keys(e),u=s.length,l=void 0!==r?function(e,t){return function(n,r,i,a){return e.call(t,n,r,i,a)}}(t,r):t;for(void 0===n?(i=1,o=e[s[0]]):(i=0,o=n);i<u;i++)o=l(o,e[a=s[i]],a,e);return o};function _a(e){var t=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var a=e.charCodeAt(n++);56320==(64512&a)?t.push(((1023&i)<<10)+(1023&a)+65536):(t.push(i),n--)}else t.push(i)}return t}(e);return 1===t.length?t[0].toString(16):null}function Ea(e){return Object.keys(e).reduce((function(t,n){var r=e[n];return r.icon?t[r.iconName]=r.icon:t[n]=r,t}),{})}function Sa(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.skipHooks,i=void 0!==r&&r,a=Ea(t);"function"!=typeof va.hooks.addPack||i?va.styles[e]=Qr(Qr({},va.styles[e]||{}),a):va.hooks.addPack(e,Ea(t)),"fas"===e&&Sa("fa",t)}var Oa,Aa,Ca,Ta=va.styles,Na=va.shims,ja=(ti(Oa={},Pi,Object.values(Di.classic)),ti(Oa,Ri,Object.values(Di.sharp)),Oa),Pa=null,Ra={},Ia={},La={},Ma={},Ba={},Da=(ti(Aa={},Pi,Object.keys(Mi.classic)),ti(Aa,Ri,Object.keys(Mi.sharp)),Aa);function Ua(e,t){var n,r=t.split("-"),i=r[0],a=r.slice(1).join("-");return i!==e||""===a||(n=a,~Xi.indexOf(n))?null:a}var Fa=function(){var e=function(e){return ka(Ta,(function(t,n,r){return t[r]=ka(n,e,{}),t}),{})};Ra=e((function(e,t,n){(t[3]&&(e[t[3]]=n),t[2])&&t[2].filter((function(e){return"number"==typeof e})).forEach((function(t){e[t.toString(16)]=n}));return e})),Ia=e((function(e,t,n){(e[n]=n,t[2])&&t[2].filter((function(e){return"string"==typeof e})).forEach((function(t){e[t]=n}));return e})),Ba=e((function(e,t,n){var r=t[2];return e[n]=n,r.forEach((function(t){e[t]=n})),e}));var t="far"in Ta||ta.autoFetchSvg,n=ka(Na,(function(e,n){var r=n[0],i=n[1],a=n[2];return"far"!==i||t||(i="fas"),"string"==typeof r&&(e.names[r]={prefix:i,iconName:a}),"number"==typeof r&&(e.unicodes[r.toString(16)]={prefix:i,iconName:a}),e}),{names:{},unicodes:{}});La=n.names,Ma=n.unicodes,Pa=qa(ta.styleDefault,{family:ta.familyDefault})};function za(e,t){return(Ra[e]||{})[t]}function Va(e,t){return(Ba[e]||{})[t]}function Ha(e){return La[e]||{prefix:null,iconName:null}}function Wa(){return Pa}function qa(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.family,r=void 0===n?Pi:n,i=Mi[r][e],a=Bi[r][e]||Bi[r][i],o=e in va.styles?e:null;return a||o||null}na.push((function(e){Pa=qa(e.styleDefault,{family:ta.familyDefault})})),Fa();var Ga=(ti(Ca={},Pi,Object.keys(Di.classic)),ti(Ca,Ri,Object.keys(Di.sharp)),Ca);function Za(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.skipLookups,i=void 0!==r&&r,a=(ti(t={},Pi,"".concat(ta.cssPrefix,"-").concat(Pi)),ti(t,Ri,"".concat(ta.cssPrefix,"-").concat(Ri)),t),o=null,s=Pi;(e.includes(a.classic)||e.some((function(e){return Ga.classic.includes(e)})))&&(s=Pi),(e.includes(a.sharp)||e.some((function(e){return Ga.sharp.includes(e)})))&&(s=Ri);var u=e.reduce((function(e,t){var n=Ua(ta.cssPrefix,t);if(Ta[t]?(t=ja[s].includes(t)?Ui[s][t]:t,o=t,e.prefix=t):Da[s].indexOf(t)>-1?(o=t,e.prefix=qa(t,{family:s})):n?e.iconName=n:t!==ta.replacementClass&&t!==a.classic&&t!==a.sharp&&e.rest.push(t),!i&&e.prefix&&e.iconName){var r="fa"===o?Ha(e.iconName):{},u=Va(e.prefix,e.iconName);r.prefix&&(o=null),e.iconName=r.iconName||u||e.iconName,e.prefix=r.prefix||e.prefix,"far"!==e.prefix||Ta.far||!Ta.fas||ta.autoFetchSvg||(e.prefix="fas")}return e}),{prefix:null,iconName:null,rest:[]});return(e.includes("fa-brands")||e.includes("fab"))&&(u.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(u.prefix="fad"),u.prefix||s!==Ri||!Ta.fass&&!ta.autoFetchSvg||(u.prefix="fass",u.iconName=Va(u.prefix,u.iconName)||u.iconName),"fa"!==u.prefix&&"fa"!==o||(u.prefix=Wa()||"fas"),u}var Ya=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.definitions={}}var t,n;return t=e,(n=[{key:"add",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n.reduce(this._pullDefinitions,{});Object.keys(i).forEach((function(t){e.definitions[t]=Qr(Qr({},e.definitions[t]||{}),i[t]),Sa(t,i[t]);var n=Di.classic[t];n&&Sa(n,i[t]),Fa()}))}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(e,t){var n=t.prefix&&t.iconName&&t.icon?{0:t}:t;return Object.keys(n).map((function(t){var r=n[t],i=r.prefix,a=r.iconName,o=r.icon,s=o[2];e[i]||(e[i]={}),s.length>0&&s.forEach((function(t){"string"==typeof t&&(e[i][t]=o)})),e[i][a]=o})),e}}])&&ei(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),$a=[],Ka={},Xa={},Qa=Object.keys(Xa);function Ja(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var a=Ka[e]||[];return a.forEach((function(e){t=e.apply(null,[t].concat(r))})),t}function eo(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=Ka[e]||[];i.forEach((function(e){e.apply(null,n)}))}function to(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Xa[e]?Xa[e].apply(null,t):void 0}function no(e){"fa"===e.prefix&&(e.prefix="fas");var t=e.iconName,n=e.prefix||Wa();if(t)return t=Va(n,t)||t,xa(ro.definitions,n,t)||xa(va.styles,n,t)}var ro=new Ya,io={i2svg:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ki?(eo("beforeI2svg",e),to("pseudoElements2svg",e),to("i2svg",e)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.autoReplaceSvgRoot;!1===ta.autoReplaceSvg&&(ta.autoReplaceSvg=!0),ta.observeMutations=!0,ba((function(){oo({autoReplaceSvgRoot:t}),eo("watch",e)}))}},ao={noAuto:function(){ta.autoReplaceSvg=!1,ta.observeMutations=!1,eo("noAuto")},config:ta,dom:io,parse:{icon:function(e){if(null===e)return null;if("object"===Jr(e)&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Va(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&2===e.length){var t=0===e[1].indexOf("fa-")?e[1].slice(3):e[1],n=qa(e[0]);return{prefix:n,iconName:Va(n,t)||t}}if("string"==typeof e&&(e.indexOf("".concat(ta.cssPrefix,"-"))>-1||e.match(Fi))){var r=Za(e.split(" "),{skipLookups:!0});return{prefix:r.prefix||Wa(),iconName:Va(r.prefix,r.iconName)||r.iconName}}if("string"==typeof e){var i=Wa();return{prefix:i,iconName:Va(i,e)||e}}}},library:ro,findIconDefinition:no,toHtml:wa},oo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.autoReplaceSvgRoot,n=void 0===t?bi:t;(Object.keys(va.styles).length>0||ta.autoFetchSvg)&&ki&&ta.autoReplaceSvg&&ao.dom.i2svg({node:n})};function so(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((function(e){return wa(e)}))}}),Object.defineProperty(e,"node",{get:function(){if(ki){var t=bi.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function uo(e){var t=e.icons,n=t.main,r=t.mask,i=e.prefix,a=e.iconName,o=e.transform,s=e.symbol,u=e.title,l=e.maskId,c=e.titleId,f=e.extra,d=e.watchable,p=void 0!==d&&d,h=r.found?r:n,m=h.width,v=h.height,y="fak"===i,g=[ta.replacementClass,a?"".concat(ta.cssPrefix,"-").concat(a):""].filter((function(e){return-1===f.classes.indexOf(e)})).filter((function(e){return""!==e||!!e})).concat(f.classes).join(" "),b={children:[],attributes:Qr(Qr({},f.attributes),{},{"data-prefix":i,"data-icon":a,class:g,role:f.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(m," ").concat(v)})},w=y&&!~f.classes.indexOf("fa-fw")?{width:"".concat(m/v*16*.0625,"em")}:{};p&&(b.attributes[Si]=""),u&&(b.children.push({tag:"title",attributes:{id:b.attributes["aria-labelledby"]||"title-".concat(c||aa())},children:[u]}),delete b.attributes.title);var x=Qr(Qr({},b),{},{prefix:i,iconName:a,main:n,mask:r,maskId:l,transform:o,symbol:s,styles:Qr(Qr({},w),f.styles)}),k=r.found&&n.found?to("generateAbstractMask",x)||{children:[],attributes:{}}:to("generateAbstractIcon",x)||{children:[],attributes:{}},_=k.children,E=k.attributes;return x.children=_,x.attributes=E,s?function(e){var t=e.prefix,n=e.iconName,r=e.children,i=e.attributes,a=e.symbol,o=!0===a?"".concat(t,"-").concat(ta.cssPrefix,"-").concat(n):a;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Qr(Qr({},i),{},{id:o}),children:r}]}]}(x):function(e){var t=e.children,n=e.main,r=e.mask,i=e.attributes,a=e.styles,o=e.transform;if(ca(o)&&n.found&&!r.found){var s={x:n.width/n.height/2,y:.5};i.style=la(Qr(Qr({},a),{},{"transform-origin":"".concat(s.x+o.x/16,"em ").concat(s.y+o.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}(x)}function lo(e){var t=e.content,n=e.width,r=e.height,i=e.transform,a=e.title,o=e.extra,s=e.watchable,u=void 0!==s&&s,l=Qr(Qr(Qr({},o.attributes),a?{title:a}:{}),{},{class:o.classes.join(" ")});u&&(l[Si]="");var c=Qr({},o.styles);ca(i)&&(c.transform=function(e){var t=e.transform,n=e.width,r=void 0===n?16:n,i=e.height,a=void 0===i?16:i,o=e.startCentered,s=void 0!==o&&o,u="";return u+=s&&_i?"translate(".concat(t.x/ra-r/2,"em, ").concat(t.y/ra-a/2,"em) "):s?"translate(calc(-50% + ".concat(t.x/ra,"em), calc(-50% + ").concat(t.y/ra,"em)) "):"translate(".concat(t.x/ra,"em, ").concat(t.y/ra,"em) "),(u+="scale(".concat(t.size/ra*(t.flipX?-1:1),", ").concat(t.size/ra*(t.flipY?-1:1),") "))+"rotate(".concat(t.rotate,"deg) ")}({transform:i,startCentered:!0,width:n,height:r}),c["-webkit-transform"]=c.transform);var f=la(c);f.length>0&&(l.style=f);var d=[];return d.push({tag:"span",attributes:l,children:[t]}),a&&d.push({tag:"span",attributes:{class:"sr-only"},children:[a]}),d}function co(e){var t=e.content,n=e.title,r=e.extra,i=Qr(Qr(Qr({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),a=la(r.styles);a.length>0&&(i.style=a);var o=[];return o.push({tag:"span",attributes:i,children:[t]}),n&&o.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),o}var fo=va.styles;function po(e){var t=e[0],n=e[1],r=ni(e.slice(4),1)[0];return{found:!0,width:t,height:n,icon:Array.isArray(r)?{tag:"g",attributes:{class:"".concat(ta.cssPrefix,"-").concat(Zi)},children:[{tag:"path",attributes:{class:"".concat(ta.cssPrefix,"-").concat($i),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(ta.cssPrefix,"-").concat(Yi),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}}}}var ho={found:!1,width:512,height:512};function mo(e,t){var n=t;return"fa"===t&&null!==ta.styleDefault&&(t=Wa()),new Promise((function(r,i){if(to("missingIconAbstract"),"fa"===n){var a=Ha(e)||{};e=a.iconName||e,t=a.prefix||t}if(e&&t&&fo[t]&&fo[t][e])return r(po(fo[t][e]));!function(e,t){ji||ta.showMissingIcons||!e||Kr.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}(e,t),r(Qr(Qr({},ho),{},{icon:ta.showMissingIcons&&e&&to("missingIconAbstract")||{}}))}))}var vo=function(){},yo=ta.measurePerformance&&xi&&xi.mark&&xi.measure?xi:{mark:vo,measure:vo},go='FA "6.2.0"',bo=function(e){return yo.mark("".concat(go," ").concat(e," begins")),function(){return function(e){yo.mark("".concat(go," ").concat(e," ends")),yo.measure("".concat(go," ").concat(e),"".concat(go," ").concat(e," begins"),"".concat(go," ").concat(e," ends"))}(e)}},wo=function(){};function xo(e){return"string"==typeof(e.getAttribute?e.getAttribute(Si):null)}function ko(e){return bi.createElementNS("http://www.w3.org/2000/svg",e)}function _o(e){return bi.createElement(e)}function Eo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.ceFn,r=void 0===n?"svg"===e.tag?ko:_o:n;if("string"==typeof e)return bi.createTextNode(e);var i=r(e.tag);Object.keys(e.attributes||[]).forEach((function(t){i.setAttribute(t,e.attributes[t])}));var a=e.children||[];return a.forEach((function(e){i.appendChild(Eo(e,{ceFn:r}))})),i}var So={replace:function(e){var t=e[0];if(t.parentNode)if(e[1].forEach((function(e){t.parentNode.insertBefore(Eo(e),t)})),null===t.getAttribute(Si)&&ta.keepOriginalSource){var n=bi.createComment(function(e){var t=" ".concat(e.outerHTML," ");return"".concat(t,"Font Awesome fontawesome.com ")}(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){var t=e[0],n=e[1];if(~sa(t).indexOf(ta.replacementClass))return So.replace(e);var r=new RegExp("".concat(ta.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){var i=n[0].attributes.class.split(" ").reduce((function(e,t){return t===ta.replacementClass||t.match(r)?e.toSvg.push(t):e.toNode.push(t),e}),{toNode:[],toSvg:[]});n[0].attributes.class=i.toSvg.join(" "),0===i.toNode.length?t.removeAttribute("class"):t.setAttribute("class",i.toNode.join(" "))}var a=n.map((function(e){return wa(e)})).join("\n");t.setAttribute(Si,""),t.innerHTML=a}};function Oo(e){e()}function Ao(e,t){var n="function"==typeof t?t:wo;if(0===e.length)n();else{var r=Oo;"async"===ta.mutateApproach&&(r=gi.requestAnimationFrame||Oo),r((function(){var t=!0===ta.autoReplaceSvg?So.replace:So[ta.autoReplaceSvg]||So.replace,r=bo("mutate");e.map(t),r(),n()}))}}var Co=!1;function To(){Co=!0}function No(){Co=!1}var jo=null;function Po(e){if(wi&&ta.observeMutations){var t=e.treeCallback,n=void 0===t?wo:t,r=e.nodeCallback,i=void 0===r?wo:r,a=e.pseudoElementsCallback,o=void 0===a?wo:a,s=e.observeMutationsRoot,u=void 0===s?bi:s;jo=new wi((function(e){if(!Co){var t=Wa();oa(e).forEach((function(e){if("childList"===e.type&&e.addedNodes.length>0&&!xo(e.addedNodes[0])&&(ta.searchPseudoElements&&o(e.target),n(e.target)),"attributes"===e.type&&e.target.parentNode&&ta.searchPseudoElements&&o(e.target.parentNode),"attributes"===e.type&&xo(e.target)&&~Gi.indexOf(e.attributeName))if("class"===e.attributeName&&function(e){var t=e.getAttribute?e.getAttribute(Ai):null,n=e.getAttribute?e.getAttribute(Ci):null;return t&&n}(e.target)){var r=Za(sa(e.target)),a=r.prefix,s=r.iconName;e.target.setAttribute(Ai,a||t),s&&e.target.setAttribute(Ci,s)}else(u=e.target)&&u.classList&&u.classList.contains&&u.classList.contains(ta.replacementClass)&&i(e.target);var u}))}})),ki&&jo.observe(u,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Ro(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce((function(e,t){var n=t.split(":"),r=n[0],i=n.slice(1);return r&&i.length>0&&(e[r]=i.join(":").trim()),e}),{})),n}function Io(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=void 0!==e.innerText?e.innerText.trim():"",i=Za(sa(e));return i.prefix||(i.prefix=Wa()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=function(e,t){return(Ia[e]||{})[t]}(i.prefix,e.innerText)||za(i.prefix,_a(e.innerText))),!i.iconName&&ta.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function Lo(e){var t=oa(e.attributes).reduce((function(e,t){return"class"!==e.name&&"style"!==e.name&&(e[t.name]=t.value),e}),{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return ta.autoA11y&&(n?t["aria-labelledby"]="".concat(ta.replacementClass,"-title-").concat(r||aa()):(t["aria-hidden"]="true",t.focusable="false")),t}function Mo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},n=Io(e),r=n.iconName,i=n.prefix,a=n.rest,o=Lo(e),s=Ja("parseNodeAttributes",{},e),u=t.styleParser?Ro(e):[];return Qr({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:i,transform:ia,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:a,styles:u,attributes:o}},s)}var Bo=va.styles;function Do(e){var t="nest"===ta.autoReplaceSvg?Mo(e,{styleParser:!1}):Mo(e);return~t.extra.classes.indexOf(zi)?to("generateLayersText",e,t):to("generateSvgReplacementMutation",e,t)}var Uo=new Set;function Fo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!ki)return Promise.resolve();var n=bi.documentElement.classList,r=function(e){return n.add("".concat(Ti,"-").concat(e))},i=function(e){return n.remove("".concat(Ti,"-").concat(e))},a=ta.autoFetchSvg?Uo:Ii.map((function(e){return"fa-".concat(e)})).concat(Object.keys(Bo));a.includes("fa")||a.push("fa");var o=[".".concat(zi,":not([").concat(Si,"])")].concat(a.map((function(e){return".".concat(e,":not([").concat(Si,"])")}))).join(", ");if(0===o.length)return Promise.resolve();var s=[];try{s=oa(e.querySelectorAll(o))}catch(e){}if(!(s.length>0))return Promise.resolve();r("pending"),i("complete");var u=bo("onTree"),l=s.reduce((function(e,t){try{var n=Do(t);n&&e.push(n)}catch(e){ji||"MissingIcon"===e.name&&Kr.error(e)}return e}),[]);return new Promise((function(e,n){Promise.all(l).then((function(n){Ao(n,(function(){r("active"),r("complete"),i("pending"),"function"==typeof t&&t(),u(),e()}))})).catch((function(e){u(),n(e)}))}))}function zo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Do(e).then((function(e){e&&Ao([e],t)}))}Ii.map((function(e){Uo.add("fa-".concat(e))})),Object.keys(Mi.classic).map(Uo.add.bind(Uo)),Object.keys(Mi.sharp).map(Uo.add.bind(Uo)),Uo=ri(Uo);var Vo=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?ia:n,i=t.symbol,a=void 0!==i&&i,o=t.mask,s=void 0===o?null:o,u=t.maskId,l=void 0===u?null:u,c=t.title,f=void 0===c?null:c,d=t.titleId,p=void 0===d?null:d,h=t.classes,m=void 0===h?[]:h,v=t.attributes,y=void 0===v?{}:v,g=t.styles,b=void 0===g?{}:g;if(e){var w=e.prefix,x=e.iconName,k=e.icon;return so(Qr({type:"icon"},e),(function(){return eo("beforeDOMElementCreation",{iconDefinition:e,params:t}),ta.autoA11y&&(f?y["aria-labelledby"]="".concat(ta.replacementClass,"-title-").concat(p||aa()):(y["aria-hidden"]="true",y.focusable="false")),uo({icons:{main:po(k),mask:s?po(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:w,iconName:x,transform:Qr(Qr({},ia),r),symbol:a,title:f,maskId:l,titleId:p,extra:{attributes:y,styles:b,classes:m}})}))}},Ho={mixout:function(){return{icon:(e=Vo,function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(t||{}).icon?t:no(t||{}),i=n.mask;return i&&(i=(i||{}).icon?i:no(i||{})),e(r,Qr(Qr({},n),{},{mask:i}))})};var e},hooks:function(){return{mutationObserverCallbacks:function(e){return e.treeCallback=Fo,e.nodeCallback=zo,e}}},provides:function(e){e.i2svg=function(e){var t=e.node,n=void 0===t?bi:t,r=e.callback;return Fo(n,void 0===r?function(){}:r)},e.generateSvgReplacementMutation=function(e,t){var n=t.iconName,r=t.title,i=t.titleId,a=t.prefix,o=t.transform,s=t.symbol,u=t.mask,l=t.maskId,c=t.extra;return new Promise((function(t,f){Promise.all([mo(n,a),u.iconName?mo(u.iconName,u.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then((function(u){var f=ni(u,2),d=f[0],p=f[1];t([e,uo({icons:{main:d,mask:p},prefix:a,iconName:n,transform:o,symbol:s,maskId:l,title:r,titleId:i,extra:c,watchable:!0})])})).catch(f)}))},e.generateAbstractIcon=function(e){var t,n=e.children,r=e.attributes,i=e.main,a=e.transform,o=la(e.styles);return o.length>0&&(r.style=o),ca(a)&&(t=to("generateAbstractTransformGrouping",{main:i,transform:a,containerWidth:i.width,iconWidth:i.width})),n.push(t||i.icon),{children:n,attributes:r}}}},Wo={mixout:function(){return{layer:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.classes,r=void 0===n?[]:n;return so({type:"layer"},(function(){eo("beforeDOMElementCreation",{assembler:e,params:t});var n=[];return e((function(e){Array.isArray(e)?e.map((function(e){n=n.concat(e.abstract)})):n=n.concat(e.abstract)})),[{tag:"span",attributes:{class:["".concat(ta.cssPrefix,"-layers")].concat(ri(r)).join(" ")},children:n}]}))}}}},qo={mixout:function(){return{counter:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.title,r=void 0===n?null:n,i=t.classes,a=void 0===i?[]:i,o=t.attributes,s=void 0===o?{}:o,u=t.styles,l=void 0===u?{}:u;return so({type:"counter",content:e},(function(){return eo("beforeDOMElementCreation",{content:e,params:t}),co({content:e.toString(),title:r,extra:{attributes:s,styles:l,classes:["".concat(ta.cssPrefix,"-layers-counter")].concat(ri(a))}})}))}}}},Go={mixout:function(){return{text:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?ia:n,i=t.title,a=void 0===i?null:i,o=t.classes,s=void 0===o?[]:o,u=t.attributes,l=void 0===u?{}:u,c=t.styles,f=void 0===c?{}:c;return so({type:"text",content:e},(function(){return eo("beforeDOMElementCreation",{content:e,params:t}),lo({content:e,transform:Qr(Qr({},ia),r),title:a,extra:{attributes:l,styles:f,classes:["".concat(ta.cssPrefix,"-layers-text")].concat(ri(s))}})}))}}},provides:function(e){e.generateLayersText=function(e,t){var n=t.title,r=t.transform,i=t.extra,a=null,o=null;if(_i){var s=parseInt(getComputedStyle(e).fontSize,10),u=e.getBoundingClientRect();a=u.width/s,o=u.height/s}return ta.autoA11y&&!n&&(i.attributes["aria-hidden"]="true"),Promise.resolve([e,lo({content:e.innerHTML,width:a,height:o,transform:r,title:n,extra:i,watchable:!0})])}}},Zo=new RegExp('"',"ug"),Yo=[1105920,1112319];function $o(e,t){var n="".concat("data-fa-pseudo-element-pending").concat(t.replace(":","-"));return new Promise((function(r,i){if(null!==e.getAttribute(n))return r();var a=oa(e.children).filter((function(e){return e.getAttribute(Oi)===t}))[0],o=gi.getComputedStyle(e,t),s=o.getPropertyValue("font-family").match(Vi),u=o.getPropertyValue("font-weight"),l=o.getPropertyValue("content");if(a&&!s)return e.removeChild(a),r();if(s&&"none"!==l&&""!==l){var c=o.getPropertyValue("content"),f=~["Sharp"].indexOf(s[2])?Ri:Pi,d=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(s[2])?Bi[f][s[2].toLowerCase()]:Hi[f][u],p=function(e){var t=e.replace(Zo,""),n=function(e,t){var n,r=e.length,i=e.charCodeAt(0);return i>=55296&&i<=56319&&r>1&&(n=e.charCodeAt(1))>=56320&&n<=57343?1024*(i-55296)+n-56320+65536:i}(t),r=n>=Yo[0]&&n<=Yo[1],i=2===t.length&&t[0]===t[1];return{value:_a(i?t[0]:t),isSecondary:r||i}}(c),h=p.value,m=p.isSecondary,v=s[0].startsWith("FontAwesome"),y=za(d,h),g=y;if(v){var b=function(e){var t=Ma[e],n=za("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}(h);b.iconName&&b.prefix&&(y=b.iconName,d=b.prefix)}if(!y||m||a&&a.getAttribute(Ai)===d&&a.getAttribute(Ci)===g)r();else{e.setAttribute(n,g),a&&e.removeChild(a);var w={iconName:null,title:null,titleId:null,prefix:null,transform:ia,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},x=w.extra;x.attributes[Oi]=t,mo(y,d).then((function(i){var a=uo(Qr(Qr({},w),{},{icons:{main:i,mask:{prefix:null,iconName:null,rest:[]}},prefix:d,iconName:g,extra:x,watchable:!0})),o=bi.createElement("svg");"::before"===t?e.insertBefore(o,e.firstChild):e.appendChild(o),o.outerHTML=a.map((function(e){return wa(e)})).join("\n"),e.removeAttribute(n),r()})).catch(i)}}else r()}))}function Ko(e){return Promise.all([$o(e,"::before"),$o(e,"::after")])}function Xo(e){return!(e.parentNode===document.head||~Ni.indexOf(e.tagName.toUpperCase())||e.getAttribute(Oi)||e.parentNode&&"svg"===e.parentNode.tagName)}function Qo(e){if(ki)return new Promise((function(t,n){var r=oa(e.querySelectorAll("*")).filter(Xo).map(Ko),i=bo("searchPseudoElements");To(),Promise.all(r).then((function(){i(),No(),t()})).catch((function(){i(),No(),n()}))}))}var Jo=!1,es=function(e){return e.toLowerCase().split(" ").reduce((function(e,t){var n=t.toLowerCase().split("-"),r=n[0],i=n.slice(1).join("-");if(r&&"h"===i)return e.flipX=!0,e;if(r&&"v"===i)return e.flipY=!0,e;if(i=parseFloat(i),isNaN(i))return e;switch(r){case"grow":e.size=e.size+i;break;case"shrink":e.size=e.size-i;break;case"left":e.x=e.x-i;break;case"right":e.x=e.x+i;break;case"up":e.y=e.y-i;break;case"down":e.y=e.y+i;break;case"rotate":e.rotate=e.rotate+i}return e}),{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},ts={x:0,y:0,width:"100%",height:"100%"};function ns(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}!function(e,t){var n=t.mixoutsTo;$a=e,Ka={},Object.keys(Xa).forEach((function(e){-1===Qa.indexOf(e)&&delete Xa[e]})),$a.forEach((function(e){var t=e.mixout?e.mixout():{};if(Object.keys(t).forEach((function(e){"function"==typeof t[e]&&(n[e]=t[e]),"object"===Jr(t[e])&&Object.keys(t[e]).forEach((function(r){n[e]||(n[e]={}),n[e][r]=t[e][r]}))})),e.hooks){var r=e.hooks();Object.keys(r).forEach((function(e){Ka[e]||(Ka[e]=[]),Ka[e].push(r[e])}))}e.provides&&e.provides(Xa)}))}([ha,Ho,Wo,qo,Go,{hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=Qo,e}}},provides:function(e){e.pseudoElements2svg=function(e){var t=e.node,n=void 0===t?bi:t;ta.searchPseudoElements&&Qo(n)}}},{mixout:function(){return{dom:{unwatch:function(){To(),Jo=!0}}}},hooks:function(){return{bootstrap:function(){Po(Ja("mutationObserverCallbacks",{}))},noAuto:function(){jo&&jo.disconnect()},watch:function(e){var t=e.observeMutationsRoot;Jo?No():Po(Ja("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}},{mixout:function(){return{parse:{transform:function(e){return es(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-transform");return n&&(e.transform=es(n)),e}}},provides:function(e){e.generateAbstractTransformGrouping=function(e){var t=e.main,n=e.transform,r=e.containerWidth,i=e.iconWidth,a={transform:"translate(".concat(r/2," 256)")},o="translate(".concat(32*n.x,", ").concat(32*n.y,") "),s="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),u="rotate(".concat(n.rotate," 0 0)"),l={outer:a,inner:{transform:"".concat(o," ").concat(s," ").concat(u)},path:{transform:"translate(".concat(i/2*-1," -256)")}};return{tag:"g",attributes:Qr({},l.outer),children:[{tag:"g",attributes:Qr({},l.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:Qr(Qr({},t.icon.attributes),l.path)}]}]}}}},{hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-mask"),r=n?Za(n.split(" ").map((function(e){return e.trim()}))):{prefix:null,iconName:null,rest:[]};return r.prefix||(r.prefix=Wa()),e.mask=r,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides:function(e){e.generateAbstractMask=function(e){var t,n=e.children,r=e.attributes,i=e.main,a=e.mask,o=e.maskId,s=e.transform,u=i.width,l=i.icon,c=a.width,f=a.icon,d=function(e){var t=e.transform,n=e.iconWidth,r={transform:"translate(".concat(e.containerWidth/2," 256)")},i="translate(".concat(32*t.x,", ").concat(32*t.y,") "),a="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),o="rotate(".concat(t.rotate," 0 0)");return{outer:r,inner:{transform:"".concat(i," ").concat(a," ").concat(o)},path:{transform:"translate(".concat(n/2*-1," -256)")}}}({transform:s,containerWidth:c,iconWidth:u}),p={tag:"rect",attributes:Qr(Qr({},ts),{},{fill:"white"})},h=l.children?{children:l.children.map(ns)}:{},m={tag:"g",attributes:Qr({},d.inner),children:[ns(Qr({tag:l.tag,attributes:Qr(Qr({},l.attributes),d.path)},h))]},v={tag:"g",attributes:Qr({},d.outer),children:[m]},y="mask-".concat(o||aa()),g="clip-".concat(o||aa()),b={tag:"mask",attributes:Qr(Qr({},ts),{},{id:y,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[p,v]},w={tag:"defs",children:[{tag:"clipPath",attributes:{id:g},children:(t=f,"g"===t.tag?t.children:[t])},b]};return n.push(w,{tag:"rect",attributes:Qr({fill:"currentColor","clip-path":"url(#".concat(g,")"),mask:"url(#".concat(y,")")},ts)}),{children:n,attributes:r}}}},{provides:function(e){var t=!1;gi.matchMedia&&(t=gi.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){var e=[],n={fill:"currentColor"},r={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};e.push({tag:"path",attributes:Qr(Qr({},n),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var i=Qr(Qr({},r),{},{attributeName:"opacity"}),a={tag:"circle",attributes:Qr(Qr({},n),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||a.children.push({tag:"animate",attributes:Qr(Qr({},r),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Qr(Qr({},i),{},{values:"1;0;1;1;0;1;"})}),e.push(a),e.push({tag:"path",attributes:Qr(Qr({},n),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:Qr(Qr({},i),{},{values:"1;0;0;0;0;1;"})}]}),t||e.push({tag:"path",attributes:Qr(Qr({},n),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:Qr(Qr({},i),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:e}}}},{hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-symbol"),r=null!==n&&(""===n||n);return e.symbol=r,e}}}}],{mixoutsTo:ao});var rs=ao.parse,is=ao.icon,as=n(5192),os=n.n(as),ss=n(8466);function us(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ls(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?us(Object(n),!0).forEach((function(t){fs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):us(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cs(e){return(cs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ds(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ps(e){return function(e){if(Array.isArray(e))return hs(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return hs(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hs(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hs(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ms(e){return t=e,(t-=0)===t?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1);var t}var vs=["style"];function ys(e){return e.split(";").map((function(e){return e.trim()})).filter((function(e){return e})).reduce((function(e,t){var n,r=t.indexOf(":"),i=ms(t.slice(0,r)),a=t.slice(r+1).trim();return i.startsWith("webkit")?e[(n=i,n.charAt(0).toUpperCase()+n.slice(1))]=a:e[i]=a,e}),{})}var gs=!1;try{gs=!0}catch(e){}function bs(e){return e&&"object"===cs(e)&&e.prefix&&e.iconName&&e.icon?e:rs.icon?rs.icon(e):null===e?null:e&&"object"===cs(e)&&e.prefix&&e.iconName?e:Array.isArray(e)&&2===e.length?{prefix:e[0],iconName:e[1]}:"string"==typeof e?{prefix:"fas",iconName:e}:void 0}function ws(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?fs({},e,t):{}}var xs=a.forwardRef((function(e,t){var n=e.icon,r=e.mask,i=e.symbol,a=e.className,o=e.title,s=e.titleId,u=e.maskId,l=bs(n),c=ws("classes",[].concat(ps(function(e){var t,n=e.beat,r=e.fade,i=e.beatFade,a=e.bounce,o=e.shake,s=e.flash,u=e.spin,l=e.spinPulse,c=e.spinReverse,f=e.pulse,d=e.fixedWidth,p=e.inverse,h=e.border,m=e.listItem,v=e.flip,y=e.size,g=e.rotation,b=e.pull,w=(fs(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":i,"fa-bounce":a,"fa-shake":o,"fa-flash":s,"fa-spin":u,"fa-spin-reverse":c,"fa-spin-pulse":l,"fa-pulse":f,"fa-fw":d,"fa-inverse":p,"fa-border":h,"fa-li":m,"fa-flip":!0===v,"fa-flip-horizontal":"horizontal"===v||"both"===v,"fa-flip-vertical":"vertical"===v||"both"===v},"fa-".concat(y),null!=y),fs(t,"fa-rotate-".concat(g),null!=g&&0!==g),fs(t,"fa-pull-".concat(b),null!=b),fs(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(w).map((function(e){return w[e]?e:null})).filter((function(e){return e}))}(e)),ps(a.split(" ")))),f=ws("transform","string"==typeof e.transform?rs.transform(e.transform):e.transform),d=ws("mask",bs(r)),p=is(l,ls(ls(ls(ls({},c),f),d),{},{symbol:i,title:o,titleId:s,maskId:u}));if(!p)return function(){var e;!gs&&ss&&"function"==typeof ss.error&&(e=ss).error.apply(e,arguments)}("Could not find icon",l),null;var h=p.abstract,m={ref:t};return Object.keys(e).forEach((function(t){xs.defaultProps.hasOwnProperty(t)||(m[t]=e[t])})),ks(h[0],m)}));xs.displayName="FontAwesomeIcon",xs.propTypes={beat:os().bool,border:os().bool,beatFade:os().bool,bounce:os().bool,className:os().string,fade:os().bool,flash:os().bool,mask:os().oneOfType([os().object,os().array,os().string]),maskId:os().string,fixedWidth:os().bool,inverse:os().bool,flip:os().oneOf([!0,!1,"horizontal","vertical","both"]),icon:os().oneOfType([os().object,os().array,os().string]),listItem:os().bool,pull:os().oneOf(["right","left"]),pulse:os().bool,rotation:os().oneOf([0,90,180,270]),shake:os().bool,size:os().oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:os().bool,spinPulse:os().bool,spinReverse:os().bool,symbol:os().oneOfType([os().bool,os().string]),title:os().string,titleId:os().string,transform:os().oneOfType([os().string,os().object]),swapOpacity:os().bool},xs.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1};var ks=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof n)return n;var i=(n.children||[]).map((function(n){return e(t,n)})),a=Object.keys(n.attributes||{}).reduce((function(e,t){var r=n.attributes[t];switch(t){case"class":e.attrs.className=r,delete n.attributes.class;break;case"style":e.attrs.style=ys(r);break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=r:e.attrs[ms(t)]=r}return e}),{attrs:{}}),o=r.style,s=void 0===o?{}:o,u=ds(r,vs);return a.attrs.style=ls(ls({},a.attrs.style),s),t.apply(void 0,[n.tag,ls(ls({},a.attrs),u)].concat(ps(i)))}.bind(null,a.createElement);function _s(e){var t=(0,a.useContext)(S).state,n=l((0,a.useState)(!1),2),r=n[0],i=n[1],o=function(){var n=J(X().mark((function n(){var r;return X().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:e.eventName&&pxt.tickEvent(e.eventName),null!==(r=t.gameState)&&void 0!==r&&r.joinCode&&(navigator.clipboard.writeText(e.copyValue),i(!0),e.toastMessage&&_(D({type:"success",text:e.toastMessage,icon:"✅",timeoutMs:5e3})));case 2:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}();return(0,a.useEffect)((function(){if(r){var e=setTimeout((function(){i(!1)}),2500);return function(){clearTimeout(e)}}}),[r]),(0,E.jsxs)("button",{onClick:o,title:e.title,className:"tw-flex tw-items-center tw-align-middle",children:[e.label&&(0,E.jsx)("span",{className:"tw-mr-1 hover:tw-opacity-80",children:e.label}),!r&&(0,E.jsx)(xs,{icon:Gr,className:"tw-text-[65%] hover:tw-scale-110 tw-ease-linear tw-duration-[50ms]"}),r&&(0,E.jsx)(xs,{icon:$r,className:"tw-text-[65%] tw-text-green-600"})]})}function Es(e){var t=e.particle.index,n=(0,a.useContext)(S).state.gameState,r=null==n?void 0:n.reactionIconOverrides,i=ir[t].emoji,o=(0,a.useMemo)((function(){var e=1.25+1.25*Math.random(),t=3*e+10*Math.random();return{flyUpDuration:e,rotationDuration:3+.5*Math.random(),rotationAnim:Math.random()>.5?"reaction-rotate-left":"reaction-rotate-right",horzAnim:Math.random()>.5?"reaction-fly-left":"reaction-fly-right",flyHorzDuration:t}}),[]),s=null==r?void 0:r[t+1],u=s?(0,E.jsx)("img",{className:"pixel-art-image tw-w-[100%]",src:s,alt:lf("Game reaction image {0}",t+1)}):i;return(0,E.jsx)("div",{className:"tw-absolute tw-select-none tw-pointer-events-none tw-z-[100]",style:{animation:"reaction-fly-up linear ".concat(o.flyUpDuration,"s forwards,\n ").concat(o.horzAnim," linear ").concat(o.flyHorzDuration,"s forwards"),width:s?"1.5rem":void 0,height:s?"1.5rem":void 0},children:(0,E.jsx)("div",{className:"tw-select-none tw-pointer-events-none",style:{animation:"".concat(o.rotationAnim," ease-in-out ").concat(o.rotationDuration,"s infinite")},children:u})})}function Ss(e){var t=(0,a.useContext)(S).state,n=e.clientId,r=t.reactions[n],i=l((0,a.useState)([]),2),o=i[0],s=i[1];return(0,a.useEffect)((function(){if(r&&!o.find((function(e){return e.id===r.id}))){var e={id:r.id,index:r.index,startTime:Date.now()};s((function(t){return[].concat(w(t),[e])}))}}),[r,o,s]),(0,a.useEffect)((function(){var e=setInterval((function(){var e=Date.now();s(o.filter((function(t){return e-t.startTime<5e3})))}),1e3);return function(){return clearInterval(e)}}),[o,s]),(0,E.jsx)("div",{className:"tw-absolute tw-pointer-events-none",style:{transform:"translateY(-20px)"},children:(0,E.jsx)("div",{className:"tw-flex tw-flex-row tw-justify-center",children:o.map((function(e){return(0,E.jsx)(Es,{particle:e},e.id)}))})})}function Os(e){var t=e.slot,n=e.dataUri;return n?(0,E.jsx)("img",{className:"pixel-art-image tw-w-[65%]",style:{filter:0===t?"grayscale(1)":void 0},src:n,alt:lf("User set icon for player {0}",t)}):(0,E.jsx)("svg",{width:"25",height:"29",viewBox:"0 0 25 29",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,E.jsx)("path",{style:{fill:"rgb(var(--slot-".concat(t,"-color))")},d:"M12.7544 14.686C16.6204 14.686 19.7544 11.552 19.7544 7.68602C19.7544 3.82003 16.6204 0.686035 12.7544 0.686035C8.8884 0.686035 5.75439 3.82003 5.75439 7.68602C5.75439 11.552 8.8884 14.686 12.7544 14.686ZM4.25439 16.686C2.32136 16.686 0.754339 18.2531 0.754395 20.1861L0.754409 20.6861C0.754421 23.0795 2.27704 25.1034 4.43931 26.4794C6.61345 27.863 9.55594 28.686 12.7543 28.686C15.9527 28.686 18.8952 27.863 21.0694 26.4795C23.2317 25.1034 24.7544 23.0795 24.7544 20.6861V20.186C24.7544 18.253 23.1874 16.686 21.2544 16.686H4.25439Z"})})}function As(e){var t=e.children,n=e.visible,r=e.className,i=e.ignoreRefs,o=e.onClickedOutside,s=(0,a.useRef)(null),u=(0,a.useCallback)((function(e){s.current=e}),[]);return function(e,t){(0,a.useEffect)((function(){var n=function(n){var r,i=ee(e);try{for(i.s();!(r=i.n()).done;){var a=r.value,o=null==a?void 0:a.current;if(o&&o.contains(n.target))return}}catch(e){i.e(e)}finally{i.f()}null==t||t()};return document.addEventListener("mousedown",n),function(){document.removeEventListener("mousedown",n)}}),w(e))}([s].concat(w(i||[])),(function(){return o()})),n?(0,E.jsx)("div",{ref:u,className:r,children:t}):null}function Cs(e){var t=e.children,n=e.visible,r=e.ignoreRefs,i=e.onClickedOutside;return(0,E.jsx)(As,{className:"tw-absolute tw-z-50 tw-translate-y-[-110%] tw-translate-x-[-50%] tw-rounded-lg tw-border-2 tw-border-gray-100",visible:n,ignoreRefs:r,onClickedOutside:i,children:(0,E.jsx)("div",{className:"tw-flex tw-flex-row tw-gap-1 tw-p-2 tw-bg-white tw-drop-shadow-xl tw-rounded-md",children:t})})}function Ts(e){var t=(0,a.useContext)(S),n=t.state,r=t.dispatch,i=n.presence,o=n.clientRole,s=n.playerSlot,u=n.gameState,c=null==u?void 0:u.presenceIconOverrides,f=e.slot,d=l((0,a.useState)(!1),2),p=d[0],h=d[1],m=(0,a.useRef)(null),v=(0,a.useCallback)((function(e){m.current=e}),[]),y=(0,a.useMemo)((function(){return(null==i?void 0:i.users)&&i.users.filter((function(e){return e.slot<5}))}),[i]),g=function(){var e=J(X().mark((function e(){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:pxt.tickEvent("mp.leavegame",{role:o}),h(!1),r(H("leave-game"));case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),b=y.find((function(e){return e.slot===f})),w=function(){var e="host"===o,t=1===f,n=f===s,i=y.filter((function(e){return e.slot===f})).shift();return e&&n?(0,E.jsx)(Cs,{visible:p,ignoreRefs:[m],onClickedOutside:function(){return h(!1)},children:(0,E.jsx)(re,{className:"tw-m-0 tw-py-2 tw-bg-red-600 tw-text-white",label:lf("End the game"),title:lf("End the game"),onClick:function(){return g()}})}):e&&!t&&i?(0,E.jsx)(Cs,{visible:p,ignoreRefs:[m],onClickedOutside:function(){return h(!1)},children:(0,E.jsx)(re,{className:"tw-m-0 tw-py-2 tw-bg-red-600 tw-text-white",label:lf("Remove from game"),title:lf("Remove from game"),onClick:function(){return function(e){pxt.tickEvent("mp.kickplayer"),h(!1);var t=y.filter((function(t){return t.slot===e})).shift();t&&r(H("kick-player",{clientId:t.id}))}(f)}})}):!e&&n?(0,E.jsx)(Cs,{visible:p,ignoreRefs:[m],onClickedOutside:function(){return h(!1)},children:(0,E.jsx)(re,{className:"tw-m-0 tw-py-2 tw-bg-red-600 tw-text-white",label:lf("Leave game"),title:lf("Leave game"),onClick:function(){return g()}})}):null}(),x=!b,k=f===s,_=null==c?void 0:c[f];return(0,E.jsxs)("div",{children:[(0,E.jsx)("div",{className:"tw-px-[50%]",children:w}),(0,E.jsx)(re,{className:"tw-rounded-full tw-m-0 tw-p-0",hardDisabled:!w,label:(0,E.jsxs)("div",{className:"tw-flex tw-select-none tw-text-black\n tw-font-bold tw-rounded-full tw-h-11 tw-border-2\n tw-w-11 tw-justify-center tw-items-center\n tw-text-slot-".concat(f,"-color"),style:{backgroundColor:"rgba(var(--slot-".concat(x?0:f,"-color),0.1)"),borderColor:"rgb(var(--slot-".concat(x?0:f,"-color))")},children:[(0,E.jsx)(Os,{slot:x?0:f,dataUri:_}),b&&(0,E.jsx)(Ss,{clientId:b.id}),k&&(0,E.jsx)("div",{className:"tw-absolute tw-translate-y-[110%]",children:(0,E.jsx)("div",{className:"tw-z-10 tw-border tw-rounded-xl tw-text-xs tw-px-2 tw-font-medium tw-uppercase",style:{backgroundColor:"rgb(var(--you-tag-bg-color))",borderColor:"rgb(var(--you-tag-border-color))"},children:lf("you")})})]}),title:x?lf("Player {0} (empty)",f):lf("Player {0}",f),onClick:function(){return h(!p)},buttonRef:v})]})}function Ns(){return(0,E.jsx)("div",{className:"tw-flex tw-flex-row tw-items-center tw-justify-center tw-gap-2 tw-border-l-2 tw-pl-2 tw-border-slot-0-color",children:[1,2,3,4].map((function(e){return(0,E.jsx)(Ts,{slot:e},e)}))})}function js(e){return(0,E.jsx)("svg",{className:e.className,width:"29",height:"29",viewBox:"0 0 29 29",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,E.jsx)("path",{style:{fill:"rgb(var(--reaction-color))"},d:"M10.3491 13.686C11.4537 13.686 12.3491 12.7906 12.3491 11.686C12.3491 10.5815 11.4537 9.68604 10.3491 9.68604C9.24455 9.68604 8.34912 10.5815 8.34912 11.686C8.34912 12.7906 9.24455 13.686 10.3491 13.686ZM20.3491 11.686C20.3491 12.7906 19.4537 13.686 18.3491 13.686C17.2446 13.686 16.3491 12.7906 16.3491 11.686C16.3491 10.5815 17.2446 9.68604 18.3491 9.68604C19.4537 9.68604 20.3491 10.5815 20.3491 11.686ZM7.90212 17.7916C8.39359 17.5459 8.99068 17.7428 9.23997 18.2313L9.24349 18.2378C9.24901 18.2478 9.26019 18.2677 9.27736 18.296C9.31176 18.3526 9.36981 18.4425 9.45402 18.5548C9.62278 18.7798 9.8937 19.0909 10.2865 19.4052C11.0595 20.0235 12.3423 20.686 14.3493 20.686C16.3564 20.686 17.6392 20.0235 18.4121 19.4052C18.805 19.0909 19.0759 18.7798 19.2446 18.5548C19.3289 18.4425 19.3869 18.3526 19.4213 18.296C19.4385 18.2677 19.4497 18.2478 19.4552 18.2378L19.4587 18.2313C19.708 17.7428 20.3051 17.5459 20.7965 17.7916C21.2905 18.0386 21.4908 18.6393 21.2438 19.1333L21.2432 19.1343L21.2426 19.1355L21.2414 19.138L21.2384 19.1439L21.2306 19.1589C21.2246 19.1704 21.2169 19.1847 21.2076 19.2017C21.1889 19.2356 21.1635 19.2802 21.1309 19.3339C21.0657 19.4413 20.9714 19.5858 20.8446 19.7548C20.5915 20.0923 20.2062 20.5312 19.6615 20.9669C18.5595 21.8485 16.8423 22.686 14.3493 22.686C11.8564 22.686 10.1392 21.8485 9.03714 20.9669C8.49247 20.5312 8.10714 20.0923 7.85402 19.7548C7.72729 19.5858 7.633 19.4413 7.56779 19.3339C7.53515 19.2802 7.50972 19.2356 7.49106 19.2017C7.48173 19.1847 7.47409 19.1704 7.46808 19.1589L7.46029 19.1439L7.4573 19.138L7.45603 19.1355L7.45545 19.1343L7.45491 19.1333C7.20793 18.6393 7.40814 18.0386 7.90212 17.7916ZM14.3491 0.686035C6.61713 0.686035 0.349121 6.95405 0.349121 14.686C0.349121 22.418 6.61713 28.686 14.3491 28.686C22.0811 28.686 28.3491 22.418 28.3491 14.686C28.3491 6.95405 22.0811 0.686035 14.3491 0.686035ZM2.34912 14.686C2.34912 8.05862 7.7217 2.68604 14.3491 2.68604C20.9765 2.68604 26.3491 8.05862 26.3491 14.686C26.3491 21.3135 20.9765 26.686 14.3491 26.686C7.7217 26.686 2.34912 21.3135 2.34912 14.686Z"})})}function Ps(){var e=(0,a.useContext)(S).state,t=l((0,a.useState)(!1),2),n=t[0],r=t[1],i=(0,a.useRef)(null),o=(0,a.useCallback)((function(e){i.current=e}),[]),s=e.gameState,u=null==s?void 0:s.reactionIconOverrides,c=function(){var e=J(X().mark((function e(t){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,or(t);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();(0,a.useEffect)((function(){var e=function(e){if("messagepacket"===e.data.type&&e.data.channel){var t,n=null===(t=/keydown-(\d)/i.exec(e.data.channel))||void 0===t?void 0:t[1];if(!n)return;var r=parseInt(n)-1;ir[r]&&or(r)}},t=function(e){var t=parseInt(e.key)-1;ir[t]&&or(t)};return window.addEventListener("message",e),window.addEventListener("keydown",t),function(){window.removeEventListener("message",e),window.removeEventListener("keydown",t)}}));var f=pxt.BrowserUtils.isMobile()||pxt.BrowserUtils.isIOS();return(0,E.jsxs)("div",{children:[(0,E.jsx)(As,{className:"tw-absolute tw-translate-y-[-120%]",visible:n,ignoreRefs:[i],onClickedOutside:function(){return r(!1)},children:(0,E.jsx)("div",{className:"tw-flex tw-flex-col tw-bg-white tw-drop-shadow-xl tw-rounded-md tw-border-2 tw-border-gray-100",children:(0,E.jsx)("div",{className:"tw-flex tw-flex-row tw-gap-3 tw-p-2 tw-pb-3 tw-pr-3",children:ir.map((function(e,t){var n=null==u?void 0:u[t+1],r=n?(0,E.jsx)("img",{className:"pixel-art-image tw-w-6",src:n,alt:lf("Game reaction image {0}",t+1)}):e.emoji;return(0,E.jsx)(re,{className:"tw-flex tw-items-center tw-justify-center tw-m-0 tw-p-0 tw-cursor-pointer tw-select-none tw-scale-110 hover:tw-scale-125 tw-ease-linear tw-duration-[50ms] tw-h-8 tw-w-8 tw-text-2xl",label:(0,E.jsxs)("div",{children:[(0,E.jsx)("div",{children:r}),!f&&(0,E.jsx)("div",{className:"tw-text-xs tw-absolute tw-bottom-[-5px] tw-right-[-5px] tw-text-white tw-bg-gray-400 tw-rounded-sm tw-border-[1px] tw-border-solid tw-border-gray-500 tw-drop-shadow-lg tw-px-1 tw-leading-tight",children:t+1})]}),title:e.name,onClick:function(){return c(t)}},t+1)}))})})}),(0,E.jsx)(re,{label:(0,E.jsx)(js,{className:"hover:tw-scale-125 tw-ease-linear tw-duration-[50ms]"}),title:lf("Reactions"),className:"tw-flex tw-items-center tw-justify-center\n tw-select-none tw-border-2 tw-reaction-color\n tw-rounded-full tw-h-11 tw-w-11 tw-text-2xl !tw-m-0 !tw-p-0",style:{backgroundColor:"rgba(var(--reaction-color),0.1)"},onClick:function(){var e=!n;e&&pxt.tickEvent("mp.reactions.open"),r(e)},buttonRef:function(e){o(e)}})]})}function Rs(){return(0,E.jsxs)("div",{className:"tw-flex tw-flex-row tw-space-x-2 tw-items-center tw-align-middle tw-justify-center",children:[(0,E.jsx)(Ps,{}),(0,E.jsx)(Ns,{})]})}function Is(){var e,t=(0,a.useContext)(S),n=t.state,r=t.dispatch,i=function(){var e=J(X().mark((function e(){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return pxt.tickEvent("mp.hostlobby.startgame"),r({type:"CLEAR_MODAL"}),e.next=4,Wn();case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),o=null===(e=n.gameState)||void 0===e?void 0:e.joinCode;if(!o)return null;var s=lf("Have your friend go to {0} and enter code","{0}").split("{0}"),u=pxt.multiplayer.SHORT_LINK(),l=(null==o?void 0:o.slice(0,3))+" "+(null==o?void 0:o.slice(3)),c=pxt.multiplayer.makeJoinLink(o,!0);return(0,E.jsx)("div",{className:"tw-bg-white tw-shadow-lg tw-rounded-lg tw-m-1 tw-min-w-[17rem]",children:(0,E.jsxs)("div",{className:"tw-flex tw-flex-col tw-gap-1 tw-items-center tw-justify-between tw-py-[3rem] tw-px-3 sm:tw-px-14 md:tw-px-[7rem]",children:[(0,E.jsxs)("div",{className:"tw-mt-3 tw-text-lg tw-text-center tw-text-neutral-700",children:[s[0],(0,E.jsx)(oe,{href:u,target:"_blank",className:"tw-text-primary-color tw-font-bold hover:tw-text-orange-300",children:u}),s[1]]}),(0,E.jsx)("div",{className:"tw-text-4xl tw-mt-4 tw-flex tw-flex-row tw-items-center tw-ml-2",children:(0,E.jsx)(_s,{copyValue:c,title:lf("Copy join link"),eventName:"mp.hostlobby.copyjoinlink",label:(0,E.jsx)("span",{className:"tw-font-bold tw-text-neutral-700 tw-mr-1 tw-whitespace-nowrap",children:l}),toastMessage:lf("Join link copied")})}),(0,E.jsxs)("div",{className:"tw-flex tw-flex-col tw-items-center tw-mt-5 tw-text-sm tw-gap-1 tw-max-h-24 md:tw-max-h-36",children:[(0,E.jsx)(qr,{value:c}),(0,E.jsx)("div",{className:"tw-hidden md:tw-block",children:lf("or scan with phone")})]}),(0,E.jsx)(re,{className:"primary tw-mt-5 tw-font-sans tw-mr-0",label:lf("Start Game"),title:lf("Start Game"),onClick:i}),(0,E.jsx)(oe,{href:"/multiplayer#safety",target:"_blank",className:"tw-text-sm tw-mt-1 tw-mb-7",children:lf("Multiplayer Online Safety")}),(0,E.jsx)(Rs,{})]})})}function Ls(){var e,t=null===(e=(0,a.useContext)(S).state.gameState)||void 0===e?void 0:e.joinCode,n=t?pxt.multiplayer.makeJoinLink(t,!0):"";return(0,E.jsx)("div",{children:t&&(0,E.jsxs)("div",{className:"tw-flex tw-flex-row tw-items-center tw-align-middle",children:[(0,E.jsx)("div",{className:"tw-font-bold tw-mr-1",children:lf("Code:")}),(0,E.jsx)(_s,{copyValue:n,title:lf("Copy join link"),eventName:"mp.copyjoinlink",label:t,toastMessage:lf("Join link copied")})]})})}function Ms(){return(0,E.jsx)("div",{className:"tw-bg-white tw-shadow-lg tw-rounded-lg tw-m-1",children:(0,E.jsxs)("div",{className:"tw-flex tw-flex-col tw-items-center tw-py-[2rem] tw-px-[1.5rem] sm:tw-px-[3.5rem] md:tw-px-[6rem]",children:[(0,E.jsx)("div",{className:"tw-font-bold tw-text-2xl tw-text-neutral-800",children:lf("Waiting for players")}),(0,E.jsx)("div",{className:"tw-mt-3 tw-text-center tw-text-neutral-700",children:lf("Your host will start the game soon!")}),(0,E.jsx)("div",{className:"tw-mt-5",children:(0,E.jsx)(Rs,{})})]})})}function Bs(){var e,t=(c(e={},lf("up"),["↑","W"]),c(e,lf("down"),["↓","S"]),c(e,lf("left"),["←","A"]),c(e,lf("right"),["→","D"]),c(e,"a",["Z",lf("{id:keyboard symbol}space")]),c(e,"b",["X",lf("{id:keyboard symbol}enter")]),e);return(0,E.jsxs)("div",{className:"tw-bg-neutral-50 tw-p-3 tw-border-2 tw-border-neutral-500 tw-border-solid tw-rounded-md tw-drop-shadow-xl",children:[(0,E.jsx)("div",{className:"tw-text-lg tw-mb-2 tw-font-bold",children:lf("Keyboard Controls")}),Object.keys(t).map((function(e,n){return(0,E.jsxs)("div",{className:"keymap-row",children:[t[e].map((function(e,t){return(0,E.jsx)("div",{className:"keymap-key tw-align-middle tw-min-w-[2.5rem] tw-text-center tw-pb-[2.1rem]",children:e},t)})),(0,E.jsx)("span",{className:"keymap-name tw-font-semibold",children:e})]},n)})),(0,E.jsxs)("div",{className:"keymap-row tw-flex tw-flex-row tw-items-center",children:[(0,E.jsx)("div",{className:"keymap-key tw-align-middle tw-min-w-[2.5rem] tw-text-center tw-pb-[2.1rem]",children:"1 - 6"}),(0,E.jsx)("span",{className:"keymap-name tw-font-semibold tw-text-center",children:(0,E.jsx)(js,{})})]})]})}function Ds(){var e=l((0,a.useState)(!1),2),t=e[0],n=e[1],r=(0,a.useRef)(null),i=(0,a.useCallback)((function(e){r.current=e}),[]);return(0,E.jsxs)("div",{children:[(0,E.jsx)(As,{className:"tw-absolute tw-translate-y-[-105%]",visible:t,ignoreRefs:[r],onClickedOutside:function(){return n(!1)},children:(0,E.jsx)(Bs,{})}),(0,E.jsx)(re,{title:lf("Keyboard Controls"),label:lf("Keyboard Controls"),leftIcon:"fas fa-keyboard",buttonRef:i,onClick:function(){pxt.tickEvent("mp.keyboardcontrols"),n(!t)},className:"tw-border-2 tw-border-slate-400 tw-border-solid tw-p-2 tw-bg-slate-100 hover:tw-bg-slate-200 active:tw-bg-slate-300 tw-ease-linear tw-duration-[50ms] tw-pr-1 sm:tw-pr-3"})]})}function Us(){var e,t=null===(e=(0,a.useContext)(S).state.gameState)||void 0===e?void 0:e.gameId,n=t?"".concat(pxt.webConfig.relprefix.replace(/-+$/,""),"#pub:").concat(t):void 0;return n?(0,E.jsx)(re,{leftIcon:"fas fa-bolt",title:lf("Edit Game"),label:(0,E.jsx)("div",{className:"tw-hidden sm:tw-inline tw-m-0 tw-p-0",children:lf("Edit Game")}),onClick:function(){n&&(pxt.tickEvent("mp.editgame"),window.open(n))},className:"tw-border-2 tw-border-slate-400 tw-border-solid tw-p-2 tw-bg-slate-100 hover:tw-bg-slate-200 active:tw-bg-slate-300 tw-ease-linear tw-duration-[50ms] tw-pr-1 sm:tw-pr-3"}):null}function Fs(){var e=(0,a.useContext)(S).state;return(0,a.useEffect)((function(){var t;null===(t=Jt())||void 0===t||t.mute(e.muted)}),[e.muted]),(0,E.jsx)(re,{leftIcon:e.muted?"fas fa-volume-mute":"fas fa-volume-up",title:lf("Toggle Mute"),className:"tw-border-2 tw-border-slate-400 tw-border-solid tw-py-2 tw-pl-2 tw-pr-1 tw-bg-slate-100 hover:tw-bg-slate-200 active:tw-bg-slate-300 tw-ease-linear tw-duration-[50ms]",onClick:function(){_(function(e){return{type:"SET_MUTE",value:e}}(!e.muted))}})}function zs(e){var t,n,r=(0,a.useContext)(S).state,i=r.netMode,o=r.clientRole;return(0,E.jsxs)(E.Fragment,{children:["connecting"===i&&(0,E.jsx)(E.Fragment,{}),"lobby"===(null===(t=r.gameState)||void 0===t?void 0:t.gameMode)&&(0,E.jsxs)("div",{className:"tw-flex tw-flex-col tw-items-center tw-justify-center tw-w-full tw-h-full",children:["host"===o&&(0,E.jsx)(Is,{}),"guest"===o&&(0,E.jsx)(Ms,{})]}),(0,E.jsxs)("div",{className:"tw-flex tw-flex-col tw-items-center tw-grow tw-pb-4",style:"playing"!==(null===(n=r.gameState)||void 0===n?void 0:n.gameMode)?{display:"none"}:void 0,children:[(0,E.jsx)(Lr,{}),(0,E.jsxs)("div",{className:"tw-flex tw-flex-row tw-w-full tw-items-center tw-justify-between tw-mt-1 tw-ml-1",children:[(0,E.jsxs)("div",{children:[(0,E.jsx)(Fs,{}),(0,E.jsx)("div",{className:"tw-hidden sm:tw-inline-block",children:(0,E.jsx)(Us,{})})]}),(0,E.jsx)("div",{className:"tw-mr-1 sm:tw-mr-0",children:(0,E.jsx)(Ls,{})}),(0,E.jsx)("div",{className:"tw-hidden sm:tw-inline",children:(0,E.jsx)(Ds,{})}),(0,E.jsx)("div",{className:"tw-inline-block sm:tw-hidden",children:(0,E.jsx)(Us,{})})]}),(0,E.jsx)("div",{className:"tw-mt-3",children:(0,E.jsx)(Rs,{})})]})]})}function Vs(){var e=(0,a.useContext)(S).state.netMode;return(0,E.jsxs)("div",{className:"tw-flex tw-flex-col tw-items-center tw-gap-1 tw-grow tw-justify-around",children:["init"===e&&(0,E.jsx)(Ir,{}),"init"!==e&&(0,E.jsx)(zs,{})]})}var Hs=function(e){return(0,E.jsx)(ie,d(d({},e),{},{role:"menubar",className:ne("common-menubar",e.className)}))},Ws=function(e){var t,n=e.children,r=e.id,i=e.className,o=e.onEscape,s=e.arrowKeyNavigation,u=e.dontStealFocus,c=e.includeOutsideTabOrder,f=l(a.useState(!1),2),d=f[0],p=f[1],h=function(){return function(e){var t,n=[],r=ee(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;n.push(i)}}catch(e){r.e(e)}finally{r.f()}return n}(c?t.querySelectorAll("[tabindex]"):t.querySelectorAll('[tabindex]:not([tabindex="-1"])'))};return(0,E.jsx)("div",{id:r,className:ne("common-focus-trap",i),ref:function(e){e&&(t=e,u||d||e.contains(document.activeElement)||!h().length||(t.focus(),p(!0)))},onKeyDown:function(e){if(t){var n=function(t,n){var r=h();if(r.length){var i=r.indexOf(e.target);t?n?r[r.length-1].focus():i===r.length-1?r[0].focus():r[i+1].focus():n?r[0].focus():0===i?r[r.length-1].focus():r[Math.max(i-1,0)].focus(),e.preventDefault(),e.stopPropagation()}};"Escape"===e.key?(o(),e.preventDefault(),e.stopPropagation()):"Tab"===e.key?e.shiftKey?n(!1,!1):n(!0,!1):s&&("ArrowDown"===e.key?n(!0,!1):"ArrowUp"===e.key?n(!1,!1):"Home"===e.key?n(!1,!0):"End"===e.key&&n(!0,!0))}},tabIndex:-1,children:n})},qs=function(e){var t,n,r=e.id,i=e.className,o=e.ariaHidden,s=e.ariaLabel,u=e.role,c=e.items,f=e.label,p=e.title,h=e.icon,m=e.tabIndex,v=e.disabled,y=l(a.useState(!1),2),g=y[0],b=y[1],w=ne("common-menu-dropdown",i),x=r+"-menu";return(0,E.jsxs)("div",{className:w,ref:function(e){e&&(t=e)},onBlur:function(e){t&&g&&!t.contains(e.relatedTarget)&&b(!1)},children:[(0,E.jsx)(re,{id:r,label:f,tabIndex:m,buttonRef:function(e){e&&(n=e)},title:p,leftIcon:h,role:u||"menuitem",className:ne("menu-button",g&&"expanded"),onClick:function(){b(!g)},ariaHasPopup:"true",ariaExpanded:g,ariaControls:g?x:void 0,ariaLabel:s,ariaHidden:o,disabled:v}),g&&(0,E.jsx)("div",{role:"menu",className:"common-menu-dropdown-pane",tabIndex:0,id:x,"aria-labelledby":r,children:(0,E.jsx)(Ws,{arrowKeyNavigation:!0,onEscape:function(){b(!1),n&&n.focus()},children:(0,E.jsx)("ul",{role:"presentation",children:c.map((function(e,t){return(0,E.jsx)("li",{role:"presentation",children:(0,E.jsx)(re,d(d({},e),{},{className:ne("common-menu-dropdown-item",e.className),onClick:function(){b(!1),e.onClick()},role:"menuitem",ariaPosInSet:t+1,ariaSetSize:c.length}))},t)}))})})})]})};function Gs(){var e,t,n,r,i,o,s,u,l=(0,a.useContext)(S),c=l.state,f=l.dispatch,d=c.authStatus,p=c.profile,h=c.gameState,m=c.targetConfig,v=(null!=h?h:{}).gameId,y=pxt.auth.hasIdentity(),g=null===(e=pxt.appTarget)||void 0===e?void 0:e.appTheme,b=null===(t=pxt)||void 0===t||null===(n=t.appTarget)||void 0===n||null===(r=n.appTheme)||void 0===r?void 0:r.privacyUrl,w=null===(i=pxt)||void 0===i||null===(o=i.appTarget)||void 0===o||null===(s=o.appTheme)||void 0===s?void 0:s.termsOfUseUrl,x=Y(),k=function(){pxt.tickEvent("mp.settingsmenu.reportabuse"),f(H("report-abuse"))},_=function(){pxt.tickEvent("mp.settingsmenu.privacy"),window.open(b)},O=function(){pxt.tickEvent("mp.settingsmenu.termsofuse"),window.open(w)},A=function(){pxt.tickEvent("mp.settingsmenu.onlinesafety"),window.open("/multiplayer#safety")},C=function(){var e;pxt.tickEvent("mp.home");var t,n,r=null===(e=pxt.webConfig)||void 0===e?void 0:e.relprefix.substr(0,pxt.webConfig.relprefix.length-3);pxt.appTarget.appTheme.homeUrl&&r?((null===(t=pxt.appTarget.appTheme.homeUrl)||void 0===t?void 0:t.lastIndexOf("/"))===(null===(n=pxt.appTarget.appTheme.homeUrl)||void 0===n?void 0:n.length)-1&&(r=r.substr(1)),window.open(pxt.appTarget.appTheme.homeUrl+r,"_self")):window.open(pxt.appTarget.appTheme.homeUrl,"_self")},T=function(){pxt.tickEvent("mp.signin"),f(H("sign-in",{dialogMessages:x}))},N=function(){var e=J(X().mark((function e(){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return pxt.tickEvent("mp.usermenu.signout"),e.next=3,Qn();case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),j=function(){var e,t,n,r;return null!==(e=null==p||null===(t=p.idp)||void 0===t?void 0:t.pictureUrl)&&void 0!==e?e:null==p||null===(n=p.idp)||void 0===n||null===(r=n.picture)||void 0===r?void 0:r.dataUrl},P=function(){var e,t=[];b&&t.push({id:"privacy",title:lf("Privacy"),label:lf("Privacy"),onClick:_}),w&&t.push({id:"termsOfUse",title:lf("Terms of Use"),label:lf("Terms of Use"),onClick:O}),t.push({id:"safety",title:lf("Online Safety"),label:lf("Online Safety"),onClick:A});var n=(null==m||null===(e=m.shareLinks)||void 0===e?void 0:e.approved)||[];return v&&n.indexOf(v)<0&&t.push({id:"report",title:lf("Report Abuse"),label:lf("Report Abuse"),onClick:k}),t}();return(0,E.jsxs)(Hs,{className:"tw-h-[var(--header-height)] tw-text-white\n tw-flex tw-flex-grow-0 tw-flex-shrink-0 tw-align-middle tw-justify-center\n tw-items-center tw-z-[50] tw-text-[2.2rem]\n tw-drop-shadow-xl\n ",ariaLabel:lf("Header"),children:[(0,E.jsxs)("div",{className:"tw-select-none tw-text-lg tw-font-bold tw-flex tw-align-middle tw-p-[var(--header-padding-top)] tw-flex-none",children:[function(e){var t=e.organizationWideLogo,n=e.organizationLogo;return(0,E.jsx)("div",{className:"tw-flex",children:t&&n?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("img",{className:"tw-h-6 tw-mx-0 tw-my-1 tw-hidden sm:tw-block",src:It(t),alt:lf("{0} Logo",e.organization)}),(0,E.jsx)("img",{className:"tw-h-6 tw-mx-0 tw-my-1 tw-object-contain tw-block sm:tw-hidden",src:It(n),alt:lf("{0} Logo",e.organization)})]}):(0,E.jsx)("span",{className:"tw-h-6 tw-mx-0 tw-my-1",children:e.organization})})}(g),(u=g,(0,E.jsx)("div",{className:"tw-flex tw-pt-[2px] tw-ml-3 tw-cursor-pointer",onClick:C,children:u.useTextLogo?[(0,E.jsx)("span",{className:"tw-ml-3 tw-hidden sm:tw-flex",onClick:C,children:u.organizationText},"org-name"),(0,E.jsx)("span",{className:"tw-ml-3 tw-flex sm:tw-hidden",onClick:C,children:u.organizationShortText||u.organizationText},"org-name-short")]:u.logo||u.portraitLogo?(0,E.jsx)("img",{className:"logo",src:It(u.logo||u.portraitLogo),alt:lf("{0} Logo",u.boardName)}):(0,E.jsxs)("span",{className:"name",children:[" ",u.boardName]})}))]}),(0,E.jsx)("div",{className:"tw-select-none tw-grow"}),(0,E.jsxs)("div",{className:"tw-select-none tw-text-lg tw-font-bold tw-flex tw-items-center tw-h-full tw-flex-none",children:[(null==P?void 0:P.length)>0&&(0,E.jsx)(qs,{className:"h-full",id:"settings-help",title:lf("Settings menu"),icon:"fas fa-cog large",items:P}),y&&function(){var e=[];"signed-in"===d&&e.push({id:"signout",title:lf("Sign Out"),label:lf("Sign Out"),onClick:N});var t=j()?(0,E.jsx)("div",{className:"tw-flex tw-align-middle tw-justify-center tw-items-center tw-h-full",children:(0,E.jsx)("img",{src:j(),className:"tw-border-solid tw-border-2 tw-border-white tw-rounded-[100%] tw-w-10 tw-h-10",alt:lf("Profile Image"),referrerPolicy:"no-referrer","aria-hidden":"true"})}):void 0,n=(0,E.jsx)("span",{children:(0,E.jsx)("div",{className:"tw-h-10 tw-w-10 tw-rounded-[100%] tw-border-solid tw-border-2 tw-border-white tw-bg-[#028B9B] tw-flex tw-items-center tw-justify-center tw-text-base","aria-hidden":"true",children:p?pxt.auth.userInitials(p):""})});return(0,E.jsxs)("div",{className:"tw-h-full",children:["signed-in"===d&&(0,E.jsx)(qs,{id:"profile-dropdown",items:e,label:t||n,title:lf("Profile Settings")}),"signed-out"===d&&(0,E.jsx)(re,{className:"tw-p-[0.6rem] tw-h-4/5 tw-m-2 tw-mr-4 tw-flex-row-reverse tw-font-medium tw-align-middle",rightIcon:"xicon cloud-user",title:lf("Sign In"),label:lf("Sign In"),onClick:T})]})}()]})]})}var Zs=function(e,t){return(Zs=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function Ys(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Zs(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var $s=function(){return($s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function Ks(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function Xs(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function Qs(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create,n(7490);var Js=1/60*1e3,eu="undefined"!=typeof performance?function(){return performance.now()}:function(){return Date.now()},tu="undefined"!=typeof window?function(e){return window.requestAnimationFrame(e)}:function(e){return setTimeout((function(){return e(eu())}),Js)},nu=!0,ru=!1,iu=!1,au={delta:0,timestamp:0},ou=["read","update","preRender","render","postRender"],su=ou.reduce((function(e,t){return e[t]=function(e){var t=[],n=[],r=0,i=!1,a=!1,o=new WeakSet,s={schedule:function(e){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&i,s=a?t:n;return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&o.add(e),-1===s.indexOf(e)&&(s.push(e),a&&i&&(r=t.length)),e},cancel:function(e){var t=n.indexOf(e);-1!==t&&n.splice(t,1),o.delete(e)},process:function(e){if(i)a=!0;else{i=!0;var u=[n,t];if(t=u[0],(n=u[1]).length=0,r=t.length)for(var l=0;l<r;l++){var c=t[l];c(e),o.has(c)&&(s.schedule(c),ru=!0)}i=!1,a&&(a=!1,s.process(e))}}};return s}(),e}),{}),uu=ou.reduce((function(e,t){var n=su[t];return e[t]=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return ru||pu(),n.schedule(e,t,r)},e}),{}),lu=ou.reduce((function(e,t){return e[t]=su[t].cancel,e}),{}),cu=ou.reduce((function(e,t){return e[t]=function(){return su[t].process(au)},e}),{}),fu=function(e){return su[e].process(au)},du=function e(t){ru=!1,au.delta=nu?Js:Math.max(Math.min(t-au.timestamp,40),1),au.timestamp=t,iu=!0,ou.forEach(fu),iu=!1,ru&&(nu=!1,tu(e))},pu=function(){ru=!0,nu=!0,iu||tu(du)},hu=function(){return au},mu=uu,vu="undefined"!=typeof document,yu=vu?a.useLayoutEffect:a.useEffect;function gu(){var e=(0,a.useRef)(!1);return yu((function(){return e.current=!0,function(){e.current=!1}}),[]),e}var bu=(0,a.createContext)(null);function wu(e){var t=(0,a.useRef)(null);return null===t.current&&(t.current=e()),t.current}var xu=0,ku=function(){return xu++},_u=function(){return wu(ku)},Eu=function(e){var t=e.children,n=e.initial,r=e.isPresent,i=e.onExitComplete,o=e.custom,s=e.presenceAffectsLayout,u=wu(Su),l=_u(),c=(0,a.useMemo)((function(){return{id:l,initial:n,isPresent:r,custom:o,onExitComplete:function(e){var t,n;u.set(e,!0);try{for(var r=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(u.values()),a=r.next();!a.done;a=r.next())if(!a.value)return}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}null==i||i()},register:function(e){return u.set(e,!1),function(){return u.delete(e)}}}}),s?void 0:[r]);return(0,a.useMemo)((function(){u.forEach((function(e,t){return u.set(t,!1)}))}),[r]),a.useEffect((function(){!r&&!u.size&&(null==i||i())}),[r]),a.createElement(bu.Provider,{value:c},t)};function Su(){return new Map}var Ou=(0,a.createContext)({});function Au(e){return(0,a.useEffect)((function(){return function(){return e()}}),[])}n(8466);var Cu=function(e){return e.key||""},Tu=function(e){var t=e.children,n=e.custom,r=e.initial,i=void 0===r||r,o=e.onExitComplete,s=e.exitBeforeEnter,u=e.presenceAffectsLayout,l=void 0===u||u,c=Xs(function(){var e=gu(),t=Xs((0,a.useState)(0),2),n=t[0],r=t[1],i=(0,a.useCallback)((function(){e.current&&r(n+1)}),[n]);return[(0,a.useCallback)((function(){return mu.postRender(i)}),[i]),n]}(),1)[0],f=(0,a.useContext)(Ou).forceRender;f&&(c=f);var d=gu(),p=function(e){var t=[];return a.Children.forEach(e,(function(e){(0,a.isValidElement)(e)&&t.push(e)})),t}(t),h=p,m=new Set,v=(0,a.useRef)(h),y=(0,a.useRef)(new Map).current,g=(0,a.useRef)(!0);if(yu((function(){g.current=!1,function(e,t){e.forEach((function(e){var n=Cu(e);t.set(n,e)}))}(p,y),v.current=h})),Au((function(){g.current=!0,y.clear(),m.clear()})),g.current)return a.createElement(a.Fragment,null,h.map((function(e){return a.createElement(Eu,{key:Cu(e),isPresent:!0,initial:!!i&&void 0,presenceAffectsLayout:l},e)})));h=Qs([],Xs(h),!1);for(var b=v.current.map(Cu),w=p.map(Cu),x=b.length,k=0;k<x;k++){var _=b[k];-1===w.indexOf(_)&&m.add(_)}return s&&m.size&&(h=[]),m.forEach((function(e){if(-1===w.indexOf(e)){var t=y.get(e);if(t){var r=b.indexOf(e);h.splice(r,0,a.createElement(Eu,{key:Cu(t),isPresent:!1,onExitComplete:function(){y.delete(e),m.delete(e);var t=v.current.findIndex((function(t){return t.key===e}));if(v.current.splice(t,1),!m.size){if(v.current=p,!1===d.current)return;c(),o&&o()}},custom:n,presenceAffectsLayout:l},t))}}})),h=h.map((function(e){var t=e.key;return m.has(t)?e:a.createElement(Eu,{key:Cu(e),isPresent:!0,presenceAffectsLayout:l},e)})),a.createElement(a.Fragment,null,m.size?h:h.map((function(e){return(0,a.cloneElement)(e)})))},Nu=function(e){return{isEnabled:function(t){return e.some((function(e){return!!t[e]}))}}},ju={measureLayout:Nu(["layout","layoutId","drag"]),animation:Nu(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:Nu(["exit"]),drag:Nu(["drag","dragControls"]),focus:Nu(["whileFocus"]),hover:Nu(["whileHover","onHoverStart","onHoverEnd"]),tap:Nu(["whileTap","onTap","onTapStart","onTapCancel"]),pan:Nu(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:Nu(["whileInView","onViewportEnter","onViewportLeave"])},Pu=(0,a.createContext)({strict:!1}),Ru=Object.keys(ju),Iu=Ru.length,Lu=(0,a.createContext)({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),Mu=(0,a.createContext)({}),Bu={current:null},Du=!1;function Uu(e,t,n,r){var i=(0,a.useContext)(Pu),o=(0,a.useContext)(Mu).visualElement,s=(0,a.useContext)(bu),u=function(){var e=(!Du&&function(){if(Du=!0,vu)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return Bu.current=e.matches};e.addListener(t),t()}else Bu.current=!1}(),Xs((0,a.useState)(Bu.current),1)[0]),t=(0,a.useContext)(Lu).reducedMotion;return"never"!==t&&("always"===t||e)}(),l=(0,a.useRef)(void 0);r||(r=i.renderer),!l.current&&r&&(l.current=r(e,{visualState:t,parent:o,props:n,presenceId:null==s?void 0:s.id,blockInitialAnimation:!1===(null==s?void 0:s.initial),shouldReduceMotion:u}));var c=l.current;return yu((function(){null==c||c.syncRender()})),(0,a.useEffect)((function(){var e;null===(e=null==c?void 0:c.animationState)||void 0===e||e.animateChanges()})),yu((function(){return function(){return null==c?void 0:c.notifyUnmount()}}),[]),c}function Fu(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function zu(e){return Array.isArray(e)}function Vu(e){return"string"==typeof e||zu(e)}function Hu(e,t,n,r,i){var a;return void 0===r&&(r={}),void 0===i&&(i={}),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,i)),"string"==typeof t&&(t=null===(a=e.variants)||void 0===a?void 0:a[t]),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,i)),t}function Wu(e,t,n){var r=e.getProps();return Hu(r,t,null!=n?n:r.custom,function(e){var t={};return e.forEachValue((function(e,n){return t[n]=e.get()})),t}(e),function(e){var t={};return e.forEachValue((function(e,n){return t[n]=e.getVelocity()})),t}(e))}function qu(e){var t;return"function"==typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||Vu(e.initial)||Vu(e.animate)||Vu(e.whileHover)||Vu(e.whileDrag)||Vu(e.whileTap)||Vu(e.whileFocus)||Vu(e.exit)}function Gu(e){return Boolean(qu(e)||e.variants)}function Zu(e){return Array.isArray(e)?e.join(" "):e}var Yu={hasAnimatedSinceResize:!0,hasEverUpdated:!1},$u=1,Ku=(0,a.createContext)({}),Xu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ys(t,e),t.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},t.prototype.componentDidUpdate=function(){},t.prototype.updateProps=function(){var e=this.props,t=e.visualElement,n=e.props;t&&t.setProps(n)},t.prototype.render=function(){return this.props.children},t}(a.Component);function Qu(e){var t=e.preloadedFeatures,n=e.createVisualElement,r=e.projectionNodeConstructor,i=e.useRender,o=e.useVisualState,s=e.Component;return t&&function(e){for(var t in e)null!==e[t]&&("projectionNodeConstructor"===t?ju.projectionNodeConstructor=e[t]:ju[t].Component=e[t])}(t),(0,a.forwardRef)((function(e,t){var u=function(e){var t,n=e.layoutId,r=null===(t=(0,a.useContext)(Ou))||void 0===t?void 0:t.id;return r&&void 0!==n?r+"-"+n:n}(e);e=$s($s({},e),{layoutId:u});var l=(0,a.useContext)(Lu),c=null,f=function(e){var t=function(e,t){if(qu(e)){var n=e.initial,r=e.animate;return{initial:!1===n||Vu(n)?n:void 0,animate:Vu(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,a.useContext)(Mu)),n=t.initial,r=t.animate;return(0,a.useMemo)((function(){return{initial:n,animate:r}}),[Zu(n),Zu(r)])}(e),d=l.isStatic?void 0:wu((function(){if(Yu.hasEverUpdated)return $u++})),p=o(e,l.isStatic);return!l.isStatic&&vu&&(f.visualElement=Uu(s,p,$s($s({},l),e),n),function(e,t,n,r){var i,o=t.layoutId,s=t.layout,u=t.drag,l=t.dragConstraints,c=t.layoutScroll,f=(0,a.useContext)(Ku);r&&n&&!(null==n?void 0:n.projection)&&(n.projection=new r(e,n.getLatestValues(),null===(i=n.parent)||void 0===i?void 0:i.projection),n.projection.setOptions({layoutId:o,layout:s,alwaysMeasureLayout:Boolean(u)||l&&Fu(l),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:"string"==typeof s?s:"both",initialPromotionConfig:f,layoutScroll:c}))}(d,e,f.visualElement,r||ju.projectionNodeConstructor),c=function(e,t,n){var r=[];if((0,a.useContext)(Pu),!t)return null;for(var i=0;i<Iu;i++){var o=Ru[i],s=ju[o],u=s.isEnabled,l=s.Component;u(e)&&l&&r.push(a.createElement(l,$s({key:o},e,{visualElement:t})))}return r}(e,f.visualElement)),a.createElement(Xu,{visualElement:f.visualElement,props:$s($s({},l),e)},c,a.createElement(Mu.Provider,{value:f},i(s,e,d,function(e,t,n){return(0,a.useCallback)((function(r){var i;r&&(null===(i=e.mount)||void 0===i||i.call(e,r)),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):Fu(n)&&(n.current=r))}),[t])}(p,f.visualElement,t),p,l.isStatic,f.visualElement)))}))}var Ju=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function el(e){return"string"==typeof e&&!e.includes("-")&&!!(Ju.indexOf(e)>-1||/[A-Z]/.test(e))}var tl={},nl=["","X","Y","Z"],rl=["transformPerspective","x","y","z"];function il(e,t){return rl.indexOf(e)-rl.indexOf(t)}["translate","scale","rotate","skew"].forEach((function(e){return nl.forEach((function(t){return rl.push(e+t)}))}));var al=new Set(rl);function ol(e){return al.has(e)}var sl=new Set(["originX","originY","originZ"]);function ul(e){return sl.has(e)}function ll(e,t){var n=t.layout,r=t.layoutId;return ol(e)||ul(e)||(n||void 0!==r)&&(!!tl[e]||"opacity"===e)}var cl=function(e){return Boolean(null!==e&&"object"==typeof e&&e.getVelocity)},fl={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function dl(e){return e.startsWith("--")}var pl=function(e,t){return t&&"number"==typeof e?t.transform(e):e},hl=function(e,t){return function(n){return Math.max(Math.min(n,t),e)}},ml=function(e){return e%1?Number(e.toFixed(5)):e},vl=/(-)?([\d]*\.?[\d])+/g,yl=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,gl=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function bl(e){return"string"==typeof e}var wl=function(e){return{test:function(t){return bl(t)&&t.endsWith(e)&&1===t.split(" ").length},parse:parseFloat,transform:function(t){return"".concat(t).concat(e)}}},xl=wl("deg"),kl=wl("%"),_l=wl("px"),El=wl("vh"),Sl=wl("vw"),Ol=Object.assign(Object.assign({},kl),{parse:function(e){return kl.parse(e)/100},transform:function(e){return kl.transform(100*e)}}),Al={test:function(e){return"number"==typeof e},parse:parseFloat,transform:function(e){return e}},Cl=Object.assign(Object.assign({},Al),{transform:hl(0,1)}),Tl=Object.assign(Object.assign({},Al),{default:1}),Nl=$s($s({},Al),{transform:Math.round}),jl={borderWidth:_l,borderTopWidth:_l,borderRightWidth:_l,borderBottomWidth:_l,borderLeftWidth:_l,borderRadius:_l,radius:_l,borderTopLeftRadius:_l,borderTopRightRadius:_l,borderBottomRightRadius:_l,borderBottomLeftRadius:_l,width:_l,maxWidth:_l,height:_l,maxHeight:_l,size:_l,top:_l,right:_l,bottom:_l,left:_l,padding:_l,paddingTop:_l,paddingRight:_l,paddingBottom:_l,paddingLeft:_l,margin:_l,marginTop:_l,marginRight:_l,marginBottom:_l,marginLeft:_l,rotate:xl,rotateX:xl,rotateY:xl,rotateZ:xl,scale:Tl,scaleX:Tl,scaleY:Tl,scaleZ:Tl,skew:xl,skewX:xl,skewY:xl,distance:_l,translateX:_l,translateY:_l,translateZ:_l,x:_l,y:_l,z:_l,perspective:_l,transformPerspective:_l,opacity:Cl,originX:Ol,originY:Ol,originZ:_l,zIndex:Nl,fillOpacity:Cl,strokeOpacity:Cl,numOctaves:Nl};function Pl(e,t,n,r){var i,a=e.style,o=e.vars,s=e.transform,u=e.transformKeys,l=e.transformOrigin;u.length=0;var c=!1,f=!1,d=!0;for(var p in t){var h=t[p];if(dl(p))o[p]=h;else{var m=jl[p],v=pl(h,m);if(ol(p)){if(c=!0,s[p]=v,u.push(p),!d)continue;h!==(null!==(i=m.default)&&void 0!==i?i:0)&&(d=!1)}else ul(p)?(l[p]=v,f=!0):a[p]=v}}c?a.transform=function(e,t,n,r){var i=e.transform,a=e.transformKeys,o=t.enableHardwareAcceleration,s=void 0===o||o,u=t.allowTransformNone,l=void 0===u||u,c="";a.sort(il);for(var f=!1,d=a.length,p=0;p<d;p++){var h=a[p];c+="".concat(fl[h]||h,"(").concat(i[h],") "),"z"===h&&(f=!0)}return!f&&s?c+="translateZ(0)":c=c.trim(),r?c=r(i,n?"":c):l&&n&&(c="none"),c}(e,n,d,r):r?a.transform=r({},""):!t.transform&&a.transform&&(a.transform="none"),f&&(a.transformOrigin=function(e){var t=e.originX,n=void 0===t?"50%":t,r=e.originY,i=void 0===r?"50%":r,a=e.originZ,o=void 0===a?0:a;return"".concat(n," ").concat(i," ").concat(o)}(l))}function Rl(e,t,n){for(var r in t)cl(t[r])||ll(r,n)||(e[r]=t[r])}function Il(e,t,n){var r={};return Rl(r,e.style||{},e),Object.assign(r,function(e,t,n){var r=e.transformTemplate;return(0,a.useMemo)((function(){var e={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};Pl(e,t,{enableHardwareAcceleration:!n},r);var i=e.style;return $s($s({},e.vars),i)}),[t])}(e,t,n)),e.transformValues&&(r=e.transformValues(r)),r}function Ll(e,t,n){var r={},i=Il(e,t,n);return Boolean(e.drag)&&!1!==e.dragListener&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),r.style=i,r}var Ml=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover","whileInView","onViewportEnter","onViewportLeave","viewport","layoutScroll"]);function Bl(e){return Ml.has(e)}var Dl,Ul=function(e){return!Bl(e)};try{(Dl=require("@emotion/is-prop-valid").default)&&(Ul=function(e){return e.startsWith("on")?!Bl(e):Dl(e)})}catch(e){}function Fl(e,t,n){return"string"==typeof e?e:_l.transform(t+n*e)}var zl={offset:"stroke-dashoffset",array:"stroke-dasharray"},Vl={offset:"strokeDashoffset",array:"strokeDasharray"};function Hl(e,t,n,r){var i=t.attrX,a=t.attrY,o=t.originX,s=t.originY,u=t.pathLength,l=t.pathSpacing,c=void 0===l?1:l,f=t.pathOffset,d=void 0===f?0:f;Pl(e,Ks(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),n,r),e.attrs=e.style,e.style={};var p=e.attrs,h=e.style,m=e.dimensions;p.transform&&(m&&(h.transform=p.transform),delete p.transform),m&&(void 0!==o||void 0!==s||h.transform)&&(h.transformOrigin=function(e,t,n){var r=Fl(t,e.x,e.width),i=Fl(n,e.y,e.height);return"".concat(r," ").concat(i)}(m,void 0!==o?o:.5,void 0!==s?s:.5)),void 0!==i&&(p.x=i),void 0!==a&&(p.y=a),void 0!==u&&function(e,t,n,r,i){void 0===n&&(n=1),void 0===r&&(r=0),void 0===i&&(i=!0),e.pathLength=1;var a=i?zl:Vl;e[a.offset]=_l.transform(-r);var o=_l.transform(t),s=_l.transform(n);e[a.array]="".concat(o," ").concat(s)}(p,u,c,d,!1)}var Wl=function(){return $s($s({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function ql(e,t){var n=(0,a.useMemo)((function(){var n=Wl();return Hl(n,t,{enableHardwareAcceleration:!1},e.transformTemplate),$s($s({},n.attrs),{style:$s({},n.style)})}),[t]);if(e.style){var r={};Rl(r,e.style,e),n.style=$s($s({},r),n.style)}return n}function Gl(e){return void 0===e&&(e=!1),function(t,n,r,i,o,s){var u=o.latestValues,l=(el(t)?ql:Ll)(n,u,s),c=function(e,t,n){var r={};for(var i in e)(Ul(i)||!0===n&&Bl(i)||!t&&!Bl(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(n,"string"==typeof t,e),f=$s($s($s({},c),l),{ref:i});return r&&(f["data-projection-id"]=r),(0,a.createElement)(t,f)}}var Zl=/([a-z])([A-Z])/g,Yl=function(e){return e.replace(Zl,"$1-$2").toLowerCase()};function $l(e,t,n,r){var i=t.style,a=t.vars;for(var o in Object.assign(e.style,i,r&&r.getProjectionStyles(n)),a)e.style.setProperty(o,a[o])}var Kl=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function Xl(e,t,n,r){for(var i in $l(e,t,void 0,r),t.attrs)e.setAttribute(Kl.has(i)?i:Yl(i),t.attrs[i])}function Ql(e){var t=e.style,n={};for(var r in t)(cl(t[r])||ll(r,e))&&(n[r]=t[r]);return n}function Jl(e){var t=Ql(e);for(var n in e)cl(e[n])&&(t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]);return t}function ec(e){return"object"==typeof e&&"function"==typeof e.start}var tc=function(e){return Array.isArray(e)},nc=function(e){return tc(e)?e[e.length-1]||0:e};function rc(e){var t,n=cl(e)?e.get():e;return t=n,Boolean(t&&"object"==typeof t&&t.mix&&t.toValue)?n.toValue():n}function ic(e,t,n,r){var i=e.scrapeMotionValuesFromProps,a=e.createRenderState,o=e.onMount,s={latestValues:oc(t,n,r,i),renderState:a()};return o&&(s.mount=function(e){return o(t,e,s)}),s}var ac=function(e){return function(t,n){var r=(0,a.useContext)(Mu),i=(0,a.useContext)(bu);return n?ic(e,t,r,i):wu((function(){return ic(e,t,r,i)}))}};function oc(e,t,n,r){var i={},a=!1===(null==n?void 0:n.initial),o=r(e);for(var s in o)i[s]=rc(o[s]);var u=e.initial,l=e.animate,c=qu(e),f=Gu(e);t&&f&&!c&&!1!==e.inherit&&(null!=u||(u=t.initial),null!=l||(l=t.animate));var d=a||!1===u,p=d?l:u;return p&&"boolean"!=typeof p&&!ec(p)&&(Array.isArray(p)?p:[p]).forEach((function(t){var n=Hu(e,t);if(n){var r=n.transitionEnd;n.transition;var a=Ks(n,["transitionEnd","transition"]);for(var o in a){var s=a[o];Array.isArray(s)&&(s=s[d?s.length-1:0]),null!==s&&(i[o]=s)}for(var o in r)i[o]=r[o]}})),i}var sc,uc={useVisualState:ac({scrapeMotionValuesFromProps:Jl,createRenderState:Wl,onMount:function(e,t,n){var r=n.renderState,i=n.latestValues;try{r.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}Hl(r,i,{enableHardwareAcceleration:!1},e.transformTemplate),Xl(t,r)}})},lc={useVisualState:ac({scrapeMotionValuesFromProps:Ql,createRenderState:function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}}})};function cc(e,t,n,r){return void 0===r&&(r={passive:!0}),e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n)}}function fc(e,t,n,r){(0,a.useEffect)((function(){var i=e.current;if(n&&i)return cc(i,t,n,r)}),[e,t,n,r])}function dc(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function pc(e){return!!e.touches}!function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"}(sc||(sc={}));var hc={pageX:0,pageY:0};function mc(e,t){void 0===t&&(t="page");var n=e.touches[0]||e.changedTouches[0]||hc;return{x:n[t+"X"],y:n[t+"Y"]}}function vc(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function yc(e,t){return void 0===t&&(t="page"),{point:pc(e)?mc(e,t):vc(e,t)}}var gc=function(e,t){void 0===t&&(t=!1);var n,r=function(t){return e(t,yc(t))};return t?(n=r,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}):r},bc={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},wc={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function xc(e){return vu&&null===window.onpointerdown?e:vu&&null===window.ontouchstart?wc[e]:vu&&null===window.onmousedown?bc[e]:e}function kc(e,t,n,r){return cc(e,xc(t),gc(n,"pointerdown"===t),r)}function _c(e,t,n,r){return fc(e,xc(t),n&&gc(n,"pointerdown"===t),r)}function Ec(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var Sc=Ec("dragHorizontal"),Oc=Ec("dragVertical");function Ac(e){var t=!1;if("y"===e)t=Oc();else if("x"===e)t=Sc();else{var n=Sc(),r=Oc();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function Cc(){var e=Ac(!0);return!e||(e(),!1)}function Tc(e,t,n){return function(r,i){var a;dc(r)&&!Cc()&&(null===(a=e.animationState)||void 0===a||a.setActive(sc.Hover,t),null==n||n(r,i))}}var Nc=function e(t,n){return!!n&&(t===n||e(t,n.parentElement))},jc=function(e,t){return function(n){return t(e(n))}},Pc=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(jc)};n(8466),new Set;var Rc=new WeakMap,Ic=new WeakMap,Lc=function(e){var t;null===(t=Rc.get(e.target))||void 0===t||t(e)},Mc=function(e){e.forEach(Lc)};var Bc={some:0,all:1};function Dc(e,t,n,r){var i=r.root,o=r.margin,s=r.amount,u=void 0===s?"some":s,l=r.once;(0,a.useEffect)((function(){if(e){var r={root:null==i?void 0:i.current,rootMargin:o,threshold:"number"==typeof u?u:Bc[u]};return function(e,t,n){var r=function(e){var t=e.root,n=Ks(e,["root"]),r=t||document;Ic.has(r)||Ic.set(r,{});var i=Ic.get(r),a=JSON.stringify(n);return i[a]||(i[a]=new IntersectionObserver(Mc,$s({root:t},n))),i[a]}(t);return Rc.set(e,n),r.observe(e),function(){Rc.delete(e),r.unobserve(e)}}(n.getInstance(),r,(function(e){var r,i=e.isIntersecting;if(t.isInView!==i&&(t.isInView=i,!l||i||!t.hasEnteredView)){i&&(t.hasEnteredView=!0),null===(r=n.animationState)||void 0===r||r.setActive(sc.InView,i);var a=n.getProps(),o=i?a.onViewportEnter:a.onViewportLeave;null==o||o(e)}}))}}),[e,i,o,u])}function Uc(e,t,n,r){var i=r.fallback,o=void 0===i||i;(0,a.useEffect)((function(){e&&o&&requestAnimationFrame((function(){var e;t.hasEnteredView=!0;var r=n.getProps().onViewportEnter;null==r||r(null),null===(e=n.animationState)||void 0===e||e.setActive(sc.InView,!0)}))}),[e])}var Fc=function(e){return function(t){return e(t),null}},zc={inView:Fc((function(e){var t=e.visualElement,n=e.whileInView,r=e.onViewportEnter,i=e.onViewportLeave,o=e.viewport,s=void 0===o?{}:o,u=(0,a.useRef)({hasEnteredView:!1,isInView:!1}),l=Boolean(n||r||i);s.once&&u.current.hasEnteredView&&(l=!1),("undefined"==typeof IntersectionObserver?Uc:Dc)(l,u.current,t,s)})),tap:Fc((function(e){var t=e.onTap,n=e.onTapStart,r=e.onTapCancel,i=e.whileTap,o=e.visualElement,s=t||n||r||i,u=(0,a.useRef)(!1),l=(0,a.useRef)(null),c={passive:!(n||t||r||m)};function f(){var e;null===(e=l.current)||void 0===e||e.call(l),l.current=null}function d(){var e;return f(),u.current=!1,null===(e=o.animationState)||void 0===e||e.setActive(sc.Tap,!1),!Cc()}function p(e,n){d()&&(Nc(o.getInstance(),e.target)?null==t||t(e,n):null==r||r(e,n))}function h(e,t){d()&&(null==r||r(e,t))}function m(e,t){var r;f(),u.current||(u.current=!0,l.current=Pc(kc(window,"pointerup",p,c),kc(window,"pointercancel",h,c)),null===(r=o.animationState)||void 0===r||r.setActive(sc.Tap,!0),null==n||n(e,t))}_c(o,"pointerdown",s?m:void 0,c),Au(f)})),focus:Fc((function(e){var t=e.whileFocus,n=e.visualElement;fc(n,"focus",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(sc.Focus,!0)}:void 0),fc(n,"blur",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(sc.Focus,!1)}:void 0)})),hover:Fc((function(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,i=e.visualElement;_c(i,"pointerenter",t||r?Tc(i,!0,t):void 0,{passive:!t}),_c(i,"pointerleave",n||r?Tc(i,!1,n):void 0,{passive:!n})}))};function Vc(){var e=(0,a.useContext)(bu);if(null===e)return[!0,null];var t=e.isPresent,n=e.onExitComplete,r=e.register,i=_u();return(0,a.useEffect)((function(){return r(i)}),[]),!t&&n?[!1,function(){return null==n?void 0:n(i)}]:[!0]}function Hc(e,t){if(!Array.isArray(t))return!1;var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Wc(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}Object.create,Object.create;var qc=function(e,t,n){return Math.min(Math.max(n,e),t)};function Gc(e,t){return e*Math.sqrt(1-t*t)}var Zc=["duration","bounce"],Yc=["stiffness","damping","mass"];function $c(e,t){return t.some((function(t){return void 0!==e[t]}))}function Kc(e){var t=e.from,n=void 0===t?0:t,r=e.to,i=void 0===r?1:r,a=e.restSpeed,o=void 0===a?2:a,s=e.restDelta,u=Wc(e,["from","to","restSpeed","restDelta"]),l={done:!1,value:n},c=function(e){var t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!$c(e,Yc)&&$c(e,Zc)){var n=function(e){var t,n,r=e.duration,i=void 0===r?800:r,a=e.bounce,o=void 0===a?.25:a,s=e.velocity,u=void 0===s?0:s,l=e.mass,c=void 0===l?1:l,f=1-o;f=qc(.05,1,f),i=qc(.01,10,i/1e3),f<1?(t=function(e){var t=e*f,n=t*i;return.001-(t-u)/Gc(e,f)*Math.exp(-n)},n=function(e){var n=e*f*i,r=n*u+u,a=Math.pow(f,2)*Math.pow(e,2)*i,o=Math.exp(-n),s=Gc(Math.pow(e,2),f);return(.001-t(e)>0?-1:1)*((r-a)*o)/s}):(t=function(e){return Math.exp(-e*i)*((e-u)*i+1)-.001},n=function(e){return Math.exp(-e*i)*(i*i*(u-e))});var d=function(e,t,n){for(var r=n,i=1;i<12;i++)r-=e(r)/t(r);return r}(t,n,5/i);if(i*=1e3,isNaN(d))return{stiffness:100,damping:10,duration:i};var p=Math.pow(d,2)*c;return{stiffness:p,damping:2*f*Math.sqrt(c*p),duration:i}}(e);(t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1})).isResolvedFromDuration=!0}return t}(u),f=c.stiffness,d=c.damping,p=c.mass,h=c.velocity,m=c.duration,v=c.isResolvedFromDuration,y=Xc,g=Xc;function b(){var e=h?-h/1e3:0,t=i-n,r=d/(2*Math.sqrt(f*p)),a=Math.sqrt(f/p)/1e3;if(void 0===s&&(s=Math.min(Math.abs(i-n)/100,.4)),r<1){var o=Gc(a,r);y=function(n){var s=Math.exp(-r*a*n);return i-s*((e+r*a*t)/o*Math.sin(o*n)+t*Math.cos(o*n))},g=function(n){var i=Math.exp(-r*a*n);return r*a*i*(Math.sin(o*n)*(e+r*a*t)/o+t*Math.cos(o*n))-i*(Math.cos(o*n)*(e+r*a*t)-o*t*Math.sin(o*n))}}else if(1===r)y=function(n){return i-Math.exp(-a*n)*(t+(e+a*t)*n)};else{var u=a*Math.sqrt(r*r-1);y=function(n){var o=Math.exp(-r*a*n),s=Math.min(u*n,300);return i-o*((e+r*a*t)*Math.sinh(s)+u*t*Math.cosh(s))/u}}}return b(),{next:function(e){var t=y(e);if(v)l.done=e>=m;else{var n=1e3*g(e),r=Math.abs(n)<=o,a=Math.abs(i-t)<=s;l.done=r&&a}return l.value=l.done?i:t,l},flipTarget:function(){h=-h;var e=[i,n];n=e[0],i=e[1],b()}}}Kc.needsInterpolation=function(e,t){return"string"==typeof e||"string"==typeof t};var Xc=function(e){return 0},Qc=function(e,t,n){var r=t-e;return 0===r?1:(n-e)/r},Jc=function(e,t,n){return-n*e+n*t+e},ef=function(e,t){return function(n){return Boolean(bl(n)&&gl.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t))}},tf=function(e,t,n){return function(r){var i;if(!bl(r))return r;var a=l(r.match(vl),4),o=a[0],s=a[1],u=a[2],f=a[3];return c(i={},e,parseFloat(o)),c(i,t,parseFloat(s)),c(i,n,parseFloat(u)),c(i,"alpha",void 0!==f?parseFloat(f):1),i}},nf=hl(0,255),rf=Object.assign(Object.assign({},Al),{transform:function(e){return Math.round(nf(e))}}),af={test:ef("rgb","red"),parse:tf("red","green","blue"),transform:function(e){var t=e.red,n=e.green,r=e.blue,i=e.alpha,a=void 0===i?1:i;return"rgba("+rf.transform(t)+", "+rf.transform(n)+", "+rf.transform(r)+", "+ml(Cl.transform(a))+")"}},of={test:ef("#"),parse:function(e){var t="",n="",r="",i="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),i=e.substr(4,1),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:af.transform},sf={test:ef("hsl","hue"),parse:tf("hue","saturation","lightness"),transform:function(e){var t=e.hue,n=e.saturation,r=e.lightness,i=e.alpha,a=void 0===i?1:i;return"hsla("+Math.round(t)+", "+kl.transform(ml(n))+", "+kl.transform(ml(r))+", "+ml(Cl.transform(a))+")"}};function uf(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function cf(e){var t=e.hue,n=e.saturation,r=e.lightness,i=e.alpha;t/=360,r/=100;var a=0,o=0,s=0;if(n/=100){var u=r<.5?r*(1+n):r+n-r*n,l=2*r-u;a=uf(l,u,t+1/3),o=uf(l,u,t),s=uf(l,u,t-1/3)}else a=o=s=r;return{red:Math.round(255*a),green:Math.round(255*o),blue:Math.round(255*s),alpha:i}}var ff=function(e,t,n){var r=e*e,i=t*t;return Math.sqrt(Math.max(0,n*(i-r)+r))},df=[of,af,sf],pf=function(e){return df.find((function(t){return t.test(e)}))},hf=function(e){return"'".concat(e,"' is not an animatable color. Use the equivalent color code instead.")},mf=function(e,t){var n=pf(e),r=pf(t);hf(e),hf(t);var i=n.parse(e),a=r.parse(t);n===sf&&(i=cf(i),n=af),r===sf&&(a=cf(a),r=af);var o=Object.assign({},i);return function(e){for(var t in o)"alpha"!==t&&(o[t]=ff(i[t],a[t],e));return o.alpha=Jc(i.alpha,a.alpha,e),n.transform(o)}},vf={test:function(e){return af.test(e)||of.test(e)||sf.test(e)},parse:function(e){return af.test(e)?af.parse(e):sf.test(e)?sf.parse(e):of.parse(e)},transform:function(e){return bl(e)?e:e.hasOwnProperty("red")?af.transform(e):sf.transform(e)}},yf="${c}",gf="${n}";function bf(e){"number"==typeof e&&(e="".concat(e));var t=[],n=0,r=e.match(yl);r&&(n=r.length,e=e.replace(yl,yf),t.push.apply(t,w(r.map(vf.parse))));var i=e.match(vl);return i&&(e=e.replace(vl,gf),t.push.apply(t,w(i.map(Al.parse)))),{values:t,numColors:n,tokenised:e}}function wf(e){return bf(e).values}function xf(e){var t=bf(e),n=t.values,r=t.numColors,i=t.tokenised,a=n.length;return function(e){for(var t=i,n=0;n<a;n++)t=t.replace(n<r?yf:gf,n<r?vf.transform(e[n]):ml(e[n]));return t}}var kf=function(e){return"number"==typeof e?0:e},_f={test:function(e){var t,n,r,i;return isNaN(e)&&bl(e)&&(null!==(n=null===(t=e.match(vl))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(i=null===(r=e.match(yl))||void 0===r?void 0:r.length)&&void 0!==i?i:0)>0},parse:wf,createTransformer:xf,getAnimatableNone:function(e){var t=wf(e);return xf(e)(t.map(kf))}},Ef=function(e){return"number"==typeof e};function Sf(e,t){return Ef(e)?function(n){return Jc(e,t,n)}:vf.test(e)?mf(e,t):Tf(e,t)}var Of=function(e,t){var n=w(e),r=n.length,i=e.map((function(e,n){return Sf(e,t[n])}));return function(e){for(var t=0;t<r;t++)n[t]=i[t](e);return n}},Af=function(e,t){var n=Object.assign(Object.assign({},e),t),r={};for(var i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=Sf(e[i],t[i]));return function(e){for(var t in r)n[t]=r[t](e);return n}};function Cf(e){for(var t=_f.parse(e),n=t.length,r=0,i=0,a=0,o=0;o<n;o++)r||"number"==typeof t[o]?r++:void 0!==t[o].hue?a++:i++;return{parsed:t,numNumbers:r,numRGB:i,numHSL:a}}var Tf=function(e,t){var n=_f.createTransformer(t),r=Cf(e),i=Cf(t);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers?Pc(Of(r.parsed,i.parsed),n):("Complex values '".concat(e,"' and '").concat(t,"' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition."),function(n){return"".concat(n>0?t:e)})},Nf=function(e,t){return function(n){return Jc(e,t,n)}};function jf(e,t,n){for(var r,i=[],a=n||("number"==typeof(r=e[0])?Nf:"string"==typeof r?vf.test(r)?mf:Tf:Array.isArray(r)?Of:"object"==typeof r?Af:void 0),o=e.length-1,s=0;s<o;s++){var u=a(e[s],e[s+1]);if(t){var l=Array.isArray(t)?t[s]:t;u=Pc(l,u)}i.push(u)}return i}function Pf(e,t){var n=l(e,2),r=n[0],i=n[1],a=l(t,1)[0];return function(e){return a(Qc(r,i,e))}}function Rf(e,t){var n=e.length,r=n-1;return function(i){var a=0,o=!1;if(i<=e[0]?o=!0:i>=e[r]&&(a=r-1,o=!0),!o){for(var s=1;s<n&&!(e[s]>i||s===r);s++);a=s-1}var u=Qc(e[a],e[a+1],i);return t[a](u)}}function If(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.clamp,i=void 0===r||r,a=n.ease,o=n.mixer,s=e.length;t.length,!a||!Array.isArray(a)||a.length,e[0]>e[s-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());var u=jf(t,a,o),l=2===s?Pf(e,u):Rf(e,u);return i?function(t){return l(qc(e[0],e[s-1],t))}:l}var Lf=function(e){return function(t){return 1-e(1-t)}},Mf=function(e){return function(t){return t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2}},Bf=function(e){return function(t){return t*t*((e+1)*t-e)}},Df=function(e){return e},Uf=(2,function(e){return Math.pow(e,2)}),Ff=Lf(Uf),zf=Mf(Uf),Vf=function(e){return 1-Math.sin(Math.acos(e))},Hf=Lf(Vf),Wf=Mf(Hf),qf=Bf(1.525),Gf=Lf(qf),Zf=Mf(qf),Yf=function(e){var t=Bf(1.525);return function(e){return(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))}}(),$f=function(e){if(1===e||0===e)return e;var t=e*e;return e<.36363636363636365?7.5625*t:e<.7272727272727273?9.075*t-9.9*e+3.4:e<.9?12.066481994459833*t-19.63545706371191*e+8.898060941828255:10.8*e*e-20.52*e+10.72},Kf=Lf($f);function Xf(e,t){return e.map((function(){return t||zf})).splice(0,e.length-1)}function Qf(e){var t=e.from,n=void 0===t?0:t,r=e.to,i=void 0===r?1:r,a=e.ease,o=e.offset,s=e.duration,u=void 0===s?300:s,l={done:!1,value:n},c=Array.isArray(i)?i:[n,i],f=function(e,t){return e.map((function(e){return e*t}))}(o&&o.length===c.length?o:function(e){var t=e.length;return e.map((function(e,n){return 0!==n?n/(t-1):0}))}(c),u);function d(){return If(f,c,{ease:Array.isArray(a)?a:Xf(c,a)})}var p=d();return{next:function(e){return l.value=p(e),l.done=e>=u,l},flipTarget:function(){c.reverse(),p=d()}}}var Jf={keyframes:Qf,spring:Kc,decay:function(e){var t=e.velocity,n=void 0===t?0:t,r=e.from,i=void 0===r?0:r,a=e.power,o=void 0===a?.8:a,s=e.timeConstant,u=void 0===s?350:s,l=e.restDelta,c=void 0===l?.5:l,f=e.modifyTarget,d={done:!1,value:i},p=o*n,h=i+p,m=void 0===f?h:f(h);return m!==h&&(p=m-i),{next:function(e){var t=-p*Math.exp(-e/u);return d.done=!(t>c||t<-c),d.value=d.done?m:m+t,d},flipTarget:function(){}}}};function ed(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return e-t-n}var td=function(e){var t=function(t){var n=t.delta;return e(n)};return{start:function(){return mu.update(t,!0)},stop:function(){return lu.update(t)}}};function nd(e){var t,n,r,i,a,o=e.from,s=e.autoplay,u=void 0===s||s,l=e.driver,c=void 0===l?td:l,f=e.elapsed,d=void 0===f?0:f,p=e.repeat,h=void 0===p?0:p,m=e.repeatType,v=void 0===m?"loop":m,y=e.repeatDelay,g=void 0===y?0:y,b=e.onPlay,w=e.onStop,x=e.onComplete,k=e.onRepeat,_=e.onUpdate,E=Wc(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]),S=E.to,O=0,A=E.duration,C=!1,T=!0,N=function(e){if(Array.isArray(e.to))return Qf;if(Jf[e.type])return Jf[e.type];var t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?Qf:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?Kc:Qf}(E);(null===(n=(t=N).needsInterpolation)||void 0===n?void 0:n.call(t,o,S))&&(a=If([0,100],[o,S],{clamp:!1}),o=0,S=100);var j=N(Object.assign(Object.assign({},E),{from:o,to:S}));return u&&(null==b||b(),(r=c((function(e){if(T||(e=-e),d+=e,!C){var t=j.next(Math.max(0,d));i=t.value,a&&(i=a(i)),C=T?t.done:d<=0}null==_||_(i),C&&(0===O&&(null!=A||(A=d)),O<h?function(e,t,n,r){return r?e>=t+n:e<=-n}(d,A,g,T)&&(O++,"reverse"===v?d=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return arguments.length>3&&void 0!==arguments[3]&&!arguments[3]?t-(e-t)+n:ed(t+-e,t,n)}(d,A,g,T=O%2==0):(d=ed(d,A,g),"mirror"===v&&j.flipTarget()),C=!1,k&&k()):(r.stop(),x&&x()))}))).start()),{stop:function(){null==w||w(),r.stop()}}}function rd(e,t){return t?e*(1e3/t):0}var id=function(e){return 1e3*e},ad=function(e,t){return 1-3*t+3*e},od=function(e,t){return 3*t-6*e},sd=function(e){return 3*e},ud=function(e,t,n){return((ad(t,n)*e+od(t,n))*e+sd(t))*e},ld=function(e,t,n){return 3*ad(t,n)*e*e+2*od(t,n)*e+sd(t)},cd=.1;var fd={linear:Df,easeIn:Uf,easeInOut:zf,easeOut:Ff,circIn:Vf,circInOut:Wf,circOut:Hf,backIn:qf,backInOut:Zf,backOut:Gf,anticipate:Yf,bounceIn:Kf,bounceInOut:function(e){return e<.5?.5*(1-$f(1-2*e)):.5*$f(2*e-1)+.5},bounceOut:$f},dd=function(e){if(Array.isArray(e)){e.length;var t=Xs(e,4);return function(e,t,n,r){if(e===t&&n===r)return Df;for(var i=new Float32Array(11),a=0;a<11;++a)i[a]=ud(a*cd,e,n);function o(t){for(var r=0,a=1;10!==a&&i[a]<=t;++a)r+=cd;--a;var o=r+(t-i[a])/(i[a+1]-i[a])*cd,s=ld(o,e,n);return s>=.001?function(e,t,n,r){for(var i=0;i<8;++i){var a=ld(t,n,r);if(0===a)return t;t-=(ud(t,n,r)-e)/a}return t}(t,o,e,n):0===s?o:function(e,t,n,r,i){var a,o,s=0;do{(a=ud(o=t+(n-t)/2,r,i)-e)>0?n=o:t=o}while(Math.abs(a)>1e-7&&++s<10);return o}(t,r,r+cd,e,n)}return function(e){return 0===e||1===e?e:ud(o(e),t,r)}}(t[0],t[1],t[2],t[3])}return"string"==typeof e?("Invalid easing type '".concat(e,"'"),fd[e]):e},pd=function(e,t){return!("zIndex"===e||"number"!=typeof t&&!Array.isArray(t)&&("string"!=typeof t||!_f.test(t)||t.startsWith("url(")))},hd=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},md=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}},vd=function(){return{type:"keyframes",ease:"linear",duration:.3}},yd=function(e){return{type:"keyframes",duration:.8,values:e}},gd={x:hd,y:hd,z:hd,rotate:hd,rotateX:hd,rotateY:hd,rotateZ:hd,scaleX:md,scaleY:md,scale:md,opacity:vd,backgroundColor:vd,color:vd,default:md},bd=new Set(["brightness","contrast","saturate","opacity"]);function wd(e){var t=l(e.slice(0,-1).split("("),2),n=t[0],r=t[1];if("drop-shadow"===n)return e;var i=l(r.match(vl)||[],1)[0];if(!i)return e;var a=r.replace(i,""),o=bd.has(n)?1:0;return i!==r&&(o*=100),n+"("+o+a+")"}var xd=/([a-z-]*)\(.*?\)/g,kd=Object.assign(Object.assign({},_f),{getAnimatableNone:function(e){var t=e.match(xd);return t?t.map(wd).join(" "):e}}),_d=$s($s({},jl),{color:vf,backgroundColor:vf,outlineColor:vf,fill:vf,stroke:vf,borderColor:vf,borderTopColor:vf,borderRightColor:vf,borderBottomColor:vf,borderLeftColor:vf,filter:kd,WebkitFilter:kd}),Ed=function(e){return _d[e]};function Sd(e,t){var n,r=Ed(e);return r!==kd&&(r=_f),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}function Od(e,t,n){var r;return Array.isArray(t.to)&&(null!==(r=e.duration)&&void 0!==r||(e.duration=.8)),function(e){Array.isArray(e.to)&&null===e.to[0]&&(e.to=Qs([],Xs(e.to),!1),e.to[0]=e.from)}(t),function(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=Ks(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=$s($s({},e),function(e,t){var n;return n=tc(t)?yd:gd[e]||gd.default,$s({to:t},n(t))}(n,t.to))),$s($s({},t),function(e){var t=e.ease,n=e.times,r=e.yoyo,i=e.flip,a=e.loop,o=Ks(e,["ease","times","yoyo","flip","loop"]),s=$s({},o);return n&&(s.offset=n),o.duration&&(s.duration=id(o.duration)),o.repeatDelay&&(s.repeatDelay=id(o.repeatDelay)),t&&(s.ease=function(e){return Array.isArray(e)&&"number"!=typeof e[0]}(t)?t.map(dd):dd(t)),"tween"===o.type&&(s.type="keyframes"),(r||a||i)&&(r?s.repeatType="reverse":a?s.repeatType="loop":i&&(s.repeatType="mirror"),s.repeat=a||r||i||o.repeat),"spring"!==o.type&&(s.type="keyframes"),s}(e))}function Ad(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function Cd(e){return"number"==typeof e?0:Sd("",e)}function Td(e,t){return e[t]||e.default||e}function Nd(e,t,n,r){return void 0===r&&(r={}),t.start((function(i){var a,o,s=function(e,t,n,r,i){var a,o=Td(r,e),s=null!==(a=o.from)&&void 0!==a?a:t.get(),u=pd(e,n);"none"===s&&u&&"string"==typeof n?s=Sd(e,n):Ad(s)&&"string"==typeof n?s=Cd(n):!Array.isArray(n)&&Ad(n)&&"string"==typeof s&&(n=Cd(s));var l=pd(e,s);return"You are trying to animate ".concat(e,' from "').concat(s,'" to "').concat(n,'". ').concat(s," is not an animatable value - to enable this animation set ").concat(s," to a value animatable to ").concat(n," via the `style` property."),l&&u&&!1!==o.type?function(){var r={from:s,to:n,velocity:t.getVelocity(),onComplete:i,onUpdate:function(e){return t.set(e)}};return"inertia"===o.type||"decay"===o.type?function(e){var t,n=e.from,r=void 0===n?0:n,i=e.velocity,a=void 0===i?0:i,o=e.min,s=e.max,u=e.power,l=void 0===u?.8:u,c=e.timeConstant,f=void 0===c?750:c,d=e.bounceStiffness,p=void 0===d?500:d,h=e.bounceDamping,m=void 0===h?10:h,v=e.restDelta,y=void 0===v?1:v,g=e.modifyTarget,b=e.driver,w=e.onUpdate,x=e.onComplete,k=e.onStop;function _(e){return void 0!==o&&e<o||void 0!==s&&e>s}function E(e){return void 0===o?s:void 0===s||Math.abs(o-e)<Math.abs(s-e)?o:s}function S(e){null==t||t.stop(),t=nd(Object.assign(Object.assign({},e),{driver:b,onUpdate:function(t){var n;null==w||w(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:x,onStop:k}))}function O(e){S(Object.assign({type:"spring",stiffness:p,damping:m,restDelta:y},e))}if(_(r))O({from:r,velocity:a,to:E(r)});else{var A=l*a+r;void 0!==g&&(A=g(A));var C,T,N=E(A),j=N===o?-1:1;S({type:"decay",from:r,velocity:a,timeConstant:f,power:l,restDelta:y,modifyTarget:g,onUpdate:_(A)?function(e){C=T,T=e,a=rd(e-C,hu().delta),(1===j&&e>N||-1===j&&e<N)&&O({from:e,to:N,velocity:a})}:void 0})}return{stop:function(){return null==t?void 0:t.stop()}}}($s($s({},r),o)):nd($s($s({},Od(o,r,e)),{onUpdate:function(e){var t;r.onUpdate(e),null===(t=o.onUpdate)||void 0===t||t.call(o,e)},onComplete:function(){var e;r.onComplete(),null===(e=o.onComplete)||void 0===e||e.call(o)}}))}:function(){var e,r,a=nc(n);return t.set(a),i(),null===(e=null==o?void 0:o.onUpdate)||void 0===e||e.call(o,a),null===(r=null==o?void 0:o.onComplete)||void 0===r||r.call(o),{stop:function(){}}}}(e,t,n,r,i),u=function(e,t){var n,r;return null!==(r=null!==(n=(Td(e,t)||{}).delay)&&void 0!==n?n:e.delay)&&void 0!==r?r:0}(r,e),l=function(){return o=s()};return u?a=window.setTimeout(l,id(u)):l(),function(){clearTimeout(a),null==o||o.stop()}}))}var jd=function(e){return/^0[^.\s]+$/.test(e)};function Pd(e,t){-1===e.indexOf(t)&&e.push(t)}function Rd(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Id=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return Pd(this.subscriptions,e),function(){return Rd(t.subscriptions,e)}},e.prototype.notify=function(e,t,n){var r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(var i=0;i<r;i++){var a=this.subscriptions[i];a&&a(e,t,n)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),Ld=function(){function e(e){var t=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new Id,this.velocityUpdateSubscribers=new Id,this.renderSubscribers=new Id,this.canTrackVelocity=!1,this.updateAndNotify=function(e,n){void 0===n&&(n=!0),t.prev=t.current,t.current=e;var r=hu(),i=r.delta,a=r.timestamp;t.lastUpdated!==a&&(t.timeDelta=i,t.lastUpdated=a,mu.postRender(t.scheduleVelocityCheck)),t.prev!==t.current&&t.updateSubscribers.notify(t.current),t.velocityUpdateSubscribers.getSize()&&t.velocityUpdateSubscribers.notify(t.getVelocity()),n&&t.renderSubscribers.notify(t.current)},this.scheduleVelocityCheck=function(){return mu.postRender(t.velocityCheck)},this.velocityCheck=function(e){e.timestamp!==t.lastUpdated&&(t.prev=t.current,t.velocityUpdateSubscribers.notify(t.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=function(e){return!isNaN(parseFloat(e))}(this.current)}return e.prototype.onChange=function(e){return this.updateSubscribers.add(e)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(e){return e(this.get()),this.renderSubscribers.add(e)},e.prototype.attach=function(e){this.passiveEffect=e},e.prototype.set=function(e,t){void 0===t&&(t=!0),t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?rd(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(e){var t=this;return this.stop(),new Promise((function(n){t.hasAnimated=!0,t.stopAnimation=e(n)})).then((function(){return t.clearAnimation()}))},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function Md(e){return new Ld(e)}var Bd=function(e){return function(t){return t.test(e)}},Dd=[Al,_l,kl,xl,Sl,El,{test:function(e){return"auto"===e},parse:function(e){return e}}],Ud=function(e){return Dd.find(Bd(e))},Fd=Qs(Qs([],Xs(Dd),!1),[vf,_f],!1),zd=function(e){return Fd.find(Bd(e))};function Vd(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Md(n))}function Hd(e,t){if(t)return(t[e]||t.default||t).from}function Wd(e,t,n){var r;void 0===n&&(n={});var i=Wu(e,t,n.custom),a=(i||{}).transition,o=void 0===a?e.getDefaultTransition()||{}:a;n.transitionOverride&&(o=n.transitionOverride);var s=i?function(){return qd(e,i,n)}:function(){return Promise.resolve()},u=(null===(r=e.variantChildren)||void 0===r?void 0:r.size)?function(r){void 0===r&&(r=0);var i=o.delayChildren,a=void 0===i?0:i,s=o.staggerChildren,u=o.staggerDirection;return function(e,t,n,r,i,a){void 0===n&&(n=0),void 0===r&&(r=0),void 0===i&&(i=1);var o=[],s=(e.variantChildren.size-1)*r,u=1===i?function(e){return void 0===e&&(e=0),e*r}:function(e){return void 0===e&&(e=0),s-e*r};return Array.from(e.variantChildren).sort(Gd).forEach((function(e,r){o.push(Wd(e,t,$s($s({},a),{delay:n+u(r)})).then((function(){return e.notifyAnimationComplete(t)})))})),Promise.all(o)}(e,t,a+r,s,u,n)}:function(){return Promise.resolve()},l=o.when;if(l){var c=Xs("beforeChildren"===l?[s,u]:[u,s],2),f=c[0],d=c[1];return f().then(d)}return Promise.all([s(),u(n.delay)])}function qd(e,t,n){var r,i=void 0===n?{}:n,a=i.delay,o=void 0===a?0:a,s=i.transitionOverride,u=i.type,l=e.makeTargetAnimatable(t),c=l.transition,f=void 0===c?e.getDefaultTransition():c,d=l.transitionEnd,p=Ks(l,["transition","transitionEnd"]);s&&(f=s);var h=[],m=u&&(null===(r=e.animationState)||void 0===r?void 0:r.getState()[u]);for(var v in p){var y=e.getValue(v),g=p[v];if(!(!y||void 0===g||m&&Zd(m,v))){var b=$s({delay:o},f);e.shouldReduceMotion&&ol(v)&&(b=$s($s({},b),{type:!1,delay:0}));var w=Nd(v,y,g,b);h.push(w)}}return Promise.all(h).then((function(){d&&function(e,t){var n=Wu(e,t),r=n?e.makeTargetAnimatable(n,!1):{},i=r.transitionEnd,a=void 0===i?{}:i;r.transition;var o=Ks(r,["transitionEnd","transition"]);for(var s in o=$s($s({},o),a))Vd(e,s,nc(o[s]))}(e,d)}))}function Gd(e,t){return e.sortNodePosition(t)}function Zd(e,t){var n=e.protectedKeys,r=e.needsAnimating,i=n.hasOwnProperty(t)&&!0!==r[t];return r[t]=!1,i}var Yd=[sc.Animate,sc.InView,sc.Focus,sc.Hover,sc.Tap,sc.Drag,sc.Exit],$d=Qs([],Xs(Yd),!1).reverse(),Kd=Yd.length;function Xd(e){var t=function(e){return function(t){return Promise.all(t.map((function(t){var n=t.animation,r=t.options;return function(e,t,n){var r;if(void 0===n&&(n={}),e.notifyAnimationStart(t),Array.isArray(t)){var i=t.map((function(t){return Wd(e,t,n)}));r=Promise.all(i)}else if("string"==typeof t)r=Wd(e,t,n);else{var a="function"==typeof t?Wu(e,t,n.custom):t;r=qd(e,a,n)}return r.then((function(){return e.notifyAnimationComplete(t)}))}(e,n,r)})))}}(e),n=function(){var e;return(e={})[sc.Animate]=Qd(!0),e[sc.InView]=Qd(),e[sc.Hover]=Qd(),e[sc.Tap]=Qd(),e[sc.Drag]=Qd(),e[sc.Focus]=Qd(),e[sc.Exit]=Qd(),e}(),r={},i=!0,a=function(t,n){var r=Wu(e,n);if(r){r.transition;var i=r.transitionEnd,a=Ks(r,["transition","transitionEnd"]);t=$s($s($s({},t),a),i)}return t};function o(o,s){for(var u,l=e.getProps(),c=e.getVariantContext(!0)||{},f=[],d=new Set,p={},h=1/0,m=function(t){var r=$d[t],m=n[r],v=null!==(u=l[r])&&void 0!==u?u:c[r],y=Vu(v),g=r===s?m.isActive:null;!1===g&&(h=t);var b=v===c[r]&&v!==l[r]&&y;if(b&&i&&e.manuallyAnimateOnMount&&(b=!1),m.protectedKeys=$s({},p),!m.isActive&&null===g||!v&&!m.prevProp||ec(v)||"boolean"==typeof v)return"continue";var w=function(e,t){return"string"==typeof t?t!==e:!!zu(t)&&!Hc(t,e)}(m.prevProp,v),x=w||r===s&&m.isActive&&!b&&y||t>h&&y,k=Array.isArray(v)?v:[v],_=k.reduce(a,{});!1===g&&(_={});var E=m.prevResolvedValues,S=void 0===E?{}:E,O=$s($s({},S),_),A=function(e){x=!0,d.delete(e),m.needsAnimating[e]=!0};for(var C in O){var T=_[C],N=S[C];p.hasOwnProperty(C)||(T!==N?tc(T)&&tc(N)?!Hc(T,N)||w?A(C):m.protectedKeys[C]=!0:void 0!==T?A(C):d.add(C):void 0!==T&&d.has(C)?A(C):m.protectedKeys[C]=!0)}m.prevProp=v,m.prevResolvedValues=_,m.isActive&&(p=$s($s({},p),_)),i&&e.blockInitialAnimation&&(x=!1),x&&!b&&f.push.apply(f,Qs([],Xs(k.map((function(e){return{animation:e,options:$s({type:r},o)}}))),!1))},v=0;v<Kd;v++)m(v);if(r=$s({},p),d.size){var y={};d.forEach((function(t){var n=e.getBaseTarget(t);void 0!==n&&(y[t]=n)})),f.push({animation:y})}var g=Boolean(f.length);return i&&!1===l.initial&&!e.manuallyAnimateOnMount&&(g=!1),i=!1,g?t(f):Promise.resolve()}return{isAnimated:function(e){return void 0!==r[e]},animateChanges:o,setActive:function(t,r,i){var a;if(n[t].isActive===r)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach((function(e){var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r;var s=o(i,t);for(var u in n)n[u].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:function(){return n}}}function Qd(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var Jd={animation:Fc((function(e){var t=e.visualElement,n=e.animate;t.animationState||(t.animationState=Xd(t)),ec(n)&&(0,a.useEffect)((function(){return n.subscribe(t)}),[n])})),exit:Fc((function(e){var t=e.custom,n=e.visualElement,r=Xs(Vc(),2),i=r[0],o=r[1],s=(0,a.useContext)(bu);(0,a.useEffect)((function(){var e,r;n.isPresent=i;var a=null===(e=n.animationState)||void 0===e?void 0:e.setActive(sc.Exit,!i,{custom:null!==(r=null==s?void 0:s.custom)&&void 0!==r?r:t});!i&&(null==a||a.then(o))}),[i])}))},ep=function(e){return e.hasOwnProperty("x")&&e.hasOwnProperty("y")},tp=function(e){return ep(e)&&e.hasOwnProperty("z")},np=function(e,t){return Math.abs(e-t)};function rp(e,t){if(Ef(e)&&Ef(t))return np(e,t);if(ep(e)&&ep(t)){var n=np(e.x,t.x),r=np(e.y,t.y),i=tp(e)&&tp(t)?np(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(i,2))}}var ip=function(){function e(e,t,n){var r=this,i=(void 0===n?{}:n).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(r.lastMoveEvent&&r.lastMoveEventInfo){var e=sp(r.lastMoveEventInfo,r.history),t=null!==r.startEvent,n=rp(e.offset,{x:0,y:0})>=3;if(t||n){var i=e.point,a=hu().timestamp;r.history.push($s($s({},i),{timestamp:a}));var o=r.handlers,s=o.onStart,u=o.onMove;t||(s&&s(r.lastMoveEvent,e),r.startEvent=r.lastMoveEvent),u&&u(r.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){r.lastMoveEvent=e,r.lastMoveEventInfo=ap(t,r.transformPagePoint),dc(e)&&0===e.buttons?r.handlePointerUp(e,t):mu.update(r.updatePoint,!0)},this.handlePointerUp=function(e,t){r.end();var n=r.handlers,i=n.onEnd,a=n.onSessionEnd,o=sp(ap(t,r.transformPagePoint),r.history);r.startEvent&&i&&i(e,o),a&&a(e,o)},!(pc(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=i;var a=ap(yc(e),this.transformPagePoint),o=a.point,s=hu().timestamp;this.history=[$s($s({},o),{timestamp:s})];var u=t.onSessionStart;u&&u(e,sp(a,this.history)),this.removeListeners=Pc(kc(window,"pointermove",this.handlePointerMove),kc(window,"pointerup",this.handlePointerUp),kc(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),lu.update(this.updatePoint)},e}();function ap(e,t){return t?{point:t(e.point)}:e}function op(e,t){return{x:e.x-t.x,y:e.y-t.y}}function sp(e,t){var n=e.point;return{point:n,delta:op(n,lp(t)),offset:op(n,up(t)),velocity:cp(t,.1)}}function up(e){return e[0]}function lp(e){return e[e.length-1]}function cp(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,i=lp(e);n>=0&&(r=e[n],!(i.timestamp-r.timestamp>id(t)));)n--;if(!r)return{x:0,y:0};var a=(i.timestamp-r.timestamp)/1e3;if(0===a)return{x:0,y:0};var o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function fp(e){return e.max-e.min}function dp(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),rp(e,t)<n}function pp(e,t,n,r){void 0===r&&(r=.5),e.origin=r,e.originPoint=Jc(t.min,t.max,e.origin),e.scale=fp(n)/fp(t),(dp(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Jc(n.min,n.max,e.origin)-e.originPoint,(dp(e.translate)||isNaN(e.translate))&&(e.translate=0)}function hp(e,t,n,r){pp(e.x,t.x,n.x,null==r?void 0:r.originX),pp(e.y,t.y,n.y,null==r?void 0:r.originY)}function mp(e,t,n){e.min=n.min+t.min,e.max=e.min+fp(t)}function vp(e,t,n){e.min=t.min-n.min,e.max=e.min+fp(t)}function yp(e,t,n){vp(e.x,t.x,n.x),vp(e.y,t.y,n.y)}function gp(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function bp(e,t){var n,r=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&(r=(n=Xs([i,r],2))[0],i=n[1]),{min:r,max:i}}var wp=.35;function xp(e,t,n){return{min:kp(e,t),max:kp(e,n)}}function kp(e,t){var n;return"number"==typeof e?e:null!==(n=e[t])&&void 0!==n?n:0}function _p(e){return[e("x"),e("y")]}function Ep(e){var t=e.top;return{x:{min:e.left,max:e.right},y:{min:t,max:e.bottom}}}function Sp(e){return void 0===e||1===e}function Op(e){var t=e.scale,n=e.scaleX,r=e.scaleY;return!Sp(t)||!Sp(n)||!Sp(r)}function Ap(e){return Op(e)||Cp(e.x)||Cp(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function Cp(e){return e&&"0%"!==e}function Tp(e,t,n){return n+t*(e-n)}function Np(e,t,n,r,i){return void 0!==i&&(e=Tp(e,i,r)),Tp(e,n,r)+t}function jp(e,t,n,r,i){void 0===t&&(t=0),void 0===n&&(n=1),e.min=Np(e.min,t,n,r,i),e.max=Np(e.max,t,n,r,i)}function Pp(e,t){var n=t.x,r=t.y;jp(e.x,n.translate,n.scale,n.originPoint),jp(e.y,r.translate,r.scale,r.originPoint)}function Rp(e,t){e.min=e.min+t,e.max=e.max+t}function Ip(e,t,n){var r=Xs(n,3),i=r[0],a=r[1],o=r[2],s=void 0!==t[o]?t[o]:.5,u=Jc(e.min,e.max,s);jp(e,t[i],t[a],u,t.scale)}var Lp=["x","scaleX","originX"],Mp=["y","scaleY","originY"];function Bp(e,t){Ip(e.x,t,Lp),Ip(e.y,t,Mp)}function Dp(e,t){return Ep(function(e,t){if(!t)return e;var n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}var Up=new WeakMap,Fp=function(){function e(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=e}return e.prototype.start=function(e,t){var n=this,r=(void 0===t?{}:t).snapToCursor,i=void 0!==r&&r;!1!==this.visualElement.isPresent&&(this.panSession=new ip(e,{onSessionStart:function(e){n.stopAnimation(),i&&n.snapToCursor(yc(e,"page").point)},onStart:function(e,t){var r,i=n.getProps(),a=i.drag,o=i.dragPropagation,s=i.onDragStart;(!a||o||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=Ac(a),n.openGlobalLock))&&(n.isDragging=!0,n.currentDirection=null,n.resolveConstraints(),n.visualElement.projection&&(n.visualElement.projection.isAnimationBlocked=!0,n.visualElement.projection.target=void 0),_p((function(e){var t,r,i=n.getAxisMotionValue(e).get()||0;if(kl.test(i)){var a=null===(r=null===(t=n.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===r?void 0:r.actual[e];a&&(i=fp(a)*(parseFloat(i)/100))}n.originPoint[e]=i})),null==s||s(e,t),null===(r=n.visualElement.animationState)||void 0===r||r.setActive(sc.Drag,!0))},onMove:function(e,t){var r=n.getProps(),i=r.dragPropagation,a=r.dragDirectionLock,o=r.onDirectionLock,s=r.onDrag;if(i||n.openGlobalLock){var u=t.offset;if(a&&null===n.currentDirection)return n.currentDirection=function(e,t){void 0===t&&(t=10);var n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(u),void(null!==n.currentDirection&&(null==o||o(n.currentDirection)));n.updateAxis("x",t.point,u),n.updateAxis("y",t.point,u),n.visualElement.syncRender(),null==s||s(e,t)}},onSessionEnd:function(e,t){return n.stop(e,t)}},{transformPagePoint:this.visualElement.getTransformPagePoint()}))},e.prototype.stop=function(e,t){var n=this.isDragging;if(this.cancel(),n){var r=t.velocity;this.startAnimation(r);var i=this.getProps().onDragEnd;null==i||i(e,t)}},e.prototype.cancel=function(){var e,t;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(e=this.panSession)||void 0===e||e.end(),this.panSession=void 0,!this.getProps().dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(sc.Drag,!1)},e.prototype.updateAxis=function(e,t,n){var r=this.getProps().drag;if(n&&zp(e,r,this.currentDirection)){var i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=function(e,t,n){var r=t.min,i=t.max;return void 0!==r&&e<r?e=n?Jc(r,e,n.min):Math.max(e,r):void 0!==i&&e>i&&(e=n?Jc(i,e,n.max):Math.min(e,i)),e}(a,this.constraints[e],this.elastic[e])),i.set(a)}},e.prototype.resolveConstraints=function(){var e=this,t=this.getProps(),n=t.dragConstraints,r=t.dragElastic,i=(this.visualElement.projection||{}).layout,a=this.constraints;n&&Fu(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!n||!i)&&function(e,t){var n=t.top,r=t.left,i=t.bottom,a=t.right;return{x:gp(e.x,r,a),y:gp(e.y,n,i)}}(i.actual,n),this.elastic=function(e){return void 0===e&&(e=wp),!1===e?e=0:!0===e&&(e=wp),{x:xp(e,"left","right"),y:xp(e,"top","bottom")}}(r),a!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&_p((function(t){e.getAxisMotionValue(t)&&(e.constraints[t]=function(e,t){var n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(i.actual[t],e.constraints[t]))}))},e.prototype.resolveRefConstraints=function(){var e=this.getProps(),t=e.dragConstraints,n=e.onMeasureDragConstraints;if(!t||!Fu(t))return!1;var r=t.current,i=this.visualElement.projection;if(!i||!i.layout)return!1;var a=function(e,t,n){var r=Dp(e,n),i=t.scroll;return i&&(Rp(r.x,i.x),Rp(r.y,i.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),o=function(e,t){return{x:bp(e.x,t.x),y:bp(e.y,t.y)}}(i.layout.actual,a);if(n){var s=n(function(e){var t=e.x,n=e.y;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}(o));this.hasMutatedConstraints=!!s,s&&(o=Ep(s))}return o},e.prototype.startAnimation=function(e){var t=this,n=this.getProps(),r=n.drag,i=n.dragMomentum,a=n.dragElastic,o=n.dragTransition,s=n.dragSnapToOrigin,u=n.onDragTransitionEnd,l=this.constraints||{},c=_p((function(n){var u;if(zp(n,r,t.currentDirection)){var c=null!==(u=null==l?void 0:l[n])&&void 0!==u?u:{};s&&(c={min:0,max:0});var f=a?200:1e6,d=a?40:1e7,p=$s($s({type:"inertia",velocity:i?e[n]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10},o),c);return t.startAxisValueAnimation(n,p)}}));return Promise.all(c).then(u)},e.prototype.startAxisValueAnimation=function(e,t){return Nd(e,this.getAxisMotionValue(e),0,t)},e.prototype.stopAnimation=function(){var e=this;_p((function(t){return e.getAxisMotionValue(t).stop()}))},e.prototype.getAxisMotionValue=function(e){var t,n,r="_drag"+e.toUpperCase();return this.visualElement.getProps()[r]||this.visualElement.getValue(e,null!==(n=null===(t=this.visualElement.getProps().initial)||void 0===t?void 0:t[e])&&void 0!==n?n:0)},e.prototype.snapToCursor=function(e){var t=this;_p((function(n){if(zp(n,t.getProps().drag,t.currentDirection)){var r=t.visualElement.projection,i=t.getAxisMotionValue(n);if(r&&r.layout){var a=r.layout.actual[n],o=a.min,s=a.max;i.set(e[n]-Jc(o,s,.5))}}}))},e.prototype.scalePositionWithinConstraints=function(){var e,t=this,n=this.getProps(),r=n.drag,i=n.dragConstraints,a=this.visualElement.projection;if(Fu(i)&&a&&this.constraints){this.stopAnimation();var o={x:0,y:0};_p((function(e){var n=t.getAxisMotionValue(e);if(n){var r=n.get();o[e]=function(e,t){var n=.5,r=fp(e),i=fp(t);return i>r?n=Qc(t.min,t.max-r,e.min):r>i&&(n=Qc(e.min,e.max-i,t.min)),qc(0,1,n)}({min:r,max:r},t.constraints[e])}}));var s=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=s?s({},""):"none",null===(e=a.root)||void 0===e||e.updateScroll(),a.updateLayout(),this.resolveConstraints(),_p((function(e){if(zp(e,r,null)){var n=t.getAxisMotionValue(e),i=t.constraints[e],a=i.min,s=i.max;n.set(Jc(a,s,o[e]))}}))}},e.prototype.addListeners=function(){var e,t=this;Up.set(this.visualElement,this);var n=kc(this.visualElement.getInstance(),"pointerdown",(function(e){var n=t.getProps(),r=n.drag,i=n.dragListener;r&&(void 0===i||i)&&t.start(e)})),r=function(){Fu(t.getProps().dragConstraints)&&(t.constraints=t.resolveRefConstraints())},i=this.visualElement.projection,a=i.addEventListener("measure",r);i&&!i.layout&&(null===(e=i.root)||void 0===e||e.updateScroll(),i.updateLayout()),r();var o=cc(window,"resize",(function(){return t.scalePositionWithinConstraints()}));return i.addEventListener("didUpdate",(function(e){var n=e.delta,r=e.hasLayoutChanged;t.isDragging&&r&&(_p((function(e){var r=t.getAxisMotionValue(e);r&&(t.originPoint[e]+=n[e].translate,r.set(r.get()+n[e].translate))})),t.visualElement.syncRender())})),function(){o(),n(),a()}},e.prototype.getProps=function(){var e=this.visualElement.getProps(),t=e.drag,n=void 0!==t&&t,r=e.dragDirectionLock,i=void 0!==r&&r,a=e.dragPropagation,o=void 0!==a&&a,s=e.dragConstraints,u=void 0!==s&&s,l=e.dragElastic,c=void 0===l?wp:l,f=e.dragMomentum,d=void 0===f||f;return $s($s({},e),{drag:n,dragDirectionLock:i,dragPropagation:o,dragConstraints:u,dragElastic:c,dragMomentum:d})},e}();function zp(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}var Vp={pan:Fc((function(e){var t=e.onPan,n=e.onPanStart,r=e.onPanEnd,i=e.onPanSessionStart,o=e.visualElement,s=t||n||r||i,u=(0,a.useRef)(null),l=(0,a.useContext)(Lu).transformPagePoint,c={onSessionStart:i,onStart:n,onMove:t,onEnd:function(e,t){u.current=null,r&&r(e,t)}};(0,a.useEffect)((function(){null!==u.current&&u.current.updateHandlers(c)})),_c(o,"pointerdown",s&&function(e){u.current=new ip(e,c,{transformPagePoint:l})}),Au((function(){return u.current&&u.current.end()}))})),drag:Fc((function(e){var t=e.dragControls,n=e.visualElement,r=wu((function(){return new Fp(n)}));(0,a.useEffect)((function(){return t&&t.subscribe(r)}),[r,t]),(0,a.useEffect)((function(){return r.addListeners()}),[r])}))},Hp=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"],Wp=function(e){var t=e.treeType,n=void 0===t?"":t,r=e.build,i=e.getBaseTarget,a=e.makeTargetAnimatable,o=e.measureViewportBox,s=e.render,u=e.readValueFromInstance,l=e.removeValueFromRenderState,c=e.sortNodePosition,f=e.scrapeMotionValuesFromProps;return function(e,t){var d=e.parent,p=e.props,h=e.presenceId,m=e.blockInitialAnimation,v=e.visualState,y=e.shouldReduceMotion;void 0===t&&(t={});var g,b,w=!1,x=v.latestValues,k=v.renderState,_=function(){var e=Hp.map((function(){return new Id})),t={},n={clearAllListeners:function(){return e.forEach((function(e){return e.clear()}))},updatePropListeners:function(e){Hp.forEach((function(r){var i,a="on"+r,o=e[a];null===(i=t[r])||void 0===i||i.call(t),o&&(t[r]=n[a](o))}))}};return e.forEach((function(e,t){n["on"+Hp[t]]=function(t){return e.add(t)},n["notify"+Hp[t]]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.notify.apply(e,Qs([],Xs(t),!1))}})),n}(),E=new Map,S=new Map,O={},A=$s({},x);function C(){g&&w&&(T(),s(g,k,p.style,B.projection))}function T(){r(B,k,x,t,p)}function N(){_.notifyUpdate(x)}function j(e,t){var n=t.onChange((function(t){x[e]=t,p.onUpdate&&mu.update(N,!1,!0)})),r=t.onRenderRequest(B.scheduleRender);S.set(e,(function(){n(),r()}))}var P=f(p);for(var R in P){var I=P[R];void 0!==x[R]&&cl(I)&&I.set(x[R],!1)}var L=qu(p),M=Gu(p),B=$s($s({treeType:n,current:null,depth:d?d.depth+1:0,parent:d,children:new Set,presenceId:h,shouldReduceMotion:y,variantChildren:M?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null==d?void 0:d.isMounted()),blockInitialAnimation:m,isMounted:function(){return Boolean(g)},mount:function(e){w=!0,g=B.current=e,B.projection&&B.projection.mount(e),M&&d&&!L&&(b=null==d?void 0:d.addVariantChild(B)),E.forEach((function(e,t){return j(t,e)})),null==d||d.children.add(B),B.setProps(p)},unmount:function(){var e;null===(e=B.projection)||void 0===e||e.unmount(),lu.update(N),lu.render(C),S.forEach((function(e){return e()})),null==b||b(),null==d||d.children.delete(B),_.clearAllListeners(),g=void 0,w=!1},addVariantChild:function(e){var t,n=B.getClosestVariantNode();if(n)return null===(t=n.variantChildren)||void 0===t||t.add(e),function(){return n.variantChildren.delete(e)}},sortNodePosition:function(e){return c&&n===e.treeType?c(B.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return M?B:null==d?void 0:d.getClosestVariantNode()},getLayoutId:function(){return p.layoutId},getInstance:function(){return g},getStaticValue:function(e){return x[e]},setStaticValue:function(e,t){return x[e]=t},getLatestValues:function(){return x},setVisibility:function(e){B.isVisible!==e&&(B.isVisible=e,B.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),a(B,e,p,t)},measureViewportBox:function(){return o(g,p)},addValue:function(e,t){B.hasValue(e)&&B.removeValue(e),E.set(e,t),x[e]=t.get(),j(e,t)},removeValue:function(e){var t;E.delete(e),null===(t=S.get(e))||void 0===t||t(),S.delete(e),delete x[e],l(e,k)},hasValue:function(e){return E.has(e)},getValue:function(e,t){var n=E.get(e);return void 0===n&&void 0!==t&&(n=Md(t),B.addValue(e,n)),n},forEachValue:function(e){return E.forEach(e)},readValue:function(e){var n;return null!==(n=x[e])&&void 0!==n?n:u(g,e,t)},setBaseTarget:function(e,t){A[e]=t},getBaseTarget:function(e){if(i){var t=i(p,e);if(void 0!==t&&!cl(t))return t}return A[e]}},_),{build:function(){return T(),k},scheduleRender:function(){mu.render(C,!1,!0)},syncRender:C,setProps:function(e){(e.transformTemplate||p.transformTemplate)&&B.scheduleRender(),p=e,_.updatePropListeners(e),O=function(e,t,n){var r;for(var i in t){var a=t[i],o=n[i];if(cl(a))e.addValue(i,a);else if(cl(o))e.addValue(i,Md(a));else if(o!==a)if(e.hasValue(i)){var s=e.getValue(i);!s.hasAnimated&&s.set(a)}else e.addValue(i,Md(null!==(r=e.getStaticValue(i))&&void 0!==r?r:a))}for(var i in n)void 0===t[i]&&e.removeValue(i);return t}(B,f(p),O)},getProps:function(){return p},getVariant:function(e){var t;return null===(t=p.variants)||void 0===t?void 0:t[e]},getDefaultTransition:function(){return p.transition},getTransformPagePoint:function(){return p.transformPagePoint},getVariantContext:function(e){if(void 0===e&&(e=!1),e)return null==d?void 0:d.getVariantContext();if(!L){var t=(null==d?void 0:d.getVariantContext())||{};return void 0!==p.initial&&(t.initial=p.initial),t}for(var n={},r=0;r<Gp;r++){var i=qp[r],a=p[i];(Vu(a)||!1===a)&&(n[i]=a)}return n}});return B}},qp=Qs(["initial"],Xs(Yd),!1),Gp=qp.length;function Zp(e){return"string"==typeof e&&e.startsWith("var(--")}var Yp=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function $p(e,t,n){void 0===n&&(n=1),'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.');var r=Xs(function(e){var t=Yp.exec(e);if(!t)return[,];var n=Xs(t,3);return[n[1],n[2]]}(e),2),i=r[0],a=r[1];if(i){var o=window.getComputedStyle(t).getPropertyValue(i);return o?o.trim():Zp(a)?$p(a,t,n+1):a}}var Kp,Xp=new Set(["width","height","top","left","right","bottom","x","y"]),Qp=function(e){return Xp.has(e)},Jp=function(e,t){e.set(t,!1),e.set(t)},eh=function(e){return e===Al||e===_l};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(Kp||(Kp={}));var th=function(e,t){return parseFloat(e.split(", ")[t])},nh=function(e,t){return function(n,r){var i=r.transform;if("none"===i||!i)return 0;var a=i.match(/^matrix3d\((.+)\)$/);if(a)return th(a[1],t);var o=i.match(/^matrix\((.+)\)$/);return o?th(o[1],e):0}},rh=new Set(["x","y","z"]),ih=rl.filter((function(e){return!rh.has(e)})),ah={width:function(e,t){var n=e.x,r=t.paddingLeft,i=void 0===r?"0":r,a=t.paddingRight,o=void 0===a?"0":a;return n.max-n.min-parseFloat(i)-parseFloat(o)},height:function(e,t){var n=e.y,r=t.paddingTop,i=void 0===r?"0":r,a=t.paddingBottom,o=void 0===a?"0":a;return n.max-n.min-parseFloat(i)-parseFloat(o)},top:function(e,t){var n=t.top;return parseFloat(n)},left:function(e,t){var n=t.left;return parseFloat(n)},bottom:function(e,t){var n=e.y,r=t.top;return parseFloat(r)+(n.max-n.min)},right:function(e,t){var n=e.x,r=t.left;return parseFloat(r)+(n.max-n.min)},x:nh(4,13),y:nh(5,14)};function oh(e,t,n,r){return function(e){return Object.keys(e).some(Qp)}(t)?function(e,t,n,r){void 0===n&&(n={}),void 0===r&&(r={}),t=$s({},t),r=$s({},r);var i=Object.keys(t).filter(Qp),a=[],o=!1,s=[];if(i.forEach((function(i){var u=e.getValue(i);if(e.hasValue(i)){var l,c=n[i],f=Ud(c),d=t[i];if(tc(d)){var p=d.length,h=null===d[0]?1:0;c=d[h],f=Ud(c);for(var m=h;m<p;m++)l?Ud(d[m]):(l=Ud(d[m]))===f||eh(f)&&eh(l)}else l=Ud(d);if(f!==l)if(eh(f)&&eh(l)){var v=u.get();"string"==typeof v&&u.set(parseFloat(v)),"string"==typeof d?t[i]=parseFloat(d):Array.isArray(d)&&l===_l&&(t[i]=d.map(parseFloat))}else(null==f?void 0:f.transform)&&(null==l?void 0:l.transform)&&(0===c||0===d)?0===c?u.set(l.transform(c)):t[i]=f.transform(d):(o||(a=function(e){var t=[];return ih.forEach((function(n){var r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t.length&&e.syncRender(),t}(e),o=!0),s.push(i),r[i]=void 0!==r[i]?r[i]:t[i],Jp(u,d))}})),s.length){var u=s.indexOf("height")>=0?window.pageYOffset:null,l=function(e,t,n){var r=t.measureViewportBox(),i=t.getInstance(),a=getComputedStyle(i),o=a.display,s={};"none"===o&&t.setStaticValue("display",e.display||"block"),n.forEach((function(e){s[e]=ah[e](r,a)})),t.syncRender();var u=t.measureViewportBox();return n.forEach((function(n){var r=t.getValue(n);Jp(r,s[n]),e[n]=ah[n](u,a)})),e}(t,e,s);return a.length&&a.forEach((function(t){var n=Xs(t,2),r=n[0],i=n[1];e.getValue(r).set(i)})),e.syncRender(),null!==u&&window.scrollTo({top:u}),{target:l,transitionEnd:r}}return{target:t,transitionEnd:r}}(e,t,n,r):{target:t,transitionEnd:r}}var sh={treeType:"dom",readValueFromInstance:function(e,t){if(ol(t)){var n=Ed(t);return n&&n.default||0}var r,i=(r=e,window.getComputedStyle(r));return(dl(t)?i.getPropertyValue(t):i[t])||0},sortNodePosition:function(e,t){return 2&e.compareDocumentPosition(t)?1:-1},getBaseTarget:function(e,t){var n;return null===(n=e.style)||void 0===n?void 0:n[t]},measureViewportBox:function(e,t){return Dp(e,t.transformPagePoint)},resetTransform:function(e,t,n){var r=n.transformTemplate;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.vars,r=t.style;delete n[e],delete r[e]},makeTargetAnimatable:function(e,t,n,r){var i=n.transformValues;void 0===r&&(r=!0);var a=t.transition,o=t.transitionEnd,s=Ks(t,["transition","transitionEnd"]),u=function(e,t,n){var r,i,a={};for(var o in e)a[o]=null!==(r=Hd(o,t))&&void 0!==r?r:null===(i=n.getValue(o))||void 0===i?void 0:i.get();return a}(s,a||{},e);if(i&&(o&&(o=i(o)),s&&(s=i(s)),u&&(u=i(u))),r){!function(e,t,n){var r,i,a,o,s=Object.keys(t).filter((function(t){return!e.hasValue(t)})),u=s.length;if(u)for(var l=0;l<u;l++){var c=s[l],f=t[c],d=null;Array.isArray(f)&&(d=f[0]),null===d&&(d=null!==(i=null!==(r=n[c])&&void 0!==r?r:e.readValue(c))&&void 0!==i?i:t[c]),null!=d&&("string"==typeof d&&(/^\-?\d*\.?\d+$/.test(d)||jd(d))?d=parseFloat(d):!zd(d)&&_f.test(f)&&(d=Sd(c,f)),e.addValue(c,Md(d)),null!==(a=(o=n)[c])&&void 0!==a||(o[c]=d),e.setBaseTarget(c,d))}}(e,s,u);var l=function(e,t,n,r){var i=function(e,t,n){var r,i=Ks(t,[]),a=e.getInstance();if(!(a instanceof Element))return{target:i,transitionEnd:n};for(var o in n&&(n=$s({},n)),e.forEachValue((function(e){var t=e.get();if(Zp(t)){var n=$p(t,a);n&&e.set(n)}})),i){var s=i[o];if(Zp(s)){var u=$p(s,a);u&&(i[o]=u,n&&(null!==(r=n[o])&&void 0!==r||(n[o]=s)))}}return{target:i,transitionEnd:n}}(e,t,r);return oh(e,t=i.target,n,r=i.transitionEnd)}(e,s,u,o);o=l.transitionEnd,s=l.target}return $s({transition:a,transitionEnd:o},s)},scrapeMotionValuesFromProps:Ql,build:function(e,t,n,r,i){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden"),Pl(t,n,r,i.transformTemplate)},render:$l},uh=Wp(sh),lh=Wp($s($s({},sh),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return ol(t)?(null===(n=Ed(t))||void 0===n?void 0:n.default)||0:(t=Kl.has(t)?t:Yl(t),e.getAttribute(t))},scrapeMotionValuesFromProps:Jl,build:function(e,t,n,r,i){Hl(t,n,r,i.transformTemplate)},render:Xl})),ch=function(e,t){return el(e)?lh(t,{enableHardwareAcceleration:!1}):uh(t,{enableHardwareAcceleration:!0})};function fh(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var dh={correct:function(e,t){if(!t.target)return e;if("string"==typeof e){if(!_l.test(e))return e;e=parseFloat(e)}var n=fh(e,t.target.x),r=fh(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},ph="_$css",hh={correct:function(e,t){var n=t.treeScale,r=t.projectionDelta,i=e,a=e.includes("var("),o=[];a&&(e=e.replace(Yp,(function(e){return o.push(e),ph})));var s=_f.parse(e);if(s.length>5)return i;var u=_f.createTransformer(e),l="number"!=typeof s[0]?1:0,c=r.x.scale*n.x,f=r.y.scale*n.y;s[0+l]/=c,s[1+l]/=f;var d=Jc(c,f,.5);"number"==typeof s[2+l]&&(s[2+l]/=d),"number"==typeof s[3+l]&&(s[3+l]/=d);var p=u(s);if(a){var h=0;p=p.replace(ph,(function(){var e=o[h];return h++,e}))}return p}},mh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ys(t,e),t.prototype.componentDidMount=function(){var e,t=this,n=this.props,r=n.visualElement,i=n.layoutGroup,a=n.switchLayoutGroup,o=n.layoutId,s=r.projection;e=vh,Object.assign(tl,e),s&&((null==i?void 0:i.group)&&i.group.add(s),(null==a?void 0:a.register)&&o&&a.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",(function(){t.safeToRemove()})),s.setOptions($s($s({},s.options),{onExitComplete:function(){return t.safeToRemove()}}))),Yu.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(e){var t=this,n=this.props,r=n.layoutDependency,i=n.visualElement,a=n.drag,o=n.isPresent,s=i.projection;return s?(s.isPresent=o,a||e.layoutDependency!==r||void 0===r?s.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?s.promote():s.relegate()||mu.postRender((function(){var e;(null===(e=s.getStack())||void 0===e?void 0:e.members.length)||t.safeToRemove()}))),null):null},t.prototype.componentDidUpdate=function(){var e=this.props.visualElement.projection;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.visualElement,n=e.layoutGroup,r=e.switchLayoutGroup,i=t.projection;i&&(i.scheduleCheckAfterUnmount(),(null==n?void 0:n.group)&&n.group.remove(i),(null==r?void 0:r.deregister)&&r.deregister(i))},t.prototype.safeToRemove=function(){var e=this.props.safeToRemove;null==e||e()},t.prototype.render=function(){return null},t}(a.Component),vh={borderRadius:$s($s({},dh),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:dh,borderTopRightRadius:dh,borderBottomLeftRadius:dh,borderBottomRightRadius:dh,boxShadow:hh},yh={measureLayout:function(e){var t=Xs(Vc(),2),n=t[0],r=t[1],i=(0,a.useContext)(Ou);return a.createElement(mh,$s({},e,{layoutGroup:i,switchLayoutGroup:(0,a.useContext)(Ku),isPresent:n,safeToRemove:r}))}},gh=["TopLeft","TopRight","BottomLeft","BottomRight"],bh=gh.length,wh=function(e){return"string"==typeof e?parseFloat(e):e},xh=function(e){return"number"==typeof e||_l.test(e)};function kh(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}var _h=Sh(0,.5,Hf),Eh=Sh(.5,.95,Df);function Sh(e,t,n){return function(r){return r<e?0:r>t?1:n(Qc(e,t,r))}}function Oh(e,t){e.min=t.min,e.max=t.max}function Ah(e,t){Oh(e.x,t.x),Oh(e.y,t.y)}function Ch(e,t,n,r,i){return e=Tp(e-=t,1/n,r),void 0!==i&&(e=Tp(e,1/i,r)),e}function Th(e,t,n,r,i){var a=Xs(n,3),o=a[0],s=a[1],u=a[2];!function(e,t,n,r,i,a,o){if(void 0===t&&(t=0),void 0===n&&(n=1),void 0===r&&(r=.5),void 0===a&&(a=e),void 0===o&&(o=e),kl.test(t)&&(t=parseFloat(t),t=Jc(o.min,o.max,t/100)-o.min),"number"==typeof t){var s=Jc(a.min,a.max,r);e===a&&(s-=t),e.min=Ch(e.min,t,n,s,i),e.max=Ch(e.max,t,n,s,i)}}(e,t[o],t[s],t[u],t.scale,r,i)}var Nh=["x","scaleX","originX"],jh=["y","scaleY","originY"];function Ph(e,t,n,r){Th(e.x,t,Nh,null==n?void 0:n.x,null==r?void 0:r.x),Th(e.y,t,jh,null==n?void 0:n.y,null==r?void 0:r.y)}function Rh(e){return 0===e.translate&&1===e.scale}function Ih(e){return Rh(e.x)&&Rh(e.y)}function Lh(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}var Mh=function(){function e(){this.members=[]}return e.prototype.add=function(e){Pd(this.members,e),e.scheduleRender()},e.prototype.remove=function(e){if(Rd(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){var t=this.members[this.members.length-1];t&&this.promote(t)}},e.prototype.relegate=function(e){var t,n=this.members.findIndex((function(t){return e===t}));if(0===n)return!1;for(var r=n;r>=0;r--){var i=this.members[r];if(!1!==i.isPresent){t=i;break}}return!!t&&(this.promote(t),!0)},e.prototype.promote=function(e,t){var n,r=this.lead;e!==r&&(this.prevLead=r,this.lead=e,e.show(),r&&(r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues,e.snapshot.isShared=!0),(null===(n=e.root)||void 0===n?void 0:n.isUpdating)&&(e.isLayoutDirty=!0),!1===e.options.crossfade&&r.hide()))},e.prototype.exitAnimationComplete=function(){this.members.forEach((function(e){var t,n,r,i,a;null===(n=(t=e.options).onExitComplete)||void 0===n||n.call(t),null===(a=null===(r=e.resumingFrom)||void 0===r?void 0:(i=r.options).onExitComplete)||void 0===a||a.call(i)}))},e.prototype.scheduleRender=function(){this.members.forEach((function(e){e.instance&&e.scheduleRender(!1)}))},e.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},e}();function Bh(e,t,n){var r=e.x.translate/t.x,i=e.y.translate/t.y,a="translate3d(".concat(r,"px, ").concat(i,"px, 0) ");if(a+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),n){var o=n.rotate,s=n.rotateX,u=n.rotateY;o&&(a+="rotate(".concat(o,"deg) ")),s&&(a+="rotateX(".concat(s,"deg) ")),u&&(a+="rotateY(".concat(u,"deg) "))}var l=e.x.scale*t.x,c=e.y.scale*t.y;return"translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)"===(a+="scale(".concat(l,", ").concat(c,")"))?"none":a}var Dh=function(e,t){return e.depth-t.depth},Uh=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){Pd(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){Rd(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(Dh),this.isDirty=!1,this.children.forEach(e)},e}();function Fh(e){var t=e.attachResizeListener,n=e.defaultParent,r=e.measureScroll,i=e.checkIsScrollRoot,a=e.resetTransform;return function(){function e(e,t,r){var i=this;void 0===t&&(t={}),void 0===r&&(r=null==n?void 0:n()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){i.isUpdating&&(i.isUpdating=!1,i.clearAllSnapshots())},this.updateProjection=function(){i.nodes.forEach(Zh),i.nodes.forEach(Yh)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=e,this.latestValues=t,this.root=r?r.root||r:this,this.path=r?Qs(Qs([],Xs(r.path),!1),[r],!1):[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(var a=0;a<this.path.length;a++)this.path[a].shouldResetTransform=!0;this.root===this&&(this.nodes=new Uh)}return e.prototype.addEventListener=function(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Id),this.eventHandlers.get(e).add(t)},e.prototype.notifyListeners=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this.eventHandlers.get(e);null==r||r.notify.apply(r,Qs([],Xs(t),!1))},e.prototype.hasListeners=function(e){return this.eventHandlers.has(e)},e.prototype.registerPotentialNode=function(e,t){this.potentialNodes.set(e,t)},e.prototype.mount=function(e,n){var r,i=this;if(void 0===n&&(n=!1),!this.instance){this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;var a=this.options,o=a.layoutId,s=a.layout,u=a.visualElement;if(u&&!u.getInstance()&&u.mount(e),this.root.nodes.add(this),null===(r=this.parent)||void 0===r||r.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),n&&(s||o)&&(this.isLayoutDirty=!0),t){var l,c=function(){return i.root.updateBlockedByResize=!1};t(e,(function(){i.root.updateBlockedByResize=!0,clearTimeout(l),l=window.setTimeout(c,250),Yu.hasAnimatedSinceResize&&(Yu.hasAnimatedSinceResize=!1,i.nodes.forEach(Gh))}))}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&u&&(o||s)&&this.addEventListener("didUpdate",(function(e){var t,n,r,a,o,s=e.delta,l=e.hasLayoutChanged,c=e.hasRelativeTargetChanged,f=e.layout;if(i.isTreeAnimationBlocked())return i.target=void 0,void(i.relativeTarget=void 0);var d=null!==(n=null!==(t=i.options.transition)&&void 0!==t?t:u.getDefaultTransition())&&void 0!==n?n:em,p=u.getProps(),h=p.onLayoutAnimationStart,m=p.onLayoutAnimationComplete,v=!i.targetLayout||!Lh(i.targetLayout,f)||c,y=!l&&c;if((null===(r=i.resumeFrom)||void 0===r?void 0:r.instance)||y||l&&(v||!i.currentAnimation)){i.resumeFrom&&(i.resumingFrom=i.resumeFrom,i.resumingFrom.resumingFrom=void 0),i.setAnimationOrigin(s,y);var g=$s($s({},Td(d,"layout")),{onPlay:h,onComplete:m});u.shouldReduceMotion&&(g.delay=0,g.type=!1),i.startAnimation(g)}else l||0!==i.animationProgress||i.finishAnimation(),i.isLead()&&(null===(o=(a=i.options).onExitComplete)||void 0===o||o.call(a));i.targetLayout=f}))}},e.prototype.unmount=function(){var e,t;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(e=this.getStack())||void 0===e||e.remove(this),null===(t=this.parent)||void 0===t||t.children.delete(this),this.instance=void 0,lu.preRender(this.updateProjection)},e.prototype.blockUpdate=function(){this.updateManuallyBlocked=!0},e.prototype.unblockUpdate=function(){this.updateManuallyBlocked=!1},e.prototype.isUpdateBlocked=function(){return this.updateManuallyBlocked||this.updateBlockedByResize},e.prototype.isTreeAnimationBlocked=function(){var e;return this.isAnimationBlocked||(null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimationBlocked())||!1},e.prototype.startUpdate=function(){var e;this.isUpdateBlocked()||(this.isUpdating=!0,null===(e=this.nodes)||void 0===e||e.forEach($h))},e.prototype.willUpdate=function(e){var t,n,r;if(void 0===e&&(e=!0),this.root.isUpdateBlocked())null===(n=(t=this.options).onExitComplete)||void 0===n||n.call(t);else if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var i=0;i<this.path.length;i++){var a=this.path[i];a.shouldResetTransform=!0,a.updateScroll()}var o=this.options,s=o.layoutId,u=o.layout;if(void 0!==s||u){var l=null===(r=this.options.visualElement)||void 0===r?void 0:r.getProps().transformTemplate;this.prevTransformTemplateValue=null==l?void 0:l(this.latestValues,""),this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}}},e.prototype.didUpdate=function(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Wh);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(tm),this.potentialNodes.clear()),this.nodes.forEach(qh),this.nodes.forEach(zh),this.nodes.forEach(Vh),this.clearAllSnapshots(),cu.update(),cu.preRender(),cu.render())},e.prototype.clearAllSnapshots=function(){this.nodes.forEach(Hh),this.sharedNodes.forEach(Kh)},e.prototype.scheduleUpdateProjection=function(){mu.preRender(this.updateProjection,!1,!0)},e.prototype.scheduleCheckAfterUnmount=function(){var e=this;mu.postRender((function(){e.isLayoutDirty?e.root.didUpdate():e.root.checkUpdateFailed()}))},e.prototype.updateSnapshot=function(){if(!this.snapshot&&this.instance){var e=this.measure(),t=this.removeTransform(this.removeElementScroll(e));rm(t),this.snapshot={measured:e,layout:t,latestValues:{}}}},e.prototype.updateLayout=function(){var e;if(this.instance&&(this.updateScroll(),this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty)){if(this.resumeFrom&&!this.resumeFrom.instance)for(var t=0;t<this.path.length;t++)this.path[t].updateScroll();var n=this.measure();rm(n);var r=this.layout;this.layout={measured:n,actual:this.removeElementScroll(n)},this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),null===(e=this.options.visualElement)||void 0===e||e.notifyLayoutMeasure(this.layout.actual,null==r?void 0:r.actual)}},e.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=i(this.instance),this.scroll=r(this.instance))},e.prototype.resetTransform=function(){var e;if(a){var t=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!Ih(this.projectionDelta),r=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate,i=null==r?void 0:r(this.latestValues,""),o=i!==this.prevTransformTemplateValue;t&&(n||Ap(this.latestValues)||o)&&(a(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}},e.prototype.measure=function(){var e=this.options.visualElement;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};var t=e.measureViewportBox(),n=this.root.scroll;return n&&(Rp(t.x,n.x),Rp(t.y,n.y)),t},e.prototype.removeElementScroll=function(e){var t={x:{min:0,max:0},y:{min:0,max:0}};Ah(t,e);for(var n=0;n<this.path.length;n++){var r=this.path[n],i=r.scroll,a=r.options,o=r.isScrollRoot;if(r!==this.root&&i&&a.layoutScroll){if(o){Ah(t,e);var s=this.root.scroll;s&&(Rp(t.x,-s.x),Rp(t.y,-s.y))}Rp(t.x,i.x),Rp(t.y,i.y)}}return t},e.prototype.applyTransform=function(e,t){void 0===t&&(t=!1);var n={x:{min:0,max:0},y:{min:0,max:0}};Ah(n,e);for(var r=0;r<this.path.length;r++){var i=this.path[r];!t&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Bp(n,{x:-i.scroll.x,y:-i.scroll.y}),Ap(i.latestValues)&&Bp(n,i.latestValues)}return Ap(this.latestValues)&&Bp(n,this.latestValues),n},e.prototype.removeTransform=function(e){var t,n={x:{min:0,max:0},y:{min:0,max:0}};Ah(n,e);for(var r=0;r<this.path.length;r++){var i=this.path[r];if(i.instance&&Ap(i.latestValues)){Op(i.latestValues)&&i.updateSnapshot();var a={x:{min:0,max:0},y:{min:0,max:0}};Ah(a,i.measure()),Ph(n,i.latestValues,null===(t=i.snapshot)||void 0===t?void 0:t.layout,a)}}return Ap(this.latestValues)&&Ph(n,this.latestValues),n},e.prototype.setTargetDelta=function(e){this.targetDelta=e,this.root.scheduleUpdateProjection()},e.prototype.setOptions=function(e){var t;this.options=$s($s($s({},this.options),e),{crossfade:null===(t=e.crossfade)||void 0===t||t})},e.prototype.clearMeasurements=function(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1},e.prototype.resolveTargetDelta=function(){var e,t,n,r,i=this.options,a=i.layout,o=i.layoutId;this.layout&&(a||o)&&(this.targetDelta||this.relativeTarget||(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},yp(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),Ah(this.relativeTarget,this.relativeTargetOrigin))),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&(null===(e=this.relativeParent)||void 0===e?void 0:e.target)?(t=this.target,n=this.relativeTarget,r=this.relativeParent.target,mp(t.x,n.x,r.x),mp(t.y,n.y,r.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):Ah(this.target,this.layout.actual),Pp(this.target,this.targetDelta)):Ah(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&Boolean(this.relativeParent.resumingFrom)===Boolean(this.resumingFrom)&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},yp(this.relativeTargetOrigin,this.target,this.relativeParent.target),Ah(this.relativeTarget,this.relativeTargetOrigin)))))},e.prototype.getClosestProjectingParent=function(){if(this.parent&&!Ap(this.parent.latestValues))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},e.prototype.calcProjection=function(){var e,t=this.options,n=t.layout,r=t.layoutId;if(this.isTreeAnimating=Boolean((null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),this.layout&&(n||r)){var i=this.getLead();Ah(this.layoutCorrected,this.layout.actual),function(e,t,n,r){var i,a;void 0===r&&(r=!1);var o=n.length;if(o){var s,u;t.x=t.y=1;for(var l=0;l<o;l++)u=(s=n[l]).projectionDelta,"contents"!==(null===(a=null===(i=s.instance)||void 0===i?void 0:i.style)||void 0===a?void 0:a.display)&&(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Bp(e,{x:-s.scroll.x,y:-s.scroll.y}),u&&(t.x*=u.x.scale,t.y*=u.y.scale,Pp(e,u)),r&&Ap(s.latestValues)&&Bp(e,s.latestValues))}}(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==i);var a=i.target;if(a){this.projectionDelta||(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}});var o=this.treeScale.x,s=this.treeScale.y,u=this.projectionTransform;hp(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.projectionTransform=Bh(this.projectionDelta,this.treeScale),this.projectionTransform===u&&this.treeScale.x===o&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a))}}},e.prototype.hide=function(){this.isVisible=!1},e.prototype.show=function(){this.isVisible=!0},e.prototype.scheduleRender=function(e){var t,n,r;void 0===e&&(e=!0),null===(n=(t=this.options).scheduleRender)||void 0===n||n.call(t),e&&(null===(r=this.getStack())||void 0===r||r.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},e.prototype.setAnimationOrigin=function(e,t){var n,r=this;void 0===t&&(t=!1);var i=this.snapshot,a=(null==i?void 0:i.latestValues)||{},o=$s({},this.latestValues),s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!t;var u={x:{min:0,max:0},y:{min:0,max:0}},l=null==i?void 0:i.isShared,c=((null===(n=this.getStack())||void 0===n?void 0:n.members.length)||0)<=1,f=Boolean(l&&!c&&!0===this.options.crossfade&&!this.path.some(Jh));this.animationProgress=0,this.mixTargetDelta=function(t){var n,i=t/1e3;Xh(s.x,e.x,i),Xh(s.y,e.y,i),r.setTargetDelta(s),r.relativeTarget&&r.relativeTargetOrigin&&r.layout&&(null===(n=r.relativeParent)||void 0===n?void 0:n.layout)&&(yp(u,r.layout.actual,r.relativeParent.layout.actual),function(e,t,n,r){Qh(e.x,t.x,n.x,r),Qh(e.y,t.y,n.y,r)}(r.relativeTarget,r.relativeTargetOrigin,u,i)),l&&(r.animationValues=o,function(e,t,n,r,i,a){var o,s,u,l;i?(e.opacity=Jc(0,null!==(o=n.opacity)&&void 0!==o?o:1,_h(r)),e.opacityExit=Jc(null!==(s=t.opacity)&&void 0!==s?s:1,0,Eh(r))):a&&(e.opacity=Jc(null!==(u=t.opacity)&&void 0!==u?u:1,null!==(l=n.opacity)&&void 0!==l?l:1,r));for(var c=0;c<bh;c++){var f="border".concat(gh[c],"Radius"),d=kh(t,f),p=kh(n,f);void 0===d&&void 0===p||(d||(d=0),p||(p=0),0===d||0===p||xh(d)===xh(p)?(e[f]=Math.max(Jc(wh(d),wh(p),r),0),(kl.test(p)||kl.test(d))&&(e[f]+="%")):e[f]=p)}(t.rotate||n.rotate)&&(e.rotate=Jc(t.rotate||0,n.rotate||0,r))}(o,a,r.latestValues,i,f,c)),r.root.scheduleUpdateProjection(),r.scheduleRender(),r.animationProgress=i},this.mixTargetDelta(0)},e.prototype.startAnimation=function(e){var t,n,r=this;this.notifyListeners("animationStart"),null===(t=this.currentAnimation)||void 0===t||t.stop(),this.resumingFrom&&(null===(n=this.resumingFrom.currentAnimation)||void 0===n||n.stop()),this.pendingAnimation&&(lu.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=mu.update((function(){Yu.hasAnimatedSinceResize=!0,r.currentAnimation=function(e,t,n){void 0===n&&(n={});var r=cl(0)?0:Md(0);return Nd("",r,1e3,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}(0,0,$s($s({},e),{onUpdate:function(t){var n;r.mixTargetDelta(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:function(){var t;null===(t=e.onComplete)||void 0===t||t.call(e),r.completeAnimation()}})),r.resumingFrom&&(r.resumingFrom.currentAnimation=r.currentAnimation),r.pendingAnimation=void 0}))},e.prototype.completeAnimation=function(){var e;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(e=this.getStack())||void 0===e||e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")},e.prototype.finishAnimation=function(){var e;this.currentAnimation&&(null===(e=this.mixTargetDelta)||void 0===e||e.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()},e.prototype.applyTransformsToTarget=function(){var e=this.getLead(),t=e.targetWithTransforms,n=e.target,r=e.layout,i=e.latestValues;t&&n&&r&&(Ah(t,n),Bp(t,i),hp(this.projectionDeltaWithTransform,this.layoutCorrected,t,i))},e.prototype.registerSharedNode=function(e,t){var n,r,i;this.sharedNodes.has(e)||this.sharedNodes.set(e,new Mh),this.sharedNodes.get(e).add(t),t.promote({transition:null===(n=t.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(i=null===(r=t.options.initialPromotionConfig)||void 0===r?void 0:r.shouldPreserveFollowOpacity)||void 0===i?void 0:i.call(r,t)})},e.prototype.isLead=function(){var e=this.getStack();return!e||e.lead===this},e.prototype.getLead=function(){var e;return this.options.layoutId&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this},e.prototype.getPrevLead=function(){var e;return this.options.layoutId?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0},e.prototype.getStack=function(){var e=this.options.layoutId;if(e)return this.root.sharedNodes.get(e)},e.prototype.promote=function(e){var t=void 0===e?{}:e,n=t.needsReset,r=t.transition,i=t.preserveFollowOpacity,a=this.getStack();a&&a.promote(this,i),n&&(this.projectionDelta=void 0,this.needsReset=!0),r&&this.setOptions({transition:r})},e.prototype.relegate=function(){var e=this.getStack();return!!e&&e.relegate(this)},e.prototype.resetRotation=function(){var e=this.options.visualElement;if(e){for(var t=!1,n={},r=0;r<nl.length;r++){var i="rotate"+nl[r];e.getStaticValue(i)&&(t=!0,n[i]=e.getStaticValue(i),e.setStaticValue(i,0))}if(t){for(var i in null==e||e.syncRender(),n)e.setStaticValue(i,n[i]);e.scheduleRender()}}},e.prototype.getProjectionStyles=function(e){var t,n,r,i,a,o;void 0===e&&(e={});var s={};if(!this.instance||this.isSVG)return s;if(!this.isVisible)return{visibility:"hidden"};s.visibility="";var u=null===(t=this.options.visualElement)||void 0===t?void 0:t.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=rc(e.pointerEvents)||"",s.transform=u?u(this.latestValues,""):"none",s;var l=this.getLead();if(!this.projectionDelta||!this.layout||!l.target){var c={};return this.options.layoutId&&(c.opacity=null!==(n=this.latestValues.opacity)&&void 0!==n?n:1,c.pointerEvents=rc(e.pointerEvents)||""),this.hasProjected&&!Ap(this.latestValues)&&(c.transform=u?u({},""):"none",this.hasProjected=!1),c}var f=l.animationValues||l.latestValues;this.applyTransformsToTarget(),s.transform=Bh(this.projectionDeltaWithTransform,this.treeScale,f),u&&(s.transform=u(f,s.transform));var d=this.projectionDelta,p=d.x,h=d.y;for(var m in s.transformOrigin="".concat(100*p.origin,"% ").concat(100*h.origin,"% 0"),l.animationValues?s.opacity=l===this?null!==(i=null!==(r=f.opacity)&&void 0!==r?r:this.latestValues.opacity)&&void 0!==i?i:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:s.opacity=l===this?null!==(a=f.opacity)&&void 0!==a?a:"":null!==(o=f.opacityExit)&&void 0!==o?o:0,tl)if(void 0!==f[m]){var v=tl[m],y=v.correct,g=v.applyTo,b=y(f[m],l);if(g)for(var w=g.length,x=0;x<w;x++)s[g[x]]=b;else s[m]=b}return this.options.layoutId&&(s.pointerEvents=l===this?rc(e.pointerEvents)||"":"none"),s},e.prototype.clearSnapshot=function(){this.resumeFrom=this.snapshot=void 0},e.prototype.resetTree=function(){this.root.nodes.forEach((function(e){var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(Wh),this.root.sharedNodes.clear()},e}()}function zh(e){e.updateLayout()}function Vh(e){var t,n,r,i,a=null!==(n=null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)&&void 0!==n?n:e.snapshot;if(e.isLead()&&e.layout&&a&&e.hasListeners("didUpdate")){var o=e.layout,s=o.actual,u=o.measured;"size"===e.options.animationType?_p((function(e){var t=a.isShared?a.measured[e]:a.layout[e],n=fp(t);t.min=s[e].min,t.max=t.min+n})):"position"===e.options.animationType&&_p((function(e){var t=a.isShared?a.measured[e]:a.layout[e],n=fp(s[e]);t.max=t.min+n}));var l={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};hp(l,s,a.layout);var c={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};a.isShared?hp(c,e.applyTransform(u,!0),a.measured):hp(c,s,a.layout);var f=!Ih(l),d=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){var p=e.relativeParent,h=p.snapshot,m=p.layout;if(h&&m){var v={x:{min:0,max:0},y:{min:0,max:0}};yp(v,a.layout,h.layout);var y={x:{min:0,max:0},y:{min:0,max:0}};yp(y,s,m.actual),Lh(v,y)||(d=!0)}}e.notifyListeners("didUpdate",{layout:s,snapshot:a,delta:c,layoutDelta:l,hasLayoutChanged:f,hasRelativeTargetChanged:d})}else e.isLead()&&(null===(i=(r=e.options).onExitComplete)||void 0===i||i.call(r));e.options.transition=void 0}function Hh(e){e.clearSnapshot()}function Wh(e){e.clearMeasurements()}function qh(e){var t=e.options.visualElement;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function Gh(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function Zh(e){e.resolveTargetDelta()}function Yh(e){e.calcProjection()}function $h(e){e.resetRotation()}function Kh(e){e.removeLeadSnapshot()}function Xh(e,t,n){e.translate=Jc(t.translate,0,n),e.scale=Jc(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Qh(e,t,n,r){e.min=Jc(t.min,n.min,r),e.max=Jc(t.max,n.max,r)}function Jh(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}var em={duration:.45,ease:[.4,0,.1,1]};function tm(e,t){for(var n=e.root,r=e.path.length-1;r>=0;r--)if(Boolean(e.path[r].instance)){n=e.path[r];break}var i=(n&&n!==e.root?n.instance:document).querySelector('[data-projection-id="'.concat(t,'"]'));i&&e.mount(i,!0)}function nm(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function rm(e){nm(e.x),nm(e.y)}var im=Fh({attachResizeListener:function(e,t){return cc(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),am={current:void 0},om=Fh({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!am.current){var e=new im(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),am.current=e}return am.current},resetTransform:function(e,t){e.style.transform=null!=t?t:"none"},checkIsScrollRoot:function(e){return Boolean("fixed"===window.getComputedStyle(e).position)}}),sm=$s($s($s($s({},Jd),zc),Vp),yh),um=function(e){function t(t,n){return void 0===n&&(n={}),Qu(e(t,n))}if("undefined"==typeof Proxy)return t;var n=new Map;return new Proxy(t,{get:function(e,r){return n.has(r)||n.set(r,t(r)),n.get(r)}})}((function(e,t){return function(e,t,n,r,i){var a=t.forwardMotionProps,o=void 0!==a&&a,s=el(e)?uc:lc;return $s($s({},s),{preloadedFeatures:n,useRender:Gl(o),createVisualElement:r,projectionNodeConstructor:i,Component:e})}(e,t,sm,ch,om)})),lm={success:"tw-bg-green-300",info:"tw-bg-sky-300",warning:"tw-bg-amber-300",error:"tw-bg-red-300"},cm={success:"tw-bg-green-500",info:"tw-bg-sky-500",warning:"tw-bg-amber-500",error:"tw-bg-red-500"},fm={success:"😊",info:"🔔",warning:"😮",error:"😢"};function dm(e){var t,n=(0,a.useContext)(S).dispatch,r=l((0,a.useState)(!1),2),i=r[0],o=r[1],s=(0,a.useRef)(null);(0,a.useEffect)((function(){var t,r;return e.timeoutMs&&(t=setTimeout((function(){return n(U(e.id))}),300+e.timeoutMs),r=setTimeout((function(){return o(!0)}),300)),function(){clearTimeout(t),clearTimeout(r)}}),[n,e.id,e.timeoutMs]);var u=(0,a.useCallback)((function(){return i?"tw-w-0":"tw-w-full"}),[i]);return(0,E.jsxs)("div",{className:"tw-flex tw-flex-col tw-mr-0 md:tw-mr-4 tw-border-none tw-rounded\n tw-shadow-md tw-overflow-hidden tw-pointer-events-none "+[e.textColorClass||"text-black",e.backgroundColorClass||lm[e.type]].join(" "),children:[(0,E.jsxs)("div",{className:"tw-flex tw-gap-2 tw-p-3 tw-text-lg",children:[!e.hideIcon&&(0,E.jsx)("div",{className:"tw-flex tw-items-center tw-justify-center tw-border-0 tw-rounded-full tw-w-7 tw-h-7 "+cm[e.type],children:null!==(t=e.icon)&&void 0!==t?t:fm[e.type]}),(0,E.jsxs)("div",{className:"tw-flex tw-flex-col tw-text-left",children:[e.text&&(0,E.jsx)("div",{className:"tw-whitespace-nowrap tw-text-md tw-overflow-ellipsis",children:e.text}),e.detail&&(0,E.jsx)("div",{className:"tw-text-sm",children:e.detail}),e.jsx&&(0,E.jsx)("div",{children:e.jsx})]}),!e.hideDismissBtn&&!e.showSpinner&&(0,E.jsx)("div",{className:"tw-flex tw-flex-grow tw-justify-end tw-pointer-events-auto",onClick:function(){n(U(e.id))},children:(0,E.jsx)("div",{children:(0,E.jsx)(xs,{className:"tw-cursor-pointer hover:tw-scale-125 tw-transition-all",icon:Zr})})}),e.showSpinner&&(0,E.jsx)("div",{className:"tw-flex tw-flex-grow tw-justify-end",children:(0,E.jsx)("div",{children:(0,E.jsx)(xs,{icon:Yr,className:"fa-spin"})})})]}),e.timeoutMs&&(0,E.jsx)("div",{children:(0,E.jsx)("div",{ref:s,className:"tw-h-1 tw-transition-all tw-ease-linear "+[u(),cm[e.type]].join(" "),style:{transitionDuration:"".concat(e.timeoutMs,"ms")}})})]})}function pm(){var e=(0,a.useContext)(S).state.toasts;return(0,E.jsx)("div",{className:"tw-flex tw-gap-2 tw-flex-col-reverse tw-items-end tw-fixed tw-bottom-0 tw-right-0 tw-mb-8 tw-mr-4 tw-z-50 tw-pointer-events-none",children:(0,E.jsx)(Tu,{children:e.map((function(e){return(0,E.jsx)(um.div,{layout:!0,initial:{opacity:0,y:50,scale:.3},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,transition:{duration:.2}},children:(0,E.jsx)(dm,d({},e))},e.id)}))})})}var hm=function(e){var t=e.id,n=e.className,r=e.role,i=e.ariaHidden,o=e.ariaLabel,s=e.initialValue,u=e.label,c=e.title,f=e.placeholder,d=e.autoComplete,p=e.cols,h=e.rows,m=e.disabled,v=e.minLength,y=e.readOnly,g=e.resize,b=e.wrap,w=e.autoResize,x=e.onChange,k=e.onEnterKey,_=l(a.useState(s||""),2),S=_[0],O=_[1],A=a.useRef(null),C=a.useRef(0),T=function(){A.current&&(A.current.style.height="1px",A.current.style.height="".concat(A.current.scrollHeight,"px"))};return a.useEffect((function(){O(s),w&&A.current&&T()}),[s]),a.useEffect((function(){if(!w)return function(){};var e=new ResizeObserver((function(e){var t=e[0].contentRect.width;C.current!=t&&(requestAnimationFrame((function(){return T()})),C.current=t)}));return A.current&&e.observe(A.current),function(){e.disconnect()}}),[w]),(0,E.jsxs)("div",{className:ne("common-textarea-wrapper",m&&"disabled",g&&"resize-".concat(g),n),children:[u&&(0,E.jsx)("label",{className:"common-textarea-label",children:u}),(0,E.jsx)("div",{className:"common-textarea-group",children:(0,E.jsx)("textarea",{id:t,className:"common-textarea",title:c,role:r||"textbox",tabIndex:m?-1:0,"aria-label":o,"aria-hidden":i,placeholder:f,value:S||"",cols:p,rows:h,minLength:v,wrap:b,readOnly:!!y,ref:A,onChange:function(e){var t=e.target.value;y||S===t||O(t),x&&x(t),w&&A.current&&T()},onKeyDown:function(e){var t="number"==typeof e.which?e.which:e.keyCode;13!==t&&32!==t||k&&(e.preventDefault(),k(S))},autoComplete:d?"":"off",autoCorrect:d?"":"off",autoCapitalize:d?"":"off",spellCheck:d,disabled:m})})]})},mm=function(e){var t=e.id,n=e.className,r=e.ariaHidden,i=e.ariaLabel,a=e.role,o=e.isChecked,s=e.onChange,u=e.label;return(0,E.jsxs)("div",{className:ne("common-checkbox",n),children:[(0,E.jsx)("input",{id:t,tabIndex:0,type:"checkbox",checked:o,onChange:function(){s(!o)},onKeyDown:te,role:a,"aria-hidden":r,"aria-label":i}),u&&(0,E.jsx)("label",{htmlFor:t,children:u})]})},vm=function(e){var t=e.children,n=e.id,r=e.className,i=e.ariaLabel,a=e.ariaHidden,s=e.ariaDescribedBy,u=e.role,l=e.title,c=e.leftIcon,f=e.helpUrl,d=e.actions,p=e.onClose,h=e.parentElement,m=e.fullscreen,v=e.hideDismissButton,y=function(e){p&&p()},g=ne("common-modal-container",m&&"fullscreen",r);return o.createPortal((0,E.jsx)(Ws,{className:g,onEscape:y,children:(0,E.jsxs)("div",{id:n,className:"common-modal",role:u||"dialog","aria-hidden":a,"aria-label":i,"aria-describedby":s,"aria-labelledby":"modal-title",children:[(0,E.jsxs)("div",{className:"common-modal-header",children:[m&&!v&&(0,E.jsx)("div",{className:"common-modal-back",children:(0,E.jsx)(re,{className:"menu-button",onClick:y,title:lf("Go Back"),label:lf("Go Back"),leftIcon:"fas fa-arrow-left"})}),(0,E.jsxs)("div",{id:"modal-title",className:"common-modal-title",children:[c&&(0,E.jsx)("i",{className:c,"aria-hidden":!0}),l]}),m&&f&&(0,E.jsx)("div",{className:"common-modal-help",children:(0,E.jsx)(re,{className:"menu-button",title:lf("Help on {0} dialog",l),href:e.helpUrl,onClick:function(){},rightIcon:"fas fa-question"})}),!m&&!v&&(0,E.jsx)("div",{className:"common-modal-close",children:(0,E.jsx)(re,{className:"menu-button inverted",onClick:y,title:lf("Close"),rightIcon:"fas fa-times-circle"})})]}),(0,E.jsx)("div",{className:"common-modal-body",children:t}),(null==d?void 0:d.length)&&(0,E.jsx)("div",{className:"common-modal-footer",children:d.map((function(e,t){var n;return(0,E.jsx)(re,{className:null!==(n=e.className)&&void 0!==n?n:"primary inverted",disabled:e.disabled,onClick:e.onClick,href:e.url,label:e.label,title:e.label,rightIcon:(e.xicon?"xicon ":"")+e.icon,leftIcon:e.leftIcon},t)}))})]})}),h||document.getElementById("root")||document.body)},ym=function(e){var t,n,r=e.onSignIn,i=e.onClose,o=e.appMessage,s=e.dialogMessages,u=e.hideDismissButton,c=s||{signInMessage:lf("Sign in to save your progress and access your work anytime, anywhere."),signUpMessage:lf("Join now to save your progress and access your work anytime, anywhere.")},f=c.signInMessage,d=c.signUpMessage,p=null!==(t=e.resolvePath)&&void 0!==t?t:function(e){return e},h=l(a.useState(!1),2),m=h[0],v=h[1],y=l(a.useState(null!==(n=e.mode)&&void 0!==n?n:"signin"),2),g=y[0],b=y[1],w=a.useMemo((function(){return"signin"===g?lf("Sign in"):lf("Sign up")}),[g]),x=a.useMemo((function(){return"signin"===g?f:d}),[g,f,d]),k=a.useMemo((function(){return"signin"===g?(0,E.jsxs)("div",{className:"switch",children:[(0,E.jsx)("span",{children:lf("Don't have an account?")}),(0,E.jsx)(re,{className:"link-button",onClick:function(){return b("signup")},title:lf("Sign up"),label:lf("Sign up")})]}):(0,E.jsxs)("div",{className:"switch",children:[(0,E.jsx)("span",{children:lf("Have an account?")}),(0,E.jsx)(re,{className:"link-button",onClick:function(){return b("signin")},title:lf("Sign in"),label:lf("Sign in")})]})}),[g]);return(0,E.jsx)(vm,{title:w,onClose:i,hideDismissButton:u,children:(0,E.jsxs)("div",{className:"signin-form",children:[(0,E.jsxs)("div",{className:"signin-header",children:[o||void 0," ",x]}),(0,E.jsx)("div",{className:"signin-body",children:(0,E.jsxs)("div",{className:"providers",children:[pxt.auth.identityProviders().map((function(e,t){var n="signin"===g?lf("Continue with {0}",e.name):lf("Sign up with {0}",e.name);return(0,E.jsx)(re,{className:"teal inverted provider",onClick:function(){return r(e,m)},title:n,ariaLabel:n,label:(0,E.jsxs)("div",{className:"label",children:[(0,E.jsx)("div",{children:(0,E.jsx)("img",{className:"logo",src:p(e.icon)})}),(0,E.jsx)("div",{className:"title",children:n})]})},t)})),(0,E.jsx)("div",{className:"rememberme",children:(0,E.jsx)(mm,{id:"rememberme",label:lf("Remember me"),isChecked:m,onChange:v})})]})}),(0,E.jsxs)("div",{className:"signin-footer",children:[k,(0,E.jsx)("div",{className:"learn",children:(0,E.jsx)(oe,{href:"/identity/sign-in",target:"_blank",children:lf("Learn more")})})]})]})})};function gm(e){var t=e.title,n=e.confirmLabel,r=e.cancelLabel,i=e.children,a=e.onConfirm,o=e.onCancel,s=[{label:null!=r?r:lf("Cancel"),className:"primary inverted",onClick:o},{label:null!=n?n:lf("Confirm"),className:"primary",onClick:a}];return(0,E.jsx)(vm,{title:t,actions:s,onClose:o,children:i})}function bm(){var e=(0,a.useContext)(S).state,t=e.deepLinks,n=e.clientRole,r=e.gameState,i=(null!=r?r:{}).gameId,o=l((0,a.useState)(""),2),s=o[0],u=o[1];switch(e.modal){case"sign-in":return(0,E.jsx)(ym,{onClose:function(){return _({type:"CLEAR_MODAL"})},onSignIn:function(){var e=J(X().mark((function e(n,r){var i;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i={},null!=t&&t.shareCode&&(i.host=t.shareCode),null!=t&&t.joinCode&&(i.join=t.joinCode),e.next=5,Kn(n.id,r,{params:i});case 5:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),dialogMessages:e.modalOpts.dialogMessages,hideDismissButton:!0});case"report-abuse":return(0,E.jsx)(gm,{title:lf("Report Abuse"),confirmLabel:lf("Submit Report"),onConfirm:J(X().mark((function e(){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return _({type:"CLEAR_MODAL"}),e.next=3,Cr(i,s);case 3:case"end":return e.stop()}}),e)}))),onCancel:function(){return _({type:"CLEAR_MODAL"})},children:(0,E.jsxs)("div",{className:"tw-flex tw-flex-col tw-gap-4",children:[(0,E.jsx)("div",{children:lf("Why do you find it offensive?")}),(0,E.jsx)("div",{children:(0,E.jsx)(hm,{onChange:u})})]})});case"kick-player":return(0,E.jsx)(gm,{title:lf("Kick Player"),onConfirm:function(){_({type:"CLEAR_MODAL"}),function(e){try{pxt.tickEvent("mp.kickplayer"),function(e){var t;null===(t=sn)||void 0===t||t.kickPlayer(e)}(e),_(D({type:"info",text:lf("Player kicked"),timeoutMs:5e3}))}catch(e){}}(e.modalOpts.clientId)},onCancel:function(){return _({type:"CLEAR_MODAL"})},children:(0,E.jsx)("div",{children:lf("Kick this player? They will be blocked from rejoining the game.")})});case"leave-game":return"host"===n?(0,E.jsx)(gm,{title:lf("End the Game"),onConfirm:J(X().mark((function e(){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return _({type:"CLEAR_MODAL"}),e.next=3,Gn("ended");case 3:case"end":return e.stop()}}),e)}))),onCancel:function(){return _({type:"CLEAR_MODAL"})},children:(0,E.jsx)("div",{children:lf("End the game? All players will be disconnected.")})}):(0,E.jsx)(gm,{title:lf("Leave Game"),onConfirm:J(X().mark((function e(){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return _({type:"CLEAR_MODAL"}),e.next=3,Gn("left");case 3:case"end":return e.stop()}}),e)}))),onCancel:function(){return _({type:"CLEAR_MODAL"})},children:(0,E.jsx)("div",{children:lf("Leave the game?")})});default:return null}}function wm(){var e=(0,a.useContext)(S).state,t=e.gamePaused,n=e.clientRole,r=function(){var e=J(X().mark((function e(){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Er();case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,E.jsxs)(E.Fragment,{children:[t&&"host"===n&&(0,E.jsxs)("div",{className:"tw-fixed tw-flex tw-flex-col tw-gap-4 tw-z-40 tw-p-5 tw-bg-white tw-rounded-lg tw-drop-shadow-2xl tw-border tw-top-[50%] tw-left-[50%] tw-translate-x-[-50%] tw-translate-y-[-50%]",children:[(0,E.jsx)("div",{className:"tw-text-left tw-font-bold tw-text-lg",children:lf("Game Paused")}),(0,E.jsx)("div",{className:"tw-text-left",children:lf("The game is paused. Press the resume button to continue.")}),(0,E.jsx)("div",{className:"tw-text-right",children:(0,E.jsx)(re,{title:lf("Resume"),label:lf("Resume"),className:"primary",onClick:r})})]}),t&&"host"!==n&&(0,E.jsxs)("div",{className:"tw-fixed tw-flex tw-flex-col tw-gap-4 tw-z-40 tw-p-5 tw-bg-white tw-rounded-lg tw-drop-shadow-2xl tw-border tw-top-[50%] tw-left-[50%] tw-translate-x-[-50%] tw-translate-y-[-50%]",children:[(0,E.jsx)("div",{className:"tw-text-left tw-font-bold tw-text-lg",children:lf("Game Paused")}),(0,E.jsx)("div",{className:"tw-text-left",children:lf("The game is paused. Please wait for the host to resume the game.")})]})]})}var xm=function(){var e=(0,a.useContext)(S),t=e.state,n=e.dispatch,r=t.authStatus,i=t.deepLinks,o=t.targetConfig,s=i.shareCode,u=i.joinCode,c=l((0,a.useState)(!1),2),f=c[0],d=c[1];(0,a.useEffect)((function(){o||(pxt.BrowserUtils.isLocalHostDev()?fetch("/blb/targetconfig.json",{method:"GET"}).then((function(e){return e.json()})):pxt.targetConfigAsync()).then((function(e){return e&&n((t=e,{type:"SET_TARGET_CONFIG",targetConfig:JSON.parse(JSON.stringify(t))}));var t}))})),function(e){(0,a.useEffect)((function(){var t=function(){e("visible"===document.visibilityState)};return document.addEventListener("visibilitychange",t),function(){document.removeEventListener("visibilitychange",t)}}),[])}(Or),(0,a.useEffect)((function(){(function(){return wt.apply(this,arguments)})().then((function(){return d(!0)})).catch((function(){return d(!0)}))}),[d]);var p=(0,a.useCallback)((function(){var e,t,r=void 0,i=null!==(e=(r="?"===window.location.hash[1]?new URLSearchParams(window.location.hash.substr(1)):new URLSearchParams(window.location.search)).get("host"))&&void 0!==e?e:void 0,a=null!==(t=r.get("join"))&&void 0!==t?t:void 0;i=Rt(i),a=Pt(a),n(W(i,a))}),[n]);return(0,a.useEffect)((function(){f&&p()}),[f,p]),(0,a.useEffect)((function(){f&&(s||u)&&"signed-in"===r&&(s?Fn(s).then((function(){})).catch((function(){})):u&&Vn(u).then((function(){})).catch((function(){})),n(W(void 0,void 0)))}),[n,r,s,u,f]),(0,E.jsxs)("div",{className:"".concat(pxt.appTarget.id," tw-flex tw-flex-col"),children:[!f&&(0,E.jsx)(A,{}),f&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(Gs,{}),"signed-out"===r&&(0,E.jsx)($,{}),"signed-in"===r&&(0,E.jsx)(Vs,{})]}),(0,E.jsx)(bm,{}),(0,E.jsx)(wm,{}),(0,E.jsx)(pm,{})]})},km=n(8466);window.addEventListener("DOMContentLoaded",(function(){var e=window.pxtTargetBundle;if(pxt.options.debug=/dbg=1/i.test(window.location.href),pxt.options.debug&&(pxt.debug=km.debug),pxt.setupWebConfig(window.pxtConfig||pxt.webConfig),pxt.setAppTarget(e),pxt.BrowserUtils.isLocalHostDev()){for(var t=pxt.webConfig,n=0,r=Object.keys(t);n<r.length;n++){var i,s,u=r[n];null!==(i=t[u])&&void 0!==i&&i.startsWith("/")&&-1==(null===(s=t[u])||void 0===s?void 0:s.indexOf("worker"))&&(t[u]="http://localhost:3232".concat(t[u]))}pxt.webConfig.workerjs="/blb".concat(pxt.webConfig.workerjs)}pxt.Cloud.apiRoot="https://www.makecode.com/api/",function(){pxt.analytics.enable(pxt.Util.userLanguage());var e={};if("undefined"!=typeof window){var t=window.screen;e["screen.width"]=t.width,e["screen.height"]=t.height,e["screen.availwidth"]=t.availWidth,e["screen.availheight"]=t.availHeight,e["screen.innerWidth"]=window.innerWidth,e["screen.innerHeight"]=window.innerHeight,e["screen.devicepixelratio"]=pxt.BrowserUtils.devicePixelRatio();var n=document.firstElementChild;n&&(e["screen.clientWidth"]=n.clientWidth,e["screen.clientHeight"]=n.clientHeight)}pxt.tickEvent("mp.loaded",e)}(),pxt.worker.getWorker(pxt.webConfig.workerjs),o.render((0,E.jsx)(a.StrictMode,{children:(0,E.jsx)(O,{children:(0,E.jsx)(xm,{})})}),document.getElementById("root"))}))}()}();
1
+ /*! For license information please see main.121cfaf0.js.LICENSE.txt */
2
+ !function(){var e={6186:function(e,t,n){"use strict";var r=n(8466),i=n(3705),a=n(6),o=n(3830);function s(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!i)throw Error(s(227));var u=new Set,l={};function c(e,t){f(e,t),f(e+"Capture",t)}function f(e,t){for(l[e]=t,e=0;e<t.length;e++)u.add(t[e])}var d=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h=Object.prototype.hasOwnProperty,m={},v={};function y(e,t,n,r,i,a,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new y(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new y(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new y(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new y(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new y(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new y(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new y(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new y(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new y(e,5,!1,e.toLowerCase(),null,!1,!1)}));var b=/[\-:]([a-z])/g;function w(e){return e[1].toUpperCase()}function x(e,t,n,r){var i=g.hasOwnProperty(t)?g[t]:null;(null!==i?0===i.type:!r&&2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1]))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!h.call(v,e)||!h.call(m,e)&&(p.test(e)?v[e]=!0:(m[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(b,w);g[t]=new y(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(b,w);g[t]=new y(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(b,w);g[t]=new y(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new y(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new y("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new y(e,1,!1,e.toLowerCase(),null,!0,!0)}));var k=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_=60103,E=60106,S=60107,O=60108,A=60114,C=60109,T=60110,N=60112,j=60113,P=60120,R=60115,I=60116,L=60121,M=60128,B=60129,D=60130,U=60131;if("function"==typeof Symbol&&Symbol.for){var F=Symbol.for;_=F("react.element"),E=F("react.portal"),S=F("react.fragment"),O=F("react.strict_mode"),A=F("react.profiler"),C=F("react.provider"),T=F("react.context"),N=F("react.forward_ref"),j=F("react.suspense"),P=F("react.suspense_list"),R=F("react.memo"),I=F("react.lazy"),L=F("react.block"),F("react.scope"),M=F("react.opaque.id"),B=F("react.debug_trace_mode"),D=F("react.offscreen"),U=F("react.legacy_hidden")}var z,V="function"==typeof Symbol&&Symbol.iterator;function H(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=V&&e[V]||e["@@iterator"])?e:null}function W(e){if(void 0===z)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);z=t&&t[1]||""}return"\n"+z+e}var q=!1;function G(e,t){if(!e||q)return"";q=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var i=e.stack.split("\n"),a=r.stack.split("\n"),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(1!==o||1!==s)do{if(o--,0>--s||i[o]!==a[s])return"\n"+i[o].replace(" at new "," at ")}while(1<=o&&0<=s);break}}}finally{q=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?W(e):""}function Z(e){switch(e.tag){case 5:return W(e.type);case 16:return W("Lazy");case 13:return W("Suspense");case 19:return W("SuspenseList");case 0:case 2:case 15:return G(e.type,!1);case 11:return G(e.type.render,!1);case 22:return G(e.type._render,!1);case 1:return G(e.type,!0);default:return""}}function Y(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case S:return"Fragment";case E:return"Portal";case A:return"Profiler";case O:return"StrictMode";case j:return"Suspense";case P:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case T:return(e.displayName||"Context")+".Consumer";case C:return(e._context.displayName||"Context")+".Provider";case N:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case R:return Y(e.type);case L:return Y(e._render);case I:t=e._payload,e=e._init;try{return Y(e(t))}catch(e){}}return null}function $(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function K(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function X(e){e._valueTracker||(e._valueTracker=function(e){var t=K(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=K(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function J(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function ee(e,t){var n=t.checked;return a({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function te(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=$(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function ne(e,t){null!=(t=t.checked)&&x(e,"checked",t,!1)}function re(e,t){ne(e,t);var n=$(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ae(e,t.type,n):t.hasOwnProperty("defaultValue")&&ae(e,t.type,$(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function ie(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ae(e,t,n){"number"===t&&J(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function oe(e,t){return e=a({children:void 0},t),(t=function(e){var t="";return i.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function se(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+$(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function ue(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(s(91));return a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function le(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(s(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(s(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:$(n)}}function ce(e,t){var n=$(t.value),r=$(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function fe(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var de="http://www.w3.org/1999/xhtml";function pe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function he(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?pe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var me,ve,ye=(ve=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((me=me||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=me.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ve(e,t)}))}:ve);function ge(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var be={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},we=["Webkit","ms","Moz","O"];function xe(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||be.hasOwnProperty(e)&&be[e]?(""+t).trim():t+"px"}function ke(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=xe(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(be).forEach((function(e){we.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),be[t]=be[e]}))}));var _e=a({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ee(e,t){if(t){if(_e[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(s(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(s(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(s(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(s(62))}}function Se(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Oe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ae=null,Ce=null,Te=null;function Ne(e){if(e=ei(e)){if("function"!=typeof Ae)throw Error(s(280));var t=e.stateNode;t&&(t=ni(t),Ae(e.stateNode,e.type,t))}}function je(e){Ce?Te?Te.push(e):Te=[e]:Ce=e}function Pe(){if(Ce){var e=Ce,t=Te;if(Te=Ce=null,Ne(e),t)for(e=0;e<t.length;e++)Ne(t[e])}}function Re(e,t){return e(t)}function Ie(e,t,n,r,i){return e(t,n,r,i)}function Le(){}var Me=Re,Be=!1,De=!1;function Ue(){null===Ce&&null===Te||(Le(),Pe())}function Fe(e,t){var n=e.stateNode;if(null===n)return null;var r=ni(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(s(231,t,typeof n));return n}var ze=!1;if(d)try{var Ve={};Object.defineProperty(Ve,"passive",{get:function(){ze=!0}}),window.addEventListener("test",Ve,Ve),window.removeEventListener("test",Ve,Ve)}catch(ve){ze=!1}function He(e,t,n,r,i,a,o,s,u){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}var We=!1,qe=null,Ge=!1,Ze=null,Ye={onError:function(e){We=!0,qe=e}};function $e(e,t,n,r,i,a,o,s,u){We=!1,qe=null,He.apply(Ye,arguments)}function Ke(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Xe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function Qe(e){if(Ke(e)!==e)throw Error(s(188))}function Je(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ke(e)))throw Error(s(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return Qe(i),e;if(a===r)return Qe(i),t;a=a.sibling}throw Error(s(188))}if(n.return!==r.return)n=i,r=a;else{for(var o=!1,u=i.child;u;){if(u===n){o=!0,n=i,r=a;break}if(u===r){o=!0,r=i,n=a;break}u=u.sibling}if(!o){for(u=a.child;u;){if(u===n){o=!0,n=a,r=i;break}if(u===r){o=!0,r=a,n=i;break}u=u.sibling}if(!o)throw Error(s(189))}}if(n.alternate!==r)throw Error(s(190))}if(3!==n.tag)throw Error(s(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function et(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var tt,nt,rt,it,at=!1,ot=[],st=null,ut=null,lt=null,ct=new Map,ft=new Map,dt=[],pt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ht(e,t,n,r,i){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:i,targetContainers:[r]}}function mt(e,t){switch(e){case"focusin":case"focusout":st=null;break;case"dragenter":case"dragleave":ut=null;break;case"mouseover":case"mouseout":lt=null;break;case"pointerover":case"pointerout":ct.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ft.delete(t.pointerId)}}function vt(e,t,n,r,i,a){return null===e||e.nativeEvent!==a?(e=ht(t,n,r,i,a),null!==t&&null!==(t=ei(t))&&nt(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function yt(e){var t=Jr(e.target);if(null!==t){var n=Ke(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Xe(n)))return e.blockedOn=t,void it(e.lanePriority,(function(){o.unstable_runWithPriority(e.priority,(function(){rt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function gt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=ei(n))&&nt(t),e.blockedOn=n,!1;t.shift()}return!0}function bt(e,t,n){gt(e)&&n.delete(t)}function wt(){for(at=!1;0<ot.length;){var e=ot[0];if(null!==e.blockedOn){null!==(e=ei(e.blockedOn))&&tt(e);break}for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&ot.shift()}null!==st&&gt(st)&&(st=null),null!==ut&&gt(ut)&&(ut=null),null!==lt&&gt(lt)&&(lt=null),ct.forEach(bt),ft.forEach(bt)}function xt(e,t){e.blockedOn===t&&(e.blockedOn=null,at||(at=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,wt)))}function kt(e){function t(t){return xt(t,e)}if(0<ot.length){xt(ot[0],e);for(var n=1;n<ot.length;n++){var r=ot[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==st&&xt(st,e),null!==ut&&xt(ut,e),null!==lt&&xt(lt,e),ct.forEach(t),ft.forEach(t),n=0;n<dt.length;n++)(r=dt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<dt.length&&null===(n=dt[0]).blockedOn;)yt(n),null===n.blockedOn&&dt.shift()}function _t(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Et={animationend:_t("Animation","AnimationEnd"),animationiteration:_t("Animation","AnimationIteration"),animationstart:_t("Animation","AnimationStart"),transitionend:_t("Transition","TransitionEnd")},St={},Ot={};function At(e){if(St[e])return St[e];if(!Et[e])return e;var t,n=Et[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ot)return St[e]=n[t];return e}d&&(Ot=document.createElement("div").style,"AnimationEvent"in window||(delete Et.animationend.animation,delete Et.animationiteration.animation,delete Et.animationstart.animation),"TransitionEvent"in window||delete Et.transitionend.transition);var Ct=At("animationend"),Tt=At("animationiteration"),Nt=At("animationstart"),jt=At("transitionend"),Pt=new Map,Rt=new Map,It=["abort","abort",Ct,"animationEnd",Tt,"animationIteration",Nt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",jt,"transitionEnd","waiting","waiting"];function Lt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1];i="on"+(i[0].toUpperCase()+i.slice(1)),Rt.set(r,t),Pt.set(r,i),c(i,[r])}}(0,o.unstable_now)();var Mt=8;function Bt(e){if(0!=(1&e))return Mt=15,1;if(0!=(2&e))return Mt=14,2;if(0!=(4&e))return Mt=13,4;var t=24&e;return 0!==t?(Mt=12,t):0!=(32&e)?(Mt=11,32):0!=(t=192&e)?(Mt=10,t):0!=(256&e)?(Mt=9,256):0!=(t=3584&e)?(Mt=8,t):0!=(4096&e)?(Mt=7,4096):0!=(t=4186112&e)?(Mt=6,t):0!=(t=62914560&e)?(Mt=5,t):67108864&e?(Mt=4,67108864):0!=(134217728&e)?(Mt=3,134217728):0!=(t=805306368&e)?(Mt=2,t):0!=(1073741824&e)?(Mt=1,1073741824):(Mt=8,e)}function Dt(e,t){var n=e.pendingLanes;if(0===n)return Mt=0;var r=0,i=0,a=e.expiredLanes,o=e.suspendedLanes,s=e.pingedLanes;if(0!==a)r=a,i=Mt=15;else if(0!=(a=134217727&n)){var u=a&~o;0!==u?(r=Bt(u),i=Mt):0!=(s&=a)&&(r=Bt(s),i=Mt)}else 0!=(a=n&~o)?(r=Bt(a),i=Mt):0!==s&&(r=Bt(s),i=Mt);if(0===r)return 0;if(r=n&((0>(r=31-Wt(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0==(t&o)){if(Bt(t),i<=Mt)return t;Mt=i}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-Wt(t)),r|=e[n],t&=~i;return r}function Ut(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Ft(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=zt(24&~t))?Ft(10,t):e;case 10:return 0===(e=zt(192&~t))?Ft(8,t):e;case 8:return 0===(e=zt(3584&~t))&&0===(e=zt(4186112&~t))&&(e=512),e;case 2:return 0===(t=zt(805306368&~t))&&(t=268435456),t}throw Error(s(358,e))}function zt(e){return e&-e}function Vt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ht(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Wt(t)]=n}var Wt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(qt(e)/Gt|0)|0},qt=Math.log,Gt=Math.LN2,Zt=o.unstable_UserBlockingPriority,Yt=o.unstable_runWithPriority,$t=!0;function Kt(e,t,n,r){Be||Le();var i=Qt,a=Be;Be=!0;try{Ie(i,e,t,n,r)}finally{(Be=a)||Ue()}}function Xt(e,t,n,r){Yt(Zt,Qt.bind(null,e,t,n,r))}function Qt(e,t,n,r){var i;if($t)if((i=0==(4&t))&&0<ot.length&&-1<pt.indexOf(e))e=ht(null,e,t,n,r),ot.push(e);else{var a=Jt(e,t,n,r);if(null===a)i&&mt(e,r);else{if(i){if(-1<pt.indexOf(e))return e=ht(a,e,t,n,r),void ot.push(e);if(function(e,t,n,r,i){switch(t){case"focusin":return st=vt(st,e,t,n,r,i),!0;case"dragenter":return ut=vt(ut,e,t,n,r,i),!0;case"mouseover":return lt=vt(lt,e,t,n,r,i),!0;case"pointerover":var a=i.pointerId;return ct.set(a,vt(ct.get(a)||null,e,t,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,ft.set(a,vt(ft.get(a)||null,e,t,n,r,i)),!0}return!1}(a,e,t,n,r))return;mt(e,r)}Pr(e,t,r,null,n)}}}function Jt(e,t,n,r){var i=Oe(r);if(null!==(i=Jr(i))){var a=Ke(i);if(null===a)i=null;else{var o=a.tag;if(13===o){if(null!==(i=Xe(a)))return i;i=null}else if(3===o){if(a.stateNode.hydrate)return 3===a.tag?a.stateNode.containerInfo:null;i=null}else a!==i&&(i=null)}}return Pr(e,t,r,i,n),null}var en=null,tn=null,nn=null;function rn(){if(nn)return nn;var e,t,n=tn,r=n.length,i="value"in en?en.value:en.textContent,a=i.length;for(e=0;e<r&&n[e]===i[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===i[a-t];t++);return nn=i.slice(e,1<t?1-t:void 0)}function an(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function on(){return!0}function sn(){return!1}function un(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?on:sn,this.isPropagationStopped=sn,this}return a(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=on)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=on)},persist:function(){},isPersistent:on}),t}var ln,cn,fn,dn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pn=un(dn),hn=a({},dn,{view:0,detail:0}),mn=un(hn),vn=a({},hn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:An,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==fn&&(fn&&"mousemove"===e.type?(ln=e.screenX-fn.screenX,cn=e.screenY-fn.screenY):cn=ln=0,fn=e),ln)},movementY:function(e){return"movementY"in e?e.movementY:cn}}),yn=un(vn),gn=un(a({},vn,{dataTransfer:0})),bn=un(a({},hn,{relatedTarget:0})),wn=un(a({},dn,{animationName:0,elapsedTime:0,pseudoElement:0})),xn=un(a({},dn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),kn=un(a({},dn,{data:0})),_n={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},En={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function On(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function An(){return On}var Cn=un(a({},hn,{key:function(e){if(e.key){var t=_n[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=an(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?En[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:An,charCode:function(e){return"keypress"===e.type?an(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?an(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),Tn=un(a({},vn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Nn=un(a({},hn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:An})),jn=un(a({},dn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Pn=un(a({},vn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Rn=[9,13,27,32],In=d&&"CompositionEvent"in window,Ln=null;d&&"documentMode"in document&&(Ln=document.documentMode);var Mn=d&&"TextEvent"in window&&!Ln,Bn=d&&(!In||Ln&&8<Ln&&11>=Ln),Dn=String.fromCharCode(32),Un=!1;function Fn(e,t){switch(e){case"keyup":return-1!==Rn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Vn=!1,Hn={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 Wn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Hn[e.type]:"textarea"===t}function qn(e,t,n,r){je(r),0<(t=Ir(t,"onChange")).length&&(n=new pn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Gn=null,Zn=null;function Yn(e){Or(e,0)}function $n(e){if(Q(ti(e)))return e}function Kn(e,t){if("change"===e)return t}var Xn=!1;if(d){var Qn;if(d){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"==typeof er.oninput}Qn=Jn}else Qn=!1;Xn=Qn&&(!document.documentMode||9<document.documentMode)}function tr(){Gn&&(Gn.detachEvent("onpropertychange",nr),Zn=Gn=null)}function nr(e){if("value"===e.propertyName&&$n(Zn)){var t=[];if(qn(t,Zn,e,Oe(e)),e=Yn,Be)e(t);else{Be=!0;try{Re(e,t)}finally{Be=!1,Ue()}}}}function rr(e,t,n){"focusin"===e?(tr(),Zn=n,(Gn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return $n(Zn)}function ar(e,t){if("click"===e)return $n(t)}function or(e,t){if("input"===e||"change"===e)return $n(t)}var sr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},ur=Object.prototype.hasOwnProperty;function lr(e,t){if(sr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!ur.call(t,n[r])||!sr(e[n[r]],t[n[r]]))return!1;return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function fr(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pr(){for(var e=window,t=J();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=J((e=t.contentWindow).document)}return t}function hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var mr=d&&"documentMode"in document&&11>=document.documentMode,vr=null,yr=null,gr=null,br=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==vr||vr!==J(r)||(r="selectionStart"in(r=vr)&&hr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},gr&&lr(gr,r)||(gr=r,0<(r=Ir(yr,"onSelect")).length&&(t=new pn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=vr)))}Lt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Lt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Lt(It,2);for(var xr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),kr=0;kr<xr.length;kr++)Rt.set(xr[kr],0);f("onMouseEnter",["mouseout","mouseover"]),f("onMouseLeave",["mouseout","mouseover"]),f("onPointerEnter",["pointerout","pointerover"]),f("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _r="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Er=new Set("cancel close invalid load scroll toggle".split(" ").concat(_r));function Sr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,a,o,u,l){if($e.apply(this,arguments),We){if(!We)throw Error(s(198));var c=qe;We=!1,qe=null,Ge||(Ge=!0,Ze=c)}}(r,t,void 0,e),e.currentTarget=null}function Or(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],u=s.instance,l=s.currentTarget;if(s=s.listener,u!==a&&i.isPropagationStopped())break e;Sr(i,s,l),a=u}else for(o=0;o<r.length;o++){if(u=(s=r[o]).instance,l=s.currentTarget,s=s.listener,u!==a&&i.isPropagationStopped())break e;Sr(i,s,l),a=u}}}if(Ge)throw e=Ze,Ge=!1,Ze=null,e}function Ar(e,t){var n=ri(t),r=e+"__bubble";n.has(r)||(jr(t,e,2,!1),n.add(r))}var Cr="_reactListening"+Math.random().toString(36).slice(2);function Tr(e){e[Cr]||(e[Cr]=!0,u.forEach((function(t){Er.has(t)||Nr(t,!1,e,null),Nr(t,!0,e,null)})))}function Nr(e,t,n,r){var i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,a=n;if("selectionchange"===e&&9!==n.nodeType&&(a=n.ownerDocument),null!==r&&!t&&Er.has(e)){if("scroll"!==e)return;i|=2,a=r}var o=ri(a),s=e+"__"+(t?"capture":"bubble");o.has(s)||(t&&(i|=4),jr(a,e,i,t),o.add(s))}function jr(e,t,n,r){var i=Rt.get(t);switch(void 0===i?2:i){case 0:i=Kt;break;case 1:i=Xt;break;default:i=Qt}n=i.bind(null,t,n,e),i=void 0,!ze||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Pr(e,t,n,r,i){var a=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var o=r.tag;if(3===o||4===o){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===o)for(o=r.return;null!==o;){var u=o.tag;if((3===u||4===u)&&((u=o.stateNode.containerInfo)===i||8===u.nodeType&&u.parentNode===i))return;o=o.return}for(;null!==s;){if(null===(o=Jr(s)))return;if(5===(u=o.tag)||6===u){r=a=o;continue e}s=s.parentNode}}r=r.return}!function(e,t,n){if(De)return e();De=!0;try{Me(e,t,n)}finally{De=!1,Ue()}}((function(){var r=a,i=Oe(n),o=[];e:{var s=Pt.get(e);if(void 0!==s){var u=pn,l=e;switch(e){case"keypress":if(0===an(n))break e;case"keydown":case"keyup":u=Cn;break;case"focusin":l="focus",u=bn;break;case"focusout":l="blur",u=bn;break;case"beforeblur":case"afterblur":u=bn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=yn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=Nn;break;case Ct:case Tt:case Nt:u=wn;break;case jt:u=jn;break;case"scroll":u=mn;break;case"wheel":u=Pn;break;case"copy":case"cut":case"paste":u=xn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=Tn}var c=0!=(4&t),f=!c&&"scroll"===e,d=c?null!==s?s+"Capture":null:s;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==d&&null!=(m=Fe(h,d))&&c.push(Rr(h,m,p))),f)break;h=h.return}0<c.length&&(s=new u(s,l,null,n,i),o.push({event:s,listeners:c}))}}if(0==(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||0!=(16&t)||!(l=n.relatedTarget||n.fromElement)||!Jr(l)&&!l[Xr])&&(u||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,u?(u=r,null!==(l=(l=n.relatedTarget||n.toElement)?Jr(l):null)&&(l!==(f=Ke(l))||5!==l.tag&&6!==l.tag)&&(l=null)):(u=null,l=r),u!==l)){if(c=yn,m="onMouseLeave",d="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Tn,m="onPointerLeave",d="onPointerEnter",h="pointer"),f=null==u?s:ti(u),p=null==l?s:ti(l),(s=new c(m,h+"leave",u,n,i)).target=f,s.relatedTarget=p,m=null,Jr(i)===r&&((c=new c(d,h+"enter",l,n,i)).target=p,c.relatedTarget=f,m=c),f=m,u&&l)e:{for(d=l,h=0,p=c=u;p;p=Lr(p))h++;for(p=0,m=d;m;m=Lr(m))p++;for(;0<h-p;)c=Lr(c),h--;for(;0<p-h;)d=Lr(d),p--;for(;h--;){if(c===d||null!==d&&c===d.alternate)break e;c=Lr(c),d=Lr(d)}c=null}else c=null;null!==u&&Mr(o,s,u,c,!1),null!==l&&null!==f&&Mr(o,f,l,c,!0)}if("select"===(u=(s=r?ti(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===u&&"file"===s.type)var v=Kn;else if(Wn(s))if(Xn)v=or;else{v=ir;var y=rr}else(u=s.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(v=ar);switch(v&&(v=v(e,r))?qn(o,v,n,i):(y&&y(e,s,r),"focusout"===e&&(y=s._wrapperState)&&y.controlled&&"number"===s.type&&ae(s,"number",s.value)),y=r?ti(r):window,e){case"focusin":(Wn(y)||"true"===y.contentEditable)&&(vr=y,yr=r,gr=null);break;case"focusout":gr=yr=vr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,wr(o,n,i);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":wr(o,n,i)}var g;if(In)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Vn?Fn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Bn&&"ko"!==n.locale&&(Vn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Vn&&(g=rn()):(tn="value"in(en=i)?en.value:en.textContent,Vn=!0)),0<(y=Ir(r,b)).length&&(b=new kn(b,e,null,n,i),o.push({event:b,listeners:y}),(g||null!==(g=zn(n)))&&(b.data=g))),(g=Mn?function(e,t){switch(e){case"compositionend":return zn(t);case"keypress":return 32!==t.which?null:(Un=!0,Dn);case"textInput":return(e=t.data)===Dn&&Un?null:e;default:return null}}(e,n):function(e,t){if(Vn)return"compositionend"===e||!In&&Fn(e,t)?(e=rn(),nn=tn=en=null,Vn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Bn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=Ir(r,"onBeforeInput")).length&&(i=new kn("onBeforeInput","beforeinput",null,n,i),o.push({event:i,listeners:r}),i.data=g)}Or(o,t)}))}function Rr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ir(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,a=i.stateNode;5===i.tag&&null!==a&&(i=a,null!=(a=Fe(e,n))&&r.unshift(Rr(e,a,i)),null!=(a=Fe(e,t))&&r.push(Rr(e,a,i))),e=e.return}return r}function Lr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Mr(e,t,n,r,i){for(var a=t._reactName,o=[];null!==n&&n!==r;){var s=n,u=s.alternate,l=s.stateNode;if(null!==u&&u===r)break;5===s.tag&&null!==l&&(s=l,i?null!=(u=Fe(n,a))&&o.unshift(Rr(n,u,s)):i||null!=(u=Fe(n,a))&&o.push(Rr(n,u,s))),n=n.return}0!==o.length&&e.push({event:t,listeners:o})}function Br(){}var Dr=null,Ur=null;function Fr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function zr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Vr="function"==typeof setTimeout?setTimeout:void 0,Hr="function"==typeof clearTimeout?clearTimeout:void 0;function Wr(e){(1===e.nodeType||9===e.nodeType&&null!=(e=e.body))&&(e.textContent="")}function qr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Gr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Zr=0,Yr=Math.random().toString(36).slice(2),$r="__reactFiber$"+Yr,Kr="__reactProps$"+Yr,Xr="__reactContainer$"+Yr,Qr="__reactEvents$"+Yr;function Jr(e){var t=e[$r];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Xr]||n[$r]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Gr(e);null!==e;){if(n=e[$r])return n;e=Gr(e)}return t}n=(e=n).parentNode}return null}function ei(e){return!(e=e[$r]||e[Xr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ti(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(s(33))}function ni(e){return e[Kr]||null}function ri(e){var t=e[Qr];return void 0===t&&(t=e[Qr]=new Set),t}var ii=[],ai=-1;function oi(e){return{current:e}}function si(e){0>ai||(e.current=ii[ai],ii[ai]=null,ai--)}function ui(e,t){ai++,ii[ai]=e.current,e.current=t}var li={},ci=oi(li),fi=oi(!1),di=li;function pi(e,t){var n=e.type.contextTypes;if(!n)return li;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,a={};for(i in n)a[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function hi(e){return null!==(e=e.childContextTypes)&&void 0!==e}function mi(){si(fi),si(ci)}function vi(e,t,n){if(ci.current!==li)throw Error(s(168));ui(ci,t),ui(fi,n)}function yi(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(s(108,Y(t)||"Unknown",i));return a({},n,r)}function gi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||li,di=ci.current,ui(ci,e),ui(fi,fi.current),!0}function bi(e,t,n){var r=e.stateNode;if(!r)throw Error(s(169));n?(e=yi(e,t,di),r.__reactInternalMemoizedMergedChildContext=e,si(fi),si(ci),ui(ci,e)):si(fi),ui(fi,n)}var wi=null,xi=null,ki=o.unstable_runWithPriority,_i=o.unstable_scheduleCallback,Ei=o.unstable_cancelCallback,Si=o.unstable_shouldYield,Oi=o.unstable_requestPaint,Ai=o.unstable_now,Ci=o.unstable_getCurrentPriorityLevel,Ti=o.unstable_ImmediatePriority,Ni=o.unstable_UserBlockingPriority,ji=o.unstable_NormalPriority,Pi=o.unstable_LowPriority,Ri=o.unstable_IdlePriority,Ii={},Li=void 0!==Oi?Oi:function(){},Mi=null,Bi=null,Di=!1,Ui=Ai(),Fi=1e4>Ui?Ai:function(){return Ai()-Ui};function zi(){switch(Ci()){case Ti:return 99;case Ni:return 98;case ji:return 97;case Pi:return 96;case Ri:return 95;default:throw Error(s(332))}}function Vi(e){switch(e){case 99:return Ti;case 98:return Ni;case 97:return ji;case 96:return Pi;case 95:return Ri;default:throw Error(s(332))}}function Hi(e,t){return e=Vi(e),ki(e,t)}function Wi(e,t,n){return e=Vi(e),_i(e,t,n)}function qi(){if(null!==Bi){var e=Bi;Bi=null,Ei(e)}Gi()}function Gi(){if(!Di&&null!==Mi){Di=!0;var e=0;try{var t=Mi;Hi(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Mi=null}catch(t){throw null!==Mi&&(Mi=Mi.slice(e+1)),_i(Ti,qi),t}finally{Di=!1}}}var Zi=k.ReactCurrentBatchConfig;function Yi(e,t){if(e&&e.defaultProps){for(var n in t=a({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var $i=oi(null),Ki=null,Xi=null,Qi=null;function Ji(){Qi=Xi=Ki=null}function ea(e){var t=$i.current;si($i),e.type._context._currentValue=t}function ta(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function na(e,t){Ki=e,Qi=Xi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Io=!0),e.firstContext=null)}function ra(e,t){if(Qi!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Qi=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Xi){if(null===Ki)throw Error(s(308));Xi=t,Ki.dependencies={lanes:0,firstContext:t,responders:null}}else Xi=Xi.next=t;return e._currentValue}var ia=!1;function aa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function oa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function sa(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ua(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function la(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?i=a=o:a=a.next=o,n=n.next}while(null!==n);null===a?i=a=t:a=a.next=t}else i=a=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ca(e,t,n,r){var i=e.updateQueue;ia=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,u=i.shared.pending;if(null!==u){i.shared.pending=null;var l=u,c=l.next;l.next=null,null===s?o=c:s.next=c,s=l;var f=e.alternate;if(null!==f){var d=(f=f.updateQueue).lastBaseUpdate;d!==s&&(null===d?f.firstBaseUpdate=c:d.next=c,f.lastBaseUpdate=l)}}if(null!==o){for(d=i.baseState,s=0,f=c=l=null;;){u=o.lane;var p=o.eventTime;if((r&u)===u){null!==f&&(f=f.next={eventTime:p,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var h=e,m=o;switch(u=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(p,d,u);break e}d=h;break e;case 3:h.flags=-4097&h.flags|64;case 0:if(null===(u="function"==typeof(h=m.payload)?h.call(p,d,u):h)||void 0===u)break e;d=a({},d,u);break e;case 2:ia=!0}}null!==o.callback&&(e.flags|=32,null===(u=i.effects)?i.effects=[o]:u.push(o))}else p={eventTime:p,lane:u,tag:o.tag,payload:o.payload,callback:o.callback,next:null},null===f?(c=f=p,l=d):f=f.next=p,s|=u;if(null===(o=o.next)){if(null===(u=i.shared.pending))break;o=u.next,u.next=null,i.lastBaseUpdate=u,i.shared.pending=null}}null===f&&(l=d),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=f,Ms|=s,e.lanes=s,e.memoizedState=d}}function fa(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(s(191,i));i.call(r)}}}var da=(new i.Component).refs;function pa(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:a({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ha={isMounted:function(e){return!!(e=e._reactInternals)&&Ke(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=su(),i=uu(e),a=sa(r,i);a.payload=t,null!=n&&(a.callback=n),ua(e,a),lu(e,i,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=su(),i=uu(e),a=sa(r,i);a.tag=1,a.payload=t,null!=n&&(a.callback=n),ua(e,a),lu(e,i,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=su(),r=uu(e),i=sa(n,r);i.tag=2,null!=t&&(i.callback=t),ua(e,i),lu(e,r,n)}};function ma(e,t,n,r,i,a,o){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,o):!(t.prototype&&t.prototype.isPureReactComponent&&lr(n,r)&&lr(i,a))}function va(e,t,n){var r=!1,i=li,a=t.contextType;return"object"==typeof a&&null!==a?a=ra(a):(i=hi(t)?di:ci.current,a=(r=null!==(r=t.contextTypes)&&void 0!==r)?pi(e,i):li),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ha,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function ya(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ha.enqueueReplaceState(t,t.state,null)}function ga(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=da,aa(e);var a=t.contextType;"object"==typeof a&&null!==a?i.context=ra(a):(a=hi(t)?di:ci.current,i.context=pi(e,a)),ca(e,n,i,r),i.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(pa(e,t,a,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&ha.enqueueReplaceState(i,i.state,null),ca(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4)}var ba=Array.isArray;function wa(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(s(309));var r=n.stateNode}if(!r)throw Error(s(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=r.refs;t===da&&(t=r.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}if("string"!=typeof e)throw Error(s(284));if(!n._owner)throw Error(s(290,e))}return e}function xa(e,t){if("textarea"!==e.type)throw Error(s(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function ka(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=zu(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function o(t){return e&&null===t.alternate&&(t.flags=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=qu(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function l(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=wa(e,t,n),r.return=e,r):((r=Vu(n.type,n.key,n.props,null,e.mode,r)).ref=wa(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Gu(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function f(e,t,n,r,a){return null===t||7!==t.tag?((t=Hu(n,e.mode,r,a)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=qu(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case _:return(n=Vu(t.type,t.key,t.props,null,e.mode,n)).ref=wa(e,null,t),n.return=e,n;case E:return(t=Gu(t,e.mode,n)).return=e,t}if(ba(t)||H(t))return(t=Hu(t,e.mode,n,null)).return=e,t;xa(e,t)}return null}function p(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:u(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case _:return n.key===i?n.type===S?f(e,t,n.props.children,r,i):l(e,t,n,r):null;case E:return n.key===i?c(e,t,n,r):null}if(ba(n)||H(n))return null!==i?null:f(e,t,n,r,null);xa(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r||"number"==typeof r)return u(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case _:return e=e.get(null===r.key?n:r.key)||null,r.type===S?f(t,e,r.props.children,i,r.key):l(t,e,r,i);case E:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(ba(r)||H(r))return f(t,e=e.get(n)||null,r,i,null);xa(t,r)}return null}function m(i,o,s,u){for(var l=null,c=null,f=o,m=o=0,v=null;null!==f&&m<s.length;m++){f.index>m?(v=f,f=null):v=f.sibling;var y=p(i,f,s[m],u);if(null===y){null===f&&(f=v);break}e&&f&&null===y.alternate&&t(i,f),o=a(y,o,m),null===c?l=y:c.sibling=y,c=y,f=v}if(m===s.length)return n(i,f),l;if(null===f){for(;m<s.length;m++)null!==(f=d(i,s[m],u))&&(o=a(f,o,m),null===c?l=f:c.sibling=f,c=f);return l}for(f=r(i,f);m<s.length;m++)null!==(v=h(f,i,m,s[m],u))&&(e&&null!==v.alternate&&f.delete(null===v.key?m:v.key),o=a(v,o,m),null===c?l=v:c.sibling=v,c=v);return e&&f.forEach((function(e){return t(i,e)})),l}function v(i,o,u,l){var c=H(u);if("function"!=typeof c)throw Error(s(150));if(null==(u=c.call(u)))throw Error(s(151));for(var f=c=null,m=o,v=o=0,y=null,g=u.next();null!==m&&!g.done;v++,g=u.next()){m.index>v?(y=m,m=null):y=m.sibling;var b=p(i,m,g.value,l);if(null===b){null===m&&(m=y);break}e&&m&&null===b.alternate&&t(i,m),o=a(b,o,v),null===f?c=b:f.sibling=b,f=b,m=y}if(g.done)return n(i,m),c;if(null===m){for(;!g.done;v++,g=u.next())null!==(g=d(i,g.value,l))&&(o=a(g,o,v),null===f?c=g:f.sibling=g,f=g);return c}for(m=r(i,m);!g.done;v++,g=u.next())null!==(g=h(m,i,v,g.value,l))&&(e&&null!==g.alternate&&m.delete(null===g.key?v:g.key),o=a(g,o,v),null===f?c=g:f.sibling=g,f=g);return e&&m.forEach((function(e){return t(i,e)})),c}return function(e,r,a,u){var l="object"==typeof a&&null!==a&&a.type===S&&null===a.key;l&&(a=a.props.children);var c="object"==typeof a&&null!==a;if(c)switch(a.$$typeof){case _:e:{for(c=a.key,l=r;null!==l;){if(l.key===c){if(7===l.tag){if(a.type===S){n(e,l.sibling),(r=i(l,a.props.children)).return=e,e=r;break e}}else if(l.elementType===a.type){n(e,l.sibling),(r=i(l,a.props)).ref=wa(e,l,a),r.return=e,e=r;break e}n(e,l);break}t(e,l),l=l.sibling}a.type===S?((r=Hu(a.props.children,e.mode,u,a.key)).return=e,e=r):((u=Vu(a.type,a.key,a.props,null,e.mode,u)).ref=wa(e,r,a),u.return=e,e=u)}return o(e);case E:e:{for(l=a.key;null!==r;){if(r.key===l){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),(r=i(r,a.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Gu(a,e.mode,u)).return=e,e=r}return o(e)}if("string"==typeof a||"number"==typeof a)return a=""+a,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,a)).return=e,e=r):(n(e,r),(r=qu(a,e.mode,u)).return=e,e=r),o(e);if(ba(a))return m(e,r,a,u);if(H(a))return v(e,r,a,u);if(c&&xa(e,a),void 0===a&&!l)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(s(152,Y(e.type)||"Component"))}return n(e,r)}}var _a=ka(!0),Ea=ka(!1),Sa={},Oa=oi(Sa),Aa=oi(Sa),Ca=oi(Sa);function Ta(e){if(e===Sa)throw Error(s(174));return e}function Na(e,t){switch(ui(Ca,t),ui(Aa,e),ui(Oa,Sa),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:he(null,"");break;default:t=he(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}si(Oa),ui(Oa,t)}function ja(){si(Oa),si(Aa),si(Ca)}function Pa(e){Ta(Ca.current);var t=Ta(Oa.current),n=he(t,e.type);t!==n&&(ui(Aa,e),ui(Oa,n))}function Ra(e){Aa.current===e&&(si(Oa),si(Aa))}var Ia=oi(0);function La(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ma=null,Ba=null,Da=!1;function Ua(e,t){var n=Uu(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Fa(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function za(e){if(Da){var t=Ba;if(t){var n=t;if(!Fa(e,t)){if(!(t=qr(n.nextSibling))||!Fa(e,t))return e.flags=-1025&e.flags|2,Da=!1,void(Ma=e);Ua(Ma,n)}Ma=e,Ba=qr(t.firstChild)}else e.flags=-1025&e.flags|2,Da=!1,Ma=e}}function Va(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Ma=e}function Ha(e){if(e!==Ma)return!1;if(!Da)return Va(e),Da=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!zr(t,e.memoizedProps))for(t=Ba;t;)Ua(e,t),t=qr(t.nextSibling);if(Va(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(s(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Ba=qr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Ba=null}}else Ba=Ma?qr(e.stateNode.nextSibling):null;return!0}function Wa(){Ba=Ma=null,Da=!1}var qa=[];function Ga(){for(var e=0;e<qa.length;e++)qa[e]._workInProgressVersionPrimary=null;qa.length=0}var Za=k.ReactCurrentDispatcher,Ya=k.ReactCurrentBatchConfig,$a=0,Ka=null,Xa=null,Qa=null,Ja=!1,eo=!1;function to(){throw Error(s(321))}function no(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function ro(e,t,n,r,i,a){if($a=a,Ka=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Za.current=null===e||null===e.memoizedState?No:jo,e=n(r,i),eo){a=0;do{if(eo=!1,!(25>a))throw Error(s(301));a+=1,Qa=Xa=null,t.updateQueue=null,Za.current=Po,e=n(r,i)}while(eo)}if(Za.current=To,t=null!==Xa&&null!==Xa.next,$a=0,Qa=Xa=Ka=null,Ja=!1,t)throw Error(s(300));return e}function io(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Qa?Ka.memoizedState=Qa=e:Qa=Qa.next=e,Qa}function ao(){if(null===Xa){var e=Ka.alternate;e=null!==e?e.memoizedState:null}else e=Xa.next;var t=null===Qa?Ka.memoizedState:Qa.next;if(null!==t)Qa=t,Xa=e;else{if(null===e)throw Error(s(310));e={memoizedState:(Xa=e).memoizedState,baseState:Xa.baseState,baseQueue:Xa.baseQueue,queue:Xa.queue,next:null},null===Qa?Ka.memoizedState=Qa=e:Qa=Qa.next=e}return Qa}function oo(e,t){return"function"==typeof t?t(e):t}function so(e){var t=ao(),n=t.queue;if(null===n)throw Error(s(311));n.lastRenderedReducer=e;var r=Xa,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var o=i.next;i.next=a.next,a.next=o}r.baseQueue=i=a,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var u=o=a=null,l=i;do{var c=l.lane;if(($a&c)===c)null!==u&&(u=u.next={lane:0,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),r=l.eagerReducer===e?l.eagerState:e(r,l.action);else{var f={lane:c,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};null===u?(o=u=f,a=r):u=u.next=f,Ka.lanes|=c,Ms|=c}l=l.next}while(null!==l&&l!==i);null===u?a=r:u.next=o,sr(r,t.memoizedState)||(Io=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=u,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function uo(e){var t=ao(),n=t.queue;if(null===n)throw Error(s(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var o=i=i.next;do{a=e(a,o.action),o=o.next}while(o!==i);sr(a,t.memoizedState)||(Io=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function lo(e,t,n){var r=t._getVersion;r=r(t._source);var i=t._workInProgressVersionPrimary;if(null!==i?e=i===r:(e=e.mutableReadLanes,(e=($a&e)===e)&&(t._workInProgressVersionPrimary=r,qa.push(t))),e)return n(t._source);throw qa.push(t),Error(s(350))}function co(e,t,n,r){var i=Cs;if(null===i)throw Error(s(349));var a=t._getVersion,o=a(t._source),u=Za.current,l=u.useState((function(){return lo(i,t,n)})),c=l[1],f=l[0];l=Qa;var d=e.memoizedState,p=d.refs,h=p.getSnapshot,m=d.source;d=d.subscribe;var v=Ka;return e.memoizedState={refs:p,source:t,subscribe:r},u.useEffect((function(){p.getSnapshot=n,p.setSnapshot=c;var e=a(t._source);if(!sr(o,e)){e=n(t._source),sr(f,e)||(c(e),e=uu(v),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,s=e;0<s;){var u=31-Wt(s),l=1<<u;r[u]|=e,s&=~l}}}),[n,t,r]),u.useEffect((function(){return r(t._source,(function(){var e=p.getSnapshot,n=p.setSnapshot;try{n(e(t._source));var r=uu(v);i.mutableReadLanes|=r&i.pendingLanes}catch(e){n((function(){throw e}))}}))}),[t,r]),sr(h,n)&&sr(m,t)&&sr(d,r)||((e={pending:null,dispatch:null,lastRenderedReducer:oo,lastRenderedState:f}).dispatch=c=Co.bind(null,Ka,e),l.queue=e,l.baseQueue=null,f=lo(i,t,n),l.memoizedState=l.baseState=f),f}function fo(e,t,n){return co(ao(),e,t,n)}function po(e){var t=io();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:oo,lastRenderedState:e}).dispatch=Co.bind(null,Ka,e),[t.memoizedState,e]}function ho(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Ka.updateQueue)?(t={lastEffect:null},Ka.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function mo(e){return e={current:e},io().memoizedState=e}function vo(){return ao().memoizedState}function yo(e,t,n,r){var i=io();Ka.flags|=e,i.memoizedState=ho(1|t,n,void 0,void 0===r?null:r)}function go(e,t,n,r){var i=ao();r=void 0===r?null:r;var a=void 0;if(null!==Xa){var o=Xa.memoizedState;if(a=o.destroy,null!==r&&no(r,o.deps))return void ho(t,n,a,r)}Ka.flags|=e,i.memoizedState=ho(1|t,n,a,r)}function bo(e,t){return yo(516,4,e,t)}function wo(e,t){return go(516,4,e,t)}function xo(e,t){return go(4,2,e,t)}function ko(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function _o(e,t,n){return n=null!=n?n.concat([e]):null,go(4,2,ko.bind(null,t,e),n)}function Eo(){}function So(e,t){var n=ao();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&no(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Oo(e,t){var n=ao();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&no(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ao(e,t){var n=zi();Hi(98>n?98:n,(function(){e(!0)})),Hi(97<n?97:n,(function(){var n=Ya.transition;Ya.transition=1;try{e(!1),t()}finally{Ya.transition=n}}))}function Co(e,t,n){var r=su(),i=uu(e),a={lane:i,action:n,eagerReducer:null,eagerState:null,next:null},o=t.pending;if(null===o?a.next=a:(a.next=o.next,o.next=a),t.pending=a,o=e.alternate,e===Ka||null!==o&&o===Ka)eo=Ja=!0;else{if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var s=t.lastRenderedState,u=o(s,n);if(a.eagerReducer=o,a.eagerState=u,sr(u,s))return}catch(e){}lu(e,i,r)}}var To={readContext:ra,useCallback:to,useContext:to,useEffect:to,useImperativeHandle:to,useLayoutEffect:to,useMemo:to,useReducer:to,useRef:to,useState:to,useDebugValue:to,useDeferredValue:to,useTransition:to,useMutableSource:to,useOpaqueIdentifier:to,unstable_isNewReconciler:!1},No={readContext:ra,useCallback:function(e,t){return io().memoizedState=[e,void 0===t?null:t],e},useContext:ra,useEffect:bo,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,yo(4,2,ko.bind(null,t,e),n)},useLayoutEffect:function(e,t){return yo(4,2,e,t)},useMemo:function(e,t){var n=io();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=io();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Co.bind(null,Ka,e),[r.memoizedState,e]},useRef:mo,useState:po,useDebugValue:Eo,useDeferredValue:function(e){var t=po(e),n=t[0],r=t[1];return bo((function(){var t=Ya.transition;Ya.transition=1;try{r(e)}finally{Ya.transition=t}}),[e]),n},useTransition:function(){var e=po(!1),t=e[0];return mo(e=Ao.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=io();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},co(r,e,t,n)},useOpaqueIdentifier:function(){if(Da){var e=!1,t=function(e){return{$$typeof:M,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Zr++).toString(36))),Error(s(355))})),n=po(t)[1];return 0==(2&Ka.mode)&&(Ka.flags|=516,ho(5,(function(){n("r:"+(Zr++).toString(36))}),void 0,null)),t}return po(t="r:"+(Zr++).toString(36)),t},unstable_isNewReconciler:!1},jo={readContext:ra,useCallback:So,useContext:ra,useEffect:wo,useImperativeHandle:_o,useLayoutEffect:xo,useMemo:Oo,useReducer:so,useRef:vo,useState:function(){return so(oo)},useDebugValue:Eo,useDeferredValue:function(e){var t=so(oo),n=t[0],r=t[1];return wo((function(){var t=Ya.transition;Ya.transition=1;try{r(e)}finally{Ya.transition=t}}),[e]),n},useTransition:function(){var e=so(oo)[0];return[vo().current,e]},useMutableSource:fo,useOpaqueIdentifier:function(){return so(oo)[0]},unstable_isNewReconciler:!1},Po={readContext:ra,useCallback:So,useContext:ra,useEffect:wo,useImperativeHandle:_o,useLayoutEffect:xo,useMemo:Oo,useReducer:uo,useRef:vo,useState:function(){return uo(oo)},useDebugValue:Eo,useDeferredValue:function(e){var t=uo(oo),n=t[0],r=t[1];return wo((function(){var t=Ya.transition;Ya.transition=1;try{r(e)}finally{Ya.transition=t}}),[e]),n},useTransition:function(){var e=uo(oo)[0];return[vo().current,e]},useMutableSource:fo,useOpaqueIdentifier:function(){return uo(oo)[0]},unstable_isNewReconciler:!1},Ro=k.ReactCurrentOwner,Io=!1;function Lo(e,t,n,r){t.child=null===e?Ea(t,null,n,r):_a(t,e.child,n,r)}function Mo(e,t,n,r,i){n=n.render;var a=t.ref;return na(t,i),r=ro(e,t,n,r,a,i),null===e||Io?(t.flags|=1,Lo(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,es(e,t,i))}function Bo(e,t,n,r,i,a){if(null===e){var o=n.type;return"function"!=typeof o||Fu(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Vu(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Do(e,t,o,r,i,a))}return o=e.child,0==(i&a)&&(i=o.memoizedProps,(n=null!==(n=n.compare)?n:lr)(i,r)&&e.ref===t.ref)?es(e,t,a):(t.flags|=1,(e=zu(o,r)).ref=t.ref,e.return=t,t.child=e)}function Do(e,t,n,r,i,a){if(null!==e&&lr(e.memoizedProps,r)&&e.ref===t.ref){if(Io=!1,0==(a&i))return t.lanes=e.lanes,es(e,t,a);0!=(16384&e.flags)&&(Io=!0)}return zo(e,t,n,r,a)}function Uo(e,t,n){var r=t.pendingProps,i=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0==(4&t.mode))t.memoizedState={baseLanes:0},yu(t,n);else{if(0==(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},yu(t,e),null;t.memoizedState={baseLanes:0},yu(t,null!==a?a.baseLanes:n)}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,yu(t,r);return Lo(e,t,i,n),t.child}function Fo(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function zo(e,t,n,r,i){var a=hi(n)?di:ci.current;return a=pi(t,a),na(t,i),n=ro(e,t,n,r,a,i),null===e||Io?(t.flags|=1,Lo(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,es(e,t,i))}function Vo(e,t,n,r,i){if(hi(n)){var a=!0;gi(t)}else a=!1;if(na(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),va(t,n,r),ga(t,n,r,i),r=!0;else if(null===e){var o=t.stateNode,s=t.memoizedProps;o.props=s;var u=o.context,l=n.contextType;l="object"==typeof l&&null!==l?ra(l):pi(t,l=hi(n)?di:ci.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof o.getSnapshotBeforeUpdate;f||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(s!==r||u!==l)&&ya(t,o,r,l),ia=!1;var d=t.memoizedState;o.state=d,ca(t,r,o,i),u=t.memoizedState,s!==r||d!==u||fi.current||ia?("function"==typeof c&&(pa(t,n,c,r),u=t.memoizedState),(s=ia||ma(t,n,s,r,d,u,l))?(f||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.flags|=4)):("function"==typeof o.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=l,r=s):("function"==typeof o.componentDidMount&&(t.flags|=4),r=!1)}else{o=t.stateNode,oa(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:Yi(t.type,s),o.props=l,f=t.pendingProps,d=o.context,u="object"==typeof(u=n.contextType)&&null!==u?ra(u):pi(t,u=hi(n)?di:ci.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(s!==f||d!==u)&&ya(t,o,r,u),ia=!1,d=t.memoizedState,o.state=d,ca(t,r,o,i);var h=t.memoizedState;s!==f||d!==h||fi.current||ia?("function"==typeof p&&(pa(t,n,p,r),h=t.memoizedState),(l=ia||ma(t,n,l,r,d,h,u))?(c||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,h,u),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,h,u)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof o.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=h),o.props=r,o.state=h,o.context=u,r=l):("function"!=typeof o.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),r=!1)}return Ho(e,t,n,r,a,i)}function Ho(e,t,n,r,i,a){Fo(e,t);var o=0!=(64&t.flags);if(!r&&!o)return i&&bi(t,n,!1),es(e,t,a);r=t.stateNode,Ro.current=t;var s=o&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&o?(t.child=_a(t,e.child,null,a),t.child=_a(t,null,s,a)):Lo(e,t,s,a),t.memoizedState=r.state,i&&bi(t,n,!0),t.child}function Wo(e){var t=e.stateNode;t.pendingContext?vi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&vi(0,t.context,!1),Na(e,t.containerInfo)}var qo,Go,Zo,Yo={dehydrated:null,retryLane:0};function $o(e,t,n){var r,i=t.pendingProps,a=Ia.current,o=!1;return(r=0!=(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(o=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(a|=1),ui(Ia,1&a),null===e?(void 0!==i.fallback&&za(t),e=i.children,a=i.fallback,o?(e=Ko(t,e,a,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Yo,e):"number"==typeof i.unstable_expectedLoadTime?(e=Ko(t,e,a,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Yo,t.lanes=33554432,e):((n=Wu({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,o?(i=function(e,t,n,r,i){var a=t.mode,o=e.child;e=o.sibling;var s={mode:"hidden",children:n};return 0==(2&a)&&t.child!==o?((n=t.child).childLanes=0,n.pendingProps=s,null!==(o=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=o,o.nextEffect=null):t.firstEffect=t.lastEffect=null):n=zu(o,s),null!==e?r=zu(e,r):(r=Hu(r,a,i,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}(e,t,i.children,i.fallback,n),o=t.child,a=e.child.memoizedState,o.memoizedState=null===a?{baseLanes:n}:{baseLanes:a.baseLanes|n},o.childLanes=e.childLanes&~n,t.memoizedState=Yo,i):(n=function(e,t,n,r){var i=e.child;return e=i.sibling,n=zu(i,{mode:"visible",children:n}),0==(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}(e,t,i.children,n),t.memoizedState=null,n))}function Ko(e,t,n,r){var i=e.mode,a=e.child;return t={mode:"hidden",children:t},0==(2&i)&&null!==a?(a.childLanes=0,a.pendingProps=t):a=Wu(t,i,0,null),n=Hu(n,i,r,null),a.return=e,n.return=e,a.sibling=n,e.child=a,n}function Xo(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),ta(e.return,t)}function Qo(e,t,n,r,i,a){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,lastEffect:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.lastEffect=a)}function Jo(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(Lo(e,t,r.children,n),0!=(2&(r=Ia.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!=(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Xo(e,n);else if(19===e.tag)Xo(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ui(Ia,r),0==(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===La(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Qo(t,!1,i,n,a,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===La(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Qo(t,!0,n,null,a,t.lastEffect);break;case"together":Qo(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function es(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ms|=t.lanes,0!=(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(s(153));if(null!==t.child){for(n=zu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=zu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function ts(e,t){if(!Da)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ns(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return hi(t.type)&&mi(),null;case 3:return ja(),si(fi),si(ci),Ga(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Ha(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:Ra(t);var i=Ta(Ca.current);if(n=t.type,null!==e&&null!=t.stateNode)Go(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(s(166));return null}if(e=Ta(Oa.current),Ha(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[$r]=t,r[Kr]=o,n){case"dialog":Ar("cancel",r),Ar("close",r);break;case"iframe":case"object":case"embed":Ar("load",r);break;case"video":case"audio":for(e=0;e<_r.length;e++)Ar(_r[e],r);break;case"source":Ar("error",r);break;case"img":case"image":case"link":Ar("error",r),Ar("load",r);break;case"details":Ar("toggle",r);break;case"input":te(r,o),Ar("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Ar("invalid",r);break;case"textarea":le(r,o),Ar("invalid",r)}for(var u in Ee(n,o),e=null,o)o.hasOwnProperty(u)&&(i=o[u],"children"===u?"string"==typeof i?r.textContent!==i&&(e=["children",i]):"number"==typeof i&&r.textContent!==""+i&&(e=["children",""+i]):l.hasOwnProperty(u)&&null!=i&&"onScroll"===u&&Ar("scroll",r));switch(n){case"input":X(r),ie(r,o,!0);break;case"textarea":X(r),fe(r);break;case"select":case"option":break;default:"function"==typeof o.onClick&&(r.onclick=Br)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(u=9===i.nodeType?i:i.ownerDocument,e===de&&(e=pe(n)),e===de?"script"===n?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),"select"===n&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[$r]=t,e[Kr]=r,qo(e,t),t.stateNode=e,u=Se(n,r),n){case"dialog":Ar("cancel",e),Ar("close",e),i=r;break;case"iframe":case"object":case"embed":Ar("load",e),i=r;break;case"video":case"audio":for(i=0;i<_r.length;i++)Ar(_r[i],e);i=r;break;case"source":Ar("error",e),i=r;break;case"img":case"image":case"link":Ar("error",e),Ar("load",e),i=r;break;case"details":Ar("toggle",e),i=r;break;case"input":te(e,r),i=ee(e,r),Ar("invalid",e);break;case"option":i=oe(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=a({},r,{value:void 0}),Ar("invalid",e);break;case"textarea":le(e,r),i=ue(e,r),Ar("invalid",e);break;default:i=r}Ee(n,i);var c=i;for(o in c)if(c.hasOwnProperty(o)){var f=c[o];"style"===o?ke(e,f):"dangerouslySetInnerHTML"===o?null!=(f=f?f.__html:void 0)&&ye(e,f):"children"===o?"string"==typeof f?("textarea"!==n||""!==f)&&ge(e,f):"number"==typeof f&&ge(e,""+f):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(l.hasOwnProperty(o)?null!=f&&"onScroll"===o&&Ar("scroll",e):null!=f&&x(e,o,f,u))}switch(n){case"input":X(e),ie(e,r,!1);break;case"textarea":X(e),fe(e);break;case"option":null!=r.value&&e.setAttribute("value",""+$(r.value));break;case"select":e.multiple=!!r.multiple,null!=(o=r.value)?se(e,!!r.multiple,o,!1):null!=r.defaultValue&&se(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Br)}Fr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Zo(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(s(166));n=Ta(Ca.current),Ta(Oa.current),Ha(t)?(r=t.stateNode,n=t.memoizedProps,r[$r]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[$r]=t,t.stateNode=r)}return null;case 13:return si(Ia),r=t.memoizedState,0!=(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Ha(t):n=null!==e.memoizedState,r&&!n&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Ia.current)?0===Rs&&(Rs=3):(0!==Rs&&3!==Rs||(Rs=4),null===Cs||0==(134217727&Ms)&&0==(134217727&Bs)||pu(Cs,Ns))),(r||n)&&(t.flags|=4),null);case 4:return ja(),null===e&&Tr(t.stateNode.containerInfo),null;case 10:return ea(t),null;case 19:if(si(Ia),null===(r=t.memoizedState))return null;if(o=0!=(64&t.flags),null===(u=r.rendering))if(o)ts(r,!1);else{if(0!==Rs||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(u=La(e))){for(t.flags|=64,ts(r,!1),null!==(o=u.updateQueue)&&(t.updateQueue=o,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(o=n).flags&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,null===(u=o.alternate)?(o.childLanes=0,o.lanes=e,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=u.childLanes,o.lanes=u.lanes,o.child=u.child,o.memoizedProps=u.memoizedProps,o.memoizedState=u.memoizedState,o.updateQueue=u.updateQueue,o.type=u.type,e=u.dependencies,o.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ui(Ia,1&Ia.current|2),t.child}e=e.sibling}null!==r.tail&&Fi()>zs&&(t.flags|=64,o=!0,ts(r,!1),t.lanes=33554432)}else{if(!o)if(null!==(e=La(u))){if(t.flags|=64,o=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),ts(r,!0),null===r.tail&&"hidden"===r.tailMode&&!u.alternate&&!Da)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Fi()-r.renderingStartTime>zs&&1073741824!==n&&(t.flags|=64,o=!0,ts(r,!1),t.lanes=33554432);r.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=r.last)?n.sibling=u:t.child=u,r.last=u)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Fi(),n.sibling=null,t=Ia.current,ui(Ia,o?1&t|2:1&t),n):null;case 23:case 24:return gu(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(s(156,t.tag))}function rs(e){switch(e.tag){case 1:hi(e.type)&&mi();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(ja(),si(fi),si(ci),Ga(),0!=(64&(t=e.flags)))throw Error(s(285));return e.flags=-4097&t|64,e;case 5:return Ra(e),null;case 13:return si(Ia),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return si(Ia),null;case 4:return ja(),null;case 10:return ea(e),null;case 23:case 24:return gu(),null;default:return null}}function is(e,t){try{var n="",r=t;do{n+=Z(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i}}function as(e,t){try{r.error(t.value)}catch(e){setTimeout((function(){throw e}))}}qo=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Go=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Ta(Oa.current);var o,s=null;switch(n){case"input":i=ee(e,i),r=ee(e,r),s=[];break;case"option":i=oe(e,i),r=oe(e,r),s=[];break;case"select":i=a({},i,{value:void 0}),r=a({},r,{value:void 0}),s=[];break;case"textarea":i=ue(e,i),r=ue(e,r),s=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Br)}for(f in Ee(n,r),n=null,i)if(!r.hasOwnProperty(f)&&i.hasOwnProperty(f)&&null!=i[f])if("style"===f){var u=i[f];for(o in u)u.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==f&&"children"!==f&&"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(l.hasOwnProperty(f)?s||(s=[]):(s=s||[]).push(f,null));for(f in r){var c=r[f];if(u=null!=i?i[f]:void 0,r.hasOwnProperty(f)&&c!==u&&(null!=c||null!=u))if("style"===f)if(u){for(o in u)!u.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&u[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(s||(s=[]),s.push(f,n)),n=c;else"dangerouslySetInnerHTML"===f?(c=c?c.__html:void 0,u=u?u.__html:void 0,null!=c&&u!==c&&(s=s||[]).push(f,c)):"children"===f?"string"!=typeof c&&"number"!=typeof c||(s=s||[]).push(f,""+c):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&(l.hasOwnProperty(f)?(null!=c&&"onScroll"===f&&Ar("scroll",e),s||u===c||(s=[])):"object"==typeof c&&null!==c&&c.$$typeof===M?c.toString():(s=s||[]).push(f,c))}n&&(s=s||[]).push("style",n);var f=s;(t.updateQueue=f)&&(t.flags|=4)}},Zo=function(e,t,n,r){n!==r&&(t.flags|=4)};var os="function"==typeof WeakMap?WeakMap:Map;function ss(e,t,n){(n=sa(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){qs||(qs=!0,Gs=r),as(0,t)},n}function us(e,t,n){(n=sa(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return as(0,t),r(i)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Zs?Zs=new Set([this]):Zs.add(this),as(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var ls="function"==typeof WeakSet?WeakSet:Set;function cs(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Lu(e,t)}else t.current=null}function fs(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Yi(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Wr(t.stateNode.containerInfo))}throw Error(s(163))}function ds(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var i=e;r=i.next,0!=(4&(i=i.tag))&&0!=(1&i)&&(Pu(n,e),ju(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Yi(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&fa(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}fa(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Fr(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&kt(n)))))}throw Error(s(163))}function ps(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"==typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var i=n.memoizedProps.style;i=null!=i&&i.hasOwnProperty("display")?i.display:null,r.style.display=xe("display",i)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function hs(e,t){if(xi&&"function"==typeof xi.onCommitFiberUnmount)try{xi.onCommitFiberUnmount(wi,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,void 0!==i)if(0!=(4&r))Pu(t,n);else{r=t;try{i()}catch(e){Lu(r,e)}}n=n.next}while(n!==e)}break;case 1:if(cs(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Lu(t,e)}break;case 5:cs(t);break;case 4:ws(e,t)}}function ms(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function vs(e){return 5===e.tag||3===e.tag||4===e.tag}function ys(e){e:{for(var t=e.return;null!==t;){if(vs(t))break e;t=t.return}throw Error(s(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(s(161))}16&n.flags&&(ge(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||vs(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?gs(e,n,t):bs(e,n,t)}function gs(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Br));else if(4!==r&&null!==(e=e.child))for(gs(e,t,n),e=e.sibling;null!==e;)gs(e,t,n),e=e.sibling}function bs(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(bs(e,t,n),e=e.sibling;null!==e;)bs(e,t,n),e=e.sibling}function ws(e,t){for(var n,r,i=t,a=!1;;){if(!a){a=i.return;e:for(;;){if(null===a)throw Error(s(160));switch(n=a.stateNode,a.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}a=a.return}a=!0}if(5===i.tag||6===i.tag){e:for(var o=e,u=i,l=u;;)if(hs(o,l),null!==l.child&&4!==l.tag)l.child.return=l,l=l.child;else{if(l===u)break e;for(;null===l.sibling;){if(null===l.return||l.return===u)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}r?(o=n,u=i.stateNode,8===o.nodeType?o.parentNode.removeChild(u):o.removeChild(u)):n.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(hs(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(a=!1)}i.sibling.return=i.return,i=i.sibling}}function xs(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3==(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:case 12:case 17:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var i=null!==e?e.memoizedProps:r;e=t.type;var a=t.updateQueue;if(t.updateQueue=null,null!==a){for(n[Kr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&ne(n,r),Se(e,i),t=Se(e,r),i=0;i<a.length;i+=2){var o=a[i],u=a[i+1];"style"===o?ke(n,u):"dangerouslySetInnerHTML"===o?ye(n,u):"children"===o?ge(n,u):x(n,o,u,t)}switch(e){case"input":re(n,r);break;case"textarea":ce(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(a=r.value)?se(n,!!r.multiple,a,!1):e!==!!r.multiple&&(null!=r.defaultValue?se(n,!!r.multiple,r.defaultValue,!0):se(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(s(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,kt(n.containerInfo)));case 13:return null!==t.memoizedState&&(Fs=Fi(),ps(t.child,!0)),void ks(t);case 19:return void ks(t);case 23:case 24:return void ps(t,null!==t.memoizedState)}throw Error(s(163))}function ks(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new ls),t.forEach((function(t){var r=Bu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function _s(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&null!==(t=t.memoizedState)&&null===t.dehydrated}var Es=Math.ceil,Ss=k.ReactCurrentDispatcher,Os=k.ReactCurrentOwner,As=0,Cs=null,Ts=null,Ns=0,js=0,Ps=oi(0),Rs=0,Is=null,Ls=0,Ms=0,Bs=0,Ds=0,Us=null,Fs=0,zs=1/0;function Vs(){zs=Fi()+500}var Hs,Ws=null,qs=!1,Gs=null,Zs=null,Ys=!1,$s=null,Ks=90,Xs=[],Qs=[],Js=null,eu=0,tu=null,nu=-1,ru=0,iu=0,au=null,ou=!1;function su(){return 0!=(48&As)?Fi():-1!==nu?nu:nu=Fi()}function uu(e){if(0==(2&(e=e.mode)))return 1;if(0==(4&e))return 99===zi()?1:2;if(0===ru&&(ru=Ls),0!==Zi.transition){0!==iu&&(iu=null!==Us?Us.pendingLanes:0),e=ru;var t=4186112&~iu;return 0==(t&=-t)&&0==(t=(e=4186112&~e)&-e)&&(t=8192),t}return e=zi(),e=Ft(0!=(4&As)&&98===e?12:e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),ru)}function lu(e,t,n){if(50<eu)throw eu=0,tu=null,Error(s(185));if(null===(e=cu(e,t)))return null;Ht(e,t,n),e===Cs&&(Bs|=t,4===Rs&&pu(e,Ns));var r=zi();1===t?0!=(8&As)&&0==(48&As)?hu(e):(fu(e,n),0===As&&(Vs(),qi())):(0==(4&As)||98!==r&&99!==r||(null===Js?Js=new Set([e]):Js.add(e)),fu(e,n)),Us=e}function cu(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function fu(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,a=e.expirationTimes,o=e.pendingLanes;0<o;){var u=31-Wt(o),l=1<<u,c=a[u];if(-1===c){if(0==(l&r)||0!=(l&i)){c=t,Bt(l);var f=Mt;a[u]=10<=f?c+250:6<=f?c+5e3:-1}}else c<=t&&(e.expiredLanes|=l);o&=~l}if(r=Dt(e,e===Cs?Ns:0),t=Mt,0===r)null!==n&&(n!==Ii&&Ei(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Ii&&Ei(n)}15===t?(n=hu.bind(null,e),null===Mi?(Mi=[n],Bi=_i(Ti,Gi)):Mi.push(n),n=Ii):14===t?n=Wi(99,hu.bind(null,e)):n=Wi(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(s(358,e))}}(t),du.bind(null,e)),e.callbackPriority=t,e.callbackNode=n}}function du(e){if(nu=-1,iu=ru=0,0!=(48&As))throw Error(s(327));var t=e.callbackNode;if(Nu()&&e.callbackNode!==t)return null;var n=Dt(e,e===Cs?Ns:0);if(0===n)return null;var r=n,i=As;As|=16;var a=xu();for(Cs===e&&Ns===r||(Vs(),bu(e,r));;)try{Eu();break}catch(t){wu(e,t)}if(Ji(),Ss.current=a,As=i,null!==Ts?r=0:(Cs=null,Ns=0,r=Rs),0!=(Ls&Bs))bu(e,0);else if(0!==r){if(2===r&&(As|=64,e.hydrate&&(e.hydrate=!1,Wr(e.containerInfo)),0!==(n=Ut(e))&&(r=ku(e,n))),1===r)throw t=Is,bu(e,0),pu(e,n),fu(e,Fi()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(s(345));case 2:case 5:Au(e);break;case 3:if(pu(e,n),(62914560&n)===n&&10<(r=Fs+500-Fi())){if(0!==Dt(e,0))break;if(((i=e.suspendedLanes)&n)!==n){su(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Vr(Au.bind(null,e),r);break}Au(e);break;case 4:if(pu(e,n),(4186112&n)===n)break;for(r=e.eventTimes,i=-1;0<n;){var o=31-Wt(n);a=1<<o,(o=r[o])>i&&(i=o),n&=~a}if(n=i,10<(n=(120>(n=Fi()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Es(n/1960))-n)){e.timeoutHandle=Vr(Au.bind(null,e),n);break}Au(e);break;default:throw Error(s(329))}}return fu(e,Fi()),e.callbackNode===t?du.bind(null,e):null}function pu(e,t){for(t&=~Ds,t&=~Bs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Wt(t),r=1<<n;e[n]=-1,t&=~r}}function hu(e){if(0!=(48&As))throw Error(s(327));if(Nu(),e===Cs&&0!=(e.expiredLanes&Ns)){var t=Ns,n=ku(e,t);0!=(Ls&Bs)&&(n=ku(e,t=Dt(e,t)))}else n=ku(e,t=Dt(e,0));if(0!==e.tag&&2===n&&(As|=64,e.hydrate&&(e.hydrate=!1,Wr(e.containerInfo)),0!==(t=Ut(e))&&(n=ku(e,t))),1===n)throw n=Is,bu(e,0),pu(e,t),fu(e,Fi()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Au(e),fu(e,Fi()),null}function mu(e,t){var n=As;As|=1;try{return e(t)}finally{0===(As=n)&&(Vs(),qi())}}function vu(e,t){var n=As;As&=-2,As|=8;try{return e(t)}finally{0===(As=n)&&(Vs(),qi())}}function yu(e,t){ui(Ps,js),js|=t,Ls|=t}function gu(){js=Ps.current,si(Ps)}function bu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Hr(n)),null!==Ts)for(n=Ts.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&mi();break;case 3:ja(),si(fi),si(ci),Ga();break;case 5:Ra(r);break;case 4:ja();break;case 13:case 19:si(Ia);break;case 10:ea(r);break;case 23:case 24:gu()}n=n.return}Cs=e,Ts=zu(e.current,null),Ns=js=Ls=t,Rs=0,Is=null,Ds=Bs=Ms=0}function wu(e,t){for(;;){var n=Ts;try{if(Ji(),Za.current=To,Ja){for(var r=Ka.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}Ja=!1}if($a=0,Qa=Xa=Ka=null,eo=!1,Os.current=null,null===n||null===n.return){Rs=1,Is=t,Ts=null;break}e:{var a=e,o=n.return,s=n,u=t;if(t=Ns,s.flags|=2048,s.firstEffect=s.lastEffect=null,null!==u&&"object"==typeof u&&"function"==typeof u.then){var l=u;if(0==(2&s.mode)){var c=s.alternate;c?(s.updateQueue=c.updateQueue,s.memoizedState=c.memoizedState,s.lanes=c.lanes):(s.updateQueue=null,s.memoizedState=null)}var f=0!=(1&Ia.current),d=o;do{var p;if(p=13===d.tag){var h=d.memoizedState;if(null!==h)p=null!==h.dehydrated;else{var m=d.memoizedProps;p=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!f)}}if(p){var v=d.updateQueue;if(null===v){var y=new Set;y.add(l),d.updateQueue=y}else v.add(l);if(0==(2&d.mode)){if(d.flags|=64,s.flags|=16384,s.flags&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var g=sa(-1,1);g.tag=2,ua(s,g)}s.lanes|=1;break e}u=void 0,s=t;var b=a.pingCache;if(null===b?(b=a.pingCache=new os,u=new Set,b.set(l,u)):void 0===(u=b.get(l))&&(u=new Set,b.set(l,u)),!u.has(s)){u.add(s);var w=Mu.bind(null,a,l,s);l.then(w,w)}d.flags|=4096,d.lanes=t;break e}d=d.return}while(null!==d);u=Error((Y(s.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Rs&&(Rs=2),u=is(u,s),d=o;do{switch(d.tag){case 3:a=u,d.flags|=4096,t&=-t,d.lanes|=t,la(d,ss(0,a,t));break e;case 1:a=u;var x=d.type,k=d.stateNode;if(0==(64&d.flags)&&("function"==typeof x.getDerivedStateFromError||null!==k&&"function"==typeof k.componentDidCatch&&(null===Zs||!Zs.has(k)))){d.flags|=4096,t&=-t,d.lanes|=t,la(d,us(d,a,t));break e}}d=d.return}while(null!==d)}Ou(n)}catch(e){t=e,Ts===n&&null!==n&&(Ts=n=n.return);continue}break}}function xu(){var e=Ss.current;return Ss.current=To,null===e?To:e}function ku(e,t){var n=As;As|=16;var r=xu();for(Cs===e&&Ns===t||bu(e,t);;)try{_u();break}catch(t){wu(e,t)}if(Ji(),As=n,Ss.current=r,null!==Ts)throw Error(s(261));return Cs=null,Ns=0,Rs}function _u(){for(;null!==Ts;)Su(Ts)}function Eu(){for(;null!==Ts&&!Si();)Su(Ts)}function Su(e){var t=Hs(e.alternate,e,js);e.memoizedProps=e.pendingProps,null===t?Ou(e):Ts=t,Os.current=null}function Ou(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=ns(n,t,js)))return void(Ts=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&js)||0==(4&n.mode)){for(var r=0,i=n.child;null!==i;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=rs(t)))return n.flags&=2047,void(Ts=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Ts=t);Ts=t=e}while(null!==t);0===Rs&&(Rs=5)}function Au(e){var t=zi();return Hi(99,Cu.bind(null,e,t)),null}function Cu(e,t){do{Nu()}while(null!==$s);if(0!=(48&As))throw Error(s(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(s(177));e.callbackNode=null;var r=n.lanes|n.childLanes,i=r,a=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var o=e.eventTimes,u=e.expirationTimes;0<a;){var l=31-Wt(a),c=1<<l;i[l]=0,o[l]=-1,u[l]=-1,a&=~c}if(null!==Js&&0==(24&r)&&Js.has(e)&&Js.delete(e),e===Cs&&(Ts=Cs=null,Ns=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(i=As,As|=32,Os.current=null,Dr=$t,hr(o=pr())){if("selectionStart"in o)u={start:o.selectionStart,end:o.selectionEnd};else e:if(u=(u=o.ownerDocument)&&u.defaultView||window,(c=u.getSelection&&u.getSelection())&&0!==c.rangeCount){u=c.anchorNode,a=c.anchorOffset,l=c.focusNode,c=c.focusOffset;try{u.nodeType,l.nodeType}catch(e){u=null;break e}var f=0,d=-1,p=-1,h=0,m=0,v=o,y=null;t:for(;;){for(var g;v!==u||0!==a&&3!==v.nodeType||(d=f+a),v!==l||0!==c&&3!==v.nodeType||(p=f+c),3===v.nodeType&&(f+=v.nodeValue.length),null!==(g=v.firstChild);)y=v,v=g;for(;;){if(v===o)break t;if(y===u&&++h===a&&(d=f),y===l&&++m===c&&(p=f),null!==(g=v.nextSibling))break;y=(v=y).parentNode}v=g}u=-1===d||-1===p?null:{start:d,end:p}}else u=null;u=u||{start:0,end:0}}else u=null;Ur={focusedElem:o,selectionRange:u},$t=!1,au=null,ou=!1,Ws=r;do{try{Tu()}catch(e){if(null===Ws)throw Error(s(330));Lu(Ws,e),Ws=Ws.nextEffect}}while(null!==Ws);au=null,Ws=r;do{try{for(o=e;null!==Ws;){var b=Ws.flags;if(16&b&&ge(Ws.stateNode,""),128&b){var w=Ws.alternate;if(null!==w){var x=w.ref;null!==x&&("function"==typeof x?x(null):x.current=null)}}switch(1038&b){case 2:ys(Ws),Ws.flags&=-3;break;case 6:ys(Ws),Ws.flags&=-3,xs(Ws.alternate,Ws);break;case 1024:Ws.flags&=-1025;break;case 1028:Ws.flags&=-1025,xs(Ws.alternate,Ws);break;case 4:xs(Ws.alternate,Ws);break;case 8:ws(o,u=Ws);var k=u.alternate;ms(u),null!==k&&ms(k)}Ws=Ws.nextEffect}}catch(e){if(null===Ws)throw Error(s(330));Lu(Ws,e),Ws=Ws.nextEffect}}while(null!==Ws);if(x=Ur,w=pr(),b=x.focusedElem,o=x.selectionRange,w!==b&&b&&b.ownerDocument&&dr(b.ownerDocument.documentElement,b)){null!==o&&hr(b)&&(w=o.start,void 0===(x=o.end)&&(x=w),"selectionStart"in b?(b.selectionStart=w,b.selectionEnd=Math.min(x,b.value.length)):(x=(w=b.ownerDocument||document)&&w.defaultView||window).getSelection&&(x=x.getSelection(),u=b.textContent.length,k=Math.min(o.start,u),o=void 0===o.end?k:Math.min(o.end,u),!x.extend&&k>o&&(u=o,o=k,k=u),u=fr(b,k),a=fr(b,o),u&&a&&(1!==x.rangeCount||x.anchorNode!==u.node||x.anchorOffset!==u.offset||x.focusNode!==a.node||x.focusOffset!==a.offset)&&((w=w.createRange()).setStart(u.node,u.offset),x.removeAllRanges(),k>o?(x.addRange(w),x.extend(a.node,a.offset)):(w.setEnd(a.node,a.offset),x.addRange(w))))),w=[];for(x=b;x=x.parentNode;)1===x.nodeType&&w.push({element:x,left:x.scrollLeft,top:x.scrollTop});for("function"==typeof b.focus&&b.focus(),b=0;b<w.length;b++)(x=w[b]).element.scrollLeft=x.left,x.element.scrollTop=x.top}$t=!!Dr,Ur=Dr=null,e.current=n,Ws=r;do{try{for(b=e;null!==Ws;){var _=Ws.flags;if(36&_&&ds(b,Ws.alternate,Ws),128&_){w=void 0;var E=Ws.ref;if(null!==E){var S=Ws.stateNode;Ws.tag,w=S,"function"==typeof E?E(w):E.current=w}}Ws=Ws.nextEffect}}catch(e){if(null===Ws)throw Error(s(330));Lu(Ws,e),Ws=Ws.nextEffect}}while(null!==Ws);Ws=null,Li(),As=i}else e.current=n;if(Ys)Ys=!1,$s=e,Ks=t;else for(Ws=r;null!==Ws;)t=Ws.nextEffect,Ws.nextEffect=null,8&Ws.flags&&((_=Ws).sibling=null,_.stateNode=null),Ws=t;if(0===(r=e.pendingLanes)&&(Zs=null),1===r?e===tu?eu++:(eu=0,tu=e):eu=0,n=n.stateNode,xi&&"function"==typeof xi.onCommitFiberRoot)try{xi.onCommitFiberRoot(wi,n,void 0,64==(64&n.current.flags))}catch(e){}if(fu(e,Fi()),qs)throw qs=!1,e=Gs,Gs=null,e;return 0!=(8&As)||qi(),null}function Tu(){for(;null!==Ws;){var e=Ws.alternate;ou||null===au||(0!=(8&Ws.flags)?et(Ws,au)&&(ou=!0):13===Ws.tag&&_s(e,Ws)&&et(Ws,au)&&(ou=!0));var t=Ws.flags;0!=(256&t)&&fs(e,Ws),0==(512&t)||Ys||(Ys=!0,Wi(97,(function(){return Nu(),null}))),Ws=Ws.nextEffect}}function Nu(){if(90!==Ks){var e=97<Ks?97:Ks;return Ks=90,Hi(e,Ru)}return!1}function ju(e,t){Xs.push(t,e),Ys||(Ys=!0,Wi(97,(function(){return Nu(),null})))}function Pu(e,t){Qs.push(t,e),Ys||(Ys=!0,Wi(97,(function(){return Nu(),null})))}function Ru(){if(null===$s)return!1;var e=$s;if($s=null,0!=(48&As))throw Error(s(331));var t=As;As|=32;var n=Qs;Qs=[];for(var r=0;r<n.length;r+=2){var i=n[r],a=n[r+1],o=i.destroy;if(i.destroy=void 0,"function"==typeof o)try{o()}catch(e){if(null===a)throw Error(s(330));Lu(a,e)}}for(n=Xs,Xs=[],r=0;r<n.length;r+=2){i=n[r],a=n[r+1];try{var u=i.create;i.destroy=u()}catch(e){if(null===a)throw Error(s(330));Lu(a,e)}}for(u=e.current.firstEffect;null!==u;)e=u.nextEffect,u.nextEffect=null,8&u.flags&&(u.sibling=null,u.stateNode=null),u=e;return As=t,qi(),!0}function Iu(e,t,n){ua(e,t=ss(0,t=is(n,t),1)),t=su(),null!==(e=cu(e,1))&&(Ht(e,1,t),fu(e,t))}function Lu(e,t){if(3===e.tag)Iu(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Iu(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Zs||!Zs.has(r))){var i=us(n,e=is(t,e),1);if(ua(n,i),i=su(),null!==(n=cu(n,1)))Ht(n,1,i),fu(n,i);else if("function"==typeof r.componentDidCatch&&(null===Zs||!Zs.has(r)))try{r.componentDidCatch(t,e)}catch(e){}break}}n=n.return}}function Mu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=su(),e.pingedLanes|=e.suspendedLanes&n,Cs===e&&(Ns&n)===n&&(4===Rs||3===Rs&&(62914560&Ns)===Ns&&500>Fi()-Fs?bu(e,0):Ds|=n),fu(e,t)}function Bu(e,t){var n=e.stateNode;null!==n&&n.delete(t),0==(t=0)&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===zi()?1:2:(0===ru&&(ru=Ls),0===(t=zt(62914560&~ru))&&(t=4194304))),n=su(),null!==(e=cu(e,t))&&(Ht(e,t,n),fu(e,n))}function Du(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Uu(e,t,n,r){return new Du(e,t,n,r)}function Fu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function zu(e,t){var n=e.alternate;return null===n?((n=Uu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Vu(e,t,n,r,i,a){var o=2;if(r=e,"function"==typeof e)Fu(e)&&(o=1);else if("string"==typeof e)o=5;else e:switch(e){case S:return Hu(n.children,i,a,t);case B:o=8,i|=16;break;case O:o=8,i|=1;break;case A:return(e=Uu(12,n,t,8|i)).elementType=A,e.type=A,e.lanes=a,e;case j:return(e=Uu(13,n,t,i)).type=j,e.elementType=j,e.lanes=a,e;case P:return(e=Uu(19,n,t,i)).elementType=P,e.lanes=a,e;case D:return Wu(n,i,a,t);case U:return(e=Uu(24,n,t,i)).elementType=U,e.lanes=a,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case C:o=10;break e;case T:o=9;break e;case N:o=11;break e;case R:o=14;break e;case I:o=16,r=null;break e;case L:o=22;break e}throw Error(s(130,null==e?e:typeof e,""))}return(t=Uu(o,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function Hu(e,t,n,r){return(e=Uu(7,e,r,t)).lanes=n,e}function Wu(e,t,n,r){return(e=Uu(23,e,r,t)).elementType=D,e.lanes=n,e}function qu(e,t,n){return(e=Uu(6,e,null,t)).lanes=n,e}function Gu(e,t,n){return(t=Uu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Zu(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Vt(0),this.expirationTimes=Vt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vt(0),this.mutableSourceEagerHydrationData=null}function Yu(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:E,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function $u(e,t,n,r){var i=t.current,a=su(),o=uu(i);e:if(n){t:{if(Ke(n=n._reactInternals)!==n||1!==n.tag)throw Error(s(170));var u=n;do{switch(u.tag){case 3:u=u.stateNode.context;break t;case 1:if(hi(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break t}}u=u.return}while(null!==u);throw Error(s(171))}if(1===n.tag){var l=n.type;if(hi(l)){n=yi(n,l,u);break e}}n=u}else n=li;return null===t.context?t.context=n:t.pendingContext=n,(t=sa(a,o)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),ua(i,t),lu(i,o,a),o}function Ku(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Xu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Qu(e,t){Xu(e,t),(e=e.alternate)&&Xu(e,t)}function Ju(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Zu(e,t,null!=n&&!0===n.hydrate),t=Uu(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,aa(t),e[Xr]=n.current,Tr(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var i=(t=r[e])._getVersion;i=i(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,i]:n.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=n}function el(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function tl(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a._internalRoot;if("function"==typeof i){var s=i;i=function(){var e=Ku(o);s.call(e)}}$u(t,o,e,i)}else{if(a=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Ju(e,0,t?{hydrate:!0}:void 0)}(n,r),o=a._internalRoot,"function"==typeof i){var u=i;i=function(){var e=Ku(o);u.call(e)}}vu((function(){$u(t,o,e,i)}))}return Ku(o)}function nl(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!el(t))throw Error(s(200));return Yu(e,t,null,n)}Hs=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||fi.current)Io=!0;else{if(0==(n&r)){switch(Io=!1,t.tag){case 3:Wo(t),Wa();break;case 5:Pa(t);break;case 1:hi(t.type)&&gi(t);break;case 4:Na(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var i=t.type._context;ui($i,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!=(n&t.child.childLanes)?$o(e,t,n):(ui(Ia,1&Ia.current),null!==(t=es(e,t,n))?t.sibling:null);ui(Ia,1&Ia.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return Jo(e,t,n);t.flags|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),ui(Ia,Ia.current),r)break;return null;case 23:case 24:return t.lanes=0,Uo(e,t,n)}return es(e,t,n)}Io=0!=(16384&e.flags)}else Io=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=pi(t,ci.current),na(t,n),i=ro(null,t,r,e,i,n),t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,hi(r)){var a=!0;gi(t)}else a=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,aa(t);var o=r.getDerivedStateFromProps;"function"==typeof o&&pa(t,r,o,e),i.updater=ha,t.stateNode=i,i._reactInternals=t,ga(t,r,e,n),t=Ho(null,t,r,!0,a,n)}else t.tag=0,Lo(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=(a=i._init)(i._payload),t.type=i,a=t.tag=function(e){if("function"==typeof e)return Fu(e)?1:0;if(null!=e){if((e=e.$$typeof)===N)return 11;if(e===R)return 14}return 2}(i),e=Yi(i,e),a){case 0:t=zo(null,t,i,e,n);break e;case 1:t=Vo(null,t,i,e,n);break e;case 11:t=Mo(null,t,i,e,n);break e;case 14:t=Bo(null,t,i,Yi(i.type,e),r,n);break e}throw Error(s(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,zo(e,t,r,i=t.elementType===r?i:Yi(r,i),n);case 1:return r=t.type,i=t.pendingProps,Vo(e,t,r,i=t.elementType===r?i:Yi(r,i),n);case 3:if(Wo(t),r=t.updateQueue,null===e||null===r)throw Error(s(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,oa(e,t),ca(t,r,null,n),(r=t.memoizedState.element)===i)Wa(),t=es(e,t,n);else{if((a=(i=t.stateNode).hydrate)&&(Ba=qr(t.stateNode.containerInfo.firstChild),Ma=t,a=Da=!0),a){if(null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i<e.length;i+=2)(a=e[i])._workInProgressVersionPrimary=e[i+1],qa.push(a);for(n=Ea(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Lo(e,t,r,n),Wa();t=t.child}return t;case 5:return Pa(t),null===e&&za(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,o=i.children,zr(r,i)?o=null:null!==a&&zr(r,a)&&(t.flags|=16),Fo(e,t),Lo(e,t,o,n),t.child;case 6:return null===e&&za(t),null;case 13:return $o(e,t,n);case 4:return Na(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=_a(t,null,r,n):Lo(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,Mo(e,t,r,i=t.elementType===r?i:Yi(r,i),n);case 7:return Lo(e,t,t.pendingProps,n),t.child;case 8:case 12:return Lo(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value;var u=t.type._context;if(ui($i,u._currentValue),u._currentValue=a,null!==o)if(u=o.value,0==(a=sr(u,a)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(u,a):1073741823))){if(o.children===i.children&&!fi.current){t=es(e,t,n);break e}}else for(null!==(u=t.child)&&(u.return=t);null!==u;){var l=u.dependencies;if(null!==l){o=u.child;for(var c=l.firstContext;null!==c;){if(c.context===r&&0!=(c.observedBits&a)){1===u.tag&&((c=sa(-1,n&-n)).tag=2,ua(u,c)),u.lanes|=n,null!==(c=u.alternate)&&(c.lanes|=n),ta(u.return,n),l.lanes|=n;break}c=c.next}}else o=10===u.tag&&u.type===t.type?null:u.child;if(null!==o)o.return=u;else for(o=u;null!==o;){if(o===t){o=null;break}if(null!==(u=o.sibling)){u.return=o.return,o=u;break}o=o.return}u=o}Lo(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(a=t.pendingProps).children,na(t,n),r=r(i=ra(i,a.unstable_observedBits)),t.flags|=1,Lo(e,t,r,n),t.child;case 14:return a=Yi(i=t.type,t.pendingProps),Bo(e,t,i,a=Yi(i.type,a),r,n);case 15:return Do(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Yi(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,hi(r)?(e=!0,gi(t)):e=!1,na(t,n),va(t,r,i),ga(t,r,i,n),Ho(null,t,r,!0,e,n);case 19:return Jo(e,t,n);case 23:case 24:return Uo(e,t,n)}throw Error(s(156,t.tag))},Ju.prototype.render=function(e){$u(e,this._internalRoot,null,null)},Ju.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;$u(null,e,null,(function(){t[Xr]=null}))},tt=function(e){13===e.tag&&(lu(e,4,su()),Qu(e,4))},nt=function(e){13===e.tag&&(lu(e,67108864,su()),Qu(e,67108864))},rt=function(e){if(13===e.tag){var t=su(),n=uu(e);lu(e,n,t),Qu(e,n)}},it=function(e,t){return t()},Ae=function(e,t,n){switch(t){case"input":if(re(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=ni(r);if(!i)throw Error(s(90));Q(r),re(r,i)}}}break;case"textarea":ce(e,n);break;case"select":null!=(t=n.value)&&se(e,!!n.multiple,t,!1)}},Re=mu,Ie=function(e,t,n,r,i){var a=As;As|=4;try{return Hi(98,e.bind(null,t,n,r,i))}finally{0===(As=a)&&(Vs(),qi())}},Le=function(){0==(49&As)&&(function(){if(null!==Js){var e=Js;Js=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,fu(e,Fi())}))}qi()}(),Nu())},Me=function(e,t){var n=As;As|=2;try{return e(t)}finally{0===(As=n)&&(Vs(),qi())}};var rl={Events:[ei,ti,ni,je,Pe,Nu,{current:!1}]},il={findFiberByHostInstance:Jr,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},al={bundleType:il.bundleType,version:il.version,rendererPackageName:il.rendererPackageName,rendererConfig:il.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:k.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Je(e))?null:e.stateNode},findFiberByHostInstance:il.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ol=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ol.isDisabled&&ol.supportsFiber)try{wi=ol.inject(al),xi=ol}catch(ve){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=rl,t.createPortal=nl,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(s(188));throw Error(s(268,Object.keys(e)))}return null===(e=Je(t))?null:e.stateNode},t.flushSync=function(e,t){var n=As;if(0!=(48&n))return e(t);As|=1;try{if(e)return Hi(99,e.bind(null,t))}finally{As=n,qi()}},t.hydrate=function(e,t,n){if(!el(t))throw Error(s(200));return tl(null,e,t,!0,n)},t.render=function(e,t,n){if(!el(t))throw Error(s(200));return tl(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!el(e))throw Error(s(40));return!!e._reactRootContainer&&(vu((function(){tl(null,null,e,!1,(function(){e._reactRootContainer=null,e[Xr]=null}))})),!0)},t.unstable_batchedUpdates=mu,t.unstable_createPortal=function(e,t){return nl(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!el(n))throw Error(s(200));if(null==e||void 0===e._reactInternals)throw Error(s(38));return tl(e,t,n,!1,r)},t.version="17.0.2"},6377:function(e,t,n){"use strict";var r=n(8466);!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){r.error(e)}}(),e.exports=n(6186)},4819:function(e,t,n){"use strict";n(6);var r=n(3705),i=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var a=Symbol.for;i=a("react.element"),t.Fragment=a("react.fragment")}var o=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,n){var r,a={},l=null,c=null;for(r in void 0!==n&&(l=""+n),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(c=t.ref),t)s.call(t,r)&&!u.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:i,type:e,key:l,ref:c,props:a,_owner:o.current}}t.jsx=l,t.jsxs=l},4348:function(e,t,n){"use strict";var r=n(6),i=60103,a=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var o=60109,s=60110,u=60112;t.Suspense=60113;var l=60115,c=60116;if("function"==typeof Symbol&&Symbol.for){var f=Symbol.for;i=f("react.element"),a=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),o=f("react.provider"),s=f("react.context"),u=f("react.forward_ref"),t.Suspense=f("react.suspense"),l=f("react.memo"),c=f("react.lazy")}var d="function"==typeof Symbol&&Symbol.iterator;function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m={};function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}function y(){}function g(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(p(85));this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var b=g.prototype=new y;b.constructor=g,r(b,v.prototype),b.isPureReactComponent=!0;var w={current:null},x=Object.prototype.hasOwnProperty,k={key:!0,ref:!0,__self:!0,__source:!0};function _(e,t,n){var r,a={},o=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(o=""+t.key),t)x.call(t,r)&&!k.hasOwnProperty(r)&&(a[r]=t[r]);var u=arguments.length-2;if(1===u)a.children=n;else if(1<u){for(var l=Array(u),c=0;c<u;c++)l[c]=arguments[c+2];a.children=l}if(e&&e.defaultProps)for(r in u=e.defaultProps)void 0===a[r]&&(a[r]=u[r]);return{$$typeof:i,type:e,key:o,ref:s,props:a,_owner:w.current}}function E(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var S=/\/+/g;function O(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function A(e,t,n,r,o){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var u=!1;if(null===e)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case i:case a:u=!0}}if(u)return o=o(u=e),e=""===r?"."+O(u,0):r,Array.isArray(o)?(n="",null!=e&&(n=e.replace(S,"$&/")+"/"),A(o,t,n,"",(function(e){return e}))):null!=o&&(E(o)&&(o=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||u&&u.key===o.key?"":(""+o.key).replace(S,"$&/")+"/")+e)),t.push(o)),1;if(u=0,r=""===r?".":r+":",Array.isArray(e))for(var l=0;l<e.length;l++){var c=r+O(s=e[l],l);u+=A(s,t,n,c,o)}else if("function"==typeof(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e)))for(e=c.call(e),l=0;!(s=e.next()).done;)u+=A(s=s.value,t,n,c=r+O(s,l++),o);else if("object"===s)throw t=""+e,Error(p(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return u}function C(e,t,n){if(null==e)return e;var r=[],i=0;return A(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function T(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var N={current:null};function j(){var e=N.current;if(null===e)throw Error(p(321));return e}var P={ReactCurrentDispatcher:N,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:C,forEach:function(e,t,n){C(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return C(e,(function(){t++})),t},toArray:function(e){return C(e,(function(e){return e}))||[]},only:function(e){if(!E(e))throw Error(p(143));return e}},t.Component=v,t.PureComponent=g,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P,t.cloneElement=function(e,t,n){if(null==e)throw Error(p(267,e));var a=r({},e.props),o=e.key,s=e.ref,u=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,u=w.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)x.call(t,c)&&!k.hasOwnProperty(c)&&(a[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)a.children=n;else if(1<c){l=Array(c);for(var f=0;f<c;f++)l[f]=arguments[f+2];a.children=l}return{$$typeof:i,type:e.type,key:o,ref:s,props:a,_owner:u}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:s,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:o,_context:e},e.Consumer=e},t.createElement=_,t.createFactory=function(e){var t=_.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=E,t.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:T}},t.memo=function(e,t){return{$$typeof:l,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return j().useCallback(e,t)},t.useContext=function(e,t){return j().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return j().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return j().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return j().useLayoutEffect(e,t)},t.useMemo=function(e,t){return j().useMemo(e,t)},t.useReducer=function(e,t,n){return j().useReducer(e,t,n)},t.useRef=function(e){return j().useRef(e)},t.useState=function(e){return j().useState(e)},t.version="17.0.2"},3705:function(e,t,n){"use strict";e.exports=n(4348)},1411:function(e,t,n){"use strict";e.exports=n(4819)},5205:function(e,t,n){"use strict";var r=n(7490),i=n(8466);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o,s,u=n(3905).codes,l=u.ERR_AMBIGUOUS_ARGUMENT,c=u.ERR_INVALID_ARG_TYPE,f=u.ERR_INVALID_ARG_VALUE,d=u.ERR_INVALID_RETURN_VALUE,p=u.ERR_MISSING_ARGS,h=n(8264),m=n(7736).inspect,v=n(7736).types,y=v.isPromise,g=v.isRegExp,b=Object.assign?Object.assign:n(3843).assign,w=Object.is?Object.is:n(8199);function x(){var e=n(8527);o=e.isDeepEqual,s=e.isDeepStrictEqual}new Map;var k=!1,_=e.exports=A,E={};function S(e){if(e.message instanceof Error)throw e.message;throw new h(e)}function O(e,t,n,r){if(!n){var i=!1;if(0===t)i=!0,r="No value argument passed to `assert.ok()`";else if(r instanceof Error)throw r;var a=new h({actual:n,expected:!0,message:r,operator:"==",stackStartFn:e});throw a.generatedMessage=i,a}}function A(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];O.apply(void 0,[A,t.length].concat(t))}_.fail=function e(t,n,a,o,s){var u,l=arguments.length;if(0===l)u="Failed";else if(1===l)a=t,t=void 0;else{if(!1===k){k=!0;var c=r.emitWarning?r.emitWarning:i.warn.bind(i);c("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}2===l&&(o="!=")}if(a instanceof Error)throw a;var f={actual:t,expected:n,operator:void 0===o?"fail":o,stackStartFn:s||e};void 0!==a&&(f.message=a);var d=new h(f);throw u&&(d.message=u,d.generatedMessage=!0),d},_.AssertionError=h,_.ok=A,_.equal=function e(t,n,r){if(arguments.length<2)throw new p("actual","expected");t!=n&&S({actual:t,expected:n,message:r,operator:"==",stackStartFn:e})},_.notEqual=function e(t,n,r){if(arguments.length<2)throw new p("actual","expected");t==n&&S({actual:t,expected:n,message:r,operator:"!=",stackStartFn:e})},_.deepEqual=function e(t,n,r){if(arguments.length<2)throw new p("actual","expected");void 0===o&&x(),o(t,n)||S({actual:t,expected:n,message:r,operator:"deepEqual",stackStartFn:e})},_.notDeepEqual=function e(t,n,r){if(arguments.length<2)throw new p("actual","expected");void 0===o&&x(),o(t,n)&&S({actual:t,expected:n,message:r,operator:"notDeepEqual",stackStartFn:e})},_.deepStrictEqual=function e(t,n,r){if(arguments.length<2)throw new p("actual","expected");void 0===o&&x(),s(t,n)||S({actual:t,expected:n,message:r,operator:"deepStrictEqual",stackStartFn:e})},_.notDeepStrictEqual=function e(t,n,r){if(arguments.length<2)throw new p("actual","expected");void 0===o&&x(),s(t,n)&&S({actual:t,expected:n,message:r,operator:"notDeepStrictEqual",stackStartFn:e})},_.strictEqual=function e(t,n,r){if(arguments.length<2)throw new p("actual","expected");w(t,n)||S({actual:t,expected:n,message:r,operator:"strictEqual",stackStartFn:e})},_.notStrictEqual=function e(t,n,r){if(arguments.length<2)throw new p("actual","expected");w(t,n)&&S({actual:t,expected:n,message:r,operator:"notStrictEqual",stackStartFn:e})};var C=function e(t,n,r){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n.forEach((function(e){e in t&&(void 0!==r&&"string"==typeof r[e]&&g(t[e])&&t[e].test(r[e])?i[e]=r[e]:i[e]=t[e])}))};function T(e,t,n,r,i,a){if(!(n in e)||!s(e[n],t[n])){if(!r){var o=new C(e,i),u=new C(t,i,e),l=new h({actual:o,expected:u,operator:"deepStrictEqual",stackStartFn:a});throw l.actual=e,l.expected=t,l.operator=a.name,l}S({actual:e,expected:t,message:r,operator:a.name,stackStartFn:a})}}function N(e,t,n,r){if("function"!=typeof t){if(g(t))return t.test(e);if(2===arguments.length)throw new c("expected",["Function","RegExp"],t);if("object"!==a(e)||null===e){var i=new h({actual:e,expected:t,message:n,operator:"deepStrictEqual",stackStartFn:r});throw i.operator=r.name,i}var s=Object.keys(t);if(t instanceof Error)s.push("name","message");else if(0===s.length)throw new f("error",t,"may not be an empty object");return void 0===o&&x(),s.forEach((function(i){"string"==typeof e[i]&&g(t[i])&&t[i].test(e[i])||T(e,t,i,n,s,r)})),!0}return void 0!==t.prototype&&e instanceof t||!Error.isPrototypeOf(t)&&!0===t.call({},e)}function j(e){if("function"!=typeof e)throw new c("fn","Function",e);try{e()}catch(e){return e}return E}function P(e){return y(e)||null!==e&&"object"===a(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function R(e){return Promise.resolve().then((function(){var t;if("function"==typeof e){if(!P(t=e()))throw new d("instance of Promise","promiseFn",t)}else{if(!P(e))throw new c("promiseFn",["Function","Promise"],e);t=e}return Promise.resolve().then((function(){return t})).then((function(){return E})).catch((function(e){return e}))}))}function I(e,t,n,r){if("string"==typeof n){if(4===arguments.length)throw new c("error",["Object","Error","Function","RegExp"],n);if("object"===a(t)&&null!==t){if(t.message===n)throw new l("error/message",'The error message "'.concat(t.message,'" is identical to the message.'))}else if(t===n)throw new l("error/message",'The error "'.concat(t,'" is identical to the message.'));r=n,n=void 0}else if(null!=n&&"object"!==a(n)&&"function"!=typeof n)throw new c("error",["Object","Error","Function","RegExp"],n);if(t===E){var i="";n&&n.name&&(i+=" (".concat(n.name,")")),i+=r?": ".concat(r):".";var o="rejects"===e.name?"rejection":"exception";S({actual:void 0,expected:n,operator:e.name,message:"Missing expected ".concat(o).concat(i),stackStartFn:e})}if(n&&!N(t,n,r,e))throw t}function L(e,t,n,r){if(t!==E){if("string"==typeof n&&(r=n,n=void 0),!n||N(t,n)){var i=r?": ".concat(r):".",a="doesNotReject"===e.name?"rejection":"exception";S({actual:t,expected:n,operator:e.name,message:"Got unwanted ".concat(a).concat(i,"\n")+'Actual message: "'.concat(t&&t.message,'"'),stackStartFn:e})}throw t}}function M(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];O.apply(void 0,[M,t.length].concat(t))}_.throws=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];I.apply(void 0,[e,j(t)].concat(r))},_.rejects=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return R(t).then((function(t){return I.apply(void 0,[e,t].concat(r))}))},_.doesNotThrow=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];L.apply(void 0,[e,j(t)].concat(r))},_.doesNotReject=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return R(t).then((function(t){return L.apply(void 0,[e,t].concat(r))}))},_.ifError=function e(t){if(null!=t){var n="ifError got unwanted exception: ";"object"===a(t)&&"string"==typeof t.message?0===t.message.length&&t.constructor?n+=t.constructor.name:n+=t.message:n+=m(t);var r=new h({actual:t,expected:null,operator:"ifError",message:n,stackStartFn:e}),i=t.stack;if("string"==typeof i){var o=i.split("\n");o.shift();for(var s=r.stack.split("\n"),u=0;u<o.length;u++){var l=s.indexOf(o[u]);if(-1!==l){s=s.slice(0,l);break}}r.stack="".concat(s.join("\n"),"\n").concat(o.join("\n"))}throw r}},_.strict=b(M,_,{equal:_.strictEqual,deepEqual:_.deepStrictEqual,notEqual:_.notStrictEqual,notDeepEqual:_.notDeepStrictEqual}),_.strict.strict=_.strict},8264:function(e,t,n){"use strict";var r=n(7490);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?s(e):t}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){var t="function"==typeof Map?new Map:void 0;return(u=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return c(e,arguments,d(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),f(r,e)})(e)}function l(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function c(e,t,n){return(c=l()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&f(i,n.prototype),i}).apply(null,arguments)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var h=n(7736).inspect,m=n(3905).codes.ERR_INVALID_ARG_TYPE;function v(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}var y="",g="",b="",w="",x={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function k(e){var t=Object.keys(e),n=Object.create(Object.getPrototypeOf(e));return t.forEach((function(t){n[t]=e[t]})),Object.defineProperty(n,"message",{value:e.message}),n}function _(e){return h(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function E(e,t,n){var i="",a="",o=0,s="",u=!1,l=_(e),c=l.split("\n"),f=_(t).split("\n"),d=0,h="";if("strictEqual"===n&&"object"===p(e)&&"object"===p(t)&&null!==e&&null!==t&&(n="strictEqualObject"),1===c.length&&1===f.length&&c[0]!==f[0]){var m=c[0].length+f[0].length;if(m<=10){if(!("object"===p(e)&&null!==e||"object"===p(t)&&null!==t||0===e&&0===t))return"".concat(x[n],"\n\n")+"".concat(c[0]," !== ").concat(f[0],"\n")}else if("strictEqualObject"!==n&&m<(r.stderr&&r.stderr.isTTY?r.stderr.columns:80)){for(;c[0][d]===f[0][d];)d++;d>2&&(h="\n ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var n=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,n-e.length)}(" ",d),"^"),d=0)}}for(var k=c[c.length-1],E=f[f.length-1];k===E&&(d++<2?s="\n ".concat(k).concat(s):i=k,c.pop(),f.pop(),0!==c.length&&0!==f.length);)k=c[c.length-1],E=f[f.length-1];var S=Math.max(c.length,f.length);if(0===S){var O=l.split("\n");if(O.length>30)for(O[26]="".concat(y,"...").concat(w);O.length>27;)O.pop();return"".concat(x.notIdentical,"\n\n").concat(O.join("\n"),"\n")}d>3&&(s="\n".concat(y,"...").concat(w).concat(s),u=!0),""!==i&&(s="\n ".concat(i).concat(s),i="");var A=0,C=x[n]+"\n".concat(g,"+ actual").concat(w," ").concat(b,"- expected").concat(w),T=" ".concat(y,"...").concat(w," Lines skipped");for(d=0;d<S;d++){var N=d-o;if(c.length<d+1)N>1&&d>2&&(N>4?(a+="\n".concat(y,"...").concat(w),u=!0):N>3&&(a+="\n ".concat(f[d-2]),A++),a+="\n ".concat(f[d-1]),A++),o=d,i+="\n".concat(b,"-").concat(w," ").concat(f[d]),A++;else if(f.length<d+1)N>1&&d>2&&(N>4?(a+="\n".concat(y,"...").concat(w),u=!0):N>3&&(a+="\n ".concat(c[d-2]),A++),a+="\n ".concat(c[d-1]),A++),o=d,a+="\n".concat(g,"+").concat(w," ").concat(c[d]),A++;else{var j=f[d],P=c[d],R=P!==j&&(!v(P,",")||P.slice(0,-1)!==j);R&&v(j,",")&&j.slice(0,-1)===P&&(R=!1,P+=","),R?(N>1&&d>2&&(N>4?(a+="\n".concat(y,"...").concat(w),u=!0):N>3&&(a+="\n ".concat(c[d-2]),A++),a+="\n ".concat(c[d-1]),A++),o=d,a+="\n".concat(g,"+").concat(w," ").concat(P),i+="\n".concat(b,"-").concat(w," ").concat(j),A+=2):(a+=i,i="",1!==N&&0!==d||(a+="\n ".concat(P),A++))}if(A>20&&d<S-2)return"".concat(C).concat(T,"\n").concat(a,"\n").concat(y,"...").concat(w).concat(i,"\n")+"".concat(y,"...").concat(w)}return"".concat(C).concat(u?T:"","\n").concat(a).concat(i).concat(s).concat(h)}var S=function(e){function t(e){var n;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),"object"!==p(e)||null===e)throw new m("options","Object",e);var i=e.message,a=e.operator,u=e.stackStartFn,l=e.actual,c=e.expected,f=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=i)n=o(this,d(t).call(this,String(i)));else if(r.stderr&&r.stderr.isTTY&&(r.stderr&&r.stderr.getColorDepth&&1!==r.stderr.getColorDepth()?(y="",g="",w="",b=""):(y="",g="",w="",b="")),"object"===p(l)&&null!==l&&"object"===p(c)&&null!==c&&"stack"in l&&l instanceof Error&&"stack"in c&&c instanceof Error&&(l=k(l),c=k(c)),"deepStrictEqual"===a||"strictEqual"===a)n=o(this,d(t).call(this,E(l,c,a)));else if("notDeepStrictEqual"===a||"notStrictEqual"===a){var h=x[a],v=_(l).split("\n");if("notStrictEqual"===a&&"object"===p(l)&&null!==l&&(h=x.notStrictEqualObject),v.length>30)for(v[26]="".concat(y,"...").concat(w);v.length>27;)v.pop();n=1===v.length?o(this,d(t).call(this,"".concat(h," ").concat(v[0]))):o(this,d(t).call(this,"".concat(h,"\n\n").concat(v.join("\n"),"\n")))}else{var S=_(l),O="",A=x[a];"notDeepEqual"===a||"notEqual"===a?(S="".concat(x[a],"\n\n").concat(S)).length>1024&&(S="".concat(S.slice(0,1021),"...")):(O="".concat(_(c)),S.length>512&&(S="".concat(S.slice(0,509),"...")),O.length>512&&(O="".concat(O.slice(0,509),"...")),"deepEqual"===a||"equal"===a?S="".concat(A,"\n\n").concat(S,"\n\nshould equal\n\n"):O=" ".concat(a," ").concat(O)),n=o(this,d(t).call(this,"".concat(S).concat(O)))}return Error.stackTraceLimit=f,n.generatedMessage=!i,Object.defineProperty(s(n),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),n.code="ERR_ASSERTION",n.actual=l,n.expected=c,n.operator=a,Error.captureStackTrace&&Error.captureStackTrace(s(n),u),n.stack,n.name="AssertionError",o(n)}var n,u;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(t,e),n=t,(u=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:h.custom,value:function(e,t){return h(this,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){i(e,t,n[t])}))}return e}({},t,{customInspect:!1,depth:0}))}}])&&a(n.prototype,u),t}(u(Error));e.exports=S},3905:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var s,u,l={};function c(e,t,n){n||(n=Error);var r=function(n){function r(n,o,s){var u;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(u=i(this,a(r).call(this,function(e,n,r){return"string"==typeof t?t:t(e,n,r)}(n,o,s)))).code=e,u}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(r,n),r}(n);l[e]=r}function f(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(e){return String(e)})),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}c("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),c("ERR_INVALID_ARG_TYPE",(function(e,t,i){var a,o,u;if(void 0===s&&(s=n(5205)),s("string"==typeof e,"'name' must be a string"),"string"==typeof t&&(o="not ",t.substr(0,o.length)===o)?(a="must not be",t=t.replace(/^not /,"")):a="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))u="The ".concat(e," ").concat(a," ").concat(f(t,"type"));else{var l=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+".".length>e.length)&&-1!==e.indexOf(".",n)}(e)?"property":"argument";u='The "'.concat(e,'" ').concat(l," ").concat(a," ").concat(f(t,"type"))}return u+". Received type ".concat(r(i))}),TypeError),c("ERR_INVALID_ARG_VALUE",(function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===u&&(u=n(7736));var i=u.inspect(t);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(r,". Received ").concat(i)}),TypeError,RangeError),c("ERR_INVALID_RETURN_VALUE",(function(e,t,n){var i;return i=n&&n.constructor&&n.constructor.name?"instance of ".concat(n.constructor.name):"type ".concat(r(n)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(i,".")}),TypeError),c("ERR_MISSING_ARGS",(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];void 0===s&&(s=n(5205)),s(t.length>0,"At least one arg needs to be specified");var i="The ",a=t.length;switch(t=t.map((function(e){return'"'.concat(e,'"')})),a){case 1:i+="".concat(t[0]," argument");break;case 2:i+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:i+=t.slice(0,a-1).join(", "),i+=", and ".concat(t[a-1]," arguments")}return"".concat(i," must be specified")}),TypeError),e.exports.codes=l},8527:function(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a=void 0!==/a/g.flags,o=function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t},s=function(e){var t=[];return e.forEach((function(e,n){return t.push([n,e])})),t},u=Object.is?Object.is:n(8199),l=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},c=Number.isNaN?Number.isNaN:n(5738);function f(e){return e.call.bind(e)}var d=f(Object.prototype.hasOwnProperty),p=f(Object.prototype.propertyIsEnumerable),h=f(Object.prototype.toString),m=n(7736).types,v=m.isAnyArrayBuffer,y=m.isArrayBufferView,g=m.isDate,b=m.isMap,w=m.isRegExp,x=m.isSet,k=m.isNativeError,_=m.isBoxedPrimitive,E=m.isNumberObject,S=m.isStringObject,O=m.isBooleanObject,A=m.isBigIntObject,C=m.isSymbolObject,T=m.isFloat32Array,N=m.isFloat64Array;function j(e){if(0===e.length||e.length>10)return!0;for(var t=0;t<e.length;t++){var n=e.charCodeAt(t);if(n<48||n>57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function P(e){return Object.keys(e).filter(j).concat(l(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function R(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0}function I(e,t,n,r){if(e===t)return 0!==e||!n||u(e,t);if(n){if("object"!==i(e))return"number"==typeof e&&c(e)&&c(t);if("object"!==i(t)||null===e||null===t)return!1;if(Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1}else{if(null===e||"object"!==i(e))return(null===t||"object"!==i(t))&&e==t;if(null===t||"object"!==i(t))return!1}var o,s,l,f,d=h(e);if(d!==h(t))return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;var p=P(e),m=P(t);return p.length===m.length&&M(e,t,n,r,1,p)}if("[object Object]"===d&&(!b(e)&&b(t)||!x(e)&&x(t)))return!1;if(g(e)){if(!g(t)||Date.prototype.getTime.call(e)!==Date.prototype.getTime.call(t))return!1}else if(w(e)){if(!w(t)||(l=e,f=t,!(a?l.source===f.source&&l.flags===f.flags:RegExp.prototype.toString.call(l)===RegExp.prototype.toString.call(f))))return!1}else if(k(e)||e instanceof Error){if(e.message!==t.message||e.name!==t.name)return!1}else{if(y(e)){if(n||!T(e)&&!N(e)){if(!function(e,t){return e.byteLength===t.byteLength&&0===R(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}(e,t))return!1}else if(!function(e,t){if(e.byteLength!==t.byteLength)return!1;for(var n=0;n<e.byteLength;n++)if(e[n]!==t[n])return!1;return!0}(e,t))return!1;var j=P(e),I=P(t);return j.length===I.length&&M(e,t,n,r,0,j)}if(x(e))return!(!x(t)||e.size!==t.size)&&M(e,t,n,r,2);if(b(e))return!(!b(t)||e.size!==t.size)&&M(e,t,n,r,3);if(v(e)){if(s=t,(o=e).byteLength!==s.byteLength||0!==R(new Uint8Array(o),new Uint8Array(s)))return!1}else if(_(e)&&!function(e,t){return E(e)?E(t)&&u(Number.prototype.valueOf.call(e),Number.prototype.valueOf.call(t)):S(e)?S(t)&&String.prototype.valueOf.call(e)===String.prototype.valueOf.call(t):O(e)?O(t)&&Boolean.prototype.valueOf.call(e)===Boolean.prototype.valueOf.call(t):A(e)?A(t)&&BigInt.prototype.valueOf.call(e)===BigInt.prototype.valueOf.call(t):C(t)&&Symbol.prototype.valueOf.call(e)===Symbol.prototype.valueOf.call(t)}(e,t))return!1}return M(e,t,n,r,0)}function L(e,t){return t.filter((function(t){return p(e,t)}))}function M(e,t,n,r,i,a){if(5===arguments.length){a=Object.keys(e);var o=Object.keys(t);if(a.length!==o.length)return!1}for(var s=0;s<a.length;s++)if(!d(t,a[s]))return!1;if(n&&5===arguments.length){var u=l(e);if(0!==u.length){var c=0;for(s=0;s<u.length;s++){var f=u[s];if(p(e,f)){if(!p(t,f))return!1;a.push(f),c++}else if(p(t,f))return!1}var h=l(t);if(u.length!==h.length&&L(t,h).length!==c)return!1}else{var m=l(t);if(0!==m.length&&0!==L(t,m).length)return!1}}if(0===a.length&&(0===i||1===i&&0===e.length||0===e.size))return!0;if(void 0===r)r={val1:new Map,val2:new Map,position:0};else{var v=r.val1.get(e);if(void 0!==v){var y=r.val2.get(t);if(void 0!==y)return v===y}r.position++}r.val1.set(e,r.position),r.val2.set(t,r.position);var g=V(e,t,n,a,r,i);return r.val1.delete(e),r.val2.delete(t),g}function B(e,t,n,r){for(var i=o(e),a=0;a<i.length;a++){var s=i[a];if(I(t,s,n,r))return e.delete(s),!0}return!1}function D(e){switch(i(e)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":e=+e;case"number":if(c(e))return!1}return!0}function U(e,t,n){var r=D(n);return null!=r?r:t.has(r)&&!e.has(r)}function F(e,t,n,r,i){var a=D(n);if(null!=a)return a;var o=t.get(a);return!(void 0===o&&!t.has(a)||!I(r,o,!1,i))&&!e.has(a)&&I(r,o,!1,i)}function z(e,t,n,r,i,a){for(var s=o(e),u=0;u<s.length;u++){var l=s[u];if(I(n,l,i,a)&&I(r,t.get(l),i,a))return e.delete(l),!0}return!1}function V(e,t,n,a,u,l){var c=0;if(2===l){if(!function(e,t,n,r){for(var a=null,s=o(e),u=0;u<s.length;u++){var l=s[u];if("object"===i(l)&&null!==l)null===a&&(a=new Set),a.add(l);else if(!t.has(l)){if(n)return!1;if(!U(e,t,l))return!1;null===a&&(a=new Set),a.add(l)}}if(null!==a){for(var c=o(t),f=0;f<c.length;f++){var d=c[f];if("object"===i(d)&&null!==d){if(!B(a,d,n,r))return!1}else if(!n&&!e.has(d)&&!B(a,d,n,r))return!1}return 0===a.size}return!0}(e,t,n,u))return!1}else if(3===l){if(!function(e,t,n,a){for(var o=null,u=s(e),l=0;l<u.length;l++){var c=r(u[l],2),f=c[0],d=c[1];if("object"===i(f)&&null!==f)null===o&&(o=new Set),o.add(f);else{var p=t.get(f);if(void 0===p&&!t.has(f)||!I(d,p,n,a)){if(n)return!1;if(!F(e,t,f,d,a))return!1;null===o&&(o=new Set),o.add(f)}}}if(null!==o){for(var h=s(t),m=0;m<h.length;m++){var v=r(h[m],2),y=(f=v[0],v[1]);if("object"===i(f)&&null!==f){if(!z(o,e,f,y,n,a))return!1}else if(!(n||e.has(f)&&I(e.get(f),y,!1,a)||z(o,e,f,y,!1,a)))return!1}return 0===o.size}return!0}(e,t,n,u))return!1}else if(1===l)for(;c<e.length;c++){if(!d(e,c)){if(d(t,c))return!1;for(var f=Object.keys(e);c<f.length;c++){var p=f[c];if(!d(t,p)||!I(e[p],t[p],n,u))return!1}return f.length===Object.keys(t).length}if(!d(t,c)||!I(e[c],t[c],n,u))return!1}for(c=0;c<a.length;c++){var h=a[c];if(!I(e[h],t[h],n,u))return!1}return!0}e.exports={isDeepEqual:function(e,t){return I(e,t,!1)},isDeepStrictEqual:function(e,t){return I(e,t,!0)}}},2470:function(e,t){"use strict";t.byteLength=function(e){var t=u(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,a=u(e),o=a[0],s=a[1],l=new i(function(e,t,n){return 3*(t+n)/4-n}(0,o,s)),c=0,f=s>0?o-4:o;for(n=0;n<f;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],l[c++]=t>>16&255,l[c++]=t>>8&255,l[c++]=255&t;return 2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,l[c++]=255&t),1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,l[c++]=t>>8&255,l[c++]=255&t),l},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,a=[],o=16383,s=0,u=r-i;s<u;s+=o)a.push(l(e,s,s+o>u?u:s+o));return 1===i?(t=e[r-1],a.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],a.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),a.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,s=a.length;o<s;++o)n[o]=a[o],r[a.charCodeAt(o)]=o;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,r){for(var i,a,o=[],s=t;s<r;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),o.push(n[(a=i)>>18&63]+n[a>>12&63]+n[a>>6&63]+n[63&a]);return o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},4227:function(e,t,n){"use strict";var r=n(918).Buffer,i=n(7490),a=n(5205),o=n(400),s=n(8106),u=n(1833),l=n(7572);for(var c in l)t[c]=l[c];function f(e){if("number"!=typeof e||e<t.DEFLATE||e>t.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=e,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}t.NONE=0,t.DEFLATE=1,t.INFLATE=2,t.GZIP=3,t.GUNZIP=4,t.DEFLATERAW=5,t.INFLATERAW=6,t.UNZIP=7,f.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,a(this.init_done,"close before init"),a(this.mode<=t.UNZIP),this.mode===t.DEFLATE||this.mode===t.GZIP||this.mode===t.DEFLATERAW?s.deflateEnd(this.strm):this.mode!==t.INFLATE&&this.mode!==t.GUNZIP&&this.mode!==t.INFLATERAW&&this.mode!==t.UNZIP||u.inflateEnd(this.strm),this.mode=t.NONE,this.dictionary=null)},f.prototype.write=function(e,t,n,r,i,a,o){return this._write(!0,e,t,n,r,i,a,o)},f.prototype.writeSync=function(e,t,n,r,i,a,o){return this._write(!1,e,t,n,r,i,a,o)},f.prototype._write=function(e,n,o,s,u,l,c,f){if(a.equal(arguments.length,8),a(this.init_done,"write before init"),a(this.mode!==t.NONE,"already finalized"),a.equal(!1,this.write_in_progress,"write already in progress"),a.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,a.equal(!1,void 0===n,"must provide flush value"),this.write_in_progress=!0,n!==t.Z_NO_FLUSH&&n!==t.Z_PARTIAL_FLUSH&&n!==t.Z_SYNC_FLUSH&&n!==t.Z_FULL_FLUSH&&n!==t.Z_FINISH&&n!==t.Z_BLOCK)throw new Error("Invalid flush value");if(null==o&&(o=r.alloc(0),u=0,s=0),this.strm.avail_in=u,this.strm.input=o,this.strm.next_in=s,this.strm.avail_out=f,this.strm.output=l,this.strm.next_out=c,this.flush=n,!e)return this._process(),this._checkError()?this._afterSync():void 0;var d=this;return i.nextTick((function(){d._process(),d._after()})),this},f.prototype._afterSync=function(){var e=this.strm.avail_out,t=this.strm.avail_in;return this.write_in_progress=!1,[t,e]},f.prototype._process=function(){var e=null;switch(this.mode){case t.DEFLATE:case t.GZIP:case t.DEFLATERAW:this.err=s.deflate(this.strm,this.flush);break;case t.UNZIP:switch(this.strm.avail_in>0&&(e=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(null===e)break;if(31!==this.strm.input[e]){this.mode=t.INFLATE;break}if(this.gzip_id_bytes_read=1,e++,1===this.strm.avail_in)break;case 1:if(null===e)break;139===this.strm.input[e]?(this.gzip_id_bytes_read=2,this.mode=t.GUNZIP):this.mode=t.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case t.INFLATE:case t.GUNZIP:case t.INFLATERAW:for(this.err=u.inflate(this.strm,this.flush),this.err===t.Z_NEED_DICT&&this.dictionary&&(this.err=u.inflateSetDictionary(this.strm,this.dictionary),this.err===t.Z_OK?this.err=u.inflate(this.strm,this.flush):this.err===t.Z_DATA_ERROR&&(this.err=t.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===t.GUNZIP&&this.err===t.Z_STREAM_END&&0!==this.strm.next_in[0];)this.reset(),this.err=u.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},f.prototype._checkError=function(){switch(this.err){case t.Z_OK:case t.Z_BUF_ERROR:if(0!==this.strm.avail_out&&this.flush===t.Z_FINISH)return this._error("unexpected end of file"),!1;break;case t.Z_STREAM_END:break;case t.Z_NEED_DICT:return null==this.dictionary?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},f.prototype._after=function(){if(this._checkError()){var e=this.strm.avail_out,t=this.strm.avail_in;this.write_in_progress=!1,this.callback(t,e),this.pending_close&&this.close()}},f.prototype._error=function(e){this.strm.msg&&(e=this.strm.msg),this.onerror(e,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},f.prototype.init=function(e,n,r,i,o){a(4===arguments.length||5===arguments.length,"init(windowBits, level, memLevel, strategy, [dictionary])"),a(e>=8&&e<=15,"invalid windowBits"),a(n>=-1&&n<=9,"invalid compression level"),a(r>=1&&r<=9,"invalid memlevel"),a(i===t.Z_FILTERED||i===t.Z_HUFFMAN_ONLY||i===t.Z_RLE||i===t.Z_FIXED||i===t.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(n,e,r,i,o),this._setDictionary()},f.prototype.params=function(){throw new Error("deflateParams Not supported")},f.prototype.reset=function(){this._reset(),this._setDictionary()},f.prototype._init=function(e,n,r,i,a){switch(this.level=e,this.windowBits=n,this.memLevel=r,this.strategy=i,this.flush=t.Z_NO_FLUSH,this.err=t.Z_OK,this.mode!==t.GZIP&&this.mode!==t.GUNZIP||(this.windowBits+=16),this.mode===t.UNZIP&&(this.windowBits+=32),this.mode!==t.DEFLATERAW&&this.mode!==t.INFLATERAW||(this.windowBits=-1*this.windowBits),this.strm=new o,this.mode){case t.DEFLATE:case t.GZIP:case t.DEFLATERAW:this.err=s.deflateInit2(this.strm,this.level,t.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case t.INFLATE:case t.GUNZIP:case t.INFLATERAW:case t.UNZIP:this.err=u.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==t.Z_OK&&this._error("Init error"),this.dictionary=a,this.write_in_progress=!1,this.init_done=!0},f.prototype._setDictionary=function(){if(null!=this.dictionary){switch(this.err=t.Z_OK,this.mode){case t.DEFLATE:case t.DEFLATERAW:this.err=s.deflateSetDictionary(this.strm,this.dictionary)}this.err!==t.Z_OK&&this._error("Failed to set dictionary")}},f.prototype._reset=function(){switch(this.err=t.Z_OK,this.mode){case t.DEFLATE:case t.DEFLATERAW:case t.GZIP:this.err=s.deflateReset(this.strm);break;case t.INFLATE:case t.INFLATERAW:case t.GUNZIP:this.err=u.inflateReset(this.strm)}this.err!==t.Z_OK&&this._error("Failed to reset stream")},t.Zlib=f},1899:function(e,t,n){"use strict";var r=n(7490),i=n(918).Buffer,a=n(3841).Transform,o=n(4227),s=n(7736),u=n(5205).ok,l=n(918).kMaxLength,c="Cannot create final Buffer. It would be larger than 0x"+l.toString(16)+" bytes";o.Z_MIN_WINDOWBITS=8,o.Z_MAX_WINDOWBITS=15,o.Z_DEFAULT_WINDOWBITS=15,o.Z_MIN_CHUNK=64,o.Z_MAX_CHUNK=1/0,o.Z_DEFAULT_CHUNK=16384,o.Z_MIN_MEMLEVEL=1,o.Z_MAX_MEMLEVEL=9,o.Z_DEFAULT_MEMLEVEL=8,o.Z_MIN_LEVEL=-1,o.Z_MAX_LEVEL=9,o.Z_DEFAULT_LEVEL=o.Z_DEFAULT_COMPRESSION;for(var f=Object.keys(o),d=0;d<f.length;d++){var p=f[d];p.match(/^Z/)&&Object.defineProperty(t,p,{enumerable:!0,value:o[p],writable:!1})}for(var h={Z_OK:o.Z_OK,Z_STREAM_END:o.Z_STREAM_END,Z_NEED_DICT:o.Z_NEED_DICT,Z_ERRNO:o.Z_ERRNO,Z_STREAM_ERROR:o.Z_STREAM_ERROR,Z_DATA_ERROR:o.Z_DATA_ERROR,Z_MEM_ERROR:o.Z_MEM_ERROR,Z_BUF_ERROR:o.Z_BUF_ERROR,Z_VERSION_ERROR:o.Z_VERSION_ERROR},m=Object.keys(h),v=0;v<m.length;v++){var y=m[v];h[h[y]]=y}function g(e,t,n){var r=[],a=0;function o(){for(var t;null!==(t=e.read());)r.push(t),a+=t.length;e.once("readable",o)}function s(){var t,o=null;a>=l?o=new RangeError(c):t=i.concat(r,a),r=[],e.close(),n(o,t)}e.on("error",(function(t){e.removeListener("end",s),e.removeListener("readable",o),n(t)})),e.on("end",s),e.end(t),o()}function b(e,t){if("string"==typeof t&&(t=i.from(t)),!i.isBuffer(t))throw new TypeError("Not a string or buffer");var n=e._finishFlushFlag;return e._processChunk(t,n)}function w(e){if(!(this instanceof w))return new w(e);C.call(this,e,o.DEFLATE)}function x(e){if(!(this instanceof x))return new x(e);C.call(this,e,o.INFLATE)}function k(e){if(!(this instanceof k))return new k(e);C.call(this,e,o.GZIP)}function _(e){if(!(this instanceof _))return new _(e);C.call(this,e,o.GUNZIP)}function E(e){if(!(this instanceof E))return new E(e);C.call(this,e,o.DEFLATERAW)}function S(e){if(!(this instanceof S))return new S(e);C.call(this,e,o.INFLATERAW)}function O(e){if(!(this instanceof O))return new O(e);C.call(this,e,o.UNZIP)}function A(e){return e===o.Z_NO_FLUSH||e===o.Z_PARTIAL_FLUSH||e===o.Z_SYNC_FLUSH||e===o.Z_FULL_FLUSH||e===o.Z_FINISH||e===o.Z_BLOCK}function C(e,n){var r=this;if(this._opts=e=e||{},this._chunkSize=e.chunkSize||t.Z_DEFAULT_CHUNK,a.call(this,e),e.flush&&!A(e.flush))throw new Error("Invalid flush flag: "+e.flush);if(e.finishFlush&&!A(e.finishFlush))throw new Error("Invalid flush flag: "+e.finishFlush);if(this._flushFlag=e.flush||o.Z_NO_FLUSH,this._finishFlushFlag=void 0!==e.finishFlush?e.finishFlush:o.Z_FINISH,e.chunkSize&&(e.chunkSize<t.Z_MIN_CHUNK||e.chunkSize>t.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+e.chunkSize);if(e.windowBits&&(e.windowBits<t.Z_MIN_WINDOWBITS||e.windowBits>t.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+e.windowBits);if(e.level&&(e.level<t.Z_MIN_LEVEL||e.level>t.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+e.level);if(e.memLevel&&(e.memLevel<t.Z_MIN_MEMLEVEL||e.memLevel>t.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+e.memLevel);if(e.strategy&&e.strategy!=t.Z_FILTERED&&e.strategy!=t.Z_HUFFMAN_ONLY&&e.strategy!=t.Z_RLE&&e.strategy!=t.Z_FIXED&&e.strategy!=t.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+e.strategy);if(e.dictionary&&!i.isBuffer(e.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new o.Zlib(n);var s=this;this._hadError=!1,this._handle.onerror=function(e,n){T(s),s._hadError=!0;var r=new Error(e);r.errno=n,r.code=t.codes[n],s.emit("error",r)};var u=t.Z_DEFAULT_COMPRESSION;"number"==typeof e.level&&(u=e.level);var l=t.Z_DEFAULT_STRATEGY;"number"==typeof e.strategy&&(l=e.strategy),this._handle.init(e.windowBits||t.Z_DEFAULT_WINDOWBITS,u,e.memLevel||t.Z_DEFAULT_MEMLEVEL,l,e.dictionary),this._buffer=i.allocUnsafe(this._chunkSize),this._offset=0,this._level=u,this._strategy=l,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!r._handle},configurable:!0,enumerable:!0})}function T(e,t){t&&r.nextTick(t),e._handle&&(e._handle.close(),e._handle=null)}function N(e){e.emit("close")}Object.defineProperty(t,"codes",{enumerable:!0,value:Object.freeze(h),writable:!1}),t.Deflate=w,t.Inflate=x,t.Gzip=k,t.Gunzip=_,t.DeflateRaw=E,t.InflateRaw=S,t.Unzip=O,t.createDeflate=function(e){return new w(e)},t.createInflate=function(e){return new x(e)},t.createDeflateRaw=function(e){return new E(e)},t.createInflateRaw=function(e){return new S(e)},t.createGzip=function(e){return new k(e)},t.createGunzip=function(e){return new _(e)},t.createUnzip=function(e){return new O(e)},t.deflate=function(e,t,n){return"function"==typeof t&&(n=t,t={}),g(new w(t),e,n)},t.deflateSync=function(e,t){return b(new w(t),e)},t.gzip=function(e,t,n){return"function"==typeof t&&(n=t,t={}),g(new k(t),e,n)},t.gzipSync=function(e,t){return b(new k(t),e)},t.deflateRaw=function(e,t,n){return"function"==typeof t&&(n=t,t={}),g(new E(t),e,n)},t.deflateRawSync=function(e,t){return b(new E(t),e)},t.unzip=function(e,t,n){return"function"==typeof t&&(n=t,t={}),g(new O(t),e,n)},t.unzipSync=function(e,t){return b(new O(t),e)},t.inflate=function(e,t,n){return"function"==typeof t&&(n=t,t={}),g(new x(t),e,n)},t.inflateSync=function(e,t){return b(new x(t),e)},t.gunzip=function(e,t,n){return"function"==typeof t&&(n=t,t={}),g(new _(t),e,n)},t.gunzipSync=function(e,t){return b(new _(t),e)},t.inflateRaw=function(e,t,n){return"function"==typeof t&&(n=t,t={}),g(new S(t),e,n)},t.inflateRawSync=function(e,t){return b(new S(t),e)},s.inherits(C,a),C.prototype.params=function(e,n,i){if(e<t.Z_MIN_LEVEL||e>t.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+e);if(n!=t.Z_FILTERED&&n!=t.Z_HUFFMAN_ONLY&&n!=t.Z_RLE&&n!=t.Z_FIXED&&n!=t.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+n);if(this._level!==e||this._strategy!==n){var a=this;this.flush(o.Z_SYNC_FLUSH,(function(){u(a._handle,"zlib binding closed"),a._handle.params(e,n),a._hadError||(a._level=e,a._strategy=n,i&&i())}))}else r.nextTick(i)},C.prototype.reset=function(){return u(this._handle,"zlib binding closed"),this._handle.reset()},C.prototype._flush=function(e){this._transform(i.alloc(0),"",e)},C.prototype.flush=function(e,t){var n=this,a=this._writableState;("function"==typeof e||void 0===e&&!t)&&(t=e,e=o.Z_FULL_FLUSH),a.ended?t&&r.nextTick(t):a.ending?t&&this.once("end",t):a.needDrain?t&&this.once("drain",(function(){return n.flush(e,t)})):(this._flushFlag=e,this.write(i.alloc(0),"",t))},C.prototype.close=function(e){T(this,e),r.nextTick(N,this)},C.prototype._transform=function(e,t,n){var r,a=this._writableState,s=(a.ending||a.ended)&&(!e||a.length===e.length);return null===e||i.isBuffer(e)?this._handle?(s?r=this._finishFlushFlag:(r=this._flushFlag,e.length>=a.length&&(this._flushFlag=this._opts.flush||o.Z_NO_FLUSH)),void this._processChunk(e,r,n)):n(new Error("zlib binding closed")):n(new Error("invalid input"))},C.prototype._processChunk=function(e,t,n){var r=e&&e.length,a=this._chunkSize-this._offset,o=0,s=this,f="function"==typeof n;if(!f){var d,p=[],h=0;this.on("error",(function(e){d=e})),u(this._handle,"zlib binding closed");do{var m=this._handle.writeSync(t,e,o,r,this._buffer,this._offset,a)}while(!this._hadError&&g(m[0],m[1]));if(this._hadError)throw d;if(h>=l)throw T(this),new RangeError(c);var v=i.concat(p,h);return T(this),v}u(this._handle,"zlib binding closed");var y=this._handle.write(t,e,o,r,this._buffer,this._offset,a);function g(l,c){if(this&&(this.buffer=null,this.callback=null),!s._hadError){var d=a-c;if(u(d>=0,"have should not go down"),d>0){var m=s._buffer.slice(s._offset,s._offset+d);s._offset+=d,f?s.push(m):(p.push(m),h+=m.length)}if((0===c||s._offset>=s._chunkSize)&&(a=s._chunkSize,s._offset=0,s._buffer=i.allocUnsafe(s._chunkSize)),0===c){if(o+=r-l,r=l,!f)return!0;var v=s._handle.write(t,e,o,r,s._buffer,s._offset,s._chunkSize);return v.callback=g,void(v.buffer=e)}if(!f)return!1;n()}}y.buffer=e,y.callback=g},s.inherits(w,C),s.inherits(x,C),s.inherits(k,C),s.inherits(_,C),s.inherits(E,C),s.inherits(S,C),s.inherits(O,C)},918:function(e,t,n){"use strict";var r=n(8466),i=n(6690).default,a=n(9728).default,o=n(6115).default,s=n(1655).default,u=n(6389).default,l=n(2470),c=n(545),f="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=h,t.SlowBuffer=function(e){return+e!=e&&(e=0),h.alloc(+e)},t.INSPECT_MAX_BYTES=50;var d=2147483647;function p(e){if(e>d)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,h.prototype),t}function h(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return y(e)}return m(e,t,n)}function m(e,t,n){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!h.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=0|x(e,t),r=p(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(te(e,Uint8Array)){var t=new Uint8Array(e);return b(t.buffer,t.byteOffset,t.byteLength)}return g(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(te(e,ArrayBuffer)||e&&te(e.buffer,ArrayBuffer))return b(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(te(e,SharedArrayBuffer)||e&&te(e.buffer,SharedArrayBuffer)))return b(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return h.from(r,t,n);var i=function(e){if(h.isBuffer(e)){var t=0|w(e.length),n=p(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||ne(e.length)?p(0):g(e):"Buffer"===e.type&&Array.isArray(e.data)?g(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return h.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function v(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function y(e){return v(e),p(e<0?0:0|w(e))}function g(e){for(var t=e.length<0?0:0|w(e.length),n=p(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function b(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');var r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,h.prototype),r}function w(e){if(e>=d)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+d.toString(16)+" bytes");return 0|e}function x(e,t){if(h.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||te(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return Q(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return J(e).length;default:if(i)return r?-1:Q(e).length;t=(""+t).toLowerCase(),i=!0}}function k(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return M(this,t,n);case"utf8":case"utf-8":return P(this,t,n);case"ascii":return I(this,t,n);case"latin1":case"binary":return L(this,t,n);case"base64":return j(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function _(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function E(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),ne(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=h.from(t,r)),h.isBuffer(t))return 0===t.length?-1:S(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):S(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function S(e,t,n,r,i){var a,o=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,s/=2,u/=2,n/=2}function l(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var c=-1;for(a=n;a<s;a++)if(l(e,a)===l(t,-1===c?0:a-c)){if(-1===c&&(c=a),a-c+1===u)return c*o}else-1!==c&&(a-=a-c),c=-1}else for(n+u>s&&(n=s-u),a=n;a>=0;a--){for(var f=!0,d=0;d<u;d++)if(l(e,a+d)!==l(t,d)){f=!1;break}if(f)return a}return-1}function O(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var a,o=t.length;for(r>o/2&&(r=o/2),a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(ne(s))return a;e[n+a]=s}return a}function A(e,t,n,r){return ee(Q(t,e.length-n),e,n,r)}function C(e,t,n,r){return ee(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function T(e,t,n,r){return ee(J(t),e,n,r)}function N(e,t,n,r){return ee(function(e,t){for(var n,r,i,a=[],o=0;o<e.length&&!((t-=2)<0);++o)r=(n=e.charCodeAt(o))>>8,i=n%256,a.push(i),a.push(r);return a}(t,e.length-n),e,n,r)}function j(e,t,n){return 0===t&&n===e.length?l.fromByteArray(e):l.fromByteArray(e.slice(t,n))}function P(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var a=e[i],o=null,s=a>239?4:a>223?3:a>191?2:1;if(i+s<=n){var u=void 0,l=void 0,c=void 0,f=void 0;switch(s){case 1:a<128&&(o=a);break;case 2:128==(192&(u=e[i+1]))&&(f=(31&a)<<6|63&u)>127&&(o=f);break;case 3:u=e[i+1],l=e[i+2],128==(192&u)&&128==(192&l)&&(f=(15&a)<<12|(63&u)<<6|63&l)>2047&&(f<55296||f>57343)&&(o=f);break;case 4:u=e[i+1],l=e[i+2],c=e[i+3],128==(192&u)&&128==(192&l)&&128==(192&c)&&(f=(15&a)<<18|(63&u)<<12|(63&l)<<6|63&c)>65535&&f<1114112&&(o=f)}}null===o?(o=65533,s=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=s}return function(e){var t=e.length;if(t<=R)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=R));return n}(r)}t.kMaxLength=d,h.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),h.TYPED_ARRAY_SUPPORT||void 0===r||"function"!=typeof r.error||r.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(h.prototype,"parent",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.buffer}}),Object.defineProperty(h.prototype,"offset",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.byteOffset}}),h.poolSize=8192,h.from=function(e,t,n){return m(e,t,n)},Object.setPrototypeOf(h.prototype,Uint8Array.prototype),Object.setPrototypeOf(h,Uint8Array),h.alloc=function(e,t,n){return function(e,t,n){return v(e),e<=0?p(e):void 0!==t?"string"==typeof n?p(e).fill(t,n):p(e).fill(t):p(e)}(e,t,n)},h.allocUnsafe=function(e){return y(e)},h.allocUnsafeSlow=function(e){return y(e)},h.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==h.prototype},h.compare=function(e,t){if(te(e,Uint8Array)&&(e=h.from(e,e.offset,e.byteLength)),te(t,Uint8Array)&&(t=h.from(t,t.offset,t.byteLength)),!h.isBuffer(e)||!h.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},h.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},h.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return h.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=h.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(te(a,Uint8Array))i+a.length>r.length?(h.isBuffer(a)||(a=h.from(a)),a.copy(r,i)):Uint8Array.prototype.set.call(r,a,i);else{if(!h.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i)}i+=a.length}return r},h.byteLength=x,h.prototype._isBuffer=!0,h.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)_(this,t,t+1);return this},h.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)_(this,t,t+3),_(this,t+1,t+2);return this},h.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)_(this,t,t+7),_(this,t+1,t+6),_(this,t+2,t+5),_(this,t+3,t+4);return this},h.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?P(this,0,e):k.apply(this,arguments)},h.prototype.toLocaleString=h.prototype.toString,h.prototype.equals=function(e){if(!h.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===h.compare(this,e)},h.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},f&&(h.prototype[f]=h.prototype.inspect),h.prototype.compare=function(e,t,n,r,i){if(te(e,Uint8Array)&&(e=h.from(e,e.offset,e.byteLength)),!h.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0),s=Math.min(a,o),u=this.slice(r,i),l=e.slice(t,n),c=0;c<s;++c)if(u[c]!==l[c]){a=u[c],o=l[c];break}return a<o?-1:o<a?1:0},h.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},h.prototype.indexOf=function(e,t,n){return E(this,e,t,n,!0)},h.prototype.lastIndexOf=function(e,t,n){return E(this,e,t,n,!1)},h.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return O(this,e,t,n);case"utf8":case"utf-8":return A(this,e,t,n);case"ascii":case"latin1":case"binary":return C(this,e,t,n);case"base64":return T(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var R=4096;function I(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function L(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function M(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",a=t;a<n;++a)i+=re[e[a]];return i}function B(e,t,n){for(var r=e.slice(t,n),i="",a=0;a<r.length-1;a+=2)i+=String.fromCharCode(r[a]+256*r[a+1]);return i}function D(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function U(e,t,n,r,i,a){if(!h.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function F(e,t,n,r,i){Y(t,r,i,e,n,7);var a=Number(t&BigInt(4294967295));e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a;var o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,n}function z(e,t,n,r,i){Y(t,r,i,e,n,7);var a=Number(t&BigInt(4294967295));e[n+7]=a,a>>=8,e[n+6]=a,a>>=8,e[n+5]=a,a>>=8,e[n+4]=a;var o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=o,o>>=8,e[n+2]=o,o>>=8,e[n+1]=o,o>>=8,e[n]=o,n+8}function V(e,t,n,r,i,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function H(e,t,n,r,i){return t=+t,n>>>=0,i||V(e,0,n,4),c.write(e,t,n,r,23,4),n+4}function W(e,t,n,r,i){return t=+t,n>>>=0,i||V(e,0,n,8),c.write(e,t,n,r,52,8),n+8}h.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return Object.setPrototypeOf(r,h.prototype),r},h.prototype.readUintLE=h.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||D(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r},h.prototype.readUintBE=h.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||D(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},h.prototype.readUint8=h.prototype.readUInt8=function(e,t){return e>>>=0,t||D(e,1,this.length),this[e]},h.prototype.readUint16LE=h.prototype.readUInt16LE=function(e,t){return e>>>=0,t||D(e,2,this.length),this[e]|this[e+1]<<8},h.prototype.readUint16BE=h.prototype.readUInt16BE=function(e,t){return e>>>=0,t||D(e,2,this.length),this[e]<<8|this[e+1]},h.prototype.readUint32LE=h.prototype.readUInt32LE=function(e,t){return e>>>=0,t||D(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},h.prototype.readUint32BE=h.prototype.readUInt32BE=function(e,t){return e>>>=0,t||D(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},h.prototype.readBigUInt64LE=ie((function(e){$(e>>>=0,"offset");var t=this[e],n=this[e+7];void 0!==t&&void 0!==n||K(e,this.length-8);var r=t+this[++e]*Math.pow(2,8)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,24),i=this[++e]+this[++e]*Math.pow(2,8)+this[++e]*Math.pow(2,16)+n*Math.pow(2,24);return BigInt(r)+(BigInt(i)<<BigInt(32))})),h.prototype.readBigUInt64BE=ie((function(e){$(e>>>=0,"offset");var t=this[e],n=this[e+7];void 0!==t&&void 0!==n||K(e,this.length-8);var r=t*Math.pow(2,24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+this[++e],i=this[++e]*Math.pow(2,24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+n;return(BigInt(r)<<BigInt(32))+BigInt(i)})),h.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||D(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},h.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||D(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},h.prototype.readInt8=function(e,t){return e>>>=0,t||D(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},h.prototype.readInt16LE=function(e,t){e>>>=0,t||D(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},h.prototype.readInt16BE=function(e,t){e>>>=0,t||D(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},h.prototype.readInt32LE=function(e,t){return e>>>=0,t||D(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},h.prototype.readInt32BE=function(e,t){return e>>>=0,t||D(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},h.prototype.readBigInt64LE=ie((function(e){$(e>>>=0,"offset");var t=this[e],n=this[e+7];void 0!==t&&void 0!==n||K(e,this.length-8);var r=this[e+4]+this[e+5]*Math.pow(2,8)+this[e+6]*Math.pow(2,16)+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+this[++e]*Math.pow(2,8)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,24))})),h.prototype.readBigInt64BE=ie((function(e){$(e>>>=0,"offset");var t=this[e],n=this[e+7];void 0!==t&&void 0!==n||K(e,this.length-8);var r=(t<<24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*Math.pow(2,24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+n)})),h.prototype.readFloatLE=function(e,t){return e>>>=0,t||D(e,4,this.length),c.read(this,e,!0,23,4)},h.prototype.readFloatBE=function(e,t){return e>>>=0,t||D(e,4,this.length),c.read(this,e,!1,23,4)},h.prototype.readDoubleLE=function(e,t){return e>>>=0,t||D(e,8,this.length),c.read(this,e,!0,52,8)},h.prototype.readDoubleBE=function(e,t){return e>>>=0,t||D(e,8,this.length),c.read(this,e,!1,52,8)},h.prototype.writeUintLE=h.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||U(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,a=0;for(this[t]=255&e;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},h.prototype.writeUintBE=h.prototype.writeUIntBE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||U(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},h.prototype.writeUint8=h.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,1,255,0),this[t]=255&e,t+1},h.prototype.writeUint16LE=h.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},h.prototype.writeUint16BE=h.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},h.prototype.writeUint32LE=h.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},h.prototype.writeUint32BE=h.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},h.prototype.writeBigUInt64LE=ie((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return F(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),h.prototype.writeBigUInt64BE=ie((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return z(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),h.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);U(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a<n&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},h.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);U(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},h.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},h.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},h.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},h.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},h.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},h.prototype.writeBigInt64LE=ie((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return F(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),h.prototype.writeBigInt64BE=ie((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return z(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),h.prototype.writeFloatLE=function(e,t,n){return H(this,e,t,!0,n)},h.prototype.writeFloatBE=function(e,t,n){return H(this,e,t,!1,n)},h.prototype.writeDoubleLE=function(e,t,n){return W(this,e,t,!0,n)},h.prototype.writeDoubleBE=function(e,t,n){return W(this,e,t,!1,n)},h.prototype.copy=function(e,t,n,r){if(!h.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i=r-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},h.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!h.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){var i=e.charCodeAt(0);("utf8"===r&&i<128||"latin1"===r)&&(e=i)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var a;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(a=t;a<n;++a)this[a]=e;else{var o=h.isBuffer(e)?e:h.from(e,r),s=o.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<n-t;++a)this[a+t]=o[a%s]}return this};var q={};function G(e,t,n){q[e]=function(n){s(l,n);var r=u(l);function l(){var n;return i(this,l),n=r.call(this),Object.defineProperty(o(n),"message",{value:t.apply(o(n),arguments),writable:!0,configurable:!0}),n.name="".concat(n.name," [").concat(e,"]"),n.stack,delete n.name,n}return a(l,[{key:"code",get:function(){return e},set:function(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}},{key:"toString",value:function(){return"".concat(this.name," [").concat(e,"]: ").concat(this.message)}}]),l}(n)}function Z(e){for(var t="",n=e.length,r="-"===e[0]?1:0;n>=r+4;n-=3)t="_".concat(e.slice(n-3,n)).concat(t);return"".concat(e.slice(0,n)).concat(t)}function Y(e,t,n,r,i,a){if(e>n||e<t){var o,s="bigint"==typeof t?"n":"";throw o=a>3?0===t||t===BigInt(0)?">= 0".concat(s," and < 2").concat(s," ** ").concat(8*(a+1)).concat(s):">= -(2".concat(s," ** ").concat(8*(a+1)-1).concat(s,") and < 2 ** ")+"".concat(8*(a+1)-1).concat(s):">= ".concat(t).concat(s," and <= ").concat(n).concat(s),new q.ERR_OUT_OF_RANGE("value",o,e)}!function(e,t,n){$(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||K(t,e.length-(n+1))}(r,i,a)}function $(e,t){if("number"!=typeof e)throw new q.ERR_INVALID_ARG_TYPE(t,"number",e)}function K(e,t,n){if(Math.floor(e)!==e)throw $(e,n),new q.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new q.ERR_BUFFER_OUT_OF_BOUNDS;throw new q.ERR_OUT_OF_RANGE(n||"offset",">= ".concat(n?1:0," and <= ").concat(t),e)}G("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?"".concat(e," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"}),RangeError),G("ERR_INVALID_ARG_TYPE",(function(e,t){return'The "'.concat(e,'" argument must be of type number. Received type ').concat(typeof t)}),TypeError),G("ERR_OUT_OF_RANGE",(function(e,t,n){var r='The value of "'.concat(e,'" is out of range.'),i=n;return Number.isInteger(n)&&Math.abs(n)>Math.pow(2,32)?i=Z(String(n)):"bigint"==typeof n&&(i=String(n),(n>Math.pow(BigInt(2),BigInt(32))||n<-Math.pow(BigInt(2),BigInt(32)))&&(i=Z(i)),i+="n"),r+" It must be ".concat(t,". Received ").concat(i)}),RangeError);var X=/[^+/0-9A-Za-z-_]/g;function Q(e,t){var n;t=t||1/0;for(var r=e.length,i=null,a=[],o=0;o<r;++o){if((n=e.charCodeAt(o))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function J(e){return l.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(X,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function ee(e,t,n,r){var i;for(i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function te(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function ne(e){return e!=e}var re=function(){for(var e="0123456789abcdef",t=new Array(256),n=0;n<16;++n)for(var r=16*n,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t}();function ie(e){return"undefined"==typeof BigInt?ae:e}function ae(){throw new Error("BigInt not supported")}},4680:function(e,t,n){"use strict";var r=n(8476),i=n(9962),a=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&a(e,".prototype.")>-1?i(n):n}},9962:function(e,t,n){"use strict";var r=n(1199),i=n(8476),a=i("%Function.prototype.apply%"),o=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||r.call(o,a),u=i("%Object.getOwnPropertyDescriptor%",!0),l=i("%Object.defineProperty%",!0),c=i("%Math.max%");if(l)try{l({},"a",{value:1})}catch(e){l=null}e.exports=function(e){var t=s(r,o,arguments);if(u&&l){var n=u(t,"length");n.configurable&&l(t,"length",{value:1+c(0,e.length-(arguments.length-1))})}return t};var f=function(){return s(r,a,arguments)};l?l(e.exports,"apply",{value:f}):e.exports.apply=f},8466:function(e,t,n){var r=n(7736),i=n(5205);function a(){return(new Date).getTime()}var o,s=Array.prototype.slice,u={};o=void 0!==n.g&&n.g.console?n.g.console:"undefined"!=typeof window&&window.console?window.console:{};for(var l=[[function(){},"log"],[function(){o.log.apply(o,arguments)},"info"],[function(){o.log.apply(o,arguments)},"warn"],[function(){o.warn.apply(o,arguments)},"error"],[function(e){u[e]=a()},"time"],[function(e){var t=u[e];if(!t)throw new Error("No such label: "+e);delete u[e];var n=a()-t;o.log(e+": "+n+"ms")},"timeEnd"],[function(){var e=new Error;e.name="Trace",e.message=r.format.apply(null,arguments),o.error(e.stack)},"trace"],[function(e){o.log(r.inspect(e)+"\n")},"dir"],[function(e){if(!e){var t=s.call(arguments,1);i.ok(!1,r.format.apply(null,t))}},"assert"]],c=0;c<l.length;c++){var f=l[c],d=f[0],p=f[1];o[p]||(o[p]=d)}e.exports=o},9959:function(e,t,n){"use strict";var r=n(6328),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),a=Object.prototype.toString,o=Array.prototype.concat,s=Object.defineProperty,u=n(2926)(),l=s&&u,c=function(e,t,n,r){var i;(!(t in e)||"function"==typeof(i=r)&&"[object Function]"===a.call(i)&&r())&&(l?s(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0}):e[t]=n)},f=function(e,t){var n=arguments.length>2?arguments[2]:{},a=r(t);i&&(a=o.call(a,Object.getOwnPropertySymbols(t)));for(var s=0;s<a.length;s+=1)c(e,a[s],t[a[s]],n[a[s]])};f.supportsDescriptors=!!l,e.exports=f},3843:function(e){"use strict";function t(e,t){if(null==e)throw new TypeError("Cannot convert first argument to object");for(var n=Object(e),r=1;r<arguments.length;r++){var i=arguments[r];if(null!=i)for(var a=Object.keys(Object(i)),o=0,s=a.length;o<s;o++){var u=a[o],l=Object.getOwnPropertyDescriptor(i,u);void 0!==l&&l.enumerable&&(n[u]=i[u])}}return n}e.exports={assign:t,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:t})}}},8041:function(e,t,n){"use strict";var r,i=n(8466),a="object"==typeof Reflect?Reflect:null,o=a&&"function"==typeof a.apply?a.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=a&&"function"==typeof a.ownKeys?a.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!=e};function u(){u.init.call(this)}e.exports=u,e.exports.once=function(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,a),r(n)}function a(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}g(e,t,a,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&g(e,"error",t,{once:!0})}(e,i)}))},u.EventEmitter=u,u.prototype._events=void 0,u.prototype._eventsCount=0,u.prototype._maxListeners=void 0;var l=10;function c(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function f(e){return void 0===e._maxListeners?u.defaultMaxListeners:e._maxListeners}function d(e,t,n,r){var a,o,s,u;if(c(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),s=o[t]),void 0===s)s=o[t]=n,++e._eventsCount;else if("function"==typeof s?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(a=f(e))>0&&s.length>a&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,u=l,i&&i.warn&&i.warn(u)}return e}function p(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=p.bind(r);return i.listener=n,r.wrapFn=i,i}function m(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):y(i,i.length)}function v(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function y(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function g(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(a){r.once&&e.removeEventListener(t,i),n(a)}))}}Object.defineProperty(u,"defaultMaxListeners",{enumerable:!0,get:function(){return l},set:function(e){if("number"!=typeof e||e<0||s(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");l=e}}),u.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},u.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||s(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},u.prototype.getMaxListeners=function(){return f(this)},u.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=i[e];if(void 0===u)return!1;if("function"==typeof u)o(u,this,t);else{var l=u.length,c=y(u,l);for(n=0;n<l;++n)o(c[n],this,t)}return!0},u.prototype.addListener=function(e,t){return d(this,e,t,!1)},u.prototype.on=u.prototype.addListener,u.prototype.prependListener=function(e,t){return d(this,e,t,!0)},u.prototype.once=function(e,t){return c(t),this.on(e,h(this,e,t)),this},u.prototype.prependOnceListener=function(e,t){return c(t),this.prependListener(e,h(this,e,t)),this},u.prototype.removeListener=function(e,t){var n,r,i,a,o;if(c(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){o=n[a].listener,i=a;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,o||t)}return this},u.prototype.off=u.prototype.removeListener,u.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,a=Object.keys(n);for(r=0;r<a.length;++r)"removeListener"!==(i=a[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},u.prototype.listeners=function(e){return m(this,e,!0)},u.prototype.rawListeners=function(e){return m(this,e,!1)},u.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):v.call(e,t)},u.prototype.listenerCount=v,u.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},5767:function(e,t,n){"use strict";var r=n(8866),i=Object.prototype.toString,a=Object.prototype.hasOwnProperty,o=function(e,t,n){for(var r=0,i=e.length;r<i;r++)a.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))},s=function(e,t,n){for(var r=0,i=e.length;r<i;r++)null==n?t(e.charAt(r),r,e):t.call(n,e.charAt(r),r,e)},u=function(e,t,n){for(var r in e)a.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))};e.exports=function(e,t,n){if(!r(t))throw new TypeError("iterator must be a function");var a;arguments.length>=3&&(a=n),"[object Array]"===i.call(e)?o(e,t,a):"string"==typeof e?s(e,t,a):u(e,t,a)}},2781:function(e){"use strict";var t="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,r=Object.prototype.toString,i="[object Function]";e.exports=function(e){var a=this;if("function"!=typeof a||r.call(a)!==i)throw new TypeError(t+a);for(var o,s=n.call(arguments,1),u=function(){if(this instanceof o){var t=a.apply(this,s.concat(n.call(arguments)));return Object(t)===t?t:this}return a.apply(e,s.concat(n.call(arguments)))},l=Math.max(0,a.length-s.length),c=[],f=0;f<l;f++)c.push("$"+f);if(o=Function("binder","return function ("+c.join(",")+"){ return binder.apply(this,arguments); }")(u),a.prototype){var d=function(){};d.prototype=a.prototype,o.prototype=new d,d.prototype=null}return o}},1199:function(e,t,n){"use strict";var r=n(2781);e.exports=Function.prototype.bind||r},8476:function(e,t,n){"use strict";var r,i=SyntaxError,a=Function,o=TypeError,s=function(e){try{return a('"use strict"; return ('+e+").constructor;")()}catch(e){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(e){u=null}var l=function(){throw new o},c=u?function(){try{return l}catch(e){try{return u(arguments,"callee").get}catch(e){return l}}}():l,f=n(5520)(),d=Object.getPrototypeOf||function(e){return e.__proto__},p={},h="undefined"==typeof Uint8Array?r:d(Uint8Array),m={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":f?d([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":a,"%GeneratorFunction%":p,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":f?d(d([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&f?d((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&f?d((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f?d(""[Symbol.iterator]()):r,"%Symbol%":f?Symbol:r,"%SyntaxError%":i,"%ThrowTypeError%":c,"%TypedArray%":h,"%TypeError%":o,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet},v=function e(t){var n;if("%AsyncFunction%"===t)n=s("async function () {}");else if("%GeneratorFunction%"===t)n=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=s("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&(n=d(i.prototype))}return m[t]=n,n},y={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},g=n(1199),b=n(7838),w=g.call(Function.call,Array.prototype.concat),x=g.call(Function.apply,Array.prototype.splice),k=g.call(Function.call,String.prototype.replace),_=g.call(Function.call,String.prototype.slice),E=g.call(Function.call,RegExp.prototype.exec),S=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,O=/\\(\\)?/g,A=function(e){var t=_(e,0,1),n=_(e,-1);if("%"===t&&"%"!==n)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var r=[];return k(e,S,(function(e,t,n,i){r[r.length]=n?k(i,O,"$1"):t||e})),r},C=function(e,t){var n,r=e;if(b(y,r)&&(r="%"+(n=y[r])[0]+"%"),b(m,r)){var a=m[r];if(a===p&&(a=v(r)),void 0===a&&!t)throw new o("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:a}}throw new i("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new o('"allowMissing" argument must be a boolean');if(null===E(/^%?[^%]*%?$/,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=A(e),r=n.length>0?n[0]:"",a=C("%"+r+"%",t),s=a.name,l=a.value,c=!1,f=a.alias;f&&(r=f[0],x(n,w([0,1],f)));for(var d=1,p=!0;d<n.length;d+=1){var h=n[d],v=_(h,0,1),y=_(h,-1);if(('"'===v||"'"===v||"`"===v||'"'===y||"'"===y||"`"===y)&&v!==y)throw new i("property names with quotes must have matching quotes");if("constructor"!==h&&p||(c=!0),b(m,s="%"+(r+="."+h)+"%"))l=m[s];else if(null!=l){if(!(h in l)){if(!t)throw new o("base intrinsic for "+e+" exists, but the property is not available.");return}if(u&&d+1>=n.length){var g=u(l,h);l=(p=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:l[h]}else p=b(l,h),l=l[h];p&&!c&&(m[s]=l)}}return l}},2926:function(e,t,n){"use strict";var r=n(8476)("%Object.defineProperty%",!0),i=function(){if(r)try{return r({},"a",{value:1}),!0}catch(e){return!1}return!1};i.hasArrayLengthDefineBug=function(){if(!i())return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},5520:function(e,t,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,i=n(541);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&i()}},541:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},8857:function(e,t,n){"use strict";var r=n(541);e.exports=function(){return r()&&!!Symbol.toStringTag}},7838:function(e,t,n){"use strict";var r=n(1199);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},545:function(e,t){t.read=function(e,t,n,r,i){var a,o,s=8*i-r-1,u=(1<<s)-1,l=u>>1,c=-7,f=n?i-1:0,d=n?-1:1,p=e[t+f];for(f+=d,a=p&(1<<-c)-1,p>>=-c,c+=s;c>0;a=256*a+e[t+f],f+=d,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=r;c>0;o=256*o+e[t+f],f+=d,c-=8);if(0===a)a=1-l;else{if(a===u)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,r),a-=l}return(p?-1:1)*o*Math.pow(2,a-r)},t.write=function(e,t,n,r,i,a){var o,s,u,l=8*a-i-1,c=(1<<l)-1,f=c>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:a-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-o))<1&&(o--,u*=2),(t+=o+f>=1?d/u:d*Math.pow(2,1-f))*u>=2&&(o++,u/=2),o+f>=c?(s=0,o=c):o+f>=1?(s=(t*u-1)*Math.pow(2,i),o+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),o=0));i>=8;e[n+p]=255&s,p+=h,s/=256,i-=8);for(o=o<<i|s,l+=i;l>0;e[n+p]=255&o,p+=h,o/=256,l-=8);e[n+p-h]|=128*m}},273:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},5021:function(e,t,n){"use strict";var r=n(8857)(),i=n(4680)("Object.prototype.toString"),a=function(e){return!(r&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===i(e)},o=function(e){return!!a(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==i(e)&&"[object Function]"===i(e.callee)},s=function(){return a(arguments)}();a.isLegacyArguments=o,e.exports=s?a:o},8866:function(e){"use strict";var t,n,r=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw n}}),n={},i((function(){throw 42}),null,t)}catch(e){e!==n&&(i=null)}else i=null;var a=/^\s*class\b/,o=function(e){try{var t=r.call(e);return a.test(t)}catch(e){return!1}},s=function(e){try{return!o(e)&&(r.call(e),!0)}catch(e){return!1}},u=Object.prototype.toString,l="function"==typeof Symbol&&!!Symbol.toStringTag,c=!(0 in[,]),f=function(){return!1};if("object"==typeof document){var d=document.all;u.call(d)===u.call(document.all)&&(f=function(e){if((c||!e)&&(void 0===e||"object"==typeof e))try{var t=u.call(e);return("[object HTMLAllCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=i?function(e){if(f(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;try{i(e,null,t)}catch(e){if(e!==n)return!1}return!o(e)}:function(e){if(f(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(l)return s(e);if(o(e))return!1;var t=u.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t||s(e)}},7469:function(e,t,n){"use strict";var r,i=Object.prototype.toString,a=Function.prototype.toString,o=/^\s*(?:function)?\*/,s=n(8857)(),u=Object.getPrototypeOf;e.exports=function(e){if("function"!=typeof e)return!1;if(o.test(a.call(e)))return!0;if(!s)return"[object GeneratorFunction]"===i.call(e);if(!u)return!1;if(void 0===r){var t=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch(e){}}();r=!!t&&u(t)}return u(e)===r}},1546:function(e){"use strict";e.exports=function(e){return e!=e}},5738:function(e,t,n){"use strict";var r=n(9962),i=n(9959),a=n(1546),o=n(9221),s=n(5434),u=r(o(),Number);i(u,{getPolyfill:o,implementation:a,shim:s}),e.exports=u},9221:function(e,t,n){"use strict";var r=n(1546);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:r}},5434:function(e,t,n){"use strict";var r=n(9959),i=n(9221);e.exports=function(){var e=i();return r(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},2105:function(e,t,n){"use strict";var r=n(5767),i=n(3645),a=n(4680),o=a("Object.prototype.toString"),s=n(8857)(),u="undefined"==typeof globalThis?n.g:globalThis,l=i(),c=a("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n<e.length;n+=1)if(e[n]===t)return n;return-1},f=a("String.prototype.slice"),d={},p=n(3397),h=Object.getPrototypeOf;s&&p&&h&&r(l,(function(e){var t=new u[e];if(Symbol.toStringTag in t){var n=h(t),r=p(n,Symbol.toStringTag);if(!r){var i=h(n);r=p(i,Symbol.toStringTag)}d[e]=r.get}})),e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!s||!(Symbol.toStringTag in e)){var t=f(o(e),8,-1);return c(l,t)>-1}return!!p&&function(e){var t=!1;return r(d,(function(n,r){if(!t)try{t=n.call(e)===r}catch(e){}})),t}(e)}},4091:function(e){"use strict";var t=function(e){return e!=e};e.exports=function(e,n){return 0===e&&0===n?1/e==1/n:e===n||!(!t(e)||!t(n))}},8199:function(e,t,n){"use strict";var r=n(9959),i=n(9962),a=n(4091),o=n(4584),s=n(8229),u=i(o(),Object);r(u,{getPolyfill:o,implementation:a,shim:s}),e.exports=u},4584:function(e,t,n){"use strict";var r=n(4091);e.exports=function(){return"function"==typeof Object.is?Object.is:r}},8229:function(e,t,n){"use strict";var r=n(4584),i=n(9959);e.exports=function(){var e=r();return i(Object,{is:e},{is:function(){return Object.is!==e}}),e}},2782:function(e,t,n){"use strict";var r;if(!Object.keys){var i=Object.prototype.hasOwnProperty,a=Object.prototype.toString,o=n(2950),s=Object.prototype.propertyIsEnumerable,u=!s.call({toString:null},"toString"),l=s.call((function(){}),"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(e){var t=e.constructor;return t&&t.prototype===e},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!d["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{f(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();r=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===a.call(e),r=o(e),s=t&&"[object String]"===a.call(e),d=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var h=l&&n;if(s&&e.length>0&&!i.call(e,0))for(var m=0;m<e.length;++m)d.push(String(m));if(r&&e.length>0)for(var v=0;v<e.length;++v)d.push(String(v));else for(var y in e)h&&"prototype"===y||!i.call(e,y)||d.push(String(y));if(u)for(var g=function(e){if("undefined"==typeof window||!p)return f(e);try{return f(e)}catch(e){return!1}}(e),b=0;b<c.length;++b)g&&"constructor"===c[b]||!i.call(e,c[b])||d.push(c[b]);return d}}e.exports=r},6328:function(e,t,n){"use strict";var r=Array.prototype.slice,i=n(2950),a=Object.keys,o=a?function(e){return a(e)}:n(2782),s=Object.keys;o.shim=function(){Object.keys?function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)||(Object.keys=function(e){return i(e)?s(r.call(e)):s(e)}):Object.keys=o;return Object.keys||o},e.exports=o},2950:function(e){"use strict";var t=Object.prototype.toString;e.exports=function(e){var n=t.call(e),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),r}},6931:function(e,t){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var i in n)r(n,i)&&(e[i]=n[i])}}return e},t.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){var t,n,r,i,a,o;for(r=0,t=0,n=e.length;t<n;t++)r+=e[t].length;for(o=new Uint8Array(r),i=0,t=0,n=e.length;t<n;t++)a=e[t],o.set(a,i),i+=a.length;return o}},a={arraySet:function(e,t,n,r,i){for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){return[].concat.apply([],e)}};t.setTyped=function(e){e?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,i)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,a))},t.setTyped(n)},3040:function(e){"use strict";e.exports=function(e,t,n,r){for(var i=65535&e|0,a=e>>>16&65535|0,o=0;0!==n;){n-=o=n>2e3?2e3:n;do{a=a+(i=i+t[r++]|0)|0}while(--o);i%=65521,a%=65521}return i|a<<16|0}},7572:function(e){"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},6558:function(e){"use strict";var t=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();e.exports=function(e,n,r,i){var a=t,o=i+r;e^=-1;for(var s=i;s<o;s++)e=e>>>8^a[255&(e^n[s])];return-1^e}},8106:function(e,t,n){"use strict";var r,i=n(6931),a=n(3226),o=n(3040),s=n(6558),u=n(4274),l=-2,c=258,f=262,d=103,p=113,h=666;function m(e,t){return e.msg=u[t],t}function v(e){return(e<<1)-(e>4?9:0)}function y(e){for(var t=e.length;--t>=0;)e[t]=0}function g(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(i.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function b(e,t){a._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,g(e.strm)}function w(e,t){e.pending_buf[e.pending++]=t}function x(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function k(e,t,n,r){var a=e.avail_in;return a>r&&(a=r),0===a?0:(e.avail_in-=a,i.arraySet(t,e.input,e.next_in,a,n),1===e.state.wrap?e.adler=o(e.adler,t,a,n):2===e.state.wrap&&(e.adler=s(e.adler,t,a,n)),e.next_in+=a,e.total_in+=a,a)}function _(e,t){var n,r,i=e.max_chain_length,a=e.strstart,o=e.prev_length,s=e.nice_match,u=e.strstart>e.w_size-f?e.strstart-(e.w_size-f):0,l=e.window,d=e.w_mask,p=e.prev,h=e.strstart+c,m=l[a+o-1],v=l[a+o];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(l[(n=t)+o]===v&&l[n+o-1]===m&&l[n]===l[a]&&l[++n]===l[a+1]){a+=2,n++;do{}while(l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&a<h);if(r=c-(h-a),a=h-c,r>o){if(e.match_start=t,o=r,r>=s)break;m=l[a+o-1],v=l[a+o]}}}while((t=p[t&d])>u&&0!=--i);return o<=e.lookahead?o:e.lookahead}function E(e){var t,n,r,a,o,s=e.w_size;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=s+(s-f)){i.arraySet(e.window,e.window,s,s,0),e.match_start-=s,e.strstart-=s,e.block_start-=s,t=n=e.hash_size;do{r=e.head[--t],e.head[t]=r>=s?r-s:0}while(--n);t=n=s;do{r=e.prev[--t],e.prev[t]=r>=s?r-s:0}while(--n);a+=s}if(0===e.strm.avail_in)break;if(n=k(e.strm,e.window,e.strstart+e.lookahead,a),e.lookahead+=n,e.lookahead+e.insert>=3)for(o=e.strstart-e.insert,e.ins_h=e.window[o],e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+3-1])&e.hash_mask,e.prev[o&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=o,o++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<f&&0!==e.strm.avail_in)}function S(e,t){for(var n,r;;){if(e.lookahead<f){if(E(e),e.lookahead<f&&0===t)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-f&&(e.match_length=_(e,n)),e.match_length>=3)if(r=a._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(b(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,4===t?(b(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(b(e,!1),0===e.strm.avail_out)?1:2}function O(e,t){for(var n,r,i;;){if(e.lookahead<f){if(E(e),e.lookahead<f&&0===t)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-f&&(e.match_length=_(e,n),e.match_length<=5&&(1===e.strategy||3===e.match_length&&e.strstart-e.match_start>4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-3,r=a._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!=--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,r&&(b(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((r=a._tr_tally(e,0,e.window[e.strstart-1]))&&b(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=a._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,4===t?(b(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(b(e,!1),0===e.strm.avail_out)?1:2}function A(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}function C(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(1146),this.dyn_dtree=new i.Buf16(122),this.bl_tree=new i.Buf16(78),y(this.dyn_ltree),y(this.dyn_dtree),y(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(16),this.heap=new i.Buf16(573),y(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(573),y(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function T(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:p,e.adler=2===t.wrap?0:1,t.last_flush=0,a._tr_init(t),0):m(e,l)}function N(e){var t,n=T(e);return 0===n&&((t=e.state).window_size=2*t.w_size,y(t.head),t.max_lazy_match=r[t.level].max_lazy,t.good_match=r[t.level].good_length,t.nice_match=r[t.level].nice_length,t.max_chain_length=r[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0),n}function j(e,t,n,r,a,o){if(!e)return l;var s=1;if(-1===t&&(t=6),r<0?(s=0,r=-r):r>15&&(s=2,r-=16),a<1||a>9||8!==n||r<8||r>15||t<0||t>9||o<0||o>4)return m(e,l);8===r&&(r=9);var u=new C;return e.state=u,u.strm=e,u.wrap=s,u.gzhead=null,u.w_bits=r,u.w_size=1<<u.w_bits,u.w_mask=u.w_size-1,u.hash_bits=a+7,u.hash_size=1<<u.hash_bits,u.hash_mask=u.hash_size-1,u.hash_shift=~~((u.hash_bits+3-1)/3),u.window=new i.Buf8(2*u.w_size),u.head=new i.Buf16(u.hash_size),u.prev=new i.Buf16(u.w_size),u.lit_bufsize=1<<a+6,u.pending_buf_size=4*u.lit_bufsize,u.pending_buf=new i.Buf8(u.pending_buf_size),u.d_buf=1*u.lit_bufsize,u.l_buf=3*u.lit_bufsize,u.level=t,u.strategy=o,u.method=n,N(e)}r=[new A(0,0,0,0,(function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(E(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,b(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-f&&(b(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(b(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(b(e,!1),e.strm.avail_out),1)})),new A(4,4,8,4,S),new A(4,5,16,8,S),new A(4,6,32,32,S),new A(4,4,16,16,O),new A(8,16,32,32,O),new A(8,16,128,128,O),new A(8,32,128,256,O),new A(32,128,258,1024,O),new A(32,258,258,4096,O)],t.deflateInit=function(e,t){return j(e,t,8,15,8,0)},t.deflateInit2=j,t.deflateReset=N,t.deflateResetKeep=T,t.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?l:(e.state.gzhead=t,0):l},t.deflate=function(e,t){var n,i,o,u;if(!e||!e.state||t>5||t<0)return e?m(e,l):l;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||i.status===h&&4!==t)return m(e,0===e.avail_out?-5:l);if(i.strm=e,n=i.last_flush,i.last_flush=t,42===i.status)if(2===i.wrap)e.adler=0,w(i,31),w(i,139),w(i,8),i.gzhead?(w(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),w(i,255&i.gzhead.time),w(i,i.gzhead.time>>8&255),w(i,i.gzhead.time>>16&255),w(i,i.gzhead.time>>24&255),w(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),w(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(w(i,255&i.gzhead.extra.length),w(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(w(i,0),w(i,0),w(i,0),w(i,0),w(i,0),w(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),w(i,3),i.status=p);else{var f=8+(i.w_bits-8<<4)<<8;f|=(i.strategy>=2||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(f|=32),f+=31-f%31,i.status=p,x(i,f),0!==i.strstart&&(x(i,e.adler>>>16),x(i,65535&e.adler)),e.adler=1}if(69===i.status)if(i.gzhead.extra){for(o=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),g(e),o=i.pending,i.pending!==i.pending_buf_size));)w(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),g(e),o=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,w(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),0===u&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),g(e),o=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,w(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),0===u&&(i.status=d)}else i.status=d;if(i.status===d&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&g(e),i.pending+2<=i.pending_buf_size&&(w(i,255&e.adler),w(i,e.adler>>8&255),e.adler=0,i.status=p)):i.status=p),0!==i.pending){if(g(e),0===e.avail_out)return i.last_flush=-1,0}else if(0===e.avail_in&&v(t)<=v(n)&&4!==t)return m(e,-5);if(i.status===h&&0!==e.avail_in)return m(e,-5);if(0!==e.avail_in||0!==i.lookahead||0!==t&&i.status!==h){var k=2===i.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(E(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(b(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(b(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(b(e,!1),0===e.strm.avail_out)?1:2}(i,t):3===i.strategy?function(e,t){for(var n,r,i,o,s=e.window;;){if(e.lookahead<=c){if(E(e),e.lookahead<=c&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(r=s[i=e.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){o=e.strstart+c;do{}while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&i<o);e.match_length=c-(o-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(n=a._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(b(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(b(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(b(e,!1),0===e.strm.avail_out)?1:2}(i,t):r[i.level].func(i,t);if(3!==k&&4!==k||(i.status=h),1===k||3===k)return 0===e.avail_out&&(i.last_flush=-1),0;if(2===k&&(1===t?a._tr_align(i):5!==t&&(a._tr_stored_block(i,0,0,!1),3===t&&(y(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),g(e),0===e.avail_out))return i.last_flush=-1,0}return 4!==t?0:i.wrap<=0?1:(2===i.wrap?(w(i,255&e.adler),w(i,e.adler>>8&255),w(i,e.adler>>16&255),w(i,e.adler>>24&255),w(i,255&e.total_in),w(i,e.total_in>>8&255),w(i,e.total_in>>16&255),w(i,e.total_in>>24&255)):(x(i,e.adler>>>16),x(i,65535&e.adler)),g(e),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?0:1)},t.deflateEnd=function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&t!==d&&t!==p&&t!==h?m(e,l):(e.state=null,t===p?m(e,-3):0):l},t.deflateSetDictionary=function(e,t){var n,r,a,s,u,c,f,d,p=t.length;if(!e||!e.state)return l;if(2===(s=(n=e.state).wrap)||1===s&&42!==n.status||n.lookahead)return l;for(1===s&&(e.adler=o(e.adler,t,p,0)),n.wrap=0,p>=n.w_size&&(0===s&&(y(n.head),n.strstart=0,n.block_start=0,n.insert=0),d=new i.Buf8(n.w_size),i.arraySet(d,t,p-n.w_size,n.w_size,0),t=d,p=n.w_size),u=e.avail_in,c=e.next_in,f=e.input,e.avail_in=p,e.next_in=0,e.input=t,E(n);n.lookahead>=3;){r=n.strstart,a=n.lookahead-2;do{n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+3-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++}while(--a);n.strstart=r,n.lookahead=2,E(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,e.next_in=c,e.input=f,e.avail_in=u,n.wrap=s,0},t.deflateInfo="pako deflate (from Nodeca project)"},6997:function(e){"use strict";e.exports=function(e,t){var n,r,i,a,o,s,u,l,c,f,d,p,h,m,v,y,g,b,w,x,k,_,E,S,O;n=e.state,r=e.next_in,S=e.input,i=r+(e.avail_in-5),a=e.next_out,O=e.output,o=a-(t-e.avail_out),s=a+(e.avail_out-257),u=n.dmax,l=n.wsize,c=n.whave,f=n.wnext,d=n.window,p=n.hold,h=n.bits,m=n.lencode,v=n.distcode,y=(1<<n.lenbits)-1,g=(1<<n.distbits)-1;e:do{h<15&&(p+=S[r++]<<h,h+=8,p+=S[r++]<<h,h+=8),b=m[p&y];t:for(;;){if(p>>>=w=b>>>24,h-=w,0==(w=b>>>16&255))O[a++]=65535&b;else{if(!(16&w)){if(0==(64&w)){b=m[(65535&b)+(p&(1<<w)-1)];continue t}if(32&w){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}x=65535&b,(w&=15)&&(h<w&&(p+=S[r++]<<h,h+=8),x+=p&(1<<w)-1,p>>>=w,h-=w),h<15&&(p+=S[r++]<<h,h+=8,p+=S[r++]<<h,h+=8),b=v[p&g];n:for(;;){if(p>>>=w=b>>>24,h-=w,!(16&(w=b>>>16&255))){if(0==(64&w)){b=v[(65535&b)+(p&(1<<w)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(k=65535&b,h<(w&=15)&&(p+=S[r++]<<h,(h+=8)<w&&(p+=S[r++]<<h,h+=8)),(k+=p&(1<<w)-1)>u){e.msg="invalid distance too far back",n.mode=30;break e}if(p>>>=w,h-=w,k>(w=a-o)){if((w=k-w)>c&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(_=0,E=d,0===f){if(_+=l-w,w<x){x-=w;do{O[a++]=d[_++]}while(--w);_=a-k,E=O}}else if(f<w){if(_+=l+f-w,(w-=f)<x){x-=w;do{O[a++]=d[_++]}while(--w);if(_=0,f<x){x-=w=f;do{O[a++]=d[_++]}while(--w);_=a-k,E=O}}}else if(_+=f-w,w<x){x-=w;do{O[a++]=d[_++]}while(--w);_=a-k,E=O}for(;x>2;)O[a++]=E[_++],O[a++]=E[_++],O[a++]=E[_++],x-=3;x&&(O[a++]=E[_++],x>1&&(O[a++]=E[_++]))}else{_=a-k;do{O[a++]=O[_++],O[a++]=O[_++],O[a++]=O[_++],x-=3}while(x>2);x&&(O[a++]=O[_++],x>1&&(O[a++]=O[_++]))}break}}break}}while(r<i&&a<s);r-=x=h>>3,p&=(1<<(h-=x<<3))-1,e.next_in=r,e.next_out=a,e.avail_in=r<i?i-r+5:5-(r-i),e.avail_out=a<s?s-a+257:257-(a-s),n.hold=p,n.bits=h}},1833:function(e,t,n){"use strict";var r=n(6931),i=n(3040),a=n(6558),o=n(6997),s=n(3443),u=-2,l=12,c=30;function f(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function d(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function p(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32(852),t.distcode=t.distdyn=new r.Buf32(592),t.sane=1,t.back=-1,0):u}function h(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,p(e)):u}function m(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?u:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,h(e))):u}function v(e,t){var n,r;return e?(r=new d,e.state=r,r.window=null,0!==(n=m(e,t))&&(e.state=null),n):u}var y,g,b=!0;function w(e){if(b){var t;for(y=new r.Buf32(512),g=new r.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(1,e.lens,0,288,y,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(2,e.lens,0,32,g,0,e.work,{bits:5}),b=!1}e.lencode=y,e.lenbits=9,e.distcode=g,e.distbits=5}function x(e,t,n,i){var a,o=e.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new r.Buf8(o.wsize)),i>=o.wsize?(r.arraySet(o.window,t,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):((a=o.wsize-o.wnext)>i&&(a=i),r.arraySet(o.window,t,n-i,a,o.wnext),(i-=a)?(r.arraySet(o.window,t,n-i,i,0),o.wnext=i,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=a))),0}t.inflateReset=h,t.inflateReset2=m,t.inflateResetKeep=p,t.inflateInit=function(e){return v(e,15)},t.inflateInit2=v,t.inflate=function(e,t){var n,d,p,h,m,v,y,g,b,k,_,E,S,O,A,C,T,N,j,P,R,I,L,M,B=0,D=new r.Buf8(4),U=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return u;(n=e.state).mode===l&&(n.mode=13),m=e.next_out,p=e.output,y=e.avail_out,h=e.next_in,d=e.input,v=e.avail_in,g=n.hold,b=n.bits,k=v,_=y,I=0;e:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;b<16;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}if(2&n.wrap&&35615===g){n.check=0,D[0]=255&g,D[1]=g>>>8&255,n.check=a(n.check,D,2,0),g=0,b=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&g)<<8)+(g>>8))%31){e.msg="incorrect header check",n.mode=c;break}if(8!=(15&g)){e.msg="unknown compression method",n.mode=c;break}if(b-=4,R=8+(15&(g>>>=4)),0===n.wbits)n.wbits=R;else if(R>n.wbits){e.msg="invalid window size",n.mode=c;break}n.dmax=1<<R,e.adler=n.check=1,n.mode=512&g?10:l,g=0,b=0;break;case 2:for(;b<16;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}if(n.flags=g,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=c;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=c;break}n.head&&(n.head.text=g>>8&1),512&n.flags&&(D[0]=255&g,D[1]=g>>>8&255,n.check=a(n.check,D,2,0)),g=0,b=0,n.mode=3;case 3:for(;b<32;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}n.head&&(n.head.time=g),512&n.flags&&(D[0]=255&g,D[1]=g>>>8&255,D[2]=g>>>16&255,D[3]=g>>>24&255,n.check=a(n.check,D,4,0)),g=0,b=0,n.mode=4;case 4:for(;b<16;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}n.head&&(n.head.xflags=255&g,n.head.os=g>>8),512&n.flags&&(D[0]=255&g,D[1]=g>>>8&255,n.check=a(n.check,D,2,0)),g=0,b=0,n.mode=5;case 5:if(1024&n.flags){for(;b<16;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}n.length=g,n.head&&(n.head.extra_len=g),512&n.flags&&(D[0]=255&g,D[1]=g>>>8&255,n.check=a(n.check,D,2,0)),g=0,b=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((E=n.length)>v&&(E=v),E&&(n.head&&(R=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,d,h,E,R)),512&n.flags&&(n.check=a(n.check,d,E,h)),v-=E,h+=E,n.length-=E),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===v)break e;E=0;do{R=d[h+E++],n.head&&R&&n.length<65536&&(n.head.name+=String.fromCharCode(R))}while(R&&E<v);if(512&n.flags&&(n.check=a(n.check,d,E,h)),v-=E,h+=E,R)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===v)break e;E=0;do{R=d[h+E++],n.head&&R&&n.length<65536&&(n.head.comment+=String.fromCharCode(R))}while(R&&E<v);if(512&n.flags&&(n.check=a(n.check,d,E,h)),v-=E,h+=E,R)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;b<16;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}if(g!==(65535&n.check)){e.msg="header crc mismatch",n.mode=c;break}g=0,b=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=l;break;case 10:for(;b<32;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}e.adler=n.check=f(g),g=0,b=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=m,e.avail_out=y,e.next_in=h,e.avail_in=v,n.hold=g,n.bits=b,2;e.adler=n.check=1,n.mode=l;case l:if(5===t||6===t)break e;case 13:if(n.last){g>>>=7&b,b-=7&b,n.mode=27;break}for(;b<3;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}switch(n.last=1&g,b-=1,3&(g>>>=1)){case 0:n.mode=14;break;case 1:if(w(n),n.mode=20,6===t){g>>>=2,b-=2;break e}break;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=c}g>>>=2,b-=2;break;case 14:for(g>>>=7&b,b-=7&b;b<32;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}if((65535&g)!=(g>>>16^65535)){e.msg="invalid stored block lengths",n.mode=c;break}if(n.length=65535&g,g=0,b=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(E=n.length){if(E>v&&(E=v),E>y&&(E=y),0===E)break e;r.arraySet(p,d,h,E,m),v-=E,h+=E,y-=E,m+=E,n.length-=E;break}n.mode=l;break;case 17:for(;b<14;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}if(n.nlen=257+(31&g),g>>>=5,b-=5,n.ndist=1+(31&g),g>>>=5,b-=5,n.ncode=4+(15&g),g>>>=4,b-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=c;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;b<3;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}n.lens[U[n.have++]]=7&g,g>>>=3,b-=3}for(;n.have<19;)n.lens[U[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,L={bits:n.lenbits},I=s(0,n.lens,0,19,n.lencode,0,n.work,L),n.lenbits=L.bits,I){e.msg="invalid code lengths set",n.mode=c;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;C=(B=n.lencode[g&(1<<n.lenbits)-1])>>>16&255,T=65535&B,!((A=B>>>24)<=b);){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}if(T<16)g>>>=A,b-=A,n.lens[n.have++]=T;else{if(16===T){for(M=A+2;b<M;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}if(g>>>=A,b-=A,0===n.have){e.msg="invalid bit length repeat",n.mode=c;break}R=n.lens[n.have-1],E=3+(3&g),g>>>=2,b-=2}else if(17===T){for(M=A+3;b<M;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}b-=A,R=0,E=3+(7&(g>>>=A)),g>>>=3,b-=3}else{for(M=A+7;b<M;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}b-=A,R=0,E=11+(127&(g>>>=A)),g>>>=7,b-=7}if(n.have+E>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=c;break}for(;E--;)n.lens[n.have++]=R}}if(n.mode===c)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=c;break}if(n.lenbits=9,L={bits:n.lenbits},I=s(1,n.lens,0,n.nlen,n.lencode,0,n.work,L),n.lenbits=L.bits,I){e.msg="invalid literal/lengths set",n.mode=c;break}if(n.distbits=6,n.distcode=n.distdyn,L={bits:n.distbits},I=s(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,L),n.distbits=L.bits,I){e.msg="invalid distances set",n.mode=c;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(v>=6&&y>=258){e.next_out=m,e.avail_out=y,e.next_in=h,e.avail_in=v,n.hold=g,n.bits=b,o(e,_),m=e.next_out,p=e.output,y=e.avail_out,h=e.next_in,d=e.input,v=e.avail_in,g=n.hold,b=n.bits,n.mode===l&&(n.back=-1);break}for(n.back=0;C=(B=n.lencode[g&(1<<n.lenbits)-1])>>>16&255,T=65535&B,!((A=B>>>24)<=b);){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}if(C&&0==(240&C)){for(N=A,j=C,P=T;C=(B=n.lencode[P+((g&(1<<N+j)-1)>>N)])>>>16&255,T=65535&B,!(N+(A=B>>>24)<=b);){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}g>>>=N,b-=N,n.back+=N}if(g>>>=A,b-=A,n.back+=A,n.length=T,0===C){n.mode=26;break}if(32&C){n.back=-1,n.mode=l;break}if(64&C){e.msg="invalid literal/length code",n.mode=c;break}n.extra=15&C,n.mode=22;case 22:if(n.extra){for(M=n.extra;b<M;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}n.length+=g&(1<<n.extra)-1,g>>>=n.extra,b-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;C=(B=n.distcode[g&(1<<n.distbits)-1])>>>16&255,T=65535&B,!((A=B>>>24)<=b);){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}if(0==(240&C)){for(N=A,j=C,P=T;C=(B=n.distcode[P+((g&(1<<N+j)-1)>>N)])>>>16&255,T=65535&B,!(N+(A=B>>>24)<=b);){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}g>>>=N,b-=N,n.back+=N}if(g>>>=A,b-=A,n.back+=A,64&C){e.msg="invalid distance code",n.mode=c;break}n.offset=T,n.extra=15&C,n.mode=24;case 24:if(n.extra){for(M=n.extra;b<M;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}n.offset+=g&(1<<n.extra)-1,g>>>=n.extra,b-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=c;break}n.mode=25;case 25:if(0===y)break e;if(E=_-y,n.offset>E){if((E=n.offset-E)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=c;break}E>n.wnext?(E-=n.wnext,S=n.wsize-E):S=n.wnext-E,E>n.length&&(E=n.length),O=n.window}else O=p,S=m-n.offset,E=n.length;E>y&&(E=y),y-=E,n.length-=E;do{p[m++]=O[S++]}while(--E);0===n.length&&(n.mode=21);break;case 26:if(0===y)break e;p[m++]=n.length,y--,n.mode=21;break;case 27:if(n.wrap){for(;b<32;){if(0===v)break e;v--,g|=d[h++]<<b,b+=8}if(_-=y,e.total_out+=_,n.total+=_,_&&(e.adler=n.check=n.flags?a(n.check,p,_,m-_):i(n.check,p,_,m-_)),_=y,(n.flags?g:f(g))!==n.check){e.msg="incorrect data check",n.mode=c;break}g=0,b=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;b<32;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}if(g!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=c;break}g=0,b=0}n.mode=29;case 29:I=1;break e;case c:I=-3;break e;case 31:return-4;default:return u}return e.next_out=m,e.avail_out=y,e.next_in=h,e.avail_in=v,n.hold=g,n.bits=b,(n.wsize||_!==e.avail_out&&n.mode<c&&(n.mode<27||4!==t))&&x(e,e.output,e.next_out,_-e.avail_out)?(n.mode=31,-4):(k-=e.avail_in,_-=e.avail_out,e.total_in+=k,e.total_out+=_,n.total+=_,n.wrap&&_&&(e.adler=n.check=n.flags?a(n.check,p,_,e.next_out-_):i(n.check,p,_,e.next_out-_)),e.data_type=n.bits+(n.last?64:0)+(n.mode===l?128:0)+(20===n.mode||15===n.mode?256:0),(0===k&&0===_||4===t)&&0===I&&(I=-5),I)},t.inflateEnd=function(e){if(!e||!e.state)return u;var t=e.state;return t.window&&(t.window=null),e.state=null,0},t.inflateGetHeader=function(e,t){var n;return e&&e.state?0==(2&(n=e.state).wrap)?u:(n.head=t,t.done=!1,0):u},t.inflateSetDictionary=function(e,t){var n,r=t.length;return e&&e.state?0!==(n=e.state).wrap&&11!==n.mode?u:11===n.mode&&i(1,t,r,0)!==n.check?-3:x(e,t,r,r)?(n.mode=31,-4):(n.havedict=1,0):u},t.inflateInfo="pako inflate (from Nodeca project)"},3443:function(e,t,n){"use strict";var r=n(6931),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],o=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(e,t,n,u,l,c,f,d){var p,h,m,v,y,g,b,w,x,k=d.bits,_=0,E=0,S=0,O=0,A=0,C=0,T=0,N=0,j=0,P=0,R=null,I=0,L=new r.Buf16(16),M=new r.Buf16(16),B=null,D=0;for(_=0;_<=15;_++)L[_]=0;for(E=0;E<u;E++)L[t[n+E]]++;for(A=k,O=15;O>=1&&0===L[O];O--);if(A>O&&(A=O),0===O)return l[c++]=20971520,l[c++]=20971520,d.bits=1,0;for(S=1;S<O&&0===L[S];S++);for(A<S&&(A=S),N=1,_=1;_<=15;_++)if(N<<=1,(N-=L[_])<0)return-1;if(N>0&&(0===e||1!==O))return-1;for(M[1]=0,_=1;_<15;_++)M[_+1]=M[_]+L[_];for(E=0;E<u;E++)0!==t[n+E]&&(f[M[t[n+E]]++]=E);if(0===e?(R=B=f,g=19):1===e?(R=i,I-=257,B=a,D-=257,g=256):(R=o,B=s,g=-1),P=0,E=0,_=S,y=c,C=A,T=0,m=-1,v=(j=1<<A)-1,1===e&&j>852||2===e&&j>592)return 1;for(;;){b=_-T,f[E]<g?(w=0,x=f[E]):f[E]>g?(w=B[D+f[E]],x=R[I+f[E]]):(w=96,x=0),p=1<<_-T,S=h=1<<C;do{l[y+(P>>T)+(h-=p)]=b<<24|w<<16|x|0}while(0!==h);for(p=1<<_-1;P&p;)p>>=1;if(0!==p?(P&=p-1,P+=p):P=0,E++,0==--L[_]){if(_===O)break;_=t[n+f[E]]}if(_>A&&(P&v)!==m){for(0===T&&(T=A),y+=S,N=1<<(C=_-T);C+T<O&&!((N-=L[C+T])<=0);)C++,N<<=1;if(j+=1<<C,1===e&&j>852||2===e&&j>592)return 1;l[m=P&v]=A<<24|C<<16|y-c|0}}return 0!==P&&(l[y+P]=_-T<<24|64<<16|0),d.bits=A,0}},4274:function(e){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},3226:function(e,t,n){"use strict";var r=n(6931);function i(e){for(var t=e.length;--t>=0;)e[t]=0}var a=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],o=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],u=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],l=new Array(576);i(l);var c=new Array(60);i(c);var f=new Array(512);i(f);var d=new Array(256);i(d);var p=new Array(29);i(p);var h,m,v,y=new Array(30);function g(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function b(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function w(e){return e<256?f[e]:f[256+(e>>>7)]}function x(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function k(e,t,n){e.bi_valid>16-n?(e.bi_buf|=t<<e.bi_valid&65535,x(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function _(e,t,n){k(e,n[2*t],n[2*t+1])}function E(e,t){var n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}function S(e,t,n){var r,i,a=new Array(16),o=0;for(r=1;r<=15;r++)a[r]=o=o+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=E(a[s]++,s))}}function O(e){var t;for(t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function A(e){e.bi_valid>8?x(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function C(e,t,n,r){var i=2*t,a=2*n;return e[i]<e[a]||e[i]===e[a]&&r[t]<=r[n]}function T(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&C(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!C(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r}function N(e,t,n){var r,i,s,u,l=0;if(0!==e.last_lit)do{r=e.pending_buf[e.d_buf+2*l]<<8|e.pending_buf[e.d_buf+2*l+1],i=e.pending_buf[e.l_buf+l],l++,0===r?_(e,i,t):(_(e,(s=d[i])+256+1,t),0!==(u=a[s])&&k(e,i-=p[s],u),_(e,s=w(--r),n),0!==(u=o[s])&&k(e,r-=y[s],u))}while(l<e.last_lit);_(e,256,t)}function j(e,t){var n,r,i,a=t.dyn_tree,o=t.stat_desc.static_tree,s=t.stat_desc.has_stree,u=t.stat_desc.elems,l=-1;for(e.heap_len=0,e.heap_max=573,n=0;n<u;n++)0!==a[2*n]?(e.heap[++e.heap_len]=l=n,e.depth[n]=0):a[2*n+1]=0;for(;e.heap_len<2;)a[2*(i=e.heap[++e.heap_len]=l<2?++l:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=o[2*i+1]);for(t.max_code=l,n=e.heap_len>>1;n>=1;n--)T(e,a,n);i=u;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],T(e,a,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,a[2*i]=a[2*n]+a[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,a[2*n+1]=a[2*r+1]=i,e.heap[1]=i++,T(e,a,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,a,o,s,u=t.dyn_tree,l=t.max_code,c=t.stat_desc.static_tree,f=t.stat_desc.has_stree,d=t.stat_desc.extra_bits,p=t.stat_desc.extra_base,h=t.stat_desc.max_length,m=0;for(a=0;a<=15;a++)e.bl_count[a]=0;for(u[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<573;n++)(a=u[2*u[2*(r=e.heap[n])+1]+1]+1)>h&&(a=h,m++),u[2*r+1]=a,r>l||(e.bl_count[a]++,o=0,r>=p&&(o=d[r-p]),s=u[2*r],e.opt_len+=s*(a+o),f&&(e.static_len+=s*(c[2*r+1]+o)));if(0!==m){do{for(a=h-1;0===e.bl_count[a];)a--;e.bl_count[a]--,e.bl_count[a+1]+=2,e.bl_count[h]--,m-=2}while(m>0);for(a=h;0!==a;a--)for(r=e.bl_count[a];0!==r;)(i=e.heap[--n])>l||(u[2*i+1]!==a&&(e.opt_len+=(a-u[2*i+1])*u[2*i],u[2*i+1]=a),r--)}}(e,t),S(a,l,e.bl_count)}function P(e,t,n){var r,i,a=-1,o=t[1],s=0,u=7,l=4;for(0===o&&(u=138,l=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=o,o=t[2*(r+1)+1],++s<u&&i===o||(s<l?e.bl_tree[2*i]+=s:0!==i?(i!==a&&e.bl_tree[2*i]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,s=0,a=i,0===o?(u=138,l=3):i===o?(u=6,l=3):(u=7,l=4))}function R(e,t,n){var r,i,a=-1,o=t[1],s=0,u=7,l=4;for(0===o&&(u=138,l=3),r=0;r<=n;r++)if(i=o,o=t[2*(r+1)+1],!(++s<u&&i===o)){if(s<l)do{_(e,i,e.bl_tree)}while(0!=--s);else 0!==i?(i!==a&&(_(e,i,e.bl_tree),s--),_(e,16,e.bl_tree),k(e,s-3,2)):s<=10?(_(e,17,e.bl_tree),k(e,s-3,3)):(_(e,18,e.bl_tree),k(e,s-11,7));s=0,a=i,0===o?(u=138,l=3):i===o?(u=6,l=3):(u=7,l=4)}}i(y);var I=!1;function L(e,t,n,i){k(e,0+(i?1:0),3),function(e,t,n,i){A(e),x(e,n),x(e,~n),r.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}(e,t,n)}t._tr_init=function(e){I||(function(){var e,t,n,r,i,u=new Array(16);for(n=0,r=0;r<28;r++)for(p[r]=n,e=0;e<1<<a[r];e++)d[n++]=r;for(d[n-1]=r,i=0,r=0;r<16;r++)for(y[r]=i,e=0;e<1<<o[r];e++)f[i++]=r;for(i>>=7;r<30;r++)for(y[r]=i<<7,e=0;e<1<<o[r]-7;e++)f[256+i++]=r;for(t=0;t<=15;t++)u[t]=0;for(e=0;e<=143;)l[2*e+1]=8,e++,u[8]++;for(;e<=255;)l[2*e+1]=9,e++,u[9]++;for(;e<=279;)l[2*e+1]=7,e++,u[7]++;for(;e<=287;)l[2*e+1]=8,e++,u[8]++;for(S(l,287,u),e=0;e<30;e++)c[2*e+1]=5,c[2*e]=E(e,5);h=new g(l,a,257,286,15),m=new g(c,o,0,30,15),v=new g(new Array(0),s,0,19,7)}(),I=!0),e.l_desc=new b(e.dyn_ltree,h),e.d_desc=new b(e.dyn_dtree,m),e.bl_desc=new b(e.bl_tree,v),e.bi_buf=0,e.bi_valid=0,O(e)},t._tr_stored_block=L,t._tr_flush_block=function(e,t,n,r){var i,a,o=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<256;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),j(e,e.l_desc),j(e,e.d_desc),o=function(e){var t;for(P(e,e.dyn_ltree,e.l_desc.max_code),P(e,e.dyn_dtree,e.d_desc.max_code),j(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*u[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(a=e.static_len+3+7>>>3)<=i&&(i=a)):i=a=n+5,n+4<=i&&-1!==t?L(e,t,n,r):4===e.strategy||a===i?(k(e,2+(r?1:0),3),N(e,l,c)):(k(e,4+(r?1:0),3),function(e,t,n,r){var i;for(k(e,t-257,5),k(e,n-1,5),k(e,r-4,4),i=0;i<r;i++)k(e,e.bl_tree[2*u[i]+1],3);R(e,e.dyn_ltree,t-1),R(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),N(e,e.dyn_ltree,e.dyn_dtree)),O(e),r&&A(e)},t._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(d[n]+256+1)]++,e.dyn_dtree[2*w(t)]++),e.last_lit===e.lit_bufsize-1},t._tr_align=function(e){k(e,2,3),_(e,256,l),function(e){16===e.bi_valid?(x(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},400:function(e){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},7490:function(e){var t,n,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function o(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var s,u=[],l=!1,c=-1;function f(){l&&s&&(l=!1,s.length?u=s.concat(u):c=-1,u.length&&d())}function d(){if(!l){var e=o(f);l=!0;for(var t=u.length;t;){for(s=u,u=[];++c<t;)s&&s[c].run();c=-1,t=u.length}s=null,l=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new p(e,t)),1!==u.length||l||o(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=h,r.addListener=h,r.once=h,r.off=h,r.removeListener=h,r.removeAllListeners=h,r.emit=h,r.prependListener=h,r.prependOnceListener=h,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},1729:function(e,t,n){"use strict";var r=n(9165);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,a,o){if(o!==r){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 t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:i};return n.PropTypes=n,n}},5192:function(e,t,n){e.exports=n(1729)()},9165:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},1092:function(e){"use strict";var t={};function n(e,n,r){r||(r=Error);var i=function(e){var t,r;function i(t,r,i){return e.call(this,function(e,t,r){return"string"==typeof n?n:n(e,t,r)}(t,r,i))||this}return r=e,(t=i).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r,i}(r);i.prototype.name=r.name,i.prototype.code=e,t[e]=i}function r(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(e){return String(e)})),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}n("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),n("ERR_INVALID_ARG_TYPE",(function(e,t,n){var i,a,o;if("string"==typeof t&&(a="not ",t.substr(0,a.length)===a)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))o="The ".concat(e," ").concat(i," ").concat(r(t,"type"));else{var s=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+".".length>e.length)&&-1!==e.indexOf(".",n)}(e)?"property":"argument";o='The "'.concat(e,'" ').concat(s," ").concat(i," ").concat(r(t,"type"))}return o+". Received type ".concat(typeof n)}),TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},6085:function(e,t,n){"use strict";var r=n(7490),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=c;var a=n(6405),o=n(7423);n(273)(c,a);for(var s=i(o.prototype),u=0;u<s.length;u++){var l=s[u];c.prototype[l]||(c.prototype[l]=o.prototype[l])}function c(e){if(!(this instanceof c))return new c(e);a.call(this,e),o.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",f)))}function f(){this._writableState.ended||r.nextTick(d,this)}function d(e){e.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},9543:function(e,t,n){"use strict";e.exports=i;var r=n(4917);function i(e){if(!(this instanceof i))return new i(e);r.call(this,e)}n(273)(i,r),i.prototype._transform=function(e,t,n){n(null,e)}},6405:function(e,t,n){"use strict";var r,i=n(7490);e.exports=S,S.ReadableState=E,n(8041).EventEmitter;var a,o=function(e,t){return e.listeners(t).length},s=n(8747),u=n(918).Buffer,l=n.g.Uint8Array||function(){},c=n(4616);a=c&&c.debuglog?c.debuglog("stream"):function(){};var f,d,p,h=n(5489),m=n(6617),v=n(5999).getHighWaterMark,y=n(1092).q,g=y.ERR_INVALID_ARG_TYPE,b=y.ERR_STREAM_PUSH_AFTER_EOF,w=y.ERR_METHOD_NOT_IMPLEMENTED,x=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(273)(S,s);var k=m.errorOrDestroy,_=["error","close","destroy","pause","resume"];function E(e,t,i){r=r||n(6085),e=e||{},"boolean"!=typeof i&&(i=t instanceof r),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=v(this,e,"readableHighWaterMark",i),this.buffer=new h,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(f||(f=n(8570).s),this.decoder=new f(e.encoding),this.encoding=e.encoding)}function S(e){if(r=r||n(6085),!(this instanceof S))return new S(e);var t=this instanceof r;this._readableState=new E(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),s.call(this)}function O(e,t,n,r,i){a("readableAddChunk",t);var o,s=e._readableState;if(null===t)s.reading=!1,function(e,t){if(a("onEofChunk"),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?N(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,j(e)))}}(e,s);else if(i||(o=function(e,t){var n,r;return r=t,u.isBuffer(r)||r instanceof l||"string"==typeof t||void 0===t||e.objectMode||(n=new g("chunk",["string","Buffer","Uint8Array"],t)),n}(s,t)),o)k(e,o);else if(s.objectMode||t&&t.length>0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),r)s.endEmitted?k(e,new x):A(e,s,t,!0);else if(s.ended)k(e,new b);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!n?(t=s.decoder.write(t),s.objectMode||0!==t.length?A(e,s,t,!1):P(e,s)):A(e,s,t,!1)}else r||(s.reading=!1,P(e,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function A(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&N(e)),P(e,t)}Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),S.prototype.destroy=m.destroy,S.prototype._undestroy=m.undestroy,S.prototype._destroy=function(e,t){t(e)},S.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=u.from(e,t),t=""),n=!0),O(this,e,t,!1,n)},S.prototype.unshift=function(e){return O(this,e,null,!0,!1)},S.prototype.isPaused=function(){return!1===this._readableState.flowing},S.prototype.setEncoding=function(e){f||(f=n(8570).s);var t=new f(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";null!==r;)i+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var C=1073741824;function T(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=C?e=C:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function N(e){var t=e._readableState;a("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(a("emitReadable",t.flowing),t.emittedReadable=!0,i.nextTick(j,e))}function j(e){var t=e._readableState;a("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,B(e)}function P(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(R,e,t))}function R(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var n=t.length;if(a("maybeReadMore read 0"),e.read(0),n===t.length)break}t.readingMore=!1}function I(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function L(e){a("readable nexttick read 0"),e.read(0)}function M(e,t){a("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),B(e),t.flowing&&!t.reading&&e.read(0)}function B(e){var t=e._readableState;for(a("flow",t.flowing);t.flowing&&null!==e.read(););}function D(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function U(e){var t=e._readableState;a("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,i.nextTick(F,t,e))}function F(e,t){if(a("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function z(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}S.prototype.read=function(e){a("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return a("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?U(this):N(this),null;if(0===(e=T(e,t))&&t.ended)return 0===t.length&&U(this),null;var r,i=t.needReadable;return a("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&a("length less than watermark",i=!0),t.ended||t.reading?a("reading or ended",i=!1):i&&(a("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=T(n,t))),null===(r=e>0?D(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&U(this)),null!==r&&this.emit("data",r),r},S.prototype._read=function(e){k(this,new w("_read()"))},S.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e)}r.pipesCount+=1,a("pipe count=%d opts=%j",r.pipesCount,t);var s=t&&!1===t.end||e===i.stdout||e===i.stderr?m:u;function u(){a("onend"),e.end()}r.endEmitted?i.nextTick(s):n.once("end",s),e.on("unpipe",(function t(i,o){a("onunpipe"),i===n&&o&&!1===o.hasUnpiped&&(o.hasUnpiped=!0,a("cleanup"),e.removeListener("close",p),e.removeListener("finish",h),e.removeListener("drain",l),e.removeListener("error",d),e.removeListener("unpipe",t),n.removeListener("end",u),n.removeListener("end",m),n.removeListener("data",f),c=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||l())}));var l=function(e){return function(){var t=e._readableState;a("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,B(e))}}(n);e.on("drain",l);var c=!1;function f(t){a("ondata");var i=e.write(t);a("dest.write",i),!1===i&&((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==z(r.pipes,e))&&!c&&(a("false write response, pause",r.awaitDrain),r.awaitDrain++),n.pause())}function d(t){a("onerror",t),m(),e.removeListener("error",d),0===o(e,"error")&&k(e,t)}function p(){e.removeListener("finish",h),m()}function h(){a("onfinish"),e.removeListener("close",p),m()}function m(){a("unpipe"),n.unpipe(e)}return n.on("data",f),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",d),e.once("close",p),e.once("finish",h),e.emit("pipe",n),r.flowing||(a("pipe resume"),n.resume()),e},S.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<i;a++)r[a].emit("unpipe",this,{hasUnpiped:!1});return this}var o=z(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},S.prototype.on=function(e,t){var n=s.prototype.on.call(this,e,t),r=this._readableState;return"data"===e?(r.readableListening=this.listenerCount("readable")>0,!1!==r.flowing&&this.resume()):"readable"===e&&(r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,a("on readable",r.length,r.reading),r.length?N(this):r.reading||i.nextTick(L,this))),n},S.prototype.addListener=S.prototype.on,S.prototype.removeListener=function(e,t){var n=s.prototype.removeListener.call(this,e,t);return"readable"===e&&i.nextTick(I,this),n},S.prototype.removeAllListeners=function(e){var t=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||i.nextTick(I,this),t},S.prototype.resume=function(){var e=this._readableState;return e.flowing||(a("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(M,e,t))}(this,e)),e.paused=!1,this},S.prototype.pause=function(){return a("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(a("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},S.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",(function(){if(a("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){a("wrapped data"),n.decoder&&(i=n.decoder.write(i)),(!n.objectMode||null!=i)&&(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<_.length;o++)e.on(_[o],this.emit.bind(this,_[o]));return this._read=function(t){a("wrapped _read",t),r&&(r=!1,e.resume())},this},"function"==typeof Symbol&&(S.prototype[Symbol.asyncIterator]=function(){return void 0===d&&(d=n(1218)),d(this)}),Object.defineProperty(S.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(S.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(S.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),S._fromList=D,Object.defineProperty(S.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(S.from=function(e,t){return void 0===p&&(p=n(7670)),p(S,e,t)})},4917:function(e,t,n){"use strict";e.exports=c;var r=n(1092).q,i=r.ERR_METHOD_NOT_IMPLEMENTED,a=r.ERR_MULTIPLE_CALLBACK,o=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=r.ERR_TRANSFORM_WITH_LENGTH_0,u=n(6085);function l(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(null===r)return this.emit("error",new a);n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function c(e){if(!(this instanceof c))return new c(e);u.call(this,e),this._transformState={afterTransform:l.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",f)}function f(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush((function(t,n){d(e,t,n)}))}function d(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new s;if(e._transformState.transforming)throw new o;return e.push(null)}n(273)(c,u),c.prototype.push=function(e,t){return this._transformState.needTransform=!1,u.prototype.push.call(this,e,t)},c.prototype._transform=function(e,t,n){n(new i("_transform()"))},c.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},c.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},c.prototype._destroy=function(e,t){u.prototype._destroy.call(this,e,(function(e){t(e)}))}},7423:function(e,t,n){"use strict";var r,i=n(7490);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;for(e.entry=null;r;){var i=r.callback;t.pendingcb--,i(undefined),r=r.next}t.corkedRequestsFree.next=e}(t,e)}}e.exports=S,S.WritableState=E;var o,s={deprecate:n(9043)},u=n(8747),l=n(918).Buffer,c=n.g.Uint8Array||function(){},f=n(6617),d=n(5999).getHighWaterMark,p=n(1092).q,h=p.ERR_INVALID_ARG_TYPE,m=p.ERR_METHOD_NOT_IMPLEMENTED,v=p.ERR_MULTIPLE_CALLBACK,y=p.ERR_STREAM_CANNOT_PIPE,g=p.ERR_STREAM_DESTROYED,b=p.ERR_STREAM_NULL_VALUES,w=p.ERR_STREAM_WRITE_AFTER_END,x=p.ERR_UNKNOWN_ENCODING,k=f.errorOrDestroy;function _(){}function E(e,t,o){r=r||n(6085),e=e||{},"boolean"!=typeof o&&(o=t instanceof r),this.objectMode=!!e.objectMode,o&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=d(this,e,"writableHighWaterMark",o),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,a=n.writecb;if("function"!=typeof a)throw new v;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,a){--t.pendingcb,n?(i.nextTick(a,r),i.nextTick(j,e,t),e._writableState.errorEmitted=!0,k(e,r)):(a(r),e._writableState.errorEmitted=!0,k(e,r),j(e,t))}(e,n,r,t,a);else{var o=T(n)||e.destroyed;o||n.corked||n.bufferProcessing||!n.bufferedRequest||C(e,n),r?i.nextTick(A,e,n,o,a):A(e,n,o,a)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function S(e){var t=this instanceof(r=r||n(6085));if(!t&&!o.call(S,this))return new S(e);this._writableState=new E(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),u.call(this)}function O(e,t,n,r,i,a,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new g("write")):n?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function A(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),j(e,t)}function C(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),o=t.corkedRequestsFree;o.entry=n;for(var s=0,u=!0;n;)i[s]=n,n.isBuf||(u=!1),n=n.next,s+=1;i.allBuffers=u,O(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;n;){var l=n.chunk,c=n.encoding,f=n.callback;if(O(e,t,!1,t.objectMode?1:l.length,l,c,f),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function T(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function N(e,t){e._final((function(n){t.pendingcb--,n&&k(e,n),t.prefinished=!0,e.emit("prefinish"),j(e,t)}))}function j(e,t){var n=T(t);if(n&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,i.nextTick(N,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var r=e._readableState;(!r||r.autoDestroy&&r.endEmitted)&&e.destroy()}return n}n(273)(S,u),E.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(E.prototype,"buffer",{get:s.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(o=Function.prototype[Symbol.hasInstance],Object.defineProperty(S,Symbol.hasInstance,{value:function(e){return!!o.call(this,e)||this===S&&e&&e._writableState instanceof E}})):o=function(e){return e instanceof this},S.prototype.pipe=function(){k(this,new y)},S.prototype.write=function(e,t,n){var r,a=this._writableState,o=!1,s=!a.objectMode&&(r=e,l.isBuffer(r)||r instanceof c);return s&&!l.isBuffer(e)&&(e=function(e){return l.from(e)}(e)),"function"==typeof t&&(n=t,t=null),s?t="buffer":t||(t=a.defaultEncoding),"function"!=typeof n&&(n=_),a.ending?function(e,t){var n=new w;k(e,n),i.nextTick(t,n)}(this,n):(s||function(e,t,n,r){var a;return null===n?a=new b:"string"==typeof n||t.objectMode||(a=new h("chunk",["string","Buffer"],n)),!a||(k(e,a),i.nextTick(r,a),!1)}(this,a,e,n))&&(a.pendingcb++,o=function(e,t,n,r,i,a){if(!n){var o=function(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=l.from(t,n)),t}(t,r,i);r!==o&&(n=!0,i="buffer",r=o)}var s=t.objectMode?1:r.length;t.length+=s;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:a,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else O(e,t,!1,s,r,i,a);return u}(this,a,s,e,t,n)),o},S.prototype.cork=function(){this._writableState.corked++},S.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||C(this,e))},S.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new x(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(S.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),S.prototype._write=function(e,t,n){n(new m("_write()"))},S.prototype._writev=null,S.prototype.end=function(e,t,n){var r=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||function(e,t,n){t.ending=!0,j(e,t),n&&(t.finished?i.nextTick(n):e.once("finish",n)),t.ended=!0,e.writable=!1}(this,r,n),this},Object.defineProperty(S.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),S.prototype.destroy=f.destroy,S.prototype._undestroy=f.undestroy,S.prototype._destroy=function(e,t){t(e)}},1218:function(e,t,n){"use strict";var r,i=n(7490);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(4297),s=Symbol("lastResolve"),u=Symbol("lastReject"),l=Symbol("error"),c=Symbol("ended"),f=Symbol("lastPromise"),d=Symbol("handlePromise"),p=Symbol("stream");function h(e,t){return{value:e,done:t}}function m(e){var t=e[s];if(null!==t){var n=e[p].read();null!==n&&(e[f]=null,e[s]=null,e[u]=null,t(h(n,!1)))}}function v(e){i.nextTick(m,e)}var y=Object.getPrototypeOf((function(){})),g=Object.setPrototypeOf((a(r={get stream(){return this[p]},next:function(){var e=this,t=this[l];if(null!==t)return Promise.reject(t);if(this[c])return Promise.resolve(h(void 0,!0));if(this[p].destroyed)return new Promise((function(t,n){i.nextTick((function(){e[l]?n(e[l]):t(h(void 0,!0))}))}));var n,r=this[f];if(r)n=new Promise(function(e,t){return function(n,r){e.then((function(){t[c]?n(h(void 0,!0)):t[d](n,r)}),r)}}(r,this));else{var a=this[p].read();if(null!==a)return Promise.resolve(h(a,!1));n=new Promise(this[d])}return this[f]=n,n}},Symbol.asyncIterator,(function(){return this})),a(r,"return",(function(){var e=this;return new Promise((function(t,n){e[p].destroy(null,(function(e){e?n(e):t(h(void 0,!0))}))}))})),r),y);e.exports=function(e){var t,n=Object.create(g,(a(t={},p,{value:e,writable:!0}),a(t,s,{value:null,writable:!0}),a(t,u,{value:null,writable:!0}),a(t,l,{value:null,writable:!0}),a(t,c,{value:e._readableState.endEmitted,writable:!0}),a(t,d,{value:function(e,t){var r=n[p].read();r?(n[f]=null,n[s]=null,n[u]=null,e(h(r,!1))):(n[s]=e,n[u]=t)},writable:!0}),t));return n[f]=null,o(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=n[u];return null!==t&&(n[f]=null,n[s]=null,n[u]=null,t(e)),void(n[l]=e)}var r=n[s];null!==r&&(n[f]=null,n[s]=null,n[u]=null,r(h(void 0,!0))),n[c]=!0})),e.on("readable",v.bind(null,n)),n}},5489:function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var o=n(918).Buffer,s=n(2361).inspect,u=s&&s.custom||"inspect";e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,n;return t=e,(n=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return o.alloc(0);for(var t,n,r,i=o.allocUnsafe(e>>>0),a=this.head,s=0;a;)t=a.data,n=i,r=s,o.prototype.copy.call(t,n,r),s+=a.data.length,a=a.next;return i}},{key:"consume",value:function(e,t){var n;return e<this.head.data.length?(n=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):n=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,n=1,r=t.data;for(e-=r.length;t=t.next;){var i=t.data,a=e>i.length?i.length:e;if(a===i.length?r+=i:r+=i.slice(0,e),0==(e-=a)){a===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(a));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(e){var t=o.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,a=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,a),0==(e-=a)){a===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(a));break}++r}return this.length-=r,t}},{key:u,value:function(e,t){return s(this,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t,{depth:0,customInspect:!1}))}}])&&a(t.prototype,n),e}()},6617:function(e,t,n){"use strict";var r=n(7490);function i(e,t){o(e,t),a(e)}function a(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function o(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=this,s=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return s||u?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,r.nextTick(o,this,e)):r.nextTick(o,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?n._writableState?n._writableState.errorEmitted?r.nextTick(a,n):(n._writableState.errorEmitted=!0,r.nextTick(i,n,e)):r.nextTick(i,n,e):t?(r.nextTick(a,n),t(e)):r.nextTick(a,n)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}}},4297:function(e,t,n){"use strict";var r=n(1092).q.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,n,a){if("function"==typeof n)return e(t,null,n);n||(n={}),a=function(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r)}}}(a||i);var o=n.readable||!1!==n.readable&&t.readable,s=n.writable||!1!==n.writable&&t.writable,u=function(){t.writable||c()},l=t._writableState&&t._writableState.finished,c=function(){s=!1,l=!0,o||a.call(t)},f=t._readableState&&t._readableState.endEmitted,d=function(){o=!1,f=!0,s||a.call(t)},p=function(e){a.call(t,e)},h=function(){var e;return o&&!f?(t._readableState&&t._readableState.ended||(e=new r),a.call(t,e)):s&&!l?(t._writableState&&t._writableState.ended||(e=new r),a.call(t,e)):void 0},m=function(){t.req.on("finish",c)};return function(e){return e.setHeader&&"function"==typeof e.abort}(t)?(t.on("complete",c),t.on("abort",h),t.req?m():t.on("request",m)):s&&!t._writableState&&(t.on("end",u),t.on("close",u)),t.on("end",d),t.on("finish",c),!1!==n.error&&t.on("error",p),t.on("close",h),function(){t.removeListener("complete",c),t.removeListener("abort",h),t.removeListener("request",m),t.req&&t.req.removeListener("finish",c),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",c),t.removeListener("end",d),t.removeListener("error",p),t.removeListener("close",h)}}},7670:function(e){e.exports=function(){throw new Error("Readable.from is not available in the browser")}},6545:function(e,t,n){"use strict";var r,i=n(1092).q,a=i.ERR_MISSING_ARGS,o=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function u(e,t,i,a){a=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(a);var s=!1;e.on("close",(function(){s=!0})),void 0===r&&(r=n(4297)),r(e,{readable:t,writable:i},(function(e){if(e)return a(e);s=!0,a()}));var u=!1;return function(t){if(!s&&!u)return u=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(e)?e.abort():"function"==typeof e.destroy?e.destroy():void a(t||new o("pipe"))}}function l(e){e()}function c(e,t){return e.pipe(t)}function f(e){return e.length?"function"!=typeof e[e.length-1]?s:e.pop():s}e.exports=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,i=f(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new a("streams");var o=t.map((function(e,n){var a=n<t.length-1;return u(e,a,n>0,(function(e){r||(r=e),e&&o.forEach(l),a||(o.forEach(l),i(r))}))}));return t.reduce(c)}},5999:function(e,t,n){"use strict";var r=n(1092).q.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,n,i){var a=function(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}(t,i,n);if(null!=a){if(!isFinite(a)||Math.floor(a)!==a||a<0)throw new r(i?n:"highWaterMark",a);return Math.floor(a)}return e.objectMode?16:16384}}},8747:function(e,t,n){e.exports=n(8041).EventEmitter},5734:function(e,t,n){var r=n(918),i=r.Buffer;function a(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(a(r,t),t.Buffer=o),a(i,o),o.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},o.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},1398:function(e,t,n){"use strict";var r=n(918).Buffer,i=n(6690).default,a=n(9728).default,o=n(4370),s=function(){function e(t){if(i(this,e),this.length=0,this._encoding="utf8",this._writeOffset=0,this._readOffset=0,e.isSmartBufferOptions(t))if(t.encoding&&(o.checkEncoding(t.encoding),this._encoding=t.encoding),t.size){if(!(o.isFiniteInteger(t.size)&&t.size>0))throw new Error(o.ERRORS.INVALID_SMARTBUFFER_SIZE);this._buff=r.allocUnsafe(t.size)}else if(t.buff){if(!r.isBuffer(t.buff))throw new Error(o.ERRORS.INVALID_SMARTBUFFER_BUFFER);this._buff=t.buff,this.length=t.buff.length}else this._buff=r.allocUnsafe(4096);else{if(void 0!==t)throw new Error(o.ERRORS.INVALID_SMARTBUFFER_OBJECT);this._buff=r.allocUnsafe(4096)}}return a(e,[{key:"readInt8",value:function(e){return this._readNumberValue(r.prototype.readInt8,1,e)}},{key:"readInt16BE",value:function(e){return this._readNumberValue(r.prototype.readInt16BE,2,e)}},{key:"readInt16LE",value:function(e){return this._readNumberValue(r.prototype.readInt16LE,2,e)}},{key:"readInt32BE",value:function(e){return this._readNumberValue(r.prototype.readInt32BE,4,e)}},{key:"readInt32LE",value:function(e){return this._readNumberValue(r.prototype.readInt32LE,4,e)}},{key:"readBigInt64BE",value:function(e){return o.bigIntAndBufferInt64Check("readBigInt64BE"),this._readNumberValue(r.prototype.readBigInt64BE,8,e)}},{key:"readBigInt64LE",value:function(e){return o.bigIntAndBufferInt64Check("readBigInt64LE"),this._readNumberValue(r.prototype.readBigInt64LE,8,e)}},{key:"writeInt8",value:function(e,t){return this._writeNumberValue(r.prototype.writeInt8,1,e,t),this}},{key:"insertInt8",value:function(e,t){return this._insertNumberValue(r.prototype.writeInt8,1,e,t)}},{key:"writeInt16BE",value:function(e,t){return this._writeNumberValue(r.prototype.writeInt16BE,2,e,t)}},{key:"insertInt16BE",value:function(e,t){return this._insertNumberValue(r.prototype.writeInt16BE,2,e,t)}},{key:"writeInt16LE",value:function(e,t){return this._writeNumberValue(r.prototype.writeInt16LE,2,e,t)}},{key:"insertInt16LE",value:function(e,t){return this._insertNumberValue(r.prototype.writeInt16LE,2,e,t)}},{key:"writeInt32BE",value:function(e,t){return this._writeNumberValue(r.prototype.writeInt32BE,4,e,t)}},{key:"insertInt32BE",value:function(e,t){return this._insertNumberValue(r.prototype.writeInt32BE,4,e,t)}},{key:"writeInt32LE",value:function(e,t){return this._writeNumberValue(r.prototype.writeInt32LE,4,e,t)}},{key:"insertInt32LE",value:function(e,t){return this._insertNumberValue(r.prototype.writeInt32LE,4,e,t)}},{key:"writeBigInt64BE",value:function(e,t){return o.bigIntAndBufferInt64Check("writeBigInt64BE"),this._writeNumberValue(r.prototype.writeBigInt64BE,8,e,t)}},{key:"insertBigInt64BE",value:function(e,t){return o.bigIntAndBufferInt64Check("writeBigInt64BE"),this._insertNumberValue(r.prototype.writeBigInt64BE,8,e,t)}},{key:"writeBigInt64LE",value:function(e,t){return o.bigIntAndBufferInt64Check("writeBigInt64LE"),this._writeNumberValue(r.prototype.writeBigInt64LE,8,e,t)}},{key:"insertBigInt64LE",value:function(e,t){return o.bigIntAndBufferInt64Check("writeBigInt64LE"),this._insertNumberValue(r.prototype.writeBigInt64LE,8,e,t)}},{key:"readUInt8",value:function(e){return this._readNumberValue(r.prototype.readUInt8,1,e)}},{key:"readUInt16BE",value:function(e){return this._readNumberValue(r.prototype.readUInt16BE,2,e)}},{key:"readUInt16LE",value:function(e){return this._readNumberValue(r.prototype.readUInt16LE,2,e)}},{key:"readUInt32BE",value:function(e){return this._readNumberValue(r.prototype.readUInt32BE,4,e)}},{key:"readUInt32LE",value:function(e){return this._readNumberValue(r.prototype.readUInt32LE,4,e)}},{key:"readBigUInt64BE",value:function(e){return o.bigIntAndBufferInt64Check("readBigUInt64BE"),this._readNumberValue(r.prototype.readBigUInt64BE,8,e)}},{key:"readBigUInt64LE",value:function(e){return o.bigIntAndBufferInt64Check("readBigUInt64LE"),this._readNumberValue(r.prototype.readBigUInt64LE,8,e)}},{key:"writeUInt8",value:function(e,t){return this._writeNumberValue(r.prototype.writeUInt8,1,e,t)}},{key:"insertUInt8",value:function(e,t){return this._insertNumberValue(r.prototype.writeUInt8,1,e,t)}},{key:"writeUInt16BE",value:function(e,t){return this._writeNumberValue(r.prototype.writeUInt16BE,2,e,t)}},{key:"insertUInt16BE",value:function(e,t){return this._insertNumberValue(r.prototype.writeUInt16BE,2,e,t)}},{key:"writeUInt16LE",value:function(e,t){return this._writeNumberValue(r.prototype.writeUInt16LE,2,e,t)}},{key:"insertUInt16LE",value:function(e,t){return this._insertNumberValue(r.prototype.writeUInt16LE,2,e,t)}},{key:"writeUInt32BE",value:function(e,t){return this._writeNumberValue(r.prototype.writeUInt32BE,4,e,t)}},{key:"insertUInt32BE",value:function(e,t){return this._insertNumberValue(r.prototype.writeUInt32BE,4,e,t)}},{key:"writeUInt32LE",value:function(e,t){return this._writeNumberValue(r.prototype.writeUInt32LE,4,e,t)}},{key:"insertUInt32LE",value:function(e,t){return this._insertNumberValue(r.prototype.writeUInt32LE,4,e,t)}},{key:"writeBigUInt64BE",value:function(e,t){return o.bigIntAndBufferInt64Check("writeBigUInt64BE"),this._writeNumberValue(r.prototype.writeBigUInt64BE,8,e,t)}},{key:"insertBigUInt64BE",value:function(e,t){return o.bigIntAndBufferInt64Check("writeBigUInt64BE"),this._insertNumberValue(r.prototype.writeBigUInt64BE,8,e,t)}},{key:"writeBigUInt64LE",value:function(e,t){return o.bigIntAndBufferInt64Check("writeBigUInt64LE"),this._writeNumberValue(r.prototype.writeBigUInt64LE,8,e,t)}},{key:"insertBigUInt64LE",value:function(e,t){return o.bigIntAndBufferInt64Check("writeBigUInt64LE"),this._insertNumberValue(r.prototype.writeBigUInt64LE,8,e,t)}},{key:"readFloatBE",value:function(e){return this._readNumberValue(r.prototype.readFloatBE,4,e)}},{key:"readFloatLE",value:function(e){return this._readNumberValue(r.prototype.readFloatLE,4,e)}},{key:"writeFloatBE",value:function(e,t){return this._writeNumberValue(r.prototype.writeFloatBE,4,e,t)}},{key:"insertFloatBE",value:function(e,t){return this._insertNumberValue(r.prototype.writeFloatBE,4,e,t)}},{key:"writeFloatLE",value:function(e,t){return this._writeNumberValue(r.prototype.writeFloatLE,4,e,t)}},{key:"insertFloatLE",value:function(e,t){return this._insertNumberValue(r.prototype.writeFloatLE,4,e,t)}},{key:"readDoubleBE",value:function(e){return this._readNumberValue(r.prototype.readDoubleBE,8,e)}},{key:"readDoubleLE",value:function(e){return this._readNumberValue(r.prototype.readDoubleLE,8,e)}},{key:"writeDoubleBE",value:function(e,t){return this._writeNumberValue(r.prototype.writeDoubleBE,8,e,t)}},{key:"insertDoubleBE",value:function(e,t){return this._insertNumberValue(r.prototype.writeDoubleBE,8,e,t)}},{key:"writeDoubleLE",value:function(e,t){return this._writeNumberValue(r.prototype.writeDoubleLE,8,e,t)}},{key:"insertDoubleLE",value:function(e,t){return this._insertNumberValue(r.prototype.writeDoubleLE,8,e,t)}},{key:"readString",value:function(e,t){var n;"number"==typeof e?(o.checkLengthValue(e),n=Math.min(e,this.length-this._readOffset)):(t=e,n=this.length-this._readOffset),void 0!==t&&o.checkEncoding(t);var r=this._buff.slice(this._readOffset,this._readOffset+n).toString(t||this._encoding);return this._readOffset+=n,r}},{key:"insertString",value:function(e,t,n){return o.checkOffsetValue(t),this._handleString(e,!0,t,n)}},{key:"writeString",value:function(e,t,n){return this._handleString(e,!1,t,n)}},{key:"readStringNT",value:function(e){void 0!==e&&o.checkEncoding(e);for(var t=this.length,n=this._readOffset;n<this.length;n++)if(0===this._buff[n]){t=n;break}var r=this._buff.slice(this._readOffset,t);return this._readOffset=t+1,r.toString(e||this._encoding)}},{key:"insertStringNT",value:function(e,t,n){return o.checkOffsetValue(t),this.insertString(e,t,n),this.insertUInt8(0,t+e.length),this}},{key:"writeStringNT",value:function(e,t,n){return this.writeString(e,t,n),this.writeUInt8(0,"number"==typeof t?t+e.length:this.writeOffset),this}},{key:"readBuffer",value:function(e){void 0!==e&&o.checkLengthValue(e);var t="number"==typeof e?e:this.length,n=Math.min(this.length,this._readOffset+t),r=this._buff.slice(this._readOffset,n);return this._readOffset=n,r}},{key:"insertBuffer",value:function(e,t){return o.checkOffsetValue(t),this._handleBuffer(e,!0,t)}},{key:"writeBuffer",value:function(e,t){return this._handleBuffer(e,!1,t)}},{key:"readBufferNT",value:function(){for(var e=this.length,t=this._readOffset;t<this.length;t++)if(0===this._buff[t]){e=t;break}var n=this._buff.slice(this._readOffset,e);return this._readOffset=e+1,n}},{key:"insertBufferNT",value:function(e,t){return o.checkOffsetValue(t),this.insertBuffer(e,t),this.insertUInt8(0,t+e.length),this}},{key:"writeBufferNT",value:function(e,t){return void 0!==t&&o.checkOffsetValue(t),this.writeBuffer(e,t),this.writeUInt8(0,"number"==typeof t?t+e.length:this._writeOffset),this}},{key:"clear",value:function(){return this._writeOffset=0,this._readOffset=0,this.length=0,this}},{key:"remaining",value:function(){return this.length-this._readOffset}},{key:"readOffset",get:function(){return this._readOffset},set:function(e){o.checkOffsetValue(e),o.checkTargetOffset(e,this),this._readOffset=e}},{key:"writeOffset",get:function(){return this._writeOffset},set:function(e){o.checkOffsetValue(e),o.checkTargetOffset(e,this),this._writeOffset=e}},{key:"encoding",get:function(){return this._encoding},set:function(e){o.checkEncoding(e),this._encoding=e}},{key:"internalBuffer",get:function(){return this._buff}},{key:"toBuffer",value:function(){return this._buff.slice(0,this.length)}},{key:"toString",value:function(e){var t="string"==typeof e?e:this._encoding;return o.checkEncoding(t),this._buff.toString(t,0,this.length)}},{key:"destroy",value:function(){return this.clear(),this}},{key:"_handleString",value:function(e,t,n,i){var a=this._writeOffset,s=this._encoding;"number"==typeof n?a=n:"string"==typeof n&&(o.checkEncoding(n),s=n),"string"==typeof i&&(o.checkEncoding(i),s=i);var u=r.byteLength(e,s);return t?this.ensureInsertable(u,a):this._ensureWriteable(u,a),this._buff.write(e,a,u,s),t?this._writeOffset+=u:"number"==typeof n?this._writeOffset=Math.max(this._writeOffset,a+u):this._writeOffset+=u,this}},{key:"_handleBuffer",value:function(e,t,n){var r="number"==typeof n?n:this._writeOffset;return t?this.ensureInsertable(e.length,r):this._ensureWriteable(e.length,r),e.copy(this._buff,r),t?this._writeOffset+=e.length:"number"==typeof n?this._writeOffset=Math.max(this._writeOffset,r+e.length):this._writeOffset+=e.length,this}},{key:"ensureReadable",value:function(e,t){var n=this._readOffset;if(void 0!==t&&(o.checkOffsetValue(t),n=t),n<0||n+e>this.length)throw new Error(o.ERRORS.INVALID_READ_BEYOND_BOUNDS)}},{key:"ensureInsertable",value:function(e,t){o.checkOffsetValue(t),this._ensureCapacity(this.length+e),t<this.length&&this._buff.copy(this._buff,t+e,t,this._buff.length),t+e>this.length?this.length=t+e:this.length+=e}},{key:"_ensureWriteable",value:function(e,t){var n="number"==typeof t?t:this._writeOffset;this._ensureCapacity(n+e),n+e>this.length&&(this.length=n+e)}},{key:"_ensureCapacity",value:function(e){var t=this._buff.length;if(e>t){var n=this._buff,i=3*t/2+1;i<e&&(i=e),this._buff=r.allocUnsafe(i),n.copy(this._buff,0,0,t)}}},{key:"_readNumberValue",value:function(e,t,n){this.ensureReadable(t,n);var r=e.call(this._buff,"number"==typeof n?n:this._readOffset);return void 0===n&&(this._readOffset+=t),r}},{key:"_insertNumberValue",value:function(e,t,n,r){return o.checkOffsetValue(r),this.ensureInsertable(t,r),e.call(this._buff,n,r),this._writeOffset+=t,this}},{key:"_writeNumberValue",value:function(e,t,n,r){if("number"==typeof r){if(r<0)throw new Error(o.ERRORS.INVALID_WRITE_BEYOND_BOUNDS);o.checkOffsetValue(r)}var i="number"==typeof r?r:this._writeOffset;return this._ensureWriteable(t,i),e.call(this._buff,n,i),"number"==typeof r?this._writeOffset=Math.max(this._writeOffset,i+t):this._writeOffset+=t,this}}],[{key:"fromSize",value:function(e,t){return new this({size:e,encoding:t})}},{key:"fromBuffer",value:function(e,t){return new this({buff:e,encoding:t})}},{key:"fromOptions",value:function(e){return new this(e)}},{key:"isSmartBufferOptions",value:function(e){var t=e;return t&&(void 0!==t.encoding||void 0!==t.size||void 0!==t.buff)}}]),e}();t.$=s},4370:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(918),i={INVALID_ENCODING:"Invalid encoding provided. Please specify a valid encoding the internal Node.js Buffer supports.",INVALID_SMARTBUFFER_SIZE:"Invalid size provided. Size must be a valid integer greater than zero.",INVALID_SMARTBUFFER_BUFFER:"Invalid Buffer provided in SmartBufferOptions.",INVALID_SMARTBUFFER_OBJECT:"Invalid SmartBufferOptions object supplied to SmartBuffer constructor or factory methods.",INVALID_OFFSET:"An invalid offset value was provided.",INVALID_OFFSET_NON_NUMBER:"An invalid offset value was provided. A numeric value is required.",INVALID_LENGTH:"An invalid length value was provided.",INVALID_LENGTH_NON_NUMBER:"An invalid length value was provived. A numeric value is required.",INVALID_TARGET_OFFSET:"Target offset is beyond the bounds of the internal SmartBuffer data.",INVALID_TARGET_LENGTH:"Specified length value moves cursor beyong the bounds of the internal SmartBuffer data.",INVALID_READ_BEYOND_BOUNDS:"Attempted to read beyond the bounds of the managed data.",INVALID_WRITE_BEYOND_BOUNDS:"Attempted to write beyond the bounds of the managed data."};function a(e){return"number"==typeof e&&isFinite(e)&&function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}(e)}function o(e,t){if("number"!=typeof e)throw new Error(t?i.INVALID_OFFSET_NON_NUMBER:i.INVALID_LENGTH_NON_NUMBER);if(!a(e)||e<0)throw new Error(t?i.INVALID_OFFSET:i.INVALID_LENGTH)}t.ERRORS=i,t.checkEncoding=function(e){if(!r.Buffer.isEncoding(e))throw new Error(i.INVALID_ENCODING)},t.isFiniteInteger=a,t.checkLengthValue=function(e){o(e,!1)},t.checkOffsetValue=function(e){o(e,!0)},t.checkTargetOffset=function(e,t){if(e<0||e>t.length)throw new Error(i.INVALID_TARGET_OFFSET)},t.bigIntAndBufferInt64Check=function(e){if("undefined"==typeof BigInt)throw new Error("Platform does not support JS BigInt type.");if(void 0===r.Buffer.prototype[e])throw new Error("Platform does not support Buffer.prototype.".concat(e,"."))}},3841:function(e,t,n){e.exports=i;var r=n(8041).EventEmitter;function i(){r.call(this)}n(273)(i,r),i.Readable=n(6405),i.Writable=n(7423),i.Duplex=n(6085),i.Transform=n(4917),i.PassThrough=n(9543),i.finished=n(4297),i.pipeline=n(6545),i.Stream=i,i.prototype.pipe=function(e,t){var n=this;function i(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function a(){n.readable&&n.resume&&n.resume()}n.on("data",i),e.on("drain",a),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",u));var o=!1;function s(){o||(o=!0,e.end())}function u(){o||(o=!0,"function"==typeof e.destroy&&e.destroy())}function l(e){if(c(),0===r.listenerCount(this,"error"))throw e}function c(){n.removeListener("data",i),e.removeListener("drain",a),n.removeListener("end",s),n.removeListener("close",u),n.removeListener("error",l),e.removeListener("error",l),n.removeListener("end",c),n.removeListener("close",c),e.removeListener("close",c)}return n.on("error",l),e.on("error",l),n.on("end",c),n.on("close",c),e.on("close",c),e.emit("pipe",n),e}},8570:function(e,t,n){"use strict";var r=n(5734).Buffer,i=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function a(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=l,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=c,this.end=f,t=3;break;default:return this.write=d,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function u(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function l(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function c(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}t.s=a,a.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},a.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},a.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=o(t[r]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--r<n||-2===i?0:(i=o(t[r]))>=0?(i>0&&(e.lastNeed=i-2),i):--r<n||-2===i?0:(i=o(t[r]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},9043:function(e,t,n){var r=n(8466);function i(e){try{if(!n.g.localStorage)return!1}catch(e){return!1}var t=n.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=function(e,t){if(i("noDeprecation"))return e;var n=!1;return function(){if(!n){if(i("throwDeprecation"))throw new Error(t);i("traceDeprecation")?r.trace(t):r.warn(t),n=!0}return e.apply(this,arguments)}}},6181:function(e){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},902:function(e,t,n){"use strict";var r=n(5021),i=n(7469),a=n(1520),o=n(2105);function s(e){return e.call.bind(e)}var u="undefined"!=typeof BigInt,l="undefined"!=typeof Symbol,c=s(Object.prototype.toString),f=s(Number.prototype.valueOf),d=s(String.prototype.valueOf),p=s(Boolean.prototype.valueOf);if(u)var h=s(BigInt.prototype.valueOf);if(l)var m=s(Symbol.prototype.valueOf);function v(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function y(e){return"[object Map]"===c(e)}function g(e){return"[object Set]"===c(e)}function b(e){return"[object WeakMap]"===c(e)}function w(e){return"[object WeakSet]"===c(e)}function x(e){return"[object ArrayBuffer]"===c(e)}function k(e){return"undefined"!=typeof ArrayBuffer&&(x.working?x(e):e instanceof ArrayBuffer)}function _(e){return"[object DataView]"===c(e)}function E(e){return"undefined"!=typeof DataView&&(_.working?_(e):e instanceof DataView)}t.isArgumentsObject=r,t.isGeneratorFunction=i,t.isTypedArray=o,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):o(e)||E(e)},t.isUint8Array=function(e){return"Uint8Array"===a(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===a(e)},t.isUint16Array=function(e){return"Uint16Array"===a(e)},t.isUint32Array=function(e){return"Uint32Array"===a(e)},t.isInt8Array=function(e){return"Int8Array"===a(e)},t.isInt16Array=function(e){return"Int16Array"===a(e)},t.isInt32Array=function(e){return"Int32Array"===a(e)},t.isFloat32Array=function(e){return"Float32Array"===a(e)},t.isFloat64Array=function(e){return"Float64Array"===a(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===a(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===a(e)},y.working="undefined"!=typeof Map&&y(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(y.working?y(e):e instanceof Map)},g.working="undefined"!=typeof Set&&g(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(g.working?g(e):e instanceof Set)},b.working="undefined"!=typeof WeakMap&&b(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(b.working?b(e):e instanceof WeakMap)},w.working="undefined"!=typeof WeakSet&&w(new WeakSet),t.isWeakSet=function(e){return w(e)},x.working="undefined"!=typeof ArrayBuffer&&x(new ArrayBuffer),t.isArrayBuffer=k,_.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&_(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=E;var S="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function O(e){return"[object SharedArrayBuffer]"===c(e)}function A(e){return void 0!==S&&(void 0===O.working&&(O.working=O(new S)),O.working?O(e):e instanceof S)}function C(e){return v(e,f)}function T(e){return v(e,d)}function N(e){return v(e,p)}function j(e){return u&&v(e,h)}function P(e){return l&&v(e,m)}t.isSharedArrayBuffer=A,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===c(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===c(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===c(e)},t.isGeneratorObject=function(e){return"[object Generator]"===c(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===c(e)},t.isNumberObject=C,t.isStringObject=T,t.isBooleanObject=N,t.isBigIntObject=j,t.isSymbolObject=P,t.isBoxedPrimitive=function(e){return C(e)||T(e)||N(e)||j(e)||P(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(k(e)||A(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))},7736:function(e,t,n){var r=n(7490),i=n(8466),a=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},o=/%[sdj%]/g;t.format=function(e){if(!w(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(c(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,i=r.length,a=String(e).replace(o,(function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),s=r[n];n<i;s=r[++n])g(s)||!_(s)?a+=" "+s:a+=" "+c(s);return a},t.deprecate=function(e,n){if(void 0!==r&&!0===r.noDeprecation)return e;if(void 0===r)return function(){return t.deprecate(e,n).apply(this,arguments)};var a=!1;return function(){if(!a){if(r.throwDeprecation)throw new Error(n);r.traceDeprecation?i.trace(n):i.error(n),a=!0}return e.apply(this,arguments)}};var s={},u=/^$/;if({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.NODE_DEBUG){var l={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.NODE_DEBUG;l=l.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),u=new RegExp("^"+l+"$","i")}function c(e,n){var r={seen:[],stylize:d};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),y(n)?r.showHidden=n:n&&t._extend(r,n),x(r.showHidden)&&(r.showHidden=!1),x(r.depth)&&(r.depth=2),x(r.colors)&&(r.colors=!1),x(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=f),p(r,e,r.depth)}function f(e,t){var n=c.styles[t];return n?"["+c.colors[n][0]+"m"+e+"["+c.colors[n][1]+"m":e}function d(e,t){return e}function p(e,n,r){if(e.customInspect&&n&&O(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return w(i)||(i=p(e,i,r)),i}var a=function(e,t){if(x(t))return e.stylize("undefined","undefined");if(w(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return b(t)?e.stylize(""+t,"number"):y(t)?e.stylize(""+t,"boolean"):g(t)?e.stylize("null","null"):void 0}(e,n);if(a)return a;var o=Object.keys(n),s=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(n)),S(n)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return h(n);if(0===o.length){if(O(n)){var u=n.name?": "+n.name:"";return e.stylize("[Function"+u+"]","special")}if(k(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(E(n))return e.stylize(Date.prototype.toString.call(n),"date");if(S(n))return h(n)}var l,c="",f=!1,d=["{","}"];return v(n)&&(f=!0,d=["[","]"]),O(n)&&(c=" [Function"+(n.name?": "+n.name:"")+"]"),k(n)&&(c=" "+RegExp.prototype.toString.call(n)),E(n)&&(c=" "+Date.prototype.toUTCString.call(n)),S(n)&&(c=" "+h(n)),0!==o.length||f&&0!=n.length?r<0?k(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),l=f?function(e,t,n,r,i){for(var a=[],o=0,s=t.length;o<s;++o)j(t,String(o))?a.push(m(e,t,n,r,String(o),!0)):a.push("");return i.forEach((function(i){i.match(/^\d+$/)||a.push(m(e,t,n,r,i,!0))})),a}(e,n,r,s,o):o.map((function(t){return m(e,n,r,s,t,f)})),e.seen.pop(),function(e,t,n){return e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(l,c,d)):d[0]+c+d[1]}function h(e){return"["+Error.prototype.toString.call(e)+"]"}function m(e,t,n,r,i,a){var o,s,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),j(r,i)||(o="["+i+"]"),s||(e.seen.indexOf(u.value)<0?(s=g(n)?p(e,u.value,null):p(e,u.value,n-1)).indexOf("\n")>-1&&(s=a?s.split("\n").map((function(e){return" "+e})).join("\n").slice(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),x(o)){if(a&&i.match(/^\d+$/))return s;(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),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 y(e){return"boolean"==typeof e}function g(e){return null===e}function b(e){return"number"==typeof e}function w(e){return"string"==typeof e}function x(e){return void 0===e}function k(e){return _(e)&&"[object RegExp]"===A(e)}function _(e){return"object"==typeof e&&null!==e}function E(e){return _(e)&&"[object Date]"===A(e)}function S(e){return _(e)&&("[object Error]"===A(e)||e instanceof Error)}function O(e){return"function"==typeof e}function A(e){return Object.prototype.toString.call(e)}function C(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!s[e])if(u.test(e)){var n=r.pid;s[e]=function(){var r=t.format.apply(t,arguments);i.error("%s %d: %s",e,n,r)}}else s[e]=function(){};return s[e]},t.inspect=c,c.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]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=n(902),t.isArray=v,t.isBoolean=y,t.isNull=g,t.isNullOrUndefined=function(e){return null==e},t.isNumber=b,t.isString=w,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=x,t.isRegExp=k,t.types.isRegExp=k,t.isObject=_,t.isDate=E,t.types.isDate=E,t.isError=S,t.types.isNativeError=S,t.isFunction=O,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(6181);var T=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function N(){var e=new Date,t=[C(e.getHours()),C(e.getMinutes()),C(e.getSeconds())].join(":");return[e.getDate(),T[e.getMonth()],t].join(" ")}function j(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){i.log("%s - %s",N(),t.format.apply(t,arguments))},t.inherits=n(273),t._extend=function(e,t){if(!t||!_(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var P="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function R(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(P&&e[P]){var t;if("function"!=typeof(t=e[P]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,P,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),i=[],a=0;a<arguments.length;a++)i.push(arguments[a]);i.push((function(e,r){e?n(e):t(r)}));try{e.apply(this,i)}catch(e){n(e)}return r}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),P&&Object.defineProperty(t,P,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,a(e))},t.promisify.custom=P,t.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n]);var i=t.pop();if("function"!=typeof i)throw new TypeError("The last argument must be of type Function");var a=this,o=function(){return i.apply(a,arguments)};e.apply(this,t).then((function(e){r.nextTick(o.bind(null,null,e))}),(function(e){r.nextTick(R.bind(null,e,o))}))}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,a(e)),t}},1520:function(e,t,n){"use strict";var r=n(5767),i=n(3645),a=n(4680),o=a("Object.prototype.toString"),s=n(8857)(),u="undefined"==typeof globalThis?n.g:globalThis,l=i(),c=a("String.prototype.slice"),f={},d=n(3397),p=Object.getPrototypeOf;s&&d&&p&&r(l,(function(e){if("function"==typeof u[e]){var t=new u[e];if(Symbol.toStringTag in t){var n=p(t),r=d(n,Symbol.toStringTag);if(!r){var i=p(n);r=d(i,Symbol.toStringTag)}f[e]=r.get}}}));var h=n(2105);e.exports=function(e){return!!h(e)&&(s&&Symbol.toStringTag in e?function(e){var t=!1;return r(f,(function(n,r){if(!t)try{var i=n.call(e);i===r&&(t=i)}catch(e){}})),t}(e):c(o(e),8,-1))}},6:function(e){"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,a){for(var o,s,u=i(e),l=1;l<arguments.length;l++){for(var c in o=Object(arguments[l]))n.call(o,c)&&(u[c]=o[c]);if(t){s=t(o);for(var f=0;f<s.length;f++)r.call(o,s[f])&&(u[s[f]]=o[s[f]])}}return u}},8666:function(e,t,n){"use strict";var r,i,a,o,s=n(8466);if("object"==typeof performance&&"function"==typeof performance.now){var u=performance;t.unstable_now=function(){return u.now()}}else{var l=Date,c=l.now();t.unstable_now=function(){return l.now()-c}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var f=null,d=null,p=function e(){if(null!==f)try{var n=t.unstable_now();f(!0,n),f=null}catch(t){throw setTimeout(e,0),t}};r=function(e){null!==f?setTimeout(r,0,e):(f=e,setTimeout(p,0))},i=function(e,t){d=setTimeout(e,t)},a=function(){clearTimeout(d)},t.unstable_shouldYield=function(){return!1},o=t.unstable_forceFrameRate=function(){}}else{var h=window.setTimeout,m=window.clearTimeout;if(void 0!==s){var v=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&s.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof v&&s.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var y=!1,g=null,b=-1,w=5,x=0;t.unstable_shouldYield=function(){return t.unstable_now()>=x},o=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?s.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):w=0<e?Math.floor(1e3/e):5};var k=new MessageChannel,_=k.port2;k.port1.onmessage=function(){if(null!==g){var e=t.unstable_now();x=e+w;try{g(!0,e)?_.postMessage(null):(y=!1,g=null)}catch(e){throw _.postMessage(null),e}}else y=!1},r=function(e){g=e,y||(y=!0,_.postMessage(null))},i=function(e,n){b=h((function(){e(t.unstable_now())}),n)},a=function(){m(b),b=-1}}function E(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<A(i,t)))break e;e[r]=t,e[n]=i,n=r}}function S(e){return void 0===(e=e[0])?null:e}function O(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var a=2*(r+1)-1,o=e[a],s=a+1,u=e[s];if(void 0!==o&&0>A(o,n))void 0!==u&&0>A(u,o)?(e[r]=u,e[s]=n,r=s):(e[r]=o,e[a]=n,r=a);else{if(!(void 0!==u&&0>A(u,n)))break e;e[r]=u,e[s]=n,r=s}}}return t}return null}function A(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var C=[],T=[],N=1,j=null,P=3,R=!1,I=!1,L=!1;function M(e){for(var t=S(T);null!==t;){if(null===t.callback)O(T);else{if(!(t.startTime<=e))break;O(T),t.sortIndex=t.expirationTime,E(C,t)}t=S(T)}}function B(e){if(L=!1,M(e),!I)if(null!==S(C))I=!0,r(D);else{var t=S(T);null!==t&&i(B,t.startTime-e)}}function D(e,n){I=!1,L&&(L=!1,a()),R=!0;var r=P;try{for(M(n),j=S(C);null!==j&&(!(j.expirationTime>n)||e&&!t.unstable_shouldYield());){var o=j.callback;if("function"==typeof o){j.callback=null,P=j.priorityLevel;var s=o(j.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?j.callback=s:j===S(C)&&O(C),M(n)}else O(C);j=S(C)}if(null!==j)var u=!0;else{var l=S(T);null!==l&&i(B,l.startTime-n),u=!1}return u}finally{j=null,P=r,R=!1}}var U=o;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){I||R||(I=!0,r(D))},t.unstable_getCurrentPriorityLevel=function(){return P},t.unstable_getFirstCallbackNode=function(){return S(C)},t.unstable_next=function(e){switch(P){case 1:case 2:case 3:var t=3;break;default:t=P}var n=P;P=t;try{return e()}finally{P=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=U,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=P;P=e;try{return t()}finally{P=n}},t.unstable_scheduleCallback=function(e,n,o){var s=t.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?s+o:s,e){case 1:var u=-1;break;case 2:u=250;break;case 5:u=1073741823;break;case 4:u=1e4;break;default:u=5e3}return e={id:N++,callback:n,priorityLevel:e,startTime:o,expirationTime:u=o+u,sortIndex:-1},o>s?(e.sortIndex=o,E(T,e),null===S(C)&&e===S(T)&&(L?a():L=!0,i(B,o-s))):(e.sortIndex=u,E(C,e),I||R||(I=!0,r(D))),e},t.unstable_wrapCallback=function(e){var t=P;return function(){var n=P;P=t;try{return e.apply(this,arguments)}finally{P=n}}}},3830:function(e,t,n){"use strict";e.exports=n(8666)},2361:function(){},4616:function(){},6115:function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},6690:function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},9728:function(e){function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},6389:function(e,t,n){var r=n(3808),i=n(9617),a=n(4993);e.exports=function(e){var t=i();return function(){var n,i=r(e);if(t){var o=r(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return a(this,n)}},e.exports.__esModule=!0,e.exports.default=e.exports},3808:function(e){function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},1655:function(e,t,n){var r=n(6015);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},9617:function(e){e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}},e.exports.__esModule=!0,e.exports.default=e.exports},4993:function(e,t,n){var r=n(8698).default,i=n(6115);e.exports=function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)},e.exports.__esModule=!0,e.exports.default=e.exports},6015:function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},8698:function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},3645:function(e,t,n){"use strict";var r=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],i="undefined"==typeof globalThis?n.g:globalThis;e.exports=function(){for(var e=[],t=0;t<r.length;t++)"function"==typeof i[r[t]]&&(e[e.length]=r[t]);return e}},3397:function(e,t,n){"use strict";var r=n(8476)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(e){r=null}e.exports=r}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e,t,r,i,a=n(3705),o=n(6377);function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,i=e}finally{try{o||null==n.return||n.return()}finally{if(s)throw i}}return a}}(e,t)||u(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(t){switch(t){case e.Pressed:return"Pressed";case e.Released:return"Released";case e.Held:return"Held"}}function h(t){switch(t){case"Pressed":return e.Pressed;case"Released":return e.Released;case"Held":return e.Held}}function m(e){switch(e){case i.MuteAllChannels:return"muteallchannels";case i.PlayInstruction:return"playinstructions"}}function v(e){switch(e){case"muteallchannels":return i.MuteAllChannels;case"playinstructions":return i.PlayInstruction}}!function(e){e[e.Pressed=1]="Pressed",e[e.Released=2]="Released",e[e.Held=3]="Held"}(e||(e={})),function(e){e[e.Player=0]="Player",e[e.Reaction=1]="Reaction"}(t||(t={})),function(e){e[e.None=0]="None",e[e.Left=1]="Left",e[e.Up=2]="Up",e[e.Right=3]="Right",e[e.Down=4]="Down",e[e.A=5]="A",e[e.B=6]="B",e[e.Menu=7]="Menu",e[e.Screenshot=-1]="Screenshot",e[e.Gif=-2]="Gif",e[e.Reset=-3]="Reset",e[e.TogglePause=-4]="TogglePause"}(r||(r={})),function(e){e[e.MuteAllChannels=0]="MuteAllChannels",e[e.PlayInstruction=1]="PlayInstruction"}(i||(i={}));var y,g={users:[]};y||(y={});var b={netMode:"init",authStatus:"unknown",profile:void 0,clientRole:void 0,playerSlot:void 0,joinCode:void 0,gameState:void 0,gameMetadata:void 0,gamePaused:void 0,toasts:[],presence:d({},g),modal:void 0,modalOpts:void 0,muted:pxt.BrowserUtils.isSafari(),deepLinks:{},reactions:{},targetConfig:void 0};function w(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||u(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t){switch(t.type){case"SET_USER_PROFILE":var n;return d(d({},e),{},{profile:t.profile,authStatus:null!==(n=t.profile)&&void 0!==n&&n.id?"signed-in":"signed-out"});case"SET_CLIENT_ROLE":return d(d({},e),{},{clientRole:t.clientRole});case"SET_NET_MODE":var r=d(d({},e),{},{netMode:t.mode});return"init"===t.mode&&(r=d(d({},r),{},{clientRole:void 0,playerSlot:void 0,joinCode:void 0,gameState:void 0,gameMetadata:void 0,gamePaused:void 0,presence:d({},g),modal:void 0,modalOpts:void 0})),r;case"SET_GAME_INFO":return d(d({},e),{},{gameState:d(d({},e.gameState),t.gameInfo)});case"SET_GAME_METADATA":return d(d({},e),{},{gameMetadata:t.gameMetadata});case"SET_GAME_ID":return d(d({},e),{},{gameState:d(d({},e.gameState),{},{gameId:t.gameId})});case"SET_PLAYER_SLOT":return d(d({},e),{},{playerSlot:t.playerSlot});case"CLEAR_GAME_INFO":return d(d({},e),{},{playerSlot:void 0,gameState:void 0,gameMetadata:void 0});case"SET_GAME_MODE":return d(d({},e),{},{gameState:d(d({},e.gameState),{},{gameMode:t.gameMode})});case"SHOW_TOAST":return d(d({},e),{},{toasts:[].concat(w(e.toasts),[t.toast])});case"DISMISS_TOAST":return d(d({},e),{},{toasts:e.toasts.filter((function(e){return e.id!==t.id}))});case"SET_PRESENCE":return d(d({},e),{},{presence:d({},t.presence)});case"SET_REACTION":return d(d({},e),{},{reactions:d(d({},e.reactions),{},c({},t.clientId,{id:t.reactionId,index:t.index}))});case"CLEAR_REACTION":return d(d({},e),{},{reactions:d(d({},e.reactions),{},c({},t.clientId,void 0))});case"SHOW_MODAL":return d(d({},e),{},{modal:t.modalType,modalOpts:t.modalOpts});case"CLEAR_MODAL":return d(d({},e),{},{modal:void 0,modalOpts:void 0});case"SET_DEEP_LINKS":return d(d({},e),{},{deepLinks:{shareCode:t.shareCode,joinCode:t.shareCode?void 0:t.joinCode}});case"SET_MUTE":return d(d({},e),{},{muted:t.value});case"SET_GAME_PAUSED":return d(d({},e),{},{gamePaused:t.gamePaused});case"SET_TARGET_CONFIG":return d(d({},e),{},{targetConfig:t.targetConfig});case"SET_PRESENCE_ICON_OVERRIDE":var i,a,o=(null===(i=e.gameState)||void 0===i||null===(a=i.presenceIconOverrides)||void 0===a?void 0:a.slice())||[];return o[t.slot]=t.icon,d(d({},e),{},{gameState:d(d({},e.gameState),{},{presenceIconOverrides:o})});case"SET_REACTION_ICON_OVERRIDE":var s,u,l=(null===(s=e.gameState)||void 0===s||null===(u=s.reactionIconOverrides)||void 0===u?void 0:u.slice())||[];return l[t.slot]=t.icon,d(d({},e),{},{gameState:d(d({},e.gameState),{},{reactionIconOverrides:l})})}}var k,_,E=n(1411),S=(0,a.createContext)({state:void 0,dispatch:void 0});function O(e){var t=l((0,a.useReducer)(x,b),2),n=t[0],r=t[1];return(0,a.useEffect)((function(){k=n,_=r}),[n,r]),(0,E.jsx)(S.Provider,{value:{state:n,dispatch:r},children:e.children})}function A(){return(0,E.jsx)("div",{className:"tw-w-screen tw-h-screen tw-flex tw-justify-center tw-items-center tw-text-xl tw-text-white",children:lf("Loading...")})}var C,T=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:21;return crypto.getRandomValues(new Uint8Array(e)).reduce((function(e,t){return e+((t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_")}),"")},N=function(e){return{type:"SET_USER_PROFILE",profile:e}},j=function(e){return{type:"SET_CLIENT_ROLE",clientRole:e}},P=function(e){return{type:"SET_NET_MODE",mode:e}},R=function(e){return{type:"SET_GAME_INFO",gameInfo:e}},I=function(e){return{type:"SET_GAME_METADATA",gameMetadata:e}},L=function(e){return{type:"SET_GAME_ID",gameId:e}},M=function(e){return{type:"SET_PLAYER_SLOT",playerSlot:e}},B=function(e){return{type:"SET_GAME_MODE",gameMode:e}},D=function(e){return{type:"SHOW_TOAST",toast:d({id:T(8)},e)}},U=function(e){return{type:"DISMISS_TOAST",id:e}},F=function(e){return{type:"SET_PRESENCE",presence:e}},z=function(e,t,n){return{type:"SET_REACTION",clientId:e,reactionId:t,index:n}},V=function(e){return{type:"CLEAR_REACTION",clientId:e}},H=function(e,t){return{type:"SHOW_MODAL",modalType:e,modalOpts:t}},W=function(e,t){return{type:"SET_DEEP_LINKS",shareCode:e,joinCode:t}},q=function(e){return{type:"SET_GAME_PAUSED",gamePaused:e}},G=function(e,t){return{type:"SET_PRESENCE_ICON_OVERRIDE",slot:e,icon:t}},Z=function(e,t){return{type:"SET_REACTION_ICON_OVERRIDE",slot:e,icon:t}};function Y(){var e=(0,a.useContext)(S).state.deepLinks,t=e.shareCode,n=e.joinCode,r=lf("Sign in to host this multiplayer game"),i=lf("Sign up to host this multiplayer game"),o=lf("Sign in to join multiplayer game {0}",n),s=lf("Sign up to join multiplayer game {0}",n),u=lf("Sign in to host or join a multiplayer game"),l=lf("Sign up to host or join a multiplayer game");return(0,a.useMemo)((function(){return t?{signInMessage:r,signUpMessage:i}:n?{signInMessage:o,signUpMessage:s}:{signInMessage:u,signUpMessage:l}}),[t,n])}function $(){var e=(0,a.useContext)(S).dispatch,t=Y();return(0,a.useEffect)((function(){e(H("sign-in",{dialogMessages:t}))}),[t]),(0,E.jsx)(E.Fragment,{})}function K(e){return(K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function X(){X=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",o=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof f?t:f,a=Object.create(i.prototype),o=new _(r||[]);return a._invoke=function(e,t,n){var r="suspendedStart";return function(i,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw a;return{value:void 0,done:!0}}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=w(o,n);if(s){if(s===c)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=l(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===c)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,o),a}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var c={};function f(){}function d(){}function p(){}var h={};s(h,i,(function(){return this}));var m=Object.getPrototypeOf,v=m&&m(m(E([])));v&&v!==t&&n.call(v,i)&&(h=v);var y=p.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function r(i,a,o,s){var u=l(e[i],e,a);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==K(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,o,s)}),(function(e){r("throw",e,o,s)})):t.resolve(f).then((function(e){c.value=e,o(c)}),(function(e){return r("throw",e,o,s)}))}s(u.arg)}var i;this._invoke=function(e,n){function a(){return new t((function(t,i){r(e,n,t,i)}))}return i=i?i.then(a,a):a()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return c;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var r=l(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,c;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,c):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,c)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function E(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 r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:S}}function S(){return{value:void 0,done:!0}}return d.prototype=p,s(y,"constructor",p),s(p,"constructor",d),d.displayName=s(p,o,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,s(e,o,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},g(b.prototype),s(b.prototype,a,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,i,a){void 0===a&&(a=Promise);var o=new b(u(t,n,r,i),a);return e.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},g(y),s(y,o,"Generator"),s(y,i,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=E,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return o.type="throw",o.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,c):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),c},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),c}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},e}function Q(e,t,n,r,i,a,o){try{var s=e[a](o),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function J(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){Q(a,r,i,o,s,"next",e)}function s(e){Q(a,r,i,o,s,"throw",e)}o(void 0)}))}}function ee(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=u(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function te(e){var t="number"==typeof e.which?e.which:e.keyCode;13!==t&&32!==t||(e.preventDefault(),e.currentTarget.click())}function ne(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return"string"==typeof e})).reduce((function(e,t){return e.concat(t.split(" "))}),[]).map((function(e){return e.trim()})).filter((function(e){return!!e})).join(" ")}function re(e,t,n,r,i){var a=r?1:-1,o=e[n];return t===n||(i?i(o):"none"!==getComputedStyle(o).display)?o:(n+a>=e.length?n=0:n+a<0?n=e.length-1:n+=a,re(e,t,n,r))}!function(e){e[e.Selected=0]="Selected",e[e.Unselected=1]="Unselected",e[e.Waiting=2]="Waiting"}(C||(C={}));var ie=function(e){var t=e.id,n=e.className,r=e.style,i=e.ariaLabel,a=e.ariaHidden,o=e.ariaDescribedBy,s=e.ariaControls,u=e.ariaExpanded,l=e.ariaHasPopup,c=e.ariaPosInSet,f=e.ariaSetSize,d=e.ariaSelected,p=e.ariaPressed,h=e.role,m=e.onClick,v=e.onKeydown,y=e.onBlur,g=e.buttonRef,b=e.title,w=e.label,x=e.leftIcon,k=e.rightIcon,_=e.hardDisabled,S=e.href,O=e.target,A=e.tabIndex,C=e.children,T=e.disabled,N=ne("common-button",n,(T=T||_)&&"disabled");return(0,E.jsxs)("button",{id:t,className:N,style:r,title:b,ref:g,onClick:T?void 0:function(e){m&&m(),S&&window.open(S,O||"_blank","noopener,noreferrer"),e.stopPropagation(),e.preventDefault()},onKeyDown:v||te,onBlur:y,role:h||"button",tabIndex:A||(T?-1:0),disabled:_,"aria-label":i,"aria-hidden":a,"aria-controls":s,"aria-expanded":u,"aria-haspopup":l,"aria-posinset":c,"aria-setsize":f,"aria-describedby":o,"aria-selected":d,"aria-pressed":p,children:[(x||k||w)&&(0,E.jsxs)("span",{className:"common-button-flex",children:[x&&(0,E.jsx)("i",{className:x,"aria-hidden":!0}),(0,E.jsx)("span",{className:"common-button-label",children:w}),k&&(0,E.jsx)("i",{className:"right "+k,"aria-hidden":!0})]}),C]})},ae=function(e){var t,n,r=e.id,i=e.className,a=e.role,o=e.ariaHidden,s=e.ariaLabel,u=e.childTabStopId,l=e.children,c=e.onItemReceivedFocus,f=e.useUpAndDownArrowKeys,d=function(e){return"true"===e.getAttribute("data-isfocusable")&&"none"!==getComputedStyle(e).display};return(0,E.jsx)("div",{id:r,className:i,role:a,tabIndex:u?void 0:0,onKeyDown:function(e){var r;if(null!==(r=t)&&void 0!==r&&r.length){var i=document.activeElement,a=t.indexOf(i),o=function(e){e.focus(),c&&c(e)};-1===a&&i!==n||("Enter"===e.key||" "===e.key?(e.preventDefault(),e.stopPropagation(),i.click?i.click():i.dispatchEvent(new Event("click"))):e.key===(f?"ArrowDown":"ArrowRight")?(a===t.length-1||i===n?o(re(t,a,0,!0,d)):o(re(t,a,a+1,!0,d)),e.preventDefault(),e.stopPropagation()):e.key===(f?"ArrowUp":"ArrowLeft")?(o(re(t,a,0===a||i===n?t.length-1:a-1,!1,d)),e.preventDefault(),e.stopPropagation()):"Home"===e.key?(o(re(t,a,0,!0,d)),e.preventDefault(),e.stopPropagation()):"End"===e.key&&(o(re(t,a,t.length-1,!0,d)),e.preventDefault(),e.stopPropagation()))}},ref:function(e){if(e&&!n){n=e;var r=e.querySelectorAll('[tabindex]:not([tabindex="-1"]),[data-isfocusable]');t=[];var i,a=ee(r.values());try{for(a.s();!(i=a.n()).done;){var o=i.value;t.push(o),o.setAttribute("tabindex","-1"),o.setAttribute("data-isfocusable","true")}}catch(e){a.e(e)}finally{a.f()}if(u){var s=n.querySelector("#"+u);s&&s.setAttribute("tabindex","0")}}},"aria-hidden":o,"aria-label":s,children:l})},oe=function(e){var t,n,r=e.id,i=e.className,o=e.inputClassName,s=e.groupClassName,u=e.role,c=e.ariaHidden,f=e.ariaLabel,d=e.initialValue,p=e.label,h=e.title,m=e.placeholder,v=e.icon,y=e.iconTitle,g=e.disabled,b=e.type,w=e.readOnly,x=e.autoComplete,k=e.selectOnClick,_=e.onChange,S=e.onEnterKey,O=e.onIconClick,A=e.onBlur,C=e.onOptionSelected,T=e.handleInputRef,N=e.preserveValueOnBlur,j=e.options,P=l(a.useState(void 0),2),R=P[0],I=P[1],L=l(a.useState(!1),2),M=L[0],B=L[1],D=function(e){return e&&-1!=Object.values(j).indexOf(e)?"dropdown-item-".concat(e):void 0};return(0,E.jsxs)("div",{className:ne("common-input-wrapper",g&&"disabled",i),onBlur:function(e){M&&!n.contains(e.relatedTarget)&&B(!1)},ref:function(e){e&&(n=e)},children:[p&&(0,E.jsx)("label",{className:"common-input-label",htmlFor:r,children:p}),(0,E.jsxs)("div",{className:ne("common-input-group",s),children:[(0,E.jsx)("input",{id:r,className:ne("common-input",v&&"has-icon",o),title:h,role:u||"textbox",tabIndex:g?-1:0,"aria-label":f,"aria-hidden":c,type:b||"text",placeholder:m,value:void 0!==R?R:d||"",readOnly:!!w,onClick:function(e){k&&e.target.select(),j&&!M&&B(!0)},onChange:function(e){var t=e.target.value;w||R===t||I(t),_&&_(t)},onKeyDown:function(t){var n="number"==typeof t.which?t.which:t.keyCode;if(13===n||e.treatSpaceAsEnter&&32===n)S&&(t.preventDefault(),S(R));else if(j&&M&&"ArrowDown"===t.key){var r;null===(r=document.getElementById(D(Object.values(j)[0])))||void 0===r||r.focus(),t.preventDefault(),t.stopPropagation()}else if(j&&M&&"ArrowUp"===t.key){var i,a=Object.values(j);null===(i=document.getElementById(D(a[a.length-1])))||void 0===i||i.focus(),t.preventDefault(),t.stopPropagation()}},onBlur:function(){A&&A(R),N||I(void 0)},autoComplete:x?"":"off",autoCorrect:x?"":"off",autoCapitalize:x?"":"off",spellCheck:x,disabled:g,ref:T}),v&&(O?(0,E.jsx)(ie,{leftIcon:v,title:y,disabled:g,onClick:function(){O&&O(R)}}):(0,E.jsx)("i",{className:v,"aria-hidden":!0})),j&&(0,E.jsx)(ie,{leftIcon:M?"fas fa-chevron-up":"fas fa-chevron-down",title:y,disabled:g,ariaHasPopup:"listbox",ariaExpanded:M,ariaLabel:f,onClick:function(){j&&B(!M)}})]}),M&&(0,E.jsx)(ae,{role:"listbox",className:"common-menu-dropdown-pane common-dropdown-shadow",childTabStopId:null!==(t=D(R))&&void 0!==t?t:D(Object.values(j)[0]),"aria-labelledby":r,useUpAndDownArrowKeys:!0,children:(0,E.jsx)("ul",{role:"presentation",children:Object.keys(j).map((function(e){return(0,E.jsx)("li",{role:"presentation",children:(0,E.jsx)(ie,{title:e,label:e,id:D(j[e]),className:ne("common-dropdown-item"),onClick:function(){return function(e){var t;B(!1);var n=j[e];I(n),C&&C(n),null===(t=document.getElementById(r))||void 0===t||t.focus()}(e)},ariaSelected:D(j[e])===D(null!=R?R:d),role:"option"})},e)}))})})]})},se=function(e){var t=e.id,n=e.className,r=e.ariaLabel,i=e.href,a=e.target,o=e.children,s=e.tabIndex,u=ne("common-link",n);return(0,E.jsx)("a",{id:t,className:u,"aria-label":r,href:i,target:a,rel:"_blank"===a?"noopener noreferrer":"",tabIndex:null!=s?s:0,children:o})};function ue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function le(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ce(e,t,n){return t&&le(e.prototype,t),n&&le(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function fe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function de(e,t){return(de=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function pe(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&de(e,t)}function he(e){return(he=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function me(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function ve(e,t){if(t&&("object"===K(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return fe(e)}function ye(e){var t=me();return function(){var n,r=he(e);if(t){var i=he(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return ve(this,n)}}function ge(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=he(e)););return e}function be(){return(be="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=ge(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}}).apply(this,arguments)}function we(e,t,n){return(we=me()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&de(i,n.prototype),i}).apply(null,arguments)}function xe(e){var t="function"==typeof Map?new Map:void 0;return(xe=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return we(e,arguments,he(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),de(r,e)})(e)}var ke=Object.create(null);ke.open="0",ke.close="1",ke.ping="2",ke.pong="3",ke.message="4",ke.upgrade="5",ke.noop="6";var _e=Object.create(null);Object.keys(ke).forEach((function(e){_e[ke[e]]=e}));for(var Ee={type:"error",data:"parser error"},Se="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),Oe="function"==typeof ArrayBuffer,Ae=function(e,t){var n=new FileReader;return n.onload=function(){var e=n.result.split(",")[1];t("b"+e)},n.readAsDataURL(e)},Ce=function(e,t,n){var r,i=e.type,a=e.data;return Se&&a instanceof Blob?t?n(a):Ae(a,n):Oe&&(a instanceof ArrayBuffer||(r=a,"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(r):r&&r.buffer instanceof ArrayBuffer))?t?n(a):Ae(new Blob([a]),n):n(ke[i]+(a||""))},Te="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ne="undefined"==typeof Uint8Array?[]:new Uint8Array(256),je=0;je<Te.length;je++)Ne[Te.charCodeAt(je)]=je;var Pe="function"==typeof ArrayBuffer,Re=function(e,t){if(Pe){var n=function(e){var t,n,r,i,a,o=.75*e.length,s=e.length,u=0;"="===e[e.length-1]&&(o--,"="===e[e.length-2]&&o--);var l=new ArrayBuffer(o),c=new Uint8Array(l);for(t=0;t<s;t+=4)n=Ne[e.charCodeAt(t)],r=Ne[e.charCodeAt(t+1)],i=Ne[e.charCodeAt(t+2)],a=Ne[e.charCodeAt(t+3)],c[u++]=n<<2|r>>4,c[u++]=(15&r)<<4|i>>2,c[u++]=(3&i)<<6|63&a;return l}(e);return Ie(n,t)}return{base64:!0,data:e}},Ie=function(e,t){return"blob"===t&&e instanceof ArrayBuffer?new Blob([e]):e},Le=function(e,t){if("string"!=typeof e)return{type:"message",data:Ie(e,t)};var n=e.charAt(0);return"b"===n?{type:"message",data:Re(e.substring(1),t)}:_e[n]?e.length>1?{type:_e[n],data:e.substring(1)}:{type:_e[n]}:Ee},Me=String.fromCharCode(30);function Be(e){if(e)return function(e){for(var t in Be.prototype)e[t]=Be.prototype[t];return e}(e)}Be.prototype.on=Be.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},Be.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},Be.prototype.off=Be.prototype.removeListener=Be.prototype.removeAllListeners=Be.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var i=0;i<r.length;i++)if((n=r[i])===t||n.fn===t){r.splice(i,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},Be.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var i=(n=n.slice(0)).length;r<i;++r)n[r].apply(this,t)}return this},Be.prototype.emitReserved=Be.prototype.emit,Be.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},Be.prototype.hasListeners=function(e){return!!this.listeners(e).length};var De="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")();function Ue(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce((function(t,n){return e.hasOwnProperty(n)&&(t[n]=e[n]),t}),{})}var Fe=setTimeout,ze=clearTimeout;function Ve(e,t){t.useNativeTimers?(e.setTimeoutFn=Fe.bind(De),e.clearTimeoutFn=ze.bind(De)):(e.setTimeoutFn=setTimeout.bind(De),e.clearTimeoutFn=clearTimeout.bind(De))}var He,We=function(e){pe(n,e);var t=ye(n);function n(e,r,i){var a;return ue(this,n),(a=t.call(this,e)).description=r,a.context=i,a.type="TransportError",a}return ce(n)}(xe(Error)),qe=function(e){pe(n,e);var t=ye(n);function n(e){var r;return ue(this,n),(r=t.call(this)).writable=!1,Ve(fe(r),e),r.opts=e,r.query=e.query,r.readyState="",r.socket=e.socket,r}return ce(n,[{key:"onError",value:function(e,t,r){return be(he(n.prototype),"emitReserved",this).call(this,"error",new We(e,t,r)),this}},{key:"open",value:function(){return"closed"!==this.readyState&&""!==this.readyState||(this.readyState="opening",this.doOpen()),this}},{key:"close",value:function(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}},{key:"send",value:function(e){"open"===this.readyState&&this.write(e)}},{key:"onOpen",value:function(){this.readyState="open",this.writable=!0,be(he(n.prototype),"emitReserved",this).call(this,"open")}},{key:"onData",value:function(e){var t=Le(e,this.socket.binaryType);this.onPacket(t)}},{key:"onPacket",value:function(e){be(he(n.prototype),"emitReserved",this).call(this,"packet",e)}},{key:"onClose",value:function(e){this.readyState="closed",be(he(n.prototype),"emitReserved",this).call(this,"close",e)}}]),n}(Be),Ge="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),Ze={},Ye=0,$e=0;function Ke(e){var t="";do{t=Ge[e%64]+t,e=Math.floor(e/64)}while(e>0);return t}function Xe(){var e=Ke(+new Date);return e!==He?(Ye=0,He=e):e+"."+Ke(Ye++)}for(;$e<64;$e++)Ze[Ge[$e]]=$e;function Qe(e){var t="";for(var n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function Je(e){for(var t={},n=e.split("&"),r=0,i=n.length;r<i;r++){var a=n[r].split("=");t[decodeURIComponent(a[0])]=decodeURIComponent(a[1])}return t}var et=!1;try{et="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}var tt=et;function nt(e){var t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||tt))return new XMLHttpRequest}catch(e){}if(!t)try{return new(De[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(e){}}function rt(){}var it=null!=new nt({xdomain:!1}).responseType,at=function(e){pe(n,e);var t=ye(n);function n(e){var r;if(ue(this,n),(r=t.call(this,e)).polling=!1,"undefined"!=typeof location){var i="https:"===location.protocol,a=location.port;a||(a=i?"443":"80"),r.xd="undefined"!=typeof location&&e.hostname!==location.hostname||a!==e.port,r.xs=e.secure!==i}var o=e&&e.forceBase64;return r.supportsBinary=it&&!o,r}return ce(n,[{key:"name",get:function(){return"polling"}},{key:"doOpen",value:function(){this.poll()}},{key:"pause",value:function(e){var t=this;this.readyState="pausing";var n=function(){t.readyState="paused",e()};if(this.polling||!this.writable){var r=0;this.polling&&(r++,this.once("pollComplete",(function(){--r||n()}))),this.writable||(r++,this.once("drain",(function(){--r||n()})))}else n()}},{key:"poll",value:function(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}},{key:"onData",value:function(e){var t=this;(function(e,t){for(var n=e.split(Me),r=[],i=0;i<n.length;i++){var a=Le(n[i],t);if(r.push(a),"error"===a.type)break}return r})(e,this.socket.binaryType).forEach((function(e){if("opening"===t.readyState&&"open"===e.type&&t.onOpen(),"close"===e.type)return t.onClose({description:"transport closed by the server"}),!1;t.onPacket(e)})),"closed"!==this.readyState&&(this.polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this.poll())}},{key:"doClose",value:function(){var e=this,t=function(){e.write([{type:"close"}])};"open"===this.readyState?t():this.once("open",t)}},{key:"write",value:function(e){var t=this;this.writable=!1,function(e,t){var n=e.length,r=new Array(n),i=0;e.forEach((function(e,a){Ce(e,!1,(function(e){r[a]=e,++i===n&&t(r.join(Me))}))}))}(e,(function(e){t.doWrite(e,(function(){t.writable=!0,t.emitReserved("drain")}))}))}},{key:"uri",value:function(){var e=this.query||{},t=this.opts.secure?"https":"http",n="";!1!==this.opts.timestampRequests&&(e[this.opts.timestampParam]=Xe()),this.supportsBinary||e.sid||(e.b64=1),this.opts.port&&("https"===t&&443!==Number(this.opts.port)||"http"===t&&80!==Number(this.opts.port))&&(n=":"+this.opts.port);var r=Qe(e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+n+this.opts.path+(r.length?"?"+r:"")}},{key:"request",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign(e,{xd:this.xd,xs:this.xs},this.opts),new ot(this.uri(),e)}},{key:"doWrite",value:function(e,t){var n=this,r=this.request({method:"POST",data:e});r.on("success",t),r.on("error",(function(e,t){n.onError("xhr post error",e,t)}))}},{key:"doPoll",value:function(){var e=this,t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(function(t,n){e.onError("xhr poll error",t,n)})),this.pollXhr=t}}]),n}(qe),ot=function(e){pe(n,e);var t=ye(n);function n(e,r){var i;return ue(this,n),Ve(fe(i=t.call(this)),r),i.opts=r,i.method=r.method||"GET",i.uri=e,i.async=!1!==r.async,i.data=void 0!==r.data?r.data:null,i.create(),i}return ce(n,[{key:"create",value:function(){var e=this,t=Ue(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd,t.xscheme=!!this.opts.xs;var r=this.xhr=new nt(t);try{r.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders)for(var i in r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0),this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(i)&&r.setRequestHeader(i,this.opts.extraHeaders[i])}catch(e){}if("POST"===this.method)try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{r.setRequestHeader("Accept","*/*")}catch(e){}"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=function(){4===r.readyState&&(200===r.status||1223===r.status?e.onLoad():e.setTimeoutFn((function(){e.onError("number"==typeof r.status?r.status:0)}),0))},r.send(this.data)}catch(t){return void this.setTimeoutFn((function(){e.onError(t)}),0)}"undefined"!=typeof document&&(this.index=n.requestsCount++,n.requests[this.index]=this)}},{key:"onError",value:function(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}},{key:"cleanup",value:function(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=rt,e)try{this.xhr.abort()}catch(e){}"undefined"!=typeof document&&delete n.requests[this.index],this.xhr=null}}},{key:"onLoad",value:function(){var e=this.xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}},{key:"abort",value:function(){this.cleanup()}}]),n}(Be);function st(){for(var e in ot.requests)ot.requests.hasOwnProperty(e)&&ot.requests[e].abort()}ot.requestsCount=0,ot.requests={},"undefined"!=typeof document&&("function"==typeof attachEvent?attachEvent("onunload",st):"function"==typeof addEventListener&&addEventListener("onpagehide"in De?"pagehide":"unload",st,!1));var ut="function"==typeof Promise&&"function"==typeof Promise.resolve?function(e){return Promise.resolve().then(e)}:function(e,t){return t(e,0)},lt=De.WebSocket||De.MozWebSocket,ct=(n(918).Buffer,"undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase()),ft={websocket:function(e){pe(n,e);var t=ye(n);function n(e){var r;return ue(this,n),(r=t.call(this,e)).supportsBinary=!e.forceBase64,r}return ce(n,[{key:"name",get:function(){return"websocket"}},{key:"doOpen",value:function(){if(this.check()){var e=this.uri(),t=this.opts.protocols,n=ct?{}:Ue(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=ct?new lt(e,t,n):t?new lt(e,t):new lt(e)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType||"arraybuffer",this.addEventListeners()}}},{key:"addEventListeners",value:function(){var e=this;this.ws.onopen=function(){e.opts.autoUnref&&e.ws._socket.unref(),e.onOpen()},this.ws.onclose=function(t){return e.onClose({description:"websocket connection closed",context:t})},this.ws.onmessage=function(t){return e.onData(t.data)},this.ws.onerror=function(t){return e.onError("websocket error",t)}}},{key:"write",value:function(e){var t=this;this.writable=!1;for(var n=function(n){var r=e[n],i=n===e.length-1;Ce(r,t.supportsBinary,(function(e){try{t.ws.send(e)}catch(e){}i&&ut((function(){t.writable=!0,t.emitReserved("drain")}),t.setTimeoutFn)}))},r=0;r<e.length;r++)n(r)}},{key:"doClose",value:function(){void 0!==this.ws&&(this.ws.close(),this.ws=null)}},{key:"uri",value:function(){var e=this.query||{},t=this.opts.secure?"wss":"ws",n="";this.opts.port&&("wss"===t&&443!==Number(this.opts.port)||"ws"===t&&80!==Number(this.opts.port))&&(n=":"+this.opts.port),this.opts.timestampRequests&&(e[this.opts.timestampParam]=Xe()),this.supportsBinary||(e.b64=1);var r=Qe(e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+n+this.opts.path+(r.length?"?"+r:"")}},{key:"check",value:function(){return!!lt}}]),n}(qe),polling:at},dt=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,pt=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function ht(e){var t=e,n=e.indexOf("["),r=e.indexOf("]");-1!=n&&-1!=r&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));for(var i=dt.exec(e||""),a={},o=14;o--;)a[pt[o]]=i[o]||"";return-1!=n&&-1!=r&&(a.source=t,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a.pathNames=function(e,t){var n=t.replace(/\/{2,9}/g,"/").split("/");return"/"!=t.substr(0,1)&&0!==t.length||n.splice(0,1),"/"==t.substr(t.length-1,1)&&n.splice(n.length-1,1),n}(0,a.path),a.queryKey=function(e,t){var n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,r){t&&(n[t]=r)})),n}(0,a.query),a}var mt=function(e){pe(n,e);var t=ye(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return ue(this,n),r=t.call(this),e&&"object"==typeof e&&(i=e,e=null),e?(e=ht(e),i.hostname=e.host,i.secure="https"===e.protocol||"wss"===e.protocol,i.port=e.port,e.query&&(i.query=e.query)):i.host&&(i.hostname=ht(i.host).host),Ve(fe(r),i),r.secure=null!=i.secure?i.secure:"undefined"!=typeof location&&"https:"===location.protocol,i.hostname&&!i.port&&(i.port=r.secure?"443":"80"),r.hostname=i.hostname||("undefined"!=typeof location?location.hostname:"localhost"),r.port=i.port||("undefined"!=typeof location&&location.port?location.port:r.secure?"443":"80"),r.transports=i.transports||["polling","websocket"],r.readyState="",r.writeBuffer=[],r.prevBufferLen=0,r.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!0},i),r.opts.path=r.opts.path.replace(/\/$/,"")+"/","string"==typeof r.opts.query&&(r.opts.query=Je(r.opts.query)),r.id=null,r.upgrades=null,r.pingInterval=null,r.pingTimeout=null,r.pingTimeoutTimer=null,"function"==typeof addEventListener&&(r.opts.closeOnBeforeunload&&addEventListener("beforeunload",(function(){r.transport&&(r.transport.removeAllListeners(),r.transport.close())}),!1),"localhost"!==r.hostname&&(r.offlineEventListener=function(){r.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",r.offlineEventListener,!1))),r.open(),r}return ce(n,[{key:"createTransport",value:function(e){var t=Object.assign({},this.opts.query);t.EIO=4,t.transport=e,this.id&&(t.sid=this.id);var n=Object.assign({},this.opts.transportOptions[e],this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return new ft[e](n)}},{key:"open",value:function(){var e,t=this;if(this.opts.rememberUpgrade&&n.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn((function(){t.emitReserved("error","No transports available")}),0);e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(e){return this.transports.shift(),void this.open()}e.open(),this.setTransport(e)}},{key:"setTransport",value:function(e){var t=this;this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",(function(e){return t.onClose("transport close",e)}))}},{key:"probe",value:function(e){var t=this,r=this.createTransport(e),i=!1;n.priorWebsocketSuccess=!1;var a=function(){i||(r.send([{type:"ping",data:"probe"}]),r.once("packet",(function(e){if(!i)if("pong"===e.type&&"probe"===e.data){if(t.upgrading=!0,t.emitReserved("upgrading",r),!r)return;n.priorWebsocketSuccess="websocket"===r.name,t.transport.pause((function(){i||"closed"!==t.readyState&&(f(),t.setTransport(r),r.send([{type:"upgrade"}]),t.emitReserved("upgrade",r),r=null,t.upgrading=!1,t.flush())}))}else{var a=new Error("probe error");a.transport=r.name,t.emitReserved("upgradeError",a)}})))};function o(){i||(i=!0,f(),r.close(),r=null)}var s=function(e){var n=new Error("probe error: "+e);n.transport=r.name,o(),t.emitReserved("upgradeError",n)};function u(){s("transport closed")}function l(){s("socket closed")}function c(e){r&&e.name!==r.name&&o()}var f=function(){r.removeListener("open",a),r.removeListener("error",s),r.removeListener("close",u),t.off("close",l),t.off("upgrading",c)};r.once("open",a),r.once("error",s),r.once("close",u),this.once("close",l),this.once("upgrading",c),r.open()}},{key:"onOpen",value:function(){if(this.readyState="open",n.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade&&this.transport.pause)for(var e=0,t=this.upgrades.length;e<t;e++)this.probe(this.upgrades[e])}},{key:"onPacket",value:function(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.resetPingTimeout(),this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":var t=new Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data)}}},{key:"onHandshake",value:function(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.maxPayload=e.maxPayload,this.onOpen(),"closed"!==this.readyState&&this.resetPingTimeout()}},{key:"resetPingTimeout",value:function(){var e=this;this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn((function(){e.onClose("ping timeout")}),this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}},{key:"onDrain",value:function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}},{key:"flush",value:function(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){var e=this.getWritablePackets();this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}},{key:"getWritablePackets",value:function(){if(!(this.maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;for(var e,t=1,n=0;n<this.writeBuffer.length;n++){var r=this.writeBuffer[n].data;if(r&&(t+="string"==typeof(e=r)?function(e){for(var t=0,n=0,r=0,i=e.length;r<i;r++)(t=e.charCodeAt(r))<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}(e):Math.ceil(1.33*(e.byteLength||e.size))),n>0&&t>this.maxPayload)return this.writeBuffer.slice(0,n);t+=2}return this.writeBuffer}},{key:"write",value:function(e,t,n){return this.sendPacket("message",e,t,n),this}},{key:"send",value:function(e,t,n){return this.sendPacket("message",e,t,n),this}},{key:"sendPacket",value:function(e,t,n,r){if("function"==typeof t&&(r=t,t=void 0),"function"==typeof n&&(r=n,n=null),"closing"!==this.readyState&&"closed"!==this.readyState){(n=n||{}).compress=!1!==n.compress;var i={type:e,data:t,options:n};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),r&&this.once("flush",r),this.flush()}}},{key:"close",value:function(){var e=this,t=function(){e.onClose("forced close"),e.transport.close()},n=function n(){e.off("upgrade",n),e.off("upgradeError",n),t()},r=function(){e.once("upgrade",n),e.once("upgradeError",n)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",(function(){e.upgrading?r():t()})):this.upgrading?r():t()),this}},{key:"onError",value:function(e){n.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}},{key:"onClose",value:function(e,t){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"==typeof removeEventListener&&removeEventListener("offline",this.offlineEventListener,!1),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}},{key:"filterUpgrades",value:function(e){for(var t=[],n=0,r=e.length;n<r;n++)~this.transports.indexOf(e[n])&&t.push(e[n]);return t}}]),n}(Be);mt.protocol=4,mt.protocol;var vt,yt=n(1398),gt=function(e){pe(n,pxt.auth.AuthClient);var t=ye(n);function n(){return ue(this,n),t.apply(this,arguments)}return ce(n,[{key:"onSignedIn",value:function(){var e=J(X().mark((function e(){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=mr,e.next=3,this.firstNameAsync();case 3:return e.t1=e.sent,e.next=6,(0,e.t0)(e.t1);case 6:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"onSignedOut",value:function(){var e=J(X().mark((function e(){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,yr(void 0);case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"onSignInFailed",value:function(){return Promise.resolve()}},{key:"onUserProfileChanged",value:function(){var e=J(X().mark((function e(){var t;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,pxt.auth.getUserStateAsync();case 2:return null!==(t=e.sent)&&void 0!==t&&t.profile&&pxt.auth.generateUserProfilePicDataUrl(t.profile),e.next=6,yr(t.profile);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"onUserPreferencesChanged",value:function(e){return Promise.resolve()}},{key:"onStateCleared",value:function(){return Promise.resolve()}},{key:"onProfileDeleted",value:function(){var e=J(X().mark((function e(t){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"onApiError",value:function(e){return Promise.resolve()}},{key:"firstNameAsync",value:function(){var e=J(X().mark((function e(){var t;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,pxt.auth.getUserStateAsync();case 2:return t=e.sent,e.abrupt("return",pxt.auth.firstName(null==t?void 0:t.profile));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()}]),n}();function bt(){return wt.apply(this,arguments)}function wt(){return(wt=J(X().mark((function e(){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(pxt.auth.hasIdentity()){e.next=2;break}return e.abrupt("return",void 0);case 2:if(!vt){e.next=4;break}return e.abrupt("return",vt);case 4:return vt=new Promise(function(){var e=J(X().mark((function e(t,n){var r;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=new gt,e.next=3,r.initAsync();case 3:return e.next=5,r.authCheckAsync();case 5:return e.next=7,r.initialUserPreferencesAsync();case 7:t(r);case 8:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()),e.abrupt("return",vt);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function xt(){return(xt=J(X().mark((function e(){var t,n;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,bt();case 2:if(t=e.sent,!(n=pxt.Util.parseQueryString(window.location.href)).authcallback){e.next=9;break}return e.next=7,pxt.auth.loginCallbackAsync(n);case 7:e.next=12;break;case 9:return e.next=11,null==t?void 0:t.authCheckAsync();case 11:return e.abrupt("return",e.sent);case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function kt(e){return _t.apply(this,arguments)}function _t(){return(_t=J(X().mark((function e(t){var n;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,bt();case 2:return n=e.sent,e.next=5,null==n?void 0:n.logoutAsync(t);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Et(e,t,n){return St.apply(this,arguments)}function St(){return(St=J(X().mark((function e(t,n,r){var i;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,bt();case 2:return i=e.sent,e.next=5,null==i?void 0:i.loginAsync(t,n,r);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ot(){return At.apply(this,arguments)}function At(){return(At=J(X().mark((function e(){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,pxt.auth.getAuthTokenAsync();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Ct=n(1899),Tt=n.n(Ct);function Nt(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++)e[r]^=t[r];return e}function jt(e){return new Promise((function(t,n){Tt().gzip(e,(function(e,r){e?n(e):t(r)}))}))}function Pt(e){return new Promise((function(t,n){Tt().gunzip(e,(function(e,r){e?n(e):t(r)}))}))}function Rt(e){try{var t,n=new URL(e||"");n.searchParams.has("join")&&(e=null!==(t=n.searchParams.get("join"))&&void 0!==t?t:void 0)}catch(e){}if(e&&6===(e=e.toUpperCase().replace(/[^A-Z0-9]/g,"")).length)return e}function It(e){try{var t,n=new URL(e||"");n.searchParams.has("host")&&(e=null!==(t=n.searchParams.get("host"))&&void 0!==t?t:void 0)}catch(e){}if(e)return pxt.Cloud.parseScriptId(e)}function Lt(e){var t;if(e)return!pxt.BrowserUtils.isLocalHostDev()||e.startsWith("https:")||e.startsWith("data:")?e:(null===(t=pxt.appTarget)||void 0===t?void 0:t.appTheme.homeUrl)+e}var Mt,Bt,Dt=n(8466),Ut=function(e){var t;return Mt&&!e||(Mt=new pxt.MainPackage((null===(t=Mt)||void 0===t?void 0:t.host())||new Zt)),Mt};function Ft(e){return zt.apply(this,arguments)}function zt(){return(zt=J(X().mark((function e(t){var n,r,i;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n="server"===t.mpRole?"pub:".concat(t.id):"empty:clientprj",(null===(r=Ut())||void 0===r?void 0:r._verspec)===n&&!n.startsWith("pub:S")){e.next=10;break}return(i=Ut(!0)).host().cacheStoreAsync(n,void 0),i._verspec=n,e.next=8,i.host().downloadPackageAsync(Ut(),[]);case 8:return e.next=10,Ut().installAllAsync();case 10:try{"client"===t.mpRole&&(Ht(Ut()).files[pxt.MAIN_TS]="multiplayer.init()")}catch(e){Dt.error(lf("Cannot load extension: {0}",e))}case 11:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Vt(e,t){var n={},r=Object.keys(t.fileSystem).sort().join(";");return n[r]||(n[r]=pxtc.getApiInfo(e,t.jres)),n[r]}function Ht(e){var t=e._editorPkg;if(t)return t;var n=void 0;e!=Ut()&&(n=Ht(Ut()));var r=new Wt(e,n);return e==Ut()&&(r.topPkg=r),e._editorPkg=r,r}pxt.react.getTilemapProject||(pxt.react.getTilemapProject=function(){return Bt||(Bt=new pxt.TilemapProject).loadPackage(Ut()),Bt});var Wt=function(){function e(t,n){ue(this,e),this.ksPkg=t,this.topPkg=n,this.files={},this.id=void 0}return ce(e,[{key:"getKsPkg",value:function(){return this.ksPkg}},{key:"getPkgId",value:function(){return this.ksPkg?this.ksPkg.id:this.id}},{key:"isTopLevel",value:function(){return this.ksPkg&&0==this.ksPkg.level}},{key:"setFiles",value:function(e){this.files=e}},{key:"getAllFiles",value:function(){return pxt.Util.mapMap(this.files,(function(e,t){return t}))}}]),e}();function qt(){var e=pxt.appTarget.tsprj,t=pxt.U.clone(e.files);return t[pxt.CONFIG_NAME]=pxt.Package.stringifyConfig(e.config),t[pxt.MAIN_BLOCKS]="",t}var Gt,Zt=function(){function e(){ue(this,e),this.githubPackageCache={}}return ce(e,[{key:"readFile",value:function(e,t){var n=Ht(e);return pxt.U.lookup(n.files,t)}},{key:"writeFile",value:function(e,t,n){Ht(e).files[t]=n}},{key:"getHexInfoAsync",value:function(e){return pxt.hexloader.getHexInfoAsync(this,e)}},{key:"cacheStoreAsync",value:function(){var e=J(X().mark((function e(t,n){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{this.githubPackageCache[t]=n?JSON.parse(n):void 0}catch(e){}case 1:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"cacheGetAsync",value:function(){var e=J(X().mark((function e(t){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",null);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"patchDependencies",value:function(e,t,n){if(!n)return!1;var r=pxt.github.parseRepoId(n);if(!r)return!1;for(var i=0,a=Object.keys(e.dependencies);i<a.length;i++){var o=a[i],s=e.dependencies[o],u=pxt.github.parseRepoId(s);if(u&&r.fullName==u.fullName)return pxt.semver.strcmp(r.tag,u.tag)<0&&(e.dependencies[o]=n),!0}return!1}},{key:"downloadPackageAsync",value:function(e,t){var n=this,r=e.verProtocol(),i=void 0;"github"!=r&&"pub"!=r||(i=this.githubPackageCache[e._verspec]);var a=Ht(e);return(i?Promise.resolve(i):e.commonDownloadAsync()).then((function(o){if(o)return"github"!=r&&"pub"!=r||i||(n.githubPackageCache[e._verspec]=pxt.Util.clone(o)),a.setFiles(o),Promise.resolve();if("empty"==r){if(0==Object.keys(a.files).length&&a.setFiles(qt()),t&&t.length){var s=Ht(e).files,u=JSON.parse(s[pxt.CONFIG_NAME]);t.forEach((function(e){n.addPackageToConfig(u,e)})),s[pxt.CONFIG_NAME]=pxt.Package.stringifyConfig(u)}return Promise.resolve()}if("docs"==r){var l=qt(),c=JSON.parse(l[pxt.CONFIG_NAME]);return e.verArgument().split(",").forEach((function(e){n.addPackageToConfig(c,e)})),c.yotta||(c.yotta={}),c.yotta.ignoreConflicts=!0,l[pxt.CONFIG_NAME]=pxt.Package.stringifyConfig(c),a.setFiles(l),Promise.resolve()}return"invalid"==r?(pxt.log("skipping invalid pkg ".concat(e.id)),Promise.resolve()):Promise.reject("Cannot download ".concat(e.version(),"; unknown protocol"))}))}},{key:"addPackageToConfig",value:function(e,t){var n=/^([a-zA-Z0-9_-]+)(=(.+))?$/.exec(t);if(n){if(n[3]&&this.patchDependencies(e,n[1],n[3]))return!1;e.dependencies[n[1]]=n[3]||"*"}else Dt.warn("unknown package syntax ".concat(t));return!0}}]),e}();function Yt(){var e=Ut().getTargetOptions();return Ut().getCompileOptionsAsync(e)}function $t(e){var t={};if("server"!=e.mpRole)return t;var n=e.id;try{var r=window.localStorage.getItem(n);r&&(t=JSON.parse(r))}catch(e){}return t}function Kt(e,t,n){if("server"==e.mpRole){var r=e.id,i=$t(e);null!=n?i[t]=n:delete i[t];try{window.localStorage.setItem(r,JSON.stringify(i))}catch(e){}}}function Xt(e,t){var n=Date.now();return pxt.debug("worker op: "+e),pxt.worker.getWorker(pxt.webConfig.workerjs).opAsync(e,t).then((function(t){return pxt.appTarget.compile.switches.time&&(pxt.log("Worker perf: ".concat(e," ").concat(Date.now()-n,"ms")),t.times&&pxt.debug(t.times)),pxt.debug("worker op done: "+e),t}))}function Qt(e){return Jt.apply(this,arguments)}function Jt(){return(Jt=J(X().mark((function e(t){var n,r;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Yt();case 2:return n=e.sent,t&&t(n),e.next=6,Xt("compile",{options:n});case 6:return(r=e.sent).diagnostics&&r.diagnostics.length>0&&r.diagnostics.forEach((function(e){Dt.error(e.messageText)})),e.abrupt("return",r);case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function en(e){if(Gt||(Gt=new pxsim.SimulatorDriver(e)),e&&(Gt.container=e),Gt.container)return Gt}function tn(e,t,n){var r,i=en(e),a=n||{},o=a.fnArgs,s=a.parts,u=a.usedBuiltinParts,l=null===(r=pxt.appTarget.simulator)||void 0===r?void 0:r.boardDefinition,c={debug:!0,mute:t.mute,boardDefinition:l,parts:s,builtinParts:u,fnArgs:o,cdnUrl:pxt.webConfig.commitCdnUrl,localizedStrings:pxt.Util.getLocalizedStrings(),storedState:$t(t),single:!0,autofocus:!0,queryParameters:t.simQueryParams,mpRole:t.mpRole};return i.setRunOptions(c),c}function nn(){return(nn=J(X().mark((function e(t,n){var r;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:tn(t,n),null===(r=en())||void 0===r||r.preload(1,!0);case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function rn(e,t){return an.apply(this,arguments)}function an(){return(an=J(X().mark((function e(t,n){var r,i,a,o,s,u;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=n.builtJsInfo,e.t0){e.next=5;break}return e.next=4,on(n);case 4:e.t0=e.sent;case 5:if(a=e.t0,o=a.js){e.next=10;break}return Dt.error("Program failed to compile"),e.abrupt("return",void 0);case 10:return s=tn(t,n,a),(u=en(t)).options.messageSimulators=null===(r=pxt.appTarget)||void 0===r||null===(i=r.simulator)||void 0===i?void 0:i.messageSimulators,u.options.onSimulatorCommand=function(e){"restart"===e.command&&(s.storedState=$t(n),u.run(o,s)),"setstate"==e.command&&e.stateKey&&Kt(n,e.stateKey,e.stateValue)},a.breakpoints&&u.setBreakpoints(a.breakpoints),u.run(o,s),e.abrupt("return",a);case 17:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function on(e){return sn.apply(this,arguments)}function sn(){return(sn=J(X().mark((function e(t){var n,r,i,a,o,s;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ft(t);case 2:return i=!1,a=pxt.appTarget.versions.target,e.next=6,Qt((function(e){var n;if(e.computeUsedParts=!0,e.breakpoints=!0,"client"==t.mpRole&&(e.fileSystem[pxt.MAIN_TS]="multiplayer.init()"),e.target.preferredEditor===pxt.PYTHON_PROJECT_NAME){e.target.preferredEditor=pxt.JAVASCRIPT_PROJECT_NAME,e.ast=!0;var r=Vt(pxtc.compile(e).ast,e);e.apisInfo=r,e.target.preferredEditor=pxt.PYTHON_PROJECT_NAME}var o=null===(n=Ut().config.targetVersions)||void 0===n?void 0:n.target;if(o&&a&&pxt.semver.cmp(pxt.semver.parse(o),pxt.semver.parse(a))<0)for(var s=0,u=Object.keys(e.fileSystem);s<u.length;s++){var l=u[s];!pxt.Util.startsWith(l,"pxt_modules")&&pxt.Util.endsWith(l,".ts")&&(i=!0,e.fileSystem[l]=pxt.patching.patchJavaScript(o,e.fileSystem[l]))}}));case 6:if(o=e.sent,!((null===(n=o.diagnostics)||void 0===n?void 0:n.length)>0&&i)){e.next=12;break}return pxt.log("Compile with upgrade rules failed, trying again with original code"),e.next=11,Qt((function(e){"client"===t.mpRole&&(e.fileSystem[pxt.MAIN_TS]="multiplayer.init()")}));case 11:o=e.sent;case 12:return(null===(r=o.diagnostics)||void 0===r?void 0:r.length)>0&&(Dt.error("Diagnostics",o.diagnostics),_(P("init")),Ln("compile-failed")),(s=pxtc.buildSimJsInfo(o)).parts=o.usedParts,e.abrupt("return",s);case 16:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var un,ln,cn=n(918).Buffer,fn=n(8466),dn=pxt.BrowserUtils.isLocalHostDev()?"https://multiplayer.staging.pxt.io":"arcade.makecode.com"===window.location.hostname?"https://mp.makecode.com":"https://multiplayer.staging.pxt.io",pn=function(){function e(){var t=this;ue(this,e),this.sock=void 0,this.screen=void 0,this.clientRole=void 0,this.gameOverReason=void 0,this.receivedJoinMessageInTimeHandler=void 0,this.paused=!1,this.recvMessageAsync=function(){var e=J(X().mark((function e(n){var r,i,a;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n instanceof ArrayBuffer)){e.next=20;break}r=yt.$.fromBuffer(cn.from(n)),i=r.readUInt16LE(),e.t0=i,e.next=e.t0===ln.Binary.MessageType.CompressedScreen?6:e.t0===ln.Binary.MessageType.Input?9:e.t0===ln.Binary.MessageType.Audio?12:e.t0===ln.Binary.MessageType.Icon?15:18;break;case 6:return e.next=8,t.recvCompressedScreenMessageAsync(r);case 8:case 11:case 14:case 17:case 27:case 30:case 33:case 36:case 39:case 42:case 45:case 48:case 51:return e.abrupt("return",e.sent);case 9:return e.next=11,t.recvInputMessageAsync(r);case 12:return e.next=14,t.recvAudioMessageAsync(r);case 15:return e.next=17,t.recvIconMessageAsync(r);case 18:case 52:e.next=55;break;case 20:if("string"!=typeof n){e.next=54;break}a=JSON.parse(n),e.t1=a.type,e.next="joined"===e.t1?25:"start-game"===e.t1?28:"presence"===e.t1?31:"reaction"===e.t1?34:"player-joined"===e.t1?37:"player-left"===e.t1?40:"game-over"===e.t1?43:"pause-game"===e.t1?46:"resume-game"===e.t1?49:52;break;case 25:return e.next=27,t.recvJoinedMessageAsync(a);case 28:return e.next=30,t.recvStartGameMessageAsync(a);case 31:return e.next=33,t.recvPresenceMessageAsync(a);case 34:return e.next=36,t.recvReactionMessageAsync(a);case 37:return e.next=39,t.recvPlayerJoinedMessageAsync(a);case 40:return e.next=42,t.recvPlayerLeftMessageAsync(a);case 43:return e.next=45,t.recvGameOverMessageAsync(a);case 46:return e.next=48,t.recvPauseGameMessageAsync(a);case 49:return e.next=51,t.recvResumeGameMessageAsync(a);case 54:throw new Error("Unknown payload: ".concat(n));case 55:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.recvMessageWithJoinTimeout=function(){var e=J(X().mark((function e(n,r){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{"string"==typeof n&&"joined"===JSON.parse(n).type&&(t.sock&&(t.sock.removeListener("message",t.receivedJoinMessageInTimeHandler),t.receivedJoinMessageInTimeHandler=void 0),r())}catch(e){fn.error("Error processing message",e),hn(),r()}case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()}return ce(e,[{key:"destroy",value:function(){try{var e;null===(e=this.sock)||void 0===e||e.close(),this.sock=void 0}catch(e){}}},{key:"sendMessage",value:function(e){if(e instanceof cn){var t;null===(t=this.sock)||void 0===t||t.send(e,{},(function(e){e&&pxt.log("Error sending message. "+e.toString())}))}else{var n,r=JSON.stringify(e);null===(n=this.sock)||void 0===n||n.send(r,{},(function(e){e&&pxt.log("Error sending message. "+e.toString())}))}}},{key:"connectAsync",value:function(){var e=J(X().mark((function e(t){var n=this;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,r){var i=setTimeout((function(){r("Timed out connecting to game server"),hn()}),2e4);n.sock=new mt(dn,{transports:["websocket"],path:"/mp"}),n.sock.binaryType="arraybuffer",n.sock.on("open",(function(){var r,a,o;pxt.debug("socket opened"),n.receivedJoinMessageInTimeHandler=function(){var t=J(X().mark((function t(r){return X().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.recvMessageWithJoinTimeout(r,(function(){clearTimeout(i),e()}));case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),null===(r=n.sock)||void 0===r||r.on("message",n.receivedJoinMessageInTimeHandler),null===(a=n.sock)||void 0===a||a.on("message",function(){var e=J(X().mark((function e(t){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,n.recvMessageAsync(t);case 3:e.next=9;break;case 5:e.prev=5,e.t0=e.catch(0),fn.error("Error processing message",e.t0),hn();case 9:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(t){return e.apply(this,arguments)}}()),null===(o=n.sock)||void 0===o||o.on("close",(function(){pxt.debug("socket disconnected"),tr(n.gameOverReason),clearTimeout(i),e()})),n.sendMessage({type:"connect",ticket:t,version:ln.VERSION})}))})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"hostGameAsync",value:function(){var e=J(X().mark((function e(t){var n,r,i;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t=encodeURIComponent(t),e.next=4,Ot();case 4:return n=e.sent,e.next=7,fetch("".concat(dn,"/api/game/host/").concat(t),{credentials:"include",headers:{Authorization:"mkcd "+n}});case 7:if(200===(r=e.sent).status){e.next=10;break}return e.abrupt("return",{success:!1,statusCode:r.status});case 10:return e.next=12,r.json();case 12:if(null!==(i=e.sent)&&void 0!==i&&i.joinTicket){e.next=15;break}throw new Error("Game server did not return a join ticket");case 15:return e.next=17,this.connectAsync(i.joinTicket);case 17:return e.abrupt("return",d(d({},i),{},{success:!0,statusCode:r.status}));case 20:return e.prev=20,e.t0=e.catch(0),e.abrupt("return",{success:!1,statusCode:500});case 23:case"end":return e.stop()}}),e,this,[[0,20]])})));return function(t){return e.apply(this,arguments)}}()},{key:"joinGameAsync",value:function(){var e=J(X().mark((function e(t){var n,r,i;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t=encodeURIComponent(t),e.next=4,Ot();case 4:return n=e.sent,e.next=7,fetch("".concat(dn,"/api/game/join/").concat(t),{credentials:"include",headers:{Authorization:"mkcd "+n}});case 7:if(200===(r=e.sent).status){e.next=10;break}return e.abrupt("return",{success:!1,statusCode:r.status});case 10:return e.next=12,r.json();case 12:if(null!==(i=e.sent)&&void 0!==i&&i.joinTicket){e.next=15;break}throw new Error("Game server did not return a join ticket");case 15:return e.next=17,this.connectAsync(i.joinTicket);case 17:return e.abrupt("return",d(d({},i),{},{success:!this.gameOverReason,statusCode:this.gameOverReason?"full"===this.gameOverReason?507:418:r.status}));case 20:return e.prev=20,e.t0=e.catch(0),e.abrupt("return",{success:!1,statusCode:500});case 23:case"end":return e.stop()}}),e,this,[[0,20]])})));return function(t){return e.apply(this,arguments)}}()},{key:"startGameAsync",value:function(){var e=J(X().mark((function e(){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.sendMessage({type:"start-game"});case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"leaveGameAsync",value:function(){var e=J(X().mark((function e(t){var n;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.gameOverReason=t,null===(n=this.sock)||void 0===n||n.close();case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"sendReactionAsync",value:function(){var e=J(X().mark((function e(t){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.sendMessage({type:"reaction",index:t});case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"recvJoinedMessageAsync",value:function(){var e=J(X().mark((function e(t){var n,r,i,a;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return pxt.debug("Server said we're joined as \"".concat(t.role,'" in slot "').concat(t.slot,'"')),n=t.gameMode,r=t.gamePaused,i=t.shareCode,a=t.role,this.clientRole=a,this.paused=r,e.next=6,br(i);case 6:if(!e.sent){e.next=9;break}return e.next=9,$n(n,r,t.slot);case 9:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"recvStartGameMessageAsync",value:function(){var e=J(X().mark((function e(t){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return pxt.debug("Server said start game"),e.next=3,$n("playing",this.paused);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"recvPresenceMessageAsync",value:function(){var e=J(X().mark((function e(t){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return pxt.debug("Server sent presence"),e.next=3,nr(t.presence);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"recvReactionMessageAsync",value:function(){var e=J(X().mark((function e(t){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return pxt.debug("Server sent reaction"),e.next=3,lr(t.clientId,t.index);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"recvPlayerJoinedMessageAsync",value:function(){var e=J(X().mark((function e(t){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(pxt.debug("Server sent player joined"),"host"!==this.clientRole){e.next=4;break}return e.next=4,this.sendCurrentScreenAsync();case 4:return e.next=6,fr(t.clientId);case 6:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"recvPlayerLeftMessageAsync",value:function(){var e=J(X().mark((function e(t){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return pxt.debug("Server sent player joined"),e.next=3,pr(t.clientId);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"recvGameOverMessageAsync",value:function(){var e=J(X().mark((function e(t){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return pxt.debug("Server sent game over"),e.next=3,xr(t.reason);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"recvPauseGameMessageAsync",value:function(){var e=J(X().mark((function e(t){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return pxt.debug("Server sent pause game"),this.paused=!0,e.next=4,_r();case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"recvResumeGameMessageAsync",value:function(){var e=J(X().mark((function e(t){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return pxt.debug("Server sent resume game"),this.paused=!1,e.next=4,Sr();case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"recvCompressedScreenMessageAsync",value:function(){var e=J(X().mark((function e(t){var n,r,i,a,o,s,u;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=ln.Binary.unpackCompressedScreenMessage(t),r=n.zippedData,i=n.isDelta,e.next=3,Pt(r);case 3:a=e.sent,i?this.screen&&Nt(this.screen,a):this.screen=a,o=this.getCurrentScreen(),s=o.image,u=o.palette,s&&this.postToSimFrame({type:"multiplayer",content:"Image",image:{data:s},palette:u});case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"recvInputMessageAsync",value:function(){var e=J(X().mark((function e(t){var n,i,a,o,s;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=ln.Binary.unpackInputMessage(t),i=n.button,a=n.state,o=n.slot,s=p(a),!(i<=r.None||i>=r.Menu||o<2)&&s){e.next=4;break}return e.abrupt("return");case 4:this.postToSimFrame({type:"multiplayer",content:"Button",clientNumber:o-1,button:i,state:s});case 5:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"recvAudioMessageAsync",value:function(){var e=J(X().mark((function e(t){var n,r,i;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=ln.Binary.unpackAudioMessage(t),r=n.instruction,i=n.soundbuf,this.postToSimFrame({type:"multiplayer",content:"Audio",instruction:m(r),soundbuf:i});case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"recvIconMessageAsync",value:function(){var e=J(X().mark((function e(n){var r,i,a,o,s,u,l,c;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=ln.Binary.unpackIconMessage(n),i=r.iconType,a=r.iconSlot,o=r.iconBuffer,!(i===t.Player&&a>=1&&a<=4)){e.next=4;break}e.next=8;break;case 4:if(!(i===t.Reaction&&a>=1&&a<=6)){e.next=7;break}e.next=8;break;case 7:return e.abrupt("return");case 8:if(!o){e.next=18;break}return e.next=11,Pt(o);case 11:s=e.sent,u=s.slice(0,48),l=s.slice(48),c=pxt.convertUint8BufferToPngUri(u,l),jr(i,a,c),e.next=19;break;case 18:jr(i,a);case 19:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"postToSimFrame",value:function(e){var t;null===(t=en())||void 0===t||t.postMessage(e)}},{key:"sendInputAsync",value:function(){var e=J(X().mark((function e(t,n){var r;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.paused){e.next=2;break}return e.abrupt("return");case 2:r=ln.Binary.packInputMessage(t,h(n)),this.sendMessage(r);case 4:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"sendAudioAsync",value:function(){var e=J(X().mark((function e(t,n){var r;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.paused){e.next=2;break}return e.abrupt("return");case 2:r=ln.Binary.packAudioMessage(v(t),cn.from(n)),this.sendMessage(r);case 4:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"sendIconAsync",value:function(){var e=J(X().mark((function e(t,n,r,i){var a,o,s;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!r||!i){e.next=5;break}return o=cn.concat([r,i]),e.next=4,jt(o);case 4:a=e.sent;case 5:s=ln.Binary.packIconMessage(t,n,a),this.sendMessage(s);case 7:case"end":return e.stop()}}),e,this)})));return function(t,n,r,i){return e.apply(this,arguments)}}()},{key:"sendScreenUpdateAsync",value:function(){var e=J(X().mark((function e(t,n){var r,i,a,o,s,u,l,c,f;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(r=[]).push(cn.from(t)),n&&r.push(cn.from(n)),i=cn.concat(r),(a=!this.screen)?this.screen=i:(Nt(i,this.screen),Nt(this.screen,i)),o=!0,s=0;case 10:if(!(s<i.length)){e.next=17;break}if(0===i[s]){e.next=14;break}return o=!1,e.abrupt("break",17);case 14:s++,e.next=10;break;case 17:if(o&&!a){e.next=23;break}return e.next=20,jt(i);case 20:u=e.sent,l=ln.Binary.packCompressedScreenMessage(u,!a),this.sendMessage(l);case 23:e.next=30;break;case 25:return e.next=27,jt(this.screen);case 27:c=e.sent,f=ln.Binary.packCompressedScreenMessage(c,!1),this.sendMessage(f);case 30:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"sendCurrentScreenAsync",value:function(){var e=J(X().mark((function e(){var t,n;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.screen){e.next=6;break}return e.next=3,jt(this.screen);case 3:t=e.sent,n=ln.Binary.packCompressedScreenMessage(t,!1),this.sendMessage(n);case 6:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"kickPlayer",value:function(e){var t={type:"kick-player",clientId:e};this.sendMessage(t)}},{key:"gameOver",value:function(e){this.gameOverReason=e,hn()}},{key:"getCurrentScreen",value:function(){return this.screen?{image:this.screen.slice(0,9608),palette:this.screen.length>=9656?this.screen.slice(9608,9656).map((function(e){return e})):void 0}:{image:void 0,palette:void 0}}},{key:"pauseGameAsync",value:function(){var e=J(X().mark((function e(){var t;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.paused=!0,t={type:"pause-game"},this.sendMessage(t);case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"resumeGameAsync",value:function(){var e=J(X().mark((function e(){var t;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.paused=!1,t={type:"resume-game"},this.sendMessage(t);case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),e}();function hn(){var e;null===(e=un)||void 0===e||e.destroy(),un=void 0}function mn(e){return vn.apply(this,arguments)}function vn(){return(vn=J(X().mark((function e(t){var n;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return hn(),un=new pn,e.next=4,un.hostGameAsync(t);case 4:return n=e.sent,e.abrupt("return",n);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function yn(e){return gn.apply(this,arguments)}function gn(){return(gn=J(X().mark((function e(t){var n;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return hn(),un=new pn,e.next=4,un.joinGameAsync(t);case 4:return n=e.sent,e.abrupt("return",n);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function bn(){return wn.apply(this,arguments)}function wn(){return(wn=J(X().mark((function e(){var t;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===(t=un)||void 0===t?void 0:t.startGameAsync();case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function xn(e){return kn.apply(this,arguments)}function kn(){return(kn=J(X().mark((function e(t){var n;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===(n=un)||void 0===n?void 0:n.leaveGameAsync(t);case 2:hn();case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function _n(e){return En.apply(this,arguments)}function En(){return(En=J(X().mark((function e(t){var n;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===(n=un)||void 0===n?void 0:n.sendReactionAsync(t);case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Sn(e,t){return On.apply(this,arguments)}function On(){return(On=J(X().mark((function e(t,n){var r;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===(r=un)||void 0===r?void 0:r.sendInputAsync(t,n);case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function An(e,t){return Cn.apply(this,arguments)}function Cn(){return(Cn=J(X().mark((function e(t,n){var r;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===(r=un)||void 0===r?void 0:r.sendAudioAsync(t,n);case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Tn(e,t,n,r){return Nn.apply(this,arguments)}function Nn(){return(Nn=J(X().mark((function e(t,n,r,i){var a;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===(a=un)||void 0===a?void 0:a.sendIconAsync(t,n,r,i);case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function jn(e,t){return Pn.apply(this,arguments)}function Pn(){return(Pn=J(X().mark((function e(t,n){var r;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===(r=un)||void 0===r?void 0:r.sendScreenUpdateAsync(t,n);case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Rn(){return In.apply(this,arguments)}function In(){return(In=J(X().mark((function e(){var t;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===(t=un)||void 0===t?void 0:t.sendCurrentScreenAsync();case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ln(e){var t;null===(t=un)||void 0===t||t.gameOver(e)}function Mn(){return Bn.apply(this,arguments)}function Bn(){return(Bn=J(X().mark((function e(){var t;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===(t=un)||void 0===t?void 0:t.pauseGameAsync();case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Dn(){return Un.apply(this,arguments)}function Un(){return(Un=J(X().mark((function e(){var t;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===(t=un)||void 0===t?void 0:t.resumeGameAsync();case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Fn(){hn()}function zn(e){return Vn.apply(this,arguments)}function Vn(){return(Vn=J(X().mark((function e(t){var n,r;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=It(t)){e.next=3;break}return e.abrupt("return",_(D({type:"error",text:lf("Invalid share code or link. Please try again."),timeoutMs:5e3})));case 3:return n=D({type:"info",text:lf("Connecting..."),showSpinner:!0}),e.prev=4,_(P("connecting")),_(n),e.next=9,mn(t);case 9:if(r=e.sent,pxt.debug(r),!r.success){e.next=18;break}_(D({type:"success",text:lf("Connected!"),timeoutMs:5e3})),_(j("host")),_(R(r)),_(P("connected")),e.next=19;break;case 18:throw new Error("host http response: ".concat(r.statusCode));case 19:e.next=26;break;case 21:e.prev=21,e.t0=e.catch(4),pxt.log(e.t0.toString()),_(D({type:"error",text:lf("Something went wrong. Please try again."),timeoutMs:5e3})),_(P("init"));case 26:return e.prev=26,_(U(n.toast.id)),e.finish(26);case 29:case"end":return e.stop()}}),e,null,[[4,21,26,29]])})))).apply(this,arguments)}function Hn(e){return Wn.apply(this,arguments)}function Wn(){return(Wn=J(X().mark((function e(t){var n,r;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=Rt(t)){e.next=3;break}return e.abrupt("return",_(D({type:"error",text:lf("Invalid join code. Please try again."),timeoutMs:5e3})));case 3:return n=D({type:"info",text:lf("Connecting..."),showSpinner:!0}),e.prev=4,_(P("connecting")),_(n),e.next=9,yn(t);case 9:if(r=e.sent,pxt.debug(r),!r.success){e.next=18;break}_(D({type:"success",text:lf("Connected!"),timeoutMs:5e3})),_(j("guest")),_(R(r)),_(P("connected")),e.next=28;break;case 18:if(404!==r.statusCode){e.next=23;break}tr("not-found"),_(P("init")),e.next=28;break;case 23:if(507!==r.statusCode){e.next=27;break}_(P("init")),e.next=28;break;case 27:throw new Error("join http response: ".concat(r.statusCode));case 28:e.next=35;break;case 30:e.prev=30,e.t0=e.catch(4),pxt.log(e.t0.toString()),_(D({type:"error",text:lf("Something went wrong. Please try again."),timeoutMs:5e3})),_(P("init"));case 35:return e.prev=35,_(U(n.toast.id)),e.finish(35);case 38:case"end":return e.stop()}}),e,null,[[4,30,35,38]])})))).apply(this,arguments)}function qn(){return Gn.apply(this,arguments)}function Gn(){return(Gn=J(X().mark((function e(){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,bn();case 3:e.next=7;break;case 5:e.prev=5,e.t0=e.catch(0);case 7:return e.prev=7,e.finish(7);case 9:case"end":return e.stop()}}),e,null,[[0,5,7,9]])})))).apply(this,arguments)}function Zn(e){return Yn.apply(this,arguments)}function Yn(){return(Yn=J(X().mark((function e(t){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,pxt.tickEvent("mp.leavegame"),e.next=4,xn(t);case 4:_({type:"CLEAR_GAME_INFO"}),_({type:"SET_GAME_METADATA",gameMetadata:void 0}),e.next=10;break;case 8:e.prev=8,e.t0=e.catch(0);case 10:return e.prev=10,e.finish(10);case 12:case"end":return e.stop()}}),e,null,[[0,8,10,12]])})))).apply(this,arguments)}function $n(e,t,n){return Kn.apply(this,arguments)}function Kn(){return(Kn=J(X().mark((function e(t,n,r){var i;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=k.clientRole;try{r&&_(M(r)),_(B(t)),"playing"===t&&(_({type:"CLEAR_MODAL"}),_(D({type:"info",text:lf("Game started!"),timeoutMs:5e3})),n&&"host"!==i&&_r())}catch(e){}case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Xn(e,t,n){return Qn.apply(this,arguments)}function Qn(){return(Qn=J(X().mark((function e(t,n,r){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Et(t,n,r);case 3:e.next=7;break;case 5:e.prev=5,e.t0=e.catch(0);case 7:return e.prev=7,e.finish(7);case 9:case"end":return e.stop()}}),e,null,[[0,5,7,9]])})))).apply(this,arguments)}function Jn(){return er.apply(this,arguments)}function er(){return(er=J(X().mark((function e(){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,Fn(),e.next=4,kt();case 4:e.next=8;break;case 6:e.prev=6,e.t0=e.catch(0);case 8:return e.prev=8,e.finish(8);case 10:case"end":return e.stop()}}),e,null,[[0,6,8,10]])})))).apply(this,arguments)}function tr(e){try{switch(_(P("init")),e){case"kicked":return pxt.tickEvent("mp.gotkicked"),_(D({type:"info",text:lf("Host kicked you from the game"),icon:"🤔",timeoutMs:5e3}));case"ended":return pxt.tickEvent("mp.gameover"),_(D({type:"info",text:lf("Game ended"),timeoutMs:5e3}));case"left":return pxt.tickEvent("mp.leftgame"),_(D({type:"info",text:lf("You left the game"),timeoutMs:5e3}));case"full":return pxt.tickEvent("mp.gamefull"),_(D({type:"warning",text:lf("Game is full"),timeoutMs:5e3,icon:"😤"}));case"rejected":return pxt.tickEvent("mp.gamerejected"),_(D({type:"error",text:lf("Game rejected your join request"),timeoutMs:5e3}));case"not-found":return pxt.tickEvent("mp.gamenotfound"),_(D({type:"warning",text:lf("Game not found"),timeoutMs:5e3,icon:"😟"}));case"compile-failed":return pxt.tickEvent("mp.compilefailed"),_(D({type:"error",text:lf("There was a problem loading this game"),timeoutMs:5e3,icon:"😟"}));default:return pxt.tickEvent("mp.disconnected"),_(D({type:"error",text:lf("Game disconnected"),timeoutMs:5e3}))}}catch(e){}}function nr(e){return rr.apply(this,arguments)}function rr(){return(rr=J(X().mark((function e(t){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{_(F(t))}catch(e){}case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}!function(e){var t;e.VERSION=2,function(e){var t;!function(e){e[e.Input=1]="Input",e[e.CompressedScreen=3]="CompressedScreen",e[e.Audio=4]="Audio",e[e.Icon=5]="Icon"}(t||(t={})),e.MessageType=t,e.packInputMessage=function(e,n){var r=new yt.$;return r.writeUInt16LE(t.Input),r.writeUInt16LE(e),r.writeUInt8(n),r.toBuffer()},e.unpackInputMessage=function(e){return{button:e.readUInt16LE(),state:e.readUInt8(),slot:e.readUInt8()}},e.packCompressedScreenMessage=function(e,n){var r=new yt.$;return r.writeUInt16LE(t.CompressedScreen),r.writeUInt8(n?1:0),r.writeBuffer(e),r.toBuffer()},e.unpackCompressedScreenMessage=function(e){var t=1===e.readUInt8();return{zippedData:e.readBuffer(),isDelta:t}},e.packAudioMessage=function(e,n){var r=new yt.$;return r.writeUInt16LE(t.Audio),r.writeUInt8(e),n&&r.writeBuffer(n),r.toBuffer()},e.unpackAudioMessage=function(e){return{instruction:e.readUInt8(),soundbuf:e.remaining()?e.readBuffer():void 0}},e.packIconMessage=function(e,n,r){var i=new yt.$;return i.writeUInt16LE(t.Icon),i.writeUInt8(e),i.writeUInt8(n),r&&i.writeBuffer(r),i.toBuffer()},e.unpackIconMessage=function(e){var t,n=e.readUInt8(),r=e.readUInt8();return e.remaining()&&(t=e.readBuffer()),{iconType:n,iconSlot:r,iconBuffer:t}}}(t||(t=e.Binary||(e.Binary={})))}(ln||(ln={}));var ir,ar=[{name:lf("smile"),emoji:"😃"},{name:lf("laugh"),emoji:"🤣"},{name:lf("surprise"),emoji:"😯"},{name:lf("cry"),emoji:"😫"},{name:lf("scared"),emoji:"😬"},{name:lf("angry"),emoji:"😠"}],or=[];function sr(e){return ur.apply(this,arguments)}function ur(){return(ur=J(X().mark((function e(t){var n;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,or[t]&&!(or[t]+250<Date.now())){e.next=7;break}return or[t]=Date.now(),n=ar[t],pxt.tickEvent("mp.sendreaction",{reaction:n.name}),e.next=7,_n(t);case 7:e.next=11;break;case 9:e.prev=9,e.t0=e.catch(0);case 11:return e.prev=11,e.finish(11);case 13:case"end":return e.stop()}}),e,null,[[0,9,11,13]])})))).apply(this,arguments)}function lr(e,t){return cr.apply(this,arguments)}function cr(){return(cr=J(X().mark((function e(t,n){var r;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{r=T(),_(z(t,r,n)),setTimeout((function(){var e;(null===(e=k.reactions[t])||void 0===e?void 0:e.id)===r&&_(V(t))}),1e3)}catch(e){}case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function fr(e){return dr.apply(this,arguments)}function dr(){return(dr=J(X().mark((function e(t){var n,r;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{(n=k.presence.users.find((function(e){return e.id===t})))&&(_(D({type:"info",text:lf("Player {0} joined the game.",n.slot),timeoutMs:5e3})),null===(r=en())||void 0===r||r.postMessage({type:"multiplayer",content:"Connection",slot:n.slot,connected:!0}))}catch(e){}case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function pr(e){return hr.apply(this,arguments)}function hr(){return(hr=J(X().mark((function e(t){var n,r;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{(n=k.presence.users.find((function(e){return e.id===t})))&&(_(D({type:"info",text:lf("Player {0} left the game.",n.slot),timeoutMs:5e3})),null===(r=en())||void 0===r||r.postMessage({type:"multiplayer",content:"Connection",slot:n.slot,connected:!1}))}catch(e){}case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function mr(e){return vr.apply(this,arguments)}function vr(){return(vr=J(X().mark((function e(t){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{_(D({type:"success",text:lf("Welcome {0}!",t),timeoutMs:5e3}))}catch(e){}case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function yr(e){return gr.apply(this,arguments)}function gr(){return(gr=J(X().mark((function e(t){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{_(t?N(t):{type:"SET_USER_PROFILE",profile:void 0})}catch(e){}case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function br(e){return wr.apply(this,arguments)}function wr(){return(wr=J(X().mark((function e(t){var n,r,i,a,o,s;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n="https://makecode.com/api/".concat(t),e.next=4,fetch(n);case 4:return r=e.sent,e.next=7,r.json();case 7:return i=e.sent,a=i.name||lf("Untitled"),o=i.description||"",s="".concat(n,"/thumb"),_(I({title:a,description:o,thumbnail:s})),_(L(t)),e.abrupt("return",!0);case 16:return e.prev=16,e.t0=e.catch(0),pxt.log(e.t0.toString()),_(P("init")),_(D({type:"error",text:lf("Something went wrong. Please try again."),timeoutMs:5e3})),e.abrupt("return",!1);case 22:return e.prev=22,e.finish(22);case 24:case"end":return e.stop()}}),e,null,[[0,16,22,24]])})))).apply(this,arguments)}function xr(e){return kr.apply(this,arguments)}function kr(){return(kr=J(X().mark((function e(t){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{Ln(t)}catch(e){}case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function _r(){return Er.apply(this,arguments)}function Er(){return(Er=J(X().mark((function e(){var t,n;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=k.clientRole,e.prev=1,"host"!==t){e.next=6;break}return pxt.tickEvent("mp.host.pausegame"),e.next=6,Mn();case 6:null===(n=en())||void 0===n||n.resume(pxsim.SimulatorDebuggerCommand.Pause),_(q(!0)),e.next=12;break;case 10:e.prev=10,e.t0=e.catch(1);case 12:return e.prev=12,e.finish(12);case 14:case"end":return e.stop()}}),e,null,[[1,10,12,14]])})))).apply(this,arguments)}function Sr(){return Or.apply(this,arguments)}function Or(){return(Or=J(X().mark((function e(){var t,n,r,i,a;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=k.clientRole,n=k.presence,e.prev=1,"host"!==t){e.next=6;break}return pxt.tickEvent("mp.host.resumegame"),e.next=6,Dn();case 6:if(null===(r=en())||void 0===r||r.resume(pxsim.SimulatorDebuggerCommand.Resume),_(q(!1)),"host"!==t){e.next=13;break}for(i=function(e){var t,r=!!n.users.find((function(t){return t.slot===e}));null===(t=en())||void 0===t||t.postMessage({type:"multiplayer",content:"Connection",slot:e,connected:r})},a=1;a<=4;a++)i(a);return e.next=13,Rn();case 13:e.next=17;break;case 15:e.prev=15,e.t0=e.catch(1);case 17:return e.prev=17,e.finish(17);case 19:case"end":return e.stop()}}),e,null,[[1,15,17,19]])})))).apply(this,arguments)}function Ar(e){return Cr.apply(this,arguments)}function Cr(){return(Cr=J(X().mark((function e(t){var n,r,i;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=k.clientRole,r=k.gameState,i=(null!=r?r:{}).gameMode,e.prev=2,t||"host"!==n||"playing"!==i){e.next=6;break}return e.next=6,_r();case 6:e.next=10;break;case 8:e.prev=8,e.t0=e.catch(2);case 10:return e.prev=10,e.finish(10);case 12:case"end":return e.stop()}}),e,null,[[2,8,10,12]])})))).apply(this,arguments)}function Tr(e,t){return Nr.apply(this,arguments)}function Nr(){return(Nr=J(X().mark((function e(t,n){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,pxt.tickEvent("mp.reportabuse"),e.next=4,fetch("https://makecode.com/api/".concat(t,"/abusereports"),{method:"POST",body:JSON.stringify({text:n})});case 4:if(200!==e.sent.status){e.next=9;break}_(D({type:"success",text:lf("Thank you for helping keep Microsoft MakeCode a friendly place!"),icon:"✅",timeoutMs:5e3})),e.next=10;break;case 9:throw new Error("Failed to send abuse report");case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(0),_(D({type:"error",text:lf("Sorry, we couldn't send your report. Please try again later."),timeoutMs:5e3}));case 15:return e.prev=15,e.finish(15);case 17:case"end":return e.stop()}}),e,null,[[0,12,15,17]])})))).apply(this,arguments)}function jr(e,t,n){return Pr.apply(this,arguments)}function Pr(){return(Pr=J(X().mark((function e(n,r,i){var a;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{a=n===t.Player?G:Z,_(a(r,i))}catch(e){}case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Rr(e){var t;return(0,E.jsxs)("div",{children:[(0,E.jsx)(ie,{className:"tw-m-0 tw-px-8 ".concat(e.selected?"tw-font-bold":""),title:e.title,label:null!==(t=e.label)&&void 0!==t?t:e.title,onClick:e.onClick}),(0,E.jsx)("div",{className:"tw-mx-1 tw-border-b-2 tw-rounded-sm tw-ease-linear tw-duration-[75ms]",style:{borderColor:e.selected?"var(--primary-color)":"transparent"}})]})}function Ir(e){var t=e.title,n=e.subtitle,r=e.image,i=It(e.shareId),a=function(){var e=J(X().mark((function e(){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return pxt.tickEvent("mp.hostbutton",{id:i,title:t}),e.next=3,zn(i);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),o=lf("Host a multiplayer session with '{0}'",pxt.U.rlf(t)),s=null!=r?r:"https://makecode.com/api/".concat(i,"/thumb"),u=lf("Preview image for game");return(0,E.jsx)(ie,{className:"tw-p-0 sm:tw-pb-1 tw-flex tw-grow tw-shrink tw-basis-1 tw-max-w-[min(12em,30vw)] tw-rounded-md tw-border-solid tw-border-1 tw-border-gray-300 tw-overflow-hidden tw-drop-shadow-xl",onClick:a,title:o,label:(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("img",{className:"tw-w-full tw-aspect-[4/3]",src:s,alt:u}),(0,E.jsx)("div",{className:"tw-text-left tw-px-2 tw-pt-1 tw-hidden tw-truncate tw-leading-normal sm:tw-block",children:pxt.U.rlf(t)}),(0,E.jsx)("div",{className:"tw-text-left tw-px-2 tw-text-sm tw-text-gray-500 tw-truncate tw-leading-normal tw-hidden md:tw-block",children:pxt.U.rlf(n)})]})})}function Lr(){var e,t=(0,a.useContext)(S).state.targetConfig,n=l((0,a.useState)("join"),2),r=n[0],i=n[1],o=(0,a.useRef)(),s=(0,a.useRef)(),u=(0,a.useCallback)((function(e){o.current=e}),[]),c=(0,a.useCallback)((function(e){s.current=e}),[]),f=function(){var e=J(X().mark((function e(){var t;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null==o||null===(t=o.current)||void 0===t||!t.value){e.next=3;break}return e.next=3,Hn(o.current.value);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),d=function(){var e=J(X().mark((function e(){var t;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null==s||null===(t=s.current)||void 0===t||!t.value){e.next=3;break}return e.next=3,zn(s.current.value);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),p=lf("Enter share code or link"),h=lf("How do I get a share code or link?"),m=lf("More games to play with your friends"),v=null==t||null===(e=t.multiplayer)||void 0===e?void 0:e.games,y=!(null==v||!v.length);return(0,E.jsxs)("div",{className:"tw-flex tw-flex-col tw-w-screen tw-h-screen tw-justify-center tw-items-center",children:[(0,E.jsx)("div",{className:"tw-bg-white tw-rounded-lg tw-drop-shadow-xl tw-min-h-[17rem] tw-min-w-[17rem] md:tw-min-w-[25rem]",children:(0,E.jsx)("div",{className:"tw-py-5 tw-px-10 ",children:(0,E.jsxs)("div",{className:"tw-pt-2",children:[(0,E.jsxs)("div",{className:"tw-flex tw-justify-center",children:[(0,E.jsx)(Rr,{title:lf("Join Game"),label:(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("div",{className:"tw-hidden sm:tw-inline",children:lf("Join Game")}),(0,E.jsx)("div",{className:"sm:tw-hidden",children:lf("Join")})]}),selected:"join"===r,onClick:function(){return i("join")}}),(0,E.jsx)(Rr,{title:lf("Host Game"),label:(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("div",{className:"tw-hidden sm:tw-inline",children:lf("Host Game")}),(0,E.jsx)("div",{className:"sm:tw-hidden",children:lf("Host")})]}),selected:"host"===r,onClick:function(){return i("host")}})]}),(0,E.jsxs)("div",{className:"tw-pt-2",children:["join"===r&&(0,E.jsxs)("div",{className:"tw-w-full tw-flex tw-flex-col tw-gap-4 tw-mt-2 tw-justify-center tw-items-center",children:[(0,E.jsx)("div",{className:"tw-w-full",children:(0,E.jsx)(oe,{groupClassName:"tw-w-full tw-border-1 tw-h-full tw-rounded",inputClassName:"tw-text-center tw-p-2",title:lf("Join Code"),autoComplete:!1,handleInputRef:u,preserveValueOnBlur:!0,onEnterKey:f,placeholder:lf("Enter game code")})}),(0,E.jsx)("div",{children:(0,E.jsx)(ie,{className:"primary tw-px-10",label:lf("Enter"),title:lf("Join Game"),onClick:f})}),(0,E.jsx)("div",{className:"tw-text-sm",children:(0,E.jsx)(se,{href:"/multiplayer#join-game",target:"_blank",children:lf("How do I get a game code?")})})]}),"host"===r&&(0,E.jsxs)("div",{className:"tw-w-full tw-flex tw-flex-col tw-gap-4 tw-mt-2 tw-justify-center tw-items-center",children:[(0,E.jsx)("div",{className:"tw-w-full",children:(0,E.jsx)(oe,{groupClassName:"tw-w-full tw-border-1 tw-h-full tw-rounded",inputClassName:"tw-p-2",title:lf("Share Code"),autoComplete:!1,handleInputRef:c,preserveValueOnBlur:!0,onEnterKey:d,placeholder:p})}),(0,E.jsx)("div",{children:(0,E.jsx)(ie,{className:"primary tw-px-10",label:lf("Launch"),title:lf("Host Game"),onClick:d})}),(0,E.jsx)("div",{className:"tw-text-sm",children:(0,E.jsx)(se,{href:"/multiplayer#host-game",target:"_blank",children:h})})]})]})]})})}),y&&(0,E.jsxs)("div",{className:"tw-max-w-[min(90vw,60em)] tw-p-2 tw-flex tw-flex-col tw-shrink",children:[(0,E.jsx)("div",{className:"tw-w-full tw-p-2",children:m}),(0,E.jsx)("div",{className:"tw-flex tw-justify-between tw-space-x-1 md:tw-space-x-4",children:v.map((function(e,t){return(0,E.jsx)(Ir,{shareId:e.shareId,title:pxt.Util.rlf("{id:game-title}".concat(e.title)),subtitle:pxt.Util.rlf("{id:game-subtitle}".concat(e.subtitle)),image:Lt(e.image)},t)}))})]})]})}function Mr(){var e=(0,a.useContext)(S).state,t=e.playerSlot,n=e.gameState,r=e.clientRole,i=e.gamePaused,o=null==n?void 0:n.gameId,s=null==n?void 0:n.gameMode,u=(0,a.useRef)(null),l=["background-color=ED3636&button-stroke=8D2525","background-color=4E4EE9&button-stroke=3333A1","background-color=FF9A14&button-stroke=B0701A","background-color=4EB94E&button-stroke=245D24"][(t||0)-1],c="host"===r,f=function(){var e=J(X().mark((function e(t){var n,r,i;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.image,r=t.palette,i=n.data,e.next=4,jn(i,r);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),d=function(){var e=J(X().mark((function e(t){var n,r;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.button,r=t.state,e.next=3,Sn(n,r);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),p=function(){var e=J(X().mark((function e(t){var n,r;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.instruction,r=t.soundbuf,e.next=3,An(n,r);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),h=function(){var e=J(X().mark((function e(t){var n,r,i,a,o;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.iconType,r=t.palette,i=t.icon,a=t.slot,o=(i||{}).data,e.next=4,Tn(n,a,r,o);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();(0,a.useEffect)((function(){var e=function(e){var t=e.data;switch(t.type){case"status":if("running"===t.state&&"guest"===r){var n,i=function(){var e;return(null===(e=un)||void 0===e?void 0:e.getCurrentScreen())||{image:void 0,palette:void 0}}(),a=i.image,o=i.palette;a&&(null===(n=en())||void 0===n||n.postMessage({type:"multiplayer",content:"Image",image:{data:a},palette:o}))}return;case"toplevelcodefinished":if("host"===r){var s,u=ee(null==k?void 0:k.presence.users);try{for(u.s();!(s=u.n()).done;){var l,c=s.value;null===(l=en())||void 0===l||l.postMessage({type:"multiplayer",content:"Connection",slot:c.slot,connected:!0})}}catch(e){u.e(e)}finally{u.f()}}return;case"multiplayer":var m=t.origin,v=t.content;return void("client"===m&&"Button"===v?d(t):"server"===m&&"Image"===v?f(t):"server"===m&&"Audio"===v?p(t):"server"===m&&"Icon"===v&&h(t))}};return window.addEventListener("message",e),function(){return window.removeEventListener("message",e)}}),[r]);var m=function(){return c?{simQueryParams:l,mpRole:"server",id:o}:{simQueryParams:l,mpRole:"client"}},v=function(){var e=J(X().mark((function e(){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return ir=on(m()),e.next=3,ir;case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),y=function(){var e=J(X().mark((function e(){var t;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=m(),!ir){e.next=5;break}return e.next=4,ir;case 4:t.builtJsInfo=e.sent;case 5:return ir=rn(u.current,t),e.next=8,ir;case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,a.useEffect)((function(){"playing"===s&&y()}),[s]),(0,a.useEffect)((function(){"playing"!==s&&u.current&&function(e,t){nn.apply(this,arguments)}(u.current,m())}),[r,t]),(0,a.useEffect)((function(){c||v()}),[r]),(0,a.useEffect)((function(){c&&o&&v()}),[r,o]),(0,a.useEffect)((function(){return function(){ir=void 0}})),(0,E.jsx)("div",{id:"sim-container",ref:u,className:"tw-grow tw-w-screen md:tw-w-[calc(100vw-6rem)]",style:{filter:i?"grayscale(70%) blur(1px)":"none",transition:"filter .25s"}})}var Br,Dr,Ur=Object.defineProperty,Fr=Object.getOwnPropertySymbols,zr=Object.prototype.hasOwnProperty,Vr=Object.prototype.propertyIsEnumerable,Hr=function(e,t,n){return t in e?Ur(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n};!function(e){var t=function(){function t(e,n,r,a){if(ue(this,t),this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version value out of range");if(a<-1||a>7)throw new RangeError("Mask value out of range");this.size=4*e+17;for(var o=[],s=0;s<this.size;s++)o.push(!1);for(var u=0;u<this.size;u++)this.modules.push(o.slice()),this.isFunction.push(o.slice());this.drawFunctionPatterns();var l=this.addEccAndInterleave(r);if(this.drawCodewords(l),-1==a)for(var c=1e9,f=0;f<8;f++){this.applyMask(f),this.drawFormatBits(f);var d=this.getPenaltyScore();d<c&&(a=f,c=d),this.applyMask(f)}i(0<=a&&a<=7),this.mask=a,this.applyMask(a),this.drawFormatBits(a),this.isFunction=[]}return ce(t,[{key:"getModule",value:function(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}},{key:"getModules",value:function(){return this.modules}},{key:"drawFunctionPatterns",value:function(){for(var e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);for(var t=this.getAlignmentPatternPositions(),n=t.length,r=0;r<n;r++)for(var i=0;i<n;i++)0==r&&0==i||0==r&&i==n-1||r==n-1&&0==i||this.drawAlignmentPattern(t[r],t[i]);this.drawFormatBits(0),this.drawVersion()}},{key:"drawFormatBits",value:function(e){for(var t=this.errorCorrectionLevel.formatBits<<3|e,n=t,a=0;a<10;a++)n=n<<1^1335*(n>>>9);var o=21522^(t<<10|n);i(o>>>15==0);for(var s=0;s<=5;s++)this.setFunctionModule(8,s,r(o,s));this.setFunctionModule(8,7,r(o,6)),this.setFunctionModule(8,8,r(o,7)),this.setFunctionModule(7,8,r(o,8));for(var u=9;u<15;u++)this.setFunctionModule(14-u,8,r(o,u));for(var l=0;l<8;l++)this.setFunctionModule(this.size-1-l,8,r(o,l));for(var c=8;c<15;c++)this.setFunctionModule(8,this.size-15+c,r(o,c));this.setFunctionModule(8,this.size-8,!0)}},{key:"drawVersion",value:function(){if(!(this.version<7)){for(var e=this.version,t=0;t<12;t++)e=e<<1^7973*(e>>>11);var n=this.version<<12|e;i(n>>>18==0);for(var a=0;a<18;a++){var o=r(n,a),s=this.size-11+a%3,u=Math.floor(a/3);this.setFunctionModule(s,u,o),this.setFunctionModule(u,s,o)}}}},{key:"drawFinderPattern",value:function(e,t){for(var n=-4;n<=4;n++)for(var r=-4;r<=4;r++){var i=Math.max(Math.abs(r),Math.abs(n)),a=e+r,o=t+n;0<=a&&a<this.size&&0<=o&&o<this.size&&this.setFunctionModule(a,o,2!=i&&4!=i)}}},{key:"drawAlignmentPattern",value:function(e,t){for(var n=-2;n<=2;n++)for(var r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,1!=Math.max(Math.abs(r),Math.abs(n)))}},{key:"setFunctionModule",value:function(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}},{key:"addEccAndInterleave",value:function(e){var n=this.version,r=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,r))throw new RangeError("Invalid argument");for(var a=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],o=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],s=Math.floor(t.getNumRawDataModules(n)/8),u=a-s%a,l=Math.floor(s/a),c=[],f=t.reedSolomonComputeDivisor(o),d=0,p=0;d<a;d++){var h=e.slice(p,p+l-o+(d<u?0:1));p+=h.length;var m=t.reedSolomonComputeRemainder(h,f);d<u&&h.push(0),c.push(h.concat(m))}for(var v=[],y=function(e){c.forEach((function(t,n){(e!=l-o||n>=u)&&v.push(t[e])}))},g=0;g<c[0].length;g++)y(g);return i(v.length==s),v}},{key:"drawCodewords",value:function(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");for(var n=0,a=this.size-1;a>=1;a-=2){6==a&&(a=5);for(var o=0;o<this.size;o++)for(var s=0;s<2;s++){var u=a-s,l=0==(a+1&2)?this.size-1-o:o;!this.isFunction[l][u]&&n<8*e.length&&(this.modules[l][u]=r(e[n>>>3],7-(7&n)),n++)}}i(n==8*e.length)}},{key:"applyMask",value:function(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(var t=0;t<this.size;t++)for(var n=0;n<this.size;n++){var r=void 0;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}},{key:"getPenaltyScore",value:function(){for(var e=0,n=0;n<this.size;n++){for(var r=!1,a=0,o=[0,0,0,0,0,0,0],s=0;s<this.size;s++)this.modules[n][s]==r?5==++a?e+=t.PENALTY_N1:a>5&&e++:(this.finderPenaltyAddHistory(a,o),r||(e+=this.finderPenaltyCountPatterns(o)*t.PENALTY_N3),r=this.modules[n][s],a=1);e+=this.finderPenaltyTerminateAndCount(r,a,o)*t.PENALTY_N3}for(var u=0;u<this.size;u++){for(var l=!1,c=0,f=[0,0,0,0,0,0,0],d=0;d<this.size;d++)this.modules[d][u]==l?5==++c?e+=t.PENALTY_N1:c>5&&e++:(this.finderPenaltyAddHistory(c,f),l||(e+=this.finderPenaltyCountPatterns(f)*t.PENALTY_N3),l=this.modules[d][u],c=1);e+=this.finderPenaltyTerminateAndCount(l,c,f)*t.PENALTY_N3}for(var p=0;p<this.size-1;p++)for(var h=0;h<this.size-1;h++){var m=this.modules[p][h];m==this.modules[p][h+1]&&m==this.modules[p+1][h]&&m==this.modules[p+1][h+1]&&(e+=t.PENALTY_N2)}var v,y=0,g=ee(this.modules);try{for(g.s();!(v=g.n()).done;)y=v.value.reduce((function(e,t){return e+(t?1:0)}),y)}catch(e){g.e(e)}finally{g.f()}var b=this.size*this.size,w=Math.ceil(Math.abs(20*y-10*b)/b)-1;return i(0<=w&&w<=9),i(0<=(e+=w*t.PENALTY_N4)&&e<=2568888),e}},{key:"getAlignmentPatternPositions",value:function(){if(1==this.version)return[];for(var e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2)),n=[6],r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}},{key:"finderPenaltyCountPatterns",value:function(e){var t=e[1];i(t<=3*this.size);var n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}},{key:"finderPenaltyTerminateAndCount",value:function(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}},{key:"finderPenaltyAddHistory",value:function(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}}],[{key:"encodeText",value:function(n,r){var i=e.QrSegment.makeSegments(n);return t.encodeSegments(i,r)}},{key:"encodeBinary",value:function(n,r){var i=e.QrSegment.makeBytes(n);return t.encodeSegments([i],r)}},{key:"encodeSegments",value:function(e,r){var o,s,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:40,c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,f=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];if(!(t.MIN_VERSION<=u&&u<=l&&l<=t.MAX_VERSION)||c<-1||c>7)throw new RangeError("Invalid value");for(o=u;;o++){var d=8*t.getNumDataCodewords(o,r),p=a.getTotalBits(e,o);if(p<=d){s=p;break}if(o>=l)throw new RangeError("Data too long")}for(var h=0,m=[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH];h<m.length;h++){var v=m[h];f&&s<=8*t.getNumDataCodewords(o,v)&&(r=v)}var y,g=[],b=ee(e);try{for(b.s();!(y=b.n()).done;){var w=y.value;n(w.mode.modeBits,4,g),n(w.numChars,w.mode.numCharCountBits(o),g);var x,k=ee(w.getData());try{for(k.s();!(x=k.n()).done;){var _=x.value;g.push(_)}}catch(e){k.e(e)}finally{k.f()}}}catch(e){b.e(e)}finally{b.f()}i(g.length==s);var E=8*t.getNumDataCodewords(o,r);i(g.length<=E),n(0,Math.min(4,E-g.length),g),n(0,(8-g.length%8)%8,g),i(g.length%8==0);for(var S=236;g.length<E;S^=253)n(S,8,g);for(var O=[];8*O.length<g.length;)O.push(0);return g.forEach((function(e,t){return O[t>>>3]|=e<<7-(7&t)})),new t(o,r,O,c)}},{key:"getNumRawDataModules",value:function(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version number out of range");var n=(16*e+128)*e+64;if(e>=2){var r=Math.floor(e/7)+2;n-=(25*r-10)*r-55,e>=7&&(n-=36)}return i(208<=n&&n<=29648),n}},{key:"getNumDataCodewords",value:function(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}},{key:"reedSolomonComputeDivisor",value:function(e){if(e<1||e>255)throw new RangeError("Degree out of range");for(var n=[],r=0;r<e-1;r++)n.push(0);n.push(1);for(var i=1,a=0;a<e;a++){for(var o=0;o<n.length;o++)n[o]=t.reedSolomonMultiply(n[o],i),o+1<n.length&&(n[o]^=n[o+1]);i=t.reedSolomonMultiply(i,2)}return n}},{key:"reedSolomonComputeRemainder",value:function(e,n){var r,i=n.map((function(e){return 0})),a=ee(e);try{var o=function(){var e=r.value^i.shift();i.push(0),n.forEach((function(n,r){return i[r]^=t.reedSolomonMultiply(n,e)}))};for(a.s();!(r=a.n()).done;)o()}catch(e){a.e(e)}finally{a.f()}return i}},{key:"reedSolomonMultiply",value:function(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");for(var n=0,r=7;r>=0;r--)n=n<<1^285*(n>>>7),n^=(t>>>r&1)*e;return i(n>>>8==0),n}}]),t}();function n(e,t,n){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(var r=t-1;r>=0;r--)n.push(e>>>r&1)}function r(e,t){return 0!=(e>>>t&1)}function i(e){if(!e)throw new Error("Assertion error")}t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;var a=function(){function e(t,n,r){if(ue(this,e),this.mode=t,this.numChars=n,this.bitData=r,n<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}return ce(e,[{key:"getData",value:function(){return this.bitData.slice()}}],[{key:"makeBytes",value:function(t){var r,i=[],a=ee(t);try{for(a.s();!(r=a.n()).done;)n(r.value,8,i)}catch(e){a.e(e)}finally{a.f()}return new e(e.Mode.BYTE,t.length,i)}},{key:"makeNumeric",value:function(t){if(!e.isNumeric(t))throw new RangeError("String contains non-numeric characters");for(var r=[],i=0;i<t.length;){var a=Math.min(t.length-i,3);n(parseInt(t.substr(i,a),10),3*a+1,r),i+=a}return new e(e.Mode.NUMERIC,t.length,r)}},{key:"makeAlphanumeric",value:function(t){if(!e.isAlphanumeric(t))throw new RangeError("String contains unencodable characters in alphanumeric mode");var r,i=[];for(r=0;r+2<=t.length;r+=2){var a=45*e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r));n(a+=e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r+1)),11,i)}return r<t.length&&n(e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r)),6,i),new e(e.Mode.ALPHANUMERIC,t.length,i)}},{key:"makeSegments",value:function(t){return""==t?[]:e.isNumeric(t)?[e.makeNumeric(t)]:e.isAlphanumeric(t)?[e.makeAlphanumeric(t)]:[e.makeBytes(e.toUtf8ByteArray(t))]}},{key:"makeEci",value:function(t){var r=[];if(t<0)throw new RangeError("ECI assignment value out of range");if(t<128)n(t,8,r);else if(t<16384)n(2,2,r),n(t,14,r);else{if(!(t<1e6))throw new RangeError("ECI assignment value out of range");n(6,3,r),n(t,21,r)}return new e(e.Mode.ECI,0,r)}},{key:"isNumeric",value:function(t){return e.NUMERIC_REGEX.test(t)}},{key:"isAlphanumeric",value:function(t){return e.ALPHANUMERIC_REGEX.test(t)}},{key:"getTotalBits",value:function(e,t){var n,r=0,i=ee(e);try{for(i.s();!(n=i.n()).done;){var a=n.value,o=a.mode.numCharCountBits(t);if(a.numChars>=1<<o)return 1/0;r+=4+o+a.bitData.length}}catch(e){i.e(e)}finally{i.f()}return r}},{key:"toUtf8ByteArray",value:function(e){e=encodeURI(e);for(var t=[],n=0;n<e.length;n++)"%"!=e.charAt(n)?t.push(e.charCodeAt(n)):(t.push(parseInt(e.substr(n+1,2),16)),n+=2);return t}}]),e}();a.NUMERIC_REGEX=/^[0-9]*$/,a.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,a.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=a}(Br||(Br={})),function(e){var t=ce((function e(t,n){ue(this,e),this.ordinal=t,this.formatBits=n})),n=t;n.LOW=new t(0,1),n.MEDIUM=new t(1,0),n.QUARTILE=new t(2,3),n.HIGH=new t(3,2),e.Ecc=n}((Dr=Br||(Br={})).QrCode||(Dr.QrCode={})),function(e){!function(e){var t=function(){function e(t,n){ue(this,e),this.modeBits=t,this.numBitsCharCount=n}return ce(e,[{key:"numCharCountBits",value:function(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}}]),e}(),n=t;n.NUMERIC=new t(1,[10,12,14]),n.ALPHANUMERIC=new t(2,[9,11,13]),n.BYTE=new t(4,[8,16,16]),n.KANJI=new t(8,[8,10,12]),n.ECI=new t(7,[0,0,0]),e.Mode=n}(e.QrSegment||(e.QrSegment={}))}(Br||(Br={}));var Wr=Br,qr={L:Wr.QrCode.Ecc.LOW,M:Wr.QrCode.Ecc.MEDIUM,Q:Wr.QrCode.Ecc.QUARTILE,H:Wr.QrCode.Ecc.HIGH};function Gr(e){var t=e,n=t.value,r=t.size,i=void 0===r?128:r,o=t.level,s=void 0===o?"L":o,u=t.bgColor,l=void 0===u?"#FFFFFF":u,c=t.fgColor,f=void 0===c?"#000000":c,d=t.includeMargin,p=void 0!==d&&d,h=t.imageSettings,m=function(e,t){var n={};for(var r in e)zr.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Fr){var i,a=ee(Fr(e));try{for(a.s();!(i=a.n()).done;)r=i.value,t.indexOf(r)<0&&Vr.call(e,r)&&(n[r]=e[r])}catch(e){a.e(e)}finally{a.f()}}return n}(t,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]),v=Wr.QrCode.encodeText(n,qr[s]).getModules(),y=p?4:0,g=v.length+2*y,b=function(e,t,n,r){if(null==r)return null;var i=n?4:0,a=e.length+2*i,o=Math.floor(.1*t),s=a/t,u=(r.width||o)*s,l=(r.height||o)*s,c=null==r.x?e.length/2-u/2:r.x*s,f=null==r.y?e.length/2-l/2:r.y*s,d=null;if(r.excavate){var p=Math.floor(c),h=Math.floor(f);d={x:p,y:h,w:Math.ceil(u+c-p),h:Math.ceil(l+f-h)}}return{x:c,y:f,h:l,w:u,excavation:d}}(v,i,p,h),w=null;null!=h&&null!=b&&(null!=b.excavation&&(v=function(e,t){return e.slice().map((function(e,n){return n<t.y||n>=t.y+t.h?e:e.map((function(e,n){return(n<t.x||n>=t.x+t.w)&&e}))}))}(v,b.excavation)),w=a.createElement("image",{xlinkHref:h.src,height:b.h,width:b.w,x:b.x+y,y:b.y+y,preserveAspectRatio:"none"}));var x=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[];return e.forEach((function(e,r){var i=null;e.forEach((function(a,o){if(!a&&null!==i)return n.push("M".concat(i+t," ").concat(r+t,"h").concat(o-i,"v1H").concat(i+t,"z")),void(i=null);if(o!==e.length-1)a&&null===i&&(i=o);else{if(!a)return;null===i?n.push("M".concat(o+t,",").concat(r+t," h1v1H").concat(o+t,"z")):n.push("M".concat(i+t,",").concat(r+t," h").concat(o+1-i,"v1H").concat(i+t,"z"))}}))})),n.join("")}(v,y);return a.createElement("svg",function(e,t){for(var n in t||(t={}))zr.call(t,n)&&Hr(e,n,t[n]);if(Fr){var r,i=ee(Fr(t));try{for(i.s();!(r=i.n()).done;)n=r.value,Vr.call(t,n)&&Hr(e,n,t[n])}catch(e){i.e(e)}finally{i.f()}}return e}({height:i,width:i,viewBox:"0 0 ".concat(g," ").concat(g)},m),a.createElement("path",{fill:l,d:"M0,0 h".concat(g,"v").concat(g,"H0z"),shapeRendering:"crispEdges"}),a.createElement("path",{fill:f,d:x,shapeRendering:"crispEdges"}),w)}!function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}}();var Zr={prefix:"far",iconName:"copy",icon:[512,512,[],"f0c5","M502.6 70.63l-61.25-61.25C435.4 3.371 427.2 0 418.7 0H255.1c-35.35 0-64 28.66-64 64l.0195 256C192 355.4 220.7 384 256 384h192c35.2 0 64-28.8 64-64V93.25C512 84.77 508.6 76.63 502.6 70.63zM464 320c0 8.836-7.164 16-16 16H255.1c-8.838 0-16-7.164-16-16L239.1 64.13c0-8.836 7.164-16 16-16h128L384 96c0 17.67 14.33 32 32 32h47.1V320zM272 448c0 8.836-7.164 16-16 16H63.1c-8.838 0-16-7.164-16-16L47.98 192.1c0-8.836 7.164-16 16-16H160V128H63.99c-35.35 0-64 28.65-64 64l.0098 256C.002 483.3 28.66 512 64 512h192c35.2 0 64-28.8 64-64v-32h-47.1L272 448z"]},Yr={prefix:"far",iconName:"circle-xmark",icon:[512,512,[61532,"times-circle","xmark-circle"],"f057","M175 175C184.4 165.7 199.6 165.7 208.1 175L255.1 222.1L303 175C312.4 165.7 327.6 165.7 336.1 175C346.3 184.4 346.3 199.6 336.1 208.1L289.9 255.1L336.1 303C346.3 312.4 346.3 327.6 336.1 336.1C327.6 346.3 312.4 346.3 303 336.1L255.1 289.9L208.1 336.1C199.6 346.3 184.4 346.3 175 336.1C165.7 327.6 165.7 312.4 175 303L222.1 255.1L175 208.1C165.7 199.6 165.7 184.4 175 175V175zM512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256zM256 48C141.1 48 48 141.1 48 256C48 370.9 141.1 464 256 464C370.9 464 464 370.9 464 256C464 141.1 370.9 48 256 48z"]},$r={prefix:"fas",iconName:"circle-notch",icon:[512,512,[],"f1ce","M222.7 32.1c5 16.9-4.6 34.8-21.5 39.8C121.8 95.6 64 169.1 64 256c0 106 86 192 192 192s192-86 192-192c0-86.9-57.8-160.4-137.1-184.1c-16.9-5-26.6-22.9-21.5-39.8s22.9-26.6 39.8-21.5C434.9 42.1 512 140 512 256c0 141.4-114.6 256-256 256S0 397.4 0 256C0 140 77.1 42.1 182.9 10.6c16.9-5 34.8 4.6 39.8 21.5z"]},Kr={prefix:"fas",iconName:"check",icon:[512,512,[10003,10004],"f00c","M470.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L192 338.7 425.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]},Xr=n(8466);function Qr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qr(Object(n),!0).forEach((function(t){ni(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ei(e){return(ei="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ti(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ni(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ri(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,i=e}finally{try{o||null==n.return||n.return()}finally{if(s)throw i}}return a}}(e,t)||ai(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ii(e){return function(e){if(Array.isArray(e))return oi(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ai(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ai(e,t){if(e){if("string"==typeof e)return oi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?oi(e,t):void 0}}function oi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var si=function(){},ui={},li={},ci=null,fi={mark:si,measure:si};try{"undefined"!=typeof window&&(ui=window),"undefined"!=typeof document&&(li=document),"undefined"!=typeof MutationObserver&&(ci=MutationObserver),"undefined"!=typeof performance&&(fi=performance)}catch(e){}var di,pi,hi,mi,vi,yi=(ui.navigator||{}).userAgent,gi=void 0===yi?"":yi,bi=ui,wi=li,xi=ci,ki=fi,_i=(bi.document,!!wi.documentElement&&!!wi.head&&"function"==typeof wi.addEventListener&&"function"==typeof wi.createElement),Ei=~gi.indexOf("MSIE")||~gi.indexOf("Trident/"),Si="svg-inline--fa",Oi="data-fa-i2svg",Ai="data-fa-pseudo-element",Ci="data-prefix",Ti="data-icon",Ni="fontawesome-i2svg",ji=["HTML","HEAD","STYLE","SCRIPT"],Pi=function(){try{return!0}catch(e){return!1}}(),Ri="classic",Ii="sharp",Li=[Ri,Ii];function Mi(e){return new Proxy(e,{get:function(e,t){return t in e?e[t]:e.classic}})}var Bi=Mi((ni(di={},Ri,{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit","fa-kit":"kit"}),ni(di,Ii,{fa:"solid",fass:"solid","fa-solid":"solid"}),di)),Di=Mi((ni(pi={},Ri,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),ni(pi,Ii,{solid:"fass"}),pi)),Ui=Mi((ni(hi={},Ri,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),ni(hi,Ii,{fass:"fa-solid"}),hi)),Fi=Mi((ni(mi={},Ri,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),ni(mi,Ii,{"fa-solid":"fass"}),mi)),zi=/fa(s|r|l|t|d|b|k|ss)?[\-\ ]/,Vi="fa-layers-text",Hi=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,Wi=Mi((ni(vi={},Ri,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),ni(vi,Ii,{900:"fass"}),vi)),qi=[1,2,3,4,5,6,7,8,9,10],Gi=qi.concat([11,12,13,14,15,16,17,18,19,20]),Zi=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Yi="duotone-group",$i="primary",Ki="secondary",Xi=new Set;Object.keys(Di.classic).map(Xi.add.bind(Xi)),Object.keys(Di.sharp).map(Xi.add.bind(Xi));var Qi=[].concat(Li,ii(Xi),["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",Yi,"swap-opacity",$i,Ki]).concat(qi.map((function(e){return"".concat(e,"x")}))).concat(Gi.map((function(e){return"w-".concat(e)}))),Ji=bi.FontAwesomeConfig||{};wi&&"function"==typeof wi.querySelector&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach((function(e){var t=ri(e,2),n=t[0],r=t[1],i=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=wi.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(n));null!=i&&(Ji[r]=i)}));var ea={styleDefault:"solid",familyDefault:"classic",cssPrefix:"fa",replacementClass:Si,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Ji.familyPrefix&&(Ji.cssPrefix=Ji.familyPrefix);var ta=Jr(Jr({},ea),Ji);ta.autoReplaceSvg||(ta.observeMutations=!1);var na={};Object.keys(ea).forEach((function(e){Object.defineProperty(na,e,{enumerable:!0,set:function(t){ta[e]=t,ra.forEach((function(e){return e(na)}))},get:function(){return ta[e]}})})),Object.defineProperty(na,"familyPrefix",{enumerable:!0,set:function(e){ta.cssPrefix=e,ra.forEach((function(e){return e(na)}))},get:function(){return ta.cssPrefix}}),bi.FontAwesomeConfig=na;var ra=[],ia=16,aa={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function oa(){for(var e=12,t="";e-- >0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function sa(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function ua(e){return e.classList?sa(e.classList):(e.getAttribute("class")||"").split(" ").filter((function(e){return e}))}function la(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function ca(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")}),"")}function fa(e){return e.size!==aa.size||e.x!==aa.x||e.y!==aa.y||e.rotate!==aa.rotate||e.flipX||e.flipY}function da(){var e="fa",t=Si,n=na.cssPrefix,r=na.replacementClass,i=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-counter-scale, 0.25));\n transform: scale(var(--fa-counter-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(var(--fa-li-width, 2em) * -1);\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n -webkit-animation-name: fa-beat;\n animation-name: fa-beat;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n -webkit-animation-name: fa-bounce;\n animation-name: fa-bounce;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n -webkit-animation-name: fa-fade;\n animation-name: fa-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n -webkit-animation-name: fa-beat-fade;\n animation-name: fa-beat-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n -webkit-animation-name: fa-flip;\n animation-name: fa-flip;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n -webkit-animation-name: fa-shake;\n animation-name: fa-shake;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 2s);\n animation-duration: var(--fa-animation-duration, 2s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n -webkit-animation-delay: -1ms;\n animation-delay: -1ms;\n -webkit-animation-duration: 1ms;\n animation-duration: 1ms;\n -webkit-animation-iteration-count: 1;\n animation-iteration-count: 1;\n transition-delay: 0s;\n transition-duration: 0s;\n }\n}\n@-webkit-keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@-webkit-keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@-webkit-keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@-webkit-keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@-webkit-keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@-webkit-keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n -webkit-transform: rotate(var(--fa-rotate-angle, none));\n transform: rotate(var(--fa-rotate-angle, none));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';if(n!==e||r!==t){var a=new RegExp("\\.".concat(e,"\\-"),"g"),o=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");i=i.replace(a,".".concat(n,"-")).replace(o,"--".concat(n,"-")).replace(s,".".concat(r))}return i}var pa=!1;function ha(){na.autoAddCss&&!pa&&(function(e){if(e&&_i){var t=wi.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=wi.head.childNodes,r=null,i=n.length-1;i>-1;i--){var a=n[i],o=(a.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(r=a)}wi.head.insertBefore(t,r)}}(da()),pa=!0)}var ma={mixout:function(){return{dom:{css:da,insertCss:ha}}},hooks:function(){return{beforeDOMElementCreation:function(){ha()},beforeI2svg:function(){ha()}}}},va=bi||{};va.___FONT_AWESOME___||(va.___FONT_AWESOME___={}),va.___FONT_AWESOME___.styles||(va.___FONT_AWESOME___.styles={}),va.___FONT_AWESOME___.hooks||(va.___FONT_AWESOME___.hooks={}),va.___FONT_AWESOME___.shims||(va.___FONT_AWESOME___.shims=[]);var ya=va.___FONT_AWESOME___,ga=[],ba=!1;function wa(e){_i&&(ba?setTimeout(e,0):ga.push(e))}function xa(e){var t=e.tag,n=e.attributes,r=void 0===n?{}:n,i=e.children,a=void 0===i?[]:i;return"string"==typeof e?la(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,'="').concat(la(e[n]),'" ')}),"").trim()}(r),">").concat(a.map(xa).join(""),"</").concat(t,">")}function ka(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}_i&&((ba=(wi.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(wi.readyState))||wi.addEventListener("DOMContentLoaded",(function e(){wi.removeEventListener("DOMContentLoaded",e),ba=1,ga.map((function(e){return e()}))})));var _a=function(e,t,n,r){var i,a,o,s=Object.keys(e),u=s.length,l=void 0!==r?function(e,t){return function(n,r,i,a){return e.call(t,n,r,i,a)}}(t,r):t;for(void 0===n?(i=1,o=e[s[0]]):(i=0,o=n);i<u;i++)o=l(o,e[a=s[i]],a,e);return o};function Ea(e){var t=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var a=e.charCodeAt(n++);56320==(64512&a)?t.push(((1023&i)<<10)+(1023&a)+65536):(t.push(i),n--)}else t.push(i)}return t}(e);return 1===t.length?t[0].toString(16):null}function Sa(e){return Object.keys(e).reduce((function(t,n){var r=e[n];return r.icon?t[r.iconName]=r.icon:t[n]=r,t}),{})}function Oa(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.skipHooks,i=void 0!==r&&r,a=Sa(t);"function"!=typeof ya.hooks.addPack||i?ya.styles[e]=Jr(Jr({},ya.styles[e]||{}),a):ya.hooks.addPack(e,Sa(t)),"fas"===e&&Oa("fa",t)}var Aa,Ca,Ta,Na=ya.styles,ja=ya.shims,Pa=(ni(Aa={},Ri,Object.values(Ui.classic)),ni(Aa,Ii,Object.values(Ui.sharp)),Aa),Ra=null,Ia={},La={},Ma={},Ba={},Da={},Ua=(ni(Ca={},Ri,Object.keys(Bi.classic)),ni(Ca,Ii,Object.keys(Bi.sharp)),Ca);function Fa(e,t){var n,r=t.split("-"),i=r[0],a=r.slice(1).join("-");return i!==e||""===a||(n=a,~Qi.indexOf(n))?null:a}var za=function(){var e=function(e){return _a(Na,(function(t,n,r){return t[r]=_a(n,e,{}),t}),{})};Ia=e((function(e,t,n){(t[3]&&(e[t[3]]=n),t[2])&&t[2].filter((function(e){return"number"==typeof e})).forEach((function(t){e[t.toString(16)]=n}));return e})),La=e((function(e,t,n){(e[n]=n,t[2])&&t[2].filter((function(e){return"string"==typeof e})).forEach((function(t){e[t]=n}));return e})),Da=e((function(e,t,n){var r=t[2];return e[n]=n,r.forEach((function(t){e[t]=n})),e}));var t="far"in Na||na.autoFetchSvg,n=_a(ja,(function(e,n){var r=n[0],i=n[1],a=n[2];return"far"!==i||t||(i="fas"),"string"==typeof r&&(e.names[r]={prefix:i,iconName:a}),"number"==typeof r&&(e.unicodes[r.toString(16)]={prefix:i,iconName:a}),e}),{names:{},unicodes:{}});Ma=n.names,Ba=n.unicodes,Ra=Ga(na.styleDefault,{family:na.familyDefault})};function Va(e,t){return(Ia[e]||{})[t]}function Ha(e,t){return(Da[e]||{})[t]}function Wa(e){return Ma[e]||{prefix:null,iconName:null}}function qa(){return Ra}function Ga(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.family,r=void 0===n?Ri:n,i=Bi[r][e],a=Di[r][e]||Di[r][i],o=e in ya.styles?e:null;return a||o||null}ra.push((function(e){Ra=Ga(e.styleDefault,{family:na.familyDefault})})),za();var Za=(ni(Ta={},Ri,Object.keys(Ui.classic)),ni(Ta,Ii,Object.keys(Ui.sharp)),Ta);function Ya(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.skipLookups,i=void 0!==r&&r,a=(ni(t={},Ri,"".concat(na.cssPrefix,"-").concat(Ri)),ni(t,Ii,"".concat(na.cssPrefix,"-").concat(Ii)),t),o=null,s=Ri;(e.includes(a.classic)||e.some((function(e){return Za.classic.includes(e)})))&&(s=Ri),(e.includes(a.sharp)||e.some((function(e){return Za.sharp.includes(e)})))&&(s=Ii);var u=e.reduce((function(e,t){var n=Fa(na.cssPrefix,t);if(Na[t]?(t=Pa[s].includes(t)?Fi[s][t]:t,o=t,e.prefix=t):Ua[s].indexOf(t)>-1?(o=t,e.prefix=Ga(t,{family:s})):n?e.iconName=n:t!==na.replacementClass&&t!==a.classic&&t!==a.sharp&&e.rest.push(t),!i&&e.prefix&&e.iconName){var r="fa"===o?Wa(e.iconName):{},u=Ha(e.prefix,e.iconName);r.prefix&&(o=null),e.iconName=r.iconName||u||e.iconName,e.prefix=r.prefix||e.prefix,"far"!==e.prefix||Na.far||!Na.fas||na.autoFetchSvg||(e.prefix="fas")}return e}),{prefix:null,iconName:null,rest:[]});return(e.includes("fa-brands")||e.includes("fab"))&&(u.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(u.prefix="fad"),u.prefix||s!==Ii||!Na.fass&&!na.autoFetchSvg||(u.prefix="fass",u.iconName=Ha(u.prefix,u.iconName)||u.iconName),"fa"!==u.prefix&&"fa"!==o||(u.prefix=qa()||"fas"),u}var $a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.definitions={}}var t,n;return t=e,(n=[{key:"add",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n.reduce(this._pullDefinitions,{});Object.keys(i).forEach((function(t){e.definitions[t]=Jr(Jr({},e.definitions[t]||{}),i[t]),Oa(t,i[t]);var n=Ui.classic[t];n&&Oa(n,i[t]),za()}))}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(e,t){var n=t.prefix&&t.iconName&&t.icon?{0:t}:t;return Object.keys(n).map((function(t){var r=n[t],i=r.prefix,a=r.iconName,o=r.icon,s=o[2];e[i]||(e[i]={}),s.length>0&&s.forEach((function(t){"string"==typeof t&&(e[i][t]=o)})),e[i][a]=o})),e}}])&&ti(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Ka=[],Xa={},Qa={},Ja=Object.keys(Qa);function eo(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var a=Xa[e]||[];return a.forEach((function(e){t=e.apply(null,[t].concat(r))})),t}function to(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=Xa[e]||[];i.forEach((function(e){e.apply(null,n)}))}function no(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Qa[e]?Qa[e].apply(null,t):void 0}function ro(e){"fa"===e.prefix&&(e.prefix="fas");var t=e.iconName,n=e.prefix||qa();if(t)return t=Ha(n,t)||t,ka(io.definitions,n,t)||ka(ya.styles,n,t)}var io=new $a,ao={i2svg:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _i?(to("beforeI2svg",e),no("pseudoElements2svg",e),no("i2svg",e)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.autoReplaceSvgRoot;!1===na.autoReplaceSvg&&(na.autoReplaceSvg=!0),na.observeMutations=!0,wa((function(){so({autoReplaceSvgRoot:t}),to("watch",e)}))}},oo={noAuto:function(){na.autoReplaceSvg=!1,na.observeMutations=!1,to("noAuto")},config:na,dom:ao,parse:{icon:function(e){if(null===e)return null;if("object"===ei(e)&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Ha(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&2===e.length){var t=0===e[1].indexOf("fa-")?e[1].slice(3):e[1],n=Ga(e[0]);return{prefix:n,iconName:Ha(n,t)||t}}if("string"==typeof e&&(e.indexOf("".concat(na.cssPrefix,"-"))>-1||e.match(zi))){var r=Ya(e.split(" "),{skipLookups:!0});return{prefix:r.prefix||qa(),iconName:Ha(r.prefix,r.iconName)||r.iconName}}if("string"==typeof e){var i=qa();return{prefix:i,iconName:Ha(i,e)||e}}}},library:io,findIconDefinition:ro,toHtml:xa},so=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.autoReplaceSvgRoot,n=void 0===t?wi:t;(Object.keys(ya.styles).length>0||na.autoFetchSvg)&&_i&&na.autoReplaceSvg&&oo.dom.i2svg({node:n})};function uo(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((function(e){return xa(e)}))}}),Object.defineProperty(e,"node",{get:function(){if(_i){var t=wi.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function lo(e){var t=e.icons,n=t.main,r=t.mask,i=e.prefix,a=e.iconName,o=e.transform,s=e.symbol,u=e.title,l=e.maskId,c=e.titleId,f=e.extra,d=e.watchable,p=void 0!==d&&d,h=r.found?r:n,m=h.width,v=h.height,y="fak"===i,g=[na.replacementClass,a?"".concat(na.cssPrefix,"-").concat(a):""].filter((function(e){return-1===f.classes.indexOf(e)})).filter((function(e){return""!==e||!!e})).concat(f.classes).join(" "),b={children:[],attributes:Jr(Jr({},f.attributes),{},{"data-prefix":i,"data-icon":a,class:g,role:f.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(m," ").concat(v)})},w=y&&!~f.classes.indexOf("fa-fw")?{width:"".concat(m/v*16*.0625,"em")}:{};p&&(b.attributes[Oi]=""),u&&(b.children.push({tag:"title",attributes:{id:b.attributes["aria-labelledby"]||"title-".concat(c||oa())},children:[u]}),delete b.attributes.title);var x=Jr(Jr({},b),{},{prefix:i,iconName:a,main:n,mask:r,maskId:l,transform:o,symbol:s,styles:Jr(Jr({},w),f.styles)}),k=r.found&&n.found?no("generateAbstractMask",x)||{children:[],attributes:{}}:no("generateAbstractIcon",x)||{children:[],attributes:{}},_=k.children,E=k.attributes;return x.children=_,x.attributes=E,s?function(e){var t=e.prefix,n=e.iconName,r=e.children,i=e.attributes,a=e.symbol,o=!0===a?"".concat(t,"-").concat(na.cssPrefix,"-").concat(n):a;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Jr(Jr({},i),{},{id:o}),children:r}]}]}(x):function(e){var t=e.children,n=e.main,r=e.mask,i=e.attributes,a=e.styles,o=e.transform;if(fa(o)&&n.found&&!r.found){var s={x:n.width/n.height/2,y:.5};i.style=ca(Jr(Jr({},a),{},{"transform-origin":"".concat(s.x+o.x/16,"em ").concat(s.y+o.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}(x)}function co(e){var t=e.content,n=e.width,r=e.height,i=e.transform,a=e.title,o=e.extra,s=e.watchable,u=void 0!==s&&s,l=Jr(Jr(Jr({},o.attributes),a?{title:a}:{}),{},{class:o.classes.join(" ")});u&&(l[Oi]="");var c=Jr({},o.styles);fa(i)&&(c.transform=function(e){var t=e.transform,n=e.width,r=void 0===n?16:n,i=e.height,a=void 0===i?16:i,o=e.startCentered,s=void 0!==o&&o,u="";return u+=s&&Ei?"translate(".concat(t.x/ia-r/2,"em, ").concat(t.y/ia-a/2,"em) "):s?"translate(calc(-50% + ".concat(t.x/ia,"em), calc(-50% + ").concat(t.y/ia,"em)) "):"translate(".concat(t.x/ia,"em, ").concat(t.y/ia,"em) "),(u+="scale(".concat(t.size/ia*(t.flipX?-1:1),", ").concat(t.size/ia*(t.flipY?-1:1),") "))+"rotate(".concat(t.rotate,"deg) ")}({transform:i,startCentered:!0,width:n,height:r}),c["-webkit-transform"]=c.transform);var f=ca(c);f.length>0&&(l.style=f);var d=[];return d.push({tag:"span",attributes:l,children:[t]}),a&&d.push({tag:"span",attributes:{class:"sr-only"},children:[a]}),d}function fo(e){var t=e.content,n=e.title,r=e.extra,i=Jr(Jr(Jr({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),a=ca(r.styles);a.length>0&&(i.style=a);var o=[];return o.push({tag:"span",attributes:i,children:[t]}),n&&o.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),o}var po=ya.styles;function ho(e){var t=e[0],n=e[1],r=ri(e.slice(4),1)[0];return{found:!0,width:t,height:n,icon:Array.isArray(r)?{tag:"g",attributes:{class:"".concat(na.cssPrefix,"-").concat(Yi)},children:[{tag:"path",attributes:{class:"".concat(na.cssPrefix,"-").concat(Ki),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(na.cssPrefix,"-").concat($i),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}}}}var mo={found:!1,width:512,height:512};function vo(e,t){var n=t;return"fa"===t&&null!==na.styleDefault&&(t=qa()),new Promise((function(r,i){if(no("missingIconAbstract"),"fa"===n){var a=Wa(e)||{};e=a.iconName||e,t=a.prefix||t}if(e&&t&&po[t]&&po[t][e])return r(ho(po[t][e]));!function(e,t){Pi||na.showMissingIcons||!e||Xr.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}(e,t),r(Jr(Jr({},mo),{},{icon:na.showMissingIcons&&e&&no("missingIconAbstract")||{}}))}))}var yo=function(){},go=na.measurePerformance&&ki&&ki.mark&&ki.measure?ki:{mark:yo,measure:yo},bo='FA "6.2.0"',wo=function(e){return go.mark("".concat(bo," ").concat(e," begins")),function(){return function(e){go.mark("".concat(bo," ").concat(e," ends")),go.measure("".concat(bo," ").concat(e),"".concat(bo," ").concat(e," begins"),"".concat(bo," ").concat(e," ends"))}(e)}},xo=function(){};function ko(e){return"string"==typeof(e.getAttribute?e.getAttribute(Oi):null)}function _o(e){return wi.createElementNS("http://www.w3.org/2000/svg",e)}function Eo(e){return wi.createElement(e)}function So(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.ceFn,r=void 0===n?"svg"===e.tag?_o:Eo:n;if("string"==typeof e)return wi.createTextNode(e);var i=r(e.tag);Object.keys(e.attributes||[]).forEach((function(t){i.setAttribute(t,e.attributes[t])}));var a=e.children||[];return a.forEach((function(e){i.appendChild(So(e,{ceFn:r}))})),i}var Oo={replace:function(e){var t=e[0];if(t.parentNode)if(e[1].forEach((function(e){t.parentNode.insertBefore(So(e),t)})),null===t.getAttribute(Oi)&&na.keepOriginalSource){var n=wi.createComment(function(e){var t=" ".concat(e.outerHTML," ");return"".concat(t,"Font Awesome fontawesome.com ")}(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){var t=e[0],n=e[1];if(~ua(t).indexOf(na.replacementClass))return Oo.replace(e);var r=new RegExp("".concat(na.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){var i=n[0].attributes.class.split(" ").reduce((function(e,t){return t===na.replacementClass||t.match(r)?e.toSvg.push(t):e.toNode.push(t),e}),{toNode:[],toSvg:[]});n[0].attributes.class=i.toSvg.join(" "),0===i.toNode.length?t.removeAttribute("class"):t.setAttribute("class",i.toNode.join(" "))}var a=n.map((function(e){return xa(e)})).join("\n");t.setAttribute(Oi,""),t.innerHTML=a}};function Ao(e){e()}function Co(e,t){var n="function"==typeof t?t:xo;if(0===e.length)n();else{var r=Ao;"async"===na.mutateApproach&&(r=bi.requestAnimationFrame||Ao),r((function(){var t=!0===na.autoReplaceSvg?Oo.replace:Oo[na.autoReplaceSvg]||Oo.replace,r=wo("mutate");e.map(t),r(),n()}))}}var To=!1;function No(){To=!0}function jo(){To=!1}var Po=null;function Ro(e){if(xi&&na.observeMutations){var t=e.treeCallback,n=void 0===t?xo:t,r=e.nodeCallback,i=void 0===r?xo:r,a=e.pseudoElementsCallback,o=void 0===a?xo:a,s=e.observeMutationsRoot,u=void 0===s?wi:s;Po=new xi((function(e){if(!To){var t=qa();sa(e).forEach((function(e){if("childList"===e.type&&e.addedNodes.length>0&&!ko(e.addedNodes[0])&&(na.searchPseudoElements&&o(e.target),n(e.target)),"attributes"===e.type&&e.target.parentNode&&na.searchPseudoElements&&o(e.target.parentNode),"attributes"===e.type&&ko(e.target)&&~Zi.indexOf(e.attributeName))if("class"===e.attributeName&&function(e){var t=e.getAttribute?e.getAttribute(Ci):null,n=e.getAttribute?e.getAttribute(Ti):null;return t&&n}(e.target)){var r=Ya(ua(e.target)),a=r.prefix,s=r.iconName;e.target.setAttribute(Ci,a||t),s&&e.target.setAttribute(Ti,s)}else(u=e.target)&&u.classList&&u.classList.contains&&u.classList.contains(na.replacementClass)&&i(e.target);var u}))}})),_i&&Po.observe(u,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Io(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce((function(e,t){var n=t.split(":"),r=n[0],i=n.slice(1);return r&&i.length>0&&(e[r]=i.join(":").trim()),e}),{})),n}function Lo(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=void 0!==e.innerText?e.innerText.trim():"",i=Ya(ua(e));return i.prefix||(i.prefix=qa()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=function(e,t){return(La[e]||{})[t]}(i.prefix,e.innerText)||Va(i.prefix,Ea(e.innerText))),!i.iconName&&na.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function Mo(e){var t=sa(e.attributes).reduce((function(e,t){return"class"!==e.name&&"style"!==e.name&&(e[t.name]=t.value),e}),{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return na.autoA11y&&(n?t["aria-labelledby"]="".concat(na.replacementClass,"-title-").concat(r||oa()):(t["aria-hidden"]="true",t.focusable="false")),t}function Bo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},n=Lo(e),r=n.iconName,i=n.prefix,a=n.rest,o=Mo(e),s=eo("parseNodeAttributes",{},e),u=t.styleParser?Io(e):[];return Jr({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:i,transform:aa,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:a,styles:u,attributes:o}},s)}var Do=ya.styles;function Uo(e){var t="nest"===na.autoReplaceSvg?Bo(e,{styleParser:!1}):Bo(e);return~t.extra.classes.indexOf(Vi)?no("generateLayersText",e,t):no("generateSvgReplacementMutation",e,t)}var Fo=new Set;function zo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!_i)return Promise.resolve();var n=wi.documentElement.classList,r=function(e){return n.add("".concat(Ni,"-").concat(e))},i=function(e){return n.remove("".concat(Ni,"-").concat(e))},a=na.autoFetchSvg?Fo:Li.map((function(e){return"fa-".concat(e)})).concat(Object.keys(Do));a.includes("fa")||a.push("fa");var o=[".".concat(Vi,":not([").concat(Oi,"])")].concat(a.map((function(e){return".".concat(e,":not([").concat(Oi,"])")}))).join(", ");if(0===o.length)return Promise.resolve();var s=[];try{s=sa(e.querySelectorAll(o))}catch(e){}if(!(s.length>0))return Promise.resolve();r("pending"),i("complete");var u=wo("onTree"),l=s.reduce((function(e,t){try{var n=Uo(t);n&&e.push(n)}catch(e){Pi||"MissingIcon"===e.name&&Xr.error(e)}return e}),[]);return new Promise((function(e,n){Promise.all(l).then((function(n){Co(n,(function(){r("active"),r("complete"),i("pending"),"function"==typeof t&&t(),u(),e()}))})).catch((function(e){u(),n(e)}))}))}function Vo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Uo(e).then((function(e){e&&Co([e],t)}))}Li.map((function(e){Fo.add("fa-".concat(e))})),Object.keys(Bi.classic).map(Fo.add.bind(Fo)),Object.keys(Bi.sharp).map(Fo.add.bind(Fo)),Fo=ii(Fo);var Ho=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?aa:n,i=t.symbol,a=void 0!==i&&i,o=t.mask,s=void 0===o?null:o,u=t.maskId,l=void 0===u?null:u,c=t.title,f=void 0===c?null:c,d=t.titleId,p=void 0===d?null:d,h=t.classes,m=void 0===h?[]:h,v=t.attributes,y=void 0===v?{}:v,g=t.styles,b=void 0===g?{}:g;if(e){var w=e.prefix,x=e.iconName,k=e.icon;return uo(Jr({type:"icon"},e),(function(){return to("beforeDOMElementCreation",{iconDefinition:e,params:t}),na.autoA11y&&(f?y["aria-labelledby"]="".concat(na.replacementClass,"-title-").concat(p||oa()):(y["aria-hidden"]="true",y.focusable="false")),lo({icons:{main:ho(k),mask:s?ho(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:w,iconName:x,transform:Jr(Jr({},aa),r),symbol:a,title:f,maskId:l,titleId:p,extra:{attributes:y,styles:b,classes:m}})}))}},Wo={mixout:function(){return{icon:(e=Ho,function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(t||{}).icon?t:ro(t||{}),i=n.mask;return i&&(i=(i||{}).icon?i:ro(i||{})),e(r,Jr(Jr({},n),{},{mask:i}))})};var e},hooks:function(){return{mutationObserverCallbacks:function(e){return e.treeCallback=zo,e.nodeCallback=Vo,e}}},provides:function(e){e.i2svg=function(e){var t=e.node,n=void 0===t?wi:t,r=e.callback;return zo(n,void 0===r?function(){}:r)},e.generateSvgReplacementMutation=function(e,t){var n=t.iconName,r=t.title,i=t.titleId,a=t.prefix,o=t.transform,s=t.symbol,u=t.mask,l=t.maskId,c=t.extra;return new Promise((function(t,f){Promise.all([vo(n,a),u.iconName?vo(u.iconName,u.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then((function(u){var f=ri(u,2),d=f[0],p=f[1];t([e,lo({icons:{main:d,mask:p},prefix:a,iconName:n,transform:o,symbol:s,maskId:l,title:r,titleId:i,extra:c,watchable:!0})])})).catch(f)}))},e.generateAbstractIcon=function(e){var t,n=e.children,r=e.attributes,i=e.main,a=e.transform,o=ca(e.styles);return o.length>0&&(r.style=o),fa(a)&&(t=no("generateAbstractTransformGrouping",{main:i,transform:a,containerWidth:i.width,iconWidth:i.width})),n.push(t||i.icon),{children:n,attributes:r}}}},qo={mixout:function(){return{layer:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.classes,r=void 0===n?[]:n;return uo({type:"layer"},(function(){to("beforeDOMElementCreation",{assembler:e,params:t});var n=[];return e((function(e){Array.isArray(e)?e.map((function(e){n=n.concat(e.abstract)})):n=n.concat(e.abstract)})),[{tag:"span",attributes:{class:["".concat(na.cssPrefix,"-layers")].concat(ii(r)).join(" ")},children:n}]}))}}}},Go={mixout:function(){return{counter:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.title,r=void 0===n?null:n,i=t.classes,a=void 0===i?[]:i,o=t.attributes,s=void 0===o?{}:o,u=t.styles,l=void 0===u?{}:u;return uo({type:"counter",content:e},(function(){return to("beforeDOMElementCreation",{content:e,params:t}),fo({content:e.toString(),title:r,extra:{attributes:s,styles:l,classes:["".concat(na.cssPrefix,"-layers-counter")].concat(ii(a))}})}))}}}},Zo={mixout:function(){return{text:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?aa:n,i=t.title,a=void 0===i?null:i,o=t.classes,s=void 0===o?[]:o,u=t.attributes,l=void 0===u?{}:u,c=t.styles,f=void 0===c?{}:c;return uo({type:"text",content:e},(function(){return to("beforeDOMElementCreation",{content:e,params:t}),co({content:e,transform:Jr(Jr({},aa),r),title:a,extra:{attributes:l,styles:f,classes:["".concat(na.cssPrefix,"-layers-text")].concat(ii(s))}})}))}}},provides:function(e){e.generateLayersText=function(e,t){var n=t.title,r=t.transform,i=t.extra,a=null,o=null;if(Ei){var s=parseInt(getComputedStyle(e).fontSize,10),u=e.getBoundingClientRect();a=u.width/s,o=u.height/s}return na.autoA11y&&!n&&(i.attributes["aria-hidden"]="true"),Promise.resolve([e,co({content:e.innerHTML,width:a,height:o,transform:r,title:n,extra:i,watchable:!0})])}}},Yo=new RegExp('"',"ug"),$o=[1105920,1112319];function Ko(e,t){var n="".concat("data-fa-pseudo-element-pending").concat(t.replace(":","-"));return new Promise((function(r,i){if(null!==e.getAttribute(n))return r();var a=sa(e.children).filter((function(e){return e.getAttribute(Ai)===t}))[0],o=bi.getComputedStyle(e,t),s=o.getPropertyValue("font-family").match(Hi),u=o.getPropertyValue("font-weight"),l=o.getPropertyValue("content");if(a&&!s)return e.removeChild(a),r();if(s&&"none"!==l&&""!==l){var c=o.getPropertyValue("content"),f=~["Sharp"].indexOf(s[2])?Ii:Ri,d=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(s[2])?Di[f][s[2].toLowerCase()]:Wi[f][u],p=function(e){var t=e.replace(Yo,""),n=function(e,t){var n,r=e.length,i=e.charCodeAt(0);return i>=55296&&i<=56319&&r>1&&(n=e.charCodeAt(1))>=56320&&n<=57343?1024*(i-55296)+n-56320+65536:i}(t),r=n>=$o[0]&&n<=$o[1],i=2===t.length&&t[0]===t[1];return{value:Ea(i?t[0]:t),isSecondary:r||i}}(c),h=p.value,m=p.isSecondary,v=s[0].startsWith("FontAwesome"),y=Va(d,h),g=y;if(v){var b=function(e){var t=Ba[e],n=Va("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}(h);b.iconName&&b.prefix&&(y=b.iconName,d=b.prefix)}if(!y||m||a&&a.getAttribute(Ci)===d&&a.getAttribute(Ti)===g)r();else{e.setAttribute(n,g),a&&e.removeChild(a);var w={iconName:null,title:null,titleId:null,prefix:null,transform:aa,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},x=w.extra;x.attributes[Ai]=t,vo(y,d).then((function(i){var a=lo(Jr(Jr({},w),{},{icons:{main:i,mask:{prefix:null,iconName:null,rest:[]}},prefix:d,iconName:g,extra:x,watchable:!0})),o=wi.createElement("svg");"::before"===t?e.insertBefore(o,e.firstChild):e.appendChild(o),o.outerHTML=a.map((function(e){return xa(e)})).join("\n"),e.removeAttribute(n),r()})).catch(i)}}else r()}))}function Xo(e){return Promise.all([Ko(e,"::before"),Ko(e,"::after")])}function Qo(e){return!(e.parentNode===document.head||~ji.indexOf(e.tagName.toUpperCase())||e.getAttribute(Ai)||e.parentNode&&"svg"===e.parentNode.tagName)}function Jo(e){if(_i)return new Promise((function(t,n){var r=sa(e.querySelectorAll("*")).filter(Qo).map(Xo),i=wo("searchPseudoElements");No(),Promise.all(r).then((function(){i(),jo(),t()})).catch((function(){i(),jo(),n()}))}))}var es=!1,ts=function(e){return e.toLowerCase().split(" ").reduce((function(e,t){var n=t.toLowerCase().split("-"),r=n[0],i=n.slice(1).join("-");if(r&&"h"===i)return e.flipX=!0,e;if(r&&"v"===i)return e.flipY=!0,e;if(i=parseFloat(i),isNaN(i))return e;switch(r){case"grow":e.size=e.size+i;break;case"shrink":e.size=e.size-i;break;case"left":e.x=e.x-i;break;case"right":e.x=e.x+i;break;case"up":e.y=e.y-i;break;case"down":e.y=e.y+i;break;case"rotate":e.rotate=e.rotate+i}return e}),{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},ns={x:0,y:0,width:"100%",height:"100%"};function rs(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}!function(e,t){var n=t.mixoutsTo;Ka=e,Xa={},Object.keys(Qa).forEach((function(e){-1===Ja.indexOf(e)&&delete Qa[e]})),Ka.forEach((function(e){var t=e.mixout?e.mixout():{};if(Object.keys(t).forEach((function(e){"function"==typeof t[e]&&(n[e]=t[e]),"object"===ei(t[e])&&Object.keys(t[e]).forEach((function(r){n[e]||(n[e]={}),n[e][r]=t[e][r]}))})),e.hooks){var r=e.hooks();Object.keys(r).forEach((function(e){Xa[e]||(Xa[e]=[]),Xa[e].push(r[e])}))}e.provides&&e.provides(Qa)}))}([ma,Wo,qo,Go,Zo,{hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=Jo,e}}},provides:function(e){e.pseudoElements2svg=function(e){var t=e.node,n=void 0===t?wi:t;na.searchPseudoElements&&Jo(n)}}},{mixout:function(){return{dom:{unwatch:function(){No(),es=!0}}}},hooks:function(){return{bootstrap:function(){Ro(eo("mutationObserverCallbacks",{}))},noAuto:function(){Po&&Po.disconnect()},watch:function(e){var t=e.observeMutationsRoot;es?jo():Ro(eo("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}},{mixout:function(){return{parse:{transform:function(e){return ts(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-transform");return n&&(e.transform=ts(n)),e}}},provides:function(e){e.generateAbstractTransformGrouping=function(e){var t=e.main,n=e.transform,r=e.containerWidth,i=e.iconWidth,a={transform:"translate(".concat(r/2," 256)")},o="translate(".concat(32*n.x,", ").concat(32*n.y,") "),s="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),u="rotate(".concat(n.rotate," 0 0)"),l={outer:a,inner:{transform:"".concat(o," ").concat(s," ").concat(u)},path:{transform:"translate(".concat(i/2*-1," -256)")}};return{tag:"g",attributes:Jr({},l.outer),children:[{tag:"g",attributes:Jr({},l.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:Jr(Jr({},t.icon.attributes),l.path)}]}]}}}},{hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-mask"),r=n?Ya(n.split(" ").map((function(e){return e.trim()}))):{prefix:null,iconName:null,rest:[]};return r.prefix||(r.prefix=qa()),e.mask=r,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides:function(e){e.generateAbstractMask=function(e){var t,n=e.children,r=e.attributes,i=e.main,a=e.mask,o=e.maskId,s=e.transform,u=i.width,l=i.icon,c=a.width,f=a.icon,d=function(e){var t=e.transform,n=e.iconWidth,r={transform:"translate(".concat(e.containerWidth/2," 256)")},i="translate(".concat(32*t.x,", ").concat(32*t.y,") "),a="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),o="rotate(".concat(t.rotate," 0 0)");return{outer:r,inner:{transform:"".concat(i," ").concat(a," ").concat(o)},path:{transform:"translate(".concat(n/2*-1," -256)")}}}({transform:s,containerWidth:c,iconWidth:u}),p={tag:"rect",attributes:Jr(Jr({},ns),{},{fill:"white"})},h=l.children?{children:l.children.map(rs)}:{},m={tag:"g",attributes:Jr({},d.inner),children:[rs(Jr({tag:l.tag,attributes:Jr(Jr({},l.attributes),d.path)},h))]},v={tag:"g",attributes:Jr({},d.outer),children:[m]},y="mask-".concat(o||oa()),g="clip-".concat(o||oa()),b={tag:"mask",attributes:Jr(Jr({},ns),{},{id:y,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[p,v]},w={tag:"defs",children:[{tag:"clipPath",attributes:{id:g},children:(t=f,"g"===t.tag?t.children:[t])},b]};return n.push(w,{tag:"rect",attributes:Jr({fill:"currentColor","clip-path":"url(#".concat(g,")"),mask:"url(#".concat(y,")")},ns)}),{children:n,attributes:r}}}},{provides:function(e){var t=!1;bi.matchMedia&&(t=bi.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){var e=[],n={fill:"currentColor"},r={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};e.push({tag:"path",attributes:Jr(Jr({},n),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var i=Jr(Jr({},r),{},{attributeName:"opacity"}),a={tag:"circle",attributes:Jr(Jr({},n),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||a.children.push({tag:"animate",attributes:Jr(Jr({},r),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Jr(Jr({},i),{},{values:"1;0;1;1;0;1;"})}),e.push(a),e.push({tag:"path",attributes:Jr(Jr({},n),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:Jr(Jr({},i),{},{values:"1;0;0;0;0;1;"})}]}),t||e.push({tag:"path",attributes:Jr(Jr({},n),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:Jr(Jr({},i),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:e}}}},{hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-symbol"),r=null!==n&&(""===n||n);return e.symbol=r,e}}}}],{mixoutsTo:oo});var is=oo.parse,as=oo.icon,os=n(5192),ss=n.n(os),us=n(8466);function ls(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ls(Object(n),!0).forEach((function(t){ds(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ls(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fs(e){return(fs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ds(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ps(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function hs(e){return function(e){if(Array.isArray(e))return ms(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return ms(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ms(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ms(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function vs(e){return t=e,(t-=0)===t?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1);var t}var ys=["style"];function gs(e){return e.split(";").map((function(e){return e.trim()})).filter((function(e){return e})).reduce((function(e,t){var n,r=t.indexOf(":"),i=vs(t.slice(0,r)),a=t.slice(r+1).trim();return i.startsWith("webkit")?e[(n=i,n.charAt(0).toUpperCase()+n.slice(1))]=a:e[i]=a,e}),{})}var bs=!1;try{bs=!0}catch(e){}function ws(e){return e&&"object"===fs(e)&&e.prefix&&e.iconName&&e.icon?e:is.icon?is.icon(e):null===e?null:e&&"object"===fs(e)&&e.prefix&&e.iconName?e:Array.isArray(e)&&2===e.length?{prefix:e[0],iconName:e[1]}:"string"==typeof e?{prefix:"fas",iconName:e}:void 0}function xs(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?ds({},e,t):{}}var ks=a.forwardRef((function(e,t){var n=e.icon,r=e.mask,i=e.symbol,a=e.className,o=e.title,s=e.titleId,u=e.maskId,l=ws(n),c=xs("classes",[].concat(hs(function(e){var t,n=e.beat,r=e.fade,i=e.beatFade,a=e.bounce,o=e.shake,s=e.flash,u=e.spin,l=e.spinPulse,c=e.spinReverse,f=e.pulse,d=e.fixedWidth,p=e.inverse,h=e.border,m=e.listItem,v=e.flip,y=e.size,g=e.rotation,b=e.pull,w=(ds(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":i,"fa-bounce":a,"fa-shake":o,"fa-flash":s,"fa-spin":u,"fa-spin-reverse":c,"fa-spin-pulse":l,"fa-pulse":f,"fa-fw":d,"fa-inverse":p,"fa-border":h,"fa-li":m,"fa-flip":!0===v,"fa-flip-horizontal":"horizontal"===v||"both"===v,"fa-flip-vertical":"vertical"===v||"both"===v},"fa-".concat(y),null!=y),ds(t,"fa-rotate-".concat(g),null!=g&&0!==g),ds(t,"fa-pull-".concat(b),null!=b),ds(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(w).map((function(e){return w[e]?e:null})).filter((function(e){return e}))}(e)),hs(a.split(" ")))),f=xs("transform","string"==typeof e.transform?is.transform(e.transform):e.transform),d=xs("mask",ws(r)),p=as(l,cs(cs(cs(cs({},c),f),d),{},{symbol:i,title:o,titleId:s,maskId:u}));if(!p)return function(){var e;!bs&&us&&"function"==typeof us.error&&(e=us).error.apply(e,arguments)}("Could not find icon",l),null;var h=p.abstract,m={ref:t};return Object.keys(e).forEach((function(t){ks.defaultProps.hasOwnProperty(t)||(m[t]=e[t])})),_s(h[0],m)}));ks.displayName="FontAwesomeIcon",ks.propTypes={beat:ss().bool,border:ss().bool,beatFade:ss().bool,bounce:ss().bool,className:ss().string,fade:ss().bool,flash:ss().bool,mask:ss().oneOfType([ss().object,ss().array,ss().string]),maskId:ss().string,fixedWidth:ss().bool,inverse:ss().bool,flip:ss().oneOf([!0,!1,"horizontal","vertical","both"]),icon:ss().oneOfType([ss().object,ss().array,ss().string]),listItem:ss().bool,pull:ss().oneOf(["right","left"]),pulse:ss().bool,rotation:ss().oneOf([0,90,180,270]),shake:ss().bool,size:ss().oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:ss().bool,spinPulse:ss().bool,spinReverse:ss().bool,symbol:ss().oneOfType([ss().bool,ss().string]),title:ss().string,titleId:ss().string,transform:ss().oneOfType([ss().string,ss().object]),swapOpacity:ss().bool},ks.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1};var _s=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof n)return n;var i=(n.children||[]).map((function(n){return e(t,n)})),a=Object.keys(n.attributes||{}).reduce((function(e,t){var r=n.attributes[t];switch(t){case"class":e.attrs.className=r,delete n.attributes.class;break;case"style":e.attrs.style=gs(r);break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=r:e.attrs[vs(t)]=r}return e}),{attrs:{}}),o=r.style,s=void 0===o?{}:o,u=ps(r,ys);return a.attrs.style=cs(cs({},a.attrs.style),s),t.apply(void 0,[n.tag,cs(cs({},a.attrs),u)].concat(hs(i)))}.bind(null,a.createElement);function Es(e){var t=(0,a.useContext)(S).state,n=l((0,a.useState)(!1),2),r=n[0],i=n[1],o=function(){var n=J(X().mark((function n(){var r;return X().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:e.eventName&&pxt.tickEvent(e.eventName),null!==(r=t.gameState)&&void 0!==r&&r.joinCode&&(navigator.clipboard.writeText(e.copyValue),i(!0),e.toastMessage&&_(D({type:"success",text:e.toastMessage,icon:"✅",timeoutMs:5e3})));case 2:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}();return(0,a.useEffect)((function(){if(r){var e=setTimeout((function(){i(!1)}),2500);return function(){clearTimeout(e)}}}),[r]),(0,E.jsxs)("button",{onClick:o,title:e.title,className:"tw-flex tw-items-center tw-align-middle",children:[e.label&&(0,E.jsx)("span",{className:"tw-mr-1 hover:tw-opacity-80",children:e.label}),!r&&(0,E.jsx)(ks,{icon:Zr,className:"tw-text-[65%] hover:tw-scale-110 tw-ease-linear tw-duration-[50ms]"}),r&&(0,E.jsx)(ks,{icon:Kr,className:"tw-text-[65%] tw-text-green-600"})]})}function Ss(e){var t=e.particle.index,n=(0,a.useContext)(S).state.gameState,r=null==n?void 0:n.reactionIconOverrides,i=ar[t].emoji,o=(0,a.useMemo)((function(){var e=1.25+1.25*Math.random(),t=3*e+10*Math.random();return{flyUpDuration:e,rotationDuration:3+.5*Math.random(),rotationAnim:Math.random()>.5?"reaction-rotate-left":"reaction-rotate-right",horzAnim:Math.random()>.5?"reaction-fly-left":"reaction-fly-right",flyHorzDuration:t}}),[]),s=null==r?void 0:r[t+1],u=s?(0,E.jsx)("img",{className:"pixel-art-image tw-w-[100%]",src:s,alt:lf("Game reaction image {0}",t+1)}):i;return(0,E.jsx)("div",{className:"tw-absolute tw-select-none tw-pointer-events-none tw-z-[100]",style:{animation:"reaction-fly-up linear ".concat(o.flyUpDuration,"s forwards,\n ").concat(o.horzAnim," linear ").concat(o.flyHorzDuration,"s forwards"),width:s?"1.5rem":void 0,height:s?"1.5rem":void 0},children:(0,E.jsx)("div",{className:"tw-select-none tw-pointer-events-none",style:{animation:"".concat(o.rotationAnim," ease-in-out ").concat(o.rotationDuration,"s infinite")},children:u})})}function Os(e){var t=(0,a.useContext)(S).state,n=e.clientId,r=t.reactions[n],i=l((0,a.useState)([]),2),o=i[0],s=i[1];return(0,a.useEffect)((function(){if(r&&!o.find((function(e){return e.id===r.id}))){var e={id:r.id,index:r.index,startTime:Date.now()};s((function(t){return[].concat(w(t),[e])}))}}),[r,o,s]),(0,a.useEffect)((function(){var e=setInterval((function(){var e=Date.now();s(o.filter((function(t){return e-t.startTime<5e3})))}),1e3);return function(){return clearInterval(e)}}),[o,s]),(0,E.jsx)("div",{className:"tw-absolute tw-pointer-events-none",style:{transform:"translateY(-20px)"},children:(0,E.jsx)("div",{className:"tw-flex tw-flex-row tw-justify-center",children:o.map((function(e){return(0,E.jsx)(Ss,{particle:e},e.id)}))})})}function As(e){var t=e.slot,n=e.dataUri;return n?(0,E.jsx)("img",{className:"pixel-art-image tw-w-[65%]",style:{filter:0===t?"grayscale(1)":void 0},src:n,alt:lf("User set icon for player {0}",t)}):(0,E.jsx)("svg",{width:"25",height:"29",viewBox:"0 0 25 29",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,E.jsx)("path",{style:{fill:"rgb(var(--slot-".concat(t,"-color))")},d:"M12.7544 14.686C16.6204 14.686 19.7544 11.552 19.7544 7.68602C19.7544 3.82003 16.6204 0.686035 12.7544 0.686035C8.8884 0.686035 5.75439 3.82003 5.75439 7.68602C5.75439 11.552 8.8884 14.686 12.7544 14.686ZM4.25439 16.686C2.32136 16.686 0.754339 18.2531 0.754395 20.1861L0.754409 20.6861C0.754421 23.0795 2.27704 25.1034 4.43931 26.4794C6.61345 27.863 9.55594 28.686 12.7543 28.686C15.9527 28.686 18.8952 27.863 21.0694 26.4795C23.2317 25.1034 24.7544 23.0795 24.7544 20.6861V20.186C24.7544 18.253 23.1874 16.686 21.2544 16.686H4.25439Z"})})}function Cs(e){var t=e.children,n=e.visible,r=e.className,i=e.ignoreRefs,o=e.onClickedOutside,s=(0,a.useRef)(null),u=(0,a.useCallback)((function(e){s.current=e}),[]);return function(e,t){(0,a.useEffect)((function(){var n=function(n){var r,i=ee(e);try{for(i.s();!(r=i.n()).done;){var a=r.value,o=null==a?void 0:a.current;if(o&&o.contains(n.target))return}}catch(e){i.e(e)}finally{i.f()}null==t||t()};return document.addEventListener("mousedown",n),function(){document.removeEventListener("mousedown",n)}}),w(e))}([s].concat(w(i||[])),(function(){return o()})),n?(0,E.jsx)("div",{ref:u,className:r,children:t}):null}function Ts(e){var t=e.children,n=e.visible,r=e.ignoreRefs,i=e.onClickedOutside;return(0,E.jsx)(Cs,{className:"tw-absolute tw-z-50 tw-translate-y-[-110%] tw-translate-x-[-50%] tw-rounded-lg tw-border-2 tw-border-gray-100",visible:n,ignoreRefs:r,onClickedOutside:i,children:(0,E.jsx)("div",{className:"tw-flex tw-flex-row tw-gap-1 tw-p-2 tw-bg-white tw-drop-shadow-xl tw-rounded-md",children:t})})}function Ns(e){var t=(0,a.useContext)(S),n=t.state,r=t.dispatch,i=n.presence,o=n.clientRole,s=n.playerSlot,u=n.gameState,c=null==u?void 0:u.presenceIconOverrides,f=e.slot,d=l((0,a.useState)(!1),2),p=d[0],h=d[1],m=(0,a.useRef)(null),v=(0,a.useCallback)((function(e){m.current=e}),[]),y=(0,a.useMemo)((function(){return(null==i?void 0:i.users)&&i.users.filter((function(e){return e.slot<5}))}),[i]),g=function(){var e=J(X().mark((function e(){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:pxt.tickEvent("mp.leavegame",{role:o}),h(!1),r(H("leave-game"));case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),b=y.find((function(e){return e.slot===f})),w=function(){var e="host"===o,t=1===f,n=f===s,i=y.filter((function(e){return e.slot===f})).shift();return e&&n?(0,E.jsx)(Ts,{visible:p,ignoreRefs:[m],onClickedOutside:function(){return h(!1)},children:(0,E.jsx)(ie,{className:"tw-m-0 tw-py-2 tw-bg-red-600 tw-text-white",label:lf("End the game"),title:lf("End the game"),onClick:function(){return g()}})}):e&&!t&&i?(0,E.jsx)(Ts,{visible:p,ignoreRefs:[m],onClickedOutside:function(){return h(!1)},children:(0,E.jsx)(ie,{className:"tw-m-0 tw-py-2 tw-bg-red-600 tw-text-white",label:lf("Remove from game"),title:lf("Remove from game"),onClick:function(){return function(e){pxt.tickEvent("mp.kickplayer"),h(!1);var t=y.filter((function(t){return t.slot===e})).shift();t&&r(H("kick-player",{clientId:t.id}))}(f)}})}):!e&&n?(0,E.jsx)(Ts,{visible:p,ignoreRefs:[m],onClickedOutside:function(){return h(!1)},children:(0,E.jsx)(ie,{className:"tw-m-0 tw-py-2 tw-bg-red-600 tw-text-white",label:lf("Leave game"),title:lf("Leave game"),onClick:function(){return g()}})}):null}(),x=!b,k=f===s,_=null==c?void 0:c[f];return(0,E.jsxs)("div",{children:[(0,E.jsx)("div",{className:"tw-px-[50%]",children:w}),(0,E.jsx)(ie,{className:"tw-rounded-full tw-m-0 tw-p-0",hardDisabled:!w,label:(0,E.jsxs)("div",{className:"tw-flex tw-select-none tw-text-black\n tw-font-bold tw-rounded-full tw-h-11 tw-border-2\n tw-w-11 tw-justify-center tw-items-center\n tw-text-slot-".concat(f,"-color"),style:{backgroundColor:"rgba(var(--slot-".concat(x?0:f,"-color),0.1)"),borderColor:"rgb(var(--slot-".concat(x?0:f,"-color))")},children:[(0,E.jsx)(As,{slot:x?0:f,dataUri:_}),b&&(0,E.jsx)(Os,{clientId:b.id}),k&&(0,E.jsx)("div",{className:"tw-absolute tw-translate-y-[110%]",children:(0,E.jsx)("div",{className:"tw-z-10 tw-border tw-rounded-xl tw-text-xs tw-px-2 tw-font-medium tw-uppercase",style:{backgroundColor:"rgb(var(--you-tag-bg-color))",borderColor:"rgb(var(--you-tag-border-color))"},children:lf("you")})})]}),title:x?lf("Player {0} (empty)",f):lf("Player {0}",f),onClick:function(){return h(!p)},buttonRef:v})]})}function js(){return(0,E.jsx)("div",{className:"tw-flex tw-flex-row tw-items-center tw-justify-center tw-gap-2 tw-border-l-2 tw-pl-2 tw-border-slot-0-color",children:[1,2,3,4].map((function(e){return(0,E.jsx)(Ns,{slot:e},e)}))})}function Ps(e){return(0,E.jsx)("svg",{className:e.className,width:"29",height:"29",viewBox:"0 0 29 29",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,E.jsx)("path",{style:{fill:"rgb(var(--reaction-color))"},d:"M10.3491 13.686C11.4537 13.686 12.3491 12.7906 12.3491 11.686C12.3491 10.5815 11.4537 9.68604 10.3491 9.68604C9.24455 9.68604 8.34912 10.5815 8.34912 11.686C8.34912 12.7906 9.24455 13.686 10.3491 13.686ZM20.3491 11.686C20.3491 12.7906 19.4537 13.686 18.3491 13.686C17.2446 13.686 16.3491 12.7906 16.3491 11.686C16.3491 10.5815 17.2446 9.68604 18.3491 9.68604C19.4537 9.68604 20.3491 10.5815 20.3491 11.686ZM7.90212 17.7916C8.39359 17.5459 8.99068 17.7428 9.23997 18.2313L9.24349 18.2378C9.24901 18.2478 9.26019 18.2677 9.27736 18.296C9.31176 18.3526 9.36981 18.4425 9.45402 18.5548C9.62278 18.7798 9.8937 19.0909 10.2865 19.4052C11.0595 20.0235 12.3423 20.686 14.3493 20.686C16.3564 20.686 17.6392 20.0235 18.4121 19.4052C18.805 19.0909 19.0759 18.7798 19.2446 18.5548C19.3289 18.4425 19.3869 18.3526 19.4213 18.296C19.4385 18.2677 19.4497 18.2478 19.4552 18.2378L19.4587 18.2313C19.708 17.7428 20.3051 17.5459 20.7965 17.7916C21.2905 18.0386 21.4908 18.6393 21.2438 19.1333L21.2432 19.1343L21.2426 19.1355L21.2414 19.138L21.2384 19.1439L21.2306 19.1589C21.2246 19.1704 21.2169 19.1847 21.2076 19.2017C21.1889 19.2356 21.1635 19.2802 21.1309 19.3339C21.0657 19.4413 20.9714 19.5858 20.8446 19.7548C20.5915 20.0923 20.2062 20.5312 19.6615 20.9669C18.5595 21.8485 16.8423 22.686 14.3493 22.686C11.8564 22.686 10.1392 21.8485 9.03714 20.9669C8.49247 20.5312 8.10714 20.0923 7.85402 19.7548C7.72729 19.5858 7.633 19.4413 7.56779 19.3339C7.53515 19.2802 7.50972 19.2356 7.49106 19.2017C7.48173 19.1847 7.47409 19.1704 7.46808 19.1589L7.46029 19.1439L7.4573 19.138L7.45603 19.1355L7.45545 19.1343L7.45491 19.1333C7.20793 18.6393 7.40814 18.0386 7.90212 17.7916ZM14.3491 0.686035C6.61713 0.686035 0.349121 6.95405 0.349121 14.686C0.349121 22.418 6.61713 28.686 14.3491 28.686C22.0811 28.686 28.3491 22.418 28.3491 14.686C28.3491 6.95405 22.0811 0.686035 14.3491 0.686035ZM2.34912 14.686C2.34912 8.05862 7.7217 2.68604 14.3491 2.68604C20.9765 2.68604 26.3491 8.05862 26.3491 14.686C26.3491 21.3135 20.9765 26.686 14.3491 26.686C7.7217 26.686 2.34912 21.3135 2.34912 14.686Z"})})}function Rs(){var e=(0,a.useContext)(S).state,t=l((0,a.useState)(!1),2),n=t[0],r=t[1],i=(0,a.useRef)(null),o=(0,a.useCallback)((function(e){i.current=e}),[]),s=e.gameState,u=null==s?void 0:s.reactionIconOverrides,c=function(){var e=J(X().mark((function e(t){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,sr(t);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();(0,a.useEffect)((function(){var e=function(e){if("messagepacket"===e.data.type&&e.data.channel){var t,n=null===(t=/keydown-(\d)/i.exec(e.data.channel))||void 0===t?void 0:t[1];if(!n)return;var r=parseInt(n)-1;ar[r]&&sr(r)}},t=function(e){var t=parseInt(e.key)-1;ar[t]&&sr(t)};return window.addEventListener("message",e),window.addEventListener("keydown",t),function(){window.removeEventListener("message",e),window.removeEventListener("keydown",t)}}));var f=pxt.BrowserUtils.isMobile()||pxt.BrowserUtils.isIOS();return(0,E.jsxs)("div",{children:[(0,E.jsx)(Cs,{className:"tw-absolute tw-translate-y-[-120%]",visible:n,ignoreRefs:[i],onClickedOutside:function(){return r(!1)},children:(0,E.jsx)("div",{className:"tw-flex tw-flex-col tw-bg-white tw-drop-shadow-xl tw-rounded-md tw-border-2 tw-border-gray-100",children:(0,E.jsx)("div",{className:"tw-flex tw-flex-row tw-gap-3 tw-p-2 tw-pb-3 tw-pr-3",children:ar.map((function(e,t){var n=null==u?void 0:u[t+1],r=n?(0,E.jsx)("img",{className:"pixel-art-image tw-w-6",src:n,alt:lf("Game reaction image {0}",t+1)}):e.emoji;return(0,E.jsx)(ie,{className:"tw-flex tw-items-center tw-justify-center tw-m-0 tw-p-0 tw-cursor-pointer tw-select-none tw-scale-110 hover:tw-scale-125 tw-ease-linear tw-duration-[50ms] tw-h-8 tw-w-8 tw-text-2xl",label:(0,E.jsxs)("div",{children:[(0,E.jsx)("div",{children:r}),!f&&(0,E.jsx)("div",{className:"tw-text-xs tw-absolute tw-bottom-[-5px] tw-right-[-5px] tw-text-white tw-bg-gray-400 tw-rounded-sm tw-border-[1px] tw-border-solid tw-border-gray-500 tw-drop-shadow-lg tw-px-1 tw-leading-tight",children:t+1})]}),title:e.name,onClick:function(){return c(t)}},t+1)}))})})}),(0,E.jsx)(ie,{label:(0,E.jsx)(Ps,{className:"hover:tw-scale-125 tw-ease-linear tw-duration-[50ms]"}),title:lf("Reactions"),className:"tw-flex tw-items-center tw-justify-center\n tw-select-none tw-border-2 tw-reaction-color\n tw-rounded-full tw-h-11 tw-w-11 tw-text-2xl !tw-m-0 !tw-p-0",style:{backgroundColor:"rgba(var(--reaction-color),0.1)"},onClick:function(){var e=!n;e&&pxt.tickEvent("mp.reactions.open"),r(e)},buttonRef:function(e){o(e)}})]})}function Is(){return(0,E.jsxs)("div",{className:"tw-flex tw-flex-row tw-space-x-2 tw-items-center tw-align-middle tw-justify-center",children:[(0,E.jsx)(Rs,{}),(0,E.jsx)(js,{})]})}function Ls(){var e,t=(0,a.useContext)(S),n=t.state,r=t.dispatch,i=function(){var e=J(X().mark((function e(){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return pxt.tickEvent("mp.hostlobby.startgame"),r({type:"CLEAR_MODAL"}),e.next=4,qn();case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),o=null===(e=n.gameState)||void 0===e?void 0:e.joinCode;if(!o)return null;var s=lf("Have your friend go to {0} and enter code","{0}").split("{0}"),u=pxt.multiplayer.SHORT_LINK(),l=(null==o?void 0:o.slice(0,3))+" "+(null==o?void 0:o.slice(3)),c=pxt.multiplayer.makeJoinLink(o,!0);return(0,E.jsx)("div",{className:"tw-bg-white tw-shadow-lg tw-rounded-lg tw-m-1 tw-min-w-[17rem]",children:(0,E.jsxs)("div",{className:"tw-flex tw-flex-col tw-gap-1 tw-items-center tw-justify-between tw-py-[3rem] tw-px-3 sm:tw-px-14 md:tw-px-[7rem]",children:[(0,E.jsxs)("div",{className:"tw-mt-3 tw-text-lg tw-text-center tw-text-neutral-700",children:[s[0],(0,E.jsx)(se,{href:u,target:"_blank",className:"tw-text-primary-color tw-font-bold hover:tw-text-orange-300",children:u}),s[1]]}),(0,E.jsx)("div",{className:"tw-text-4xl tw-mt-4 tw-flex tw-flex-row tw-items-center tw-ml-2",children:(0,E.jsx)(Es,{copyValue:c,title:lf("Copy join link"),eventName:"mp.hostlobby.copyjoinlink",label:(0,E.jsx)("span",{className:"tw-font-bold tw-text-neutral-700 tw-mr-1 tw-whitespace-nowrap",children:l}),toastMessage:lf("Join link copied")})}),(0,E.jsxs)("div",{className:"tw-flex tw-flex-col tw-items-center tw-mt-5 tw-text-sm tw-gap-1 tw-max-h-24 md:tw-max-h-36",children:[(0,E.jsx)(Gr,{value:c}),(0,E.jsx)("div",{className:"tw-hidden md:tw-block",children:lf("or scan with phone")})]}),(0,E.jsx)(ie,{className:"primary tw-mt-5 tw-font-sans tw-mr-0",label:lf("Start Game"),title:lf("Start Game"),onClick:i}),(0,E.jsx)(se,{href:"/multiplayer#safety",target:"_blank",className:"tw-text-sm tw-mt-1 tw-mb-7",children:lf("Multiplayer Online Safety")}),(0,E.jsx)(Is,{})]})})}function Ms(){var e,t=null===(e=(0,a.useContext)(S).state.gameState)||void 0===e?void 0:e.joinCode,n=t?pxt.multiplayer.makeJoinLink(t,!0):"";return(0,E.jsx)("div",{children:t&&(0,E.jsxs)("div",{className:"tw-flex tw-flex-row tw-items-center tw-align-middle",children:[(0,E.jsx)("div",{className:"tw-font-bold tw-mr-1",children:lf("Code:")}),(0,E.jsx)(Es,{copyValue:n,title:lf("Copy join link"),eventName:"mp.copyjoinlink",label:t,toastMessage:lf("Join link copied")})]})})}function Bs(){return(0,E.jsx)("div",{className:"tw-bg-white tw-shadow-lg tw-rounded-lg tw-m-1",children:(0,E.jsxs)("div",{className:"tw-flex tw-flex-col tw-items-center tw-py-[2rem] tw-px-[1.5rem] sm:tw-px-[3.5rem] md:tw-px-[6rem]",children:[(0,E.jsx)("div",{className:"tw-font-bold tw-text-2xl tw-text-neutral-800",children:lf("Waiting for players")}),(0,E.jsx)("div",{className:"tw-mt-3 tw-text-center tw-text-neutral-700",children:lf("Your host will start the game soon!")}),(0,E.jsx)("div",{className:"tw-mt-5",children:(0,E.jsx)(Is,{})})]})})}function Ds(){var e,t=(c(e={},lf("up"),["↑","W"]),c(e,lf("down"),["↓","S"]),c(e,lf("left"),["←","A"]),c(e,lf("right"),["→","D"]),c(e,"a",["Z",lf("{id:keyboard symbol}space")]),c(e,"b",["X",lf("{id:keyboard symbol}enter")]),e);return(0,E.jsxs)("div",{className:"tw-bg-neutral-50 tw-p-3 tw-border-2 tw-border-neutral-500 tw-border-solid tw-rounded-md tw-drop-shadow-xl",children:[(0,E.jsx)("div",{className:"tw-text-lg tw-mb-2 tw-font-bold",children:lf("Keyboard Controls")}),Object.keys(t).map((function(e,n){return(0,E.jsxs)("div",{className:"keymap-row",children:[t[e].map((function(e,t){return(0,E.jsx)("div",{className:"keymap-key tw-align-middle tw-min-w-[2.5rem] tw-text-center tw-pb-[2.1rem]",children:e},t)})),(0,E.jsx)("span",{className:"keymap-name tw-font-semibold",children:e})]},n)})),(0,E.jsxs)("div",{className:"keymap-row tw-flex tw-flex-row tw-items-center",children:[(0,E.jsx)("div",{className:"keymap-key tw-align-middle tw-min-w-[2.5rem] tw-text-center tw-pb-[2.1rem]",children:"1 - 6"}),(0,E.jsx)("span",{className:"keymap-name tw-font-semibold tw-text-center",children:(0,E.jsx)(Ps,{})})]})]})}function Us(){var e=l((0,a.useState)(!1),2),t=e[0],n=e[1],r=(0,a.useRef)(null),i=(0,a.useCallback)((function(e){r.current=e}),[]);return(0,E.jsxs)("div",{children:[(0,E.jsx)(Cs,{className:"tw-absolute tw-translate-y-[-105%]",visible:t,ignoreRefs:[r],onClickedOutside:function(){return n(!1)},children:(0,E.jsx)(Ds,{})}),(0,E.jsx)(ie,{title:lf("Keyboard Controls"),label:lf("Keyboard Controls"),leftIcon:"fas fa-keyboard",buttonRef:i,onClick:function(){pxt.tickEvent("mp.keyboardcontrols"),n(!t)},className:"tw-border-2 tw-border-slate-400 tw-border-solid tw-p-2 tw-bg-slate-100 hover:tw-bg-slate-200 active:tw-bg-slate-300 tw-ease-linear tw-duration-[50ms] tw-pr-1 sm:tw-pr-3"})]})}function Fs(){var e,t=null===(e=(0,a.useContext)(S).state.gameState)||void 0===e?void 0:e.gameId,n=t?"".concat(pxt.webConfig.relprefix.replace(/-+$/,""),"#pub:").concat(t):void 0;return n?(0,E.jsx)(ie,{leftIcon:"fas fa-bolt",title:lf("Edit Game"),label:(0,E.jsx)("div",{className:"tw-hidden sm:tw-inline tw-m-0 tw-p-0",children:lf("Edit Game")}),onClick:function(){n&&(pxt.tickEvent("mp.editgame"),window.open(n))},className:"tw-border-2 tw-border-slate-400 tw-border-solid tw-p-2 tw-bg-slate-100 hover:tw-bg-slate-200 active:tw-bg-slate-300 tw-ease-linear tw-duration-[50ms] tw-pr-1 sm:tw-pr-3"}):null}function zs(){var e=(0,a.useContext)(S).state;return(0,a.useEffect)((function(){var t;null===(t=en())||void 0===t||t.mute(e.muted)}),[e.muted]),(0,E.jsx)(ie,{leftIcon:e.muted?"fas fa-volume-mute":"fas fa-volume-up",title:lf("Toggle Mute"),className:"tw-border-2 tw-border-slate-400 tw-border-solid tw-py-2 tw-pl-2 tw-pr-1 tw-bg-slate-100 hover:tw-bg-slate-200 active:tw-bg-slate-300 tw-ease-linear tw-duration-[50ms]",onClick:function(){_(function(e){return{type:"SET_MUTE",value:e}}(!e.muted))}})}function Vs(e){var t,n,r=(0,a.useContext)(S).state,i=r.netMode,o=r.clientRole;return(0,E.jsxs)(E.Fragment,{children:["connecting"===i&&(0,E.jsx)(E.Fragment,{}),"lobby"===(null===(t=r.gameState)||void 0===t?void 0:t.gameMode)&&(0,E.jsxs)("div",{className:"tw-flex tw-flex-col tw-items-center tw-justify-center tw-w-full tw-h-full",children:["host"===o&&(0,E.jsx)(Ls,{}),"guest"===o&&(0,E.jsx)(Bs,{})]}),(0,E.jsxs)("div",{className:"tw-flex tw-flex-col tw-items-center tw-grow tw-pb-4",style:"playing"!==(null===(n=r.gameState)||void 0===n?void 0:n.gameMode)?{display:"none"}:void 0,children:[(0,E.jsx)(Mr,{}),(0,E.jsxs)("div",{className:"tw-flex tw-flex-row tw-w-full tw-items-center tw-justify-between tw-mt-1 tw-ml-1",children:[(0,E.jsxs)("div",{children:[(0,E.jsx)(zs,{}),(0,E.jsx)("div",{className:"tw-hidden sm:tw-inline-block",children:(0,E.jsx)(Fs,{})})]}),(0,E.jsx)("div",{className:"tw-mr-1 sm:tw-mr-0",children:(0,E.jsx)(Ms,{})}),(0,E.jsx)("div",{className:"tw-hidden sm:tw-inline",children:(0,E.jsx)(Us,{})}),(0,E.jsx)("div",{className:"tw-inline-block sm:tw-hidden",children:(0,E.jsx)(Fs,{})})]}),(0,E.jsx)("div",{className:"tw-mt-3",children:(0,E.jsx)(Is,{})})]})]})}function Hs(){var e=(0,a.useContext)(S).state.netMode;return(0,E.jsxs)("div",{className:"tw-flex tw-flex-col tw-items-center tw-gap-1 tw-grow tw-justify-around",children:["init"===e&&(0,E.jsx)(Lr,{}),"init"!==e&&(0,E.jsx)(Vs,{})]})}var Ws=function(e){return(0,E.jsx)(ae,d(d({},e),{},{role:"menubar",className:ne("common-menubar",e.className)}))},qs=function(e){var t,n=e.children,r=e.id,i=e.className,o=e.onEscape,s=e.arrowKeyNavigation,u=e.dontStealFocus,c=e.includeOutsideTabOrder,f=l(a.useState(!1),2),d=f[0],p=f[1],h=function(){return function(e){var t,n=[],r=ee(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;n.push(i)}}catch(e){r.e(e)}finally{r.f()}return n}(c?t.querySelectorAll("[tabindex]"):t.querySelectorAll('[tabindex]:not([tabindex="-1"])'))};return(0,E.jsx)("div",{id:r,className:ne("common-focus-trap",i),ref:function(e){e&&(t=e,u||d||e.contains(document.activeElement)||!h().length||(t.focus(),p(!0)))},onKeyDown:function(e){if(t){var n=function(t,n){var r=h();if(r.length){var i=r.indexOf(e.target);t?n?re(r,i,r.length-1,t).focus():i===r.length-1?re(r,i,0,t).focus():re(r,i,i+1,t).focus():n?re(r,i,0,t).focus():0===i?re(r,i,r.length-1,t).focus():re(r,i,Math.max(i-1,0),t).focus(),e.preventDefault(),e.stopPropagation()}};"Escape"===e.key?(o(),e.preventDefault(),e.stopPropagation()):"Tab"===e.key?e.shiftKey?n(!1,!1):n(!0,!1):s&&("ArrowDown"===e.key?n(!0,!1):"ArrowUp"===e.key?n(!1,!1):"Home"===e.key?n(!1,!0):"End"===e.key&&n(!0,!0))}},tabIndex:-1,children:n})},Gs=function(e){var t,n,r=e.id,i=e.className,o=e.ariaHidden,s=e.ariaLabel,u=e.role,c=e.items,f=e.label,p=e.title,h=e.icon,m=e.tabIndex,v=e.disabled,y=l(a.useState(!1),2),g=y[0],b=y[1],w=ne("common-menu-dropdown",i),x=r+"-menu";return(0,E.jsxs)("div",{className:w,ref:function(e){e&&(t=e)},onBlur:function(e){t&&g&&!t.contains(e.relatedTarget)&&b(!1)},children:[(0,E.jsx)(ie,{id:r,label:f,tabIndex:m,buttonRef:function(e){e&&(n=e)},title:p,leftIcon:h,role:u||"menuitem",className:ne("menu-button",g&&"expanded"),onClick:function(){b(!g)},ariaHasPopup:"true",ariaExpanded:g,ariaControls:g?x:void 0,ariaLabel:s,ariaHidden:o,disabled:v}),g&&(0,E.jsx)("div",{role:"menu",className:"common-menu-dropdown-pane",tabIndex:0,id:x,"aria-labelledby":r,children:(0,E.jsx)(qs,{arrowKeyNavigation:!0,onEscape:function(){b(!1),n&&n.focus()},children:(0,E.jsx)("ul",{role:"presentation",children:c.map((function(e,t){return(0,E.jsx)("li",{role:"presentation",children:(0,E.jsx)(ie,d(d({},e),{},{className:ne("common-menu-dropdown-item",e.className),onClick:function(){b(!1),e.onClick()},role:"menuitem",ariaPosInSet:t+1,ariaSetSize:c.length}))},t)}))})})})]})};function Zs(){var e,t,n,r,i,o,s,u,l=(0,a.useContext)(S),c=l.state,f=l.dispatch,d=c.authStatus,p=c.profile,h=c.gameState,m=c.targetConfig,v=(null!=h?h:{}).gameId,y=pxt.auth.hasIdentity(),g=null===(e=pxt.appTarget)||void 0===e?void 0:e.appTheme,b=null===(t=pxt)||void 0===t||null===(n=t.appTarget)||void 0===n||null===(r=n.appTheme)||void 0===r?void 0:r.privacyUrl,w=null===(i=pxt)||void 0===i||null===(o=i.appTarget)||void 0===o||null===(s=o.appTheme)||void 0===s?void 0:s.termsOfUseUrl,x=Y(),k=function(){pxt.tickEvent("mp.settingsmenu.reportabuse"),f(H("report-abuse"))},_=function(){pxt.tickEvent("mp.settingsmenu.privacy"),window.open(b)},O=function(){pxt.tickEvent("mp.settingsmenu.termsofuse"),window.open(w)},A=function(){pxt.tickEvent("mp.settingsmenu.onlinesafety"),window.open("/multiplayer#safety")},C=function(){var e;pxt.tickEvent("mp.home");var t,n,r=null===(e=pxt.webConfig)||void 0===e?void 0:e.relprefix.substr(0,pxt.webConfig.relprefix.length-3);pxt.appTarget.appTheme.homeUrl&&r?((null===(t=pxt.appTarget.appTheme.homeUrl)||void 0===t?void 0:t.lastIndexOf("/"))===(null===(n=pxt.appTarget.appTheme.homeUrl)||void 0===n?void 0:n.length)-1&&(r=r.substr(1)),window.open(pxt.appTarget.appTheme.homeUrl+r,"_self")):window.open(pxt.appTarget.appTheme.homeUrl,"_self")},T=function(){pxt.tickEvent("mp.signin"),f(H("sign-in",{dialogMessages:x}))},N=function(){var e=J(X().mark((function e(){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return pxt.tickEvent("mp.usermenu.signout"),e.next=3,Jn();case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),j=function(){var e,t,n,r;return null!==(e=null==p||null===(t=p.idp)||void 0===t?void 0:t.pictureUrl)&&void 0!==e?e:null==p||null===(n=p.idp)||void 0===n||null===(r=n.picture)||void 0===r?void 0:r.dataUrl},P=function(){var e,t=[];b&&t.push({id:"privacy",title:lf("Privacy"),label:lf("Privacy"),onClick:_}),w&&t.push({id:"termsOfUse",title:lf("Terms of Use"),label:lf("Terms of Use"),onClick:O}),t.push({id:"safety",title:lf("Online Safety"),label:lf("Online Safety"),onClick:A});var n=(null==m||null===(e=m.shareLinks)||void 0===e?void 0:e.approved)||[];return v&&n.indexOf(v)<0&&t.push({id:"report",title:lf("Report Abuse"),label:lf("Report Abuse"),onClick:k}),t}();return(0,E.jsxs)(Ws,{className:"tw-h-[var(--header-height)] tw-text-white\n tw-flex tw-flex-grow-0 tw-flex-shrink-0 tw-align-middle tw-justify-center\n tw-items-center tw-z-[50] tw-text-[2.2rem]\n tw-drop-shadow-xl\n ",ariaLabel:lf("Header"),children:[(0,E.jsxs)("div",{className:"tw-select-none tw-text-lg tw-font-bold tw-flex tw-align-middle tw-p-[var(--header-padding-top)] tw-flex-none",children:[function(e){var t=e.organizationWideLogo,n=e.organizationLogo;return(0,E.jsx)("div",{className:"tw-flex",children:t&&n?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("img",{className:"tw-h-6 tw-mx-0 tw-my-1 tw-hidden sm:tw-block",src:Lt(t),alt:lf("{0} Logo",e.organization)}),(0,E.jsx)("img",{className:"tw-h-6 tw-mx-0 tw-my-1 tw-object-contain tw-block sm:tw-hidden",src:Lt(n),alt:lf("{0} Logo",e.organization)})]}):(0,E.jsx)("span",{className:"tw-h-6 tw-mx-0 tw-my-1",children:e.organization})})}(g),(u=g,(0,E.jsx)("div",{className:"tw-flex tw-pt-[2px] tw-ml-3 tw-cursor-pointer",onClick:C,children:u.useTextLogo?[(0,E.jsx)("span",{className:"tw-ml-3 tw-hidden sm:tw-flex",onClick:C,children:u.organizationText},"org-name"),(0,E.jsx)("span",{className:"tw-ml-3 tw-flex sm:tw-hidden",onClick:C,children:u.organizationShortText||u.organizationText},"org-name-short")]:u.logo||u.portraitLogo?(0,E.jsx)("img",{className:"logo",src:Lt(u.logo||u.portraitLogo),alt:lf("{0} Logo",u.boardName)}):(0,E.jsxs)("span",{className:"name",children:[" ",u.boardName]})}))]}),(0,E.jsx)("div",{className:"tw-select-none tw-grow"}),(0,E.jsxs)("div",{className:"tw-select-none tw-text-lg tw-font-bold tw-flex tw-items-center tw-h-full tw-flex-none",children:[(null==P?void 0:P.length)>0&&(0,E.jsx)(Gs,{className:"h-full",id:"settings-help",title:lf("Settings menu"),icon:"fas fa-cog large",items:P}),y&&function(){var e=[];"signed-in"===d&&e.push({id:"signout",title:lf("Sign Out"),label:lf("Sign Out"),onClick:N});var t=j()?(0,E.jsx)("div",{className:"tw-flex tw-align-middle tw-justify-center tw-items-center tw-h-full",children:(0,E.jsx)("img",{src:j(),className:"tw-border-solid tw-border-2 tw-border-white tw-rounded-[100%] tw-w-10 tw-h-10",alt:lf("Profile Image"),referrerPolicy:"no-referrer","aria-hidden":"true"})}):void 0,n=(0,E.jsx)("span",{children:(0,E.jsx)("div",{className:"tw-h-10 tw-w-10 tw-rounded-[100%] tw-border-solid tw-border-2 tw-border-white tw-bg-[#028B9B] tw-flex tw-items-center tw-justify-center tw-text-base","aria-hidden":"true",children:p?pxt.auth.userInitials(p):""})});return(0,E.jsxs)("div",{className:"tw-h-full",children:["signed-in"===d&&(0,E.jsx)(Gs,{id:"profile-dropdown",items:e,label:t||n,title:lf("Profile Settings")}),"signed-out"===d&&(0,E.jsx)(ie,{className:"tw-p-[0.6rem] tw-h-4/5 tw-m-2 tw-mr-4 tw-flex-row-reverse tw-font-medium tw-align-middle",rightIcon:"xicon cloud-user",title:lf("Sign In"),label:lf("Sign In"),onClick:T})]})}()]})]})}var Ys=function(e,t){return(Ys=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function $s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Ys(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Ks=function(){return(Ks=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function Xs(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function Qs(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function Js(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create,n(7490);var eu=1/60*1e3,tu="undefined"!=typeof performance?function(){return performance.now()}:function(){return Date.now()},nu="undefined"!=typeof window?function(e){return window.requestAnimationFrame(e)}:function(e){return setTimeout((function(){return e(tu())}),eu)},ru=!0,iu=!1,au=!1,ou={delta:0,timestamp:0},su=["read","update","preRender","render","postRender"],uu=su.reduce((function(e,t){return e[t]=function(e){var t=[],n=[],r=0,i=!1,a=!1,o=new WeakSet,s={schedule:function(e){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&i,s=a?t:n;return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&o.add(e),-1===s.indexOf(e)&&(s.push(e),a&&i&&(r=t.length)),e},cancel:function(e){var t=n.indexOf(e);-1!==t&&n.splice(t,1),o.delete(e)},process:function(e){if(i)a=!0;else{i=!0;var u=[n,t];if(t=u[0],(n=u[1]).length=0,r=t.length)for(var l=0;l<r;l++){var c=t[l];c(e),o.has(c)&&(s.schedule(c),iu=!0)}i=!1,a&&(a=!1,s.process(e))}}};return s}(),e}),{}),lu=su.reduce((function(e,t){var n=uu[t];return e[t]=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return iu||hu(),n.schedule(e,t,r)},e}),{}),cu=su.reduce((function(e,t){return e[t]=uu[t].cancel,e}),{}),fu=su.reduce((function(e,t){return e[t]=function(){return uu[t].process(ou)},e}),{}),du=function(e){return uu[e].process(ou)},pu=function e(t){iu=!1,ou.delta=ru?eu:Math.max(Math.min(t-ou.timestamp,40),1),ou.timestamp=t,au=!0,su.forEach(du),au=!1,iu&&(ru=!1,nu(e))},hu=function(){iu=!0,ru=!0,au||nu(pu)},mu=function(){return ou},vu=lu,yu="undefined"!=typeof document,gu=yu?a.useLayoutEffect:a.useEffect;function bu(){var e=(0,a.useRef)(!1);return gu((function(){return e.current=!0,function(){e.current=!1}}),[]),e}var wu=(0,a.createContext)(null);function xu(e){var t=(0,a.useRef)(null);return null===t.current&&(t.current=e()),t.current}var ku=0,_u=function(){return ku++},Eu=function(){return xu(_u)},Su=function(e){var t=e.children,n=e.initial,r=e.isPresent,i=e.onExitComplete,o=e.custom,s=e.presenceAffectsLayout,u=xu(Ou),l=Eu(),c=(0,a.useMemo)((function(){return{id:l,initial:n,isPresent:r,custom:o,onExitComplete:function(e){var t,n;u.set(e,!0);try{for(var r=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(u.values()),a=r.next();!a.done;a=r.next())if(!a.value)return}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}null==i||i()},register:function(e){return u.set(e,!1),function(){return u.delete(e)}}}}),s?void 0:[r]);return(0,a.useMemo)((function(){u.forEach((function(e,t){return u.set(t,!1)}))}),[r]),a.useEffect((function(){!r&&!u.size&&(null==i||i())}),[r]),a.createElement(wu.Provider,{value:c},t)};function Ou(){return new Map}var Au=(0,a.createContext)({});function Cu(e){return(0,a.useEffect)((function(){return function(){return e()}}),[])}n(8466);var Tu=function(e){return e.key||""},Nu=function(e){var t=e.children,n=e.custom,r=e.initial,i=void 0===r||r,o=e.onExitComplete,s=e.exitBeforeEnter,u=e.presenceAffectsLayout,l=void 0===u||u,c=Qs(function(){var e=bu(),t=Qs((0,a.useState)(0),2),n=t[0],r=t[1],i=(0,a.useCallback)((function(){e.current&&r(n+1)}),[n]);return[(0,a.useCallback)((function(){return vu.postRender(i)}),[i]),n]}(),1)[0],f=(0,a.useContext)(Au).forceRender;f&&(c=f);var d=bu(),p=function(e){var t=[];return a.Children.forEach(e,(function(e){(0,a.isValidElement)(e)&&t.push(e)})),t}(t),h=p,m=new Set,v=(0,a.useRef)(h),y=(0,a.useRef)(new Map).current,g=(0,a.useRef)(!0);if(gu((function(){g.current=!1,function(e,t){e.forEach((function(e){var n=Tu(e);t.set(n,e)}))}(p,y),v.current=h})),Cu((function(){g.current=!0,y.clear(),m.clear()})),g.current)return a.createElement(a.Fragment,null,h.map((function(e){return a.createElement(Su,{key:Tu(e),isPresent:!0,initial:!!i&&void 0,presenceAffectsLayout:l},e)})));h=Js([],Qs(h),!1);for(var b=v.current.map(Tu),w=p.map(Tu),x=b.length,k=0;k<x;k++){var _=b[k];-1===w.indexOf(_)&&m.add(_)}return s&&m.size&&(h=[]),m.forEach((function(e){if(-1===w.indexOf(e)){var t=y.get(e);if(t){var r=b.indexOf(e);h.splice(r,0,a.createElement(Su,{key:Tu(t),isPresent:!1,onExitComplete:function(){y.delete(e),m.delete(e);var t=v.current.findIndex((function(t){return t.key===e}));if(v.current.splice(t,1),!m.size){if(v.current=p,!1===d.current)return;c(),o&&o()}},custom:n,presenceAffectsLayout:l},t))}}})),h=h.map((function(e){var t=e.key;return m.has(t)?e:a.createElement(Su,{key:Tu(e),isPresent:!0,presenceAffectsLayout:l},e)})),a.createElement(a.Fragment,null,m.size?h:h.map((function(e){return(0,a.cloneElement)(e)})))},ju=function(e){return{isEnabled:function(t){return e.some((function(e){return!!t[e]}))}}},Pu={measureLayout:ju(["layout","layoutId","drag"]),animation:ju(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:ju(["exit"]),drag:ju(["drag","dragControls"]),focus:ju(["whileFocus"]),hover:ju(["whileHover","onHoverStart","onHoverEnd"]),tap:ju(["whileTap","onTap","onTapStart","onTapCancel"]),pan:ju(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:ju(["whileInView","onViewportEnter","onViewportLeave"])},Ru=(0,a.createContext)({strict:!1}),Iu=Object.keys(Pu),Lu=Iu.length,Mu=(0,a.createContext)({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),Bu=(0,a.createContext)({}),Du={current:null},Uu=!1;function Fu(e,t,n,r){var i=(0,a.useContext)(Ru),o=(0,a.useContext)(Bu).visualElement,s=(0,a.useContext)(wu),u=function(){var e=(!Uu&&function(){if(Uu=!0,yu)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return Du.current=e.matches};e.addListener(t),t()}else Du.current=!1}(),Qs((0,a.useState)(Du.current),1)[0]),t=(0,a.useContext)(Mu).reducedMotion;return"never"!==t&&("always"===t||e)}(),l=(0,a.useRef)(void 0);r||(r=i.renderer),!l.current&&r&&(l.current=r(e,{visualState:t,parent:o,props:n,presenceId:null==s?void 0:s.id,blockInitialAnimation:!1===(null==s?void 0:s.initial),shouldReduceMotion:u}));var c=l.current;return gu((function(){null==c||c.syncRender()})),(0,a.useEffect)((function(){var e;null===(e=null==c?void 0:c.animationState)||void 0===e||e.animateChanges()})),gu((function(){return function(){return null==c?void 0:c.notifyUnmount()}}),[]),c}function zu(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Vu(e){return Array.isArray(e)}function Hu(e){return"string"==typeof e||Vu(e)}function Wu(e,t,n,r,i){var a;return void 0===r&&(r={}),void 0===i&&(i={}),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,i)),"string"==typeof t&&(t=null===(a=e.variants)||void 0===a?void 0:a[t]),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,i)),t}function qu(e,t,n){var r=e.getProps();return Wu(r,t,null!=n?n:r.custom,function(e){var t={};return e.forEachValue((function(e,n){return t[n]=e.get()})),t}(e),function(e){var t={};return e.forEachValue((function(e,n){return t[n]=e.getVelocity()})),t}(e))}function Gu(e){var t;return"function"==typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||Hu(e.initial)||Hu(e.animate)||Hu(e.whileHover)||Hu(e.whileDrag)||Hu(e.whileTap)||Hu(e.whileFocus)||Hu(e.exit)}function Zu(e){return Boolean(Gu(e)||e.variants)}function Yu(e){return Array.isArray(e)?e.join(" "):e}var $u={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Ku=1,Xu=(0,a.createContext)({}),Qu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $s(t,e),t.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},t.prototype.componentDidUpdate=function(){},t.prototype.updateProps=function(){var e=this.props,t=e.visualElement,n=e.props;t&&t.setProps(n)},t.prototype.render=function(){return this.props.children},t}(a.Component);function Ju(e){var t=e.preloadedFeatures,n=e.createVisualElement,r=e.projectionNodeConstructor,i=e.useRender,o=e.useVisualState,s=e.Component;return t&&function(e){for(var t in e)null!==e[t]&&("projectionNodeConstructor"===t?Pu.projectionNodeConstructor=e[t]:Pu[t].Component=e[t])}(t),(0,a.forwardRef)((function(e,t){var u=function(e){var t,n=e.layoutId,r=null===(t=(0,a.useContext)(Au))||void 0===t?void 0:t.id;return r&&void 0!==n?r+"-"+n:n}(e);e=Ks(Ks({},e),{layoutId:u});var l=(0,a.useContext)(Mu),c=null,f=function(e){var t=function(e,t){if(Gu(e)){var n=e.initial,r=e.animate;return{initial:!1===n||Hu(n)?n:void 0,animate:Hu(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,a.useContext)(Bu)),n=t.initial,r=t.animate;return(0,a.useMemo)((function(){return{initial:n,animate:r}}),[Yu(n),Yu(r)])}(e),d=l.isStatic?void 0:xu((function(){if($u.hasEverUpdated)return Ku++})),p=o(e,l.isStatic);return!l.isStatic&&yu&&(f.visualElement=Fu(s,p,Ks(Ks({},l),e),n),function(e,t,n,r){var i,o=t.layoutId,s=t.layout,u=t.drag,l=t.dragConstraints,c=t.layoutScroll,f=(0,a.useContext)(Xu);r&&n&&!(null==n?void 0:n.projection)&&(n.projection=new r(e,n.getLatestValues(),null===(i=n.parent)||void 0===i?void 0:i.projection),n.projection.setOptions({layoutId:o,layout:s,alwaysMeasureLayout:Boolean(u)||l&&zu(l),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:"string"==typeof s?s:"both",initialPromotionConfig:f,layoutScroll:c}))}(d,e,f.visualElement,r||Pu.projectionNodeConstructor),c=function(e,t,n){var r=[];if((0,a.useContext)(Ru),!t)return null;for(var i=0;i<Lu;i++){var o=Iu[i],s=Pu[o],u=s.isEnabled,l=s.Component;u(e)&&l&&r.push(a.createElement(l,Ks({key:o},e,{visualElement:t})))}return r}(e,f.visualElement)),a.createElement(Qu,{visualElement:f.visualElement,props:Ks(Ks({},l),e)},c,a.createElement(Bu.Provider,{value:f},i(s,e,d,function(e,t,n){return(0,a.useCallback)((function(r){var i;r&&(null===(i=e.mount)||void 0===i||i.call(e,r)),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):zu(n)&&(n.current=r))}),[t])}(p,f.visualElement,t),p,l.isStatic,f.visualElement)))}))}var el=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function tl(e){return"string"==typeof e&&!e.includes("-")&&!!(el.indexOf(e)>-1||/[A-Z]/.test(e))}var nl={},rl=["","X","Y","Z"],il=["transformPerspective","x","y","z"];function al(e,t){return il.indexOf(e)-il.indexOf(t)}["translate","scale","rotate","skew"].forEach((function(e){return rl.forEach((function(t){return il.push(e+t)}))}));var ol=new Set(il);function sl(e){return ol.has(e)}var ul=new Set(["originX","originY","originZ"]);function ll(e){return ul.has(e)}function cl(e,t){var n=t.layout,r=t.layoutId;return sl(e)||ll(e)||(n||void 0!==r)&&(!!nl[e]||"opacity"===e)}var fl=function(e){return Boolean(null!==e&&"object"==typeof e&&e.getVelocity)},dl={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function pl(e){return e.startsWith("--")}var hl=function(e,t){return t&&"number"==typeof e?t.transform(e):e},ml=function(e,t){return function(n){return Math.max(Math.min(n,t),e)}},vl=function(e){return e%1?Number(e.toFixed(5)):e},yl=/(-)?([\d]*\.?[\d])+/g,gl=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,bl=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function wl(e){return"string"==typeof e}var xl=function(e){return{test:function(t){return wl(t)&&t.endsWith(e)&&1===t.split(" ").length},parse:parseFloat,transform:function(t){return"".concat(t).concat(e)}}},kl=xl("deg"),_l=xl("%"),El=xl("px"),Sl=xl("vh"),Ol=xl("vw"),Al=Object.assign(Object.assign({},_l),{parse:function(e){return _l.parse(e)/100},transform:function(e){return _l.transform(100*e)}}),Cl={test:function(e){return"number"==typeof e},parse:parseFloat,transform:function(e){return e}},Tl=Object.assign(Object.assign({},Cl),{transform:ml(0,1)}),Nl=Object.assign(Object.assign({},Cl),{default:1}),jl=Ks(Ks({},Cl),{transform:Math.round}),Pl={borderWidth:El,borderTopWidth:El,borderRightWidth:El,borderBottomWidth:El,borderLeftWidth:El,borderRadius:El,radius:El,borderTopLeftRadius:El,borderTopRightRadius:El,borderBottomRightRadius:El,borderBottomLeftRadius:El,width:El,maxWidth:El,height:El,maxHeight:El,size:El,top:El,right:El,bottom:El,left:El,padding:El,paddingTop:El,paddingRight:El,paddingBottom:El,paddingLeft:El,margin:El,marginTop:El,marginRight:El,marginBottom:El,marginLeft:El,rotate:kl,rotateX:kl,rotateY:kl,rotateZ:kl,scale:Nl,scaleX:Nl,scaleY:Nl,scaleZ:Nl,skew:kl,skewX:kl,skewY:kl,distance:El,translateX:El,translateY:El,translateZ:El,x:El,y:El,z:El,perspective:El,transformPerspective:El,opacity:Tl,originX:Al,originY:Al,originZ:El,zIndex:jl,fillOpacity:Tl,strokeOpacity:Tl,numOctaves:jl};function Rl(e,t,n,r){var i,a=e.style,o=e.vars,s=e.transform,u=e.transformKeys,l=e.transformOrigin;u.length=0;var c=!1,f=!1,d=!0;for(var p in t){var h=t[p];if(pl(p))o[p]=h;else{var m=Pl[p],v=hl(h,m);if(sl(p)){if(c=!0,s[p]=v,u.push(p),!d)continue;h!==(null!==(i=m.default)&&void 0!==i?i:0)&&(d=!1)}else ll(p)?(l[p]=v,f=!0):a[p]=v}}c?a.transform=function(e,t,n,r){var i=e.transform,a=e.transformKeys,o=t.enableHardwareAcceleration,s=void 0===o||o,u=t.allowTransformNone,l=void 0===u||u,c="";a.sort(al);for(var f=!1,d=a.length,p=0;p<d;p++){var h=a[p];c+="".concat(dl[h]||h,"(").concat(i[h],") "),"z"===h&&(f=!0)}return!f&&s?c+="translateZ(0)":c=c.trim(),r?c=r(i,n?"":c):l&&n&&(c="none"),c}(e,n,d,r):r?a.transform=r({},""):!t.transform&&a.transform&&(a.transform="none"),f&&(a.transformOrigin=function(e){var t=e.originX,n=void 0===t?"50%":t,r=e.originY,i=void 0===r?"50%":r,a=e.originZ,o=void 0===a?0:a;return"".concat(n," ").concat(i," ").concat(o)}(l))}function Il(e,t,n){for(var r in t)fl(t[r])||cl(r,n)||(e[r]=t[r])}function Ll(e,t,n){var r={};return Il(r,e.style||{},e),Object.assign(r,function(e,t,n){var r=e.transformTemplate;return(0,a.useMemo)((function(){var e={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};Rl(e,t,{enableHardwareAcceleration:!n},r);var i=e.style;return Ks(Ks({},e.vars),i)}),[t])}(e,t,n)),e.transformValues&&(r=e.transformValues(r)),r}function Ml(e,t,n){var r={},i=Ll(e,t,n);return Boolean(e.drag)&&!1!==e.dragListener&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),r.style=i,r}var Bl=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover","whileInView","onViewportEnter","onViewportLeave","viewport","layoutScroll"]);function Dl(e){return Bl.has(e)}var Ul,Fl=function(e){return!Dl(e)};try{(Ul=require("@emotion/is-prop-valid").default)&&(Fl=function(e){return e.startsWith("on")?!Dl(e):Ul(e)})}catch(e){}function zl(e,t,n){return"string"==typeof e?e:El.transform(t+n*e)}var Vl={offset:"stroke-dashoffset",array:"stroke-dasharray"},Hl={offset:"strokeDashoffset",array:"strokeDasharray"};function Wl(e,t,n,r){var i=t.attrX,a=t.attrY,o=t.originX,s=t.originY,u=t.pathLength,l=t.pathSpacing,c=void 0===l?1:l,f=t.pathOffset,d=void 0===f?0:f;Rl(e,Xs(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),n,r),e.attrs=e.style,e.style={};var p=e.attrs,h=e.style,m=e.dimensions;p.transform&&(m&&(h.transform=p.transform),delete p.transform),m&&(void 0!==o||void 0!==s||h.transform)&&(h.transformOrigin=function(e,t,n){var r=zl(t,e.x,e.width),i=zl(n,e.y,e.height);return"".concat(r," ").concat(i)}(m,void 0!==o?o:.5,void 0!==s?s:.5)),void 0!==i&&(p.x=i),void 0!==a&&(p.y=a),void 0!==u&&function(e,t,n,r,i){void 0===n&&(n=1),void 0===r&&(r=0),void 0===i&&(i=!0),e.pathLength=1;var a=i?Vl:Hl;e[a.offset]=El.transform(-r);var o=El.transform(t),s=El.transform(n);e[a.array]="".concat(o," ").concat(s)}(p,u,c,d,!1)}var ql=function(){return Ks(Ks({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function Gl(e,t){var n=(0,a.useMemo)((function(){var n=ql();return Wl(n,t,{enableHardwareAcceleration:!1},e.transformTemplate),Ks(Ks({},n.attrs),{style:Ks({},n.style)})}),[t]);if(e.style){var r={};Il(r,e.style,e),n.style=Ks(Ks({},r),n.style)}return n}function Zl(e){return void 0===e&&(e=!1),function(t,n,r,i,o,s){var u=o.latestValues,l=(tl(t)?Gl:Ml)(n,u,s),c=function(e,t,n){var r={};for(var i in e)(Fl(i)||!0===n&&Dl(i)||!t&&!Dl(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(n,"string"==typeof t,e),f=Ks(Ks(Ks({},c),l),{ref:i});return r&&(f["data-projection-id"]=r),(0,a.createElement)(t,f)}}var Yl=/([a-z])([A-Z])/g,$l=function(e){return e.replace(Yl,"$1-$2").toLowerCase()};function Kl(e,t,n,r){var i=t.style,a=t.vars;for(var o in Object.assign(e.style,i,r&&r.getProjectionStyles(n)),a)e.style.setProperty(o,a[o])}var Xl=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function Ql(e,t,n,r){for(var i in Kl(e,t,void 0,r),t.attrs)e.setAttribute(Xl.has(i)?i:$l(i),t.attrs[i])}function Jl(e){var t=e.style,n={};for(var r in t)(fl(t[r])||cl(r,e))&&(n[r]=t[r]);return n}function ec(e){var t=Jl(e);for(var n in e)fl(e[n])&&(t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]);return t}function tc(e){return"object"==typeof e&&"function"==typeof e.start}var nc=function(e){return Array.isArray(e)},rc=function(e){return nc(e)?e[e.length-1]||0:e};function ic(e){var t,n=fl(e)?e.get():e;return t=n,Boolean(t&&"object"==typeof t&&t.mix&&t.toValue)?n.toValue():n}function ac(e,t,n,r){var i=e.scrapeMotionValuesFromProps,a=e.createRenderState,o=e.onMount,s={latestValues:sc(t,n,r,i),renderState:a()};return o&&(s.mount=function(e){return o(t,e,s)}),s}var oc=function(e){return function(t,n){var r=(0,a.useContext)(Bu),i=(0,a.useContext)(wu);return n?ac(e,t,r,i):xu((function(){return ac(e,t,r,i)}))}};function sc(e,t,n,r){var i={},a=!1===(null==n?void 0:n.initial),o=r(e);for(var s in o)i[s]=ic(o[s]);var u=e.initial,l=e.animate,c=Gu(e),f=Zu(e);t&&f&&!c&&!1!==e.inherit&&(null!=u||(u=t.initial),null!=l||(l=t.animate));var d=a||!1===u,p=d?l:u;return p&&"boolean"!=typeof p&&!tc(p)&&(Array.isArray(p)?p:[p]).forEach((function(t){var n=Wu(e,t);if(n){var r=n.transitionEnd;n.transition;var a=Xs(n,["transitionEnd","transition"]);for(var o in a){var s=a[o];Array.isArray(s)&&(s=s[d?s.length-1:0]),null!==s&&(i[o]=s)}for(var o in r)i[o]=r[o]}})),i}var uc,lc={useVisualState:oc({scrapeMotionValuesFromProps:ec,createRenderState:ql,onMount:function(e,t,n){var r=n.renderState,i=n.latestValues;try{r.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}Wl(r,i,{enableHardwareAcceleration:!1},e.transformTemplate),Ql(t,r)}})},cc={useVisualState:oc({scrapeMotionValuesFromProps:Jl,createRenderState:function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}}})};function fc(e,t,n,r){return void 0===r&&(r={passive:!0}),e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n)}}function dc(e,t,n,r){(0,a.useEffect)((function(){var i=e.current;if(n&&i)return fc(i,t,n,r)}),[e,t,n,r])}function pc(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function hc(e){return!!e.touches}!function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"}(uc||(uc={}));var mc={pageX:0,pageY:0};function vc(e,t){void 0===t&&(t="page");var n=e.touches[0]||e.changedTouches[0]||mc;return{x:n[t+"X"],y:n[t+"Y"]}}function yc(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function gc(e,t){return void 0===t&&(t="page"),{point:hc(e)?vc(e,t):yc(e,t)}}var bc=function(e,t){void 0===t&&(t=!1);var n,r=function(t){return e(t,gc(t))};return t?(n=r,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}):r},wc={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},xc={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function kc(e){return yu&&null===window.onpointerdown?e:yu&&null===window.ontouchstart?xc[e]:yu&&null===window.onmousedown?wc[e]:e}function _c(e,t,n,r){return fc(e,kc(t),bc(n,"pointerdown"===t),r)}function Ec(e,t,n,r){return dc(e,kc(t),n&&bc(n,"pointerdown"===t),r)}function Sc(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var Oc=Sc("dragHorizontal"),Ac=Sc("dragVertical");function Cc(e){var t=!1;if("y"===e)t=Ac();else if("x"===e)t=Oc();else{var n=Oc(),r=Ac();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function Tc(){var e=Cc(!0);return!e||(e(),!1)}function Nc(e,t,n){return function(r,i){var a;pc(r)&&!Tc()&&(null===(a=e.animationState)||void 0===a||a.setActive(uc.Hover,t),null==n||n(r,i))}}var jc=function e(t,n){return!!n&&(t===n||e(t,n.parentElement))},Pc=function(e,t){return function(n){return t(e(n))}},Rc=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(Pc)};n(8466),new Set;var Ic=new WeakMap,Lc=new WeakMap,Mc=function(e){var t;null===(t=Ic.get(e.target))||void 0===t||t(e)},Bc=function(e){e.forEach(Mc)};var Dc={some:0,all:1};function Uc(e,t,n,r){var i=r.root,o=r.margin,s=r.amount,u=void 0===s?"some":s,l=r.once;(0,a.useEffect)((function(){if(e){var r={root:null==i?void 0:i.current,rootMargin:o,threshold:"number"==typeof u?u:Dc[u]};return function(e,t,n){var r=function(e){var t=e.root,n=Xs(e,["root"]),r=t||document;Lc.has(r)||Lc.set(r,{});var i=Lc.get(r),a=JSON.stringify(n);return i[a]||(i[a]=new IntersectionObserver(Bc,Ks({root:t},n))),i[a]}(t);return Ic.set(e,n),r.observe(e),function(){Ic.delete(e),r.unobserve(e)}}(n.getInstance(),r,(function(e){var r,i=e.isIntersecting;if(t.isInView!==i&&(t.isInView=i,!l||i||!t.hasEnteredView)){i&&(t.hasEnteredView=!0),null===(r=n.animationState)||void 0===r||r.setActive(uc.InView,i);var a=n.getProps(),o=i?a.onViewportEnter:a.onViewportLeave;null==o||o(e)}}))}}),[e,i,o,u])}function Fc(e,t,n,r){var i=r.fallback,o=void 0===i||i;(0,a.useEffect)((function(){e&&o&&requestAnimationFrame((function(){var e;t.hasEnteredView=!0;var r=n.getProps().onViewportEnter;null==r||r(null),null===(e=n.animationState)||void 0===e||e.setActive(uc.InView,!0)}))}),[e])}var zc=function(e){return function(t){return e(t),null}},Vc={inView:zc((function(e){var t=e.visualElement,n=e.whileInView,r=e.onViewportEnter,i=e.onViewportLeave,o=e.viewport,s=void 0===o?{}:o,u=(0,a.useRef)({hasEnteredView:!1,isInView:!1}),l=Boolean(n||r||i);s.once&&u.current.hasEnteredView&&(l=!1),("undefined"==typeof IntersectionObserver?Fc:Uc)(l,u.current,t,s)})),tap:zc((function(e){var t=e.onTap,n=e.onTapStart,r=e.onTapCancel,i=e.whileTap,o=e.visualElement,s=t||n||r||i,u=(0,a.useRef)(!1),l=(0,a.useRef)(null),c={passive:!(n||t||r||m)};function f(){var e;null===(e=l.current)||void 0===e||e.call(l),l.current=null}function d(){var e;return f(),u.current=!1,null===(e=o.animationState)||void 0===e||e.setActive(uc.Tap,!1),!Tc()}function p(e,n){d()&&(jc(o.getInstance(),e.target)?null==t||t(e,n):null==r||r(e,n))}function h(e,t){d()&&(null==r||r(e,t))}function m(e,t){var r;f(),u.current||(u.current=!0,l.current=Rc(_c(window,"pointerup",p,c),_c(window,"pointercancel",h,c)),null===(r=o.animationState)||void 0===r||r.setActive(uc.Tap,!0),null==n||n(e,t))}Ec(o,"pointerdown",s?m:void 0,c),Cu(f)})),focus:zc((function(e){var t=e.whileFocus,n=e.visualElement;dc(n,"focus",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(uc.Focus,!0)}:void 0),dc(n,"blur",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(uc.Focus,!1)}:void 0)})),hover:zc((function(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,i=e.visualElement;Ec(i,"pointerenter",t||r?Nc(i,!0,t):void 0,{passive:!t}),Ec(i,"pointerleave",n||r?Nc(i,!1,n):void 0,{passive:!n})}))};function Hc(){var e=(0,a.useContext)(wu);if(null===e)return[!0,null];var t=e.isPresent,n=e.onExitComplete,r=e.register,i=Eu();return(0,a.useEffect)((function(){return r(i)}),[]),!t&&n?[!1,function(){return null==n?void 0:n(i)}]:[!0]}function Wc(e,t){if(!Array.isArray(t))return!1;var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function qc(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}Object.create,Object.create;var Gc=function(e,t,n){return Math.min(Math.max(n,e),t)};function Zc(e,t){return e*Math.sqrt(1-t*t)}var Yc=["duration","bounce"],$c=["stiffness","damping","mass"];function Kc(e,t){return t.some((function(t){return void 0!==e[t]}))}function Xc(e){var t=e.from,n=void 0===t?0:t,r=e.to,i=void 0===r?1:r,a=e.restSpeed,o=void 0===a?2:a,s=e.restDelta,u=qc(e,["from","to","restSpeed","restDelta"]),l={done:!1,value:n},c=function(e){var t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!Kc(e,$c)&&Kc(e,Yc)){var n=function(e){var t,n,r=e.duration,i=void 0===r?800:r,a=e.bounce,o=void 0===a?.25:a,s=e.velocity,u=void 0===s?0:s,l=e.mass,c=void 0===l?1:l,f=1-o;f=Gc(.05,1,f),i=Gc(.01,10,i/1e3),f<1?(t=function(e){var t=e*f,n=t*i;return.001-(t-u)/Zc(e,f)*Math.exp(-n)},n=function(e){var n=e*f*i,r=n*u+u,a=Math.pow(f,2)*Math.pow(e,2)*i,o=Math.exp(-n),s=Zc(Math.pow(e,2),f);return(.001-t(e)>0?-1:1)*((r-a)*o)/s}):(t=function(e){return Math.exp(-e*i)*((e-u)*i+1)-.001},n=function(e){return Math.exp(-e*i)*(i*i*(u-e))});var d=function(e,t,n){for(var r=n,i=1;i<12;i++)r-=e(r)/t(r);return r}(t,n,5/i);if(i*=1e3,isNaN(d))return{stiffness:100,damping:10,duration:i};var p=Math.pow(d,2)*c;return{stiffness:p,damping:2*f*Math.sqrt(c*p),duration:i}}(e);(t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1})).isResolvedFromDuration=!0}return t}(u),f=c.stiffness,d=c.damping,p=c.mass,h=c.velocity,m=c.duration,v=c.isResolvedFromDuration,y=Qc,g=Qc;function b(){var e=h?-h/1e3:0,t=i-n,r=d/(2*Math.sqrt(f*p)),a=Math.sqrt(f/p)/1e3;if(void 0===s&&(s=Math.min(Math.abs(i-n)/100,.4)),r<1){var o=Zc(a,r);y=function(n){var s=Math.exp(-r*a*n);return i-s*((e+r*a*t)/o*Math.sin(o*n)+t*Math.cos(o*n))},g=function(n){var i=Math.exp(-r*a*n);return r*a*i*(Math.sin(o*n)*(e+r*a*t)/o+t*Math.cos(o*n))-i*(Math.cos(o*n)*(e+r*a*t)-o*t*Math.sin(o*n))}}else if(1===r)y=function(n){return i-Math.exp(-a*n)*(t+(e+a*t)*n)};else{var u=a*Math.sqrt(r*r-1);y=function(n){var o=Math.exp(-r*a*n),s=Math.min(u*n,300);return i-o*((e+r*a*t)*Math.sinh(s)+u*t*Math.cosh(s))/u}}}return b(),{next:function(e){var t=y(e);if(v)l.done=e>=m;else{var n=1e3*g(e),r=Math.abs(n)<=o,a=Math.abs(i-t)<=s;l.done=r&&a}return l.value=l.done?i:t,l},flipTarget:function(){h=-h;var e=[i,n];n=e[0],i=e[1],b()}}}Xc.needsInterpolation=function(e,t){return"string"==typeof e||"string"==typeof t};var Qc=function(e){return 0},Jc=function(e,t,n){var r=t-e;return 0===r?1:(n-e)/r},ef=function(e,t,n){return-n*e+n*t+e},tf=function(e,t){return function(n){return Boolean(wl(n)&&bl.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t))}},nf=function(e,t,n){return function(r){var i;if(!wl(r))return r;var a=l(r.match(yl),4),o=a[0],s=a[1],u=a[2],f=a[3];return c(i={},e,parseFloat(o)),c(i,t,parseFloat(s)),c(i,n,parseFloat(u)),c(i,"alpha",void 0!==f?parseFloat(f):1),i}},rf=ml(0,255),af=Object.assign(Object.assign({},Cl),{transform:function(e){return Math.round(rf(e))}}),of={test:tf("rgb","red"),parse:nf("red","green","blue"),transform:function(e){var t=e.red,n=e.green,r=e.blue,i=e.alpha,a=void 0===i?1:i;return"rgba("+af.transform(t)+", "+af.transform(n)+", "+af.transform(r)+", "+vl(Tl.transform(a))+")"}},sf={test:tf("#"),parse:function(e){var t="",n="",r="",i="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),i=e.substr(4,1),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:of.transform},uf={test:tf("hsl","hue"),parse:nf("hue","saturation","lightness"),transform:function(e){var t=e.hue,n=e.saturation,r=e.lightness,i=e.alpha,a=void 0===i?1:i;return"hsla("+Math.round(t)+", "+_l.transform(vl(n))+", "+_l.transform(vl(r))+", "+vl(Tl.transform(a))+")"}};function cf(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ff(e){var t=e.hue,n=e.saturation,r=e.lightness,i=e.alpha;t/=360,r/=100;var a=0,o=0,s=0;if(n/=100){var u=r<.5?r*(1+n):r+n-r*n,l=2*r-u;a=cf(l,u,t+1/3),o=cf(l,u,t),s=cf(l,u,t-1/3)}else a=o=s=r;return{red:Math.round(255*a),green:Math.round(255*o),blue:Math.round(255*s),alpha:i}}var df=function(e,t,n){var r=e*e,i=t*t;return Math.sqrt(Math.max(0,n*(i-r)+r))},pf=[sf,of,uf],hf=function(e){return pf.find((function(t){return t.test(e)}))},mf=function(e){return"'".concat(e,"' is not an animatable color. Use the equivalent color code instead.")},vf=function(e,t){var n=hf(e),r=hf(t);mf(e),mf(t);var i=n.parse(e),a=r.parse(t);n===uf&&(i=ff(i),n=of),r===uf&&(a=ff(a),r=of);var o=Object.assign({},i);return function(e){for(var t in o)"alpha"!==t&&(o[t]=df(i[t],a[t],e));return o.alpha=ef(i.alpha,a.alpha,e),n.transform(o)}},yf={test:function(e){return of.test(e)||sf.test(e)||uf.test(e)},parse:function(e){return of.test(e)?of.parse(e):uf.test(e)?uf.parse(e):sf.parse(e)},transform:function(e){return wl(e)?e:e.hasOwnProperty("red")?of.transform(e):uf.transform(e)}},gf="${c}",bf="${n}";function wf(e){"number"==typeof e&&(e="".concat(e));var t=[],n=0,r=e.match(gl);r&&(n=r.length,e=e.replace(gl,gf),t.push.apply(t,w(r.map(yf.parse))));var i=e.match(yl);return i&&(e=e.replace(yl,bf),t.push.apply(t,w(i.map(Cl.parse)))),{values:t,numColors:n,tokenised:e}}function xf(e){return wf(e).values}function kf(e){var t=wf(e),n=t.values,r=t.numColors,i=t.tokenised,a=n.length;return function(e){for(var t=i,n=0;n<a;n++)t=t.replace(n<r?gf:bf,n<r?yf.transform(e[n]):vl(e[n]));return t}}var _f=function(e){return"number"==typeof e?0:e},Ef={test:function(e){var t,n,r,i;return isNaN(e)&&wl(e)&&(null!==(n=null===(t=e.match(yl))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(i=null===(r=e.match(gl))||void 0===r?void 0:r.length)&&void 0!==i?i:0)>0},parse:xf,createTransformer:kf,getAnimatableNone:function(e){var t=xf(e);return kf(e)(t.map(_f))}},Sf=function(e){return"number"==typeof e};function Of(e,t){return Sf(e)?function(n){return ef(e,t,n)}:yf.test(e)?vf(e,t):Nf(e,t)}var Af=function(e,t){var n=w(e),r=n.length,i=e.map((function(e,n){return Of(e,t[n])}));return function(e){for(var t=0;t<r;t++)n[t]=i[t](e);return n}},Cf=function(e,t){var n=Object.assign(Object.assign({},e),t),r={};for(var i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=Of(e[i],t[i]));return function(e){for(var t in r)n[t]=r[t](e);return n}};function Tf(e){for(var t=Ef.parse(e),n=t.length,r=0,i=0,a=0,o=0;o<n;o++)r||"number"==typeof t[o]?r++:void 0!==t[o].hue?a++:i++;return{parsed:t,numNumbers:r,numRGB:i,numHSL:a}}var Nf=function(e,t){var n=Ef.createTransformer(t),r=Tf(e),i=Tf(t);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers?Rc(Af(r.parsed,i.parsed),n):("Complex values '".concat(e,"' and '").concat(t,"' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition."),function(n){return"".concat(n>0?t:e)})},jf=function(e,t){return function(n){return ef(e,t,n)}};function Pf(e,t,n){for(var r,i=[],a=n||("number"==typeof(r=e[0])?jf:"string"==typeof r?yf.test(r)?vf:Nf:Array.isArray(r)?Af:"object"==typeof r?Cf:void 0),o=e.length-1,s=0;s<o;s++){var u=a(e[s],e[s+1]);if(t){var l=Array.isArray(t)?t[s]:t;u=Rc(l,u)}i.push(u)}return i}function Rf(e,t){var n=l(e,2),r=n[0],i=n[1],a=l(t,1)[0];return function(e){return a(Jc(r,i,e))}}function If(e,t){var n=e.length,r=n-1;return function(i){var a=0,o=!1;if(i<=e[0]?o=!0:i>=e[r]&&(a=r-1,o=!0),!o){for(var s=1;s<n&&!(e[s]>i||s===r);s++);a=s-1}var u=Jc(e[a],e[a+1],i);return t[a](u)}}function Lf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.clamp,i=void 0===r||r,a=n.ease,o=n.mixer,s=e.length;t.length,!a||!Array.isArray(a)||a.length,e[0]>e[s-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());var u=Pf(t,a,o),l=2===s?Rf(e,u):If(e,u);return i?function(t){return l(Gc(e[0],e[s-1],t))}:l}var Mf=function(e){return function(t){return 1-e(1-t)}},Bf=function(e){return function(t){return t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2}},Df=function(e){return function(t){return t*t*((e+1)*t-e)}},Uf=function(e){return e},Ff=(2,function(e){return Math.pow(e,2)}),zf=Mf(Ff),Vf=Bf(Ff),Hf=function(e){return 1-Math.sin(Math.acos(e))},Wf=Mf(Hf),qf=Bf(Wf),Gf=Df(1.525),Zf=Mf(Gf),Yf=Bf(Gf),$f=function(e){var t=Df(1.525);return function(e){return(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))}}(),Kf=function(e){if(1===e||0===e)return e;var t=e*e;return e<.36363636363636365?7.5625*t:e<.7272727272727273?9.075*t-9.9*e+3.4:e<.9?12.066481994459833*t-19.63545706371191*e+8.898060941828255:10.8*e*e-20.52*e+10.72},Xf=Mf(Kf);function Qf(e,t){return e.map((function(){return t||Vf})).splice(0,e.length-1)}function Jf(e){var t=e.from,n=void 0===t?0:t,r=e.to,i=void 0===r?1:r,a=e.ease,o=e.offset,s=e.duration,u=void 0===s?300:s,l={done:!1,value:n},c=Array.isArray(i)?i:[n,i],f=function(e,t){return e.map((function(e){return e*t}))}(o&&o.length===c.length?o:function(e){var t=e.length;return e.map((function(e,n){return 0!==n?n/(t-1):0}))}(c),u);function d(){return Lf(f,c,{ease:Array.isArray(a)?a:Qf(c,a)})}var p=d();return{next:function(e){return l.value=p(e),l.done=e>=u,l},flipTarget:function(){c.reverse(),p=d()}}}var ed={keyframes:Jf,spring:Xc,decay:function(e){var t=e.velocity,n=void 0===t?0:t,r=e.from,i=void 0===r?0:r,a=e.power,o=void 0===a?.8:a,s=e.timeConstant,u=void 0===s?350:s,l=e.restDelta,c=void 0===l?.5:l,f=e.modifyTarget,d={done:!1,value:i},p=o*n,h=i+p,m=void 0===f?h:f(h);return m!==h&&(p=m-i),{next:function(e){var t=-p*Math.exp(-e/u);return d.done=!(t>c||t<-c),d.value=d.done?m:m+t,d},flipTarget:function(){}}}};function td(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return e-t-n}var nd=function(e){var t=function(t){var n=t.delta;return e(n)};return{start:function(){return vu.update(t,!0)},stop:function(){return cu.update(t)}}};function rd(e){var t,n,r,i,a,o=e.from,s=e.autoplay,u=void 0===s||s,l=e.driver,c=void 0===l?nd:l,f=e.elapsed,d=void 0===f?0:f,p=e.repeat,h=void 0===p?0:p,m=e.repeatType,v=void 0===m?"loop":m,y=e.repeatDelay,g=void 0===y?0:y,b=e.onPlay,w=e.onStop,x=e.onComplete,k=e.onRepeat,_=e.onUpdate,E=qc(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]),S=E.to,O=0,A=E.duration,C=!1,T=!0,N=function(e){if(Array.isArray(e.to))return Jf;if(ed[e.type])return ed[e.type];var t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?Jf:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?Xc:Jf}(E);(null===(n=(t=N).needsInterpolation)||void 0===n?void 0:n.call(t,o,S))&&(a=Lf([0,100],[o,S],{clamp:!1}),o=0,S=100);var j=N(Object.assign(Object.assign({},E),{from:o,to:S}));return u&&(null==b||b(),(r=c((function(e){if(T||(e=-e),d+=e,!C){var t=j.next(Math.max(0,d));i=t.value,a&&(i=a(i)),C=T?t.done:d<=0}null==_||_(i),C&&(0===O&&(null!=A||(A=d)),O<h?function(e,t,n,r){return r?e>=t+n:e<=-n}(d,A,g,T)&&(O++,"reverse"===v?d=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return arguments.length>3&&void 0!==arguments[3]&&!arguments[3]?t-(e-t)+n:td(t+-e,t,n)}(d,A,g,T=O%2==0):(d=td(d,A,g),"mirror"===v&&j.flipTarget()),C=!1,k&&k()):(r.stop(),x&&x()))}))).start()),{stop:function(){null==w||w(),r.stop()}}}function id(e,t){return t?e*(1e3/t):0}var ad=function(e){return 1e3*e},od=function(e,t){return 1-3*t+3*e},sd=function(e,t){return 3*t-6*e},ud=function(e){return 3*e},ld=function(e,t,n){return((od(t,n)*e+sd(t,n))*e+ud(t))*e},cd=function(e,t,n){return 3*od(t,n)*e*e+2*sd(t,n)*e+ud(t)},fd=.1;var dd={linear:Uf,easeIn:Ff,easeInOut:Vf,easeOut:zf,circIn:Hf,circInOut:qf,circOut:Wf,backIn:Gf,backInOut:Yf,backOut:Zf,anticipate:$f,bounceIn:Xf,bounceInOut:function(e){return e<.5?.5*(1-Kf(1-2*e)):.5*Kf(2*e-1)+.5},bounceOut:Kf},pd=function(e){if(Array.isArray(e)){e.length;var t=Qs(e,4);return function(e,t,n,r){if(e===t&&n===r)return Uf;for(var i=new Float32Array(11),a=0;a<11;++a)i[a]=ld(a*fd,e,n);function o(t){for(var r=0,a=1;10!==a&&i[a]<=t;++a)r+=fd;--a;var o=r+(t-i[a])/(i[a+1]-i[a])*fd,s=cd(o,e,n);return s>=.001?function(e,t,n,r){for(var i=0;i<8;++i){var a=cd(t,n,r);if(0===a)return t;t-=(ld(t,n,r)-e)/a}return t}(t,o,e,n):0===s?o:function(e,t,n,r,i){var a,o,s=0;do{(a=ld(o=t+(n-t)/2,r,i)-e)>0?n=o:t=o}while(Math.abs(a)>1e-7&&++s<10);return o}(t,r,r+fd,e,n)}return function(e){return 0===e||1===e?e:ld(o(e),t,r)}}(t[0],t[1],t[2],t[3])}return"string"==typeof e?("Invalid easing type '".concat(e,"'"),dd[e]):e},hd=function(e,t){return!("zIndex"===e||"number"!=typeof t&&!Array.isArray(t)&&("string"!=typeof t||!Ef.test(t)||t.startsWith("url(")))},md=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},vd=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}},yd=function(){return{type:"keyframes",ease:"linear",duration:.3}},gd=function(e){return{type:"keyframes",duration:.8,values:e}},bd={x:md,y:md,z:md,rotate:md,rotateX:md,rotateY:md,rotateZ:md,scaleX:vd,scaleY:vd,scale:vd,opacity:yd,backgroundColor:yd,color:yd,default:vd},wd=new Set(["brightness","contrast","saturate","opacity"]);function xd(e){var t=l(e.slice(0,-1).split("("),2),n=t[0],r=t[1];if("drop-shadow"===n)return e;var i=l(r.match(yl)||[],1)[0];if(!i)return e;var a=r.replace(i,""),o=wd.has(n)?1:0;return i!==r&&(o*=100),n+"("+o+a+")"}var kd=/([a-z-]*)\(.*?\)/g,_d=Object.assign(Object.assign({},Ef),{getAnimatableNone:function(e){var t=e.match(kd);return t?t.map(xd).join(" "):e}}),Ed=Ks(Ks({},Pl),{color:yf,backgroundColor:yf,outlineColor:yf,fill:yf,stroke:yf,borderColor:yf,borderTopColor:yf,borderRightColor:yf,borderBottomColor:yf,borderLeftColor:yf,filter:_d,WebkitFilter:_d}),Sd=function(e){return Ed[e]};function Od(e,t){var n,r=Sd(e);return r!==_d&&(r=Ef),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}function Ad(e,t,n){var r;return Array.isArray(t.to)&&(null!==(r=e.duration)&&void 0!==r||(e.duration=.8)),function(e){Array.isArray(e.to)&&null===e.to[0]&&(e.to=Js([],Qs(e.to),!1),e.to[0]=e.from)}(t),function(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=Xs(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=Ks(Ks({},e),function(e,t){var n;return n=nc(t)?gd:bd[e]||bd.default,Ks({to:t},n(t))}(n,t.to))),Ks(Ks({},t),function(e){var t=e.ease,n=e.times,r=e.yoyo,i=e.flip,a=e.loop,o=Xs(e,["ease","times","yoyo","flip","loop"]),s=Ks({},o);return n&&(s.offset=n),o.duration&&(s.duration=ad(o.duration)),o.repeatDelay&&(s.repeatDelay=ad(o.repeatDelay)),t&&(s.ease=function(e){return Array.isArray(e)&&"number"!=typeof e[0]}(t)?t.map(pd):pd(t)),"tween"===o.type&&(s.type="keyframes"),(r||a||i)&&(r?s.repeatType="reverse":a?s.repeatType="loop":i&&(s.repeatType="mirror"),s.repeat=a||r||i||o.repeat),"spring"!==o.type&&(s.type="keyframes"),s}(e))}function Cd(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function Td(e){return"number"==typeof e?0:Od("",e)}function Nd(e,t){return e[t]||e.default||e}function jd(e,t,n,r){return void 0===r&&(r={}),t.start((function(i){var a,o,s=function(e,t,n,r,i){var a,o=Nd(r,e),s=null!==(a=o.from)&&void 0!==a?a:t.get(),u=hd(e,n);"none"===s&&u&&"string"==typeof n?s=Od(e,n):Cd(s)&&"string"==typeof n?s=Td(n):!Array.isArray(n)&&Cd(n)&&"string"==typeof s&&(n=Td(s));var l=hd(e,s);return"You are trying to animate ".concat(e,' from "').concat(s,'" to "').concat(n,'". ').concat(s," is not an animatable value - to enable this animation set ").concat(s," to a value animatable to ").concat(n," via the `style` property."),l&&u&&!1!==o.type?function(){var r={from:s,to:n,velocity:t.getVelocity(),onComplete:i,onUpdate:function(e){return t.set(e)}};return"inertia"===o.type||"decay"===o.type?function(e){var t,n=e.from,r=void 0===n?0:n,i=e.velocity,a=void 0===i?0:i,o=e.min,s=e.max,u=e.power,l=void 0===u?.8:u,c=e.timeConstant,f=void 0===c?750:c,d=e.bounceStiffness,p=void 0===d?500:d,h=e.bounceDamping,m=void 0===h?10:h,v=e.restDelta,y=void 0===v?1:v,g=e.modifyTarget,b=e.driver,w=e.onUpdate,x=e.onComplete,k=e.onStop;function _(e){return void 0!==o&&e<o||void 0!==s&&e>s}function E(e){return void 0===o?s:void 0===s||Math.abs(o-e)<Math.abs(s-e)?o:s}function S(e){null==t||t.stop(),t=rd(Object.assign(Object.assign({},e),{driver:b,onUpdate:function(t){var n;null==w||w(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:x,onStop:k}))}function O(e){S(Object.assign({type:"spring",stiffness:p,damping:m,restDelta:y},e))}if(_(r))O({from:r,velocity:a,to:E(r)});else{var A=l*a+r;void 0!==g&&(A=g(A));var C,T,N=E(A),j=N===o?-1:1;S({type:"decay",from:r,velocity:a,timeConstant:f,power:l,restDelta:y,modifyTarget:g,onUpdate:_(A)?function(e){C=T,T=e,a=id(e-C,mu().delta),(1===j&&e>N||-1===j&&e<N)&&O({from:e,to:N,velocity:a})}:void 0})}return{stop:function(){return null==t?void 0:t.stop()}}}(Ks(Ks({},r),o)):rd(Ks(Ks({},Ad(o,r,e)),{onUpdate:function(e){var t;r.onUpdate(e),null===(t=o.onUpdate)||void 0===t||t.call(o,e)},onComplete:function(){var e;r.onComplete(),null===(e=o.onComplete)||void 0===e||e.call(o)}}))}:function(){var e,r,a=rc(n);return t.set(a),i(),null===(e=null==o?void 0:o.onUpdate)||void 0===e||e.call(o,a),null===(r=null==o?void 0:o.onComplete)||void 0===r||r.call(o),{stop:function(){}}}}(e,t,n,r,i),u=function(e,t){var n,r;return null!==(r=null!==(n=(Nd(e,t)||{}).delay)&&void 0!==n?n:e.delay)&&void 0!==r?r:0}(r,e),l=function(){return o=s()};return u?a=window.setTimeout(l,ad(u)):l(),function(){clearTimeout(a),null==o||o.stop()}}))}var Pd=function(e){return/^0[^.\s]+$/.test(e)};function Rd(e,t){-1===e.indexOf(t)&&e.push(t)}function Id(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Ld=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return Rd(this.subscriptions,e),function(){return Id(t.subscriptions,e)}},e.prototype.notify=function(e,t,n){var r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(var i=0;i<r;i++){var a=this.subscriptions[i];a&&a(e,t,n)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),Md=function(){function e(e){var t=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new Ld,this.velocityUpdateSubscribers=new Ld,this.renderSubscribers=new Ld,this.canTrackVelocity=!1,this.updateAndNotify=function(e,n){void 0===n&&(n=!0),t.prev=t.current,t.current=e;var r=mu(),i=r.delta,a=r.timestamp;t.lastUpdated!==a&&(t.timeDelta=i,t.lastUpdated=a,vu.postRender(t.scheduleVelocityCheck)),t.prev!==t.current&&t.updateSubscribers.notify(t.current),t.velocityUpdateSubscribers.getSize()&&t.velocityUpdateSubscribers.notify(t.getVelocity()),n&&t.renderSubscribers.notify(t.current)},this.scheduleVelocityCheck=function(){return vu.postRender(t.velocityCheck)},this.velocityCheck=function(e){e.timestamp!==t.lastUpdated&&(t.prev=t.current,t.velocityUpdateSubscribers.notify(t.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=function(e){return!isNaN(parseFloat(e))}(this.current)}return e.prototype.onChange=function(e){return this.updateSubscribers.add(e)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(e){return e(this.get()),this.renderSubscribers.add(e)},e.prototype.attach=function(e){this.passiveEffect=e},e.prototype.set=function(e,t){void 0===t&&(t=!0),t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?id(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(e){var t=this;return this.stop(),new Promise((function(n){t.hasAnimated=!0,t.stopAnimation=e(n)})).then((function(){return t.clearAnimation()}))},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function Bd(e){return new Md(e)}var Dd=function(e){return function(t){return t.test(e)}},Ud=[Cl,El,_l,kl,Ol,Sl,{test:function(e){return"auto"===e},parse:function(e){return e}}],Fd=function(e){return Ud.find(Dd(e))},zd=Js(Js([],Qs(Ud),!1),[yf,Ef],!1),Vd=function(e){return zd.find(Dd(e))};function Hd(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Bd(n))}function Wd(e,t){if(t)return(t[e]||t.default||t).from}function qd(e,t,n){var r;void 0===n&&(n={});var i=qu(e,t,n.custom),a=(i||{}).transition,o=void 0===a?e.getDefaultTransition()||{}:a;n.transitionOverride&&(o=n.transitionOverride);var s=i?function(){return Gd(e,i,n)}:function(){return Promise.resolve()},u=(null===(r=e.variantChildren)||void 0===r?void 0:r.size)?function(r){void 0===r&&(r=0);var i=o.delayChildren,a=void 0===i?0:i,s=o.staggerChildren,u=o.staggerDirection;return function(e,t,n,r,i,a){void 0===n&&(n=0),void 0===r&&(r=0),void 0===i&&(i=1);var o=[],s=(e.variantChildren.size-1)*r,u=1===i?function(e){return void 0===e&&(e=0),e*r}:function(e){return void 0===e&&(e=0),s-e*r};return Array.from(e.variantChildren).sort(Zd).forEach((function(e,r){o.push(qd(e,t,Ks(Ks({},a),{delay:n+u(r)})).then((function(){return e.notifyAnimationComplete(t)})))})),Promise.all(o)}(e,t,a+r,s,u,n)}:function(){return Promise.resolve()},l=o.when;if(l){var c=Qs("beforeChildren"===l?[s,u]:[u,s],2),f=c[0],d=c[1];return f().then(d)}return Promise.all([s(),u(n.delay)])}function Gd(e,t,n){var r,i=void 0===n?{}:n,a=i.delay,o=void 0===a?0:a,s=i.transitionOverride,u=i.type,l=e.makeTargetAnimatable(t),c=l.transition,f=void 0===c?e.getDefaultTransition():c,d=l.transitionEnd,p=Xs(l,["transition","transitionEnd"]);s&&(f=s);var h=[],m=u&&(null===(r=e.animationState)||void 0===r?void 0:r.getState()[u]);for(var v in p){var y=e.getValue(v),g=p[v];if(!(!y||void 0===g||m&&Yd(m,v))){var b=Ks({delay:o},f);e.shouldReduceMotion&&sl(v)&&(b=Ks(Ks({},b),{type:!1,delay:0}));var w=jd(v,y,g,b);h.push(w)}}return Promise.all(h).then((function(){d&&function(e,t){var n=qu(e,t),r=n?e.makeTargetAnimatable(n,!1):{},i=r.transitionEnd,a=void 0===i?{}:i;r.transition;var o=Xs(r,["transitionEnd","transition"]);for(var s in o=Ks(Ks({},o),a))Hd(e,s,rc(o[s]))}(e,d)}))}function Zd(e,t){return e.sortNodePosition(t)}function Yd(e,t){var n=e.protectedKeys,r=e.needsAnimating,i=n.hasOwnProperty(t)&&!0!==r[t];return r[t]=!1,i}var $d=[uc.Animate,uc.InView,uc.Focus,uc.Hover,uc.Tap,uc.Drag,uc.Exit],Kd=Js([],Qs($d),!1).reverse(),Xd=$d.length;function Qd(e){var t=function(e){return function(t){return Promise.all(t.map((function(t){var n=t.animation,r=t.options;return function(e,t,n){var r;if(void 0===n&&(n={}),e.notifyAnimationStart(t),Array.isArray(t)){var i=t.map((function(t){return qd(e,t,n)}));r=Promise.all(i)}else if("string"==typeof t)r=qd(e,t,n);else{var a="function"==typeof t?qu(e,t,n.custom):t;r=Gd(e,a,n)}return r.then((function(){return e.notifyAnimationComplete(t)}))}(e,n,r)})))}}(e),n=function(){var e;return(e={})[uc.Animate]=Jd(!0),e[uc.InView]=Jd(),e[uc.Hover]=Jd(),e[uc.Tap]=Jd(),e[uc.Drag]=Jd(),e[uc.Focus]=Jd(),e[uc.Exit]=Jd(),e}(),r={},i=!0,a=function(t,n){var r=qu(e,n);if(r){r.transition;var i=r.transitionEnd,a=Xs(r,["transition","transitionEnd"]);t=Ks(Ks(Ks({},t),a),i)}return t};function o(o,s){for(var u,l=e.getProps(),c=e.getVariantContext(!0)||{},f=[],d=new Set,p={},h=1/0,m=function(t){var r=Kd[t],m=n[r],v=null!==(u=l[r])&&void 0!==u?u:c[r],y=Hu(v),g=r===s?m.isActive:null;!1===g&&(h=t);var b=v===c[r]&&v!==l[r]&&y;if(b&&i&&e.manuallyAnimateOnMount&&(b=!1),m.protectedKeys=Ks({},p),!m.isActive&&null===g||!v&&!m.prevProp||tc(v)||"boolean"==typeof v)return"continue";var w=function(e,t){return"string"==typeof t?t!==e:!!Vu(t)&&!Wc(t,e)}(m.prevProp,v),x=w||r===s&&m.isActive&&!b&&y||t>h&&y,k=Array.isArray(v)?v:[v],_=k.reduce(a,{});!1===g&&(_={});var E=m.prevResolvedValues,S=void 0===E?{}:E,O=Ks(Ks({},S),_),A=function(e){x=!0,d.delete(e),m.needsAnimating[e]=!0};for(var C in O){var T=_[C],N=S[C];p.hasOwnProperty(C)||(T!==N?nc(T)&&nc(N)?!Wc(T,N)||w?A(C):m.protectedKeys[C]=!0:void 0!==T?A(C):d.add(C):void 0!==T&&d.has(C)?A(C):m.protectedKeys[C]=!0)}m.prevProp=v,m.prevResolvedValues=_,m.isActive&&(p=Ks(Ks({},p),_)),i&&e.blockInitialAnimation&&(x=!1),x&&!b&&f.push.apply(f,Js([],Qs(k.map((function(e){return{animation:e,options:Ks({type:r},o)}}))),!1))},v=0;v<Xd;v++)m(v);if(r=Ks({},p),d.size){var y={};d.forEach((function(t){var n=e.getBaseTarget(t);void 0!==n&&(y[t]=n)})),f.push({animation:y})}var g=Boolean(f.length);return i&&!1===l.initial&&!e.manuallyAnimateOnMount&&(g=!1),i=!1,g?t(f):Promise.resolve()}return{isAnimated:function(e){return void 0!==r[e]},animateChanges:o,setActive:function(t,r,i){var a;if(n[t].isActive===r)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach((function(e){var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r;var s=o(i,t);for(var u in n)n[u].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:function(){return n}}}function Jd(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var ep={animation:zc((function(e){var t=e.visualElement,n=e.animate;t.animationState||(t.animationState=Qd(t)),tc(n)&&(0,a.useEffect)((function(){return n.subscribe(t)}),[n])})),exit:zc((function(e){var t=e.custom,n=e.visualElement,r=Qs(Hc(),2),i=r[0],o=r[1],s=(0,a.useContext)(wu);(0,a.useEffect)((function(){var e,r;n.isPresent=i;var a=null===(e=n.animationState)||void 0===e?void 0:e.setActive(uc.Exit,!i,{custom:null!==(r=null==s?void 0:s.custom)&&void 0!==r?r:t});!i&&(null==a||a.then(o))}),[i])}))},tp=function(e){return e.hasOwnProperty("x")&&e.hasOwnProperty("y")},np=function(e){return tp(e)&&e.hasOwnProperty("z")},rp=function(e,t){return Math.abs(e-t)};function ip(e,t){if(Sf(e)&&Sf(t))return rp(e,t);if(tp(e)&&tp(t)){var n=rp(e.x,t.x),r=rp(e.y,t.y),i=np(e)&&np(t)?rp(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(i,2))}}var ap=function(){function e(e,t,n){var r=this,i=(void 0===n?{}:n).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(r.lastMoveEvent&&r.lastMoveEventInfo){var e=up(r.lastMoveEventInfo,r.history),t=null!==r.startEvent,n=ip(e.offset,{x:0,y:0})>=3;if(t||n){var i=e.point,a=mu().timestamp;r.history.push(Ks(Ks({},i),{timestamp:a}));var o=r.handlers,s=o.onStart,u=o.onMove;t||(s&&s(r.lastMoveEvent,e),r.startEvent=r.lastMoveEvent),u&&u(r.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){r.lastMoveEvent=e,r.lastMoveEventInfo=op(t,r.transformPagePoint),pc(e)&&0===e.buttons?r.handlePointerUp(e,t):vu.update(r.updatePoint,!0)},this.handlePointerUp=function(e,t){r.end();var n=r.handlers,i=n.onEnd,a=n.onSessionEnd,o=up(op(t,r.transformPagePoint),r.history);r.startEvent&&i&&i(e,o),a&&a(e,o)},!(hc(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=i;var a=op(gc(e),this.transformPagePoint),o=a.point,s=mu().timestamp;this.history=[Ks(Ks({},o),{timestamp:s})];var u=t.onSessionStart;u&&u(e,up(a,this.history)),this.removeListeners=Rc(_c(window,"pointermove",this.handlePointerMove),_c(window,"pointerup",this.handlePointerUp),_c(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),cu.update(this.updatePoint)},e}();function op(e,t){return t?{point:t(e.point)}:e}function sp(e,t){return{x:e.x-t.x,y:e.y-t.y}}function up(e,t){var n=e.point;return{point:n,delta:sp(n,cp(t)),offset:sp(n,lp(t)),velocity:fp(t,.1)}}function lp(e){return e[0]}function cp(e){return e[e.length-1]}function fp(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,i=cp(e);n>=0&&(r=e[n],!(i.timestamp-r.timestamp>ad(t)));)n--;if(!r)return{x:0,y:0};var a=(i.timestamp-r.timestamp)/1e3;if(0===a)return{x:0,y:0};var o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function dp(e){return e.max-e.min}function pp(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),ip(e,t)<n}function hp(e,t,n,r){void 0===r&&(r=.5),e.origin=r,e.originPoint=ef(t.min,t.max,e.origin),e.scale=dp(n)/dp(t),(pp(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=ef(n.min,n.max,e.origin)-e.originPoint,(pp(e.translate)||isNaN(e.translate))&&(e.translate=0)}function mp(e,t,n,r){hp(e.x,t.x,n.x,null==r?void 0:r.originX),hp(e.y,t.y,n.y,null==r?void 0:r.originY)}function vp(e,t,n){e.min=n.min+t.min,e.max=e.min+dp(t)}function yp(e,t,n){e.min=t.min-n.min,e.max=e.min+dp(t)}function gp(e,t,n){yp(e.x,t.x,n.x),yp(e.y,t.y,n.y)}function bp(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function wp(e,t){var n,r=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&(r=(n=Qs([i,r],2))[0],i=n[1]),{min:r,max:i}}var xp=.35;function kp(e,t,n){return{min:_p(e,t),max:_p(e,n)}}function _p(e,t){var n;return"number"==typeof e?e:null!==(n=e[t])&&void 0!==n?n:0}function Ep(e){return[e("x"),e("y")]}function Sp(e){var t=e.top;return{x:{min:e.left,max:e.right},y:{min:t,max:e.bottom}}}function Op(e){return void 0===e||1===e}function Ap(e){var t=e.scale,n=e.scaleX,r=e.scaleY;return!Op(t)||!Op(n)||!Op(r)}function Cp(e){return Ap(e)||Tp(e.x)||Tp(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function Tp(e){return e&&"0%"!==e}function Np(e,t,n){return n+t*(e-n)}function jp(e,t,n,r,i){return void 0!==i&&(e=Np(e,i,r)),Np(e,n,r)+t}function Pp(e,t,n,r,i){void 0===t&&(t=0),void 0===n&&(n=1),e.min=jp(e.min,t,n,r,i),e.max=jp(e.max,t,n,r,i)}function Rp(e,t){var n=t.x,r=t.y;Pp(e.x,n.translate,n.scale,n.originPoint),Pp(e.y,r.translate,r.scale,r.originPoint)}function Ip(e,t){e.min=e.min+t,e.max=e.max+t}function Lp(e,t,n){var r=Qs(n,3),i=r[0],a=r[1],o=r[2],s=void 0!==t[o]?t[o]:.5,u=ef(e.min,e.max,s);Pp(e,t[i],t[a],u,t.scale)}var Mp=["x","scaleX","originX"],Bp=["y","scaleY","originY"];function Dp(e,t){Lp(e.x,t,Mp),Lp(e.y,t,Bp)}function Up(e,t){return Sp(function(e,t){if(!t)return e;var n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}var Fp=new WeakMap,zp=function(){function e(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=e}return e.prototype.start=function(e,t){var n=this,r=(void 0===t?{}:t).snapToCursor,i=void 0!==r&&r;!1!==this.visualElement.isPresent&&(this.panSession=new ap(e,{onSessionStart:function(e){n.stopAnimation(),i&&n.snapToCursor(gc(e,"page").point)},onStart:function(e,t){var r,i=n.getProps(),a=i.drag,o=i.dragPropagation,s=i.onDragStart;(!a||o||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=Cc(a),n.openGlobalLock))&&(n.isDragging=!0,n.currentDirection=null,n.resolveConstraints(),n.visualElement.projection&&(n.visualElement.projection.isAnimationBlocked=!0,n.visualElement.projection.target=void 0),Ep((function(e){var t,r,i=n.getAxisMotionValue(e).get()||0;if(_l.test(i)){var a=null===(r=null===(t=n.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===r?void 0:r.actual[e];a&&(i=dp(a)*(parseFloat(i)/100))}n.originPoint[e]=i})),null==s||s(e,t),null===(r=n.visualElement.animationState)||void 0===r||r.setActive(uc.Drag,!0))},onMove:function(e,t){var r=n.getProps(),i=r.dragPropagation,a=r.dragDirectionLock,o=r.onDirectionLock,s=r.onDrag;if(i||n.openGlobalLock){var u=t.offset;if(a&&null===n.currentDirection)return n.currentDirection=function(e,t){void 0===t&&(t=10);var n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(u),void(null!==n.currentDirection&&(null==o||o(n.currentDirection)));n.updateAxis("x",t.point,u),n.updateAxis("y",t.point,u),n.visualElement.syncRender(),null==s||s(e,t)}},onSessionEnd:function(e,t){return n.stop(e,t)}},{transformPagePoint:this.visualElement.getTransformPagePoint()}))},e.prototype.stop=function(e,t){var n=this.isDragging;if(this.cancel(),n){var r=t.velocity;this.startAnimation(r);var i=this.getProps().onDragEnd;null==i||i(e,t)}},e.prototype.cancel=function(){var e,t;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(e=this.panSession)||void 0===e||e.end(),this.panSession=void 0,!this.getProps().dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(uc.Drag,!1)},e.prototype.updateAxis=function(e,t,n){var r=this.getProps().drag;if(n&&Vp(e,r,this.currentDirection)){var i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=function(e,t,n){var r=t.min,i=t.max;return void 0!==r&&e<r?e=n?ef(r,e,n.min):Math.max(e,r):void 0!==i&&e>i&&(e=n?ef(i,e,n.max):Math.min(e,i)),e}(a,this.constraints[e],this.elastic[e])),i.set(a)}},e.prototype.resolveConstraints=function(){var e=this,t=this.getProps(),n=t.dragConstraints,r=t.dragElastic,i=(this.visualElement.projection||{}).layout,a=this.constraints;n&&zu(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!n||!i)&&function(e,t){var n=t.top,r=t.left,i=t.bottom,a=t.right;return{x:bp(e.x,r,a),y:bp(e.y,n,i)}}(i.actual,n),this.elastic=function(e){return void 0===e&&(e=xp),!1===e?e=0:!0===e&&(e=xp),{x:kp(e,"left","right"),y:kp(e,"top","bottom")}}(r),a!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Ep((function(t){e.getAxisMotionValue(t)&&(e.constraints[t]=function(e,t){var n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(i.actual[t],e.constraints[t]))}))},e.prototype.resolveRefConstraints=function(){var e=this.getProps(),t=e.dragConstraints,n=e.onMeasureDragConstraints;if(!t||!zu(t))return!1;var r=t.current,i=this.visualElement.projection;if(!i||!i.layout)return!1;var a=function(e,t,n){var r=Up(e,n),i=t.scroll;return i&&(Ip(r.x,i.x),Ip(r.y,i.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),o=function(e,t){return{x:wp(e.x,t.x),y:wp(e.y,t.y)}}(i.layout.actual,a);if(n){var s=n(function(e){var t=e.x,n=e.y;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}(o));this.hasMutatedConstraints=!!s,s&&(o=Sp(s))}return o},e.prototype.startAnimation=function(e){var t=this,n=this.getProps(),r=n.drag,i=n.dragMomentum,a=n.dragElastic,o=n.dragTransition,s=n.dragSnapToOrigin,u=n.onDragTransitionEnd,l=this.constraints||{},c=Ep((function(n){var u;if(Vp(n,r,t.currentDirection)){var c=null!==(u=null==l?void 0:l[n])&&void 0!==u?u:{};s&&(c={min:0,max:0});var f=a?200:1e6,d=a?40:1e7,p=Ks(Ks({type:"inertia",velocity:i?e[n]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10},o),c);return t.startAxisValueAnimation(n,p)}}));return Promise.all(c).then(u)},e.prototype.startAxisValueAnimation=function(e,t){return jd(e,this.getAxisMotionValue(e),0,t)},e.prototype.stopAnimation=function(){var e=this;Ep((function(t){return e.getAxisMotionValue(t).stop()}))},e.prototype.getAxisMotionValue=function(e){var t,n,r="_drag"+e.toUpperCase();return this.visualElement.getProps()[r]||this.visualElement.getValue(e,null!==(n=null===(t=this.visualElement.getProps().initial)||void 0===t?void 0:t[e])&&void 0!==n?n:0)},e.prototype.snapToCursor=function(e){var t=this;Ep((function(n){if(Vp(n,t.getProps().drag,t.currentDirection)){var r=t.visualElement.projection,i=t.getAxisMotionValue(n);if(r&&r.layout){var a=r.layout.actual[n],o=a.min,s=a.max;i.set(e[n]-ef(o,s,.5))}}}))},e.prototype.scalePositionWithinConstraints=function(){var e,t=this,n=this.getProps(),r=n.drag,i=n.dragConstraints,a=this.visualElement.projection;if(zu(i)&&a&&this.constraints){this.stopAnimation();var o={x:0,y:0};Ep((function(e){var n=t.getAxisMotionValue(e);if(n){var r=n.get();o[e]=function(e,t){var n=.5,r=dp(e),i=dp(t);return i>r?n=Jc(t.min,t.max-r,e.min):r>i&&(n=Jc(e.min,e.max-i,t.min)),Gc(0,1,n)}({min:r,max:r},t.constraints[e])}}));var s=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=s?s({},""):"none",null===(e=a.root)||void 0===e||e.updateScroll(),a.updateLayout(),this.resolveConstraints(),Ep((function(e){if(Vp(e,r,null)){var n=t.getAxisMotionValue(e),i=t.constraints[e],a=i.min,s=i.max;n.set(ef(a,s,o[e]))}}))}},e.prototype.addListeners=function(){var e,t=this;Fp.set(this.visualElement,this);var n=_c(this.visualElement.getInstance(),"pointerdown",(function(e){var n=t.getProps(),r=n.drag,i=n.dragListener;r&&(void 0===i||i)&&t.start(e)})),r=function(){zu(t.getProps().dragConstraints)&&(t.constraints=t.resolveRefConstraints())},i=this.visualElement.projection,a=i.addEventListener("measure",r);i&&!i.layout&&(null===(e=i.root)||void 0===e||e.updateScroll(),i.updateLayout()),r();var o=fc(window,"resize",(function(){return t.scalePositionWithinConstraints()}));return i.addEventListener("didUpdate",(function(e){var n=e.delta,r=e.hasLayoutChanged;t.isDragging&&r&&(Ep((function(e){var r=t.getAxisMotionValue(e);r&&(t.originPoint[e]+=n[e].translate,r.set(r.get()+n[e].translate))})),t.visualElement.syncRender())})),function(){o(),n(),a()}},e.prototype.getProps=function(){var e=this.visualElement.getProps(),t=e.drag,n=void 0!==t&&t,r=e.dragDirectionLock,i=void 0!==r&&r,a=e.dragPropagation,o=void 0!==a&&a,s=e.dragConstraints,u=void 0!==s&&s,l=e.dragElastic,c=void 0===l?xp:l,f=e.dragMomentum,d=void 0===f||f;return Ks(Ks({},e),{drag:n,dragDirectionLock:i,dragPropagation:o,dragConstraints:u,dragElastic:c,dragMomentum:d})},e}();function Vp(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}var Hp={pan:zc((function(e){var t=e.onPan,n=e.onPanStart,r=e.onPanEnd,i=e.onPanSessionStart,o=e.visualElement,s=t||n||r||i,u=(0,a.useRef)(null),l=(0,a.useContext)(Mu).transformPagePoint,c={onSessionStart:i,onStart:n,onMove:t,onEnd:function(e,t){u.current=null,r&&r(e,t)}};(0,a.useEffect)((function(){null!==u.current&&u.current.updateHandlers(c)})),Ec(o,"pointerdown",s&&function(e){u.current=new ap(e,c,{transformPagePoint:l})}),Cu((function(){return u.current&&u.current.end()}))})),drag:zc((function(e){var t=e.dragControls,n=e.visualElement,r=xu((function(){return new zp(n)}));(0,a.useEffect)((function(){return t&&t.subscribe(r)}),[r,t]),(0,a.useEffect)((function(){return r.addListeners()}),[r])}))},Wp=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"],qp=function(e){var t=e.treeType,n=void 0===t?"":t,r=e.build,i=e.getBaseTarget,a=e.makeTargetAnimatable,o=e.measureViewportBox,s=e.render,u=e.readValueFromInstance,l=e.removeValueFromRenderState,c=e.sortNodePosition,f=e.scrapeMotionValuesFromProps;return function(e,t){var d=e.parent,p=e.props,h=e.presenceId,m=e.blockInitialAnimation,v=e.visualState,y=e.shouldReduceMotion;void 0===t&&(t={});var g,b,w=!1,x=v.latestValues,k=v.renderState,_=function(){var e=Wp.map((function(){return new Ld})),t={},n={clearAllListeners:function(){return e.forEach((function(e){return e.clear()}))},updatePropListeners:function(e){Wp.forEach((function(r){var i,a="on"+r,o=e[a];null===(i=t[r])||void 0===i||i.call(t),o&&(t[r]=n[a](o))}))}};return e.forEach((function(e,t){n["on"+Wp[t]]=function(t){return e.add(t)},n["notify"+Wp[t]]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.notify.apply(e,Js([],Qs(t),!1))}})),n}(),E=new Map,S=new Map,O={},A=Ks({},x);function C(){g&&w&&(T(),s(g,k,p.style,B.projection))}function T(){r(B,k,x,t,p)}function N(){_.notifyUpdate(x)}function j(e,t){var n=t.onChange((function(t){x[e]=t,p.onUpdate&&vu.update(N,!1,!0)})),r=t.onRenderRequest(B.scheduleRender);S.set(e,(function(){n(),r()}))}var P=f(p);for(var R in P){var I=P[R];void 0!==x[R]&&fl(I)&&I.set(x[R],!1)}var L=Gu(p),M=Zu(p),B=Ks(Ks({treeType:n,current:null,depth:d?d.depth+1:0,parent:d,children:new Set,presenceId:h,shouldReduceMotion:y,variantChildren:M?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null==d?void 0:d.isMounted()),blockInitialAnimation:m,isMounted:function(){return Boolean(g)},mount:function(e){w=!0,g=B.current=e,B.projection&&B.projection.mount(e),M&&d&&!L&&(b=null==d?void 0:d.addVariantChild(B)),E.forEach((function(e,t){return j(t,e)})),null==d||d.children.add(B),B.setProps(p)},unmount:function(){var e;null===(e=B.projection)||void 0===e||e.unmount(),cu.update(N),cu.render(C),S.forEach((function(e){return e()})),null==b||b(),null==d||d.children.delete(B),_.clearAllListeners(),g=void 0,w=!1},addVariantChild:function(e){var t,n=B.getClosestVariantNode();if(n)return null===(t=n.variantChildren)||void 0===t||t.add(e),function(){return n.variantChildren.delete(e)}},sortNodePosition:function(e){return c&&n===e.treeType?c(B.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return M?B:null==d?void 0:d.getClosestVariantNode()},getLayoutId:function(){return p.layoutId},getInstance:function(){return g},getStaticValue:function(e){return x[e]},setStaticValue:function(e,t){return x[e]=t},getLatestValues:function(){return x},setVisibility:function(e){B.isVisible!==e&&(B.isVisible=e,B.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),a(B,e,p,t)},measureViewportBox:function(){return o(g,p)},addValue:function(e,t){B.hasValue(e)&&B.removeValue(e),E.set(e,t),x[e]=t.get(),j(e,t)},removeValue:function(e){var t;E.delete(e),null===(t=S.get(e))||void 0===t||t(),S.delete(e),delete x[e],l(e,k)},hasValue:function(e){return E.has(e)},getValue:function(e,t){var n=E.get(e);return void 0===n&&void 0!==t&&(n=Bd(t),B.addValue(e,n)),n},forEachValue:function(e){return E.forEach(e)},readValue:function(e){var n;return null!==(n=x[e])&&void 0!==n?n:u(g,e,t)},setBaseTarget:function(e,t){A[e]=t},getBaseTarget:function(e){if(i){var t=i(p,e);if(void 0!==t&&!fl(t))return t}return A[e]}},_),{build:function(){return T(),k},scheduleRender:function(){vu.render(C,!1,!0)},syncRender:C,setProps:function(e){(e.transformTemplate||p.transformTemplate)&&B.scheduleRender(),p=e,_.updatePropListeners(e),O=function(e,t,n){var r;for(var i in t){var a=t[i],o=n[i];if(fl(a))e.addValue(i,a);else if(fl(o))e.addValue(i,Bd(a));else if(o!==a)if(e.hasValue(i)){var s=e.getValue(i);!s.hasAnimated&&s.set(a)}else e.addValue(i,Bd(null!==(r=e.getStaticValue(i))&&void 0!==r?r:a))}for(var i in n)void 0===t[i]&&e.removeValue(i);return t}(B,f(p),O)},getProps:function(){return p},getVariant:function(e){var t;return null===(t=p.variants)||void 0===t?void 0:t[e]},getDefaultTransition:function(){return p.transition},getTransformPagePoint:function(){return p.transformPagePoint},getVariantContext:function(e){if(void 0===e&&(e=!1),e)return null==d?void 0:d.getVariantContext();if(!L){var t=(null==d?void 0:d.getVariantContext())||{};return void 0!==p.initial&&(t.initial=p.initial),t}for(var n={},r=0;r<Zp;r++){var i=Gp[r],a=p[i];(Hu(a)||!1===a)&&(n[i]=a)}return n}});return B}},Gp=Js(["initial"],Qs($d),!1),Zp=Gp.length;function Yp(e){return"string"==typeof e&&e.startsWith("var(--")}var $p=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Kp(e,t,n){void 0===n&&(n=1),'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.');var r=Qs(function(e){var t=$p.exec(e);if(!t)return[,];var n=Qs(t,3);return[n[1],n[2]]}(e),2),i=r[0],a=r[1];if(i){var o=window.getComputedStyle(t).getPropertyValue(i);return o?o.trim():Yp(a)?Kp(a,t,n+1):a}}var Xp,Qp=new Set(["width","height","top","left","right","bottom","x","y"]),Jp=function(e){return Qp.has(e)},eh=function(e,t){e.set(t,!1),e.set(t)},th=function(e){return e===Cl||e===El};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(Xp||(Xp={}));var nh=function(e,t){return parseFloat(e.split(", ")[t])},rh=function(e,t){return function(n,r){var i=r.transform;if("none"===i||!i)return 0;var a=i.match(/^matrix3d\((.+)\)$/);if(a)return nh(a[1],t);var o=i.match(/^matrix\((.+)\)$/);return o?nh(o[1],e):0}},ih=new Set(["x","y","z"]),ah=il.filter((function(e){return!ih.has(e)})),oh={width:function(e,t){var n=e.x,r=t.paddingLeft,i=void 0===r?"0":r,a=t.paddingRight,o=void 0===a?"0":a;return n.max-n.min-parseFloat(i)-parseFloat(o)},height:function(e,t){var n=e.y,r=t.paddingTop,i=void 0===r?"0":r,a=t.paddingBottom,o=void 0===a?"0":a;return n.max-n.min-parseFloat(i)-parseFloat(o)},top:function(e,t){var n=t.top;return parseFloat(n)},left:function(e,t){var n=t.left;return parseFloat(n)},bottom:function(e,t){var n=e.y,r=t.top;return parseFloat(r)+(n.max-n.min)},right:function(e,t){var n=e.x,r=t.left;return parseFloat(r)+(n.max-n.min)},x:rh(4,13),y:rh(5,14)};function sh(e,t,n,r){return function(e){return Object.keys(e).some(Jp)}(t)?function(e,t,n,r){void 0===n&&(n={}),void 0===r&&(r={}),t=Ks({},t),r=Ks({},r);var i=Object.keys(t).filter(Jp),a=[],o=!1,s=[];if(i.forEach((function(i){var u=e.getValue(i);if(e.hasValue(i)){var l,c=n[i],f=Fd(c),d=t[i];if(nc(d)){var p=d.length,h=null===d[0]?1:0;c=d[h],f=Fd(c);for(var m=h;m<p;m++)l?Fd(d[m]):(l=Fd(d[m]))===f||th(f)&&th(l)}else l=Fd(d);if(f!==l)if(th(f)&&th(l)){var v=u.get();"string"==typeof v&&u.set(parseFloat(v)),"string"==typeof d?t[i]=parseFloat(d):Array.isArray(d)&&l===El&&(t[i]=d.map(parseFloat))}else(null==f?void 0:f.transform)&&(null==l?void 0:l.transform)&&(0===c||0===d)?0===c?u.set(l.transform(c)):t[i]=f.transform(d):(o||(a=function(e){var t=[];return ah.forEach((function(n){var r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t.length&&e.syncRender(),t}(e),o=!0),s.push(i),r[i]=void 0!==r[i]?r[i]:t[i],eh(u,d))}})),s.length){var u=s.indexOf("height")>=0?window.pageYOffset:null,l=function(e,t,n){var r=t.measureViewportBox(),i=t.getInstance(),a=getComputedStyle(i),o=a.display,s={};"none"===o&&t.setStaticValue("display",e.display||"block"),n.forEach((function(e){s[e]=oh[e](r,a)})),t.syncRender();var u=t.measureViewportBox();return n.forEach((function(n){var r=t.getValue(n);eh(r,s[n]),e[n]=oh[n](u,a)})),e}(t,e,s);return a.length&&a.forEach((function(t){var n=Qs(t,2),r=n[0],i=n[1];e.getValue(r).set(i)})),e.syncRender(),null!==u&&window.scrollTo({top:u}),{target:l,transitionEnd:r}}return{target:t,transitionEnd:r}}(e,t,n,r):{target:t,transitionEnd:r}}var uh={treeType:"dom",readValueFromInstance:function(e,t){if(sl(t)){var n=Sd(t);return n&&n.default||0}var r,i=(r=e,window.getComputedStyle(r));return(pl(t)?i.getPropertyValue(t):i[t])||0},sortNodePosition:function(e,t){return 2&e.compareDocumentPosition(t)?1:-1},getBaseTarget:function(e,t){var n;return null===(n=e.style)||void 0===n?void 0:n[t]},measureViewportBox:function(e,t){return Up(e,t.transformPagePoint)},resetTransform:function(e,t,n){var r=n.transformTemplate;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.vars,r=t.style;delete n[e],delete r[e]},makeTargetAnimatable:function(e,t,n,r){var i=n.transformValues;void 0===r&&(r=!0);var a=t.transition,o=t.transitionEnd,s=Xs(t,["transition","transitionEnd"]),u=function(e,t,n){var r,i,a={};for(var o in e)a[o]=null!==(r=Wd(o,t))&&void 0!==r?r:null===(i=n.getValue(o))||void 0===i?void 0:i.get();return a}(s,a||{},e);if(i&&(o&&(o=i(o)),s&&(s=i(s)),u&&(u=i(u))),r){!function(e,t,n){var r,i,a,o,s=Object.keys(t).filter((function(t){return!e.hasValue(t)})),u=s.length;if(u)for(var l=0;l<u;l++){var c=s[l],f=t[c],d=null;Array.isArray(f)&&(d=f[0]),null===d&&(d=null!==(i=null!==(r=n[c])&&void 0!==r?r:e.readValue(c))&&void 0!==i?i:t[c]),null!=d&&("string"==typeof d&&(/^\-?\d*\.?\d+$/.test(d)||Pd(d))?d=parseFloat(d):!Vd(d)&&Ef.test(f)&&(d=Od(c,f)),e.addValue(c,Bd(d)),null!==(a=(o=n)[c])&&void 0!==a||(o[c]=d),e.setBaseTarget(c,d))}}(e,s,u);var l=function(e,t,n,r){var i=function(e,t,n){var r,i=Xs(t,[]),a=e.getInstance();if(!(a instanceof Element))return{target:i,transitionEnd:n};for(var o in n&&(n=Ks({},n)),e.forEachValue((function(e){var t=e.get();if(Yp(t)){var n=Kp(t,a);n&&e.set(n)}})),i){var s=i[o];if(Yp(s)){var u=Kp(s,a);u&&(i[o]=u,n&&(null!==(r=n[o])&&void 0!==r||(n[o]=s)))}}return{target:i,transitionEnd:n}}(e,t,r);return sh(e,t=i.target,n,r=i.transitionEnd)}(e,s,u,o);o=l.transitionEnd,s=l.target}return Ks({transition:a,transitionEnd:o},s)},scrapeMotionValuesFromProps:Jl,build:function(e,t,n,r,i){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden"),Rl(t,n,r,i.transformTemplate)},render:Kl},lh=qp(uh),ch=qp(Ks(Ks({},uh),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return sl(t)?(null===(n=Sd(t))||void 0===n?void 0:n.default)||0:(t=Xl.has(t)?t:$l(t),e.getAttribute(t))},scrapeMotionValuesFromProps:ec,build:function(e,t,n,r,i){Wl(t,n,r,i.transformTemplate)},render:Ql})),fh=function(e,t){return tl(e)?ch(t,{enableHardwareAcceleration:!1}):lh(t,{enableHardwareAcceleration:!0})};function dh(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var ph={correct:function(e,t){if(!t.target)return e;if("string"==typeof e){if(!El.test(e))return e;e=parseFloat(e)}var n=dh(e,t.target.x),r=dh(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},hh="_$css",mh={correct:function(e,t){var n=t.treeScale,r=t.projectionDelta,i=e,a=e.includes("var("),o=[];a&&(e=e.replace($p,(function(e){return o.push(e),hh})));var s=Ef.parse(e);if(s.length>5)return i;var u=Ef.createTransformer(e),l="number"!=typeof s[0]?1:0,c=r.x.scale*n.x,f=r.y.scale*n.y;s[0+l]/=c,s[1+l]/=f;var d=ef(c,f,.5);"number"==typeof s[2+l]&&(s[2+l]/=d),"number"==typeof s[3+l]&&(s[3+l]/=d);var p=u(s);if(a){var h=0;p=p.replace(hh,(function(){var e=o[h];return h++,e}))}return p}},vh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $s(t,e),t.prototype.componentDidMount=function(){var e,t=this,n=this.props,r=n.visualElement,i=n.layoutGroup,a=n.switchLayoutGroup,o=n.layoutId,s=r.projection;e=yh,Object.assign(nl,e),s&&((null==i?void 0:i.group)&&i.group.add(s),(null==a?void 0:a.register)&&o&&a.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",(function(){t.safeToRemove()})),s.setOptions(Ks(Ks({},s.options),{onExitComplete:function(){return t.safeToRemove()}}))),$u.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(e){var t=this,n=this.props,r=n.layoutDependency,i=n.visualElement,a=n.drag,o=n.isPresent,s=i.projection;return s?(s.isPresent=o,a||e.layoutDependency!==r||void 0===r?s.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?s.promote():s.relegate()||vu.postRender((function(){var e;(null===(e=s.getStack())||void 0===e?void 0:e.members.length)||t.safeToRemove()}))),null):null},t.prototype.componentDidUpdate=function(){var e=this.props.visualElement.projection;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.visualElement,n=e.layoutGroup,r=e.switchLayoutGroup,i=t.projection;i&&(i.scheduleCheckAfterUnmount(),(null==n?void 0:n.group)&&n.group.remove(i),(null==r?void 0:r.deregister)&&r.deregister(i))},t.prototype.safeToRemove=function(){var e=this.props.safeToRemove;null==e||e()},t.prototype.render=function(){return null},t}(a.Component),yh={borderRadius:Ks(Ks({},ph),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:ph,borderTopRightRadius:ph,borderBottomLeftRadius:ph,borderBottomRightRadius:ph,boxShadow:mh},gh={measureLayout:function(e){var t=Qs(Hc(),2),n=t[0],r=t[1],i=(0,a.useContext)(Au);return a.createElement(vh,Ks({},e,{layoutGroup:i,switchLayoutGroup:(0,a.useContext)(Xu),isPresent:n,safeToRemove:r}))}},bh=["TopLeft","TopRight","BottomLeft","BottomRight"],wh=bh.length,xh=function(e){return"string"==typeof e?parseFloat(e):e},kh=function(e){return"number"==typeof e||El.test(e)};function _h(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}var Eh=Oh(0,.5,Wf),Sh=Oh(.5,.95,Uf);function Oh(e,t,n){return function(r){return r<e?0:r>t?1:n(Jc(e,t,r))}}function Ah(e,t){e.min=t.min,e.max=t.max}function Ch(e,t){Ah(e.x,t.x),Ah(e.y,t.y)}function Th(e,t,n,r,i){return e=Np(e-=t,1/n,r),void 0!==i&&(e=Np(e,1/i,r)),e}function Nh(e,t,n,r,i){var a=Qs(n,3),o=a[0],s=a[1],u=a[2];!function(e,t,n,r,i,a,o){if(void 0===t&&(t=0),void 0===n&&(n=1),void 0===r&&(r=.5),void 0===a&&(a=e),void 0===o&&(o=e),_l.test(t)&&(t=parseFloat(t),t=ef(o.min,o.max,t/100)-o.min),"number"==typeof t){var s=ef(a.min,a.max,r);e===a&&(s-=t),e.min=Th(e.min,t,n,s,i),e.max=Th(e.max,t,n,s,i)}}(e,t[o],t[s],t[u],t.scale,r,i)}var jh=["x","scaleX","originX"],Ph=["y","scaleY","originY"];function Rh(e,t,n,r){Nh(e.x,t,jh,null==n?void 0:n.x,null==r?void 0:r.x),Nh(e.y,t,Ph,null==n?void 0:n.y,null==r?void 0:r.y)}function Ih(e){return 0===e.translate&&1===e.scale}function Lh(e){return Ih(e.x)&&Ih(e.y)}function Mh(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}var Bh=function(){function e(){this.members=[]}return e.prototype.add=function(e){Rd(this.members,e),e.scheduleRender()},e.prototype.remove=function(e){if(Id(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){var t=this.members[this.members.length-1];t&&this.promote(t)}},e.prototype.relegate=function(e){var t,n=this.members.findIndex((function(t){return e===t}));if(0===n)return!1;for(var r=n;r>=0;r--){var i=this.members[r];if(!1!==i.isPresent){t=i;break}}return!!t&&(this.promote(t),!0)},e.prototype.promote=function(e,t){var n,r=this.lead;e!==r&&(this.prevLead=r,this.lead=e,e.show(),r&&(r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues,e.snapshot.isShared=!0),(null===(n=e.root)||void 0===n?void 0:n.isUpdating)&&(e.isLayoutDirty=!0),!1===e.options.crossfade&&r.hide()))},e.prototype.exitAnimationComplete=function(){this.members.forEach((function(e){var t,n,r,i,a;null===(n=(t=e.options).onExitComplete)||void 0===n||n.call(t),null===(a=null===(r=e.resumingFrom)||void 0===r?void 0:(i=r.options).onExitComplete)||void 0===a||a.call(i)}))},e.prototype.scheduleRender=function(){this.members.forEach((function(e){e.instance&&e.scheduleRender(!1)}))},e.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},e}();function Dh(e,t,n){var r=e.x.translate/t.x,i=e.y.translate/t.y,a="translate3d(".concat(r,"px, ").concat(i,"px, 0) ");if(a+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),n){var o=n.rotate,s=n.rotateX,u=n.rotateY;o&&(a+="rotate(".concat(o,"deg) ")),s&&(a+="rotateX(".concat(s,"deg) ")),u&&(a+="rotateY(".concat(u,"deg) "))}var l=e.x.scale*t.x,c=e.y.scale*t.y;return"translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)"===(a+="scale(".concat(l,", ").concat(c,")"))?"none":a}var Uh=function(e,t){return e.depth-t.depth},Fh=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){Rd(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){Id(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(Uh),this.isDirty=!1,this.children.forEach(e)},e}();function zh(e){var t=e.attachResizeListener,n=e.defaultParent,r=e.measureScroll,i=e.checkIsScrollRoot,a=e.resetTransform;return function(){function e(e,t,r){var i=this;void 0===t&&(t={}),void 0===r&&(r=null==n?void 0:n()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){i.isUpdating&&(i.isUpdating=!1,i.clearAllSnapshots())},this.updateProjection=function(){i.nodes.forEach(Yh),i.nodes.forEach($h)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=e,this.latestValues=t,this.root=r?r.root||r:this,this.path=r?Js(Js([],Qs(r.path),!1),[r],!1):[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(var a=0;a<this.path.length;a++)this.path[a].shouldResetTransform=!0;this.root===this&&(this.nodes=new Fh)}return e.prototype.addEventListener=function(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Ld),this.eventHandlers.get(e).add(t)},e.prototype.notifyListeners=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this.eventHandlers.get(e);null==r||r.notify.apply(r,Js([],Qs(t),!1))},e.prototype.hasListeners=function(e){return this.eventHandlers.has(e)},e.prototype.registerPotentialNode=function(e,t){this.potentialNodes.set(e,t)},e.prototype.mount=function(e,n){var r,i=this;if(void 0===n&&(n=!1),!this.instance){this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;var a=this.options,o=a.layoutId,s=a.layout,u=a.visualElement;if(u&&!u.getInstance()&&u.mount(e),this.root.nodes.add(this),null===(r=this.parent)||void 0===r||r.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),n&&(s||o)&&(this.isLayoutDirty=!0),t){var l,c=function(){return i.root.updateBlockedByResize=!1};t(e,(function(){i.root.updateBlockedByResize=!0,clearTimeout(l),l=window.setTimeout(c,250),$u.hasAnimatedSinceResize&&($u.hasAnimatedSinceResize=!1,i.nodes.forEach(Zh))}))}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&u&&(o||s)&&this.addEventListener("didUpdate",(function(e){var t,n,r,a,o,s=e.delta,l=e.hasLayoutChanged,c=e.hasRelativeTargetChanged,f=e.layout;if(i.isTreeAnimationBlocked())return i.target=void 0,void(i.relativeTarget=void 0);var d=null!==(n=null!==(t=i.options.transition)&&void 0!==t?t:u.getDefaultTransition())&&void 0!==n?n:tm,p=u.getProps(),h=p.onLayoutAnimationStart,m=p.onLayoutAnimationComplete,v=!i.targetLayout||!Mh(i.targetLayout,f)||c,y=!l&&c;if((null===(r=i.resumeFrom)||void 0===r?void 0:r.instance)||y||l&&(v||!i.currentAnimation)){i.resumeFrom&&(i.resumingFrom=i.resumeFrom,i.resumingFrom.resumingFrom=void 0),i.setAnimationOrigin(s,y);var g=Ks(Ks({},Nd(d,"layout")),{onPlay:h,onComplete:m});u.shouldReduceMotion&&(g.delay=0,g.type=!1),i.startAnimation(g)}else l||0!==i.animationProgress||i.finishAnimation(),i.isLead()&&(null===(o=(a=i.options).onExitComplete)||void 0===o||o.call(a));i.targetLayout=f}))}},e.prototype.unmount=function(){var e,t;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(e=this.getStack())||void 0===e||e.remove(this),null===(t=this.parent)||void 0===t||t.children.delete(this),this.instance=void 0,cu.preRender(this.updateProjection)},e.prototype.blockUpdate=function(){this.updateManuallyBlocked=!0},e.prototype.unblockUpdate=function(){this.updateManuallyBlocked=!1},e.prototype.isUpdateBlocked=function(){return this.updateManuallyBlocked||this.updateBlockedByResize},e.prototype.isTreeAnimationBlocked=function(){var e;return this.isAnimationBlocked||(null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimationBlocked())||!1},e.prototype.startUpdate=function(){var e;this.isUpdateBlocked()||(this.isUpdating=!0,null===(e=this.nodes)||void 0===e||e.forEach(Kh))},e.prototype.willUpdate=function(e){var t,n,r;if(void 0===e&&(e=!0),this.root.isUpdateBlocked())null===(n=(t=this.options).onExitComplete)||void 0===n||n.call(t);else if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var i=0;i<this.path.length;i++){var a=this.path[i];a.shouldResetTransform=!0,a.updateScroll()}var o=this.options,s=o.layoutId,u=o.layout;if(void 0!==s||u){var l=null===(r=this.options.visualElement)||void 0===r?void 0:r.getProps().transformTemplate;this.prevTransformTemplateValue=null==l?void 0:l(this.latestValues,""),this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}}},e.prototype.didUpdate=function(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(qh);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(nm),this.potentialNodes.clear()),this.nodes.forEach(Gh),this.nodes.forEach(Vh),this.nodes.forEach(Hh),this.clearAllSnapshots(),fu.update(),fu.preRender(),fu.render())},e.prototype.clearAllSnapshots=function(){this.nodes.forEach(Wh),this.sharedNodes.forEach(Xh)},e.prototype.scheduleUpdateProjection=function(){vu.preRender(this.updateProjection,!1,!0)},e.prototype.scheduleCheckAfterUnmount=function(){var e=this;vu.postRender((function(){e.isLayoutDirty?e.root.didUpdate():e.root.checkUpdateFailed()}))},e.prototype.updateSnapshot=function(){if(!this.snapshot&&this.instance){var e=this.measure(),t=this.removeTransform(this.removeElementScroll(e));im(t),this.snapshot={measured:e,layout:t,latestValues:{}}}},e.prototype.updateLayout=function(){var e;if(this.instance&&(this.updateScroll(),this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty)){if(this.resumeFrom&&!this.resumeFrom.instance)for(var t=0;t<this.path.length;t++)this.path[t].updateScroll();var n=this.measure();im(n);var r=this.layout;this.layout={measured:n,actual:this.removeElementScroll(n)},this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),null===(e=this.options.visualElement)||void 0===e||e.notifyLayoutMeasure(this.layout.actual,null==r?void 0:r.actual)}},e.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=i(this.instance),this.scroll=r(this.instance))},e.prototype.resetTransform=function(){var e;if(a){var t=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!Lh(this.projectionDelta),r=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate,i=null==r?void 0:r(this.latestValues,""),o=i!==this.prevTransformTemplateValue;t&&(n||Cp(this.latestValues)||o)&&(a(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}},e.prototype.measure=function(){var e=this.options.visualElement;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};var t=e.measureViewportBox(),n=this.root.scroll;return n&&(Ip(t.x,n.x),Ip(t.y,n.y)),t},e.prototype.removeElementScroll=function(e){var t={x:{min:0,max:0},y:{min:0,max:0}};Ch(t,e);for(var n=0;n<this.path.length;n++){var r=this.path[n],i=r.scroll,a=r.options,o=r.isScrollRoot;if(r!==this.root&&i&&a.layoutScroll){if(o){Ch(t,e);var s=this.root.scroll;s&&(Ip(t.x,-s.x),Ip(t.y,-s.y))}Ip(t.x,i.x),Ip(t.y,i.y)}}return t},e.prototype.applyTransform=function(e,t){void 0===t&&(t=!1);var n={x:{min:0,max:0},y:{min:0,max:0}};Ch(n,e);for(var r=0;r<this.path.length;r++){var i=this.path[r];!t&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Dp(n,{x:-i.scroll.x,y:-i.scroll.y}),Cp(i.latestValues)&&Dp(n,i.latestValues)}return Cp(this.latestValues)&&Dp(n,this.latestValues),n},e.prototype.removeTransform=function(e){var t,n={x:{min:0,max:0},y:{min:0,max:0}};Ch(n,e);for(var r=0;r<this.path.length;r++){var i=this.path[r];if(i.instance&&Cp(i.latestValues)){Ap(i.latestValues)&&i.updateSnapshot();var a={x:{min:0,max:0},y:{min:0,max:0}};Ch(a,i.measure()),Rh(n,i.latestValues,null===(t=i.snapshot)||void 0===t?void 0:t.layout,a)}}return Cp(this.latestValues)&&Rh(n,this.latestValues),n},e.prototype.setTargetDelta=function(e){this.targetDelta=e,this.root.scheduleUpdateProjection()},e.prototype.setOptions=function(e){var t;this.options=Ks(Ks(Ks({},this.options),e),{crossfade:null===(t=e.crossfade)||void 0===t||t})},e.prototype.clearMeasurements=function(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1},e.prototype.resolveTargetDelta=function(){var e,t,n,r,i=this.options,a=i.layout,o=i.layoutId;this.layout&&(a||o)&&(this.targetDelta||this.relativeTarget||(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},gp(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),Ch(this.relativeTarget,this.relativeTargetOrigin))),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&(null===(e=this.relativeParent)||void 0===e?void 0:e.target)?(t=this.target,n=this.relativeTarget,r=this.relativeParent.target,vp(t.x,n.x,r.x),vp(t.y,n.y,r.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):Ch(this.target,this.layout.actual),Rp(this.target,this.targetDelta)):Ch(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&Boolean(this.relativeParent.resumingFrom)===Boolean(this.resumingFrom)&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},gp(this.relativeTargetOrigin,this.target,this.relativeParent.target),Ch(this.relativeTarget,this.relativeTargetOrigin)))))},e.prototype.getClosestProjectingParent=function(){if(this.parent&&!Cp(this.parent.latestValues))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},e.prototype.calcProjection=function(){var e,t=this.options,n=t.layout,r=t.layoutId;if(this.isTreeAnimating=Boolean((null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),this.layout&&(n||r)){var i=this.getLead();Ch(this.layoutCorrected,this.layout.actual),function(e,t,n,r){var i,a;void 0===r&&(r=!1);var o=n.length;if(o){var s,u;t.x=t.y=1;for(var l=0;l<o;l++)u=(s=n[l]).projectionDelta,"contents"!==(null===(a=null===(i=s.instance)||void 0===i?void 0:i.style)||void 0===a?void 0:a.display)&&(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Dp(e,{x:-s.scroll.x,y:-s.scroll.y}),u&&(t.x*=u.x.scale,t.y*=u.y.scale,Rp(e,u)),r&&Cp(s.latestValues)&&Dp(e,s.latestValues))}}(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==i);var a=i.target;if(a){this.projectionDelta||(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}});var o=this.treeScale.x,s=this.treeScale.y,u=this.projectionTransform;mp(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.projectionTransform=Dh(this.projectionDelta,this.treeScale),this.projectionTransform===u&&this.treeScale.x===o&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a))}}},e.prototype.hide=function(){this.isVisible=!1},e.prototype.show=function(){this.isVisible=!0},e.prototype.scheduleRender=function(e){var t,n,r;void 0===e&&(e=!0),null===(n=(t=this.options).scheduleRender)||void 0===n||n.call(t),e&&(null===(r=this.getStack())||void 0===r||r.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},e.prototype.setAnimationOrigin=function(e,t){var n,r=this;void 0===t&&(t=!1);var i=this.snapshot,a=(null==i?void 0:i.latestValues)||{},o=Ks({},this.latestValues),s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!t;var u={x:{min:0,max:0},y:{min:0,max:0}},l=null==i?void 0:i.isShared,c=((null===(n=this.getStack())||void 0===n?void 0:n.members.length)||0)<=1,f=Boolean(l&&!c&&!0===this.options.crossfade&&!this.path.some(em));this.animationProgress=0,this.mixTargetDelta=function(t){var n,i=t/1e3;Qh(s.x,e.x,i),Qh(s.y,e.y,i),r.setTargetDelta(s),r.relativeTarget&&r.relativeTargetOrigin&&r.layout&&(null===(n=r.relativeParent)||void 0===n?void 0:n.layout)&&(gp(u,r.layout.actual,r.relativeParent.layout.actual),function(e,t,n,r){Jh(e.x,t.x,n.x,r),Jh(e.y,t.y,n.y,r)}(r.relativeTarget,r.relativeTargetOrigin,u,i)),l&&(r.animationValues=o,function(e,t,n,r,i,a){var o,s,u,l;i?(e.opacity=ef(0,null!==(o=n.opacity)&&void 0!==o?o:1,Eh(r)),e.opacityExit=ef(null!==(s=t.opacity)&&void 0!==s?s:1,0,Sh(r))):a&&(e.opacity=ef(null!==(u=t.opacity)&&void 0!==u?u:1,null!==(l=n.opacity)&&void 0!==l?l:1,r));for(var c=0;c<wh;c++){var f="border".concat(bh[c],"Radius"),d=_h(t,f),p=_h(n,f);void 0===d&&void 0===p||(d||(d=0),p||(p=0),0===d||0===p||kh(d)===kh(p)?(e[f]=Math.max(ef(xh(d),xh(p),r),0),(_l.test(p)||_l.test(d))&&(e[f]+="%")):e[f]=p)}(t.rotate||n.rotate)&&(e.rotate=ef(t.rotate||0,n.rotate||0,r))}(o,a,r.latestValues,i,f,c)),r.root.scheduleUpdateProjection(),r.scheduleRender(),r.animationProgress=i},this.mixTargetDelta(0)},e.prototype.startAnimation=function(e){var t,n,r=this;this.notifyListeners("animationStart"),null===(t=this.currentAnimation)||void 0===t||t.stop(),this.resumingFrom&&(null===(n=this.resumingFrom.currentAnimation)||void 0===n||n.stop()),this.pendingAnimation&&(cu.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=vu.update((function(){$u.hasAnimatedSinceResize=!0,r.currentAnimation=function(e,t,n){void 0===n&&(n={});var r=fl(0)?0:Bd(0);return jd("",r,1e3,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}(0,0,Ks(Ks({},e),{onUpdate:function(t){var n;r.mixTargetDelta(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:function(){var t;null===(t=e.onComplete)||void 0===t||t.call(e),r.completeAnimation()}})),r.resumingFrom&&(r.resumingFrom.currentAnimation=r.currentAnimation),r.pendingAnimation=void 0}))},e.prototype.completeAnimation=function(){var e;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(e=this.getStack())||void 0===e||e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")},e.prototype.finishAnimation=function(){var e;this.currentAnimation&&(null===(e=this.mixTargetDelta)||void 0===e||e.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()},e.prototype.applyTransformsToTarget=function(){var e=this.getLead(),t=e.targetWithTransforms,n=e.target,r=e.layout,i=e.latestValues;t&&n&&r&&(Ch(t,n),Dp(t,i),mp(this.projectionDeltaWithTransform,this.layoutCorrected,t,i))},e.prototype.registerSharedNode=function(e,t){var n,r,i;this.sharedNodes.has(e)||this.sharedNodes.set(e,new Bh),this.sharedNodes.get(e).add(t),t.promote({transition:null===(n=t.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(i=null===(r=t.options.initialPromotionConfig)||void 0===r?void 0:r.shouldPreserveFollowOpacity)||void 0===i?void 0:i.call(r,t)})},e.prototype.isLead=function(){var e=this.getStack();return!e||e.lead===this},e.prototype.getLead=function(){var e;return this.options.layoutId&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this},e.prototype.getPrevLead=function(){var e;return this.options.layoutId?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0},e.prototype.getStack=function(){var e=this.options.layoutId;if(e)return this.root.sharedNodes.get(e)},e.prototype.promote=function(e){var t=void 0===e?{}:e,n=t.needsReset,r=t.transition,i=t.preserveFollowOpacity,a=this.getStack();a&&a.promote(this,i),n&&(this.projectionDelta=void 0,this.needsReset=!0),r&&this.setOptions({transition:r})},e.prototype.relegate=function(){var e=this.getStack();return!!e&&e.relegate(this)},e.prototype.resetRotation=function(){var e=this.options.visualElement;if(e){for(var t=!1,n={},r=0;r<rl.length;r++){var i="rotate"+rl[r];e.getStaticValue(i)&&(t=!0,n[i]=e.getStaticValue(i),e.setStaticValue(i,0))}if(t){for(var i in null==e||e.syncRender(),n)e.setStaticValue(i,n[i]);e.scheduleRender()}}},e.prototype.getProjectionStyles=function(e){var t,n,r,i,a,o;void 0===e&&(e={});var s={};if(!this.instance||this.isSVG)return s;if(!this.isVisible)return{visibility:"hidden"};s.visibility="";var u=null===(t=this.options.visualElement)||void 0===t?void 0:t.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=ic(e.pointerEvents)||"",s.transform=u?u(this.latestValues,""):"none",s;var l=this.getLead();if(!this.projectionDelta||!this.layout||!l.target){var c={};return this.options.layoutId&&(c.opacity=null!==(n=this.latestValues.opacity)&&void 0!==n?n:1,c.pointerEvents=ic(e.pointerEvents)||""),this.hasProjected&&!Cp(this.latestValues)&&(c.transform=u?u({},""):"none",this.hasProjected=!1),c}var f=l.animationValues||l.latestValues;this.applyTransformsToTarget(),s.transform=Dh(this.projectionDeltaWithTransform,this.treeScale,f),u&&(s.transform=u(f,s.transform));var d=this.projectionDelta,p=d.x,h=d.y;for(var m in s.transformOrigin="".concat(100*p.origin,"% ").concat(100*h.origin,"% 0"),l.animationValues?s.opacity=l===this?null!==(i=null!==(r=f.opacity)&&void 0!==r?r:this.latestValues.opacity)&&void 0!==i?i:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:s.opacity=l===this?null!==(a=f.opacity)&&void 0!==a?a:"":null!==(o=f.opacityExit)&&void 0!==o?o:0,nl)if(void 0!==f[m]){var v=nl[m],y=v.correct,g=v.applyTo,b=y(f[m],l);if(g)for(var w=g.length,x=0;x<w;x++)s[g[x]]=b;else s[m]=b}return this.options.layoutId&&(s.pointerEvents=l===this?ic(e.pointerEvents)||"":"none"),s},e.prototype.clearSnapshot=function(){this.resumeFrom=this.snapshot=void 0},e.prototype.resetTree=function(){this.root.nodes.forEach((function(e){var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(qh),this.root.sharedNodes.clear()},e}()}function Vh(e){e.updateLayout()}function Hh(e){var t,n,r,i,a=null!==(n=null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)&&void 0!==n?n:e.snapshot;if(e.isLead()&&e.layout&&a&&e.hasListeners("didUpdate")){var o=e.layout,s=o.actual,u=o.measured;"size"===e.options.animationType?Ep((function(e){var t=a.isShared?a.measured[e]:a.layout[e],n=dp(t);t.min=s[e].min,t.max=t.min+n})):"position"===e.options.animationType&&Ep((function(e){var t=a.isShared?a.measured[e]:a.layout[e],n=dp(s[e]);t.max=t.min+n}));var l={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};mp(l,s,a.layout);var c={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};a.isShared?mp(c,e.applyTransform(u,!0),a.measured):mp(c,s,a.layout);var f=!Lh(l),d=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){var p=e.relativeParent,h=p.snapshot,m=p.layout;if(h&&m){var v={x:{min:0,max:0},y:{min:0,max:0}};gp(v,a.layout,h.layout);var y={x:{min:0,max:0},y:{min:0,max:0}};gp(y,s,m.actual),Mh(v,y)||(d=!0)}}e.notifyListeners("didUpdate",{layout:s,snapshot:a,delta:c,layoutDelta:l,hasLayoutChanged:f,hasRelativeTargetChanged:d})}else e.isLead()&&(null===(i=(r=e.options).onExitComplete)||void 0===i||i.call(r));e.options.transition=void 0}function Wh(e){e.clearSnapshot()}function qh(e){e.clearMeasurements()}function Gh(e){var t=e.options.visualElement;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function Zh(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function Yh(e){e.resolveTargetDelta()}function $h(e){e.calcProjection()}function Kh(e){e.resetRotation()}function Xh(e){e.removeLeadSnapshot()}function Qh(e,t,n){e.translate=ef(t.translate,0,n),e.scale=ef(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Jh(e,t,n,r){e.min=ef(t.min,n.min,r),e.max=ef(t.max,n.max,r)}function em(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}var tm={duration:.45,ease:[.4,0,.1,1]};function nm(e,t){for(var n=e.root,r=e.path.length-1;r>=0;r--)if(Boolean(e.path[r].instance)){n=e.path[r];break}var i=(n&&n!==e.root?n.instance:document).querySelector('[data-projection-id="'.concat(t,'"]'));i&&e.mount(i,!0)}function rm(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function im(e){rm(e.x),rm(e.y)}var am=zh({attachResizeListener:function(e,t){return fc(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),om={current:void 0},sm=zh({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!om.current){var e=new am(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),om.current=e}return om.current},resetTransform:function(e,t){e.style.transform=null!=t?t:"none"},checkIsScrollRoot:function(e){return Boolean("fixed"===window.getComputedStyle(e).position)}}),um=Ks(Ks(Ks(Ks({},ep),Vc),Hp),gh),lm=function(e){function t(t,n){return void 0===n&&(n={}),Ju(e(t,n))}if("undefined"==typeof Proxy)return t;var n=new Map;return new Proxy(t,{get:function(e,r){return n.has(r)||n.set(r,t(r)),n.get(r)}})}((function(e,t){return function(e,t,n,r,i){var a=t.forwardMotionProps,o=void 0!==a&&a,s=tl(e)?lc:cc;return Ks(Ks({},s),{preloadedFeatures:n,useRender:Zl(o),createVisualElement:r,projectionNodeConstructor:i,Component:e})}(e,t,um,fh,sm)})),cm={success:"tw-bg-green-300",info:"tw-bg-sky-300",warning:"tw-bg-amber-300",error:"tw-bg-red-300"},fm={success:"tw-bg-green-500",info:"tw-bg-sky-500",warning:"tw-bg-amber-500",error:"tw-bg-red-500"},dm={success:"😊",info:"🔔",warning:"😮",error:"😢"};function pm(e){var t,n=(0,a.useContext)(S).dispatch,r=l((0,a.useState)(!1),2),i=r[0],o=r[1],s=(0,a.useRef)(null);(0,a.useEffect)((function(){var t,r;return e.timeoutMs&&(t=setTimeout((function(){return n(U(e.id))}),300+e.timeoutMs),r=setTimeout((function(){return o(!0)}),300)),function(){clearTimeout(t),clearTimeout(r)}}),[n,e.id,e.timeoutMs]);var u=(0,a.useCallback)((function(){return i?"tw-w-0":"tw-w-full"}),[i]);return(0,E.jsxs)("div",{className:"tw-flex tw-flex-col tw-mr-0 md:tw-mr-4 tw-border-none tw-rounded\n tw-shadow-md tw-overflow-hidden tw-pointer-events-none "+[e.textColorClass||"text-black",e.backgroundColorClass||cm[e.type]].join(" "),children:[(0,E.jsxs)("div",{className:"tw-flex tw-gap-2 tw-p-3 tw-text-lg",children:[!e.hideIcon&&(0,E.jsx)("div",{className:"tw-flex tw-items-center tw-justify-center tw-border-0 tw-rounded-full tw-w-7 tw-h-7 "+fm[e.type],children:null!==(t=e.icon)&&void 0!==t?t:dm[e.type]}),(0,E.jsxs)("div",{className:"tw-flex tw-flex-col tw-text-left",children:[e.text&&(0,E.jsx)("div",{className:"tw-whitespace-nowrap tw-text-md tw-overflow-ellipsis",children:e.text}),e.detail&&(0,E.jsx)("div",{className:"tw-text-sm",children:e.detail}),e.jsx&&(0,E.jsx)("div",{children:e.jsx})]}),!e.hideDismissBtn&&!e.showSpinner&&(0,E.jsx)("div",{className:"tw-flex tw-flex-grow tw-justify-end tw-pointer-events-auto",onClick:function(){n(U(e.id))},children:(0,E.jsx)("div",{children:(0,E.jsx)(ks,{className:"tw-cursor-pointer hover:tw-scale-125 tw-transition-all",icon:Yr})})}),e.showSpinner&&(0,E.jsx)("div",{className:"tw-flex tw-flex-grow tw-justify-end",children:(0,E.jsx)("div",{children:(0,E.jsx)(ks,{icon:$r,className:"fa-spin"})})})]}),e.timeoutMs&&(0,E.jsx)("div",{children:(0,E.jsx)("div",{ref:s,className:"tw-h-1 tw-transition-all tw-ease-linear "+[u(),fm[e.type]].join(" "),style:{transitionDuration:"".concat(e.timeoutMs,"ms")}})})]})}function hm(){var e=(0,a.useContext)(S).state.toasts;return(0,E.jsx)("div",{className:"tw-flex tw-gap-2 tw-flex-col-reverse tw-items-end tw-fixed tw-bottom-0 tw-right-0 tw-mb-8 tw-mr-4 tw-z-50 tw-pointer-events-none",children:(0,E.jsx)(Nu,{children:e.map((function(e){return(0,E.jsx)(lm.div,{layout:!0,initial:{opacity:0,y:50,scale:.3},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,transition:{duration:.2}},children:(0,E.jsx)(pm,d({},e))},e.id)}))})})}var mm=function(e){var t=e.id,n=e.className,r=e.role,i=e.ariaHidden,o=e.ariaLabel,s=e.initialValue,u=e.label,c=e.title,f=e.placeholder,d=e.autoComplete,p=e.cols,h=e.rows,m=e.disabled,v=e.minLength,y=e.readOnly,g=e.resize,b=e.wrap,w=e.autoResize,x=e.onChange,k=e.onEnterKey,_=l(a.useState(s||""),2),S=_[0],O=_[1],A=a.useRef(null),C=a.useRef(0),T=function(){A.current&&(A.current.style.height="1px",A.current.style.height="".concat(A.current.scrollHeight,"px"))};return a.useEffect((function(){O(s),w&&A.current&&T()}),[s]),a.useEffect((function(){if(!w)return function(){};var e=new ResizeObserver((function(e){var t=e[0].contentRect.width;C.current!=t&&(requestAnimationFrame((function(){return T()})),C.current=t)}));return A.current&&e.observe(A.current),function(){e.disconnect()}}),[w]),(0,E.jsxs)("div",{className:ne("common-textarea-wrapper",m&&"disabled",g&&"resize-".concat(g),n),children:[u&&(0,E.jsx)("label",{className:"common-textarea-label",children:u}),(0,E.jsx)("div",{className:"common-textarea-group",children:(0,E.jsx)("textarea",{id:t,className:"common-textarea",title:c,role:r||"textbox",tabIndex:m?-1:0,"aria-label":o,"aria-hidden":i,placeholder:f,value:S||"",cols:p,rows:h,minLength:v,wrap:b,readOnly:!!y,ref:A,onChange:function(e){var t=e.target.value;y||S===t||O(t),x&&x(t),w&&A.current&&T()},onKeyDown:function(e){var t="number"==typeof e.which?e.which:e.keyCode;13!==t&&32!==t||k&&(e.preventDefault(),k(S))},autoComplete:d?"":"off",autoCorrect:d?"":"off",autoCapitalize:d?"":"off",spellCheck:d,disabled:m})})]})},vm=function(e){var t=e.id,n=e.className,r=e.ariaHidden,i=e.ariaLabel,a=e.role,o=e.isChecked,s=e.onChange,u=e.label;return(0,E.jsxs)("div",{className:ne("common-checkbox",n),children:[(0,E.jsx)("input",{id:t,tabIndex:0,type:"checkbox",checked:o,onChange:function(){s(!o)},onKeyDown:te,role:a,"aria-hidden":r,"aria-label":i}),u&&(0,E.jsx)("label",{htmlFor:t,children:u})]})},ym=function(e){var t=e.children,n=e.id,r=e.className,i=e.ariaLabel,a=e.ariaHidden,s=e.ariaDescribedBy,u=e.role,l=e.title,c=e.leftIcon,f=e.helpUrl,d=e.actions,p=e.onClose,h=e.parentElement,m=e.fullscreen,v=e.hideDismissButton,y=function(e){p&&p()},g=ne("common-modal-container",m&&"fullscreen",r);return o.createPortal((0,E.jsx)(qs,{className:g,onEscape:y,children:(0,E.jsxs)("div",{id:n,className:"common-modal",role:u||"dialog","aria-hidden":a,"aria-label":i,"aria-describedby":s,"aria-labelledby":"modal-title",children:[(0,E.jsxs)("div",{className:"common-modal-header",children:[m&&!v&&(0,E.jsx)("div",{className:"common-modal-back",children:(0,E.jsx)(ie,{className:"menu-button",onClick:y,title:lf("Go Back"),label:lf("Go Back"),leftIcon:"fas fa-arrow-left"})}),(0,E.jsxs)("div",{id:"modal-title",className:"common-modal-title",children:[c&&(0,E.jsx)("i",{className:c,"aria-hidden":!0}),l]}),m&&f&&(0,E.jsx)("div",{className:"common-modal-help",children:(0,E.jsx)(ie,{className:"menu-button",title:lf("Help on {0} dialog",l),href:e.helpUrl,onClick:function(){},rightIcon:"fas fa-question"})}),!m&&!v&&(0,E.jsx)("div",{className:"common-modal-close",children:(0,E.jsx)(ie,{className:"menu-button inverted",onClick:y,title:lf("Close"),rightIcon:"fas fa-times-circle"})})]}),(0,E.jsx)("div",{className:"common-modal-body",children:t}),(null==d?void 0:d.length)&&(0,E.jsx)("div",{className:"common-modal-footer",children:d.map((function(e,t){var n;return(0,E.jsx)(ie,{className:null!==(n=e.className)&&void 0!==n?n:"primary inverted",disabled:e.disabled,onClick:e.onClick,href:e.url,label:e.label,title:e.label,rightIcon:(e.xicon?"xicon ":"")+e.icon,leftIcon:e.leftIcon},t)}))})]})}),h||document.getElementById("root")||document.body)},gm=function(e){var t,n,r=e.onSignIn,i=e.onClose,o=e.appMessage,s=e.dialogMessages,u=e.hideDismissButton,c=s||{signInMessage:lf("Sign in to save your progress and access your work anytime, anywhere."),signUpMessage:lf("Join now to save your progress and access your work anytime, anywhere.")},f=c.signInMessage,d=c.signUpMessage,p=null!==(t=e.resolvePath)&&void 0!==t?t:function(e){return e},h=l(a.useState(!1),2),m=h[0],v=h[1],y=l(a.useState(null!==(n=e.mode)&&void 0!==n?n:"signin"),2),g=y[0],b=y[1],w=a.useMemo((function(){return"signin"===g?lf("Sign in"):lf("Sign up")}),[g]),x=a.useMemo((function(){return"signin"===g?f:d}),[g,f,d]),k=a.useMemo((function(){return"signin"===g?(0,E.jsxs)("div",{className:"switch",children:[(0,E.jsx)("span",{children:lf("Don't have an account?")}),(0,E.jsx)(ie,{className:"link-button",onClick:function(){return b("signup")},title:lf("Sign up"),label:lf("Sign up")})]}):(0,E.jsxs)("div",{className:"switch",children:[(0,E.jsx)("span",{children:lf("Have an account?")}),(0,E.jsx)(ie,{className:"link-button",onClick:function(){return b("signin")},title:lf("Sign in"),label:lf("Sign in")})]})}),[g]);return(0,E.jsx)(ym,{title:w,onClose:i,hideDismissButton:u,children:(0,E.jsxs)("div",{className:"signin-form",children:[(0,E.jsxs)("div",{className:"signin-header",children:[o||void 0," ",x]}),(0,E.jsx)("div",{className:"signin-body",children:(0,E.jsxs)("div",{className:"providers",children:[pxt.auth.identityProviders().map((function(e,t){var n="signin"===g?lf("Continue with {0}",e.name):lf("Sign up with {0}",e.name);return(0,E.jsx)(ie,{className:"teal inverted provider",onClick:function(){return r(e,m)},title:n,ariaLabel:n,label:(0,E.jsxs)("div",{className:"label",children:[(0,E.jsx)("div",{children:(0,E.jsx)("img",{className:"logo",src:p(e.icon)})}),(0,E.jsx)("div",{className:"title",children:n})]})},t)})),(0,E.jsx)("div",{className:"rememberme",children:(0,E.jsx)(vm,{id:"rememberme",label:lf("Remember me"),isChecked:m,onChange:v})})]})}),(0,E.jsxs)("div",{className:"signin-footer",children:[k,(0,E.jsx)("div",{className:"learn",children:(0,E.jsx)(se,{href:"/identity/sign-in",target:"_blank",children:lf("Learn more")})})]})]})})};function bm(e){var t=e.title,n=e.confirmLabel,r=e.cancelLabel,i=e.children,a=e.onConfirm,o=e.onCancel,s=[{label:null!=r?r:lf("Cancel"),className:"primary inverted",onClick:o},{label:null!=n?n:lf("Confirm"),className:"primary",onClick:a}];return(0,E.jsx)(ym,{title:t,actions:s,onClose:o,children:i})}function wm(){var e=(0,a.useContext)(S).state,t=e.deepLinks,n=e.clientRole,r=e.gameState,i=(null!=r?r:{}).gameId,o=l((0,a.useState)(""),2),s=o[0],u=o[1];switch(e.modal){case"sign-in":return(0,E.jsx)(gm,{onClose:function(){return _({type:"CLEAR_MODAL"})},onSignIn:function(){var e=J(X().mark((function e(n,r){var i;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i={},null!=t&&t.shareCode&&(i.host=t.shareCode),null!=t&&t.joinCode&&(i.join=t.joinCode),e.next=5,Xn(n.id,r,{params:i});case 5:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),dialogMessages:e.modalOpts.dialogMessages,hideDismissButton:!0});case"report-abuse":return(0,E.jsx)(bm,{title:lf("Report Abuse"),confirmLabel:lf("Submit Report"),onConfirm:J(X().mark((function e(){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return _({type:"CLEAR_MODAL"}),e.next=3,Tr(i,s);case 3:case"end":return e.stop()}}),e)}))),onCancel:function(){return _({type:"CLEAR_MODAL"})},children:(0,E.jsxs)("div",{className:"tw-flex tw-flex-col tw-gap-4",children:[(0,E.jsx)("div",{children:lf("Why do you find it offensive?")}),(0,E.jsx)("div",{children:(0,E.jsx)(mm,{onChange:u})})]})});case"kick-player":return(0,E.jsx)(bm,{title:lf("Kick Player"),onConfirm:function(){_({type:"CLEAR_MODAL"}),function(e){try{pxt.tickEvent("mp.kickplayer"),function(e){var t;null===(t=un)||void 0===t||t.kickPlayer(e)}(e),_(D({type:"info",text:lf("Player kicked"),timeoutMs:5e3}))}catch(e){}}(e.modalOpts.clientId)},onCancel:function(){return _({type:"CLEAR_MODAL"})},children:(0,E.jsx)("div",{children:lf("Kick this player? They will be blocked from rejoining the game.")})});case"leave-game":return"host"===n?(0,E.jsx)(bm,{title:lf("End the Game"),onConfirm:J(X().mark((function e(){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return _({type:"CLEAR_MODAL"}),e.next=3,Zn("ended");case 3:case"end":return e.stop()}}),e)}))),onCancel:function(){return _({type:"CLEAR_MODAL"})},children:(0,E.jsx)("div",{children:lf("End the game? All players will be disconnected.")})}):(0,E.jsx)(bm,{title:lf("Leave Game"),onConfirm:J(X().mark((function e(){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return _({type:"CLEAR_MODAL"}),e.next=3,Zn("left");case 3:case"end":return e.stop()}}),e)}))),onCancel:function(){return _({type:"CLEAR_MODAL"})},children:(0,E.jsx)("div",{children:lf("Leave the game?")})});default:return null}}function xm(){var e=(0,a.useContext)(S).state,t=e.gamePaused,n=e.clientRole,r=function(){var e=J(X().mark((function e(){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Sr();case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,E.jsxs)(E.Fragment,{children:[t&&"host"===n&&(0,E.jsxs)("div",{className:"tw-fixed tw-flex tw-flex-col tw-gap-4 tw-z-40 tw-p-5 tw-bg-white tw-rounded-lg tw-drop-shadow-2xl tw-border tw-top-[50%] tw-left-[50%] tw-translate-x-[-50%] tw-translate-y-[-50%]",children:[(0,E.jsx)("div",{className:"tw-text-left tw-font-bold tw-text-lg",children:lf("Game Paused")}),(0,E.jsx)("div",{className:"tw-text-left",children:lf("The game is paused. Press the resume button to continue.")}),(0,E.jsx)("div",{className:"tw-text-right",children:(0,E.jsx)(ie,{title:lf("Resume"),label:lf("Resume"),className:"primary",onClick:r})})]}),t&&"host"!==n&&(0,E.jsxs)("div",{className:"tw-fixed tw-flex tw-flex-col tw-gap-4 tw-z-40 tw-p-5 tw-bg-white tw-rounded-lg tw-drop-shadow-2xl tw-border tw-top-[50%] tw-left-[50%] tw-translate-x-[-50%] tw-translate-y-[-50%]",children:[(0,E.jsx)("div",{className:"tw-text-left tw-font-bold tw-text-lg",children:lf("Game Paused")}),(0,E.jsx)("div",{className:"tw-text-left",children:lf("The game is paused. Please wait for the host to resume the game.")})]})]})}var km=function(){var e=(0,a.useContext)(S),t=e.state,n=e.dispatch,r=t.authStatus,i=t.deepLinks,o=t.targetConfig,s=i.shareCode,u=i.joinCode,c=l((0,a.useState)(!1),2),f=c[0],d=c[1];(0,a.useEffect)((function(){o||(pxt.BrowserUtils.isLocalHostDev()?fetch("/blb/targetconfig.json",{method:"GET"}).then((function(e){return e.json()})):pxt.targetConfigAsync()).then((function(e){return e&&n((t=e,{type:"SET_TARGET_CONFIG",targetConfig:JSON.parse(JSON.stringify(t))}));var t}))})),function(e){(0,a.useEffect)((function(){var t=function(){e("visible"===document.visibilityState)};return document.addEventListener("visibilitychange",t),function(){document.removeEventListener("visibilitychange",t)}}),[])}(Ar),(0,a.useEffect)((function(){(function(){return xt.apply(this,arguments)})().then((function(){return d(!0)})).catch((function(){return d(!0)}))}),[d]);var p=(0,a.useCallback)((function(){var e,t,r=void 0,i=null!==(e=(r="?"===window.location.hash[1]?new URLSearchParams(window.location.hash.substr(1)):new URLSearchParams(window.location.search)).get("host"))&&void 0!==e?e:void 0,a=null!==(t=r.get("join"))&&void 0!==t?t:void 0;i=It(i),a=Rt(a),n(W(i,a))}),[n]);return(0,a.useEffect)((function(){f&&p()}),[f,p]),(0,a.useEffect)((function(){f&&(s||u)&&"signed-in"===r&&(s?zn(s).then((function(){})).catch((function(){})):u&&Hn(u).then((function(){})).catch((function(){})),n(W(void 0,void 0)))}),[n,r,s,u,f]),(0,E.jsxs)("div",{className:"".concat(pxt.appTarget.id," tw-flex tw-flex-col"),children:[!f&&(0,E.jsx)(A,{}),f&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(Zs,{}),"signed-out"===r&&(0,E.jsx)($,{}),"signed-in"===r&&(0,E.jsx)(Hs,{})]}),(0,E.jsx)(wm,{}),(0,E.jsx)(xm,{}),(0,E.jsx)(hm,{})]})},_m=n(8466);window.addEventListener("DOMContentLoaded",(function(){var e=window.pxtTargetBundle;if(pxt.options.debug=/dbg=1/i.test(window.location.href),pxt.options.debug&&(pxt.debug=_m.debug),pxt.setupWebConfig(window.pxtConfig||pxt.webConfig),pxt.setAppTarget(e),pxt.BrowserUtils.isLocalHostDev()){for(var t=pxt.webConfig,n=0,r=Object.keys(t);n<r.length;n++){var i,s,u=r[n];null!==(i=t[u])&&void 0!==i&&i.startsWith("/")&&-1==(null===(s=t[u])||void 0===s?void 0:s.indexOf("worker"))&&(t[u]="http://localhost:3232".concat(t[u]))}pxt.webConfig.workerjs="/blb".concat(pxt.webConfig.workerjs)}pxt.Cloud.apiRoot="https://www.makecode.com/api/",function(){pxt.analytics.enable(pxt.Util.userLanguage());var e={};if("undefined"!=typeof window){var t=window.screen;e["screen.width"]=t.width,e["screen.height"]=t.height,e["screen.availwidth"]=t.availWidth,e["screen.availheight"]=t.availHeight,e["screen.innerWidth"]=window.innerWidth,e["screen.innerHeight"]=window.innerHeight,e["screen.devicepixelratio"]=pxt.BrowserUtils.devicePixelRatio();var n=document.firstElementChild;n&&(e["screen.clientWidth"]=n.clientWidth,e["screen.clientHeight"]=n.clientHeight)}pxt.tickEvent("mp.loaded",e)}(),pxt.worker.getWorker(pxt.webConfig.workerjs),o.render((0,E.jsx)(a.StrictMode,{children:(0,E.jsx)(O,{children:(0,E.jsx)(km,{})})}),document.getElementById("root"))}))}()}();