@hypertools/sdk 0.1.0

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 (107) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +443 -0
  3. package/dist/capture/CaptureManager.d.ts +55 -0
  4. package/dist/capture/CaptureManager.d.ts.map +1 -0
  5. package/dist/capture/index.d.ts +27 -0
  6. package/dist/capture/index.d.ts.map +1 -0
  7. package/dist/capture/index.js +11 -0
  8. package/dist/capture/index.js.map +10 -0
  9. package/dist/capture/types.d.ts +76 -0
  10. package/dist/capture/types.d.ts.map +1 -0
  11. package/dist/codegen/index.d.ts +6 -0
  12. package/dist/codegen/index.d.ts.map +1 -0
  13. package/dist/codegen/index.js +800 -0
  14. package/dist/codegen/index.js.map +13 -0
  15. package/dist/controls/HypertoolControls.d.ts +84 -0
  16. package/dist/controls/HypertoolControls.d.ts.map +1 -0
  17. package/dist/controls/index.d.ts +11 -0
  18. package/dist/controls/index.d.ts.map +1 -0
  19. package/dist/controls/index.js +28 -0
  20. package/dist/controls/index.js.map +12 -0
  21. package/dist/controls/simple-api.d.ts +43 -0
  22. package/dist/controls/simple-api.d.ts.map +1 -0
  23. package/dist/controls/theme.d.ts +80 -0
  24. package/dist/controls/theme.d.ts.map +1 -0
  25. package/dist/controls/types.d.ts +178 -0
  26. package/dist/controls/types.d.ts.map +1 -0
  27. package/dist/core/EventEmitter.d.ts +76 -0
  28. package/dist/core/EventEmitter.d.ts.map +1 -0
  29. package/dist/core/Experience.d.ts +128 -0
  30. package/dist/core/Experience.d.ts.map +1 -0
  31. package/dist/core/ObjectRegistry.d.ts +76 -0
  32. package/dist/core/ObjectRegistry.d.ts.map +1 -0
  33. package/dist/core/ParamStore.d.ts +66 -0
  34. package/dist/core/ParamStore.d.ts.map +1 -0
  35. package/dist/core/index.d.ts +12 -0
  36. package/dist/core/index.d.ts.map +1 -0
  37. package/dist/core/index.js +3 -0
  38. package/dist/core/index.js.map +13 -0
  39. package/dist/export/bundler.d.ts +55 -0
  40. package/dist/export/bundler.d.ts.map +1 -0
  41. package/dist/export/generators/index.d.ts +6 -0
  42. package/dist/export/generators/index.d.ts.map +1 -0
  43. package/dist/export/generators/webComponent.d.ts +29 -0
  44. package/dist/export/generators/webComponent.d.ts.map +1 -0
  45. package/dist/export/index.d.ts +19 -0
  46. package/dist/export/index.d.ts.map +1 -0
  47. package/dist/export/index.js +800 -0
  48. package/dist/export/index.js.map +13 -0
  49. package/dist/export/runtime.d.ts +46 -0
  50. package/dist/export/runtime.d.ts.map +1 -0
  51. package/dist/frame/cssBridge.d.ts +34 -0
  52. package/dist/frame/cssBridge.d.ts.map +1 -0
  53. package/dist/frame/index.d.ts +9 -0
  54. package/dist/frame/index.d.ts.map +1 -0
  55. package/dist/frame/index.js +3 -0
  56. package/dist/frame/index.js.map +24 -0
  57. package/dist/frame/runtime.d.ts +39 -0
  58. package/dist/frame/runtime.d.ts.map +1 -0
  59. package/dist/frame/types.d.ts +119 -0
  60. package/dist/frame/types.d.ts.map +1 -0
  61. package/dist/frame/utils/dom.d.ts +11 -0
  62. package/dist/frame/utils/dom.d.ts.map +1 -0
  63. package/dist/frame/wrapper-app/WrapperApp.d.ts +16 -0
  64. package/dist/frame/wrapper-app/WrapperApp.d.ts.map +1 -0
  65. package/dist/frame/wrapper-app/components/CanvasSizeWidget.d.ts +17 -0
  66. package/dist/frame/wrapper-app/components/CanvasSizeWidget.d.ts.map +1 -0
  67. package/dist/frame/wrapper-app/components/ControlsPanel.d.ts +11 -0
  68. package/dist/frame/wrapper-app/components/ControlsPanel.d.ts.map +1 -0
  69. package/dist/frame/wrapper-app/components/ExportWidget.d.ts +16 -0
  70. package/dist/frame/wrapper-app/components/ExportWidget.d.ts.map +1 -0
  71. package/dist/frame/wrapper-app/components/ResizeHandles.d.ts +19 -0
  72. package/dist/frame/wrapper-app/components/ResizeHandles.d.ts.map +1 -0
  73. package/dist/frame/wrapper-app/components/SandboxContainer.d.ts +16 -0
  74. package/dist/frame/wrapper-app/components/SandboxContainer.d.ts.map +1 -0
  75. package/dist/frame/wrapper-app/components/index.d.ts +5 -0
  76. package/dist/frame/wrapper-app/components/index.d.ts.map +1 -0
  77. package/dist/frame/wrapper-app/context/CanvasContext.d.ts +37 -0
  78. package/dist/frame/wrapper-app/context/CanvasContext.d.ts.map +1 -0
  79. package/dist/frame/wrapper-app/context/index.d.ts +2 -0
  80. package/dist/frame/wrapper-app/context/index.d.ts.map +1 -0
  81. package/dist/frame/wrapper-app/index.d.ts +9 -0
  82. package/dist/frame/wrapper-app/index.d.ts.map +1 -0
  83. package/dist/frame/wrapper-app/types.d.ts +38 -0
  84. package/dist/frame/wrapper-app/types.d.ts.map +1 -0
  85. package/dist/index.d.ts +30 -0
  86. package/dist/index.d.ts.map +1 -0
  87. package/dist/index.js +189 -0
  88. package/dist/index.js.map +35 -0
  89. package/dist/react/ExperienceView.d.ts +53 -0
  90. package/dist/react/ExperienceView.d.ts.map +1 -0
  91. package/dist/react/index.d.ts +8 -0
  92. package/dist/react/index.d.ts.map +1 -0
  93. package/dist/react/index.js +3 -0
  94. package/dist/react/index.js.map +15 -0
  95. package/dist/react/useExperience.d.ts +55 -0
  96. package/dist/react/useExperience.d.ts.map +1 -0
  97. package/dist/recording/ImageCapture.d.ts +46 -0
  98. package/dist/recording/ImageCapture.d.ts.map +1 -0
  99. package/dist/recording/Timeline.d.ts +105 -0
  100. package/dist/recording/Timeline.d.ts.map +1 -0
  101. package/dist/recording/VideoRecorder.d.ts +64 -0
  102. package/dist/recording/VideoRecorder.d.ts.map +1 -0
  103. package/dist/recording/index.d.ts +10 -0
  104. package/dist/recording/index.d.ts.map +1 -0
  105. package/dist/recording/index.js +3 -0
  106. package/dist/recording/index.js.map +12 -0
  107. package/package.json +141 -0
package/dist/index.js ADDED
@@ -0,0 +1,189 @@
1
+ var sR=Object.create;var{getPrototypeOf:lR,defineProperty:IW,getOwnPropertyNames:iR}=Object;var nR=Object.prototype.hasOwnProperty;var zQ=(Z,Y,K)=>{K=Z!=null?sR(lR(Z)):{};let z=Y||!Z||!Z.__esModule?IW(K,"default",{value:Z,enumerable:!0}):K;for(let $ of iR(Z))if(!nR.call(z,$))IW(z,$,{get:()=>Z[$],enumerable:!0});return z};var m1=(Z,Y)=>()=>(Y||Z((Y={exports:{}}).exports,Y),Y.exports);var G8=m1((rT,UG)=>{(function(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function")__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var Z="18.3.1",Y=Symbol.for("react.element"),K=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),$=Symbol.for("react.strict_mode"),F=Symbol.for("react.profiler"),B=Symbol.for("react.provider"),j=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),a=Symbol.for("react.lazy"),DJ=Symbol.for("react.offscreen"),_J=Symbol.iterator,yJ="@@iterator";function CJ(D){if(D===null||typeof D!=="object")return null;var A=_J&&D[_J]||D[yJ];if(typeof A==="function")return A;return null}var g={current:null},KJ={transition:null},c={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},qJ={current:null},d={},UJ=null;function SJ(D){UJ=D}d.setExtraStackFrame=function(D){UJ=D},d.getCurrentStack=null,d.getStackAddendum=function(){var D="";if(UJ)D+=UJ;var A=d.getCurrentStack;if(A)D+=A()||"";return D};var zJ=!1,i=!1,$J=!1,LJ=!1,JJ=!1,YJ={ReactCurrentDispatcher:g,ReactCurrentBatchConfig:KJ,ReactCurrentOwner:qJ};YJ.ReactDebugCurrentFrame=d,YJ.ReactCurrentActQueue=c;function TJ(D){{for(var A=arguments.length,V=Array(A>1?A-1:0),C=1;C<A;C++)V[C-1]=arguments[C];AJ("warn",D,V)}}function QJ(D){{for(var A=arguments.length,V=Array(A>1?A-1:0),C=1;C<A;C++)V[C-1]=arguments[C];AJ("error",D,V)}}function AJ(D,A,V){{var C=YJ.ReactDebugCurrentFrame,m=C.getStackAddendum();if(m!=="")A+="%s",V=V.concat([m]);var IJ=V.map(function(XJ){return String(XJ)});IJ.unshift("Warning: "+A),Function.prototype.apply.call(console[D],console,IJ)}}var BQ={};function vQ(D,A){{var V=D.constructor,C=V&&(V.displayName||V.name)||"ReactClass",m=C+"."+A;if(BQ[m])return;QJ("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.",A,C),BQ[m]=!0}}var mZ={isMounted:function(D){return!1},enqueueForceUpdate:function(D,A,V){vQ(D,"forceUpdate")},enqueueReplaceState:function(D,A,V,C){vQ(D,"replaceState")},enqueueSetState:function(D,A,V,C){vQ(D,"setState")}},cQ=Object.assign,$Q={};Object.freeze($Q);function uQ(D,A,V){this.props=D,this.context=A,this.refs=$Q,this.updater=V||mZ}uQ.prototype.isReactComponent={},uQ.prototype.setState=function(D,A){if(typeof D!=="object"&&typeof D!=="function"&&D!=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,D,A,"setState")},uQ.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};{var cZ={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)."]},Z7=function(D,A){Object.defineProperty(uQ.prototype,D,{get:function(){TJ("%s(...) is deprecated in plain JavaScript React classes. %s",A[0],A[1]);return}})};for(var f7 in cZ)if(cZ.hasOwnProperty(f7))Z7(f7,cZ[f7])}function v7(){}v7.prototype=uQ.prototype;function ZZ(D,A,V){this.props=D,this.context=A,this.refs=$Q,this.updater=V||mZ}var X7=ZZ.prototype=new v7;X7.constructor=ZZ,cQ(X7,uQ.prototype),X7.isPureReactComponent=!0;function PZ(){var D={current:null};return Object.seal(D),D}var I7=Array.isArray;function yQ(D){return I7(D)}function Y7(D){{var A=typeof Symbol==="function"&&Symbol.toStringTag,V=A&&D[Symbol.toStringTag]||D.constructor.name||"Object";return V}}function j7(D){try{return pQ(D),!1}catch(A){return!0}}function pQ(D){return""+D}function SQ(D){if(j7(D))return QJ("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Y7(D)),pQ(D)}function pZ(D,A,V){var C=D.displayName;if(C)return C;var m=A.displayName||A.name||"";return m!==""?V+"("+m+")":V}function u7(D){return D.displayName||"Context"}function XZ(D){if(D==null)return null;if(typeof D.tag==="number")QJ("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");if(typeof D==="function")return D.displayName||D.name||null;if(typeof D==="string")return D;switch(D){case z:return"Fragment";case K:return"Portal";case F:return"Profiler";case $:return"StrictMode";case _:return"Suspense";case b:return"SuspenseList"}if(typeof D==="object")switch(D.$$typeof){case j:var A=D;return u7(A)+".Consumer";case B:var V=D;return u7(V._context)+".Provider";case y:return pZ(D,D.render,"ForwardRef");case k:var C=D.displayName||null;if(C!==null)return C;return XZ(D.type)||"Memo";case a:{var m=D,IJ=m._payload,XJ=m._init;try{return XZ(XJ(IJ))}catch(PJ){return null}}}return null}var P7=Object.prototype.hasOwnProperty,qX={key:!0,ref:!0,__self:!0,__source:!0},G7,K7,sQ;sQ={};function N7(D){if(P7.call(D,"ref")){var A=Object.getOwnPropertyDescriptor(D,"ref").get;if(A&&A.isReactWarning)return!1}return D.ref!==void 0}function NZ(D){if(P7.call(D,"key")){var A=Object.getOwnPropertyDescriptor(D,"key").get;if(A&&A.isReactWarning)return!1}return D.key!==void 0}function $Z(D,A){var V=function(){if(!G7)G7=!0,QJ("%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)",A)};V.isReactWarning=!0,Object.defineProperty(D,"key",{get:V,configurable:!0})}function K8(D,A){var V=function(){if(!K7)K7=!0,QJ("%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)",A)};V.isReactWarning=!0,Object.defineProperty(D,"ref",{get:V,configurable:!0})}function U8(D){if(typeof D.ref==="string"&&qJ.current&&D.__self&&qJ.current.stateNode!==D.__self){var A=XZ(qJ.current.type);if(!sQ[A])QJ('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',A,D.ref),sQ[A]=!0}}var g7=function(D,A,V,C,m,IJ,XJ){var PJ={$$typeof:Y,type:D,key:A,ref:V,props:XJ,_owner:IJ};if(PJ._store={},Object.defineProperty(PJ._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(PJ,"_self",{configurable:!1,enumerable:!1,writable:!1,value:C}),Object.defineProperty(PJ,"_source",{configurable:!1,enumerable:!1,writable:!1,value:m}),Object.freeze)Object.freeze(PJ.props),Object.freeze(PJ);return PJ};function U7(D,A,V){var C,m={},IJ=null,XJ=null,PJ=null,gJ=null;if(A!=null){if(N7(A))XJ=A.ref,U8(A);if(NZ(A))SQ(A.key),IJ=""+A.key;PJ=A.__self===void 0?null:A.__self,gJ=A.__source===void 0?null:A.__source;for(C in A)if(P7.call(A,C)&&!qX.hasOwnProperty(C))m[C]=A[C]}var XQ=arguments.length-2;if(XQ===1)m.children=V;else if(XQ>1){var LQ=Array(XQ);for(var WQ=0;WQ<XQ;WQ++)LQ[WQ]=arguments[WQ+2];if(Object.freeze)Object.freeze(LQ);m.children=LQ}if(D&&D.defaultProps){var jQ=D.defaultProps;for(C in jQ)if(m[C]===void 0)m[C]=jQ[C]}if(IJ||XJ){var EQ=typeof D==="function"?D.displayName||D.name||"Unknown":D;if(IJ)$Z(m,EQ);if(XJ)K8(m,EQ)}return g7(D,IJ,XJ,PJ,gJ,qJ.current,m)}function r(D,A){var V=g7(D.type,A,D.ref,D._self,D._source,D._owner,D.props);return V}function WJ(D,A,V){if(D===null||D===void 0)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+D+".");var C,m=cQ({},D.props),IJ=D.key,XJ=D.ref,PJ=D._self,gJ=D._source,XQ=D._owner;if(A!=null){if(N7(A))XJ=A.ref,XQ=qJ.current;if(NZ(A))SQ(A.key),IJ=""+A.key;var LQ;if(D.type&&D.type.defaultProps)LQ=D.type.defaultProps;for(C in A)if(P7.call(A,C)&&!qX.hasOwnProperty(C))if(A[C]===void 0&&LQ!==void 0)m[C]=LQ[C];else m[C]=A[C]}var WQ=arguments.length-2;if(WQ===1)m.children=V;else if(WQ>1){var jQ=Array(WQ);for(var EQ=0;EQ<WQ;EQ++)jQ[EQ]=arguments[EQ+2];m.children=jQ}return g7(D.type,IJ,XJ,PJ,gJ,XQ,m)}function VJ(D){return typeof D==="object"&&D!==null&&D.$$typeof===Y}var JQ=".",OQ=":";function lQ(D){var A=/[=:]/g,V={"=":"=0",":":"=2"},C=D.replace(A,function(m){return V[m]});return"$"+C}var AQ=!1,wZ=/\/+/g;function cJ(D){return D.replace(wZ,"$&/")}function rJ(D,A){if(typeof D==="object"&&D!==null&&D.key!=null)return SQ(D.key),lQ(""+D.key);return A.toString(36)}function T8(D,A,V,C,m){var IJ=typeof D;if(IJ==="undefined"||IJ==="boolean")D=null;var XJ=!1;if(D===null)XJ=!0;else switch(IJ){case"string":case"number":XJ=!0;break;case"object":switch(D.$$typeof){case Y:case K:XJ=!0}}if(XJ){var PJ=D,gJ=m(PJ),XQ=C===""?JQ+rJ(PJ,0):C;if(yQ(gJ)){var LQ="";if(XQ!=null)LQ=cJ(XQ)+"/";T8(gJ,A,LQ,"",function(FG){return FG})}else if(gJ!=null){if(VJ(gJ)){if(gJ.key&&(!PJ||PJ.key!==gJ.key))SQ(gJ.key);gJ=r(gJ,V+(gJ.key&&(!PJ||PJ.key!==gJ.key)?cJ(""+gJ.key)+"/":"")+XQ)}A.push(gJ)}return 1}var WQ,jQ,EQ=0,tJ=C===""?JQ:C+OQ;if(yQ(D))for(var Z9=0;Z9<D.length;Z9++)WQ=D[Z9],jQ=tJ+rJ(WQ,Z9),EQ+=T8(WQ,A,V,jQ,m);else{var r9=CJ(D);if(typeof r9==="function"){var I6=D;if(r9===I6.entries){if(!AQ)TJ("Using Maps as children is not supported. Use an array of keyed ReactElements instead.");AQ=!0}var MG=r9.call(I6),k8,j6=0;while(!(k8=MG.next()).done)WQ=k8.value,jQ=tJ+rJ(WQ,j6++),EQ+=T8(WQ,A,V,jQ,m)}else if(IJ==="object"){var P6=String(D);throw Error("Objects are not valid as a React child (found: "+(P6==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":P6)+"). If you meant to render a collection of children, use an array instead.")}}return EQ}function w7(D,A,V){if(D==null)return D;var C=[],m=0;return T8(D,C,"","",function(IJ){return A.call(V,IJ,m++)}),C}function zX(D){var A=0;return w7(D,function(){A++}),A}function K6(D,A,V){w7(D,function(){A.apply(this,arguments)},V)}function m9(D){return w7(D,function(A){return A})||[]}function c9(D){if(!VJ(D))throw Error("React.Children.only expected to receive a single React element child.");return D}function tX(D){var A={$$typeof:j,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};A.Provider={$$typeof:B,_context:A};var V=!1,C=!1,m=!1;{var IJ={$$typeof:j,_context:A};Object.defineProperties(IJ,{Provider:{get:function(){if(!C)C=!0,QJ("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?");return A.Provider},set:function(XJ){A.Provider=XJ}},_currentValue:{get:function(){return A._currentValue},set:function(XJ){A._currentValue=XJ}},_currentValue2:{get:function(){return A._currentValue2},set:function(XJ){A._currentValue2=XJ}},_threadCount:{get:function(){return A._threadCount},set:function(XJ){A._threadCount=XJ}},Consumer:{get:function(){if(!V)V=!0,QJ("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?");return A.Consumer}},displayName:{get:function(){return A.displayName},set:function(XJ){if(!m)TJ("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",XJ),m=!0}}}),A.Consumer=IJ}return A._currentRenderer=null,A._currentRenderer2=null,A}var q8=-1,$X=0,OX=1,d7=2;function m7(D){if(D._status===q8){var A=D._result,V=A();if(V.then(function(IJ){if(D._status===$X||D._status===q8){var XJ=D;XJ._status=OX,XJ._result=IJ}},function(IJ){if(D._status===$X||D._status===q8){var XJ=D;XJ._status=d7,XJ._result=IJ}}),D._status===q8){var C=D;C._status=$X,C._result=V}}if(D._status===OX){var m=D._result;if(m===void 0)QJ(`lazy: Expected the result of a dynamic import() call. Instead received: %s
2
+
3
+ Your code should look like:
4
+ const MyComponent = lazy(() => import('./MyComponent'))
5
+
6
+ Did you accidentally put curly braces around the import?`,m);if(!("default"in m))QJ(`lazy: Expected the result of a dynamic import() call. Instead received: %s
7
+
8
+ Your code should look like:
9
+ const MyComponent = lazy(() => import('./MyComponent'))`,m);return m.default}else throw D._result}function z8(D){var A={_status:q8,_result:D},V={$$typeof:a,_payload:A,_init:m7};{var C,m;Object.defineProperties(V,{defaultProps:{configurable:!0,get:function(){return C},set:function(IJ){QJ("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."),C=IJ,Object.defineProperty(V,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return m},set:function(IJ){QJ("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."),m=IJ,Object.defineProperty(V,"propTypes",{enumerable:!0})}}})}return V}function I(D){{if(D!=null&&D.$$typeof===k)QJ("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).");else if(typeof D!=="function")QJ("forwardRef requires a render function but was given %s.",D===null?"null":typeof D);else if(D.length!==0&&D.length!==2)QJ("forwardRef render functions accept exactly two parameters: props and ref. %s",D.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined.");if(D!=null){if(D.defaultProps!=null||D.propTypes!=null)QJ("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?")}}var A={$$typeof:y,render:D};{var V;Object.defineProperty(A,"displayName",{enumerable:!1,configurable:!0,get:function(){return V},set:function(C){if(V=C,!D.name&&!D.displayName)D.displayName=C}})}return A}var v=Symbol.for("react.module.reference");function l(D){if(typeof D==="string"||typeof D==="function")return!0;if(D===z||D===F||JJ||D===$||D===_||D===b||LJ||D===DJ||zJ||i||$J)return!0;if(typeof D==="object"&&D!==null){if(D.$$typeof===a||D.$$typeof===k||D.$$typeof===B||D.$$typeof===j||D.$$typeof===y||D.$$typeof===v||D.getModuleId!==void 0)return!0}return!1}function FJ(D,A){if(!l(D))QJ("memo: The first argument must be a component. Instead received: %s",D===null?"null":typeof D);var V={$$typeof:k,type:D,compare:A===void 0?null:A};{var C;Object.defineProperty(V,"displayName",{enumerable:!1,configurable:!0,get:function(){return C},set:function(m){if(C=m,!D.name&&!D.displayName)D.displayName=m}})}return V}function HJ(){var D=g.current;if(D===null)QJ(`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:
10
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
11
+ 2. You might be breaking the Rules of Hooks
12
+ 3. You might have more than one copy of React in the same app
13
+ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`);return D}function lJ(D){var A=HJ();if(D._context!==void 0){var V=D._context;if(V.Consumer===D)QJ("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?");else if(V.Provider===D)QJ("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return A.useContext(D)}function hJ(D){var A=HJ();return A.useState(D)}function kJ(D,A,V){var C=HJ();return C.useReducer(D,A,V)}function oJ(D){var A=HJ();return A.useRef(D)}function IQ(D,A){var V=HJ();return V.useEffect(D,A)}function RQ(D,A){var V=HJ();return V.useInsertionEffect(D,A)}function OZ(D,A){var V=HJ();return V.useLayoutEffect(D,A)}function $8(D,A){var V=HJ();return V.useCallback(D,A)}function c7(D,A){var V=HJ();return V.useMemo(D,A)}function YZ(D,A,V){var C=HJ();return C.useImperativeHandle(D,A,V)}function LX(D,A){{var V=HJ();return V.useDebugValue(D,A)}}function U6(){var D=HJ();return D.useTransition()}function p7(D){var A=HJ();return A.useDeferredValue(D)}function uJ(){var D=HJ();return D.useId()}function aX(D,A,V){var C=HJ();return C.useSyncExternalStore(D,A,V)}var WX=0,q6,z6,$6,O6,L6,W6,D6;function A4(){}A4.__reactDisabledLog=!0;function WG(){{if(WX===0){q6=console.log,z6=console.info,$6=console.warn,O6=console.error,L6=console.group,W6=console.groupCollapsed,D6=console.groupEnd;var D={configurable:!0,enumerable:!0,value:A4,writable:!0};Object.defineProperties(console,{info:D,log:D,warn:D,error:D,group:D,groupCollapsed:D,groupEnd:D})}WX++}}function H6(){{if(WX--,WX===0){var D={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:cQ({},D,{value:q6}),info:cQ({},D,{value:z6}),warn:cQ({},D,{value:$6}),error:cQ({},D,{value:O6}),group:cQ({},D,{value:L6}),groupCollapsed:cQ({},D,{value:W6}),groupEnd:cQ({},D,{value:D6})})}if(WX<0)QJ("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var eX=YJ.ReactCurrentDispatcher,R7;function DX(D,A,V){{if(R7===void 0)try{throw Error()}catch(m){var C=m.stack.trim().match(/\n( *(at )?)/);R7=C&&C[1]||""}return`
14
+ `+R7+D}}var HX=!1,p9;{var M6=typeof WeakMap==="function"?WeakMap:Map;p9=new M6}function I4(D,A){if(!D||HX)return"";{var V=p9.get(D);if(V!==void 0)return V}var C;HX=!0;var m=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var IJ;IJ=eX.current,eX.current=null,WG();try{if(A){var XJ=function(){throw Error()};if(Object.defineProperty(XJ.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(XJ,[])}catch(tJ){C=tJ}Reflect.construct(D,[],XJ)}else{try{XJ.call()}catch(tJ){C=tJ}D.call(XJ.prototype)}}else{try{throw Error()}catch(tJ){C=tJ}D()}}catch(tJ){if(tJ&&C&&typeof tJ.stack==="string"){var PJ=tJ.stack.split(`
15
+ `),gJ=C.stack.split(`
16
+ `),XQ=PJ.length-1,LQ=gJ.length-1;while(XQ>=1&&LQ>=0&&PJ[XQ]!==gJ[LQ])LQ--;for(;XQ>=1&&LQ>=0;XQ--,LQ--)if(PJ[XQ]!==gJ[LQ]){if(XQ!==1||LQ!==1)do if(XQ--,LQ--,LQ<0||PJ[XQ]!==gJ[LQ]){var WQ=`
17
+ `+PJ[XQ].replace(" at new "," at ");if(D.displayName&&WQ.includes("<anonymous>"))WQ=WQ.replace("<anonymous>",D.displayName);if(typeof D==="function")p9.set(D,WQ);return WQ}while(XQ>=1&&LQ>=0);break}}}finally{HX=!1,eX.current=IJ,H6(),Error.prepareStackTrace=m}var jQ=D?D.displayName||D.name:"",EQ=jQ?DX(jQ):"";if(typeof D==="function")p9.set(D,EQ);return EQ}function F6(D,A,V){return I4(D,!1)}function DG(D){var A=D.prototype;return!!(A&&A.isReactComponent)}function MX(D,A,V){if(D==null)return"";if(typeof D==="function")return I4(D,DG(D));if(typeof D==="string")return DX(D);switch(D){case _:return DX("Suspense");case b:return DX("SuspenseList")}if(typeof D==="object")switch(D.$$typeof){case y:return F6(D.render);case k:return MX(D.type,A,V);case a:{var C=D,m=C._payload,IJ=C._init;try{return MX(IJ(m),A,V)}catch(XJ){}}}return""}var j4={},B6=YJ.ReactDebugCurrentFrame;function s9(D){if(D){var A=D._owner,V=MX(D.type,D._source,A?A.type:null);B6.setExtraStackFrame(V)}else B6.setExtraStackFrame(null)}function P4(D,A,V,C,m){{var IJ=Function.call.bind(P7);for(var XJ in D)if(IJ(D,XJ)){var PJ=void 0;try{if(typeof D[XJ]!=="function"){var gJ=Error((C||"React class")+": "+V+" type `"+XJ+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof D[XJ]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw gJ.name="Invariant Violation",gJ}PJ=D[XJ](A,XJ,C,V,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(XQ){PJ=XQ}if(PJ&&!(PJ instanceof Error))s9(m),QJ("%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).",C||"React class",V,XJ,typeof PJ),s9(null);if(PJ instanceof Error&&!(PJ.message in j4))j4[PJ.message]=!0,s9(m),QJ("Failed %s type: %s",V,PJ.message),s9(null)}}}function sJ(D){if(D){var A=D._owner,V=MX(D.type,D._source,A?A.type:null);SJ(V)}else SJ(null)}var N4=!1;function A6(){if(qJ.current){var D=XZ(qJ.current.type);if(D)return`
18
+
19
+ Check the render method of \``+D+"`."}return""}function EJ(D){if(D!==void 0){var A=D.fileName.replace(/^.*[\\\/]/,""),V=D.lineNumber;return`
20
+
21
+ Check your code at `+A+":"+V+"."}return""}function w4(D){if(D!==null&&D!==void 0)return EJ(D.__source);return""}var RZ={};function J9(D){var A=A6();if(!A){var V=typeof D==="string"?D:D.displayName||D.name;if(V)A=`
22
+
23
+ Check the top-level render call using <`+V+">."}return A}function FX(D,A){if(!D._store||D._store.validated||D.key!=null)return;D._store.validated=!0;var V=J9(A);if(RZ[V])return;RZ[V]=!0;var C="";if(D&&D._owner&&D._owner!==qJ.current)C=" It was passed a child from "+XZ(D._owner.type)+".";sJ(D),QJ('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',V,C),sJ(null)}function R4(D,A){if(typeof D!=="object")return;if(yQ(D))for(var V=0;V<D.length;V++){var C=D[V];if(VJ(C))FX(C,A)}else if(VJ(D)){if(D._store)D._store.validated=!0}else if(D){var m=CJ(D);if(typeof m==="function"){if(m!==D.entries){var IJ=m.call(D),XJ;while(!(XJ=IJ.next()).done)if(VJ(XJ.value))FX(XJ.value,A)}}}}function GZ(D){{var A=D.type;if(A===null||A===void 0||typeof A==="string")return;var V;if(typeof A==="function")V=A.propTypes;else if(typeof A==="object"&&(A.$$typeof===y||A.$$typeof===k))V=A.propTypes;else return;if(V){var C=XZ(A);P4(V,D.props,"prop",C,D)}else if(A.PropTypes!==void 0&&!N4){N4=!0;var m=XZ(A);QJ("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",m||"Unknown")}if(typeof A.getDefaultProps==="function"&&!A.getDefaultProps.isReactClassApproved)QJ("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function TQ(D){{var A=Object.keys(D.props);for(var V=0;V<A.length;V++){var C=A[V];if(C!=="children"&&C!=="key"){sJ(D),QJ("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",C),sJ(null);break}}if(D.ref!==null)sJ(D),QJ("Invalid attribute `ref` supplied to `React.Fragment`."),sJ(null)}}function V4(D,A,V){var C=l(D);if(!C){var m="";if(D===void 0||typeof D==="object"&&D!==null&&Object.keys(D).length===0)m+=" 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 IJ=w4(A);if(IJ)m+=IJ;else m+=A6();var XJ;if(D===null)XJ="null";else if(yQ(D))XJ="array";else if(D!==void 0&&D.$$typeof===Y)XJ="<"+(XZ(D.type)||"Unknown")+" />",m=" Did you accidentally export a JSX literal instead of a component?";else XJ=typeof D;QJ("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",XJ,m)}var PJ=U7.apply(this,arguments);if(PJ==null)return PJ;if(C)for(var gJ=2;gJ<arguments.length;gJ++)R4(arguments[gJ],D);if(D===z)TQ(PJ);else GZ(PJ);return PJ}var q7=!1;function sZ(D){var A=V4.bind(null,D);A.type=D;{if(!q7)q7=!0,TJ("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.");Object.defineProperty(A,"type",{enumerable:!1,get:function(){return TJ("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:D}),D}})}return A}function O8(D,A,V){var C=WJ.apply(this,arguments);for(var m=2;m<arguments.length;m++)R4(arguments[m],C.type);return GZ(C),C}function HG(D,A){var V=KJ.transition;KJ.transition={};var C=KJ.transition;KJ.transition._updatedFibers=new Set;try{D()}finally{if(KJ.transition=V,V===null&&C._updatedFibers){var m=C._updatedFibers.size;if(m>10)TJ("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.");C._updatedFibers.clear()}}}var l9=!1,Q9=null;function S4(D){if(Q9===null)try{var A=("require"+Math.random()).slice(0,7),V=UG&&UG[A];Q9=V.call(UG,"timers").setImmediate}catch(C){Q9=function(m){if(l9===!1){if(l9=!0,typeof MessageChannel>"u")QJ("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 IJ=new MessageChannel;IJ.port1.onmessage=m,IJ.port2.postMessage(void 0)}}return Q9(D)}var BX=0,T4=!1;function _4(D){{var A=BX;if(BX++,c.current===null)c.current=[];var V=c.isBatchingLegacy,C;try{if(c.isBatchingLegacy=!0,C=D(),!V&&c.didScheduleLegacyUpdate){var m=c.current;if(m!==null)c.didScheduleLegacyUpdate=!1,n9(m)}}catch(jQ){throw _8(A),jQ}finally{c.isBatchingLegacy=V}if(C!==null&&typeof C==="object"&&typeof C.then==="function"){var IJ=C,XJ=!1,PJ={then:function(jQ,EQ){XJ=!0,IJ.then(function(tJ){if(_8(A),BX===0)i9(tJ,jQ,EQ);else jQ(tJ)},function(tJ){_8(A),EQ(tJ)})}};if(!T4&&typeof Promise<"u")Promise.resolve().then(function(){}).then(function(){if(!XJ)T4=!0,QJ("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 () => ...);")});return PJ}else{var gJ=C;if(_8(A),BX===0){var XQ=c.current;if(XQ!==null)n9(XQ),c.current=null;var LQ={then:function(jQ,EQ){if(c.current===null)c.current=[],i9(gJ,jQ,EQ);else jQ(gJ)}};return LQ}else{var WQ={then:function(jQ,EQ){jQ(gJ)}};return WQ}}}}function _8(D){{if(D!==BX-1)QJ("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. ");BX=D}}function i9(D,A,V){{var C=c.current;if(C!==null)try{n9(C),S4(function(){if(C.length===0)c.current=null,A(D);else i9(D,A,V)})}catch(m){V(m)}else A(D)}}var AX=!1;function n9(D){if(!AX){AX=!0;var A=0;try{for(;A<D.length;A++){var V=D[A];do V=V(!0);while(V!==null)}D.length=0}catch(C){throw D=D.slice(A+1),C}finally{AX=!1}}}var k4=V4,E4=O8,C4=sZ,x4={map:w7,forEach:K6,count:zX,toArray:m9,only:c9};if(rT.Children=x4,rT.Component=uQ,rT.Fragment=z,rT.Profiler=F,rT.PureComponent=ZZ,rT.StrictMode=$,rT.Suspense=_,rT.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=YJ,rT.act=_4,rT.cloneElement=E4,rT.createContext=tX,rT.createElement=k4,rT.createFactory=C4,rT.createRef=PZ,rT.forwardRef=I,rT.isValidElement=VJ,rT.lazy=z8,rT.memo=FJ,rT.startTransition=HG,rT.unstable_act=_4,rT.useCallback=$8,rT.useContext=lJ,rT.useDebugValue=LX,rT.useDeferredValue=p7,rT.useEffect=IQ,rT.useId=uJ,rT.useImperativeHandle=YZ,rT.useInsertionEffect=RQ,rT.useLayoutEffect=OZ,rT.useMemo=c7,rT.useReducer=kJ,rT.useRef=oJ,rT.useState=hJ,rT.useSyncExternalStore=aX,rT.useTransition=U6,rT.version=Z,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function")__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var GM=m1((oT)=>{(function(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function")__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var Z=!1,Y=!1,K=5;function z(r,WJ){var VJ=r.length;r.push(WJ),B(r,WJ,VJ)}function $(r){return r.length===0?null:r[0]}function F(r){if(r.length===0)return null;var WJ=r[0],VJ=r.pop();if(VJ!==WJ)r[0]=VJ,j(r,VJ,0);return WJ}function B(r,WJ,VJ){var JQ=VJ;while(JQ>0){var OQ=JQ-1>>>1,lQ=r[OQ];if(y(lQ,WJ)>0)r[OQ]=WJ,r[JQ]=lQ,JQ=OQ;else return}}function j(r,WJ,VJ){var JQ=VJ,OQ=r.length,lQ=OQ>>>1;while(JQ<lQ){var AQ=(JQ+1)*2-1,wZ=r[AQ],cJ=AQ+1,rJ=r[cJ];if(y(wZ,WJ)<0)if(cJ<OQ&&y(rJ,wZ)<0)r[JQ]=rJ,r[cJ]=WJ,JQ=cJ;else r[JQ]=wZ,r[AQ]=WJ,JQ=AQ;else if(cJ<OQ&&y(rJ,WJ)<0)r[JQ]=rJ,r[cJ]=WJ,JQ=cJ;else return}}function y(r,WJ){var VJ=r.sortIndex-WJ.sortIndex;return VJ!==0?VJ:r.id-WJ.id}var _=1,b=2,k=3,a=4,DJ=5;function _J(r,WJ){}var yJ=typeof performance==="object"&&typeof performance.now==="function";if(yJ){var CJ=performance;oT.unstable_now=function(){return CJ.now()}}else{var g=Date,KJ=g.now();oT.unstable_now=function(){return g.now()-KJ}}var c=1073741823,qJ=-1,d=250,UJ=5000,SJ=1e4,zJ=c,i=[],$J=[],LJ=1,JJ=null,YJ=k,TJ=!1,QJ=!1,AJ=!1,BQ=typeof setTimeout==="function"?setTimeout:null,vQ=typeof clearTimeout==="function"?clearTimeout:null,mZ=typeof setImmediate<"u"?setImmediate:null,cQ=typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0?navigator.scheduling.isInputPending.bind(navigator.scheduling):null;function $Q(r){var WJ=$($J);while(WJ!==null){if(WJ.callback===null)F($J);else if(WJ.startTime<=r)F($J),WJ.sortIndex=WJ.expirationTime,z(i,WJ);else return;WJ=$($J)}}function uQ(r){if(AJ=!1,$Q(r),!QJ)if($(i)!==null)QJ=!0,$Z(cZ);else{var WJ=$($J);if(WJ!==null)K8(uQ,WJ.startTime-r)}}function cZ(r,WJ){if(QJ=!1,AJ)AJ=!1,U8();TJ=!0;var VJ=YJ;try{if(Y)try{return Z7(r,WJ)}catch(OQ){if(JJ!==null){var JQ=oT.unstable_now();_J(JJ,JQ),JJ.isQueued=!1}throw OQ}else return Z7(r,WJ)}finally{JJ=null,YJ=VJ,TJ=!1}}function Z7(r,WJ){var VJ=WJ;$Q(VJ),JJ=$(i);while(JJ!==null&&!Z){if(JJ.expirationTime>VJ&&(!r||P7()))break;var JQ=JJ.callback;if(typeof JQ==="function"){JJ.callback=null,YJ=JJ.priorityLevel;var OQ=JJ.expirationTime<=VJ,lQ=JQ(OQ);if(VJ=oT.unstable_now(),typeof lQ==="function")JJ.callback=lQ;else if(JJ===$(i))F(i);$Q(VJ)}else F(i);JJ=$(i)}if(JJ!==null)return!0;else{var AQ=$($J);if(AQ!==null)K8(uQ,AQ.startTime-VJ);return!1}}function f7(r,WJ){switch(r){case _:case b:case k:case a:case DJ:break;default:r=k}var VJ=YJ;YJ=r;try{return WJ()}finally{YJ=VJ}}function v7(r){var WJ;switch(YJ){case _:case b:case k:WJ=k;break;default:WJ=YJ;break}var VJ=YJ;YJ=WJ;try{return r()}finally{YJ=VJ}}function ZZ(r){var WJ=YJ;return function(){var VJ=YJ;YJ=WJ;try{return r.apply(this,arguments)}finally{YJ=VJ}}}function X7(r,WJ,VJ){var JQ=oT.unstable_now(),OQ;if(typeof VJ==="object"&&VJ!==null){var lQ=VJ.delay;if(typeof lQ==="number"&&lQ>0)OQ=JQ+lQ;else OQ=JQ}else OQ=JQ;var AQ;switch(r){case _:AQ=qJ;break;case b:AQ=d;break;case DJ:AQ=zJ;break;case a:AQ=SJ;break;case k:default:AQ=UJ;break}var wZ=OQ+AQ,cJ={id:LJ++,callback:WJ,priorityLevel:r,startTime:OQ,expirationTime:wZ,sortIndex:-1};if(OQ>JQ){if(cJ.sortIndex=OQ,z($J,cJ),$(i)===null&&cJ===$($J)){if(AJ)U8();else AJ=!0;K8(uQ,OQ-JQ)}}else if(cJ.sortIndex=wZ,z(i,cJ),!QJ&&!TJ)QJ=!0,$Z(cZ);return cJ}function PZ(){}function I7(){if(!QJ&&!TJ)QJ=!0,$Z(cZ)}function yQ(){return $(i)}function Y7(r){r.callback=null}function j7(){return YJ}var pQ=!1,SQ=null,pZ=-1,u7=K,XZ=-1;function P7(){var r=oT.unstable_now()-XZ;if(r<u7)return!1;return!0}function qX(){}function G7(r){if(r<0||r>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}if(r>0)u7=Math.floor(1000/r);else u7=K}var K7=function(){if(SQ!==null){var r=oT.unstable_now();XZ=r;var WJ=!0,VJ=!0;try{VJ=SQ(WJ,r)}finally{if(VJ)sQ();else pQ=!1,SQ=null}}else pQ=!1},sQ;if(typeof mZ==="function")sQ=function(){mZ(K7)};else if(typeof MessageChannel<"u"){var N7=new MessageChannel,NZ=N7.port2;N7.port1.onmessage=K7,sQ=function(){NZ.postMessage(null)}}else sQ=function(){BQ(K7,0)};function $Z(r){if(SQ=r,!pQ)pQ=!0,sQ()}function K8(r,WJ){pZ=BQ(function(){r(oT.unstable_now())},WJ)}function U8(){vQ(pZ),pZ=-1}var g7=qX,U7=null;if(oT.unstable_IdlePriority=DJ,oT.unstable_ImmediatePriority=_,oT.unstable_LowPriority=a,oT.unstable_NormalPriority=k,oT.unstable_Profiling=U7,oT.unstable_UserBlockingPriority=b,oT.unstable_cancelCallback=Y7,oT.unstable_continueExecution=I7,oT.unstable_forceFrameRate=G7,oT.unstable_getCurrentPriorityLevel=j7,oT.unstable_getFirstCallbackNode=yQ,oT.unstable_next=v7,oT.unstable_pauseExecution=PZ,oT.unstable_requestPaint=g7,oT.unstable_runWithPriority=f7,oT.unstable_scheduleCallback=X7,oT.unstable_shouldYield=P7,oT.unstable_wrapCallback=ZZ,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function")__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var KM=m1((tT)=>{var M4=zQ(G8()),qQ=zQ(GM());(function(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function")__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var Z=M4.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Y=!1;function K(J){Y=J}function z(J){if(!Y){for(var Q=arguments.length,X=Array(Q>1?Q-1:0),G=1;G<Q;G++)X[G-1]=arguments[G];F("warn",J,X)}}function $(J){if(!Y){for(var Q=arguments.length,X=Array(Q>1?Q-1:0),G=1;G<Q;G++)X[G-1]=arguments[G];F("error",J,X)}}function F(J,Q,X){{var G=Z.ReactDebugCurrentFrame,U=G.getStackAddendum();if(U!=="")Q+="%s",X=X.concat([U]);var q=X.map(function(O){return String(O)});q.unshift("Warning: "+Q),Function.prototype.apply.call(console[J],console,q)}}var B=0,j=1,y=2,_=3,b=4,k=5,a=6,DJ=7,_J=8,yJ=9,CJ=10,g=11,KJ=12,c=13,qJ=14,d=15,UJ=16,SJ=17,zJ=18,i=19,$J=21,LJ=22,JJ=23,YJ=24,TJ=25,QJ=!0,AJ=!1,BQ=!1,vQ=!1,mZ=!1,cQ=!0,$Q=!1,uQ=!0,cZ=!0,Z7=!0,f7=!0,v7=new Set,ZZ={},X7={};function PZ(J,Q){I7(J,Q),I7(J+"Capture",Q)}function I7(J,Q){if(ZZ[J])$("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",J);ZZ[J]=Q;{var X=J.toLowerCase();if(X7[X]=J,J==="onDoubleClick")X7.ondblclick=J}for(var G=0;G<Q.length;G++)v7.add(Q[G])}var yQ=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Y7=Object.prototype.hasOwnProperty;function j7(J){{var Q=typeof Symbol==="function"&&Symbol.toStringTag,X=Q&&J[Symbol.toStringTag]||J.constructor.name||"Object";return X}}function pQ(J){try{return SQ(J),!1}catch(Q){return!0}}function SQ(J){return""+J}function pZ(J,Q){if(pQ(J))return $("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",Q,j7(J)),SQ(J)}function u7(J){if(pQ(J))return $("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",j7(J)),SQ(J)}function XZ(J,Q){if(pQ(J))return $("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",Q,j7(J)),SQ(J)}function P7(J,Q){if(pQ(J))return $("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",Q,j7(J)),SQ(J)}function qX(J){if(pQ(J))return $("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",j7(J)),SQ(J)}function G7(J){if(pQ(J))return $("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.",j7(J)),SQ(J)}var K7=0,sQ=1,N7=2,NZ=3,$Z=4,K8=5,U8=6,g7=":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",U7=g7+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",r=new RegExp("^["+g7+"]["+U7+"]*$"),WJ={},VJ={};function JQ(J){if(Y7.call(VJ,J))return!0;if(Y7.call(WJ,J))return!1;if(r.test(J))return VJ[J]=!0,!0;return WJ[J]=!0,$("Invalid attribute name: `%s`",J),!1}function OQ(J,Q,X){if(Q!==null)return Q.type===K7;if(X)return!1;if(J.length>2&&(J[0]==="o"||J[0]==="O")&&(J[1]==="n"||J[1]==="N"))return!0;return!1}function lQ(J,Q,X,G){if(X!==null&&X.type===K7)return!1;switch(typeof Q){case"function":case"symbol":return!0;case"boolean":{if(G)return!1;if(X!==null)return!X.acceptsBooleans;else{var U=J.toLowerCase().slice(0,5);return U!=="data-"&&U!=="aria-"}}default:return!1}}function AQ(J,Q,X,G){if(Q===null||typeof Q>"u")return!0;if(lQ(J,Q,X,G))return!0;if(G)return!1;if(X!==null)switch(X.type){case NZ:return!Q;case $Z:return Q===!1;case K8:return isNaN(Q);case U8:return isNaN(Q)||Q<1}return!1}function wZ(J){return rJ.hasOwnProperty(J)?rJ[J]:null}function cJ(J,Q,X,G,U,q,O){this.acceptsBooleans=Q===N7||Q===NZ||Q===$Z,this.attributeName=G,this.attributeNamespace=U,this.mustUseProperty=X,this.propertyName=J,this.type=Q,this.sanitizeURL=q,this.removeEmptyString=O}var rJ={},T8=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];T8.forEach(function(J){rJ[J]=new cJ(J,K7,!1,J,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(J){var Q=J[0],X=J[1];rJ[Q]=new cJ(Q,sQ,!1,X,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(J){rJ[J]=new cJ(J,N7,!1,J.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(J){rJ[J]=new cJ(J,N7,!1,J,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(J){rJ[J]=new cJ(J,NZ,!1,J.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(J){rJ[J]=new cJ(J,NZ,!0,J,null,!1,!1)}),["capture","download"].forEach(function(J){rJ[J]=new cJ(J,$Z,!1,J,null,!1,!1)}),["cols","rows","size","span"].forEach(function(J){rJ[J]=new cJ(J,U8,!1,J,null,!1,!1)}),["rowSpan","start"].forEach(function(J){rJ[J]=new cJ(J,K8,!1,J.toLowerCase(),null,!1,!1)});var w7=/[\-\:]([a-z])/g,zX=function(J){return J[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(J){var Q=J.replace(w7,zX);rJ[Q]=new cJ(Q,sQ,!1,J,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(J){var Q=J.replace(w7,zX);rJ[Q]=new cJ(Q,sQ,!1,J,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(J){var Q=J.replace(w7,zX);rJ[Q]=new cJ(Q,sQ,!1,J,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(J){rJ[J]=new cJ(J,sQ,!1,J.toLowerCase(),null,!1,!1)});var K6="xlinkHref";rJ[K6]=new cJ("xlinkHref",sQ,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(J){rJ[J]=new cJ(J,sQ,!1,J.toLowerCase(),null,!0,!0)});var m9=/^[\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,c9=!1;function tX(J){if(!c9&&m9.test(J))c9=!0,$("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(J))}function q8(J,Q,X,G){if(G.mustUseProperty){var U=G.propertyName;return J[U]}else{if(pZ(X,Q),G.sanitizeURL)tX(""+X);var q=G.attributeName,O=null;if(G.type===$Z){if(J.hasAttribute(q)){var L=J.getAttribute(q);if(L==="")return!0;if(AQ(Q,X,G,!1))return L;if(L===""+X)return X;return L}}else if(J.hasAttribute(q)){if(AQ(Q,X,G,!1))return J.getAttribute(q);if(G.type===NZ)return X;O=J.getAttribute(q)}if(AQ(Q,X,G,!1))return O===null?X:O;else if(O===""+X)return X;else return O}}function $X(J,Q,X,G){{if(!JQ(Q))return;if(!J.hasAttribute(Q))return X===void 0?void 0:null;var U=J.getAttribute(Q);if(pZ(X,Q),U===""+X)return X;return U}}function OX(J,Q,X,G){var U=wZ(Q);if(OQ(Q,U,G))return;if(AQ(Q,X,U,G))X=null;if(G||U===null){if(JQ(Q)){var q=Q;if(X===null)J.removeAttribute(q);else pZ(X,Q),J.setAttribute(q,""+X)}return}var O=U.mustUseProperty;if(O){var L=U.propertyName;if(X===null){var W=U.type;J[L]=W===NZ?!1:""}else J[L]=X;return}var{attributeName:H,attributeNamespace:M}=U;if(X===null)J.removeAttribute(H);else{var N=U.type,P;if(N===NZ||N===$Z&&X===!0)P="";else if(pZ(X,H),P=""+X,U.sanitizeURL)tX(P.toString());if(M)J.setAttributeNS(M,H,P);else J.setAttribute(H,P)}}var d7=Symbol.for("react.element"),m7=Symbol.for("react.portal"),z8=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),FJ=Symbol.for("react.context"),HJ=Symbol.for("react.forward_ref"),lJ=Symbol.for("react.suspense"),hJ=Symbol.for("react.suspense_list"),kJ=Symbol.for("react.memo"),oJ=Symbol.for("react.lazy"),IQ=Symbol.for("react.scope"),RQ=Symbol.for("react.debug_trace_mode"),OZ=Symbol.for("react.offscreen"),$8=Symbol.for("react.legacy_hidden"),c7=Symbol.for("react.cache"),YZ=Symbol.for("react.tracing_marker"),LX=Symbol.iterator,U6="@@iterator";function p7(J){if(J===null||typeof J!=="object")return null;var Q=LX&&J[LX]||J[U6];if(typeof Q==="function")return Q;return null}var uJ=Object.assign,aX=0,WX,q6,z6,$6,O6,L6,W6;function D6(){}D6.__reactDisabledLog=!0;function A4(){{if(aX===0){WX=console.log,q6=console.info,z6=console.warn,$6=console.error,O6=console.group,L6=console.groupCollapsed,W6=console.groupEnd;var J={configurable:!0,enumerable:!0,value:D6,writable:!0};Object.defineProperties(console,{info:J,log:J,warn:J,error:J,group:J,groupCollapsed:J,groupEnd:J})}aX++}}function WG(){{if(aX--,aX===0){var J={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:uJ({},J,{value:WX}),info:uJ({},J,{value:q6}),warn:uJ({},J,{value:z6}),error:uJ({},J,{value:$6}),group:uJ({},J,{value:O6}),groupCollapsed:uJ({},J,{value:L6}),groupEnd:uJ({},J,{value:W6})})}if(aX<0)$("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var H6=Z.ReactCurrentDispatcher,eX;function R7(J,Q,X){{if(eX===void 0)try{throw Error()}catch(U){var G=U.stack.trim().match(/\n( *(at )?)/);eX=G&&G[1]||""}return`
24
+ `+eX+J}}var DX=!1,HX;{var p9=typeof WeakMap==="function"?WeakMap:Map;HX=new p9}function M6(J,Q){if(!J||DX)return"";{var X=HX.get(J);if(X!==void 0)return X}var G;DX=!0;var U=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var q;q=H6.current,H6.current=null,A4();try{if(Q){var O=function(){throw Error()};if(Object.defineProperty(O.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(O,[])}catch(T){G=T}Reflect.construct(J,[],O)}else{try{O.call()}catch(T){G=T}J.call(O.prototype)}}else{try{throw Error()}catch(T){G=T}J()}}catch(T){if(T&&G&&typeof T.stack==="string"){var L=T.stack.split(`
25
+ `),W=G.stack.split(`
26
+ `),H=L.length-1,M=W.length-1;while(H>=1&&M>=0&&L[H]!==W[M])M--;for(;H>=1&&M>=0;H--,M--)if(L[H]!==W[M]){if(H!==1||M!==1)do if(H--,M--,M<0||L[H]!==W[M]){var N=`
27
+ `+L[H].replace(" at new "," at ");if(J.displayName&&N.includes("<anonymous>"))N=N.replace("<anonymous>",J.displayName);if(typeof J==="function")HX.set(J,N);return N}while(H>=1&&M>=0);break}}}finally{DX=!1,H6.current=q,WG(),Error.prepareStackTrace=U}var P=J?J.displayName||J.name:"",S=P?R7(P):"";if(typeof J==="function")HX.set(J,S);return S}function I4(J,Q,X){return M6(J,!0)}function F6(J,Q,X){return M6(J,!1)}function DG(J){var Q=J.prototype;return!!(Q&&Q.isReactComponent)}function MX(J,Q,X){if(J==null)return"";if(typeof J==="function")return M6(J,DG(J));if(typeof J==="string")return R7(J);switch(J){case lJ:return R7("Suspense");case hJ:return R7("SuspenseList")}if(typeof J==="object")switch(J.$$typeof){case HJ:return F6(J.render);case kJ:return MX(J.type,Q,X);case oJ:{var G=J,U=G._payload,q=G._init;try{return MX(q(U),Q,X)}catch(O){}}}return""}function j4(J){var Q=J._debugOwner?J._debugOwner.type:null,X=J._debugSource;switch(J.tag){case k:return R7(J.type);case UJ:return R7("Lazy");case c:return R7("Suspense");case i:return R7("SuspenseList");case B:case y:case d:return F6(J.type);case g:return F6(J.type.render);case j:return I4(J.type);default:return""}}function B6(J){try{var Q="",X=J;do Q+=j4(X),X=X.return;while(X);return Q}catch(G){return`
28
+ Error generating stack: `+G.message+`
29
+ `+G.stack}}function s9(J,Q,X){var G=J.displayName;if(G)return G;var U=Q.displayName||Q.name||"";return U!==""?X+"("+U+")":X}function P4(J){return J.displayName||"Context"}function sJ(J){if(J==null)return null;if(typeof J.tag==="number")$("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");if(typeof J==="function")return J.displayName||J.name||null;if(typeof J==="string")return J;switch(J){case z8:return"Fragment";case m7:return"Portal";case v:return"Profiler";case I:return"StrictMode";case lJ:return"Suspense";case hJ:return"SuspenseList"}if(typeof J==="object")switch(J.$$typeof){case FJ:var Q=J;return P4(Q)+".Consumer";case l:var X=J;return P4(X._context)+".Provider";case HJ:return s9(J,J.render,"ForwardRef");case kJ:var G=J.displayName||null;if(G!==null)return G;return sJ(J.type)||"Memo";case oJ:{var U=J,q=U._payload,O=U._init;try{return sJ(O(q))}catch(L){return null}}}return null}function N4(J,Q,X){var G=Q.displayName||Q.name||"";return J.displayName||(G!==""?X+"("+G+")":X)}function A6(J){return J.displayName||"Context"}function EJ(J){var{tag:Q,type:X}=J;switch(Q){case YJ:return"Cache";case yJ:var G=X;return A6(G)+".Consumer";case CJ:var U=X;return A6(U._context)+".Provider";case zJ:return"DehydratedFragment";case g:return N4(X,X.render,"ForwardRef");case DJ:return"Fragment";case k:return X;case b:return"Portal";case _:return"Root";case a:return"Text";case UJ:return sJ(X);case _J:if(X===I)return"StrictMode";return"Mode";case LJ:return"Offscreen";case KJ:return"Profiler";case $J:return"Scope";case c:return"Suspense";case i:return"SuspenseList";case TJ:return"TracingMarker";case j:case B:case SJ:case y:case qJ:case d:if(typeof X==="function")return X.displayName||X.name||null;if(typeof X==="string")return X;break}return null}var w4=Z.ReactDebugCurrentFrame,RZ=null,J9=!1;function FX(){{if(RZ===null)return null;var J=RZ._debugOwner;if(J!==null&&typeof J<"u")return EJ(J)}return null}function R4(){{if(RZ===null)return"";return B6(RZ)}}function GZ(){w4.getCurrentStack=null,RZ=null,J9=!1}function TQ(J){w4.getCurrentStack=J===null?null:R4,RZ=J,J9=!1}function V4(){return RZ}function q7(J){J9=J}function sZ(J){return""+J}function O8(J){switch(typeof J){case"boolean":case"number":case"string":case"undefined":return J;case"object":return G7(J),J;default:return""}}var HG={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function l9(J,Q){{if(!(HG[Q.type]||Q.onChange||Q.onInput||Q.readOnly||Q.disabled||Q.value==null))$("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`.");if(!(Q.onChange||Q.readOnly||Q.disabled||Q.checked==null))$("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 Q9(J){var{type:Q,nodeName:X}=J;return X&&X.toLowerCase()==="input"&&(Q==="checkbox"||Q==="radio")}function S4(J){return J._valueTracker}function BX(J){J._valueTracker=null}function T4(J){var Q="";if(!J)return Q;if(Q9(J))Q=J.checked?"true":"false";else Q=J.value;return Q}function _4(J){var Q=Q9(J)?"checked":"value",X=Object.getOwnPropertyDescriptor(J.constructor.prototype,Q);G7(J[Q]);var G=""+J[Q];if(J.hasOwnProperty(Q)||typeof X>"u"||typeof X.get!=="function"||typeof X.set!=="function")return;var{get:U,set:q}=X;Object.defineProperty(J,Q,{configurable:!0,get:function(){return U.call(this)},set:function(L){G7(L),G=""+L,q.call(this,L)}}),Object.defineProperty(J,Q,{enumerable:X.enumerable});var O={getValue:function(){return G},setValue:function(L){G7(L),G=""+L},stopTracking:function(){BX(J),delete J[Q]}};return O}function _8(J){if(S4(J))return;J._valueTracker=_4(J)}function i9(J){if(!J)return!1;var Q=S4(J);if(!Q)return!0;var X=Q.getValue(),G=T4(J);if(G!==X)return Q.setValue(G),!0;return!1}function AX(J){if(J=J||(typeof document<"u"?document:void 0),typeof J>"u")return null;try{return J.activeElement||J.body}catch(Q){return J.body}}var n9=!1,k4=!1,E4=!1,C4=!1;function x4(J){var Q=J.type==="checkbox"||J.type==="radio";return Q?J.checked!=null:J.value!=null}function D(J,Q){var X=J,G=Q.checked,U=uJ({},Q,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:G!=null?G:X._wrapperState.initialChecked});return U}function A(J,Q){{if(l9("input",Q),Q.checked!==void 0&&Q.defaultChecked!==void 0&&!k4)$("%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",FX()||"A component",Q.type),k4=!0;if(Q.value!==void 0&&Q.defaultValue!==void 0&&!n9)$("%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",FX()||"A component",Q.type),n9=!0}var X=J,G=Q.defaultValue==null?"":Q.defaultValue;X._wrapperState={initialChecked:Q.checked!=null?Q.checked:Q.defaultChecked,initialValue:O8(Q.value!=null?Q.value:G),controlled:x4(Q)}}function V(J,Q){var X=J,G=Q.checked;if(G!=null)OX(X,"checked",G,!1)}function C(J,Q){var X=J;{var G=x4(Q);if(!X._wrapperState.controlled&&G&&!C4)$("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"),C4=!0;if(X._wrapperState.controlled&&!G&&!E4)$("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"),E4=!0}V(J,Q);var U=O8(Q.value),q=Q.type;if(U!=null){if(q==="number"){if(U===0&&X.value===""||X.value!=U)X.value=sZ(U)}else if(X.value!==sZ(U))X.value=sZ(U)}else if(q==="submit"||q==="reset"){X.removeAttribute("value");return}if(Q.hasOwnProperty("value"))PJ(X,Q.type,U);else if(Q.hasOwnProperty("defaultValue"))PJ(X,Q.type,O8(Q.defaultValue));if(Q.checked==null&&Q.defaultChecked!=null)X.defaultChecked=!!Q.defaultChecked}function m(J,Q,X){var G=J;if(Q.hasOwnProperty("value")||Q.hasOwnProperty("defaultValue")){var U=Q.type,q=U==="submit"||U==="reset";if(q&&(Q.value===void 0||Q.value===null))return;var O=sZ(G._wrapperState.initialValue);if(!X){if(O!==G.value)G.value=O}G.defaultValue=O}var L=G.name;if(L!=="")G.name="";if(G.defaultChecked=!G.defaultChecked,G.defaultChecked=!!G._wrapperState.initialChecked,L!=="")G.name=L}function IJ(J,Q){var X=J;C(X,Q),XJ(X,Q)}function XJ(J,Q){var X=Q.name;if(Q.type==="radio"&&X!=null){var G=J;while(G.parentNode)G=G.parentNode;pZ(X,"name");var U=G.querySelectorAll("input[name="+JSON.stringify(""+X)+'][type="radio"]');for(var q=0;q<U.length;q++){var O=U[q];if(O===J||O.form!==J.form)continue;var L=IY(O);if(!L)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");i9(O),C(O,L)}}}function PJ(J,Q,X){if(Q!=="number"||AX(J.ownerDocument)!==J){if(X==null)J.defaultValue=sZ(J._wrapperState.initialValue);else if(J.defaultValue!==sZ(X))J.defaultValue=sZ(X)}}var gJ=!1,XQ=!1,LQ=!1;function WQ(J,Q){{if(Q.value==null){if(typeof Q.children==="object"&&Q.children!==null)M4.Children.forEach(Q.children,function(X){if(X==null)return;if(typeof X==="string"||typeof X==="number")return;if(!XQ)XQ=!0,$("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")});else if(Q.dangerouslySetInnerHTML!=null){if(!LQ)LQ=!0,$("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")}}if(Q.selected!=null&&!gJ)$("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),gJ=!0}}function jQ(J,Q){if(Q.value!=null)J.setAttribute("value",sZ(O8(Q.value)))}var EQ=Array.isArray;function tJ(J){return EQ(J)}var Z9=!1;function r9(){var J=FX();if(J)return`
30
+
31
+ Check the render method of \``+J+"`.";return""}var I6=["value","defaultValue"];function MG(J){{l9("select",J);for(var Q=0;Q<I6.length;Q++){var X=I6[Q];if(J[X]==null)continue;var G=tJ(J[X]);if(J.multiple&&!G)$("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",X,r9());else if(!J.multiple&&G)$("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",X,r9())}}}function k8(J,Q,X,G){var U=J.options;if(Q){var q=X,O={};for(var L=0;L<q.length;L++)O["$"+q[L]]=!0;for(var W=0;W<U.length;W++){var H=O.hasOwnProperty("$"+U[W].value);if(U[W].selected!==H)U[W].selected=H;if(H&&G)U[W].defaultSelected=!0}}else{var M=sZ(O8(X)),N=null;for(var P=0;P<U.length;P++){if(U[P].value===M){if(U[P].selected=!0,G)U[P].defaultSelected=!0;return}if(N===null&&!U[P].disabled)N=U[P]}if(N!==null)N.selected=!0}}function j6(J,Q){return uJ({},Q,{value:void 0})}function P6(J,Q){var X=J;if(MG(Q),X._wrapperState={wasMultiple:!!Q.multiple},Q.value!==void 0&&Q.defaultValue!==void 0&&!Z9)$("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"),Z9=!0}function FG(J,Q){var X=J;X.multiple=!!Q.multiple;var G=Q.value;if(G!=null)k8(X,!!Q.multiple,G,!1);else if(Q.defaultValue!=null)k8(X,!!Q.multiple,Q.defaultValue,!0)}function RM(J,Q){var X=J,G=X._wrapperState.wasMultiple;X._wrapperState.wasMultiple=!!Q.multiple;var U=Q.value;if(U!=null)k8(X,!!Q.multiple,U,!1);else if(G!==!!Q.multiple)if(Q.defaultValue!=null)k8(X,!!Q.multiple,Q.defaultValue,!0);else k8(X,!!Q.multiple,Q.multiple?[]:"",!1)}function VM(J,Q){var X=J,G=Q.value;if(G!=null)k8(X,!!Q.multiple,G,!1)}var O$=!1;function BG(J,Q){var X=J;if(Q.dangerouslySetInnerHTML!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");var G=uJ({},Q,{value:void 0,defaultValue:void 0,children:sZ(X._wrapperState.initialValue)});return G}function L$(J,Q){var X=J;if(l9("textarea",Q),Q.value!==void 0&&Q.defaultValue!==void 0&&!O$)$("%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",FX()||"A component"),O$=!0;var G=Q.value;if(G==null){var{children:U,defaultValue:q}=Q;if(U!=null){$("Use the `defaultValue` or `value` props instead of setting children on <textarea>.");{if(q!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(tJ(U)){if(U.length>1)throw Error("<textarea> can only have at most one child.");U=U[0]}q=U}}if(q==null)q="";G=q}X._wrapperState={initialValue:O8(G)}}function W$(J,Q){var X=J,G=O8(Q.value),U=O8(Q.defaultValue);if(G!=null){var q=sZ(G);if(q!==X.value)X.value=q;if(Q.defaultValue==null&&X.defaultValue!==q)X.defaultValue=q}if(U!=null)X.defaultValue=sZ(U)}function D$(J,Q){var X=J,G=X.textContent;if(G===X._wrapperState.initialValue){if(G!==""&&G!==null)X.value=G}}function SM(J,Q){W$(J,Q)}var E8="http://www.w3.org/1999/xhtml",TM="http://www.w3.org/1998/Math/MathML",AG="http://www.w3.org/2000/svg";function IG(J){switch(J){case"svg":return AG;case"math":return TM;default:return E8}}function jG(J,Q){if(J==null||J===E8)return IG(Q);if(J===AG&&Q==="foreignObject")return E8;return J}var _M=function(J){if(typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction)return function(Q,X,G,U){MSApp.execUnsafeLocalFunction(function(){return J(Q,X,G,U)})};else return J},h4,H$=_M(function(J,Q){if(J.namespaceURI===AG){if(!("innerHTML"in J)){h4=h4||document.createElement("div"),h4.innerHTML="<svg>"+Q.valueOf().toString()+"</svg>";var X=h4.firstChild;while(J.firstChild)J.removeChild(J.firstChild);while(X.firstChild)J.appendChild(X.firstChild);return}}J.innerHTML=Q}),lZ=1,C8=3,gQ=8,x8=9,PG=11,y4=function(J,Q){if(Q){var X=J.firstChild;if(X&&X===J.lastChild&&X.nodeType===C8){X.nodeValue=Q;return}}J.textContent=Q},kM={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"]},N6={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 EM(J,Q){return J+Q.charAt(0).toUpperCase()+Q.substring(1)}var CM=["Webkit","ms","Moz","O"];Object.keys(N6).forEach(function(J){CM.forEach(function(Q){N6[EM(Q,J)]=N6[J]})});function NG(J,Q,X){var G=Q==null||typeof Q==="boolean"||Q==="";if(G)return"";if(!X&&typeof Q==="number"&&Q!==0&&!(N6.hasOwnProperty(J)&&N6[J]))return Q+"px";return P7(Q,J),(""+Q).trim()}var xM=/([A-Z])/g,hM=/^ms-/;function yM(J){return J.replace(xM,"-$1").toLowerCase().replace(hM,"-ms-")}var M$=function(){};{var bM=/^(?:webkit|moz|o)[A-Z]/,fM=/^-ms-/,vM=/-(.)/g,F$=/;\s*$/,o9={},wG={},B$=!1,A$=!1,uM=function(J){return J.replace(vM,function(Q,X){return X.toUpperCase()})},gM=function(J){if(o9.hasOwnProperty(J)&&o9[J])return;o9[J]=!0,$("Unsupported style property %s. Did you mean %s?",J,uM(J.replace(fM,"ms-")))},dM=function(J){if(o9.hasOwnProperty(J)&&o9[J])return;o9[J]=!0,$("Unsupported vendor-prefixed style property %s. Did you mean %s?",J,J.charAt(0).toUpperCase()+J.slice(1))},mM=function(J,Q){if(wG.hasOwnProperty(Q)&&wG[Q])return;wG[Q]=!0,$(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,J,Q.replace(F$,""))},cM=function(J,Q){if(B$)return;B$=!0,$("`NaN` is an invalid value for the `%s` css style property.",J)},pM=function(J,Q){if(A$)return;A$=!0,$("`Infinity` is an invalid value for the `%s` css style property.",J)};M$=function(J,Q){if(J.indexOf("-")>-1)gM(J);else if(bM.test(J))dM(J);else if(F$.test(Q))mM(J,Q);if(typeof Q==="number"){if(isNaN(Q))cM(J,Q);else if(!isFinite(Q))pM(J,Q)}}}var sM=M$;function lM(J){{var Q="",X="";for(var G in J){if(!J.hasOwnProperty(G))continue;var U=J[G];if(U!=null){var q=G.indexOf("--")===0;Q+=X+(q?G:yM(G))+":",Q+=NG(G,U,q),X=";"}}return Q||null}}function I$(J,Q){var X=J.style;for(var G in Q){if(!Q.hasOwnProperty(G))continue;var U=G.indexOf("--")===0;if(!U)sM(G,Q[G]);var q=NG(G,Q[G],U);if(G==="float")G="cssFloat";if(U)X.setProperty(G,q);else X[G]=q}}function iM(J){return J==null||typeof J==="boolean"||J===""}function j$(J){var Q={};for(var X in J){var G=kM[X]||[X];for(var U=0;U<G.length;U++)Q[G[U]]=X}return Q}function nM(J,Q){{if(!Q)return;var X=j$(J),G=j$(Q),U={};for(var q in X){var O=X[q],L=G[q];if(L&&O!==L){var W=O+","+L;if(U[W])continue;U[W]=!0,$("%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.",iM(J[O])?"Removing":"Updating",O,L)}}}}var rM={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},oM=uJ({menuitem:!0},rM),tM="__html";function RG(J,Q){if(!Q)return;if(oM[J]){if(Q.children!=null||Q.dangerouslySetInnerHTML!=null)throw Error(J+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.")}if(Q.dangerouslySetInnerHTML!=null){if(Q.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof Q.dangerouslySetInnerHTML!=="object"||!(tM in Q.dangerouslySetInnerHTML))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.")}if(!Q.suppressContentEditableWarning&&Q.contentEditable&&Q.children!=null)$("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.");if(Q.style!=null&&typeof Q.style!=="object")throw 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 X9(J,Q){if(J.indexOf("-")===-1)return typeof Q.is==="string";switch(J){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 b4={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"},P$={"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},t9={},aM=new RegExp("^(aria)-["+U7+"]*$"),eM=new RegExp("^(aria)[A-Z]["+U7+"]*$");function JF(J,Q){{if(Y7.call(t9,Q)&&t9[Q])return!0;if(eM.test(Q)){var X="aria-"+Q.slice(4).toLowerCase(),G=P$.hasOwnProperty(X)?X:null;if(G==null)return $("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",Q),t9[Q]=!0,!0;if(Q!==G)return $("Invalid ARIA attribute `%s`. Did you mean `%s`?",Q,G),t9[Q]=!0,!0}if(aM.test(Q)){var U=Q.toLowerCase(),q=P$.hasOwnProperty(U)?U:null;if(q==null)return t9[Q]=!0,!1;if(Q!==q)return $("Unknown ARIA attribute `%s`. Did you mean `%s`?",Q,q),t9[Q]=!0,!0}}return!0}function QF(J,Q){{var X=[];for(var G in Q){var U=JF(J,G);if(!U)X.push(G)}var q=X.map(function(O){return"`"+O+"`"}).join(", ");if(X.length===1)$("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",q,J);else if(X.length>1)$("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",q,J)}}function ZF(J,Q){if(X9(J,Q))return;QF(J,Q)}var N$=!1;function XF(J,Q){{if(J!=="input"&&J!=="textarea"&&J!=="select")return;if(Q!=null&&Q.value===null&&!N$)if(N$=!0,J==="select"&&Q.multiple)$("`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.",J);else $("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",J)}}var w$=function(){};{var EZ={},R$=/^on./,YF=/^on[^A-Z]/,GF=new RegExp("^(aria)-["+U7+"]*$"),KF=new RegExp("^(aria)[A-Z]["+U7+"]*$");w$=function(J,Q,X,G){if(Y7.call(EZ,Q)&&EZ[Q])return!0;var U=Q.toLowerCase();if(U==="onfocusin"||U==="onfocusout")return $("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."),EZ[Q]=!0,!0;if(G!=null){var{registrationNameDependencies:q,possibleRegistrationNames:O}=G;if(q.hasOwnProperty(Q))return!0;var L=O.hasOwnProperty(U)?O[U]:null;if(L!=null)return $("Invalid event handler property `%s`. Did you mean `%s`?",Q,L),EZ[Q]=!0,!0;if(R$.test(Q))return $("Unknown event handler property `%s`. It will be ignored.",Q),EZ[Q]=!0,!0}else if(R$.test(Q)){if(YF.test(Q))$("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",Q);return EZ[Q]=!0,!0}if(GF.test(Q)||KF.test(Q))return!0;if(U==="innerhtml")return $("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),EZ[Q]=!0,!0;if(U==="aria")return $("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),EZ[Q]=!0,!0;if(U==="is"&&X!==null&&X!==void 0&&typeof X!=="string")return $("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof X),EZ[Q]=!0,!0;if(typeof X==="number"&&isNaN(X))return $("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",Q),EZ[Q]=!0,!0;var W=wZ(Q),H=W!==null&&W.type===K7;if(b4.hasOwnProperty(U)){var M=b4[U];if(M!==Q)return $("Invalid DOM property `%s`. Did you mean `%s`?",Q,M),EZ[Q]=!0,!0}else if(!H&&Q!==U)return $("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.",Q,U),EZ[Q]=!0,!0;if(typeof X==="boolean"&&lQ(Q,X,W,!1)){if(X)$('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()}.',X,Q,Q,X,Q);else $('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.',X,Q,Q,X,Q,Q,Q);return EZ[Q]=!0,!0}if(H)return!0;if(lQ(Q,X,W,!1))return EZ[Q]=!0,!1;if((X==="false"||X==="true")&&W!==null&&W.type===NZ)return $("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",X,Q,X==="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".',Q,X),EZ[Q]=!0,!0;return!0}}var UF=function(J,Q,X){{var G=[];for(var U in Q){var q=w$(J,U,Q[U],X);if(!q)G.push(U)}var O=G.map(function(L){return"`"+L+"`"}).join(", ");if(G.length===1)$("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 ",O,J);else if(G.length>1)$("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 ",O,J)}};function qF(J,Q,X){if(X9(J,Q))return;UF(J,Q,X)}var V$=1,VG=2,w6=4,zF=V$|VG|w6,R6=null;function $F(J){if(R6!==null)$("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue.");R6=J}function OF(){if(R6===null)$("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue.");R6=null}function LF(J){return J===R6}function SG(J){var Q=J.target||J.srcElement||window;if(Q.correspondingUseElement)Q=Q.correspondingUseElement;return Q.nodeType===C8?Q.parentNode:Q}var TG=null,a9=null,e9=null;function S$(J){var Q=SX(J);if(!Q)return;if(typeof TG!=="function")throw 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 X=Q.stateNode;if(X){var G=IY(X);TG(Q.stateNode,Q.type,G)}}function WF(J){TG=J}function T$(J){if(a9)if(e9)e9.push(J);else e9=[J];else a9=J}function DF(){return a9!==null||e9!==null}function _$(){if(!a9)return;var J=a9,Q=e9;if(a9=null,e9=null,S$(J),Q)for(var X=0;X<Q.length;X++)S$(Q[X])}var k$=function(J,Q){return J(Q)},E$=function(){},_G=!1;function HF(){var J=DF();if(J)E$(),_$()}function C$(J,Q,X){if(_G)return J(Q,X);_G=!0;try{return k$(J,Q,X)}finally{_G=!1,HF()}}function MF(J,Q,X){k$=J,E$=X}function FF(J){return J==="button"||J==="input"||J==="select"||J==="textarea"}function BF(J,Q,X){switch(J){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":return!!(X.disabled&&FF(Q));default:return!1}}function V6(J,Q){var X=J.stateNode;if(X===null)return null;var G=IY(X);if(G===null)return null;var U=G[Q];if(BF(Q,J.type,G))return null;if(U&&typeof U!=="function")throw Error("Expected `"+Q+"` listener to be a function, instead got a value of `"+typeof U+"` type.");return U}var kG=!1;if(yQ)try{var S6={};Object.defineProperty(S6,"passive",{get:function(){kG=!0}}),window.addEventListener("test",S6,S6),window.removeEventListener("test",S6,S6)}catch(J){kG=!1}function x$(J,Q,X,G,U,q,O,L,W){var H=Array.prototype.slice.call(arguments,3);try{Q.apply(X,H)}catch(M){this.onError(M)}}var h$=x$;if(typeof window<"u"&&typeof window.dispatchEvent==="function"&&typeof document<"u"&&typeof document.createEvent==="function"){var EG=document.createElement("react");h$=function(Q,X,G,U,q,O,L,W,H){if(typeof document>"u"||document===null)throw 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 M=document.createEvent("Event"),N=!1,P=!0,S=window.event,T=Object.getOwnPropertyDescriptor(window,"event");function E(){if(EG.removeEventListener(x,OJ,!1),typeof window.event<"u"&&window.hasOwnProperty("event"))window.event=S}var s=Array.prototype.slice.call(arguments,3);function OJ(){N=!0,E(),X.apply(G,s),P=!1}var GJ,bJ=!1,fJ=!1;function w(R){if(GJ=R.error,bJ=!0,GJ===null&&R.colno===0&&R.lineno===0)fJ=!0;if(R.defaultPrevented){if(GJ!=null&&typeof GJ==="object")try{GJ._suppressLogging=!0}catch(u){}}}var x="react-"+(Q?Q:"invokeguardedcallback");if(window.addEventListener("error",w),EG.addEventListener(x,OJ,!1),M.initEvent(x,!1,!1),EG.dispatchEvent(M),T)Object.defineProperty(window,"event",T);if(N&&P){if(!bJ)GJ=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.`);else if(fJ)GJ=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.");this.onError(GJ)}if(window.removeEventListener("error",w),!N)return E(),x$.apply(this,arguments)}}var AF=h$,J1=!1,f4=null,v4=!1,CG=null,IF={onError:function(J){J1=!0,f4=J}};function xG(J,Q,X,G,U,q,O,L,W){J1=!1,f4=null,AF.apply(IF,arguments)}function jF(J,Q,X,G,U,q,O,L,W){if(xG.apply(this,arguments),J1){var H=hG();if(!v4)v4=!0,CG=H}}function PF(){if(v4){var J=CG;throw v4=!1,CG=null,J}}function NF(){return J1}function hG(){if(J1){var J=f4;return J1=!1,f4=null,J}else throw Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.")}function Q1(J){return J._reactInternals}function wF(J){return J._reactInternals!==void 0}function RF(J,Q){J._reactInternals=Q}var BJ=0,Z1=1,dQ=2,pJ=4,Y9=16,T6=32,yG=64,aJ=128,h8=256,IX=512,G9=1024,s7=2048,y8=4096,K9=8192,u4=16384,VF=s7|pJ|yG|IX|G9|u4,SF=32767,_6=32768,CZ=65536,bG=131072,y$=1048576,fG=2097152,U9=4194304,vG=8388608,b8=16777216,g4=33554432,uG=pJ|G9|0,gG=dQ|pJ|Y9|T6|IX|y8|K9,k6=pJ|yG|IX|K9,X1=s7|Y9,f8=U9|vG|fG,TF=Z.ReactCurrentOwner;function q9(J){var Q=J,X=J;if(!J.alternate){var G=Q;do{if(Q=G,(Q.flags&(dQ|y8))!==BJ)X=Q.return;G=Q.return}while(G)}else while(Q.return)Q=Q.return;if(Q.tag===_)return X;return null}function b$(J){if(J.tag===c){var Q=J.memoizedState;if(Q===null){var X=J.alternate;if(X!==null)Q=X.memoizedState}if(Q!==null)return Q.dehydrated}return null}function f$(J){return J.tag===_?J.stateNode.containerInfo:null}function _F(J){return q9(J)===J}function kF(J){{var Q=TF.current;if(Q!==null&&Q.tag===j){var X=Q,G=X.stateNode;if(!G._warnedAboutRefsInRender)$("%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.",EJ(X)||"A component");G._warnedAboutRefsInRender=!0}}var U=Q1(J);if(!U)return!1;return q9(U)===U}function v$(J){if(q9(J)!==J)throw Error("Unable to find node on an unmounted component.")}function u$(J){var Q=J.alternate;if(!Q){var X=q9(J);if(X===null)throw Error("Unable to find node on an unmounted component.");if(X!==J)return null;return J}var G=J,U=Q;while(!0){var q=G.return;if(q===null)break;var O=q.alternate;if(O===null){var L=q.return;if(L!==null){G=U=L;continue}break}if(q.child===O.child){var W=q.child;while(W){if(W===G)return v$(q),J;if(W===U)return v$(q),Q;W=W.sibling}throw Error("Unable to find node on an unmounted component.")}if(G.return!==U.return)G=q,U=O;else{var H=!1,M=q.child;while(M){if(M===G){H=!0,G=q,U=O;break}if(M===U){H=!0,U=q,G=O;break}M=M.sibling}if(!H){M=O.child;while(M){if(M===G){H=!0,G=O,U=q;break}if(M===U){H=!0,U=O,G=q;break}M=M.sibling}if(!H)throw 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(G.alternate!==U)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(G.tag!==_)throw Error("Unable to find node on an unmounted component.");if(G.stateNode.current===G)return J;return Q}function g$(J){var Q=u$(J);return Q!==null?d$(Q):null}function d$(J){if(J.tag===k||J.tag===a)return J;var Q=J.child;while(Q!==null){var X=d$(Q);if(X!==null)return X;Q=Q.sibling}return null}function EF(J){var Q=u$(J);return Q!==null?m$(Q):null}function m$(J){if(J.tag===k||J.tag===a)return J;var Q=J.child;while(Q!==null){if(Q.tag!==b){var X=m$(Q);if(X!==null)return X}Q=Q.sibling}return null}var c$=qQ.unstable_scheduleCallback,CF=qQ.unstable_cancelCallback,xF=qQ.unstable_shouldYield,hF=qQ.unstable_requestPaint,KZ=qQ.unstable_now,yF=qQ.unstable_getCurrentPriorityLevel,d4=qQ.unstable_ImmediatePriority,dG=qQ.unstable_UserBlockingPriority,z9=qQ.unstable_NormalPriority,bF=qQ.unstable_LowPriority,mG=qQ.unstable_IdlePriority,fF=qQ.unstable_yieldValue,vF=qQ.unstable_setDisableYieldValue,$9=null,LZ=null,o=null,L8=!1,l7=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function uF(J){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var Q=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(Q.isDisabled)return!0;if(!Q.supportsFiber)return $("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{if(cZ)J=uJ({},J,{getLaneLabelMap:sF,injectProfilingHooks:pF});$9=Q.inject(J),LZ=Q}catch(X){$("React instrumentation encountered an error: %s.",X)}if(Q.checkDCE)return!0;else return!1}function gF(J,Q){if(LZ&&typeof LZ.onScheduleFiberRoot==="function")try{LZ.onScheduleFiberRoot($9,J,Q)}catch(X){if(!L8)L8=!0,$("React instrumentation encountered an error: %s",X)}}function dF(J,Q){if(LZ&&typeof LZ.onCommitFiberRoot==="function")try{var X=(J.current.flags&aJ)===aJ;if(Z7){var G;switch(Q){case O7:G=d4;break;case u8:G=dG;break;case g8:G=z9;break;case r4:G=mG;break;default:G=z9;break}LZ.onCommitFiberRoot($9,J,G,X)}else LZ.onCommitFiberRoot($9,J,void 0,X)}catch(U){if(!L8)L8=!0,$("React instrumentation encountered an error: %s",U)}}function mF(J){if(LZ&&typeof LZ.onPostCommitFiberRoot==="function")try{LZ.onPostCommitFiberRoot($9,J)}catch(Q){if(!L8)L8=!0,$("React instrumentation encountered an error: %s",Q)}}function cF(J){if(LZ&&typeof LZ.onCommitFiberUnmount==="function")try{LZ.onCommitFiberUnmount($9,J)}catch(Q){if(!L8)L8=!0,$("React instrumentation encountered an error: %s",Q)}}function UZ(J){{if(typeof fF==="function")vF(J),K(J);if(LZ&&typeof LZ.setStrictMode==="function")try{LZ.setStrictMode($9,J)}catch(Q){if(!L8)L8=!0,$("React instrumentation encountered an error: %s",Q)}}}function pF(J){o=J}function sF(){{var J=new Map,Q=1;for(var X=0;X<pG;X++){var G=OB(Q);J.set(Q,G),Q*=2}return J}}function lF(J){if(o!==null&&typeof o.markCommitStarted==="function")o.markCommitStarted(J)}function p$(){if(o!==null&&typeof o.markCommitStopped==="function")o.markCommitStopped()}function E6(J){if(o!==null&&typeof o.markComponentRenderStarted==="function")o.markComponentRenderStarted(J)}function Y1(){if(o!==null&&typeof o.markComponentRenderStopped==="function")o.markComponentRenderStopped()}function iF(J){if(o!==null&&typeof o.markComponentPassiveEffectMountStarted==="function")o.markComponentPassiveEffectMountStarted(J)}function nF(){if(o!==null&&typeof o.markComponentPassiveEffectMountStopped==="function")o.markComponentPassiveEffectMountStopped()}function rF(J){if(o!==null&&typeof o.markComponentPassiveEffectUnmountStarted==="function")o.markComponentPassiveEffectUnmountStarted(J)}function oF(){if(o!==null&&typeof o.markComponentPassiveEffectUnmountStopped==="function")o.markComponentPassiveEffectUnmountStopped()}function tF(J){if(o!==null&&typeof o.markComponentLayoutEffectMountStarted==="function")o.markComponentLayoutEffectMountStarted(J)}function aF(){if(o!==null&&typeof o.markComponentLayoutEffectMountStopped==="function")o.markComponentLayoutEffectMountStopped()}function s$(J){if(o!==null&&typeof o.markComponentLayoutEffectUnmountStarted==="function")o.markComponentLayoutEffectUnmountStarted(J)}function l$(){if(o!==null&&typeof o.markComponentLayoutEffectUnmountStopped==="function")o.markComponentLayoutEffectUnmountStopped()}function eF(J,Q,X){if(o!==null&&typeof o.markComponentErrored==="function")o.markComponentErrored(J,Q,X)}function JB(J,Q,X){if(o!==null&&typeof o.markComponentSuspended==="function")o.markComponentSuspended(J,Q,X)}function QB(J){if(o!==null&&typeof o.markLayoutEffectsStarted==="function")o.markLayoutEffectsStarted(J)}function ZB(){if(o!==null&&typeof o.markLayoutEffectsStopped==="function")o.markLayoutEffectsStopped()}function XB(J){if(o!==null&&typeof o.markPassiveEffectsStarted==="function")o.markPassiveEffectsStarted(J)}function YB(){if(o!==null&&typeof o.markPassiveEffectsStopped==="function")o.markPassiveEffectsStopped()}function i$(J){if(o!==null&&typeof o.markRenderStarted==="function")o.markRenderStarted(J)}function GB(){if(o!==null&&typeof o.markRenderYielded==="function")o.markRenderYielded()}function n$(){if(o!==null&&typeof o.markRenderStopped==="function")o.markRenderStopped()}function KB(J){if(o!==null&&typeof o.markRenderScheduled==="function")o.markRenderScheduled(J)}function UB(J,Q){if(o!==null&&typeof o.markForceUpdateScheduled==="function")o.markForceUpdateScheduled(J,Q)}function cG(J,Q){if(o!==null&&typeof o.markStateUpdateScheduled==="function")o.markStateUpdateScheduled(J,Q)}var MJ=0,dJ=1,YQ=2,CQ=8,W8=16,r$=Math.clz32?Math.clz32:$B,qB=Math.log,zB=Math.LN2;function $B(J){var Q=J>>>0;if(Q===0)return 32;return 31-(qB(Q)/zB|0)|0}var pG=31,f=0,qZ=0,NJ=1,G1=2,v8=4,O9=8,D8=16,C6=32,K1=4194240,x6=64,sG=128,lG=256,iG=512,nG=1024,rG=2048,oG=4096,tG=8192,aG=16384,eG=32768,JK=65536,QK=131072,ZK=262144,XK=524288,YK=1048576,GK=2097152,m4=130023424,U1=4194304,KK=8388608,UK=16777216,qK=33554432,zK=67108864,o$=U1,h6=134217728,t$=268435455,y6=268435456,L9=536870912,z7=1073741824;function OB(J){{if(J&NJ)return"Sync";if(J&G1)return"InputContinuousHydration";if(J&v8)return"InputContinuous";if(J&O9)return"DefaultHydration";if(J&D8)return"Default";if(J&C6)return"TransitionHydration";if(J&K1)return"Transition";if(J&m4)return"Retry";if(J&h6)return"SelectiveHydration";if(J&y6)return"IdleHydration";if(J&L9)return"Idle";if(J&z7)return"Offscreen"}}var HQ=-1,c4=x6,p4=U1;function b6(J){switch(W9(J)){case NJ:return NJ;case G1:return G1;case v8:return v8;case O9:return O9;case D8:return D8;case C6:return C6;case x6:case sG:case lG:case iG:case nG:case rG:case oG:case tG:case aG:case eG:case JK:case QK:case ZK:case XK:case YK:case GK:return J&K1;case U1:case KK:case UK:case qK:case zK:return J&m4;case h6:return h6;case y6:return y6;case L9:return L9;case z7:return z7;default:return $("Should have found matching lanes. This is a bug in React."),J}}function s4(J,Q){var X=J.pendingLanes;if(X===f)return f;var G=f,U=J.suspendedLanes,q=J.pingedLanes,O=X&t$;if(O!==f){var L=O&~U;if(L!==f)G=b6(L);else{var W=O&q;if(W!==f)G=b6(W)}}else{var H=X&~U;if(H!==f)G=b6(H);else if(q!==f)G=b6(q)}if(G===f)return f;if(Q!==f&&Q!==G&&(Q&U)===f){var M=W9(G),N=W9(Q);if(M>=N||M===D8&&(N&K1)!==f)return Q}if((G&v8)!==f)G|=X&D8;var P=J.entangledLanes;if(P!==f){var S=J.entanglements,T=G&P;while(T>0){var E=D9(T),s=1<<E;G|=S[E],T&=~s}}return G}function LB(J,Q){var X=J.eventTimes,G=HQ;while(Q>0){var U=D9(Q),q=1<<U,O=X[U];if(O>G)G=O;Q&=~q}return G}function WB(J,Q){switch(J){case NJ:case G1:case v8:return Q+250;case O9:case D8:case C6:case x6:case sG:case lG:case iG:case nG:case rG:case oG:case tG:case aG:case eG:case JK:case QK:case ZK:case XK:case YK:case GK:return Q+5000;case U1:case KK:case UK:case qK:case zK:return HQ;case h6:case y6:case L9:case z7:return HQ;default:return $("Should have found matching lanes. This is a bug in React."),HQ}}function DB(J,Q){var{pendingLanes:X,suspendedLanes:G,pingedLanes:U,expirationTimes:q}=J,O=X;while(O>0){var L=D9(O),W=1<<L,H=q[L];if(H===HQ){if((W&G)===f||(W&U)!==f)q[L]=WB(W,Q)}else if(H<=Q)J.expiredLanes|=W;O&=~W}}function HB(J){return b6(J.pendingLanes)}function $K(J){var Q=J.pendingLanes&~z7;if(Q!==f)return Q;if(Q&z7)return z7;return f}function MB(J){return(J&NJ)!==f}function OK(J){return(J&t$)!==f}function a$(J){return(J&m4)===J}function FB(J){var Q=NJ|v8|D8;return(J&Q)===f}function BB(J){return(J&K1)===J}function l4(J,Q){var X=G1|v8|O9|D8;return(Q&X)!==f}function AB(J,Q){return(Q&J.expiredLanes)!==f}function e$(J){return(J&K1)!==f}function J3(){var J=c4;if(c4<<=1,(c4&K1)===f)c4=x6;return J}function IB(){var J=p4;if(p4<<=1,(p4&m4)===f)p4=U1;return J}function W9(J){return J&-J}function f6(J){return W9(J)}function D9(J){return 31-r$(J)}function LK(J){return D9(J)}function $7(J,Q){return(J&Q)!==f}function q1(J,Q){return(J&Q)===Q}function xJ(J,Q){return J|Q}function i4(J,Q){return J&~Q}function Q3(J,Q){return J&Q}function n4(J){return J}function jB(J,Q){return J!==qZ&&J<Q?J:Q}function WK(J){var Q=[];for(var X=0;X<pG;X++)Q.push(J);return Q}function v6(J,Q,X){if(J.pendingLanes|=Q,Q!==L9)J.suspendedLanes=f,J.pingedLanes=f;var G=J.eventTimes,U=LK(Q);G[U]=X}function PB(J,Q){J.suspendedLanes|=Q,J.pingedLanes&=~Q;var X=J.expirationTimes,G=Q;while(G>0){var U=D9(G),q=1<<U;X[U]=HQ,G&=~q}}function Z3(J,Q,X){J.pingedLanes|=J.suspendedLanes&Q}function NB(J,Q){var X=J.pendingLanes&~Q;J.pendingLanes=Q,J.suspendedLanes=f,J.pingedLanes=f,J.expiredLanes&=Q,J.mutableReadLanes&=Q,J.entangledLanes&=Q;var{entanglements:G,eventTimes:U,expirationTimes:q}=J,O=X;while(O>0){var L=D9(O),W=1<<L;G[L]=f,U[L]=HQ,q[L]=HQ,O&=~W}}function DK(J,Q){var X=J.entangledLanes|=Q,G=J.entanglements,U=X;while(U){var q=D9(U),O=1<<q;if(O&Q|G[q]&Q)G[q]|=Q;U&=~O}}function wB(J,Q){var X=W9(Q),G;switch(X){case v8:G=G1;break;case D8:G=O9;break;case x6:case sG:case lG:case iG:case nG:case rG:case oG:case tG:case aG:case eG:case JK:case QK:case ZK:case XK:case YK:case GK:case U1:case KK:case UK:case qK:case zK:G=C6;break;case L9:G=y6;break;default:G=qZ;break}if((G&(J.suspendedLanes|Q))!==qZ)return qZ;return G}function X3(J,Q,X){if(!l7)return;var G=J.pendingUpdatersLaneMap;while(X>0){var U=LK(X),q=1<<U,O=G[U];O.add(Q),X&=~q}}function Y3(J,Q){if(!l7)return;var{pendingUpdatersLaneMap:X,memoizedUpdaters:G}=J;while(Q>0){var U=LK(Q),q=1<<U,O=X[U];if(O.size>0)O.forEach(function(L){var W=L.alternate;if(W===null||!G.has(W))G.add(L)}),O.clear();Q&=~q}}function G3(J,Q){return null}var O7=NJ,u8=v8,g8=D8,r4=L9,u6=qZ;function i7(){return u6}function zZ(J){u6=J}function RB(J,Q){var X=u6;try{return u6=J,Q()}finally{u6=X}}function VB(J,Q){return J!==0&&J<Q?J:Q}function SB(J,Q){return J===0||J>Q?J:Q}function HK(J,Q){return J!==0&&J<Q}function K3(J){var Q=W9(J);if(!HK(O7,Q))return O7;if(!HK(u8,Q))return u8;if(OK(Q))return g8;return r4}function o4(J){var Q=J.current.memoizedState;return Q.isDehydrated}var U3;function TB(J){U3=J}function _B(J){U3(J)}var MK;function kB(J){MK=J}var q3;function EB(J){q3=J}var z3;function CB(J){z3=J}var $3;function xB(J){$3=J}var FK=!1,t4=[],jX=null,PX=null,NX=null,g6=new Map,d6=new Map,wX=[],hB=["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 yB(J){return hB.indexOf(J)>-1}function bB(J,Q,X,G,U){return{blockedOn:J,domEventName:Q,eventSystemFlags:X,nativeEvent:U,targetContainers:[G]}}function O3(J,Q){switch(J){case"focusin":case"focusout":jX=null;break;case"dragenter":case"dragleave":PX=null;break;case"mouseover":case"mouseout":NX=null;break;case"pointerover":case"pointerout":{var X=Q.pointerId;g6.delete(X);break}case"gotpointercapture":case"lostpointercapture":{var G=Q.pointerId;d6.delete(G);break}}}function m6(J,Q,X,G,U,q){if(J===null||J.nativeEvent!==q){var O=bB(Q,X,G,U,q);if(Q!==null){var L=SX(Q);if(L!==null)MK(L)}return O}J.eventSystemFlags|=G;var W=J.targetContainers;if(U!==null&&W.indexOf(U)===-1)W.push(U);return J}function fB(J,Q,X,G,U){switch(Q){case"focusin":{var q=U;return jX=m6(jX,J,Q,X,G,q),!0}case"dragenter":{var O=U;return PX=m6(PX,J,Q,X,G,O),!0}case"mouseover":{var L=U;return NX=m6(NX,J,Q,X,G,L),!0}case"pointerover":{var W=U,H=W.pointerId;return g6.set(H,m6(g6.get(H)||null,J,Q,X,G,W)),!0}case"gotpointercapture":{var M=U,N=M.pointerId;return d6.set(N,m6(d6.get(N)||null,J,Q,X,G,M)),!0}}return!1}function L3(J){var Q=F9(J.target);if(Q!==null){var X=q9(Q);if(X!==null){var G=X.tag;if(G===c){var U=b$(X);if(U!==null){J.blockedOn=U,$3(J.priority,function(){q3(X)});return}}else if(G===_){var q=X.stateNode;if(o4(q)){J.blockedOn=f$(X);return}}}}J.blockedOn=null}function vB(J){var Q=z3(),X={blockedOn:null,target:J,priority:Q},G=0;for(;G<wX.length;G++)if(!HK(Q,wX[G].priority))break;if(wX.splice(G,0,X),G===0)L3(X)}function a4(J){if(J.blockedOn!==null)return!1;var Q=J.targetContainers;while(Q.length>0){var X=Q[0],G=IK(J.domEventName,J.eventSystemFlags,X,J.nativeEvent);if(G===null){var U=J.nativeEvent,q=new U.constructor(U.type,U);$F(q),U.target.dispatchEvent(q),OF()}else{var O=SX(G);if(O!==null)MK(O);return J.blockedOn=G,!1}Q.shift()}return!0}function W3(J,Q,X){if(a4(J))X.delete(Q)}function uB(){if(FK=!1,jX!==null&&a4(jX))jX=null;if(PX!==null&&a4(PX))PX=null;if(NX!==null&&a4(NX))NX=null;g6.forEach(W3),d6.forEach(W3)}function c6(J,Q){if(J.blockedOn===Q){if(J.blockedOn=null,!FK)FK=!0,qQ.unstable_scheduleCallback(qQ.unstable_NormalPriority,uB)}}function p6(J){if(t4.length>0){c6(t4[0],J);for(var Q=1;Q<t4.length;Q++){var X=t4[Q];if(X.blockedOn===J)X.blockedOn=null}}if(jX!==null)c6(jX,J);if(PX!==null)c6(PX,J);if(NX!==null)c6(NX,J);var G=function(L){return c6(L,J)};g6.forEach(G),d6.forEach(G);for(var U=0;U<wX.length;U++){var q=wX[U];if(q.blockedOn===J)q.blockedOn=null}while(wX.length>0){var O=wX[0];if(O.blockedOn!==null)break;else if(L3(O),O.blockedOn===null)wX.shift()}}var z1=Z.ReactCurrentBatchConfig,BK=!0;function D3(J){BK=!!J}function gB(){return BK}function dB(J,Q,X){var G=H3(Q),U;switch(G){case O7:U=mB;break;case u8:U=cB;break;case g8:default:U=AK;break}return U.bind(null,Q,X,J)}function mB(J,Q,X,G){var U=i7(),q=z1.transition;z1.transition=null;try{zZ(O7),AK(J,Q,X,G)}finally{zZ(U),z1.transition=q}}function cB(J,Q,X,G){var U=i7(),q=z1.transition;z1.transition=null;try{zZ(u8),AK(J,Q,X,G)}finally{zZ(U),z1.transition=q}}function AK(J,Q,X,G){if(!BK)return;pB(J,Q,X,G)}function pB(J,Q,X,G){var U=IK(J,Q,X,G);if(U===null){hK(J,Q,G,e4,X),O3(J,G);return}if(fB(U,J,Q,X,G)){G.stopPropagation();return}if(O3(J,G),Q&w6&&yB(J)){while(U!==null){var q=SX(U);if(q!==null)_B(q);var O=IK(J,Q,X,G);if(O===null)hK(J,Q,G,e4,X);if(O===U)break;U=O}if(U!==null)G.stopPropagation();return}hK(J,Q,G,null,X)}var e4=null;function IK(J,Q,X,G){e4=null;var U=SG(G),q=F9(U);if(q!==null){var O=q9(q);if(O===null)q=null;else{var L=O.tag;if(L===c){var W=b$(O);if(W!==null)return W;q=null}else if(L===_){var H=O.stateNode;if(o4(H))return f$(O);q=null}else if(O!==q)q=null}}return e4=q,null}function H3(J){switch(J){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 O7;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 u8;case"message":{var Q=yF();switch(Q){case d4:return O7;case dG:return u8;case z9:case bF:return g8;case mG:return r4;default:return g8}}default:return g8}}function sB(J,Q,X){return J.addEventListener(Q,X,!1),X}function lB(J,Q,X){return J.addEventListener(Q,X,!0),X}function iB(J,Q,X,G){return J.addEventListener(Q,X,{capture:!0,passive:G}),X}function nB(J,Q,X,G){return J.addEventListener(Q,X,{passive:G}),X}var s6=null,jK=null,l6=null;function rB(J){return s6=J,jK=F3(),!0}function oB(){s6=null,jK=null,l6=null}function M3(){if(l6)return l6;var J,Q=jK,X=Q.length,G,U=F3(),q=U.length;for(J=0;J<X;J++)if(Q[J]!==U[J])break;var O=X-J;for(G=1;G<=O;G++)if(Q[X-G]!==U[q-G])break;var L=G>1?1-G:void 0;return l6=U.slice(J,L),l6}function F3(){if("value"in s6)return s6.value;return s6.textContent}function JY(J){var Q,X=J.keyCode;if("charCode"in J){if(Q=J.charCode,Q===0&&X===13)Q=13}else Q=X;if(Q===10)Q=13;if(Q>=32||Q===13)return Q;return 0}function QY(){return!0}function B3(){return!1}function L7(J){function Q(X,G,U,q,O){this._reactName=X,this._targetInst=U,this.type=G,this.nativeEvent=q,this.target=O,this.currentTarget=null;for(var L in J){if(!J.hasOwnProperty(L))continue;var W=J[L];if(W)this[L]=W(q);else this[L]=q[L]}var H=q.defaultPrevented!=null?q.defaultPrevented:q.returnValue===!1;if(H)this.isDefaultPrevented=QY;else this.isDefaultPrevented=B3;return this.isPropagationStopped=B3,this}return uJ(Q.prototype,{preventDefault:function(){this.defaultPrevented=!0;var X=this.nativeEvent;if(!X)return;if(X.preventDefault)X.preventDefault();else if(typeof X.returnValue!=="unknown")X.returnValue=!1;this.isDefaultPrevented=QY},stopPropagation:function(){var X=this.nativeEvent;if(!X)return;if(X.stopPropagation)X.stopPropagation();else if(typeof X.cancelBubble!=="unknown")X.cancelBubble=!0;this.isPropagationStopped=QY},persist:function(){},isPersistent:QY}),Q}var $1={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(J){return J.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},PK=L7($1),i6=uJ({},$1,{view:0,detail:0}),tB=L7(i6),NK,wK,n6;function aB(J){if(J!==n6){if(n6&&J.type==="mousemove")NK=J.screenX-n6.screenX,wK=J.screenY-n6.screenY;else NK=0,wK=0;n6=J}}var ZY=uJ({},i6,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:VK,button:0,buttons:0,relatedTarget:function(J){if(J.relatedTarget===void 0)return J.fromElement===J.srcElement?J.toElement:J.fromElement;return J.relatedTarget},movementX:function(J){if("movementX"in J)return J.movementX;return aB(J),NK},movementY:function(J){if("movementY"in J)return J.movementY;return wK}}),A3=L7(ZY),eB=uJ({},ZY,{dataTransfer:0}),JA=L7(eB),QA=uJ({},i6,{relatedTarget:0}),RK=L7(QA),ZA=uJ({},$1,{animationName:0,elapsedTime:0,pseudoElement:0}),XA=L7(ZA),YA=uJ({},$1,{clipboardData:function(J){return"clipboardData"in J?J.clipboardData:window.clipboardData}}),GA=L7(YA),KA=uJ({},$1,{data:0}),I3=L7(KA),UA=I3,qA={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},zA={"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 $A(J){if(J.key){var Q=qA[J.key]||J.key;if(Q!=="Unidentified")return Q}if(J.type==="keypress"){var X=JY(J);return X===13?"Enter":String.fromCharCode(X)}if(J.type==="keydown"||J.type==="keyup")return zA[J.keyCode]||"Unidentified";return""}var OA={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function LA(J){var Q=this,X=Q.nativeEvent;if(X.getModifierState)return X.getModifierState(J);var G=OA[J];return G?!!X[G]:!1}function VK(J){return LA}var WA=uJ({},i6,{key:$A,code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:VK,charCode:function(J){if(J.type==="keypress")return JY(J);return 0},keyCode:function(J){if(J.type==="keydown"||J.type==="keyup")return J.keyCode;return 0},which:function(J){if(J.type==="keypress")return JY(J);if(J.type==="keydown"||J.type==="keyup")return J.keyCode;return 0}}),DA=L7(WA),HA=uJ({},ZY,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),j3=L7(HA),MA=uJ({},i6,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:VK}),FA=L7(MA),BA=uJ({},$1,{propertyName:0,elapsedTime:0,pseudoElement:0}),AA=L7(BA),IA=uJ({},ZY,{deltaX:function(J){return"deltaX"in J?J.deltaX:("wheelDeltaX"in J)?-J.wheelDeltaX:0},deltaY:function(J){return"deltaY"in J?J.deltaY:("wheelDeltaY"in J)?-J.wheelDeltaY:("wheelDelta"in J)?-J.wheelDelta:0},deltaZ:0,deltaMode:0}),jA=L7(IA),PA=[9,13,27,32],P3=229,SK=yQ&&"CompositionEvent"in window,r6=null;if(yQ&&"documentMode"in document)r6=document.documentMode;var NA=yQ&&"TextEvent"in window&&!r6,N3=yQ&&(!SK||r6&&r6>8&&r6<=11),w3=32,R3=String.fromCharCode(w3);function wA(){PZ("onBeforeInput",["compositionend","keypress","textInput","paste"]),PZ("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),PZ("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),PZ("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"])}var V3=!1;function RA(J){return(J.ctrlKey||J.altKey||J.metaKey)&&!(J.ctrlKey&&J.altKey)}function VA(J){switch(J){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function SA(J,Q){return J==="keydown"&&Q.keyCode===P3}function S3(J,Q){switch(J){case"keyup":return PA.indexOf(Q.keyCode)!==-1;case"keydown":return Q.keyCode!==P3;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function T3(J){var Q=J.detail;if(typeof Q==="object"&&"data"in Q)return Q.data;return null}function _3(J){return J.locale==="ko"}var O1=!1;function TA(J,Q,X,G,U){var q,O;if(SK)q=VA(Q);else if(!O1){if(SA(Q,G))q="onCompositionStart"}else if(S3(Q,G))q="onCompositionEnd";if(!q)return null;if(N3&&!_3(G)){if(!O1&&q==="onCompositionStart")O1=rB(U);else if(q==="onCompositionEnd"){if(O1)O=M3()}}var L=UY(X,q);if(L.length>0){var W=new I3(q,Q,null,G,U);if(J.push({event:W,listeners:L}),O)W.data=O;else{var H=T3(G);if(H!==null)W.data=H}}}function _A(J,Q){switch(J){case"compositionend":return T3(Q);case"keypress":var X=Q.which;if(X!==w3)return null;return V3=!0,R3;case"textInput":var G=Q.data;if(G===R3&&V3)return null;return G;default:return null}}function kA(J,Q){if(O1){if(J==="compositionend"||!SK&&S3(J,Q)){var X=M3();return oB(),O1=!1,X}return null}switch(J){case"paste":return null;case"keypress":if(!RA(Q)){if(Q.char&&Q.char.length>1)return Q.char;else if(Q.which)return String.fromCharCode(Q.which)}return null;case"compositionend":return N3&&!_3(Q)?null:Q.data;default:return null}}function EA(J,Q,X,G,U){var q;if(NA)q=_A(Q,G);else q=kA(Q,G);if(!q)return null;var O=UY(X,"onBeforeInput");if(O.length>0){var L=new UA("onBeforeInput","beforeinput",null,G,U);J.push({event:L,listeners:O}),L.data=q}}function CA(J,Q,X,G,U,q,O){TA(J,Q,X,G,U),EA(J,Q,X,G,U)}var xA={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 k3(J){var Q=J&&J.nodeName&&J.nodeName.toLowerCase();if(Q==="input")return!!xA[J.type];if(Q==="textarea")return!0;return!1}function hA(J){if(!yQ)return!1;var Q="on"+J,X=Q in document;if(!X){var G=document.createElement("div");G.setAttribute(Q,"return;"),X=typeof G[Q]==="function"}return X}function yA(){PZ("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function E3(J,Q,X,G){T$(G);var U=UY(Q,"onChange");if(U.length>0){var q=new PK("onChange","change",null,X,G);J.push({event:q,listeners:U})}}var o6=null,t6=null;function bA(J){var Q=J.nodeName&&J.nodeName.toLowerCase();return Q==="select"||Q==="input"&&J.type==="file"}function fA(J){var Q=[];E3(Q,t6,J,SG(J)),C$(vA,Q)}function vA(J){r3(J,0)}function XY(J){var Q=F1(J);if(i9(Q))return J}function uA(J,Q){if(J==="change")return Q}var C3=!1;if(yQ)C3=hA("input")&&(!document.documentMode||document.documentMode>9);function gA(J,Q){o6=J,t6=Q,o6.attachEvent("onpropertychange",h3)}function x3(){if(!o6)return;o6.detachEvent("onpropertychange",h3),o6=null,t6=null}function h3(J){if(J.propertyName!=="value")return;if(XY(t6))fA(J)}function dA(J,Q,X){if(J==="focusin")x3(),gA(Q,X);else if(J==="focusout")x3()}function mA(J,Q){if(J==="selectionchange"||J==="keyup"||J==="keydown")return XY(t6)}function cA(J){var Q=J.nodeName;return Q&&Q.toLowerCase()==="input"&&(J.type==="checkbox"||J.type==="radio")}function pA(J,Q){if(J==="click")return XY(Q)}function sA(J,Q){if(J==="input"||J==="change")return XY(Q)}function lA(J){var Q=J._wrapperState;if(!Q||!Q.controlled||J.type!=="number")return;PJ(J,"number",J.value)}function iA(J,Q,X,G,U,q,O){var L=X?F1(X):window,W,H;if(bA(L))W=uA;else if(k3(L))if(C3)W=sA;else W=mA,H=dA;else if(cA(L))W=pA;if(W){var M=W(Q,X);if(M){E3(J,M,G,U);return}}if(H)H(Q,L,X);if(Q==="focusout")lA(L)}function nA(){I7("onMouseEnter",["mouseout","mouseover"]),I7("onMouseLeave",["mouseout","mouseover"]),I7("onPointerEnter",["pointerout","pointerover"]),I7("onPointerLeave",["pointerout","pointerover"])}function rA(J,Q,X,G,U,q,O){var L=Q==="mouseover"||Q==="pointerover",W=Q==="mouseout"||Q==="pointerout";if(L&&!LF(G)){var H=G.relatedTarget||G.fromElement;if(H){if(F9(H)||L0(H))return}}if(!W&&!L)return;var M;if(U.window===U)M=U;else{var N=U.ownerDocument;if(N)M=N.defaultView||N.parentWindow;else M=window}var P,S;if(W){var T=G.relatedTarget||G.toElement;if(P=X,S=T?F9(T):null,S!==null){var E=q9(S);if(S!==E||S.tag!==k&&S.tag!==a)S=null}}else P=null,S=X;if(P===S)return;var s=A3,OJ="onMouseLeave",GJ="onMouseEnter",bJ="mouse";if(Q==="pointerout"||Q==="pointerover")s=j3,OJ="onPointerLeave",GJ="onPointerEnter",bJ="pointer";var fJ=P==null?M:F1(P),w=S==null?M:F1(S),x=new s(OJ,bJ+"leave",P,G,U);x.target=fJ,x.relatedTarget=w;var R=null,u=F9(U);if(u===X){var e=new s(GJ,bJ+"enter",S,G,U);e.target=w,e.relatedTarget=fJ,R=e}AI(J,x,R,P,S)}function oA(J,Q){return J===Q&&(J!==0||1/J===1/Q)||J!==J&&Q!==Q}var W7=typeof Object.is==="function"?Object.is:oA;function a6(J,Q){if(W7(J,Q))return!0;if(typeof J!=="object"||J===null||typeof Q!=="object"||Q===null)return!1;var X=Object.keys(J),G=Object.keys(Q);if(X.length!==G.length)return!1;for(var U=0;U<X.length;U++){var q=X[U];if(!Y7.call(Q,q)||!W7(J[q],Q[q]))return!1}return!0}function y3(J){while(J&&J.firstChild)J=J.firstChild;return J}function tA(J){while(J){if(J.nextSibling)return J.nextSibling;J=J.parentNode}}function b3(J,Q){var X=y3(J),G=0,U=0;while(X){if(X.nodeType===C8){if(U=G+X.textContent.length,G<=Q&&U>=Q)return{node:X,offset:Q-G};G=U}X=y3(tA(X))}}function aA(J){var Q=J.ownerDocument,X=Q&&Q.defaultView||window,G=X.getSelection&&X.getSelection();if(!G||G.rangeCount===0)return null;var{anchorNode:U,anchorOffset:q,focusNode:O,focusOffset:L}=G;try{U.nodeType,O.nodeType}catch(W){return null}return eA(J,U,q,O,L)}function eA(J,Q,X,G,U){var q=0,O=-1,L=-1,W=0,H=0,M=J,N=null;J:while(!0){var P=null;while(!0){if(M===Q&&(X===0||M.nodeType===C8))O=q+X;if(M===G&&(U===0||M.nodeType===C8))L=q+U;if(M.nodeType===C8)q+=M.nodeValue.length;if((P=M.firstChild)===null)break;N=M,M=P}while(!0){if(M===J)break J;if(N===Q&&++W===X)O=q;if(N===G&&++H===U)L=q;if((P=M.nextSibling)!==null)break;M=N,N=M.parentNode}M=P}if(O===-1||L===-1)return null;return{start:O,end:L}}function JI(J,Q){var X=J.ownerDocument||document,G=X&&X.defaultView||window;if(!G.getSelection)return;var U=G.getSelection(),q=J.textContent.length,O=Math.min(Q.start,q),L=Q.end===void 0?O:Math.min(Q.end,q);if(!U.extend&&O>L){var W=L;L=O,O=W}var H=b3(J,O),M=b3(J,L);if(H&&M){if(U.rangeCount===1&&U.anchorNode===H.node&&U.anchorOffset===H.offset&&U.focusNode===M.node&&U.focusOffset===M.offset)return;var N=X.createRange();if(N.setStart(H.node,H.offset),U.removeAllRanges(),O>L)U.addRange(N),U.extend(M.node,M.offset);else N.setEnd(M.node,M.offset),U.addRange(N)}}function f3(J){return J&&J.nodeType===C8}function v3(J,Q){if(!J||!Q)return!1;else if(J===Q)return!0;else if(f3(J))return!1;else if(f3(Q))return v3(J,Q.parentNode);else if("contains"in J)return J.contains(Q);else if(J.compareDocumentPosition)return!!(J.compareDocumentPosition(Q)&16);else return!1}function QI(J){return J&&J.ownerDocument&&v3(J.ownerDocument.documentElement,J)}function ZI(J){try{return typeof J.contentWindow.location.href==="string"}catch(Q){return!1}}function u3(){var J=window,Q=AX();while(Q instanceof J.HTMLIFrameElement){if(ZI(Q))J=Q.contentWindow;else return Q;Q=AX(J.document)}return Q}function TK(J){var Q=J&&J.nodeName&&J.nodeName.toLowerCase();return Q&&(Q==="input"&&(J.type==="text"||J.type==="search"||J.type==="tel"||J.type==="url"||J.type==="password")||Q==="textarea"||J.contentEditable==="true")}function XI(){var J=u3();return{focusedElem:J,selectionRange:TK(J)?GI(J):null}}function YI(J){var Q=u3(),X=J.focusedElem,G=J.selectionRange;if(Q!==X&&QI(X)){if(G!==null&&TK(X))KI(X,G);var U=[],q=X;while(q=q.parentNode)if(q.nodeType===lZ)U.push({element:q,left:q.scrollLeft,top:q.scrollTop});if(typeof X.focus==="function")X.focus();for(var O=0;O<U.length;O++){var L=U[O];L.element.scrollLeft=L.left,L.element.scrollTop=L.top}}}function GI(J){var Q;if("selectionStart"in J)Q={start:J.selectionStart,end:J.selectionEnd};else Q=aA(J);return Q||{start:0,end:0}}function KI(J,Q){var{start:X,end:G}=Q;if(G===void 0)G=X;if("selectionStart"in J)J.selectionStart=X,J.selectionEnd=Math.min(G,J.value.length);else JI(J,Q)}var UI=yQ&&"documentMode"in document&&document.documentMode<=11;function qI(){PZ("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var L1=null,_K=null,e6=null,kK=!1;function zI(J){if("selectionStart"in J&&TK(J))return{start:J.selectionStart,end:J.selectionEnd};else{var Q=J.ownerDocument&&J.ownerDocument.defaultView||window,X=Q.getSelection();return{anchorNode:X.anchorNode,anchorOffset:X.anchorOffset,focusNode:X.focusNode,focusOffset:X.focusOffset}}}function $I(J){return J.window===J?J.document:J.nodeType===x8?J:J.ownerDocument}function g3(J,Q,X){var G=$I(X);if(kK||L1==null||L1!==AX(G))return;var U=zI(L1);if(!e6||!a6(e6,U)){e6=U;var q=UY(_K,"onSelect");if(q.length>0){var O=new PK("onSelect","select",null,Q,X);J.push({event:O,listeners:q}),O.target=L1}}}function OI(J,Q,X,G,U,q,O){var L=X?F1(X):window;switch(Q){case"focusin":if(k3(L)||L.contentEditable==="true")L1=L,_K=X,e6=null;break;case"focusout":L1=null,_K=null,e6=null;break;case"mousedown":kK=!0;break;case"contextmenu":case"mouseup":case"dragend":kK=!1,g3(J,G,U);break;case"selectionchange":if(UI)break;case"keydown":case"keyup":g3(J,G,U)}}function YY(J,Q){var X={};return X[J.toLowerCase()]=Q.toLowerCase(),X["Webkit"+J]="webkit"+Q,X["Moz"+J]="moz"+Q,X}var W1={animationend:YY("Animation","AnimationEnd"),animationiteration:YY("Animation","AnimationIteration"),animationstart:YY("Animation","AnimationStart"),transitionend:YY("Transition","TransitionEnd")},EK={},d3={};if(yQ){if(d3=document.createElement("div").style,!("AnimationEvent"in window))delete W1.animationend.animation,delete W1.animationiteration.animation,delete W1.animationstart.animation;if(!("TransitionEvent"in window))delete W1.transitionend.transition}function GY(J){if(EK[J])return EK[J];else if(!W1[J])return J;var Q=W1[J];for(var X in Q)if(Q.hasOwnProperty(X)&&X in d3)return EK[J]=Q[X];return J}var m3=GY("animationend"),c3=GY("animationiteration"),p3=GY("animationstart"),s3=GY("transitionend"),l3=new Map,i3=["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 RX(J,Q){l3.set(J,Q),PZ(Q,[J])}function LI(){for(var J=0;J<i3.length;J++){var Q=i3[J],X=Q.toLowerCase(),G=Q[0].toUpperCase()+Q.slice(1);RX(X,"on"+G)}RX(m3,"onAnimationEnd"),RX(c3,"onAnimationIteration"),RX(p3,"onAnimationStart"),RX("dblclick","onDoubleClick"),RX("focusin","onFocus"),RX("focusout","onBlur"),RX(s3,"onTransitionEnd")}function WI(J,Q,X,G,U,q,O){var L=l3.get(Q);if(L===void 0)return;var W=PK,H=Q;switch(Q){case"keypress":if(JY(G)===0)return;case"keydown":case"keyup":W=DA;break;case"focusin":H="focus",W=RK;break;case"focusout":H="blur",W=RK;break;case"beforeblur":case"afterblur":W=RK;break;case"click":if(G.button===2)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":W=A3;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":W=JA;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":W=FA;break;case m3:case c3:case p3:W=XA;break;case s3:W=AA;break;case"scroll":W=tB;break;case"wheel":W=jA;break;case"copy":case"cut":case"paste":W=GA;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":W=j3;break}var M=(q&w6)!==0;{var N=!M&&Q==="scroll",P=FI(X,L,G.type,M,N);if(P.length>0){var S=new W(L,H,null,G,U);J.push({event:S,listeners:P})}}}LI(),nA(),yA(),qI(),wA();function DI(J,Q,X,G,U,q,O){WI(J,Q,X,G,U,q);var L=(q&zF)===0;if(L)rA(J,Q,X,G,U),iA(J,Q,X,G,U),OI(J,Q,X,G,U),CA(J,Q,X,G,U)}var J0=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],CK=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(J0));function n3(J,Q,X){var G=J.type||"unknown-event";J.currentTarget=X,jF(G,Q,void 0,J),J.currentTarget=null}function HI(J,Q,X){var G;if(X)for(var U=Q.length-1;U>=0;U--){var q=Q[U],O=q.instance,L=q.currentTarget,W=q.listener;if(O!==G&&J.isPropagationStopped())return;n3(J,W,L),G=O}else for(var H=0;H<Q.length;H++){var M=Q[H],N=M.instance,P=M.currentTarget,S=M.listener;if(N!==G&&J.isPropagationStopped())return;n3(J,S,P),G=N}}function r3(J,Q){var X=(Q&w6)!==0;for(var G=0;G<J.length;G++){var U=J[G],q=U.event,O=U.listeners;HI(q,O,X)}PF()}function MI(J,Q,X,G,U){var q=SG(X),O=[];DI(O,J,G,X,q,Q),r3(O,Q)}function PQ(J,Q){if(!CK.has(J))$('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',J);var X=!1,G=lj(Q),U=II(J,X);if(!G.has(U))o3(Q,J,VG,X),G.add(U)}function xK(J,Q,X){if(CK.has(J)&&!Q)$('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',J);var G=0;if(Q)G|=w6;o3(X,J,G,Q)}var KY="_reactListening"+Math.random().toString(36).slice(2);function Q0(J){if(!J[KY]){J[KY]=!0,v7.forEach(function(X){if(X!=="selectionchange"){if(!CK.has(X))xK(X,!1,J);xK(X,!0,J)}});var Q=J.nodeType===x8?J:J.ownerDocument;if(Q!==null){if(!Q[KY])Q[KY]=!0,xK("selectionchange",!1,Q)}}}function o3(J,Q,X,G,U){var q=dB(J,Q,X),O=void 0;if(kG){if(Q==="touchstart"||Q==="touchmove"||Q==="wheel")O=!0}J=J;var L;if(G)if(O!==void 0)L=iB(J,Q,q,O);else L=lB(J,Q,q);else if(O!==void 0)L=nB(J,Q,q,O);else L=sB(J,Q,q)}function t3(J,Q){return J===Q||J.nodeType===gQ&&J.parentNode===Q}function hK(J,Q,X,G,U){var q=G;if((Q&V$)===0&&(Q&VG)===0){var O=U;if(G!==null){var L=G;J:while(!0){if(L===null)return;var W=L.tag;if(W===_||W===b){var H=L.stateNode.containerInfo;if(t3(H,O))break;if(W===b){var M=L.return;while(M!==null){var N=M.tag;if(N===_||N===b){var P=M.stateNode.containerInfo;if(t3(P,O))return}M=M.return}}while(H!==null){var S=F9(H);if(S===null)return;var T=S.tag;if(T===k||T===a){L=q=S;continue J}H=H.parentNode}}L=L.return}}}C$(function(){return MI(J,Q,X,q)})}function Z0(J,Q,X){return{instance:J,listener:Q,currentTarget:X}}function FI(J,Q,X,G,U,q){var O=Q!==null?Q+"Capture":null,L=G?O:Q,W=[],H=J,M=null;while(H!==null){var N=H,P=N.stateNode,S=N.tag;if(S===k&&P!==null){if(M=P,L!==null){var T=V6(H,L);if(T!=null)W.push(Z0(H,T,M))}}if(U)break;H=H.return}return W}function UY(J,Q){var X=Q+"Capture",G=[],U=J;while(U!==null){var q=U,O=q.stateNode,L=q.tag;if(L===k&&O!==null){var W=O,H=V6(U,X);if(H!=null)G.unshift(Z0(U,H,W));var M=V6(U,Q);if(M!=null)G.push(Z0(U,M,W))}U=U.return}return G}function D1(J){if(J===null)return null;do J=J.return;while(J&&J.tag!==k);if(J)return J;return null}function BI(J,Q){var X=J,G=Q,U=0;for(var q=X;q;q=D1(q))U++;var O=0;for(var L=G;L;L=D1(L))O++;while(U-O>0)X=D1(X),U--;while(O-U>0)G=D1(G),O--;var W=U;while(W--){if(X===G||G!==null&&X===G.alternate)return X;X=D1(X),G=D1(G)}return null}function a3(J,Q,X,G,U){var q=Q._reactName,O=[],L=X;while(L!==null){if(L===G)break;var W=L,H=W.alternate,M=W.stateNode,N=W.tag;if(H!==null&&H===G)break;if(N===k&&M!==null){var P=M;if(U){var S=V6(L,q);if(S!=null)O.unshift(Z0(L,S,P))}else if(!U){var T=V6(L,q);if(T!=null)O.push(Z0(L,T,P))}}L=L.return}if(O.length!==0)J.push({event:Q,listeners:O})}function AI(J,Q,X,G,U){var q=G&&U?BI(G,U):null;if(G!==null)a3(J,Q,G,q,!1);if(U!==null&&X!==null)a3(J,X,U,q,!0)}function II(J,Q){return J+"__"+(Q?"capture":"bubble")}var iZ=!1,X0="dangerouslySetInnerHTML",qY="suppressContentEditableWarning",VX="suppressHydrationWarning",e3="autoFocus",H9="children",M9="style",zY="__html",yK,$Y,Y0,J2,OY,Q2,Z2;yK={dialog:!0,webview:!0},$Y=function(J,Q){ZF(J,Q),XF(J,Q),qF(J,Q,{registrationNameDependencies:ZZ,possibleRegistrationNames:X7})},Q2=yQ&&!document.documentMode,Y0=function(J,Q,X){if(iZ)return;var G=LY(X),U=LY(Q);if(U===G)return;iZ=!0,$("Prop `%s` did not match. Server: %s Client: %s",J,JSON.stringify(U),JSON.stringify(G))},J2=function(J){if(iZ)return;iZ=!0;var Q=[];J.forEach(function(X){Q.push(X)}),$("Extra attributes from the server: %s",Q)},OY=function(J,Q){if(Q===!1)$("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.",J,J,J);else $("Expected `%s` listener to be a function, instead got a value of `%s` type.",J,typeof Q)},Z2=function(J,Q){var X=J.namespaceURI===E8?J.ownerDocument.createElement(J.tagName):J.ownerDocument.createElementNS(J.namespaceURI,J.tagName);return X.innerHTML=Q,X.innerHTML};var jI=/\r\n?/g,PI=/\u0000|\uFFFD/g;function LY(J){qX(J);var Q=typeof J==="string"?J:""+J;return Q.replace(jI,`
32
+ `).replace(PI,"")}function WY(J,Q,X,G){var U=LY(Q),q=LY(J);if(q===U)return;if(G){if(!iZ)iZ=!0,$('Text content did not match. Server: "%s" Client: "%s"',q,U)}if(X&&QJ)throw Error("Text content does not match server-rendered HTML.")}function X2(J){return J.nodeType===x8?J:J.ownerDocument}function NI(){}function DY(J){J.onclick=NI}function wI(J,Q,X,G,U){for(var q in G){if(!G.hasOwnProperty(q))continue;var O=G[q];if(q===M9){if(O)Object.freeze(O);I$(Q,O)}else if(q===X0){var L=O?O[zY]:void 0;if(L!=null)H$(Q,L)}else if(q===H9){if(typeof O==="string"){var W=J!=="textarea"||O!=="";if(W)y4(Q,O)}else if(typeof O==="number")y4(Q,""+O)}else if(q===qY||q===VX);else if(q===e3);else if(ZZ.hasOwnProperty(q)){if(O!=null){if(typeof O!=="function")OY(q,O);if(q==="onScroll")PQ("scroll",Q)}}else if(O!=null)OX(Q,q,O,U)}}function RI(J,Q,X,G){for(var U=0;U<Q.length;U+=2){var q=Q[U],O=Q[U+1];if(q===M9)I$(J,O);else if(q===X0)H$(J,O);else if(q===H9)y4(J,O);else OX(J,q,O,G)}}function VI(J,Q,X,G){var U,q=X2(X),O,L=G;if(L===E8)L=IG(J);if(L===E8){if(U=X9(J,Q),!U&&J!==J.toLowerCase())$("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",J);if(J==="script"){var W=q.createElement("div");W.innerHTML="<script></script>";var H=W.firstChild;O=W.removeChild(H)}else if(typeof Q.is==="string")O=q.createElement(J,{is:Q.is});else if(O=q.createElement(J),J==="select"){var M=O;if(Q.multiple)M.multiple=!0;else if(Q.size)M.size=Q.size}}else O=q.createElementNS(L,J);if(L===E8){if(!U&&Object.prototype.toString.call(O)==="[object HTMLUnknownElement]"&&!Y7.call(yK,J))yK[J]=!0,$("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",J)}return O}function SI(J,Q){return X2(Q).createTextNode(J)}function TI(J,Q,X,G){var U=X9(Q,X);$Y(Q,X);var q;switch(Q){case"dialog":PQ("cancel",J),PQ("close",J),q=X;break;case"iframe":case"object":case"embed":PQ("load",J),q=X;break;case"video":case"audio":for(var O=0;O<J0.length;O++)PQ(J0[O],J);q=X;break;case"source":PQ("error",J),q=X;break;case"img":case"image":case"link":PQ("error",J),PQ("load",J),q=X;break;case"details":PQ("toggle",J),q=X;break;case"input":A(J,X),q=D(J,X),PQ("invalid",J);break;case"option":WQ(J,X),q=X;break;case"select":P6(J,X),q=j6(J,X),PQ("invalid",J);break;case"textarea":L$(J,X),q=BG(J,X),PQ("invalid",J);break;default:q=X}switch(RG(Q,q),wI(Q,J,G,q,U),Q){case"input":_8(J),m(J,X,!1);break;case"textarea":_8(J),D$(J);break;case"option":jQ(J,X);break;case"select":FG(J,X);break;default:if(typeof q.onClick==="function")DY(J);break}}function _I(J,Q,X,G,U){$Y(Q,G);var q=null,O,L;switch(Q){case"input":O=D(J,X),L=D(J,G),q=[];break;case"select":O=j6(J,X),L=j6(J,G),q=[];break;case"textarea":O=BG(J,X),L=BG(J,G),q=[];break;default:if(O=X,L=G,typeof O.onClick!=="function"&&typeof L.onClick==="function")DY(J);break}RG(Q,L);var W,H,M=null;for(W in O){if(L.hasOwnProperty(W)||!O.hasOwnProperty(W)||O[W]==null)continue;if(W===M9){var N=O[W];for(H in N)if(N.hasOwnProperty(H)){if(!M)M={};M[H]=""}}else if(W===X0||W===H9);else if(W===qY||W===VX);else if(W===e3);else if(ZZ.hasOwnProperty(W)){if(!q)q=[]}else(q=q||[]).push(W,null)}for(W in L){var P=L[W],S=O!=null?O[W]:void 0;if(!L.hasOwnProperty(W)||P===S||P==null&&S==null)continue;if(W===M9){if(P)Object.freeze(P);if(S){for(H in S)if(S.hasOwnProperty(H)&&(!P||!P.hasOwnProperty(H))){if(!M)M={};M[H]=""}for(H in P)if(P.hasOwnProperty(H)&&S[H]!==P[H]){if(!M)M={};M[H]=P[H]}}else{if(!M){if(!q)q=[];q.push(W,M)}M=P}}else if(W===X0){var T=P?P[zY]:void 0,E=S?S[zY]:void 0;if(T!=null){if(E!==T)(q=q||[]).push(W,T)}}else if(W===H9){if(typeof P==="string"||typeof P==="number")(q=q||[]).push(W,""+P)}else if(W===qY||W===VX);else if(ZZ.hasOwnProperty(W)){if(P!=null){if(typeof P!=="function")OY(W,P);if(W==="onScroll")PQ("scroll",J)}if(!q&&S!==P)q=[]}else(q=q||[]).push(W,P)}if(M)nM(M,L[M9]),(q=q||[]).push(M9,M);return q}function kI(J,Q,X,G,U){if(X==="input"&&U.type==="radio"&&U.name!=null)V(J,U);var q=X9(X,G),O=X9(X,U);switch(RI(J,Q,q,O),X){case"input":C(J,U);break;case"textarea":W$(J,U);break;case"select":RM(J,U);break}}function EI(J){{var Q=J.toLowerCase();if(!b4.hasOwnProperty(Q))return null;return b4[Q]||null}}function CI(J,Q,X,G,U,q,O){var L,W;switch(L=X9(Q,X),$Y(Q,X),Q){case"dialog":PQ("cancel",J),PQ("close",J);break;case"iframe":case"object":case"embed":PQ("load",J);break;case"video":case"audio":for(var H=0;H<J0.length;H++)PQ(J0[H],J);break;case"source":PQ("error",J);break;case"img":case"image":case"link":PQ("error",J),PQ("load",J);break;case"details":PQ("toggle",J);break;case"input":A(J,X),PQ("invalid",J);break;case"option":WQ(J,X);break;case"select":P6(J,X),PQ("invalid",J);break;case"textarea":L$(J,X),PQ("invalid",J);break}RG(Q,X);{W=new Set;var M=J.attributes;for(var N=0;N<M.length;N++){var P=M[N].name.toLowerCase();switch(P){case"value":break;case"checked":break;case"selected":break;default:W.add(M[N].name)}}}var S=null;for(var T in X){if(!X.hasOwnProperty(T))continue;var E=X[T];if(T===H9){if(typeof E==="string"){if(J.textContent!==E){if(X[VX]!==!0)WY(J.textContent,E,q,O);S=[H9,E]}}else if(typeof E==="number"){if(J.textContent!==""+E){if(X[VX]!==!0)WY(J.textContent,E,q,O);S=[H9,""+E]}}}else if(ZZ.hasOwnProperty(T)){if(E!=null){if(typeof E!=="function")OY(T,E);if(T==="onScroll")PQ("scroll",J)}}else if(O&&!0&&typeof L==="boolean"){var s=void 0,OJ=L&&$Q?null:wZ(T);if(X[VX]===!0);else if(T===qY||T===VX||T==="value"||T==="checked"||T==="selected");else if(T===X0){var GJ=J.innerHTML,bJ=E?E[zY]:void 0;if(bJ!=null){var fJ=Z2(J,bJ);if(fJ!==GJ)Y0(T,GJ,fJ)}}else if(T===M9){if(W.delete(T),Q2){var w=lM(E);if(s=J.getAttribute("style"),w!==s)Y0(T,s,w)}}else if(L&&!$Q){if(W.delete(T.toLowerCase()),s=$X(J,T,E),E!==s)Y0(T,s,E)}else if(!OQ(T,OJ,L)&&!AQ(T,E,OJ,L)){var x=!1;if(OJ!==null)W.delete(OJ.attributeName),s=q8(J,T,E,OJ);else{var R=G;if(R===E8)R=IG(Q);if(R===E8)W.delete(T.toLowerCase());else{var u=EI(T);if(u!==null&&u!==T)x=!0,W.delete(u);W.delete(T)}s=$X(J,T,E)}var e=$Q;if(!e&&E!==s&&!x)Y0(T,s,E)}}}if(O){if(W.size>0&&X[VX]!==!0)J2(W)}switch(Q){case"input":_8(J),m(J,X,!0);break;case"textarea":_8(J),D$(J);break;case"select":case"option":break;default:if(typeof X.onClick==="function")DY(J);break}return S}function xI(J,Q,X){var G=J.nodeValue!==Q;return G}function bK(J,Q){{if(iZ)return;iZ=!0,$("Did not expect server HTML to contain a <%s> in <%s>.",Q.nodeName.toLowerCase(),J.nodeName.toLowerCase())}}function fK(J,Q){{if(iZ)return;iZ=!0,$('Did not expect server HTML to contain the text node "%s" in <%s>.',Q.nodeValue,J.nodeName.toLowerCase())}}function vK(J,Q,X){{if(iZ)return;iZ=!0,$("Expected server HTML to contain a matching <%s> in <%s>.",Q,J.nodeName.toLowerCase())}}function uK(J,Q){{if(Q==="")return;if(iZ)return;iZ=!0,$('Expected server HTML to contain a matching text node for "%s" in <%s>.',Q,J.nodeName.toLowerCase())}}function hI(J,Q,X){switch(Q){case"input":IJ(J,X);return;case"textarea":SM(J,X);return;case"select":VM(J,X);return}}var G0=function(){},K0=function(){};{var yI=["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"],Y2=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],bI=Y2.concat(["button"]),fI=["dd","dt","li","option","optgroup","p","rp","rt"],G2={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};K0=function(J,Q){var X=uJ({},J||G2),G={tag:Q};if(Y2.indexOf(Q)!==-1)X.aTagInScope=null,X.buttonTagInScope=null,X.nobrTagInScope=null;if(bI.indexOf(Q)!==-1)X.pTagInButtonScope=null;if(yI.indexOf(Q)!==-1&&Q!=="address"&&Q!=="div"&&Q!=="p")X.listItemTagAutoclosing=null,X.dlItemTagAutoclosing=null;if(X.current=G,Q==="form")X.formTag=G;if(Q==="a")X.aTagInScope=G;if(Q==="button")X.buttonTagInScope=G;if(Q==="nobr")X.nobrTagInScope=G;if(Q==="p")X.pTagInButtonScope=G;if(Q==="li")X.listItemTagAutoclosing=G;if(Q==="dd"||Q==="dt")X.dlItemTagAutoclosing=G;return X};var vI=function(J,Q){switch(Q){case"select":return J==="option"||J==="optgroup"||J==="#text";case"optgroup":return J==="option"||J==="#text";case"option":return J==="#text";case"tr":return J==="th"||J==="td"||J==="style"||J==="script"||J==="template";case"tbody":case"thead":case"tfoot":return J==="tr"||J==="style"||J==="script"||J==="template";case"colgroup":return J==="col"||J==="template";case"table":return J==="caption"||J==="colgroup"||J==="tbody"||J==="tfoot"||J==="thead"||J==="style"||J==="script"||J==="template";case"head":return J==="base"||J==="basefont"||J==="bgsound"||J==="link"||J==="meta"||J==="title"||J==="noscript"||J==="noframes"||J==="style"||J==="script"||J==="template";case"html":return J==="head"||J==="body"||J==="frameset";case"frameset":return J==="frame";case"#document":return J==="html"}switch(J){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return Q!=="h1"&&Q!=="h2"&&Q!=="h3"&&Q!=="h4"&&Q!=="h5"&&Q!=="h6";case"rp":case"rt":return fI.indexOf(Q)===-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 Q==null}return!0},uI=function(J,Q){switch(J){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 Q.pTagInButtonScope;case"form":return Q.formTag||Q.pTagInButtonScope;case"li":return Q.listItemTagAutoclosing;case"dd":case"dt":return Q.dlItemTagAutoclosing;case"button":return Q.buttonTagInScope;case"a":return Q.aTagInScope;case"nobr":return Q.nobrTagInScope}return null},K2={};G0=function(J,Q,X){X=X||G2;var G=X.current,U=G&&G.tag;if(Q!=null){if(J!=null)$("validateDOMNesting: when childText is passed, childTag should be null");J="#text"}var q=vI(J,U)?null:G,O=q?null:uI(J,X),L=q||O;if(!L)return;var W=L.tag,H=!!q+"|"+J+"|"+W;if(K2[H])return;K2[H]=!0;var M=J,N="";if(J==="#text")if(/\S/.test(Q))M="Text nodes";else M="Whitespace text nodes",N=" Make sure you don't have any extra whitespace between tags on each line of your source code.";else M="<"+J+">";if(q){var P="";if(W==="table"&&J==="tr")P+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser.";$("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",M,W,N,P)}else $("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",M,W)}}var HY="suppressHydrationWarning",MY="$",FY="/$",U0="$?",q0="$!",gI="style",gK=null,dK=null;function dI(J){var Q,X,G=J.nodeType;switch(G){case x8:case PG:{Q=G===x8?"#document":"#fragment";var U=J.documentElement;X=U?U.namespaceURI:jG(null,"");break}default:{var q=G===gQ?J.parentNode:J,O=q.namespaceURI||null;Q=q.tagName,X=jG(O,Q);break}}{var L=Q.toLowerCase(),W=K0(null,L);return{namespace:X,ancestorInfo:W}}}function mI(J,Q,X){{var G=J,U=jG(G.namespace,Q),q=K0(G.ancestorInfo,Q);return{namespace:U,ancestorInfo:q}}}function mK(J){return J}function cI(J){gK=gB(),dK=XI();var Q=null;return D3(!1),Q}function pI(J){YI(dK),D3(gK),gK=null,dK=null}function sI(J,Q,X,G,U){var q;{var O=G;if(G0(J,null,O.ancestorInfo),typeof Q.children==="string"||typeof Q.children==="number"){var L=""+Q.children,W=K0(O.ancestorInfo,J);G0(null,L,W)}q=O.namespace}var H=VI(J,Q,X,q);return O0(U,H),oK(H,Q),H}function lI(J,Q){J.appendChild(Q)}function iI(J,Q,X,G,U){switch(TI(J,Q,X,G),Q){case"button":case"input":case"select":case"textarea":return!!X.autoFocus;case"img":return!0;default:return!1}}function nI(J,Q,X,G,U,q){{var O=q;if(typeof G.children!==typeof X.children&&(typeof G.children==="string"||typeof G.children==="number")){var L=""+G.children,W=K0(O.ancestorInfo,Q);G0(null,L,W)}}return _I(J,Q,X,G)}function cK(J,Q){return J==="textarea"||J==="noscript"||typeof Q.children==="string"||typeof Q.children==="number"||typeof Q.dangerouslySetInnerHTML==="object"&&Q.dangerouslySetInnerHTML!==null&&Q.dangerouslySetInnerHTML.__html!=null}function rI(J,Q,X,G){{var U=X;G0(null,J,U.ancestorInfo)}var q=SI(J,Q);return O0(G,q),q}function oI(){var J=window.event;if(J===void 0)return g8;return H3(J.type)}var pK=typeof setTimeout==="function"?setTimeout:void 0,tI=typeof clearTimeout==="function"?clearTimeout:void 0,sK=-1,U2=typeof Promise==="function"?Promise:void 0,aI=typeof queueMicrotask==="function"?queueMicrotask:typeof U2<"u"?function(J){return U2.resolve(null).then(J).catch(eI)}:pK;function eI(J){setTimeout(function(){throw J})}function Jj(J,Q,X,G){switch(Q){case"button":case"input":case"select":case"textarea":if(X.autoFocus)J.focus();return;case"img":{if(X.src)J.src=X.src;return}}}function Qj(J,Q,X,G,U,q){kI(J,Q,X,G,U),oK(J,U)}function q2(J){y4(J,"")}function Zj(J,Q,X){J.nodeValue=X}function Xj(J,Q){J.appendChild(Q)}function Yj(J,Q){var X;if(J.nodeType===gQ)X=J.parentNode,X.insertBefore(Q,J);else X=J,X.appendChild(Q);var G=J._reactRootContainer;if((G===null||G===void 0)&&X.onclick===null)DY(X)}function Gj(J,Q,X){J.insertBefore(Q,X)}function Kj(J,Q,X){if(J.nodeType===gQ)J.parentNode.insertBefore(Q,X);else J.insertBefore(Q,X)}function Uj(J,Q){J.removeChild(Q)}function qj(J,Q){if(J.nodeType===gQ)J.parentNode.removeChild(Q);else J.removeChild(Q)}function lK(J,Q){var X=Q,G=0;do{var U=X.nextSibling;if(J.removeChild(X),U&&U.nodeType===gQ){var q=U.data;if(q===FY)if(G===0){J.removeChild(U),p6(Q);return}else G--;else if(q===MY||q===U0||q===q0)G++}X=U}while(X);p6(Q)}function zj(J,Q){if(J.nodeType===gQ)lK(J.parentNode,Q);else if(J.nodeType===lZ)lK(J,Q);p6(J)}function $j(J){J=J;var Q=J.style;if(typeof Q.setProperty==="function")Q.setProperty("display","none","important");else Q.display="none"}function Oj(J){J.nodeValue=""}function Lj(J,Q){J=J;var X=Q[gI],G=X!==void 0&&X!==null&&X.hasOwnProperty("display")?X.display:null;J.style.display=NG("display",G)}function Wj(J,Q){J.nodeValue=Q}function Dj(J){if(J.nodeType===lZ)J.textContent="";else if(J.nodeType===x8){if(J.documentElement)J.removeChild(J.documentElement)}}function Hj(J,Q,X){if(J.nodeType!==lZ||Q.toLowerCase()!==J.nodeName.toLowerCase())return null;return J}function Mj(J,Q){if(Q===""||J.nodeType!==C8)return null;return J}function Fj(J){if(J.nodeType!==gQ)return null;return J}function z2(J){return J.data===U0}function iK(J){return J.data===q0}function Bj(J){var Q=J.nextSibling&&J.nextSibling.dataset,X,G,U;if(Q)X=Q.dgst,G=Q.msg,U=Q.stck;return{message:G,digest:X,stack:U}}function Aj(J,Q){J._reactRetry=Q}function BY(J){for(;J!=null;J=J.nextSibling){var Q=J.nodeType;if(Q===lZ||Q===C8)break;if(Q===gQ){var X=J.data;if(X===MY||X===q0||X===U0)break;if(X===FY)return null}}return J}function z0(J){return BY(J.nextSibling)}function Ij(J){return BY(J.firstChild)}function jj(J){return BY(J.firstChild)}function Pj(J){return BY(J.nextSibling)}function Nj(J,Q,X,G,U,q,O){O0(q,J),oK(J,X);var L;{var W=U;L=W.namespace}var H=(q.mode&dJ)!==MJ;return CI(J,Q,X,L,G,H,O)}function wj(J,Q,X,G){O0(X,J);var U=(X.mode&dJ)!==MJ;return xI(J,Q)}function Rj(J,Q){O0(Q,J)}function Vj(J){var Q=J.nextSibling,X=0;while(Q){if(Q.nodeType===gQ){var G=Q.data;if(G===FY)if(X===0)return z0(Q);else X--;else if(G===MY||G===q0||G===U0)X++}Q=Q.nextSibling}return null}function $2(J){var Q=J.previousSibling,X=0;while(Q){if(Q.nodeType===gQ){var G=Q.data;if(G===MY||G===q0||G===U0)if(X===0)return Q;else X--;else if(G===FY)X++}Q=Q.previousSibling}return null}function Sj(J){p6(J)}function Tj(J){p6(J)}function _j(J){return J!=="head"&&J!=="body"}function kj(J,Q,X,G){var U=!0;WY(Q.nodeValue,X,G,U)}function Ej(J,Q,X,G,U,q){if(Q[HY]!==!0){var O=!0;WY(G.nodeValue,U,q,O)}}function Cj(J,Q){if(Q.nodeType===lZ)bK(J,Q);else if(Q.nodeType===gQ);else fK(J,Q)}function xj(J,Q){{var X=J.parentNode;if(X!==null)if(Q.nodeType===lZ)bK(X,Q);else if(Q.nodeType===gQ);else fK(X,Q)}}function hj(J,Q,X,G,U){if(U||Q[HY]!==!0)if(G.nodeType===lZ)bK(X,G);else if(G.nodeType===gQ);else fK(X,G)}function yj(J,Q,X){vK(J,Q)}function bj(J,Q){uK(J,Q)}function fj(J,Q,X){{var G=J.parentNode;if(G!==null)vK(G,Q)}}function vj(J,Q){{var X=J.parentNode;if(X!==null)uK(X,Q)}}function uj(J,Q,X,G,U,q){if(q||Q[HY]!==!0)vK(X,G)}function gj(J,Q,X,G,U){if(U||Q[HY]!==!0)uK(X,G)}function dj(J){$("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",J.nodeName.toLowerCase())}function mj(J){Q0(J)}var H1=Math.random().toString(36).slice(2),M1="__reactFiber$"+H1,nK="__reactProps$"+H1,$0="__reactContainer$"+H1,rK="__reactEvents$"+H1,cj="__reactListeners$"+H1,pj="__reactHandles$"+H1;function sj(J){delete J[M1],delete J[nK],delete J[rK],delete J[cj],delete J[pj]}function O0(J,Q){Q[M1]=J}function AY(J,Q){Q[$0]=J}function O2(J){J[$0]=null}function L0(J){return!!J[$0]}function F9(J){var Q=J[M1];if(Q)return Q;var X=J.parentNode;while(X){if(Q=X[$0]||X[M1],Q){var G=Q.alternate;if(Q.child!==null||G!==null&&G.child!==null){var U=$2(J);while(U!==null){var q=U[M1];if(q)return q;U=$2(U)}}return Q}J=X,X=J.parentNode}return null}function SX(J){var Q=J[M1]||J[$0];if(Q)if(Q.tag===k||Q.tag===a||Q.tag===c||Q.tag===_)return Q;else return null;return null}function F1(J){if(J.tag===k||J.tag===a)return J.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function IY(J){return J[nK]||null}function oK(J,Q){J[nK]=Q}function lj(J){var Q=J[rK];if(Q===void 0)Q=J[rK]=new Set;return Q}var L2={},W2=Z.ReactDebugCurrentFrame;function jY(J){if(J){var Q=J._owner,X=MX(J.type,J._source,Q?Q.type:null);W2.setExtraStackFrame(X)}else W2.setExtraStackFrame(null)}function n7(J,Q,X,G,U){{var q=Function.call.bind(Y7);for(var O in J)if(q(J,O)){var L=void 0;try{if(typeof J[O]!=="function"){var W=Error((G||"React class")+": "+X+" type `"+O+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof J[O]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw W.name="Invariant Violation",W}L=J[O](Q,O,G,X,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(H){L=H}if(L&&!(L instanceof Error))jY(U),$("%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).",G||"React class",X,O,typeof L),jY(null);if(L instanceof Error&&!(L.message in L2))L2[L.message]=!0,jY(U),$("Failed %s type: %s",X,L.message),jY(null)}}}var tK=[],PY;PY=[];var d8=-1;function TX(J){return{current:J}}function VZ(J,Q){if(d8<0){$("Unexpected pop.");return}if(Q!==PY[d8])$("Unexpected Fiber popped.");J.current=tK[d8],tK[d8]=null,PY[d8]=null,d8--}function SZ(J,Q,X){d8++,tK[d8]=J.current,PY[d8]=X,J.current=Q}var D2={},D7={};Object.freeze(D7);var m8=TX(D7),H8=TX(!1),aK=D7;function B1(J,Q,X){{if(X&&M8(Q))return aK;return m8.current}}function H2(J,Q,X){{var G=J.stateNode;G.__reactInternalMemoizedUnmaskedChildContext=Q,G.__reactInternalMemoizedMaskedChildContext=X}}function A1(J,Q){{var X=J.type,G=X.contextTypes;if(!G)return D7;var U=J.stateNode;if(U&&U.__reactInternalMemoizedUnmaskedChildContext===Q)return U.__reactInternalMemoizedMaskedChildContext;var q={};for(var O in G)q[O]=Q[O];{var L=EJ(J)||"Unknown";n7(G,q,"context",L)}if(U)H2(J,Q,q);return q}}function NY(){return H8.current}function M8(J){{var Q=J.childContextTypes;return Q!==null&&Q!==void 0}}function wY(J){VZ(H8,J),VZ(m8,J)}function eK(J){VZ(H8,J),VZ(m8,J)}function M2(J,Q,X){{if(m8.current!==D7)throw Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");SZ(m8,Q,J),SZ(H8,X,J)}}function F2(J,Q,X){{var G=J.stateNode,U=Q.childContextTypes;if(typeof G.getChildContext!=="function"){{var q=EJ(J)||"Unknown";if(!D2[q])D2[q]=!0,$("%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.",q,q)}return X}var O=G.getChildContext();for(var L in O)if(!(L in U))throw Error((EJ(J)||"Unknown")+'.getChildContext(): key "'+L+'" is not defined in childContextTypes.');{var W=EJ(J)||"Unknown";n7(U,O,"child context",W)}return uJ({},X,O)}}function RY(J){{var Q=J.stateNode,X=Q&&Q.__reactInternalMemoizedMergedChildContext||D7;return aK=m8.current,SZ(m8,X,J),SZ(H8,H8.current,J),!0}}function B2(J,Q,X){{var G=J.stateNode;if(!G)throw Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");if(X){var U=F2(J,Q,aK);G.__reactInternalMemoizedMergedChildContext=U,VZ(H8,J),VZ(m8,J),SZ(m8,U,J),SZ(H8,X,J)}else VZ(H8,J),SZ(H8,X,J)}}function ij(J){{if(!_F(J)||J.tag!==j)throw 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 Q=J;do{switch(Q.tag){case _:return Q.stateNode.context;case j:{var X=Q.type;if(M8(X))return Q.stateNode.__reactInternalMemoizedMergedChildContext;break}}Q=Q.return}while(Q!==null);throw Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}}var _X=0,VY=1,c8=null,JU=!1,QU=!1;function A2(J){if(c8===null)c8=[J];else c8.push(J)}function nj(J){JU=!0,A2(J)}function I2(){if(JU)kX()}function kX(){if(!QU&&c8!==null){QU=!0;var J=0,Q=i7();try{var X=!0,G=c8;zZ(O7);for(;J<G.length;J++){var U=G[J];do U=U(X);while(U!==null)}c8=null,JU=!1}catch(q){if(c8!==null)c8=c8.slice(J+1);throw c$(d4,kX),q}finally{zZ(Q),QU=!1}}return null}var I1=[],j1=0,SY=null,TY=0,V7=[],S7=0,B9=null,p8=1,s8="";function rj(J){return I9(),(J.flags&y$)!==BJ}function oj(J){return I9(),TY}function tj(){var J=s8,Q=p8,X=Q&~aj(Q);return X.toString(32)+J}function A9(J,Q){I9(),I1[j1++]=TY,I1[j1++]=SY,SY=J,TY=Q}function j2(J,Q,X){I9(),V7[S7++]=p8,V7[S7++]=s8,V7[S7++]=B9,B9=J;var G=p8,U=s8,q=_Y(G)-1,O=G&~(1<<q),L=X+1,W=_Y(Q)+q;if(W>30){var H=q-q%5,M=(1<<H)-1,N=(O&M).toString(32),P=O>>H,S=q-H,T=_Y(Q)+S,E=L<<S,s=E|P,OJ=N+U;p8=1<<T|s,s8=OJ}else{var GJ=L<<q,bJ=GJ|O,fJ=U;p8=1<<W|bJ,s8=fJ}}function ZU(J){I9();var Q=J.return;if(Q!==null){var X=1,G=0;A9(J,X),j2(J,X,G)}}function _Y(J){return 32-r$(J)}function aj(J){return 1<<_Y(J)-1}function XU(J){while(J===SY)SY=I1[--j1],I1[j1]=null,TY=I1[--j1],I1[j1]=null;while(J===B9)B9=V7[--S7],V7[S7]=null,s8=V7[--S7],V7[S7]=null,p8=V7[--S7],V7[S7]=null}function ej(){if(I9(),B9!==null)return{id:p8,overflow:s8};else return null}function JP(J,Q){I9(),V7[S7++]=p8,V7[S7++]=s8,V7[S7++]=B9,p8=Q.id,s8=Q.overflow,B9=J}function I9(){if(!DZ())$("Expected to be hydrating. This is a bug in React. Please file an issue.")}var WZ=null,T7=null,r7=!1,j9=!1,EX=null;function QP(){if(r7)$("We should not be hydrating here. This is a bug in React. Please file a bug.")}function P2(){j9=!0}function ZP(){return j9}function XP(J){var Q=J.stateNode.containerInfo;return T7=jj(Q),WZ=J,r7=!0,EX=null,j9=!1,!0}function YP(J,Q,X){if(T7=Pj(Q),WZ=J,r7=!0,EX=null,j9=!1,X!==null)JP(J,X);return!0}function N2(J,Q){switch(J.tag){case _:{Cj(J.stateNode.containerInfo,Q);break}case k:{var X=(J.mode&dJ)!==MJ;hj(J.type,J.memoizedProps,J.stateNode,Q,X);break}case c:{var G=J.memoizedState;if(G.dehydrated!==null)xj(G.dehydrated,Q);break}}}function w2(J,Q){N2(J,Q);var X=LR();X.stateNode=Q,X.return=J;var G=J.deletions;if(G===null)J.deletions=[X],J.flags|=Y9;else G.push(X)}function YU(J,Q){{if(j9)return;switch(J.tag){case _:{var X=J.stateNode.containerInfo;switch(Q.tag){case k:var{type:G,pendingProps:U}=Q;yj(X,G);break;case a:var q=Q.pendingProps;bj(X,q);break}break}case k:{var{type:O,memoizedProps:L,stateNode:W}=J;switch(Q.tag){case k:{var{type:H,pendingProps:M}=Q,N=(J.mode&dJ)!==MJ;uj(O,L,W,H,M,N);break}case a:{var P=Q.pendingProps,S=(J.mode&dJ)!==MJ;gj(O,L,W,P,S);break}}break}case c:{var T=J.memoizedState,E=T.dehydrated;if(E!==null)switch(Q.tag){case k:var{type:s,pendingProps:OJ}=Q;fj(E,s);break;case a:var GJ=Q.pendingProps;vj(E,GJ);break}break}default:return}}}function R2(J,Q){Q.flags=Q.flags&~y8|dQ,YU(J,Q)}function V2(J,Q){switch(J.tag){case k:{var{type:X,pendingProps:G}=J,U=Hj(Q,X);if(U!==null)return J.stateNode=U,WZ=J,T7=Ij(U),!0;return!1}case a:{var q=J.pendingProps,O=Mj(Q,q);if(O!==null)return J.stateNode=O,WZ=J,T7=null,!0;return!1}case c:{var L=Fj(Q);if(L!==null){var W={dehydrated:L,treeContext:ej(),retryLane:z7};J.memoizedState=W;var H=WR(L);return H.return=J,J.child=H,WZ=J,T7=null,!0}return!1}default:return!1}}function GU(J){return(J.mode&dJ)!==MJ&&(J.flags&aJ)===BJ}function KU(J){throw Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function UU(J){if(!r7)return;var Q=T7;if(!Q){if(GU(J))YU(WZ,J),KU();R2(WZ,J),r7=!1,WZ=J;return}var X=Q;if(!V2(J,Q)){if(GU(J))YU(WZ,J),KU();Q=z0(X);var G=WZ;if(!Q||!V2(J,Q)){R2(WZ,J),r7=!1,WZ=J;return}w2(G,X)}}function GP(J,Q,X){var G=J.stateNode,U=!j9,q=Nj(G,J.type,J.memoizedProps,Q,X,J,U);if(J.updateQueue=q,q!==null)return!0;return!1}function KP(J){var{stateNode:Q,memoizedProps:X}=J,G=wj(Q,X,J);if(G){var U=WZ;if(U!==null)switch(U.tag){case _:{var q=U.stateNode.containerInfo,O=(U.mode&dJ)!==MJ;kj(q,Q,X,O);break}case k:{var{type:L,memoizedProps:W,stateNode:H}=U,M=(U.mode&dJ)!==MJ;Ej(L,W,H,Q,X,M);break}}}return G}function UP(J){var Q=J.memoizedState,X=Q!==null?Q.dehydrated:null;if(!X)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Rj(X,J)}function qP(J){var Q=J.memoizedState,X=Q!==null?Q.dehydrated:null;if(!X)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return Vj(X)}function S2(J){var Q=J.return;while(Q!==null&&Q.tag!==k&&Q.tag!==_&&Q.tag!==c)Q=Q.return;WZ=Q}function kY(J){if(J!==WZ)return!1;if(!r7)return S2(J),r7=!0,!1;if(J.tag!==_&&(J.tag!==k||_j(J.type)&&!cK(J.type,J.memoizedProps))){var Q=T7;if(Q)if(GU(J))T2(J),KU();else while(Q)w2(J,Q),Q=z0(Q)}if(S2(J),J.tag===c)T7=qP(J);else T7=WZ?z0(J.stateNode):null;return!0}function zP(){return r7&&T7!==null}function T2(J){var Q=T7;while(Q)N2(J,Q),Q=z0(Q)}function P1(){WZ=null,T7=null,r7=!1,j9=!1}function _2(){if(EX!==null)NL(EX),EX=null}function DZ(){return r7}function qU(J){if(EX===null)EX=[J];else EX.push(J)}var $P=Z.ReactCurrentBatchConfig,OP=null;function LP(){return $P.transition}var o7={recordUnsafeLifecycleWarnings:function(J,Q){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(J,Q){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var WP=function(J){var Q=null,X=J;while(X!==null){if(X.mode&CQ)Q=X;X=X.return}return Q},P9=function(J){var Q=[];return J.forEach(function(X){Q.push(X)}),Q.sort().join(", ")},W0=[],D0=[],H0=[],M0=[],F0=[],B0=[],N9=new Set;o7.recordUnsafeLifecycleWarnings=function(J,Q){if(N9.has(J.type))return;if(typeof Q.componentWillMount==="function"&&Q.componentWillMount.__suppressDeprecationWarning!==!0)W0.push(J);if(J.mode&CQ&&typeof Q.UNSAFE_componentWillMount==="function")D0.push(J);if(typeof Q.componentWillReceiveProps==="function"&&Q.componentWillReceiveProps.__suppressDeprecationWarning!==!0)H0.push(J);if(J.mode&CQ&&typeof Q.UNSAFE_componentWillReceiveProps==="function")M0.push(J);if(typeof Q.componentWillUpdate==="function"&&Q.componentWillUpdate.__suppressDeprecationWarning!==!0)F0.push(J);if(J.mode&CQ&&typeof Q.UNSAFE_componentWillUpdate==="function")B0.push(J)},o7.flushPendingUnsafeLifecycleWarnings=function(){var J=new Set;if(W0.length>0)W0.forEach(function(P){J.add(EJ(P)||"Component"),N9.add(P.type)}),W0=[];var Q=new Set;if(D0.length>0)D0.forEach(function(P){Q.add(EJ(P)||"Component"),N9.add(P.type)}),D0=[];var X=new Set;if(H0.length>0)H0.forEach(function(P){X.add(EJ(P)||"Component"),N9.add(P.type)}),H0=[];var G=new Set;if(M0.length>0)M0.forEach(function(P){G.add(EJ(P)||"Component"),N9.add(P.type)}),M0=[];var U=new Set;if(F0.length>0)F0.forEach(function(P){U.add(EJ(P)||"Component"),N9.add(P.type)}),F0=[];var q=new Set;if(B0.length>0)B0.forEach(function(P){q.add(EJ(P)||"Component"),N9.add(P.type)}),B0=[];if(Q.size>0){var O=P9(Q);$(`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.
33
+
34
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
35
+
36
+ Please update the following components: %s`,O)}if(G.size>0){var L=P9(G);$(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
37
+
38
+ * Move data fetching code or side effects to componentDidUpdate.
39
+ * 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
40
+
41
+ Please update the following components: %s`,L)}if(q.size>0){var W=P9(q);$(`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.
42
+
43
+ * Move data fetching code or side effects to componentDidUpdate.
44
+
45
+ Please update the following components: %s`,W)}if(J.size>0){var H=P9(J);z(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
46
+
47
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
48
+ * 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.
49
+
50
+ Please update the following components: %s`,H)}if(X.size>0){var M=P9(X);z(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
51
+
52
+ * Move data fetching code or side effects to componentDidUpdate.
53
+ * 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
54
+ * Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
55
+
56
+ Please update the following components: %s`,M)}if(U.size>0){var N=P9(U);z(`componentWillUpdate has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
57
+
58
+ * Move data fetching code or side effects to componentDidUpdate.
59
+ * 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.
60
+
61
+ Please update the following components: %s`,N)}};var EY=new Map,k2=new Set;o7.recordLegacyContextWarning=function(J,Q){var X=WP(J);if(X===null){$("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(k2.has(J.type))return;var G=EY.get(X);if(J.type.contextTypes!=null||J.type.childContextTypes!=null||Q!==null&&typeof Q.getChildContext==="function"){if(G===void 0)G=[],EY.set(X,G);G.push(J)}},o7.flushLegacyContextWarning=function(){EY.forEach(function(J,Q){if(J.length===0)return;var X=J[0],G=new Set;J.forEach(function(q){G.add(EJ(q)||"Component"),k2.add(q.type)});var U=P9(G);try{TQ(X),$(`Legacy context API has been detected within a strict-mode tree.
62
+
63
+ The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
64
+
65
+ Please update the following components: %s
66
+
67
+ Learn more about this warning here: https://reactjs.org/link/legacy-context`,U)}finally{GZ()}})},o7.discardPendingWarnings=function(){W0=[],D0=[],H0=[],M0=[],F0=[],B0=[],EY=new Map}}var zU,$U,OU,LU,WU,E2=function(J,Q){};zU=!1,$U=!1,OU={},LU={},WU={},E2=function(J,Q){if(J===null||typeof J!=="object")return;if(!J._store||J._store.validated||J.key!=null)return;if(typeof J._store!=="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");J._store.validated=!0;var X=EJ(Q)||"Component";if(LU[X])return;LU[X]=!0,$('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.')};function DP(J){return J.prototype&&J.prototype.isReactComponent}function A0(J,Q,X){var G=X.ref;if(G!==null&&typeof G!=="function"&&typeof G!=="object"){if((J.mode&CQ||uQ)&&!(X._owner&&X._self&&X._owner.stateNode!==X._self)&&!(X._owner&&X._owner.tag!==j)&&!(typeof X.type==="function"&&!DP(X.type))&&X._owner){var U=EJ(J)||"Component";if(!OU[U])$('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,G),OU[U]=!0}if(X._owner){var q=X._owner,O;if(q){var L=q;if(L.tag!==j)throw 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");O=L.stateNode}if(!O)throw Error("Missing owner for string ref "+G+". This error is likely caused by a bug in React. Please file an issue.");var W=O;XZ(G,"ref");var H=""+G;if(Q!==null&&Q.ref!==null&&typeof Q.ref==="function"&&Q.ref._stringRef===H)return Q.ref;var M=function(N){var P=W.refs;if(N===null)delete P[H];else P[H]=N};return M._stringRef=H,M}else{if(typeof G!=="string")throw Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null.");if(!X._owner)throw Error("Element ref was specified as a string ("+G+`) but no owner was set. This could happen for one of the following reasons:
68
+ 1. You may be adding a ref to a function component
69
+ 2. You may be adding a ref to a component that was not created inside a component's render method
70
+ 3. You have multiple copies of React loaded
71
+ See https://reactjs.org/link/refs-must-have-owner for more information.`)}}return G}function CY(J,Q){var X=Object.prototype.toString.call(Q);throw Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(Q).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.")}function xY(J){{var Q=EJ(J)||"Component";if(WU[Q])return;WU[Q]=!0,$("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 C2(J){var{_payload:Q,_init:X}=J;return X(Q)}function x2(J){function Q(w,x){if(!J)return;var R=w.deletions;if(R===null)w.deletions=[x],w.flags|=Y9;else R.push(x)}function X(w,x){if(!J)return null;var R=x;while(R!==null)Q(w,R),R=R.sibling;return null}function G(w,x){var R=new Map,u=x;while(u!==null){if(u.key!==null)R.set(u.key,u);else R.set(u.index,u);u=u.sibling}return R}function U(w,x){var R=C9(w,x);return R.index=0,R.sibling=null,R}function q(w,x,R){if(w.index=R,!J)return w.flags|=y$,x;var u=w.alternate;if(u!==null){var e=u.index;if(e<x)return w.flags|=dQ,x;else return e}else return w.flags|=dQ,x}function O(w){if(J&&w.alternate===null)w.flags|=dQ;return w}function L(w,x,R,u){if(x===null||x.tag!==a){var e=$z(R,w.mode,u);return e.return=w,e}else{var n=U(x,R);return n.return=w,n}}function W(w,x,R,u){var e=R.type;if(e===z8)return M(w,x,R.props.children,u,R.key);if(x!==null){if(x.elementType===e||uL(x,R)||typeof e==="object"&&e!==null&&e.$$typeof===oJ&&C2(e)===x.type){var n=U(x,R.props);return n.ref=A0(w,x,R),n.return=w,n._debugSource=R._source,n._debugOwner=R._owner,n}}var jJ=zz(R,w.mode,u);return jJ.ref=A0(w,x,R),jJ.return=w,jJ}function H(w,x,R,u){if(x===null||x.tag!==b||x.stateNode.containerInfo!==R.containerInfo||x.stateNode.implementation!==R.implementation){var e=Oz(R,w.mode,u);return e.return=w,e}else{var n=U(x,R.children||[]);return n.return=w,n}}function M(w,x,R,u,e){if(x===null||x.tag!==DJ){var n=mX(R,w.mode,u,e);return n.return=w,n}else{var jJ=U(x,R);return jJ.return=w,jJ}}function N(w,x,R){if(typeof x==="string"&&x!==""||typeof x==="number"){var u=$z(""+x,w.mode,R);return u.return=w,u}if(typeof x==="object"&&x!==null){switch(x.$$typeof){case d7:{var e=zz(x,w.mode,R);return e.ref=A0(w,null,x),e.return=w,e}case m7:{var n=Oz(x,w.mode,R);return n.return=w,n}case oJ:{var{_payload:jJ,_init:RJ}=x;return N(w,RJ(jJ),R)}}if(tJ(x)||p7(x)){var KQ=mX(x,w.mode,R,null);return KQ.return=w,KQ}CY(w,x)}if(typeof x==="function")xY(w);return null}function P(w,x,R,u){var e=x!==null?x.key:null;if(typeof R==="string"&&R!==""||typeof R==="number"){if(e!==null)return null;return L(w,x,""+R,u)}if(typeof R==="object"&&R!==null){switch(R.$$typeof){case d7:if(R.key===e)return W(w,x,R,u);else return null;case m7:if(R.key===e)return H(w,x,R,u);else return null;case oJ:{var{_payload:n,_init:jJ}=R;return P(w,x,jJ(n),u)}}if(tJ(R)||p7(R)){if(e!==null)return null;return M(w,x,R,u,null)}CY(w,R)}if(typeof R==="function")xY(w);return null}function S(w,x,R,u,e){if(typeof u==="string"&&u!==""||typeof u==="number"){var n=w.get(R)||null;return L(x,n,""+u,e)}if(typeof u==="object"&&u!==null){switch(u.$$typeof){case d7:{var jJ=w.get(u.key===null?R:u.key)||null;return W(x,jJ,u,e)}case m7:{var RJ=w.get(u.key===null?R:u.key)||null;return H(x,RJ,u,e)}case oJ:var{_payload:KQ,_init:iJ}=u;return S(w,x,R,iJ(KQ),e)}if(tJ(u)||p7(u)){var bQ=w.get(R)||null;return M(x,bQ,u,e,null)}CY(x,u)}if(typeof u==="function")xY(x);return null}function T(w,x,R){{if(typeof w!=="object"||w===null)return x;switch(w.$$typeof){case d7:case m7:E2(w,R);var u=w.key;if(typeof u!=="string")break;if(x===null){x=new Set,x.add(u);break}if(!x.has(u)){x.add(u);break}$("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.",u);break;case oJ:var{_payload:e,_init:n}=w;T(n(e),x,R);break}}return x}function E(w,x,R,u){{var e=null;for(var n=0;n<R.length;n++){var jJ=R[n];e=T(jJ,e,w)}}var RJ=null,KQ=null,iJ=x,bQ=0,nJ=0,xQ=null;for(;iJ!==null&&nJ<R.length;nJ++){if(iJ.index>nJ)xQ=iJ,iJ=null;else xQ=iJ.sibling;var _Z=P(w,iJ,R[nJ],u);if(_Z===null){if(iJ===null)iJ=xQ;break}if(J){if(iJ&&_Z.alternate===null)Q(w,iJ)}if(bQ=q(_Z,bQ,nJ),KQ===null)RJ=_Z;else KQ.sibling=_Z;KQ=_Z,iJ=xQ}if(nJ===R.length){if(X(w,iJ),DZ()){var jZ=nJ;A9(w,jZ)}return RJ}if(iJ===null){for(;nJ<R.length;nJ++){var M7=N(w,R[nJ],u);if(M7===null)continue;if(bQ=q(M7,bQ,nJ),KQ===null)RJ=M7;else KQ.sibling=M7;KQ=M7}if(DZ()){var bZ=nJ;A9(w,bZ)}return RJ}var fZ=G(w,iJ);for(;nJ<R.length;nJ++){var kZ=S(fZ,w,nJ,R[nJ],u);if(kZ!==null){if(J){if(kZ.alternate!==null)fZ.delete(kZ.key===null?nJ:kZ.key)}if(bQ=q(kZ,bQ,nJ),KQ===null)RJ=kZ;else KQ.sibling=kZ;KQ=kZ}}if(J)fZ.forEach(function(d1){return Q(w,d1)});if(DZ()){var a8=nJ;A9(w,a8)}return RJ}function s(w,x,R,u){var e=p7(R);if(typeof e!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");{if(typeof Symbol==="function"&&R[Symbol.toStringTag]==="Generator"){if(!$U)$("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.");$U=!0}if(R.entries===e){if(!zU)$("Using Maps as children is not supported. Use an array of keyed ReactElements instead.");zU=!0}var n=e.call(R);if(n){var jJ=null,RJ=n.next();for(;!RJ.done;RJ=n.next()){var KQ=RJ.value;jJ=T(KQ,jJ,w)}}}var iJ=e.call(R);if(iJ==null)throw Error("An iterable object provided no iterator.");var bQ=null,nJ=null,xQ=x,_Z=0,jZ=0,M7=null,bZ=iJ.next();for(;xQ!==null&&!bZ.done;jZ++,bZ=iJ.next()){if(xQ.index>jZ)M7=xQ,xQ=null;else M7=xQ.sibling;var fZ=P(w,xQ,bZ.value,u);if(fZ===null){if(xQ===null)xQ=M7;break}if(J){if(xQ&&fZ.alternate===null)Q(w,xQ)}if(_Z=q(fZ,_Z,jZ),nJ===null)bQ=fZ;else nJ.sibling=fZ;nJ=fZ,xQ=M7}if(bZ.done){if(X(w,xQ),DZ()){var kZ=jZ;A9(w,kZ)}return bQ}if(xQ===null){for(;!bZ.done;jZ++,bZ=iJ.next()){var a8=N(w,bZ.value,u);if(a8===null)continue;if(_Z=q(a8,_Z,jZ),nJ===null)bQ=a8;else nJ.sibling=a8;nJ=a8}if(DZ()){var d1=jZ;A9(w,d1)}return bQ}var t0=G(w,xQ);for(;!bZ.done;jZ++,bZ=iJ.next()){var w8=S(t0,w,jZ,bZ.value,u);if(w8!==null){if(J){if(w8.alternate!==null)t0.delete(w8.key===null?jZ:w8.key)}if(_Z=q(w8,_Z,jZ),nJ===null)bQ=w8;else nJ.sibling=w8;nJ=w8}}if(J)t0.forEach(function(pR){return Q(w,pR)});if(DZ()){var cR=jZ;A9(w,cR)}return bQ}function OJ(w,x,R,u){if(x!==null&&x.tag===a){X(w,x.sibling);var e=U(x,R);return e.return=w,e}X(w,x);var n=$z(R,w.mode,u);return n.return=w,n}function GJ(w,x,R,u){var e=R.key,n=x;while(n!==null){if(n.key===e){var jJ=R.type;if(jJ===z8){if(n.tag===DJ){X(w,n.sibling);var RJ=U(n,R.props.children);return RJ.return=w,RJ._debugSource=R._source,RJ._debugOwner=R._owner,RJ}}else if(n.elementType===jJ||uL(n,R)||typeof jJ==="object"&&jJ!==null&&jJ.$$typeof===oJ&&C2(jJ)===n.type){X(w,n.sibling);var KQ=U(n,R.props);return KQ.ref=A0(w,n,R),KQ.return=w,KQ._debugSource=R._source,KQ._debugOwner=R._owner,KQ}X(w,n);break}else Q(w,n);n=n.sibling}if(R.type===z8){var iJ=mX(R.props.children,w.mode,u,R.key);return iJ.return=w,iJ}else{var bQ=zz(R,w.mode,u);return bQ.ref=A0(w,x,R),bQ.return=w,bQ}}function bJ(w,x,R,u){var e=R.key,n=x;while(n!==null){if(n.key===e)if(n.tag===b&&n.stateNode.containerInfo===R.containerInfo&&n.stateNode.implementation===R.implementation){X(w,n.sibling);var jJ=U(n,R.children||[]);return jJ.return=w,jJ}else{X(w,n);break}else Q(w,n);n=n.sibling}var RJ=Oz(R,w.mode,u);return RJ.return=w,RJ}function fJ(w,x,R,u){var e=typeof R==="object"&&R!==null&&R.type===z8&&R.key===null;if(e)R=R.props.children;if(typeof R==="object"&&R!==null){switch(R.$$typeof){case d7:return O(GJ(w,x,R,u));case m7:return O(bJ(w,x,R,u));case oJ:var{_payload:n,_init:jJ}=R;return fJ(w,x,jJ(n),u)}if(tJ(R))return E(w,x,R,u);if(p7(R))return s(w,x,R,u);CY(w,R)}if(typeof R==="string"&&R!==""||typeof R==="number")return O(OJ(w,x,""+R,u));if(typeof R==="function")xY(w);return X(w,x)}return fJ}var N1=x2(!0),h2=x2(!1);function HP(J,Q){if(J!==null&&Q.child!==J.child)throw Error("Resuming work not yet implemented.");if(Q.child===null)return;var X=Q.child,G=C9(X,X.pendingProps);Q.child=G,G.return=Q;while(X.sibling!==null)X=X.sibling,G=G.sibling=C9(X,X.pendingProps),G.return=Q;G.sibling=null}function MP(J,Q){var X=J.child;while(X!==null)UR(X,Q),X=X.sibling}var DU=TX(null),HU;HU={};var hY=null,w1=null,MU=null,yY=!1;function bY(){hY=null,w1=null,MU=null,yY=!1}function y2(){yY=!0}function b2(){yY=!1}function f2(J,Q,X){{SZ(DU,Q._currentValue,J),Q._currentValue=X;{if(Q._currentRenderer!==void 0&&Q._currentRenderer!==null&&Q._currentRenderer!==HU)$("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported.");Q._currentRenderer=HU}}}function FU(J,Q){var X=DU.current;VZ(DU,Q),J._currentValue=X}function BU(J,Q,X){var G=J;while(G!==null){var U=G.alternate;if(!q1(G.childLanes,Q)){if(G.childLanes=xJ(G.childLanes,Q),U!==null)U.childLanes=xJ(U.childLanes,Q)}else if(U!==null&&!q1(U.childLanes,Q))U.childLanes=xJ(U.childLanes,Q);if(G===X)break;G=G.return}if(G!==X)$("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 FP(J,Q,X){BP(J,Q,X)}function BP(J,Q,X){var G=J.child;if(G!==null)G.return=J;while(G!==null){var U=void 0,q=G.dependencies;if(q!==null){U=G.child;var O=q.firstContext;while(O!==null){if(O.context===Q){if(G.tag===j){var L=f6(X),W=l8(HQ,L);W.tag=vY;var H=G.updateQueue;if(H===null);else{var M=H.shared,N=M.pending;if(N===null)W.next=W;else W.next=N.next,N.next=W;M.pending=W}}G.lanes=xJ(G.lanes,X);var P=G.alternate;if(P!==null)P.lanes=xJ(P.lanes,X);BU(G.return,X,J),q.lanes=xJ(q.lanes,X);break}O=O.next}}else if(G.tag===CJ)U=G.type===J.type?null:G.child;else if(G.tag===zJ){var S=G.return;if(S===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");S.lanes=xJ(S.lanes,X);var T=S.alternate;if(T!==null)T.lanes=xJ(T.lanes,X);BU(S,X,J),U=G.sibling}else U=G.child;if(U!==null)U.return=G;else{U=G;while(U!==null){if(U===J){U=null;break}var E=U.sibling;if(E!==null){E.return=U.return,U=E;break}U=U.return}}G=U}}function R1(J,Q){hY=J,w1=null,MU=null;var X=J.dependencies;if(X!==null){var G=X.firstContext;if(G!==null){if($7(X.lanes,Q))h0();X.firstContext=null}}}function mQ(J){if(yY)$("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 Q=J._currentValue;if(MU===J);else{var X={context:J,memoizedValue:Q,next:null};if(w1===null){if(hY===null)throw 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().");w1=X,hY.dependencies={lanes:f,firstContext:X}}else w1=w1.next=X}return Q}var w9=null;function AU(J){if(w9===null)w9=[J];else w9.push(J)}function AP(){if(w9!==null){for(var J=0;J<w9.length;J++){var Q=w9[J],X=Q.interleaved;if(X!==null){Q.interleaved=null;var G=X.next,U=Q.pending;if(U!==null){var q=U.next;U.next=G,X.next=q}Q.pending=X}}w9=null}}function v2(J,Q,X,G){var U=Q.interleaved;if(U===null)X.next=X,AU(Q);else X.next=U.next,U.next=X;return Q.interleaved=X,fY(J,G)}function IP(J,Q,X,G){var U=Q.interleaved;if(U===null)X.next=X,AU(Q);else X.next=U.next,U.next=X;Q.interleaved=X}function jP(J,Q,X,G){var U=Q.interleaved;if(U===null)X.next=X,AU(Q);else X.next=U.next,U.next=X;return Q.interleaved=X,fY(J,G)}function nZ(J,Q){return fY(J,Q)}var PP=fY;function fY(J,Q){J.lanes=xJ(J.lanes,Q);var X=J.alternate;if(X!==null)X.lanes=xJ(X.lanes,Q);if(X===null&&(J.flags&(dQ|y8))!==BJ)yL(J);var G=J,U=J.return;while(U!==null){if(U.childLanes=xJ(U.childLanes,Q),X=U.alternate,X!==null)X.childLanes=xJ(X.childLanes,Q);else if((U.flags&(dQ|y8))!==BJ)yL(J);G=U,U=U.return}if(G.tag===_){var q=G.stateNode;return q}else return null}var u2=0,g2=1,vY=2,IU=3,uY=!1,jU,gY;jU=!1,gY=null;function PU(J){var Q={baseState:J.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:f},effects:null};J.updateQueue=Q}function d2(J,Q){var X=Q.updateQueue,G=J.updateQueue;if(X===G){var U={baseState:G.baseState,firstBaseUpdate:G.firstBaseUpdate,lastBaseUpdate:G.lastBaseUpdate,shared:G.shared,effects:G.effects};Q.updateQueue=U}}function l8(J,Q){var X={eventTime:J,lane:Q,tag:u2,payload:null,callback:null,next:null};return X}function CX(J,Q,X){var G=J.updateQueue;if(G===null)return null;var U=G.shared;if(gY===U&&!jU)$("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."),jU=!0;if(ww()){var q=U.pending;if(q===null)Q.next=Q;else Q.next=q.next,q.next=Q;return U.pending=Q,PP(J,X)}else return jP(J,U,Q,X)}function dY(J,Q,X){var G=Q.updateQueue;if(G===null)return;var U=G.shared;if(e$(X)){var q=U.lanes;q=Q3(q,J.pendingLanes);var O=xJ(q,X);U.lanes=O,DK(J,O)}}function NU(J,Q){var{updateQueue:X,alternate:G}=J;if(G!==null){var U=G.updateQueue;if(X===U){var q=null,O=null,L=X.firstBaseUpdate;if(L!==null){var W=L;do{var H={eventTime:W.eventTime,lane:W.lane,tag:W.tag,payload:W.payload,callback:W.callback,next:null};if(O===null)q=O=H;else O.next=H,O=H;W=W.next}while(W!==null);if(O===null)q=O=Q;else O.next=Q,O=Q}else q=O=Q;X={baseState:U.baseState,firstBaseUpdate:q,lastBaseUpdate:O,shared:U.shared,effects:U.effects},J.updateQueue=X;return}}var M=X.lastBaseUpdate;if(M===null)X.firstBaseUpdate=Q;else M.next=Q;X.lastBaseUpdate=Q}function NP(J,Q,X,G,U,q){switch(X.tag){case g2:{var O=X.payload;if(typeof O==="function"){y2();var L=O.call(q,G,U);{if(J.mode&CQ){UZ(!0);try{O.call(q,G,U)}finally{UZ(!1)}}b2()}return L}return O}case IU:J.flags=J.flags&~CZ|aJ;case u2:{var W=X.payload,H;if(typeof W==="function"){y2(),H=W.call(q,G,U);{if(J.mode&CQ){UZ(!0);try{W.call(q,G,U)}finally{UZ(!1)}}b2()}}else H=W;if(H===null||H===void 0)return G;return uJ({},G,H)}case vY:return uY=!0,G}return G}function mY(J,Q,X,G){var U=J.updateQueue;uY=!1,gY=U.shared;var{firstBaseUpdate:q,lastBaseUpdate:O}=U,L=U.shared.pending;if(L!==null){U.shared.pending=null;var W=L,H=W.next;if(W.next=null,O===null)q=H;else O.next=H;O=W;var M=J.alternate;if(M!==null){var N=M.updateQueue,P=N.lastBaseUpdate;if(P!==O){if(P===null)N.firstBaseUpdate=H;else P.next=H;N.lastBaseUpdate=W}}}if(q!==null){var S=U.baseState,T=f,E=null,s=null,OJ=null,GJ=q;do{var{lane:bJ,eventTime:fJ}=GJ;if(!q1(G,bJ)){var w={eventTime:fJ,lane:bJ,tag:GJ.tag,payload:GJ.payload,callback:GJ.callback,next:null};if(OJ===null)s=OJ=w,E=S;else OJ=OJ.next=w;T=xJ(T,bJ)}else{if(OJ!==null){var x={eventTime:fJ,lane:qZ,tag:GJ.tag,payload:GJ.payload,callback:GJ.callback,next:null};OJ=OJ.next=x}S=NP(J,U,GJ,S,Q,X);var R=GJ.callback;if(R!==null&&GJ.lane!==qZ){J.flags|=yG;var u=U.effects;if(u===null)U.effects=[GJ];else u.push(GJ)}}if(GJ=GJ.next,GJ===null)if(L=U.shared.pending,L===null)break;else{var e=L,n=e.next;e.next=null,GJ=n,U.lastBaseUpdate=e,U.shared.pending=null}}while(!0);if(OJ===null)E=S;U.baseState=E,U.firstBaseUpdate=s,U.lastBaseUpdate=OJ;var jJ=U.shared.interleaved;if(jJ!==null){var RJ=jJ;do T=xJ(T,RJ.lane),RJ=RJ.next;while(RJ!==jJ)}else if(q===null)U.shared.lanes=f;l0(T),J.lanes=T,J.memoizedState=S}gY=null}function wP(J,Q){if(typeof J!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+J));J.call(Q)}function m2(){uY=!1}function cY(){return uY}function c2(J,Q,X){var G=Q.effects;if(Q.effects=null,G!==null)for(var U=0;U<G.length;U++){var q=G[U],O=q.callback;if(O!==null)q.callback=null,wP(O,X)}}var I0={},xX=TX(I0),j0=TX(I0),pY=TX(I0);function sY(J){if(J===I0)throw Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return J}function p2(){var J=sY(pY.current);return J}function wU(J,Q){SZ(pY,Q,J),SZ(j0,J,J),SZ(xX,I0,J);var X=dI(Q);VZ(xX,J),SZ(xX,X,J)}function V1(J){VZ(xX,J),VZ(j0,J),VZ(pY,J)}function RU(){var J=sY(xX.current);return J}function s2(J){var Q=sY(pY.current),X=sY(xX.current),G=mI(X,J.type);if(X===G)return;SZ(j0,J,J),SZ(xX,G,J)}function VU(J){if(j0.current!==J)return;VZ(xX,J),VZ(j0,J)}var RP=0,l2=1,i2=1,P0=2,t7=TX(RP);function SU(J,Q){return(J&Q)!==0}function S1(J){return J&l2}function TU(J,Q){return J&l2|Q}function VP(J,Q){return J|Q}function hX(J,Q){SZ(t7,Q,J)}function T1(J){VZ(t7,J)}function SP(J,Q){var X=J.memoizedState;if(X!==null){if(X.dehydrated!==null)return!0;return!1}var G=J.memoizedProps;return!0}function lY(J){var Q=J;while(Q!==null){if(Q.tag===c){var X=Q.memoizedState;if(X!==null){var G=X.dehydrated;if(G===null||z2(G)||iK(G))return Q}}else if(Q.tag===i&&Q.memoizedProps.revealOrder!==void 0){var U=(Q.flags&aJ)!==BJ;if(U)return Q}else if(Q.child!==null){Q.child.return=Q,Q=Q.child;continue}if(Q===J)return null;while(Q.sibling===null){if(Q.return===null||Q.return===J)return null;Q=Q.return}Q.sibling.return=Q.return,Q=Q.sibling}return null}var rZ=0,iQ=1,F8=2,nQ=4,HZ=8,_U=[];function kU(){for(var J=0;J<_U.length;J++){var Q=_U[J];Q._workInProgressVersionPrimary=null}_U.length=0}function TP(J,Q){var X=Q._getVersion,G=X(Q._source);if(J.mutableSourceEagerHydrationData==null)J.mutableSourceEagerHydrationData=[Q,G];else J.mutableSourceEagerHydrationData.push(Q,G)}var{ReactCurrentDispatcher:t,ReactCurrentBatchConfig:N0}=Z,EU,_1;EU=new Set;var R9=f,GQ=null,rQ=null,oQ=null,iY=!1,w0=!1,R0=0,_P=0,kP=25,h=null,_7=null,yX=-1,CU=!1;function QQ(){{var J=h;if(_7===null)_7=[J];else _7.push(J)}}function p(){{var J=h;if(_7!==null){if(yX++,_7[yX]!==J)EP(J)}}}function k1(J){if(J!==void 0&&J!==null&&!tJ(J))$("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",h,typeof J)}function EP(J){{var Q=EJ(GQ);if(!EU.has(Q)){if(EU.add(Q),_7!==null){var X="",G=30;for(var U=0;U<=yX;U++){var q=_7[U],O=U===yX?J:q,L=U+1+". "+q;while(L.length<G)L+=" ";L+=O+`
72
+ `,X+=L}$(`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
73
+
74
+ Previous render Next render
75
+ ------------------------------------------------------
76
+ %s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
77
+ `,Q,X)}}}}function TZ(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
78
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
79
+ 2. You might be breaking the Rules of Hooks
80
+ 3. You might have more than one copy of React in the same app
81
+ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function xU(J,Q){if(CU)return!1;if(Q===null)return $("%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.",h),!1;if(J.length!==Q.length)$(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
82
+
83
+ Previous: %s
84
+ Incoming: %s`,h,"["+Q.join(", ")+"]","["+J.join(", ")+"]");for(var X=0;X<Q.length&&X<J.length;X++){if(W7(J[X],Q[X]))continue;return!1}return!0}function E1(J,Q,X,G,U,q){if(R9=q,GQ=Q,_7=J!==null?J._debugHookTypes:null,yX=-1,CU=J!==null&&J.type!==Q.type,Q.memoizedState=null,Q.updateQueue=null,Q.lanes=f,J!==null&&J.memoizedState!==null)t.current=HO;else if(_7!==null)t.current=DO;else t.current=WO;var O=X(G,U);if(w0){var L=0;do{if(w0=!1,R0=0,L>=kP)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");L+=1,CU=!1,rQ=null,oQ=null,Q.updateQueue=null,yX=-1,t.current=MO,O=X(G,U)}while(w0)}t.current=q5,Q._debugHookTypes=_7;var W=rQ!==null&&rQ.next!==null;if(R9=f,GQ=null,rQ=null,oQ=null,h=null,_7=null,yX=-1,J!==null&&(J.flags&f8)!==(Q.flags&f8)&&(J.mode&dJ)!==MJ)$("Internal React error: Expected static flag was missing. Please notify the React team.");if(iY=!1,W)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return O}function C1(){var J=R0!==0;return R0=0,J}function n2(J,Q,X){if(Q.updateQueue=J.updateQueue,(Q.mode&W8)!==MJ)Q.flags&=~(g4|b8|s7|pJ);else Q.flags&=~(s7|pJ);J.lanes=i4(J.lanes,X)}function r2(){if(t.current=q5,iY){var J=GQ.memoizedState;while(J!==null){var Q=J.queue;if(Q!==null)Q.pending=null;J=J.next}iY=!1}R9=f,GQ=null,rQ=null,oQ=null,_7=null,yX=-1,h=null,qO=!1,w0=!1,R0=0}function B8(){var J={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};if(oQ===null)GQ.memoizedState=oQ=J;else oQ=oQ.next=J;return oQ}function k7(){var J;if(rQ===null){var Q=GQ.alternate;if(Q!==null)J=Q.memoizedState;else J=null}else J=rQ.next;var X;if(oQ===null)X=GQ.memoizedState;else X=oQ.next;if(X!==null)oQ=X,X=oQ.next,rQ=J;else{if(J===null)throw Error("Rendered more hooks than during the previous render.");rQ=J;var G={memoizedState:rQ.memoizedState,baseState:rQ.baseState,baseQueue:rQ.baseQueue,queue:rQ.queue,next:null};if(oQ===null)GQ.memoizedState=oQ=G;else oQ=oQ.next=G}return oQ}function o2(){return{lastEffect:null,stores:null}}function hU(J,Q){return typeof Q==="function"?Q(J):Q}function yU(J,Q,X){var G=B8(),U;if(X!==void 0)U=X(Q);else U=Q;G.memoizedState=G.baseState=U;var q={pending:null,interleaved:null,lanes:f,dispatch:null,lastRenderedReducer:J,lastRenderedState:U};G.queue=q;var O=q.dispatch=hP.bind(null,GQ,q);return[G.memoizedState,O]}function bU(J,Q,X){var G=k7(),U=G.queue;if(U===null)throw Error("Should have a queue. This is likely a bug in React. Please file an issue.");U.lastRenderedReducer=J;var q=rQ,O=q.baseQueue,L=U.pending;if(L!==null){if(O!==null){var W=O.next,H=L.next;O.next=H,L.next=W}if(q.baseQueue!==O)$("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React.");q.baseQueue=O=L,U.pending=null}if(O!==null){var M=O.next,N=q.baseState,P=null,S=null,T=null,E=M;do{var s=E.lane;if(!q1(R9,s)){var OJ={lane:s,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null};if(T===null)S=T=OJ,P=N;else T=T.next=OJ;GQ.lanes=xJ(GQ.lanes,s),l0(s)}else{if(T!==null){var GJ={lane:qZ,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null};T=T.next=GJ}if(E.hasEagerState)N=E.eagerState;else{var bJ=E.action;N=J(N,bJ)}}E=E.next}while(E!==null&&E!==M);if(T===null)P=N;else T.next=S;if(!W7(N,G.memoizedState))h0();G.memoizedState=N,G.baseState=P,G.baseQueue=T,U.lastRenderedState=N}var fJ=U.interleaved;if(fJ!==null){var w=fJ;do{var x=w.lane;GQ.lanes=xJ(GQ.lanes,x),l0(x),w=w.next}while(w!==fJ)}else if(O===null)U.lanes=f;var R=U.dispatch;return[G.memoizedState,R]}function fU(J,Q,X){var G=k7(),U=G.queue;if(U===null)throw Error("Should have a queue. This is likely a bug in React. Please file an issue.");U.lastRenderedReducer=J;var{dispatch:q,pending:O}=U,L=G.memoizedState;if(O!==null){U.pending=null;var W=O.next,H=W;do{var M=H.action;L=J(L,M),H=H.next}while(H!==W);if(!W7(L,G.memoizedState))h0();if(G.memoizedState=L,G.baseQueue===null)G.baseState=L;U.lastRenderedState=L}return[L,q]}function vU(J,Q,X){return}function nY(J,Q,X){return}function uU(J,Q,X){var G=GQ,U=B8(),q,O=DZ();if(O){if(X===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");if(q=X(),!_1){if(q!==X())$("The result of getServerSnapshot should be cached to avoid an infinite loop"),_1=!0}}else{if(q=Q(),!_1){var L=Q();if(!W7(q,L))$("The result of getSnapshot should be cached to avoid an infinite loop"),_1=!0}var W=S5();if(W===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");if(!l4(W,R9))t2(G,Q,q)}U.memoizedState=q;var H={value:q,getSnapshot:Q};return U.queue=H,eY(e2.bind(null,G,H,J),[J]),G.flags|=s7,V0(iQ|HZ,a2.bind(null,G,H,q,Q),void 0,null),q}function rY(J,Q,X){var G=GQ,U=k7(),q=Q();if(!_1){var O=Q();if(!W7(q,O))$("The result of getSnapshot should be cached to avoid an infinite loop"),_1=!0}var L=U.memoizedState,W=!W7(L,q);if(W)U.memoizedState=q,h0();var H=U.queue;if(T0(e2.bind(null,G,H,J),[J]),H.getSnapshot!==Q||W||oQ!==null&&oQ.memoizedState.tag&iQ){G.flags|=s7,V0(iQ|HZ,a2.bind(null,G,H,q,Q),void 0,null);var M=S5();if(M===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");if(!l4(M,R9))t2(G,Q,q)}return q}function t2(J,Q,X){J.flags|=u4;var G={getSnapshot:Q,value:X},U=GQ.updateQueue;if(U===null)U=o2(),GQ.updateQueue=U,U.stores=[G];else{var q=U.stores;if(q===null)U.stores=[G];else q.push(G)}}function a2(J,Q,X,G){if(Q.value=X,Q.getSnapshot=G,JO(Q))QO(J)}function e2(J,Q,X){var G=function(){if(JO(Q))QO(J)};return X(G)}function JO(J){var{getSnapshot:Q,value:X}=J;try{var G=Q();return!W7(X,G)}catch(U){return!0}}function QO(J){var Q=nZ(J,NJ);if(Q!==null)JZ(Q,J,NJ,HQ)}function oY(J){var Q=B8();if(typeof J==="function")J=J();Q.memoizedState=Q.baseState=J;var X={pending:null,interleaved:null,lanes:f,dispatch:null,lastRenderedReducer:hU,lastRenderedState:J};Q.queue=X;var G=X.dispatch=yP.bind(null,GQ,X);return[Q.memoizedState,G]}function gU(J){return bU(hU)}function dU(J){return fU(hU)}function V0(J,Q,X,G){var U={tag:J,create:Q,destroy:X,deps:G,next:null},q=GQ.updateQueue;if(q===null)q=o2(),GQ.updateQueue=q,q.lastEffect=U.next=U;else{var O=q.lastEffect;if(O===null)q.lastEffect=U.next=U;else{var L=O.next;O.next=U,U.next=L,q.lastEffect=U}}return U}function mU(J){var Q=B8();{var X={current:J};return Q.memoizedState=X,X}}function tY(J){var Q=k7();return Q.memoizedState}function S0(J,Q,X,G){var U=B8(),q=G===void 0?null:G;GQ.flags|=J,U.memoizedState=V0(iQ|Q,X,void 0,q)}function aY(J,Q,X,G){var U=k7(),q=G===void 0?null:G,O=void 0;if(rQ!==null){var L=rQ.memoizedState;if(O=L.destroy,q!==null){var W=L.deps;if(xU(q,W)){U.memoizedState=V0(Q,X,O,q);return}}}GQ.flags|=J,U.memoizedState=V0(iQ|Q,X,O,q)}function eY(J,Q){if((GQ.mode&W8)!==MJ)return S0(g4|s7|vG,HZ,J,Q);else return S0(s7|vG,HZ,J,Q)}function T0(J,Q){return aY(s7,HZ,J,Q)}function cU(J,Q){return S0(pJ,F8,J,Q)}function J5(J,Q){return aY(pJ,F8,J,Q)}function pU(J,Q){var X=pJ;if(X|=U9,(GQ.mode&W8)!==MJ)X|=b8;return S0(X,nQ,J,Q)}function Q5(J,Q){return aY(pJ,nQ,J,Q)}function ZO(J,Q){if(typeof Q==="function"){var X=Q,G=J();return X(G),function(){X(null)}}else if(Q!==null&&Q!==void 0){var U=Q;if(!U.hasOwnProperty("current"))$("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 q=J();return U.current=q,function(){U.current=null}}}function sU(J,Q,X){if(typeof Q!=="function")$("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",Q!==null?typeof Q:"null");var G=X!==null&&X!==void 0?X.concat([J]):null,U=pJ;if(U|=U9,(GQ.mode&W8)!==MJ)U|=b8;return S0(U,nQ,ZO.bind(null,Q,J),G)}function Z5(J,Q,X){if(typeof Q!=="function")$("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",Q!==null?typeof Q:"null");var G=X!==null&&X!==void 0?X.concat([J]):null;return aY(pJ,nQ,ZO.bind(null,Q,J),G)}function X5(J,Q){}var Y5=X5;function lU(J,Q){var X=B8(),G=Q===void 0?null:Q;return X.memoizedState=[J,G],J}function G5(J,Q){var X=k7(),G=Q===void 0?null:Q,U=X.memoizedState;if(U!==null){if(G!==null){var q=U[1];if(xU(G,q))return U[0]}}return X.memoizedState=[J,G],J}function iU(J,Q){var X=B8(),G=Q===void 0?null:Q,U=J();return X.memoizedState=[U,G],U}function K5(J,Q){var X=k7(),G=Q===void 0?null:Q,U=X.memoizedState;if(U!==null){if(G!==null){var q=U[1];if(xU(G,q))return U[0]}}var O=J();return X.memoizedState=[O,G],O}function nU(J){var Q=B8();return Q.memoizedState=J,J}function XO(J){var Q=k7(),X=rQ,G=X.memoizedState;return GO(Q,G,J)}function YO(J){var Q=k7();if(rQ===null)return Q.memoizedState=J,J;else{var X=rQ.memoizedState;return GO(Q,X,J)}}function GO(J,Q,X){var G=!FB(R9);if(G){if(!W7(X,Q)){var U=J3();GQ.lanes=xJ(GQ.lanes,U),l0(U),J.baseState=!0}return Q}else{if(J.baseState)J.baseState=!1,h0();return J.memoizedState=X,X}}function CP(J,Q,X){var G=i7();zZ(VB(G,u8)),J(!0);var U=N0.transition;N0.transition={};var q=N0.transition;N0.transition._updatedFibers=new Set;try{J(!1),Q()}finally{if(zZ(G),N0.transition=U,U===null&&q._updatedFibers){var O=q._updatedFibers.size;if(O>10)z("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.");q._updatedFibers.clear()}}}function rU(){var J=oY(!1),Q=J[0],X=J[1],G=CP.bind(null,X),U=B8();return U.memoizedState=G,[Q,G]}function KO(){var J=gU(),Q=J[0],X=k7(),G=X.memoizedState;return[Q,G]}function UO(){var J=dU(),Q=J[0],X=k7(),G=X.memoizedState;return[Q,G]}var qO=!1;function xP(){return qO}function oU(){var J=B8(),Q=S5(),X=Q.identifierPrefix,G;if(DZ()){var U=tj();G=":"+X+"R"+U;var q=R0++;if(q>0)G+="H"+q.toString(32);G+=":"}else{var O=_P++;G=":"+X+"r"+O.toString(32)+":"}return J.memoizedState=G,G}function U5(){var J=k7(),Q=J.memoizedState;return Q}function hP(J,Q,X){if(typeof arguments[3]==="function")$("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 G=gX(J),U={lane:G,action:X,hasEagerState:!1,eagerState:null,next:null};if(zO(J))$O(Q,U);else{var q=v2(J,Q,U,G);if(q!==null){var O=yZ();JZ(q,J,G,O),OO(q,Q,G)}}LO(J,G)}function yP(J,Q,X){if(typeof arguments[3]==="function")$("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 G=gX(J),U={lane:G,action:X,hasEagerState:!1,eagerState:null,next:null};if(zO(J))$O(Q,U);else{var q=J.alternate;if(J.lanes===f&&(q===null||q.lanes===f)){var O=Q.lastRenderedReducer;if(O!==null){var L;L=t.current,t.current=a7;try{var W=Q.lastRenderedState,H=O(W,X);if(U.hasEagerState=!0,U.eagerState=H,W7(H,W)){IP(J,Q,U,G);return}}catch(P){}finally{t.current=L}}}var M=v2(J,Q,U,G);if(M!==null){var N=yZ();JZ(M,J,G,N),OO(M,Q,G)}}LO(J,G)}function zO(J){var Q=J.alternate;return J===GQ||Q!==null&&Q===GQ}function $O(J,Q){w0=iY=!0;var X=J.pending;if(X===null)Q.next=Q;else Q.next=X.next,X.next=Q;J.pending=Q}function OO(J,Q,X){if(e$(X)){var G=Q.lanes;G=Q3(G,J.pendingLanes);var U=xJ(G,X);Q.lanes=U,DK(J,U)}}function LO(J,Q,X){cG(J,Q)}var q5={readContext:mQ,useCallback:TZ,useContext:TZ,useEffect:TZ,useImperativeHandle:TZ,useInsertionEffect:TZ,useLayoutEffect:TZ,useMemo:TZ,useReducer:TZ,useRef:TZ,useState:TZ,useDebugValue:TZ,useDeferredValue:TZ,useTransition:TZ,useMutableSource:TZ,useSyncExternalStore:TZ,useId:TZ,unstable_isNewReconciler:AJ},WO=null,DO=null,HO=null,MO=null,A8=null,a7=null,z5=null;{var tU=function(){$("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().")},wJ=function(){$("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")};WO={readContext:function(J){return mQ(J)},useCallback:function(J,Q){return h="useCallback",QQ(),k1(Q),lU(J,Q)},useContext:function(J){return h="useContext",QQ(),mQ(J)},useEffect:function(J,Q){return h="useEffect",QQ(),k1(Q),eY(J,Q)},useImperativeHandle:function(J,Q,X){return h="useImperativeHandle",QQ(),k1(X),sU(J,Q,X)},useInsertionEffect:function(J,Q){return h="useInsertionEffect",QQ(),k1(Q),cU(J,Q)},useLayoutEffect:function(J,Q){return h="useLayoutEffect",QQ(),k1(Q),pU(J,Q)},useMemo:function(J,Q){h="useMemo",QQ(),k1(Q);var X=t.current;t.current=A8;try{return iU(J,Q)}finally{t.current=X}},useReducer:function(J,Q,X){h="useReducer",QQ();var G=t.current;t.current=A8;try{return yU(J,Q,X)}finally{t.current=G}},useRef:function(J){return h="useRef",QQ(),mU(J)},useState:function(J){h="useState",QQ();var Q=t.current;t.current=A8;try{return oY(J)}finally{t.current=Q}},useDebugValue:function(J,Q){return h="useDebugValue",QQ(),X5()},useDeferredValue:function(J){return h="useDeferredValue",QQ(),nU(J)},useTransition:function(){return h="useTransition",QQ(),rU()},useMutableSource:function(J,Q,X){return h="useMutableSource",QQ(),vU()},useSyncExternalStore:function(J,Q,X){return h="useSyncExternalStore",QQ(),uU(J,Q,X)},useId:function(){return h="useId",QQ(),oU()},unstable_isNewReconciler:AJ},DO={readContext:function(J){return mQ(J)},useCallback:function(J,Q){return h="useCallback",p(),lU(J,Q)},useContext:function(J){return h="useContext",p(),mQ(J)},useEffect:function(J,Q){return h="useEffect",p(),eY(J,Q)},useImperativeHandle:function(J,Q,X){return h="useImperativeHandle",p(),sU(J,Q,X)},useInsertionEffect:function(J,Q){return h="useInsertionEffect",p(),cU(J,Q)},useLayoutEffect:function(J,Q){return h="useLayoutEffect",p(),pU(J,Q)},useMemo:function(J,Q){h="useMemo",p();var X=t.current;t.current=A8;try{return iU(J,Q)}finally{t.current=X}},useReducer:function(J,Q,X){h="useReducer",p();var G=t.current;t.current=A8;try{return yU(J,Q,X)}finally{t.current=G}},useRef:function(J){return h="useRef",p(),mU(J)},useState:function(J){h="useState",p();var Q=t.current;t.current=A8;try{return oY(J)}finally{t.current=Q}},useDebugValue:function(J,Q){return h="useDebugValue",p(),X5()},useDeferredValue:function(J){return h="useDeferredValue",p(),nU(J)},useTransition:function(){return h="useTransition",p(),rU()},useMutableSource:function(J,Q,X){return h="useMutableSource",p(),vU()},useSyncExternalStore:function(J,Q,X){return h="useSyncExternalStore",p(),uU(J,Q,X)},useId:function(){return h="useId",p(),oU()},unstable_isNewReconciler:AJ},HO={readContext:function(J){return mQ(J)},useCallback:function(J,Q){return h="useCallback",p(),G5(J,Q)},useContext:function(J){return h="useContext",p(),mQ(J)},useEffect:function(J,Q){return h="useEffect",p(),T0(J,Q)},useImperativeHandle:function(J,Q,X){return h="useImperativeHandle",p(),Z5(J,Q,X)},useInsertionEffect:function(J,Q){return h="useInsertionEffect",p(),J5(J,Q)},useLayoutEffect:function(J,Q){return h="useLayoutEffect",p(),Q5(J,Q)},useMemo:function(J,Q){h="useMemo",p();var X=t.current;t.current=a7;try{return K5(J,Q)}finally{t.current=X}},useReducer:function(J,Q,X){h="useReducer",p();var G=t.current;t.current=a7;try{return bU(J,Q,X)}finally{t.current=G}},useRef:function(J){return h="useRef",p(),tY()},useState:function(J){h="useState",p();var Q=t.current;t.current=a7;try{return gU(J)}finally{t.current=Q}},useDebugValue:function(J,Q){return h="useDebugValue",p(),Y5()},useDeferredValue:function(J){return h="useDeferredValue",p(),XO(J)},useTransition:function(){return h="useTransition",p(),KO()},useMutableSource:function(J,Q,X){return h="useMutableSource",p(),nY()},useSyncExternalStore:function(J,Q,X){return h="useSyncExternalStore",p(),rY(J,Q)},useId:function(){return h="useId",p(),U5()},unstable_isNewReconciler:AJ},MO={readContext:function(J){return mQ(J)},useCallback:function(J,Q){return h="useCallback",p(),G5(J,Q)},useContext:function(J){return h="useContext",p(),mQ(J)},useEffect:function(J,Q){return h="useEffect",p(),T0(J,Q)},useImperativeHandle:function(J,Q,X){return h="useImperativeHandle",p(),Z5(J,Q,X)},useInsertionEffect:function(J,Q){return h="useInsertionEffect",p(),J5(J,Q)},useLayoutEffect:function(J,Q){return h="useLayoutEffect",p(),Q5(J,Q)},useMemo:function(J,Q){h="useMemo",p();var X=t.current;t.current=z5;try{return K5(J,Q)}finally{t.current=X}},useReducer:function(J,Q,X){h="useReducer",p();var G=t.current;t.current=z5;try{return fU(J,Q,X)}finally{t.current=G}},useRef:function(J){return h="useRef",p(),tY()},useState:function(J){h="useState",p();var Q=t.current;t.current=z5;try{return dU(J)}finally{t.current=Q}},useDebugValue:function(J,Q){return h="useDebugValue",p(),Y5()},useDeferredValue:function(J){return h="useDeferredValue",p(),YO(J)},useTransition:function(){return h="useTransition",p(),UO()},useMutableSource:function(J,Q,X){return h="useMutableSource",p(),nY()},useSyncExternalStore:function(J,Q,X){return h="useSyncExternalStore",p(),rY(J,Q)},useId:function(){return h="useId",p(),U5()},unstable_isNewReconciler:AJ},A8={readContext:function(J){return tU(),mQ(J)},useCallback:function(J,Q){return h="useCallback",wJ(),QQ(),lU(J,Q)},useContext:function(J){return h="useContext",wJ(),QQ(),mQ(J)},useEffect:function(J,Q){return h="useEffect",wJ(),QQ(),eY(J,Q)},useImperativeHandle:function(J,Q,X){return h="useImperativeHandle",wJ(),QQ(),sU(J,Q,X)},useInsertionEffect:function(J,Q){return h="useInsertionEffect",wJ(),QQ(),cU(J,Q)},useLayoutEffect:function(J,Q){return h="useLayoutEffect",wJ(),QQ(),pU(J,Q)},useMemo:function(J,Q){h="useMemo",wJ(),QQ();var X=t.current;t.current=A8;try{return iU(J,Q)}finally{t.current=X}},useReducer:function(J,Q,X){h="useReducer",wJ(),QQ();var G=t.current;t.current=A8;try{return yU(J,Q,X)}finally{t.current=G}},useRef:function(J){return h="useRef",wJ(),QQ(),mU(J)},useState:function(J){h="useState",wJ(),QQ();var Q=t.current;t.current=A8;try{return oY(J)}finally{t.current=Q}},useDebugValue:function(J,Q){return h="useDebugValue",wJ(),QQ(),X5()},useDeferredValue:function(J){return h="useDeferredValue",wJ(),QQ(),nU(J)},useTransition:function(){return h="useTransition",wJ(),QQ(),rU()},useMutableSource:function(J,Q,X){return h="useMutableSource",wJ(),QQ(),vU()},useSyncExternalStore:function(J,Q,X){return h="useSyncExternalStore",wJ(),QQ(),uU(J,Q,X)},useId:function(){return h="useId",wJ(),QQ(),oU()},unstable_isNewReconciler:AJ},a7={readContext:function(J){return tU(),mQ(J)},useCallback:function(J,Q){return h="useCallback",wJ(),p(),G5(J,Q)},useContext:function(J){return h="useContext",wJ(),p(),mQ(J)},useEffect:function(J,Q){return h="useEffect",wJ(),p(),T0(J,Q)},useImperativeHandle:function(J,Q,X){return h="useImperativeHandle",wJ(),p(),Z5(J,Q,X)},useInsertionEffect:function(J,Q){return h="useInsertionEffect",wJ(),p(),J5(J,Q)},useLayoutEffect:function(J,Q){return h="useLayoutEffect",wJ(),p(),Q5(J,Q)},useMemo:function(J,Q){h="useMemo",wJ(),p();var X=t.current;t.current=a7;try{return K5(J,Q)}finally{t.current=X}},useReducer:function(J,Q,X){h="useReducer",wJ(),p();var G=t.current;t.current=a7;try{return bU(J,Q,X)}finally{t.current=G}},useRef:function(J){return h="useRef",wJ(),p(),tY()},useState:function(J){h="useState",wJ(),p();var Q=t.current;t.current=a7;try{return gU(J)}finally{t.current=Q}},useDebugValue:function(J,Q){return h="useDebugValue",wJ(),p(),Y5()},useDeferredValue:function(J){return h="useDeferredValue",wJ(),p(),XO(J)},useTransition:function(){return h="useTransition",wJ(),p(),KO()},useMutableSource:function(J,Q,X){return h="useMutableSource",wJ(),p(),nY()},useSyncExternalStore:function(J,Q,X){return h="useSyncExternalStore",wJ(),p(),rY(J,Q)},useId:function(){return h="useId",wJ(),p(),U5()},unstable_isNewReconciler:AJ},z5={readContext:function(J){return tU(),mQ(J)},useCallback:function(J,Q){return h="useCallback",wJ(),p(),G5(J,Q)},useContext:function(J){return h="useContext",wJ(),p(),mQ(J)},useEffect:function(J,Q){return h="useEffect",wJ(),p(),T0(J,Q)},useImperativeHandle:function(J,Q,X){return h="useImperativeHandle",wJ(),p(),Z5(J,Q,X)},useInsertionEffect:function(J,Q){return h="useInsertionEffect",wJ(),p(),J5(J,Q)},useLayoutEffect:function(J,Q){return h="useLayoutEffect",wJ(),p(),Q5(J,Q)},useMemo:function(J,Q){h="useMemo",wJ(),p();var X=t.current;t.current=a7;try{return K5(J,Q)}finally{t.current=X}},useReducer:function(J,Q,X){h="useReducer",wJ(),p();var G=t.current;t.current=a7;try{return fU(J,Q,X)}finally{t.current=G}},useRef:function(J){return h="useRef",wJ(),p(),tY()},useState:function(J){h="useState",wJ(),p();var Q=t.current;t.current=a7;try{return dU(J)}finally{t.current=Q}},useDebugValue:function(J,Q){return h="useDebugValue",wJ(),p(),Y5()},useDeferredValue:function(J){return h="useDeferredValue",wJ(),p(),YO(J)},useTransition:function(){return h="useTransition",wJ(),p(),UO()},useMutableSource:function(J,Q,X){return h="useMutableSource",wJ(),p(),nY()},useSyncExternalStore:function(J,Q,X){return h="useSyncExternalStore",wJ(),p(),rY(J,Q)},useId:function(){return h="useId",wJ(),p(),U5()},unstable_isNewReconciler:AJ}}var bX=qQ.unstable_now,FO=0,$5=-1,_0=-1,O5=-1,aU=!1,L5=!1;function BO(){return aU}function bP(){L5=!0}function fP(){aU=!1,L5=!1}function vP(){aU=L5,L5=!1}function AO(){return FO}function IO(){FO=bX()}function eU(J){if(_0=bX(),J.actualStartTime<0)J.actualStartTime=bX()}function jO(J){_0=-1}function W5(J,Q){if(_0>=0){var X=bX()-_0;if(J.actualDuration+=X,Q)J.selfBaseDuration=X;_0=-1}}function I8(J){if($5>=0){var Q=bX()-$5;$5=-1;var X=J.return;while(X!==null){switch(X.tag){case _:var G=X.stateNode;G.effectDuration+=Q;return;case KJ:var U=X.stateNode;U.effectDuration+=Q;return}X=X.return}}}function Jq(J){if(O5>=0){var Q=bX()-O5;O5=-1;var X=J.return;while(X!==null){switch(X.tag){case _:var G=X.stateNode;if(G!==null)G.passiveEffectDuration+=Q;return;case KJ:var U=X.stateNode;if(U!==null)U.passiveEffectDuration+=Q;return}X=X.return}}}function j8(){$5=bX()}function Qq(){O5=bX()}function Zq(J){var Q=J.child;while(Q)J.actualDuration+=Q.actualDuration,Q=Q.sibling}function e7(J,Q){if(J&&J.defaultProps){var X=uJ({},Q),G=J.defaultProps;for(var U in G)if(X[U]===void 0)X[U]=G[U];return X}return Q}var Xq={},Yq,Gq,Kq,Uq,qq,PO,D5,zq,$q,Oq,k0;{Yq=new Set,Gq=new Set,Kq=new Set,Uq=new Set,zq=new Set,qq=new Set,$q=new Set,Oq=new Set,k0=new Set;var NO=new Set;D5=function(J,Q){if(J===null||typeof J==="function")return;var X=Q+"_"+J;if(!NO.has(X))NO.add(X),$("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",Q,J)},PO=function(J,Q){if(Q===void 0){var X=sJ(J)||"Component";if(!qq.has(X))qq.add(X),$("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",X)}},Object.defineProperty(Xq,"_processChildContext",{enumerable:!1,value:function(){throw 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(Xq)}function Lq(J,Q,X,G){var U=J.memoizedState,q=X(G,U);{if(J.mode&CQ){UZ(!0);try{q=X(G,U)}finally{UZ(!1)}}PO(Q,q)}var O=q===null||q===void 0?U:uJ({},U,q);if(J.memoizedState=O,J.lanes===f){var L=J.updateQueue;L.baseState=O}}var Wq={isMounted:kF,enqueueSetState:function(J,Q,X){var G=Q1(J),U=yZ(),q=gX(G),O=l8(U,q);if(O.payload=Q,X!==void 0&&X!==null)D5(X,"setState"),O.callback=X;var L=CX(G,O,q);if(L!==null)JZ(L,G,q,U),dY(L,G,q);cG(G,q)},enqueueReplaceState:function(J,Q,X){var G=Q1(J),U=yZ(),q=gX(G),O=l8(U,q);if(O.tag=g2,O.payload=Q,X!==void 0&&X!==null)D5(X,"replaceState"),O.callback=X;var L=CX(G,O,q);if(L!==null)JZ(L,G,q,U),dY(L,G,q);cG(G,q)},enqueueForceUpdate:function(J,Q){var X=Q1(J),G=yZ(),U=gX(X),q=l8(G,U);if(q.tag=vY,Q!==void 0&&Q!==null)D5(Q,"forceUpdate"),q.callback=Q;var O=CX(X,q,U);if(O!==null)JZ(O,X,U,G),dY(O,X,U);UB(X,U)}};function wO(J,Q,X,G,U,q,O){var L=J.stateNode;if(typeof L.shouldComponentUpdate==="function"){var W=L.shouldComponentUpdate(G,q,O);{if(J.mode&CQ){UZ(!0);try{W=L.shouldComponentUpdate(G,q,O)}finally{UZ(!1)}}if(W===void 0)$("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",sJ(Q)||"Component")}return W}if(Q.prototype&&Q.prototype.isPureReactComponent)return!a6(X,G)||!a6(U,q);return!0}function uP(J,Q,X){var G=J.stateNode;{var U=sJ(Q)||"Component",q=G.render;if(!q)if(Q.prototype&&typeof Q.prototype.render==="function")$("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",U);else $("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",U);if(G.getInitialState&&!G.getInitialState.isReactClassApproved&&!G.state)$("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);if(G.getDefaultProps&&!G.getDefaultProps.isReactClassApproved)$("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);if(G.propTypes)$("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",U);if(G.contextType)$("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",U);{if(Q.childContextTypes&&!k0.has(Q)&&(J.mode&CQ)===MJ)k0.add(Q),$(`%s uses the legacy childContextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() instead
85
+
86
+ .Learn more about this warning here: https://reactjs.org/link/legacy-context`,U);if(Q.contextTypes&&!k0.has(Q)&&(J.mode&CQ)===MJ)k0.add(Q),$(`%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.
87
+
88
+ Learn more about this warning here: https://reactjs.org/link/legacy-context`,U);if(G.contextTypes)$("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",U);if(Q.contextType&&Q.contextTypes&&!$q.has(Q))$q.add(Q),$("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",U)}if(typeof G.componentShouldUpdate==="function")$("%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);if(Q.prototype&&Q.prototype.isPureReactComponent&&typeof G.shouldComponentUpdate<"u")$("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",sJ(Q)||"A pure component");if(typeof G.componentDidUnmount==="function")$("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",U);if(typeof G.componentDidReceiveProps==="function")$("%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);if(typeof G.componentWillRecieveProps==="function")$("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",U);if(typeof G.UNSAFE_componentWillRecieveProps==="function")$("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",U);var O=G.props!==X;if(G.props!==void 0&&O)$("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",U,U);if(G.defaultProps)$("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);if(typeof G.getSnapshotBeforeUpdate==="function"&&typeof G.componentDidUpdate!=="function"&&!Kq.has(Q))Kq.add(Q),$("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",sJ(Q));if(typeof G.getDerivedStateFromProps==="function")$("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",U);if(typeof G.getDerivedStateFromError==="function")$("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",U);if(typeof Q.getSnapshotBeforeUpdate==="function")$("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",U);var L=G.state;if(L&&(typeof L!=="object"||tJ(L)))$("%s.state: must be set to an object or null",U);if(typeof G.getChildContext==="function"&&typeof Q.childContextTypes!=="object")$("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",U)}}function RO(J,Q){Q.updater=Wq,J.stateNode=Q,RF(Q,J),Q._reactInternalInstance=Xq}function VO(J,Q,X){var G=!1,U=D7,q=D7,O=Q.contextType;if("contextType"in Q){var L=O===null||O!==void 0&&O.$$typeof===FJ&&O._context===void 0;if(!L&&!Oq.has(Q)){Oq.add(Q);var W="";if(O===void 0)W=" 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.";else if(typeof O!=="object")W=" However, it is set to a "+typeof O+".";else if(O.$$typeof===l)W=" Did you accidentally pass the Context.Provider instead?";else if(O._context!==void 0)W=" Did you accidentally pass the Context.Consumer instead?";else W=" However, it is set to an object with keys {"+Object.keys(O).join(", ")+"}.";$("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",sJ(Q)||"Component",W)}}if(typeof O==="object"&&O!==null)q=mQ(O);else{U=B1(J,Q,!0);var H=Q.contextTypes;G=H!==null&&H!==void 0,q=G?A1(J,U):D7}var M=new Q(X,q);if(J.mode&CQ){UZ(!0);try{M=new Q(X,q)}finally{UZ(!1)}}var N=J.memoizedState=M.state!==null&&M.state!==void 0?M.state:null;RO(J,M);{if(typeof Q.getDerivedStateFromProps==="function"&&N===null){var P=sJ(Q)||"Component";if(!Gq.has(P))Gq.add(P),$("`%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.",P,M.state===null?"null":"undefined",P)}if(typeof Q.getDerivedStateFromProps==="function"||typeof M.getSnapshotBeforeUpdate==="function"){var S=null,T=null,E=null;if(typeof M.componentWillMount==="function"&&M.componentWillMount.__suppressDeprecationWarning!==!0)S="componentWillMount";else if(typeof M.UNSAFE_componentWillMount==="function")S="UNSAFE_componentWillMount";if(typeof M.componentWillReceiveProps==="function"&&M.componentWillReceiveProps.__suppressDeprecationWarning!==!0)T="componentWillReceiveProps";else if(typeof M.UNSAFE_componentWillReceiveProps==="function")T="UNSAFE_componentWillReceiveProps";if(typeof M.componentWillUpdate==="function"&&M.componentWillUpdate.__suppressDeprecationWarning!==!0)E="componentWillUpdate";else if(typeof M.UNSAFE_componentWillUpdate==="function")E="UNSAFE_componentWillUpdate";if(S!==null||T!==null||E!==null){var s=sJ(Q)||"Component",OJ=typeof Q.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";if(!Uq.has(s))Uq.add(s),$(`Unsafe legacy lifecycles will not be called for components using new component APIs.
89
+
90
+ %s uses %s but also contains the following legacy lifecycles:%s%s%s
91
+
92
+ The above lifecycles should be removed. Learn more about this warning here:
93
+ https://reactjs.org/link/unsafe-component-lifecycles`,s,OJ,S!==null?`
94
+ `+S:"",T!==null?`
95
+ `+T:"",E!==null?`
96
+ `+E:"")}}}if(G)H2(J,U,q);return M}function gP(J,Q){var X=Q.state;if(typeof Q.componentWillMount==="function")Q.componentWillMount();if(typeof Q.UNSAFE_componentWillMount==="function")Q.UNSAFE_componentWillMount();if(X!==Q.state)$("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",EJ(J)||"Component"),Wq.enqueueReplaceState(Q,Q.state,null)}function SO(J,Q,X,G){var U=Q.state;if(typeof Q.componentWillReceiveProps==="function")Q.componentWillReceiveProps(X,G);if(typeof Q.UNSAFE_componentWillReceiveProps==="function")Q.UNSAFE_componentWillReceiveProps(X,G);if(Q.state!==U){{var q=EJ(J)||"Component";if(!Yq.has(q))Yq.add(q),$("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",q)}Wq.enqueueReplaceState(Q,Q.state,null)}}function Dq(J,Q,X,G){uP(J,Q,X);var U=J.stateNode;U.props=X,U.state=J.memoizedState,U.refs={},PU(J);var q=Q.contextType;if(typeof q==="object"&&q!==null)U.context=mQ(q);else{var O=B1(J,Q,!0);U.context=A1(J,O)}{if(U.state===X){var L=sJ(Q)||"Component";if(!zq.has(L))zq.add(L),$("%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.",L)}if(J.mode&CQ)o7.recordLegacyContextWarning(J,U);o7.recordUnsafeLifecycleWarnings(J,U)}U.state=J.memoizedState;var W=Q.getDerivedStateFromProps;if(typeof W==="function")Lq(J,Q,W,X),U.state=J.memoizedState;if(typeof Q.getDerivedStateFromProps!=="function"&&typeof U.getSnapshotBeforeUpdate!=="function"&&(typeof U.UNSAFE_componentWillMount==="function"||typeof U.componentWillMount==="function"))gP(J,U),mY(J,X,U,G),U.state=J.memoizedState;if(typeof U.componentDidMount==="function"){var H=pJ;if(H|=U9,(J.mode&W8)!==MJ)H|=b8;J.flags|=H}}function dP(J,Q,X,G){var{stateNode:U,memoizedProps:q}=J;U.props=q;var O=U.context,L=Q.contextType,W=D7;if(typeof L==="object"&&L!==null)W=mQ(L);else{var H=B1(J,Q,!0);W=A1(J,H)}var M=Q.getDerivedStateFromProps,N=typeof M==="function"||typeof U.getSnapshotBeforeUpdate==="function";if(!N&&(typeof U.UNSAFE_componentWillReceiveProps==="function"||typeof U.componentWillReceiveProps==="function")){if(q!==X||O!==W)SO(J,U,X,W)}m2();var P=J.memoizedState,S=U.state=P;if(mY(J,X,U,G),S=J.memoizedState,q===X&&P===S&&!NY()&&!cY()){if(typeof U.componentDidMount==="function"){var T=pJ;if(T|=U9,(J.mode&W8)!==MJ)T|=b8;J.flags|=T}return!1}if(typeof M==="function")Lq(J,Q,M,X),S=J.memoizedState;var E=cY()||wO(J,Q,q,X,P,S,W);if(E){if(!N&&(typeof U.UNSAFE_componentWillMount==="function"||typeof U.componentWillMount==="function")){if(typeof U.componentWillMount==="function")U.componentWillMount();if(typeof U.UNSAFE_componentWillMount==="function")U.UNSAFE_componentWillMount()}if(typeof U.componentDidMount==="function"){var s=pJ;if(s|=U9,(J.mode&W8)!==MJ)s|=b8;J.flags|=s}}else{if(typeof U.componentDidMount==="function"){var OJ=pJ;if(OJ|=U9,(J.mode&W8)!==MJ)OJ|=b8;J.flags|=OJ}J.memoizedProps=X,J.memoizedState=S}return U.props=X,U.state=S,U.context=W,E}function mP(J,Q,X,G,U){var q=Q.stateNode;d2(J,Q);var O=Q.memoizedProps,L=Q.type===Q.elementType?O:e7(Q.type,O);q.props=L;var W=Q.pendingProps,H=q.context,M=X.contextType,N=D7;if(typeof M==="object"&&M!==null)N=mQ(M);else{var P=B1(Q,X,!0);N=A1(Q,P)}var S=X.getDerivedStateFromProps,T=typeof S==="function"||typeof q.getSnapshotBeforeUpdate==="function";if(!T&&(typeof q.UNSAFE_componentWillReceiveProps==="function"||typeof q.componentWillReceiveProps==="function")){if(O!==W||H!==N)SO(Q,q,G,N)}m2();var E=Q.memoizedState,s=q.state=E;if(mY(Q,G,q,U),s=Q.memoizedState,O===W&&E===s&&!NY()&&!cY()&&!BQ){if(typeof q.componentDidUpdate==="function"){if(O!==J.memoizedProps||E!==J.memoizedState)Q.flags|=pJ}if(typeof q.getSnapshotBeforeUpdate==="function"){if(O!==J.memoizedProps||E!==J.memoizedState)Q.flags|=G9}return!1}if(typeof S==="function")Lq(Q,X,S,G),s=Q.memoizedState;var OJ=cY()||wO(Q,X,L,G,E,s,N)||BQ;if(OJ){if(!T&&(typeof q.UNSAFE_componentWillUpdate==="function"||typeof q.componentWillUpdate==="function")){if(typeof q.componentWillUpdate==="function")q.componentWillUpdate(G,s,N);if(typeof q.UNSAFE_componentWillUpdate==="function")q.UNSAFE_componentWillUpdate(G,s,N)}if(typeof q.componentDidUpdate==="function")Q.flags|=pJ;if(typeof q.getSnapshotBeforeUpdate==="function")Q.flags|=G9}else{if(typeof q.componentDidUpdate==="function"){if(O!==J.memoizedProps||E!==J.memoizedState)Q.flags|=pJ}if(typeof q.getSnapshotBeforeUpdate==="function"){if(O!==J.memoizedProps||E!==J.memoizedState)Q.flags|=G9}Q.memoizedProps=G,Q.memoizedState=s}return q.props=G,q.state=s,q.context=N,OJ}function V9(J,Q){return{value:J,source:Q,stack:B6(Q),digest:null}}function Hq(J,Q,X){return{value:J,source:null,stack:X!=null?X:null,digest:Q!=null?Q:null}}function cP(J,Q){return!0}function Mq(J,Q){try{var X=cP(J,Q);if(X===!1)return;var{value:G,source:U,stack:q}=Q,O=q!==null?q:"";if(G!=null&&G._suppressLogging){if(J.tag===j)return;console.error(G)}var L=U?EJ(U):null,W=L?"The above error occurred in the <"+L+"> component:":"The above error occurred in one of your React components:",H;if(J.tag===_)H=`Consider adding an error boundary to your tree to customize error handling behavior.
97
+ Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.`;else{var M=EJ(J)||"Anonymous";H="React will try to recreate this component tree from scratch "+("using the error boundary you provided, "+M+".")}var N=W+`
98
+ `+O+`
99
+
100
+ `+(""+H);console.error(N)}catch(P){setTimeout(function(){throw P})}}var pP=typeof WeakMap==="function"?WeakMap:Map;function TO(J,Q,X){var G=l8(HQ,X);G.tag=IU,G.payload={element:null};var U=Q.value;return G.callback=function(){dw(U),Mq(J,Q)},G}function Fq(J,Q,X){var G=l8(HQ,X);G.tag=IU;var U=J.type.getDerivedStateFromError;if(typeof U==="function"){var q=Q.value;G.payload=function(){return U(q)},G.callback=function(){gL(J),Mq(J,Q)}}var O=J.stateNode;if(O!==null&&typeof O.componentDidCatch==="function")G.callback=function(){if(gL(J),Mq(J,Q),typeof U!=="function")uw(this);var{value:W,stack:H}=Q;if(this.componentDidCatch(W,{componentStack:H!==null?H:""}),typeof U!=="function"){if(!$7(J.lanes,NJ))$("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",EJ(J)||"Unknown")}};return G}function _O(J,Q,X){var G=J.pingCache,U;if(G===null)G=J.pingCache=new pP,U=new Set,G.set(Q,U);else if(U=G.get(Q),U===void 0)U=new Set,G.set(Q,U);if(!U.has(X)){U.add(X);var q=mw.bind(null,J,Q,X);if(l7)i0(J,X);Q.then(q,q)}}function sP(J,Q,X,G){var U=J.updateQueue;if(U===null){var q=new Set;q.add(X),J.updateQueue=q}else U.add(X)}function lP(J,Q){var X=J.tag;if((J.mode&dJ)===MJ&&(X===B||X===g||X===d)){var G=J.alternate;if(G)J.updateQueue=G.updateQueue,J.memoizedState=G.memoizedState,J.lanes=G.lanes;else J.updateQueue=null,J.memoizedState=null}}function kO(J){var Q=J;do{if(Q.tag===c&&SP(Q))return Q;Q=Q.return}while(Q!==null);return null}function EO(J,Q,X,G,U){if((J.mode&dJ)===MJ){if(J===Q)J.flags|=CZ;else{if(J.flags|=aJ,X.flags|=bG,X.flags&=~(VF|_6),X.tag===j){var q=X.alternate;if(q===null)X.tag=SJ;else{var O=l8(HQ,NJ);O.tag=vY,CX(X,O,NJ)}}X.lanes=xJ(X.lanes,NJ)}return J}return J.flags|=CZ,J.lanes=U,J}function iP(J,Q,X,G,U){if(X.flags|=_6,l7)i0(J,U);if(G!==null&&typeof G==="object"&&typeof G.then==="function"){var q=G;if(lP(X),DZ()&&X.mode&dJ)P2();var O=kO(Q);if(O!==null){if(O.flags&=~h8,EO(O,Q,X,J,U),O.mode&dJ)_O(J,q,U);sP(O,J,q);return}else{if(!MB(U)){_O(J,q,U),tq();return}var L=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.");G=L}}else if(DZ()&&X.mode&dJ){P2();var W=kO(Q);if(W!==null){if((W.flags&CZ)===BJ)W.flags|=h8;EO(W,Q,X,J,U),qU(V9(G,X));return}}G=V9(G,X),Ew(G);var H=Q;do{switch(H.tag){case _:{var M=G;H.flags|=CZ;var N=f6(U);H.lanes=xJ(H.lanes,N);var P=TO(H,M,N);NU(H,P);return}case j:var S=G,T=H.type,E=H.stateNode;if((H.flags&aJ)===BJ&&(typeof T.getDerivedStateFromError==="function"||E!==null&&typeof E.componentDidCatch==="function"&&!EL(E))){H.flags|=CZ;var s=f6(U);H.lanes=xJ(H.lanes,s);var OJ=Fq(H,S,s);NU(H,OJ);return}break}H=H.return}while(H!==null)}function nP(){return null}var E0=Z.ReactCurrentOwner,J8=!1,Bq,C0,Aq,Iq,jq,S9,Pq,H5,x0;Bq={},C0={},Aq={},Iq={},jq={},S9=!1,Pq={},H5={},x0={};function xZ(J,Q,X,G){if(J===null)Q.child=h2(Q,null,X,G);else Q.child=N1(Q,J.child,X,G)}function rP(J,Q,X,G){Q.child=N1(Q,J.child,null,G),Q.child=N1(Q,null,X,G)}function CO(J,Q,X,G,U){if(Q.type!==Q.elementType){var q=X.propTypes;if(q)n7(q,G,"prop",sJ(X))}var O=X.render,L=Q.ref,W,H;R1(Q,U),E6(Q);{if(E0.current=Q,q7(!0),W=E1(J,Q,O,G,L,U),H=C1(),Q.mode&CQ){UZ(!0);try{W=E1(J,Q,O,G,L,U),H=C1()}finally{UZ(!1)}}q7(!1)}if(Y1(),J!==null&&!J8)return n2(J,Q,U),i8(J,Q,U);if(DZ()&&H)ZU(Q);return Q.flags|=Z1,xZ(J,Q,W,U),Q.child}function xO(J,Q,X,G,U){if(J===null){var q=X.type;if(GR(q)&&X.compare===null&&X.defaultProps===void 0){var O=q;return O=g1(q),Q.tag=d,Q.type=O,Rq(Q,q),hO(J,Q,O,G,U)}{var L=q.propTypes;if(L)n7(L,G,"prop",sJ(q));if(X.defaultProps!==void 0){var W=sJ(q)||"Unknown";if(!x0[W])$("%s: Support for defaultProps will be removed from memo components in a future major release. Use JavaScript default parameters instead.",W),x0[W]=!0}}var H=qz(X.type,null,G,Q,Q.mode,U);return H.ref=Q.ref,H.return=Q,Q.child=H,H}{var M=X.type,N=M.propTypes;if(N)n7(N,G,"prop",sJ(M))}var P=J.child,S=Eq(J,U);if(!S){var T=P.memoizedProps,E=X.compare;if(E=E!==null?E:a6,E(T,G)&&J.ref===Q.ref)return i8(J,Q,U)}Q.flags|=Z1;var s=C9(P,G);return s.ref=Q.ref,s.return=Q,Q.child=s,s}function hO(J,Q,X,G,U){if(Q.type!==Q.elementType){var q=Q.elementType;if(q.$$typeof===oJ){var O=q,L=O._payload,W=O._init;try{q=W(L)}catch(N){q=null}var H=q&&q.propTypes;if(H)n7(H,G,"prop",sJ(q))}}if(J!==null){var M=J.memoizedProps;if(a6(M,G)&&J.ref===Q.ref&&Q.type===J.type){if(J8=!1,Q.pendingProps=G=M,!Eq(J,U))return Q.lanes=J.lanes,i8(J,Q,U);else if((J.flags&bG)!==BJ)J8=!0}}return Nq(J,Q,X,G,U)}function yO(J,Q,X){var G=Q.pendingProps,U=G.children,q=J!==null?J.memoizedState:null;if(G.mode==="hidden"||vQ)if((Q.mode&dJ)===MJ){var O={baseLanes:f,cachePool:null,transitions:null};Q.memoizedState=O,T5(Q,X)}else if(!$7(X,z7)){var L=null,W;if(q!==null){var H=q.baseLanes;W=xJ(H,X)}else W=X;Q.lanes=Q.childLanes=n4(z7);var M={baseLanes:W,cachePool:L,transitions:null};return Q.memoizedState=M,Q.updateQueue=null,T5(Q,W),null}else{var N={baseLanes:f,cachePool:null,transitions:null};Q.memoizedState=N;var P=q!==null?q.baseLanes:X;T5(Q,P)}else{var S;if(q!==null)S=xJ(q.baseLanes,X),Q.memoizedState=null;else S=X;T5(Q,S)}return xZ(J,Q,U,X),Q.child}function oP(J,Q,X){var G=Q.pendingProps;return xZ(J,Q,G,X),Q.child}function tP(J,Q,X){var G=Q.pendingProps.children;return xZ(J,Q,G,X),Q.child}function aP(J,Q,X){{Q.flags|=pJ;{var G=Q.stateNode;G.effectDuration=0,G.passiveEffectDuration=0}}var U=Q.pendingProps,q=U.children;return xZ(J,Q,q,X),Q.child}function bO(J,Q){var X=Q.ref;if(J===null&&X!==null||J!==null&&J.ref!==X)Q.flags|=IX,Q.flags|=fG}function Nq(J,Q,X,G,U){if(Q.type!==Q.elementType){var q=X.propTypes;if(q)n7(q,G,"prop",sJ(X))}var O;{var L=B1(Q,X,!0);O=A1(Q,L)}var W,H;R1(Q,U),E6(Q);{if(E0.current=Q,q7(!0),W=E1(J,Q,X,G,O,U),H=C1(),Q.mode&CQ){UZ(!0);try{W=E1(J,Q,X,G,O,U),H=C1()}finally{UZ(!1)}}q7(!1)}if(Y1(),J!==null&&!J8)return n2(J,Q,U),i8(J,Q,U);if(DZ()&&H)ZU(Q);return Q.flags|=Z1,xZ(J,Q,W,U),Q.child}function fO(J,Q,X,G,U){{switch(IR(Q)){case!1:{var{stateNode:q,type:O}=Q,L=new O(Q.memoizedProps,q.context),W=L.state;q.updater.enqueueSetState(q,W,null);break}case!0:{Q.flags|=aJ,Q.flags|=CZ;var H=Error("Simulated error coming from DevTools"),M=f6(U);Q.lanes=xJ(Q.lanes,M);var N=Fq(Q,V9(H,Q),M);NU(Q,N);break}}if(Q.type!==Q.elementType){var P=X.propTypes;if(P)n7(P,G,"prop",sJ(X))}}var S;if(M8(X))S=!0,RY(Q);else S=!1;R1(Q,U);var T=Q.stateNode,E;if(T===null)F5(J,Q),VO(Q,X,G),Dq(Q,X,G,U),E=!0;else if(J===null)E=dP(Q,X,G,U);else E=mP(J,Q,X,G,U);var s=wq(J,Q,X,E,S,U);{var OJ=Q.stateNode;if(E&&OJ.props!==G){if(!S9)$("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",EJ(Q)||"a component");S9=!0}}return s}function wq(J,Q,X,G,U,q){bO(J,Q);var O=(Q.flags&aJ)!==BJ;if(!G&&!O){if(U)B2(Q,X,!1);return i8(J,Q,q)}var L=Q.stateNode;E0.current=Q;var W;if(O&&typeof X.getDerivedStateFromError!=="function")W=null,jO();else{E6(Q);{if(q7(!0),W=L.render(),Q.mode&CQ){UZ(!0);try{L.render()}finally{UZ(!1)}}q7(!1)}Y1()}if(Q.flags|=Z1,J!==null&&O)rP(J,Q,W,q);else xZ(J,Q,W,q);if(Q.memoizedState=L.state,U)B2(Q,X,!0);return Q.child}function vO(J){var Q=J.stateNode;if(Q.pendingContext)M2(J,Q.pendingContext,Q.pendingContext!==Q.context);else if(Q.context)M2(J,Q.context,!1);wU(J,Q.containerInfo)}function eP(J,Q,X){if(vO(Q),J===null)throw Error("Should have a current fiber. This is a bug in React.");var{pendingProps:G,memoizedState:U}=Q,q=U.element;d2(J,Q),mY(Q,G,null,X);var{memoizedState:O,stateNode:L}=Q,W=O.element;if(U.isDehydrated){var H={element:W,isDehydrated:!1,cache:O.cache,pendingSuspenseBoundaries:O.pendingSuspenseBoundaries,transitions:O.transitions},M=Q.updateQueue;if(M.baseState=H,Q.memoizedState=H,Q.flags&h8){var N=V9(Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."),Q);return uO(J,Q,W,X,N)}else if(W!==q){var P=V9(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),Q);return uO(J,Q,W,X,P)}else{XP(Q);var S=h2(Q,null,W,X);Q.child=S;var T=S;while(T)T.flags=T.flags&~dQ|y8,T=T.sibling}}else{if(P1(),W===q)return i8(J,Q,X);xZ(J,Q,W,X)}return Q.child}function uO(J,Q,X,G,U){return P1(),qU(U),Q.flags|=h8,xZ(J,Q,X,G),Q.child}function JN(J,Q,X){if(s2(Q),J===null)UU(Q);var{type:G,pendingProps:U}=Q,q=J!==null?J.memoizedProps:null,O=U.children,L=cK(G,U);if(L)O=null;else if(q!==null&&cK(G,q))Q.flags|=T6;return bO(J,Q),xZ(J,Q,O,X),Q.child}function QN(J,Q){if(J===null)UU(Q);return null}function ZN(J,Q,X,G){F5(J,Q);var U=Q.pendingProps,q=X,O=q._payload,L=q._init,W=L(O);Q.type=W;var H=Q.tag=KR(W),M=e7(W,U),N;switch(H){case B:return Rq(Q,W),Q.type=W=g1(W),N=Nq(null,Q,W,M,G),N;case j:return Q.type=W=Zz(W),N=fO(null,Q,W,M,G),N;case g:return Q.type=W=Xz(W),N=CO(null,Q,W,M,G),N;case qJ:{if(Q.type!==Q.elementType){var P=W.propTypes;if(P)n7(P,M,"prop",sJ(W))}return N=xO(null,Q,W,e7(W.type,M),G),N}}var S="";if(W!==null&&typeof W==="object"&&W.$$typeof===oJ)S=" Did you wrap a component in React.lazy() more than once?";throw Error("Element type is invalid. Received a promise that resolves to: "+W+". "+("Lazy element type must resolve to a class or function."+S))}function XN(J,Q,X,G,U){F5(J,Q),Q.tag=j;var q;if(M8(X))q=!0,RY(Q);else q=!1;return R1(Q,U),VO(Q,X,G),Dq(Q,X,G,U),wq(null,Q,X,!0,q,U)}function YN(J,Q,X,G){F5(J,Q);var U=Q.pendingProps,q;{var O=B1(Q,X,!1);q=A1(Q,O)}R1(Q,G);var L,W;E6(Q);{if(X.prototype&&typeof X.prototype.render==="function"){var H=sJ(X)||"Unknown";if(!Bq[H])$("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.",H,H),Bq[H]=!0}if(Q.mode&CQ)o7.recordLegacyContextWarning(Q,null);q7(!0),E0.current=Q,L=E1(null,Q,X,U,q,G),W=C1(),q7(!1)}if(Y1(),Q.flags|=Z1,typeof L==="object"&&L!==null&&typeof L.render==="function"&&L.$$typeof===void 0){var M=sJ(X)||"Unknown";if(!C0[M])$("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.",M,M,M),C0[M]=!0}if(typeof L==="object"&&L!==null&&typeof L.render==="function"&&L.$$typeof===void 0){{var N=sJ(X)||"Unknown";if(!C0[N])$("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.",N,N,N),C0[N]=!0}Q.tag=j,Q.memoizedState=null,Q.updateQueue=null;var P=!1;if(M8(X))P=!0,RY(Q);else P=!1;return Q.memoizedState=L.state!==null&&L.state!==void 0?L.state:null,PU(Q),RO(Q,L),Dq(Q,X,U,G),wq(null,Q,X,!0,P,G)}else{if(Q.tag=B,Q.mode&CQ){UZ(!0);try{L=E1(null,Q,X,U,q,G),W=C1()}finally{UZ(!1)}}if(DZ()&&W)ZU(Q);return xZ(null,Q,L,G),Rq(Q,X),Q.child}}function Rq(J,Q){{if(Q){if(Q.childContextTypes)$("%s(...): childContextTypes cannot be defined on a function component.",Q.displayName||Q.name||"Component")}if(J.ref!==null){var X="",G=FX();if(G)X+=`
101
+
102
+ Check the render method of \``+G+"`.";var U=G||"",q=J._debugSource;if(q)U=q.fileName+":"+q.lineNumber;if(!jq[U])jq[U]=!0,$("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",X)}if(Q.defaultProps!==void 0){var O=sJ(Q)||"Unknown";if(!x0[O])$("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",O),x0[O]=!0}if(typeof Q.getDerivedStateFromProps==="function"){var L=sJ(Q)||"Unknown";if(!Iq[L])$("%s: Function components do not support getDerivedStateFromProps.",L),Iq[L]=!0}if(typeof Q.contextType==="object"&&Q.contextType!==null){var W=sJ(Q)||"Unknown";if(!Aq[W])$("%s: Function components do not support contextType.",W),Aq[W]=!0}}}var Vq={dehydrated:null,treeContext:null,retryLane:qZ};function Sq(J){return{baseLanes:J,cachePool:nP(),transitions:null}}function GN(J,Q){var X=null;return{baseLanes:xJ(J.baseLanes,Q),cachePool:X,transitions:J.transitions}}function KN(J,Q,X,G){if(Q!==null){var U=Q.memoizedState;if(U===null)return!1}return SU(J,P0)}function UN(J,Q){return i4(J.childLanes,Q)}function gO(J,Q,X){var G=Q.pendingProps;if(jR(Q))Q.flags|=aJ;var U=t7.current,q=!1,O=(Q.flags&aJ)!==BJ;if(O||KN(U,J))q=!0,Q.flags&=~aJ;else if(J===null||J.memoizedState!==null)U=VP(U,i2);if(U=S1(U),hX(Q,U),J===null){UU(Q);var L=Q.memoizedState;if(L!==null){var W=L.dehydrated;if(W!==null)return LN(Q,W)}var{children:H,fallback:M}=G;if(q){var N=qN(Q,H,M,X),P=Q.child;return P.memoizedState=Sq(X),Q.memoizedState=Vq,N}else return Tq(Q,H)}else{var S=J.memoizedState;if(S!==null){var T=S.dehydrated;if(T!==null)return WN(J,Q,O,G,T,S,X)}if(q){var{fallback:E,children:s}=G,OJ=$N(J,Q,s,E,X),GJ=Q.child,bJ=J.child.memoizedState;return GJ.memoizedState=bJ===null?Sq(X):GN(bJ,X),GJ.childLanes=UN(J,X),Q.memoizedState=Vq,OJ}else{var fJ=G.children,w=zN(J,Q,fJ,X);return Q.memoizedState=null,w}}}function Tq(J,Q,X){var G=J.mode,U={mode:"visible",children:Q},q=_q(U,G);return q.return=J,J.child=q,q}function qN(J,Q,X,G){var{mode:U,child:q}=J,O={mode:"hidden",children:Q},L,W;if((U&dJ)===MJ&&q!==null){if(L=q,L.childLanes=f,L.pendingProps=O,J.mode&YQ)L.actualDuration=0,L.actualStartTime=-1,L.selfBaseDuration=0,L.treeBaseDuration=0;W=mX(X,U,G,null)}else L=_q(O,U),W=mX(X,U,G,null);return L.return=J,W.return=J,L.sibling=W,J.child=L,W}function _q(J,Q,X){return mL(J,Q,f,null)}function dO(J,Q){return C9(J,Q)}function zN(J,Q,X,G){var U=J.child,q=U.sibling,O=dO(U,{mode:"visible",children:X});if((Q.mode&dJ)===MJ)O.lanes=G;if(O.return=Q,O.sibling=null,q!==null){var L=Q.deletions;if(L===null)Q.deletions=[q],Q.flags|=Y9;else L.push(q)}return Q.child=O,O}function $N(J,Q,X,G,U){var q=Q.mode,O=J.child,L=O.sibling,W={mode:"hidden",children:X},H;if((q&dJ)===MJ&&Q.child!==O){var M=Q.child;if(H=M,H.childLanes=f,H.pendingProps=W,Q.mode&YQ)H.actualDuration=0,H.actualStartTime=-1,H.selfBaseDuration=O.selfBaseDuration,H.treeBaseDuration=O.treeBaseDuration;Q.deletions=null}else H=dO(O,W),H.subtreeFlags=O.subtreeFlags&f8;var N;if(L!==null)N=C9(L,G);else N=mX(G,q,U,null),N.flags|=dQ;return N.return=Q,H.return=Q,H.sibling=N,Q.child=H,N}function M5(J,Q,X,G){if(G!==null)qU(G);N1(Q,J.child,null,X);var U=Q.pendingProps,q=U.children,O=Tq(Q,q);return O.flags|=dQ,Q.memoizedState=null,O}function ON(J,Q,X,G,U){var q=Q.mode,O={mode:"visible",children:X},L=_q(O,q),W=mX(G,q,U,null);if(W.flags|=dQ,L.return=Q,W.return=Q,L.sibling=W,Q.child=L,(Q.mode&dJ)!==MJ)N1(Q,J.child,null,U);return W}function LN(J,Q,X){if((J.mode&dJ)===MJ)$("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."),J.lanes=n4(NJ);else if(iK(Q))J.lanes=n4(O9);else J.lanes=n4(z7);return null}function WN(J,Q,X,G,U,q,O){if(!X){if(QP(),(Q.mode&dJ)===MJ)return M5(J,Q,O,null);if(iK(U)){var L,W,H;{var M=Bj(U);L=M.digest,W=M.message,H=M.stack}var N;if(W)N=Error(W);else N=Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var P=Hq(N,L,H);return M5(J,Q,O,P)}var S=$7(O,J.childLanes);if(J8||S){var T=S5();if(T!==null){var E=wB(T,O);if(E!==qZ&&E!==q.retryLane){q.retryLane=E;var s=HQ;nZ(J,E),JZ(T,J,E,s)}}tq();var OJ=Hq(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 M5(J,Q,O,OJ)}else if(z2(U)){Q.flags|=aJ,Q.child=J.child;var GJ=cw.bind(null,J);return Aj(U,GJ),null}else{YP(Q,U,q.treeContext);var bJ=G.children,fJ=Tq(Q,bJ);return fJ.flags|=y8,fJ}}else if(Q.flags&h8){Q.flags&=~h8;var w=Hq(Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return M5(J,Q,O,w)}else if(Q.memoizedState!==null)return Q.child=J.child,Q.flags|=aJ,null;else{var{children:x,fallback:R}=G,u=ON(J,Q,x,R,O),e=Q.child;return e.memoizedState=Sq(O),Q.memoizedState=Vq,u}}function mO(J,Q,X){J.lanes=xJ(J.lanes,Q);var G=J.alternate;if(G!==null)G.lanes=xJ(G.lanes,Q);BU(J.return,Q,X)}function DN(J,Q,X){var G=Q;while(G!==null){if(G.tag===c){var U=G.memoizedState;if(U!==null)mO(G,X,J)}else if(G.tag===i)mO(G,X,J);else if(G.child!==null){G.child.return=G,G=G.child;continue}if(G===J)return;while(G.sibling===null){if(G.return===null||G.return===J)return;G=G.return}G.sibling.return=G.return,G=G.sibling}}function HN(J){var Q=J,X=null;while(Q!==null){var G=Q.alternate;if(G!==null&&lY(G)===null)X=Q;Q=Q.sibling}return X}function MN(J){if(J!==void 0&&J!=="forwards"&&J!=="backwards"&&J!=="together"&&!Pq[J])if(Pq[J]=!0,typeof J==="string")switch(J.toLowerCase()){case"together":case"forwards":case"backwards":{$('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',J,J.toLowerCase());break}case"forward":case"backward":{$('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',J,J.toLowerCase());break}default:$('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',J);break}else $('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',J)}function FN(J,Q){if(J!==void 0&&!H5[J]){if(J!=="collapsed"&&J!=="hidden")H5[J]=!0,$('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',J);else if(Q!=="forwards"&&Q!=="backwards")H5[J]=!0,$('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',J)}}function cO(J,Q){{var X=tJ(J),G=!X&&typeof p7(J)==="function";if(X||G){var U=X?"array":"iterable";return $("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,Q,U),!1}}return!0}function BN(J,Q){if((Q==="forwards"||Q==="backwards")&&J!==void 0&&J!==null&&J!==!1)if(tJ(J)){for(var X=0;X<J.length;X++)if(!cO(J[X],X))return}else{var G=p7(J);if(typeof G==="function"){var U=G.call(J);if(U){var q=U.next(),O=0;for(;!q.done;q=U.next()){if(!cO(q.value,O))return;O++}}}else $('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?',Q)}}function kq(J,Q,X,G,U){var q=J.memoizedState;if(q===null)J.memoizedState={isBackwards:Q,rendering:null,renderingStartTime:0,last:G,tail:X,tailMode:U};else q.isBackwards=Q,q.rendering=null,q.renderingStartTime=0,q.last=G,q.tail=X,q.tailMode=U}function pO(J,Q,X){var G=Q.pendingProps,U=G.revealOrder,q=G.tail,O=G.children;MN(U),FN(q,U),BN(O,U),xZ(J,Q,O,X);var L=t7.current,W=SU(L,P0);if(W)L=TU(L,P0),Q.flags|=aJ;else{var H=J!==null&&(J.flags&aJ)!==BJ;if(H)DN(Q,Q.child,X);L=S1(L)}if(hX(Q,L),(Q.mode&dJ)===MJ)Q.memoizedState=null;else switch(U){case"forwards":{var M=HN(Q.child),N;if(M===null)N=Q.child,Q.child=null;else N=M.sibling,M.sibling=null;kq(Q,!1,N,M,q);break}case"backwards":{var P=null,S=Q.child;Q.child=null;while(S!==null){var T=S.alternate;if(T!==null&&lY(T)===null){Q.child=S;break}var E=S.sibling;S.sibling=P,P=S,S=E}kq(Q,!0,P,null,q);break}case"together":{kq(Q,!1,null,null,void 0);break}default:Q.memoizedState=null}return Q.child}function AN(J,Q,X){wU(Q,Q.stateNode.containerInfo);var G=Q.pendingProps;if(J===null)Q.child=N1(Q,null,G,X);else xZ(J,Q,G,X);return Q.child}var sO=!1;function IN(J,Q,X){var G=Q.type,U=G._context,q=Q.pendingProps,O=Q.memoizedProps,L=q.value;{if(!("value"in q)){if(!sO)sO=!0,$("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")}var W=Q.type.propTypes;if(W)n7(W,q,"prop","Context.Provider")}if(f2(Q,U,L),O!==null){var H=O.value;if(W7(H,L)){if(O.children===q.children&&!NY())return i8(J,Q,X)}else FP(Q,U,X)}var M=q.children;return xZ(J,Q,M,X),Q.child}var lO=!1;function jN(J,Q,X){var G=Q.type;if(G._context===void 0){if(G!==G.Consumer){if(!lO)lO=!0,$("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")}}else G=G._context;var U=Q.pendingProps,q=U.children;if(typeof q!=="function")$("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.");R1(Q,X);var O=mQ(G);E6(Q);var L;return E0.current=Q,q7(!0),L=q(O),q7(!1),Y1(),Q.flags|=Z1,xZ(J,Q,L,X),Q.child}function h0(){J8=!0}function F5(J,Q){if((Q.mode&dJ)===MJ){if(J!==null)J.alternate=null,Q.alternate=null,Q.flags|=dQ}}function i8(J,Q,X){if(J!==null)Q.dependencies=J.dependencies;if(jO(),l0(Q.lanes),!$7(X,Q.childLanes))return null;return HP(J,Q),Q.child}function PN(J,Q,X){{var G=Q.return;if(G===null)throw Error("Cannot swap the root fiber.");if(J.alternate=null,Q.alternate=null,X.index=Q.index,X.sibling=Q.sibling,X.return=Q.return,X.ref=Q.ref,Q===G.child)G.child=X;else{var U=G.child;if(U===null)throw Error("Expected parent to have a child.");while(U.sibling!==Q)if(U=U.sibling,U===null)throw Error("Expected to find the previous sibling.");U.sibling=X}var q=G.deletions;if(q===null)G.deletions=[J],G.flags|=Y9;else q.push(J);return X.flags|=dQ,X}}function Eq(J,Q){var X=J.lanes;if($7(X,Q))return!0;return!1}function NN(J,Q,X){switch(Q.tag){case _:vO(Q);var G=Q.stateNode;P1();break;case k:s2(Q);break;case j:{var U=Q.type;if(M8(U))RY(Q);break}case b:wU(Q,Q.stateNode.containerInfo);break;case CJ:{var q=Q.memoizedProps.value,O=Q.type._context;f2(Q,O,q);break}case KJ:{var L=$7(X,Q.childLanes);if(L)Q.flags|=pJ;{var W=Q.stateNode;W.effectDuration=0,W.passiveEffectDuration=0}}break;case c:{var H=Q.memoizedState;if(H!==null){if(H.dehydrated!==null)return hX(Q,S1(t7.current)),Q.flags|=aJ,null;var M=Q.child,N=M.childLanes;if($7(X,N))return gO(J,Q,X);else{hX(Q,S1(t7.current));var P=i8(J,Q,X);if(P!==null)return P.sibling;else return null}}else hX(Q,S1(t7.current));break}case i:{var S=(J.flags&aJ)!==BJ,T=$7(X,Q.childLanes);if(S){if(T)return pO(J,Q,X);Q.flags|=aJ}var E=Q.memoizedState;if(E!==null)E.rendering=null,E.tail=null,E.lastEffect=null;if(hX(Q,t7.current),T)break;else return null}case LJ:case JJ:return Q.lanes=f,yO(J,Q,X)}return i8(J,Q,X)}function iO(J,Q,X){if(Q._debugNeedsRemount&&J!==null)return PN(J,Q,qz(Q.type,Q.key,Q.pendingProps,Q._debugOwner||null,Q.mode,Q.lanes));if(J!==null){var G=J.memoizedProps,U=Q.pendingProps;if(G!==U||NY()||Q.type!==J.type)J8=!0;else{var q=Eq(J,X);if(!q&&(Q.flags&aJ)===BJ)return J8=!1,NN(J,Q,X);if((J.flags&bG)!==BJ)J8=!0;else J8=!1}}else if(J8=!1,DZ()&&rj(Q)){var O=Q.index,L=oj();j2(Q,L,O)}switch(Q.lanes=f,Q.tag){case y:return YN(J,Q,Q.type,X);case UJ:{var W=Q.elementType;return ZN(J,Q,W,X)}case B:{var{type:H,pendingProps:M}=Q,N=Q.elementType===H?M:e7(H,M);return Nq(J,Q,H,N,X)}case j:{var{type:P,pendingProps:S}=Q,T=Q.elementType===P?S:e7(P,S);return fO(J,Q,P,T,X)}case _:return eP(J,Q,X);case k:return JN(J,Q,X);case a:return QN(J,Q);case c:return gO(J,Q,X);case b:return AN(J,Q,X);case g:{var{type:E,pendingProps:s}=Q,OJ=Q.elementType===E?s:e7(E,s);return CO(J,Q,E,OJ,X)}case DJ:return oP(J,Q,X);case _J:return tP(J,Q,X);case KJ:return aP(J,Q,X);case CJ:return IN(J,Q,X);case yJ:return jN(J,Q,X);case qJ:{var{type:GJ,pendingProps:bJ}=Q,fJ=e7(GJ,bJ);if(Q.type!==Q.elementType){var w=GJ.propTypes;if(w)n7(w,fJ,"prop",sJ(GJ))}return fJ=e7(GJ.type,fJ),xO(J,Q,GJ,fJ,X)}case d:return hO(J,Q,Q.type,Q.pendingProps,X);case SJ:{var{type:x,pendingProps:R}=Q,u=Q.elementType===x?R:e7(x,R);return XN(J,Q,x,u,X)}case i:return pO(J,Q,X);case $J:break;case LJ:return yO(J,Q,X)}throw Error("Unknown unit of work tag ("+Q.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function x1(J){J.flags|=pJ}function nO(J){J.flags|=IX,J.flags|=fG}var rO,Cq,oO,tO;rO=function(J,Q,X,G){var U=Q.child;while(U!==null){if(U.tag===k||U.tag===a)lI(J,U.stateNode);else if(U.tag===b);else if(U.child!==null){U.child.return=U,U=U.child;continue}if(U===Q)return;while(U.sibling===null){if(U.return===null||U.return===Q)return;U=U.return}U.sibling.return=U.return,U=U.sibling}},Cq=function(J,Q){},oO=function(J,Q,X,G,U){var q=J.memoizedProps;if(q===G)return;var O=Q.stateNode,L=RU(),W=nI(O,X,q,G,U,L);if(Q.updateQueue=W,W)x1(Q)},tO=function(J,Q,X,G){if(X!==G)x1(Q)};function y0(J,Q){if(DZ())return;switch(J.tailMode){case"hidden":{var X=J.tail,G=null;while(X!==null){if(X.alternate!==null)G=X;X=X.sibling}if(G===null)J.tail=null;else G.sibling=null;break}case"collapsed":{var U=J.tail,q=null;while(U!==null){if(U.alternate!==null)q=U;U=U.sibling}if(q===null)if(!Q&&J.tail!==null)J.tail.sibling=null;else J.tail=null;else q.sibling=null;break}}}function MZ(J){var Q=J.alternate!==null&&J.alternate.child===J.child,X=f,G=BJ;if(!Q){if((J.mode&YQ)!==MJ){var{actualDuration:U,selfBaseDuration:q,child:O}=J;while(O!==null)X=xJ(X,xJ(O.lanes,O.childLanes)),G|=O.subtreeFlags,G|=O.flags,U+=O.actualDuration,q+=O.treeBaseDuration,O=O.sibling;J.actualDuration=U,J.treeBaseDuration=q}else{var L=J.child;while(L!==null)X=xJ(X,xJ(L.lanes,L.childLanes)),G|=L.subtreeFlags,G|=L.flags,L.return=J,L=L.sibling}J.subtreeFlags|=G}else{if((J.mode&YQ)!==MJ){var{selfBaseDuration:W,child:H}=J;while(H!==null)X=xJ(X,xJ(H.lanes,H.childLanes)),G|=H.subtreeFlags&f8,G|=H.flags&f8,W+=H.treeBaseDuration,H=H.sibling;J.treeBaseDuration=W}else{var M=J.child;while(M!==null)X=xJ(X,xJ(M.lanes,M.childLanes)),G|=M.subtreeFlags&f8,G|=M.flags&f8,M.return=J,M=M.sibling}J.subtreeFlags|=G}return J.childLanes=X,Q}function wN(J,Q,X){if(zP()&&(Q.mode&dJ)!==MJ&&(Q.flags&aJ)===BJ)return T2(Q),P1(),Q.flags|=h8|_6|CZ,!1;var G=kY(Q);if(X!==null&&X.dehydrated!==null)if(J===null){if(!G)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(UP(Q),MZ(Q),(Q.mode&YQ)!==MJ){var U=X!==null;if(U){var q=Q.child;if(q!==null)Q.treeBaseDuration-=q.treeBaseDuration}}return!1}else{if(P1(),(Q.flags&aJ)===BJ)Q.memoizedState=null;if(Q.flags|=pJ,MZ(Q),(Q.mode&YQ)!==MJ){var O=X!==null;if(O){var L=Q.child;if(L!==null)Q.treeBaseDuration-=L.treeBaseDuration}}return!1}else return _2(),!0}function aO(J,Q,X){var G=Q.pendingProps;switch(XU(Q),Q.tag){case y:case UJ:case d:case B:case g:case DJ:case _J:case KJ:case yJ:case qJ:return MZ(Q),null;case j:{var U=Q.type;if(M8(U))wY(Q);return MZ(Q),null}case _:{var q=Q.stateNode;if(V1(Q),eK(Q),kU(),q.pendingContext)q.context=q.pendingContext,q.pendingContext=null;if(J===null||J.child===null){var O=kY(Q);if(O)x1(Q);else if(J!==null){var L=J.memoizedState;if(!L.isDehydrated||(Q.flags&h8)!==BJ)Q.flags|=G9,_2()}}return Cq(J,Q),MZ(Q),null}case k:{VU(Q);var W=p2(),H=Q.type;if(J!==null&&Q.stateNode!=null){if(oO(J,Q,H,G,W),J.ref!==Q.ref)nO(Q)}else{if(!G){if(Q.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return MZ(Q),null}var M=RU(),N=kY(Q);if(N){if(GP(Q,W,M))x1(Q)}else{var P=sI(H,G,W,M,Q);if(rO(P,Q,!1,!1),Q.stateNode=P,iI(P,H,G,W))x1(Q)}if(Q.ref!==null)nO(Q)}return MZ(Q),null}case a:{var S=G;if(J&&Q.stateNode!=null){var T=J.memoizedProps;tO(J,Q,T,S)}else{if(typeof S!=="string"){if(Q.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.")}var E=p2(),s=RU(),OJ=kY(Q);if(OJ){if(KP(Q))x1(Q)}else Q.stateNode=rI(S,E,s,Q)}return MZ(Q),null}case c:{T1(Q);var GJ=Q.memoizedState;if(J===null||J.memoizedState!==null&&J.memoizedState.dehydrated!==null){var bJ=wN(J,Q,GJ);if(!bJ)if(Q.flags&CZ)return Q;else return null}if((Q.flags&aJ)!==BJ){if(Q.lanes=X,(Q.mode&YQ)!==MJ)Zq(Q);return Q}var fJ=GJ!==null,w=J!==null&&J.memoizedState!==null;if(fJ!==w){if(fJ){var x=Q.child;if(x.flags|=K9,(Q.mode&dJ)!==MJ){var R=J===null&&(Q.memoizedProps.unstable_avoidThisFallback!==!0||!mZ);if(R||SU(t7.current,i2))kw();else tq()}}}var u=Q.updateQueue;if(u!==null)Q.flags|=pJ;if(MZ(Q),(Q.mode&YQ)!==MJ){if(fJ){var e=Q.child;if(e!==null)Q.treeBaseDuration-=e.treeBaseDuration}}return null}case b:if(V1(Q),Cq(J,Q),J===null)mj(Q.stateNode.containerInfo);return MZ(Q),null;case CJ:var n=Q.type._context;return FU(n,Q),MZ(Q),null;case SJ:{var jJ=Q.type;if(M8(jJ))wY(Q);return MZ(Q),null}case i:{T1(Q);var RJ=Q.memoizedState;if(RJ===null)return MZ(Q),null;var KQ=(Q.flags&aJ)!==BJ,iJ=RJ.rendering;if(iJ===null)if(!KQ){var bQ=Cw()&&(J===null||(J.flags&aJ)===BJ);if(!bQ){var nJ=Q.child;while(nJ!==null){var xQ=lY(nJ);if(xQ!==null){KQ=!0,Q.flags|=aJ,y0(RJ,!1);var _Z=xQ.updateQueue;if(_Z!==null)Q.updateQueue=_Z,Q.flags|=pJ;return Q.subtreeFlags=BJ,MP(Q,X),hX(Q,TU(t7.current,P0)),Q.child}nJ=nJ.sibling}}if(RJ.tail!==null&&KZ()>IL())Q.flags|=aJ,KQ=!0,y0(RJ,!1),Q.lanes=o$}else y0(RJ,!1);else{if(!KQ){var jZ=lY(iJ);if(jZ!==null){Q.flags|=aJ,KQ=!0;var M7=jZ.updateQueue;if(M7!==null)Q.updateQueue=M7,Q.flags|=pJ;if(y0(RJ,!0),RJ.tail===null&&RJ.tailMode==="hidden"&&!iJ.alternate&&!DZ())return MZ(Q),null}else if(KZ()*2-RJ.renderingStartTime>IL()&&X!==z7)Q.flags|=aJ,KQ=!0,y0(RJ,!1),Q.lanes=o$}if(RJ.isBackwards)iJ.sibling=Q.child,Q.child=iJ;else{var bZ=RJ.last;if(bZ!==null)bZ.sibling=iJ;else Q.child=iJ;RJ.last=iJ}}if(RJ.tail!==null){var fZ=RJ.tail;RJ.rendering=fZ,RJ.tail=fZ.sibling,RJ.renderingStartTime=KZ(),fZ.sibling=null;var kZ=t7.current;if(KQ)kZ=TU(kZ,P0);else kZ=S1(kZ);return hX(Q,kZ),fZ}return MZ(Q),null}case $J:break;case LJ:case JJ:{oq(Q);var a8=Q.memoizedState,d1=a8!==null;if(J!==null){var t0=J.memoizedState,w8=t0!==null;if(w8!==d1&&!vQ)Q.flags|=K9}if(!d1||(Q.mode&dJ)===MJ)MZ(Q);else if($7(N8,z7)){if(MZ(Q),Q.subtreeFlags&(dQ|pJ))Q.flags|=K9}return null}case YJ:return null;case TJ:return null}throw Error("Unknown unit of work tag ("+Q.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function RN(J,Q,X){switch(XU(Q),Q.tag){case j:{var G=Q.type;if(M8(G))wY(Q);var U=Q.flags;if(U&CZ){if(Q.flags=U&~CZ|aJ,(Q.mode&YQ)!==MJ)Zq(Q);return Q}return null}case _:{var q=Q.stateNode;V1(Q),eK(Q),kU();var O=Q.flags;if((O&CZ)!==BJ&&(O&aJ)===BJ)return Q.flags=O&~CZ|aJ,Q;return null}case k:return VU(Q),null;case c:{T1(Q);var L=Q.memoizedState;if(L!==null&&L.dehydrated!==null){if(Q.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");P1()}var W=Q.flags;if(W&CZ){if(Q.flags=W&~CZ|aJ,(Q.mode&YQ)!==MJ)Zq(Q);return Q}return null}case i:return T1(Q),null;case b:return V1(Q),null;case CJ:var H=Q.type._context;return FU(H,Q),null;case LJ:case JJ:return oq(Q),null;case YJ:return null;default:return null}}function eO(J,Q,X){switch(XU(Q),Q.tag){case j:{var G=Q.type.childContextTypes;if(G!==null&&G!==void 0)wY(Q);break}case _:{var U=Q.stateNode;V1(Q),eK(Q),kU();break}case k:{VU(Q);break}case b:V1(Q);break;case c:T1(Q);break;case i:T1(Q);break;case CJ:var q=Q.type._context;FU(q,Q);break;case LJ:case JJ:oq(Q);break}}var JL=null;JL=new Set;var B5=!1,FZ=!1,VN=typeof WeakSet==="function"?WeakSet:Set,ZJ=null,h1=null,y1=null;function SN(J){xG(null,function(){throw J}),hG()}var TN=function(J,Q){if(Q.props=J.memoizedProps,Q.state=J.memoizedState,J.mode&YQ)try{j8(),Q.componentWillUnmount()}finally{I8(J)}else Q.componentWillUnmount()};function QL(J,Q){try{fX(nQ,J)}catch(X){DQ(J,Q,X)}}function xq(J,Q,X){try{TN(J,X)}catch(G){DQ(J,Q,G)}}function _N(J,Q,X){try{X.componentDidMount()}catch(G){DQ(J,Q,G)}}function ZL(J,Q){try{GL(J)}catch(X){DQ(J,Q,X)}}function b1(J,Q){var X=J.ref;if(X!==null)if(typeof X==="function"){var G;try{if(Z7&&f7&&J.mode&YQ)try{j8(),G=X(null)}finally{I8(J)}else G=X(null)}catch(U){DQ(J,Q,U)}if(typeof G==="function")$("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",EJ(J))}else X.current=null}function A5(J,Q,X){try{X()}catch(G){DQ(J,Q,G)}}var XL=null,YL=!1;function kN(J,Q){XL=cI(J.containerInfo),ZJ=Q,EN();var X=YL;return YL=!1,XL=null,X}function EN(){while(ZJ!==null){var J=ZJ,Q=J.child;if((J.subtreeFlags&uG)!==BJ&&Q!==null)Q.return=J,ZJ=Q;else CN()}}function CN(){while(ZJ!==null){var J=ZJ;TQ(J);try{xN(J)}catch(X){DQ(J,J.return,X)}GZ();var Q=J.sibling;if(Q!==null){Q.return=J.return,ZJ=Q;return}ZJ=J.return}}function xN(J){var{alternate:Q,flags:X}=J;if((X&G9)!==BJ){switch(TQ(J),J.tag){case B:case g:case d:break;case j:{if(Q!==null){var{memoizedProps:G,memoizedState:U}=Q,q=J.stateNode;if(J.type===J.elementType&&!S9){if(q.props!==J.memoizedProps)$("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.",EJ(J)||"instance");if(q.state!==J.memoizedState)$("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.",EJ(J)||"instance")}var O=q.getSnapshotBeforeUpdate(J.elementType===J.type?G:e7(J.type,G),U);{var L=JL;if(O===void 0&&!L.has(J.type))L.add(J.type),$("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",EJ(J))}q.__reactInternalSnapshotBeforeUpdate=O}break}case _:{{var W=J.stateNode;Dj(W.containerInfo)}break}case k:case a:case b:case SJ:break;default:throw 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.")}GZ()}}function Q8(J,Q,X){var G=Q.updateQueue,U=G!==null?G.lastEffect:null;if(U!==null){var q=U.next,O=q;do{if((O.tag&J)===J){var L=O.destroy;if(O.destroy=void 0,L!==void 0){if((J&HZ)!==rZ)rF(Q);else if((J&nQ)!==rZ)s$(Q);if((J&F8)!==rZ)n0(!0);if(A5(Q,X,L),(J&F8)!==rZ)n0(!1);if((J&HZ)!==rZ)oF();else if((J&nQ)!==rZ)l$()}}O=O.next}while(O!==q)}}function fX(J,Q){var X=Q.updateQueue,G=X!==null?X.lastEffect:null;if(G!==null){var U=G.next,q=U;do{if((q.tag&J)===J){if((J&HZ)!==rZ)iF(Q);else if((J&nQ)!==rZ)tF(Q);var O=q.create;if((J&F8)!==rZ)n0(!0);if(q.destroy=O(),(J&F8)!==rZ)n0(!1);if((J&HZ)!==rZ)nF();else if((J&nQ)!==rZ)aF();{var L=q.destroy;if(L!==void 0&&typeof L!=="function"){var W=void 0;if((q.tag&nQ)!==BJ)W="useLayoutEffect";else if((q.tag&F8)!==BJ)W="useInsertionEffect";else W="useEffect";var H=void 0;if(L===null)H=" You returned null. If your effect does not require clean up, return undefined (or nothing).";else if(typeof L.then==="function")H=`
103
+
104
+ It looks like you wrote `+W+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
105
+
106
+ `+W+`(() => {
107
+ async function fetchData() {
108
+ // You can await here
109
+ const response = await MyAPI.getData(someId);
110
+ // ...
111
+ }
112
+ fetchData();
113
+ }, [someId]); // Or [] if effect doesn't need props or state
114
+
115
+ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching`;else H=" You returned: "+L;$("%s must not return anything besides a function, which is used for clean-up.%s",W,H)}}}q=q.next}while(q!==U)}}function hN(J,Q){if((Q.flags&pJ)!==BJ)switch(Q.tag){case KJ:{var X=Q.stateNode.passiveEffectDuration,G=Q.memoizedProps,U=G.id,q=G.onPostCommit,O=AO(),L=Q.alternate===null?"mount":"update";if(BO())L="nested-update";if(typeof q==="function")q(U,L,X,O);var W=Q.return;J:while(W!==null){switch(W.tag){case _:var H=W.stateNode;H.passiveEffectDuration+=X;break J;case KJ:var M=W.stateNode;M.passiveEffectDuration+=X;break J}W=W.return}break}}}function yN(J,Q,X,G){if((X.flags&k6)!==BJ)switch(X.tag){case B:case g:case d:{if(!FZ)if(X.mode&YQ)try{j8(),fX(nQ|iQ,X)}finally{I8(X)}else fX(nQ|iQ,X);break}case j:{var U=X.stateNode;if(X.flags&pJ){if(!FZ)if(Q===null){if(X.type===X.elementType&&!S9){if(U.props!==X.memoizedProps)$("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.",EJ(X)||"instance");if(U.state!==X.memoizedState)$("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.",EJ(X)||"instance")}if(X.mode&YQ)try{j8(),U.componentDidMount()}finally{I8(X)}else U.componentDidMount()}else{var q=X.elementType===X.type?Q.memoizedProps:e7(X.type,Q.memoizedProps),O=Q.memoizedState;if(X.type===X.elementType&&!S9){if(U.props!==X.memoizedProps)$("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.",EJ(X)||"instance");if(U.state!==X.memoizedState)$("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.",EJ(X)||"instance")}if(X.mode&YQ)try{j8(),U.componentDidUpdate(q,O,U.__reactInternalSnapshotBeforeUpdate)}finally{I8(X)}else U.componentDidUpdate(q,O,U.__reactInternalSnapshotBeforeUpdate)}}var L=X.updateQueue;if(L!==null){if(X.type===X.elementType&&!S9){if(U.props!==X.memoizedProps)$("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.",EJ(X)||"instance");if(U.state!==X.memoizedState)$("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.",EJ(X)||"instance")}c2(X,L,U)}break}case _:{var W=X.updateQueue;if(W!==null){var H=null;if(X.child!==null)switch(X.child.tag){case k:H=mK(X.child.stateNode);break;case j:H=X.child.stateNode;break}c2(X,W,H)}break}case k:{var M=X.stateNode;if(Q===null&&X.flags&pJ){var{type:N,memoizedProps:P}=X;Jj(M,N,P)}break}case a:break;case b:break;case KJ:{{var S=X.memoizedProps,T=S.onCommit,E=S.onRender,s=X.stateNode.effectDuration,OJ=AO(),GJ=Q===null?"mount":"update";if(BO())GJ="nested-update";if(typeof E==="function")E(X.memoizedProps.id,GJ,X.actualDuration,X.treeBaseDuration,X.actualStartTime,OJ);{if(typeof T==="function")T(X.memoizedProps.id,GJ,s,OJ);fw(X);var bJ=X.return;J:while(bJ!==null){switch(bJ.tag){case _:var fJ=bJ.stateNode;fJ.effectDuration+=s;break J;case KJ:var w=bJ.stateNode;w.effectDuration+=s;break J}bJ=bJ.return}}}break}case c:{cN(J,X);break}case i:case SJ:case $J:case LJ:case JJ:case TJ:break;default:throw 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.")}if(!FZ){if(X.flags&IX)GL(X)}}function bN(J){switch(J.tag){case B:case g:case d:{if(J.mode&YQ)try{j8(),QL(J,J.return)}finally{I8(J)}else QL(J,J.return);break}case j:{var Q=J.stateNode;if(typeof Q.componentDidMount==="function")_N(J,J.return,Q);ZL(J,J.return);break}case k:{ZL(J,J.return);break}}}function fN(J,Q){var X=null;{var G=J;while(!0){if(G.tag===k){if(X===null){X=G;try{var U=G.stateNode;if(Q)$j(U);else Lj(G.stateNode,G.memoizedProps)}catch(O){DQ(J,J.return,O)}}}else if(G.tag===a){if(X===null)try{var q=G.stateNode;if(Q)Oj(q);else Wj(q,G.memoizedProps)}catch(O){DQ(J,J.return,O)}}else if((G.tag===LJ||G.tag===JJ)&&G.memoizedState!==null&&G!==J);else if(G.child!==null){G.child.return=G,G=G.child;continue}if(G===J)return;while(G.sibling===null){if(G.return===null||G.return===J)return;if(X===G)X=null;G=G.return}if(X===G)X=null;G.sibling.return=G.return,G=G.sibling}}}function GL(J){var Q=J.ref;if(Q!==null){var X=J.stateNode,G;switch(J.tag){case k:G=mK(X);break;default:G=X}if(typeof Q==="function"){var U;if(J.mode&YQ)try{j8(),U=Q(G)}finally{I8(J)}else U=Q(G);if(typeof U==="function")$("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",EJ(J))}else{if(!Q.hasOwnProperty("current"))$("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",EJ(J));Q.current=G}}}function vN(J){var Q=J.alternate;if(Q!==null)Q.return=null;J.return=null}function KL(J){var Q=J.alternate;if(Q!==null)J.alternate=null,KL(Q);{if(J.child=null,J.deletions=null,J.sibling=null,J.tag===k){var X=J.stateNode;if(X!==null)sj(X)}J.stateNode=null,J._debugOwner=null,J.return=null,J.dependencies=null,J.memoizedProps=null,J.memoizedState=null,J.pendingProps=null,J.stateNode=null,J.updateQueue=null}}function uN(J){var Q=J.return;while(Q!==null){if(UL(Q))return Q;Q=Q.return}throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}function UL(J){return J.tag===k||J.tag===_||J.tag===b}function qL(J){var Q=J;J:while(!0){while(Q.sibling===null){if(Q.return===null||UL(Q.return))return null;Q=Q.return}Q.sibling.return=Q.return,Q=Q.sibling;while(Q.tag!==k&&Q.tag!==a&&Q.tag!==zJ){if(Q.flags&dQ)continue J;if(Q.child===null||Q.tag===b)continue J;else Q.child.return=Q,Q=Q.child}if(!(Q.flags&dQ))return Q.stateNode}}function gN(J){var Q=uN(J);switch(Q.tag){case k:{var X=Q.stateNode;if(Q.flags&T6)q2(X),Q.flags&=~T6;var G=qL(J);yq(J,G,X);break}case _:case b:{var U=Q.stateNode.containerInfo,q=qL(J);hq(J,q,U);break}default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function hq(J,Q,X){var G=J.tag,U=G===k||G===a;if(U){var q=J.stateNode;if(Q)Kj(X,q,Q);else Yj(X,q)}else if(G===b);else{var O=J.child;if(O!==null){hq(O,Q,X);var L=O.sibling;while(L!==null)hq(L,Q,X),L=L.sibling}}}function yq(J,Q,X){var G=J.tag,U=G===k||G===a;if(U){var q=J.stateNode;if(Q)Gj(X,q,Q);else Xj(X,q)}else if(G===b);else{var O=J.child;if(O!==null){yq(O,Q,X);var L=O.sibling;while(L!==null)yq(L,Q,X),L=L.sibling}}}var BZ=null,Z8=!1;function dN(J,Q,X){{var G=Q;J:while(G!==null){switch(G.tag){case k:{BZ=G.stateNode,Z8=!1;break J}case _:{BZ=G.stateNode.containerInfo,Z8=!0;break J}case b:{BZ=G.stateNode.containerInfo,Z8=!0;break J}}G=G.return}if(BZ===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");zL(J,Q,X),BZ=null,Z8=!1}vN(X)}function vX(J,Q,X){var G=X.child;while(G!==null)zL(J,Q,G),G=G.sibling}function zL(J,Q,X){switch(cF(X),X.tag){case k:if(!FZ)b1(X,Q);case a:{{var G=BZ,U=Z8;if(BZ=null,vX(J,Q,X),BZ=G,Z8=U,BZ!==null)if(Z8)qj(BZ,X.stateNode);else Uj(BZ,X.stateNode)}return}case zJ:{if(BZ!==null)if(Z8)zj(BZ,X.stateNode);else lK(BZ,X.stateNode);return}case b:{{var q=BZ,O=Z8;BZ=X.stateNode.containerInfo,Z8=!0,vX(J,Q,X),BZ=q,Z8=O}return}case B:case g:case qJ:case d:{if(!FZ){var L=X.updateQueue;if(L!==null){var W=L.lastEffect;if(W!==null){var H=W.next,M=H;do{var N=M,P=N.destroy,S=N.tag;if(P!==void 0){if((S&F8)!==rZ)A5(X,Q,P);else if((S&nQ)!==rZ){if(s$(X),X.mode&YQ)j8(),A5(X,Q,P),I8(X);else A5(X,Q,P);l$()}}M=M.next}while(M!==H)}}}vX(J,Q,X);return}case j:{if(!FZ){b1(X,Q);var T=X.stateNode;if(typeof T.componentWillUnmount==="function")xq(X,Q,T)}vX(J,Q,X);return}case $J:{vX(J,Q,X);return}case LJ:{if(X.mode&dJ){var E=FZ;FZ=E||X.memoizedState!==null,vX(J,Q,X),FZ=E}else vX(J,Q,X);break}default:{vX(J,Q,X);return}}}function mN(J){var Q=J.memoizedState}function cN(J,Q){var X=Q.memoizedState;if(X===null){var G=Q.alternate;if(G!==null){var U=G.memoizedState;if(U!==null){var q=U.dehydrated;if(q!==null)Tj(q)}}}}function $L(J){var Q=J.updateQueue;if(Q!==null){J.updateQueue=null;var X=J.stateNode;if(X===null)X=J.stateNode=new VN;Q.forEach(function(G){var U=pw.bind(null,J,G);if(!X.has(G)){if(X.add(G),l7)if(h1!==null&&y1!==null)i0(y1,h1);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");G.then(U,U)}})}}function pN(J,Q,X){h1=X,y1=J,TQ(Q),OL(Q,J),TQ(Q),h1=null,y1=null}function X8(J,Q,X){var G=Q.deletions;if(G!==null)for(var U=0;U<G.length;U++){var q=G[U];try{dN(J,Q,q)}catch(W){DQ(q,Q,W)}}var O=V4();if(Q.subtreeFlags&gG){var L=Q.child;while(L!==null)TQ(L),OL(L,J),L=L.sibling}TQ(O)}function OL(J,Q,X){var{alternate:G,flags:U}=J;switch(J.tag){case B:case g:case qJ:case d:{if(X8(Q,J),P8(J),U&pJ){try{Q8(F8|iQ,J,J.return),fX(F8|iQ,J)}catch(jJ){DQ(J,J.return,jJ)}if(J.mode&YQ){try{j8(),Q8(nQ|iQ,J,J.return)}catch(jJ){DQ(J,J.return,jJ)}I8(J)}else try{Q8(nQ|iQ,J,J.return)}catch(jJ){DQ(J,J.return,jJ)}}return}case j:{if(X8(Q,J),P8(J),U&IX){if(G!==null)b1(G,G.return)}return}case k:{if(X8(Q,J),P8(J),U&IX){if(G!==null)b1(G,G.return)}{if(J.flags&T6){var q=J.stateNode;try{q2(q)}catch(jJ){DQ(J,J.return,jJ)}}if(U&pJ){var O=J.stateNode;if(O!=null){var L=J.memoizedProps,W=G!==null?G.memoizedProps:L,H=J.type,M=J.updateQueue;if(J.updateQueue=null,M!==null)try{Qj(O,M,H,W,L,J)}catch(jJ){DQ(J,J.return,jJ)}}}}return}case a:{if(X8(Q,J),P8(J),U&pJ){if(J.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");var{stateNode:N,memoizedProps:P}=J,S=G!==null?G.memoizedProps:P;try{Zj(N,S,P)}catch(jJ){DQ(J,J.return,jJ)}}return}case _:{if(X8(Q,J),P8(J),U&pJ){if(G!==null){var T=G.memoizedState;if(T.isDehydrated)try{Sj(Q.containerInfo)}catch(jJ){DQ(J,J.return,jJ)}}}return}case b:{X8(Q,J),P8(J);return}case c:{X8(Q,J),P8(J);var E=J.child;if(E.flags&K9){var{stateNode:s,memoizedState:OJ}=E,GJ=OJ!==null;if(s.isHidden=GJ,GJ){var bJ=E.alternate!==null&&E.alternate.memoizedState!==null;if(!bJ)_w()}}if(U&pJ){try{mN(J)}catch(jJ){DQ(J,J.return,jJ)}$L(J)}return}case LJ:{var fJ=G!==null&&G.memoizedState!==null;if(J.mode&dJ){var w=FZ;FZ=w||fJ,X8(Q,J),FZ=w}else X8(Q,J);if(P8(J),U&K9){var{stateNode:x,memoizedState:R}=J,u=R!==null,e=J;if(x.isHidden=u,u){if(!fJ){if((e.mode&dJ)!==MJ){ZJ=e;var n=e.child;while(n!==null)ZJ=n,lN(n),n=n.sibling}}}fN(e,u)}return}case i:{if(X8(Q,J),P8(J),U&pJ)$L(J);return}case $J:return;default:{X8(Q,J),P8(J);return}}}function P8(J){var Q=J.flags;if(Q&dQ){try{gN(J)}catch(X){DQ(J,J.return,X)}J.flags&=~dQ}if(Q&y8)J.flags&=~y8}function sN(J,Q,X){h1=X,y1=Q,ZJ=J,LL(J,Q,X),h1=null,y1=null}function LL(J,Q,X){var G=(J.mode&dJ)!==MJ;while(ZJ!==null){var U=ZJ,q=U.child;if(U.tag===LJ&&G){var O=U.memoizedState!==null,L=O||B5;if(L){bq(J,Q,X);continue}else{var W=U.alternate,H=W!==null&&W.memoizedState!==null,M=H||FZ,N=B5,P=FZ;if(B5=L,FZ=M,FZ&&!P)ZJ=U,iN(U);var S=q;while(S!==null)ZJ=S,LL(S,Q,X),S=S.sibling;ZJ=U,B5=N,FZ=P,bq(J,Q,X);continue}}if((U.subtreeFlags&k6)!==BJ&&q!==null)q.return=U,ZJ=q;else bq(J,Q,X)}}function bq(J,Q,X){while(ZJ!==null){var G=ZJ;if((G.flags&k6)!==BJ){var U=G.alternate;TQ(G);try{yN(Q,U,G,X)}catch(O){DQ(G,G.return,O)}GZ()}if(G===J){ZJ=null;return}var q=G.sibling;if(q!==null){q.return=G.return,ZJ=q;return}ZJ=G.return}}function lN(J){while(ZJ!==null){var Q=ZJ,X=Q.child;switch(Q.tag){case B:case g:case qJ:case d:{if(Q.mode&YQ)try{j8(),Q8(nQ,Q,Q.return)}finally{I8(Q)}else Q8(nQ,Q,Q.return);break}case j:{b1(Q,Q.return);var G=Q.stateNode;if(typeof G.componentWillUnmount==="function")xq(Q,Q.return,G);break}case k:{b1(Q,Q.return);break}case LJ:{var U=Q.memoizedState!==null;if(U){WL(J);continue}break}}if(X!==null)X.return=Q,ZJ=X;else WL(J)}}function WL(J){while(ZJ!==null){var Q=ZJ;if(Q===J){ZJ=null;return}var X=Q.sibling;if(X!==null){X.return=Q.return,ZJ=X;return}ZJ=Q.return}}function iN(J){while(ZJ!==null){var Q=ZJ,X=Q.child;if(Q.tag===LJ){var G=Q.memoizedState!==null;if(G){DL(J);continue}}if(X!==null)X.return=Q,ZJ=X;else DL(J)}}function DL(J){while(ZJ!==null){var Q=ZJ;TQ(Q);try{bN(Q)}catch(G){DQ(Q,Q.return,G)}if(GZ(),Q===J){ZJ=null;return}var X=Q.sibling;if(X!==null){X.return=Q.return,ZJ=X;return}ZJ=Q.return}}function nN(J,Q,X,G){ZJ=Q,rN(Q,J,X,G)}function rN(J,Q,X,G){while(ZJ!==null){var U=ZJ,q=U.child;if((U.subtreeFlags&X1)!==BJ&&q!==null)q.return=U,ZJ=q;else oN(J,Q,X,G)}}function oN(J,Q,X,G){while(ZJ!==null){var U=ZJ;if((U.flags&s7)!==BJ){TQ(U);try{tN(Q,U,X,G)}catch(O){DQ(U,U.return,O)}GZ()}if(U===J){ZJ=null;return}var q=U.sibling;if(q!==null){q.return=U.return,ZJ=q;return}ZJ=U.return}}function tN(J,Q,X,G){switch(Q.tag){case B:case g:case d:{if(Q.mode&YQ){Qq();try{fX(HZ|iQ,Q)}finally{Jq(Q)}}else fX(HZ|iQ,Q);break}}}function aN(J){ZJ=J,eN()}function eN(){while(ZJ!==null){var J=ZJ,Q=J.child;if((ZJ.flags&Y9)!==BJ){var X=J.deletions;if(X!==null){for(var G=0;G<X.length;G++){var U=X[G];ZJ=U,Zw(U,J)}{var q=J.alternate;if(q!==null){var O=q.child;if(O!==null){q.child=null;do{var L=O.sibling;O.sibling=null,O=L}while(O!==null)}}}ZJ=J}}if((J.subtreeFlags&X1)!==BJ&&Q!==null)Q.return=J,ZJ=Q;else Jw()}}function Jw(){while(ZJ!==null){var J=ZJ;if((J.flags&s7)!==BJ)TQ(J),Qw(J),GZ();var Q=J.sibling;if(Q!==null){Q.return=J.return,ZJ=Q;return}ZJ=J.return}}function Qw(J){switch(J.tag){case B:case g:case d:{if(J.mode&YQ)Qq(),Q8(HZ|iQ,J,J.return),Jq(J);else Q8(HZ|iQ,J,J.return);break}}}function Zw(J,Q){while(ZJ!==null){var X=ZJ;TQ(X),Yw(X,Q),GZ();var G=X.child;if(G!==null)G.return=X,ZJ=G;else Xw(J)}}function Xw(J){while(ZJ!==null){var Q=ZJ,X=Q.sibling,G=Q.return;if(KL(Q),Q===J){ZJ=null;return}if(X!==null){X.return=G,ZJ=X;return}ZJ=G}}function Yw(J,Q){switch(J.tag){case B:case g:case d:{if(J.mode&YQ)Qq(),Q8(HZ,J,Q),Jq(J);else Q8(HZ,J,Q);break}}}function Gw(J){switch(J.tag){case B:case g:case d:{try{fX(nQ|iQ,J)}catch(X){DQ(J,J.return,X)}break}case j:{var Q=J.stateNode;try{Q.componentDidMount()}catch(X){DQ(J,J.return,X)}break}}}function Kw(J){switch(J.tag){case B:case g:case d:{try{fX(HZ|iQ,J)}catch(Q){DQ(J,J.return,Q)}break}}}function Uw(J){switch(J.tag){case B:case g:case d:{try{Q8(nQ|iQ,J,J.return)}catch(X){DQ(J,J.return,X)}break}case j:{var Q=J.stateNode;if(typeof Q.componentWillUnmount==="function")xq(J,J.return,Q);break}}}function qw(J){switch(J.tag){case B:case g:case d:try{Q8(HZ|iQ,J,J.return)}catch(Q){DQ(J,J.return,Q)}}}var zw=0,$w=1,Ow=2,Lw=3,Ww=4;if(typeof Symbol==="function"&&Symbol.for){var b0=Symbol.for;zw=b0("selector.component"),$w=b0("selector.has_pseudo_class"),Ow=b0("selector.role"),Lw=b0("selector.test_id"),Ww=b0("selector.text")}var Dw=[];function Hw(){Dw.forEach(function(J){return J()})}var Mw=Z.ReactCurrentActQueue;function Fw(J){{var Q=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,X=typeof jest<"u";return X&&Q!==!1}}function HL(){{var J=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;if(!J&&Mw.current!==null)$("The current testing environment is not configured to support act(...)");return J}}var Bw=Math.ceil,fq=Z.ReactCurrentDispatcher,vq=Z.ReactCurrentOwner,AZ=Z.ReactCurrentBatchConfig,Y8=Z.ReactCurrentActQueue,tQ=0,ML=1,IZ=2,E7=4,n8=0,f0=1,T9=2,I5=3,v0=4,FL=5,uq=6,mJ=tQ,hZ=null,_Q=null,aQ=f,N8=f,gq=TX(f),eQ=n8,u0=null,dq=f,j5=f,g0=f,P5=f,d0=null,oZ=null,mq=0,BL=500,AL=1/0,Aw=500,r8=null;function m0(){AL=KZ()+Aw}function IL(){return AL}var N5=!1,cq=null,f1=null,_9=!1,uX=null,c0=f,pq=[],sq=null,Iw=50,p0=0,lq=null,iq=!1,w5=!1,jw=50,v1=0,R5=null,s0=HQ,V5=f,jL=!1;function S5(){return hZ}function yZ(){if((mJ&(IZ|E7))!==tQ)return KZ();if(s0!==HQ)return s0;return s0=KZ(),s0}function gX(J){var Q=J.mode;if((Q&dJ)===MJ)return NJ;else if((mJ&IZ)!==tQ&&aQ!==f)return f6(aQ);var X=LP()!==OP;if(X){if(AZ.transition!==null){var G=AZ.transition;if(!G._updatedFibers)G._updatedFibers=new Set;G._updatedFibers.add(J)}if(V5===qZ)V5=J3();return V5}var U=i7();if(U!==qZ)return U;var q=oI();return q}function Pw(J){var Q=J.mode;if((Q&dJ)===MJ)return NJ;return IB()}function JZ(J,Q,X,G){if(lw(),jL)$("useInsertionEffect must not schedule updates.");if(iq)w5=!0;if(v6(J,X,G),(mJ&IZ)!==f&&J===hZ)rw(Q);else{if(l7)X3(J,Q,X);if(ow(Q),J===hZ){if((mJ&IZ)===tQ)g0=xJ(g0,X);if(eQ===v0)dX(J,aQ)}if(tZ(J,G),X===NJ&&mJ===tQ&&(Q.mode&dJ)===MJ&&!Y8.isBatchingLegacy)m0(),I2()}}function Nw(J,Q,X){var G=J.current;G.lanes=Q,v6(J,Q,X),tZ(J,X)}function ww(J){return(mJ&IZ)!==tQ}function tZ(J,Q){var X=J.callbackNode;DB(J,Q);var G=s4(J,J===hZ?aQ:f);if(G===f){if(X!==null)fL(X);J.callbackNode=null,J.callbackPriority=qZ;return}var U=W9(G),q=J.callbackPriority;if(q===U&&!(Y8.current!==null&&X!==Jz)){if(X==null&&q!==NJ)$("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}if(X!=null)fL(X);var O;if(U===NJ){if(J.tag===_X){if(Y8.isBatchingLegacy!==null)Y8.didScheduleLegacyUpdate=!0;nj(wL.bind(null,J))}else A2(wL.bind(null,J));if(Y8.current!==null)Y8.current.push(kX);else aI(function(){if((mJ&(IZ|E7))===tQ)kX()});O=null}else{var L;switch(K3(G)){case O7:L=d4;break;case u8:L=dG;break;case g8:L=z9;break;case r4:L=mG;break;default:L=z9;break}O=Qz(L,PL.bind(null,J))}J.callbackPriority=U,J.callbackNode=O}function PL(J,Q){if(fP(),s0=HQ,V5=f,(mJ&(IZ|E7))!==tQ)throw Error("Should not already be working.");var X=J.callbackNode,G=t8();if(G){if(J.callbackNode!==X)return null}var U=s4(J,J===hZ?aQ:f);if(U===f)return null;var q=!l4(J,U)&&!AB(J,U)&&!Q,O=q?hw(J,U):_5(J,U);if(O!==n8){if(O===T9){var L=$K(J);if(L!==f)U=L,O=nq(J,L)}if(O===f0){var W=u0;throw k9(J,f),dX(J,U),tZ(J,KZ()),W}if(O===uq)dX(J,U);else{var H=!l4(J,U),M=J.current.alternate;if(H&&!Vw(M)){if(O=_5(J,U),O===T9){var N=$K(J);if(N!==f)U=N,O=nq(J,N)}if(O===f0){var P=u0;throw k9(J,f),dX(J,U),tZ(J,KZ()),P}}J.finishedWork=M,J.finishedLanes=U,Rw(J,O,U)}}if(tZ(J,KZ()),J.callbackNode===X)return PL.bind(null,J);return null}function nq(J,Q){var X=d0;if(o4(J)){var G=k9(J,Q);G.flags|=h8,dj(J.containerInfo)}var U=_5(J,Q);if(U!==T9){var q=oZ;if(oZ=X,q!==null)NL(q)}return U}function NL(J){if(oZ===null)oZ=J;else oZ.push.apply(oZ,J)}function Rw(J,Q,X){switch(Q){case n8:case f0:throw Error("Root did not complete. This is a bug in React.");case T9:{E9(J,oZ,r8);break}case I5:{if(dX(J,X),a$(X)&&!vL()){var G=mq+BL-KZ();if(G>10){var U=s4(J,f);if(U!==f)break;var q=J.suspendedLanes;if(!q1(q,X)){var O=yZ();Z3(J,q);break}J.timeoutHandle=pK(E9.bind(null,J,oZ,r8),G);break}}E9(J,oZ,r8);break}case v0:{if(dX(J,X),BB(X))break;if(!vL()){var L=LB(J,X),W=L,H=KZ()-W,M=sw(H)-H;if(M>10){J.timeoutHandle=pK(E9.bind(null,J,oZ,r8),M);break}}E9(J,oZ,r8);break}case FL:{E9(J,oZ,r8);break}default:throw Error("Unknown root exit status.")}}function Vw(J){var Q=J;while(!0){if(Q.flags&u4){var X=Q.updateQueue;if(X!==null){var G=X.stores;if(G!==null)for(var U=0;U<G.length;U++){var q=G[U],O=q.getSnapshot,L=q.value;try{if(!W7(O(),L))return!1}catch(H){return!1}}}}var W=Q.child;if(Q.subtreeFlags&u4&&W!==null){W.return=Q,Q=W;continue}if(Q===J)return!0;while(Q.sibling===null){if(Q.return===null||Q.return===J)return!0;Q=Q.return}Q.sibling.return=Q.return,Q=Q.sibling}return!0}function dX(J,Q){Q=i4(Q,P5),Q=i4(Q,g0),PB(J,Q)}function wL(J){if(vP(),(mJ&(IZ|E7))!==tQ)throw Error("Should not already be working.");t8();var Q=s4(J,f);if(!$7(Q,NJ))return tZ(J,KZ()),null;var X=_5(J,Q);if(J.tag!==_X&&X===T9){var G=$K(J);if(G!==f)Q=G,X=nq(J,G)}if(X===f0){var U=u0;throw k9(J,f),dX(J,Q),tZ(J,KZ()),U}if(X===uq)throw Error("Root did not complete. This is a bug in React.");var q=J.current.alternate;return J.finishedWork=q,J.finishedLanes=Q,E9(J,oZ,r8),tZ(J,KZ()),null}function Sw(J,Q){if(Q!==f){if(DK(J,xJ(Q,NJ)),tZ(J,KZ()),(mJ&(IZ|E7))===tQ)m0(),kX()}}function rq(J,Q){var X=mJ;mJ|=ML;try{return J(Q)}finally{if(mJ=X,mJ===tQ&&!Y8.isBatchingLegacy)m0(),I2()}}function Tw(J,Q,X,G,U){var q=i7(),O=AZ.transition;try{return AZ.transition=null,zZ(O7),J(Q,X,G,U)}finally{if(zZ(q),AZ.transition=O,mJ===tQ)m0()}}function o8(J){if(uX!==null&&uX.tag===_X&&(mJ&(IZ|E7))===tQ)t8();var Q=mJ;mJ|=ML;var X=AZ.transition,G=i7();try{if(AZ.transition=null,zZ(O7),J)return J();else return}finally{if(zZ(G),AZ.transition=X,mJ=Q,(mJ&(IZ|E7))===tQ)kX()}}function RL(){return(mJ&(IZ|E7))!==tQ}function T5(J,Q){SZ(gq,N8,J),N8=xJ(N8,Q),dq=xJ(dq,Q)}function oq(J){N8=gq.current,VZ(gq,J)}function k9(J,Q){J.finishedWork=null,J.finishedLanes=f;var X=J.timeoutHandle;if(X!==sK)J.timeoutHandle=sK,tI(X);if(_Q!==null){var G=_Q.return;while(G!==null){var U=G.alternate;eO(U,G),G=G.return}}hZ=J;var q=C9(J.current,null);return _Q=q,aQ=N8=dq=Q,eQ=n8,u0=null,j5=f,g0=f,P5=f,d0=null,oZ=null,AP(),o7.discardPendingWarnings(),q}function VL(J,Q){do{var X=_Q;try{if(bY(),r2(),GZ(),vq.current=null,X===null||X.return===null){eQ=f0,u0=Q,_Q=null;return}if(Z7&&X.mode&YQ)W5(X,!0);if(cZ)if(Y1(),Q!==null&&typeof Q==="object"&&typeof Q.then==="function"){var G=Q;JB(X,G,aQ)}else eF(X,Q,aQ);iP(J,X.return,X,Q,aQ),kL(X)}catch(U){if(Q=U,_Q===X&&X!==null)X=X.return,_Q=X;else X=_Q;continue}return}while(!0)}function SL(){var J=fq.current;if(fq.current=q5,J===null)return q5;else return J}function TL(J){fq.current=J}function _w(){mq=KZ()}function l0(J){j5=xJ(J,j5)}function kw(){if(eQ===n8)eQ=I5}function tq(){if(eQ===n8||eQ===I5||eQ===T9)eQ=v0;if(hZ!==null&&(OK(j5)||OK(g0)))dX(hZ,aQ)}function Ew(J){if(eQ!==v0)eQ=T9;if(d0===null)d0=[J];else d0.push(J)}function Cw(){return eQ===n8}function _5(J,Q){var X=mJ;mJ|=IZ;var G=SL();if(hZ!==J||aQ!==Q){if(l7){var U=J.memoizedUpdaters;if(U.size>0)i0(J,aQ),U.clear();Y3(J,Q)}r8=G3(),k9(J,Q)}i$(Q);do try{xw();break}catch(q){VL(J,q)}while(!0);if(bY(),mJ=X,TL(G),_Q!==null)throw Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return n$(),hZ=null,aQ=f,eQ}function xw(){while(_Q!==null)_L(_Q)}function hw(J,Q){var X=mJ;mJ|=IZ;var G=SL();if(hZ!==J||aQ!==Q){if(l7){var U=J.memoizedUpdaters;if(U.size>0)i0(J,aQ),U.clear();Y3(J,Q)}r8=G3(),m0(),k9(J,Q)}i$(Q);do try{yw();break}catch(q){VL(J,q)}while(!0);if(bY(),TL(G),mJ=X,_Q!==null)return GB(),n8;else return n$(),hZ=null,aQ=f,eQ}function yw(){while(_Q!==null&&!xF())_L(_Q)}function _L(J){var Q=J.alternate;TQ(J);var X;if((J.mode&YQ)!==MJ)eU(J),X=aq(Q,J,N8),W5(J,!0);else X=aq(Q,J,N8);if(GZ(),J.memoizedProps=J.pendingProps,X===null)kL(J);else _Q=X;vq.current=null}function kL(J){var Q=J;do{var{alternate:X,return:G}=Q;if((Q.flags&_6)===BJ){TQ(Q);var U=void 0;if((Q.mode&YQ)===MJ)U=aO(X,Q,N8);else eU(Q),U=aO(X,Q,N8),W5(Q,!1);if(GZ(),U!==null){_Q=U;return}}else{var q=RN(X,Q);if(q!==null){q.flags&=SF,_Q=q;return}if((Q.mode&YQ)!==MJ){W5(Q,!1);var{actualDuration:O,child:L}=Q;while(L!==null)O+=L.actualDuration,L=L.sibling;Q.actualDuration=O}if(G!==null)G.flags|=_6,G.subtreeFlags=BJ,G.deletions=null;else{eQ=uq,_Q=null;return}}var W=Q.sibling;if(W!==null){_Q=W;return}Q=G,_Q=Q}while(Q!==null);if(eQ===n8)eQ=FL}function E9(J,Q,X){var G=i7(),U=AZ.transition;try{AZ.transition=null,zZ(O7),bw(J,Q,X,G)}finally{AZ.transition=U,zZ(G)}return null}function bw(J,Q,X,G){do t8();while(uX!==null);if(iw(),(mJ&(IZ|E7))!==tQ)throw Error("Should not already be working.");var{finishedWork:U,finishedLanes:q}=J;if(lF(q),U===null)return p$(),null;else if(q===f)$("root.finishedLanes should not be empty during a commit. This is a bug in React.");if(J.finishedWork=null,J.finishedLanes=f,U===J.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");J.callbackNode=null,J.callbackPriority=qZ;var O=xJ(U.lanes,U.childLanes);if(NB(J,O),J===hZ)hZ=null,_Q=null,aQ=f;if((U.subtreeFlags&X1)!==BJ||(U.flags&X1)!==BJ){if(!_9)_9=!0,sq=X,Qz(z9,function(){return t8(),null})}var L=(U.subtreeFlags&(uG|gG|k6|X1))!==BJ,W=(U.flags&(uG|gG|k6|X1))!==BJ;if(L||W){var H=AZ.transition;AZ.transition=null;var M=i7();zZ(O7);var N=mJ;mJ|=E7,vq.current=null;var P=kN(J,U);IO(),pN(J,U,q),pI(J.containerInfo),J.current=U,QB(q),sN(U,J,q),ZB(),hF(),mJ=N,zZ(M),AZ.transition=H}else J.current=U,IO();var S=_9;if(_9)_9=!1,uX=J,c0=q;else v1=0,R5=null;if(O=J.pendingLanes,O===f)f1=null;if(!S)hL(J.current,!1);if(dF(U.stateNode,G),l7)J.memoizedUpdaters.clear();if(Hw(),tZ(J,KZ()),Q!==null){var T=J.onRecoverableError;for(var E=0;E<Q.length;E++){var s=Q[E],OJ=s.stack,GJ=s.digest;T(s.value,{componentStack:OJ,digest:GJ})}}if(N5){N5=!1;var bJ=cq;throw cq=null,bJ}if($7(c0,NJ)&&J.tag!==_X)t8();if(O=J.pendingLanes,$7(O,NJ))if(bP(),J===lq)p0++;else p0=0,lq=J;else p0=0;return kX(),p$(),null}function t8(){if(uX!==null){var J=K3(c0),Q=SB(g8,J),X=AZ.transition,G=i7();try{return AZ.transition=null,zZ(Q),vw()}finally{zZ(G),AZ.transition=X}}return!1}function fw(J){if(pq.push(J),!_9)_9=!0,Qz(z9,function(){return t8(),null})}function vw(){if(uX===null)return!1;var J=sq;sq=null;var Q=uX,X=c0;if(uX=null,c0=f,(mJ&(IZ|E7))!==tQ)throw Error("Cannot flush passive effects while already rendering.");iq=!0,w5=!1,XB(X);var G=mJ;mJ|=E7,aN(Q.current),nN(Q,Q.current,X,J);{var U=pq;pq=[];for(var q=0;q<U.length;q++){var O=U[q];hN(Q,O)}}YB(),hL(Q.current,!0),mJ=G,kX();{if(w5)if(Q===R5)v1++;else v1=0,R5=Q;else v1=0;iq=!1,w5=!1}mF(Q);{var L=Q.current.stateNode;L.effectDuration=0,L.passiveEffectDuration=0}return!0}function EL(J){return f1!==null&&f1.has(J)}function uw(J){if(f1===null)f1=new Set([J]);else f1.add(J)}function gw(J){if(!N5)N5=!0,cq=J}var dw=gw;function CL(J,Q,X){var G=V9(X,Q),U=TO(J,G,NJ),q=CX(J,U,NJ),O=yZ();if(q!==null)v6(q,NJ,O),tZ(q,O)}function DQ(J,Q,X){if(SN(X),n0(!1),J.tag===_){CL(J,J,X);return}var G=null;G=Q;while(G!==null){if(G.tag===_){CL(G,J,X);return}else if(G.tag===j){var{type:U,stateNode:q}=G;if(typeof U.getDerivedStateFromError==="function"||typeof q.componentDidCatch==="function"&&!EL(q)){var O=V9(X,J),L=Fq(G,O,NJ),W=CX(G,L,NJ),H=yZ();if(W!==null)v6(W,NJ,H),tZ(W,H);return}}G=G.return}$(`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.
116
+
117
+ Error message:
118
+
119
+ %s`,X)}function mw(J,Q,X){var G=J.pingCache;if(G!==null)G.delete(Q);var U=yZ();if(Z3(J,X),tw(J),hZ===J&&q1(aQ,X))if(eQ===v0||eQ===I5&&a$(aQ)&&KZ()-mq<BL)k9(J,f);else P5=xJ(P5,X);tZ(J,U)}function xL(J,Q){if(Q===qZ)Q=Pw(J);var X=yZ(),G=nZ(J,Q);if(G!==null)v6(G,Q,X),tZ(G,X)}function cw(J){var Q=J.memoizedState,X=qZ;if(Q!==null)X=Q.retryLane;xL(J,X)}function pw(J,Q){var X=qZ,G;switch(J.tag){case c:G=J.stateNode;var U=J.memoizedState;if(U!==null)X=U.retryLane;break;case i:G=J.stateNode;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}if(G!==null)G.delete(Q);xL(J,X)}function sw(J){return J<120?120:J<480?480:J<1080?1080:J<1920?1920:J<3000?3000:J<4320?4320:Bw(J/1960)*1960}function lw(){if(p0>Iw)throw p0=0,lq=null,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.");if(v1>jw)v1=0,R5=null,$("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 iw(){o7.flushLegacyContextWarning(),o7.flushPendingUnsafeLifecycleWarnings()}function hL(J,Q){{if(TQ(J),k5(J,b8,Uw),Q)k5(J,g4,qw);if(k5(J,b8,Gw),Q)k5(J,g4,Kw);GZ()}}function k5(J,Q,X){{var G=J,U=null;while(G!==null){var q=G.subtreeFlags&Q;if(G!==U&&G.child!==null&&q!==BJ)G=G.child;else{if((G.flags&Q)!==BJ)X(G);if(G.sibling!==null)G=G.sibling;else G=U=G.return}}}}var E5=null;function yL(J){{if((mJ&IZ)!==tQ)return;if(!(J.mode&dJ))return;var Q=J.tag;if(Q!==y&&Q!==_&&Q!==j&&Q!==B&&Q!==g&&Q!==qJ&&Q!==d)return;var X=EJ(J)||"ReactComponent";if(E5!==null){if(E5.has(X))return;E5.add(X)}else E5=new Set([X]);var G=RZ;try{TQ(J),$("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{if(G)TQ(J);else GZ()}}}var aq;{var nw=null;aq=function(J,Q,X){var G=cL(nw,Q);try{return iO(J,Q,X)}catch(q){if(ZP()||q!==null&&typeof q==="object"&&typeof q.then==="function")throw q;if(bY(),r2(),eO(J,Q),cL(Q,G),Q.mode&YQ)eU(Q);if(xG(null,iO,null,J,Q,X),NF()){var U=hG();if(typeof U==="object"&&U!==null&&U._suppressLogging&&typeof q==="object"&&q!==null&&!q._suppressLogging)q._suppressLogging=!0}throw q}}}var bL=!1,eq;eq=new Set;function rw(J){if(J9&&!xP())switch(J.tag){case B:case g:case d:{var Q=_Q&&EJ(_Q)||"Unknown",X=Q;if(!eq.has(X)){eq.add(X);var G=EJ(J)||"Unknown";$("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",G,Q,Q)}break}case j:{if(!bL)$("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),bL=!0;break}}}function i0(J,Q){if(l7){var X=J.memoizedUpdaters;X.forEach(function(G){X3(J,G,Q)})}}var Jz={};function Qz(J,Q){{var X=Y8.current;if(X!==null)return X.push(Q),Jz;else return c$(J,Q)}}function fL(J){if(J===Jz)return;return CF(J)}function vL(){return Y8.current!==null}function ow(J){{if(J.mode&dJ){if(!HL())return}else{if(!Fw())return;if(mJ!==tQ)return;if(J.tag!==B&&J.tag!==g&&J.tag!==d)return}if(Y8.current===null){var Q=RZ;try{TQ(J),$(`An update to %s inside a test was not wrapped in act(...).
120
+
121
+ When testing, code that causes React state updates should be wrapped into act(...):
122
+
123
+ act(() => {
124
+ /* fire events that update state */
125
+ });
126
+ /* assert on the output */
127
+
128
+ 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`,EJ(J))}finally{if(Q)TQ(J);else GZ()}}}}function tw(J){if(J.tag!==_X&&HL()&&Y8.current===null)$(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
129
+
130
+ When testing, code that resolves suspended data should be wrapped into act(...):
131
+
132
+ act(() => {
133
+ /* finish loading suspended data */
134
+ });
135
+ /* assert on the output */
136
+
137
+ 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 n0(J){jL=J}var C7=null,u1=null,aw=function(J){C7=J};function g1(J){{if(C7===null)return J;var Q=C7(J);if(Q===void 0)return J;return Q.current}}function Zz(J){return g1(J)}function Xz(J){{if(C7===null)return J;var Q=C7(J);if(Q===void 0){if(J!==null&&J!==void 0&&typeof J.render==="function"){var X=g1(J.render);if(J.render!==X){var G={$$typeof:HJ,render:X};if(J.displayName!==void 0)G.displayName=J.displayName;return G}}return J}return Q.current}}function uL(J,Q){{if(C7===null)return!1;var X=J.elementType,G=Q.type,U=!1,q=typeof G==="object"&&G!==null?G.$$typeof:null;switch(J.tag){case j:{if(typeof G==="function")U=!0;break}case B:{if(typeof G==="function")U=!0;else if(q===oJ)U=!0;break}case g:{if(q===HJ)U=!0;else if(q===oJ)U=!0;break}case qJ:case d:{if(q===kJ)U=!0;else if(q===oJ)U=!0;break}default:return!1}if(U){var O=C7(X);if(O!==void 0&&O===C7(G))return!0}return!1}}function gL(J){{if(C7===null)return;if(typeof WeakSet!=="function")return;if(u1===null)u1=new WeakSet;u1.add(J)}}var ew=function(J,Q){{if(C7===null)return;var{staleFamilies:X,updatedFamilies:G}=Q;t8(),o8(function(){Yz(J.current,G,X)})}},JR=function(J,Q){{if(J.context!==D7)return;t8(),o8(function(){r0(Q,J,null,null)})}};function Yz(J,Q,X){{var{alternate:G,child:U,sibling:q,tag:O,type:L}=J,W=null;switch(O){case B:case d:case j:W=L;break;case g:W=L.render;break}if(C7===null)throw Error("Expected resolveFamily to be set during hot reload.");var H=!1,M=!1;if(W!==null){var N=C7(W);if(N!==void 0){if(X.has(N))M=!0;else if(Q.has(N))if(O===j)M=!0;else H=!0}}if(u1!==null){if(u1.has(J)||G!==null&&u1.has(G))M=!0}if(M)J._debugNeedsRemount=!0;if(M||H){var P=nZ(J,NJ);if(P!==null)JZ(P,J,NJ,HQ)}if(U!==null&&!M)Yz(U,Q,X);if(q!==null)Yz(q,Q,X)}}var QR=function(J,Q){{var X=new Set,G=new Set(Q.map(function(U){return U.current}));return Gz(J.current,G,X),X}};function Gz(J,Q,X){{var{child:G,sibling:U,tag:q,type:O}=J,L=null;switch(q){case B:case d:case j:L=O;break;case g:L=O.render;break}var W=!1;if(L!==null){if(Q.has(L))W=!0}if(W)ZR(J,X);else if(G!==null)Gz(G,Q,X);if(U!==null)Gz(U,Q,X)}}function ZR(J,Q){{var X=XR(J,Q);if(X)return;var G=J;while(!0){switch(G.tag){case k:Q.add(G.stateNode);return;case b:Q.add(G.stateNode.containerInfo);return;case _:Q.add(G.stateNode.containerInfo);return}if(G.return===null)throw Error("Expected to reach root first.");G=G.return}}}function XR(J,Q){{var X=J,G=!1;while(!0){if(X.tag===k)G=!0,Q.add(X.stateNode);else if(X.child!==null){X.child.return=X,X=X.child;continue}if(X===J)return G;while(X.sibling===null){if(X.return===null||X.return===J)return G;X=X.return}X.sibling.return=X.return,X=X.sibling}}return!1}var Kz;{Kz=!1;try{var dL=Object.preventExtensions({});}catch(J){Kz=!0}}function YR(J,Q,X,G){if(this.tag=J,this.key=X,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=Q,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=G,this.flags=BJ,this.subtreeFlags=BJ,this.deletions=null,this.lanes=f,this.childLanes=f,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,!Kz&&typeof Object.preventExtensions==="function")Object.preventExtensions(this)}var H7=function(J,Q,X,G){return new YR(J,Q,X,G)};function Uz(J){var Q=J.prototype;return!!(Q&&Q.isReactComponent)}function GR(J){return typeof J==="function"&&!Uz(J)&&J.defaultProps===void 0}function KR(J){if(typeof J==="function")return Uz(J)?j:B;else if(J!==void 0&&J!==null){var Q=J.$$typeof;if(Q===HJ)return g;if(Q===kJ)return qJ}return y}function C9(J,Q){var X=J.alternate;if(X===null)X=H7(J.tag,Q,J.key,J.mode),X.elementType=J.elementType,X.type=J.type,X.stateNode=J.stateNode,X._debugSource=J._debugSource,X._debugOwner=J._debugOwner,X._debugHookTypes=J._debugHookTypes,X.alternate=J,J.alternate=X;else X.pendingProps=Q,X.type=J.type,X.flags=BJ,X.subtreeFlags=BJ,X.deletions=null,X.actualDuration=0,X.actualStartTime=-1;X.flags=J.flags&f8,X.childLanes=J.childLanes,X.lanes=J.lanes,X.child=J.child,X.memoizedProps=J.memoizedProps,X.memoizedState=J.memoizedState,X.updateQueue=J.updateQueue;var G=J.dependencies;switch(X.dependencies=G===null?null:{lanes:G.lanes,firstContext:G.firstContext},X.sibling=J.sibling,X.index=J.index,X.ref=J.ref,X.selfBaseDuration=J.selfBaseDuration,X.treeBaseDuration=J.treeBaseDuration,X._debugNeedsRemount=J._debugNeedsRemount,X.tag){case y:case B:case d:X.type=g1(J.type);break;case j:X.type=Zz(J.type);break;case g:X.type=Xz(J.type);break}return X}function UR(J,Q){J.flags&=f8|dQ;var X=J.alternate;if(X===null)J.childLanes=f,J.lanes=Q,J.child=null,J.subtreeFlags=BJ,J.memoizedProps=null,J.memoizedState=null,J.updateQueue=null,J.dependencies=null,J.stateNode=null,J.selfBaseDuration=0,J.treeBaseDuration=0;else{J.childLanes=X.childLanes,J.lanes=X.lanes,J.child=X.child,J.subtreeFlags=BJ,J.deletions=null,J.memoizedProps=X.memoizedProps,J.memoizedState=X.memoizedState,J.updateQueue=X.updateQueue,J.type=X.type;var G=X.dependencies;J.dependencies=G===null?null:{lanes:G.lanes,firstContext:G.firstContext},J.selfBaseDuration=X.selfBaseDuration,J.treeBaseDuration=X.treeBaseDuration}return J}function qR(J,Q,X){var G;if(J===VY){if(G=dJ,Q===!0)G|=CQ,G|=W8}else G=MJ;if(l7)G|=YQ;return H7(_,null,null,G)}function qz(J,Q,X,G,U,q){var O=y,L=J;if(typeof J==="function")if(Uz(J))O=j,L=Zz(L);else L=g1(L);else if(typeof J==="string")O=k;else J:switch(J){case z8:return mX(X.children,U,q,Q);case I:if(O=_J,U|=CQ,(U&dJ)!==MJ)U|=W8;break;case v:return zR(X,U,q,Q);case lJ:return $R(X,U,q,Q);case hJ:return OR(X,U,q,Q);case OZ:return mL(X,U,q,Q);case $8:case IQ:case c7:case YZ:case RQ:default:{if(typeof J==="object"&&J!==null)switch(J.$$typeof){case l:O=CJ;break J;case FJ:O=yJ;break J;case HJ:O=g,L=Xz(L);break J;case kJ:O=qJ;break J;case oJ:O=UJ,L=null;break J}var W="";{if(J===void 0||typeof J==="object"&&J!==null&&Object.keys(J).length===0)W+=" 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 H=G?EJ(G):null;if(H)W+=`
138
+
139
+ Check the render method of \``+H+"`."}throw Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(J==null?J:typeof J)+"."+W))}}var M=H7(O,X,Q,U);return M.elementType=J,M.type=L,M.lanes=q,M._debugOwner=G,M}function zz(J,Q,X){var G=null;G=J._owner;var{type:U,key:q,props:O}=J,L=qz(U,q,O,G,Q,X);return L._debugSource=J._source,L._debugOwner=J._owner,L}function mX(J,Q,X,G){var U=H7(DJ,J,G,Q);return U.lanes=X,U}function zR(J,Q,X,G){if(typeof J.id!=="string")$('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof J.id);var U=H7(KJ,J,G,Q|YQ);return U.elementType=v,U.lanes=X,U.stateNode={effectDuration:0,passiveEffectDuration:0},U}function $R(J,Q,X,G){var U=H7(c,J,G,Q);return U.elementType=lJ,U.lanes=X,U}function OR(J,Q,X,G){var U=H7(i,J,G,Q);return U.elementType=hJ,U.lanes=X,U}function mL(J,Q,X,G){var U=H7(LJ,J,G,Q);U.elementType=OZ,U.lanes=X;var q={isHidden:!1};return U.stateNode=q,U}function $z(J,Q,X){var G=H7(a,J,null,Q);return G.lanes=X,G}function LR(){var J=H7(k,null,null,MJ);return J.elementType="DELETED",J}function WR(J){var Q=H7(zJ,null,null,MJ);return Q.stateNode=J,Q}function Oz(J,Q,X){var G=J.children!==null?J.children:[],U=H7(b,G,J.key,Q);return U.lanes=X,U.stateNode={containerInfo:J.containerInfo,pendingChildren:null,implementation:J.implementation},U}function cL(J,Q){if(J===null)J=H7(y,null,null,MJ);return J.tag=Q.tag,J.key=Q.key,J.elementType=Q.elementType,J.type=Q.type,J.stateNode=Q.stateNode,J.return=Q.return,J.child=Q.child,J.sibling=Q.sibling,J.index=Q.index,J.ref=Q.ref,J.pendingProps=Q.pendingProps,J.memoizedProps=Q.memoizedProps,J.updateQueue=Q.updateQueue,J.memoizedState=Q.memoizedState,J.dependencies=Q.dependencies,J.mode=Q.mode,J.flags=Q.flags,J.subtreeFlags=Q.subtreeFlags,J.deletions=Q.deletions,J.lanes=Q.lanes,J.childLanes=Q.childLanes,J.alternate=Q.alternate,J.actualDuration=Q.actualDuration,J.actualStartTime=Q.actualStartTime,J.selfBaseDuration=Q.selfBaseDuration,J.treeBaseDuration=Q.treeBaseDuration,J._debugSource=Q._debugSource,J._debugOwner=Q._debugOwner,J._debugNeedsRemount=Q._debugNeedsRemount,J._debugHookTypes=Q._debugHookTypes,J}function DR(J,Q,X,G,U){this.tag=Q,this.containerInfo=J,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=sK,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=qZ,this.eventTimes=WK(f),this.expirationTimes=WK(HQ),this.pendingLanes=f,this.suspendedLanes=f,this.pingedLanes=f,this.expiredLanes=f,this.mutableReadLanes=f,this.finishedLanes=f,this.entangledLanes=f,this.entanglements=WK(f),this.identifierPrefix=G,this.onRecoverableError=U,this.mutableSourceEagerHydrationData=null,this.effectDuration=0,this.passiveEffectDuration=0;{this.memoizedUpdaters=new Set;var q=this.pendingUpdatersLaneMap=[];for(var O=0;O<pG;O++)q.push(new Set)}switch(Q){case VY:this._debugRootType=X?"hydrateRoot()":"createRoot()";break;case _X:this._debugRootType=X?"hydrate()":"render()";break}}function pL(J,Q,X,G,U,q,O,L,W,H){var M=new DR(J,Q,X,L,W),N=qR(Q,q);M.current=N,N.stateNode=M;{var P={element:G,isDehydrated:X,cache:null,transitions:null,pendingSuspenseBoundaries:null};N.memoizedState=P}return PU(N),M}var Lz="18.3.1";function HR(J,Q,X){var G=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return u7(G),{$$typeof:m7,key:G==null?null:""+G,children:J,containerInfo:Q,implementation:X}}var Wz,Dz;Wz=!1,Dz={};function sL(J){if(!J)return D7;var Q=Q1(J),X=ij(Q);if(Q.tag===j){var G=Q.type;if(M8(G))return F2(Q,G,X)}return X}function MR(J,Q){{var X=Q1(J);if(X===void 0)if(typeof J.render==="function")throw Error("Unable to find node on an unmounted component.");else{var G=Object.keys(J).join(",");throw Error("Argument appears to not be a ReactComponent. Keys: "+G)}var U=g$(X);if(U===null)return null;if(U.mode&CQ){var q=EJ(X)||"Component";if(!Dz[q]){Dz[q]=!0;var O=RZ;try{if(TQ(U),X.mode&CQ)$("%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",Q,Q,q);else $("%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",Q,Q,q)}finally{if(O)TQ(O);else GZ()}}}return U.stateNode}}function lL(J,Q,X,G,U,q,O,L){var W=!1,H=null;return pL(J,Q,W,H,X,G,U,q,O)}function iL(J,Q,X,G,U,q,O,L,W,H){var M=!0,N=pL(X,G,M,J,U,q,O,L,W);N.context=sL(null);var P=N.current,S=yZ(),T=gX(P),E=l8(S,T);return E.callback=Q!==void 0&&Q!==null?Q:null,CX(P,E,T),Nw(N,T,S),N}function r0(J,Q,X,G){gF(Q,J);var U=Q.current,q=yZ(),O=gX(U);KB(O);var L=sL(X);if(Q.context===null)Q.context=L;else Q.pendingContext=L;if(J9&&RZ!==null&&!Wz)Wz=!0,$(`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.
140
+
141
+ Check the render method of %s.`,EJ(RZ)||"Unknown");var W=l8(q,O);if(W.payload={element:J},G=G===void 0?null:G,G!==null){if(typeof G!=="function")$("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",G);W.callback=G}var H=CX(U,W,O);if(H!==null)JZ(H,U,O,q),dY(H,U,O);return O}function C5(J){var Q=J.current;if(!Q.child)return null;switch(Q.child.tag){case k:return mK(Q.child.stateNode);default:return Q.child.stateNode}}function FR(J){switch(J.tag){case _:{var Q=J.stateNode;if(o4(Q)){var X=HB(Q);Sw(Q,X)}break}case c:{o8(function(){var U=nZ(J,NJ);if(U!==null){var q=yZ();JZ(U,J,NJ,q)}});var G=NJ;Hz(J,G);break}}}function nL(J,Q){var X=J.memoizedState;if(X!==null&&X.dehydrated!==null)X.retryLane=jB(X.retryLane,Q)}function Hz(J,Q){nL(J,Q);var X=J.alternate;if(X)nL(X,Q)}function BR(J){if(J.tag!==c)return;var Q=h6,X=nZ(J,Q);if(X!==null){var G=yZ();JZ(X,J,Q,G)}Hz(J,Q)}function AR(J){if(J.tag!==c)return;var Q=gX(J),X=nZ(J,Q);if(X!==null){var G=yZ();JZ(X,J,Q,G)}Hz(J,Q)}function rL(J){var Q=EF(J);if(Q===null)return null;return Q.stateNode}var oL=function(J){return null};function IR(J){return oL(J)}var tL=function(J){return!1};function jR(J){return tL(J)}var aL=null,eL=null,JW=null,QW=null,ZW=null,XW=null,YW=null,GW=null,KW=null;{var UW=function(J,Q,X){var G=Q[X],U=tJ(J)?J.slice():uJ({},J);if(X+1===Q.length){if(tJ(U))U.splice(G,1);else delete U[G];return U}return U[G]=UW(J[G],Q,X+1),U},qW=function(J,Q){return UW(J,Q,0)},zW=function(J,Q,X,G){var U=Q[G],q=tJ(J)?J.slice():uJ({},J);if(G+1===Q.length){var O=X[G];if(q[O]=q[U],tJ(q))q.splice(U,1);else delete q[U]}else q[U]=zW(J[U],Q,X,G+1);return q},$W=function(J,Q,X){if(Q.length!==X.length){z("copyWithRename() expects paths of the same length");return}else for(var G=0;G<X.length-1;G++)if(Q[G]!==X[G]){z("copyWithRename() expects paths to be the same except for the deepest key");return}return zW(J,Q,X,0)},OW=function(J,Q,X,G){if(X>=Q.length)return G;var U=Q[X],q=tJ(J)?J.slice():uJ({},J);return q[U]=OW(J[U],Q,X+1,G),q},LW=function(J,Q,X){return OW(J,Q,0,X)},Mz=function(J,Q){var X=J.memoizedState;while(X!==null&&Q>0)X=X.next,Q--;return X};aL=function(J,Q,X,G){var U=Mz(J,Q);if(U!==null){var q=LW(U.memoizedState,X,G);U.memoizedState=q,U.baseState=q,J.memoizedProps=uJ({},J.memoizedProps);var O=nZ(J,NJ);if(O!==null)JZ(O,J,NJ,HQ)}},eL=function(J,Q,X){var G=Mz(J,Q);if(G!==null){var U=qW(G.memoizedState,X);G.memoizedState=U,G.baseState=U,J.memoizedProps=uJ({},J.memoizedProps);var q=nZ(J,NJ);if(q!==null)JZ(q,J,NJ,HQ)}},JW=function(J,Q,X,G){var U=Mz(J,Q);if(U!==null){var q=$W(U.memoizedState,X,G);U.memoizedState=q,U.baseState=q,J.memoizedProps=uJ({},J.memoizedProps);var O=nZ(J,NJ);if(O!==null)JZ(O,J,NJ,HQ)}},QW=function(J,Q,X){if(J.pendingProps=LW(J.memoizedProps,Q,X),J.alternate)J.alternate.pendingProps=J.pendingProps;var G=nZ(J,NJ);if(G!==null)JZ(G,J,NJ,HQ)},ZW=function(J,Q){if(J.pendingProps=qW(J.memoizedProps,Q),J.alternate)J.alternate.pendingProps=J.pendingProps;var X=nZ(J,NJ);if(X!==null)JZ(X,J,NJ,HQ)},XW=function(J,Q,X){if(J.pendingProps=$W(J.memoizedProps,Q,X),J.alternate)J.alternate.pendingProps=J.pendingProps;var G=nZ(J,NJ);if(G!==null)JZ(G,J,NJ,HQ)},YW=function(J){var Q=nZ(J,NJ);if(Q!==null)JZ(Q,J,NJ,HQ)},GW=function(J){oL=J},KW=function(J){tL=J}}function PR(J){var Q=g$(J);if(Q===null)return null;return Q.stateNode}function NR(J){return null}function wR(){return RZ}function RR(J){var Q=J.findFiberByHostInstance,X=Z.ReactCurrentDispatcher;return uF({bundleType:J.bundleType,version:J.version,rendererPackageName:J.rendererPackageName,rendererConfig:J.rendererConfig,overrideHookState:aL,overrideHookStateDeletePath:eL,overrideHookStateRenamePath:JW,overrideProps:QW,overridePropsDeletePath:ZW,overridePropsRenamePath:XW,setErrorHandler:GW,setSuspenseHandler:KW,scheduleUpdate:YW,currentDispatcherRef:X,findHostInstanceByFiber:PR,findFiberByHostInstance:Q||NR,findHostInstancesForRefresh:QR,scheduleRefresh:ew,scheduleRoot:JR,setRefreshHandler:aw,getCurrentFiber:wR,reconcilerVersion:Lz})}var WW=typeof reportError==="function"?reportError:function(J){console.error(J)};function Fz(J){this._internalRoot=J}x5.prototype.render=Fz.prototype.render=function(J){var Q=this._internalRoot;if(Q===null)throw Error("Cannot update an unmounted root.");{if(typeof arguments[1]==="function")$("render(...): does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");else if(h5(arguments[1]))$("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.");else if(typeof arguments[1]<"u")$("You passed a second argument to root.render(...) but it only accepts one argument.");var X=Q.containerInfo;if(X.nodeType!==gQ){var G=rL(Q.current);if(G){if(G.parentNode!==X)$("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.")}}}r0(J,Q,null,null)},x5.prototype.unmount=Fz.prototype.unmount=function(){if(typeof arguments[0]==="function")$("unmount(...): does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");var J=this._internalRoot;if(J!==null){this._internalRoot=null;var Q=J.containerInfo;if(RL())$("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.");o8(function(){r0(null,J,null,null)}),O2(Q)}};function VR(J,Q){if(!h5(J))throw Error("createRoot(...): Target container is not a DOM element.");DW(J);var X=!1,G=!1,U="",q=WW,O=null;if(Q!==null&&Q!==void 0){if(Q.hydrate)z("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead.");else if(typeof Q==="object"&&Q!==null&&Q.$$typeof===d7)$(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
142
+
143
+ let root = createRoot(domContainer);
144
+ root.render(<App />);`);if(Q.unstable_strictMode===!0)X=!0;if(Q.identifierPrefix!==void 0)U=Q.identifierPrefix;if(Q.onRecoverableError!==void 0)q=Q.onRecoverableError;if(Q.transitionCallbacks!==void 0)O=Q.transitionCallbacks}var L=lL(J,VY,null,X,G,U,q);AY(L.current,J);var W=J.nodeType===gQ?J.parentNode:J;return Q0(W),new Fz(L)}function x5(J){this._internalRoot=J}function SR(J){if(J)vB(J)}x5.prototype.unstable_scheduleHydration=SR;function TR(J,Q,X){if(!h5(J))throw Error("hydrateRoot(...): Target container is not a DOM element.");if(DW(J),Q===void 0)$("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var G=X!=null?X:null,U=X!=null&&X.hydratedSources||null,q=!1,O=!1,L="",W=WW;if(X!==null&&X!==void 0){if(X.unstable_strictMode===!0)q=!0;if(X.identifierPrefix!==void 0)L=X.identifierPrefix;if(X.onRecoverableError!==void 0)W=X.onRecoverableError}var H=iL(Q,null,J,VY,G,q,O,L,W);if(AY(H.current,J),Q0(J),U)for(var M=0;M<U.length;M++){var N=U[M];TP(H,N)}return new x5(H)}function h5(J){return!!(J&&(J.nodeType===lZ||J.nodeType===x8||J.nodeType===PG||!cQ))}function o0(J){return!!(J&&(J.nodeType===lZ||J.nodeType===x8||J.nodeType===PG||J.nodeType===gQ&&J.nodeValue===" react-mount-point-unstable "))}function DW(J){{if(J.nodeType===lZ&&J.tagName&&J.tagName.toUpperCase()==="BODY")$("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.");if(L0(J))if(J._reactRootContainer)$("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported.");else $("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 _R=Z.ReactCurrentOwner,HW;HW=function(J){if(J._reactRootContainer&&J.nodeType!==gQ){var Q=rL(J._reactRootContainer.current);if(Q){if(Q.parentNode!==J)$("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 X=!!J._reactRootContainer,G=Bz(J),U=!!(G&&SX(G));if(U&&!X)$("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.");if(J.nodeType===lZ&&J.tagName&&J.tagName.toUpperCase()==="BODY")$("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 Bz(J){if(!J)return null;if(J.nodeType===x8)return J.documentElement;else return J.firstChild}function MW(){}function kR(J,Q,X,G,U){if(U){if(typeof G==="function"){var q=G;G=function(){var P=C5(O);q.call(P)}}var O=iL(Q,G,J,_X,null,!1,!1,"",MW);J._reactRootContainer=O,AY(O.current,J);var L=J.nodeType===gQ?J.parentNode:J;return Q0(L),o8(),O}else{var W;while(W=J.lastChild)J.removeChild(W);if(typeof G==="function"){var H=G;G=function(){var P=C5(M);H.call(P)}}var M=lL(J,_X,null,!1,!1,"",MW);J._reactRootContainer=M,AY(M.current,J);var N=J.nodeType===gQ?J.parentNode:J;return Q0(N),o8(function(){r0(Q,M,X,G)}),M}}function ER(J,Q){if(J!==null&&typeof J!=="function")$("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",Q,J)}function y5(J,Q,X,G,U){HW(X),ER(U===void 0?null:U,"render");var q=X._reactRootContainer,O;if(!q)O=kR(X,Q,J,U,G);else{if(O=q,typeof U==="function"){var L=U;U=function(){var W=C5(O);L.call(W)}}r0(Q,O,J,U)}return C5(O)}var FW=!1;function CR(J){{if(!FW)FW=!0,$("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 Q=_R.current;if(Q!==null&&Q.stateNode!==null){var X=Q.stateNode._warnedAboutRefsInRender;if(!X)$("%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.",sJ(Q.type)||"A component");Q.stateNode._warnedAboutRefsInRender=!0}}if(J==null)return null;if(J.nodeType===lZ)return J;return MR(J,"findDOMNode")}function xR(J,Q,X){if($("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"),!o0(Q))throw Error("Target container is not a DOM element.");{var G=L0(Q)&&Q._reactRootContainer===void 0;if(G)$("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 y5(null,J,Q,!0,X)}function hR(J,Q,X){if($("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"),!o0(Q))throw Error("Target container is not a DOM element.");{var G=L0(Q)&&Q._reactRootContainer===void 0;if(G)$("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 y5(null,J,Q,!1,X)}function yR(J,Q,X,G){if($("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"),!o0(X))throw Error("Target container is not a DOM element.");if(J==null||!wF(J))throw Error("parentComponent must be a valid React Component");return y5(J,Q,X,!1,G)}var BW=!1;function bR(J){if(!BW)BW=!0,$("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");if(!o0(J))throw Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var Q=L0(J)&&J._reactRootContainer===void 0;if(Q)$("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(J._reactRootContainer){{var X=Bz(J),G=X&&!SX(X);if(G)$("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return o8(function(){y5(null,null,J,!1,function(){J._reactRootContainer=null,O2(J)})}),!0}else{{var U=Bz(J),q=!!(U&&SX(U)),O=J.nodeType===lZ&&o0(J.parentNode)&&!!J.parentNode._reactRootContainer;if(q)$("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",O?"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}}if(TB(FR),kB(BR),EB(AR),CB(i7),xB(RB),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")$("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");WF(hI),MF(rq,Tw,o8);function fR(J,Q){var X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!h5(Q))throw Error("Target container is not a DOM element.");return HR(J,Q,null,X)}function vR(J,Q,X,G){return yR(J,Q,X,G)}var Az={usingClientEntryPoint:!1,Events:[SX,F1,IY,T$,_$,rq]};function uR(J,Q){if(!Az.usingClientEntryPoint)$('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".');return VR(J,Q)}function gR(J,Q,X){if(!Az.usingClientEntryPoint)$('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".');return TR(J,Q,X)}function dR(J){if(RL())$("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.");return o8(J)}var mR=RR({findFiberByHostInstance:F9,bundleType:1,version:Lz,rendererPackageName:"react-dom"});if(!mR&&yQ&&window.top===window.self){if(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1){var AW=window.location.protocol;if(/^(https?|file):$/.test(AW))console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(AW==="file:"?`
145
+ You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}}if(tT.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Az,tT.createPortal=fR,tT.createRoot=uR,tT.findDOMNode=CR,tT.flushSync=dR,tT.hydrate=xR,tT.hydrateRoot=gR,tT.render=hR,tT.unmountComponentAtNode=bR,tT.unstable_batchedUpdates=rq,tT.unstable_renderSubtreeIntoContainer=vR,tT.version=Lz,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function")__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var qM=m1((mk,UM)=>{var aT=zQ(KM());UM.exports=aT});var zM=m1((eT)=>{var Y6=zQ(qM());X6=Y6.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,eT.createRoot=function(Z,Y){X6.usingClientEntryPoint=!0;try{return Y6.createRoot(Z,Y)}finally{X6.usingClientEntryPoint=!1}},eT.hydrateRoot=function(Z,Y,K){X6.usingClientEntryPoint=!0;try{return Y6.hydrateRoot(Z,Y,K)}finally{X6.usingClientEntryPoint=!1}};var X6});var gZ=m1((J_)=>{var $$=zQ(G8());(function(){var Z=Symbol.for("react.element"),Y=Symbol.for("react.portal"),K=Symbol.for("react.fragment"),z=Symbol.for("react.strict_mode"),$=Symbol.for("react.profiler"),F=Symbol.for("react.provider"),B=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),b=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),a=Symbol.for("react.offscreen"),DJ=Symbol.iterator,_J="@@iterator";function yJ(I){if(I===null||typeof I!=="object")return null;var v=DJ&&I[DJ]||I[_J];if(typeof v==="function")return v;return null}var CJ=$$.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function g(I){{for(var v=arguments.length,l=Array(v>1?v-1:0),FJ=1;FJ<v;FJ++)l[FJ-1]=arguments[FJ];KJ("error",I,l)}}function KJ(I,v,l){{var FJ=CJ.ReactDebugCurrentFrame,HJ=FJ.getStackAddendum();if(HJ!=="")v+="%s",l=l.concat([HJ]);var lJ=l.map(function(hJ){return String(hJ)});lJ.unshift("Warning: "+v),Function.prototype.apply.call(console[I],console,lJ)}}var c=!1,qJ=!1,d=!1,UJ=!1,SJ=!1,zJ;zJ=Symbol.for("react.module.reference");function i(I){if(typeof I==="string"||typeof I==="function")return!0;if(I===K||I===$||SJ||I===z||I===y||I===_||UJ||I===a||c||qJ||d)return!0;if(typeof I==="object"&&I!==null){if(I.$$typeof===k||I.$$typeof===b||I.$$typeof===F||I.$$typeof===B||I.$$typeof===j||I.$$typeof===zJ||I.getModuleId!==void 0)return!0}return!1}function $J(I,v,l){var FJ=I.displayName;if(FJ)return FJ;var HJ=v.displayName||v.name||"";return HJ!==""?l+"("+HJ+")":l}function LJ(I){return I.displayName||"Context"}function JJ(I){if(I==null)return null;if(typeof I.tag==="number")g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");if(typeof I==="function")return I.displayName||I.name||null;if(typeof I==="string")return I;switch(I){case K:return"Fragment";case Y:return"Portal";case $:return"Profiler";case z:return"StrictMode";case y:return"Suspense";case _:return"SuspenseList"}if(typeof I==="object")switch(I.$$typeof){case B:var v=I;return LJ(v)+".Consumer";case F:var l=I;return LJ(l._context)+".Provider";case j:return $J(I,I.render,"ForwardRef");case b:var FJ=I.displayName||null;if(FJ!==null)return FJ;return JJ(I.type)||"Memo";case k:{var HJ=I,lJ=HJ._payload,hJ=HJ._init;try{return JJ(hJ(lJ))}catch(kJ){return null}}}return null}var YJ=Object.assign,TJ=0,QJ,AJ,BQ,vQ,mZ,cQ,$Q;function uQ(){}uQ.__reactDisabledLog=!0;function cZ(){{if(TJ===0){QJ=console.log,AJ=console.info,BQ=console.warn,vQ=console.error,mZ=console.group,cQ=console.groupCollapsed,$Q=console.groupEnd;var I={configurable:!0,enumerable:!0,value:uQ,writable:!0};Object.defineProperties(console,{info:I,log:I,warn:I,error:I,group:I,groupCollapsed:I,groupEnd:I})}TJ++}}function Z7(){{if(TJ--,TJ===0){var I={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:YJ({},I,{value:QJ}),info:YJ({},I,{value:AJ}),warn:YJ({},I,{value:BQ}),error:YJ({},I,{value:vQ}),group:YJ({},I,{value:mZ}),groupCollapsed:YJ({},I,{value:cQ}),groupEnd:YJ({},I,{value:$Q})})}if(TJ<0)g("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var f7=CJ.ReactCurrentDispatcher,v7;function ZZ(I,v,l){{if(v7===void 0)try{throw Error()}catch(HJ){var FJ=HJ.stack.trim().match(/\n( *(at )?)/);v7=FJ&&FJ[1]||""}return`
146
+ `+v7+I}}var X7=!1,PZ;{var I7=typeof WeakMap==="function"?WeakMap:Map;PZ=new I7}function yQ(I,v){if(!I||X7)return"";{var l=PZ.get(I);if(l!==void 0)return l}var FJ;X7=!0;var HJ=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var lJ;lJ=f7.current,f7.current=null,cZ();try{if(v){var hJ=function(){throw Error()};if(Object.defineProperty(hJ.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(hJ,[])}catch(YZ){FJ=YZ}Reflect.construct(I,[],hJ)}else{try{hJ.call()}catch(YZ){FJ=YZ}I.call(hJ.prototype)}}else{try{throw Error()}catch(YZ){FJ=YZ}I()}}catch(YZ){if(YZ&&FJ&&typeof YZ.stack==="string"){var kJ=YZ.stack.split(`
147
+ `),oJ=FJ.stack.split(`
148
+ `),IQ=kJ.length-1,RQ=oJ.length-1;while(IQ>=1&&RQ>=0&&kJ[IQ]!==oJ[RQ])RQ--;for(;IQ>=1&&RQ>=0;IQ--,RQ--)if(kJ[IQ]!==oJ[RQ]){if(IQ!==1||RQ!==1)do if(IQ--,RQ--,RQ<0||kJ[IQ]!==oJ[RQ]){var OZ=`
149
+ `+kJ[IQ].replace(" at new "," at ");if(I.displayName&&OZ.includes("<anonymous>"))OZ=OZ.replace("<anonymous>",I.displayName);if(typeof I==="function")PZ.set(I,OZ);return OZ}while(IQ>=1&&RQ>=0);break}}}finally{X7=!1,f7.current=lJ,Z7(),Error.prepareStackTrace=HJ}var $8=I?I.displayName||I.name:"",c7=$8?ZZ($8):"";if(typeof I==="function")PZ.set(I,c7);return c7}function Y7(I,v,l){return yQ(I,!1)}function j7(I){var v=I.prototype;return!!(v&&v.isReactComponent)}function pQ(I,v,l){if(I==null)return"";if(typeof I==="function")return yQ(I,j7(I));if(typeof I==="string")return ZZ(I);switch(I){case y:return ZZ("Suspense");case _:return ZZ("SuspenseList")}if(typeof I==="object")switch(I.$$typeof){case j:return Y7(I.render);case b:return pQ(I.type,v,l);case k:{var FJ=I,HJ=FJ._payload,lJ=FJ._init;try{return pQ(lJ(HJ),v,l)}catch(hJ){}}}return""}var SQ=Object.prototype.hasOwnProperty,pZ={},u7=CJ.ReactDebugCurrentFrame;function XZ(I){if(I){var v=I._owner,l=pQ(I.type,I._source,v?v.type:null);u7.setExtraStackFrame(l)}else u7.setExtraStackFrame(null)}function P7(I,v,l,FJ,HJ){{var lJ=Function.call.bind(SQ);for(var hJ in I)if(lJ(I,hJ)){var kJ=void 0;try{if(typeof I[hJ]!=="function"){var oJ=Error((FJ||"React class")+": "+l+" type `"+hJ+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof I[hJ]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw oJ.name="Invariant Violation",oJ}kJ=I[hJ](v,hJ,FJ,l,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(IQ){kJ=IQ}if(kJ&&!(kJ instanceof Error))XZ(HJ),g("%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).",FJ||"React class",l,hJ,typeof kJ),XZ(null);if(kJ instanceof Error&&!(kJ.message in pZ))pZ[kJ.message]=!0,XZ(HJ),g("Failed %s type: %s",l,kJ.message),XZ(null)}}}var qX=Array.isArray;function G7(I){return qX(I)}function K7(I){{var v=typeof Symbol==="function"&&Symbol.toStringTag,l=v&&I[Symbol.toStringTag]||I.constructor.name||"Object";return l}}function sQ(I){try{return N7(I),!1}catch(v){return!0}}function N7(I){return""+I}function NZ(I){if(sQ(I))return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",K7(I)),N7(I)}var $Z=CJ.ReactCurrentOwner,K8={key:!0,ref:!0,__self:!0,__source:!0},U8,g7,U7;U7={};function r(I){if(SQ.call(I,"ref")){var v=Object.getOwnPropertyDescriptor(I,"ref").get;if(v&&v.isReactWarning)return!1}return I.ref!==void 0}function WJ(I){if(SQ.call(I,"key")){var v=Object.getOwnPropertyDescriptor(I,"key").get;if(v&&v.isReactWarning)return!1}return I.key!==void 0}function VJ(I,v){if(typeof I.ref==="string"&&$Z.current&&v&&$Z.current.stateNode!==v){var l=JJ($Z.current.type);if(!U7[l])g('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',JJ($Z.current.type),I.ref),U7[l]=!0}}function JQ(I,v){{var l=function(){if(!U8)U8=!0,g("%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)",v)};l.isReactWarning=!0,Object.defineProperty(I,"key",{get:l,configurable:!0})}}function OQ(I,v){{var l=function(){if(!g7)g7=!0,g("%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)",v)};l.isReactWarning=!0,Object.defineProperty(I,"ref",{get:l,configurable:!0})}}var lQ=function(I,v,l,FJ,HJ,lJ,hJ){var kJ={$$typeof:Z,type:I,key:v,ref:l,props:hJ,_owner:lJ};if(kJ._store={},Object.defineProperty(kJ._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(kJ,"_self",{configurable:!1,enumerable:!1,writable:!1,value:FJ}),Object.defineProperty(kJ,"_source",{configurable:!1,enumerable:!1,writable:!1,value:HJ}),Object.freeze)Object.freeze(kJ.props),Object.freeze(kJ);return kJ};function AQ(I,v,l,FJ,HJ){{var lJ,hJ={},kJ=null,oJ=null;if(l!==void 0)NZ(l),kJ=""+l;if(WJ(v))NZ(v.key),kJ=""+v.key;if(r(v))oJ=v.ref,VJ(v,HJ);for(lJ in v)if(SQ.call(v,lJ)&&!K8.hasOwnProperty(lJ))hJ[lJ]=v[lJ];if(I&&I.defaultProps){var IQ=I.defaultProps;for(lJ in IQ)if(hJ[lJ]===void 0)hJ[lJ]=IQ[lJ]}if(kJ||oJ){var RQ=typeof I==="function"?I.displayName||I.name||"Unknown":I;if(kJ)JQ(hJ,RQ);if(oJ)OQ(hJ,RQ)}return lQ(I,kJ,oJ,HJ,FJ,$Z.current,hJ)}}var{ReactCurrentOwner:wZ,ReactDebugCurrentFrame:cJ}=CJ;function rJ(I){if(I){var v=I._owner,l=pQ(I.type,I._source,v?v.type:null);cJ.setExtraStackFrame(l)}else cJ.setExtraStackFrame(null)}var T8=!1;function w7(I){return typeof I==="object"&&I!==null&&I.$$typeof===Z}function zX(){{if(wZ.current){var I=JJ(wZ.current.type);if(I)return`
150
+
151
+ Check the render method of \``+I+"`."}return""}}function K6(I){{if(I!==void 0){var v=I.fileName.replace(/^.*[\\\/]/,""),l=I.lineNumber;return`
152
+
153
+ Check your code at `+v+":"+l+"."}return""}}var m9={};function c9(I){{var v=zX();if(!v){var l=typeof I==="string"?I:I.displayName||I.name;if(l)v=`
154
+
155
+ Check the top-level render call using <`+l+">."}return v}}function tX(I,v){{if(!I._store||I._store.validated||I.key!=null)return;I._store.validated=!0;var l=c9(v);if(m9[l])return;m9[l]=!0;var FJ="";if(I&&I._owner&&I._owner!==wZ.current)FJ=" It was passed a child from "+JJ(I._owner.type)+".";rJ(I),g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',l,FJ),rJ(null)}}function q8(I,v){{if(typeof I!=="object")return;if(G7(I))for(var l=0;l<I.length;l++){var FJ=I[l];if(w7(FJ))tX(FJ,v)}else if(w7(I)){if(I._store)I._store.validated=!0}else if(I){var HJ=yJ(I);if(typeof HJ==="function"){if(HJ!==I.entries){var lJ=HJ.call(I),hJ;while(!(hJ=lJ.next()).done)if(w7(hJ.value))tX(hJ.value,v)}}}}}function $X(I){{var v=I.type;if(v===null||v===void 0||typeof v==="string")return;var l;if(typeof v==="function")l=v.propTypes;else if(typeof v==="object"&&(v.$$typeof===j||v.$$typeof===b))l=v.propTypes;else return;if(l){var FJ=JJ(v);P7(l,I.props,"prop",FJ,I)}else if(v.PropTypes!==void 0&&!T8){T8=!0;var HJ=JJ(v);g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",HJ||"Unknown")}if(typeof v.getDefaultProps==="function"&&!v.getDefaultProps.isReactClassApproved)g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function OX(I){{var v=Object.keys(I.props);for(var l=0;l<v.length;l++){var FJ=v[l];if(FJ!=="children"&&FJ!=="key"){rJ(I),g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",FJ),rJ(null);break}}if(I.ref!==null)rJ(I),g("Invalid attribute `ref` supplied to `React.Fragment`."),rJ(null)}}var d7={};function m7(I,v,l,FJ,HJ,lJ){{var hJ=i(I);if(!hJ){var kJ="";if(I===void 0||typeof I==="object"&&I!==null&&Object.keys(I).length===0)kJ+=" 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 oJ=K6(HJ);if(oJ)kJ+=oJ;else kJ+=zX();var IQ;if(I===null)IQ="null";else if(G7(I))IQ="array";else if(I!==void 0&&I.$$typeof===Z)IQ="<"+(JJ(I.type)||"Unknown")+" />",kJ=" Did you accidentally export a JSX literal instead of a component?";else IQ=typeof I;g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",IQ,kJ)}var RQ=AQ(I,v,l,HJ,lJ);if(RQ==null)return RQ;if(hJ){var OZ=v.children;if(OZ!==void 0)if(FJ)if(G7(OZ)){for(var $8=0;$8<OZ.length;$8++)q8(OZ[$8],I);if(Object.freeze)Object.freeze(OZ)}else g("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 q8(OZ,I)}if(SQ.call(v,"key")){var c7=JJ(I),YZ=Object.keys(v).filter(function(p7){return p7!=="key"}),LX=YZ.length>0?"{key: someKey, "+YZ.join(": ..., ")+": ...}":"{key: someKey}";if(!d7[c7+LX]){var U6=YZ.length>0?"{"+YZ.join(": ..., ")+": ...}":"{}";g(`A props object containing a "key" prop is being spread into JSX:
156
+ let props = %s;
157
+ <%s {...props} />
158
+ React keys must be passed directly to JSX without using spread:
159
+ let props = %s;
160
+ <%s key={someKey} {...props} />`,LX,c7,U6,c7),d7[c7+LX]=!0}}if(I===K)OX(RQ);else $X(RQ);return RQ}}var z8=m7;J_.Fragment=K,J_.jsxDEV=z8})()});class b5{_handlers=new Map;on(Z,Y){if(!this._handlers.has(Z))this._handlers.set(Z,new Set);return this._handlers.get(Z).add(Y),()=>this.off(Z,Y)}once(Z,Y){let K=(z)=>{this.off(Z,K),Y(z)};return this.on(Z,K)}off(Z,Y){let K=this._handlers.get(Z);if(K)K.delete(Y)}emit(Z){let Y=this._handlers.get(Z.type);if(!Y)return;for(let K of Y)try{K(Z)}catch(z){console.error(`[EventEmitter] Handler error for ${Z.type}:`,z)}}removeAllListeners(Z){if(Z)this._handlers.delete(Z);else this._handlers.clear()}listenerCount(Z){return this._handlers.get(Z)?.size??0}}class f5{_definitions;_values;_listeners;_proxy;constructor(Z,Y){this._definitions=Z,this._listeners=new Set,this._values={};for(let[K,z]of Object.entries(Z))this._values[K]=z.value;if(Y){for(let[K,z]of Object.entries(Y))if(K in this._definitions)this._values[K]=this._validate(K,z)}this._proxy=this._createProxy()}_createProxy(){let Z=this;return new Proxy(this._values,{get(Y,K){return Y[K]},set(Y,K,z){if(!(K in Z._definitions))return console.warn(`[ParamStore] Unknown parameter: ${K}`),!1;let $=Z._validate(K,z),F=Y[K];if($!==F)Y[K]=$,Z._notify(K,$,F);return!0},has(Y,K){return K in Y},ownKeys(Y){return Object.keys(Y)},getOwnPropertyDescriptor(Y,K){if(K in Y)return{enumerable:!0,configurable:!0,value:Y[K]};return}})}_validate(Z,Y){let K=this._definitions[Z];if(!K)return Y;switch(K.type){case"number":{let z=typeof Y==="number"?Y:parseFloat(String(Y));if(isNaN(z))z=K.value;if(K.min!==void 0)z=Math.max(K.min,z);if(K.max!==void 0)z=Math.min(K.max,z);if(K.step!==void 0)z=Math.round(z/K.step)*K.step;return z}case"color":{let z=String(Y);if(/^#[0-9A-Fa-f]{6}$/.test(z))return z;if(/^#[0-9A-Fa-f]{3}$/.test(z))return z;if(/^#[0-9A-Fa-f]{8}$/.test(z))return z;if(/^rgb\(/.test(z))return z;if(/^rgba\(/.test(z))return z;if(/^hsl\(/.test(z))return z;if(/^hsla\(/.test(z))return z;return K.value}case"boolean":if(typeof Y==="boolean")return Y;if(Y==="true"||Y==="1")return!0;if(Y==="false"||Y==="0")return!1;return Boolean(Y);case"string":return String(Y);case"select":{let z=String(Y);return(K.options||[]).some((B)=>typeof B==="object"?B.value===z:B===z)?z:K.value}case"point2d":{if(typeof Y==="object"&&Y!==null&&"x"in Y&&"y"in Y)return{x:Number(Y.x),y:Number(Y.y)};return K.value}case"point3d":{if(typeof Y==="object"&&Y!==null&&"x"in Y&&"y"in Y&&"z"in Y)return{x:Number(Y.x),y:Number(Y.y),z:Number(Y.z)};return K.value}default:return Y}}_notify(Z,Y,K){for(let z of this._listeners)try{z(Z,Y,K)}catch($){console.error("[ParamStore] Listener error:",$)}}getProxy(){return this._proxy}getSnapshot(){return{...this._values}}getDefinitions(){return{...this._definitions}}set(Z,Y){this._proxy[Z]=Y}setMultiple(Z){for(let[Y,K]of Object.entries(Z))this._proxy[Y]=K}reset(){for(let[Z,Y]of Object.entries(this._definitions))this._proxy[Z]=Y.value}subscribe(Z){return this._listeners.add(Z),()=>this._listeners.delete(Z)}addDefinition(Z,Y){this._definitions[Z]=Y,this._values[Z]=Y.value}}class v5{_byName=new Map;_byId=new Map;_onRegister=new Set;_onUnregister=new Set;register(Z,Y,K){if(this._byName.has(Z))this.unregister(Z);let z=this._generateId(),$={name:Z,id:z,object:Y,metadata:K};this._byName.set(Z,$),this._byId.set(z,$);for(let F of this._onRegister)try{F(Z,z,Y)}catch(B){console.error("[ObjectRegistry] onRegister callback error:",B)}return z}unregister(Z){let Y=this._byName.get(Z);if(!Y)return!1;this._byName.delete(Z),this._byId.delete(Y.id);for(let K of this._onUnregister)try{K(Z)}catch(z){console.error("[ObjectRegistry] onUnregister callback error:",z)}return!0}findByName(Z){return this._byName.get(Z)?.object}findById(Z){return this._byId.get(Z)?.object}getInfo(Z){return this._byName.get(Z)}has(Z){return this._byName.has(Z)}getNames(){return Array.from(this._byName.keys())}getAll(){let Z=new Map;for(let[Y,K]of this._byName)Z.set(Y,K.object);return Z}query(Z){let Y=[];for(let K of this._byName.values())if(Z(K))Y.push(K);return Y}findByType(Z){return this.query((Y)=>Y.metadata?.type===Z).map((Y)=>Y.object)}clear(){let Z=Array.from(this._byName.keys());for(let Y of Z)this.unregister(Y)}onRegister(Z){return this._onRegister.add(Z),()=>this._onRegister.delete(Z)}onUnregister(Z){return this._onUnregister.add(Z),()=>this._onUnregister.delete(Z)}get size(){return this._byName.size}_generateId(){return`obj_${Date.now()}_${Math.random().toString(36).slice(2,9)}`}}class u5{_isReady=!1;_isPlaying=!1;_isDestroyed=!1;_currentFrame=0;_paramStore;_events;_objects;_mount;_frameRate;_filename="capture";_cleanups=[];_userCleanup;_animationFrameId;_lastFrameTime=0;_resizeObserver;_captureHandler;constructor(Z){if(this._mount=Z.mount,this._frameRate=Z.frameRate??60,Z.background)this._mount.style.background=Z.background;this._paramStore=new f5(Z.paramDefs??{},Z.initialParams),this._events=new b5,this._objects=new v5,this._paramStore.subscribe((Y,K,z)=>{this._events.emit({type:"paramChange",timestamp:Date.now(),key:Y,value:K,previousValue:z})}),this._setupResizeObserver(),this._runSetup(Z.setup,Z.autoplay??!0)}get isReady(){return this._isReady}get isPlaying(){return this._isPlaying}get isDestroyed(){return this._isDestroyed}get currentFrame(){return this._currentFrame}get mount(){return this._mount}get params(){return this._paramStore.getProxy()}get events(){return this._events}get objects(){return this._objects}setParam(Z,Y){this._paramStore.set(Z,Y)}setParams(Z){this._paramStore.setMultiple(Z)}getParams(){return this._paramStore.getSnapshot()}getParamDefs(){return this._paramStore.getDefinitions()}resetParams(){this._paramStore.reset()}registerObject(Z,Y,K){return this._objects.register(Z,Y,K)}findObjectByName(Z){return this._objects.findByName(Z)}findObjectById(Z){return this._objects.findById(Z)}getAllObjects(){return this._objects.getAll()}play(){if(this._isPlaying||this._isDestroyed)return;this._isPlaying=!0,this._lastFrameTime=performance.now(),this._tick(),this._events.emit({type:"play",timestamp:Date.now()})}pause(){if(!this._isPlaying)return;if(this._isPlaying=!1,this._animationFrameId)cancelAnimationFrame(this._animationFrameId),this._animationFrameId=void 0;this._events.emit({type:"pause",timestamp:Date.now()})}toggle(){if(this._isPlaying)this.pause();else this.play()}on(Z,Y){return this._events.on(Z,Y)}once(Z,Y){return this._events.once(Z,Y)}off(Z,Y){this._events.off(Z,Y)}async captureImage(Z="png"){if(this._captureHandler)return this._captureHandler(Z);let Y=this._mount.querySelector("canvas");if(!Y)return console.warn("[Experience] No canvas found for capture"),null;return new Promise((K)=>{let z=`image/${Z}`,$=Z==="jpeg"?0.92:void 0;Y.toBlob((F)=>K(F),z,$)})}getFilename(){return this._filename}addCleanup(Z){if(typeof Z==="function")this._cleanups.push(Z)}destroy(){if(this._isDestroyed)return;if(this._isDestroyed=!0,this.pause(),this._userCleanup)try{this._userCleanup()}catch(Z){console.error("[Experience] User cleanup error:",Z)}while(this._cleanups.length>0){let Z=this._cleanups.pop();if(Z)try{Z()}catch(Y){console.error("[Experience] Cleanup error:",Y)}}this._resizeObserver?.disconnect(),this._objects.clear(),this._events.removeAllListeners(),this._events.emit({type:"destroyed",timestamp:Date.now()})}async _runSetup(Z,Y){try{let K=this._createContext(),z=await Z(K);if(typeof z==="function")this._userCleanup=z;if(this._isReady=!0,this._events.emit({type:"ready",timestamp:Date.now()}),Y)this.play()}catch(K){console.error("[Experience] Setup error:",K),this._events.emit({type:"error",timestamp:Date.now(),error:K instanceof Error?K:Error(String(K))})}}_createContext(){return{mount:this._mount,params:this._paramStore.getProxy(),exports:this._createExportsApi(),environment:this._createEnvironmentApi(),registerObject:(Z,Y,K)=>this._objects.register(Z,Y,K),findObjectByName:(Z)=>this._objects.findByName(Z),experience:this}}_createExportsApi(){return{captureImage:(Z)=>this.captureImage(Z),setFilename:(Z)=>{this._filename=Z},registerCaptureHandler:(Z)=>{this._captureHandler=Z}}}_createEnvironmentApi(){return{window,document,onResize:(Z)=>{let Y=()=>{Z(this._mount.clientWidth,this._mount.clientHeight)};Y();let K=new ResizeObserver(Y);K.observe(this._mount);let z=()=>K.disconnect();return this._cleanups.push(z),z},addCleanup:(Z)=>this.addCleanup(Z)}}_setupResizeObserver(){this._resizeObserver=new ResizeObserver((Z)=>{for(let Y of Z){let{width:K,height:z}=Y.contentRect;this._events.emit({type:"resize",timestamp:Date.now(),width:K,height:z})}}),this._resizeObserver.observe(this._mount)}_tick(){if(!this._isPlaying)return;let Z=performance.now(),Y=Z-this._lastFrameTime,K=1000/this._frameRate;if(Y>=K)this._currentFrame++,this._lastFrameTime=Z-Y%K,this._events.emit({type:"frame",timestamp:Date.now(),frame:this._currentFrame,deltaTime:Y});this._animationFrameId=requestAnimationFrame(()=>this._tick())}}/*! Tweakpane 4.0.5 (c) 2016 cocopon, licensed under the MIT license. */function J7(Z){return Z}function MQ(Z){return Z===null||Z===void 0}function bz(Z){return Z!==null&&typeof Z==="object"}function Tz(Z){return Z!==null&&typeof Z==="object"}function rR(Z,Y){if(Z.length!==Y.length)return!1;for(let K=0;K<Z.length;K++)if(Z[K]!==Y[K])return!1;return!0}function f9(Z,Y){return Array.from(new Set([...Object.keys(Z),...Object.keys(Y)])).reduce((z,$)=>{let F=Z[$],B=Y[$];return Tz(F)&&Tz(B)?Object.assign(Object.assign({},z),{[$]:f9(F,B)}):Object.assign(Object.assign({},z),{[$]:$ in Y?B:F})},{})}function fz(Z){if(!bz(Z))return!1;return"target"in Z}var oR={alreadydisposed:()=>"View has been already disposed",invalidparams:(Z)=>`Invalid parameters for '${Z.name}'`,nomatchingcontroller:(Z)=>`No matching controller for '${Z.key}'`,nomatchingview:(Z)=>`No matching view for '${JSON.stringify(Z.params)}'`,notbindable:()=>"Value is not bindable",notcompatible:(Z)=>`Not compatible with plugin '${Z.id}'`,propertynotfound:(Z)=>`Property '${Z.name}' not found`,shouldneverhappen:()=>"This error should never happen"};class hQ{static alreadyDisposed(){return new hQ({type:"alreadydisposed"})}static notBindable(){return new hQ({type:"notbindable"})}static notCompatible(Z,Y){return new hQ({type:"notcompatible",context:{id:`${Z}.${Y}`}})}static propertyNotFound(Z){return new hQ({type:"propertynotfound",context:{name:Z}})}static shouldNeverHappen(){return new hQ({type:"shouldneverhappen"})}constructor(Z){var Y;this.message=(Y=oR[Z.type](J7(Z.context)))!==null&&Y!==void 0?Y:"Unexpected error",this.name=this.constructor.name,this.stack=Error(this.message).stack,this.type=Z.type}toString(){return this.message}}class c5{constructor(Z,Y){this.obj_=Z,this.key=Y}static isBindable(Z){if(Z===null)return!1;if(typeof Z!=="object"&&typeof Z!=="function")return!1;return!0}read(){return this.obj_[this.key]}write(Z){this.obj_[this.key]=Z}writeProperty(Z,Y){let K=this.read();if(!c5.isBindable(K))throw hQ.notBindable();if(!(Z in K))throw hQ.propertyNotFound(Z);K[Z]=Y}}class fQ{constructor(){this.observers_={}}on(Z,Y,K){var z;let $=this.observers_[Z];if(!$)$=this.observers_[Z]=[];return $.push({handler:Y,key:(z=K===null||K===void 0?void 0:K.key)!==null&&z!==void 0?z:Y}),this}off(Z,Y){let K=this.observers_[Z];if(K)this.observers_[Z]=K.filter((z)=>{return z.key!==Y});return this}emit(Z,Y){let K=this.observers_[Z];if(!K)return;K.forEach((z)=>{z.handler(Y)})}}class sW{constructor(Z,Y){var K;this.constraint_=Y===null||Y===void 0?void 0:Y.constraint,this.equals_=(K=Y===null||Y===void 0?void 0:Y.equals)!==null&&K!==void 0?K:(z,$)=>z===$,this.emitter=new fQ,this.rawValue_=Z}get constraint(){return this.constraint_}get rawValue(){return this.rawValue_}set rawValue(Z){this.setRawValue(Z,{forceEmit:!1,last:!0})}setRawValue(Z,Y){let K=Y!==null&&Y!==void 0?Y:{forceEmit:!1,last:!0},z=this.constraint_?this.constraint_.constrain(Z):Z,$=this.rawValue_;if(!!this.equals_($,z)&&!K.forceEmit)return;this.emitter.emit("beforechange",{sender:this}),this.rawValue_=z,this.emitter.emit("change",{options:K,previousRawValue:$,rawValue:z,sender:this})}}class lW{constructor(Z){this.emitter=new fQ,this.value_=Z}get rawValue(){return this.value_}set rawValue(Z){this.setRawValue(Z,{forceEmit:!1,last:!0})}setRawValue(Z,Y){let K=Y!==null&&Y!==void 0?Y:{forceEmit:!1,last:!0},z=this.value_;if(z===Z&&!K.forceEmit)return;this.emitter.emit("beforechange",{sender:this}),this.value_=Z,this.emitter.emit("change",{options:K,previousRawValue:z,rawValue:this.value_,sender:this})}}class iW{constructor(Z){this.emitter=new fQ,this.onValueBeforeChange_=this.onValueBeforeChange_.bind(this),this.onValueChange_=this.onValueChange_.bind(this),this.value_=Z,this.value_.emitter.on("beforechange",this.onValueBeforeChange_),this.value_.emitter.on("change",this.onValueChange_)}get rawValue(){return this.value_.rawValue}onValueBeforeChange_(Z){this.emitter.emit("beforechange",Object.assign(Object.assign({},Z),{sender:this}))}onValueChange_(Z){this.emitter.emit("change",Object.assign(Object.assign({},Z),{sender:this}))}}function VQ(Z,Y){let K=Y===null||Y===void 0?void 0:Y.constraint,z=Y===null||Y===void 0?void 0:Y.equals;if(!K&&!z)return new lW(Z);return new sW(Z,Y)}function tR(Z){return[new iW(Z),(Y,K)=>{Z.setRawValue(Y,K)}]}class vJ{constructor(Z){this.emitter=new fQ,this.valMap_=Z;for(let Y in this.valMap_)this.valMap_[Y].emitter.on("change",()=>{this.emitter.emit("change",{key:Y,sender:this})})}static createCore(Z){return Object.keys(Z).reduce((K,z)=>{return Object.assign(K,{[z]:VQ(Z[z])})},{})}static fromObject(Z){let Y=this.createCore(Z);return new vJ(Y)}get(Z){return this.valMap_[Z].rawValue}set(Z,Y){this.valMap_[Z].rawValue=Y}value(Z){return this.valMap_[Z]}}class n1{constructor(Z){this.values=vJ.fromObject({max:Z.max,min:Z.min})}constrain(Z){let Y=this.values.get("max"),K=this.values.get("min");return Math.min(Math.max(Z,K),Y)}}class nW{constructor(Z){this.values=vJ.fromObject({max:Z.max,min:Z.min})}constrain(Z){let Y=this.values.get("max"),K=this.values.get("min"),z=Z;if(!MQ(K))z=Math.max(z,K);if(!MQ(Y))z=Math.min(z,Y);return z}}class rW{constructor(Z,Y=0){this.step=Z,this.origin=Y}constrain(Z){let Y=this.origin%this.step,K=Math.round((Z-Y)/this.step);return Y+K*this.step}}class oW{constructor(Z){this.text=Z}evaluate(){return Number(this.text)}toString(){return this.text}}var aR={"**":(Z,Y)=>Math.pow(Z,Y),"*":(Z,Y)=>Z*Y,"/":(Z,Y)=>Z/Y,"%":(Z,Y)=>Z%Y,"+":(Z,Y)=>Z+Y,"-":(Z,Y)=>Z-Y,"<<":(Z,Y)=>Z<<Y,">>":(Z,Y)=>Z>>Y,">>>":(Z,Y)=>Z>>>Y,"&":(Z,Y)=>Z&Y,"^":(Z,Y)=>Z^Y,"|":(Z,Y)=>Z|Y};class tW{constructor(Z,Y,K){this.left=Y,this.operator=Z,this.right=K}evaluate(){let Z=aR[this.operator];if(!Z)throw Error(`unexpected binary operator: '${this.operator}`);return Z(this.left.evaluate(),this.right.evaluate())}toString(){return["b(",this.left.toString(),this.operator,this.right.toString(),")"].join(" ")}}var eR={"+":(Z)=>Z,"-":(Z)=>-Z,"~":(Z)=>~Z};class aW{constructor(Z,Y){this.operator=Z,this.expression=Y}evaluate(){let Z=eR[this.operator];if(!Z)throw Error(`unexpected unary operator: '${this.operator}`);return Z(this.expression.evaluate())}toString(){return["u(",this.operator,this.expression.toString(),")"].join(" ")}}function vz(Z){return(Y,K)=>{for(let z=0;z<Z.length;z++){let $=Z[z](Y,K);if($!=="")return $}return""}}function Z4(Z,Y){var K;let z=Z.substr(Y).match(/^\s+/);return(K=z&&z[0])!==null&&K!==void 0?K:""}function JV(Z,Y){let K=Z.substr(Y,1);return K.match(/^[1-9]$/)?K:""}function X4(Z,Y){var K;let z=Z.substr(Y).match(/^[0-9]+/);return(K=z&&z[0])!==null&&K!==void 0?K:""}function QV(Z,Y){let K=X4(Z,Y);if(K!=="")return K;let z=Z.substr(Y,1);if(Y+=1,z!=="-"&&z!=="+")return"";let $=X4(Z,Y);if($==="")return"";return z+$}function uz(Z,Y){let K=Z.substr(Y,1);if(Y+=1,K.toLowerCase()!=="e")return"";let z=QV(Z,Y);if(z==="")return"";return K+z}function eW(Z,Y){let K=Z.substr(Y,1);if(K==="0")return K;let z=JV(Z,Y);if(Y+=z.length,z==="")return"";return z+X4(Z,Y)}function ZV(Z,Y){let K=eW(Z,Y);if(Y+=K.length,K==="")return"";let z=Z.substr(Y,1);if(Y+=z.length,z!==".")return"";let $=X4(Z,Y);return Y+=$.length,K+z+$+uz(Z,Y)}function XV(Z,Y){let K=Z.substr(Y,1);if(Y+=K.length,K!==".")return"";let z=X4(Z,Y);if(Y+=z.length,z==="")return"";return K+z+uz(Z,Y)}function YV(Z,Y){let K=eW(Z,Y);if(Y+=K.length,K==="")return"";return K+uz(Z,Y)}var GV=vz([ZV,XV,YV]);function KV(Z,Y){var K;let z=Z.substr(Y).match(/^[01]+/);return(K=z&&z[0])!==null&&K!==void 0?K:""}function UV(Z,Y){let K=Z.substr(Y,2);if(Y+=K.length,K.toLowerCase()!=="0b")return"";let z=KV(Z,Y);if(z==="")return"";return K+z}function qV(Z,Y){var K;let z=Z.substr(Y).match(/^[0-7]+/);return(K=z&&z[0])!==null&&K!==void 0?K:""}function zV(Z,Y){let K=Z.substr(Y,2);if(Y+=K.length,K.toLowerCase()!=="0o")return"";let z=qV(Z,Y);if(z==="")return"";return K+z}function $V(Z,Y){var K;let z=Z.substr(Y).match(/^[0-9a-f]+/i);return(K=z&&z[0])!==null&&K!==void 0?K:""}function OV(Z,Y){let K=Z.substr(Y,2);if(Y+=K.length,K.toLowerCase()!=="0x")return"";let z=$V(Z,Y);if(z==="")return"";return K+z}var LV=vz([UV,zV,OV]),WV=vz([LV,GV]);function DV(Z,Y){let K=WV(Z,Y);if(Y+=K.length,K==="")return null;return{evaluable:new oW(K),cursor:Y}}function HV(Z,Y){let K=Z.substr(Y,1);if(Y+=K.length,K!=="(")return null;let z=QD(Z,Y);if(!z)return null;Y=z.cursor,Y+=Z4(Z,Y).length;let $=Z.substr(Y,1);if(Y+=$.length,$!==")")return null;return{evaluable:z.evaluable,cursor:Y}}function MV(Z,Y){var K;return(K=DV(Z,Y))!==null&&K!==void 0?K:HV(Z,Y)}function JD(Z,Y){let K=MV(Z,Y);if(K)return K;let z=Z.substr(Y,1);if(Y+=z.length,z!=="+"&&z!=="-"&&z!=="~")return null;let $=JD(Z,Y);if(!$)return null;return Y=$.cursor,{cursor:Y,evaluable:new aW(z,$.evaluable)}}function FV(Z,Y,K){K+=Z4(Y,K).length;let z=Z.filter(($)=>Y.startsWith($,K))[0];if(!z)return null;return K+=z.length,K+=Z4(Y,K).length,{cursor:K,operator:z}}function BV(Z,Y){return(K,z)=>{let $=Z(K,z);if(!$)return null;z=$.cursor;let F=$.evaluable;for(;;){let B=FV(Y,K,z);if(!B)break;z=B.cursor;let j=Z(K,z);if(!j)return null;z=j.cursor,F=new tW(B.operator,F,j.evaluable)}return F?{cursor:z,evaluable:F}:null}}var AV=[["**"],["*","/","%"],["+","-"],["<<",">>>",">>"],["&"],["^"],["|"]].reduce((Z,Y)=>{return BV(Z,Y)},JD);function QD(Z,Y){return Y+=Z4(Z,Y).length,AV(Z,Y)}function IV(Z){let Y=QD(Z,0);if(!Y)return null;if(Y.cursor+Z4(Z,Y.cursor).length!==Z.length)return null;return Y.evaluable}function XX(Z){var Y;let K=IV(Z);return(Y=K===null||K===void 0?void 0:K.evaluate())!==null&&Y!==void 0?Y:null}function ZD(Z){if(typeof Z==="number")return Z;if(typeof Z==="string"){let Y=XX(Z);if(!MQ(Y))return Y}return 0}function jV(Z){return String(Z)}function eZ(Z){return(Y)=>{return Y.toFixed(Math.max(Math.min(Z,20),0))}}function UQ(Z,Y,K,z,$){let F=(Z-Y)/(K-Y);return z+F*($-z)}function jW(Z){return String(Z.toFixed(10)).split(".")[1].replace(/0+$/,"").length}function QZ(Z,Y,K){return Math.min(Math.max(Z,Y),K)}function XD(Z,Y){return(Z%Y+Y)%Y}function PV(Z,Y){return!MQ(Z.step)?jW(Z.step):Math.max(jW(Y),2)}function YD(Z){var Y;return(Y=Z.step)!==null&&Y!==void 0?Y:1}function GD(Z,Y){var K;let z=Math.abs((K=Z.step)!==null&&K!==void 0?K:Y);return z===0?0.1:Math.pow(10,Math.floor(Math.log10(z))-1)}function KD(Z,Y){if(!MQ(Z.step))return new rW(Z.step,Y);return null}function UD(Z){if(!MQ(Z.max)&&!MQ(Z.min))return new n1({max:Z.max,min:Z.min});if(!MQ(Z.max)||!MQ(Z.min))return new nW({max:Z.max,min:Z.min});return null}function qD(Z,Y){var K,z,$;return{formatter:(K=Z.format)!==null&&K!==void 0?K:eZ(PV(Z,Y)),keyScale:(z=Z.keyScale)!==null&&z!==void 0?z:YD(Z),pointerScale:($=Z.pointerScale)!==null&&$!==void 0?$:GD(Z,Y)}}function zD(Z){return{format:Z.optional.function,keyScale:Z.optional.number,max:Z.optional.number,min:Z.optional.number,pointerScale:Z.optional.number,step:Z.optional.number}}function gz(Z){return{constraint:Z.constraint,textProps:vJ.fromObject(qD(Z.params,Z.initialValue))}}class nX{constructor(Z){this.controller=Z}get element(){return this.controller.view.element}get disabled(){return this.controller.viewProps.get("disabled")}set disabled(Z){this.controller.viewProps.set("disabled",Z)}get hidden(){return this.controller.viewProps.get("hidden")}set hidden(Z){this.controller.viewProps.set("hidden",Z)}dispose(){this.controller.viewProps.set("disposed",!0)}importState(Z){return this.controller.importState(Z)}exportState(){return this.controller.exportState()}}class U4{constructor(Z){this.target=Z}}class r1 extends U4{constructor(Z,Y,K){super(Z);this.value=Y,this.last=K!==null&&K!==void 0?K:!0}}class $D extends U4{constructor(Z,Y){super(Z);this.expanded=Y}}class OD extends U4{constructor(Z,Y){super(Z);this.index=Y}}class LD extends U4{constructor(Z,Y){super(Z);this.native=Y}}class s1 extends nX{constructor(Z){super(Z);this.onValueChange_=this.onValueChange_.bind(this),this.emitter_=new fQ,this.controller.value.emitter.on("change",this.onValueChange_)}get label(){return this.controller.labelController.props.get("label")}set label(Z){this.controller.labelController.props.set("label",Z)}get key(){return this.controller.value.binding.target.key}get tag(){return this.controller.tag}set tag(Z){this.controller.tag=Z}on(Z,Y){let K=Y.bind(this);return this.emitter_.on(Z,(z)=>{K(z)},{key:Y}),this}off(Z,Y){return this.emitter_.off(Z,Y),this}refresh(){this.controller.value.fetch()}onValueChange_(Z){let Y=this.controller.value;this.emitter_.emit("change",new r1(this,J7(Y.binding.target.read()),Z.options.last))}}class WD{constructor(Z,Y){this.onValueBeforeChange_=this.onValueBeforeChange_.bind(this),this.onValueChange_=this.onValueChange_.bind(this),this.binding=Y,this.value_=Z,this.value_.emitter.on("beforechange",this.onValueBeforeChange_),this.value_.emitter.on("change",this.onValueChange_),this.emitter=new fQ}get rawValue(){return this.value_.rawValue}set rawValue(Z){this.value_.rawValue=Z}setRawValue(Z,Y){this.value_.setRawValue(Z,Y)}fetch(){this.value_.rawValue=this.binding.read()}push(){this.binding.write(this.value_.rawValue)}onValueBeforeChange_(Z){this.emitter.emit("beforechange",Object.assign(Object.assign({},Z),{sender:this}))}onValueChange_(Z){this.push(),this.emitter.emit("change",Object.assign(Object.assign({},Z),{sender:this}))}}function NV(Z){if(!("binding"in Z))return!1;let Y=Z.binding;return fz(Y)&&"read"in Y&&"write"in Y}function wV(Z,Y){let z=Object.keys(Y).reduce(($,F)=>{if($===void 0)return;let B=Y[F],j=B(Z[F]);return j.succeeded?Object.assign(Object.assign({},$),{[F]:j.value}):void 0},{});return J7(z)}function RV(Z,Y){return Z.reduce((K,z)=>{if(K===void 0)return;let $=Y(z);if(!$.succeeded||$.value===void 0)return;return[...K,$.value]},[])}function VV(Z){if(Z===null)return!1;return typeof Z==="object"}function e8(Z){return(Y)=>(K)=>{if(!Y&&K===void 0)return{succeeded:!1,value:void 0};if(Y&&K===void 0)return{succeeded:!0,value:void 0};let z=Z(K);return z!==void 0?{succeeded:!0,value:z}:{succeeded:!1,value:void 0}}}function PW(Z){return{custom:(Y)=>e8(Y)(Z),boolean:e8((Y)=>typeof Y==="boolean"?Y:void 0)(Z),number:e8((Y)=>typeof Y==="number"?Y:void 0)(Z),string:e8((Y)=>typeof Y==="string"?Y:void 0)(Z),function:e8((Y)=>typeof Y==="function"?Y:void 0)(Z),constant:(Y)=>e8((K)=>K===Y?Y:void 0)(Z),raw:e8((Y)=>Y)(Z),object:(Y)=>e8((K)=>{if(!VV(K))return;return wV(K,Y)})(Z),array:(Y)=>e8((K)=>{if(!Array.isArray(K))return;return RV(K,Y)})(Z)}}var _z={optional:PW(!0),required:PW(!1)};function kQ(Z,Y){let K=Y(_z),z=_z.required.object(K)(Z);return z.succeeded?z.value:void 0}function F7(Z,Y,K,z){if(Y&&!Y(Z))return!1;let $=kQ(Z,K);return $?z($):!1}function B7(Z,Y){var K;return f9((K=Z===null||Z===void 0?void 0:Z())!==null&&K!==void 0?K:{},Y)}function h9(Z){return"value"in Z}function DD(Z){if(!bz(Z)||!("binding"in Z))return!1;let Y=Z.binding;return fz(Y)}var R8="http://www.w3.org/2000/svg";function p5(Z){Z.offsetHeight}function SV(Z,Y){let K=Z.style.transition;Z.style.transition="none",Y(),Z.style.transition=K}function dz(Z){return Z.ontouchstart!==void 0}function TV(){return globalThis}function _V(){return J7(TV()).document}function kV(Z){let Y=Z.ownerDocument.defaultView;if(!Y)return null;return"document"in Y?Z.getContext("2d",{willReadFrequently:!0}):null}var EV={check:'<path d="M2 8l4 4l8 -8"/>',dropdown:'<path d="M5 7h6l-3 3 z"/>',p2dpad:'<path d="M8 4v8"/><path d="M4 8h8"/><circle cx="12" cy="12" r="1.2"/>'};function r5(Z,Y){let K=Z.createElementNS(R8,"svg");return K.innerHTML=EV[Y],K}function HD(Z,Y,K){Z.insertBefore(Y,Z.children[K])}function mz(Z){if(Z.parentElement)Z.parentElement.removeChild(Z)}function MD(Z){while(Z.children.length>0)Z.removeChild(Z.children[0])}function CV(Z){while(Z.childNodes.length>0)Z.removeChild(Z.childNodes[0])}function FD(Z){if(Z.relatedTarget)return J7(Z.relatedTarget);if("explicitOriginalTarget"in Z)return Z.explicitOriginalTarget;return null}function QX(Z,Y){Z.emitter.on("change",(K)=>{Y(K.rawValue)}),Y(Z.rawValue)}function V8(Z,Y,K){QX(Z.value(Y),K)}var xV="tp";function eJ(Z){return(K,z)=>{return[xV,"-",Z,"v",K?`_${K}`:"",z?`-${z}`:""].join("")}}var a0=eJ("lbl");function hV(Z,Y){let K=Z.createDocumentFragment();return Y.split(`
161
+ `).map(($)=>{return Z.createTextNode($)}).forEach(($,F)=>{if(F>0)K.appendChild(Z.createElement("br"));K.appendChild($)}),K}class cz{constructor(Z,Y){this.element=Z.createElement("div"),this.element.classList.add(a0()),Y.viewProps.bindClassModifiers(this.element);let K=Z.createElement("div");K.classList.add(a0("l")),V8(Y.props,"label",($)=>{if(MQ($))this.element.classList.add(a0(void 0,"nol"));else this.element.classList.remove(a0(void 0,"nol")),CV(K),K.appendChild(hV(Z,$))}),this.element.appendChild(K),this.labelElement=K;let z=Z.createElement("div");z.classList.add(a0("v")),this.element.appendChild(z),this.valueElement=z}}class pz{constructor(Z,Y){this.props=Y.props,this.valueController=Y.valueController,this.viewProps=Y.valueController.viewProps,this.view=new cz(Z,{props:Y.props,viewProps:this.viewProps}),this.view.valueElement.appendChild(this.valueController.view.element)}importProps(Z){return F7(Z,null,(Y)=>({label:Y.optional.string}),(Y)=>{return this.props.set("label",Y.label),!0})}exportProps(){return B7(null,{label:this.props.get("label")})}}function yV(){return["veryfirst","first","last","verylast"]}var NW=eJ(""),wW={veryfirst:"vfst",first:"fst",last:"lst",verylast:"vlst"};class q4{constructor(Z){this.parent_=null,this.blade=Z.blade,this.view=Z.view,this.viewProps=Z.viewProps;let Y=this.view.element;this.blade.value("positions").emitter.on("change",()=>{yV().forEach((K)=>{Y.classList.remove(NW(void 0,wW[K]))}),this.blade.get("positions").forEach((K)=>{Y.classList.add(NW(void 0,wW[K]))})}),this.viewProps.handleDispose(()=>{mz(Y)})}get parent(){return this.parent_}set parent(Z){this.parent_=Z,this.viewProps.set("parent",this.parent_?this.parent_.viewProps:null)}importState(Z){return F7(Z,null,(Y)=>({disabled:Y.required.boolean,hidden:Y.required.boolean}),(Y)=>{return this.viewProps.importState(Y),!0})}exportState(){return B7(null,Object.assign({},this.viewProps.exportState()))}}class iX extends q4{constructor(Z,Y){if(Y.value!==Y.valueController.value)throw hQ.shouldNeverHappen();let K=Y.valueController.viewProps,z=new pz(Z,{blade:Y.blade,props:Y.props,valueController:Y.valueController});super(Object.assign(Object.assign({},Y),{view:new cz(Z,{props:Y.props,viewProps:K}),viewProps:K}));this.labelController=z,this.value=Y.value,this.valueController=Y.valueController,this.view.valueElement.appendChild(this.valueController.view.element)}importState(Z){return F7(Z,(Y)=>{var K,z,$;return super.importState(Y)&&this.labelController.importProps(Y)&&(($=(z=(K=this.valueController).importProps)===null||z===void 0?void 0:z.call(K,Z))!==null&&$!==void 0?$:!0)},(Y)=>({value:Y.optional.raw}),(Y)=>{if(Y.value)this.value.rawValue=Y.value;return!0})}exportState(){var Z,Y,K;return B7(()=>super.exportState(),Object.assign(Object.assign({value:this.value.rawValue},this.labelController.exportProps()),(K=(Y=(Z=this.valueController).exportProps)===null||Y===void 0?void 0:Y.call(Z))!==null&&K!==void 0?K:{}))}}function RW(Z){let Y=Object.assign({},Z);return delete Y.value,Y}class sz extends iX{constructor(Z,Y){super(Z,Y);this.tag=Y.tag}importState(Z){return F7(Z,(Y)=>super.importState(RW(Z)),(Y)=>({tag:Y.optional.string}),(Y)=>{return this.tag=Y.tag,!0})}exportState(){return B7(()=>RW(super.exportState()),{binding:{key:this.value.binding.target.key,value:this.value.binding.target.read()},tag:this.tag})}}function bV(Z){return h9(Z)&&DD(Z.value)}class BD extends sz{importState(Z){return F7(Z,(Y)=>super.importState(Y),(Y)=>({binding:Y.required.object({value:Y.required.raw})}),(Y)=>{return this.value.binding.inject(Y.binding.value),this.value.fetch(),!0})}}function fV(Z){return h9(Z)&&NV(Z.value)}function AD(Z,Y){while(Z.length<Y)Z.push(void 0)}function vV(Z){let Y=[];return AD(Y,Z),Y}function uV(Z){let Y=Z.indexOf(void 0);return J7(Y<0?Z:Z.slice(0,Y))}function gV(Z,Y){let K=[...uV(Z),Y];if(K.length>Z.length)K.splice(0,K.length-Z.length);else AD(K,Z.length);return K}class ID{constructor(Z){this.emitter=new fQ,this.onTick_=this.onTick_.bind(this),this.onValueBeforeChange_=this.onValueBeforeChange_.bind(this),this.onValueChange_=this.onValueChange_.bind(this),this.binding=Z.binding,this.value_=VQ(vV(Z.bufferSize)),this.value_.emitter.on("beforechange",this.onValueBeforeChange_),this.value_.emitter.on("change",this.onValueChange_),this.ticker=Z.ticker,this.ticker.emitter.on("tick",this.onTick_),this.fetch()}get rawValue(){return this.value_.rawValue}set rawValue(Z){this.value_.rawValue=Z}setRawValue(Z,Y){this.value_.setRawValue(Z,Y)}fetch(){this.value_.rawValue=gV(this.value_.rawValue,this.binding.read())}onTick_(){this.fetch()}onValueBeforeChange_(Z){this.emitter.emit("beforechange",Object.assign(Object.assign({},Z),{sender:this}))}onValueChange_(Z){this.emitter.emit("change",Object.assign(Object.assign({},Z),{sender:this}))}}function dV(Z){if(!("binding"in Z))return!1;let Y=Z.binding;return fz(Y)&&"read"in Y&&!("write"in Y)}class jD extends sz{exportState(){return B7(()=>super.exportState(),{binding:{readonly:!0}})}}function mV(Z){return h9(Z)&&dV(Z.value)}class PD extends nX{get label(){return this.controller.labelController.props.get("label")}set label(Z){this.controller.labelController.props.set("label",Z)}get title(){var Z;return(Z=this.controller.buttonController.props.get("title"))!==null&&Z!==void 0?Z:""}set title(Z){this.controller.buttonController.props.set("title",Z)}on(Z,Y){let K=Y.bind(this);return this.controller.buttonController.emitter.on(Z,($)=>{K(new LD(this,$.nativeEvent))}),this}off(Z,Y){return this.controller.buttonController.emitter.off(Z,Y),this}}function cV(Z,Y,K){if(K)Z.classList.add(Y);else Z.classList.remove(Y)}function o1(Z,Y){return(K)=>{cV(Z,Y,K)}}function lz(Z,Y){QX(Z,(K)=>{Y.textContent=K!==null&&K!==void 0?K:""})}var Iz=eJ("btn");class ND{constructor(Z,Y){this.element=Z.createElement("div"),this.element.classList.add(Iz()),Y.viewProps.bindClassModifiers(this.element);let K=Z.createElement("button");K.classList.add(Iz("b")),Y.viewProps.bindDisabled(K),this.element.appendChild(K),this.buttonElement=K;let z=Z.createElement("div");z.classList.add(Iz("t")),lz(Y.props.value("title"),z),this.buttonElement.appendChild(z)}}class wD{constructor(Z,Y){this.emitter=new fQ,this.onClick_=this.onClick_.bind(this),this.props=Y.props,this.viewProps=Y.viewProps,this.view=new ND(Z,{props:this.props,viewProps:this.viewProps}),this.view.buttonElement.addEventListener("click",this.onClick_)}importProps(Z){return F7(Z,null,(Y)=>({title:Y.optional.string}),(Y)=>{return this.props.set("title",Y.title),!0})}exportProps(){return B7(null,{title:this.props.get("title")})}onClick_(Z){this.emitter.emit("click",{nativeEvent:Z,sender:this})}}class kz extends q4{constructor(Z,Y){let K=new wD(Z,{props:Y.buttonProps,viewProps:Y.viewProps}),z=new pz(Z,{blade:Y.blade,props:Y.labelProps,valueController:K});super({blade:Y.blade,view:z.view,viewProps:Y.viewProps});this.buttonController=K,this.labelController=z}importState(Z){return F7(Z,(Y)=>super.importState(Y)&&this.buttonController.importProps(Y)&&this.labelController.importProps(Y),()=>({}),()=>!0)}exportState(){return B7(()=>super.exportState(),Object.assign(Object.assign({},this.buttonController.exportProps()),this.labelController.exportProps()))}}class iz{constructor(Z){let[Y,K]=Z.split("-"),z=Y.split(".");this.major=parseInt(z[0],10),this.minor=parseInt(z[1],10),this.patch=parseInt(z[2],10),this.prerelease=K!==null&&K!==void 0?K:null}toString(){let Z=[this.major,this.minor,this.patch].join(".");return this.prerelease!==null?[Z,this.prerelease].join("-"):Z}}var t1=new iz("2.0.5");function uZ(Z){return Object.assign({core:t1},Z)}var pV=uZ({id:"button",type:"blade",accept(Z){let Y=kQ(Z,(K)=>({title:K.required.string,view:K.required.constant("button"),label:K.optional.string}));return Y?{params:Y}:null},controller(Z){return new kz(Z.document,{blade:Z.blade,buttonProps:vJ.fromObject({title:Z.params.title}),labelProps:vJ.fromObject({label:Z.params.label}),viewProps:Z.viewProps})},api(Z){if(Z.controller instanceof kz)return new PD(Z.controller);return null}});function sV(Z,Y){return Z.addBlade(Object.assign(Object.assign({},Y),{view:"button"}))}function lV(Z,Y){return Z.addBlade(Object.assign(Object.assign({},Y),{view:"folder"}))}function iV(Z,Y){return Z.addBlade(Object.assign(Object.assign({},Y),{view:"tab"}))}function nV(Z){if(!bz(Z))return!1;return"refresh"in Z&&typeof Z.refresh==="function"}function rV(Z,Y){if(!c5.isBindable(Z))throw hQ.notBindable();return new c5(Z,Y)}class RD{constructor(Z,Y){this.onRackValueChange_=this.onRackValueChange_.bind(this),this.controller_=Z,this.emitter_=new fQ,this.pool_=Y,this.controller_.rack.emitter.on("valuechange",this.onRackValueChange_)}get children(){return this.controller_.rack.children.map((Z)=>this.pool_.createApi(Z))}addBinding(Z,Y,K){let z=K!==null&&K!==void 0?K:{},$=this.controller_.element.ownerDocument,F=this.pool_.createBinding($,rV(Z,Y),z),B=this.pool_.createBindingApi(F);return this.add(B,z.index)}addFolder(Z){return lV(this,Z)}addButton(Z){return sV(this,Z)}addTab(Z){return iV(this,Z)}add(Z,Y){let K=Z.controller;return this.controller_.rack.add(K,Y),Z}remove(Z){this.controller_.rack.remove(Z.controller)}addBlade(Z){let Y=this.controller_.element.ownerDocument,K=this.pool_.createBlade(Y,Z),z=this.pool_.createApi(K);return this.add(z,Z.index)}on(Z,Y){let K=Y.bind(this);return this.emitter_.on(Z,(z)=>{K(z)},{key:Y}),this}off(Z,Y){return this.emitter_.off(Z,Y),this}refresh(){this.children.forEach((Z)=>{if(nV(Z))Z.refresh()})}onRackValueChange_(Z){let Y=Z.bladeController,K=this.pool_.createApi(Y),z=DD(Y.value)?Y.value.binding:null;this.emitter_.emit("change",new r1(K,z?z.target.read():Y.value.rawValue,Z.options.last))}}class o5 extends nX{constructor(Z,Y){super(Z);this.rackApi_=new RD(Z.rackController,Y)}refresh(){this.rackApi_.refresh()}}class t5 extends q4{constructor(Z){super({blade:Z.blade,view:Z.view,viewProps:Z.rackController.viewProps});this.rackController=Z.rackController}importState(Z){return F7(Z,(Y)=>super.importState(Y),(Y)=>({children:Y.required.array(Y.required.raw)}),(Y)=>{return this.rackController.rack.children.every((K,z)=>{return K.importState(Y.children[z])})})}exportState(){return B7(()=>super.exportState(),{children:this.rackController.rack.children.map((Z)=>Z.exportState())})}}function Ez(Z){return"rackController"in Z}class VD{constructor(Z){this.emitter=new fQ,this.items_=[],this.cache_=new Set,this.onSubListAdd_=this.onSubListAdd_.bind(this),this.onSubListRemove_=this.onSubListRemove_.bind(this),this.extract_=Z}get items(){return this.items_}allItems(){return Array.from(this.cache_)}find(Z){for(let Y of this.allItems())if(Z(Y))return Y;return null}includes(Z){return this.cache_.has(Z)}add(Z,Y){if(this.includes(Z))throw hQ.shouldNeverHappen();let K=Y!==void 0?Y:this.items_.length;this.items_.splice(K,0,Z),this.cache_.add(Z);let z=this.extract_(Z);if(z)z.emitter.on("add",this.onSubListAdd_),z.emitter.on("remove",this.onSubListRemove_),z.allItems().forEach(($)=>{this.cache_.add($)});this.emitter.emit("add",{index:K,item:Z,root:this,target:this})}remove(Z){let Y=this.items_.indexOf(Z);if(Y<0)return;this.items_.splice(Y,1),this.cache_.delete(Z);let K=this.extract_(Z);if(K)K.allItems().forEach((z)=>{this.cache_.delete(z)}),K.emitter.off("add",this.onSubListAdd_),K.emitter.off("remove",this.onSubListRemove_);this.emitter.emit("remove",{index:Y,item:Z,root:this,target:this})}onSubListAdd_(Z){this.cache_.add(Z.item),this.emitter.emit("add",{index:Z.index,item:Z.item,root:this,target:Z.target})}onSubListRemove_(Z){this.cache_.delete(Z.item),this.emitter.emit("remove",{index:Z.index,item:Z.item,root:this,target:Z.target})}}function oV(Z,Y){for(let K=0;K<Z.length;K++){let z=Z[K];if(h9(z)&&z.value===Y)return z}return null}function tV(Z){return Ez(Z)?Z.rackController.rack.bcSet_:null}class SD{constructor(Z){var Y,K;this.emitter=new fQ,this.onBladePositionsChange_=this.onBladePositionsChange_.bind(this),this.onSetAdd_=this.onSetAdd_.bind(this),this.onSetRemove_=this.onSetRemove_.bind(this),this.onChildDispose_=this.onChildDispose_.bind(this),this.onChildPositionsChange_=this.onChildPositionsChange_.bind(this),this.onChildValueChange_=this.onChildValueChange_.bind(this),this.onChildViewPropsChange_=this.onChildViewPropsChange_.bind(this),this.onRackLayout_=this.onRackLayout_.bind(this),this.onRackValueChange_=this.onRackValueChange_.bind(this),this.blade_=(Y=Z.blade)!==null&&Y!==void 0?Y:null,(K=this.blade_)===null||K===void 0||K.value("positions").emitter.on("change",this.onBladePositionsChange_),this.viewProps=Z.viewProps,this.bcSet_=new VD(tV),this.bcSet_.emitter.on("add",this.onSetAdd_),this.bcSet_.emitter.on("remove",this.onSetRemove_)}get children(){return this.bcSet_.items}add(Z,Y){var K;(K=Z.parent)===null||K===void 0||K.remove(Z),Z.parent=this,this.bcSet_.add(Z,Y)}remove(Z){Z.parent=null,this.bcSet_.remove(Z)}find(Z){return this.bcSet_.allItems().filter(Z)}onSetAdd_(Z){this.updatePositions_();let Y=Z.target===Z.root;if(this.emitter.emit("add",{bladeController:Z.item,index:Z.index,root:Y,sender:this}),!Y)return;let K=Z.item;if(K.viewProps.emitter.on("change",this.onChildViewPropsChange_),K.blade.value("positions").emitter.on("change",this.onChildPositionsChange_),K.viewProps.handleDispose(this.onChildDispose_),h9(K))K.value.emitter.on("change",this.onChildValueChange_);else if(Ez(K)){let z=K.rackController.rack;if(z){let $=z.emitter;$.on("layout",this.onRackLayout_),$.on("valuechange",this.onRackValueChange_)}}}onSetRemove_(Z){this.updatePositions_();let Y=Z.target===Z.root;if(this.emitter.emit("remove",{bladeController:Z.item,root:Y,sender:this}),!Y)return;let K=Z.item;if(h9(K))K.value.emitter.off("change",this.onChildValueChange_);else if(Ez(K)){let z=K.rackController.rack;if(z){let $=z.emitter;$.off("layout",this.onRackLayout_),$.off("valuechange",this.onRackValueChange_)}}}updatePositions_(){let Z=this.bcSet_.items.filter((z)=>!z.viewProps.get("hidden")),Y=Z[0],K=Z[Z.length-1];this.bcSet_.items.forEach((z)=>{let $=[];if(z===Y){if($.push("first"),!this.blade_||this.blade_.get("positions").includes("veryfirst"))$.push("veryfirst")}if(z===K){if($.push("last"),!this.blade_||this.blade_.get("positions").includes("verylast"))$.push("verylast")}z.blade.set("positions",$)})}onChildPositionsChange_(){this.updatePositions_(),this.emitter.emit("layout",{sender:this})}onChildViewPropsChange_(Z){this.updatePositions_(),this.emitter.emit("layout",{sender:this})}onChildDispose_(){this.bcSet_.items.filter((Y)=>{return Y.viewProps.get("disposed")}).forEach((Y)=>{this.bcSet_.remove(Y)})}onChildValueChange_(Z){let Y=oV(this.find(h9),Z.sender);if(!Y)throw hQ.alreadyDisposed();this.emitter.emit("valuechange",{bladeController:Y,options:Z.options,sender:this})}onRackLayout_(Z){this.updatePositions_(),this.emitter.emit("layout",{sender:this})}onRackValueChange_(Z){this.emitter.emit("valuechange",{bladeController:Z.bladeController,options:Z.options,sender:this})}onBladePositionsChange_(){this.updatePositions_()}}class a5{constructor(Z){this.onRackAdd_=this.onRackAdd_.bind(this),this.onRackRemove_=this.onRackRemove_.bind(this),this.element=Z.element,this.viewProps=Z.viewProps;let Y=new SD({blade:Z.root?void 0:Z.blade,viewProps:Z.viewProps});Y.emitter.on("add",this.onRackAdd_),Y.emitter.on("remove",this.onRackRemove_),this.rack=Y,this.viewProps.handleDispose(()=>{for(let K=this.rack.children.length-1;K>=0;K--)this.rack.children[K].viewProps.set("disposed",!0)})}onRackAdd_(Z){if(!Z.root)return;HD(this.element,Z.bladeController.view.element,Z.index)}onRackRemove_(Z){if(!Z.root)return;mz(Z.bladeController.view.element)}}function a1(){return new vJ({positions:VQ([],{equals:rR})})}class z4 extends vJ{constructor(Z){super(Z)}static create(Z){let Y={completed:!0,expanded:Z,expandedHeight:null,shouldFixHeight:!1,temporaryExpanded:null},K=vJ.createCore(Y);return new z4(K)}get styleExpanded(){var Z;return(Z=this.get("temporaryExpanded"))!==null&&Z!==void 0?Z:this.get("expanded")}get styleHeight(){if(!this.styleExpanded)return"0";let Z=this.get("expandedHeight");if(this.get("shouldFixHeight")&&!MQ(Z))return`${Z}px`;return"auto"}bindExpandedClass(Z,Y){let K=()=>{if(this.styleExpanded)Z.classList.add(Y);else Z.classList.remove(Y)};V8(this,"expanded",K),V8(this,"temporaryExpanded",K)}cleanUpTransition(){this.set("shouldFixHeight",!1),this.set("expandedHeight",null),this.set("completed",!0)}}function aV(Z,Y){let K=0;return SV(Y,()=>{Z.set("expandedHeight",null),Z.set("temporaryExpanded",!0),p5(Y),K=Y.clientHeight,Z.set("temporaryExpanded",null),p5(Y)}),K}function VW(Z,Y){Y.style.height=Z.styleHeight}function nz(Z,Y){Z.value("expanded").emitter.on("beforechange",()=>{if(Z.set("completed",!1),MQ(Z.get("expandedHeight"))){let K=aV(Z,Y);if(K>0)Z.set("expandedHeight",K)}Z.set("shouldFixHeight",!0),p5(Y)}),Z.emitter.on("change",()=>{VW(Z,Y)}),VW(Z,Y),Y.addEventListener("transitionend",(K)=>{if(K.propertyName!=="height")return;Z.cleanUpTransition()})}class rz extends o5{constructor(Z,Y){super(Z,Y);this.emitter_=new fQ,this.controller.foldable.value("expanded").emitter.on("change",(K)=>{this.emitter_.emit("fold",new $D(this,K.sender.rawValue))}),this.rackApi_.on("change",(K)=>{this.emitter_.emit("change",K)})}get expanded(){return this.controller.foldable.get("expanded")}set expanded(Z){this.controller.foldable.set("expanded",Z)}get title(){return this.controller.props.get("title")}set title(Z){this.controller.props.set("title",Z)}get children(){return this.rackApi_.children}addBinding(Z,Y,K){return this.rackApi_.addBinding(Z,Y,K)}addFolder(Z){return this.rackApi_.addFolder(Z)}addButton(Z){return this.rackApi_.addButton(Z)}addTab(Z){return this.rackApi_.addTab(Z)}add(Z,Y){return this.rackApi_.add(Z,Y)}remove(Z){this.rackApi_.remove(Z)}addBlade(Z){return this.rackApi_.addBlade(Z)}on(Z,Y){let K=Y.bind(this);return this.emitter_.on(Z,(z)=>{K(z)},{key:Y}),this}off(Z,Y){return this.emitter_.off(Z,Y),this}}var TD=eJ("cnt");class _D{constructor(Z,Y){var K;this.className_=eJ((K=Y.viewName)!==null&&K!==void 0?K:"fld"),this.element=Z.createElement("div"),this.element.classList.add(this.className_(),TD()),Y.viewProps.bindClassModifiers(this.element),this.foldable_=Y.foldable,this.foldable_.bindExpandedClass(this.element,this.className_(void 0,"expanded")),V8(this.foldable_,"completed",o1(this.element,this.className_(void 0,"cpl")));let z=Z.createElement("button");z.classList.add(this.className_("b")),V8(Y.props,"title",(y)=>{if(MQ(y))this.element.classList.add(this.className_(void 0,"not"));else this.element.classList.remove(this.className_(void 0,"not"))}),Y.viewProps.bindDisabled(z),this.element.appendChild(z),this.buttonElement=z;let $=Z.createElement("div");$.classList.add(this.className_("i")),this.element.appendChild($);let F=Z.createElement("div");F.classList.add(this.className_("t")),lz(Y.props.value("title"),F),this.buttonElement.appendChild(F),this.titleElement=F;let B=Z.createElement("div");B.classList.add(this.className_("m")),this.buttonElement.appendChild(B);let j=Z.createElement("div");j.classList.add(this.className_("c")),this.element.appendChild(j),this.containerElement=j}}class s5 extends t5{constructor(Z,Y){var K;let z=z4.create((K=Y.expanded)!==null&&K!==void 0?K:!0),$=new _D(Z,{foldable:z,props:Y.props,viewName:Y.root?"rot":void 0,viewProps:Y.viewProps});super(Object.assign(Object.assign({},Y),{rackController:new a5({blade:Y.blade,element:$.containerElement,root:Y.root,viewProps:Y.viewProps}),view:$}));this.onTitleClick_=this.onTitleClick_.bind(this),this.props=Y.props,this.foldable=z,nz(this.foldable,this.view.containerElement),this.rackController.rack.emitter.on("add",()=>{this.foldable.cleanUpTransition()}),this.rackController.rack.emitter.on("remove",()=>{this.foldable.cleanUpTransition()}),this.view.buttonElement.addEventListener("click",this.onTitleClick_)}get document(){return this.view.element.ownerDocument}importState(Z){return F7(Z,(Y)=>super.importState(Y),(Y)=>({expanded:Y.required.boolean,title:Y.optional.string}),(Y)=>{return this.foldable.set("expanded",Y.expanded),this.props.set("title",Y.title),!0})}exportState(){return B7(()=>super.exportState(),{expanded:this.foldable.get("expanded"),title:this.props.get("title")})}onTitleClick_(){this.foldable.set("expanded",!this.foldable.get("expanded"))}}var eV=uZ({id:"folder",type:"blade",accept(Z){let Y=kQ(Z,(K)=>({title:K.required.string,view:K.required.constant("folder"),expanded:K.optional.boolean}));return Y?{params:Y}:null},controller(Z){return new s5(Z.document,{blade:Z.blade,expanded:Z.params.expanded,props:vJ.fromObject({title:Z.params.title}),viewProps:Z.viewProps})},api(Z){if(!(Z.controller instanceof s5))return null;return new rz(Z.controller,Z.pool)}}),JS=eJ("");function SW(Z,Y){return o1(Z,JS(void 0,Y))}class KX extends vJ{constructor(Z){var Y;super(Z);this.onDisabledChange_=this.onDisabledChange_.bind(this),this.onParentChange_=this.onParentChange_.bind(this),this.onParentGlobalDisabledChange_=this.onParentGlobalDisabledChange_.bind(this),[this.globalDisabled_,this.setGlobalDisabled_]=tR(VQ(this.getGlobalDisabled_())),this.value("disabled").emitter.on("change",this.onDisabledChange_),this.value("parent").emitter.on("change",this.onParentChange_),(Y=this.get("parent"))===null||Y===void 0||Y.globalDisabled.emitter.on("change",this.onParentGlobalDisabledChange_)}static create(Z){var Y,K,z;let $=Z!==null&&Z!==void 0?Z:{};return new KX(vJ.createCore({disabled:(Y=$.disabled)!==null&&Y!==void 0?Y:!1,disposed:!1,hidden:(K=$.hidden)!==null&&K!==void 0?K:!1,parent:(z=$.parent)!==null&&z!==void 0?z:null}))}get globalDisabled(){return this.globalDisabled_}bindClassModifiers(Z){QX(this.globalDisabled_,SW(Z,"disabled")),V8(this,"hidden",SW(Z,"hidden"))}bindDisabled(Z){QX(this.globalDisabled_,(Y)=>{Z.disabled=Y})}bindTabIndex(Z){QX(this.globalDisabled_,(Y)=>{Z.tabIndex=Y?-1:0})}handleDispose(Z){this.value("disposed").emitter.on("change",(Y)=>{if(Y)Z()})}importState(Z){this.set("disabled",Z.disabled),this.set("hidden",Z.hidden)}exportState(){return{disabled:this.get("disabled"),hidden:this.get("hidden")}}getGlobalDisabled_(){let Z=this.get("parent");return(Z?Z.globalDisabled.rawValue:!1)||this.get("disabled")}updateGlobalDisabled_(){this.setGlobalDisabled_(this.getGlobalDisabled_())}onDisabledChange_(){this.updateGlobalDisabled_()}onParentGlobalDisabledChange_(){this.updateGlobalDisabled_()}onParentChange_(Z){var Y;let K=Z.previousRawValue;K===null||K===void 0||K.globalDisabled.emitter.off("change",this.onParentGlobalDisabledChange_),(Y=this.get("parent"))===null||Y===void 0||Y.globalDisabled.emitter.on("change",this.onParentGlobalDisabledChange_),this.updateGlobalDisabled_()}}var TW=eJ("tbp");class kD{constructor(Z,Y){this.element=Z.createElement("div"),this.element.classList.add(TW()),Y.viewProps.bindClassModifiers(this.element);let K=Z.createElement("div");K.classList.add(TW("c")),this.element.appendChild(K),this.containerElement=K}}var e0=eJ("tbi");class ED{constructor(Z,Y){this.element=Z.createElement("div"),this.element.classList.add(e0()),Y.viewProps.bindClassModifiers(this.element),V8(Y.props,"selected",($)=>{if($)this.element.classList.add(e0(void 0,"sel"));else this.element.classList.remove(e0(void 0,"sel"))});let K=Z.createElement("button");K.classList.add(e0("b")),Y.viewProps.bindDisabled(K),this.element.appendChild(K),this.buttonElement=K;let z=Z.createElement("div");z.classList.add(e0("t")),lz(Y.props.value("title"),z),this.buttonElement.appendChild(z),this.titleElement=z}}class CD{constructor(Z,Y){this.emitter=new fQ,this.onClick_=this.onClick_.bind(this),this.props=Y.props,this.viewProps=Y.viewProps,this.view=new ED(Z,{props:Y.props,viewProps:Y.viewProps}),this.view.buttonElement.addEventListener("click",this.onClick_)}onClick_(){this.emitter.emit("click",{sender:this})}}class l5 extends t5{constructor(Z,Y){let K=new kD(Z,{viewProps:Y.viewProps});super(Object.assign(Object.assign({},Y),{rackController:new a5({blade:Y.blade,element:K.containerElement,viewProps:Y.viewProps}),view:K}));this.onItemClick_=this.onItemClick_.bind(this),this.ic_=new CD(Z,{props:Y.itemProps,viewProps:KX.create()}),this.ic_.emitter.on("click",this.onItemClick_),this.props=Y.props,V8(this.props,"selected",(z)=>{this.itemController.props.set("selected",z),this.viewProps.set("hidden",!z)})}get itemController(){return this.ic_}importState(Z){return F7(Z,(Y)=>super.importState(Y),(Y)=>({selected:Y.required.boolean,title:Y.required.string}),(Y)=>{return this.ic_.props.set("selected",Y.selected),this.ic_.props.set("title",Y.title),!0})}exportState(){return B7(()=>super.exportState(),{selected:this.ic_.props.get("selected"),title:this.ic_.props.get("title")})}onItemClick_(){this.props.set("selected",!0)}}class xD extends o5{constructor(Z,Y){super(Z,Y);this.emitter_=new fQ,this.onSelect_=this.onSelect_.bind(this),this.pool_=Y,this.rackApi_.on("change",(K)=>{this.emitter_.emit("change",K)}),this.controller.tab.selectedIndex.emitter.on("change",this.onSelect_)}get pages(){return this.rackApi_.children}addPage(Z){let Y=this.controller.view.element.ownerDocument,K=new l5(Y,{blade:a1(),itemProps:vJ.fromObject({selected:!1,title:Z.title}),props:vJ.fromObject({selected:!1}),viewProps:KX.create()}),z=this.pool_.createApi(K);return this.rackApi_.add(z,Z.index)}removePage(Z){this.rackApi_.remove(this.rackApi_.children[Z])}on(Z,Y){let K=Y.bind(this);return this.emitter_.on(Z,(z)=>{K(z)},{key:Y}),this}off(Z,Y){return this.emitter_.off(Z,Y),this}onSelect_(Z){this.emitter_.emit("select",new OD(this,Z.rawValue))}}class hD extends o5{get title(){var Z;return(Z=this.controller.itemController.props.get("title"))!==null&&Z!==void 0?Z:""}set title(Z){this.controller.itemController.props.set("title",Z)}get selected(){return this.controller.props.get("selected")}set selected(Z){this.controller.props.set("selected",Z)}get children(){return this.rackApi_.children}addButton(Z){return this.rackApi_.addButton(Z)}addFolder(Z){return this.rackApi_.addFolder(Z)}addTab(Z){return this.rackApi_.addTab(Z)}add(Z,Y){this.rackApi_.add(Z,Y)}remove(Z){this.rackApi_.remove(Z)}addBinding(Z,Y,K){return this.rackApi_.addBinding(Z,Y,K)}addBlade(Z){return this.rackApi_.addBlade(Z)}}var _W=-1;class yD{constructor(){this.onItemSelectedChange_=this.onItemSelectedChange_.bind(this),this.empty=VQ(!0),this.selectedIndex=VQ(_W),this.items_=[]}add(Z,Y){let K=Y!==null&&Y!==void 0?Y:this.items_.length;this.items_.splice(K,0,Z),Z.emitter.on("change",this.onItemSelectedChange_),this.keepSelection_()}remove(Z){let Y=this.items_.indexOf(Z);if(Y<0)return;this.items_.splice(Y,1),Z.emitter.off("change",this.onItemSelectedChange_),this.keepSelection_()}keepSelection_(){if(this.items_.length===0){this.selectedIndex.rawValue=_W,this.empty.rawValue=!0;return}let Z=this.items_.findIndex((Y)=>Y.rawValue);if(Z<0)this.items_.forEach((Y,K)=>{Y.rawValue=K===0}),this.selectedIndex.rawValue=0;else this.items_.forEach((Y,K)=>{Y.rawValue=K===Z}),this.selectedIndex.rawValue=Z;this.empty.rawValue=!1}onItemSelectedChange_(Z){if(Z.rawValue){let Y=this.items_.findIndex((K)=>K===Z.sender);this.items_.forEach((K,z)=>{K.rawValue=z===Y}),this.selectedIndex.rawValue=Y}else this.keepSelection_()}}var J4=eJ("tab");class bD{constructor(Z,Y){this.element=Z.createElement("div"),this.element.classList.add(J4(),TD()),Y.viewProps.bindClassModifiers(this.element),QX(Y.empty,o1(this.element,J4(void 0,"nop")));let K=Z.createElement("div");K.classList.add(J4("t")),this.element.appendChild(K),this.itemsElement=K;let z=Z.createElement("div");z.classList.add(J4("i")),this.element.appendChild(z);let $=Z.createElement("div");$.classList.add(J4("c")),this.element.appendChild($),this.contentsElement=$}}class Cz extends t5{constructor(Z,Y){let K=new yD,z=new bD(Z,{empty:K.empty,viewProps:Y.viewProps});super({blade:Y.blade,rackController:new a5({blade:Y.blade,element:z.contentsElement,viewProps:Y.viewProps}),view:z});this.onRackAdd_=this.onRackAdd_.bind(this),this.onRackRemove_=this.onRackRemove_.bind(this);let $=this.rackController.rack;$.emitter.on("add",this.onRackAdd_),$.emitter.on("remove",this.onRackRemove_),this.tab=K}add(Z,Y){this.rackController.rack.add(Z,Y)}remove(Z){this.rackController.rack.remove(this.rackController.rack.children[Z])}onRackAdd_(Z){if(!Z.root)return;let Y=Z.bladeController;HD(this.view.itemsElement,Y.itemController.view.element,Z.index),Y.itemController.viewProps.set("parent",this.viewProps),this.tab.add(Y.props.value("selected"))}onRackRemove_(Z){if(!Z.root)return;let Y=Z.bladeController;mz(Y.itemController.view.element),Y.itemController.viewProps.set("parent",null),this.tab.remove(Y.props.value("selected"))}}var fD=uZ({id:"tab",type:"blade",accept(Z){let Y=kQ(Z,(K)=>({pages:K.required.array(K.required.object({title:K.required.string})),view:K.required.constant("tab")}));if(!Y||Y.pages.length===0)return null;return{params:Y}},controller(Z){let Y=new Cz(Z.document,{blade:Z.blade,viewProps:Z.viewProps});return Z.params.pages.forEach((K)=>{let z=new l5(Z.document,{blade:a1(),itemProps:vJ.fromObject({selected:!1,title:K.title}),props:vJ.fromObject({selected:!1}),viewProps:KX.create()});Y.add(z)}),Y},api(Z){if(Z.controller instanceof Cz)return new xD(Z.controller,Z.pool);if(Z.controller instanceof l5)return new hD(Z.controller,Z.pool);return null}});function QS(Z,Y){let K=Z.accept(Y.params);if(!K)return null;let z=kQ(Y.params,($)=>({disabled:$.optional.boolean,hidden:$.optional.boolean}));return Z.controller({blade:a1(),document:Y.document,params:J7(Object.assign(Object.assign({},K.params),{disabled:z===null||z===void 0?void 0:z.disabled,hidden:z===null||z===void 0?void 0:z.hidden})),viewProps:KX.create({disabled:z===null||z===void 0?void 0:z.disabled,hidden:z===null||z===void 0?void 0:z.hidden})})}class e5 extends s1{get options(){return this.controller.valueController.props.get("options")}set options(Z){this.controller.valueController.props.set("options",Z)}}class vD{constructor(){this.disabled=!1,this.emitter=new fQ}dispose(){}tick(){if(this.disabled)return;this.emitter.emit("tick",{sender:this})}}class uD{constructor(Z,Y){this.disabled_=!1,this.timerId_=null,this.onTick_=this.onTick_.bind(this),this.doc_=Z,this.emitter=new fQ,this.interval_=Y,this.setTimer_()}get disabled(){return this.disabled_}set disabled(Z){if(this.disabled_=Z,this.disabled_)this.clearTimer_();else this.setTimer_()}dispose(){this.clearTimer_()}clearTimer_(){if(this.timerId_===null)return;let Z=this.doc_.defaultView;if(Z)Z.clearInterval(this.timerId_);this.timerId_=null}setTimer_(){if(this.clearTimer_(),this.interval_<=0)return;let Z=this.doc_.defaultView;if(Z)this.timerId_=Z.setInterval(this.onTick_,this.interval_)}onTick_(){if(this.disabled_)return;this.emitter.emit("tick",{sender:this})}}class e1{constructor(Z){this.constraints=Z}constrain(Z){return this.constraints.reduce((Y,K)=>{return K.constrain(Y)},Z)}}function i5(Z,Y){if(Z instanceof Y)return Z;if(Z instanceof e1){let K=Z.constraints.reduce((z,$)=>{if(z)return z;return $ instanceof Y?$:null},null);if(K)return K}return null}class J6{constructor(Z){this.values=vJ.fromObject({options:Z})}constrain(Z){let Y=this.values.get("options");if(Y.length===0)return Z;return Y.filter((z)=>{return z.value===Z}).length>0?Z:Y[0].value}}function $4(Z){var Y;let K=_z;if(Array.isArray(Z))return(Y=kQ({items:Z},(z)=>({items:z.required.array(z.required.object({text:z.required.string,value:z.required.raw}))})))===null||Y===void 0?void 0:Y.items;if(typeof Z==="object")return K.required.raw(Z).value;return}function oz(Z){if(Array.isArray(Z))return Z;let Y=[];return Object.keys(Z).forEach((K)=>{Y.push({text:K,value:Z[K]})}),Y}function tz(Z){return!MQ(Z)?new J6(oz(J7(Z))):null}var jz=eJ("lst");class gD{constructor(Z,Y){this.onValueChange_=this.onValueChange_.bind(this),this.props_=Y.props,this.element=Z.createElement("div"),this.element.classList.add(jz()),Y.viewProps.bindClassModifiers(this.element);let K=Z.createElement("select");K.classList.add(jz("s")),Y.viewProps.bindDisabled(K),this.element.appendChild(K),this.selectElement=K;let z=Z.createElement("div");z.classList.add(jz("m")),z.appendChild(r5(Z,"dropdown")),this.element.appendChild(z),Y.value.emitter.on("change",this.onValueChange_),this.value_=Y.value,V8(this.props_,"options",($)=>{MD(this.selectElement),$.forEach((F)=>{let B=Z.createElement("option");B.textContent=F.text,this.selectElement.appendChild(B)}),this.update_()})}update_(){let Z=this.props_.get("options").map((Y)=>Y.value);this.selectElement.selectedIndex=Z.indexOf(this.value_.rawValue)}onValueChange_(){this.update_()}}class YX{constructor(Z,Y){this.onSelectChange_=this.onSelectChange_.bind(this),this.props=Y.props,this.value=Y.value,this.viewProps=Y.viewProps,this.view=new gD(Z,{props:this.props,value:this.value,viewProps:this.viewProps}),this.view.selectElement.addEventListener("change",this.onSelectChange_)}onSelectChange_(Z){let Y=J7(Z.currentTarget);this.value.rawValue=this.props.get("options")[Y.selectedIndex].value}importProps(Z){return F7(Z,null,(Y)=>({options:Y.required.custom($4)}),(Y)=>{return this.props.set("options",oz(Y.options)),!0})}exportProps(){return B7(null,{options:this.props.get("options")})}}var kW=eJ("pop");class dD{constructor(Z,Y){this.element=Z.createElement("div"),this.element.classList.add(kW()),Y.viewProps.bindClassModifiers(this.element),QX(Y.shows,o1(this.element,kW(void 0,"v")))}}class az{constructor(Z,Y){this.shows=VQ(!1),this.viewProps=Y.viewProps,this.view=new dD(Z,{shows:this.shows,viewProps:this.viewProps})}}var EW=eJ("txt");class mD{constructor(Z,Y){this.onChange_=this.onChange_.bind(this),this.element=Z.createElement("div"),this.element.classList.add(EW()),Y.viewProps.bindClassModifiers(this.element),this.props_=Y.props,this.props_.emitter.on("change",this.onChange_);let K=Z.createElement("input");K.classList.add(EW("i")),K.type="text",Y.viewProps.bindDisabled(K),this.element.appendChild(K),this.inputElement=K,Y.value.emitter.on("change",this.onChange_),this.value_=Y.value,this.refresh()}refresh(){let Z=this.props_.get("formatter");this.inputElement.value=Z(this.value_.rawValue)}onChange_(){this.refresh()}}class l1{constructor(Z,Y){this.onInputChange_=this.onInputChange_.bind(this),this.parser_=Y.parser,this.props=Y.props,this.value=Y.value,this.viewProps=Y.viewProps,this.view=new mD(Z,{props:Y.props,value:this.value,viewProps:this.viewProps}),this.view.inputElement.addEventListener("change",this.onInputChange_)}onInputChange_(Z){let K=J7(Z.currentTarget).value,z=this.parser_(K);if(!MQ(z))this.value.rawValue=z;this.view.refresh()}}function ZS(Z){return String(Z)}function cD(Z){if(Z==="false")return!1;return!!Z}function CW(Z){return ZS(Z)}function XS(Z){return(Y)=>{return Z.reduce((K,z)=>{if(K!==null)return K;return z(Y)},null)}}var YS=eZ(0);function n5(Z){return YS(Z)+"%"}function pD(Z){return String(Z)}function xz(Z){return Z}function Q6({primary:Z,secondary:Y,forward:K,backward:z}){let $=!1;function F(B){if($)return;$=!0,B(),$=!1}Z.emitter.on("change",(B)=>{F(()=>{Y.setRawValue(K(Z.rawValue,Y.rawValue),B.options)})}),Y.emitter.on("change",(B)=>{F(()=>{Z.setRawValue(z(Z.rawValue,Y.rawValue),B.options)}),F(()=>{Y.setRawValue(K(Z.rawValue,Y.rawValue),B.options)})}),F(()=>{Y.setRawValue(K(Z.rawValue,Y.rawValue),{forceEmit:!1,last:!0})})}function aZ(Z,Y){let K=Z*(Y.altKey?0.1:1)*(Y.shiftKey?10:1);if(Y.upKey)return+K;else if(Y.downKey)return-K;return 0}function Y4(Z){return{altKey:Z.altKey,downKey:Z.key==="ArrowDown",shiftKey:Z.shiftKey,upKey:Z.key==="ArrowUp"}}function GX(Z){return{altKey:Z.altKey,downKey:Z.key==="ArrowLeft",shiftKey:Z.shiftKey,upKey:Z.key==="ArrowRight"}}function GS(Z){return Z==="ArrowUp"||Z==="ArrowDown"}function sD(Z){return GS(Z)||Z==="ArrowLeft"||Z==="ArrowRight"}function Pz(Z,Y){var K,z;let $=Y.ownerDocument.defaultView,F=Y.getBoundingClientRect();return{x:Z.pageX-(((K=$&&$.scrollX)!==null&&K!==void 0?K:0)+F.left),y:Z.pageY-(((z=$&&$.scrollY)!==null&&z!==void 0?z:0)+F.top)}}class rX{constructor(Z){this.lastTouch_=null,this.onDocumentMouseMove_=this.onDocumentMouseMove_.bind(this),this.onDocumentMouseUp_=this.onDocumentMouseUp_.bind(this),this.onMouseDown_=this.onMouseDown_.bind(this),this.onTouchEnd_=this.onTouchEnd_.bind(this),this.onTouchMove_=this.onTouchMove_.bind(this),this.onTouchStart_=this.onTouchStart_.bind(this),this.elem_=Z,this.emitter=new fQ,Z.addEventListener("touchstart",this.onTouchStart_,{passive:!1}),Z.addEventListener("touchmove",this.onTouchMove_,{passive:!0}),Z.addEventListener("touchend",this.onTouchEnd_),Z.addEventListener("mousedown",this.onMouseDown_)}computePosition_(Z){let Y=this.elem_.getBoundingClientRect();return{bounds:{width:Y.width,height:Y.height},point:Z?{x:Z.x,y:Z.y}:null}}onMouseDown_(Z){var Y;Z.preventDefault(),(Y=Z.currentTarget)===null||Y===void 0||Y.focus();let K=this.elem_.ownerDocument;K.addEventListener("mousemove",this.onDocumentMouseMove_),K.addEventListener("mouseup",this.onDocumentMouseUp_),this.emitter.emit("down",{altKey:Z.altKey,data:this.computePosition_(Pz(Z,this.elem_)),sender:this,shiftKey:Z.shiftKey})}onDocumentMouseMove_(Z){this.emitter.emit("move",{altKey:Z.altKey,data:this.computePosition_(Pz(Z,this.elem_)),sender:this,shiftKey:Z.shiftKey})}onDocumentMouseUp_(Z){let Y=this.elem_.ownerDocument;Y.removeEventListener("mousemove",this.onDocumentMouseMove_),Y.removeEventListener("mouseup",this.onDocumentMouseUp_),this.emitter.emit("up",{altKey:Z.altKey,data:this.computePosition_(Pz(Z,this.elem_)),sender:this,shiftKey:Z.shiftKey})}onTouchStart_(Z){Z.preventDefault();let Y=Z.targetTouches.item(0),K=this.elem_.getBoundingClientRect();this.emitter.emit("down",{altKey:Z.altKey,data:this.computePosition_(Y?{x:Y.clientX-K.left,y:Y.clientY-K.top}:void 0),sender:this,shiftKey:Z.shiftKey}),this.lastTouch_=Y}onTouchMove_(Z){let Y=Z.targetTouches.item(0),K=this.elem_.getBoundingClientRect();this.emitter.emit("move",{altKey:Z.altKey,data:this.computePosition_(Y?{x:Y.clientX-K.left,y:Y.clientY-K.top}:void 0),sender:this,shiftKey:Z.shiftKey}),this.lastTouch_=Y}onTouchEnd_(Z){var Y;let K=(Y=Z.targetTouches.item(0))!==null&&Y!==void 0?Y:this.lastTouch_,z=this.elem_.getBoundingClientRect();this.emitter.emit("up",{altKey:Z.altKey,data:this.computePosition_(K?{x:K.clientX-z.left,y:K.clientY-z.top}:void 0),sender:this,shiftKey:Z.shiftKey})}}var x7=eJ("txt");class lD{constructor(Z,Y){if(this.onChange_=this.onChange_.bind(this),this.props_=Y.props,this.props_.emitter.on("change",this.onChange_),this.element=Z.createElement("div"),this.element.classList.add(x7(),x7(void 0,"num")),Y.arrayPosition)this.element.classList.add(x7(void 0,Y.arrayPosition));Y.viewProps.bindClassModifiers(this.element);let K=Z.createElement("input");K.classList.add(x7("i")),K.type="text",Y.viewProps.bindDisabled(K),this.element.appendChild(K),this.inputElement=K,this.onDraggingChange_=this.onDraggingChange_.bind(this),this.dragging_=Y.dragging,this.dragging_.emitter.on("change",this.onDraggingChange_),this.element.classList.add(x7()),this.inputElement.classList.add(x7("i"));let z=Z.createElement("div");z.classList.add(x7("k")),this.element.appendChild(z),this.knobElement=z;let $=Z.createElementNS(R8,"svg");$.classList.add(x7("g")),this.knobElement.appendChild($);let F=Z.createElementNS(R8,"path");F.classList.add(x7("gb")),$.appendChild(F),this.guideBodyElem_=F;let B=Z.createElementNS(R8,"path");B.classList.add(x7("gh")),$.appendChild(B),this.guideHeadElem_=B;let j=Z.createElement("div");j.classList.add(eJ("tt")()),this.knobElement.appendChild(j),this.tooltipElem_=j,Y.value.emitter.on("change",this.onChange_),this.value=Y.value,this.refresh()}onDraggingChange_(Z){if(Z.rawValue===null){this.element.classList.remove(x7(void 0,"drg"));return}this.element.classList.add(x7(void 0,"drg"));let Y=Z.rawValue/this.props_.get("pointerScale"),K=Y+(Y>0?-1:Y<0?1:0),z=QZ(-K,-4,4);this.guideHeadElem_.setAttributeNS(null,"d",[`M ${K+z},0 L${K},4 L${K+z},8`,`M ${Y},-1 L${Y},9`].join(" ")),this.guideBodyElem_.setAttributeNS(null,"d",`M 0,4 L${Y},4`);let $=this.props_.get("formatter");this.tooltipElem_.textContent=$(this.value.rawValue),this.tooltipElem_.style.left=`${Y}px`}refresh(){let Z=this.props_.get("formatter");this.inputElement.value=Z(this.value.rawValue)}onChange_(){this.refresh()}}class Z6{constructor(Z,Y){var K;this.originRawValue_=0,this.onInputChange_=this.onInputChange_.bind(this),this.onInputKeyDown_=this.onInputKeyDown_.bind(this),this.onInputKeyUp_=this.onInputKeyUp_.bind(this),this.onPointerDown_=this.onPointerDown_.bind(this),this.onPointerMove_=this.onPointerMove_.bind(this),this.onPointerUp_=this.onPointerUp_.bind(this),this.parser_=Y.parser,this.props=Y.props,this.sliderProps_=(K=Y.sliderProps)!==null&&K!==void 0?K:null,this.value=Y.value,this.viewProps=Y.viewProps,this.dragging_=VQ(null),this.view=new lD(Z,{arrayPosition:Y.arrayPosition,dragging:this.dragging_,props:this.props,value:this.value,viewProps:this.viewProps}),this.view.inputElement.addEventListener("change",this.onInputChange_),this.view.inputElement.addEventListener("keydown",this.onInputKeyDown_),this.view.inputElement.addEventListener("keyup",this.onInputKeyUp_);let z=new rX(this.view.knobElement);z.emitter.on("down",this.onPointerDown_),z.emitter.on("move",this.onPointerMove_),z.emitter.on("up",this.onPointerUp_)}constrainValue_(Z){var Y,K;let z=(Y=this.sliderProps_)===null||Y===void 0?void 0:Y.get("min"),$=(K=this.sliderProps_)===null||K===void 0?void 0:K.get("max"),F=Z;if(z!==void 0)F=Math.max(F,z);if($!==void 0)F=Math.min(F,$);return F}onInputChange_(Z){let K=J7(Z.currentTarget).value,z=this.parser_(K);if(!MQ(z))this.value.rawValue=this.constrainValue_(z);this.view.refresh()}onInputKeyDown_(Z){let Y=aZ(this.props.get("keyScale"),Y4(Z));if(Y===0)return;this.value.setRawValue(this.constrainValue_(this.value.rawValue+Y),{forceEmit:!1,last:!1})}onInputKeyUp_(Z){if(aZ(this.props.get("keyScale"),Y4(Z))===0)return;this.value.setRawValue(this.value.rawValue,{forceEmit:!0,last:!0})}onPointerDown_(){this.originRawValue_=this.value.rawValue,this.dragging_.rawValue=0}computeDraggingValue_(Z){if(!Z.point)return null;let Y=Z.point.x-Z.bounds.width/2;return this.constrainValue_(this.originRawValue_+Y*this.props.get("pointerScale"))}onPointerMove_(Z){let Y=this.computeDraggingValue_(Z.data);if(Y===null)return;this.value.setRawValue(Y,{forceEmit:!1,last:!1}),this.dragging_.rawValue=this.value.rawValue-this.originRawValue_}onPointerUp_(Z){let Y=this.computeDraggingValue_(Z.data);if(Y===null)return;this.value.setRawValue(Y,{forceEmit:!0,last:!0}),this.dragging_.rawValue=null}}var Nz=eJ("sld");class iD{constructor(Z,Y){this.onChange_=this.onChange_.bind(this),this.props_=Y.props,this.props_.emitter.on("change",this.onChange_),this.element=Z.createElement("div"),this.element.classList.add(Nz()),Y.viewProps.bindClassModifiers(this.element);let K=Z.createElement("div");K.classList.add(Nz("t")),Y.viewProps.bindTabIndex(K),this.element.appendChild(K),this.trackElement=K;let z=Z.createElement("div");z.classList.add(Nz("k")),this.trackElement.appendChild(z),this.knobElement=z,Y.value.emitter.on("change",this.onChange_),this.value=Y.value,this.update_()}update_(){let Z=QZ(UQ(this.value.rawValue,this.props_.get("min"),this.props_.get("max"),0,100),0,100);this.knobElement.style.width=`${Z}%`}onChange_(){this.update_()}}class nD{constructor(Z,Y){this.onKeyDown_=this.onKeyDown_.bind(this),this.onKeyUp_=this.onKeyUp_.bind(this),this.onPointerDownOrMove_=this.onPointerDownOrMove_.bind(this),this.onPointerUp_=this.onPointerUp_.bind(this),this.value=Y.value,this.viewProps=Y.viewProps,this.props=Y.props,this.view=new iD(Z,{props:this.props,value:this.value,viewProps:this.viewProps}),this.ptHandler_=new rX(this.view.trackElement),this.ptHandler_.emitter.on("down",this.onPointerDownOrMove_),this.ptHandler_.emitter.on("move",this.onPointerDownOrMove_),this.ptHandler_.emitter.on("up",this.onPointerUp_),this.view.trackElement.addEventListener("keydown",this.onKeyDown_),this.view.trackElement.addEventListener("keyup",this.onKeyUp_)}handlePointerEvent_(Z,Y){if(!Z.point)return;this.value.setRawValue(UQ(QZ(Z.point.x,0,Z.bounds.width),0,Z.bounds.width,this.props.get("min"),this.props.get("max")),Y)}onPointerDownOrMove_(Z){this.handlePointerEvent_(Z.data,{forceEmit:!1,last:!1})}onPointerUp_(Z){this.handlePointerEvent_(Z.data,{forceEmit:!0,last:!0})}onKeyDown_(Z){let Y=aZ(this.props.get("keyScale"),GX(Z));if(Y===0)return;this.value.setRawValue(this.value.rawValue+Y,{forceEmit:!1,last:!1})}onKeyUp_(Z){if(aZ(this.props.get("keyScale"),GX(Z))===0)return;this.value.setRawValue(this.value.rawValue,{forceEmit:!0,last:!0})}}var wz=eJ("sldtxt");class rD{constructor(Z,Y){this.element=Z.createElement("div"),this.element.classList.add(wz());let K=Z.createElement("div");K.classList.add(wz("s")),this.sliderView_=Y.sliderView,K.appendChild(this.sliderView_.element),this.element.appendChild(K);let z=Z.createElement("div");z.classList.add(wz("t")),this.textView_=Y.textView,z.appendChild(this.textView_.element),this.element.appendChild(z)}}class G4{constructor(Z,Y){this.value=Y.value,this.viewProps=Y.viewProps,this.sliderC_=new nD(Z,{props:Y.sliderProps,value:Y.value,viewProps:this.viewProps}),this.textC_=new Z6(Z,{parser:Y.parser,props:Y.textProps,sliderProps:Y.sliderProps,value:Y.value,viewProps:Y.viewProps}),this.view=new rD(Z,{sliderView:this.sliderC_.view,textView:this.textC_.view})}get sliderController(){return this.sliderC_}get textController(){return this.textC_}importProps(Z){return F7(Z,null,(Y)=>({max:Y.required.number,min:Y.required.number}),(Y)=>{let K=this.sliderC_.props;return K.set("max",Y.max),K.set("min",Y.min),!0})}exportProps(){let Z=this.sliderC_.props;return B7(null,{max:Z.get("max"),min:Z.get("min")})}}function oD(Z){return{sliderProps:new vJ({keyScale:Z.keyScale,max:Z.max,min:Z.min}),textProps:new vJ({formatter:VQ(Z.formatter),keyScale:Z.keyScale,pointerScale:VQ(Z.pointerScale)})}}var KS={containerUnitSize:"cnt-usz"};function tD(Z){return`--${KS[Z]}`}function K4(Z){return zD(Z)}function lX(Z){if(!Tz(Z))return;return kQ(Z,K4)}function JX(Z,Y){if(!Z)return;let K=[],z=KD(Z,Y);if(z)K.push(z);let $=UD(Z);if($)K.push($);return new e1(K)}function US(Z){if(!Z)return!1;return Z.major===t1.major}function aD(Z){if(Z==="inline"||Z==="popup")return Z;return}function O4(Z,Y){Z.write(Y)}var g5=eJ("ckb");class eD{constructor(Z,Y){this.onValueChange_=this.onValueChange_.bind(this),this.element=Z.createElement("div"),this.element.classList.add(g5()),Y.viewProps.bindClassModifiers(this.element);let K=Z.createElement("label");K.classList.add(g5("l")),this.element.appendChild(K),this.labelElement=K;let z=Z.createElement("input");z.classList.add(g5("i")),z.type="checkbox",this.labelElement.appendChild(z),this.inputElement=z,Y.viewProps.bindDisabled(this.inputElement);let $=Z.createElement("div");$.classList.add(g5("w")),this.labelElement.appendChild($);let F=r5(Z,"check");$.appendChild(F),Y.value.emitter.on("change",this.onValueChange_),this.value=Y.value,this.update_()}update_(){this.inputElement.checked=this.value.rawValue}onValueChange_(){this.update_()}}class JH{constructor(Z,Y){this.onInputChange_=this.onInputChange_.bind(this),this.onLabelMouseDown_=this.onLabelMouseDown_.bind(this),this.value=Y.value,this.viewProps=Y.viewProps,this.view=new eD(Z,{value:this.value,viewProps:this.viewProps}),this.view.inputElement.addEventListener("change",this.onInputChange_),this.view.labelElement.addEventListener("mousedown",this.onLabelMouseDown_)}onInputChange_(Z){let Y=J7(Z.currentTarget);this.value.rawValue=Y.checked,Z.preventDefault(),Z.stopPropagation()}onLabelMouseDown_(Z){Z.preventDefault()}}function qS(Z){let Y=[],K=tz(Z.options);if(K)Y.push(K);return new e1(Y)}var zS=uZ({id:"input-bool",type:"input",accept:(Z,Y)=>{if(typeof Z!=="boolean")return null;let K=kQ(Y,(z)=>({options:z.optional.custom($4),readonly:z.optional.constant(!1)}));return K?{initialValue:Z,params:K}:null},binding:{reader:(Z)=>cD,constraint:(Z)=>qS(Z.params),writer:(Z)=>O4},controller:(Z)=>{let{document:Y,value:K,constraint:z}=Z,$=z&&i5(z,J6);if($)return new YX(Y,{props:new vJ({options:$.values.value("options")}),value:K,viewProps:Z.viewProps});return new JH(Y,{value:K,viewProps:Z.viewProps})},api(Z){if(typeof Z.controller.value.rawValue!=="boolean")return null;if(Z.controller.valueController instanceof YX)return new e5(Z.controller);return null}}),x9=eJ("col");class QH{constructor(Z,Y){this.element=Z.createElement("div"),this.element.classList.add(x9()),Y.foldable.bindExpandedClass(this.element,x9(void 0,"expanded")),V8(Y.foldable,"completed",o1(this.element,x9(void 0,"cpl")));let K=Z.createElement("div");K.classList.add(x9("h")),this.element.appendChild(K);let z=Z.createElement("div");z.classList.add(x9("s")),K.appendChild(z),this.swatchElement=z;let $=Z.createElement("div");if($.classList.add(x9("t")),K.appendChild($),this.textElement=$,Y.pickerLayout==="inline"){let F=Z.createElement("div");F.classList.add(x9("p")),this.element.appendChild(F),this.pickerElement=F}else this.pickerElement=null}}function $S(Z,Y,K){let z=QZ(Z/255,0,1),$=QZ(Y/255,0,1),F=QZ(K/255,0,1),B=Math.max(z,$,F),j=Math.min(z,$,F),y=B-j,_=0,b=0,k=(j+B)/2;if(y!==0){if(b=y/(1-Math.abs(B+j-1)),z===B)_=($-F)/y;else if($===B)_=2+(F-z)/y;else _=4+(z-$)/y;_=_/6+(_<0?1:0)}return[_*360,b*100,k*100]}function OS(Z,Y,K){let z=(Z%360+360)%360,$=QZ(Y/100,0,1),F=QZ(K/100,0,1),B=(1-Math.abs(2*F-1))*$,j=B*(1-Math.abs(z/60%2-1)),y=F-B/2,_,b,k;if(z>=0&&z<60)[_,b,k]=[B,j,0];else if(z>=60&&z<120)[_,b,k]=[j,B,0];else if(z>=120&&z<180)[_,b,k]=[0,B,j];else if(z>=180&&z<240)[_,b,k]=[0,j,B];else if(z>=240&&z<300)[_,b,k]=[j,0,B];else[_,b,k]=[B,0,j];return[(_+y)*255,(b+y)*255,(k+y)*255]}function LS(Z,Y,K){let z=QZ(Z/255,0,1),$=QZ(Y/255,0,1),F=QZ(K/255,0,1),B=Math.max(z,$,F),j=Math.min(z,$,F),y=B-j,_;if(y===0)_=0;else if(B===z)_=60*((($-F)/y%6+6)%6);else if(B===$)_=60*((F-z)/y+2);else _=60*((z-$)/y+4);let b=B===0?0:y/B,k=B;return[_,b*100,k*100]}function ZH(Z,Y,K){let z=XD(Z,360),$=QZ(Y/100,0,1),F=QZ(K/100,0,1),B=F*$,j=B*(1-Math.abs(z/60%2-1)),y=F-B,_,b,k;if(z>=0&&z<60)[_,b,k]=[B,j,0];else if(z>=60&&z<120)[_,b,k]=[j,B,0];else if(z>=120&&z<180)[_,b,k]=[0,B,j];else if(z>=180&&z<240)[_,b,k]=[0,j,B];else if(z>=240&&z<300)[_,b,k]=[j,0,B];else[_,b,k]=[B,0,j];return[(_+y)*255,(b+y)*255,(k+y)*255]}function WS(Z,Y,K){let z=K+Y*(100-Math.abs(2*K-100))/200;return[Z,z!==0?Y*(100-Math.abs(2*K-100))/z:0,K+Y*(100-Math.abs(2*K-100))/200]}function DS(Z,Y,K){let z=100-Math.abs(K*(200-Y)/100-100);return[Z,z!==0?Y*K/z:0,K*(200-Y)/200]}function S8(Z){return[Z[0],Z[1],Z[2]]}function JG(Z,Y){return[Z[0],Z[1],Z[2],Y]}var HS={hsl:{hsl:(Z,Y,K)=>[Z,Y,K],hsv:WS,rgb:OS},hsv:{hsl:DS,hsv:(Z,Y,K)=>[Z,Y,K],rgb:ZH},rgb:{hsl:$S,hsv:LS,rgb:(Z,Y,K)=>[Z,Y,K]}};function i1(Z,Y){return[Y==="float"?1:Z==="rgb"?255:360,Y==="float"?1:Z==="rgb"?255:100,Y==="float"?1:Z==="rgb"?255:100]}function MS(Z,Y){return Z===Y?Y:XD(Z,Y)}function XH(Z,Y,K){var z;let $=i1(Y,K);return[Y==="rgb"?QZ(Z[0],0,$[0]):MS(Z[0],$[0]),QZ(Z[1],0,$[1]),QZ(Z[2],0,$[2]),QZ((z=Z[3])!==null&&z!==void 0?z:1,0,1)]}function xW(Z,Y,K,z){let $=i1(Y,K),F=i1(Y,z);return Z.map((B,j)=>B/$[j]*F[j])}function YH(Z,Y,K){let z=xW(Z,Y.mode,Y.type,"int"),$=HS[Y.mode][K.mode](...z);return xW($,K.mode,"int",K.type)}class ZQ{static black(){return new ZQ([0,0,0],"rgb")}constructor(Z,Y){this.type="int",this.mode=Y,this.comps_=XH(Z,Y,this.type)}getComponents(Z){return JG(YH(S8(this.comps_),{mode:this.mode,type:this.type},{mode:Z!==null&&Z!==void 0?Z:this.mode,type:this.type}),this.comps_[3])}toRgbaObject(){let Z=this.getComponents("rgb");return{r:Z[0],g:Z[1],b:Z[2],a:Z[3]}}}var cX=eJ("colp");class GH{constructor(Z,Y){this.alphaViews_=null,this.element=Z.createElement("div"),this.element.classList.add(cX()),Y.viewProps.bindClassModifiers(this.element);let K=Z.createElement("div");K.classList.add(cX("hsv"));let z=Z.createElement("div");z.classList.add(cX("sv")),this.svPaletteView_=Y.svPaletteView,z.appendChild(this.svPaletteView_.element),K.appendChild(z);let $=Z.createElement("div");$.classList.add(cX("h")),this.hPaletteView_=Y.hPaletteView,$.appendChild(this.hPaletteView_.element),K.appendChild($),this.element.appendChild(K);let F=Z.createElement("div");if(F.classList.add(cX("rgb")),this.textsView_=Y.textsView,F.appendChild(this.textsView_.element),this.element.appendChild(F),Y.alphaViews){this.alphaViews_={palette:Y.alphaViews.palette,text:Y.alphaViews.text};let B=Z.createElement("div");B.classList.add(cX("a"));let j=Z.createElement("div");j.classList.add(cX("ap")),j.appendChild(this.alphaViews_.palette.element),B.appendChild(j);let y=Z.createElement("div");y.classList.add(cX("at")),y.appendChild(this.alphaViews_.text.element),B.appendChild(y),this.element.appendChild(B)}}get allFocusableElements(){let Z=[this.svPaletteView_.element,this.hPaletteView_.element,this.textsView_.modeSelectElement,...this.textsView_.inputViews.map((Y)=>Y.inputElement)];if(this.alphaViews_)Z.push(this.alphaViews_.palette.element,this.alphaViews_.text.inputElement);return Z}}function FS(Z){return Z==="int"?"int":Z==="float"?"float":void 0}function ez(Z){return kQ(Z,(Y)=>({color:Y.optional.object({alpha:Y.optional.boolean,type:Y.optional.custom(FS)}),expanded:Y.optional.boolean,picker:Y.optional.custom(aD),readonly:Y.optional.constant(!1)}))}function v9(Z){return Z?0.1:1}function KH(Z){var Y;return(Y=Z.color)===null||Y===void 0?void 0:Y.type}class QG{constructor(Z,Y){this.type="float",this.mode=Y,this.comps_=XH(Z,Y,this.type)}getComponents(Z){return JG(YH(S8(this.comps_),{mode:this.mode,type:this.type},{mode:Z!==null&&Z!==void 0?Z:this.mode,type:this.type}),this.comps_[3])}toRgbaObject(){let Z=this.getComponents("rgb");return{r:Z[0],g:Z[1],b:Z[2],a:Z[3]}}}var BS={int:(Z,Y)=>new ZQ(Z,Y),float:(Z,Y)=>new QG(Z,Y)};function J$(Z,Y,K){return BS[K](Z,Y)}function AS(Z){return Z.type==="float"}function IS(Z){return Z.type==="int"}function jS(Z){let Y=Z.getComponents(),K=i1(Z.mode,"int");return new ZQ([Math.round(UQ(Y[0],0,1,0,K[0])),Math.round(UQ(Y[1],0,1,0,K[1])),Math.round(UQ(Y[2],0,1,0,K[2])),Y[3]],Z.mode)}function PS(Z){let Y=Z.getComponents(),K=i1(Z.mode,"int");return new QG([UQ(Y[0],0,K[0],0,1),UQ(Y[1],0,K[1],0,1),UQ(Y[2],0,K[2],0,1),Y[3]],Z.mode)}function vZ(Z,Y){if(Z.type===Y)return Z;if(IS(Z)&&Y==="float")return PS(Z);if(AS(Z)&&Y==="int")return jS(Z);throw hQ.shouldNeverHappen()}function NS(Z,Y){return Z.alpha===Y.alpha&&Z.mode===Y.mode&&Z.notation===Y.notation&&Z.type===Y.type}function h7(Z,Y){let K=Z.match(/^(.+)%$/);if(!K)return Math.min(parseFloat(Z),Y);return Math.min(parseFloat(K[1])*0.01*Y,Y)}var wS={deg:(Z)=>Z,grad:(Z)=>Z*360/400,rad:(Z)=>Z*360/(2*Math.PI),turn:(Z)=>Z*360};function UH(Z){let Y=Z.match(/^([0-9.]+?)(deg|grad|rad|turn)$/);if(!Y)return parseFloat(Z);let K=parseFloat(Y[1]),z=Y[2];return wS[z](K)}function qH(Z){let Y=Z.match(/^rgb\(\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*\)$/);if(!Y)return null;let K=[h7(Y[1],255),h7(Y[2],255),h7(Y[3],255)];if(isNaN(K[0])||isNaN(K[1])||isNaN(K[2]))return null;return K}function RS(Z){let Y=qH(Z);return Y?new ZQ(Y,"rgb"):null}function zH(Z){let Y=Z.match(/^rgba\(\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*\)$/);if(!Y)return null;let K=[h7(Y[1],255),h7(Y[2],255),h7(Y[3],255),h7(Y[4],1)];if(isNaN(K[0])||isNaN(K[1])||isNaN(K[2])||isNaN(K[3]))return null;return K}function VS(Z){let Y=zH(Z);return Y?new ZQ(Y,"rgb"):null}function $H(Z){let Y=Z.match(/^hsl\(\s*([0-9A-Fa-f.]+(?:deg|grad|rad|turn)?)\s*,\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*\)$/);if(!Y)return null;let K=[UH(Y[1]),h7(Y[2],100),h7(Y[3],100)];if(isNaN(K[0])||isNaN(K[1])||isNaN(K[2]))return null;return K}function SS(Z){let Y=$H(Z);return Y?new ZQ(Y,"hsl"):null}function OH(Z){let Y=Z.match(/^hsla\(\s*([0-9A-Fa-f.]+(?:deg|grad|rad|turn)?)\s*,\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*\)$/);if(!Y)return null;let K=[UH(Y[1]),h7(Y[2],100),h7(Y[3],100),h7(Y[4],1)];if(isNaN(K[0])||isNaN(K[1])||isNaN(K[2])||isNaN(K[3]))return null;return K}function TS(Z){let Y=OH(Z);return Y?new ZQ(Y,"hsl"):null}function LH(Z){let Y=Z.match(/^#([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])$/);if(Y)return[parseInt(Y[1]+Y[1],16),parseInt(Y[2]+Y[2],16),parseInt(Y[3]+Y[3],16)];let K=Z.match(/^(?:#|0x)([0-9A-Fa-f]{2})([0-9A-Fa-f]{2})([0-9A-Fa-f]{2})$/);if(K)return[parseInt(K[1],16),parseInt(K[2],16),parseInt(K[3],16)];return null}function _S(Z){let Y=LH(Z);return Y?new ZQ(Y,"rgb"):null}function WH(Z){let Y=Z.match(/^#([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])$/);if(Y)return[parseInt(Y[1]+Y[1],16),parseInt(Y[2]+Y[2],16),parseInt(Y[3]+Y[3],16),UQ(parseInt(Y[4]+Y[4],16),0,255,0,1)];let K=Z.match(/^(?:#|0x)?([0-9A-Fa-f]{2})([0-9A-Fa-f]{2})([0-9A-Fa-f]{2})([0-9A-Fa-f]{2})$/);if(K)return[parseInt(K[1],16),parseInt(K[2],16),parseInt(K[3],16),UQ(parseInt(K[4],16),0,255,0,1)];return null}function kS(Z){let Y=WH(Z);return Y?new ZQ(Y,"rgb"):null}function DH(Z){let Y=Z.match(/^\{\s*r\s*:\s*([0-9A-Fa-f.]+%?)\s*,\s*g\s*:\s*([0-9A-Fa-f.]+%?)\s*,\s*b\s*:\s*([0-9A-Fa-f.]+%?)\s*\}$/);if(!Y)return null;let K=[parseFloat(Y[1]),parseFloat(Y[2]),parseFloat(Y[3])];if(isNaN(K[0])||isNaN(K[1])||isNaN(K[2]))return null;return K}function hW(Z){return(Y)=>{let K=DH(Y);return K?J$(K,"rgb",Z):null}}function HH(Z){let Y=Z.match(/^\{\s*r\s*:\s*([0-9A-Fa-f.]+%?)\s*,\s*g\s*:\s*([0-9A-Fa-f.]+%?)\s*,\s*b\s*:\s*([0-9A-Fa-f.]+%?)\s*,\s*a\s*:\s*([0-9A-Fa-f.]+%?)\s*\}$/);if(!Y)return null;let K=[parseFloat(Y[1]),parseFloat(Y[2]),parseFloat(Y[3]),parseFloat(Y[4])];if(isNaN(K[0])||isNaN(K[1])||isNaN(K[2])||isNaN(K[3]))return null;return K}function yW(Z){return(Y)=>{let K=HH(Y);return K?J$(K,"rgb",Z):null}}var ES=[{parser:LH,result:{alpha:!1,mode:"rgb",notation:"hex"}},{parser:WH,result:{alpha:!0,mode:"rgb",notation:"hex"}},{parser:qH,result:{alpha:!1,mode:"rgb",notation:"func"}},{parser:zH,result:{alpha:!0,mode:"rgb",notation:"func"}},{parser:$H,result:{alpha:!1,mode:"hsl",notation:"func"}},{parser:OH,result:{alpha:!0,mode:"hsl",notation:"func"}},{parser:DH,result:{alpha:!1,mode:"rgb",notation:"object"}},{parser:HH,result:{alpha:!0,mode:"rgb",notation:"object"}}];function CS(Z){return ES.reduce((Y,{parser:K,result:z})=>{if(Y)return Y;return K(Z)?z:null},null)}function xS(Z,Y="int"){let K=CS(Z);if(!K)return null;if(K.notation==="hex"&&Y!=="float")return Object.assign(Object.assign({},K),{type:"int"});if(K.notation==="func")return Object.assign(Object.assign({},K),{type:Y});return null}function L4(Z){let Y=[_S,kS,RS,VS,SS,TS];if(Z==="int")Y.push(hW("int"),yW("int"));if(Z==="float")Y.push(hW("float"),yW("float"));let K=XS(Y);return(z)=>{let $=K(z);return $?vZ($,Z):null}}function hS(Z){let Y=L4("int");if(typeof Z!=="string")return ZQ.black();let K=Y(Z);return K!==null&&K!==void 0?K:ZQ.black()}function MH(Z){let Y=QZ(Math.floor(Z),0,255).toString(16);return Y.length===1?`0${Y}`:Y}function Q$(Z,Y="#"){let K=S8(Z.getComponents("rgb")).map(MH).join("");return`${Y}${K}`}function Z$(Z,Y="#"){let K=Z.getComponents("rgb"),z=[K[0],K[1],K[2],K[3]*255].map(MH).join("");return`${Y}${z}`}function FH(Z){let Y=eZ(0),K=vZ(Z,"int");return`rgb(${S8(K.getComponents("rgb")).map(($)=>Y($)).join(", ")})`}function d5(Z){let Y=eZ(2),K=eZ(0);return`rgba(${vZ(Z,"int").getComponents("rgb").map((F,B)=>{return(B===3?Y:K)(F)}).join(", ")})`}function yS(Z){let Y=[eZ(0),n5,n5],K=vZ(Z,"int");return`hsl(${S8(K.getComponents("hsl")).map(($,F)=>Y[F]($)).join(", ")})`}function bS(Z){let Y=[eZ(0),n5,n5,eZ(2)];return`hsla(${vZ(Z,"int").getComponents("hsl").map(($,F)=>Y[F]($)).join(", ")})`}function BH(Z,Y){let K=eZ(Y==="float"?2:0),z=["r","g","b"],$=vZ(Z,Y);return`{${S8($.getComponents("rgb")).map((B,j)=>`${z[j]}: ${K(B)}`).join(", ")}}`}function fS(Z){return(Y)=>BH(Y,Z)}function AH(Z,Y){let K=eZ(2),z=eZ(Y==="float"?2:0),$=["r","g","b","a"];return`{${vZ(Z,Y).getComponents("rgb").map((j,y)=>{let _=y===3?K:z;return`${$[y]}: ${_(j)}`}).join(", ")}}`}function vS(Z){return(Y)=>AH(Y,Z)}var uS=[{format:{alpha:!1,mode:"rgb",notation:"hex",type:"int"},stringifier:Q$},{format:{alpha:!0,mode:"rgb",notation:"hex",type:"int"},stringifier:Z$},{format:{alpha:!1,mode:"rgb",notation:"func",type:"int"},stringifier:FH},{format:{alpha:!0,mode:"rgb",notation:"func",type:"int"},stringifier:d5},{format:{alpha:!1,mode:"hsl",notation:"func",type:"int"},stringifier:yS},{format:{alpha:!0,mode:"hsl",notation:"func",type:"int"},stringifier:bS},...["int","float"].reduce((Z,Y)=>{return[...Z,{format:{alpha:!1,mode:"rgb",notation:"object",type:Y},stringifier:fS(Y)},{format:{alpha:!0,mode:"rgb",notation:"object",type:Y},stringifier:vS(Y)}]},[])];function IH(Z){return uS.reduce((Y,K)=>{if(Y)return Y;return NS(K.format,Z)?K.stringifier:null},null)}var Q4=eJ("apl");class jH{constructor(Z,Y){this.onValueChange_=this.onValueChange_.bind(this),this.value=Y.value,this.value.emitter.on("change",this.onValueChange_),this.element=Z.createElement("div"),this.element.classList.add(Q4()),Y.viewProps.bindClassModifiers(this.element),Y.viewProps.bindTabIndex(this.element);let K=Z.createElement("div");K.classList.add(Q4("b")),this.element.appendChild(K);let z=Z.createElement("div");z.classList.add(Q4("c")),K.appendChild(z),this.colorElem_=z;let $=Z.createElement("div");$.classList.add(Q4("m")),this.element.appendChild($),this.markerElem_=$;let F=Z.createElement("div");F.classList.add(Q4("p")),this.markerElem_.appendChild(F),this.previewElem_=F,this.update_()}update_(){let Z=this.value.rawValue,Y=Z.getComponents("rgb"),K=new ZQ([Y[0],Y[1],Y[2],0],"rgb"),z=new ZQ([Y[0],Y[1],Y[2],255],"rgb"),$=["to right",d5(K),d5(z)];this.colorElem_.style.background=`linear-gradient(${$.join(",")})`,this.previewElem_.style.backgroundColor=d5(Z);let F=UQ(Y[3],0,1,0,100);this.markerElem_.style.left=`${F}%`}onValueChange_(){this.update_()}}class PH{constructor(Z,Y){this.onKeyDown_=this.onKeyDown_.bind(this),this.onKeyUp_=this.onKeyUp_.bind(this),this.onPointerDown_=this.onPointerDown_.bind(this),this.onPointerMove_=this.onPointerMove_.bind(this),this.onPointerUp_=this.onPointerUp_.bind(this),this.value=Y.value,this.viewProps=Y.viewProps,this.view=new jH(Z,{value:this.value,viewProps:this.viewProps}),this.ptHandler_=new rX(this.view.element),this.ptHandler_.emitter.on("down",this.onPointerDown_),this.ptHandler_.emitter.on("move",this.onPointerMove_),this.ptHandler_.emitter.on("up",this.onPointerUp_),this.view.element.addEventListener("keydown",this.onKeyDown_),this.view.element.addEventListener("keyup",this.onKeyUp_)}handlePointerEvent_(Z,Y){if(!Z.point)return;let K=Z.point.x/Z.bounds.width,z=this.value.rawValue,[$,F,B]=z.getComponents("hsv");this.value.setRawValue(new ZQ([$,F,B,K],"hsv"),Y)}onPointerDown_(Z){this.handlePointerEvent_(Z.data,{forceEmit:!1,last:!1})}onPointerMove_(Z){this.handlePointerEvent_(Z.data,{forceEmit:!1,last:!1})}onPointerUp_(Z){this.handlePointerEvent_(Z.data,{forceEmit:!0,last:!0})}onKeyDown_(Z){let Y=aZ(v9(!0),GX(Z));if(Y===0)return;let K=this.value.rawValue,[z,$,F,B]=K.getComponents("hsv");this.value.setRawValue(new ZQ([z,$,F,B+Y],"hsv"),{forceEmit:!1,last:!1})}onKeyUp_(Z){if(aZ(v9(!0),GX(Z))===0)return;this.value.setRawValue(this.value.rawValue,{forceEmit:!0,last:!0})}}var c1=eJ("coltxt");function gS(Z){let Y=Z.createElement("select"),K=[{text:"RGB",value:"rgb"},{text:"HSL",value:"hsl"},{text:"HSV",value:"hsv"},{text:"HEX",value:"hex"}];return Y.appendChild(K.reduce((z,$)=>{let F=Z.createElement("option");return F.textContent=$.text,F.value=$.value,z.appendChild(F),z},Z.createDocumentFragment())),Y}class NH{constructor(Z,Y){this.element=Z.createElement("div"),this.element.classList.add(c1()),Y.viewProps.bindClassModifiers(this.element);let K=Z.createElement("div");K.classList.add(c1("m")),this.modeElem_=gS(Z),this.modeElem_.classList.add(c1("ms")),K.appendChild(this.modeSelectElement),Y.viewProps.bindDisabled(this.modeElem_);let z=Z.createElement("div");z.classList.add(c1("mm")),z.appendChild(r5(Z,"dropdown")),K.appendChild(z),this.element.appendChild(K);let $=Z.createElement("div");$.classList.add(c1("w")),this.element.appendChild($),this.inputsElem_=$,this.inputViews_=Y.inputViews,this.applyInputViews_(),QX(Y.mode,(F)=>{this.modeElem_.value=F})}get modeSelectElement(){return this.modeElem_}get inputViews(){return this.inputViews_}set inputViews(Z){this.inputViews_=Z,this.applyInputViews_()}applyInputViews_(){MD(this.inputsElem_);let Z=this.element.ownerDocument;this.inputViews_.forEach((Y)=>{let K=Z.createElement("div");K.classList.add(c1("c")),K.appendChild(Y.element),this.inputsElem_.appendChild(K)})}}function dS(Z){return eZ(Z==="float"?2:0)}function mS(Z,Y,K){let z=i1(Z,Y)[K];return new n1({min:0,max:z})}function cS(Z,Y,K){return new Z6(Z,{arrayPosition:K===0?"fst":K===2?"lst":"mid",parser:Y.parser,props:vJ.fromObject({formatter:dS(Y.colorType),keyScale:v9(!1),pointerScale:Y.colorType==="float"?0.01:1}),value:VQ(0,{constraint:mS(Y.colorMode,Y.colorType,K)}),viewProps:Y.viewProps})}function pS(Z,Y){let K={colorMode:Y.colorMode,colorType:Y.colorType,parser:XX,viewProps:Y.viewProps};return[0,1,2].map((z)=>{let $=cS(Z,K,z);return Q6({primary:Y.value,secondary:$.value,forward(F){return vZ(F,Y.colorType).getComponents(Y.colorMode)[z]},backward(F,B){let j=Y.colorMode,_=vZ(F,Y.colorType).getComponents(j);_[z]=B;let b=J$(JG(S8(_),_[3]),j,Y.colorType);return vZ(b,"int")}}),$})}function sS(Z,Y){let K=new l1(Z,{parser:L4("int"),props:vJ.fromObject({formatter:Q$}),value:VQ(ZQ.black()),viewProps:Y.viewProps});return Q6({primary:Y.value,secondary:K.value,forward:(z)=>new ZQ(S8(z.getComponents()),z.mode),backward:(z,$)=>new ZQ(JG(S8($.getComponents(z.mode)),z.getComponents()[3]),z.mode)}),[K]}function lS(Z){return Z!=="hex"}class wH{constructor(Z,Y){this.onModeSelectChange_=this.onModeSelectChange_.bind(this),this.colorType_=Y.colorType,this.value=Y.value,this.viewProps=Y.viewProps,this.colorMode=VQ(this.value.rawValue.mode),this.ccs_=this.createComponentControllers_(Z),this.view=new NH(Z,{mode:this.colorMode,inputViews:[this.ccs_[0].view,this.ccs_[1].view,this.ccs_[2].view],viewProps:this.viewProps}),this.view.modeSelectElement.addEventListener("change",this.onModeSelectChange_)}createComponentControllers_(Z){let Y=this.colorMode.rawValue;if(lS(Y))return pS(Z,{colorMode:Y,colorType:this.colorType_,value:this.value,viewProps:this.viewProps});return sS(Z,{value:this.value,viewProps:this.viewProps})}onModeSelectChange_(Z){let Y=Z.currentTarget;this.colorMode.rawValue=Y.value,this.ccs_=this.createComponentControllers_(this.view.element.ownerDocument),this.view.inputViews=this.ccs_.map((K)=>K.view)}}var Rz=eJ("hpl");class RH{constructor(Z,Y){this.onValueChange_=this.onValueChange_.bind(this),this.value=Y.value,this.value.emitter.on("change",this.onValueChange_),this.element=Z.createElement("div"),this.element.classList.add(Rz()),Y.viewProps.bindClassModifiers(this.element),Y.viewProps.bindTabIndex(this.element);let K=Z.createElement("div");K.classList.add(Rz("c")),this.element.appendChild(K);let z=Z.createElement("div");z.classList.add(Rz("m")),this.element.appendChild(z),this.markerElem_=z,this.update_()}update_(){let Z=this.value.rawValue,[Y]=Z.getComponents("hsv");this.markerElem_.style.backgroundColor=FH(new ZQ([Y,100,100],"hsv"));let K=UQ(Y,0,360,0,100);this.markerElem_.style.left=`${K}%`}onValueChange_(){this.update_()}}class VH{constructor(Z,Y){this.onKeyDown_=this.onKeyDown_.bind(this),this.onKeyUp_=this.onKeyUp_.bind(this),this.onPointerDown_=this.onPointerDown_.bind(this),this.onPointerMove_=this.onPointerMove_.bind(this),this.onPointerUp_=this.onPointerUp_.bind(this),this.value=Y.value,this.viewProps=Y.viewProps,this.view=new RH(Z,{value:this.value,viewProps:this.viewProps}),this.ptHandler_=new rX(this.view.element),this.ptHandler_.emitter.on("down",this.onPointerDown_),this.ptHandler_.emitter.on("move",this.onPointerMove_),this.ptHandler_.emitter.on("up",this.onPointerUp_),this.view.element.addEventListener("keydown",this.onKeyDown_),this.view.element.addEventListener("keyup",this.onKeyUp_)}handlePointerEvent_(Z,Y){if(!Z.point)return;let K=UQ(QZ(Z.point.x,0,Z.bounds.width),0,Z.bounds.width,0,360),z=this.value.rawValue,[,$,F,B]=z.getComponents("hsv");this.value.setRawValue(new ZQ([K,$,F,B],"hsv"),Y)}onPointerDown_(Z){this.handlePointerEvent_(Z.data,{forceEmit:!1,last:!1})}onPointerMove_(Z){this.handlePointerEvent_(Z.data,{forceEmit:!1,last:!1})}onPointerUp_(Z){this.handlePointerEvent_(Z.data,{forceEmit:!0,last:!0})}onKeyDown_(Z){let Y=aZ(v9(!1),GX(Z));if(Y===0)return;let K=this.value.rawValue,[z,$,F,B]=K.getComponents("hsv");this.value.setRawValue(new ZQ([z+Y,$,F,B],"hsv"),{forceEmit:!1,last:!1})}onKeyUp_(Z){if(aZ(v9(!1),GX(Z))===0)return;this.value.setRawValue(this.value.rawValue,{forceEmit:!0,last:!0})}}var Vz=eJ("svp"),bW=64;class SH{constructor(Z,Y){this.onValueChange_=this.onValueChange_.bind(this),this.value=Y.value,this.value.emitter.on("change",this.onValueChange_),this.element=Z.createElement("div"),this.element.classList.add(Vz()),Y.viewProps.bindClassModifiers(this.element),Y.viewProps.bindTabIndex(this.element);let K=Z.createElement("canvas");K.height=bW,K.width=bW,K.classList.add(Vz("c")),this.element.appendChild(K),this.canvasElement=K;let z=Z.createElement("div");z.classList.add(Vz("m")),this.element.appendChild(z),this.markerElem_=z,this.update_()}update_(){let Z=kV(this.canvasElement);if(!Z)return;let K=this.value.rawValue.getComponents("hsv"),z=this.canvasElement.width,$=this.canvasElement.height,F=Z.getImageData(0,0,z,$),B=F.data;for(let _=0;_<$;_++)for(let b=0;b<z;b++){let k=UQ(b,0,z,0,100),a=UQ(_,0,$,100,0),DJ=ZH(K[0],k,a),_J=(_*z+b)*4;B[_J]=DJ[0],B[_J+1]=DJ[1],B[_J+2]=DJ[2],B[_J+3]=255}Z.putImageData(F,0,0);let j=UQ(K[1],0,100,0,100);this.markerElem_.style.left=`${j}%`;let y=UQ(K[2],0,100,100,0);this.markerElem_.style.top=`${y}%`}onValueChange_(){this.update_()}}class TH{constructor(Z,Y){this.onKeyDown_=this.onKeyDown_.bind(this),this.onKeyUp_=this.onKeyUp_.bind(this),this.onPointerDown_=this.onPointerDown_.bind(this),this.onPointerMove_=this.onPointerMove_.bind(this),this.onPointerUp_=this.onPointerUp_.bind(this),this.value=Y.value,this.viewProps=Y.viewProps,this.view=new SH(Z,{value:this.value,viewProps:this.viewProps}),this.ptHandler_=new rX(this.view.element),this.ptHandler_.emitter.on("down",this.onPointerDown_),this.ptHandler_.emitter.on("move",this.onPointerMove_),this.ptHandler_.emitter.on("up",this.onPointerUp_),this.view.element.addEventListener("keydown",this.onKeyDown_),this.view.element.addEventListener("keyup",this.onKeyUp_)}handlePointerEvent_(Z,Y){if(!Z.point)return;let K=UQ(Z.point.x,0,Z.bounds.width,0,100),z=UQ(Z.point.y,0,Z.bounds.height,100,0),[$,,,F]=this.value.rawValue.getComponents("hsv");this.value.setRawValue(new ZQ([$,K,z,F],"hsv"),Y)}onPointerDown_(Z){this.handlePointerEvent_(Z.data,{forceEmit:!1,last:!1})}onPointerMove_(Z){this.handlePointerEvent_(Z.data,{forceEmit:!1,last:!1})}onPointerUp_(Z){this.handlePointerEvent_(Z.data,{forceEmit:!0,last:!0})}onKeyDown_(Z){if(sD(Z.key))Z.preventDefault();let[Y,K,z,$]=this.value.rawValue.getComponents("hsv"),F=v9(!1),B=aZ(F,GX(Z)),j=aZ(F,Y4(Z));if(B===0&&j===0)return;this.value.setRawValue(new ZQ([Y,K+B,z+j,$],"hsv"),{forceEmit:!1,last:!1})}onKeyUp_(Z){let Y=v9(!1),K=aZ(Y,GX(Z)),z=aZ(Y,Y4(Z));if(K===0&&z===0)return;this.value.setRawValue(this.value.rawValue,{forceEmit:!0,last:!0})}}class _H{constructor(Z,Y){if(this.value=Y.value,this.viewProps=Y.viewProps,this.hPaletteC_=new VH(Z,{value:this.value,viewProps:this.viewProps}),this.svPaletteC_=new TH(Z,{value:this.value,viewProps:this.viewProps}),this.alphaIcs_=Y.supportsAlpha?{palette:new PH(Z,{value:this.value,viewProps:this.viewProps}),text:new Z6(Z,{parser:XX,props:vJ.fromObject({pointerScale:0.01,keyScale:0.1,formatter:eZ(2)}),value:VQ(0,{constraint:new n1({min:0,max:1})}),viewProps:this.viewProps})}:null,this.alphaIcs_)Q6({primary:this.value,secondary:this.alphaIcs_.text.value,forward:(K)=>K.getComponents()[3],backward:(K,z)=>{let $=K.getComponents();return $[3]=z,new ZQ($,K.mode)}});this.textsC_=new wH(Z,{colorType:Y.colorType,value:this.value,viewProps:this.viewProps}),this.view=new GH(Z,{alphaViews:this.alphaIcs_?{palette:this.alphaIcs_.palette.view,text:this.alphaIcs_.text.view}:null,hPaletteView:this.hPaletteC_.view,supportsAlpha:Y.supportsAlpha,svPaletteView:this.svPaletteC_.view,textsView:this.textsC_.view,viewProps:this.viewProps})}get textsController(){return this.textsC_}}var Sz=eJ("colsw");class kH{constructor(Z,Y){this.onValueChange_=this.onValueChange_.bind(this),Y.value.emitter.on("change",this.onValueChange_),this.value=Y.value,this.element=Z.createElement("div"),this.element.classList.add(Sz()),Y.viewProps.bindClassModifiers(this.element);let K=Z.createElement("div");K.classList.add(Sz("sw")),this.element.appendChild(K),this.swatchElem_=K;let z=Z.createElement("button");z.classList.add(Sz("b")),Y.viewProps.bindDisabled(z),this.element.appendChild(z),this.buttonElement=z,this.update_()}update_(){let Z=this.value.rawValue;this.swatchElem_.style.backgroundColor=Z$(Z)}onValueChange_(){this.update_()}}class EH{constructor(Z,Y){this.value=Y.value,this.viewProps=Y.viewProps,this.view=new kH(Z,{value:this.value,viewProps:this.viewProps})}}class ZG{constructor(Z,Y){this.onButtonBlur_=this.onButtonBlur_.bind(this),this.onButtonClick_=this.onButtonClick_.bind(this),this.onPopupChildBlur_=this.onPopupChildBlur_.bind(this),this.onPopupChildKeydown_=this.onPopupChildKeydown_.bind(this),this.value=Y.value,this.viewProps=Y.viewProps,this.foldable_=z4.create(Y.expanded),this.swatchC_=new EH(Z,{value:this.value,viewProps:this.viewProps});let K=this.swatchC_.view.buttonElement;K.addEventListener("blur",this.onButtonBlur_),K.addEventListener("click",this.onButtonClick_),this.textC_=new l1(Z,{parser:Y.parser,props:vJ.fromObject({formatter:Y.formatter}),value:this.value,viewProps:this.viewProps}),this.view=new QH(Z,{foldable:this.foldable_,pickerLayout:Y.pickerLayout}),this.view.swatchElement.appendChild(this.swatchC_.view.element),this.view.textElement.appendChild(this.textC_.view.element),this.popC_=Y.pickerLayout==="popup"?new az(Z,{viewProps:this.viewProps}):null;let z=new _H(Z,{colorType:Y.colorType,supportsAlpha:Y.supportsAlpha,value:this.value,viewProps:this.viewProps});if(z.view.allFocusableElements.forEach(($)=>{$.addEventListener("blur",this.onPopupChildBlur_),$.addEventListener("keydown",this.onPopupChildKeydown_)}),this.pickerC_=z,this.popC_)this.view.element.appendChild(this.popC_.view.element),this.popC_.view.element.appendChild(z.view.element),Q6({primary:this.foldable_.value("expanded"),secondary:this.popC_.shows,forward:($)=>$,backward:($,F)=>F});else if(this.view.pickerElement)this.view.pickerElement.appendChild(this.pickerC_.view.element),nz(this.foldable_,this.view.pickerElement)}get textController(){return this.textC_}onButtonBlur_(Z){if(!this.popC_)return;let Y=this.view.element,K=J7(Z.relatedTarget);if(!K||!Y.contains(K))this.popC_.shows.rawValue=!1}onButtonClick_(){if(this.foldable_.set("expanded",!this.foldable_.get("expanded")),this.foldable_.get("expanded"))this.pickerC_.view.allFocusableElements[0].focus()}onPopupChildBlur_(Z){if(!this.popC_)return;let Y=this.popC_.view.element,K=FD(Z);if(K&&Y.contains(K))return;if(K&&K===this.swatchC_.view.buttonElement&&!dz(Y.ownerDocument))return;this.popC_.shows.rawValue=!1}onPopupChildKeydown_(Z){if(this.popC_){if(Z.key==="Escape")this.popC_.shows.rawValue=!1}else if(this.view.pickerElement){if(Z.key==="Escape")this.swatchC_.view.buttonElement.focus()}}}function iS(Z){return S8(Z.getComponents("rgb")).reduce((Y,K)=>{return Y<<8|Math.floor(K)&255},0)}function nS(Z){return Z.getComponents("rgb").reduce((Y,K,z)=>{let $=Math.floor(z===3?K*255:K)&255;return Y<<8|$},0)>>>0}function rS(Z){return new ZQ([Z>>16&255,Z>>8&255,Z&255],"rgb")}function oS(Z){return new ZQ([Z>>24&255,Z>>16&255,Z>>8&255,UQ(Z&255,0,255,0,1)],"rgb")}function tS(Z){if(typeof Z!=="number")return ZQ.black();return rS(Z)}function aS(Z){if(typeof Z!=="number")return ZQ.black();return oS(Z)}function m5(Z,Y){if(typeof Z!=="object"||MQ(Z))return!1;return Y in Z&&typeof Z[Y]==="number"}function CH(Z){return m5(Z,"r")&&m5(Z,"g")&&m5(Z,"b")}function xH(Z){return CH(Z)&&m5(Z,"a")}function hH(Z){return CH(Z)}function X$(Z,Y){if(Z.mode!==Y.mode)return!1;if(Z.type!==Y.type)return!1;let K=Z.getComponents(),z=Y.getComponents();for(let $=0;$<K.length;$++)if(K[$]!==z[$])return!1;return!0}function fW(Z){return"a"in Z?[Z.r,Z.g,Z.b,Z.a]:[Z.r,Z.g,Z.b]}function eS(Z){let Y=IH(Z);return Y?(K,z)=>{O4(K,Y(z))}:null}function JT(Z){let Y=Z?nS:iS;return(K,z)=>{O4(K,Y(z))}}function QT(Z,Y,K){let $=vZ(Y,K).toRgbaObject();Z.writeProperty("r",$.r),Z.writeProperty("g",$.g),Z.writeProperty("b",$.b),Z.writeProperty("a",$.a)}function ZT(Z,Y,K){let $=vZ(Y,K).toRgbaObject();Z.writeProperty("r",$.r),Z.writeProperty("g",$.g),Z.writeProperty("b",$.b)}function XT(Z,Y){return(K,z)=>{if(Z)QT(K,z,Y);else ZT(K,z,Y)}}function YT(Z){var Y;if((Y=Z===null||Z===void 0?void 0:Z.color)===null||Y===void 0?void 0:Y.alpha)return!0;return!1}function GT(Z){return Z?(Y)=>Z$(Y,"0x"):(Y)=>Q$(Y,"0x")}function KT(Z){if("color"in Z)return!0;if(Z.view==="color")return!0;return!1}var UT=uZ({id:"input-color-number",type:"input",accept:(Z,Y)=>{if(typeof Z!=="number")return null;if(!KT(Y))return null;let K=ez(Y);return K?{initialValue:Z,params:Object.assign(Object.assign({},K),{supportsAlpha:YT(Y)})}:null},binding:{reader:(Z)=>{return Z.params.supportsAlpha?aS:tS},equals:X$,writer:(Z)=>{return JT(Z.params.supportsAlpha)}},controller:(Z)=>{var Y,K;return new ZG(Z.document,{colorType:"int",expanded:(Y=Z.params.expanded)!==null&&Y!==void 0?Y:!1,formatter:GT(Z.params.supportsAlpha),parser:L4("int"),pickerLayout:(K=Z.params.picker)!==null&&K!==void 0?K:"popup",supportsAlpha:Z.params.supportsAlpha,value:Z.value,viewProps:Z.viewProps})}});function qT(Z,Y){if(!hH(Z))return vZ(ZQ.black(),Y);if(Y==="int"){let K=fW(Z);return new ZQ(K,"rgb")}if(Y==="float"){let K=fW(Z);return new QG(K,"rgb")}return vZ(ZQ.black(),"int")}function zT(Z){return xH(Z)}function $T(Z){return(Y)=>{let K=qT(Y,Z);return vZ(K,"int")}}function OT(Z,Y){return(K)=>{if(Z)return AH(K,Y);return BH(K,Y)}}var LT=uZ({id:"input-color-object",type:"input",accept:(Z,Y)=>{var K;if(!hH(Z))return null;let z=ez(Y);return z?{initialValue:Z,params:Object.assign(Object.assign({},z),{colorType:(K=KH(Y))!==null&&K!==void 0?K:"int"})}:null},binding:{reader:(Z)=>$T(Z.params.colorType),equals:X$,writer:(Z)=>XT(zT(Z.initialValue),Z.params.colorType)},controller:(Z)=>{var Y,K;let z=xH(Z.initialValue);return new ZG(Z.document,{colorType:Z.params.colorType,expanded:(Y=Z.params.expanded)!==null&&Y!==void 0?Y:!1,formatter:OT(z,Z.params.colorType),parser:L4("int"),pickerLayout:(K=Z.params.picker)!==null&&K!==void 0?K:"popup",supportsAlpha:z,value:Z.value,viewProps:Z.viewProps})}}),WT=uZ({id:"input-color-string",type:"input",accept:(Z,Y)=>{if(typeof Z!=="string")return null;if(Y.view==="text")return null;let K=xS(Z,KH(Y));if(!K)return null;let z=IH(K);if(!z)return null;let $=ez(Y);return $?{initialValue:Z,params:Object.assign(Object.assign({},$),{format:K,stringifier:z})}:null},binding:{reader:()=>hS,equals:X$,writer:(Z)=>{let Y=eS(Z.params.format);if(!Y)throw hQ.notBindable();return Y}},controller:(Z)=>{var Y,K;return new ZG(Z.document,{colorType:Z.params.format.type,expanded:(Y=Z.params.expanded)!==null&&Y!==void 0?Y:!1,formatter:Z.params.stringifier,parser:L4("int"),pickerLayout:(K=Z.params.picker)!==null&&K!==void 0?K:"popup",supportsAlpha:Z.params.format.alpha,value:Z.value,viewProps:Z.viewProps})}});class XG{constructor(Z){this.components=Z.components,this.asm_=Z.assembly}constrain(Z){let Y=this.asm_.toComponents(Z).map((K,z)=>{var $,F;return(F=($=this.components[z])===null||$===void 0?void 0:$.constrain(K))!==null&&F!==void 0?F:K});return this.asm_.fromComponents(Y)}}var vW=eJ("pndtxt");class yH{constructor(Z,Y){this.textViews=Y.textViews,this.element=Z.createElement("div"),this.element.classList.add(vW()),this.textViews.forEach((K)=>{let z=Z.createElement("div");z.classList.add(vW("a")),z.appendChild(K.element),this.element.appendChild(z)})}}function DT(Z,Y,K){return new Z6(Z,{arrayPosition:K===0?"fst":K===Y.axes.length-1?"lst":"mid",parser:Y.parser,props:Y.axes[K].textProps,value:VQ(0,{constraint:Y.axes[K].constraint}),viewProps:Y.viewProps})}class YG{constructor(Z,Y){this.value=Y.value,this.viewProps=Y.viewProps,this.acs_=Y.axes.map((K,z)=>DT(Z,Y,z)),this.acs_.forEach((K,z)=>{Q6({primary:this.value,secondary:K.value,forward:($)=>Y.assembly.toComponents($)[z],backward:($,F)=>{let B=Y.assembly.toComponents($);return B[z]=F,Y.assembly.fromComponents(B)}})}),this.view=new yH(Z,{textViews:this.acs_.map((K)=>K.view)})}get textControllers(){return this.acs_}}class bH extends s1{get max(){return this.controller.valueController.sliderController.props.get("max")}set max(Z){this.controller.valueController.sliderController.props.set("max",Z)}get min(){return this.controller.valueController.sliderController.props.get("min")}set min(Z){this.controller.valueController.sliderController.props.set("min",Z)}}function HT(Z,Y){let K=[],z=KD(Z,Y);if(z)K.push(z);let $=UD(Z);if($)K.push($);let F=tz(Z.options);if(F)K.push(F);return new e1(K)}var MT=uZ({id:"input-number",type:"input",accept:(Z,Y)=>{if(typeof Z!=="number")return null;let K=kQ(Y,(z)=>Object.assign(Object.assign({},zD(z)),{options:z.optional.custom($4),readonly:z.optional.constant(!1)}));return K?{initialValue:Z,params:K}:null},binding:{reader:(Z)=>ZD,constraint:(Z)=>HT(Z.params,Z.initialValue),writer:(Z)=>O4},controller:(Z)=>{let{value:Y,constraint:K}=Z,z=K&&i5(K,J6);if(z)return new YX(Z.document,{props:new vJ({options:z.values.value("options")}),value:Y,viewProps:Z.viewProps});let $=qD(Z.params,Y.rawValue),F=K&&i5(K,n1);if(F)return new G4(Z.document,Object.assign(Object.assign({},oD(Object.assign(Object.assign({},$),{keyScale:VQ($.keyScale),max:F.values.value("max"),min:F.values.value("min")}))),{parser:XX,value:Y,viewProps:Z.viewProps}));return new Z6(Z.document,{parser:XX,props:vJ.fromObject($),value:Y,viewProps:Z.viewProps})},api(Z){if(typeof Z.controller.value.rawValue!=="number")return null;if(Z.controller.valueController instanceof G4)return new bH(Z.controller);if(Z.controller.valueController instanceof YX)return new e5(Z.controller);return null}});class ZX{constructor(Z=0,Y=0){this.x=Z,this.y=Y}getComponents(){return[this.x,this.y]}static isObject(Z){if(MQ(Z))return!1;let{x:Y,y:K}=Z;if(typeof Y!=="number"||typeof K!=="number")return!1;return!0}static equals(Z,Y){return Z.x===Y.x&&Z.y===Y.y}toObject(){return{x:this.x,y:this.y}}}var fH={toComponents:(Z)=>Z.getComponents(),fromComponents:(Z)=>new ZX(...Z)},p1=eJ("p2d");class vH{constructor(Z,Y){this.element=Z.createElement("div"),this.element.classList.add(p1()),Y.viewProps.bindClassModifiers(this.element),QX(Y.expanded,o1(this.element,p1(void 0,"expanded")));let K=Z.createElement("div");K.classList.add(p1("h")),this.element.appendChild(K);let z=Z.createElement("button");z.classList.add(p1("b")),z.appendChild(r5(Z,"p2dpad")),Y.viewProps.bindDisabled(z),K.appendChild(z),this.buttonElement=z;let $=Z.createElement("div");if($.classList.add(p1("t")),K.appendChild($),this.textElement=$,Y.pickerLayout==="inline"){let F=Z.createElement("div");F.classList.add(p1("p")),this.element.appendChild(F),this.pickerElement=F}else this.pickerElement=null}}var pX=eJ("p2dp");class uH{constructor(Z,Y){if(this.onFoldableChange_=this.onFoldableChange_.bind(this),this.onPropsChange_=this.onPropsChange_.bind(this),this.onValueChange_=this.onValueChange_.bind(this),this.props_=Y.props,this.props_.emitter.on("change",this.onPropsChange_),this.element=Z.createElement("div"),this.element.classList.add(pX()),Y.layout==="popup")this.element.classList.add(pX(void 0,"p"));Y.viewProps.bindClassModifiers(this.element);let K=Z.createElement("div");K.classList.add(pX("p")),Y.viewProps.bindTabIndex(K),this.element.appendChild(K),this.padElement=K;let z=Z.createElementNS(R8,"svg");z.classList.add(pX("g")),this.padElement.appendChild(z),this.svgElem_=z;let $=Z.createElementNS(R8,"line");$.classList.add(pX("ax")),$.setAttributeNS(null,"x1","0"),$.setAttributeNS(null,"y1","50%"),$.setAttributeNS(null,"x2","100%"),$.setAttributeNS(null,"y2","50%"),this.svgElem_.appendChild($);let F=Z.createElementNS(R8,"line");F.classList.add(pX("ax")),F.setAttributeNS(null,"x1","50%"),F.setAttributeNS(null,"y1","0"),F.setAttributeNS(null,"x2","50%"),F.setAttributeNS(null,"y2","100%"),this.svgElem_.appendChild(F);let B=Z.createElementNS(R8,"line");B.classList.add(pX("l")),B.setAttributeNS(null,"x1","50%"),B.setAttributeNS(null,"y1","50%"),this.svgElem_.appendChild(B),this.lineElem_=B;let j=Z.createElement("div");j.classList.add(pX("m")),this.padElement.appendChild(j),this.markerElem_=j,Y.value.emitter.on("change",this.onValueChange_),this.value=Y.value,this.update_()}get allFocusableElements(){return[this.padElement]}update_(){let[Z,Y]=this.value.rawValue.getComponents(),K=this.props_.get("max"),z=UQ(Z,-K,+K,0,100),$=UQ(Y,-K,+K,0,100),F=this.props_.get("invertsY")?100-$:$;this.lineElem_.setAttributeNS(null,"x2",`${z}%`),this.lineElem_.setAttributeNS(null,"y2",`${F}%`),this.markerElem_.style.left=`${z}%`,this.markerElem_.style.top=`${F}%`}onValueChange_(){this.update_()}onPropsChange_(){this.update_()}onFoldableChange_(){this.update_()}}function uW(Z,Y,K){return[aZ(Y[0],GX(Z)),aZ(Y[1],Y4(Z))*(K?1:-1)]}class gH{constructor(Z,Y){this.onPadKeyDown_=this.onPadKeyDown_.bind(this),this.onPadKeyUp_=this.onPadKeyUp_.bind(this),this.onPointerDown_=this.onPointerDown_.bind(this),this.onPointerMove_=this.onPointerMove_.bind(this),this.onPointerUp_=this.onPointerUp_.bind(this),this.props=Y.props,this.value=Y.value,this.viewProps=Y.viewProps,this.view=new uH(Z,{layout:Y.layout,props:this.props,value:this.value,viewProps:this.viewProps}),this.ptHandler_=new rX(this.view.padElement),this.ptHandler_.emitter.on("down",this.onPointerDown_),this.ptHandler_.emitter.on("move",this.onPointerMove_),this.ptHandler_.emitter.on("up",this.onPointerUp_),this.view.padElement.addEventListener("keydown",this.onPadKeyDown_),this.view.padElement.addEventListener("keyup",this.onPadKeyUp_)}handlePointerEvent_(Z,Y){if(!Z.point)return;let K=this.props.get("max"),z=UQ(Z.point.x,0,Z.bounds.width,-K,+K),$=UQ(this.props.get("invertsY")?Z.bounds.height-Z.point.y:Z.point.y,0,Z.bounds.height,-K,+K);this.value.setRawValue(new ZX(z,$),Y)}onPointerDown_(Z){this.handlePointerEvent_(Z.data,{forceEmit:!1,last:!1})}onPointerMove_(Z){this.handlePointerEvent_(Z.data,{forceEmit:!1,last:!1})}onPointerUp_(Z){this.handlePointerEvent_(Z.data,{forceEmit:!0,last:!0})}onPadKeyDown_(Z){if(sD(Z.key))Z.preventDefault();let[Y,K]=uW(Z,[this.props.get("xKeyScale"),this.props.get("yKeyScale")],this.props.get("invertsY"));if(Y===0&&K===0)return;this.value.setRawValue(new ZX(this.value.rawValue.x+Y,this.value.rawValue.y+K),{forceEmit:!1,last:!1})}onPadKeyUp_(Z){let[Y,K]=uW(Z,[this.props.get("xKeyScale"),this.props.get("yKeyScale")],this.props.get("invertsY"));if(Y===0&&K===0)return;this.value.setRawValue(this.value.rawValue,{forceEmit:!0,last:!0})}}class dH{constructor(Z,Y){var K,z;this.onPopupChildBlur_=this.onPopupChildBlur_.bind(this),this.onPopupChildKeydown_=this.onPopupChildKeydown_.bind(this),this.onPadButtonBlur_=this.onPadButtonBlur_.bind(this),this.onPadButtonClick_=this.onPadButtonClick_.bind(this),this.value=Y.value,this.viewProps=Y.viewProps,this.foldable_=z4.create(Y.expanded),this.popC_=Y.pickerLayout==="popup"?new az(Z,{viewProps:this.viewProps}):null;let $=new gH(Z,{layout:Y.pickerLayout,props:new vJ({invertsY:VQ(Y.invertsY),max:VQ(Y.max),xKeyScale:Y.axes[0].textProps.value("keyScale"),yKeyScale:Y.axes[1].textProps.value("keyScale")}),value:this.value,viewProps:this.viewProps});if($.view.allFocusableElements.forEach((F)=>{F.addEventListener("blur",this.onPopupChildBlur_),F.addEventListener("keydown",this.onPopupChildKeydown_)}),this.pickerC_=$,this.textC_=new YG(Z,{assembly:fH,axes:Y.axes,parser:Y.parser,value:this.value,viewProps:this.viewProps}),this.view=new vH(Z,{expanded:this.foldable_.value("expanded"),pickerLayout:Y.pickerLayout,viewProps:this.viewProps}),this.view.textElement.appendChild(this.textC_.view.element),(K=this.view.buttonElement)===null||K===void 0||K.addEventListener("blur",this.onPadButtonBlur_),(z=this.view.buttonElement)===null||z===void 0||z.addEventListener("click",this.onPadButtonClick_),this.popC_)this.view.element.appendChild(this.popC_.view.element),this.popC_.view.element.appendChild(this.pickerC_.view.element),Q6({primary:this.foldable_.value("expanded"),secondary:this.popC_.shows,forward:(F)=>F,backward:(F,B)=>B});else if(this.view.pickerElement)this.view.pickerElement.appendChild(this.pickerC_.view.element),nz(this.foldable_,this.view.pickerElement)}get textController(){return this.textC_}onPadButtonBlur_(Z){if(!this.popC_)return;let Y=this.view.element,K=J7(Z.relatedTarget);if(!K||!Y.contains(K))this.popC_.shows.rawValue=!1}onPadButtonClick_(){if(this.foldable_.set("expanded",!this.foldable_.get("expanded")),this.foldable_.get("expanded"))this.pickerC_.view.allFocusableElements[0].focus()}onPopupChildBlur_(Z){if(!this.popC_)return;let Y=this.popC_.view.element,K=FD(Z);if(K&&Y.contains(K))return;if(K&&K===this.view.buttonElement&&!dz(Y.ownerDocument))return;this.popC_.shows.rawValue=!1}onPopupChildKeydown_(Z){if(this.popC_){if(Z.key==="Escape")this.popC_.shows.rawValue=!1}else if(this.view.pickerElement){if(Z.key==="Escape")this.view.buttonElement.focus()}}}function FT(Z){return ZX.isObject(Z)?new ZX(Z.x,Z.y):new ZX}function BT(Z,Y){Z.writeProperty("x",Y.x),Z.writeProperty("y",Y.y)}function AT(Z,Y){return new XG({assembly:fH,components:[JX(Object.assign(Object.assign({},Z),Z.x),Y.x),JX(Object.assign(Object.assign({},Z),Z.y),Y.y)]})}function gW(Z,Y){var K,z;if(!MQ(Z.min)||!MQ(Z.max))return Math.max(Math.abs((K=Z.min)!==null&&K!==void 0?K:0),Math.abs((z=Z.max)!==null&&z!==void 0?z:0));let $=YD(Z);return Math.max(Math.abs($)*10,Math.abs(Y)*10)}function IT(Z,Y){var K,z;let $=gW(f9(Z,(K=Z.x)!==null&&K!==void 0?K:{}),Y.x),F=gW(f9(Z,(z=Z.y)!==null&&z!==void 0?z:{}),Y.y);return Math.max($,F)}function jT(Z){if(!("y"in Z))return!1;let Y=Z.y;if(!Y)return!1;return"inverted"in Y?!!Y.inverted:!1}var PT=uZ({id:"input-point2d",type:"input",accept:(Z,Y)=>{if(!ZX.isObject(Z))return null;let K=kQ(Y,(z)=>Object.assign(Object.assign({},K4(z)),{expanded:z.optional.boolean,picker:z.optional.custom(aD),readonly:z.optional.constant(!1),x:z.optional.custom(lX),y:z.optional.object(Object.assign(Object.assign({},K4(z)),{inverted:z.optional.boolean}))}));return K?{initialValue:Z,params:K}:null},binding:{reader:()=>FT,constraint:(Z)=>AT(Z.params,Z.initialValue),equals:ZX.equals,writer:()=>BT},controller:(Z)=>{var Y,K;let{document:z,value:$,constraint:F}=Z,B=[Z.params.x,Z.params.y];return new dH(z,{axes:$.rawValue.getComponents().map((j,y)=>{var _;return gz({constraint:F.components[y],initialValue:j,params:f9(Z.params,(_=B[y])!==null&&_!==void 0?_:{})})}),expanded:(Y=Z.params.expanded)!==null&&Y!==void 0?Y:!1,invertsY:jT(Z.params),max:IT(Z.params,$.rawValue),parser:XX,pickerLayout:(K=Z.params.picker)!==null&&K!==void 0?K:"popup",value:$,viewProps:Z.viewProps})}});class y9{constructor(Z=0,Y=0,K=0){this.x=Z,this.y=Y,this.z=K}getComponents(){return[this.x,this.y,this.z]}static isObject(Z){if(MQ(Z))return!1;let{x:Y,y:K,z}=Z;if(typeof Y!=="number"||typeof K!=="number"||typeof z!=="number")return!1;return!0}static equals(Z,Y){return Z.x===Y.x&&Z.y===Y.y&&Z.z===Y.z}toObject(){return{x:this.x,y:this.y,z:this.z}}}var mH={toComponents:(Z)=>Z.getComponents(),fromComponents:(Z)=>new y9(...Z)};function NT(Z){return y9.isObject(Z)?new y9(Z.x,Z.y,Z.z):new y9}function wT(Z,Y){Z.writeProperty("x",Y.x),Z.writeProperty("y",Y.y),Z.writeProperty("z",Y.z)}function RT(Z,Y){return new XG({assembly:mH,components:[JX(Object.assign(Object.assign({},Z),Z.x),Y.x),JX(Object.assign(Object.assign({},Z),Z.y),Y.y),JX(Object.assign(Object.assign({},Z),Z.z),Y.z)]})}var VT=uZ({id:"input-point3d",type:"input",accept:(Z,Y)=>{if(!y9.isObject(Z))return null;let K=kQ(Y,(z)=>Object.assign(Object.assign({},K4(z)),{readonly:z.optional.constant(!1),x:z.optional.custom(lX),y:z.optional.custom(lX),z:z.optional.custom(lX)}));return K?{initialValue:Z,params:K}:null},binding:{reader:(Z)=>NT,constraint:(Z)=>RT(Z.params,Z.initialValue),equals:y9.equals,writer:(Z)=>wT},controller:(Z)=>{let{value:Y,constraint:K}=Z,z=[Z.params.x,Z.params.y,Z.params.z];return new YG(Z.document,{assembly:mH,axes:Y.rawValue.getComponents().map(($,F)=>{var B;return gz({constraint:K.components[F],initialValue:$,params:f9(Z.params,(B=z[F])!==null&&B!==void 0?B:{})})}),parser:XX,value:Y,viewProps:Z.viewProps})}});class b9{constructor(Z=0,Y=0,K=0,z=0){this.x=Z,this.y=Y,this.z=K,this.w=z}getComponents(){return[this.x,this.y,this.z,this.w]}static isObject(Z){if(MQ(Z))return!1;let{x:Y,y:K,z,w:$}=Z;if(typeof Y!=="number"||typeof K!=="number"||typeof z!=="number"||typeof $!=="number")return!1;return!0}static equals(Z,Y){return Z.x===Y.x&&Z.y===Y.y&&Z.z===Y.z&&Z.w===Y.w}toObject(){return{x:this.x,y:this.y,z:this.z,w:this.w}}}var cH={toComponents:(Z)=>Z.getComponents(),fromComponents:(Z)=>new b9(...Z)};function ST(Z){return b9.isObject(Z)?new b9(Z.x,Z.y,Z.z,Z.w):new b9}function TT(Z,Y){Z.writeProperty("x",Y.x),Z.writeProperty("y",Y.y),Z.writeProperty("z",Y.z),Z.writeProperty("w",Y.w)}function _T(Z,Y){return new XG({assembly:cH,components:[JX(Object.assign(Object.assign({},Z),Z.x),Y.x),JX(Object.assign(Object.assign({},Z),Z.y),Y.y),JX(Object.assign(Object.assign({},Z),Z.z),Y.z),JX(Object.assign(Object.assign({},Z),Z.w),Y.w)]})}var kT=uZ({id:"input-point4d",type:"input",accept:(Z,Y)=>{if(!b9.isObject(Z))return null;let K=kQ(Y,(z)=>Object.assign(Object.assign({},K4(z)),{readonly:z.optional.constant(!1),w:z.optional.custom(lX),x:z.optional.custom(lX),y:z.optional.custom(lX),z:z.optional.custom(lX)}));return K?{initialValue:Z,params:K}:null},binding:{reader:(Z)=>ST,constraint:(Z)=>_T(Z.params,Z.initialValue),equals:b9.equals,writer:(Z)=>TT},controller:(Z)=>{let{value:Y,constraint:K}=Z,z=[Z.params.x,Z.params.y,Z.params.z,Z.params.w];return new YG(Z.document,{assembly:cH,axes:Y.rawValue.getComponents().map(($,F)=>{var B;return gz({constraint:K.components[F],initialValue:$,params:f9(Z.params,(B=z[F])!==null&&B!==void 0?B:{})})}),parser:XX,value:Y,viewProps:Z.viewProps})}});function ET(Z){let Y=[],K=tz(Z.options);if(K)Y.push(K);return new e1(Y)}var CT=uZ({id:"input-string",type:"input",accept:(Z,Y)=>{if(typeof Z!=="string")return null;let K=kQ(Y,(z)=>({readonly:z.optional.constant(!1),options:z.optional.custom($4)}));return K?{initialValue:Z,params:K}:null},binding:{reader:(Z)=>pD,constraint:(Z)=>ET(Z.params),writer:(Z)=>O4},controller:(Z)=>{let{document:Y,value:K,constraint:z}=Z,$=z&&i5(z,J6);if($)return new YX(Y,{props:new vJ({options:$.values.value("options")}),value:K,viewProps:Z.viewProps});return new l1(Y,{parser:(F)=>F,props:vJ.fromObject({formatter:xz}),value:K,viewProps:Z.viewProps})},api(Z){if(typeof Z.controller.value.rawValue!=="string")return null;if(Z.controller.valueController instanceof YX)return new e5(Z.controller);return null}}),W4={monitor:{defaultInterval:200,defaultRows:3}},dW=eJ("mll");class pH{constructor(Z,Y){this.onValueUpdate_=this.onValueUpdate_.bind(this),this.formatter_=Y.formatter,this.element=Z.createElement("div"),this.element.classList.add(dW()),Y.viewProps.bindClassModifiers(this.element);let K=Z.createElement("textarea");K.classList.add(dW("i")),K.style.height=`calc(var(${tD("containerUnitSize")}) * ${Y.rows})`,K.readOnly=!0,Y.viewProps.bindDisabled(K),this.element.appendChild(K),this.textareaElem_=K,Y.value.emitter.on("change",this.onValueUpdate_),this.value=Y.value,this.update_()}update_(){let Z=this.textareaElem_,Y=Z.scrollTop===Z.scrollHeight-Z.clientHeight,K=[];if(this.value.rawValue.forEach((z)=>{if(z!==void 0)K.push(this.formatter_(z))}),Z.textContent=K.join(`
162
+ `),Y)Z.scrollTop=Z.scrollHeight}onValueUpdate_(){this.update_()}}class GG{constructor(Z,Y){this.value=Y.value,this.viewProps=Y.viewProps,this.view=new pH(Z,{formatter:Y.formatter,rows:Y.rows,value:this.value,viewProps:this.viewProps})}}var mW=eJ("sgl");class sH{constructor(Z,Y){this.onValueUpdate_=this.onValueUpdate_.bind(this),this.formatter_=Y.formatter,this.element=Z.createElement("div"),this.element.classList.add(mW()),Y.viewProps.bindClassModifiers(this.element);let K=Z.createElement("input");K.classList.add(mW("i")),K.readOnly=!0,K.type="text",Y.viewProps.bindDisabled(K),this.element.appendChild(K),this.inputElement=K,Y.value.emitter.on("change",this.onValueUpdate_),this.value=Y.value,this.update_()}update_(){let Z=this.value.rawValue,Y=Z[Z.length-1];this.inputElement.value=Y!==void 0?this.formatter_(Y):""}onValueUpdate_(){this.update_()}}class KG{constructor(Z,Y){this.value=Y.value,this.viewProps=Y.viewProps,this.view=new sH(Z,{formatter:Y.formatter,value:this.value,viewProps:this.viewProps})}}var xT=uZ({id:"monitor-bool",type:"monitor",accept:(Z,Y)=>{if(typeof Z!=="boolean")return null;let K=kQ(Y,(z)=>({readonly:z.required.constant(!0),rows:z.optional.number}));return K?{initialValue:Z,params:K}:null},binding:{reader:(Z)=>cD},controller:(Z)=>{var Y;if(Z.value.rawValue.length===1)return new KG(Z.document,{formatter:CW,value:Z.value,viewProps:Z.viewProps});return new GG(Z.document,{formatter:CW,rows:(Y=Z.params.rows)!==null&&Y!==void 0?Y:W4.monitor.defaultRows,value:Z.value,viewProps:Z.viewProps})}});class lH extends s1{get max(){return this.controller.valueController.props.get("max")}set max(Z){this.controller.valueController.props.set("max",Z)}get min(){return this.controller.valueController.props.get("min")}set min(Z){this.controller.valueController.props.set("min",Z)}}var sX=eJ("grl");class iH{constructor(Z,Y){this.onCursorChange_=this.onCursorChange_.bind(this),this.onValueUpdate_=this.onValueUpdate_.bind(this),this.element=Z.createElement("div"),this.element.classList.add(sX()),Y.viewProps.bindClassModifiers(this.element),this.formatter_=Y.formatter,this.props_=Y.props,this.cursor_=Y.cursor,this.cursor_.emitter.on("change",this.onCursorChange_);let K=Z.createElementNS(R8,"svg");K.classList.add(sX("g")),K.style.height=`calc(var(${tD("containerUnitSize")}) * ${Y.rows})`,this.element.appendChild(K),this.svgElem_=K;let z=Z.createElementNS(R8,"polyline");this.svgElem_.appendChild(z),this.lineElem_=z;let $=Z.createElement("div");$.classList.add(sX("t"),eJ("tt")()),this.element.appendChild($),this.tooltipElem_=$,Y.value.emitter.on("change",this.onValueUpdate_),this.value=Y.value,this.update_()}get graphElement(){return this.svgElem_}update_(){let{clientWidth:Z,clientHeight:Y}=this.element,K=this.value.rawValue.length-1,z=this.props_.get("min"),$=this.props_.get("max"),F=[];this.value.rawValue.forEach((b,k)=>{if(b===void 0)return;let a=UQ(k,0,K,0,Z),DJ=UQ(b,z,$,Y,0);F.push([a,DJ].join(","))}),this.lineElem_.setAttributeNS(null,"points",F.join(" "));let B=this.tooltipElem_,j=this.value.rawValue[this.cursor_.rawValue];if(j===void 0){B.classList.remove(sX("t","a"));return}let y=UQ(this.cursor_.rawValue,0,K,0,Z),_=UQ(j,z,$,Y,0);if(B.style.left=`${y}px`,B.style.top=`${_}px`,B.textContent=`${this.formatter_(j)}`,!B.classList.contains(sX("t","a")))B.classList.add(sX("t","a"),sX("t","in")),p5(B),B.classList.remove(sX("t","in"))}onValueUpdate_(){this.update_()}onCursorChange_(){this.update_()}}class Y${constructor(Z,Y){if(this.onGraphMouseMove_=this.onGraphMouseMove_.bind(this),this.onGraphMouseLeave_=this.onGraphMouseLeave_.bind(this),this.onGraphPointerDown_=this.onGraphPointerDown_.bind(this),this.onGraphPointerMove_=this.onGraphPointerMove_.bind(this),this.onGraphPointerUp_=this.onGraphPointerUp_.bind(this),this.props=Y.props,this.value=Y.value,this.viewProps=Y.viewProps,this.cursor_=VQ(-1),this.view=new iH(Z,{cursor:this.cursor_,formatter:Y.formatter,rows:Y.rows,props:this.props,value:this.value,viewProps:this.viewProps}),!dz(Z))this.view.element.addEventListener("mousemove",this.onGraphMouseMove_),this.view.element.addEventListener("mouseleave",this.onGraphMouseLeave_);else{let K=new rX(this.view.element);K.emitter.on("down",this.onGraphPointerDown_),K.emitter.on("move",this.onGraphPointerMove_),K.emitter.on("up",this.onGraphPointerUp_)}}importProps(Z){return F7(Z,null,(Y)=>({max:Y.required.number,min:Y.required.number}),(Y)=>{return this.props.set("max",Y.max),this.props.set("min",Y.min),!0})}exportProps(){return B7(null,{max:this.props.get("max"),min:this.props.get("min")})}onGraphMouseLeave_(){this.cursor_.rawValue=-1}onGraphMouseMove_(Z){let{clientWidth:Y}=this.view.element;this.cursor_.rawValue=Math.floor(UQ(Z.offsetX,0,Y,0,this.value.rawValue.length))}onGraphPointerDown_(Z){this.onGraphPointerMove_(Z)}onGraphPointerMove_(Z){if(!Z.data.point){this.cursor_.rawValue=-1;return}this.cursor_.rawValue=Math.floor(UQ(Z.data.point.x,0,Z.data.bounds.width,0,this.value.rawValue.length))}onGraphPointerUp_(){this.cursor_.rawValue=-1}}function hz(Z){return!MQ(Z.format)?Z.format:eZ(2)}function hT(Z){var Y;if(Z.value.rawValue.length===1)return new KG(Z.document,{formatter:hz(Z.params),value:Z.value,viewProps:Z.viewProps});return new GG(Z.document,{formatter:hz(Z.params),rows:(Y=Z.params.rows)!==null&&Y!==void 0?Y:W4.monitor.defaultRows,value:Z.value,viewProps:Z.viewProps})}function yT(Z){var Y,K,z;return new Y$(Z.document,{formatter:hz(Z.params),rows:(Y=Z.params.rows)!==null&&Y!==void 0?Y:W4.monitor.defaultRows,props:vJ.fromObject({max:(K=Z.params.max)!==null&&K!==void 0?K:100,min:(z=Z.params.min)!==null&&z!==void 0?z:0}),value:Z.value,viewProps:Z.viewProps})}function cW(Z){return Z.view==="graph"}var bT=uZ({id:"monitor-number",type:"monitor",accept:(Z,Y)=>{if(typeof Z!=="number")return null;let K=kQ(Y,(z)=>({format:z.optional.function,max:z.optional.number,min:z.optional.number,readonly:z.required.constant(!0),rows:z.optional.number,view:z.optional.string}));return K?{initialValue:Z,params:K}:null},binding:{defaultBufferSize:(Z)=>cW(Z)?64:1,reader:(Z)=>ZD},controller:(Z)=>{if(cW(Z.params))return yT(Z);return hT(Z)},api:(Z)=>{if(Z.controller.valueController instanceof Y$)return new lH(Z.controller);return null}}),fT=uZ({id:"monitor-string",type:"monitor",accept:(Z,Y)=>{if(typeof Z!=="string")return null;let K=kQ(Y,(z)=>({multiline:z.optional.boolean,readonly:z.required.constant(!0),rows:z.optional.number}));return K?{initialValue:Z,params:K}:null},binding:{reader:(Z)=>pD},controller:(Z)=>{var Y;let K=Z.value;if(K.rawValue.length>1||Z.params.multiline)return new GG(Z.document,{formatter:xz,rows:(Y=Z.params.rows)!==null&&Y!==void 0?Y:W4.monitor.defaultRows,value:K,viewProps:Z.viewProps});return new KG(Z.document,{formatter:xz,value:K,viewProps:Z.viewProps})}});class nH{constructor(){this.map_=new Map}get(Z){var Y;return(Y=this.map_.get(Z))!==null&&Y!==void 0?Y:null}has(Z){return this.map_.has(Z)}add(Z,Y){return this.map_.set(Z,Y),Z.viewProps.handleDispose(()=>{this.map_.delete(Z)}),Y}}class rH{constructor(Z){this.target=Z.target,this.reader_=Z.reader,this.writer_=Z.writer}read(){return this.reader_(this.target.read())}write(Z){this.writer_(this.target,Z)}inject(Z){this.write(this.reader_(Z))}}function vT(Z,Y){var K;let z=Z.accept(Y.target.read(),Y.params);if(MQ(z))return null;let $={target:Y.target,initialValue:z.initialValue,params:z.params},F=kQ(Y.params,(k)=>({disabled:k.optional.boolean,hidden:k.optional.boolean,label:k.optional.string,tag:k.optional.string})),B=Z.binding.reader($),j=Z.binding.constraint?Z.binding.constraint($):void 0,y=new rH({reader:B,target:Y.target,writer:Z.binding.writer($)}),_=new WD(VQ(B(z.initialValue),{constraint:j,equals:Z.binding.equals}),y),b=Z.controller({constraint:j,document:Y.document,initialValue:z.initialValue,params:z.params,value:_,viewProps:KX.create({disabled:F===null||F===void 0?void 0:F.disabled,hidden:F===null||F===void 0?void 0:F.hidden})});return new BD(Y.document,{blade:a1(),props:vJ.fromObject({label:"label"in Y.params?(K=F===null||F===void 0?void 0:F.label)!==null&&K!==void 0?K:null:Y.target.key}),tag:F===null||F===void 0?void 0:F.tag,value:_,valueController:b})}class oH{constructor(Z){this.target=Z.target,this.reader_=Z.reader}read(){return this.reader_(this.target.read())}}function uT(Z,Y){return Y===0?new vD:new uD(Z,Y!==null&&Y!==void 0?Y:W4.monitor.defaultInterval)}function gT(Z,Y){var K,z,$;let F=Z.accept(Y.target.read(),Y.params);if(MQ(F))return null;let B={target:Y.target,initialValue:F.initialValue,params:F.params},j=kQ(Y.params,(a)=>({bufferSize:a.optional.number,disabled:a.optional.boolean,hidden:a.optional.boolean,interval:a.optional.number,label:a.optional.string})),y=Z.binding.reader(B),_=(z=(K=j===null||j===void 0?void 0:j.bufferSize)!==null&&K!==void 0?K:Z.binding.defaultBufferSize&&Z.binding.defaultBufferSize(F.params))!==null&&z!==void 0?z:1,b=new ID({binding:new oH({reader:y,target:Y.target}),bufferSize:_,ticker:uT(Y.document,j===null||j===void 0?void 0:j.interval)}),k=Z.controller({document:Y.document,params:F.params,value:b,viewProps:KX.create({disabled:j===null||j===void 0?void 0:j.disabled,hidden:j===null||j===void 0?void 0:j.hidden})});return k.viewProps.bindDisabled(b.ticker),k.viewProps.handleDispose(()=>{b.ticker.dispose()}),new jD(Y.document,{blade:a1(),props:vJ.fromObject({label:"label"in Y.params?($=j===null||j===void 0?void 0:j.label)!==null&&$!==void 0?$:null:Y.target.key}),value:b,valueController:k})}class tH{constructor(Z){this.pluginsMap_={blades:[],inputs:[],monitors:[]},this.apiCache_=Z}getAll(){return[...this.pluginsMap_.blades,...this.pluginsMap_.inputs,...this.pluginsMap_.monitors]}register(Z,Y){if(!US(Y.core))throw hQ.notCompatible(Z,Y.id);if(Y.type==="blade")this.pluginsMap_.blades.unshift(Y);else if(Y.type==="input")this.pluginsMap_.inputs.unshift(Y);else if(Y.type==="monitor")this.pluginsMap_.monitors.unshift(Y)}createInput_(Z,Y,K){return this.pluginsMap_.inputs.reduce((z,$)=>z!==null&&z!==void 0?z:vT($,{document:Z,target:Y,params:K}),null)}createMonitor_(Z,Y,K){return this.pluginsMap_.monitors.reduce((z,$)=>z!==null&&z!==void 0?z:gT($,{document:Z,params:K,target:Y}),null)}createBinding(Z,Y,K){let z=Y.read();if(MQ(z))throw new hQ({context:{key:Y.key},type:"nomatchingcontroller"});let $=this.createInput_(Z,Y,K);if($)return $;let F=this.createMonitor_(Z,Y,K);if(F)return F;throw new hQ({context:{key:Y.key},type:"nomatchingcontroller"})}createBlade(Z,Y){let K=this.pluginsMap_.blades.reduce((z,$)=>z!==null&&z!==void 0?z:QS($,{document:Z,params:Y}),null);if(!K)throw new hQ({type:"nomatchingview",context:{params:Y}});return K}createInputBindingApi_(Z){let Y=this.pluginsMap_.inputs.reduce((K,z)=>{var $,F;if(K)return K;return(F=($=z.api)===null||$===void 0?void 0:$.call(z,{controller:Z}))!==null&&F!==void 0?F:null},null);return this.apiCache_.add(Z,Y!==null&&Y!==void 0?Y:new s1(Z))}createMonitorBindingApi_(Z){let Y=this.pluginsMap_.monitors.reduce((K,z)=>{var $,F;if(K)return K;return(F=($=z.api)===null||$===void 0?void 0:$.call(z,{controller:Z}))!==null&&F!==void 0?F:null},null);return this.apiCache_.add(Z,Y!==null&&Y!==void 0?Y:new s1(Z))}createBindingApi(Z){if(this.apiCache_.has(Z))return this.apiCache_.get(Z);if(fV(Z))return this.createInputBindingApi_(Z);if(mV(Z))return this.createMonitorBindingApi_(Z);throw hQ.shouldNeverHappen()}createApi(Z){if(this.apiCache_.has(Z))return this.apiCache_.get(Z);if(bV(Z))return this.createBindingApi(Z);let Y=this.pluginsMap_.blades.reduce((K,z)=>K!==null&&K!==void 0?K:z.api({controller:Z,pool:this}),null);if(!Y)throw hQ.shouldNeverHappen();return this.apiCache_.add(Z,Y)}}var dT=new nH;function mT(){let Z=new tH(dT);return[PT,VT,kT,CT,MT,WT,LT,UT,zS,xT,fT,bT,pV,eV,fD].forEach((Y)=>{Z.register("core",Y)}),Z}class aH extends nX{constructor(Z){super(Z);this.emitter_=new fQ,this.controller.value.emitter.on("change",(Y)=>{this.emitter_.emit("change",new r1(this,Y.rawValue))})}get label(){return this.controller.labelController.props.get("label")}set label(Z){this.controller.labelController.props.set("label",Z)}get options(){return this.controller.valueController.props.get("options")}set options(Z){this.controller.valueController.props.set("options",Z)}get value(){return this.controller.value.rawValue}set value(Z){this.controller.value.rawValue=Z}on(Z,Y){let K=Y.bind(this);return this.emitter_.on(Z,(z)=>{K(z)},{key:Y}),this}off(Z,Y){return this.emitter_.off(Z,Y),this}}class eH extends nX{}class JM extends nX{constructor(Z){super(Z);this.emitter_=new fQ,this.controller.value.emitter.on("change",(Y)=>{this.emitter_.emit("change",new r1(this,Y.rawValue))})}get label(){return this.controller.labelController.props.get("label")}set label(Z){this.controller.labelController.props.set("label",Z)}get max(){return this.controller.valueController.sliderController.props.get("max")}set max(Z){this.controller.valueController.sliderController.props.set("max",Z)}get min(){return this.controller.valueController.sliderController.props.get("min")}set min(Z){this.controller.valueController.sliderController.props.set("min",Z)}get value(){return this.controller.value.rawValue}set value(Z){this.controller.value.rawValue=Z}on(Z,Y){let K=Y.bind(this);return this.emitter_.on(Z,(z)=>{K(z)},{key:Y}),this}off(Z,Y){return this.emitter_.off(Z,Y),this}}class QM extends nX{constructor(Z){super(Z);this.emitter_=new fQ,this.controller.value.emitter.on("change",(Y)=>{this.emitter_.emit("change",new r1(this,Y.rawValue))})}get label(){return this.controller.labelController.props.get("label")}set label(Z){this.controller.labelController.props.set("label",Z)}get formatter(){return this.controller.valueController.props.get("formatter")}set formatter(Z){this.controller.valueController.props.set("formatter",Z)}get value(){return this.controller.value.rawValue}set value(Z){this.controller.value.rawValue=Z}on(Z,Y){let K=Y.bind(this);return this.emitter_.on(Z,(z)=>{K(z)},{key:Y}),this}off(Z,Y){return this.emitter_.off(Z,Y),this}}var cT=function(){return{id:"list",type:"blade",core:t1,accept(Z){let Y=kQ(Z,(K)=>({options:K.required.custom($4),value:K.required.raw,view:K.required.constant("list"),label:K.optional.string}));return Y?{params:Y}:null},controller(Z){let Y=new J6(oz(Z.params.options)),K=VQ(Z.params.value,{constraint:Y}),z=new YX(Z.document,{props:new vJ({options:Y.values.value("options")}),value:K,viewProps:Z.viewProps});return new iX(Z.document,{blade:Z.blade,props:vJ.fromObject({label:Z.params.label}),value:K,valueController:z})},api(Z){if(!(Z.controller instanceof iX))return null;if(!(Z.controller.valueController instanceof YX))return null;return new aH(Z.controller)}}}();class ZM extends rz{constructor(Z,Y){super(Z,Y)}get element(){return this.controller.view.element}}class XM extends s5{constructor(Z,Y){super(Z,{expanded:Y.expanded,blade:Y.blade,props:Y.props,root:!0,viewProps:Y.viewProps})}}var pW=eJ("spr");class YM{constructor(Z,Y){this.element=Z.createElement("div"),this.element.classList.add(pW()),Y.viewProps.bindClassModifiers(this.element);let K=Z.createElement("hr");K.classList.add(pW("r")),this.element.appendChild(K)}}class yz extends q4{constructor(Z,Y){super(Object.assign(Object.assign({},Y),{view:new YM(Z,{viewProps:Y.viewProps})}))}}var pT={id:"separator",type:"blade",core:t1,accept(Z){let Y=kQ(Z,(K)=>({view:K.required.constant("separator")}));return Y?{params:Y}:null},controller(Z){return new yz(Z.document,{blade:Z.blade,viewProps:Z.viewProps})},api(Z){if(!(Z.controller instanceof yz))return null;return new eH(Z.controller)}},sT={id:"slider",type:"blade",core:t1,accept(Z){let Y=kQ(Z,(K)=>({max:K.required.number,min:K.required.number,view:K.required.constant("slider"),format:K.optional.function,label:K.optional.string,value:K.optional.number}));return Y?{params:Y}:null},controller(Z){var Y,K;let z=(Y=Z.params.value)!==null&&Y!==void 0?Y:0,$=new n1({max:Z.params.max,min:Z.params.min}),F=VQ(z,{constraint:$}),B=new G4(Z.document,Object.assign(Object.assign({},oD({formatter:(K=Z.params.format)!==null&&K!==void 0?K:jV,keyScale:VQ(1),max:$.values.value("max"),min:$.values.value("min"),pointerScale:GD(Z.params,z)})),{parser:XX,value:F,viewProps:Z.viewProps}));return new iX(Z.document,{blade:Z.blade,props:vJ.fromObject({label:Z.params.label}),value:F,valueController:B})},api(Z){if(!(Z.controller instanceof iX))return null;if(!(Z.controller.valueController instanceof G4))return null;return new JM(Z.controller)}},lT=function(){return{id:"text",type:"blade",core:t1,accept(Z){let Y=kQ(Z,(K)=>({parse:K.required.function,value:K.required.raw,view:K.required.constant("text"),format:K.optional.function,label:K.optional.string}));return Y?{params:Y}:null},controller(Z){var Y;let K=VQ(Z.params.value),z=new l1(Z.document,{parser:Z.params.parse,props:vJ.fromObject({formatter:(Y=Z.params.format)!==null&&Y!==void 0?Y:($)=>String($)}),value:K,viewProps:Z.viewProps});return new iX(Z.document,{blade:Z.blade,props:vJ.fromObject({label:Z.params.label}),value:K,valueController:z})},api(Z){if(!(Z.controller instanceof iX))return null;if(!(Z.controller.valueController instanceof l1))return null;return new QM(Z.controller)}}}();function iT(Z){let Y=Z.createElement("div");if(Y.classList.add(eJ("dfw")()),Z.body)Z.body.appendChild(Y);return Y}function nT(Z,Y,K){if(Z.querySelector(`style[data-tp-style=${Y}]`))return;let z=Z.createElement("style");z.dataset.tpStyle=Y,z.textContent=K,Z.head.appendChild(z)}class G$ extends ZM{constructor(Z){var Y,K;let z=Z!==null&&Z!==void 0?Z:{},$=(Y=z.document)!==null&&Y!==void 0?Y:_V(),F=mT(),B=new XM($,{expanded:z.expanded,blade:a1(),props:vJ.fromObject({title:z.title}),viewProps:KX.create()});super(B,F);this.pool_=F,this.containerElem_=(K=z.container)!==null&&K!==void 0?K:iT($),this.containerElem_.appendChild(this.element),this.doc_=$,this.usesDefaultWrapper_=!z.container,this.setUpDefaultPlugins_()}get document(){if(!this.doc_)throw hQ.alreadyDisposed();return this.doc_}dispose(){let Z=this.containerElem_;if(!Z)throw hQ.alreadyDisposed();if(this.usesDefaultWrapper_){let Y=Z.parentElement;if(Y)Y.removeChild(Z)}this.containerElem_=null,this.doc_=null,super.dispose()}registerPlugin(Z){if(Z.css)nT(this.document,`plugin-${Z.id}`,Z.css);("plugin"in Z?[Z.plugin]:("plugins"in Z)?Z.plugins:[]).forEach((K)=>{this.pool_.register(Z.id,K)})}setUpDefaultPlugins_(){this.registerPlugin({id:"default",css:".tp-tbiv_b,.tp-coltxtv_ms,.tp-colswv_b,.tp-ckbv_i,.tp-sglv_i,.tp-mllv_i,.tp-grlv_g,.tp-txtv_i,.tp-p2dpv_p,.tp-colswv_sw,.tp-rotv_b,.tp-fldv_b,.tp-p2dv_b,.tp-btnv_b,.tp-lstv_s{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:rgba(0,0,0,0);border-width:0;font-family:inherit;font-size:inherit;font-weight:inherit;margin:0;outline:none;padding:0}.tp-p2dv_b,.tp-btnv_b,.tp-lstv_s{background-color:var(--btn-bg);border-radius:var(--bld-br);color:var(--btn-fg);cursor:pointer;display:block;font-weight:bold;height:var(--cnt-usz);line-height:var(--cnt-usz);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tp-p2dv_b:hover,.tp-btnv_b:hover,.tp-lstv_s:hover{background-color:var(--btn-bg-h)}.tp-p2dv_b:focus,.tp-btnv_b:focus,.tp-lstv_s:focus{background-color:var(--btn-bg-f)}.tp-p2dv_b:active,.tp-btnv_b:active,.tp-lstv_s:active{background-color:var(--btn-bg-a)}.tp-p2dv_b:disabled,.tp-btnv_b:disabled,.tp-lstv_s:disabled{opacity:.5}.tp-rotv_c>.tp-cntv.tp-v-lst,.tp-tbpv_c>.tp-cntv.tp-v-lst,.tp-fldv_c>.tp-cntv.tp-v-lst{margin-bottom:calc(-1*var(--cnt-vp))}.tp-rotv_c>.tp-fldv.tp-v-lst .tp-fldv_c,.tp-tbpv_c>.tp-fldv.tp-v-lst .tp-fldv_c,.tp-fldv_c>.tp-fldv.tp-v-lst .tp-fldv_c{border-bottom-left-radius:0}.tp-rotv_c>.tp-fldv.tp-v-lst .tp-fldv_b,.tp-tbpv_c>.tp-fldv.tp-v-lst .tp-fldv_b,.tp-fldv_c>.tp-fldv.tp-v-lst .tp-fldv_b{border-bottom-left-radius:0}.tp-rotv_c>*:not(.tp-v-fst),.tp-tbpv_c>*:not(.tp-v-fst),.tp-fldv_c>*:not(.tp-v-fst){margin-top:var(--cnt-usp)}.tp-rotv_c>.tp-sprv:not(.tp-v-fst),.tp-tbpv_c>.tp-sprv:not(.tp-v-fst),.tp-fldv_c>.tp-sprv:not(.tp-v-fst),.tp-rotv_c>.tp-cntv:not(.tp-v-fst),.tp-tbpv_c>.tp-cntv:not(.tp-v-fst),.tp-fldv_c>.tp-cntv:not(.tp-v-fst){margin-top:var(--cnt-vp)}.tp-rotv_c>.tp-sprv+*:not(.tp-v-hidden),.tp-tbpv_c>.tp-sprv+*:not(.tp-v-hidden),.tp-fldv_c>.tp-sprv+*:not(.tp-v-hidden),.tp-rotv_c>.tp-cntv+*:not(.tp-v-hidden),.tp-tbpv_c>.tp-cntv+*:not(.tp-v-hidden),.tp-fldv_c>.tp-cntv+*:not(.tp-v-hidden){margin-top:var(--cnt-vp)}.tp-rotv_c>.tp-sprv:not(.tp-v-hidden)+.tp-sprv,.tp-tbpv_c>.tp-sprv:not(.tp-v-hidden)+.tp-sprv,.tp-fldv_c>.tp-sprv:not(.tp-v-hidden)+.tp-sprv,.tp-rotv_c>.tp-cntv:not(.tp-v-hidden)+.tp-cntv,.tp-tbpv_c>.tp-cntv:not(.tp-v-hidden)+.tp-cntv,.tp-fldv_c>.tp-cntv:not(.tp-v-hidden)+.tp-cntv{margin-top:0}.tp-tbpv_c>.tp-cntv,.tp-fldv_c>.tp-cntv{margin-left:4px}.tp-tbpv_c>.tp-fldv>.tp-fldv_b,.tp-fldv_c>.tp-fldv>.tp-fldv_b{border-top-left-radius:var(--bld-br);border-bottom-left-radius:var(--bld-br)}.tp-tbpv_c>.tp-fldv.tp-fldv-expanded>.tp-fldv_b,.tp-fldv_c>.tp-fldv.tp-fldv-expanded>.tp-fldv_b{border-bottom-left-radius:0}.tp-tbpv_c .tp-fldv>.tp-fldv_c,.tp-fldv_c .tp-fldv>.tp-fldv_c{border-bottom-left-radius:var(--bld-br)}.tp-tbpv_c>.tp-cntv+.tp-fldv>.tp-fldv_b,.tp-fldv_c>.tp-cntv+.tp-fldv>.tp-fldv_b{border-top-left-radius:0}.tp-tbpv_c>.tp-cntv+.tp-tabv>.tp-tabv_t,.tp-fldv_c>.tp-cntv+.tp-tabv>.tp-tabv_t{border-top-left-radius:0}.tp-tbpv_c>.tp-tabv>.tp-tabv_t,.tp-fldv_c>.tp-tabv>.tp-tabv_t{border-top-left-radius:var(--bld-br)}.tp-tbpv_c .tp-tabv>.tp-tabv_c,.tp-fldv_c .tp-tabv>.tp-tabv_c{border-bottom-left-radius:var(--bld-br)}.tp-rotv_b,.tp-fldv_b{background-color:var(--cnt-bg);color:var(--cnt-fg);cursor:pointer;display:block;height:calc(var(--cnt-usz) + 4px);line-height:calc(var(--cnt-usz) + 4px);overflow:hidden;padding-left:var(--cnt-hp);padding-right:calc(4px + var(--cnt-usz) + var(--cnt-hp));position:relative;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:100%;transition:border-radius .2s ease-in-out .2s}.tp-rotv_b:hover,.tp-fldv_b:hover{background-color:var(--cnt-bg-h)}.tp-rotv_b:focus,.tp-fldv_b:focus{background-color:var(--cnt-bg-f)}.tp-rotv_b:active,.tp-fldv_b:active{background-color:var(--cnt-bg-a)}.tp-rotv_b:disabled,.tp-fldv_b:disabled{opacity:.5}.tp-rotv_m,.tp-fldv_m{background:linear-gradient(to left, var(--cnt-fg), var(--cnt-fg) 2px, transparent 2px, transparent 4px, var(--cnt-fg) 4px);border-radius:2px;bottom:0;content:\"\";display:block;height:6px;right:calc(var(--cnt-hp) + (var(--cnt-usz) + 4px - 6px)/2 - 2px);margin:auto;opacity:.5;position:absolute;top:0;transform:rotate(90deg);transition:transform .2s ease-in-out;width:6px}.tp-rotv.tp-rotv-expanded .tp-rotv_m,.tp-fldv.tp-fldv-expanded>.tp-fldv_b>.tp-fldv_m{transform:none}.tp-rotv_c,.tp-fldv_c{box-sizing:border-box;height:0;opacity:0;overflow:hidden;padding-bottom:0;padding-top:0;position:relative;transition:height .2s ease-in-out,opacity .2s linear,padding .2s ease-in-out}.tp-rotv.tp-rotv-cpl:not(.tp-rotv-expanded) .tp-rotv_c,.tp-fldv.tp-fldv-cpl:not(.tp-fldv-expanded)>.tp-fldv_c{display:none}.tp-rotv.tp-rotv-expanded .tp-rotv_c,.tp-fldv.tp-fldv-expanded>.tp-fldv_c{opacity:1;padding-bottom:var(--cnt-vp);padding-top:var(--cnt-vp);transform:none;overflow:visible;transition:height .2s ease-in-out,opacity .2s linear .2s,padding .2s ease-in-out}.tp-txtv_i,.tp-p2dpv_p,.tp-colswv_sw{background-color:var(--in-bg);border-radius:var(--bld-br);box-sizing:border-box;color:var(--in-fg);font-family:inherit;height:var(--cnt-usz);line-height:var(--cnt-usz);min-width:0;width:100%}.tp-txtv_i:hover,.tp-p2dpv_p:hover,.tp-colswv_sw:hover{background-color:var(--in-bg-h)}.tp-txtv_i:focus,.tp-p2dpv_p:focus,.tp-colswv_sw:focus{background-color:var(--in-bg-f)}.tp-txtv_i:active,.tp-p2dpv_p:active,.tp-colswv_sw:active{background-color:var(--in-bg-a)}.tp-txtv_i:disabled,.tp-p2dpv_p:disabled,.tp-colswv_sw:disabled{opacity:.5}.tp-lstv,.tp-coltxtv_m{position:relative}.tp-lstv_s{padding:0 20px 0 4px;width:100%}.tp-lstv_m,.tp-coltxtv_mm{bottom:0;margin:auto;pointer-events:none;position:absolute;right:2px;top:0}.tp-lstv_m svg,.tp-coltxtv_mm svg{bottom:0;height:16px;margin:auto;position:absolute;right:0;top:0;width:16px}.tp-lstv_m svg path,.tp-coltxtv_mm svg path{fill:currentColor}.tp-sglv_i,.tp-mllv_i,.tp-grlv_g{background-color:var(--mo-bg);border-radius:var(--bld-br);box-sizing:border-box;color:var(--mo-fg);height:var(--cnt-usz);scrollbar-color:currentColor rgba(0,0,0,0);scrollbar-width:thin;width:100%}.tp-sglv_i::-webkit-scrollbar,.tp-mllv_i::-webkit-scrollbar,.tp-grlv_g::-webkit-scrollbar{height:8px;width:8px}.tp-sglv_i::-webkit-scrollbar-corner,.tp-mllv_i::-webkit-scrollbar-corner,.tp-grlv_g::-webkit-scrollbar-corner{background-color:rgba(0,0,0,0)}.tp-sglv_i::-webkit-scrollbar-thumb,.tp-mllv_i::-webkit-scrollbar-thumb,.tp-grlv_g::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:currentColor;border:rgba(0,0,0,0) solid 2px;border-radius:4px}.tp-pndtxtv,.tp-coltxtv_w{display:flex}.tp-pndtxtv_a,.tp-coltxtv_c{width:100%}.tp-pndtxtv_a+.tp-pndtxtv_a,.tp-coltxtv_c+.tp-pndtxtv_a,.tp-pndtxtv_a+.tp-coltxtv_c,.tp-coltxtv_c+.tp-coltxtv_c{margin-left:2px}.tp-rotv{--bs-bg: var(--tp-base-background-color, hsl(230, 7%, 17%));--bs-br: var(--tp-base-border-radius, 6px);--bs-ff: var(--tp-base-font-family, Roboto Mono, Source Code Pro, Menlo, Courier, monospace);--bs-sh: var(--tp-base-shadow-color, rgba(0, 0, 0, 0.2));--bld-br: var(--tp-blade-border-radius, 2px);--bld-hp: var(--tp-blade-horizontal-padding, 4px);--bld-vw: var(--tp-blade-value-width, 160px);--btn-bg: var(--tp-button-background-color, hsl(230, 7%, 70%));--btn-bg-a: var(--tp-button-background-color-active, #d6d7db);--btn-bg-f: var(--tp-button-background-color-focus, #c8cad0);--btn-bg-h: var(--tp-button-background-color-hover, #bbbcc4);--btn-fg: var(--tp-button-foreground-color, hsl(230, 7%, 17%));--cnt-bg: var(--tp-container-background-color, rgba(187, 188, 196, 0.1));--cnt-bg-a: var(--tp-container-background-color-active, rgba(187, 188, 196, 0.25));--cnt-bg-f: var(--tp-container-background-color-focus, rgba(187, 188, 196, 0.2));--cnt-bg-h: var(--tp-container-background-color-hover, rgba(187, 188, 196, 0.15));--cnt-fg: var(--tp-container-foreground-color, hsl(230, 7%, 75%));--cnt-hp: var(--tp-container-horizontal-padding, 4px);--cnt-vp: var(--tp-container-vertical-padding, 4px);--cnt-usp: var(--tp-container-unit-spacing, 4px);--cnt-usz: var(--tp-container-unit-size, 20px);--in-bg: var(--tp-input-background-color, rgba(187, 188, 196, 0.1));--in-bg-a: var(--tp-input-background-color-active, rgba(187, 188, 196, 0.25));--in-bg-f: var(--tp-input-background-color-focus, rgba(187, 188, 196, 0.2));--in-bg-h: var(--tp-input-background-color-hover, rgba(187, 188, 196, 0.15));--in-fg: var(--tp-input-foreground-color, hsl(230, 7%, 75%));--lbl-fg: var(--tp-label-foreground-color, rgba(187, 188, 196, 0.7));--mo-bg: var(--tp-monitor-background-color, rgba(0, 0, 0, 0.2));--mo-fg: var(--tp-monitor-foreground-color, rgba(187, 188, 196, 0.7));--grv-fg: var(--tp-groove-foreground-color, rgba(187, 188, 196, 0.1))}.tp-btnv_b{width:100%}.tp-btnv_t{text-align:center}.tp-ckbv_l{display:block;position:relative}.tp-ckbv_i{left:0;opacity:0;position:absolute;top:0}.tp-ckbv_w{background-color:var(--in-bg);border-radius:var(--bld-br);cursor:pointer;display:block;height:var(--cnt-usz);position:relative;width:var(--cnt-usz)}.tp-ckbv_w svg{display:block;height:16px;inset:0;margin:auto;opacity:0;position:absolute;width:16px}.tp-ckbv_w svg path{fill:none;stroke:var(--in-fg);stroke-width:2}.tp-ckbv_i:hover+.tp-ckbv_w{background-color:var(--in-bg-h)}.tp-ckbv_i:focus+.tp-ckbv_w{background-color:var(--in-bg-f)}.tp-ckbv_i:active+.tp-ckbv_w{background-color:var(--in-bg-a)}.tp-ckbv_i:checked+.tp-ckbv_w svg{opacity:1}.tp-ckbv.tp-v-disabled .tp-ckbv_w{opacity:.5}.tp-colv{position:relative}.tp-colv_h{display:flex}.tp-colv_s{flex-grow:0;flex-shrink:0;width:var(--cnt-usz)}.tp-colv_t{flex:1;margin-left:4px}.tp-colv_p{height:0;margin-top:0;opacity:0;overflow:hidden;transition:height .2s ease-in-out,opacity .2s linear,margin .2s ease-in-out}.tp-colv.tp-colv-expanded.tp-colv-cpl .tp-colv_p{overflow:visible}.tp-colv.tp-colv-expanded .tp-colv_p{margin-top:var(--cnt-usp);opacity:1}.tp-colv .tp-popv{left:calc(-1*var(--cnt-hp));right:calc(-1*var(--cnt-hp));top:var(--cnt-usz)}.tp-colpv_h,.tp-colpv_ap{margin-left:6px;margin-right:6px}.tp-colpv_h{margin-top:var(--cnt-usp)}.tp-colpv_rgb{display:flex;margin-top:var(--cnt-usp);width:100%}.tp-colpv_a{display:flex;margin-top:var(--cnt-vp);padding-top:calc(var(--cnt-vp) + 2px);position:relative}.tp-colpv_a::before{background-color:var(--grv-fg);content:\"\";height:2px;left:calc(-1*var(--cnt-hp));position:absolute;right:calc(-1*var(--cnt-hp));top:0}.tp-colpv.tp-v-disabled .tp-colpv_a::before{opacity:.5}.tp-colpv_ap{align-items:center;display:flex;flex:3}.tp-colpv_at{flex:1;margin-left:4px}.tp-svpv{border-radius:var(--bld-br);outline:none;overflow:hidden;position:relative}.tp-svpv.tp-v-disabled{opacity:.5}.tp-svpv_c{cursor:crosshair;display:block;height:calc(var(--cnt-usz)*4);width:100%}.tp-svpv_m{border-radius:100%;border:rgba(255,255,255,.75) solid 2px;box-sizing:border-box;filter:drop-shadow(0 0 1px rgba(0, 0, 0, 0.3));height:12px;margin-left:-6px;margin-top:-6px;pointer-events:none;position:absolute;width:12px}.tp-svpv:focus .tp-svpv_m{border-color:#fff}.tp-hplv{cursor:pointer;height:var(--cnt-usz);outline:none;position:relative}.tp-hplv.tp-v-disabled{opacity:.5}.tp-hplv_c{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAAABCAYAAABubagXAAAAQ0lEQVQoU2P8z8Dwn0GCgQEDi2OK/RBgYHjBgIpfovFh8j8YBIgzFGQxuqEgPhaDOT5gOhPkdCxOZeBg+IDFZZiGAgCaSSMYtcRHLgAAAABJRU5ErkJggg==);background-position:left top;background-repeat:no-repeat;background-size:100% 100%;border-radius:2px;display:block;height:4px;left:0;margin-top:-2px;position:absolute;top:50%;width:100%}.tp-hplv_m{border-radius:var(--bld-br);border:rgba(255,255,255,.75) solid 2px;box-shadow:0 0 2px rgba(0,0,0,.1);box-sizing:border-box;height:12px;left:50%;margin-left:-6px;margin-top:-6px;position:absolute;top:50%;width:12px}.tp-hplv:focus .tp-hplv_m{border-color:#fff}.tp-aplv{cursor:pointer;height:var(--cnt-usz);outline:none;position:relative;width:100%}.tp-aplv.tp-v-disabled{opacity:.5}.tp-aplv_b{background-color:#fff;background-image:linear-gradient(to top right, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%),linear-gradient(to top right, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%);background-size:4px 4px;background-position:0 0,2px 2px;border-radius:2px;display:block;height:4px;left:0;margin-top:-2px;overflow:hidden;position:absolute;top:50%;width:100%}.tp-aplv_c{inset:0;position:absolute}.tp-aplv_m{background-color:#fff;background-image:linear-gradient(to top right, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%),linear-gradient(to top right, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%);background-size:12px 12px;background-position:0 0,6px 6px;border-radius:var(--bld-br);box-shadow:0 0 2px rgba(0,0,0,.1);height:12px;left:50%;margin-left:-6px;margin-top:-6px;overflow:hidden;position:absolute;top:50%;width:12px}.tp-aplv_p{border-radius:var(--bld-br);border:rgba(255,255,255,.75) solid 2px;box-sizing:border-box;inset:0;position:absolute}.tp-aplv:focus .tp-aplv_p{border-color:#fff}.tp-colswv{background-color:#fff;background-image:linear-gradient(to top right, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%),linear-gradient(to top right, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%);background-size:10px 10px;background-position:0 0,5px 5px;border-radius:var(--bld-br);overflow:hidden}.tp-colswv.tp-v-disabled{opacity:.5}.tp-colswv_sw{border-radius:0}.tp-colswv_b{cursor:pointer;display:block;height:var(--cnt-usz);left:0;position:absolute;top:0;width:var(--cnt-usz)}.tp-colswv_b:focus::after{border:rgba(255,255,255,.75) solid 2px;border-radius:var(--bld-br);content:\"\";display:block;inset:0;position:absolute}.tp-coltxtv{display:flex;width:100%}.tp-coltxtv_m{margin-right:4px}.tp-coltxtv_ms{border-radius:var(--bld-br);color:var(--lbl-fg);cursor:pointer;height:var(--cnt-usz);line-height:var(--cnt-usz);padding:0 18px 0 4px}.tp-coltxtv_ms:hover{background-color:var(--in-bg-h)}.tp-coltxtv_ms:focus{background-color:var(--in-bg-f)}.tp-coltxtv_ms:active{background-color:var(--in-bg-a)}.tp-coltxtv_mm{color:var(--lbl-fg)}.tp-coltxtv.tp-v-disabled .tp-coltxtv_mm{opacity:.5}.tp-coltxtv_w{flex:1}.tp-dfwv{position:absolute;top:8px;right:8px;width:256px}.tp-fldv{position:relative}.tp-fldv_t{padding-left:4px}.tp-fldv_b:disabled .tp-fldv_m{display:none}.tp-fldv_c{padding-left:4px}.tp-fldv_i{bottom:0;color:var(--cnt-bg);left:0;overflow:hidden;position:absolute;top:calc(var(--cnt-usz) + 4px);width:max(var(--bs-br),4px)}.tp-fldv_i::before{background-color:currentColor;bottom:0;content:\"\";left:0;position:absolute;top:0;width:4px}.tp-fldv_b:hover+.tp-fldv_i{color:var(--cnt-bg-h)}.tp-fldv_b:focus+.tp-fldv_i{color:var(--cnt-bg-f)}.tp-fldv_b:active+.tp-fldv_i{color:var(--cnt-bg-a)}.tp-fldv.tp-v-disabled>.tp-fldv_i{opacity:.5}.tp-grlv{position:relative}.tp-grlv_g{display:block;height:calc(var(--cnt-usz)*3)}.tp-grlv_g polyline{fill:none;stroke:var(--mo-fg);stroke-linejoin:round}.tp-grlv_t{margin-top:-4px;transition:left .05s,top .05s;visibility:hidden}.tp-grlv_t.tp-grlv_t-a{visibility:visible}.tp-grlv_t.tp-grlv_t-in{transition:none}.tp-grlv.tp-v-disabled .tp-grlv_g{opacity:.5}.tp-grlv .tp-ttv{background-color:var(--mo-fg)}.tp-grlv .tp-ttv::before{border-top-color:var(--mo-fg)}.tp-lblv{align-items:center;display:flex;line-height:1.3;padding-left:var(--cnt-hp);padding-right:var(--cnt-hp)}.tp-lblv.tp-lblv-nol{display:block}.tp-lblv_l{color:var(--lbl-fg);flex:1;-webkit-hyphens:auto;hyphens:auto;overflow:hidden;padding-left:4px;padding-right:16px}.tp-lblv.tp-v-disabled .tp-lblv_l{opacity:.5}.tp-lblv.tp-lblv-nol .tp-lblv_l{display:none}.tp-lblv_v{align-self:flex-start;flex-grow:0;flex-shrink:0;width:var(--bld-vw)}.tp-lblv.tp-lblv-nol .tp-lblv_v{width:100%}.tp-lstv_s{padding:0 20px 0 var(--bld-hp);width:100%}.tp-lstv_m{color:var(--btn-fg)}.tp-sglv_i{padding-left:var(--bld-hp);padding-right:var(--bld-hp)}.tp-sglv.tp-v-disabled .tp-sglv_i{opacity:.5}.tp-mllv_i{display:block;height:calc(var(--cnt-usz)*3);line-height:var(--cnt-usz);padding-left:var(--bld-hp);padding-right:var(--bld-hp);resize:none;white-space:pre}.tp-mllv.tp-v-disabled .tp-mllv_i{opacity:.5}.tp-p2dv{position:relative}.tp-p2dv_h{display:flex}.tp-p2dv_b{height:var(--cnt-usz);margin-right:4px;position:relative;width:var(--cnt-usz)}.tp-p2dv_b svg{display:block;height:16px;left:50%;margin-left:-8px;margin-top:-8px;position:absolute;top:50%;width:16px}.tp-p2dv_b svg path{stroke:currentColor;stroke-width:2}.tp-p2dv_b svg circle{fill:currentColor}.tp-p2dv_t{flex:1}.tp-p2dv_p{height:0;margin-top:0;opacity:0;overflow:hidden;transition:height .2s ease-in-out,opacity .2s linear,margin .2s ease-in-out}.tp-p2dv.tp-p2dv-expanded .tp-p2dv_p{margin-top:var(--cnt-usp);opacity:1}.tp-p2dv .tp-popv{left:calc(-1*var(--cnt-hp));right:calc(-1*var(--cnt-hp));top:var(--cnt-usz)}.tp-p2dpv{padding-left:calc(var(--cnt-usz) + 4px)}.tp-p2dpv_p{cursor:crosshair;height:0;overflow:hidden;padding-bottom:100%;position:relative}.tp-p2dpv.tp-v-disabled .tp-p2dpv_p{opacity:.5}.tp-p2dpv_g{display:block;height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.tp-p2dpv_ax{opacity:.1;stroke:var(--in-fg);stroke-dasharray:1}.tp-p2dpv_l{opacity:.5;stroke:var(--in-fg);stroke-dasharray:1}.tp-p2dpv_m{border:var(--in-fg) solid 1px;border-radius:50%;box-sizing:border-box;height:4px;margin-left:-2px;margin-top:-2px;position:absolute;width:4px}.tp-p2dpv_p:focus .tp-p2dpv_m{background-color:var(--in-fg);border-width:0}.tp-popv{background-color:var(--bs-bg);border-radius:var(--bs-br);box-shadow:0 2px 4px var(--bs-sh);display:none;max-width:var(--bld-vw);padding:var(--cnt-vp) var(--cnt-hp);position:absolute;visibility:hidden;z-index:1000}.tp-popv.tp-popv-v{display:block;visibility:visible}.tp-sldv.tp-v-disabled{opacity:.5}.tp-sldv_t{box-sizing:border-box;cursor:pointer;height:var(--cnt-usz);margin:0 6px;outline:none;position:relative}.tp-sldv_t::before{background-color:var(--in-bg);border-radius:1px;content:\"\";display:block;height:2px;inset:0;margin:auto;position:absolute}.tp-sldv_k{height:100%;left:0;position:absolute;top:0}.tp-sldv_k::before{background-color:var(--in-fg);border-radius:1px;content:\"\";display:block;height:2px;inset:0;margin-bottom:auto;margin-top:auto;position:absolute}.tp-sldv_k::after{background-color:var(--btn-bg);border-radius:var(--bld-br);bottom:0;content:\"\";display:block;height:12px;margin-bottom:auto;margin-top:auto;position:absolute;right:-6px;top:0;width:12px}.tp-sldv_t:hover .tp-sldv_k::after{background-color:var(--btn-bg-h)}.tp-sldv_t:focus .tp-sldv_k::after{background-color:var(--btn-bg-f)}.tp-sldv_t:active .tp-sldv_k::after{background-color:var(--btn-bg-a)}.tp-sldtxtv{display:flex}.tp-sldtxtv_s{flex:2}.tp-sldtxtv_t{flex:1;margin-left:4px}.tp-tabv{position:relative}.tp-tabv_t{align-items:flex-end;color:var(--cnt-bg);display:flex;overflow:hidden;position:relative}.tp-tabv_t:hover{color:var(--cnt-bg-h)}.tp-tabv_t:has(*:focus){color:var(--cnt-bg-f)}.tp-tabv_t:has(*:active){color:var(--cnt-bg-a)}.tp-tabv_t::before{background-color:currentColor;bottom:0;content:\"\";height:2px;left:0;pointer-events:none;position:absolute;right:0}.tp-tabv.tp-v-disabled .tp-tabv_t::before{opacity:.5}.tp-tabv.tp-tabv-nop .tp-tabv_t{height:calc(var(--cnt-usz) + 4px);position:relative}.tp-tabv.tp-tabv-nop .tp-tabv_t::before{background-color:var(--cnt-bg);bottom:0;content:\"\";height:2px;left:0;position:absolute;right:0}.tp-tabv_i{bottom:0;color:var(--cnt-bg);left:0;overflow:hidden;position:absolute;top:calc(var(--cnt-usz) + 4px);width:max(var(--bs-br),4px)}.tp-tabv_i::before{background-color:currentColor;bottom:0;content:\"\";left:0;position:absolute;top:0;width:4px}.tp-tabv_t:hover+.tp-tabv_i{color:var(--cnt-bg-h)}.tp-tabv_t:has(*:focus)+.tp-tabv_i{color:var(--cnt-bg-f)}.tp-tabv_t:has(*:active)+.tp-tabv_i{color:var(--cnt-bg-a)}.tp-tabv.tp-v-disabled>.tp-tabv_i{opacity:.5}.tp-tbiv{flex:1;min-width:0;position:relative}.tp-tbiv+.tp-tbiv{margin-left:2px}.tp-tbiv+.tp-tbiv.tp-v-disabled::before{opacity:.5}.tp-tbiv_b{display:block;padding-left:calc(var(--cnt-hp) + 4px);padding-right:calc(var(--cnt-hp) + 4px);position:relative;width:100%}.tp-tbiv_b:disabled{opacity:.5}.tp-tbiv_b::before{background-color:var(--cnt-bg);content:\"\";inset:0 0 2px;pointer-events:none;position:absolute}.tp-tbiv_b:hover::before{background-color:var(--cnt-bg-h)}.tp-tbiv_b:focus::before{background-color:var(--cnt-bg-f)}.tp-tbiv_b:active::before{background-color:var(--cnt-bg-a)}.tp-tbiv_t{color:var(--cnt-fg);height:calc(var(--cnt-usz) + 4px);line-height:calc(var(--cnt-usz) + 4px);opacity:.5;overflow:hidden;position:relative;text-overflow:ellipsis}.tp-tbiv.tp-tbiv-sel .tp-tbiv_t{opacity:1}.tp-tbpv_c{padding-bottom:var(--cnt-vp);padding-left:4px;padding-top:var(--cnt-vp)}.tp-txtv{position:relative}.tp-txtv_i{padding-left:var(--bld-hp);padding-right:var(--bld-hp)}.tp-txtv.tp-txtv-fst .tp-txtv_i{border-bottom-right-radius:0;border-top-right-radius:0}.tp-txtv.tp-txtv-mid .tp-txtv_i{border-radius:0}.tp-txtv.tp-txtv-lst .tp-txtv_i{border-bottom-left-radius:0;border-top-left-radius:0}.tp-txtv.tp-txtv-num .tp-txtv_i{text-align:right}.tp-txtv.tp-txtv-drg .tp-txtv_i{opacity:.3}.tp-txtv_k{cursor:pointer;height:100%;left:calc(var(--bld-hp) - 5px);position:absolute;top:0;width:12px}.tp-txtv_k::before{background-color:var(--in-fg);border-radius:1px;bottom:0;content:\"\";height:calc(var(--cnt-usz) - 4px);left:50%;margin-bottom:auto;margin-left:-1px;margin-top:auto;opacity:.1;position:absolute;top:0;transition:border-radius .1s,height .1s,transform .1s,width .1s;width:2px}.tp-txtv_k:hover::before,.tp-txtv.tp-txtv-drg .tp-txtv_k::before{opacity:1}.tp-txtv.tp-txtv-drg .tp-txtv_k::before{border-radius:50%;height:4px;transform:translateX(-1px);width:4px}.tp-txtv_g{bottom:0;display:block;height:8px;left:50%;margin:auto;overflow:visible;pointer-events:none;position:absolute;top:0;visibility:hidden;width:100%}.tp-txtv.tp-txtv-drg .tp-txtv_g{visibility:visible}.tp-txtv_gb{fill:none;stroke:var(--in-fg);stroke-dasharray:1}.tp-txtv_gh{fill:none;stroke:var(--in-fg)}.tp-txtv .tp-ttv{margin-left:6px;visibility:hidden}.tp-txtv.tp-txtv-drg .tp-ttv{visibility:visible}.tp-ttv{background-color:var(--in-fg);border-radius:var(--bld-br);color:var(--bs-bg);padding:2px 4px;pointer-events:none;position:absolute;transform:translate(-50%, -100%)}.tp-ttv::before{border-color:var(--in-fg) rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0);border-style:solid;border-width:2px;box-sizing:border-box;content:\"\";font-size:.9em;height:4px;left:50%;margin-left:-2px;position:absolute;top:100%;width:4px}.tp-rotv{background-color:var(--bs-bg);border-radius:var(--bs-br);box-shadow:0 2px 4px var(--bs-sh);font-family:var(--bs-ff);font-size:11px;font-weight:500;line-height:1;text-align:left}.tp-rotv_b{border-bottom-left-radius:var(--bs-br);border-bottom-right-radius:var(--bs-br);border-top-left-radius:var(--bs-br);border-top-right-radius:var(--bs-br);padding-left:calc(4px + var(--cnt-usz) + var(--cnt-hp));text-align:center}.tp-rotv.tp-rotv-expanded .tp-rotv_b{border-bottom-left-radius:0;border-bottom-right-radius:0;transition-delay:0s;transition-duration:0s}.tp-rotv.tp-rotv-not>.tp-rotv_b{display:none}.tp-rotv_b:disabled .tp-rotv_m{display:none}.tp-rotv_c>.tp-fldv.tp-v-lst>.tp-fldv_c{border-bottom-left-radius:var(--bs-br);border-bottom-right-radius:var(--bs-br)}.tp-rotv_c>.tp-fldv.tp-v-lst>.tp-fldv_i{border-bottom-left-radius:var(--bs-br)}.tp-rotv_c>.tp-fldv.tp-v-lst:not(.tp-fldv-expanded)>.tp-fldv_b{border-bottom-left-radius:var(--bs-br);border-bottom-right-radius:var(--bs-br)}.tp-rotv_c>.tp-fldv.tp-v-lst.tp-fldv-expanded>.tp-fldv_b{transition-delay:0s;transition-duration:0s}.tp-rotv_c .tp-fldv.tp-v-vlst:not(.tp-fldv-expanded)>.tp-fldv_b{border-bottom-right-radius:var(--bs-br)}.tp-rotv.tp-rotv-not .tp-rotv_c>.tp-fldv.tp-v-fst{margin-top:calc(-1*var(--cnt-vp))}.tp-rotv.tp-rotv-not .tp-rotv_c>.tp-fldv.tp-v-fst>.tp-fldv_b{border-top-left-radius:var(--bs-br);border-top-right-radius:var(--bs-br)}.tp-rotv_c>.tp-tabv.tp-v-lst>.tp-tabv_c{border-bottom-left-radius:var(--bs-br);border-bottom-right-radius:var(--bs-br)}.tp-rotv_c>.tp-tabv.tp-v-lst>.tp-tabv_i{border-bottom-left-radius:var(--bs-br)}.tp-rotv.tp-rotv-not .tp-rotv_c>.tp-tabv.tp-v-fst{margin-top:calc(-1*var(--cnt-vp))}.tp-rotv.tp-rotv-not .tp-rotv_c>.tp-tabv.tp-v-fst>.tp-tabv_t{border-top-left-radius:var(--bs-br);border-top-right-radius:var(--bs-br)}.tp-rotv.tp-v-disabled,.tp-rotv .tp-v-disabled{pointer-events:none}.tp-rotv.tp-v-hidden,.tp-rotv .tp-v-hidden{display:none}.tp-sprv_r{background-color:var(--grv-fg);border-width:0;display:block;height:2px;margin:0;width:100%}.tp-sprv.tp-v-disabled .tp-sprv_r{opacity:.5}",plugins:[cT,pT,sT,fD,lT]})}}var D_=new iz("4.0.5");var D4={cssVariables:{"--bg":"#0a0e14","--bg-elevated":"#0f1419","--muted":"#1a2332","--text":"#e6edf3","--text-secondary":"#8b949e","--accent":"#58d5ff","--accent-2":"#42a5cc","--border":"#21262d","--border-hover":"#30363d","--success":"#3fb950","--error":"#f85149","--ht-text-color-main-200":"#00ffd4","--ht-text-color-main-300":"#6ff3dd","--ht-text-color-main-500":"#4b8e85","--ht-text-color-grey-200":"#8c8d8f","--ht-bg-color-200":"#8c8d8f","--ht-bg-color-200-active":"#7a7b7d","--ht-bg-color-200-focus":"#7e7f81","--ht-bg-color-200-hover":"#828384","--ht-bg-color-300":"#5e6068","--ht-bg-color-300-active":"#4c4e56","--ht-bg-color-300-focus":"#55575f","--ht-bg-color-300-hover":"#595b63","--ht-bg-color-400":"#cccccc","--ht-bg-color-400-active":"#b3b3b3","--ht-bg-color-400-focus":"#c0c0c0","--ht-bg-color-400-hover":"#c6c6c6","--ht-bg-color-500":"#1C1D20","--ht-bg-color-500-active":"#0a0b0e","--ht-bg-color-500-focus":"#131417","--ht-bg-color-500-hover":"#16171a","--ht-bg-color-600":"#37383D","--ht-bg-color-600-active":"#25262b","--ht-bg-color-600-focus":"#2e2f34","--ht-bg-color-600-hover":"#323338","--ht-bg-color-700":"#0f1419","--ht-bg-color-700-active":"#16171c","--ht-bg-color-700-focus":"#1f2025","--ht-bg-color-700-hover":"#232429","--ht-border-radius":"8px","--ht-base-font-family-base":'"HydrogenType400", ui-sans-serif, system-ui, sans-serif',"--ht-base-font-family-display":'"Departure Mono", Roboto Mono, Source Code Pro, Menlo, Courier, monospace',"--ht-base-font-family-sans":'"Routed Gothic", ui-sans-serif, system-ui, sans-serif',"--ht-base-font-family-mono":'"Routed Gothic Narrow", ui-monospace, SFMono-Regular, SF Mono, Consolas, Liberation Mono, Menlo, monospace'},tweakpane:{"--tp-base-background-color":"var(--ht-bg-color-700)","--tp-base-shadow-color":"hsla(0, 0%, 0%, 0.2)","--tp-container-background-color":"var(--ht-bg-color-600)","--tp-container-background-color-active":"var(--ht-bg-color-600-active)","--tp-container-background-color-focus":"var(--ht-bg-color-600-focus)","--tp-container-background-color-hover":"var(--ht-bg-color-600-hover)","--tp-container-foreground-color":"var(--ht-text-color-main-300)","--tp-button-background-color":"var(--ht-bg-color-400)","--tp-button-background-color-active":"color-mix(in srgb, var(--ht-bg-color-400-active) 80%, white)","--tp-button-background-color-focus":"color-mix(in srgb, var(--ht-bg-color-400-focus) 85%, white)","--tp-button-background-color-hover":"color-mix(in srgb, var(--ht-bg-color-400-hover) 90%, white)","--tp-button-foreground-color":"var(--ht-text-color-main-300)","--tp-groove-foreground-color":"var(--ht-bg-color-300)","--tp-input-background-color":"var(--ht-bg-color-500)","--tp-input-background-color-active":"var(--ht-bg-color-500-active)","--tp-input-background-color-focus":"var(--ht-bg-color-500-focus)","--tp-input-background-color-hover":"var(--ht-bg-color-500-hover)","--tp-input-foreground-color":"var(--ht-text-color-main-300)","--tp-label-foreground-color":"var(--ht-text-color-main-300)","--tp-monitor-background-color":"var(--ht-bg-color-500)","--tp-monitor-foreground-color":"var(--ht-text-color-main-300)"}};function H4(){let Z=document.createElement("style");Z.id="hypertool-theme";let Y=Object.entries({...D4.cssVariables,...D4.tweakpane}).map(([K,z])=>` ${K}: ${z};`).join(`
163
+ `);Z.textContent=`
164
+ body {
165
+ margin: 0;
166
+ padding: 0;
167
+ }
168
+
169
+ :root {
170
+ ${Y}
171
+ }
172
+
173
+ /* Controls panel positioning and styling */
174
+ .controls-container {
175
+ position: fixed;
176
+ top: 8px;
177
+ right: 8px;
178
+ z-index: 1000;
179
+ max-height: calc(100vh - 16px);
180
+ overflow-y: auto;
181
+ }
182
+
183
+ /* Ensure Tweakpane pane has background */
184
+ .tp-dfwv {
185
+ background-color: var(--tp-base-background-color, #0f1419) !important;
186
+ }
187
+ `,document.head.appendChild(Z)}class u9{constructor(Z,Y={}){this.pane=null,this.definitions=Z,this.options={title:Y.title||"Controls",position:Y.position||"top-right",expanded:Y.expanded!==void 0?Y.expanded:!0,container:Y.container!==void 0?Y.container:null,onChange:Y.onChange||(()=>{}),onReady:Y.onReady||(()=>{})},this.params=this.extractInitialValues(Z),this.init()}isFolder(Z){return Z&&typeof Z==="object"&&(Z.type==="folder"||Z.type==="group")}isButton(Z){return Z&&typeof Z==="object"&&Z.type==="button"}isTab(Z){return Z&&typeof Z==="object"&&Z.type==="tab"}isFile(Z){return Z&&typeof Z==="object"&&Z.type==="file"}extractInitialValues(Z){let Y={};for(let[K,z]of Object.entries(Z)){let $=z;if(this.isFolder($))Y[K]=this.extractInitialValues($.controls);else if(this.isTab($))Y[K]=$.pages.map((F)=>this.extractInitialValues(F.controls));else if(this.isButton($))continue;else Y[K]=$.value}return Y}async init(){try{H4(),await new Promise((Z)=>setTimeout(Z,50)),this.createPane(),this.addControls(),this.options.onReady()}catch(Z){console.error("[HypertoolControls] Initialization error:",Z)}}createPane(){let Z=this.resolveContainer(),Y={title:this.options.title,expanded:this.options.expanded};if(Z)Y.container=Z;this.pane=new G$(Y),this.pane.element.parentElement?.classList.add("controls-container")}resolveContainer(){if(typeof document>"u")return null;let Z=this.options.container;if(!Z)return null;if(Z instanceof HTMLElement)return Z;let Y=document.querySelector(Z);if(!Y)return console.warn(`[HypertoolControls] Container selector "${Z}" did not match any elements`),null;return Y}addControls(){if(!this.pane)return;this.addControlsToTarget(this.pane,this.definitions,this.params)}addControlsToTarget(Z,Y,K){for(let[z,$]of Object.entries(Y))try{if(this.isFolder($)){let F={title:$.label||z};if($.expanded!==void 0)F.expanded=$.expanded;let B=Z.addFolder(F);this.addControlsToTarget(B,$.controls,K[z])}else if(this.isButton($)){let F={title:$.title};if($.label)F.label=$.label;let B=Z.addButton(F);if($.onClick)B.on("click",$.onClick)}else if(this.isTab($)){let F={pages:$.pages.map((j)=>({title:j.title}))},B=Z.addTab(F);$.pages.forEach((j,y)=>{this.addControlsToTarget(B.pages[y],j.controls,K[z][y])})}else if(this.isFile($))this.addFileControl(Z,z,$,K);else this.addControlToTarget(Z,z,$,K)}catch(F){console.error(`[HypertoolControls] Error adding control/folder/button/tab "${z}":`,F)}}addControlToTarget(Z,Y,K,z){if(this.isFolder(K))return;let $={label:K.label||Y};if(K.readonly!==void 0)$.readonly=K.readonly;if(K.interval!==void 0)$.interval=K.interval;if(K.bufferSize!==void 0)$.bufferSize=K.bufferSize;if(K.multiline!==void 0)$.multiline=K.multiline;if(K.rows!==void 0)$.rows=K.rows;if(K.view!==void 0)$.view=K.view;switch(K.type){case"number":if(K.min!==void 0)$.min=K.min;if(K.max!==void 0)$.max=K.max;if(K.step!==void 0)$.step=K.step;break;case"point":case"point2d":case"point3d":case"point4d":if(K.min!==void 0)$.min=K.min;if(K.max!==void 0)$.max=K.max;if(K.step!==void 0)$.step=K.step;let B=["x","y","z","w"];for(let j of B)if(K[j]&&typeof K[j]==="object")$[j]=K[j];break;case"select":case"selector":if(Array.isArray(K.options))$.options=K.options.map((j)=>{if(typeof j==="object"&&j!==null)return{text:j.label||j.text||String(j.value),value:j.value};return{text:String(j),value:j}});else $.options=Object.entries(K.options).map(([j,y])=>({text:j,value:y}));break;case"color":case"boolean":case"string":case"text":break;case"folder":case"group":console.warn("[HypertoolControls] Folder/Group encountered in addControlToTarget (should be handled earlier)");return;case"button":console.warn("[HypertoolControls] Button encountered in addControlToTarget (should be handled earlier)");return;case"tab":console.warn("[HypertoolControls] Tab encountered in addControlToTarget (should be handled earlier)");return;default:console.warn(`[HypertoolControls] Unknown control type: ${K.type}`);return}Z.addBinding(z,Y,$).on("change",(B)=>{z[Y]=B.value;let j={key:Y,value:B.value,event:B};this.options.onChange(this.values,j)})}addFileControl(Z,Y,K,z){let $=K.label||Y,F=K.accept||"*/*",B=K.placeholder||"Choose file...",j=K.preview!==!1,y=document.createElement("div");y.className="tp-lblv ht-file-control-row";let _=document.createElement("div");_.className="tp-lblv_l ht-file-control-label",_.textContent=$;let b=document.createElement("div");b.className="tp-lblv_v ht-file-control-value";let k=document.createElement("input");k.type="file",k.accept=F,k.style.display="none";let a=document.createElement("div");a.className="ht-file-control-buttons";let DJ=document.createElement("button");DJ.className="tp-btnv_b ht-file-control-button",DJ.textContent=z[Y]?"Change":"Upload",DJ.style.display=z[Y]?"none":"inline-flex";let _J=document.createElement("button");_J.className="tp-btnv_b ht-file-control-button ht-file-control-button--muted",_J.textContent="✕",_J.style.display="none";let yJ=document.createElement("div");yJ.className="ht-file-control-preview",yJ.style.display=z[Y]&&j?"block":"none";let CJ=document.createElement("div");CJ.className="ht-file-control-preview-bar";let g=document.createElement("span");g.className="ht-file-control-preview-name",g.textContent=z[Y]?"File":"No file selected";let KJ=document.createElement("div");KJ.className="ht-file-control-preview-actions";let c=document.createElement("button");c.type="button",c.className="ht-file-control-preview-action",c.title="Replace file",c.textContent="↻",c.onclick=(i)=>{i.preventDefault(),k.click()};let qJ=document.createElement("button");qJ.type="button",qJ.className="ht-file-control-preview-action",qJ.title="Remove file",qJ.textContent="✕",qJ.onclick=(i)=>{i.preventDefault(),_J.click()},KJ.appendChild(c),KJ.appendChild(qJ),CJ.appendChild(g),CJ.appendChild(KJ);let d=document.createElement("img");d.className="ht-file-control-preview-img";let UJ=document.createElement("div");UJ.className="ht-file-control-placeholder",UJ.style.display="none",k.onchange=async()=>{let i=k.files?.[0];if(!i)return;if(K.maxSize&&i.size>K.maxSize){console.warn(`[HypertoolControls] File size exceeds limit: ${i.size} > ${K.maxSize}`);return}DJ.textContent="Uploading...",DJ.disabled=!0;let $J=`file-upload-${Date.now()}-${Math.random().toString(36).slice(2)}`,LJ=new Promise((TJ)=>{let QJ=(AJ)=>{if(AJ.data?.type!=="UPLOAD_CONTROL_FILE_RESULT")return;if(AJ.data?.requestId!==$J)return;if(window.removeEventListener("message",QJ),AJ.data.error)console.error("[HypertoolControls] File upload failed:",AJ.data.error),TJ(null);else TJ({url:AJ.data.url,originalUrl:AJ.data.originalUrl||AJ.data.url})};window.addEventListener("message",QJ),setTimeout(()=>{window.removeEventListener("message",QJ),console.warn("[HypertoolControls] File upload timed out"),TJ(null)},30000)}),JJ=null;if(j&&i.type.startsWith("image/")){let TJ=new FileReader;TJ.onload=(QJ)=>{JJ=QJ.target?.result},TJ.readAsDataURL(i)}let YJ=new FileReader;YJ.onload=async(TJ)=>{let QJ=TJ.target?.result;window.parent.postMessage({type:"UPLOAD_CONTROL_FILE",source:"hypertool-iframe",requestId:$J,data:{fileName:i.name,fileType:i.type,fileSize:i.size,fileData:QJ,controlKey:Y}},"*",[QJ]);let AJ=await LJ;if(DJ.disabled=!1,AJ){if(z[Y]=AJ.url,DJ.textContent="Change",DJ.style.display="none",g.textContent=i.name||"File",j&&i.type.startsWith("image/")&&JJ)UJ.style.display="none",d.src=JJ,yJ.style.display="flex";let BQ={key:Y,value:AJ.originalUrl,event:{value:AJ.originalUrl,proxyUrl:AJ.url,file:i}};this.options.onChange(this.values,BQ)}else DJ.textContent=z[Y]?"Change":"Upload",console.error("[HypertoolControls] Failed to upload file to storage")},YJ.readAsArrayBuffer(i)},DJ.onclick=()=>{k.click()},_J.onclick=()=>{z[Y]=null,k.value="",DJ.textContent="Upload",DJ.style.display="inline-flex",_J.style.display="none",yJ.style.display="none",UJ.style.display="none",g.textContent="No file selected";let i={key:Y,value:null,event:{value:null}};this.options.onChange(this.values,i)},a.appendChild(DJ),a.appendChild(_J),yJ.appendChild(d),yJ.appendChild(CJ),b.appendChild(k),b.appendChild(a),b.appendChild(UJ),b.appendChild(yJ),y.appendChild(_),y.appendChild(b);let SJ=Z.element;(SJ.querySelector(".tp-rotv_c")||SJ).appendChild(y)}addFolder(Z){if(!this.pane)return null;return this.pane.addFolder({title:Z})}set(Z,Y){if(Z in this.params){if(this.params[Z]=Y,this.pane)this.pane.refresh()}}get values(){return{...this.params}}destroy(){if(this.pane)this.pane.dispose(),this.pane=null;let Z=document.getElementById("hypertool-theme");if(Z)Z.remove()}setVisible(Z){if(!this.pane)return;this.pane.element.style.display=Z?"block":"none"}refresh(){if(this.pane)this.pane.refresh()}}function K$(Z,Y){return new u9(Z,Y).params}function U$(Z,Y){return new u9(Z,Y)}var jM=zQ(G8(),1),PM=zQ(zM(),1);var q$=new Set(["STYLE","LINK"]);class z${source;target;observer=null;nodeMap=new WeakMap;active=!1;messageListener=null;usePostMessage=!1;cssNodesById=new Map;constructor(Z={}){let Y=null;if(Z.sourceDocument)Y=Z.sourceDocument;else if(typeof window<"u")try{Y=window.parent?.document??null}catch(K){console.debug("[hyper-frame] Using postMessage for CSS sync (cross-origin)"),this.usePostMessage=!0,Y=null}this.source=Y,this.target=Z.targetDocument??(typeof document<"u"?document:null),this.active=Boolean(Z.mirror??!0)}start(){if(!this.active)return;if(this.usePostMessage)this.startPostMessageMode();else if(this.source&&this.target)this.cleanupPreviousClones(),this.syncAll(),this.attachObserver();else console.warn("[hyper-frame] Unable to mirror CSS – missing source or target document.")}stop(){if(this.observer?.disconnect(),this.observer=null,this.nodeMap=new WeakMap,this.cleanupPreviousClones(),this.messageListener&&typeof window<"u")window.removeEventListener("message",this.messageListener),this.messageListener=null;this.cssNodesById.clear()}startPostMessageMode(){if(!this.target||typeof window>"u")return;this.cleanupPreviousClones(),this.messageListener=(Z)=>{if(!Z.data||Z.data.type!=="hyper-frame:css-sync")return;this.handleCssMessage(Z.data)},window.addEventListener("message",this.messageListener),console.debug("[hyper-frame] CSS postMessage receiver ready")}handleCssMessage(Z){if(!this.target)return;switch(Z.action){case"init":this.cleanupPreviousClones(),this.cssNodesById.clear();break;case"add":if(Z.id&&Z.tagName)this.addCssNode(Z.id,Z.tagName,Z.attributes,Z.textContent);break;case"remove":if(Z.id)this.removeCssNode(Z.id);break;case"update":if(Z.id)this.updateCssNode(Z.id,Z.attributes,Z.textContent);break}}addCssNode(Z,Y,K,z){if(!this.target)return;if(this.cssNodesById.has(Z))return;let $=document.createElement(Y);if($.setAttribute("data-hyper-frame-clone","true"),$.setAttribute("data-css-id",Z),K)for(let[F,B]of Object.entries(K))$.setAttribute(F,B);if(z)$.textContent=z;this.target.head.appendChild($),this.cssNodesById.set(Z,$)}removeCssNode(Z){let Y=this.cssNodesById.get(Z);if(Y&&Y.parentNode)Y.parentNode.removeChild(Y),this.cssNodesById.delete(Z)}updateCssNode(Z,Y,K){let z=this.cssNodesById.get(Z);if(!z)return;if(Y){for(let $ of Array.from(z.attributes))if(!$.name.startsWith("data-"))z.removeAttribute($.name);for(let[$,F]of Object.entries(Y))z.setAttribute($,F)}if(K!==void 0)z.textContent=K}cleanupPreviousClones(){if(!this.target)return;this.target.querySelectorAll('[data-hyper-frame-clone="true"]').forEach((Z)=>Z.parentNode?.removeChild(Z))}async syncAll(){if(!this.source||!this.target)return;let Z=this.source.head,Y=Array.from(Z.children).filter((K)=>q$.has(K.nodeName));for(let K of Y){let z=await this.cloneNode(K);if(!z)continue;this.target?.head.appendChild(z),this.nodeMap.set(K,z)}}attachObserver(){if(!this.source||!this.target)return;if(this.observer)return;this.observer=new MutationObserver((Z)=>{Z.forEach((Y)=>{switch(Y.type){case"childList":this.handleChildListMutation(Y);break;case"characterData":this.handleCharacterDataMutation(Y);break;case"attributes":this.handleAttributeMutation(Y);break}})}),this.observer.observe(this.source.head,{childList:!0,subtree:!0,characterData:!0,attributes:!0})}handleChildListMutation(Z){if(!this.target)return;Z.removedNodes.forEach((Y)=>{let K=this.nodeMap.get(Y);if(K&&K.parentNode)K.parentNode.removeChild(K),this.nodeMap.delete(Y)}),Z.addedNodes.forEach(async(Y)=>{if(!(Y instanceof HTMLElement))return;if(!q$.has(Y.nodeName))return;try{let K=await this.cloneNode(Y);if(!K)return;let z=Z.nextSibling?this.nodeMap.get(Z.nextSibling):null;if(z&&z.parentNode)z.parentNode.insertBefore(K,z);else this.target?.head.appendChild(K);this.nodeMap.set(Y,K)}catch(K){console.error("[CssBridge] Failed to clone node:",K)}})}handleCharacterDataMutation(Z){let K=Z.target.parentNode;if(!K)return;let z=this.nodeMap.get(K);if(!z)return;z.textContent=K.textContent}handleAttributeMutation(Z){let Y=Z.target,K=this.nodeMap.get(Y);if(!K||!(K instanceof Element))return;if(Z.attributeName){let z=Y.getAttribute(Z.attributeName);if(z===null)K.removeAttribute(Z.attributeName);else K.setAttribute(Z.attributeName,z)}}async cloneNode(Z){if(!(Z instanceof HTMLElement))return null;if(!q$.has(Z.nodeName))return null;if(Z.nodeName==="LINK"&&Z instanceof HTMLLinkElement){let K=Z.getAttribute("href"),z=Z.getAttribute("rel");if(K){if(z==="stylesheet")try{let F=await this.fetchCssContent(K),B=document.createElement("STYLE");return B.textContent=F,B.setAttribute("data-hyper-frame-clone","true"),B}catch(F){console.error(`[CssBridge] Failed to fetch CSS from ${K}:`,F)}let $=Z.cloneNode(!0);try{let F=this.source?new URL(this.source.location.href):new URL(window.location.href),B=new URL(K,F).href;$.setAttribute("href",B)}catch(F){console.error(`[CssBridge] Failed to convert URL to absolute: ${K}`,F)}return $.setAttribute("data-hyper-frame-clone","true"),$}}let Y=Z.cloneNode(!0);return Y.setAttribute("data-hyper-frame-clone","true"),Y}async fetchCssContent(Z){let Y=this.source?new URL(this.source.location.href):new URL(window.location.href),K=new URL(Z,Y).href,z=await fetch(K);if(!z.ok)throw Error(`HTTP ${z.status}: ${z.statusText}`);return await z.text()}}function $M(Z={}){let Y=Z.documentRef??document;if(!Y)throw Error("[hyper-frame] document is not available");let K=Z.containerClassName||"hyper-frame",z=Z.target;if(z instanceof HTMLElement)return z.classList.add(K),{element:z,createdInternally:!1};if(typeof z==="string"&&z.trim().length>0){let F=Y.querySelector(z);if(F)return F.classList.add(K),{element:F,createdInternally:!1};console.warn(`[hyper-frame] Could not find container for selector "${z}", creating one instead.`)}let $=Y.createElement("div");return $.classList.add(K),$.classList.add("hyper-frame-container"),Y.body.appendChild($),{element:$,createdInternally:!0}}var zG=zQ(G8(),1);var NQ=zQ(G8(),1),y7=zQ(gZ(),1),OM=({definitions:Z,options:Y,onChange:K,onReady:z})=>{let $=NQ.useRef(null),F=NQ.useRef(null),B=NQ.useRef(null),j=NQ.useRef(null),y=NQ.useRef(z),[_,b]=NQ.useState(!1),[k,a]=NQ.useState(!1),[DJ,_J]=NQ.useState(!1),yJ=NQ.useMemo(()=>{let d=[{type:"number",label:"Number",description:"Slider with min/max/step"},{type:"color",label:"Color",description:"Color picker"},{type:"boolean",label:"Toggle",description:"On/off switch"},{type:"string",label:"Text",description:"Single-line string"},{type:"text",label:"Textarea",description:"Multiline string"},{type:"select",label:"Select",description:"Dropdown options"},{type:"point2d",label:"Point 2D",description:"Vector {x,y}"},{type:"point3d",label:"Point 3D",description:"Vector {x,y,z}"},{type:"file",label:"File",description:"Upload image/audio/etc"}],UJ=Y?.controlTypes;if(!UJ||UJ.length===0)return d;return d.filter((SJ)=>UJ.includes(SJ.type))},[Y?.controlTypes]),CJ=NQ.useCallback(()=>b(!1),[]),g=NQ.useCallback(()=>{let d=$.current,UJ=F.current;if(!d||!UJ)return;let SJ=d.getBoundingClientRect(),zJ=window.innerHeight-SJ.top-12,i=UJ.scrollHeight;_J(i>zJ)},[]);NQ.useEffect(()=>{let d=(UJ)=>{if(!(UJ.target instanceof HTMLElement))return;if(!UJ.target.closest(".hyper-frame-controls-panel"))CJ()};if(_)document.addEventListener("click",d);return()=>{document.removeEventListener("click",d)}},[_,CJ]),NQ.useEffect(()=>{g()},[_,g,yJ.length]),NQ.useEffect(()=>{let d=()=>g();return window.addEventListener("resize",d),()=>window.removeEventListener("resize",d)},[g]);let KJ=NQ.useCallback((d)=>{let UJ=Math.random().toString(36).slice(2,6);return`${d}-control-${UJ}`},[]),c=NQ.useCallback((d,UJ)=>{return[`Add a new ${d} control named "${UJ}" to the existing controls definitions.`,"Do NOT regenerate files; only patch the controls definitions object.",`Use sensible defaults for ${d} (e.g., 0/1 for numbers, "#00ff88" for colors).`,"Return a search-replace JSON patch that only touches the controls definitions section.","Keep all other code intact."].join(" ")},[]),qJ=NQ.useCallback((d)=>{let UJ=KJ(d),SJ=c(d,UJ),zJ={source:"hypertool-controls",type:"ADD_CONTROL_REQUEST",controlType:d,name:UJ,prompt:SJ,timestamp:Date.now()};if(Y?.onAddControlRequest);if(Y?.onAddControlRequest?.({type:d,name:UJ,prompt:SJ}),window.dispatchEvent(new CustomEvent("hypertool:add-control-request",{detail:zJ})),window.parent&&window.parent!==window)window.parent.postMessage(zJ,"*")},[c,KJ,Y]);return NQ.useEffect(()=>{y.current=z},[z]),NQ.useEffect(()=>{let d=(UJ)=>{let SJ=UJ;if(!SJ.detail||typeof SJ.detail.loading!=="boolean")return;a(Boolean(SJ.detail.loading))};return window.addEventListener("hypertool:add-control-status",d),()=>{window.removeEventListener("hypertool:add-control-status",d)}},[]),NQ.useEffect(()=>{if(!B.current)return;let d=()=>g(),UJ=()=>g(),SJ=null,zJ=window;if(!zJ.hypertoolControls){console.warn("[ControlsPanel] hypertoolControls not available on window");return}try{let i=zJ.hypertoolControls.createControlPanel(Z,{title:Y?.title,position:Y?.position,expanded:Y?.expanded,container:B.current,onChange:($J,LJ)=>{if(K)K({key:LJ.key,value:LJ.value,event:LJ.event})}});if(j.current=i,SJ=document.querySelector(".hyper-frame-controls-panel__add-btn"),SJ?.addEventListener("click",d),window.addEventListener("resize",UJ),g(),y.current)y.current(i)}catch(i){console.error("[ControlsPanel] Failed to create controls:",i)}return()=>{if(j.current){if(typeof j.current.dispose==="function")j.current.dispose();else if(typeof j.current.destroy==="function")j.current.destroy();j.current=null}SJ?.removeEventListener("click",d),window.removeEventListener("resize",UJ)}},[Z,Y,K]),y7.jsxDEV("div",{className:"hyper-frame-controls-panel",ref:$,children:y7.jsxDEV("div",{ref:F,className:DJ?"hyper-frame-controls-panel__scroll hyper-frame-controls-panel__scroll--overflow":"hyper-frame-controls-panel__scroll",children:[y7.jsxDEV("div",{ref:B,className:"hyper-frame-controls-panel__pane"},void 0,!1,void 0,this),Y?.showAddControlActions!==!1&&yJ.length>0&&y7.jsxDEV("div",{className:"hyper-frame-controls-panel__actions",children:[y7.jsxDEV("button",{type:"button",className:"hyper-frame-controls-panel__add-btn",onClick:()=>b((d)=>!d),"aria-expanded":_,"aria-haspopup":"true",disabled:k,children:[k?y7.jsxDEV("span",{className:"hyper-frame-controls-panel__spinner"},void 0,!1,void 0,this):"+",y7.jsxDEV("span",{children:k?"Adding…":"Add control"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_&&y7.jsxDEV("div",{className:"hyper-frame-controls-panel__menu",role:"menu",children:yJ.map((d)=>y7.jsxDEV("button",{className:"hyper-frame-controls-panel__menu-item",onClick:()=>{a(!0),qJ(d.type),CJ()},role:"menuitem",children:[y7.jsxDEV("div",{className:"hyper-frame-controls-panel__menu-title",children:[d.label,": "]},void 0,!0,void 0,this),y7.jsxDEV("div",{className:"hyper-frame-controls-panel__menu-desc",children:d.description},void 0,!1,void 0,this)]},d.type,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)};var dZ=zQ(G8(),1);var wQ=zQ(G8(),1),DM=zQ(gZ(),1),LM=wQ.createContext(null),qG=()=>{let{innerWidth:Z,innerHeight:Y}=window;return{width:Math.max(100,Math.round(Z)),height:Math.max(100,Math.round(Y))}},WM=({children:Z})=>{let Y=wQ.useMemo(()=>{let $J=qG(),LJ=window.devicePixelRatio||1,JJ=Math.round($J.width*LJ),YJ=Math.round($J.height*LJ);return{canvasWidth:Math.max(100,Math.round(JJ*0.9)),canvasHeight:Math.max(100,Math.round(YJ*0.9)),maxWidth:JJ,maxHeight:YJ}},[]),[K,z]=wQ.useState(Y.canvasWidth),[$,F]=wQ.useState(Y.canvasHeight),[B,j]=wQ.useState(Y.maxWidth),[y,_]=wQ.useState(Y.maxHeight),[b,k]=wQ.useState(!1),[a,DJ]=wQ.useState(!1),[_J,yJ]=wQ.useState(null),[CJ,g]=wQ.useState(null),KJ=wQ.useMemo(()=>{let $J=window.devicePixelRatio||1,LJ=K/$J,JJ=$/$J;if(LJ===0||JJ===0)return 1;let YJ=B/$J,TJ=y/$J,QJ=YJ/LJ,AJ=TJ/JJ;return Math.min(QJ,AJ,1)},[K,$,B,y]);wQ.useEffect(()=>{let $J=()=>{let LJ=qG(),JJ=window.devicePixelRatio||1,YJ=Math.round(LJ.width*JJ),TJ=Math.round(LJ.height*JJ);if(j(YJ),_(TJ),b)z(YJ),F(TJ);else if(_J!==null){let QJ,AJ;if(YJ/TJ>_J)AJ=TJ,QJ=Math.round(AJ*_J);else QJ=YJ,AJ=Math.round(QJ/_J);z(QJ),F(AJ)}};return window.addEventListener("resize",$J),()=>window.removeEventListener("resize",$J)},[b,_J]);let c=wQ.useCallback(($J)=>{let LJ=Math.max(100,Math.round($J));z(LJ),k(!1),yJ(null)},[]),qJ=wQ.useCallback(($J)=>{let LJ=Math.max(100,Math.round($J));F(LJ),k(!1),yJ(null)},[]),d=wQ.useCallback(($J,LJ)=>{let JJ=Math.max(100,Math.round($J)),YJ=Math.max(100,Math.round(LJ));z(JJ),F(YJ),k(!1),yJ(null)},[]),UJ=wQ.useCallback(($J,LJ)=>{let JJ=qG(),YJ=window.devicePixelRatio||1,TJ=$J/LJ,QJ=Math.round(JJ.width*YJ),AJ=Math.round(JJ.height*YJ),BQ,vQ;if(QJ/AJ>TJ)vQ=AJ,BQ=Math.round(vQ*TJ);else BQ=QJ,vQ=Math.round(BQ/TJ);z(BQ),F(vQ),yJ(TJ),k(!1)},[]),SJ=wQ.useCallback(($J)=>{let{width:LJ,height:JJ}=$J;if(LJ>0&&JJ>0)console.log("[CanvasContext] Syncing with actual canvas:",{actual:{width:LJ,height:JJ},current:{width:K,height:$}}),z(LJ),F(JJ),k(!1),yJ(null)},[K,$]),zJ=wQ.useCallback(()=>{if(b&&CJ)z(CJ.width),F(CJ.height),k(!1),g(null);else{g({width:K,height:$});let $J=qG(),LJ=window.devicePixelRatio||1,JJ=Math.round($J.width*LJ),YJ=Math.round($J.height*LJ);z(JJ),F(YJ),yJ(null),k(!0)}},[b,CJ,K,$]),i={canvasWidth:K,canvasHeight:$,maxCanvasWidth:B,maxCanvasHeight:y,scale:KJ,isFittedToScreen:b,isRecording:a,setIsRecording:DJ,setCanvasWidth:c,setCanvasHeight:qJ,setCanvasSize:d,setAspectRatio:UJ,syncWithCanvas:SJ,fitToScreen:zJ};return DM.jsxDEV(LM.Provider,{value:i,children:Z},void 0,!1,void 0,this)},oX=()=>{let Z=wQ.useContext(LM);if(!Z)throw Error("useCanvas must be used within a CanvasProvider");return Z};var A7=zQ(gZ(),1),HM=({getContainer:Z,filename:Y="hyperframe-export",useCanvasCapture:K=!0})=>{let{setIsRecording:z}=oX(),[$,F]=dZ.useState(!1),[B,j]=dZ.useState(!1),[y,_]=dZ.useState(!1),b=dZ.useRef(null),k=dZ.useRef([]);dZ.useEffect(()=>{let g=()=>{let c=Z();if(c&&K){if(c.querySelector("canvas"))return F(!0),j(!0),!0}return!1};if(g())return;let KJ=setInterval(()=>{if(g())clearInterval(KJ)},100);return()=>clearInterval(KJ)},[Z,K]);let a=dZ.useCallback((g,KJ)=>{let c=URL.createObjectURL(g),qJ=document.createElement("a");qJ.href=c,qJ.download=KJ,qJ.rel="noopener",qJ.style.display="none",document.body.appendChild(qJ),qJ.click(),document.body.removeChild(qJ),URL.revokeObjectURL(c)},[]),DJ=dZ.useCallback(async()=>{try{let g=Z();if(!g)throw Error("Container not available.");let KJ=g.querySelector("canvas");if(!KJ||!(KJ instanceof HTMLCanvasElement))throw Error("No canvas element available for capture.");let c=await new Promise((qJ,d)=>{KJ.toBlob((UJ)=>{if(UJ)qJ(UJ);else d(Error("Canvas capture returned an empty blob."))})});if(c)a(c,`${Y}.png`),console.log("PNG captured")}catch(g){console.error("[ExportWidget] Failed to capture image:",g)}},[Z,Y,a]),_J=dZ.useCallback(()=>{if(!b.current){console.warn("[ExportWidget] No active recorder to stop");return}console.log("Stopping recording"),b.current.stop()},[]),yJ=dZ.useCallback(async()=>{try{let g=Z();if(!g)throw Error("Container not available.");let KJ=g.querySelector("canvas");if(!KJ||!(KJ instanceof HTMLCanvasElement))throw Error("No canvas element available for recording.");if(typeof KJ.captureStream!=="function")throw Error("Canvas captureStream API is not supported in this browser.");let c=KJ.captureStream(60),d=[{mimeType:"video/mp4;codecs=avc1",extension:"mp4"},{mimeType:"video/mp4;codecs=h264",extension:"mp4"},{mimeType:"video/mp4;codecs=avc1.42E01E",extension:"mp4"},{mimeType:"video/mp4",extension:"mp4"},{mimeType:"video/webm;codecs=h264",extension:"webm"},{mimeType:"video/webm;codecs=vp9",extension:"webm"},{mimeType:"video/webm;codecs=vp8",extension:"webm"},{mimeType:"video/webm",extension:"webm"}].find((i)=>MediaRecorder.isTypeSupported(i.mimeType));if(!d)d={mimeType:"",extension:"webm"};console.log("[ExportWidget] Using video format:",d.mimeType||"browser default");let UJ={videoBitsPerSecond:5000000};if(d.mimeType)UJ.mimeType=d.mimeType;let SJ=new MediaRecorder(c,UJ),zJ=[];k.current=zJ,SJ.addEventListener("dataavailable",(i)=>{if(i.data?.size)zJ.push(i.data)}),SJ.addEventListener("stop",()=>{let i=d.mimeType||SJ.mimeType||"video/webm",$J=new Blob(zJ,{type:i});console.log("[ExportWidget] Recording complete:",{size:$J.size,type:$J.type,chunks:zJ.length}),a($J,`${Y}.${d.extension}`),c.getTracks().forEach((LJ)=>LJ.stop()),_(!1),z(!1),b.current=null,k.current=[]}),SJ.start(),b.current=SJ,_(!0),z(!0),console.log("Recording started")}catch(g){console.error("[ExportWidget] Failed to start recording:",g),_(!1),z(!1),b.current=null}},[Z,Y,a,z]),CJ=dZ.useCallback(async()=>{if(y)_J();else await yJ()},[y,_J,yJ]);return A7.jsxDEV("div",{className:"export-widget-container absolute top-0 left-0 py-2 px-2 z-[9999]",children:A7.jsxDEV("div",{className:"flex items-center gap-2",children:[A7.jsxDEV("button",{type:"button",className:`inline-flex items-center gap-2 rounded-lg border border-border bg-background px-2 py-1 text-sm text-text transition hover:bg-muted/80 whitespace-nowrap ${!$?"opacity-60 cursor-not-allowed":""}`,onClick:DJ,disabled:!$,title:"Screenshot",children:[A7.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[A7.jsxDEV("path",{d:"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z"},void 0,!1,void 0,this),A7.jsxDEV("circle",{cx:"12",cy:"13",r:"3"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A7.jsxDEV("span",{children:"Screenshot"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A7.jsxDEV("button",{type:"button",className:`inline-flex items-center gap-2 rounded-lg border transition hover:bg-muted/80 whitespace-nowrap px-2 py-1 text-sm ${y?"bg-red-500/20 text-red-400 border-red-500/30":"bg-background text-text border-border"} ${!B?"opacity-60 cursor-not-allowed":""}`,onClick:CJ,disabled:!B,title:y?"Stop Recording":"Record Video",children:[A7.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[A7.jsxDEV("path",{d:"m22 8-6 4 6 4V8Z"},void 0,!1,void 0,this),A7.jsxDEV("rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",ry:"2"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A7.jsxDEV("span",{children:y?"Stop":"Rec"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)};var UX=zQ(G8(),1);var b7=zQ(G8(),1);var Q7=zQ(gZ(),1),MM=({canvasWidth:Z,canvasHeight:Y,scale:K,onResize:z})=>{let{isRecording:$}=oX(),[F,B]=b7.useState(!1),[j,y]=b7.useState(null),[_,b]=b7.useState({x:0,y:0}),[k,a]=b7.useState({width:0,height:0}),DJ=window.devicePixelRatio||1,_J=b7.useRef(K),yJ=1;b7.useEffect(()=>{_J.current=K},[K]);let CJ=b7.useCallback((KJ,c)=>{if($)return;c.preventDefault(),c.stopPropagation(),B(!0),y(KJ),b({x:c.clientX,y:c.clientY}),a({width:Z,height:Y})},[Z,Y,$]);b7.useEffect(()=>{if(!F||!j)return;let KJ=(d)=>{let UJ=d.clientX-_.x,SJ=d.clientY-_.y,zJ=_J.current||1,i=j.length===2,$J=j==="e"||j==="w",LJ=j==="n"||j==="s",JJ=k.width,YJ=k.height,TJ=j.includes("e")?UJ*DJ/zJ:j.includes("w")?-UJ*DJ/zJ:0,QJ=j.includes("s")?SJ*DJ/zJ:j.includes("n")?-SJ*DJ/zJ:0;if(JJ=k.width+TJ,YJ=k.height+QJ,d.shiftKey){let AJ=Math.max(1,k.width),BQ=Math.max(1,k.height),vQ=TJ/AJ,mZ=QJ/BQ,cQ=($Q,uQ)=>{if(!Number.isFinite($Q)||$Q<=0)return 1/uQ;return $Q};if($J&&!LJ){let $Q=cQ(1+vQ,AJ);JJ=AJ*$Q,YJ=BQ*$Q}else if(LJ&&!$J){let $Q=cQ(1+mZ,BQ);JJ=AJ*$Q,YJ=BQ*$Q}else if(i){let $Q=Math.abs(vQ)>=Math.abs(mZ),uQ=$Q?vQ:mZ,cZ=$Q?AJ:BQ,Z7=cQ(1+uQ,cZ);JJ=AJ*Z7,YJ=BQ*Z7}}JJ=Math.max(1,JJ),YJ=Math.max(1,YJ),z(JJ,YJ)},c=()=>{B(!1),y(null)},qJ=()=>{B(!1),y(null)};return document.addEventListener("mousemove",KJ),document.addEventListener("mouseup",c),document.addEventListener("mouseleave",qJ),()=>{document.removeEventListener("mousemove",KJ),document.removeEventListener("mouseup",c),document.removeEventListener("mouseleave",qJ)}},[F,j,_,k,DJ,z]);let g=({handle:KJ,className:c})=>Q7.jsxDEV("div",{className:`absolute ${c} group ${$?"cursor-not-allowed opacity-0":""}`,onMouseDown:(qJ)=>CJ(KJ,qJ),style:{zIndex:10},title:$?"Canvas resizing is locked during recording":void 0,children:Q7.jsxDEV("div",{className:`w-full h-full transition-opacity bg-accent/20 ${$?"opacity-0":"opacity-0 group-hover:opacity-100"}`},void 0,!1,void 0,this)},void 0,!1,void 0,this);return Q7.jsxDEV(Q7.Fragment,{children:[Q7.jsxDEV(g,{handle:"nw",className:"top-0 left-0 w-3 h-3 cursor-nw-resize"},void 0,!1,void 0,this),Q7.jsxDEV(g,{handle:"ne",className:"top-0 right-0 w-3 h-3 cursor-ne-resize"},void 0,!1,void 0,this),Q7.jsxDEV(g,{handle:"sw",className:"bottom-0 left-0 w-3 h-3 cursor-sw-resize"},void 0,!1,void 0,this),Q7.jsxDEV(g,{handle:"se",className:"bottom-0 right-0 w-3 h-3 cursor-se-resize"},void 0,!1,void 0,this),Q7.jsxDEV(g,{handle:"n",className:"top-0 left-3 right-3 h-1 cursor-n-resize"},void 0,!1,void 0,this),Q7.jsxDEV(g,{handle:"s",className:"bottom-0 left-3 right-3 h-1 cursor-s-resize"},void 0,!1,void 0,this),Q7.jsxDEV(g,{handle:"w",className:"left-0 top-3 bottom-3 w-1 cursor-w-resize"},void 0,!1,void 0,this),Q7.jsxDEV(g,{handle:"e",className:"right-0 top-3 bottom-3 w-1 cursor-e-resize"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};var F4=zQ(gZ(),1),FM=({onReady:Z})=>{let Y=UX.useRef(null),K=UX.useRef(null),{canvasWidth:z,canvasHeight:$,scale:F,setCanvasSize:B,syncWithCanvas:j}=oX(),[y,_]=UX.useState(!1),b=window.devicePixelRatio||1,k=Math.max(1,Math.round(z/b)),a=Math.max(1,Math.round($/b)),DJ=Math.max(1,Math.round(k*F)),_J=Math.max(1,Math.round(a*F));return UX.useEffect(()=>{if(Y.current)Z(Y.current)},[Z]),UX.useEffect(()=>{if(!Y.current||y)return;let yJ=()=>{let KJ=Y.current?.querySelector("canvas");if(KJ&&KJ instanceof HTMLCanvasElement){let{width:c,height:qJ}=KJ;if(c>100&&qJ>100){let d=Math.abs(c-z),UJ=Math.abs(qJ-$);if(d>z*0.1||UJ>$*0.1)console.log("[SandboxContainer] Canvas detected, syncing dimensions"),j(KJ),_(!0)}}};yJ();let CJ=setInterval(yJ,100),g=setTimeout(()=>{clearInterval(CJ),_(!0)},3000);return()=>{clearInterval(CJ),clearTimeout(g)}},[Y,z,$,y,j]),UX.useEffect(()=>{let yJ=new Event("resize");window.dispatchEvent(yJ),console.log("[SandboxContainer] Dispatched resize event:",{canvas:{width:z,height:$},container:{width:k,height:a},display:{width:DJ,height:_J},scale:F})},[z,$,k,a,DJ,_J,F]),F4.jsxDEV("div",{className:"hyper-frame-sandbox-wrapper absolute inset-0 flex items-center justify-center pointer-events-none",children:F4.jsxDEV("div",{ref:K,className:"hyper-frame-sandbox-display-container relative pointer-events-auto",style:{width:`${DJ}px`,height:`${_J}px`,boxShadow:"0 4px 12px rgba(0, 0, 0, 0.15)"},children:[F4.jsxDEV(MM,{canvasWidth:z,canvasHeight:$,scale:F,onResize:B},void 0,!1,void 0,this),F4.jsxDEV("div",{ref:Y,className:"hyper-frame-sandbox-container absolute top-0 left-0 flex items-center justify-center",style:{width:`${k}px`,height:`${a}px`,overflow:"hidden",transform:`scale(${F})`,transformOrigin:"top left"}},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)};var G6=zQ(G8(),1);var FQ=zQ(gZ(),1),BM=[{label:"16:9 Landscape",width:1920,height:1080},{label:"9:16 Portrait",width:1080,height:1920},{label:"4:3 Standard",width:1024,height:768},{label:"1:1 Square",width:1080,height:1080},{label:"21:9 Ultrawide",width:2560,height:1080},{label:"3:2 Classic",width:1440,height:960},{label:"---",width:0,height:0},{label:"iPhone 15 Pro",width:1179,height:2556},{label:"iPhone 15 Pro Max",width:1290,height:2796},{label:"iPhone SE",width:750,height:1334},{label:"iPhone 15",width:1170,height:2532},{label:"---",width:0,height:0},{label:'MacBook Air 13"',width:2560,height:1664},{label:'MacBook Pro 14"',width:3024,height:1964},{label:'MacBook Pro 16"',width:3456,height:2234},{label:'iMac 24"',width:4480,height:2520},{label:"Studio Display",width:5120,height:2880}],AM=()=>{let{canvasWidth:Z,canvasHeight:Y,scale:K,isRecording:z,setCanvasWidth:$,setCanvasHeight:F,setAspectRatio:B,fitToScreen:j}=oX(),[y,_]=G6.useState(Z.toString()),[b,k]=G6.useState(Y.toString());G6.useEffect(()=>{_(Z.toString())},[Z]),G6.useEffect(()=>{k(Y.toString())},[Y]);let a=()=>{if(z)return;let zJ=Math.round(parseFloat(y));if(!isNaN(zJ)&&zJ>=100)$(zJ),_(zJ.toString());else _(Z.toString())},DJ=()=>{if(z)return;let zJ=Math.round(parseFloat(b));if(!isNaN(zJ)&&zJ>=100)F(zJ),k(zJ.toString());else k(Y.toString())},_J=(zJ)=>{if(zJ.key==="Enter")a(),zJ.currentTarget.blur()},yJ=(zJ)=>{if(zJ.key==="Enter")DJ(),zJ.currentTarget.blur()},CJ=(zJ)=>{if(z)return;let i=BM.find(($J)=>$J.label===zJ.target.value);if(i&&i.width>0&&i.height>0)B(i.width,i.height)},g=window.devicePixelRatio||1,KJ=Math.round(Z/g*K),c=Math.round(Y/g*K),qJ=`${Z}×${Y}`,d=`${KJ}×${c}`,UJ=K<1,SJ=Math.round(K*100);return FQ.jsxDEV("div",{className:"canvas-size-widget-container absolute top-0 center px-2 py-2 z-[9999] flex items-center gap-2",children:[FQ.jsxDEV("select",{onChange:CJ,className:`rounded border border-border w-[90px] bg-background px-2 py-1 text-sm text-text focus:border-accent focus:outline-none ${z?"opacity-50 cursor-not-allowed":"cursor-pointer"}`,defaultValue:"",disabled:z,title:z?"Canvas resizing is locked during recording":"Choose a preset size",children:[FQ.jsxDEV("option",{value:"",disabled:!0,children:"Presets"},void 0,!1,void 0,this),BM.map((zJ,i)=>zJ.label==="---"?FQ.jsxDEV("option",{disabled:!0,children:"────────"},i,!1,void 0,this):FQ.jsxDEV("option",{value:zJ.label,children:zJ.label},i,!1,void 0,this))]},void 0,!0,void 0,this),FQ.jsxDEV("div",{className:"flex items-center gap-1",children:[FQ.jsxDEV("label",{className:"text-sm text-accent",children:"W:"},void 0,!1,void 0,this),FQ.jsxDEV("input",{value:y,onChange:(zJ)=>_(zJ.target.value),onBlur:a,onKeyDown:_J,className:`rounded border border-border bg-background px-2 py-1 text-sm text-text focus:border-accent focus:outline-none ${z?"opacity-50 cursor-not-allowed":""}`,style:{width:`${Math.max(y.length*8+16,55)}px`},min:"60",step:"1",disabled:z,title:z?"Canvas resizing is locked during recording":"Canvas width"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),FQ.jsxDEV("div",{className:"flex items-center gap-1",children:[FQ.jsxDEV("label",{className:"text-sm text-accent",children:"H:"},void 0,!1,void 0,this),FQ.jsxDEV("input",{value:b,onChange:(zJ)=>k(zJ.target.value),onBlur:DJ,onKeyDown:yJ,className:`rounded border border-border bg-background px-2 py-1 text-sm text-text focus:border-accent focus:outline-none ${z?"opacity-50 cursor-not-allowed":""}`,style:{width:`${Math.max(b.length*8+16,55)}px`},min:"60",step:"1",disabled:z,title:z?"Canvas resizing is locked during recording":"Canvas height"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),FQ.jsxDEV("div",{className:"flex items-center gap-1.5 px-2 py-1 rounded border border-border bg-background/50",title:UJ?`Canvas: ${qJ} → Display: ${d} (scaled to ${SJ}%)`:`Canvas: ${qJ} = Display: ${d} (no scaling)`,style:{display:UJ?"flex":"none"},children:[FQ.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:UJ?"text-accent":"text-muted",children:[FQ.jsxDEV("circle",{cx:"11",cy:"11",r:"8"},void 0,!1,void 0,this),FQ.jsxDEV("path",{d:"m21 21-4.3-4.3"},void 0,!1,void 0,this),FQ.jsxDEV("line",{x1:"11",y1:"8",x2:"11",y2:"14"},void 0,!1,void 0,this),FQ.jsxDEV("line",{x1:"8",y1:"11",x2:"14",y2:"11"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),FQ.jsxDEV("div",{className:"flex items-center gap-1",children:FQ.jsxDEV("span",{className:`text-xs ${UJ?"text-accent":"text-muted"}`,children:[SJ,"%"]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),FQ.jsxDEV("button",{type:"button",className:`inline-flex items-center gap-1 h-[30px] rounded-lg border border-border bg-background px-3 py-2 text-sm text-text transition whitespace-nowrap ${z?"opacity-50 cursor-not-allowed":"hover:bg-muted/80"}`,onClick:j,disabled:z,title:z?"Canvas resizing is locked during recording":"Fit to screen",children:FQ.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[FQ.jsxDEV("path",{d:"M8 3H5a2 2 0 0 0-2 2v3"},void 0,!1,void 0,this),FQ.jsxDEV("path",{d:"M21 8V5a2 2 0 0 0-2-2h-3"},void 0,!1,void 0,this),FQ.jsxDEV("path",{d:"M3 16v3a2 2 0 0 0 2 2h3"},void 0,!1,void 0,this),FQ.jsxDEV("path",{d:"M16 21h3a2 2 0 0 0 2-2v-3"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};var d9=zQ(gZ(),1),IM=({onContainerReady:Z,controls:Y,exportWidget:K})=>{let[z,$]=zG.useState(null),F=zG.useCallback((B)=>{$(B),Z(B)},[Z]);return d9.jsxDEV(WM,{children:d9.jsxDEV("div",{className:"hyper-container flex flex-col items-center justify-center",children:[K&&K.enabled&&d9.jsxDEV(HM,{getContainer:()=>z,filename:K.filename,useCanvasCapture:K.useCanvasCapture},void 0,!1,void 0,this),d9.jsxDEV(AM,{},void 0,!1,void 0,this),d9.jsxDEV(FM,{onReady:F},void 0,!1,void 0,this),Y&&d9.jsxDEV(OM,{definitions:Y.definitions,options:Y.options,onChange:Y.onChange,onReady:Y.onReady},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)};class $G{cssBridge=null;config;currentExperience=null;constructor(Z={}){this.config=Z,this.setupMessageHandlers()}setupMessageHandlers(){if(typeof window>"u")return;window.addEventListener("message",(Z)=>{let{type:Y,data:K}=Z.data||{};switch(Y){case"CAPTURE_SCREENSHOT":this.handleCaptureScreenshot(Z.data?.requestId);break;case"HYPERTOOL_SET_PARAMS":this.handleSetParams(K?.params);break;case"HYPERTOOL_GET_PARAMS":this.handleGetParams();break}})}handleCaptureScreenshot(Z){let Y=null;if(this.currentExperience)Y=this.currentExperience.mount.querySelector("canvas");if(!Y){let K=document.querySelectorAll("canvas");if(K.length>0){let z=K[0],$=z.width*z.height;K.forEach((F)=>{let B=F,j=B.width*B.height;if(j>$)z=B,$=j}),Y=z}}if(!Y){this.sendToParent("SCREENSHOT_RESULT",{requestId:Z,noCanvas:!0,error:"No canvas found"});return}try{let K=this.createOptimizedThumbnail(Y,400,0.8);this.sendToParent("SCREENSHOT_RESULT",{requestId:Z,dataUrl:K})}catch(K){this.sendToParent("SCREENSHOT_RESULT",{requestId:Z,error:K instanceof Error?K.message:"Unknown error"})}}handleSetParams(Z){if(!Z||!this.currentExperience)return;this.currentExperience.setParams(Z)}handleGetParams(){let Z=this.currentExperience?.getParams()??{};this.sendToParent("HYPERTOOL_PARAMS_RESPONSE",{params:Z})}sendToParent(Z,Y){window.parent.postMessage({type:Z,...Y},"*")}notifyParamChange(Z){let Y={};for(let[K,z]of Object.entries(Z))if(z===null||typeof z==="string"||typeof z==="number"||typeof z==="boolean")Y[K]=z;else if(typeof z==="object")try{Y[K]=JSON.parse(JSON.stringify(z))}catch{}window.parent.postMessage({type:"HYPERTOOL_PARAMS_CHANGED",source:"hypertool-iframe",data:{params:Y}},"*")}createOptimizedThumbnail(Z,Y,K){let{width:z,height:$}=Z,F=z,B=$;if(z>Y){let _=Y/z;F=Y,B=Math.round($*_)}let j=document.createElement("canvas");j.width=F,j.height=B;let y=j.getContext("2d");if(!y)return Z.toDataURL("image/jpeg",K);return y.imageSmoothingEnabled=!0,y.imageSmoothingQuality="high",y.drawImage(Z,0,0,F,B),j.toDataURL("image/jpeg",K)}mirrorCss(){if(this.cssBridge)return;this.cssBridge=new z$({mirror:this.config.mirrorCss!==!1}),this.cssBridge.start()}async createSandbox(Z){if(this.config.mirrorCss!==!1&&Z.mirrorCss!==!1)this.mirrorCss();let Y=await this.createReactMount(Z),K=new u5({mount:Y.sandboxContainer,paramDefs:Z.controls?.definitions,autoplay:!0,setup:($)=>this.wrapUserSetup(Z.setup,$,Z)});if(this.currentExperience=K,K.on("paramChange",()=>{this.notifyParamChange(K.getParams())}),Z.controls?.definitions)this.wireControlsToExperience(K,Y);if(typeof globalThis.__hypertool_registerParams==="function")globalThis.__hypertool_registerParams(K.params);return this.notifyParamChange(K.getParams()),{container:Y.sandboxContainer,controls:null,params:K.params,destroy:()=>{K.destroy(),Y.destroy()}}}wrapUserSetup(Z,Y,K){let z={mount:Y.mount,params:Y.params,controls:null,exports:{registerImageCapture:()=>{},registerVideoCapture:()=>{},setFilename:Y.exports.setFilename,setVisible:()=>{},useDefaultCanvasCapture:()=>{},destroy:()=>{}},runtime:this,environment:{window:Y.environment.window,document:Y.environment.document,addCleanup:Y.environment.addCleanup,onResize:($,F)=>{Y.environment.window.addEventListener("resize",$,F);let B=()=>Y.environment.window.removeEventListener("resize",$,F);return Y.environment.addCleanup(B),B}}};return Z(z)}wireControlsToExperience(Z,Y){}async createReactMount(Z){let Y=Z.mount,K=$M({target:Y?.target,containerClassName:Y?.containerClassName}),z=PM.createRoot(K.element),$=Z.controls?.definitions?{definitions:Z.controls.definitions,options:Z.controls.options,onChange:(j)=>{if(this.currentExperience&&j?.key!==void 0)this.currentExperience.setParam(j.key,j.value);Z.controls?.onChange?.(j,{})},onReady:(j)=>{if(this.currentExperience){let y=j.params;this.currentExperience.setParams(y)}if(typeof globalThis.__hypertool_registerControls==="function")globalThis.__hypertool_registerControls(j)}}:null,B=await new Promise((j)=>{z.render(jM.default.createElement(IM,{onContainerReady:j,controls:$,exportWidget:{enabled:Z.exportWidget?.enabled!==!1,filename:Z.exportWidget?.filename,position:Z.exportWidget?.position,useCanvasCapture:Z.exportWidget?.useCanvasCapture!==!1}}))});if(typeof Y?.onReady==="function")Y.onReady({container:B});return{sandboxContainer:B,destroy:()=>{if(z.unmount(),K.createdInternally)K.element.remove()}}}}var Q_={mirrorCss:!0},OG=new $G(Q_);function Z_(Z){return new $G(Z)}function NM(Z){return OG.createSandbox(Z)}function wM(){OG.mirrorCss()}if(typeof window<"u"){window.hypertoolControls={createControls:K$,createControlPanel:U$,HypertoolControls:u9,injectThemeVariables:H4,studioTheme:D4};let Z=window.hyperFrame||{};window.hyperFrame={...Z,version:"universal",runtime:OG,createSandbox:NM,mirrorCss:wM},G_()}var B4=null,LG=null;function X_(Z){B4=Z}function Y_(Z){LG=Z}if(typeof globalThis<"u")globalThis.__hypertool_registerParams=X_,globalThis.__hypertool_registerControls=Y_;function G_(){if(typeof window>"u")return;let Z={isRecording:!1,recorder:null,recordedChunks:[]};window.addEventListener("message",(B)=>{if(B.data?.source!=="hypertool-main")return;let{type:j}=B.data;switch(j){case"HYPERTOOL_CAPTURE_PNG":z();break;case"HYPERTOOL_START_RECORDING":$();break;case"HYPERTOOL_STOP_RECORDING":F();break;case"HYPERTOOL_GET_PARAMS":Y();break;case"HYPERTOOL_SET_PARAMS":K(B.data.data?.params);break}});function Y(){window.parent.postMessage({type:"HYPERTOOL_PARAMS_RESPONSE",data:{params:B4?{...B4}:{}}},"*")}function K(B){if(!B||typeof B!=="object"){console.warn("[Runtime] Invalid params received in SET_PARAMS");return}if(console.log("[Runtime] Received SET_PARAMS from parent:",Object.keys(B).length,"values"),B4){for(let[j,y]of Object.entries(B))if(y!==void 0)B4[j]=y}if(LG){for(let[j,y]of Object.entries(B))if(y!==void 0)try{LG.set(j,y)}catch(_){}LG.refresh(),console.log("[Runtime] Controls updated with saved values")}}function z(){let B=document.querySelector("canvas");if(B)B.toBlob((j)=>{if(j)window.parent.postMessage({type:"HYPERTOOL_CAPTURE_RESPONSE",data:{blob:j,filename:"hypertool-capture.png"}},"*")},"image/png");else console.warn("No canvas found for capture")}function $(){console.log("Starting recording...");let B=document.querySelector("canvas");if(B&&typeof B.captureStream==="function"){let j=B.captureStream(60),y=new MediaRecorder(j,{mimeType:"video/webm;codecs=vp9"});Z.recordedChunks=[],y.ondataavailable=(_)=>{if(_.data.size>0)Z.recordedChunks.push(_.data),console.log("Recording data available:",_.data.size,"bytes")},y.onstop=()=>{console.log("Recording stopped, processing...");let _=new Blob(Z.recordedChunks,{type:"video/webm"});console.log("Recording blob size:",_.size,"bytes"),window.parent.postMessage({type:"HYPERTOOL_RECORDING_RESPONSE",data:{blob:_,filename:"hypertool-recording.webm"}},"*"),Z.isRecording=!1,Z.recorder=null},y.start(),Z.recorder=y,Z.isRecording=!0,console.log("Recording started successfully")}else console.warn("Canvas not found or captureStream not supported")}function F(){if(console.log("Stopping recording..."),Z.recorder)Z.recorder.stop(),window.parent.postMessage({type:"HYPERTOOL_RECORDING_STOPPED",data:{}},"*"),console.log("Stop recording message sent");else console.warn("No active recorder to stop")}}export{D4 as studioTheme,OG as runtime,X_ as registerSandboxParams,Y_ as registerControlsInstance,wM as mirrorCss,H4 as injectThemeVariables,NM as createSandbox,K$ as createControls,U$ as createControlPanel,Z_ as configureRuntime,f5 as ParamStore,v5 as ObjectRegistry,u9 as HypertoolControls,u5 as Experience,b5 as EventEmitter};
188
+
189
+ //# debugId=5F6BB9F4EF18B02864756E2164756E21