sigurd-startup 2.2.8 → 2.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. package/dist/sigurd-startup.es.js +2171 -2221
  2. package/dist/sigurd-startup.es.js.map +1 -1
  3. package/dist/sigurd-startup.umd.js +55 -55
  4. package/dist/sigurd-startup.umd.js.map +1 -1
  5. package/package.json +1 -1
  6. package/dist/assets/bomb/bomb1.png +0 -0
  7. package/dist/assets/bomb/bomb2.png +0 -0
  8. package/dist/assets/complete/complete1.png +0 -0
  9. package/dist/assets/complete/complete2.png +0 -0
  10. package/dist/assets/complete/complete3.png +0 -0
  11. package/dist/assets/complete/complete4.png +0 -0
  12. package/dist/assets/complete/complete5.png +0 -0
  13. package/dist/assets/float/float1.png +0 -0
  14. package/dist/assets/float-dir/float-dir1.png +0 -0
  15. package/dist/assets/ghost-Idle/ghost-idle1.png +0 -0
  16. package/dist/assets/ghost-Idle/ghost-idle2.png +0 -0
  17. package/dist/assets/ghost-Idle/ghost-idle3.png +0 -0
  18. package/dist/assets/ghost-Idle/ghost-idle4.png +0 -0
  19. package/dist/assets/ghost-Idle/ghost-idle5.png +0 -0
  20. package/dist/assets/ghost-Idle/ghost-idle6.png +0 -0
  21. package/dist/assets/ghost-float/ghost-float1.png +0 -0
  22. package/dist/assets/ghost-float/ghost-float2.png +0 -0
  23. package/dist/assets/ghost-jump/ghost-jump1.png +0 -0
  24. package/dist/assets/ghost-jump/ghost-jump2.png +0 -0
  25. package/dist/assets/ghost-jump/ghost-jump3.png +0 -0
  26. package/dist/assets/ghost-landing/ghost-landing1.png +0 -0
  27. package/dist/assets/ghost-landing/ghost-landing2.png +0 -0
  28. package/dist/assets/ghost-landing/ghost-landing3.png +0 -0
  29. package/dist/assets/ghost-map-complete/ghost-map-complete1.png +0 -0
  30. package/dist/assets/ghost-map-complete/ghost-map-complete2.png +0 -0
  31. package/dist/assets/ghost-map-complete/ghost-map-complete3.png +0 -0
  32. package/dist/assets/ghost-map-complete/ghost-map-complete4.png +0 -0
  33. package/dist/assets/ghost-walk/ghost-walk1.png +0 -0
  34. package/dist/assets/ghost-walk/ghost-walk2.png +0 -0
  35. package/dist/assets/ghost-walk/ghost-walk3.png +0 -0
  36. package/dist/assets/ghost-walk/ghost-walk4.png +0 -0
  37. package/dist/assets/ghost-walk/ghost-walk5.png +0 -0
  38. package/dist/assets/ghost-walk/ghost-walk6.png +0 -0
  39. package/dist/assets/ghost-walk/ghost-walk7.png +0 -0
  40. package/dist/assets/ghost-walk/ghost-walk8.png +0 -0
  41. package/dist/assets/jumping/jump1.png +0 -0
  42. package/dist/assets/jumping/jump2.png +0 -0
  43. package/dist/assets/jumping/jump3.png +0 -0
  44. package/dist/assets/landing/landing1.png +0 -0
  45. package/dist/assets/map-images/future-city/1.png +0 -0
  46. package/dist/assets/map-images/future-city/2.png +0 -0
  47. package/dist/assets/map-images/future-city/3.png +0 -0
  48. package/dist/assets/map-images/future-city/4.png +0 -0
  49. package/dist/assets/map-images/future-city/5.png +0 -0
  50. package/dist/assets/map-images/future-city/6.png +0 -0
  51. package/dist/assets/map-images/future-city/7.png +0 -0
  52. package/dist/assets/map-images/future-city/8.png +0 -0
  53. package/dist/assets/map-images/future-city/9.png +0 -0
  54. package/dist/assets/map-images/future-city-2/1.png +0 -0
  55. package/dist/assets/map-images/future-city-2/2.png +0 -0
  56. package/dist/assets/map-images/future-city-2/3.png +0 -0
  57. package/dist/assets/map-images/future-city-2/4.png +0 -0
  58. package/dist/assets/map-images/future-city-2/5.png +0 -0
  59. package/dist/assets/map-images/future-city-2/6.png +0 -0
  60. package/dist/assets/map-images/future-city-2/7.png +0 -0
  61. package/dist/assets/map-images/future-city-2/8.png +0 -0
  62. package/dist/assets/map-images/future-city-2/9.png +0 -0
  63. package/dist/assets/map-images/mountain/1.png +0 -0
  64. package/dist/assets/map-images/mountain/2.png +0 -0
  65. package/dist/assets/map-images/mountain/3.png +0 -0
  66. package/dist/assets/map-images/mountain/4.png +0 -0
  67. package/dist/assets/map-images/mountain/5.png +0 -0
  68. package/dist/assets/map-images/mountain/6.png +0 -0
  69. package/dist/assets/map-images/mountain/7.png +0 -0
  70. package/dist/assets/map-images/mountain/8.png +0 -0
  71. package/dist/assets/map-images/mountain/9.png +0 -0
  72. package/dist/assets/map-images/ocean/1.png +0 -0
  73. package/dist/assets/map-images/ocean/2.png +0 -0
  74. package/dist/assets/map-images/ocean/3.png +0 -0
  75. package/dist/assets/map-images/ocean/4.png +0 -0
  76. package/dist/assets/map-images/taco-street/1.png +0 -0
  77. package/dist/assets/map-images/taco-street/2.png +0 -0
  78. package/dist/assets/map-images/taco-street/3.png +0 -0
  79. package/dist/assets/map-images/taco-street/4.png +0 -0
  80. package/dist/assets/map-images/taco-street/5.png +0 -0
  81. package/dist/assets/map-images/taco-street/6.png +0 -0
  82. package/dist/assets/map-images/valley/1.png +0 -0
  83. package/dist/assets/map-images/valley/2.png +0 -0
  84. package/dist/assets/map-images/valley/3.png +0 -0
  85. package/dist/assets/maps-bg-images/alltinn-norge.png +0 -0
  86. package/dist/assets/maps-bg-images/innovasjon-norge.png +0 -0
  87. package/dist/assets/maps-bg-images/kommunehuset.png +0 -0
  88. package/dist/assets/maps-bg-images/nav.png +0 -0
  89. package/dist/assets/maps-bg-images/silicone-vally.png +0 -0
  90. package/dist/assets/maps-bg-images/skatteetaten.png +0 -0
  91. package/dist/assets/maps-bg-images/startup-lab.png +0 -0
  92. package/dist/assets/react.svg +0 -1
  93. package/dist/assets/running/run1.png +0 -0
  94. package/dist/assets/running/run2.png +0 -0
  95. package/dist/assets/running/run3.png +0 -0
  96. package/dist/assets/sigurd-idle/sigurd-idle1.png +0 -0
  97. package/dist/assets/sigurd-idle/sigurd-idle2.png +0 -0
  98. package/dist/assets/sigurd-idle/sigurd-idle3.png +0 -0
  99. package/dist/assets/sigurd-idle/sigurd-idle4.png +0 -0
  100. package/dist/audio/background-music.wav +0 -0
  101. package/dist/vite.svg +0 -1
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Yb;function ER(){if(Yb)return Ht;Yb=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"),b=Symbol.for("react.suspense"),T=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),k=Symbol.iterator;function A(V){return V===null||typeof V!="object"?null:(V=k&&V[k]||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=A(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},ke={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=b,Ht.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ke,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:_,_payload:{_status:-1,_result:V},_init:qe}},Ht.memo=function(V,oe){return{$$typeof:T,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:{}};/**
9
+ */var Yb;function TR(){if(Yb)return Ht;Yb=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"),k=Symbol.iterator;function _(V){return V===null||typeof V!="object"?null:(V=k&&V[k]||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=_(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},ke={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=ke,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
10
  * @license React
11
11
  * react.development.js
12
12
  *
@@ -14,7 +14,7 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */cp.exports;var Wb;function TR(){return Wb||(Wb=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"),b=Symbol.for("react.provider"),T=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),A=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 ke={};function Ce(E,L){{var Z=E.constructor,re=Z&&(Z.displayName||Z.name)||"ReactClass",Ee=re+"."+L;if(ke[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),ke[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 _a(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 k:return"Suspense";case A:return"SuspenseList"}if(typeof E=="object")switch(E.$$typeof){case T:var L=E;return _a(L)+".Consumer";case b:var Z=E;return _a(Z._context)+".Provider";case _: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),Ql,_p=0;!(Ql=Ju.next()).done;)fn=Ql.value,Nt=Nn+Fr(fn,_p++),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 Bl(E){var L=0;return mo(E,function(){L++}),L}function Hl(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 Vl(E){var L={$$typeof:T,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};L.Provider={$$typeof:b,_context:L};var Z=!1,re=!1,Ee=!1;{var ut={$$typeof:T,_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
17
+ */cp.exports;var Wb;function RR(){return Wb||(Wb=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"),k=Symbol.for("react.suspense"),_=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 ke={};function Ce(E,L){{var Z=E.constructor,re=Z&&(Z.displayName||Z.name)||"ReactClass",Ee=re+"."+L;if(ke[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),ke[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 _a(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 k:return"Suspense";case _:return"SuspenseList"}if(typeof E=="object")switch(E.$$typeof){case R:var L=E;return _a(L)+".Consumer";case x:var Z=E;return _a(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),Ql,_p=0;!(Ql=Ju.next()).done;)fn=Ql.value,Nt=Nn+Fr(fn,_p++),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 Bl(E){var L=0;return mo(E,function(){L++}),L}function Hl(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 Vl(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
18
 
19
19
  Your code should look like:
20
20
  const MyComponent = lazy(() => import('./MyComponent'))
@@ -22,7 +22,7 @@ Your code should look like:
22
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
23
 
24
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:_,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===k||E===A||Ae||E===G||dt||Rt||lt||typeof E=="object"&&E!==null&&(E.$$typeof===z||E.$$typeof===N||E.$$typeof===b||E.$$typeof===T||E.$$typeof===_||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:
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===k||E===_||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
26
  1. You might have mismatching versions of React and the renderer (such as React DOM)
27
27
  2. You might be breaking the Rules of Hooks
28
28
  3. You might have more than one copy of React in the same app
@@ -30,13 +30,13 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
30
30
  `+Ti+E}}var Yl=!1,tl;{var Ys=typeof WeakMap=="function"?WeakMap:Map;tl=new Ys}function Ws(E,L){if(!E||Yl)return"";{var Z=tl.get(E);if(Z!==void 0)return Z}var re;Yl=!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
31
  `),zt=re.stack.split(`
32
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{Yl=!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 k:return Gs("Suspense");case A:return Gs("SuspenseList")}if(typeof E=="object")switch(E.$$typeof){case _: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`
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{Yl=!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 k:return Gs("Suspense");case _: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
34
 
35
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
36
 
37
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
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===_||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 Wl(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,Xl=null;function kp(E){if(Xl===null)try{var L=("require"+Math.random()).slice(0,7),Z=c&&c[L];Xl=Z.call(c,"timers").setImmediate}catch{Xl=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 Xl(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),kp(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 Kl=Xr,Zs=Qu,Js=Wl,Mi={map:mo,forEach:Hl,count:Bl,toArray:Qo,only:qo};a.Children=Mi,a.Component=He,a.Fragment=y,a.Profiler=C,a.PureComponent=wt,a.StrictMode=v,a.Suspense=k,a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=st,a.act=Yi,a.cloneElement=Zs,a.createContext=Vl,a.createElement=Kl,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=kt,a.useDeferredValue=Ci,a.useEffect=jn,a.useId=$l,a.useImperativeHandle=xi,a.useInsertionEffect=bn,a.useLayoutEffect=Tn,a.useMemo=bi,a.useReducer=Ut,a.useRef=Dt,a.useState=Ct,a.useSyncExternalStore=Gl,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 Xb;function fp(){return Xb||(Xb=1,process.env.NODE_ENV==="production"?Nv.exports=ER():Nv.exports=TR()),Nv.exports}/**
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 Wl(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,Xl=null;function kp(E){if(Xl===null)try{var L=("require"+Math.random()).slice(0,7),Z=c&&c[L];Xl=Z.call(c,"timers").setImmediate}catch{Xl=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 Xl(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),kp(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 Kl=Xr,Zs=Qu,Js=Wl,Mi={map:mo,forEach:Hl,count:Bl,toArray:Qo,only:qo};a.Children=Mi,a.Component=He,a.Fragment=y,a.Profiler=C,a.PureComponent=wt,a.StrictMode=v,a.Suspense=k,a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=st,a.act=Yi,a.cloneElement=Zs,a.createContext=Vl,a.createElement=Kl,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=kt,a.useDeferredValue=Ci,a.useEffect=jn,a.useId=$l,a.useImperativeHandle=xi,a.useInsertionEffect=bn,a.useLayoutEffect=Tn,a.useMemo=bi,a.useReducer=Ut,a.useRef=Dt,a.useState=Ct,a.useSyncExternalStore=Gl,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 Xb;function fp(){return Xb||(Xb=1,process.env.NODE_ENV==="production"?Nv.exports=TR():Nv.exports=RR()),Nv.exports}/**
40
40
  * @license React
41
41
  * react-jsx-runtime.production.min.js
42
42
  *
@@ -44,7 +44,7 @@ Check the top-level render call using <`+Z+">.")}return L}function Rn(E,L){if(!(
44
44
  *
45
45
  * This source code is licensed under the MIT license found in the
46
46
  * LICENSE file in the root directory of this source tree.
47
- */var Kb;function RR(){if(Kb)return up;Kb=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,b,T){var _,k={},A=null,N=null;T!==void 0&&(A=""+T),b.key!==void 0&&(A=""+b.key),b.ref!==void 0&&(N=b.ref);for(_ in b)f.call(b,_)&&!y.hasOwnProperty(_)&&(k[_]=b[_]);if(C&&C.defaultProps)for(_ in b=C.defaultProps,b)k[_]===void 0&&(k[_]=b[_]);return{$$typeof:a,type:C,key:A,ref:N,props:k,_owner:h.current}}return up.Fragment=l,up.jsx=v,up.jsxs=v,up}var dp={};/**
47
+ */var Kb;function MR(){if(Kb)return up;Kb=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&&(_=""+R),x.key!==void 0&&(_=""+x.key),x.ref!==void 0&&(N=x.ref);for(A in x)f.call(x,A)&&!y.hasOwnProperty(A)&&(k[A]=x[A]);if(C&&C.defaultProps)for(A in x=C.defaultProps,x)k[A]===void 0&&(k[A]=x[A]);return{$$typeof:a,type:C,key:_,ref:N,props:k,_owner:h.current}}return up.Fragment=l,up.jsx=v,up.jsxs=v,up}var dp={};/**
48
48
  * @license React
49
49
  * react-jsx-runtime.development.js
50
50
  *
@@ -52,20 +52,20 @@ Check the top-level render call using <`+Z+">.")}return L}function Rn(E,L){if(!(
52
52
  *
53
53
  * This source code is licensed under the MIT license found in the
54
54
  * LICENSE file in the root directory of this source tree.
55
- */var Qb;function MR(){return Qb||(Qb=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"),b=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),A=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===T||P===_||ve||P===N||fe||le||Re||typeof P=="object"&&P!==null&&(P.$$typeof===A||P.$$typeof===k||P.$$typeof===v||P.$$typeof===C||P.$$typeof===b||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 T:return"Suspense";case _: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 b:return Rt(P,P.render,"ForwardRef");case k:var $e=P.displayName||null;return $e!==null?$e:Ae(P.type)||"Memo";case A:{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,$,ke,Ce,V,oe;function Be(){}Be.__reactDisabledLog=!0;function He(){{if(st===0){qe=console.log,Te=console.info,$=console.warn,ke=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:ke}),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`
55
+ */var Qb;function kR(){return Qb||(Qb=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"),k=Symbol.for("react.memo"),_=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===_||P.$$typeof===k||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 k:var $e=P.displayName||null;return $e!==null?$e:Ae(P.type)||"Memo";case _:{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,$,ke,Ce,V,oe;function Be(){}Be.__reactDisabledLog=!0;function He(){{if(st===0){qe=console.log,Te=console.info,$=console.warn,ke=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:ke}),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
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(kt){$e=kt}Reflect.construct(P,[],Ut)}else{try{Ut.call()}catch(kt){$e=kt}P.call(Ut.prototype)}}else{try{throw Error()}catch(kt){$e=kt}P()}}catch(kt){if(kt&&$e&&typeof kt.stack=="string"){for(var Dt=kt.stack.split(`
57
57
  `),jn=$e.stack.split(`
58
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 T:return St("Suspense");case _:return St("SuspenseList")}if(typeof P=="object")switch(P.$$typeof){case b:return yn(P.render);case k:return ar(P.type,pe,Ne);case A:{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 _a(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)&&(_a(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),_a(null)),Dt instanceof Error&&!(Dt.message in fa)&&(fa[Dt.message]=!0,_a(Mt),ue("Failed %s type: %s",Ne,Dt.message),_a(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`
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 k:return ar(P.type,pe,Ne);case _:{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 _a(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)&&(_a(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),_a(null)),Dt instanceof Error&&!(Dt.message in fa)&&(fa[Dt.message]=!0,_a(Mt),ue("Failed %s type: %s",Ne,Dt.message),_a(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`
60
60
 
61
61
  Check the render method of \``+P+"`."}return""}}function mo(P){return""}var Bl={};function Hl(P){{var pe=Wa();if(!pe){var Ne=typeof P=="string"?P:P.displayName||P.name;Ne&&(pe=`
62
62
 
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=Hl(pe);if(Bl[Ne])return;Bl[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 Vl(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===b||pe.$$typeof===k))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),kt=Object.keys(pe).filter(function($l){return $l!=="key"}),At=kt.length>0?"{key: someKey, "+kt.join(": ..., ")+": ...}":"{key: someKey}";if(!Gr[xi+At]){var Ci=kt.length>0?"{"+kt.join(": ..., ")+": ...}":"{}";ue(`A props object containing a "key" prop is being spread into JSX:
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=Hl(pe);if(Bl[Ne])return;Bl[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 Vl(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===k))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),kt=Object.keys(pe).filter(function($l){return $l!=="key"}),At=kt.length>0?"{key: someKey, "+kt.join(": ..., ")+": ...}":"{key: someKey}";if(!Gr[xi+At]){var Ci=kt.length>0?"{"+kt.join(": ..., ")+": ...}":"{}";ue(`A props object containing a "key" prop is being spread into JSX:
64
64
  let props = %s;
65
65
  <%s {...props} />
66
66
  React keys must be passed directly to JSX without using spread:
67
67
  let props = %s;
68
- <%s key={someKey} {...props} />`,At,xi,Ci,xi),Gr[xi+At]=!0}}return P===f?$r(Tn):Vl(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=RR():Xy.exports=MR();var I=Xy.exports,pp={},Ky={exports:{}},$a={},Dv={exports:{}},Qy={};/**
68
+ <%s key={someKey} {...props} />`,At,xi,Ci,xi),Gr[xi+At]=!0}}return P===f?$r(Tn):Vl(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=MR():Xy.exports=kR();var I=Xy.exports,pp={},Ky={exports:{}},$a={},Dv={exports:{}},Qy={};/**
69
69
  * @license React
70
70
  * scheduler.production.min.js
71
71
  *
@@ -73,7 +73,7 @@ React keys must be passed directly to JSX without using spread:
73
73
  *
74
74
  * This source code is licensed under the MIT license found in the
75
75
  * LICENSE file in the root directory of this source tree.
76
- */var qb;function kR(){return qb||(qb=1,function(c){function a($,ke){var Ce=$.length;$.push(ke);e:for(;0<Ce;){var V=Ce-1>>>1,oe=$[V];if(0<h(oe,ke))$[V]=ke,$[Ce]=oe,Ce=V;else break e}}function l($){return $.length===0?null:$[0]}function f($){if($.length===0)return null;var ke=$[0],Ce=$.pop();if(Ce!==ke){$[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 ke}function h($,ke){var Ce=$.sortIndex-ke.sortIndex;return Ce!==0?Ce:$.id-ke.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 b=[],T=[],_=1,k=null,A=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 ke=l(T);ke!==null;){if(ke.callback===null)f(T);else if(ke.startTime<=$)f(T),ke.sortIndex=ke.expirationTime,a(b,ke);else break;ke=l(T)}}function fe($){if(G=!1,ce($),!z)if(l(b)!==null)z=!0,qe(le);else{var ke=l(T);ke!==null&&Te(fe,ke.startTime-$)}}function le($,ke){z=!1,G&&(G=!1,de(xe),xe=-1),N=!0;var Ce=A;try{for(ce(ke),k=l(b);k!==null&&(!(k.expirationTime>ke)||$&&!Rt());){var V=k.callback;if(typeof V=="function"){k.callback=null,A=k.priorityLevel;var oe=V(k.expirationTime<=ke);ke=c.unstable_now(),typeof oe=="function"?k.callback=oe:k===l(b)&&f(b),ce(ke)}else f(b);k=l(b)}if(k!==null)var Be=!0;else{var He=l(T);He!==null&&Te(fe,He.startTime-ke),Be=!1}return Be}finally{k=null,A=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 ke=!0;try{ke=ve(!0,$)}finally{ke?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($,ke){xe=J(function(){$(c.unstable_now())},ke)}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 A},c.unstable_getFirstCallbackNode=function(){return l(b)},c.unstable_next=function($){switch(A){case 1:case 2:case 3:var ke=3;break;default:ke=A}var Ce=A;A=ke;try{return $()}finally{A=Ce}},c.unstable_pauseExecution=function(){},c.unstable_requestPaint=function(){},c.unstable_runWithPriority=function($,ke){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var Ce=A;A=$;try{return ke()}finally{A=Ce}},c.unstable_scheduleCallback=function($,ke,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:_++,callback:ke,priorityLevel:$,startTime:Ce,expirationTime:oe,sortIndex:-1},Ce>V?($.sortIndex=Ce,a(T,$),l(b)===null&&$===l(T)&&(G?(de(xe),xe=-1):G=!0,Te(fe,Ce-V))):($.sortIndex=oe,a(b,$),z||N||(z=!0,qe(le))),$},c.unstable_shouldYield=Rt,c.unstable_wrapCallback=function($){var ke=A;return function(){var Ce=A;A=ke;try{return $.apply(this,arguments)}finally{A=Ce}}}}(Qy)),Qy}var qy={};/**
76
+ */var qb;function _R(){return qb||(qb=1,function(c){function a($,ke){var Ce=$.length;$.push(ke);e:for(;0<Ce;){var V=Ce-1>>>1,oe=$[V];if(0<h(oe,ke))$[V]=ke,$[Ce]=oe,Ce=V;else break e}}function l($){return $.length===0?null:$[0]}function f($){if($.length===0)return null;var ke=$[0],Ce=$.pop();if(Ce!==ke){$[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 ke}function h($,ke){var Ce=$.sortIndex-ke.sortIndex;return Ce!==0?Ce:$.id-ke.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,k=null,_=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 ke=l(R);ke!==null;){if(ke.callback===null)f(R);else if(ke.startTime<=$)f(R),ke.sortIndex=ke.expirationTime,a(x,ke);else break;ke=l(R)}}function fe($){if(G=!1,ce($),!z)if(l(x)!==null)z=!0,qe(le);else{var ke=l(R);ke!==null&&Te(fe,ke.startTime-$)}}function le($,ke){z=!1,G&&(G=!1,de(xe),xe=-1),N=!0;var Ce=_;try{for(ce(ke),k=l(x);k!==null&&(!(k.expirationTime>ke)||$&&!Rt());){var V=k.callback;if(typeof V=="function"){k.callback=null,_=k.priorityLevel;var oe=V(k.expirationTime<=ke);ke=c.unstable_now(),typeof oe=="function"?k.callback=oe:k===l(x)&&f(x),ce(ke)}else f(x);k=l(x)}if(k!==null)var Be=!0;else{var He=l(R);He!==null&&Te(fe,He.startTime-ke),Be=!1}return Be}finally{k=null,_=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 ke=!0;try{ke=ve(!0,$)}finally{ke?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($,ke){xe=J(function(){$(c.unstable_now())},ke)}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 _},c.unstable_getFirstCallbackNode=function(){return l(x)},c.unstable_next=function($){switch(_){case 1:case 2:case 3:var ke=3;break;default:ke=_}var Ce=_;_=ke;try{return $()}finally{_=Ce}},c.unstable_pauseExecution=function(){},c.unstable_requestPaint=function(){},c.unstable_runWithPriority=function($,ke){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var Ce=_;_=$;try{return ke()}finally{_=Ce}},c.unstable_scheduleCallback=function($,ke,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:ke,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 ke=_;return function(){var Ce=_;_=ke;try{return $.apply(this,arguments)}finally{_=Ce}}}}(Qy)),Qy}var qy={};/**
77
77
  * @license React
78
78
  * scheduler.development.js
79
79
  *
@@ -81,7 +81,7 @@ React keys must be passed directly to JSX without using spread:
81
81
  *
82
82
  * This source code is licensed under the MIT license found in the
83
83
  * LICENSE file in the root directory of this source tree.
84
- */var Zb;function _R(){return Zb||(Zb=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(b(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(b(pr,Je)<0)wn<Sn&&b(sn,pr)<0?(Me[an]=sn,Me[wn]=Je,an=wn):(Me[an]=pr,Me[En]=Je,an=En);else if(wn<Sn&&b(sn,Je)<0)Me[an]=sn,Me[wn]=Je,an=wn;else return}}function b(Me,Je){var Ot=Me.sortIndex-Je.sortIndex;return Ot!==0?Ot:Me.id-Je.id}var T=1,_=2,k=3,A=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=k,rt=!1,st=!1,qe=!1,Te=typeof setTimeout=="function"?setTimeout:null,$=typeof clearTimeout=="function"?clearTimeout:null,ke=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 T:case _:case k:case A:case N:break;default:Me=k}var Ot=Ae;Ae=Me;try{return Je()}finally{Ae=Ot}}function yt(Me){var Je;switch(Ae){case T:case _:case k:Je=k;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 T:En=fe;break;case _:En=le;break;case N:En=xe;break;case A:En=ve;break;case k: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 _a(){}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 ke=="function")or=function(){ke(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=_a,Fi=null;c.unstable_IdlePriority=N,c.unstable_ImmediatePriority=T,c.unstable_LowPriority=A,c.unstable_NormalPriority=k,c.unstable_Profiling=Fi,c.unstable_UserBlockingPriority=_,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 Jb;function ex(){return Jb||(Jb=1,process.env.NODE_ENV==="production"?Dv.exports=kR():Dv.exports=_R()),Dv.exports}/**
84
+ */var Zb;function AR(){return Zb||(Zb=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,k=3,_=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=k,rt=!1,st=!1,qe=!1,Te=typeof setTimeout=="function"?setTimeout:null,$=typeof clearTimeout=="function"?clearTimeout:null,ke=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 k:case _:case N:break;default:Me=k}var Ot=Ae;Ae=Me;try{return Je()}finally{Ae=Ot}}function yt(Me){var Je;switch(Ae){case R:case A:case k:Je=k;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 _:En=ve;break;case k: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 _a(){}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 ke=="function")or=function(){ke(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=_a,Fi=null;c.unstable_IdlePriority=N,c.unstable_ImmediatePriority=R,c.unstable_LowPriority=_,c.unstable_NormalPriority=k,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 Jb;function ex(){return Jb||(Jb=1,process.env.NODE_ENV==="production"?Dv.exports=_R():Dv.exports=AR()),Dv.exports}/**
85
85
  * @license React
86
86
  * react-dom.production.min.js
87
87
  *
@@ -89,14 +89,14 @@ React keys must be passed directly to JSX without using spread:
89
89
  *
90
90
  * This source code is licensed under the MIT license found in the
91
91
  * LICENSE file in the root directory of this source tree.
92
- */var tx;function AR(){if(tx)return $a;tx=1;var c=fp(),a=ex();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"),b=Object.prototype.hasOwnProperty,T=/^[: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]*$/,_={},k={};function A(n){return b.call(k,n)?!0:b.call(_,n)?!1:T.test(n)?k[n]=!0:(_[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,R){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=R}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?A(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 ke(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`
92
+ */var tx;function OR(){if(tx)return $a;tx=1;var c=fp(),a=ex();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={},k={};function _(n){return x.call(k,n)?!0:x.call(A,n)?!1:R.test(n)?k[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?_(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 ke(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
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
94
  `),S=d.stack.split(`
95
- `),R=m.length-1,D=S.length-1;1<=R&&0<=D&&m[R]!==S[D];)D--;for(;1<=R&&0<=D;R--,D--)if(m[R]!==S[D]){if(R!==1||D!==1)do if(R--,D--,0>D||m[R]!==S[D]){var U=`
96
- `+m[R].replace(" at new "," at ");return n.displayName&&U.includes("<anonymous>")&&(U=U.replace("<anonymous>",n.displayName)),U}while(1<=R&&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(R){d=""+R,S.call(this,R)}}),Object.defineProperty(n,r,{enumerable:s.enumerable}),{getValue:function(){return d},setValue:function(R){d=""+R},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")?_a(n,r.type,s):r.hasOwnProperty("defaultValue")&&_a(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 _a(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 Bl(){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 Hl(n,r){return n(r)}function Qo(){}var qo=!1;function Vl(n,r,s){if(qo)return n(r,s);qo=!0;try{return Hl(n,r,s)}finally{qo=!1,(Oa!==null||Fr!==null)&&(Qo(),Bl())}}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,R,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,R,D,U){wi=!1,Bi=null,ji.apply(pe,arguments)}function $e(n,r,s,d,m,S,R,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 R=!1,D=m.child;D;){if(D===s){R=!0,s=m,d=S;break}if(D===d){R=!0,d=m,s=S;break}D=D.sibling}if(!R){for(D=S.child;D;){if(D===s){R=!0,s=S,d=m;break}if(D===d){R=!0,d=S,s=m;break}D=D.sibling}if(!R)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,kt=a.unstable_now,At=a.unstable_getCurrentPriorityLevel,Ci=a.unstable_ImmediatePriority,$l=a.unstable_UserBlockingPriority,Gl=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,R=s&268435455;if(R!==0){var D=R&~m;D!==0?d=Ei(D):(S&=R,S!==0&&(d=Ei(S)))}else R=s&~m,R!==0?d=Ei(R):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 Yl(n,r){for(var s=n.suspendedLanes,d=n.pingedLanes,m=n.expirationTimes,S=n.pendingLanes;0<S;){var R=31-Yr(S),D=1<<R,U=m[R];U===-1?(!(D&s)||D&d)&&(m[R]=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 Wl(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=Wl(Wr,n,r,s,d,m),!0;case"dragenter":return Gi=Wl(Gi,n,r,s,d,m),!0;case"mouseover":return Rn=Wl(Rn,n,r,s,d,m),!0;case"pointerover":var S=m.pointerId;return cn.set(S,Wl(cn.get(S)||null,n,r,s,d,m)),!0;case"gotpointercapture":return S=m.pointerId,nl.set(S,Wl(nl.get(S)||null,n,r,s,d,m)),!0}return!1}function qu(n){var r=ns(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 Xl(n,r,s){rl(n)&&s.delete(r)}function kp(){Cr=!1,Wr!==null&&rl(Wr)&&(Wr=null),Gi!==null&&rl(Gi)&&(Gi=null),Rn!==null&&rl(Rn)&&(Rn=null),cn.forEach(Xl),nl.forEach(Xl)}function Ka(n,r){n.blockedOn===r&&(n.blockedOn=null,Cr||(Cr=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,kp)))}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,Kl,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,Kl,s),S===m)break;m=S}m!==null&&d.stopPropagation()}else Uf(n,r,d,null,s)}}var Kl=null;function Zs(n,r,s,d){if(Kl=null,n=sn(d),n=ns(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 Kl=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 $l:return 4;case Gl: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 R=s-n;for(d=1;d<=R&&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,R){this._reactName=s,this._targetInst=m,this.type=d,this.nativeEvent=S,this.target=R,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}),Ql=Oe(Ju),_p=Ce({},pt,{animationName:0,elapsedTime:0,pseudoElement:0}),Rf=Oe(_p),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"},A0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function wo(n){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(n):(n=A0[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=" ",kf=!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:(kf=!0,um);case"textInput":return n=r.data,n===um&&kf?null:n;default:return null}}function O0(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 N0={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"?!!N0[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){es(n,0)}function nc(n){var r=_i(n);if(Un(r))return n}function D0(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)),Vl(hm,r)}}function L0(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 P0(n,r){if(n==="click")return nc(r)}function wm(n,r){if(n==="input"||n==="change")return nc(r)}function I0(n,r){return n===r&&(n!==0||1/n===1/r)||n!==n&&r!==r}var ki=typeof Object.is=="function"?Object.is:I0;function rc(n,r){if(ki(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(!b.call(r,m)||!ki(n[m],r[m]))return!1}return!0}function bm(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function _f(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=_f(s,S);var R=_f(s,d);m&&R&&(n.rangeCount!==1||n.anchorNode!==m.node||n.anchorOffset!==m.offset||n.focusNode!==R.node||n.focusOffset!==R.offset)&&(r=r.createRange(),r.setStart(m.node,m.offset),n.removeAllRanges(),S>d?(n.addRange(r),n.extend(R.node,R.offset)):(r.setEnd(R.node,R.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 U0=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 Zl={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 Zl.animationend.animation,delete Zl.animationiteration.animation,delete Zl.animationstart.animation),"TransitionEvent"in window||delete Zl.transitionend.transition);function Nf(n){if(Er[n])return Er[n];if(!Zl[n])return n;var r=Zl[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 Jl=Df[Yp],z0=Jl.toLowerCase(),F0=Jl[0].toUpperCase()+Jl.slice(1);qa(z0,"on"+F0)}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 es(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 R=d.length-1;0<=R;R--){var D=d[R],U=D.instance,ee=D.currentTarget;if(D=D.listener,U!==S&&m.isPropagationStopped())break e;Lf(m,D,ee),S=U}else for(R=0;R<d.length;R++){if(D=d[R],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 R=d.tag;if(R===3||R===4){var D=d.stateNode.containerInfo;if(D===m||D.nodeType===8&&D.parentNode===m)break;if(R===4)for(R=d.return;R!==null;){var U=R.tag;if((U===3||U===4)&&(U=R.stateNode.containerInfo,U===m||U.nodeType===8&&U.parentNode===m))return;R=R.return}for(;D!==null;){if(R=ns(D),R===null)return;if(U=R.tag,U===5||U===6){d=S=R;continue e}D=D.parentNode}}d=d.return}Vl(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=Ql;break;case"focusout":Ye="blur",Ue=Ql;break;case"beforeblur":case"afterblur":Ue=Ql;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)&&(ns(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?ns(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:_i(Ue),K=Ye==null?me:_i(Ye),me=new Ze(ye,j+"leave",Ue,s,ge),me.target=Gn,me.relatedTarget=K,ye=null,ns(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?_i(ee):window,Ue=me.nodeName&&me.nodeName.toLowerCase(),Ue==="select"||Ue==="input"&&me.type==="file")var We=D0;else if(pm(me))if(vm)We=wm;else{We=Sm;var ft=L0}else(Ue=me.nodeName)&&Ue.toLowerCase()==="input"&&(me.type==="checkbox"||me.type==="radio")&&(We=P0);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"&&_a(me,"number",me.value)}switch(ft=ee?_i(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(U0)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):O0(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))}es(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,R=[];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&&R.unshift(iu(s,U,D))):m||(U=$r(s,S),U!=null&&R.push(iu(s,U,D)))),s=s.return}R.length!==0&&n.push({event:r,listeners:R})}var km=/\r\n?/g,j0=/\u0000|\uFFFD/g;function _m(n){return(typeof n=="string"?n:""+n).replace(km,`
97
- `).replace(j0,"")}function zf(n,r,s){if(r=_m(r),_m(n)!==r&&s)throw Error(l(425))}function sl(){}var sc=null,ts=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,B0="__reactHandles$"+ul;function ns(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 _i(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 rs(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 R=m-m%5;S=(d&(1<<R)-1).toString(32),d>>=R,m-=R,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&&(rs(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,_n=!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(_n){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,_n=!1,ma=n)}}else{if(Qp(n))throw Error(l(418));n.flags=n.flags&-4097|2,_n=!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(!_n)return ur(n),_n=!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,_n=!1}function Ro(n){ti===null?ti=[n]:ti.push(n)}var H0=fe.ReactCurrentBatchConfig;function as(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(R){var D=m.refs;R===null?delete D[S]:D[S]=R},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 is(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 R(Y){return n&&Y.alternate===null&&(Y.flags|=2),Y}function D(Y,j,K,ye){return j===null||j.tag!==6?(j=kh(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=as(Y,j,K),ye.return=Y,ye):(ye=Hc(K.type,K.key,K.props,null,Y.mode,ye),ye.ref=as(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=kh(""+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=as(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)||ke(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)||ke(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)||ke(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&&gt<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),_n&&rs(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 _n&&rs(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)}),_n&&rs(Y,gt),We}function Ze(Y,j,K,ye){var We=ke(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),_n&&rs(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 _n&&rs(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)}),_n&&rs(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=as(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=as(Y,j,K),ye.return=Y,Y=ye)}return R(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 R(Y);case qe:return ft=K._init,Gn(Y,j,ft(K._payload),ye)}if(dr(K))return Ye(Y,j,K,ye);if(ke(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=kh(K,Y.mode,ye),j.return=Y,Y=j),R(Y)):s(Y,j)}return Gn}var Bn=is(!0),De=is(!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 os=null;function nh(n){os===null?os=[n]:os.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 R={eventTime:s.eventTime,lane:s.lane,tag:s.tag,payload:s.payload,callback:s.callback,next:null};S===null?m=S=R:S=S.next=R,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,R=m.lastBaseUpdate,D=m.shared.pending;if(D!==null){m.shared.pending=null;var U=D,ee=U.next;U.next=null,R===null?S=ee:R.next=ee,R=U;var ge=n.alternate;ge!==null&&(ge=ge.updateQueue,D=ge.lastBaseUpdate,D!==R&&(D===null?ge.firstBaseUpdate=ee:D.next=ee,ge.lastBaseUpdate=U))}if(S!==null){var Se=m.baseState;R=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,R|=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 R|=m.lane,m=m.next;while(m!==r)}else S===null&&(m.shared.lanes=0);ao|=R,n.lanes=R,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 ls(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 ss(){Cn(eo),Cn(vc),Cn(mc)}function zm(n){ls(mc.current);var r=ls(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,us=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(!ki(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,us=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=hs,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=us!==0;return us=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 ko(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 R=m.next;m.next=S.next,S.next=R}d.baseQueue=m=S,s.pending=null}if(m!==null){S=m.next,d=d.baseState;var D=R=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,R=d):U=U.next=Se,en.lanes|=ge,ao|=ge}ee=ee.next}while(ee!==null&&ee!==S);U===null?R=d:U.next=D,ki(d,r.memoizedState)||(Zn=!0),r.memoizedState=d,r.baseState=R,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 cs(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 R=m=m.next;do S=n(S,R.action),R=R.next;while(R!==m);ki(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=!ki(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,fs(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!ki(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:ko,lastRenderedState:n},r.queue=n,n=n.dispatch=ps.bind(null,en,n),[r.memoizedState,n]}function fs(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=fs(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 R=qn.memoizedState;if(S=R.destroy,d!==null&&vt(d,R.deps)){m.memoizedState=fs(r,s,S,d);return}}en.flags|=n,m.memoizedState=fs(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 ds(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,ds.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?(ki(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 ps(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 R=r.lastRenderedState,D=S(R,s);if(m.hasEagerState=!0,m.eagerState=D,ki(D,R)){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 hs={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,ds.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(_n){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,fs(9,td.bind(null,d,S,s,r),void 0,null),s},useId:function(){var n=Br(),r=cr.identifierPrefix;if(_n){var s=Ji,d=Zi;s=(d&~(1<<32-Yr(d)-1)).toString(32)+s,r=":"+r+"R"+s,s=us++,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(ko)},useDebugValue:bc,useDeferredValue:function(n){var r=Hn();return lh(r,qn.memoizedState,n)},useTransition:function(){var n=gl(ko)[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:cs,useRef:od,useState:function(){return cs(ko)},useDebugValue:bc,useDeferredValue:function(n){var r=Hn();return qn===null?r.memoizedState=n:lh(r,qn.memoizedState,n)},useTransition:function(){var n=cs(ko)[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,R){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(d,S,R):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 vs(n,r){try{var s="",d=r;do s+=yt(d),d=d.return;while(d);var m=s}catch(S){m=`
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")?_a(n,r.type,s):r.hasOwnProperty("defaultValue")&&_a(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 _a(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 Bl(){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 Hl(n,r){return n(r)}function Qo(){}var qo=!1;function Vl(n,r,s){if(qo)return n(r,s);qo=!0;try{return Hl(n,r,s)}finally{qo=!1,(Oa!==null||Fr!==null)&&(Qo(),Bl())}}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,kt=a.unstable_now,At=a.unstable_getCurrentPriorityLevel,Ci=a.unstable_ImmediatePriority,$l=a.unstable_UserBlockingPriority,Gl=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 Yl(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 Wl(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=Wl(Wr,n,r,s,d,m),!0;case"dragenter":return Gi=Wl(Gi,n,r,s,d,m),!0;case"mouseover":return Rn=Wl(Rn,n,r,s,d,m),!0;case"pointerover":var S=m.pointerId;return cn.set(S,Wl(cn.get(S)||null,n,r,s,d,m)),!0;case"gotpointercapture":return S=m.pointerId,nl.set(S,Wl(nl.get(S)||null,n,r,s,d,m)),!0}return!1}function qu(n){var r=ns(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 Xl(n,r,s){rl(n)&&s.delete(r)}function kp(){Cr=!1,Wr!==null&&rl(Wr)&&(Wr=null),Gi!==null&&rl(Gi)&&(Gi=null),Rn!==null&&rl(Rn)&&(Rn=null),cn.forEach(Xl),nl.forEach(Xl)}function Ka(n,r){n.blockedOn===r&&(n.blockedOn=null,Cr||(Cr=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,kp)))}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,Kl,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,Kl,s),S===m)break;m=S}m!==null&&d.stopPropagation()}else Uf(n,r,d,null,s)}}var Kl=null;function Zs(n,r,s,d){if(Kl=null,n=sn(d),n=ns(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 Kl=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 $l:return 4;case Gl: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}),Ql=Oe(Ju),_p=Ce({},pt,{animationName:0,elapsedTime:0,pseudoElement:0}),Rf=Oe(_p),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"},A0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function wo(n){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(n):(n=A0[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=" ",kf=!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:(kf=!0,um);case"textInput":return n=r.data,n===um&&kf?null:n;default:return null}}function O0(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 N0={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"?!!N0[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){es(n,0)}function nc(n){var r=_i(n);if(Un(r))return n}function D0(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)),Vl(hm,r)}}function L0(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 P0(n,r){if(n==="click")return nc(r)}function wm(n,r){if(n==="input"||n==="change")return nc(r)}function I0(n,r){return n===r&&(n!==0||1/n===1/r)||n!==n&&r!==r}var ki=typeof Object.is=="function"?Object.is:I0;function rc(n,r){if(ki(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)||!ki(n[m],r[m]))return!1}return!0}function bm(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function _f(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=_f(s,S);var T=_f(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 U0=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 Zl={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 Zl.animationend.animation,delete Zl.animationiteration.animation,delete Zl.animationstart.animation),"TransitionEvent"in window||delete Zl.transitionend.transition);function Nf(n){if(Er[n])return Er[n];if(!Zl[n])return n;var r=Zl[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 Jl=Df[Yp],z0=Jl.toLowerCase(),F0=Jl[0].toUpperCase()+Jl.slice(1);qa(z0,"on"+F0)}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 es(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=ns(D),T===null)return;if(U=T.tag,U===5||U===6){d=S=T;continue e}D=D.parentNode}}d=d.return}Vl(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=Ql;break;case"focusout":Ye="blur",Ue=Ql;break;case"beforeblur":case"afterblur":Ue=Ql;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)&&(ns(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?ns(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:_i(Ue),K=Ye==null?me:_i(Ye),me=new Ze(ye,j+"leave",Ue,s,ge),me.target=Gn,me.relatedTarget=K,ye=null,ns(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?_i(ee):window,Ue=me.nodeName&&me.nodeName.toLowerCase(),Ue==="select"||Ue==="input"&&me.type==="file")var We=D0;else if(pm(me))if(vm)We=wm;else{We=Sm;var ft=L0}else(Ue=me.nodeName)&&Ue.toLowerCase()==="input"&&(me.type==="checkbox"||me.type==="radio")&&(We=P0);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"&&_a(me,"number",me.value)}switch(ft=ee?_i(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(U0)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):O0(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))}es(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 km=/\r\n?/g,j0=/\u0000|\uFFFD/g;function _m(n){return(typeof n=="string"?n:""+n).replace(km,`
97
+ `).replace(j0,"")}function zf(n,r,s){if(r=_m(r),_m(n)!==r&&s)throw Error(l(425))}function sl(){}var sc=null,ts=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,B0="__reactHandles$"+ul;function ns(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 _i(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 rs(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&&(rs(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,_n=!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(_n){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,_n=!1,ma=n)}}else{if(Qp(n))throw Error(l(418));n.flags=n.flags&-4097|2,_n=!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(!_n)return ur(n),_n=!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,_n=!1}function Ro(n){ti===null?ti=[n]:ti.push(n)}var H0=fe.ReactCurrentBatchConfig;function as(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 is(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=kh(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=as(Y,j,K),ye.return=Y,ye):(ye=Hc(K.type,K.key,K.props,null,Y.mode,ye),ye.ref=as(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=kh(""+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=as(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)||ke(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)||ke(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)||ke(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&&gt<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),_n&&rs(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 _n&&rs(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)}),_n&&rs(Y,gt),We}function Ze(Y,j,K,ye){var We=ke(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),_n&&rs(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 _n&&rs(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)}),_n&&rs(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=as(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=as(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(ke(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=kh(K,Y.mode,ye),j.return=Y,Y=j),T(Y)):s(Y,j)}return Gn}var Bn=is(!0),De=is(!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 os=null;function nh(n){os===null?os=[n]:os.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 ls(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 ss(){Cn(eo),Cn(vc),Cn(mc)}function zm(n){ls(mc.current);var r=ls(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,us=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(!ki(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,us=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=hs,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=us!==0;return us=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 ko(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,ki(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 cs(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);ki(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=!ki(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,fs(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!ki(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:ko,lastRenderedState:n},r.queue=n,n=n.dispatch=ps.bind(null,en,n),[r.memoizedState,n]}function fs(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=fs(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=fs(r,s,S,d);return}}en.flags|=n,m.memoizedState=fs(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 ds(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,ds.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?(ki(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 ps(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,ki(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 hs={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,ds.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(_n){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,fs(9,td.bind(null,d,S,s,r),void 0,null),s},useId:function(){var n=Br(),r=cr.identifierPrefix;if(_n){var s=Ji,d=Zi;s=(d&~(1<<32-Yr(d)-1)).toString(32)+s,r=":"+r+"R"+s,s=us++,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(ko)},useDebugValue:bc,useDeferredValue:function(n){var r=Hn();return lh(r,qn.memoizedState,n)},useTransition:function(){var n=gl(ko)[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:cs,useRef:od,useState:function(){return cs(ko)},useDebugValue:bc,useDeferredValue:function(n){var r=Hn();return qn===null?r.memoizedState=n:lh(r,qn.memoizedState,n)},useTransition:function(){var n=cs(ko)[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 vs(n,r){try{var s="",d=r;do s+=yt(d),d=d.return;while(d);var m=s}catch(S){m=`
98
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,ys=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 R=r.stack;this.componentDidCatch(r.value,{componentStack:R!==null?R:""})}),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=K0.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)):(_n&&s&&$f(r),r.flags|=1,Tr(n,r,d,m),r.child)}function ms(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,_t(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 R=S.memoizedProps;if(s=s.compare,s=s!==null?s:rc,s(R,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 _t(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)):(_n&&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 R=r.stateNode,D=r.memoizedProps;R.props=D;var U=R.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 R.getSnapshotBeforeUpdate=="function";Se||typeof R.UNSAFE_componentWillReceiveProps!="function"&&typeof R.componentWillReceiveProps!="function"||(D!==d||U!==ee)&&Bm(r,R,d,ee),Ia=!1;var me=r.memoizedState;R.state=me,pc(r,d,R,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 R.UNSAFE_componentWillMount!="function"&&typeof R.componentWillMount!="function"||(typeof R.componentWillMount=="function"&&R.componentWillMount(),typeof R.UNSAFE_componentWillMount=="function"&&R.UNSAFE_componentWillMount()),typeof R.componentDidMount=="function"&&(r.flags|=4194308)):(typeof R.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=d,r.memoizedState=U),R.props=d,R.state=U,R.context=ee,d=D):(typeof R.componentDidMount=="function"&&(r.flags|=4194308),d=!1)}else{R=r.stateNode,Im(n,r),D=r.memoizedProps,ee=r.type===r.elementType?D:Oi(r.type,D),R.props=ee,Se=r.pendingProps,me=R.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 R.getSnapshotBeforeUpdate=="function")||typeof R.UNSAFE_componentWillReceiveProps!="function"&&typeof R.componentWillReceiveProps!="function"||(D!==Se||me!==U)&&Bm(r,R,d,U),Ia=!1,me=r.memoizedState,R.state=me,pc(r,d,R,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 R.UNSAFE_componentWillUpdate!="function"&&typeof R.componentWillUpdate!="function"||(typeof R.componentWillUpdate=="function"&&R.componentWillUpdate(d,Ye,U),typeof R.UNSAFE_componentWillUpdate=="function"&&R.UNSAFE_componentWillUpdate(d,Ye,U)),typeof R.componentDidUpdate=="function"&&(r.flags|=4),typeof R.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof R.componentDidUpdate!="function"||D===n.memoizedProps&&me===n.memoizedState||(r.flags|=4),typeof R.getSnapshotBeforeUpdate!="function"||D===n.memoizedProps&&me===n.memoizedState||(r.flags|=1024),r.memoizedProps=d,r.memoizedState=Ye),R.props=d,R.state=Ye,R.context=U,d=ee):(typeof R.componentDidUpdate!="function"||D===n.memoizedProps&&me===n.memoizedState||(r.flags|=4),typeof R.getSnapshotBeforeUpdate!="function"||D===n.memoizedProps&&me===n.memoizedState||(r.flags|=1024),d=!1)}return kc(n,r,s,d,S,m)}function kc(n,r,s,d,m,S){hh(n,r);var R=(r.flags&128)!==0;if(!d&&!R)return m&&Hf(r,s,!1),ai(n,r,S);d=r.stateNode,Rc.current=r;var D=R&&typeof s.getDerivedStateFromError!="function"?null:d.render();return r.flags|=1,n!==null&&R?(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,R=(r.flags&128)!==0,D;if((D=R)||(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):(R=d.children,n=d.fallback,S?(d=r.mode,S=r.child,R={mode:"hidden",children:R},!(d&1)&&S!==null?(S.childLanes=0,S.pendingProps=R):S=Cl(R,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,R));if(m=n.memoizedState,m!==null&&(D=m.dehydrated,D!==null))return Wm(n,r,R,d,D,m,s);if(S){S=d.fallback,R=r.mode,m=n.child,D=m.sibling;var U={mode:"hidden",children:d.children};return!(R&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,R,s,null),S.flags|=2),S.return=r,d.return=r,d.sibling=S,r.child=d,d=S,S=r.child,R=n.child.memoizedState,R=R===null?vh(s):{baseLanes:R.baseLanes|s,cachePool:null,transitions:R.transitions},S.memoizedState=R,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 _c(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,R){if(s)return r.flags&256?(r.flags&=-257,d=ch(Error(l(422))),_c(n,r,R,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,R,null),S.flags|=2,d.return=r,S.return=r,d.sibling=S,r.child=d,r.mode&1&&Bn(r,n.child,null,R),r.child.memoizedState=vh(R),r.memoizedState=gd,S);if(!(r.mode&1))return _c(n,r,R,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),_c(n,r,R,d)}if(D=(R&n.childLanes)!==0,Zn||D){if(d=cr,d!==null){switch(R&-R){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|R)?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))),_c(n,r,R,d)}return m.data==="$?"?(r.flags|=128,r.child=n.child,r=Q0.bind(null,n),m._reactRetry=r,null):(n=S.treeContext,ga=Xi(m.nextSibling),ma=r,_n=!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,ls(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 R;s=null;for(ee in m)if(!d.hasOwnProperty(ee)&&m.hasOwnProperty(ee)&&m[ee]!=null)if(ee==="style"){var D=m[ee];for(R in D)D.hasOwnProperty(R)&&(s||(s={}),s[R]="")}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(R in D)!D.hasOwnProperty(R)||U&&U.hasOwnProperty(R)||(s||(s={}),s[R]="");for(R in U)U.hasOwnProperty(R)&&D[R]!==U[R]&&(s||(s={}),s[R]=U[R])}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(!_n)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,ss(),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&&(Ss(ti),ti=null))),Jn(n,r),mr(r),null;case 5:Kf(r);var m=ls(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=ls(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 R in S)if(S.hasOwnProperty(R)){var D=S[R];R==="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(R)&&D!=null&&R==="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{R=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=R.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild)):typeof d.is=="string"?n=R.createElement(s,{is:d.is}):(n=R.createElement(s),s==="select"&&(R=n,d.multiple?R.multiple=!0:d.size&&(R.size=d.size))):n=R.createElementNS(n,s),n[Ki]=r,n[uc]=d,ii(n,r,!1,!1),r.stateNode=n;e:{switch(R=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,R))}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=ls(mc.current),ls(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(_n&&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&&(Ss(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 ss(),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,R=S.rendering,R===null)if(d)Oc(S,!1);else{if($n!==0||n!==null&&n.flags&128)for(n=r.child;n!==null;){if(R=Qf(n),R!==null){for(r.flags|=128,Oc(S,!1),d=R.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,R=S.alternate,R===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=R.childLanes,S.lanes=R.lanes,S.child=R.child,S.subtreeFlags=0,S.deletions=null,S.memoizedProps=R.memoizedProps,S.memoizedState=R.memoizedState,S.updateQueue=R.updateQueue,S.type=R.type,n=R.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&&kt()>yu&&(r.flags|=128,d=!0,Oc(S,!1),r.lanes=4194304)}else{if(!d)if(n=Qf(R),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"&&!R.alternate&&!_n)return mr(r),null}else 2*kt()-S.renderingStartTime>yu&&s!==1073741824&&(r.flags|=128,d=!0,Oc(S,!1),r.lanes=4194304);S.isBackwards?(R.sibling=r.child,r.child=R):(s=S.last,s!==null?s.sibling=R:r.child=R,S.last=R)}return S.tail!==null?(r=S.tail,S.rendering=r,S.tail=r.sibling,S.renderingStartTime=kt(),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 ss(),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 ss(),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,V0=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 R=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=R+m),Se!==S||d!==0&&Se.nodeType!==3||(U=R+d),Se.nodeType===3&&(R+=Se.nodeValue.length),(Ue=Se.firstChild)!==null;)me=Se,Se=Ue;for(;;){if(Se===n)break t;if(me===s&&++ee===m&&(D=R),me===S&&++ge===d&&(U=R),(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(ts={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[B0])),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 _o(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,R=S.destroy;S=S.tag,R!==void 0&&(S&2||S&4)&&wd(s,r,R),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 V0),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,R=r,D=R;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,R,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,R=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,R);var ee=pr(D,S);for(R=0;R<U.length;R+=2){var ge=U[R],Se=U[R+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=kt())),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,R=U!=null&&U.hasOwnProperty("display")?U.display:null,D.style.display=an("display",R))}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=_o(n);ro(n,S,m);break;case 3:case 4:var R=d.stateNode.containerInfo,D=_o(n);no(n,D,R);break;default:throw Error(l(161))}}catch(U){An(n,n.return,U)}n.flags&=-3}r&4096&&(n.flags&=-4097)}function $0(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 R=m.memoizedState!==null||Nc;if(!R){var D=m.alternate,U=D!==null&&D.memoizedState!==null||Hr;D=Nc;var ee=Hr;if(Nc=R,(Hr=U)&&!ee)for(je=m;je!==null;)R=je,U=R.child,R.tag===22&&R.memoizedState!==null?bh(m):U!==null?(U.return=R,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 R=r.updateQueue;if(R!==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,R,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 R=r.return;try{yh(r)}catch(U){An(r,R,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 G0=Math.ceil,Sl=fe.ReactCurrentDispatcher,gs=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,ys=null,wl=null,Cd=!1,Ao=null,Fc=0,bl=0,wu=null,jc=-1,Vr=0;function tr(){return Yt&6?kt():jc!==-1?jc:jc=kt()}function io(n){return n.mode&1?Yt&2&&Mr!==0?Mr&-Mr:H0.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=kt()+500,cu&&qi()))}function Ca(n,r){var s=n.callbackNode;Yl(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=$l;break;case 16:s=Gl;break;case 536870912:s=Vs;break;default:s=Gl}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=kt()+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,kt()),s;if(r===6)Di(n,d);else{if(m=n.current.alternate,!(d&30)&&!Y0(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,kt()),s;switch(n.finishedWork=m,n.finishedLanes=d,r){case 0:case 1:throw Error(l(345));case 2:bs(n,xa,za);break;case 3:if(Di(n,d),(d&130023424)===d&&(r=xh+500-kt(),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(bs.bind(null,n,xa,za),r);break}bs(n,xa,za);break;case 4:if(Di(n,d),(d&4194240)===d)break;for(r=n.eventTimes,m=-1;0<d;){var R=31-Yr(d);S=1<<R,R=r[R],R>m&&(m=R),d&=~S}if(d=m,d=kt()-d,d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3e3>d?3e3:4320>d?4320:1960*G0(d/1960))-d,10<d){n.timeoutHandle=jf(bs.bind(null,n,xa,za),d);break}bs(n,xa,za);break;case 5:bs(n,xa,za);break;default:throw Error(l(329))}}}return Ca(n,kt()),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&&Ss(r)),n}function Ss(n){xa===null?xa=n:xa.push.apply(xa,n)}function Y0(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(!ki(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,kt()),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,kt()),s;if(s===6)throw Error(l(345));return n.finishedWork=n.current.alternate,n.finishedLanes=r,bs(n,xa,za),Ca(n,kt()),null}function Eh(n,r){var s=Yt;Yt|=1;try{return n(r)}finally{Yt=s,Yt===0&&(yu=kt()+500,cu&&qi())}}function ws(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:ss(),Cn(sr),Cn(zn),it();break;case 5:Kf(d);break;case 4:ss();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,os!==null){for(r=0;r<os.length;r++)if(s=os[r],d=s.interleaved,d!==null){s.interleaved=null;var m=d.next,S=s.pending;if(S!==null){var R=S.next;S.next=m,d.next=R}s.pending=d}os=null}return n}function ng(n,r){do{var s=er;try{if(Jp(),Lt.current=hs,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,us=0,gs.current=null,s===null||s.return===null){$n=1,Uc=r,er=null;break}e:{var S=n,R=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(R);if(Ue!==null){Ue.flags&=-257,yl(Ue,R,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(_n&&D.mode&1){var Gn=Vm(R);if(Gn!==null){!(Gn.flags&65536)&&(Gn.flags|=256),yl(Gn,R,D,S,r),Ro(vs(U,D));break e}}S=U=vs(U,D),$n!==4&&($n=2),zc===null?zc=[S]:zc.push(S),S=R;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=hs,n===null?hs: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{W0();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 W0(){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,gs.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 bs(n,r,s){var d=Zt,m=Rr.transition;try{Rr.transition=null,Zt=1,X0(n,r,s,d)}finally{Rr.transition=m,Zt=d}return null}function X0(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(Gl,function(){return bu(),null})),S=(s.flags&15990)!==0,s.subtreeFlags&15990||S){S=Rr.transition,Rr.transition=null;var R=Zt;Zt=1;var D=Yt;Yt|=4,gs.current=null,Zm(n,s),Sh(s,n),nu(ts),Qa=!!sc,ts=sc=null,n.current=s,$0(s),xi(),Yt=D,Zt=R,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,kt()),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=ys,ys=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,R=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&&R!==null)R.return=S,je=R;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;){R=je;var K=R.child;if(R.subtreeFlags&2064&&K!==null)K.return=R,je=K;else e:for(R=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===R){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=vs(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=vs(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 K0(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>kt()-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 Q0(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,_n&&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=kc(null,r,d,!0,S,s)):(r.tag=0,_n&&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=Z0(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=ms(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 R=r.memoizedState;if(d=R.element,S.isDehydrated)if(S={element:d,isDehydrated:!1,cache:R.cache,pendingSuspenseBoundaries:R.pendingSuspenseBoundaries,transitions:R.transitions},r.updateQueue.baseState=S,r.memoizedState=S,r.flags&256){m=vs(Error(l(423)),r),r=Ym(n,r,d,s,m);break e}else if(d!==m){m=vs(Error(l(424)),r),r=Ym(n,r,d,s,m);break e}else for(ga=Xi(r.stateNode.containerInfo.firstChild),ma=r,_n=!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,R=m.children,Ff(d,m)?R=null:S!==null&&Ff(d,S)&&(r.flags|=32),hh(n,r),Tr(n,r,R,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,R=m.value,nt(La,d._currentValue),d._currentValue=R,S!==null)if(ki(S.value,R)){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){R=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)R=S.type===r.type?null:S.child;else if(S.tag===18){if(R=S.return,R===null)throw Error(l(341));R.lanes|=s,D=R.alternate,D!==null&&(D.lanes|=s),th(R,s,r),R=S.sibling}else R=S.child;if(R!==null)R.return=S;else for(R=S;R!==null;){if(R===r){R=null;break}if(S=R.sibling,S!==null){S.return=R.return,R=S;break}R=R.return}S=R}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),ms(n,r,d,m,s);case 15:return _t(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),kc(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 Z0(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 R=2;if(d=n,typeof n=="function")Mh(n)&&(R=1);else if(typeof n=="string")R=5;else e:switch(n){case ve:return No(s.children,m,S,r);case xe:R=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:R=10;break e;case Rt:R=9;break e;case lt:R=11;break e;case st:R=14;break e;case qe:R=16,d=null;break e}throw Error(l(130,n==null?n:typeof n,""))}return r=oi(R,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 kh(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,R,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 J0(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 _h(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,R,D,U){return n=Md(s,d,!0,n,m,S,R,D,U),n.context=_h(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 kd(n,r,s,d){var m=r.current,S=tr(),R=io(m);return s=_h(s),r.context===null?r.context=s:r.pendingContext=s,r=Mo(S,R),r.payload={element:n},d=d===void 0?null:d,d!==null&&(r.callback=d),n=vl(m,r,R),n!==null&&(Zr(n,m,R,S),Xf(n,m,R)),R}function _d(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 xs=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));kd(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;ws(function(){kd(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 eS(n,r,s,d,m){if(m){if(typeof d=="function"){var S=d;d=function(){var ee=_d(R);S.call(ee)}}var R=pg(r,d,n,0,null,!1,!1,"",vg);return n._reactRootContainer=R,n[Co]=R.current,au(n.nodeType===8?n.parentNode:n),ws(),R}for(;m=n.lastChild;)n.removeChild(m);if(typeof d=="function"){var D=d;d=function(){var ee=_d(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),ws(function(){kd(r,U,s,d)}),U}function Vc(n,r,s,d,m){var S=s._reactRootContainer;if(S){var R=S;if(typeof m=="function"){var D=m;m=function(){var U=_d(R);D.call(U)}}kd(r,R,n,m)}else R=eS(s,r,n,m,d);return _d(R)}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,kt()),!(Yt&6)&&(yu=kt()+500,qi()))}break;case 13:ws(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)}},Hl=Eh,Qo=ws;var tS={usingClientEntryPoint:!1,Events:[at,_i,Dn,mo,Bl,Eh]},$c={findFiberByHostInstance:ns,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=tS,$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 J0(n,r,null,s)},$a.createRoot=function(n,r){if(!Nh(n))throw Error(l(299));var s=!1,d="",m=xs;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 ws(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="",R=xs;if(s!=null&&(s.unstable_strictMode===!0&&(m=!0),s.identifierPrefix!==void 0&&(S=s.identifierPrefix),s.onRecoverableError!==void 0&&(R=s.onRecoverableError)),r=pg(r,null,n,1,s??null,m,!1,S,R),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?(ws(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={};/**
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,ys=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=K0.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)):(_n&&s&&$f(r),r.flags|=1,Tr(n,r,d,m),r.child)}function ms(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,_t(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 _t(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)):(_n&&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 kc(n,r,s,d,S,m)}function kc(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 _c(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))),_c(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 _c(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),_c(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))),_c(n,r,T,d)}return m.data==="$?"?(r.flags|=128,r.child=n.child,r=Q0.bind(null,n),m._reactRetry=r,null):(n=S.treeContext,ga=Xi(m.nextSibling),ma=r,_n=!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,ls(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(!_n)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,ss(),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&&(Ss(ti),ti=null))),Jn(n,r),mr(r),null;case 5:Kf(r);var m=ls(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=ls(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=ls(mc.current),ls(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(_n&&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&&(Ss(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 ss(),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&&kt()>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&&!_n)return mr(r),null}else 2*kt()-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=kt(),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 ss(),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 ss(),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,V0=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(ts={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[B0])),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 _o(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 V0),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=kt())),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=_o(n);ro(n,S,m);break;case 3:case 4:var T=d.stateNode.containerInfo,D=_o(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 $0(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 G0=Math.ceil,Sl=fe.ReactCurrentDispatcher,gs=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,ys=null,wl=null,Cd=!1,Ao=null,Fc=0,bl=0,wu=null,jc=-1,Vr=0;function tr(){return Yt&6?kt():jc!==-1?jc:jc=kt()}function io(n){return n.mode&1?Yt&2&&Mr!==0?Mr&-Mr:H0.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=kt()+500,cu&&qi()))}function Ca(n,r){var s=n.callbackNode;Yl(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=$l;break;case 16:s=Gl;break;case 536870912:s=Vs;break;default:s=Gl}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=kt()+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,kt()),s;if(r===6)Di(n,d);else{if(m=n.current.alternate,!(d&30)&&!Y0(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,kt()),s;switch(n.finishedWork=m,n.finishedLanes=d,r){case 0:case 1:throw Error(l(345));case 2:bs(n,xa,za);break;case 3:if(Di(n,d),(d&130023424)===d&&(r=xh+500-kt(),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(bs.bind(null,n,xa,za),r);break}bs(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=kt()-d,d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3e3>d?3e3:4320>d?4320:1960*G0(d/1960))-d,10<d){n.timeoutHandle=jf(bs.bind(null,n,xa,za),d);break}bs(n,xa,za);break;case 5:bs(n,xa,za);break;default:throw Error(l(329))}}}return Ca(n,kt()),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&&Ss(r)),n}function Ss(n){xa===null?xa=n:xa.push.apply(xa,n)}function Y0(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(!ki(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,kt()),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,kt()),s;if(s===6)throw Error(l(345));return n.finishedWork=n.current.alternate,n.finishedLanes=r,bs(n,xa,za),Ca(n,kt()),null}function Eh(n,r){var s=Yt;Yt|=1;try{return n(r)}finally{Yt=s,Yt===0&&(yu=kt()+500,cu&&qi())}}function ws(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:ss(),Cn(sr),Cn(zn),it();break;case 5:Kf(d);break;case 4:ss();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,os!==null){for(r=0;r<os.length;r++)if(s=os[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}os=null}return n}function ng(n,r){do{var s=er;try{if(Jp(),Lt.current=hs,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,us=0,gs.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(_n&&D.mode&1){var Gn=Vm(T);if(Gn!==null){!(Gn.flags&65536)&&(Gn.flags|=256),yl(Gn,T,D,S,r),Ro(vs(U,D));break e}}S=U=vs(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=hs,n===null?hs: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{W0();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 W0(){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,gs.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 bs(n,r,s){var d=Zt,m=Rr.transition;try{Rr.transition=null,Zt=1,X0(n,r,s,d)}finally{Rr.transition=m,Zt=d}return null}function X0(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(Gl,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,gs.current=null,Zm(n,s),Sh(s,n),nu(ts),Qa=!!sc,ts=sc=null,n.current=s,$0(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,kt()),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=ys,ys=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=vs(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=vs(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 K0(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>kt()-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 Q0(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,_n&&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=kc(null,r,d,!0,S,s)):(r.tag=0,_n&&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=Z0(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=ms(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=vs(Error(l(423)),r),r=Ym(n,r,d,s,m);break e}else if(d!==m){m=vs(Error(l(424)),r),r=Ym(n,r,d,s,m);break e}else for(ga=Xi(r.stateNode.containerInfo.firstChild),ma=r,_n=!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(ki(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),ms(n,r,d,m,s);case 15:return _t(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),kc(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 Z0(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 kh(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 J0(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 _h(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=_h(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 kd(n,r,s,d){var m=r.current,S=tr(),T=io(m);return s=_h(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 _d(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 xs=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));kd(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;ws(function(){kd(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 eS(n,r,s,d,m){if(m){if(typeof d=="function"){var S=d;d=function(){var ee=_d(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),ws(),T}for(;m=n.lastChild;)n.removeChild(m);if(typeof d=="function"){var D=d;d=function(){var ee=_d(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),ws(function(){kd(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=_d(T);D.call(U)}}kd(r,T,n,m)}else T=eS(s,r,n,m,d);return _d(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,kt()),!(Yt&6)&&(yu=kt()+500,qi()))}break;case 13:ws(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)}},Hl=Eh,Qo=ws;var tS={usingClientEntryPoint:!1,Events:[at,_i,Dn,mo,Bl,Eh]},$c={findFiberByHostInstance:ns,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=tS,$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 J0(n,r,null,s)},$a.createRoot=function(n,r){if(!Nh(n))throw Error(l(299));var s=!1,d="",m=xs;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 ws(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=xs;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?(ws(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
100
  * @license React
101
101
  * react-dom.development.js
102
102
  *
@@ -104,15 +104,15 @@ Error generating stack: `+S.message+`
104
104
  *
105
105
  * This source code is licensed under the MIT license found in the
106
106
  * LICENSE file in the root directory of this source tree.
107
- */var nx;function OR(){return nx||(nx=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=ex(),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 b=0,T=1,_=2,k=3,A=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,ke=!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 _a(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 Bl=/^[\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,Hl=!1;function Qo(e){!Hl&&Bl.test(e)&&(Hl=!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 Vl(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 x=u.type;e[w]=x===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 kt(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,$l,Gl,Zo,Vs,Jo,da,Xu;function Yr(){}Yr.__reactDisabledLog=!0;function Ef(){{if(Ci===0){$l=console.log,Gl=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:$l}),info:At({},e,{value:Gl}),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`
107
+ */var nx;function NR(){return nx||(nx=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=ex(),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,k=3,_=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,ke=!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 _a(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 Bl=/^[\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,Hl=!1;function Qo(e){!Hl&&Bl.test(e)&&(Hl=!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 Vl(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 kt(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,$l,Gl,Zo,Vs,Jo,da,Xu;function Yr(){}Yr.__reactDisabledLog=!0;function Ef(){{if(Ci===0){$l=console.log,Gl=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:$l}),info:At({},e,{value:Gl}),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
108
  `+el+e}}var Ei=!1,Ti;{var Gs=typeof WeakMap=="function"?WeakMap:Map;Ti=new Gs}function Yl(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
- `),x=o.stack.split(`
110
- `),M=w.length-1,O=x.length-1;M>=1&&O>=0&&w[M]!==x[O];)O--;for(;M>=1&&O>=0;M--,O--)if(w[M]!==x[O]){if(M!==1||O!==1)do if(M--,O--,O<0||w[M]!==x[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 Yl(e,!0)}function Ys(e,t,i){return Yl(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 Yl(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 b:case _:case ve:return Ys(e.type);case ce:return Ys(e.type.render);case T: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`
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 Yl(e,!0)}function Ys(e,t,i){return Yl(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 Yl(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
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 A:return"Portal";case k: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 T:case b:case tt:case _: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 Wl={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function Qu(e,t){Wl[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 Xl(e){e._valueTracker=null}function kp(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(){Xl(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=kp(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,Kl=!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&&!Kl&&(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"),Kl=!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?`
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 _:return"Portal";case k: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 Wl={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function Qu(e,t){Wl[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 Xl(e){e._valueTracker=null}function kp(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(){Xl(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=kp(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,Kl=!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&&!Kl&&(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"),Kl=!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
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 x=0;x<u.length;x++){var M=g.hasOwnProperty("$"+u[x].value);u[x].selected!==M&&(u[x].selected=M),M&&o&&(u[x].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 Ql(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 _p(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 A0(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 kf(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":(_a(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 O0=/^(?:webkit|moz|o)[A-Z]/,N0=/^-ms-/,pm=/-(.)/g,zp=/;\s*$/,Wi={},ql={},hm=!1,nc=!1,D0=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,D0(e.replace(N0,"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):O0.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 L0(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+=kf(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=kf(o,t[o],u);o==="float"&&(o="cssFloat"),u?i.setProperty(o,p):i[o]=p}}function P0(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 I0(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 x=g+","+w;if(u[x])continue;u[x]=!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.",P0(e[g])?"Removing":"Updating",g,w)}}}}var ki={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},ki),bm="__html";function _f(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={},U0=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(U0.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 Zl=function(){};{var Er={},$p=/^on./,Nf=/^on[^A-Z]/,xm=new RegExp("^(aria)-["+Me+"]*$"),Cm=new RegExp("^(aria)[A-Z]["+Me+"]*$");Zl=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 x=wn(t),M=x!==null&&x.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,x,!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,x,!1)?(Er[t]=!0,!1):((i==="false"||i==="true")&&x!==null&&x.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=Zl(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,Jl=null;function z0(e){Jl!==null&&v("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),Jl=e}function F0(){Jl===null&&v("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),Jl=null}function oc(e){return e===Jl}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,es=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){es?on?on.push(e):on=[e]:es=e}function Rm(){return es!==null||on!==null}function Uf(){if(es){var e=es,t=on;if(es=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 km(e,t,i){if(ll)return e(t,i);ll=!0;try{return iu(e,t,i)}finally{ll=!1,Mm()}}function j0(e,t,i){iu=e,lc=i}function _m(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&&_m(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 ts={};Object.defineProperty(ts,"passive",{get:function(){sc=!0}}),window.addEventListener("test",ts,ts),window.removeEventListener("test",ts,ts)}catch{sc=!1}function Ff(e,t,i,o,u,p,g,w,x){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,x,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,x){ou=!1,Bf=null,Am.apply(Om,arguments)}function Ki(e,t,i,o,u,p,g,w,x){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 B0(e){return e._reactInternals!==void 0}function ns(e,t){e._reactInternals=t}var at=0,_i=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===k?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===k?e.stateNode.containerInfo:null}function rs(e){return Da(e)===e}function Dm(e){{var t=ei.current;if(t!==null&&t.tag===T){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 x=p.child;x;){if(x===o)return $f(p),e;if(x===u)return $f(p),t;x=x.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!==k)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 _n(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!==A){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,H0=a.unstable_LowPriority,as=a.unstable_IdlePriority,Wf=a.unstable_yieldValue,Pm=a.unstable_setDisableYieldValue,is=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:os,injectProfilingHooks:ni})),is=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(is,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=as;break;default:o=Ro;break}Bn.onCommitFiberRoot(is,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(is,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(is,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(is,e)}catch(t){La||(La=!0,v("React instrumentation encountered an error: %s",t))}}function ni(e){De=e}function os(){{for(var e=new Map,t=1,i=0;i<us;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 ls(e){De!==null&&typeof De.markPassiveEffectsStarted=="function"&&De.markPassiveEffectsStarted(e)}function oh(){De!==null&&typeof De.markPassiveEffectsStopped=="function"&&De.markPassiveEffectsStopped()}function ss(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 us=31,he=0,qt=0,vt=1,ml=2,Ai=4,Br=8,Hn=16,ko=32,gl=4194240,cs=64,Zf=128,Jf=256,ed=512,td=1024,nd=2048,rd=4096,ad=8192,id=16384,fs=32768,od=65536,du=131072,pu=262144,ld=524288,Sc=1048576,sd=2097152,wc=130023424,ds=4194304,ud=8388608,bc=16777216,cd=33554432,fd=67108864,lh=ds,xc=134217728,sh=268435455,Cc=268435456,ps=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&ko)return"TransitionHydration";if(e&gl)return"Transition";if(e&wc)return"Retry";if(e&xc)return"SelectiveHydration";if(e&Cc)return"IdleHydration";if(e&ps)return"Idle";if(e&Sa)return"Offscreen"}}var mn=-1,hs=cs,dd=ds;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 ko:return ko;case cs:case Zf:case Jf:case ed:case td:case nd:case rd:case ad:case id:case fs:case od:case du:case pu:case ld:case Sc:case sd:return e&gl;case ds:case ud:case bc:case cd:case fd:return e&wc;case xc:return xc;case Cc:return Cc;case ps:return ps;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 x=g&p;x!==he&&(o=Ec(x))}}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 ko:case cs:case Zf:case Jf:case ed:case td:case nd:case rd:case ad:case id:case fs:case od:case du:case pu:case ld:case Sc:case sd:return t+5e3;case ds:case ud:case bc:case cd:case fd:return mn;case xc:case Cc:case ps: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),x=1<<w,M=p[w];M===mn?((x&o)===he||(x&u)!==he)&&(p[w]=uh(x,t)):M<=t&&(e.expiredLanes|=x),g&=~x}}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 vs(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=hs;return hs<<=1,(hs&gl)===he&&(hs=cs),e}function Vm(){var e=dd;return dd<<=1,(dd&wc)===he&&(dd=ds),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 ms(e,t){return(e&t)===t}function _t(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 kc(e){for(var t=[],i=0;i<us;i++)t.push(e);return t}function hu(e,t,i){e.pendingLanes|=t,t!==ps&&(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),x=1<<w;o[w]=he,u[w]=mn,p[w]=mn,g&=~x}}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 cs:case Zf:case Jf:case ed:case td:case nd:case rd:case ad:case id:case fs:case od:case du:case pu:case ld:case Sc:case sd:case ds:case ud:case bc:case cd:case fd:o=ko;break;case ps:o=Cc;break;default:o=qt;break}return(o&(e.suspendedLanes|t))!==qt?qt:o}function _c(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 x=w.alternate;(x===null||!o.has(x))&&o.add(w)}),g.clear()),t&=~p}}function gh(e,t){return null}var Kr=vt,to=Ai,ri=Hn,ai=ps,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 V0(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=[],_o=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":_o=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 x=e.targetContainers;return u!==null&&x.indexOf(u)===-1&&x.push(u),e}function $0(e,t,i,o,u){switch(t){case"focusin":{var p=u;return _o=ba(_o,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 x=u,M=x.pointerId;return Vn.set(M,ba(Vn.get(M)||null,e,t,i,o,x)),!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===k){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);z0(p),u.target.dispatchEvent(p),F0()}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 G0(){bd=!1,_o!==null&&Ic(_o)&&(_o=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,G0)))}function gs(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)}}_o!==null&&Sl(_o,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){sS(e,t,o,ao,i),Sh(e,o);return}if($0(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&&V0(p);var g=gu(e,t,i,o);if(g===null&&sS(e,t,o,ao,i),g===u)break;u=g}u!==null&&o.stopPropagation();return}sS(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 x=Zi(g);if(x!==null)return x;p=null}else if(w===k){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 H0:return ri;case as: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,ys=null;function wl(e){return za=e,Su=Fc(),!0}function Cd(){za=null,Su=null,ys=null}function Ao(){if(ys)return ys;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 ys=u.slice(e,w),ys}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 x=e[w];x?this[w]=x(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,Ss;function Y0(e){e!==Ss&&(Ss&&e.type==="mousemove"?(Ed=e.screenX-Ss.screenX,Bc=e.screenY-Ss.screenY):(Ed=0,Bc=0),Ss=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:(Y0(e),Ed)},movementY:function(e){return"movementY"in e?e.movementY:Bc}}),Ch=Vr(Di),Eh=At({},Di,{dataTransfer:0}),ws=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),W0=At({},tr,{data:0}),ag=Vr(W0),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"},bs={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 X0(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"?bs[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 K0=At({},Zr,{key:X0,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(K0),Q0=At({},Di,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ug=Vr(Q0),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}),Z0=Vr(Mh),xl=[9,13,27,32],Hc=229,No=gn&&"CompositionEvent"in window,Cl=null;gn&&"documentMode"in document&&(Cl=document.documentMode);var kh=gn&&"TextEvent"in window&&!Cl,Rd=gn&&(!No||Cl&&Cl>8&&Cl<=11),dg=32,Md=String.fromCharCode(dg);function J0(){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 _h=!1;function pg(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function kd(e){switch(e){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function _d(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 xs=!1;function Oh(e,t,i,o,u){var p,g;if(No?p=kd(t):xs?Ah(t,o)&&(p="onCompositionEnd"):_d(t,o)&&(p="onCompositionStart"),!p)return null;Rd&&!hg(o)&&(!xs&&p==="onCompositionStart"?xs=wl(u):p==="onCompositionEnd"&&xs&&(g=Ao()));var w=bg(i,p);if(w.length>0){var x=new ag(p,t,null,o,u);if(e.push({event:x,listeners:w}),g)x.data=g;else{var M=Ad(o);M!==null&&(x.data=M)}}}function Od(e,t){switch(e){case"compositionend":return Ad(t);case"keypress":var i=t.which;return i!==dg?null:(_h=!0,Md);case"textInput":var o=t.data;return o===Md&&_h?null:o;default:return null}}function Nh(e,t){if(xs){if(e==="compositionend"||!No&&Ah(e,t)){var i=Ao();return Cd(),xs=!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(kh?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 eS={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"?!!eS[e.type]:t==="textarea"}/**
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 Ql(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 _p(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 A0(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 kf(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":(_a(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 O0=/^(?:webkit|moz|o)[A-Z]/,N0=/^-ms-/,pm=/-(.)/g,zp=/;\s*$/,Wi={},ql={},hm=!1,nc=!1,D0=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,D0(e.replace(N0,"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):O0.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 L0(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+=kf(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=kf(o,t[o],u);o==="float"&&(o="cssFloat"),u?i.setProperty(o,p):i[o]=p}}function P0(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 I0(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.",P0(e[g])?"Removing":"Updating",g,w)}}}}var ki={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},ki),bm="__html";function _f(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={},U0=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(U0.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 Zl=function(){};{var Er={},$p=/^on./,Nf=/^on[^A-Z]/,xm=new RegExp("^(aria)-["+Me+"]*$"),Cm=new RegExp("^(aria)[A-Z]["+Me+"]*$");Zl=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=Zl(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,Jl=null;function z0(e){Jl!==null&&v("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),Jl=e}function F0(){Jl===null&&v("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),Jl=null}function oc(e){return e===Jl}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,es=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){es?on?on.push(e):on=[e]:es=e}function Rm(){return es!==null||on!==null}function Uf(){if(es){var e=es,t=on;if(es=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 km(e,t,i){if(ll)return e(t,i);ll=!0;try{return iu(e,t,i)}finally{ll=!1,Mm()}}function j0(e,t,i){iu=e,lc=i}function _m(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&&_m(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 ts={};Object.defineProperty(ts,"passive",{get:function(){sc=!0}}),window.addEventListener("test",ts,ts),window.removeEventListener("test",ts,ts)}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 B0(e){return e._reactInternals!==void 0}function ns(e,t){e._reactInternals=t}var at=0,_i=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===k?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===k?e.stateNode.containerInfo:null}function rs(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!==k)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 _n(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!==_){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,H0=a.unstable_LowPriority,as=a.unstable_IdlePriority,Wf=a.unstable_yieldValue,Pm=a.unstable_setDisableYieldValue,is=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:os,injectProfilingHooks:ni})),is=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(is,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=as;break;default:o=Ro;break}Bn.onCommitFiberRoot(is,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(is,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(is,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(is,e)}catch(t){La||(La=!0,v("React instrumentation encountered an error: %s",t))}}function ni(e){De=e}function os(){{for(var e=new Map,t=1,i=0;i<us;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 ls(e){De!==null&&typeof De.markPassiveEffectsStarted=="function"&&De.markPassiveEffectsStarted(e)}function oh(){De!==null&&typeof De.markPassiveEffectsStopped=="function"&&De.markPassiveEffectsStopped()}function ss(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 us=31,he=0,qt=0,vt=1,ml=2,Ai=4,Br=8,Hn=16,ko=32,gl=4194240,cs=64,Zf=128,Jf=256,ed=512,td=1024,nd=2048,rd=4096,ad=8192,id=16384,fs=32768,od=65536,du=131072,pu=262144,ld=524288,Sc=1048576,sd=2097152,wc=130023424,ds=4194304,ud=8388608,bc=16777216,cd=33554432,fd=67108864,lh=ds,xc=134217728,sh=268435455,Cc=268435456,ps=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&ko)return"TransitionHydration";if(e&gl)return"Transition";if(e&wc)return"Retry";if(e&xc)return"SelectiveHydration";if(e&Cc)return"IdleHydration";if(e&ps)return"Idle";if(e&Sa)return"Offscreen"}}var mn=-1,hs=cs,dd=ds;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 ko:return ko;case cs:case Zf:case Jf:case ed:case td:case nd:case rd:case ad:case id:case fs:case od:case du:case pu:case ld:case Sc:case sd:return e&gl;case ds:case ud:case bc:case cd:case fd:return e&wc;case xc:return xc;case Cc:return Cc;case ps:return ps;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 ko:case cs:case Zf:case Jf:case ed:case td:case nd:case rd:case ad:case id:case fs:case od:case du:case pu:case ld:case Sc:case sd:return t+5e3;case ds:case ud:case bc:case cd:case fd:return mn;case xc:case Cc:case ps: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 vs(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=hs;return hs<<=1,(hs&gl)===he&&(hs=cs),e}function Vm(){var e=dd;return dd<<=1,(dd&wc)===he&&(dd=ds),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 ms(e,t){return(e&t)===t}function _t(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 kc(e){for(var t=[],i=0;i<us;i++)t.push(e);return t}function hu(e,t,i){e.pendingLanes|=t,t!==ps&&(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 cs:case Zf:case Jf:case ed:case td:case nd:case rd:case ad:case id:case fs:case od:case du:case pu:case ld:case Sc:case sd:case ds:case ud:case bc:case cd:case fd:o=ko;break;case ps:o=Cc;break;default:o=qt;break}return(o&(e.suspendedLanes|t))!==qt?qt:o}function _c(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=ps,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 V0(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=[],_o=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":_o=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 $0(e,t,i,o,u){switch(t){case"focusin":{var p=u;return _o=ba(_o,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===k){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);z0(p),u.target.dispatchEvent(p),F0()}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 G0(){bd=!1,_o!==null&&Ic(_o)&&(_o=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,G0)))}function gs(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)}}_o!==null&&Sl(_o,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){sS(e,t,o,ao,i),Sh(e,o);return}if($0(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&&V0(p);var g=gu(e,t,i,o);if(g===null&&sS(e,t,o,ao,i),g===u)break;u=g}u!==null&&o.stopPropagation();return}sS(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===k){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 H0:return ri;case as: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,ys=null;function wl(e){return za=e,Su=Fc(),!0}function Cd(){za=null,Su=null,ys=null}function Ao(){if(ys)return ys;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 ys=u.slice(e,w),ys}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,Ss;function Y0(e){e!==Ss&&(Ss&&e.type==="mousemove"?(Ed=e.screenX-Ss.screenX,Bc=e.screenY-Ss.screenY):(Ed=0,Bc=0),Ss=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:(Y0(e),Ed)},movementY:function(e){return"movementY"in e?e.movementY:Bc}}),Ch=Vr(Di),Eh=At({},Di,{dataTransfer:0}),ws=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),W0=At({},tr,{data:0}),ag=Vr(W0),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"},bs={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 X0(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"?bs[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 K0=At({},Zr,{key:X0,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(K0),Q0=At({},Di,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ug=Vr(Q0),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}),Z0=Vr(Mh),xl=[9,13,27,32],Hc=229,No=gn&&"CompositionEvent"in window,Cl=null;gn&&"documentMode"in document&&(Cl=document.documentMode);var kh=gn&&"TextEvent"in window&&!Cl,Rd=gn&&(!No||Cl&&Cl>8&&Cl<=11),dg=32,Md=String.fromCharCode(dg);function J0(){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 _h=!1;function pg(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function kd(e){switch(e){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function _d(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 xs=!1;function Oh(e,t,i,o,u){var p,g;if(No?p=kd(t):xs?Ah(t,o)&&(p="onCompositionEnd"):_d(t,o)&&(p="onCompositionStart"),!p)return null;Rd&&!hg(o)&&(!xs&&p==="onCompositionStart"?xs=wl(u):p==="onCompositionEnd"&&xs&&(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:(_h=!0,Md);case"textInput":var o=t.data;return o===Md&&_h?null:o;default:return null}}function Nh(e,t){if(xs){if(e==="compositionend"||!No&&Ah(e,t)){var i=Ao();return Cd(),xs=!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(kh?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 eS={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"?!!eS[e.type]:t==="textarea"}/**
116
116
  * Checks if an event is supported in the current execution environment.
117
117
  *
118
118
  * NOTE: This will not work correctly for non-generic events such as `change`,
@@ -124,8 +124,8 @@ Check the render method of \``+e+"`.":""}var il=["value","defaultValue"];functio
124
124
  * @return {boolean} True if the event is supported.
125
125
  * @internal
126
126
  * @license Modernizr 3.0.0pre (Custom Build) | MIT
127
- */function tS(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)),km(d,t)}function d(e){tE(e,0)}function m(e){var t=zd(e);if(Yi(t))return e}function S(e,t){if(e==="change")return t}var R=!1;gn&&(R=tS("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,x,M;if(r(w)?x=S:Vc(w)?R?x=Ye:(x=Se,M=ge):me(w)&&(x=Ue),x){var O=x(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",x=t==="mouseout"||t==="pointerout";if(w&&!oc(o)){var M=o.relatedTarget||o.fromElement;if(M&&(Wc(M)||Yh(M)))return}if(!(!x&&!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(x){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}xO(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,x=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&&++x===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 x=w;w=g,g=x}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 $C(e,t){return!e||!t?!1:e===t?!0:gg(e)?!1:gg(t)?$C(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1}function aO(e){return e&&e.ownerDocument&&$C(e.ownerDocument.documentElement,e)}function iO(e){try{return typeof e.contentWindow.location.href=="string"}catch{return!1}}function GC(){for(var e=window,t=Qa();t instanceof e.HTMLIFrameElement;){if(iO(t))e=t.contentWindow;else return t;t=Qa(e.document)}return t}function nS(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 oO(){var e=GC();return{focusedElem:e,selectionRange:nS(e)?sO(e):null}}function lO(e){var t=GC(),i=e.focusedElem,o=e.selectionRange;if(t!==i&&aO(i)){o!==null&&nS(i)&&uO(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 sO(e){var t;return"selectionStart"in e?t={start:e.selectionStart,end:e.selectionEnd}:t=gr(e),t||{start:0,end:0}}function uO(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 cO=gn&&"documentMode"in document&&document.documentMode<=11;function fO(){wt("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var Dd=null,rS=null,Dh=null,aS=!1;function dO(e){if("selectionStart"in e&&nS(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 pO(e){return e.window===e?e.document:e.nodeType===xo?e:e.ownerDocument}function YC(e,t,i){var o=pO(i);if(!(aS||Dd==null||Dd!==Qa(o))){var u=dO(Dd);if(!Dh||!We(Dh,u)){Dh=u;var p=bg(rS,"onSelect");if(p.length>0){var g=new io("onSelect","select",null,t,i);e.push({event:g,listeners:p}),g.target=Dd}}}}function hO(e,t,i,o,u,p,g){var w=i?zd(i):window;switch(t){case"focusin":(Vc(w)||w.contentEditable==="true")&&(Dd=w,rS=i,Dh=null);break;case"focusout":Dd=null,rS=null,Dh=null;break;case"mousedown":aS=!0;break;case"contextmenu":case"mouseup":case"dragend":aS=!1,YC(e,o,u);break;case"selectionchange":if(cO)break;case"keydown":case"keyup":YC(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")},iS={},WC={};gn&&(WC=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(iS[e])return iS[e];if(!Ld[e])return e;var t=Ld[e];for(var i in t)if(t.hasOwnProperty(i)&&i in WC)return iS[e]=t[i];return e}var XC=Sg("animationend"),KC=Sg("animationiteration"),QC=Sg("animationstart"),qC=Sg("transitionend"),ZC=new Map,JC=["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){ZC.set(e,t),wt(t,[e])}function vO(){for(var e=0;e<JC.length;e++){var t=JC[e],i=t.toLowerCase(),o=t[0].toUpperCase()+t.slice(1);xu(i,"on"+o)}xu(XC,"onAnimationEnd"),xu(KC,"onAnimationIteration"),xu(QC,"onAnimationStart"),xu("dblclick","onDoubleClick"),xu("focusin","onFocus"),xu("focusout","onBlur"),xu(qC,"onTransitionEnd")}function mO(e,t,i,o,u,p,g){var w=ZC.get(t);if(w!==void 0){var x=io,M=t;switch(t){case"keypress":if(bl(o)===0)return;case"keydown":case"keyup":x=sg;break;case"focusin":M="focus",x=Oo;break;case"focusout":M="blur",x=Oo;break;case"beforeblur":case"afterblur":x=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":x=Ch;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":x=ws;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":x=fg;break;case XC:case KC:case QC:x=rg;break;case qC:x=oi;break;case"scroll":x=Ca;break;case"wheel":x=Z0;break;case"copy":case"cut":case"paste":x=Td;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":x=ug;break}var O=(p&qa)!==0;{var B=!O&&t==="scroll",F=wO(i,w,o.type,O,B);if(F.length>0){var q=new x(w,M,null,o,u);e.push({event:q,listeners:F})}}}}vO(),Y(),$c(),fO(),J0();function gO(e,t,i,o,u,p,g){mO(e,t,i,o,u,p);var w=(p&Yp)===0;w&&(j(e,t,i,o,u),Gn(e,t,i,o,u),hO(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"],oS=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(Lh));function eE(e,t,i){var o=e.type||"unknown-event";e.currentTarget=i,Ki(o,t,void 0,e),e.currentTarget=null}function yO(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,x=p.listener;if(g!==o&&e.isPropagationStopped())return;eE(e,x,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;eE(e,q,F),o=B}}function tE(e,t){for(var i=(t&qa)!==0,o=0;o<e.length;o++){var u=e[o],p=u.event,g=u.listeners;yO(p,g,i)}uc()}function SO(e,t,i,o,u){var p=Wp(i),g=[];gO(g,e,o,i,p,t),tE(g,t)}function In(e,t){oS.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=KN(t),u=CO(e);o.has(u)||(nE(t,e,Df,i),o.add(u))}function lS(e,t,i){oS.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),nE(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"&&(oS.has(i)||lS(i,!1,e),lS(i,!0,e))});var t=e.nodeType===xo?e:e.ownerDocument;t!==null&&(t[wg]||(t[wg]=!0,lS("selectionchange",!1,t)))}}function nE(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 rE(e,t){return e===t||e.nodeType===Xn&&e.parentNode===t}function sS(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 x=w.tag;if(x===k||x===A){var M=w.stateNode.containerInfo;if(rE(M,g))break;if(x===A)for(var O=w.return;O!==null;){var B=O.tag;if(B===k||B===A){var F=O.stateNode.containerInfo;if(rE(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}}}km(function(){return SO(e,t,i,p)})}function Ih(e,t,i){return{instance:e,listener:t,currentTarget:i}}function wO(e,t,i,o,u,p){for(var g=t!==null?t+"Capture":null,w=o?g:t,x=[],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&&x.push(Ih(M,te,O))}if(u)break;M=M.return}return x}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 x=g,M=sl(u,i);M!=null&&o.unshift(Ih(u,M,x));var O=sl(u,t);O!=null&&o.push(Ih(u,O,x))}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 bO(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 x=u;x--;){if(i===o||o!==null&&i===o.alternate)return i;i=Pd(i),o=Pd(o)}return null}function aE(e,t,i,o,u){for(var p=t._reactName,g=[],w=i;w!==null&&w!==o;){var x=w,M=x.alternate,O=x.stateNode,B=x.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 xO(e,t,i,o,u){var p=o&&u?bO(o,u):null;o!==null&&aE(e,t,o,p,!1),u!==null&&i!==null&&aE(e,i,u,p,!0)}function CO(e,t){return e+"__bubble"}var li=!1,Uh="dangerouslySetInnerHTML",xg="suppressContentEditableWarning",Cu="suppressHydrationWarning",iE="autoFocus",Gc="children",Yc="style",Cg="__html",uS,Eg,zh,oE,Tg,lE,sE;uS={dialog:!0,webview:!0},Eg=function(e,t){Hp(e,t),Of(e,t),Tm(e,t,{registrationNameDependencies:Ve,possibleRegistrationNames:St})},lE=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)))}},oE=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)},sE=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 EO=/\r\n?/g,TO=/\u0000|\uFFFD/g;function Rg(e){dr(e);var t=typeof e=="string"?e:""+e;return t.replace(EO,`
128
- `).replace(TO,"")}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 uE(e){return e.nodeType===xo?e:e.ownerDocument}function RO(){}function kg(e){e.onclick=RO}function MO(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 x=e!=="textarea"||g!=="";x&&eu(t,g)}else typeof g=="number"&&eu(t,""+g);else p===xg||p===Cu||p===iE||(Ve.hasOwnProperty(p)?g!=null&&(typeof g!="function"&&Tg(p,g),p==="onScroll"&&In("scroll",t)):g!=null&&$r(t,p,g,u))}}function kO(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 _O(e,t,i,o){var u,p=uE(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 x=p.createElement("div");x.innerHTML="<script><\/script>";var M=x.firstChild;g=x.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(uS,e)&&(uS[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 AO(e,t){return uE(t).createTextNode(e)}function OO(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":Ql(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(_f(t,p),MO(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":_p(e,i);break;default:typeof p.onClick=="function"&&kg(e);break}}function NO(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"&&kg(e);break}_f(t,w);var x,M,O=null;for(x in g)if(!(w.hasOwnProperty(x)||!g.hasOwnProperty(x)||g[x]==null))if(x===Yc){var B=g[x];for(M in B)B.hasOwnProperty(M)&&(O||(O={}),O[M]="")}else x===Uh||x===Gc||x===xg||x===Cu||x===iE||(Ve.hasOwnProperty(x)?p||(p=[]):(p=p||[]).push(x,null));for(x in w){var F=w[x],q=g?.[x];if(!(!w.hasOwnProperty(x)||F===q||F==null&&q==null))if(x===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(x,O)),O=F;else if(x===Uh){var te=F?F[Cg]:void 0,ae=q?q[Cg]:void 0;te!=null&&ae!==te&&(p=p||[]).push(x,te)}else x===Gc?(typeof F=="string"||typeof F=="number")&&(p=p||[]).push(x,""+F):x===xg||x===Cu||(Ve.hasOwnProperty(x)?(F!=null&&(typeof F!="function"&&Tg(x,F),x==="onScroll"&&In("scroll",e)),!p&&q!==F&&(p=[])):(p=p||[]).push(x,F))}return O&&(I0(O,w[Yc]),(p=p||[]).push(Yc,O)),p}function DO(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(kO(e,t,p,g),i){case"input":L(e,u);break;case"textarea":am(e,u);break;case"select":Rf(e,u);break}}function LO(e){{var t=e.toLowerCase();return ac.hasOwnProperty(t)&&ac[t]||null}}function PO(e,t,i,o,u,p,g){var w,x;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":Ql(e,i),In("invalid",e);break;case"textarea":Np(e,i),In("invalid",e);break}_f(t,i);{x=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:x.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=sE(e,Xt);Bt!==et&&zh(te,et,Bt)}}else if(te===Yc){if(x.delete(te),lE){var W=L0(ae);Le=e.getAttribute("style"),W!==Le&&zh(te,Le,W)}}else if(w&&!V)x.delete(te.toLowerCase()),Le=Vl(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)x.delete(ct.attributeName),Le=qo(e,te,ae,ct);else{var X=o;if(X===wo&&(X=Pp(t)),X===wo)x.delete(te.toLowerCase());else{var we=LO(te);we!==null&&we!==te&&(ie=!0,x.delete(we)),x.delete(te)}Le=Vl(e,te,ae)}var Fe=V;!Fe&&ae!==Le&&!ie&&zh(te,Le,ae)}}}}}switch(g&&x.size>0&&i[Cu]!==!0&&oE(x),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"&&kg(e);break}return q}function IO(e,t,i){var o=e.nodeValue!==t;return o}function cS(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 fS(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 dS(e,t,i){{if(li)return;li=!0,v("Expected server HTML to contain a matching <%s> in <%s>.",t,e.nodeName.toLowerCase())}}function pS(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 UO(e,t,i){switch(t){case"input":re(e,i);return;case"textarea":A0(e,i);return;case"select":Ap(e,i);return}}var Fh=function(){},jh=function(){};{var zO=["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"],cE=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],FO=cE.concat(["button"]),jO=["dd","dt","li","option","optgroup","p","rp","rt"],fE={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};jh=function(e,t){var i=At({},e||fE),o={tag:t};return cE.indexOf(t)!==-1&&(i.aTagInScope=null,i.buttonTagInScope=null,i.nobrTagInScope=null),FO.indexOf(t)!==-1&&(i.pTagInButtonScope=null),zO.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 BO=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 jO.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},HO=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},dE={};Fh=function(e,t,i){i=i||fE;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=BO(e,u)?null:o,g=p?null:HO(e,i),w=p||g;if(w){var x=w.tag,M=!!p+"|"+e+"|"+x;if(!dE[M]){dE[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="";x==="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,x,B,F)}else v("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",O,x)}}}}var _g="suppressHydrationWarning",Ag="$",Og="/$",Bh="$?",Hh="$!",VO="style",hS=null,vS=null;function $O(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(),x=jh(null,w);return{namespace:i,ancestorInfo:x}}}function GO(e,t,i){{var o=e,u=Ip(o.namespace,t),p=jh(o.ancestorInfo,t);return{namespace:u,ancestorInfo:p}}}function s3(e){return e}function YO(e){hS=er(),vS=oO();var t=null;return cr(!1),t}function WO(e){lO(vS),cr(hS),hS=null,vS=null}function XO(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,x=jh(g.ancestorInfo,e);Fh(null,w,x)}p=g.namespace}var M=_O(e,t,i,p);return Gh(u,M),CS(M,t),M}function KO(e,t){e.appendChild(t)}function QO(e,t,i,o,u){switch(OO(e,t,i,o),t){case"button":case"input":case"select":case"textarea":return!!i.autoFocus;case"img":return!0;default:return!1}}function qO(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,x=jh(g.ancestorInfo,t);Fh(null,w,x)}}return NO(e,t,i,o)}function mS(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 ZO(e,t,i,o){{var u=i;Fh(null,e,u.ancestorInfo)}var p=AO(e,t);return Gh(o,p),p}function JO(){var e=window.event;return e===void 0?ri:xd(e.type)}var gS=typeof setTimeout=="function"?setTimeout:void 0,eN=typeof clearTimeout=="function"?clearTimeout:void 0,yS=-1,pE=typeof Promise=="function"?Promise:void 0,tN=typeof queueMicrotask=="function"?queueMicrotask:typeof pE<"u"?function(e){return pE.resolve(null).then(e).catch(nN)}:gS;function nN(e){setTimeout(function(){throw e})}function rN(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 aN(e,t,i,o,u,p){DO(e,t,i,o,u),CS(e,u)}function hE(e){eu(e,"")}function iN(e,t,i){e.nodeValue=i}function oN(e,t){e.appendChild(t)}function lN(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&&kg(i)}function sN(e,t,i){e.insertBefore(t,i)}function uN(e,t,i){e.nodeType===Xn?e.parentNode.insertBefore(t,i):e.insertBefore(t,i)}function cN(e,t){e.removeChild(t)}function fN(e,t){e.nodeType===Xn?e.parentNode.removeChild(t):e.removeChild(t)}function SS(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),gs(t);return}else o--;else(p===Ag||p===Bh||p===Hh)&&o++}i=u}while(i);gs(t)}function dN(e,t){e.nodeType===Xn?SS(e.parentNode,t):e.nodeType===pa&&SS(e,t),gs(e)}function pN(e){e=e;var t=e.style;typeof t.setProperty=="function"?t.setProperty("display","none","important"):t.display="none"}function hN(e){e.nodeValue=""}function vN(e,t){e=e;var i=t[VO],o=i!=null&&i.hasOwnProperty("display")?i.display:null;e.style.display=kf("display",o)}function mN(e,t){e.nodeValue=t}function gN(e){e.nodeType===pa?e.textContent="":e.nodeType===xo&&e.documentElement&&e.removeChild(e.documentElement)}function yN(e,t,i){return e.nodeType!==pa||t.toLowerCase()!==e.nodeName.toLowerCase()?null:e}function SN(e,t){return t===""||e.nodeType!==bo?null:e}function wN(e){return e.nodeType!==Xn?null:e}function vE(e){return e.data===Bh}function wS(e){return e.data===Hh}function bN(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 xN(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 CN(e){return Ng(e.firstChild)}function EN(e){return Ng(e.firstChild)}function TN(e){return Ng(e.nextSibling)}function RN(e,t,i,o,u,p,g){Gh(p,e),CS(e,i);var w;{var x=u;w=x.namespace}var M=(p.mode&Lt)!==it;return PO(e,t,i,w,o,M,g)}function MN(e,t,i,o){return Gh(i,e),i.mode&Lt,IO(e,t)}function kN(e,t){Gh(t,e)}function _N(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 mE(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 AN(e){gs(e)}function ON(e){gs(e)}function NN(e){return e!=="head"&&e!=="body"}function DN(e,t,i,o){var u=!0;Mg(t.nodeValue,i,o,u)}function LN(e,t,i,o,u,p){if(t[_g]!==!0){var g=!0;Mg(o.nodeValue,u,p,g)}}function PN(e,t){t.nodeType===pa?cS(e,t):t.nodeType===Xn||fS(e,t)}function IN(e,t){{var i=e.parentNode;i!==null&&(t.nodeType===pa?cS(i,t):t.nodeType===Xn||fS(i,t))}}function UN(e,t,i,o,u){(u||t[_g]!==!0)&&(o.nodeType===pa?cS(i,o):o.nodeType===Xn||fS(i,o))}function zN(e,t,i){dS(e,t)}function FN(e,t){pS(e,t)}function jN(e,t,i){{var o=e.parentNode;o!==null&&dS(o,t)}}function BN(e,t){{var i=e.parentNode;i!==null&&pS(i,t)}}function HN(e,t,i,o,u,p){(p||t[_g]!==!0)&&dS(i,o)}function VN(e,t,i,o,u){(u||t[_g]!==!0)&&pS(i,o)}function $N(e){v("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",e.nodeName.toLowerCase())}function GN(e){Ph(e)}var Id=Math.random().toString(36).slice(2),Ud="__reactFiber$"+Id,bS="__reactProps$"+Id,$h="__reactContainer$"+Id,xS="__reactEvents$"+Id,YN="__reactListeners$"+Id,WN="__reactHandles$"+Id;function XN(e){delete e[Ud],delete e[bS],delete e[xS],delete e[YN],delete e[WN]}function Gh(e,t){t[Ud]=e}function Dg(e,t){t[$h]=e}function gE(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=mE(e);u!==null;){var p=u[Ud];if(p)return p;u=mE(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===k)?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[bS]||null}function CS(e,t){e[bS]=t}function KN(e){var t=e[xS];return t===void 0&&(t=e[xS]=new Set),t}var yE={},SE=l.ReactDebugCurrentFrame;function Pg(e){if(e){var t=e._owner,i=go(e.type,e._source,t?t.type:null);SE.setExtraStackFrame(i)}else SE.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 x=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 x.name="Invariant Violation",x}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 yE)&&(yE[w.message]=!0,Pg(u),v("Failed %s type: %s",i,w.message),Pg(null))}}}var ES=[],Ig;Ig=[];var Cs=-1;function Tu(e){return{current:e}}function Ea(e,t){if(Cs<0){v("Unexpected pop.");return}t!==Ig[Cs]&&v("Unexpected Fiber popped."),e.current=ES[Cs],ES[Cs]=null,Ig[Cs]=null,Cs--}function Ta(e,t,i){Cs++,ES[Cs]=e.current,Ig[Cs]=i,e.current=t}var TS;TS={};var Li={};Object.freeze(Li);var Es=Tu(Li),Rl=Tu(!1),RS=Li;function Fd(e,t,i){return i&&Ml(t)?RS:Es.current}function wE(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&&wE(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(Es,e)}function MS(e){Ea(Rl,e),Ea(Es,e)}function bE(e,t,i){{if(Es.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(Es,t,e),Ta(Rl,i,e)}}function xE(e,t,i){{var o=e.stateNode,u=t.childContextTypes;if(typeof o.getChildContext!="function"){{var p=bt(e)||"Unknown";TS[p]||(TS[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 x=bt(e)||"Unknown";Do(u,g,"child context",x)}return At({},i,g)}}function Fg(e){{var t=e.stateNode,i=t&&t.__reactInternalMemoizedMergedChildContext||Li;return RS=Es.current,Ta(Es,i,e),Ta(Rl,Rl.current,e),!0}}function CE(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=xE(e,t,RS);o.__reactInternalMemoizedMergedChildContext=u,Ea(Rl,e),Ea(Es,e),Ta(Es,u,e),Ta(Rl,i,e)}else Ea(Rl,e),Ta(Rl,i,e)}}function QN(e){{if(!rs(e)||e.tag!==T)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 k:return t.stateNode.context;case T:{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,Ts=null,kS=!1,_S=!1;function EE(e){Ts===null?Ts=[e]:Ts.push(e)}function qN(e){kS=!0,EE(e)}function TE(){kS&&Mu()}function Mu(){if(!_S&&Ts!==null){_S=!0;var e=0,t=ii();try{var i=!0,o=Ts;for(Jn(Kr);e<o.length;e++){var u=o[e];do u=u(i);while(u!==null)}Ts=null,kS=!1}catch(p){throw Ts!==null&&(Ts=Ts.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,Rs=1,Ms="";function ZN(e){return Qc(),(e.flags&Qi)!==at}function JN(e){return Qc(),Hg}function eD(){var e=Ms,t=Rs,i=t&~tD(t);return i.toString(32)+e}function Kc(e,t){Qc(),Bd[Hd++]=Hg,Bd[Hd++]=Bg,Bg=e,Hg=t}function RE(e,t,i){Qc(),oo[lo++]=Rs,oo[lo++]=Ms,oo[lo++]=Xc,Xc=e;var o=Rs,u=Ms,p=Vg(o)-1,g=o&~(1<<p),w=i+1,x=Vg(t)+p;if(x>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;Rs=1<<te|Le,Ms=ct}else{var et=w<<p,Xt=et|g,Bt=u;Rs=1<<x|Xt,Ms=Bt}}function AS(e){Qc();var t=e.return;if(t!==null){var i=1,o=0;Kc(e,i),RE(e,i,o)}}function Vg(e){return 32-qn(e)}function tD(e){return 1<<Vg(e)-1}function OS(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,Ms=oo[--lo],oo[lo]=null,Rs=oo[--lo],oo[lo]=null}function nD(){return Qc(),Xc!==null?{id:Rs,overflow:Ms}:null}function rD(e,t){Qc(),oo[lo++]=Rs,oo[lo++]=Ms,oo[lo++]=Xc,Rs=t.id,Ms=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,ku=null;function aD(){Lo&&v("We should not be hydrating here. This is a bug in React. Please file a bug.")}function ME(){qc=!0}function iD(){return qc}function oD(e){var t=e.stateNode.containerInfo;return so=EN(t),Jr=e,Lo=!0,ku=null,qc=!1,!0}function lD(e,t,i){return so=TN(t),Jr=e,Lo=!0,ku=null,qc=!1,i!==null&&rD(e,i),!0}function kE(e,t){switch(e.tag){case k:{PN(e.stateNode.containerInfo,t);break}case N:{var i=(e.mode&Lt)!==it;UN(e.type,e.memoizedProps,e.stateNode,t,i);break}case le:{var o=e.memoizedState;o.dehydrated!==null&&IN(o.dehydrated,t);break}}}function _E(e,t){kE(e,t);var i=fP();i.stateNode=t,i.return=e;var o=e.deletions;o===null?(e.deletions=[i],e.flags|=Za):o.push(i)}function NS(e,t){{if(qc)return;switch(e.tag){case k:{var i=e.stateNode.containerInfo;switch(t.tag){case N:var o=t.type;t.pendingProps,zN(i,o);break;case z:var u=t.pendingProps;FN(i,u);break}break}case N:{var p=e.type,g=e.memoizedProps,w=e.stateNode;switch(t.tag){case N:{var x=t.type,M=t.pendingProps,O=(e.mode&Lt)!==it;HN(p,g,w,x,M,O);break}case z:{var B=t.pendingProps,F=(e.mode&Lt)!==it;VN(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,jN(te,ae);break;case z:var Le=t.pendingProps;BN(te,Le);break}break}default:return}}}function AE(e,t){t.flags=t.flags&~va|Dn,NS(e,t)}function OE(e,t){switch(e.tag){case N:{var i=e.type;e.pendingProps;var o=yN(t,i);return o!==null?(e.stateNode=o,Jr=e,so=CN(o),!0):!1}case z:{var u=e.pendingProps,p=SN(t,u);return p!==null?(e.stateNode=p,Jr=e,so=null,!0):!1}case le:{var g=wN(t);if(g!==null){var w={dehydrated:g,treeContext:nD(),retryLane:Sa};e.memoizedState=w;var x=dP(g);return x.return=e,e.child=x,Jr=e,so=null,!0}return!1}default:return!1}}function DS(e){return(e.mode&Lt)!==it&&(e.flags&nt)===at}function LS(e){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function PS(e){if(Lo){var t=so;if(!t){DS(e)&&(NS(Jr,e),LS()),AE(Jr,e),Lo=!1,Jr=e;return}var i=t;if(!OE(e,t)){DS(e)&&(NS(Jr,e),LS()),t=Vh(i);var o=Jr;if(!t||!OE(e,t)){AE(Jr,e),Lo=!1,Jr=e;return}_E(o,i)}}}function sD(e,t,i){var o=e.stateNode,u=!qc,p=RN(o,e.type,e.memoizedProps,t,i,e,u);return e.updateQueue=p,p!==null}function uD(e){var t=e.stateNode,i=e.memoizedProps,o=MN(t,i,e);if(o){var u=Jr;if(u!==null)switch(u.tag){case k:{var p=u.stateNode.containerInfo,g=(u.mode&Lt)!==it;DN(p,t,i,g);break}case N:{var w=u.type,x=u.memoizedProps,M=u.stateNode,O=(u.mode&Lt)!==it;LN(w,x,M,t,i,O);break}}}return o}function cD(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.");kN(i,e)}function fD(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 _N(i)}function NE(e){for(var t=e.return;t!==null&&t.tag!==N&&t.tag!==k&&t.tag!==le;)t=t.return;Jr=t}function $g(e){if(e!==Jr)return!1;if(!Lo)return NE(e),Lo=!0,!1;if(e.tag!==k&&(e.tag!==N||NN(e.type)&&!mS(e.type,e.memoizedProps))){var t=so;if(t)if(DS(e))DE(e),LS();else for(;t;)_E(e,t),t=Vh(t)}return NE(e),e.tag===le?so=fD(e):so=Jr?Vh(e.stateNode):null,!0}function dD(){return Lo&&so!==null}function DE(e){for(var t=so;t;)kE(e,t),t=Vh(t)}function Vd(){Jr=null,so=null,Lo=!1,qc=!1}function LE(){ku!==null&&(M1(ku),ku=null)}function ea(){return Lo}function IS(e){ku===null?ku=[e]:ku.push(e)}var pD=l.ReactCurrentBatchConfig,hD=null;function vD(){return pD.transition}var Po={recordUnsafeLifecycleWarnings:function(e,t){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(e,t){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var mD=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.
127
+ */function tS(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)),km(d,t)}function d(e){nE(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=tS("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}xO(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 GC(e,t){return!e||!t?!1:e===t?!0:gg(e)?!1:gg(t)?GC(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1}function aO(e){return e&&e.ownerDocument&&GC(e.ownerDocument.documentElement,e)}function iO(e){try{return typeof e.contentWindow.location.href=="string"}catch{return!1}}function YC(){for(var e=window,t=Qa();t instanceof e.HTMLIFrameElement;){if(iO(t))e=t.contentWindow;else return t;t=Qa(e.document)}return t}function nS(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 oO(){var e=YC();return{focusedElem:e,selectionRange:nS(e)?sO(e):null}}function lO(e){var t=YC(),i=e.focusedElem,o=e.selectionRange;if(t!==i&&aO(i)){o!==null&&nS(i)&&uO(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 sO(e){var t;return"selectionStart"in e?t={start:e.selectionStart,end:e.selectionEnd}:t=gr(e),t||{start:0,end:0}}function uO(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 cO=gn&&"documentMode"in document&&document.documentMode<=11;function fO(){wt("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var Dd=null,rS=null,Dh=null,aS=!1;function dO(e){if("selectionStart"in e&&nS(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 pO(e){return e.window===e?e.document:e.nodeType===xo?e:e.ownerDocument}function WC(e,t,i){var o=pO(i);if(!(aS||Dd==null||Dd!==Qa(o))){var u=dO(Dd);if(!Dh||!We(Dh,u)){Dh=u;var p=bg(rS,"onSelect");if(p.length>0){var g=new io("onSelect","select",null,t,i);e.push({event:g,listeners:p}),g.target=Dd}}}}function hO(e,t,i,o,u,p,g){var w=i?zd(i):window;switch(t){case"focusin":(Vc(w)||w.contentEditable==="true")&&(Dd=w,rS=i,Dh=null);break;case"focusout":Dd=null,rS=null,Dh=null;break;case"mousedown":aS=!0;break;case"contextmenu":case"mouseup":case"dragend":aS=!1,WC(e,o,u);break;case"selectionchange":if(cO)break;case"keydown":case"keyup":WC(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")},iS={},XC={};gn&&(XC=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(iS[e])return iS[e];if(!Ld[e])return e;var t=Ld[e];for(var i in t)if(t.hasOwnProperty(i)&&i in XC)return iS[e]=t[i];return e}var KC=Sg("animationend"),QC=Sg("animationiteration"),qC=Sg("animationstart"),ZC=Sg("transitionend"),JC=new Map,eE=["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){JC.set(e,t),wt(t,[e])}function vO(){for(var e=0;e<eE.length;e++){var t=eE[e],i=t.toLowerCase(),o=t[0].toUpperCase()+t.slice(1);xu(i,"on"+o)}xu(KC,"onAnimationEnd"),xu(QC,"onAnimationIteration"),xu(qC,"onAnimationStart"),xu("dblclick","onDoubleClick"),xu("focusin","onFocus"),xu("focusout","onBlur"),xu(ZC,"onTransitionEnd")}function mO(e,t,i,o,u,p,g){var w=JC.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=ws;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":b=fg;break;case KC:case QC:case qC:b=rg;break;case ZC:b=oi;break;case"scroll":b=Ca;break;case"wheel":b=Z0;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=wO(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})}}}}vO(),Y(),$c(),fO(),J0();function gO(e,t,i,o,u,p,g){mO(e,t,i,o,u,p);var w=(p&Yp)===0;w&&(j(e,t,i,o,u),Gn(e,t,i,o,u),hO(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"],oS=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(Lh));function tE(e,t,i){var o=e.type||"unknown-event";e.currentTarget=i,Ki(o,t,void 0,e),e.currentTarget=null}function yO(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;tE(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;tE(e,q,F),o=B}}function nE(e,t){for(var i=(t&qa)!==0,o=0;o<e.length;o++){var u=e[o],p=u.event,g=u.listeners;yO(p,g,i)}uc()}function SO(e,t,i,o,u){var p=Wp(i),g=[];gO(g,e,o,i,p,t),nE(g,t)}function In(e,t){oS.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=KN(t),u=CO(e);o.has(u)||(rE(t,e,Df,i),o.add(u))}function lS(e,t,i){oS.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),rE(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"&&(oS.has(i)||lS(i,!1,e),lS(i,!0,e))});var t=e.nodeType===xo?e:e.ownerDocument;t!==null&&(t[wg]||(t[wg]=!0,lS("selectionchange",!1,t)))}}function rE(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 aE(e,t){return e===t||e.nodeType===Xn&&e.parentNode===t}function sS(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===k||b===_){var M=w.stateNode.containerInfo;if(aE(M,g))break;if(b===_)for(var O=w.return;O!==null;){var B=O.tag;if(B===k||B===_){var F=O.stateNode.containerInfo;if(aE(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}}}km(function(){return SO(e,t,i,p)})}function Ih(e,t,i){return{instance:e,listener:t,currentTarget:i}}function wO(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 bO(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 iE(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 xO(e,t,i,o,u){var p=o&&u?bO(o,u):null;o!==null&&iE(e,t,o,p,!1),u!==null&&i!==null&&iE(e,i,u,p,!0)}function CO(e,t){return e+"__bubble"}var li=!1,Uh="dangerouslySetInnerHTML",xg="suppressContentEditableWarning",Cu="suppressHydrationWarning",oE="autoFocus",Gc="children",Yc="style",Cg="__html",uS,Eg,zh,lE,Tg,sE,uE;uS={dialog:!0,webview:!0},Eg=function(e,t){Hp(e,t),Of(e,t),Tm(e,t,{registrationNameDependencies:Ve,possibleRegistrationNames:St})},sE=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)))}},lE=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)},uE=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 EO=/\r\n?/g,TO=/\u0000|\uFFFD/g;function Rg(e){dr(e);var t=typeof e=="string"?e:""+e;return t.replace(EO,`
128
+ `).replace(TO,"")}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 cE(e){return e.nodeType===xo?e:e.ownerDocument}function RO(){}function kg(e){e.onclick=RO}function MO(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===oE||(Ve.hasOwnProperty(p)?g!=null&&(typeof g!="function"&&Tg(p,g),p==="onScroll"&&In("scroll",t)):g!=null&&$r(t,p,g,u))}}function kO(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 _O(e,t,i,o){var u,p=cE(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(uS,e)&&(uS[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 AO(e,t){return cE(t).createTextNode(e)}function OO(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":Ql(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(_f(t,p),MO(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":_p(e,i);break;default:typeof p.onClick=="function"&&kg(e);break}}function NO(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"&&kg(e);break}_f(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===oE||(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&&(I0(O,w[Yc]),(p=p||[]).push(Yc,O)),p}function DO(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(kO(e,t,p,g),i){case"input":L(e,u);break;case"textarea":am(e,u);break;case"select":Rf(e,u);break}}function LO(e){{var t=e.toLowerCase();return ac.hasOwnProperty(t)&&ac[t]||null}}function PO(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":Ql(e,i),In("invalid",e);break;case"textarea":Np(e,i),In("invalid",e);break}_f(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=uE(e,Xt);Bt!==et&&zh(te,et,Bt)}}else if(te===Yc){if(b.delete(te),sE){var W=L0(ae);Le=e.getAttribute("style"),W!==Le&&zh(te,Le,W)}}else if(w&&!V)b.delete(te.toLowerCase()),Le=Vl(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=LO(te);we!==null&&we!==te&&(ie=!0,b.delete(we)),b.delete(te)}Le=Vl(e,te,ae)}var Fe=V;!Fe&&ae!==Le&&!ie&&zh(te,Le,ae)}}}}}switch(g&&b.size>0&&i[Cu]!==!0&&lE(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"&&kg(e);break}return q}function IO(e,t,i){var o=e.nodeValue!==t;return o}function cS(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 fS(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 dS(e,t,i){{if(li)return;li=!0,v("Expected server HTML to contain a matching <%s> in <%s>.",t,e.nodeName.toLowerCase())}}function pS(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 UO(e,t,i){switch(t){case"input":re(e,i);return;case"textarea":A0(e,i);return;case"select":Ap(e,i);return}}var Fh=function(){},jh=function(){};{var zO=["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"],fE=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],FO=fE.concat(["button"]),jO=["dd","dt","li","option","optgroup","p","rp","rt"],dE={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};jh=function(e,t){var i=At({},e||dE),o={tag:t};return fE.indexOf(t)!==-1&&(i.aTagInScope=null,i.buttonTagInScope=null,i.nobrTagInScope=null),FO.indexOf(t)!==-1&&(i.pTagInButtonScope=null),zO.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 BO=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 jO.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},HO=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},pE={};Fh=function(e,t,i){i=i||dE;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=BO(e,u)?null:o,g=p?null:HO(e,i),w=p||g;if(w){var b=w.tag,M=!!p+"|"+e+"|"+b;if(!pE[M]){pE[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 _g="suppressHydrationWarning",Ag="$",Og="/$",Bh="$?",Hh="$!",VO="style",hS=null,vS=null;function $O(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 GO(e,t,i){{var o=e,u=Ip(o.namespace,t),p=jh(o.ancestorInfo,t);return{namespace:u,ancestorInfo:p}}}function s3(e){return e}function YO(e){hS=er(),vS=oO();var t=null;return cr(!1),t}function WO(e){lO(vS),cr(hS),hS=null,vS=null}function XO(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=_O(e,t,i,p);return Gh(u,M),CS(M,t),M}function KO(e,t){e.appendChild(t)}function QO(e,t,i,o,u){switch(OO(e,t,i,o),t){case"button":case"input":case"select":case"textarea":return!!i.autoFocus;case"img":return!0;default:return!1}}function qO(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 NO(e,t,i,o)}function mS(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 ZO(e,t,i,o){{var u=i;Fh(null,e,u.ancestorInfo)}var p=AO(e,t);return Gh(o,p),p}function JO(){var e=window.event;return e===void 0?ri:xd(e.type)}var gS=typeof setTimeout=="function"?setTimeout:void 0,eN=typeof clearTimeout=="function"?clearTimeout:void 0,yS=-1,hE=typeof Promise=="function"?Promise:void 0,tN=typeof queueMicrotask=="function"?queueMicrotask:typeof hE<"u"?function(e){return hE.resolve(null).then(e).catch(nN)}:gS;function nN(e){setTimeout(function(){throw e})}function rN(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 aN(e,t,i,o,u,p){DO(e,t,i,o,u),CS(e,u)}function vE(e){eu(e,"")}function iN(e,t,i){e.nodeValue=i}function oN(e,t){e.appendChild(t)}function lN(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&&kg(i)}function sN(e,t,i){e.insertBefore(t,i)}function uN(e,t,i){e.nodeType===Xn?e.parentNode.insertBefore(t,i):e.insertBefore(t,i)}function cN(e,t){e.removeChild(t)}function fN(e,t){e.nodeType===Xn?e.parentNode.removeChild(t):e.removeChild(t)}function SS(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),gs(t);return}else o--;else(p===Ag||p===Bh||p===Hh)&&o++}i=u}while(i);gs(t)}function dN(e,t){e.nodeType===Xn?SS(e.parentNode,t):e.nodeType===pa&&SS(e,t),gs(e)}function pN(e){e=e;var t=e.style;typeof t.setProperty=="function"?t.setProperty("display","none","important"):t.display="none"}function hN(e){e.nodeValue=""}function vN(e,t){e=e;var i=t[VO],o=i!=null&&i.hasOwnProperty("display")?i.display:null;e.style.display=kf("display",o)}function mN(e,t){e.nodeValue=t}function gN(e){e.nodeType===pa?e.textContent="":e.nodeType===xo&&e.documentElement&&e.removeChild(e.documentElement)}function yN(e,t,i){return e.nodeType!==pa||t.toLowerCase()!==e.nodeName.toLowerCase()?null:e}function SN(e,t){return t===""||e.nodeType!==bo?null:e}function wN(e){return e.nodeType!==Xn?null:e}function mE(e){return e.data===Bh}function wS(e){return e.data===Hh}function bN(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 xN(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 CN(e){return Ng(e.firstChild)}function EN(e){return Ng(e.firstChild)}function TN(e){return Ng(e.nextSibling)}function RN(e,t,i,o,u,p,g){Gh(p,e),CS(e,i);var w;{var b=u;w=b.namespace}var M=(p.mode&Lt)!==it;return PO(e,t,i,w,o,M,g)}function MN(e,t,i,o){return Gh(i,e),i.mode&Lt,IO(e,t)}function kN(e,t){Gh(t,e)}function _N(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 gE(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 AN(e){gs(e)}function ON(e){gs(e)}function NN(e){return e!=="head"&&e!=="body"}function DN(e,t,i,o){var u=!0;Mg(t.nodeValue,i,o,u)}function LN(e,t,i,o,u,p){if(t[_g]!==!0){var g=!0;Mg(o.nodeValue,u,p,g)}}function PN(e,t){t.nodeType===pa?cS(e,t):t.nodeType===Xn||fS(e,t)}function IN(e,t){{var i=e.parentNode;i!==null&&(t.nodeType===pa?cS(i,t):t.nodeType===Xn||fS(i,t))}}function UN(e,t,i,o,u){(u||t[_g]!==!0)&&(o.nodeType===pa?cS(i,o):o.nodeType===Xn||fS(i,o))}function zN(e,t,i){dS(e,t)}function FN(e,t){pS(e,t)}function jN(e,t,i){{var o=e.parentNode;o!==null&&dS(o,t)}}function BN(e,t){{var i=e.parentNode;i!==null&&pS(i,t)}}function HN(e,t,i,o,u,p){(p||t[_g]!==!0)&&dS(i,o)}function VN(e,t,i,o,u){(u||t[_g]!==!0)&&pS(i,o)}function $N(e){v("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",e.nodeName.toLowerCase())}function GN(e){Ph(e)}var Id=Math.random().toString(36).slice(2),Ud="__reactFiber$"+Id,bS="__reactProps$"+Id,$h="__reactContainer$"+Id,xS="__reactEvents$"+Id,YN="__reactListeners$"+Id,WN="__reactHandles$"+Id;function XN(e){delete e[Ud],delete e[bS],delete e[xS],delete e[YN],delete e[WN]}function Gh(e,t){t[Ud]=e}function Dg(e,t){t[$h]=e}function yE(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=gE(e);u!==null;){var p=u[Ud];if(p)return p;u=gE(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===k)?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[bS]||null}function CS(e,t){e[bS]=t}function KN(e){var t=e[xS];return t===void 0&&(t=e[xS]=new Set),t}var SE={},wE=l.ReactDebugCurrentFrame;function Pg(e){if(e){var t=e._owner,i=go(e.type,e._source,t?t.type:null);wE.setExtraStackFrame(i)}else wE.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 SE)&&(SE[w.message]=!0,Pg(u),v("Failed %s type: %s",i,w.message),Pg(null))}}}var ES=[],Ig;Ig=[];var Cs=-1;function Tu(e){return{current:e}}function Ea(e,t){if(Cs<0){v("Unexpected pop.");return}t!==Ig[Cs]&&v("Unexpected Fiber popped."),e.current=ES[Cs],ES[Cs]=null,Ig[Cs]=null,Cs--}function Ta(e,t,i){Cs++,ES[Cs]=e.current,Ig[Cs]=i,e.current=t}var TS;TS={};var Li={};Object.freeze(Li);var Es=Tu(Li),Rl=Tu(!1),RS=Li;function Fd(e,t,i){return i&&Ml(t)?RS:Es.current}function bE(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&&bE(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(Es,e)}function MS(e){Ea(Rl,e),Ea(Es,e)}function xE(e,t,i){{if(Es.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(Es,t,e),Ta(Rl,i,e)}}function CE(e,t,i){{var o=e.stateNode,u=t.childContextTypes;if(typeof o.getChildContext!="function"){{var p=bt(e)||"Unknown";TS[p]||(TS[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 RS=Es.current,Ta(Es,i,e),Ta(Rl,Rl.current,e),!0}}function EE(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=CE(e,t,RS);o.__reactInternalMemoizedMergedChildContext=u,Ea(Rl,e),Ea(Es,e),Ta(Es,u,e),Ta(Rl,i,e)}else Ea(Rl,e),Ta(Rl,i,e)}}function QN(e){{if(!rs(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 k: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,Ts=null,kS=!1,_S=!1;function TE(e){Ts===null?Ts=[e]:Ts.push(e)}function qN(e){kS=!0,TE(e)}function RE(){kS&&Mu()}function Mu(){if(!_S&&Ts!==null){_S=!0;var e=0,t=ii();try{var i=!0,o=Ts;for(Jn(Kr);e<o.length;e++){var u=o[e];do u=u(i);while(u!==null)}Ts=null,kS=!1}catch(p){throw Ts!==null&&(Ts=Ts.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,Rs=1,Ms="";function ZN(e){return Qc(),(e.flags&Qi)!==at}function JN(e){return Qc(),Hg}function eD(){var e=Ms,t=Rs,i=t&~tD(t);return i.toString(32)+e}function Kc(e,t){Qc(),Bd[Hd++]=Hg,Bd[Hd++]=Bg,Bg=e,Hg=t}function ME(e,t,i){Qc(),oo[lo++]=Rs,oo[lo++]=Ms,oo[lo++]=Xc,Xc=e;var o=Rs,u=Ms,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;Rs=1<<te|Le,Ms=ct}else{var et=w<<p,Xt=et|g,Bt=u;Rs=1<<b|Xt,Ms=Bt}}function AS(e){Qc();var t=e.return;if(t!==null){var i=1,o=0;Kc(e,i),ME(e,i,o)}}function Vg(e){return 32-qn(e)}function tD(e){return 1<<Vg(e)-1}function OS(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,Ms=oo[--lo],oo[lo]=null,Rs=oo[--lo],oo[lo]=null}function nD(){return Qc(),Xc!==null?{id:Rs,overflow:Ms}:null}function rD(e,t){Qc(),oo[lo++]=Rs,oo[lo++]=Ms,oo[lo++]=Xc,Rs=t.id,Ms=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,ku=null;function aD(){Lo&&v("We should not be hydrating here. This is a bug in React. Please file a bug.")}function kE(){qc=!0}function iD(){return qc}function oD(e){var t=e.stateNode.containerInfo;return so=EN(t),Jr=e,Lo=!0,ku=null,qc=!1,!0}function lD(e,t,i){return so=TN(t),Jr=e,Lo=!0,ku=null,qc=!1,i!==null&&rD(e,i),!0}function _E(e,t){switch(e.tag){case k:{PN(e.stateNode.containerInfo,t);break}case N:{var i=(e.mode&Lt)!==it;UN(e.type,e.memoizedProps,e.stateNode,t,i);break}case le:{var o=e.memoizedState;o.dehydrated!==null&&IN(o.dehydrated,t);break}}}function AE(e,t){_E(e,t);var i=fP();i.stateNode=t,i.return=e;var o=e.deletions;o===null?(e.deletions=[i],e.flags|=Za):o.push(i)}function NS(e,t){{if(qc)return;switch(e.tag){case k:{var i=e.stateNode.containerInfo;switch(t.tag){case N:var o=t.type;t.pendingProps,zN(i,o);break;case z:var u=t.pendingProps;FN(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;HN(p,g,w,b,M,O);break}case z:{var B=t.pendingProps,F=(e.mode&Lt)!==it;VN(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,jN(te,ae);break;case z:var Le=t.pendingProps;BN(te,Le);break}break}default:return}}}function OE(e,t){t.flags=t.flags&~va|Dn,NS(e,t)}function NE(e,t){switch(e.tag){case N:{var i=e.type;e.pendingProps;var o=yN(t,i);return o!==null?(e.stateNode=o,Jr=e,so=CN(o),!0):!1}case z:{var u=e.pendingProps,p=SN(t,u);return p!==null?(e.stateNode=p,Jr=e,so=null,!0):!1}case le:{var g=wN(t);if(g!==null){var w={dehydrated:g,treeContext:nD(),retryLane:Sa};e.memoizedState=w;var b=dP(g);return b.return=e,e.child=b,Jr=e,so=null,!0}return!1}default:return!1}}function DS(e){return(e.mode&Lt)!==it&&(e.flags&nt)===at}function LS(e){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function PS(e){if(Lo){var t=so;if(!t){DS(e)&&(NS(Jr,e),LS()),OE(Jr,e),Lo=!1,Jr=e;return}var i=t;if(!NE(e,t)){DS(e)&&(NS(Jr,e),LS()),t=Vh(i);var o=Jr;if(!t||!NE(e,t)){OE(Jr,e),Lo=!1,Jr=e;return}AE(o,i)}}}function sD(e,t,i){var o=e.stateNode,u=!qc,p=RN(o,e.type,e.memoizedProps,t,i,e,u);return e.updateQueue=p,p!==null}function uD(e){var t=e.stateNode,i=e.memoizedProps,o=MN(t,i,e);if(o){var u=Jr;if(u!==null)switch(u.tag){case k:{var p=u.stateNode.containerInfo,g=(u.mode&Lt)!==it;DN(p,t,i,g);break}case N:{var w=u.type,b=u.memoizedProps,M=u.stateNode,O=(u.mode&Lt)!==it;LN(w,b,M,t,i,O);break}}}return o}function cD(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.");kN(i,e)}function fD(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 _N(i)}function DE(e){for(var t=e.return;t!==null&&t.tag!==N&&t.tag!==k&&t.tag!==le;)t=t.return;Jr=t}function $g(e){if(e!==Jr)return!1;if(!Lo)return DE(e),Lo=!0,!1;if(e.tag!==k&&(e.tag!==N||NN(e.type)&&!mS(e.type,e.memoizedProps))){var t=so;if(t)if(DS(e))LE(e),LS();else for(;t;)AE(e,t),t=Vh(t)}return DE(e),e.tag===le?so=fD(e):so=Jr?Vh(e.stateNode):null,!0}function dD(){return Lo&&so!==null}function LE(e){for(var t=so;t;)_E(e,t),t=Vh(t)}function Vd(){Jr=null,so=null,Lo=!1,qc=!1}function PE(){ku!==null&&(k1(ku),ku=null)}function ea(){return Lo}function IS(e){ku===null?ku=[e]:ku.push(e)}var pD=l.ReactCurrentBatchConfig,hD=null;function vD(){return pD.transition}var Po={recordUnsafeLifecycleWarnings:function(e,t){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(e,t){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var mD=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
129
 
130
130
  * Move code with side effects to componentDidMount, and set initial state in the constructor.
131
131
 
@@ -134,11 +134,11 @@ Please update the following components: %s`,g)}if(o.size>0){var w=Zc(o);v(`Using
134
134
  * Move data fetching code or side effects to componentDidUpdate.
135
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
136
 
137
- Please update the following components: %s`,w)}if(p.size>0){var x=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.
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
138
 
139
139
  * Move data fetching code or side effects to componentDidUpdate.
140
140
 
141
- Please update the following components: %s`,x)}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.
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
142
 
143
143
  * Move code with side effects to componentDidMount, and set initial state in the constructor.
144
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.
@@ -154,17 +154,17 @@ Please update the following components: %s`,O)}if(u.size>0){var B=Zc(u);y(`compo
154
154
  * Move data fetching code or side effects to componentDidUpdate.
155
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
156
 
157
- Please update the following components: %s`,B)}};var Gg=new Map,PE=new Set;Po.recordLegacyContextWarning=function(e,t){var i=mD(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(!PE.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"),PE.add(p.type)});var u=Zc(o);try{cn(i),v(`Legacy context API has been detected within a strict-mode tree.
157
+ Please update the following components: %s`,B)}};var Gg=new Map,IE=new Set;Po.recordLegacyContextWarning=function(e,t){var i=mD(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(!IE.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"),IE.add(p.type)});var u=Zc(o);try{cn(i),v(`Legacy context API has been detected within a strict-mode tree.
158
158
 
159
159
  The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
160
160
 
161
161
  Please update the following components: %s
162
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 US,zS,FS,jS,BS,IE=function(e,t){};US=!1,zS=!1,FS={},jS={},BS={},IE=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";jS[i]||(jS[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 gD(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!==T)&&!(typeof i.type=="function"&&!gD(i.type))&&i._owner){var u=bt(e)||"Component";FS[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),FS[u]=!0)}if(i._owner){var p=i._owner,g;if(p){var w=p;if(w.tag!==T)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 x=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=x.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:
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 US,zS,FS,jS,BS,UE=function(e,t){};US=!1,zS=!1,FS={},jS={},BS={},UE=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";jS[i]||(jS[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 gD(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"&&!gD(i.type))&&i._owner){var u=bt(e)||"Component";FS[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),FS[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
164
  1. You may be adding a ref to a function component
165
165
  2. You may be adding a ref to a component that was not created inside a component's render method
166
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(BS[t])return;BS[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 UE(e){var t=e._payload,i=e._init;return i(t)}function zE(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=Ib(X,W.mode,we);return Fe.return=W,Fe}else{var Ie=u(ie,X);return Ie.return=W,Ie}}function x(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||V1(ie,X)||typeof Fe=="object"&&Fe!==null&&Fe.$$typeof===Ct&&UE(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=Pb(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!==A||ie.stateNode.containerInfo!==X.containerInfo||ie.stateNode.implementation!==X.implementation){var Fe=Ub(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=Ib(""+ie,W.mode,X);return we.return=W,we}if(typeof ie=="object"&&ie!==null){switch(ie.$$typeof){case Gr:{var Fe=Pb(ie,W.mode,X);return Fe.ref=Jh(W,null,ie),Fe.return=W,Fe}case br:{var Ie=Ub(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)||kt(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?x(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)||kt(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 x(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)||kt(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:IE(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 ka=q(Va,W,rn,X[rn],we);ka!==null&&(e&&ka.alternate!==null&&Va.delete(ka.key===null?rn:ka.key),fr=p(ka,fr,rn),vn===null?Tt=ka:vn.sibling=ka,vn=ka)}if(e&&Va.forEach(function(sp){return t(W,sp)}),ea()){var Ls=rn;Kc(W,Ls)}return Tt}function Le(W,ie,X,we){var Fe=kt(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"&&(zS||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."),zS=!0),X.entries===Fe&&(US||v("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),US=!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 ka=la;Kc(W,ka)}return fr}if(nr===null){for(;!Ha.done;la++,Ha=nn.next()){var Ls=B(W,Ha.value,we);Ls!==null&&(Ma=p(Ls,Ma,la),rn===null?fr=Ls:rn.sibling=Ls,rn=Ls)}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(VP){return t(W,VP)}),ea()){var HP=la;Kc(W,HP)}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=Ib(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||V1(Ie,X)||typeof mt=="object"&&mt!==null&&mt.$$typeof===Ct&&UE(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=Pb(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===A&&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=Ub(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(kt(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=zE(!0),FE=zE(!1);function yD(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 SD(e,t){for(var i=e.child;i!==null;)oP(i,t),i=i.sibling}var HS=Tu(null),VS;VS={};var Xg=null,Gd=null,$S=null,Kg=!1;function Qg(){Xg=null,Gd=null,$S=null,Kg=!1}function jE(){Kg=!0}function BE(){Kg=!1}function HE(e,t,i){Ta(HS,t._currentValue,e),t._currentValue=i,t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==VS&&v("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=VS}function GS(e,t){var i=HS.current;Ea(HS,t),e._currentValue=i}function YS(e,t,i){for(var o=e;o!==null;){var u=o.alternate;if(ms(o.childLanes,t)?u!==null&&!ms(u.childLanes,t)&&(u.childLanes=_t(u.childLanes,t)):(o.childLanes=_t(o.childLanes,t),u!==null&&(u.childLanes=_t(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 wD(e,t,i){bD(e,t,i)}function bD(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===T){var w=Rc(i),x=ks(mn,w);x.tag=Zg;var M=o.updateQueue;if(M!==null){var O=M.shared,B=O.pending;B===null?x.next=x:(x.next=B.next,B.next=x),O.pending=x}}o.lanes=_t(o.lanes,i);var F=o.alternate;F!==null&&(F.lanes=_t(F.lanes,i)),YS(o.return,i,e),p.lanes=_t(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=_t(q.lanes,i);var te=q.alternate;te!==null&&(te.lanes=_t(te.lanes,i)),YS(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,$S=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($S!==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 WS(e){ef===null?ef=[e]:ef.push(e)}function xD(){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 VE(e,t,i,o){var u=t.interleaved;return u===null?(i.next=i,WS(t)):(i.next=u.next,u.next=i),t.interleaved=i,qg(e,o)}function CD(e,t,i,o){var u=t.interleaved;u===null?(i.next=i,WS(t)):(i.next=u.next,u.next=i),t.interleaved=i}function ED(e,t,i,o){var u=t.interleaved;return u===null?(i.next=i,WS(t)):(i.next=u.next,u.next=i),t.interleaved=i,qg(e,o)}function si(e,t){return qg(e,t)}var TD=qg;function qg(e,t){e.lanes=_t(e.lanes,t);var i=e.alternate;i!==null&&(i.lanes=_t(i.lanes,t)),i===null&&(e.flags&(Dn|va))!==at&&F1(e);for(var o=e,u=e.return;u!==null;)u.childLanes=_t(u.childLanes,t),i=u.alternate,i!==null?i.childLanes=_t(i.childLanes,t):(u.flags&(Dn|va))!==at&&F1(e),o=u,u=u.return;if(o.tag===k){var p=o.stateNode;return p}else return null}var $E=0,GE=1,Zg=2,XS=3,Jg=!1,KS,ey;KS=!1,ey=null;function QS(e){var t={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:he},effects:null};e.updateQueue=t}function YE(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 ks(e,t){var i={eventTime:e,lane:t,tag:$E,payload:null,callback:null,next:null};return i}function _u(e,t,i){var o=e.updateQueue;if(o===null)return null;var u=o.shared;if(ey===u&&!KS&&(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."),KS=!0),CL()){var p=u.pending;return p===null?t.next=t:(t.next=p.next,p.next=t),u.pending=t,TD(e,i)}else return ED(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=_t(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 x=w;do{var M={eventTime:x.eventTime,lane:x.lane,tag:x.tag,payload:x.payload,callback:x.callback,next:null};g===null?p=g=M:(g.next=M,g=M),x=x.next}while(x!==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 RD(e,t,i,o,u,p){switch(i.tag){case GE:{var g=i.payload;if(typeof g=="function"){jE();var w=g.call(p,o,u);{if(e.mode&pn){Ln(!0);try{g.call(p,o,u)}finally{Ln(!1)}}BE()}return w}return g}case XS:e.flags=e.flags&~hr|nt;case $E:{var x=i.payload,M;if(typeof x=="function"){jE(),M=x.call(p,o,u);{if(e.mode&pn){Ln(!0);try{x.call(p,o,u)}finally{Ln(!1)}}BE()}}else M=x;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 x=w,M=x.next;x.next=null,g===null?p=M:g.next=M,g=x;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=x)}}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(ms(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=RD(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=_t(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=_t(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 MD(e,t){if(typeof e!="function")throw new Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+e));e.call(t)}function WE(){Jg=!1}function ry(){return Jg}function XE(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,MD(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 KE(){var e=iy(ay.current);return e}function ZS(e,t){Ta(ay,t,e),Ta(tv,e,e),Ta(Au,ev,e);var i=$O(t);Ea(Au,e),Ta(Au,i,e)}function Wd(e){Ea(Au,e),Ea(tv,e),Ea(ay,e)}function JS(){var e=iy(Au.current);return e}function QE(e){iy(ay.current);var t=iy(Au.current),i=GO(t,e.type);t!==i&&(Ta(tv,e,e),Ta(Au,i,e))}function ew(e){tv.current===e&&(Ea(Au,e),Ea(tv,e))}var kD=0,qE=1,ZE=1,nv=2,Io=Tu(kD);function tw(e,t){return(e&t)!==0}function Xd(e){return e&qE}function nw(e,t){return e&qE|t}function _D(e,t){return e|t}function Ou(e,t){Ta(Io,t,e)}function Kd(e){Ea(Io,e)}function AD(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||vE(o)||wS(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,kr=1,kl=2,_r=4,ta=8,rw=[];function aw(){for(var e=0;e<rw.length;e++){var t=rw[e];t._workInProgressVersionPrimary=null}rw.length=0}function OD(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,iw,Qd;iw=new Set;var tf=he,hn=null,Ar=null,Or=null,ly=!1,av=!1,iv=0,ND=0,DD=25,se=null,uo=null,Nu=-1,ow=!1;function ln(){{var e=se;uo===null?uo=[e]:uo.push(e)}}function _e(){{var e=se;uo!==null&&(Nu++,uo[Nu]!==e&&LD(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 LD(e){{var t=bt(hn);if(!iw.has(t)&&(iw.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+`
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(BS[t])return;BS[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 zE(e){var t=e._payload,i=e._init;return i(t)}function FE(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=Ib(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||$1(ie,X)||typeof Fe=="object"&&Fe!==null&&Fe.$$typeof===Ct&&zE(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=Pb(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!==_||ie.stateNode.containerInfo!==X.containerInfo||ie.stateNode.implementation!==X.implementation){var Fe=Ub(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=Ib(""+ie,W.mode,X);return we.return=W,we}if(typeof ie=="object"&&ie!==null){switch(ie.$$typeof){case Gr:{var Fe=Pb(ie,W.mode,X);return Fe.ref=Jh(W,null,ie),Fe.return=W,Fe}case br:{var Ie=Ub(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)||kt(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)||kt(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)||kt(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:UE(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 ka=q(Va,W,rn,X[rn],we);ka!==null&&(e&&ka.alternate!==null&&Va.delete(ka.key===null?rn:ka.key),fr=p(ka,fr,rn),vn===null?Tt=ka:vn.sibling=ka,vn=ka)}if(e&&Va.forEach(function(sp){return t(W,sp)}),ea()){var Ls=rn;Kc(W,Ls)}return Tt}function Le(W,ie,X,we){var Fe=kt(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"&&(zS||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."),zS=!0),X.entries===Fe&&(US||v("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),US=!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 ka=la;Kc(W,ka)}return fr}if(nr===null){for(;!Ha.done;la++,Ha=nn.next()){var Ls=B(W,Ha.value,we);Ls!==null&&(Ma=p(Ls,Ma,la),rn===null?fr=Ls:rn.sibling=Ls,rn=Ls)}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(VP){return t(W,VP)}),ea()){var HP=la;Kc(W,HP)}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=Ib(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||$1(Ie,X)||typeof mt=="object"&&mt!==null&&mt.$$typeof===Ct&&zE(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=Pb(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===_&&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=Ub(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(kt(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=FE(!0),jE=FE(!1);function yD(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 SD(e,t){for(var i=e.child;i!==null;)oP(i,t),i=i.sibling}var HS=Tu(null),VS;VS={};var Xg=null,Gd=null,$S=null,Kg=!1;function Qg(){Xg=null,Gd=null,$S=null,Kg=!1}function BE(){Kg=!0}function HE(){Kg=!1}function VE(e,t,i){Ta(HS,t._currentValue,e),t._currentValue=i,t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==VS&&v("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=VS}function GS(e,t){var i=HS.current;Ea(HS,t),e._currentValue=i}function YS(e,t,i){for(var o=e;o!==null;){var u=o.alternate;if(ms(o.childLanes,t)?u!==null&&!ms(u.childLanes,t)&&(u.childLanes=_t(u.childLanes,t)):(o.childLanes=_t(o.childLanes,t),u!==null&&(u.childLanes=_t(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 wD(e,t,i){bD(e,t,i)}function bD(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=ks(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=_t(o.lanes,i);var F=o.alternate;F!==null&&(F.lanes=_t(F.lanes,i)),YS(o.return,i,e),p.lanes=_t(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=_t(q.lanes,i);var te=q.alternate;te!==null&&(te.lanes=_t(te.lanes,i)),YS(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,$S=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($S!==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 WS(e){ef===null?ef=[e]:ef.push(e)}function xD(){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 $E(e,t,i,o){var u=t.interleaved;return u===null?(i.next=i,WS(t)):(i.next=u.next,u.next=i),t.interleaved=i,qg(e,o)}function CD(e,t,i,o){var u=t.interleaved;u===null?(i.next=i,WS(t)):(i.next=u.next,u.next=i),t.interleaved=i}function ED(e,t,i,o){var u=t.interleaved;return u===null?(i.next=i,WS(t)):(i.next=u.next,u.next=i),t.interleaved=i,qg(e,o)}function si(e,t){return qg(e,t)}var TD=qg;function qg(e,t){e.lanes=_t(e.lanes,t);var i=e.alternate;i!==null&&(i.lanes=_t(i.lanes,t)),i===null&&(e.flags&(Dn|va))!==at&&j1(e);for(var o=e,u=e.return;u!==null;)u.childLanes=_t(u.childLanes,t),i=u.alternate,i!==null?i.childLanes=_t(i.childLanes,t):(u.flags&(Dn|va))!==at&&j1(e),o=u,u=u.return;if(o.tag===k){var p=o.stateNode;return p}else return null}var GE=0,YE=1,Zg=2,XS=3,Jg=!1,KS,ey;KS=!1,ey=null;function QS(e){var t={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:he},effects:null};e.updateQueue=t}function WE(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 ks(e,t){var i={eventTime:e,lane:t,tag:GE,payload:null,callback:null,next:null};return i}function _u(e,t,i){var o=e.updateQueue;if(o===null)return null;var u=o.shared;if(ey===u&&!KS&&(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."),KS=!0),CL()){var p=u.pending;return p===null?t.next=t:(t.next=p.next,p.next=t),u.pending=t,TD(e,i)}else return ED(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=_t(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 RD(e,t,i,o,u,p){switch(i.tag){case YE:{var g=i.payload;if(typeof g=="function"){BE();var w=g.call(p,o,u);{if(e.mode&pn){Ln(!0);try{g.call(p,o,u)}finally{Ln(!1)}}HE()}return w}return g}case XS:e.flags=e.flags&~hr|nt;case GE:{var b=i.payload,M;if(typeof b=="function"){BE(),M=b.call(p,o,u);{if(e.mode&pn){Ln(!0);try{b.call(p,o,u)}finally{Ln(!1)}}HE()}}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(ms(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=RD(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=_t(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=_t(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 MD(e,t){if(typeof e!="function")throw new Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+e));e.call(t)}function XE(){Jg=!1}function ry(){return Jg}function KE(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,MD(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 QE(){var e=iy(ay.current);return e}function ZS(e,t){Ta(ay,t,e),Ta(tv,e,e),Ta(Au,ev,e);var i=$O(t);Ea(Au,e),Ta(Au,i,e)}function Wd(e){Ea(Au,e),Ea(tv,e),Ea(ay,e)}function JS(){var e=iy(Au.current);return e}function qE(e){iy(ay.current);var t=iy(Au.current),i=GO(t,e.type);t!==i&&(Ta(tv,e,e),Ta(Au,i,e))}function ew(e){tv.current===e&&(Ea(Au,e),Ea(tv,e))}var kD=0,ZE=1,JE=1,nv=2,Io=Tu(kD);function tw(e,t){return(e&t)!==0}function Xd(e){return e&ZE}function nw(e,t){return e&ZE|t}function _D(e,t){return e|t}function Ou(e,t){Ta(Io,t,e)}function Kd(e){Ea(Io,e)}function AD(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||mE(o)||wS(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,kr=1,kl=2,_r=4,ta=8,rw=[];function aw(){for(var e=0;e<rw.length;e++){var t=rw[e];t._workInProgressVersionPrimary=null}rw.length=0}function OD(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,iw,Qd;iw=new Set;var tf=he,hn=null,Ar=null,Or=null,ly=!1,av=!1,iv=0,ND=0,DD=25,se=null,uo=null,Nu=-1,ow=!1;function ln(){{var e=se;uo===null?uo=[e]:uo.push(e)}}function _e(){{var e=se;uo!==null&&(Nu++,uo[Nu]!==e&&LD(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 LD(e){{var t=bt(hn);if(!iw.has(t)&&(iw.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
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
169
 
170
170
  Previous render Next render
@@ -177,11 +177,11 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`)}}retur
177
177
  See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function lw(e,t){if(ow)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
178
 
179
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,ow=e!==null&&e.type!==t.type,t.memoizedState=null,t.updateQueue=null,t.lanes=he,e!==null&&e.memoizedState!==null?ze.current=wT:uo!==null?ze.current=ST:ze.current=yT;var g=i(o,u);if(av){var w=0;do{if(av=!1,iv=0,w>=DD)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");w+=1,ow=!1,Ar=null,Or=null,t.updateQueue=null,Nu=-1,ze.current=bT,g=i(o,u)}while(av)}ze.current=wy,t._debugHookTypes=uo;var x=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,x)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 JE(e,t,i){t.updateQueue=e.updateQueue,(t.mode&en)!==it?t.flags&=-50333701:t.flags&=-2053,e.lanes=Mc(e.lanes,i)}function eT(){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,pT=!1,av=!1,iv=0}function _l(){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 tT(){return{lastEffect:null,stores:null}}function sw(e,t){return typeof t=="function"?t(e):t}function uw(e,t,i){var o=_l(),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=zD.bind(null,hn,p);return[o.memoizedState,g]}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=Ar,g=p.baseQueue,w=u.pending;if(w!==null){if(g!==null){var x=g.next,M=w.next;g.next=M,w.next=x}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(ms(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=_t(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=_t(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 fw(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 x=g.next,M=x;do{var O=M.action;w=e(w,O),M=M.next}while(M!==x);ye(w,o.memoizedState)||hv(),o.memoizedState=w,o.baseQueue===null&&(o.baseState=w),u.lastRenderedState=w}return[w,p]}function u3(e,t,i){}function c3(e,t,i){}function dw(e,t,i){var o=hn,u=_l(),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 x=Fy();if(x===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");md(x,tf)||nT(o,t,p)}u.memoizedState=p;var M={value:p,getSnapshot:t};return u.queue=M,dy(aT.bind(null,o,M,e),[e]),o.flags|=ha,ov(kr|ta,rT.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,x=!ye(w,p);x&&(u.memoizedState=p,hv());var M=u.queue;if(sv(aT.bind(null,o,M,e),[e]),M.getSnapshot!==t||x||Or!==null&&Or.memoizedState.tag&kr){o.flags|=ha,ov(kr|ta,rT.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)||nT(o,t,p)}return p}function nT(e,t,i){e.flags|=uu;var o={getSnapshot:t,value:i},u=hn.updateQueue;if(u===null)u=tT(),hn.updateQueue=u,u.stores=[o];else{var p=u.stores;p===null?u.stores=[o]:p.push(o)}}function rT(e,t,i,o){t.value=i,t.getSnapshot=o,iT(t)&&oT(e)}function aT(e,t,i){var o=function(){iT(t)&&oT(e)};return i(o)}function iT(e){var t=e.getSnapshot,i=e.value;try{var o=t();return!ye(i,o)}catch{return!0}}function oT(e){var t=si(e,vt);t!==null&&Pr(t,e,vt,mn)}function uy(e){var t=_l();typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e;var i={pending:null,interleaved:null,lanes:he,dispatch:null,lastRenderedReducer:sw,lastRenderedState:e};t.queue=i;var o=i.dispatch=FD.bind(null,hn,i);return[t.memoizedState,o]}function pw(e){return cw(sw)}function hw(e){return fw(sw)}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=tT(),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 vw(e){var t=_l();{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=_l(),p=o===void 0?null:o;hn.flags|=e,u.memoizedState=ov(kr|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 x=w.deps;if(lw(p,x)){u.memoizedState=ov(t,i,g,p);return}}}hn.flags|=e,u.memoizedState=ov(kr|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 mw(e,t){return lv(Gt,kl,e,t)}function py(e,t){return fy(Gt,kl,e,t)}function gw(e,t){var i=Gt;return i|=Eo,(hn.mode&en)!==it&&(i|=cl),lv(i,_r,e,t)}function hy(e,t){return fy(Gt,_r,e,t)}function lT(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 yw(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,_r,lT.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,_r,lT.bind(null,t,e),o)}function PD(e,t){}var my=PD;function Sw(e,t){var i=_l(),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(lw(o,p))return u[0]}return i.memoizedState=[e,o],e}function ww(e,t){var i=_l(),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(lw(o,p))return u[0]}var g=e();return i.memoizedState=[g,o],g}function bw(e){var t=_l();return t.memoizedState=e,e}function sT(e){var t=co(),i=Ar,o=i.memoizedState;return cT(t,o,e)}function uT(e){var t=co();if(Ar===null)return t.memoizedState=e,e;var i=Ar.memoizedState;return cT(t,i,e)}function cT(e,t,i){var o=!ch(tf);if(o){if(!ye(i,t)){var u=ph();hn.lanes=_t(hn.lanes,u),Rv(u),e.baseState=!0}return t}else return e.baseState&&(e.baseState=!1,hv()),e.memoizedState=i,i}function ID(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 xw(){var e=uy(!1),t=e[0],i=e[1],o=ID.bind(null,i),u=_l();return u.memoizedState=o,[t,o]}function fT(){var e=pw(),t=e[0],i=co(),o=i.memoizedState;return[t,o]}function dT(){var e=hw(),t=e[0],i=co(),o=i.memoizedState;return[t,o]}var pT=!1;function UD(){return pT}function Cw(){var e=_l(),t=Fy(),i=t.identifierPrefix,o;if(ea()){var u=eD();o=":"+i+"R"+u;var p=iv++;p>0&&(o+="H"+p.toString(32)),o+=":"}else{var g=ND++;o=":"+i+"r"+g.toString(32)+":"}return e.memoizedState=o,o}function Sy(){var e=co(),t=e.memoizedState;return t}function zD(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(hT(e))vT(t,u);else{var p=VE(e,t,u,o);if(p!==null){var g=Ba();Pr(p,e,o,g),mT(p,t,o)}}gT(e,o)}function FD(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(hT(e))vT(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 x=t.lastRenderedState,M=g(x,i);if(u.hasEagerState=!0,u.eagerState=M,ye(M,x)){CD(e,t,u,o);return}}catch{}finally{ze.current=w}}}var O=VE(e,t,u,o);if(O!==null){var B=Ba();Pr(O,e,o,B),mT(O,t,o)}}gT(e,o)}function hT(e){var t=e.alternate;return e===hn||t!==null&&t===hn}function vT(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 mT(e,t,i){if(dh(i)){var o=t.lanes;o=hh(o,e.pendingLanes);var u=_t(o,i);t.lanes=u,yd(e,u)}}function gT(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:$},yT=null,ST=null,wT=null,bT=null,Al=null,Uo=null,by=null;{var Ew=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")};yT={readContext:function(e){return yr(e)},useCallback:function(e,t){return se="useCallback",ln(),qd(t),Sw(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),yw(e,t,i)},useInsertionEffect:function(e,t){return se="useInsertionEffect",ln(),qd(t),mw(e,t)},useLayoutEffect:function(e,t){return se="useLayoutEffect",ln(),qd(t),gw(e,t)},useMemo:function(e,t){se="useMemo",ln(),qd(t);var i=ze.current;ze.current=Al;try{return ww(e,t)}finally{ze.current=i}},useReducer:function(e,t,i){se="useReducer",ln();var o=ze.current;ze.current=Al;try{return uw(e,t,i)}finally{ze.current=o}},useRef:function(e){return se="useRef",ln(),vw(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(),bw(e)},useTransition:function(){return se="useTransition",ln(),xw()},useMutableSource:function(e,t,i){return se="useMutableSource",ln(),void 0},useSyncExternalStore:function(e,t,i){return se="useSyncExternalStore",ln(),dw(e,t,i)},useId:function(){return se="useId",ln(),Cw()},unstable_isNewReconciler:$},ST={readContext:function(e){return yr(e)},useCallback:function(e,t){return se="useCallback",_e(),Sw(e,t)},useContext:function(e){return se="useContext",_e(),yr(e)},useEffect:function(e,t){return se="useEffect",_e(),dy(e,t)},useImperativeHandle:function(e,t,i){return se="useImperativeHandle",_e(),yw(e,t,i)},useInsertionEffect:function(e,t){return se="useInsertionEffect",_e(),mw(e,t)},useLayoutEffect:function(e,t){return se="useLayoutEffect",_e(),gw(e,t)},useMemo:function(e,t){se="useMemo",_e();var i=ze.current;ze.current=Al;try{return ww(e,t)}finally{ze.current=i}},useReducer:function(e,t,i){se="useReducer",_e();var o=ze.current;ze.current=Al;try{return uw(e,t,i)}finally{ze.current=o}},useRef:function(e){return se="useRef",_e(),vw(e)},useState:function(e){se="useState",_e();var t=ze.current;ze.current=Al;try{return uy(e)}finally{ze.current=t}},useDebugValue:function(e,t){return se="useDebugValue",_e(),void 0},useDeferredValue:function(e){return se="useDeferredValue",_e(),bw(e)},useTransition:function(){return se="useTransition",_e(),xw()},useMutableSource:function(e,t,i){return se="useMutableSource",_e(),void 0},useSyncExternalStore:function(e,t,i){return se="useSyncExternalStore",_e(),dw(e,t,i)},useId:function(){return se="useId",_e(),Cw()},unstable_isNewReconciler:$},wT={readContext:function(e){return yr(e)},useCallback:function(e,t){return se="useCallback",_e(),gy(e,t)},useContext:function(e){return se="useContext",_e(),yr(e)},useEffect:function(e,t){return se="useEffect",_e(),sv(e,t)},useImperativeHandle:function(e,t,i){return se="useImperativeHandle",_e(),vy(e,t,i)},useInsertionEffect:function(e,t){return se="useInsertionEffect",_e(),py(e,t)},useLayoutEffect:function(e,t){return se="useLayoutEffect",_e(),hy(e,t)},useMemo:function(e,t){se="useMemo",_e();var i=ze.current;ze.current=Uo;try{return yy(e,t)}finally{ze.current=i}},useReducer:function(e,t,i){se="useReducer",_e();var o=ze.current;ze.current=Uo;try{return cw(e,t,i)}finally{ze.current=o}},useRef:function(e){return se="useRef",_e(),cy()},useState:function(e){se="useState",_e();var t=ze.current;ze.current=Uo;try{return pw(e)}finally{ze.current=t}},useDebugValue:function(e,t){return se="useDebugValue",_e(),my()},useDeferredValue:function(e){return se="useDeferredValue",_e(),sT(e)},useTransition:function(){return se="useTransition",_e(),fT()},useMutableSource:function(e,t,i){return se="useMutableSource",_e(),void 0},useSyncExternalStore:function(e,t,i){return se="useSyncExternalStore",_e(),sy(e,t)},useId:function(){return se="useId",_e(),Sy()},unstable_isNewReconciler:$},bT={readContext:function(e){return yr(e)},useCallback:function(e,t){return se="useCallback",_e(),gy(e,t)},useContext:function(e){return se="useContext",_e(),yr(e)},useEffect:function(e,t){return se="useEffect",_e(),sv(e,t)},useImperativeHandle:function(e,t,i){return se="useImperativeHandle",_e(),vy(e,t,i)},useInsertionEffect:function(e,t){return se="useInsertionEffect",_e(),py(e,t)},useLayoutEffect:function(e,t){return se="useLayoutEffect",_e(),hy(e,t)},useMemo:function(e,t){se="useMemo",_e();var i=ze.current;ze.current=by;try{return yy(e,t)}finally{ze.current=i}},useReducer:function(e,t,i){se="useReducer",_e();var o=ze.current;ze.current=by;try{return fw(e,t,i)}finally{ze.current=o}},useRef:function(e){return se="useRef",_e(),cy()},useState:function(e){se="useState",_e();var t=ze.current;ze.current=by;try{return hw(e)}finally{ze.current=t}},useDebugValue:function(e,t){return se="useDebugValue",_e(),my()},useDeferredValue:function(e){return se="useDeferredValue",_e(),uT(e)},useTransition:function(){return se="useTransition",_e(),dT()},useMutableSource:function(e,t,i){return se="useMutableSource",_e(),void 0},useSyncExternalStore:function(e,t,i){return se="useSyncExternalStore",_e(),sy(e,t)},useId:function(){return se="useId",_e(),Sy()},unstable_isNewReconciler:$},Al={readContext:function(e){return Ew(),yr(e)},useCallback:function(e,t){return se="useCallback",Et(),ln(),Sw(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(),yw(e,t,i)},useInsertionEffect:function(e,t){return se="useInsertionEffect",Et(),ln(),mw(e,t)},useLayoutEffect:function(e,t){return se="useLayoutEffect",Et(),ln(),gw(e,t)},useMemo:function(e,t){se="useMemo",Et(),ln();var i=ze.current;ze.current=Al;try{return ww(e,t)}finally{ze.current=i}},useReducer:function(e,t,i){se="useReducer",Et(),ln();var o=ze.current;ze.current=Al;try{return uw(e,t,i)}finally{ze.current=o}},useRef:function(e){return se="useRef",Et(),ln(),vw(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(),bw(e)},useTransition:function(){return se="useTransition",Et(),ln(),xw()},useMutableSource:function(e,t,i){return se="useMutableSource",Et(),ln(),void 0},useSyncExternalStore:function(e,t,i){return se="useSyncExternalStore",Et(),ln(),dw(e,t,i)},useId:function(){return se="useId",Et(),ln(),Cw()},unstable_isNewReconciler:$},Uo={readContext:function(e){return Ew(),yr(e)},useCallback:function(e,t){return se="useCallback",Et(),_e(),gy(e,t)},useContext:function(e){return se="useContext",Et(),_e(),yr(e)},useEffect:function(e,t){return se="useEffect",Et(),_e(),sv(e,t)},useImperativeHandle:function(e,t,i){return se="useImperativeHandle",Et(),_e(),vy(e,t,i)},useInsertionEffect:function(e,t){return se="useInsertionEffect",Et(),_e(),py(e,t)},useLayoutEffect:function(e,t){return se="useLayoutEffect",Et(),_e(),hy(e,t)},useMemo:function(e,t){se="useMemo",Et(),_e();var i=ze.current;ze.current=Uo;try{return yy(e,t)}finally{ze.current=i}},useReducer:function(e,t,i){se="useReducer",Et(),_e();var o=ze.current;ze.current=Uo;try{return cw(e,t,i)}finally{ze.current=o}},useRef:function(e){return se="useRef",Et(),_e(),cy()},useState:function(e){se="useState",Et(),_e();var t=ze.current;ze.current=Uo;try{return pw(e)}finally{ze.current=t}},useDebugValue:function(e,t){return se="useDebugValue",Et(),_e(),my()},useDeferredValue:function(e){return se="useDeferredValue",Et(),_e(),sT(e)},useTransition:function(){return se="useTransition",Et(),_e(),fT()},useMutableSource:function(e,t,i){return se="useMutableSource",Et(),_e(),void 0},useSyncExternalStore:function(e,t,i){return se="useSyncExternalStore",Et(),_e(),sy(e,t)},useId:function(){return se="useId",Et(),_e(),Sy()},unstable_isNewReconciler:$},by={readContext:function(e){return Ew(),yr(e)},useCallback:function(e,t){return se="useCallback",Et(),_e(),gy(e,t)},useContext:function(e){return se="useContext",Et(),_e(),yr(e)},useEffect:function(e,t){return se="useEffect",Et(),_e(),sv(e,t)},useImperativeHandle:function(e,t,i){return se="useImperativeHandle",Et(),_e(),vy(e,t,i)},useInsertionEffect:function(e,t){return se="useInsertionEffect",Et(),_e(),py(e,t)},useLayoutEffect:function(e,t){return se="useLayoutEffect",Et(),_e(),hy(e,t)},useMemo:function(e,t){se="useMemo",Et(),_e();var i=ze.current;ze.current=Uo;try{return yy(e,t)}finally{ze.current=i}},useReducer:function(e,t,i){se="useReducer",Et(),_e();var o=ze.current;ze.current=Uo;try{return fw(e,t,i)}finally{ze.current=o}},useRef:function(e){return se="useRef",Et(),_e(),cy()},useState:function(e){se="useState",Et(),_e();var t=ze.current;ze.current=Uo;try{return hw(e)}finally{ze.current=t}},useDebugValue:function(e,t){return se="useDebugValue",Et(),_e(),my()},useDeferredValue:function(e){return se="useDeferredValue",Et(),_e(),uT(e)},useTransition:function(){return se="useTransition",Et(),_e(),dT()},useMutableSource:function(e,t,i){return se="useMutableSource",Et(),_e(),void 0},useSyncExternalStore:function(e,t,i){return se="useSyncExternalStore",Et(),_e(),sy(e,t)},useId:function(){return se="useId",Et(),_e(),Sy()},unstable_isNewReconciler:$}}var Du=a.unstable_now,xT=0,xy=-1,uv=-1,Cy=-1,Tw=!1,Ey=!1;function CT(){return Tw}function jD(){Ey=!0}function BD(){Tw=!1,Ey=!1}function HD(){Tw=Ey,Ey=!1}function ET(){return xT}function TT(){xT=Du()}function Rw(e){uv=Du(),e.actualStartTime<0&&(e.actualStartTime=Du())}function RT(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 k:var o=i.stateNode;o.effectDuration+=t;return;case fe:var u=i.stateNode;u.effectDuration+=t;return}i=i.return}}}function Mw(e){if(Cy>=0){var t=Du()-Cy;Cy=-1;for(var i=e.return;i!==null;){switch(i.tag){case k: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 kw(){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 Aw={},Ow,Nw,Dw,Lw,Pw,MT,Ry,Iw,Uw,zw,cv;{Ow=new Set,Nw=new Set,Dw=new Set,Lw=new Set,Iw=new Set,Pw=new Set,Uw=new Set,zw=new Set,cv=new Set;var kT=new Set;Ry=function(e,t){if(!(e===null||typeof e=="function")){var i=t+"_"+e;kT.has(i)||(kT.add(i),v("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e))}},MT=function(e,t){if(t===void 0){var i=Kt(e)||"Component";Pw.has(i)||(Pw.add(i),v("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",i))}},Object.defineProperty(Aw,"_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(Aw)}function Fw(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)}}MT(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 jw={isMounted:Dm,enqueueSetState:function(e,t,i){var o=su(e),u=Ba(),p=Uu(o),g=ks(u,p);g.payload=t,i!=null&&(Ry(i,"setState"),g.callback=i);var w=_u(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=ks(u,p);g.tag=GE,g.payload=t,i!=null&&(Ry(i,"replaceState"),g.callback=i);var w=_u(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=ks(o,u);p.tag=Zg,t!=null&&(Ry(t,"forceUpdate"),p.callback=t);var g=_u(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 x=w.shouldComponentUpdate(o,p,g);{if(e.mode&pn){Ln(!0);try{x=w.shouldComponentUpdate(o,p,g)}finally{Ln(!1)}}x===void 0&&v("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",Kt(t)||"Component")}return x}return t.prototype&&t.prototype.isPureReactComponent?!We(i,o)||!We(u,p):!0}function VD(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
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,ow=e!==null&&e.type!==t.type,t.memoizedState=null,t.updateQueue=null,t.lanes=he,e!==null&&e.memoizedState!==null?ze.current=bT:uo!==null?ze.current=wT:ze.current=ST;var g=i(o,u);if(av){var w=0;do{if(av=!1,iv=0,w>=DD)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");w+=1,ow=!1,Ar=null,Or=null,t.updateQueue=null,Nu=-1,ze.current=xT,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 eT(e,t,i){t.updateQueue=e.updateQueue,(t.mode&en)!==it?t.flags&=-50333701:t.flags&=-2053,e.lanes=Mc(e.lanes,i)}function tT(){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,hT=!1,av=!1,iv=0}function _l(){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 nT(){return{lastEffect:null,stores:null}}function sw(e,t){return typeof t=="function"?t(e):t}function uw(e,t,i){var o=_l(),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=zD.bind(null,hn,p);return[o.memoizedState,g]}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=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(ms(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=_t(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=_t(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 fw(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 u3(e,t,i){}function c3(e,t,i){}function dw(e,t,i){var o=hn,u=_l(),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)||rT(o,t,p)}u.memoizedState=p;var M={value:p,getSnapshot:t};return u.queue=M,dy(iT.bind(null,o,M,e),[e]),o.flags|=ha,ov(kr|ta,aT.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(iT.bind(null,o,M,e),[e]),M.getSnapshot!==t||b||Or!==null&&Or.memoizedState.tag&kr){o.flags|=ha,ov(kr|ta,aT.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)||rT(o,t,p)}return p}function rT(e,t,i){e.flags|=uu;var o={getSnapshot:t,value:i},u=hn.updateQueue;if(u===null)u=nT(),hn.updateQueue=u,u.stores=[o];else{var p=u.stores;p===null?u.stores=[o]:p.push(o)}}function aT(e,t,i,o){t.value=i,t.getSnapshot=o,oT(t)&&lT(e)}function iT(e,t,i){var o=function(){oT(t)&&lT(e)};return i(o)}function oT(e){var t=e.getSnapshot,i=e.value;try{var o=t();return!ye(i,o)}catch{return!0}}function lT(e){var t=si(e,vt);t!==null&&Pr(t,e,vt,mn)}function uy(e){var t=_l();typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e;var i={pending:null,interleaved:null,lanes:he,dispatch:null,lastRenderedReducer:sw,lastRenderedState:e};t.queue=i;var o=i.dispatch=FD.bind(null,hn,i);return[t.memoizedState,o]}function pw(e){return cw(sw)}function hw(e){return fw(sw)}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=nT(),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 vw(e){var t=_l();{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=_l(),p=o===void 0?null:o;hn.flags|=e,u.memoizedState=ov(kr|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(lw(p,b)){u.memoizedState=ov(t,i,g,p);return}}}hn.flags|=e,u.memoizedState=ov(kr|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 mw(e,t){return lv(Gt,kl,e,t)}function py(e,t){return fy(Gt,kl,e,t)}function gw(e,t){var i=Gt;return i|=Eo,(hn.mode&en)!==it&&(i|=cl),lv(i,_r,e,t)}function hy(e,t){return fy(Gt,_r,e,t)}function sT(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 yw(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,_r,sT.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,_r,sT.bind(null,t,e),o)}function PD(e,t){}var my=PD;function Sw(e,t){var i=_l(),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(lw(o,p))return u[0]}return i.memoizedState=[e,o],e}function ww(e,t){var i=_l(),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(lw(o,p))return u[0]}var g=e();return i.memoizedState=[g,o],g}function bw(e){var t=_l();return t.memoizedState=e,e}function uT(e){var t=co(),i=Ar,o=i.memoizedState;return fT(t,o,e)}function cT(e){var t=co();if(Ar===null)return t.memoizedState=e,e;var i=Ar.memoizedState;return fT(t,i,e)}function fT(e,t,i){var o=!ch(tf);if(o){if(!ye(i,t)){var u=ph();hn.lanes=_t(hn.lanes,u),Rv(u),e.baseState=!0}return t}else return e.baseState&&(e.baseState=!1,hv()),e.memoizedState=i,i}function ID(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 xw(){var e=uy(!1),t=e[0],i=e[1],o=ID.bind(null,i),u=_l();return u.memoizedState=o,[t,o]}function dT(){var e=pw(),t=e[0],i=co(),o=i.memoizedState;return[t,o]}function pT(){var e=hw(),t=e[0],i=co(),o=i.memoizedState;return[t,o]}var hT=!1;function UD(){return hT}function Cw(){var e=_l(),t=Fy(),i=t.identifierPrefix,o;if(ea()){var u=eD();o=":"+i+"R"+u;var p=iv++;p>0&&(o+="H"+p.toString(32)),o+=":"}else{var g=ND++;o=":"+i+"r"+g.toString(32)+":"}return e.memoizedState=o,o}function Sy(){var e=co(),t=e.memoizedState;return t}function zD(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(vT(e))mT(t,u);else{var p=$E(e,t,u,o);if(p!==null){var g=Ba();Pr(p,e,o,g),gT(p,t,o)}}yT(e,o)}function FD(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(vT(e))mT(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)){CD(e,t,u,o);return}}catch{}finally{ze.current=w}}}var O=$E(e,t,u,o);if(O!==null){var B=Ba();Pr(O,e,o,B),gT(O,t,o)}}yT(e,o)}function vT(e){var t=e.alternate;return e===hn||t!==null&&t===hn}function mT(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 gT(e,t,i){if(dh(i)){var o=t.lanes;o=hh(o,e.pendingLanes);var u=_t(o,i);t.lanes=u,yd(e,u)}}function yT(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:$},ST=null,wT=null,bT=null,xT=null,Al=null,Uo=null,by=null;{var Ew=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")};ST={readContext:function(e){return yr(e)},useCallback:function(e,t){return se="useCallback",ln(),qd(t),Sw(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),yw(e,t,i)},useInsertionEffect:function(e,t){return se="useInsertionEffect",ln(),qd(t),mw(e,t)},useLayoutEffect:function(e,t){return se="useLayoutEffect",ln(),qd(t),gw(e,t)},useMemo:function(e,t){se="useMemo",ln(),qd(t);var i=ze.current;ze.current=Al;try{return ww(e,t)}finally{ze.current=i}},useReducer:function(e,t,i){se="useReducer",ln();var o=ze.current;ze.current=Al;try{return uw(e,t,i)}finally{ze.current=o}},useRef:function(e){return se="useRef",ln(),vw(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(),bw(e)},useTransition:function(){return se="useTransition",ln(),xw()},useMutableSource:function(e,t,i){return se="useMutableSource",ln(),void 0},useSyncExternalStore:function(e,t,i){return se="useSyncExternalStore",ln(),dw(e,t,i)},useId:function(){return se="useId",ln(),Cw()},unstable_isNewReconciler:$},wT={readContext:function(e){return yr(e)},useCallback:function(e,t){return se="useCallback",_e(),Sw(e,t)},useContext:function(e){return se="useContext",_e(),yr(e)},useEffect:function(e,t){return se="useEffect",_e(),dy(e,t)},useImperativeHandle:function(e,t,i){return se="useImperativeHandle",_e(),yw(e,t,i)},useInsertionEffect:function(e,t){return se="useInsertionEffect",_e(),mw(e,t)},useLayoutEffect:function(e,t){return se="useLayoutEffect",_e(),gw(e,t)},useMemo:function(e,t){se="useMemo",_e();var i=ze.current;ze.current=Al;try{return ww(e,t)}finally{ze.current=i}},useReducer:function(e,t,i){se="useReducer",_e();var o=ze.current;ze.current=Al;try{return uw(e,t,i)}finally{ze.current=o}},useRef:function(e){return se="useRef",_e(),vw(e)},useState:function(e){se="useState",_e();var t=ze.current;ze.current=Al;try{return uy(e)}finally{ze.current=t}},useDebugValue:function(e,t){return se="useDebugValue",_e(),void 0},useDeferredValue:function(e){return se="useDeferredValue",_e(),bw(e)},useTransition:function(){return se="useTransition",_e(),xw()},useMutableSource:function(e,t,i){return se="useMutableSource",_e(),void 0},useSyncExternalStore:function(e,t,i){return se="useSyncExternalStore",_e(),dw(e,t,i)},useId:function(){return se="useId",_e(),Cw()},unstable_isNewReconciler:$},bT={readContext:function(e){return yr(e)},useCallback:function(e,t){return se="useCallback",_e(),gy(e,t)},useContext:function(e){return se="useContext",_e(),yr(e)},useEffect:function(e,t){return se="useEffect",_e(),sv(e,t)},useImperativeHandle:function(e,t,i){return se="useImperativeHandle",_e(),vy(e,t,i)},useInsertionEffect:function(e,t){return se="useInsertionEffect",_e(),py(e,t)},useLayoutEffect:function(e,t){return se="useLayoutEffect",_e(),hy(e,t)},useMemo:function(e,t){se="useMemo",_e();var i=ze.current;ze.current=Uo;try{return yy(e,t)}finally{ze.current=i}},useReducer:function(e,t,i){se="useReducer",_e();var o=ze.current;ze.current=Uo;try{return cw(e,t,i)}finally{ze.current=o}},useRef:function(e){return se="useRef",_e(),cy()},useState:function(e){se="useState",_e();var t=ze.current;ze.current=Uo;try{return pw(e)}finally{ze.current=t}},useDebugValue:function(e,t){return se="useDebugValue",_e(),my()},useDeferredValue:function(e){return se="useDeferredValue",_e(),uT(e)},useTransition:function(){return se="useTransition",_e(),dT()},useMutableSource:function(e,t,i){return se="useMutableSource",_e(),void 0},useSyncExternalStore:function(e,t,i){return se="useSyncExternalStore",_e(),sy(e,t)},useId:function(){return se="useId",_e(),Sy()},unstable_isNewReconciler:$},xT={readContext:function(e){return yr(e)},useCallback:function(e,t){return se="useCallback",_e(),gy(e,t)},useContext:function(e){return se="useContext",_e(),yr(e)},useEffect:function(e,t){return se="useEffect",_e(),sv(e,t)},useImperativeHandle:function(e,t,i){return se="useImperativeHandle",_e(),vy(e,t,i)},useInsertionEffect:function(e,t){return se="useInsertionEffect",_e(),py(e,t)},useLayoutEffect:function(e,t){return se="useLayoutEffect",_e(),hy(e,t)},useMemo:function(e,t){se="useMemo",_e();var i=ze.current;ze.current=by;try{return yy(e,t)}finally{ze.current=i}},useReducer:function(e,t,i){se="useReducer",_e();var o=ze.current;ze.current=by;try{return fw(e,t,i)}finally{ze.current=o}},useRef:function(e){return se="useRef",_e(),cy()},useState:function(e){se="useState",_e();var t=ze.current;ze.current=by;try{return hw(e)}finally{ze.current=t}},useDebugValue:function(e,t){return se="useDebugValue",_e(),my()},useDeferredValue:function(e){return se="useDeferredValue",_e(),cT(e)},useTransition:function(){return se="useTransition",_e(),pT()},useMutableSource:function(e,t,i){return se="useMutableSource",_e(),void 0},useSyncExternalStore:function(e,t,i){return se="useSyncExternalStore",_e(),sy(e,t)},useId:function(){return se="useId",_e(),Sy()},unstable_isNewReconciler:$},Al={readContext:function(e){return Ew(),yr(e)},useCallback:function(e,t){return se="useCallback",Et(),ln(),Sw(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(),yw(e,t,i)},useInsertionEffect:function(e,t){return se="useInsertionEffect",Et(),ln(),mw(e,t)},useLayoutEffect:function(e,t){return se="useLayoutEffect",Et(),ln(),gw(e,t)},useMemo:function(e,t){se="useMemo",Et(),ln();var i=ze.current;ze.current=Al;try{return ww(e,t)}finally{ze.current=i}},useReducer:function(e,t,i){se="useReducer",Et(),ln();var o=ze.current;ze.current=Al;try{return uw(e,t,i)}finally{ze.current=o}},useRef:function(e){return se="useRef",Et(),ln(),vw(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(),bw(e)},useTransition:function(){return se="useTransition",Et(),ln(),xw()},useMutableSource:function(e,t,i){return se="useMutableSource",Et(),ln(),void 0},useSyncExternalStore:function(e,t,i){return se="useSyncExternalStore",Et(),ln(),dw(e,t,i)},useId:function(){return se="useId",Et(),ln(),Cw()},unstable_isNewReconciler:$},Uo={readContext:function(e){return Ew(),yr(e)},useCallback:function(e,t){return se="useCallback",Et(),_e(),gy(e,t)},useContext:function(e){return se="useContext",Et(),_e(),yr(e)},useEffect:function(e,t){return se="useEffect",Et(),_e(),sv(e,t)},useImperativeHandle:function(e,t,i){return se="useImperativeHandle",Et(),_e(),vy(e,t,i)},useInsertionEffect:function(e,t){return se="useInsertionEffect",Et(),_e(),py(e,t)},useLayoutEffect:function(e,t){return se="useLayoutEffect",Et(),_e(),hy(e,t)},useMemo:function(e,t){se="useMemo",Et(),_e();var i=ze.current;ze.current=Uo;try{return yy(e,t)}finally{ze.current=i}},useReducer:function(e,t,i){se="useReducer",Et(),_e();var o=ze.current;ze.current=Uo;try{return cw(e,t,i)}finally{ze.current=o}},useRef:function(e){return se="useRef",Et(),_e(),cy()},useState:function(e){se="useState",Et(),_e();var t=ze.current;ze.current=Uo;try{return pw(e)}finally{ze.current=t}},useDebugValue:function(e,t){return se="useDebugValue",Et(),_e(),my()},useDeferredValue:function(e){return se="useDeferredValue",Et(),_e(),uT(e)},useTransition:function(){return se="useTransition",Et(),_e(),dT()},useMutableSource:function(e,t,i){return se="useMutableSource",Et(),_e(),void 0},useSyncExternalStore:function(e,t,i){return se="useSyncExternalStore",Et(),_e(),sy(e,t)},useId:function(){return se="useId",Et(),_e(),Sy()},unstable_isNewReconciler:$},by={readContext:function(e){return Ew(),yr(e)},useCallback:function(e,t){return se="useCallback",Et(),_e(),gy(e,t)},useContext:function(e){return se="useContext",Et(),_e(),yr(e)},useEffect:function(e,t){return se="useEffect",Et(),_e(),sv(e,t)},useImperativeHandle:function(e,t,i){return se="useImperativeHandle",Et(),_e(),vy(e,t,i)},useInsertionEffect:function(e,t){return se="useInsertionEffect",Et(),_e(),py(e,t)},useLayoutEffect:function(e,t){return se="useLayoutEffect",Et(),_e(),hy(e,t)},useMemo:function(e,t){se="useMemo",Et(),_e();var i=ze.current;ze.current=Uo;try{return yy(e,t)}finally{ze.current=i}},useReducer:function(e,t,i){se="useReducer",Et(),_e();var o=ze.current;ze.current=Uo;try{return fw(e,t,i)}finally{ze.current=o}},useRef:function(e){return se="useRef",Et(),_e(),cy()},useState:function(e){se="useState",Et(),_e();var t=ze.current;ze.current=Uo;try{return hw(e)}finally{ze.current=t}},useDebugValue:function(e,t){return se="useDebugValue",Et(),_e(),my()},useDeferredValue:function(e){return se="useDeferredValue",Et(),_e(),cT(e)},useTransition:function(){return se="useTransition",Et(),_e(),pT()},useMutableSource:function(e,t,i){return se="useMutableSource",Et(),_e(),void 0},useSyncExternalStore:function(e,t,i){return se="useSyncExternalStore",Et(),_e(),sy(e,t)},useId:function(){return se="useId",Et(),_e(),Sy()},unstable_isNewReconciler:$}}var Du=a.unstable_now,CT=0,xy=-1,uv=-1,Cy=-1,Tw=!1,Ey=!1;function ET(){return Tw}function jD(){Ey=!0}function BD(){Tw=!1,Ey=!1}function HD(){Tw=Ey,Ey=!1}function TT(){return CT}function RT(){CT=Du()}function Rw(e){uv=Du(),e.actualStartTime<0&&(e.actualStartTime=Du())}function MT(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 k:var o=i.stateNode;o.effectDuration+=t;return;case fe:var u=i.stateNode;u.effectDuration+=t;return}i=i.return}}}function Mw(e){if(Cy>=0){var t=Du()-Cy;Cy=-1;for(var i=e.return;i!==null;){switch(i.tag){case k: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 kw(){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 Aw={},Ow,Nw,Dw,Lw,Pw,kT,Ry,Iw,Uw,zw,cv;{Ow=new Set,Nw=new Set,Dw=new Set,Lw=new Set,Iw=new Set,Pw=new Set,Uw=new Set,zw=new Set,cv=new Set;var _T=new Set;Ry=function(e,t){if(!(e===null||typeof e=="function")){var i=t+"_"+e;_T.has(i)||(_T.add(i),v("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e))}},kT=function(e,t){if(t===void 0){var i=Kt(e)||"Component";Pw.has(i)||(Pw.add(i),v("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",i))}},Object.defineProperty(Aw,"_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(Aw)}function Fw(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)}}kT(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 jw={isMounted:Dm,enqueueSetState:function(e,t,i){var o=su(e),u=Ba(),p=Uu(o),g=ks(u,p);g.payload=t,i!=null&&(Ry(i,"setState"),g.callback=i);var w=_u(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=ks(u,p);g.tag=YE,g.payload=t,i!=null&&(Ry(i,"replaceState"),g.callback=i);var w=_u(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=ks(o,u);p.tag=Zg,t!=null&&(Ry(t,"forceUpdate"),p.callback=t);var g=_u(i,p,u);g!==null&&(Pr(g,i,u,o),ty(g,i,u)),Qf(i,u)}};function AT(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 VD(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
181
 
182
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
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&&!Uw.has(t)&&(Uw.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"&&!Dw.has(t)&&(Dw.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 AT(e,t){t.updater=jw,e.stateNode=t,ns(t,e),t._reactInternalInstance=Aw}function OT(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&&!zw.has(t)){zw.add(t);var x="";g===void 0?x=" 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"?x=" However, it is set to a "+typeof g+".":g.$$typeof===Hi?x=" Did you accidentally pass the Context.Provider instead?":g._context!==void 0?x=" Did you accidentally pass the Context.Consumer instead?":x=" 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",x)}}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;AT(e,O);{if(typeof t.getDerivedStateFromProps=="function"&&B===null){var F=Kt(t)||"Component";Nw.has(F)||(Nw.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()";Lw.has(Le)||(Lw.add(Le),v(`Unsafe legacy lifecycles will not be called for components using new component APIs.
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&&!Uw.has(t)&&(Uw.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"&&!Dw.has(t)&&(Dw.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 OT(e,t){t.updater=jw,e.stateNode=t,ns(t,e),t._reactInternalInstance=Aw}function NT(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&&!zw.has(t)){zw.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;OT(e,O);{if(typeof t.getDerivedStateFromProps=="function"&&B===null){var F=Kt(t)||"Component";Nw.has(F)||(Nw.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()";Lw.has(Le)||(Lw.add(Le),v(`Unsafe legacy lifecycles will not be called for components using new component APIs.
185
185
 
186
186
  %s uses %s but also contains the following legacy lifecycles:%s%s%s
187
187
 
@@ -189,17 +189,17 @@ The above lifecycles should be removed. Learn more about this warning here:
189
189
  https://reactjs.org/link/unsafe-component-lifecycles`,Le,ct,q!==null?`
190
190
  `+q:"",te!==null?`
191
191
  `+te:"",ae!==null?`
192
- `+ae:""))}}}return o&&wE(e,u,p),O}function $D(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"),jw.enqueueReplaceState(t,t.state,null))}function NT(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";Ow.has(p)||(Ow.add(p),v("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",p))}jw.enqueueReplaceState(t,t.state,null)}}function Bw(e,t,i,o){VD(e,t,i);var u=e.stateNode;u.props=i,u.state=e.memoizedState,u.refs={},QS(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";Iw.has(w)||(Iw.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 x=t.getDerivedStateFromProps;if(typeof x=="function"&&(Fw(e,t,x,i),u.state=e.memoizedState),typeof t.getDerivedStateFromProps!="function"&&typeof u.getSnapshotBeforeUpdate!="function"&&(typeof u.UNSAFE_componentWillMount=="function"||typeof u.componentWillMount=="function")&&($D(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 GD(e,t,i,o){var u=e.stateNode,p=e.memoizedProps;u.props=p;var g=u.context,w=t.contextType,x=Li;if(typeof w=="object"&&w!==null)x=yr(w);else{var M=Fd(e,t,!0);x=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!==x)&&NT(e,u,i,x),WE();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"&&(Fw(e,t,O,i),q=e.memoizedState);var ae=ry()||_T(e,t,p,i,F,q,x);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=x,ae}function YD(e,t,i,o,u){var p=t.stateNode;YE(e,t);var g=t.memoizedProps,w=t.type===t.elementType?g:zo(t.type,g);p.props=w;var x=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!==x||M!==B)&&NT(t,p,o,B),WE();var ae=t.memoizedState,Le=p.state=ae;if(ny(t,o,p,u),Le=t.memoizedState,g===x&&ae===Le&&!Ug()&&!ry()&&!ke)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"&&(Fw(t,i,q,o),Le=t.memoizedState);var ct=ry()||_T(t,i,w,o,ae,Le,B)||ke;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 Hw(e,t,i){return{value:e,source:null,stack:i??null,digest:t??null}}function WD(e,t){return!0}function Vw(e,t){try{var i=WD(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===T)return;console.error(o)}var w=u?bt(u):null,x=w?"The above error occurred in the <"+w+"> component:":"The above error occurred in one of your React components:",M;if(e.tag===k)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=x+`
192
+ `+ae:""))}}}return o&&bE(e,u,p),O}function $D(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"),jw.enqueueReplaceState(t,t.state,null))}function DT(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";Ow.has(p)||(Ow.add(p),v("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",p))}jw.enqueueReplaceState(t,t.state,null)}}function Bw(e,t,i,o){VD(e,t,i);var u=e.stateNode;u.props=i,u.state=e.memoizedState,u.refs={},QS(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";Iw.has(w)||(Iw.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"&&(Fw(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")&&($D(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 GD(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)&&DT(e,u,i,b),XE();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"&&(Fw(e,t,O,i),q=e.memoizedState);var ae=ry()||AT(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 YD(e,t,i,o,u){var p=t.stateNode;WE(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)&&DT(t,p,o,B),XE();var ae=t.memoizedState,Le=p.state=ae;if(ny(t,o,p,u),Le=t.memoizedState,g===b&&ae===Le&&!Ug()&&!ry()&&!ke)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"&&(Fw(t,i,q,o),Le=t.memoizedState);var ct=ry()||AT(t,i,w,o,ae,Le,B)||ke;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 Hw(e,t,i){return{value:e,source:null,stack:i??null,digest:t??null}}function WD(e,t){return!0}function Vw(e,t){try{var i=WD(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===k)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
194
  `+g+`
195
195
 
196
- `+(""+M);console.error(B)}catch(F){setTimeout(function(){throw F})}}var XD=typeof WeakMap=="function"?WeakMap:Map;function DT(e,t,i){var o=ks(mn,i);o.tag=XS,o.payload={element:null};var u=t.value;return o.callback=function(){jL(u),Vw(e,t)},o}function $w(e,t,i){var o=ks(mn,i);o.tag=XS;var u=e.type.getDerivedStateFromError;if(typeof u=="function"){var p=t.value;o.payload=function(){return u(p)},o.callback=function(){$1(e),Vw(e,t)}}var g=e.stateNode;return g!==null&&typeof g.componentDidCatch=="function"&&(o.callback=function(){$1(e),Vw(e,t),typeof u!="function"&&zL(this);var x=t.value,M=t.stack;this.componentDidCatch(x,{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 LT(e,t,i){var o=e.pingCache,u;if(o===null?(o=e.pingCache=new XD,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=BL.bind(null,e,t,i);ya&&Mv(e,i),t.then(p,p)}}function KD(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 QD(e,t){var i=e.tag;if((e.mode&Lt)===it&&(i===b||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 PT(e){var t=e;do{if(t.tag===le&&AD(t))return t;t=t.return}while(t!==null);return null}function IT(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===T){var p=i.alternate;if(p===null)i.tag=tt;else{var g=ks(mn,vt);g.tag=Zg,_u(i,g,vt)}}i.lanes=_t(i.lanes,vt)}return e}return e.flags|=hr,e.lanes=u,e}function qD(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;QD(i),ea()&&i.mode&Lt&&ME();var g=PT(t);if(g!==null){g.flags&=~jr,IT(g,t,i,e,u),g.mode&Lt&&LT(e,p,u),KD(g,e,p);return}else{if(!Bm(u)){LT(e,p,u),Cb();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){ME();var x=PT(t);if(x!==null){(x.flags&hr)===at&&(x.flags|=jr),IT(x,t,i,e,u),IS(nf(o,i));return}}o=nf(o,i),AL(o);var M=t;do{switch(M.tag){case k:{var O=o;M.flags|=hr;var B=Rc(u);M.lanes=_t(M.lanes,B);var F=DT(M,O,B);qS(M,F);return}case T:var q=o,te=M.type,ae=M.stateNode;if((M.flags&nt)===at&&(typeof te.getDerivedStateFromError=="function"||ae!==null&&typeof ae.componentDidCatch=="function"&&!P1(ae))){M.flags|=hr;var Le=Rc(u);M.lanes=_t(M.lanes,Le);var ct=$w(M,q,Le);qS(M,ct);return}break}M=M.return}while(M!==null)}function ZD(){return null}var fv=l.ReactCurrentOwner,Fo=!1,Gw,dv,Yw,Ww,Xw,rf,Kw,My,pv;Gw={},dv={},Yw={},Ww={},Xw={},rf=!1,Kw={},My={},pv={};function Fa(e,t,i,o){e===null?t.child=FE(t,null,i,o):t.child=$d(t,e.child,i,o)}function JD(e,t,i,o){t.child=$d(t,e.child,null,o),t.child=$d(t,null,i,o)}function UT(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,x,M;Yd(t,u),Pa(t);{if(fv.current=t,lr(!0),x=Zd(e,t,g,o,w,u),M=Jd(),t.mode&pn){Ln(!0);try{x=Zd(e,t,g,o,w,u),M=Jd()}finally{Ln(!1)}}lr(!1)}return Ia(),e!==null&&!Fo?(JE(e,t,u),_s(e,t,u)):(ea()&&M&&AS(t),t.flags|=_i,Fa(e,t,x,u),t.child)}function zT(e,t,i,o,u){if(e===null){var p=i.type;if(aP(p)&&i.compare===null&&i.defaultProps===void 0){var g=p;return g=lp(p),t.tag=ve,t.type=g,Zw(t,p),FT(e,t,g,o,u)}{var w=p.propTypes;if(w&&Do(w,o,"prop",Kt(p)),i.defaultProps!==void 0){var x=Kt(p)||"Unknown";pv[x]||(v("%s: Support for defaultProps will be removed from memo components in a future major release. Use JavaScript default parameters instead.",x),pv[x]=!0)}}var M=Lb(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=ab(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|=_i;var Le=uf(F,o);return Le.ref=t.ref,Le.return=t,t.child=Le,Le}function FT(e,t,i,o,u){if(t.type!==t.elementType){var p=t.elementType;if(p.$$typeof===Ct){var g=p,w=g._payload,x=g._init;try{p=x(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,ab(e,u))(e.flags&Hf)!==at&&(Fo=!0);else return t.lanes=e.lanes,_s(e,t,u)}return Qw(e,t,i,o,u)}function jT(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,x;if(p!==null){var M=p.baseLanes;x=_t(M,i)}else x=i;t.lanes=t.childLanes=Sa;var O={baseLanes:x,cachePool:w,transitions:null};return t.memoizedState=O,t.updateQueue=null,jy(t,x),null}else{var q;p!==null?(q=_t(p.baseLanes,i),t.memoizedState=null):q=i,jy(t,q)}return Fa(e,t,u,i),t.child}function e2(e,t,i){var o=t.pendingProps;return Fa(e,t,o,i),t.child}function t2(e,t,i){var o=t.pendingProps.children;return Fa(e,t,o,i),t.child}function n2(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 BT(e,t){var i=t.ref;(e===null&&i!==null||e!==null&&e.ref!==i)&&(t.flags|=zn,t.flags|=cu)}function Qw(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 x,M;Yd(t,u),Pa(t);{if(fv.current=t,lr(!0),x=Zd(e,t,i,o,g,u),M=Jd(),t.mode&pn){Ln(!0);try{x=Zd(e,t,i,o,g,u),M=Jd()}finally{Ln(!1)}}lr(!1)}return Ia(),e!==null&&!Fo?(JE(e,t,u),_s(e,t,u)):(ea()&&M&&AS(t),t.flags|=_i,Fa(e,t,x,u),t.child)}function HT(e,t,i,o,u){{switch(SP(t)){case!1:{var p=t.stateNode,g=t.type,w=new g(t.memoizedProps,p.context),x=w.state;p.updater.enqueueSetState(p,x,null);break}case!0:{t.flags|=nt,t.flags|=hr;var M=new Error("Simulated error coming from DevTools"),O=Rc(u);t.lanes=_t(t.lanes,O);var B=$w(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?(_y(e,t),OT(t,i,o),Bw(t,i,o,u),ae=!0):e===null?ae=GD(t,i,o,u):ae=YD(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){BT(e,t);var g=(t.flags&nt)!==at;if(!o&&!g)return u&&CE(t,i,!1),_s(e,t,p);var w=t.stateNode;fv.current=t;var x;if(g&&typeof i.getDerivedStateFromError!="function")x=null,RT();else{Pa(t);{if(lr(!0),x=w.render(),t.mode&pn){Ln(!0);try{w.render()}finally{Ln(!1)}}lr(!1)}Ia()}return t.flags|=_i,e!==null&&g?JD(e,t,x,p):Fa(e,t,x,p),t.memoizedState=w.state,u&&CE(t,i,!0),t.child}function VT(e){var t=e.stateNode;t.pendingContext?bE(e,t.pendingContext,t.pendingContext!==t.context):t.context&&bE(e,t.context,!1),ZS(e,t.containerInfo)}function r2(e,t,i){if(VT(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;YE(e,t),ny(t,o,null,i);var g=t.memoizedState;t.stateNode;var w=g.element;if(u.isDehydrated){var x={element:w,isDehydrated:!1,cache:g.cache,pendingSuspenseBoundaries:g.pendingSuspenseBoundaries,transitions:g.transitions},M=t.updateQueue;if(M.baseState=x,t.memoizedState=x,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 $T(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 $T(e,t,w,i,B)}else{oD(t);var F=FE(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 $T(e,t,i,o,u){return Vd(),IS(u),t.flags|=jr,Fa(e,t,i,o),t.child}function a2(e,t,i){QE(t),e===null&&PS(t);var o=t.type,u=t.pendingProps,p=e!==null?e.memoizedProps:null,g=u.children,w=mS(o,u);return w?g=null:p!==null&&mS(o,p)&&(t.flags|=Ja),BT(e,t),Fa(e,t,g,i),t.child}function i2(e,t){return e===null&&PS(t),null}function o2(e,t,i,o){_y(e,t);var u=t.pendingProps,p=i,g=p._payload,w=p._init,x=w(g);t.type=x;var M=t.tag=iP(x),O=zo(x,u),B;switch(M){case b:return Zw(t,x),t.type=x=lp(x),B=Qw(null,t,x,O,o),B;case T:return t.type=x=kb(x),B=HT(null,t,x,O,o),B;case ce:return t.type=x=_b(x),B=UT(null,t,x,O,o),B;case Re:{if(t.type!==t.elementType){var F=x.propTypes;F&&Do(F,O,"prop",Kt(x))}return B=zT(null,t,x,zo(x.type,O),o),B}}var q="";throw x!==null&&typeof x=="object"&&x.$$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: "+x+". "+("Lazy element type must resolve to a class or function."+q))}function l2(e,t,i,o,u){_y(e,t),t.tag=T;var p;return Ml(i)?(p=!0,Fg(t)):p=!1,Yd(t,u),OT(t,i,o),Bw(t,i,o,u),qw(null,t,i,!0,p,u)}function s2(e,t,i,o){_y(e,t);var u=t.pendingProps,p;{var g=Fd(t,i,!1);p=jd(t,g)}Yd(t,o);var w,x;Pa(t);{if(i.prototype&&typeof i.prototype.render=="function"){var M=Kt(i)||"Unknown";Gw[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),Gw[M]=!0)}t.mode&pn&&Po.recordLegacyContextWarning(t,null),lr(!0),fv.current=t,w=Zd(null,t,i,u,p,o),x=Jd(),lr(!1)}if(Ia(),t.flags|=_i,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=T,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,QS(t),AT(t,w),Bw(t,i,u,o),qw(null,t,i,!0,F,o)}else{if(t.tag=b,t.mode&pn){Ln(!0);try{w=Zd(null,t,i,u,p,o),x=Jd()}finally{Ln(!1)}}return ea()&&x&&AS(t),Fa(null,t,w,o),Zw(t,i),t.child}}function Zw(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+=`
196
+ `+(""+M);console.error(B)}catch(F){setTimeout(function(){throw F})}}var XD=typeof WeakMap=="function"?WeakMap:Map;function LT(e,t,i){var o=ks(mn,i);o.tag=XS,o.payload={element:null};var u=t.value;return o.callback=function(){jL(u),Vw(e,t)},o}function $w(e,t,i){var o=ks(mn,i);o.tag=XS;var u=e.type.getDerivedStateFromError;if(typeof u=="function"){var p=t.value;o.payload=function(){return u(p)},o.callback=function(){G1(e),Vw(e,t)}}var g=e.stateNode;return g!==null&&typeof g.componentDidCatch=="function"&&(o.callback=function(){G1(e),Vw(e,t),typeof u!="function"&&zL(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 PT(e,t,i){var o=e.pingCache,u;if(o===null?(o=e.pingCache=new XD,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=BL.bind(null,e,t,i);ya&&Mv(e,i),t.then(p,p)}}function KD(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 QD(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 IT(e){var t=e;do{if(t.tag===le&&AD(t))return t;t=t.return}while(t!==null);return null}function UT(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=ks(mn,vt);g.tag=Zg,_u(i,g,vt)}}i.lanes=_t(i.lanes,vt)}return e}return e.flags|=hr,e.lanes=u,e}function qD(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;QD(i),ea()&&i.mode&Lt&&kE();var g=IT(t);if(g!==null){g.flags&=~jr,UT(g,t,i,e,u),g.mode&Lt&&PT(e,p,u),KD(g,e,p);return}else{if(!Bm(u)){PT(e,p,u),Cb();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){kE();var b=IT(t);if(b!==null){(b.flags&hr)===at&&(b.flags|=jr),UT(b,t,i,e,u),IS(nf(o,i));return}}o=nf(o,i),AL(o);var M=t;do{switch(M.tag){case k:{var O=o;M.flags|=hr;var B=Rc(u);M.lanes=_t(M.lanes,B);var F=LT(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"&&!I1(ae))){M.flags|=hr;var Le=Rc(u);M.lanes=_t(M.lanes,Le);var ct=$w(M,q,Le);qS(M,ct);return}break}M=M.return}while(M!==null)}function ZD(){return null}var fv=l.ReactCurrentOwner,Fo=!1,Gw,dv,Yw,Ww,Xw,rf,Kw,My,pv;Gw={},dv={},Yw={},Ww={},Xw={},rf=!1,Kw={},My={},pv={};function Fa(e,t,i,o){e===null?t.child=jE(t,null,i,o):t.child=$d(t,e.child,i,o)}function JD(e,t,i,o){t.child=$d(t,e.child,null,o),t.child=$d(t,null,i,o)}function zT(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?(eT(e,t,u),_s(e,t,u)):(ea()&&M&&AS(t),t.flags|=_i,Fa(e,t,b,u),t.child)}function FT(e,t,i,o,u){if(e===null){var p=i.type;if(aP(p)&&i.compare===null&&i.defaultProps===void 0){var g=p;return g=lp(p),t.tag=ve,t.type=g,Zw(t,p),jT(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=Lb(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=ab(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|=_i;var Le=uf(F,o);return Le.ref=t.ref,Le.return=t,t.child=Le,Le}function jT(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,ab(e,u))(e.flags&Hf)!==at&&(Fo=!0);else return t.lanes=e.lanes,_s(e,t,u)}return Qw(e,t,i,o,u)}function BT(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=_t(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=_t(p.baseLanes,i),t.memoizedState=null):q=i,jy(t,q)}return Fa(e,t,u,i),t.child}function e2(e,t,i){var o=t.pendingProps;return Fa(e,t,o,i),t.child}function t2(e,t,i){var o=t.pendingProps.children;return Fa(e,t,o,i),t.child}function n2(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 HT(e,t){var i=t.ref;(e===null&&i!==null||e!==null&&e.ref!==i)&&(t.flags|=zn,t.flags|=cu)}function Qw(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?(eT(e,t,u),_s(e,t,u)):(ea()&&M&&AS(t),t.flags|=_i,Fa(e,t,b,u),t.child)}function VT(e,t,i,o,u){{switch(SP(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=_t(t.lanes,O);var B=$w(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?(_y(e,t),NT(t,i,o),Bw(t,i,o,u),ae=!0):e===null?ae=GD(t,i,o,u):ae=YD(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){HT(e,t);var g=(t.flags&nt)!==at;if(!o&&!g)return u&&EE(t,i,!1),_s(e,t,p);var w=t.stateNode;fv.current=t;var b;if(g&&typeof i.getDerivedStateFromError!="function")b=null,MT();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|=_i,e!==null&&g?JD(e,t,b,p):Fa(e,t,b,p),t.memoizedState=w.state,u&&EE(t,i,!0),t.child}function $T(e){var t=e.stateNode;t.pendingContext?xE(e,t.pendingContext,t.pendingContext!==t.context):t.context&&xE(e,t.context,!1),ZS(e,t.containerInfo)}function r2(e,t,i){if($T(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;WE(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 GT(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 GT(e,t,w,i,B)}else{oD(t);var F=jE(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 GT(e,t,i,o,u){return Vd(),IS(u),t.flags|=jr,Fa(e,t,i,o),t.child}function a2(e,t,i){qE(t),e===null&&PS(t);var o=t.type,u=t.pendingProps,p=e!==null?e.memoizedProps:null,g=u.children,w=mS(o,u);return w?g=null:p!==null&&mS(o,p)&&(t.flags|=Ja),HT(e,t),Fa(e,t,g,i),t.child}function i2(e,t){return e===null&&PS(t),null}function o2(e,t,i,o){_y(e,t);var u=t.pendingProps,p=i,g=p._payload,w=p._init,b=w(g);t.type=b;var M=t.tag=iP(b),O=zo(b,u),B;switch(M){case x:return Zw(t,b),t.type=b=lp(b),B=Qw(null,t,b,O,o),B;case R:return t.type=b=kb(b),B=VT(null,t,b,O,o),B;case ce:return t.type=b=_b(b),B=zT(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=FT(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 l2(e,t,i,o,u){_y(e,t),t.tag=R;var p;return Ml(i)?(p=!0,Fg(t)):p=!1,Yd(t,u),NT(t,i,o),Bw(t,i,o,u),qw(null,t,i,!0,p,u)}function s2(e,t,i,o){_y(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";Gw[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),Gw[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|=_i,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,QS(t),OT(t,w),Bw(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&&AS(t),Fa(null,t,w,o),Zw(t,i),t.child}}function Zw(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
197
 
198
- Check the render method of \``+o+"`.");var u=o||"",p=e._debugSource;p&&(u=p.fileName+":"+p.lineNumber),Xw[u]||(Xw[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";Ww[w]||(v("%s: Function components do not support getDerivedStateFromProps.",w),Ww[w]=!0)}if(typeof t.contextType=="object"&&t.contextType!==null){var x=Kt(t)||"Unknown";Yw[x]||(v("%s: Function components do not support contextType.",x),Yw[x]=!0)}}}var Jw={dehydrated:null,treeContext:null,retryLane:qt};function eb(e){return{baseLanes:e,cachePool:ZD(),transitions:null}}function u2(e,t){var i=null;return{baseLanes:_t(e.baseLanes,t),cachePool:i,transitions:e.transitions}}function c2(e,t,i,o){if(t!==null){var u=t.memoizedState;if(u===null)return!1}return tw(e,nv)}function f2(e,t){return Mc(e.childLanes,t)}function GT(e,t,i){var o=t.pendingProps;wP(t)&&(t.flags|=nt);var u=Io.current,p=!1,g=(t.flags&nt)!==at;if(g||c2(u,e)?(p=!0,t.flags&=~nt):(e===null||e.memoizedState!==null)&&(u=_D(u,ZE)),u=Xd(u),Ou(t,u),e===null){PS(t);var w=t.memoizedState;if(w!==null){var x=w.dehydrated;if(x!==null)return m2(t,x)}var M=o.children,O=o.fallback;if(p){var B=d2(t,M,O,i),F=t.child;return F.memoizedState=eb(i),t.memoizedState=Jw,B}else return tb(t,M)}else{var q=e.memoizedState;if(q!==null){var te=q.dehydrated;if(te!==null)return g2(e,t,g,o,te,q,i)}if(p){var ae=o.fallback,Le=o.children,ct=h2(e,t,Le,ae,i),et=t.child,Xt=e.child.memoizedState;return et.memoizedState=Xt===null?eb(i):u2(Xt,i),et.childLanes=f2(e,i),t.memoizedState=Jw,ct}else{var Bt=o.children,W=p2(e,t,Bt,i);return t.memoizedState=null,W}}}function tb(e,t,i){var o=e.mode,u={mode:"visible",children:t},p=nb(u,o);return p.return=e,e.child=p,p}function d2(e,t,i,o){var u=e.mode,p=e.child,g={mode:"hidden",children:t},w,x;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),x=Fu(i,u,o,null)):(w=nb(g,u),x=Fu(i,u,o,null)),w.return=e,x.return=e,w.sibling=x,e.child=w,x}function nb(e,t,i){return Y1(e,t,he,null)}function YT(e,t){return uf(e,t)}function p2(e,t,i,o){var u=e.child,p=u.sibling,g=YT(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 h2(e,t,i,o,u){var p=t.mode,g=e.child,w=g.sibling,x={mode:"hidden",children:i},M;if((p&Lt)===it&&t.child!==g){var O=t.child;M=O,M.childLanes=he,M.pendingProps=x,t.mode&Jt&&(M.actualDuration=0,M.actualStartTime=-1,M.selfBaseDuration=g.selfBaseDuration,M.treeBaseDuration=g.treeBaseDuration),t.deletions=null}else M=YT(g,x),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 ky(e,t,i,o){o!==null&&IS(o),$d(t,e.child,null,i);var u=t.pendingProps,p=u.children,g=tb(t,p);return g.flags|=Dn,t.memoizedState=null,g}function v2(e,t,i,o,u){var p=t.mode,g={mode:"visible",children:i},w=nb(g,p),x=Fu(o,p,u,null);return x.flags|=Dn,w.return=t,x.return=t,w.sibling=x,t.child=w,(t.mode&Lt)!==it&&$d(t,e.child,null,u),x}function m2(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):wS(t)?e.lanes=Br:e.lanes=Sa,null}function g2(e,t,i,o,u,p,g){if(i)if(t.flags&jr){t.flags&=~jr;var W=Hw(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return ky(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=v2(e,t,ie,X,g),Fe=t.child;return Fe.memoizedState=eb(g),t.memoizedState=Jw,we}else{if(aD(),(t.mode&Lt)===it)return ky(e,t,g,null);if(wS(u)){var w,x,M;{var O=bN(u);w=O.digest,x=O.message,M=O.stack}var B;x?B=new Error(x):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=Hw(B,w,M);return ky(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)}}Cb();var ct=Hw(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 ky(e,t,g,ct)}else if(vE(u)){t.flags|=nt,t.child=e.child;var et=HL.bind(null,e);return xN(u,et),null}else{lD(t,u,p.treeContext);var Xt=o.children,Bt=tb(t,Xt);return Bt.flags|=va,Bt}}}function WT(e,t,i){e.lanes=_t(e.lanes,t);var o=e.alternate;o!==null&&(o.lanes=_t(o.lanes,t)),YS(e.return,t,i)}function y2(e,t,i){for(var o=t;o!==null;){if(o.tag===le){var u=o.memoizedState;u!==null&&WT(o,i,e)}else if(o.tag===Rt)WT(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 S2(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 w2(e){if(e!==void 0&&e!=="forwards"&&e!=="backwards"&&e!=="together"&&!Kw[e])if(Kw[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 b2(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 XT(e,t){{var i=Nt(e),o=!i&&typeof kt(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 x2(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(!XT(e[i],i))return}else{var o=kt(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(!XT(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 rb(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 KT(e,t,i){var o=t.pendingProps,u=o.revealOrder,p=o.tail,g=o.children;w2(u),b2(p,u),x2(g,u),Fa(e,t,g,i);var w=Io.current,x=tw(w,nv);if(x)w=nw(w,nv),t.flags|=nt;else{var M=e!==null&&(e.flags&nt)!==at;M&&y2(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=S2(t.child),B;O===null?(B=t.child,t.child=null):(B=O.sibling,O.sibling=null),rb(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}rb(t,!0,F,null,p);break}case"together":{rb(t,!1,null,null,void 0);break}default:t.memoizedState=null}return t.child}function C2(e,t,i){ZS(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 QT=!1;function E2(e,t,i){var o=t.type,u=o._context,p=t.pendingProps,g=t.memoizedProps,w=p.value;{"value"in p||QT||(QT=!0,v("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var x=t.type.propTypes;x&&Do(x,p,"prop","Context.Provider")}if(HE(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 wD(t,u,i)}var O=p.children;return Fa(e,t,O,i),t.child}var qT=!1;function T2(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|=_i,Fa(e,t,w,i),t.child}function hv(){Fo=!0}function _y(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),RT(),Rv(t.lanes),wa(i,t.childLanes)?(yD(e,t),t.child):null}function R2(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 ab(e,t){var i=e.lanes;return!!wa(i,t)}function M2(e,t,i){switch(t.tag){case k:VT(t),t.stateNode,Vd();break;case N:QE(t);break;case T:{var o=t.type;Ml(o)&&Fg(t);break}case A:ZS(t,t.stateNode.containerInfo);break;case ue:{var u=t.memoizedProps.value,p=t.type._context;HE(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 x=t.memoizedState;if(x!==null){if(x.dehydrated!==null)return Ou(t,Xd(Io.current)),t.flags|=nt,null;var M=t.child,O=M.childLanes;if(wa(i,O))return GT(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 KT(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,jT(e,t,i)}return _s(e,t,i)}function ZT(e,t,i){if(t._debugNeedsRemount&&e!==null)return R2(e,t,Lb(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=ab(e,i);if(!p&&(t.flags&nt)===at)return Fo=!1,M2(e,t,i);(e.flags&Hf)!==at?Fo=!0:Fo=!1}}else if(Fo=!1,ea()&&ZN(t)){var g=t.index,w=JN();RE(t,w,g)}switch(t.lanes=he,t.tag){case _:return s2(e,t,t.type,i);case xe:{var x=t.elementType;return o2(e,t,x,i)}case b:{var M=t.type,O=t.pendingProps,B=t.elementType===M?O:zo(M,O);return Qw(e,t,M,B,i)}case T:{var F=t.type,q=t.pendingProps,te=t.elementType===F?q:zo(F,q);return HT(e,t,F,te,i)}case k:return r2(e,t,i);case N:return a2(e,t,i);case z:return i2(e,t);case le:return GT(e,t,i);case A:return C2(e,t,i);case ce:{var ae=t.type,Le=t.pendingProps,ct=t.elementType===ae?Le:zo(ae,Le);return UT(e,t,ae,ct,i)}case G:return e2(e,t,i);case J:return t2(e,t,i);case fe:return n2(e,t,i);case ue:return E2(e,t,i);case de:return T2(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),zT(e,t,et,Bt,i)}case ve:return FT(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 l2(e,t,ie,we,i)}case Rt:return KT(e,t,i);case lt:break;case Ae:return jT(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 JT(e){e.flags|=zn,e.flags|=cu}var e1,ib,t1,n1;e1=function(e,t,i,o){for(var u=t.child;u!==null;){if(u.tag===N||u.tag===z)KO(e,u.stateNode);else if(u.tag!==A){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}},ib=function(e,t){},t1=function(e,t,i,o,u){var p=e.memoizedProps;if(p!==o){var g=t.stateNode,w=JS(),x=qO(g,i,p,o,u,w);t.updateQueue=x,x&&ep(t)}},n1=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 x=e.selfBaseDuration,M=e.child;M!==null;)i=_t(i,_t(M.lanes,M.childLanes)),o|=M.subtreeFlags&Qn,o|=M.flags&Qn,x+=M.treeBaseDuration,M=M.sibling;e.treeBaseDuration=x}else for(var O=e.child;O!==null;)i=_t(i,_t(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=_t(i,_t(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=_t(i,_t(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 k2(e,t,i){if(dD()&&(t.mode&Lt)!==it&&(t.flags&nt)===at)return DE(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(cD(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 LE(),!0}function r1(e,t,i){var o=t.pendingProps;switch(OS(t),t.tag){case _:case xe:case ve:case b:case ce:case G:case J:case fe:case de:case Re:return na(t),null;case T:{var u=t.type;return Ml(u)&&zg(t),na(t),null}case k:{var p=t.stateNode;if(Wd(t),MS(t),aw(),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,LE())}}return ib(e,t),na(t),null}case N:{ew(t);var x=KE(),M=t.type;if(e!==null&&t.stateNode!=null)t1(e,t,M,o,x),e.ref!==t.ref&&JT(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=JS(),B=$g(t);if(B)sD(t,x,O)&&ep(t);else{var F=XO(M,o,x,O,t);e1(F,t,!1,!1),t.stateNode=F,QO(F,M,o,x)&&ep(t)}t.ref!==null&&JT(t)}return na(t),null}case z:{var q=o;if(e&&t.stateNode!=null){var te=e.memoizedProps;n1(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=KE(),Le=JS(),ct=$g(t);ct?uD(t)&&ep(t):t.stateNode=ZO(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=k2(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||tw(Io.current,ZE)?_L():Cb()}}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 A:return Wd(t),ib(e,t),e===null&&GN(t.stateNode.containerInfo),na(t),null;case ue:var Ie=t.type._context;return GS(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=OL()&&(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,SD(t,i),Ou(t,nw(Io.current,nv)),t.child}rn=rn.sibling}Tt.tail!==null&&ur()>E1()&&(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>E1()&&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 ka=Io.current;return vn?ka=nw(ka,nv):ka=Xd(ka),Ou(t,ka),Va}return na(t),null}case lt:break;case Ae:case rt:{xb(t);var Ls=t.memoizedState,sp=Ls!==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 _2(e,t,i){switch(OS(t),t.tag){case T:{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 k:{t.stateNode,Wd(t),MS(t),aw();var p=t.flags;return(p&hr)!==at&&(p&nt)===at?(t.flags=p&~hr|nt,t):null}case N:return ew(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 A:return Wd(t),null;case ue:var x=t.type._context;return GS(x,t),null;case Ae:case rt:return xb(t),null;case st:return null;default:return null}}function a1(e,t,i){switch(OS(t),t.tag){case T:{var o=t.type.childContextTypes;o!=null&&zg(t);break}case k:{t.stateNode,Wd(t),MS(t),aw();break}case N:{ew(t);break}case A:Wd(t);break;case le:Kd(t);break;case Rt:Kd(t);break;case ue:var u=t.type._context;GS(u,t);break;case Ae:case rt:xb(t);break}}var i1=null;i1=new Set;var Ay=!1,ra=!1,A2=typeof WeakSet=="function"?WeakSet:Set,Xe=null,tp=null,np=null;function O2(e){ul(null,function(){throw e}),cc()}var N2=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 o1(e,t){try{Lu(_r,e)}catch(i){Mn(e,t,i)}}function ob(e,t,i){try{N2(e,i)}catch(o){Mn(e,t,o)}}function D2(e,t,i){try{i.componentDidMount()}catch(o){Mn(e,t,o)}}function l1(e,t){try{u1(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 s1=!1;function L2(e,t){YO(e.containerInfo),Xe=t,P2();var i=s1;return s1=!1,i}function P2(){for(;Xe!==null;){var e=Xe,t=e.child;(e.subtreeFlags&fl)!==at&&t!==null?(t.return=e,Xe=t):I2()}}function I2(){for(;Xe!==null;){var e=Xe;cn(e);try{U2(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 U2(e){var t=e.alternate,i=e.flags;if((i&sr)!==at){switch(cn(e),e.tag){case b:case ce:case ve:break;case T:{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=i1;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 k:{{var x=e.stateNode;gN(x.containerInfo)}break}case N:case z:case A: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&_r)!==ui&&pc(t),(e&kl)!==ui&&kv(!0),Oy(t,i,w),(e&kl)!==ui&&kv(!1),(e&ta)!==ui?vl():(e&_r)!==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&_r)!==ui&&Xf(t);var g=p.create;(e&kl)!==ui&&kv(!0),p.destroy=g(),(e&kl)!==ui&&kv(!1),(e&ta)!==ui?Im():(e&_r)!==ui&&Um();{var w=p.destroy;if(w!==void 0&&typeof w!="function"){var x=void 0;(p.tag&_r)!==at?x="useLayoutEffect":(p.tag&kl)!==at?x="useInsertionEffect":x="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=`
198
+ Check the render method of \``+o+"`.");var u=o||"",p=e._debugSource;p&&(u=p.fileName+":"+p.lineNumber),Xw[u]||(Xw[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";Ww[w]||(v("%s: Function components do not support getDerivedStateFromProps.",w),Ww[w]=!0)}if(typeof t.contextType=="object"&&t.contextType!==null){var b=Kt(t)||"Unknown";Yw[b]||(v("%s: Function components do not support contextType.",b),Yw[b]=!0)}}}var Jw={dehydrated:null,treeContext:null,retryLane:qt};function eb(e){return{baseLanes:e,cachePool:ZD(),transitions:null}}function u2(e,t){var i=null;return{baseLanes:_t(e.baseLanes,t),cachePool:i,transitions:e.transitions}}function c2(e,t,i,o){if(t!==null){var u=t.memoizedState;if(u===null)return!1}return tw(e,nv)}function f2(e,t){return Mc(e.childLanes,t)}function YT(e,t,i){var o=t.pendingProps;wP(t)&&(t.flags|=nt);var u=Io.current,p=!1,g=(t.flags&nt)!==at;if(g||c2(u,e)?(p=!0,t.flags&=~nt):(e===null||e.memoizedState!==null)&&(u=_D(u,JE)),u=Xd(u),Ou(t,u),e===null){PS(t);var w=t.memoizedState;if(w!==null){var b=w.dehydrated;if(b!==null)return m2(t,b)}var M=o.children,O=o.fallback;if(p){var B=d2(t,M,O,i),F=t.child;return F.memoizedState=eb(i),t.memoizedState=Jw,B}else return tb(t,M)}else{var q=e.memoizedState;if(q!==null){var te=q.dehydrated;if(te!==null)return g2(e,t,g,o,te,q,i)}if(p){var ae=o.fallback,Le=o.children,ct=h2(e,t,Le,ae,i),et=t.child,Xt=e.child.memoizedState;return et.memoizedState=Xt===null?eb(i):u2(Xt,i),et.childLanes=f2(e,i),t.memoizedState=Jw,ct}else{var Bt=o.children,W=p2(e,t,Bt,i);return t.memoizedState=null,W}}}function tb(e,t,i){var o=e.mode,u={mode:"visible",children:t},p=nb(u,o);return p.return=e,e.child=p,p}function d2(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=nb(g,u),b=Fu(i,u,o,null)),w.return=e,b.return=e,w.sibling=b,e.child=w,b}function nb(e,t,i){return W1(e,t,he,null)}function WT(e,t){return uf(e,t)}function p2(e,t,i,o){var u=e.child,p=u.sibling,g=WT(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 h2(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=WT(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 ky(e,t,i,o){o!==null&&IS(o),$d(t,e.child,null,i);var u=t.pendingProps,p=u.children,g=tb(t,p);return g.flags|=Dn,t.memoizedState=null,g}function v2(e,t,i,o,u){var p=t.mode,g={mode:"visible",children:i},w=nb(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 m2(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):wS(t)?e.lanes=Br:e.lanes=Sa,null}function g2(e,t,i,o,u,p,g){if(i)if(t.flags&jr){t.flags&=~jr;var W=Hw(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return ky(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=v2(e,t,ie,X,g),Fe=t.child;return Fe.memoizedState=eb(g),t.memoizedState=Jw,we}else{if(aD(),(t.mode&Lt)===it)return ky(e,t,g,null);if(wS(u)){var w,b,M;{var O=bN(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=Hw(B,w,M);return ky(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)}}Cb();var ct=Hw(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 ky(e,t,g,ct)}else if(mE(u)){t.flags|=nt,t.child=e.child;var et=HL.bind(null,e);return xN(u,et),null}else{lD(t,u,p.treeContext);var Xt=o.children,Bt=tb(t,Xt);return Bt.flags|=va,Bt}}}function XT(e,t,i){e.lanes=_t(e.lanes,t);var o=e.alternate;o!==null&&(o.lanes=_t(o.lanes,t)),YS(e.return,t,i)}function y2(e,t,i){for(var o=t;o!==null;){if(o.tag===le){var u=o.memoizedState;u!==null&&XT(o,i,e)}else if(o.tag===Rt)XT(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 S2(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 w2(e){if(e!==void 0&&e!=="forwards"&&e!=="backwards"&&e!=="together"&&!Kw[e])if(Kw[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 b2(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 KT(e,t){{var i=Nt(e),o=!i&&typeof kt(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 x2(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(!KT(e[i],i))return}else{var o=kt(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(!KT(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 rb(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 QT(e,t,i){var o=t.pendingProps,u=o.revealOrder,p=o.tail,g=o.children;w2(u),b2(p,u),x2(g,u),Fa(e,t,g,i);var w=Io.current,b=tw(w,nv);if(b)w=nw(w,nv),t.flags|=nt;else{var M=e!==null&&(e.flags&nt)!==at;M&&y2(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=S2(t.child),B;O===null?(B=t.child,t.child=null):(B=O.sibling,O.sibling=null),rb(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}rb(t,!0,F,null,p);break}case"together":{rb(t,!1,null,null,void 0);break}default:t.memoizedState=null}return t.child}function C2(e,t,i){ZS(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 qT=!1;function E2(e,t,i){var o=t.type,u=o._context,p=t.pendingProps,g=t.memoizedProps,w=p.value;{"value"in p||qT||(qT=!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(VE(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 wD(t,u,i)}var O=p.children;return Fa(e,t,O,i),t.child}var ZT=!1;function T2(e,t,i){var o=t.type;o._context===void 0?o!==o.Consumer&&(ZT||(ZT=!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|=_i,Fa(e,t,w,i),t.child}function hv(){Fo=!0}function _y(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),MT(),Rv(t.lanes),wa(i,t.childLanes)?(yD(e,t),t.child):null}function R2(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 ab(e,t){var i=e.lanes;return!!wa(i,t)}function M2(e,t,i){switch(t.tag){case k:$T(t),t.stateNode,Vd();break;case N:qE(t);break;case R:{var o=t.type;Ml(o)&&Fg(t);break}case _:ZS(t,t.stateNode.containerInfo);break;case ue:{var u=t.memoizedProps.value,p=t.type._context;VE(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 YT(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 QT(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,BT(e,t,i)}return _s(e,t,i)}function JT(e,t,i){if(t._debugNeedsRemount&&e!==null)return R2(e,t,Lb(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=ab(e,i);if(!p&&(t.flags&nt)===at)return Fo=!1,M2(e,t,i);(e.flags&Hf)!==at?Fo=!0:Fo=!1}}else if(Fo=!1,ea()&&ZN(t)){var g=t.index,w=JN();ME(t,w,g)}switch(t.lanes=he,t.tag){case A:return s2(e,t,t.type,i);case xe:{var b=t.elementType;return o2(e,t,b,i)}case x:{var M=t.type,O=t.pendingProps,B=t.elementType===M?O:zo(M,O);return Qw(e,t,M,B,i)}case R:{var F=t.type,q=t.pendingProps,te=t.elementType===F?q:zo(F,q);return VT(e,t,F,te,i)}case k:return r2(e,t,i);case N:return a2(e,t,i);case z:return i2(e,t);case le:return YT(e,t,i);case _:return C2(e,t,i);case ce:{var ae=t.type,Le=t.pendingProps,ct=t.elementType===ae?Le:zo(ae,Le);return zT(e,t,ae,ct,i)}case G:return e2(e,t,i);case J:return t2(e,t,i);case fe:return n2(e,t,i);case ue:return E2(e,t,i);case de:return T2(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),FT(e,t,et,Bt,i)}case ve:return jT(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 l2(e,t,ie,we,i)}case Rt:return QT(e,t,i);case lt:break;case Ae:return BT(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 e1(e){e.flags|=zn,e.flags|=cu}var t1,ib,n1,r1;t1=function(e,t,i,o){for(var u=t.child;u!==null;){if(u.tag===N||u.tag===z)KO(e,u.stateNode);else if(u.tag!==_){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}},ib=function(e,t){},n1=function(e,t,i,o,u){var p=e.memoizedProps;if(p!==o){var g=t.stateNode,w=JS(),b=qO(g,i,p,o,u,w);t.updateQueue=b,b&&ep(t)}},r1=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=_t(i,_t(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=_t(i,_t(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=_t(i,_t(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=_t(i,_t(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 k2(e,t,i){if(dD()&&(t.mode&Lt)!==it&&(t.flags&nt)===at)return LE(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(cD(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 PE(),!0}function a1(e,t,i){var o=t.pendingProps;switch(OS(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 k:{var p=t.stateNode;if(Wd(t),MS(t),aw(),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,PE())}}return ib(e,t),na(t),null}case N:{ew(t);var b=QE(),M=t.type;if(e!==null&&t.stateNode!=null)n1(e,t,M,o,b),e.ref!==t.ref&&e1(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=JS(),B=$g(t);if(B)sD(t,b,O)&&ep(t);else{var F=XO(M,o,b,O,t);t1(F,t,!1,!1),t.stateNode=F,QO(F,M,o,b)&&ep(t)}t.ref!==null&&e1(t)}return na(t),null}case z:{var q=o;if(e&&t.stateNode!=null){var te=e.memoizedProps;r1(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=QE(),Le=JS(),ct=$g(t);ct?uD(t)&&ep(t):t.stateNode=ZO(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=k2(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||tw(Io.current,JE)?_L():Cb()}}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 _:return Wd(t),ib(e,t),e===null&&GN(t.stateNode.containerInfo),na(t),null;case ue:var Ie=t.type._context;return GS(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=OL()&&(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,SD(t,i),Ou(t,nw(Io.current,nv)),t.child}rn=rn.sibling}Tt.tail!==null&&ur()>T1()&&(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>T1()&&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 ka=Io.current;return vn?ka=nw(ka,nv):ka=Xd(ka),Ou(t,ka),Va}return na(t),null}case lt:break;case Ae:case rt:{xb(t);var Ls=t.memoizedState,sp=Ls!==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 _2(e,t,i){switch(OS(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 k:{t.stateNode,Wd(t),MS(t),aw();var p=t.flags;return(p&hr)!==at&&(p&nt)===at?(t.flags=p&~hr|nt,t):null}case N:return ew(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 _:return Wd(t),null;case ue:var b=t.type._context;return GS(b,t),null;case Ae:case rt:return xb(t),null;case st:return null;default:return null}}function i1(e,t,i){switch(OS(t),t.tag){case R:{var o=t.type.childContextTypes;o!=null&&zg(t);break}case k:{t.stateNode,Wd(t),MS(t),aw();break}case N:{ew(t);break}case _:Wd(t);break;case le:Kd(t);break;case Rt:Kd(t);break;case ue:var u=t.type._context;GS(u,t);break;case Ae:case rt:xb(t);break}}var o1=null;o1=new Set;var Ay=!1,ra=!1,A2=typeof WeakSet=="function"?WeakSet:Set,Xe=null,tp=null,np=null;function O2(e){ul(null,function(){throw e}),cc()}var N2=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 l1(e,t){try{Lu(_r,e)}catch(i){Mn(e,t,i)}}function ob(e,t,i){try{N2(e,i)}catch(o){Mn(e,t,o)}}function D2(e,t,i){try{i.componentDidMount()}catch(o){Mn(e,t,o)}}function s1(e,t){try{c1(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 u1=!1;function L2(e,t){YO(e.containerInfo),Xe=t,P2();var i=u1;return u1=!1,i}function P2(){for(;Xe!==null;){var e=Xe,t=e.child;(e.subtreeFlags&fl)!==at&&t!==null?(t.return=e,Xe=t):I2()}}function I2(){for(;Xe!==null;){var e=Xe;cn(e);try{U2(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 U2(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=o1;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 k:{{var b=e.stateNode;gN(b.containerInfo)}break}case N:case z:case _: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&_r)!==ui&&pc(t),(e&kl)!==ui&&kv(!0),Oy(t,i,w),(e&kl)!==ui&&kv(!1),(e&ta)!==ui?vl():(e&_r)!==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&_r)!==ui&&Xf(t);var g=p.create;(e&kl)!==ui&&kv(!0),p.destroy=g(),(e&kl)!==ui&&kv(!1),(e&ta)!==ui?Im():(e&_r)!==ui&&Um();{var w=p.destroy;if(w!==void 0&&typeof w!="function"){var b=void 0;(p.tag&_r)!==at?b="useLayoutEffect":(p.tag&kl)!==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
199
 
200
- It looks like you wrote `+x+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
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
201
 
202
- `+x+`(() => {
202
+ `+b+`(() => {
203
203
  async function fetchData() {
204
204
  // You can await here
205
205
  const response = await MyAPI.getData(someId);
@@ -208,11 +208,11 @@ It looks like you wrote `+x+`(async () => ...) or returned a Promise. Instead, w
208
208
  fetchData();
209
209
  }, [someId]); // Or [] if effect doesn't need props or state
210
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",x,M)}}}p=p.next}while(p!==u)}}function z2(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=ET(),w=t.alternate===null?"mount":"update";CT()&&(w="nested-update"),typeof p=="function"&&p(u,w,i,g);var x=t.return;e:for(;x!==null;){switch(x.tag){case k:var M=x.stateNode;M.passiveEffectDuration+=i;break e;case fe:var O=x.stateNode;O.passiveEffectDuration+=i;break e}x=x.return}break}}}function F2(e,t,i,o){if((i.flags&pl)!==at)switch(i.tag){case b:case ce:case ve:{if(!ra)if(i.mode&Jt)try{Nl(),Lu(_r|kr,i)}finally{Ol(i)}else Lu(_r|kr,i);break}case T:{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")),XE(i,w,u));break}case k:{var x=i.updateQueue;if(x!==null){var M=null;if(i.child!==null)switch(i.child.tag){case N:M=i.child.stateNode;break;case T:M=i.child.stateNode;break}XE(i,x,M)}break}case N:{var O=i.stateNode;if(t===null&&i.flags&Gt){var B=i.type,F=i.memoizedProps;rN(O,B,F)}break}case z:break;case A:break;case fe:{{var q=i.memoizedProps,te=q.onCommit,ae=q.onRender,Le=i.stateNode.effectDuration,ct=ET(),et=t===null?"mount":"update";CT()&&(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),IL(i);var Xt=i.return;e:for(;Xt!==null;){switch(Xt.tag){case k: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:{W2(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&&u1(i)}function j2(e){switch(e.tag){case b:case ce:case ve:{if(e.mode&Jt)try{Nl(),o1(e,e.return)}finally{Ol(e)}else o1(e,e.return);break}case T:{var t=e.stateNode;typeof t.componentDidMount=="function"&&D2(e,e.return,t),l1(e,e.return);break}case N:{l1(e,e.return);break}}}function B2(e,t){for(var i=null,o=e;;){if(o.tag===N){if(i===null){i=o;try{var u=o.stateNode;t?pN(u):vN(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?hN(p):mN(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 u1(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 H2(e){var t=e.alternate;t!==null&&(t.return=null),e.return=null}function c1(e){var t=e.alternate;t!==null&&(e.alternate=null,c1(t));{if(e.child=null,e.deletions=null,e.sibling=null,e.tag===N){var i=e.stateNode;i!==null&&XN(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 V2(e){for(var t=e.return;t!==null;){if(f1(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 f1(e){return e.tag===N||e.tag===k||e.tag===A}function d1(e){var t=e;e:for(;;){for(;t.sibling===null;){if(t.return===null||f1(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===A)continue e;t.child.return=t,t=t.child}if(!(t.flags&Dn))return t.stateNode}}function $2(e){var t=V2(e);switch(t.tag){case N:{var i=t.stateNode;t.flags&Ja&&(hE(i),t.flags&=~Ja);var o=d1(e);sb(e,o,i);break}case k:case A:{var u=t.stateNode.containerInfo,p=d1(e);lb(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 lb(e,t,i){var o=e.tag,u=o===N||o===z;if(u){var p=e.stateNode;t?uN(i,p,t):lN(i,p)}else if(o!==A){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}}}function sb(e,t,i){var o=e.tag,u=o===N||o===z;if(u){var p=e.stateNode;t?sN(i,p,t):oN(i,p)}else if(o!==A){var g=e.child;if(g!==null){sb(g,t,i);for(var w=g.sibling;w!==null;)sb(w,t,i),w=w.sibling}}}var aa=null,Bo=!1;function G2(e,t,i){{var o=t;e:for(;o!==null;){switch(o.tag){case N:{aa=o.stateNode,Bo=!1;break e}case k:{aa=o.stateNode.containerInfo,Bo=!0;break e}case A:{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.");p1(e,t,i),aa=null,Bo=!1}H2(i)}function Pu(e,t,i){for(var o=i.child;o!==null;)p1(e,t,o),o=o.sibling}function p1(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?fN(aa,i.stateNode):cN(aa,i.stateNode))}return}case dt:{aa!==null&&(Bo?dN(aa,i.stateNode):SS(aa,i.stateNode));return}case A:{{var p=aa,g=Bo;aa=i.stateNode.containerInfo,Bo=!0,Pu(e,t,i),aa=p,Bo=g}return}case b:case ce:case Re:case ve:{if(!ra){var w=i.updateQueue;if(w!==null){var x=w.lastEffect;if(x!==null){var M=x.next,O=M;do{var B=O,F=B.destroy,q=B.tag;F!==void 0&&((q&kl)!==ui?Oy(i,t,F):(q&_r)!==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 T:{if(!ra){rp(i,t);var te=i.stateNode;typeof te.componentWillUnmount=="function"&&ob(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 Y2(e){e.memoizedState}function W2(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&&ON(p)}}}}function h1(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var i=e.stateNode;i===null&&(i=e.stateNode=new A2),t.forEach(function(o){var u=VL.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 X2(e,t,i){tp=i,np=e,cn(t),v1(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{G2(e,t,p)}catch(x){Mn(p,t,x)}}var g=nl();if(t.subtreeFlags&dl)for(var w=t.child;w!==null;)cn(w),v1(w,e),w=w.sibling;cn(g)}function v1(e,t,i){var o=e.alternate,u=e.flags;switch(e.tag){case b:case ce:case Re:case ve:{if(Ho(t,e),Dl(e),u&Gt){try{jo(kl|kr,e,e.return),Lu(kl|kr,e)}catch(mt){Mn(e,e.return,mt)}if(e.mode&Jt){try{Nl(),jo(_r|kr,e,e.return)}catch(mt){Mn(e,e.return,mt)}Ol(e)}else try{jo(_r|kr,e,e.return)}catch(mt){Mn(e,e.return,mt)}}return}case T:{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{hE(p)}catch(mt){Mn(e,e.return,mt)}}if(u&Gt){var g=e.stateNode;if(g!=null){var w=e.memoizedProps,x=o!==null?o.memoizedProps:w,M=e.type,O=e.updateQueue;if(e.updateQueue=null,O!==null)try{aN(g,O,M,x,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{iN(B,q,F)}catch(mt){Mn(e,e.return,mt)}}return}case k:{if(Ho(t,e),Dl(e),u&Gt&&o!==null){var te=o.memoizedState;if(te.isDehydrated)try{AN(t.containerInfo)}catch(mt){Mn(e,e.return,mt)}}return}case A:{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||kL()}}if(u&Gt){try{Y2(e)}catch(mt){Mn(e,e.return,mt)}h1(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,Q2(Ie),Ie=Ie.sibling}B2(Fe,we)}return}case Rt:{Ho(t,e),Dl(e),u&Gt&&h1(e);return}case lt:return;default:{Ho(t,e),Dl(e);return}}}function Dl(e){var t=e.flags;if(t&Dn){try{$2(e)}catch(i){Mn(e,e.return,i)}e.flags&=~Dn}t&va&&(e.flags&=~va)}function K2(e,t,i){tp=i,np=t,Xe=e,m1(e,t,i),tp=null,np=null}function m1(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){ub(e,t,i);continue}else{var x=u.alternate,M=x!==null&&x.memoizedState!==null,O=M||ra,B=Ay,F=ra;Ay=w,ra=O,ra&&!F&&(Xe=u,q2(u));for(var q=p;q!==null;)Xe=q,m1(q,t,i),q=q.sibling;Xe=u,Ay=B,ra=F,ub(e,t,i);continue}}(u.subtreeFlags&pl)!==at&&p!==null?(p.return=u,Xe=p):ub(e,t,i)}}function ub(e,t,i){for(;Xe!==null;){var o=Xe;if((o.flags&pl)!==at){var u=o.alternate;cn(o);try{F2(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 Q2(e){for(;Xe!==null;){var t=Xe,i=t.child;switch(t.tag){case b:case ce:case Re:case ve:{if(t.mode&Jt)try{Nl(),jo(_r,t,t.return)}finally{Ol(t)}else jo(_r,t,t.return);break}case T:{rp(t,t.return);var o=t.stateNode;typeof o.componentWillUnmount=="function"&&ob(t,t.return,o);break}case N:{rp(t,t.return);break}case Ae:{var u=t.memoizedState!==null;if(u){g1(e);continue}break}}i!==null?(i.return=t,Xe=i):g1(e)}}function g1(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 q2(e){for(;Xe!==null;){var t=Xe,i=t.child;if(t.tag===Ae){var o=t.memoizedState!==null;if(o){y1(e);continue}}i!==null?(i.return=t,Xe=i):y1(e)}}function y1(e){for(;Xe!==null;){var t=Xe;cn(t);try{j2(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 Z2(e,t,i,o){Xe=t,J2(t,e,i,o)}function J2(e,t,i,o){for(;Xe!==null;){var u=Xe,p=u.child;(u.subtreeFlags&To)!==at&&p!==null?(p.return=u,Xe=p):eL(e,t,i,o)}}function eL(e,t,i,o){for(;Xe!==null;){var u=Xe;if((u.flags&ha)!==at){cn(u);try{tL(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 tL(e,t,i,o){switch(t.tag){case b:case ce:case ve:{if(t.mode&Jt){kw();try{Lu(ta|kr,t)}finally{Mw(t)}}else Lu(ta|kr,t);break}}}function nL(e){Xe=e,rL()}function rL(){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,oL(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):aL()}}function aL(){for(;Xe!==null;){var e=Xe;(e.flags&ha)!==at&&(cn(e),iL(e),Rn());var t=e.sibling;if(t!==null){t.return=e.return,Xe=t;return}Xe=e.return}}function iL(e){switch(e.tag){case b:case ce:case ve:{e.mode&Jt?(kw(),jo(ta|kr,e,e.return),Mw(e)):jo(ta|kr,e,e.return);break}}}function oL(e,t){for(;Xe!==null;){var i=Xe;cn(i),sL(i,t),Rn();var o=i.child;o!==null?(o.return=i,Xe=o):lL(e)}}function lL(e){for(;Xe!==null;){var t=Xe,i=t.sibling,o=t.return;if(c1(t),t===e){Xe=null;return}if(i!==null){i.return=o,Xe=i;return}Xe=o}}function sL(e,t){switch(e.tag){case b:case ce:case ve:{e.mode&Jt?(kw(),jo(ta,e,t),Mw(e)):jo(ta,e,t);break}}}function uL(e){switch(e.tag){case b:case ce:case ve:{try{Lu(_r|kr,e)}catch(i){Mn(e,e.return,i)}break}case T:{var t=e.stateNode;try{t.componentDidMount()}catch(i){Mn(e,e.return,i)}break}}}function cL(e){switch(e.tag){case b:case ce:case ve:{try{Lu(ta|kr,e)}catch(t){Mn(e,e.return,t)}break}}}function fL(e){switch(e.tag){case b:case ce:case ve:{try{jo(_r|kr,e,e.return)}catch(i){Mn(e,e.return,i)}break}case T:{var t=e.stateNode;typeof t.componentWillUnmount=="function"&&ob(e,e.return,t);break}}}function dL(e){switch(e.tag){case b:case ce:case ve:try{jo(ta|kr,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 pL=[];function hL(){pL.forEach(function(e){return e()})}var vL=l.ReactCurrentActQueue;function mL(e){{var t=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,i=typeof jest<"u";return i&&t!==!1}}function S1(){{var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return!e&&vL.current!==null&&v("The current testing environment is not configured to support act(...)"),e}}var gL=Math.ceil,cb=l.ReactCurrentDispatcher,fb=l.ReactCurrentOwner,ia=l.ReactCurrentBatchConfig,Vo=l.ReactCurrentActQueue,Nr=0,w1=1,oa=2,fo=4,As=0,gv=1,af=2,Ny=3,yv=4,b1=5,db=6,Wt=Nr,ja=null,Yn=null,Dr=he,Ll=he,pb=Tu(he),Lr=As,Sv=null,Dy=he,wv=he,Ly=he,bv=null,ci=null,hb=0,x1=500,C1=1/0,yL=500,Os=null;function xv(){C1=ur()+yL}function E1(){return C1}var Py=!1,vb=null,ap=null,of=!1,Iu=null,Cv=he,mb=[],gb=null,SL=50,Ev=0,yb=null,Sb=!1,Iy=!1,wL=50,ip=0,Uy=null,Tv=mn,zy=he,T1=!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=vD()!==hD;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=JO();return p}function bL(e){var t=e.mode;return(t&Lt)===it?vt:Vm()}function Pr(e,t,i,o){GL(),T1&&v("useInsertionEffect must not schedule updates."),Sb&&(Iy=!0),hu(e,i,o),(Wt&oa)!==he&&e===ja?XL(t):(ya&&_c(e,t,i),KL(t),e===ja&&((Wt&oa)===Nr&&(wv=_t(wv,i)),Lr===yv&&zu(e,Dr)),fi(e,o),i===vt&&Wt===Nr&&(t.mode&Lt)===it&&!Vo.isBatchingLegacy&&(xv(),TE()))}function xL(e,t,i){var o=e.current;o.lanes=t,hu(e,t,i),fi(e,i)}function CL(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&&B1(i),e.callbackNode=null,e.callbackPriority=qt;return}var u=yl(o),p=e.callbackPriority;if(p===u&&!(Vo.current!==null&&i!==Rb)){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&&B1(i);var g;if(u===vt)e.tag===Ru?(Vo.isBatchingLegacy!==null&&(Vo.didScheduleLegacyUpdate=!0),qN(k1.bind(null,e))):EE(k1.bind(null,e)),Vo.current!==null?Vo.current.push(Mu):tN(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=as;break;default:w=Ro;break}g=Mb(w,R1.bind(null,e))}e.callbackPriority=u,e.callbackNode=g}function R1(e,t){if(BD(),Tv=mn,zy=he,(Wt&(oa|fo))!==Nr)throw new Error("Should not already be working.");var i=e.callbackNode,o=Ds();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?DL(e,u):By(e,u);if(g!==As){if(g===af){var w=vd(e);w!==he&&(u=w,g=wb(e,w))}if(g===gv){var x=Sv;throw lf(e,he),zu(e,u),fi(e,ur()),x}if(g===db)zu(e,u);else{var M=!md(e,u),O=e.current.alternate;if(M&&!TL(O)){if(g=By(e,u),g===af){var B=vd(e);B!==he&&(u=B,g=wb(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,EL(e,g,u)}}return fi(e,ur()),e.callbackNode===i?R1.bind(null,e):null}function wb(e,t){var i=bv;if(Sd(e)){var o=lf(e,t);o.flags|=jr,$N(e.containerInfo)}var u=By(e,t);if(u!==af){var p=ci;ci=i,p!==null&&M1(p)}return u}function M1(e){ci===null?ci=e:ci.push.apply(ci,e)}function EL(e,t,i){switch(t){case As:case gv:throw new Error("Root did not complete. This is a bug in React.");case af:{sf(e,ci,Os);break}case Ny:{if(zu(e,i),vs(i)&&!H1()){var o=hb+x1-ur();if(o>10){var u=pd(e,he);if(u!==he)break;var p=e.suspendedLanes;if(!ms(p,i)){Ba(),gd(e,p);break}e.timeoutHandle=gS(sf.bind(null,e,ci,Os),o);break}}sf(e,ci,Os);break}case yv:{if(zu(e,i),fh(i))break;if(!H1()){var g=Oi(e,i),w=g,x=ur()-w,M=$L(x)-x;if(M>10){e.timeoutHandle=gS(sf.bind(null,e,ci,Os),M);break}}sf(e,ci,Os);break}case b1:{sf(e,ci,Os);break}default:throw new Error("Unknown root exit status.")}}function TL(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 x=t.child;if(t.subtreeFlags&uu&&x!==null){x.return=t,t=x;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 k1(e){if(HD(),(Wt&(oa|fo))!==Nr)throw new Error("Should not already be working.");Ds();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=wb(e,o))}if(i===gv){var u=Sv;throw lf(e,he),zu(e,t),fi(e,ur()),u}if(i===db)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,Os),fi(e,ur()),null}function RL(e,t){t!==he&&(yd(e,_t(t,vt)),fi(e,ur()),(Wt&(oa|fo))===Nr&&(xv(),Mu()))}function bb(e,t){var i=Wt;Wt|=w1;try{return e(t)}finally{Wt=i,Wt===Nr&&!Vo.isBatchingLegacy&&(xv(),TE())}}function ML(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 Ns(e){Iu!==null&&Iu.tag===Ru&&(Wt&(oa|fo))===Nr&&Ds();var t=Wt;Wt|=w1;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(pb,Ll,e),Ll=_t(Ll,t)}function xb(e){Ll=pb.current,Ea(pb,e)}function lf(e,t){e.finishedWork=null,e.finishedLanes=he;var i=e.timeoutHandle;if(i!==yS&&(e.timeoutHandle=yS,eN(i)),Yn!==null)for(var o=Yn.return;o!==null;){var u=o.alternate;a1(u,o),o=o.return}ja=e;var p=uf(e.current,null);return Yn=p,Dr=Ll=t,Lr=As,Sv=null,Dy=he,wv=he,Ly=he,bv=null,ci=null,xD(),Po.discardPendingWarnings(),p}function A1(e,t){do{var i=Yn;try{if(Qg(),eT(),Rn(),fb.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);qD(e,i.return,i,t,Dr),L1(i)}catch(u){t=u,Yn===i&&i!==null?(i=i.return,Yn=i):i=Yn;continue}return}while(!0)}function O1(){var e=cb.current;return cb.current=wy,e===null?wy:e}function N1(e){cb.current=e}function kL(){hb=ur()}function Rv(e){Dy=_t(e,Dy)}function _L(){Lr===As&&(Lr=Ny)}function Cb(){(Lr===As||Lr===Ny||Lr===af)&&(Lr=yv),ja!==null&&(Tc(Dy)||Tc(wv))&&zu(ja,Dr)}function AL(e){Lr!==yv&&(Lr=af),bv===null?bv=[e]:bv.push(e)}function OL(){return Lr===As}function By(e,t){var i=Wt;Wt|=oa;var o=O1();if(ja!==e||Dr!==t){if(ya){var u=e.memoizedUpdaters;u.size>0&&(Mv(e,Dr),u.clear()),Wm(e,t)}Os=gh(),lf(e,t)}ss(t);do try{NL();break}catch(p){A1(e,p)}while(!0);if(Qg(),Wt=i,N1(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 NL(){for(;Yn!==null;)D1(Yn)}function DL(e,t){var i=Wt;Wt|=oa;var o=O1();if(ja!==e||Dr!==t){if(ya){var u=e.memoizedUpdaters;u.size>0&&(Mv(e,Dr),u.clear()),Wm(e,t)}Os=gh(),xv(),lf(e,t)}ss(t);do try{LL();break}catch(p){A1(e,p)}while(!0);return Qg(),N1(o),Wt=i,Yn!==null?(zm(),As):(Kf(),ja=null,Dr=he,Lr)}function LL(){for(;Yn!==null&&!Qp();)D1(Yn)}function D1(e){var t=e.alternate;cn(e);var i;(e.mode&Jt)!==it?(Rw(e),i=Eb(t,e,Ll),Ty(e,!0)):i=Eb(t,e,Ll),Rn(),e.memoizedProps=e.pendingProps,i===null?L1(e):Yn=i,fb.current=null}function L1(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=r1(i,t,Ll):(Rw(t),u=r1(i,t,Ll),Ty(t,!1)),Rn(),u!==null){Yn=u;return}}else{var p=_2(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=db,Yn=null;return}}var x=t.sibling;if(x!==null){Yn=x;return}t=o,Yn=t}while(t!==null);Lr===As&&(Lr=b1)}function sf(e,t,i){var o=ii(),u=ia.transition;try{ia.transition=null,Jn(Kr),PL(e,t,i,o)}finally{ia.transition=u,Jn(o)}return null}function PL(e,t,i,o){do Ds();while(Iu!==null);if(YL(),(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=_t(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,gb=i,Mb(Ro,function(){return Ds(),null})));var w=(u.subtreeFlags&(fl|dl|pl|To))!==at,x=(u.flags&(fl|dl|pl|To))!==at;if(w||x){var M=ia.transition;ia.transition=null;var O=ii();Jn(Kr);var B=Wt;Wt|=fo,fb.current=null,L2(e,u),TT(),X2(e,u,p),WO(e.containerInfo),e.current=u,vc(p),K2(u,e,p),mc(),qp(),Wt=B,Jn(O),ia.transition=M}else e.current=u,TT();var F=of;if(of?(of=!1,Iu=e,Cv=p):(ip=0,Uy=null),g=e.pendingLanes,g===he&&(ap=null),F||z1(e.current,!1),Jp(u.stateNode,o),ya&&e.memoizedUpdaters.clear(),hL(),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=vb;throw vb=null,et}return wa(Cv,vt)&&e.tag!==Ru&&Ds(),g=e.pendingLanes,wa(g,vt)?(jD(),e===yb?Ev++:(Ev=0,yb=e)):Ev=0,Mu(),rh(),null}function Ds(){if(Iu!==null){var e=Qm(Cv),t=Oc(ri,e),i=ia.transition,o=ii();try{return ia.transition=null,Jn(t),UL()}finally{Jn(o),ia.transition=i}}return!1}function IL(e){mb.push(e),of||(of=!0,Mb(Ro,function(){return Ds(),null}))}function UL(){if(Iu===null)return!1;var e=gb;gb=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.");Sb=!0,Iy=!1,ls(i);var o=Wt;Wt|=fo,nL(t.current),Z2(t,t.current,i,e);{var u=mb;mb=[];for(var p=0;p<u.length;p++){var g=u[p];z2(t,g)}}oh(),z1(t.current,!0),Wt=o,Mu(),Iy?t===Uy?ip++:(ip=0,Uy=t):ip=0,Sb=!1,Iy=!1,eh(t);{var w=t.current.stateNode;w.effectDuration=0,w.passiveEffectDuration=0}return!0}function P1(e){return ap!==null&&ap.has(e)}function zL(e){ap===null?ap=new Set([e]):ap.add(e)}function FL(e){Py||(Py=!0,vb=e)}var jL=FL;function I1(e,t,i){var o=nf(i,t),u=DT(e,o,vt),p=_u(e,u,vt),g=Ba();p!==null&&(hu(p,vt,g),fi(p,g))}function Mn(e,t,i){if(O2(i),kv(!1),e.tag===k){I1(e,e,i);return}var o=null;for(o=t;o!==null;){if(o.tag===k){I1(o,e,i);return}else if(o.tag===T){var u=o.type,p=o.stateNode;if(typeof u.getDerivedStateFromError=="function"||typeof p.componentDidCatch=="function"&&!P1(p)){var g=nf(i,e),w=$w(o,g,vt),x=_u(o,w,vt),M=Ba();x!==null&&(hu(x,vt,M),fi(x,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.
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 z2(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=TT(),w=t.alternate===null?"mount":"update";ET()&&(w="nested-update"),typeof p=="function"&&p(u,w,i,g);var b=t.return;e:for(;b!==null;){switch(b.tag){case k: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 F2(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(_r|kr,i)}finally{Ol(i)}else Lu(_r|kr,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")),KE(i,w,u));break}case k:{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}KE(i,b,M)}break}case N:{var O=i.stateNode;if(t===null&&i.flags&Gt){var B=i.type,F=i.memoizedProps;rN(O,B,F)}break}case z:break;case _:break;case fe:{{var q=i.memoizedProps,te=q.onCommit,ae=q.onRender,Le=i.stateNode.effectDuration,ct=TT(),et=t===null?"mount":"update";ET()&&(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),IL(i);var Xt=i.return;e:for(;Xt!==null;){switch(Xt.tag){case k: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:{W2(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&&c1(i)}function j2(e){switch(e.tag){case x:case ce:case ve:{if(e.mode&Jt)try{Nl(),l1(e,e.return)}finally{Ol(e)}else l1(e,e.return);break}case R:{var t=e.stateNode;typeof t.componentDidMount=="function"&&D2(e,e.return,t),s1(e,e.return);break}case N:{s1(e,e.return);break}}}function B2(e,t){for(var i=null,o=e;;){if(o.tag===N){if(i===null){i=o;try{var u=o.stateNode;t?pN(u):vN(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?hN(p):mN(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 c1(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 H2(e){var t=e.alternate;t!==null&&(t.return=null),e.return=null}function f1(e){var t=e.alternate;t!==null&&(e.alternate=null,f1(t));{if(e.child=null,e.deletions=null,e.sibling=null,e.tag===N){var i=e.stateNode;i!==null&&XN(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 V2(e){for(var t=e.return;t!==null;){if(d1(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 d1(e){return e.tag===N||e.tag===k||e.tag===_}function p1(e){var t=e;e:for(;;){for(;t.sibling===null;){if(t.return===null||d1(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===_)continue e;t.child.return=t,t=t.child}if(!(t.flags&Dn))return t.stateNode}}function $2(e){var t=V2(e);switch(t.tag){case N:{var i=t.stateNode;t.flags&Ja&&(vE(i),t.flags&=~Ja);var o=p1(e);sb(e,o,i);break}case k:case _:{var u=t.stateNode.containerInfo,p=p1(e);lb(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 lb(e,t,i){var o=e.tag,u=o===N||o===z;if(u){var p=e.stateNode;t?uN(i,p,t):lN(i,p)}else if(o!==_){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}}}function sb(e,t,i){var o=e.tag,u=o===N||o===z;if(u){var p=e.stateNode;t?sN(i,p,t):oN(i,p)}else if(o!==_){var g=e.child;if(g!==null){sb(g,t,i);for(var w=g.sibling;w!==null;)sb(w,t,i),w=w.sibling}}}var aa=null,Bo=!1;function G2(e,t,i){{var o=t;e:for(;o!==null;){switch(o.tag){case N:{aa=o.stateNode,Bo=!1;break e}case k:{aa=o.stateNode.containerInfo,Bo=!0;break e}case _:{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.");h1(e,t,i),aa=null,Bo=!1}H2(i)}function Pu(e,t,i){for(var o=i.child;o!==null;)h1(e,t,o),o=o.sibling}function h1(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?fN(aa,i.stateNode):cN(aa,i.stateNode))}return}case dt:{aa!==null&&(Bo?dN(aa,i.stateNode):SS(aa,i.stateNode));return}case _:{{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&kl)!==ui?Oy(i,t,F):(q&_r)!==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"&&ob(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 Y2(e){e.memoizedState}function W2(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&&ON(p)}}}}function v1(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var i=e.stateNode;i===null&&(i=e.stateNode=new A2),t.forEach(function(o){var u=VL.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 X2(e,t,i){tp=i,np=e,cn(t),m1(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{G2(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),m1(w,e),w=w.sibling;cn(g)}function m1(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(kl|kr,e,e.return),Lu(kl|kr,e)}catch(mt){Mn(e,e.return,mt)}if(e.mode&Jt){try{Nl(),jo(_r|kr,e,e.return)}catch(mt){Mn(e,e.return,mt)}Ol(e)}else try{jo(_r|kr,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{vE(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{aN(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{iN(B,q,F)}catch(mt){Mn(e,e.return,mt)}}return}case k:{if(Ho(t,e),Dl(e),u&Gt&&o!==null){var te=o.memoizedState;if(te.isDehydrated)try{AN(t.containerInfo)}catch(mt){Mn(e,e.return,mt)}}return}case _:{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||kL()}}if(u&Gt){try{Y2(e)}catch(mt){Mn(e,e.return,mt)}v1(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,Q2(Ie),Ie=Ie.sibling}B2(Fe,we)}return}case Rt:{Ho(t,e),Dl(e),u&Gt&&v1(e);return}case lt:return;default:{Ho(t,e),Dl(e);return}}}function Dl(e){var t=e.flags;if(t&Dn){try{$2(e)}catch(i){Mn(e,e.return,i)}e.flags&=~Dn}t&va&&(e.flags&=~va)}function K2(e,t,i){tp=i,np=t,Xe=e,g1(e,t,i),tp=null,np=null}function g1(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){ub(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,q2(u));for(var q=p;q!==null;)Xe=q,g1(q,t,i),q=q.sibling;Xe=u,Ay=B,ra=F,ub(e,t,i);continue}}(u.subtreeFlags&pl)!==at&&p!==null?(p.return=u,Xe=p):ub(e,t,i)}}function ub(e,t,i){for(;Xe!==null;){var o=Xe;if((o.flags&pl)!==at){var u=o.alternate;cn(o);try{F2(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 Q2(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(_r,t,t.return)}finally{Ol(t)}else jo(_r,t,t.return);break}case R:{rp(t,t.return);var o=t.stateNode;typeof o.componentWillUnmount=="function"&&ob(t,t.return,o);break}case N:{rp(t,t.return);break}case Ae:{var u=t.memoizedState!==null;if(u){y1(e);continue}break}}i!==null?(i.return=t,Xe=i):y1(e)}}function y1(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 q2(e){for(;Xe!==null;){var t=Xe,i=t.child;if(t.tag===Ae){var o=t.memoizedState!==null;if(o){S1(e);continue}}i!==null?(i.return=t,Xe=i):S1(e)}}function S1(e){for(;Xe!==null;){var t=Xe;cn(t);try{j2(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 Z2(e,t,i,o){Xe=t,J2(t,e,i,o)}function J2(e,t,i,o){for(;Xe!==null;){var u=Xe,p=u.child;(u.subtreeFlags&To)!==at&&p!==null?(p.return=u,Xe=p):eL(e,t,i,o)}}function eL(e,t,i,o){for(;Xe!==null;){var u=Xe;if((u.flags&ha)!==at){cn(u);try{tL(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 tL(e,t,i,o){switch(t.tag){case x:case ce:case ve:{if(t.mode&Jt){kw();try{Lu(ta|kr,t)}finally{Mw(t)}}else Lu(ta|kr,t);break}}}function nL(e){Xe=e,rL()}function rL(){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,oL(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):aL()}}function aL(){for(;Xe!==null;){var e=Xe;(e.flags&ha)!==at&&(cn(e),iL(e),Rn());var t=e.sibling;if(t!==null){t.return=e.return,Xe=t;return}Xe=e.return}}function iL(e){switch(e.tag){case x:case ce:case ve:{e.mode&Jt?(kw(),jo(ta|kr,e,e.return),Mw(e)):jo(ta|kr,e,e.return);break}}}function oL(e,t){for(;Xe!==null;){var i=Xe;cn(i),sL(i,t),Rn();var o=i.child;o!==null?(o.return=i,Xe=o):lL(e)}}function lL(e){for(;Xe!==null;){var t=Xe,i=t.sibling,o=t.return;if(f1(t),t===e){Xe=null;return}if(i!==null){i.return=o,Xe=i;return}Xe=o}}function sL(e,t){switch(e.tag){case x:case ce:case ve:{e.mode&Jt?(kw(),jo(ta,e,t),Mw(e)):jo(ta,e,t);break}}}function uL(e){switch(e.tag){case x:case ce:case ve:{try{Lu(_r|kr,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 cL(e){switch(e.tag){case x:case ce:case ve:{try{Lu(ta|kr,e)}catch(t){Mn(e,e.return,t)}break}}}function fL(e){switch(e.tag){case x:case ce:case ve:{try{jo(_r|kr,e,e.return)}catch(i){Mn(e,e.return,i)}break}case R:{var t=e.stateNode;typeof t.componentWillUnmount=="function"&&ob(e,e.return,t);break}}}function dL(e){switch(e.tag){case x:case ce:case ve:try{jo(ta|kr,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 pL=[];function hL(){pL.forEach(function(e){return e()})}var vL=l.ReactCurrentActQueue;function mL(e){{var t=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,i=typeof jest<"u";return i&&t!==!1}}function w1(){{var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return!e&&vL.current!==null&&v("The current testing environment is not configured to support act(...)"),e}}var gL=Math.ceil,cb=l.ReactCurrentDispatcher,fb=l.ReactCurrentOwner,ia=l.ReactCurrentBatchConfig,Vo=l.ReactCurrentActQueue,Nr=0,b1=1,oa=2,fo=4,As=0,gv=1,af=2,Ny=3,yv=4,x1=5,db=6,Wt=Nr,ja=null,Yn=null,Dr=he,Ll=he,pb=Tu(he),Lr=As,Sv=null,Dy=he,wv=he,Ly=he,bv=null,ci=null,hb=0,C1=500,E1=1/0,yL=500,Os=null;function xv(){E1=ur()+yL}function T1(){return E1}var Py=!1,vb=null,ap=null,of=!1,Iu=null,Cv=he,mb=[],gb=null,SL=50,Ev=0,yb=null,Sb=!1,Iy=!1,wL=50,ip=0,Uy=null,Tv=mn,zy=he,R1=!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=vD()!==hD;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=JO();return p}function bL(e){var t=e.mode;return(t&Lt)===it?vt:Vm()}function Pr(e,t,i,o){GL(),R1&&v("useInsertionEffect must not schedule updates."),Sb&&(Iy=!0),hu(e,i,o),(Wt&oa)!==he&&e===ja?XL(t):(ya&&_c(e,t,i),KL(t),e===ja&&((Wt&oa)===Nr&&(wv=_t(wv,i)),Lr===yv&&zu(e,Dr)),fi(e,o),i===vt&&Wt===Nr&&(t.mode&Lt)===it&&!Vo.isBatchingLegacy&&(xv(),RE()))}function xL(e,t,i){var o=e.current;o.lanes=t,hu(e,t,i),fi(e,i)}function CL(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&&H1(i),e.callbackNode=null,e.callbackPriority=qt;return}var u=yl(o),p=e.callbackPriority;if(p===u&&!(Vo.current!==null&&i!==Rb)){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&&H1(i);var g;if(u===vt)e.tag===Ru?(Vo.isBatchingLegacy!==null&&(Vo.didScheduleLegacyUpdate=!0),qN(_1.bind(null,e))):TE(_1.bind(null,e)),Vo.current!==null?Vo.current.push(Mu):tN(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=as;break;default:w=Ro;break}g=Mb(w,M1.bind(null,e))}e.callbackPriority=u,e.callbackNode=g}function M1(e,t){if(BD(),Tv=mn,zy=he,(Wt&(oa|fo))!==Nr)throw new Error("Should not already be working.");var i=e.callbackNode,o=Ds();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?DL(e,u):By(e,u);if(g!==As){if(g===af){var w=vd(e);w!==he&&(u=w,g=wb(e,w))}if(g===gv){var b=Sv;throw lf(e,he),zu(e,u),fi(e,ur()),b}if(g===db)zu(e,u);else{var M=!md(e,u),O=e.current.alternate;if(M&&!TL(O)){if(g=By(e,u),g===af){var B=vd(e);B!==he&&(u=B,g=wb(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,EL(e,g,u)}}return fi(e,ur()),e.callbackNode===i?M1.bind(null,e):null}function wb(e,t){var i=bv;if(Sd(e)){var o=lf(e,t);o.flags|=jr,$N(e.containerInfo)}var u=By(e,t);if(u!==af){var p=ci;ci=i,p!==null&&k1(p)}return u}function k1(e){ci===null?ci=e:ci.push.apply(ci,e)}function EL(e,t,i){switch(t){case As:case gv:throw new Error("Root did not complete. This is a bug in React.");case af:{sf(e,ci,Os);break}case Ny:{if(zu(e,i),vs(i)&&!V1()){var o=hb+C1-ur();if(o>10){var u=pd(e,he);if(u!==he)break;var p=e.suspendedLanes;if(!ms(p,i)){Ba(),gd(e,p);break}e.timeoutHandle=gS(sf.bind(null,e,ci,Os),o);break}}sf(e,ci,Os);break}case yv:{if(zu(e,i),fh(i))break;if(!V1()){var g=Oi(e,i),w=g,b=ur()-w,M=$L(b)-b;if(M>10){e.timeoutHandle=gS(sf.bind(null,e,ci,Os),M);break}}sf(e,ci,Os);break}case x1:{sf(e,ci,Os);break}default:throw new Error("Unknown root exit status.")}}function TL(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 _1(e){if(HD(),(Wt&(oa|fo))!==Nr)throw new Error("Should not already be working.");Ds();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=wb(e,o))}if(i===gv){var u=Sv;throw lf(e,he),zu(e,t),fi(e,ur()),u}if(i===db)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,Os),fi(e,ur()),null}function RL(e,t){t!==he&&(yd(e,_t(t,vt)),fi(e,ur()),(Wt&(oa|fo))===Nr&&(xv(),Mu()))}function bb(e,t){var i=Wt;Wt|=b1;try{return e(t)}finally{Wt=i,Wt===Nr&&!Vo.isBatchingLegacy&&(xv(),RE())}}function ML(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 Ns(e){Iu!==null&&Iu.tag===Ru&&(Wt&(oa|fo))===Nr&&Ds();var t=Wt;Wt|=b1;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 A1(){return(Wt&(oa|fo))!==Nr}function jy(e,t){Ta(pb,Ll,e),Ll=_t(Ll,t)}function xb(e){Ll=pb.current,Ea(pb,e)}function lf(e,t){e.finishedWork=null,e.finishedLanes=he;var i=e.timeoutHandle;if(i!==yS&&(e.timeoutHandle=yS,eN(i)),Yn!==null)for(var o=Yn.return;o!==null;){var u=o.alternate;i1(u,o),o=o.return}ja=e;var p=uf(e.current,null);return Yn=p,Dr=Ll=t,Lr=As,Sv=null,Dy=he,wv=he,Ly=he,bv=null,ci=null,xD(),Po.discardPendingWarnings(),p}function O1(e,t){do{var i=Yn;try{if(Qg(),tT(),Rn(),fb.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);qD(e,i.return,i,t,Dr),P1(i)}catch(u){t=u,Yn===i&&i!==null?(i=i.return,Yn=i):i=Yn;continue}return}while(!0)}function N1(){var e=cb.current;return cb.current=wy,e===null?wy:e}function D1(e){cb.current=e}function kL(){hb=ur()}function Rv(e){Dy=_t(e,Dy)}function _L(){Lr===As&&(Lr=Ny)}function Cb(){(Lr===As||Lr===Ny||Lr===af)&&(Lr=yv),ja!==null&&(Tc(Dy)||Tc(wv))&&zu(ja,Dr)}function AL(e){Lr!==yv&&(Lr=af),bv===null?bv=[e]:bv.push(e)}function OL(){return Lr===As}function By(e,t){var i=Wt;Wt|=oa;var o=N1();if(ja!==e||Dr!==t){if(ya){var u=e.memoizedUpdaters;u.size>0&&(Mv(e,Dr),u.clear()),Wm(e,t)}Os=gh(),lf(e,t)}ss(t);do try{NL();break}catch(p){O1(e,p)}while(!0);if(Qg(),Wt=i,D1(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 NL(){for(;Yn!==null;)L1(Yn)}function DL(e,t){var i=Wt;Wt|=oa;var o=N1();if(ja!==e||Dr!==t){if(ya){var u=e.memoizedUpdaters;u.size>0&&(Mv(e,Dr),u.clear()),Wm(e,t)}Os=gh(),xv(),lf(e,t)}ss(t);do try{LL();break}catch(p){O1(e,p)}while(!0);return Qg(),D1(o),Wt=i,Yn!==null?(zm(),As):(Kf(),ja=null,Dr=he,Lr)}function LL(){for(;Yn!==null&&!Qp();)L1(Yn)}function L1(e){var t=e.alternate;cn(e);var i;(e.mode&Jt)!==it?(Rw(e),i=Eb(t,e,Ll),Ty(e,!0)):i=Eb(t,e,Ll),Rn(),e.memoizedProps=e.pendingProps,i===null?P1(e):Yn=i,fb.current=null}function P1(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=a1(i,t,Ll):(Rw(t),u=a1(i,t,Ll),Ty(t,!1)),Rn(),u!==null){Yn=u;return}}else{var p=_2(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=db,Yn=null;return}}var b=t.sibling;if(b!==null){Yn=b;return}t=o,Yn=t}while(t!==null);Lr===As&&(Lr=x1)}function sf(e,t,i){var o=ii(),u=ia.transition;try{ia.transition=null,Jn(Kr),PL(e,t,i,o)}finally{ia.transition=u,Jn(o)}return null}function PL(e,t,i,o){do Ds();while(Iu!==null);if(YL(),(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=_t(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,gb=i,Mb(Ro,function(){return Ds(),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,fb.current=null,L2(e,u),RT(),X2(e,u,p),WO(e.containerInfo),e.current=u,vc(p),K2(u,e,p),mc(),qp(),Wt=B,Jn(O),ia.transition=M}else e.current=u,RT();var F=of;if(of?(of=!1,Iu=e,Cv=p):(ip=0,Uy=null),g=e.pendingLanes,g===he&&(ap=null),F||F1(e.current,!1),Jp(u.stateNode,o),ya&&e.memoizedUpdaters.clear(),hL(),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=vb;throw vb=null,et}return wa(Cv,vt)&&e.tag!==Ru&&Ds(),g=e.pendingLanes,wa(g,vt)?(jD(),e===yb?Ev++:(Ev=0,yb=e)):Ev=0,Mu(),rh(),null}function Ds(){if(Iu!==null){var e=Qm(Cv),t=Oc(ri,e),i=ia.transition,o=ii();try{return ia.transition=null,Jn(t),UL()}finally{Jn(o),ia.transition=i}}return!1}function IL(e){mb.push(e),of||(of=!0,Mb(Ro,function(){return Ds(),null}))}function UL(){if(Iu===null)return!1;var e=gb;gb=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.");Sb=!0,Iy=!1,ls(i);var o=Wt;Wt|=fo,nL(t.current),Z2(t,t.current,i,e);{var u=mb;mb=[];for(var p=0;p<u.length;p++){var g=u[p];z2(t,g)}}oh(),F1(t.current,!0),Wt=o,Mu(),Iy?t===Uy?ip++:(ip=0,Uy=t):ip=0,Sb=!1,Iy=!1,eh(t);{var w=t.current.stateNode;w.effectDuration=0,w.passiveEffectDuration=0}return!0}function I1(e){return ap!==null&&ap.has(e)}function zL(e){ap===null?ap=new Set([e]):ap.add(e)}function FL(e){Py||(Py=!0,vb=e)}var jL=FL;function U1(e,t,i){var o=nf(i,t),u=LT(e,o,vt),p=_u(e,u,vt),g=Ba();p!==null&&(hu(p,vt,g),fi(p,g))}function Mn(e,t,i){if(O2(i),kv(!1),e.tag===k){U1(e,e,i);return}var o=null;for(o=t;o!==null;){if(o.tag===k){U1(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"&&!I1(p)){var g=nf(i,e),w=$w(o,g,vt),b=_u(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
212
 
213
213
  Error message:
214
214
 
215
- %s`,i)}function BL(e,t,i){var o=e.pingCache;o!==null&&o.delete(t);var u=Ba();gd(e,i),QL(e),ja===e&&ms(Dr,i)&&(Lr===yv||Lr===Ny&&vs(Dr)&&ur()-hb<x1?lf(e,he):Ly=_t(Ly,i)),fi(e,u)}function U1(e,t){t===qt&&(t=bL(e));var i=Ba(),o=si(e,t);o!==null&&(hu(o,t,i),fi(o,i))}function HL(e){var t=e.memoizedState,i=qt;t!==null&&(i=t.retryLane),U1(e,i)}function VL(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),U1(e,i)}function $L(e){return e<120?120:e<480?480:e<1080?1080:e<1920?1920:e<3e3?3e3:e<4320?4320:gL(e/1960)*1960}function GL(){if(Ev>SL)throw Ev=0,yb=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>wL&&(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 YL(){Po.flushLegacyContextWarning(),Po.flushPendingUnsafeLifecycleWarnings()}function z1(e,t){cn(e),Hy(e,cl,fL),t&&Hy(e,qi,dL),Hy(e,cl,uL),t&&Hy(e,qi,cL),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 F1(e){{if((Wt&oa)!==Nr||!(e.mode&Lt))return;var t=e.tag;if(t!==_&&t!==k&&t!==T&&t!==b&&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 Eb;{var WL=null;Eb=function(e,t,i){var o=W1(WL,t);try{return ZT(e,t,i)}catch(p){if(iD()||p!==null&&typeof p=="object"&&typeof p.then=="function")throw p;if(Qg(),eT(),a1(e,t),W1(t,o),t.mode&Jt&&Rw(t),ul(null,ZT,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 j1=!1,Tb;Tb=new Set;function XL(e){if($i&&!UD())switch(e.tag){case b:case ce:case ve:{var t=Yn&&bt(Yn)||"Unknown",i=t;if(!Tb.has(i)){Tb.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 T:{j1||(v("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),j1=!0);break}}}function Mv(e,t){if(ya){var i=e.memoizedUpdaters;i.forEach(function(o){_c(e,o,t)})}}var Rb={};function Mb(e,t){{var i=Vo.current;return i!==null?(i.push(t),Rb):Kp(e,t)}}function B1(e){if(e!==Rb)return Lm(e)}function H1(){return Vo.current!==null}function KL(e){{if(e.mode&Lt){if(!S1())return}else if(!mL()||Wt!==Nr||e.tag!==b&&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(...).
215
+ %s`,i)}function BL(e,t,i){var o=e.pingCache;o!==null&&o.delete(t);var u=Ba();gd(e,i),QL(e),ja===e&&ms(Dr,i)&&(Lr===yv||Lr===Ny&&vs(Dr)&&ur()-hb<C1?lf(e,he):Ly=_t(Ly,i)),fi(e,u)}function z1(e,t){t===qt&&(t=bL(e));var i=Ba(),o=si(e,t);o!==null&&(hu(o,t,i),fi(o,i))}function HL(e){var t=e.memoizedState,i=qt;t!==null&&(i=t.retryLane),z1(e,i)}function VL(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),z1(e,i)}function $L(e){return e<120?120:e<480?480:e<1080?1080:e<1920?1920:e<3e3?3e3:e<4320?4320:gL(e/1960)*1960}function GL(){if(Ev>SL)throw Ev=0,yb=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>wL&&(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 YL(){Po.flushLegacyContextWarning(),Po.flushPendingUnsafeLifecycleWarnings()}function F1(e,t){cn(e),Hy(e,cl,fL),t&&Hy(e,qi,dL),Hy(e,cl,uL),t&&Hy(e,qi,cL),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 j1(e){{if((Wt&oa)!==Nr||!(e.mode&Lt))return;var t=e.tag;if(t!==A&&t!==k&&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 Eb;{var WL=null;Eb=function(e,t,i){var o=X1(WL,t);try{return JT(e,t,i)}catch(p){if(iD()||p!==null&&typeof p=="object"&&typeof p.then=="function")throw p;if(Qg(),tT(),i1(e,t),X1(t,o),t.mode&Jt&&Rw(t),ul(null,JT,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 B1=!1,Tb;Tb=new Set;function XL(e){if($i&&!UD())switch(e.tag){case x:case ce:case ve:{var t=Yn&&bt(Yn)||"Unknown",i=t;if(!Tb.has(i)){Tb.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:{B1||(v("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),B1=!0);break}}}function Mv(e,t){if(ya){var i=e.memoizedUpdaters;i.forEach(function(o){_c(e,o,t)})}}var Rb={};function Mb(e,t){{var i=Vo.current;return i!==null?(i.push(t),Rb):Kp(e,t)}}function H1(e){if(e!==Rb)return Lm(e)}function V1(){return Vo.current!==null}function KL(e){{if(e.mode&Lt){if(!w1())return}else if(!mL()||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
216
 
217
217
  When testing, code that causes React state updates should be wrapped into act(...):
218
218
 
@@ -221,7 +221,7 @@ act(() => {
221
221
  });
222
222
  /* assert on the output */
223
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 QL(e){e.tag!==Ru&&S1()&&Vo.current===null&&v(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
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 QL(e){e.tag!==Ru&&w1()&&Vo.current===null&&v(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
225
225
 
226
226
  When testing, code that resolves suspended data should be wrapped into act(...):
227
227
 
@@ -230,20 +230,20 @@ act(() => {
230
230
  });
231
231
  /* assert on the output */
232
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 kv(e){T1=e}var po=null,op=null,qL=function(e){po=e};function lp(e){{if(po===null)return e;var t=po(e);return t===void 0?e:t.current}}function kb(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 V1(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 T:{typeof o=="function"&&(u=!0);break}case b:{(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 $1(e){{if(po===null||typeof WeakSet!="function")return;op===null&&(op=new WeakSet),op.add(e)}}var ZL=function(e,t){{if(po===null)return;var i=t.staleFamilies,o=t.updatedFamilies;Ds(),Ns(function(){Ab(e.current,o,i)})}},JL=function(e,t){{if(e.context!==Li)return;Ds(),Ns(function(){_v(t,e,null,null)})}};function Ab(e,t,i){{var o=e.alternate,u=e.child,p=e.sibling,g=e.tag,w=e.type,x=null;switch(g){case b:case ve:case T:x=w;break;case ce:x=w.render;break}if(po===null)throw new Error("Expected resolveFamily to be set during hot reload.");var M=!1,O=!1;if(x!==null){var B=po(x);B!==void 0&&(i.has(B)?O=!0:t.has(B)&&(g===T?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&&Ab(u,t,i),p!==null&&Ab(p,t,i)}}var eP=function(e,t){{var i=new Set,o=new Set(t.map(function(u){return u.current}));return Ob(e.current,o,i),i}};function Ob(e,t,i){{var o=e.child,u=e.sibling,p=e.tag,g=e.type,w=null;switch(p){case b:case ve:case T:w=g;break;case ce:w=g.render;break}var x=!1;w!==null&&t.has(w)&&(x=!0),x?tP(e,i):o!==null&&Ob(o,t,i),u!==null&&Ob(u,t,i)}}function tP(e,t){{var i=nP(e,t);if(i)return;for(var o=e;;){switch(o.tag){case N:t.add(o.stateNode);return;case A:t.add(o.stateNode.containerInfo);return;case k:t.add(o.stateNode.containerInfo);return}if(o.return===null)throw new Error("Expected to reach root first.");o=o.return}}}function nP(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 Nb;{Nb=!1;try{var G1=Object.preventExtensions({})}catch{Nb=!0}}function rP(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,!Nb&&typeof Object.preventExtensions=="function"&&Object.preventExtensions(this)}var Pi=function(e,t,i,o){return new rP(e,t,i,o)};function Db(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function aP(e){return typeof e=="function"&&!Db(e)&&e.defaultProps===void 0}function iP(e){if(typeof e=="function")return Db(e)?T:b;if(e!=null){var t=e.$$typeof;if(t===pe)return ce;if(t===Mt)return Re}return _}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 _:case b:case ve:i.type=lp(e.type);break;case T:i.type=kb(e.type);break;case ce:i.type=_b(e.type);break}return i}function oP(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 lP(e,t,i){var o;return e===jg?(o=Lt,t===!0&&(o|=pn,o|=en)):o=it,ya&&(o|=Jt),Pi(k,null,null,o)}function Lb(e,t,i,o,u,p){var g=_,w=e;if(typeof e=="function")Db(e)?(g=T,w=kb(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 sP(i,u,p,t);case Ne:return uP(i,u,p,t);case $e:return cP(i,u,p,t);case jn:return Y1(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 x="";{(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(x+=" 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&&(x+=`
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 kv(e){R1=e}var po=null,op=null,qL=function(e){po=e};function lp(e){{if(po===null)return e;var t=po(e);return t===void 0?e:t.current}}function kb(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 $1(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 G1(e){{if(po===null||typeof WeakSet!="function")return;op===null&&(op=new WeakSet),op.add(e)}}var ZL=function(e,t){{if(po===null)return;var i=t.staleFamilies,o=t.updatedFamilies;Ds(),Ns(function(){Ab(e.current,o,i)})}},JL=function(e,t){{if(e.context!==Li)return;Ds(),Ns(function(){_v(t,e,null,null)})}};function Ab(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&&Ab(u,t,i),p!==null&&Ab(p,t,i)}}var eP=function(e,t){{var i=new Set,o=new Set(t.map(function(u){return u.current}));return Ob(e.current,o,i),i}};function Ob(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?tP(e,i):o!==null&&Ob(o,t,i),u!==null&&Ob(u,t,i)}}function tP(e,t){{var i=nP(e,t);if(i)return;for(var o=e;;){switch(o.tag){case N:t.add(o.stateNode);return;case _:t.add(o.stateNode.containerInfo);return;case k:t.add(o.stateNode.containerInfo);return}if(o.return===null)throw new Error("Expected to reach root first.");o=o.return}}}function nP(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 Nb;{Nb=!1;try{var Y1=Object.preventExtensions({})}catch{Nb=!0}}function rP(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,!Nb&&typeof Object.preventExtensions=="function"&&Object.preventExtensions(this)}var Pi=function(e,t,i,o){return new rP(e,t,i,o)};function Db(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function aP(e){return typeof e=="function"&&!Db(e)&&e.defaultProps===void 0}function iP(e){if(typeof e=="function")return Db(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=kb(e.type);break;case ce:i.type=_b(e.type);break}return i}function oP(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 lP(e,t,i){var o;return e===jg?(o=Lt,t===!0&&(o|=pn,o|=en)):o=it,ya&&(o|=Jt),Pi(k,null,null,o)}function Lb(e,t,i,o,u,p){var g=A,w=e;if(typeof e=="function")Db(e)?(g=R,w=kb(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 sP(i,u,p,t);case Ne:return uP(i,u,p,t);case $e:return cP(i,u,p,t);case jn:return W1(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
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)+"."+x))}}var O=Pi(g,i,t,u);return O.elementType=e,O.type=w,O.lanes=p,O._debugOwner=o,O}function Pb(e,t,i){var o=null;o=e._owner;var u=e.type,p=e.key,g=e.props,w=Lb(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 sP(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 uP(e,t,i,o){var u=Pi(le,e,o,t);return u.elementType=Ne,u.lanes=i,u}function cP(e,t,i,o){var u=Pi(Rt,e,o,t);return u.elementType=$e,u.lanes=i,u}function Y1(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 Ib(e,t,i){var o=Pi(z,e,null,t);return o.lanes=i,o}function fP(){var e=Pi(N,null,null,it);return e.elementType="DELETED",e}function dP(e){var t=Pi(dt,null,null,it);return t.stateNode=e,t}function Ub(e,t,i){var o=e.children!==null?e.children:[],u=Pi(A,o,e.key,t);return u.lanes=i,u.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},u}function W1(e,t){return e===null&&(e=Pi(_,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 pP(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=yS,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=qt,this.eventTimes=kc(he),this.expirationTimes=kc(mn),this.pendingLanes=he,this.suspendedLanes=he,this.pingedLanes=he,this.expiredLanes=he,this.mutableReadLanes=he,this.finishedLanes=he,this.entangledLanes=he,this.entanglements=kc(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<us;g++)p.push(new Set)}switch(t){case jg:this._debugRootType=i?"hydrateRoot()":"createRoot()";break;case Ru:this._debugRootType=i?"hydrate()":"render()";break}}function X1(e,t,i,o,u,p,g,w,x,M){var O=new pP(e,t,i,w,x),B=lP(t,p);O.current=B,B.stateNode=O;{var F={element:o,isDehydrated:i,cache:null,transitions:null,pendingSuspenseBoundaries:null};B.memoizedState=F}return QS(B),O}var zb="18.3.1";function hP(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 Fb,jb;Fb=!1,jb={};function K1(e){if(!e)return Li;var t=su(e),i=QN(t);if(t.tag===T){var o=t.type;if(Ml(o))return xE(t,o,i)}return i}function vP(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(!jb[p]){jb[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 Q1(e,t,i,o,u,p,g,w){var x=!1,M=null;return X1(e,t,x,M,i,o,u,p,g)}function q1(e,t,i,o,u,p,g,w,x,M){var O=!0,B=X1(i,o,O,e,u,p,g,w,x);B.context=K1(null);var F=B.current,q=Ba(),te=Uu(F),ae=ks(q,te);return ae.callback=t??null,_u(F,ae,te),xL(B,te,q),B}function _v(e,t,i,o){Zp(t,e);var u=t.current,p=Ba(),g=Uu(u);Pn(g);var w=K1(i);t.context===null?t.context=w:t.pendingContext=w,$i&&Cr!==null&&!Fb&&(Fb=!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.
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 Pb(e,t,i){var o=null;o=e._owner;var u=e.type,p=e.key,g=e.props,w=Lb(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 sP(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 uP(e,t,i,o){var u=Pi(le,e,o,t);return u.elementType=Ne,u.lanes=i,u}function cP(e,t,i,o){var u=Pi(Rt,e,o,t);return u.elementType=$e,u.lanes=i,u}function W1(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 Ib(e,t,i){var o=Pi(z,e,null,t);return o.lanes=i,o}function fP(){var e=Pi(N,null,null,it);return e.elementType="DELETED",e}function dP(e){var t=Pi(dt,null,null,it);return t.stateNode=e,t}function Ub(e,t,i){var o=e.children!==null?e.children:[],u=Pi(_,o,e.key,t);return u.lanes=i,u.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},u}function X1(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 pP(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=yS,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=qt,this.eventTimes=kc(he),this.expirationTimes=kc(mn),this.pendingLanes=he,this.suspendedLanes=he,this.pingedLanes=he,this.expiredLanes=he,this.mutableReadLanes=he,this.finishedLanes=he,this.entangledLanes=he,this.entanglements=kc(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<us;g++)p.push(new Set)}switch(t){case jg:this._debugRootType=i?"hydrateRoot()":"createRoot()";break;case Ru:this._debugRootType=i?"hydrate()":"render()";break}}function K1(e,t,i,o,u,p,g,w,b,M){var O=new pP(e,t,i,w,b),B=lP(t,p);O.current=B,B.stateNode=O;{var F={element:o,isDehydrated:i,cache:null,transitions:null,pendingSuspenseBoundaries:null};B.memoizedState=F}return QS(B),O}var zb="18.3.1";function hP(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 Fb,jb;Fb=!1,jb={};function Q1(e){if(!e)return Li;var t=su(e),i=QN(t);if(t.tag===R){var o=t.type;if(Ml(o))return CE(t,o,i)}return i}function vP(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(!jb[p]){jb[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 q1(e,t,i,o,u,p,g,w){var b=!1,M=null;return K1(e,t,b,M,i,o,u,p,g)}function Z1(e,t,i,o,u,p,g,w,b,M){var O=!0,B=K1(i,o,O,e,u,p,g,w,b);B.context=Q1(null);var F=B.current,q=Ba(),te=Uu(F),ae=ks(q,te);return ae.callback=t??null,_u(F,ae,te),xL(B,te,q),B}function _v(e,t,i,o){Zp(t,e);var u=t.current,p=Ba(),g=Uu(u);Pn(g);var w=Q1(i);t.context===null?t.context=w:t.pendingContext=w,$i&&Cr!==null&&!Fb&&(Fb=!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
236
 
237
- Check the render method of %s.`,bt(Cr)||"Unknown"));var x=ks(p,g);x.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),x.callback=o);var M=_u(u,x,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 mP(e){switch(e.tag){case k:{var t=e.stateNode;if(Sd(t)){var i=jm(t);RL(t,i)}break}case le:{Ns(function(){var u=si(e,vt);if(u!==null){var p=Ba();Pr(u,e,vt,p)}});var o=vt;Bb(e,o);break}}}function Z1(e,t){var i=e.memoizedState;i!==null&&i.dehydrated!==null&&(i.retryLane=Gm(i.retryLane,t))}function Bb(e,t){Z1(e,t);var i=e.alternate;i&&Z1(i,t)}function gP(e){if(e.tag===le){var t=xc,i=si(e,t);if(i!==null){var o=Ba();Pr(i,e,t,o)}Bb(e,t)}}function yP(e){if(e.tag===le){var t=Uu(e),i=si(e,t);if(i!==null){var o=Ba();Pr(i,e,t,o)}Bb(e,t)}}function J1(e){var t=_n(e);return t===null?null:t.stateNode}var eR=function(e){return null};function SP(e){return eR(e)}var tR=function(e){return!1};function wP(e){return tR(e)}var nR=null,rR=null,aR=null,iR=null,oR=null,lR=null,sR=null,uR=null,cR=null;{var fR=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]=fR(e[o],t,i+1),u)},dR=function(e,t){return fR(e,t,0)},pR=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]=pR(e[u],t,i,o+1);return p},hR=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 pR(e,t,i,0)},vR=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]=vR(e[u],t,i+1,o),p},mR=function(e,t,i){return vR(e,t,0,i)},Hb=function(e,t){for(var i=e.memoizedState;i!==null&&t>0;)i=i.next,t--;return i};nR=function(e,t,i,o){var u=Hb(e,t);if(u!==null){var p=mR(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)}},rR=function(e,t,i){var o=Hb(e,t);if(o!==null){var u=dR(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)}},aR=function(e,t,i,o){var u=Hb(e,t);if(u!==null){var p=hR(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)}},iR=function(e,t,i){e.pendingProps=mR(e.memoizedProps,t,i),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var o=si(e,vt);o!==null&&Pr(o,e,vt,mn)},oR=function(e,t){e.pendingProps=dR(e.memoizedProps,t),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var i=si(e,vt);i!==null&&Pr(i,e,vt,mn)},lR=function(e,t,i){e.pendingProps=hR(e.memoizedProps,t,i),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var o=si(e,vt);o!==null&&Pr(o,e,vt,mn)},sR=function(e){var t=si(e,vt);t!==null&&Pr(t,e,vt,mn)},uR=function(e){eR=e},cR=function(e){tR=e}}function bP(e){var t=ma(e);return t===null?null:t.stateNode}function xP(e){return null}function CP(){return Cr}function EP(e){var t=e.findFiberByHostInstance,i=l.ReactCurrentDispatcher;return fu({bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:nR,overrideHookStateDeletePath:rR,overrideHookStateRenamePath:aR,overrideProps:iR,overridePropsDeletePath:oR,overridePropsRenamePath:lR,setErrorHandler:uR,setSuspenseHandler:cR,scheduleUpdate:sR,currentDispatcherRef:i,findHostInstanceByFiber:bP,findFiberByHostInstance:t||xP,findHostInstancesForRefresh:eP,scheduleRefresh:ZL,scheduleRoot:JL,setRefreshHandler:qL,getCurrentFiber:CP,reconcilerVersion:zb})}var gR=typeof reportError=="function"?reportError:function(e){console.error(e)};function Vb(e){this._internalRoot=e}Gy.prototype.render=Vb.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=J1(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.")}}_v(e,t,null,null)},Gy.prototype.unmount=Vb.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."),Ns(function(){_v(null,e,null,null)}),gE(t)}};function TP(e,t){if(!Yy(e))throw new Error("createRoot(...): Target container is not a DOM element.");yR(e);var i=!1,o=!1,u="",p=gR;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:
237
+ Check the render method of %s.`,bt(Cr)||"Unknown"));var b=ks(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=_u(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 mP(e){switch(e.tag){case k:{var t=e.stateNode;if(Sd(t)){var i=jm(t);RL(t,i)}break}case le:{Ns(function(){var u=si(e,vt);if(u!==null){var p=Ba();Pr(u,e,vt,p)}});var o=vt;Bb(e,o);break}}}function J1(e,t){var i=e.memoizedState;i!==null&&i.dehydrated!==null&&(i.retryLane=Gm(i.retryLane,t))}function Bb(e,t){J1(e,t);var i=e.alternate;i&&J1(i,t)}function gP(e){if(e.tag===le){var t=xc,i=si(e,t);if(i!==null){var o=Ba();Pr(i,e,t,o)}Bb(e,t)}}function yP(e){if(e.tag===le){var t=Uu(e),i=si(e,t);if(i!==null){var o=Ba();Pr(i,e,t,o)}Bb(e,t)}}function eR(e){var t=_n(e);return t===null?null:t.stateNode}var tR=function(e){return null};function SP(e){return tR(e)}var nR=function(e){return!1};function wP(e){return nR(e)}var rR=null,aR=null,iR=null,oR=null,lR=null,sR=null,uR=null,cR=null,fR=null;{var dR=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]=dR(e[o],t,i+1),u)},pR=function(e,t){return dR(e,t,0)},hR=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]=hR(e[u],t,i,o+1);return p},vR=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 hR(e,t,i,0)},mR=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]=mR(e[u],t,i+1,o),p},gR=function(e,t,i){return mR(e,t,0,i)},Hb=function(e,t){for(var i=e.memoizedState;i!==null&&t>0;)i=i.next,t--;return i};rR=function(e,t,i,o){var u=Hb(e,t);if(u!==null){var p=gR(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){var o=Hb(e,t);if(o!==null){var u=pR(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)}},iR=function(e,t,i,o){var u=Hb(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)}},oR=function(e,t,i){e.pendingProps=gR(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,t){e.pendingProps=pR(e.memoizedProps,t),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var i=si(e,vt);i!==null&&Pr(i,e,vt,mn)},sR=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)},uR=function(e){var t=si(e,vt);t!==null&&Pr(t,e,vt,mn)},cR=function(e){tR=e},fR=function(e){nR=e}}function bP(e){var t=ma(e);return t===null?null:t.stateNode}function xP(e){return null}function CP(){return Cr}function EP(e){var t=e.findFiberByHostInstance,i=l.ReactCurrentDispatcher;return fu({bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:rR,overrideHookStateDeletePath:aR,overrideHookStateRenamePath:iR,overrideProps:oR,overridePropsDeletePath:lR,overridePropsRenamePath:sR,setErrorHandler:cR,setSuspenseHandler:fR,scheduleUpdate:uR,currentDispatcherRef:i,findHostInstanceByFiber:bP,findFiberByHostInstance:t||xP,findHostInstancesForRefresh:eP,scheduleRefresh:ZL,scheduleRoot:JL,setRefreshHandler:qL,getCurrentFiber:CP,reconcilerVersion:zb})}var yR=typeof reportError=="function"?reportError:function(e){console.error(e)};function Vb(e){this._internalRoot=e}Gy.prototype.render=Vb.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=eR(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.")}}_v(e,t,null,null)},Gy.prototype.unmount=Vb.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;A1()&&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."),Ns(function(){_v(null,e,null,null)}),yE(t)}};function TP(e,t){if(!Yy(e))throw new Error("createRoot(...): Target container is not a DOM element.");SR(e);var i=!1,o=!1,u="",p=yR;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
238
 
239
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=Q1(e,jg,null,i,o,u,p);Dg(g.current,e);var w=e.nodeType===Xn?e.parentNode:e;return Ph(w),new Vb(g)}function Gy(e){this._internalRoot=e}function RP(e){e&&tg(e)}Gy.prototype.unstable_scheduleHydration=RP;function MP(e,t,i){if(!Yy(e))throw new Error("hydrateRoot(...): Target container is not a DOM element.");yR(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="",x=gR;i!=null&&(i.unstable_strictMode===!0&&(p=!0),i.identifierPrefix!==void 0&&(w=i.identifierPrefix),i.onRecoverableError!==void 0&&(x=i.onRecoverableError));var M=q1(t,null,e,jg,o,p,g,w,x);if(Dg(M.current,e),Ph(e),u)for(var O=0;O<u.length;O++){var B=u[O];OD(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 yR(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 kP=l.ReactCurrentOwner,SR;SR=function(e){if(e._reactRootContainer&&e.nodeType!==Xn){var t=J1(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=$b(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 $b(e){return e?e.nodeType===xo?e.documentElement:e.firstChild:null}function wR(){}function _P(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,"",wR);e._reactRootContainer=g,Dg(g.current,e);var w=e.nodeType===Xn?e.parentNode:e;return Ph(w),Ns(),g}else{for(var x;x=e.lastChild;)e.removeChild(x);if(typeof o=="function"){var M=o;o=function(){var F=$y(O);M.call(F)}}var O=Q1(e,Ru,null,!1,!1,"",wR);e._reactRootContainer=O,Dg(O.current,e);var B=e.nodeType===Xn?e.parentNode:e;return Ph(B),Ns(function(){_v(t,O,i,o)}),O}}function AP(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){SR(i),AP(u===void 0?null:u,"render");var p=i._reactRootContainer,g;if(!p)g=_P(i,t,e,u,o);else{if(g=p,typeof u=="function"){var w=u;u=function(){var x=$y(g);w.call(x)}}_v(t,g,e,u)}return $y(g)}var bR=!1;function OP(e){{bR||(bR=!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=kP.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:vP(e,"findDOMNode")}function NP(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 DP(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 LP(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||!B0(e))throw new Error("parentComponent must be a valid React Component");return Wy(e,t,i,!1,o)}var xR=!1;function PP(e){if(xR||(xR=!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=$b(e),o=i&&!Eu(i);o&&v("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return Ns(function(){Wy(null,null,e,!1,function(){e._reactRootContainer=null,gE(e)})}),!0}else{{var u=$b(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(mP),vu(gP),qm(yP),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(UO),j0(bb,ML,Ns);function IP(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 hP(e,t,null,i)}function UP(e,t,i,o){return LP(e,t,i,o)}var Gb={usingClientEntryPoint:!1,Events:[Eu,zd,Lg,au,Uf,bb]};function zP(e,t){return Gb.usingClientEntryPoint||v('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),TP(e,t)}function FP(e,t,i){return Gb.usingClientEntryPoint||v('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),MP(e,t,i)}function jP(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."),Ns(e)}var BP=EP({findFiberByHostInstance:Wc,bundleType:1,version:zb,rendererPackageName:"react-dom"});if(!BP&&gn&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var CR=window.location.protocol;/^(https?|file):$/.test(CR)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(CR==="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=Gb,Ga.createPortal=IP,Ga.createRoot=zP,Ga.findDOMNode=OP,Ga.flushSync=jP,Ga.hydrate=NP,Ga.hydrateRoot=FP,Ga.render=DP,Ga.unmountComponentAtNode=PP,Ga.unstable_batchedUpdates=bb,Ga.unstable_renderSubtreeIntoContainer=UP,Ga.version=zb,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),Ga}function rx(){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(rx)}catch(c){console.error(c)}}}process.env.NODE_ENV==="production"?(rx(),Ky.exports=AR()):Ky.exports=OR();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),ax=di({__proto__:null,default:Pv},[Q]),ix=c=>{let a;const l=new Set,f=(T,_)=>{const k=typeof T=="function"?T(a):T;if(!Object.is(k,a)){const A=a;a=_??(typeof k!="object"||k===null)?k:Object.assign({},a,k),l.forEach(N=>N(a,A))}},h=()=>a,C={setState:f,getState:h,getInitialState:()=>b,subscribe:T=>(l.add(T),()=>l.delete(T))},b=a=c(f,h,C);return C},NR=c=>c?ix(c):ix,DR=c=>c;function LR(c,a=DR){const l=Pv.useSyncExternalStore(c.subscribe,()=>a(c.getState()),()=>a(c.getInitialState()));return Pv.useDebugValue(l),l}const ox=c=>{const a=NR(c),l=f=>LR(a,f);return Object.assign(l,a),l},PR=c=>c?ox(c):ox,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}},lx={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"},sx=()=>({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}),IR=(c,a)=>({player:sx(),updatePlayer:l=>{c({player:{...a().player,...l}})},resetPlayer:()=>{c({player:sx()})},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||{}),kn=(c=>(c.HORIZONTAL_PATROL="HORIZONTAL_PATROL",c.VERTICAL_PATROL="VERTICAL_PATROL",c.CHASER="CHASER",c.AMBUSHER="AMBUSHER",c.FLOATER="FLOATER",c))(kn||{}),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 UR{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 UR,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)},zR=(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)},FR=()=>{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)},ux=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)},jR=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)},BR=(c,a,l,f,h,y,v)=>{const C=c.reduce((N,z)=>N+z.totalBombs,0),b=c.reduce((N,z)=>N+z.correctOrderCount,0),T=c.reduce((N,z)=>N+z.coinsCollected,0),_=c.reduce((N,z)=>N+z.powerModeActivations,0),k=v-y,A=c.length>0?k/c.length/1e3:0;return{totalBombs:C,totalCorrectOrders:b,totalCoinsCollected:T,totalPowerModeActivations:_,averageCompletionTime:Math.round(A),totalPlayTime:Math.round(k/1e3)}},HR=c=>{switch(c){case kn.HORIZONTAL_PATROL:return rr.MONSTER_HORIZONTAL_PATROL;case kn.VERTICAL_PATROL:return rr.MONSTER_VERTICAL_PATROL;case kn.CHASER:return rr.MONSTER_CHASER;case kn.AMBUSHER:return rr.MONSTER_AMBUSHER;case kn.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:HR(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 b=f==="left"?c:c+l-H.MONSTER_SIZE,T=a-H.MONSTER_SIZE,_=f==="left"?1:-1;return{...vp(b,T,kn.HORIZONTAL_PATROL,y,C),patrolStartX:c,patrolEndX:c+l,direction:_,walkLengths:h}},Ps=(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,kn.VERTICAL_PATROL,h,v),patrolStartY:a,patrolEndY:a+l,direction:y,patrolSide:f,targetPlatformX:c}},Is=(c,a,l=45,f=1,h=0)=>({...vp(c,a,kn.FLOATER,f,h),startAngle:l,spawnTime:Date.now()}),ff=(c,a,l=.8,f=.2,h=200,y=0)=>({...vp(c,a,kn.CHASER,l,y),direction:0,directness:f,chaseUpdateInterval:h}),df=(c,a,l=.8,f=8e3,h=0)=>({...vp(c,a,kn.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}),Us=c=>(H.CANVAS_WIDTH-c)/2,zs=c=>(H.CANVAS_HEIGHT-c)/2,hf=(c,a)=>({x:Us(c),y:zs(a)}),VR={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:Us(H.COIN_SIZE),y:zs(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:[Ps(105,220,220,"right"),Ps(695,220,220,"right",2,1),pi(170,170,200,"left"),ff(250,300,1,.3,1e3)]},$R={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),Is(50,300,45,1),Is(750,500,155,1)]},GR={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:()=>Is(Us(H.MONSTER_SIZE),zs(H.MONSTER_SIZE),150,1)},{spawnDelay:6e3,createMonster:()=>Is(Us(H.MONSTER_SIZE),zs(H.MONSTER_SIZE),50,1)},{spawnDelay:5e3,createMonster:()=>df(50,550,1,8e3)}]},YR={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:()=>Is(Us(H.MONSTER_SIZE),zs(H.MONSTER_SIZE),65,1)},{spawnDelay:6e3,createMonster:()=>Is(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(Us(H.MONSTER_SIZE),zs(H.MONSTER_SIZE),3,.5)},{spawnDelay:9e3,createMonster:()=>ff(590,400,3,.5)}],monsters:[Ps(500,170,350,"right"),Ps(240,60,340,"right"),pi(90,500,200,"left"),pi(90,45,150,"right")]},WR={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:[Ps(520,200,350,"right"),Ps(225,200,350,"right"),Ps(520,20,350,"right"),Ps(225,20,350,"right"),pi(0,550,800,"left")],monsterSpawnPoints:[{spawnDelay:5e3,createMonster:()=>df(700,150)},{spawnDelay:7e3,createMonster:()=>Is(100,150)},{spawnDelay:1e4,createMonster:()=>ff(Us(H.MONSTER_SIZE),zs(H.MONSTER_SIZE+200))},{spawnDelay:15e3,createMonster:()=>Is(Us(H.MONSTER_SIZE),zs(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,kn.HORIZONTAL_PATROL,H.CANVAS_HEIGHT-130,H.MONSTER_SIZE,H.MONSTER_SIZE,rr.MONSTER,kn.HORIZONTAL_PATROL,H.CANVAS_HEIGHT-170,H.MONSTER_SIZE,H.MONSTER_SIZE,rr.MONSTER,kn.HORIZONTAL_PATROL,H.CANVAS_HEIGHT-290,H.MONSTER_SIZE,H.MONSTER_SIZE,rr.MONSTER,kn.HORIZONTAL_PATROL,H.CANVAS_HEIGHT-350,H.MONSTER_SIZE,H.MONSTER_SIZE,rr.MONSTER,kn.HORIZONTAL_PATROL,H.CANVAS_HEIGHT-100,It.POWER,H.CANVAS_HEIGHT-140,It.POWER;const XR={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=[VR,$R,GR,YR,WR,XR],KR=(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():[],b="multiplier"in h?h.multiplier:1,T="getGameStartTime"in h?h.getGameStartTime():Date.now(),_="getSessionId"in h?h.getSessionId():`session_${Date.now()}_${Math.random().toString(36).substr(2,9)}`,k=BR(C,a().score,f,b,"failed",T,Date.now()),A={finalScore:a().score,totalLevels:vf.length,completedLevels:C.length,timestamp:Date.now(),lives:f,multiplier:b,levelHistory:C,totalCoinsCollected:k.totalCoinsCollected,totalPowerModeActivations:k.totalPowerModeActivations,totalBombs:k.totalBombs,totalCorrectOrders:k.totalCorrectOrders,averageCompletionTime:k.averageCompletionTime,gameEndReason:"failed",sessionId:_,startTime:T,endTime:Date.now()};jR(A)}},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 b=a(),T="multiplier"in b?b.multiplier:1,_="currentMap"in b?b.currentMap:void 0;zR(C,_?.name||`Level ${y}`,y,v,T)},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})}}),QR=(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})`},ZR=(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))},JR=(c,a)=>({bombs:[],collectedBombs:[],correctOrderCount:0,nextBombOrder:1,bombManager:null,collectBomb:l=>{const{bombs:f,bombManager:h}=a(),y=f.find(A=>A.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,b=a(),T="multiplier"in b?b.multiplier:1,_=QR(C,T);if("addScore"in b&&b.addScore(_.actualPoints),"addMultiplierScore"in b&&b.addMultiplierScore(_.actualPoints),"coinManager"in b&&b.coinManager&&b.coinManager.onPointsEarned(_.actualPoints,!1),(C||_.actualPoints>=400)&&Pe.score(qR(_)),C&&"addFloatingText"in b){const A=f.find(N=>N.order===l);if(A){const N=`${_.actualPoints}`;b.addFloatingText(N,A.x+A.width/2,A.y+A.height/2,1e3,"#FFD700",15)}}const k=f.map(A=>{if(A.order===l)return{...A,isCollected:!0,isCorrect:v.isCorrect};const N=h.getActiveGroup(),z=h.getNextBombOrder(),G=N!==null&&z!==null&&A.group===N&&A.order===z&&!A.isCollected;return{...A,isBlinking:G}});return c({bombs:k,correctOrderCount:h.getCorrectOrderCount(),collectedBombs:Array.from(h.getCollectedBombs()).map(A=>{const[N,z]=A.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 eM{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 tM=(c,a)=>({currentMap:null,levelStartTime:0,levelCompletionTime:null,monsters:[],platforms:[],ground:null,initializeLevel:l=>{const f=new eM(l.bombs),y=[...l.bombs].sort((b,T)=>b.group-T.group||b.order-T.order)[0],v=b=>{switch(b){case kn.HORIZONTAL_PATROL:return rr.MONSTER;case kn.VERTICAL_PATROL:return"#FF6B6B";case kn.CHASER:return"#FFD93D";case kn.AMBUSHER:return"#FF8800";case kn.FLOATER:return"#4ECDC4";default:return rr.MONSTER}},C=l.monsters.map(b=>({...b,color:b.color||v(b.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),ux(y)}}),nM=(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}),rM=(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),b=C>f;return c({multiplier:Math.max(f,C),multiplierScore:b?0:v}),{newMultiplier:Math.max(f,C),multiplierIncreased:b}},resetMultiplier:()=>{c({multiplier:1,multiplierScore:0})},setMultiplier:(l,f)=>{c({multiplier:l,multiplierScore:f})}}),aM=(c,a)=>({audioSettings:lx,audioManager:null,updateAudioSettings:l=>{c({audioSettings:{...a().audioSettings,...l}});const f=a().audioManager;f&&f.updateVolumes&&f.updateVolumes()},resetAudioSettings:()=>{c({audioSettings:lx});const l=a().audioManager;l&&l.updateVolumes&&l.updateVolumes()},setAudioManager:l=>{c({audioManager:l})}}),iM=(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(),b=C.totalCoinsCollected+1,T=C.totalPowerCoinsCollected+(l.type==="POWER"?1:0),_=C.totalBonusMultiplierCoinsCollected+(l.type==="BONUS_MULTIPLIER"?1:0),k=C.totalExtraLifeCoinsCollected+(l.type==="EXTRA_LIFE"?1:0);c({coins:h,activeEffects:v,totalCoinsCollected:b,totalPowerCoinsCollected:T,totalBonusMultiplierCoinsCollected:_,totalExtraLifeCoinsCollected:k});const A=a();if(l.type==="POWER")"addScore"in A&&A.addScore(H.POWER_COIN_POINTS);else if(l.type==="BONUS_MULTIPLIER"){if("addScore"in A&&"multiplier"in A){const N=A.multiplier,z=1e3*N;if(A.addScore(z),N<H.MAX_MULTIPLIER&&"addMultiplierScore"in A&&"multiplierScore"in A){const{MULTIPLIER_THRESHOLDS:G}=H,J=G[N+1];if(J!==void 0){const de=J-A.multiplierScore;A.addMultiplierScore(de)}}}}else if(l.type==="EXTRA_LIFE"&&"addScore"in A&&"multiplier"in A&&"addLife"in A){const N=A.multiplier,z=H.EXTRA_LIFE_COIN_POINTS*N;A.addScore(z),A.addLife(),Pe.debug("Extra life added via coin slice!")}Pe.debug(`Coin collected: ${l.type} (Total: ${b}, Power: ${T}, Bonus: ${_})`)},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}})}}),oM=(c,a)=>({floatingTexts:[],addFloatingText:(l,f,h,y=1e3,v="#FFFFFF",C=16)=>{const T={id:`floating-text-${Date.now()}-${Math.random()}`,text:l,x:f,y:h,startTime:Date.now(),duration:y,color:v,fontSize:C};c(_=>({floatingTexts:[..._.floatingTexts,T]}))},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,b=null;for(const T of a){const _=c.y+c.height,k=T.y,A=_>=k&&_<=k+4,N=c.x<T.x+T.width&&c.x+c.width>T.x;if(A&&N){C=!0,b=T,c.y=k-c.height,c.velocityY=0,c.platformDirection||(c.platformDirection=Math.random()<.5?-1:1,c.velocityX=c.platformDirection*1);break}}C&&b?(c.x+=c.velocityX,(c.x+c.width<=b.x+0||c.x>=b.x+b.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}],Fs={[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,b=h-v,T=y-C;Math.abs(b)>Math.abs(T)?b>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):T>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,b=h-v,T=Math.sqrt(C*C+b*b);if(T>.1)return{x:C/T,y:b/T};{const _=a.x,k=a.x+a.width,A=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(k-z),ce=Math.abs(_-G),fe=Math.abs(N-J),le=Math.abs(A-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 b=v/C;a.velocityX*=b,a.velocityY*=b}}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,b=h-v;Math.abs(C)>Math.abs(b)?a.x+=C>0?Math.abs(C):-Math.abs(C):a.y+=b>0?Math.abs(b):-Math.abs(b)}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),b=Math.abs(h-v);C>b?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,b=h-v,T=Math.sqrt(C*C+b*b);if(T>.1)return{x:C/T,y:b/T};{const _=Math.abs(a.x+a.width-l.x),k=Math.abs(a.x-(l.x+l.width)),A=Math.abs(a.y+a.height-l.y),N=Math.abs(a.y-(l.y+l.height)),z=Math.min(_,k,A,N);return z===_?{x:-1,y:0}:z===k?{x:1,y:0}:z===A?{x:0,y:-1}:{x:0,y:1}}}}class lM{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=Fs[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=Fs[a];if(y?.maxActive){if(this.coins.filter(T=>T.type===a&&!T.isCollected).length>=y.maxActive){Pe.debug(`${a} coin limit reached (${y.maxActive}), skipping spawn`);return}}else if(this.coins.find(T=>T.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=Fs.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(Fs).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(Fs).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=Fs[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 Fs[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=PR((c,a,l)=>{const f=IR(c,a),h=KR(c,a),y=JR(c,a),v=tM(c,a),C=nM(c,a),b=rM(c,a),T=aM(c,a),_=iM(c,a),k=oM(c);return{...f,...h,...y,...v,...C,...b,...T,..._,...k,resetGame:()=>{a().resetGameState(),a().resetPlayer(),a().resetBombState(),a().resetLevelState(),a().resetLevelHistory(),a().resetMultiplier(),a().resetAudioSettings(),a().resetCoinState(),a().resetEffects(),a().clearAllFloatingTexts()},initializeLevel:A=>{const{bombManager:N,firstBomb:z}=v.initializeLevel(A),G=A.bombs.map(de=>({...de,isBlinking:!1,isCollected:!1,isCorrect:!1}));a().setBombs(G),a().setBombManager(N);const J=new lM(A.coinSpawnPoints||[]);return a().setCoinManager(J),c({collectedBombs:[],correctOrderCount:0,nextBombOrder:1}),a().setPlayerPosition(A.playerStart.x,A.playerStart.y),{bombManager:N,firstBomb:z}},getLevelHistory:()=>C.getLevelResults(),getGameStartTime:()=>C.getGameStartTime(),getSessionId:()=>C.getSessionId()}});class sM{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 uM{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,b=l.y+l.height/2,T=y-C,_=v-b,k=(a.width+l.width)/2-Math.abs(T),A=(a.height+l.height)/2-Math.abs(_);return k<A?T>0?{hasCollision:!0,normal:{x:1,y:0},penetration:k}:{hasCollision:!0,normal:{x:-1,y:0},penetration:k}:_>0?{hasCollision:!0,normal:{x:0,y:1},penetration:A}:{hasCollision:!0,normal:{x:0,y:-1},penetration:A}}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 cx{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,b=l-(v-H.PLAYER_WIDTH)/2.3;if(this.currentAnimation.name.includes("-left")){a.save(),a.scale(-1,1);const _=b+v/2.14;a.translate(-_*2,0),a.drawImage(y,b,f,v,C),a.restore()}else a.drawImage(y,b,f,v,C);a.save(),a.restore()}}}const cM=!1,Jy=(()=>{{try{const c=document.querySelectorAll('script[src*="sigurd-startup"]');if(c.length>0){const f=c[0].src;console.log("Found package via script src:",f);const h=new URL(f),y=h.pathname.split("/"),v=y.findIndex(T=>T.includes("sigurd-startup"));if(v!==-1){const T=y.slice(0,v+1).join("/"),_=`${h.origin}${T}/dist`;return console.log("Constructed package base URL from script path:",_),_}const C=y.findIndex(T=>T==="dist");if(C!==-1){const T=y.slice(0,C).join("/"),_=`${h.origin}${T}/dist`;return console.log("Constructed package base URL from dist path:",_),_}const b=f.substring(0,f.lastIndexOf("/"));return console.log("Using script directory as fallback:",b),b}const a=window.location.href,l=window.location.pathname;if(a.includes("localhost")&&l.includes("/game")){const h=`${window.location.origin}/node_modules/sigurd-startup/dist`;return console.log("Constructed package path for Vite dev server:",h),h}if(!a.includes("localhost")&&!a.includes("127.0.0.1")){const f=window.location.origin,h=[`${f}/_next/static/chunks/sigurd-startup`,`${f}/static/js/sigurd-startup`,`${f}/assets/sigurd-startup`,`${f}/dist/sigurd-startup`];return console.log("Trying production paths:",h),h[0]}if(l.includes("node_modules")){const f=l.indexOf("node_modules"),h=l.indexOf("sigurd-startup",f);if(h!==-1){const y=l.substring(0,h+14);return console.log("Found package via path analysis:",y),y+"/dist"}}}catch{console.warn("Could not determine package location, using fallback paths")}return console.log("Using fallback path: /node_modules/sigurd-startup/dist"),"/node_modules/sigurd-startup/dist"}})(),Il={audio:`${Jy}/audio`,images:`${Jy}/assets`},fx=c=>{const a=`${Il.images}/maps-bg-images/${c}.png`;return console.log(`Background image path: ${a}`),a},fM=()=>{console.log("🔧 Asset Path Debug Info:"),console.log(" isDev:",cM),console.log(" packageBaseUrl:",Jy),console.log(" ASSET_PATHS:",Il),console.log(" current location:",window.location.href),console.log(" current pathname:",window.location.pathname)},Ir=c=>{const a=new Image;return a.src=`${Il.images}/${c}`,a},dx=[Ir("sigurd-idle/sigurd-idle1.png"),Ir("sigurd-idle/sigurd-idle2.png"),Ir("sigurd-idle/sigurd-idle3.png"),Ir("sigurd-idle/sigurd-idle4.png")],px=[Ir("running/run1.png"),Ir("running/run2.png"),Ir("running/run3.png")],hx=[Ir("jumping/jump1.png"),Ir("jumping/jump2.png"),Ir("jumping/jump3.png")],dM=[Ir("complete/complete1.png"),Ir("complete/complete2.png"),Ir("complete/complete3.png"),Ir("complete/complete4.png"),Ir("complete/complete5.png")],pM=[Ir("float/float1.png")],vx=[Ir("float-dir/float-dir1.png")],mx=[Ir("landing/landing1.png")],hM=[{name:"walk-right",frames:px,frameDuration:100,loop:!0},{name:"walk-left",frames:px,frameDuration:100,loop:!0},{name:"idle-right",frames:dx,frameDuration:1e3,loop:!0},{name:"idle-left",frames:dx,frameDuration:1e3,loop:!0},{name:"jump-right",frames:hx,frameDuration:100,loop:!1},{name:"jump-left",frames:hx,frameDuration:100,loop:!1},{name:"land-right",frames:mx,frameDuration:500,loop:!1},{name:"land-left",frames:mx,frameDuration:500,loop:!1},{name:"float-stationary",frames:pM,frameDuration:100,loop:!0},{name:"float-right",frames:vx,frameDuration:100,loop:!1},{name:"float-left",frames:vx,frameDuration:100,loop:!0},{name:"ghost-complete",frames:dM,frameDuration:100,loop:!1}],Sp=new cx(hM,"idle-left"),e0=c=>{const a=new Image;return a.src=`${Il.images}/${c}`,a},vM=[e0("bomb/bomb1.png")],mM=[e0("bomb/bomb1.png"),e0("bomb/bomb2.png")],gM=[{name:"unlit",frames:vM,frameDuration:100,loop:!1},{name:"lit",frames:mM,frameDuration:100,loop:!0}];class gx extends cx{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 t0=new gx(gM,"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 yx{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(`${Il.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,b=(v-this.canvasWidth)/2,T=(C-this.canvasHeight)/2;a.drawImage(l,-b,-T,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=`${Il.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 yM{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 yx(a.width,a.height),Pe.debug("RenderManager initialized with canvas")}render(a,l,f,h,y,v=[],C=[],b,T,_,k){this.currentSpawnManager=T,this.currentGameState=k;const A=Date.now(),N=A-this.lastTime;this.lastTime=A,this.backgroundManager.update(a.x,a.y),this.renderBackground(),y&&this.renderGround(y),this.renderPlatforms(l),this.renderBombs(f),this.renderCoins(v,b),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(t0&&H.USE_SPRITES){let f=this.bombSprites.get(l.order);if(!f){const v=[{name:"unlit",frames:t0.animations.unlit.frames,frameDuration:50,loop:!1},{name:"lit",frames:t0.animations.lit.frames,frameDuration:100,loop:!0}];f=new gx(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=Fs[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,b=f.color||"#ffffff";this.ctx.fillStyle=`${b}${Math.floor(C*1*255).toString(16).padStart(2,"0")}`,this.ctx.fillRect(v.x,v.y,f.width,f.height);const T=`${y}`,_=v.x+f.width/2,k=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(T,_,k)}}})}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,b=v.color||"#ffffff";this.ctx.fillStyle=`${b}${Math.floor(C*1*255).toString(16).padStart(2,"0")}`,this.ctx.fillRect(v.x,v.y,v.width,v.height);const T=`${y}`,_=v.x+v.width/2,k=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(T,_,k)}})}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,b=1-y;this.ctx.globalAlpha=b,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 Sx=c=>c.type==="HORIZONTAL_PATROL"||c.type==="VERTICAL_PATROL",SM=c=>c.type==="CHASER",wM=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 bM{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(!Sx(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 b=f?C*(f/16.67):C,T=a.x+b*a.direction;T<a.patrolStartX||T+a.width>a.patrolEndX?(a.direction*=-1,a.lastDirectionChange=l):a.x=T;const _=Ft.getState(),k=_.platforms||[],A=hi.findCurrentPlatform(a,k);A?(a.y=A.y-a.height,a.velocityY=0,a.isGrounded=!0):this.handleGroundCollision(a,_.ground)}updateVerticalPatrol(a,l,f){if(!Sx(a))return;const h=ca.getInstance(),y=h.getMonsterScaledValues(a);h.getBaseValues(),h.getMonsterAge(a);const v=y.patrol.speed;if(!a.originalSpawnX){const _=Ft.getState().platforms||[],k=a.patrolSide||"left",A=a.targetPlatformX,N=_.find(z=>z.isVertical&&Math.abs(z.x-A)<1);N&&(a.originalSpawnX=k==="left"?N.x-a.width-8:N.x+8+N.width,a.x=a.originalSpawnX)}const C=f?v*(f/16.67):v,b=a.y+C*a.direction;b<a.patrolStartY||b+a.height>a.patrolEndY?(a.direction*=-1,a.lastDirectionChange=l):a.y=b,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 xM{update(a,l,f,h){if(!SM(a)||f.currentState!=="PLAYING")return;const y=f.player;if(!y)return;const v=ca.getInstance(),C=v.getMonsterScaledValues(a);v.getBaseValues();const b=v.getMonsterAge(a);if(b<2&&Ge.debug(`Chaser scaling - Age: ${b.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 T=f.platforms||[],_=C.chaser.directness*(a.directnessMultiplier||1),k=C.chaser.updateInterval*(a.updateIntervalMultiplier||1);if(l-(a.lastDirectionChange||l)>k){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.chaseTargetY=ce+(y.y+Re-ce)*_,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,T,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,T,f.ground)}}applyMovement(a,l,f,h,y,v,C){const b=a.x+l,T=a.y+f,_=hi.isMovementSafe(a,b,a.y,v),k=hi.isMovementSafe(a,a.x,T,v);_&&(a.x=b),k&&(a.y=T),this.handleGroundCollision(a,C),!_&&!k&&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 T=Math.random()>.5?[1,-1]:[-1,1];for(const N of T){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 _=Math.sign(y)*-1,k=a.x+_*a.speed;let A=!0;for(const N of h)if(hi.checkMonsterPlatformCollision({...a,x:k},N)){A=!1;break}if(A){a.x=k;return}}else{const T=Math.random()>.5?[1,-1]:[-1,1];for(const N of T){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 _=Math.sign(v)*-1,k=a.y+_*a.speed;let A=!0;for(const N of h)if(hi.checkMonsterPlatformCollision({...a,y:k},N)){A=!1;break}if(A){a.y=k;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 b of l)if(hi.checkMonsterPlatformCollision({...a,x:y,y:v},b)){C=!1;break}if(C){a.x=y,a.y=v;return}}}}class CM{update(a,l,f,h){if(!wM(a)||f.currentState!=="PLAYING")return;const y=f.player;if(!y)return;const v=ca.getInstance(),C=v.getMonsterScaledValues(a);v.getBaseValues();const b=v.getMonsterAge(a);b<2&&Ge.debug(`Ambusher scaling - Age: ${b.toFixed(1)}s, Speed: ${C.ambusher.speed.toFixed(2)}`),a.behaviorState||(a.behaviorState="wandering",a.lastDirectionChange=l,a.ambushCooldown=2e3);const T=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 k=C.ambusher.speed*.5,A=h?k*(h/16.67):k,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+A*ue,le=a.y+A*ce;hi.isMovementSafeWithGround(a,fe,le,T,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 _=C.ambusher.speed*3,k=h?_*(h/16.67):_,A=a.ambushTargetX||a.x,N=a.ambushTargetY||a.y,z=Math.sqrt((A-a.x)**2+(N-a.y)**2);if(z>5){const G=A-a.x,J=N-a.y,de=G/z,ue=J/z,ce=a.x+k*de,fe=a.y+k*ue;hi.isMovementSafeWithGround(a,ce,fe,T,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 EM{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 b=Math.sqrt(a.velocityX*a.velocityX+a.velocityY*a.velocityY);if(b>0){const J=v.floater.speed/b;a.velocityX*=J,a.velocityY*=J}const T=h?h/16.67:1,_=a.x+a.velocityX*T,k=a.y+a.velocityY*T,A=Ft.getState(),N=A.platforms||[];let z=!0,G={x:0,y:0};for(const J of N)if(hi.checkMonsterPlatformCollision({...a,x:_,y:k},J)){z=!1,G=this.calculateCollisionNormal(a,J);break}(_<=0||_+a.width>=H.CANVAS_WIDTH||k<=0||k+a.height>=H.CANVAS_HEIGHT)&&(z=!1,G=this.calculateBoundaryCollisionNormal(a,_,k)),A.ground&&hi.checkMonsterPlatformCollision({...a,x:_,y:k},A.ground)&&(z=!1,G=this.calculateCollisionNormal(a,A.ground)),z?(a.x=_,a.y=k):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,b=h-v,T=Math.sqrt(C*C+b*b);if(T>.1)return{x:C/T,y:b/T};{const _=Math.abs(a.x+a.width-l.x),k=Math.abs(a.x-(l.x+l.width)),A=Math.abs(a.y+a.height-l.y),N=Math.abs(a.y-(l.y+l.height)),z=Math.min(_,k,A,N);return z===_?{x:-1,y:0}:z===k?{x:1,y:0}:z===A?{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),b=Math.atan2(a.velocityY,a.velocityX)+y;a.velocityX=Math.cos(b)*v,a.velocityY=Math.sin(b)*v}}class TM{constructor(){be(this,"patrolMovement");be(this,"chaserMovement");be(this,"ambusherMovement");be(this,"floaterMovement");this.patrolMovement=new bM,this.chaserMovement=new xM,this.ambusherMovement=new CM,this.floaterMovement=new EM}updateMonsterBehaviors(a,l,f){l.monsters&&l.monsters.forEach(h=>{if(!(!h.isActive||h.isFrozen)){switch(h.type){case kn.HORIZONTAL_PATROL:case kn.VERTICAL_PATROL:this.patrolMovement.update(h,a,l,f);break;case kn.CHASER:this.chaserMovement.update(h,a,l,f);break;case kn.AMBUSHER:this.ambusherMovement.update(h,a,l,f);break;case kn.FLOATER:this.floaterMovement.update(h,a,l,f);break}hi.clampToBoundaries(h)}})}}class RM{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 TM,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 b=(C.scheduledTime-h)/1e3;try{const T=C.spawnPoint.createMonster();Ge.info(` - ${T.type} in ${b.toFixed(1)}s (scheduled: ${C.scheduledTime}, current: ${h})`)}catch(T){Ge.error(` - Failed to create monster: ${T}`)}})}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 MM{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(`${Il.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 kM{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 _M{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 sM,this.collisionManager=new uM,this.renderManager=new yM(a),this.audioManager=new MM,this.animationController=new kM(Sp),this.scalingManager=ca.getInstance(),this.monsterRespawnManager=zv.getInstance(),this.monsterSpawnManager=new RM,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()}FR(),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 k=v?H.SUPER_JUMP_POWER:H.JUMP_POWER;f.velocityY=-k*.6}if(y&&f.isJumping&&f.velocityY<0){const k=Date.now()-f.jumpStartTime;if(k<=H.MAX_JUMP_DURATION){const A=Math.min(k/H.MAX_JUMP_DURATION,1),z=-(v?H.SUPER_JUMP_POWER:H.JUMP_POWER)*(.6+.4*A);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 b=f.isFloating&&f.velocityY>=0?f.floatGravity:f.gravity;f.velocityY+=b,f.y+=f.velocityY;const T={width:H.CANVAS_WIDTH,height:H.CANVAS_HEIGHT},_=this.collisionManager.resolveBoundaryCollision(f,T);if(_.fellOffScreen){l.loseLife();return}f=_.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(b=>b.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,b=this.collisionManager.checkPlayerPlatformCollision(l,f);if(b.hasCollision&&b.normal&&b.penetration){const A={...l};b.normal.y===-1?(A.y=A.y-b.penetration,A.velocityY=0,A.isGrounded=!0):b.normal.y===1?(A.y=A.y+b.penetration,A.velocityY=0):b.normal.x===1?(A.x=A.x+b.penetration,A.velocityX=0):b.normal.x===-1&&(A.x=A.x-b.penetration,A.velocityX=0),a.updatePlayer(A)}if(v){const A=this.collisionManager.checkPlayerGroundCollision(l,v);if(A.hasCollision&&A.normal&&A.penetration){const N={...l};A.normal.y===-1?(N.y=N.y-A.penetration,N.velocityY=0,N.isGrounded=!0):A.normal.y===1?(N.y=N.y+A.penetration,N.velocityY=0):A.normal.x===1?(N.x=N.x+A.penetration,N.velocityX=0):A.normal.x===-1&&(N.x=N.x-A.penetration,N.velocityX=0),a.updatePlayer(N)}}const T=this.collisionManager.checkPlayerBombCollision(l,h);if(T){this.audioManager.playSound(ua.BOMB_COLLECT);const A=a.collectBomb(T.order);A&&A.isCorrect&&a.onFirebombCollected()}const _=this.collisionManager.checkPlayerCoinCollision(l,C);_&&(this.audioManager.playSound(ua.COIN_COLLECT),a.collectCoin(_),_.type==="POWER"&&this.audioManager.playSound(ua.POWER_COIN_ACTIVATE));const k=this.collisionManager.checkPlayerMonsterCollision(l,y);if(k)if(a.activeEffects.powerMode){const A=a.coinManager?.calculateMonsterKillPoints(a.multiplier)||H.MONSTER_KILL_POINTS*a.multiplier;if(a.addScore(A),a.addFloatingText){const N=A.toString();a.addFloatingText(N,k.x+k.width/2,k.y+k.height/2,1e3,"#fff",15)}a.coinManager&&a.coinManager.onPointsEarned(A,!1),Pe.debug(`Monster killed during power mode: ${A} points`),this.audioManager.playSound(ua.COIN_COLLECT),this.monsterRespawnManager.killMonster(k)}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 b={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};ux(b)}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(b=>{const T=new CustomEvent("sigurd-startup-fullscreen-change",{detail:{isFullscreen:b,timestamp:Date.now(),gameId:"sigurd-startup-game"},bubbles:!0,cancelable:!0});window.dispatchEvent(T),document.dispatchEvent(T),Pe.debug(`Fullscreen event dispatched: ${b?"entered":"exited"}`)},[]),f=()=>!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled),h=()=>document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement,y=Q.useCallback(async b=>{if(!f())return console.warn("Fullscreen is not supported in this browser"),!1;const T=b||document.documentElement;try{return T.requestFullscreen?await T.requestFullscreen():T.webkitRequestFullscreen?await T.webkitRequestFullscreen():T.mozRequestFullScreen?await T.mozRequestFullScreen():T.msRequestFullscreen&&await T.msRequestFullscreen(),!0}catch(_){return console.error("Error entering fullscreen:",_),!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(b){return console.error("Error exiting fullscreen:",b),!1}},[]),C=Q.useCallback(async b=>{c?await v()&&(a(!1),l(!1)):await y(b)&&(a(!0),l(!0))},[c,y,v,l]);return Q.useEffect(()=>{const b=()=>{const _=!!h();_!==c&&(a(_),l(_))};return document.addEventListener("fullscreenchange",b),document.addEventListener("webkitfullscreenchange",b),document.addEventListener("mozfullscreenchange",b),document.addEventListener("MSFullscreenChange",b),b(),()=>{document.removeEventListener("fullscreenchange",b),document.removeEventListener("webkitfullscreenchange",b),document.removeEventListener("mozfullscreenchange",b),document.removeEventListener("MSFullscreenChange",b)}},[c,l]),{isFullscreen:c,isFullscreenSupported:f(),enterFullscreen:y,exitFullscreen:v,toggleFullscreen:C}},AM=({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 _M(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,b=window.innerWidth,T=window.innerHeight,_=b/T;let k,A;_>C?(A=T*.9,k=A*C):(k=b*.9,A=k/C),y({width:`${k}px`,height:`${A}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 wx(c,a){if(typeof c=="function")return c(a);c!=null&&(c.current=a)}function bx(...c){return a=>{let l=!1;const f=c.map(h=>{const y=wx(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():wx(c[h],null)}}}}function ju(...c){return Q.useCallback(bx(...c),c)}function xx(c){const a=NM(c),l=Q.forwardRef((f,h)=>{const{children:y,...v}=f,C=Q.Children.toArray(y),b=C.find(LM);if(b){const T=b.props.children,_=C.map(k=>k===b?Q.Children.count(T)>1?Q.Children.only(null):Q.isValidElement(T)?T.props.children:null:k);return I.jsx(a,{...v,ref:h,children:Q.isValidElement(T)?Q.cloneElement(T,void 0,_):null})}return I.jsx(a,{...v,ref:h,children:y})});return l.displayName=`${c}.Slot`,l}var OM=xx("Slot");function NM(c){const a=Q.forwardRef((l,f)=>{const{children:h,...y}=l;if(Q.isValidElement(h)){const v=IM(h),C=PM(y,h.props);return h.type!==Q.Fragment&&(C.ref=f?bx(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 Cx=Symbol("radix.slottable");function DM(c){const a=({children:l})=>I.jsx(I.Fragment,{children:l});return a.displayName=`${c}.Slottable`,a.__radixId=Cx,a}function LM(c){return Q.isValidElement(c)&&typeof c.type=="function"&&"__radixId"in c.type&&c.type.__radixId===Cx}function PM(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 b=y(...C);return h(...C),b}:h&&(l[f]=h):f==="style"?l[f]={...h,...y}:f==="className"&&(l[f]=[h,y].filter(Boolean).join(" "))}return{...c,...l}}function IM(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 Ex(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=Ex(c[a]))&&(f&&(f+=" "),f+=l)}else for(l in c)c[l]&&(f&&(f+=" "),f+=l);return f}function Tx(){for(var c,a,l=0,f="",h=arguments.length;l<h;l++)(c=arguments[l])&&(a=Ex(c))&&(f&&(f+=" "),f+=a);return f}const Rx=c=>typeof c=="boolean"?`${c}`:c===0?"0":c,Mx=Tx,UM=(c,a)=>l=>{var f;if(a?.variants==null)return Mx(c,l?.class,l?.className);const{variants:h,defaultVariants:y}=a,v=Object.keys(h).map(T=>{const _=l?.[T],k=y?.[T];if(_===null)return null;const A=Rx(_)||Rx(k);return h[T][A]}),C=l&&Object.entries(l).reduce((T,_)=>{let[k,A]=_;return A===void 0||(T[k]=A),T},{}),b=a==null||(f=a.compoundVariants)===null||f===void 0?void 0:f.reduce((T,_)=>{let{class:k,className:A,...N}=_;return Object.entries(N).every(z=>{let[G,J]=z;return Array.isArray(J)?J.includes({...y,...C}[G]):{...y,...C}[G]===J})?[...T,k,A]:T},[]);return Mx(c,v,b,l?.class,l?.className)},n0="-",zM=c=>{const a=jM(c),{conflictingClassGroups:l,conflictingClassGroupModifiers:f}=c;return{getClassGroupId:v=>{const C=v.split(n0);return C[0]===""&&C.length!==1&&C.shift(),kx(C,a)||FM(v)},getConflictingClassGroupIds:(v,C)=>{const b=l[v]||[];return C&&f[v]?[...b,...f[v]]:b}}},kx=(c,a)=>{if(c.length===0)return a.classGroupId;const l=c[0],f=a.nextPart.get(l),h=f?kx(c.slice(1),f):void 0;if(h)return h;if(a.validators.length===0)return;const y=c.join(n0);return a.validators.find(({validator:v})=>v(y))?.classGroupId},_x=/^\[(.+)\]$/,FM=c=>{if(_x.test(c)){const a=_x.exec(c)[1],l=a?.substring(0,a.indexOf(":"));if(l)return"arbitrary.."+l}},jM=c=>{const{theme:a,classGroups:l}=c,f={nextPart:new Map,validators:[]};for(const h in l)r0(l[h],f,h,a);return f},r0=(c,a,l,f)=>{c.forEach(h=>{if(typeof h=="string"){const y=h===""?a:Ax(a,h);y.classGroupId=l;return}if(typeof h=="function"){if(BM(h)){r0(h(f),a,l,f);return}a.validators.push({validator:h,classGroupId:l});return}Object.entries(h).forEach(([y,v])=>{r0(v,Ax(a,y),l,f)})})},Ax=(c,a)=>{let l=c;return a.split(n0).forEach(f=>{l.nextPart.has(f)||l.nextPart.set(f,{nextPart:new Map,validators:[]}),l=l.nextPart.get(f)}),l},BM=c=>c.isThemeGetter,HM=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)}}},a0="!",i0=":",VM=i0.length,$M=c=>{const{prefix:a,experimentalParseClassName:l}=c;let f=h=>{const y=[];let v=0,C=0,b=0,T;for(let z=0;z<h.length;z++){let G=h[z];if(v===0&&C===0){if(G===i0){y.push(h.slice(b,z)),b=z+VM;continue}if(G==="/"){T=z;continue}}G==="["?v++:G==="]"?v--:G==="("?C++:G===")"&&C--}const _=y.length===0?h:h.substring(b),k=GM(_),A=k!==_,N=T&&T>b?T-b:void 0;return{modifiers:y,hasImportantModifier:A,baseClassName:k,maybePostfixModifierPosition:N}};if(a){const h=a+i0,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},GM=c=>c.endsWith(a0)?c.substring(0,c.length-1):c.startsWith(a0)?c.substring(1):c,YM=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}},WM=c=>({cache:HM(c.cacheSize),parseClassName:$M(c),sortModifiers:YM(c),...zM(c)}),XM=/\s+/,KM=(c,a)=>{const{parseClassName:l,getClassGroupId:f,getConflictingClassGroupIds:h,sortModifiers:y}=a,v=[],C=c.trim().split(XM);let b="";for(let T=C.length-1;T>=0;T-=1){const _=C[T],{isExternal:k,modifiers:A,hasImportantModifier:N,baseClassName:z,maybePostfixModifierPosition:G}=l(_);if(k){b=_+(b.length>0?" "+b:b);continue}let J=!!G,de=f(J?z.substring(0,G):z);if(!de){if(!J){b=_+(b.length>0?" "+b:b);continue}if(de=f(z),!de){b=_+(b.length>0?" "+b:b);continue}J=!1}const ue=y(A).join(":"),ce=N?ue+a0: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)}b=_+(b.length>0?" "+b:b)}return b};function QM(){let c=0,a,l,f="";for(;c<arguments.length;)(a=arguments[c++])&&(l=Ox(a))&&(f&&(f+=" "),f+=l);return f}const Ox=c=>{if(typeof c=="string")return c;let a,l="";for(let f=0;f<c.length;f++)c[f]&&(a=Ox(c[f]))&&(l&&(l+=" "),l+=a);return l};function qM(c,...a){let l,f,h,y=v;function v(b){const T=a.reduce((_,k)=>k(_),c());return l=WM(T),f=l.cache.get,h=l.cache.set,y=C,C(b)}function C(b){const T=f(b);if(T)return T;const _=KM(b,l);return h(b,_),_}return function(){return y(QM.apply(null,arguments))}}const Sr=c=>{const a=l=>l[c]||[];return a.isThemeGetter=!0,a},Nx=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Dx=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ZM=/^\d+\/\d+$/,JM=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ek=/\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$/,tk=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,nk=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,rk=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,mf=c=>ZM.test(c),jt=c=>!!c&&!Number.isNaN(Number(c)),js=c=>!!c&&Number.isInteger(Number(c)),o0=c=>c.endsWith("%")&&jt(c.slice(0,-1)),Ul=c=>JM.test(c),ak=()=>!0,ik=c=>ek.test(c)&&!tk.test(c),Lx=()=>!1,ok=c=>nk.test(c),lk=c=>rk.test(c),sk=c=>!Ke(c)&&!Qe(c),uk=c=>gf(c,Fx,Lx),Ke=c=>Nx.test(c),Bu=c=>gf(c,jx,ik),l0=c=>gf(c,hk,jt),Px=c=>gf(c,Ux,Lx),ck=c=>gf(c,zx,lk),Fv=c=>gf(c,Bx,ok),Qe=c=>Dx.test(c),xp=c=>yf(c,jx),fk=c=>yf(c,vk),Ix=c=>yf(c,Ux),dk=c=>yf(c,Fx),pk=c=>yf(c,zx),jv=c=>yf(c,Bx,!0),gf=(c,a,l)=>{const f=Nx.exec(c);return f?f[1]?a(f[1]):l(f[2]):!1},yf=(c,a,l=!1)=>{const f=Dx.exec(c);return f?f[1]?a(f[1]):l:!1},Ux=c=>c==="position"||c==="percentage",zx=c=>c==="image"||c==="url",Fx=c=>c==="length"||c==="size"||c==="bg-size",jx=c=>c==="length",hk=c=>c==="number",vk=c=>c==="family-name",Bx=c=>c==="shadow",mk=qM(()=>{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"),b=Sr("spacing"),T=Sr("radius"),_=Sr("shadow"),k=Sr("inset-shadow"),A=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,b],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],ke=()=>[...fe(),Ix,Px,{position:[Qe,Ke]}],Ce=()=>["no-repeat",{repeat:["","x","y","space","round"]}],V=()=>["auto","cover","contain",dk,uk,{size:[Qe,Ke]}],oe=()=>[o0,xp,Bu],Be=()=>["","none","full",T,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,o0,Ix,Px],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:[Ul],breakpoint:[Ul],color:[ak],container:[Ul],"drop-shadow":[Ul],ease:["in","out","in-out"],font:[sk],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ul],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ul],shadow:[Ul],spacing:["px",jt],text:[Ul],"text-shadow":[Ul],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,l0]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",o0,Ke]}],"font-family":[{font:[fk,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,l0]}],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:ke()}],"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]},pk,ck]}],"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",_,jv,Fv]}],"shadow-color":[{shadow:$()}],"inset-shadow":[{"inset-shadow":["none",k,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",A,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:ke()}],"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,l0]}],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 Hx(...c){return mk(Tx(c))}const gk=UM("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?OM:"button";return I.jsx(v,{className:Hx(gk({variant:a,size:l,className:c})),ref:y,...h})});vi.displayName="Button";/**
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=q1(e,jg,null,i,o,u,p);Dg(g.current,e);var w=e.nodeType===Xn?e.parentNode:e;return Ph(w),new Vb(g)}function Gy(e){this._internalRoot=e}function RP(e){e&&tg(e)}Gy.prototype.unstable_scheduleHydration=RP;function MP(e,t,i){if(!Yy(e))throw new Error("hydrateRoot(...): Target container is not a DOM element.");SR(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=yR;i!=null&&(i.unstable_strictMode===!0&&(p=!0),i.identifierPrefix!==void 0&&(w=i.identifierPrefix),i.onRecoverableError!==void 0&&(b=i.onRecoverableError));var M=Z1(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];OD(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 SR(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 kP=l.ReactCurrentOwner,wR;wR=function(e){if(e._reactRootContainer&&e.nodeType!==Xn){var t=eR(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=$b(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 $b(e){return e?e.nodeType===xo?e.documentElement:e.firstChild:null}function bR(){}function _P(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=Z1(t,o,e,Ru,null,!1,!1,"",bR);e._reactRootContainer=g,Dg(g.current,e);var w=e.nodeType===Xn?e.parentNode:e;return Ph(w),Ns(),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=q1(e,Ru,null,!1,!1,"",bR);e._reactRootContainer=O,Dg(O.current,e);var B=e.nodeType===Xn?e.parentNode:e;return Ph(B),Ns(function(){_v(t,O,i,o)}),O}}function AP(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){wR(i),AP(u===void 0?null:u,"render");var p=i._reactRootContainer,g;if(!p)g=_P(i,t,e,u,o);else{if(g=p,typeof u=="function"){var w=u;u=function(){var b=$y(g);w.call(b)}}_v(t,g,e,u)}return $y(g)}var xR=!1;function OP(e){{xR||(xR=!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=kP.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:vP(e,"findDOMNode")}function NP(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 DP(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 LP(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||!B0(e))throw new Error("parentComponent must be a valid React Component");return Wy(e,t,i,!1,o)}var CR=!1;function PP(e){if(CR||(CR=!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=$b(e),o=i&&!Eu(i);o&&v("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return Ns(function(){Wy(null,null,e,!1,function(){e._reactRootContainer=null,yE(e)})}),!0}else{{var u=$b(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(mP),vu(gP),qm(yP),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(UO),j0(bb,ML,Ns);function IP(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 hP(e,t,null,i)}function UP(e,t,i,o){return LP(e,t,i,o)}var Gb={usingClientEntryPoint:!1,Events:[Eu,zd,Lg,au,Uf,bb]};function zP(e,t){return Gb.usingClientEntryPoint||v('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),TP(e,t)}function FP(e,t,i){return Gb.usingClientEntryPoint||v('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),MP(e,t,i)}function jP(e){return A1()&&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."),Ns(e)}var BP=EP({findFiberByHostInstance:Wc,bundleType:1,version:zb,rendererPackageName:"react-dom"});if(!BP&&gn&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var ER=window.location.protocol;/^(https?|file):$/.test(ER)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(ER==="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=Gb,Ga.createPortal=IP,Ga.createRoot=zP,Ga.findDOMNode=OP,Ga.flushSync=jP,Ga.hydrate=NP,Ga.hydrateRoot=FP,Ga.render=DP,Ga.unmountComponentAtNode=PP,Ga.unstable_batchedUpdates=bb,Ga.unstable_renderSubtreeIntoContainer=UP,Ga.version=zb,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),Ga}function rx(){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(rx)}catch(c){console.error(c)}}}process.env.NODE_ENV==="production"?(rx(),Ky.exports=OR()):Ky.exports=NR();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),ax=di({__proto__:null,default:Pv},[Q]),ix=c=>{let a;const l=new Set,f=(R,A)=>{const k=typeof R=="function"?R(a):R;if(!Object.is(k,a)){const _=a;a=A??(typeof k!="object"||k===null)?k:Object.assign({},a,k),l.forEach(N=>N(a,_))}},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},DR=c=>c?ix(c):ix,LR=c=>c;function PR(c,a=LR){const l=Pv.useSyncExternalStore(c.subscribe,()=>a(c.getState()),()=>a(c.getInitialState()));return Pv.useDebugValue(l),l}const ox=c=>{const a=DR(c),l=f=>PR(a,f);return Object.assign(l,a),l},IR=c=>c?ox(c):ox,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}},lx={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"},sx=()=>({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}),UR=(c,a)=>({player:sx(),updatePlayer:l=>{c({player:{...a().player,...l}})},resetPlayer:()=>{c({player:sx()})},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||{}),kn=(c=>(c.HORIZONTAL_PATROL="HORIZONTAL_PATROL",c.VERTICAL_PATROL="VERTICAL_PATROL",c.CHASER="CHASER",c.AMBUSHER="AMBUSHER",c.FLOATER="FLOATER",c))(kn||{}),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 zR{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 zR,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)},FR=(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)},jR=()=>{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)},ux=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)},BR=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)},HR=(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),k=v-y,_=c.length>0?k/c.length/1e3:0;return{totalBombs:C,totalCorrectOrders:x,totalCoinsCollected:R,totalPowerModeActivations:A,averageCompletionTime:Math.round(_),totalPlayTime:Math.round(k/1e3)}},VR=c=>{switch(c){case kn.HORIZONTAL_PATROL:return rr.MONSTER_HORIZONTAL_PATROL;case kn.VERTICAL_PATROL:return rr.MONSTER_VERTICAL_PATROL;case kn.CHASER:return rr.MONSTER_CHASER;case kn.AMBUSHER:return rr.MONSTER_AMBUSHER;case kn.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:VR(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,kn.HORIZONTAL_PATROL,y,C),patrolStartX:c,patrolEndX:c+l,direction:A,walkLengths:h}},Ps=(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,kn.VERTICAL_PATROL,h,v),patrolStartY:a,patrolEndY:a+l,direction:y,patrolSide:f,targetPlatformX:c}},Is=(c,a,l=45,f=1,h=0)=>({...vp(c,a,kn.FLOATER,f,h),startAngle:l,spawnTime:Date.now()}),ff=(c,a,l=.8,f=.2,h=200,y=0)=>({...vp(c,a,kn.CHASER,l,y),direction:0,directness:f,chaseUpdateInterval:h}),df=(c,a,l=.8,f=8e3,h=0)=>({...vp(c,a,kn.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}),Us=c=>(H.CANVAS_WIDTH-c)/2,zs=c=>(H.CANVAS_HEIGHT-c)/2,hf=(c,a)=>({x:Us(c),y:zs(a)}),$R={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:Us(H.COIN_SIZE),y:zs(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:[Ps(105,220,220,"right"),Ps(695,220,220,"right",2,1),pi(170,170,200,"left"),ff(250,300,1,.3,1e3)]},GR={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),Is(50,300,45,1),Is(750,500,155,1)]},YR={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:()=>Is(Us(H.MONSTER_SIZE),zs(H.MONSTER_SIZE),150,1)},{spawnDelay:6e3,createMonster:()=>Is(Us(H.MONSTER_SIZE),zs(H.MONSTER_SIZE),50,1)},{spawnDelay:5e3,createMonster:()=>df(50,550,1,8e3)}]},WR={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:()=>Is(Us(H.MONSTER_SIZE),zs(H.MONSTER_SIZE),65,1)},{spawnDelay:6e3,createMonster:()=>Is(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(Us(H.MONSTER_SIZE),zs(H.MONSTER_SIZE),3,.5)},{spawnDelay:9e3,createMonster:()=>ff(590,400,3,.5)}],monsters:[Ps(500,170,350,"right"),Ps(240,60,340,"right"),pi(90,500,200,"left"),pi(90,45,150,"right")]},XR={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:[Ps(520,200,350,"right"),Ps(225,200,350,"right"),Ps(520,20,350,"right"),Ps(225,20,350,"right"),pi(0,550,800,"left")],monsterSpawnPoints:[{spawnDelay:5e3,createMonster:()=>df(700,150)},{spawnDelay:7e3,createMonster:()=>Is(100,150)},{spawnDelay:1e4,createMonster:()=>ff(Us(H.MONSTER_SIZE),zs(H.MONSTER_SIZE+200))},{spawnDelay:15e3,createMonster:()=>Is(Us(H.MONSTER_SIZE),zs(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,kn.HORIZONTAL_PATROL,H.CANVAS_HEIGHT-130,H.MONSTER_SIZE,H.MONSTER_SIZE,rr.MONSTER,kn.HORIZONTAL_PATROL,H.CANVAS_HEIGHT-170,H.MONSTER_SIZE,H.MONSTER_SIZE,rr.MONSTER,kn.HORIZONTAL_PATROL,H.CANVAS_HEIGHT-290,H.MONSTER_SIZE,H.MONSTER_SIZE,rr.MONSTER,kn.HORIZONTAL_PATROL,H.CANVAS_HEIGHT-350,H.MONSTER_SIZE,H.MONSTER_SIZE,rr.MONSTER,kn.HORIZONTAL_PATROL,H.CANVAS_HEIGHT-100,It.POWER,H.CANVAS_HEIGHT-140,It.POWER;const KR={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=[$R,GR,YR,WR,XR,KR],QR=(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)}`,k=HR(C,a().score,f,x,"failed",R,Date.now()),_={finalScore:a().score,totalLevels:vf.length,completedLevels:C.length,timestamp:Date.now(),lives:f,multiplier:x,levelHistory:C,totalCoinsCollected:k.totalCoinsCollected,totalPowerModeActivations:k.totalPowerModeActivations,totalBombs:k.totalBombs,totalCorrectOrders:k.totalCorrectOrders,averageCompletionTime:k.averageCompletionTime,gameEndReason:"failed",sessionId:A,startTime:R,endTime:Date.now()};BR(_)}},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;FR(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})}}),qR=(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}},ZR=c=>{const{actualPoints:a,isFirebomb:l,multiplier:f}=c;return`🎯 Score: +${a} (${l?"Firebomb":"Normal"} x${f})`},JR=(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))},eM=(c,a)=>({bombs:[],collectedBombs:[],correctOrderCount:0,nextBombOrder:1,bombManager:null,collectBomb:l=>{const{bombs:f,bombManager:h}=a(),y=f.find(_=>_.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=qR(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(ZR(A)),C&&"addFloatingText"in x){const _=f.find(N=>N.order===l);if(_){const N=`${A.actualPoints}`;x.addFloatingText(N,_.x+_.width/2,_.y+_.height/2,1e3,"#FFD700",15)}}const k=f.map(_=>{if(_.order===l)return{..._,isCollected:!0,isCorrect:v.isCorrect};const N=h.getActiveGroup(),z=h.getNextBombOrder(),G=N!==null&&z!==null&&_.group===N&&_.order===z&&!_.isCollected;return{..._,isBlinking:G}});return c({bombs:k,correctOrderCount:h.getCorrectOrderCount(),collectedBombs:Array.from(h.getCollectedBombs()).map(_=>{const[N,z]=_.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 tM{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 nM=(c,a)=>({currentMap:null,levelStartTime:0,levelCompletionTime:null,monsters:[],platforms:[],ground:null,initializeLevel:l=>{const f=new tM(l.bombs),y=[...l.bombs].sort((x,R)=>x.group-R.group||x.order-R.order)[0],v=x=>{switch(x){case kn.HORIZONTAL_PATROL:return rr.MONSTER;case kn.VERTICAL_PATROL:return"#FF6B6B";case kn.CHASER:return"#FFD93D";case kn.AMBUSHER:return"#FF8800";case kn.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),ux(y)}}),rM=(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}),aM=(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})}}),iM=(c,a)=>({audioSettings:lx,audioManager:null,updateAudioSettings:l=>{c({audioSettings:{...a().audioSettings,...l}});const f=a().audioManager;f&&f.updateVolumes&&f.updateVolumes()},resetAudioSettings:()=>{c({audioSettings:lx});const l=a().audioManager;l&&l.updateVolumes&&l.updateVolumes()},setAudioManager:l=>{c({audioManager:l})}}),oM=(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),k=C.totalExtraLifeCoinsCollected+(l.type==="EXTRA_LIFE"?1:0);c({coins:h,activeEffects:v,totalCoinsCollected:x,totalPowerCoinsCollected:R,totalBonusMultiplierCoinsCollected:A,totalExtraLifeCoinsCollected:k});const _=a();if(l.type==="POWER")"addScore"in _&&_.addScore(H.POWER_COIN_POINTS);else if(l.type==="BONUS_MULTIPLIER"){if("addScore"in _&&"multiplier"in _){const N=_.multiplier,z=1e3*N;if(_.addScore(z),N<H.MAX_MULTIPLIER&&"addMultiplierScore"in _&&"multiplierScore"in _){const{MULTIPLIER_THRESHOLDS:G}=H,J=G[N+1];if(J!==void 0){const de=J-_.multiplierScore;_.addMultiplierScore(de)}}}}else if(l.type==="EXTRA_LIFE"&&"addScore"in _&&"multiplier"in _&&"addLife"in _){const N=_.multiplier,z=H.EXTRA_LIFE_COIN_POINTS*N;_.addScore(z),_.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}})}}),lM=(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,k=R.y,_=A>=k&&A<=k+4,N=c.x<R.x+R.width&&c.x+c.width>R.x;if(_&&N){C=!0,x=R,c.y=k-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}],Fs={[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,k=a.x+a.width,_=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(k-z),ce=Math.abs(A-G),fe=Math.abs(N-J),le=Math.abs(_-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),k=Math.abs(a.x-(l.x+l.width)),_=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===k?{x:1,y:0}:z===_?{x:0,y:-1}:{x:0,y:1}}}}class sM{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=Fs[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=Fs[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=Fs.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(Fs).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(Fs).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=Fs[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 Fs[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=IR((c,a,l)=>{const f=UR(c,a),h=QR(c,a),y=eM(c,a),v=nM(c,a),C=rM(c,a),x=aM(c,a),R=iM(c,a),A=oM(c,a),k=lM(c);return{...f,...h,...y,...v,...C,...x,...R,...A,...k,resetGame:()=>{a().resetGameState(),a().resetPlayer(),a().resetBombState(),a().resetLevelState(),a().resetLevelHistory(),a().resetMultiplier(),a().resetAudioSettings(),a().resetCoinState(),a().resetEffects(),a().clearAllFloatingTexts()},initializeLevel:_=>{const{bombManager:N,firstBomb:z}=v.initializeLevel(_),G=_.bombs.map(de=>({...de,isBlinking:!1,isCollected:!1,isCorrect:!1}));a().setBombs(G),a().setBombManager(N);const J=new sM(_.coinSpawnPoints||[]);return a().setCoinManager(J),c({collectedBombs:[],correctOrderCount:0,nextBombOrder:1}),a().setPlayerPosition(_.playerStart.x,_.playerStart.y),{bombManager:N,firstBomb:z}},getLevelHistory:()=>C.getLevelResults(),getGameStartTime:()=>C.getGameStartTime(),getSessionId:()=>C.getSessionId()}});class uM{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 cM{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,k=(a.width+l.width)/2-Math.abs(R),_=(a.height+l.height)/2-Math.abs(A);return k<_?R>0?{hasCollision:!0,normal:{x:1,y:0},penetration:k}:{hasCollision:!0,normal:{x:-1,y:0},penetration:k}:A>0?{hasCollision:!0,normal:{x:0,y:1},penetration:_}:{hasCollision:!0,normal:{x:0,y:-1},penetration:_}}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 cx{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 fx=!1,Jy=(console.log("Assets are inlined in production - no external paths needed"),""),Il={audio:`${Jy}/audio`,images:`${Jy}/assets`},dx=c=>{const a=`${Il.images}/maps-bg-images/${c}.png`;return console.log(`Background image path: ${a}`),a},fM=()=>{console.log("🔧 Asset Path Debug Info:"),console.log(" isDev:",fx),console.log(" packageBaseUrl:",Jy),console.log(" ASSET_PATHS:",Il),console.log(" current location:",window.location.href),console.log(" current pathname:",window.location.pathname),console.log(" Assets are inlined in production:",!fx)},Ir=c=>{const a=new Image;return a.src=`${Il.images}/${c}`,a},px=[Ir("sigurd-idle/sigurd-idle1.png"),Ir("sigurd-idle/sigurd-idle2.png"),Ir("sigurd-idle/sigurd-idle3.png"),Ir("sigurd-idle/sigurd-idle4.png")],hx=[Ir("running/run1.png"),Ir("running/run2.png"),Ir("running/run3.png")],vx=[Ir("jumping/jump1.png"),Ir("jumping/jump2.png"),Ir("jumping/jump3.png")],dM=[Ir("complete/complete1.png"),Ir("complete/complete2.png"),Ir("complete/complete3.png"),Ir("complete/complete4.png"),Ir("complete/complete5.png")],pM=[Ir("float/float1.png")],mx=[Ir("float-dir/float-dir1.png")],gx=[Ir("landing/landing1.png")],hM=[{name:"walk-right",frames:hx,frameDuration:100,loop:!0},{name:"walk-left",frames:hx,frameDuration:100,loop:!0},{name:"idle-right",frames:px,frameDuration:1e3,loop:!0},{name:"idle-left",frames:px,frameDuration:1e3,loop:!0},{name:"jump-right",frames:vx,frameDuration:100,loop:!1},{name:"jump-left",frames:vx,frameDuration:100,loop:!1},{name:"land-right",frames:gx,frameDuration:500,loop:!1},{name:"land-left",frames:gx,frameDuration:500,loop:!1},{name:"float-stationary",frames:pM,frameDuration:100,loop:!0},{name:"float-right",frames:mx,frameDuration:100,loop:!1},{name:"float-left",frames:mx,frameDuration:100,loop:!0},{name:"ghost-complete",frames:dM,frameDuration:100,loop:!1}],Sp=new cx(hM,"idle-left"),e0=c=>{const a=new Image;return a.src=`${Il.images}/${c}`,a},vM=[e0("bomb/bomb1.png")],mM=[e0("bomb/bomb1.png"),e0("bomb/bomb2.png")],gM=[{name:"unlit",frames:vM,frameDuration:100,loop:!1},{name:"lit",frames:mM,frameDuration:100,loop:!0}];class yx extends cx{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 t0=new yx(gM,"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 Sx{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(`${Il.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=`${Il.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 yM{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 Sx(a.width,a.height),Pe.debug("RenderManager initialized with canvas")}render(a,l,f,h,y,v=[],C=[],x,R,A,k){this.currentSpawnManager=R,this.currentGameState=k;const _=Date.now(),N=_-this.lastTime;this.lastTime=_,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(t0&&H.USE_SPRITES){let f=this.bombSprites.get(l.order);if(!f){const v=[{name:"unlit",frames:t0.animations.unlit.frames,frameDuration:50,loop:!1},{name:"lit",frames:t0.animations.lit.frames,frameDuration:100,loop:!0}];f=new yx(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=Fs[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,k=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,k)}}})}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,k=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,k)}})}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 wx=c=>c.type==="HORIZONTAL_PATROL"||c.type==="VERTICAL_PATROL",SM=c=>c.type==="CHASER",wM=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 bM{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(!wx(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(),k=A.platforms||[],_=hi.findCurrentPlatform(a,k);_?(a.y=_.y-a.height,a.velocityY=0,a.isGrounded=!0):this.handleGroundCollision(a,A.ground)}updateVerticalPatrol(a,l,f){if(!wx(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||[],k=a.patrolSide||"left",_=a.targetPlatformX,N=A.find(z=>z.isVertical&&Math.abs(z.x-_)<1);N&&(a.originalSpawnX=k==="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 xM{update(a,l,f,h){if(!SM(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),k=C.chaser.updateInterval*(a.updateIntervalMultiplier||1);if(l-(a.lastDirectionChange||l)>k){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),k=hi.isMovementSafe(a,a.x,R,v);A&&(a.x=x),k&&(a.y=R),this.handleGroundCollision(a,C),!A&&!k&&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,k=a.x+A*a.speed;let _=!0;for(const N of h)if(hi.checkMonsterPlatformCollision({...a,x:k},N)){_=!1;break}if(_){a.x=k;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,k=a.y+A*a.speed;let _=!0;for(const N of h)if(hi.checkMonsterPlatformCollision({...a,y:k},N)){_=!1;break}if(_){a.y=k;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 CM{update(a,l,f,h){if(!wM(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 k=C.ambusher.speed*.5,_=h?k*(h/16.67):k,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+_*ue,le=a.y+_*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,k=h?A*(h/16.67):A,_=a.ambushTargetX||a.x,N=a.ambushTargetY||a.y,z=Math.sqrt((_-a.x)**2+(N-a.y)**2);if(z>5){const G=_-a.x,J=N-a.y,de=G/z,ue=J/z,ce=a.x+k*de,fe=a.y+k*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 EM{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,k=a.y+a.velocityY*R,_=Ft.getState(),N=_.platforms||[];let z=!0,G={x:0,y:0};for(const J of N)if(hi.checkMonsterPlatformCollision({...a,x:A,y:k},J)){z=!1,G=this.calculateCollisionNormal(a,J);break}(A<=0||A+a.width>=H.CANVAS_WIDTH||k<=0||k+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,_.ground)),z?(a.x=A,a.y=k):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),k=Math.abs(a.x-(l.x+l.width)),_=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===k?{x:1,y:0}:z===_?{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 TM{constructor(){be(this,"patrolMovement");be(this,"chaserMovement");be(this,"ambusherMovement");be(this,"floaterMovement");this.patrolMovement=new bM,this.chaserMovement=new xM,this.ambusherMovement=new CM,this.floaterMovement=new EM}updateMonsterBehaviors(a,l,f){l.monsters&&l.monsters.forEach(h=>{if(!(!h.isActive||h.isFrozen)){switch(h.type){case kn.HORIZONTAL_PATROL:case kn.VERTICAL_PATROL:this.patrolMovement.update(h,a,l,f);break;case kn.CHASER:this.chaserMovement.update(h,a,l,f);break;case kn.AMBUSHER:this.ambusherMovement.update(h,a,l,f);break;case kn.FLOATER:this.floaterMovement.update(h,a,l,f);break}hi.clampToBoundaries(h)}})}}class RM{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 TM,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 MM{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(`${Il.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 kM{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 _M{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 uM,this.collisionManager=new cM,this.renderManager=new yM(a),this.audioManager=new MM,this.animationController=new kM(Sp),this.scalingManager=ca.getInstance(),this.monsterRespawnManager=zv.getInstance(),this.monsterSpawnManager=new RM,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()}jR(),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 k=v?H.SUPER_JUMP_POWER:H.JUMP_POWER;f.velocityY=-k*.6}if(y&&f.isJumping&&f.velocityY<0){const k=Date.now()-f.jumpStartTime;if(k<=H.MAX_JUMP_DURATION){const _=Math.min(k/H.MAX_JUMP_DURATION,1),z=-(v?H.SUPER_JUMP_POWER:H.JUMP_POWER)*(.6+.4*_);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 _={...l};x.normal.y===-1?(_.y=_.y-x.penetration,_.velocityY=0,_.isGrounded=!0):x.normal.y===1?(_.y=_.y+x.penetration,_.velocityY=0):x.normal.x===1?(_.x=_.x+x.penetration,_.velocityX=0):x.normal.x===-1&&(_.x=_.x-x.penetration,_.velocityX=0),a.updatePlayer(_)}if(v){const _=this.collisionManager.checkPlayerGroundCollision(l,v);if(_.hasCollision&&_.normal&&_.penetration){const N={...l};_.normal.y===-1?(N.y=N.y-_.penetration,N.velocityY=0,N.isGrounded=!0):_.normal.y===1?(N.y=N.y+_.penetration,N.velocityY=0):_.normal.x===1?(N.x=N.x+_.penetration,N.velocityX=0):_.normal.x===-1&&(N.x=N.x-_.penetration,N.velocityX=0),a.updatePlayer(N)}}const R=this.collisionManager.checkPlayerBombCollision(l,h);if(R){this.audioManager.playSound(ua.BOMB_COLLECT);const _=a.collectBomb(R.order);_&&_.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 k=this.collisionManager.checkPlayerMonsterCollision(l,y);if(k)if(a.activeEffects.powerMode){const _=a.coinManager?.calculateMonsterKillPoints(a.multiplier)||H.MONSTER_KILL_POINTS*a.multiplier;if(a.addScore(_),a.addFloatingText){const N=_.toString();a.addFloatingText(N,k.x+k.width/2,k.y+k.height/2,1e3,"#fff",15)}a.coinManager&&a.coinManager.onPointsEarned(_,!1),Pe.debug(`Monster killed during power mode: ${_} points`),this.audioManager.playSound(ua.COIN_COLLECT),this.monsterRespawnManager.killMonster(k)}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};ux(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}},AM=({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 _M(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?(_=R*.9,k=_*C):(k=x*.9,_=k/C),y({width:`${k}px`,height:`${_}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 bx(c,a){if(typeof c=="function")return c(a);c!=null&&(c.current=a)}function xx(...c){return a=>{let l=!1;const f=c.map(h=>{const y=bx(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():bx(c[h],null)}}}}function ju(...c){return Q.useCallback(xx(...c),c)}function Cx(c){const a=NM(c),l=Q.forwardRef((f,h)=>{const{children:y,...v}=f,C=Q.Children.toArray(y),x=C.find(LM);if(x){const R=x.props.children,A=C.map(k=>k===x?Q.Children.count(R)>1?Q.Children.only(null):Q.isValidElement(R)?R.props.children:null:k);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 OM=Cx("Slot");function NM(c){const a=Q.forwardRef((l,f)=>{const{children:h,...y}=l;if(Q.isValidElement(h)){const v=IM(h),C=PM(y,h.props);return h.type!==Q.Fragment&&(C.ref=f?xx(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 Ex=Symbol("radix.slottable");function DM(c){const a=({children:l})=>I.jsx(I.Fragment,{children:l});return a.displayName=`${c}.Slottable`,a.__radixId=Ex,a}function LM(c){return Q.isValidElement(c)&&typeof c.type=="function"&&"__radixId"in c.type&&c.type.__radixId===Ex}function PM(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 IM(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 Tx(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=Tx(c[a]))&&(f&&(f+=" "),f+=l)}else for(l in c)c[l]&&(f&&(f+=" "),f+=l);return f}function Rx(){for(var c,a,l=0,f="",h=arguments.length;l<h;l++)(c=arguments[l])&&(a=Tx(c))&&(f&&(f+=" "),f+=a);return f}const Mx=c=>typeof c=="boolean"?`${c}`:c===0?"0":c,kx=Rx,UM=(c,a)=>l=>{var f;if(a?.variants==null)return kx(c,l?.class,l?.className);const{variants:h,defaultVariants:y}=a,v=Object.keys(h).map(R=>{const A=l?.[R],k=y?.[R];if(A===null)return null;const _=Mx(A)||Mx(k);return h[R][_]}),C=l&&Object.entries(l).reduce((R,A)=>{let[k,_]=A;return _===void 0||(R[k]=_),R},{}),x=a==null||(f=a.compoundVariants)===null||f===void 0?void 0:f.reduce((R,A)=>{let{class:k,className:_,...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 kx(c,v,x,l?.class,l?.className)},n0="-",zM=c=>{const a=jM(c),{conflictingClassGroups:l,conflictingClassGroupModifiers:f}=c;return{getClassGroupId:v=>{const C=v.split(n0);return C[0]===""&&C.length!==1&&C.shift(),_x(C,a)||FM(v)},getConflictingClassGroupIds:(v,C)=>{const x=l[v]||[];return C&&f[v]?[...x,...f[v]]:x}}},_x=(c,a)=>{if(c.length===0)return a.classGroupId;const l=c[0],f=a.nextPart.get(l),h=f?_x(c.slice(1),f):void 0;if(h)return h;if(a.validators.length===0)return;const y=c.join(n0);return a.validators.find(({validator:v})=>v(y))?.classGroupId},Ax=/^\[(.+)\]$/,FM=c=>{if(Ax.test(c)){const a=Ax.exec(c)[1],l=a?.substring(0,a.indexOf(":"));if(l)return"arbitrary.."+l}},jM=c=>{const{theme:a,classGroups:l}=c,f={nextPart:new Map,validators:[]};for(const h in l)r0(l[h],f,h,a);return f},r0=(c,a,l,f)=>{c.forEach(h=>{if(typeof h=="string"){const y=h===""?a:Ox(a,h);y.classGroupId=l;return}if(typeof h=="function"){if(BM(h)){r0(h(f),a,l,f);return}a.validators.push({validator:h,classGroupId:l});return}Object.entries(h).forEach(([y,v])=>{r0(v,Ox(a,y),l,f)})})},Ox=(c,a)=>{let l=c;return a.split(n0).forEach(f=>{l.nextPart.has(f)||l.nextPart.set(f,{nextPart:new Map,validators:[]}),l=l.nextPart.get(f)}),l},BM=c=>c.isThemeGetter,HM=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)}}},a0="!",i0=":",VM=i0.length,$M=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===i0){y.push(h.slice(x,z)),x=z+VM;continue}if(G==="/"){R=z;continue}}G==="["?v++:G==="]"?v--:G==="("?C++:G===")"&&C--}const A=y.length===0?h:h.substring(x),k=GM(A),_=k!==A,N=R&&R>x?R-x:void 0;return{modifiers:y,hasImportantModifier:_,baseClassName:k,maybePostfixModifierPosition:N}};if(a){const h=a+i0,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},GM=c=>c.endsWith(a0)?c.substring(0,c.length-1):c.startsWith(a0)?c.substring(1):c,YM=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}},WM=c=>({cache:HM(c.cacheSize),parseClassName:$M(c),sortModifiers:YM(c),...zM(c)}),XM=/\s+/,KM=(c,a)=>{const{parseClassName:l,getClassGroupId:f,getConflictingClassGroupIds:h,sortModifiers:y}=a,v=[],C=c.trim().split(XM);let x="";for(let R=C.length-1;R>=0;R-=1){const A=C[R],{isExternal:k,modifiers:_,hasImportantModifier:N,baseClassName:z,maybePostfixModifierPosition:G}=l(A);if(k){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(_).join(":"),ce=N?ue+a0: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 QM(){let c=0,a,l,f="";for(;c<arguments.length;)(a=arguments[c++])&&(l=Nx(a))&&(f&&(f+=" "),f+=l);return f}const Nx=c=>{if(typeof c=="string")return c;let a,l="";for(let f=0;f<c.length;f++)c[f]&&(a=Nx(c[f]))&&(l&&(l+=" "),l+=a);return l};function qM(c,...a){let l,f,h,y=v;function v(x){const R=a.reduce((A,k)=>k(A),c());return l=WM(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=KM(x,l);return h(x,A),A}return function(){return y(QM.apply(null,arguments))}}const Sr=c=>{const a=l=>l[c]||[];return a.isThemeGetter=!0,a},Dx=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Lx=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ZM=/^\d+\/\d+$/,JM=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ek=/\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$/,tk=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,nk=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,rk=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,mf=c=>ZM.test(c),jt=c=>!!c&&!Number.isNaN(Number(c)),js=c=>!!c&&Number.isInteger(Number(c)),o0=c=>c.endsWith("%")&&jt(c.slice(0,-1)),Ul=c=>JM.test(c),ak=()=>!0,ik=c=>ek.test(c)&&!tk.test(c),Px=()=>!1,ok=c=>nk.test(c),lk=c=>rk.test(c),sk=c=>!Ke(c)&&!Qe(c),uk=c=>gf(c,jx,Px),Ke=c=>Dx.test(c),Bu=c=>gf(c,Bx,ik),l0=c=>gf(c,hk,jt),Ix=c=>gf(c,zx,Px),ck=c=>gf(c,Fx,lk),Fv=c=>gf(c,Hx,ok),Qe=c=>Lx.test(c),xp=c=>yf(c,Bx),fk=c=>yf(c,vk),Ux=c=>yf(c,zx),dk=c=>yf(c,jx),pk=c=>yf(c,Fx),jv=c=>yf(c,Hx,!0),gf=(c,a,l)=>{const f=Dx.exec(c);return f?f[1]?a(f[1]):l(f[2]):!1},yf=(c,a,l=!1)=>{const f=Lx.exec(c);return f?f[1]?a(f[1]):l:!1},zx=c=>c==="position"||c==="percentage",Fx=c=>c==="image"||c==="url",jx=c=>c==="length"||c==="size"||c==="bg-size",Bx=c=>c==="length",hk=c=>c==="number",vk=c=>c==="family-name",Hx=c=>c==="shadow",mk=qM(()=>{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"),k=Sr("inset-shadow"),_=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],ke=()=>[...fe(),Ux,Ix,{position:[Qe,Ke]}],Ce=()=>["no-repeat",{repeat:["","x","y","space","round"]}],V=()=>["auto","cover","contain",dk,uk,{size:[Qe,Ke]}],oe=()=>[o0,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,o0,Ux,Ix],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:[Ul],breakpoint:[Ul],color:[ak],container:[Ul],"drop-shadow":[Ul],ease:["in","out","in-out"],font:[sk],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ul],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ul],shadow:[Ul],spacing:["px",jt],text:[Ul],"text-shadow":[Ul],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,l0]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",o0,Ke]}],"font-family":[{font:[fk,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,l0]}],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:ke()}],"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]},pk,ck]}],"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",k,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",_,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:ke()}],"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,l0]}],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 Vx(...c){return mk(Rx(c))}const gk=UM("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?OM:"button";return I.jsx(v,{className:Vx(gk({variant:a,size:l,className:c})),ref:y,...h})});vi.displayName="Button";/**
242
242
  * @license lucide-react v0.539.0 - ISC
243
243
  *
244
244
  * This source code is licensed under the ISC license.
245
245
  * See the LICENSE file in the root directory of this source tree.
246
- */const yk=c=>c.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Sk=c=>c.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,l,f)=>f?f.toUpperCase():l.toLowerCase()),Vx=c=>{const a=Sk(c);return a.charAt(0).toUpperCase()+a.slice(1)},$x=(...c)=>c.filter((a,l,f)=>!!a&&a.trim()!==""&&f.indexOf(a)===l).join(" ").trim(),wk=c=>{for(const a in c)if(a.startsWith("aria-")||a==="role"||a==="title")return!0};/**
246
+ */const yk=c=>c.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Sk=c=>c.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,l,f)=>f?f.toUpperCase():l.toLowerCase()),$x=c=>{const a=Sk(c);return a.charAt(0).toUpperCase()+a.slice(1)},Gx=(...c)=>c.filter((a,l,f)=>!!a&&a.trim()!==""&&f.indexOf(a)===l).join(" ").trim(),wk=c=>{for(const a in c)if(a.startsWith("aria-")||a==="role"||a==="title")return!0};/**
247
247
  * @license lucide-react v0.539.0 - ISC
248
248
  *
249
249
  * This source code is licensed under the ISC license.
@@ -253,17 +253,17 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
253
253
  *
254
254
  * This source code is licensed under the ISC license.
255
255
  * See the LICENSE file in the root directory of this source tree.
256
- */const xk=Q.forwardRef(({color:c="currentColor",size:a=24,strokeWidth:l=2,absoluteStrokeWidth:f,className:h="",children:y,iconNode:v,...C},b)=>Q.createElement("svg",{ref:b,...bk,width:a,height:a,stroke:c,strokeWidth:f?Number(l)*24/Number(a):l,className:$x("lucide",h),...!y&&!wk(C)&&{"aria-hidden":"true"},...C},[...v.map(([T,_])=>Q.createElement(T,_)),...Array.isArray(y)?y:[y]]));/**
256
+ */const xk=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,...bk,width:a,height:a,stroke:c,strokeWidth:f?Number(l)*24/Number(a):l,className:Gx("lucide",h),...!y&&!wk(C)&&{"aria-hidden":"true"},...C},[...v.map(([R,A])=>Q.createElement(R,A)),...Array.isArray(y)?y:[y]]));/**
257
257
  * @license lucide-react v0.539.0 - ISC
258
258
  *
259
259
  * This source code is licensed under the ISC license.
260
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(xk,{ref:y,iconNode:a,className:$x(`lucide-${yk(Vx(c))}`,`lucide-${c}`,f),...h}));return l.displayName=Vx(c),l};/**
261
+ */const Ui=(c,a)=>{const l=Q.forwardRef(({className:f,...h},y)=>Q.createElement(xk,{ref:y,iconNode:a,className:Gx(`lucide-${yk($x(c))}`,`lucide-${c}`,f),...h}));return l.displayName=$x(c),l};/**
262
262
  * @license lucide-react v0.539.0 - ISC
263
263
  *
264
264
  * This source code is licensed under the ISC license.
265
265
  * See the LICENSE file in the root directory of this source tree.
266
- */const Gx=Ui("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
266
+ */const Yx=Ui("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
267
267
  * @license lucide-react v0.539.0 - ISC
268
268
  *
269
269
  * This source code is licensed under the ISC license.
@@ -278,7 +278,7 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
278
278
  *
279
279
  * This source code is licensed under the ISC license.
280
280
  * See the LICENSE file in the root directory of this source tree.
281
- */const Yx=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"}]]);/**
281
+ */const Wx=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
282
  * @license lucide-react v0.539.0 - ISC
283
283
  *
284
284
  * This source code is licensed under the ISC license.
@@ -288,12 +288,12 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
288
288
  *
289
289
  * This source code is licensed under the ISC license.
290
290
  * See the LICENSE file in the root directory of this source tree.
291
- */const Wx=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"}]]);/**
291
+ */const Xx=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
292
  * @license lucide-react v0.539.0 - ISC
293
293
  *
294
294
  * This source code is licensed under the ISC license.
295
295
  * See the LICENSE file in the root directory of this source tree.
296
- */const Xx=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"}]]);/**
296
+ */const Kx=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
297
  * @license lucide-react v0.539.0 - ISC
298
298
  *
299
299
  * This source code is licensed under the ISC license.
@@ -313,10 +313,10 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
313
313
  *
314
314
  * This source code is licensed under the ISC license.
315
315
  * See the LICENSE file in the root directory of this source tree.
316
- */const Kx=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"}]]);/**
316
+ */const Qx=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
317
  * @license lucide-react v0.539.0 - ISC
318
318
  *
319
319
  * This source code is licensed under the ISC license.
320
320
  * See the LICENSE file in the root directory of this source tree.
321
- */const kk=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 zl(c,a,{checkForDefaultPrevented:l=!0}={}){return function(h){if(c?.(h),l===!1||!h.defaultPrevented)return a?.(h)}}function Qx(c,a=[]){let l=[];function f(y,v){const C=Q.createContext(v),b=l.length;l=[...l,v];const T=k=>{const{scope:A,children:N,...z}=k,G=A?.[c]?.[b]||C,J=Q.useMemo(()=>z,Object.values(z));return I.jsx(G.Provider,{value:J,children:N})};T.displayName=y+"Provider";function _(k,A){const N=A?.[c]?.[b]||C,z=Q.useContext(N);if(z)return z;if(v!==void 0)return v;throw new Error(`\`${k}\` must be used within \`${y}\``)}return[T,_]}const h=()=>{const y=l.map(v=>Q.createContext(v));return function(C){const b=C?.[c]||y;return Q.useMemo(()=>({[`__scope${c}`]:{...C,[c]:b}}),[C,b])}};return h.scopeName=c,[f,_k(h,...a)]}function _k(...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:b,scopeName:T})=>{const k=b(y)[`__scope${T}`];return{...C,...k}},{});return Q.useMemo(()=>({[`__scope${a.scopeName}`]:v}),[v])}};return l.scopeName=a.scopeName,l}var Ak=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Hu=Ak.reduce((c,a)=>{const l=xx(`Primitive.${a}`),f=Q.forwardRef((h,y)=>{const{asChild:v,...C}=h,b=v?l:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),I.jsx(b,{...C,ref:y})});return f.displayName=`Primitive.${a}`,{...c,[a]:f}},{});function Ok(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 Nk(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 Dk="DismissableLayer",u0="dismissableLayer.update",Lk="dismissableLayer.pointerDownOutside",Pk="dismissableLayer.focusOutside",qx,Zx=Q.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Jx=Q.forwardRef((c,a)=>{const{disableOutsidePointerEvents:l=!1,onEscapeKeyDown:f,onPointerDownOutside:h,onFocusOutside:y,onInteractOutside:v,onDismiss:C,...b}=c,T=Q.useContext(Zx),[_,k]=Q.useState(null),A=_?.ownerDocument??globalThis?.document,[,N]=Q.useState({}),z=ju(a,ve=>k(ve)),G=Array.from(T.layers),[J]=[...T.layersWithOutsidePointerEventsDisabled].slice(-1),de=G.indexOf(J),ue=_?G.indexOf(_):-1,ce=T.layersWithOutsidePointerEventsDisabled.size>0,fe=ue>=de,le=zk(ve=>{const xe=ve.target,tt=[...T.branches].some(dt=>dt.contains(xe));!fe||tt||(h?.(ve),v?.(ve),ve.defaultPrevented||C?.())},A),Re=Fk(ve=>{const xe=ve.target;[...T.branches].some(dt=>dt.contains(xe))||(y?.(ve),v?.(ve),ve.defaultPrevented||C?.())},A);return Nk(ve=>{ue===T.layers.size-1&&(f?.(ve),!ve.defaultPrevented&&C&&(ve.preventDefault(),C()))},A),Q.useEffect(()=>{if(_)return l&&(T.layersWithOutsidePointerEventsDisabled.size===0&&(qx=A.body.style.pointerEvents,A.body.style.pointerEvents="none"),T.layersWithOutsidePointerEventsDisabled.add(_)),T.layers.add(_),eC(),()=>{l&&T.layersWithOutsidePointerEventsDisabled.size===1&&(A.body.style.pointerEvents=qx)}},[_,A,l,T]),Q.useEffect(()=>()=>{_&&(T.layers.delete(_),T.layersWithOutsidePointerEventsDisabled.delete(_),eC())},[_,T]),Q.useEffect(()=>{const ve=()=>N({});return document.addEventListener(u0,ve),()=>document.removeEventListener(u0,ve)},[]),I.jsx(Hu.div,{...b,ref:z,style:{pointerEvents:ce?fe?"auto":"none":void 0,...c.style},onFocusCapture:zl(c.onFocusCapture,Re.onFocusCapture),onBlurCapture:zl(c.onBlurCapture,Re.onBlurCapture),onPointerDownCapture:zl(c.onPointerDownCapture,le.onPointerDownCapture)})});Jx.displayName=Dk;var Ik="DismissableLayerBranch",Uk=Q.forwardRef((c,a)=>{const l=Q.useContext(Zx),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})});Uk.displayName=Ik;function zk(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 b=function(){tC(Lk,l,T,{discrete:!0})};const T={originalEvent:C};C.pointerType==="touch"?(a.removeEventListener("click",h.current),h.current=b,a.addEventListener("click",h.current,{once:!0})):b()}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 Fk(c,a=globalThis?.document){const l=Bv(c),f=Q.useRef(!1);return Q.useEffect(()=>{const h=y=>{y.target&&!f.current&&tC(Pk,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 eC(){const c=new CustomEvent(u0);document.dispatchEvent(c)}function tC(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?Ok(h,y):h.dispatchEvent(y)}var Vu=globalThis?.document?Q.useLayoutEffect:()=>{},jk=ax[" useId ".trim().toString()]||(()=>{}),Bk=0;function Hk(c){const[a,l]=Q.useState(jk());return Vu(()=>{l(f=>f??String(Bk++))},[c]),a?`radix-${a}`:""}const Vk=["top","right","bottom","left"],Bs=Math.min,mi=Math.max,Hv=Math.round,Vv=Math.floor,$o=c=>({x:c,y:c}),$k={left:"right",right:"left",bottom:"top",top:"bottom"},Gk={start:"end",end:"start"};function c0(c,a,l){return mi(c,Bs(a,l))}function Fl(c,a){return typeof c=="function"?c(a):c}function jl(c){return c.split("-")[0]}function Sf(c){return c.split("-")[1]}function f0(c){return c==="x"?"y":"x"}function d0(c){return c==="y"?"height":"width"}const Yk=new Set(["top","bottom"]);function Go(c){return Yk.has(jl(c))?"y":"x"}function p0(c){return f0(Go(c))}function Wk(c,a,l){l===void 0&&(l=!1);const f=Sf(c),h=p0(c),y=d0(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 Xk(c){const a=$v(c);return[h0(c),a,h0(a)]}function h0(c){return c.replace(/start|end/g,a=>Gk[a])}const nC=["left","right"],rC=["right","left"],Kk=["top","bottom"],Qk=["bottom","top"];function qk(c,a,l){switch(c){case"top":case"bottom":return l?a?rC:nC:a?nC:rC;case"left":case"right":return a?Kk:Qk;default:return[]}}function Zk(c,a,l,f){const h=Sf(c);let y=qk(jl(c),l==="start",f);return h&&(y=y.map(v=>v+"-"+h),a&&(y=y.concat(y.map(h0)))),y}function $v(c){return c.replace(/left|right|bottom|top/g,a=>$k[a])}function Jk(c){return{top:0,right:0,bottom:0,left:0,...c}}function aC(c){return typeof c!="number"?Jk(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 iC(c,a,l){let{reference:f,floating:h}=c;const y=Go(a),v=p0(a),C=d0(v),b=jl(a),T=y==="y",_=f.x+f.width/2-h.width/2,k=f.y+f.height/2-h.height/2,A=f[C]/2-h[C]/2;let N;switch(b){case"top":N={x:_,y:f.y-h.height};break;case"bottom":N={x:_,y:f.y+f.height};break;case"right":N={x:f.x+f.width,y:k};break;case"left":N={x:f.x-h.width,y:k};break;default:N={x:f.x,y:f.y}}switch(Sf(a)){case"start":N[v]-=A*(l&&T?-1:1);break;case"end":N[v]+=A*(l&&T?-1:1);break}return N}const e_=async(c,a,l)=>{const{placement:f="bottom",strategy:h="absolute",middleware:y=[],platform:v}=l,C=y.filter(Boolean),b=await(v.isRTL==null?void 0:v.isRTL(a));let T=await v.getElementRects({reference:c,floating:a,strategy:h}),{x:_,y:k}=iC(T,f,b),A=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:_,y:k,initialPlacement:f,placement:A,strategy:h,middlewareData:N,rects:T,platform:v,elements:{reference:c,floating:a}});_=ue??_,k=ce??k,N={...N,[J]:{...N[J],...fe}},le&&z<=50&&(z++,typeof le=="object"&&(le.placement&&(A=le.placement),le.rects&&(T=le.rects===!0?await v.getElementRects({reference:c,floating:a,strategy:h}):le.rects),{x:_,y:k}=iC(T,A,b)),G=-1)}return{x:_,y:k,placement:A,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:b}=c,{boundary:T="clippingAncestors",rootBoundary:_="viewport",elementContext:k="floating",altBoundary:A=!1,padding:N=0}=Fl(a,c),z=aC(N),J=C[A?k==="floating"?"reference":"floating":k],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:T,rootBoundary:_,strategy:b})),ue=k==="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:b}):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 t_=c=>({name:"arrow",options:c,async fn(a){const{x:l,y:f,placement:h,rects:y,platform:v,elements:C,middlewareData:b}=a,{element:T,padding:_=0}=Fl(c,a)||{};if(T==null)return{};const k=aC(_),A={x:l,y:f},N=p0(h),z=d0(N),G=await v.getDimensions(T),J=N==="y",de=J?"top":"left",ue=J?"bottom":"right",ce=J?"clientHeight":"clientWidth",fe=y.reference[z]+y.reference[N]-A[N]-y.floating[z],le=A[N]-y.reference[N],Re=await(v.getOffsetParent==null?void 0:v.getOffsetParent(T));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(k[de],tt),Rt=Bs(k[ue],tt),lt=dt,Ae=ve-G[z]-Rt,rt=ve/2-G[z]/2+xe,st=c0(lt,rt,Ae),qe=!b.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]:A[N]+Te,data:{[N]:st,centerOffset:rt-st-Te,...qe&&{alignmentOffset:Te}},reset:qe}}}),n_=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:b,elements:T}=a,{mainAxis:_=!0,crossAxis:k=!0,fallbackPlacements:A,fallbackStrategy:N="bestFit",fallbackAxisSideDirection:z="none",flipAlignment:G=!0,...J}=Fl(c,a);if((l=y.arrow)!=null&&l.alignmentOffset)return{};const de=jl(h),ue=Go(C),ce=jl(C)===C,fe=await(b.isRTL==null?void 0:b.isRTL(T.floating)),le=A||(ce||!G?[$v(C)]:Xk(C)),Re=z!=="none";!A&&Re&&le.push(...Zk(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(_&&tt.push(xe[de]),k){const rt=Wk(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&&(!(k==="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 ke=Go($.placement);return ke===ue||ke==="y"}return!0}).map($=>[$.placement,$.overflows.filter(ke=>ke>0).reduce((ke,Ce)=>ke+Ce,0)]).sort(($,ke)=>$[1]-ke[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 oC(c,a){return{top:c.top-a.height,right:c.right-a.width,bottom:c.bottom-a.height,left:c.left-a.width}}function lC(c){return Vk.some(a=>c[a]>=0)}const r_=function(c){return c===void 0&&(c={}),{name:"hide",options:c,async fn(a){const{rects:l}=a,{strategy:f="referenceHidden",...h}=Fl(c,a);switch(f){case"referenceHidden":{const y=await Cp(a,{...h,elementContext:"reference"}),v=oC(y,l.reference);return{data:{referenceHiddenOffsets:v,referenceHidden:lC(v)}}}case"escaped":{const y=await Cp(a,{...h,altBoundary:!0}),v=oC(y,l.floating);return{data:{escapedOffsets:v,escaped:lC(v)}}}default:return{}}}}},sC=new Set(["left","top"]);async function a_(c,a){const{placement:l,platform:f,elements:h}=c,y=await(f.isRTL==null?void 0:f.isRTL(h.floating)),v=jl(l),C=Sf(l),b=Go(l)==="y",T=sC.has(v)?-1:1,_=y&&b?-1:1,k=Fl(a,c);let{mainAxis:A,crossAxis:N,alignmentAxis:z}=typeof k=="number"?{mainAxis:k,crossAxis:0,alignmentAxis:null}:{mainAxis:k.mainAxis||0,crossAxis:k.crossAxis||0,alignmentAxis:k.alignmentAxis};return C&&typeof z=="number"&&(N=C==="end"?z*-1:z),b?{x:N*_,y:A*T}:{x:A*T,y:N*_}}const i_=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,b=await a_(a,c);return v===((l=C.offset)==null?void 0:l.placement)&&(f=C.arrow)!=null&&f.alignmentOffset?{}:{x:h+b.x,y:y+b.y,data:{...b,placement:v}}}}},o_=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}}},...b}=Fl(c,a),T={x:l,y:f},_=await Cp(a,b),k=Go(jl(h)),A=f0(k);let N=T[A],z=T[k];if(y){const J=A==="y"?"top":"left",de=A==="y"?"bottom":"right",ue=N+_[J],ce=N-_[de];N=c0(ue,N,ce)}if(v){const J=k==="y"?"top":"left",de=k==="y"?"bottom":"right",ue=z+_[J],ce=z-_[de];z=c0(ue,z,ce)}const G=C.fn({...a,[A]:N,[k]:z});return{...G,data:{x:G.x-l,y:G.y-f,enabled:{[A]:y,[k]:v}}}}}},l_=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:b=!0,crossAxis:T=!0}=Fl(c,a),_={x:l,y:f},k=Go(h),A=f0(k);let N=_[A],z=_[k];const G=Fl(C,a),J=typeof G=="number"?{mainAxis:G,crossAxis:0}:{mainAxis:0,crossAxis:0,...G};if(b){const ce=A==="y"?"height":"width",fe=y.reference[A]-y.floating[ce]+J.mainAxis,le=y.reference[A]+y.reference[ce]-J.mainAxis;N<fe?N=fe:N>le&&(N=le)}if(T){var de,ue;const ce=A==="y"?"width":"height",fe=sC.has(jl(h)),le=y.reference[k]-y.floating[ce]+(fe&&((de=v.offset)==null?void 0:de[k])||0)+(fe?0:J.crossAxis),Re=y.reference[k]+y.reference[ce]+(fe?0:((ue=v.offset)==null?void 0:ue[k])||0)-(fe?J.crossAxis:0);z<le?z=le:z>Re&&(z=Re)}return{[A]:N,[k]:z}}}},s_=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:b=()=>{},...T}=Fl(c,a),_=await Cp(a,T),k=jl(h),A=Sf(h),N=Go(h)==="y",{width:z,height:G}=y.floating;let J,de;k==="top"||k==="bottom"?(J=k,de=A===(await(v.isRTL==null?void 0:v.isRTL(C.floating))?"start":"end")?"left":"right"):(de=k,J=A==="end"?"top":"bottom");const ue=G-_.top-_.bottom,ce=z-_.left-_.right,fe=Bs(G-_[J],ue),le=Bs(z-_[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&&!A){const dt=mi(_.left,0),Rt=mi(_.right,0),lt=mi(_.top,0),Ae=mi(_.bottom,0);N?xe=z-2*(dt!==0||Rt!==0?dt+Rt:mi(_.left,_.right)):ve=G-2*(lt!==0||Ae!==0?lt+Ae:mi(_.top,_.bottom))}await b({...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 uC(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=(uC(c)?c.ownerDocument:c.document)||window.document)==null?void 0:a.documentElement}function uC(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 cC(c){return!Yv()||typeof ShadowRoot>"u"?!1:c instanceof ShadowRoot||c instanceof gi(c).ShadowRoot}const u_=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)&&!u_.has(h)}const c_=new Set(["table","td","th"]);function f_(c){return c_.has(wf(c))}const d_=[":popover-open",":modal"];function Wv(c){return d_.some(a=>{try{return c.matches(a)}catch{return!1}})}const p_=["transform","translate","scale","rotate","perspective"],h_=["transform","translate","scale","rotate","perspective","filter"],v_=["paint","layout","strict","content"];function v0(c){const a=m0(),l=ho(c)?vo(c):c;return p_.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)||h_.some(f=>(l.willChange||"").includes(f))||v_.some(f=>(l.contain||"").includes(f))}function m_(c){let a=Hs(c);for(;Wo(a)&&!bf(a);){if(v0(a))return a;if(Wv(a))return null;a=Hs(a)}return null}function m0(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const g_=new Set(["html","body","#document"]);function bf(c){return g_.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||cC(c)&&c.host||Yo(c);return cC(a)?a.host:a}function fC(c){const a=Hs(c);return bf(a)?c.ownerDocument?c.ownerDocument.body:c.body:Wo(a)&&Ep(a)?a:fC(a)}function Tp(c,a,l){var f;a===void 0&&(a=[]),l===void 0&&(l=!0);const h=fC(c),y=h===((f=c.ownerDocument)==null?void 0:f.body),v=gi(h);if(y){const C=g0(v);return a.concat(v,v.visualViewport||[],Ep(h)?h:[],C&&l?Tp(C):[])}return a.concat(h,Tp(h,[],l))}function g0(c){return c.parent&&Object.getPrototypeOf(c.parent)?c.frameElement:null}function dC(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 y0(c){return ho(c)?c:c.contextElement}function xf(c){const a=y0(c);if(!Wo(a))return $o(1);const l=a.getBoundingClientRect(),{width:f,height:h,$:y}=dC(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 y_=$o(0);function pC(c){const a=gi(c);return!m0()||!a.visualViewport?y_:{x:a.visualViewport.offsetLeft,y:a.visualViewport.offsetTop}}function S_(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=y0(c);let v=$o(1);a&&(f?ho(f)&&(v=xf(f)):v=xf(c));const C=S_(y,l,f)?pC(y):$o(0);let b=(h.left+C.x)/v.x,T=(h.top+C.y)/v.y,_=h.width/v.x,k=h.height/v.y;if(y){const A=gi(y),N=f&&ho(f)?gi(f):f;let z=A,G=g0(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;b*=J.x,T*=J.y,_*=J.x,k*=J.y,b+=ce,T+=fe,z=gi(G),G=g0(z)}}return Gv({width:_,height:k,x:b,y:T})}function S0(c,a){const l=Xv(c).scrollLeft;return a?a.left+l:$u(Yo(c)).left+l}function hC(c,a,l){l===void 0&&(l=!1);const f=c.getBoundingClientRect(),h=f.left+a.scrollLeft-(l?0:S0(c,f)),y=f.top+a.scrollTop;return{x:h,y}}function w_(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 b={scrollLeft:0,scrollTop:0},T=$o(1);const _=$o(0),k=Wo(f);if((k||!k&&!y)&&((wf(f)!=="body"||Ep(v))&&(b=Xv(f)),Wo(f))){const N=$u(f);T=xf(f),_.x=N.x+f.clientLeft,_.y=N.y+f.clientTop}const A=v&&!k&&!y?hC(v,b,!0):$o(0);return{width:l.width*T.x,height:l.height*T.y,x:l.x*T.x-b.scrollLeft*T.x+_.x+A.x,y:l.y*T.y-b.scrollTop*T.y+_.y+A.y}}function b_(c){return Array.from(c.getClientRects())}function x_(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+S0(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 C_(c,a){const l=gi(c),f=Yo(c),h=l.visualViewport;let y=f.clientWidth,v=f.clientHeight,C=0,b=0;if(h){y=h.width,v=h.height;const T=m0();(!T||T&&a==="fixed")&&(C=h.offsetLeft,b=h.offsetTop)}return{width:y,height:v,x:C,y:b}}const E_=new Set(["absolute","fixed"]);function T_(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,b=h*y.x,T=f*y.y;return{width:v,height:C,x:b,y:T}}function vC(c,a,l){let f;if(a==="viewport")f=C_(c,l);else if(a==="document")f=x_(Yo(c));else if(ho(a))f=T_(a,l);else{const h=pC(c);f={x:a.x-h.x,y:a.y-h.y,width:a.width,height:a.height}}return Gv(f)}function mC(c,a){const l=Hs(c);return l===a||!ho(l)||bf(l)?!1:vo(l).position==="fixed"||mC(l,a)}function R_(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),b=v0(v);!b&&C.position==="fixed"&&(h=null),(y?!b&&!h:!b&&C.position==="static"&&!!h&&E_.has(h.position)||Ep(v)&&!b&&mC(c,v))?f=f.filter(_=>_!==v):h=C,v=Hs(v)}return a.set(c,f),f}function M_(c){let{element:a,boundary:l,rootBoundary:f,strategy:h}=c;const v=[...l==="clippingAncestors"?Wv(a)?[]:R_(a,this._c):[].concat(l),f],C=v[0],b=v.reduce((T,_)=>{const k=vC(a,_,h);return T.top=mi(k.top,T.top),T.right=Bs(k.right,T.right),T.bottom=Bs(k.bottom,T.bottom),T.left=mi(k.left,T.left),T},vC(a,C,h));return{width:b.right-b.left,height:b.bottom-b.top,x:b.left,y:b.top}}function k_(c){const{width:a,height:l}=dC(c);return{width:a,height:l}}function __(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 b=$o(0);function T(){b.x=S0(h)}if(f||!f&&!y)if((wf(a)!=="body"||Ep(h))&&(C=Xv(a)),f){const N=$u(a,!0,y,a);b.x=N.x+a.clientLeft,b.y=N.y+a.clientTop}else h&&T();y&&!f&&h&&T();const _=h&&!f&&!y?hC(h,C):$o(0),k=v.left+C.scrollLeft-b.x-_.x,A=v.top+C.scrollTop-b.y-_.y;return{x:k,y:A,width:v.width,height:v.height}}function w0(c){return vo(c).position==="static"}function gC(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 yC(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)&&!w0(h))return h;h=Hs(h)}return l}let f=gC(c,a);for(;f&&f_(f)&&w0(f);)f=gC(f,a);return f&&bf(f)&&w0(f)&&!v0(f)?l:f||m_(c)||l}const A_=async function(c){const a=this.getOffsetParent||yC,l=this.getDimensions,f=await l(c.floating);return{reference:__(c.reference,await a(c.floating),c.strategy),floating:{x:0,y:0,width:f.width,height:f.height}}};function O_(c){return vo(c).direction==="rtl"}const N_={convertOffsetParentRelativeRectToViewportRelativeRect:w_,getDocumentElement:Yo,getClippingRect:M_,getOffsetParent:yC,getElementRects:A_,getClientRects:b_,getDimensions:k_,getScale:xf,isElement:ho,isRTL:O_};function SC(c,a){return c.x===a.x&&c.y===a.y&&c.width===a.width&&c.height===a.height}function D_(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,b){C===void 0&&(C=!1),b===void 0&&(b=1),y();const T=c.getBoundingClientRect(),{left:_,top:k,width:A,height:N}=T;if(C||a(),!A||!N)return;const z=Vv(k),G=Vv(h.clientWidth-(_+A)),J=Vv(h.clientHeight-(k+N)),de=Vv(_),ce={rootMargin:-z+"px "+-G+"px "+-J+"px "+-de+"px",threshold:mi(0,Bs(1,b))||1};let fe=!0;function le(Re){const ve=Re[0].intersectionRatio;if(ve!==b){if(!fe)return v();ve?v(!1,ve):f=setTimeout(()=>{v(!1,1e-7)},1e3)}ve===1&&!SC(T,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 L_(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:b=!1}=f,T=y0(c),_=h||y?[...T?Tp(T):[],...Tp(a)]:[];_.forEach(de=>{h&&de.addEventListener("scroll",l,{passive:!0}),y&&de.addEventListener("resize",l)});const k=T&&C?D_(T,l):null;let A=-1,N=null;v&&(N=new ResizeObserver(de=>{let[ue]=de;ue&&ue.target===T&&N&&(N.unobserve(a),cancelAnimationFrame(A),A=requestAnimationFrame(()=>{var ce;(ce=N)==null||ce.observe(a)})),l()}),T&&!b&&N.observe(T),N.observe(a));let z,G=b?$u(c):null;b&&J();function J(){const de=$u(c);G&&!SC(G,de)&&l(),G=de,z=requestAnimationFrame(J)}return l(),()=>{var de;_.forEach(ue=>{h&&ue.removeEventListener("scroll",l),y&&ue.removeEventListener("resize",l)}),k?.(),(de=N)==null||de.disconnect(),N=null,b&&cancelAnimationFrame(z)}}const P_=i_,I_=o_,U_=n_,z_=s_,F_=r_,wC=t_,j_=l_,B_=(c,a,l)=>{const f=new Map,h={platform:N_,...l},y={...h.platform,_c:f};return e_(c,a,{...h,platform:y})};var H_=typeof document<"u",V_=function(){},Kv=H_?Q.useLayoutEffect:V_;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 bC(c){return typeof window>"u"?1:(c.ownerDocument.defaultView||window).devicePixelRatio||1}function xC(c,a){const l=bC(c);return Math.round(a*l)/l}function b0(c){const a=Q.useRef(c);return Kv(()=>{a.current=c}),a}function $_(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:b,open:T}=c,[_,k]=Q.useState({x:0,y:0,strategy:l,placement:a,middlewareData:{},isPositioned:!1}),[A,N]=Q.useState(f);Qv(A,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(_),tt=b!=null,dt=b0(b),Rt=b0(h),lt=b0(T),Ae=Q.useCallback(()=>{if(!Re.current||!ve.current)return;const $={placement:a,strategy:l,middleware:A};Rt.current&&($.platform=Rt.current),B_(Re.current,ve.current,$).then(ke=>{const Ce={...ke,isPositioned:lt.current!==!1};rt.current&&!Qv(xe.current,Ce)&&(xe.current=Ce,Zy.flushSync(()=>{k(Ce)}))})},[A,a,l,Rt,lt]);Kv(()=>{T===!1&&xe.current.isPositioned&&(xe.current.isPositioned=!1,k($=>({...$,isPositioned:!1})))},[T]);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 ke=xC(qe.floating,_.x),Ce=xC(qe.floating,_.y);return C?{...$,transform:"translate("+ke+"px, "+Ce+"px)",...bC(qe.floating)>=1.5&&{willChange:"transform"}}:{position:l,left:ke,top:Ce}},[l,C,qe.floating,_.x,_.y]);return Q.useMemo(()=>({..._,update:Ae,refs:st,elements:qe,floatingStyles:Te}),[_,Ae,st,qe,Te])}const G_=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?wC({element:f.current,padding:h}).fn(l):{}:f?wC({element:f,padding:h}).fn(l):{}}}},Y_=(c,a)=>({...P_(c),options:[c,a]}),W_=(c,a)=>({...I_(c),options:[c,a]}),X_=(c,a)=>({...j_(c),options:[c,a]}),K_=(c,a)=>({...U_(c),options:[c,a]}),Q_=(c,a)=>({...z_(c),options:[c,a]}),q_=(c,a)=>({...F_(c),options:[c,a]}),Z_=(c,a)=>({...G_(c),options:[c,a]});var J_="Arrow",CC=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"})})});CC.displayName=J_;var eA=CC;function tA(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 b=y.borderBoxSize,T=Array.isArray(b)?b[0]:b;v=T.inlineSize,C=T.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 x0="Popper",[EC,TC]=Qx(x0),[nA,RC]=EC(x0),MC=c=>{const{__scopePopper:a,children:l}=c,[f,h]=Q.useState(null);return I.jsx(nA,{scope:a,anchor:f,onAnchorChange:h,children:l})};MC.displayName=x0;var kC="PopperAnchor",_C=Q.forwardRef((c,a)=>{const{__scopePopper:l,virtualRef:f,...h}=c,y=RC(kC,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=kC;var C0="PopperContent",[rA,aA]=EC(C0),AC=Q.forwardRef((c,a)=>{const{__scopePopper:l,side:f="bottom",sideOffset:h=0,align:y="center",alignOffset:v=0,arrowPadding:C=0,avoidCollisions:b=!0,collisionBoundary:T=[],collisionPadding:_=0,sticky:k="partial",hideWhenDetached:A=!1,updatePositionStrategy:N="optimized",onPlaced:z,...G}=c,J=RC(C0,l),[de,ue]=Q.useState(null),ce=ju(a,Ve=>ue(Ve)),[fe,le]=Q.useState(null),Re=tA(fe),ve=Re?.width??0,xe=Re?.height??0,tt=f+(y!=="center"?"-"+y:""),dt=typeof _=="number"?_:{top:0,right:0,bottom:0,left:0,..._},Rt=Array.isArray(T)?T:[T],lt=Rt.length>0,Ae={padding:dt,boundary:Rt.filter(oA),altBoundary:lt},{refs:rt,floatingStyles:st,placement:qe,isPositioned:Te,middlewareData:$}=$_({strategy:"fixed",placement:tt,whileElementsMounted:(...Ve)=>L_(...Ve,{animationFrame:N==="always"}),elements:{reference:J.anchor},middleware:[Y_({mainAxis:h+xe,alignmentAxis:v}),b&&W_({mainAxis:!0,crossAxis:!1,limiter:k==="partial"?X_():void 0,...Ae}),b&&K_({...Ae}),Q_({...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&&Z_({element:fe,padding:C}),lA({arrowWidth:ve,arrowHeight:xe}),A&&q_({strategy:"referenceHidden",...Ae})]}),[ke,Ce]=DC(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(rA,{scope:l,placedSide:ke,onArrowChange:le,arrowX:oe,arrowY:Be,shouldHideArrow:He,children:I.jsx(Hu.div,{"data-side":ke,"data-align":Ce,...G,ref:ce,style:{...G.style,animation:Te?void 0:"none"}})})})});AC.displayName=C0;var OC="PopperArrow",iA={top:"bottom",right:"left",bottom:"top",left:"right"},NC=Q.forwardRef(function(a,l){const{__scopePopper:f,...h}=a,y=aA(OC,f),v=iA[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(eA,{...h,ref:l,style:{...h.style,display:"block"}})})});NC.displayName=OC;function oA(c){return c!==null}var lA=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,b=v?0:c.arrowHeight,[T,_]=DC(l),k={start:"0%",center:"50%",end:"100%"}[_],A=(h.arrow?.x??0)+C/2,N=(h.arrow?.y??0)+b/2;let z="",G="";return T==="bottom"?(z=v?k:`${A}px`,G=`${-b}px`):T==="top"?(z=v?k:`${A}px`,G=`${f.floating.height+b}px`):T==="right"?(z=`${-b}px`,G=v?k:`${N}px`):T==="left"&&(z=`${f.floating.width+b}px`,G=v?k:`${N}px`),{data:{x:z,y:G}}}});function DC(c){const[a,l="center"]=c.split("-");return[a,l]}var sA=MC,uA=_C,cA=AC,fA=NC;function dA(c,a){return Q.useReducer((l,f)=>a[l][f]??l,c)}var LC=c=>{const{present:a,children:l}=c,f=pA(a),h=typeof l=="function"?l({present:f.isPresent}):Q.Children.only(l),y=ju(f.ref,hA(h));return typeof l=="function"||f.isPresent?Q.cloneElement(h,{ref:y}):null};LC.displayName="Presence";function pA(c){const[a,l]=Q.useState(),f=Q.useRef(null),h=Q.useRef(c),y=Q.useRef("none"),v=c?"mounted":"unmounted",[C,b]=dA(v,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return Q.useEffect(()=>{const T=qv(f.current);y.current=C==="mounted"?T:"none"},[C]),Vu(()=>{const T=f.current,_=h.current;if(_!==c){const A=y.current,N=qv(T);c?b("MOUNT"):N==="none"||T?.display==="none"?b("UNMOUNT"):b(_&&A!==N?"ANIMATION_OUT":"UNMOUNT"),h.current=c}},[c,b]),Vu(()=>{if(a){let T;const _=a.ownerDocument.defaultView??window,k=N=>{const G=qv(f.current).includes(N.animationName);if(N.target===a&&G&&(b("ANIMATION_END"),!h.current)){const J=a.style.animationFillMode;a.style.animationFillMode="forwards",T=_.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=J)})}},A=N=>{N.target===a&&(y.current=qv(f.current))};return a.addEventListener("animationstart",A),a.addEventListener("animationcancel",k),a.addEventListener("animationend",k),()=>{_.clearTimeout(T),a.removeEventListener("animationstart",A),a.removeEventListener("animationcancel",k),a.removeEventListener("animationend",k)}}else b("ANIMATION_END")},[a,b]),{isPresent:["mounted","unmountSuspended"].includes(C),ref:Q.useCallback(T=>{f.current=T?getComputedStyle(T):null,l(T)},[])}}function qv(c){return c?.animationName||"none"}function hA(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 vA=ax[" useInsertionEffect ".trim().toString()]||Vu;function mA({prop:c,defaultProp:a,onChange:l=()=>{},caller:f}){const[h,y,v]=gA({defaultProp:a,onChange:l}),C=c!==void 0,b=C?c:h;{const _=Q.useRef(c!==void 0);Q.useEffect(()=>{const k=_.current;k!==C&&console.warn(`${f} is changing from ${k?"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.`),_.current=C},[C,f])}const T=Q.useCallback(_=>{if(C){const k=yA(_)?_(c):_;k!==c&&v.current?.(k)}else y(_)},[C,c,y,v]);return[b,T]}function gA({defaultProp:c,onChange:a}){const[l,f]=Q.useState(c),h=Q.useRef(l),y=Q.useRef(a);return vA(()=>{y.current=a},[a]),Q.useEffect(()=>{h.current!==l&&(y.current?.(l),h.current=l)},[l,h]),[l,f,y]}function yA(c){return typeof c=="function"}var SA=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"}),wA="VisuallyHidden",PC=Q.forwardRef((c,a)=>I.jsx(Hu.span,{...c,ref:a,style:{...SA,...c.style}}));PC.displayName=wA;var bA=PC,[Zv,o3]=Qx("Tooltip",[TC]),Jv=TC(),IC="TooltipProvider",xA=700,E0="tooltip.open",[CA,T0]=Zv(IC),em=c=>{const{__scopeTooltip:a,delayDuration:l=xA,skipDelayDuration:f=300,disableHoverableContent:h=!1,children:y}=c,v=Q.useRef(!0),C=Q.useRef(!1),b=Q.useRef(0);return Q.useEffect(()=>{const T=b.current;return()=>window.clearTimeout(T)},[]),I.jsx(CA,{scope:a,isOpenDelayedRef:v,delayDuration:l,onOpen:Q.useCallback(()=>{window.clearTimeout(b.current),v.current=!1},[]),onClose:Q.useCallback(()=>{window.clearTimeout(b.current),b.current=window.setTimeout(()=>v.current=!0,f)},[f]),isPointerInTransitRef:C,onPointerInTransitChange:Q.useCallback(T=>{C.current=T},[]),disableHoverableContent:h,children:y})};em.displayName=IC;var Rp="Tooltip",[EA,tm]=Zv(Rp),UC=c=>{const{__scopeTooltip:a,children:l,open:f,defaultOpen:h,onOpenChange:y,disableHoverableContent:v,delayDuration:C}=c,b=T0(Rp,c.__scopeTooltip),T=Jv(a),[_,k]=Q.useState(null),A=Hk(),N=Q.useRef(0),z=v??b.disableHoverableContent,G=C??b.delayDuration,J=Q.useRef(!1),[de,ue]=mA({prop:f,defaultProp:h??!1,onChange:ve=>{ve?(b.onOpen(),document.dispatchEvent(new CustomEvent(E0))):b.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(sA,{...T,children:I.jsx(EA,{scope:a,contentId:A,open:de,stateAttribute:ce,trigger:_,onTriggerChange:k,onTriggerEnter:Q.useCallback(()=>{b.isOpenDelayedRef.current?Re():fe()},[b.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})})};UC.displayName=Rp;var R0="TooltipTrigger",zC=Q.forwardRef((c,a)=>{const{__scopeTooltip:l,...f}=c,h=tm(R0,l),y=T0(R0,l),v=Jv(l),C=Q.useRef(null),b=ju(a,C,h.onTriggerChange),T=Q.useRef(!1),_=Q.useRef(!1),k=Q.useCallback(()=>T.current=!1,[]);return Q.useEffect(()=>()=>document.removeEventListener("pointerup",k),[k]),I.jsx(uA,{asChild:!0,...v,children:I.jsx(Hu.button,{"aria-describedby":h.open?h.contentId:void 0,"data-state":h.stateAttribute,...f,ref:b,onPointerMove:zl(c.onPointerMove,A=>{A.pointerType!=="touch"&&!_.current&&!y.isPointerInTransitRef.current&&(h.onTriggerEnter(),_.current=!0)}),onPointerLeave:zl(c.onPointerLeave,()=>{h.onTriggerLeave(),_.current=!1}),onPointerDown:zl(c.onPointerDown,()=>{h.open&&h.onClose(),T.current=!0,document.addEventListener("pointerup",k,{once:!0})}),onFocus:zl(c.onFocus,()=>{T.current||h.onOpen()}),onBlur:zl(c.onBlur,h.onClose),onClick:zl(c.onClick,h.onClose)})})});zC.displayName=R0;var TA="TooltipPortal",[l3,RA]=Zv(TA,{forceMount:void 0}),Cf="TooltipContent",FC=Q.forwardRef((c,a)=>{const l=RA(Cf,c.__scopeTooltip),{forceMount:f=l.forceMount,side:h="top",...y}=c,v=tm(Cf,c.__scopeTooltip);return I.jsx(LC,{present:f||v.open,children:v.disableHoverableContent?I.jsx(jC,{side:h,...y,ref:a}):I.jsx(MA,{side:h,...y,ref:a})})}),MA=Q.forwardRef((c,a)=>{const l=tm(Cf,c.__scopeTooltip),f=T0(Cf,c.__scopeTooltip),h=Q.useRef(null),y=ju(a,h),[v,C]=Q.useState(null),{trigger:b,onClose:T}=l,_=h.current,{onPointerInTransitChange:k}=f,A=Q.useCallback(()=>{C(null),k(!1)},[k]),N=Q.useCallback((z,G)=>{const J=z.currentTarget,de={x:z.clientX,y:z.clientY},ue=NA(de,J.getBoundingClientRect()),ce=DA(de,ue),fe=LA(G.getBoundingClientRect()),le=IA([...ce,...fe]);C(le),k(!0)},[k]);return Q.useEffect(()=>()=>A(),[A]),Q.useEffect(()=>{if(b&&_){const z=J=>N(J,_),G=J=>N(J,b);return b.addEventListener("pointerleave",z),_.addEventListener("pointerleave",G),()=>{b.removeEventListener("pointerleave",z),_.removeEventListener("pointerleave",G)}}},[b,_,N,A]),Q.useEffect(()=>{if(v){const z=G=>{const J=G.target,de={x:G.clientX,y:G.clientY},ue=b?.contains(J)||_?.contains(J),ce=!PA(de,v);ue?A():ce&&(A(),T())};return document.addEventListener("pointermove",z),()=>document.removeEventListener("pointermove",z)}},[b,_,v,T,A]),I.jsx(jC,{...c,ref:y})}),[kA,_A]=Zv(Rp,{isInside:!1}),AA=DM("TooltipContent"),jC=Q.forwardRef((c,a)=>{const{__scopeTooltip:l,children:f,"aria-label":h,onEscapeKeyDown:y,onPointerDownOutside:v,...C}=c,b=tm(Cf,l),T=Jv(l),{onClose:_}=b;return Q.useEffect(()=>(document.addEventListener(E0,_),()=>document.removeEventListener(E0,_)),[_]),Q.useEffect(()=>{if(b.trigger){const k=A=>{A.target?.contains(b.trigger)&&_()};return window.addEventListener("scroll",k,{capture:!0}),()=>window.removeEventListener("scroll",k,{capture:!0})}},[b.trigger,_]),I.jsx(Jx,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:y,onPointerDownOutside:v,onFocusOutside:k=>k.preventDefault(),onDismiss:_,children:I.jsxs(cA,{"data-state":b.stateAttribute,...T,...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(AA,{children:f}),I.jsx(kA,{scope:l,isInside:!0,children:I.jsx(bA,{id:b.contentId,role:"tooltip",children:h||f})})]})})});FC.displayName=Cf;var BC="TooltipArrow",OA=Q.forwardRef((c,a)=>{const{__scopeTooltip:l,...f}=c,h=Jv(l);return _A(BC,l).isInside?null:I.jsx(fA,{...h,...f,ref:a})});OA.displayName=BC;function NA(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 DA(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 LA(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 PA(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],b=a[v],T=C.x,_=C.y,k=b.x,A=b.y;_>f!=A>f&&l<(k-T)*(f-_)/(A-_)+T&&(h=!h)}return h}function IA(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),UA(a)}function UA(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 zA=em,FA=UC,jA=zC,HC=FC;const BA=zA,M0=FA,k0=jA,nm=Q.forwardRef(({className:c,sideOffset:a=4,...l},f)=>I.jsx(HC,{ref:f,sideOffset:a,className:Hx("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=HC.displayName;const HA=()=>{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 b=h.current?.closest("sigurd-startup");b?f(b):f()};return I.jsxs("div",{className:"flex flex-col items-center justify-center h-full rounded-lg",children:[I.jsx(BA,{children:I.jsxs(M0,{children:[I.jsx(k0,{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(Xx,{className:"text-foreground hover:text-primary",size:24}):I.jsx(Wx,{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(s0,{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(Kx,{size:20}),"Innstillinger"]})]})]})},VA=()=>{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"})]})]})})},$A=()=>{const{score:c,lives:a,currentLevel:l,setState:f,setMenuType:h,isPaused:y,multiplier:v,multiplierScore:C}=Ft(),b=Q.useRef(null),{isFullscreen:T,toggleFullscreen:_}=bp(),k=()=>{y?f(ot.PLAYING):(f(ot.PAUSED),h(Pt.PAUSE))},A=()=>{const z=b.current?.closest("sigurd-startup");z?_(z):_()},N=ZR(C,v);return I.jsxs("div",{ref:b,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(Ck,{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(Tk,{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(kk,{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(M0,{children:[I.jsx(k0,{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:y?I.jsx(s0,{className:"text-white hover:text-primary",size:24}):I.jsx(Rk,{className:"text-foreground hover:text-primary",size:24})})}),I.jsx(nm,{children:"Pause Spill (P)"})]})}),I.jsx(em,{children:I.jsxs(M0,{children:[I.jsx(k0,{asChild:!0,children:I.jsx(vi,{onClick:A,variant:"outline",className:"bg-background-80 text-foreground backdrop-blur-sm border-none hover:bg-primary hover:text-black h-10 w-10",children:T?I.jsx(Xx,{className:"text-foreground hover:text-primary",size:24}):I.jsx(Wx,{className:"text-foreground hover:text-primary",size:24})})}),I.jsx(nm,{children:T?"Avslutt fullskjerm (F11 eller F)":"Fullskjerm (F11 eller F)"})]})})]}),I.jsx("div",{className:`absolute left-3 bottom-2 ${T?"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(Ek,{color:"#ff3143",size:T?25:20,fill:G<a?"#ff3143":"none"},G)),a>3?I.jsxs("p",{children:["+ ",a-3]}):""]})})]})},GA=()=>{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:b,resetEffects:T,clearAllFloatingTexts:_,currentMap:k}=Ft.getState();if(C(),b(),T(),_(),k){const{initializeLevel:A}=Ft.getState();A(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(s0,{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(Kx,{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(Mk,{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(Yx,{size:20}),"hovedmeny"]})]})})},YA=()=>{const{setMenuType:c,previousMenu:a}=Ft(),l=Ft(k=>k.audioSettings),f=Ft(k=>k.updateAudioSettings),{masterVolume:h,musicVolume:y,sfxVolume:v,masterMuted:C,musicMuted:b,sfxMuted:T}=l||{masterVolume:80,musicVolume:70,sfxVolume:90,masterMuted:!1,musicMuted:!1,sfxMuted:!1},_=()=>{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:_,variant:"default",className:"bg-primary hover:bg-primary/80 text-white w-10 h-10",children:I.jsx(Gx,{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:k=>f({masterVolume:Number(k.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:!b}),className:`px-3 py-1 rounded text-sm font-mono ${b?"bg-red-600 text-white":"bg-secondary text-white"}`,children:b?"Muted":`${y}%`})]}),I.jsx("input",{type:"range",min:"0",max:"100",value:b?0:y,onChange:k=>f({musicVolume:Number(k.target.value)}),className:"w-full accent-primary",disabled:b})]}),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:!T}),className:`px-3 py-1 rounded text-sm font-mono ${T?"bg-red-600 text-white":"bg-secondary text-white"}`,children:T?"Muted":`${v}%`})]}),I.jsx("input",{type:"range",min:"0",max:"100",value:T?0:v,onChange:k=>f({sfxVolume:Number(k.target.value)}),className:"w-full accent-primary",disabled:T})]}),I.jsx("div",{className:"text-center text-sm text-gray-400",children:I.jsx("p",{children:"(Trykk på tallene for å mute lyd)"})})]})]})},WA=(c,a={})=>{const{duration:l=3e3,steps:f=60,easing:h="ease-out",delay:y=0,onComplete:v}=a,[C,b]=Q.useState(0),T=Q.useRef(!1),_=Q.useRef(c);return Q.useEffect(()=>{if(c===0){b(0),T.current=!1;return}if(_.current!==c&&(T.current=!1,b(0),_.current=c),T.current){b(c);return}const k=setTimeout(()=>{const A=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);b(ue),N>=f&&(b(c),T.current=!0,clearInterval(z),v&&v())},A);return()=>clearInterval(z)},y);return()=>clearTimeout(k)},[c,l,f,h,y,v]),C},XA=()=>{const{correctOrderCount:c,currentMap:a,currentLevel:l,nextLevel:f,setState:h,setMenuType:y,initializeLevel:v,setBonusAnimationComplete:C}=Ft(),b=H.BONUS_POINTS[c]||5e4,T=WA(b,{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:b>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:[T.toLocaleString()," kr"]}),I.jsx("div",{className:"text-sm text-gray-400 mt-2",children:vf.length>l?`Fortsetter til ${vf[l]?.name||"Neste nivå"}...`:""})]})})]})},KA=()=>{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(Yx,{className:"w-7 h-7",strokeWidth:2})})})]})},QA=()=>{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"})]})},qA=()=>{const{setMenuType:c,previousMenu:a}=Ft(),l=Ft(k=>k.audioSettings),f=Ft(k=>k.updateAudioSettings),{masterVolume:h,musicVolume:y,sfxVolume:v,masterMuted:C,musicMuted:b,sfxMuted:T}=l||{masterVolume:80,musicVolume:70,sfxVolume:90,masterMuted:!1,musicMuted:!1,sfxMuted:!1},_=()=>{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:_,variant:"ghost",className:"text-muted-foreground hover:text-white p-1",children:I.jsx(Gx,{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:k=>f({masterVolume:Number(k.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:!b}),className:`px-3 py-1 rounded text-sm font-mono ${b?"bg-red-600 text-white":"bg-secondary text-white"}`,children:b?"Muted":`${y}%`})]}),I.jsx("input",{type:"range",min:"0",max:"100",value:b?0:y,onChange:k=>f({musicVolume:Number(k.target.value)}),className:"w-full accent-primary",disabled:b})]}),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:!T}),className:`px-3 py-1 rounded text-sm font-mono ${T?"bg-red-600 text-white":"bg-secondary text-white"}`,children:T?"Muted":`${v}%`})]}),I.jsx("input",{type:"range",min:"0",max:"100",value:T?0:v,onChange:k=>f({sfxVolume:Number(k.target.value)}),className:"w-full accent-primary",disabled:T})]})]})]})})},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}),ZA=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])},JA=()=>{const[c,a]=Q.useState(!0);return Q.useEffect(()=>{yx.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:8,build:0,timestamp:1755084436070,hash:"UYPG91",full:"2.2.8"},_0=Ko.full,Gu=()=>({version:_0,major:Ko.major,minor:Ko.minor,patch:Ko.patch,build:Ko.build,timestamp:Ko.timestamp,hash:Ko.hash}),VC=()=>{console.log(`🎮 Sigurd Startup Game v${_0} (Build ${Ko.build})`),console.log(`📦 Hash: ${Ko.hash}`),console.log(`⏰ Built: ${new Date(Ko.timestamp).toISOString()}`)},eO=()=>{const{currentState:c,showMenu:a}=Ft(),l=Pv.useRef(null),{toggleFullscreen:f}=bp(),{isFullscreen:h}=bp(),{isPreloading:y}=JA();return ZA(()=>{const C=l.current?.closest("sigurd-startup");C?f(C):f()}),I.jsxs("div",{ref:l,className:"relative rounded-lg",children:[I.jsx(AM,{}),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(HA,{})}),a===Pt.COUNTDOWN&&I.jsx(Xo,{children:I.jsx(VA,{})}),a===Pt.PAUSE&&I.jsx(Xo,{children:I.jsx(GA,{})}),a===Pt.SETTINGS&&I.jsx(Xo,{children:I.jsx(YA,{})}),c===ot.PLAYING&&I.jsx(Xo,{transparent:!0,children:I.jsx($A,{})}),a===Pt.BONUS&&I.jsx(Xo,{children:I.jsx(XA,{})}),a===Pt.VICTORY&&I.jsx(Xo,{children:I.jsx(KA,{})}),a===Pt.GAME_OVER&&I.jsx(Xo,{children:I.jsx(QA,{})}),a===Pt.AUDIO_SETTINGS&&I.jsx(Xo,{children:I.jsx(qA,{})})]})]})},tO='*,: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)}.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 nO extends HTMLElement{constructor(){super(...arguments);be(this,"root",null)}connectedCallback(){fM();const l=this.attachShadow({mode:"open"}),f=document.createElement("div");l.appendChild(f);const h=document.createElement("style");h.textContent=tO,l.appendChild(h),this.root=pp.createRoot(f),this.root.render(I.jsx(eO,{})),VC(),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,b,T]=l.split(".").map(Number);return h>C?!0:h<C?!1:y>b?!0:y<b?!1:v>=T}}customElements.define("sigurd-startup",nO);const rO={getVersion:Gu,ASSET_PATHS:Il,getBackgroundImagePath:fx};sa.ASSET_PATHS=Il,sa.default=rO,sa.getBackgroundImagePath=fx,sa.getVersion=Gu,sa.logVersion=VC,Object.defineProperties(sa,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
321
+ */const kk=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 zl(c,a,{checkForDefaultPrevented:l=!0}={}){return function(h){if(c?.(h),l===!1||!h.defaultPrevented)return a?.(h)}}function qx(c,a=[]){let l=[];function f(y,v){const C=Q.createContext(v),x=l.length;l=[...l,v];const R=k=>{const{scope:_,children:N,...z}=k,G=_?.[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=_?.[c]?.[x]||C,z=Q.useContext(N);if(z)return z;if(v!==void 0)return v;throw new Error(`\`${k}\` 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,_k(h,...a)]}function _k(...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 k=x(y)[`__scope${R}`];return{...C,...k}},{});return Q.useMemo(()=>({[`__scope${a.scopeName}`]:v}),[v])}};return l.scopeName=a.scopeName,l}var Ak=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Hu=Ak.reduce((c,a)=>{const l=Cx(`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 Ok(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 Nk(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 Dk="DismissableLayer",u0="dismissableLayer.update",Lk="dismissableLayer.pointerDownOutside",Pk="dismissableLayer.focusOutside",Zx,Jx=Q.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),eC=Q.forwardRef((c,a)=>{const{disableOutsidePointerEvents:l=!1,onEscapeKeyDown:f,onPointerDownOutside:h,onFocusOutside:y,onInteractOutside:v,onDismiss:C,...x}=c,R=Q.useContext(Jx),[A,k]=Q.useState(null),_=A?.ownerDocument??globalThis?.document,[,N]=Q.useState({}),z=ju(a,ve=>k(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=zk(ve=>{const xe=ve.target,tt=[...R.branches].some(dt=>dt.contains(xe));!fe||tt||(h?.(ve),v?.(ve),ve.defaultPrevented||C?.())},_),Re=Fk(ve=>{const xe=ve.target;[...R.branches].some(dt=>dt.contains(xe))||(y?.(ve),v?.(ve),ve.defaultPrevented||C?.())},_);return Nk(ve=>{ue===R.layers.size-1&&(f?.(ve),!ve.defaultPrevented&&C&&(ve.preventDefault(),C()))},_),Q.useEffect(()=>{if(A)return l&&(R.layersWithOutsidePointerEventsDisabled.size===0&&(Zx=_.body.style.pointerEvents,_.body.style.pointerEvents="none"),R.layersWithOutsidePointerEventsDisabled.add(A)),R.layers.add(A),tC(),()=>{l&&R.layersWithOutsidePointerEventsDisabled.size===1&&(_.body.style.pointerEvents=Zx)}},[A,_,l,R]),Q.useEffect(()=>()=>{A&&(R.layers.delete(A),R.layersWithOutsidePointerEventsDisabled.delete(A),tC())},[A,R]),Q.useEffect(()=>{const ve=()=>N({});return document.addEventListener(u0,ve),()=>document.removeEventListener(u0,ve)},[]),I.jsx(Hu.div,{...x,ref:z,style:{pointerEvents:ce?fe?"auto":"none":void 0,...c.style},onFocusCapture:zl(c.onFocusCapture,Re.onFocusCapture),onBlurCapture:zl(c.onBlurCapture,Re.onBlurCapture),onPointerDownCapture:zl(c.onPointerDownCapture,le.onPointerDownCapture)})});eC.displayName=Dk;var Ik="DismissableLayerBranch",Uk=Q.forwardRef((c,a)=>{const l=Q.useContext(Jx),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})});Uk.displayName=Ik;function zk(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(){nC(Lk,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 Fk(c,a=globalThis?.document){const l=Bv(c),f=Q.useRef(!1);return Q.useEffect(()=>{const h=y=>{y.target&&!f.current&&nC(Pk,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 tC(){const c=new CustomEvent(u0);document.dispatchEvent(c)}function nC(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?Ok(h,y):h.dispatchEvent(y)}var Vu=globalThis?.document?Q.useLayoutEffect:()=>{},jk=ax[" useId ".trim().toString()]||(()=>{}),Bk=0;function Hk(c){const[a,l]=Q.useState(jk());return Vu(()=>{l(f=>f??String(Bk++))},[c]),a?`radix-${a}`:""}const Vk=["top","right","bottom","left"],Bs=Math.min,mi=Math.max,Hv=Math.round,Vv=Math.floor,$o=c=>({x:c,y:c}),$k={left:"right",right:"left",bottom:"top",top:"bottom"},Gk={start:"end",end:"start"};function c0(c,a,l){return mi(c,Bs(a,l))}function Fl(c,a){return typeof c=="function"?c(a):c}function jl(c){return c.split("-")[0]}function Sf(c){return c.split("-")[1]}function f0(c){return c==="x"?"y":"x"}function d0(c){return c==="y"?"height":"width"}const Yk=new Set(["top","bottom"]);function Go(c){return Yk.has(jl(c))?"y":"x"}function p0(c){return f0(Go(c))}function Wk(c,a,l){l===void 0&&(l=!1);const f=Sf(c),h=p0(c),y=d0(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 Xk(c){const a=$v(c);return[h0(c),a,h0(a)]}function h0(c){return c.replace(/start|end/g,a=>Gk[a])}const rC=["left","right"],aC=["right","left"],Kk=["top","bottom"],Qk=["bottom","top"];function qk(c,a,l){switch(c){case"top":case"bottom":return l?a?aC:rC:a?rC:aC;case"left":case"right":return a?Kk:Qk;default:return[]}}function Zk(c,a,l,f){const h=Sf(c);let y=qk(jl(c),l==="start",f);return h&&(y=y.map(v=>v+"-"+h),a&&(y=y.concat(y.map(h0)))),y}function $v(c){return c.replace(/left|right|bottom|top/g,a=>$k[a])}function Jk(c){return{top:0,right:0,bottom:0,left:0,...c}}function iC(c){return typeof c!="number"?Jk(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 oC(c,a,l){let{reference:f,floating:h}=c;const y=Go(a),v=p0(a),C=d0(v),x=jl(a),R=y==="y",A=f.x+f.width/2-h.width/2,k=f.y+f.height/2-h.height/2,_=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:k};break;case"left":N={x:f.x-h.width,y:k};break;default:N={x:f.x,y:f.y}}switch(Sf(a)){case"start":N[v]-=_*(l&&R?-1:1);break;case"end":N[v]+=_*(l&&R?-1:1);break}return N}const e_=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:k}=oC(R,f,x),_=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:k,initialPlacement:f,placement:_,strategy:h,middlewareData:N,rects:R,platform:v,elements:{reference:c,floating:a}});A=ue??A,k=ce??k,N={...N,[J]:{...N[J],...fe}},le&&z<=50&&(z++,typeof le=="object"&&(le.placement&&(_=le.placement),le.rects&&(R=le.rects===!0?await v.getElementRects({reference:c,floating:a,strategy:h}):le.rects),{x:A,y:k}=oC(R,_,x)),G=-1)}return{x:A,y:k,placement:_,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:k="floating",altBoundary:_=!1,padding:N=0}=Fl(a,c),z=iC(N),J=C[_?k==="floating"?"reference":"floating":k],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=k==="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 t_=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}=Fl(c,a)||{};if(R==null)return{};const k=iC(A),_={x:l,y:f},N=p0(h),z=d0(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]-_[N]-y.floating[z],le=_[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(k[de],tt),Rt=Bs(k[ue],tt),lt=dt,Ae=ve-G[z]-Rt,rt=ve/2-G[z]/2+xe,st=c0(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]:_[N]+Te,data:{[N]:st,centerOffset:rt-st-Te,...qe&&{alignmentOffset:Te}},reset:qe}}}),n_=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:k=!0,fallbackPlacements:_,fallbackStrategy:N="bestFit",fallbackAxisSideDirection:z="none",flipAlignment:G=!0,...J}=Fl(c,a);if((l=y.arrow)!=null&&l.alignmentOffset)return{};const de=jl(h),ue=Go(C),ce=jl(C)===C,fe=await(x.isRTL==null?void 0:x.isRTL(R.floating)),le=_||(ce||!G?[$v(C)]:Xk(C)),Re=z!=="none";!_&&Re&&le.push(...Zk(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]),k){const rt=Wk(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&&(!(k==="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 ke=Go($.placement);return ke===ue||ke==="y"}return!0}).map($=>[$.placement,$.overflows.filter(ke=>ke>0).reduce((ke,Ce)=>ke+Ce,0)]).sort(($,ke)=>$[1]-ke[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 lC(c,a){return{top:c.top-a.height,right:c.right-a.width,bottom:c.bottom-a.height,left:c.left-a.width}}function sC(c){return Vk.some(a=>c[a]>=0)}const r_=function(c){return c===void 0&&(c={}),{name:"hide",options:c,async fn(a){const{rects:l}=a,{strategy:f="referenceHidden",...h}=Fl(c,a);switch(f){case"referenceHidden":{const y=await Cp(a,{...h,elementContext:"reference"}),v=lC(y,l.reference);return{data:{referenceHiddenOffsets:v,referenceHidden:sC(v)}}}case"escaped":{const y=await Cp(a,{...h,altBoundary:!0}),v=lC(y,l.floating);return{data:{escapedOffsets:v,escaped:sC(v)}}}default:return{}}}}},uC=new Set(["left","top"]);async function a_(c,a){const{placement:l,platform:f,elements:h}=c,y=await(f.isRTL==null?void 0:f.isRTL(h.floating)),v=jl(l),C=Sf(l),x=Go(l)==="y",R=uC.has(v)?-1:1,A=y&&x?-1:1,k=Fl(a,c);let{mainAxis:_,crossAxis:N,alignmentAxis:z}=typeof k=="number"?{mainAxis:k,crossAxis:0,alignmentAxis:null}:{mainAxis:k.mainAxis||0,crossAxis:k.crossAxis||0,alignmentAxis:k.alignmentAxis};return C&&typeof z=="number"&&(N=C==="end"?z*-1:z),x?{x:N*A,y:_*R}:{x:_*R,y:N*A}}const i_=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 a_(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}}}}},o_=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}=Fl(c,a),R={x:l,y:f},A=await Cp(a,x),k=Go(jl(h)),_=f0(k);let N=R[_],z=R[k];if(y){const J=_==="y"?"top":"left",de=_==="y"?"bottom":"right",ue=N+A[J],ce=N-A[de];N=c0(ue,N,ce)}if(v){const J=k==="y"?"top":"left",de=k==="y"?"bottom":"right",ue=z+A[J],ce=z-A[de];z=c0(ue,z,ce)}const G=C.fn({...a,[_]:N,[k]:z});return{...G,data:{x:G.x-l,y:G.y-f,enabled:{[_]:y,[k]:v}}}}}},l_=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}=Fl(c,a),A={x:l,y:f},k=Go(h),_=f0(k);let N=A[_],z=A[k];const G=Fl(C,a),J=typeof G=="number"?{mainAxis:G,crossAxis:0}:{mainAxis:0,crossAxis:0,...G};if(x){const ce=_==="y"?"height":"width",fe=y.reference[_]-y.floating[ce]+J.mainAxis,le=y.reference[_]+y.reference[ce]-J.mainAxis;N<fe?N=fe:N>le&&(N=le)}if(R){var de,ue;const ce=_==="y"?"width":"height",fe=uC.has(jl(h)),le=y.reference[k]-y.floating[ce]+(fe&&((de=v.offset)==null?void 0:de[k])||0)+(fe?0:J.crossAxis),Re=y.reference[k]+y.reference[ce]+(fe?0:((ue=v.offset)==null?void 0:ue[k])||0)-(fe?J.crossAxis:0);z<le?z=le:z>Re&&(z=Re)}return{[_]:N,[k]:z}}}},s_=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}=Fl(c,a),A=await Cp(a,R),k=jl(h),_=Sf(h),N=Go(h)==="y",{width:z,height:G}=y.floating;let J,de;k==="top"||k==="bottom"?(J=k,de=_===(await(v.isRTL==null?void 0:v.isRTL(C.floating))?"start":"end")?"left":"right"):(de=k,J=_==="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&&!_){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 cC(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=(cC(c)?c.ownerDocument:c.document)||window.document)==null?void 0:a.documentElement}function cC(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 fC(c){return!Yv()||typeof ShadowRoot>"u"?!1:c instanceof ShadowRoot||c instanceof gi(c).ShadowRoot}const u_=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)&&!u_.has(h)}const c_=new Set(["table","td","th"]);function f_(c){return c_.has(wf(c))}const d_=[":popover-open",":modal"];function Wv(c){return d_.some(a=>{try{return c.matches(a)}catch{return!1}})}const p_=["transform","translate","scale","rotate","perspective"],h_=["transform","translate","scale","rotate","perspective","filter"],v_=["paint","layout","strict","content"];function v0(c){const a=m0(),l=ho(c)?vo(c):c;return p_.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)||h_.some(f=>(l.willChange||"").includes(f))||v_.some(f=>(l.contain||"").includes(f))}function m_(c){let a=Hs(c);for(;Wo(a)&&!bf(a);){if(v0(a))return a;if(Wv(a))return null;a=Hs(a)}return null}function m0(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const g_=new Set(["html","body","#document"]);function bf(c){return g_.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||fC(c)&&c.host||Yo(c);return fC(a)?a.host:a}function dC(c){const a=Hs(c);return bf(a)?c.ownerDocument?c.ownerDocument.body:c.body:Wo(a)&&Ep(a)?a:dC(a)}function Tp(c,a,l){var f;a===void 0&&(a=[]),l===void 0&&(l=!0);const h=dC(c),y=h===((f=c.ownerDocument)==null?void 0:f.body),v=gi(h);if(y){const C=g0(v);return a.concat(v,v.visualViewport||[],Ep(h)?h:[],C&&l?Tp(C):[])}return a.concat(h,Tp(h,[],l))}function g0(c){return c.parent&&Object.getPrototypeOf(c.parent)?c.frameElement:null}function pC(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 y0(c){return ho(c)?c:c.contextElement}function xf(c){const a=y0(c);if(!Wo(a))return $o(1);const l=a.getBoundingClientRect(),{width:f,height:h,$:y}=pC(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 y_=$o(0);function hC(c){const a=gi(c);return!m0()||!a.visualViewport?y_:{x:a.visualViewport.offsetLeft,y:a.visualViewport.offsetTop}}function S_(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=y0(c);let v=$o(1);a&&(f?ho(f)&&(v=xf(f)):v=xf(c));const C=S_(y,l,f)?hC(y):$o(0);let x=(h.left+C.x)/v.x,R=(h.top+C.y)/v.y,A=h.width/v.x,k=h.height/v.y;if(y){const _=gi(y),N=f&&ho(f)?gi(f):f;let z=_,G=g0(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,k*=J.y,x+=ce,R+=fe,z=gi(G),G=g0(z)}}return Gv({width:A,height:k,x,y:R})}function S0(c,a){const l=Xv(c).scrollLeft;return a?a.left+l:$u(Yo(c)).left+l}function vC(c,a,l){l===void 0&&(l=!1);const f=c.getBoundingClientRect(),h=f.left+a.scrollLeft-(l?0:S0(c,f)),y=f.top+a.scrollTop;return{x:h,y}}function w_(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),k=Wo(f);if((k||!k&&!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 _=v&&!k&&!y?vC(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+_.x,y:l.y*R.y-x.scrollTop*R.y+A.y+_.y}}function b_(c){return Array.from(c.getClientRects())}function x_(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+S0(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 C_(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=m0();(!R||R&&a==="fixed")&&(C=h.offsetLeft,x=h.offsetTop)}return{width:y,height:v,x:C,y:x}}const E_=new Set(["absolute","fixed"]);function T_(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 mC(c,a,l){let f;if(a==="viewport")f=C_(c,l);else if(a==="document")f=x_(Yo(c));else if(ho(a))f=T_(a,l);else{const h=hC(c);f={x:a.x-h.x,y:a.y-h.y,width:a.width,height:a.height}}return Gv(f)}function gC(c,a){const l=Hs(c);return l===a||!ho(l)||bf(l)?!1:vo(l).position==="fixed"||gC(l,a)}function R_(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=v0(v);!x&&C.position==="fixed"&&(h=null),(y?!x&&!h:!x&&C.position==="static"&&!!h&&E_.has(h.position)||Ep(v)&&!x&&gC(c,v))?f=f.filter(A=>A!==v):h=C,v=Hs(v)}return a.set(c,f),f}function M_(c){let{element:a,boundary:l,rootBoundary:f,strategy:h}=c;const v=[...l==="clippingAncestors"?Wv(a)?[]:R_(a,this._c):[].concat(l),f],C=v[0],x=v.reduce((R,A)=>{const k=mC(a,A,h);return R.top=mi(k.top,R.top),R.right=Bs(k.right,R.right),R.bottom=Bs(k.bottom,R.bottom),R.left=mi(k.left,R.left),R},mC(a,C,h));return{width:x.right-x.left,height:x.bottom-x.top,x:x.left,y:x.top}}function k_(c){const{width:a,height:l}=pC(c);return{width:a,height:l}}function __(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=S0(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?vC(h,C):$o(0),k=v.left+C.scrollLeft-x.x-A.x,_=v.top+C.scrollTop-x.y-A.y;return{x:k,y:_,width:v.width,height:v.height}}function w0(c){return vo(c).position==="static"}function yC(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 SC(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)&&!w0(h))return h;h=Hs(h)}return l}let f=yC(c,a);for(;f&&f_(f)&&w0(f);)f=yC(f,a);return f&&bf(f)&&w0(f)&&!v0(f)?l:f||m_(c)||l}const A_=async function(c){const a=this.getOffsetParent||SC,l=this.getDimensions,f=await l(c.floating);return{reference:__(c.reference,await a(c.floating),c.strategy),floating:{x:0,y:0,width:f.width,height:f.height}}};function O_(c){return vo(c).direction==="rtl"}const N_={convertOffsetParentRelativeRectToViewportRelativeRect:w_,getDocumentElement:Yo,getClippingRect:M_,getOffsetParent:SC,getElementRects:A_,getClientRects:b_,getDimensions:k_,getScale:xf,isElement:ho,isRTL:O_};function wC(c,a){return c.x===a.x&&c.y===a.y&&c.width===a.width&&c.height===a.height}function D_(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:k,width:_,height:N}=R;if(C||a(),!_||!N)return;const z=Vv(k),G=Vv(h.clientWidth-(A+_)),J=Vv(h.clientHeight-(k+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&&!wC(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 L_(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=y0(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 k=R&&C?D_(R,l):null;let _=-1,N=null;v&&(N=new ResizeObserver(de=>{let[ue]=de;ue&&ue.target===R&&N&&(N.unobserve(a),cancelAnimationFrame(_),_=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&&!wC(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)}),k?.(),(de=N)==null||de.disconnect(),N=null,x&&cancelAnimationFrame(z)}}const P_=i_,I_=o_,U_=n_,z_=s_,F_=r_,bC=t_,j_=l_,B_=(c,a,l)=>{const f=new Map,h={platform:N_,...l},y={...h.platform,_c:f};return e_(c,a,{...h,platform:y})};var H_=typeof document<"u",V_=function(){},Kv=H_?Q.useLayoutEffect:V_;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 xC(c){return typeof window>"u"?1:(c.ownerDocument.defaultView||window).devicePixelRatio||1}function CC(c,a){const l=xC(c);return Math.round(a*l)/l}function b0(c){const a=Q.useRef(c);return Kv(()=>{a.current=c}),a}function $_(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,k]=Q.useState({x:0,y:0,strategy:l,placement:a,middlewareData:{},isPositioned:!1}),[_,N]=Q.useState(f);Qv(_,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=b0(x),Rt=b0(h),lt=b0(R),Ae=Q.useCallback(()=>{if(!Re.current||!ve.current)return;const $={placement:a,strategy:l,middleware:_};Rt.current&&($.platform=Rt.current),B_(Re.current,ve.current,$).then(ke=>{const Ce={...ke,isPositioned:lt.current!==!1};rt.current&&!Qv(xe.current,Ce)&&(xe.current=Ce,Zy.flushSync(()=>{k(Ce)}))})},[_,a,l,Rt,lt]);Kv(()=>{R===!1&&xe.current.isPositioned&&(xe.current.isPositioned=!1,k($=>({...$,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 ke=CC(qe.floating,A.x),Ce=CC(qe.floating,A.y);return C?{...$,transform:"translate("+ke+"px, "+Ce+"px)",...xC(qe.floating)>=1.5&&{willChange:"transform"}}:{position:l,left:ke,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 G_=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?bC({element:f.current,padding:h}).fn(l):{}:f?bC({element:f,padding:h}).fn(l):{}}}},Y_=(c,a)=>({...P_(c),options:[c,a]}),W_=(c,a)=>({...I_(c),options:[c,a]}),X_=(c,a)=>({...j_(c),options:[c,a]}),K_=(c,a)=>({...U_(c),options:[c,a]}),Q_=(c,a)=>({...z_(c),options:[c,a]}),q_=(c,a)=>({...F_(c),options:[c,a]}),Z_=(c,a)=>({...G_(c),options:[c,a]});var J_="Arrow",EC=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"})})});EC.displayName=J_;var eA=EC;function tA(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 x0="Popper",[TC,RC]=qx(x0),[nA,MC]=TC(x0),kC=c=>{const{__scopePopper:a,children:l}=c,[f,h]=Q.useState(null);return I.jsx(nA,{scope:a,anchor:f,onAnchorChange:h,children:l})};kC.displayName=x0;var _C="PopperAnchor",AC=Q.forwardRef((c,a)=>{const{__scopePopper:l,virtualRef:f,...h}=c,y=MC(_C,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})});AC.displayName=_C;var C0="PopperContent",[rA,aA]=TC(C0),OC=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:k="partial",hideWhenDetached:_=!1,updatePositionStrategy:N="optimized",onPlaced:z,...G}=c,J=MC(C0,l),[de,ue]=Q.useState(null),ce=ju(a,Ve=>ue(Ve)),[fe,le]=Q.useState(null),Re=tA(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(oA),altBoundary:lt},{refs:rt,floatingStyles:st,placement:qe,isPositioned:Te,middlewareData:$}=$_({strategy:"fixed",placement:tt,whileElementsMounted:(...Ve)=>L_(...Ve,{animationFrame:N==="always"}),elements:{reference:J.anchor},middleware:[Y_({mainAxis:h+xe,alignmentAxis:v}),x&&W_({mainAxis:!0,crossAxis:!1,limiter:k==="partial"?X_():void 0,...Ae}),x&&K_({...Ae}),Q_({...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&&Z_({element:fe,padding:C}),lA({arrowWidth:ve,arrowHeight:xe}),_&&q_({strategy:"referenceHidden",...Ae})]}),[ke,Ce]=LC(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(rA,{scope:l,placedSide:ke,onArrowChange:le,arrowX:oe,arrowY:Be,shouldHideArrow:He,children:I.jsx(Hu.div,{"data-side":ke,"data-align":Ce,...G,ref:ce,style:{...G.style,animation:Te?void 0:"none"}})})})});OC.displayName=C0;var NC="PopperArrow",iA={top:"bottom",right:"left",bottom:"top",left:"right"},DC=Q.forwardRef(function(a,l){const{__scopePopper:f,...h}=a,y=aA(NC,f),v=iA[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(eA,{...h,ref:l,style:{...h.style,display:"block"}})})});DC.displayName=NC;function oA(c){return c!==null}var lA=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]=LC(l),k={start:"0%",center:"50%",end:"100%"}[A],_=(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?k:`${N}px`):R==="left"&&(z=`${f.floating.width+x}px`,G=v?k:`${N}px`),{data:{x:z,y:G}}}});function LC(c){const[a,l="center"]=c.split("-");return[a,l]}var sA=kC,uA=AC,cA=OC,fA=DC;function dA(c,a){return Q.useReducer((l,f)=>a[l][f]??l,c)}var PC=c=>{const{present:a,children:l}=c,f=pA(a),h=typeof l=="function"?l({present:f.isPresent}):Q.Children.only(l),y=ju(f.ref,hA(h));return typeof l=="function"||f.isPresent?Q.cloneElement(h,{ref:y}):null};PC.displayName="Presence";function pA(c){const[a,l]=Q.useState(),f=Q.useRef(null),h=Q.useRef(c),y=Q.useRef("none"),v=c?"mounted":"unmounted",[C,x]=dA(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 _=y.current,N=qv(R);c?x("MOUNT"):N==="none"||R?.display==="none"?x("UNMOUNT"):x(A&&_!==N?"ANIMATION_OUT":"UNMOUNT"),h.current=c}},[c,x]),Vu(()=>{if(a){let R;const A=a.ownerDocument.defaultView??window,k=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)})}},_=N=>{N.target===a&&(y.current=qv(f.current))};return a.addEventListener("animationstart",_),a.addEventListener("animationcancel",k),a.addEventListener("animationend",k),()=>{A.clearTimeout(R),a.removeEventListener("animationstart",_),a.removeEventListener("animationcancel",k),a.removeEventListener("animationend",k)}}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 hA(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 vA=ax[" useInsertionEffect ".trim().toString()]||Vu;function mA({prop:c,defaultProp:a,onChange:l=()=>{},caller:f}){const[h,y,v]=gA({defaultProp:a,onChange:l}),C=c!==void 0,x=C?c:h;{const A=Q.useRef(c!==void 0);Q.useEffect(()=>{const k=A.current;k!==C&&console.warn(`${f} is changing from ${k?"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 k=yA(A)?A(c):A;k!==c&&v.current?.(k)}else y(A)},[C,c,y,v]);return[x,R]}function gA({defaultProp:c,onChange:a}){const[l,f]=Q.useState(c),h=Q.useRef(l),y=Q.useRef(a);return vA(()=>{y.current=a},[a]),Q.useEffect(()=>{h.current!==l&&(y.current?.(l),h.current=l)},[l,h]),[l,f,y]}function yA(c){return typeof c=="function"}var SA=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"}),wA="VisuallyHidden",IC=Q.forwardRef((c,a)=>I.jsx(Hu.span,{...c,ref:a,style:{...SA,...c.style}}));IC.displayName=wA;var bA=IC,[Zv,o3]=qx("Tooltip",[RC]),Jv=RC(),UC="TooltipProvider",xA=700,E0="tooltip.open",[CA,T0]=Zv(UC),em=c=>{const{__scopeTooltip:a,delayDuration:l=xA,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(CA,{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=UC;var Rp="Tooltip",[EA,tm]=Zv(Rp),zC=c=>{const{__scopeTooltip:a,children:l,open:f,defaultOpen:h,onOpenChange:y,disableHoverableContent:v,delayDuration:C}=c,x=T0(Rp,c.__scopeTooltip),R=Jv(a),[A,k]=Q.useState(null),_=Hk(),N=Q.useRef(0),z=v??x.disableHoverableContent,G=C??x.delayDuration,J=Q.useRef(!1),[de,ue]=mA({prop:f,defaultProp:h??!1,onChange:ve=>{ve?(x.onOpen(),document.dispatchEvent(new CustomEvent(E0))):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(sA,{...R,children:I.jsx(EA,{scope:a,contentId:_,open:de,stateAttribute:ce,trigger:A,onTriggerChange:k,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})})};zC.displayName=Rp;var R0="TooltipTrigger",FC=Q.forwardRef((c,a)=>{const{__scopeTooltip:l,...f}=c,h=tm(R0,l),y=T0(R0,l),v=Jv(l),C=Q.useRef(null),x=ju(a,C,h.onTriggerChange),R=Q.useRef(!1),A=Q.useRef(!1),k=Q.useCallback(()=>R.current=!1,[]);return Q.useEffect(()=>()=>document.removeEventListener("pointerup",k),[k]),I.jsx(uA,{asChild:!0,...v,children:I.jsx(Hu.button,{"aria-describedby":h.open?h.contentId:void 0,"data-state":h.stateAttribute,...f,ref:x,onPointerMove:zl(c.onPointerMove,_=>{_.pointerType!=="touch"&&!A.current&&!y.isPointerInTransitRef.current&&(h.onTriggerEnter(),A.current=!0)}),onPointerLeave:zl(c.onPointerLeave,()=>{h.onTriggerLeave(),A.current=!1}),onPointerDown:zl(c.onPointerDown,()=>{h.open&&h.onClose(),R.current=!0,document.addEventListener("pointerup",k,{once:!0})}),onFocus:zl(c.onFocus,()=>{R.current||h.onOpen()}),onBlur:zl(c.onBlur,h.onClose),onClick:zl(c.onClick,h.onClose)})})});FC.displayName=R0;var TA="TooltipPortal",[l3,RA]=Zv(TA,{forceMount:void 0}),Cf="TooltipContent",jC=Q.forwardRef((c,a)=>{const l=RA(Cf,c.__scopeTooltip),{forceMount:f=l.forceMount,side:h="top",...y}=c,v=tm(Cf,c.__scopeTooltip);return I.jsx(PC,{present:f||v.open,children:v.disableHoverableContent?I.jsx(BC,{side:h,...y,ref:a}):I.jsx(MA,{side:h,...y,ref:a})})}),MA=Q.forwardRef((c,a)=>{const l=tm(Cf,c.__scopeTooltip),f=T0(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:k}=f,_=Q.useCallback(()=>{C(null),k(!1)},[k]),N=Q.useCallback((z,G)=>{const J=z.currentTarget,de={x:z.clientX,y:z.clientY},ue=NA(de,J.getBoundingClientRect()),ce=DA(de,ue),fe=LA(G.getBoundingClientRect()),le=IA([...ce,...fe]);C(le),k(!0)},[k]);return Q.useEffect(()=>()=>_(),[_]),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,_]),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=!PA(de,v);ue?_():ce&&(_(),R())};return document.addEventListener("pointermove",z),()=>document.removeEventListener("pointermove",z)}},[x,A,v,R,_]),I.jsx(BC,{...c,ref:y})}),[kA,_A]=Zv(Rp,{isInside:!1}),AA=DM("TooltipContent"),BC=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(E0,A),()=>document.removeEventListener(E0,A)),[A]),Q.useEffect(()=>{if(x.trigger){const k=_=>{_.target?.contains(x.trigger)&&A()};return window.addEventListener("scroll",k,{capture:!0}),()=>window.removeEventListener("scroll",k,{capture:!0})}},[x.trigger,A]),I.jsx(eC,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:y,onPointerDownOutside:v,onFocusOutside:k=>k.preventDefault(),onDismiss:A,children:I.jsxs(cA,{"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(AA,{children:f}),I.jsx(kA,{scope:l,isInside:!0,children:I.jsx(bA,{id:x.contentId,role:"tooltip",children:h||f})})]})})});jC.displayName=Cf;var HC="TooltipArrow",OA=Q.forwardRef((c,a)=>{const{__scopeTooltip:l,...f}=c,h=Jv(l);return _A(HC,l).isInside?null:I.jsx(fA,{...h,...f,ref:a})});OA.displayName=HC;function NA(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 DA(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 LA(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 PA(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,k=x.x,_=x.y;A>f!=_>f&&l<(k-R)*(f-A)/(_-A)+R&&(h=!h)}return h}function IA(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),UA(a)}function UA(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 zA=em,FA=zC,jA=FC,VC=jC;const BA=zA,M0=FA,k0=jA,nm=Q.forwardRef(({className:c,sideOffset:a=4,...l},f)=>I.jsx(VC,{ref:f,sideOffset:a,className:Vx("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=VC.displayName;const HA=()=>{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(BA,{children:I.jsxs(M0,{children:[I.jsx(k0,{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(Kx,{className:"text-foreground hover:text-primary",size:24}):I.jsx(Xx,{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(s0,{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(Qx,{size:20}),"Innstillinger"]})]})]})},VA=()=>{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"})]})]})})},$A=()=>{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(),k=()=>{y?f(ot.PLAYING):(f(ot.PAUSED),h(Pt.PAUSE))},_=()=>{const z=x.current?.closest("sigurd-startup");z?A(z):A()},N=JR(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(Ck,{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(Tk,{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(kk,{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(M0,{children:[I.jsx(k0,{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:y?I.jsx(s0,{className:"text-white hover:text-primary",size:24}):I.jsx(Rk,{className:"text-foreground hover:text-primary",size:24})})}),I.jsx(nm,{children:"Pause Spill (P)"})]})}),I.jsx(em,{children:I.jsxs(M0,{children:[I.jsx(k0,{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:R?I.jsx(Kx,{className:"text-foreground hover:text-primary",size:24}):I.jsx(Xx,{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(Ek,{color:"#ff3143",size:R?25:20,fill:G<a?"#ff3143":"none"},G)),a>3?I.jsxs("p",{children:["+ ",a-3]}):""]})})]})},GA=()=>{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:k}=Ft.getState();if(C(),x(),R(),A(),k){const{initializeLevel:_}=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(s0,{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(Qx,{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(Mk,{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(Wx,{size:20}),"hovedmeny"]})]})})},YA=()=>{const{setMenuType:c,previousMenu:a}=Ft(),l=Ft(k=>k.audioSettings),f=Ft(k=>k.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(Yx,{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:k=>f({masterVolume:Number(k.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:k=>f({musicVolume:Number(k.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:k=>f({sfxVolume:Number(k.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)"})})]})]})},WA=(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 k=setTimeout(()=>{const _=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())},_);return()=>clearInterval(z)},y);return()=>clearTimeout(k)},[c,l,f,h,y,v]),C},XA=()=>{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=WA(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å"}...`:""})]})})]})},KA=()=>{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(Wx,{className:"w-7 h-7",strokeWidth:2})})})]})},QA=()=>{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"})]})},qA=()=>{const{setMenuType:c,previousMenu:a}=Ft(),l=Ft(k=>k.audioSettings),f=Ft(k=>k.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(Yx,{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:k=>f({masterVolume:Number(k.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:k=>f({musicVolume:Number(k.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:k=>f({sfxVolume:Number(k.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}),ZA=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])},JA=()=>{const[c,a]=Q.useState(!0);return Q.useEffect(()=>{Sx.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:9,build:0,timestamp:1755084924834,hash:"YNYPTG",full:"2.2.9"},_0=Ko.full,Gu=()=>({version:_0,major:Ko.major,minor:Ko.minor,patch:Ko.patch,build:Ko.build,timestamp:Ko.timestamp,hash:Ko.hash}),$C=()=>{console.log(`🎮 Sigurd Startup Game v${_0} (Build ${Ko.build})`),console.log(`📦 Hash: ${Ko.hash}`),console.log(`⏰ Built: ${new Date(Ko.timestamp).toISOString()}`)},eO=()=>{const{currentState:c,showMenu:a}=Ft(),l=Pv.useRef(null),{toggleFullscreen:f}=bp(),{isFullscreen:h}=bp(),{isPreloading:y}=JA();return ZA(()=>{const C=l.current?.closest("sigurd-startup");C?f(C):f()}),I.jsxs("div",{ref:l,className:"relative rounded-lg",children:[I.jsx(AM,{}),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(HA,{})}),a===Pt.COUNTDOWN&&I.jsx(Xo,{children:I.jsx(VA,{})}),a===Pt.PAUSE&&I.jsx(Xo,{children:I.jsx(GA,{})}),a===Pt.SETTINGS&&I.jsx(Xo,{children:I.jsx(YA,{})}),c===ot.PLAYING&&I.jsx(Xo,{transparent:!0,children:I.jsx($A,{})}),a===Pt.BONUS&&I.jsx(Xo,{children:I.jsx(XA,{})}),a===Pt.VICTORY&&I.jsx(Xo,{children:I.jsx(KA,{})}),a===Pt.GAME_OVER&&I.jsx(Xo,{children:I.jsx(QA,{})}),a===Pt.AUDIO_SETTINGS&&I.jsx(Xo,{children:I.jsx(qA,{})})]})]})},tO='*,: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)}.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 nO extends HTMLElement{constructor(){super(...arguments);be(this,"root",null)}connectedCallback(){fM();const l=this.attachShadow({mode:"open"}),f=document.createElement("div");l.appendChild(f);const h=document.createElement("style");h.textContent=tO,l.appendChild(h),this.root=pp.createRoot(f),this.root.render(I.jsx(eO,{})),$C(),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",nO);const rO={getVersion:Gu,ASSET_PATHS:Il,getBackgroundImagePath:dx};sa.ASSET_PATHS=Il,sa.default=rO,sa.getBackgroundImagePath=dx,sa.getVersion=Gu,sa.logVersion=$C,Object.defineProperties(sa,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
322
322
  //# sourceMappingURL=sigurd-startup.umd.js.map