sigurd-startup 2.2.2 → 2.2.3
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.
- package/dist/sigurd-startup.es.js +30870 -5006
- package/dist/sigurd-startup.es.js.map +1 -1
- package/dist/sigurd-startup.umd.js +301 -10
- package/dist/sigurd-startup.umd.js.map +1 -1
- package/package.json +46 -7
|
@@ -1,4 +1,42 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(sa,di){typeof exports=="object"&&typeof module<"u"?di(exports):typeof define=="function"&&define.amd?define(["exports"],di):(sa=typeof globalThis<"u"?globalThis:sa||self,di(sa.SigurdStartup={}))})(this,function(sa){"use strict";var BP=Object.defineProperty;var HP=(sa,di,cf)=>di in sa?BP(sa,di,{enumerable:!0,configurable:!0,writable:!0,value:cf}):sa[di]=cf;var be=(sa,di,cf)=>HP(sa,typeof di!="symbol"?di+"":di,cf);function di(c,a){for(var l=0;l<a.length;l++){const f=a[l];if(typeof f!="string"&&!Array.isArray(f)){for(const h in f)if(h!=="default"&&!(h in c)){const y=Object.getOwnPropertyDescriptor(f,h);y&&Object.defineProperty(c,h,y.get?y:{enumerable:!0,get:()=>f[h]})}}}return Object.freeze(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}function cf(c){return c&&c.__esModule&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c}var Xy={exports:{}},up={},Nv={exports:{}},Ht={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var Gb;function CR(){if(Gb)return Ht;Gb=1;var c=Symbol.for("react.element"),a=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),y=Symbol.for("react.provider"),v=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),R=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),_=Symbol.iterator;function k(V){return V===null||typeof V!="object"?null:(V=_&&V[_]||V["@@iterator"],typeof V=="function"?V:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},z=Object.assign,G={};function J(V,oe,Be){this.props=V,this.context=oe,this.refs=G,this.updater=Be||N}J.prototype.isReactComponent={},J.prototype.setState=function(V,oe){if(typeof V!="object"&&typeof V!="function"&&V!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,V,oe,"setState")},J.prototype.forceUpdate=function(V){this.updater.enqueueForceUpdate(this,V,"forceUpdate")};function de(){}de.prototype=J.prototype;function ue(V,oe,Be){this.props=V,this.context=oe,this.refs=G,this.updater=Be||N}var ce=ue.prototype=new de;ce.constructor=ue,z(ce,J.prototype),ce.isPureReactComponent=!0;var fe=Array.isArray,le=Object.prototype.hasOwnProperty,Re={current:null},ve={key:!0,ref:!0,__self:!0,__source:!0};function xe(V,oe,Be){var He,yt={},xt=null,Ve=null;if(oe!=null)for(He in oe.ref!==void 0&&(Ve=oe.ref),oe.key!==void 0&&(xt=""+oe.key),oe)le.call(oe,He)&&!ve.hasOwnProperty(He)&&(yt[He]=oe[He]);var St=arguments.length-2;if(St===1)yt.children=Be;else if(1<St){for(var wt=Array(St),$t=0;$t<St;$t++)wt[$t]=arguments[$t+2];yt.children=wt}if(V&&V.defaultProps)for(He in St=V.defaultProps,St)yt[He]===void 0&&(yt[He]=St[He]);return{$$typeof:c,type:V,key:xt,ref:Ve,props:yt,_owner:Re.current}}function tt(V,oe){return{$$typeof:c,type:V.type,key:oe,ref:V.ref,props:V.props,_owner:V._owner}}function dt(V){return typeof V=="object"&&V!==null&&V.$$typeof===c}function Rt(V){var oe={"=":"=0",":":"=2"};return"$"+V.replace(/[=:]/g,function(Be){return oe[Be]})}var lt=/\/+/g;function Ae(V,oe){return typeof V=="object"&&V!==null&&V.key!=null?Rt(""+V.key):oe.toString(36)}function rt(V,oe,Be,He,yt){var xt=typeof V;(xt==="undefined"||xt==="boolean")&&(V=null);var Ve=!1;if(V===null)Ve=!0;else switch(xt){case"string":case"number":Ve=!0;break;case"object":switch(V.$$typeof){case c:case a:Ve=!0}}if(Ve)return Ve=V,yt=yt(Ve),V=He===""?"."+Ae(Ve,0):He,fe(yt)?(Be="",V!=null&&(Be=V.replace(lt,"$&/")+"/"),rt(yt,oe,Be,"",function($t){return $t})):yt!=null&&(dt(yt)&&(yt=tt(yt,Be+(!yt.key||Ve&&Ve.key===yt.key?"":(""+yt.key).replace(lt,"$&/")+"/")+V)),oe.push(yt)),1;if(Ve=0,He=He===""?".":He+":",fe(V))for(var St=0;St<V.length;St++){xt=V[St];var wt=He+Ae(xt,St);Ve+=rt(xt,oe,Be,wt,yt)}else if(wt=k(V),typeof wt=="function")for(V=wt.call(V),St=0;!(xt=V.next()).done;)xt=xt.value,wt=He+Ae(xt,St++),Ve+=rt(xt,oe,Be,wt,yt);else if(xt==="object")throw oe=String(V),Error("Objects are not valid as a React child (found: "+(oe==="[object Object]"?"object with keys {"+Object.keys(V).join(", ")+"}":oe)+"). If you meant to render a collection of children, use an array instead.");return Ve}function st(V,oe,Be){if(V==null)return V;var He=[],yt=0;return rt(V,He,"","",function(xt){return oe.call(Be,xt,yt++)}),He}function qe(V){if(V._status===-1){var oe=V._result;oe=oe(),oe.then(function(Be){(V._status===0||V._status===-1)&&(V._status=1,V._result=Be)},function(Be){(V._status===0||V._status===-1)&&(V._status=2,V._result=Be)}),V._status===-1&&(V._status=0,V._result=oe)}if(V._status===1)return V._result.default;throw V._result}var Te={current:null},$={transition:null},_e={ReactCurrentDispatcher:Te,ReactCurrentBatchConfig:$,ReactCurrentOwner:Re};function Ce(){throw Error("act(...) is not supported in production builds of React.")}return Ht.Children={map:st,forEach:function(V,oe,Be){st(V,function(){oe.apply(this,arguments)},Be)},count:function(V){var oe=0;return st(V,function(){oe++}),oe},toArray:function(V){return st(V,function(oe){return oe})||[]},only:function(V){if(!dt(V))throw Error("React.Children.only expected to receive a single React element child.");return V}},Ht.Component=J,Ht.Fragment=l,Ht.Profiler=h,Ht.PureComponent=ue,Ht.StrictMode=f,Ht.Suspense=x,Ht.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=_e,Ht.act=Ce,Ht.cloneElement=function(V,oe,Be){if(V==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+V+".");var He=z({},V.props),yt=V.key,xt=V.ref,Ve=V._owner;if(oe!=null){if(oe.ref!==void 0&&(xt=oe.ref,Ve=Re.current),oe.key!==void 0&&(yt=""+oe.key),V.type&&V.type.defaultProps)var St=V.type.defaultProps;for(wt in oe)le.call(oe,wt)&&!ve.hasOwnProperty(wt)&&(He[wt]=oe[wt]===void 0&&St!==void 0?St[wt]:oe[wt])}var wt=arguments.length-2;if(wt===1)He.children=Be;else if(1<wt){St=Array(wt);for(var $t=0;$t<wt;$t++)St[$t]=arguments[$t+2];He.children=St}return{$$typeof:c,type:V.type,key:yt,ref:xt,props:He,_owner:Ve}},Ht.createContext=function(V){return V={$$typeof:v,_currentValue:V,_currentValue2:V,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},V.Provider={$$typeof:y,_context:V},V.Consumer=V},Ht.createElement=xe,Ht.createFactory=function(V){var oe=xe.bind(null,V);return oe.type=V,oe},Ht.createRef=function(){return{current:null}},Ht.forwardRef=function(V){return{$$typeof:C,render:V}},Ht.isValidElement=dt,Ht.lazy=function(V){return{$$typeof:A,_payload:{_status:-1,_result:V},_init:qe}},Ht.memo=function(V,oe){return{$$typeof:R,type:V,compare:oe===void 0?null:oe}},Ht.startTransition=function(V){var oe=$.transition;$.transition={};try{V()}finally{$.transition=oe}},Ht.unstable_act=Ce,Ht.useCallback=function(V,oe){return Te.current.useCallback(V,oe)},Ht.useContext=function(V){return Te.current.useContext(V)},Ht.useDebugValue=function(){},Ht.useDeferredValue=function(V){return Te.current.useDeferredValue(V)},Ht.useEffect=function(V,oe){return Te.current.useEffect(V,oe)},Ht.useId=function(){return Te.current.useId()},Ht.useImperativeHandle=function(V,oe,Be){return Te.current.useImperativeHandle(V,oe,Be)},Ht.useInsertionEffect=function(V,oe){return Te.current.useInsertionEffect(V,oe)},Ht.useLayoutEffect=function(V,oe){return Te.current.useLayoutEffect(V,oe)},Ht.useMemo=function(V,oe){return Te.current.useMemo(V,oe)},Ht.useReducer=function(V,oe,Be){return Te.current.useReducer(V,oe,Be)},Ht.useRef=function(V){return Te.current.useRef(V)},Ht.useState=function(V){return Te.current.useState(V)},Ht.useSyncExternalStore=function(V,oe,Be){return Te.current.useSyncExternalStore(V,oe,Be)},Ht.useTransition=function(){return Te.current.useTransition()},Ht.version="18.3.1",Ht}var cp={exports:{}};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react.development.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/cp.exports;var Yb;function ER(){return Yb||(Yb=1,function(c,a){process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var l="18.3.1",f=Symbol.for("react.element"),h=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),x=Symbol.for("react.provider"),R=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),G=Symbol.for("react.offscreen"),J=Symbol.iterator,de="@@iterator";function ue(E){if(E===null||typeof E!="object")return null;var L=J&&E[J]||E[de];return typeof L=="function"?L:null}var ce={current:null},fe={transition:null},le={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},Re={current:null},ve={},xe=null;function tt(E){xe=E}ve.setExtraStackFrame=function(E){xe=E},ve.getCurrentStack=null,ve.getStackAddendum=function(){var E="";xe&&(E+=xe);var L=ve.getCurrentStack;return L&&(E+=L()||""),E};var dt=!1,Rt=!1,lt=!1,Ae=!1,rt=!1,st={ReactCurrentDispatcher:ce,ReactCurrentBatchConfig:fe,ReactCurrentOwner:Re};st.ReactDebugCurrentFrame=ve,st.ReactCurrentActQueue=le;function qe(E){{for(var L=arguments.length,Z=new Array(L>1?L-1:0),re=1;re<L;re++)Z[re-1]=arguments[re];$("warn",E,Z)}}function Te(E){{for(var L=arguments.length,Z=new Array(L>1?L-1:0),re=1;re<L;re++)Z[re-1]=arguments[re];$("error",E,Z)}}function $(E,L,Z){{var re=st.ReactDebugCurrentFrame,Ee=re.getStackAddendum();Ee!==""&&(L+="%s",Z=Z.concat([Ee]));var ut=Z.map(function(Oe){return String(Oe)});ut.unshift("Warning: "+L),Function.prototype.apply.call(console[E],console,ut)}}var _e={};function Ce(E,L){{var Z=E.constructor,re=Z&&(Z.displayName||Z.name)||"ReactClass",Ee=re+"."+L;if(_e[Ee])return;Te("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",L,re),_e[Ee]=!0}}var V={isMounted:function(E){return!1},enqueueForceUpdate:function(E,L,Z){Ce(E,"forceUpdate")},enqueueReplaceState:function(E,L,Z,re){Ce(E,"replaceState")},enqueueSetState:function(E,L,Z,re){Ce(E,"setState")}},oe=Object.assign,Be={};Object.freeze(Be);function He(E,L,Z){this.props=E,this.context=L,this.refs=Be,this.updater=Z||V}He.prototype.isReactComponent={},He.prototype.setState=function(E,L){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,L,"setState")},He.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};{var yt={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},xt=function(E,L){Object.defineProperty(He.prototype,E,{get:function(){qe("%s(...) is deprecated in plain JavaScript React classes. %s",L[0],L[1])}})};for(var Ve in yt)yt.hasOwnProperty(Ve)&&xt(Ve,yt[Ve])}function St(){}St.prototype=He.prototype;function wt(E,L,Z){this.props=E,this.context=L,this.refs=Be,this.updater=Z||V}var $t=wt.prototype=new St;$t.constructor=wt,oe($t,He.prototype),$t.isPureReactComponent=!0;function gn(){var E={current:null};return Object.seal(E),E}var Un=Array.isArray;function yn(E){return Un(E)}function wr(E){{var L=typeof Symbol=="function"&&Symbol.toStringTag,Z=L&&E[Symbol.toStringTag]||E.constructor.name||"Object";return Z}}function ar(E){try{return ir(E),!1}catch{return!0}}function ir(E){return""+E}function fa(E){if(ar(E))return Te("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",wr(E)),ir(E)}function zi(E,L,Z){var re=E.displayName;if(re)return re;var Ee=L.displayName||L.name||"";return Ee!==""?Z+"("+Ee+")":Z}function ka(E){return E.displayName||"Context"}function dr(E){if(E==null)return null;if(typeof E.tag=="number"&&Te("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof E=="function")return E.displayName||E.name||null;if(typeof E=="string")return E;switch(E){case y:return"Fragment";case h:return"Portal";case C:return"Profiler";case v:return"StrictMode";case _:return"Suspense";case k:return"SuspenseList"}if(typeof E=="object")switch(E.$$typeof){case R:var L=E;return ka(L)+".Consumer";case x:var Z=E;return ka(Z._context)+".Provider";case A:return zi(E,E.render,"ForwardRef");case N:var re=E.displayName||null;return re!==null?re:dr(E.type)||"Memo";case z:{var Ee=E,ut=Ee._payload,Oe=Ee._init;try{return dr(Oe(ut))}catch{return null}}}return null}var Fn=Object.prototype.hasOwnProperty,or={key:!0,ref:!0,__self:!0,__source:!0},Ur,yi,Wn;Wn={};function zr(E){if(Fn.call(E,"ref")){var L=Object.getOwnPropertyDescriptor(E,"ref").get;if(L&&L.isReactWarning)return!1}return E.ref!==void 0}function Aa(E){if(Fn.call(E,"key")){var L=Object.getOwnPropertyDescriptor(E,"key").get;if(L&&L.isReactWarning)return!1}return E.key!==void 0}function Si(E,L){var Z=function(){Ur||(Ur=!0,Te("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",L))};Z.isReactWarning=!0,Object.defineProperty(E,"key",{get:Z,configurable:!0})}function Fi(E,L){var Z=function(){yi||(yi=!0,Te("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",L))};Z.isReactWarning=!0,Object.defineProperty(E,"ref",{get:Z,configurable:!0})}function Me(E){if(typeof E.ref=="string"&&Re.current&&E.__self&&Re.current.stateNode!==E.__self){var L=dr(Re.current.type);Wn[L]||(Te('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',L,E.ref),Wn[L]=!0)}}var Je=function(E,L,Z,re,Ee,ut,Oe){var pt={$$typeof:f,type:E,key:L,ref:Z,props:Oe,_owner:ut};return pt._store={},Object.defineProperty(pt._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(pt,"_self",{configurable:!1,enumerable:!1,writable:!1,value:re}),Object.defineProperty(pt,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Ee}),Object.freeze&&(Object.freeze(pt.props),Object.freeze(pt)),pt};function Ot(E,L,Z){var re,Ee={},ut=null,Oe=null,pt=null,zt=null;if(L!=null){zr(L)&&(Oe=L.ref,Me(L)),Aa(L)&&(fa(L.key),ut=""+L.key),pt=L.__self===void 0?null:L.__self,zt=L.__source===void 0?null:L.__source;for(re in L)Fn.call(L,re)&&!or.hasOwnProperty(re)&&(Ee[re]=L[re])}var Qt=arguments.length-2;if(Qt===1)Ee.children=Z;else if(Qt>1){for(var xn=Array(Qt),fn=0;fn<Qt;fn++)xn[fn]=arguments[fn+2];Object.freeze&&Object.freeze(xn),Ee.children=xn}if(E&&E.defaultProps){var Nt=E.defaultProps;for(re in Nt)Ee[re]===void 0&&(Ee[re]=Nt[re])}if(ut||Oe){var dn=typeof E=="function"?E.displayName||E.name||"Unknown":E;ut&&Si(Ee,dn),Oe&&Fi(Ee,dn)}return Je(E,ut,Oe,pt,zt,Re.current,Ee)}function an(E,L){var Z=Je(E.type,L,E.ref,E._self,E._source,E._owner,E.props);return Z}function Sn(E,L,Z){if(E==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+E+".");var re,Ee=oe({},E.props),ut=E.key,Oe=E.ref,pt=E._self,zt=E._source,Qt=E._owner;if(L!=null){zr(L)&&(Oe=L.ref,Qt=Re.current),Aa(L)&&(fa(L.key),ut=""+L.key);var xn;E.type&&E.type.defaultProps&&(xn=E.type.defaultProps);for(re in L)Fn.call(L,re)&&!or.hasOwnProperty(re)&&(L[re]===void 0&&xn!==void 0?Ee[re]=xn[re]:Ee[re]=L[re])}var fn=arguments.length-2;if(fn===1)Ee.children=Z;else if(fn>1){for(var Nt=Array(fn),dn=0;dn<fn;dn++)Nt[dn]=arguments[dn+2];Ee.children=Nt}return Je(E.type,ut,Oe,pt,zt,Qt,Ee)}function On(E){return typeof E=="object"&&E!==null&&E.$$typeof===f}var En=".",pr=":";function wn(E){var L=/[=:]/g,Z={"=":"=0",":":"=2"},re=E.replace(L,function(Ee){return Z[Ee]});return"$"+re}var sn=!1,un=/\/+/g;function Oa(E){return E.replace(un,"$&/")}function Fr(E,L){return typeof E=="object"&&E!==null&&E.key!=null?(fa(E.key),wn(""+E.key)):L.toString(36)}function Wa(E,L,Z,re,Ee){var ut=typeof E;(ut==="undefined"||ut==="boolean")&&(E=null);var Oe=!1;if(E===null)Oe=!0;else switch(ut){case"string":case"number":Oe=!0;break;case"object":switch(E.$$typeof){case f:case h:Oe=!0}}if(Oe){var pt=E,zt=Ee(pt),Qt=re===""?En+Fr(pt,0):re;if(yn(zt)){var xn="";Qt!=null&&(xn=Oa(Qt)+"/"),Wa(zt,L,xn,"",function(Ap){return Ap})}else zt!=null&&(On(zt)&&(zt.key&&(!pt||pt.key!==zt.key)&&fa(zt.key),zt=an(zt,Z+(zt.key&&(!pt||pt.key!==zt.key)?Oa(""+zt.key)+"/":"")+Qt)),L.push(zt));return 1}var fn,Nt,dn=0,Nn=re===""?En:re+pr;if(yn(E))for(var il=0;il<E.length;il++)fn=E[il],Nt=Nn+Fr(fn,il),dn+=Wa(fn,L,Z,Nt,Ee);else{var Zu=ue(E);if(typeof Zu=="function"){var So=E;Zu===So.entries&&(sn||qe("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),sn=!0);for(var Ju=Zu.call(So),Kl,kp=0;!(Kl=Ju.next()).done;)fn=Kl.value,Nt=Nn+Fr(fn,kp++),dn+=Wa(fn,L,Z,Nt,Ee)}else if(ut==="object"){var Rf=String(E);throw new Error("Objects are not valid as a React child (found: "+(Rf==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":Rf)+"). If you meant to render a collection of children, use an array instead.")}}return dn}function mo(E,L,Z){if(E==null)return E;var re=[],Ee=0;return Wa(E,re,"","",function(ut){return L.call(Z,ut,Ee++)}),re}function jl(E){var L=0;return mo(E,function(){L++}),L}function Bl(E,L,Z){mo(E,function(){L.apply(this,arguments)},Z)}function Qo(E){return mo(E,function(L){return L})||[]}function qo(E){if(!On(E))throw new Error("React.Children.only expected to receive a single React element child.");return E}function Hl(E){var L={$$typeof:R,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};L.Provider={$$typeof:x,_context:L};var Z=!1,re=!1,Ee=!1;{var ut={$$typeof:R,_context:L};Object.defineProperties(ut,{Provider:{get:function(){return re||(re=!0,Te("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),L.Provider},set:function(Oe){L.Provider=Oe}},_currentValue:{get:function(){return L._currentValue},set:function(Oe){L._currentValue=Oe}},_currentValue2:{get:function(){return L._currentValue2},set:function(Oe){L._currentValue2=Oe}},_threadCount:{get:function(){return L._threadCount},set:function(Oe){L._threadCount=Oe}},Consumer:{get:function(){return Z||(Z=!0,Te("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),L.Consumer}},displayName:{get:function(){return L.displayName},set:function(Oe){Ee||(qe("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",Oe),Ee=!0)}}}),L.Consumer=ut}return L._currentRenderer=null,L._currentRenderer2=null,L}var $r=-1,Gr=0,br=1,ji=2;function wi(E){if(E._status===$r){var L=E._result,Z=L();if(Z.then(function(ut){if(E._status===Gr||E._status===$r){var Oe=E;Oe._status=br,Oe._result=ut}},function(ut){if(E._status===Gr||E._status===$r){var Oe=E;Oe._status=ji,Oe._result=ut}}),E._status===$r){var re=E;re._status=Gr,re._result=Z}}if(E._status===br){var Ee=E._result;return Ee===void 0&&Te(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
18
|
+
|
|
19
|
+
Your code should look like:
|
|
20
|
+
const MyComponent = lazy(() => import('./MyComponent'))
|
|
21
|
+
|
|
22
|
+
Did you accidentally put curly braces around the import?`,Ee),"default"in Ee||Te(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
23
|
+
|
|
24
|
+
Your code should look like:
|
|
25
|
+
const MyComponent = lazy(() => import('./MyComponent'))`,Ee),Ee.default}else throw E._result}function Bi(E){var L={_status:$r,_result:E},Z={$$typeof:z,_payload:L,_init:wi};{var re,Ee;Object.defineProperties(Z,{defaultProps:{configurable:!0,get:function(){return re},set:function(ut){Te("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),re=ut,Object.defineProperty(Z,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return Ee},set:function(ut){Te("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),Ee=ut,Object.defineProperty(Z,"propTypes",{enumerable:!0})}}})}return Z}function Hi(E){E!=null&&E.$$typeof===N?Te("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof E!="function"?Te("forwardRef requires a render function but was given %s.",E===null?"null":typeof E):E.length!==0&&E.length!==2&&Te("forwardRef render functions accept exactly two parameters: props and ref. %s",E.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),E!=null&&(E.defaultProps!=null||E.propTypes!=null)&&Te("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var L={$$typeof:A,render:E};{var Z;Object.defineProperty(L,"displayName",{enumerable:!1,configurable:!0,get:function(){return Z},set:function(re){Z=re,!E.name&&!E.displayName&&(E.displayName=re)}})}return L}var P;P=Symbol.for("react.module.reference");function pe(E){return!!(typeof E=="string"||typeof E=="function"||E===y||E===C||rt||E===v||E===_||E===k||Ae||E===G||dt||Rt||lt||typeof E=="object"&&E!==null&&(E.$$typeof===z||E.$$typeof===N||E.$$typeof===x||E.$$typeof===R||E.$$typeof===A||E.$$typeof===P||E.getModuleId!==void 0))}function Ne(E,L){pe(E)||Te("memo: The first argument must be a component. Instead received: %s",E===null?"null":typeof E);var Z={$$typeof:N,type:E,compare:L===void 0?null:L};{var re;Object.defineProperty(Z,"displayName",{enumerable:!1,configurable:!0,get:function(){return re},set:function(Ee){re=Ee,!E.name&&!E.displayName&&(E.displayName=Ee)}})}return Z}function $e(){var E=ce.current;return E===null&&Te(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
26
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
27
|
+
2. You might be breaking the Rules of Hooks
|
|
28
|
+
3. You might have more than one copy of React in the same app
|
|
29
|
+
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),E}function Mt(E){var L=$e();if(E._context!==void 0){var Z=E._context;Z.Consumer===E?Te("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):Z.Provider===E&&Te("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return L.useContext(E)}function Ct(E){var L=$e();return L.useState(E)}function Ut(E,L,Z){var re=$e();return re.useReducer(E,L,Z)}function Dt(E){var L=$e();return L.useRef(E)}function jn(E,L){var Z=$e();return Z.useEffect(E,L)}function bn(E,L){var Z=$e();return Z.useInsertionEffect(E,L)}function Tn(E,L){var Z=$e();return Z.useLayoutEffect(E,L)}function xr(E,L){var Z=$e();return Z.useCallback(E,L)}function bi(E,L){var Z=$e();return Z.useMemo(E,L)}function xi(E,L,Z){var re=$e();return re.useImperativeHandle(E,L,Z)}function _t(E,L){{var Z=$e();return Z.useDebugValue(E,L)}}function At(){var E=$e();return E.useTransition()}function Ci(E){var L=$e();return L.useDeferredValue(E)}function Vl(){var E=$e();return E.useId()}function $l(E,L,Z){var re=$e();return re.useSyncExternalStore(E,L,Z)}var Zo=0,Vs,Jo,da,Xu,Yr,Ef,Tf;function $s(){}$s.__reactDisabledLog=!0;function el(){{if(Zo===0){Vs=console.log,Jo=console.info,da=console.warn,Xu=console.error,Yr=console.group,Ef=console.groupCollapsed,Tf=console.groupEnd;var E={configurable:!0,enumerable:!0,value:$s,writable:!0};Object.defineProperties(console,{info:E,log:E,warn:E,error:E,group:E,groupCollapsed:E,groupEnd:E})}Zo++}}function Na(){{if(Zo--,Zo===0){var E={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:oe({},E,{value:Vs}),info:oe({},E,{value:Jo}),warn:oe({},E,{value:da}),error:oe({},E,{value:Xu}),group:oe({},E,{value:Yr}),groupCollapsed:oe({},E,{value:Ef}),groupEnd:oe({},E,{value:Tf})})}Zo<0&&Te("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ei=st.ReactCurrentDispatcher,Ti;function Gs(E,L,Z){{if(Ti===void 0)try{throw Error()}catch(Ee){var re=Ee.stack.trim().match(/\n( *(at )?)/);Ti=re&&re[1]||""}return`
|
|
30
|
+
`+Ti+E}}var Gl=!1,tl;{var Ys=typeof WeakMap=="function"?WeakMap:Map;tl=new Ys}function Ws(E,L){if(!E||Gl)return"";{var Z=tl.get(E);if(Z!==void 0)return Z}var re;Gl=!0;var Ee=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ut;ut=Ei.current,Ei.current=null,el();try{if(L){var Oe=function(){throw Error()};if(Object.defineProperty(Oe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Oe,[])}catch(Nn){re=Nn}Reflect.construct(E,[],Oe)}else{try{Oe.call()}catch(Nn){re=Nn}E.call(Oe.prototype)}}else{try{throw Error()}catch(Nn){re=Nn}E()}}catch(Nn){if(Nn&&re&&typeof Nn.stack=="string"){for(var pt=Nn.stack.split(`
|
|
31
|
+
`),zt=re.stack.split(`
|
|
32
|
+
`),Qt=pt.length-1,xn=zt.length-1;Qt>=1&&xn>=0&&pt[Qt]!==zt[xn];)xn--;for(;Qt>=1&&xn>=0;Qt--,xn--)if(pt[Qt]!==zt[xn]){if(Qt!==1||xn!==1)do if(Qt--,xn--,xn<0||pt[Qt]!==zt[xn]){var fn=`
|
|
33
|
+
`+pt[Qt].replace(" at new "," at ");return E.displayName&&fn.includes("<anonymous>")&&(fn=fn.replace("<anonymous>",E.displayName)),typeof E=="function"&&tl.set(E,fn),fn}while(Qt>=1&&xn>=0);break}}}finally{Gl=!1,Ei.current=ut,Na(),Error.prepareStackTrace=Ee}var Nt=E?E.displayName||E.name:"",dn=Nt?Gs(Nt):"";return typeof E=="function"&&tl.set(E,dn),dn}function go(E,L,Z){return Ws(E,!1)}function Mp(E){var L=E.prototype;return!!(L&&L.isReactComponent)}function yo(E,L,Z){if(E==null)return"";if(typeof E=="function")return Ws(E,Mp(E));if(typeof E=="string")return Gs(E);switch(E){case _:return Gs("Suspense");case k:return Gs("SuspenseList")}if(typeof E=="object")switch(E.$$typeof){case A:return go(E.render);case N:return yo(E.type,L,Z);case z:{var re=E,Ee=re._payload,ut=re._init;try{return yo(ut(Ee),L,Z)}catch{}}}return""}var Zt={},Xs=st.ReactDebugCurrentFrame;function Kt(E){if(E){var L=E._owner,Z=yo(E.type,E._source,L?L.type:null);Xs.setExtraStackFrame(Z)}else Xs.setExtraStackFrame(null)}function Ku(E,L,Z,re,Ee){{var ut=Function.call.bind(Fn);for(var Oe in E)if(ut(E,Oe)){var pt=void 0;try{if(typeof E[Oe]!="function"){var zt=Error((re||"React class")+": "+Z+" type `"+Oe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof E[Oe]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw zt.name="Invariant Violation",zt}pt=E[Oe](L,Oe,re,Z,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Qt){pt=Qt}pt&&!(pt instanceof Error)&&(Kt(Ee),Te("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",re||"React class",Z,Oe,typeof pt),Kt(null)),pt instanceof Error&&!(pt.message in Zt)&&(Zt[pt.message]=!0,Kt(Ee),Te("Failed %s type: %s",Z,pt.message),Kt(null))}}}function Vi(E){if(E){var L=E._owner,Z=yo(E.type,E._source,L?L.type:null);tt(Z)}else tt(null)}var bt;bt=!1;function Ks(){if(Re.current){var E=dr(Re.current.type);if(E)return`
|
|
34
|
+
|
|
35
|
+
Check the render method of \``+E+"`."}return""}function Cr(E){if(E!==void 0){var L=E.fileName.replace(/^.*[\\\/]/,""),Z=E.lineNumber;return`
|
|
36
|
+
|
|
37
|
+
Check your code at `+L+":"+Z+"."}return""}function $i(E){return E!=null?Cr(E.__source):""}var Wr={};function Gi(E){var L=Ks();if(!L){var Z=typeof E=="string"?E:E.displayName||E.name;Z&&(L=`
|
|
38
|
+
|
|
39
|
+
Check the top-level render call using <`+Z+">.")}return L}function Rn(E,L){if(!(!E._store||E._store.validated||E.key!=null)){E._store.validated=!0;var Z=Gi(L);if(!Wr[Z]){Wr[Z]=!0;var re="";E&&E._owner&&E._owner!==Re.current&&(re=" It was passed a child from "+dr(E._owner.type)+"."),Vi(E),Te('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Z,re),Vi(null)}}}function cn(E,L){if(typeof E=="object"){if(yn(E))for(var Z=0;Z<E.length;Z++){var re=E[Z];On(re)&&Rn(re,L)}else if(On(E))E._store&&(E._store.validated=!0);else if(E){var Ee=ue(E);if(typeof Ee=="function"&&Ee!==E.entries)for(var ut=Ee.call(E),Oe;!(Oe=ut.next()).done;)On(Oe.value)&&Rn(Oe.value,L)}}}function nl(E){{var L=E.type;if(L==null||typeof L=="string")return;var Z;if(typeof L=="function")Z=L.propTypes;else if(typeof L=="object"&&(L.$$typeof===A||L.$$typeof===N))Z=L.propTypes;else return;if(Z){var re=dr(L);Ku(Z,E.props,"prop",re,E)}else if(L.PropTypes!==void 0&&!bt){bt=!0;var Ee=dr(L);Te("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Ee||"Unknown")}typeof L.getDefaultProps=="function"&&!L.getDefaultProps.isReactClassApproved&&Te("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function lr(E){{for(var L=Object.keys(E.props),Z=0;Z<L.length;Z++){var re=L[Z];if(re!=="children"&&re!=="key"){Vi(E),Te("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",re),Vi(null);break}}E.ref!==null&&(Vi(E),Te("Invalid attribute `ref` supplied to `React.Fragment`."),Vi(null))}}function Xr(E,L,Z){var re=pe(E);if(!re){var Ee="";(E===void 0||typeof E=="object"&&E!==null&&Object.keys(E).length===0)&&(Ee+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var ut=$i(L);ut?Ee+=ut:Ee+=Ks();var Oe;E===null?Oe="null":yn(E)?Oe="array":E!==void 0&&E.$$typeof===f?(Oe="<"+(dr(E.type)||"Unknown")+" />",Ee=" Did you accidentally export a JSX literal instead of a component?"):Oe=typeof E,Te("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Oe,Ee)}var pt=Ot.apply(this,arguments);if(pt==null)return pt;if(re)for(var zt=2;zt<arguments.length;zt++)cn(arguments[zt],E);return E===y?lr(pt):nl(pt),pt}var Xa=!1;function Yl(E){var L=Xr.bind(null,E);return L.type=E,Xa||(Xa=!0,qe("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(L,"type",{enumerable:!1,get:function(){return qe("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:E}),E}}),L}function Qu(E,L,Z){for(var re=Sn.apply(this,arguments),Ee=2;Ee<arguments.length;Ee++)cn(arguments[Ee],re.type);return nl(re),re}function qu(E,L){var Z=fe.transition;fe.transition={};var re=fe.transition;fe.transition._updatedFibers=new Set;try{E()}finally{if(fe.transition=Z,Z===null&&re._updatedFibers){var Ee=re._updatedFibers.size;Ee>10&&qe("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),re._updatedFibers.clear()}}}var rl=!1,Wl=null;function _p(E){if(Wl===null)try{var L=("require"+Math.random()).slice(0,7),Z=c&&c[L];Wl=Z.call(c,"timers").setImmediate}catch{Wl=function(Ee){rl===!1&&(rl=!0,typeof MessageChannel>"u"&&Te("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var ut=new MessageChannel;ut.port1.onmessage=Ee,ut.port2.postMessage(void 0)}}return Wl(E)}var Ka=0,Ri=!1;function Yi(E){{var L=Ka;Ka++,le.current===null&&(le.current=[]);var Z=le.isBatchingLegacy,re;try{if(le.isBatchingLegacy=!0,re=E(),!Z&&le.didScheduleLegacyUpdate){var Ee=le.current;Ee!==null&&(le.didScheduleLegacyUpdate=!1,al(Ee))}}catch(Nt){throw Qa(L),Nt}finally{le.isBatchingLegacy=Z}if(re!==null&&typeof re=="object"&&typeof re.then=="function"){var ut=re,Oe=!1,pt={then:function(Nt,dn){Oe=!0,ut.then(function(Nn){Qa(L),Ka===0?Qs(Nn,Nt,dn):Nt(Nn)},function(Nn){Qa(L),dn(Nn)})}};return!Ri&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){Oe||(Ri=!0,Te("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),pt}else{var zt=re;if(Qa(L),Ka===0){var Qt=le.current;Qt!==null&&(al(Qt),le.current=null);var xn={then:function(Nt,dn){le.current===null?(le.current=[],Qs(zt,Nt,dn)):Nt(zt)}};return xn}else{var fn={then:function(Nt,dn){Nt(zt)}};return fn}}}}function Qa(E){E!==Ka-1&&Te("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),Ka=E}function Qs(E,L,Z){{var re=le.current;if(re!==null)try{al(re),_p(function(){re.length===0?(le.current=null,L(E)):Qs(E,L,Z)})}catch(Ee){Z(Ee)}else L(E)}}var qs=!1;function al(E){if(!qs){qs=!0;var L=0;try{for(;L<E.length;L++){var Z=E[L];do Z=Z(!0);while(Z!==null)}E.length=0}catch(re){throw E=E.slice(L+1),re}finally{qs=!1}}}var Xl=Xr,Zs=Qu,Js=Yl,Mi={map:mo,forEach:Bl,count:jl,toArray:Qo,only:qo};a.Children=Mi,a.Component=He,a.Fragment=y,a.Profiler=C,a.PureComponent=wt,a.StrictMode=v,a.Suspense=_,a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=st,a.act=Yi,a.cloneElement=Zs,a.createContext=Hl,a.createElement=Xl,a.createFactory=Js,a.createRef=gn,a.forwardRef=Hi,a.isValidElement=On,a.lazy=Bi,a.memo=Ne,a.startTransition=qu,a.unstable_act=Yi,a.useCallback=xr,a.useContext=Mt,a.useDebugValue=_t,a.useDeferredValue=Ci,a.useEffect=jn,a.useId=Vl,a.useImperativeHandle=xi,a.useInsertionEffect=bn,a.useLayoutEffect=Tn,a.useMemo=bi,a.useReducer=Ut,a.useRef=Dt,a.useState=Ct,a.useSyncExternalStore=$l,a.useTransition=At,a.version=l,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(cp,cp.exports)),cp.exports}var Wb;function fp(){return Wb||(Wb=1,process.env.NODE_ENV==="production"?Nv.exports=CR():Nv.exports=ER()),Nv.exports}/**
|
|
2
40
|
* @license React
|
|
3
41
|
* react-jsx-runtime.production.min.js
|
|
4
42
|
*
|
|
@@ -6,7 +44,7 @@
|
|
|
6
44
|
*
|
|
7
45
|
* This source code is licensed under the MIT license found in the
|
|
8
46
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
47
|
+
*/var Xb;function TR(){if(Xb)return up;Xb=1;var c=fp(),a=Symbol.for("react.element"),l=Symbol.for("react.fragment"),f=Object.prototype.hasOwnProperty,h=c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,y={key:!0,ref:!0,__self:!0,__source:!0};function v(C,x,R){var A,_={},k=null,N=null;R!==void 0&&(k=""+R),x.key!==void 0&&(k=""+x.key),x.ref!==void 0&&(N=x.ref);for(A in x)f.call(x,A)&&!y.hasOwnProperty(A)&&(_[A]=x[A]);if(C&&C.defaultProps)for(A in x=C.defaultProps,x)_[A]===void 0&&(_[A]=x[A]);return{$$typeof:a,type:C,key:k,ref:N,props:_,_owner:h.current}}return up.Fragment=l,up.jsx=v,up.jsxs=v,up}var dp={};/**
|
|
10
48
|
* @license React
|
|
11
49
|
* react-jsx-runtime.development.js
|
|
12
50
|
*
|
|
@@ -14,18 +52,271 @@
|
|
|
14
52
|
*
|
|
15
53
|
* This source code is licensed under the MIT license found in the
|
|
16
54
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
18
|
-
`+
|
|
19
|
-
`),
|
|
20
|
-
`),
|
|
21
|
-
`+
|
|
55
|
+
*/var Kb;function RR(){return Kb||(Kb=1,process.env.NODE_ENV!=="production"&&function(){var c=fp(),a=Symbol.for("react.element"),l=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),v=Symbol.for("react.provider"),C=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),N=Symbol.for("react.offscreen"),z=Symbol.iterator,G="@@iterator";function J(P){if(P===null||typeof P!="object")return null;var pe=z&&P[z]||P[G];return typeof pe=="function"?pe:null}var de=c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function ue(P){{for(var pe=arguments.length,Ne=new Array(pe>1?pe-1:0),$e=1;$e<pe;$e++)Ne[$e-1]=arguments[$e];ce("error",P,Ne)}}function ce(P,pe,Ne){{var $e=de.ReactDebugCurrentFrame,Mt=$e.getStackAddendum();Mt!==""&&(pe+="%s",Ne=Ne.concat([Mt]));var Ct=Ne.map(function(Ut){return String(Ut)});Ct.unshift("Warning: "+pe),Function.prototype.apply.call(console[P],console,Ct)}}var fe=!1,le=!1,Re=!1,ve=!1,xe=!1,tt;tt=Symbol.for("react.module.reference");function dt(P){return!!(typeof P=="string"||typeof P=="function"||P===f||P===y||xe||P===h||P===R||P===A||ve||P===N||fe||le||Re||typeof P=="object"&&P!==null&&(P.$$typeof===k||P.$$typeof===_||P.$$typeof===v||P.$$typeof===C||P.$$typeof===x||P.$$typeof===tt||P.getModuleId!==void 0))}function Rt(P,pe,Ne){var $e=P.displayName;if($e)return $e;var Mt=pe.displayName||pe.name||"";return Mt!==""?Ne+"("+Mt+")":Ne}function lt(P){return P.displayName||"Context"}function Ae(P){if(P==null)return null;if(typeof P.tag=="number"&&ue("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof P=="function")return P.displayName||P.name||null;if(typeof P=="string")return P;switch(P){case f:return"Fragment";case l:return"Portal";case y:return"Profiler";case h:return"StrictMode";case R:return"Suspense";case A:return"SuspenseList"}if(typeof P=="object")switch(P.$$typeof){case C:var pe=P;return lt(pe)+".Consumer";case v:var Ne=P;return lt(Ne._context)+".Provider";case x:return Rt(P,P.render,"ForwardRef");case _:var $e=P.displayName||null;return $e!==null?$e:Ae(P.type)||"Memo";case k:{var Mt=P,Ct=Mt._payload,Ut=Mt._init;try{return Ae(Ut(Ct))}catch{return null}}}return null}var rt=Object.assign,st=0,qe,Te,$,_e,Ce,V,oe;function Be(){}Be.__reactDisabledLog=!0;function He(){{if(st===0){qe=console.log,Te=console.info,$=console.warn,_e=console.error,Ce=console.group,V=console.groupCollapsed,oe=console.groupEnd;var P={configurable:!0,enumerable:!0,value:Be,writable:!0};Object.defineProperties(console,{info:P,log:P,warn:P,error:P,group:P,groupCollapsed:P,groupEnd:P})}st++}}function yt(){{if(st--,st===0){var P={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:rt({},P,{value:qe}),info:rt({},P,{value:Te}),warn:rt({},P,{value:$}),error:rt({},P,{value:_e}),group:rt({},P,{value:Ce}),groupCollapsed:rt({},P,{value:V}),groupEnd:rt({},P,{value:oe})})}st<0&&ue("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var xt=de.ReactCurrentDispatcher,Ve;function St(P,pe,Ne){{if(Ve===void 0)try{throw Error()}catch(Mt){var $e=Mt.stack.trim().match(/\n( *(at )?)/);Ve=$e&&$e[1]||""}return`
|
|
56
|
+
`+Ve+P}}var wt=!1,$t;{var gn=typeof WeakMap=="function"?WeakMap:Map;$t=new gn}function Un(P,pe){if(!P||wt)return"";{var Ne=$t.get(P);if(Ne!==void 0)return Ne}var $e;wt=!0;var Mt=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Ct;Ct=xt.current,xt.current=null,He();try{if(pe){var Ut=function(){throw Error()};if(Object.defineProperty(Ut.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ut,[])}catch(_t){$e=_t}Reflect.construct(P,[],Ut)}else{try{Ut.call()}catch(_t){$e=_t}P.call(Ut.prototype)}}else{try{throw Error()}catch(_t){$e=_t}P()}}catch(_t){if(_t&&$e&&typeof _t.stack=="string"){for(var Dt=_t.stack.split(`
|
|
57
|
+
`),jn=$e.stack.split(`
|
|
58
|
+
`),bn=Dt.length-1,Tn=jn.length-1;bn>=1&&Tn>=0&&Dt[bn]!==jn[Tn];)Tn--;for(;bn>=1&&Tn>=0;bn--,Tn--)if(Dt[bn]!==jn[Tn]){if(bn!==1||Tn!==1)do if(bn--,Tn--,Tn<0||Dt[bn]!==jn[Tn]){var xr=`
|
|
59
|
+
`+Dt[bn].replace(" at new "," at ");return P.displayName&&xr.includes("<anonymous>")&&(xr=xr.replace("<anonymous>",P.displayName)),typeof P=="function"&&$t.set(P,xr),xr}while(bn>=1&&Tn>=0);break}}}finally{wt=!1,xt.current=Ct,yt(),Error.prepareStackTrace=Mt}var bi=P?P.displayName||P.name:"",xi=bi?St(bi):"";return typeof P=="function"&&$t.set(P,xi),xi}function yn(P,pe,Ne){return Un(P,!1)}function wr(P){var pe=P.prototype;return!!(pe&&pe.isReactComponent)}function ar(P,pe,Ne){if(P==null)return"";if(typeof P=="function")return Un(P,wr(P));if(typeof P=="string")return St(P);switch(P){case R:return St("Suspense");case A:return St("SuspenseList")}if(typeof P=="object")switch(P.$$typeof){case x:return yn(P.render);case _:return ar(P.type,pe,Ne);case k:{var $e=P,Mt=$e._payload,Ct=$e._init;try{return ar(Ct(Mt),pe,Ne)}catch{}}}return""}var ir=Object.prototype.hasOwnProperty,fa={},zi=de.ReactDebugCurrentFrame;function ka(P){if(P){var pe=P._owner,Ne=ar(P.type,P._source,pe?pe.type:null);zi.setExtraStackFrame(Ne)}else zi.setExtraStackFrame(null)}function dr(P,pe,Ne,$e,Mt){{var Ct=Function.call.bind(ir);for(var Ut in P)if(Ct(P,Ut)){var Dt=void 0;try{if(typeof P[Ut]!="function"){var jn=Error(($e||"React class")+": "+Ne+" type `"+Ut+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof P[Ut]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw jn.name="Invariant Violation",jn}Dt=P[Ut](pe,Ut,$e,Ne,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(bn){Dt=bn}Dt&&!(Dt instanceof Error)&&(ka(Mt),ue("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",$e||"React class",Ne,Ut,typeof Dt),ka(null)),Dt instanceof Error&&!(Dt.message in fa)&&(fa[Dt.message]=!0,ka(Mt),ue("Failed %s type: %s",Ne,Dt.message),ka(null))}}}var Fn=Array.isArray;function or(P){return Fn(P)}function Ur(P){{var pe=typeof Symbol=="function"&&Symbol.toStringTag,Ne=pe&&P[Symbol.toStringTag]||P.constructor.name||"Object";return Ne}}function yi(P){try{return Wn(P),!1}catch{return!0}}function Wn(P){return""+P}function zr(P){if(yi(P))return ue("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ur(P)),Wn(P)}var Aa=de.ReactCurrentOwner,Si={key:!0,ref:!0,__self:!0,__source:!0},Fi,Me;function Je(P){if(ir.call(P,"ref")){var pe=Object.getOwnPropertyDescriptor(P,"ref").get;if(pe&&pe.isReactWarning)return!1}return P.ref!==void 0}function Ot(P){if(ir.call(P,"key")){var pe=Object.getOwnPropertyDescriptor(P,"key").get;if(pe&&pe.isReactWarning)return!1}return P.key!==void 0}function an(P,pe){typeof P.ref=="string"&&Aa.current}function Sn(P,pe){{var Ne=function(){Fi||(Fi=!0,ue("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",pe))};Ne.isReactWarning=!0,Object.defineProperty(P,"key",{get:Ne,configurable:!0})}}function On(P,pe){{var Ne=function(){Me||(Me=!0,ue("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",pe))};Ne.isReactWarning=!0,Object.defineProperty(P,"ref",{get:Ne,configurable:!0})}}var En=function(P,pe,Ne,$e,Mt,Ct,Ut){var Dt={$$typeof:a,type:P,key:pe,ref:Ne,props:Ut,_owner:Ct};return Dt._store={},Object.defineProperty(Dt._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Dt,"_self",{configurable:!1,enumerable:!1,writable:!1,value:$e}),Object.defineProperty(Dt,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Mt}),Object.freeze&&(Object.freeze(Dt.props),Object.freeze(Dt)),Dt};function pr(P,pe,Ne,$e,Mt){{var Ct,Ut={},Dt=null,jn=null;Ne!==void 0&&(zr(Ne),Dt=""+Ne),Ot(pe)&&(zr(pe.key),Dt=""+pe.key),Je(pe)&&(jn=pe.ref,an(pe,Mt));for(Ct in pe)ir.call(pe,Ct)&&!Si.hasOwnProperty(Ct)&&(Ut[Ct]=pe[Ct]);if(P&&P.defaultProps){var bn=P.defaultProps;for(Ct in bn)Ut[Ct]===void 0&&(Ut[Ct]=bn[Ct])}if(Dt||jn){var Tn=typeof P=="function"?P.displayName||P.name||"Unknown":P;Dt&&Sn(Ut,Tn),jn&&On(Ut,Tn)}return En(P,Dt,jn,Mt,$e,Aa.current,Ut)}}var wn=de.ReactCurrentOwner,sn=de.ReactDebugCurrentFrame;function un(P){if(P){var pe=P._owner,Ne=ar(P.type,P._source,pe?pe.type:null);sn.setExtraStackFrame(Ne)}else sn.setExtraStackFrame(null)}var Oa;Oa=!1;function Fr(P){return typeof P=="object"&&P!==null&&P.$$typeof===a}function Wa(){{if(wn.current){var P=Ae(wn.current.type);if(P)return`
|
|
22
60
|
|
|
23
|
-
Check the render method of \``+
|
|
61
|
+
Check the render method of \``+P+"`."}return""}}function mo(P){return""}var jl={};function Bl(P){{var pe=Wa();if(!pe){var Ne=typeof P=="string"?P:P.displayName||P.name;Ne&&(pe=`
|
|
24
62
|
|
|
25
|
-
Check the top-level render call using <`+
|
|
63
|
+
Check the top-level render call using <`+Ne+">.")}return pe}}function Qo(P,pe){{if(!P._store||P._store.validated||P.key!=null)return;P._store.validated=!0;var Ne=Bl(pe);if(jl[Ne])return;jl[Ne]=!0;var $e="";P&&P._owner&&P._owner!==wn.current&&($e=" It was passed a child from "+Ae(P._owner.type)+"."),un(P),ue('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Ne,$e),un(null)}}function qo(P,pe){{if(typeof P!="object")return;if(or(P))for(var Ne=0;Ne<P.length;Ne++){var $e=P[Ne];Fr($e)&&Qo($e,pe)}else if(Fr(P))P._store&&(P._store.validated=!0);else if(P){var Mt=J(P);if(typeof Mt=="function"&&Mt!==P.entries)for(var Ct=Mt.call(P),Ut;!(Ut=Ct.next()).done;)Fr(Ut.value)&&Qo(Ut.value,pe)}}}function Hl(P){{var pe=P.type;if(pe==null||typeof pe=="string")return;var Ne;if(typeof pe=="function")Ne=pe.propTypes;else if(typeof pe=="object"&&(pe.$$typeof===x||pe.$$typeof===_))Ne=pe.propTypes;else return;if(Ne){var $e=Ae(pe);dr(Ne,P.props,"prop",$e,P)}else if(pe.PropTypes!==void 0&&!Oa){Oa=!0;var Mt=Ae(pe);ue("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Mt||"Unknown")}typeof pe.getDefaultProps=="function"&&!pe.getDefaultProps.isReactClassApproved&&ue("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function $r(P){{for(var pe=Object.keys(P.props),Ne=0;Ne<pe.length;Ne++){var $e=pe[Ne];if($e!=="children"&&$e!=="key"){un(P),ue("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",$e),un(null);break}}P.ref!==null&&(un(P),ue("Invalid attribute `ref` supplied to `React.Fragment`."),un(null))}}var Gr={};function br(P,pe,Ne,$e,Mt,Ct){{var Ut=dt(P);if(!Ut){var Dt="";(P===void 0||typeof P=="object"&&P!==null&&Object.keys(P).length===0)&&(Dt+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var jn=mo();jn?Dt+=jn:Dt+=Wa();var bn;P===null?bn="null":or(P)?bn="array":P!==void 0&&P.$$typeof===a?(bn="<"+(Ae(P.type)||"Unknown")+" />",Dt=" Did you accidentally export a JSX literal instead of a component?"):bn=typeof P,ue("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",bn,Dt)}var Tn=pr(P,pe,Ne,Mt,Ct);if(Tn==null)return Tn;if(Ut){var xr=pe.children;if(xr!==void 0)if($e)if(or(xr)){for(var bi=0;bi<xr.length;bi++)qo(xr[bi],P);Object.freeze&&Object.freeze(xr)}else ue("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else qo(xr,P)}if(ir.call(pe,"key")){var xi=Ae(P),_t=Object.keys(pe).filter(function(Vl){return Vl!=="key"}),At=_t.length>0?"{key: someKey, "+_t.join(": ..., ")+": ...}":"{key: someKey}";if(!Gr[xi+At]){var Ci=_t.length>0?"{"+_t.join(": ..., ")+": ...}":"{}";ue(`A props object containing a "key" prop is being spread into JSX:
|
|
26
64
|
let props = %s;
|
|
27
65
|
<%s {...props} />
|
|
28
66
|
React keys must be passed directly to JSX without using spread:
|
|
29
67
|
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,dt,we,zi,we),Qt[we+dt]=!0}}return l===a?Ui(H):Vi(H),H}}function Hi(l,w,S){return ea(l,w,S,!0)}function Yi(l,w,S){return ea(l,w,S,!1)}var Xi=Yi,Wi=Hi;Ne.Fragment=a,Ne.jsx=Xi,Ne.jsxs=Wi}()),Ne}process.env.NODE_ENV==="production"?qe.exports=na():qe.exports=oa();var u=qe.exports,Oe={},Ie=ye;if(process.env.NODE_ENV==="production")Oe.createRoot=Ie.createRoot,Oe.hydrateRoot=Ie.hydrateRoot;else{var $e=Ie.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Oe.createRoot=function(r,e){$e.usingClientEntryPoint=!0;try{return Ie.createRoot(r,e)}finally{$e.usingClientEntryPoint=!1}},Oe.hydrateRoot=function(r,e,t){$e.usingClientEntryPoint=!0;try{return Ie.hydrateRoot(r,e,t)}finally{$e.usingClientEntryPoint=!1}}}const d={CANVAS_WIDTH:800,CANVAS_HEIGHT:600,PLAYER_HEIGHT:35,PLAYER_WIDTH:25,BOMB_SIZE:25,MONSTER_SIZE:25,PLATFORM_HEIGHT:25,COIN_SIZE:25,USE_SPRITES:!0,PARALLAX_ENABLED:!0,GRAVITY:.3,FLOAT_GRAVITY:.005,MOVE_SPEED:4,JUMP_POWER:8,SUPER_JUMP_POWER:12,COIN_BOUNCE_SPEED:3,COIN_BOUNCE_DAMPING:.8,COIN_GRAVITY:.1,MIN_JUMP_DURATION:50,MAX_JUMP_DURATION:300,TOTAL_BOMBS:23,STARTING_LIVES:3,POWER_COIN_SPAWN_INTERVAL:9,BONUS_COIN_SPAWN_INTERVAL:5e3,EXTRA_LIFE_COIN_RATIO:10,POWER_COIN_DURATION:7e3,POWER_COIN_POINTS:2e3,MONSTER_KILL_POINTS:100,BONUS_MULTIPLIER_COIN_POINTS:1e3,EXTRA_LIFE_COIN_POINTS:1e3,MULTIPLIER_THRESHOLDS:{1:0,2:1800,3:3600,4:5400,5:7200},MAX_MULTIPLIER:5,BOMB_POINTS:{NORMAL:100,FIREBOMB:200},BONUS_POINTS:{23:5e4,22:3e4,21:2e4,20:1e4}},gt={masterVolume:80,musicVolume:70,sfxVolume:90,masterMuted:!1,musicMuted:!1,sfxMuted:!1},q={ENABLED:!1,TARGET_STATE:"PLAYING",TARGET_LEVEL:6,MOCK_DATA:{score:15e3,lives:2,correctOrderCount:18,multiplier:2,multiplierScore:2600}};typeof window<"u"&&(window.__DEV_LOGGING_ENABLED__=q.ENABLED);const $={PLAYER:"#00FF00",BOMB:"#FFD700",BOMB_NEXT:"#FF0000",MONSTER:"#FF4444",MONSTER_FROZEN:"#4444FF",MONSTER_HORIZONTAL_PATROL:"#FF4444",MONSTER_VERTICAL_PATROL:"#44FF44",MONSTER_CHASER:"#FF8844",MONSTER_AMBUSHER:"#8844FF",MONSTER_FLOATER:"#44FFFF",PLATFORM:"#484744",BACKGROUND:"#262521"},mt=()=>({x:d.CANVAS_WIDTH/2,y:d.CANVAS_HEIGHT-100,width:d.PLAYER_WIDTH,height:d.PLAYER_HEIGHT,color:$.PLAYER,velocityX:0,velocityY:0,isGrounded:!1,isFloating:!1,isJumping:!1,jumpStartTime:0,moveSpeed:d.MOVE_SPEED,jumpPower:d.JUMP_POWER,gravity:d.GRAVITY,floatGravity:d.FLOAT_GRAVITY}),la=(r,e)=>({player:mt(),updatePlayer:t=>{r({player:{...e().player,...t}})},resetPlayer:()=>{r({player:mt()})},setPlayerPosition:(t,a)=>{r({player:{...e().player,x:t,y:a,velocityX:0,velocityY:0,isGrounded:!1,isFloating:!1,isJumping:!1,jumpStartTime:0}})}});var C=(r=>(r.MENU="MENU",r.COUNTDOWN="COUNTDOWN",r.PLAYING="PLAYING",r.PAUSED="PAUSED",r.BONUS="BONUS",r.VICTORY="VICTORY",r.GAME_OVER="GAME_OVER",r.MAP_CLEARED="MAP_CLEARED",r))(C||{}),A=(r=>(r.START="START",r.COUNTDOWN="COUNTDOWN",r.IN_GAME="IN_GAME",r.PAUSE="PAUSE",r.SETTINGS="SETTINGS",r.BONUS="BONUS",r.VICTORY="VICTORY",r.GAME_OVER="GAME_OVER",r.AUDIO_SETTINGS="AUDIO_SETTINGS",r))(A||{}),F=(r=>(r.HORIZONTAL_PATROL="HORIZONTAL_PATROL",r.VERTICAL_PATROL="VERTICAL_PATROL",r.CHASER="CHASER",r.AMBUSHER="AMBUSHER",r.FLOATER="FLOATER",r))(F||{}),P=(r=>(r.POWER="POWER",r.BONUS_MULTIPLIER="BONUS_MULTIPLIER",r.EXTRA_LIFE="EXTRA_LIFE",r.MONSTER_FREEZE="MONSTER_FREEZE",r))(P||{}),z=(r=>(r.GAME_START="GAME_START",r.LEVEL_COMPLETE="LEVEL_COMPLETE",r.PLAYER_DEATH="PLAYER_DEATH",r.GAME_OVER="GAME_OVER",r.BONUS_SCREEN="BONUS_SCREEN",r.BOMB_COLLECT="BOMB_COLLECT",r.MAP_CLEARED="MAP_CLEARED",r.BACKGROUND_MUSIC="BACKGROUND_MUSIC",r.MONSTER_HIT="MONSTER_HIT",r.COIN_COLLECT="COIN_COLLECT",r.POWER_COIN_ACTIVATE="POWER_COIN_ACTIVATE",r))(z||{});class ca{constructor(e=2){b(this,"logLevel",2);b(this,"lastLogTime",new Map);b(this,"logThrottle",new Map);switch("dataPassing".toLowerCase()){case"error":this.logLevel=0;break;case"warn":this.logLevel=1;break;case"info":this.logLevel=2;break;case"debug":this.logLevel=3;break;case"trace":this.logLevel=4;break;case"datapassing":this.logLevel=5;break;default:this.logLevel=e}}setLogLevel(e){this.logLevel=e}shouldLog(e,t=1e3){const a=Date.now(),i=this.lastLogTime.get(e)||0;return a-i>=t?(this.lastLogTime.set(e,a),!0):!1}game(e,...t){(this.logLevel===2||this.logLevel===3||this.logLevel===4)&&console.log(`🎮 ${e}`,...t)}flow(e,...t){(this.logLevel===2||this.logLevel===3||this.logLevel===4)&&console.log(`🌊 ${e}`,...t)}player(e,...t){(this.logLevel===2||this.logLevel===3||this.logLevel===4)&&console.log(`👤 ${e}`,...t)}monster(e,...t){(this.logLevel===2||this.logLevel===3||this.logLevel===4)&&console.log(`👹 ${e}`,...t)}coin(e,...t){(this.logLevel===2||this.logLevel===3||this.logLevel===4)&&console.log(`🪙 ${e}`,...t)}bomb(e,...t){(this.logLevel===2||this.logLevel===3||this.logLevel===4)&&console.log(`💣 ${e}`,...t)}power(e,...t){(this.logLevel===2||this.logLevel===3||this.logLevel===4)&&console.log(`⚡ ${e}`,...t)}dataPassing(e,...t){this.logLevel===5&&console.log(`📡 ${e}`,...t)}pause(e,...t){(this.logLevel===2||this.logLevel===3||this.logLevel===4)&&this.shouldLog("pause",500)&&console.log(`⏸️ ${e}`,...t)}scaling(e,...t){(this.logLevel===2||this.logLevel===3||this.logLevel===4)&&this.shouldLog("scaling",2e3)&&console.log(`📈 ${e}`,...t)}debug(e,...t){(this.logLevel===3||this.logLevel===4)&&console.log(`🔧 ${e}`,...t)}audio(e,...t){(this.logLevel===2||this.logLevel===3||this.logLevel===4)&&console.log(`🎵 ${e}`,...t)}error(e,...t){this.logLevel>=0&&console.error(`❌ ${e}`,...t)}warn(e,...t){this.logLevel>=1&&console.warn(`⚠️ ${e}`,...t)}info(e,...t){(this.logLevel===2||this.logLevel===3||this.logLevel===4)&&console.log(`ℹ️ ${e}`,...t)}trace(e,...t){this.logLevel===4&&console.log(`🔍 ${e}`,...t)}dev(e,...t){}score(e,...t){(this.logLevel===2||this.logLevel===3||this.logLevel===4)&&console.log(`📊 ${e}`,...t)}clearThrottle(){this.lastLogTime.clear()}disable(){this.logLevel=0}enable(){this.logLevel=2}setLevel(e){this.logLevel=e}}const v=new ca,x={error:(r,...e)=>v.error(r,...e),warn:(r,...e)=>v.warn(r,...e),info:(r,...e)=>v.info(r,...e),debug:(r,...e)=>v.debug(r,...e),trace:(r,...e)=>v.trace(r,...e),game:(r,...e)=>v.game(r,...e),dev:(r,...e)=>v.dev(r,...e),audio:(r,...e)=>v.audio(r,...e),coin:(r,...e)=>v.coin(r,...e),bomb:(r,...e)=>v.bomb(r,...e),score:(r,...e)=>v.score(r,...e),dataPassing:(r,...e)=>v.dataPassing(r,...e)},da=(r,e,t,a,i)=>{const s={score:r,map:e,timestamp:Date.now(),level:t,lives:a,multiplier:i};x.dataPassing("Sending score to host:",s);const n=new CustomEvent("scoreUpdate",{detail:{score:r},bubbles:!0,composed:!0});window.dispatchEvent(n);const o=new CustomEvent("game:score-updated",{detail:s,bubbles:!0,composed:!0});window.dispatchEvent(o)},ua=()=>{x.dataPassing("Game ready signal sent to host");const r=new CustomEvent("game:ready",{detail:{timestamp:Date.now()},bubbles:!0,composed:!0});window.dispatchEvent(r)},Ve=(r,e)=>{x.dataPassing("Game state update sent to host:",{state:r,map:e});const t=new CustomEvent("game:state-updated",{detail:{state:r,map:e,timestamp:Date.now()},bubbles:!0,composed:!0});window.dispatchEvent(t)},bt=r=>{x.dataPassing("Sending map completion data to host:",r);const e=new CustomEvent("game:map-completed",{detail:r,bubbles:!0,composed:!0});window.dispatchEvent(e)},ha=r=>{x.dataPassing("Sending game completion data to host:",r);const e=new CustomEvent("game:completed",{detail:r,bubbles:!0,composed:!0});window.dispatchEvent(e)},pa=(r,e,t,a,i,s,n)=>{const o=r.reduce((y,M)=>y+M.totalBombs,0),c=r.reduce((y,M)=>y+M.correctOrderCount,0),h=r.reduce((y,M)=>y+M.coinsCollected,0),m=r.reduce((y,M)=>y+M.powerModeActivations,0),g=n-s,p=r.length>0?g/r.length/1e3:0;return{totalBombs:o,totalCorrectOrders:c,totalCoinsCollected:h,totalPowerModeActivations:m,averageCompletionTime:Math.round(p),totalPlayTime:Math.round(g/1e3)}},fa=r=>{switch(r){case F.HORIZONTAL_PATROL:return $.MONSTER_HORIZONTAL_PATROL;case F.VERTICAL_PATROL:return $.MONSTER_VERTICAL_PATROL;case F.CHASER:return $.MONSTER_CHASER;case F.AMBUSHER:return $.MONSTER_AMBUSHER;case F.FLOATER:return $.MONSTER_FLOATER;default:return $.MONSTER}},Re=(r,e,t,a=1,i=0)=>({x:r,y:e,width:d.MONSTER_SIZE,height:d.MONSTER_SIZE,color:fa(t),type:t,speed:a,direction:1,isActive:!0,spawnDelay:i}),Q=(r,e,t,a="left",i=1,s=1,n,o=0)=>{const c=a==="left"?r:r+t-d.MONSTER_SIZE,h=e-d.MONSTER_SIZE,m=a==="left"?1:-1;return{...Re(c,h,F.HORIZONTAL_PATROL,s,o),patrolStartX:r,patrolEndX:r+t,direction:m,walkLengths:i}},ne=(r,e,t,a="left",i=1,s=1,n=0)=>{const o=a==="left"?r-d.MONSTER_SIZE:r+15;return{...Re(o,e,F.VERTICAL_PATROL,i,n),patrolStartY:e,patrolEndY:e+t,direction:s,patrolSide:a,targetPlatformX:r}},oe=(r,e,t=45,a=1,i=0)=>({...Re(r,e,F.FLOATER,a,i),startAngle:t,spawnTime:Date.now()}),xe=(r,e,t=.8,a=.2,i=200,s=0)=>({...Re(r,e,F.CHASER,t,s),direction:0,directness:a,chaseUpdateInterval:i}),ve=(r,e,t=.8,a=8e3,i=0)=>({...Re(r,e,F.AMBUSHER,t,i),ambushCooldown:0}),f=(r,e,t,a)=>({x:r,y:e,width:d.BOMB_SIZE,height:d.BOMB_SIZE,order:t,group:a,isCollected:!1,isBlinking:!1}),I=(r,e,t,a=$.PLATFORM,i="#000")=>({x:r,y:e,width:t.width,height:t.height,borderColor:i,color:a}),Se=(r,e,t,a=$.PLATFORM,i="#000")=>({x:r,y:e,width:15,height:t,borderColor:i,color:a,isVertical:!0}),le=r=>(d.CANVAS_WIDTH-r)/2,ce=r=>(d.CANVAS_HEIGHT-r)/2,Me=(r,e)=>({x:le(r),y:ce(e)}),ga={id:"level1",name:"startup lab",width:d.CANVAS_WIDTH,height:d.CANVAS_HEIGHT,playerStart:Me(d.PLAYER_WIDTH,d.PLAYER_HEIGHT),spawnIndicatorColor:"#00ffff",groupSequence:[1,2,3,4,5],ground:{x:0,y:d.CANVAS_HEIGHT-40,width:d.CANVAS_WIDTH,height:40,color:"#88a2bc"},platforms:[Se(96,220,150,"#abccee","#4f6a8f"),Se(684,220,150,"#abccee","#4f6a8f"),I(95,450,{width:200,height:15},"#abccee","#4f6a8f"),I(480,150,{width:200,height:15},"#abccee","#4f6a8f"),I(430,430,{width:200,height:15},"#abccee","#4f6a8f"),I(170,170,{width:200,height:15},"#abccee","#4f6a8f")],bombs:[f(440,400,1,1),f(490,400,2,1),f(540,400,3,1),f(590,400,4,1),f(180,140,5,2),f(230,140,6,2),f(280,140,7,2),f(330,140,8,2),f(710,230,9,3),f(710,280,10,3),f(710,330,11,3),f(130,470,12,4),f(180,470,13,4),f(230,470,14,4),f(520,70,15,5),f(570,70,16,5),f(620,70,17,5),f(120,230,18,6),f(120,280,19,6),f(120,330,20,6),f(130,420,21,7),f(180,420,22,7),f(230,420,23,7)],coinSpawnPoints:[{x:le(d.COIN_SIZE),y:ce(d.COIN_SIZE),type:P.POWER,spawnAngle:45},{x:570,y:50,type:P.POWER,spawnAngle:135},{x:200,y:75,type:P.BONUS_MULTIPLIER},{x:200,y:75,type:P.BONUS_MULTIPLIER},{x:200,y:75,type:P.EXTRA_LIFE},{x:200,y:75,type:P.EXTRA_LIFE}],monsterSpawnPoints:[{spawnDelay:4e3,createMonster:()=>Q(430,430,200,"left",1,1)},{spawnDelay:5e3,createMonster:()=>ve(500,500,1)}],monsters:[ne(105,220,220,"right"),ne(695,220,220,"right",2,1),Q(170,170,200,"left"),xe(250,300,1,.3,1e3)]},ma={id:"level2",name:"innovasjon norge",width:d.CANVAS_WIDTH,height:d.CANVAS_HEIGHT,playerStart:Me(d.PLAYER_WIDTH,d.PLAYER_HEIGHT),spawnIndicatorColor:"#ff6b6b",groupSequence:[1,2,3,4,5],ground:{x:0,y:d.CANVAS_HEIGHT-40,width:d.CANVAS_WIDTH,height:40,color:"#262335"},platforms:[I(165,475,{width:150,height:15},"#d4896a","#262335"),I(485,475,{width:150,height:15},"#d4896a","#262335"),I(300,380,{width:200,height:15},"#d4896a","#262335"),I(300,240,{width:200,height:15},"#d4896a","#262335"),I(165,130,{width:150,height:15},"#d4896a","#262335"),I(485,130,{width:150,height:15},"#d4896a","#262335")],bombs:[f(600,95,1,1),f(550,95,2,1),f(500,95,3,1),f(180,440,4,2),f(230,440,5,2),f(280,440,6,2),f(280,95,7,3),f(230,95,8,3),f(180,95,9,3),f(600,440,10,4),f(550,440,11,4),f(500,440,12,4),f(385,70,13,5),f(385,120,14,5),f(385,170,15,5),f(500,500,16,6),f(550,500,17,6),f(600,500,18,6),f(180,500,19,7),f(230,500,20,7),f(280,500,21,7),f(360,345,22,8),f(410,345,23,8)],coinSpawnPoints:[{x:400,y:d.CANVAS_HEIGHT-150,type:P.POWER,spawnAngle:60},{x:400,y:d.CANVAS_HEIGHT-250,type:P.POWER,spawnAngle:120},{x:520,y:100,type:P.BONUS_MULTIPLIER,spawnAngle:120},{x:180,y:100,type:P.BONUS_MULTIPLIER,spawnAngle:120},{x:520,y:100,type:P.EXTRA_LIFE,spawnAngle:120},{x:180,y:100,type:P.EXTRA_LIFE,spawnAngle:120}],monsterSpawnPoints:[{spawnDelay:7e3,createMonster:()=>xe(750,500,1)},{spawnDelay:15e3,createMonster:()=>ve(50,500,1)}],monsters:[Q(165,130,150,"left",0,.7),Q(485,130,150,"right",0,1),Q(300,240,200,"left",0,1),oe(50,300,45,1),oe(750,500,155,1)]},ba={id:"level3",name:"skatteetaten",width:d.CANVAS_WIDTH,height:d.CANVAS_HEIGHT,playerStart:Me(d.PLAYER_WIDTH,d.PLAYER_HEIGHT),spawnIndicatorColor:"#4ecdc4",groupSequence:[1,2,3,4,5,6,7],ground:{x:0,y:d.CANVAS_HEIGHT-40,width:d.CANVAS_WIDTH,height:40,color:"#3c4c56"},platforms:[I(150,490,{width:500,height:15},"#acc7d0","#556d7b"),I(100,400,{width:200,height:15},"#acc7d0","#556d7b"),I(500,400,{width:200,height:15},"#acc7d0","#556d7b"),I(100,250,{width:200,height:15},"#acc7d0","#556d7b"),I(500,250,{width:200,height:15},"#acc7d0","#556d7b"),I(150,130,{width:500,height:15},"#acc7d0","#556d7b")],bombs:[f(540,275,1,1),f(590,275,2,1),f(640,275,3,1),f(240,275,4,2),f(190,275,5,2),f(140,275,6,2),f(325,515,7,3),f(375,515,8,3),f(425,515,9,3),f(760,360,10,4),f(760,310,11,4),f(760,260,12,4),f(15,360,13,5),f(15,310,14,5),f(15,260,15,5),f(325,155,16,6),f(375,155,17,6),f(425,155,18,6),f(375,205,19,6),f(375,255,20,6),f(580,455,21,7),f(195,455,22,7),f(375,95,23,7)],coinSpawnPoints:[],monsters:[Q(150,490,500,"left",0,1),Q(150,130,500,"left",0,1),Q(150,130,500,"right",0,1),Q(100,400,200,"right",0,1),Q(500,400,200,"left",0,1),xe(200,200,1,.1,500)],monsterSpawnPoints:[{spawnDelay:3e3,createMonster:()=>oe(le(d.MONSTER_SIZE),ce(d.MONSTER_SIZE),150,1)},{spawnDelay:6e3,createMonster:()=>oe(le(d.MONSTER_SIZE),ce(d.MONSTER_SIZE),50,1)},{spawnDelay:5e3,createMonster:()=>ve(50,550,1,8e3)}]},wa={id:"level4",name:"nav",width:d.CANVAS_WIDTH,height:d.CANVAS_HEIGHT,playerStart:Me(d.PLAYER_WIDTH,d.PLAYER_HEIGHT),spawnIndicatorColor:"#ffe66d",groupSequence:[1,2,3,4,5],ground:{x:0,y:d.CANVAS_HEIGHT-40,width:d.CANVAS_WIDTH,height:40,color:"#586c5c"},platforms:[I(580,500,{width:150,height:15},"#586c5c","#202e32"),I(580,445,{width:150,height:15},"#586c5c","#202e32"),Se(500,245,150,"#586c5c","#202e32"),Se(555,245,150,"#586c5c","#202e32"),I(90,45,{width:150,height:15},"#586c5c","#202e32"),I(90,100,{width:150,height:15},"#586c5c","#202e32"),Se(240,160,150,"#586c5c","#202e32"),Se(295,160,150,"#586c5c","#202e32"),I(90,500,{width:200,height:15},"#586c5c","#202e32"),I(235,400,{width:150,height:15},"#586c5c","#202e32"),I(415,145,{width:150,height:15},"#586c5c","#202e32"),I(530,45,{width:200,height:15},"#586c5c","#202e32")],bombs:[f(595,467,1,1),f(645,467,2,1),f(695,467,3,1),f(522,255,4,2),f(522,305,5,2),f(522,355,6,2),f(130,467,7,3),f(180,467,8,3),f(230,467,9,3),f(250,367,10,4),f(300,367,11,4),f(350,367,12,4),f(263,170,13,5),f(263,220,14,5),f(263,270,15,5),f(100,67,16,6),f(150,67,17,6),f(200,67,18,6),f(430,113,19,7),f(480,113,20,7),f(530,113,21,7),f(630,68,22,8),f(680,68,23,8)],coinSpawnPoints:[],monsterSpawnPoints:[{spawnDelay:4e3,createMonster:()=>oe(le(d.MONSTER_SIZE),ce(d.MONSTER_SIZE),65,1)},{spawnDelay:6e3,createMonster:()=>oe(240,350,40,1)},{spawnDelay:2e3,createMonster:()=>ve(50,50,1.2,8e3)},{spawnDelay:4e3,createMonster:()=>ve(50,50,1.2,8e3)},{spawnDelay:4e3,createMonster:()=>xe(le(d.MONSTER_SIZE),ce(d.MONSTER_SIZE),3,.5)},{spawnDelay:9e3,createMonster:()=>xe(590,400,3,.5)}],monsters:[ne(500,170,350,"right"),ne(240,60,340,"right"),Q(90,500,200,"left"),Q(90,45,150,"right")]},ya={id:"level5",name:"kommunehuset",width:d.CANVAS_WIDTH,height:d.CANVAS_HEIGHT,playerStart:Me(d.PLAYER_WIDTH,d.PLAYER_HEIGHT),spawnIndicatorColor:"#a8e6cf",groupSequence:[1,2,3,4,5,6],ground:{x:0,y:d.CANVAS_HEIGHT-40,width:d.CANVAS_WIDTH,height:40,color:"#8d4fc9"},platforms:[I(375,300,{width:50,height:15},"#ff4700","#631b09"),I(88,300,{width:50,height:15},"#ff4700","#631b09"),I(667,300,{width:50,height:15},"#ff4700","#631b09")],bombs:[f(150,60,1,1),f(100,60,2,1),f(50,60,3,1),f(625,60,4,2),f(675,60,5,2),f(725,60,6,2),f(150,525,7,3),f(100,525,8,3),f(50,525,9,3),f(625,525,10,4),f(675,525,11,4),f(725,525,12,4),f(438,100,13,5),f(388,100,14,5),f(338,100,15,5),f(338,525,16,6),f(388,525,17,6),f(438,525,18,6),f(388,330,19,6),f(388,380,20,6),f(388,430,21,6),f(101,270,22,7),f(680,270,23,7)],monsters:[ne(520,200,350,"right"),ne(225,200,350,"right"),ne(520,20,350,"right"),ne(225,20,350,"right"),Q(0,550,800,"left")],monsterSpawnPoints:[{spawnDelay:5e3,createMonster:()=>ve(700,150)},{spawnDelay:7e3,createMonster:()=>oe(100,150)},{spawnDelay:1e4,createMonster:()=>xe(le(d.MONSTER_SIZE),ce(d.MONSTER_SIZE+200))},{spawnDelay:15e3,createMonster:()=>oe(le(d.MONSTER_SIZE),ce(d.MONSTER_SIZE-200))}],coinSpawnPoints:[{x:400,y:500,type:P.POWER,spawnAngle:46},{x:500,y:200,type:P.POWER,spawnAngle:45},{x:388,y:50,type:P.BONUS_MULTIPLIER},{x:388,y:50,type:P.EXTRA_LIFE},{x:101,y:50,type:P.BONUS_MULTIPLIER},{x:101,y:50,type:P.EXTRA_LIFE},{x:680,y:50,type:P.BONUS_MULTIPLIER},{x:680,y:50,type:P.EXTRA_LIFE}]};I(200,d.CANVAS_HEIGHT-120,{width:200,height:15},"#ebb185"),I(600,d.CANVAS_HEIGHT-110,{width:200,height:15},"#ebb185"),I(100,d.CANVAS_HEIGHT-180,{width:200,height:15},"#ebb185"),I(700,d.CANVAS_HEIGHT-180,{width:200,height:15},"#ebb185"),I(300,d.CANVAS_HEIGHT-240,{width:200,height:15},"#ebb185"),I(500,d.CANVAS_HEIGHT-240,{width:200,height:15},"#ebb185"),I(150,d.CANVAS_HEIGHT-300,{width:200,height:15},"#ebb185"),I(650,d.CANVAS_HEIGHT-300,{width:200,height:15},"#ebb185"),I(400,d.CANVAS_HEIGHT-370,{width:200,height:15},"#ebb185"),I(250,d.CANVAS_HEIGHT-420,{width:200,height:15},"#ebb185"),I(550,d.CANVAS_HEIGHT-420,{width:200,height:15},"#ebb185"),d.CANVAS_HEIGHT-70,d.MONSTER_SIZE,d.MONSTER_SIZE,$.MONSTER,F.HORIZONTAL_PATROL,d.CANVAS_HEIGHT-130,d.MONSTER_SIZE,d.MONSTER_SIZE,$.MONSTER,F.HORIZONTAL_PATROL,d.CANVAS_HEIGHT-170,d.MONSTER_SIZE,d.MONSTER_SIZE,$.MONSTER,F.HORIZONTAL_PATROL,d.CANVAS_HEIGHT-290,d.MONSTER_SIZE,d.MONSTER_SIZE,$.MONSTER,F.HORIZONTAL_PATROL,d.CANVAS_HEIGHT-350,d.MONSTER_SIZE,d.MONSTER_SIZE,$.MONSTER,F.HORIZONTAL_PATROL,d.CANVAS_HEIGHT-100,P.POWER,d.CANVAS_HEIGHT-140,P.POWER;const xa={id:"level7",name:"silicone vally",width:d.CANVAS_WIDTH,height:d.CANVAS_HEIGHT,playerStart:Me(d.PLAYER_WIDTH,d.PLAYER_HEIGHT),spawnIndicatorColor:"#feca57",groupSequence:[1,2,3,4,5],ground:{x:0,y:d.CANVAS_HEIGHT-40,width:d.CANVAS_WIDTH,height:40,color:"#46474c"},platforms:[],bombs:[f(440,530,1,1),f(490,530,2,1),f(540,530,3,1),f(590,530,4,1),f(760,530,5,2),f(760,480,6,2),f(760,430,7,2),f(760,380,8,2),f(590,330,9,3),f(540,330,10,3),f(490,330,11,3),f(440,330,12,3),f(290,530,13,4),f(240,530,14,4),f(190,530,15,4),f(140,530,16,4),f(15,530,17,5),f(15,480,18,5),f(15,430,19,5),f(15,380,20,5),f(190,330,21,6),f(240,330,22,6),f(290,330,23,6)],coinSpawnPoints:[],monsterSpawnPoints:[],monsters:[]},Ce=[ga,ma,ba,wa,ya,xa],va=(r,e)=>(x.info(`Initializing game state slice with ${d.STARTING_LIVES} lives`),{currentState:C.MENU,score:0,levelScore:0,lives:d.STARTING_LIVES,currentLevel:1,showMenu:A.START,previousMenu:null,isPaused:!1,bonusAnimationComplete:!1,setState:t=>{r({currentState:t,isPaused:t===C.PAUSED}),t===C.MENU?r({showMenu:A.START}):t===C.PLAYING&&r({showMenu:A.IN_GAME});const a=e(),i="currentMap"in a?a.currentMap:void 0;Ve(t,i?.name)},setMenuType:t=>{const a=e();t===A.SETTINGS?r({showMenu:t,previousMenu:a.showMenu}):r({showMenu:t})},setBonusAnimationComplete:t=>{r({bonusAnimationComplete:t})},loseLife:()=>{const{lives:t}=e(),a=t-1;x.info(`Losing life: ${t} → ${a}`),r({lives:a});const i=e(),s="currentMap"in i?i.currentMap:void 0;if(Ve(C.PLAYING,s?.name),a<=0){x.info(`GAME OVER triggered at ${a} lives`),r({currentState:C.GAME_OVER,showMenu:A.GAME_OVER});const n="currentMap"in i?i.currentMap:void 0;Ve(C.GAME_OVER,n?.name);const o="getLevelResults"in i?i.getLevelResults():[],c="multiplier"in i?i.multiplier:1,h="getGameStartTime"in i?i.getGameStartTime():Date.now(),m="getSessionId"in i?i.getSessionId():`session_${Date.now()}_${Math.random().toString(36).substr(2,9)}`,g=pa(o,e().score,a,c,"failed",h,Date.now()),p={finalScore:e().score,totalLevels:Ce.length,completedLevels:o.length,timestamp:Date.now(),lives:a,multiplier:c,levelHistory:o,totalCoinsCollected:g.totalCoinsCollected,totalPowerModeActivations:g.totalPowerModeActivations,totalBombs:g.totalBombs,totalCorrectOrders:g.totalCorrectOrders,averageCompletionTime:g.averageCompletionTime,gameEndReason:"failed",sessionId:m,startTime:h,endTime:Date.now()};ha(p)}},addLife:()=>{const{lives:t}=e(),a=t+1;x.info(`Adding life: ${t} → ${a}`),r({lives:a})},nextLevel:()=>{const{currentLevel:t}=e();r({currentLevel:t+1}),r({levelScore:0});const a=e();"resetMultiplier"in a&&(x.debug("Resetting multiplier on level change..."),a.resetMultiplier());const i="currentMap"in a?a.currentMap:void 0;Ve(C.PLAYING,i?.name)},addScore:t=>{const{score:a,levelScore:i,currentLevel:s,lives:n}=e(),o=a+t;r({score:o,levelScore:i+t});const c=e(),h="multiplier"in c?c.multiplier:1,m="currentMap"in c?c.currentMap:void 0;da(o,m?.name||`Level ${s}`,s,n,h)},resetLevelScores:()=>{r({levelScore:0})},resetGameState:()=>{r({currentState:C.MENU,score:0,levelScore:0,lives:d.STARTING_LIVES,currentLevel:1,showMenu:A.START,previousMenu:null,isPaused:!1,bonusAnimationComplete:!1})}}),Sa=(r,e)=>{const t=r?d.BOMB_POINTS.FIREBOMB:d.BOMB_POINTS.NORMAL,a=t*e;return{basePoints:t,actualPoints:a,multiplier:e,isFirebomb:r}},Ma=r=>{const{actualPoints:e,isFirebomb:t,multiplier:a}=r;return`🎯 Score: +${e} (${t?"Firebomb":"Normal"} x${a})`},Ca=(r,e)=>{const{MULTIPLIER_THRESHOLDS:t,MAX_MULTIPLIER:a}=d;if(e>=a)return 1;const i=t[e],s=t[e+1];if(!s)return 1;const n=(r-i)/(s-i);return Math.max(0,Math.min(1,n))},Ta=(r,e)=>({bombs:[],collectedBombs:[],correctOrderCount:0,nextBombOrder:1,bombManager:null,collectBomb:t=>{const{bombs:a,bombManager:i}=e(),s=a.find(p=>p.order===t);if(!s||!i)return x.warn("Bomb or bomb manager not found"),{isValid:!1,isCorrect:!1};const n=i.handleBombClick(s.group,s.order);if(!n.isValid)return{isValid:!1,isCorrect:!1};const o=n.isCorrect,c=e(),h="multiplier"in c?c.multiplier:1,m=Sa(o,h);if("addScore"in c&&c.addScore(m.actualPoints),"addMultiplierScore"in c&&c.addMultiplierScore(m.actualPoints),"coinManager"in c&&c.coinManager&&c.coinManager.onPointsEarned(m.actualPoints,!1),(o||m.actualPoints>=400)&&x.score(Ma(m)),o&&"addFloatingText"in c){const p=a.find(y=>y.order===t);if(p){const y=`${m.actualPoints}`;c.addFloatingText(y,p.x+p.width/2,p.y+p.height/2,1e3,"#FFD700",15)}}const g=a.map(p=>{if(p.order===t)return{...p,isCollected:!0,isCorrect:n.isCorrect};const y=i.getActiveGroup(),M=i.getNextBombOrder(),T=y!==null&&M!==null&&p.group===y&&p.order===M&&!p.isCollected;return{...p,isBlinking:T}});return r({bombs:g,correctOrderCount:i.getCorrectOrderCount(),collectedBombs:Array.from(i.getCollectedBombs()).map(p=>{const[y,M]=p.split("-").map(Number);return M})}),{isValid:!0,isCorrect:n.isCorrect}},setBombs:t=>{r({bombs:t})},setBombManager:t=>{r({bombManager:t})},resetBombState:()=>{r({bombs:[],collectedBombs:[],correctOrderCount:0,nextBombOrder:1,bombManager:null})}});class Ea{constructor(e){b(this,"bombs",[]);b(this,"collectedBombs",new Set);b(this,"correctBombs",new Set);b(this,"activeGroup",null);b(this,"nextBombOrder",null);b(this,"gameStarted",!1);this.setBombs(e)}reset(){this.collectedBombs.clear(),this.correctBombs.clear(),this.activeGroup=null,this.nextBombOrder=null,this.gameStarted=!1}setBombs(e){this.bombs=e}handleBombClick(e,t){const a=`${e}-${t}`;if(this.collectedBombs.has(a))return{isValid:!1,isCorrect:!1,gameCompleted:!1};if(!this.gameStarted)return this.startGame(e,t),this.collectBomb(a,!0),this.updateNextBomb(),{isValid:!0,isCorrect:!0,gameCompleted:this.isGameCompleted()};const i=this.isValidBomb(e,t);return i?(this.collectBomb(a,!0),this.updateNextBomb()):this.collectBomb(a,!1),{isValid:!0,isCorrect:i,gameCompleted:this.isGameCompleted()}}startGame(e,t){this.gameStarted=!0,this.activeGroup=e,this.nextBombOrder=this.findLowestOrderInGroup(e)}isValidBomb(e,t){return this.activeGroup===null||this.nextBombOrder===null?!1:e===this.activeGroup&&t===this.nextBombOrder&&!this.collectedBombs.has(`${e}-${t}`)}collectBomb(e,t){this.collectedBombs.add(e),t&&this.correctBombs.add(e)}updateNextBomb(){if(this.activeGroup!==null)if(this.isGroupCompleted(this.activeGroup)){x.dev(`GROUP ${this.activeGroup} COMPLETED!`);const e=this.findNextAvailableGroup();if(e!==null)this.activeGroup=e,this.nextBombOrder=this.findLowestOrderInGroup(e);else{this.activeGroup=null,this.nextBombOrder=null;return}}else{const e=this.findNextAvailableOrderInGroup(this.activeGroup);e!==null&&(this.nextBombOrder=e)}}isGroupCompleted(e){return this.bombs.filter(a=>a.group===e).every(a=>{const i=`${a.group}-${a.order}`;return this.collectedBombs.has(i)})}findNextAvailableGroup(){const e=[...new Set(this.bombs.map(t=>t.group))].sort((t,a)=>t-a);for(const t of e)if(!this.isGroupCompleted(t))return t;return null}findLowestOrderInGroup(e){const a=this.bombs.filter(i=>i.group===e).filter(i=>{const s=`${i.group}-${i.order}`;return!this.collectedBombs.has(s)});return a.length>0?Math.min(...a.map(i=>i.order)):null}findNextAvailableOrderInGroup(e){return this.findLowestOrderInGroup(e)}isGameCompleted(){return this.collectedBombs.size===this.bombs.length}getCollectedBombs(){return new Set(this.collectedBombs)}getCorrectBombs(){return new Set(this.correctBombs)}getActiveGroup(){return this.activeGroup}getNextBombOrder(){return this.nextBombOrder}isGameStarted(){return this.gameStarted}getCorrectOrderCount(){return this.correctBombs.size}}const Aa=(r,e)=>({currentMap:null,levelStartTime:0,levelCompletionTime:null,monsters:[],platforms:[],ground:null,initializeLevel:t=>{const a=new Ea(t.bombs),s=[...t.bombs].sort((c,h)=>c.group-h.group||c.order-h.order)[0],n=c=>{switch(c){case F.HORIZONTAL_PATROL:return $.MONSTER;case F.VERTICAL_PATROL:return"#FF6B6B";case F.CHASER:return"#FFD93D";case F.AMBUSHER:return"#FF8800";case F.FLOATER:return"#4ECDC4";default:return $.MONSTER}},o=t.monsters.map(c=>({...c,color:c.color||n(c.type)}));return r({currentMap:t,platforms:t.platforms,ground:t.ground,monsters:o}),{bombManager:a,firstBomb:s}},updateMonsters:t=>{r({monsters:t})},resetLevelState:()=>{r({currentMap:null,levelStartTime:0,levelCompletionTime:null,monsters:[],platforms:[],ground:null})},sendLevelCompletionData:t=>{const{levelStartTime:a}=e(),i=Date.now()-a,s={...t,timestamp:Date.now(),completionTime:i};x.debug("Sending level completion data:",s),bt(s)}}),Pa=(r,e)=>({levelHistory:[],gameStartTime:0,sessionId:`session_${Date.now()}_${Math.random().toString(36).substr(2,9)}`,addLevelResult:t=>{r(a=>({levelHistory:[...a.levelHistory,{...t,completionTime:t.completionTime||0,timestamp:t.timestamp||Date.now(),lives:t.lives||0,multiplier:t.multiplier||1,totalBombs:t.totalBombs||0,correctOrderCount:t.correctOrderCount||0}]}))},getLevelResults:()=>e().levelHistory,resetLevelHistory:()=>{r({levelHistory:[],gameStartTime:Date.now(),sessionId:`session_${Date.now()}_${Math.random().toString(36).substr(2,9)}`})},setGameStartTime:t=>{r({gameStartTime:t})},getGameStartTime:()=>e().gameStartTime,getSessionId:()=>e().sessionId}),Na=(r,e)=>({multiplier:1,multiplierScore:0,calculateMultiplier:t=>{const{MULTIPLIER_THRESHOLDS:a,MAX_MULTIPLIER:i}=d;for(let s=i;s>=1;s--)if(t>=a[s])return s;return 1},addMultiplierScore:t=>{const{multiplier:a,multiplierScore:i,calculateMultiplier:s}=e(),n=i+t,o=s(n),c=o>a;return r({multiplier:Math.max(a,o),multiplierScore:c?0:n}),{newMultiplier:Math.max(a,o),multiplierIncreased:c}},resetMultiplier:()=>{r({multiplier:1,multiplierScore:0})},setMultiplier:(t,a)=>{r({multiplier:t,multiplierScore:a})}}),Oa=(r,e)=>({audioSettings:gt,audioManager:null,updateAudioSettings:t=>{r({audioSettings:{...e().audioSettings,...t}});const a=e().audioManager;a&&a.updateVolumes&&a.updateVolumes()},resetAudioSettings:()=>{r({audioSettings:gt});const t=e().audioManager;t&&t.updateVolumes&&t.updateVolumes()},setAudioManager:t=>{r({audioManager:t})}}),Ia=(r,e)=>({coins:[],coinManager:null,activeEffects:{powerMode:!1,powerModeEndTime:0},firebombCount:0,totalCoinsCollected:0,totalPowerCoinsCollected:0,totalBonusMultiplierCoinsCollected:0,totalExtraLifeCoinsCollected:0,setCoins:t=>{r({coins:t})},setCoinManager:t=>{r({coinManager:t})},collectCoin:t=>{const{coinManager:a}=e();if(!a)return;a.collectCoin(t);const i=e().coins.map(y=>y===t?{...y,isCollected:!0}:y);let s=0;if(a.isPowerModeActive()&&t.type==="POWER"&&t.spawnTime!==void 0){const y=a.getPcoinColorForTime(t.spawnTime);s=Date.now()+y.duration}const n={powerMode:a.isPowerModeActive(),powerModeEndTime:s},o=e(),c=o.totalCoinsCollected+1,h=o.totalPowerCoinsCollected+(t.type==="POWER"?1:0),m=o.totalBonusMultiplierCoinsCollected+(t.type==="BONUS_MULTIPLIER"?1:0),g=o.totalExtraLifeCoinsCollected+(t.type==="EXTRA_LIFE"?1:0);r({coins:i,activeEffects:n,totalCoinsCollected:c,totalPowerCoinsCollected:h,totalBonusMultiplierCoinsCollected:m,totalExtraLifeCoinsCollected:g});const p=e();if(t.type==="POWER")"addScore"in p&&p.addScore(d.POWER_COIN_POINTS);else if(t.type==="BONUS_MULTIPLIER"){if("addScore"in p&&"multiplier"in p){const y=p.multiplier,M=1e3*y;if(p.addScore(M),y<d.MAX_MULTIPLIER&&"addMultiplierScore"in p&&"multiplierScore"in p){const{MULTIPLIER_THRESHOLDS:T}=d,R=T[y+1];if(R!==void 0){const G=R-p.multiplierScore;p.addMultiplierScore(G)}}}}else if(t.type==="EXTRA_LIFE"&&"addScore"in p&&"multiplier"in p&&"addLife"in p){const y=p.multiplier,M=d.EXTRA_LIFE_COIN_POINTS*y;p.addScore(M),p.addLife(),x.debug("Extra life added via coin slice!")}x.debug(`Coin collected: ${t.type} (Total: ${c}, Power: ${h}, Bonus: ${m})`)},onFirebombCollected:()=>{const{coinManager:t}=e();t&&(t.onFirebombCollected(),r({firebombCount:t.getFirebombCount(),coins:t.getCoins()}))},resetCoinState:()=>{const{coinManager:t}=e();t&&t.reset(),r({coins:[],activeEffects:{powerMode:!1,powerModeEndTime:0},firebombCount:0,totalCoinsCollected:0,totalPowerCoinsCollected:0,totalBonusMultiplierCoinsCollected:0,totalExtraLifeCoinsCollected:0})},getCoinStats:()=>{const t=e();return{totalCoinsCollected:t.totalCoinsCollected,totalPowerCoinsCollected:t.totalPowerCoinsCollected,totalBonusMultiplierCoinsCollected:t.totalBonusMultiplierCoinsCollected,totalExtraLifeCoinsCollected:t.totalExtraLifeCoinsCollected}},updateMonsterStates:t=>{const{coinManager:a}=e();if(!a)return;const i=e().activeEffects.powerMode,s=a.isPowerModeActive();i&&!s?t.forEach(o=>{o.isFrozen=!1}):a.updateMonsters(t);let n=0;s&&a&&(n=a.getPowerModeEndTime()),r({activeEffects:{powerMode:s,powerModeEndTime:n}})},resetEffects:()=>{const{coinManager:t}=e();t&&t.resetEffects(),r({activeEffects:{powerMode:!1,powerModeEndTime:0}})}}),Ra=(r,e)=>({floatingTexts:[],addFloatingText:(t,a,i,s=1e3,n="#FFFFFF",o=16)=>{const h={id:`floating-text-${Date.now()}-${Math.random()}`,text:t,x:a,y:i,startTime:Date.now(),duration:s,color:n,fontSize:o};r(m=>({floatingTexts:[...m.floatingTexts,h]}))},removeFloatingText:t=>{r(a=>({floatingTexts:a.floatingTexts.filter(i=>i.id!==t)}))},updateFloatingTexts:()=>{const t=Date.now();r(a=>({floatingTexts:a.floatingTexts.filter(i=>t-i.startTime<i.duration)}))},clearAllFloatingTexts:()=>{r({floatingTexts:[]})}}),fe=class fe{constructor(){b(this,"config");b(this,"globalPauseState");b(this,"monsterCache");b(this,"globalCache");b(this,"cacheTimeout",1e3);b(this,"globalStartTime",0);this.config=this.getDefaultConfig(),this.globalPauseState=this.createPauseState(),this.monsterCache=new Map,this.globalCache=null}static getInstance(){return fe.instance||(fe.instance=new fe),fe.instance}getDefaultConfig(){return{base:{ambusher:{ambushInterval:5e3,speed:2},chaser:{speed:1,directness:.3,updateInterval:200},floater:{speed:2,bounceAngle:.2},patrol:{speed:1}},scaling:{ambusher:{ambushInterval:-500,speed:.08},chaser:{speed:.2,directness:.08,updateInterval:-8},floater:{speed:.5,bounceAngle:.008},patrol:{speed:.2}},max:{ambusher:{ambushInterval:500,speed:10},chaser:{speed:5,directness:1,updateInterval:100},floater:{speed:5,bounceAngle:.5},patrol:{speed:5}}}}updateConfig(e){this.config={...this.config,...e},this.clearCache(),v.debug("ScalingManager: Configuration updated")}createPauseState(){return{isPaused:!1,pauseStartTime:0,totalPausedTime:0,pauseReasons:new Set}}pause(e="default"){this.globalPauseState.isPaused||(this.globalPauseState.isPaused=!0,this.globalPauseState.pauseStartTime=Date.now()),this.globalPauseState.pauseReasons.add(e),v.pause(`Scaling paused (${e})`)}resume(e="default"){if(this.globalPauseState.pauseReasons.delete(e),this.globalPauseState.pauseReasons.size===0&&this.globalPauseState.isPaused){const t=Date.now()-this.globalPauseState.pauseStartTime;this.globalPauseState.totalPausedTime+=t,this.globalPauseState.isPaused=!1,this.clearCache(),v.pause(`Scaling resumed (paused for ${(t/1e3).toFixed(1)}s)`)}}isPaused(){return this.globalPauseState.isPaused}getPauseReasons(){return Array.from(this.globalPauseState.pauseReasons)}getPauseStatus(){return{isPaused:this.globalPauseState.isPaused,pauseReasons:this.getPauseReasons(),totalPausedTime:this.globalPauseState.totalPausedTime,timeElapsed:this.getGlobalTimeElapsed(),globalStartTime:this.globalStartTime,currentTime:Date.now()}}startMap(){this.globalStartTime=Date.now(),this.globalPauseState=this.createPauseState(),this.clearCache(),v.flow("New map started - difficulty reset")}resetOnDeath(){this.globalStartTime=Date.now(),this.globalPauseState=this.createPauseState(),this.clearCache(),v.player("Player died - difficulty reset to base values")}getGlobalScaledValues(){const e=Date.now();if(this.globalCache&&e-this.globalCache.lastUpdate<this.cacheTimeout)return this.globalCache.values;const t=this.calculateScaledValues(this.getGlobalTimeElapsed());return this.globalCache={values:t,lastUpdate:e},t}getGlobalTimeElapsed(){return this.globalStartTime===0?0:(Date.now()-this.globalStartTime-this.globalPauseState.totalPausedTime)/1e3}pauseForPowerMode(){this.pause("power_mode"),v.power("Power mode activated - scaling paused")}resumeFromPowerMode(){this.resume("power_mode"),v.power("Power mode ended - scaling resumed")}isCurrentlyPausedByPowerMode(){return this.globalPauseState.pauseReasons.has("power_mode")}pauseAllMonsterScaling(){this.pause("monster_scaling"),this.globalPauseState.pauseReasons.size===1&&v.pause("All monster scaling paused")}resumeAllMonsterScaling(){this.resume("monster_scaling"),this.globalPauseState.pauseReasons.size===0&&v.pause("All monster scaling resumed")}getMonsterScaledValues(e){if(this.initializeMonster(e),e.individualScalingPaused||this.globalPauseState.isPaused)return this.config.base;const t=this.getMonsterCacheKey(e),a=Date.now(),i=this.monsterCache.get(t);if(i&&a-i.lastUpdate<this.cacheTimeout)return i.values;const s=i?.values||this.config.base,n=this.calculateScaledValues(this.getMonsterAge(e));return this.logScalingChanges(e,s,n),this.monsterCache.set(t,{values:n,lastUpdate:a}),n}initializeMonster(e){if(!e.individualSpawnTime){e.individualSpawnTime=Date.now(),e.individualScalingPaused=!1,e.spawnPauseTime=this.globalPauseState.totalPausedTime;const t=this.config.base;let a="";switch(e.type){case"AMBUSHER":a=`ambush interval: ${t.ambusher.ambushInterval}ms, speed: ${t.ambusher.speed.toFixed(2)}`;break;case"CHASER":a=`speed: ${t.chaser.speed.toFixed(2)}, directness: ${t.chaser.directness.toFixed(3)}, update interval: ${t.chaser.updateInterval}ms`;break;case"FLOATER":a=`speed: ${t.floater.speed.toFixed(2)}, bounce angle: ${t.floater.bounceAngle.toFixed(3)}`;break;case"HORIZONTAL_PATROL":case"VERTICAL_PATROL":a=`speed: ${t.patrol.speed.toFixed(2)}`;break;default:a="base values"}v.scaling(`${e.type} initialized with ${a}`)}}resetMonsterScaling(e){e.individualSpawnTime=Date.now(),e.individualScalingPaused=!1,e.spawnPauseTime=this.globalPauseState.totalPausedTime,this.monsterCache.delete(this.getMonsterCacheKey(e)),v.monster(`${e.type} scaling reset`)}pauseMonsterScaling(e){e.individualScalingPaused=!0,this.monsterCache.delete(this.getMonsterCacheKey(e))}resumeMonsterScaling(e){e.individualScalingPaused=!1,this.monsterCache.delete(this.getMonsterCacheKey(e))}getMonsterAge(e){if(!e.individualSpawnTime)return 0;const a=Date.now()-e.individualSpawnTime,i=this.globalPauseState.totalPausedTime-(e.spawnPauseTime||0),s=a-i,n=Math.max(0,s)/1e3;return this.globalPauseState.isPaused&&n>0&&v.debug(`Monster age: ${e.type} - Actual: ${(a/1e3).toFixed(1)}s, Paused: ${(i/1e3).toFixed(1)}s, Adjusted: ${n.toFixed(1)}s`),n}getMonsterCacheKey(e){const t=`${Math.round(e.x)}-${Math.round(e.y)}`;return`${e.type}-${t}-${e.individualSpawnTime||0}`}logScalingChanges(e,t,a){const i=this.getMonsterAge(e),s=Math.floor(i/5);if(s>0&&s%1===0){const n=[];switch(e.type){case"AMBUSHER":Math.abs(t.ambusher.speed-a.ambusher.speed)>.01&&n.push(`speed: ${t.ambusher.speed.toFixed(2)} → ${a.ambusher.speed.toFixed(2)}`),Math.abs(t.ambusher.ambushInterval-a.ambusher.ambushInterval)>50&&n.push(`ambush interval: ${t.ambusher.ambushInterval}ms → ${a.ambusher.ambushInterval}ms`);break;case"CHASER":Math.abs(t.chaser.speed-a.chaser.speed)>.01&&n.push(`speed: ${t.chaser.speed.toFixed(2)} → ${a.chaser.speed.toFixed(2)}`),Math.abs(t.chaser.directness-a.chaser.directness)>.01&&n.push(`directness: ${t.chaser.directness.toFixed(3)} → ${a.chaser.directness.toFixed(3)}`),Math.abs(t.chaser.updateInterval-a.chaser.updateInterval)>5&&n.push(`update interval: ${t.chaser.updateInterval}ms → ${a.chaser.updateInterval}ms`);break;case"FLOATER":Math.abs(t.floater.speed-a.floater.speed)>.01&&n.push(`speed: ${t.floater.speed.toFixed(2)} → ${a.floater.speed.toFixed(2)}`),Math.abs(t.floater.bounceAngle-a.floater.bounceAngle)>.001&&n.push(`bounce angle: ${t.floater.bounceAngle.toFixed(3)} → ${a.floater.bounceAngle.toFixed(3)}`);break;case"HORIZONTAL_PATROL":case"VERTICAL_PATROL":Math.abs(t.patrol.speed-a.patrol.speed)>.01&&n.push(`speed: ${t.patrol.speed.toFixed(2)} → ${a.patrol.speed.toFixed(2)}`);break}n.length>0&&v.scaling(`${e.type} scaling (${i.toFixed(1)}s, interval ${s}): ${n.join(", ")}`)}}calculateScaledValues(e){const t=Math.floor(e/5);return{ambusher:{ambushInterval:this.calculateScaledValue(this.config.base.ambusher.ambushInterval,this.config.scaling.ambusher.ambushInterval,this.config.max.ambusher.ambushInterval,t),speed:this.calculateScaledValue(this.config.base.ambusher.speed,this.config.scaling.ambusher.speed,this.config.max.ambusher.speed,t)},chaser:{speed:this.calculateScaledValue(this.config.base.chaser.speed,this.config.scaling.chaser.speed,this.config.max.chaser.speed,t),directness:this.calculateScaledValue(this.config.base.chaser.directness,this.config.scaling.chaser.directness,this.config.max.chaser.directness,t),updateInterval:this.calculateScaledValue(this.config.base.chaser.updateInterval,this.config.scaling.chaser.updateInterval,this.config.max.chaser.updateInterval,t)},floater:{speed:this.calculateScaledValue(this.config.base.floater.speed,this.config.scaling.floater.speed,this.config.max.floater.speed,t),bounceAngle:this.calculateScaledValue(this.config.base.floater.bounceAngle,this.config.scaling.floater.bounceAngle,this.config.max.floater.bounceAngle,t)},patrol:{speed:this.calculateScaledValue(this.config.base.patrol.speed,this.config.scaling.patrol.speed,this.config.max.patrol.speed,t)}}}calculateScaledValue(e,t,a,i){const s=e+t*i;return t>0?Math.min(s,a):Math.max(s,a)}clearCache(){this.monsterCache.clear(),this.globalCache=null}getBaseValues(){return{...this.config.base}}cleanup(){this.clearCache(),this.globalPauseState=this.createPauseState()}};b(fe,"instance");let K=fe;const Ue={POWER_MODE:{type:"POWER_MODE",duration:d.POWER_COIN_DURATION,points:d.POWER_COIN_POINTS,apply:(r,e)=>{let t=d.POWER_COIN_DURATION;if(e&&e.spawnTime!==void 0){const a=r.coinManager;if(a&&typeof a.getPcoinColorForTime=="function")try{t=a.getPcoinColorForTime(e.spawnTime).duration||d.POWER_COIN_DURATION}catch(i){console.warn("Failed to get P-coin color data, using default duration:",i)}}r.monsters&&Array.isArray(r.monsters)&&r.monsters.forEach(a=>{a.isFrozen=!0}),r.activeEffects.powerMode=!0,r.activeEffects.powerModeEndTime=Date.now()+t,r.coinManager&&r.coinManager.resetMonsterKillCount();try{K.getInstance().pauseForPowerMode()}catch{console.log("Could not pause difficulty scaling (ScalingManager not available)")}},remove:r=>{r.monsters&&Array.isArray(r.monsters)&&r.monsters.forEach(e=>{e.isFrozen=!1}),r.activeEffects.powerMode=!1;try{K.getInstance().resumeFromPowerMode()}catch{console.log("Could not resume difficulty scaling (ScalingManager not available)")}}},BONUS_MULTIPLIER:{type:"BONUS_MULTIPLIER",points:0,apply:r=>{const e=1e3*r.multiplier;r.addScore(e),r.multiplier<d.MAX_MULTIPLIER&&r.setMultiplier(r.multiplier+1,0)}},EXTRA_LIFE:{type:"EXTRA_LIFE",points:1e3,apply:r=>{r.lives+=1}}},_e={STANDARD:{hasGravity:!0,bounces:!0,reflects:!1},POWER:{hasGravity:!1,bounces:!1,reflects:!0},GRAVITY_ONLY:{hasGravity:!1,bounces:!1,reflects:!1,customUpdate:(r,e,t)=>{if((r.velocityY>0||r.velocityY===void 0)&&(r.velocityX=0,r.velocityY=2),t&&r.y+r.height>=t.y){r.y=t.y-r.height,r.velocityY=0,r.groundDirection||(r.groundDirection=Math.random()<.5?-1:1,r.velocityX=r.groundDirection*1),r.x+=r.velocityX,r.x<=0?(r.x=0,r.groundDirection=1,r.velocityX=1):r.x+r.width>=d.CANVAS_WIDTH&&(r.x=d.CANVAS_WIDTH-r.width,r.groundDirection=-1,r.velocityX=-1);return}let o=!1,c=null;for(const h of e){const m=r.y+r.height,g=h.y,p=m>=g&&m<=g+4,y=r.x<h.x+h.width&&r.x+r.width>h.x;if(p&&y){o=!0,c=h,r.y=g-r.height,r.velocityY=0,r.platformDirection||(r.platformDirection=Math.random()<.5?-1:1,r.velocityX=r.platformDirection*1);break}}o&&c?(r.x+=r.velocityX,(r.x+r.width<=c.x+0||r.x>=c.x+c.width-0)&&(r.platformDirection=null,r.velocityX=0,r.velocityY=2)):o||(r.platformDirection=null,r.velocityX=0,r.velocityY=2)}}},Le=[{color:"#3c82f6",points:100,name:"Blue",duration:3e3},{color:"#ef4444",points:200,name:"Red",duration:4e3},{color:"#a855f7",points:300,name:"Purple",duration:5e3},{color:"#22c55d",points:500,name:"Green",duration:6e3},{color:"#07b6d4",points:800,name:"Cyan",duration:7e3},{color:"#ebb305",points:1200,name:"Yellow",duration:8e3},{color:"#6b7280",points:2e3,name:"Gray",duration:1e4}],de={[P.POWER]:{type:P.POWER,color:"#FF0000",points:0,physics:_e.POWER,effects:[Ue.POWER_MODE],spawnCondition:r=>r.firebombCount%9===0,maxActive:1},[P.BONUS_MULTIPLIER]:{type:P.BONUS_MULTIPLIER,color:"#e9b300",points:d.BONUS_MULTIPLIER_COIN_POINTS,physics:_e.GRAVITY_ONLY,effects:[Ue.BONUS_MULTIPLIER],spawnCondition:r=>{const e=r.bombAndMonsterPoints||r.score||0;return e>0&&e%d.BONUS_COIN_SPAWN_INTERVAL===0},maxActive:1},[P.EXTRA_LIFE]:{type:P.EXTRA_LIFE,color:"#ef4444",points:d.EXTRA_LIFE_COIN_POINTS,physics:_e.GRAVITY_ONLY,effects:[Ue.EXTRA_LIFE],spawnCondition:r=>{const e=r.totalBonusMultiplierCoinsCollected||0;return e>0&&e%d.EXTRA_LIFE_COIN_RATIO===0},maxActive:1}};class ke{static updateCoin(e,t,a,i){e.isCollected||(i?(i.hasGravity&&(e.velocityY+=d.COIN_GRAVITY),e.x+=e.velocityX,e.y+=e.velocityY,i.reflects?this.handleReflectiveCollisions(e,t,a):i.bounces&&this.handleBouncingCollisions(e,t,a),i.customUpdate&&i.customUpdate(e,t,a)):this.updateStandardCoin(e,t,a))}static updateStandardCoin(e,t,a){this.updateCoin(e,t,a,_e.STANDARD)}static updatePowerCoin(e,t,a){this.updateCoin(e,t,a,_e.POWER)}static handleBouncingCollisions(e,t,a){this.handleBoundaryCollisions(e),this.handlePlatformCollisions(e,t),this.handleGroundCollisions(e,a)}static handleReflectiveCollisions(e,t,a){this.handlePowerCoinBoundaryCollisions(e),this.handlePowerCoinPlatformCollisions(e,t),this.handlePowerCoinGroundCollisions(e,a)}static handleBoundaryCollisions(e){e.x<=0?(e.x=0,e.velocityX=Math.abs(e.velocityX)*d.COIN_BOUNCE_DAMPING):e.x+e.width>=d.CANVAS_WIDTH&&(e.x=d.CANVAS_WIDTH-e.width,e.velocityX=-Math.abs(e.velocityX)*d.COIN_BOUNCE_DAMPING),e.y<=0&&(e.y=0,e.velocityY=Math.abs(e.velocityY)*d.COIN_BOUNCE_DAMPING)}static handlePowerCoinBoundaryCollisions(e){e.x<=0?(e.x=0,e.velocityX=Math.abs(e.velocityX)):e.x+e.width>=d.CANVAS_WIDTH&&(e.x=d.CANVAS_WIDTH-e.width,e.velocityX=-Math.abs(e.velocityX)),e.y<=0?(e.y=0,e.velocityY=Math.abs(e.velocityY)):e.y+e.height>=d.CANVAS_HEIGHT&&(e.y=d.CANVAS_HEIGHT-e.height,e.velocityY=-Math.abs(e.velocityY))}static handlePlatformCollisions(e,t){t.forEach(a=>{if(this.isColliding(e,a)){const i=e.x+e.width/2,s=e.y+e.height/2,n=a.x+a.width/2,o=a.y+a.height/2,c=i-n,h=s-o;Math.abs(c)>Math.abs(h)?c>0?(e.x=a.x+a.width,e.velocityX=Math.abs(e.velocityX)*d.COIN_BOUNCE_DAMPING):(e.x=a.x-e.width,e.velocityX=-Math.abs(e.velocityX)*d.COIN_BOUNCE_DAMPING):h>0?(e.y=a.y+a.height,e.velocityY=Math.abs(e.velocityY)*d.COIN_BOUNCE_DAMPING):(e.y=a.y-e.height,e.velocityY=-Math.abs(e.velocityY)*d.COIN_BOUNCE_DAMPING)}})}static handlePowerCoinPlatformCollisions(e,t){for(const a of t)if(this.isColliding(e,a)){const i=this.calculateCollisionNormal(e,a);Math.random()<.1&&x.debug(`P-coin platform collision - Normal: (${i.x.toFixed(2)}, ${i.y.toFixed(2)}), Velocity before: (${e.velocityX.toFixed(2)}, ${e.velocityY.toFixed(2)})`);const s=e.velocityX*i.x+e.velocityY*i.y;e.velocityX,e.velocityY,e.velocityX=e.velocityX-2*s*i.x,e.velocityY=e.velocityY-2*s*i.y,Math.random()<.1&&x.debug(`P-coin platform collision - Velocity after: (${e.velocityX.toFixed(2)}, ${e.velocityY.toFixed(2)})`),i.x!==0?i.x>0?e.x=a.x+a.width+1:e.x=a.x-e.width-1:i.y>0?e.y=a.y+a.height+1:e.y=a.y-e.height-1;break}}static handleGroundCollisions(e,t){this.isColliding(e,t)&&(e.y=t.y-e.height,e.velocityY=-Math.abs(e.velocityY)*d.COIN_BOUNCE_DAMPING,Math.abs(e.velocityY)<.5&&(e.velocityY=0))}static handlePowerCoinGroundCollisions(e,t){if(this.isColliding(e,t)){const a=this.calculateCollisionNormal(e,t),i=e.velocityX*a.x+e.velocityY*a.y;e.velocityX=e.velocityX-2*i*a.x,e.velocityY=e.velocityY-2*i*a.y,e.y=t.y-e.height-1}}static isColliding(e,t){return e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y}static createInitialVelocity(){return{velocityX:(Math.random()-.5)*d.COIN_BOUNCE_SPEED*2,velocityY:-3}}static createPowerCoinVelocity(e){const t=d.COIN_BOUNCE_SPEED;if(e!==void 0){const s=e*Math.PI/180;return{velocityX:Math.cos(s)*t,velocityY:Math.sin(s)*t}}const i=Math.random()*360*Math.PI/180;return{velocityX:Math.cos(i)*t,velocityY:Math.sin(i)*t}}static calculateSurfaceNormal(e,t){const a=e.x+e.width/2,i=e.y+e.height/2,s=Math.max(t.x,Math.min(a,t.x+t.width)),n=Math.max(t.y,Math.min(i,t.y+t.height)),o=a-s,c=i-n,h=Math.sqrt(o*o+c*c);if(h>.1)return{x:o/h,y:c/h};{const m=e.x,g=e.x+e.width,p=e.y,y=e.y+e.height,M=t.x,T=t.x+t.width,R=t.y,G=t.y+t.height,L=Math.abs(g-M),U=Math.abs(m-T),W=Math.abs(y-R),ae=Math.abs(p-G),me=Math.min(L,U,W,ae);return me===L?{x:-1,y:0}:me===U?{x:1,y:0}:me===W?{x:0,y:-1}:{x:0,y:1}}}static reflectVelocity(e,t){const a=e.velocityX*t.x+e.velocityY*t.y,i=e.velocityX,s=e.velocityY;e.velocityX=e.velocityX-2*a*t.x,e.velocityY=e.velocityY-2*a*t.y;const n=Math.sqrt(i*i+s*s),o=Math.sqrt(e.velocityX*e.velocityX+e.velocityY*e.velocityY);if(o>.001){const c=n/o;e.velocityX*=c,e.velocityY*=c}}static moveCoinOutOfCollision(e,t){const a=e.x+e.width/2,i=e.y+e.height/2,s=Math.max(t.x,Math.min(a,t.x+t.width)),n=Math.max(t.y,Math.min(i,t.y+t.height)),o=a-s,c=i-n;Math.abs(o)>Math.abs(c)?e.x+=o>0?Math.abs(o):-Math.abs(o):e.y+=c>0?Math.abs(c):-Math.abs(c)}static moveCoinOutOfCollisionSimple(e,t){const a=e.x+e.width/2,i=e.y+e.height/2,s=t.x+t.width/2,n=t.y+t.height/2,o=Math.abs(a-s),c=Math.abs(i-n);o>c?a<s?e.x=t.x-e.width-1:e.x=t.x+t.width+1:i<n?e.y=t.y-e.height-1:e.y=t.y+t.height+1}static calculateCollisionNormal(e,t){const a=e.x+e.width/2,i=e.y+e.height/2,s=Math.max(t.x,Math.min(a,t.x+t.width)),n=Math.max(t.y,Math.min(i,t.y+t.height)),o=a-s,c=i-n,h=Math.sqrt(o*o+c*c);if(h>.1)return{x:o/h,y:c/h};{const m=Math.abs(e.x+e.width-t.x),g=Math.abs(e.x-(t.x+t.width)),p=Math.abs(e.y+e.height-t.y),y=Math.abs(e.y-(t.y+t.height)),M=Math.min(m,g,p,y);return M===m?{x:-1,y:0}:M===g?{x:1,y:0}:M===p?{x:0,y:-1}:{x:0,y:1}}}}class _a{constructor(e=[]){b(this,"coins",[]);b(this,"spawnPoints",[]);b(this,"firebombCount",0);b(this,"powerModeActive",!1);b(this,"powerModeEndTime",0);b(this,"activeEffects",new Map);b(this,"triggeredSpawnConditions",new Set);b(this,"lastProcessedScore",0);b(this,"lastScoreCheck",0);b(this,"bombAndMonsterPoints",0);b(this,"monsterKillCount",0);b(this,"pCoinColorIndex",0);this.spawnPoints=e,x.debug("CoinManager initialized")}reset(){this.coins=[],this.firebombCount=0,this.powerModeActive=!1,this.powerModeEndTime=0,this.activeEffects.clear(),this.triggeredSpawnConditions.clear(),this.lastProcessedScore=0,this.lastScoreCheck=0,this.bombAndMonsterPoints=0,this.monsterKillCount=0}update(e,t,a){this.coins.forEach(i=>{if(i.isCollected)return;const s=de[i.type];s?ke.updateCoin(i,e,t,s.physics):i.type===P.POWER?ke.updatePowerCoin(i,e,t):ke.updateCoin(i,e,t)}),this.checkEffectsEnd(a),this.coins=this.coins.filter(i=>!i.isCollected)}spawnCoin(e,t,a,i){const s=de[e];if(s?.maxActive){if(this.coins.filter(h=>h.type===e&&!h.isCollected).length>=s.maxActive){x.debug(`${e} coin limit reached (${s.maxActive}), skipping spawn`);return}}else if(this.coins.find(h=>h.type===e)){x.debug(`${e} coin already exists, skipping spawn`);return}let n;e===P.POWER?n=ke.createPowerCoinVelocity(i):n=ke.createInitialVelocity();const o={type:e,x:t,y:a,width:d.COIN_SIZE,height:d.COIN_SIZE,velocityX:n.velocityX,velocityY:n.velocityY,isCollected:!1,spawnX:t,spawnY:a};e===P.POWER&&(o.colorIndex=0,o.spawnTime=Date.now(),x.debug("Spawning P-coin with Blue color (100 points)")),this.coins.push(o),x.debug(`Spawned ${e} coin at (${t}, ${a}) with angle ${i||"random"}`)}onFirebombCollected(){this.firebombCount++,x.debug(`Firebomb count: ${this.firebombCount}`),this.checkSpawnConditionsOnFirebombChange()}onPointsEarned(e,t=!1){t||(this.bombAndMonsterPoints+=e,x.debug(`Points earned: ${e}, total bomb/monster points: ${this.bombAndMonsterPoints}`),this.checkBcoinSpawnConditions())}checkBcoinSpawnConditions(){const e=de.BONUS_MULTIPLIER;if(!e)return;const t=Math.floor(this.bombAndMonsterPoints/d.BONUS_COIN_SPAWN_INTERVAL)*d.BONUS_COIN_SPAWN_INTERVAL,a=Math.floor(this.lastScoreCheck/d.BONUS_COIN_SPAWN_INTERVAL)*d.BONUS_COIN_SPAWN_INTERVAL;if(t>a&&t>=d.BONUS_COIN_SPAWN_INTERVAL){const i=`${e.type}_${t}`;if(this.triggeredSpawnConditions.has(i)){x.debug(`B-coin spawn condition already triggered for threshold ${t}`);return}x.debug(`B-coin threshold crossed: ${a} -> ${t} (bomb/monster points: ${this.bombAndMonsterPoints})`),this.triggeredSpawnConditions.add(i),this.lastScoreCheck=this.bombAndMonsterPoints;const s=this.spawnPoints.filter(n=>n.type===e.type);if(s.length>0){const n=s[Math.floor(Math.random()*s.length)];this.spawnCoin(e.type,n.x,n.y,n.spawnAngle)}}}checkSpawnConditionsOnFirebombChange(){Object.values(de).forEach(e=>{if(e.spawnCondition&&e.spawnCondition.toString().includes("firebombCount")){const t={firebombCount:this.firebombCount};if(e.spawnCondition(t)){const a=`${e.type}_${this.firebombCount}`;if(this.triggeredSpawnConditions.has(a))return;x.debug(`P-coin spawn condition met (firebombCount: ${this.firebombCount}, key: ${a})`),this.triggeredSpawnConditions.add(a);const i=this.spawnPoints.filter(s=>s.type===e.type);if(i.length>0){const s=i[Math.floor(Math.random()*i.length)];this.spawnCoin(e.type,s.x,s.y,s.spawnAngle)}else{const s=400+(Math.random()-.5)*200,n=100+Math.random()*100;this.spawnCoin(e.type,s,n)}}}})}checkSpawnConditions(e){Object.values(de).forEach(t=>{if(t.spawnCondition&&!t.spawnCondition.toString().includes("firebombCount")&&t.type!=="POWER"){const a={...e,firebombCount:this.firebombCount,bombAndMonsterPoints:this.bombAndMonsterPoints};if(t.spawnCondition(a)){let i=`${t.type}`;if(t.spawnCondition.toString().includes("score")&&t.type==="BONUS_MULTIPLIER"){const n=Math.floor(this.bombAndMonsterPoints/d.BONUS_COIN_SPAWN_INTERVAL)*d.BONUS_COIN_SPAWN_INTERVAL,o=Math.floor(this.lastScoreCheck/d.BONUS_COIN_SPAWN_INTERVAL)*d.BONUS_COIN_SPAWN_INTERVAL;if(n>o&&n>=d.BONUS_COIN_SPAWN_INTERVAL)i=`${t.type}_${n}`,x.debug(`B-coin threshold crossed: ${o} -> ${n} (bomb/monster points: ${this.bombAndMonsterPoints})`);else return;this.lastScoreCheck=this.bombAndMonsterPoints}if(t.spawnCondition.toString().includes("totalBonusMultiplierCoinsCollected")){const n=e.totalBonusMultiplierCoinsCollected||0,o=Math.floor(n/d.EXTRA_LIFE_COIN_RATIO)*d.EXTRA_LIFE_COIN_RATIO;i=`${t.type}_${o}`}if(this.triggeredSpawnConditions.has(i))return;x.debug(`Spawn condition met for ${t.type} coin (key: ${i})`),this.triggeredSpawnConditions.add(i);const s=this.spawnPoints.filter(n=>n.type===t.type);if(s.length>0){const n=s[Math.floor(Math.random()*s.length)];this.spawnCoin(t.type,n.x,n.y,n.spawnAngle)}else{const n=400+(Math.random()-.5)*200;let o=50;t.physics.hasGravity&&!t.physics.bounces&&!t.physics.reflects?o=50:o=100+Math.random()*100,this.spawnCoin(t.type,n,o)}}}})}collectCoin(e,t){e.isCollected=!0,x.debug(`Collected ${e.type} coin`);const a=de[e.type];if(a&&t){let i=a.points;if(e.type===P.POWER){const s=e.spawnTime||Date.now(),n=this.getPcoinColorForTime(s),o=t.multiplier||1;i=n.points*o,x.debug(`P-coin collected: ${n.name} color, ${n.points} × ${o} = ${i} points`)}else if(e.type===P.BONUS_MULTIPLIER)i=1e3*(t.multiplier||1);else if(e.type===P.EXTRA_LIFE){const s=t.multiplier||1;i=a.points*s}if("addFloatingText"in t&&typeof t.addFloatingText=="function"){const s=i.toString();t.addFloatingText(s,e.x+e.width/2,e.y+e.height/2,1e3,"#fff",15)}a.effects.forEach(s=>{const n={...t,activeEffects:{powerMode:!1,powerModeEndTime:0,...t.activeEffects},coinManager:{resetMonsterKillCount:()=>this.resetMonsterKillCount(),getPcoinColorForTime:o=>this.getPcoinColorForTime(o),getPowerModeEndTime:()=>this.getPowerModeEndTime()},difficultyManager:{pause:()=>{K.getInstance().pause(),x.debug("Difficulty scaling paused (power mode active)")},resume:()=>{K.getInstance().resume(),x.debug("Difficulty scaling resumed (power mode ended)")}}};s.apply(n,e),s.duration&&this.activeEffects.set(s.type,{endTime:Date.now()+s.duration,effect:s})})}else e.type!==P.POWER&&e.type!==P.BONUS_MULTIPLIER&&e.type!==P.EXTRA_LIFE&&x.warn(`Unknown coin type: ${e.type}, using legacy behavior`),e.type===P.POWER&&this.activatePowerMode()}checkEffectsEnd(e){const t=Date.now(),a=[];this.activeEffects.forEach((i,s)=>{if(x.debug(`Checking effect: ${s}, endTime: ${i.endTime}, currentTime: ${t}, shouldEnd: ${t>=i.endTime}`),t>=i.endTime&&(a.push(s),i.effect.remove&&e)){const n={...e,activeEffects:{powerMode:!1,powerModeEndTime:0,...e.activeEffects},coinManager:{resetMonsterKillCount:()=>this.resetMonsterKillCount(),getPcoinColorForTime:o=>this.getPcoinColorForTime(o),getPowerModeEndTime:()=>this.getPowerModeEndTime()},difficultyManager:{pause:()=>{K.getInstance().pause(),x.debug("Difficulty scaling paused (power mode active)")},resume:()=>{K.getInstance().resumeFromPowerMode(),x.debug("Difficulty scaling resumed (power mode ended)")}}};i.effect.remove(n)}}),a.forEach(i=>{this.activeEffects.delete(i),i==="POWER_MODE"&&(this.powerModeActive=!1,x.debug("Power mode deactivated"))})}calculateMonsterKillPoints(e){this.monsterKillCount++;let t;switch(this.monsterKillCount){case 1:t=100;break;case 2:t=200;break;case 3:t=300;break;case 4:t=500;break;case 5:t=800;break;case 6:t=1200;break;case 7:t=1700;break;case 8:t=2300;break;case 9:t=3e3;break;case 10:t=4e3;break;default:t=4e3+(this.monsterKillCount-10)*1e3}const a=t*e;return x.debug(`Monster kill #${this.monsterKillCount}: ${t} × ${e} = ${a} points`),a}getPcoinColorForTime(e){const a=Date.now()-e,s=Math.floor(a/1e3)%Le.length;return{...Le[s],index:s}}getCurrentPcoinColor(){return Le[this.pCoinColorIndex]}getPcoinCurrentColor(e){return e.type===P.POWER&&e.spawnTime!==void 0?this.getPcoinColorForTime(e.spawnTime).color:Le[0].color}advancePcoinColor(){this.pCoinColorIndex=(this.pCoinColorIndex+1)%Le.length;const e=this.getCurrentPcoinColor();x.debug(`P-coin color advanced to: ${e.name} (${e.points} points)`)}resetMonsterKillCount(){this.monsterKillCount=0,x.debug("Monster kill count reset for new power mode session")}isPowerModeActive(){const e=this.activeEffects.get("POWER_MODE");if(e){const t=Date.now()<e.endTime;return t||(this.activeEffects.delete("POWER_MODE"),this.powerModeActive=!1),t}return this.powerModeActive}getCoins(){return this.coins.filter(e=>!e.isCollected)}getAllCoins(){return[...this.coins]}getFirebombCount(){return this.firebombCount}getBombAndMonsterPoints(){return this.bombAndMonsterPoints}updateMonsters(e){if(this.isPowerModeActive()||this.powerModeActive){let a=0;const i=this.activeEffects.get("POWER_MODE");i?a=i.endTime-Date.now():a=this.powerModeEndTime-Date.now();const s=a<=2e3&&a>0;e.forEach(n=>{n.isFrozen=!0,n.isBlinking=s})}else e.forEach(a=>{a.isFrozen=!1,a.isBlinking=!1})}unfreezeAllMonsters(e){e.forEach(t=>{t.isFrozen=!1,t.isBlinking=!1})}resetEffects(){this.powerModeActive=!1,this.powerModeEndTime=0,this.firebombCount=0,this.coins=[],this.activeEffects.clear(),this.bombAndMonsterPoints=0,this.monsterKillCount=0,x.debug("Coin effects reset")}getCoinConfig(e){return de[e]}isEffectActive(e){return this.activeEffects.has(e)}getPowerModeEndTime(){const e=this.activeEffects.get("POWER_MODE");return e?e.endTime:0}activatePowerMode(){this.powerModeActive=!0;let e=d.POWER_COIN_DURATION;const t=this.coins.find(a=>a.type===P.POWER&&a.spawnTime);t&&t.spawnTime&&(e=this.getPcoinColorForTime(t.spawnTime).duration),this.powerModeEndTime=Date.now()+e,this.resetMonsterKillCount(),this.activeEffects.set("POWER_MODE",{endTime:this.powerModeEndTime,effect:Ue.POWER_MODE}),x.debug(`Power mode timing - duration: ${e}ms, endTime: ${this.powerModeEndTime}, currentTime: ${Date.now()}`);try{K.getInstance().pauseForPowerMode(),x.debug("Difficulty scaling paused (power mode active)")}catch{x.debug("Could not pause difficulty scaling (ScalingManager not available)")}x.debug(`Power mode activated for ${e}ms (${e/1e3}s)`)}}const N=ta.create((r,e,t)=>{const a=la(r,e),i=va(r,e),s=Ta(r,e),n=Aa(r,e),o=Pa(r,e),c=Na(r,e),h=Oa(r,e),m=Ia(r,e),g=Ra(r);return{...a,...i,...s,...n,...o,...c,...h,...m,...g,resetGame:()=>{e().resetGameState(),e().resetPlayer(),e().resetBombState(),e().resetLevelState(),e().resetLevelHistory(),e().resetMultiplier(),e().resetAudioSettings(),e().resetCoinState(),e().resetEffects(),e().clearAllFloatingTexts()},initializeLevel:p=>{const{bombManager:y,firstBomb:M}=n.initializeLevel(p),T=p.bombs.map(G=>({...G,isBlinking:!1,isCollected:!1,isCorrect:!1}));e().setBombs(T),e().setBombManager(y);const R=new _a(p.coinSpawnPoints||[]);return e().setCoinManager(R),r({collectedBombs:[],correctOrderCount:0,nextBombOrder:1}),e().setPlayerPosition(p.playerStart.x,p.playerStart.y),{bombManager:y,firstBomb:M}},getLevelHistory:()=>o.getLevelResults(),getGameStartTime:()=>o.getGameStartTime(),getSessionId:()=>o.getSessionId()}});class La{constructor(){b(this,"keys",new Set);b(this,"keyPressTimes",new Map);b(this,"touchControls",{left:!1,right:!1,up:!1,float:!1});b(this,"boundKeyDownHandler");b(this,"boundKeyUpHandler");b(this,"boundPreventDefaultHandler");this.boundKeyDownHandler=this.handleKeyDown.bind(this),this.boundKeyUpHandler=this.handleKeyUp.bind(this),this.boundPreventDefaultHandler=e=>{["ArrowLeft","ArrowRight","ArrowUp","Space"," ","p","P"].includes(e.key)&&e.preventDefault()},this.bindEvents()}bindEvents(){document.addEventListener("keydown",this.boundKeyDownHandler),document.addEventListener("keyup",this.boundKeyUpHandler),document.addEventListener("keydown",this.boundPreventDefaultHandler)}isKeyPressed(e){return this.keys.has(e)||this.getTouchControl(e)}isShiftPressed(){return this.keys.has("Shift")}getKeyPressDuration(e){const t=this.keyPressTimes.get(e);return t&&this.keys.has(e)?Date.now()-t:0}getTouchControl(e){switch(e){case"ArrowLeft":return this.touchControls.left;case"ArrowRight":return this.touchControls.right;case"ArrowUp":return this.touchControls.up;case" ":case"Space":return this.touchControls.float;default:return!1}}handleKeyDown(e){this.keys.has(e.key)||this.keyPressTimes.set(e.key,Date.now()),this.keys.add(e.key)}handleKeyUp(e){this.keys.delete(e.key),this.keyPressTimes.delete(e.key)}setTouchControl(e,t){this.touchControls[e]=t}cleanup(){document.removeEventListener("keydown",this.boundKeyDownHandler),document.removeEventListener("keyup",this.boundKeyUpHandler),document.removeEventListener("keydown",this.boundPreventDefaultHandler)}}class ka{checkPlayerPlatformCollision(e,t){for(const a of t){const i=this.checkFullCollision(e,a);if(i.hasCollision)return i}return{hasCollision:!1}}checkPlayerGroundCollision(e,t){return this.checkFullCollision(e,t)}checkMonsterGroundCollision(e,t){return this.checkFullCollision(e,t)}checkPlayerCoinCollision(e,t){for(const a of t)if(!a.isCollected&&this.isColliding(e,a))return a;return null}checkFullCollision(e,t){const a=e.x+(e.velocityX||0),i=e.y+(e.velocityY||0);if(this.wouldCollide(a,i,e.width,e.height,t)){const s=e.x+e.width/2,n=e.y+e.height/2,o=t.x+t.width/2,c=t.y+t.height/2,h=s-o,m=n-c,g=(e.width+t.width)/2-Math.abs(h),p=(e.height+t.height)/2-Math.abs(m);return g<p?h>0?{hasCollision:!0,normal:{x:1,y:0},penetration:g}:{hasCollision:!0,normal:{x:-1,y:0},penetration:g}:m>0?{hasCollision:!0,normal:{x:0,y:1},penetration:p}:{hasCollision:!0,normal:{x:0,y:-1},penetration:p}}return{hasCollision:!1}}wouldCollide(e,t,a,i,s){return e<s.x+s.width&&e+a>s.x&&t<s.y+s.height&&t+i>s.y}checkPlayerBombCollision(e,t){for(const a of t)if(!a.isCollected&&this.isColliding(e,a))return a;return null}checkPlayerMonsterCollision(e,t){for(const a of t)if(a.isActive&&this.isColliding(e,a))return a;return null}checkBoundaryCollision(e,t){const a=e.x,i=e.y;return a<0?{hasCollision:!0,normal:{x:1,y:0},penetration:Math.abs(a)}:a+e.width>t.width?{hasCollision:!0,normal:{x:-1,y:0},penetration:a+e.width-t.width}:i<0?{hasCollision:!0,normal:{x:0,y:1},penetration:Math.abs(i)}:i+e.height>t.height?{hasCollision:!0,normal:{x:0,y:-1},penetration:i+e.height-t.height}:{hasCollision:!1}}resolveBoundaryCollision(e,t){const a=this.checkBoundaryCollision(e,t);if(!a.hasCollision||!a.normal||!a.penetration)return{player:e,fellOffScreen:!1};const i={...e},{normal:s,penetration:n}=a;if(s.x===1)i.x=0,i.velocityX=0;else if(s.x===-1)i.x=t.width-e.width,i.velocityX=0;else if(s.y===1)i.y=0,i.velocityY=0;else if(s.y===-1)return{player:i,fellOffScreen:!0};return{player:i,fellOffScreen:!1}}isColliding(e,t){return e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y}}class wt{constructor(e,t){b(this,"animations");b(this,"currentAnimation");b(this,"currentFrameIndex",0);b(this,"frameTimer",0);this.animations=Object.fromEntries(e.map(a=>[a.name,a])),this.currentAnimation=this.animations[t]}setAnimation(e){this.currentAnimation.name!==e&&(this.currentAnimation=this.animations[e],this.currentFrameIndex=0,this.frameTimer=0)}setAnimationPreserveFrame(e){if(this.currentAnimation.name!==e){const t=this.animations[e];if(t){const a=Math.min(this.currentFrameIndex,t.frames.length-1);this.currentAnimation=t,this.currentFrameIndex=a}}}update(e){this.frameTimer+=e,this.frameTimer>this.currentAnimation.frameDuration&&(this.frameTimer=0,this.currentFrameIndex++,this.currentFrameIndex>=this.currentAnimation.frames.length&&(this.currentFrameIndex=this.currentAnimation.loop?0:this.currentAnimation.frames.length-1))}draw(e,t,a,i=1){const s=this.currentAnimation.frames[this.currentFrameIndex];if(s.complete){const n=d.PLAYER_WIDTH*2.5,o=d.PLAYER_HEIGHT*i,c=t-(n-d.PLAYER_WIDTH)/2.3;if(this.currentAnimation.name.includes("-left")){e.save(),e.scale(-1,1);const m=c+n/2.14;e.translate(-m*2,0),e.drawImage(s,c,a,n,o),e.restore()}else e.drawImage(s,c,a,n,o);e.save(),e.restore()}}}const ue={audio:"/dist/audio",images:"/dist/assets"},yt=r=>`${ue.images}/maps-bg-images/${r}.png`,X=r=>{const e=new Image;return e.src=`${ue.images}/${r}`,e},xt=[X("sigurd-idle/sigurd-idle1.png"),X("sigurd-idle/sigurd-idle2.png"),X("sigurd-idle/sigurd-idle3.png"),X("sigurd-idle/sigurd-idle4.png")],vt=[X("running/run1.png"),X("running/run2.png"),X("running/run3.png")],St=[X("jumping/jump1.png"),X("jumping/jump2.png"),X("jumping/jump3.png")],Da=[X("complete/complete1.png"),X("complete/complete2.png"),X("complete/complete3.png"),X("complete/complete4.png"),X("complete/complete5.png")],Ba=[X("float/float1.png")],Mt=[X("float-dir/float-dir1.png")],Ct=[X("landing/landing1.png")],Fa=[{name:"walk-right",frames:vt,frameDuration:100,loop:!0},{name:"walk-left",frames:vt,frameDuration:100,loop:!0},{name:"idle-right",frames:xt,frameDuration:1e3,loop:!0},{name:"idle-left",frames:xt,frameDuration:1e3,loop:!0},{name:"jump-right",frames:St,frameDuration:100,loop:!1},{name:"jump-left",frames:St,frameDuration:100,loop:!1},{name:"land-right",frames:Ct,frameDuration:500,loop:!1},{name:"land-left",frames:Ct,frameDuration:500,loop:!1},{name:"float-stationary",frames:Ba,frameDuration:100,loop:!0},{name:"float-right",frames:Mt,frameDuration:100,loop:!1},{name:"float-left",frames:Mt,frameDuration:100,loop:!0},{name:"ghost-complete",frames:Da,frameDuration:100,loop:!1}],De=new wt(Fa,"idle-left"),Je=r=>{const e=new Image;return e.src=`${ue.images}/${r}`,e},ja=[Je("bomb/bomb1.png")],Ga=[Je("bomb/bomb1.png"),Je("bomb/bomb2.png")],$a=[{name:"unlit",frames:ja,frameDuration:100,loop:!1},{name:"lit",frames:Ga,frameDuration:100,loop:!0}];class Tt extends wt{draw(e,t,a,i=1){const s=this.currentAnimation.frames[this.currentFrameIndex];if(s.complete){const n=d.BOMB_SIZE*i,o=d.BOMB_SIZE*i;e.drawImage(s,t,a,n,o)}}}const Qe=new Tt($a,"unlit"),Be={"startup lab":"startup-lab.png",nav:"nav.png",skatteetaten:"skatteetaten.png","innovasjon norge":"innovasjon-norge.png",kommunehuset:"kommunehuset.png","alltinn norge":"alltinn-norge.png","silicone vally":"silicone-vally.png",default:"startup-lab.png"};class Et{constructor(e,t){b(this,"currentBackground",null);b(this,"isLoading",!1);b(this,"canvasWidth");b(this,"canvasHeight");b(this,"currentMapName","");this.canvasWidth=e,this.canvasHeight=t}loadMapBackground(e){this.isLoading||(this.currentMapName=e,this.isLoading=!0,this.currentBackground&&(this.currentBackground.image.src="",this.currentBackground=null),this.loadBackgroundAsync(e).catch(t=>{console.error("BackgroundManager: Failed to load background:",t),this.isLoading=!1}))}async loadBackgroundAsync(e){try{const t=Be[e]||Be.default,a=await this.loadImage(`${ue.images}/maps-bg-images/${t}`);this.currentBackground={image:a,isLoaded:!0},this.isLoading=!1,v.flow(`Background loaded: ${e}`)}catch(t){console.error("BackgroundManager: Failed to load background image:",t),this.isLoading=!1}}loadImage(e){return new Promise((t,a)=>{const i=new Image;i.onload=()=>t(i),i.onerror=()=>a(new Error(`Failed to load image: ${e}`)),i.src=e})}update(e,t){}render(e){if(!this.currentBackground||!this.currentBackground.isLoaded){this.isLoading?this.renderLoading(e):this.renderFallback(e);return}const t=this.currentBackground.image,a=this.canvasWidth/t.width,i=this.canvasHeight/t.height,s=Math.max(a,i),n=t.width*s,o=t.height*s,c=(n-this.canvasWidth)/2,h=(o-this.canvasHeight)/2;e.drawImage(t,-c,-h,n,o)}renderLoading(e){const t=e.createLinearGradient(0,0,0,this.canvasHeight);t.addColorStop(0,"#262521"),t.addColorStop(1,"#484744"),e.fillStyle=t,e.fillRect(0,0,this.canvasWidth,this.canvasHeight),e.fillStyle="#ffffff",e.font="16px Arial",e.textAlign="center",e.fillText("Loading background...",this.canvasWidth/2,this.canvasHeight/2)}renderFallback(e){const t=e.createLinearGradient(0,0,0,this.canvasHeight);t.addColorStop(0,"#87CEEB"),t.addColorStop(1,"#4682B4"),e.fillStyle=t,e.fillRect(0,0,this.canvasWidth,this.canvasHeight)}isReady(){return this.currentBackground?.isLoaded||!1}isCurrentlyLoading(){return this.isLoading}getCurrentTheme(){return this.currentMapName}getCurrentMapName(){return this.currentMapName}static getAvailableBackgrounds(){return Object.values(Be)}static getMapNameMapping(){return{...Be}}static async preloadAllBackgrounds(){v.flow("Starting background preloading...");const e=Object.values(Be);let t=0;const a=e.map(async i=>{try{const s=new Image;await new Promise((n,o)=>{s.onload=n,s.onerror=o,s.src=`${ue.images}/maps-bg-images/${i}`}),t++,(t%2===0||t===e.length)&&v.flow(`Preloaded ${t}/${e.length} backgrounds`)}catch{v.warn(`Failed to preload background: ${i}`)}});await Promise.all(a),v.flow(`Background preloading complete! Loaded ${t}/${e.length} backgrounds.`)}}const ge=class ge{constructor(){b(this,"deadMonsters",[]);b(this,"respawnConfig");b(this,"scalingManager");b(this,"lastUpdateTime",0);b(this,"updateInterval",500);b(this,"paused",!1);this.respawnConfig=this.getDefaultRespawnConfig(),this.scalingManager=K.getInstance(),v.debug("Respawn manager initialized")}static getInstance(){return ge.instance||(ge.instance=new ge),ge.instance}getDefaultRespawnConfig(){return{ambusher:1e4,chaser:7e3,floater:15e3,patrol:8e3}}updateRespawnConfig(e){this.respawnConfig={...this.respawnConfig,...e},v.debug("OptimizedRespawnManager: Updated respawn configuration",this.respawnConfig)}getRespawnConfig(){return{...this.respawnConfig}}killMonster(e){if(e.isDead){v.debug(`Monster already dead, skipping kill: ${e.type}`);return}e.originalSpawnPoint||(e.originalSpawnPoint={x:e.x,y:e.y}),e.isDead=!0,e.isActive=!1,e.deathTime=Date.now(),e.respawnTime=e.deathTime+this.getRespawnDelay(e.type);const t={monster:e,respawnTime:e.respawnTime};this.insertSorted(t),v.monster(`${e.type} killed - respawning in ${this.getRespawnDelay(e.type)/1e3}s`)}insertSorted(e){let t=0,a=this.deadMonsters.length;for(;t<a;){const i=Math.floor((t+a)/2);this.deadMonsters[i].respawnTime<=e.respawnTime?t=i+1:a=i}this.deadMonsters.splice(t,0,e)}update(){const e=Date.now();if(e-this.lastUpdateTime<this.updateInterval)return[];if(this.lastUpdateTime=e,this.paused)return[];const t=[];for(;this.deadMonsters.length>0&&this.deadMonsters[0].respawnTime<=e;){const a=this.deadMonsters.shift(),i=this.respawnMonster(a.monster);t.push(i)}return t.length>0&&v.monster(`Respawning ${t.length} monsters: ${t.map(a=>a.type).join(", ")}`),t}pause(){this.paused=!0,v.pause("Respawn system paused")}resume(){this.paused=!1,v.pause("Respawn system resumed")}isPaused(){return this.paused}respawnMonster(e){const t=e.originalSpawnPoint;return this.resetMonsterState(e,t),this.scalingManager.resetMonsterScaling(e),v.monster(`${e.type} respawned`),e}resetMonsterState(e,t){e.isDead=!1,e.isActive=!0,e.x=t.x,e.y=t.y,e.isFrozen=!1,e.isBlinking=!1,e.velocityX=0,e.velocityY=0,e.isGrounded=!1,e.isFalling=!1,e.currentPlatform=null,e.behaviorState=void 0,e.lastDirectionChange=void 0,e.deathTime=void 0,e.respawnTime=void 0}getRespawnDelay(e){switch(e){case"AMBUSHER":return this.respawnConfig.ambusher;case"CHASER":return this.respawnConfig.chaser;case"FLOATER":return this.respawnConfig.floater;case"HORIZONTAL_PATROL":case"VERTICAL_PATROL":return this.respawnConfig.patrol;default:return v.warn(`Unknown monster type for respawn delay: ${e}, using default`),this.respawnConfig.patrol}}getDeadMonsterCount(){return this.deadMonsters.length}getDeadMonsters(){return this.deadMonsters.map(e=>e.monster)}getRespawnTimeRemaining(e){return!e.isDead||!e.respawnTime?0:Math.max(0,e.respawnTime-Date.now())}getNextRespawnTime(){return this.deadMonsters.length>0?this.deadMonsters[0].respawnTime:null}reset(){this.deadMonsters=[],this.lastUpdateTime=0,v.debug("OptimizedRespawnManager: Reset - cleared all dead monsters")}setUpdateInterval(e){this.updateInterval=e,v.debug(`OptimizedRespawnManager: Update interval set to ${e}ms`)}cleanup(){this.deadMonsters=[],this.lastUpdateTime=0}};b(ge,"instance");let He=ge;class Va{constructor(e){b(this,"canvas");b(this,"ctx");b(this,"lastTime",0);b(this,"backgroundManager");b(this,"bombSprites",new Map);b(this,"currentSpawnManager",null);b(this,"currentGameState",null);this.canvas=e,this.ctx=e.getContext("2d"),this.backgroundManager=new Et(e.width,e.height),x.debug("RenderManager initialized with canvas")}render(e,t,a,i,s,n=[],o=[],c,h,m,g){this.currentSpawnManager=h,this.currentGameState=g;const p=Date.now(),y=p-this.lastTime;this.lastTime=p,this.backgroundManager.update(e.x,e.y),this.renderBackground(),s&&this.renderGround(s),this.renderPlatforms(t),this.renderBombs(a),this.renderCoins(n,c),this.renderMonsters(i),this.renderPlayer(e),this.renderFloatingTexts(o,y)}clearCanvas(){this.ctx.fillStyle=$.BACKGROUND,this.ctx.fillRect(0,0,this.canvas.width,this.canvas.height)}renderBackground(){this.backgroundManager.render(this.ctx)}renderGround(e){this.ctx.fillStyle=e.color,this.ctx.fillRect(e.x,e.y,e.width,e.height)}renderPlayer(e){if(De&&d.USE_SPRITES){const t=e.height/d.PLAYER_HEIGHT;De.draw(this.ctx,e.x,e.y,t)}else this.ctx.fillStyle=e.color,this.ctx.fillRect(e.x,e.y,e.width,e.height)}renderPlatforms(e){e.forEach(t=>{this.ctx.fillStyle=t.color,this.ctx.strokeStyle=t.borderColor;const a=4,i=t.x,s=t.y,n=t.width,o=t.height;this.ctx.beginPath(),this.ctx.moveTo(i+a,s),this.ctx.lineTo(i+n-a,s),this.ctx.quadraticCurveTo(i+n,s,i+n,s+a),this.ctx.lineTo(i+n,s+o-a),this.ctx.quadraticCurveTo(i+n,s+o,i+n-a,s+o),this.ctx.lineTo(i+a,s+o),this.ctx.quadraticCurveTo(i,s+o,i,s+o-a),this.ctx.lineTo(i,s+a),this.ctx.quadraticCurveTo(i,s,i+a,s),this.ctx.closePath(),this.ctx.lineWidth=3,this.ctx.stroke(),this.ctx.fill()})}renderBombs(e){e.forEach(t=>{if(!t.isCollected)if(Qe&&d.USE_SPRITES){let a=this.bombSprites.get(t.order);if(!a){const n=[{name:"unlit",frames:Qe.animations.unlit.frames,frameDuration:50,loop:!1},{name:"lit",frames:Qe.animations.lit.frames,frameDuration:100,loop:!0}];a=new Tt(n,"unlit"),this.bombSprites.set(t.order,a)}const i=t.isBlinking?"lit":"unlit";a.setAnimation(i),a.update(16);const s=t.width/d.BOMB_SIZE;a.draw(this.ctx,t.x,t.y,s)}else this.ctx.fillStyle=t.isBlinking?$.BOMB_NEXT:$.BOMB,this.ctx.fillRect(t.x,t.y,t.width,t.height),this.ctx.fillStyle="#000000",this.ctx.font="12px Arial",this.ctx.textAlign="center",this.ctx.fillText(t.order.toString(),t.x+t.width/2,t.y+t.height/2+4)})}renderCoins(e,t){e.forEach(a=>{if(a.isCollected)return;let s=de[a.type]?.color||"#FFD700";a.type==="POWER"&&t&&(s=t.getPcoinCurrentColor(a)),this.ctx.fillStyle=s,this.ctx.beginPath(),this.ctx.arc(a.x+a.width/2,a.y+a.height/2,a.width/2,0,2*Math.PI),this.ctx.fill(),this.ctx.fillStyle="#fff",this.ctx.font="14px Arial",this.ctx.textAlign="center",this.ctx.textBaseline="middle";let n="C";a.type==="POWER"?(n="P",this.ctx.fillStyle="#000"):a.type==="BONUS_MULTIPLIER"?(n="B",this.ctx.fillStyle="#fff"):a.type==="EXTRA_LIFE"&&(n="M",this.ctx.fillStyle="#fff"),this.ctx.fillText(n,a.x+a.width/2,a.y+a.height/2+2)})}renderMonsters(e){e.forEach((t,a)=>{if(!t.isActive){x.debug(`Monster ${a} is not active, skipping`);return}let i=t.color;if(t.isBlinking){const s=Date.now();Math.floor(s/300)%2===0?i=$.MONSTER_FROZEN:i=t.color}else t.isFrozen&&(i=$.MONSTER_FROZEN);this.ctx.fillStyle=i,this.ctx.fillRect(t.x,t.y,t.width,t.height),this.ctx.fillStyle="#000",this.ctx.fillRect(t.x+2,t.y+2,2,2),this.ctx.fillRect(t.x+t.width-4,t.y+2,2,2)}),this.renderRespawnIndicators(e),this.renderSpawnIndicators(this.currentSpawnManager)}renderRespawnIndicators(e){const t=He.getInstance();e.forEach(a=>{if(a.isDead&&a.originalSpawnPoint){const i=t.getRespawnTimeRemaining(a),s=Math.ceil(i/1e3);if(i>0&&s<=3){const n=a.originalSpawnPoint,o=Math.sin(Date.now()/200)*.3+.7,c=a.color||"#ffffff";this.ctx.fillStyle=`${c}${Math.floor(o*1*255).toString(16).padStart(2,"0")}`,this.ctx.fillRect(n.x,n.y,a.width,a.height);const h=`${s}`,m=n.x+a.width/2,g=n.y+a.height/2+4;this.ctx.fillStyle="#ffffff",this.ctx.font="16px Arial",this.ctx.textAlign="center",this.ctx.textBaseline="middle",this.ctx.fillText(h,m,g)}}})}renderSpawnIndicators(e){if(e&&!(!this.currentGameState||this.currentGameState.currentState!=="PLAYING"))try{e.getPendingSpawns().forEach(a=>{const i=e.getSpawnTimeRemaining(a),s=Math.ceil(i/1e3);if(i>0&&s<=3){const n=a.spawnPoint.createMonster(),o=Math.sin(Date.now()/200)*.3+.7,c=n.color||"#ffffff";this.ctx.fillStyle=`${c}${Math.floor(o*1*255).toString(16).padStart(2,"0")}`,this.ctx.fillRect(n.x,n.y,n.width,n.height);const h=`${s}`,m=n.x+n.width/2,g=n.y+n.height/2;this.ctx.fillStyle="#ffffff",this.ctx.font="16px Arial",this.ctx.textAlign="center",this.ctx.textBaseline="middle",this.ctx.fillText(h,m,g)}})}catch{}}renderFloatingTexts(e,t){e.forEach(a=>{const i=Date.now()-a.startTime,s=Math.min(i/a.duration,1),o=a.y-50*s,c=1-s;this.ctx.globalAlpha=c,this.ctx.fillStyle=a.color,this.ctx.font=`${a.fontSize}px Arial`,this.ctx.textAlign="center",this.ctx.textBaseline="middle",this.ctx.fillText(a.text,a.x,o),this.ctx.globalAlpha=1})}loadCityTheme(e){this.backgroundManager.loadMapBackground(e)}loadMapBackground(e){this.backgroundManager.loadMapBackground(e)}isParallaxReady(){return this.backgroundManager.isReady()}isParallaxLoading(){return this.backgroundManager.isCurrentlyLoading()}getCurrentMapName(){return this.backgroundManager.getCurrentMapName()}clearBombSprites(){this.bombSprites.clear()}}const At=r=>r.type==="HORIZONTAL_PATROL"||r.type==="VERTICAL_PATROL",Ua=r=>r.type==="CHASER",Ha=r=>r.type==="AMBUSHER";class ee{static checkMonsterPlatformCollision(e,t){return e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y}static isMonsterOnPlatform(e,t){return e.x<t.x+t.width&&e.x+e.width>t.x&&Math.abs(e.y+e.height-t.y)<=2}static findCurrentPlatform(e,t){for(const a of t)if(this.isMonsterOnPlatform(e,a))return a;return null}static isMonsterOnGround(e,t){return Math.abs(e.y+e.height-t.y)<=2}static applyGravity(e){e.velocityY||(e.velocityY=0),e.gravity||(e.gravity=d.GRAVITY),e.velocityY+=e.gravity,e.y+=e.velocityY}static isAtPlatformEdge(e,t,a){return a>0?e.x+e.width>=t.x+t.width-5:e.x<=t.x+5}static hasFallenOffPlatform(e,t){return e.x+e.width<t.x||e.x>t.x+t.width}static determineSpawnSide(e,t){const a=t.x+t.width/2;return e.x<a?"left":"right"}static shouldFall(e,t,a,i,s){return i>=s&&Math.abs(e.x-a)<=10}static isOutsideBoundaries(e,t,a){return t<=0||t+e.width>=d.CANVAS_WIDTH||a<=0||a+e.height>=d.CANVAS_HEIGHT}static clampToBoundaries(e){e.x=Math.max(0,Math.min(e.x,d.CANVAS_WIDTH-e.width)),e.y=Math.max(0,Math.min(e.y,d.CANVAS_HEIGHT-e.height))}static isMovementSafe(e,t,a,i){if(this.isOutsideBoundaries(e,t,a))return!1;for(const s of i)if(this.checkMonsterPlatformCollision({...e,x:t,y:a},s))return!1;return!0}static isMovementSafeWithGround(e,t,a,i,s){if(this.isOutsideBoundaries(e,t,a))return!1;for(const n of i)if(this.checkMonsterPlatformCollision({...e,x:t,y:a},n))return!1;return!(s&&this.checkMonsterPlatformCollision({...e,x:t,y:a},s))}}class Ya{update(e,t,a,i){if(a&&a.currentState!=="PLAYING")return;e.type==="HORIZONTAL_PATROL"?this.updateHorizontalPatrol(e,t,i):this.updateVerticalPatrol(e,t,i)}updateHorizontalPatrol(e,t,a){if(!At(e))return;const i=K.getInstance(),s=i.getMonsterScaledValues(e);i.getBaseValues();const n=i.getMonsterAge(e),o=s.patrol.speed;n<2&&v.debug(`Patrol scaling - Age: ${n.toFixed(1)}s, Speed: ${o.toFixed(2)}`);const c=a?o*(a/16.67):o,h=e.x+c*e.direction;h<e.patrolStartX||h+e.width>e.patrolEndX?(e.direction*=-1,e.lastDirectionChange=t):e.x=h;const m=N.getState(),g=m.platforms||[],p=ee.findCurrentPlatform(e,g);p?(e.y=p.y-e.height,e.velocityY=0,e.isGrounded=!0):this.handleGroundCollision(e,m.ground)}updateVerticalPatrol(e,t,a){if(!At(e))return;const i=K.getInstance(),s=i.getMonsterScaledValues(e);i.getBaseValues(),i.getMonsterAge(e);const n=s.patrol.speed;if(!e.originalSpawnX){const m=N.getState().platforms||[],g=e.patrolSide||"left",p=e.targetPlatformX,y=m.find(M=>M.isVertical&&Math.abs(M.x-p)<1);y&&(e.originalSpawnX=g==="left"?y.x-e.width-8:y.x+8+y.width,e.x=e.originalSpawnX)}const o=a?n*(a/16.67):n,c=e.y+o*e.direction;c<e.patrolStartY||c+e.height>e.patrolEndY?(e.direction*=-1,e.lastDirectionChange=t):e.y=c,e.originalSpawnX!==void 0?(e.x=e.originalSpawnX,e.velocityX=0,e.velocityY=0,e.isGrounded=!1):(e.velocityX=0,e.velocityY=0,e.isGrounded=!1)}handleGroundCollision(e,t){if(!t)return;e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y&&(e.y=t.y-e.height,e.velocityY=0,e.isGrounded=!0)}}class Xa{update(e,t,a,i){if(!Ua(e)||a.currentState!=="PLAYING")return;const s=a.player;if(!s)return;const n=K.getInstance(),o=n.getMonsterScaledValues(e);n.getBaseValues();const c=n.getMonsterAge(e);if(c<2&&v.debug(`Chaser scaling - Age: ${c.toFixed(1)}s, Speed: ${o.chaser.speed.toFixed(2)}`),!e.behaviorState){e.behaviorState="chasing",e.lastDirectionChange=t,e.chaseTargetX=s.x,e.chaseTargetY=s.y,e.updateIntervalMultiplier=.8+Math.random()*.4,e.directnessMultiplier=.85+Math.random()*.3,e.speedMultiplier=.9+Math.random()*.2;const L=(Math.random()-.5)*50,U=(Math.random()-.5)*50;e.chaseTargetX=s.x+L,e.chaseTargetY=s.y+U,e.lastDirectionChange=t+Math.random()*o.chaser.updateInterval}const h=a.platforms||[],m=o.chaser.directness*(e.directnessMultiplier||1),g=o.chaser.updateInterval*(e.updateIntervalMultiplier||1);if(t-(e.lastDirectionChange||t)>g){const L=e.chaseTargetX||e.x,U=e.chaseTargetY||e.y,W=Math.random()<.3,ae=W?(Math.random()-.5)*15:0,me=W?(Math.random()-.5)*15:0;e.chaseTargetX=L+(s.x+ae-L)*m,e.chaseTargetY=U+(s.y+me-U)*m,e.lastDirectionChange=t}const y=e.chaseTargetX||e.x,M=e.chaseTargetY||e.y,T=y-e.x,R=M-e.y,G=Math.sqrt(T*T+R*R);if(G>20){const L=o.chaser.speed*(e.speedMultiplier||1),U=i?L*(i/16.67):L,W=Math.sign(T)*U,ae=Math.sign(R)*U;this.applyMovement(e,W,ae,y,M,h,a.ground)}else if(G>5){const L=o.chaser.speed*(e.speedMultiplier||1)*.5,U=i?L*(i/16.67):L,W=Math.sign(T)*U,ae=Math.sign(R)*U;this.applyMovement(e,W,ae,y,M,h,a.ground)}}applyMovement(e,t,a,i,s,n,o){const c=e.x+t,h=e.y+a,m=ee.isMovementSafe(e,c,e.y,n),g=ee.isMovementSafe(e,e.x,h,n);m&&(e.x=c),g&&(e.y=h),this.handleGroundCollision(e,o),!m&&!g&&this.findAlternativePath(e,i,s,n)}findAlternativePath(e,t,a,i){const s=t-e.x,n=a-e.y,o=Math.random();if((Math.abs(s)>Math.abs(n)?o>.7?"vertical":"horizontal":o>.7?"horizontal":"vertical")==="horizontal"){const h=Math.random()>.5?[1,-1]:[-1,1];for(const y of h){const M=e.y+y*e.speed;let T=!0;for(const R of i)if(ee.checkMonsterPlatformCollision({...e,y:M},R)){T=!1;break}if(T){e.y=M;return}}const m=Math.sign(s)*-1,g=e.x+m*e.speed;let p=!0;for(const y of i)if(ee.checkMonsterPlatformCollision({...e,x:g},y)){p=!1;break}if(p){e.x=g;return}}else{const h=Math.random()>.5?[1,-1]:[-1,1];for(const y of h){const M=e.x+y*e.speed;let T=!0;for(const R of i)if(ee.checkMonsterPlatformCollision({...e,x:M},R)){T=!1;break}if(T){e.x=M;return}}const m=Math.sign(n)*-1,g=e.y+m*e.speed;let p=!0;for(const y of i)if(ee.checkMonsterPlatformCollision({...e,y:g},y)){p=!1;break}if(p){e.y=g;return}}this.tryRandomMovement(e,i)}handleGroundCollision(e,t){if(!t)return;e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y&&(e.y=t.y-e.height,e.velocityY=0,e.isGrounded=!0)}tryRandomMovement(e,t){const a=[{x:1,y:0},{x:-1,y:0},{x:0,y:1},{x:0,y:-1},{x:1,y:1},{x:-1,y:1},{x:1,y:-1},{x:-1,y:-1}];for(let i=a.length-1;i>0;i--){const s=Math.floor(Math.random()*(i+1));[a[i],a[s]]=[a[s],a[i]]}for(const i of a){const s=e.x+i.x*e.speed,n=e.y+i.y*e.speed;let o=!0;for(const c of t)if(ee.checkMonsterPlatformCollision({...e,x:s,y:n},c)){o=!1;break}if(o){e.x=s,e.y=n;return}}}}class Wa{update(e,t,a,i){if(!Ha(e)||a.currentState!=="PLAYING")return;const s=a.player;if(!s)return;const n=K.getInstance(),o=n.getMonsterScaledValues(e);n.getBaseValues();const c=n.getMonsterAge(e);c<2&&v.debug(`Ambusher scaling - Age: ${c.toFixed(1)}s, Speed: ${o.ambusher.speed.toFixed(2)}`),e.behaviorState||(e.behaviorState="wandering",e.lastDirectionChange=t,e.ambushCooldown=2e3);const h=a.platforms||[];if(e.behaviorState==="wandering"){(!e.targetX||!e.targetY)&&this.chooseNewWanderingDirection(e,t),t-(e.lastDirectionChange||t)>2e3+Math.random()*2e3&&this.chooseNewWanderingDirection(e,t);const g=o.ambusher.speed*.5,p=i?g*(i/16.67):g,y=e.targetX||e.x,M=e.targetY||e.y,T=y-e.x,R=M-e.y,G=Math.sqrt(T*T+R*R);if(G>5){const L=T/G,U=R/G,W=e.x+p*L,ae=e.y+p*U;ee.isMovementSafeWithGround(e,W,ae,h,a.ground)?(e.x=W,e.y=ae):this.chooseNewWanderingDirection(e,t)}else this.chooseNewWanderingDirection(e,t);e.ambushCooldown+=i||16,e.ambushCooldown>=o.ambusher.ambushInterval&&(e.behaviorState="ambushing",e.lastDirectionChange=t,e.ambushCooldown=0,e.ambushTargetX=s.x,e.ambushTargetY=s.y,v.debug(`Ambusher switching to ambush mode, targeting player at (${e.ambushTargetX}, ${e.ambushTargetY})`))}else if(e.behaviorState==="ambushing"){const m=o.ambusher.speed*3,g=i?m*(i/16.67):m,p=e.ambushTargetX||e.x,y=e.ambushTargetY||e.y,M=Math.sqrt((p-e.x)**2+(y-e.y)**2);if(M>5){const T=p-e.x,R=y-e.y,G=T/M,L=R/M,U=e.x+g*G,W=e.y+g*L;ee.isMovementSafeWithGround(e,U,W,h,a.ground)?(e.x=U,e.y=W):(e.behaviorState="wandering",e.lastDirectionChange=t,v.debug("Ambusher blocked, returning to wandering"))}else e.behaviorState="wandering",e.lastDirectionChange=t,v.debug("Ambusher reached target, returning to wandering")}}chooseNewWanderingDirection(e,t){const a=[{x:1,y:0},{x:-1,y:0},{x:0,y:1},{x:0,y:-1},{x:1,y:1},{x:-1,y:1},{x:1,y:-1},{x:-1,y:-1}],i=a[Math.floor(Math.random()*a.length)],s=50+Math.random()*100,n=Math.max(0,Math.min(e.x+i.x*s,d.CANVAS_WIDTH-e.width)),o=Math.max(0,Math.min(e.y+i.y*s,d.CANVAS_HEIGHT-e.height));e.targetX=n,e.targetY=o,e.lastDirectionChange=t}}class za{update(e,t,a,i){if(a&&a.currentState!=="PLAYING")return;const s=K.getInstance(),n=s.getMonsterScaledValues(e);s.getBaseValues();const o=s.getMonsterAge(e);o<2&&v.debug(`Floater scaling - Age: ${o.toFixed(1)}s, Speed: ${n.floater.speed.toFixed(2)}`),!e.velocityX&&!e.velocityY&&this.initializeVelocity(e,n.floater.speed);const c=Math.sqrt(e.velocityX*e.velocityX+e.velocityY*e.velocityY);if(c>0){const R=n.floater.speed/c;e.velocityX*=R,e.velocityY*=R}const h=i?i/16.67:1,m=e.x+e.velocityX*h,g=e.y+e.velocityY*h,p=N.getState(),y=p.platforms||[];let M=!0,T={x:0,y:0};for(const R of y)if(ee.checkMonsterPlatformCollision({...e,x:m,y:g},R)){M=!1,T=this.calculateCollisionNormal(e,R);break}(m<=0||m+e.width>=d.CANVAS_WIDTH||g<=0||g+e.height>=d.CANVAS_HEIGHT)&&(M=!1,T=this.calculateBoundaryCollisionNormal(e,m,g)),p.ground&&ee.checkMonsterPlatformCollision({...e,x:m,y:g},p.ground)&&(M=!1,T=this.calculateCollisionNormal(e,p.ground)),M?(e.x=m,e.y=g):this.bounceOffCollision(e,T,n.floater.bounceAngle)}initializeVelocity(e,t){if(e.type!=="FLOATER")return;const i=(e.startAngle||45)*Math.PI/180;e.velocityX=Math.cos(i)*t,e.velocityY=Math.sin(i)*t}calculateCollisionNormal(e,t){const a=e.x+e.width/2,i=e.y+e.height/2,s=Math.max(t.x,Math.min(a,t.x+t.width)),n=Math.max(t.y,Math.min(i,t.y+t.height)),o=a-s,c=i-n,h=Math.sqrt(o*o+c*c);if(h>.1)return{x:o/h,y:c/h};{const m=Math.abs(e.x+e.width-t.x),g=Math.abs(e.x-(t.x+t.width)),p=Math.abs(e.y+e.height-t.y),y=Math.abs(e.y-(t.y+t.height)),M=Math.min(m,g,p,y);return M===m?{x:-1,y:0}:M===g?{x:1,y:0}:M===p?{x:0,y:-1}:{x:0,y:1}}}calculateBoundaryCollisionNormal(e,t,a){return t<=0?{x:1,y:0}:t+e.width>=d.CANVAS_WIDTH?{x:-1,y:0}:a<=0?{x:0,y:1}:{x:0,y:-1}}bounceOffCollision(e,t,a){const i=e.velocityX*t.x+e.velocityY*t.y;e.velocityX=e.velocityX-2*i*t.x,e.velocityY=e.velocityY-2*i*t.y;const s=(Math.random()-.5)*a,n=Math.sqrt(e.velocityX*e.velocityX+e.velocityY*e.velocityY),c=Math.atan2(e.velocityY,e.velocityX)+s;e.velocityX=Math.cos(c)*n,e.velocityY=Math.sin(c)*n}}class Ka{constructor(){b(this,"patrolMovement");b(this,"chaserMovement");b(this,"ambusherMovement");b(this,"floaterMovement");this.patrolMovement=new Ya,this.chaserMovement=new Xa,this.ambusherMovement=new Wa,this.floaterMovement=new za}updateMonsterBehaviors(e,t,a){t.monsters&&t.monsters.forEach(i=>{if(!(!i.isActive||i.isFrozen)){switch(i.type){case F.HORIZONTAL_PATROL:case F.VERTICAL_PATROL:this.patrolMovement.update(i,e,t,a);break;case F.CHASER:this.chaserMovement.update(i,e,t,a);break;case F.AMBUSHER:this.ambusherMovement.update(i,e,t,a);break;case F.FLOATER:this.floaterMovement.update(i,e,t,a);break}ee.clampToBoundaries(i)}})}}class Za{constructor(){b(this,"levelStartTime",0);b(this,"scheduledSpawns",[]);b(this,"behaviorManager");b(this,"pauseState");b(this,"lastUpdateTime",0);b(this,"updateInterval",16);this.behaviorManager=new Ka,this.pauseState=this.createPauseState()}initializeLevel(e){this.levelStartTime=Date.now(),this.scheduledSpawns=this.createScheduledSpawns(e),this.resetPauseState(),v.flow(`Level initialized with ${e.length} spawn points`),this.scheduledSpawns.forEach((t,a)=>{const i=(t.scheduledTime-this.levelStartTime)/1e3;try{const s=t.spawnPoint.createMonster();v.debug(`Scheduled spawn ${a}: ${s.type} at ${i.toFixed(1)}s`)}catch(s){v.error(`Failed to create monster for spawn ${a}: ${s}`)}})}createScheduledSpawns(e){return e.map((t,a)=>({id:`spawn-${a}`,spawnPoint:t,scheduledTime:this.levelStartTime+t.spawnDelay,executed:!1}))}resetPauseState(){this.pauseState=this.createPauseState()}createPauseState(){return{isPaused:!1,pauseStartTime:0,totalPausedTime:0,pauseReasons:new Set}}update(e,t){if(this.pauseState.isPaused)return;const a=N.getState(),i=this.getAdjustedTime();Math.floor(i/5e3)!==Math.floor((i-16)/5e3)&&v.debug(`SpawnManager.update() called at ${(i/1e3).toFixed(1)}s, paused: ${this.pauseState.isPaused}, spawns: ${this.scheduledSpawns.length}`),this.processSpawns(e,a),a.monsters.some(s=>s.isActive)&&this.behaviorManager.updateMonsterBehaviors(e,a,t)}processSpawns(e,t){const a=this.getAdjustedTime(),i=this.getAdjustedAbsoluteTime(),s=[];if(Math.floor(a/5e3)!==Math.floor((a-16)/5e3)){const n=this.scheduledSpawns.filter(o=>!o.executed);v.info(`Spawn check at ${(a/1e3).toFixed(1)}s: ${n.length} pending spawns`),n.forEach(o=>{const c=(o.scheduledTime-i)/1e3;try{const h=o.spawnPoint.createMonster();v.info(` - ${h.type} in ${c.toFixed(1)}s (scheduled: ${o.scheduledTime}, current: ${i})`)}catch(h){v.error(` - Failed to create monster: ${h}`)}})}for(const n of this.scheduledSpawns)!n.executed&&i>=n.scheduledTime&&(s.push(n),v.info(`Spawn ready to execute: ${n.spawnPoint.createMonster().type} (scheduled at ${(n.scheduledTime/1e3).toFixed(1)}s, current time ${(a/1e3).toFixed(1)}s)`));s.length>0&&(v.info(`Executing ${s.length} spawns at ${(a/1e3).toFixed(1)}s`),this.executeSpawns(s,e,t))}executeSpawns(e,t,a){const i=[];for(const s of e)try{const n=this.createMonster(s.spawnPoint);i.push(n),s.executed=!0,v.monster(`Spawned ${n.type} at (${n.x}, ${n.y})`)}catch(n){v.error(`Failed to spawn monster: ${n}`)}i.length>0&&(this.addMonstersToGameState(i,a),v.debug(`Added ${i.length} monsters to game state`))}createMonster(e){const t=e.createMonster();return e.color&&(t.color=e.color),t.originalSpawnPoint||(t.originalSpawnPoint={x:t.x,y:t.y}),t}addMonstersToGameState(e,t){if(t.updateMonsters){const i=[...t.monsters||[],...e];t.updateMonsters(i)}else v.warn("Game state updateMonsters method is not available")}pause(e="default"){this.pauseState.isPaused||(this.pauseState.isPaused=!0,this.pauseState.pauseStartTime=Date.now()),this.pauseState.pauseReasons.add(e),v.pause(`Spawning paused (${e})`),v.debug(`SpawnManager pause state: ${this.pauseState.isPaused}, reasons: ${Array.from(this.pauseState.pauseReasons).join(", ")}`)}resume(e="default"){if(this.pauseState.pauseReasons.delete(e),this.pauseState.pauseReasons.size===0&&this.pauseState.isPaused){const t=Date.now()-this.pauseState.pauseStartTime;this.pauseState.totalPausedTime+=t,this.pauseState.isPaused=!1,v.pause(`Spawning resumed (paused for ${(t/1e3).toFixed(1)}s)`)}v.debug(`SpawnManager pause state: ${this.pauseState.isPaused}, reasons: ${Array.from(this.pauseState.pauseReasons).join(", ")}`)}isPaused(){return this.pauseState.isPaused}getPauseStatus(){return{isPaused:this.pauseState.isPaused,pauseReasons:Array.from(this.pauseState.pauseReasons),totalPausedTime:this.pauseState.totalPausedTime}}getAdjustedTime(){return Date.now()-this.levelStartTime-this.pauseState.totalPausedTime}getAdjustedAbsoluteTime(){return this.levelStartTime+this.getAdjustedTime()}removeMonster(e){e.isActive=!1;const t=N.getState();if(t.updateMonsters){const i=(t.monsters||[]).filter(s=>s!==e);t.updateMonsters(i)}}reset(){this.levelStartTime=Date.now(),this.scheduledSpawns.forEach(e=>e.executed=!1),this.resetPauseState(),this.lastUpdateTime=0}getSpawnStatus(){const e=this.scheduledSpawns.filter(i=>i.executed).length,t=this.scheduledSpawns.filter(i=>!i.executed).length,a=this.getAdjustedTime();return{totalSpawnPoints:this.scheduledSpawns.length,executedCount:e,pendingCount:t,isPaused:this.pauseState.isPaused,pauseReasons:Array.from(this.pauseState.pauseReasons),adjustedTime:a/1e3,levelStartTime:this.levelStartTime,totalPausedTime:this.pauseState.totalPausedTime}}getSpawnTimeRemaining(e){if(e.executed)return 0;const t=this.getAdjustedAbsoluteTime();return Math.max(0,e.scheduledTime-t)}getPendingSpawns(){return this.scheduledSpawns.filter(e=>!e.executed)}setUpdateInterval(e){this.updateInterval=e,v.debug(`OptimizedSpawnManager: Update interval set to ${e}ms`)}cleanup(){this.scheduledSpawns=[],this.resetPauseState(),this.lastUpdateTime=0}}class qa{constructor(){b(this,"audioContext",null);b(this,"backgroundMusicGain",null);b(this,"isBackgroundMusicPlaying",!1);b(this,"backgroundMusicBuffer",null);b(this,"backgroundMusicSource",null);this.initializeAudioContext(),this.loadBackgroundMusic()}initializeAudioContext(){try{this.audioContext=new(window.AudioContext||window.webkitAudioContext),this.backgroundMusicGain=this.audioContext.createGain(),this.backgroundMusicGain.connect(this.audioContext.destination),this.updateAudioVolumes()}catch(e){x.warn("Web Audio API not supported:",e)}}async loadBackgroundMusic(){if(this.audioContext)try{const t=await(await fetch(`${ue.audio}/background-music.wav`)).arrayBuffer();this.backgroundMusicBuffer=await this.audioContext.decodeAudioData(t)}catch(e){x.warn("Failed to load background music:",e)}}ensureAudioContext(){this.audioContext?.state==="suspended"&&this.audioContext.resume()}playSound(e,t){switch(this.ensureAudioContext(),e){case z.BOMB_COLLECT:this.playBombCollectSound();break;case z.MONSTER_HIT:this.playMonsterHitSound();break;case z.MAP_CLEARED:this.playMapClearedSound();break;case z.BONUS_SCREEN:x.audio("Bonus sound"),this.playBonusSound();break;case z.COIN_COLLECT:this.playCoinCollectSound();break;case z.POWER_COIN_ACTIVATE:this.playPowerCoinActivateSound();break;case z.BACKGROUND_MUSIC:t===C.PLAYING&&this.startBackgroundMusic();break;default:x.debug(`Audio event ${e} not implemented yet`)}}stopBackgroundMusic(){if(this.isBackgroundMusicPlaying=!1,this.backgroundMusicSource){try{this.backgroundMusicSource.stop()}catch{}this.backgroundMusicSource=null}}playBombCollectSound(){if(!this.audioContext)return;const e=this.audioContext.createOscillator(),t=this.audioContext.createGain();e.connect(t),t.connect(this.audioContext.destination),e.type="square",e.frequency.setValueAtTime(800,this.audioContext.currentTime),e.frequency.exponentialRampToValueAtTime(1200,this.audioContext.currentTime+.1);const a=this.getSFXVolume();t.gain.setValueAtTime(.3*a,this.audioContext.currentTime),t.gain.exponentialRampToValueAtTime(.01,this.audioContext.currentTime+.2),e.start(),e.stop(this.audioContext.currentTime+.2)}playMonsterHitSound(){if(!this.audioContext)return;const e=this.audioContext.createOscillator(),t=this.audioContext.createGain();e.connect(t),t.connect(this.audioContext.destination),e.type="sawtooth",e.frequency.setValueAtTime(200,this.audioContext.currentTime),e.frequency.exponentialRampToValueAtTime(50,this.audioContext.currentTime+.3);const a=this.getSFXVolume();t.gain.setValueAtTime(.4*a,this.audioContext.currentTime),t.gain.exponentialRampToValueAtTime(.01,this.audioContext.currentTime+.3),e.start(),e.stop(this.audioContext.currentTime+.3)}playMapClearedSound(){if(!this.audioContext)return;const e=[523.25,587.33,659.25,698.46,783.99];let t=this.audioContext.currentTime;const a=this.getSFXVolume();e.forEach((i,s)=>{const n=this.audioContext.createOscillator(),o=this.audioContext.createGain();n.connect(o),o.connect(this.audioContext.destination),n.type="triangle",n.frequency.setValueAtTime(i,t),o.gain.setValueAtTime(.3*a,t),o.gain.exponentialRampToValueAtTime(.01,t+.3),n.start(t),n.stop(t+.3),t+=.15})}playBonusSound(){if(!this.audioContext)return;const e=[659.25,783.99,1046.5,783.99,1046.5];let t=this.audioContext.currentTime;const a=this.getSFXVolume();e.forEach((i,s)=>{const n=this.audioContext.createOscillator(),o=this.audioContext.createGain();n.connect(o),o.connect(this.audioContext.destination),n.type="sine",n.frequency.setValueAtTime(i,t),o.gain.setValueAtTime(.2*a,t),o.gain.exponentialRampToValueAtTime(.01,t+.4),n.start(t),n.stop(t+.4),t+=.2})}playCoinCollectSound(){if(!this.audioContext)return;const e=this.audioContext.createOscillator(),t=this.audioContext.createGain();e.connect(t),t.connect(this.audioContext.destination),e.type="sine",e.frequency.setValueAtTime(1e3,this.audioContext.currentTime),e.frequency.exponentialRampToValueAtTime(1500,this.audioContext.currentTime+.1);const a=this.getSFXVolume();t.gain.setValueAtTime(.3*a,this.audioContext.currentTime),t.gain.exponentialRampToValueAtTime(.01,this.audioContext.currentTime+.15),e.start(),e.stop(this.audioContext.currentTime+.15)}playPowerCoinActivateSound(){if(!this.audioContext)return;const e=this.audioContext.currentTime,t=this.getSFXVolume(),a=this.audioContext.createOscillator(),i=this.audioContext.createGain();a.connect(i),i.connect(this.audioContext.destination),a.type="square",a.frequency.setValueAtTime(200,e),a.frequency.exponentialRampToValueAtTime(400,e+.3),i.gain.setValueAtTime(.2*t,e),i.gain.exponentialRampToValueAtTime(.01,e+.5),a.start(e),a.stop(e+.5);const s=this.audioContext.createOscillator(),n=this.audioContext.createGain();s.connect(n),n.connect(this.audioContext.destination),s.type="sine",s.frequency.setValueAtTime(800,e),s.frequency.exponentialRampToValueAtTime(1200,e+.2),n.gain.setValueAtTime(.15*t,e),n.gain.exponentialRampToValueAtTime(.01,e+.3),s.start(e),s.stop(e+.3)}startBackgroundMusic(){!this.audioContext||this.isBackgroundMusicPlaying||!this.backgroundMusicBuffer||(this.isBackgroundMusicPlaying=!0,this.playBackgroundMusicFile())}playBackgroundMusicFile(){if(!(!this.audioContext||!this.backgroundMusicGain||!this.backgroundMusicBuffer||!this.isBackgroundMusicPlaying))try{this.backgroundMusicSource=this.audioContext.createBufferSource(),this.backgroundMusicSource.buffer=this.backgroundMusicBuffer,this.backgroundMusicSource.connect(this.backgroundMusicGain),this.backgroundMusicSource.loop=!0,this.backgroundMusicSource.onended=()=>{this.isBackgroundMusicPlaying&&setTimeout(()=>{this.isBackgroundMusicPlaying&&this.playBackgroundMusicFile()},100)},this.backgroundMusicSource.start()}catch(e){x.warn("Failed to play background music file:",e)}}cleanup(){this.stopBackgroundMusic(),this.audioContext&&this.audioContext.close()}updateAudioVolumes(){const e=N.getState().audioSettings;if(this.backgroundMusicGain){const t=e.masterMuted||e.musicMuted?0:e.masterVolume/100*(e.musicVolume/100);this.backgroundMusicGain.gain.value=t}}getSFXVolume(){const e=N.getState().audioSettings;return e.masterMuted||e.sfxMuted?0:e.masterVolume/100*(e.sfxVolume/100)}updateVolumes(){this.updateAudioVolumes()}}class Ja{constructor(e){b(this,"sprite");b(this,"currentState");b(this,"wasInAir",!1);b(this,"isLanding",!1);b(this,"isMapCleared",!1);b(this,"mapClearedFallComplete",!1);this.sprite=e,this.currentState={isGrounded:!0,isMoving:!1,isFloating:!1,gameState:"",moveDirection:"none",lastDirection:"right"}}update(e,t,a=!1,i=""){const s={isGrounded:e,isMoving:t!==0,isFloating:a,gameState:i,moveDirection:t>0?"right":t<0?"left":"none",lastDirection:this.getLastDirection()};i==="MAP_CLEARED"&&!this.isMapCleared&&(this.isMapCleared=!0,this.mapClearedFallComplete=!1,e&&(this.mapClearedFallComplete=!0)),this.isLanding&&this.sprite.currentAnimation.name.includes("land")&&this.sprite.currentFrameIndex>=this.sprite.currentAnimation.frames.length-1&&(this.isLanding=!1,this.isMapCleared&&(this.mapClearedFallComplete=!0));const n=this.wasInAir&&e;this.currentState=s,this.wasInAir=!e,n&&!this.isLanding&&this.isMapCleared?this.setLandingAnimation():n&&!this.isLanding?this.setLandingAnimation():this.isLanding||this.updateAnimation()}getLastDirection(){return this.sprite.currentAnimation.name.includes("right")?"right":"left"}updateAnimation(){const{isGrounded:e,isMoving:t,isFloating:a,gameState:i,moveDirection:s,lastDirection:n}=this.currentState;this.isMapCleared?this.mapClearedFallComplete?this.sprite.setAnimation("ghost-complete"):e?(this.mapClearedFallComplete=!0,this.sprite.setAnimation("ghost-complete")):this.handleAirAnimations(s,n):i==="MAP_CLEARED"?(this.isMapCleared=!0,this.mapClearedFallComplete=!1,this.handleAirAnimations(s,n)):a?this.handleFloatAnimations(s,n):e?t?this.handleWalkAnimations(s):this.handleIdleAnimations(n):this.handleAirAnimations(s,n)}handleAirAnimations(e,t){if(e==="right")this.sprite.setAnimationPreserveFrame("jump-right");else if(e==="left")this.sprite.setAnimationPreserveFrame("jump-left");else{const a=t==="right"?"jump-right":"jump-left";this.sprite.setAnimationPreserveFrame(a)}}handleFloatAnimations(e,t){e==="right"?this.sprite.setAnimation("float-right"):e==="left"?this.sprite.setAnimation("float-left"):this.sprite.setAnimation("float-stationary")}handleWalkAnimations(e){e==="right"?this.sprite.setAnimation("walk-right"):e==="left"&&this.sprite.setAnimation("walk-left")}handleIdleAnimations(e){const t=e==="right"?"idle-right":"idle-left";this.sprite.setAnimation(t)}setLandingAnimation(){const{lastDirection:e}=this.currentState,t=e==="right"?"land-right":"land-left";this.sprite.setAnimation(t),this.isLanding=!0}getCurrentState(){return{...this.currentState}}reset(){this.isMapCleared=!1,this.mapClearedFallComplete=!1,this.isLanding=!1,this.wasInAir=!1}}class Qa{constructor(e){b(this,"inputManager");b(this,"collisionManager");b(this,"renderManager");b(this,"monsterSpawnManager");b(this,"audioManager");b(this,"animationController");b(this,"scalingManager");b(this,"monsterRespawnManager");b(this,"animationFrameId",null);b(this,"lastTime",0);b(this,"isBackgroundMusicPlaying",!1);b(this,"previousGameState",null);b(this,"devModeInitialized",!1);b(this,"boundGameLoop");b(this,"wasGroundedWhenMapCleared",!1);b(this,"mapStartTime",0);this.inputManager=new La,this.collisionManager=new ka,this.renderManager=new Va(e),this.audioManager=new qa,this.animationController=new Ja(De),this.scalingManager=K.getInstance(),this.monsterRespawnManager=He.getInstance(),this.monsterSpawnManager=new Za,this.boundGameLoop=this.gameLoop.bind(this);const t=N.getState();"setAudioManager"in t&&t.setAudioManager(this.audioManager)}start(){{const e=N.getState();e.resetGame(),"setGameStartTime"in e&&e.setGameStartTime(Date.now()),this.loadCurrentLevel()}ua(),this.gameLoop(0)}initializeDevMode(){const e=N.getState();e.resetGameState(),e.addScore(q.MOCK_DATA.score);const t=e.lives,a=q.MOCK_DATA.lives;if(a<t){for(let s=0;s<t-a;s++)e.loseLife();e.setState(C.MENU)}const i=q.TARGET_LEVEL;{e.resetLevelState();for(let s=1;s<i;s++)e.nextLevel()}switch(this.loadCurrentLevel(),q.TARGET_STATE){case"START_MENU":e.setState(C.MENU),e.setMenuType(A.START);break;case"COUNTDOWN":e.setState(C.COUNTDOWN),e.setMenuType(A.COUNTDOWN);break;case"PLAYING":e.setState(C.PLAYING),e.setMenuType(A.IN_GAME);break;case"PAUSED":e.setState(C.PAUSED),e.setMenuType(A.PAUSE);break;case"SETTINGS":e.setState(C.MENU),e.setMenuType(A.SETTINGS);break;case"BONUS":e.setState(C.BONUS),e.setMenuType(A.BONUS),e.resetBombState();for(let s=0;s<q.MOCK_DATA.correctOrderCount;s++)e.collectBomb(s+1);break;case"VICTORY":e.setState(C.VICTORY),e.setMenuType(A.VICTORY);break;case"GAME_OVER":e.setState(C.GAME_OVER),e.setMenuType(A.GAME_OVER);break;default:x.warn(`Unknown DEV_MODE target state: ${q.TARGET_STATE}`),e.setState(C.MENU),e.setMenuType(A.START)}x.dev(`DEV_MODE: Setting multiplier to ${q.MOCK_DATA.multiplier}x with ${q.MOCK_DATA.multiplierScore} progress`),e.setMultiplier(q.MOCK_DATA.multiplier,q.MOCK_DATA.multiplierScore),x.dev(`DEV_MODE initialized with state: ${q.TARGET_STATE}, level: ${q.TARGET_LEVEL}`),this.devModeInitialized=!0}stop(){this.animationFrameId&&(cancelAnimationFrame(this.animationFrameId),this.animationFrameId=null),this.audioManager.stopBackgroundMusic(),this.isBackgroundMusicPlaying=!1}loadCurrentLevel(){const e=N.getState(),t=e.currentLevel;if(t<=Ce.length){const a=Ce[t-1];if(e.initializeLevel(a),e.clearAllFloatingTexts(),this.animationController.reset(),this.scalingManager.startMap(),this.renderManager.loadMapBackground(a.name),a.monsterSpawnPoints?(x.info(`GameManager: Initializing MonsterSpawnManager with ${a.monsterSpawnPoints.length} spawn points`),this.monsterSpawnManager.initializeLevel(a.monsterSpawnPoints)):(x.info("GameManager: Initializing MonsterSpawnManager with no spawn points"),this.monsterSpawnManager.initializeLevel([])),this.monsterRespawnManager.reset(),a.monsters){const i=a.monsters.map(s=>({...s,originalSpawnPoint:{x:s.x,y:s.y}}));e.updateMonsters(i),x.debug(`Set up original spawn points for ${i.length} static monsters`)}e.resetCoinState(),x.debug("Coins reset when loading new level"),this.mapStartTime=Date.now()}}gameLoop(e){const t=e-this.lastTime;this.lastTime=e;const a=N.getState();if(this.handleBackgroundMusic(a.currentState),this.handleDifficultyPause(a.currentState),a.currentState===C.MENU&&!a.currentMap&&this.loadCurrentLevel(),a.currentState===C.BONUS&&a.bonusAnimationComplete&&(setTimeout(()=>{this.proceedToNextLevel()},2e3),a.setBonusAnimationComplete(!1)),a.currentState===C.PLAYING)this.update(t),De.update(t),this.handleCollisions(),this.checkWinCondition();else if(a.currentState===C.MAP_CLEARED){De.update(t);const i=a.player;if(!this.wasGroundedWhenMapCleared){const s={...i};s.velocityY+=i.gravity,s.y+=s.velocityY;const n=a.ground;if(n){const o=this.collisionManager.checkPlayerGroundCollision(s,n);o.hasCollision&&o.normal&&o.penetration&&o.normal.y===-1&&(s.y=s.y-o.penetration,s.velocityY=0,s.isGrounded=!0)}a.updatePlayer(s)}this.animationController.update(i.isGrounded,0,!1,a.currentState)}this.render(),this.animationFrameId=requestAnimationFrame(this.boundGameLoop)}handleDifficultyPause(e){e===C.PLAYING?(this.scalingManager.isCurrentlyPausedByPowerMode()||this.scalingManager.resume(),this.scalingManager.resumeAllMonsterScaling(),this.monsterSpawnManager.resume(),this.monsterRespawnManager.resume()):(this.scalingManager.pause(),this.scalingManager.pauseAllMonsterScaling(),this.monsterSpawnManager.pause(),this.monsterRespawnManager.pause())}handleBackgroundMusic(e){const t=e===C.PLAYING;this.previousGameState!==e&&x.audio(`Game state changed: ${this.previousGameState} -> ${e}`),t&&!this.isBackgroundMusicPlaying&&(x.audio("Starting background music"),this.audioManager.playSound(z.BACKGROUND_MUSIC,e),this.isBackgroundMusicPlaying=!0),!t&&this.isBackgroundMusicPlaying&&(x.audio("Stopping background music"),this.audioManager.stopBackgroundMusic(),this.isBackgroundMusicPlaying=!1),this.previousGameState=e}update(e){this.updatePlayer(e),this.updateMonsters(e),this.updateCoins(e)}updatePlayer(e){const t=N.getState();let a={...t.player};if(this.inputManager.isKeyPressed("p")||this.inputManager.isKeyPressed("P")){t.currentState===C.PLAYING&&(t.setState(C.PAUSED),t.setMenuType(A.PAUSE));return}let i=0;this.inputManager.isKeyPressed("ArrowLeft")&&(i=-a.moveSpeed),this.inputManager.isKeyPressed("ArrowRight")&&(i=a.moveSpeed),this.animationController.update(a.isGrounded,i,a.isFloating,t.currentState);const s=this.inputManager.isKeyPressed("ArrowUp"),n=this.inputManager.isShiftPressed(),o=this.inputManager.isKeyPressed(" ")||this.inputManager.isKeyPressed("Space");if(s&&a.isGrounded&&!a.isJumping){a.isJumping=!0,a.jumpStartTime=Date.now(),a.isGrounded=!1;const g=n?d.SUPER_JUMP_POWER:d.JUMP_POWER;a.velocityY=-g*.6}if(s&&a.isJumping&&a.velocityY<0){const g=Date.now()-a.jumpStartTime;if(g<=d.MAX_JUMP_DURATION){const p=Math.min(g/d.MAX_JUMP_DURATION,1),M=-(n?d.SUPER_JUMP_POWER:d.JUMP_POWER)*(.6+.4*p);a.velocityY>M&&(a.velocityY=M)}}(!s||Date.now()-a.jumpStartTime>d.MAX_JUMP_DURATION)&&a.isJumping&&(a.isJumping=!1),o&&!a.isGrounded?(a.isFloating||(a.velocityY=0),a.isFloating=!0):a.isFloating=!1,a.velocityX=i,a.x+=a.velocityX;const c=a.isFloating&&a.velocityY>=0?a.floatGravity:a.gravity;a.velocityY+=c,a.y+=a.velocityY;const h={width:d.CANVAS_WIDTH,height:d.CANVAS_HEIGHT},m=this.collisionManager.resolveBoundaryCollision(a,h);if(m.fellOffScreen){t.loseLife();return}a=m.player,a.isGrounded=!1,t.updatePlayer(a)}updateMonsters(e){const t=Date.now(),a=(t-this.mapStartTime)/1e3;Math.floor(a/5)!==Math.floor((a-e/1e3)/5)&&x.debug(`GameManager.updateMonsters() called at ${a.toFixed(1)}s`),this.monsterSpawnManager.update(t,e);const i=this.monsterRespawnManager.update(),s=N.getState();let n=s.monsters;i.length>0&&(n=[...n,...i],x.debug(`Added ${i.length} respawned monsters to active list: ${i.map(c=>c.type).join(", ")}`));const o=this.monsterRespawnManager.getDeadMonsterCount();o>0&&x.debug(`Respawn system: ${o} monsters waiting to respawn`),s.updateMonsters(n)}updateCoins(e){const t=N.getState(),a=t.currentMap?.platforms||[],i=t.currentMap?.ground,s=t.coinManager;i&&s&&(s.checkSpawnConditions(t),s.update(a,i,t),t.setCoins(s.getCoins()),t.updateMonsterStates(t.monsters)),t.updateFloatingTexts()}handleCollisions(){const e=N.getState(),{player:t,platforms:a,bombs:i,monsters:s,ground:n,coins:o}=e,c=this.collisionManager.checkPlayerPlatformCollision(t,a);if(c.hasCollision&&c.normal&&c.penetration){const p={...t};c.normal.y===-1?(p.y=p.y-c.penetration,p.velocityY=0,p.isGrounded=!0):c.normal.y===1?(p.y=p.y+c.penetration,p.velocityY=0):c.normal.x===1?(p.x=p.x+c.penetration,p.velocityX=0):c.normal.x===-1&&(p.x=p.x-c.penetration,p.velocityX=0),e.updatePlayer(p)}if(n){const p=this.collisionManager.checkPlayerGroundCollision(t,n);if(p.hasCollision&&p.normal&&p.penetration){const y={...t};p.normal.y===-1?(y.y=y.y-p.penetration,y.velocityY=0,y.isGrounded=!0):p.normal.y===1?(y.y=y.y+p.penetration,y.velocityY=0):p.normal.x===1?(y.x=y.x+p.penetration,y.velocityX=0):p.normal.x===-1&&(y.x=y.x-p.penetration,y.velocityX=0),e.updatePlayer(y)}}const h=this.collisionManager.checkPlayerBombCollision(t,i);if(h){this.audioManager.playSound(z.BOMB_COLLECT);const p=e.collectBomb(h.order);p&&p.isCorrect&&e.onFirebombCollected()}const m=this.collisionManager.checkPlayerCoinCollision(t,o);m&&(this.audioManager.playSound(z.COIN_COLLECT),e.collectCoin(m),m.type==="POWER"&&this.audioManager.playSound(z.POWER_COIN_ACTIVATE));const g=this.collisionManager.checkPlayerMonsterCollision(t,s);if(g)if(e.activeEffects.powerMode){const p=e.coinManager?.calculateMonsterKillPoints(e.multiplier)||d.MONSTER_KILL_POINTS*e.multiplier;if(e.addScore(p),e.addFloatingText){const y=p.toString();e.addFloatingText(y,g.x+g.width/2,g.y+g.height/2,1e3,"#fff",15)}e.coinManager&&e.coinManager.onPointsEarned(p,!1),x.debug(`Monster killed during power mode: ${p} points`),this.audioManager.playSound(z.COIN_COLLECT),this.monsterRespawnManager.killMonster(g)}else this.audioManager.playSound(z.MONSTER_HIT),this.handlePlayerDeath()}handlePlayerDeath(){const e=N.getState();e.lives<=1?e.loseLife():(e.loseLife(),this.respawnPlayer())}respawnPlayer(){const e=N.getState(),t=e.currentMap;if(t){e.clearAllFloatingTexts(),this.scalingManager.resetOnDeath(),x.debug("ScalingManager: Reset difficulty to base values after player death"),e.resetCoinState(),x.debug("Coins reset after player death"),e.setPlayerPosition(t.playerStart.x,t.playerStart.y);const a=t.monsters.map(i=>({...i,x:i.patrolStartX||i.x,direction:1}));e.updateMonsters(a),this.animationController.reset(),this.renderManager.loadMapBackground(t.name),e.setMenuType(A.COUNTDOWN),e.setState(C.COUNTDOWN),setTimeout(()=>{e.setState(C.PLAYING)},3e3)}}checkWinCondition(){const e=N.getState();e.collectedBombs.length===d.TOTAL_BOMBS&&(x.game("Level completed - proceeding to next phase"),this.wasGroundedWhenMapCleared=e.player.isGrounded,this.audioManager.playSound(z.MAP_CLEARED),e.setState(C.MAP_CLEARED),setTimeout(()=>{this.proceedAfterMapCleared()},3e3))}proceedAfterMapCleared(){const e=N.getState(),t=d.BONUS_POINTS[e.correctOrderCount]||0,a=Date.now()-this.mapStartTime,i=e.getCoinStats(),s=i.totalCoinsCollected,n=i.totalPowerCoinsCollected;if(e.clearAllFloatingTexts(),e.resetEffects(),e.resetCoinState(),x.debug("Coins reset when map is cleared"),e.currentMap){const o={level:e.currentLevel,mapName:e.currentMap.name,correctOrderCount:e.correctOrderCount,totalBombs:d.TOTAL_BOMBS,score:e.score,bonus:t,hasBonus:t>0,coinsCollected:s,powerModeActivations:n,completionTime:a,timestamp:Date.now(),lives:e.lives,multiplier:e.multiplier};e.addLevelResult(o);const c={mapName:e.currentMap.name,level:e.currentLevel,correctOrderCount:e.correctOrderCount,totalBombs:d.TOTAL_BOMBS,score:e.score,bonus:t,hasBonus:t>0,timestamp:Date.now(),lives:e.lives,multiplier:e.multiplier,completionTime:a,coinsCollected:s,powerModeActivations:n};bt(c)}t>0?(e.setMenuType(A.BONUS),e.setState(C.BONUS),this.audioManager.playSound(z.BONUS_SCREEN),e.addScore(t),e.coinManager&&e.coinManager.onPointsEarned(t,!0)):this.proceedToNextLevel()}proceedToNextLevel(){const e=N.getState();e.currentLevel+1<=Ce.length?(e.resetEffects(),e.resetCoinState(),x.debug("Coins reset when proceeding to next level"),e.nextLevel(),this.loadCurrentLevel(),e.setMenuType(A.COUNTDOWN),e.setState(C.COUNTDOWN),setTimeout(()=>{e.setState(C.PLAYING)},3e3)):(e.setState(C.VICTORY),e.setMenuType(A.VICTORY))}continueToNextLevel(){this.proceedToNextLevel()}calculateBonus(e){return d.BONUS_POINTS[e]||0}render(){const e=N.getState();this.renderManager.render(e.player,e.platforms,e.bombs,e.monsters,e.ground,e.coins,e.floatingTexts,e.coinManager,this.monsterSpawnManager,e.currentMap,e)}cleanup(){this.stop(),this.inputManager.cleanup(),this.audioManager.cleanup()}getPauseStatus(){return{gameState:N.getState().currentState,scalingManager:this.scalingManager.getPauseStatus(),spawnManager:this.monsterSpawnManager.getPauseStatus(),respawnManager:{isPaused:this.monsterRespawnManager.isPaused()}}}getSpawnStatus(){return this.monsterSpawnManager.getSpawnStatus()}getSpawnManager(){return this.monsterSpawnManager}}const Fe=()=>{const[r,e]=O.useState(!1),t=O.useCallback(c=>{const h=new CustomEvent("sigurd-startup-fullscreen-change",{detail:{isFullscreen:c,timestamp:Date.now(),gameId:"sigurd-startup-game"},bubbles:!0,cancelable:!0});window.dispatchEvent(h),document.dispatchEvent(h),x.debug(`Fullscreen event dispatched: ${c?"entered":"exited"}`)},[]),a=()=>!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled),i=()=>document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement,s=O.useCallback(async c=>{if(!a())return console.warn("Fullscreen is not supported in this browser"),!1;const h=c||document.documentElement;try{return h.requestFullscreen?await h.requestFullscreen():h.webkitRequestFullscreen?await h.webkitRequestFullscreen():h.mozRequestFullScreen?await h.mozRequestFullScreen():h.msRequestFullscreen&&await h.msRequestFullscreen(),!0}catch(m){return console.error("Error entering fullscreen:",m),!1}},[]),n=O.useCallback(async()=>{try{return document.exitFullscreen?await document.exitFullscreen():document.webkitExitFullscreen?await document.webkitExitFullscreen():document.mozCancelFullScreen?await document.mozCancelFullScreen():document.msExitFullscreen&&await document.msExitFullscreen(),!0}catch(c){return console.error("Error exiting fullscreen:",c),!1}},[]),o=O.useCallback(async c=>{r?await n()&&(e(!1),t(!1)):await s(c)&&(e(!0),t(!0))},[r,s,n,t]);return O.useEffect(()=>{const c=()=>{const m=!!i();m!==r&&(e(m),t(m))};return document.addEventListener("fullscreenchange",c),document.addEventListener("webkitfullscreenchange",c),document.addEventListener("mozfullscreenchange",c),document.addEventListener("MSFullscreenChange",c),c(),()=>{document.removeEventListener("fullscreenchange",c),document.removeEventListener("webkitfullscreenchange",c),document.removeEventListener("mozfullscreenchange",c),document.removeEventListener("MSFullscreenChange",c)}},[r,t]),{isFullscreen:r,isFullscreenSupported:a(),enterFullscreen:s,exitFullscreen:n,toggleFullscreen:o}},ei=({className:r=""})=>{const e=O.useRef(null),t=O.useRef(null),{isFullscreen:a}=Fe(),[i,s]=O.useState({});return O.useEffect(()=>{const n=e.current;if(n)return n.width=d.CANVAS_WIDTH,n.height=d.CANVAS_HEIGHT,t.current=new Qa(n),t.current.start(),()=>{t.current&&t.current.cleanup()}},[]),O.useEffect(()=>{const n=()=>{if(!a){s({imageRendering:"crisp-edges"});return}const o=d.CANVAS_WIDTH/d.CANVAS_HEIGHT,c=window.innerWidth,h=window.innerHeight,m=c/h;let g,p;m>o?(p=h*.9,g=p*o):(g=c*.9,p=g/o),s({width:`${g}px`,height:`${p}px`,imageRendering:"crisp-edges"})};return n(),window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n)}},[a]),u.jsx("div",{className:"relative",children:u.jsx("canvas",{ref:e,className:`shadow-black/10 shadow-lg rounded-lg ${r}`,style:i})})};function Pt(...r){return sa.twMerge(ra.clsx(r))}const ti=ia.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),te=ht.forwardRef(({className:r,variant:e,size:t,asChild:a=!1,...i},s)=>{const n=a?aa.Slot:"button";return u.jsx(n,{className:Pt(ti({variant:e,size:t,className:r})),ref:s,...i})});te.displayName="Button";const ai=Ae.Provider,et=Ae.Root,tt=Ae.Trigger,Ye=ht.forwardRef(({className:r,sideOffset:e=4,...t},a)=>u.jsx(Ae.Content,{ref:a,sideOffset:e,className:Pt("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r),...t}));Ye.displayName=Ae.Content.displayName;const ii=()=>{const{setState:r,setMenuType:e}=N(),{isFullscreen:t,toggleFullscreen:a}=Fe(),i=O.useRef(null),s=()=>{e(A.COUNTDOWN),r(C.COUNTDOWN),setTimeout(()=>{r(C.PLAYING)},3e3)},n=()=>{e(A.SETTINGS)},o=()=>{const c=i.current?.closest("sigurd-startup");c?a(c):a()};return u.jsxs("div",{className:"flex flex-col items-center justify-center h-full rounded-lg",children:[u.jsx(ai,{children:u.jsxs(et,{children:[u.jsx(tt,{asChild:!0,children:u.jsx(te,{onClick:o,variant:"outline",className:"absolute top-4 right-4 bg-background-80 text-foreground backdrop-blur-sm border-none hover:bg-primary hover:text-black h-10 w-10",children:t?u.jsx(Y.Minimize,{className:"text-foreground hover:text-primary",size:24}):u.jsx(Y.Maximize,{className:"text-foreground hover:text-primary",size:24})})}),u.jsx(Ye,{children:t?"Avslutt fullskjerm (F11 eller F)":"Fullskjerm (F11 eller F)"})]})}),u.jsxs("div",{className:"text-center mb-8",children:[u.jsx("h1",{className:"text-4xl font-bold text-white mb-2",children:"Sigurd Startup"}),u.jsx("p",{className:"text-muted-foreground",children:"Samle så mye finansiering som mulig!"})]}),u.jsxs("div",{className:"space-y-4 w-[70%]",children:[u.jsxs(te,{onClick:s,className:"w-full bg-primary hover:bg-primary-80 text-white font-bold py-3 text-lg transition-all duration-200 uppercase flex items-center justify-center gap-2",children:[u.jsx(Y.Play,{size:20}),"Start"]}),u.jsxs(te,{onClick:n,variant:"outline",className:"w-full border-secondary text-muted-foreground hover:bg-secondary hover:text-white font-bold py-3 text-lg transition-all duration-200 uppercase flex items-center justify-center gap-2",children:[u.jsx(Y.Settings,{size:20}),"Innstillinger"]})]})]})},ri=()=>{const[r,e]=O.useState(3),{currentMap:t}=N();return O.useEffect(()=>{{const a=setInterval(()=>{e(i=>i>1?i-1:0)},1e3);return()=>clearInterval(a)}},[]),r===0?null:u.jsx("div",{className:"text-center",children:u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"text-8xl font-bold text-primary",children:r}),u.jsxs("div",{className:"flex items-center justify-center gap-2",children:[u.jsx("div",{className:"w-2 h-2 bg-white rounded-full p-1 animate-pulse"}),u.jsx("p",{className:"text-2xl text-white uppercase italic",children:t?.name}),u.jsx("div",{className:"w-2 h-2 bg-white rounded-full p-1 animate-pulse"})]})]})})},si=()=>{const{score:r,lives:e,currentLevel:t,setState:a,setMenuType:i,isPaused:s,multiplier:n,multiplierScore:o}=N(),c=O.useRef(null),{isFullscreen:h,toggleFullscreen:m}=Fe(),g=()=>{s?a(C.PLAYING):(a(C.PAUSED),i(A.PAUSE))},p=()=>{const M=c.current?.closest("sigurd-startup");M?m(M):m()},y=Ca(o,n);return u.jsxs("div",{ref:c,className:"flex justify-between items-center w-full h-full",children:[u.jsx("div",{className:"absolute top-4 left-1/2 transform -translate-x-1/2 z-10 bg-background-80 text-foreground px-4 py-2 rounded-lg backdrop-blur-sm pointer-events-auto",children:u.jsxs("div",{className:"flex items-center gap-4 text-sm font-mono",children:[u.jsx("div",{className:"text-center",children:u.jsxs("div",{className:"text-primary font-bold flex items-center gap-1",children:[u.jsx(Y.CircleDollarSign,{size:16}),r.toLocaleString()]})}),u.jsx("div",{className:"w-px h-8 bg-border"}),u.jsx("div",{className:"text-center",children:u.jsxs("div",{className:"text-primary font-bold flex items-center gap-1",children:[u.jsx(Y.Map,{size:16}),t.toLocaleString()]})}),u.jsx("div",{className:"w-px h-8 bg-border"}),u.jsxs("div",{className:"min-w-20 flex justify-center border border-primary p-1 rounded-lg relative overflow-hidden",children:[u.jsx("div",{className:"absolute inset-0 bg-primary-20 transition-all duration-300 ease-out",style:{width:`${y*100}%`}}),u.jsxs("div",{className:"text-primary text-center font-bold flex items-center gap-1 relative z-10",children:[u.jsx(Y.Zap,{size:16}),"x",n]})]})]})}),u.jsxs("div",{className:"flex items-center space-x-4 absolute right-4 top-4",children:[u.jsx(Ze.TooltipProvider,{children:u.jsxs(et,{children:[u.jsx(tt,{asChild:!0,children:u.jsx(te,{onClick:g,variant:"outline",className:"bg-background-80 text-foreground backdrop-blur-sm border-none hover:bg-primary hover:text-black h-10 w-10",children:s?u.jsx(Y.Play,{className:"text-white hover:text-primary",size:24}):u.jsx(Y.Pause,{className:"text-foreground hover:text-primary",size:24})})}),u.jsx(Ye,{children:"Pause Spill (P)"})]})}),u.jsx(Ze.TooltipProvider,{children:u.jsxs(et,{children:[u.jsx(tt,{asChild:!0,children:u.jsx(te,{onClick:p,variant:"outline",className:"bg-background-80 text-foreground backdrop-blur-sm border-none hover:bg-primary hover:text-black h-10 w-10",children:h?u.jsx(Y.Minimize,{className:"text-foreground hover:text-primary",size:24}):u.jsx(Y.Maximize,{className:"text-foreground hover:text-primary",size:24})})}),u.jsx(Ye,{children:h?"Avslutt fullskjerm (F11 eller F)":"Fullskjerm (F11 eller F)"})]})})]}),u.jsx("div",{className:`absolute left-3 bottom-2 ${h?"bottom-4":"bottom-2"}`,children:u.jsxs("div",{className:"text-xl font-bold text-red-400 flex items-center gap-1",children:[Array.from({length:3}).map((M,T)=>u.jsx(Y.Heart,{color:"#ff3143",size:h?25:20,fill:T<e?"#ff3143":"none"},T)),e>3?u.jsxs("p",{children:["+ ",e-3]}):""]})})]})},ni=()=>{const{setState:r,setMenuType:e,resetGame:t}=N(),a=()=>{e(A.COUNTDOWN),r(C.COUNTDOWN),setTimeout(()=>{r(C.PLAYING)},3e3)},i=()=>{e(A.SETTINGS)},s=()=>{t(),r(C.MENU),e(A.START)},n=()=>{const{resetBombState:o,resetPlayer:c,resetEffects:h,clearAllFloatingTexts:m,currentMap:g}=N.getState();if(o(),c(),h(),m(),g){const{initializeLevel:p}=N.getState();p(g)}r(C.MENU),e(A.COUNTDOWN),r(C.COUNTDOWN),setTimeout(()=>{r(C.PLAYING)},3e3)};return u.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:u.jsxs("div",{className:"space-y-4",children:[u.jsxs(te,{onClick:a,className:"w-full bg-primary hover:bg-primary-80 text-white font-bold py-3 text-md transition-all duration-200 uppercase flex items-center justify-center gap-2",children:[u.jsx(Y.Play,{size:20}),"Fortsett"]}),u.jsxs(te,{onClick:i,variant:"outline",className:"w-full border-secondary text-muted-foreground bg-secondary hover:text-white font-bold py-3 text-md transition-all duration-200 uppercase flex items-center justify-center gap-2",children:[u.jsx(Y.Settings,{size:20}),"Innstillinger"]}),u.jsxs(te,{onClick:n,variant:"outline",className:"w-full border-secondary text-muted-foreground bg-secondary hover:text-white font-bold py-3 text-md transition-all duration-200 uppercase flex items-center justify-center gap-2",children:[u.jsx(Y.RotateCcw,{size:20}),"Start på nytt"]}),u.jsxs(te,{onClick:s,variant:"default",className:"w-full bg-red-600 hover:bg-red-600/80 text-white font-bold py-3 text-md transition-all duration-200 uppercase flex items-center justify-center gap-2",children:[u.jsx(Y.Home,{size:20}),"hovedmeny"]})]})})},oi=()=>{const{setMenuType:r,previousMenu:e}=N(),t=N(g=>g.audioSettings),a=N(g=>g.updateAudioSettings),{masterVolume:i,musicVolume:s,sfxVolume:n,masterMuted:o,musicMuted:c,sfxMuted:h}=t||{masterVolume:80,musicVolume:70,sfxVolume:90,masterMuted:!1,musicMuted:!1,sfxMuted:!1},m=()=>{r(e||A.START)};return u.jsxs("div",{className:"flex flex-col items-center justify-center h-full w-full",children:[u.jsxs("div",{className:"flex items-center mb-6 w-[70%] gap-2",children:[u.jsx(te,{onClick:m,variant:"default",className:"bg-primary hover:bg-primary/80 text-white w-10 h-10",children:u.jsx(Y.ArrowLeft,{size:25})}),u.jsx("h2",{className:"text-2xl font-bold text-white uppercase",children:"Innstillinger"})]}),u.jsxs("div",{className:"space-y-2 w-[70%]",children:[u.jsxs("div",{className:"p-3 bg-card rounded-md",children:[u.jsxs("div",{className:"flex justify-between items-center mb-2",children:[u.jsx("span",{className:"text-muted-foreground",children:"Master volum"}),u.jsx("button",{onClick:()=>a({masterMuted:!o}),className:`px-3 py-1 rounded text-sm font-mono ${o?"bg-red-600 text-white":"bg-secondary text-white"}`,children:o?"Muted":`${i}%`})]}),u.jsx("input",{type:"range",min:"0",max:"100",value:o?0:i,onChange:g=>a({masterVolume:Number(g.target.value)}),className:"w-full accent-primary",disabled:o})]}),u.jsxs("div",{className:"p-3 bg-card rounded-md",children:[u.jsxs("div",{className:"flex justify-between items-center mb-2",children:[u.jsx("span",{className:"text-muted-foreground",children:"Musikk volum"}),u.jsx("button",{onClick:()=>a({musicMuted:!c}),className:`px-3 py-1 rounded text-sm font-mono ${c?"bg-red-600 text-white":"bg-secondary text-white"}`,children:c?"Muted":`${s}%`})]}),u.jsx("input",{type:"range",min:"0",max:"100",value:c?0:s,onChange:g=>a({musicVolume:Number(g.target.value)}),className:"w-full accent-primary",disabled:c})]}),u.jsxs("div",{className:"p-3 bg-card rounded-md",children:[u.jsxs("div",{className:"flex justify-between items-center mb-2",children:[u.jsx("span",{className:"text-muted-foreground",children:"Lyd effekter"}),u.jsx("button",{onClick:()=>a({sfxMuted:!h}),className:`px-3 py-1 rounded text-sm font-mono ${h?"bg-red-600 text-white":"bg-secondary text-white"}`,children:h?"Muted":`${n}%`})]}),u.jsx("input",{type:"range",min:"0",max:"100",value:h?0:n,onChange:g=>a({sfxVolume:Number(g.target.value)}),className:"w-full accent-primary",disabled:h})]}),u.jsx("div",{className:"text-center text-sm text-gray-400",children:u.jsx("p",{children:"(Trykk på tallene for å mute lyd)"})})]})]})},li=(r,e={})=>{const{duration:t=3e3,steps:a=60,easing:i="ease-out",delay:s=0,onComplete:n}=e,[o,c]=O.useState(0),h=O.useRef(!1),m=O.useRef(r);return O.useEffect(()=>{if(r===0){c(0),h.current=!1;return}if(m.current!==r&&(h.current=!1,c(0),m.current=r),h.current){c(r);return}const g=setTimeout(()=>{const p=t/a;let y=0;const M=setInterval(()=>{y++;const T=y/a;let R;switch(i){case"linear":R=T;break;case"ease-out":R=1-(1-T)*(1-T);break;case"gentle-ease-out":R=1-Math.pow(1-T,1.5);break;case"ease-in":R=T*T;break;case"ease-in-out":R=T<.5?2*T*T:1-Math.pow(-2*T+2,2)/2;break;default:R=1-(1-T)*(1-T)}const G=r*R,L=Math.round(G);c(L),y>=a&&(c(r),h.current=!0,clearInterval(M),n&&n())},p);return()=>clearInterval(M)},s);return()=>clearTimeout(g)},[r,t,a,i,s,n]),o},ci=()=>{const{correctOrderCount:r,currentMap:e,currentLevel:t,nextLevel:a,setState:i,setMenuType:s,initializeLevel:n,setBonusAnimationComplete:o}=N(),c=d.BONUS_POINTS[r]||5e4,h=li(c,{duration:6e3,steps:120,easing:"gentle-ease-out",delay:200,onComplete:()=>o(!0)});return u.jsxs("div",{className:"text-center max-w-md",children:[u.jsxs("h1",{className:"text-4xl font-bold text-primary mb-4 uppercase",children:[e?.name," Fullført!"]}),u.jsx("div",{className:"text-white mb-6 space-y-4",children:c>0&&u.jsxs("div",{className:"flex flex-col items-center justify-center gap-5",children:[u.jsxs("div",{className:"text-2xl",children:["Bra jobba! Du samlet"," ",u.jsx("span",{className:"font-bold text-primary animate-pulse",children:r})," ","av 23 finansiering og unngikk byrokratet!"," "]}),u.jsxs("div",{className:"text-4xl font-bold animate-pulse",children:[h.toLocaleString()," kr"]}),u.jsx("div",{className:"text-sm text-gray-400 mt-2",children:Ce.length>t?`Fortsetter til ${Ce[t]?.name||"Neste nivå"}...`:""})]})})]})},di=()=>{const{score:r,resetGame:e}=N(),t=()=>{e()};return u.jsxs("div",{className:"text-center max-w-md flex flex-col items-center justify-center gap-4",children:[u.jsx("h1",{className:"text-2xl font-bold uppercase",children:"slutt"}),u.jsxs("div",{className:"text-white mb-6 space-y-4",children:[u.jsx("div",{className:"text-2xl text-primary",children:"Du har klart det umulige!"}),u.jsx("div",{className:"text-lg",children:"Du hjalp Sigurd med å unngå byrokratiske hindringer og samle finansiering."}),u.jsxs("div",{className:"text-2xl flex flex-col items-center justify-center gap-2",children:[u.jsx("div",{className:"text-foreground",children:"Total finansiering samlet:"}),u.jsx("div",{className:"font-bold text-3xl text-primary",children:r.toLocaleString()})]})]}),u.jsx("div",{className:"flex items-center justify-center gap-2",children:u.jsx("button",{onClick:t,className:"bg-primary text-white font-bold hover:bg-primary/80 rounded-lg py-1 px-3 text-lg transition-all duration-200 transform hover:scale-105 flex items-center justify-center gap-2",children:u.jsx(Y.Home,{className:"w-7 h-7",strokeWidth:2})})})]})},ui=()=>{const{score:r,resetGame:e,levelHistory:t}=N(),a=()=>{e()};return u.jsxs("div",{className:"bg-gradient-to-b rounded-lg text-center max-w-md",children:[u.jsx("h1",{className:"text-4xl font-bold text-red-400 mb-4 uppercase",children:"konkurs"}),u.jsxs("div",{className:"text-white mb-6 space-y-3",children:[u.jsx("div",{className:"text-2xl",children:u.jsxs("span",{className:"text-yellow-400",children:["Total finansiering:"," ",u.jsxs("span",{className:"font-bold text-white",children:[r.toLocaleString()," kr"]})]})}),t.length>0&&u.jsx("div",{className:"mt-6 border-t border-gray-600 pt-4",children:u.jsx("div",{className:"overflow-x-auto",children:u.jsxs("table",{className:"w-full text-sm",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"border-b border-gray-600",children:[u.jsx("th",{className:"text-left py-2 px-2 text-primary font-semibold",children:"Bane"}),u.jsx("th",{className:"text-left py-2 px-2 text-primary font-semibold",children:"Mynter"}),u.jsx("th",{className:"text-left py-2 px-2 text-primary font-semibold",children:"Finansiering"}),u.jsx("th",{className:"text-left py-2 px-2 text-primary font-semibold",children:"Bonus"})]})}),u.jsx("tbody",{children:t.map((i,s)=>u.jsxs("tr",{className:"border-b border-gray-700/50",children:[u.jsxs("td",{className:"py-2 px-2 text-gray-300",children:[i.level," (",i.mapName,")"]}),u.jsx("td",{className:"py-2 px-2 text-gray-300",children:i.coinsCollected}),u.jsx("td",{className:"py-2 px-2 text-gray-300",children:i.score.toLocaleString()}),u.jsx("td",{className:"py-2 px-2",children:i.bonus>0?u.jsxs("span",{className:"text-yellow-400 font-semibold",children:[i.bonus.toLocaleString()," kr"]}):u.jsx("span",{className:"text-gray-500",children:"-"})})]},s))})]})})})]}),u.jsx(te,{onClick:a,className:"bg-primary hover:bg-primary/80 text-white font-bold py-3 px-8 text-lg transition-all duration-200 transform hover:scale-105 uppercase",children:"prøv igjen"})]})},hi=()=>{const{setMenuType:r,previousMenu:e}=N(),t=N(g=>g.audioSettings),a=N(g=>g.updateAudioSettings),{masterVolume:i,musicVolume:s,sfxVolume:n,masterMuted:o,musicMuted:c,sfxMuted:h}=t||{masterVolume:80,musicVolume:70,sfxVolume:90,masterMuted:!1,musicMuted:!1,sfxMuted:!1},m=()=>{r(e||A.START)};return u.jsx("div",{className:"flex items-center justify-center h-full",children:u.jsxs("div",{className:"bg-card backdrop-blur-sm rounded-xl p-6 border border-secondary max-w-md w-full",children:[u.jsxs("div",{className:"flex items-center mb-6 gap-2",children:[u.jsx(te,{onClick:m,variant:"ghost",className:"text-muted-foreground hover:text-white p-1",children:u.jsx(Y.ArrowLeft,{size:20})}),u.jsx("h2",{className:"text-xl font-bold text-primary",children:"Lydinnstillinger"})]}),u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{children:[u.jsxs("div",{className:"flex justify-between items-center mb-2",children:[u.jsx("span",{className:"text-muted-foreground",children:"Master Volume"}),u.jsx("button",{onClick:()=>a({masterMuted:!o}),className:`px-3 py-1 rounded text-sm font-mono ${o?"bg-red-600 text-white":"bg-secondary text-white"}`,children:o?"Muted":`${i}%`})]}),u.jsx("input",{type:"range",min:"0",max:"100",value:o?0:i,onChange:g=>a({masterVolume:Number(g.target.value)}),className:"w-full accent-primary",disabled:o})]}),u.jsxs("div",{children:[u.jsxs("div",{className:"flex justify-between items-center mb-2",children:[u.jsx("span",{className:"text-muted-foreground",children:"Music Volume"}),u.jsx("button",{onClick:()=>a({musicMuted:!c}),className:`px-3 py-1 rounded text-sm font-mono ${c?"bg-red-600 text-white":"bg-secondary text-white"}`,children:c?"Muted":`${s}%`})]}),u.jsx("input",{type:"range",min:"0",max:"100",value:c?0:s,onChange:g=>a({musicVolume:Number(g.target.value)}),className:"w-full accent-primary",disabled:c})]}),u.jsxs("div",{children:[u.jsxs("div",{className:"flex justify-between items-center mb-2",children:[u.jsx("span",{className:"text-muted-foreground",children:"Sound Effects"}),u.jsx("button",{onClick:()=>a({sfxMuted:!h}),className:`px-3 py-1 rounded text-sm font-mono ${h?"bg-red-600 text-white":"bg-secondary text-white"}`,children:h?"Muted":`${n}%`})]}),u.jsx("input",{type:"range",min:"0",max:"100",value:h?0:n,onChange:g=>a({sfxVolume:Number(g.target.value)}),className:"w-full accent-primary",disabled:h})]})]})]})})},re=({children:r,transparent:e})=>u.jsx("div",{className:`absolute inset-0 flex items-center justify-center z-50 rounded-lg ${e?"bg-transparent":"bg-menu backdrop-blur-sm"}`,children:r}),pi=r=>{const{currentState:e,setState:t,setMenuType:a,isPaused:i}=N();O.useEffect(()=>{const s=n=>{if(!(n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement))switch(n.key){case"F11":case"f":n.preventDefault(),r?.();break;case"Escape":document.fullscreenElement||document.webkitFullscreenElement?(n.preventDefault(),r?.()):e===C.PLAYING&&(n.preventDefault(),i?t(C.PLAYING):(t(C.PAUSED),a(A.PAUSE)));break;case"p":case"P":e===C.PLAYING&&(n.preventDefault(),i?t(C.PLAYING):(t(C.PAUSED),a(A.PAUSE)));break;case" ":e===C.PAUSED&&(n.preventDefault(),a(A.COUNTDOWN),t(C.COUNTDOWN),setTimeout(()=>{t(C.PLAYING)},3e3));break}};return document.addEventListener("keydown",s),()=>{document.removeEventListener("keydown",s)}},[e,i,t,a,r])},fi=()=>{const[r,e]=O.useState(!0);return O.useEffect(()=>{Et.preloadAllBackgrounds().then(()=>{v.flow("All background images preloaded"),e(!1)}).catch(t=>{v.warn("Failed to preload some background images"),e(!1)})},[]),{isPreloading:r}},se={major:2,minor:2,patch:2,build:0,timestamp:1754650011612,hash:"86ANDO",full:"2.2.2"},at=se.full,pe=()=>({version:at,major:se.major,minor:se.minor,patch:se.patch,build:se.build,timestamp:se.timestamp,hash:se.hash}),Nt=()=>{console.log(`🎮 Sigurd Startup Game v${at} (Build ${se.build})`),console.log(`📦 Hash: ${se.hash}`),console.log(`⏰ Built: ${new Date(se.timestamp).toISOString()}`)},gi=()=>{const{currentState:r,showMenu:e}=N(),t=O.useRef(null),{toggleFullscreen:a}=Fe(),{isFullscreen:i}=Fe(),{isPreloading:s}=fi();return pi(()=>{const o=t.current?.closest("sigurd-startup");o?a(o):a()}),u.jsxs("div",{ref:t,className:"relative rounded-lg",children:[u.jsx(ei,{}),s&&u.jsx(re,{children:u.jsxs("div",{className:"text-white text-center",children:[u.jsx("div",{className:"text-lg font-bold mb-2",children:"Loading Backgrounds..."}),u.jsx("div",{className:"text-sm text-gray-300",children:"Please wait while we prepare your game"})]})}),q.ENABLED,u.jsxs("div",{className:`absolute bottom-3 right-3 ${i?"text-md":"text-xs"} text-muted-foreground z-40 ${i?"bottom-4":"bottom-3"}`,children:["v",at," (Build ",pe().build,")"]}),!s&&u.jsxs(u.Fragment,{children:[e===A.START&&u.jsx(re,{children:u.jsx(ii,{})}),e===A.COUNTDOWN&&u.jsx(re,{children:u.jsx(ri,{})}),e===A.PAUSE&&u.jsx(re,{children:u.jsx(ni,{})}),e===A.SETTINGS&&u.jsx(re,{children:u.jsx(oi,{})}),r===C.PLAYING&&u.jsx(re,{transparent:!0,children:u.jsx(si,{})}),e===A.BONUS&&u.jsx(re,{children:u.jsx(ci,{})}),e===A.VICTORY&&u.jsx(re,{children:u.jsx(di,{})}),e===A.GAME_OVER&&u.jsx(re,{children:u.jsx(ui,{})}),e===A.AUDIO_SETTINGS&&u.jsx(re,{children:u.jsx(hi,{})})]})]})},mi='*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:JetBrains Mono,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}:root{--background: #302e2b;--foreground: #ffffff;--card: #262521;--card-foreground: #ffffff;--popover: #262521;--popover-foreground: #ffffff;--primary: #81b64c;--primary-light: #94cc5b;--primary-dark: #6ca039;--primary-opacity-hover: #8bc2546f;--primary-foreground: #ffffff;--secondary: #484744;--secondary-light: #5a5956;--secondary-dark: #3a3936;--secondary-foreground: #ffffff;--muted: #343434;--muted-foreground: #cbcbca;--accent: #81b64c;--accent-foreground: #ffffff;--destructive: #ef4444;--destructive-foreground: #ffffff;--border: #484744;--input: #484744;--ring: #81b64c;--radius: .5rem;--menu-background: #262521c6;--sidebar-background: #262521;--sidebar-foreground: #ffffff;--sidebar-primary: #81b64c;--sidebar-primary-foreground: #ffffff;--sidebar-accent: #484744;--sidebar-accent-foreground: #ffffff;--sidebar-border: #484744;--sidebar-ring: #81b64c;--gradient-primary: linear-gradient(135deg, #94cc5b 0%, #436324 100%);--gradient-primary-hover: linear-gradient(135deg, #8bc254 0%, #7aa847 100%);--gradient-primary-subtle: linear-gradient( 135deg, #81b64c 0%, #7aa847 100% );--gradient-primary-radial: radial-gradient( circle at center, #81b64c 0%, #6a9a3d 100% )}.dark{--background: #302e2b;--foreground: #ffffff;--card: #262521;--card-foreground: #ffffff;--popover: #262521;--popover-foreground: #ffffff;--primary: #81b64c;--primary-light: #94cc5b;--primary-dark: #436324;--primary-opacity-hover: #8bc2546f;--primary-foreground: #ffffff;--secondary: #484744;--secondary-foreground: #ffffff;--muted: #262521;--muted-foreground: #cbcbca;--accent: #81b64c;--accent-foreground: #ffffff;--destructive: #dc2626;--destructive-foreground: #ffffff;--border: #484744;--input: #484744;--ring: #81b64c;--sidebar-background: #262521;--sidebar-foreground: #ffffff;--sidebar-primary: #81b64c;--sidebar-primary-foreground: #ffffff;--sidebar-accent: #484744;--sidebar-accent-foreground: #ffffff;--sidebar-border: #484744;--sidebar-ring: #81b64c;--gradient-primary: linear-gradient(135deg, #81b64c 0%, #6a9a3d 100%);--gradient-primary-hover: linear-gradient(135deg, #8bc254 0%, #7aa847 100%);--gradient-primary-subtle: linear-gradient( 135deg, #81b64c 0%, #7aa847 100% );--gradient-primary-radial: radial-gradient( circle at center, #81b64c 0%, #6a9a3d 100% )}*{border-color:var(--border)}body{background-color:var(--background);color:var(--foreground)}:fullscreen{background:var(--background)}:-webkit-full-screen{background:var(--background)}:-moz-full-screen{background:var(--background)}:-ms-fullscreen{background:var(--background)}.container{width:100%;margin-right:auto;margin-left:auto;padding-right:2rem;padding-left:2rem}@media (min-width: 1400px){.container{max-width:1400px}}.pointer-events-auto{pointer-events:auto}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.bottom-2{bottom:.5rem}.bottom-3{bottom:.75rem}.bottom-4{bottom:1rem}.left-1{left:.25rem}.left-1\\/2{left:50%}.left-3{left:.75rem}.right-3{right:.75rem}.right-4{right:1rem}.top-1{top:.25rem}.top-4{top:1rem}.z-10{z-index:10}.z-40{z-index:40}.z-50{z-index:50}.float-right{float:right}.float-left{float:left}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.mt-2{margin-top:.5rem}.mt-6{margin-top:1.5rem}.block{display:block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-2{height:.5rem}.h-4{height:1rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-full{height:100%}.min-h-screen{min-height:100vh}.w-10{width:2.5rem}.w-2{width:.5rem}.w-4{width:1rem}.w-7{width:1.75rem}.w-\\[70\\%\\]{width:70%}.w-full{width:100%}.w-px{width:1px}.min-w-20{min-width:5rem}.max-w-md{max-width:28rem}.-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.resize{resize:both}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-none{border-style:none}.border-gray-600{--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity, 1))}.border-gray-700\\/50{border-color:#37415180}.border-input{border-color:var(--input)}.bg-background{background-color:var(--background)}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))}.bg-border{background-color:var(--border)}.bg-card{background-color:var(--card)}.bg-destructive{background-color:var(--destructive)}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-menu{background-color:var(--menu-background)}.bg-popover{background-color:var(--popover)}.bg-primary{background-color:var(--primary)}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}.bg-secondary{background-color:var(--secondary)}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.p-1{padding:.25rem}.p-3{padding:.75rem}.p-6{padding:1.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.font-mono{font-family:JetBrains Mono,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-8xl{font-size:6rem;line-height:1}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.italic{font-style:italic}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-destructive-foreground{color:var(--destructive-foreground)}.text-foreground{color:var(--foreground)}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-popover-foreground{color:var(--popover-foreground)}.text-primary-foreground{color:var(--primary-foreground)}.text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.text-secondary-foreground{color:var(--secondary-foreground)}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-yellow-400{--tw-text-opacity: 1;color:rgb(250 204 21 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.accent-primary{accent-color:var(--primary)}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-black\\/10{--tw-shadow-color: rgb(0 0 0 / .1);--tw-shadow: var(--tw-shadow-colored)}.outline{outline-style:solid}.ring-offset-background{--tw-ring-offset-color: var(--background)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in-0{--tw-enter-opacity: 0}.zoom-in-95{--tw-enter-scale: .95}.duration-200{animation-duration:.2s}.duration-300{animation-duration:.3s}.ease-in{animation-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{animation-timing-function:cubic-bezier(0,0,.2,1)}.running{animation-play-state:running}.paused{animation-play-state:paused}.bg-background-80{background-color:#302e2bcc}.bg-primary-20{background-color:#81b64c33}.text-muted-foreground{color:var(--muted-foreground)}.text-primary{color:var(--primary)}.border-primary{border-color:var(--primary)}.border-secondary{border-color:var(--secondary)}.hover\\:scale-105:hover{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:bg-accent:hover{background-color:var(--accent)}.hover\\:bg-primary:hover{background-color:var(--primary)}.hover\\:bg-red-600\\/80:hover{background-color:#dc2626cc}.hover\\:bg-secondary:hover{background-color:var(--secondary)}.hover\\:text-accent-foreground:hover{color:var(--accent-foreground)}.hover\\:text-black:hover{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.hover\\:text-blue-700:hover{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}.hover\\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:bg-primary-80:hover{background-color:#81b64ccc}.hover\\:text-primary:hover{color:var(--primary)}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:ring-ring:focus-visible{--tw-ring-color: var(--ring)}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:opacity-50:disabled{opacity:.5}.data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.\\[\\&_svg\\]\\:pointer-events-none svg{pointer-events:none}.\\[\\&_svg\\]\\:size-4 svg{width:1rem;height:1rem}.\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}';class bi extends HTMLElement{constructor(){super(...arguments);b(this,"root",null)}connectedCallback(){const t=this.attachShadow({mode:"open"}),a=document.createElement("div");t.appendChild(a);const i=document.createElement("style");i.textContent=mi,t.appendChild(i),this.root=Oe.createRoot(a),this.root.render(u.jsx(gi,{})),Nt(),this.setAttribute("data-version",pe().version),this.setAttribute("data-build",pe().build.toString())}disconnectedCallback(){this.root&&(this.root.unmount(),this.root=null)}getVersion(){return pe()}isCompatible(t){const a=pe(),[i,s,n]=a.version.split(".").map(Number),[o,c,h]=t.split(".").map(Number);return i>o?!0:i<o?!1:s>c?!0:s<c?!1:n>=h}}customElements.define("sigurd-startup",bi);const wi={getVersion:pe,ASSET_PATHS:ue,getBackgroundImagePath:yt};j.ASSET_PATHS=ue,j.default=wi,j.getBackgroundImagePath=yt,j.getVersion=pe,j.logVersion=Nt,Object.defineProperties(j,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
68
|
+
<%s key={someKey} {...props} />`,At,xi,Ci,xi),Gr[xi+At]=!0}}return P===f?$r(Tn):Hl(Tn),Tn}}function ji(P,pe,Ne){return br(P,pe,Ne,!0)}function wi(P,pe,Ne){return br(P,pe,Ne,!1)}var Bi=wi,Hi=ji;dp.Fragment=f,dp.jsx=Bi,dp.jsxs=Hi}()),dp}process.env.NODE_ENV==="production"?Xy.exports=TR():Xy.exports=RR();var I=Xy.exports,pp={},Ky={exports:{}},$a={},Dv={exports:{}},Qy={};/**
|
|
69
|
+
* @license React
|
|
70
|
+
* scheduler.production.min.js
|
|
71
|
+
*
|
|
72
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
73
|
+
*
|
|
74
|
+
* This source code is licensed under the MIT license found in the
|
|
75
|
+
* LICENSE file in the root directory of this source tree.
|
|
76
|
+
*/var Qb;function MR(){return Qb||(Qb=1,function(c){function a($,_e){var Ce=$.length;$.push(_e);e:for(;0<Ce;){var V=Ce-1>>>1,oe=$[V];if(0<h(oe,_e))$[V]=_e,$[Ce]=oe,Ce=V;else break e}}function l($){return $.length===0?null:$[0]}function f($){if($.length===0)return null;var _e=$[0],Ce=$.pop();if(Ce!==_e){$[0]=Ce;e:for(var V=0,oe=$.length,Be=oe>>>1;V<Be;){var He=2*(V+1)-1,yt=$[He],xt=He+1,Ve=$[xt];if(0>h(yt,Ce))xt<oe&&0>h(Ve,yt)?($[V]=Ve,$[xt]=Ce,V=xt):($[V]=yt,$[He]=Ce,V=He);else if(xt<oe&&0>h(Ve,Ce))$[V]=Ve,$[xt]=Ce,V=xt;else break e}}return _e}function h($,_e){var Ce=$.sortIndex-_e.sortIndex;return Ce!==0?Ce:$.id-_e.id}if(typeof performance=="object"&&typeof performance.now=="function"){var y=performance;c.unstable_now=function(){return y.now()}}else{var v=Date,C=v.now();c.unstable_now=function(){return v.now()-C}}var x=[],R=[],A=1,_=null,k=3,N=!1,z=!1,G=!1,J=typeof setTimeout=="function"?setTimeout:null,de=typeof clearTimeout=="function"?clearTimeout:null,ue=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function ce($){for(var _e=l(R);_e!==null;){if(_e.callback===null)f(R);else if(_e.startTime<=$)f(R),_e.sortIndex=_e.expirationTime,a(x,_e);else break;_e=l(R)}}function fe($){if(G=!1,ce($),!z)if(l(x)!==null)z=!0,qe(le);else{var _e=l(R);_e!==null&&Te(fe,_e.startTime-$)}}function le($,_e){z=!1,G&&(G=!1,de(xe),xe=-1),N=!0;var Ce=k;try{for(ce(_e),_=l(x);_!==null&&(!(_.expirationTime>_e)||$&&!Rt());){var V=_.callback;if(typeof V=="function"){_.callback=null,k=_.priorityLevel;var oe=V(_.expirationTime<=_e);_e=c.unstable_now(),typeof oe=="function"?_.callback=oe:_===l(x)&&f(x),ce(_e)}else f(x);_=l(x)}if(_!==null)var Be=!0;else{var He=l(R);He!==null&&Te(fe,He.startTime-_e),Be=!1}return Be}finally{_=null,k=Ce,N=!1}}var Re=!1,ve=null,xe=-1,tt=5,dt=-1;function Rt(){return!(c.unstable_now()-dt<tt)}function lt(){if(ve!==null){var $=c.unstable_now();dt=$;var _e=!0;try{_e=ve(!0,$)}finally{_e?Ae():(Re=!1,ve=null)}}else Re=!1}var Ae;if(typeof ue=="function")Ae=function(){ue(lt)};else if(typeof MessageChannel<"u"){var rt=new MessageChannel,st=rt.port2;rt.port1.onmessage=lt,Ae=function(){st.postMessage(null)}}else Ae=function(){J(lt,0)};function qe($){ve=$,Re||(Re=!0,Ae())}function Te($,_e){xe=J(function(){$(c.unstable_now())},_e)}c.unstable_IdlePriority=5,c.unstable_ImmediatePriority=1,c.unstable_LowPriority=4,c.unstable_NormalPriority=3,c.unstable_Profiling=null,c.unstable_UserBlockingPriority=2,c.unstable_cancelCallback=function($){$.callback=null},c.unstable_continueExecution=function(){z||N||(z=!0,qe(le))},c.unstable_forceFrameRate=function($){0>$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):tt=0<$?Math.floor(1e3/$):5},c.unstable_getCurrentPriorityLevel=function(){return k},c.unstable_getFirstCallbackNode=function(){return l(x)},c.unstable_next=function($){switch(k){case 1:case 2:case 3:var _e=3;break;default:_e=k}var Ce=k;k=_e;try{return $()}finally{k=Ce}},c.unstable_pauseExecution=function(){},c.unstable_requestPaint=function(){},c.unstable_runWithPriority=function($,_e){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var Ce=k;k=$;try{return _e()}finally{k=Ce}},c.unstable_scheduleCallback=function($,_e,Ce){var V=c.unstable_now();switch(typeof Ce=="object"&&Ce!==null?(Ce=Ce.delay,Ce=typeof Ce=="number"&&0<Ce?V+Ce:V):Ce=V,$){case 1:var oe=-1;break;case 2:oe=250;break;case 5:oe=1073741823;break;case 4:oe=1e4;break;default:oe=5e3}return oe=Ce+oe,$={id:A++,callback:_e,priorityLevel:$,startTime:Ce,expirationTime:oe,sortIndex:-1},Ce>V?($.sortIndex=Ce,a(R,$),l(x)===null&&$===l(R)&&(G?(de(xe),xe=-1):G=!0,Te(fe,Ce-V))):($.sortIndex=oe,a(x,$),z||N||(z=!0,qe(le))),$},c.unstable_shouldYield=Rt,c.unstable_wrapCallback=function($){var _e=k;return function(){var Ce=k;k=_e;try{return $.apply(this,arguments)}finally{k=Ce}}}}(Qy)),Qy}var qy={};/**
|
|
77
|
+
* @license React
|
|
78
|
+
* scheduler.development.js
|
|
79
|
+
*
|
|
80
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
81
|
+
*
|
|
82
|
+
* This source code is licensed under the MIT license found in the
|
|
83
|
+
* LICENSE file in the root directory of this source tree.
|
|
84
|
+
*/var qb;function _R(){return qb||(qb=1,function(c){process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var a=!1,l=5;function f(Me,Je){var Ot=Me.length;Me.push(Je),v(Me,Je,Ot)}function h(Me){return Me.length===0?null:Me[0]}function y(Me){if(Me.length===0)return null;var Je=Me[0],Ot=Me.pop();return Ot!==Je&&(Me[0]=Ot,C(Me,Ot,0)),Je}function v(Me,Je,Ot){for(var an=Ot;an>0;){var Sn=an-1>>>1,On=Me[Sn];if(x(On,Je)>0)Me[Sn]=Je,Me[an]=On,an=Sn;else return}}function C(Me,Je,Ot){for(var an=Ot,Sn=Me.length,On=Sn>>>1;an<On;){var En=(an+1)*2-1,pr=Me[En],wn=En+1,sn=Me[wn];if(x(pr,Je)<0)wn<Sn&&x(sn,pr)<0?(Me[an]=sn,Me[wn]=Je,an=wn):(Me[an]=pr,Me[En]=Je,an=En);else if(wn<Sn&&x(sn,Je)<0)Me[an]=sn,Me[wn]=Je,an=wn;else return}}function x(Me,Je){var Ot=Me.sortIndex-Je.sortIndex;return Ot!==0?Ot:Me.id-Je.id}var R=1,A=2,_=3,k=4,N=5;function z(Me,Je){}var G=typeof performance=="object"&&typeof performance.now=="function";if(G){var J=performance;c.unstable_now=function(){return J.now()}}else{var de=Date,ue=de.now();c.unstable_now=function(){return de.now()-ue}}var ce=1073741823,fe=-1,le=250,Re=5e3,ve=1e4,xe=ce,tt=[],dt=[],Rt=1,lt=null,Ae=_,rt=!1,st=!1,qe=!1,Te=typeof setTimeout=="function"?setTimeout:null,$=typeof clearTimeout=="function"?clearTimeout:null,_e=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Ce(Me){for(var Je=h(dt);Je!==null;){if(Je.callback===null)y(dt);else if(Je.startTime<=Me)y(dt),Je.sortIndex=Je.expirationTime,f(tt,Je);else return;Je=h(dt)}}function V(Me){if(qe=!1,Ce(Me),!st)if(h(tt)!==null)st=!0,Wn(oe);else{var Je=h(dt);Je!==null&&zr(V,Je.startTime-Me)}}function oe(Me,Je){st=!1,qe&&(qe=!1,Aa()),rt=!0;var Ot=Ae;try{var an;if(!a)return Be(Me,Je)}finally{lt=null,Ae=Ot,rt=!1}}function Be(Me,Je){var Ot=Je;for(Ce(Ot),lt=h(tt);lt!==null&&!(lt.expirationTime>Ot&&(!Me||zi()));){var an=lt.callback;if(typeof an=="function"){lt.callback=null,Ae=lt.priorityLevel;var Sn=lt.expirationTime<=Ot,On=an(Sn);Ot=c.unstable_now(),typeof On=="function"?lt.callback=On:lt===h(tt)&&y(tt),Ce(Ot)}else y(tt);lt=h(tt)}if(lt!==null)return!0;var En=h(dt);return En!==null&&zr(V,En.startTime-Ot),!1}function He(Me,Je){switch(Me){case R:case A:case _:case k:case N:break;default:Me=_}var Ot=Ae;Ae=Me;try{return Je()}finally{Ae=Ot}}function yt(Me){var Je;switch(Ae){case R:case A:case _:Je=_;break;default:Je=Ae;break}var Ot=Ae;Ae=Je;try{return Me()}finally{Ae=Ot}}function xt(Me){var Je=Ae;return function(){var Ot=Ae;Ae=Je;try{return Me.apply(this,arguments)}finally{Ae=Ot}}}function Ve(Me,Je,Ot){var an=c.unstable_now(),Sn;if(typeof Ot=="object"&&Ot!==null){var On=Ot.delay;typeof On=="number"&&On>0?Sn=an+On:Sn=an}else Sn=an;var En;switch(Me){case R:En=fe;break;case A:En=le;break;case N:En=xe;break;case k:En=ve;break;case _:default:En=Re;break}var pr=Sn+En,wn={id:Rt++,callback:Je,priorityLevel:Me,startTime:Sn,expirationTime:pr,sortIndex:-1};return Sn>an?(wn.sortIndex=Sn,f(dt,wn),h(tt)===null&&wn===h(dt)&&(qe?Aa():qe=!0,zr(V,Sn-an))):(wn.sortIndex=pr,f(tt,wn),!st&&!rt&&(st=!0,Wn(oe))),wn}function St(){}function wt(){!st&&!rt&&(st=!0,Wn(oe))}function $t(){return h(tt)}function gn(Me){Me.callback=null}function Un(){return Ae}var yn=!1,wr=null,ar=-1,ir=l,fa=-1;function zi(){var Me=c.unstable_now()-fa;return!(Me<ir)}function ka(){}function dr(Me){if(Me<0||Me>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}Me>0?ir=Math.floor(1e3/Me):ir=l}var Fn=function(){if(wr!==null){var Me=c.unstable_now();fa=Me;var Je=!0,Ot=!0;try{Ot=wr(Je,Me)}finally{Ot?or():(yn=!1,wr=null)}}else yn=!1},or;if(typeof _e=="function")or=function(){_e(Fn)};else if(typeof MessageChannel<"u"){var Ur=new MessageChannel,yi=Ur.port2;Ur.port1.onmessage=Fn,or=function(){yi.postMessage(null)}}else or=function(){Te(Fn,0)};function Wn(Me){wr=Me,yn||(yn=!0,or())}function zr(Me,Je){ar=Te(function(){Me(c.unstable_now())},Je)}function Aa(){$(ar),ar=-1}var Si=ka,Fi=null;c.unstable_IdlePriority=N,c.unstable_ImmediatePriority=R,c.unstable_LowPriority=k,c.unstable_NormalPriority=_,c.unstable_Profiling=Fi,c.unstable_UserBlockingPriority=A,c.unstable_cancelCallback=gn,c.unstable_continueExecution=wt,c.unstable_forceFrameRate=dr,c.unstable_getCurrentPriorityLevel=Un,c.unstable_getFirstCallbackNode=$t,c.unstable_next=yt,c.unstable_pauseExecution=St,c.unstable_requestPaint=Si,c.unstable_runWithPriority=He,c.unstable_scheduleCallback=Ve,c.unstable_shouldYield=zi,c.unstable_wrapCallback=xt,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(qy)),qy}var Zb;function Jb(){return Zb||(Zb=1,process.env.NODE_ENV==="production"?Dv.exports=MR():Dv.exports=_R()),Dv.exports}/**
|
|
85
|
+
* @license React
|
|
86
|
+
* react-dom.production.min.js
|
|
87
|
+
*
|
|
88
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
89
|
+
*
|
|
90
|
+
* This source code is licensed under the MIT license found in the
|
|
91
|
+
* LICENSE file in the root directory of this source tree.
|
|
92
|
+
*/var ex;function kR(){if(ex)return $a;ex=1;var c=fp(),a=Jb();function l(n){for(var r="https://reactjs.org/docs/error-decoder.html?invariant="+n,s=1;s<arguments.length;s++)r+="&args[]="+encodeURIComponent(arguments[s]);return"Minified React error #"+n+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var f=new Set,h={};function y(n,r){v(n,r),v(n+"Capture",r)}function v(n,r){for(h[n]=r,n=0;n<r.length;n++)f.add(r[n])}var C=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),x=Object.prototype.hasOwnProperty,R=/^[: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]*$/,A={},_={};function k(n){return x.call(_,n)?!0:x.call(A,n)?!1:R.test(n)?_[n]=!0:(A[n]=!0,!1)}function N(n,r,s,d){if(s!==null&&s.type===0)return!1;switch(typeof r){case"function":case"symbol":return!0;case"boolean":return d?!1:s!==null?!s.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function z(n,r,s,d){if(r===null||typeof r>"u"||N(n,r,s,d))return!0;if(d)return!1;if(s!==null)switch(s.type){case 3:return!r;case 4:return r===!1;case 5:return isNaN(r);case 6:return isNaN(r)||1>r}return!1}function G(n,r,s,d,m,S,T){this.acceptsBooleans=r===2||r===3||r===4,this.attributeName=d,this.attributeNamespace=m,this.mustUseProperty=s,this.propertyName=n,this.type=r,this.sanitizeURL=S,this.removeEmptyString=T}var J={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){J[n]=new G(n,0,!1,n,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var r=n[0];J[r]=new G(r,1,!1,n[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(n){J[n]=new G(n,2,!1,n.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){J[n]=new G(n,2,!1,n,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(n){J[n]=new G(n,3,!1,n.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(n){J[n]=new G(n,3,!0,n,null,!1,!1)}),["capture","download"].forEach(function(n){J[n]=new G(n,4,!1,n,null,!1,!1)}),["cols","rows","size","span"].forEach(function(n){J[n]=new G(n,6,!1,n,null,!1,!1)}),["rowSpan","start"].forEach(function(n){J[n]=new G(n,5,!1,n.toLowerCase(),null,!1,!1)});var de=/[\-:]([a-z])/g;function ue(n){return n[1].toUpperCase()}"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(n){var r=n.replace(de,ue);J[r]=new G(r,1,!1,n,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var r=n.replace(de,ue);J[r]=new G(r,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(n){var r=n.replace(de,ue);J[r]=new G(r,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(n){J[n]=new G(n,1,!1,n.toLowerCase(),null,!1,!1)}),J.xlinkHref=new G("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(n){J[n]=new G(n,1,!1,n.toLowerCase(),null,!0,!0)});function ce(n,r,s,d){var m=J.hasOwnProperty(r)?J[r]:null;(m!==null?m.type!==0:d||!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(z(r,s,m,d)&&(s=null),d||m===null?k(r)&&(s===null?n.removeAttribute(r):n.setAttribute(r,""+s)):m.mustUseProperty?n[m.propertyName]=s===null?m.type===3?!1:"":s:(r=m.attributeName,d=m.attributeNamespace,s===null?n.removeAttribute(r):(m=m.type,s=m===3||m===4&&s===!0?"":""+s,d?n.setAttributeNS(d,r,s):n.setAttribute(r,s))))}var fe=c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,le=Symbol.for("react.element"),Re=Symbol.for("react.portal"),ve=Symbol.for("react.fragment"),xe=Symbol.for("react.strict_mode"),tt=Symbol.for("react.profiler"),dt=Symbol.for("react.provider"),Rt=Symbol.for("react.context"),lt=Symbol.for("react.forward_ref"),Ae=Symbol.for("react.suspense"),rt=Symbol.for("react.suspense_list"),st=Symbol.for("react.memo"),qe=Symbol.for("react.lazy"),Te=Symbol.for("react.offscreen"),$=Symbol.iterator;function _e(n){return n===null||typeof n!="object"?null:(n=$&&n[$]||n["@@iterator"],typeof n=="function"?n:null)}var Ce=Object.assign,V;function oe(n){if(V===void 0)try{throw Error()}catch(s){var r=s.stack.trim().match(/\n( *(at )?)/);V=r&&r[1]||""}return`
|
|
93
|
+
`+V+n}var Be=!1;function He(n,r){if(!n||Be)return"";Be=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(r)if(r=function(){throw Error()},Object.defineProperty(r.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(r,[])}catch(ee){var d=ee}Reflect.construct(n,[],r)}else{try{r.call()}catch(ee){d=ee}n.call(r.prototype)}else{try{throw Error()}catch(ee){d=ee}n()}}catch(ee){if(ee&&d&&typeof ee.stack=="string"){for(var m=ee.stack.split(`
|
|
94
|
+
`),S=d.stack.split(`
|
|
95
|
+
`),T=m.length-1,D=S.length-1;1<=T&&0<=D&&m[T]!==S[D];)D--;for(;1<=T&&0<=D;T--,D--)if(m[T]!==S[D]){if(T!==1||D!==1)do if(T--,D--,0>D||m[T]!==S[D]){var U=`
|
|
96
|
+
`+m[T].replace(" at new "," at ");return n.displayName&&U.includes("<anonymous>")&&(U=U.replace("<anonymous>",n.displayName)),U}while(1<=T&&0<=D);break}}}finally{Be=!1,Error.prepareStackTrace=s}return(n=n?n.displayName||n.name:"")?oe(n):""}function yt(n){switch(n.tag){case 5:return oe(n.type);case 16:return oe("Lazy");case 13:return oe("Suspense");case 19:return oe("SuspenseList");case 0:case 2:case 15:return n=He(n.type,!1),n;case 11:return n=He(n.type.render,!1),n;case 1:return n=He(n.type,!0),n;default:return""}}function xt(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case ve:return"Fragment";case Re:return"Portal";case tt:return"Profiler";case xe:return"StrictMode";case Ae:return"Suspense";case rt:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case Rt:return(n.displayName||"Context")+".Consumer";case dt:return(n._context.displayName||"Context")+".Provider";case lt:var r=n.render;return n=n.displayName,n||(n=r.displayName||r.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case st:return r=n.displayName||null,r!==null?r:xt(n.type)||"Memo";case qe:r=n._payload,n=n._init;try{return xt(n(r))}catch{}}return null}function Ve(n){var r=n.type;switch(n.tag){case 24:return"Cache";case 9:return(r.displayName||"Context")+".Consumer";case 10:return(r._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=r.render,n=n.displayName||n.name||"",r.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return r;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return xt(r);case 8:return r===xe?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r}return null}function St(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function wt(n){var r=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function $t(n){var r=wt(n)?"checked":"value",s=Object.getOwnPropertyDescriptor(n.constructor.prototype,r),d=""+n[r];if(!n.hasOwnProperty(r)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var m=s.get,S=s.set;return Object.defineProperty(n,r,{configurable:!0,get:function(){return m.call(this)},set:function(T){d=""+T,S.call(this,T)}}),Object.defineProperty(n,r,{enumerable:s.enumerable}),{getValue:function(){return d},setValue:function(T){d=""+T},stopTracking:function(){n._valueTracker=null,delete n[r]}}}}function gn(n){n._valueTracker||(n._valueTracker=$t(n))}function Un(n){if(!n)return!1;var r=n._valueTracker;if(!r)return!0;var s=r.getValue(),d="";return n&&(d=wt(n)?n.checked?"true":"false":n.value),n=d,n!==s?(r.setValue(n),!0):!1}function yn(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function wr(n,r){var s=r.checked;return Ce({},r,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:s??n._wrapperState.initialChecked})}function ar(n,r){var s=r.defaultValue==null?"":r.defaultValue,d=r.checked!=null?r.checked:r.defaultChecked;s=St(r.value!=null?r.value:s),n._wrapperState={initialChecked:d,initialValue:s,controlled:r.type==="checkbox"||r.type==="radio"?r.checked!=null:r.value!=null}}function ir(n,r){r=r.checked,r!=null&&ce(n,"checked",r,!1)}function fa(n,r){ir(n,r);var s=St(r.value),d=r.type;if(s!=null)d==="number"?(s===0&&n.value===""||n.value!=s)&&(n.value=""+s):n.value!==""+s&&(n.value=""+s);else if(d==="submit"||d==="reset"){n.removeAttribute("value");return}r.hasOwnProperty("value")?ka(n,r.type,s):r.hasOwnProperty("defaultValue")&&ka(n,r.type,St(r.defaultValue)),r.checked==null&&r.defaultChecked!=null&&(n.defaultChecked=!!r.defaultChecked)}function zi(n,r,s){if(r.hasOwnProperty("value")||r.hasOwnProperty("defaultValue")){var d=r.type;if(!(d!=="submit"&&d!=="reset"||r.value!==void 0&&r.value!==null))return;r=""+n._wrapperState.initialValue,s||r===n.value||(n.value=r),n.defaultValue=r}s=n.name,s!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,s!==""&&(n.name=s)}function ka(n,r,s){(r!=="number"||yn(n.ownerDocument)!==n)&&(s==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+s&&(n.defaultValue=""+s))}var dr=Array.isArray;function Fn(n,r,s,d){if(n=n.options,r){r={};for(var m=0;m<s.length;m++)r["$"+s[m]]=!0;for(s=0;s<n.length;s++)m=r.hasOwnProperty("$"+n[s].value),n[s].selected!==m&&(n[s].selected=m),m&&d&&(n[s].defaultSelected=!0)}else{for(s=""+St(s),r=null,m=0;m<n.length;m++){if(n[m].value===s){n[m].selected=!0,d&&(n[m].defaultSelected=!0);return}r!==null||n[m].disabled||(r=n[m])}r!==null&&(r.selected=!0)}}function or(n,r){if(r.dangerouslySetInnerHTML!=null)throw Error(l(91));return Ce({},r,{value:void 0,defaultValue:void 0,children:""+n._wrapperState.initialValue})}function Ur(n,r){var s=r.value;if(s==null){if(s=r.children,r=r.defaultValue,s!=null){if(r!=null)throw Error(l(92));if(dr(s)){if(1<s.length)throw Error(l(93));s=s[0]}r=s}r==null&&(r=""),s=r}n._wrapperState={initialValue:St(s)}}function yi(n,r){var s=St(r.value),d=St(r.defaultValue);s!=null&&(s=""+s,s!==n.value&&(n.value=s),r.defaultValue==null&&n.defaultValue!==s&&(n.defaultValue=s)),d!=null&&(n.defaultValue=""+d)}function Wn(n){var r=n.textContent;r===n._wrapperState.initialValue&&r!==""&&r!==null&&(n.value=r)}function zr(n){switch(n){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 Aa(n,r){return n==null||n==="http://www.w3.org/1999/xhtml"?zr(r):n==="http://www.w3.org/2000/svg"&&r==="foreignObject"?"http://www.w3.org/1999/xhtml":n}var Si,Fi=function(n){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(r,s,d,m){MSApp.execUnsafeLocalFunction(function(){return n(r,s,d,m)})}:n}(function(n,r){if(n.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in n)n.innerHTML=r;else{for(Si=Si||document.createElement("div"),Si.innerHTML="<svg>"+r.valueOf().toString()+"</svg>",r=Si.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;r.firstChild;)n.appendChild(r.firstChild)}});function Me(n,r){if(r){var s=n.firstChild;if(s&&s===n.lastChild&&s.nodeType===3){s.nodeValue=r;return}}n.textContent=r}var Je={animationIterationCount:!0,aspectRatio:!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},Ot=["Webkit","ms","Moz","O"];Object.keys(Je).forEach(function(n){Ot.forEach(function(r){r=r+n.charAt(0).toUpperCase()+n.substring(1),Je[r]=Je[n]})});function an(n,r,s){return r==null||typeof r=="boolean"||r===""?"":s||typeof r!="number"||r===0||Je.hasOwnProperty(n)&&Je[n]?(""+r).trim():r+"px"}function Sn(n,r){n=n.style;for(var s in r)if(r.hasOwnProperty(s)){var d=s.indexOf("--")===0,m=an(s,r[s],d);s==="float"&&(s="cssFloat"),d?n.setProperty(s,m):n[s]=m}}var On=Ce({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 En(n,r){if(r){if(On[n]&&(r.children!=null||r.dangerouslySetInnerHTML!=null))throw Error(l(137,n));if(r.dangerouslySetInnerHTML!=null){if(r.children!=null)throw Error(l(60));if(typeof r.dangerouslySetInnerHTML!="object"||!("__html"in r.dangerouslySetInnerHTML))throw Error(l(61))}if(r.style!=null&&typeof r.style!="object")throw Error(l(62))}}function pr(n,r){if(n.indexOf("-")===-1)return typeof r.is=="string";switch(n){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}}var wn=null;function sn(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var un=null,Oa=null,Fr=null;function Wa(n){if(n=at(n)){if(typeof un!="function")throw Error(l(280));var r=n.stateNode;r&&(r=Dn(r),un(n.stateNode,n.type,r))}}function mo(n){Oa?Fr?Fr.push(n):Fr=[n]:Oa=n}function jl(){if(Oa){var n=Oa,r=Fr;if(Fr=Oa=null,Wa(n),r)for(n=0;n<r.length;n++)Wa(r[n])}}function Bl(n,r){return n(r)}function Qo(){}var qo=!1;function Hl(n,r,s){if(qo)return n(r,s);qo=!0;try{return Bl(n,r,s)}finally{qo=!1,(Oa!==null||Fr!==null)&&(Qo(),jl())}}function $r(n,r){var s=n.stateNode;if(s===null)return null;var d=Dn(s);if(d===null)return null;s=d[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(d=!d.disabled)||(n=n.type,d=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!d;break e;default:n=!1}if(n)return null;if(s&&typeof s!="function")throw Error(l(231,r,typeof s));return s}var Gr=!1;if(C)try{var br={};Object.defineProperty(br,"passive",{get:function(){Gr=!0}}),window.addEventListener("test",br,br),window.removeEventListener("test",br,br)}catch{Gr=!1}function ji(n,r,s,d,m,S,T,D,U){var ee=Array.prototype.slice.call(arguments,3);try{r.apply(s,ee)}catch(ge){this.onError(ge)}}var wi=!1,Bi=null,Hi=!1,P=null,pe={onError:function(n){wi=!0,Bi=n}};function Ne(n,r,s,d,m,S,T,D,U){wi=!1,Bi=null,ji.apply(pe,arguments)}function $e(n,r,s,d,m,S,T,D,U){if(Ne.apply(this,arguments),wi){if(wi){var ee=Bi;wi=!1,Bi=null}else throw Error(l(198));Hi||(Hi=!0,P=ee)}}function Mt(n){var r=n,s=n;if(n.alternate)for(;r.return;)r=r.return;else{n=r;do r=n,r.flags&4098&&(s=r.return),n=r.return;while(n)}return r.tag===3?s:null}function Ct(n){if(n.tag===13){var r=n.memoizedState;if(r===null&&(n=n.alternate,n!==null&&(r=n.memoizedState)),r!==null)return r.dehydrated}return null}function Ut(n){if(Mt(n)!==n)throw Error(l(188))}function Dt(n){var r=n.alternate;if(!r){if(r=Mt(n),r===null)throw Error(l(188));return r!==n?null:n}for(var s=n,d=r;;){var m=s.return;if(m===null)break;var S=m.alternate;if(S===null){if(d=m.return,d!==null){s=d;continue}break}if(m.child===S.child){for(S=m.child;S;){if(S===s)return Ut(m),n;if(S===d)return Ut(m),r;S=S.sibling}throw Error(l(188))}if(s.return!==d.return)s=m,d=S;else{for(var T=!1,D=m.child;D;){if(D===s){T=!0,s=m,d=S;break}if(D===d){T=!0,d=m,s=S;break}D=D.sibling}if(!T){for(D=S.child;D;){if(D===s){T=!0,s=S,d=m;break}if(D===d){T=!0,d=S,s=m;break}D=D.sibling}if(!T)throw Error(l(189))}}if(s.alternate!==d)throw Error(l(190))}if(s.tag!==3)throw Error(l(188));return s.stateNode.current===s?n:r}function jn(n){return n=Dt(n),n!==null?bn(n):null}function bn(n){if(n.tag===5||n.tag===6)return n;for(n=n.child;n!==null;){var r=bn(n);if(r!==null)return r;n=n.sibling}return null}var Tn=a.unstable_scheduleCallback,xr=a.unstable_cancelCallback,bi=a.unstable_shouldYield,xi=a.unstable_requestPaint,_t=a.unstable_now,At=a.unstable_getCurrentPriorityLevel,Ci=a.unstable_ImmediatePriority,Vl=a.unstable_UserBlockingPriority,$l=a.unstable_NormalPriority,Zo=a.unstable_LowPriority,Vs=a.unstable_IdlePriority,Jo=null,da=null;function Xu(n){if(da&&typeof da.onCommitFiberRoot=="function")try{da.onCommitFiberRoot(Jo,n,void 0,(n.current.flags&128)===128)}catch{}}var Yr=Math.clz32?Math.clz32:$s,Ef=Math.log,Tf=Math.LN2;function $s(n){return n>>>=0,n===0?32:31-(Ef(n)/Tf|0)|0}var el=64,Na=4194304;function Ei(n){switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return n&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return n}}function Ti(n,r){var s=n.pendingLanes;if(s===0)return 0;var d=0,m=n.suspendedLanes,S=n.pingedLanes,T=s&268435455;if(T!==0){var D=T&~m;D!==0?d=Ei(D):(S&=T,S!==0&&(d=Ei(S)))}else T=s&~m,T!==0?d=Ei(T):S!==0&&(d=Ei(S));if(d===0)return 0;if(r!==0&&r!==d&&!(r&m)&&(m=d&-d,S=r&-r,m>=S||m===16&&(S&4194240)!==0))return r;if(d&4&&(d|=s&16),r=n.entangledLanes,r!==0)for(n=n.entanglements,r&=d;0<r;)s=31-Yr(r),m=1<<s,d|=n[s],r&=~m;return d}function Gs(n,r){switch(n){case 1:case 2:case 4:return r+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Gl(n,r){for(var s=n.suspendedLanes,d=n.pingedLanes,m=n.expirationTimes,S=n.pendingLanes;0<S;){var T=31-Yr(S),D=1<<T,U=m[T];U===-1?(!(D&s)||D&d)&&(m[T]=Gs(D,r)):U<=r&&(n.expiredLanes|=D),S&=~D}}function tl(n){return n=n.pendingLanes&-1073741825,n!==0?n:n&1073741824?1073741824:0}function Ys(){var n=el;return el<<=1,!(el&4194240)&&(el=64),n}function Ws(n){for(var r=[],s=0;31>s;s++)r.push(n);return r}function go(n,r,s){n.pendingLanes|=r,r!==536870912&&(n.suspendedLanes=0,n.pingedLanes=0),n=n.eventTimes,r=31-Yr(r),n[r]=s}function Mp(n,r){var s=n.pendingLanes&~r;n.pendingLanes=r,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=r,n.mutableReadLanes&=r,n.entangledLanes&=r,r=n.entanglements;var d=n.eventTimes;for(n=n.expirationTimes;0<s;){var m=31-Yr(s),S=1<<m;r[m]=0,d[m]=-1,n[m]=-1,s&=~S}}function yo(n,r){var s=n.entangledLanes|=r;for(n=n.entanglements;s;){var d=31-Yr(s),m=1<<d;m&r|n[d]&r&&(n[d]|=r),s&=~m}}var Zt=0;function Xs(n){return n&=-n,1<n?4<n?n&268435455?16:536870912:4:1}var Kt,Ku,Vi,bt,Ks,Cr=!1,$i=[],Wr=null,Gi=null,Rn=null,cn=new Map,nl=new Map,lr=[],Xr="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 Xa(n,r){switch(n){case"focusin":case"focusout":Wr=null;break;case"dragenter":case"dragleave":Gi=null;break;case"mouseover":case"mouseout":Rn=null;break;case"pointerover":case"pointerout":cn.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":nl.delete(r.pointerId)}}function Yl(n,r,s,d,m,S){return n===null||n.nativeEvent!==S?(n={blockedOn:r,domEventName:s,eventSystemFlags:d,nativeEvent:S,targetContainers:[m]},r!==null&&(r=at(r),r!==null&&Ku(r)),n):(n.eventSystemFlags|=d,r=n.targetContainers,m!==null&&r.indexOf(m)===-1&&r.push(m),n)}function Qu(n,r,s,d,m){switch(r){case"focusin":return Wr=Yl(Wr,n,r,s,d,m),!0;case"dragenter":return Gi=Yl(Gi,n,r,s,d,m),!0;case"mouseover":return Rn=Yl(Rn,n,r,s,d,m),!0;case"pointerover":var S=m.pointerId;return cn.set(S,Yl(cn.get(S)||null,n,r,s,d,m)),!0;case"gotpointercapture":return S=m.pointerId,nl.set(S,Yl(nl.get(S)||null,n,r,s,d,m)),!0}return!1}function qu(n){var r=ts(n.target);if(r!==null){var s=Mt(r);if(s!==null){if(r=s.tag,r===13){if(r=Ct(s),r!==null){n.blockedOn=r,Ks(n.priority,function(){Vi(s)});return}}else if(r===3&&s.stateNode.current.memoizedState.isDehydrated){n.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}n.blockedOn=null}function rl(n){if(n.blockedOn!==null)return!1;for(var r=n.targetContainers;0<r.length;){var s=Zs(n.domEventName,n.eventSystemFlags,r[0],n.nativeEvent);if(s===null){s=n.nativeEvent;var d=new s.constructor(s.type,s);wn=d,s.target.dispatchEvent(d),wn=null}else return r=at(s),r!==null&&Ku(r),n.blockedOn=s,!1;r.shift()}return!0}function Wl(n,r,s){rl(n)&&s.delete(r)}function _p(){Cr=!1,Wr!==null&&rl(Wr)&&(Wr=null),Gi!==null&&rl(Gi)&&(Gi=null),Rn!==null&&rl(Rn)&&(Rn=null),cn.forEach(Wl),nl.forEach(Wl)}function Ka(n,r){n.blockedOn===r&&(n.blockedOn=null,Cr||(Cr=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,_p)))}function Ri(n){function r(m){return Ka(m,n)}if(0<$i.length){Ka($i[0],n);for(var s=1;s<$i.length;s++){var d=$i[s];d.blockedOn===n&&(d.blockedOn=null)}}for(Wr!==null&&Ka(Wr,n),Gi!==null&&Ka(Gi,n),Rn!==null&&Ka(Rn,n),cn.forEach(r),nl.forEach(r),s=0;s<lr.length;s++)d=lr[s],d.blockedOn===n&&(d.blockedOn=null);for(;0<lr.length&&(s=lr[0],s.blockedOn===null);)qu(s),s.blockedOn===null&&lr.shift()}var Yi=fe.ReactCurrentBatchConfig,Qa=!0;function Qs(n,r,s,d){var m=Zt,S=Yi.transition;Yi.transition=null;try{Zt=1,al(n,r,s,d)}finally{Zt=m,Yi.transition=S}}function qs(n,r,s,d){var m=Zt,S=Yi.transition;Yi.transition=null;try{Zt=4,al(n,r,s,d)}finally{Zt=m,Yi.transition=S}}function al(n,r,s,d){if(Qa){var m=Zs(n,r,s,d);if(m===null)Uf(n,r,d,Xl,s),Xa(n,d);else if(Qu(m,n,r,s,d))d.stopPropagation();else if(Xa(n,d),r&4&&-1<Xr.indexOf(n)){for(;m!==null;){var S=at(m);if(S!==null&&Kt(S),S=Zs(n,r,s,d),S===null&&Uf(n,r,d,Xl,s),S===m)break;m=S}m!==null&&d.stopPropagation()}else Uf(n,r,d,null,s)}}var Xl=null;function Zs(n,r,s,d){if(Xl=null,n=sn(d),n=ts(n),n!==null)if(r=Mt(n),r===null)n=null;else if(s=r.tag,s===13){if(n=Ct(r),n!==null)return n;n=null}else if(s===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;n=null}else r!==n&&(n=null);return Xl=n,null}function Js(n){switch(n){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(At()){case Ci:return 1;case Vl:return 4;case $l:case Zo:return 16;case Vs:return 536870912;default:return 16}default:return 16}}var Mi=null,E=null,L=null;function Z(){if(L)return L;var n,r=E,s=r.length,d,m="value"in Mi?Mi.value:Mi.textContent,S=m.length;for(n=0;n<s&&r[n]===m[n];n++);var T=s-n;for(d=1;d<=T&&r[s-d]===m[S-d];d++);return L=m.slice(n,1<d?1-d:void 0)}function re(n){var r=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&r===13&&(n=13)):n=r,n===10&&(n=13),32<=n||n===13?n:0}function Ee(){return!0}function ut(){return!1}function Oe(n){function r(s,d,m,S,T){this._reactName=s,this._targetInst=m,this.type=d,this.nativeEvent=S,this.target=T,this.currentTarget=null;for(var D in n)n.hasOwnProperty(D)&&(s=n[D],this[D]=s?s(S):S[D]);return this.isDefaultPrevented=(S.defaultPrevented!=null?S.defaultPrevented:S.returnValue===!1)?Ee:ut,this.isPropagationStopped=ut,this}return Ce(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=Ee)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=Ee)},persist:function(){},isPersistent:Ee}),r}var pt={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},zt=Oe(pt),Qt=Ce({},pt,{view:0,detail:0}),xn=Oe(Qt),fn,Nt,dn,Nn=Ce({},Qt,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Dp,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==dn&&(dn&&n.type==="mousemove"?(fn=n.screenX-dn.screenX,Nt=n.screenY-dn.screenY):Nt=fn=0,dn=n),fn)},movementY:function(n){return"movementY"in n?n.movementY:Nt}}),il=Oe(Nn),Zu=Ce({},Nn,{dataTransfer:0}),So=Oe(Zu),Ju=Ce({},Qt,{relatedTarget:0}),Kl=Oe(Ju),kp=Ce({},pt,{animationName:0,elapsedTime:0,pseudoElement:0}),Rf=Oe(kp),Ap=Ce({},pt,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),rm=Oe(Ap),Op=Ce({},pt,{data:0}),Np=Oe(Op),am={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},im={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"},k0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function wo(n){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(n):(n=k0[n])?!!r[n]:!1}function Dp(){return wo}var Lp=Ce({},Qt,{key:function(n){if(n.key){var r=am[n.key]||n.key;if(r!=="Unidentified")return r}return n.type==="keypress"?(n=re(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?im[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Dp,charCode:function(n){return n.type==="keypress"?re(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?re(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),Pp=Oe(Lp),Ip=Ce({},Nn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),om=Oe(Ip),Mf=Ce({},Qt,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Dp}),lm=Oe(Mf),pa=Ce({},pt,{propertyName:0,elapsedTime:0,pseudoElement:0}),bo=Oe(pa),Xn=Ce({},Nn,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),xo=Oe(Xn),Up=[9,13,27,32],eu=C&&"CompositionEvent"in window,ec=null;C&&"documentMode"in document&&(ec=document.documentMode);var tc=C&&"TextEvent"in window&&!ec,sm=C&&(!eu||ec&&8<ec&&11>=ec),um=" ",_f=!1;function cm(n,r){switch(n){case"keyup":return Up.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function fm(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var tu=!1;function dm(n,r){switch(n){case"compositionend":return fm(r);case"keypress":return r.which!==32?null:(_f=!0,um);case"textInput":return n=r.data,n===um&&_f?null:n;default:return null}}function A0(n,r){if(tu)return n==="compositionend"||!eu&&cm(n,r)?(n=Z(),L=E=Mi=null,tu=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return sm&&r.locale!=="ko"?null:r.data;default:return null}}var O0={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 pm(n){var r=n&&n.nodeName&&n.nodeName.toLowerCase();return r==="input"?!!O0[n.type]:r==="textarea"}function zp(n,r,s,d){mo(d),r=lc(r,"onChange"),0<r.length&&(s=new zt("onChange","change",null,s,d),n.push({event:s,listeners:r}))}var Wi=null,Ql=null;function hm(n){Jl(n,0)}function nc(n){var r=ki(n);if(Un(r))return n}function N0(n,r){if(n==="change")return r}var vm=!1;if(C){var Fp;if(C){var jp="oninput"in document;if(!jp){var mm=document.createElement("div");mm.setAttribute("oninput","return;"),jp=typeof mm.oninput=="function"}Fp=jp}else Fp=!1;vm=Fp&&(!document.documentMode||9<document.documentMode)}function gm(){Wi&&(Wi.detachEvent("onpropertychange",ym),Ql=Wi=null)}function ym(n){if(n.propertyName==="value"&&nc(Ql)){var r=[];zp(r,Ql,n,sn(n)),Hl(hm,r)}}function D0(n,r,s){n==="focusin"?(gm(),Wi=r,Ql=s,Wi.attachEvent("onpropertychange",ym)):n==="focusout"&&gm()}function Sm(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return nc(Ql)}function L0(n,r){if(n==="click")return nc(r)}function wm(n,r){if(n==="input"||n==="change")return nc(r)}function P0(n,r){return n===r&&(n!==0||1/n===1/r)||n!==n&&r!==r}var _i=typeof Object.is=="function"?Object.is:P0;function rc(n,r){if(_i(n,r))return!0;if(typeof n!="object"||n===null||typeof r!="object"||r===null)return!1;var s=Object.keys(n),d=Object.keys(r);if(s.length!==d.length)return!1;for(d=0;d<s.length;d++){var m=s[d];if(!x.call(r,m)||!_i(n[m],r[m]))return!1}return!0}function bm(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function kf(n,r){var s=bm(n);n=0;for(var d;s;){if(s.nodeType===3){if(d=n+s.textContent.length,n<=r&&d>=r)return{node:s,offset:r-n};n=d}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=bm(s)}}function ol(n,r){return n&&r?n===r?!0:n&&n.nodeType===3?!1:r&&r.nodeType===3?ol(n,r.parentNode):"contains"in n?n.contains(r):n.compareDocumentPosition?!!(n.compareDocumentPosition(r)&16):!1:!1}function ac(){for(var n=window,r=yn();r instanceof n.HTMLIFrameElement;){try{var s=typeof r.contentWindow.location.href=="string"}catch{s=!1}if(s)n=r.contentWindow;else break;r=yn(n.document)}return r}function Af(n){var r=n&&n.nodeName&&n.nodeName.toLowerCase();return r&&(r==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||r==="textarea"||n.contentEditable==="true")}function nu(n){var r=ac(),s=n.focusedElem,d=n.selectionRange;if(r!==s&&s&&s.ownerDocument&&ol(s.ownerDocument.documentElement,s)){if(d!==null&&Af(s)){if(r=d.start,n=d.end,n===void 0&&(n=r),"selectionStart"in s)s.selectionStart=r,s.selectionEnd=Math.min(n,s.value.length);else if(n=(r=s.ownerDocument||document)&&r.defaultView||window,n.getSelection){n=n.getSelection();var m=s.textContent.length,S=Math.min(d.start,m);d=d.end===void 0?S:Math.min(d.end,m),!n.extend&&S>d&&(m=d,d=S,S=m),m=kf(s,S);var T=kf(s,d);m&&T&&(n.rangeCount!==1||n.anchorNode!==m.node||n.anchorOffset!==m.offset||n.focusNode!==T.node||n.focusOffset!==T.offset)&&(r=r.createRange(),r.setStart(m.node,m.offset),n.removeAllRanges(),S>d?(n.addRange(r),n.extend(T.node,T.offset)):(r.setEnd(T.node,T.offset),n.addRange(r)))}}for(r=[],n=s;n=n.parentNode;)n.nodeType===1&&r.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<r.length;s++)n=r[s],n.element.scrollLeft=n.left,n.element.scrollTop=n.top}}var I0=C&&"documentMode"in document&&11>=document.documentMode,ru=null,Bp=null,ic=null,Hp=!1;function Vp(n,r,s){var d=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;Hp||ru==null||ru!==yn(d)||(d=ru,"selectionStart"in d&&Af(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),ic&&rc(ic,d)||(ic=d,d=lc(Bp,"onSelect"),0<d.length&&(r=new zt("onSelect","select",null,r,s),n.push({event:r,listeners:d}),r.target=ru)))}function Of(n,r){var s={};return s[n.toLowerCase()]=r.toLowerCase(),s["Webkit"+n]="webkit"+r,s["Moz"+n]="moz"+r,s}var ql={animationend:Of("Animation","AnimationEnd"),animationiteration:Of("Animation","AnimationIteration"),animationstart:Of("Animation","AnimationStart"),transitionend:Of("Transition","TransitionEnd")},Er={},$p={};C&&($p=document.createElement("div").style,"AnimationEvent"in window||(delete ql.animationend.animation,delete ql.animationiteration.animation,delete ql.animationstart.animation),"TransitionEvent"in window||delete ql.transitionend.transition);function Nf(n){if(Er[n])return Er[n];if(!ql[n])return n;var r=ql[n],s;for(s in r)if(r.hasOwnProperty(s)&&s in $p)return Er[n]=r[s];return n}var xm=Nf("animationend"),Cm=Nf("animationiteration"),Em=Nf("animationstart"),Tm=Nf("transitionend"),Gp=new Map,Df="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function qa(n,r){Gp.set(n,r),y(r,[n])}for(var Yp=0;Yp<Df.length;Yp++){var Zl=Df[Yp],U0=Zl.toLowerCase(),z0=Zl[0].toUpperCase()+Zl.slice(1);qa(U0,"on"+z0)}qa(xm,"onAnimationEnd"),qa(Cm,"onAnimationIteration"),qa(Em,"onAnimationStart"),qa("dblclick","onDoubleClick"),qa("focusin","onFocus"),qa("focusout","onBlur"),qa(Tm,"onTransitionEnd"),v("onMouseEnter",["mouseout","mouseover"]),v("onMouseLeave",["mouseout","mouseover"]),v("onPointerEnter",["pointerout","pointerover"]),v("onPointerLeave",["pointerout","pointerover"]),y("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),y("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),y("onBeforeInput",["compositionend","keypress","textInput","paste"]),y("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),y("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),y("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var oc="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Wp=new Set("cancel close invalid load scroll toggle".split(" ").concat(oc));function Lf(n,r,s){var d=n.type||"unknown-event";n.currentTarget=s,$e(d,r,void 0,n),n.currentTarget=null}function Jl(n,r){r=(r&4)!==0;for(var s=0;s<n.length;s++){var d=n[s],m=d.event;d=d.listeners;e:{var S=void 0;if(r)for(var T=d.length-1;0<=T;T--){var D=d[T],U=D.instance,ee=D.currentTarget;if(D=D.listener,U!==S&&m.isPropagationStopped())break e;Lf(m,D,ee),S=U}else for(T=0;T<d.length;T++){if(D=d[T],U=D.instance,ee=D.currentTarget,D=D.listener,U!==S&&m.isPropagationStopped())break e;Lf(m,D,ee),S=U}}}if(Hi)throw n=P,Hi=!1,P=null,n}function on(n,r){var s=r[cc];s===void 0&&(s=r[cc]=new Set);var d=n+"__bubble";s.has(d)||(Rm(r,n,2,!1),s.add(d))}function Pf(n,r,s){var d=0;r&&(d|=4),Rm(s,n,d,r)}var If="_reactListening"+Math.random().toString(36).slice(2);function au(n){if(!n[If]){n[If]=!0,f.forEach(function(s){s!=="selectionchange"&&(Wp.has(s)||Pf(s,!1,n),Pf(s,!0,n))});var r=n.nodeType===9?n:n.ownerDocument;r===null||r[If]||(r[If]=!0,Pf("selectionchange",!1,r))}}function Rm(n,r,s,d){switch(Js(r)){case 1:var m=Qs;break;case 4:m=qs;break;default:m=al}s=m.bind(null,r,s,n),m=void 0,!Gr||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(m=!0),d?m!==void 0?n.addEventListener(r,s,{capture:!0,passive:m}):n.addEventListener(r,s,!0):m!==void 0?n.addEventListener(r,s,{passive:m}):n.addEventListener(r,s,!1)}function Uf(n,r,s,d,m){var S=d;if(!(r&1)&&!(r&2)&&d!==null)e:for(;;){if(d===null)return;var T=d.tag;if(T===3||T===4){var D=d.stateNode.containerInfo;if(D===m||D.nodeType===8&&D.parentNode===m)break;if(T===4)for(T=d.return;T!==null;){var U=T.tag;if((U===3||U===4)&&(U=T.stateNode.containerInfo,U===m||U.nodeType===8&&U.parentNode===m))return;T=T.return}for(;D!==null;){if(T=ts(D),T===null)return;if(U=T.tag,U===5||U===6){d=S=T;continue e}D=D.parentNode}}d=d.return}Hl(function(){var ee=S,ge=sn(s),Se=[];e:{var me=Gp.get(n);if(me!==void 0){var Ue=zt,Ye=n;switch(n){case"keypress":if(re(s)===0)break e;case"keydown":case"keyup":Ue=Pp;break;case"focusin":Ye="focus",Ue=Kl;break;case"focusout":Ye="blur",Ue=Kl;break;case"beforeblur":case"afterblur":Ue=Kl;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Ue=il;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Ue=So;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Ue=lm;break;case xm:case Cm:case Em:Ue=Rf;break;case Tm:Ue=bo;break;case"scroll":Ue=xn;break;case"wheel":Ue=xo;break;case"copy":case"cut":case"paste":Ue=rm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Ue=om}var Ze=(r&4)!==0,Gn=!Ze&&n==="scroll",Y=Ze?me!==null?me+"Capture":null:me;Ze=[];for(var j=ee,K;j!==null;){K=j;var ye=K.stateNode;if(K.tag===5&&ye!==null&&(K=ye,Y!==null&&(ye=$r(j,Y),ye!=null&&Ze.push(iu(j,ye,K)))),Gn)break;j=j.return}0<Ze.length&&(me=new Ue(me,Ye,null,s,ge),Se.push({event:me,listeners:Ze}))}}if(!(r&7)){e:{if(me=n==="mouseover"||n==="pointerover",Ue=n==="mouseout"||n==="pointerout",me&&s!==wn&&(Ye=s.relatedTarget||s.fromElement)&&(ts(Ye)||Ye[Co]))break e;if((Ue||me)&&(me=ge.window===ge?ge:(me=ge.ownerDocument)?me.defaultView||me.parentWindow:window,Ue?(Ye=s.relatedTarget||s.toElement,Ue=ee,Ye=Ye?ts(Ye):null,Ye!==null&&(Gn=Mt(Ye),Ye!==Gn||Ye.tag!==5&&Ye.tag!==6)&&(Ye=null)):(Ue=null,Ye=ee),Ue!==Ye)){if(Ze=il,ye="onMouseLeave",Y="onMouseEnter",j="mouse",(n==="pointerout"||n==="pointerover")&&(Ze=om,ye="onPointerLeave",Y="onPointerEnter",j="pointer"),Gn=Ue==null?me:ki(Ue),K=Ye==null?me:ki(Ye),me=new Ze(ye,j+"leave",Ue,s,ge),me.target=Gn,me.relatedTarget=K,ye=null,ts(ge)===ee&&(Ze=new Ze(Y,j+"enter",Ye,s,ge),Ze.target=K,Ze.relatedTarget=Gn,ye=Ze),Gn=ye,Ue&&Ye)t:{for(Ze=Ue,Y=Ye,j=0,K=Ze;K;K=ll(K))j++;for(K=0,ye=Y;ye;ye=ll(ye))K++;for(;0<j-K;)Ze=ll(Ze),j--;for(;0<K-j;)Y=ll(Y),K--;for(;j--;){if(Ze===Y||Y!==null&&Ze===Y.alternate)break t;Ze=ll(Ze),Y=ll(Y)}Ze=null}else Ze=null;Ue!==null&&Mm(Se,me,Ue,Ze,!1),Ye!==null&&Gn!==null&&Mm(Se,Gn,Ye,Ze,!0)}}e:{if(me=ee?ki(ee):window,Ue=me.nodeName&&me.nodeName.toLowerCase(),Ue==="select"||Ue==="input"&&me.type==="file")var We=N0;else if(pm(me))if(vm)We=wm;else{We=Sm;var ft=D0}else(Ue=me.nodeName)&&Ue.toLowerCase()==="input"&&(me.type==="checkbox"||me.type==="radio")&&(We=L0);if(We&&(We=We(n,ee))){zp(Se,We,s,ge);break e}ft&&ft(n,me,ee),n==="focusout"&&(ft=me._wrapperState)&&ft.controlled&&me.type==="number"&&ka(me,"number",me.value)}switch(ft=ee?ki(ee):window,n){case"focusin":(pm(ft)||ft.contentEditable==="true")&&(ru=ft,Bp=ee,ic=null);break;case"focusout":ic=Bp=ru=null;break;case"mousedown":Hp=!0;break;case"contextmenu":case"mouseup":case"dragend":Hp=!1,Vp(Se,s,ge);break;case"selectionchange":if(I0)break;case"keydown":case"keyup":Vp(Se,s,ge)}var ht;if(eu)e:{switch(n){case"compositionstart":var gt="onCompositionStart";break e;case"compositionend":gt="onCompositionEnd";break e;case"compositionupdate":gt="onCompositionUpdate";break e}gt=void 0}else tu?cm(n,s)&&(gt="onCompositionEnd"):n==="keydown"&&s.keyCode===229&&(gt="onCompositionStart");gt&&(sm&&s.locale!=="ko"&&(tu||gt!=="onCompositionStart"?gt==="onCompositionEnd"&&tu&&(ht=Z()):(Mi=ge,E="value"in Mi?Mi.value:Mi.textContent,tu=!0)),ft=lc(ee,gt),0<ft.length&&(gt=new Np(gt,n,null,s,ge),Se.push({event:gt,listeners:ft}),ht?gt.data=ht:(ht=fm(s),ht!==null&&(gt.data=ht)))),(ht=tc?dm(n,s):A0(n,s))&&(ee=lc(ee,"onBeforeInput"),0<ee.length&&(ge=new Np("onBeforeInput","beforeinput",null,s,ge),Se.push({event:ge,listeners:ee}),ge.data=ht))}Jl(Se,r)})}function iu(n,r,s){return{instance:n,listener:r,currentTarget:s}}function lc(n,r){for(var s=r+"Capture",d=[];n!==null;){var m=n,S=m.stateNode;m.tag===5&&S!==null&&(m=S,S=$r(n,s),S!=null&&d.unshift(iu(n,S,m)),S=$r(n,r),S!=null&&d.push(iu(n,S,m))),n=n.return}return d}function ll(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5);return n||null}function Mm(n,r,s,d,m){for(var S=r._reactName,T=[];s!==null&&s!==d;){var D=s,U=D.alternate,ee=D.stateNode;if(U!==null&&U===d)break;D.tag===5&&ee!==null&&(D=ee,m?(U=$r(s,S),U!=null&&T.unshift(iu(s,U,D))):m||(U=$r(s,S),U!=null&&T.push(iu(s,U,D)))),s=s.return}T.length!==0&&n.push({event:r,listeners:T})}var _m=/\r\n?/g,F0=/\u0000|\uFFFD/g;function km(n){return(typeof n=="string"?n:""+n).replace(_m,`
|
|
97
|
+
`).replace(F0,"")}function zf(n,r,s){if(r=km(r),km(n)!==r&&s)throw Error(l(425))}function sl(){}var sc=null,es=null;function Ff(n,r){return n==="textarea"||n==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var jf=typeof setTimeout=="function"?setTimeout:void 0,Xp=typeof clearTimeout=="function"?clearTimeout:void 0,Am=typeof Promise=="function"?Promise:void 0,ou=typeof queueMicrotask=="function"?queueMicrotask:typeof Am<"u"?function(n){return Am.resolve(null).then(n).catch(Bf)}:jf;function Bf(n){setTimeout(function(){throw n})}function lu(n,r){var s=r,d=0;do{var m=s.nextSibling;if(n.removeChild(s),m&&m.nodeType===8)if(s=m.data,s==="/$"){if(d===0){n.removeChild(m),Ri(r);return}d--}else s!=="$"&&s!=="$?"&&s!=="$!"||d++;s=m}while(s);Ri(r)}function Xi(n){for(;n!=null;n=n.nextSibling){var r=n.nodeType;if(r===1||r===3)break;if(r===8){if(r=n.data,r==="$"||r==="$!"||r==="$?")break;if(r==="/$")return null}}return n}function Om(n){n=n.previousSibling;for(var r=0;n;){if(n.nodeType===8){var s=n.data;if(s==="$"||s==="$!"||s==="$?"){if(r===0)return n;r--}else s==="/$"&&r++}n=n.previousSibling}return null}var ul=Math.random().toString(36).slice(2),Ki="__reactFiber$"+ul,uc="__reactProps$"+ul,Co="__reactContainer$"+ul,cc="__reactEvents$"+ul,su="__reactListeners$"+ul,j0="__reactHandles$"+ul;function ts(n){var r=n[Ki];if(r)return r;for(var s=n.parentNode;s;){if(r=s[Co]||s[Ki]){if(s=r.alternate,r.child!==null||s!==null&&s.child!==null)for(n=Om(n);n!==null;){if(s=n[Ki])return s;n=Om(n)}return r}n=s,s=n.parentNode}return null}function at(n){return n=n[Ki]||n[Co],!n||n.tag!==5&&n.tag!==6&&n.tag!==13&&n.tag!==3?null:n}function ki(n){if(n.tag===5||n.tag===6)return n.stateNode;throw Error(l(33))}function Dn(n){return n[uc]||null}var Gt=[],Za=-1;function Ja(n){return{current:n}}function Cn(n){0>Za||(n.current=Gt[Za],Gt[Za]=null,Za--)}function nt(n,r){Za++,Gt[Za]=n.current,n.current=r}var jr={},zn=Ja(jr),sr=Ja(!1),ha=jr;function va(n,r){var s=n.type.contextTypes;if(!s)return jr;var d=n.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===r)return d.__reactInternalMemoizedMaskedChildContext;var m={},S;for(S in s)m[S]=r[S];return d&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=r,n.__reactInternalMemoizedMaskedChildContext=m),m}function Kn(n){return n=n.childContextTypes,n!=null}function uu(){Cn(sr),Cn(zn)}function Nm(n,r,s){if(zn.current!==jr)throw Error(l(168));nt(zn,r),nt(sr,s)}function fc(n,r,s){var d=n.stateNode;if(r=r.childContextTypes,typeof d.getChildContext!="function")return s;d=d.getChildContext();for(var m in d)if(!(m in r))throw Error(l(108,Ve(n)||"Unknown",m));return Ce({},s,d)}function hr(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||jr,ha=zn.current,nt(zn,n),nt(sr,sr.current),!0}function Hf(n,r,s){var d=n.stateNode;if(!d)throw Error(l(169));s?(n=fc(n,r,ha),d.__reactInternalMemoizedMergedChildContext=n,Cn(sr),Cn(zn),nt(zn,n)):Cn(sr),nt(sr,s)}var Qi=null,cu=!1,Eo=!1;function Vf(n){Qi===null?Qi=[n]:Qi.push(n)}function cl(n){cu=!0,Vf(n)}function qi(){if(!Eo&&Qi!==null){Eo=!0;var n=0,r=Zt;try{var s=Qi;for(Zt=1;n<s.length;n++){var d=s[n];do d=d(!0);while(d!==null)}Qi=null,cu=!1}catch(m){throw Qi!==null&&(Qi=Qi.slice(n+1)),Tn(Ci,qi),m}finally{Zt=r,Eo=!1}}return null}var fl=[],dl=0,pl=null,To=0,Qn=[],ei=0,Da=null,Zi=1,Ji="";function ns(n,r){fl[dl++]=To,fl[dl++]=pl,pl=n,To=r}function Dm(n,r,s){Qn[ei++]=Zi,Qn[ei++]=Ji,Qn[ei++]=Da,Da=n;var d=Zi;n=Ji;var m=32-Yr(d)-1;d&=~(1<<m),s+=1;var S=32-Yr(r)+m;if(30<S){var T=m-m%5;S=(d&(1<<T)-1).toString(32),d>>=T,m-=T,Zi=1<<32-Yr(r)+m|s<<m|d,Ji=S+n}else Zi=1<<S|s<<m|d,Ji=n}function $f(n){n.return!==null&&(ns(n,1),Dm(n,1,0))}function Gf(n){for(;n===pl;)pl=fl[--dl],fl[dl]=null,To=fl[--dl],fl[dl]=null;for(;n===Da;)Da=Qn[--ei],Qn[ei]=null,Ji=Qn[--ei],Qn[ei]=null,Zi=Qn[--ei],Qn[ei]=null}var ma=null,ga=null,kn=!1,ti=null;function Kp(n,r){var s=oi(5,null,null,0);s.elementType="DELETED",s.stateNode=r,s.return=n,r=n.deletions,r===null?(n.deletions=[s],n.flags|=16):r.push(s)}function Lm(n,r){switch(n.tag){case 5:var s=n.type;return r=r.nodeType!==1||s.toLowerCase()!==r.nodeName.toLowerCase()?null:r,r!==null?(n.stateNode=r,ma=n,ga=Xi(r.firstChild),!0):!1;case 6:return r=n.pendingProps===""||r.nodeType!==3?null:r,r!==null?(n.stateNode=r,ma=n,ga=null,!0):!1;case 13:return r=r.nodeType!==8?null:r,r!==null?(s=Da!==null?{id:Zi,overflow:Ji}:null,n.memoizedState={dehydrated:r,treeContext:s,retryLane:1073741824},s=oi(18,null,null,0),s.stateNode=r,s.return=n,n.child=s,ma=n,ga=null,!0):!1;default:return!1}}function Qp(n){return(n.mode&1)!==0&&(n.flags&128)===0}function qp(n){if(kn){var r=ga;if(r){var s=r;if(!Lm(n,r)){if(Qp(n))throw Error(l(418));r=Xi(s.nextSibling);var d=ma;r&&Lm(n,r)?Kp(d,s):(n.flags=n.flags&-4097|2,kn=!1,ma=n)}}else{if(Qp(n))throw Error(l(418));n.flags=n.flags&-4097|2,kn=!1,ma=n}}}function ur(n){for(n=n.return;n!==null&&n.tag!==5&&n.tag!==3&&n.tag!==13;)n=n.return;ma=n}function Yf(n){if(n!==ma)return!1;if(!kn)return ur(n),kn=!0,!1;var r;if((r=n.tag!==3)&&!(r=n.tag!==5)&&(r=n.type,r=r!=="head"&&r!=="body"&&!Ff(n.type,n.memoizedProps)),r&&(r=ga)){if(Qp(n))throw dc(),Error(l(418));for(;r;)Kp(n,r),r=Xi(r.nextSibling)}if(ur(n),n.tag===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(l(317));e:{for(n=n.nextSibling,r=0;n;){if(n.nodeType===8){var s=n.data;if(s==="/$"){if(r===0){ga=Xi(n.nextSibling);break e}r--}else s!=="$"&&s!=="$!"&&s!=="$?"||r++}n=n.nextSibling}ga=null}}else ga=ma?Xi(n.stateNode.nextSibling):null;return!0}function dc(){for(var n=ga;n;)n=Xi(n.nextSibling)}function hl(){ga=ma=null,kn=!1}function Ro(n){ti===null?ti=[n]:ti.push(n)}var B0=fe.ReactCurrentBatchConfig;function rs(n,r,s){if(n=s.ref,n!==null&&typeof n!="function"&&typeof n!="object"){if(s._owner){if(s=s._owner,s){if(s.tag!==1)throw Error(l(309));var d=s.stateNode}if(!d)throw Error(l(147,n));var m=d,S=""+n;return r!==null&&r.ref!==null&&typeof r.ref=="function"&&r.ref._stringRef===S?r.ref:(r=function(T){var D=m.refs;T===null?delete D[S]:D[S]=T},r._stringRef=S,r)}if(typeof n!="string")throw Error(l(284));if(!s._owner)throw Error(l(290,n))}return n}function Wf(n,r){throw n=Object.prototype.toString.call(r),Error(l(31,n==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":n))}function Pm(n){var r=n._init;return r(n._payload)}function as(n){function r(Y,j){if(n){var K=Y.deletions;K===null?(Y.deletions=[j],Y.flags|=16):K.push(j)}}function s(Y,j){if(!n)return null;for(;j!==null;)r(Y,j),j=j.sibling;return null}function d(Y,j){for(Y=new Map;j!==null;)j.key!==null?Y.set(j.key,j):Y.set(j.index,j),j=j.sibling;return Y}function m(Y,j){return Y=xl(Y,j),Y.index=0,Y.sibling=null,Y}function S(Y,j,K){return Y.index=K,n?(K=Y.alternate,K!==null?(K=K.index,K<j?(Y.flags|=2,j):K):(Y.flags|=2,j)):(Y.flags|=1048576,j)}function T(Y){return n&&Y.alternate===null&&(Y.flags|=2),Y}function D(Y,j,K,ye){return j===null||j.tag!==6?(j=_h(K,Y.mode,ye),j.return=Y,j):(j=m(j,K),j.return=Y,j)}function U(Y,j,K,ye){var We=K.type;return We===ve?ge(Y,j,K.props.children,ye,K.key):j!==null&&(j.elementType===We||typeof We=="object"&&We!==null&&We.$$typeof===qe&&Pm(We)===j.type)?(ye=m(j,K.props),ye.ref=rs(Y,j,K),ye.return=Y,ye):(ye=Hc(K.type,K.key,K.props,null,Y.mode,ye),ye.ref=rs(Y,j,K),ye.return=Y,ye)}function ee(Y,j,K,ye){return j===null||j.tag!==4||j.stateNode.containerInfo!==K.containerInfo||j.stateNode.implementation!==K.implementation?(j=Rd(K,Y.mode,ye),j.return=Y,j):(j=m(j,K.children||[]),j.return=Y,j)}function ge(Y,j,K,ye,We){return j===null||j.tag!==7?(j=No(K,Y.mode,ye,We),j.return=Y,j):(j=m(j,K),j.return=Y,j)}function Se(Y,j,K){if(typeof j=="string"&&j!==""||typeof j=="number")return j=_h(""+j,Y.mode,K),j.return=Y,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case le:return K=Hc(j.type,j.key,j.props,null,Y.mode,K),K.ref=rs(Y,null,j),K.return=Y,K;case Re:return j=Rd(j,Y.mode,K),j.return=Y,j;case qe:var ye=j._init;return Se(Y,ye(j._payload),K)}if(dr(j)||_e(j))return j=No(j,Y.mode,K,null),j.return=Y,j;Wf(Y,j)}return null}function me(Y,j,K,ye){var We=j!==null?j.key:null;if(typeof K=="string"&&K!==""||typeof K=="number")return We!==null?null:D(Y,j,""+K,ye);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case le:return K.key===We?U(Y,j,K,ye):null;case Re:return K.key===We?ee(Y,j,K,ye):null;case qe:return We=K._init,me(Y,j,We(K._payload),ye)}if(dr(K)||_e(K))return We!==null?null:ge(Y,j,K,ye,null);Wf(Y,K)}return null}function Ue(Y,j,K,ye,We){if(typeof ye=="string"&&ye!==""||typeof ye=="number")return Y=Y.get(K)||null,D(j,Y,""+ye,We);if(typeof ye=="object"&&ye!==null){switch(ye.$$typeof){case le:return Y=Y.get(ye.key===null?K:ye.key)||null,U(j,Y,ye,We);case Re:return Y=Y.get(ye.key===null?K:ye.key)||null,ee(j,Y,ye,We);case qe:var ft=ye._init;return Ue(Y,j,K,ft(ye._payload),We)}if(dr(ye)||_e(ye))return Y=Y.get(K)||null,ge(j,Y,ye,We,null);Wf(j,ye)}return null}function Ye(Y,j,K,ye){for(var We=null,ft=null,ht=j,gt=j=0,gr=null;ht!==null&><K.length;gt++){ht.index>gt?(gr=ht,ht=null):gr=ht.sibling;var tn=me(Y,ht,K[gt],ye);if(tn===null){ht===null&&(ht=gr);break}n&&ht&&tn.alternate===null&&r(Y,ht),j=S(tn,j,gt),ft===null?We=tn:ft.sibling=tn,ft=tn,ht=gr}if(gt===K.length)return s(Y,ht),kn&&ns(Y,gt),We;if(ht===null){for(;gt<K.length;gt++)ht=Se(Y,K[gt],ye),ht!==null&&(j=S(ht,j,gt),ft===null?We=ht:ft.sibling=ht,ft=ht);return kn&&ns(Y,gt),We}for(ht=d(Y,ht);gt<K.length;gt++)gr=Ue(ht,Y,gt,K[gt],ye),gr!==null&&(n&&gr.alternate!==null&&ht.delete(gr.key===null?gt:gr.key),j=S(gr,j,gt),ft===null?We=gr:ft.sibling=gr,ft=gr);return n&&ht.forEach(function(Tl){return r(Y,Tl)}),kn&&ns(Y,gt),We}function Ze(Y,j,K,ye){var We=_e(K);if(typeof We!="function")throw Error(l(150));if(K=We.call(K),K==null)throw Error(l(151));for(var ft=We=null,ht=j,gt=j=0,gr=null,tn=K.next();ht!==null&&!tn.done;gt++,tn=K.next()){ht.index>gt?(gr=ht,ht=null):gr=ht.sibling;var Tl=me(Y,ht,tn.value,ye);if(Tl===null){ht===null&&(ht=gr);break}n&&ht&&Tl.alternate===null&&r(Y,ht),j=S(Tl,j,gt),ft===null?We=Tl:ft.sibling=Tl,ft=Tl,ht=gr}if(tn.done)return s(Y,ht),kn&&ns(Y,gt),We;if(ht===null){for(;!tn.done;gt++,tn=K.next())tn=Se(Y,tn.value,ye),tn!==null&&(j=S(tn,j,gt),ft===null?We=tn:ft.sibling=tn,ft=tn);return kn&&ns(Y,gt),We}for(ht=d(Y,ht);!tn.done;gt++,tn=K.next())tn=Ue(ht,Y,gt,tn.value,ye),tn!==null&&(n&&tn.alternate!==null&&ht.delete(tn.key===null?gt:tn.key),j=S(tn,j,gt),ft===null?We=tn:ft.sibling=tn,ft=tn);return n&&ht.forEach(function(gg){return r(Y,gg)}),kn&&ns(Y,gt),We}function Gn(Y,j,K,ye){if(typeof K=="object"&&K!==null&&K.type===ve&&K.key===null&&(K=K.props.children),typeof K=="object"&&K!==null){switch(K.$$typeof){case le:e:{for(var We=K.key,ft=j;ft!==null;){if(ft.key===We){if(We=K.type,We===ve){if(ft.tag===7){s(Y,ft.sibling),j=m(ft,K.props.children),j.return=Y,Y=j;break e}}else if(ft.elementType===We||typeof We=="object"&&We!==null&&We.$$typeof===qe&&Pm(We)===ft.type){s(Y,ft.sibling),j=m(ft,K.props),j.ref=rs(Y,ft,K),j.return=Y,Y=j;break e}s(Y,ft);break}else r(Y,ft);ft=ft.sibling}K.type===ve?(j=No(K.props.children,Y.mode,ye,K.key),j.return=Y,Y=j):(ye=Hc(K.type,K.key,K.props,null,Y.mode,ye),ye.ref=rs(Y,j,K),ye.return=Y,Y=ye)}return T(Y);case Re:e:{for(ft=K.key;j!==null;){if(j.key===ft)if(j.tag===4&&j.stateNode.containerInfo===K.containerInfo&&j.stateNode.implementation===K.implementation){s(Y,j.sibling),j=m(j,K.children||[]),j.return=Y,Y=j;break e}else{s(Y,j);break}else r(Y,j);j=j.sibling}j=Rd(K,Y.mode,ye),j.return=Y,Y=j}return T(Y);case qe:return ft=K._init,Gn(Y,j,ft(K._payload),ye)}if(dr(K))return Ye(Y,j,K,ye);if(_e(K))return Ze(Y,j,K,ye);Wf(Y,K)}return typeof K=="string"&&K!==""||typeof K=="number"?(K=""+K,j!==null&&j.tag===6?(s(Y,j.sibling),j=m(j,K),j.return=Y,Y=j):(s(Y,j),j=_h(K,Y.mode,ye),j.return=Y,Y=j),T(Y)):s(Y,j)}return Gn}var Bn=as(!0),De=as(!1),La=Ja(null),ya=null,fu=null,Zp=null;function Jp(){Zp=fu=ya=null}function eh(n){var r=La.current;Cn(La),n._currentValue=r}function th(n,r,s){for(;n!==null;){var d=n.alternate;if((n.childLanes&r)!==r?(n.childLanes|=r,d!==null&&(d.childLanes|=r)):d!==null&&(d.childLanes&r)!==r&&(d.childLanes|=r),n===s)break;n=n.return}}function Ln(n,r){ya=n,Zp=fu=null,n=n.dependencies,n!==null&&n.firstContext!==null&&(n.lanes&r&&(Zn=!0),n.firstContext=null)}function ni(n){var r=n._currentValue;if(Zp!==n)if(n={context:n,memoizedValue:r,next:null},fu===null){if(ya===null)throw Error(l(308));fu=n,ya.dependencies={lanes:0,firstContext:n}}else fu=fu.next=n;return r}var is=null;function nh(n){is===null?is=[n]:is.push(n)}function rh(n,r,s,d){var m=r.interleaved;return m===null?(s.next=s,nh(r)):(s.next=m.next,m.next=s),r.interleaved=s,Pa(n,d)}function Pa(n,r){n.lanes|=r;var s=n.alternate;for(s!==null&&(s.lanes|=r),s=n,n=n.return;n!==null;)n.childLanes|=r,s=n.alternate,s!==null&&(s.childLanes|=r),s=n,n=n.return;return s.tag===3?s.stateNode:null}var Ia=!1;function ah(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Im(n,r){n=n.updateQueue,r.updateQueue===n&&(r.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,effects:n.effects})}function Mo(n,r){return{eventTime:n,lane:r,tag:0,payload:null,callback:null,next:null}}function vl(n,r,s){var d=n.updateQueue;if(d===null)return null;if(d=d.shared,Yt&2){var m=d.pending;return m===null?r.next=r:(r.next=m.next,m.next=r),d.pending=r,Pa(n,s)}return m=d.interleaved,m===null?(r.next=r,nh(d)):(r.next=m.next,m.next=r),d.interleaved=r,Pa(n,s)}function Xf(n,r,s){if(r=r.updateQueue,r!==null&&(r=r.shared,(s&4194240)!==0)){var d=r.lanes;d&=n.pendingLanes,s|=d,r.lanes=s,yo(n,s)}}function Um(n,r){var s=n.updateQueue,d=n.alternate;if(d!==null&&(d=d.updateQueue,s===d)){var m=null,S=null;if(s=s.firstBaseUpdate,s!==null){do{var T={eventTime:s.eventTime,lane:s.lane,tag:s.tag,payload:s.payload,callback:s.callback,next:null};S===null?m=S=T:S=S.next=T,s=s.next}while(s!==null);S===null?m=S=r:S=S.next=r}else m=S=r;s={baseState:d.baseState,firstBaseUpdate:m,lastBaseUpdate:S,shared:d.shared,effects:d.effects},n.updateQueue=s;return}n=s.lastBaseUpdate,n===null?s.firstBaseUpdate=r:n.next=r,s.lastBaseUpdate=r}function pc(n,r,s,d){var m=n.updateQueue;Ia=!1;var S=m.firstBaseUpdate,T=m.lastBaseUpdate,D=m.shared.pending;if(D!==null){m.shared.pending=null;var U=D,ee=U.next;U.next=null,T===null?S=ee:T.next=ee,T=U;var ge=n.alternate;ge!==null&&(ge=ge.updateQueue,D=ge.lastBaseUpdate,D!==T&&(D===null?ge.firstBaseUpdate=ee:D.next=ee,ge.lastBaseUpdate=U))}if(S!==null){var Se=m.baseState;T=0,ge=ee=U=null,D=S;do{var me=D.lane,Ue=D.eventTime;if((d&me)===me){ge!==null&&(ge=ge.next={eventTime:Ue,lane:0,tag:D.tag,payload:D.payload,callback:D.callback,next:null});e:{var Ye=n,Ze=D;switch(me=r,Ue=s,Ze.tag){case 1:if(Ye=Ze.payload,typeof Ye=="function"){Se=Ye.call(Ue,Se,me);break e}Se=Ye;break e;case 3:Ye.flags=Ye.flags&-65537|128;case 0:if(Ye=Ze.payload,me=typeof Ye=="function"?Ye.call(Ue,Se,me):Ye,me==null)break e;Se=Ce({},Se,me);break e;case 2:Ia=!0}}D.callback!==null&&D.lane!==0&&(n.flags|=64,me=m.effects,me===null?m.effects=[D]:me.push(D))}else Ue={eventTime:Ue,lane:me,tag:D.tag,payload:D.payload,callback:D.callback,next:null},ge===null?(ee=ge=Ue,U=Se):ge=ge.next=Ue,T|=me;if(D=D.next,D===null){if(D=m.shared.pending,D===null)break;me=D,D=me.next,me.next=null,m.lastBaseUpdate=me,m.shared.pending=null}}while(!0);if(ge===null&&(U=Se),m.baseState=U,m.firstBaseUpdate=ee,m.lastBaseUpdate=ge,r=m.shared.interleaved,r!==null){m=r;do T|=m.lane,m=m.next;while(m!==r)}else S===null&&(m.shared.lanes=0);ao|=T,n.lanes=T,n.memoizedState=Se}}function ih(n,r,s){if(n=r.effects,r.effects=null,n!==null)for(r=0;r<n.length;r++){var d=n[r],m=d.callback;if(m!==null){if(d.callback=null,d=s,typeof m!="function")throw Error(l(191,m));m.call(d)}}}var hc={},eo=Ja(hc),vc=Ja(hc),mc=Ja(hc);function os(n){if(n===hc)throw Error(l(174));return n}function oh(n,r){switch(nt(mc,r),nt(vc,n),nt(eo,hc),n=r.nodeType,n){case 9:case 11:r=(r=r.documentElement)?r.namespaceURI:Aa(null,"");break;default:n=n===8?r.parentNode:r,r=n.namespaceURI||null,n=n.tagName,r=Aa(r,n)}Cn(eo),nt(eo,r)}function ls(){Cn(eo),Cn(vc),Cn(mc)}function zm(n){os(mc.current);var r=os(eo.current),s=Aa(r,n.type);r!==s&&(nt(vc,n),nt(eo,s))}function Kf(n){vc.current===n&&(Cn(eo),Cn(vc))}var Pn=Ja(0);function Qf(n){for(var r=n;r!==null;){if(r.tag===13){var s=r.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||s.data==="$?"||s.data==="$!"))return r}else if(r.tag===19&&r.memoizedProps.revealOrder!==void 0){if(r.flags&128)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===n)break;for(;r.sibling===null;){if(r.return===null||r.return===n)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var gc=[];function it(){for(var n=0;n<gc.length;n++)gc[n]._workInProgressVersionPrimary=null;gc.length=0}var Lt=fe.ReactCurrentDispatcher,Jt=fe.ReactCurrentBatchConfig,pn=0,en=null,qn=null,vr=null,qf=!1,yc=!1,ss=0,he=0;function qt(){throw Error(l(321))}function vt(n,r){if(r===null)return!1;for(var s=0;s<r.length&&s<n.length;s++)if(!_i(n[s],r[s]))return!1;return!0}function ml(n,r,s,d,m,S){if(pn=S,en=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,Lt.current=n===null||n.memoizedState===null?dd:Ec,n=s(d,m),yc){S=0;do{if(yc=!1,ss=0,25<=S)throw Error(l(301));S+=1,vr=qn=null,r.updateQueue=null,Lt.current=pd,n=s(d,m)}while(yc)}if(Lt.current=ps,r=qn!==null&&qn.next!==null,pn=0,vr=qn=en=null,qf=!1,r)throw Error(l(300));return n}function Ai(){var n=ss!==0;return ss=0,n}function Br(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return vr===null?en.memoizedState=vr=n:vr=vr.next=n,vr}function Hn(){if(qn===null){var n=en.alternate;n=n!==null?n.memoizedState:null}else n=qn.next;var r=vr===null?en.memoizedState:vr.next;if(r!==null)vr=r,qn=n;else{if(n===null)throw Error(l(310));qn=n,n={memoizedState:qn.memoizedState,baseState:qn.baseState,baseQueue:qn.baseQueue,queue:qn.queue,next:null},vr===null?en.memoizedState=vr=n:vr=vr.next=n}return vr}function _o(n,r){return typeof r=="function"?r(n):r}function gl(n){var r=Hn(),s=r.queue;if(s===null)throw Error(l(311));s.lastRenderedReducer=n;var d=qn,m=d.baseQueue,S=s.pending;if(S!==null){if(m!==null){var T=m.next;m.next=S.next,S.next=T}d.baseQueue=m=S,s.pending=null}if(m!==null){S=m.next,d=d.baseState;var D=T=null,U=null,ee=S;do{var ge=ee.lane;if((pn&ge)===ge)U!==null&&(U=U.next={lane:0,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null}),d=ee.hasEagerState?ee.eagerState:n(d,ee.action);else{var Se={lane:ge,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null};U===null?(D=U=Se,T=d):U=U.next=Se,en.lanes|=ge,ao|=ge}ee=ee.next}while(ee!==null&&ee!==S);U===null?T=d:U.next=D,_i(d,r.memoizedState)||(Zn=!0),r.memoizedState=d,r.baseState=T,r.baseQueue=U,s.lastRenderedState=d}if(n=s.interleaved,n!==null){m=n;do S=m.lane,en.lanes|=S,ao|=S,m=m.next;while(m!==n)}else m===null&&(s.lanes=0);return[r.memoizedState,s.dispatch]}function us(n){var r=Hn(),s=r.queue;if(s===null)throw Error(l(311));s.lastRenderedReducer=n;var d=s.dispatch,m=s.pending,S=r.memoizedState;if(m!==null){s.pending=null;var T=m=m.next;do S=n(S,T.action),T=T.next;while(T!==m);_i(S,r.memoizedState)||(Zn=!0),r.memoizedState=S,r.baseQueue===null&&(r.baseState=S),s.lastRenderedState=S}return[S,d]}function Zf(){}function Jf(n,r){var s=en,d=Hn(),m=r(),S=!_i(d.memoizedState,m);if(S&&(d.memoizedState=m,Zn=!0),d=d.queue,Sc(nd.bind(null,s,d,n),[n]),d.getSnapshot!==r||S||vr!==null&&vr.memoizedState.tag&1){if(s.flags|=2048,cs(9,td.bind(null,s,d,m,r),void 0,null),cr===null)throw Error(l(349));pn&30||ed(s,r,m)}return m}function ed(n,r,s){n.flags|=16384,n={getSnapshot:r,value:s},r=en.updateQueue,r===null?(r={lastEffect:null,stores:null},en.updateQueue=r,r.stores=[n]):(s=r.stores,s===null?r.stores=[n]:s.push(n))}function td(n,r,s,d){r.value=s,r.getSnapshot=d,rd(r)&&ad(n)}function nd(n,r,s){return s(function(){rd(r)&&ad(n)})}function rd(n){var r=n.getSnapshot;n=n.value;try{var s=r();return!_i(n,s)}catch{return!0}}function ad(n){var r=Pa(n,1);r!==null&&Zr(r,n,1,-1)}function id(n){var r=Br();return typeof n=="function"&&(n=n()),r.memoizedState=r.baseState=n,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:_o,lastRenderedState:n},r.queue=n,n=n.dispatch=ds.bind(null,en,n),[r.memoizedState,n]}function cs(n,r,s,d){return n={tag:n,create:r,destroy:s,deps:d,next:null},r=en.updateQueue,r===null?(r={lastEffect:null,stores:null},en.updateQueue=r,r.lastEffect=n.next=n):(s=r.lastEffect,s===null?r.lastEffect=n.next=n:(d=s.next,s.next=n,n.next=d,r.lastEffect=n)),n}function od(){return Hn().memoizedState}function du(n,r,s,d){var m=Br();en.flags|=n,m.memoizedState=cs(1|r,s,void 0,d===void 0?null:d)}function pu(n,r,s,d){var m=Hn();d=d===void 0?null:d;var S=void 0;if(qn!==null){var T=qn.memoizedState;if(S=T.destroy,d!==null&&vt(d,T.deps)){m.memoizedState=cs(r,s,S,d);return}}en.flags|=n,m.memoizedState=cs(1|r,s,S,d)}function ld(n,r){return du(8390656,8,n,r)}function Sc(n,r){return pu(2048,8,n,r)}function sd(n,r){return pu(4,2,n,r)}function wc(n,r){return pu(4,4,n,r)}function fs(n,r){if(typeof r=="function")return n=n(),r(n),function(){r(null)};if(r!=null)return n=n(),r.current=n,function(){r.current=null}}function ud(n,r,s){return s=s!=null?s.concat([n]):null,pu(4,4,fs.bind(null,r,n),s)}function bc(){}function cd(n,r){var s=Hn();r=r===void 0?null:r;var d=s.memoizedState;return d!==null&&r!==null&&vt(r,d[1])?d[0]:(s.memoizedState=[n,r],n)}function fd(n,r){var s=Hn();r=r===void 0?null:r;var d=s.memoizedState;return d!==null&&r!==null&&vt(r,d[1])?d[0]:(n=n(),s.memoizedState=[n,r],n)}function lh(n,r,s){return pn&21?(_i(s,r)||(s=Ys(),en.lanes|=s,ao|=s,n.baseState=!0),r):(n.baseState&&(n.baseState=!1,Zn=!0),n.memoizedState=s)}function xc(n,r){var s=Zt;Zt=s!==0&&4>s?s:4,n(!0);var d=Jt.transition;Jt.transition={};try{n(!1),r()}finally{Zt=s,Jt.transition=d}}function sh(){return Hn().memoizedState}function Cc(n,r,s){var d=io(n);if(s={lane:d,action:s,hasEagerState:!1,eagerState:null,next:null},Sa(n))Fm(r,s);else if(s=rh(n,r,s,d),s!==null){var m=tr();Zr(s,n,d,m),mn(s,r,d)}}function ds(n,r,s){var d=io(n),m={lane:d,action:s,hasEagerState:!1,eagerState:null,next:null};if(Sa(n))Fm(r,m);else{var S=n.alternate;if(n.lanes===0&&(S===null||S.lanes===0)&&(S=r.lastRenderedReducer,S!==null))try{var T=r.lastRenderedState,D=S(T,s);if(m.hasEagerState=!0,m.eagerState=D,_i(D,T)){var U=r.interleaved;U===null?(m.next=m,nh(r)):(m.next=U.next,U.next=m),r.interleaved=m;return}}catch{}finally{}s=rh(n,r,m,d),s!==null&&(m=tr(),Zr(s,n,d,m),mn(s,r,d))}}function Sa(n){var r=n.alternate;return n===en||r!==null&&r===en}function Fm(n,r){yc=qf=!0;var s=n.pending;s===null?r.next=r:(r.next=s.next,s.next=r),n.pending=r}function mn(n,r,s){if(s&4194240){var d=r.lanes;d&=n.pendingLanes,s|=d,r.lanes=s,yo(n,s)}}var ps={readContext:ni,useCallback:qt,useContext:qt,useEffect:qt,useImperativeHandle:qt,useInsertionEffect:qt,useLayoutEffect:qt,useMemo:qt,useReducer:qt,useRef:qt,useState:qt,useDebugValue:qt,useDeferredValue:qt,useTransition:qt,useMutableSource:qt,useSyncExternalStore:qt,useId:qt,unstable_isNewReconciler:!1},dd={readContext:ni,useCallback:function(n,r){return Br().memoizedState=[n,r===void 0?null:r],n},useContext:ni,useEffect:ld,useImperativeHandle:function(n,r,s){return s=s!=null?s.concat([n]):null,du(4194308,4,fs.bind(null,r,n),s)},useLayoutEffect:function(n,r){return du(4194308,4,n,r)},useInsertionEffect:function(n,r){return du(4,2,n,r)},useMemo:function(n,r){var s=Br();return r=r===void 0?null:r,n=n(),s.memoizedState=[n,r],n},useReducer:function(n,r,s){var d=Br();return r=s!==void 0?s(r):r,d.memoizedState=d.baseState=r,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:r},d.queue=n,n=n.dispatch=Cc.bind(null,en,n),[d.memoizedState,n]},useRef:function(n){var r=Br();return n={current:n},r.memoizedState=n},useState:id,useDebugValue:bc,useDeferredValue:function(n){return Br().memoizedState=n},useTransition:function(){var n=id(!1),r=n[0];return n=xc.bind(null,n[1]),Br().memoizedState=n,[r,n]},useMutableSource:function(){},useSyncExternalStore:function(n,r,s){var d=en,m=Br();if(kn){if(s===void 0)throw Error(l(407));s=s()}else{if(s=r(),cr===null)throw Error(l(349));pn&30||ed(d,r,s)}m.memoizedState=s;var S={value:s,getSnapshot:r};return m.queue=S,ld(nd.bind(null,d,S,n),[n]),d.flags|=2048,cs(9,td.bind(null,d,S,s,r),void 0,null),s},useId:function(){var n=Br(),r=cr.identifierPrefix;if(kn){var s=Ji,d=Zi;s=(d&~(1<<32-Yr(d)-1)).toString(32)+s,r=":"+r+"R"+s,s=ss++,0<s&&(r+="H"+s.toString(32)),r+=":"}else s=he++,r=":"+r+"r"+s.toString(32)+":";return n.memoizedState=r},unstable_isNewReconciler:!1},Ec={readContext:ni,useCallback:cd,useContext:ni,useEffect:Sc,useImperativeHandle:ud,useInsertionEffect:sd,useLayoutEffect:wc,useMemo:fd,useReducer:gl,useRef:od,useState:function(){return gl(_o)},useDebugValue:bc,useDeferredValue:function(n){var r=Hn();return lh(r,qn.memoizedState,n)},useTransition:function(){var n=gl(_o)[0],r=Hn().memoizedState;return[n,r]},useMutableSource:Zf,useSyncExternalStore:Jf,useId:sh,unstable_isNewReconciler:!1},pd={readContext:ni,useCallback:cd,useContext:ni,useEffect:Sc,useImperativeHandle:ud,useInsertionEffect:sd,useLayoutEffect:wc,useMemo:fd,useReducer:us,useRef:od,useState:function(){return us(_o)},useDebugValue:bc,useDeferredValue:function(n){var r=Hn();return qn===null?r.memoizedState=n:lh(r,qn.memoizedState,n)},useTransition:function(){var n=us(_o)[0],r=Hn().memoizedState;return[n,r]},useMutableSource:Zf,useSyncExternalStore:Jf,useId:sh,unstable_isNewReconciler:!1};function Oi(n,r){if(n&&n.defaultProps){r=Ce({},r),n=n.defaultProps;for(var s in n)r[s]===void 0&&(r[s]=n[s]);return r}return r}function uh(n,r,s,d){r=n.memoizedState,s=s(d,r),s=s==null?r:Ce({},r,s),n.memoizedState=s,n.lanes===0&&(n.updateQueue.baseState=s)}var hd={isMounted:function(n){return(n=n._reactInternals)?Mt(n)===n:!1},enqueueSetState:function(n,r,s){n=n._reactInternals;var d=tr(),m=io(n),S=Mo(d,m);S.payload=r,s!=null&&(S.callback=s),r=vl(n,S,m),r!==null&&(Zr(r,n,m,d),Xf(r,n,m))},enqueueReplaceState:function(n,r,s){n=n._reactInternals;var d=tr(),m=io(n),S=Mo(d,m);S.tag=1,S.payload=r,s!=null&&(S.callback=s),r=vl(n,S,m),r!==null&&(Zr(r,n,m,d),Xf(r,n,m))},enqueueForceUpdate:function(n,r){n=n._reactInternals;var s=tr(),d=io(n),m=Mo(s,d);m.tag=2,r!=null&&(m.callback=r),r=vl(n,m,d),r!==null&&(Zr(r,n,d,s),Xf(r,n,d))}};function jm(n,r,s,d,m,S,T){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(d,S,T):r.prototype&&r.prototype.isPureReactComponent?!rc(s,d)||!rc(m,S):!0}function vd(n,r,s){var d=!1,m=jr,S=r.contextType;return typeof S=="object"&&S!==null?S=ni(S):(m=Kn(r)?ha:zn.current,d=r.contextTypes,S=(d=d!=null)?va(n,m):jr),r=new r(s,S),n.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=hd,n.stateNode=r,r._reactInternals=n,d&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=m,n.__reactInternalMemoizedMaskedChildContext=S),r}function Bm(n,r,s,d){n=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(s,d),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(s,d),r.state!==n&&hd.enqueueReplaceState(r,r.state,null)}function Tc(n,r,s,d){var m=n.stateNode;m.props=s,m.state=n.memoizedState,m.refs={},ah(n);var S=r.contextType;typeof S=="object"&&S!==null?m.context=ni(S):(S=Kn(r)?ha:zn.current,m.context=va(n,S)),m.state=n.memoizedState,S=r.getDerivedStateFromProps,typeof S=="function"&&(uh(n,r,S,s),m.state=n.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(r=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),r!==m.state&&hd.enqueueReplaceState(m,m.state,null),pc(n,s,m,d),m.state=n.memoizedState),typeof m.componentDidMount=="function"&&(n.flags|=4194308)}function hs(n,r){try{var s="",d=r;do s+=yt(d),d=d.return;while(d);var m=s}catch(S){m=`
|
|
98
|
+
Error generating stack: `+S.message+`
|
|
99
|
+
`+S.stack}return{value:n,source:r,stack:m,digest:null}}function ch(n,r,s){return{value:n,source:null,stack:s??null,digest:r??null}}function fh(n,r){try{console.error(r.value)}catch(s){setTimeout(function(){throw s})}}var md=typeof WeakMap=="function"?WeakMap:Map;function Hm(n,r,s){s=Mo(-1,s),s.tag=3,s.payload={element:null};var d=r.value;return s.callback=function(){Su||(Su=!0,gs=d),fh(n,r)},s}function dh(n,r,s){s=Mo(-1,s),s.tag=3;var d=n.type.getDerivedStateFromError;if(typeof d=="function"){var m=r.value;s.payload=function(){return d(m)},s.callback=function(){fh(n,r)}}var S=n.stateNode;return S!==null&&typeof S.componentDidCatch=="function"&&(s.callback=function(){fh(n,r),typeof d!="function"&&(wl===null?wl=new Set([this]):wl.add(this));var T=r.stack;this.componentDidCatch(r.value,{componentStack:T!==null?T:""})}),s}function ph(n,r,s){var d=n.pingCache;if(d===null){d=n.pingCache=new md;var m=new Set;d.set(r,m)}else m=d.get(r),m===void 0&&(m=new Set,d.set(r,m));m.has(s)||(m.add(s),n=X0.bind(null,n,r,s),r.then(n,n))}function Vm(n){do{var r;if((r=n.tag===13)&&(r=n.memoizedState,r=r!==null?r.dehydrated!==null:!0),r)return n;n=n.return}while(n!==null);return null}function yl(n,r,s,d,m){return n.mode&1?(n.flags|=65536,n.lanes=m,n):(n===r?n.flags|=65536:(n.flags|=128,s.flags|=131072,s.flags&=-52805,s.tag===1&&(s.alternate===null?s.tag=17:(r=Mo(-1,1),r.tag=2,vl(s,r,1))),s.lanes|=1),n)}var Rc=fe.ReactCurrentOwner,Zn=!1;function Tr(n,r,s,d){r.child=n===null?De(r,null,s,d):Bn(r,n.child,s,d)}function wa(n,r,s,d,m){s=s.render;var S=r.ref;return Ln(r,m),d=ml(n,r,s,d,S,m),s=Ai(),n!==null&&!Zn?(r.updateQueue=n.updateQueue,r.flags&=-2053,n.lanes&=~m,ai(n,r,m)):(kn&&s&&$f(r),r.flags|=1,Tr(n,r,d,m),r.child)}function vs(n,r,s,d,m){if(n===null){var S=s.type;return typeof S=="function"&&!Mh(S)&&S.defaultProps===void 0&&s.compare===null&&s.defaultProps===void 0?(r.tag=15,r.type=S,kt(n,r,S,d,m)):(n=Hc(s.type,null,d,r,r.mode,m),n.ref=r.ref,n.return=r,r.child=n)}if(S=n.child,!(n.lanes&m)){var T=S.memoizedProps;if(s=s.compare,s=s!==null?s:rc,s(T,d)&&n.ref===r.ref)return ai(n,r,m)}return r.flags|=1,n=xl(S,d),n.ref=r.ref,n.return=r,r.child=n}function kt(n,r,s,d,m){if(n!==null){var S=n.memoizedProps;if(rc(S,d)&&n.ref===r.ref)if(Zn=!1,r.pendingProps=d=S,(n.lanes&m)!==0)n.flags&131072&&(Zn=!0);else return r.lanes=n.lanes,ai(n,r,m)}return $m(n,r,s,d,m)}function Mc(n,r,s){var d=r.pendingProps,m=d.children,S=n!==null?n.memoizedState:null;if(d.mode==="hidden")if(!(r.mode&1))r.memoizedState={baseLanes:0,cachePool:null,transitions:null},nt(mu,Ua),Ua|=s;else{if(!(s&1073741824))return n=S!==null?S.baseLanes|s:s,r.lanes=r.childLanes=1073741824,r.memoizedState={baseLanes:n,cachePool:null,transitions:null},r.updateQueue=null,nt(mu,Ua),Ua|=n,null;r.memoizedState={baseLanes:0,cachePool:null,transitions:null},d=S!==null?S.baseLanes:s,nt(mu,Ua),Ua|=d}else S!==null?(d=S.baseLanes|s,r.memoizedState=null):d=s,nt(mu,Ua),Ua|=d;return Tr(n,r,m,s),r.child}function hh(n,r){var s=r.ref;(n===null&&s!==null||n!==null&&n.ref!==s)&&(r.flags|=512,r.flags|=2097152)}function $m(n,r,s,d,m){var S=Kn(s)?ha:zn.current;return S=va(r,S),Ln(r,m),s=ml(n,r,s,d,S,m),d=Ai(),n!==null&&!Zn?(r.updateQueue=n.updateQueue,r.flags&=-2053,n.lanes&=~m,ai(n,r,m)):(kn&&d&&$f(r),r.flags|=1,Tr(n,r,s,m),r.child)}function Gm(n,r,s,d,m){if(Kn(s)){var S=!0;hr(r)}else S=!1;if(Ln(r,m),r.stateNode===null)ri(n,r),vd(r,s,d),Tc(r,s,d,m),d=!0;else if(n===null){var T=r.stateNode,D=r.memoizedProps;T.props=D;var U=T.context,ee=s.contextType;typeof ee=="object"&&ee!==null?ee=ni(ee):(ee=Kn(s)?ha:zn.current,ee=va(r,ee));var ge=s.getDerivedStateFromProps,Se=typeof ge=="function"||typeof T.getSnapshotBeforeUpdate=="function";Se||typeof T.UNSAFE_componentWillReceiveProps!="function"&&typeof T.componentWillReceiveProps!="function"||(D!==d||U!==ee)&&Bm(r,T,d,ee),Ia=!1;var me=r.memoizedState;T.state=me,pc(r,d,T,m),U=r.memoizedState,D!==d||me!==U||sr.current||Ia?(typeof ge=="function"&&(uh(r,s,ge,d),U=r.memoizedState),(D=Ia||jm(r,s,D,d,me,U,ee))?(Se||typeof T.UNSAFE_componentWillMount!="function"&&typeof T.componentWillMount!="function"||(typeof T.componentWillMount=="function"&&T.componentWillMount(),typeof T.UNSAFE_componentWillMount=="function"&&T.UNSAFE_componentWillMount()),typeof T.componentDidMount=="function"&&(r.flags|=4194308)):(typeof T.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=d,r.memoizedState=U),T.props=d,T.state=U,T.context=ee,d=D):(typeof T.componentDidMount=="function"&&(r.flags|=4194308),d=!1)}else{T=r.stateNode,Im(n,r),D=r.memoizedProps,ee=r.type===r.elementType?D:Oi(r.type,D),T.props=ee,Se=r.pendingProps,me=T.context,U=s.contextType,typeof U=="object"&&U!==null?U=ni(U):(U=Kn(s)?ha:zn.current,U=va(r,U));var Ue=s.getDerivedStateFromProps;(ge=typeof Ue=="function"||typeof T.getSnapshotBeforeUpdate=="function")||typeof T.UNSAFE_componentWillReceiveProps!="function"&&typeof T.componentWillReceiveProps!="function"||(D!==Se||me!==U)&&Bm(r,T,d,U),Ia=!1,me=r.memoizedState,T.state=me,pc(r,d,T,m);var Ye=r.memoizedState;D!==Se||me!==Ye||sr.current||Ia?(typeof Ue=="function"&&(uh(r,s,Ue,d),Ye=r.memoizedState),(ee=Ia||jm(r,s,ee,d,me,Ye,U)||!1)?(ge||typeof T.UNSAFE_componentWillUpdate!="function"&&typeof T.componentWillUpdate!="function"||(typeof T.componentWillUpdate=="function"&&T.componentWillUpdate(d,Ye,U),typeof T.UNSAFE_componentWillUpdate=="function"&&T.UNSAFE_componentWillUpdate(d,Ye,U)),typeof T.componentDidUpdate=="function"&&(r.flags|=4),typeof T.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof T.componentDidUpdate!="function"||D===n.memoizedProps&&me===n.memoizedState||(r.flags|=4),typeof T.getSnapshotBeforeUpdate!="function"||D===n.memoizedProps&&me===n.memoizedState||(r.flags|=1024),r.memoizedProps=d,r.memoizedState=Ye),T.props=d,T.state=Ye,T.context=U,d=ee):(typeof T.componentDidUpdate!="function"||D===n.memoizedProps&&me===n.memoizedState||(r.flags|=4),typeof T.getSnapshotBeforeUpdate!="function"||D===n.memoizedProps&&me===n.memoizedState||(r.flags|=1024),d=!1)}return _c(n,r,s,d,S,m)}function _c(n,r,s,d,m,S){hh(n,r);var T=(r.flags&128)!==0;if(!d&&!T)return m&&Hf(r,s,!1),ai(n,r,S);d=r.stateNode,Rc.current=r;var D=T&&typeof s.getDerivedStateFromError!="function"?null:d.render();return r.flags|=1,n!==null&&T?(r.child=Bn(r,n.child,null,S),r.child=Bn(r,null,D,S)):Tr(n,r,D,S),r.memoizedState=d.state,m&&Hf(r,s,!0),r.child}function hu(n){var r=n.stateNode;r.pendingContext?Nm(n,r.pendingContext,r.pendingContext!==r.context):r.context&&Nm(n,r.context,!1),oh(n,r.containerInfo)}function Ym(n,r,s,d,m){return hl(),Ro(m),r.flags|=256,Tr(n,r,s,d),r.child}var gd={dehydrated:null,treeContext:null,retryLane:0};function vh(n){return{baseLanes:n,cachePool:null,transitions:null}}function yd(n,r,s){var d=r.pendingProps,m=Pn.current,S=!1,T=(r.flags&128)!==0,D;if((D=T)||(D=n!==null&&n.memoizedState===null?!1:(m&2)!==0),D?(S=!0,r.flags&=-129):(n===null||n.memoizedState!==null)&&(m|=1),nt(Pn,m&1),n===null)return qp(r),n=r.memoizedState,n!==null&&(n=n.dehydrated,n!==null)?(r.mode&1?n.data==="$!"?r.lanes=8:r.lanes=1073741824:r.lanes=1,null):(T=d.children,n=d.fallback,S?(d=r.mode,S=r.child,T={mode:"hidden",children:T},!(d&1)&&S!==null?(S.childLanes=0,S.pendingProps=T):S=Cl(T,d,0,null),n=No(n,d,s,null),S.return=r,n.return=r,S.sibling=n,r.child=S,r.child.memoizedState=vh(s),r.memoizedState=gd,n):mh(r,T));if(m=n.memoizedState,m!==null&&(D=m.dehydrated,D!==null))return Wm(n,r,T,d,D,m,s);if(S){S=d.fallback,T=r.mode,m=n.child,D=m.sibling;var U={mode:"hidden",children:d.children};return!(T&1)&&r.child!==m?(d=r.child,d.childLanes=0,d.pendingProps=U,r.deletions=null):(d=xl(m,U),d.subtreeFlags=m.subtreeFlags&14680064),D!==null?S=xl(D,S):(S=No(S,T,s,null),S.flags|=2),S.return=r,d.return=r,d.sibling=S,r.child=d,d=S,S=r.child,T=n.child.memoizedState,T=T===null?vh(s):{baseLanes:T.baseLanes|s,cachePool:null,transitions:T.transitions},S.memoizedState=T,S.childLanes=n.childLanes&~s,r.memoizedState=gd,d}return S=n.child,n=S.sibling,d=xl(S,{mode:"visible",children:d.children}),!(r.mode&1)&&(d.lanes=s),d.return=r,d.sibling=null,n!==null&&(s=r.deletions,s===null?(r.deletions=[n],r.flags|=16):s.push(n)),r.child=d,r.memoizedState=null,d}function mh(n,r){return r=Cl({mode:"visible",children:r},n.mode,0,null),r.return=n,n.child=r}function kc(n,r,s,d){return d!==null&&Ro(d),Bn(r,n.child,null,s),n=mh(r,r.pendingProps.children),n.flags|=2,r.memoizedState=null,n}function Wm(n,r,s,d,m,S,T){if(s)return r.flags&256?(r.flags&=-257,d=ch(Error(l(422))),kc(n,r,T,d)):r.memoizedState!==null?(r.child=n.child,r.flags|=128,null):(S=d.fallback,m=r.mode,d=Cl({mode:"visible",children:d.children},m,0,null),S=No(S,m,T,null),S.flags|=2,d.return=r,S.return=r,d.sibling=S,r.child=d,r.mode&1&&Bn(r,n.child,null,T),r.child.memoizedState=vh(T),r.memoizedState=gd,S);if(!(r.mode&1))return kc(n,r,T,null);if(m.data==="$!"){if(d=m.nextSibling&&m.nextSibling.dataset,d)var D=d.dgst;return d=D,S=Error(l(419)),d=ch(S,d,void 0),kc(n,r,T,d)}if(D=(T&n.childLanes)!==0,Zn||D){if(d=cr,d!==null){switch(T&-T){case 4:m=2;break;case 16:m=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:m=32;break;case 536870912:m=268435456;break;default:m=0}m=m&(d.suspendedLanes|T)?0:m,m!==0&&m!==S.retryLane&&(S.retryLane=m,Pa(n,m),Zr(d,n,m,-1))}return Rh(),d=ch(Error(l(421))),kc(n,r,T,d)}return m.data==="$?"?(r.flags|=128,r.child=n.child,r=K0.bind(null,n),m._reactRetry=r,null):(n=S.treeContext,ga=Xi(m.nextSibling),ma=r,kn=!0,ti=null,n!==null&&(Qn[ei++]=Zi,Qn[ei++]=Ji,Qn[ei++]=Da,Zi=n.id,Ji=n.overflow,Da=r),r=mh(r,d.children),r.flags|=4096,r)}function gh(n,r,s){n.lanes|=r;var d=n.alternate;d!==null&&(d.lanes|=r),th(n.return,r,s)}function Kr(n,r,s,d,m){var S=n.memoizedState;S===null?n.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:d,tail:s,tailMode:m}:(S.isBackwards=r,S.rendering=null,S.renderingStartTime=0,S.last=d,S.tail=s,S.tailMode=m)}function to(n,r,s){var d=r.pendingProps,m=d.revealOrder,S=d.tail;if(Tr(n,r,d.children,s),d=Pn.current,d&2)d=d&1|2,r.flags|=128;else{if(n!==null&&n.flags&128)e:for(n=r.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&gh(n,s,r);else if(n.tag===19)gh(n,s,r);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===r)break e;for(;n.sibling===null;){if(n.return===null||n.return===r)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}d&=1}if(nt(Pn,d),!(r.mode&1))r.memoizedState=null;else switch(m){case"forwards":for(s=r.child,m=null;s!==null;)n=s.alternate,n!==null&&Qf(n)===null&&(m=s),s=s.sibling;s=m,s===null?(m=r.child,r.child=null):(m=s.sibling,s.sibling=null),Kr(r,!1,m,s,S);break;case"backwards":for(s=null,m=r.child,r.child=null;m!==null;){if(n=m.alternate,n!==null&&Qf(n)===null){r.child=m;break}n=m.sibling,m.sibling=s,s=m,m=n}Kr(r,!0,s,null,S);break;case"together":Kr(r,!1,null,null,void 0);break;default:r.memoizedState=null}return r.child}function ri(n,r){!(r.mode&1)&&n!==null&&(n.alternate=null,r.alternate=null,r.flags|=2)}function ai(n,r,s){if(n!==null&&(r.dependencies=n.dependencies),ao|=r.lanes,!(s&r.childLanes))return null;if(n!==null&&r.child!==n.child)throw Error(l(153));if(r.child!==null){for(n=r.child,s=xl(n,n.pendingProps),r.child=s,s.return=r;n.sibling!==null;)n=n.sibling,s=s.sibling=xl(n,n.pendingProps),s.return=r;s.sibling=null}return r.child}function Ac(n,r,s){switch(r.tag){case 3:hu(r),hl();break;case 5:zm(r);break;case 1:Kn(r.type)&&hr(r);break;case 4:oh(r,r.stateNode.containerInfo);break;case 10:var d=r.type._context,m=r.memoizedProps.value;nt(La,d._currentValue),d._currentValue=m;break;case 13:if(d=r.memoizedState,d!==null)return d.dehydrated!==null?(nt(Pn,Pn.current&1),r.flags|=128,null):s&r.child.childLanes?yd(n,r,s):(nt(Pn,Pn.current&1),n=ai(n,r,s),n!==null?n.sibling:null);nt(Pn,Pn.current&1);break;case 19:if(d=(s&r.childLanes)!==0,n.flags&128){if(d)return to(n,r,s);r.flags|=128}if(m=r.memoizedState,m!==null&&(m.rendering=null,m.tail=null,m.lastEffect=null),nt(Pn,Pn.current),d)break;return null;case 22:case 23:return r.lanes=0,Mc(n,r,s)}return ai(n,r,s)}var ii,Jn,Xm,Km;ii=function(n,r){for(var s=r.child;s!==null;){if(s.tag===5||s.tag===6)n.appendChild(s.stateNode);else if(s.tag!==4&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===r)break;for(;s.sibling===null;){if(s.return===null||s.return===r)return;s=s.return}s.sibling.return=s.return,s=s.sibling}},Jn=function(){},Xm=function(n,r,s,d){var m=n.memoizedProps;if(m!==d){n=r.stateNode,os(eo.current);var S=null;switch(s){case"input":m=wr(n,m),d=wr(n,d),S=[];break;case"select":m=Ce({},m,{value:void 0}),d=Ce({},d,{value:void 0}),S=[];break;case"textarea":m=or(n,m),d=or(n,d),S=[];break;default:typeof m.onClick!="function"&&typeof d.onClick=="function"&&(n.onclick=sl)}En(s,d);var T;s=null;for(ee in m)if(!d.hasOwnProperty(ee)&&m.hasOwnProperty(ee)&&m[ee]!=null)if(ee==="style"){var D=m[ee];for(T in D)D.hasOwnProperty(T)&&(s||(s={}),s[T]="")}else ee!=="dangerouslySetInnerHTML"&&ee!=="children"&&ee!=="suppressContentEditableWarning"&&ee!=="suppressHydrationWarning"&&ee!=="autoFocus"&&(h.hasOwnProperty(ee)?S||(S=[]):(S=S||[]).push(ee,null));for(ee in d){var U=d[ee];if(D=m?.[ee],d.hasOwnProperty(ee)&&U!==D&&(U!=null||D!=null))if(ee==="style")if(D){for(T in D)!D.hasOwnProperty(T)||U&&U.hasOwnProperty(T)||(s||(s={}),s[T]="");for(T in U)U.hasOwnProperty(T)&&D[T]!==U[T]&&(s||(s={}),s[T]=U[T])}else s||(S||(S=[]),S.push(ee,s)),s=U;else ee==="dangerouslySetInnerHTML"?(U=U?U.__html:void 0,D=D?D.__html:void 0,U!=null&&D!==U&&(S=S||[]).push(ee,U)):ee==="children"?typeof U!="string"&&typeof U!="number"||(S=S||[]).push(ee,""+U):ee!=="suppressContentEditableWarning"&&ee!=="suppressHydrationWarning"&&(h.hasOwnProperty(ee)?(U!=null&&ee==="onScroll"&&on("scroll",n),S||D===U||(S=[])):(S=S||[]).push(ee,U))}s&&(S=S||[]).push("style",s);var ee=S;(r.updateQueue=ee)&&(r.flags|=4)}},Km=function(n,r,s,d){s!==d&&(r.flags|=4)};function Oc(n,r){if(!kn)switch(n.tailMode){case"hidden":r=n.tail;for(var s=null;r!==null;)r.alternate!==null&&(s=r),r=r.sibling;s===null?n.tail=null:s.sibling=null;break;case"collapsed":s=n.tail;for(var d=null;s!==null;)s.alternate!==null&&(d=s),s=s.sibling;d===null?r||n.tail===null?n.tail=null:n.tail.sibling=null:d.sibling=null}}function mr(n){var r=n.alternate!==null&&n.alternate.child===n.child,s=0,d=0;if(r)for(var m=n.child;m!==null;)s|=m.lanes|m.childLanes,d|=m.subtreeFlags&14680064,d|=m.flags&14680064,m.return=n,m=m.sibling;else for(m=n.child;m!==null;)s|=m.lanes|m.childLanes,d|=m.subtreeFlags,d|=m.flags,m.return=n,m=m.sibling;return n.subtreeFlags|=d,n.childLanes=s,r}function Qm(n,r,s){var d=r.pendingProps;switch(Gf(r),r.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return mr(r),null;case 1:return Kn(r.type)&&uu(),mr(r),null;case 3:return d=r.stateNode,ls(),Cn(sr),Cn(zn),it(),d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null),(n===null||n.child===null)&&(Yf(r)?r.flags|=4:n===null||n.memoizedState.isDehydrated&&!(r.flags&256)||(r.flags|=1024,ti!==null&&(ys(ti),ti=null))),Jn(n,r),mr(r),null;case 5:Kf(r);var m=os(mc.current);if(s=r.type,n!==null&&r.stateNode!=null)Xm(n,r,s,d,m),n.ref!==r.ref&&(r.flags|=512,r.flags|=2097152);else{if(!d){if(r.stateNode===null)throw Error(l(166));return mr(r),null}if(n=os(eo.current),Yf(r)){d=r.stateNode,s=r.type;var S=r.memoizedProps;switch(d[Ki]=r,d[uc]=S,n=(r.mode&1)!==0,s){case"dialog":on("cancel",d),on("close",d);break;case"iframe":case"object":case"embed":on("load",d);break;case"video":case"audio":for(m=0;m<oc.length;m++)on(oc[m],d);break;case"source":on("error",d);break;case"img":case"image":case"link":on("error",d),on("load",d);break;case"details":on("toggle",d);break;case"input":ar(d,S),on("invalid",d);break;case"select":d._wrapperState={wasMultiple:!!S.multiple},on("invalid",d);break;case"textarea":Ur(d,S),on("invalid",d)}En(s,S),m=null;for(var T in S)if(S.hasOwnProperty(T)){var D=S[T];T==="children"?typeof D=="string"?d.textContent!==D&&(S.suppressHydrationWarning!==!0&&zf(d.textContent,D,n),m=["children",D]):typeof D=="number"&&d.textContent!==""+D&&(S.suppressHydrationWarning!==!0&&zf(d.textContent,D,n),m=["children",""+D]):h.hasOwnProperty(T)&&D!=null&&T==="onScroll"&&on("scroll",d)}switch(s){case"input":gn(d),zi(d,S,!0);break;case"textarea":gn(d),Wn(d);break;case"select":case"option":break;default:typeof S.onClick=="function"&&(d.onclick=sl)}d=m,r.updateQueue=d,d!==null&&(r.flags|=4)}else{T=m.nodeType===9?m:m.ownerDocument,n==="http://www.w3.org/1999/xhtml"&&(n=zr(s)),n==="http://www.w3.org/1999/xhtml"?s==="script"?(n=T.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild)):typeof d.is=="string"?n=T.createElement(s,{is:d.is}):(n=T.createElement(s),s==="select"&&(T=n,d.multiple?T.multiple=!0:d.size&&(T.size=d.size))):n=T.createElementNS(n,s),n[Ki]=r,n[uc]=d,ii(n,r,!1,!1),r.stateNode=n;e:{switch(T=pr(s,d),s){case"dialog":on("cancel",n),on("close",n),m=d;break;case"iframe":case"object":case"embed":on("load",n),m=d;break;case"video":case"audio":for(m=0;m<oc.length;m++)on(oc[m],n);m=d;break;case"source":on("error",n),m=d;break;case"img":case"image":case"link":on("error",n),on("load",n),m=d;break;case"details":on("toggle",n),m=d;break;case"input":ar(n,d),m=wr(n,d),on("invalid",n);break;case"option":m=d;break;case"select":n._wrapperState={wasMultiple:!!d.multiple},m=Ce({},d,{value:void 0}),on("invalid",n);break;case"textarea":Ur(n,d),m=or(n,d),on("invalid",n);break;default:m=d}En(s,m),D=m;for(S in D)if(D.hasOwnProperty(S)){var U=D[S];S==="style"?Sn(n,U):S==="dangerouslySetInnerHTML"?(U=U?U.__html:void 0,U!=null&&Fi(n,U)):S==="children"?typeof U=="string"?(s!=="textarea"||U!=="")&&Me(n,U):typeof U=="number"&&Me(n,""+U):S!=="suppressContentEditableWarning"&&S!=="suppressHydrationWarning"&&S!=="autoFocus"&&(h.hasOwnProperty(S)?U!=null&&S==="onScroll"&&on("scroll",n):U!=null&&ce(n,S,U,T))}switch(s){case"input":gn(n),zi(n,d,!1);break;case"textarea":gn(n),Wn(n);break;case"option":d.value!=null&&n.setAttribute("value",""+St(d.value));break;case"select":n.multiple=!!d.multiple,S=d.value,S!=null?Fn(n,!!d.multiple,S,!1):d.defaultValue!=null&&Fn(n,!!d.multiple,d.defaultValue,!0);break;default:typeof m.onClick=="function"&&(n.onclick=sl)}switch(s){case"button":case"input":case"select":case"textarea":d=!!d.autoFocus;break e;case"img":d=!0;break e;default:d=!1}}d&&(r.flags|=4)}r.ref!==null&&(r.flags|=512,r.flags|=2097152)}return mr(r),null;case 6:if(n&&r.stateNode!=null)Km(n,r,n.memoizedProps,d);else{if(typeof d!="string"&&r.stateNode===null)throw Error(l(166));if(s=os(mc.current),os(eo.current),Yf(r)){if(d=r.stateNode,s=r.memoizedProps,d[Ki]=r,(S=d.nodeValue!==s)&&(n=ma,n!==null))switch(n.tag){case 3:zf(d.nodeValue,s,(n.mode&1)!==0);break;case 5:n.memoizedProps.suppressHydrationWarning!==!0&&zf(d.nodeValue,s,(n.mode&1)!==0)}S&&(r.flags|=4)}else d=(s.nodeType===9?s:s.ownerDocument).createTextNode(d),d[Ki]=r,r.stateNode=d}return mr(r),null;case 13:if(Cn(Pn),d=r.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(kn&&ga!==null&&r.mode&1&&!(r.flags&128))dc(),hl(),r.flags|=98560,S=!1;else if(S=Yf(r),d!==null&&d.dehydrated!==null){if(n===null){if(!S)throw Error(l(318));if(S=r.memoizedState,S=S!==null?S.dehydrated:null,!S)throw Error(l(317));S[Ki]=r}else hl(),!(r.flags&128)&&(r.memoizedState=null),r.flags|=4;mr(r),S=!1}else ti!==null&&(ys(ti),ti=null),S=!0;if(!S)return r.flags&65536?r:null}return r.flags&128?(r.lanes=s,r):(d=d!==null,d!==(n!==null&&n.memoizedState!==null)&&d&&(r.child.flags|=8192,r.mode&1&&(n===null||Pn.current&1?$n===0&&($n=3):Rh())),r.updateQueue!==null&&(r.flags|=4),mr(r),null);case 4:return ls(),Jn(n,r),n===null&&au(r.stateNode.containerInfo),mr(r),null;case 10:return eh(r.type._context),mr(r),null;case 17:return Kn(r.type)&&uu(),mr(r),null;case 19:if(Cn(Pn),S=r.memoizedState,S===null)return mr(r),null;if(d=(r.flags&128)!==0,T=S.rendering,T===null)if(d)Oc(S,!1);else{if($n!==0||n!==null&&n.flags&128)for(n=r.child;n!==null;){if(T=Qf(n),T!==null){for(r.flags|=128,Oc(S,!1),d=T.updateQueue,d!==null&&(r.updateQueue=d,r.flags|=4),r.subtreeFlags=0,d=s,s=r.child;s!==null;)S=s,n=d,S.flags&=14680066,T=S.alternate,T===null?(S.childLanes=0,S.lanes=n,S.child=null,S.subtreeFlags=0,S.memoizedProps=null,S.memoizedState=null,S.updateQueue=null,S.dependencies=null,S.stateNode=null):(S.childLanes=T.childLanes,S.lanes=T.lanes,S.child=T.child,S.subtreeFlags=0,S.deletions=null,S.memoizedProps=T.memoizedProps,S.memoizedState=T.memoizedState,S.updateQueue=T.updateQueue,S.type=T.type,n=T.dependencies,S.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),s=s.sibling;return nt(Pn,Pn.current&1|2),r.child}n=n.sibling}S.tail!==null&&_t()>yu&&(r.flags|=128,d=!0,Oc(S,!1),r.lanes=4194304)}else{if(!d)if(n=Qf(T),n!==null){if(r.flags|=128,d=!0,s=n.updateQueue,s!==null&&(r.updateQueue=s,r.flags|=4),Oc(S,!0),S.tail===null&&S.tailMode==="hidden"&&!T.alternate&&!kn)return mr(r),null}else 2*_t()-S.renderingStartTime>yu&&s!==1073741824&&(r.flags|=128,d=!0,Oc(S,!1),r.lanes=4194304);S.isBackwards?(T.sibling=r.child,r.child=T):(s=S.last,s!==null?s.sibling=T:r.child=T,S.last=T)}return S.tail!==null?(r=S.tail,S.rendering=r,S.tail=r.sibling,S.renderingStartTime=_t(),r.sibling=null,s=Pn.current,nt(Pn,d?s&1|2:s&1),r):(mr(r),null);case 22:case 23:return Th(),d=r.memoizedState!==null,n!==null&&n.memoizedState!==null!==d&&(r.flags|=8192),d&&r.mode&1?Ua&1073741824&&(mr(r),r.subtreeFlags&6&&(r.flags|=8192)):mr(r),null;case 24:return null;case 25:return null}throw Error(l(156,r.tag))}function Sd(n,r){switch(Gf(r),r.tag){case 1:return Kn(r.type)&&uu(),n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 3:return ls(),Cn(sr),Cn(zn),it(),n=r.flags,n&65536&&!(n&128)?(r.flags=n&-65537|128,r):null;case 5:return Kf(r),null;case 13:if(Cn(Pn),n=r.memoizedState,n!==null&&n.dehydrated!==null){if(r.alternate===null)throw Error(l(340));hl()}return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 19:return Cn(Pn),null;case 4:return ls(),null;case 10:return eh(r.type._context),null;case 22:case 23:return Th(),null;case 24:return null;default:return null}}var Nc=!1,Hr=!1,H0=typeof WeakSet=="function"?WeakSet:Set,je=null;function vu(n,r){var s=n.ref;if(s!==null)if(typeof s=="function")try{s(null)}catch(d){An(n,r,d)}else s.current=null}function wd(n,r,s){try{s()}catch(d){An(n,r,d)}}var qm=!1;function Zm(n,r){if(sc=Qa,n=ac(),Af(n)){if("selectionStart"in n)var s={start:n.selectionStart,end:n.selectionEnd};else e:{s=(s=n.ownerDocument)&&s.defaultView||window;var d=s.getSelection&&s.getSelection();if(d&&d.rangeCount!==0){s=d.anchorNode;var m=d.anchorOffset,S=d.focusNode;d=d.focusOffset;try{s.nodeType,S.nodeType}catch{s=null;break e}var T=0,D=-1,U=-1,ee=0,ge=0,Se=n,me=null;t:for(;;){for(var Ue;Se!==s||m!==0&&Se.nodeType!==3||(D=T+m),Se!==S||d!==0&&Se.nodeType!==3||(U=T+d),Se.nodeType===3&&(T+=Se.nodeValue.length),(Ue=Se.firstChild)!==null;)me=Se,Se=Ue;for(;;){if(Se===n)break t;if(me===s&&++ee===m&&(D=T),me===S&&++ge===d&&(U=T),(Ue=Se.nextSibling)!==null)break;Se=me,me=Se.parentNode}Se=Ue}s=D===-1||U===-1?null:{start:D,end:U}}else s=null}s=s||{start:0,end:0}}else s=null;for(es={focusedElem:n,selectionRange:s},Qa=!1,je=r;je!==null;)if(r=je,n=r.child,(r.subtreeFlags&1028)!==0&&n!==null)n.return=r,je=n;else for(;je!==null;){r=je;try{var Ye=r.alternate;if(r.flags&1024)switch(r.tag){case 0:case 11:case 15:break;case 1:if(Ye!==null){var Ze=Ye.memoizedProps,Gn=Ye.memoizedState,Y=r.stateNode,j=Y.getSnapshotBeforeUpdate(r.elementType===r.type?Ze:Oi(r.type,Ze),Gn);Y.__reactInternalSnapshotBeforeUpdate=j}break;case 3:var K=r.stateNode.containerInfo;K.nodeType===1?K.textContent="":K.nodeType===9&&K.documentElement&&K.removeChild(K.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(l(163))}}catch(ye){An(r,r.return,ye)}if(n=r.sibling,n!==null){n.return=r.return,je=n;break}je=r.return}return Ye=qm,qm=!1,Ye}function Dc(n,r,s){var d=r.updateQueue;if(d=d!==null?d.lastEffect:null,d!==null){var m=d=d.next;do{if((m.tag&n)===n){var S=m.destroy;m.destroy=void 0,S!==void 0&&wd(r,s,S)}m=m.next}while(m!==d)}}function Lc(n,r){if(r=r.updateQueue,r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&n)===n){var d=s.create;s.destroy=d()}s=s.next}while(s!==r)}}function yh(n){var r=n.ref;if(r!==null){var s=n.stateNode;switch(n.tag){case 5:n=s;break;default:n=s}typeof r=="function"?r(n):r.current=n}}function bd(n){var r=n.alternate;r!==null&&(n.alternate=null,bd(r)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(r=n.stateNode,r!==null&&(delete r[Ki],delete r[uc],delete r[cc],delete r[su],delete r[j0])),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function Pc(n){return n.tag===5||n.tag===3||n.tag===4}function ko(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||Pc(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function no(n,r,s){var d=n.tag;if(d===5||d===6)n=n.stateNode,r?s.nodeType===8?s.parentNode.insertBefore(n,r):s.insertBefore(n,r):(s.nodeType===8?(r=s.parentNode,r.insertBefore(n,s)):(r=s,r.appendChild(n)),s=s._reactRootContainer,s!=null||r.onclick!==null||(r.onclick=sl));else if(d!==4&&(n=n.child,n!==null))for(no(n,r,s),n=n.sibling;n!==null;)no(n,r,s),n=n.sibling}function ro(n,r,s){var d=n.tag;if(d===5||d===6)n=n.stateNode,r?s.insertBefore(n,r):s.appendChild(n);else if(d!==4&&(n=n.child,n!==null))for(ro(n,r,s),n=n.sibling;n!==null;)ro(n,r,s),n=n.sibling}var Vn=null,Qr=!1;function qr(n,r,s){for(s=s.child;s!==null;)Jm(n,r,s),s=s.sibling}function Jm(n,r,s){if(da&&typeof da.onCommitFiberUnmount=="function")try{da.onCommitFiberUnmount(Jo,s)}catch{}switch(s.tag){case 5:Hr||vu(s,r);case 6:var d=Vn,m=Qr;Vn=null,qr(n,r,s),Vn=d,Qr=m,Vn!==null&&(Qr?(n=Vn,s=s.stateNode,n.nodeType===8?n.parentNode.removeChild(s):n.removeChild(s)):Vn.removeChild(s.stateNode));break;case 18:Vn!==null&&(Qr?(n=Vn,s=s.stateNode,n.nodeType===8?lu(n.parentNode,s):n.nodeType===1&&lu(n,s),Ri(n)):lu(Vn,s.stateNode));break;case 4:d=Vn,m=Qr,Vn=s.stateNode.containerInfo,Qr=!0,qr(n,r,s),Vn=d,Qr=m;break;case 0:case 11:case 14:case 15:if(!Hr&&(d=s.updateQueue,d!==null&&(d=d.lastEffect,d!==null))){m=d=d.next;do{var S=m,T=S.destroy;S=S.tag,T!==void 0&&(S&2||S&4)&&wd(s,r,T),m=m.next}while(m!==d)}qr(n,r,s);break;case 1:if(!Hr&&(vu(s,r),d=s.stateNode,typeof d.componentWillUnmount=="function"))try{d.props=s.memoizedProps,d.state=s.memoizedState,d.componentWillUnmount()}catch(D){An(s,r,D)}qr(n,r,s);break;case 21:qr(n,r,s);break;case 22:s.mode&1?(Hr=(d=Hr)||s.memoizedState!==null,qr(n,r,s),Hr=d):qr(n,r,s);break;default:qr(n,r,s)}}function eg(n){var r=n.updateQueue;if(r!==null){n.updateQueue=null;var s=n.stateNode;s===null&&(s=n.stateNode=new H0),r.forEach(function(d){var m=ug.bind(null,n,d);s.has(d)||(s.add(d),d.then(m,m))})}}function Ni(n,r){var s=r.deletions;if(s!==null)for(var d=0;d<s.length;d++){var m=s[d];try{var S=n,T=r,D=T;e:for(;D!==null;){switch(D.tag){case 5:Vn=D.stateNode,Qr=!1;break e;case 3:Vn=D.stateNode.containerInfo,Qr=!0;break e;case 4:Vn=D.stateNode.containerInfo,Qr=!0;break e}D=D.return}if(Vn===null)throw Error(l(160));Jm(S,T,m),Vn=null,Qr=!1;var U=m.alternate;U!==null&&(U.return=null),m.return=null}catch(ee){An(m,r,ee)}}if(r.subtreeFlags&12854)for(r=r.child;r!==null;)Sh(r,n),r=r.sibling}function Sh(n,r){var s=n.alternate,d=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:if(Ni(r,n),ba(n),d&4){try{Dc(3,n,n.return),Lc(3,n)}catch(Ze){An(n,n.return,Ze)}try{Dc(5,n,n.return)}catch(Ze){An(n,n.return,Ze)}}break;case 1:Ni(r,n),ba(n),d&512&&s!==null&&vu(s,s.return);break;case 5:if(Ni(r,n),ba(n),d&512&&s!==null&&vu(s,s.return),n.flags&32){var m=n.stateNode;try{Me(m,"")}catch(Ze){An(n,n.return,Ze)}}if(d&4&&(m=n.stateNode,m!=null)){var S=n.memoizedProps,T=s!==null?s.memoizedProps:S,D=n.type,U=n.updateQueue;if(n.updateQueue=null,U!==null)try{D==="input"&&S.type==="radio"&&S.name!=null&&ir(m,S),pr(D,T);var ee=pr(D,S);for(T=0;T<U.length;T+=2){var ge=U[T],Se=U[T+1];ge==="style"?Sn(m,Se):ge==="dangerouslySetInnerHTML"?Fi(m,Se):ge==="children"?Me(m,Se):ce(m,ge,Se,ee)}switch(D){case"input":fa(m,S);break;case"textarea":yi(m,S);break;case"select":var me=m._wrapperState.wasMultiple;m._wrapperState.wasMultiple=!!S.multiple;var Ue=S.value;Ue!=null?Fn(m,!!S.multiple,Ue,!1):me!==!!S.multiple&&(S.defaultValue!=null?Fn(m,!!S.multiple,S.defaultValue,!0):Fn(m,!!S.multiple,S.multiple?[]:"",!1))}m[uc]=S}catch(Ze){An(n,n.return,Ze)}}break;case 6:if(Ni(r,n),ba(n),d&4){if(n.stateNode===null)throw Error(l(162));m=n.stateNode,S=n.memoizedProps;try{m.nodeValue=S}catch(Ze){An(n,n.return,Ze)}}break;case 3:if(Ni(r,n),ba(n),d&4&&s!==null&&s.memoizedState.isDehydrated)try{Ri(r.containerInfo)}catch(Ze){An(n,n.return,Ze)}break;case 4:Ni(r,n),ba(n);break;case 13:Ni(r,n),ba(n),m=n.child,m.flags&8192&&(S=m.memoizedState!==null,m.stateNode.isHidden=S,!S||m.alternate!==null&&m.alternate.memoizedState!==null||(xh=_t())),d&4&&eg(n);break;case 22:if(ge=s!==null&&s.memoizedState!==null,n.mode&1?(Hr=(ee=Hr)||ge,Ni(r,n),Hr=ee):Ni(r,n),ba(n),d&8192){if(ee=n.memoizedState!==null,(n.stateNode.isHidden=ee)&&!ge&&n.mode&1)for(je=n,ge=n.child;ge!==null;){for(Se=je=ge;je!==null;){switch(me=je,Ue=me.child,me.tag){case 0:case 11:case 14:case 15:Dc(4,me,me.return);break;case 1:vu(me,me.return);var Ye=me.stateNode;if(typeof Ye.componentWillUnmount=="function"){d=me,s=me.return;try{r=d,Ye.props=r.memoizedProps,Ye.state=r.memoizedState,Ye.componentWillUnmount()}catch(Ze){An(d,s,Ze)}}break;case 5:vu(me,me.return);break;case 22:if(me.memoizedState!==null){Ic(Se);continue}}Ue!==null?(Ue.return=me,je=Ue):Ic(Se)}ge=ge.sibling}e:for(ge=null,Se=n;;){if(Se.tag===5){if(ge===null){ge=Se;try{m=Se.stateNode,ee?(S=m.style,typeof S.setProperty=="function"?S.setProperty("display","none","important"):S.display="none"):(D=Se.stateNode,U=Se.memoizedProps.style,T=U!=null&&U.hasOwnProperty("display")?U.display:null,D.style.display=an("display",T))}catch(Ze){An(n,n.return,Ze)}}}else if(Se.tag===6){if(ge===null)try{Se.stateNode.nodeValue=ee?"":Se.memoizedProps}catch(Ze){An(n,n.return,Ze)}}else if((Se.tag!==22&&Se.tag!==23||Se.memoizedState===null||Se===n)&&Se.child!==null){Se.child.return=Se,Se=Se.child;continue}if(Se===n)break e;for(;Se.sibling===null;){if(Se.return===null||Se.return===n)break e;ge===Se&&(ge=null),Se=Se.return}ge===Se&&(ge=null),Se.sibling.return=Se.return,Se=Se.sibling}}break;case 19:Ni(r,n),ba(n),d&4&&eg(n);break;case 21:break;default:Ni(r,n),ba(n)}}function ba(n){var r=n.flags;if(r&2){try{e:{for(var s=n.return;s!==null;){if(Pc(s)){var d=s;break e}s=s.return}throw Error(l(160))}switch(d.tag){case 5:var m=d.stateNode;d.flags&32&&(Me(m,""),d.flags&=-33);var S=ko(n);ro(n,S,m);break;case 3:case 4:var T=d.stateNode.containerInfo,D=ko(n);no(n,D,T);break;default:throw Error(l(161))}}catch(U){An(n,n.return,U)}n.flags&=-3}r&4096&&(n.flags&=-4097)}function V0(n,r,s){je=n,wh(n)}function wh(n,r,s){for(var d=(n.mode&1)!==0;je!==null;){var m=je,S=m.child;if(m.tag===22&&d){var T=m.memoizedState!==null||Nc;if(!T){var D=m.alternate,U=D!==null&&D.memoizedState!==null||Hr;D=Nc;var ee=Hr;if(Nc=T,(Hr=U)&&!ee)for(je=m;je!==null;)T=je,U=T.child,T.tag===22&&T.memoizedState!==null?bh(m):U!==null?(U.return=T,je=U):bh(m);for(;S!==null;)je=S,wh(S),S=S.sibling;je=m,Nc=D,Hr=ee}tg(n)}else m.subtreeFlags&8772&&S!==null?(S.return=m,je=S):tg(n)}}function tg(n){for(;je!==null;){var r=je;if(r.flags&8772){var s=r.alternate;try{if(r.flags&8772)switch(r.tag){case 0:case 11:case 15:Hr||Lc(5,r);break;case 1:var d=r.stateNode;if(r.flags&4&&!Hr)if(s===null)d.componentDidMount();else{var m=r.elementType===r.type?s.memoizedProps:Oi(r.type,s.memoizedProps);d.componentDidUpdate(m,s.memoizedState,d.__reactInternalSnapshotBeforeUpdate)}var S=r.updateQueue;S!==null&&ih(r,S,d);break;case 3:var T=r.updateQueue;if(T!==null){if(s=null,r.child!==null)switch(r.child.tag){case 5:s=r.child.stateNode;break;case 1:s=r.child.stateNode}ih(r,T,s)}break;case 5:var D=r.stateNode;if(s===null&&r.flags&4){s=D;var U=r.memoizedProps;switch(r.type){case"button":case"input":case"select":case"textarea":U.autoFocus&&s.focus();break;case"img":U.src&&(s.src=U.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(r.memoizedState===null){var ee=r.alternate;if(ee!==null){var ge=ee.memoizedState;if(ge!==null){var Se=ge.dehydrated;Se!==null&&Ri(Se)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(l(163))}Hr||r.flags&512&&yh(r)}catch(me){An(r,r.return,me)}}if(r===n){je=null;break}if(s=r.sibling,s!==null){s.return=r.return,je=s;break}je=r.return}}function Ic(n){for(;je!==null;){var r=je;if(r===n){je=null;break}var s=r.sibling;if(s!==null){s.return=r.return,je=s;break}je=r.return}}function bh(n){for(;je!==null;){var r=je;try{switch(r.tag){case 0:case 11:case 15:var s=r.return;try{Lc(4,r)}catch(U){An(r,s,U)}break;case 1:var d=r.stateNode;if(typeof d.componentDidMount=="function"){var m=r.return;try{d.componentDidMount()}catch(U){An(r,m,U)}}var S=r.return;try{yh(r)}catch(U){An(r,S,U)}break;case 5:var T=r.return;try{yh(r)}catch(U){An(r,T,U)}}}catch(U){An(r,r.return,U)}if(r===n){je=null;break}var D=r.sibling;if(D!==null){D.return=r.return,je=D;break}je=r.return}}var $0=Math.ceil,Sl=fe.ReactCurrentDispatcher,ms=fe.ReactCurrentOwner,Rr=fe.ReactCurrentBatchConfig,Yt=0,cr=null,er=null,Mr=0,Ua=0,mu=Ja(0),$n=0,Uc=null,ao=0,gu=0,xd=0,zc=null,xa=null,xh=0,yu=1/0,za=null,Su=!1,gs=null,wl=null,Cd=!1,Ao=null,Fc=0,bl=0,wu=null,jc=-1,Vr=0;function tr(){return Yt&6?_t():jc!==-1?jc:jc=_t()}function io(n){return n.mode&1?Yt&2&&Mr!==0?Mr&-Mr:B0.transition!==null?(Vr===0&&(Vr=Ys()),Vr):(n=Zt,n!==0||(n=window.event,n=n===void 0?16:Js(n.type)),n):1}function Zr(n,r,s,d){if(50<bl)throw bl=0,wu=null,Error(l(185));go(n,s,d),(!(Yt&2)||n!==cr)&&(n===cr&&(!(Yt&2)&&(gu|=s),$n===4&&Di(n,Mr)),Ca(n,d),s===1&&Yt===0&&!(r.mode&1)&&(yu=_t()+500,cu&&qi()))}function Ca(n,r){var s=n.callbackNode;Gl(n,r);var d=Ti(n,n===cr?Mr:0);if(d===0)s!==null&&xr(s),n.callbackNode=null,n.callbackPriority=0;else if(r=d&-d,n.callbackPriority!==r){if(s!=null&&xr(s),r===1)n.tag===0?cl(Ch.bind(null,n)):Vf(Ch.bind(null,n)),ou(function(){!(Yt&6)&&qi()}),s=null;else{switch(Xs(d)){case 1:s=Ci;break;case 4:s=Vl;break;case 16:s=$l;break;case 536870912:s=Vs;break;default:s=$l}s=fg(s,Ed.bind(null,n))}n.callbackPriority=r,n.callbackNode=s}}function Ed(n,r){if(jc=-1,Vr=0,Yt&6)throw Error(l(327));var s=n.callbackNode;if(bu()&&n.callbackNode!==s)return null;var d=Ti(n,n===cr?Mr:0);if(d===0)return null;if(d&30||d&n.expiredLanes||r)r=Td(n,d);else{r=d;var m=Yt;Yt|=2;var S=rg();(cr!==n||Mr!==r)&&(za=null,yu=_t()+500,Oo(n,r));do try{ag();break}catch(D){ng(n,D)}while(!0);Jp(),Sl.current=S,Yt=m,er!==null?r=0:(cr=null,Mr=0,r=$n)}if(r!==0){if(r===2&&(m=tl(n),m!==0&&(d=m,r=Bc(n,m))),r===1)throw s=Uc,Oo(n,0),Di(n,d),Ca(n,_t()),s;if(r===6)Di(n,d);else{if(m=n.current.alternate,!(d&30)&&!G0(m)&&(r=Td(n,d),r===2&&(S=tl(n),S!==0&&(d=S,r=Bc(n,S))),r===1))throw s=Uc,Oo(n,0),Di(n,d),Ca(n,_t()),s;switch(n.finishedWork=m,n.finishedLanes=d,r){case 0:case 1:throw Error(l(345));case 2:ws(n,xa,za);break;case 3:if(Di(n,d),(d&130023424)===d&&(r=xh+500-_t(),10<r)){if(Ti(n,0)!==0)break;if(m=n.suspendedLanes,(m&d)!==d){tr(),n.pingedLanes|=n.suspendedLanes&m;break}n.timeoutHandle=jf(ws.bind(null,n,xa,za),r);break}ws(n,xa,za);break;case 4:if(Di(n,d),(d&4194240)===d)break;for(r=n.eventTimes,m=-1;0<d;){var T=31-Yr(d);S=1<<T,T=r[T],T>m&&(m=T),d&=~S}if(d=m,d=_t()-d,d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3e3>d?3e3:4320>d?4320:1960*$0(d/1960))-d,10<d){n.timeoutHandle=jf(ws.bind(null,n,xa,za),d);break}ws(n,xa,za);break;case 5:ws(n,xa,za);break;default:throw Error(l(329))}}}return Ca(n,_t()),n.callbackNode===s?Ed.bind(null,n):null}function Bc(n,r){var s=zc;return n.current.memoizedState.isDehydrated&&(Oo(n,r).flags|=256),n=Td(n,r),n!==2&&(r=xa,xa=s,r!==null&&ys(r)),n}function ys(n){xa===null?xa=n:xa.push.apply(xa,n)}function G0(n){for(var r=n;;){if(r.flags&16384){var s=r.updateQueue;if(s!==null&&(s=s.stores,s!==null))for(var d=0;d<s.length;d++){var m=s[d],S=m.getSnapshot;m=m.value;try{if(!_i(S(),m))return!1}catch{return!1}}}if(s=r.child,r.subtreeFlags&16384&&s!==null)s.return=r,r=s;else{if(r===n)break;for(;r.sibling===null;){if(r.return===null||r.return===n)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function Di(n,r){for(r&=~xd,r&=~gu,n.suspendedLanes|=r,n.pingedLanes&=~r,n=n.expirationTimes;0<r;){var s=31-Yr(r),d=1<<s;n[s]=-1,r&=~d}}function Ch(n){if(Yt&6)throw Error(l(327));bu();var r=Ti(n,0);if(!(r&1))return Ca(n,_t()),null;var s=Td(n,r);if(n.tag!==0&&s===2){var d=tl(n);d!==0&&(r=d,s=Bc(n,d))}if(s===1)throw s=Uc,Oo(n,0),Di(n,r),Ca(n,_t()),s;if(s===6)throw Error(l(345));return n.finishedWork=n.current.alternate,n.finishedLanes=r,ws(n,xa,za),Ca(n,_t()),null}function Eh(n,r){var s=Yt;Yt|=1;try{return n(r)}finally{Yt=s,Yt===0&&(yu=_t()+500,cu&&qi())}}function Ss(n){Ao!==null&&Ao.tag===0&&!(Yt&6)&&bu();var r=Yt;Yt|=1;var s=Rr.transition,d=Zt;try{if(Rr.transition=null,Zt=1,n)return n()}finally{Zt=d,Rr.transition=s,Yt=r,!(Yt&6)&&qi()}}function Th(){Ua=mu.current,Cn(mu)}function Oo(n,r){n.finishedWork=null,n.finishedLanes=0;var s=n.timeoutHandle;if(s!==-1&&(n.timeoutHandle=-1,Xp(s)),er!==null)for(s=er.return;s!==null;){var d=s;switch(Gf(d),d.tag){case 1:d=d.type.childContextTypes,d!=null&&uu();break;case 3:ls(),Cn(sr),Cn(zn),it();break;case 5:Kf(d);break;case 4:ls();break;case 13:Cn(Pn);break;case 19:Cn(Pn);break;case 10:eh(d.type._context);break;case 22:case 23:Th()}s=s.return}if(cr=n,er=n=xl(n.current,null),Mr=Ua=r,$n=0,Uc=null,xd=gu=ao=0,xa=zc=null,is!==null){for(r=0;r<is.length;r++)if(s=is[r],d=s.interleaved,d!==null){s.interleaved=null;var m=d.next,S=s.pending;if(S!==null){var T=S.next;S.next=m,d.next=T}s.pending=d}is=null}return n}function ng(n,r){do{var s=er;try{if(Jp(),Lt.current=ps,qf){for(var d=en.memoizedState;d!==null;){var m=d.queue;m!==null&&(m.pending=null),d=d.next}qf=!1}if(pn=0,vr=qn=en=null,yc=!1,ss=0,ms.current=null,s===null||s.return===null){$n=1,Uc=r,er=null;break}e:{var S=n,T=s.return,D=s,U=r;if(r=Mr,D.flags|=32768,U!==null&&typeof U=="object"&&typeof U.then=="function"){var ee=U,ge=D,Se=ge.tag;if(!(ge.mode&1)&&(Se===0||Se===11||Se===15)){var me=ge.alternate;me?(ge.updateQueue=me.updateQueue,ge.memoizedState=me.memoizedState,ge.lanes=me.lanes):(ge.updateQueue=null,ge.memoizedState=null)}var Ue=Vm(T);if(Ue!==null){Ue.flags&=-257,yl(Ue,T,D,S,r),Ue.mode&1&&ph(S,ee,r),r=Ue,U=ee;var Ye=r.updateQueue;if(Ye===null){var Ze=new Set;Ze.add(U),r.updateQueue=Ze}else Ye.add(U);break e}else{if(!(r&1)){ph(S,ee,r),Rh();break e}U=Error(l(426))}}else if(kn&&D.mode&1){var Gn=Vm(T);if(Gn!==null){!(Gn.flags&65536)&&(Gn.flags|=256),yl(Gn,T,D,S,r),Ro(hs(U,D));break e}}S=U=hs(U,D),$n!==4&&($n=2),zc===null?zc=[S]:zc.push(S),S=T;do{switch(S.tag){case 3:S.flags|=65536,r&=-r,S.lanes|=r;var Y=Hm(S,U,r);Um(S,Y);break e;case 1:D=U;var j=S.type,K=S.stateNode;if(!(S.flags&128)&&(typeof j.getDerivedStateFromError=="function"||K!==null&&typeof K.componentDidCatch=="function"&&(wl===null||!wl.has(K)))){S.flags|=65536,r&=-r,S.lanes|=r;var ye=dh(S,D,r);Um(S,ye);break e}}S=S.return}while(S!==null)}og(s)}catch(We){r=We,er===s&&s!==null&&(er=s=s.return);continue}break}while(!0)}function rg(){var n=Sl.current;return Sl.current=ps,n===null?ps:n}function Rh(){($n===0||$n===3||$n===2)&&($n=4),cr===null||!(ao&268435455)&&!(gu&268435455)||Di(cr,Mr)}function Td(n,r){var s=Yt;Yt|=2;var d=rg();(cr!==n||Mr!==r)&&(za=null,Oo(n,r));do try{Y0();break}catch(m){ng(n,m)}while(!0);if(Jp(),Yt=s,Sl.current=d,er!==null)throw Error(l(261));return cr=null,Mr=0,$n}function Y0(){for(;er!==null;)ig(er)}function ag(){for(;er!==null&&!bi();)ig(er)}function ig(n){var r=cg(n.alternate,n,Ua);n.memoizedProps=n.pendingProps,r===null?og(n):er=r,ms.current=null}function og(n){var r=n;do{var s=r.alternate;if(n=r.return,r.flags&32768){if(s=Sd(s,r),s!==null){s.flags&=32767,er=s;return}if(n!==null)n.flags|=32768,n.subtreeFlags=0,n.deletions=null;else{$n=6,er=null;return}}else if(s=Qm(s,r,Ua),s!==null){er=s;return}if(r=r.sibling,r!==null){er=r;return}er=r=n}while(r!==null);$n===0&&($n=5)}function ws(n,r,s){var d=Zt,m=Rr.transition;try{Rr.transition=null,Zt=1,W0(n,r,s,d)}finally{Rr.transition=m,Zt=d}return null}function W0(n,r,s,d){do bu();while(Ao!==null);if(Yt&6)throw Error(l(327));s=n.finishedWork;var m=n.finishedLanes;if(s===null)return null;if(n.finishedWork=null,n.finishedLanes=0,s===n.current)throw Error(l(177));n.callbackNode=null,n.callbackPriority=0;var S=s.lanes|s.childLanes;if(Mp(n,S),n===cr&&(er=cr=null,Mr=0),!(s.subtreeFlags&2064)&&!(s.flags&2064)||Cd||(Cd=!0,fg($l,function(){return bu(),null})),S=(s.flags&15990)!==0,s.subtreeFlags&15990||S){S=Rr.transition,Rr.transition=null;var T=Zt;Zt=1;var D=Yt;Yt|=4,ms.current=null,Zm(n,s),Sh(s,n),nu(es),Qa=!!sc,es=sc=null,n.current=s,V0(s),xi(),Yt=D,Zt=T,Rr.transition=S}else n.current=s;if(Cd&&(Cd=!1,Ao=n,Fc=m),S=n.pendingLanes,S===0&&(wl=null),Xu(s.stateNode),Ca(n,_t()),r!==null)for(d=n.onRecoverableError,s=0;s<r.length;s++)m=r[s],d(m.value,{componentStack:m.stack,digest:m.digest});if(Su)throw Su=!1,n=gs,gs=null,n;return Fc&1&&n.tag!==0&&bu(),S=n.pendingLanes,S&1?n===wu?bl++:(bl=0,wu=n):bl=0,qi(),null}function bu(){if(Ao!==null){var n=Xs(Fc),r=Rr.transition,s=Zt;try{if(Rr.transition=null,Zt=16>n?16:n,Ao===null)var d=!1;else{if(n=Ao,Ao=null,Fc=0,Yt&6)throw Error(l(331));var m=Yt;for(Yt|=4,je=n.current;je!==null;){var S=je,T=S.child;if(je.flags&16){var D=S.deletions;if(D!==null){for(var U=0;U<D.length;U++){var ee=D[U];for(je=ee;je!==null;){var ge=je;switch(ge.tag){case 0:case 11:case 15:Dc(8,ge,S)}var Se=ge.child;if(Se!==null)Se.return=ge,je=Se;else for(;je!==null;){ge=je;var me=ge.sibling,Ue=ge.return;if(bd(ge),ge===ee){je=null;break}if(me!==null){me.return=Ue,je=me;break}je=Ue}}}var Ye=S.alternate;if(Ye!==null){var Ze=Ye.child;if(Ze!==null){Ye.child=null;do{var Gn=Ze.sibling;Ze.sibling=null,Ze=Gn}while(Ze!==null)}}je=S}}if(S.subtreeFlags&2064&&T!==null)T.return=S,je=T;else e:for(;je!==null;){if(S=je,S.flags&2048)switch(S.tag){case 0:case 11:case 15:Dc(9,S,S.return)}var Y=S.sibling;if(Y!==null){Y.return=S.return,je=Y;break e}je=S.return}}var j=n.current;for(je=j;je!==null;){T=je;var K=T.child;if(T.subtreeFlags&2064&&K!==null)K.return=T,je=K;else e:for(T=j;je!==null;){if(D=je,D.flags&2048)try{switch(D.tag){case 0:case 11:case 15:Lc(9,D)}}catch(We){An(D,D.return,We)}if(D===T){je=null;break e}var ye=D.sibling;if(ye!==null){ye.return=D.return,je=ye;break e}je=D.return}}if(Yt=m,qi(),da&&typeof da.onPostCommitFiberRoot=="function")try{da.onPostCommitFiberRoot(Jo,n)}catch{}d=!0}return d}finally{Zt=s,Rr.transition=r}}return!1}function lg(n,r,s){r=hs(s,r),r=Hm(n,r,1),n=vl(n,r,1),r=tr(),n!==null&&(go(n,1,r),Ca(n,r))}function An(n,r,s){if(n.tag===3)lg(n,n,s);else for(;r!==null;){if(r.tag===3){lg(r,n,s);break}else if(r.tag===1){var d=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(wl===null||!wl.has(d))){n=hs(s,n),n=dh(r,n,1),r=vl(r,n,1),n=tr(),r!==null&&(go(r,1,n),Ca(r,n));break}}r=r.return}}function X0(n,r,s){var d=n.pingCache;d!==null&&d.delete(r),r=tr(),n.pingedLanes|=n.suspendedLanes&s,cr===n&&(Mr&s)===s&&($n===4||$n===3&&(Mr&130023424)===Mr&&500>_t()-xh?Oo(n,0):xd|=s),Ca(n,r)}function sg(n,r){r===0&&(n.mode&1?(r=Na,Na<<=1,!(Na&130023424)&&(Na=4194304)):r=1);var s=tr();n=Pa(n,r),n!==null&&(go(n,r,s),Ca(n,s))}function K0(n){var r=n.memoizedState,s=0;r!==null&&(s=r.retryLane),sg(n,s)}function ug(n,r){var s=0;switch(n.tag){case 13:var d=n.stateNode,m=n.memoizedState;m!==null&&(s=m.retryLane);break;case 19:d=n.stateNode;break;default:throw Error(l(314))}d!==null&&d.delete(r),sg(n,s)}var cg;cg=function(n,r,s){if(n!==null)if(n.memoizedProps!==r.pendingProps||sr.current)Zn=!0;else{if(!(n.lanes&s)&&!(r.flags&128))return Zn=!1,Ac(n,r,s);Zn=!!(n.flags&131072)}else Zn=!1,kn&&r.flags&1048576&&Dm(r,To,r.index);switch(r.lanes=0,r.tag){case 2:var d=r.type;ri(n,r),n=r.pendingProps;var m=va(r,zn.current);Ln(r,s),m=ml(null,r,d,n,m,s);var S=Ai();return r.flags|=1,typeof m=="object"&&m!==null&&typeof m.render=="function"&&m.$$typeof===void 0?(r.tag=1,r.memoizedState=null,r.updateQueue=null,Kn(d)?(S=!0,hr(r)):S=!1,r.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,ah(r),m.updater=hd,r.stateNode=m,m._reactInternals=r,Tc(r,d,n,s),r=_c(null,r,d,!0,S,s)):(r.tag=0,kn&&S&&$f(r),Tr(null,r,m,s),r=r.child),r;case 16:d=r.elementType;e:{switch(ri(n,r),n=r.pendingProps,m=d._init,d=m(d._payload),r.type=d,m=r.tag=q0(d),n=Oi(d,n),m){case 0:r=$m(null,r,d,n,s);break e;case 1:r=Gm(null,r,d,n,s);break e;case 11:r=wa(null,r,d,n,s);break e;case 14:r=vs(null,r,d,Oi(d.type,n),s);break e}throw Error(l(306,d,""))}return r;case 0:return d=r.type,m=r.pendingProps,m=r.elementType===d?m:Oi(d,m),$m(n,r,d,m,s);case 1:return d=r.type,m=r.pendingProps,m=r.elementType===d?m:Oi(d,m),Gm(n,r,d,m,s);case 3:e:{if(hu(r),n===null)throw Error(l(387));d=r.pendingProps,S=r.memoizedState,m=S.element,Im(n,r),pc(r,d,null,s);var T=r.memoizedState;if(d=T.element,S.isDehydrated)if(S={element:d,isDehydrated:!1,cache:T.cache,pendingSuspenseBoundaries:T.pendingSuspenseBoundaries,transitions:T.transitions},r.updateQueue.baseState=S,r.memoizedState=S,r.flags&256){m=hs(Error(l(423)),r),r=Ym(n,r,d,s,m);break e}else if(d!==m){m=hs(Error(l(424)),r),r=Ym(n,r,d,s,m);break e}else for(ga=Xi(r.stateNode.containerInfo.firstChild),ma=r,kn=!0,ti=null,s=De(r,null,d,s),r.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(hl(),d===m){r=ai(n,r,s);break e}Tr(n,r,d,s)}r=r.child}return r;case 5:return zm(r),n===null&&qp(r),d=r.type,m=r.pendingProps,S=n!==null?n.memoizedProps:null,T=m.children,Ff(d,m)?T=null:S!==null&&Ff(d,S)&&(r.flags|=32),hh(n,r),Tr(n,r,T,s),r.child;case 6:return n===null&&qp(r),null;case 13:return yd(n,r,s);case 4:return oh(r,r.stateNode.containerInfo),d=r.pendingProps,n===null?r.child=Bn(r,null,d,s):Tr(n,r,d,s),r.child;case 11:return d=r.type,m=r.pendingProps,m=r.elementType===d?m:Oi(d,m),wa(n,r,d,m,s);case 7:return Tr(n,r,r.pendingProps,s),r.child;case 8:return Tr(n,r,r.pendingProps.children,s),r.child;case 12:return Tr(n,r,r.pendingProps.children,s),r.child;case 10:e:{if(d=r.type._context,m=r.pendingProps,S=r.memoizedProps,T=m.value,nt(La,d._currentValue),d._currentValue=T,S!==null)if(_i(S.value,T)){if(S.children===m.children&&!sr.current){r=ai(n,r,s);break e}}else for(S=r.child,S!==null&&(S.return=r);S!==null;){var D=S.dependencies;if(D!==null){T=S.child;for(var U=D.firstContext;U!==null;){if(U.context===d){if(S.tag===1){U=Mo(-1,s&-s),U.tag=2;var ee=S.updateQueue;if(ee!==null){ee=ee.shared;var ge=ee.pending;ge===null?U.next=U:(U.next=ge.next,ge.next=U),ee.pending=U}}S.lanes|=s,U=S.alternate,U!==null&&(U.lanes|=s),th(S.return,s,r),D.lanes|=s;break}U=U.next}}else if(S.tag===10)T=S.type===r.type?null:S.child;else if(S.tag===18){if(T=S.return,T===null)throw Error(l(341));T.lanes|=s,D=T.alternate,D!==null&&(D.lanes|=s),th(T,s,r),T=S.sibling}else T=S.child;if(T!==null)T.return=S;else for(T=S;T!==null;){if(T===r){T=null;break}if(S=T.sibling,S!==null){S.return=T.return,T=S;break}T=T.return}S=T}Tr(n,r,m.children,s),r=r.child}return r;case 9:return m=r.type,d=r.pendingProps.children,Ln(r,s),m=ni(m),d=d(m),r.flags|=1,Tr(n,r,d,s),r.child;case 14:return d=r.type,m=Oi(d,r.pendingProps),m=Oi(d.type,m),vs(n,r,d,m,s);case 15:return kt(n,r,r.type,r.pendingProps,s);case 17:return d=r.type,m=r.pendingProps,m=r.elementType===d?m:Oi(d,m),ri(n,r),r.tag=1,Kn(d)?(n=!0,hr(r)):n=!1,Ln(r,s),vd(r,d,m),Tc(r,d,m,s),_c(null,r,d,!0,n,s);case 19:return to(n,r,s);case 22:return Mc(n,r,s)}throw Error(l(156,r.tag))};function fg(n,r){return Tn(n,r)}function Q0(n,r,s,d){this.tag=n,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function oi(n,r,s,d){return new Q0(n,r,s,d)}function Mh(n){return n=n.prototype,!(!n||!n.isReactComponent)}function q0(n){if(typeof n=="function")return Mh(n)?1:0;if(n!=null){if(n=n.$$typeof,n===lt)return 11;if(n===st)return 14}return 2}function xl(n,r){var s=n.alternate;return s===null?(s=oi(n.tag,r,n.key,n.mode),s.elementType=n.elementType,s.type=n.type,s.stateNode=n.stateNode,s.alternate=n,n.alternate=s):(s.pendingProps=r,s.type=n.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=n.flags&14680064,s.childLanes=n.childLanes,s.lanes=n.lanes,s.child=n.child,s.memoizedProps=n.memoizedProps,s.memoizedState=n.memoizedState,s.updateQueue=n.updateQueue,r=n.dependencies,s.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},s.sibling=n.sibling,s.index=n.index,s.ref=n.ref,s}function Hc(n,r,s,d,m,S){var T=2;if(d=n,typeof n=="function")Mh(n)&&(T=1);else if(typeof n=="string")T=5;else e:switch(n){case ve:return No(s.children,m,S,r);case xe:T=8,m|=8;break;case tt:return n=oi(12,s,r,m|2),n.elementType=tt,n.lanes=S,n;case Ae:return n=oi(13,s,r,m),n.elementType=Ae,n.lanes=S,n;case rt:return n=oi(19,s,r,m),n.elementType=rt,n.lanes=S,n;case Te:return Cl(s,m,S,r);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case dt:T=10;break e;case Rt:T=9;break e;case lt:T=11;break e;case st:T=14;break e;case qe:T=16,d=null;break e}throw Error(l(130,n==null?n:typeof n,""))}return r=oi(T,s,r,m),r.elementType=n,r.type=d,r.lanes=S,r}function No(n,r,s,d){return n=oi(7,n,d,r),n.lanes=s,n}function Cl(n,r,s,d){return n=oi(22,n,d,r),n.elementType=Te,n.lanes=s,n.stateNode={isHidden:!1},n}function _h(n,r,s){return n=oi(6,n,null,r),n.lanes=s,n}function Rd(n,r,s){return r=oi(4,n.children!==null?n.children:[],n.key,r),r.lanes=s,r.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},r}function dg(n,r,s,d,m){this.tag=r,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ws(0),this.expirationTimes=Ws(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ws(0),this.identifierPrefix=d,this.onRecoverableError=m,this.mutableSourceEagerHydrationData=null}function Md(n,r,s,d,m,S,T,D,U){return n=new dg(n,r,s,D,U),r===1?(r=1,S===!0&&(r|=8)):r=0,S=oi(3,null,null,r),n.current=S,S.stateNode=n,S.memoizedState={element:d,isDehydrated:s,cache:null,transitions:null,pendingSuspenseBoundaries:null},ah(S),n}function Z0(n,r,s){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Re,key:d==null?null:""+d,children:n,containerInfo:r,implementation:s}}function kh(n){if(!n)return jr;n=n._reactInternals;e:{if(Mt(n)!==n||n.tag!==1)throw Error(l(170));var r=n;do{switch(r.tag){case 3:r=r.stateNode.context;break e;case 1:if(Kn(r.type)){r=r.stateNode.__reactInternalMemoizedMergedChildContext;break e}}r=r.return}while(r!==null);throw Error(l(171))}if(n.tag===1){var s=n.type;if(Kn(s))return fc(n,s,r)}return r}function pg(n,r,s,d,m,S,T,D,U){return n=Md(s,d,!0,n,m,S,T,D,U),n.context=kh(null),s=n.current,d=tr(),m=io(s),S=Mo(d,m),S.callback=r??null,vl(s,S,m),n.current.lanes=m,go(n,m,d),Ca(n,d),n}function _d(n,r,s,d){var m=r.current,S=tr(),T=io(m);return s=kh(s),r.context===null?r.context=s:r.pendingContext=s,r=Mo(S,T),r.payload={element:n},d=d===void 0?null:d,d!==null&&(r.callback=d),n=vl(m,r,T),n!==null&&(Zr(n,m,T,S),Xf(n,m,T)),T}function kd(n){if(n=n.current,!n.child)return null;switch(n.child.tag){case 5:return n.child.stateNode;default:return n.child.stateNode}}function Ah(n,r){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var s=n.retryLane;n.retryLane=s!==0&&s<r?s:r}}function Ad(n,r){Ah(n,r),(n=n.alternate)&&Ah(n,r)}function hg(){return null}var bs=typeof reportError=="function"?reportError:function(n){console.error(n)};function Oh(n){this._internalRoot=n}Od.prototype.render=Oh.prototype.render=function(n){var r=this._internalRoot;if(r===null)throw Error(l(409));_d(n,r,null,null)},Od.prototype.unmount=Oh.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var r=n.containerInfo;Ss(function(){_d(null,n,null,null)}),r[Co]=null}};function Od(n){this._internalRoot=n}Od.prototype.unstable_scheduleHydration=function(n){if(n){var r=bt();n={blockedOn:null,target:n,priority:r};for(var s=0;s<lr.length&&r!==0&&r<lr[s].priority;s++);lr.splice(s,0,n),s===0&&qu(n)}};function Nh(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function Nd(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11&&(n.nodeType!==8||n.nodeValue!==" react-mount-point-unstable "))}function vg(){}function J0(n,r,s,d,m){if(m){if(typeof d=="function"){var S=d;d=function(){var ee=kd(T);S.call(ee)}}var T=pg(r,d,n,0,null,!1,!1,"",vg);return n._reactRootContainer=T,n[Co]=T.current,au(n.nodeType===8?n.parentNode:n),Ss(),T}for(;m=n.lastChild;)n.removeChild(m);if(typeof d=="function"){var D=d;d=function(){var ee=kd(U);D.call(ee)}}var U=Md(n,0,!1,null,null,!1,!1,"",vg);return n._reactRootContainer=U,n[Co]=U.current,au(n.nodeType===8?n.parentNode:n),Ss(function(){_d(r,U,s,d)}),U}function Vc(n,r,s,d,m){var S=s._reactRootContainer;if(S){var T=S;if(typeof m=="function"){var D=m;m=function(){var U=kd(T);D.call(U)}}_d(r,T,n,m)}else T=J0(s,r,n,m,d);return kd(T)}Kt=function(n){switch(n.tag){case 3:var r=n.stateNode;if(r.current.memoizedState.isDehydrated){var s=Ei(r.pendingLanes);s!==0&&(yo(r,s|1),Ca(r,_t()),!(Yt&6)&&(yu=_t()+500,qi()))}break;case 13:Ss(function(){var d=Pa(n,1);if(d!==null){var m=tr();Zr(d,n,1,m)}}),Ad(n,1)}},Ku=function(n){if(n.tag===13){var r=Pa(n,134217728);if(r!==null){var s=tr();Zr(r,n,134217728,s)}Ad(n,134217728)}},Vi=function(n){if(n.tag===13){var r=io(n),s=Pa(n,r);if(s!==null){var d=tr();Zr(s,n,r,d)}Ad(n,r)}},bt=function(){return Zt},Ks=function(n,r){var s=Zt;try{return Zt=n,r()}finally{Zt=s}},un=function(n,r,s){switch(r){case"input":if(fa(n,s),r=s.name,s.type==="radio"&&r!=null){for(s=n;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll("input[name="+JSON.stringify(""+r)+'][type="radio"]'),r=0;r<s.length;r++){var d=s[r];if(d!==n&&d.form===n.form){var m=Dn(d);if(!m)throw Error(l(90));Un(d),fa(d,m)}}}break;case"textarea":yi(n,s);break;case"select":r=s.value,r!=null&&Fn(n,!!s.multiple,r,!1)}},Bl=Eh,Qo=Ss;var eS={usingClientEntryPoint:!1,Events:[at,ki,Dn,mo,jl,Eh]},$c={findFiberByHostInstance:ts,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},mg={bundleType:$c.bundleType,version:$c.version,rendererPackageName:$c.rendererPackageName,rendererConfig:$c.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:fe.ReactCurrentDispatcher,findHostInstanceByFiber:function(n){return n=jn(n),n===null?null:n.stateNode},findFiberByHostInstance:$c.findFiberByHostInstance||hg,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var El=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!El.isDisabled&&El.supportsFiber)try{Jo=El.inject(mg),da=El}catch{}}return $a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eS,$a.createPortal=function(n,r){var s=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Nh(r))throw Error(l(200));return Z0(n,r,null,s)},$a.createRoot=function(n,r){if(!Nh(n))throw Error(l(299));var s=!1,d="",m=bs;return r!=null&&(r.unstable_strictMode===!0&&(s=!0),r.identifierPrefix!==void 0&&(d=r.identifierPrefix),r.onRecoverableError!==void 0&&(m=r.onRecoverableError)),r=Md(n,1,!1,null,null,s,!1,d,m),n[Co]=r.current,au(n.nodeType===8?n.parentNode:n),new Oh(r)},$a.findDOMNode=function(n){if(n==null)return null;if(n.nodeType===1)return n;var r=n._reactInternals;if(r===void 0)throw typeof n.render=="function"?Error(l(188)):(n=Object.keys(n).join(","),Error(l(268,n)));return n=jn(r),n=n===null?null:n.stateNode,n},$a.flushSync=function(n){return Ss(n)},$a.hydrate=function(n,r,s){if(!Nd(r))throw Error(l(200));return Vc(null,n,r,!0,s)},$a.hydrateRoot=function(n,r,s){if(!Nh(n))throw Error(l(405));var d=s!=null&&s.hydratedSources||null,m=!1,S="",T=bs;if(s!=null&&(s.unstable_strictMode===!0&&(m=!0),s.identifierPrefix!==void 0&&(S=s.identifierPrefix),s.onRecoverableError!==void 0&&(T=s.onRecoverableError)),r=pg(r,null,n,1,s??null,m,!1,S,T),n[Co]=r.current,au(n),d)for(n=0;n<d.length;n++)s=d[n],m=s._getVersion,m=m(s._source),r.mutableSourceEagerHydrationData==null?r.mutableSourceEagerHydrationData=[s,m]:r.mutableSourceEagerHydrationData.push(s,m);return new Od(r)},$a.render=function(n,r,s){if(!Nd(r))throw Error(l(200));return Vc(null,n,r,!1,s)},$a.unmountComponentAtNode=function(n){if(!Nd(n))throw Error(l(40));return n._reactRootContainer?(Ss(function(){Vc(null,null,n,!1,function(){n._reactRootContainer=null,n[Co]=null})}),!0):!1},$a.unstable_batchedUpdates=Eh,$a.unstable_renderSubtreeIntoContainer=function(n,r,s,d){if(!Nd(s))throw Error(l(200));if(n==null||n._reactInternals===void 0)throw Error(l(38));return Vc(n,r,s,!1,d)},$a.version="18.3.1-next-f1338f8080-20240426",$a}var Ga={};/**
|
|
100
|
+
* @license React
|
|
101
|
+
* react-dom.development.js
|
|
102
|
+
*
|
|
103
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
104
|
+
*
|
|
105
|
+
* This source code is licensed under the MIT license found in the
|
|
106
|
+
* LICENSE file in the root directory of this source tree.
|
|
107
|
+
*/var tx;function AR(){return tx||(tx=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var c=fp(),a=Jb(),l=c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,f=!1;function h(e){f=e}function y(e){if(!f){for(var t=arguments.length,i=new Array(t>1?t-1:0),o=1;o<t;o++)i[o-1]=arguments[o];C("warn",e,i)}}function v(e){if(!f){for(var t=arguments.length,i=new Array(t>1?t-1:0),o=1;o<t;o++)i[o-1]=arguments[o];C("error",e,i)}}function C(e,t,i){{var o=l.ReactDebugCurrentFrame,u=o.getStackAddendum();u!==""&&(t+="%s",i=i.concat([u]));var p=i.map(function(g){return String(g)});p.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,p)}}var x=0,R=1,A=2,_=3,k=4,N=5,z=6,G=7,J=8,de=9,ue=10,ce=11,fe=12,le=13,Re=14,ve=15,xe=16,tt=17,dt=18,Rt=19,lt=21,Ae=22,rt=23,st=24,qe=25,Te=!0,$=!1,_e=!1,Ce=!1,V=!1,oe=!0,Be=!0,He=!0,yt=!0,xt=new Set,Ve={},St={};function wt(e,t){$t(e,t),$t(e+"Capture",t)}function $t(e,t){Ve[e]&&v("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),Ve[e]=t;{var i=e.toLowerCase();St[i]=e,e==="onDoubleClick"&&(St.ondblclick=e)}for(var o=0;o<t.length;o++)xt.add(t[o])}var gn=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Un=Object.prototype.hasOwnProperty;function yn(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,i=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return i}}function wr(e){try{return ar(e),!1}catch{return!0}}function ar(e){return""+e}function ir(e,t){if(wr(e))return v("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",t,yn(e)),ar(e)}function fa(e){if(wr(e))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",yn(e)),ar(e)}function zi(e,t){if(wr(e))return v("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",t,yn(e)),ar(e)}function ka(e,t){if(wr(e))return v("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",t,yn(e)),ar(e)}function dr(e){if(wr(e))return v("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",yn(e)),ar(e)}function Fn(e){if(wr(e))return v("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before before using it here.",yn(e)),ar(e)}var or=0,Ur=1,yi=2,Wn=3,zr=4,Aa=5,Si=6,Fi=":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",Me=Fi+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Je=new RegExp("^["+Fi+"]["+Me+"]*$"),Ot={},an={};function Sn(e){return Un.call(an,e)?!0:Un.call(Ot,e)?!1:Je.test(e)?(an[e]=!0,!0):(Ot[e]=!0,v("Invalid attribute name: `%s`",e),!1)}function On(e,t,i){return t!==null?t.type===or:i?!1:e.length>2&&(e[0]==="o"||e[0]==="O")&&(e[1]==="n"||e[1]==="N")}function En(e,t,i,o){if(i!==null&&i.type===or)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":{if(o)return!1;if(i!==null)return!i.acceptsBooleans;var u=e.toLowerCase().slice(0,5);return u!=="data-"&&u!=="aria-"}default:return!1}}function pr(e,t,i,o){if(t===null||typeof t>"u"||En(e,t,i,o))return!0;if(o)return!1;if(i!==null)switch(i.type){case Wn:return!t;case zr:return t===!1;case Aa:return isNaN(t);case Si:return isNaN(t)||t<1}return!1}function wn(e){return un.hasOwnProperty(e)?un[e]:null}function sn(e,t,i,o,u,p,g){this.acceptsBooleans=t===yi||t===Wn||t===zr,this.attributeName=o,this.attributeNamespace=u,this.mustUseProperty=i,this.propertyName=e,this.type=t,this.sanitizeURL=p,this.removeEmptyString=g}var un={},Oa=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];Oa.forEach(function(e){un[e]=new sn(e,or,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0],i=e[1];un[t]=new sn(t,Ur,!1,i,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){un[e]=new sn(e,yi,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){un[e]=new sn(e,yi,!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"].forEach(function(e){un[e]=new sn(e,Wn,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){un[e]=new sn(e,Wn,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){un[e]=new sn(e,zr,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){un[e]=new sn(e,Si,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){un[e]=new sn(e,Aa,!1,e.toLowerCase(),null,!1,!1)});var Fr=/[\-\:]([a-z])/g,Wa=function(e){return e[1].toUpperCase()};["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"].forEach(function(e){var t=e.replace(Fr,Wa);un[t]=new sn(t,Ur,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(e){var t=e.replace(Fr,Wa);un[t]=new sn(t,Ur,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Fr,Wa);un[t]=new sn(t,Ur,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){un[e]=new sn(e,Ur,!1,e.toLowerCase(),null,!1,!1)});var mo="xlinkHref";un[mo]=new sn("xlinkHref",Ur,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){un[e]=new sn(e,Ur,!1,e.toLowerCase(),null,!0,!0)});var jl=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,Bl=!1;function Qo(e){!Bl&&jl.test(e)&&(Bl=!0,v("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(e)))}function qo(e,t,i,o){if(o.mustUseProperty){var u=o.propertyName;return e[u]}else{ir(i,t),o.sanitizeURL&&Qo(""+i);var p=o.attributeName,g=null;if(o.type===zr){if(e.hasAttribute(p)){var w=e.getAttribute(p);return w===""?!0:pr(t,i,o,!1)?w:w===""+i?i:w}}else if(e.hasAttribute(p)){if(pr(t,i,o,!1))return e.getAttribute(p);if(o.type===Wn)return i;g=e.getAttribute(p)}return pr(t,i,o,!1)?g===null?i:g:g===""+i?i:g}}function Hl(e,t,i,o){{if(!Sn(t))return;if(!e.hasAttribute(t))return i===void 0?void 0:null;var u=e.getAttribute(t);return ir(i,t),u===""+i?i:u}}function $r(e,t,i,o){var u=wn(t);if(!On(t,u,o)){if(pr(t,i,u,o)&&(i=null),o||u===null){if(Sn(t)){var p=t;i===null?e.removeAttribute(p):(ir(i,t),e.setAttribute(p,""+i))}return}var g=u.mustUseProperty;if(g){var w=u.propertyName;if(i===null){var b=u.type;e[w]=b===Wn?!1:""}else e[w]=i;return}var M=u.attributeName,O=u.attributeNamespace;if(i===null)e.removeAttribute(M);else{var B=u.type,F;B===Wn||B===zr&&i===!0?F="":(ir(i,M),F=""+i,u.sanitizeURL&&Qo(F.toString())),O?e.setAttributeNS(O,M,F):e.setAttribute(M,F)}}}var Gr=Symbol.for("react.element"),br=Symbol.for("react.portal"),ji=Symbol.for("react.fragment"),wi=Symbol.for("react.strict_mode"),Bi=Symbol.for("react.profiler"),Hi=Symbol.for("react.provider"),P=Symbol.for("react.context"),pe=Symbol.for("react.forward_ref"),Ne=Symbol.for("react.suspense"),$e=Symbol.for("react.suspense_list"),Mt=Symbol.for("react.memo"),Ct=Symbol.for("react.lazy"),Ut=Symbol.for("react.scope"),Dt=Symbol.for("react.debug_trace_mode"),jn=Symbol.for("react.offscreen"),bn=Symbol.for("react.legacy_hidden"),Tn=Symbol.for("react.cache"),xr=Symbol.for("react.tracing_marker"),bi=Symbol.iterator,xi="@@iterator";function _t(e){if(e===null||typeof e!="object")return null;var t=bi&&e[bi]||e[xi];return typeof t=="function"?t:null}var At=Object.assign,Ci=0,Vl,$l,Zo,Vs,Jo,da,Xu;function Yr(){}Yr.__reactDisabledLog=!0;function Ef(){{if(Ci===0){Vl=console.log,$l=console.info,Zo=console.warn,Vs=console.error,Jo=console.group,da=console.groupCollapsed,Xu=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Yr,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Ci++}}function Tf(){{if(Ci--,Ci===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:At({},e,{value:Vl}),info:At({},e,{value:$l}),warn:At({},e,{value:Zo}),error:At({},e,{value:Vs}),group:At({},e,{value:Jo}),groupCollapsed:At({},e,{value:da}),groupEnd:At({},e,{value:Xu})})}Ci<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var $s=l.ReactCurrentDispatcher,el;function Na(e,t,i){{if(el===void 0)try{throw Error()}catch(u){var o=u.stack.trim().match(/\n( *(at )?)/);el=o&&o[1]||""}return`
|
|
108
|
+
`+el+e}}var Ei=!1,Ti;{var Gs=typeof WeakMap=="function"?WeakMap:Map;Ti=new Gs}function Gl(e,t){if(!e||Ei)return"";{var i=Ti.get(e);if(i!==void 0)return i}var o;Ei=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var p;p=$s.current,$s.current=null,Ef();try{if(t){var g=function(){throw Error()};if(Object.defineProperty(g.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(g,[])}catch(te){o=te}Reflect.construct(e,[],g)}else{try{g.call()}catch(te){o=te}e.call(g.prototype)}}else{try{throw Error()}catch(te){o=te}e()}}catch(te){if(te&&o&&typeof te.stack=="string"){for(var w=te.stack.split(`
|
|
109
|
+
`),b=o.stack.split(`
|
|
110
|
+
`),M=w.length-1,O=b.length-1;M>=1&&O>=0&&w[M]!==b[O];)O--;for(;M>=1&&O>=0;M--,O--)if(w[M]!==b[O]){if(M!==1||O!==1)do if(M--,O--,O<0||w[M]!==b[O]){var B=`
|
|
111
|
+
`+w[M].replace(" at new "," at ");return e.displayName&&B.includes("<anonymous>")&&(B=B.replace("<anonymous>",e.displayName)),typeof e=="function"&&Ti.set(e,B),B}while(M>=1&&O>=0);break}}}finally{Ei=!1,$s.current=p,Tf(),Error.prepareStackTrace=u}var F=e?e.displayName||e.name:"",q=F?Na(F):"";return typeof e=="function"&&Ti.set(e,q),q}function tl(e,t,i){return Gl(e,!0)}function Ys(e,t,i){return Gl(e,!1)}function Ws(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function go(e,t,i){if(e==null)return"";if(typeof e=="function")return Gl(e,Ws(e));if(typeof e=="string")return Na(e);switch(e){case Ne:return Na("Suspense");case $e:return Na("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case pe:return Ys(e.render);case Mt:return go(e.type,t,i);case Ct:{var o=e,u=o._payload,p=o._init;try{return go(p(u),t,i)}catch{}}}return""}function Mp(e){switch(e._debugOwner&&e._debugOwner.type,e._debugSource,e.tag){case N:return Na(e.type);case xe:return Na("Lazy");case le:return Na("Suspense");case Rt:return Na("SuspenseList");case x:case A:case ve:return Ys(e.type);case ce:return Ys(e.type.render);case R:return tl(e.type);default:return""}}function yo(e){try{var t="",i=e;do t+=Mp(i),i=i.return;while(i);return t}catch(o){return`
|
|
112
|
+
Error generating stack: `+o.message+`
|
|
113
|
+
`+o.stack}}function Zt(e,t,i){var o=e.displayName;if(o)return o;var u=t.displayName||t.name||"";return u!==""?i+"("+u+")":i}function Xs(e){return e.displayName||"Context"}function Kt(e){if(e==null)return null;if(typeof e.tag=="number"&&v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ji:return"Fragment";case br:return"Portal";case Bi:return"Profiler";case wi:return"StrictMode";case Ne:return"Suspense";case $e:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case P:var t=e;return Xs(t)+".Consumer";case Hi:var i=e;return Xs(i._context)+".Provider";case pe:return Zt(e,e.render,"ForwardRef");case Mt:var o=e.displayName||null;return o!==null?o:Kt(e.type)||"Memo";case Ct:{var u=e,p=u._payload,g=u._init;try{return Kt(g(p))}catch{return null}}}return null}function Ku(e,t,i){var o=t.displayName||t.name||"";return e.displayName||(o!==""?i+"("+o+")":i)}function Vi(e){return e.displayName||"Context"}function bt(e){var t=e.tag,i=e.type;switch(t){case st:return"Cache";case de:var o=i;return Vi(o)+".Consumer";case ue:var u=i;return Vi(u._context)+".Provider";case dt:return"DehydratedFragment";case ce:return Ku(i,i.render,"ForwardRef");case G:return"Fragment";case N:return i;case k:return"Portal";case _:return"Root";case z:return"Text";case xe:return Kt(i);case J:return i===wi?"StrictMode":"Mode";case Ae:return"Offscreen";case fe:return"Profiler";case lt:return"Scope";case le:return"Suspense";case Rt:return"SuspenseList";case qe:return"TracingMarker";case R:case x:case tt:case A:case Re:case ve:if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;break}return null}var Ks=l.ReactDebugCurrentFrame,Cr=null,$i=!1;function Wr(){{if(Cr===null)return null;var e=Cr._debugOwner;if(e!==null&&typeof e<"u")return bt(e)}return null}function Gi(){return Cr===null?"":yo(Cr)}function Rn(){Ks.getCurrentStack=null,Cr=null,$i=!1}function cn(e){Ks.getCurrentStack=e===null?null:Gi,Cr=e,$i=!1}function nl(){return Cr}function lr(e){$i=e}function Xr(e){return""+e}function Xa(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return Fn(e),e;default:return""}}var Yl={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function Qu(e,t){Yl[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||v("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),t.onChange||t.readOnly||t.disabled||t.checked==null||v("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function qu(e){var t=e.type,i=e.nodeName;return i&&i.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function rl(e){return e._valueTracker}function Wl(e){e._valueTracker=null}function _p(e){var t="";return e&&(qu(e)?t=e.checked?"true":"false":t=e.value),t}function Ka(e){var t=qu(e)?"checked":"value",i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);Fn(e[t]);var o=""+e[t];if(!(e.hasOwnProperty(t)||typeof i>"u"||typeof i.get!="function"||typeof i.set!="function")){var u=i.get,p=i.set;Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(w){Fn(w),o=""+w,p.call(this,w)}}),Object.defineProperty(e,t,{enumerable:i.enumerable});var g={getValue:function(){return o},setValue:function(w){Fn(w),o=""+w},stopTracking:function(){Wl(e),delete e[t]}};return g}}function Ri(e){rl(e)||(e._valueTracker=Ka(e))}function Yi(e){if(!e)return!1;var t=rl(e);if(!t)return!0;var i=t.getValue(),o=_p(e);return o!==i?(t.setValue(o),!0):!1}function Qa(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Qs=!1,qs=!1,al=!1,Xl=!1;function Zs(e){var t=e.type==="checkbox"||e.type==="radio";return t?e.checked!=null:e.value!=null}function Js(e,t){var i=e,o=t.checked,u=At({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:o??i._wrapperState.initialChecked});return u}function Mi(e,t){Qu("input",t),t.checked!==void 0&&t.defaultChecked!==void 0&&!qs&&(v("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",Wr()||"A component",t.type),qs=!0),t.value!==void 0&&t.defaultValue!==void 0&&!Qs&&(v("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",Wr()||"A component",t.type),Qs=!0);var i=e,o=t.defaultValue==null?"":t.defaultValue;i._wrapperState={initialChecked:t.checked!=null?t.checked:t.defaultChecked,initialValue:Xa(t.value!=null?t.value:o),controlled:Zs(t)}}function E(e,t){var i=e,o=t.checked;o!=null&&$r(i,"checked",o,!1)}function L(e,t){var i=e;{var o=Zs(t);!i._wrapperState.controlled&&o&&!Xl&&(v("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),Xl=!0),i._wrapperState.controlled&&!o&&!al&&(v("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),al=!0)}E(e,t);var u=Xa(t.value),p=t.type;if(u!=null)p==="number"?(u===0&&i.value===""||i.value!=u)&&(i.value=Xr(u)):i.value!==Xr(u)&&(i.value=Xr(u));else if(p==="submit"||p==="reset"){i.removeAttribute("value");return}t.hasOwnProperty("value")?ut(i,t.type,u):t.hasOwnProperty("defaultValue")&&ut(i,t.type,Xa(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(i.defaultChecked=!!t.defaultChecked)}function Z(e,t,i){var o=e;if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var u=t.type,p=u==="submit"||u==="reset";if(p&&(t.value===void 0||t.value===null))return;var g=Xr(o._wrapperState.initialValue);i||g!==o.value&&(o.value=g),o.defaultValue=g}var w=o.name;w!==""&&(o.name=""),o.defaultChecked=!o.defaultChecked,o.defaultChecked=!!o._wrapperState.initialChecked,w!==""&&(o.name=w)}function re(e,t){var i=e;L(i,t),Ee(i,t)}function Ee(e,t){var i=t.name;if(t.type==="radio"&&i!=null){for(var o=e;o.parentNode;)o=o.parentNode;ir(i,"name");for(var u=o.querySelectorAll("input[name="+JSON.stringify(""+i)+'][type="radio"]'),p=0;p<u.length;p++){var g=u[p];if(!(g===e||g.form!==e.form)){var w=Lg(g);if(!w)throw new Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Yi(g),L(g,w)}}}}function ut(e,t,i){(t!=="number"||Qa(e.ownerDocument)!==e)&&(i==null?e.defaultValue=Xr(e._wrapperState.initialValue):e.defaultValue!==Xr(i)&&(e.defaultValue=Xr(i)))}var Oe=!1,pt=!1,zt=!1;function Qt(e,t){t.value==null&&(typeof t.children=="object"&&t.children!==null?c.Children.forEach(t.children,function(i){i!=null&&(typeof i=="string"||typeof i=="number"||pt||(pt=!0,v("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}):t.dangerouslySetInnerHTML!=null&&(zt||(zt=!0,v("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")))),t.selected!=null&&!Oe&&(v("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Oe=!0)}function xn(e,t){t.value!=null&&e.setAttribute("value",Xr(Xa(t.value)))}var fn=Array.isArray;function Nt(e){return fn(e)}var dn;dn=!1;function Nn(){var e=Wr();return e?`
|
|
114
|
+
|
|
115
|
+
Check the render method of \``+e+"`.":""}var il=["value","defaultValue"];function Zu(e){{Qu("select",e);for(var t=0;t<il.length;t++){var i=il[t];if(e[i]!=null){var o=Nt(e[i]);e.multiple&&!o?v("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",i,Nn()):!e.multiple&&o&&v("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",i,Nn())}}}}function So(e,t,i,o){var u=e.options;if(t){for(var p=i,g={},w=0;w<p.length;w++)g["$"+p[w]]=!0;for(var b=0;b<u.length;b++){var M=g.hasOwnProperty("$"+u[b].value);u[b].selected!==M&&(u[b].selected=M),M&&o&&(u[b].defaultSelected=!0)}}else{for(var O=Xr(Xa(i)),B=null,F=0;F<u.length;F++){if(u[F].value===O){u[F].selected=!0,o&&(u[F].defaultSelected=!0);return}B===null&&!u[F].disabled&&(B=u[F])}B!==null&&(B.selected=!0)}}function Ju(e,t){return At({},t,{value:void 0})}function Kl(e,t){var i=e;Zu(t),i._wrapperState={wasMultiple:!!t.multiple},t.value!==void 0&&t.defaultValue!==void 0&&!dn&&(v("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),dn=!0)}function kp(e,t){var i=e;i.multiple=!!t.multiple;var o=t.value;o!=null?So(i,!!t.multiple,o,!1):t.defaultValue!=null&&So(i,!!t.multiple,t.defaultValue,!0)}function Rf(e,t){var i=e,o=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!t.multiple;var u=t.value;u!=null?So(i,!!t.multiple,u,!1):o!==!!t.multiple&&(t.defaultValue!=null?So(i,!!t.multiple,t.defaultValue,!0):So(i,!!t.multiple,t.multiple?[]:"",!1))}function Ap(e,t){var i=e,o=t.value;o!=null&&So(i,!!t.multiple,o,!1)}var rm=!1;function Op(e,t){var i=e;if(t.dangerouslySetInnerHTML!=null)throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");var o=At({},t,{value:void 0,defaultValue:void 0,children:Xr(i._wrapperState.initialValue)});return o}function Np(e,t){var i=e;Qu("textarea",t),t.value!==void 0&&t.defaultValue!==void 0&&!rm&&(v("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components",Wr()||"A component"),rm=!0);var o=t.value;if(o==null){var u=t.children,p=t.defaultValue;if(u!=null){v("Use the `defaultValue` or `value` props instead of setting children on <textarea>.");{if(p!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Nt(u)){if(u.length>1)throw new Error("<textarea> can only have at most one child.");u=u[0]}p=u}}p==null&&(p=""),o=p}i._wrapperState={initialValue:Xa(o)}}function am(e,t){var i=e,o=Xa(t.value),u=Xa(t.defaultValue);if(o!=null){var p=Xr(o);p!==i.value&&(i.value=p),t.defaultValue==null&&i.defaultValue!==p&&(i.defaultValue=p)}u!=null&&(i.defaultValue=Xr(u))}function im(e,t){var i=e,o=i.textContent;o===i._wrapperState.initialValue&&o!==""&&o!==null&&(i.value=o)}function k0(e,t){am(e,t)}var wo="http://www.w3.org/1999/xhtml",Dp="http://www.w3.org/1998/Math/MathML",Lp="http://www.w3.org/2000/svg";function Pp(e){switch(e){case"svg":return Lp;case"math":return Dp;default:return wo}}function Ip(e,t){return e==null||e===wo?Pp(t):e===Lp&&t==="foreignObject"?wo:e}var om=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,i,o,u){MSApp.execUnsafeLocalFunction(function(){return e(t,i,o,u)})}:e},Mf,lm=om(function(e,t){if(e.namespaceURI===Lp&&!("innerHTML"in e)){Mf=Mf||document.createElement("div"),Mf.innerHTML="<svg>"+t.valueOf().toString()+"</svg>";for(var i=Mf.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;i.firstChild;)e.appendChild(i.firstChild);return}e.innerHTML=t}),pa=1,bo=3,Xn=8,xo=9,Up=11,eu=function(e,t){if(t){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===bo){i.nodeValue=t;return}}e.textContent=t},ec={animation:["animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction"],background:["backgroundAttachment","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize"],backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:["borderBottomColor","borderBottomStyle","borderBottomWidth","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRightColor","borderRightStyle","borderRightWidth","borderTopColor","borderTopStyle","borderTopWidth"],borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:["fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition","fontWeight","lineHeight"],fontVariant:["fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition"],gap:["columnGap","rowGap"],grid:["gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:["maskClip","maskComposite","maskImage","maskMode","maskOrigin","maskPositionX","maskPositionY","maskRepeat","maskSize"],maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},tc={animationIterationCount:!0,aspectRatio:!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};function sm(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}var um=["Webkit","ms","Moz","O"];Object.keys(tc).forEach(function(e){um.forEach(function(t){tc[sm(t,e)]=tc[e]})});function _f(e,t,i){var o=t==null||typeof t=="boolean"||t==="";return o?"":!i&&typeof t=="number"&&t!==0&&!(tc.hasOwnProperty(e)&&tc[e])?t+"px":(ka(t,e),(""+t).trim())}var cm=/([A-Z])/g,fm=/^ms-/;function tu(e){return e.replace(cm,"-$1").toLowerCase().replace(fm,"-ms-")}var dm=function(){};{var A0=/^(?:webkit|moz|o)[A-Z]/,O0=/^-ms-/,pm=/-(.)/g,zp=/;\s*$/,Wi={},Ql={},hm=!1,nc=!1,N0=function(e){return e.replace(pm,function(t,i){return i.toUpperCase()})},vm=function(e){Wi.hasOwnProperty(e)&&Wi[e]||(Wi[e]=!0,v("Unsupported style property %s. Did you mean %s?",e,N0(e.replace(O0,"ms-"))))},Fp=function(e){Wi.hasOwnProperty(e)&&Wi[e]||(Wi[e]=!0,v("Unsupported vendor-prefixed style property %s. Did you mean %s?",e,e.charAt(0).toUpperCase()+e.slice(1)))},jp=function(e,t){Ql.hasOwnProperty(t)&&Ql[t]||(Ql[t]=!0,v(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,e,t.replace(zp,"")))},mm=function(e,t){hm||(hm=!0,v("`NaN` is an invalid value for the `%s` css style property.",e))},gm=function(e,t){nc||(nc=!0,v("`Infinity` is an invalid value for the `%s` css style property.",e))};dm=function(e,t){e.indexOf("-")>-1?vm(e):A0.test(e)?Fp(e):zp.test(t)&&jp(e,t),typeof t=="number"&&(isNaN(t)?mm(e,t):isFinite(t)||gm(e,t))}}var ym=dm;function D0(e){{var t="",i="";for(var o in e)if(e.hasOwnProperty(o)){var u=e[o];if(u!=null){var p=o.indexOf("--")===0;t+=i+(p?o:tu(o))+":",t+=_f(o,u,p),i=";"}}return t||null}}function Sm(e,t){var i=e.style;for(var o in t)if(t.hasOwnProperty(o)){var u=o.indexOf("--")===0;u||ym(o,t[o]);var p=_f(o,t[o],u);o==="float"&&(o="cssFloat"),u?i.setProperty(o,p):i[o]=p}}function L0(e){return e==null||typeof e=="boolean"||e===""}function wm(e){var t={};for(var i in e)for(var o=ec[i]||[i],u=0;u<o.length;u++)t[o[u]]=i;return t}function P0(e,t){{if(!t)return;var i=wm(e),o=wm(t),u={};for(var p in i){var g=i[p],w=o[p];if(w&&g!==w){var b=g+","+w;if(u[b])continue;u[b]=!0,v("%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",L0(e[g])?"Removing":"Updating",g,w)}}}}var _i={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},rc=At({menuitem:!0},_i),bm="__html";function kf(e,t){if(t){if(rc[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw new Error(e+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof t.dangerouslySetInnerHTML!="object"||!(bm in t.dangerouslySetInnerHTML))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.")}if(!t.suppressContentEditableWarning&&t.contentEditable&&t.children!=null&&v("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),t.style!=null&&typeof t.style!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.")}}function ol(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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}}var ac={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},Af={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},nu={},I0=new RegExp("^(aria)-["+Me+"]*$"),ru=new RegExp("^(aria)[A-Z]["+Me+"]*$");function Bp(e,t){{if(Un.call(nu,t)&&nu[t])return!0;if(ru.test(t)){var i="aria-"+t.slice(4).toLowerCase(),o=Af.hasOwnProperty(i)?i:null;if(o==null)return v("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),nu[t]=!0,!0;if(t!==o)return v("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,o),nu[t]=!0,!0}if(I0.test(t)){var u=t.toLowerCase(),p=Af.hasOwnProperty(u)?u:null;if(p==null)return nu[t]=!0,!1;if(t!==p)return v("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,p),nu[t]=!0,!0}}return!0}function ic(e,t){{var i=[];for(var o in t){var u=Bp(e,o);u||i.push(o)}var p=i.map(function(g){return"`"+g+"`"}).join(", ");i.length===1?v("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",p,e):i.length>1&&v("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",p,e)}}function Hp(e,t){ol(e,t)||ic(e,t)}var Vp=!1;function Of(e,t){{if(e!=="input"&&e!=="textarea"&&e!=="select")return;t!=null&&t.value===null&&!Vp&&(Vp=!0,e==="select"&&t.multiple?v("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):v("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e))}}var ql=function(){};{var Er={},$p=/^on./,Nf=/^on[^A-Z]/,xm=new RegExp("^(aria)-["+Me+"]*$"),Cm=new RegExp("^(aria)[A-Z]["+Me+"]*$");ql=function(e,t,i,o){if(Un.call(Er,t)&&Er[t])return!0;var u=t.toLowerCase();if(u==="onfocusin"||u==="onfocusout")return v("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Er[t]=!0,!0;if(o!=null){var p=o.registrationNameDependencies,g=o.possibleRegistrationNames;if(p.hasOwnProperty(t))return!0;var w=g.hasOwnProperty(u)?g[u]:null;if(w!=null)return v("Invalid event handler property `%s`. Did you mean `%s`?",t,w),Er[t]=!0,!0;if($p.test(t))return v("Unknown event handler property `%s`. It will be ignored.",t),Er[t]=!0,!0}else if($p.test(t))return Nf.test(t)&&v("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),Er[t]=!0,!0;if(xm.test(t)||Cm.test(t))return!0;if(u==="innerhtml")return v("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Er[t]=!0,!0;if(u==="aria")return v("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Er[t]=!0,!0;if(u==="is"&&i!==null&&i!==void 0&&typeof i!="string")return v("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof i),Er[t]=!0,!0;if(typeof i=="number"&&isNaN(i))return v("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),Er[t]=!0,!0;var b=wn(t),M=b!==null&&b.type===or;if(ac.hasOwnProperty(u)){var O=ac[u];if(O!==t)return v("Invalid DOM property `%s`. Did you mean `%s`?",t,O),Er[t]=!0,!0}else if(!M&&t!==u)return v("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,u),Er[t]=!0,!0;return typeof i=="boolean"&&En(t,i,b,!1)?(i?v('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',i,t,t,i,t):v('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',i,t,t,i,t,t,t),Er[t]=!0,!0):M?!0:En(t,i,b,!1)?(Er[t]=!0,!1):((i==="false"||i==="true")&&b!==null&&b.type===Wn&&(v("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",i,t,i==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',t,i),Er[t]=!0),!0)}}var Em=function(e,t,i){{var o=[];for(var u in t){var p=ql(e,u,t[u],i);p||o.push(u)}var g=o.map(function(w){return"`"+w+"`"}).join(", ");o.length===1?v("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",g,e):o.length>1&&v("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",g,e)}};function Tm(e,t,i){ol(e,t)||Em(e,t,i)}var Gp=1,Df=2,qa=4,Yp=Gp|Df|qa,Zl=null;function U0(e){Zl!==null&&v("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),Zl=e}function z0(){Zl===null&&v("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),Zl=null}function oc(e){return e===Zl}function Wp(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===bo?t.parentNode:t}var Lf=null,Jl=null,on=null;function Pf(e){var t=Eu(e);if(t){if(typeof Lf!="function")throw new Error("setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.");var i=t.stateNode;if(i){var o=Lg(i);Lf(t.stateNode,t.type,o)}}}function If(e){Lf=e}function au(e){Jl?on?on.push(e):on=[e]:Jl=e}function Rm(){return Jl!==null||on!==null}function Uf(){if(Jl){var e=Jl,t=on;if(Jl=null,on=null,Pf(e),t)for(var i=0;i<t.length;i++)Pf(t[i])}}var iu=function(e,t){return e(t)},lc=function(){},ll=!1;function Mm(){var e=Rm();e&&(lc(),Uf())}function _m(e,t,i){if(ll)return e(t,i);ll=!0;try{return iu(e,t,i)}finally{ll=!1,Mm()}}function F0(e,t,i){iu=e,lc=i}function km(e){return e==="button"||e==="input"||e==="select"||e==="textarea"}function zf(e,t,i){switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":return!!(i.disabled&&km(t));default:return!1}}function sl(e,t){var i=e.stateNode;if(i===null)return null;var o=Lg(i);if(o===null)return null;var u=o[t];if(zf(t,e.type,o))return null;if(u&&typeof u!="function")throw new Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof u+"` type.");return u}var sc=!1;if(gn)try{var es={};Object.defineProperty(es,"passive",{get:function(){sc=!0}}),window.addEventListener("test",es,es),window.removeEventListener("test",es,es)}catch{sc=!1}function Ff(e,t,i,o,u,p,g,w,b){var M=Array.prototype.slice.call(arguments,3);try{t.apply(i,M)}catch(O){this.onError(O)}}var jf=Ff;if(typeof window<"u"&&typeof window.dispatchEvent=="function"&&typeof document<"u"&&typeof document.createEvent=="function"){var Xp=document.createElement("react");jf=function(t,i,o,u,p,g,w,b,M){if(typeof document>"u"||document===null)throw new Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");var O=document.createEvent("Event"),B=!1,F=!0,q=window.event,te=Object.getOwnPropertyDescriptor(window,"event");function ae(){Xp.removeEventListener(ie,ct,!1),typeof window.event<"u"&&window.hasOwnProperty("event")&&(window.event=q)}var Le=Array.prototype.slice.call(arguments,3);function ct(){B=!0,ae(),i.apply(o,Le),F=!1}var et,Xt=!1,Bt=!1;function W(X){if(et=X.error,Xt=!0,et===null&&X.colno===0&&X.lineno===0&&(Bt=!0),X.defaultPrevented&&et!=null&&typeof et=="object")try{et._suppressLogging=!0}catch{}}var ie="react-"+(t||"invokeguardedcallback");if(window.addEventListener("error",W),Xp.addEventListener(ie,ct,!1),O.initEvent(ie,!1,!1),Xp.dispatchEvent(O),te&&Object.defineProperty(window,"event",te),B&&F&&(Xt?Bt&&(et=new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")):et=new Error(`An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the "Pause on exceptions" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue.`),this.onError(et)),window.removeEventListener("error",W),!B)return ae(),Ff.apply(this,arguments)}}var Am=jf,ou=!1,Bf=null,lu=!1,Xi=null,Om={onError:function(e){ou=!0,Bf=e}};function ul(e,t,i,o,u,p,g,w,b){ou=!1,Bf=null,Am.apply(Om,arguments)}function Ki(e,t,i,o,u,p,g,w,b){if(ul.apply(this,arguments),ou){var M=cc();lu||(lu=!0,Xi=M)}}function uc(){if(lu){var e=Xi;throw lu=!1,Xi=null,e}}function Co(){return ou}function cc(){if(ou){var e=Bf;return ou=!1,Bf=null,e}else throw new Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.")}function su(e){return e._reactInternals}function j0(e){return e._reactInternals!==void 0}function ts(e,t){e._reactInternals=t}var at=0,ki=1,Dn=2,Gt=4,Za=16,Ja=32,Cn=64,nt=128,jr=256,zn=512,sr=1024,ha=2048,va=4096,Kn=8192,uu=16384,Nm=32767,fc=32768,hr=65536,Hf=131072,Qi=1048576,cu=2097152,Eo=4194304,Vf=8388608,cl=16777216,qi=33554432,fl=Gt|sr|0,dl=Dn|Gt|Za|Ja|zn|va|Kn,pl=Gt|Cn|zn|Kn,To=ha|Za,Qn=Eo|Vf|cu,ei=l.ReactCurrentOwner;function Da(e){var t=e,i=e;if(e.alternate)for(;t.return;)t=t.return;else{var o=t;do t=o,(t.flags&(Dn|va))!==at&&(i=t.return),o=t.return;while(o)}return t.tag===_?i:null}function Zi(e){if(e.tag===le){var t=e.memoizedState;if(t===null){var i=e.alternate;i!==null&&(t=i.memoizedState)}if(t!==null)return t.dehydrated}return null}function Ji(e){return e.tag===_?e.stateNode.containerInfo:null}function ns(e){return Da(e)===e}function Dm(e){{var t=ei.current;if(t!==null&&t.tag===R){var i=t,o=i.stateNode;o._warnedAboutRefsInRender||v("%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",bt(i)||"A component"),o._warnedAboutRefsInRender=!0}}var u=su(e);return u?Da(u)===u:!1}function $f(e){if(Da(e)!==e)throw new Error("Unable to find node on an unmounted component.")}function Gf(e){var t=e.alternate;if(!t){var i=Da(e);if(i===null)throw new Error("Unable to find node on an unmounted component.");return i!==e?null:e}for(var o=e,u=t;;){var p=o.return;if(p===null)break;var g=p.alternate;if(g===null){var w=p.return;if(w!==null){o=u=w;continue}break}if(p.child===g.child){for(var b=p.child;b;){if(b===o)return $f(p),e;if(b===u)return $f(p),t;b=b.sibling}throw new Error("Unable to find node on an unmounted component.")}if(o.return!==u.return)o=p,u=g;else{for(var M=!1,O=p.child;O;){if(O===o){M=!0,o=p,u=g;break}if(O===u){M=!0,u=p,o=g;break}O=O.sibling}if(!M){for(O=g.child;O;){if(O===o){M=!0,o=g,u=p;break}if(O===u){M=!0,u=g,o=p;break}O=O.sibling}if(!M)throw new Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(o.alternate!==u)throw new Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(o.tag!==_)throw new Error("Unable to find node on an unmounted component.");return o.stateNode.current===o?e:t}function ma(e){var t=Gf(e);return t!==null?ga(t):null}function ga(e){if(e.tag===N||e.tag===z)return e;for(var t=e.child;t!==null;){var i=ga(t);if(i!==null)return i;t=t.sibling}return null}function kn(e){var t=Gf(e);return t!==null?ti(t):null}function ti(e){if(e.tag===N||e.tag===z)return e;for(var t=e.child;t!==null;){if(t.tag!==k){var i=ti(t);if(i!==null)return i}t=t.sibling}return null}var Kp=a.unstable_scheduleCallback,Lm=a.unstable_cancelCallback,Qp=a.unstable_shouldYield,qp=a.unstable_requestPaint,ur=a.unstable_now,Yf=a.unstable_getCurrentPriorityLevel,dc=a.unstable_ImmediatePriority,hl=a.unstable_UserBlockingPriority,Ro=a.unstable_NormalPriority,B0=a.unstable_LowPriority,rs=a.unstable_IdlePriority,Wf=a.unstable_yieldValue,Pm=a.unstable_setDisableYieldValue,as=null,Bn=null,De=null,La=!1,ya=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function fu(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return v("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://reactjs.org/link/react-devtools"),!0;try{Be&&(e=At({},e,{getLaneLabelMap:is,injectProfilingHooks:ni})),as=t.inject(e),Bn=t}catch(i){v("React instrumentation encountered an error: %s.",i)}return!!t.checkDCE}function Zp(e,t){if(Bn&&typeof Bn.onScheduleFiberRoot=="function")try{Bn.onScheduleFiberRoot(as,e,t)}catch(i){La||(La=!0,v("React instrumentation encountered an error: %s",i))}}function Jp(e,t){if(Bn&&typeof Bn.onCommitFiberRoot=="function")try{var i=(e.current.flags&nt)===nt;if(He){var o;switch(t){case Kr:o=dc;break;case to:o=hl;break;case ri:o=Ro;break;case ai:o=rs;break;default:o=Ro;break}Bn.onCommitFiberRoot(as,e,o,i)}}catch(u){La||(La=!0,v("React instrumentation encountered an error: %s",u))}}function eh(e){if(Bn&&typeof Bn.onPostCommitFiberRoot=="function")try{Bn.onPostCommitFiberRoot(as,e)}catch(t){La||(La=!0,v("React instrumentation encountered an error: %s",t))}}function th(e){if(Bn&&typeof Bn.onCommitFiberUnmount=="function")try{Bn.onCommitFiberUnmount(as,e)}catch(t){La||(La=!0,v("React instrumentation encountered an error: %s",t))}}function Ln(e){if(typeof Wf=="function"&&(Pm(e),h(e)),Bn&&typeof Bn.setStrictMode=="function")try{Bn.setStrictMode(as,e)}catch(t){La||(La=!0,v("React instrumentation encountered an error: %s",t))}}function ni(e){De=e}function is(){{for(var e=new Map,t=1,i=0;i<ss;i++){var o=Fm(t);e.set(t,o),t*=2}return e}}function nh(e){De!==null&&typeof De.markCommitStarted=="function"&&De.markCommitStarted(e)}function rh(){De!==null&&typeof De.markCommitStopped=="function"&&De.markCommitStopped()}function Pa(e){De!==null&&typeof De.markComponentRenderStarted=="function"&&De.markComponentRenderStarted(e)}function Ia(){De!==null&&typeof De.markComponentRenderStopped=="function"&&De.markComponentRenderStopped()}function ah(e){De!==null&&typeof De.markComponentPassiveEffectMountStarted=="function"&&De.markComponentPassiveEffectMountStarted(e)}function Im(){De!==null&&typeof De.markComponentPassiveEffectMountStopped=="function"&&De.markComponentPassiveEffectMountStopped()}function Mo(e){De!==null&&typeof De.markComponentPassiveEffectUnmountStarted=="function"&&De.markComponentPassiveEffectUnmountStarted(e)}function vl(){De!==null&&typeof De.markComponentPassiveEffectUnmountStopped=="function"&&De.markComponentPassiveEffectUnmountStopped()}function Xf(e){De!==null&&typeof De.markComponentLayoutEffectMountStarted=="function"&&De.markComponentLayoutEffectMountStarted(e)}function Um(){De!==null&&typeof De.markComponentLayoutEffectMountStopped=="function"&&De.markComponentLayoutEffectMountStopped()}function pc(e){De!==null&&typeof De.markComponentLayoutEffectUnmountStarted=="function"&&De.markComponentLayoutEffectUnmountStarted(e)}function ih(){De!==null&&typeof De.markComponentLayoutEffectUnmountStopped=="function"&&De.markComponentLayoutEffectUnmountStopped()}function hc(e,t,i){De!==null&&typeof De.markComponentErrored=="function"&&De.markComponentErrored(e,t,i)}function eo(e,t,i){De!==null&&typeof De.markComponentSuspended=="function"&&De.markComponentSuspended(e,t,i)}function vc(e){De!==null&&typeof De.markLayoutEffectsStarted=="function"&&De.markLayoutEffectsStarted(e)}function mc(){De!==null&&typeof De.markLayoutEffectsStopped=="function"&&De.markLayoutEffectsStopped()}function os(e){De!==null&&typeof De.markPassiveEffectsStarted=="function"&&De.markPassiveEffectsStarted(e)}function oh(){De!==null&&typeof De.markPassiveEffectsStopped=="function"&&De.markPassiveEffectsStopped()}function ls(e){De!==null&&typeof De.markRenderStarted=="function"&&De.markRenderStarted(e)}function zm(){De!==null&&typeof De.markRenderYielded=="function"&&De.markRenderYielded()}function Kf(){De!==null&&typeof De.markRenderStopped=="function"&&De.markRenderStopped()}function Pn(e){De!==null&&typeof De.markRenderScheduled=="function"&&De.markRenderScheduled(e)}function Qf(e,t){De!==null&&typeof De.markForceUpdateScheduled=="function"&&De.markForceUpdateScheduled(e,t)}function gc(e,t){De!==null&&typeof De.markStateUpdateScheduled=="function"&&De.markStateUpdateScheduled(e,t)}var it=0,Lt=1,Jt=2,pn=8,en=16,qn=Math.clz32?Math.clz32:yc,vr=Math.log,qf=Math.LN2;function yc(e){var t=e>>>0;return t===0?32:31-(vr(t)/qf|0)|0}var ss=31,he=0,qt=0,vt=1,ml=2,Ai=4,Br=8,Hn=16,_o=32,gl=4194240,us=64,Zf=128,Jf=256,ed=512,td=1024,nd=2048,rd=4096,ad=8192,id=16384,cs=32768,od=65536,du=131072,pu=262144,ld=524288,Sc=1048576,sd=2097152,wc=130023424,fs=4194304,ud=8388608,bc=16777216,cd=33554432,fd=67108864,lh=fs,xc=134217728,sh=268435455,Cc=268435456,ds=536870912,Sa=1073741824;function Fm(e){{if(e&vt)return"Sync";if(e&ml)return"InputContinuousHydration";if(e&Ai)return"InputContinuous";if(e&Br)return"DefaultHydration";if(e&Hn)return"Default";if(e&_o)return"TransitionHydration";if(e&gl)return"Transition";if(e&wc)return"Retry";if(e&xc)return"SelectiveHydration";if(e&Cc)return"IdleHydration";if(e&ds)return"Idle";if(e&Sa)return"Offscreen"}}var mn=-1,ps=us,dd=fs;function Ec(e){switch(yl(e)){case vt:return vt;case ml:return ml;case Ai:return Ai;case Br:return Br;case Hn:return Hn;case _o:return _o;case us:case Zf:case Jf:case ed:case td:case nd:case rd:case ad:case id:case cs:case od:case du:case pu:case ld:case Sc:case sd:return e≷case fs:case ud:case bc:case cd:case fd:return e&wc;case xc:return xc;case Cc:return Cc;case ds:return ds;case Sa:return Sa;default:return v("Should have found matching lanes. This is a bug in React."),e}}function pd(e,t){var i=e.pendingLanes;if(i===he)return he;var o=he,u=e.suspendedLanes,p=e.pingedLanes,g=i&sh;if(g!==he){var w=g&~u;if(w!==he)o=Ec(w);else{var b=g&p;b!==he&&(o=Ec(b))}}else{var M=i&~u;M!==he?o=Ec(M):p!==he&&(o=Ec(p))}if(o===he)return he;if(t!==he&&t!==o&&(t&u)===he){var O=yl(o),B=yl(t);if(O>=B||O===Hn&&(B&gl)!==he)return t}(o&Ai)!==he&&(o|=i&Hn);var F=e.entangledLanes;if(F!==he)for(var q=e.entanglements,te=o&F;te>0;){var ae=Zn(te),Le=1<<ae;o|=q[ae],te&=~Le}return o}function Oi(e,t){for(var i=e.eventTimes,o=mn;t>0;){var u=Zn(t),p=1<<u,g=i[u];g>o&&(o=g),t&=~p}return o}function uh(e,t){switch(e){case vt:case ml:case Ai:return t+250;case Br:case Hn:case _o:case us:case Zf:case Jf:case ed:case td:case nd:case rd:case ad:case id:case cs:case od:case du:case pu:case ld:case Sc:case sd:return t+5e3;case fs:case ud:case bc:case cd:case fd:return mn;case xc:case Cc:case ds:case Sa:return mn;default:return v("Should have found matching lanes. This is a bug in React."),mn}}function hd(e,t){for(var i=e.pendingLanes,o=e.suspendedLanes,u=e.pingedLanes,p=e.expirationTimes,g=i;g>0;){var w=Zn(g),b=1<<w,M=p[w];M===mn?((b&o)===he||(b&u)!==he)&&(p[w]=uh(b,t)):M<=t&&(e.expiredLanes|=b),g&=~b}}function jm(e){return Ec(e.pendingLanes)}function vd(e){var t=e.pendingLanes&~Sa;return t!==he?t:t&Sa?Sa:he}function Bm(e){return(e&vt)!==he}function Tc(e){return(e&sh)!==he}function hs(e){return(e&wc)===e}function ch(e){var t=vt|Ai|Hn;return(e&t)===he}function fh(e){return(e&gl)===e}function md(e,t){var i=ml|Ai|Br|Hn;return(t&i)!==he}function Hm(e,t){return(t&e.expiredLanes)!==he}function dh(e){return(e&gl)!==he}function ph(){var e=ps;return ps<<=1,(ps&gl)===he&&(ps=us),e}function Vm(){var e=dd;return dd<<=1,(dd&wc)===he&&(dd=fs),e}function yl(e){return e&-e}function Rc(e){return yl(e)}function Zn(e){return 31-qn(e)}function Tr(e){return Zn(e)}function wa(e,t){return(e&t)!==he}function vs(e,t){return(e&t)===t}function kt(e,t){return e|t}function Mc(e,t){return e&~t}function hh(e,t){return e&t}function $m(e){return e}function Gm(e,t){return e!==qt&&e<t?e:t}function _c(e){for(var t=[],i=0;i<ss;i++)t.push(e);return t}function hu(e,t,i){e.pendingLanes|=t,t!==ds&&(e.suspendedLanes=he,e.pingedLanes=he);var o=e.eventTimes,u=Tr(t);o[u]=i}function Ym(e,t){e.suspendedLanes|=t,e.pingedLanes&=~t;for(var i=e.expirationTimes,o=t;o>0;){var u=Zn(o),p=1<<u;i[u]=mn,o&=~p}}function gd(e,t,i){e.pingedLanes|=e.suspendedLanes&t}function vh(e,t){var i=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=he,e.pingedLanes=he,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t;for(var o=e.entanglements,u=e.eventTimes,p=e.expirationTimes,g=i;g>0;){var w=Zn(g),b=1<<w;o[w]=he,u[w]=mn,p[w]=mn,g&=~b}}function yd(e,t){for(var i=e.entangledLanes|=t,o=e.entanglements,u=i;u;){var p=Zn(u),g=1<<p;g&t|o[p]&t&&(o[p]|=t),u&=~g}}function mh(e,t){var i=yl(t),o;switch(i){case Ai:o=ml;break;case Hn:o=Br;break;case us:case Zf:case Jf:case ed:case td:case nd:case rd:case ad:case id:case cs:case od:case du:case pu:case ld:case Sc:case sd:case fs:case ud:case bc:case cd:case fd:o=_o;break;case ds:o=Cc;break;default:o=qt;break}return(o&(e.suspendedLanes|t))!==qt?qt:o}function kc(e,t,i){if(ya)for(var o=e.pendingUpdatersLaneMap;i>0;){var u=Tr(i),p=1<<u,g=o[u];g.add(t),i&=~p}}function Wm(e,t){if(ya)for(var i=e.pendingUpdatersLaneMap,o=e.memoizedUpdaters;t>0;){var u=Tr(t),p=1<<u,g=i[u];g.size>0&&(g.forEach(function(w){var b=w.alternate;(b===null||!o.has(b))&&o.add(w)}),g.clear()),t&=~p}}function gh(e,t){return null}var Kr=vt,to=Ai,ri=Hn,ai=ds,Ac=qt;function ii(){return Ac}function Jn(e){Ac=e}function Xm(e,t){var i=Ac;try{return Ac=e,t()}finally{Ac=i}}function Km(e,t){return e!==0&&e<t?e:t}function Oc(e,t){return e>t?e:t}function mr(e,t){return e!==0&&e<t}function Qm(e){var t=yl(e);return mr(Kr,t)?mr(to,t)?Tc(t)?ri:ai:to:Kr}function Sd(e){var t=e.current.memoizedState;return t.isDehydrated}var Nc;function Hr(e){Nc=e}function H0(e){Nc(e)}var je;function vu(e){je=e}var wd;function qm(e){wd=e}var Zm;function Dc(e){Zm=e}var Lc;function yh(e){Lc=e}var bd=!1,Pc=[],ko=null,no=null,ro=null,Vn=new Map,Qr=new Map,qr=[],Jm=["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"];function eg(e){return Jm.indexOf(e)>-1}function Ni(e,t,i,o,u){return{blockedOn:e,domEventName:t,eventSystemFlags:i,nativeEvent:u,targetContainers:[o]}}function Sh(e,t){switch(e){case"focusin":case"focusout":ko=null;break;case"dragenter":case"dragleave":no=null;break;case"mouseover":case"mouseout":ro=null;break;case"pointerover":case"pointerout":{var i=t.pointerId;Vn.delete(i);break}case"gotpointercapture":case"lostpointercapture":{var o=t.pointerId;Qr.delete(o);break}}}function ba(e,t,i,o,u,p){if(e===null||e.nativeEvent!==p){var g=Ni(t,i,o,u,p);if(t!==null){var w=Eu(t);w!==null&&je(w)}return g}e.eventSystemFlags|=o;var b=e.targetContainers;return u!==null&&b.indexOf(u)===-1&&b.push(u),e}function V0(e,t,i,o,u){switch(t){case"focusin":{var p=u;return ko=ba(ko,e,t,i,o,p),!0}case"dragenter":{var g=u;return no=ba(no,e,t,i,o,g),!0}case"mouseover":{var w=u;return ro=ba(ro,e,t,i,o,w),!0}case"pointerover":{var b=u,M=b.pointerId;return Vn.set(M,ba(Vn.get(M)||null,e,t,i,o,b)),!0}case"gotpointercapture":{var O=u,B=O.pointerId;return Qr.set(B,ba(Qr.get(B)||null,e,t,i,o,O)),!0}}return!1}function wh(e){var t=Wc(e.target);if(t!==null){var i=Da(t);if(i!==null){var o=i.tag;if(o===le){var u=Zi(i);if(u!==null){e.blockedOn=u,Lc(e.priority,function(){wd(i)});return}}else if(o===_){var p=i.stateNode;if(Sd(p)){e.blockedOn=Ji(i);return}}}}e.blockedOn=null}function tg(e){for(var t=Zm(),i={blockedOn:null,target:e,priority:t},o=0;o<qr.length&&mr(t,qr[o].priority);o++);qr.splice(o,0,i),o===0&&wh(i)}function Ic(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;t.length>0;){var i=t[0],o=gu(e.domEventName,e.eventSystemFlags,i,e.nativeEvent);if(o===null){var u=e.nativeEvent,p=new u.constructor(u.type,u);U0(p),u.target.dispatchEvent(p),z0()}else{var g=Eu(o);return g!==null&&je(g),e.blockedOn=o,!1}t.shift()}return!0}function bh(e,t,i){Ic(e)&&i.delete(t)}function $0(){bd=!1,ko!==null&&Ic(ko)&&(ko=null),no!==null&&Ic(no)&&(no=null),ro!==null&&Ic(ro)&&(ro=null),Vn.forEach(bh),Qr.forEach(bh)}function Sl(e,t){e.blockedOn===t&&(e.blockedOn=null,bd||(bd=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,$0)))}function ms(e){if(Pc.length>0){Sl(Pc[0],e);for(var t=1;t<Pc.length;t++){var i=Pc[t];i.blockedOn===e&&(i.blockedOn=null)}}ko!==null&&Sl(ko,e),no!==null&&Sl(no,e),ro!==null&&Sl(ro,e);var o=function(w){return Sl(w,e)};Vn.forEach(o),Qr.forEach(o);for(var u=0;u<qr.length;u++){var p=qr[u];p.blockedOn===e&&(p.blockedOn=null)}for(;qr.length>0;){var g=qr[0];if(g.blockedOn!==null)break;wh(g),g.blockedOn===null&&qr.shift()}}var Rr=l.ReactCurrentBatchConfig,Yt=!0;function cr(e){Yt=!!e}function er(){return Yt}function Mr(e,t,i){var o=xd(t),u;switch(o){case Kr:u=Ua;break;case to:u=mu;break;case ri:default:u=$n;break}return u.bind(null,t,i,e)}function Ua(e,t,i,o){var u=ii(),p=Rr.transition;Rr.transition=null;try{Jn(Kr),$n(e,t,i,o)}finally{Jn(u),Rr.transition=p}}function mu(e,t,i,o){var u=ii(),p=Rr.transition;Rr.transition=null;try{Jn(to),$n(e,t,i,o)}finally{Jn(u),Rr.transition=p}}function $n(e,t,i,o){Yt&&Uc(e,t,i,o)}function Uc(e,t,i,o){var u=gu(e,t,i,o);if(u===null){lS(e,t,o,ao,i),Sh(e,o);return}if(V0(u,e,t,i,o)){o.stopPropagation();return}if(Sh(e,o),t&qa&&eg(e)){for(;u!==null;){var p=Eu(u);p!==null&&H0(p);var g=gu(e,t,i,o);if(g===null&&lS(e,t,o,ao,i),g===u)break;u=g}u!==null&&o.stopPropagation();return}lS(e,t,o,null,i)}var ao=null;function gu(e,t,i,o){ao=null;var u=Wp(o),p=Wc(u);if(p!==null){var g=Da(p);if(g===null)p=null;else{var w=g.tag;if(w===le){var b=Zi(g);if(b!==null)return b;p=null}else if(w===_){var M=g.stateNode;if(Sd(M))return Ji(g);p=null}else g!==p&&(p=null)}}return ao=p,null}function xd(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return Kr;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return to;case"message":{var t=Yf();switch(t){case dc:return Kr;case hl:return to;case Ro:case B0:return ri;case rs:return ai;default:return ri}}default:return ri}}function zc(e,t,i){return e.addEventListener(t,i,!1),i}function xa(e,t,i){return e.addEventListener(t,i,!0),i}function xh(e,t,i,o){return e.addEventListener(t,i,{capture:!0,passive:o}),i}function yu(e,t,i,o){return e.addEventListener(t,i,{passive:o}),i}var za=null,Su=null,gs=null;function wl(e){return za=e,Su=Fc(),!0}function Cd(){za=null,Su=null,gs=null}function Ao(){if(gs)return gs;var e,t=Su,i=t.length,o,u=Fc(),p=u.length;for(e=0;e<i&&t[e]===u[e];e++);var g=i-e;for(o=1;o<=g&&t[i-o]===u[p-o];o++);var w=o>1?1-o:void 0;return gs=u.slice(e,w),gs}function Fc(){return"value"in za?za.value:za.textContent}function bl(e){var t,i=e.keyCode;return"charCode"in e?(t=e.charCode,t===0&&i===13&&(t=13)):t=i,t===10&&(t=13),t>=32||t===13?t:0}function wu(){return!0}function jc(){return!1}function Vr(e){function t(i,o,u,p,g){this._reactName=i,this._targetInst=u,this.type=o,this.nativeEvent=p,this.target=g,this.currentTarget=null;for(var w in e)if(e.hasOwnProperty(w)){var b=e[w];b?this[w]=b(p):this[w]=p[w]}var M=p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1;return M?this.isDefaultPrevented=wu:this.isDefaultPrevented=jc,this.isPropagationStopped=jc,this}return At(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=wu)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=wu)},persist:function(){},isPersistent:wu}),t}var tr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},io=Vr(tr),Zr=At({},tr,{view:0,detail:0}),Ca=Vr(Zr),Ed,Bc,ys;function G0(e){e!==ys&&(ys&&e.type==="mousemove"?(Ed=e.screenX-ys.screenX,Bc=e.screenY-ys.screenY):(Ed=0,Bc=0),ys=e)}var Di=At({},Zr,{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 e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(G0(e),Ed)},movementY:function(e){return"movementY"in e?e.movementY:Bc}}),Ch=Vr(Di),Eh=At({},Di,{dataTransfer:0}),Ss=Vr(Eh),Th=At({},Zr,{relatedTarget:0}),Oo=Vr(Th),ng=At({},tr,{animationName:0,elapsedTime:0,pseudoElement:0}),rg=Vr(ng),Rh=At({},tr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Td=Vr(Rh),Y0=At({},tr,{data:0}),ag=Vr(Y0),ig=ag,og={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ws={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"};function W0(e){if(e.key){var t=og[e.key]||e.key;if(t!=="Unidentified")return t}if(e.type==="keypress"){var i=bl(e);return i===13?"Enter":String.fromCharCode(i)}return e.type==="keydown"||e.type==="keyup"?ws[e.keyCode]||"Unidentified":""}var bu={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function lg(e){var t=this,i=t.nativeEvent;if(i.getModifierState)return i.getModifierState(e);var o=bu[e];return o?!!i[o]:!1}function An(e){return lg}var X0=At({},Zr,{key:W0,code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:An,charCode:function(e){return e.type==="keypress"?bl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?bl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),sg=Vr(X0),K0=At({},Di,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ug=Vr(K0),cg=At({},Zr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:An}),fg=Vr(cg),Q0=At({},tr,{propertyName:0,elapsedTime:0,pseudoElement:0}),oi=Vr(Q0),Mh=At({},Di,{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}),q0=Vr(Mh),xl=[9,13,27,32],Hc=229,No=gn&&"CompositionEvent"in window,Cl=null;gn&&"documentMode"in document&&(Cl=document.documentMode);var _h=gn&&"TextEvent"in window&&!Cl,Rd=gn&&(!No||Cl&&Cl>8&&Cl<=11),dg=32,Md=String.fromCharCode(dg);function Z0(){wt("onBeforeInput",["compositionend","keypress","textInput","paste"]),wt("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),wt("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),wt("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"])}var kh=!1;function pg(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function _d(e){switch(e){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function kd(e,t){return e==="keydown"&&t.keyCode===Hc}function Ah(e,t){switch(e){case"keyup":return xl.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==Hc;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ad(e){var t=e.detail;return typeof t=="object"&&"data"in t?t.data:null}function hg(e){return e.locale==="ko"}var bs=!1;function Oh(e,t,i,o,u){var p,g;if(No?p=_d(t):bs?Ah(t,o)&&(p="onCompositionEnd"):kd(t,o)&&(p="onCompositionStart"),!p)return null;Rd&&!hg(o)&&(!bs&&p==="onCompositionStart"?bs=wl(u):p==="onCompositionEnd"&&bs&&(g=Ao()));var w=bg(i,p);if(w.length>0){var b=new ag(p,t,null,o,u);if(e.push({event:b,listeners:w}),g)b.data=g;else{var M=Ad(o);M!==null&&(b.data=M)}}}function Od(e,t){switch(e){case"compositionend":return Ad(t);case"keypress":var i=t.which;return i!==dg?null:(kh=!0,Md);case"textInput":var o=t.data;return o===Md&&kh?null:o;default:return null}}function Nh(e,t){if(bs){if(e==="compositionend"||!No&&Ah(e,t)){var i=Ao();return Cd(),bs=!1,i}return null}switch(e){case"paste":return null;case"keypress":if(!pg(t)){if(t.char&&t.char.length>1)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Rd&&!hg(t)?null:t.data;default:return null}}function Nd(e,t,i,o,u){var p;if(_h?p=Od(t,o):p=Nh(t,o),!p)return null;var g=bg(i,"onBeforeInput");if(g.length>0){var w=new ig("onBeforeInput","beforeinput",null,o,u);e.push({event:w,listeners:g}),w.data=p}}function vg(e,t,i,o,u,p,g){Oh(e,t,i,o,u),Nd(e,t,i,o,u)}var J0={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 Vc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!J0[e.type]:t==="textarea"}/**
|
|
116
|
+
* Checks if an event is supported in the current execution environment.
|
|
117
|
+
*
|
|
118
|
+
* NOTE: This will not work correctly for non-generic events such as `change`,
|
|
119
|
+
* `reset`, `load`, `error`, and `select`.
|
|
120
|
+
*
|
|
121
|
+
* Borrows from Modernizr.
|
|
122
|
+
*
|
|
123
|
+
* @param {string} eventNameSuffix Event name, e.g. "click".
|
|
124
|
+
* @return {boolean} True if the event is supported.
|
|
125
|
+
* @internal
|
|
126
|
+
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|
127
|
+
*/function eS(e){if(!gn)return!1;var t="on"+e,i=t in document;if(!i){var o=document.createElement("div");o.setAttribute(t,"return;"),i=typeof o[t]=="function"}return i}function $c(){wt("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function mg(e,t,i,o){au(o);var u=bg(t,"onChange");if(u.length>0){var p=new io("onChange","change",null,i,o);e.push({event:p,listeners:u})}}var El=null,n=null;function r(e){var t=e.nodeName&&e.nodeName.toLowerCase();return t==="select"||t==="input"&&e.type==="file"}function s(e){var t=[];mg(t,n,e,Wp(e)),_m(d,t)}function d(e){eE(e,0)}function m(e){var t=zd(e);if(Yi(t))return e}function S(e,t){if(e==="change")return t}var T=!1;gn&&(T=eS("input")&&(!document.documentMode||document.documentMode>9));function D(e,t){El=e,n=t,El.attachEvent("onpropertychange",ee)}function U(){El&&(El.detachEvent("onpropertychange",ee),El=null,n=null)}function ee(e){e.propertyName==="value"&&m(n)&&s(e)}function ge(e,t,i){e==="focusin"?(U(),D(t,i)):e==="focusout"&&U()}function Se(e,t){if(e==="selectionchange"||e==="keyup"||e==="keydown")return m(n)}function me(e){var t=e.nodeName;return t&&t.toLowerCase()==="input"&&(e.type==="checkbox"||e.type==="radio")}function Ue(e,t){if(e==="click")return m(t)}function Ye(e,t){if(e==="input"||e==="change")return m(t)}function Ze(e){var t=e._wrapperState;!t||!t.controlled||e.type!=="number"||ut(e,"number",e.value)}function Gn(e,t,i,o,u,p,g){var w=i?zd(i):window,b,M;if(r(w)?b=S:Vc(w)?T?b=Ye:(b=Se,M=ge):me(w)&&(b=Ue),b){var O=b(t,i);if(O){mg(e,O,o,u);return}}M&&M(t,w,i),t==="focusout"&&Ze(w)}function Y(){$t("onMouseEnter",["mouseout","mouseover"]),$t("onMouseLeave",["mouseout","mouseover"]),$t("onPointerEnter",["pointerout","pointerover"]),$t("onPointerLeave",["pointerout","pointerover"])}function j(e,t,i,o,u,p,g){var w=t==="mouseover"||t==="pointerover",b=t==="mouseout"||t==="pointerout";if(w&&!oc(o)){var M=o.relatedTarget||o.fromElement;if(M&&(Wc(M)||Yh(M)))return}if(!(!b&&!w)){var O;if(u.window===u)O=u;else{var B=u.ownerDocument;B?O=B.defaultView||B.parentWindow:O=window}var F,q;if(b){var te=o.relatedTarget||o.toElement;if(F=i,q=te?Wc(te):null,q!==null){var ae=Da(q);(q!==ae||q.tag!==N&&q.tag!==z)&&(q=null)}}else F=null,q=i;if(F!==q){var Le=Ch,ct="onMouseLeave",et="onMouseEnter",Xt="mouse";(t==="pointerout"||t==="pointerover")&&(Le=ug,ct="onPointerLeave",et="onPointerEnter",Xt="pointer");var Bt=F==null?O:zd(F),W=q==null?O:zd(q),ie=new Le(ct,Xt+"leave",F,o,u);ie.target=Bt,ie.relatedTarget=W;var X=null,we=Wc(u);if(we===i){var Fe=new Le(et,Xt+"enter",q,o,u);Fe.target=W,Fe.relatedTarget=Bt,X=Fe}SO(e,ie,X,F,q)}}}function K(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ye=typeof Object.is=="function"?Object.is:K;function We(e,t){if(ye(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var i=Object.keys(e),o=Object.keys(t);if(i.length!==o.length)return!1;for(var u=0;u<i.length;u++){var p=i[u];if(!Un.call(t,p)||!ye(e[p],t[p]))return!1}return!0}function ft(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ht(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function gt(e,t){for(var i=ft(e),o=0,u=0;i;){if(i.nodeType===bo){if(u=o+i.textContent.length,o<=t&&u>=t)return{node:i,offset:t-o};o=u}i=ft(ht(i))}}function gr(e){var t=e.ownerDocument,i=t&&t.defaultView||window,o=i.getSelection&&i.getSelection();if(!o||o.rangeCount===0)return null;var u=o.anchorNode,p=o.anchorOffset,g=o.focusNode,w=o.focusOffset;try{u.nodeType,g.nodeType}catch{return null}return tn(e,u,p,g,w)}function tn(e,t,i,o,u){var p=0,g=-1,w=-1,b=0,M=0,O=e,B=null;e:for(;;){for(var F=null;O===t&&(i===0||O.nodeType===bo)&&(g=p+i),O===o&&(u===0||O.nodeType===bo)&&(w=p+u),O.nodeType===bo&&(p+=O.nodeValue.length),(F=O.firstChild)!==null;)B=O,O=F;for(;;){if(O===e)break e;if(B===t&&++b===i&&(g=p),B===o&&++M===u&&(w=p),(F=O.nextSibling)!==null)break;O=B,B=O.parentNode}O=F}return g===-1||w===-1?null:{start:g,end:w}}function Tl(e,t){var i=e.ownerDocument||document,o=i&&i.defaultView||window;if(o.getSelection){var u=o.getSelection(),p=e.textContent.length,g=Math.min(t.start,p),w=t.end===void 0?g:Math.min(t.end,p);if(!u.extend&&g>w){var b=w;w=g,g=b}var M=gt(e,g),O=gt(e,w);if(M&&O){if(u.rangeCount===1&&u.anchorNode===M.node&&u.anchorOffset===M.offset&&u.focusNode===O.node&&u.focusOffset===O.offset)return;var B=i.createRange();B.setStart(M.node,M.offset),u.removeAllRanges(),g>w?(u.addRange(B),u.extend(O.node,O.offset)):(B.setEnd(O.node,O.offset),u.addRange(B))}}}function gg(e){return e&&e.nodeType===bo}function VC(e,t){return!e||!t?!1:e===t?!0:gg(e)?!1:gg(t)?VC(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1}function tO(e){return e&&e.ownerDocument&&VC(e.ownerDocument.documentElement,e)}function nO(e){try{return typeof e.contentWindow.location.href=="string"}catch{return!1}}function $C(){for(var e=window,t=Qa();t instanceof e.HTMLIFrameElement;){if(nO(t))e=t.contentWindow;else return t;t=Qa(e.document)}return t}function tS(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function rO(){var e=$C();return{focusedElem:e,selectionRange:tS(e)?iO(e):null}}function aO(e){var t=$C(),i=e.focusedElem,o=e.selectionRange;if(t!==i&&tO(i)){o!==null&&tS(i)&&oO(i,o);for(var u=[],p=i;p=p.parentNode;)p.nodeType===pa&&u.push({element:p,left:p.scrollLeft,top:p.scrollTop});typeof i.focus=="function"&&i.focus();for(var g=0;g<u.length;g++){var w=u[g];w.element.scrollLeft=w.left,w.element.scrollTop=w.top}}}function iO(e){var t;return"selectionStart"in e?t={start:e.selectionStart,end:e.selectionEnd}:t=gr(e),t||{start:0,end:0}}function oO(e,t){var i=t.start,o=t.end;o===void 0&&(o=i),"selectionStart"in e?(e.selectionStart=i,e.selectionEnd=Math.min(o,e.value.length)):Tl(e,t)}var lO=gn&&"documentMode"in document&&document.documentMode<=11;function sO(){wt("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var Dd=null,nS=null,Dh=null,rS=!1;function uO(e){if("selectionStart"in e&&tS(e))return{start:e.selectionStart,end:e.selectionEnd};var t=e.ownerDocument&&e.ownerDocument.defaultView||window,i=t.getSelection();return{anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}}function cO(e){return e.window===e?e.document:e.nodeType===xo?e:e.ownerDocument}function GC(e,t,i){var o=cO(i);if(!(rS||Dd==null||Dd!==Qa(o))){var u=uO(Dd);if(!Dh||!We(Dh,u)){Dh=u;var p=bg(nS,"onSelect");if(p.length>0){var g=new io("onSelect","select",null,t,i);e.push({event:g,listeners:p}),g.target=Dd}}}}function fO(e,t,i,o,u,p,g){var w=i?zd(i):window;switch(t){case"focusin":(Vc(w)||w.contentEditable==="true")&&(Dd=w,nS=i,Dh=null);break;case"focusout":Dd=null,nS=null,Dh=null;break;case"mousedown":rS=!0;break;case"contextmenu":case"mouseup":case"dragend":rS=!1,GC(e,o,u);break;case"selectionchange":if(lO)break;case"keydown":case"keyup":GC(e,o,u)}}function yg(e,t){var i={};return i[e.toLowerCase()]=t.toLowerCase(),i["Webkit"+e]="webkit"+t,i["Moz"+e]="moz"+t,i}var Ld={animationend:yg("Animation","AnimationEnd"),animationiteration:yg("Animation","AnimationIteration"),animationstart:yg("Animation","AnimationStart"),transitionend:yg("Transition","TransitionEnd")},aS={},YC={};gn&&(YC=document.createElement("div").style,"AnimationEvent"in window||(delete Ld.animationend.animation,delete Ld.animationiteration.animation,delete Ld.animationstart.animation),"TransitionEvent"in window||delete Ld.transitionend.transition);function Sg(e){if(aS[e])return aS[e];if(!Ld[e])return e;var t=Ld[e];for(var i in t)if(t.hasOwnProperty(i)&&i in YC)return aS[e]=t[i];return e}var WC=Sg("animationend"),XC=Sg("animationiteration"),KC=Sg("animationstart"),QC=Sg("transitionend"),qC=new Map,ZC=["abort","auxClick","cancel","canPlay","canPlayThrough","click","close","contextMenu","copy","cut","drag","dragEnd","dragEnter","dragExit","dragLeave","dragOver","dragStart","drop","durationChange","emptied","encrypted","ended","error","gotPointerCapture","input","invalid","keyDown","keyPress","keyUp","load","loadedData","loadedMetadata","loadStart","lostPointerCapture","mouseDown","mouseMove","mouseOut","mouseOver","mouseUp","paste","pause","play","playing","pointerCancel","pointerDown","pointerMove","pointerOut","pointerOver","pointerUp","progress","rateChange","reset","resize","seeked","seeking","stalled","submit","suspend","timeUpdate","touchCancel","touchEnd","touchStart","volumeChange","scroll","toggle","touchMove","waiting","wheel"];function xu(e,t){qC.set(e,t),wt(t,[e])}function dO(){for(var e=0;e<ZC.length;e++){var t=ZC[e],i=t.toLowerCase(),o=t[0].toUpperCase()+t.slice(1);xu(i,"on"+o)}xu(WC,"onAnimationEnd"),xu(XC,"onAnimationIteration"),xu(KC,"onAnimationStart"),xu("dblclick","onDoubleClick"),xu("focusin","onFocus"),xu("focusout","onBlur"),xu(QC,"onTransitionEnd")}function pO(e,t,i,o,u,p,g){var w=qC.get(t);if(w!==void 0){var b=io,M=t;switch(t){case"keypress":if(bl(o)===0)return;case"keydown":case"keyup":b=sg;break;case"focusin":M="focus",b=Oo;break;case"focusout":M="blur",b=Oo;break;case"beforeblur":case"afterblur":b=Oo;break;case"click":if(o.button===2)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":b=Ch;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":b=Ss;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":b=fg;break;case WC:case XC:case KC:b=rg;break;case QC:b=oi;break;case"scroll":b=Ca;break;case"wheel":b=q0;break;case"copy":case"cut":case"paste":b=Td;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":b=ug;break}var O=(p&qa)!==0;{var B=!O&&t==="scroll",F=gO(i,w,o.type,O,B);if(F.length>0){var q=new b(w,M,null,o,u);e.push({event:q,listeners:F})}}}}dO(),Y(),$c(),sO(),Z0();function hO(e,t,i,o,u,p,g){pO(e,t,i,o,u,p);var w=(p&Yp)===0;w&&(j(e,t,i,o,u),Gn(e,t,i,o,u),fO(e,t,i,o,u),vg(e,t,i,o,u))}var Lh=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],iS=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(Lh));function JC(e,t,i){var o=e.type||"unknown-event";e.currentTarget=i,Ki(o,t,void 0,e),e.currentTarget=null}function vO(e,t,i){var o;if(i)for(var u=t.length-1;u>=0;u--){var p=t[u],g=p.instance,w=p.currentTarget,b=p.listener;if(g!==o&&e.isPropagationStopped())return;JC(e,b,w),o=g}else for(var M=0;M<t.length;M++){var O=t[M],B=O.instance,F=O.currentTarget,q=O.listener;if(B!==o&&e.isPropagationStopped())return;JC(e,q,F),o=B}}function eE(e,t){for(var i=(t&qa)!==0,o=0;o<e.length;o++){var u=e[o],p=u.event,g=u.listeners;vO(p,g,i)}uc()}function mO(e,t,i,o,u){var p=Wp(i),g=[];hO(g,e,o,i,p,t),eE(g,t)}function In(e,t){iS.has(e)||v('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var i=!1,o=YN(t),u=wO(e);o.has(u)||(tE(t,e,Df,i),o.add(u))}function oS(e,t,i){iS.has(e)&&!t&&v('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var o=0;t&&(o|=qa),tE(i,e,o,t)}var wg="_reactListening"+Math.random().toString(36).slice(2);function Ph(e){if(!e[wg]){e[wg]=!0,xt.forEach(function(i){i!=="selectionchange"&&(iS.has(i)||oS(i,!1,e),oS(i,!0,e))});var t=e.nodeType===xo?e:e.ownerDocument;t!==null&&(t[wg]||(t[wg]=!0,oS("selectionchange",!1,t)))}}function tE(e,t,i,o,u){var p=Mr(e,t,i),g=void 0;sc&&(t==="touchstart"||t==="touchmove"||t==="wheel")&&(g=!0),e=e,o?g!==void 0?xh(e,t,p,g):xa(e,t,p):g!==void 0?yu(e,t,p,g):zc(e,t,p)}function nE(e,t){return e===t||e.nodeType===Xn&&e.parentNode===t}function lS(e,t,i,o,u){var p=o;if(!(t&Gp)&&!(t&Df)){var g=u;if(o!==null){var w=o;e:for(;;){if(w===null)return;var b=w.tag;if(b===_||b===k){var M=w.stateNode.containerInfo;if(nE(M,g))break;if(b===k)for(var O=w.return;O!==null;){var B=O.tag;if(B===_||B===k){var F=O.stateNode.containerInfo;if(nE(F,g))return}O=O.return}for(;M!==null;){var q=Wc(M);if(q===null)return;var te=q.tag;if(te===N||te===z){w=p=q;continue e}M=M.parentNode}}w=w.return}}}_m(function(){return mO(e,t,i,p)})}function Ih(e,t,i){return{instance:e,listener:t,currentTarget:i}}function gO(e,t,i,o,u,p){for(var g=t!==null?t+"Capture":null,w=o?g:t,b=[],M=e,O=null;M!==null;){var B=M,F=B.stateNode,q=B.tag;if(q===N&&F!==null&&(O=F,w!==null)){var te=sl(M,w);te!=null&&b.push(Ih(M,te,O))}if(u)break;M=M.return}return b}function bg(e,t){for(var i=t+"Capture",o=[],u=e;u!==null;){var p=u,g=p.stateNode,w=p.tag;if(w===N&&g!==null){var b=g,M=sl(u,i);M!=null&&o.unshift(Ih(u,M,b));var O=sl(u,t);O!=null&&o.push(Ih(u,O,b))}u=u.return}return o}function Pd(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==N);return e||null}function yO(e,t){for(var i=e,o=t,u=0,p=i;p;p=Pd(p))u++;for(var g=0,w=o;w;w=Pd(w))g++;for(;u-g>0;)i=Pd(i),u--;for(;g-u>0;)o=Pd(o),g--;for(var b=u;b--;){if(i===o||o!==null&&i===o.alternate)return i;i=Pd(i),o=Pd(o)}return null}function rE(e,t,i,o,u){for(var p=t._reactName,g=[],w=i;w!==null&&w!==o;){var b=w,M=b.alternate,O=b.stateNode,B=b.tag;if(M!==null&&M===o)break;if(B===N&&O!==null){var F=O;if(u){var q=sl(w,p);q!=null&&g.unshift(Ih(w,q,F))}else if(!u){var te=sl(w,p);te!=null&&g.push(Ih(w,te,F))}}w=w.return}g.length!==0&&e.push({event:t,listeners:g})}function SO(e,t,i,o,u){var p=o&&u?yO(o,u):null;o!==null&&rE(e,t,o,p,!1),u!==null&&i!==null&&rE(e,i,u,p,!0)}function wO(e,t){return e+"__bubble"}var li=!1,Uh="dangerouslySetInnerHTML",xg="suppressContentEditableWarning",Cu="suppressHydrationWarning",aE="autoFocus",Gc="children",Yc="style",Cg="__html",sS,Eg,zh,iE,Tg,oE,lE;sS={dialog:!0,webview:!0},Eg=function(e,t){Hp(e,t),Of(e,t),Tm(e,t,{registrationNameDependencies:Ve,possibleRegistrationNames:St})},oE=gn&&!document.documentMode,zh=function(e,t,i){if(!li){var o=Rg(i),u=Rg(t);u!==o&&(li=!0,v("Prop `%s` did not match. Server: %s Client: %s",e,JSON.stringify(u),JSON.stringify(o)))}},iE=function(e){if(!li){li=!0;var t=[];e.forEach(function(i){t.push(i)}),v("Extra attributes from the server: %s",t)}},Tg=function(e,t){t===!1?v("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):v("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)},lE=function(e,t){var i=e.namespaceURI===wo?e.ownerDocument.createElement(e.tagName):e.ownerDocument.createElementNS(e.namespaceURI,e.tagName);return i.innerHTML=t,i.innerHTML};var bO=/\r\n?/g,xO=/\u0000|\uFFFD/g;function Rg(e){dr(e);var t=typeof e=="string"?e:""+e;return t.replace(bO,`
|
|
128
|
+
`).replace(xO,"")}function Mg(e,t,i,o){var u=Rg(t),p=Rg(e);if(p!==u&&(o&&(li||(li=!0,v('Text content did not match. Server: "%s" Client: "%s"',p,u))),i&&Te))throw new Error("Text content does not match server-rendered HTML.")}function sE(e){return e.nodeType===xo?e:e.ownerDocument}function CO(){}function _g(e){e.onclick=CO}function EO(e,t,i,o,u){for(var p in o)if(o.hasOwnProperty(p)){var g=o[p];if(p===Yc)g&&Object.freeze(g),Sm(t,g);else if(p===Uh){var w=g?g[Cg]:void 0;w!=null&&lm(t,w)}else if(p===Gc)if(typeof g=="string"){var b=e!=="textarea"||g!=="";b&&eu(t,g)}else typeof g=="number"&&eu(t,""+g);else p===xg||p===Cu||p===aE||(Ve.hasOwnProperty(p)?g!=null&&(typeof g!="function"&&Tg(p,g),p==="onScroll"&&In("scroll",t)):g!=null&&$r(t,p,g,u))}}function TO(e,t,i,o){for(var u=0;u<t.length;u+=2){var p=t[u],g=t[u+1];p===Yc?Sm(e,g):p===Uh?lm(e,g):p===Gc?eu(e,g):$r(e,p,g,o)}}function RO(e,t,i,o){var u,p=sE(i),g,w=o;if(w===wo&&(w=Pp(e)),w===wo){if(u=ol(e,t),!u&&e!==e.toLowerCase()&&v("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",e),e==="script"){var b=p.createElement("div");b.innerHTML="<script><\/script>";var M=b.firstChild;g=b.removeChild(M)}else if(typeof t.is=="string")g=p.createElement(e,{is:t.is});else if(g=p.createElement(e),e==="select"){var O=g;t.multiple?O.multiple=!0:t.size&&(O.size=t.size)}}else g=p.createElementNS(w,e);return w===wo&&!u&&Object.prototype.toString.call(g)==="[object HTMLUnknownElement]"&&!Un.call(sS,e)&&(sS[e]=!0,v("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",e)),g}function MO(e,t){return sE(t).createTextNode(e)}function _O(e,t,i,o){var u=ol(t,i);Eg(t,i);var p;switch(t){case"dialog":In("cancel",e),In("close",e),p=i;break;case"iframe":case"object":case"embed":In("load",e),p=i;break;case"video":case"audio":for(var g=0;g<Lh.length;g++)In(Lh[g],e);p=i;break;case"source":In("error",e),p=i;break;case"img":case"image":case"link":In("error",e),In("load",e),p=i;break;case"details":In("toggle",e),p=i;break;case"input":Mi(e,i),p=Js(e,i),In("invalid",e);break;case"option":Qt(e,i),p=i;break;case"select":Kl(e,i),p=Ju(e,i),In("invalid",e);break;case"textarea":Np(e,i),p=Op(e,i),In("invalid",e);break;default:p=i}switch(kf(t,p),EO(t,e,o,p,u),t){case"input":Ri(e),Z(e,i,!1);break;case"textarea":Ri(e),im(e);break;case"option":xn(e,i);break;case"select":kp(e,i);break;default:typeof p.onClick=="function"&&_g(e);break}}function kO(e,t,i,o,u){Eg(t,o);var p=null,g,w;switch(t){case"input":g=Js(e,i),w=Js(e,o),p=[];break;case"select":g=Ju(e,i),w=Ju(e,o),p=[];break;case"textarea":g=Op(e,i),w=Op(e,o),p=[];break;default:g=i,w=o,typeof g.onClick!="function"&&typeof w.onClick=="function"&&_g(e);break}kf(t,w);var b,M,O=null;for(b in g)if(!(w.hasOwnProperty(b)||!g.hasOwnProperty(b)||g[b]==null))if(b===Yc){var B=g[b];for(M in B)B.hasOwnProperty(M)&&(O||(O={}),O[M]="")}else b===Uh||b===Gc||b===xg||b===Cu||b===aE||(Ve.hasOwnProperty(b)?p||(p=[]):(p=p||[]).push(b,null));for(b in w){var F=w[b],q=g?.[b];if(!(!w.hasOwnProperty(b)||F===q||F==null&&q==null))if(b===Yc)if(F&&Object.freeze(F),q){for(M in q)q.hasOwnProperty(M)&&(!F||!F.hasOwnProperty(M))&&(O||(O={}),O[M]="");for(M in F)F.hasOwnProperty(M)&&q[M]!==F[M]&&(O||(O={}),O[M]=F[M])}else O||(p||(p=[]),p.push(b,O)),O=F;else if(b===Uh){var te=F?F[Cg]:void 0,ae=q?q[Cg]:void 0;te!=null&&ae!==te&&(p=p||[]).push(b,te)}else b===Gc?(typeof F=="string"||typeof F=="number")&&(p=p||[]).push(b,""+F):b===xg||b===Cu||(Ve.hasOwnProperty(b)?(F!=null&&(typeof F!="function"&&Tg(b,F),b==="onScroll"&&In("scroll",e)),!p&&q!==F&&(p=[])):(p=p||[]).push(b,F))}return O&&(P0(O,w[Yc]),(p=p||[]).push(Yc,O)),p}function AO(e,t,i,o,u){i==="input"&&u.type==="radio"&&u.name!=null&&E(e,u);var p=ol(i,o),g=ol(i,u);switch(TO(e,t,p,g),i){case"input":L(e,u);break;case"textarea":am(e,u);break;case"select":Rf(e,u);break}}function OO(e){{var t=e.toLowerCase();return ac.hasOwnProperty(t)&&ac[t]||null}}function NO(e,t,i,o,u,p,g){var w,b;switch(w=ol(t,i),Eg(t,i),t){case"dialog":In("cancel",e),In("close",e);break;case"iframe":case"object":case"embed":In("load",e);break;case"video":case"audio":for(var M=0;M<Lh.length;M++)In(Lh[M],e);break;case"source":In("error",e);break;case"img":case"image":case"link":In("error",e),In("load",e);break;case"details":In("toggle",e);break;case"input":Mi(e,i),In("invalid",e);break;case"option":Qt(e,i);break;case"select":Kl(e,i),In("invalid",e);break;case"textarea":Np(e,i),In("invalid",e);break}kf(t,i);{b=new Set;for(var O=e.attributes,B=0;B<O.length;B++){var F=O[B].name.toLowerCase();switch(F){case"value":break;case"checked":break;case"selected":break;default:b.add(O[B].name)}}}var q=null;for(var te in i)if(i.hasOwnProperty(te)){var ae=i[te];if(te===Gc)typeof ae=="string"?e.textContent!==ae&&(i[Cu]!==!0&&Mg(e.textContent,ae,p,g),q=[Gc,ae]):typeof ae=="number"&&e.textContent!==""+ae&&(i[Cu]!==!0&&Mg(e.textContent,ae,p,g),q=[Gc,""+ae]);else if(Ve.hasOwnProperty(te))ae!=null&&(typeof ae!="function"&&Tg(te,ae),te==="onScroll"&&In("scroll",e));else if(g&&typeof w=="boolean"){var Le=void 0,ct=wn(te);if(i[Cu]!==!0){if(!(te===xg||te===Cu||te==="value"||te==="checked"||te==="selected")){if(te===Uh){var et=e.innerHTML,Xt=ae?ae[Cg]:void 0;if(Xt!=null){var Bt=lE(e,Xt);Bt!==et&&zh(te,et,Bt)}}else if(te===Yc){if(b.delete(te),oE){var W=D0(ae);Le=e.getAttribute("style"),W!==Le&&zh(te,Le,W)}}else if(w&&!V)b.delete(te.toLowerCase()),Le=Hl(e,te,ae),ae!==Le&&zh(te,Le,ae);else if(!On(te,ct,w)&&!pr(te,ae,ct,w)){var ie=!1;if(ct!==null)b.delete(ct.attributeName),Le=qo(e,te,ae,ct);else{var X=o;if(X===wo&&(X=Pp(t)),X===wo)b.delete(te.toLowerCase());else{var we=OO(te);we!==null&&we!==te&&(ie=!0,b.delete(we)),b.delete(te)}Le=Hl(e,te,ae)}var Fe=V;!Fe&&ae!==Le&&!ie&&zh(te,Le,ae)}}}}}switch(g&&b.size>0&&i[Cu]!==!0&&iE(b),t){case"input":Ri(e),Z(e,i,!0);break;case"textarea":Ri(e),im(e);break;case"select":case"option":break;default:typeof i.onClick=="function"&&_g(e);break}return q}function DO(e,t,i){var o=e.nodeValue!==t;return o}function uS(e,t){{if(li)return;li=!0,v("Did not expect server HTML to contain a <%s> in <%s>.",t.nodeName.toLowerCase(),e.nodeName.toLowerCase())}}function cS(e,t){{if(li)return;li=!0,v('Did not expect server HTML to contain the text node "%s" in <%s>.',t.nodeValue,e.nodeName.toLowerCase())}}function fS(e,t,i){{if(li)return;li=!0,v("Expected server HTML to contain a matching <%s> in <%s>.",t,e.nodeName.toLowerCase())}}function dS(e,t){{if(t===""||li)return;li=!0,v('Expected server HTML to contain a matching text node for "%s" in <%s>.',t,e.nodeName.toLowerCase())}}function LO(e,t,i){switch(t){case"input":re(e,i);return;case"textarea":k0(e,i);return;case"select":Ap(e,i);return}}var Fh=function(){},jh=function(){};{var PO=["address","applet","area","article","aside","base","basefont","bgsound","blockquote","body","br","button","caption","center","col","colgroup","dd","details","dir","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","img","input","isindex","li","link","listing","main","marquee","menu","menuitem","meta","nav","noembed","noframes","noscript","object","ol","p","param","plaintext","pre","script","section","select","source","style","summary","table","tbody","td","template","textarea","tfoot","th","thead","title","tr","track","ul","wbr","xmp"],uE=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],IO=uE.concat(["button"]),UO=["dd","dt","li","option","optgroup","p","rp","rt"],cE={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};jh=function(e,t){var i=At({},e||cE),o={tag:t};return uE.indexOf(t)!==-1&&(i.aTagInScope=null,i.buttonTagInScope=null,i.nobrTagInScope=null),IO.indexOf(t)!==-1&&(i.pTagInButtonScope=null),PO.indexOf(t)!==-1&&t!=="address"&&t!=="div"&&t!=="p"&&(i.listItemTagAutoclosing=null,i.dlItemTagAutoclosing=null),i.current=o,t==="form"&&(i.formTag=o),t==="a"&&(i.aTagInScope=o),t==="button"&&(i.buttonTagInScope=o),t==="nobr"&&(i.nobrTagInScope=o),t==="p"&&(i.pTagInButtonScope=o),t==="li"&&(i.listItemTagAutoclosing=o),(t==="dd"||t==="dt")&&(i.dlItemTagAutoclosing=o),i};var zO=function(e,t){switch(t){case"select":return e==="option"||e==="optgroup"||e==="#text";case"optgroup":return e==="option"||e==="#text";case"option":return e==="#text";case"tr":return e==="th"||e==="td"||e==="style"||e==="script"||e==="template";case"tbody":case"thead":case"tfoot":return e==="tr"||e==="style"||e==="script"||e==="template";case"colgroup":return e==="col"||e==="template";case"table":return e==="caption"||e==="colgroup"||e==="tbody"||e==="tfoot"||e==="thead"||e==="style"||e==="script"||e==="template";case"head":return e==="base"||e==="basefont"||e==="bgsound"||e==="link"||e==="meta"||e==="title"||e==="noscript"||e==="noframes"||e==="style"||e==="script"||e==="template";case"html":return e==="head"||e==="body"||e==="frameset";case"frameset":return e==="frame";case"#document":return e==="html"}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t!=="h1"&&t!=="h2"&&t!=="h3"&&t!=="h4"&&t!=="h5"&&t!=="h6";case"rp":case"rt":return UO.indexOf(t)===-1;case"body":case"caption":case"col":case"colgroup":case"frameset":case"frame":case"head":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return t==null}return!0},FO=function(e,t){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null},fE={};Fh=function(e,t,i){i=i||cE;var o=i.current,u=o&&o.tag;t!=null&&(e!=null&&v("validateDOMNesting: when childText is passed, childTag should be null"),e="#text");var p=zO(e,u)?null:o,g=p?null:FO(e,i),w=p||g;if(w){var b=w.tag,M=!!p+"|"+e+"|"+b;if(!fE[M]){fE[M]=!0;var O=e,B="";if(e==="#text"?/\S/.test(t)?O="Text nodes":(O="Whitespace text nodes",B=" Make sure you don't have any extra whitespace between tags on each line of your source code."):O="<"+e+">",p){var F="";b==="table"&&e==="tr"&&(F+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),v("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",O,b,B,F)}else v("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",O,b)}}}}var kg="suppressHydrationWarning",Ag="$",Og="/$",Bh="$?",Hh="$!",jO="style",pS=null,hS=null;function BO(e){var t,i,o=e.nodeType;switch(o){case xo:case Up:{t=o===xo?"#document":"#fragment";var u=e.documentElement;i=u?u.namespaceURI:Ip(null,"");break}default:{var p=o===Xn?e.parentNode:e,g=p.namespaceURI||null;t=p.tagName,i=Ip(g,t);break}}{var w=t.toLowerCase(),b=jh(null,w);return{namespace:i,ancestorInfo:b}}}function HO(e,t,i){{var o=e,u=Ip(o.namespace,t),p=jh(o.ancestorInfo,t);return{namespace:u,ancestorInfo:p}}}function a3(e){return e}function VO(e){pS=er(),hS=rO();var t=null;return cr(!1),t}function $O(e){aO(hS),cr(pS),pS=null,hS=null}function GO(e,t,i,o,u){var p;{var g=o;if(Fh(e,null,g.ancestorInfo),typeof t.children=="string"||typeof t.children=="number"){var w=""+t.children,b=jh(g.ancestorInfo,e);Fh(null,w,b)}p=g.namespace}var M=RO(e,t,i,p);return Gh(u,M),xS(M,t),M}function YO(e,t){e.appendChild(t)}function WO(e,t,i,o,u){switch(_O(e,t,i,o),t){case"button":case"input":case"select":case"textarea":return!!i.autoFocus;case"img":return!0;default:return!1}}function XO(e,t,i,o,u,p){{var g=p;if(typeof o.children!=typeof i.children&&(typeof o.children=="string"||typeof o.children=="number")){var w=""+o.children,b=jh(g.ancestorInfo,t);Fh(null,w,b)}}return kO(e,t,i,o)}function vS(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}function KO(e,t,i,o){{var u=i;Fh(null,e,u.ancestorInfo)}var p=MO(e,t);return Gh(o,p),p}function QO(){var e=window.event;return e===void 0?ri:xd(e.type)}var mS=typeof setTimeout=="function"?setTimeout:void 0,qO=typeof clearTimeout=="function"?clearTimeout:void 0,gS=-1,dE=typeof Promise=="function"?Promise:void 0,ZO=typeof queueMicrotask=="function"?queueMicrotask:typeof dE<"u"?function(e){return dE.resolve(null).then(e).catch(JO)}:mS;function JO(e){setTimeout(function(){throw e})}function eN(e,t,i,o){switch(t){case"button":case"input":case"select":case"textarea":i.autoFocus&&e.focus();return;case"img":{i.src&&(e.src=i.src);return}}}function tN(e,t,i,o,u,p){AO(e,t,i,o,u),xS(e,u)}function pE(e){eu(e,"")}function nN(e,t,i){e.nodeValue=i}function rN(e,t){e.appendChild(t)}function aN(e,t){var i;e.nodeType===Xn?(i=e.parentNode,i.insertBefore(t,e)):(i=e,i.appendChild(t));var o=e._reactRootContainer;o==null&&i.onclick===null&&_g(i)}function iN(e,t,i){e.insertBefore(t,i)}function oN(e,t,i){e.nodeType===Xn?e.parentNode.insertBefore(t,i):e.insertBefore(t,i)}function lN(e,t){e.removeChild(t)}function sN(e,t){e.nodeType===Xn?e.parentNode.removeChild(t):e.removeChild(t)}function yS(e,t){var i=t,o=0;do{var u=i.nextSibling;if(e.removeChild(i),u&&u.nodeType===Xn){var p=u.data;if(p===Og)if(o===0){e.removeChild(u),ms(t);return}else o--;else(p===Ag||p===Bh||p===Hh)&&o++}i=u}while(i);ms(t)}function uN(e,t){e.nodeType===Xn?yS(e.parentNode,t):e.nodeType===pa&&yS(e,t),ms(e)}function cN(e){e=e;var t=e.style;typeof t.setProperty=="function"?t.setProperty("display","none","important"):t.display="none"}function fN(e){e.nodeValue=""}function dN(e,t){e=e;var i=t[jO],o=i!=null&&i.hasOwnProperty("display")?i.display:null;e.style.display=_f("display",o)}function pN(e,t){e.nodeValue=t}function hN(e){e.nodeType===pa?e.textContent="":e.nodeType===xo&&e.documentElement&&e.removeChild(e.documentElement)}function vN(e,t,i){return e.nodeType!==pa||t.toLowerCase()!==e.nodeName.toLowerCase()?null:e}function mN(e,t){return t===""||e.nodeType!==bo?null:e}function gN(e){return e.nodeType!==Xn?null:e}function hE(e){return e.data===Bh}function SS(e){return e.data===Hh}function yN(e){var t=e.nextSibling&&e.nextSibling.dataset,i,o,u;return t&&(i=t.dgst,o=t.msg,u=t.stck),{message:o,digest:i,stack:u}}function SN(e,t){e._reactRetry=t}function Ng(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===pa||t===bo)break;if(t===Xn){var i=e.data;if(i===Ag||i===Hh||i===Bh)break;if(i===Og)return null}}return e}function Vh(e){return Ng(e.nextSibling)}function wN(e){return Ng(e.firstChild)}function bN(e){return Ng(e.firstChild)}function xN(e){return Ng(e.nextSibling)}function CN(e,t,i,o,u,p,g){Gh(p,e),xS(e,i);var w;{var b=u;w=b.namespace}var M=(p.mode&Lt)!==it;return NO(e,t,i,w,o,M,g)}function EN(e,t,i,o){return Gh(i,e),i.mode&Lt,DO(e,t)}function TN(e,t){Gh(t,e)}function RN(e){for(var t=e.nextSibling,i=0;t;){if(t.nodeType===Xn){var o=t.data;if(o===Og){if(i===0)return Vh(t);i--}else(o===Ag||o===Hh||o===Bh)&&i++}t=t.nextSibling}return null}function vE(e){for(var t=e.previousSibling,i=0;t;){if(t.nodeType===Xn){var o=t.data;if(o===Ag||o===Hh||o===Bh){if(i===0)return t;i--}else o===Og&&i++}t=t.previousSibling}return null}function MN(e){ms(e)}function _N(e){ms(e)}function kN(e){return e!=="head"&&e!=="body"}function AN(e,t,i,o){var u=!0;Mg(t.nodeValue,i,o,u)}function ON(e,t,i,o,u,p){if(t[kg]!==!0){var g=!0;Mg(o.nodeValue,u,p,g)}}function NN(e,t){t.nodeType===pa?uS(e,t):t.nodeType===Xn||cS(e,t)}function DN(e,t){{var i=e.parentNode;i!==null&&(t.nodeType===pa?uS(i,t):t.nodeType===Xn||cS(i,t))}}function LN(e,t,i,o,u){(u||t[kg]!==!0)&&(o.nodeType===pa?uS(i,o):o.nodeType===Xn||cS(i,o))}function PN(e,t,i){fS(e,t)}function IN(e,t){dS(e,t)}function UN(e,t,i){{var o=e.parentNode;o!==null&&fS(o,t)}}function zN(e,t){{var i=e.parentNode;i!==null&&dS(i,t)}}function FN(e,t,i,o,u,p){(p||t[kg]!==!0)&&fS(i,o)}function jN(e,t,i,o,u){(u||t[kg]!==!0)&&dS(i,o)}function BN(e){v("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",e.nodeName.toLowerCase())}function HN(e){Ph(e)}var Id=Math.random().toString(36).slice(2),Ud="__reactFiber$"+Id,wS="__reactProps$"+Id,$h="__reactContainer$"+Id,bS="__reactEvents$"+Id,VN="__reactListeners$"+Id,$N="__reactHandles$"+Id;function GN(e){delete e[Ud],delete e[wS],delete e[bS],delete e[VN],delete e[$N]}function Gh(e,t){t[Ud]=e}function Dg(e,t){t[$h]=e}function mE(e){e[$h]=null}function Yh(e){return!!e[$h]}function Wc(e){var t=e[Ud];if(t)return t;for(var i=e.parentNode;i;){if(t=i[$h]||i[Ud],t){var o=t.alternate;if(t.child!==null||o!==null&&o.child!==null)for(var u=vE(e);u!==null;){var p=u[Ud];if(p)return p;u=vE(u)}return t}e=i,i=e.parentNode}return null}function Eu(e){var t=e[Ud]||e[$h];return t&&(t.tag===N||t.tag===z||t.tag===le||t.tag===_)?t:null}function zd(e){if(e.tag===N||e.tag===z)return e.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function Lg(e){return e[wS]||null}function xS(e,t){e[wS]=t}function YN(e){var t=e[bS];return t===void 0&&(t=e[bS]=new Set),t}var gE={},yE=l.ReactDebugCurrentFrame;function Pg(e){if(e){var t=e._owner,i=go(e.type,e._source,t?t.type:null);yE.setExtraStackFrame(i)}else yE.setExtraStackFrame(null)}function Do(e,t,i,o,u){{var p=Function.call.bind(Un);for(var g in e)if(p(e,g)){var w=void 0;try{if(typeof e[g]!="function"){var b=Error((o||"React class")+": "+i+" type `"+g+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[g]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw b.name="Invariant Violation",b}w=e[g](t,g,o,i,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(M){w=M}w&&!(w instanceof Error)&&(Pg(u),v("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",o||"React class",i,g,typeof w),Pg(null)),w instanceof Error&&!(w.message in gE)&&(gE[w.message]=!0,Pg(u),v("Failed %s type: %s",i,w.message),Pg(null))}}}var CS=[],Ig;Ig=[];var xs=-1;function Tu(e){return{current:e}}function Ea(e,t){if(xs<0){v("Unexpected pop.");return}t!==Ig[xs]&&v("Unexpected Fiber popped."),e.current=CS[xs],CS[xs]=null,Ig[xs]=null,xs--}function Ta(e,t,i){xs++,CS[xs]=e.current,Ig[xs]=i,e.current=t}var ES;ES={};var Li={};Object.freeze(Li);var Cs=Tu(Li),Rl=Tu(!1),TS=Li;function Fd(e,t,i){return i&&Ml(t)?TS:Cs.current}function SE(e,t,i){{var o=e.stateNode;o.__reactInternalMemoizedUnmaskedChildContext=t,o.__reactInternalMemoizedMaskedChildContext=i}}function jd(e,t){{var i=e.type,o=i.contextTypes;if(!o)return Li;var u=e.stateNode;if(u&&u.__reactInternalMemoizedUnmaskedChildContext===t)return u.__reactInternalMemoizedMaskedChildContext;var p={};for(var g in o)p[g]=t[g];{var w=bt(e)||"Unknown";Do(o,p,"context",w)}return u&&SE(e,t,p),p}}function Ug(){return Rl.current}function Ml(e){{var t=e.childContextTypes;return t!=null}}function zg(e){Ea(Rl,e),Ea(Cs,e)}function RS(e){Ea(Rl,e),Ea(Cs,e)}function wE(e,t,i){{if(Cs.current!==Li)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");Ta(Cs,t,e),Ta(Rl,i,e)}}function bE(e,t,i){{var o=e.stateNode,u=t.childContextTypes;if(typeof o.getChildContext!="function"){{var p=bt(e)||"Unknown";ES[p]||(ES[p]=!0,v("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",p,p))}return i}var g=o.getChildContext();for(var w in g)if(!(w in u))throw new Error((bt(e)||"Unknown")+'.getChildContext(): key "'+w+'" is not defined in childContextTypes.');{var b=bt(e)||"Unknown";Do(u,g,"child context",b)}return At({},i,g)}}function Fg(e){{var t=e.stateNode,i=t&&t.__reactInternalMemoizedMergedChildContext||Li;return TS=Cs.current,Ta(Cs,i,e),Ta(Rl,Rl.current,e),!0}}function xE(e,t,i){{var o=e.stateNode;if(!o)throw new Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");if(i){var u=bE(e,t,TS);o.__reactInternalMemoizedMergedChildContext=u,Ea(Rl,e),Ea(Cs,e),Ta(Cs,u,e),Ta(Rl,i,e)}else Ea(Rl,e),Ta(Rl,i,e)}}function WN(e){{if(!ns(e)||e.tag!==R)throw new Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");var t=e;do{switch(t.tag){case _:return t.stateNode.context;case R:{var i=t.type;if(Ml(i))return t.stateNode.__reactInternalMemoizedMergedChildContext;break}}t=t.return}while(t!==null);throw new Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}}var Ru=0,jg=1,Es=null,MS=!1,_S=!1;function CE(e){Es===null?Es=[e]:Es.push(e)}function XN(e){MS=!0,CE(e)}function EE(){MS&&Mu()}function Mu(){if(!_S&&Es!==null){_S=!0;var e=0,t=ii();try{var i=!0,o=Es;for(Jn(Kr);e<o.length;e++){var u=o[e];do u=u(i);while(u!==null)}Es=null,MS=!1}catch(p){throw Es!==null&&(Es=Es.slice(e+1)),Kp(dc,Mu),p}finally{Jn(t),_S=!1}}return null}var Bd=[],Hd=0,Bg=null,Hg=0,oo=[],lo=0,Xc=null,Ts=1,Rs="";function KN(e){return Qc(),(e.flags&Qi)!==at}function QN(e){return Qc(),Hg}function qN(){var e=Rs,t=Ts,i=t&~ZN(t);return i.toString(32)+e}function Kc(e,t){Qc(),Bd[Hd++]=Hg,Bd[Hd++]=Bg,Bg=e,Hg=t}function TE(e,t,i){Qc(),oo[lo++]=Ts,oo[lo++]=Rs,oo[lo++]=Xc,Xc=e;var o=Ts,u=Rs,p=Vg(o)-1,g=o&~(1<<p),w=i+1,b=Vg(t)+p;if(b>30){var M=p-p%5,O=(1<<M)-1,B=(g&O).toString(32),F=g>>M,q=p-M,te=Vg(t)+q,ae=w<<q,Le=ae|F,ct=B+u;Ts=1<<te|Le,Rs=ct}else{var et=w<<p,Xt=et|g,Bt=u;Ts=1<<b|Xt,Rs=Bt}}function kS(e){Qc();var t=e.return;if(t!==null){var i=1,o=0;Kc(e,i),TE(e,i,o)}}function Vg(e){return 32-qn(e)}function ZN(e){return 1<<Vg(e)-1}function AS(e){for(;e===Bg;)Bg=Bd[--Hd],Bd[Hd]=null,Hg=Bd[--Hd],Bd[Hd]=null;for(;e===Xc;)Xc=oo[--lo],oo[lo]=null,Rs=oo[--lo],oo[lo]=null,Ts=oo[--lo],oo[lo]=null}function JN(){return Qc(),Xc!==null?{id:Ts,overflow:Rs}:null}function eD(e,t){Qc(),oo[lo++]=Ts,oo[lo++]=Rs,oo[lo++]=Xc,Ts=t.id,Rs=t.overflow,Xc=e}function Qc(){ea()||v("Expected to be hydrating. This is a bug in React. Please file an issue.")}var Jr=null,so=null,Lo=!1,qc=!1,_u=null;function tD(){Lo&&v("We should not be hydrating here. This is a bug in React. Please file a bug.")}function RE(){qc=!0}function nD(){return qc}function rD(e){var t=e.stateNode.containerInfo;return so=bN(t),Jr=e,Lo=!0,_u=null,qc=!1,!0}function aD(e,t,i){return so=xN(t),Jr=e,Lo=!0,_u=null,qc=!1,i!==null&&eD(e,i),!0}function ME(e,t){switch(e.tag){case _:{NN(e.stateNode.containerInfo,t);break}case N:{var i=(e.mode&Lt)!==it;LN(e.type,e.memoizedProps,e.stateNode,t,i);break}case le:{var o=e.memoizedState;o.dehydrated!==null&&DN(o.dehydrated,t);break}}}function _E(e,t){ME(e,t);var i=sP();i.stateNode=t,i.return=e;var o=e.deletions;o===null?(e.deletions=[i],e.flags|=Za):o.push(i)}function OS(e,t){{if(qc)return;switch(e.tag){case _:{var i=e.stateNode.containerInfo;switch(t.tag){case N:var o=t.type;t.pendingProps,PN(i,o);break;case z:var u=t.pendingProps;IN(i,u);break}break}case N:{var p=e.type,g=e.memoizedProps,w=e.stateNode;switch(t.tag){case N:{var b=t.type,M=t.pendingProps,O=(e.mode&Lt)!==it;FN(p,g,w,b,M,O);break}case z:{var B=t.pendingProps,F=(e.mode&Lt)!==it;jN(p,g,w,B,F);break}}break}case le:{var q=e.memoizedState,te=q.dehydrated;if(te!==null)switch(t.tag){case N:var ae=t.type;t.pendingProps,UN(te,ae);break;case z:var Le=t.pendingProps;zN(te,Le);break}break}default:return}}}function kE(e,t){t.flags=t.flags&~va|Dn,OS(e,t)}function AE(e,t){switch(e.tag){case N:{var i=e.type;e.pendingProps;var o=vN(t,i);return o!==null?(e.stateNode=o,Jr=e,so=wN(o),!0):!1}case z:{var u=e.pendingProps,p=mN(t,u);return p!==null?(e.stateNode=p,Jr=e,so=null,!0):!1}case le:{var g=gN(t);if(g!==null){var w={dehydrated:g,treeContext:JN(),retryLane:Sa};e.memoizedState=w;var b=uP(g);return b.return=e,e.child=b,Jr=e,so=null,!0}return!1}default:return!1}}function NS(e){return(e.mode&Lt)!==it&&(e.flags&nt)===at}function DS(e){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function LS(e){if(Lo){var t=so;if(!t){NS(e)&&(OS(Jr,e),DS()),kE(Jr,e),Lo=!1,Jr=e;return}var i=t;if(!AE(e,t)){NS(e)&&(OS(Jr,e),DS()),t=Vh(i);var o=Jr;if(!t||!AE(e,t)){kE(Jr,e),Lo=!1,Jr=e;return}_E(o,i)}}}function iD(e,t,i){var o=e.stateNode,u=!qc,p=CN(o,e.type,e.memoizedProps,t,i,e,u);return e.updateQueue=p,p!==null}function oD(e){var t=e.stateNode,i=e.memoizedProps,o=EN(t,i,e);if(o){var u=Jr;if(u!==null)switch(u.tag){case _:{var p=u.stateNode.containerInfo,g=(u.mode&Lt)!==it;AN(p,t,i,g);break}case N:{var w=u.type,b=u.memoizedProps,M=u.stateNode,O=(u.mode&Lt)!==it;ON(w,b,M,t,i,O);break}}}return o}function lD(e){var t=e.memoizedState,i=t!==null?t.dehydrated:null;if(!i)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");TN(i,e)}function sD(e){var t=e.memoizedState,i=t!==null?t.dehydrated:null;if(!i)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return RN(i)}function OE(e){for(var t=e.return;t!==null&&t.tag!==N&&t.tag!==_&&t.tag!==le;)t=t.return;Jr=t}function $g(e){if(e!==Jr)return!1;if(!Lo)return OE(e),Lo=!0,!1;if(e.tag!==_&&(e.tag!==N||kN(e.type)&&!vS(e.type,e.memoizedProps))){var t=so;if(t)if(NS(e))NE(e),DS();else for(;t;)_E(e,t),t=Vh(t)}return OE(e),e.tag===le?so=sD(e):so=Jr?Vh(e.stateNode):null,!0}function uD(){return Lo&&so!==null}function NE(e){for(var t=so;t;)ME(e,t),t=Vh(t)}function Vd(){Jr=null,so=null,Lo=!1,qc=!1}function DE(){_u!==null&&(R1(_u),_u=null)}function ea(){return Lo}function PS(e){_u===null?_u=[e]:_u.push(e)}var cD=l.ReactCurrentBatchConfig,fD=null;function dD(){return cD.transition}var Po={recordUnsafeLifecycleWarnings:function(e,t){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(e,t){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var pD=function(e){for(var t=null,i=e;i!==null;)i.mode&pn&&(t=i),i=i.return;return t},Zc=function(e){var t=[];return e.forEach(function(i){t.push(i)}),t.sort().join(", ")},Wh=[],Xh=[],Kh=[],Qh=[],qh=[],Zh=[],Jc=new Set;Po.recordUnsafeLifecycleWarnings=function(e,t){Jc.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&Wh.push(e),e.mode&pn&&typeof t.UNSAFE_componentWillMount=="function"&&Xh.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Kh.push(e),e.mode&pn&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&Qh.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&qh.push(e),e.mode&pn&&typeof t.UNSAFE_componentWillUpdate=="function"&&Zh.push(e))},Po.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;Wh.length>0&&(Wh.forEach(function(F){e.add(bt(F)||"Component"),Jc.add(F.type)}),Wh=[]);var t=new Set;Xh.length>0&&(Xh.forEach(function(F){t.add(bt(F)||"Component"),Jc.add(F.type)}),Xh=[]);var i=new Set;Kh.length>0&&(Kh.forEach(function(F){i.add(bt(F)||"Component"),Jc.add(F.type)}),Kh=[]);var o=new Set;Qh.length>0&&(Qh.forEach(function(F){o.add(bt(F)||"Component"),Jc.add(F.type)}),Qh=[]);var u=new Set;qh.length>0&&(qh.forEach(function(F){u.add(bt(F)||"Component"),Jc.add(F.type)}),qh=[]);var p=new Set;if(Zh.length>0&&(Zh.forEach(function(F){p.add(bt(F)||"Component"),Jc.add(F.type)}),Zh=[]),t.size>0){var g=Zc(t);v(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
129
|
+
|
|
130
|
+
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
131
|
+
|
|
132
|
+
Please update the following components: %s`,g)}if(o.size>0){var w=Zc(o);v(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
133
|
+
|
|
134
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
135
|
+
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state
|
|
136
|
+
|
|
137
|
+
Please update the following components: %s`,w)}if(p.size>0){var b=Zc(p);v(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
138
|
+
|
|
139
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
140
|
+
|
|
141
|
+
Please update the following components: %s`,b)}if(e.size>0){var M=Zc(e);y(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
142
|
+
|
|
143
|
+
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
144
|
+
* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
145
|
+
|
|
146
|
+
Please update the following components: %s`,M)}if(i.size>0){var O=Zc(i);y(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
147
|
+
|
|
148
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
149
|
+
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state
|
|
150
|
+
* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
151
|
+
|
|
152
|
+
Please update the following components: %s`,O)}if(u.size>0){var B=Zc(u);y(`componentWillUpdate has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
153
|
+
|
|
154
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
155
|
+
* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
156
|
+
|
|
157
|
+
Please update the following components: %s`,B)}};var Gg=new Map,LE=new Set;Po.recordLegacyContextWarning=function(e,t){var i=pD(e);if(i===null){v("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.");return}if(!LE.has(e.type)){var o=Gg.get(i);(e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext=="function")&&(o===void 0&&(o=[],Gg.set(i,o)),o.push(e))}},Po.flushLegacyContextWarning=function(){Gg.forEach(function(e,t){if(e.length!==0){var i=e[0],o=new Set;e.forEach(function(p){o.add(bt(p)||"Component"),LE.add(p.type)});var u=Zc(o);try{cn(i),v(`Legacy context API has been detected within a strict-mode tree.
|
|
158
|
+
|
|
159
|
+
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
|
|
160
|
+
|
|
161
|
+
Please update the following components: %s
|
|
162
|
+
|
|
163
|
+
Learn more about this warning here: https://reactjs.org/link/legacy-context`,u)}finally{Rn()}}})},Po.discardPendingWarnings=function(){Wh=[],Xh=[],Kh=[],Qh=[],qh=[],Zh=[],Gg=new Map}}var IS,US,zS,FS,jS,PE=function(e,t){};IS=!1,US=!1,zS={},FS={},jS={},PE=function(e,t){if(!(e===null||typeof e!="object")&&!(!e._store||e._store.validated||e.key!=null)){if(typeof e._store!="object")throw new Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");e._store.validated=!0;var i=bt(t)||"Component";FS[i]||(FS[i]=!0,v('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.'))}};function hD(e){return e.prototype&&e.prototype.isReactComponent}function Jh(e,t,i){var o=i.ref;if(o!==null&&typeof o!="function"&&typeof o!="object"){if((e.mode&pn||oe)&&!(i._owner&&i._self&&i._owner.stateNode!==i._self)&&!(i._owner&&i._owner.tag!==R)&&!(typeof i.type=="function"&&!hD(i.type))&&i._owner){var u=bt(e)||"Component";zS[u]||(v('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',u,o),zS[u]=!0)}if(i._owner){var p=i._owner,g;if(p){var w=p;if(w.tag!==R)throw new Error("Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref");g=w.stateNode}if(!g)throw new Error("Missing owner for string ref "+o+". This error is likely caused by a bug in React. Please file an issue.");var b=g;zi(o,"ref");var M=""+o;if(t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===M)return t.ref;var O=function(B){var F=b.refs;B===null?delete F[M]:F[M]=B};return O._stringRef=M,O}else{if(typeof o!="string")throw new Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null.");if(!i._owner)throw new Error("Element ref was specified as a string ("+o+`) but no owner was set. This could happen for one of the following reasons:
|
|
164
|
+
1. You may be adding a ref to a function component
|
|
165
|
+
2. You may be adding a ref to a component that was not created inside a component's render method
|
|
166
|
+
3. You have multiple copies of React loaded
|
|
167
|
+
See https://reactjs.org/link/refs-must-have-owner for more information.`)}}return o}function Yg(e,t){var i=Object.prototype.toString.call(t);throw new Error("Objects are not valid as a React child (found: "+(i==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":i)+"). If you meant to render a collection of children, use an array instead.")}function Wg(e){{var t=bt(e)||"Component";if(jS[t])return;jS[t]=!0,v("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}}function IE(e){var t=e._payload,i=e._init;return i(t)}function UE(e){function t(W,ie){if(e){var X=W.deletions;X===null?(W.deletions=[ie],W.flags|=Za):X.push(ie)}}function i(W,ie){if(!e)return null;for(var X=ie;X!==null;)t(W,X),X=X.sibling;return null}function o(W,ie){for(var X=new Map,we=ie;we!==null;)we.key!==null?X.set(we.key,we):X.set(we.index,we),we=we.sibling;return X}function u(W,ie){var X=uf(W,ie);return X.index=0,X.sibling=null,X}function p(W,ie,X){if(W.index=X,!e)return W.flags|=Qi,ie;var we=W.alternate;if(we!==null){var Fe=we.index;return Fe<ie?(W.flags|=Dn,ie):Fe}else return W.flags|=Dn,ie}function g(W){return e&&W.alternate===null&&(W.flags|=Dn),W}function w(W,ie,X,we){if(ie===null||ie.tag!==z){var Fe=Pb(X,W.mode,we);return Fe.return=W,Fe}else{var Ie=u(ie,X);return Ie.return=W,Ie}}function b(W,ie,X,we){var Fe=X.type;if(Fe===ji)return O(W,ie,X.props.children,we,X.key);if(ie!==null&&(ie.elementType===Fe||H1(ie,X)||typeof Fe=="object"&&Fe!==null&&Fe.$$typeof===Ct&&IE(Fe)===ie.type)){var Ie=u(ie,X.props);return Ie.ref=Jh(W,ie,X),Ie.return=W,Ie._debugSource=X._source,Ie._debugOwner=X._owner,Ie}var mt=Lb(X,W.mode,we);return mt.ref=Jh(W,ie,X),mt.return=W,mt}function M(W,ie,X,we){if(ie===null||ie.tag!==k||ie.stateNode.containerInfo!==X.containerInfo||ie.stateNode.implementation!==X.implementation){var Fe=Ib(X,W.mode,we);return Fe.return=W,Fe}else{var Ie=u(ie,X.children||[]);return Ie.return=W,Ie}}function O(W,ie,X,we,Fe){if(ie===null||ie.tag!==G){var Ie=Fu(X,W.mode,we,Fe);return Ie.return=W,Ie}else{var mt=u(ie,X);return mt.return=W,mt}}function B(W,ie,X){if(typeof ie=="string"&&ie!==""||typeof ie=="number"){var we=Pb(""+ie,W.mode,X);return we.return=W,we}if(typeof ie=="object"&&ie!==null){switch(ie.$$typeof){case Gr:{var Fe=Lb(ie,W.mode,X);return Fe.ref=Jh(W,null,ie),Fe.return=W,Fe}case br:{var Ie=Ib(ie,W.mode,X);return Ie.return=W,Ie}case Ct:{var mt=ie._payload,Tt=ie._init;return B(W,Tt(mt),X)}}if(Nt(ie)||_t(ie)){var vn=Fu(ie,W.mode,X,null);return vn.return=W,vn}Yg(W,ie)}return typeof ie=="function"&&Wg(W),null}function F(W,ie,X,we){var Fe=ie!==null?ie.key:null;if(typeof X=="string"&&X!==""||typeof X=="number")return Fe!==null?null:w(W,ie,""+X,we);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case Gr:return X.key===Fe?b(W,ie,X,we):null;case br:return X.key===Fe?M(W,ie,X,we):null;case Ct:{var Ie=X._payload,mt=X._init;return F(W,ie,mt(Ie),we)}}if(Nt(X)||_t(X))return Fe!==null?null:O(W,ie,X,we,null);Yg(W,X)}return typeof X=="function"&&Wg(W),null}function q(W,ie,X,we,Fe){if(typeof we=="string"&&we!==""||typeof we=="number"){var Ie=W.get(X)||null;return w(ie,Ie,""+we,Fe)}if(typeof we=="object"&&we!==null){switch(we.$$typeof){case Gr:{var mt=W.get(we.key===null?X:we.key)||null;return b(ie,mt,we,Fe)}case br:{var Tt=W.get(we.key===null?X:we.key)||null;return M(ie,Tt,we,Fe)}case Ct:var vn=we._payload,nn=we._init;return q(W,ie,X,nn(vn),Fe)}if(Nt(we)||_t(we)){var fr=W.get(X)||null;return O(ie,fr,we,Fe,null)}Yg(ie,we)}return typeof we=="function"&&Wg(ie),null}function te(W,ie,X){{if(typeof W!="object"||W===null)return ie;switch(W.$$typeof){case Gr:case br:PE(W,X);var we=W.key;if(typeof we!="string")break;if(ie===null){ie=new Set,ie.add(we);break}if(!ie.has(we)){ie.add(we);break}v("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",we);break;case Ct:var Fe=W._payload,Ie=W._init;te(Ie(Fe),ie,X);break}}return ie}function ae(W,ie,X,we){for(var Fe=null,Ie=0;Ie<X.length;Ie++){var mt=X[Ie];Fe=te(mt,Fe,W)}for(var Tt=null,vn=null,nn=ie,fr=0,rn=0,nr=null;nn!==null&&rn<X.length;rn++){nn.index>rn?(nr=nn,nn=null):nr=nn.sibling;var Ma=F(W,nn,X[rn],we);if(Ma===null){nn===null&&(nn=nr);break}e&&nn&&Ma.alternate===null&&t(W,nn),fr=p(Ma,fr,rn),vn===null?Tt=Ma:vn.sibling=Ma,vn=Ma,nn=nr}if(rn===X.length){if(i(W,nn),ea()){var la=rn;Kc(W,la)}return Tt}if(nn===null){for(;rn<X.length;rn++){var Ii=B(W,X[rn],we);Ii!==null&&(fr=p(Ii,fr,rn),vn===null?Tt=Ii:vn.sibling=Ii,vn=Ii)}if(ea()){var Ha=rn;Kc(W,Ha)}return Tt}for(var Va=o(W,nn);rn<X.length;rn++){var _a=q(Va,W,rn,X[rn],we);_a!==null&&(e&&_a.alternate!==null&&Va.delete(_a.key===null?rn:_a.key),fr=p(_a,fr,rn),vn===null?Tt=_a:vn.sibling=_a,vn=_a)}if(e&&Va.forEach(function(sp){return t(W,sp)}),ea()){var Ds=rn;Kc(W,Ds)}return Tt}function Le(W,ie,X,we){var Fe=_t(X);if(typeof Fe!="function")throw new Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");{typeof Symbol=="function"&&X[Symbol.toStringTag]==="Generator"&&(US||v("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),US=!0),X.entries===Fe&&(IS||v("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),IS=!0);var Ie=Fe.call(X);if(Ie)for(var mt=null,Tt=Ie.next();!Tt.done;Tt=Ie.next()){var vn=Tt.value;mt=te(vn,mt,W)}}var nn=Fe.call(X);if(nn==null)throw new Error("An iterable object provided no iterator.");for(var fr=null,rn=null,nr=ie,Ma=0,la=0,Ii=null,Ha=nn.next();nr!==null&&!Ha.done;la++,Ha=nn.next()){nr.index>la?(Ii=nr,nr=null):Ii=nr.sibling;var Va=F(W,nr,Ha.value,we);if(Va===null){nr===null&&(nr=Ii);break}e&&nr&&Va.alternate===null&&t(W,nr),Ma=p(Va,Ma,la),rn===null?fr=Va:rn.sibling=Va,rn=Va,nr=Ii}if(Ha.done){if(i(W,nr),ea()){var _a=la;Kc(W,_a)}return fr}if(nr===null){for(;!Ha.done;la++,Ha=nn.next()){var Ds=B(W,Ha.value,we);Ds!==null&&(Ma=p(Ds,Ma,la),rn===null?fr=Ds:rn.sibling=Ds,rn=Ds)}if(ea()){var sp=la;Kc(W,sp)}return fr}for(var Ov=o(W,nr);!Ha.done;la++,Ha=nn.next()){var Pl=q(Ov,W,la,Ha.value,we);Pl!==null&&(e&&Pl.alternate!==null&&Ov.delete(Pl.key===null?la:Pl.key),Ma=p(Pl,Ma,la),rn===null?fr=Pl:rn.sibling=Pl,rn=Pl)}if(e&&Ov.forEach(function(jP){return t(W,jP)}),ea()){var FP=la;Kc(W,FP)}return fr}function ct(W,ie,X,we){if(ie!==null&&ie.tag===z){i(W,ie.sibling);var Fe=u(ie,X);return Fe.return=W,Fe}i(W,ie);var Ie=Pb(X,W.mode,we);return Ie.return=W,Ie}function et(W,ie,X,we){for(var Fe=X.key,Ie=ie;Ie!==null;){if(Ie.key===Fe){var mt=X.type;if(mt===ji){if(Ie.tag===G){i(W,Ie.sibling);var Tt=u(Ie,X.props.children);return Tt.return=W,Tt._debugSource=X._source,Tt._debugOwner=X._owner,Tt}}else if(Ie.elementType===mt||H1(Ie,X)||typeof mt=="object"&&mt!==null&&mt.$$typeof===Ct&&IE(mt)===Ie.type){i(W,Ie.sibling);var vn=u(Ie,X.props);return vn.ref=Jh(W,Ie,X),vn.return=W,vn._debugSource=X._source,vn._debugOwner=X._owner,vn}i(W,Ie);break}else t(W,Ie);Ie=Ie.sibling}if(X.type===ji){var nn=Fu(X.props.children,W.mode,we,X.key);return nn.return=W,nn}else{var fr=Lb(X,W.mode,we);return fr.ref=Jh(W,ie,X),fr.return=W,fr}}function Xt(W,ie,X,we){for(var Fe=X.key,Ie=ie;Ie!==null;){if(Ie.key===Fe)if(Ie.tag===k&&Ie.stateNode.containerInfo===X.containerInfo&&Ie.stateNode.implementation===X.implementation){i(W,Ie.sibling);var mt=u(Ie,X.children||[]);return mt.return=W,mt}else{i(W,Ie);break}else t(W,Ie);Ie=Ie.sibling}var Tt=Ib(X,W.mode,we);return Tt.return=W,Tt}function Bt(W,ie,X,we){var Fe=typeof X=="object"&&X!==null&&X.type===ji&&X.key===null;if(Fe&&(X=X.props.children),typeof X=="object"&&X!==null){switch(X.$$typeof){case Gr:return g(et(W,ie,X,we));case br:return g(Xt(W,ie,X,we));case Ct:var Ie=X._payload,mt=X._init;return Bt(W,ie,mt(Ie),we)}if(Nt(X))return ae(W,ie,X,we);if(_t(X))return Le(W,ie,X,we);Yg(W,X)}return typeof X=="string"&&X!==""||typeof X=="number"?g(ct(W,ie,""+X,we)):(typeof X=="function"&&Wg(W),i(W,ie))}return Bt}var $d=UE(!0),zE=UE(!1);function vD(e,t){if(e!==null&&t.child!==e.child)throw new Error("Resuming work not yet implemented.");if(t.child!==null){var i=t.child,o=uf(i,i.pendingProps);for(t.child=o,o.return=t;i.sibling!==null;)i=i.sibling,o=o.sibling=uf(i,i.pendingProps),o.return=t;o.sibling=null}}function mD(e,t){for(var i=e.child;i!==null;)rP(i,t),i=i.sibling}var BS=Tu(null),HS;HS={};var Xg=null,Gd=null,VS=null,Kg=!1;function Qg(){Xg=null,Gd=null,VS=null,Kg=!1}function FE(){Kg=!0}function jE(){Kg=!1}function BE(e,t,i){Ta(BS,t._currentValue,e),t._currentValue=i,t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==HS&&v("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=HS}function $S(e,t){var i=BS.current;Ea(BS,t),e._currentValue=i}function GS(e,t,i){for(var o=e;o!==null;){var u=o.alternate;if(vs(o.childLanes,t)?u!==null&&!vs(u.childLanes,t)&&(u.childLanes=kt(u.childLanes,t)):(o.childLanes=kt(o.childLanes,t),u!==null&&(u.childLanes=kt(u.childLanes,t))),o===i)break;o=o.return}o!==i&&v("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function gD(e,t,i){yD(e,t,i)}function yD(e,t,i){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var u=void 0,p=o.dependencies;if(p!==null){u=o.child;for(var g=p.firstContext;g!==null;){if(g.context===t){if(o.tag===R){var w=Rc(i),b=Ms(mn,w);b.tag=Zg;var M=o.updateQueue;if(M!==null){var O=M.shared,B=O.pending;B===null?b.next=b:(b.next=B.next,B.next=b),O.pending=b}}o.lanes=kt(o.lanes,i);var F=o.alternate;F!==null&&(F.lanes=kt(F.lanes,i)),GS(o.return,i,e),p.lanes=kt(p.lanes,i);break}g=g.next}}else if(o.tag===ue)u=o.type===e.type?null:o.child;else if(o.tag===dt){var q=o.return;if(q===null)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");q.lanes=kt(q.lanes,i);var te=q.alternate;te!==null&&(te.lanes=kt(te.lanes,i)),GS(q,i,e),u=o.sibling}else u=o.child;if(u!==null)u.return=o;else for(u=o;u!==null;){if(u===e){u=null;break}var ae=u.sibling;if(ae!==null){ae.return=u.return,u=ae;break}u=u.return}o=u}}function Yd(e,t){Xg=e,Gd=null,VS=null;var i=e.dependencies;if(i!==null){var o=i.firstContext;o!==null&&(wa(i.lanes,t)&&hv(),i.firstContext=null)}}function yr(e){Kg&&v("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");var t=e._currentValue;if(VS!==e){var i={context:e,memoizedValue:t,next:null};if(Gd===null){if(Xg===null)throw new Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");Gd=i,Xg.dependencies={lanes:he,firstContext:i}}else Gd=Gd.next=i}return t}var ef=null;function YS(e){ef===null?ef=[e]:ef.push(e)}function SD(){if(ef!==null){for(var e=0;e<ef.length;e++){var t=ef[e],i=t.interleaved;if(i!==null){t.interleaved=null;var o=i.next,u=t.pending;if(u!==null){var p=u.next;u.next=o,i.next=p}t.pending=i}}ef=null}}function HE(e,t,i,o){var u=t.interleaved;return u===null?(i.next=i,YS(t)):(i.next=u.next,u.next=i),t.interleaved=i,qg(e,o)}function wD(e,t,i,o){var u=t.interleaved;u===null?(i.next=i,YS(t)):(i.next=u.next,u.next=i),t.interleaved=i}function bD(e,t,i,o){var u=t.interleaved;return u===null?(i.next=i,YS(t)):(i.next=u.next,u.next=i),t.interleaved=i,qg(e,o)}function si(e,t){return qg(e,t)}var xD=qg;function qg(e,t){e.lanes=kt(e.lanes,t);var i=e.alternate;i!==null&&(i.lanes=kt(i.lanes,t)),i===null&&(e.flags&(Dn|va))!==at&&z1(e);for(var o=e,u=e.return;u!==null;)u.childLanes=kt(u.childLanes,t),i=u.alternate,i!==null?i.childLanes=kt(i.childLanes,t):(u.flags&(Dn|va))!==at&&z1(e),o=u,u=u.return;if(o.tag===_){var p=o.stateNode;return p}else return null}var VE=0,$E=1,Zg=2,WS=3,Jg=!1,XS,ey;XS=!1,ey=null;function KS(e){var t={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:he},effects:null};e.updateQueue=t}function GE(e,t){var i=t.updateQueue,o=e.updateQueue;if(i===o){var u={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,effects:o.effects};t.updateQueue=u}}function Ms(e,t){var i={eventTime:e,lane:t,tag:VE,payload:null,callback:null,next:null};return i}function ku(e,t,i){var o=e.updateQueue;if(o===null)return null;var u=o.shared;if(ey===u&&!XS&&(v("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback."),XS=!0),wL()){var p=u.pending;return p===null?t.next=t:(t.next=p.next,p.next=t),u.pending=t,xD(e,i)}else return bD(e,u,t,i)}function ty(e,t,i){var o=t.updateQueue;if(o!==null){var u=o.shared;if(dh(i)){var p=u.lanes;p=hh(p,e.pendingLanes);var g=kt(p,i);u.lanes=g,yd(e,g)}}}function QS(e,t){var i=e.updateQueue,o=e.alternate;if(o!==null){var u=o.updateQueue;if(i===u){var p=null,g=null,w=i.firstBaseUpdate;if(w!==null){var b=w;do{var M={eventTime:b.eventTime,lane:b.lane,tag:b.tag,payload:b.payload,callback:b.callback,next:null};g===null?p=g=M:(g.next=M,g=M),b=b.next}while(b!==null);g===null?p=g=t:(g.next=t,g=t)}else p=g=t;i={baseState:u.baseState,firstBaseUpdate:p,lastBaseUpdate:g,shared:u.shared,effects:u.effects},e.updateQueue=i;return}}var O=i.lastBaseUpdate;O===null?i.firstBaseUpdate=t:O.next=t,i.lastBaseUpdate=t}function CD(e,t,i,o,u,p){switch(i.tag){case $E:{var g=i.payload;if(typeof g=="function"){FE();var w=g.call(p,o,u);{if(e.mode&pn){Ln(!0);try{g.call(p,o,u)}finally{Ln(!1)}}jE()}return w}return g}case WS:e.flags=e.flags&~hr|nt;case VE:{var b=i.payload,M;if(typeof b=="function"){FE(),M=b.call(p,o,u);{if(e.mode&pn){Ln(!0);try{b.call(p,o,u)}finally{Ln(!1)}}jE()}}else M=b;return M==null?o:At({},o,M)}case Zg:return Jg=!0,o}return o}function ny(e,t,i,o){var u=e.updateQueue;Jg=!1,ey=u.shared;var p=u.firstBaseUpdate,g=u.lastBaseUpdate,w=u.shared.pending;if(w!==null){u.shared.pending=null;var b=w,M=b.next;b.next=null,g===null?p=M:g.next=M,g=b;var O=e.alternate;if(O!==null){var B=O.updateQueue,F=B.lastBaseUpdate;F!==g&&(F===null?B.firstBaseUpdate=M:F.next=M,B.lastBaseUpdate=b)}}if(p!==null){var q=u.baseState,te=he,ae=null,Le=null,ct=null,et=p;do{var Xt=et.lane,Bt=et.eventTime;if(vs(o,Xt)){if(ct!==null){var ie={eventTime:Bt,lane:qt,tag:et.tag,payload:et.payload,callback:et.callback,next:null};ct=ct.next=ie}q=CD(e,u,et,q,t,i);var X=et.callback;if(X!==null&&et.lane!==qt){e.flags|=Cn;var we=u.effects;we===null?u.effects=[et]:we.push(et)}}else{var W={eventTime:Bt,lane:Xt,tag:et.tag,payload:et.payload,callback:et.callback,next:null};ct===null?(Le=ct=W,ae=q):ct=ct.next=W,te=kt(te,Xt)}if(et=et.next,et===null){if(w=u.shared.pending,w===null)break;var Fe=w,Ie=Fe.next;Fe.next=null,et=Ie,u.lastBaseUpdate=Fe,u.shared.pending=null}}while(!0);ct===null&&(ae=q),u.baseState=ae,u.firstBaseUpdate=Le,u.lastBaseUpdate=ct;var mt=u.shared.interleaved;if(mt!==null){var Tt=mt;do te=kt(te,Tt.lane),Tt=Tt.next;while(Tt!==mt)}else p===null&&(u.shared.lanes=he);Rv(te),e.lanes=te,e.memoizedState=q}ey=null}function ED(e,t){if(typeof e!="function")throw new Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+e));e.call(t)}function YE(){Jg=!1}function ry(){return Jg}function WE(e,t,i){var o=t.effects;if(t.effects=null,o!==null)for(var u=0;u<o.length;u++){var p=o[u],g=p.callback;g!==null&&(p.callback=null,ED(g,i))}}var ev={},Au=Tu(ev),tv=Tu(ev),ay=Tu(ev);function iy(e){if(e===ev)throw new Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return e}function XE(){var e=iy(ay.current);return e}function qS(e,t){Ta(ay,t,e),Ta(tv,e,e),Ta(Au,ev,e);var i=BO(t);Ea(Au,e),Ta(Au,i,e)}function Wd(e){Ea(Au,e),Ea(tv,e),Ea(ay,e)}function ZS(){var e=iy(Au.current);return e}function KE(e){iy(ay.current);var t=iy(Au.current),i=HO(t,e.type);t!==i&&(Ta(tv,e,e),Ta(Au,i,e))}function JS(e){tv.current===e&&(Ea(Au,e),Ea(tv,e))}var TD=0,QE=1,qE=1,nv=2,Io=Tu(TD);function ew(e,t){return(e&t)!==0}function Xd(e){return e&QE}function tw(e,t){return e&QE|t}function RD(e,t){return e|t}function Ou(e,t){Ta(Io,t,e)}function Kd(e){Ea(Io,e)}function MD(e,t){var i=e.memoizedState;return i!==null?i.dehydrated!==null:(e.memoizedProps,!0)}function oy(e){for(var t=e;t!==null;){if(t.tag===le){var i=t.memoizedState;if(i!==null){var o=i.dehydrated;if(o===null||hE(o)||SS(o))return t}}else if(t.tag===Rt&&t.memoizedProps.revealOrder!==void 0){var u=(t.flags&nt)!==at;if(u)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)return null;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ui=0,_r=1,_l=2,kr=4,ta=8,nw=[];function rw(){for(var e=0;e<nw.length;e++){var t=nw[e];t._workInProgressVersionPrimary=null}nw.length=0}function _D(e,t){var i=t._getVersion,o=i(t._source);e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[t,o]:e.mutableSourceEagerHydrationData.push(t,o)}var ze=l.ReactCurrentDispatcher,rv=l.ReactCurrentBatchConfig,aw,Qd;aw=new Set;var tf=he,hn=null,Ar=null,Or=null,ly=!1,av=!1,iv=0,kD=0,AD=25,se=null,uo=null,Nu=-1,iw=!1;function ln(){{var e=se;uo===null?uo=[e]:uo.push(e)}}function ke(){{var e=se;uo!==null&&(Nu++,uo[Nu]!==e&&OD(e))}}function qd(e){e!=null&&!Nt(e)&&v("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",se,typeof e)}function OD(e){{var t=bt(hn);if(!aw.has(t)&&(aw.add(t),uo!==null)){for(var i="",o=30,u=0;u<=Nu;u++){for(var p=uo[u],g=u===Nu?e:p,w=u+1+". "+p;w.length<o;)w+=" ";w+=g+`
|
|
168
|
+
`,i+=w}v(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks
|
|
169
|
+
|
|
170
|
+
Previous render Next render
|
|
171
|
+
------------------------------------------------------
|
|
172
|
+
%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
173
|
+
`,t,i)}}}function Ra(){throw new Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
174
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
175
|
+
2. You might be breaking the Rules of Hooks
|
|
176
|
+
3. You might have more than one copy of React in the same app
|
|
177
|
+
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function ow(e,t){if(iw)return!1;if(t===null)return v("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",se),!1;e.length!==t.length&&v(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
178
|
+
|
|
179
|
+
Previous: %s
|
|
180
|
+
Incoming: %s`,se,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var i=0;i<t.length&&i<e.length;i++)if(!ye(e[i],t[i]))return!1;return!0}function Zd(e,t,i,o,u,p){tf=p,hn=t,uo=e!==null?e._debugHookTypes:null,Nu=-1,iw=e!==null&&e.type!==t.type,t.memoizedState=null,t.updateQueue=null,t.lanes=he,e!==null&&e.memoizedState!==null?ze.current=ST:uo!==null?ze.current=yT:ze.current=gT;var g=i(o,u);if(av){var w=0;do{if(av=!1,iv=0,w>=AD)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");w+=1,iw=!1,Ar=null,Or=null,t.updateQueue=null,Nu=-1,ze.current=wT,g=i(o,u)}while(av)}ze.current=wy,t._debugHookTypes=uo;var b=Ar!==null&&Ar.next!==null;if(tf=he,hn=null,Ar=null,Or=null,se=null,uo=null,Nu=-1,e!==null&&(e.flags&Qn)!==(t.flags&Qn)&&(e.mode&Lt)!==it&&v("Internal React error: Expected static flag was missing. Please notify the React team."),ly=!1,b)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return g}function Jd(){var e=iv!==0;return iv=0,e}function ZE(e,t,i){t.updateQueue=e.updateQueue,(t.mode&en)!==it?t.flags&=-50333701:t.flags&=-2053,e.lanes=Mc(e.lanes,i)}function JE(){if(ze.current=wy,ly){for(var e=hn.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ly=!1}tf=he,hn=null,Ar=null,Or=null,uo=null,Nu=-1,se=null,dT=!1,av=!1,iv=0}function kl(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Or===null?hn.memoizedState=Or=e:Or=Or.next=e,Or}function co(){var e;if(Ar===null){var t=hn.alternate;t!==null?e=t.memoizedState:e=null}else e=Ar.next;var i;if(Or===null?i=hn.memoizedState:i=Or.next,i!==null)Or=i,i=Or.next,Ar=e;else{if(e===null)throw new Error("Rendered more hooks than during the previous render.");Ar=e;var o={memoizedState:Ar.memoizedState,baseState:Ar.baseState,baseQueue:Ar.baseQueue,queue:Ar.queue,next:null};Or===null?hn.memoizedState=Or=o:Or=Or.next=o}return Or}function eT(){return{lastEffect:null,stores:null}}function lw(e,t){return typeof t=="function"?t(e):t}function sw(e,t,i){var o=kl(),u;i!==void 0?u=i(t):u=t,o.memoizedState=o.baseState=u;var p={pending:null,interleaved:null,lanes:he,dispatch:null,lastRenderedReducer:e,lastRenderedState:u};o.queue=p;var g=p.dispatch=PD.bind(null,hn,p);return[o.memoizedState,g]}function uw(e,t,i){var o=co(),u=o.queue;if(u===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");u.lastRenderedReducer=e;var p=Ar,g=p.baseQueue,w=u.pending;if(w!==null){if(g!==null){var b=g.next,M=w.next;g.next=M,w.next=b}p.baseQueue!==g&&v("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),p.baseQueue=g=w,u.pending=null}if(g!==null){var O=g.next,B=p.baseState,F=null,q=null,te=null,ae=O;do{var Le=ae.lane;if(vs(tf,Le)){if(te!==null){var et={lane:qt,action:ae.action,hasEagerState:ae.hasEagerState,eagerState:ae.eagerState,next:null};te=te.next=et}if(ae.hasEagerState)B=ae.eagerState;else{var Xt=ae.action;B=e(B,Xt)}}else{var ct={lane:Le,action:ae.action,hasEagerState:ae.hasEagerState,eagerState:ae.eagerState,next:null};te===null?(q=te=ct,F=B):te=te.next=ct,hn.lanes=kt(hn.lanes,Le),Rv(Le)}ae=ae.next}while(ae!==null&&ae!==O);te===null?F=B:te.next=q,ye(B,o.memoizedState)||hv(),o.memoizedState=B,o.baseState=F,o.baseQueue=te,u.lastRenderedState=B}var Bt=u.interleaved;if(Bt!==null){var W=Bt;do{var ie=W.lane;hn.lanes=kt(hn.lanes,ie),Rv(ie),W=W.next}while(W!==Bt)}else g===null&&(u.lanes=he);var X=u.dispatch;return[o.memoizedState,X]}function cw(e,t,i){var o=co(),u=o.queue;if(u===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");u.lastRenderedReducer=e;var p=u.dispatch,g=u.pending,w=o.memoizedState;if(g!==null){u.pending=null;var b=g.next,M=b;do{var O=M.action;w=e(w,O),M=M.next}while(M!==b);ye(w,o.memoizedState)||hv(),o.memoizedState=w,o.baseQueue===null&&(o.baseState=w),u.lastRenderedState=w}return[w,p]}function i3(e,t,i){}function o3(e,t,i){}function fw(e,t,i){var o=hn,u=kl(),p,g=ea();if(g){if(i===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");p=i(),Qd||p!==i()&&(v("The result of getServerSnapshot should be cached to avoid an infinite loop"),Qd=!0)}else{if(p=t(),!Qd){var w=t();ye(p,w)||(v("The result of getSnapshot should be cached to avoid an infinite loop"),Qd=!0)}var b=Fy();if(b===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");md(b,tf)||tT(o,t,p)}u.memoizedState=p;var M={value:p,getSnapshot:t};return u.queue=M,dy(rT.bind(null,o,M,e),[e]),o.flags|=ha,ov(_r|ta,nT.bind(null,o,M,p,t),void 0,null),p}function sy(e,t,i){var o=hn,u=co(),p=t();if(!Qd){var g=t();ye(p,g)||(v("The result of getSnapshot should be cached to avoid an infinite loop"),Qd=!0)}var w=u.memoizedState,b=!ye(w,p);b&&(u.memoizedState=p,hv());var M=u.queue;if(sv(rT.bind(null,o,M,e),[e]),M.getSnapshot!==t||b||Or!==null&&Or.memoizedState.tag&_r){o.flags|=ha,ov(_r|ta,nT.bind(null,o,M,p,t),void 0,null);var O=Fy();if(O===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");md(O,tf)||tT(o,t,p)}return p}function tT(e,t,i){e.flags|=uu;var o={getSnapshot:t,value:i},u=hn.updateQueue;if(u===null)u=eT(),hn.updateQueue=u,u.stores=[o];else{var p=u.stores;p===null?u.stores=[o]:p.push(o)}}function nT(e,t,i,o){t.value=i,t.getSnapshot=o,aT(t)&&iT(e)}function rT(e,t,i){var o=function(){aT(t)&&iT(e)};return i(o)}function aT(e){var t=e.getSnapshot,i=e.value;try{var o=t();return!ye(i,o)}catch{return!0}}function iT(e){var t=si(e,vt);t!==null&&Pr(t,e,vt,mn)}function uy(e){var t=kl();typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e;var i={pending:null,interleaved:null,lanes:he,dispatch:null,lastRenderedReducer:lw,lastRenderedState:e};t.queue=i;var o=i.dispatch=ID.bind(null,hn,i);return[t.memoizedState,o]}function dw(e){return uw(lw)}function pw(e){return cw(lw)}function ov(e,t,i,o){var u={tag:e,create:t,destroy:i,deps:o,next:null},p=hn.updateQueue;if(p===null)p=eT(),hn.updateQueue=p,p.lastEffect=u.next=u;else{var g=p.lastEffect;if(g===null)p.lastEffect=u.next=u;else{var w=g.next;g.next=u,u.next=w,p.lastEffect=u}}return u}function hw(e){var t=kl();{var i={current:e};return t.memoizedState=i,i}}function cy(e){var t=co();return t.memoizedState}function lv(e,t,i,o){var u=kl(),p=o===void 0?null:o;hn.flags|=e,u.memoizedState=ov(_r|t,i,void 0,p)}function fy(e,t,i,o){var u=co(),p=o===void 0?null:o,g=void 0;if(Ar!==null){var w=Ar.memoizedState;if(g=w.destroy,p!==null){var b=w.deps;if(ow(p,b)){u.memoizedState=ov(t,i,g,p);return}}}hn.flags|=e,u.memoizedState=ov(_r|t,i,g,p)}function dy(e,t){return(hn.mode&en)!==it?lv(qi|ha|Vf,ta,e,t):lv(ha|Vf,ta,e,t)}function sv(e,t){return fy(ha,ta,e,t)}function vw(e,t){return lv(Gt,_l,e,t)}function py(e,t){return fy(Gt,_l,e,t)}function mw(e,t){var i=Gt;return i|=Eo,(hn.mode&en)!==it&&(i|=cl),lv(i,kr,e,t)}function hy(e,t){return fy(Gt,kr,e,t)}function oT(e,t){if(typeof t=="function"){var i=t,o=e();return i(o),function(){i(null)}}else if(t!=null){var u=t;u.hasOwnProperty("current")||v("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(u).join(", ")+"}");var p=e();return u.current=p,function(){u.current=null}}}function gw(e,t,i){typeof t!="function"&&v("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null");var o=i!=null?i.concat([e]):null,u=Gt;return u|=Eo,(hn.mode&en)!==it&&(u|=cl),lv(u,kr,oT.bind(null,t,e),o)}function vy(e,t,i){typeof t!="function"&&v("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null");var o=i!=null?i.concat([e]):null;return fy(Gt,kr,oT.bind(null,t,e),o)}function ND(e,t){}var my=ND;function yw(e,t){var i=kl(),o=t===void 0?null:t;return i.memoizedState=[e,o],e}function gy(e,t){var i=co(),o=t===void 0?null:t,u=i.memoizedState;if(u!==null&&o!==null){var p=u[1];if(ow(o,p))return u[0]}return i.memoizedState=[e,o],e}function Sw(e,t){var i=kl(),o=t===void 0?null:t,u=e();return i.memoizedState=[u,o],u}function yy(e,t){var i=co(),o=t===void 0?null:t,u=i.memoizedState;if(u!==null&&o!==null){var p=u[1];if(ow(o,p))return u[0]}var g=e();return i.memoizedState=[g,o],g}function ww(e){var t=kl();return t.memoizedState=e,e}function lT(e){var t=co(),i=Ar,o=i.memoizedState;return uT(t,o,e)}function sT(e){var t=co();if(Ar===null)return t.memoizedState=e,e;var i=Ar.memoizedState;return uT(t,i,e)}function uT(e,t,i){var o=!ch(tf);if(o){if(!ye(i,t)){var u=ph();hn.lanes=kt(hn.lanes,u),Rv(u),e.baseState=!0}return t}else return e.baseState&&(e.baseState=!1,hv()),e.memoizedState=i,i}function DD(e,t,i){var o=ii();Jn(Km(o,to)),e(!0);var u=rv.transition;rv.transition={};var p=rv.transition;rv.transition._updatedFibers=new Set;try{e(!1),t()}finally{if(Jn(o),rv.transition=u,u===null&&p._updatedFibers){var g=p._updatedFibers.size;g>10&&y("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),p._updatedFibers.clear()}}}function bw(){var e=uy(!1),t=e[0],i=e[1],o=DD.bind(null,i),u=kl();return u.memoizedState=o,[t,o]}function cT(){var e=dw(),t=e[0],i=co(),o=i.memoizedState;return[t,o]}function fT(){var e=pw(),t=e[0],i=co(),o=i.memoizedState;return[t,o]}var dT=!1;function LD(){return dT}function xw(){var e=kl(),t=Fy(),i=t.identifierPrefix,o;if(ea()){var u=qN();o=":"+i+"R"+u;var p=iv++;p>0&&(o+="H"+p.toString(32)),o+=":"}else{var g=kD++;o=":"+i+"r"+g.toString(32)+":"}return e.memoizedState=o,o}function Sy(){var e=co(),t=e.memoizedState;return t}function PD(e,t,i){typeof arguments[3]=="function"&&v("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var o=Uu(e),u={lane:o,action:i,hasEagerState:!1,eagerState:null,next:null};if(pT(e))hT(t,u);else{var p=HE(e,t,u,o);if(p!==null){var g=Ba();Pr(p,e,o,g),vT(p,t,o)}}mT(e,o)}function ID(e,t,i){typeof arguments[3]=="function"&&v("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var o=Uu(e),u={lane:o,action:i,hasEagerState:!1,eagerState:null,next:null};if(pT(e))hT(t,u);else{var p=e.alternate;if(e.lanes===he&&(p===null||p.lanes===he)){var g=t.lastRenderedReducer;if(g!==null){var w;w=ze.current,ze.current=Uo;try{var b=t.lastRenderedState,M=g(b,i);if(u.hasEagerState=!0,u.eagerState=M,ye(M,b)){wD(e,t,u,o);return}}catch{}finally{ze.current=w}}}var O=HE(e,t,u,o);if(O!==null){var B=Ba();Pr(O,e,o,B),vT(O,t,o)}}mT(e,o)}function pT(e){var t=e.alternate;return e===hn||t!==null&&t===hn}function hT(e,t){av=ly=!0;var i=e.pending;i===null?t.next=t:(t.next=i.next,i.next=t),e.pending=t}function vT(e,t,i){if(dh(i)){var o=t.lanes;o=hh(o,e.pendingLanes);var u=kt(o,i);t.lanes=u,yd(e,u)}}function mT(e,t,i){gc(e,t)}var wy={readContext:yr,useCallback:Ra,useContext:Ra,useEffect:Ra,useImperativeHandle:Ra,useInsertionEffect:Ra,useLayoutEffect:Ra,useMemo:Ra,useReducer:Ra,useRef:Ra,useState:Ra,useDebugValue:Ra,useDeferredValue:Ra,useTransition:Ra,useMutableSource:Ra,useSyncExternalStore:Ra,useId:Ra,unstable_isNewReconciler:$},gT=null,yT=null,ST=null,wT=null,Al=null,Uo=null,by=null;{var Cw=function(){v("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")},Et=function(){v("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks")};gT={readContext:function(e){return yr(e)},useCallback:function(e,t){return se="useCallback",ln(),qd(t),yw(e,t)},useContext:function(e){return se="useContext",ln(),yr(e)},useEffect:function(e,t){return se="useEffect",ln(),qd(t),dy(e,t)},useImperativeHandle:function(e,t,i){return se="useImperativeHandle",ln(),qd(i),gw(e,t,i)},useInsertionEffect:function(e,t){return se="useInsertionEffect",ln(),qd(t),vw(e,t)},useLayoutEffect:function(e,t){return se="useLayoutEffect",ln(),qd(t),mw(e,t)},useMemo:function(e,t){se="useMemo",ln(),qd(t);var i=ze.current;ze.current=Al;try{return Sw(e,t)}finally{ze.current=i}},useReducer:function(e,t,i){se="useReducer",ln();var o=ze.current;ze.current=Al;try{return sw(e,t,i)}finally{ze.current=o}},useRef:function(e){return se="useRef",ln(),hw(e)},useState:function(e){se="useState",ln();var t=ze.current;ze.current=Al;try{return uy(e)}finally{ze.current=t}},useDebugValue:function(e,t){return se="useDebugValue",ln(),void 0},useDeferredValue:function(e){return se="useDeferredValue",ln(),ww(e)},useTransition:function(){return se="useTransition",ln(),bw()},useMutableSource:function(e,t,i){return se="useMutableSource",ln(),void 0},useSyncExternalStore:function(e,t,i){return se="useSyncExternalStore",ln(),fw(e,t,i)},useId:function(){return se="useId",ln(),xw()},unstable_isNewReconciler:$},yT={readContext:function(e){return yr(e)},useCallback:function(e,t){return se="useCallback",ke(),yw(e,t)},useContext:function(e){return se="useContext",ke(),yr(e)},useEffect:function(e,t){return se="useEffect",ke(),dy(e,t)},useImperativeHandle:function(e,t,i){return se="useImperativeHandle",ke(),gw(e,t,i)},useInsertionEffect:function(e,t){return se="useInsertionEffect",ke(),vw(e,t)},useLayoutEffect:function(e,t){return se="useLayoutEffect",ke(),mw(e,t)},useMemo:function(e,t){se="useMemo",ke();var i=ze.current;ze.current=Al;try{return Sw(e,t)}finally{ze.current=i}},useReducer:function(e,t,i){se="useReducer",ke();var o=ze.current;ze.current=Al;try{return sw(e,t,i)}finally{ze.current=o}},useRef:function(e){return se="useRef",ke(),hw(e)},useState:function(e){se="useState",ke();var t=ze.current;ze.current=Al;try{return uy(e)}finally{ze.current=t}},useDebugValue:function(e,t){return se="useDebugValue",ke(),void 0},useDeferredValue:function(e){return se="useDeferredValue",ke(),ww(e)},useTransition:function(){return se="useTransition",ke(),bw()},useMutableSource:function(e,t,i){return se="useMutableSource",ke(),void 0},useSyncExternalStore:function(e,t,i){return se="useSyncExternalStore",ke(),fw(e,t,i)},useId:function(){return se="useId",ke(),xw()},unstable_isNewReconciler:$},ST={readContext:function(e){return yr(e)},useCallback:function(e,t){return se="useCallback",ke(),gy(e,t)},useContext:function(e){return se="useContext",ke(),yr(e)},useEffect:function(e,t){return se="useEffect",ke(),sv(e,t)},useImperativeHandle:function(e,t,i){return se="useImperativeHandle",ke(),vy(e,t,i)},useInsertionEffect:function(e,t){return se="useInsertionEffect",ke(),py(e,t)},useLayoutEffect:function(e,t){return se="useLayoutEffect",ke(),hy(e,t)},useMemo:function(e,t){se="useMemo",ke();var i=ze.current;ze.current=Uo;try{return yy(e,t)}finally{ze.current=i}},useReducer:function(e,t,i){se="useReducer",ke();var o=ze.current;ze.current=Uo;try{return uw(e,t,i)}finally{ze.current=o}},useRef:function(e){return se="useRef",ke(),cy()},useState:function(e){se="useState",ke();var t=ze.current;ze.current=Uo;try{return dw(e)}finally{ze.current=t}},useDebugValue:function(e,t){return se="useDebugValue",ke(),my()},useDeferredValue:function(e){return se="useDeferredValue",ke(),lT(e)},useTransition:function(){return se="useTransition",ke(),cT()},useMutableSource:function(e,t,i){return se="useMutableSource",ke(),void 0},useSyncExternalStore:function(e,t,i){return se="useSyncExternalStore",ke(),sy(e,t)},useId:function(){return se="useId",ke(),Sy()},unstable_isNewReconciler:$},wT={readContext:function(e){return yr(e)},useCallback:function(e,t){return se="useCallback",ke(),gy(e,t)},useContext:function(e){return se="useContext",ke(),yr(e)},useEffect:function(e,t){return se="useEffect",ke(),sv(e,t)},useImperativeHandle:function(e,t,i){return se="useImperativeHandle",ke(),vy(e,t,i)},useInsertionEffect:function(e,t){return se="useInsertionEffect",ke(),py(e,t)},useLayoutEffect:function(e,t){return se="useLayoutEffect",ke(),hy(e,t)},useMemo:function(e,t){se="useMemo",ke();var i=ze.current;ze.current=by;try{return yy(e,t)}finally{ze.current=i}},useReducer:function(e,t,i){se="useReducer",ke();var o=ze.current;ze.current=by;try{return cw(e,t,i)}finally{ze.current=o}},useRef:function(e){return se="useRef",ke(),cy()},useState:function(e){se="useState",ke();var t=ze.current;ze.current=by;try{return pw(e)}finally{ze.current=t}},useDebugValue:function(e,t){return se="useDebugValue",ke(),my()},useDeferredValue:function(e){return se="useDeferredValue",ke(),sT(e)},useTransition:function(){return se="useTransition",ke(),fT()},useMutableSource:function(e,t,i){return se="useMutableSource",ke(),void 0},useSyncExternalStore:function(e,t,i){return se="useSyncExternalStore",ke(),sy(e,t)},useId:function(){return se="useId",ke(),Sy()},unstable_isNewReconciler:$},Al={readContext:function(e){return Cw(),yr(e)},useCallback:function(e,t){return se="useCallback",Et(),ln(),yw(e,t)},useContext:function(e){return se="useContext",Et(),ln(),yr(e)},useEffect:function(e,t){return se="useEffect",Et(),ln(),dy(e,t)},useImperativeHandle:function(e,t,i){return se="useImperativeHandle",Et(),ln(),gw(e,t,i)},useInsertionEffect:function(e,t){return se="useInsertionEffect",Et(),ln(),vw(e,t)},useLayoutEffect:function(e,t){return se="useLayoutEffect",Et(),ln(),mw(e,t)},useMemo:function(e,t){se="useMemo",Et(),ln();var i=ze.current;ze.current=Al;try{return Sw(e,t)}finally{ze.current=i}},useReducer:function(e,t,i){se="useReducer",Et(),ln();var o=ze.current;ze.current=Al;try{return sw(e,t,i)}finally{ze.current=o}},useRef:function(e){return se="useRef",Et(),ln(),hw(e)},useState:function(e){se="useState",Et(),ln();var t=ze.current;ze.current=Al;try{return uy(e)}finally{ze.current=t}},useDebugValue:function(e,t){return se="useDebugValue",Et(),ln(),void 0},useDeferredValue:function(e){return se="useDeferredValue",Et(),ln(),ww(e)},useTransition:function(){return se="useTransition",Et(),ln(),bw()},useMutableSource:function(e,t,i){return se="useMutableSource",Et(),ln(),void 0},useSyncExternalStore:function(e,t,i){return se="useSyncExternalStore",Et(),ln(),fw(e,t,i)},useId:function(){return se="useId",Et(),ln(),xw()},unstable_isNewReconciler:$},Uo={readContext:function(e){return Cw(),yr(e)},useCallback:function(e,t){return se="useCallback",Et(),ke(),gy(e,t)},useContext:function(e){return se="useContext",Et(),ke(),yr(e)},useEffect:function(e,t){return se="useEffect",Et(),ke(),sv(e,t)},useImperativeHandle:function(e,t,i){return se="useImperativeHandle",Et(),ke(),vy(e,t,i)},useInsertionEffect:function(e,t){return se="useInsertionEffect",Et(),ke(),py(e,t)},useLayoutEffect:function(e,t){return se="useLayoutEffect",Et(),ke(),hy(e,t)},useMemo:function(e,t){se="useMemo",Et(),ke();var i=ze.current;ze.current=Uo;try{return yy(e,t)}finally{ze.current=i}},useReducer:function(e,t,i){se="useReducer",Et(),ke();var o=ze.current;ze.current=Uo;try{return uw(e,t,i)}finally{ze.current=o}},useRef:function(e){return se="useRef",Et(),ke(),cy()},useState:function(e){se="useState",Et(),ke();var t=ze.current;ze.current=Uo;try{return dw(e)}finally{ze.current=t}},useDebugValue:function(e,t){return se="useDebugValue",Et(),ke(),my()},useDeferredValue:function(e){return se="useDeferredValue",Et(),ke(),lT(e)},useTransition:function(){return se="useTransition",Et(),ke(),cT()},useMutableSource:function(e,t,i){return se="useMutableSource",Et(),ke(),void 0},useSyncExternalStore:function(e,t,i){return se="useSyncExternalStore",Et(),ke(),sy(e,t)},useId:function(){return se="useId",Et(),ke(),Sy()},unstable_isNewReconciler:$},by={readContext:function(e){return Cw(),yr(e)},useCallback:function(e,t){return se="useCallback",Et(),ke(),gy(e,t)},useContext:function(e){return se="useContext",Et(),ke(),yr(e)},useEffect:function(e,t){return se="useEffect",Et(),ke(),sv(e,t)},useImperativeHandle:function(e,t,i){return se="useImperativeHandle",Et(),ke(),vy(e,t,i)},useInsertionEffect:function(e,t){return se="useInsertionEffect",Et(),ke(),py(e,t)},useLayoutEffect:function(e,t){return se="useLayoutEffect",Et(),ke(),hy(e,t)},useMemo:function(e,t){se="useMemo",Et(),ke();var i=ze.current;ze.current=Uo;try{return yy(e,t)}finally{ze.current=i}},useReducer:function(e,t,i){se="useReducer",Et(),ke();var o=ze.current;ze.current=Uo;try{return cw(e,t,i)}finally{ze.current=o}},useRef:function(e){return se="useRef",Et(),ke(),cy()},useState:function(e){se="useState",Et(),ke();var t=ze.current;ze.current=Uo;try{return pw(e)}finally{ze.current=t}},useDebugValue:function(e,t){return se="useDebugValue",Et(),ke(),my()},useDeferredValue:function(e){return se="useDeferredValue",Et(),ke(),sT(e)},useTransition:function(){return se="useTransition",Et(),ke(),fT()},useMutableSource:function(e,t,i){return se="useMutableSource",Et(),ke(),void 0},useSyncExternalStore:function(e,t,i){return se="useSyncExternalStore",Et(),ke(),sy(e,t)},useId:function(){return se="useId",Et(),ke(),Sy()},unstable_isNewReconciler:$}}var Du=a.unstable_now,bT=0,xy=-1,uv=-1,Cy=-1,Ew=!1,Ey=!1;function xT(){return Ew}function UD(){Ey=!0}function zD(){Ew=!1,Ey=!1}function FD(){Ew=Ey,Ey=!1}function CT(){return bT}function ET(){bT=Du()}function Tw(e){uv=Du(),e.actualStartTime<0&&(e.actualStartTime=Du())}function TT(e){uv=-1}function Ty(e,t){if(uv>=0){var i=Du()-uv;e.actualDuration+=i,t&&(e.selfBaseDuration=i),uv=-1}}function Ol(e){if(xy>=0){var t=Du()-xy;xy=-1;for(var i=e.return;i!==null;){switch(i.tag){case _:var o=i.stateNode;o.effectDuration+=t;return;case fe:var u=i.stateNode;u.effectDuration+=t;return}i=i.return}}}function Rw(e){if(Cy>=0){var t=Du()-Cy;Cy=-1;for(var i=e.return;i!==null;){switch(i.tag){case _:var o=i.stateNode;o!==null&&(o.passiveEffectDuration+=t);return;case fe:var u=i.stateNode;u!==null&&(u.passiveEffectDuration+=t);return}i=i.return}}}function Nl(){xy=Du()}function Mw(){Cy=Du()}function _w(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function zo(e,t){if(e&&e.defaultProps){var i=At({},t),o=e.defaultProps;for(var u in o)i[u]===void 0&&(i[u]=o[u]);return i}return t}var kw={},Aw,Ow,Nw,Dw,Lw,RT,Ry,Pw,Iw,Uw,cv;{Aw=new Set,Ow=new Set,Nw=new Set,Dw=new Set,Pw=new Set,Lw=new Set,Iw=new Set,Uw=new Set,cv=new Set;var MT=new Set;Ry=function(e,t){if(!(e===null||typeof e=="function")){var i=t+"_"+e;MT.has(i)||(MT.add(i),v("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e))}},RT=function(e,t){if(t===void 0){var i=Kt(e)||"Component";Lw.has(i)||(Lw.add(i),v("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",i))}},Object.defineProperty(kw,"_processChildContext",{enumerable:!1,value:function(){throw new Error("_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).")}}),Object.freeze(kw)}function zw(e,t,i,o){var u=e.memoizedState,p=i(o,u);{if(e.mode&pn){Ln(!0);try{p=i(o,u)}finally{Ln(!1)}}RT(t,p)}var g=p==null?u:At({},u,p);if(e.memoizedState=g,e.lanes===he){var w=e.updateQueue;w.baseState=g}}var Fw={isMounted:Dm,enqueueSetState:function(e,t,i){var o=su(e),u=Ba(),p=Uu(o),g=Ms(u,p);g.payload=t,i!=null&&(Ry(i,"setState"),g.callback=i);var w=ku(o,g,p);w!==null&&(Pr(w,o,p,u),ty(w,o,p)),gc(o,p)},enqueueReplaceState:function(e,t,i){var o=su(e),u=Ba(),p=Uu(o),g=Ms(u,p);g.tag=$E,g.payload=t,i!=null&&(Ry(i,"replaceState"),g.callback=i);var w=ku(o,g,p);w!==null&&(Pr(w,o,p,u),ty(w,o,p)),gc(o,p)},enqueueForceUpdate:function(e,t){var i=su(e),o=Ba(),u=Uu(i),p=Ms(o,u);p.tag=Zg,t!=null&&(Ry(t,"forceUpdate"),p.callback=t);var g=ku(i,p,u);g!==null&&(Pr(g,i,u,o),ty(g,i,u)),Qf(i,u)}};function _T(e,t,i,o,u,p,g){var w=e.stateNode;if(typeof w.shouldComponentUpdate=="function"){var b=w.shouldComponentUpdate(o,p,g);{if(e.mode&pn){Ln(!0);try{b=w.shouldComponentUpdate(o,p,g)}finally{Ln(!1)}}b===void 0&&v("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",Kt(t)||"Component")}return b}return t.prototype&&t.prototype.isPureReactComponent?!We(i,o)||!We(u,p):!0}function jD(e,t,i){var o=e.stateNode;{var u=Kt(t)||"Component",p=o.render;p||(t.prototype&&typeof t.prototype.render=="function"?v("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",u):v("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",u)),o.getInitialState&&!o.getInitialState.isReactClassApproved&&!o.state&&v("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",u),o.getDefaultProps&&!o.getDefaultProps.isReactClassApproved&&v("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",u),o.propTypes&&v("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",u),o.contextType&&v("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",u),t.childContextTypes&&!cv.has(t)&&(e.mode&pn)===it&&(cv.add(t),v(`%s uses the legacy childContextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() instead
|
|
181
|
+
|
|
182
|
+
.Learn more about this warning here: https://reactjs.org/link/legacy-context`,u)),t.contextTypes&&!cv.has(t)&&(e.mode&pn)===it&&(cv.add(t),v(`%s uses the legacy contextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() with static contextType instead.
|
|
183
|
+
|
|
184
|
+
Learn more about this warning here: https://reactjs.org/link/legacy-context`,u)),o.contextTypes&&v("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",u),t.contextType&&t.contextTypes&&!Iw.has(t)&&(Iw.add(t),v("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",u)),typeof o.componentShouldUpdate=="function"&&v("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",u),t.prototype&&t.prototype.isPureReactComponent&&typeof o.shouldComponentUpdate<"u"&&v("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",Kt(t)||"A pure component"),typeof o.componentDidUnmount=="function"&&v("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",u),typeof o.componentDidReceiveProps=="function"&&v("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",u),typeof o.componentWillRecieveProps=="function"&&v("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",u),typeof o.UNSAFE_componentWillRecieveProps=="function"&&v("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",u);var g=o.props!==i;o.props!==void 0&&g&&v("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",u,u),o.defaultProps&&v("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",u,u),typeof o.getSnapshotBeforeUpdate=="function"&&typeof o.componentDidUpdate!="function"&&!Nw.has(t)&&(Nw.add(t),v("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",Kt(t))),typeof o.getDerivedStateFromProps=="function"&&v("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",u),typeof o.getDerivedStateFromError=="function"&&v("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",u),typeof t.getSnapshotBeforeUpdate=="function"&&v("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",u);var w=o.state;w&&(typeof w!="object"||Nt(w))&&v("%s.state: must be set to an object or null",u),typeof o.getChildContext=="function"&&typeof t.childContextTypes!="object"&&v("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",u)}}function kT(e,t){t.updater=Fw,e.stateNode=t,ts(t,e),t._reactInternalInstance=kw}function AT(e,t,i){var o=!1,u=Li,p=Li,g=t.contextType;if("contextType"in t){var w=g===null||g!==void 0&&g.$$typeof===P&&g._context===void 0;if(!w&&!Uw.has(t)){Uw.add(t);var b="";g===void 0?b=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof g!="object"?b=" However, it is set to a "+typeof g+".":g.$$typeof===Hi?b=" Did you accidentally pass the Context.Provider instead?":g._context!==void 0?b=" Did you accidentally pass the Context.Consumer instead?":b=" However, it is set to an object with keys {"+Object.keys(g).join(", ")+"}.",v("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",Kt(t)||"Component",b)}}if(typeof g=="object"&&g!==null)p=yr(g);else{u=Fd(e,t,!0);var M=t.contextTypes;o=M!=null,p=o?jd(e,u):Li}var O=new t(i,p);if(e.mode&pn){Ln(!0);try{O=new t(i,p)}finally{Ln(!1)}}var B=e.memoizedState=O.state!==null&&O.state!==void 0?O.state:null;kT(e,O);{if(typeof t.getDerivedStateFromProps=="function"&&B===null){var F=Kt(t)||"Component";Ow.has(F)||(Ow.add(F),v("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",F,O.state===null?"null":"undefined",F))}if(typeof t.getDerivedStateFromProps=="function"||typeof O.getSnapshotBeforeUpdate=="function"){var q=null,te=null,ae=null;if(typeof O.componentWillMount=="function"&&O.componentWillMount.__suppressDeprecationWarning!==!0?q="componentWillMount":typeof O.UNSAFE_componentWillMount=="function"&&(q="UNSAFE_componentWillMount"),typeof O.componentWillReceiveProps=="function"&&O.componentWillReceiveProps.__suppressDeprecationWarning!==!0?te="componentWillReceiveProps":typeof O.UNSAFE_componentWillReceiveProps=="function"&&(te="UNSAFE_componentWillReceiveProps"),typeof O.componentWillUpdate=="function"&&O.componentWillUpdate.__suppressDeprecationWarning!==!0?ae="componentWillUpdate":typeof O.UNSAFE_componentWillUpdate=="function"&&(ae="UNSAFE_componentWillUpdate"),q!==null||te!==null||ae!==null){var Le=Kt(t)||"Component",ct=typeof t.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";Dw.has(Le)||(Dw.add(Le),v(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
185
|
+
|
|
186
|
+
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
187
|
+
|
|
188
|
+
The above lifecycles should be removed. Learn more about this warning here:
|
|
189
|
+
https://reactjs.org/link/unsafe-component-lifecycles`,Le,ct,q!==null?`
|
|
190
|
+
`+q:"",te!==null?`
|
|
191
|
+
`+te:"",ae!==null?`
|
|
192
|
+
`+ae:""))}}}return o&&SE(e,u,p),O}function BD(e,t){var i=t.state;typeof t.componentWillMount=="function"&&t.componentWillMount(),typeof t.UNSAFE_componentWillMount=="function"&&t.UNSAFE_componentWillMount(),i!==t.state&&(v("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",bt(e)||"Component"),Fw.enqueueReplaceState(t,t.state,null))}function OT(e,t,i,o){var u=t.state;if(typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(i,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(i,o),t.state!==u){{var p=bt(e)||"Component";Aw.has(p)||(Aw.add(p),v("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",p))}Fw.enqueueReplaceState(t,t.state,null)}}function jw(e,t,i,o){jD(e,t,i);var u=e.stateNode;u.props=i,u.state=e.memoizedState,u.refs={},KS(e);var p=t.contextType;if(typeof p=="object"&&p!==null)u.context=yr(p);else{var g=Fd(e,t,!0);u.context=jd(e,g)}{if(u.state===i){var w=Kt(t)||"Component";Pw.has(w)||(Pw.add(w),v("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",w))}e.mode&pn&&Po.recordLegacyContextWarning(e,u),Po.recordUnsafeLifecycleWarnings(e,u)}u.state=e.memoizedState;var b=t.getDerivedStateFromProps;if(typeof b=="function"&&(zw(e,t,b,i),u.state=e.memoizedState),typeof t.getDerivedStateFromProps!="function"&&typeof u.getSnapshotBeforeUpdate!="function"&&(typeof u.UNSAFE_componentWillMount=="function"||typeof u.componentWillMount=="function")&&(BD(e,u),ny(e,i,u,o),u.state=e.memoizedState),typeof u.componentDidMount=="function"){var M=Gt;M|=Eo,(e.mode&en)!==it&&(M|=cl),e.flags|=M}}function HD(e,t,i,o){var u=e.stateNode,p=e.memoizedProps;u.props=p;var g=u.context,w=t.contextType,b=Li;if(typeof w=="object"&&w!==null)b=yr(w);else{var M=Fd(e,t,!0);b=jd(e,M)}var O=t.getDerivedStateFromProps,B=typeof O=="function"||typeof u.getSnapshotBeforeUpdate=="function";!B&&(typeof u.UNSAFE_componentWillReceiveProps=="function"||typeof u.componentWillReceiveProps=="function")&&(p!==i||g!==b)&&OT(e,u,i,b),YE();var F=e.memoizedState,q=u.state=F;if(ny(e,i,u,o),q=e.memoizedState,p===i&&F===q&&!Ug()&&!ry()){if(typeof u.componentDidMount=="function"){var te=Gt;te|=Eo,(e.mode&en)!==it&&(te|=cl),e.flags|=te}return!1}typeof O=="function"&&(zw(e,t,O,i),q=e.memoizedState);var ae=ry()||_T(e,t,p,i,F,q,b);if(ae){if(!B&&(typeof u.UNSAFE_componentWillMount=="function"||typeof u.componentWillMount=="function")&&(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"){var Le=Gt;Le|=Eo,(e.mode&en)!==it&&(Le|=cl),e.flags|=Le}}else{if(typeof u.componentDidMount=="function"){var ct=Gt;ct|=Eo,(e.mode&en)!==it&&(ct|=cl),e.flags|=ct}e.memoizedProps=i,e.memoizedState=q}return u.props=i,u.state=q,u.context=b,ae}function VD(e,t,i,o,u){var p=t.stateNode;GE(e,t);var g=t.memoizedProps,w=t.type===t.elementType?g:zo(t.type,g);p.props=w;var b=t.pendingProps,M=p.context,O=i.contextType,B=Li;if(typeof O=="object"&&O!==null)B=yr(O);else{var F=Fd(t,i,!0);B=jd(t,F)}var q=i.getDerivedStateFromProps,te=typeof q=="function"||typeof p.getSnapshotBeforeUpdate=="function";!te&&(typeof p.UNSAFE_componentWillReceiveProps=="function"||typeof p.componentWillReceiveProps=="function")&&(g!==b||M!==B)&&OT(t,p,o,B),YE();var ae=t.memoizedState,Le=p.state=ae;if(ny(t,o,p,u),Le=t.memoizedState,g===b&&ae===Le&&!Ug()&&!ry()&&!_e)return typeof p.componentDidUpdate=="function"&&(g!==e.memoizedProps||ae!==e.memoizedState)&&(t.flags|=Gt),typeof p.getSnapshotBeforeUpdate=="function"&&(g!==e.memoizedProps||ae!==e.memoizedState)&&(t.flags|=sr),!1;typeof q=="function"&&(zw(t,i,q,o),Le=t.memoizedState);var ct=ry()||_T(t,i,w,o,ae,Le,B)||_e;return ct?(!te&&(typeof p.UNSAFE_componentWillUpdate=="function"||typeof p.componentWillUpdate=="function")&&(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(o,Le,B),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(o,Le,B)),typeof p.componentDidUpdate=="function"&&(t.flags|=Gt),typeof p.getSnapshotBeforeUpdate=="function"&&(t.flags|=sr)):(typeof p.componentDidUpdate=="function"&&(g!==e.memoizedProps||ae!==e.memoizedState)&&(t.flags|=Gt),typeof p.getSnapshotBeforeUpdate=="function"&&(g!==e.memoizedProps||ae!==e.memoizedState)&&(t.flags|=sr),t.memoizedProps=o,t.memoizedState=Le),p.props=o,p.state=Le,p.context=B,ct}function nf(e,t){return{value:e,source:t,stack:yo(t),digest:null}}function Bw(e,t,i){return{value:e,source:null,stack:i??null,digest:t??null}}function $D(e,t){return!0}function Hw(e,t){try{var i=$D(e,t);if(i===!1)return;var o=t.value,u=t.source,p=t.stack,g=p!==null?p:"";if(o!=null&&o._suppressLogging){if(e.tag===R)return;console.error(o)}var w=u?bt(u):null,b=w?"The above error occurred in the <"+w+"> component:":"The above error occurred in one of your React components:",M;if(e.tag===_)M=`Consider adding an error boundary to your tree to customize error handling behavior.
|
|
193
|
+
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.`;else{var O=bt(e)||"Anonymous";M="React will try to recreate this component tree from scratch "+("using the error boundary you provided, "+O+".")}var B=b+`
|
|
194
|
+
`+g+`
|
|
195
|
+
|
|
196
|
+
`+(""+M);console.error(B)}catch(F){setTimeout(function(){throw F})}}var GD=typeof WeakMap=="function"?WeakMap:Map;function NT(e,t,i){var o=Ms(mn,i);o.tag=WS,o.payload={element:null};var u=t.value;return o.callback=function(){UL(u),Hw(e,t)},o}function Vw(e,t,i){var o=Ms(mn,i);o.tag=WS;var u=e.type.getDerivedStateFromError;if(typeof u=="function"){var p=t.value;o.payload=function(){return u(p)},o.callback=function(){V1(e),Hw(e,t)}}var g=e.stateNode;return g!==null&&typeof g.componentDidCatch=="function"&&(o.callback=function(){V1(e),Hw(e,t),typeof u!="function"&&PL(this);var b=t.value,M=t.stack;this.componentDidCatch(b,{componentStack:M!==null?M:""}),typeof u!="function"&&(wa(e.lanes,vt)||v("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",bt(e)||"Unknown"))}),o}function DT(e,t,i){var o=e.pingCache,u;if(o===null?(o=e.pingCache=new GD,u=new Set,o.set(t,u)):(u=o.get(t),u===void 0&&(u=new Set,o.set(t,u))),!u.has(i)){u.add(i);var p=zL.bind(null,e,t,i);ya&&Mv(e,i),t.then(p,p)}}function YD(e,t,i,o){var u=e.updateQueue;if(u===null){var p=new Set;p.add(i),e.updateQueue=p}else u.add(i)}function WD(e,t){var i=e.tag;if((e.mode&Lt)===it&&(i===x||i===ce||i===ve)){var o=e.alternate;o?(e.updateQueue=o.updateQueue,e.memoizedState=o.memoizedState,e.lanes=o.lanes):(e.updateQueue=null,e.memoizedState=null)}}function LT(e){var t=e;do{if(t.tag===le&&MD(t))return t;t=t.return}while(t!==null);return null}function PT(e,t,i,o,u){if((e.mode&Lt)===it){if(e===t)e.flags|=hr;else{if(e.flags|=nt,i.flags|=Hf,i.flags&=-52805,i.tag===R){var p=i.alternate;if(p===null)i.tag=tt;else{var g=Ms(mn,vt);g.tag=Zg,ku(i,g,vt)}}i.lanes=kt(i.lanes,vt)}return e}return e.flags|=hr,e.lanes=u,e}function XD(e,t,i,o,u){if(i.flags|=fc,ya&&Mv(e,u),o!==null&&typeof o=="object"&&typeof o.then=="function"){var p=o;WD(i),ea()&&i.mode&Lt&&RE();var g=LT(t);if(g!==null){g.flags&=~jr,PT(g,t,i,e,u),g.mode&Lt&&DT(e,p,u),YD(g,e,p);return}else{if(!Bm(u)){DT(e,p,u),xb();return}var w=new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");o=w}}else if(ea()&&i.mode&Lt){RE();var b=LT(t);if(b!==null){(b.flags&hr)===at&&(b.flags|=jr),PT(b,t,i,e,u),PS(nf(o,i));return}}o=nf(o,i),ML(o);var M=t;do{switch(M.tag){case _:{var O=o;M.flags|=hr;var B=Rc(u);M.lanes=kt(M.lanes,B);var F=NT(M,O,B);QS(M,F);return}case R:var q=o,te=M.type,ae=M.stateNode;if((M.flags&nt)===at&&(typeof te.getDerivedStateFromError=="function"||ae!==null&&typeof ae.componentDidCatch=="function"&&!L1(ae))){M.flags|=hr;var Le=Rc(u);M.lanes=kt(M.lanes,Le);var ct=Vw(M,q,Le);QS(M,ct);return}break}M=M.return}while(M!==null)}function KD(){return null}var fv=l.ReactCurrentOwner,Fo=!1,$w,dv,Gw,Yw,Ww,rf,Xw,My,pv;$w={},dv={},Gw={},Yw={},Ww={},rf=!1,Xw={},My={},pv={};function Fa(e,t,i,o){e===null?t.child=zE(t,null,i,o):t.child=$d(t,e.child,i,o)}function QD(e,t,i,o){t.child=$d(t,e.child,null,o),t.child=$d(t,null,i,o)}function IT(e,t,i,o,u){if(t.type!==t.elementType){var p=i.propTypes;p&&Do(p,o,"prop",Kt(i))}var g=i.render,w=t.ref,b,M;Yd(t,u),Pa(t);{if(fv.current=t,lr(!0),b=Zd(e,t,g,o,w,u),M=Jd(),t.mode&pn){Ln(!0);try{b=Zd(e,t,g,o,w,u),M=Jd()}finally{Ln(!1)}}lr(!1)}return Ia(),e!==null&&!Fo?(ZE(e,t,u),_s(e,t,u)):(ea()&&M&&kS(t),t.flags|=ki,Fa(e,t,b,u),t.child)}function UT(e,t,i,o,u){if(e===null){var p=i.type;if(tP(p)&&i.compare===null&&i.defaultProps===void 0){var g=p;return g=lp(p),t.tag=ve,t.type=g,qw(t,p),zT(e,t,g,o,u)}{var w=p.propTypes;if(w&&Do(w,o,"prop",Kt(p)),i.defaultProps!==void 0){var b=Kt(p)||"Unknown";pv[b]||(v("%s: Support for defaultProps will be removed from memo components in a future major release. Use JavaScript default parameters instead.",b),pv[b]=!0)}}var M=Db(i.type,null,o,t,t.mode,u);return M.ref=t.ref,M.return=t,t.child=M,M}{var O=i.type,B=O.propTypes;B&&Do(B,o,"prop",Kt(O))}var F=e.child,q=rb(e,u);if(!q){var te=F.memoizedProps,ae=i.compare;if(ae=ae!==null?ae:We,ae(te,o)&&e.ref===t.ref)return _s(e,t,u)}t.flags|=ki;var Le=uf(F,o);return Le.ref=t.ref,Le.return=t,t.child=Le,Le}function zT(e,t,i,o,u){if(t.type!==t.elementType){var p=t.elementType;if(p.$$typeof===Ct){var g=p,w=g._payload,b=g._init;try{p=b(w)}catch{p=null}var M=p&&p.propTypes;M&&Do(M,o,"prop",Kt(p))}}if(e!==null){var O=e.memoizedProps;if(We(O,o)&&e.ref===t.ref&&t.type===e.type)if(Fo=!1,t.pendingProps=o=O,rb(e,u))(e.flags&Hf)!==at&&(Fo=!0);else return t.lanes=e.lanes,_s(e,t,u)}return Kw(e,t,i,o,u)}function FT(e,t,i){var o=t.pendingProps,u=o.children,p=e!==null?e.memoizedState:null;if(o.mode==="hidden"||Ce)if((t.mode&Lt)===it){var g={baseLanes:he,cachePool:null,transitions:null};t.memoizedState=g,jy(t,i)}else if(wa(i,Sa)){var B={baseLanes:he,cachePool:null,transitions:null};t.memoizedState=B;var F=p!==null?p.baseLanes:i;jy(t,F)}else{var w=null,b;if(p!==null){var M=p.baseLanes;b=kt(M,i)}else b=i;t.lanes=t.childLanes=Sa;var O={baseLanes:b,cachePool:w,transitions:null};return t.memoizedState=O,t.updateQueue=null,jy(t,b),null}else{var q;p!==null?(q=kt(p.baseLanes,i),t.memoizedState=null):q=i,jy(t,q)}return Fa(e,t,u,i),t.child}function qD(e,t,i){var o=t.pendingProps;return Fa(e,t,o,i),t.child}function ZD(e,t,i){var o=t.pendingProps.children;return Fa(e,t,o,i),t.child}function JD(e,t,i){{t.flags|=Gt;{var o=t.stateNode;o.effectDuration=0,o.passiveEffectDuration=0}}var u=t.pendingProps,p=u.children;return Fa(e,t,p,i),t.child}function jT(e,t){var i=t.ref;(e===null&&i!==null||e!==null&&e.ref!==i)&&(t.flags|=zn,t.flags|=cu)}function Kw(e,t,i,o,u){if(t.type!==t.elementType){var p=i.propTypes;p&&Do(p,o,"prop",Kt(i))}var g;{var w=Fd(t,i,!0);g=jd(t,w)}var b,M;Yd(t,u),Pa(t);{if(fv.current=t,lr(!0),b=Zd(e,t,i,o,g,u),M=Jd(),t.mode&pn){Ln(!0);try{b=Zd(e,t,i,o,g,u),M=Jd()}finally{Ln(!1)}}lr(!1)}return Ia(),e!==null&&!Fo?(ZE(e,t,u),_s(e,t,u)):(ea()&&M&&kS(t),t.flags|=ki,Fa(e,t,b,u),t.child)}function BT(e,t,i,o,u){{switch(mP(t)){case!1:{var p=t.stateNode,g=t.type,w=new g(t.memoizedProps,p.context),b=w.state;p.updater.enqueueSetState(p,b,null);break}case!0:{t.flags|=nt,t.flags|=hr;var M=new Error("Simulated error coming from DevTools"),O=Rc(u);t.lanes=kt(t.lanes,O);var B=Vw(t,nf(M,t),O);QS(t,B);break}}if(t.type!==t.elementType){var F=i.propTypes;F&&Do(F,o,"prop",Kt(i))}}var q;Ml(i)?(q=!0,Fg(t)):q=!1,Yd(t,u);var te=t.stateNode,ae;te===null?(ky(e,t),AT(t,i,o),jw(t,i,o,u),ae=!0):e===null?ae=HD(t,i,o,u):ae=VD(e,t,i,o,u);var Le=Qw(e,t,i,ae,q,u);{var ct=t.stateNode;ae&&ct.props!==o&&(rf||v("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",bt(t)||"a component"),rf=!0)}return Le}function Qw(e,t,i,o,u,p){jT(e,t);var g=(t.flags&nt)!==at;if(!o&&!g)return u&&xE(t,i,!1),_s(e,t,p);var w=t.stateNode;fv.current=t;var b;if(g&&typeof i.getDerivedStateFromError!="function")b=null,TT();else{Pa(t);{if(lr(!0),b=w.render(),t.mode&pn){Ln(!0);try{w.render()}finally{Ln(!1)}}lr(!1)}Ia()}return t.flags|=ki,e!==null&&g?QD(e,t,b,p):Fa(e,t,b,p),t.memoizedState=w.state,u&&xE(t,i,!0),t.child}function HT(e){var t=e.stateNode;t.pendingContext?wE(e,t.pendingContext,t.pendingContext!==t.context):t.context&&wE(e,t.context,!1),qS(e,t.containerInfo)}function e2(e,t,i){if(HT(t),e===null)throw new Error("Should have a current fiber. This is a bug in React.");var o=t.pendingProps,u=t.memoizedState,p=u.element;GE(e,t),ny(t,o,null,i);var g=t.memoizedState;t.stateNode;var w=g.element;if(u.isDehydrated){var b={element:w,isDehydrated:!1,cache:g.cache,pendingSuspenseBoundaries:g.pendingSuspenseBoundaries,transitions:g.transitions},M=t.updateQueue;if(M.baseState=b,t.memoizedState=b,t.flags&jr){var O=nf(new Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."),t);return VT(e,t,w,i,O)}else if(w!==p){var B=nf(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t);return VT(e,t,w,i,B)}else{rD(t);var F=zE(t,null,w,i);t.child=F;for(var q=F;q;)q.flags=q.flags&~Dn|va,q=q.sibling}}else{if(Vd(),w===p)return _s(e,t,i);Fa(e,t,w,i)}return t.child}function VT(e,t,i,o,u){return Vd(),PS(u),t.flags|=jr,Fa(e,t,i,o),t.child}function t2(e,t,i){KE(t),e===null&&LS(t);var o=t.type,u=t.pendingProps,p=e!==null?e.memoizedProps:null,g=u.children,w=vS(o,u);return w?g=null:p!==null&&vS(o,p)&&(t.flags|=Ja),jT(e,t),Fa(e,t,g,i),t.child}function n2(e,t){return e===null&&LS(t),null}function r2(e,t,i,o){ky(e,t);var u=t.pendingProps,p=i,g=p._payload,w=p._init,b=w(g);t.type=b;var M=t.tag=nP(b),O=zo(b,u),B;switch(M){case x:return qw(t,b),t.type=b=lp(b),B=Kw(null,t,b,O,o),B;case R:return t.type=b=Mb(b),B=BT(null,t,b,O,o),B;case ce:return t.type=b=_b(b),B=IT(null,t,b,O,o),B;case Re:{if(t.type!==t.elementType){var F=b.propTypes;F&&Do(F,O,"prop",Kt(b))}return B=UT(null,t,b,zo(b.type,O),o),B}}var q="";throw b!==null&&typeof b=="object"&&b.$$typeof===Ct&&(q=" Did you wrap a component in React.lazy() more than once?"),new Error("Element type is invalid. Received a promise that resolves to: "+b+". "+("Lazy element type must resolve to a class or function."+q))}function a2(e,t,i,o,u){ky(e,t),t.tag=R;var p;return Ml(i)?(p=!0,Fg(t)):p=!1,Yd(t,u),AT(t,i,o),jw(t,i,o,u),Qw(null,t,i,!0,p,u)}function i2(e,t,i,o){ky(e,t);var u=t.pendingProps,p;{var g=Fd(t,i,!1);p=jd(t,g)}Yd(t,o);var w,b;Pa(t);{if(i.prototype&&typeof i.prototype.render=="function"){var M=Kt(i)||"Unknown";$w[M]||(v("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",M,M),$w[M]=!0)}t.mode&pn&&Po.recordLegacyContextWarning(t,null),lr(!0),fv.current=t,w=Zd(null,t,i,u,p,o),b=Jd(),lr(!1)}if(Ia(),t.flags|=ki,typeof w=="object"&&w!==null&&typeof w.render=="function"&&w.$$typeof===void 0){var O=Kt(i)||"Unknown";dv[O]||(v("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",O,O,O),dv[O]=!0)}if(typeof w=="object"&&w!==null&&typeof w.render=="function"&&w.$$typeof===void 0){{var B=Kt(i)||"Unknown";dv[B]||(v("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",B,B,B),dv[B]=!0)}t.tag=R,t.memoizedState=null,t.updateQueue=null;var F=!1;return Ml(i)?(F=!0,Fg(t)):F=!1,t.memoizedState=w.state!==null&&w.state!==void 0?w.state:null,KS(t),kT(t,w),jw(t,i,u,o),Qw(null,t,i,!0,F,o)}else{if(t.tag=x,t.mode&pn){Ln(!0);try{w=Zd(null,t,i,u,p,o),b=Jd()}finally{Ln(!1)}}return ea()&&b&&kS(t),Fa(null,t,w,o),qw(t,i),t.child}}function qw(e,t){{if(t&&t.childContextTypes&&v("%s(...): childContextTypes cannot be defined on a function component.",t.displayName||t.name||"Component"),e.ref!==null){var i="",o=Wr();o&&(i+=`
|
|
197
|
+
|
|
198
|
+
Check the render method of \``+o+"`.");var u=o||"",p=e._debugSource;p&&(u=p.fileName+":"+p.lineNumber),Ww[u]||(Ww[u]=!0,v("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",i))}if(t.defaultProps!==void 0){var g=Kt(t)||"Unknown";pv[g]||(v("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",g),pv[g]=!0)}if(typeof t.getDerivedStateFromProps=="function"){var w=Kt(t)||"Unknown";Yw[w]||(v("%s: Function components do not support getDerivedStateFromProps.",w),Yw[w]=!0)}if(typeof t.contextType=="object"&&t.contextType!==null){var b=Kt(t)||"Unknown";Gw[b]||(v("%s: Function components do not support contextType.",b),Gw[b]=!0)}}}var Zw={dehydrated:null,treeContext:null,retryLane:qt};function Jw(e){return{baseLanes:e,cachePool:KD(),transitions:null}}function o2(e,t){var i=null;return{baseLanes:kt(e.baseLanes,t),cachePool:i,transitions:e.transitions}}function l2(e,t,i,o){if(t!==null){var u=t.memoizedState;if(u===null)return!1}return ew(e,nv)}function s2(e,t){return Mc(e.childLanes,t)}function $T(e,t,i){var o=t.pendingProps;gP(t)&&(t.flags|=nt);var u=Io.current,p=!1,g=(t.flags&nt)!==at;if(g||l2(u,e)?(p=!0,t.flags&=~nt):(e===null||e.memoizedState!==null)&&(u=RD(u,qE)),u=Xd(u),Ou(t,u),e===null){LS(t);var w=t.memoizedState;if(w!==null){var b=w.dehydrated;if(b!==null)return p2(t,b)}var M=o.children,O=o.fallback;if(p){var B=u2(t,M,O,i),F=t.child;return F.memoizedState=Jw(i),t.memoizedState=Zw,B}else return eb(t,M)}else{var q=e.memoizedState;if(q!==null){var te=q.dehydrated;if(te!==null)return h2(e,t,g,o,te,q,i)}if(p){var ae=o.fallback,Le=o.children,ct=f2(e,t,Le,ae,i),et=t.child,Xt=e.child.memoizedState;return et.memoizedState=Xt===null?Jw(i):o2(Xt,i),et.childLanes=s2(e,i),t.memoizedState=Zw,ct}else{var Bt=o.children,W=c2(e,t,Bt,i);return t.memoizedState=null,W}}}function eb(e,t,i){var o=e.mode,u={mode:"visible",children:t},p=tb(u,o);return p.return=e,e.child=p,p}function u2(e,t,i,o){var u=e.mode,p=e.child,g={mode:"hidden",children:t},w,b;return(u&Lt)===it&&p!==null?(w=p,w.childLanes=he,w.pendingProps=g,e.mode&Jt&&(w.actualDuration=0,w.actualStartTime=-1,w.selfBaseDuration=0,w.treeBaseDuration=0),b=Fu(i,u,o,null)):(w=tb(g,u),b=Fu(i,u,o,null)),w.return=e,b.return=e,w.sibling=b,e.child=w,b}function tb(e,t,i){return G1(e,t,he,null)}function GT(e,t){return uf(e,t)}function c2(e,t,i,o){var u=e.child,p=u.sibling,g=GT(u,{mode:"visible",children:i});if((t.mode&Lt)===it&&(g.lanes=o),g.return=t,g.sibling=null,p!==null){var w=t.deletions;w===null?(t.deletions=[p],t.flags|=Za):w.push(p)}return t.child=g,g}function f2(e,t,i,o,u){var p=t.mode,g=e.child,w=g.sibling,b={mode:"hidden",children:i},M;if((p&Lt)===it&&t.child!==g){var O=t.child;M=O,M.childLanes=he,M.pendingProps=b,t.mode&Jt&&(M.actualDuration=0,M.actualStartTime=-1,M.selfBaseDuration=g.selfBaseDuration,M.treeBaseDuration=g.treeBaseDuration),t.deletions=null}else M=GT(g,b),M.subtreeFlags=g.subtreeFlags&Qn;var B;return w!==null?B=uf(w,o):(B=Fu(o,p,u,null),B.flags|=Dn),B.return=t,M.return=t,M.sibling=B,t.child=M,B}function _y(e,t,i,o){o!==null&&PS(o),$d(t,e.child,null,i);var u=t.pendingProps,p=u.children,g=eb(t,p);return g.flags|=Dn,t.memoizedState=null,g}function d2(e,t,i,o,u){var p=t.mode,g={mode:"visible",children:i},w=tb(g,p),b=Fu(o,p,u,null);return b.flags|=Dn,w.return=t,b.return=t,w.sibling=b,t.child=w,(t.mode&Lt)!==it&&$d(t,e.child,null,u),b}function p2(e,t,i){return(e.mode&Lt)===it?(v("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, <App />).render(element) or remove the Suspense components from the server rendered components."),e.lanes=vt):SS(t)?e.lanes=Br:e.lanes=Sa,null}function h2(e,t,i,o,u,p,g){if(i)if(t.flags&jr){t.flags&=~jr;var W=Bw(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return _y(e,t,g,W)}else{if(t.memoizedState!==null)return t.child=e.child,t.flags|=nt,null;var ie=o.children,X=o.fallback,we=d2(e,t,ie,X,g),Fe=t.child;return Fe.memoizedState=Jw(g),t.memoizedState=Zw,we}else{if(tD(),(t.mode&Lt)===it)return _y(e,t,g,null);if(SS(u)){var w,b,M;{var O=yN(u);w=O.digest,b=O.message,M=O.stack}var B;b?B=new Error(b):B=new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var F=Bw(B,w,M);return _y(e,t,g,F)}var q=wa(g,e.childLanes);if(Fo||q){var te=Fy();if(te!==null){var ae=mh(te,g);if(ae!==qt&&ae!==p.retryLane){p.retryLane=ae;var Le=mn;si(e,ae),Pr(te,e,ae,Le)}}xb();var ct=Bw(new Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition."));return _y(e,t,g,ct)}else if(hE(u)){t.flags|=nt,t.child=e.child;var et=FL.bind(null,e);return SN(u,et),null}else{aD(t,u,p.treeContext);var Xt=o.children,Bt=eb(t,Xt);return Bt.flags|=va,Bt}}}function YT(e,t,i){e.lanes=kt(e.lanes,t);var o=e.alternate;o!==null&&(o.lanes=kt(o.lanes,t)),GS(e.return,t,i)}function v2(e,t,i){for(var o=t;o!==null;){if(o.tag===le){var u=o.memoizedState;u!==null&&YT(o,i,e)}else if(o.tag===Rt)YT(o,i,e);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===e)return;for(;o.sibling===null;){if(o.return===null||o.return===e)return;o=o.return}o.sibling.return=o.return,o=o.sibling}}function m2(e){for(var t=e,i=null;t!==null;){var o=t.alternate;o!==null&&oy(o)===null&&(i=t),t=t.sibling}return i}function g2(e){if(e!==void 0&&e!=="forwards"&&e!=="backwards"&&e!=="together"&&!Xw[e])if(Xw[e]=!0,typeof e=="string")switch(e.toLowerCase()){case"together":case"forwards":case"backwards":{v('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',e,e.toLowerCase());break}case"forward":case"backward":{v('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',e,e.toLowerCase());break}default:v('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e);break}else v('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e)}function y2(e,t){e!==void 0&&!My[e]&&(e!=="collapsed"&&e!=="hidden"?(My[e]=!0,v('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',e)):t!=="forwards"&&t!=="backwards"&&(My[e]=!0,v('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',e)))}function WT(e,t){{var i=Nt(e),o=!i&&typeof _t(e)=="function";if(i||o){var u=i?"array":"iterable";return v("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",u,t,u),!1}}return!0}function S2(e,t){if((t==="forwards"||t==="backwards")&&e!==void 0&&e!==null&&e!==!1)if(Nt(e)){for(var i=0;i<e.length;i++)if(!WT(e[i],i))return}else{var o=_t(e);if(typeof o=="function"){var u=o.call(e);if(u)for(var p=u.next(),g=0;!p.done;p=u.next()){if(!WT(p.value,g))return;g++}}else v('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',t)}}function nb(e,t,i,o,u){var p=e.memoizedState;p===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:i,tailMode:u}:(p.isBackwards=t,p.rendering=null,p.renderingStartTime=0,p.last=o,p.tail=i,p.tailMode=u)}function XT(e,t,i){var o=t.pendingProps,u=o.revealOrder,p=o.tail,g=o.children;g2(u),y2(p,u),S2(g,u),Fa(e,t,g,i);var w=Io.current,b=ew(w,nv);if(b)w=tw(w,nv),t.flags|=nt;else{var M=e!==null&&(e.flags&nt)!==at;M&&v2(t,t.child,i),w=Xd(w)}if(Ou(t,w),(t.mode&Lt)===it)t.memoizedState=null;else switch(u){case"forwards":{var O=m2(t.child),B;O===null?(B=t.child,t.child=null):(B=O.sibling,O.sibling=null),nb(t,!1,B,O,p);break}case"backwards":{var F=null,q=t.child;for(t.child=null;q!==null;){var te=q.alternate;if(te!==null&&oy(te)===null){t.child=q;break}var ae=q.sibling;q.sibling=F,F=q,q=ae}nb(t,!0,F,null,p);break}case"together":{nb(t,!1,null,null,void 0);break}default:t.memoizedState=null}return t.child}function w2(e,t,i){qS(t,t.stateNode.containerInfo);var o=t.pendingProps;return e===null?t.child=$d(t,null,o,i):Fa(e,t,o,i),t.child}var KT=!1;function b2(e,t,i){var o=t.type,u=o._context,p=t.pendingProps,g=t.memoizedProps,w=p.value;{"value"in p||KT||(KT=!0,v("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var b=t.type.propTypes;b&&Do(b,p,"prop","Context.Provider")}if(BE(t,u,w),g!==null){var M=g.value;if(ye(M,w)){if(g.children===p.children&&!Ug())return _s(e,t,i)}else gD(t,u,i)}var O=p.children;return Fa(e,t,O,i),t.child}var QT=!1;function x2(e,t,i){var o=t.type;o._context===void 0?o!==o.Consumer&&(QT||(QT=!0,v("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):o=o._context;var u=t.pendingProps,p=u.children;typeof p!="function"&&v("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),Yd(t,i);var g=yr(o);Pa(t);var w;return fv.current=t,lr(!0),w=p(g),lr(!1),Ia(),t.flags|=ki,Fa(e,t,w,i),t.child}function hv(){Fo=!0}function ky(e,t){(t.mode&Lt)===it&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=Dn)}function _s(e,t,i){return e!==null&&(t.dependencies=e.dependencies),TT(),Rv(t.lanes),wa(i,t.childLanes)?(vD(e,t),t.child):null}function C2(e,t,i){{var o=t.return;if(o===null)throw new Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,i.index=t.index,i.sibling=t.sibling,i.return=t.return,i.ref=t.ref,t===o.child)o.child=i;else{var u=o.child;if(u===null)throw new Error("Expected parent to have a child.");for(;u.sibling!==t;)if(u=u.sibling,u===null)throw new Error("Expected to find the previous sibling.");u.sibling=i}var p=o.deletions;return p===null?(o.deletions=[e],o.flags|=Za):p.push(e),i.flags|=Dn,i}}function rb(e,t){var i=e.lanes;return!!wa(i,t)}function E2(e,t,i){switch(t.tag){case _:HT(t),t.stateNode,Vd();break;case N:KE(t);break;case R:{var o=t.type;Ml(o)&&Fg(t);break}case k:qS(t,t.stateNode.containerInfo);break;case ue:{var u=t.memoizedProps.value,p=t.type._context;BE(t,p,u);break}case fe:{var g=wa(i,t.childLanes);g&&(t.flags|=Gt);{var w=t.stateNode;w.effectDuration=0,w.passiveEffectDuration=0}}break;case le:{var b=t.memoizedState;if(b!==null){if(b.dehydrated!==null)return Ou(t,Xd(Io.current)),t.flags|=nt,null;var M=t.child,O=M.childLanes;if(wa(i,O))return $T(e,t,i);Ou(t,Xd(Io.current));var B=_s(e,t,i);return B!==null?B.sibling:null}else Ou(t,Xd(Io.current));break}case Rt:{var F=(e.flags&nt)!==at,q=wa(i,t.childLanes);if(F){if(q)return XT(e,t,i);t.flags|=nt}var te=t.memoizedState;if(te!==null&&(te.rendering=null,te.tail=null,te.lastEffect=null),Ou(t,Io.current),q)break;return null}case Ae:case rt:return t.lanes=he,FT(e,t,i)}return _s(e,t,i)}function qT(e,t,i){if(t._debugNeedsRemount&&e!==null)return C2(e,t,Db(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes));if(e!==null){var o=e.memoizedProps,u=t.pendingProps;if(o!==u||Ug()||t.type!==e.type)Fo=!0;else{var p=rb(e,i);if(!p&&(t.flags&nt)===at)return Fo=!1,E2(e,t,i);(e.flags&Hf)!==at?Fo=!0:Fo=!1}}else if(Fo=!1,ea()&&KN(t)){var g=t.index,w=QN();TE(t,w,g)}switch(t.lanes=he,t.tag){case A:return i2(e,t,t.type,i);case xe:{var b=t.elementType;return r2(e,t,b,i)}case x:{var M=t.type,O=t.pendingProps,B=t.elementType===M?O:zo(M,O);return Kw(e,t,M,B,i)}case R:{var F=t.type,q=t.pendingProps,te=t.elementType===F?q:zo(F,q);return BT(e,t,F,te,i)}case _:return e2(e,t,i);case N:return t2(e,t,i);case z:return n2(e,t);case le:return $T(e,t,i);case k:return w2(e,t,i);case ce:{var ae=t.type,Le=t.pendingProps,ct=t.elementType===ae?Le:zo(ae,Le);return IT(e,t,ae,ct,i)}case G:return qD(e,t,i);case J:return ZD(e,t,i);case fe:return JD(e,t,i);case ue:return b2(e,t,i);case de:return x2(e,t,i);case Re:{var et=t.type,Xt=t.pendingProps,Bt=zo(et,Xt);if(t.type!==t.elementType){var W=et.propTypes;W&&Do(W,Bt,"prop",Kt(et))}return Bt=zo(et.type,Bt),UT(e,t,et,Bt,i)}case ve:return zT(e,t,t.type,t.pendingProps,i);case tt:{var ie=t.type,X=t.pendingProps,we=t.elementType===ie?X:zo(ie,X);return a2(e,t,ie,we,i)}case Rt:return XT(e,t,i);case lt:break;case Ae:return FT(e,t,i)}throw new Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function ep(e){e.flags|=Gt}function ZT(e){e.flags|=zn,e.flags|=cu}var JT,ab,e1,t1;JT=function(e,t,i,o){for(var u=t.child;u!==null;){if(u.tag===N||u.tag===z)YO(e,u.stateNode);else if(u.tag!==k){if(u.child!==null){u.child.return=u,u=u.child;continue}}if(u===t)return;for(;u.sibling===null;){if(u.return===null||u.return===t)return;u=u.return}u.sibling.return=u.return,u=u.sibling}},ab=function(e,t){},e1=function(e,t,i,o,u){var p=e.memoizedProps;if(p!==o){var g=t.stateNode,w=ZS(),b=XO(g,i,p,o,u,w);t.updateQueue=b,b&&ep(t)}},t1=function(e,t,i,o){i!==o&&ep(t)};function vv(e,t){if(!ea())switch(e.tailMode){case"hidden":{for(var i=e.tail,o=null;i!==null;)i.alternate!==null&&(o=i),i=i.sibling;o===null?e.tail=null:o.sibling=null;break}case"collapsed":{for(var u=e.tail,p=null;u!==null;)u.alternate!==null&&(p=u),u=u.sibling;p===null?!t&&e.tail!==null?e.tail.sibling=null:e.tail=null:p.sibling=null;break}}}function na(e){var t=e.alternate!==null&&e.alternate.child===e.child,i=he,o=at;if(t){if((e.mode&Jt)!==it){for(var b=e.selfBaseDuration,M=e.child;M!==null;)i=kt(i,kt(M.lanes,M.childLanes)),o|=M.subtreeFlags&Qn,o|=M.flags&Qn,b+=M.treeBaseDuration,M=M.sibling;e.treeBaseDuration=b}else for(var O=e.child;O!==null;)i=kt(i,kt(O.lanes,O.childLanes)),o|=O.subtreeFlags&Qn,o|=O.flags&Qn,O.return=e,O=O.sibling;e.subtreeFlags|=o}else{if((e.mode&Jt)!==it){for(var u=e.actualDuration,p=e.selfBaseDuration,g=e.child;g!==null;)i=kt(i,kt(g.lanes,g.childLanes)),o|=g.subtreeFlags,o|=g.flags,u+=g.actualDuration,p+=g.treeBaseDuration,g=g.sibling;e.actualDuration=u,e.treeBaseDuration=p}else for(var w=e.child;w!==null;)i=kt(i,kt(w.lanes,w.childLanes)),o|=w.subtreeFlags,o|=w.flags,w.return=e,w=w.sibling;e.subtreeFlags|=o}return e.childLanes=i,t}function T2(e,t,i){if(uD()&&(t.mode&Lt)!==it&&(t.flags&nt)===at)return NE(t),Vd(),t.flags|=jr|fc|hr,!1;var o=$g(t);if(i!==null&&i.dehydrated!==null)if(e===null){if(!o)throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(lD(t),na(t),(t.mode&Jt)!==it){var u=i!==null;if(u){var p=t.child;p!==null&&(t.treeBaseDuration-=p.treeBaseDuration)}}return!1}else{if(Vd(),(t.flags&nt)===at&&(t.memoizedState=null),t.flags|=Gt,na(t),(t.mode&Jt)!==it){var g=i!==null;if(g){var w=t.child;w!==null&&(t.treeBaseDuration-=w.treeBaseDuration)}}return!1}else return DE(),!0}function n1(e,t,i){var o=t.pendingProps;switch(AS(t),t.tag){case A:case xe:case ve:case x:case ce:case G:case J:case fe:case de:case Re:return na(t),null;case R:{var u=t.type;return Ml(u)&&zg(t),na(t),null}case _:{var p=t.stateNode;if(Wd(t),RS(t),rw(),p.pendingContext&&(p.context=p.pendingContext,p.pendingContext=null),e===null||e.child===null){var g=$g(t);if(g)ep(t);else if(e!==null){var w=e.memoizedState;(!w.isDehydrated||(t.flags&jr)!==at)&&(t.flags|=sr,DE())}}return ab(e,t),na(t),null}case N:{JS(t);var b=XE(),M=t.type;if(e!==null&&t.stateNode!=null)e1(e,t,M,o,b),e.ref!==t.ref&&ZT(t);else{if(!o){if(t.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return na(t),null}var O=ZS(),B=$g(t);if(B)iD(t,b,O)&&ep(t);else{var F=GO(M,o,b,O,t);JT(F,t,!1,!1),t.stateNode=F,WO(F,M,o,b)&&ep(t)}t.ref!==null&&ZT(t)}return na(t),null}case z:{var q=o;if(e&&t.stateNode!=null){var te=e.memoizedProps;t1(e,t,te,q)}else{if(typeof q!="string"&&t.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");var ae=XE(),Le=ZS(),ct=$g(t);ct?oD(t)&&ep(t):t.stateNode=KO(q,ae,Le,t)}return na(t),null}case le:{Kd(t);var et=t.memoizedState;if(e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){var Xt=T2(e,t,et);if(!Xt)return t.flags&hr?t:null}if((t.flags&nt)!==at)return t.lanes=i,(t.mode&Jt)!==it&&_w(t),t;var Bt=et!==null,W=e!==null&&e.memoizedState!==null;if(Bt!==W&&Bt){var ie=t.child;if(ie.flags|=Kn,(t.mode&Lt)!==it){var X=e===null&&(t.memoizedProps.unstable_avoidThisFallback!==!0||!0);X||ew(Io.current,qE)?RL():xb()}}var we=t.updateQueue;if(we!==null&&(t.flags|=Gt),na(t),(t.mode&Jt)!==it&&Bt){var Fe=t.child;Fe!==null&&(t.treeBaseDuration-=Fe.treeBaseDuration)}return null}case k:return Wd(t),ab(e,t),e===null&&HN(t.stateNode.containerInfo),na(t),null;case ue:var Ie=t.type._context;return $S(Ie,t),na(t),null;case tt:{var mt=t.type;return Ml(mt)&&zg(t),na(t),null}case Rt:{Kd(t);var Tt=t.memoizedState;if(Tt===null)return na(t),null;var vn=(t.flags&nt)!==at,nn=Tt.rendering;if(nn===null)if(vn)vv(Tt,!1);else{var fr=_L()&&(e===null||(e.flags&nt)===at);if(!fr)for(var rn=t.child;rn!==null;){var nr=oy(rn);if(nr!==null){vn=!0,t.flags|=nt,vv(Tt,!1);var Ma=nr.updateQueue;return Ma!==null&&(t.updateQueue=Ma,t.flags|=Gt),t.subtreeFlags=at,mD(t,i),Ou(t,tw(Io.current,nv)),t.child}rn=rn.sibling}Tt.tail!==null&&ur()>C1()&&(t.flags|=nt,vn=!0,vv(Tt,!1),t.lanes=lh)}else{if(!vn){var la=oy(nn);if(la!==null){t.flags|=nt,vn=!0;var Ii=la.updateQueue;if(Ii!==null&&(t.updateQueue=Ii,t.flags|=Gt),vv(Tt,!0),Tt.tail===null&&Tt.tailMode==="hidden"&&!nn.alternate&&!ea())return na(t),null}else ur()*2-Tt.renderingStartTime>C1()&&i!==Sa&&(t.flags|=nt,vn=!0,vv(Tt,!1),t.lanes=lh)}if(Tt.isBackwards)nn.sibling=t.child,t.child=nn;else{var Ha=Tt.last;Ha!==null?Ha.sibling=nn:t.child=nn,Tt.last=nn}}if(Tt.tail!==null){var Va=Tt.tail;Tt.rendering=Va,Tt.tail=Va.sibling,Tt.renderingStartTime=ur(),Va.sibling=null;var _a=Io.current;return vn?_a=tw(_a,nv):_a=Xd(_a),Ou(t,_a),Va}return na(t),null}case lt:break;case Ae:case rt:{bb(t);var Ds=t.memoizedState,sp=Ds!==null;if(e!==null){var Ov=e.memoizedState,Pl=Ov!==null;Pl!==sp&&!Ce&&(t.flags|=Kn)}return!sp||(t.mode&Lt)===it?na(t):wa(Ll,Sa)&&(na(t),t.subtreeFlags&(Dn|Gt)&&(t.flags|=Kn)),null}case st:return null;case qe:return null}throw new Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function R2(e,t,i){switch(AS(t),t.tag){case R:{var o=t.type;Ml(o)&&zg(t);var u=t.flags;return u&hr?(t.flags=u&~hr|nt,(t.mode&Jt)!==it&&_w(t),t):null}case _:{t.stateNode,Wd(t),RS(t),rw();var p=t.flags;return(p&hr)!==at&&(p&nt)===at?(t.flags=p&~hr|nt,t):null}case N:return JS(t),null;case le:{Kd(t);var g=t.memoizedState;if(g!==null&&g.dehydrated!==null){if(t.alternate===null)throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Vd()}var w=t.flags;return w&hr?(t.flags=w&~hr|nt,(t.mode&Jt)!==it&&_w(t),t):null}case Rt:return Kd(t),null;case k:return Wd(t),null;case ue:var b=t.type._context;return $S(b,t),null;case Ae:case rt:return bb(t),null;case st:return null;default:return null}}function r1(e,t,i){switch(AS(t),t.tag){case R:{var o=t.type.childContextTypes;o!=null&&zg(t);break}case _:{t.stateNode,Wd(t),RS(t),rw();break}case N:{JS(t);break}case k:Wd(t);break;case le:Kd(t);break;case Rt:Kd(t);break;case ue:var u=t.type._context;$S(u,t);break;case Ae:case rt:bb(t);break}}var a1=null;a1=new Set;var Ay=!1,ra=!1,M2=typeof WeakSet=="function"?WeakSet:Set,Xe=null,tp=null,np=null;function _2(e){ul(null,function(){throw e}),cc()}var k2=function(e,t){if(t.props=e.memoizedProps,t.state=e.memoizedState,e.mode&Jt)try{Nl(),t.componentWillUnmount()}finally{Ol(e)}else t.componentWillUnmount()};function i1(e,t){try{Lu(kr,e)}catch(i){Mn(e,t,i)}}function ib(e,t,i){try{k2(e,i)}catch(o){Mn(e,t,o)}}function A2(e,t,i){try{i.componentDidMount()}catch(o){Mn(e,t,o)}}function o1(e,t){try{s1(e)}catch(i){Mn(e,t,i)}}function rp(e,t){var i=e.ref;if(i!==null)if(typeof i=="function"){var o;try{if(He&&yt&&e.mode&Jt)try{Nl(),o=i(null)}finally{Ol(e)}else o=i(null)}catch(u){Mn(e,t,u)}typeof o=="function"&&v("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",bt(e))}else i.current=null}function Oy(e,t,i){try{i()}catch(o){Mn(e,t,o)}}var l1=!1;function O2(e,t){VO(e.containerInfo),Xe=t,N2();var i=l1;return l1=!1,i}function N2(){for(;Xe!==null;){var e=Xe,t=e.child;(e.subtreeFlags&fl)!==at&&t!==null?(t.return=e,Xe=t):D2()}}function D2(){for(;Xe!==null;){var e=Xe;cn(e);try{L2(e)}catch(i){Mn(e,e.return,i)}Rn();var t=e.sibling;if(t!==null){t.return=e.return,Xe=t;return}Xe=e.return}}function L2(e){var t=e.alternate,i=e.flags;if((i&sr)!==at){switch(cn(e),e.tag){case x:case ce:case ve:break;case R:{if(t!==null){var o=t.memoizedProps,u=t.memoizedState,p=e.stateNode;e.type===e.elementType&&!rf&&(p.props!==e.memoizedProps&&v("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",bt(e)||"instance"),p.state!==e.memoizedState&&v("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",bt(e)||"instance"));var g=p.getSnapshotBeforeUpdate(e.elementType===e.type?o:zo(e.type,o),u);{var w=a1;g===void 0&&!w.has(e.type)&&(w.add(e.type),v("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",bt(e)))}p.__reactInternalSnapshotBeforeUpdate=g}break}case _:{{var b=e.stateNode;hN(b.containerInfo)}break}case N:case z:case k:case tt:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}Rn()}}function jo(e,t,i){var o=t.updateQueue,u=o!==null?o.lastEffect:null;if(u!==null){var p=u.next,g=p;do{if((g.tag&e)===e){var w=g.destroy;g.destroy=void 0,w!==void 0&&((e&ta)!==ui?Mo(t):(e&kr)!==ui&&pc(t),(e&_l)!==ui&&_v(!0),Oy(t,i,w),(e&_l)!==ui&&_v(!1),(e&ta)!==ui?vl():(e&kr)!==ui&&ih())}g=g.next}while(g!==p)}}function Lu(e,t){var i=t.updateQueue,o=i!==null?i.lastEffect:null;if(o!==null){var u=o.next,p=u;do{if((p.tag&e)===e){(e&ta)!==ui?ah(t):(e&kr)!==ui&&Xf(t);var g=p.create;(e&_l)!==ui&&_v(!0),p.destroy=g(),(e&_l)!==ui&&_v(!1),(e&ta)!==ui?Im():(e&kr)!==ui&&Um();{var w=p.destroy;if(w!==void 0&&typeof w!="function"){var b=void 0;(p.tag&kr)!==at?b="useLayoutEffect":(p.tag&_l)!==at?b="useInsertionEffect":b="useEffect";var M=void 0;w===null?M=" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof w.then=="function"?M=`
|
|
199
|
+
|
|
200
|
+
It looks like you wrote `+b+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
201
|
+
|
|
202
|
+
`+b+`(() => {
|
|
203
|
+
async function fetchData() {
|
|
204
|
+
// You can await here
|
|
205
|
+
const response = await MyAPI.getData(someId);
|
|
206
|
+
// ...
|
|
207
|
+
}
|
|
208
|
+
fetchData();
|
|
209
|
+
}, [someId]); // Or [] if effect doesn't need props or state
|
|
210
|
+
|
|
211
|
+
Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching`:M=" You returned: "+w,v("%s must not return anything besides a function, which is used for clean-up.%s",b,M)}}}p=p.next}while(p!==u)}}function P2(e,t){if((t.flags&Gt)!==at)switch(t.tag){case fe:{var i=t.stateNode.passiveEffectDuration,o=t.memoizedProps,u=o.id,p=o.onPostCommit,g=CT(),w=t.alternate===null?"mount":"update";xT()&&(w="nested-update"),typeof p=="function"&&p(u,w,i,g);var b=t.return;e:for(;b!==null;){switch(b.tag){case _:var M=b.stateNode;M.passiveEffectDuration+=i;break e;case fe:var O=b.stateNode;O.passiveEffectDuration+=i;break e}b=b.return}break}}}function I2(e,t,i,o){if((i.flags&pl)!==at)switch(i.tag){case x:case ce:case ve:{if(!ra)if(i.mode&Jt)try{Nl(),Lu(kr|_r,i)}finally{Ol(i)}else Lu(kr|_r,i);break}case R:{var u=i.stateNode;if(i.flags&Gt&&!ra)if(t===null)if(i.type===i.elementType&&!rf&&(u.props!==i.memoizedProps&&v("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",bt(i)||"instance"),u.state!==i.memoizedState&&v("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",bt(i)||"instance")),i.mode&Jt)try{Nl(),u.componentDidMount()}finally{Ol(i)}else u.componentDidMount();else{var p=i.elementType===i.type?t.memoizedProps:zo(i.type,t.memoizedProps),g=t.memoizedState;if(i.type===i.elementType&&!rf&&(u.props!==i.memoizedProps&&v("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",bt(i)||"instance"),u.state!==i.memoizedState&&v("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",bt(i)||"instance")),i.mode&Jt)try{Nl(),u.componentDidUpdate(p,g,u.__reactInternalSnapshotBeforeUpdate)}finally{Ol(i)}else u.componentDidUpdate(p,g,u.__reactInternalSnapshotBeforeUpdate)}var w=i.updateQueue;w!==null&&(i.type===i.elementType&&!rf&&(u.props!==i.memoizedProps&&v("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",bt(i)||"instance"),u.state!==i.memoizedState&&v("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",bt(i)||"instance")),WE(i,w,u));break}case _:{var b=i.updateQueue;if(b!==null){var M=null;if(i.child!==null)switch(i.child.tag){case N:M=i.child.stateNode;break;case R:M=i.child.stateNode;break}WE(i,b,M)}break}case N:{var O=i.stateNode;if(t===null&&i.flags&Gt){var B=i.type,F=i.memoizedProps;eN(O,B,F)}break}case z:break;case k:break;case fe:{{var q=i.memoizedProps,te=q.onCommit,ae=q.onRender,Le=i.stateNode.effectDuration,ct=CT(),et=t===null?"mount":"update";xT()&&(et="nested-update"),typeof ae=="function"&&ae(i.memoizedProps.id,et,i.actualDuration,i.treeBaseDuration,i.actualStartTime,ct);{typeof te=="function"&&te(i.memoizedProps.id,et,Le,ct),DL(i);var Xt=i.return;e:for(;Xt!==null;){switch(Xt.tag){case _:var Bt=Xt.stateNode;Bt.effectDuration+=Le;break e;case fe:var W=Xt.stateNode;W.effectDuration+=Le;break e}Xt=Xt.return}}}break}case le:{$2(e,i);break}case Rt:case tt:case lt:case Ae:case rt:case qe:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}ra||i.flags&zn&&s1(i)}function U2(e){switch(e.tag){case x:case ce:case ve:{if(e.mode&Jt)try{Nl(),i1(e,e.return)}finally{Ol(e)}else i1(e,e.return);break}case R:{var t=e.stateNode;typeof t.componentDidMount=="function"&&A2(e,e.return,t),o1(e,e.return);break}case N:{o1(e,e.return);break}}}function z2(e,t){for(var i=null,o=e;;){if(o.tag===N){if(i===null){i=o;try{var u=o.stateNode;t?cN(u):dN(o.stateNode,o.memoizedProps)}catch(g){Mn(e,e.return,g)}}}else if(o.tag===z){if(i===null)try{var p=o.stateNode;t?fN(p):pN(p,o.memoizedProps)}catch(g){Mn(e,e.return,g)}}else if(!((o.tag===Ae||o.tag===rt)&&o.memoizedState!==null&&o!==e)){if(o.child!==null){o.child.return=o,o=o.child;continue}}if(o===e)return;for(;o.sibling===null;){if(o.return===null||o.return===e)return;i===o&&(i=null),o=o.return}i===o&&(i=null),o.sibling.return=o.return,o=o.sibling}}function s1(e){var t=e.ref;if(t!==null){var i=e.stateNode,o;switch(e.tag){case N:o=i;break;default:o=i}if(typeof t=="function"){var u;if(e.mode&Jt)try{Nl(),u=t(o)}finally{Ol(e)}else u=t(o);typeof u=="function"&&v("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",bt(e))}else t.hasOwnProperty("current")||v("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",bt(e)),t.current=o}}function F2(e){var t=e.alternate;t!==null&&(t.return=null),e.return=null}function u1(e){var t=e.alternate;t!==null&&(e.alternate=null,u1(t));{if(e.child=null,e.deletions=null,e.sibling=null,e.tag===N){var i=e.stateNode;i!==null&&GN(i)}e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}}function j2(e){for(var t=e.return;t!==null;){if(c1(t))return t;t=t.return}throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}function c1(e){return e.tag===N||e.tag===_||e.tag===k}function f1(e){var t=e;e:for(;;){for(;t.sibling===null;){if(t.return===null||c1(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==N&&t.tag!==z&&t.tag!==dt;){if(t.flags&Dn||t.child===null||t.tag===k)continue e;t.child.return=t,t=t.child}if(!(t.flags&Dn))return t.stateNode}}function B2(e){var t=j2(e);switch(t.tag){case N:{var i=t.stateNode;t.flags&Ja&&(pE(i),t.flags&=~Ja);var o=f1(e);lb(e,o,i);break}case _:case k:{var u=t.stateNode.containerInfo,p=f1(e);ob(e,p,u);break}default:throw new Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function ob(e,t,i){var o=e.tag,u=o===N||o===z;if(u){var p=e.stateNode;t?oN(i,p,t):aN(i,p)}else if(o!==k){var g=e.child;if(g!==null){ob(g,t,i);for(var w=g.sibling;w!==null;)ob(w,t,i),w=w.sibling}}}function lb(e,t,i){var o=e.tag,u=o===N||o===z;if(u){var p=e.stateNode;t?iN(i,p,t):rN(i,p)}else if(o!==k){var g=e.child;if(g!==null){lb(g,t,i);for(var w=g.sibling;w!==null;)lb(w,t,i),w=w.sibling}}}var aa=null,Bo=!1;function H2(e,t,i){{var o=t;e:for(;o!==null;){switch(o.tag){case N:{aa=o.stateNode,Bo=!1;break e}case _:{aa=o.stateNode.containerInfo,Bo=!0;break e}case k:{aa=o.stateNode.containerInfo,Bo=!0;break e}}o=o.return}if(aa===null)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");d1(e,t,i),aa=null,Bo=!1}F2(i)}function Pu(e,t,i){for(var o=i.child;o!==null;)d1(e,t,o),o=o.sibling}function d1(e,t,i){switch(th(i),i.tag){case N:ra||rp(i,t);case z:{{var o=aa,u=Bo;aa=null,Pu(e,t,i),aa=o,Bo=u,aa!==null&&(Bo?sN(aa,i.stateNode):lN(aa,i.stateNode))}return}case dt:{aa!==null&&(Bo?uN(aa,i.stateNode):yS(aa,i.stateNode));return}case k:{{var p=aa,g=Bo;aa=i.stateNode.containerInfo,Bo=!0,Pu(e,t,i),aa=p,Bo=g}return}case x:case ce:case Re:case ve:{if(!ra){var w=i.updateQueue;if(w!==null){var b=w.lastEffect;if(b!==null){var M=b.next,O=M;do{var B=O,F=B.destroy,q=B.tag;F!==void 0&&((q&_l)!==ui?Oy(i,t,F):(q&kr)!==ui&&(pc(i),i.mode&Jt?(Nl(),Oy(i,t,F),Ol(i)):Oy(i,t,F),ih())),O=O.next}while(O!==M)}}}Pu(e,t,i);return}case R:{if(!ra){rp(i,t);var te=i.stateNode;typeof te.componentWillUnmount=="function"&&ib(i,t,te)}Pu(e,t,i);return}case lt:{Pu(e,t,i);return}case Ae:{if(i.mode&Lt){var ae=ra;ra=ae||i.memoizedState!==null,Pu(e,t,i),ra=ae}else Pu(e,t,i);break}default:{Pu(e,t,i);return}}}function V2(e){e.memoizedState}function $2(e,t){var i=t.memoizedState;if(i===null){var o=t.alternate;if(o!==null){var u=o.memoizedState;if(u!==null){var p=u.dehydrated;p!==null&&_N(p)}}}}function p1(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var i=e.stateNode;i===null&&(i=e.stateNode=new M2),t.forEach(function(o){var u=jL.bind(null,e,o);if(!i.has(o)){if(i.add(o),ya)if(tp!==null&&np!==null)Mv(np,tp);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");o.then(u,u)}})}}function G2(e,t,i){tp=i,np=e,cn(t),h1(t,e),cn(t),tp=null,np=null}function Ho(e,t,i){var o=t.deletions;if(o!==null)for(var u=0;u<o.length;u++){var p=o[u];try{H2(e,t,p)}catch(b){Mn(p,t,b)}}var g=nl();if(t.subtreeFlags&dl)for(var w=t.child;w!==null;)cn(w),h1(w,e),w=w.sibling;cn(g)}function h1(e,t,i){var o=e.alternate,u=e.flags;switch(e.tag){case x:case ce:case Re:case ve:{if(Ho(t,e),Dl(e),u&Gt){try{jo(_l|_r,e,e.return),Lu(_l|_r,e)}catch(mt){Mn(e,e.return,mt)}if(e.mode&Jt){try{Nl(),jo(kr|_r,e,e.return)}catch(mt){Mn(e,e.return,mt)}Ol(e)}else try{jo(kr|_r,e,e.return)}catch(mt){Mn(e,e.return,mt)}}return}case R:{Ho(t,e),Dl(e),u&zn&&o!==null&&rp(o,o.return);return}case N:{Ho(t,e),Dl(e),u&zn&&o!==null&&rp(o,o.return);{if(e.flags&Ja){var p=e.stateNode;try{pE(p)}catch(mt){Mn(e,e.return,mt)}}if(u&Gt){var g=e.stateNode;if(g!=null){var w=e.memoizedProps,b=o!==null?o.memoizedProps:w,M=e.type,O=e.updateQueue;if(e.updateQueue=null,O!==null)try{tN(g,O,M,b,w,e)}catch(mt){Mn(e,e.return,mt)}}}}return}case z:{if(Ho(t,e),Dl(e),u&Gt){if(e.stateNode===null)throw new Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");var B=e.stateNode,F=e.memoizedProps,q=o!==null?o.memoizedProps:F;try{nN(B,q,F)}catch(mt){Mn(e,e.return,mt)}}return}case _:{if(Ho(t,e),Dl(e),u&Gt&&o!==null){var te=o.memoizedState;if(te.isDehydrated)try{MN(t.containerInfo)}catch(mt){Mn(e,e.return,mt)}}return}case k:{Ho(t,e),Dl(e);return}case le:{Ho(t,e),Dl(e);var ae=e.child;if(ae.flags&Kn){var Le=ae.stateNode,ct=ae.memoizedState,et=ct!==null;if(Le.isHidden=et,et){var Xt=ae.alternate!==null&&ae.alternate.memoizedState!==null;Xt||TL()}}if(u&Gt){try{V2(e)}catch(mt){Mn(e,e.return,mt)}p1(e)}return}case Ae:{var Bt=o!==null&&o.memoizedState!==null;if(e.mode&Lt){var W=ra;ra=W||Bt,Ho(t,e),ra=W}else Ho(t,e);if(Dl(e),u&Kn){var ie=e.stateNode,X=e.memoizedState,we=X!==null,Fe=e;if(ie.isHidden=we,we&&!Bt&&(Fe.mode&Lt)!==it){Xe=Fe;for(var Ie=Fe.child;Ie!==null;)Xe=Ie,W2(Ie),Ie=Ie.sibling}z2(Fe,we)}return}case Rt:{Ho(t,e),Dl(e),u&Gt&&p1(e);return}case lt:return;default:{Ho(t,e),Dl(e);return}}}function Dl(e){var t=e.flags;if(t&Dn){try{B2(e)}catch(i){Mn(e,e.return,i)}e.flags&=~Dn}t&va&&(e.flags&=~va)}function Y2(e,t,i){tp=i,np=t,Xe=e,v1(e,t,i),tp=null,np=null}function v1(e,t,i){for(var o=(e.mode&Lt)!==it;Xe!==null;){var u=Xe,p=u.child;if(u.tag===Ae&&o){var g=u.memoizedState!==null,w=g||Ay;if(w){sb(e,t,i);continue}else{var b=u.alternate,M=b!==null&&b.memoizedState!==null,O=M||ra,B=Ay,F=ra;Ay=w,ra=O,ra&&!F&&(Xe=u,X2(u));for(var q=p;q!==null;)Xe=q,v1(q,t,i),q=q.sibling;Xe=u,Ay=B,ra=F,sb(e,t,i);continue}}(u.subtreeFlags&pl)!==at&&p!==null?(p.return=u,Xe=p):sb(e,t,i)}}function sb(e,t,i){for(;Xe!==null;){var o=Xe;if((o.flags&pl)!==at){var u=o.alternate;cn(o);try{I2(t,u,o,i)}catch(g){Mn(o,o.return,g)}Rn()}if(o===e){Xe=null;return}var p=o.sibling;if(p!==null){p.return=o.return,Xe=p;return}Xe=o.return}}function W2(e){for(;Xe!==null;){var t=Xe,i=t.child;switch(t.tag){case x:case ce:case Re:case ve:{if(t.mode&Jt)try{Nl(),jo(kr,t,t.return)}finally{Ol(t)}else jo(kr,t,t.return);break}case R:{rp(t,t.return);var o=t.stateNode;typeof o.componentWillUnmount=="function"&&ib(t,t.return,o);break}case N:{rp(t,t.return);break}case Ae:{var u=t.memoizedState!==null;if(u){m1(e);continue}break}}i!==null?(i.return=t,Xe=i):m1(e)}}function m1(e){for(;Xe!==null;){var t=Xe;if(t===e){Xe=null;return}var i=t.sibling;if(i!==null){i.return=t.return,Xe=i;return}Xe=t.return}}function X2(e){for(;Xe!==null;){var t=Xe,i=t.child;if(t.tag===Ae){var o=t.memoizedState!==null;if(o){g1(e);continue}}i!==null?(i.return=t,Xe=i):g1(e)}}function g1(e){for(;Xe!==null;){var t=Xe;cn(t);try{U2(t)}catch(o){Mn(t,t.return,o)}if(Rn(),t===e){Xe=null;return}var i=t.sibling;if(i!==null){i.return=t.return,Xe=i;return}Xe=t.return}}function K2(e,t,i,o){Xe=t,Q2(t,e,i,o)}function Q2(e,t,i,o){for(;Xe!==null;){var u=Xe,p=u.child;(u.subtreeFlags&To)!==at&&p!==null?(p.return=u,Xe=p):q2(e,t,i,o)}}function q2(e,t,i,o){for(;Xe!==null;){var u=Xe;if((u.flags&ha)!==at){cn(u);try{Z2(t,u,i,o)}catch(g){Mn(u,u.return,g)}Rn()}if(u===e){Xe=null;return}var p=u.sibling;if(p!==null){p.return=u.return,Xe=p;return}Xe=u.return}}function Z2(e,t,i,o){switch(t.tag){case x:case ce:case ve:{if(t.mode&Jt){Mw();try{Lu(ta|_r,t)}finally{Rw(t)}}else Lu(ta|_r,t);break}}}function J2(e){Xe=e,eL()}function eL(){for(;Xe!==null;){var e=Xe,t=e.child;if((Xe.flags&Za)!==at){var i=e.deletions;if(i!==null){for(var o=0;o<i.length;o++){var u=i[o];Xe=u,rL(u,e)}{var p=e.alternate;if(p!==null){var g=p.child;if(g!==null){p.child=null;do{var w=g.sibling;g.sibling=null,g=w}while(g!==null)}}}Xe=e}}(e.subtreeFlags&To)!==at&&t!==null?(t.return=e,Xe=t):tL()}}function tL(){for(;Xe!==null;){var e=Xe;(e.flags&ha)!==at&&(cn(e),nL(e),Rn());var t=e.sibling;if(t!==null){t.return=e.return,Xe=t;return}Xe=e.return}}function nL(e){switch(e.tag){case x:case ce:case ve:{e.mode&Jt?(Mw(),jo(ta|_r,e,e.return),Rw(e)):jo(ta|_r,e,e.return);break}}}function rL(e,t){for(;Xe!==null;){var i=Xe;cn(i),iL(i,t),Rn();var o=i.child;o!==null?(o.return=i,Xe=o):aL(e)}}function aL(e){for(;Xe!==null;){var t=Xe,i=t.sibling,o=t.return;if(u1(t),t===e){Xe=null;return}if(i!==null){i.return=o,Xe=i;return}Xe=o}}function iL(e,t){switch(e.tag){case x:case ce:case ve:{e.mode&Jt?(Mw(),jo(ta,e,t),Rw(e)):jo(ta,e,t);break}}}function oL(e){switch(e.tag){case x:case ce:case ve:{try{Lu(kr|_r,e)}catch(i){Mn(e,e.return,i)}break}case R:{var t=e.stateNode;try{t.componentDidMount()}catch(i){Mn(e,e.return,i)}break}}}function lL(e){switch(e.tag){case x:case ce:case ve:{try{Lu(ta|_r,e)}catch(t){Mn(e,e.return,t)}break}}}function sL(e){switch(e.tag){case x:case ce:case ve:{try{jo(kr|_r,e,e.return)}catch(i){Mn(e,e.return,i)}break}case R:{var t=e.stateNode;typeof t.componentWillUnmount=="function"&&ib(e,e.return,t);break}}}function uL(e){switch(e.tag){case x:case ce:case ve:try{jo(ta|_r,e,e.return)}catch(t){Mn(e,e.return,t)}}}if(typeof Symbol=="function"&&Symbol.for){var mv=Symbol.for;mv("selector.component"),mv("selector.has_pseudo_class"),mv("selector.role"),mv("selector.test_id"),mv("selector.text")}var cL=[];function fL(){cL.forEach(function(e){return e()})}var dL=l.ReactCurrentActQueue;function pL(e){{var t=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,i=typeof jest<"u";return i&&t!==!1}}function y1(){{var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return!e&&dL.current!==null&&v("The current testing environment is not configured to support act(...)"),e}}var hL=Math.ceil,ub=l.ReactCurrentDispatcher,cb=l.ReactCurrentOwner,ia=l.ReactCurrentBatchConfig,Vo=l.ReactCurrentActQueue,Nr=0,S1=1,oa=2,fo=4,ks=0,gv=1,af=2,Ny=3,yv=4,w1=5,fb=6,Wt=Nr,ja=null,Yn=null,Dr=he,Ll=he,db=Tu(he),Lr=ks,Sv=null,Dy=he,wv=he,Ly=he,bv=null,ci=null,pb=0,b1=500,x1=1/0,vL=500,As=null;function xv(){x1=ur()+vL}function C1(){return x1}var Py=!1,hb=null,ap=null,of=!1,Iu=null,Cv=he,vb=[],mb=null,mL=50,Ev=0,gb=null,yb=!1,Iy=!1,gL=50,ip=0,Uy=null,Tv=mn,zy=he,E1=!1;function Fy(){return ja}function Ba(){return(Wt&(oa|fo))!==Nr?ur():(Tv!==mn||(Tv=ur()),Tv)}function Uu(e){var t=e.mode;if((t&Lt)===it)return vt;if((Wt&oa)!==Nr&&Dr!==he)return Rc(Dr);var i=dD()!==fD;if(i){if(ia.transition!==null){var o=ia.transition;o._updatedFibers||(o._updatedFibers=new Set),o._updatedFibers.add(e)}return zy===qt&&(zy=ph()),zy}var u=ii();if(u!==qt)return u;var p=QO();return p}function yL(e){var t=e.mode;return(t&Lt)===it?vt:Vm()}function Pr(e,t,i,o){HL(),E1&&v("useInsertionEffect must not schedule updates."),yb&&(Iy=!0),hu(e,i,o),(Wt&oa)!==he&&e===ja?GL(t):(ya&&kc(e,t,i),YL(t),e===ja&&((Wt&oa)===Nr&&(wv=kt(wv,i)),Lr===yv&&zu(e,Dr)),fi(e,o),i===vt&&Wt===Nr&&(t.mode&Lt)===it&&!Vo.isBatchingLegacy&&(xv(),EE()))}function SL(e,t,i){var o=e.current;o.lanes=t,hu(e,t,i),fi(e,i)}function wL(e){return(Wt&oa)!==Nr}function fi(e,t){var i=e.callbackNode;hd(e,t);var o=pd(e,e===ja?Dr:he);if(o===he){i!==null&&j1(i),e.callbackNode=null,e.callbackPriority=qt;return}var u=yl(o),p=e.callbackPriority;if(p===u&&!(Vo.current!==null&&i!==Tb)){i==null&&p!==vt&&v("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}i!=null&&j1(i);var g;if(u===vt)e.tag===Ru?(Vo.isBatchingLegacy!==null&&(Vo.didScheduleLegacyUpdate=!0),XN(M1.bind(null,e))):CE(M1.bind(null,e)),Vo.current!==null?Vo.current.push(Mu):ZO(function(){(Wt&(oa|fo))===Nr&&Mu()}),g=null;else{var w;switch(Qm(o)){case Kr:w=dc;break;case to:w=hl;break;case ri:w=Ro;break;case ai:w=rs;break;default:w=Ro;break}g=Rb(w,T1.bind(null,e))}e.callbackPriority=u,e.callbackNode=g}function T1(e,t){if(zD(),Tv=mn,zy=he,(Wt&(oa|fo))!==Nr)throw new Error("Should not already be working.");var i=e.callbackNode,o=Ns();if(o&&e.callbackNode!==i)return null;var u=pd(e,e===ja?Dr:he);if(u===he)return null;var p=!md(e,u)&&!Hm(e,u)&&!t,g=p?AL(e,u):By(e,u);if(g!==ks){if(g===af){var w=vd(e);w!==he&&(u=w,g=Sb(e,w))}if(g===gv){var b=Sv;throw lf(e,he),zu(e,u),fi(e,ur()),b}if(g===fb)zu(e,u);else{var M=!md(e,u),O=e.current.alternate;if(M&&!xL(O)){if(g=By(e,u),g===af){var B=vd(e);B!==he&&(u=B,g=Sb(e,B))}if(g===gv){var F=Sv;throw lf(e,he),zu(e,u),fi(e,ur()),F}}e.finishedWork=O,e.finishedLanes=u,bL(e,g,u)}}return fi(e,ur()),e.callbackNode===i?T1.bind(null,e):null}function Sb(e,t){var i=bv;if(Sd(e)){var o=lf(e,t);o.flags|=jr,BN(e.containerInfo)}var u=By(e,t);if(u!==af){var p=ci;ci=i,p!==null&&R1(p)}return u}function R1(e){ci===null?ci=e:ci.push.apply(ci,e)}function bL(e,t,i){switch(t){case ks:case gv:throw new Error("Root did not complete. This is a bug in React.");case af:{sf(e,ci,As);break}case Ny:{if(zu(e,i),hs(i)&&!B1()){var o=pb+b1-ur();if(o>10){var u=pd(e,he);if(u!==he)break;var p=e.suspendedLanes;if(!vs(p,i)){Ba(),gd(e,p);break}e.timeoutHandle=mS(sf.bind(null,e,ci,As),o);break}}sf(e,ci,As);break}case yv:{if(zu(e,i),fh(i))break;if(!B1()){var g=Oi(e,i),w=g,b=ur()-w,M=BL(b)-b;if(M>10){e.timeoutHandle=mS(sf.bind(null,e,ci,As),M);break}}sf(e,ci,As);break}case w1:{sf(e,ci,As);break}default:throw new Error("Unknown root exit status.")}}function xL(e){for(var t=e;;){if(t.flags&uu){var i=t.updateQueue;if(i!==null){var o=i.stores;if(o!==null)for(var u=0;u<o.length;u++){var p=o[u],g=p.getSnapshot,w=p.value;try{if(!ye(g(),w))return!1}catch{return!1}}}}var b=t.child;if(t.subtreeFlags&uu&&b!==null){b.return=t,t=b;continue}if(t===e)return!0;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}return!0}function zu(e,t){t=Mc(t,Ly),t=Mc(t,wv),Ym(e,t)}function M1(e){if(FD(),(Wt&(oa|fo))!==Nr)throw new Error("Should not already be working.");Ns();var t=pd(e,he);if(!wa(t,vt))return fi(e,ur()),null;var i=By(e,t);if(e.tag!==Ru&&i===af){var o=vd(e);o!==he&&(t=o,i=Sb(e,o))}if(i===gv){var u=Sv;throw lf(e,he),zu(e,t),fi(e,ur()),u}if(i===fb)throw new Error("Root did not complete. This is a bug in React.");var p=e.current.alternate;return e.finishedWork=p,e.finishedLanes=t,sf(e,ci,As),fi(e,ur()),null}function CL(e,t){t!==he&&(yd(e,kt(t,vt)),fi(e,ur()),(Wt&(oa|fo))===Nr&&(xv(),Mu()))}function wb(e,t){var i=Wt;Wt|=S1;try{return e(t)}finally{Wt=i,Wt===Nr&&!Vo.isBatchingLegacy&&(xv(),EE())}}function EL(e,t,i,o,u){var p=ii(),g=ia.transition;try{return ia.transition=null,Jn(Kr),e(t,i,o,u)}finally{Jn(p),ia.transition=g,Wt===Nr&&xv()}}function Os(e){Iu!==null&&Iu.tag===Ru&&(Wt&(oa|fo))===Nr&&Ns();var t=Wt;Wt|=S1;var i=ia.transition,o=ii();try{return ia.transition=null,Jn(Kr),e?e():void 0}finally{Jn(o),ia.transition=i,Wt=t,(Wt&(oa|fo))===Nr&&Mu()}}function _1(){return(Wt&(oa|fo))!==Nr}function jy(e,t){Ta(db,Ll,e),Ll=kt(Ll,t)}function bb(e){Ll=db.current,Ea(db,e)}function lf(e,t){e.finishedWork=null,e.finishedLanes=he;var i=e.timeoutHandle;if(i!==gS&&(e.timeoutHandle=gS,qO(i)),Yn!==null)for(var o=Yn.return;o!==null;){var u=o.alternate;r1(u,o),o=o.return}ja=e;var p=uf(e.current,null);return Yn=p,Dr=Ll=t,Lr=ks,Sv=null,Dy=he,wv=he,Ly=he,bv=null,ci=null,SD(),Po.discardPendingWarnings(),p}function k1(e,t){do{var i=Yn;try{if(Qg(),JE(),Rn(),cb.current=null,i===null||i.return===null){Lr=gv,Sv=t,Yn=null;return}if(He&&i.mode&Jt&&Ty(i,!0),Be)if(Ia(),t!==null&&typeof t=="object"&&typeof t.then=="function"){var o=t;eo(i,o,Dr)}else hc(i,t,Dr);XD(e,i.return,i,t,Dr),D1(i)}catch(u){t=u,Yn===i&&i!==null?(i=i.return,Yn=i):i=Yn;continue}return}while(!0)}function A1(){var e=ub.current;return ub.current=wy,e===null?wy:e}function O1(e){ub.current=e}function TL(){pb=ur()}function Rv(e){Dy=kt(e,Dy)}function RL(){Lr===ks&&(Lr=Ny)}function xb(){(Lr===ks||Lr===Ny||Lr===af)&&(Lr=yv),ja!==null&&(Tc(Dy)||Tc(wv))&&zu(ja,Dr)}function ML(e){Lr!==yv&&(Lr=af),bv===null?bv=[e]:bv.push(e)}function _L(){return Lr===ks}function By(e,t){var i=Wt;Wt|=oa;var o=A1();if(ja!==e||Dr!==t){if(ya){var u=e.memoizedUpdaters;u.size>0&&(Mv(e,Dr),u.clear()),Wm(e,t)}As=gh(),lf(e,t)}ls(t);do try{kL();break}catch(p){k1(e,p)}while(!0);if(Qg(),Wt=i,O1(o),Yn!==null)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return Kf(),ja=null,Dr=he,Lr}function kL(){for(;Yn!==null;)N1(Yn)}function AL(e,t){var i=Wt;Wt|=oa;var o=A1();if(ja!==e||Dr!==t){if(ya){var u=e.memoizedUpdaters;u.size>0&&(Mv(e,Dr),u.clear()),Wm(e,t)}As=gh(),xv(),lf(e,t)}ls(t);do try{OL();break}catch(p){k1(e,p)}while(!0);return Qg(),O1(o),Wt=i,Yn!==null?(zm(),ks):(Kf(),ja=null,Dr=he,Lr)}function OL(){for(;Yn!==null&&!Qp();)N1(Yn)}function N1(e){var t=e.alternate;cn(e);var i;(e.mode&Jt)!==it?(Tw(e),i=Cb(t,e,Ll),Ty(e,!0)):i=Cb(t,e,Ll),Rn(),e.memoizedProps=e.pendingProps,i===null?D1(e):Yn=i,cb.current=null}function D1(e){var t=e;do{var i=t.alternate,o=t.return;if((t.flags&fc)===at){cn(t);var u=void 0;if((t.mode&Jt)===it?u=n1(i,t,Ll):(Tw(t),u=n1(i,t,Ll),Ty(t,!1)),Rn(),u!==null){Yn=u;return}}else{var p=R2(i,t);if(p!==null){p.flags&=Nm,Yn=p;return}if((t.mode&Jt)!==it){Ty(t,!1);for(var g=t.actualDuration,w=t.child;w!==null;)g+=w.actualDuration,w=w.sibling;t.actualDuration=g}if(o!==null)o.flags|=fc,o.subtreeFlags=at,o.deletions=null;else{Lr=fb,Yn=null;return}}var b=t.sibling;if(b!==null){Yn=b;return}t=o,Yn=t}while(t!==null);Lr===ks&&(Lr=w1)}function sf(e,t,i){var o=ii(),u=ia.transition;try{ia.transition=null,Jn(Kr),NL(e,t,i,o)}finally{ia.transition=u,Jn(o)}return null}function NL(e,t,i,o){do Ns();while(Iu!==null);if(VL(),(Wt&(oa|fo))!==Nr)throw new Error("Should not already be working.");var u=e.finishedWork,p=e.finishedLanes;if(nh(p),u===null)return rh(),null;if(p===he&&v("root.finishedLanes should not be empty during a commit. This is a bug in React."),e.finishedWork=null,e.finishedLanes=he,u===e.current)throw new Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");e.callbackNode=null,e.callbackPriority=qt;var g=kt(u.lanes,u.childLanes);vh(e,g),e===ja&&(ja=null,Yn=null,Dr=he),((u.subtreeFlags&To)!==at||(u.flags&To)!==at)&&(of||(of=!0,mb=i,Rb(Ro,function(){return Ns(),null})));var w=(u.subtreeFlags&(fl|dl|pl|To))!==at,b=(u.flags&(fl|dl|pl|To))!==at;if(w||b){var M=ia.transition;ia.transition=null;var O=ii();Jn(Kr);var B=Wt;Wt|=fo,cb.current=null,O2(e,u),ET(),G2(e,u,p),$O(e.containerInfo),e.current=u,vc(p),Y2(u,e,p),mc(),qp(),Wt=B,Jn(O),ia.transition=M}else e.current=u,ET();var F=of;if(of?(of=!1,Iu=e,Cv=p):(ip=0,Uy=null),g=e.pendingLanes,g===he&&(ap=null),F||U1(e.current,!1),Jp(u.stateNode,o),ya&&e.memoizedUpdaters.clear(),fL(),fi(e,ur()),t!==null)for(var q=e.onRecoverableError,te=0;te<t.length;te++){var ae=t[te],Le=ae.stack,ct=ae.digest;q(ae.value,{componentStack:Le,digest:ct})}if(Py){Py=!1;var et=hb;throw hb=null,et}return wa(Cv,vt)&&e.tag!==Ru&&Ns(),g=e.pendingLanes,wa(g,vt)?(UD(),e===gb?Ev++:(Ev=0,gb=e)):Ev=0,Mu(),rh(),null}function Ns(){if(Iu!==null){var e=Qm(Cv),t=Oc(ri,e),i=ia.transition,o=ii();try{return ia.transition=null,Jn(t),LL()}finally{Jn(o),ia.transition=i}}return!1}function DL(e){vb.push(e),of||(of=!0,Rb(Ro,function(){return Ns(),null}))}function LL(){if(Iu===null)return!1;var e=mb;mb=null;var t=Iu,i=Cv;if(Iu=null,Cv=he,(Wt&(oa|fo))!==Nr)throw new Error("Cannot flush passive effects while already rendering.");yb=!0,Iy=!1,os(i);var o=Wt;Wt|=fo,J2(t.current),K2(t,t.current,i,e);{var u=vb;vb=[];for(var p=0;p<u.length;p++){var g=u[p];P2(t,g)}}oh(),U1(t.current,!0),Wt=o,Mu(),Iy?t===Uy?ip++:(ip=0,Uy=t):ip=0,yb=!1,Iy=!1,eh(t);{var w=t.current.stateNode;w.effectDuration=0,w.passiveEffectDuration=0}return!0}function L1(e){return ap!==null&&ap.has(e)}function PL(e){ap===null?ap=new Set([e]):ap.add(e)}function IL(e){Py||(Py=!0,hb=e)}var UL=IL;function P1(e,t,i){var o=nf(i,t),u=NT(e,o,vt),p=ku(e,u,vt),g=Ba();p!==null&&(hu(p,vt,g),fi(p,g))}function Mn(e,t,i){if(_2(i),_v(!1),e.tag===_){P1(e,e,i);return}var o=null;for(o=t;o!==null;){if(o.tag===_){P1(o,e,i);return}else if(o.tag===R){var u=o.type,p=o.stateNode;if(typeof u.getDerivedStateFromError=="function"||typeof p.componentDidCatch=="function"&&!L1(p)){var g=nf(i,e),w=Vw(o,g,vt),b=ku(o,w,vt),M=Ba();b!==null&&(hu(b,vt,M),fi(b,M));return}}o=o.return}v(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Likely causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
|
|
212
|
+
|
|
213
|
+
Error message:
|
|
214
|
+
|
|
215
|
+
%s`,i)}function zL(e,t,i){var o=e.pingCache;o!==null&&o.delete(t);var u=Ba();gd(e,i),WL(e),ja===e&&vs(Dr,i)&&(Lr===yv||Lr===Ny&&hs(Dr)&&ur()-pb<b1?lf(e,he):Ly=kt(Ly,i)),fi(e,u)}function I1(e,t){t===qt&&(t=yL(e));var i=Ba(),o=si(e,t);o!==null&&(hu(o,t,i),fi(o,i))}function FL(e){var t=e.memoizedState,i=qt;t!==null&&(i=t.retryLane),I1(e,i)}function jL(e,t){var i=qt,o;switch(e.tag){case le:o=e.stateNode;var u=e.memoizedState;u!==null&&(i=u.retryLane);break;case Rt:o=e.stateNode;break;default:throw new Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}o!==null&&o.delete(t),I1(e,i)}function BL(e){return e<120?120:e<480?480:e<1080?1080:e<1920?1920:e<3e3?3e3:e<4320?4320:hL(e/1960)*1960}function HL(){if(Ev>mL)throw Ev=0,gb=null,new Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");ip>gL&&(ip=0,Uy=null,v("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render."))}function VL(){Po.flushLegacyContextWarning(),Po.flushPendingUnsafeLifecycleWarnings()}function U1(e,t){cn(e),Hy(e,cl,sL),t&&Hy(e,qi,uL),Hy(e,cl,oL),t&&Hy(e,qi,lL),Rn()}function Hy(e,t,i){for(var o=e,u=null;o!==null;){var p=o.subtreeFlags&t;o!==u&&o.child!==null&&p!==at?o=o.child:((o.flags&t)!==at&&i(o),o.sibling!==null?o=o.sibling:o=u=o.return)}}var Vy=null;function z1(e){{if((Wt&oa)!==Nr||!(e.mode&Lt))return;var t=e.tag;if(t!==A&&t!==_&&t!==R&&t!==x&&t!==ce&&t!==Re&&t!==ve)return;var i=bt(e)||"ReactComponent";if(Vy!==null){if(Vy.has(i))return;Vy.add(i)}else Vy=new Set([i]);var o=Cr;try{cn(e),v("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.")}finally{o?cn(e):Rn()}}}var Cb;{var $L=null;Cb=function(e,t,i){var o=Y1($L,t);try{return qT(e,t,i)}catch(p){if(nD()||p!==null&&typeof p=="object"&&typeof p.then=="function")throw p;if(Qg(),JE(),r1(e,t),Y1(t,o),t.mode&Jt&&Tw(t),ul(null,qT,null,e,t,i),Co()){var u=cc();typeof u=="object"&&u!==null&&u._suppressLogging&&typeof p=="object"&&p!==null&&!p._suppressLogging&&(p._suppressLogging=!0)}throw p}}}var F1=!1,Eb;Eb=new Set;function GL(e){if($i&&!LD())switch(e.tag){case x:case ce:case ve:{var t=Yn&&bt(Yn)||"Unknown",i=t;if(!Eb.has(i)){Eb.add(i);var o=bt(e)||"Unknown";v("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://reactjs.org/link/setstate-in-render",o,t,t)}break}case R:{F1||(v("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),F1=!0);break}}}function Mv(e,t){if(ya){var i=e.memoizedUpdaters;i.forEach(function(o){kc(e,o,t)})}}var Tb={};function Rb(e,t){{var i=Vo.current;return i!==null?(i.push(t),Tb):Kp(e,t)}}function j1(e){if(e!==Tb)return Lm(e)}function B1(){return Vo.current!==null}function YL(e){{if(e.mode&Lt){if(!y1())return}else if(!pL()||Wt!==Nr||e.tag!==x&&e.tag!==ce&&e.tag!==ve)return;if(Vo.current===null){var t=Cr;try{cn(e),v(`An update to %s inside a test was not wrapped in act(...).
|
|
216
|
+
|
|
217
|
+
When testing, code that causes React state updates should be wrapped into act(...):
|
|
218
|
+
|
|
219
|
+
act(() => {
|
|
220
|
+
/* fire events that update state */
|
|
221
|
+
});
|
|
222
|
+
/* assert on the output */
|
|
223
|
+
|
|
224
|
+
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`,bt(e))}finally{t?cn(e):Rn()}}}}function WL(e){e.tag!==Ru&&y1()&&Vo.current===null&&v(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
|
|
225
|
+
|
|
226
|
+
When testing, code that resolves suspended data should be wrapped into act(...):
|
|
227
|
+
|
|
228
|
+
act(() => {
|
|
229
|
+
/* finish loading suspended data */
|
|
230
|
+
});
|
|
231
|
+
/* assert on the output */
|
|
232
|
+
|
|
233
|
+
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`)}function _v(e){E1=e}var po=null,op=null,XL=function(e){po=e};function lp(e){{if(po===null)return e;var t=po(e);return t===void 0?e:t.current}}function Mb(e){return lp(e)}function _b(e){{if(po===null)return e;var t=po(e);if(t===void 0){if(e!=null&&typeof e.render=="function"){var i=lp(e.render);if(e.render!==i){var o={$$typeof:pe,render:i};return e.displayName!==void 0&&(o.displayName=e.displayName),o}}return e}return t.current}}function H1(e,t){{if(po===null)return!1;var i=e.elementType,o=t.type,u=!1,p=typeof o=="object"&&o!==null?o.$$typeof:null;switch(e.tag){case R:{typeof o=="function"&&(u=!0);break}case x:{(typeof o=="function"||p===Ct)&&(u=!0);break}case ce:{(p===pe||p===Ct)&&(u=!0);break}case Re:case ve:{(p===Mt||p===Ct)&&(u=!0);break}default:return!1}if(u){var g=po(i);if(g!==void 0&&g===po(o))return!0}return!1}}function V1(e){{if(po===null||typeof WeakSet!="function")return;op===null&&(op=new WeakSet),op.add(e)}}var KL=function(e,t){{if(po===null)return;var i=t.staleFamilies,o=t.updatedFamilies;Ns(),Os(function(){kb(e.current,o,i)})}},QL=function(e,t){{if(e.context!==Li)return;Ns(),Os(function(){kv(t,e,null,null)})}};function kb(e,t,i){{var o=e.alternate,u=e.child,p=e.sibling,g=e.tag,w=e.type,b=null;switch(g){case x:case ve:case R:b=w;break;case ce:b=w.render;break}if(po===null)throw new Error("Expected resolveFamily to be set during hot reload.");var M=!1,O=!1;if(b!==null){var B=po(b);B!==void 0&&(i.has(B)?O=!0:t.has(B)&&(g===R?O=!0:M=!0))}if(op!==null&&(op.has(e)||o!==null&&op.has(o))&&(O=!0),O&&(e._debugNeedsRemount=!0),O||M){var F=si(e,vt);F!==null&&Pr(F,e,vt,mn)}u!==null&&!O&&kb(u,t,i),p!==null&&kb(p,t,i)}}var qL=function(e,t){{var i=new Set,o=new Set(t.map(function(u){return u.current}));return Ab(e.current,o,i),i}};function Ab(e,t,i){{var o=e.child,u=e.sibling,p=e.tag,g=e.type,w=null;switch(p){case x:case ve:case R:w=g;break;case ce:w=g.render;break}var b=!1;w!==null&&t.has(w)&&(b=!0),b?ZL(e,i):o!==null&&Ab(o,t,i),u!==null&&Ab(u,t,i)}}function ZL(e,t){{var i=JL(e,t);if(i)return;for(var o=e;;){switch(o.tag){case N:t.add(o.stateNode);return;case k:t.add(o.stateNode.containerInfo);return;case _:t.add(o.stateNode.containerInfo);return}if(o.return===null)throw new Error("Expected to reach root first.");o=o.return}}}function JL(e,t){for(var i=e,o=!1;;){if(i.tag===N)o=!0,t.add(i.stateNode);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===e)return o;for(;i.sibling===null;){if(i.return===null||i.return===e)return o;i=i.return}i.sibling.return=i.return,i=i.sibling}return!1}var Ob;{Ob=!1;try{var $1=Object.preventExtensions({})}catch{Ob=!0}}function eP(e,t,i,o){this.tag=e,this.key=i,this.elementType=null,this.type=null,this.stateNode=null,this.return=null,this.child=null,this.sibling=null,this.index=0,this.ref=null,this.pendingProps=t,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=o,this.flags=at,this.subtreeFlags=at,this.deletions=null,this.lanes=he,this.childLanes=he,this.alternate=null,this.actualDuration=Number.NaN,this.actualStartTime=Number.NaN,this.selfBaseDuration=Number.NaN,this.treeBaseDuration=Number.NaN,this.actualDuration=0,this.actualStartTime=-1,this.selfBaseDuration=0,this.treeBaseDuration=0,this._debugSource=null,this._debugOwner=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,!Ob&&typeof Object.preventExtensions=="function"&&Object.preventExtensions(this)}var Pi=function(e,t,i,o){return new eP(e,t,i,o)};function Nb(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function tP(e){return typeof e=="function"&&!Nb(e)&&e.defaultProps===void 0}function nP(e){if(typeof e=="function")return Nb(e)?R:x;if(e!=null){var t=e.$$typeof;if(t===pe)return ce;if(t===Mt)return Re}return A}function uf(e,t){var i=e.alternate;i===null?(i=Pi(e.tag,t,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i._debugSource=e._debugSource,i._debugOwner=e._debugOwner,i._debugHookTypes=e._debugHookTypes,i.alternate=e,e.alternate=i):(i.pendingProps=t,i.type=e.type,i.flags=at,i.subtreeFlags=at,i.deletions=null,i.actualDuration=0,i.actualStartTime=-1),i.flags=e.flags&Qn,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue;var o=e.dependencies;switch(i.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i.selfBaseDuration=e.selfBaseDuration,i.treeBaseDuration=e.treeBaseDuration,i._debugNeedsRemount=e._debugNeedsRemount,i.tag){case A:case x:case ve:i.type=lp(e.type);break;case R:i.type=Mb(e.type);break;case ce:i.type=_b(e.type);break}return i}function rP(e,t){e.flags&=Qn|Dn;var i=e.alternate;if(i===null)e.childLanes=he,e.lanes=t,e.child=null,e.subtreeFlags=at,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0;else{e.childLanes=i.childLanes,e.lanes=i.lanes,e.child=i.child,e.subtreeFlags=at,e.deletions=null,e.memoizedProps=i.memoizedProps,e.memoizedState=i.memoizedState,e.updateQueue=i.updateQueue,e.type=i.type;var o=i.dependencies;e.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},e.selfBaseDuration=i.selfBaseDuration,e.treeBaseDuration=i.treeBaseDuration}return e}function aP(e,t,i){var o;return e===jg?(o=Lt,t===!0&&(o|=pn,o|=en)):o=it,ya&&(o|=Jt),Pi(_,null,null,o)}function Db(e,t,i,o,u,p){var g=A,w=e;if(typeof e=="function")Nb(e)?(g=R,w=Mb(w)):w=lp(w);else if(typeof e=="string")g=N;else e:switch(e){case ji:return Fu(i.children,u,p,t);case wi:g=J,u|=pn,(u&Lt)!==it&&(u|=en);break;case Bi:return iP(i,u,p,t);case Ne:return oP(i,u,p,t);case $e:return lP(i,u,p,t);case jn:return G1(i,u,p,t);case bn:case Ut:case Tn:case xr:case Dt:default:{if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Hi:g=ue;break e;case P:g=de;break e;case pe:g=ce,w=_b(w);break e;case Mt:g=Re;break e;case Ct:g=xe,w=null;break e}var b="";{(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(b+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var M=o?bt(o):null;M&&(b+=`
|
|
234
|
+
|
|
235
|
+
Check the render method of \``+M+"`.")}throw new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(e==null?e:typeof e)+"."+b))}}var O=Pi(g,i,t,u);return O.elementType=e,O.type=w,O.lanes=p,O._debugOwner=o,O}function Lb(e,t,i){var o=null;o=e._owner;var u=e.type,p=e.key,g=e.props,w=Db(u,p,g,o,t,i);return w._debugSource=e._source,w._debugOwner=e._owner,w}function Fu(e,t,i,o){var u=Pi(G,e,o,t);return u.lanes=i,u}function iP(e,t,i,o){typeof e.id!="string"&&v('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id);var u=Pi(fe,e,o,t|Jt);return u.elementType=Bi,u.lanes=i,u.stateNode={effectDuration:0,passiveEffectDuration:0},u}function oP(e,t,i,o){var u=Pi(le,e,o,t);return u.elementType=Ne,u.lanes=i,u}function lP(e,t,i,o){var u=Pi(Rt,e,o,t);return u.elementType=$e,u.lanes=i,u}function G1(e,t,i,o){var u=Pi(Ae,e,o,t);u.elementType=jn,u.lanes=i;var p={isHidden:!1};return u.stateNode=p,u}function Pb(e,t,i){var o=Pi(z,e,null,t);return o.lanes=i,o}function sP(){var e=Pi(N,null,null,it);return e.elementType="DELETED",e}function uP(e){var t=Pi(dt,null,null,it);return t.stateNode=e,t}function Ib(e,t,i){var o=e.children!==null?e.children:[],u=Pi(k,o,e.key,t);return u.lanes=i,u.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},u}function Y1(e,t){return e===null&&(e=Pi(A,null,null,it)),e.tag=t.tag,e.key=t.key,e.elementType=t.elementType,e.type=t.type,e.stateNode=t.stateNode,e.return=t.return,e.child=t.child,e.sibling=t.sibling,e.index=t.index,e.ref=t.ref,e.pendingProps=t.pendingProps,e.memoizedProps=t.memoizedProps,e.updateQueue=t.updateQueue,e.memoizedState=t.memoizedState,e.dependencies=t.dependencies,e.mode=t.mode,e.flags=t.flags,e.subtreeFlags=t.subtreeFlags,e.deletions=t.deletions,e.lanes=t.lanes,e.childLanes=t.childLanes,e.alternate=t.alternate,e.actualDuration=t.actualDuration,e.actualStartTime=t.actualStartTime,e.selfBaseDuration=t.selfBaseDuration,e.treeBaseDuration=t.treeBaseDuration,e._debugSource=t._debugSource,e._debugOwner=t._debugOwner,e._debugNeedsRemount=t._debugNeedsRemount,e._debugHookTypes=t._debugHookTypes,e}function cP(e,t,i,o,u){this.tag=t,this.containerInfo=e,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=gS,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=qt,this.eventTimes=_c(he),this.expirationTimes=_c(mn),this.pendingLanes=he,this.suspendedLanes=he,this.pingedLanes=he,this.expiredLanes=he,this.mutableReadLanes=he,this.finishedLanes=he,this.entangledLanes=he,this.entanglements=_c(he),this.identifierPrefix=o,this.onRecoverableError=u,this.mutableSourceEagerHydrationData=null,this.effectDuration=0,this.passiveEffectDuration=0;{this.memoizedUpdaters=new Set;for(var p=this.pendingUpdatersLaneMap=[],g=0;g<ss;g++)p.push(new Set)}switch(t){case jg:this._debugRootType=i?"hydrateRoot()":"createRoot()";break;case Ru:this._debugRootType=i?"hydrate()":"render()";break}}function W1(e,t,i,o,u,p,g,w,b,M){var O=new cP(e,t,i,w,b),B=aP(t,p);O.current=B,B.stateNode=O;{var F={element:o,isDehydrated:i,cache:null,transitions:null,pendingSuspenseBoundaries:null};B.memoizedState=F}return KS(B),O}var Ub="18.3.1";function fP(e,t,i){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return fa(o),{$$typeof:br,key:o==null?null:""+o,children:e,containerInfo:t,implementation:i}}var zb,Fb;zb=!1,Fb={};function X1(e){if(!e)return Li;var t=su(e),i=WN(t);if(t.tag===R){var o=t.type;if(Ml(o))return bE(t,o,i)}return i}function dP(e,t){{var i=su(e);if(i===void 0){if(typeof e.render=="function")throw new Error("Unable to find node on an unmounted component.");var o=Object.keys(e).join(",");throw new Error("Argument appears to not be a ReactComponent. Keys: "+o)}var u=ma(i);if(u===null)return null;if(u.mode&pn){var p=bt(i)||"Component";if(!Fb[p]){Fb[p]=!0;var g=Cr;try{cn(u),i.mode&pn?v("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",t,t,p):v("%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",t,t,p)}finally{g?cn(g):Rn()}}}return u.stateNode}}function K1(e,t,i,o,u,p,g,w){var b=!1,M=null;return W1(e,t,b,M,i,o,u,p,g)}function Q1(e,t,i,o,u,p,g,w,b,M){var O=!0,B=W1(i,o,O,e,u,p,g,w,b);B.context=X1(null);var F=B.current,q=Ba(),te=Uu(F),ae=Ms(q,te);return ae.callback=t??null,ku(F,ae,te),SL(B,te,q),B}function kv(e,t,i,o){Zp(t,e);var u=t.current,p=Ba(),g=Uu(u);Pn(g);var w=X1(i);t.context===null?t.context=w:t.pendingContext=w,$i&&Cr!==null&&!zb&&(zb=!0,v(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
|
|
236
|
+
|
|
237
|
+
Check the render method of %s.`,bt(Cr)||"Unknown"));var b=Ms(p,g);b.payload={element:e},o=o===void 0?null:o,o!==null&&(typeof o!="function"&&v("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",o),b.callback=o);var M=ku(u,b,g);return M!==null&&(Pr(M,u,g,p),ty(M,u,g)),g}function $y(e){var t=e.current;if(!t.child)return null;switch(t.child.tag){case N:return t.child.stateNode;default:return t.child.stateNode}}function pP(e){switch(e.tag){case _:{var t=e.stateNode;if(Sd(t)){var i=jm(t);CL(t,i)}break}case le:{Os(function(){var u=si(e,vt);if(u!==null){var p=Ba();Pr(u,e,vt,p)}});var o=vt;jb(e,o);break}}}function q1(e,t){var i=e.memoizedState;i!==null&&i.dehydrated!==null&&(i.retryLane=Gm(i.retryLane,t))}function jb(e,t){q1(e,t);var i=e.alternate;i&&q1(i,t)}function hP(e){if(e.tag===le){var t=xc,i=si(e,t);if(i!==null){var o=Ba();Pr(i,e,t,o)}jb(e,t)}}function vP(e){if(e.tag===le){var t=Uu(e),i=si(e,t);if(i!==null){var o=Ba();Pr(i,e,t,o)}jb(e,t)}}function Z1(e){var t=kn(e);return t===null?null:t.stateNode}var J1=function(e){return null};function mP(e){return J1(e)}var eR=function(e){return!1};function gP(e){return eR(e)}var tR=null,nR=null,rR=null,aR=null,iR=null,oR=null,lR=null,sR=null,uR=null;{var cR=function(e,t,i){var o=t[i],u=Nt(e)?e.slice():At({},e);return i+1===t.length?(Nt(u)?u.splice(o,1):delete u[o],u):(u[o]=cR(e[o],t,i+1),u)},fR=function(e,t){return cR(e,t,0)},dR=function(e,t,i,o){var u=t[o],p=Nt(e)?e.slice():At({},e);if(o+1===t.length){var g=i[o];p[g]=p[u],Nt(p)?p.splice(u,1):delete p[u]}else p[u]=dR(e[u],t,i,o+1);return p},pR=function(e,t,i){if(t.length!==i.length){y("copyWithRename() expects paths of the same length");return}else for(var o=0;o<i.length-1;o++)if(t[o]!==i[o]){y("copyWithRename() expects paths to be the same except for the deepest key");return}return dR(e,t,i,0)},hR=function(e,t,i,o){if(i>=t.length)return o;var u=t[i],p=Nt(e)?e.slice():At({},e);return p[u]=hR(e[u],t,i+1,o),p},vR=function(e,t,i){return hR(e,t,0,i)},Bb=function(e,t){for(var i=e.memoizedState;i!==null&&t>0;)i=i.next,t--;return i};tR=function(e,t,i,o){var u=Bb(e,t);if(u!==null){var p=vR(u.memoizedState,i,o);u.memoizedState=p,u.baseState=p,e.memoizedProps=At({},e.memoizedProps);var g=si(e,vt);g!==null&&Pr(g,e,vt,mn)}},nR=function(e,t,i){var o=Bb(e,t);if(o!==null){var u=fR(o.memoizedState,i);o.memoizedState=u,o.baseState=u,e.memoizedProps=At({},e.memoizedProps);var p=si(e,vt);p!==null&&Pr(p,e,vt,mn)}},rR=function(e,t,i,o){var u=Bb(e,t);if(u!==null){var p=pR(u.memoizedState,i,o);u.memoizedState=p,u.baseState=p,e.memoizedProps=At({},e.memoizedProps);var g=si(e,vt);g!==null&&Pr(g,e,vt,mn)}},aR=function(e,t,i){e.pendingProps=vR(e.memoizedProps,t,i),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var o=si(e,vt);o!==null&&Pr(o,e,vt,mn)},iR=function(e,t){e.pendingProps=fR(e.memoizedProps,t),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var i=si(e,vt);i!==null&&Pr(i,e,vt,mn)},oR=function(e,t,i){e.pendingProps=pR(e.memoizedProps,t,i),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var o=si(e,vt);o!==null&&Pr(o,e,vt,mn)},lR=function(e){var t=si(e,vt);t!==null&&Pr(t,e,vt,mn)},sR=function(e){J1=e},uR=function(e){eR=e}}function yP(e){var t=ma(e);return t===null?null:t.stateNode}function SP(e){return null}function wP(){return Cr}function bP(e){var t=e.findFiberByHostInstance,i=l.ReactCurrentDispatcher;return fu({bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:tR,overrideHookStateDeletePath:nR,overrideHookStateRenamePath:rR,overrideProps:aR,overridePropsDeletePath:iR,overridePropsRenamePath:oR,setErrorHandler:sR,setSuspenseHandler:uR,scheduleUpdate:lR,currentDispatcherRef:i,findHostInstanceByFiber:yP,findFiberByHostInstance:t||SP,findHostInstancesForRefresh:qL,scheduleRefresh:KL,scheduleRoot:QL,setRefreshHandler:XL,getCurrentFiber:wP,reconcilerVersion:Ub})}var mR=typeof reportError=="function"?reportError:function(e){console.error(e)};function Hb(e){this._internalRoot=e}Gy.prototype.render=Hb.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw new Error("Cannot update an unmounted root.");{typeof arguments[1]=="function"?v("render(...): does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):Yy(arguments[1])?v("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof arguments[1]<"u"&&v("You passed a second argument to root.render(...) but it only accepts one argument.");var i=t.containerInfo;if(i.nodeType!==Xn){var o=Z1(t.current);o&&o.parentNode!==i&&v("render(...): It looks like the React-rendered content of the root container was removed without using React. This is not supported and will cause errors. Instead, call root.unmount() to empty a root's container.")}}kv(e,t,null,null)},Gy.prototype.unmount=Hb.prototype.unmount=function(){typeof arguments[0]=="function"&&v("unmount(...): does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;_1()&&v("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),Os(function(){kv(null,e,null,null)}),mE(t)}};function xP(e,t){if(!Yy(e))throw new Error("createRoot(...): Target container is not a DOM element.");gR(e);var i=!1,o=!1,u="",p=mR;t!=null&&(t.hydrate?y("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof t=="object"&&t!==null&&t.$$typeof===Gr&&v(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
|
|
238
|
+
|
|
239
|
+
let root = createRoot(domContainer);
|
|
240
|
+
root.render(<App />);`),t.unstable_strictMode===!0&&(i=!0),t.identifierPrefix!==void 0&&(u=t.identifierPrefix),t.onRecoverableError!==void 0&&(p=t.onRecoverableError),t.transitionCallbacks!==void 0&&t.transitionCallbacks);var g=K1(e,jg,null,i,o,u,p);Dg(g.current,e);var w=e.nodeType===Xn?e.parentNode:e;return Ph(w),new Hb(g)}function Gy(e){this._internalRoot=e}function CP(e){e&&tg(e)}Gy.prototype.unstable_scheduleHydration=CP;function EP(e,t,i){if(!Yy(e))throw new Error("hydrateRoot(...): Target container is not a DOM element.");gR(e),t===void 0&&v("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var o=i??null,u=i!=null&&i.hydratedSources||null,p=!1,g=!1,w="",b=mR;i!=null&&(i.unstable_strictMode===!0&&(p=!0),i.identifierPrefix!==void 0&&(w=i.identifierPrefix),i.onRecoverableError!==void 0&&(b=i.onRecoverableError));var M=Q1(t,null,e,jg,o,p,g,w,b);if(Dg(M.current,e),Ph(e),u)for(var O=0;O<u.length;O++){var B=u[O];_D(M,B)}return new Gy(M)}function Yy(e){return!!(e&&(e.nodeType===pa||e.nodeType===xo||e.nodeType===Up))}function Av(e){return!!(e&&(e.nodeType===pa||e.nodeType===xo||e.nodeType===Up||e.nodeType===Xn&&e.nodeValue===" react-mount-point-unstable "))}function gR(e){e.nodeType===pa&&e.tagName&&e.tagName.toUpperCase()==="BODY"&&v("createRoot(): Creating roots directly with document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try using a container element created for your app."),Yh(e)&&(e._reactRootContainer?v("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):v("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}var TP=l.ReactCurrentOwner,yR;yR=function(e){if(e._reactRootContainer&&e.nodeType!==Xn){var t=Z1(e._reactRootContainer.current);t&&t.parentNode!==e&&v("render(...): It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container.")}var i=!!e._reactRootContainer,o=Vb(e),u=!!(o&&Eu(o));u&&!i&&v("render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."),e.nodeType===pa&&e.tagName&&e.tagName.toUpperCase()==="BODY"&&v("render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.")};function Vb(e){return e?e.nodeType===xo?e.documentElement:e.firstChild:null}function SR(){}function RP(e,t,i,o,u){if(u){if(typeof o=="function"){var p=o;o=function(){var F=$y(g);p.call(F)}}var g=Q1(t,o,e,Ru,null,!1,!1,"",SR);e._reactRootContainer=g,Dg(g.current,e);var w=e.nodeType===Xn?e.parentNode:e;return Ph(w),Os(),g}else{for(var b;b=e.lastChild;)e.removeChild(b);if(typeof o=="function"){var M=o;o=function(){var F=$y(O);M.call(F)}}var O=K1(e,Ru,null,!1,!1,"",SR);e._reactRootContainer=O,Dg(O.current,e);var B=e.nodeType===Xn?e.parentNode:e;return Ph(B),Os(function(){kv(t,O,i,o)}),O}}function MP(e,t){e!==null&&typeof e!="function"&&v("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e)}function Wy(e,t,i,o,u){yR(i),MP(u===void 0?null:u,"render");var p=i._reactRootContainer,g;if(!p)g=RP(i,t,e,u,o);else{if(g=p,typeof u=="function"){var w=u;u=function(){var b=$y(g);w.call(b)}}kv(t,g,e,u)}return $y(g)}var wR=!1;function _P(e){{wR||(wR=!0,v("findDOMNode is deprecated and will be removed in the next major release. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node"));var t=TP.current;if(t!==null&&t.stateNode!==null){var i=t.stateNode._warnedAboutRefsInRender;i||v("%s is accessing findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",Kt(t.type)||"A component"),t.stateNode._warnedAboutRefsInRender=!0}}return e==null?null:e.nodeType===pa?e:dP(e,"findDOMNode")}function kP(e,t,i){if(v("ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!Av(t))throw new Error("Target container is not a DOM element.");{var o=Yh(t)&&t._reactRootContainer===void 0;o&&v("You are calling ReactDOM.hydrate() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call hydrateRoot(container, element)?")}return Wy(null,e,t,!0,i)}function AP(e,t,i){if(v("ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!Av(t))throw new Error("Target container is not a DOM element.");{var o=Yh(t)&&t._reactRootContainer===void 0;o&&v("You are calling ReactDOM.render() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.render(element)?")}return Wy(null,e,t,!1,i)}function OP(e,t,i,o){if(v("ReactDOM.unstable_renderSubtreeIntoContainer() is no longer supported in React 18. Consider using a portal instead. Until you switch to the createRoot API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!Av(i))throw new Error("Target container is not a DOM element.");if(e==null||!j0(e))throw new Error("parentComponent must be a valid React Component");return Wy(e,t,i,!1,o)}var bR=!1;function NP(e){if(bR||(bR=!0,v("unmountComponentAtNode is deprecated and will be removed in the next major release. Switch to the createRoot API. Learn more: https://reactjs.org/link/switch-to-createroot")),!Av(e))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var t=Yh(e)&&e._reactRootContainer===void 0;t&&v("You are calling ReactDOM.unmountComponentAtNode() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.unmount()?")}if(e._reactRootContainer){{var i=Vb(e),o=i&&!Eu(i);o&&v("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return Os(function(){Wy(null,null,e,!1,function(){e._reactRootContainer=null,mE(e)})}),!0}else{{var u=Vb(e),p=!!(u&&Eu(u)),g=e.nodeType===pa&&Av(e.parentNode)&&!!e.parentNode._reactRootContainer;p&&v("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",g?"You may have accidentally passed in a React root node instead of its container.":"Instead, have the parent component update its state and rerender in order to remove this component.")}return!1}}Hr(pP),vu(hP),qm(vP),Dc(ii),yh(Xm),(typeof Map!="function"||Map.prototype==null||typeof Map.prototype.forEach!="function"||typeof Set!="function"||Set.prototype==null||typeof Set.prototype.clear!="function"||typeof Set.prototype.forEach!="function")&&v("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),If(LO),F0(wb,EL,Os);function DP(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Yy(t))throw new Error("Target container is not a DOM element.");return fP(e,t,null,i)}function LP(e,t,i,o){return OP(e,t,i,o)}var $b={usingClientEntryPoint:!1,Events:[Eu,zd,Lg,au,Uf,wb]};function PP(e,t){return $b.usingClientEntryPoint||v('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),xP(e,t)}function IP(e,t,i){return $b.usingClientEntryPoint||v('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),EP(e,t,i)}function UP(e){return _1()&&v("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."),Os(e)}var zP=bP({findFiberByHostInstance:Wc,bundleType:1,version:Ub,rendererPackageName:"react-dom"});if(!zP&&gn&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var xR=window.location.protocol;/^(https?|file):$/.test(xR)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(xR==="file:"?`
|
|
241
|
+
You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}Ga.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$b,Ga.createPortal=DP,Ga.createRoot=PP,Ga.findDOMNode=_P,Ga.flushSync=UP,Ga.hydrate=kP,Ga.hydrateRoot=IP,Ga.render=AP,Ga.unmountComponentAtNode=NP,Ga.unstable_batchedUpdates=wb,Ga.unstable_renderSubtreeIntoContainer=LP,Ga.version=Ub,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),Ga}function nx(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(nx)}catch(c){console.error(c)}}}process.env.NODE_ENV==="production"?(nx(),Ky.exports=kR()):Ky.exports=AR();var Zy=Ky.exports,hp=Zy;if(process.env.NODE_ENV==="production")pp.createRoot=hp.createRoot,pp.hydrateRoot=hp.hydrateRoot;else{var Lv=hp.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;pp.createRoot=function(c,a){Lv.usingClientEntryPoint=!0;try{return hp.createRoot(c,a)}finally{Lv.usingClientEntryPoint=!1}},pp.hydrateRoot=function(c,a,l){Lv.usingClientEntryPoint=!0;try{return hp.hydrateRoot(c,a,l)}finally{Lv.usingClientEntryPoint=!1}}}var Q=fp();const Pv=cf(Q),rx=di({__proto__:null,default:Pv},[Q]),ax=c=>{let a;const l=new Set,f=(R,A)=>{const _=typeof R=="function"?R(a):R;if(!Object.is(_,a)){const k=a;a=A??(typeof _!="object"||_===null)?_:Object.assign({},a,_),l.forEach(N=>N(a,k))}},h=()=>a,C={setState:f,getState:h,getInitialState:()=>x,subscribe:R=>(l.add(R),()=>l.delete(R))},x=a=c(f,h,C);return C},OR=c=>c?ax(c):ax,NR=c=>c;function DR(c,a=NR){const l=Pv.useSyncExternalStore(c.subscribe,()=>a(c.getState()),()=>a(c.getInitialState()));return Pv.useDebugValue(l),l}const ix=c=>{const a=OR(c),l=f=>DR(a,f);return Object.assign(l,a),l},LR=c=>c?ix(c):ix,H={CANVAS_WIDTH:800,CANVAS_HEIGHT:600,PLAYER_HEIGHT:35,PLAYER_WIDTH:25,BOMB_SIZE:25,MONSTER_SIZE:25,PLATFORM_HEIGHT:25,COIN_SIZE:25,USE_SPRITES:!0,PARALLAX_ENABLED:!0,GRAVITY:.3,FLOAT_GRAVITY:.005,MOVE_SPEED:4,JUMP_POWER:8,SUPER_JUMP_POWER:12,COIN_BOUNCE_SPEED:3,COIN_BOUNCE_DAMPING:.8,COIN_GRAVITY:.1,MIN_JUMP_DURATION:50,MAX_JUMP_DURATION:300,TOTAL_BOMBS:23,STARTING_LIVES:3,POWER_COIN_SPAWN_INTERVAL:9,BONUS_COIN_SPAWN_INTERVAL:5e3,EXTRA_LIFE_COIN_RATIO:10,POWER_COIN_DURATION:7e3,POWER_COIN_POINTS:2e3,MONSTER_KILL_POINTS:100,BONUS_MULTIPLIER_COIN_POINTS:1e3,EXTRA_LIFE_COIN_POINTS:1e3,MULTIPLIER_THRESHOLDS:{1:0,2:1800,3:3600,4:5400,5:7200},MAX_MULTIPLIER:5,BOMB_POINTS:{NORMAL:100,FIREBOMB:200},BONUS_POINTS:{23:5e4,22:3e4,21:2e4,20:1e4}},ox={masterVolume:80,musicVolume:70,sfxVolume:90,masterMuted:!1,musicMuted:!1,sfxMuted:!1},Ya={ENABLED:!1,TARGET_STATE:"PLAYING",TARGET_LEVEL:6,MOCK_DATA:{score:15e3,lives:2,correctOrderCount:18,multiplier:2,multiplierScore:2600}};typeof window<"u"&&(window.__DEV_LOGGING_ENABLED__=Ya.ENABLED);const rr={PLAYER:"#00FF00",BOMB:"#FFD700",BOMB_NEXT:"#FF0000",MONSTER:"#FF4444",MONSTER_FROZEN:"#4444FF",MONSTER_HORIZONTAL_PATROL:"#FF4444",MONSTER_VERTICAL_PATROL:"#44FF44",MONSTER_CHASER:"#FF8844",MONSTER_AMBUSHER:"#8844FF",MONSTER_FLOATER:"#44FFFF",PLATFORM:"#484744",BACKGROUND:"#262521"},lx=()=>({x:H.CANVAS_WIDTH/2,y:H.CANVAS_HEIGHT-100,width:H.PLAYER_WIDTH,height:H.PLAYER_HEIGHT,color:rr.PLAYER,velocityX:0,velocityY:0,isGrounded:!1,isFloating:!1,isJumping:!1,jumpStartTime:0,moveSpeed:H.MOVE_SPEED,jumpPower:H.JUMP_POWER,gravity:H.GRAVITY,floatGravity:H.FLOAT_GRAVITY}),PR=(c,a)=>({player:lx(),updatePlayer:l=>{c({player:{...a().player,...l}})},resetPlayer:()=>{c({player:lx()})},setPlayerPosition:(l,f)=>{c({player:{...a().player,x:l,y:f,velocityX:0,velocityY:0,isGrounded:!1,isFloating:!1,isJumping:!1,jumpStartTime:0}})}});var ot=(c=>(c.MENU="MENU",c.COUNTDOWN="COUNTDOWN",c.PLAYING="PLAYING",c.PAUSED="PAUSED",c.BONUS="BONUS",c.VICTORY="VICTORY",c.GAME_OVER="GAME_OVER",c.MAP_CLEARED="MAP_CLEARED",c))(ot||{}),Pt=(c=>(c.START="START",c.COUNTDOWN="COUNTDOWN",c.IN_GAME="IN_GAME",c.PAUSE="PAUSE",c.SETTINGS="SETTINGS",c.BONUS="BONUS",c.VICTORY="VICTORY",c.GAME_OVER="GAME_OVER",c.AUDIO_SETTINGS="AUDIO_SETTINGS",c))(Pt||{}),_n=(c=>(c.HORIZONTAL_PATROL="HORIZONTAL_PATROL",c.VERTICAL_PATROL="VERTICAL_PATROL",c.CHASER="CHASER",c.AMBUSHER="AMBUSHER",c.FLOATER="FLOATER",c))(_n||{}),It=(c=>(c.POWER="POWER",c.BONUS_MULTIPLIER="BONUS_MULTIPLIER",c.EXTRA_LIFE="EXTRA_LIFE",c.MONSTER_FREEZE="MONSTER_FREEZE",c))(It||{}),ua=(c=>(c.GAME_START="GAME_START",c.LEVEL_COMPLETE="LEVEL_COMPLETE",c.PLAYER_DEATH="PLAYER_DEATH",c.GAME_OVER="GAME_OVER",c.BONUS_SCREEN="BONUS_SCREEN",c.BOMB_COLLECT="BOMB_COLLECT",c.MAP_CLEARED="MAP_CLEARED",c.BACKGROUND_MUSIC="BACKGROUND_MUSIC",c.MONSTER_HIT="MONSTER_HIT",c.COIN_COLLECT="COIN_COLLECT",c.POWER_COIN_ACTIVATE="POWER_COIN_ACTIVATE",c))(ua||{});class IR{constructor(a=2){be(this,"logLevel",2);be(this,"lastLogTime",new Map);be(this,"logThrottle",new Map);switch("dataPassing".toLowerCase()){case"error":this.logLevel=0;break;case"warn":this.logLevel=1;break;case"info":this.logLevel=2;break;case"debug":this.logLevel=3;break;case"trace":this.logLevel=4;break;case"datapassing":this.logLevel=5;break;default:this.logLevel=a}}setLogLevel(a){this.logLevel=a}shouldLog(a,l=1e3){const f=Date.now(),h=this.lastLogTime.get(a)||0;return f-h>=l?(this.lastLogTime.set(a,f),!0):!1}game(a,...l){(this.logLevel===2||this.logLevel===3||this.logLevel===4)&&console.log(`🎮 ${a}`,...l)}flow(a,...l){(this.logLevel===2||this.logLevel===3||this.logLevel===4)&&console.log(`🌊 ${a}`,...l)}player(a,...l){(this.logLevel===2||this.logLevel===3||this.logLevel===4)&&console.log(`👤 ${a}`,...l)}monster(a,...l){(this.logLevel===2||this.logLevel===3||this.logLevel===4)&&console.log(`👹 ${a}`,...l)}coin(a,...l){(this.logLevel===2||this.logLevel===3||this.logLevel===4)&&console.log(`🪙 ${a}`,...l)}bomb(a,...l){(this.logLevel===2||this.logLevel===3||this.logLevel===4)&&console.log(`💣 ${a}`,...l)}power(a,...l){(this.logLevel===2||this.logLevel===3||this.logLevel===4)&&console.log(`⚡ ${a}`,...l)}dataPassing(a,...l){this.logLevel===5&&console.log(`📡 ${a}`,...l)}pause(a,...l){(this.logLevel===2||this.logLevel===3||this.logLevel===4)&&this.shouldLog("pause",500)&&console.log(`⏸️ ${a}`,...l)}scaling(a,...l){(this.logLevel===2||this.logLevel===3||this.logLevel===4)&&this.shouldLog("scaling",2e3)&&console.log(`📈 ${a}`,...l)}debug(a,...l){(this.logLevel===3||this.logLevel===4)&&console.log(`🔧 ${a}`,...l)}audio(a,...l){(this.logLevel===2||this.logLevel===3||this.logLevel===4)&&console.log(`🎵 ${a}`,...l)}error(a,...l){this.logLevel>=0&&console.error(`❌ ${a}`,...l)}warn(a,...l){this.logLevel>=1&&console.warn(`⚠️ ${a}`,...l)}info(a,...l){(this.logLevel===2||this.logLevel===3||this.logLevel===4)&&console.log(`ℹ️ ${a}`,...l)}trace(a,...l){this.logLevel===4&&console.log(`🔍 ${a}`,...l)}dev(a,...l){}score(a,...l){(this.logLevel===2||this.logLevel===3||this.logLevel===4)&&console.log(`📊 ${a}`,...l)}clearThrottle(){this.lastLogTime.clear()}disable(){this.logLevel=0}enable(){this.logLevel=2}setLevel(a){this.logLevel=a}}const Ge=new IR,Pe={error:(c,...a)=>Ge.error(c,...a),warn:(c,...a)=>Ge.warn(c,...a),info:(c,...a)=>Ge.info(c,...a),debug:(c,...a)=>Ge.debug(c,...a),trace:(c,...a)=>Ge.trace(c,...a),game:(c,...a)=>Ge.game(c,...a),dev:(c,...a)=>Ge.dev(c,...a),audio:(c,...a)=>Ge.audio(c,...a),coin:(c,...a)=>Ge.coin(c,...a),bomb:(c,...a)=>Ge.bomb(c,...a),score:(c,...a)=>Ge.score(c,...a),dataPassing:(c,...a)=>Ge.dataPassing(c,...a)},UR=(c,a,l,f,h)=>{const y={score:c,map:a,timestamp:Date.now(),level:l,lives:f,multiplier:h};Pe.dataPassing("Sending score to host:",y);const v=new CustomEvent("scoreUpdate",{detail:{score:c},bubbles:!0,composed:!0});window.dispatchEvent(v);const C=new CustomEvent("game:score-updated",{detail:y,bubbles:!0,composed:!0});window.dispatchEvent(C)},zR=()=>{Pe.dataPassing("Game ready signal sent to host");const c=new CustomEvent("game:ready",{detail:{timestamp:Date.now()},bubbles:!0,composed:!0});window.dispatchEvent(c)},Iv=(c,a)=>{Pe.dataPassing("Game state update sent to host:",{state:c,map:a});const l=new CustomEvent("game:state-updated",{detail:{state:c,map:a,timestamp:Date.now()},bubbles:!0,composed:!0});window.dispatchEvent(l)},sx=c=>{Pe.dataPassing("Sending map completion data to host:",c);const a=new CustomEvent("game:map-completed",{detail:c,bubbles:!0,composed:!0});window.dispatchEvent(a)},FR=c=>{Pe.dataPassing("Sending game completion data to host:",c);const a=new CustomEvent("game:completed",{detail:c,bubbles:!0,composed:!0});window.dispatchEvent(a)},jR=(c,a,l,f,h,y,v)=>{const C=c.reduce((N,z)=>N+z.totalBombs,0),x=c.reduce((N,z)=>N+z.correctOrderCount,0),R=c.reduce((N,z)=>N+z.coinsCollected,0),A=c.reduce((N,z)=>N+z.powerModeActivations,0),_=v-y,k=c.length>0?_/c.length/1e3:0;return{totalBombs:C,totalCorrectOrders:x,totalCoinsCollected:R,totalPowerModeActivations:A,averageCompletionTime:Math.round(k),totalPlayTime:Math.round(_/1e3)}},BR=c=>{switch(c){case _n.HORIZONTAL_PATROL:return rr.MONSTER_HORIZONTAL_PATROL;case _n.VERTICAL_PATROL:return rr.MONSTER_VERTICAL_PATROL;case _n.CHASER:return rr.MONSTER_CHASER;case _n.AMBUSHER:return rr.MONSTER_AMBUSHER;case _n.FLOATER:return rr.MONSTER_FLOATER;default:return rr.MONSTER}},vp=(c,a,l,f=1,h=0)=>({x:c,y:a,width:H.MONSTER_SIZE,height:H.MONSTER_SIZE,color:BR(l),type:l,speed:f,direction:1,isActive:!0,spawnDelay:h}),pi=(c,a,l,f="left",h=1,y=1,v,C=0)=>{const x=f==="left"?c:c+l-H.MONSTER_SIZE,R=a-H.MONSTER_SIZE,A=f==="left"?1:-1;return{...vp(x,R,_n.HORIZONTAL_PATROL,y,C),patrolStartX:c,patrolEndX:c+l,direction:A,walkLengths:h}},Ls=(c,a,l,f="left",h=1,y=1,v=0)=>{const C=f==="left"?c-H.MONSTER_SIZE:c+15;return{...vp(C,a,_n.VERTICAL_PATROL,h,v),patrolStartY:a,patrolEndY:a+l,direction:y,patrolSide:f,targetPlatformX:c}},Ps=(c,a,l=45,f=1,h=0)=>({...vp(c,a,_n.FLOATER,f,h),startAngle:l,spawnTime:Date.now()}),ff=(c,a,l=.8,f=.2,h=200,y=0)=>({...vp(c,a,_n.CHASER,l,y),direction:0,directness:f,chaseUpdateInterval:h}),df=(c,a,l=.8,f=8e3,h=0)=>({...vp(c,a,_n.AMBUSHER,l,h),ambushCooldown:0}),ne=(c,a,l,f)=>({x:c,y:a,width:H.BOMB_SIZE,height:H.BOMB_SIZE,order:l,group:f,isCollected:!1,isBlinking:!1}),Vt=(c,a,l,f=rr.PLATFORM,h="#000")=>({x:c,y:a,width:l.width,height:l.height,borderColor:h,color:f}),pf=(c,a,l,f=rr.PLATFORM,h="#000")=>({x:c,y:a,width:15,height:l,borderColor:h,color:f,isVertical:!0}),Is=c=>(H.CANVAS_WIDTH-c)/2,Us=c=>(H.CANVAS_HEIGHT-c)/2,hf=(c,a)=>({x:Is(c),y:Us(a)}),HR={id:"level1",name:"startup lab",width:H.CANVAS_WIDTH,height:H.CANVAS_HEIGHT,playerStart:hf(H.PLAYER_WIDTH,H.PLAYER_HEIGHT),spawnIndicatorColor:"#00ffff",groupSequence:[1,2,3,4,5],ground:{x:0,y:H.CANVAS_HEIGHT-40,width:H.CANVAS_WIDTH,height:40,color:"#88a2bc"},platforms:[pf(96,220,150,"#abccee","#4f6a8f"),pf(684,220,150,"#abccee","#4f6a8f"),Vt(95,450,{width:200,height:15},"#abccee","#4f6a8f"),Vt(480,150,{width:200,height:15},"#abccee","#4f6a8f"),Vt(430,430,{width:200,height:15},"#abccee","#4f6a8f"),Vt(170,170,{width:200,height:15},"#abccee","#4f6a8f")],bombs:[ne(440,400,1,1),ne(490,400,2,1),ne(540,400,3,1),ne(590,400,4,1),ne(180,140,5,2),ne(230,140,6,2),ne(280,140,7,2),ne(330,140,8,2),ne(710,230,9,3),ne(710,280,10,3),ne(710,330,11,3),ne(130,470,12,4),ne(180,470,13,4),ne(230,470,14,4),ne(520,70,15,5),ne(570,70,16,5),ne(620,70,17,5),ne(120,230,18,6),ne(120,280,19,6),ne(120,330,20,6),ne(130,420,21,7),ne(180,420,22,7),ne(230,420,23,7)],coinSpawnPoints:[{x:Is(H.COIN_SIZE),y:Us(H.COIN_SIZE),type:It.POWER,spawnAngle:45},{x:570,y:50,type:It.POWER,spawnAngle:135},{x:200,y:75,type:It.BONUS_MULTIPLIER},{x:200,y:75,type:It.BONUS_MULTIPLIER},{x:200,y:75,type:It.EXTRA_LIFE},{x:200,y:75,type:It.EXTRA_LIFE}],monsterSpawnPoints:[{spawnDelay:4e3,createMonster:()=>pi(430,430,200,"left",1,1)},{spawnDelay:5e3,createMonster:()=>df(500,500,1)}],monsters:[Ls(105,220,220,"right"),Ls(695,220,220,"right",2,1),pi(170,170,200,"left"),ff(250,300,1,.3,1e3)]},VR={id:"level2",name:"innovasjon norge",width:H.CANVAS_WIDTH,height:H.CANVAS_HEIGHT,playerStart:hf(H.PLAYER_WIDTH,H.PLAYER_HEIGHT),spawnIndicatorColor:"#ff6b6b",groupSequence:[1,2,3,4,5],ground:{x:0,y:H.CANVAS_HEIGHT-40,width:H.CANVAS_WIDTH,height:40,color:"#262335"},platforms:[Vt(165,475,{width:150,height:15},"#d4896a","#262335"),Vt(485,475,{width:150,height:15},"#d4896a","#262335"),Vt(300,380,{width:200,height:15},"#d4896a","#262335"),Vt(300,240,{width:200,height:15},"#d4896a","#262335"),Vt(165,130,{width:150,height:15},"#d4896a","#262335"),Vt(485,130,{width:150,height:15},"#d4896a","#262335")],bombs:[ne(600,95,1,1),ne(550,95,2,1),ne(500,95,3,1),ne(180,440,4,2),ne(230,440,5,2),ne(280,440,6,2),ne(280,95,7,3),ne(230,95,8,3),ne(180,95,9,3),ne(600,440,10,4),ne(550,440,11,4),ne(500,440,12,4),ne(385,70,13,5),ne(385,120,14,5),ne(385,170,15,5),ne(500,500,16,6),ne(550,500,17,6),ne(600,500,18,6),ne(180,500,19,7),ne(230,500,20,7),ne(280,500,21,7),ne(360,345,22,8),ne(410,345,23,8)],coinSpawnPoints:[{x:400,y:H.CANVAS_HEIGHT-150,type:It.POWER,spawnAngle:60},{x:400,y:H.CANVAS_HEIGHT-250,type:It.POWER,spawnAngle:120},{x:520,y:100,type:It.BONUS_MULTIPLIER,spawnAngle:120},{x:180,y:100,type:It.BONUS_MULTIPLIER,spawnAngle:120},{x:520,y:100,type:It.EXTRA_LIFE,spawnAngle:120},{x:180,y:100,type:It.EXTRA_LIFE,spawnAngle:120}],monsterSpawnPoints:[{spawnDelay:7e3,createMonster:()=>ff(750,500,1)},{spawnDelay:15e3,createMonster:()=>df(50,500,1)}],monsters:[pi(165,130,150,"left",0,.7),pi(485,130,150,"right",0,1),pi(300,240,200,"left",0,1),Ps(50,300,45,1),Ps(750,500,155,1)]},$R={id:"level3",name:"skatteetaten",width:H.CANVAS_WIDTH,height:H.CANVAS_HEIGHT,playerStart:hf(H.PLAYER_WIDTH,H.PLAYER_HEIGHT),spawnIndicatorColor:"#4ecdc4",groupSequence:[1,2,3,4,5,6,7],ground:{x:0,y:H.CANVAS_HEIGHT-40,width:H.CANVAS_WIDTH,height:40,color:"#3c4c56"},platforms:[Vt(150,490,{width:500,height:15},"#acc7d0","#556d7b"),Vt(100,400,{width:200,height:15},"#acc7d0","#556d7b"),Vt(500,400,{width:200,height:15},"#acc7d0","#556d7b"),Vt(100,250,{width:200,height:15},"#acc7d0","#556d7b"),Vt(500,250,{width:200,height:15},"#acc7d0","#556d7b"),Vt(150,130,{width:500,height:15},"#acc7d0","#556d7b")],bombs:[ne(540,275,1,1),ne(590,275,2,1),ne(640,275,3,1),ne(240,275,4,2),ne(190,275,5,2),ne(140,275,6,2),ne(325,515,7,3),ne(375,515,8,3),ne(425,515,9,3),ne(760,360,10,4),ne(760,310,11,4),ne(760,260,12,4),ne(15,360,13,5),ne(15,310,14,5),ne(15,260,15,5),ne(325,155,16,6),ne(375,155,17,6),ne(425,155,18,6),ne(375,205,19,6),ne(375,255,20,6),ne(580,455,21,7),ne(195,455,22,7),ne(375,95,23,7)],coinSpawnPoints:[],monsters:[pi(150,490,500,"left",0,1),pi(150,130,500,"left",0,1),pi(150,130,500,"right",0,1),pi(100,400,200,"right",0,1),pi(500,400,200,"left",0,1),ff(200,200,1,.1,500)],monsterSpawnPoints:[{spawnDelay:3e3,createMonster:()=>Ps(Is(H.MONSTER_SIZE),Us(H.MONSTER_SIZE),150,1)},{spawnDelay:6e3,createMonster:()=>Ps(Is(H.MONSTER_SIZE),Us(H.MONSTER_SIZE),50,1)},{spawnDelay:5e3,createMonster:()=>df(50,550,1,8e3)}]},GR={id:"level4",name:"nav",width:H.CANVAS_WIDTH,height:H.CANVAS_HEIGHT,playerStart:hf(H.PLAYER_WIDTH,H.PLAYER_HEIGHT),spawnIndicatorColor:"#ffe66d",groupSequence:[1,2,3,4,5],ground:{x:0,y:H.CANVAS_HEIGHT-40,width:H.CANVAS_WIDTH,height:40,color:"#586c5c"},platforms:[Vt(580,500,{width:150,height:15},"#586c5c","#202e32"),Vt(580,445,{width:150,height:15},"#586c5c","#202e32"),pf(500,245,150,"#586c5c","#202e32"),pf(555,245,150,"#586c5c","#202e32"),Vt(90,45,{width:150,height:15},"#586c5c","#202e32"),Vt(90,100,{width:150,height:15},"#586c5c","#202e32"),pf(240,160,150,"#586c5c","#202e32"),pf(295,160,150,"#586c5c","#202e32"),Vt(90,500,{width:200,height:15},"#586c5c","#202e32"),Vt(235,400,{width:150,height:15},"#586c5c","#202e32"),Vt(415,145,{width:150,height:15},"#586c5c","#202e32"),Vt(530,45,{width:200,height:15},"#586c5c","#202e32")],bombs:[ne(595,467,1,1),ne(645,467,2,1),ne(695,467,3,1),ne(522,255,4,2),ne(522,305,5,2),ne(522,355,6,2),ne(130,467,7,3),ne(180,467,8,3),ne(230,467,9,3),ne(250,367,10,4),ne(300,367,11,4),ne(350,367,12,4),ne(263,170,13,5),ne(263,220,14,5),ne(263,270,15,5),ne(100,67,16,6),ne(150,67,17,6),ne(200,67,18,6),ne(430,113,19,7),ne(480,113,20,7),ne(530,113,21,7),ne(630,68,22,8),ne(680,68,23,8)],coinSpawnPoints:[],monsterSpawnPoints:[{spawnDelay:4e3,createMonster:()=>Ps(Is(H.MONSTER_SIZE),Us(H.MONSTER_SIZE),65,1)},{spawnDelay:6e3,createMonster:()=>Ps(240,350,40,1)},{spawnDelay:2e3,createMonster:()=>df(50,50,1.2,8e3)},{spawnDelay:4e3,createMonster:()=>df(50,50,1.2,8e3)},{spawnDelay:4e3,createMonster:()=>ff(Is(H.MONSTER_SIZE),Us(H.MONSTER_SIZE),3,.5)},{spawnDelay:9e3,createMonster:()=>ff(590,400,3,.5)}],monsters:[Ls(500,170,350,"right"),Ls(240,60,340,"right"),pi(90,500,200,"left"),pi(90,45,150,"right")]},YR={id:"level5",name:"kommunehuset",width:H.CANVAS_WIDTH,height:H.CANVAS_HEIGHT,playerStart:hf(H.PLAYER_WIDTH,H.PLAYER_HEIGHT),spawnIndicatorColor:"#a8e6cf",groupSequence:[1,2,3,4,5,6],ground:{x:0,y:H.CANVAS_HEIGHT-40,width:H.CANVAS_WIDTH,height:40,color:"#8d4fc9"},platforms:[Vt(375,300,{width:50,height:15},"#ff4700","#631b09"),Vt(88,300,{width:50,height:15},"#ff4700","#631b09"),Vt(667,300,{width:50,height:15},"#ff4700","#631b09")],bombs:[ne(150,60,1,1),ne(100,60,2,1),ne(50,60,3,1),ne(625,60,4,2),ne(675,60,5,2),ne(725,60,6,2),ne(150,525,7,3),ne(100,525,8,3),ne(50,525,9,3),ne(625,525,10,4),ne(675,525,11,4),ne(725,525,12,4),ne(438,100,13,5),ne(388,100,14,5),ne(338,100,15,5),ne(338,525,16,6),ne(388,525,17,6),ne(438,525,18,6),ne(388,330,19,6),ne(388,380,20,6),ne(388,430,21,6),ne(101,270,22,7),ne(680,270,23,7)],monsters:[Ls(520,200,350,"right"),Ls(225,200,350,"right"),Ls(520,20,350,"right"),Ls(225,20,350,"right"),pi(0,550,800,"left")],monsterSpawnPoints:[{spawnDelay:5e3,createMonster:()=>df(700,150)},{spawnDelay:7e3,createMonster:()=>Ps(100,150)},{spawnDelay:1e4,createMonster:()=>ff(Is(H.MONSTER_SIZE),Us(H.MONSTER_SIZE+200))},{spawnDelay:15e3,createMonster:()=>Ps(Is(H.MONSTER_SIZE),Us(H.MONSTER_SIZE-200))}],coinSpawnPoints:[{x:400,y:500,type:It.POWER,spawnAngle:46},{x:500,y:200,type:It.POWER,spawnAngle:45},{x:388,y:50,type:It.BONUS_MULTIPLIER},{x:388,y:50,type:It.EXTRA_LIFE},{x:101,y:50,type:It.BONUS_MULTIPLIER},{x:101,y:50,type:It.EXTRA_LIFE},{x:680,y:50,type:It.BONUS_MULTIPLIER},{x:680,y:50,type:It.EXTRA_LIFE}]};Vt(200,H.CANVAS_HEIGHT-120,{width:200,height:15},"#ebb185"),Vt(600,H.CANVAS_HEIGHT-110,{width:200,height:15},"#ebb185"),Vt(100,H.CANVAS_HEIGHT-180,{width:200,height:15},"#ebb185"),Vt(700,H.CANVAS_HEIGHT-180,{width:200,height:15},"#ebb185"),Vt(300,H.CANVAS_HEIGHT-240,{width:200,height:15},"#ebb185"),Vt(500,H.CANVAS_HEIGHT-240,{width:200,height:15},"#ebb185"),Vt(150,H.CANVAS_HEIGHT-300,{width:200,height:15},"#ebb185"),Vt(650,H.CANVAS_HEIGHT-300,{width:200,height:15},"#ebb185"),Vt(400,H.CANVAS_HEIGHT-370,{width:200,height:15},"#ebb185"),Vt(250,H.CANVAS_HEIGHT-420,{width:200,height:15},"#ebb185"),Vt(550,H.CANVAS_HEIGHT-420,{width:200,height:15},"#ebb185"),H.CANVAS_HEIGHT-70,H.MONSTER_SIZE,H.MONSTER_SIZE,rr.MONSTER,_n.HORIZONTAL_PATROL,H.CANVAS_HEIGHT-130,H.MONSTER_SIZE,H.MONSTER_SIZE,rr.MONSTER,_n.HORIZONTAL_PATROL,H.CANVAS_HEIGHT-170,H.MONSTER_SIZE,H.MONSTER_SIZE,rr.MONSTER,_n.HORIZONTAL_PATROL,H.CANVAS_HEIGHT-290,H.MONSTER_SIZE,H.MONSTER_SIZE,rr.MONSTER,_n.HORIZONTAL_PATROL,H.CANVAS_HEIGHT-350,H.MONSTER_SIZE,H.MONSTER_SIZE,rr.MONSTER,_n.HORIZONTAL_PATROL,H.CANVAS_HEIGHT-100,It.POWER,H.CANVAS_HEIGHT-140,It.POWER;const WR={id:"level7",name:"silicone vally",width:H.CANVAS_WIDTH,height:H.CANVAS_HEIGHT,playerStart:hf(H.PLAYER_WIDTH,H.PLAYER_HEIGHT),spawnIndicatorColor:"#feca57",groupSequence:[1,2,3,4,5],ground:{x:0,y:H.CANVAS_HEIGHT-40,width:H.CANVAS_WIDTH,height:40,color:"#46474c"},platforms:[],bombs:[ne(440,530,1,1),ne(490,530,2,1),ne(540,530,3,1),ne(590,530,4,1),ne(760,530,5,2),ne(760,480,6,2),ne(760,430,7,2),ne(760,380,8,2),ne(590,330,9,3),ne(540,330,10,3),ne(490,330,11,3),ne(440,330,12,3),ne(290,530,13,4),ne(240,530,14,4),ne(190,530,15,4),ne(140,530,16,4),ne(15,530,17,5),ne(15,480,18,5),ne(15,430,19,5),ne(15,380,20,5),ne(190,330,21,6),ne(240,330,22,6),ne(290,330,23,6)],coinSpawnPoints:[],monsterSpawnPoints:[],monsters:[]},vf=[HR,VR,$R,GR,YR,WR],XR=(c,a)=>(Pe.info(`Initializing game state slice with ${H.STARTING_LIVES} lives`),{currentState:ot.MENU,score:0,levelScore:0,lives:H.STARTING_LIVES,currentLevel:1,showMenu:Pt.START,previousMenu:null,isPaused:!1,bonusAnimationComplete:!1,setState:l=>{c({currentState:l,isPaused:l===ot.PAUSED}),l===ot.MENU?c({showMenu:Pt.START}):l===ot.PLAYING&&c({showMenu:Pt.IN_GAME});const f=a(),h="currentMap"in f?f.currentMap:void 0;Iv(l,h?.name)},setMenuType:l=>{const f=a();l===Pt.SETTINGS?c({showMenu:l,previousMenu:f.showMenu}):c({showMenu:l})},setBonusAnimationComplete:l=>{c({bonusAnimationComplete:l})},loseLife:()=>{const{lives:l}=a(),f=l-1;Pe.info(`Losing life: ${l} → ${f}`),c({lives:f});const h=a(),y="currentMap"in h?h.currentMap:void 0;if(Iv(ot.PLAYING,y?.name),f<=0){Pe.info(`GAME OVER triggered at ${f} lives`),c({currentState:ot.GAME_OVER,showMenu:Pt.GAME_OVER});const v="currentMap"in h?h.currentMap:void 0;Iv(ot.GAME_OVER,v?.name);const C="getLevelResults"in h?h.getLevelResults():[],x="multiplier"in h?h.multiplier:1,R="getGameStartTime"in h?h.getGameStartTime():Date.now(),A="getSessionId"in h?h.getSessionId():`session_${Date.now()}_${Math.random().toString(36).substr(2,9)}`,_=jR(C,a().score,f,x,"failed",R,Date.now()),k={finalScore:a().score,totalLevels:vf.length,completedLevels:C.length,timestamp:Date.now(),lives:f,multiplier:x,levelHistory:C,totalCoinsCollected:_.totalCoinsCollected,totalPowerModeActivations:_.totalPowerModeActivations,totalBombs:_.totalBombs,totalCorrectOrders:_.totalCorrectOrders,averageCompletionTime:_.averageCompletionTime,gameEndReason:"failed",sessionId:A,startTime:R,endTime:Date.now()};FR(k)}},addLife:()=>{const{lives:l}=a(),f=l+1;Pe.info(`Adding life: ${l} → ${f}`),c({lives:f})},nextLevel:()=>{const{currentLevel:l}=a();c({currentLevel:l+1}),c({levelScore:0});const f=a();"resetMultiplier"in f&&(Pe.debug("Resetting multiplier on level change..."),f.resetMultiplier());const h="currentMap"in f?f.currentMap:void 0;Iv(ot.PLAYING,h?.name)},addScore:l=>{const{score:f,levelScore:h,currentLevel:y,lives:v}=a(),C=f+l;c({score:C,levelScore:h+l});const x=a(),R="multiplier"in x?x.multiplier:1,A="currentMap"in x?x.currentMap:void 0;UR(C,A?.name||`Level ${y}`,y,v,R)},resetLevelScores:()=>{c({levelScore:0})},resetGameState:()=>{c({currentState:ot.MENU,score:0,levelScore:0,lives:H.STARTING_LIVES,currentLevel:1,showMenu:Pt.START,previousMenu:null,isPaused:!1,bonusAnimationComplete:!1})}}),KR=(c,a)=>{const l=c?H.BOMB_POINTS.FIREBOMB:H.BOMB_POINTS.NORMAL,f=l*a;return{basePoints:l,actualPoints:f,multiplier:a,isFirebomb:c}},QR=c=>{const{actualPoints:a,isFirebomb:l,multiplier:f}=c;return`🎯 Score: +${a} (${l?"Firebomb":"Normal"} x${f})`},qR=(c,a)=>{const{MULTIPLIER_THRESHOLDS:l,MAX_MULTIPLIER:f}=H;if(a>=f)return 1;const h=l[a],y=l[a+1];if(!y)return 1;const v=(c-h)/(y-h);return Math.max(0,Math.min(1,v))},ZR=(c,a)=>({bombs:[],collectedBombs:[],correctOrderCount:0,nextBombOrder:1,bombManager:null,collectBomb:l=>{const{bombs:f,bombManager:h}=a(),y=f.find(k=>k.order===l);if(!y||!h)return Pe.warn("Bomb or bomb manager not found"),{isValid:!1,isCorrect:!1};const v=h.handleBombClick(y.group,y.order);if(!v.isValid)return{isValid:!1,isCorrect:!1};const C=v.isCorrect,x=a(),R="multiplier"in x?x.multiplier:1,A=KR(C,R);if("addScore"in x&&x.addScore(A.actualPoints),"addMultiplierScore"in x&&x.addMultiplierScore(A.actualPoints),"coinManager"in x&&x.coinManager&&x.coinManager.onPointsEarned(A.actualPoints,!1),(C||A.actualPoints>=400)&&Pe.score(QR(A)),C&&"addFloatingText"in x){const k=f.find(N=>N.order===l);if(k){const N=`${A.actualPoints}`;x.addFloatingText(N,k.x+k.width/2,k.y+k.height/2,1e3,"#FFD700",15)}}const _=f.map(k=>{if(k.order===l)return{...k,isCollected:!0,isCorrect:v.isCorrect};const N=h.getActiveGroup(),z=h.getNextBombOrder(),G=N!==null&&z!==null&&k.group===N&&k.order===z&&!k.isCollected;return{...k,isBlinking:G}});return c({bombs:_,correctOrderCount:h.getCorrectOrderCount(),collectedBombs:Array.from(h.getCollectedBombs()).map(k=>{const[N,z]=k.split("-").map(Number);return z})}),{isValid:!0,isCorrect:v.isCorrect}},setBombs:l=>{c({bombs:l})},setBombManager:l=>{c({bombManager:l})},resetBombState:()=>{c({bombs:[],collectedBombs:[],correctOrderCount:0,nextBombOrder:1,bombManager:null})}});class JR{constructor(a){be(this,"bombs",[]);be(this,"collectedBombs",new Set);be(this,"correctBombs",new Set);be(this,"activeGroup",null);be(this,"nextBombOrder",null);be(this,"gameStarted",!1);this.setBombs(a)}reset(){this.collectedBombs.clear(),this.correctBombs.clear(),this.activeGroup=null,this.nextBombOrder=null,this.gameStarted=!1}setBombs(a){this.bombs=a}handleBombClick(a,l){const f=`${a}-${l}`;if(this.collectedBombs.has(f))return{isValid:!1,isCorrect:!1,gameCompleted:!1};if(!this.gameStarted)return this.startGame(a,l),this.collectBomb(f,!0),this.updateNextBomb(),{isValid:!0,isCorrect:!0,gameCompleted:this.isGameCompleted()};const h=this.isValidBomb(a,l);return h?(this.collectBomb(f,!0),this.updateNextBomb()):this.collectBomb(f,!1),{isValid:!0,isCorrect:h,gameCompleted:this.isGameCompleted()}}startGame(a,l){this.gameStarted=!0,this.activeGroup=a,this.nextBombOrder=this.findLowestOrderInGroup(a)}isValidBomb(a,l){return this.activeGroup===null||this.nextBombOrder===null?!1:a===this.activeGroup&&l===this.nextBombOrder&&!this.collectedBombs.has(`${a}-${l}`)}collectBomb(a,l){this.collectedBombs.add(a),l&&this.correctBombs.add(a)}updateNextBomb(){if(this.activeGroup!==null)if(this.isGroupCompleted(this.activeGroup)){Pe.dev(`GROUP ${this.activeGroup} COMPLETED!`);const a=this.findNextAvailableGroup();if(a!==null)this.activeGroup=a,this.nextBombOrder=this.findLowestOrderInGroup(a);else{this.activeGroup=null,this.nextBombOrder=null;return}}else{const a=this.findNextAvailableOrderInGroup(this.activeGroup);a!==null&&(this.nextBombOrder=a)}}isGroupCompleted(a){return this.bombs.filter(f=>f.group===a).every(f=>{const h=`${f.group}-${f.order}`;return this.collectedBombs.has(h)})}findNextAvailableGroup(){const a=[...new Set(this.bombs.map(l=>l.group))].sort((l,f)=>l-f);for(const l of a)if(!this.isGroupCompleted(l))return l;return null}findLowestOrderInGroup(a){const f=this.bombs.filter(h=>h.group===a).filter(h=>{const y=`${h.group}-${h.order}`;return!this.collectedBombs.has(y)});return f.length>0?Math.min(...f.map(h=>h.order)):null}findNextAvailableOrderInGroup(a){return this.findLowestOrderInGroup(a)}isGameCompleted(){return this.collectedBombs.size===this.bombs.length}getCollectedBombs(){return new Set(this.collectedBombs)}getCorrectBombs(){return new Set(this.correctBombs)}getActiveGroup(){return this.activeGroup}getNextBombOrder(){return this.nextBombOrder}isGameStarted(){return this.gameStarted}getCorrectOrderCount(){return this.correctBombs.size}}const eM=(c,a)=>({currentMap:null,levelStartTime:0,levelCompletionTime:null,monsters:[],platforms:[],ground:null,initializeLevel:l=>{const f=new JR(l.bombs),y=[...l.bombs].sort((x,R)=>x.group-R.group||x.order-R.order)[0],v=x=>{switch(x){case _n.HORIZONTAL_PATROL:return rr.MONSTER;case _n.VERTICAL_PATROL:return"#FF6B6B";case _n.CHASER:return"#FFD93D";case _n.AMBUSHER:return"#FF8800";case _n.FLOATER:return"#4ECDC4";default:return rr.MONSTER}},C=l.monsters.map(x=>({...x,color:x.color||v(x.type)}));return c({currentMap:l,platforms:l.platforms,ground:l.ground,monsters:C}),{bombManager:f,firstBomb:y}},updateMonsters:l=>{c({monsters:l})},resetLevelState:()=>{c({currentMap:null,levelStartTime:0,levelCompletionTime:null,monsters:[],platforms:[],ground:null})},sendLevelCompletionData:l=>{const{levelStartTime:f}=a(),h=Date.now()-f,y={...l,timestamp:Date.now(),completionTime:h};Pe.debug("Sending level completion data:",y),sx(y)}}),tM=(c,a)=>({levelHistory:[],gameStartTime:0,sessionId:`session_${Date.now()}_${Math.random().toString(36).substr(2,9)}`,addLevelResult:l=>{c(f=>({levelHistory:[...f.levelHistory,{...l,completionTime:l.completionTime||0,timestamp:l.timestamp||Date.now(),lives:l.lives||0,multiplier:l.multiplier||1,totalBombs:l.totalBombs||0,correctOrderCount:l.correctOrderCount||0}]}))},getLevelResults:()=>a().levelHistory,resetLevelHistory:()=>{c({levelHistory:[],gameStartTime:Date.now(),sessionId:`session_${Date.now()}_${Math.random().toString(36).substr(2,9)}`})},setGameStartTime:l=>{c({gameStartTime:l})},getGameStartTime:()=>a().gameStartTime,getSessionId:()=>a().sessionId}),nM=(c,a)=>({multiplier:1,multiplierScore:0,calculateMultiplier:l=>{const{MULTIPLIER_THRESHOLDS:f,MAX_MULTIPLIER:h}=H;for(let y=h;y>=1;y--)if(l>=f[y])return y;return 1},addMultiplierScore:l=>{const{multiplier:f,multiplierScore:h,calculateMultiplier:y}=a(),v=h+l,C=y(v),x=C>f;return c({multiplier:Math.max(f,C),multiplierScore:x?0:v}),{newMultiplier:Math.max(f,C),multiplierIncreased:x}},resetMultiplier:()=>{c({multiplier:1,multiplierScore:0})},setMultiplier:(l,f)=>{c({multiplier:l,multiplierScore:f})}}),rM=(c,a)=>({audioSettings:ox,audioManager:null,updateAudioSettings:l=>{c({audioSettings:{...a().audioSettings,...l}});const f=a().audioManager;f&&f.updateVolumes&&f.updateVolumes()},resetAudioSettings:()=>{c({audioSettings:ox});const l=a().audioManager;l&&l.updateVolumes&&l.updateVolumes()},setAudioManager:l=>{c({audioManager:l})}}),aM=(c,a)=>({coins:[],coinManager:null,activeEffects:{powerMode:!1,powerModeEndTime:0},firebombCount:0,totalCoinsCollected:0,totalPowerCoinsCollected:0,totalBonusMultiplierCoinsCollected:0,totalExtraLifeCoinsCollected:0,setCoins:l=>{c({coins:l})},setCoinManager:l=>{c({coinManager:l})},collectCoin:l=>{const{coinManager:f}=a();if(!f)return;f.collectCoin(l);const h=a().coins.map(N=>N===l?{...N,isCollected:!0}:N);let y=0;if(f.isPowerModeActive()&&l.type==="POWER"&&l.spawnTime!==void 0){const N=f.getPcoinColorForTime(l.spawnTime);y=Date.now()+N.duration}const v={powerMode:f.isPowerModeActive(),powerModeEndTime:y},C=a(),x=C.totalCoinsCollected+1,R=C.totalPowerCoinsCollected+(l.type==="POWER"?1:0),A=C.totalBonusMultiplierCoinsCollected+(l.type==="BONUS_MULTIPLIER"?1:0),_=C.totalExtraLifeCoinsCollected+(l.type==="EXTRA_LIFE"?1:0);c({coins:h,activeEffects:v,totalCoinsCollected:x,totalPowerCoinsCollected:R,totalBonusMultiplierCoinsCollected:A,totalExtraLifeCoinsCollected:_});const k=a();if(l.type==="POWER")"addScore"in k&&k.addScore(H.POWER_COIN_POINTS);else if(l.type==="BONUS_MULTIPLIER"){if("addScore"in k&&"multiplier"in k){const N=k.multiplier,z=1e3*N;if(k.addScore(z),N<H.MAX_MULTIPLIER&&"addMultiplierScore"in k&&"multiplierScore"in k){const{MULTIPLIER_THRESHOLDS:G}=H,J=G[N+1];if(J!==void 0){const de=J-k.multiplierScore;k.addMultiplierScore(de)}}}}else if(l.type==="EXTRA_LIFE"&&"addScore"in k&&"multiplier"in k&&"addLife"in k){const N=k.multiplier,z=H.EXTRA_LIFE_COIN_POINTS*N;k.addScore(z),k.addLife(),Pe.debug("Extra life added via coin slice!")}Pe.debug(`Coin collected: ${l.type} (Total: ${x}, Power: ${R}, Bonus: ${A})`)},onFirebombCollected:()=>{const{coinManager:l}=a();l&&(l.onFirebombCollected(),c({firebombCount:l.getFirebombCount(),coins:l.getCoins()}))},resetCoinState:()=>{const{coinManager:l}=a();l&&l.reset(),c({coins:[],activeEffects:{powerMode:!1,powerModeEndTime:0},firebombCount:0,totalCoinsCollected:0,totalPowerCoinsCollected:0,totalBonusMultiplierCoinsCollected:0,totalExtraLifeCoinsCollected:0})},getCoinStats:()=>{const l=a();return{totalCoinsCollected:l.totalCoinsCollected,totalPowerCoinsCollected:l.totalPowerCoinsCollected,totalBonusMultiplierCoinsCollected:l.totalBonusMultiplierCoinsCollected,totalExtraLifeCoinsCollected:l.totalExtraLifeCoinsCollected}},updateMonsterStates:l=>{const{coinManager:f}=a();if(!f)return;const h=a().activeEffects.powerMode,y=f.isPowerModeActive();h&&!y?l.forEach(C=>{C.isFrozen=!1}):f.updateMonsters(l);let v=0;y&&f&&(v=f.getPowerModeEndTime()),c({activeEffects:{powerMode:y,powerModeEndTime:v}})},resetEffects:()=>{const{coinManager:l}=a();l&&l.resetEffects(),c({activeEffects:{powerMode:!1,powerModeEndTime:0}})}}),iM=(c,a)=>({floatingTexts:[],addFloatingText:(l,f,h,y=1e3,v="#FFFFFF",C=16)=>{const R={id:`floating-text-${Date.now()}-${Math.random()}`,text:l,x:f,y:h,startTime:Date.now(),duration:y,color:v,fontSize:C};c(A=>({floatingTexts:[...A.floatingTexts,R]}))},removeFloatingText:l=>{c(f=>({floatingTexts:f.floatingTexts.filter(h=>h.id!==l)}))},updateFloatingTexts:()=>{const l=Date.now();c(f=>({floatingTexts:f.floatingTexts.filter(h=>l-h.startTime<h.duration)}))},clearAllFloatingTexts:()=>{c({floatingTexts:[]})}}),Yu=class Yu{constructor(){be(this,"config");be(this,"globalPauseState");be(this,"monsterCache");be(this,"globalCache");be(this,"cacheTimeout",1e3);be(this,"globalStartTime",0);this.config=this.getDefaultConfig(),this.globalPauseState=this.createPauseState(),this.monsterCache=new Map,this.globalCache=null}static getInstance(){return Yu.instance||(Yu.instance=new Yu),Yu.instance}getDefaultConfig(){return{base:{ambusher:{ambushInterval:5e3,speed:2},chaser:{speed:1,directness:.3,updateInterval:200},floater:{speed:2,bounceAngle:.2},patrol:{speed:1}},scaling:{ambusher:{ambushInterval:-500,speed:.08},chaser:{speed:.2,directness:.08,updateInterval:-8},floater:{speed:.5,bounceAngle:.008},patrol:{speed:.2}},max:{ambusher:{ambushInterval:500,speed:10},chaser:{speed:5,directness:1,updateInterval:100},floater:{speed:5,bounceAngle:.5},patrol:{speed:5}}}}updateConfig(a){this.config={...this.config,...a},this.clearCache(),Ge.debug("ScalingManager: Configuration updated")}createPauseState(){return{isPaused:!1,pauseStartTime:0,totalPausedTime:0,pauseReasons:new Set}}pause(a="default"){this.globalPauseState.isPaused||(this.globalPauseState.isPaused=!0,this.globalPauseState.pauseStartTime=Date.now()),this.globalPauseState.pauseReasons.add(a),Ge.pause(`Scaling paused (${a})`)}resume(a="default"){if(this.globalPauseState.pauseReasons.delete(a),this.globalPauseState.pauseReasons.size===0&&this.globalPauseState.isPaused){const l=Date.now()-this.globalPauseState.pauseStartTime;this.globalPauseState.totalPausedTime+=l,this.globalPauseState.isPaused=!1,this.clearCache(),Ge.pause(`Scaling resumed (paused for ${(l/1e3).toFixed(1)}s)`)}}isPaused(){return this.globalPauseState.isPaused}getPauseReasons(){return Array.from(this.globalPauseState.pauseReasons)}getPauseStatus(){return{isPaused:this.globalPauseState.isPaused,pauseReasons:this.getPauseReasons(),totalPausedTime:this.globalPauseState.totalPausedTime,timeElapsed:this.getGlobalTimeElapsed(),globalStartTime:this.globalStartTime,currentTime:Date.now()}}startMap(){this.globalStartTime=Date.now(),this.globalPauseState=this.createPauseState(),this.clearCache(),Ge.flow("New map started - difficulty reset")}resetOnDeath(){this.globalStartTime=Date.now(),this.globalPauseState=this.createPauseState(),this.clearCache(),Ge.player("Player died - difficulty reset to base values")}getGlobalScaledValues(){const a=Date.now();if(this.globalCache&&a-this.globalCache.lastUpdate<this.cacheTimeout)return this.globalCache.values;const l=this.calculateScaledValues(this.getGlobalTimeElapsed());return this.globalCache={values:l,lastUpdate:a},l}getGlobalTimeElapsed(){return this.globalStartTime===0?0:(Date.now()-this.globalStartTime-this.globalPauseState.totalPausedTime)/1e3}pauseForPowerMode(){this.pause("power_mode"),Ge.power("Power mode activated - scaling paused")}resumeFromPowerMode(){this.resume("power_mode"),Ge.power("Power mode ended - scaling resumed")}isCurrentlyPausedByPowerMode(){return this.globalPauseState.pauseReasons.has("power_mode")}pauseAllMonsterScaling(){this.pause("monster_scaling"),this.globalPauseState.pauseReasons.size===1&&Ge.pause("All monster scaling paused")}resumeAllMonsterScaling(){this.resume("monster_scaling"),this.globalPauseState.pauseReasons.size===0&&Ge.pause("All monster scaling resumed")}getMonsterScaledValues(a){if(this.initializeMonster(a),a.individualScalingPaused||this.globalPauseState.isPaused)return this.config.base;const l=this.getMonsterCacheKey(a),f=Date.now(),h=this.monsterCache.get(l);if(h&&f-h.lastUpdate<this.cacheTimeout)return h.values;const y=h?.values||this.config.base,v=this.calculateScaledValues(this.getMonsterAge(a));return this.logScalingChanges(a,y,v),this.monsterCache.set(l,{values:v,lastUpdate:f}),v}initializeMonster(a){if(!a.individualSpawnTime){a.individualSpawnTime=Date.now(),a.individualScalingPaused=!1,a.spawnPauseTime=this.globalPauseState.totalPausedTime;const l=this.config.base;let f="";switch(a.type){case"AMBUSHER":f=`ambush interval: ${l.ambusher.ambushInterval}ms, speed: ${l.ambusher.speed.toFixed(2)}`;break;case"CHASER":f=`speed: ${l.chaser.speed.toFixed(2)}, directness: ${l.chaser.directness.toFixed(3)}, update interval: ${l.chaser.updateInterval}ms`;break;case"FLOATER":f=`speed: ${l.floater.speed.toFixed(2)}, bounce angle: ${l.floater.bounceAngle.toFixed(3)}`;break;case"HORIZONTAL_PATROL":case"VERTICAL_PATROL":f=`speed: ${l.patrol.speed.toFixed(2)}`;break;default:f="base values"}Ge.scaling(`${a.type} initialized with ${f}`)}}resetMonsterScaling(a){a.individualSpawnTime=Date.now(),a.individualScalingPaused=!1,a.spawnPauseTime=this.globalPauseState.totalPausedTime,this.monsterCache.delete(this.getMonsterCacheKey(a)),Ge.monster(`${a.type} scaling reset`)}pauseMonsterScaling(a){a.individualScalingPaused=!0,this.monsterCache.delete(this.getMonsterCacheKey(a))}resumeMonsterScaling(a){a.individualScalingPaused=!1,this.monsterCache.delete(this.getMonsterCacheKey(a))}getMonsterAge(a){if(!a.individualSpawnTime)return 0;const f=Date.now()-a.individualSpawnTime,h=this.globalPauseState.totalPausedTime-(a.spawnPauseTime||0),y=f-h,v=Math.max(0,y)/1e3;return this.globalPauseState.isPaused&&v>0&&Ge.debug(`Monster age: ${a.type} - Actual: ${(f/1e3).toFixed(1)}s, Paused: ${(h/1e3).toFixed(1)}s, Adjusted: ${v.toFixed(1)}s`),v}getMonsterCacheKey(a){const l=`${Math.round(a.x)}-${Math.round(a.y)}`;return`${a.type}-${l}-${a.individualSpawnTime||0}`}logScalingChanges(a,l,f){const h=this.getMonsterAge(a),y=Math.floor(h/5);if(y>0&&y%1===0){const v=[];switch(a.type){case"AMBUSHER":Math.abs(l.ambusher.speed-f.ambusher.speed)>.01&&v.push(`speed: ${l.ambusher.speed.toFixed(2)} → ${f.ambusher.speed.toFixed(2)}`),Math.abs(l.ambusher.ambushInterval-f.ambusher.ambushInterval)>50&&v.push(`ambush interval: ${l.ambusher.ambushInterval}ms → ${f.ambusher.ambushInterval}ms`);break;case"CHASER":Math.abs(l.chaser.speed-f.chaser.speed)>.01&&v.push(`speed: ${l.chaser.speed.toFixed(2)} → ${f.chaser.speed.toFixed(2)}`),Math.abs(l.chaser.directness-f.chaser.directness)>.01&&v.push(`directness: ${l.chaser.directness.toFixed(3)} → ${f.chaser.directness.toFixed(3)}`),Math.abs(l.chaser.updateInterval-f.chaser.updateInterval)>5&&v.push(`update interval: ${l.chaser.updateInterval}ms → ${f.chaser.updateInterval}ms`);break;case"FLOATER":Math.abs(l.floater.speed-f.floater.speed)>.01&&v.push(`speed: ${l.floater.speed.toFixed(2)} → ${f.floater.speed.toFixed(2)}`),Math.abs(l.floater.bounceAngle-f.floater.bounceAngle)>.001&&v.push(`bounce angle: ${l.floater.bounceAngle.toFixed(3)} → ${f.floater.bounceAngle.toFixed(3)}`);break;case"HORIZONTAL_PATROL":case"VERTICAL_PATROL":Math.abs(l.patrol.speed-f.patrol.speed)>.01&&v.push(`speed: ${l.patrol.speed.toFixed(2)} → ${f.patrol.speed.toFixed(2)}`);break}v.length>0&&Ge.scaling(`${a.type} scaling (${h.toFixed(1)}s, interval ${y}): ${v.join(", ")}`)}}calculateScaledValues(a){const l=Math.floor(a/5);return{ambusher:{ambushInterval:this.calculateScaledValue(this.config.base.ambusher.ambushInterval,this.config.scaling.ambusher.ambushInterval,this.config.max.ambusher.ambushInterval,l),speed:this.calculateScaledValue(this.config.base.ambusher.speed,this.config.scaling.ambusher.speed,this.config.max.ambusher.speed,l)},chaser:{speed:this.calculateScaledValue(this.config.base.chaser.speed,this.config.scaling.chaser.speed,this.config.max.chaser.speed,l),directness:this.calculateScaledValue(this.config.base.chaser.directness,this.config.scaling.chaser.directness,this.config.max.chaser.directness,l),updateInterval:this.calculateScaledValue(this.config.base.chaser.updateInterval,this.config.scaling.chaser.updateInterval,this.config.max.chaser.updateInterval,l)},floater:{speed:this.calculateScaledValue(this.config.base.floater.speed,this.config.scaling.floater.speed,this.config.max.floater.speed,l),bounceAngle:this.calculateScaledValue(this.config.base.floater.bounceAngle,this.config.scaling.floater.bounceAngle,this.config.max.floater.bounceAngle,l)},patrol:{speed:this.calculateScaledValue(this.config.base.patrol.speed,this.config.scaling.patrol.speed,this.config.max.patrol.speed,l)}}}calculateScaledValue(a,l,f,h){const y=a+l*h;return l>0?Math.min(y,f):Math.max(y,f)}clearCache(){this.monsterCache.clear(),this.globalCache=null}getBaseValues(){return{...this.config.base}}cleanup(){this.clearCache(),this.globalPauseState=this.createPauseState()}};be(Yu,"instance");let ca=Yu;const Uv={POWER_MODE:{type:"POWER_MODE",duration:H.POWER_COIN_DURATION,points:H.POWER_COIN_POINTS,apply:(c,a)=>{let l=H.POWER_COIN_DURATION;if(a&&a.spawnTime!==void 0){const f=c.coinManager;if(f&&typeof f.getPcoinColorForTime=="function")try{l=f.getPcoinColorForTime(a.spawnTime).duration||H.POWER_COIN_DURATION}catch(h){console.warn("Failed to get P-coin color data, using default duration:",h)}}c.monsters&&Array.isArray(c.monsters)&&c.monsters.forEach(f=>{f.isFrozen=!0}),c.activeEffects.powerMode=!0,c.activeEffects.powerModeEndTime=Date.now()+l,c.coinManager&&c.coinManager.resetMonsterKillCount();try{ca.getInstance().pauseForPowerMode()}catch{console.log("Could not pause difficulty scaling (ScalingManager not available)")}},remove:c=>{c.monsters&&Array.isArray(c.monsters)&&c.monsters.forEach(a=>{a.isFrozen=!1}),c.activeEffects.powerMode=!1;try{ca.getInstance().resumeFromPowerMode()}catch{console.log("Could not resume difficulty scaling (ScalingManager not available)")}}},BONUS_MULTIPLIER:{type:"BONUS_MULTIPLIER",points:0,apply:c=>{const a=1e3*c.multiplier;c.addScore(a),c.multiplier<H.MAX_MULTIPLIER&&c.setMultiplier(c.multiplier+1,0)}},EXTRA_LIFE:{type:"EXTRA_LIFE",points:1e3,apply:c=>{c.lives+=1}}},mp={STANDARD:{hasGravity:!0,bounces:!0,reflects:!1},POWER:{hasGravity:!1,bounces:!1,reflects:!0},GRAVITY_ONLY:{hasGravity:!1,bounces:!1,reflects:!1,customUpdate:(c,a,l)=>{if((c.velocityY>0||c.velocityY===void 0)&&(c.velocityX=0,c.velocityY=2),l&&c.y+c.height>=l.y){c.y=l.y-c.height,c.velocityY=0,c.groundDirection||(c.groundDirection=Math.random()<.5?-1:1,c.velocityX=c.groundDirection*1),c.x+=c.velocityX,c.x<=0?(c.x=0,c.groundDirection=1,c.velocityX=1):c.x+c.width>=H.CANVAS_WIDTH&&(c.x=H.CANVAS_WIDTH-c.width,c.groundDirection=-1,c.velocityX=-1);return}let C=!1,x=null;for(const R of a){const A=c.y+c.height,_=R.y,k=A>=_&&A<=_+4,N=c.x<R.x+R.width&&c.x+c.width>R.x;if(k&&N){C=!0,x=R,c.y=_-c.height,c.velocityY=0,c.platformDirection||(c.platformDirection=Math.random()<.5?-1:1,c.velocityX=c.platformDirection*1);break}}C&&x?(c.x+=c.velocityX,(c.x+c.width<=x.x+0||c.x>=x.x+x.width-0)&&(c.platformDirection=null,c.velocityX=0,c.velocityY=2)):C||(c.platformDirection=null,c.velocityX=0,c.velocityY=2)}}},gp=[{color:"#3c82f6",points:100,name:"Blue",duration:3e3},{color:"#ef4444",points:200,name:"Red",duration:4e3},{color:"#a855f7",points:300,name:"Purple",duration:5e3},{color:"#22c55d",points:500,name:"Green",duration:6e3},{color:"#07b6d4",points:800,name:"Cyan",duration:7e3},{color:"#ebb305",points:1200,name:"Yellow",duration:8e3},{color:"#6b7280",points:2e3,name:"Gray",duration:1e4}],zs={[It.POWER]:{type:It.POWER,color:"#FF0000",points:0,physics:mp.POWER,effects:[Uv.POWER_MODE],spawnCondition:c=>c.firebombCount%9===0,maxActive:1},[It.BONUS_MULTIPLIER]:{type:It.BONUS_MULTIPLIER,color:"#e9b300",points:H.BONUS_MULTIPLIER_COIN_POINTS,physics:mp.GRAVITY_ONLY,effects:[Uv.BONUS_MULTIPLIER],spawnCondition:c=>{const a=c.bombAndMonsterPoints||c.score||0;return a>0&&a%H.BONUS_COIN_SPAWN_INTERVAL===0},maxActive:1},[It.EXTRA_LIFE]:{type:It.EXTRA_LIFE,color:"#ef4444",points:H.EXTRA_LIFE_COIN_POINTS,physics:mp.GRAVITY_ONLY,effects:[Uv.EXTRA_LIFE],spawnCondition:c=>{const a=c.totalBonusMultiplierCoinsCollected||0;return a>0&&a%H.EXTRA_LIFE_COIN_RATIO===0},maxActive:1}};class yp{static updateCoin(a,l,f,h){a.isCollected||(h?(h.hasGravity&&(a.velocityY+=H.COIN_GRAVITY),a.x+=a.velocityX,a.y+=a.velocityY,h.reflects?this.handleReflectiveCollisions(a,l,f):h.bounces&&this.handleBouncingCollisions(a,l,f),h.customUpdate&&h.customUpdate(a,l,f)):this.updateStandardCoin(a,l,f))}static updateStandardCoin(a,l,f){this.updateCoin(a,l,f,mp.STANDARD)}static updatePowerCoin(a,l,f){this.updateCoin(a,l,f,mp.POWER)}static handleBouncingCollisions(a,l,f){this.handleBoundaryCollisions(a),this.handlePlatformCollisions(a,l),this.handleGroundCollisions(a,f)}static handleReflectiveCollisions(a,l,f){this.handlePowerCoinBoundaryCollisions(a),this.handlePowerCoinPlatformCollisions(a,l),this.handlePowerCoinGroundCollisions(a,f)}static handleBoundaryCollisions(a){a.x<=0?(a.x=0,a.velocityX=Math.abs(a.velocityX)*H.COIN_BOUNCE_DAMPING):a.x+a.width>=H.CANVAS_WIDTH&&(a.x=H.CANVAS_WIDTH-a.width,a.velocityX=-Math.abs(a.velocityX)*H.COIN_BOUNCE_DAMPING),a.y<=0&&(a.y=0,a.velocityY=Math.abs(a.velocityY)*H.COIN_BOUNCE_DAMPING)}static handlePowerCoinBoundaryCollisions(a){a.x<=0?(a.x=0,a.velocityX=Math.abs(a.velocityX)):a.x+a.width>=H.CANVAS_WIDTH&&(a.x=H.CANVAS_WIDTH-a.width,a.velocityX=-Math.abs(a.velocityX)),a.y<=0?(a.y=0,a.velocityY=Math.abs(a.velocityY)):a.y+a.height>=H.CANVAS_HEIGHT&&(a.y=H.CANVAS_HEIGHT-a.height,a.velocityY=-Math.abs(a.velocityY))}static handlePlatformCollisions(a,l){l.forEach(f=>{if(this.isColliding(a,f)){const h=a.x+a.width/2,y=a.y+a.height/2,v=f.x+f.width/2,C=f.y+f.height/2,x=h-v,R=y-C;Math.abs(x)>Math.abs(R)?x>0?(a.x=f.x+f.width,a.velocityX=Math.abs(a.velocityX)*H.COIN_BOUNCE_DAMPING):(a.x=f.x-a.width,a.velocityX=-Math.abs(a.velocityX)*H.COIN_BOUNCE_DAMPING):R>0?(a.y=f.y+f.height,a.velocityY=Math.abs(a.velocityY)*H.COIN_BOUNCE_DAMPING):(a.y=f.y-a.height,a.velocityY=-Math.abs(a.velocityY)*H.COIN_BOUNCE_DAMPING)}})}static handlePowerCoinPlatformCollisions(a,l){for(const f of l)if(this.isColliding(a,f)){const h=this.calculateCollisionNormal(a,f);Math.random()<.1&&Pe.debug(`P-coin platform collision - Normal: (${h.x.toFixed(2)}, ${h.y.toFixed(2)}), Velocity before: (${a.velocityX.toFixed(2)}, ${a.velocityY.toFixed(2)})`);const y=a.velocityX*h.x+a.velocityY*h.y;a.velocityX,a.velocityY,a.velocityX=a.velocityX-2*y*h.x,a.velocityY=a.velocityY-2*y*h.y,Math.random()<.1&&Pe.debug(`P-coin platform collision - Velocity after: (${a.velocityX.toFixed(2)}, ${a.velocityY.toFixed(2)})`),h.x!==0?h.x>0?a.x=f.x+f.width+1:a.x=f.x-a.width-1:h.y>0?a.y=f.y+f.height+1:a.y=f.y-a.height-1;break}}static handleGroundCollisions(a,l){this.isColliding(a,l)&&(a.y=l.y-a.height,a.velocityY=-Math.abs(a.velocityY)*H.COIN_BOUNCE_DAMPING,Math.abs(a.velocityY)<.5&&(a.velocityY=0))}static handlePowerCoinGroundCollisions(a,l){if(this.isColliding(a,l)){const f=this.calculateCollisionNormal(a,l),h=a.velocityX*f.x+a.velocityY*f.y;a.velocityX=a.velocityX-2*h*f.x,a.velocityY=a.velocityY-2*h*f.y,a.y=l.y-a.height-1}}static isColliding(a,l){return a.x<l.x+l.width&&a.x+a.width>l.x&&a.y<l.y+l.height&&a.y+a.height>l.y}static createInitialVelocity(){return{velocityX:(Math.random()-.5)*H.COIN_BOUNCE_SPEED*2,velocityY:-3}}static createPowerCoinVelocity(a){const l=H.COIN_BOUNCE_SPEED;if(a!==void 0){const y=a*Math.PI/180;return{velocityX:Math.cos(y)*l,velocityY:Math.sin(y)*l}}const h=Math.random()*360*Math.PI/180;return{velocityX:Math.cos(h)*l,velocityY:Math.sin(h)*l}}static calculateSurfaceNormal(a,l){const f=a.x+a.width/2,h=a.y+a.height/2,y=Math.max(l.x,Math.min(f,l.x+l.width)),v=Math.max(l.y,Math.min(h,l.y+l.height)),C=f-y,x=h-v,R=Math.sqrt(C*C+x*x);if(R>.1)return{x:C/R,y:x/R};{const A=a.x,_=a.x+a.width,k=a.y,N=a.y+a.height,z=l.x,G=l.x+l.width,J=l.y,de=l.y+l.height,ue=Math.abs(_-z),ce=Math.abs(A-G),fe=Math.abs(N-J),le=Math.abs(k-de),Re=Math.min(ue,ce,fe,le);return Re===ue?{x:-1,y:0}:Re===ce?{x:1,y:0}:Re===fe?{x:0,y:-1}:{x:0,y:1}}}static reflectVelocity(a,l){const f=a.velocityX*l.x+a.velocityY*l.y,h=a.velocityX,y=a.velocityY;a.velocityX=a.velocityX-2*f*l.x,a.velocityY=a.velocityY-2*f*l.y;const v=Math.sqrt(h*h+y*y),C=Math.sqrt(a.velocityX*a.velocityX+a.velocityY*a.velocityY);if(C>.001){const x=v/C;a.velocityX*=x,a.velocityY*=x}}static moveCoinOutOfCollision(a,l){const f=a.x+a.width/2,h=a.y+a.height/2,y=Math.max(l.x,Math.min(f,l.x+l.width)),v=Math.max(l.y,Math.min(h,l.y+l.height)),C=f-y,x=h-v;Math.abs(C)>Math.abs(x)?a.x+=C>0?Math.abs(C):-Math.abs(C):a.y+=x>0?Math.abs(x):-Math.abs(x)}static moveCoinOutOfCollisionSimple(a,l){const f=a.x+a.width/2,h=a.y+a.height/2,y=l.x+l.width/2,v=l.y+l.height/2,C=Math.abs(f-y),x=Math.abs(h-v);C>x?f<y?a.x=l.x-a.width-1:a.x=l.x+l.width+1:h<v?a.y=l.y-a.height-1:a.y=l.y+l.height+1}static calculateCollisionNormal(a,l){const f=a.x+a.width/2,h=a.y+a.height/2,y=Math.max(l.x,Math.min(f,l.x+l.width)),v=Math.max(l.y,Math.min(h,l.y+l.height)),C=f-y,x=h-v,R=Math.sqrt(C*C+x*x);if(R>.1)return{x:C/R,y:x/R};{const A=Math.abs(a.x+a.width-l.x),_=Math.abs(a.x-(l.x+l.width)),k=Math.abs(a.y+a.height-l.y),N=Math.abs(a.y-(l.y+l.height)),z=Math.min(A,_,k,N);return z===A?{x:-1,y:0}:z===_?{x:1,y:0}:z===k?{x:0,y:-1}:{x:0,y:1}}}}class oM{constructor(a=[]){be(this,"coins",[]);be(this,"spawnPoints",[]);be(this,"firebombCount",0);be(this,"powerModeActive",!1);be(this,"powerModeEndTime",0);be(this,"activeEffects",new Map);be(this,"triggeredSpawnConditions",new Set);be(this,"lastProcessedScore",0);be(this,"lastScoreCheck",0);be(this,"bombAndMonsterPoints",0);be(this,"monsterKillCount",0);be(this,"pCoinColorIndex",0);this.spawnPoints=a,Pe.debug("CoinManager initialized")}reset(){this.coins=[],this.firebombCount=0,this.powerModeActive=!1,this.powerModeEndTime=0,this.activeEffects.clear(),this.triggeredSpawnConditions.clear(),this.lastProcessedScore=0,this.lastScoreCheck=0,this.bombAndMonsterPoints=0,this.monsterKillCount=0}update(a,l,f){this.coins.forEach(h=>{if(h.isCollected)return;const y=zs[h.type];y?yp.updateCoin(h,a,l,y.physics):h.type===It.POWER?yp.updatePowerCoin(h,a,l):yp.updateCoin(h,a,l)}),this.checkEffectsEnd(f),this.coins=this.coins.filter(h=>!h.isCollected)}spawnCoin(a,l,f,h){const y=zs[a];if(y?.maxActive){if(this.coins.filter(R=>R.type===a&&!R.isCollected).length>=y.maxActive){Pe.debug(`${a} coin limit reached (${y.maxActive}), skipping spawn`);return}}else if(this.coins.find(R=>R.type===a)){Pe.debug(`${a} coin already exists, skipping spawn`);return}let v;a===It.POWER?v=yp.createPowerCoinVelocity(h):v=yp.createInitialVelocity();const C={type:a,x:l,y:f,width:H.COIN_SIZE,height:H.COIN_SIZE,velocityX:v.velocityX,velocityY:v.velocityY,isCollected:!1,spawnX:l,spawnY:f};a===It.POWER&&(C.colorIndex=0,C.spawnTime=Date.now(),Pe.debug("Spawning P-coin with Blue color (100 points)")),this.coins.push(C),Pe.debug(`Spawned ${a} coin at (${l}, ${f}) with angle ${h||"random"}`)}onFirebombCollected(){this.firebombCount++,Pe.debug(`Firebomb count: ${this.firebombCount}`),this.checkSpawnConditionsOnFirebombChange()}onPointsEarned(a,l=!1){l||(this.bombAndMonsterPoints+=a,Pe.debug(`Points earned: ${a}, total bomb/monster points: ${this.bombAndMonsterPoints}`),this.checkBcoinSpawnConditions())}checkBcoinSpawnConditions(){const a=zs.BONUS_MULTIPLIER;if(!a)return;const l=Math.floor(this.bombAndMonsterPoints/H.BONUS_COIN_SPAWN_INTERVAL)*H.BONUS_COIN_SPAWN_INTERVAL,f=Math.floor(this.lastScoreCheck/H.BONUS_COIN_SPAWN_INTERVAL)*H.BONUS_COIN_SPAWN_INTERVAL;if(l>f&&l>=H.BONUS_COIN_SPAWN_INTERVAL){const h=`${a.type}_${l}`;if(this.triggeredSpawnConditions.has(h)){Pe.debug(`B-coin spawn condition already triggered for threshold ${l}`);return}Pe.debug(`B-coin threshold crossed: ${f} -> ${l} (bomb/monster points: ${this.bombAndMonsterPoints})`),this.triggeredSpawnConditions.add(h),this.lastScoreCheck=this.bombAndMonsterPoints;const y=this.spawnPoints.filter(v=>v.type===a.type);if(y.length>0){const v=y[Math.floor(Math.random()*y.length)];this.spawnCoin(a.type,v.x,v.y,v.spawnAngle)}}}checkSpawnConditionsOnFirebombChange(){Object.values(zs).forEach(a=>{if(a.spawnCondition&&a.spawnCondition.toString().includes("firebombCount")){const l={firebombCount:this.firebombCount};if(a.spawnCondition(l)){const f=`${a.type}_${this.firebombCount}`;if(this.triggeredSpawnConditions.has(f))return;Pe.debug(`P-coin spawn condition met (firebombCount: ${this.firebombCount}, key: ${f})`),this.triggeredSpawnConditions.add(f);const h=this.spawnPoints.filter(y=>y.type===a.type);if(h.length>0){const y=h[Math.floor(Math.random()*h.length)];this.spawnCoin(a.type,y.x,y.y,y.spawnAngle)}else{const y=400+(Math.random()-.5)*200,v=100+Math.random()*100;this.spawnCoin(a.type,y,v)}}}})}checkSpawnConditions(a){Object.values(zs).forEach(l=>{if(l.spawnCondition&&!l.spawnCondition.toString().includes("firebombCount")&&l.type!=="POWER"){const f={...a,firebombCount:this.firebombCount,bombAndMonsterPoints:this.bombAndMonsterPoints};if(l.spawnCondition(f)){let h=`${l.type}`;if(l.spawnCondition.toString().includes("score")&&l.type==="BONUS_MULTIPLIER"){const v=Math.floor(this.bombAndMonsterPoints/H.BONUS_COIN_SPAWN_INTERVAL)*H.BONUS_COIN_SPAWN_INTERVAL,C=Math.floor(this.lastScoreCheck/H.BONUS_COIN_SPAWN_INTERVAL)*H.BONUS_COIN_SPAWN_INTERVAL;if(v>C&&v>=H.BONUS_COIN_SPAWN_INTERVAL)h=`${l.type}_${v}`,Pe.debug(`B-coin threshold crossed: ${C} -> ${v} (bomb/monster points: ${this.bombAndMonsterPoints})`);else return;this.lastScoreCheck=this.bombAndMonsterPoints}if(l.spawnCondition.toString().includes("totalBonusMultiplierCoinsCollected")){const v=a.totalBonusMultiplierCoinsCollected||0,C=Math.floor(v/H.EXTRA_LIFE_COIN_RATIO)*H.EXTRA_LIFE_COIN_RATIO;h=`${l.type}_${C}`}if(this.triggeredSpawnConditions.has(h))return;Pe.debug(`Spawn condition met for ${l.type} coin (key: ${h})`),this.triggeredSpawnConditions.add(h);const y=this.spawnPoints.filter(v=>v.type===l.type);if(y.length>0){const v=y[Math.floor(Math.random()*y.length)];this.spawnCoin(l.type,v.x,v.y,v.spawnAngle)}else{const v=400+(Math.random()-.5)*200;let C=50;l.physics.hasGravity&&!l.physics.bounces&&!l.physics.reflects?C=50:C=100+Math.random()*100,this.spawnCoin(l.type,v,C)}}}})}collectCoin(a,l){a.isCollected=!0,Pe.debug(`Collected ${a.type} coin`);const f=zs[a.type];if(f&&l){let h=f.points;if(a.type===It.POWER){const y=a.spawnTime||Date.now(),v=this.getPcoinColorForTime(y),C=l.multiplier||1;h=v.points*C,Pe.debug(`P-coin collected: ${v.name} color, ${v.points} × ${C} = ${h} points`)}else if(a.type===It.BONUS_MULTIPLIER)h=1e3*(l.multiplier||1);else if(a.type===It.EXTRA_LIFE){const y=l.multiplier||1;h=f.points*y}if("addFloatingText"in l&&typeof l.addFloatingText=="function"){const y=h.toString();l.addFloatingText(y,a.x+a.width/2,a.y+a.height/2,1e3,"#fff",15)}f.effects.forEach(y=>{const v={...l,activeEffects:{powerMode:!1,powerModeEndTime:0,...l.activeEffects},coinManager:{resetMonsterKillCount:()=>this.resetMonsterKillCount(),getPcoinColorForTime:C=>this.getPcoinColorForTime(C),getPowerModeEndTime:()=>this.getPowerModeEndTime()},difficultyManager:{pause:()=>{ca.getInstance().pause(),Pe.debug("Difficulty scaling paused (power mode active)")},resume:()=>{ca.getInstance().resume(),Pe.debug("Difficulty scaling resumed (power mode ended)")}}};y.apply(v,a),y.duration&&this.activeEffects.set(y.type,{endTime:Date.now()+y.duration,effect:y})})}else a.type!==It.POWER&&a.type!==It.BONUS_MULTIPLIER&&a.type!==It.EXTRA_LIFE&&Pe.warn(`Unknown coin type: ${a.type}, using legacy behavior`),a.type===It.POWER&&this.activatePowerMode()}checkEffectsEnd(a){const l=Date.now(),f=[];this.activeEffects.forEach((h,y)=>{if(Pe.debug(`Checking effect: ${y}, endTime: ${h.endTime}, currentTime: ${l}, shouldEnd: ${l>=h.endTime}`),l>=h.endTime&&(f.push(y),h.effect.remove&&a)){const v={...a,activeEffects:{powerMode:!1,powerModeEndTime:0,...a.activeEffects},coinManager:{resetMonsterKillCount:()=>this.resetMonsterKillCount(),getPcoinColorForTime:C=>this.getPcoinColorForTime(C),getPowerModeEndTime:()=>this.getPowerModeEndTime()},difficultyManager:{pause:()=>{ca.getInstance().pause(),Pe.debug("Difficulty scaling paused (power mode active)")},resume:()=>{ca.getInstance().resumeFromPowerMode(),Pe.debug("Difficulty scaling resumed (power mode ended)")}}};h.effect.remove(v)}}),f.forEach(h=>{this.activeEffects.delete(h),h==="POWER_MODE"&&(this.powerModeActive=!1,Pe.debug("Power mode deactivated"))})}calculateMonsterKillPoints(a){this.monsterKillCount++;let l;switch(this.monsterKillCount){case 1:l=100;break;case 2:l=200;break;case 3:l=300;break;case 4:l=500;break;case 5:l=800;break;case 6:l=1200;break;case 7:l=1700;break;case 8:l=2300;break;case 9:l=3e3;break;case 10:l=4e3;break;default:l=4e3+(this.monsterKillCount-10)*1e3}const f=l*a;return Pe.debug(`Monster kill #${this.monsterKillCount}: ${l} × ${a} = ${f} points`),f}getPcoinColorForTime(a){const f=Date.now()-a,y=Math.floor(f/1e3)%gp.length;return{...gp[y],index:y}}getCurrentPcoinColor(){return gp[this.pCoinColorIndex]}getPcoinCurrentColor(a){return a.type===It.POWER&&a.spawnTime!==void 0?this.getPcoinColorForTime(a.spawnTime).color:gp[0].color}advancePcoinColor(){this.pCoinColorIndex=(this.pCoinColorIndex+1)%gp.length;const a=this.getCurrentPcoinColor();Pe.debug(`P-coin color advanced to: ${a.name} (${a.points} points)`)}resetMonsterKillCount(){this.monsterKillCount=0,Pe.debug("Monster kill count reset for new power mode session")}isPowerModeActive(){const a=this.activeEffects.get("POWER_MODE");if(a){const l=Date.now()<a.endTime;return l||(this.activeEffects.delete("POWER_MODE"),this.powerModeActive=!1),l}return this.powerModeActive}getCoins(){return this.coins.filter(a=>!a.isCollected)}getAllCoins(){return[...this.coins]}getFirebombCount(){return this.firebombCount}getBombAndMonsterPoints(){return this.bombAndMonsterPoints}updateMonsters(a){if(this.isPowerModeActive()||this.powerModeActive){let f=0;const h=this.activeEffects.get("POWER_MODE");h?f=h.endTime-Date.now():f=this.powerModeEndTime-Date.now();const y=f<=2e3&&f>0;a.forEach(v=>{v.isFrozen=!0,v.isBlinking=y})}else a.forEach(f=>{f.isFrozen=!1,f.isBlinking=!1})}unfreezeAllMonsters(a){a.forEach(l=>{l.isFrozen=!1,l.isBlinking=!1})}resetEffects(){this.powerModeActive=!1,this.powerModeEndTime=0,this.firebombCount=0,this.coins=[],this.activeEffects.clear(),this.bombAndMonsterPoints=0,this.monsterKillCount=0,Pe.debug("Coin effects reset")}getCoinConfig(a){return zs[a]}isEffectActive(a){return this.activeEffects.has(a)}getPowerModeEndTime(){const a=this.activeEffects.get("POWER_MODE");return a?a.endTime:0}activatePowerMode(){this.powerModeActive=!0;let a=H.POWER_COIN_DURATION;const l=this.coins.find(f=>f.type===It.POWER&&f.spawnTime);l&&l.spawnTime&&(a=this.getPcoinColorForTime(l.spawnTime).duration),this.powerModeEndTime=Date.now()+a,this.resetMonsterKillCount(),this.activeEffects.set("POWER_MODE",{endTime:this.powerModeEndTime,effect:Uv.POWER_MODE}),Pe.debug(`Power mode timing - duration: ${a}ms, endTime: ${this.powerModeEndTime}, currentTime: ${Date.now()}`);try{ca.getInstance().pauseForPowerMode(),Pe.debug("Difficulty scaling paused (power mode active)")}catch{Pe.debug("Could not pause difficulty scaling (ScalingManager not available)")}Pe.debug(`Power mode activated for ${a}ms (${a/1e3}s)`)}}const Ft=LR((c,a,l)=>{const f=PR(c,a),h=XR(c,a),y=ZR(c,a),v=eM(c,a),C=tM(c,a),x=nM(c,a),R=rM(c,a),A=aM(c,a),_=iM(c);return{...f,...h,...y,...v,...C,...x,...R,...A,..._,resetGame:()=>{a().resetGameState(),a().resetPlayer(),a().resetBombState(),a().resetLevelState(),a().resetLevelHistory(),a().resetMultiplier(),a().resetAudioSettings(),a().resetCoinState(),a().resetEffects(),a().clearAllFloatingTexts()},initializeLevel:k=>{const{bombManager:N,firstBomb:z}=v.initializeLevel(k),G=k.bombs.map(de=>({...de,isBlinking:!1,isCollected:!1,isCorrect:!1}));a().setBombs(G),a().setBombManager(N);const J=new oM(k.coinSpawnPoints||[]);return a().setCoinManager(J),c({collectedBombs:[],correctOrderCount:0,nextBombOrder:1}),a().setPlayerPosition(k.playerStart.x,k.playerStart.y),{bombManager:N,firstBomb:z}},getLevelHistory:()=>C.getLevelResults(),getGameStartTime:()=>C.getGameStartTime(),getSessionId:()=>C.getSessionId()}});class lM{constructor(){be(this,"keys",new Set);be(this,"keyPressTimes",new Map);be(this,"touchControls",{left:!1,right:!1,up:!1,float:!1});be(this,"boundKeyDownHandler");be(this,"boundKeyUpHandler");be(this,"boundPreventDefaultHandler");this.boundKeyDownHandler=this.handleKeyDown.bind(this),this.boundKeyUpHandler=this.handleKeyUp.bind(this),this.boundPreventDefaultHandler=a=>{["ArrowLeft","ArrowRight","ArrowUp","Space"," ","p","P"].includes(a.key)&&a.preventDefault()},this.bindEvents()}bindEvents(){document.addEventListener("keydown",this.boundKeyDownHandler),document.addEventListener("keyup",this.boundKeyUpHandler),document.addEventListener("keydown",this.boundPreventDefaultHandler)}isKeyPressed(a){return this.keys.has(a)||this.getTouchControl(a)}isShiftPressed(){return this.keys.has("Shift")}getKeyPressDuration(a){const l=this.keyPressTimes.get(a);return l&&this.keys.has(a)?Date.now()-l:0}getTouchControl(a){switch(a){case"ArrowLeft":return this.touchControls.left;case"ArrowRight":return this.touchControls.right;case"ArrowUp":return this.touchControls.up;case" ":case"Space":return this.touchControls.float;default:return!1}}handleKeyDown(a){this.keys.has(a.key)||this.keyPressTimes.set(a.key,Date.now()),this.keys.add(a.key)}handleKeyUp(a){this.keys.delete(a.key),this.keyPressTimes.delete(a.key)}setTouchControl(a,l){this.touchControls[a]=l}cleanup(){document.removeEventListener("keydown",this.boundKeyDownHandler),document.removeEventListener("keyup",this.boundKeyUpHandler),document.removeEventListener("keydown",this.boundPreventDefaultHandler)}}class sM{checkPlayerPlatformCollision(a,l){for(const f of l){const h=this.checkFullCollision(a,f);if(h.hasCollision)return h}return{hasCollision:!1}}checkPlayerGroundCollision(a,l){return this.checkFullCollision(a,l)}checkMonsterGroundCollision(a,l){return this.checkFullCollision(a,l)}checkPlayerCoinCollision(a,l){for(const f of l)if(!f.isCollected&&this.isColliding(a,f))return f;return null}checkFullCollision(a,l){const f=a.x+(a.velocityX||0),h=a.y+(a.velocityY||0);if(this.wouldCollide(f,h,a.width,a.height,l)){const y=a.x+a.width/2,v=a.y+a.height/2,C=l.x+l.width/2,x=l.y+l.height/2,R=y-C,A=v-x,_=(a.width+l.width)/2-Math.abs(R),k=(a.height+l.height)/2-Math.abs(A);return _<k?R>0?{hasCollision:!0,normal:{x:1,y:0},penetration:_}:{hasCollision:!0,normal:{x:-1,y:0},penetration:_}:A>0?{hasCollision:!0,normal:{x:0,y:1},penetration:k}:{hasCollision:!0,normal:{x:0,y:-1},penetration:k}}return{hasCollision:!1}}wouldCollide(a,l,f,h,y){return a<y.x+y.width&&a+f>y.x&&l<y.y+y.height&&l+h>y.y}checkPlayerBombCollision(a,l){for(const f of l)if(!f.isCollected&&this.isColliding(a,f))return f;return null}checkPlayerMonsterCollision(a,l){for(const f of l)if(f.isActive&&this.isColliding(a,f))return f;return null}checkBoundaryCollision(a,l){const f=a.x,h=a.y;return f<0?{hasCollision:!0,normal:{x:1,y:0},penetration:Math.abs(f)}:f+a.width>l.width?{hasCollision:!0,normal:{x:-1,y:0},penetration:f+a.width-l.width}:h<0?{hasCollision:!0,normal:{x:0,y:1},penetration:Math.abs(h)}:h+a.height>l.height?{hasCollision:!0,normal:{x:0,y:-1},penetration:h+a.height-l.height}:{hasCollision:!1}}resolveBoundaryCollision(a,l){const f=this.checkBoundaryCollision(a,l);if(!f.hasCollision||!f.normal||!f.penetration)return{player:a,fellOffScreen:!1};const h={...a},{normal:y,penetration:v}=f;if(y.x===1)h.x=0,h.velocityX=0;else if(y.x===-1)h.x=l.width-a.width,h.velocityX=0;else if(y.y===1)h.y=0,h.velocityY=0;else if(y.y===-1)return{player:h,fellOffScreen:!0};return{player:h,fellOffScreen:!1}}isColliding(a,l){return a.x<l.x+l.width&&a.x+a.width>l.x&&a.y<l.y+l.height&&a.y+a.height>l.y}}class ux{constructor(a,l){be(this,"animations");be(this,"currentAnimation");be(this,"currentFrameIndex",0);be(this,"frameTimer",0);this.animations=Object.fromEntries(a.map(f=>[f.name,f])),this.currentAnimation=this.animations[l]}setAnimation(a){this.currentAnimation.name!==a&&(this.currentAnimation=this.animations[a],this.currentFrameIndex=0,this.frameTimer=0)}setAnimationPreserveFrame(a){if(this.currentAnimation.name!==a){const l=this.animations[a];if(l){const f=Math.min(this.currentFrameIndex,l.frames.length-1);this.currentAnimation=l,this.currentFrameIndex=f}}}update(a){this.frameTimer+=a,this.frameTimer>this.currentAnimation.frameDuration&&(this.frameTimer=0,this.currentFrameIndex++,this.currentFrameIndex>=this.currentAnimation.frames.length&&(this.currentFrameIndex=this.currentAnimation.loop?0:this.currentAnimation.frames.length-1))}draw(a,l,f,h=1){const y=this.currentAnimation.frames[this.currentFrameIndex];if(y.complete){const v=H.PLAYER_WIDTH*2.5,C=H.PLAYER_HEIGHT*h,x=l-(v-H.PLAYER_WIDTH)/2.3;if(this.currentAnimation.name.includes("-left")){a.save(),a.scale(-1,1);const A=x+v/2.14;a.translate(-A*2,0),a.drawImage(y,x,f,v,C),a.restore()}else a.drawImage(y,x,f,v,C);a.save(),a.restore()}}}const Fs={audio:"/dist/audio",images:"/dist/assets"},cx=c=>`${Fs.images}/maps-bg-images/${c}.png`,Ir=c=>{const a=new Image;return a.src=`${Fs.images}/${c}`,a},fx=[Ir("sigurd-idle/sigurd-idle1.png"),Ir("sigurd-idle/sigurd-idle2.png"),Ir("sigurd-idle/sigurd-idle3.png"),Ir("sigurd-idle/sigurd-idle4.png")],dx=[Ir("running/run1.png"),Ir("running/run2.png"),Ir("running/run3.png")],px=[Ir("jumping/jump1.png"),Ir("jumping/jump2.png"),Ir("jumping/jump3.png")],uM=[Ir("complete/complete1.png"),Ir("complete/complete2.png"),Ir("complete/complete3.png"),Ir("complete/complete4.png"),Ir("complete/complete5.png")],cM=[Ir("float/float1.png")],hx=[Ir("float-dir/float-dir1.png")],vx=[Ir("landing/landing1.png")],fM=[{name:"walk-right",frames:dx,frameDuration:100,loop:!0},{name:"walk-left",frames:dx,frameDuration:100,loop:!0},{name:"idle-right",frames:fx,frameDuration:1e3,loop:!0},{name:"idle-left",frames:fx,frameDuration:1e3,loop:!0},{name:"jump-right",frames:px,frameDuration:100,loop:!1},{name:"jump-left",frames:px,frameDuration:100,loop:!1},{name:"land-right",frames:vx,frameDuration:500,loop:!1},{name:"land-left",frames:vx,frameDuration:500,loop:!1},{name:"float-stationary",frames:cM,frameDuration:100,loop:!0},{name:"float-right",frames:hx,frameDuration:100,loop:!1},{name:"float-left",frames:hx,frameDuration:100,loop:!0},{name:"ghost-complete",frames:uM,frameDuration:100,loop:!1}],Sp=new ux(fM,"idle-left"),Jy=c=>{const a=new Image;return a.src=`${Fs.images}/${c}`,a},dM=[Jy("bomb/bomb1.png")],pM=[Jy("bomb/bomb1.png"),Jy("bomb/bomb2.png")],hM=[{name:"unlit",frames:dM,frameDuration:100,loop:!1},{name:"lit",frames:pM,frameDuration:100,loop:!0}];class mx extends ux{draw(a,l,f,h=1){const y=this.currentAnimation.frames[this.currentFrameIndex];if(y.complete){const v=H.BOMB_SIZE*h,C=H.BOMB_SIZE*h;a.drawImage(y,l,f,v,C)}}}const e0=new mx(hM,"unlit"),wp={"startup lab":"startup-lab.png",nav:"nav.png",skatteetaten:"skatteetaten.png","innovasjon norge":"innovasjon-norge.png",kommunehuset:"kommunehuset.png","alltinn norge":"alltinn-norge.png","silicone vally":"silicone-vally.png",default:"startup-lab.png"};class gx{constructor(a,l){be(this,"currentBackground",null);be(this,"isLoading",!1);be(this,"canvasWidth");be(this,"canvasHeight");be(this,"currentMapName","");this.canvasWidth=a,this.canvasHeight=l}loadMapBackground(a){this.isLoading||(this.currentMapName=a,this.isLoading=!0,this.currentBackground&&(this.currentBackground.image.src="",this.currentBackground=null),this.loadBackgroundAsync(a).catch(l=>{console.error("BackgroundManager: Failed to load background:",l),this.isLoading=!1}))}async loadBackgroundAsync(a){try{const l=wp[a]||wp.default,f=await this.loadImage(`${Fs.images}/maps-bg-images/${l}`);this.currentBackground={image:f,isLoaded:!0},this.isLoading=!1,Ge.flow(`Background loaded: ${a}`)}catch(l){console.error("BackgroundManager: Failed to load background image:",l),this.isLoading=!1}}loadImage(a){return new Promise((l,f)=>{const h=new Image;h.onload=()=>l(h),h.onerror=()=>f(new Error(`Failed to load image: ${a}`)),h.src=a})}update(a,l){}render(a){if(!this.currentBackground||!this.currentBackground.isLoaded){this.isLoading?this.renderLoading(a):this.renderFallback(a);return}const l=this.currentBackground.image,f=this.canvasWidth/l.width,h=this.canvasHeight/l.height,y=Math.max(f,h),v=l.width*y,C=l.height*y,x=(v-this.canvasWidth)/2,R=(C-this.canvasHeight)/2;a.drawImage(l,-x,-R,v,C)}renderLoading(a){const l=a.createLinearGradient(0,0,0,this.canvasHeight);l.addColorStop(0,"#262521"),l.addColorStop(1,"#484744"),a.fillStyle=l,a.fillRect(0,0,this.canvasWidth,this.canvasHeight),a.fillStyle="#ffffff",a.font="16px Arial",a.textAlign="center",a.fillText("Loading background...",this.canvasWidth/2,this.canvasHeight/2)}renderFallback(a){const l=a.createLinearGradient(0,0,0,this.canvasHeight);l.addColorStop(0,"#87CEEB"),l.addColorStop(1,"#4682B4"),a.fillStyle=l,a.fillRect(0,0,this.canvasWidth,this.canvasHeight)}isReady(){return this.currentBackground?.isLoaded||!1}isCurrentlyLoading(){return this.isLoading}getCurrentTheme(){return this.currentMapName}getCurrentMapName(){return this.currentMapName}static getAvailableBackgrounds(){return Object.values(wp)}static getMapNameMapping(){return{...wp}}static async preloadAllBackgrounds(){Ge.flow("Starting background preloading...");const a=Object.values(wp);let l=0;const f=a.map(async h=>{try{const y=new Image;await new Promise((v,C)=>{y.onload=v,y.onerror=C,y.src=`${Fs.images}/maps-bg-images/${h}`}),l++,(l%2===0||l===a.length)&&Ge.flow(`Preloaded ${l}/${a.length} backgrounds`)}catch{Ge.warn(`Failed to preload background: ${h}`)}});await Promise.all(f),Ge.flow(`Background preloading complete! Loaded ${l}/${a.length} backgrounds.`)}}const Wu=class Wu{constructor(){be(this,"deadMonsters",[]);be(this,"respawnConfig");be(this,"scalingManager");be(this,"lastUpdateTime",0);be(this,"updateInterval",500);be(this,"paused",!1);this.respawnConfig=this.getDefaultRespawnConfig(),this.scalingManager=ca.getInstance(),Ge.debug("Respawn manager initialized")}static getInstance(){return Wu.instance||(Wu.instance=new Wu),Wu.instance}getDefaultRespawnConfig(){return{ambusher:1e4,chaser:7e3,floater:15e3,patrol:8e3}}updateRespawnConfig(a){this.respawnConfig={...this.respawnConfig,...a},Ge.debug("OptimizedRespawnManager: Updated respawn configuration",this.respawnConfig)}getRespawnConfig(){return{...this.respawnConfig}}killMonster(a){if(a.isDead){Ge.debug(`Monster already dead, skipping kill: ${a.type}`);return}a.originalSpawnPoint||(a.originalSpawnPoint={x:a.x,y:a.y}),a.isDead=!0,a.isActive=!1,a.deathTime=Date.now(),a.respawnTime=a.deathTime+this.getRespawnDelay(a.type);const l={monster:a,respawnTime:a.respawnTime};this.insertSorted(l),Ge.monster(`${a.type} killed - respawning in ${this.getRespawnDelay(a.type)/1e3}s`)}insertSorted(a){let l=0,f=this.deadMonsters.length;for(;l<f;){const h=Math.floor((l+f)/2);this.deadMonsters[h].respawnTime<=a.respawnTime?l=h+1:f=h}this.deadMonsters.splice(l,0,a)}update(){const a=Date.now();if(a-this.lastUpdateTime<this.updateInterval)return[];if(this.lastUpdateTime=a,this.paused)return[];const l=[];for(;this.deadMonsters.length>0&&this.deadMonsters[0].respawnTime<=a;){const f=this.deadMonsters.shift(),h=this.respawnMonster(f.monster);l.push(h)}return l.length>0&&Ge.monster(`Respawning ${l.length} monsters: ${l.map(f=>f.type).join(", ")}`),l}pause(){this.paused=!0,Ge.pause("Respawn system paused")}resume(){this.paused=!1,Ge.pause("Respawn system resumed")}isPaused(){return this.paused}respawnMonster(a){const l=a.originalSpawnPoint;return this.resetMonsterState(a,l),this.scalingManager.resetMonsterScaling(a),Ge.monster(`${a.type} respawned`),a}resetMonsterState(a,l){a.isDead=!1,a.isActive=!0,a.x=l.x,a.y=l.y,a.isFrozen=!1,a.isBlinking=!1,a.velocityX=0,a.velocityY=0,a.isGrounded=!1,a.isFalling=!1,a.currentPlatform=null,a.behaviorState=void 0,a.lastDirectionChange=void 0,a.deathTime=void 0,a.respawnTime=void 0}getRespawnDelay(a){switch(a){case"AMBUSHER":return this.respawnConfig.ambusher;case"CHASER":return this.respawnConfig.chaser;case"FLOATER":return this.respawnConfig.floater;case"HORIZONTAL_PATROL":case"VERTICAL_PATROL":return this.respawnConfig.patrol;default:return Ge.warn(`Unknown monster type for respawn delay: ${a}, using default`),this.respawnConfig.patrol}}getDeadMonsterCount(){return this.deadMonsters.length}getDeadMonsters(){return this.deadMonsters.map(a=>a.monster)}getRespawnTimeRemaining(a){return!a.isDead||!a.respawnTime?0:Math.max(0,a.respawnTime-Date.now())}getNextRespawnTime(){return this.deadMonsters.length>0?this.deadMonsters[0].respawnTime:null}reset(){this.deadMonsters=[],this.lastUpdateTime=0,Ge.debug("OptimizedRespawnManager: Reset - cleared all dead monsters")}setUpdateInterval(a){this.updateInterval=a,Ge.debug(`OptimizedRespawnManager: Update interval set to ${a}ms`)}cleanup(){this.deadMonsters=[],this.lastUpdateTime=0}};be(Wu,"instance");let zv=Wu;class vM{constructor(a){be(this,"canvas");be(this,"ctx");be(this,"lastTime",0);be(this,"backgroundManager");be(this,"bombSprites",new Map);be(this,"currentSpawnManager",null);be(this,"currentGameState",null);this.canvas=a,this.ctx=a.getContext("2d"),this.backgroundManager=new gx(a.width,a.height),Pe.debug("RenderManager initialized with canvas")}render(a,l,f,h,y,v=[],C=[],x,R,A,_){this.currentSpawnManager=R,this.currentGameState=_;const k=Date.now(),N=k-this.lastTime;this.lastTime=k,this.backgroundManager.update(a.x,a.y),this.renderBackground(),y&&this.renderGround(y),this.renderPlatforms(l),this.renderBombs(f),this.renderCoins(v,x),this.renderMonsters(h),this.renderPlayer(a),this.renderFloatingTexts(C,N)}clearCanvas(){this.ctx.fillStyle=rr.BACKGROUND,this.ctx.fillRect(0,0,this.canvas.width,this.canvas.height)}renderBackground(){this.backgroundManager.render(this.ctx)}renderGround(a){this.ctx.fillStyle=a.color,this.ctx.fillRect(a.x,a.y,a.width,a.height)}renderPlayer(a){if(Sp&&H.USE_SPRITES){const l=a.height/H.PLAYER_HEIGHT;Sp.draw(this.ctx,a.x,a.y,l)}else this.ctx.fillStyle=a.color,this.ctx.fillRect(a.x,a.y,a.width,a.height)}renderPlatforms(a){a.forEach(l=>{this.ctx.fillStyle=l.color,this.ctx.strokeStyle=l.borderColor;const f=4,h=l.x,y=l.y,v=l.width,C=l.height;this.ctx.beginPath(),this.ctx.moveTo(h+f,y),this.ctx.lineTo(h+v-f,y),this.ctx.quadraticCurveTo(h+v,y,h+v,y+f),this.ctx.lineTo(h+v,y+C-f),this.ctx.quadraticCurveTo(h+v,y+C,h+v-f,y+C),this.ctx.lineTo(h+f,y+C),this.ctx.quadraticCurveTo(h,y+C,h,y+C-f),this.ctx.lineTo(h,y+f),this.ctx.quadraticCurveTo(h,y,h+f,y),this.ctx.closePath(),this.ctx.lineWidth=3,this.ctx.stroke(),this.ctx.fill()})}renderBombs(a){a.forEach(l=>{if(!l.isCollected)if(e0&&H.USE_SPRITES){let f=this.bombSprites.get(l.order);if(!f){const v=[{name:"unlit",frames:e0.animations.unlit.frames,frameDuration:50,loop:!1},{name:"lit",frames:e0.animations.lit.frames,frameDuration:100,loop:!0}];f=new mx(v,"unlit"),this.bombSprites.set(l.order,f)}const h=l.isBlinking?"lit":"unlit";f.setAnimation(h),f.update(16);const y=l.width/H.BOMB_SIZE;f.draw(this.ctx,l.x,l.y,y)}else this.ctx.fillStyle=l.isBlinking?rr.BOMB_NEXT:rr.BOMB,this.ctx.fillRect(l.x,l.y,l.width,l.height),this.ctx.fillStyle="#000000",this.ctx.font="12px Arial",this.ctx.textAlign="center",this.ctx.fillText(l.order.toString(),l.x+l.width/2,l.y+l.height/2+4)})}renderCoins(a,l){a.forEach(f=>{if(f.isCollected)return;let y=zs[f.type]?.color||"#FFD700";f.type==="POWER"&&l&&(y=l.getPcoinCurrentColor(f)),this.ctx.fillStyle=y,this.ctx.beginPath(),this.ctx.arc(f.x+f.width/2,f.y+f.height/2,f.width/2,0,2*Math.PI),this.ctx.fill(),this.ctx.fillStyle="#fff",this.ctx.font="14px Arial",this.ctx.textAlign="center",this.ctx.textBaseline="middle";let v="C";f.type==="POWER"?(v="P",this.ctx.fillStyle="#000"):f.type==="BONUS_MULTIPLIER"?(v="B",this.ctx.fillStyle="#fff"):f.type==="EXTRA_LIFE"&&(v="M",this.ctx.fillStyle="#fff"),this.ctx.fillText(v,f.x+f.width/2,f.y+f.height/2+2)})}renderMonsters(a){a.forEach((l,f)=>{if(!l.isActive){Pe.debug(`Monster ${f} is not active, skipping`);return}let h=l.color;if(l.isBlinking){const y=Date.now();Math.floor(y/300)%2===0?h=rr.MONSTER_FROZEN:h=l.color}else l.isFrozen&&(h=rr.MONSTER_FROZEN);this.ctx.fillStyle=h,this.ctx.fillRect(l.x,l.y,l.width,l.height),this.ctx.fillStyle="#000",this.ctx.fillRect(l.x+2,l.y+2,2,2),this.ctx.fillRect(l.x+l.width-4,l.y+2,2,2)}),this.renderRespawnIndicators(a),this.renderSpawnIndicators(this.currentSpawnManager)}renderRespawnIndicators(a){const l=zv.getInstance();a.forEach(f=>{if(f.isDead&&f.originalSpawnPoint){const h=l.getRespawnTimeRemaining(f),y=Math.ceil(h/1e3);if(h>0&&y<=3){const v=f.originalSpawnPoint,C=Math.sin(Date.now()/200)*.3+.7,x=f.color||"#ffffff";this.ctx.fillStyle=`${x}${Math.floor(C*1*255).toString(16).padStart(2,"0")}`,this.ctx.fillRect(v.x,v.y,f.width,f.height);const R=`${y}`,A=v.x+f.width/2,_=v.y+f.height/2+4;this.ctx.fillStyle="#ffffff",this.ctx.font="16px Arial",this.ctx.textAlign="center",this.ctx.textBaseline="middle",this.ctx.fillText(R,A,_)}}})}renderSpawnIndicators(a){if(a&&!(!this.currentGameState||this.currentGameState.currentState!=="PLAYING"))try{a.getPendingSpawns().forEach(f=>{const h=a.getSpawnTimeRemaining(f),y=Math.ceil(h/1e3);if(h>0&&y<=3){const v=f.spawnPoint.createMonster(),C=Math.sin(Date.now()/200)*.3+.7,x=v.color||"#ffffff";this.ctx.fillStyle=`${x}${Math.floor(C*1*255).toString(16).padStart(2,"0")}`,this.ctx.fillRect(v.x,v.y,v.width,v.height);const R=`${y}`,A=v.x+v.width/2,_=v.y+v.height/2;this.ctx.fillStyle="#ffffff",this.ctx.font="16px Arial",this.ctx.textAlign="center",this.ctx.textBaseline="middle",this.ctx.fillText(R,A,_)}})}catch{}}renderFloatingTexts(a,l){a.forEach(f=>{const h=Date.now()-f.startTime,y=Math.min(h/f.duration,1),C=f.y-50*y,x=1-y;this.ctx.globalAlpha=x,this.ctx.fillStyle=f.color,this.ctx.font=`${f.fontSize}px Arial`,this.ctx.textAlign="center",this.ctx.textBaseline="middle",this.ctx.fillText(f.text,f.x,C),this.ctx.globalAlpha=1})}loadCityTheme(a){this.backgroundManager.loadMapBackground(a)}loadMapBackground(a){this.backgroundManager.loadMapBackground(a)}isParallaxReady(){return this.backgroundManager.isReady()}isParallaxLoading(){return this.backgroundManager.isCurrentlyLoading()}getCurrentMapName(){return this.backgroundManager.getCurrentMapName()}clearBombSprites(){this.bombSprites.clear()}}const yx=c=>c.type==="HORIZONTAL_PATROL"||c.type==="VERTICAL_PATROL",mM=c=>c.type==="CHASER",gM=c=>c.type==="AMBUSHER";class hi{static checkMonsterPlatformCollision(a,l){return a.x<l.x+l.width&&a.x+a.width>l.x&&a.y<l.y+l.height&&a.y+a.height>l.y}static isMonsterOnPlatform(a,l){return a.x<l.x+l.width&&a.x+a.width>l.x&&Math.abs(a.y+a.height-l.y)<=2}static findCurrentPlatform(a,l){for(const f of l)if(this.isMonsterOnPlatform(a,f))return f;return null}static isMonsterOnGround(a,l){return Math.abs(a.y+a.height-l.y)<=2}static applyGravity(a){a.velocityY||(a.velocityY=0),a.gravity||(a.gravity=H.GRAVITY),a.velocityY+=a.gravity,a.y+=a.velocityY}static isAtPlatformEdge(a,l,f){return f>0?a.x+a.width>=l.x+l.width-5:a.x<=l.x+5}static hasFallenOffPlatform(a,l){return a.x+a.width<l.x||a.x>l.x+l.width}static determineSpawnSide(a,l){const f=l.x+l.width/2;return a.x<f?"left":"right"}static shouldFall(a,l,f,h,y){return h>=y&&Math.abs(a.x-f)<=10}static isOutsideBoundaries(a,l,f){return l<=0||l+a.width>=H.CANVAS_WIDTH||f<=0||f+a.height>=H.CANVAS_HEIGHT}static clampToBoundaries(a){a.x=Math.max(0,Math.min(a.x,H.CANVAS_WIDTH-a.width)),a.y=Math.max(0,Math.min(a.y,H.CANVAS_HEIGHT-a.height))}static isMovementSafe(a,l,f,h){if(this.isOutsideBoundaries(a,l,f))return!1;for(const y of h)if(this.checkMonsterPlatformCollision({...a,x:l,y:f},y))return!1;return!0}static isMovementSafeWithGround(a,l,f,h,y){if(this.isOutsideBoundaries(a,l,f))return!1;for(const v of h)if(this.checkMonsterPlatformCollision({...a,x:l,y:f},v))return!1;return!(y&&this.checkMonsterPlatformCollision({...a,x:l,y:f},y))}}class yM{update(a,l,f,h){if(f&&f.currentState!=="PLAYING")return;a.type==="HORIZONTAL_PATROL"?this.updateHorizontalPatrol(a,l,h):this.updateVerticalPatrol(a,l,h)}updateHorizontalPatrol(a,l,f){if(!yx(a))return;const h=ca.getInstance(),y=h.getMonsterScaledValues(a);h.getBaseValues();const v=h.getMonsterAge(a),C=y.patrol.speed;v<2&&Ge.debug(`Patrol scaling - Age: ${v.toFixed(1)}s, Speed: ${C.toFixed(2)}`);const x=f?C*(f/16.67):C,R=a.x+x*a.direction;R<a.patrolStartX||R+a.width>a.patrolEndX?(a.direction*=-1,a.lastDirectionChange=l):a.x=R;const A=Ft.getState(),_=A.platforms||[],k=hi.findCurrentPlatform(a,_);k?(a.y=k.y-a.height,a.velocityY=0,a.isGrounded=!0):this.handleGroundCollision(a,A.ground)}updateVerticalPatrol(a,l,f){if(!yx(a))return;const h=ca.getInstance(),y=h.getMonsterScaledValues(a);h.getBaseValues(),h.getMonsterAge(a);const v=y.patrol.speed;if(!a.originalSpawnX){const A=Ft.getState().platforms||[],_=a.patrolSide||"left",k=a.targetPlatformX,N=A.find(z=>z.isVertical&&Math.abs(z.x-k)<1);N&&(a.originalSpawnX=_==="left"?N.x-a.width-8:N.x+8+N.width,a.x=a.originalSpawnX)}const C=f?v*(f/16.67):v,x=a.y+C*a.direction;x<a.patrolStartY||x+a.height>a.patrolEndY?(a.direction*=-1,a.lastDirectionChange=l):a.y=x,a.originalSpawnX!==void 0?(a.x=a.originalSpawnX,a.velocityX=0,a.velocityY=0,a.isGrounded=!1):(a.velocityX=0,a.velocityY=0,a.isGrounded=!1)}handleGroundCollision(a,l){if(!l)return;a.x<l.x+l.width&&a.x+a.width>l.x&&a.y<l.y+l.height&&a.y+a.height>l.y&&(a.y=l.y-a.height,a.velocityY=0,a.isGrounded=!0)}}class SM{update(a,l,f,h){if(!mM(a)||f.currentState!=="PLAYING")return;const y=f.player;if(!y)return;const v=ca.getInstance(),C=v.getMonsterScaledValues(a);v.getBaseValues();const x=v.getMonsterAge(a);if(x<2&&Ge.debug(`Chaser scaling - Age: ${x.toFixed(1)}s, Speed: ${C.chaser.speed.toFixed(2)}`),!a.behaviorState){a.behaviorState="chasing",a.lastDirectionChange=l,a.chaseTargetX=y.x,a.chaseTargetY=y.y,a.updateIntervalMultiplier=.8+Math.random()*.4,a.directnessMultiplier=.85+Math.random()*.3,a.speedMultiplier=.9+Math.random()*.2;const ue=(Math.random()-.5)*50,ce=(Math.random()-.5)*50;a.chaseTargetX=y.x+ue,a.chaseTargetY=y.y+ce,a.lastDirectionChange=l+Math.random()*C.chaser.updateInterval}const R=f.platforms||[],A=C.chaser.directness*(a.directnessMultiplier||1),_=C.chaser.updateInterval*(a.updateIntervalMultiplier||1);if(l-(a.lastDirectionChange||l)>_){const ue=a.chaseTargetX||a.x,ce=a.chaseTargetY||a.y,fe=Math.random()<.3,le=fe?(Math.random()-.5)*15:0,Re=fe?(Math.random()-.5)*15:0;a.chaseTargetX=ue+(y.x+le-ue)*A,a.chaseTargetY=ce+(y.y+Re-ce)*A,a.lastDirectionChange=l}const N=a.chaseTargetX||a.x,z=a.chaseTargetY||a.y,G=N-a.x,J=z-a.y,de=Math.sqrt(G*G+J*J);if(de>20){const ue=C.chaser.speed*(a.speedMultiplier||1),ce=h?ue*(h/16.67):ue,fe=Math.sign(G)*ce,le=Math.sign(J)*ce;this.applyMovement(a,fe,le,N,z,R,f.ground)}else if(de>5){const ue=C.chaser.speed*(a.speedMultiplier||1)*.5,ce=h?ue*(h/16.67):ue,fe=Math.sign(G)*ce,le=Math.sign(J)*ce;this.applyMovement(a,fe,le,N,z,R,f.ground)}}applyMovement(a,l,f,h,y,v,C){const x=a.x+l,R=a.y+f,A=hi.isMovementSafe(a,x,a.y,v),_=hi.isMovementSafe(a,a.x,R,v);A&&(a.x=x),_&&(a.y=R),this.handleGroundCollision(a,C),!A&&!_&&this.findAlternativePath(a,h,y,v)}findAlternativePath(a,l,f,h){const y=l-a.x,v=f-a.y,C=Math.random();if((Math.abs(y)>Math.abs(v)?C>.7?"vertical":"horizontal":C>.7?"horizontal":"vertical")==="horizontal"){const R=Math.random()>.5?[1,-1]:[-1,1];for(const N of R){const z=a.y+N*a.speed;let G=!0;for(const J of h)if(hi.checkMonsterPlatformCollision({...a,y:z},J)){G=!1;break}if(G){a.y=z;return}}const A=Math.sign(y)*-1,_=a.x+A*a.speed;let k=!0;for(const N of h)if(hi.checkMonsterPlatformCollision({...a,x:_},N)){k=!1;break}if(k){a.x=_;return}}else{const R=Math.random()>.5?[1,-1]:[-1,1];for(const N of R){const z=a.x+N*a.speed;let G=!0;for(const J of h)if(hi.checkMonsterPlatformCollision({...a,x:z},J)){G=!1;break}if(G){a.x=z;return}}const A=Math.sign(v)*-1,_=a.y+A*a.speed;let k=!0;for(const N of h)if(hi.checkMonsterPlatformCollision({...a,y:_},N)){k=!1;break}if(k){a.y=_;return}}this.tryRandomMovement(a,h)}handleGroundCollision(a,l){if(!l)return;a.x<l.x+l.width&&a.x+a.width>l.x&&a.y<l.y+l.height&&a.y+a.height>l.y&&(a.y=l.y-a.height,a.velocityY=0,a.isGrounded=!0)}tryRandomMovement(a,l){const f=[{x:1,y:0},{x:-1,y:0},{x:0,y:1},{x:0,y:-1},{x:1,y:1},{x:-1,y:1},{x:1,y:-1},{x:-1,y:-1}];for(let h=f.length-1;h>0;h--){const y=Math.floor(Math.random()*(h+1));[f[h],f[y]]=[f[y],f[h]]}for(const h of f){const y=a.x+h.x*a.speed,v=a.y+h.y*a.speed;let C=!0;for(const x of l)if(hi.checkMonsterPlatformCollision({...a,x:y,y:v},x)){C=!1;break}if(C){a.x=y,a.y=v;return}}}}class wM{update(a,l,f,h){if(!gM(a)||f.currentState!=="PLAYING")return;const y=f.player;if(!y)return;const v=ca.getInstance(),C=v.getMonsterScaledValues(a);v.getBaseValues();const x=v.getMonsterAge(a);x<2&&Ge.debug(`Ambusher scaling - Age: ${x.toFixed(1)}s, Speed: ${C.ambusher.speed.toFixed(2)}`),a.behaviorState||(a.behaviorState="wandering",a.lastDirectionChange=l,a.ambushCooldown=2e3);const R=f.platforms||[];if(a.behaviorState==="wandering"){(!a.targetX||!a.targetY)&&this.chooseNewWanderingDirection(a,l),l-(a.lastDirectionChange||l)>2e3+Math.random()*2e3&&this.chooseNewWanderingDirection(a,l);const _=C.ambusher.speed*.5,k=h?_*(h/16.67):_,N=a.targetX||a.x,z=a.targetY||a.y,G=N-a.x,J=z-a.y,de=Math.sqrt(G*G+J*J);if(de>5){const ue=G/de,ce=J/de,fe=a.x+k*ue,le=a.y+k*ce;hi.isMovementSafeWithGround(a,fe,le,R,f.ground)?(a.x=fe,a.y=le):this.chooseNewWanderingDirection(a,l)}else this.chooseNewWanderingDirection(a,l);a.ambushCooldown+=h||16,a.ambushCooldown>=C.ambusher.ambushInterval&&(a.behaviorState="ambushing",a.lastDirectionChange=l,a.ambushCooldown=0,a.ambushTargetX=y.x,a.ambushTargetY=y.y,Ge.debug(`Ambusher switching to ambush mode, targeting player at (${a.ambushTargetX}, ${a.ambushTargetY})`))}else if(a.behaviorState==="ambushing"){const A=C.ambusher.speed*3,_=h?A*(h/16.67):A,k=a.ambushTargetX||a.x,N=a.ambushTargetY||a.y,z=Math.sqrt((k-a.x)**2+(N-a.y)**2);if(z>5){const G=k-a.x,J=N-a.y,de=G/z,ue=J/z,ce=a.x+_*de,fe=a.y+_*ue;hi.isMovementSafeWithGround(a,ce,fe,R,f.ground)?(a.x=ce,a.y=fe):(a.behaviorState="wandering",a.lastDirectionChange=l,Ge.debug("Ambusher blocked, returning to wandering"))}else a.behaviorState="wandering",a.lastDirectionChange=l,Ge.debug("Ambusher reached target, returning to wandering")}}chooseNewWanderingDirection(a,l){const f=[{x:1,y:0},{x:-1,y:0},{x:0,y:1},{x:0,y:-1},{x:1,y:1},{x:-1,y:1},{x:1,y:-1},{x:-1,y:-1}],h=f[Math.floor(Math.random()*f.length)],y=50+Math.random()*100,v=Math.max(0,Math.min(a.x+h.x*y,H.CANVAS_WIDTH-a.width)),C=Math.max(0,Math.min(a.y+h.y*y,H.CANVAS_HEIGHT-a.height));a.targetX=v,a.targetY=C,a.lastDirectionChange=l}}class bM{update(a,l,f,h){if(f&&f.currentState!=="PLAYING")return;const y=ca.getInstance(),v=y.getMonsterScaledValues(a);y.getBaseValues();const C=y.getMonsterAge(a);C<2&&Ge.debug(`Floater scaling - Age: ${C.toFixed(1)}s, Speed: ${v.floater.speed.toFixed(2)}`),!a.velocityX&&!a.velocityY&&this.initializeVelocity(a,v.floater.speed);const x=Math.sqrt(a.velocityX*a.velocityX+a.velocityY*a.velocityY);if(x>0){const J=v.floater.speed/x;a.velocityX*=J,a.velocityY*=J}const R=h?h/16.67:1,A=a.x+a.velocityX*R,_=a.y+a.velocityY*R,k=Ft.getState(),N=k.platforms||[];let z=!0,G={x:0,y:0};for(const J of N)if(hi.checkMonsterPlatformCollision({...a,x:A,y:_},J)){z=!1,G=this.calculateCollisionNormal(a,J);break}(A<=0||A+a.width>=H.CANVAS_WIDTH||_<=0||_+a.height>=H.CANVAS_HEIGHT)&&(z=!1,G=this.calculateBoundaryCollisionNormal(a,A,_)),k.ground&&hi.checkMonsterPlatformCollision({...a,x:A,y:_},k.ground)&&(z=!1,G=this.calculateCollisionNormal(a,k.ground)),z?(a.x=A,a.y=_):this.bounceOffCollision(a,G,v.floater.bounceAngle)}initializeVelocity(a,l){if(a.type!=="FLOATER")return;const h=(a.startAngle||45)*Math.PI/180;a.velocityX=Math.cos(h)*l,a.velocityY=Math.sin(h)*l}calculateCollisionNormal(a,l){const f=a.x+a.width/2,h=a.y+a.height/2,y=Math.max(l.x,Math.min(f,l.x+l.width)),v=Math.max(l.y,Math.min(h,l.y+l.height)),C=f-y,x=h-v,R=Math.sqrt(C*C+x*x);if(R>.1)return{x:C/R,y:x/R};{const A=Math.abs(a.x+a.width-l.x),_=Math.abs(a.x-(l.x+l.width)),k=Math.abs(a.y+a.height-l.y),N=Math.abs(a.y-(l.y+l.height)),z=Math.min(A,_,k,N);return z===A?{x:-1,y:0}:z===_?{x:1,y:0}:z===k?{x:0,y:-1}:{x:0,y:1}}}calculateBoundaryCollisionNormal(a,l,f){return l<=0?{x:1,y:0}:l+a.width>=H.CANVAS_WIDTH?{x:-1,y:0}:f<=0?{x:0,y:1}:{x:0,y:-1}}bounceOffCollision(a,l,f){const h=a.velocityX*l.x+a.velocityY*l.y;a.velocityX=a.velocityX-2*h*l.x,a.velocityY=a.velocityY-2*h*l.y;const y=(Math.random()-.5)*f,v=Math.sqrt(a.velocityX*a.velocityX+a.velocityY*a.velocityY),x=Math.atan2(a.velocityY,a.velocityX)+y;a.velocityX=Math.cos(x)*v,a.velocityY=Math.sin(x)*v}}class xM{constructor(){be(this,"patrolMovement");be(this,"chaserMovement");be(this,"ambusherMovement");be(this,"floaterMovement");this.patrolMovement=new yM,this.chaserMovement=new SM,this.ambusherMovement=new wM,this.floaterMovement=new bM}updateMonsterBehaviors(a,l,f){l.monsters&&l.monsters.forEach(h=>{if(!(!h.isActive||h.isFrozen)){switch(h.type){case _n.HORIZONTAL_PATROL:case _n.VERTICAL_PATROL:this.patrolMovement.update(h,a,l,f);break;case _n.CHASER:this.chaserMovement.update(h,a,l,f);break;case _n.AMBUSHER:this.ambusherMovement.update(h,a,l,f);break;case _n.FLOATER:this.floaterMovement.update(h,a,l,f);break}hi.clampToBoundaries(h)}})}}class CM{constructor(){be(this,"levelStartTime",0);be(this,"scheduledSpawns",[]);be(this,"behaviorManager");be(this,"pauseState");be(this,"lastUpdateTime",0);be(this,"updateInterval",16);this.behaviorManager=new xM,this.pauseState=this.createPauseState()}initializeLevel(a){this.levelStartTime=Date.now(),this.scheduledSpawns=this.createScheduledSpawns(a),this.resetPauseState(),Ge.flow(`Level initialized with ${a.length} spawn points`),this.scheduledSpawns.forEach((l,f)=>{const h=(l.scheduledTime-this.levelStartTime)/1e3;try{const y=l.spawnPoint.createMonster();Ge.debug(`Scheduled spawn ${f}: ${y.type} at ${h.toFixed(1)}s`)}catch(y){Ge.error(`Failed to create monster for spawn ${f}: ${y}`)}})}createScheduledSpawns(a){return a.map((l,f)=>({id:`spawn-${f}`,spawnPoint:l,scheduledTime:this.levelStartTime+l.spawnDelay,executed:!1}))}resetPauseState(){this.pauseState=this.createPauseState()}createPauseState(){return{isPaused:!1,pauseStartTime:0,totalPausedTime:0,pauseReasons:new Set}}update(a,l){if(this.pauseState.isPaused)return;const f=Ft.getState(),h=this.getAdjustedTime();Math.floor(h/5e3)!==Math.floor((h-16)/5e3)&&Ge.debug(`SpawnManager.update() called at ${(h/1e3).toFixed(1)}s, paused: ${this.pauseState.isPaused}, spawns: ${this.scheduledSpawns.length}`),this.processSpawns(a,f),f.monsters.some(y=>y.isActive)&&this.behaviorManager.updateMonsterBehaviors(a,f,l)}processSpawns(a,l){const f=this.getAdjustedTime(),h=this.getAdjustedAbsoluteTime(),y=[];if(Math.floor(f/5e3)!==Math.floor((f-16)/5e3)){const v=this.scheduledSpawns.filter(C=>!C.executed);Ge.info(`Spawn check at ${(f/1e3).toFixed(1)}s: ${v.length} pending spawns`),v.forEach(C=>{const x=(C.scheduledTime-h)/1e3;try{const R=C.spawnPoint.createMonster();Ge.info(` - ${R.type} in ${x.toFixed(1)}s (scheduled: ${C.scheduledTime}, current: ${h})`)}catch(R){Ge.error(` - Failed to create monster: ${R}`)}})}for(const v of this.scheduledSpawns)!v.executed&&h>=v.scheduledTime&&(y.push(v),Ge.info(`Spawn ready to execute: ${v.spawnPoint.createMonster().type} (scheduled at ${(v.scheduledTime/1e3).toFixed(1)}s, current time ${(f/1e3).toFixed(1)}s)`));y.length>0&&(Ge.info(`Executing ${y.length} spawns at ${(f/1e3).toFixed(1)}s`),this.executeSpawns(y,a,l))}executeSpawns(a,l,f){const h=[];for(const y of a)try{const v=this.createMonster(y.spawnPoint);h.push(v),y.executed=!0,Ge.monster(`Spawned ${v.type} at (${v.x}, ${v.y})`)}catch(v){Ge.error(`Failed to spawn monster: ${v}`)}h.length>0&&(this.addMonstersToGameState(h,f),Ge.debug(`Added ${h.length} monsters to game state`))}createMonster(a){const l=a.createMonster();return a.color&&(l.color=a.color),l.originalSpawnPoint||(l.originalSpawnPoint={x:l.x,y:l.y}),l}addMonstersToGameState(a,l){if(l.updateMonsters){const h=[...l.monsters||[],...a];l.updateMonsters(h)}else Ge.warn("Game state updateMonsters method is not available")}pause(a="default"){this.pauseState.isPaused||(this.pauseState.isPaused=!0,this.pauseState.pauseStartTime=Date.now()),this.pauseState.pauseReasons.add(a),Ge.pause(`Spawning paused (${a})`),Ge.debug(`SpawnManager pause state: ${this.pauseState.isPaused}, reasons: ${Array.from(this.pauseState.pauseReasons).join(", ")}`)}resume(a="default"){if(this.pauseState.pauseReasons.delete(a),this.pauseState.pauseReasons.size===0&&this.pauseState.isPaused){const l=Date.now()-this.pauseState.pauseStartTime;this.pauseState.totalPausedTime+=l,this.pauseState.isPaused=!1,Ge.pause(`Spawning resumed (paused for ${(l/1e3).toFixed(1)}s)`)}Ge.debug(`SpawnManager pause state: ${this.pauseState.isPaused}, reasons: ${Array.from(this.pauseState.pauseReasons).join(", ")}`)}isPaused(){return this.pauseState.isPaused}getPauseStatus(){return{isPaused:this.pauseState.isPaused,pauseReasons:Array.from(this.pauseState.pauseReasons),totalPausedTime:this.pauseState.totalPausedTime}}getAdjustedTime(){return Date.now()-this.levelStartTime-this.pauseState.totalPausedTime}getAdjustedAbsoluteTime(){return this.levelStartTime+this.getAdjustedTime()}removeMonster(a){a.isActive=!1;const l=Ft.getState();if(l.updateMonsters){const h=(l.monsters||[]).filter(y=>y!==a);l.updateMonsters(h)}}reset(){this.levelStartTime=Date.now(),this.scheduledSpawns.forEach(a=>a.executed=!1),this.resetPauseState(),this.lastUpdateTime=0}getSpawnStatus(){const a=this.scheduledSpawns.filter(h=>h.executed).length,l=this.scheduledSpawns.filter(h=>!h.executed).length,f=this.getAdjustedTime();return{totalSpawnPoints:this.scheduledSpawns.length,executedCount:a,pendingCount:l,isPaused:this.pauseState.isPaused,pauseReasons:Array.from(this.pauseState.pauseReasons),adjustedTime:f/1e3,levelStartTime:this.levelStartTime,totalPausedTime:this.pauseState.totalPausedTime}}getSpawnTimeRemaining(a){if(a.executed)return 0;const l=this.getAdjustedAbsoluteTime();return Math.max(0,a.scheduledTime-l)}getPendingSpawns(){return this.scheduledSpawns.filter(a=>!a.executed)}setUpdateInterval(a){this.updateInterval=a,Ge.debug(`OptimizedSpawnManager: Update interval set to ${a}ms`)}cleanup(){this.scheduledSpawns=[],this.resetPauseState(),this.lastUpdateTime=0}}class EM{constructor(){be(this,"audioContext",null);be(this,"backgroundMusicGain",null);be(this,"isBackgroundMusicPlaying",!1);be(this,"backgroundMusicBuffer",null);be(this,"backgroundMusicSource",null);this.initializeAudioContext(),this.loadBackgroundMusic()}initializeAudioContext(){try{this.audioContext=new(window.AudioContext||window.webkitAudioContext),this.backgroundMusicGain=this.audioContext.createGain(),this.backgroundMusicGain.connect(this.audioContext.destination),this.updateAudioVolumes()}catch(a){Pe.warn("Web Audio API not supported:",a)}}async loadBackgroundMusic(){if(this.audioContext)try{const l=await(await fetch(`${Fs.audio}/background-music.wav`)).arrayBuffer();this.backgroundMusicBuffer=await this.audioContext.decodeAudioData(l)}catch(a){Pe.warn("Failed to load background music:",a)}}ensureAudioContext(){this.audioContext?.state==="suspended"&&this.audioContext.resume()}playSound(a,l){switch(this.ensureAudioContext(),a){case ua.BOMB_COLLECT:this.playBombCollectSound();break;case ua.MONSTER_HIT:this.playMonsterHitSound();break;case ua.MAP_CLEARED:this.playMapClearedSound();break;case ua.BONUS_SCREEN:Pe.audio("Bonus sound"),this.playBonusSound();break;case ua.COIN_COLLECT:this.playCoinCollectSound();break;case ua.POWER_COIN_ACTIVATE:this.playPowerCoinActivateSound();break;case ua.BACKGROUND_MUSIC:l===ot.PLAYING&&this.startBackgroundMusic();break;default:Pe.debug(`Audio event ${a} not implemented yet`)}}stopBackgroundMusic(){if(this.isBackgroundMusicPlaying=!1,this.backgroundMusicSource){try{this.backgroundMusicSource.stop()}catch{}this.backgroundMusicSource=null}}playBombCollectSound(){if(!this.audioContext)return;const a=this.audioContext.createOscillator(),l=this.audioContext.createGain();a.connect(l),l.connect(this.audioContext.destination),a.type="square",a.frequency.setValueAtTime(800,this.audioContext.currentTime),a.frequency.exponentialRampToValueAtTime(1200,this.audioContext.currentTime+.1);const f=this.getSFXVolume();l.gain.setValueAtTime(.3*f,this.audioContext.currentTime),l.gain.exponentialRampToValueAtTime(.01,this.audioContext.currentTime+.2),a.start(),a.stop(this.audioContext.currentTime+.2)}playMonsterHitSound(){if(!this.audioContext)return;const a=this.audioContext.createOscillator(),l=this.audioContext.createGain();a.connect(l),l.connect(this.audioContext.destination),a.type="sawtooth",a.frequency.setValueAtTime(200,this.audioContext.currentTime),a.frequency.exponentialRampToValueAtTime(50,this.audioContext.currentTime+.3);const f=this.getSFXVolume();l.gain.setValueAtTime(.4*f,this.audioContext.currentTime),l.gain.exponentialRampToValueAtTime(.01,this.audioContext.currentTime+.3),a.start(),a.stop(this.audioContext.currentTime+.3)}playMapClearedSound(){if(!this.audioContext)return;const a=[523.25,587.33,659.25,698.46,783.99];let l=this.audioContext.currentTime;const f=this.getSFXVolume();a.forEach((h,y)=>{const v=this.audioContext.createOscillator(),C=this.audioContext.createGain();v.connect(C),C.connect(this.audioContext.destination),v.type="triangle",v.frequency.setValueAtTime(h,l),C.gain.setValueAtTime(.3*f,l),C.gain.exponentialRampToValueAtTime(.01,l+.3),v.start(l),v.stop(l+.3),l+=.15})}playBonusSound(){if(!this.audioContext)return;const a=[659.25,783.99,1046.5,783.99,1046.5];let l=this.audioContext.currentTime;const f=this.getSFXVolume();a.forEach((h,y)=>{const v=this.audioContext.createOscillator(),C=this.audioContext.createGain();v.connect(C),C.connect(this.audioContext.destination),v.type="sine",v.frequency.setValueAtTime(h,l),C.gain.setValueAtTime(.2*f,l),C.gain.exponentialRampToValueAtTime(.01,l+.4),v.start(l),v.stop(l+.4),l+=.2})}playCoinCollectSound(){if(!this.audioContext)return;const a=this.audioContext.createOscillator(),l=this.audioContext.createGain();a.connect(l),l.connect(this.audioContext.destination),a.type="sine",a.frequency.setValueAtTime(1e3,this.audioContext.currentTime),a.frequency.exponentialRampToValueAtTime(1500,this.audioContext.currentTime+.1);const f=this.getSFXVolume();l.gain.setValueAtTime(.3*f,this.audioContext.currentTime),l.gain.exponentialRampToValueAtTime(.01,this.audioContext.currentTime+.15),a.start(),a.stop(this.audioContext.currentTime+.15)}playPowerCoinActivateSound(){if(!this.audioContext)return;const a=this.audioContext.currentTime,l=this.getSFXVolume(),f=this.audioContext.createOscillator(),h=this.audioContext.createGain();f.connect(h),h.connect(this.audioContext.destination),f.type="square",f.frequency.setValueAtTime(200,a),f.frequency.exponentialRampToValueAtTime(400,a+.3),h.gain.setValueAtTime(.2*l,a),h.gain.exponentialRampToValueAtTime(.01,a+.5),f.start(a),f.stop(a+.5);const y=this.audioContext.createOscillator(),v=this.audioContext.createGain();y.connect(v),v.connect(this.audioContext.destination),y.type="sine",y.frequency.setValueAtTime(800,a),y.frequency.exponentialRampToValueAtTime(1200,a+.2),v.gain.setValueAtTime(.15*l,a),v.gain.exponentialRampToValueAtTime(.01,a+.3),y.start(a),y.stop(a+.3)}startBackgroundMusic(){!this.audioContext||this.isBackgroundMusicPlaying||!this.backgroundMusicBuffer||(this.isBackgroundMusicPlaying=!0,this.playBackgroundMusicFile())}playBackgroundMusicFile(){if(!(!this.audioContext||!this.backgroundMusicGain||!this.backgroundMusicBuffer||!this.isBackgroundMusicPlaying))try{this.backgroundMusicSource=this.audioContext.createBufferSource(),this.backgroundMusicSource.buffer=this.backgroundMusicBuffer,this.backgroundMusicSource.connect(this.backgroundMusicGain),this.backgroundMusicSource.loop=!0,this.backgroundMusicSource.onended=()=>{this.isBackgroundMusicPlaying&&setTimeout(()=>{this.isBackgroundMusicPlaying&&this.playBackgroundMusicFile()},100)},this.backgroundMusicSource.start()}catch(a){Pe.warn("Failed to play background music file:",a)}}cleanup(){this.stopBackgroundMusic(),this.audioContext&&this.audioContext.close()}updateAudioVolumes(){const a=Ft.getState().audioSettings;if(this.backgroundMusicGain){const l=a.masterMuted||a.musicMuted?0:a.masterVolume/100*(a.musicVolume/100);this.backgroundMusicGain.gain.value=l}}getSFXVolume(){const a=Ft.getState().audioSettings;return a.masterMuted||a.sfxMuted?0:a.masterVolume/100*(a.sfxVolume/100)}updateVolumes(){this.updateAudioVolumes()}}class TM{constructor(a){be(this,"sprite");be(this,"currentState");be(this,"wasInAir",!1);be(this,"isLanding",!1);be(this,"isMapCleared",!1);be(this,"mapClearedFallComplete",!1);this.sprite=a,this.currentState={isGrounded:!0,isMoving:!1,isFloating:!1,gameState:"",moveDirection:"none",lastDirection:"right"}}update(a,l,f=!1,h=""){const y={isGrounded:a,isMoving:l!==0,isFloating:f,gameState:h,moveDirection:l>0?"right":l<0?"left":"none",lastDirection:this.getLastDirection()};h==="MAP_CLEARED"&&!this.isMapCleared&&(this.isMapCleared=!0,this.mapClearedFallComplete=!1,a&&(this.mapClearedFallComplete=!0)),this.isLanding&&this.sprite.currentAnimation.name.includes("land")&&this.sprite.currentFrameIndex>=this.sprite.currentAnimation.frames.length-1&&(this.isLanding=!1,this.isMapCleared&&(this.mapClearedFallComplete=!0));const v=this.wasInAir&&a;this.currentState=y,this.wasInAir=!a,v&&!this.isLanding&&this.isMapCleared?this.setLandingAnimation():v&&!this.isLanding?this.setLandingAnimation():this.isLanding||this.updateAnimation()}getLastDirection(){return this.sprite.currentAnimation.name.includes("right")?"right":"left"}updateAnimation(){const{isGrounded:a,isMoving:l,isFloating:f,gameState:h,moveDirection:y,lastDirection:v}=this.currentState;this.isMapCleared?this.mapClearedFallComplete?this.sprite.setAnimation("ghost-complete"):a?(this.mapClearedFallComplete=!0,this.sprite.setAnimation("ghost-complete")):this.handleAirAnimations(y,v):h==="MAP_CLEARED"?(this.isMapCleared=!0,this.mapClearedFallComplete=!1,this.handleAirAnimations(y,v)):f?this.handleFloatAnimations(y,v):a?l?this.handleWalkAnimations(y):this.handleIdleAnimations(v):this.handleAirAnimations(y,v)}handleAirAnimations(a,l){if(a==="right")this.sprite.setAnimationPreserveFrame("jump-right");else if(a==="left")this.sprite.setAnimationPreserveFrame("jump-left");else{const f=l==="right"?"jump-right":"jump-left";this.sprite.setAnimationPreserveFrame(f)}}handleFloatAnimations(a,l){a==="right"?this.sprite.setAnimation("float-right"):a==="left"?this.sprite.setAnimation("float-left"):this.sprite.setAnimation("float-stationary")}handleWalkAnimations(a){a==="right"?this.sprite.setAnimation("walk-right"):a==="left"&&this.sprite.setAnimation("walk-left")}handleIdleAnimations(a){const l=a==="right"?"idle-right":"idle-left";this.sprite.setAnimation(l)}setLandingAnimation(){const{lastDirection:a}=this.currentState,l=a==="right"?"land-right":"land-left";this.sprite.setAnimation(l),this.isLanding=!0}getCurrentState(){return{...this.currentState}}reset(){this.isMapCleared=!1,this.mapClearedFallComplete=!1,this.isLanding=!1,this.wasInAir=!1}}class RM{constructor(a){be(this,"inputManager");be(this,"collisionManager");be(this,"renderManager");be(this,"monsterSpawnManager");be(this,"audioManager");be(this,"animationController");be(this,"scalingManager");be(this,"monsterRespawnManager");be(this,"animationFrameId",null);be(this,"lastTime",0);be(this,"isBackgroundMusicPlaying",!1);be(this,"previousGameState",null);be(this,"devModeInitialized",!1);be(this,"boundGameLoop");be(this,"wasGroundedWhenMapCleared",!1);be(this,"mapStartTime",0);this.inputManager=new lM,this.collisionManager=new sM,this.renderManager=new vM(a),this.audioManager=new EM,this.animationController=new TM(Sp),this.scalingManager=ca.getInstance(),this.monsterRespawnManager=zv.getInstance(),this.monsterSpawnManager=new CM,this.boundGameLoop=this.gameLoop.bind(this);const l=Ft.getState();"setAudioManager"in l&&l.setAudioManager(this.audioManager)}start(){{const a=Ft.getState();a.resetGame(),"setGameStartTime"in a&&a.setGameStartTime(Date.now()),this.loadCurrentLevel()}zR(),this.gameLoop(0)}initializeDevMode(){const a=Ft.getState();a.resetGameState(),a.addScore(Ya.MOCK_DATA.score);const l=a.lives,f=Ya.MOCK_DATA.lives;if(f<l){for(let y=0;y<l-f;y++)a.loseLife();a.setState(ot.MENU)}const h=Ya.TARGET_LEVEL;{a.resetLevelState();for(let y=1;y<h;y++)a.nextLevel()}switch(this.loadCurrentLevel(),Ya.TARGET_STATE){case"START_MENU":a.setState(ot.MENU),a.setMenuType(Pt.START);break;case"COUNTDOWN":a.setState(ot.COUNTDOWN),a.setMenuType(Pt.COUNTDOWN);break;case"PLAYING":a.setState(ot.PLAYING),a.setMenuType(Pt.IN_GAME);break;case"PAUSED":a.setState(ot.PAUSED),a.setMenuType(Pt.PAUSE);break;case"SETTINGS":a.setState(ot.MENU),a.setMenuType(Pt.SETTINGS);break;case"BONUS":a.setState(ot.BONUS),a.setMenuType(Pt.BONUS),a.resetBombState();for(let y=0;y<Ya.MOCK_DATA.correctOrderCount;y++)a.collectBomb(y+1);break;case"VICTORY":a.setState(ot.VICTORY),a.setMenuType(Pt.VICTORY);break;case"GAME_OVER":a.setState(ot.GAME_OVER),a.setMenuType(Pt.GAME_OVER);break;default:Pe.warn(`Unknown DEV_MODE target state: ${Ya.TARGET_STATE}`),a.setState(ot.MENU),a.setMenuType(Pt.START)}Pe.dev(`DEV_MODE: Setting multiplier to ${Ya.MOCK_DATA.multiplier}x with ${Ya.MOCK_DATA.multiplierScore} progress`),a.setMultiplier(Ya.MOCK_DATA.multiplier,Ya.MOCK_DATA.multiplierScore),Pe.dev(`DEV_MODE initialized with state: ${Ya.TARGET_STATE}, level: ${Ya.TARGET_LEVEL}`),this.devModeInitialized=!0}stop(){this.animationFrameId&&(cancelAnimationFrame(this.animationFrameId),this.animationFrameId=null),this.audioManager.stopBackgroundMusic(),this.isBackgroundMusicPlaying=!1}loadCurrentLevel(){const a=Ft.getState(),l=a.currentLevel;if(l<=vf.length){const f=vf[l-1];if(a.initializeLevel(f),a.clearAllFloatingTexts(),this.animationController.reset(),this.scalingManager.startMap(),this.renderManager.loadMapBackground(f.name),f.monsterSpawnPoints?(Pe.info(`GameManager: Initializing MonsterSpawnManager with ${f.monsterSpawnPoints.length} spawn points`),this.monsterSpawnManager.initializeLevel(f.monsterSpawnPoints)):(Pe.info("GameManager: Initializing MonsterSpawnManager with no spawn points"),this.monsterSpawnManager.initializeLevel([])),this.monsterRespawnManager.reset(),f.monsters){const h=f.monsters.map(y=>({...y,originalSpawnPoint:{x:y.x,y:y.y}}));a.updateMonsters(h),Pe.debug(`Set up original spawn points for ${h.length} static monsters`)}a.resetCoinState(),Pe.debug("Coins reset when loading new level"),this.mapStartTime=Date.now()}}gameLoop(a){const l=a-this.lastTime;this.lastTime=a;const f=Ft.getState();if(this.handleBackgroundMusic(f.currentState),this.handleDifficultyPause(f.currentState),f.currentState===ot.MENU&&!f.currentMap&&this.loadCurrentLevel(),f.currentState===ot.BONUS&&f.bonusAnimationComplete&&(setTimeout(()=>{this.proceedToNextLevel()},2e3),f.setBonusAnimationComplete(!1)),f.currentState===ot.PLAYING)this.update(l),Sp.update(l),this.handleCollisions(),this.checkWinCondition();else if(f.currentState===ot.MAP_CLEARED){Sp.update(l);const h=f.player;if(!this.wasGroundedWhenMapCleared){const y={...h};y.velocityY+=h.gravity,y.y+=y.velocityY;const v=f.ground;if(v){const C=this.collisionManager.checkPlayerGroundCollision(y,v);C.hasCollision&&C.normal&&C.penetration&&C.normal.y===-1&&(y.y=y.y-C.penetration,y.velocityY=0,y.isGrounded=!0)}f.updatePlayer(y)}this.animationController.update(h.isGrounded,0,!1,f.currentState)}this.render(),this.animationFrameId=requestAnimationFrame(this.boundGameLoop)}handleDifficultyPause(a){a===ot.PLAYING?(this.scalingManager.isCurrentlyPausedByPowerMode()||this.scalingManager.resume(),this.scalingManager.resumeAllMonsterScaling(),this.monsterSpawnManager.resume(),this.monsterRespawnManager.resume()):(this.scalingManager.pause(),this.scalingManager.pauseAllMonsterScaling(),this.monsterSpawnManager.pause(),this.monsterRespawnManager.pause())}handleBackgroundMusic(a){const l=a===ot.PLAYING;this.previousGameState!==a&&Pe.audio(`Game state changed: ${this.previousGameState} -> ${a}`),l&&!this.isBackgroundMusicPlaying&&(Pe.audio("Starting background music"),this.audioManager.playSound(ua.BACKGROUND_MUSIC,a),this.isBackgroundMusicPlaying=!0),!l&&this.isBackgroundMusicPlaying&&(Pe.audio("Stopping background music"),this.audioManager.stopBackgroundMusic(),this.isBackgroundMusicPlaying=!1),this.previousGameState=a}update(a){this.updatePlayer(a),this.updateMonsters(a),this.updateCoins(a)}updatePlayer(a){const l=Ft.getState();let f={...l.player};if(this.inputManager.isKeyPressed("p")||this.inputManager.isKeyPressed("P")){l.currentState===ot.PLAYING&&(l.setState(ot.PAUSED),l.setMenuType(Pt.PAUSE));return}let h=0;this.inputManager.isKeyPressed("ArrowLeft")&&(h=-f.moveSpeed),this.inputManager.isKeyPressed("ArrowRight")&&(h=f.moveSpeed),this.animationController.update(f.isGrounded,h,f.isFloating,l.currentState);const y=this.inputManager.isKeyPressed("ArrowUp"),v=this.inputManager.isShiftPressed(),C=this.inputManager.isKeyPressed(" ")||this.inputManager.isKeyPressed("Space");if(y&&f.isGrounded&&!f.isJumping){f.isJumping=!0,f.jumpStartTime=Date.now(),f.isGrounded=!1;const _=v?H.SUPER_JUMP_POWER:H.JUMP_POWER;f.velocityY=-_*.6}if(y&&f.isJumping&&f.velocityY<0){const _=Date.now()-f.jumpStartTime;if(_<=H.MAX_JUMP_DURATION){const k=Math.min(_/H.MAX_JUMP_DURATION,1),z=-(v?H.SUPER_JUMP_POWER:H.JUMP_POWER)*(.6+.4*k);f.velocityY>z&&(f.velocityY=z)}}(!y||Date.now()-f.jumpStartTime>H.MAX_JUMP_DURATION)&&f.isJumping&&(f.isJumping=!1),C&&!f.isGrounded?(f.isFloating||(f.velocityY=0),f.isFloating=!0):f.isFloating=!1,f.velocityX=h,f.x+=f.velocityX;const x=f.isFloating&&f.velocityY>=0?f.floatGravity:f.gravity;f.velocityY+=x,f.y+=f.velocityY;const R={width:H.CANVAS_WIDTH,height:H.CANVAS_HEIGHT},A=this.collisionManager.resolveBoundaryCollision(f,R);if(A.fellOffScreen){l.loseLife();return}f=A.player,f.isGrounded=!1,l.updatePlayer(f)}updateMonsters(a){const l=Date.now(),f=(l-this.mapStartTime)/1e3;Math.floor(f/5)!==Math.floor((f-a/1e3)/5)&&Pe.debug(`GameManager.updateMonsters() called at ${f.toFixed(1)}s`),this.monsterSpawnManager.update(l,a);const h=this.monsterRespawnManager.update(),y=Ft.getState();let v=y.monsters;h.length>0&&(v=[...v,...h],Pe.debug(`Added ${h.length} respawned monsters to active list: ${h.map(x=>x.type).join(", ")}`));const C=this.monsterRespawnManager.getDeadMonsterCount();C>0&&Pe.debug(`Respawn system: ${C} monsters waiting to respawn`),y.updateMonsters(v)}updateCoins(a){const l=Ft.getState(),f=l.currentMap?.platforms||[],h=l.currentMap?.ground,y=l.coinManager;h&&y&&(y.checkSpawnConditions(l),y.update(f,h,l),l.setCoins(y.getCoins()),l.updateMonsterStates(l.monsters)),l.updateFloatingTexts()}handleCollisions(){const a=Ft.getState(),{player:l,platforms:f,bombs:h,monsters:y,ground:v,coins:C}=a,x=this.collisionManager.checkPlayerPlatformCollision(l,f);if(x.hasCollision&&x.normal&&x.penetration){const k={...l};x.normal.y===-1?(k.y=k.y-x.penetration,k.velocityY=0,k.isGrounded=!0):x.normal.y===1?(k.y=k.y+x.penetration,k.velocityY=0):x.normal.x===1?(k.x=k.x+x.penetration,k.velocityX=0):x.normal.x===-1&&(k.x=k.x-x.penetration,k.velocityX=0),a.updatePlayer(k)}if(v){const k=this.collisionManager.checkPlayerGroundCollision(l,v);if(k.hasCollision&&k.normal&&k.penetration){const N={...l};k.normal.y===-1?(N.y=N.y-k.penetration,N.velocityY=0,N.isGrounded=!0):k.normal.y===1?(N.y=N.y+k.penetration,N.velocityY=0):k.normal.x===1?(N.x=N.x+k.penetration,N.velocityX=0):k.normal.x===-1&&(N.x=N.x-k.penetration,N.velocityX=0),a.updatePlayer(N)}}const R=this.collisionManager.checkPlayerBombCollision(l,h);if(R){this.audioManager.playSound(ua.BOMB_COLLECT);const k=a.collectBomb(R.order);k&&k.isCorrect&&a.onFirebombCollected()}const A=this.collisionManager.checkPlayerCoinCollision(l,C);A&&(this.audioManager.playSound(ua.COIN_COLLECT),a.collectCoin(A),A.type==="POWER"&&this.audioManager.playSound(ua.POWER_COIN_ACTIVATE));const _=this.collisionManager.checkPlayerMonsterCollision(l,y);if(_)if(a.activeEffects.powerMode){const k=a.coinManager?.calculateMonsterKillPoints(a.multiplier)||H.MONSTER_KILL_POINTS*a.multiplier;if(a.addScore(k),a.addFloatingText){const N=k.toString();a.addFloatingText(N,_.x+_.width/2,_.y+_.height/2,1e3,"#fff",15)}a.coinManager&&a.coinManager.onPointsEarned(k,!1),Pe.debug(`Monster killed during power mode: ${k} points`),this.audioManager.playSound(ua.COIN_COLLECT),this.monsterRespawnManager.killMonster(_)}else this.audioManager.playSound(ua.MONSTER_HIT),this.handlePlayerDeath()}handlePlayerDeath(){const a=Ft.getState();a.lives<=1?a.loseLife():(a.loseLife(),this.respawnPlayer())}respawnPlayer(){const a=Ft.getState(),l=a.currentMap;if(l){a.clearAllFloatingTexts(),this.scalingManager.resetOnDeath(),Pe.debug("ScalingManager: Reset difficulty to base values after player death"),a.resetCoinState(),Pe.debug("Coins reset after player death"),a.setPlayerPosition(l.playerStart.x,l.playerStart.y);const f=l.monsters.map(h=>({...h,x:h.patrolStartX||h.x,direction:1}));a.updateMonsters(f),this.animationController.reset(),this.renderManager.loadMapBackground(l.name),a.setMenuType(Pt.COUNTDOWN),a.setState(ot.COUNTDOWN),setTimeout(()=>{a.setState(ot.PLAYING)},3e3)}}checkWinCondition(){const a=Ft.getState();a.collectedBombs.length===H.TOTAL_BOMBS&&(Pe.game("Level completed - proceeding to next phase"),this.wasGroundedWhenMapCleared=a.player.isGrounded,this.audioManager.playSound(ua.MAP_CLEARED),a.setState(ot.MAP_CLEARED),setTimeout(()=>{this.proceedAfterMapCleared()},3e3))}proceedAfterMapCleared(){const a=Ft.getState(),l=H.BONUS_POINTS[a.correctOrderCount]||0,f=Date.now()-this.mapStartTime,h=a.getCoinStats(),y=h.totalCoinsCollected,v=h.totalPowerCoinsCollected;if(a.clearAllFloatingTexts(),a.resetEffects(),a.resetCoinState(),Pe.debug("Coins reset when map is cleared"),a.currentMap){const C={level:a.currentLevel,mapName:a.currentMap.name,correctOrderCount:a.correctOrderCount,totalBombs:H.TOTAL_BOMBS,score:a.score,bonus:l,hasBonus:l>0,coinsCollected:y,powerModeActivations:v,completionTime:f,timestamp:Date.now(),lives:a.lives,multiplier:a.multiplier};a.addLevelResult(C);const x={mapName:a.currentMap.name,level:a.currentLevel,correctOrderCount:a.correctOrderCount,totalBombs:H.TOTAL_BOMBS,score:a.score,bonus:l,hasBonus:l>0,timestamp:Date.now(),lives:a.lives,multiplier:a.multiplier,completionTime:f,coinsCollected:y,powerModeActivations:v};sx(x)}l>0?(a.setMenuType(Pt.BONUS),a.setState(ot.BONUS),this.audioManager.playSound(ua.BONUS_SCREEN),a.addScore(l),a.coinManager&&a.coinManager.onPointsEarned(l,!0)):this.proceedToNextLevel()}proceedToNextLevel(){const a=Ft.getState();a.currentLevel+1<=vf.length?(a.resetEffects(),a.resetCoinState(),Pe.debug("Coins reset when proceeding to next level"),a.nextLevel(),this.loadCurrentLevel(),a.setMenuType(Pt.COUNTDOWN),a.setState(ot.COUNTDOWN),setTimeout(()=>{a.setState(ot.PLAYING)},3e3)):(a.setState(ot.VICTORY),a.setMenuType(Pt.VICTORY))}continueToNextLevel(){this.proceedToNextLevel()}calculateBonus(a){return H.BONUS_POINTS[a]||0}render(){const a=Ft.getState();this.renderManager.render(a.player,a.platforms,a.bombs,a.monsters,a.ground,a.coins,a.floatingTexts,a.coinManager,this.monsterSpawnManager,a.currentMap,a)}cleanup(){this.stop(),this.inputManager.cleanup(),this.audioManager.cleanup()}getPauseStatus(){return{gameState:Ft.getState().currentState,scalingManager:this.scalingManager.getPauseStatus(),spawnManager:this.monsterSpawnManager.getPauseStatus(),respawnManager:{isPaused:this.monsterRespawnManager.isPaused()}}}getSpawnStatus(){return this.monsterSpawnManager.getSpawnStatus()}getSpawnManager(){return this.monsterSpawnManager}}const bp=()=>{const[c,a]=Q.useState(!1),l=Q.useCallback(x=>{const R=new CustomEvent("sigurd-startup-fullscreen-change",{detail:{isFullscreen:x,timestamp:Date.now(),gameId:"sigurd-startup-game"},bubbles:!0,cancelable:!0});window.dispatchEvent(R),document.dispatchEvent(R),Pe.debug(`Fullscreen event dispatched: ${x?"entered":"exited"}`)},[]),f=()=>!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled),h=()=>document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement,y=Q.useCallback(async x=>{if(!f())return console.warn("Fullscreen is not supported in this browser"),!1;const R=x||document.documentElement;try{return R.requestFullscreen?await R.requestFullscreen():R.webkitRequestFullscreen?await R.webkitRequestFullscreen():R.mozRequestFullScreen?await R.mozRequestFullScreen():R.msRequestFullscreen&&await R.msRequestFullscreen(),!0}catch(A){return console.error("Error entering fullscreen:",A),!1}},[]),v=Q.useCallback(async()=>{try{return document.exitFullscreen?await document.exitFullscreen():document.webkitExitFullscreen?await document.webkitExitFullscreen():document.mozCancelFullScreen?await document.mozCancelFullScreen():document.msExitFullscreen&&await document.msExitFullscreen(),!0}catch(x){return console.error("Error exiting fullscreen:",x),!1}},[]),C=Q.useCallback(async x=>{c?await v()&&(a(!1),l(!1)):await y(x)&&(a(!0),l(!0))},[c,y,v,l]);return Q.useEffect(()=>{const x=()=>{const A=!!h();A!==c&&(a(A),l(A))};return document.addEventListener("fullscreenchange",x),document.addEventListener("webkitfullscreenchange",x),document.addEventListener("mozfullscreenchange",x),document.addEventListener("MSFullscreenChange",x),x(),()=>{document.removeEventListener("fullscreenchange",x),document.removeEventListener("webkitfullscreenchange",x),document.removeEventListener("mozfullscreenchange",x),document.removeEventListener("MSFullscreenChange",x)}},[c,l]),{isFullscreen:c,isFullscreenSupported:f(),enterFullscreen:y,exitFullscreen:v,toggleFullscreen:C}},MM=({className:c=""})=>{const a=Q.useRef(null),l=Q.useRef(null),{isFullscreen:f}=bp(),[h,y]=Q.useState({});return Q.useEffect(()=>{const v=a.current;if(v)return v.width=H.CANVAS_WIDTH,v.height=H.CANVAS_HEIGHT,l.current=new RM(v),l.current.start(),()=>{l.current&&l.current.cleanup()}},[]),Q.useEffect(()=>{const v=()=>{if(!f){y({imageRendering:"crisp-edges"});return}const C=H.CANVAS_WIDTH/H.CANVAS_HEIGHT,x=window.innerWidth,R=window.innerHeight,A=x/R;let _,k;A>C?(k=R*.9,_=k*C):(_=x*.9,k=_/C),y({width:`${_}px`,height:`${k}px`,imageRendering:"crisp-edges"})};return v(),window.addEventListener("resize",v),()=>{window.removeEventListener("resize",v)}},[f]),I.jsx("div",{className:"relative",children:I.jsx("canvas",{ref:a,className:`shadow-black/10 shadow-lg rounded-lg ${c}`,style:h})})};function Sx(c,a){if(typeof c=="function")return c(a);c!=null&&(c.current=a)}function wx(...c){return a=>{let l=!1;const f=c.map(h=>{const y=Sx(h,a);return!l&&typeof y=="function"&&(l=!0),y});if(l)return()=>{for(let h=0;h<f.length;h++){const y=f[h];typeof y=="function"?y():Sx(c[h],null)}}}}function ju(...c){return Q.useCallback(wx(...c),c)}function bx(c){const a=kM(c),l=Q.forwardRef((f,h)=>{const{children:y,...v}=f,C=Q.Children.toArray(y),x=C.find(OM);if(x){const R=x.props.children,A=C.map(_=>_===x?Q.Children.count(R)>1?Q.Children.only(null):Q.isValidElement(R)?R.props.children:null:_);return I.jsx(a,{...v,ref:h,children:Q.isValidElement(R)?Q.cloneElement(R,void 0,A):null})}return I.jsx(a,{...v,ref:h,children:y})});return l.displayName=`${c}.Slot`,l}var _M=bx("Slot");function kM(c){const a=Q.forwardRef((l,f)=>{const{children:h,...y}=l;if(Q.isValidElement(h)){const v=DM(h),C=NM(y,h.props);return h.type!==Q.Fragment&&(C.ref=f?wx(f,v):v),Q.cloneElement(h,C)}return Q.Children.count(h)>1?Q.Children.only(null):null});return a.displayName=`${c}.SlotClone`,a}var xx=Symbol("radix.slottable");function AM(c){const a=({children:l})=>I.jsx(I.Fragment,{children:l});return a.displayName=`${c}.Slottable`,a.__radixId=xx,a}function OM(c){return Q.isValidElement(c)&&typeof c.type=="function"&&"__radixId"in c.type&&c.type.__radixId===xx}function NM(c,a){const l={...a};for(const f in a){const h=c[f],y=a[f];/^on[A-Z]/.test(f)?h&&y?l[f]=(...C)=>{const x=y(...C);return h(...C),x}:h&&(l[f]=h):f==="style"?l[f]={...h,...y}:f==="className"&&(l[f]=[h,y].filter(Boolean).join(" "))}return{...c,...l}}function DM(c){let a=Object.getOwnPropertyDescriptor(c.props,"ref")?.get,l=a&&"isReactWarning"in a&&a.isReactWarning;return l?c.ref:(a=Object.getOwnPropertyDescriptor(c,"ref")?.get,l=a&&"isReactWarning"in a&&a.isReactWarning,l?c.props.ref:c.props.ref||c.ref)}function Cx(c){var a,l,f="";if(typeof c=="string"||typeof c=="number")f+=c;else if(typeof c=="object")if(Array.isArray(c)){var h=c.length;for(a=0;a<h;a++)c[a]&&(l=Cx(c[a]))&&(f&&(f+=" "),f+=l)}else for(l in c)c[l]&&(f&&(f+=" "),f+=l);return f}function Ex(){for(var c,a,l=0,f="",h=arguments.length;l<h;l++)(c=arguments[l])&&(a=Cx(c))&&(f&&(f+=" "),f+=a);return f}const Tx=c=>typeof c=="boolean"?`${c}`:c===0?"0":c,Rx=Ex,LM=(c,a)=>l=>{var f;if(a?.variants==null)return Rx(c,l?.class,l?.className);const{variants:h,defaultVariants:y}=a,v=Object.keys(h).map(R=>{const A=l?.[R],_=y?.[R];if(A===null)return null;const k=Tx(A)||Tx(_);return h[R][k]}),C=l&&Object.entries(l).reduce((R,A)=>{let[_,k]=A;return k===void 0||(R[_]=k),R},{}),x=a==null||(f=a.compoundVariants)===null||f===void 0?void 0:f.reduce((R,A)=>{let{class:_,className:k,...N}=A;return Object.entries(N).every(z=>{let[G,J]=z;return Array.isArray(J)?J.includes({...y,...C}[G]):{...y,...C}[G]===J})?[...R,_,k]:R},[]);return Rx(c,v,x,l?.class,l?.className)},t0="-",PM=c=>{const a=UM(c),{conflictingClassGroups:l,conflictingClassGroupModifiers:f}=c;return{getClassGroupId:v=>{const C=v.split(t0);return C[0]===""&&C.length!==1&&C.shift(),Mx(C,a)||IM(v)},getConflictingClassGroupIds:(v,C)=>{const x=l[v]||[];return C&&f[v]?[...x,...f[v]]:x}}},Mx=(c,a)=>{if(c.length===0)return a.classGroupId;const l=c[0],f=a.nextPart.get(l),h=f?Mx(c.slice(1),f):void 0;if(h)return h;if(a.validators.length===0)return;const y=c.join(t0);return a.validators.find(({validator:v})=>v(y))?.classGroupId},_x=/^\[(.+)\]$/,IM=c=>{if(_x.test(c)){const a=_x.exec(c)[1],l=a?.substring(0,a.indexOf(":"));if(l)return"arbitrary.."+l}},UM=c=>{const{theme:a,classGroups:l}=c,f={nextPart:new Map,validators:[]};for(const h in l)n0(l[h],f,h,a);return f},n0=(c,a,l,f)=>{c.forEach(h=>{if(typeof h=="string"){const y=h===""?a:kx(a,h);y.classGroupId=l;return}if(typeof h=="function"){if(zM(h)){n0(h(f),a,l,f);return}a.validators.push({validator:h,classGroupId:l});return}Object.entries(h).forEach(([y,v])=>{n0(v,kx(a,y),l,f)})})},kx=(c,a)=>{let l=c;return a.split(t0).forEach(f=>{l.nextPart.has(f)||l.nextPart.set(f,{nextPart:new Map,validators:[]}),l=l.nextPart.get(f)}),l},zM=c=>c.isThemeGetter,FM=c=>{if(c<1)return{get:()=>{},set:()=>{}};let a=0,l=new Map,f=new Map;const h=(y,v)=>{l.set(y,v),a++,a>c&&(a=0,f=l,l=new Map)};return{get(y){let v=l.get(y);if(v!==void 0)return v;if((v=f.get(y))!==void 0)return h(y,v),v},set(y,v){l.has(y)?l.set(y,v):h(y,v)}}},r0="!",a0=":",jM=a0.length,BM=c=>{const{prefix:a,experimentalParseClassName:l}=c;let f=h=>{const y=[];let v=0,C=0,x=0,R;for(let z=0;z<h.length;z++){let G=h[z];if(v===0&&C===0){if(G===a0){y.push(h.slice(x,z)),x=z+jM;continue}if(G==="/"){R=z;continue}}G==="["?v++:G==="]"?v--:G==="("?C++:G===")"&&C--}const A=y.length===0?h:h.substring(x),_=HM(A),k=_!==A,N=R&&R>x?R-x:void 0;return{modifiers:y,hasImportantModifier:k,baseClassName:_,maybePostfixModifierPosition:N}};if(a){const h=a+a0,y=f;f=v=>v.startsWith(h)?y(v.substring(h.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:v,maybePostfixModifierPosition:void 0}}if(l){const h=f;f=y=>l({className:y,parseClassName:h})}return f},HM=c=>c.endsWith(r0)?c.substring(0,c.length-1):c.startsWith(r0)?c.substring(1):c,VM=c=>{const a=Object.fromEntries(c.orderSensitiveModifiers.map(f=>[f,!0]));return f=>{if(f.length<=1)return f;const h=[];let y=[];return f.forEach(v=>{v[0]==="["||a[v]?(h.push(...y.sort(),v),y=[]):y.push(v)}),h.push(...y.sort()),h}},$M=c=>({cache:FM(c.cacheSize),parseClassName:BM(c),sortModifiers:VM(c),...PM(c)}),GM=/\s+/,YM=(c,a)=>{const{parseClassName:l,getClassGroupId:f,getConflictingClassGroupIds:h,sortModifiers:y}=a,v=[],C=c.trim().split(GM);let x="";for(let R=C.length-1;R>=0;R-=1){const A=C[R],{isExternal:_,modifiers:k,hasImportantModifier:N,baseClassName:z,maybePostfixModifierPosition:G}=l(A);if(_){x=A+(x.length>0?" "+x:x);continue}let J=!!G,de=f(J?z.substring(0,G):z);if(!de){if(!J){x=A+(x.length>0?" "+x:x);continue}if(de=f(z),!de){x=A+(x.length>0?" "+x:x);continue}J=!1}const ue=y(k).join(":"),ce=N?ue+r0:ue,fe=ce+de;if(v.includes(fe))continue;v.push(fe);const le=h(de,J);for(let Re=0;Re<le.length;++Re){const ve=le[Re];v.push(ce+ve)}x=A+(x.length>0?" "+x:x)}return x};function WM(){let c=0,a,l,f="";for(;c<arguments.length;)(a=arguments[c++])&&(l=Ax(a))&&(f&&(f+=" "),f+=l);return f}const Ax=c=>{if(typeof c=="string")return c;let a,l="";for(let f=0;f<c.length;f++)c[f]&&(a=Ax(c[f]))&&(l&&(l+=" "),l+=a);return l};function XM(c,...a){let l,f,h,y=v;function v(x){const R=a.reduce((A,_)=>_(A),c());return l=$M(R),f=l.cache.get,h=l.cache.set,y=C,C(x)}function C(x){const R=f(x);if(R)return R;const A=YM(x,l);return h(x,A),A}return function(){return y(WM.apply(null,arguments))}}const Sr=c=>{const a=l=>l[c]||[];return a.isThemeGetter=!0,a},Ox=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Nx=/^\((?:(\w[\w-]*):)?(.+)\)$/i,KM=/^\d+\/\d+$/,QM=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,qM=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ZM=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,JM=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,e_=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,mf=c=>KM.test(c),jt=c=>!!c&&!Number.isNaN(Number(c)),js=c=>!!c&&Number.isInteger(Number(c)),i0=c=>c.endsWith("%")&&jt(c.slice(0,-1)),Il=c=>QM.test(c),t_=()=>!0,n_=c=>qM.test(c)&&!ZM.test(c),Dx=()=>!1,r_=c=>JM.test(c),a_=c=>e_.test(c),i_=c=>!Ke(c)&&!Qe(c),o_=c=>gf(c,zx,Dx),Ke=c=>Ox.test(c),Bu=c=>gf(c,Fx,n_),o0=c=>gf(c,f_,jt),Lx=c=>gf(c,Ix,Dx),l_=c=>gf(c,Ux,a_),Fv=c=>gf(c,jx,r_),Qe=c=>Nx.test(c),xp=c=>yf(c,Fx),s_=c=>yf(c,d_),Px=c=>yf(c,Ix),u_=c=>yf(c,zx),c_=c=>yf(c,Ux),jv=c=>yf(c,jx,!0),gf=(c,a,l)=>{const f=Ox.exec(c);return f?f[1]?a(f[1]):l(f[2]):!1},yf=(c,a,l=!1)=>{const f=Nx.exec(c);return f?f[1]?a(f[1]):l:!1},Ix=c=>c==="position"||c==="percentage",Ux=c=>c==="image"||c==="url",zx=c=>c==="length"||c==="size"||c==="bg-size",Fx=c=>c==="length",f_=c=>c==="number",d_=c=>c==="family-name",jx=c=>c==="shadow",p_=XM(()=>{const c=Sr("color"),a=Sr("font"),l=Sr("text"),f=Sr("font-weight"),h=Sr("tracking"),y=Sr("leading"),v=Sr("breakpoint"),C=Sr("container"),x=Sr("spacing"),R=Sr("radius"),A=Sr("shadow"),_=Sr("inset-shadow"),k=Sr("text-shadow"),N=Sr("drop-shadow"),z=Sr("blur"),G=Sr("perspective"),J=Sr("aspect"),de=Sr("ease"),ue=Sr("animate"),ce=()=>["auto","avoid","all","avoid-page","page","left","right","column"],fe=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],le=()=>[...fe(),Qe,Ke],Re=()=>["auto","hidden","clip","visible","scroll"],ve=()=>["auto","contain","none"],xe=()=>[Qe,Ke,x],tt=()=>[mf,"full","auto",...xe()],dt=()=>[js,"none","subgrid",Qe,Ke],Rt=()=>["auto",{span:["full",js,Qe,Ke]},js,Qe,Ke],lt=()=>[js,"auto",Qe,Ke],Ae=()=>["auto","min","max","fr",Qe,Ke],rt=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],st=()=>["start","end","center","stretch","center-safe","end-safe"],qe=()=>["auto",...xe()],Te=()=>[mf,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...xe()],$=()=>[c,Qe,Ke],_e=()=>[...fe(),Px,Lx,{position:[Qe,Ke]}],Ce=()=>["no-repeat",{repeat:["","x","y","space","round"]}],V=()=>["auto","cover","contain",u_,o_,{size:[Qe,Ke]}],oe=()=>[i0,xp,Bu],Be=()=>["","none","full",R,Qe,Ke],He=()=>["",jt,xp,Bu],yt=()=>["solid","dashed","dotted","double"],xt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ve=()=>[jt,i0,Px,Lx],St=()=>["","none",z,Qe,Ke],wt=()=>["none",jt,Qe,Ke],$t=()=>["none",jt,Qe,Ke],gn=()=>[jt,Qe,Ke],Un=()=>[mf,"full",...xe()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Il],breakpoint:[Il],color:[t_],container:[Il],"drop-shadow":[Il],ease:["in","out","in-out"],font:[i_],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Il],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Il],shadow:[Il],spacing:["px",jt],text:[Il],"text-shadow":[Il],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",mf,Ke,Qe,J]}],container:["container"],columns:[{columns:[jt,Ke,Qe,C]}],"break-after":[{"break-after":ce()}],"break-before":[{"break-before":ce()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:le()}],overflow:[{overflow:Re()}],"overflow-x":[{"overflow-x":Re()}],"overflow-y":[{"overflow-y":Re()}],overscroll:[{overscroll:ve()}],"overscroll-x":[{"overscroll-x":ve()}],"overscroll-y":[{"overscroll-y":ve()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:tt()}],"inset-x":[{"inset-x":tt()}],"inset-y":[{"inset-y":tt()}],start:[{start:tt()}],end:[{end:tt()}],top:[{top:tt()}],right:[{right:tt()}],bottom:[{bottom:tt()}],left:[{left:tt()}],visibility:["visible","invisible","collapse"],z:[{z:[js,"auto",Qe,Ke]}],basis:[{basis:[mf,"full","auto",C,...xe()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[jt,mf,"auto","initial","none",Ke]}],grow:[{grow:["",jt,Qe,Ke]}],shrink:[{shrink:["",jt,Qe,Ke]}],order:[{order:[js,"first","last","none",Qe,Ke]}],"grid-cols":[{"grid-cols":dt()}],"col-start-end":[{col:Rt()}],"col-start":[{"col-start":lt()}],"col-end":[{"col-end":lt()}],"grid-rows":[{"grid-rows":dt()}],"row-start-end":[{row:Rt()}],"row-start":[{"row-start":lt()}],"row-end":[{"row-end":lt()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Ae()}],"auto-rows":[{"auto-rows":Ae()}],gap:[{gap:xe()}],"gap-x":[{"gap-x":xe()}],"gap-y":[{"gap-y":xe()}],"justify-content":[{justify:[...rt(),"normal"]}],"justify-items":[{"justify-items":[...st(),"normal"]}],"justify-self":[{"justify-self":["auto",...st()]}],"align-content":[{content:["normal",...rt()]}],"align-items":[{items:[...st(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...st(),{baseline:["","last"]}]}],"place-content":[{"place-content":rt()}],"place-items":[{"place-items":[...st(),"baseline"]}],"place-self":[{"place-self":["auto",...st()]}],p:[{p:xe()}],px:[{px:xe()}],py:[{py:xe()}],ps:[{ps:xe()}],pe:[{pe:xe()}],pt:[{pt:xe()}],pr:[{pr:xe()}],pb:[{pb:xe()}],pl:[{pl:xe()}],m:[{m:qe()}],mx:[{mx:qe()}],my:[{my:qe()}],ms:[{ms:qe()}],me:[{me:qe()}],mt:[{mt:qe()}],mr:[{mr:qe()}],mb:[{mb:qe()}],ml:[{ml:qe()}],"space-x":[{"space-x":xe()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":xe()}],"space-y-reverse":["space-y-reverse"],size:[{size:Te()}],w:[{w:[C,"screen",...Te()]}],"min-w":[{"min-w":[C,"screen","none",...Te()]}],"max-w":[{"max-w":[C,"screen","none","prose",{screen:[v]},...Te()]}],h:[{h:["screen","lh",...Te()]}],"min-h":[{"min-h":["screen","lh","none",...Te()]}],"max-h":[{"max-h":["screen","lh",...Te()]}],"font-size":[{text:["base",l,xp,Bu]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[f,Qe,o0]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",i0,Ke]}],"font-family":[{font:[s_,Ke,a]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[h,Qe,Ke]}],"line-clamp":[{"line-clamp":[jt,"none",Qe,o0]}],leading:[{leading:[y,...xe()]}],"list-image":[{"list-image":["none",Qe,Ke]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Qe,Ke]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:$()}],"text-color":[{text:$()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...yt(),"wavy"]}],"text-decoration-thickness":[{decoration:[jt,"from-font","auto",Qe,Bu]}],"text-decoration-color":[{decoration:$()}],"underline-offset":[{"underline-offset":[jt,"auto",Qe,Ke]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:xe()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Qe,Ke]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Qe,Ke]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:_e()}],"bg-repeat":[{bg:Ce()}],"bg-size":[{bg:V()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},js,Qe,Ke],radial:["",Qe,Ke],conic:[js,Qe,Ke]},c_,l_]}],"bg-color":[{bg:$()}],"gradient-from-pos":[{from:oe()}],"gradient-via-pos":[{via:oe()}],"gradient-to-pos":[{to:oe()}],"gradient-from":[{from:$()}],"gradient-via":[{via:$()}],"gradient-to":[{to:$()}],rounded:[{rounded:Be()}],"rounded-s":[{"rounded-s":Be()}],"rounded-e":[{"rounded-e":Be()}],"rounded-t":[{"rounded-t":Be()}],"rounded-r":[{"rounded-r":Be()}],"rounded-b":[{"rounded-b":Be()}],"rounded-l":[{"rounded-l":Be()}],"rounded-ss":[{"rounded-ss":Be()}],"rounded-se":[{"rounded-se":Be()}],"rounded-ee":[{"rounded-ee":Be()}],"rounded-es":[{"rounded-es":Be()}],"rounded-tl":[{"rounded-tl":Be()}],"rounded-tr":[{"rounded-tr":Be()}],"rounded-br":[{"rounded-br":Be()}],"rounded-bl":[{"rounded-bl":Be()}],"border-w":[{border:He()}],"border-w-x":[{"border-x":He()}],"border-w-y":[{"border-y":He()}],"border-w-s":[{"border-s":He()}],"border-w-e":[{"border-e":He()}],"border-w-t":[{"border-t":He()}],"border-w-r":[{"border-r":He()}],"border-w-b":[{"border-b":He()}],"border-w-l":[{"border-l":He()}],"divide-x":[{"divide-x":He()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":He()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...yt(),"hidden","none"]}],"divide-style":[{divide:[...yt(),"hidden","none"]}],"border-color":[{border:$()}],"border-color-x":[{"border-x":$()}],"border-color-y":[{"border-y":$()}],"border-color-s":[{"border-s":$()}],"border-color-e":[{"border-e":$()}],"border-color-t":[{"border-t":$()}],"border-color-r":[{"border-r":$()}],"border-color-b":[{"border-b":$()}],"border-color-l":[{"border-l":$()}],"divide-color":[{divide:$()}],"outline-style":[{outline:[...yt(),"none","hidden"]}],"outline-offset":[{"outline-offset":[jt,Qe,Ke]}],"outline-w":[{outline:["",jt,xp,Bu]}],"outline-color":[{outline:$()}],shadow:[{shadow:["","none",A,jv,Fv]}],"shadow-color":[{shadow:$()}],"inset-shadow":[{"inset-shadow":["none",_,jv,Fv]}],"inset-shadow-color":[{"inset-shadow":$()}],"ring-w":[{ring:He()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:$()}],"ring-offset-w":[{"ring-offset":[jt,Bu]}],"ring-offset-color":[{"ring-offset":$()}],"inset-ring-w":[{"inset-ring":He()}],"inset-ring-color":[{"inset-ring":$()}],"text-shadow":[{"text-shadow":["none",k,jv,Fv]}],"text-shadow-color":[{"text-shadow":$()}],opacity:[{opacity:[jt,Qe,Ke]}],"mix-blend":[{"mix-blend":[...xt(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":xt()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[jt]}],"mask-image-linear-from-pos":[{"mask-linear-from":Ve()}],"mask-image-linear-to-pos":[{"mask-linear-to":Ve()}],"mask-image-linear-from-color":[{"mask-linear-from":$()}],"mask-image-linear-to-color":[{"mask-linear-to":$()}],"mask-image-t-from-pos":[{"mask-t-from":Ve()}],"mask-image-t-to-pos":[{"mask-t-to":Ve()}],"mask-image-t-from-color":[{"mask-t-from":$()}],"mask-image-t-to-color":[{"mask-t-to":$()}],"mask-image-r-from-pos":[{"mask-r-from":Ve()}],"mask-image-r-to-pos":[{"mask-r-to":Ve()}],"mask-image-r-from-color":[{"mask-r-from":$()}],"mask-image-r-to-color":[{"mask-r-to":$()}],"mask-image-b-from-pos":[{"mask-b-from":Ve()}],"mask-image-b-to-pos":[{"mask-b-to":Ve()}],"mask-image-b-from-color":[{"mask-b-from":$()}],"mask-image-b-to-color":[{"mask-b-to":$()}],"mask-image-l-from-pos":[{"mask-l-from":Ve()}],"mask-image-l-to-pos":[{"mask-l-to":Ve()}],"mask-image-l-from-color":[{"mask-l-from":$()}],"mask-image-l-to-color":[{"mask-l-to":$()}],"mask-image-x-from-pos":[{"mask-x-from":Ve()}],"mask-image-x-to-pos":[{"mask-x-to":Ve()}],"mask-image-x-from-color":[{"mask-x-from":$()}],"mask-image-x-to-color":[{"mask-x-to":$()}],"mask-image-y-from-pos":[{"mask-y-from":Ve()}],"mask-image-y-to-pos":[{"mask-y-to":Ve()}],"mask-image-y-from-color":[{"mask-y-from":$()}],"mask-image-y-to-color":[{"mask-y-to":$()}],"mask-image-radial":[{"mask-radial":[Qe,Ke]}],"mask-image-radial-from-pos":[{"mask-radial-from":Ve()}],"mask-image-radial-to-pos":[{"mask-radial-to":Ve()}],"mask-image-radial-from-color":[{"mask-radial-from":$()}],"mask-image-radial-to-color":[{"mask-radial-to":$()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":fe()}],"mask-image-conic-pos":[{"mask-conic":[jt]}],"mask-image-conic-from-pos":[{"mask-conic-from":Ve()}],"mask-image-conic-to-pos":[{"mask-conic-to":Ve()}],"mask-image-conic-from-color":[{"mask-conic-from":$()}],"mask-image-conic-to-color":[{"mask-conic-to":$()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:_e()}],"mask-repeat":[{mask:Ce()}],"mask-size":[{mask:V()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Qe,Ke]}],filter:[{filter:["","none",Qe,Ke]}],blur:[{blur:St()}],brightness:[{brightness:[jt,Qe,Ke]}],contrast:[{contrast:[jt,Qe,Ke]}],"drop-shadow":[{"drop-shadow":["","none",N,jv,Fv]}],"drop-shadow-color":[{"drop-shadow":$()}],grayscale:[{grayscale:["",jt,Qe,Ke]}],"hue-rotate":[{"hue-rotate":[jt,Qe,Ke]}],invert:[{invert:["",jt,Qe,Ke]}],saturate:[{saturate:[jt,Qe,Ke]}],sepia:[{sepia:["",jt,Qe,Ke]}],"backdrop-filter":[{"backdrop-filter":["","none",Qe,Ke]}],"backdrop-blur":[{"backdrop-blur":St()}],"backdrop-brightness":[{"backdrop-brightness":[jt,Qe,Ke]}],"backdrop-contrast":[{"backdrop-contrast":[jt,Qe,Ke]}],"backdrop-grayscale":[{"backdrop-grayscale":["",jt,Qe,Ke]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[jt,Qe,Ke]}],"backdrop-invert":[{"backdrop-invert":["",jt,Qe,Ke]}],"backdrop-opacity":[{"backdrop-opacity":[jt,Qe,Ke]}],"backdrop-saturate":[{"backdrop-saturate":[jt,Qe,Ke]}],"backdrop-sepia":[{"backdrop-sepia":["",jt,Qe,Ke]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":xe()}],"border-spacing-x":[{"border-spacing-x":xe()}],"border-spacing-y":[{"border-spacing-y":xe()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Qe,Ke]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[jt,"initial",Qe,Ke]}],ease:[{ease:["linear","initial",de,Qe,Ke]}],delay:[{delay:[jt,Qe,Ke]}],animate:[{animate:["none",ue,Qe,Ke]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[G,Qe,Ke]}],"perspective-origin":[{"perspective-origin":le()}],rotate:[{rotate:wt()}],"rotate-x":[{"rotate-x":wt()}],"rotate-y":[{"rotate-y":wt()}],"rotate-z":[{"rotate-z":wt()}],scale:[{scale:$t()}],"scale-x":[{"scale-x":$t()}],"scale-y":[{"scale-y":$t()}],"scale-z":[{"scale-z":$t()}],"scale-3d":["scale-3d"],skew:[{skew:gn()}],"skew-x":[{"skew-x":gn()}],"skew-y":[{"skew-y":gn()}],transform:[{transform:[Qe,Ke,"","none","gpu","cpu"]}],"transform-origin":[{origin:le()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Un()}],"translate-x":[{"translate-x":Un()}],"translate-y":[{"translate-y":Un()}],"translate-z":[{"translate-z":Un()}],"translate-none":["translate-none"],accent:[{accent:$()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:$()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Qe,Ke]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":xe()}],"scroll-mx":[{"scroll-mx":xe()}],"scroll-my":[{"scroll-my":xe()}],"scroll-ms":[{"scroll-ms":xe()}],"scroll-me":[{"scroll-me":xe()}],"scroll-mt":[{"scroll-mt":xe()}],"scroll-mr":[{"scroll-mr":xe()}],"scroll-mb":[{"scroll-mb":xe()}],"scroll-ml":[{"scroll-ml":xe()}],"scroll-p":[{"scroll-p":xe()}],"scroll-px":[{"scroll-px":xe()}],"scroll-py":[{"scroll-py":xe()}],"scroll-ps":[{"scroll-ps":xe()}],"scroll-pe":[{"scroll-pe":xe()}],"scroll-pt":[{"scroll-pt":xe()}],"scroll-pr":[{"scroll-pr":xe()}],"scroll-pb":[{"scroll-pb":xe()}],"scroll-pl":[{"scroll-pl":xe()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Qe,Ke]}],fill:[{fill:["none",...$()]}],"stroke-w":[{stroke:[jt,xp,Bu,o0]}],stroke:[{stroke:["none",...$()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function Bx(...c){return p_(Ex(c))}const h_=LM("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),vi=Q.forwardRef(({className:c,variant:a,size:l,asChild:f=!1,...h},y)=>{const v=f?_M:"button";return I.jsx(v,{className:Bx(h_({variant:a,size:l,className:c})),ref:y,...h})});vi.displayName="Button";/**
|
|
242
|
+
* @license lucide-react v0.539.0 - ISC
|
|
243
|
+
*
|
|
244
|
+
* This source code is licensed under the ISC license.
|
|
245
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
246
|
+
*/const v_=c=>c.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),m_=c=>c.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,l,f)=>f?f.toUpperCase():l.toLowerCase()),Hx=c=>{const a=m_(c);return a.charAt(0).toUpperCase()+a.slice(1)},Vx=(...c)=>c.filter((a,l,f)=>!!a&&a.trim()!==""&&f.indexOf(a)===l).join(" ").trim(),g_=c=>{for(const a in c)if(a.startsWith("aria-")||a==="role"||a==="title")return!0};/**
|
|
247
|
+
* @license lucide-react v0.539.0 - ISC
|
|
248
|
+
*
|
|
249
|
+
* This source code is licensed under the ISC license.
|
|
250
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
251
|
+
*/var y_={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
252
|
+
* @license lucide-react v0.539.0 - ISC
|
|
253
|
+
*
|
|
254
|
+
* This source code is licensed under the ISC license.
|
|
255
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
256
|
+
*/const S_=Q.forwardRef(({color:c="currentColor",size:a=24,strokeWidth:l=2,absoluteStrokeWidth:f,className:h="",children:y,iconNode:v,...C},x)=>Q.createElement("svg",{ref:x,...y_,width:a,height:a,stroke:c,strokeWidth:f?Number(l)*24/Number(a):l,className:Vx("lucide",h),...!y&&!g_(C)&&{"aria-hidden":"true"},...C},[...v.map(([R,A])=>Q.createElement(R,A)),...Array.isArray(y)?y:[y]]));/**
|
|
257
|
+
* @license lucide-react v0.539.0 - ISC
|
|
258
|
+
*
|
|
259
|
+
* This source code is licensed under the ISC license.
|
|
260
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
261
|
+
*/const Ui=(c,a)=>{const l=Q.forwardRef(({className:f,...h},y)=>Q.createElement(S_,{ref:y,iconNode:a,className:Vx(`lucide-${v_(Hx(c))}`,`lucide-${c}`,f),...h}));return l.displayName=Hx(c),l};/**
|
|
262
|
+
* @license lucide-react v0.539.0 - ISC
|
|
263
|
+
*
|
|
264
|
+
* This source code is licensed under the ISC license.
|
|
265
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
266
|
+
*/const $x=Ui("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
|
|
267
|
+
* @license lucide-react v0.539.0 - ISC
|
|
268
|
+
*
|
|
269
|
+
* This source code is licensed under the ISC license.
|
|
270
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
271
|
+
*/const w_=Ui("circle-dollar-sign",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 18V6",key:"zqpxq5"}]]);/**
|
|
272
|
+
* @license lucide-react v0.539.0 - ISC
|
|
273
|
+
*
|
|
274
|
+
* This source code is licensed under the ISC license.
|
|
275
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
276
|
+
*/const b_=Ui("heart",[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]]);/**
|
|
277
|
+
* @license lucide-react v0.539.0 - ISC
|
|
278
|
+
*
|
|
279
|
+
* This source code is licensed under the ISC license.
|
|
280
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
281
|
+
*/const Gx=Ui("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/**
|
|
282
|
+
* @license lucide-react v0.539.0 - ISC
|
|
283
|
+
*
|
|
284
|
+
* This source code is licensed under the ISC license.
|
|
285
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
286
|
+
*/const x_=Ui("map",[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]]);/**
|
|
287
|
+
* @license lucide-react v0.539.0 - ISC
|
|
288
|
+
*
|
|
289
|
+
* This source code is licensed under the ISC license.
|
|
290
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
291
|
+
*/const Yx=Ui("maximize",[["path",{d:"M8 3H5a2 2 0 0 0-2 2v3",key:"1dcmit"}],["path",{d:"M21 8V5a2 2 0 0 0-2-2h-3",key:"1e4gt3"}],["path",{d:"M3 16v3a2 2 0 0 0 2 2h3",key:"wsl5sc"}],["path",{d:"M16 21h3a2 2 0 0 0 2-2v-3",key:"18trek"}]]);/**
|
|
292
|
+
* @license lucide-react v0.539.0 - ISC
|
|
293
|
+
*
|
|
294
|
+
* This source code is licensed under the ISC license.
|
|
295
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
296
|
+
*/const Wx=Ui("minimize",[["path",{d:"M8 3v3a2 2 0 0 1-2 2H3",key:"hohbtr"}],["path",{d:"M21 8h-3a2 2 0 0 1-2-2V3",key:"5jw1f3"}],["path",{d:"M3 16h3a2 2 0 0 1 2 2v3",key:"198tvr"}],["path",{d:"M16 21v-3a2 2 0 0 1 2-2h3",key:"ph8mxp"}]]);/**
|
|
297
|
+
* @license lucide-react v0.539.0 - ISC
|
|
298
|
+
*
|
|
299
|
+
* This source code is licensed under the ISC license.
|
|
300
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
301
|
+
*/const C_=Ui("pause",[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]]);/**
|
|
302
|
+
* @license lucide-react v0.539.0 - ISC
|
|
303
|
+
*
|
|
304
|
+
* This source code is licensed under the ISC license.
|
|
305
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
306
|
+
*/const l0=Ui("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]);/**
|
|
307
|
+
* @license lucide-react v0.539.0 - ISC
|
|
308
|
+
*
|
|
309
|
+
* This source code is licensed under the ISC license.
|
|
310
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
311
|
+
*/const E_=Ui("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
|
|
312
|
+
* @license lucide-react v0.539.0 - ISC
|
|
313
|
+
*
|
|
314
|
+
* This source code is licensed under the ISC license.
|
|
315
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
316
|
+
*/const Xx=Ui("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
317
|
+
* @license lucide-react v0.539.0 - ISC
|
|
318
|
+
*
|
|
319
|
+
* This source code is licensed under the ISC license.
|
|
320
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
321
|
+
*/const T_=Ui("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);function Ul(c,a,{checkForDefaultPrevented:l=!0}={}){return function(h){if(c?.(h),l===!1||!h.defaultPrevented)return a?.(h)}}function Kx(c,a=[]){let l=[];function f(y,v){const C=Q.createContext(v),x=l.length;l=[...l,v];const R=_=>{const{scope:k,children:N,...z}=_,G=k?.[c]?.[x]||C,J=Q.useMemo(()=>z,Object.values(z));return I.jsx(G.Provider,{value:J,children:N})};R.displayName=y+"Provider";function A(_,k){const N=k?.[c]?.[x]||C,z=Q.useContext(N);if(z)return z;if(v!==void 0)return v;throw new Error(`\`${_}\` must be used within \`${y}\``)}return[R,A]}const h=()=>{const y=l.map(v=>Q.createContext(v));return function(C){const x=C?.[c]||y;return Q.useMemo(()=>({[`__scope${c}`]:{...C,[c]:x}}),[C,x])}};return h.scopeName=c,[f,R_(h,...a)]}function R_(...c){const a=c[0];if(c.length===1)return a;const l=()=>{const f=c.map(h=>({useScope:h(),scopeName:h.scopeName}));return function(y){const v=f.reduce((C,{useScope:x,scopeName:R})=>{const _=x(y)[`__scope${R}`];return{...C,..._}},{});return Q.useMemo(()=>({[`__scope${a.scopeName}`]:v}),[v])}};return l.scopeName=a.scopeName,l}var M_=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Hu=M_.reduce((c,a)=>{const l=bx(`Primitive.${a}`),f=Q.forwardRef((h,y)=>{const{asChild:v,...C}=h,x=v?l:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),I.jsx(x,{...C,ref:y})});return f.displayName=`Primitive.${a}`,{...c,[a]:f}},{});function __(c,a){c&&Zy.flushSync(()=>c.dispatchEvent(a))}function Bv(c){const a=Q.useRef(c);return Q.useEffect(()=>{a.current=c}),Q.useMemo(()=>(...l)=>a.current?.(...l),[])}function k_(c,a=globalThis?.document){const l=Bv(c);Q.useEffect(()=>{const f=h=>{h.key==="Escape"&&l(h)};return a.addEventListener("keydown",f,{capture:!0}),()=>a.removeEventListener("keydown",f,{capture:!0})},[l,a])}var A_="DismissableLayer",s0="dismissableLayer.update",O_="dismissableLayer.pointerDownOutside",N_="dismissableLayer.focusOutside",Qx,qx=Q.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Zx=Q.forwardRef((c,a)=>{const{disableOutsidePointerEvents:l=!1,onEscapeKeyDown:f,onPointerDownOutside:h,onFocusOutside:y,onInteractOutside:v,onDismiss:C,...x}=c,R=Q.useContext(qx),[A,_]=Q.useState(null),k=A?.ownerDocument??globalThis?.document,[,N]=Q.useState({}),z=ju(a,ve=>_(ve)),G=Array.from(R.layers),[J]=[...R.layersWithOutsidePointerEventsDisabled].slice(-1),de=G.indexOf(J),ue=A?G.indexOf(A):-1,ce=R.layersWithOutsidePointerEventsDisabled.size>0,fe=ue>=de,le=P_(ve=>{const xe=ve.target,tt=[...R.branches].some(dt=>dt.contains(xe));!fe||tt||(h?.(ve),v?.(ve),ve.defaultPrevented||C?.())},k),Re=I_(ve=>{const xe=ve.target;[...R.branches].some(dt=>dt.contains(xe))||(y?.(ve),v?.(ve),ve.defaultPrevented||C?.())},k);return k_(ve=>{ue===R.layers.size-1&&(f?.(ve),!ve.defaultPrevented&&C&&(ve.preventDefault(),C()))},k),Q.useEffect(()=>{if(A)return l&&(R.layersWithOutsidePointerEventsDisabled.size===0&&(Qx=k.body.style.pointerEvents,k.body.style.pointerEvents="none"),R.layersWithOutsidePointerEventsDisabled.add(A)),R.layers.add(A),Jx(),()=>{l&&R.layersWithOutsidePointerEventsDisabled.size===1&&(k.body.style.pointerEvents=Qx)}},[A,k,l,R]),Q.useEffect(()=>()=>{A&&(R.layers.delete(A),R.layersWithOutsidePointerEventsDisabled.delete(A),Jx())},[A,R]),Q.useEffect(()=>{const ve=()=>N({});return document.addEventListener(s0,ve),()=>document.removeEventListener(s0,ve)},[]),I.jsx(Hu.div,{...x,ref:z,style:{pointerEvents:ce?fe?"auto":"none":void 0,...c.style},onFocusCapture:Ul(c.onFocusCapture,Re.onFocusCapture),onBlurCapture:Ul(c.onBlurCapture,Re.onBlurCapture),onPointerDownCapture:Ul(c.onPointerDownCapture,le.onPointerDownCapture)})});Zx.displayName=A_;var D_="DismissableLayerBranch",L_=Q.forwardRef((c,a)=>{const l=Q.useContext(qx),f=Q.useRef(null),h=ju(a,f);return Q.useEffect(()=>{const y=f.current;if(y)return l.branches.add(y),()=>{l.branches.delete(y)}},[l.branches]),I.jsx(Hu.div,{...c,ref:h})});L_.displayName=D_;function P_(c,a=globalThis?.document){const l=Bv(c),f=Q.useRef(!1),h=Q.useRef(()=>{});return Q.useEffect(()=>{const y=C=>{if(C.target&&!f.current){let x=function(){eC(O_,l,R,{discrete:!0})};const R={originalEvent:C};C.pointerType==="touch"?(a.removeEventListener("click",h.current),h.current=x,a.addEventListener("click",h.current,{once:!0})):x()}else a.removeEventListener("click",h.current);f.current=!1},v=window.setTimeout(()=>{a.addEventListener("pointerdown",y)},0);return()=>{window.clearTimeout(v),a.removeEventListener("pointerdown",y),a.removeEventListener("click",h.current)}},[a,l]),{onPointerDownCapture:()=>f.current=!0}}function I_(c,a=globalThis?.document){const l=Bv(c),f=Q.useRef(!1);return Q.useEffect(()=>{const h=y=>{y.target&&!f.current&&eC(N_,l,{originalEvent:y},{discrete:!1})};return a.addEventListener("focusin",h),()=>a.removeEventListener("focusin",h)},[a,l]),{onFocusCapture:()=>f.current=!0,onBlurCapture:()=>f.current=!1}}function Jx(){const c=new CustomEvent(s0);document.dispatchEvent(c)}function eC(c,a,l,{discrete:f}){const h=l.originalEvent.target,y=new CustomEvent(c,{bubbles:!1,cancelable:!0,detail:l});a&&h.addEventListener(c,a,{once:!0}),f?__(h,y):h.dispatchEvent(y)}var Vu=globalThis?.document?Q.useLayoutEffect:()=>{},U_=rx[" useId ".trim().toString()]||(()=>{}),z_=0;function F_(c){const[a,l]=Q.useState(U_());return Vu(()=>{l(f=>f??String(z_++))},[c]),a?`radix-${a}`:""}const j_=["top","right","bottom","left"],Bs=Math.min,mi=Math.max,Hv=Math.round,Vv=Math.floor,$o=c=>({x:c,y:c}),B_={left:"right",right:"left",bottom:"top",top:"bottom"},H_={start:"end",end:"start"};function u0(c,a,l){return mi(c,Bs(a,l))}function zl(c,a){return typeof c=="function"?c(a):c}function Fl(c){return c.split("-")[0]}function Sf(c){return c.split("-")[1]}function c0(c){return c==="x"?"y":"x"}function f0(c){return c==="y"?"height":"width"}const V_=new Set(["top","bottom"]);function Go(c){return V_.has(Fl(c))?"y":"x"}function d0(c){return c0(Go(c))}function $_(c,a,l){l===void 0&&(l=!1);const f=Sf(c),h=d0(c),y=f0(h);let v=h==="x"?f===(l?"end":"start")?"right":"left":f==="start"?"bottom":"top";return a.reference[y]>a.floating[y]&&(v=$v(v)),[v,$v(v)]}function G_(c){const a=$v(c);return[p0(c),a,p0(a)]}function p0(c){return c.replace(/start|end/g,a=>H_[a])}const tC=["left","right"],nC=["right","left"],Y_=["top","bottom"],W_=["bottom","top"];function X_(c,a,l){switch(c){case"top":case"bottom":return l?a?nC:tC:a?tC:nC;case"left":case"right":return a?Y_:W_;default:return[]}}function K_(c,a,l,f){const h=Sf(c);let y=X_(Fl(c),l==="start",f);return h&&(y=y.map(v=>v+"-"+h),a&&(y=y.concat(y.map(p0)))),y}function $v(c){return c.replace(/left|right|bottom|top/g,a=>B_[a])}function Q_(c){return{top:0,right:0,bottom:0,left:0,...c}}function rC(c){return typeof c!="number"?Q_(c):{top:c,right:c,bottom:c,left:c}}function Gv(c){const{x:a,y:l,width:f,height:h}=c;return{width:f,height:h,top:l,left:a,right:a+f,bottom:l+h,x:a,y:l}}function aC(c,a,l){let{reference:f,floating:h}=c;const y=Go(a),v=d0(a),C=f0(v),x=Fl(a),R=y==="y",A=f.x+f.width/2-h.width/2,_=f.y+f.height/2-h.height/2,k=f[C]/2-h[C]/2;let N;switch(x){case"top":N={x:A,y:f.y-h.height};break;case"bottom":N={x:A,y:f.y+f.height};break;case"right":N={x:f.x+f.width,y:_};break;case"left":N={x:f.x-h.width,y:_};break;default:N={x:f.x,y:f.y}}switch(Sf(a)){case"start":N[v]-=k*(l&&R?-1:1);break;case"end":N[v]+=k*(l&&R?-1:1);break}return N}const q_=async(c,a,l)=>{const{placement:f="bottom",strategy:h="absolute",middleware:y=[],platform:v}=l,C=y.filter(Boolean),x=await(v.isRTL==null?void 0:v.isRTL(a));let R=await v.getElementRects({reference:c,floating:a,strategy:h}),{x:A,y:_}=aC(R,f,x),k=f,N={},z=0;for(let G=0;G<C.length;G++){const{name:J,fn:de}=C[G],{x:ue,y:ce,data:fe,reset:le}=await de({x:A,y:_,initialPlacement:f,placement:k,strategy:h,middlewareData:N,rects:R,platform:v,elements:{reference:c,floating:a}});A=ue??A,_=ce??_,N={...N,[J]:{...N[J],...fe}},le&&z<=50&&(z++,typeof le=="object"&&(le.placement&&(k=le.placement),le.rects&&(R=le.rects===!0?await v.getElementRects({reference:c,floating:a,strategy:h}):le.rects),{x:A,y:_}=aC(R,k,x)),G=-1)}return{x:A,y:_,placement:k,strategy:h,middlewareData:N}};async function Cp(c,a){var l;a===void 0&&(a={});const{x:f,y:h,platform:y,rects:v,elements:C,strategy:x}=c,{boundary:R="clippingAncestors",rootBoundary:A="viewport",elementContext:_="floating",altBoundary:k=!1,padding:N=0}=zl(a,c),z=rC(N),J=C[k?_==="floating"?"reference":"floating":_],de=Gv(await y.getClippingRect({element:(l=await(y.isElement==null?void 0:y.isElement(J)))==null||l?J:J.contextElement||await(y.getDocumentElement==null?void 0:y.getDocumentElement(C.floating)),boundary:R,rootBoundary:A,strategy:x})),ue=_==="floating"?{x:f,y:h,width:v.floating.width,height:v.floating.height}:v.reference,ce=await(y.getOffsetParent==null?void 0:y.getOffsetParent(C.floating)),fe=await(y.isElement==null?void 0:y.isElement(ce))?await(y.getScale==null?void 0:y.getScale(ce))||{x:1,y:1}:{x:1,y:1},le=Gv(y.convertOffsetParentRelativeRectToViewportRelativeRect?await y.convertOffsetParentRelativeRectToViewportRelativeRect({elements:C,rect:ue,offsetParent:ce,strategy:x}):ue);return{top:(de.top-le.top+z.top)/fe.y,bottom:(le.bottom-de.bottom+z.bottom)/fe.y,left:(de.left-le.left+z.left)/fe.x,right:(le.right-de.right+z.right)/fe.x}}const Z_=c=>({name:"arrow",options:c,async fn(a){const{x:l,y:f,placement:h,rects:y,platform:v,elements:C,middlewareData:x}=a,{element:R,padding:A=0}=zl(c,a)||{};if(R==null)return{};const _=rC(A),k={x:l,y:f},N=d0(h),z=f0(N),G=await v.getDimensions(R),J=N==="y",de=J?"top":"left",ue=J?"bottom":"right",ce=J?"clientHeight":"clientWidth",fe=y.reference[z]+y.reference[N]-k[N]-y.floating[z],le=k[N]-y.reference[N],Re=await(v.getOffsetParent==null?void 0:v.getOffsetParent(R));let ve=Re?Re[ce]:0;(!ve||!await(v.isElement==null?void 0:v.isElement(Re)))&&(ve=C.floating[ce]||y.floating[z]);const xe=fe/2-le/2,tt=ve/2-G[z]/2-1,dt=Bs(_[de],tt),Rt=Bs(_[ue],tt),lt=dt,Ae=ve-G[z]-Rt,rt=ve/2-G[z]/2+xe,st=u0(lt,rt,Ae),qe=!x.arrow&&Sf(h)!=null&&rt!==st&&y.reference[z]/2-(rt<lt?dt:Rt)-G[z]/2<0,Te=qe?rt<lt?rt-lt:rt-Ae:0;return{[N]:k[N]+Te,data:{[N]:st,centerOffset:rt-st-Te,...qe&&{alignmentOffset:Te}},reset:qe}}}),J_=function(c){return c===void 0&&(c={}),{name:"flip",options:c,async fn(a){var l,f;const{placement:h,middlewareData:y,rects:v,initialPlacement:C,platform:x,elements:R}=a,{mainAxis:A=!0,crossAxis:_=!0,fallbackPlacements:k,fallbackStrategy:N="bestFit",fallbackAxisSideDirection:z="none",flipAlignment:G=!0,...J}=zl(c,a);if((l=y.arrow)!=null&&l.alignmentOffset)return{};const de=Fl(h),ue=Go(C),ce=Fl(C)===C,fe=await(x.isRTL==null?void 0:x.isRTL(R.floating)),le=k||(ce||!G?[$v(C)]:G_(C)),Re=z!=="none";!k&&Re&&le.push(...K_(C,G,z,fe));const ve=[C,...le],xe=await Cp(a,J),tt=[];let dt=((f=y.flip)==null?void 0:f.overflows)||[];if(A&&tt.push(xe[de]),_){const rt=$_(h,v,fe);tt.push(xe[rt[0]],xe[rt[1]])}if(dt=[...dt,{placement:h,overflows:tt}],!tt.every(rt=>rt<=0)){var Rt,lt;const rt=(((Rt=y.flip)==null?void 0:Rt.index)||0)+1,st=ve[rt];if(st&&(!(_==="alignment"?ue!==Go(st):!1)||dt.every($=>Go($.placement)===ue?$.overflows[0]>0:!0)))return{data:{index:rt,overflows:dt},reset:{placement:st}};let qe=(lt=dt.filter(Te=>Te.overflows[0]<=0).sort((Te,$)=>Te.overflows[1]-$.overflows[1])[0])==null?void 0:lt.placement;if(!qe)switch(N){case"bestFit":{var Ae;const Te=(Ae=dt.filter($=>{if(Re){const _e=Go($.placement);return _e===ue||_e==="y"}return!0}).map($=>[$.placement,$.overflows.filter(_e=>_e>0).reduce((_e,Ce)=>_e+Ce,0)]).sort(($,_e)=>$[1]-_e[1])[0])==null?void 0:Ae[0];Te&&(qe=Te);break}case"initialPlacement":qe=C;break}if(h!==qe)return{reset:{placement:qe}}}return{}}}};function iC(c,a){return{top:c.top-a.height,right:c.right-a.width,bottom:c.bottom-a.height,left:c.left-a.width}}function oC(c){return j_.some(a=>c[a]>=0)}const ek=function(c){return c===void 0&&(c={}),{name:"hide",options:c,async fn(a){const{rects:l}=a,{strategy:f="referenceHidden",...h}=zl(c,a);switch(f){case"referenceHidden":{const y=await Cp(a,{...h,elementContext:"reference"}),v=iC(y,l.reference);return{data:{referenceHiddenOffsets:v,referenceHidden:oC(v)}}}case"escaped":{const y=await Cp(a,{...h,altBoundary:!0}),v=iC(y,l.floating);return{data:{escapedOffsets:v,escaped:oC(v)}}}default:return{}}}}},lC=new Set(["left","top"]);async function tk(c,a){const{placement:l,platform:f,elements:h}=c,y=await(f.isRTL==null?void 0:f.isRTL(h.floating)),v=Fl(l),C=Sf(l),x=Go(l)==="y",R=lC.has(v)?-1:1,A=y&&x?-1:1,_=zl(a,c);let{mainAxis:k,crossAxis:N,alignmentAxis:z}=typeof _=="number"?{mainAxis:_,crossAxis:0,alignmentAxis:null}:{mainAxis:_.mainAxis||0,crossAxis:_.crossAxis||0,alignmentAxis:_.alignmentAxis};return C&&typeof z=="number"&&(N=C==="end"?z*-1:z),x?{x:N*A,y:k*R}:{x:k*R,y:N*A}}const nk=function(c){return c===void 0&&(c=0),{name:"offset",options:c,async fn(a){var l,f;const{x:h,y,placement:v,middlewareData:C}=a,x=await tk(a,c);return v===((l=C.offset)==null?void 0:l.placement)&&(f=C.arrow)!=null&&f.alignmentOffset?{}:{x:h+x.x,y:y+x.y,data:{...x,placement:v}}}}},rk=function(c){return c===void 0&&(c={}),{name:"shift",options:c,async fn(a){const{x:l,y:f,placement:h}=a,{mainAxis:y=!0,crossAxis:v=!1,limiter:C={fn:J=>{let{x:de,y:ue}=J;return{x:de,y:ue}}},...x}=zl(c,a),R={x:l,y:f},A=await Cp(a,x),_=Go(Fl(h)),k=c0(_);let N=R[k],z=R[_];if(y){const J=k==="y"?"top":"left",de=k==="y"?"bottom":"right",ue=N+A[J],ce=N-A[de];N=u0(ue,N,ce)}if(v){const J=_==="y"?"top":"left",de=_==="y"?"bottom":"right",ue=z+A[J],ce=z-A[de];z=u0(ue,z,ce)}const G=C.fn({...a,[k]:N,[_]:z});return{...G,data:{x:G.x-l,y:G.y-f,enabled:{[k]:y,[_]:v}}}}}},ak=function(c){return c===void 0&&(c={}),{options:c,fn(a){const{x:l,y:f,placement:h,rects:y,middlewareData:v}=a,{offset:C=0,mainAxis:x=!0,crossAxis:R=!0}=zl(c,a),A={x:l,y:f},_=Go(h),k=c0(_);let N=A[k],z=A[_];const G=zl(C,a),J=typeof G=="number"?{mainAxis:G,crossAxis:0}:{mainAxis:0,crossAxis:0,...G};if(x){const ce=k==="y"?"height":"width",fe=y.reference[k]-y.floating[ce]+J.mainAxis,le=y.reference[k]+y.reference[ce]-J.mainAxis;N<fe?N=fe:N>le&&(N=le)}if(R){var de,ue;const ce=k==="y"?"width":"height",fe=lC.has(Fl(h)),le=y.reference[_]-y.floating[ce]+(fe&&((de=v.offset)==null?void 0:de[_])||0)+(fe?0:J.crossAxis),Re=y.reference[_]+y.reference[ce]+(fe?0:((ue=v.offset)==null?void 0:ue[_])||0)-(fe?J.crossAxis:0);z<le?z=le:z>Re&&(z=Re)}return{[k]:N,[_]:z}}}},ik=function(c){return c===void 0&&(c={}),{name:"size",options:c,async fn(a){var l,f;const{placement:h,rects:y,platform:v,elements:C}=a,{apply:x=()=>{},...R}=zl(c,a),A=await Cp(a,R),_=Fl(h),k=Sf(h),N=Go(h)==="y",{width:z,height:G}=y.floating;let J,de;_==="top"||_==="bottom"?(J=_,de=k===(await(v.isRTL==null?void 0:v.isRTL(C.floating))?"start":"end")?"left":"right"):(de=_,J=k==="end"?"top":"bottom");const ue=G-A.top-A.bottom,ce=z-A.left-A.right,fe=Bs(G-A[J],ue),le=Bs(z-A[de],ce),Re=!a.middlewareData.shift;let ve=fe,xe=le;if((l=a.middlewareData.shift)!=null&&l.enabled.x&&(xe=ce),(f=a.middlewareData.shift)!=null&&f.enabled.y&&(ve=ue),Re&&!k){const dt=mi(A.left,0),Rt=mi(A.right,0),lt=mi(A.top,0),Ae=mi(A.bottom,0);N?xe=z-2*(dt!==0||Rt!==0?dt+Rt:mi(A.left,A.right)):ve=G-2*(lt!==0||Ae!==0?lt+Ae:mi(A.top,A.bottom))}await x({...a,availableWidth:xe,availableHeight:ve});const tt=await v.getDimensions(C.floating);return z!==tt.width||G!==tt.height?{reset:{rects:!0}}:{}}}};function Yv(){return typeof window<"u"}function wf(c){return sC(c)?(c.nodeName||"").toLowerCase():"#document"}function gi(c){var a;return(c==null||(a=c.ownerDocument)==null?void 0:a.defaultView)||window}function Yo(c){var a;return(a=(sC(c)?c.ownerDocument:c.document)||window.document)==null?void 0:a.documentElement}function sC(c){return Yv()?c instanceof Node||c instanceof gi(c).Node:!1}function ho(c){return Yv()?c instanceof Element||c instanceof gi(c).Element:!1}function Wo(c){return Yv()?c instanceof HTMLElement||c instanceof gi(c).HTMLElement:!1}function uC(c){return!Yv()||typeof ShadowRoot>"u"?!1:c instanceof ShadowRoot||c instanceof gi(c).ShadowRoot}const ok=new Set(["inline","contents"]);function Ep(c){const{overflow:a,overflowX:l,overflowY:f,display:h}=vo(c);return/auto|scroll|overlay|hidden|clip/.test(a+f+l)&&!ok.has(h)}const lk=new Set(["table","td","th"]);function sk(c){return lk.has(wf(c))}const uk=[":popover-open",":modal"];function Wv(c){return uk.some(a=>{try{return c.matches(a)}catch{return!1}})}const ck=["transform","translate","scale","rotate","perspective"],fk=["transform","translate","scale","rotate","perspective","filter"],dk=["paint","layout","strict","content"];function h0(c){const a=v0(),l=ho(c)?vo(c):c;return ck.some(f=>l[f]?l[f]!=="none":!1)||(l.containerType?l.containerType!=="normal":!1)||!a&&(l.backdropFilter?l.backdropFilter!=="none":!1)||!a&&(l.filter?l.filter!=="none":!1)||fk.some(f=>(l.willChange||"").includes(f))||dk.some(f=>(l.contain||"").includes(f))}function pk(c){let a=Hs(c);for(;Wo(a)&&!bf(a);){if(h0(a))return a;if(Wv(a))return null;a=Hs(a)}return null}function v0(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const hk=new Set(["html","body","#document"]);function bf(c){return hk.has(wf(c))}function vo(c){return gi(c).getComputedStyle(c)}function Xv(c){return ho(c)?{scrollLeft:c.scrollLeft,scrollTop:c.scrollTop}:{scrollLeft:c.scrollX,scrollTop:c.scrollY}}function Hs(c){if(wf(c)==="html")return c;const a=c.assignedSlot||c.parentNode||uC(c)&&c.host||Yo(c);return uC(a)?a.host:a}function cC(c){const a=Hs(c);return bf(a)?c.ownerDocument?c.ownerDocument.body:c.body:Wo(a)&&Ep(a)?a:cC(a)}function Tp(c,a,l){var f;a===void 0&&(a=[]),l===void 0&&(l=!0);const h=cC(c),y=h===((f=c.ownerDocument)==null?void 0:f.body),v=gi(h);if(y){const C=m0(v);return a.concat(v,v.visualViewport||[],Ep(h)?h:[],C&&l?Tp(C):[])}return a.concat(h,Tp(h,[],l))}function m0(c){return c.parent&&Object.getPrototypeOf(c.parent)?c.frameElement:null}function fC(c){const a=vo(c);let l=parseFloat(a.width)||0,f=parseFloat(a.height)||0;const h=Wo(c),y=h?c.offsetWidth:l,v=h?c.offsetHeight:f,C=Hv(l)!==y||Hv(f)!==v;return C&&(l=y,f=v),{width:l,height:f,$:C}}function g0(c){return ho(c)?c:c.contextElement}function xf(c){const a=g0(c);if(!Wo(a))return $o(1);const l=a.getBoundingClientRect(),{width:f,height:h,$:y}=fC(a);let v=(y?Hv(l.width):l.width)/f,C=(y?Hv(l.height):l.height)/h;return(!v||!Number.isFinite(v))&&(v=1),(!C||!Number.isFinite(C))&&(C=1),{x:v,y:C}}const vk=$o(0);function dC(c){const a=gi(c);return!v0()||!a.visualViewport?vk:{x:a.visualViewport.offsetLeft,y:a.visualViewport.offsetTop}}function mk(c,a,l){return a===void 0&&(a=!1),!l||a&&l!==gi(c)?!1:a}function $u(c,a,l,f){a===void 0&&(a=!1),l===void 0&&(l=!1);const h=c.getBoundingClientRect(),y=g0(c);let v=$o(1);a&&(f?ho(f)&&(v=xf(f)):v=xf(c));const C=mk(y,l,f)?dC(y):$o(0);let x=(h.left+C.x)/v.x,R=(h.top+C.y)/v.y,A=h.width/v.x,_=h.height/v.y;if(y){const k=gi(y),N=f&&ho(f)?gi(f):f;let z=k,G=m0(z);for(;G&&f&&N!==z;){const J=xf(G),de=G.getBoundingClientRect(),ue=vo(G),ce=de.left+(G.clientLeft+parseFloat(ue.paddingLeft))*J.x,fe=de.top+(G.clientTop+parseFloat(ue.paddingTop))*J.y;x*=J.x,R*=J.y,A*=J.x,_*=J.y,x+=ce,R+=fe,z=gi(G),G=m0(z)}}return Gv({width:A,height:_,x,y:R})}function y0(c,a){const l=Xv(c).scrollLeft;return a?a.left+l:$u(Yo(c)).left+l}function pC(c,a,l){l===void 0&&(l=!1);const f=c.getBoundingClientRect(),h=f.left+a.scrollLeft-(l?0:y0(c,f)),y=f.top+a.scrollTop;return{x:h,y}}function gk(c){let{elements:a,rect:l,offsetParent:f,strategy:h}=c;const y=h==="fixed",v=Yo(f),C=a?Wv(a.floating):!1;if(f===v||C&&y)return l;let x={scrollLeft:0,scrollTop:0},R=$o(1);const A=$o(0),_=Wo(f);if((_||!_&&!y)&&((wf(f)!=="body"||Ep(v))&&(x=Xv(f)),Wo(f))){const N=$u(f);R=xf(f),A.x=N.x+f.clientLeft,A.y=N.y+f.clientTop}const k=v&&!_&&!y?pC(v,x,!0):$o(0);return{width:l.width*R.x,height:l.height*R.y,x:l.x*R.x-x.scrollLeft*R.x+A.x+k.x,y:l.y*R.y-x.scrollTop*R.y+A.y+k.y}}function yk(c){return Array.from(c.getClientRects())}function Sk(c){const a=Yo(c),l=Xv(c),f=c.ownerDocument.body,h=mi(a.scrollWidth,a.clientWidth,f.scrollWidth,f.clientWidth),y=mi(a.scrollHeight,a.clientHeight,f.scrollHeight,f.clientHeight);let v=-l.scrollLeft+y0(c);const C=-l.scrollTop;return vo(f).direction==="rtl"&&(v+=mi(a.clientWidth,f.clientWidth)-h),{width:h,height:y,x:v,y:C}}function wk(c,a){const l=gi(c),f=Yo(c),h=l.visualViewport;let y=f.clientWidth,v=f.clientHeight,C=0,x=0;if(h){y=h.width,v=h.height;const R=v0();(!R||R&&a==="fixed")&&(C=h.offsetLeft,x=h.offsetTop)}return{width:y,height:v,x:C,y:x}}const bk=new Set(["absolute","fixed"]);function xk(c,a){const l=$u(c,!0,a==="fixed"),f=l.top+c.clientTop,h=l.left+c.clientLeft,y=Wo(c)?xf(c):$o(1),v=c.clientWidth*y.x,C=c.clientHeight*y.y,x=h*y.x,R=f*y.y;return{width:v,height:C,x,y:R}}function hC(c,a,l){let f;if(a==="viewport")f=wk(c,l);else if(a==="document")f=Sk(Yo(c));else if(ho(a))f=xk(a,l);else{const h=dC(c);f={x:a.x-h.x,y:a.y-h.y,width:a.width,height:a.height}}return Gv(f)}function vC(c,a){const l=Hs(c);return l===a||!ho(l)||bf(l)?!1:vo(l).position==="fixed"||vC(l,a)}function Ck(c,a){const l=a.get(c);if(l)return l;let f=Tp(c,[],!1).filter(C=>ho(C)&&wf(C)!=="body"),h=null;const y=vo(c).position==="fixed";let v=y?Hs(c):c;for(;ho(v)&&!bf(v);){const C=vo(v),x=h0(v);!x&&C.position==="fixed"&&(h=null),(y?!x&&!h:!x&&C.position==="static"&&!!h&&bk.has(h.position)||Ep(v)&&!x&&vC(c,v))?f=f.filter(A=>A!==v):h=C,v=Hs(v)}return a.set(c,f),f}function Ek(c){let{element:a,boundary:l,rootBoundary:f,strategy:h}=c;const v=[...l==="clippingAncestors"?Wv(a)?[]:Ck(a,this._c):[].concat(l),f],C=v[0],x=v.reduce((R,A)=>{const _=hC(a,A,h);return R.top=mi(_.top,R.top),R.right=Bs(_.right,R.right),R.bottom=Bs(_.bottom,R.bottom),R.left=mi(_.left,R.left),R},hC(a,C,h));return{width:x.right-x.left,height:x.bottom-x.top,x:x.left,y:x.top}}function Tk(c){const{width:a,height:l}=fC(c);return{width:a,height:l}}function Rk(c,a,l){const f=Wo(a),h=Yo(a),y=l==="fixed",v=$u(c,!0,y,a);let C={scrollLeft:0,scrollTop:0};const x=$o(0);function R(){x.x=y0(h)}if(f||!f&&!y)if((wf(a)!=="body"||Ep(h))&&(C=Xv(a)),f){const N=$u(a,!0,y,a);x.x=N.x+a.clientLeft,x.y=N.y+a.clientTop}else h&&R();y&&!f&&h&&R();const A=h&&!f&&!y?pC(h,C):$o(0),_=v.left+C.scrollLeft-x.x-A.x,k=v.top+C.scrollTop-x.y-A.y;return{x:_,y:k,width:v.width,height:v.height}}function S0(c){return vo(c).position==="static"}function mC(c,a){if(!Wo(c)||vo(c).position==="fixed")return null;if(a)return a(c);let l=c.offsetParent;return Yo(c)===l&&(l=l.ownerDocument.body),l}function gC(c,a){const l=gi(c);if(Wv(c))return l;if(!Wo(c)){let h=Hs(c);for(;h&&!bf(h);){if(ho(h)&&!S0(h))return h;h=Hs(h)}return l}let f=mC(c,a);for(;f&&sk(f)&&S0(f);)f=mC(f,a);return f&&bf(f)&&S0(f)&&!h0(f)?l:f||pk(c)||l}const Mk=async function(c){const a=this.getOffsetParent||gC,l=this.getDimensions,f=await l(c.floating);return{reference:Rk(c.reference,await a(c.floating),c.strategy),floating:{x:0,y:0,width:f.width,height:f.height}}};function _k(c){return vo(c).direction==="rtl"}const kk={convertOffsetParentRelativeRectToViewportRelativeRect:gk,getDocumentElement:Yo,getClippingRect:Ek,getOffsetParent:gC,getElementRects:Mk,getClientRects:yk,getDimensions:Tk,getScale:xf,isElement:ho,isRTL:_k};function yC(c,a){return c.x===a.x&&c.y===a.y&&c.width===a.width&&c.height===a.height}function Ak(c,a){let l=null,f;const h=Yo(c);function y(){var C;clearTimeout(f),(C=l)==null||C.disconnect(),l=null}function v(C,x){C===void 0&&(C=!1),x===void 0&&(x=1),y();const R=c.getBoundingClientRect(),{left:A,top:_,width:k,height:N}=R;if(C||a(),!k||!N)return;const z=Vv(_),G=Vv(h.clientWidth-(A+k)),J=Vv(h.clientHeight-(_+N)),de=Vv(A),ce={rootMargin:-z+"px "+-G+"px "+-J+"px "+-de+"px",threshold:mi(0,Bs(1,x))||1};let fe=!0;function le(Re){const ve=Re[0].intersectionRatio;if(ve!==x){if(!fe)return v();ve?v(!1,ve):f=setTimeout(()=>{v(!1,1e-7)},1e3)}ve===1&&!yC(R,c.getBoundingClientRect())&&v(),fe=!1}try{l=new IntersectionObserver(le,{...ce,root:h.ownerDocument})}catch{l=new IntersectionObserver(le,ce)}l.observe(c)}return v(!0),y}function Ok(c,a,l,f){f===void 0&&(f={});const{ancestorScroll:h=!0,ancestorResize:y=!0,elementResize:v=typeof ResizeObserver=="function",layoutShift:C=typeof IntersectionObserver=="function",animationFrame:x=!1}=f,R=g0(c),A=h||y?[...R?Tp(R):[],...Tp(a)]:[];A.forEach(de=>{h&&de.addEventListener("scroll",l,{passive:!0}),y&&de.addEventListener("resize",l)});const _=R&&C?Ak(R,l):null;let k=-1,N=null;v&&(N=new ResizeObserver(de=>{let[ue]=de;ue&&ue.target===R&&N&&(N.unobserve(a),cancelAnimationFrame(k),k=requestAnimationFrame(()=>{var ce;(ce=N)==null||ce.observe(a)})),l()}),R&&!x&&N.observe(R),N.observe(a));let z,G=x?$u(c):null;x&&J();function J(){const de=$u(c);G&&!yC(G,de)&&l(),G=de,z=requestAnimationFrame(J)}return l(),()=>{var de;A.forEach(ue=>{h&&ue.removeEventListener("scroll",l),y&&ue.removeEventListener("resize",l)}),_?.(),(de=N)==null||de.disconnect(),N=null,x&&cancelAnimationFrame(z)}}const Nk=nk,Dk=rk,Lk=J_,Pk=ik,Ik=ek,SC=Z_,Uk=ak,zk=(c,a,l)=>{const f=new Map,h={platform:kk,...l},y={...h.platform,_c:f};return q_(c,a,{...h,platform:y})};var Fk=typeof document<"u",jk=function(){},Kv=Fk?Q.useLayoutEffect:jk;function Qv(c,a){if(c===a)return!0;if(typeof c!=typeof a)return!1;if(typeof c=="function"&&c.toString()===a.toString())return!0;let l,f,h;if(c&&a&&typeof c=="object"){if(Array.isArray(c)){if(l=c.length,l!==a.length)return!1;for(f=l;f--!==0;)if(!Qv(c[f],a[f]))return!1;return!0}if(h=Object.keys(c),l=h.length,l!==Object.keys(a).length)return!1;for(f=l;f--!==0;)if(!{}.hasOwnProperty.call(a,h[f]))return!1;for(f=l;f--!==0;){const y=h[f];if(!(y==="_owner"&&c.$$typeof)&&!Qv(c[y],a[y]))return!1}return!0}return c!==c&&a!==a}function wC(c){return typeof window>"u"?1:(c.ownerDocument.defaultView||window).devicePixelRatio||1}function bC(c,a){const l=wC(c);return Math.round(a*l)/l}function w0(c){const a=Q.useRef(c);return Kv(()=>{a.current=c}),a}function Bk(c){c===void 0&&(c={});const{placement:a="bottom",strategy:l="absolute",middleware:f=[],platform:h,elements:{reference:y,floating:v}={},transform:C=!0,whileElementsMounted:x,open:R}=c,[A,_]=Q.useState({x:0,y:0,strategy:l,placement:a,middlewareData:{},isPositioned:!1}),[k,N]=Q.useState(f);Qv(k,f)||N(f);const[z,G]=Q.useState(null),[J,de]=Q.useState(null),ue=Q.useCallback($=>{$!==Re.current&&(Re.current=$,G($))},[]),ce=Q.useCallback($=>{$!==ve.current&&(ve.current=$,de($))},[]),fe=y||z,le=v||J,Re=Q.useRef(null),ve=Q.useRef(null),xe=Q.useRef(A),tt=x!=null,dt=w0(x),Rt=w0(h),lt=w0(R),Ae=Q.useCallback(()=>{if(!Re.current||!ve.current)return;const $={placement:a,strategy:l,middleware:k};Rt.current&&($.platform=Rt.current),zk(Re.current,ve.current,$).then(_e=>{const Ce={..._e,isPositioned:lt.current!==!1};rt.current&&!Qv(xe.current,Ce)&&(xe.current=Ce,Zy.flushSync(()=>{_(Ce)}))})},[k,a,l,Rt,lt]);Kv(()=>{R===!1&&xe.current.isPositioned&&(xe.current.isPositioned=!1,_($=>({...$,isPositioned:!1})))},[R]);const rt=Q.useRef(!1);Kv(()=>(rt.current=!0,()=>{rt.current=!1}),[]),Kv(()=>{if(fe&&(Re.current=fe),le&&(ve.current=le),fe&&le){if(dt.current)return dt.current(fe,le,Ae);Ae()}},[fe,le,Ae,dt,tt]);const st=Q.useMemo(()=>({reference:Re,floating:ve,setReference:ue,setFloating:ce}),[ue,ce]),qe=Q.useMemo(()=>({reference:fe,floating:le}),[fe,le]),Te=Q.useMemo(()=>{const $={position:l,left:0,top:0};if(!qe.floating)return $;const _e=bC(qe.floating,A.x),Ce=bC(qe.floating,A.y);return C?{...$,transform:"translate("+_e+"px, "+Ce+"px)",...wC(qe.floating)>=1.5&&{willChange:"transform"}}:{position:l,left:_e,top:Ce}},[l,C,qe.floating,A.x,A.y]);return Q.useMemo(()=>({...A,update:Ae,refs:st,elements:qe,floatingStyles:Te}),[A,Ae,st,qe,Te])}const Hk=c=>{function a(l){return{}.hasOwnProperty.call(l,"current")}return{name:"arrow",options:c,fn(l){const{element:f,padding:h}=typeof c=="function"?c(l):c;return f&&a(f)?f.current!=null?SC({element:f.current,padding:h}).fn(l):{}:f?SC({element:f,padding:h}).fn(l):{}}}},Vk=(c,a)=>({...Nk(c),options:[c,a]}),$k=(c,a)=>({...Dk(c),options:[c,a]}),Gk=(c,a)=>({...Uk(c),options:[c,a]}),Yk=(c,a)=>({...Lk(c),options:[c,a]}),Wk=(c,a)=>({...Pk(c),options:[c,a]}),Xk=(c,a)=>({...Ik(c),options:[c,a]}),Kk=(c,a)=>({...Hk(c),options:[c,a]});var Qk="Arrow",xC=Q.forwardRef((c,a)=>{const{children:l,width:f=10,height:h=5,...y}=c;return I.jsx(Hu.svg,{...y,ref:a,width:f,height:h,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:c.asChild?l:I.jsx("polygon",{points:"0,0 30,0 15,10"})})});xC.displayName=Qk;var qk=xC;function Zk(c){const[a,l]=Q.useState(void 0);return Vu(()=>{if(c){l({width:c.offsetWidth,height:c.offsetHeight});const f=new ResizeObserver(h=>{if(!Array.isArray(h)||!h.length)return;const y=h[0];let v,C;if("borderBoxSize"in y){const x=y.borderBoxSize,R=Array.isArray(x)?x[0]:x;v=R.inlineSize,C=R.blockSize}else v=c.offsetWidth,C=c.offsetHeight;l({width:v,height:C})});return f.observe(c,{box:"border-box"}),()=>f.unobserve(c)}else l(void 0)},[c]),a}var b0="Popper",[CC,EC]=Kx(b0),[Jk,TC]=CC(b0),RC=c=>{const{__scopePopper:a,children:l}=c,[f,h]=Q.useState(null);return I.jsx(Jk,{scope:a,anchor:f,onAnchorChange:h,children:l})};RC.displayName=b0;var MC="PopperAnchor",_C=Q.forwardRef((c,a)=>{const{__scopePopper:l,virtualRef:f,...h}=c,y=TC(MC,l),v=Q.useRef(null),C=ju(a,v);return Q.useEffect(()=>{y.onAnchorChange(f?.current||v.current)}),f?null:I.jsx(Hu.div,{...h,ref:C})});_C.displayName=MC;var x0="PopperContent",[eA,tA]=CC(x0),kC=Q.forwardRef((c,a)=>{const{__scopePopper:l,side:f="bottom",sideOffset:h=0,align:y="center",alignOffset:v=0,arrowPadding:C=0,avoidCollisions:x=!0,collisionBoundary:R=[],collisionPadding:A=0,sticky:_="partial",hideWhenDetached:k=!1,updatePositionStrategy:N="optimized",onPlaced:z,...G}=c,J=TC(x0,l),[de,ue]=Q.useState(null),ce=ju(a,Ve=>ue(Ve)),[fe,le]=Q.useState(null),Re=Zk(fe),ve=Re?.width??0,xe=Re?.height??0,tt=f+(y!=="center"?"-"+y:""),dt=typeof A=="number"?A:{top:0,right:0,bottom:0,left:0,...A},Rt=Array.isArray(R)?R:[R],lt=Rt.length>0,Ae={padding:dt,boundary:Rt.filter(rA),altBoundary:lt},{refs:rt,floatingStyles:st,placement:qe,isPositioned:Te,middlewareData:$}=Bk({strategy:"fixed",placement:tt,whileElementsMounted:(...Ve)=>Ok(...Ve,{animationFrame:N==="always"}),elements:{reference:J.anchor},middleware:[Vk({mainAxis:h+xe,alignmentAxis:v}),x&&$k({mainAxis:!0,crossAxis:!1,limiter:_==="partial"?Gk():void 0,...Ae}),x&&Yk({...Ae}),Wk({...Ae,apply:({elements:Ve,rects:St,availableWidth:wt,availableHeight:$t})=>{const{width:gn,height:Un}=St.reference,yn=Ve.floating.style;yn.setProperty("--radix-popper-available-width",`${wt}px`),yn.setProperty("--radix-popper-available-height",`${$t}px`),yn.setProperty("--radix-popper-anchor-width",`${gn}px`),yn.setProperty("--radix-popper-anchor-height",`${Un}px`)}}),fe&&Kk({element:fe,padding:C}),aA({arrowWidth:ve,arrowHeight:xe}),k&&Xk({strategy:"referenceHidden",...Ae})]}),[_e,Ce]=NC(qe),V=Bv(z);Vu(()=>{Te&&V?.()},[Te,V]);const oe=$.arrow?.x,Be=$.arrow?.y,He=$.arrow?.centerOffset!==0,[yt,xt]=Q.useState();return Vu(()=>{de&&xt(window.getComputedStyle(de).zIndex)},[de]),I.jsx("div",{ref:rt.setFloating,"data-radix-popper-content-wrapper":"",style:{...st,transform:Te?st.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:yt,"--radix-popper-transform-origin":[$.transformOrigin?.x,$.transformOrigin?.y].join(" "),...$.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:c.dir,children:I.jsx(eA,{scope:l,placedSide:_e,onArrowChange:le,arrowX:oe,arrowY:Be,shouldHideArrow:He,children:I.jsx(Hu.div,{"data-side":_e,"data-align":Ce,...G,ref:ce,style:{...G.style,animation:Te?void 0:"none"}})})})});kC.displayName=x0;var AC="PopperArrow",nA={top:"bottom",right:"left",bottom:"top",left:"right"},OC=Q.forwardRef(function(a,l){const{__scopePopper:f,...h}=a,y=tA(AC,f),v=nA[y.placedSide];return I.jsx("span",{ref:y.onArrowChange,style:{position:"absolute",left:y.arrowX,top:y.arrowY,[v]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[y.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[y.placedSide],visibility:y.shouldHideArrow?"hidden":void 0},children:I.jsx(qk,{...h,ref:l,style:{...h.style,display:"block"}})})});OC.displayName=AC;function rA(c){return c!==null}var aA=c=>({name:"transformOrigin",options:c,fn(a){const{placement:l,rects:f,middlewareData:h}=a,v=h.arrow?.centerOffset!==0,C=v?0:c.arrowWidth,x=v?0:c.arrowHeight,[R,A]=NC(l),_={start:"0%",center:"50%",end:"100%"}[A],k=(h.arrow?.x??0)+C/2,N=(h.arrow?.y??0)+x/2;let z="",G="";return R==="bottom"?(z=v?_:`${k}px`,G=`${-x}px`):R==="top"?(z=v?_:`${k}px`,G=`${f.floating.height+x}px`):R==="right"?(z=`${-x}px`,G=v?_:`${N}px`):R==="left"&&(z=`${f.floating.width+x}px`,G=v?_:`${N}px`),{data:{x:z,y:G}}}});function NC(c){const[a,l="center"]=c.split("-");return[a,l]}var iA=RC,oA=_C,lA=kC,sA=OC;function uA(c,a){return Q.useReducer((l,f)=>a[l][f]??l,c)}var DC=c=>{const{present:a,children:l}=c,f=cA(a),h=typeof l=="function"?l({present:f.isPresent}):Q.Children.only(l),y=ju(f.ref,fA(h));return typeof l=="function"||f.isPresent?Q.cloneElement(h,{ref:y}):null};DC.displayName="Presence";function cA(c){const[a,l]=Q.useState(),f=Q.useRef(null),h=Q.useRef(c),y=Q.useRef("none"),v=c?"mounted":"unmounted",[C,x]=uA(v,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return Q.useEffect(()=>{const R=qv(f.current);y.current=C==="mounted"?R:"none"},[C]),Vu(()=>{const R=f.current,A=h.current;if(A!==c){const k=y.current,N=qv(R);c?x("MOUNT"):N==="none"||R?.display==="none"?x("UNMOUNT"):x(A&&k!==N?"ANIMATION_OUT":"UNMOUNT"),h.current=c}},[c,x]),Vu(()=>{if(a){let R;const A=a.ownerDocument.defaultView??window,_=N=>{const G=qv(f.current).includes(N.animationName);if(N.target===a&&G&&(x("ANIMATION_END"),!h.current)){const J=a.style.animationFillMode;a.style.animationFillMode="forwards",R=A.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=J)})}},k=N=>{N.target===a&&(y.current=qv(f.current))};return a.addEventListener("animationstart",k),a.addEventListener("animationcancel",_),a.addEventListener("animationend",_),()=>{A.clearTimeout(R),a.removeEventListener("animationstart",k),a.removeEventListener("animationcancel",_),a.removeEventListener("animationend",_)}}else x("ANIMATION_END")},[a,x]),{isPresent:["mounted","unmountSuspended"].includes(C),ref:Q.useCallback(R=>{f.current=R?getComputedStyle(R):null,l(R)},[])}}function qv(c){return c?.animationName||"none"}function fA(c){let a=Object.getOwnPropertyDescriptor(c.props,"ref")?.get,l=a&&"isReactWarning"in a&&a.isReactWarning;return l?c.ref:(a=Object.getOwnPropertyDescriptor(c,"ref")?.get,l=a&&"isReactWarning"in a&&a.isReactWarning,l?c.props.ref:c.props.ref||c.ref)}var dA=rx[" useInsertionEffect ".trim().toString()]||Vu;function pA({prop:c,defaultProp:a,onChange:l=()=>{},caller:f}){const[h,y,v]=hA({defaultProp:a,onChange:l}),C=c!==void 0,x=C?c:h;{const A=Q.useRef(c!==void 0);Q.useEffect(()=>{const _=A.current;_!==C&&console.warn(`${f} is changing from ${_?"controlled":"uncontrolled"} to ${C?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),A.current=C},[C,f])}const R=Q.useCallback(A=>{if(C){const _=vA(A)?A(c):A;_!==c&&v.current?.(_)}else y(A)},[C,c,y,v]);return[x,R]}function hA({defaultProp:c,onChange:a}){const[l,f]=Q.useState(c),h=Q.useRef(l),y=Q.useRef(a);return dA(()=>{y.current=a},[a]),Q.useEffect(()=>{h.current!==l&&(y.current?.(l),h.current=l)},[l,h]),[l,f,y]}function vA(c){return typeof c=="function"}var mA=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),gA="VisuallyHidden",LC=Q.forwardRef((c,a)=>I.jsx(Hu.span,{...c,ref:a,style:{...mA,...c.style}}));LC.displayName=gA;var yA=LC,[Zv,n3]=Kx("Tooltip",[EC]),Jv=EC(),PC="TooltipProvider",SA=700,C0="tooltip.open",[wA,E0]=Zv(PC),em=c=>{const{__scopeTooltip:a,delayDuration:l=SA,skipDelayDuration:f=300,disableHoverableContent:h=!1,children:y}=c,v=Q.useRef(!0),C=Q.useRef(!1),x=Q.useRef(0);return Q.useEffect(()=>{const R=x.current;return()=>window.clearTimeout(R)},[]),I.jsx(wA,{scope:a,isOpenDelayedRef:v,delayDuration:l,onOpen:Q.useCallback(()=>{window.clearTimeout(x.current),v.current=!1},[]),onClose:Q.useCallback(()=>{window.clearTimeout(x.current),x.current=window.setTimeout(()=>v.current=!0,f)},[f]),isPointerInTransitRef:C,onPointerInTransitChange:Q.useCallback(R=>{C.current=R},[]),disableHoverableContent:h,children:y})};em.displayName=PC;var Rp="Tooltip",[bA,tm]=Zv(Rp),IC=c=>{const{__scopeTooltip:a,children:l,open:f,defaultOpen:h,onOpenChange:y,disableHoverableContent:v,delayDuration:C}=c,x=E0(Rp,c.__scopeTooltip),R=Jv(a),[A,_]=Q.useState(null),k=F_(),N=Q.useRef(0),z=v??x.disableHoverableContent,G=C??x.delayDuration,J=Q.useRef(!1),[de,ue]=pA({prop:f,defaultProp:h??!1,onChange:ve=>{ve?(x.onOpen(),document.dispatchEvent(new CustomEvent(C0))):x.onClose(),y?.(ve)},caller:Rp}),ce=Q.useMemo(()=>de?J.current?"delayed-open":"instant-open":"closed",[de]),fe=Q.useCallback(()=>{window.clearTimeout(N.current),N.current=0,J.current=!1,ue(!0)},[ue]),le=Q.useCallback(()=>{window.clearTimeout(N.current),N.current=0,ue(!1)},[ue]),Re=Q.useCallback(()=>{window.clearTimeout(N.current),N.current=window.setTimeout(()=>{J.current=!0,ue(!0),N.current=0},G)},[G,ue]);return Q.useEffect(()=>()=>{N.current&&(window.clearTimeout(N.current),N.current=0)},[]),I.jsx(iA,{...R,children:I.jsx(bA,{scope:a,contentId:k,open:de,stateAttribute:ce,trigger:A,onTriggerChange:_,onTriggerEnter:Q.useCallback(()=>{x.isOpenDelayedRef.current?Re():fe()},[x.isOpenDelayedRef,Re,fe]),onTriggerLeave:Q.useCallback(()=>{z?le():(window.clearTimeout(N.current),N.current=0)},[le,z]),onOpen:fe,onClose:le,disableHoverableContent:z,children:l})})};IC.displayName=Rp;var T0="TooltipTrigger",UC=Q.forwardRef((c,a)=>{const{__scopeTooltip:l,...f}=c,h=tm(T0,l),y=E0(T0,l),v=Jv(l),C=Q.useRef(null),x=ju(a,C,h.onTriggerChange),R=Q.useRef(!1),A=Q.useRef(!1),_=Q.useCallback(()=>R.current=!1,[]);return Q.useEffect(()=>()=>document.removeEventListener("pointerup",_),[_]),I.jsx(oA,{asChild:!0,...v,children:I.jsx(Hu.button,{"aria-describedby":h.open?h.contentId:void 0,"data-state":h.stateAttribute,...f,ref:x,onPointerMove:Ul(c.onPointerMove,k=>{k.pointerType!=="touch"&&!A.current&&!y.isPointerInTransitRef.current&&(h.onTriggerEnter(),A.current=!0)}),onPointerLeave:Ul(c.onPointerLeave,()=>{h.onTriggerLeave(),A.current=!1}),onPointerDown:Ul(c.onPointerDown,()=>{h.open&&h.onClose(),R.current=!0,document.addEventListener("pointerup",_,{once:!0})}),onFocus:Ul(c.onFocus,()=>{R.current||h.onOpen()}),onBlur:Ul(c.onBlur,h.onClose),onClick:Ul(c.onClick,h.onClose)})})});UC.displayName=T0;var xA="TooltipPortal",[r3,CA]=Zv(xA,{forceMount:void 0}),Cf="TooltipContent",zC=Q.forwardRef((c,a)=>{const l=CA(Cf,c.__scopeTooltip),{forceMount:f=l.forceMount,side:h="top",...y}=c,v=tm(Cf,c.__scopeTooltip);return I.jsx(DC,{present:f||v.open,children:v.disableHoverableContent?I.jsx(FC,{side:h,...y,ref:a}):I.jsx(EA,{side:h,...y,ref:a})})}),EA=Q.forwardRef((c,a)=>{const l=tm(Cf,c.__scopeTooltip),f=E0(Cf,c.__scopeTooltip),h=Q.useRef(null),y=ju(a,h),[v,C]=Q.useState(null),{trigger:x,onClose:R}=l,A=h.current,{onPointerInTransitChange:_}=f,k=Q.useCallback(()=>{C(null),_(!1)},[_]),N=Q.useCallback((z,G)=>{const J=z.currentTarget,de={x:z.clientX,y:z.clientY},ue=kA(de,J.getBoundingClientRect()),ce=AA(de,ue),fe=OA(G.getBoundingClientRect()),le=DA([...ce,...fe]);C(le),_(!0)},[_]);return Q.useEffect(()=>()=>k(),[k]),Q.useEffect(()=>{if(x&&A){const z=J=>N(J,A),G=J=>N(J,x);return x.addEventListener("pointerleave",z),A.addEventListener("pointerleave",G),()=>{x.removeEventListener("pointerleave",z),A.removeEventListener("pointerleave",G)}}},[x,A,N,k]),Q.useEffect(()=>{if(v){const z=G=>{const J=G.target,de={x:G.clientX,y:G.clientY},ue=x?.contains(J)||A?.contains(J),ce=!NA(de,v);ue?k():ce&&(k(),R())};return document.addEventListener("pointermove",z),()=>document.removeEventListener("pointermove",z)}},[x,A,v,R,k]),I.jsx(FC,{...c,ref:y})}),[TA,RA]=Zv(Rp,{isInside:!1}),MA=AM("TooltipContent"),FC=Q.forwardRef((c,a)=>{const{__scopeTooltip:l,children:f,"aria-label":h,onEscapeKeyDown:y,onPointerDownOutside:v,...C}=c,x=tm(Cf,l),R=Jv(l),{onClose:A}=x;return Q.useEffect(()=>(document.addEventListener(C0,A),()=>document.removeEventListener(C0,A)),[A]),Q.useEffect(()=>{if(x.trigger){const _=k=>{k.target?.contains(x.trigger)&&A()};return window.addEventListener("scroll",_,{capture:!0}),()=>window.removeEventListener("scroll",_,{capture:!0})}},[x.trigger,A]),I.jsx(Zx,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:y,onPointerDownOutside:v,onFocusOutside:_=>_.preventDefault(),onDismiss:A,children:I.jsxs(lA,{"data-state":x.stateAttribute,...R,...C,ref:a,style:{...C.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[I.jsx(MA,{children:f}),I.jsx(TA,{scope:l,isInside:!0,children:I.jsx(yA,{id:x.contentId,role:"tooltip",children:h||f})})]})})});zC.displayName=Cf;var jC="TooltipArrow",_A=Q.forwardRef((c,a)=>{const{__scopeTooltip:l,...f}=c,h=Jv(l);return RA(jC,l).isInside?null:I.jsx(sA,{...h,...f,ref:a})});_A.displayName=jC;function kA(c,a){const l=Math.abs(a.top-c.y),f=Math.abs(a.bottom-c.y),h=Math.abs(a.right-c.x),y=Math.abs(a.left-c.x);switch(Math.min(l,f,h,y)){case y:return"left";case h:return"right";case l:return"top";case f:return"bottom";default:throw new Error("unreachable")}}function AA(c,a,l=5){const f=[];switch(a){case"top":f.push({x:c.x-l,y:c.y+l},{x:c.x+l,y:c.y+l});break;case"bottom":f.push({x:c.x-l,y:c.y-l},{x:c.x+l,y:c.y-l});break;case"left":f.push({x:c.x+l,y:c.y-l},{x:c.x+l,y:c.y+l});break;case"right":f.push({x:c.x-l,y:c.y-l},{x:c.x-l,y:c.y+l});break}return f}function OA(c){const{top:a,right:l,bottom:f,left:h}=c;return[{x:h,y:a},{x:l,y:a},{x:l,y:f},{x:h,y:f}]}function NA(c,a){const{x:l,y:f}=c;let h=!1;for(let y=0,v=a.length-1;y<a.length;v=y++){const C=a[y],x=a[v],R=C.x,A=C.y,_=x.x,k=x.y;A>f!=k>f&&l<(_-R)*(f-A)/(k-A)+R&&(h=!h)}return h}function DA(c){const a=c.slice();return a.sort((l,f)=>l.x<f.x?-1:l.x>f.x?1:l.y<f.y?-1:l.y>f.y?1:0),LA(a)}function LA(c){if(c.length<=1)return c.slice();const a=[];for(let f=0;f<c.length;f++){const h=c[f];for(;a.length>=2;){const y=a[a.length-1],v=a[a.length-2];if((y.x-v.x)*(h.y-v.y)>=(y.y-v.y)*(h.x-v.x))a.pop();else break}a.push(h)}a.pop();const l=[];for(let f=c.length-1;f>=0;f--){const h=c[f];for(;l.length>=2;){const y=l[l.length-1],v=l[l.length-2];if((y.x-v.x)*(h.y-v.y)>=(y.y-v.y)*(h.x-v.x))l.pop();else break}l.push(h)}return l.pop(),a.length===1&&l.length===1&&a[0].x===l[0].x&&a[0].y===l[0].y?a:a.concat(l)}var PA=em,IA=IC,UA=UC,BC=zC;const zA=PA,R0=IA,M0=UA,nm=Q.forwardRef(({className:c,sideOffset:a=4,...l},f)=>I.jsx(BC,{ref:f,sideOffset:a,className:Bx("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",c),...l}));nm.displayName=BC.displayName;const FA=()=>{const{setState:c,setMenuType:a}=Ft(),{isFullscreen:l,toggleFullscreen:f}=bp(),h=Q.useRef(null),y=()=>{a(Pt.COUNTDOWN),c(ot.COUNTDOWN),setTimeout(()=>{c(ot.PLAYING)},3e3)},v=()=>{a(Pt.SETTINGS)},C=()=>{const x=h.current?.closest("sigurd-startup");x?f(x):f()};return I.jsxs("div",{className:"flex flex-col items-center justify-center h-full rounded-lg",children:[I.jsx(zA,{children:I.jsxs(R0,{children:[I.jsx(M0,{asChild:!0,children:I.jsx(vi,{onClick:C,variant:"outline",className:"absolute top-4 right-4 bg-background-80 text-foreground backdrop-blur-sm border-none hover:bg-primary hover:text-black h-10 w-10",children:l?I.jsx(Wx,{className:"text-foreground hover:text-primary",size:24}):I.jsx(Yx,{className:"text-foreground hover:text-primary",size:24})})}),I.jsx(nm,{children:l?"Avslutt fullskjerm (F11 eller F)":"Fullskjerm (F11 eller F)"})]})}),I.jsxs("div",{className:"text-center mb-8",children:[I.jsx("h1",{className:"text-4xl font-bold text-white mb-2",children:"Sigurd Startup"}),I.jsx("p",{className:"text-muted-foreground",children:"Samle så mye finansiering som mulig!"})]}),I.jsxs("div",{className:"space-y-4 w-[70%]",children:[I.jsxs(vi,{onClick:y,className:"w-full bg-primary hover:bg-primary-80 text-white font-bold py-3 text-lg transition-all duration-200 uppercase flex items-center justify-center gap-2",children:[I.jsx(l0,{size:20}),"Start"]}),I.jsxs(vi,{onClick:v,variant:"outline",className:"w-full border-secondary text-muted-foreground hover:bg-secondary hover:text-white font-bold py-3 text-lg transition-all duration-200 uppercase flex items-center justify-center gap-2",children:[I.jsx(Xx,{size:20}),"Innstillinger"]})]})]})},jA=()=>{const[c,a]=Q.useState(3),{currentMap:l}=Ft();return Q.useEffect(()=>{{const f=setInterval(()=>{a(h=>h>1?h-1:0)},1e3);return()=>clearInterval(f)}},[]),c===0?null:I.jsx("div",{className:"text-center",children:I.jsxs(I.Fragment,{children:[I.jsx("div",{className:"text-8xl font-bold text-primary",children:c}),I.jsxs("div",{className:"flex items-center justify-center gap-2",children:[I.jsx("div",{className:"w-2 h-2 bg-white rounded-full p-1 animate-pulse"}),I.jsx("p",{className:"text-2xl text-white uppercase italic",children:l?.name}),I.jsx("div",{className:"w-2 h-2 bg-white rounded-full p-1 animate-pulse"})]})]})})},BA=()=>{const{score:c,lives:a,currentLevel:l,setState:f,setMenuType:h,isPaused:y,multiplier:v,multiplierScore:C}=Ft(),x=Q.useRef(null),{isFullscreen:R,toggleFullscreen:A}=bp(),_=()=>{y?f(ot.PLAYING):(f(ot.PAUSED),h(Pt.PAUSE))},k=()=>{const z=x.current?.closest("sigurd-startup");z?A(z):A()},N=qR(C,v);return I.jsxs("div",{ref:x,className:"flex justify-between items-center w-full h-full",children:[I.jsx("div",{className:"absolute top-4 left-1/2 transform -translate-x-1/2 z-10 bg-background-80 text-foreground px-4 py-2 rounded-lg backdrop-blur-sm pointer-events-auto",children:I.jsxs("div",{className:"flex items-center gap-4 text-sm font-mono",children:[I.jsx("div",{className:"text-center",children:I.jsxs("div",{className:"text-primary font-bold flex items-center gap-1",children:[I.jsx(w_,{size:16}),c.toLocaleString()]})}),I.jsx("div",{className:"w-px h-8 bg-border"}),I.jsx("div",{className:"text-center",children:I.jsxs("div",{className:"text-primary font-bold flex items-center gap-1",children:[I.jsx(x_,{size:16}),l.toLocaleString()]})}),I.jsx("div",{className:"w-px h-8 bg-border"}),I.jsxs("div",{className:"min-w-20 flex justify-center border border-primary p-1 rounded-lg relative overflow-hidden",children:[I.jsx("div",{className:"absolute inset-0 bg-primary-20 transition-all duration-300 ease-out",style:{width:`${N*100}%`}}),I.jsxs("div",{className:"text-primary text-center font-bold flex items-center gap-1 relative z-10",children:[I.jsx(T_,{size:16}),"x",v]})]})]})}),I.jsxs("div",{className:"flex items-center space-x-4 absolute right-4 top-4",children:[I.jsx(em,{children:I.jsxs(R0,{children:[I.jsx(M0,{asChild:!0,children:I.jsx(vi,{onClick:_,variant:"outline",className:"bg-background-80 text-foreground backdrop-blur-sm border-none hover:bg-primary hover:text-black h-10 w-10",children:y?I.jsx(l0,{className:"text-white hover:text-primary",size:24}):I.jsx(C_,{className:"text-foreground hover:text-primary",size:24})})}),I.jsx(nm,{children:"Pause Spill (P)"})]})}),I.jsx(em,{children:I.jsxs(R0,{children:[I.jsx(M0,{asChild:!0,children:I.jsx(vi,{onClick:k,variant:"outline",className:"bg-background-80 text-foreground backdrop-blur-sm border-none hover:bg-primary hover:text-black h-10 w-10",children:R?I.jsx(Wx,{className:"text-foreground hover:text-primary",size:24}):I.jsx(Yx,{className:"text-foreground hover:text-primary",size:24})})}),I.jsx(nm,{children:R?"Avslutt fullskjerm (F11 eller F)":"Fullskjerm (F11 eller F)"})]})})]}),I.jsx("div",{className:`absolute left-3 bottom-2 ${R?"bottom-4":"bottom-2"}`,children:I.jsxs("div",{className:"text-xl font-bold text-red-400 flex items-center gap-1",children:[Array.from({length:3}).map((z,G)=>I.jsx(b_,{color:"#ff3143",size:R?25:20,fill:G<a?"#ff3143":"none"},G)),a>3?I.jsxs("p",{children:["+ ",a-3]}):""]})})]})},HA=()=>{const{setState:c,setMenuType:a,resetGame:l}=Ft(),f=()=>{a(Pt.COUNTDOWN),c(ot.COUNTDOWN),setTimeout(()=>{c(ot.PLAYING)},3e3)},h=()=>{a(Pt.SETTINGS)},y=()=>{l(),c(ot.MENU),a(Pt.START)},v=()=>{const{resetBombState:C,resetPlayer:x,resetEffects:R,clearAllFloatingTexts:A,currentMap:_}=Ft.getState();if(C(),x(),R(),A(),_){const{initializeLevel:k}=Ft.getState();k(_)}c(ot.MENU),a(Pt.COUNTDOWN),c(ot.COUNTDOWN),setTimeout(()=>{c(ot.PLAYING)},3e3)};return I.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:I.jsxs("div",{className:"space-y-4",children:[I.jsxs(vi,{onClick:f,className:"w-full bg-primary hover:bg-primary-80 text-white font-bold py-3 text-md transition-all duration-200 uppercase flex items-center justify-center gap-2",children:[I.jsx(l0,{size:20}),"Fortsett"]}),I.jsxs(vi,{onClick:h,variant:"outline",className:"w-full border-secondary text-muted-foreground bg-secondary hover:text-white font-bold py-3 text-md transition-all duration-200 uppercase flex items-center justify-center gap-2",children:[I.jsx(Xx,{size:20}),"Innstillinger"]}),I.jsxs(vi,{onClick:v,variant:"outline",className:"w-full border-secondary text-muted-foreground bg-secondary hover:text-white font-bold py-3 text-md transition-all duration-200 uppercase flex items-center justify-center gap-2",children:[I.jsx(E_,{size:20}),"Start på nytt"]}),I.jsxs(vi,{onClick:y,variant:"default",className:"w-full bg-red-600 hover:bg-red-600/80 text-white font-bold py-3 text-md transition-all duration-200 uppercase flex items-center justify-center gap-2",children:[I.jsx(Gx,{size:20}),"hovedmeny"]})]})})},VA=()=>{const{setMenuType:c,previousMenu:a}=Ft(),l=Ft(_=>_.audioSettings),f=Ft(_=>_.updateAudioSettings),{masterVolume:h,musicVolume:y,sfxVolume:v,masterMuted:C,musicMuted:x,sfxMuted:R}=l||{masterVolume:80,musicVolume:70,sfxVolume:90,masterMuted:!1,musicMuted:!1,sfxMuted:!1},A=()=>{c(a||Pt.START)};return I.jsxs("div",{className:"flex flex-col items-center justify-center h-full w-full",children:[I.jsxs("div",{className:"flex items-center mb-6 w-[70%] gap-2",children:[I.jsx(vi,{onClick:A,variant:"default",className:"bg-primary hover:bg-primary/80 text-white w-10 h-10",children:I.jsx($x,{size:25})}),I.jsx("h2",{className:"text-2xl font-bold text-white uppercase",children:"Innstillinger"})]}),I.jsxs("div",{className:"space-y-2 w-[70%]",children:[I.jsxs("div",{className:"p-3 bg-card rounded-md",children:[I.jsxs("div",{className:"flex justify-between items-center mb-2",children:[I.jsx("span",{className:"text-muted-foreground",children:"Master volum"}),I.jsx("button",{onClick:()=>f({masterMuted:!C}),className:`px-3 py-1 rounded text-sm font-mono ${C?"bg-red-600 text-white":"bg-secondary text-white"}`,children:C?"Muted":`${h}%`})]}),I.jsx("input",{type:"range",min:"0",max:"100",value:C?0:h,onChange:_=>f({masterVolume:Number(_.target.value)}),className:"w-full accent-primary",disabled:C})]}),I.jsxs("div",{className:"p-3 bg-card rounded-md",children:[I.jsxs("div",{className:"flex justify-between items-center mb-2",children:[I.jsx("span",{className:"text-muted-foreground",children:"Musikk volum"}),I.jsx("button",{onClick:()=>f({musicMuted:!x}),className:`px-3 py-1 rounded text-sm font-mono ${x?"bg-red-600 text-white":"bg-secondary text-white"}`,children:x?"Muted":`${y}%`})]}),I.jsx("input",{type:"range",min:"0",max:"100",value:x?0:y,onChange:_=>f({musicVolume:Number(_.target.value)}),className:"w-full accent-primary",disabled:x})]}),I.jsxs("div",{className:"p-3 bg-card rounded-md",children:[I.jsxs("div",{className:"flex justify-between items-center mb-2",children:[I.jsx("span",{className:"text-muted-foreground",children:"Lyd effekter"}),I.jsx("button",{onClick:()=>f({sfxMuted:!R}),className:`px-3 py-1 rounded text-sm font-mono ${R?"bg-red-600 text-white":"bg-secondary text-white"}`,children:R?"Muted":`${v}%`})]}),I.jsx("input",{type:"range",min:"0",max:"100",value:R?0:v,onChange:_=>f({sfxVolume:Number(_.target.value)}),className:"w-full accent-primary",disabled:R})]}),I.jsx("div",{className:"text-center text-sm text-gray-400",children:I.jsx("p",{children:"(Trykk på tallene for å mute lyd)"})})]})]})},$A=(c,a={})=>{const{duration:l=3e3,steps:f=60,easing:h="ease-out",delay:y=0,onComplete:v}=a,[C,x]=Q.useState(0),R=Q.useRef(!1),A=Q.useRef(c);return Q.useEffect(()=>{if(c===0){x(0),R.current=!1;return}if(A.current!==c&&(R.current=!1,x(0),A.current=c),R.current){x(c);return}const _=setTimeout(()=>{const k=l/f;let N=0;const z=setInterval(()=>{N++;const G=N/f;let J;switch(h){case"linear":J=G;break;case"ease-out":J=1-(1-G)*(1-G);break;case"gentle-ease-out":J=1-Math.pow(1-G,1.5);break;case"ease-in":J=G*G;break;case"ease-in-out":J=G<.5?2*G*G:1-Math.pow(-2*G+2,2)/2;break;default:J=1-(1-G)*(1-G)}const de=c*J,ue=Math.round(de);x(ue),N>=f&&(x(c),R.current=!0,clearInterval(z),v&&v())},k);return()=>clearInterval(z)},y);return()=>clearTimeout(_)},[c,l,f,h,y,v]),C},GA=()=>{const{correctOrderCount:c,currentMap:a,currentLevel:l,nextLevel:f,setState:h,setMenuType:y,initializeLevel:v,setBonusAnimationComplete:C}=Ft(),x=H.BONUS_POINTS[c]||5e4,R=$A(x,{duration:6e3,steps:120,easing:"gentle-ease-out",delay:200,onComplete:()=>C(!0)});return I.jsxs("div",{className:"text-center max-w-md",children:[I.jsxs("h1",{className:"text-4xl font-bold text-primary mb-4 uppercase",children:[a?.name," Fullført!"]}),I.jsx("div",{className:"text-white mb-6 space-y-4",children:x>0&&I.jsxs("div",{className:"flex flex-col items-center justify-center gap-5",children:[I.jsxs("div",{className:"text-2xl",children:["Bra jobba! Du samlet"," ",I.jsx("span",{className:"font-bold text-primary animate-pulse",children:c})," ","av 23 finansiering og unngikk byrokratet!"," "]}),I.jsxs("div",{className:"text-4xl font-bold animate-pulse",children:[R.toLocaleString()," kr"]}),I.jsx("div",{className:"text-sm text-gray-400 mt-2",children:vf.length>l?`Fortsetter til ${vf[l]?.name||"Neste nivå"}...`:""})]})})]})},YA=()=>{const{score:c,resetGame:a}=Ft(),l=()=>{a()};return I.jsxs("div",{className:"text-center max-w-md flex flex-col items-center justify-center gap-4",children:[I.jsx("h1",{className:"text-2xl font-bold uppercase",children:"slutt"}),I.jsxs("div",{className:"text-white mb-6 space-y-4",children:[I.jsx("div",{className:"text-2xl text-primary",children:"Du har klart det umulige!"}),I.jsx("div",{className:"text-lg",children:"Du hjalp Sigurd med å unngå byrokratiske hindringer og samle finansiering."}),I.jsxs("div",{className:"text-2xl flex flex-col items-center justify-center gap-2",children:[I.jsx("div",{className:"text-foreground",children:"Total finansiering samlet:"}),I.jsx("div",{className:"font-bold text-3xl text-primary",children:c.toLocaleString()})]})]}),I.jsx("div",{className:"flex items-center justify-center gap-2",children:I.jsx("button",{onClick:l,className:"bg-primary text-white font-bold hover:bg-primary/80 rounded-lg py-1 px-3 text-lg transition-all duration-200 transform hover:scale-105 flex items-center justify-center gap-2",children:I.jsx(Gx,{className:"w-7 h-7",strokeWidth:2})})})]})},WA=()=>{const{score:c,resetGame:a,levelHistory:l}=Ft(),f=()=>{a()};return I.jsxs("div",{className:"bg-gradient-to-b rounded-lg text-center max-w-md",children:[I.jsx("h1",{className:"text-4xl font-bold text-red-400 mb-4 uppercase",children:"konkurs"}),I.jsxs("div",{className:"text-white mb-6 space-y-3",children:[I.jsx("div",{className:"text-2xl",children:I.jsxs("span",{className:"text-yellow-400",children:["Total finansiering:"," ",I.jsxs("span",{className:"font-bold text-white",children:[c.toLocaleString()," kr"]})]})}),l.length>0&&I.jsx("div",{className:"mt-6 border-t border-gray-600 pt-4",children:I.jsx("div",{className:"overflow-x-auto",children:I.jsxs("table",{className:"w-full text-sm",children:[I.jsx("thead",{children:I.jsxs("tr",{className:"border-b border-gray-600",children:[I.jsx("th",{className:"text-left py-2 px-2 text-primary font-semibold",children:"Bane"}),I.jsx("th",{className:"text-left py-2 px-2 text-primary font-semibold",children:"Mynter"}),I.jsx("th",{className:"text-left py-2 px-2 text-primary font-semibold",children:"Finansiering"}),I.jsx("th",{className:"text-left py-2 px-2 text-primary font-semibold",children:"Bonus"})]})}),I.jsx("tbody",{children:l.map((h,y)=>I.jsxs("tr",{className:"border-b border-gray-700/50",children:[I.jsxs("td",{className:"py-2 px-2 text-gray-300",children:[h.level," (",h.mapName,")"]}),I.jsx("td",{className:"py-2 px-2 text-gray-300",children:h.coinsCollected}),I.jsx("td",{className:"py-2 px-2 text-gray-300",children:h.score.toLocaleString()}),I.jsx("td",{className:"py-2 px-2",children:h.bonus>0?I.jsxs("span",{className:"text-yellow-400 font-semibold",children:[h.bonus.toLocaleString()," kr"]}):I.jsx("span",{className:"text-gray-500",children:"-"})})]},y))})]})})})]}),I.jsx(vi,{onClick:f,className:"bg-primary hover:bg-primary/80 text-white font-bold py-3 px-8 text-lg transition-all duration-200 transform hover:scale-105 uppercase",children:"prøv igjen"})]})},XA=()=>{const{setMenuType:c,previousMenu:a}=Ft(),l=Ft(_=>_.audioSettings),f=Ft(_=>_.updateAudioSettings),{masterVolume:h,musicVolume:y,sfxVolume:v,masterMuted:C,musicMuted:x,sfxMuted:R}=l||{masterVolume:80,musicVolume:70,sfxVolume:90,masterMuted:!1,musicMuted:!1,sfxMuted:!1},A=()=>{c(a||Pt.START)};return I.jsx("div",{className:"flex items-center justify-center h-full",children:I.jsxs("div",{className:"bg-card backdrop-blur-sm rounded-xl p-6 border border-secondary max-w-md w-full",children:[I.jsxs("div",{className:"flex items-center mb-6 gap-2",children:[I.jsx(vi,{onClick:A,variant:"ghost",className:"text-muted-foreground hover:text-white p-1",children:I.jsx($x,{size:20})}),I.jsx("h2",{className:"text-xl font-bold text-primary",children:"Lydinnstillinger"})]}),I.jsxs("div",{className:"space-y-4",children:[I.jsxs("div",{children:[I.jsxs("div",{className:"flex justify-between items-center mb-2",children:[I.jsx("span",{className:"text-muted-foreground",children:"Master Volume"}),I.jsx("button",{onClick:()=>f({masterMuted:!C}),className:`px-3 py-1 rounded text-sm font-mono ${C?"bg-red-600 text-white":"bg-secondary text-white"}`,children:C?"Muted":`${h}%`})]}),I.jsx("input",{type:"range",min:"0",max:"100",value:C?0:h,onChange:_=>f({masterVolume:Number(_.target.value)}),className:"w-full accent-primary",disabled:C})]}),I.jsxs("div",{children:[I.jsxs("div",{className:"flex justify-between items-center mb-2",children:[I.jsx("span",{className:"text-muted-foreground",children:"Music Volume"}),I.jsx("button",{onClick:()=>f({musicMuted:!x}),className:`px-3 py-1 rounded text-sm font-mono ${x?"bg-red-600 text-white":"bg-secondary text-white"}`,children:x?"Muted":`${y}%`})]}),I.jsx("input",{type:"range",min:"0",max:"100",value:x?0:y,onChange:_=>f({musicVolume:Number(_.target.value)}),className:"w-full accent-primary",disabled:x})]}),I.jsxs("div",{children:[I.jsxs("div",{className:"flex justify-between items-center mb-2",children:[I.jsx("span",{className:"text-muted-foreground",children:"Sound Effects"}),I.jsx("button",{onClick:()=>f({sfxMuted:!R}),className:`px-3 py-1 rounded text-sm font-mono ${R?"bg-red-600 text-white":"bg-secondary text-white"}`,children:R?"Muted":`${v}%`})]}),I.jsx("input",{type:"range",min:"0",max:"100",value:R?0:v,onChange:_=>f({sfxVolume:Number(_.target.value)}),className:"w-full accent-primary",disabled:R})]})]})]})})},Xo=({children:c,transparent:a})=>I.jsx("div",{className:`absolute inset-0 flex items-center justify-center z-50 rounded-lg ${a?"bg-transparent":"bg-menu backdrop-blur-sm"}`,children:c}),KA=c=>{const{currentState:a,setState:l,setMenuType:f,isPaused:h}=Ft();Q.useEffect(()=>{const y=v=>{if(!(v.target instanceof HTMLInputElement||v.target instanceof HTMLTextAreaElement))switch(v.key){case"F11":case"f":v.preventDefault(),c?.();break;case"Escape":document.fullscreenElement||document.webkitFullscreenElement?(v.preventDefault(),c?.()):a===ot.PLAYING&&(v.preventDefault(),h?l(ot.PLAYING):(l(ot.PAUSED),f(Pt.PAUSE)));break;case"p":case"P":a===ot.PLAYING&&(v.preventDefault(),h?l(ot.PLAYING):(l(ot.PAUSED),f(Pt.PAUSE)));break;case" ":a===ot.PAUSED&&(v.preventDefault(),f(Pt.COUNTDOWN),l(ot.COUNTDOWN),setTimeout(()=>{l(ot.PLAYING)},3e3));break}};return document.addEventListener("keydown",y),()=>{document.removeEventListener("keydown",y)}},[a,h,l,f,c])},QA=()=>{const[c,a]=Q.useState(!0);return Q.useEffect(()=>{gx.preloadAllBackgrounds().then(()=>{Ge.flow("All background images preloaded"),a(!1)}).catch(l=>{Ge.warn("Failed to preload some background images"),a(!1)})},[]),{isPreloading:c}},Ko={major:2,minor:2,patch:3,build:0,timestamp:1755080052168,hash:"Z1B5ZE",full:"2.2.3"},_0=Ko.full,Gu=()=>({version:_0,major:Ko.major,minor:Ko.minor,patch:Ko.patch,build:Ko.build,timestamp:Ko.timestamp,hash:Ko.hash}),HC=()=>{console.log(`🎮 Sigurd Startup Game v${_0} (Build ${Ko.build})`),console.log(`📦 Hash: ${Ko.hash}`),console.log(`⏰ Built: ${new Date(Ko.timestamp).toISOString()}`)},qA=()=>{const{currentState:c,showMenu:a}=Ft(),l=Pv.useRef(null),{toggleFullscreen:f}=bp(),{isFullscreen:h}=bp(),{isPreloading:y}=QA();return KA(()=>{const C=l.current?.closest("sigurd-startup");C?f(C):f()}),I.jsxs("div",{ref:l,className:"relative rounded-lg",children:[I.jsx(MM,{}),y&&I.jsx(Xo,{children:I.jsxs("div",{className:"text-white text-center",children:[I.jsx("div",{className:"text-lg font-bold mb-2",children:"Loading Backgrounds..."}),I.jsx("div",{className:"text-sm text-gray-300",children:"Please wait while we prepare your game"})]})}),Ya.ENABLED,I.jsxs("div",{className:`absolute bottom-3 right-3 ${h?"text-md":"text-xs"} text-muted-foreground z-40 ${h?"bottom-4":"bottom-3"}`,children:["v",_0," (Build ",Gu().build,")"]}),!y&&I.jsxs(I.Fragment,{children:[a===Pt.START&&I.jsx(Xo,{children:I.jsx(FA,{})}),a===Pt.COUNTDOWN&&I.jsx(Xo,{children:I.jsx(jA,{})}),a===Pt.PAUSE&&I.jsx(Xo,{children:I.jsx(HA,{})}),a===Pt.SETTINGS&&I.jsx(Xo,{children:I.jsx(VA,{})}),c===ot.PLAYING&&I.jsx(Xo,{transparent:!0,children:I.jsx(BA,{})}),a===Pt.BONUS&&I.jsx(Xo,{children:I.jsx(GA,{})}),a===Pt.VICTORY&&I.jsx(Xo,{children:I.jsx(YA,{})}),a===Pt.GAME_OVER&&I.jsx(Xo,{children:I.jsx(WA,{})}),a===Pt.AUDIO_SETTINGS&&I.jsx(Xo,{children:I.jsx(XA,{})})]})]})},ZA='*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:JetBrains Mono,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}:root{--background: #302e2b;--foreground: #ffffff;--card: #262521;--card-foreground: #ffffff;--popover: #262521;--popover-foreground: #ffffff;--primary: #81b64c;--primary-light: #94cc5b;--primary-dark: #6ca039;--primary-opacity-hover: #8bc2546f;--primary-foreground: #ffffff;--secondary: #484744;--secondary-light: #5a5956;--secondary-dark: #3a3936;--secondary-foreground: #ffffff;--muted: #343434;--muted-foreground: #cbcbca;--accent: #81b64c;--accent-foreground: #ffffff;--destructive: #ef4444;--destructive-foreground: #ffffff;--border: #484744;--input: #484744;--ring: #81b64c;--radius: .5rem;--menu-background: #262521c6;--sidebar-background: #262521;--sidebar-foreground: #ffffff;--sidebar-primary: #81b64c;--sidebar-primary-foreground: #ffffff;--sidebar-accent: #484744;--sidebar-accent-foreground: #ffffff;--sidebar-border: #484744;--sidebar-ring: #81b64c;--gradient-primary: linear-gradient(135deg, #94cc5b 0%, #436324 100%);--gradient-primary-hover: linear-gradient(135deg, #8bc254 0%, #7aa847 100%);--gradient-primary-subtle: linear-gradient( 135deg, #81b64c 0%, #7aa847 100% );--gradient-primary-radial: radial-gradient( circle at center, #81b64c 0%, #6a9a3d 100% )}.dark{--background: #302e2b;--foreground: #ffffff;--card: #262521;--card-foreground: #ffffff;--popover: #262521;--popover-foreground: #ffffff;--primary: #81b64c;--primary-light: #94cc5b;--primary-dark: #436324;--primary-opacity-hover: #8bc2546f;--primary-foreground: #ffffff;--secondary: #484744;--secondary-foreground: #ffffff;--muted: #262521;--muted-foreground: #cbcbca;--accent: #81b64c;--accent-foreground: #ffffff;--destructive: #dc2626;--destructive-foreground: #ffffff;--border: #484744;--input: #484744;--ring: #81b64c;--sidebar-background: #262521;--sidebar-foreground: #ffffff;--sidebar-primary: #81b64c;--sidebar-primary-foreground: #ffffff;--sidebar-accent: #484744;--sidebar-accent-foreground: #ffffff;--sidebar-border: #484744;--sidebar-ring: #81b64c;--gradient-primary: linear-gradient(135deg, #81b64c 0%, #6a9a3d 100%);--gradient-primary-hover: linear-gradient(135deg, #8bc254 0%, #7aa847 100%);--gradient-primary-subtle: linear-gradient( 135deg, #81b64c 0%, #7aa847 100% );--gradient-primary-radial: radial-gradient( circle at center, #81b64c 0%, #6a9a3d 100% )}*{border-color:var(--border)}body{background-color:var(--background);color:var(--foreground)}:fullscreen{background:var(--background)}:-webkit-full-screen{background:var(--background)}:-moz-full-screen{background:var(--background)}:-ms-fullscreen{background:var(--background)}.container{width:100%;margin-right:auto;margin-left:auto;padding-right:2rem;padding-left:2rem}@media (min-width: 1400px){.container{max-width:1400px}}.pointer-events-auto{pointer-events:auto}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.bottom-2{bottom:.5rem}.bottom-3{bottom:.75rem}.bottom-4{bottom:1rem}.left-1{left:.25rem}.left-1\\/2{left:50%}.left-3{left:.75rem}.right-3{right:.75rem}.right-4{right:1rem}.top-1{top:.25rem}.top-4{top:1rem}.z-10{z-index:10}.z-40{z-index:40}.z-50{z-index:50}.float-right{float:right}.float-left{float:left}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.mt-2{margin-top:.5rem}.mt-6{margin-top:1.5rem}.block{display:block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-2{height:.5rem}.h-4{height:1rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-full{height:100%}.min-h-screen{min-height:100vh}.w-10{width:2.5rem}.w-2{width:.5rem}.w-4{width:1rem}.w-7{width:1.75rem}.w-\\[70\\%\\]{width:70%}.w-full{width:100%}.w-px{width:1px}.min-w-20{min-width:5rem}.max-w-md{max-width:28rem}.-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.resize{resize:both}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-none{border-style:none}.border-gray-600{--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity, 1))}.border-gray-700\\/50{border-color:#37415180}.border-input{border-color:var(--input)}.bg-background{background-color:var(--background)}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))}.bg-border{background-color:var(--border)}.bg-card{background-color:var(--card)}.bg-destructive{background-color:var(--destructive)}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-menu{background-color:var(--menu-background)}.bg-popover{background-color:var(--popover)}.bg-primary{background-color:var(--primary)}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}.bg-secondary{background-color:var(--secondary)}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.p-1{padding:.25rem}.p-3{padding:.75rem}.p-6{padding:1.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.font-mono{font-family:JetBrains Mono,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-8xl{font-size:6rem;line-height:1}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.italic{font-style:italic}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-destructive-foreground{color:var(--destructive-foreground)}.text-foreground{color:var(--foreground)}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-popover-foreground{color:var(--popover-foreground)}.text-primary-foreground{color:var(--primary-foreground)}.text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.text-secondary-foreground{color:var(--secondary-foreground)}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-yellow-400{--tw-text-opacity: 1;color:rgb(250 204 21 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.accent-primary{accent-color:var(--primary)}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-black\\/10{--tw-shadow-color: rgb(0 0 0 / .1);--tw-shadow: var(--tw-shadow-colored)}.outline{outline-style:solid}.ring-offset-background{--tw-ring-offset-color: var(--background)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in-0{--tw-enter-opacity: 0}.zoom-in-95{--tw-enter-scale: .95}.duration-200{animation-duration:.2s}.duration-300{animation-duration:.3s}.ease-in{animation-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{animation-timing-function:cubic-bezier(0,0,.2,1)}.running{animation-play-state:running}.paused{animation-play-state:paused}.bg-background-80{background-color:#302e2bcc}.bg-primary-20{background-color:#81b64c33}.text-muted-foreground{color:var(--muted-foreground)}.text-primary{color:var(--primary)}.border-primary{border-color:var(--primary)}.border-secondary{border-color:var(--secondary)}.hover\\:scale-105:hover{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:bg-accent:hover{background-color:var(--accent)}.hover\\:bg-primary:hover{background-color:var(--primary)}.hover\\:bg-red-600\\/80:hover{background-color:#dc2626cc}.hover\\:bg-secondary:hover{background-color:var(--secondary)}.hover\\:text-accent-foreground:hover{color:var(--accent-foreground)}.hover\\:text-black:hover{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.hover\\:text-blue-700:hover{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}.hover\\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:bg-primary-80:hover{background-color:#81b64ccc}.hover\\:text-primary:hover{color:var(--primary)}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:ring-ring:focus-visible{--tw-ring-color: var(--ring)}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:opacity-50:disabled{opacity:.5}.data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.\\[\\&_svg\\]\\:pointer-events-none svg{pointer-events:none}.\\[\\&_svg\\]\\:size-4 svg{width:1rem;height:1rem}.\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}';class JA extends HTMLElement{constructor(){super(...arguments);be(this,"root",null)}connectedCallback(){const l=this.attachShadow({mode:"open"}),f=document.createElement("div");l.appendChild(f);const h=document.createElement("style");h.textContent=ZA,l.appendChild(h),this.root=pp.createRoot(f),this.root.render(I.jsx(qA,{})),HC(),this.setAttribute("data-version",Gu().version),this.setAttribute("data-build",Gu().build.toString())}disconnectedCallback(){this.root&&(this.root.unmount(),this.root=null)}getVersion(){return Gu()}isCompatible(l){const f=Gu(),[h,y,v]=f.version.split(".").map(Number),[C,x,R]=l.split(".").map(Number);return h>C?!0:h<C?!1:y>x?!0:y<x?!1:v>=R}}customElements.define("sigurd-startup",JA);const eO={getVersion:Gu,ASSET_PATHS:Fs,getBackgroundImagePath:cx};sa.ASSET_PATHS=Fs,sa.default=eO,sa.getBackgroundImagePath=cx,sa.getVersion=Gu,sa.logVersion=HC,Object.defineProperties(sa,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
31
322
|
//# sourceMappingURL=sigurd-startup.umd.js.map
|