@hailer/mcp 0.1.12 → 0.1.14

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.
@@ -1,600 +0,0 @@
1
- function i3(e,t){for(var a=0;a<t.length;a++){const i=t[a];if(typeof i!="string"&&!Array.isArray(i)){for(const s in i)if(s!=="default"&&!(s in e)){const u=Object.getOwnPropertyDescriptor(i,s);u&&Object.defineProperty(e,s,u.get?u:{enumerable:!0,get:()=>i[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const u of s)if(u.type==="childList")for(const c of u.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&i(c)}).observe(document,{childList:!0,subtree:!0});function a(s){const u={};return s.integrity&&(u.integrity=s.integrity),s.referrerPolicy&&(u.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?u.credentials="include":s.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function i(s){if(s.ep)return;s.ep=!0;const u=a(s);fetch(s.href,u)}})();var Qm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function mg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var pM={exports:{}},qS={},mM={exports:{}},Hv={exports:{}};/**
2
- * @license React
3
- * react.development.js
4
- *
5
- * Copyright (c) Facebook, Inc. and its affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */Hv.exports;(function(e,t){(function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var a="18.3.1",i=Symbol.for("react.element"),s=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),h=Symbol.for("react.provider"),m=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),x=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),E=Symbol.for("react.offscreen"),k=Symbol.iterator,O="@@iterator";function _(C){if(C===null||typeof C!="object")return null;var j=k&&C[k]||C[O];return typeof j=="function"?j:null}var N={current:null},$={transition:null},L={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},I={current:null},F={},Q=null;function le(C){Q=C}F.setExtraStackFrame=function(C){Q=C},F.getCurrentStack=null,F.getStackAddendum=function(){var C="";Q&&(C+=Q);var j=F.getCurrentStack;return j&&(C+=j()||""),C};var re=!1,de=!1,Ke=!1,q=!1,ue=!1,Ee={ReactCurrentDispatcher:N,ReactCurrentBatchConfig:$,ReactCurrentOwner:I};Ee.ReactDebugCurrentFrame=F,Ee.ReactCurrentActQueue=L;function we(C){{for(var j=arguments.length,ee=new Array(j>1?j-1:0),se=1;se<j;se++)ee[se-1]=arguments[se];K("warn",C,ee)}}function oe(C){{for(var j=arguments.length,ee=new Array(j>1?j-1:0),se=1;se<j;se++)ee[se-1]=arguments[se];K("error",C,ee)}}function K(C,j,ee){{var se=Ee.ReactDebugCurrentFrame,Te=se.getStackAddendum();Te!==""&&(j+="%s",ee=ee.concat([Te]));var et=ee.map(function(He){return String(He)});et.unshift("Warning: "+j),Function.prototype.apply.call(console[C],console,et)}}var Y={};function G(C,j){{var ee=C.constructor,se=ee&&(ee.displayName||ee.name)||"ReactClass",Te=se+"."+j;if(Y[Te])return;oe("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.",j,se),Y[Te]=!0}}var ve={isMounted:function(C){return!1},enqueueForceUpdate:function(C,j,ee){G(C,"forceUpdate")},enqueueReplaceState:function(C,j,ee,se){G(C,"replaceState")},enqueueSetState:function(C,j,ee,se){G(C,"setState")}},te=Object.assign,pe={};Object.freeze(pe);function Me(C,j,ee){this.props=C,this.context=j,this.refs=pe,this.updater=ee||ve}Me.prototype.isReactComponent={},Me.prototype.setState=function(C,j){if(typeof C!="object"&&typeof C!="function"&&C!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,C,j,"setState")},Me.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};{var Ne={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)."]},Pe=function(C,j){Object.defineProperty(Me.prototype,C,{get:function(){we("%s(...) is deprecated in plain JavaScript React classes. %s",j[0],j[1])}})};for(var ht in Ne)Ne.hasOwnProperty(ht)&&Pe(ht,Ne[ht])}function mt(){}mt.prototype=Me.prototype;function gt(C,j,ee){this.props=C,this.context=j,this.refs=pe,this.updater=ee||ve}var it=gt.prototype=new mt;it.constructor=gt,te(it,Me.prototype),it.isPureReactComponent=!0;function jt(){var C={current:null};return Object.seal(C),C}var be=Array.isArray;function ut(C){return be(C)}function Et(C){{var j=typeof Symbol=="function"&&Symbol.toStringTag,ee=j&&C[Symbol.toStringTag]||C.constructor.name||"Object";return ee}}function Nt(C){try{return Pt(C),!1}catch{return!0}}function Pt(C){return""+C}function Ot(C){if(Nt(C))return oe("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Et(C)),Pt(C)}function cn(C,j,ee){var se=C.displayName;if(se)return se;var Te=j.displayName||j.name||"";return Te!==""?ee+"("+Te+")":ee}function en(C){return C.displayName||"Context"}function vt(C){if(C==null)return null;if(typeof C.tag=="number"&&oe("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof C=="function")return C.displayName||C.name||null;if(typeof C=="string")return C;switch(C){case u:return"Fragment";case s:return"Portal";case f:return"Profiler";case c:return"StrictMode";case y:return"Suspense";case x:return"SuspenseList"}if(typeof C=="object")switch(C.$$typeof){case m:var j=C;return en(j)+".Consumer";case h:var ee=C;return en(ee._context)+".Provider";case v:return cn(C,C.render,"ForwardRef");case S:var se=C.displayName||null;return se!==null?se:vt(C.type)||"Memo";case R:{var Te=C,et=Te._payload,He=Te._init;try{return vt(He(et))}catch{return null}}}return null}var on=Object.prototype.hasOwnProperty,un={key:!0,ref:!0,__self:!0,__source:!0},$e,St,yt;yt={};function _t(C){if(on.call(C,"ref")){var j=Object.getOwnPropertyDescriptor(C,"ref").get;if(j&&j.isReactWarning)return!1}return C.ref!==void 0}function Ge(C){if(on.call(C,"key")){var j=Object.getOwnPropertyDescriptor(C,"key").get;if(j&&j.isReactWarning)return!1}return C.key!==void 0}function tt(C,j){var ee=function(){$e||($e=!0,oe("%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)",j))};ee.isReactWarning=!0,Object.defineProperty(C,"key",{get:ee,configurable:!0})}function Ft(C,j){var ee=function(){St||(St=!0,oe("%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)",j))};ee.isReactWarning=!0,Object.defineProperty(C,"ref",{get:ee,configurable:!0})}function At(C){if(typeof C.ref=="string"&&I.current&&C.__self&&I.current.stateNode!==C.__self){var j=vt(I.current.type);yt[j]||(oe('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',j,C.ref),yt[j]=!0)}}var xe=function(C,j,ee,se,Te,et,He){var dt={$$typeof:i,type:C,key:j,ref:ee,props:He,_owner:et};return dt._store={},Object.defineProperty(dt._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(dt,"_self",{configurable:!1,enumerable:!1,writable:!1,value:se}),Object.defineProperty(dt,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Te}),Object.freeze&&(Object.freeze(dt.props),Object.freeze(dt)),dt};function _e(C,j,ee){var se,Te={},et=null,He=null,dt=null,Ut=null;if(j!=null){_t(j)&&(He=j.ref,At(j)),Ge(j)&&(Ot(j.key),et=""+j.key),dt=j.__self===void 0?null:j.__self,Ut=j.__source===void 0?null:j.__source;for(se in j)on.call(j,se)&&!un.hasOwnProperty(se)&&(Te[se]=j[se])}var bn=arguments.length-2;if(bn===1)Te.children=ee;else if(bn>1){for(var Rn=Array(bn),kn=0;kn<bn;kn++)Rn[kn]=arguments[kn+2];Object.freeze&&Object.freeze(Rn),Te.children=Rn}if(C&&C.defaultProps){var Ln=C.defaultProps;for(se in Ln)Te[se]===void 0&&(Te[se]=Ln[se])}if(et||He){var Xn=typeof C=="function"?C.displayName||C.name||"Unknown":C;et&&tt(Te,Xn),He&&Ft(Te,Xn)}return xe(C,et,He,dt,Ut,I.current,Te)}function Oe(C,j){var ee=xe(C.type,j,C.ref,C._self,C._source,C._owner,C.props);return ee}function Qe(C,j,ee){if(C==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+C+".");var se,Te=te({},C.props),et=C.key,He=C.ref,dt=C._self,Ut=C._source,bn=C._owner;if(j!=null){_t(j)&&(He=j.ref,bn=I.current),Ge(j)&&(Ot(j.key),et=""+j.key);var Rn;C.type&&C.type.defaultProps&&(Rn=C.type.defaultProps);for(se in j)on.call(j,se)&&!un.hasOwnProperty(se)&&(j[se]===void 0&&Rn!==void 0?Te[se]=Rn[se]:Te[se]=j[se])}var kn=arguments.length-2;if(kn===1)Te.children=ee;else if(kn>1){for(var Ln=Array(kn),Xn=0;Xn<kn;Xn++)Ln[Xn]=arguments[Xn+2];Te.children=Ln}return xe(C.type,et,He,dt,Ut,bn,Te)}function We(C){return typeof C=="object"&&C!==null&&C.$$typeof===i}var ot=".",Ue=":";function Vt(C){var j=/[=:]/g,ee={"=":"=0",":":"=2"},se=C.replace(j,function(Te){return ee[Te]});return"$"+se}var kt=!1,Cn=/\/+/g;function Ct(C){return C.replace(Cn,"$&/")}function Ze(C,j){return typeof C=="object"&&C!==null&&C.key!=null?(Ot(C.key),Vt(""+C.key)):j.toString(36)}function Kt(C,j,ee,se,Te){var et=typeof C;(et==="undefined"||et==="boolean")&&(C=null);var He=!1;if(C===null)He=!0;else switch(et){case"string":case"number":He=!0;break;case"object":switch(C.$$typeof){case i:case s:He=!0}}if(He){var dt=C,Ut=Te(dt),bn=se===""?ot+Ze(dt,0):se;if(ut(Ut)){var Rn="";bn!=null&&(Rn=Ct(bn)+"/"),Kt(Ut,j,Rn,"",function(Xg){return Xg})}else Ut!=null&&(We(Ut)&&(Ut.key&&(!dt||dt.key!==Ut.key)&&Ot(Ut.key),Ut=Oe(Ut,ee+(Ut.key&&(!dt||dt.key!==Ut.key)?Ct(""+Ut.key)+"/":"")+bn)),j.push(Ut));return 1}var kn,Ln,Xn=0,sn=se===""?ot:se+Ue;if(ut(C))for(var ss=0;ss<C.length;ss++)kn=C[ss],Ln=sn+Ze(kn,ss),Xn+=Kt(kn,j,ee,Ln,Te);else{var oc=_(C);if(typeof oc=="function"){var td=C;oc===td.entries&&(kt||we("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),kt=!0);for(var Gg=oc.call(td),bo,nd=0;!(bo=Gg.next()).done;)kn=bo.value,Ln=sn+Ze(kn,nd++),Xn+=Kt(kn,j,ee,Ln,Te)}else if(et==="object"){var rd=String(C);throw new Error("Objects are not valid as a React child (found: "+(rd==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":rd)+"). If you meant to render a collection of children, use an array instead.")}}return Xn}function Gt(C,j,ee){if(C==null)return C;var se=[],Te=0;return Kt(C,se,"","",function(et){return j.call(ee,et,Te++)}),se}function ir(C){var j=0;return Gt(C,function(){j++}),j}function In(C,j,ee){Gt(C,function(){j.apply(this,arguments)},ee)}function Bn(C){return Gt(C,function(j){return j})||[]}function Un(C){if(!We(C))throw new Error("React.Children.only expected to receive a single React element child.");return C}function dr(C){var j={$$typeof:m,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};j.Provider={$$typeof:h,_context:j};var ee=!1,se=!1,Te=!1;{var et={$$typeof:m,_context:j};Object.defineProperties(et,{Provider:{get:function(){return se||(se=!0,oe("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),j.Provider},set:function(He){j.Provider=He}},_currentValue:{get:function(){return j._currentValue},set:function(He){j._currentValue=He}},_currentValue2:{get:function(){return j._currentValue2},set:function(He){j._currentValue2=He}},_threadCount:{get:function(){return j._threadCount},set:function(He){j._threadCount=He}},Consumer:{get:function(){return ee||(ee=!0,oe("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),j.Consumer}},displayName:{get:function(){return j.displayName},set:function(He){Te||(we("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",He),Te=!0)}}}),j.Consumer=et}return j._currentRenderer=null,j._currentRenderer2=null,j}var Lt=-1,Jn=0,Pn=1,jn=2;function er(C){if(C._status===Lt){var j=C._result,ee=j();if(ee.then(function(et){if(C._status===Jn||C._status===Lt){var He=C;He._status=Pn,He._result=et}},function(et){if(C._status===Jn||C._status===Lt){var He=C;He._status=jn,He._result=et}}),C._status===Lt){var se=C;se._status=Jn,se._result=ee}}if(C._status===Pn){var Te=C._result;return Te===void 0&&oe(`lazy: Expected the result of a dynamic import() call. Instead received: %s
10
-
11
- Your code should look like:
12
- const MyComponent = lazy(() => import('./MyComponent'))
13
-
14
- Did you accidentally put curly braces around the import?`,Te),"default"in Te||oe(`lazy: Expected the result of a dynamic import() call. Instead received: %s
15
-
16
- Your code should look like:
17
- const MyComponent = lazy(() => import('./MyComponent'))`,Te),Te.default}else throw C._result}function z(C){var j={_status:Lt,_result:C},ee={$$typeof:R,_payload:j,_init:er};{var se,Te;Object.defineProperties(ee,{defaultProps:{configurable:!0,get:function(){return se},set:function(et){oe("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."),se=et,Object.defineProperty(ee,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return Te},set:function(et){oe("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."),Te=et,Object.defineProperty(ee,"propTypes",{enumerable:!0})}}})}return ee}function ye(C){C!=null&&C.$$typeof===S?oe("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof C!="function"?oe("forwardRef requires a render function but was given %s.",C===null?"null":typeof C):C.length!==0&&C.length!==2&&oe("forwardRef render functions accept exactly two parameters: props and ref. %s",C.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),C!=null&&(C.defaultProps!=null||C.propTypes!=null)&&oe("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var j={$$typeof:v,render:C};{var ee;Object.defineProperty(j,"displayName",{enumerable:!1,configurable:!0,get:function(){return ee},set:function(se){ee=se,!C.name&&!C.displayName&&(C.displayName=se)}})}return j}var ke;ke=Symbol.for("react.module.reference");function M(C){return!!(typeof C=="string"||typeof C=="function"||C===u||C===f||ue||C===c||C===y||C===x||q||C===E||re||de||Ke||typeof C=="object"&&C!==null&&(C.$$typeof===R||C.$$typeof===S||C.$$typeof===h||C.$$typeof===m||C.$$typeof===v||C.$$typeof===ke||C.getModuleId!==void 0))}function ce(C,j){M(C)||oe("memo: The first argument must be a component. Instead received: %s",C===null?"null":typeof C);var ee={$$typeof:S,type:C,compare:j===void 0?null:j};{var se;Object.defineProperty(ee,"displayName",{enumerable:!1,configurable:!0,get:function(){return se},set:function(Te){se=Te,!C.name&&!C.displayName&&(C.displayName=Te)}})}return ee}function me(){var C=N.current;return C===null&&oe(`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:
18
- 1. You might have mismatching versions of React and the renderer (such as React DOM)
19
- 2. You might be breaking the Rules of Hooks
20
- 3. You might have more than one copy of React in the same app
21
- See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),C}function Re(C){var j=me();if(C._context!==void 0){var ee=C._context;ee.Consumer===C?oe("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?"):ee.Provider===C&&oe("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return j.useContext(C)}function De(C){var j=me();return j.useState(C)}function at(C,j,ee){var se=me();return se.useReducer(C,j,ee)}function je(C){var j=me();return j.useRef(C)}function qe(C,j){var ee=me();return ee.useEffect(C,j)}function tn(C,j){var ee=me();return ee.useInsertionEffect(C,j)}function Qt(C,j){var ee=me();return ee.useLayoutEffect(C,j)}function nn(C,j){var ee=me();return ee.useCallback(C,j)}function Zt(C,j){var ee=me();return ee.useMemo(C,j)}function Vr(C,j,ee){var se=me();return se.useImperativeHandle(C,j,ee)}function fr(C,j){{var ee=me();return ee.useDebugValue(C,j)}}function Vn(){var C=me();return C.useTransition()}function ta(C){var j=me();return j.useDeferredValue(C)}function Rt(){var C=me();return C.useId()}function Ha(C,j,ee){var se=me();return se.useSyncExternalStore(C,j,ee)}var Ni=0,Ws,Ys,ts,qs,Gs,Xs,Ks;function ec(){}ec.__reactDisabledLog=!0;function Zu(){{if(Ni===0){Ws=console.log,Ys=console.info,ts=console.warn,qs=console.error,Gs=console.group,Xs=console.groupCollapsed,Ks=console.groupEnd;var C={configurable:!0,enumerable:!0,value:ec,writable:!0};Object.defineProperties(console,{info:C,log:C,warn:C,error:C,group:C,groupCollapsed:C,groupEnd:C})}Ni++}}function Qs(){{if(Ni--,Ni===0){var C={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:te({},C,{value:Ws}),info:te({},C,{value:Ys}),warn:te({},C,{value:ts}),error:te({},C,{value:qs}),group:te({},C,{value:Gs}),groupCollapsed:te({},C,{value:Xs}),groupEnd:te({},C,{value:Ks})})}Ni<0&&oe("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var mo=Ee.ReactCurrentDispatcher,va;function Pi(C,j,ee){{if(va===void 0)try{throw Error()}catch(Te){var se=Te.stack.trim().match(/\n( *(at )?)/);va=se&&se[1]||""}return`
22
- `+va+C}}var Aa=!1,ji;{var Zs=typeof WeakMap=="function"?WeakMap:Map;ji=new Zs}function tc(C,j){if(!C||Aa)return"";{var ee=ji.get(C);if(ee!==void 0)return ee}var se;Aa=!0;var Te=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var et;et=mo.current,mo.current=null,Zu();try{if(j){var He=function(){throw Error()};if(Object.defineProperty(He.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(He,[])}catch(sn){se=sn}Reflect.construct(C,[],He)}else{try{He.call()}catch(sn){se=sn}C.call(He.prototype)}}else{try{throw Error()}catch(sn){se=sn}C()}}catch(sn){if(sn&&se&&typeof sn.stack=="string"){for(var dt=sn.stack.split(`
23
- `),Ut=se.stack.split(`
24
- `),bn=dt.length-1,Rn=Ut.length-1;bn>=1&&Rn>=0&&dt[bn]!==Ut[Rn];)Rn--;for(;bn>=1&&Rn>=0;bn--,Rn--)if(dt[bn]!==Ut[Rn]){if(bn!==1||Rn!==1)do if(bn--,Rn--,Rn<0||dt[bn]!==Ut[Rn]){var kn=`
25
- `+dt[bn].replace(" at new "," at ");return C.displayName&&kn.includes("<anonymous>")&&(kn=kn.replace("<anonymous>",C.displayName)),typeof C=="function"&&ji.set(C,kn),kn}while(bn>=1&&Rn>=0);break}}}finally{Aa=!1,mo.current=et,Qs(),Error.prepareStackTrace=Te}var Ln=C?C.displayName||C.name:"",Xn=Ln?Pi(Ln):"";return typeof C=="function"&&ji.set(C,Xn),Xn}function ns(C,j,ee){return tc(C,!1)}function Ju(C){var j=C.prototype;return!!(j&&j.isReactComponent)}function Li(C,j,ee){if(C==null)return"";if(typeof C=="function")return tc(C,Ju(C));if(typeof C=="string")return Pi(C);switch(C){case y:return Pi("Suspense");case x:return Pi("SuspenseList")}if(typeof C=="object")switch(C.$$typeof){case v:return ns(C.render);case S:return Li(C.type,j,ee);case R:{var se=C,Te=se._payload,et=se._init;try{return Li(et(Te),j,ee)}catch{}}}return""}var nc={},rs=Ee.ReactDebugCurrentFrame;function as(C){if(C){var j=C._owner,ee=Li(C.type,C._source,j?j.type:null);rs.setExtraStackFrame(ee)}else rs.setExtraStackFrame(null)}function rc(C,j,ee,se,Te){{var et=Function.call.bind(on);for(var He in C)if(et(C,He)){var dt=void 0;try{if(typeof C[He]!="function"){var Ut=Error((se||"React class")+": "+ee+" type `"+He+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof C[He]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Ut.name="Invariant Violation",Ut}dt=C[He](j,He,se,ee,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(bn){dt=bn}dt&&!(dt instanceof Error)&&(as(Te),oe("%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).",se||"React class",ee,He,typeof dt),as(null)),dt instanceof Error&&!(dt.message in nc)&&(nc[dt.message]=!0,as(Te),oe("Failed %s type: %s",ee,dt.message),as(null))}}}function Bt(C){if(C){var j=C._owner,ee=Li(C.type,C._source,j?j.type:null);le(ee)}else le(null)}var vo;vo=!1;function Js(){if(I.current){var C=vt(I.current.type);if(C)return`
26
-
27
- Check the render method of \``+C+"`."}return""}function Tt(C){if(C!==void 0){var j=C.fileName.replace(/^.*[\\\/]/,""),ee=C.lineNumber;return`
28
-
29
- Check your code at `+j+":"+ee+"."}return""}function ac(C){return C!=null?Tt(C.__source):""}var tr={};function di(C){var j=Js();if(!j){var ee=typeof C=="string"?C:C.displayName||C.name;ee&&(j=`
30
-
31
- Check the top-level render call using <`+ee+">.")}return j}function Wa(C,j){if(!(!C._store||C._store.validated||C.key!=null)){C._store.validated=!0;var ee=di(j);if(!tr[ee]){tr[ee]=!0;var se="";C&&C._owner&&C._owner!==I.current&&(se=" It was passed a child from "+vt(C._owner.type)+"."),Bt(C),oe('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',ee,se),Bt(null)}}}function is(C,j){if(typeof C=="object"){if(ut(C))for(var ee=0;ee<C.length;ee++){var se=C[ee];We(se)&&Wa(se,j)}else if(We(C))C._store&&(C._store.validated=!0);else if(C){var Te=_(C);if(typeof Te=="function"&&Te!==C.entries)for(var et=Te.call(C),He;!(He=et.next()).done;)We(He.value)&&Wa(He.value,j)}}}function or(C){{var j=C.type;if(j==null||typeof j=="string")return;var ee;if(typeof j=="function")ee=j.propTypes;else if(typeof j=="object"&&(j.$$typeof===v||j.$$typeof===S))ee=j.propTypes;else return;if(ee){var se=vt(j);rc(ee,C.props,"prop",se,C)}else if(j.PropTypes!==void 0&&!vo){vo=!0;var Te=vt(j);oe("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Te||"Unknown")}typeof j.getDefaultProps=="function"&&!j.getDefaultProps.isReactClassApproved&&oe("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function On(C){{for(var j=Object.keys(C.props),ee=0;ee<j.length;ee++){var se=j[ee];if(se!=="children"&&se!=="key"){Bt(C),oe("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",se),Bt(null);break}}C.ref!==null&&(Bt(C),oe("Invalid attribute `ref` supplied to `React.Fragment`."),Bt(null))}}function os(C,j,ee){var se=M(C);if(!se){var Te="";(C===void 0||typeof C=="object"&&C!==null&&Object.keys(C).length===0)&&(Te+=" 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 et=ac(j);et?Te+=et:Te+=Js();var He;C===null?He="null":ut(C)?He="array":C!==void 0&&C.$$typeof===i?(He="<"+(vt(C.type)||"Unknown")+" />",Te=" Did you accidentally export a JSX literal instead of a component?"):He=typeof C,oe("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",He,Te)}var dt=_e.apply(this,arguments);if(dt==null)return dt;if(se)for(var Ut=2;Ut<arguments.length;Ut++)is(arguments[Ut],C);return C===u?On(dt):or(dt),dt}var Br=!1;function Gn(C){var j=os.bind(null,C);return j.type=C,Br||(Br=!0,we("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(j,"type",{enumerable:!1,get:function(){return we("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:C}),C}}),j}function Ur(C,j,ee){for(var se=Qe.apply(this,arguments),Te=2;Te<arguments.length;Te++)is(arguments[Te],se.type);return or(se),se}function ed(C,j){var ee=$.transition;$.transition={};var se=$.transition;$.transition._updatedFibers=new Set;try{C()}finally{if($.transition=ee,ee===null&&se._updatedFibers){var Te=se._updatedFibers.size;Te>10&&we("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."),se._updatedFibers.clear()}}}var go=!1,yo=null;function el(C){if(yo===null)try{var j=("require"+Math.random()).slice(0,7),ee=e&&e[j];yo=ee.call(e,"timers").setImmediate}catch{yo=function(Te){go===!1&&(go=!0,typeof MessageChannel>"u"&&oe("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 et=new MessageChannel;et.port1.onmessage=Te,et.port2.postMessage(void 0)}}return yo(C)}var $i=0,ic=!1;function tl(C){{var j=$i;$i++,L.current===null&&(L.current=[]);var ee=L.isBatchingLegacy,se;try{if(L.isBatchingLegacy=!0,se=C(),!ee&&L.didScheduleLegacyUpdate){var Te=L.current;Te!==null&&(L.didScheduleLegacyUpdate=!1,ae(Te))}}catch(Ln){throw fi(j),Ln}finally{L.isBatchingLegacy=ee}if(se!==null&&typeof se=="object"&&typeof se.then=="function"){var et=se,He=!1,dt={then:function(Ln,Xn){He=!0,et.then(function(sn){fi(j),$i===0?P(sn,Ln,Xn):Ln(sn)},function(sn){fi(j),Xn(sn)})}};return!ic&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){He||(ic=!0,oe("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 () => ...);"))}),dt}else{var Ut=se;if(fi(j),$i===0){var bn=L.current;bn!==null&&(ae(bn),L.current=null);var Rn={then:function(Ln,Xn){L.current===null?(L.current=[],P(Ut,Ln,Xn)):Ln(Ut)}};return Rn}else{var kn={then:function(Ln,Xn){Ln(Ut)}};return kn}}}}function fi(C){C!==$i-1&&oe("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),$i=C}function P(C,j,ee){{var se=L.current;if(se!==null)try{ae(se),el(function(){se.length===0?(L.current=null,j(C)):P(C,j,ee)})}catch(Te){ee(Te)}else j(C)}}var V=!1;function ae(C){if(!V){V=!0;var j=0;try{for(;j<C.length;j++){var ee=C[j];do ee=ee(!0);while(ee!==null)}C.length=0}catch(se){throw C=C.slice(j+1),se}finally{V=!1}}}var Ie=os,$t=Ur,dn=Gn,Tn={map:Gt,forEach:In,count:ir,toArray:Bn,only:Un};t.Children=Tn,t.Component=Me,t.Fragment=u,t.Profiler=f,t.PureComponent=gt,t.StrictMode=c,t.Suspense=y,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ee,t.act=tl,t.cloneElement=$t,t.createContext=dr,t.createElement=Ie,t.createFactory=dn,t.createRef=jt,t.forwardRef=ye,t.isValidElement=We,t.lazy=z,t.memo=ce,t.startTransition=ed,t.unstable_act=tl,t.useCallback=nn,t.useContext=Re,t.useDebugValue=fr,t.useDeferredValue=ta,t.useEffect=qe,t.useId=Rt,t.useImperativeHandle=Vr,t.useInsertionEffect=tn,t.useLayoutEffect=Qt,t.useMemo=Zt,t.useReducer=at,t.useRef=je,t.useState=De,t.useSyncExternalStore=Ha,t.useTransition=Vn,t.version=a,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()})(Hv,Hv.exports);var o3=Hv.exports;mM.exports=o3;var w=mM.exports;const hn=mg(w),YD=i3({__proto__:null,default:hn},[w]);/**
32
- * @license React
33
- * react-jsx-dev-runtime.development.js
34
- *
35
- * Copyright (c) Facebook, Inc. and its affiliates.
36
- *
37
- * This source code is licensed under the MIT license found in the
38
- * LICENSE file in the root directory of this source tree.
39
- */(function(){var e=w,t=Symbol.for("react.element"),a=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),f=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),S=Symbol.for("react.offscreen"),R=Symbol.iterator,E="@@iterator";function k(z){if(z===null||typeof z!="object")return null;var ye=R&&z[R]||z[E];return typeof ye=="function"?ye:null}var O=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function _(z){{for(var ye=arguments.length,ke=new Array(ye>1?ye-1:0),M=1;M<ye;M++)ke[M-1]=arguments[M];N("error",z,ke)}}function N(z,ye,ke){{var M=O.ReactDebugCurrentFrame,ce=M.getStackAddendum();ce!==""&&(ye+="%s",ke=ke.concat([ce]));var me=ke.map(function(Re){return String(Re)});me.unshift("Warning: "+ye),Function.prototype.apply.call(console[z],console,me)}}var $=!1,L=!1,I=!1,F=!1,Q=!1,le;le=Symbol.for("react.module.reference");function re(z){return!!(typeof z=="string"||typeof z=="function"||z===i||z===u||Q||z===s||z===m||z===v||F||z===S||$||L||I||typeof z=="object"&&z!==null&&(z.$$typeof===x||z.$$typeof===y||z.$$typeof===c||z.$$typeof===f||z.$$typeof===h||z.$$typeof===le||z.getModuleId!==void 0))}function de(z,ye,ke){var M=z.displayName;if(M)return M;var ce=ye.displayName||ye.name||"";return ce!==""?ke+"("+ce+")":ke}function Ke(z){return z.displayName||"Context"}function q(z){if(z==null)return null;if(typeof z.tag=="number"&&_("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof z=="function")return z.displayName||z.name||null;if(typeof z=="string")return z;switch(z){case i:return"Fragment";case a:return"Portal";case u:return"Profiler";case s:return"StrictMode";case m:return"Suspense";case v:return"SuspenseList"}if(typeof z=="object")switch(z.$$typeof){case f:var ye=z;return Ke(ye)+".Consumer";case c:var ke=z;return Ke(ke._context)+".Provider";case h:return de(z,z.render,"ForwardRef");case y:var M=z.displayName||null;return M!==null?M:q(z.type)||"Memo";case x:{var ce=z,me=ce._payload,Re=ce._init;try{return q(Re(me))}catch{return null}}}return null}var ue=Object.assign,Ee=0,we,oe,K,Y,G,ve,te;function pe(){}pe.__reactDisabledLog=!0;function Me(){{if(Ee===0){we=console.log,oe=console.info,K=console.warn,Y=console.error,G=console.group,ve=console.groupCollapsed,te=console.groupEnd;var z={configurable:!0,enumerable:!0,value:pe,writable:!0};Object.defineProperties(console,{info:z,log:z,warn:z,error:z,group:z,groupCollapsed:z,groupEnd:z})}Ee++}}function Ne(){{if(Ee--,Ee===0){var z={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ue({},z,{value:we}),info:ue({},z,{value:oe}),warn:ue({},z,{value:K}),error:ue({},z,{value:Y}),group:ue({},z,{value:G}),groupCollapsed:ue({},z,{value:ve}),groupEnd:ue({},z,{value:te})})}Ee<0&&_("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Pe=O.ReactCurrentDispatcher,ht;function mt(z,ye,ke){{if(ht===void 0)try{throw Error()}catch(ce){var M=ce.stack.trim().match(/\n( *(at )?)/);ht=M&&M[1]||""}return`
40
- `+ht+z}}var gt=!1,it;{var jt=typeof WeakMap=="function"?WeakMap:Map;it=new jt}function be(z,ye){if(!z||gt)return"";{var ke=it.get(z);if(ke!==void 0)return ke}var M;gt=!0;var ce=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var me;me=Pe.current,Pe.current=null,Me();try{if(ye){var Re=function(){throw Error()};if(Object.defineProperty(Re.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Re,[])}catch(Zt){M=Zt}Reflect.construct(z,[],Re)}else{try{Re.call()}catch(Zt){M=Zt}z.call(Re.prototype)}}else{try{throw Error()}catch(Zt){M=Zt}z()}}catch(Zt){if(Zt&&M&&typeof Zt.stack=="string"){for(var De=Zt.stack.split(`
41
- `),at=M.stack.split(`
42
- `),je=De.length-1,qe=at.length-1;je>=1&&qe>=0&&De[je]!==at[qe];)qe--;for(;je>=1&&qe>=0;je--,qe--)if(De[je]!==at[qe]){if(je!==1||qe!==1)do if(je--,qe--,qe<0||De[je]!==at[qe]){var tn=`
43
- `+De[je].replace(" at new "," at ");return z.displayName&&tn.includes("<anonymous>")&&(tn=tn.replace("<anonymous>",z.displayName)),typeof z=="function"&&it.set(z,tn),tn}while(je>=1&&qe>=0);break}}}finally{gt=!1,Pe.current=me,Ne(),Error.prepareStackTrace=ce}var Qt=z?z.displayName||z.name:"",nn=Qt?mt(Qt):"";return typeof z=="function"&&it.set(z,nn),nn}function ut(z,ye,ke){return be(z,!1)}function Et(z){var ye=z.prototype;return!!(ye&&ye.isReactComponent)}function Nt(z,ye,ke){if(z==null)return"";if(typeof z=="function")return be(z,Et(z));if(typeof z=="string")return mt(z);switch(z){case m:return mt("Suspense");case v:return mt("SuspenseList")}if(typeof z=="object")switch(z.$$typeof){case h:return ut(z.render);case y:return Nt(z.type,ye,ke);case x:{var M=z,ce=M._payload,me=M._init;try{return Nt(me(ce),ye,ke)}catch{}}}return""}var Pt=Object.prototype.hasOwnProperty,Ot={},cn=O.ReactDebugCurrentFrame;function en(z){if(z){var ye=z._owner,ke=Nt(z.type,z._source,ye?ye.type:null);cn.setExtraStackFrame(ke)}else cn.setExtraStackFrame(null)}function vt(z,ye,ke,M,ce){{var me=Function.call.bind(Pt);for(var Re in z)if(me(z,Re)){var De=void 0;try{if(typeof z[Re]!="function"){var at=Error((M||"React class")+": "+ke+" type `"+Re+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof z[Re]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw at.name="Invariant Violation",at}De=z[Re](ye,Re,M,ke,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(je){De=je}De&&!(De instanceof Error)&&(en(ce),_("%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).",M||"React class",ke,Re,typeof De),en(null)),De instanceof Error&&!(De.message in Ot)&&(Ot[De.message]=!0,en(ce),_("Failed %s type: %s",ke,De.message),en(null))}}}var on=Array.isArray;function un(z){return on(z)}function $e(z){{var ye=typeof Symbol=="function"&&Symbol.toStringTag,ke=ye&&z[Symbol.toStringTag]||z.constructor.name||"Object";return ke}}function St(z){try{return yt(z),!1}catch{return!0}}function yt(z){return""+z}function _t(z){if(St(z))return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",$e(z)),yt(z)}var Ge=O.ReactCurrentOwner,tt={key:!0,ref:!0,__self:!0,__source:!0},Ft,At,xe;xe={};function _e(z){if(Pt.call(z,"ref")){var ye=Object.getOwnPropertyDescriptor(z,"ref").get;if(ye&&ye.isReactWarning)return!1}return z.ref!==void 0}function Oe(z){if(Pt.call(z,"key")){var ye=Object.getOwnPropertyDescriptor(z,"key").get;if(ye&&ye.isReactWarning)return!1}return z.key!==void 0}function Qe(z,ye){if(typeof z.ref=="string"&&Ge.current&&ye&&Ge.current.stateNode!==ye){var ke=q(Ge.current.type);xe[ke]||(_('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',q(Ge.current.type),z.ref),xe[ke]=!0)}}function We(z,ye){{var ke=function(){Ft||(Ft=!0,_("%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)",ye))};ke.isReactWarning=!0,Object.defineProperty(z,"key",{get:ke,configurable:!0})}}function ot(z,ye){{var ke=function(){At||(At=!0,_("%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)",ye))};ke.isReactWarning=!0,Object.defineProperty(z,"ref",{get:ke,configurable:!0})}}var Ue=function(z,ye,ke,M,ce,me,Re){var De={$$typeof:t,type:z,key:ye,ref:ke,props:Re,_owner:me};return De._store={},Object.defineProperty(De._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(De,"_self",{configurable:!1,enumerable:!1,writable:!1,value:M}),Object.defineProperty(De,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ce}),Object.freeze&&(Object.freeze(De.props),Object.freeze(De)),De};function Vt(z,ye,ke,M,ce){{var me,Re={},De=null,at=null;ke!==void 0&&(_t(ke),De=""+ke),Oe(ye)&&(_t(ye.key),De=""+ye.key),_e(ye)&&(at=ye.ref,Qe(ye,ce));for(me in ye)Pt.call(ye,me)&&!tt.hasOwnProperty(me)&&(Re[me]=ye[me]);if(z&&z.defaultProps){var je=z.defaultProps;for(me in je)Re[me]===void 0&&(Re[me]=je[me])}if(De||at){var qe=typeof z=="function"?z.displayName||z.name||"Unknown":z;De&&We(Re,qe),at&&ot(Re,qe)}return Ue(z,De,at,ce,M,Ge.current,Re)}}var kt=O.ReactCurrentOwner,Cn=O.ReactDebugCurrentFrame;function Ct(z){if(z){var ye=z._owner,ke=Nt(z.type,z._source,ye?ye.type:null);Cn.setExtraStackFrame(ke)}else Cn.setExtraStackFrame(null)}var Ze;Ze=!1;function Kt(z){return typeof z=="object"&&z!==null&&z.$$typeof===t}function Gt(){{if(kt.current){var z=q(kt.current.type);if(z)return`
44
-
45
- Check the render method of \``+z+"`."}return""}}function ir(z){{if(z!==void 0){var ye=z.fileName.replace(/^.*[\\\/]/,""),ke=z.lineNumber;return`
46
-
47
- Check your code at `+ye+":"+ke+"."}return""}}var In={};function Bn(z){{var ye=Gt();if(!ye){var ke=typeof z=="string"?z:z.displayName||z.name;ke&&(ye=`
48
-
49
- Check the top-level render call using <`+ke+">.")}return ye}}function Un(z,ye){{if(!z._store||z._store.validated||z.key!=null)return;z._store.validated=!0;var ke=Bn(ye);if(In[ke])return;In[ke]=!0;var M="";z&&z._owner&&z._owner!==kt.current&&(M=" It was passed a child from "+q(z._owner.type)+"."),Ct(z),_('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',ke,M),Ct(null)}}function dr(z,ye){{if(typeof z!="object")return;if(un(z))for(var ke=0;ke<z.length;ke++){var M=z[ke];Kt(M)&&Un(M,ye)}else if(Kt(z))z._store&&(z._store.validated=!0);else if(z){var ce=k(z);if(typeof ce=="function"&&ce!==z.entries)for(var me=ce.call(z),Re;!(Re=me.next()).done;)Kt(Re.value)&&Un(Re.value,ye)}}}function Lt(z){{var ye=z.type;if(ye==null||typeof ye=="string")return;var ke;if(typeof ye=="function")ke=ye.propTypes;else if(typeof ye=="object"&&(ye.$$typeof===h||ye.$$typeof===y))ke=ye.propTypes;else return;if(ke){var M=q(ye);vt(ke,z.props,"prop",M,z)}else if(ye.PropTypes!==void 0&&!Ze){Ze=!0;var ce=q(ye);_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ce||"Unknown")}typeof ye.getDefaultProps=="function"&&!ye.getDefaultProps.isReactClassApproved&&_("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Jn(z){{for(var ye=Object.keys(z.props),ke=0;ke<ye.length;ke++){var M=ye[ke];if(M!=="children"&&M!=="key"){Ct(z),_("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",M),Ct(null);break}}z.ref!==null&&(Ct(z),_("Invalid attribute `ref` supplied to `React.Fragment`."),Ct(null))}}var Pn={};function jn(z,ye,ke,M,ce,me){{var Re=re(z);if(!Re){var De="";(z===void 0||typeof z=="object"&&z!==null&&Object.keys(z).length===0)&&(De+=" 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 at=ir(ce);at?De+=at:De+=Gt();var je;z===null?je="null":un(z)?je="array":z!==void 0&&z.$$typeof===t?(je="<"+(q(z.type)||"Unknown")+" />",De=" Did you accidentally export a JSX literal instead of a component?"):je=typeof z,_("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",je,De)}var qe=Vt(z,ye,ke,ce,me);if(qe==null)return qe;if(Re){var tn=ye.children;if(tn!==void 0)if(M)if(un(tn)){for(var Qt=0;Qt<tn.length;Qt++)dr(tn[Qt],z);Object.freeze&&Object.freeze(tn)}else _("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 dr(tn,z)}if(Pt.call(ye,"key")){var nn=q(z),Zt=Object.keys(ye).filter(function(Vn){return Vn!=="key"}),Vr=Zt.length>0?"{key: someKey, "+Zt.join(": ..., ")+": ...}":"{key: someKey}";if(!Pn[nn+Vr]){var fr=Zt.length>0?"{"+Zt.join(": ..., ")+": ...}":"{}";_(`A props object containing a "key" prop is being spread into JSX:
50
- let props = %s;
51
- <%s {...props} />
52
- React keys must be passed directly to JSX without using spread:
53
- let props = %s;
54
- <%s key={someKey} {...props} />`,Vr,nn,fr,nn),Pn[nn+Vr]=!0}}return z===i?Jn(qe):Lt(qe),qe}}var er=jn;qS.Fragment=i,qS.jsxDEV=er})();pM.exports=qS;var H=pM.exports,GS={},vM={exports:{}},Fa={},gM={exports:{}},yM={};/**
55
- * @license React
56
- * scheduler.development.js
57
- *
58
- * Copyright (c) Facebook, Inc. and its affiliates.
59
- *
60
- * This source code is licensed under the MIT license found in the
61
- * LICENSE file in the root directory of this source tree.
62
- */(function(e){(function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var t=!1,a=!1,i=5;function s(xe,_e){var Oe=xe.length;xe.push(_e),f(xe,_e,Oe)}function u(xe){return xe.length===0?null:xe[0]}function c(xe){if(xe.length===0)return null;var _e=xe[0],Oe=xe.pop();return Oe!==_e&&(xe[0]=Oe,h(xe,Oe,0)),_e}function f(xe,_e,Oe){for(var Qe=Oe;Qe>0;){var We=Qe-1>>>1,ot=xe[We];if(m(ot,_e)>0)xe[We]=_e,xe[Qe]=ot,Qe=We;else return}}function h(xe,_e,Oe){for(var Qe=Oe,We=xe.length,ot=We>>>1;Qe<ot;){var Ue=(Qe+1)*2-1,Vt=xe[Ue],kt=Ue+1,Cn=xe[kt];if(m(Vt,_e)<0)kt<We&&m(Cn,Vt)<0?(xe[Qe]=Cn,xe[kt]=_e,Qe=kt):(xe[Qe]=Vt,xe[Ue]=_e,Qe=Ue);else if(kt<We&&m(Cn,_e)<0)xe[Qe]=Cn,xe[kt]=_e,Qe=kt;else return}}function m(xe,_e){var Oe=xe.sortIndex-_e.sortIndex;return Oe!==0?Oe:xe.id-_e.id}var v=1,y=2,x=3,S=4,R=5;function E(xe,_e){}var k=typeof performance=="object"&&typeof performance.now=="function";if(k){var O=performance;e.unstable_now=function(){return O.now()}}else{var _=Date,N=_.now();e.unstable_now=function(){return _.now()-N}}var $=1073741823,L=-1,I=250,F=5e3,Q=1e4,le=$,re=[],de=[],Ke=1,q=null,ue=x,Ee=!1,we=!1,oe=!1,K=typeof setTimeout=="function"?setTimeout:null,Y=typeof clearTimeout=="function"?clearTimeout:null,G=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function ve(xe){for(var _e=u(de);_e!==null;){if(_e.callback===null)c(de);else if(_e.startTime<=xe)c(de),_e.sortIndex=_e.expirationTime,s(re,_e);else return;_e=u(de)}}function te(xe){if(oe=!1,ve(xe),!we)if(u(re)!==null)we=!0,_t(pe);else{var _e=u(de);_e!==null&&Ge(te,_e.startTime-xe)}}function pe(xe,_e){we=!1,oe&&(oe=!1,tt()),Ee=!0;var Oe=ue;try{var Qe;if(!a)return Me(xe,_e)}finally{q=null,ue=Oe,Ee=!1}}function Me(xe,_e){var Oe=_e;for(ve(Oe),q=u(re);q!==null&&!t&&!(q.expirationTime>Oe&&(!xe||en()));){var Qe=q.callback;if(typeof Qe=="function"){q.callback=null,ue=q.priorityLevel;var We=q.expirationTime<=Oe,ot=Qe(We);Oe=e.unstable_now(),typeof ot=="function"?q.callback=ot:q===u(re)&&c(re),ve(Oe)}else c(re);q=u(re)}if(q!==null)return!0;var Ue=u(de);return Ue!==null&&Ge(te,Ue.startTime-Oe),!1}function Ne(xe,_e){switch(xe){case v:case y:case x:case S:case R:break;default:xe=x}var Oe=ue;ue=xe;try{return _e()}finally{ue=Oe}}function Pe(xe){var _e;switch(ue){case v:case y:case x:_e=x;break;default:_e=ue;break}var Oe=ue;ue=_e;try{return xe()}finally{ue=Oe}}function ht(xe){var _e=ue;return function(){var Oe=ue;ue=_e;try{return xe.apply(this,arguments)}finally{ue=Oe}}}function mt(xe,_e,Oe){var Qe=e.unstable_now(),We;if(typeof Oe=="object"&&Oe!==null){var ot=Oe.delay;typeof ot=="number"&&ot>0?We=Qe+ot:We=Qe}else We=Qe;var Ue;switch(xe){case v:Ue=L;break;case y:Ue=I;break;case R:Ue=le;break;case S:Ue=Q;break;case x:default:Ue=F;break}var Vt=We+Ue,kt={id:Ke++,callback:_e,priorityLevel:xe,startTime:We,expirationTime:Vt,sortIndex:-1};return We>Qe?(kt.sortIndex=We,s(de,kt),u(re)===null&&kt===u(de)&&(oe?tt():oe=!0,Ge(te,We-Qe))):(kt.sortIndex=Vt,s(re,kt),!we&&!Ee&&(we=!0,_t(pe))),kt}function gt(){}function it(){!we&&!Ee&&(we=!0,_t(pe))}function jt(){return u(re)}function be(xe){xe.callback=null}function ut(){return ue}var Et=!1,Nt=null,Pt=-1,Ot=i,cn=-1;function en(){var xe=e.unstable_now()-cn;return!(xe<Ot)}function vt(){}function on(xe){if(xe<0||xe>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}xe>0?Ot=Math.floor(1e3/xe):Ot=i}var un=function(){if(Nt!==null){var xe=e.unstable_now();cn=xe;var _e=!0,Oe=!0;try{Oe=Nt(_e,xe)}finally{Oe?$e():(Et=!1,Nt=null)}}else Et=!1},$e;if(typeof G=="function")$e=function(){G(un)};else if(typeof MessageChannel<"u"){var St=new MessageChannel,yt=St.port2;St.port1.onmessage=un,$e=function(){yt.postMessage(null)}}else $e=function(){K(un,0)};function _t(xe){Nt=xe,Et||(Et=!0,$e())}function Ge(xe,_e){Pt=K(function(){xe(e.unstable_now())},_e)}function tt(){Y(Pt),Pt=-1}var Ft=vt,At=null;e.unstable_IdlePriority=R,e.unstable_ImmediatePriority=v,e.unstable_LowPriority=S,e.unstable_NormalPriority=x,e.unstable_Profiling=At,e.unstable_UserBlockingPriority=y,e.unstable_cancelCallback=be,e.unstable_continueExecution=it,e.unstable_forceFrameRate=on,e.unstable_getCurrentPriorityLevel=ut,e.unstable_getFirstCallbackNode=jt,e.unstable_next=Pe,e.unstable_pauseExecution=gt,e.unstable_requestPaint=Ft,e.unstable_runWithPriority=Ne,e.unstable_scheduleCallback=mt,e.unstable_shouldYield=en,e.unstable_wrapCallback=ht,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()})(yM);gM.exports=yM;var s3=gM.exports;/**
63
- * @license React
64
- * react-dom.development.js
65
- *
66
- * Copyright (c) Facebook, Inc. and its affiliates.
67
- *
68
- * This source code is licensed under the MIT license found in the
69
- * LICENSE file in the root directory of this source tree.
70
- */(function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=w,t=s3,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,i=!1;function s(n){i=n}function u(n){if(!i){for(var r=arguments.length,o=new Array(r>1?r-1:0),l=1;l<r;l++)o[l-1]=arguments[l];f("warn",n,o)}}function c(n){if(!i){for(var r=arguments.length,o=new Array(r>1?r-1:0),l=1;l<r;l++)o[l-1]=arguments[l];f("error",n,o)}}function f(n,r,o){{var l=a.ReactDebugCurrentFrame,d=l.getStackAddendum();d!==""&&(r+="%s",o=o.concat([d]));var p=o.map(function(g){return String(g)});p.unshift("Warning: "+r),Function.prototype.apply.call(console[n],console,p)}}var h=0,m=1,v=2,y=3,x=4,S=5,R=6,E=7,k=8,O=9,_=10,N=11,$=12,L=13,I=14,F=15,Q=16,le=17,re=18,de=19,Ke=21,q=22,ue=23,Ee=24,we=25,oe=!0,K=!1,Y=!1,G=!1,ve=!1,te=!0,pe=!1,Me=!0,Ne=!0,Pe=!0,ht=!0,mt=new Set,gt={},it={};function jt(n,r){be(n,r),be(n+"Capture",r)}function be(n,r){gt[n]&&c("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",n),gt[n]=r;{var o=n.toLowerCase();it[o]=n,n==="onDoubleClick"&&(it.ondblclick=n)}for(var l=0;l<r.length;l++)mt.add(r[l])}var ut=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Et=Object.prototype.hasOwnProperty;function Nt(n){{var r=typeof Symbol=="function"&&Symbol.toStringTag,o=r&&n[Symbol.toStringTag]||n.constructor.name||"Object";return o}}function Pt(n){try{return Ot(n),!1}catch{return!0}}function Ot(n){return""+n}function cn(n,r){if(Pt(n))return c("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",r,Nt(n)),Ot(n)}function en(n){if(Pt(n))return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Nt(n)),Ot(n)}function vt(n,r){if(Pt(n))return c("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",r,Nt(n)),Ot(n)}function on(n,r){if(Pt(n))return c("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",r,Nt(n)),Ot(n)}function un(n){if(Pt(n))return c("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",Nt(n)),Ot(n)}function $e(n){if(Pt(n))return c("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.",Nt(n)),Ot(n)}var St=0,yt=1,_t=2,Ge=3,tt=4,Ft=5,At=6,xe=":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",_e=xe+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Oe=new RegExp("^["+xe+"]["+_e+"]*$"),Qe={},We={};function ot(n){return Et.call(We,n)?!0:Et.call(Qe,n)?!1:Oe.test(n)?(We[n]=!0,!0):(Qe[n]=!0,c("Invalid attribute name: `%s`",n),!1)}function Ue(n,r,o){return r!==null?r.type===St:o?!1:n.length>2&&(n[0]==="o"||n[0]==="O")&&(n[1]==="n"||n[1]==="N")}function Vt(n,r,o,l){if(o!==null&&o.type===St)return!1;switch(typeof r){case"function":case"symbol":return!0;case"boolean":{if(l)return!1;if(o!==null)return!o.acceptsBooleans;var d=n.toLowerCase().slice(0,5);return d!=="data-"&&d!=="aria-"}default:return!1}}function kt(n,r,o,l){if(r===null||typeof r>"u"||Vt(n,r,o,l))return!0;if(l)return!1;if(o!==null)switch(o.type){case Ge:return!r;case tt:return r===!1;case Ft:return isNaN(r);case At:return isNaN(r)||r<1}return!1}function Cn(n){return Ze.hasOwnProperty(n)?Ze[n]:null}function Ct(n,r,o,l,d,p,g){this.acceptsBooleans=r===_t||r===Ge||r===tt,this.attributeName=l,this.attributeNamespace=d,this.mustUseProperty=o,this.propertyName=n,this.type=r,this.sanitizeURL=p,this.removeEmptyString=g}var Ze={},Kt=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];Kt.forEach(function(n){Ze[n]=new Ct(n,St,!1,n,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var r=n[0],o=n[1];Ze[r]=new Ct(r,yt,!1,o,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(n){Ze[n]=new Ct(n,_t,!1,n.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){Ze[n]=new Ct(n,_t,!1,n,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(n){Ze[n]=new Ct(n,Ge,!1,n.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(n){Ze[n]=new Ct(n,Ge,!0,n,null,!1,!1)}),["capture","download"].forEach(function(n){Ze[n]=new Ct(n,tt,!1,n,null,!1,!1)}),["cols","rows","size","span"].forEach(function(n){Ze[n]=new Ct(n,At,!1,n,null,!1,!1)}),["rowSpan","start"].forEach(function(n){Ze[n]=new Ct(n,Ft,!1,n.toLowerCase(),null,!1,!1)});var Gt=/[\-\:]([a-z])/g,ir=function(n){return n[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(n){var r=n.replace(Gt,ir);Ze[r]=new Ct(r,yt,!1,n,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(n){var r=n.replace(Gt,ir);Ze[r]=new Ct(r,yt,!1,n,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(n){var r=n.replace(Gt,ir);Ze[r]=new Ct(r,yt,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(n){Ze[n]=new Ct(n,yt,!1,n.toLowerCase(),null,!1,!1)});var In="xlinkHref";Ze[In]=new Ct("xlinkHref",yt,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(n){Ze[n]=new Ct(n,yt,!1,n.toLowerCase(),null,!0,!0)});var Bn=/^[\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,Un=!1;function dr(n){!Un&&Bn.test(n)&&(Un=!0,c("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(n)))}function Lt(n,r,o,l){if(l.mustUseProperty){var d=l.propertyName;return n[d]}else{cn(o,r),l.sanitizeURL&&dr(""+o);var p=l.attributeName,g=null;if(l.type===tt){if(n.hasAttribute(p)){var b=n.getAttribute(p);return b===""?!0:kt(r,o,l,!1)?b:b===""+o?o:b}}else if(n.hasAttribute(p)){if(kt(r,o,l,!1))return n.getAttribute(p);if(l.type===Ge)return o;g=n.getAttribute(p)}return kt(r,o,l,!1)?g===null?o:g:g===""+o?o:g}}function Jn(n,r,o,l){{if(!ot(r))return;if(!n.hasAttribute(r))return o===void 0?void 0:null;var d=n.getAttribute(r);return cn(o,r),d===""+o?o:d}}function Pn(n,r,o,l){var d=Cn(r);if(!Ue(r,d,l)){if(kt(r,o,d,l)&&(o=null),l||d===null){if(ot(r)){var p=r;o===null?n.removeAttribute(p):(cn(o,r),n.setAttribute(p,""+o))}return}var g=d.mustUseProperty;if(g){var b=d.propertyName;if(o===null){var T=d.type;n[b]=T===Ge?!1:""}else n[b]=o;return}var D=d.attributeName,A=d.attributeNamespace;if(o===null)n.removeAttribute(D);else{var U=d.type,B;U===Ge||U===tt&&o===!0?B="":(cn(o,D),B=""+o,d.sanitizeURL&&dr(B.toString())),A?n.setAttributeNS(A,D,B):n.setAttribute(D,B)}}}var jn=Symbol.for("react.element"),er=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),ye=Symbol.for("react.strict_mode"),ke=Symbol.for("react.profiler"),M=Symbol.for("react.provider"),ce=Symbol.for("react.context"),me=Symbol.for("react.forward_ref"),Re=Symbol.for("react.suspense"),De=Symbol.for("react.suspense_list"),at=Symbol.for("react.memo"),je=Symbol.for("react.lazy"),qe=Symbol.for("react.scope"),tn=Symbol.for("react.debug_trace_mode"),Qt=Symbol.for("react.offscreen"),nn=Symbol.for("react.legacy_hidden"),Zt=Symbol.for("react.cache"),Vr=Symbol.for("react.tracing_marker"),fr=Symbol.iterator,Vn="@@iterator";function ta(n){if(n===null||typeof n!="object")return null;var r=fr&&n[fr]||n[Vn];return typeof r=="function"?r:null}var Rt=Object.assign,Ha=0,Ni,Ws,Ys,ts,qs,Gs,Xs;function Ks(){}Ks.__reactDisabledLog=!0;function ec(){{if(Ha===0){Ni=console.log,Ws=console.info,Ys=console.warn,ts=console.error,qs=console.group,Gs=console.groupCollapsed,Xs=console.groupEnd;var n={configurable:!0,enumerable:!0,value:Ks,writable:!0};Object.defineProperties(console,{info:n,log:n,warn:n,error:n,group:n,groupCollapsed:n,groupEnd:n})}Ha++}}function Zu(){{if(Ha--,Ha===0){var n={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Rt({},n,{value:Ni}),info:Rt({},n,{value:Ws}),warn:Rt({},n,{value:Ys}),error:Rt({},n,{value:ts}),group:Rt({},n,{value:qs}),groupCollapsed:Rt({},n,{value:Gs}),groupEnd:Rt({},n,{value:Xs})})}Ha<0&&c("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Qs=a.ReactCurrentDispatcher,mo;function va(n,r,o){{if(mo===void 0)try{throw Error()}catch(d){var l=d.stack.trim().match(/\n( *(at )?)/);mo=l&&l[1]||""}return`
71
- `+mo+n}}var Pi=!1,Aa;{var ji=typeof WeakMap=="function"?WeakMap:Map;Aa=new ji}function Zs(n,r){if(!n||Pi)return"";{var o=Aa.get(n);if(o!==void 0)return o}var l;Pi=!0;var d=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var p;p=Qs.current,Qs.current=null,ec();try{if(r){var g=function(){throw Error()};if(Object.defineProperty(g.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(g,[])}catch(ie){l=ie}Reflect.construct(n,[],g)}else{try{g.call()}catch(ie){l=ie}n.call(g.prototype)}}else{try{throw Error()}catch(ie){l=ie}n()}}catch(ie){if(ie&&l&&typeof ie.stack=="string"){for(var b=ie.stack.split(`
72
- `),T=l.stack.split(`
73
- `),D=b.length-1,A=T.length-1;D>=1&&A>=0&&b[D]!==T[A];)A--;for(;D>=1&&A>=0;D--,A--)if(b[D]!==T[A]){if(D!==1||A!==1)do if(D--,A--,A<0||b[D]!==T[A]){var U=`
74
- `+b[D].replace(" at new "," at ");return n.displayName&&U.includes("<anonymous>")&&(U=U.replace("<anonymous>",n.displayName)),typeof n=="function"&&Aa.set(n,U),U}while(D>=1&&A>=0);break}}}finally{Pi=!1,Qs.current=p,Zu(),Error.prepareStackTrace=d}var B=n?n.displayName||n.name:"",ne=B?va(B):"";return typeof n=="function"&&Aa.set(n,ne),ne}function tc(n,r,o){return Zs(n,!0)}function ns(n,r,o){return Zs(n,!1)}function Ju(n){var r=n.prototype;return!!(r&&r.isReactComponent)}function Li(n,r,o){if(n==null)return"";if(typeof n=="function")return Zs(n,Ju(n));if(typeof n=="string")return va(n);switch(n){case Re:return va("Suspense");case De:return va("SuspenseList")}if(typeof n=="object")switch(n.$$typeof){case me:return ns(n.render);case at:return Li(n.type,r,o);case je:{var l=n,d=l._payload,p=l._init;try{return Li(p(d),r,o)}catch{}}}return""}function nc(n){switch(n._debugOwner&&n._debugOwner.type,n._debugSource,n.tag){case S:return va(n.type);case Q:return va("Lazy");case L:return va("Suspense");case de:return va("SuspenseList");case h:case v:case F:return ns(n.type);case N:return ns(n.type.render);case m:return tc(n.type);default:return""}}function rs(n){try{var r="",o=n;do r+=nc(o),o=o.return;while(o);return r}catch(l){return`
75
- Error generating stack: `+l.message+`
76
- `+l.stack}}function as(n,r,o){var l=n.displayName;if(l)return l;var d=r.displayName||r.name||"";return d!==""?o+"("+d+")":o}function rc(n){return n.displayName||"Context"}function Bt(n){if(n==null)return null;if(typeof n.tag=="number"&&c("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case z:return"Fragment";case er:return"Portal";case ke:return"Profiler";case ye:return"StrictMode";case Re:return"Suspense";case De:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case ce:var r=n;return rc(r)+".Consumer";case M:var o=n;return rc(o._context)+".Provider";case me:return as(n,n.render,"ForwardRef");case at:var l=n.displayName||null;return l!==null?l:Bt(n.type)||"Memo";case je:{var d=n,p=d._payload,g=d._init;try{return Bt(g(p))}catch{return null}}}return null}function vo(n,r,o){var l=r.displayName||r.name||"";return n.displayName||(l!==""?o+"("+l+")":o)}function Js(n){return n.displayName||"Context"}function Tt(n){var r=n.tag,o=n.type;switch(r){case Ee:return"Cache";case O:var l=o;return Js(l)+".Consumer";case _:var d=o;return Js(d._context)+".Provider";case re:return"DehydratedFragment";case N:return vo(o,o.render,"ForwardRef");case E:return"Fragment";case S:return o;case x:return"Portal";case y:return"Root";case R:return"Text";case Q:return Bt(o);case k:return o===ye?"StrictMode":"Mode";case q:return"Offscreen";case $:return"Profiler";case Ke:return"Scope";case L:return"Suspense";case de:return"SuspenseList";case we:return"TracingMarker";case m:case h:case le:case v:case I:case F:if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o;break}return null}var ac=a.ReactDebugCurrentFrame,tr=null,di=!1;function Wa(){{if(tr===null)return null;var n=tr._debugOwner;if(n!==null&&typeof n<"u")return Tt(n)}return null}function is(){return tr===null?"":rs(tr)}function or(){ac.getCurrentStack=null,tr=null,di=!1}function On(n){ac.getCurrentStack=n===null?null:is,tr=n,di=!1}function os(){return tr}function Br(n){di=n}function Gn(n){return""+n}function Ur(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return $e(n),n;default:return""}}var ed={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function go(n,r){ed[r.type]||r.onChange||r.onInput||r.readOnly||r.disabled||r.value==null||c("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`."),r.onChange||r.readOnly||r.disabled||r.checked==null||c("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 yo(n){var r=n.type,o=n.nodeName;return o&&o.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function el(n){return n._valueTracker}function $i(n){n._valueTracker=null}function ic(n){var r="";return n&&(yo(n)?r=n.checked?"true":"false":r=n.value),r}function tl(n){var r=yo(n)?"checked":"value",o=Object.getOwnPropertyDescriptor(n.constructor.prototype,r);$e(n[r]);var l=""+n[r];if(!(n.hasOwnProperty(r)||typeof o>"u"||typeof o.get!="function"||typeof o.set!="function")){var d=o.get,p=o.set;Object.defineProperty(n,r,{configurable:!0,get:function(){return d.call(this)},set:function(b){$e(b),l=""+b,p.call(this,b)}}),Object.defineProperty(n,r,{enumerable:o.enumerable});var g={getValue:function(){return l},setValue:function(b){$e(b),l=""+b},stopTracking:function(){$i(n),delete n[r]}};return g}}function fi(n){el(n)||(n._valueTracker=tl(n))}function P(n){if(!n)return!1;var r=el(n);if(!r)return!0;var o=r.getValue(),l=ic(n);return l!==o?(r.setValue(l),!0):!1}function V(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var ae=!1,Ie=!1,$t=!1,dn=!1;function Tn(n){var r=n.type==="checkbox"||n.type==="radio";return r?n.checked!=null:n.value!=null}function C(n,r){var o=n,l=r.checked,d=Rt({},r,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:l??o._wrapperState.initialChecked});return d}function j(n,r){go("input",r),r.checked!==void 0&&r.defaultChecked!==void 0&&!Ie&&(c("%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",Wa()||"A component",r.type),Ie=!0),r.value!==void 0&&r.defaultValue!==void 0&&!ae&&(c("%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",Wa()||"A component",r.type),ae=!0);var o=n,l=r.defaultValue==null?"":r.defaultValue;o._wrapperState={initialChecked:r.checked!=null?r.checked:r.defaultChecked,initialValue:Ur(r.value!=null?r.value:l),controlled:Tn(r)}}function ee(n,r){var o=n,l=r.checked;l!=null&&Pn(o,"checked",l,!1)}function se(n,r){var o=n;{var l=Tn(r);!o._wrapperState.controlled&&l&&!dn&&(c("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"),dn=!0),o._wrapperState.controlled&&!l&&!$t&&(c("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"),$t=!0)}ee(n,r);var d=Ur(r.value),p=r.type;if(d!=null)p==="number"?(d===0&&o.value===""||o.value!=d)&&(o.value=Gn(d)):o.value!==Gn(d)&&(o.value=Gn(d));else if(p==="submit"||p==="reset"){o.removeAttribute("value");return}r.hasOwnProperty("value")?dt(o,r.type,d):r.hasOwnProperty("defaultValue")&&dt(o,r.type,Ur(r.defaultValue)),r.checked==null&&r.defaultChecked!=null&&(o.defaultChecked=!!r.defaultChecked)}function Te(n,r,o){var l=n;if(r.hasOwnProperty("value")||r.hasOwnProperty("defaultValue")){var d=r.type,p=d==="submit"||d==="reset";if(p&&(r.value===void 0||r.value===null))return;var g=Gn(l._wrapperState.initialValue);o||g!==l.value&&(l.value=g),l.defaultValue=g}var b=l.name;b!==""&&(l.name=""),l.defaultChecked=!l.defaultChecked,l.defaultChecked=!!l._wrapperState.initialChecked,b!==""&&(l.name=b)}function et(n,r){var o=n;se(o,r),He(o,r)}function He(n,r){var o=r.name;if(r.type==="radio"&&o!=null){for(var l=n;l.parentNode;)l=l.parentNode;cn(o,"name");for(var d=l.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),p=0;p<d.length;p++){var g=d[p];if(!(g===n||g.form!==n.form)){var b=$p(g);if(!b)throw new Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");P(g),se(g,b)}}}}function dt(n,r,o){(r!=="number"||V(n.ownerDocument)!==n)&&(o==null?n.defaultValue=Gn(n._wrapperState.initialValue):n.defaultValue!==Gn(o)&&(n.defaultValue=Gn(o)))}var Ut=!1,bn=!1,Rn=!1;function kn(n,r){r.value==null&&(typeof r.children=="object"&&r.children!==null?e.Children.forEach(r.children,function(o){o!=null&&(typeof o=="string"||typeof o=="number"||bn||(bn=!0,c("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}):r.dangerouslySetInnerHTML!=null&&(Rn||(Rn=!0,c("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")))),r.selected!=null&&!Ut&&(c("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Ut=!0)}function Ln(n,r){r.value!=null&&n.setAttribute("value",Gn(Ur(r.value)))}var Xn=Array.isArray;function sn(n){return Xn(n)}var ss;ss=!1;function oc(){var n=Wa();return n?`
77
-
78
- Check the render method of \``+n+"`.":""}var td=["value","defaultValue"];function Gg(n){{go("select",n);for(var r=0;r<td.length;r++){var o=td[r];if(n[o]!=null){var l=sn(n[o]);n.multiple&&!l?c("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",o,oc()):!n.multiple&&l&&c("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",o,oc())}}}}function bo(n,r,o,l){var d=n.options;if(r){for(var p=o,g={},b=0;b<p.length;b++)g["$"+p[b]]=!0;for(var T=0;T<d.length;T++){var D=g.hasOwnProperty("$"+d[T].value);d[T].selected!==D&&(d[T].selected=D),D&&l&&(d[T].defaultSelected=!0)}}else{for(var A=Gn(Ur(o)),U=null,B=0;B<d.length;B++){if(d[B].value===A){d[B].selected=!0,l&&(d[B].defaultSelected=!0);return}U===null&&!d[B].disabled&&(U=d[B])}U!==null&&(U.selected=!0)}}function nd(n,r){return Rt({},r,{value:void 0})}function rd(n,r){var o=n;Gg(r),o._wrapperState={wasMultiple:!!r.multiple},r.value!==void 0&&r.defaultValue!==void 0&&!ss&&(c("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"),ss=!0)}function Xg(n,r){var o=n;o.multiple=!!r.multiple;var l=r.value;l!=null?bo(o,!!r.multiple,l,!1):r.defaultValue!=null&&bo(o,!!r.multiple,r.defaultValue,!0)}function U2(n,r){var o=n,l=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!r.multiple;var d=r.value;d!=null?bo(o,!!r.multiple,d,!1):l!==!!r.multiple&&(r.defaultValue!=null?bo(o,!!r.multiple,r.defaultValue,!0):bo(o,!!r.multiple,r.multiple?[]:"",!1))}function H2(n,r){var o=n,l=r.value;l!=null&&bo(o,!!r.multiple,l,!1)}var FT=!1;function Kg(n,r){var o=n;if(r.dangerouslySetInnerHTML!=null)throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");var l=Rt({},r,{value:void 0,defaultValue:void 0,children:Gn(o._wrapperState.initialValue)});return l}function IT(n,r){var o=n;go("textarea",r),r.value!==void 0&&r.defaultValue!==void 0&&!FT&&(c("%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",Wa()||"A component"),FT=!0);var l=r.value;if(l==null){var d=r.children,p=r.defaultValue;if(d!=null){c("Use the `defaultValue` or `value` props instead of setting children on <textarea>.");{if(p!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(sn(d)){if(d.length>1)throw new Error("<textarea> can only have at most one child.");d=d[0]}p=d}}p==null&&(p=""),l=p}o._wrapperState={initialValue:Ur(l)}}function VT(n,r){var o=n,l=Ur(r.value),d=Ur(r.defaultValue);if(l!=null){var p=Gn(l);p!==o.value&&(o.value=p),r.defaultValue==null&&o.defaultValue!==p&&(o.defaultValue=p)}d!=null&&(o.defaultValue=Gn(d))}function BT(n,r){var o=n,l=o.textContent;l===o._wrapperState.initialValue&&l!==""&&l!==null&&(o.value=l)}function W2(n,r){VT(n,r)}var xo="http://www.w3.org/1999/xhtml",Y2="http://www.w3.org/1998/Math/MathML",Qg="http://www.w3.org/2000/svg";function Zg(n){switch(n){case"svg":return Qg;case"math":return Y2;default:return xo}}function Jg(n,r){return n==null||n===xo?Zg(r):n===Qg&&r==="foreignObject"?xo:n}var q2=function(n){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(r,o,l,d){MSApp.execUnsafeLocalFunction(function(){return n(r,o,l,d)})}:n},Zh,UT=q2(function(n,r){if(n.namespaceURI===Qg&&!("innerHTML"in n)){Zh=Zh||document.createElement("div"),Zh.innerHTML="<svg>"+r.valueOf().toString()+"</svg>";for(var o=Zh.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;o.firstChild;)n.appendChild(o.firstChild);return}n.innerHTML=r}),ga=1,So=3,sr=8,wo=9,ey=11,Jh=function(n,r){if(r){var o=n.firstChild;if(o&&o===n.lastChild&&o.nodeType===So){o.nodeValue=r;return}}n.textContent=r},G2={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"]},ad={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 X2(n,r){return n+r.charAt(0).toUpperCase()+r.substring(1)}var K2=["Webkit","ms","Moz","O"];Object.keys(ad).forEach(function(n){K2.forEach(function(r){ad[X2(r,n)]=ad[n]})});function ty(n,r,o){var l=r==null||typeof r=="boolean"||r==="";return l?"":!o&&typeof r=="number"&&r!==0&&!(ad.hasOwnProperty(n)&&ad[n])?r+"px":(on(r,n),(""+r).trim())}var Q2=/([A-Z])/g,Z2=/^ms-/;function J2(n){return n.replace(Q2,"-$1").toLowerCase().replace(Z2,"-ms-")}var HT=function(){};{var eL=/^(?:webkit|moz|o)[A-Z]/,tL=/^-ms-/,nL=/-(.)/g,WT=/;\s*$/,sc={},ny={},YT=!1,qT=!1,rL=function(n){return n.replace(nL,function(r,o){return o.toUpperCase()})},aL=function(n){sc.hasOwnProperty(n)&&sc[n]||(sc[n]=!0,c("Unsupported style property %s. Did you mean %s?",n,rL(n.replace(tL,"ms-"))))},iL=function(n){sc.hasOwnProperty(n)&&sc[n]||(sc[n]=!0,c("Unsupported vendor-prefixed style property %s. Did you mean %s?",n,n.charAt(0).toUpperCase()+n.slice(1)))},oL=function(n,r){ny.hasOwnProperty(r)&&ny[r]||(ny[r]=!0,c(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,n,r.replace(WT,"")))},sL=function(n,r){YT||(YT=!0,c("`NaN` is an invalid value for the `%s` css style property.",n))},lL=function(n,r){qT||(qT=!0,c("`Infinity` is an invalid value for the `%s` css style property.",n))};HT=function(n,r){n.indexOf("-")>-1?aL(n):eL.test(n)?iL(n):WT.test(r)&&oL(n,r),typeof r=="number"&&(isNaN(r)?sL(n,r):isFinite(r)||lL(n,r))}}var cL=HT;function uL(n){{var r="",o="";for(var l in n)if(n.hasOwnProperty(l)){var d=n[l];if(d!=null){var p=l.indexOf("--")===0;r+=o+(p?l:J2(l))+":",r+=ty(l,d,p),o=";"}}return r||null}}function GT(n,r){var o=n.style;for(var l in r)if(r.hasOwnProperty(l)){var d=l.indexOf("--")===0;d||cL(l,r[l]);var p=ty(l,r[l],d);l==="float"&&(l="cssFloat"),d?o.setProperty(l,p):o[l]=p}}function dL(n){return n==null||typeof n=="boolean"||n===""}function XT(n){var r={};for(var o in n)for(var l=G2[o]||[o],d=0;d<l.length;d++)r[l[d]]=o;return r}function fL(n,r){{if(!r)return;var o=XT(n),l=XT(r),d={};for(var p in o){var g=o[p],b=l[p];if(b&&g!==b){var T=g+","+b;if(d[T])continue;d[T]=!0,c("%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.",dL(n[g])?"Removing":"Updating",g,b)}}}}var hL={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},pL=Rt({menuitem:!0},hL),mL="__html";function ry(n,r){if(r){if(pL[n]&&(r.children!=null||r.dangerouslySetInnerHTML!=null))throw new Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");if(r.dangerouslySetInnerHTML!=null){if(r.children!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof r.dangerouslySetInnerHTML!="object"||!(mL in r.dangerouslySetInnerHTML))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.")}if(!r.suppressContentEditableWarning&&r.contentEditable&&r.children!=null&&c("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."),r.style!=null&&typeof r.style!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.")}}function nl(n,r){if(n.indexOf("-")===-1)return typeof r.is=="string";switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ep={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"},KT={"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},lc={},vL=new RegExp("^(aria)-["+_e+"]*$"),gL=new RegExp("^(aria)[A-Z]["+_e+"]*$");function yL(n,r){{if(Et.call(lc,r)&&lc[r])return!0;if(gL.test(r)){var o="aria-"+r.slice(4).toLowerCase(),l=KT.hasOwnProperty(o)?o:null;if(l==null)return c("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",r),lc[r]=!0,!0;if(r!==l)return c("Invalid ARIA attribute `%s`. Did you mean `%s`?",r,l),lc[r]=!0,!0}if(vL.test(r)){var d=r.toLowerCase(),p=KT.hasOwnProperty(d)?d:null;if(p==null)return lc[r]=!0,!1;if(r!==p)return c("Unknown ARIA attribute `%s`. Did you mean `%s`?",r,p),lc[r]=!0,!0}}return!0}function bL(n,r){{var o=[];for(var l in r){var d=yL(n,l);d||o.push(l)}var p=o.map(function(g){return"`"+g+"`"}).join(", ");o.length===1?c("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",p,n):o.length>1&&c("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",p,n)}}function xL(n,r){nl(n,r)||bL(n,r)}var QT=!1;function SL(n,r){{if(n!=="input"&&n!=="textarea"&&n!=="select")return;r!=null&&r.value===null&&!QT&&(QT=!0,n==="select"&&r.multiple?c("`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.",n):c("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",n))}}var ZT=function(){};{var na={},JT=/^on./,wL=/^on[^A-Z]/,CL=new RegExp("^(aria)-["+_e+"]*$"),TL=new RegExp("^(aria)[A-Z]["+_e+"]*$");ZT=function(n,r,o,l){if(Et.call(na,r)&&na[r])return!0;var d=r.toLowerCase();if(d==="onfocusin"||d==="onfocusout")return c("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."),na[r]=!0,!0;if(l!=null){var p=l.registrationNameDependencies,g=l.possibleRegistrationNames;if(p.hasOwnProperty(r))return!0;var b=g.hasOwnProperty(d)?g[d]:null;if(b!=null)return c("Invalid event handler property `%s`. Did you mean `%s`?",r,b),na[r]=!0,!0;if(JT.test(r))return c("Unknown event handler property `%s`. It will be ignored.",r),na[r]=!0,!0}else if(JT.test(r))return wL.test(r)&&c("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",r),na[r]=!0,!0;if(CL.test(r)||TL.test(r))return!0;if(d==="innerhtml")return c("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),na[r]=!0,!0;if(d==="aria")return c("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),na[r]=!0,!0;if(d==="is"&&o!==null&&o!==void 0&&typeof o!="string")return c("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof o),na[r]=!0,!0;if(typeof o=="number"&&isNaN(o))return c("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",r),na[r]=!0,!0;var T=Cn(r),D=T!==null&&T.type===St;if(ep.hasOwnProperty(d)){var A=ep[d];if(A!==r)return c("Invalid DOM property `%s`. Did you mean `%s`?",r,A),na[r]=!0,!0}else if(!D&&r!==d)return c("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.",r,d),na[r]=!0,!0;return typeof o=="boolean"&&Vt(r,o,T,!1)?(o?c('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()}.',o,r,r,o,r):c('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.',o,r,r,o,r,r,r),na[r]=!0,!0):D?!0:Vt(r,o,T,!1)?(na[r]=!0,!1):((o==="false"||o==="true")&&T!==null&&T.type===Ge&&(c("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",o,r,o==="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".',r,o),na[r]=!0),!0)}}var EL=function(n,r,o){{var l=[];for(var d in r){var p=ZT(n,d,r[d],o);p||l.push(d)}var g=l.map(function(b){return"`"+b+"`"}).join(", ");l.length===1?c("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",g,n):l.length>1&&c("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",g,n)}};function RL(n,r,o){nl(n,r)||EL(n,r,o)}var eE=1,ay=2,id=4,kL=eE|ay|id,od=null;function DL(n){od!==null&&c("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),od=n}function _L(){od===null&&c("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),od=null}function AL(n){return n===od}function iy(n){var r=n.target||n.srcElement||window;return r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===So?r.parentNode:r}var oy=null,cc=null,uc=null;function tE(n){var r=ms(n);if(r){if(typeof oy!="function")throw new Error("setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.");var o=r.stateNode;if(o){var l=$p(o);oy(r.stateNode,r.type,l)}}}function OL(n){oy=n}function nE(n){cc?uc?uc.push(n):uc=[n]:cc=n}function ML(){return cc!==null||uc!==null}function rE(){if(cc){var n=cc,r=uc;if(cc=null,uc=null,tE(n),r)for(var o=0;o<r.length;o++)tE(r[o])}}var aE=function(n,r){return n(r)},iE=function(){},sy=!1;function NL(){var n=ML();n&&(iE(),rE())}function oE(n,r,o){if(sy)return n(r,o);sy=!0;try{return aE(n,r,o)}finally{sy=!1,NL()}}function PL(n,r,o){aE=n,iE=o}function jL(n){return n==="button"||n==="input"||n==="select"||n==="textarea"}function LL(n,r,o){switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":return!!(o.disabled&&jL(r));default:return!1}}function sd(n,r){var o=n.stateNode;if(o===null)return null;var l=$p(o);if(l===null)return null;var d=l[r];if(LL(r,n.type,l))return null;if(d&&typeof d!="function")throw new Error("Expected `"+r+"` listener to be a function, instead got a value of `"+typeof d+"` type.");return d}var ly=!1;if(ut)try{var ld={};Object.defineProperty(ld,"passive",{get:function(){ly=!0}}),window.addEventListener("test",ld,ld),window.removeEventListener("test",ld,ld)}catch{ly=!1}function sE(n,r,o,l,d,p,g,b,T){var D=Array.prototype.slice.call(arguments,3);try{r.apply(o,D)}catch(A){this.onError(A)}}var lE=sE;if(typeof window<"u"&&typeof window.dispatchEvent=="function"&&typeof document<"u"&&typeof document.createEvent=="function"){var cy=document.createElement("react");lE=function(r,o,l,d,p,g,b,T,D){if(typeof document>"u"||document===null)throw new Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");var A=document.createEvent("Event"),U=!1,B=!0,ne=window.event,ie=Object.getOwnPropertyDescriptor(window,"event");function fe(){cy.removeEventListener(he,Je,!1),typeof window.event<"u"&&window.hasOwnProperty("event")&&(window.event=ne)}var Le=Array.prototype.slice.call(arguments,3);function Je(){U=!0,fe(),o.apply(l,Le),B=!1}var Xe,Yt=!1,zt=!1;function Z(J){if(Xe=J.error,Yt=!0,Xe===null&&J.colno===0&&J.lineno===0&&(zt=!0),J.defaultPrevented&&Xe!=null&&typeof Xe=="object")try{Xe._suppressLogging=!0}catch{}}var he="react-"+(r||"invokeguardedcallback");if(window.addEventListener("error",Z),cy.addEventListener(he,Je,!1),A.initEvent(he,!1,!1),cy.dispatchEvent(A),ie&&Object.defineProperty(window,"event",ie),U&&B&&(Yt?zt&&(Xe=new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")):Xe=new Error(`An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the "Pause on exceptions" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue.`),this.onError(Xe)),window.removeEventListener("error",Z),!U)return fe(),sE.apply(this,arguments)}}var $L=lE,dc=!1,tp=null,np=!1,uy=null,zL={onError:function(n){dc=!0,tp=n}};function dy(n,r,o,l,d,p,g,b,T){dc=!1,tp=null,$L.apply(zL,arguments)}function FL(n,r,o,l,d,p,g,b,T){if(dy.apply(this,arguments),dc){var D=fy();np||(np=!0,uy=D)}}function IL(){if(np){var n=uy;throw np=!1,uy=null,n}}function VL(){return dc}function fy(){if(dc){var n=tp;return dc=!1,tp=null,n}else throw new Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.")}function fc(n){return n._reactInternals}function BL(n){return n._reactInternals!==void 0}function UL(n,r){n._reactInternals=r}var st=0,hc=1,lr=2,Xt=4,rl=16,cd=32,hy=64,ln=128,Co=256,ls=512,al=1024,hi=2048,To=4096,il=8192,rp=16384,HL=hi|Xt|hy|ls|al|rp,WL=32767,ud=32768,ra=65536,py=131072,cE=1048576,my=2097152,ol=4194304,vy=8388608,Eo=16777216,ap=33554432,gy=Xt|al|0,yy=lr|Xt|rl|cd|ls|To|il,dd=Xt|hy|ls|il,pc=hi|rl,Ro=ol|vy|my,YL=a.ReactCurrentOwner;function sl(n){var r=n,o=n;if(n.alternate)for(;r.return;)r=r.return;else{var l=r;do r=l,(r.flags&(lr|To))!==st&&(o=r.return),l=r.return;while(l)}return r.tag===y?o:null}function uE(n){if(n.tag===L){var r=n.memoizedState;if(r===null){var o=n.alternate;o!==null&&(r=o.memoizedState)}if(r!==null)return r.dehydrated}return null}function dE(n){return n.tag===y?n.stateNode.containerInfo:null}function qL(n){return sl(n)===n}function GL(n){{var r=YL.current;if(r!==null&&r.tag===m){var o=r,l=o.stateNode;l._warnedAboutRefsInRender||c("%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.",Tt(o)||"A component"),l._warnedAboutRefsInRender=!0}}var d=fc(n);return d?sl(d)===d:!1}function fE(n){if(sl(n)!==n)throw new Error("Unable to find node on an unmounted component.")}function hE(n){var r=n.alternate;if(!r){var o=sl(n);if(o===null)throw new Error("Unable to find node on an unmounted component.");return o!==n?null:n}for(var l=n,d=r;;){var p=l.return;if(p===null)break;var g=p.alternate;if(g===null){var b=p.return;if(b!==null){l=d=b;continue}break}if(p.child===g.child){for(var T=p.child;T;){if(T===l)return fE(p),n;if(T===d)return fE(p),r;T=T.sibling}throw new Error("Unable to find node on an unmounted component.")}if(l.return!==d.return)l=p,d=g;else{for(var D=!1,A=p.child;A;){if(A===l){D=!0,l=p,d=g;break}if(A===d){D=!0,d=p,l=g;break}A=A.sibling}if(!D){for(A=g.child;A;){if(A===l){D=!0,l=g,d=p;break}if(A===d){D=!0,d=g,l=p;break}A=A.sibling}if(!D)throw new Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(l.alternate!==d)throw new Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(l.tag!==y)throw new Error("Unable to find node on an unmounted component.");return l.stateNode.current===l?n:r}function pE(n){var r=hE(n);return r!==null?mE(r):null}function mE(n){if(n.tag===S||n.tag===R)return n;for(var r=n.child;r!==null;){var o=mE(r);if(o!==null)return o;r=r.sibling}return null}function XL(n){var r=hE(n);return r!==null?vE(r):null}function vE(n){if(n.tag===S||n.tag===R)return n;for(var r=n.child;r!==null;){if(r.tag!==x){var o=vE(r);if(o!==null)return o}r=r.sibling}return null}var gE=t.unstable_scheduleCallback,KL=t.unstable_cancelCallback,QL=t.unstable_shouldYield,ZL=t.unstable_requestPaint,Cr=t.unstable_now,JL=t.unstable_getCurrentPriorityLevel,ip=t.unstable_ImmediatePriority,by=t.unstable_UserBlockingPriority,ll=t.unstable_NormalPriority,e5=t.unstable_LowPriority,xy=t.unstable_IdlePriority,t5=t.unstable_yieldValue,n5=t.unstable_setDisableYieldValue,mc=null,Hr=null,Fe=null,zi=!1,pi=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function r5(n){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var r=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(r.isDisabled)return!0;if(!r.supportsFiber)return c("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{Ne&&(n=Rt({},n,{getLaneLabelMap:c5,injectProfilingHooks:l5})),mc=r.inject(n),Hr=r}catch(o){c("React instrumentation encountered an error: %s.",o)}return!!r.checkDCE}function a5(n,r){if(Hr&&typeof Hr.onScheduleFiberRoot=="function")try{Hr.onScheduleFiberRoot(mc,n,r)}catch(o){zi||(zi=!0,c("React instrumentation encountered an error: %s",o))}}function i5(n,r){if(Hr&&typeof Hr.onCommitFiberRoot=="function")try{var o=(n.current.flags&ln)===ln;if(Pe){var l;switch(r){case Na:l=ip;break;case Do:l=by;break;case _o:l=ll;break;case fp:l=xy;break;default:l=ll;break}Hr.onCommitFiberRoot(mc,n,l,o)}}catch(d){zi||(zi=!0,c("React instrumentation encountered an error: %s",d))}}function o5(n){if(Hr&&typeof Hr.onPostCommitFiberRoot=="function")try{Hr.onPostCommitFiberRoot(mc,n)}catch(r){zi||(zi=!0,c("React instrumentation encountered an error: %s",r))}}function s5(n){if(Hr&&typeof Hr.onCommitFiberUnmount=="function")try{Hr.onCommitFiberUnmount(mc,n)}catch(r){zi||(zi=!0,c("React instrumentation encountered an error: %s",r))}}function Tr(n){if(typeof t5=="function"&&(n5(n),s(n)),Hr&&typeof Hr.setStrictMode=="function")try{Hr.setStrictMode(mc,n)}catch(r){zi||(zi=!0,c("React instrumentation encountered an error: %s",r))}}function l5(n){Fe=n}function c5(){{for(var n=new Map,r=1,o=0;o<wy;o++){var l=_5(r);n.set(r,l),r*=2}return n}}function u5(n){Fe!==null&&typeof Fe.markCommitStarted=="function"&&Fe.markCommitStarted(n)}function yE(){Fe!==null&&typeof Fe.markCommitStopped=="function"&&Fe.markCommitStopped()}function fd(n){Fe!==null&&typeof Fe.markComponentRenderStarted=="function"&&Fe.markComponentRenderStarted(n)}function vc(){Fe!==null&&typeof Fe.markComponentRenderStopped=="function"&&Fe.markComponentRenderStopped()}function d5(n){Fe!==null&&typeof Fe.markComponentPassiveEffectMountStarted=="function"&&Fe.markComponentPassiveEffectMountStarted(n)}function f5(){Fe!==null&&typeof Fe.markComponentPassiveEffectMountStopped=="function"&&Fe.markComponentPassiveEffectMountStopped()}function h5(n){Fe!==null&&typeof Fe.markComponentPassiveEffectUnmountStarted=="function"&&Fe.markComponentPassiveEffectUnmountStarted(n)}function p5(){Fe!==null&&typeof Fe.markComponentPassiveEffectUnmountStopped=="function"&&Fe.markComponentPassiveEffectUnmountStopped()}function m5(n){Fe!==null&&typeof Fe.markComponentLayoutEffectMountStarted=="function"&&Fe.markComponentLayoutEffectMountStarted(n)}function v5(){Fe!==null&&typeof Fe.markComponentLayoutEffectMountStopped=="function"&&Fe.markComponentLayoutEffectMountStopped()}function bE(n){Fe!==null&&typeof Fe.markComponentLayoutEffectUnmountStarted=="function"&&Fe.markComponentLayoutEffectUnmountStarted(n)}function xE(){Fe!==null&&typeof Fe.markComponentLayoutEffectUnmountStopped=="function"&&Fe.markComponentLayoutEffectUnmountStopped()}function g5(n,r,o){Fe!==null&&typeof Fe.markComponentErrored=="function"&&Fe.markComponentErrored(n,r,o)}function y5(n,r,o){Fe!==null&&typeof Fe.markComponentSuspended=="function"&&Fe.markComponentSuspended(n,r,o)}function b5(n){Fe!==null&&typeof Fe.markLayoutEffectsStarted=="function"&&Fe.markLayoutEffectsStarted(n)}function x5(){Fe!==null&&typeof Fe.markLayoutEffectsStopped=="function"&&Fe.markLayoutEffectsStopped()}function S5(n){Fe!==null&&typeof Fe.markPassiveEffectsStarted=="function"&&Fe.markPassiveEffectsStarted(n)}function w5(){Fe!==null&&typeof Fe.markPassiveEffectsStopped=="function"&&Fe.markPassiveEffectsStopped()}function SE(n){Fe!==null&&typeof Fe.markRenderStarted=="function"&&Fe.markRenderStarted(n)}function C5(){Fe!==null&&typeof Fe.markRenderYielded=="function"&&Fe.markRenderYielded()}function wE(){Fe!==null&&typeof Fe.markRenderStopped=="function"&&Fe.markRenderStopped()}function T5(n){Fe!==null&&typeof Fe.markRenderScheduled=="function"&&Fe.markRenderScheduled(n)}function E5(n,r){Fe!==null&&typeof Fe.markForceUpdateScheduled=="function"&&Fe.markForceUpdateScheduled(n,r)}function Sy(n,r){Fe!==null&&typeof Fe.markStateUpdateScheduled=="function"&&Fe.markStateUpdateScheduled(n,r)}var nt=0,Ht=1,xn=2,Kn=8,Fi=16,CE=Math.clz32?Math.clz32:D5,R5=Math.log,k5=Math.LN2;function D5(n){var r=n>>>0;return r===0?32:31-(R5(r)/k5|0)|0}var wy=31,Se=0,Er=0,bt=1,gc=2,ko=4,cl=8,Ii=16,hd=32,yc=4194240,pd=64,Cy=128,Ty=256,Ey=512,Ry=1024,ky=2048,Dy=4096,_y=8192,Ay=16384,Oy=32768,My=65536,Ny=131072,Py=262144,jy=524288,Ly=1048576,$y=2097152,op=130023424,bc=4194304,zy=8388608,Fy=16777216,Iy=33554432,Vy=67108864,TE=bc,md=134217728,EE=268435455,vd=268435456,ul=536870912,Oa=1073741824;function _5(n){{if(n&bt)return"Sync";if(n&gc)return"InputContinuousHydration";if(n&ko)return"InputContinuous";if(n&cl)return"DefaultHydration";if(n&Ii)return"Default";if(n&hd)return"TransitionHydration";if(n&yc)return"Transition";if(n&op)return"Retry";if(n&md)return"SelectiveHydration";if(n&vd)return"IdleHydration";if(n&ul)return"Idle";if(n&Oa)return"Offscreen"}}var Mn=-1,sp=pd,lp=bc;function gd(n){switch(dl(n)){case bt:return bt;case gc:return gc;case ko:return ko;case cl:return cl;case Ii:return Ii;case hd:return hd;case pd:case Cy:case Ty:case Ey:case Ry:case ky:case Dy:case _y:case Ay:case Oy:case My:case Ny:case Py:case jy:case Ly:case $y:return n&yc;case bc:case zy:case Fy:case Iy:case Vy:return n&op;case md:return md;case vd:return vd;case ul:return ul;case Oa:return Oa;default:return c("Should have found matching lanes. This is a bug in React."),n}}function cp(n,r){var o=n.pendingLanes;if(o===Se)return Se;var l=Se,d=n.suspendedLanes,p=n.pingedLanes,g=o&EE;if(g!==Se){var b=g&~d;if(b!==Se)l=gd(b);else{var T=g&p;T!==Se&&(l=gd(T))}}else{var D=o&~d;D!==Se?l=gd(D):p!==Se&&(l=gd(p))}if(l===Se)return Se;if(r!==Se&&r!==l&&(r&d)===Se){var A=dl(l),U=dl(r);if(A>=U||A===Ii&&(U&yc)!==Se)return r}(l&ko)!==Se&&(l|=o&Ii);var B=n.entangledLanes;if(B!==Se)for(var ne=n.entanglements,ie=l&B;ie>0;){var fe=fl(ie),Le=1<<fe;l|=ne[fe],ie&=~Le}return l}function A5(n,r){for(var o=n.eventTimes,l=Mn;r>0;){var d=fl(r),p=1<<d,g=o[d];g>l&&(l=g),r&=~p}return l}function O5(n,r){switch(n){case bt:case gc:case ko:return r+250;case cl:case Ii:case hd:case pd:case Cy:case Ty:case Ey:case Ry:case ky:case Dy:case _y:case Ay:case Oy:case My:case Ny:case Py:case jy:case Ly:case $y:return r+5e3;case bc:case zy:case Fy:case Iy:case Vy:return Mn;case md:case vd:case ul:case Oa:return Mn;default:return c("Should have found matching lanes. This is a bug in React."),Mn}}function M5(n,r){for(var o=n.pendingLanes,l=n.suspendedLanes,d=n.pingedLanes,p=n.expirationTimes,g=o;g>0;){var b=fl(g),T=1<<b,D=p[b];D===Mn?((T&l)===Se||(T&d)!==Se)&&(p[b]=O5(T,r)):D<=r&&(n.expiredLanes|=T),g&=~T}}function N5(n){return gd(n.pendingLanes)}function By(n){var r=n.pendingLanes&~Oa;return r!==Se?r:r&Oa?Oa:Se}function P5(n){return(n&bt)!==Se}function Uy(n){return(n&EE)!==Se}function RE(n){return(n&op)===n}function j5(n){var r=bt|ko|Ii;return(n&r)===Se}function L5(n){return(n&yc)===n}function up(n,r){var o=gc|ko|cl|Ii;return(r&o)!==Se}function $5(n,r){return(r&n.expiredLanes)!==Se}function kE(n){return(n&yc)!==Se}function DE(){var n=sp;return sp<<=1,(sp&yc)===Se&&(sp=pd),n}function z5(){var n=lp;return lp<<=1,(lp&op)===Se&&(lp=bc),n}function dl(n){return n&-n}function yd(n){return dl(n)}function fl(n){return 31-CE(n)}function Hy(n){return fl(n)}function Ma(n,r){return(n&r)!==Se}function xc(n,r){return(n&r)===r}function Mt(n,r){return n|r}function dp(n,r){return n&~r}function _E(n,r){return n&r}function _oe(n){return n}function F5(n,r){return n!==Er&&n<r?n:r}function Wy(n){for(var r=[],o=0;o<wy;o++)r.push(n);return r}function bd(n,r,o){n.pendingLanes|=r,r!==ul&&(n.suspendedLanes=Se,n.pingedLanes=Se);var l=n.eventTimes,d=Hy(r);l[d]=o}function I5(n,r){n.suspendedLanes|=r,n.pingedLanes&=~r;for(var o=n.expirationTimes,l=r;l>0;){var d=fl(l),p=1<<d;o[d]=Mn,l&=~p}}function AE(n,r,o){n.pingedLanes|=n.suspendedLanes&r}function V5(n,r){var o=n.pendingLanes&~r;n.pendingLanes=r,n.suspendedLanes=Se,n.pingedLanes=Se,n.expiredLanes&=r,n.mutableReadLanes&=r,n.entangledLanes&=r;for(var l=n.entanglements,d=n.eventTimes,p=n.expirationTimes,g=o;g>0;){var b=fl(g),T=1<<b;l[b]=Se,d[b]=Mn,p[b]=Mn,g&=~T}}function Yy(n,r){for(var o=n.entangledLanes|=r,l=n.entanglements,d=o;d;){var p=fl(d),g=1<<p;g&r|l[p]&r&&(l[p]|=r),d&=~g}}function B5(n,r){var o=dl(r),l;switch(o){case ko:l=gc;break;case Ii:l=cl;break;case pd:case Cy:case Ty:case Ey:case Ry:case ky:case Dy:case _y:case Ay:case Oy:case My:case Ny:case Py:case jy:case Ly:case $y:case bc:case zy:case Fy:case Iy:case Vy:l=hd;break;case ul:l=vd;break;default:l=Er;break}return(l&(n.suspendedLanes|r))!==Er?Er:l}function OE(n,r,o){if(pi)for(var l=n.pendingUpdatersLaneMap;o>0;){var d=Hy(o),p=1<<d,g=l[d];g.add(r),o&=~p}}function ME(n,r){if(pi)for(var o=n.pendingUpdatersLaneMap,l=n.memoizedUpdaters;r>0;){var d=Hy(r),p=1<<d,g=o[d];g.size>0&&(g.forEach(function(b){var T=b.alternate;(T===null||!l.has(T))&&l.add(b)}),g.clear()),r&=~p}}function NE(n,r){return null}var Na=bt,Do=ko,_o=Ii,fp=ul,xd=Er;function mi(){return xd}function Rr(n){xd=n}function U5(n,r){var o=xd;try{return xd=n,r()}finally{xd=o}}function H5(n,r){return n!==0&&n<r?n:r}function W5(n,r){return n===0||n>r?n:r}function qy(n,r){return n!==0&&n<r}function PE(n){var r=dl(n);return qy(Na,r)?qy(Do,r)?Uy(r)?_o:fp:Do:Na}function hp(n){var r=n.current.memoizedState;return r.isDehydrated}var jE;function Y5(n){jE=n}function q5(n){jE(n)}var Gy;function G5(n){Gy=n}var LE;function X5(n){LE=n}var $E;function K5(n){$E=n}var zE;function Q5(n){zE=n}var Xy=!1,pp=[],cs=null,us=null,ds=null,Sd=new Map,wd=new Map,fs=[],Z5=["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 J5(n){return Z5.indexOf(n)>-1}function e$(n,r,o,l,d){return{blockedOn:n,domEventName:r,eventSystemFlags:o,nativeEvent:d,targetContainers:[l]}}function FE(n,r){switch(n){case"focusin":case"focusout":cs=null;break;case"dragenter":case"dragleave":us=null;break;case"mouseover":case"mouseout":ds=null;break;case"pointerover":case"pointerout":{var o=r.pointerId;Sd.delete(o);break}case"gotpointercapture":case"lostpointercapture":{var l=r.pointerId;wd.delete(l);break}}}function Cd(n,r,o,l,d,p){if(n===null||n.nativeEvent!==p){var g=e$(r,o,l,d,p);if(r!==null){var b=ms(r);b!==null&&Gy(b)}return g}n.eventSystemFlags|=l;var T=n.targetContainers;return d!==null&&T.indexOf(d)===-1&&T.push(d),n}function t$(n,r,o,l,d){switch(r){case"focusin":{var p=d;return cs=Cd(cs,n,r,o,l,p),!0}case"dragenter":{var g=d;return us=Cd(us,n,r,o,l,g),!0}case"mouseover":{var b=d;return ds=Cd(ds,n,r,o,l,b),!0}case"pointerover":{var T=d,D=T.pointerId;return Sd.set(D,Cd(Sd.get(D)||null,n,r,o,l,T)),!0}case"gotpointercapture":{var A=d,U=A.pointerId;return wd.set(U,Cd(wd.get(U)||null,n,r,o,l,A)),!0}}return!1}function IE(n){var r=ml(n.target);if(r!==null){var o=sl(r);if(o!==null){var l=o.tag;if(l===L){var d=uE(o);if(d!==null){n.blockedOn=d,zE(n.priority,function(){LE(o)});return}}else if(l===y){var p=o.stateNode;if(hp(p)){n.blockedOn=dE(o);return}}}}n.blockedOn=null}function n$(n){for(var r=$E(),o={blockedOn:null,target:n,priority:r},l=0;l<fs.length&&qy(r,fs[l].priority);l++);fs.splice(l,0,o),l===0&&IE(o)}function mp(n){if(n.blockedOn!==null)return!1;for(var r=n.targetContainers;r.length>0;){var o=r[0],l=Zy(n.domEventName,n.eventSystemFlags,o,n.nativeEvent);if(l===null){var d=n.nativeEvent,p=new d.constructor(d.type,d);DL(p),d.target.dispatchEvent(p),_L()}else{var g=ms(l);return g!==null&&Gy(g),n.blockedOn=l,!1}r.shift()}return!0}function VE(n,r,o){mp(n)&&o.delete(r)}function r$(){Xy=!1,cs!==null&&mp(cs)&&(cs=null),us!==null&&mp(us)&&(us=null),ds!==null&&mp(ds)&&(ds=null),Sd.forEach(VE),wd.forEach(VE)}function Td(n,r){n.blockedOn===r&&(n.blockedOn=null,Xy||(Xy=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,r$)))}function Ed(n){if(pp.length>0){Td(pp[0],n);for(var r=1;r<pp.length;r++){var o=pp[r];o.blockedOn===n&&(o.blockedOn=null)}}cs!==null&&Td(cs,n),us!==null&&Td(us,n),ds!==null&&Td(ds,n);var l=function(b){return Td(b,n)};Sd.forEach(l),wd.forEach(l);for(var d=0;d<fs.length;d++){var p=fs[d];p.blockedOn===n&&(p.blockedOn=null)}for(;fs.length>0;){var g=fs[0];if(g.blockedOn!==null)break;IE(g),g.blockedOn===null&&fs.shift()}}var Sc=a.ReactCurrentBatchConfig,Ky=!0;function BE(n){Ky=!!n}function a$(){return Ky}function i$(n,r,o){var l=UE(r),d;switch(l){case Na:d=o$;break;case Do:d=s$;break;case _o:default:d=Qy;break}return d.bind(null,r,o,n)}function o$(n,r,o,l){var d=mi(),p=Sc.transition;Sc.transition=null;try{Rr(Na),Qy(n,r,o,l)}finally{Rr(d),Sc.transition=p}}function s$(n,r,o,l){var d=mi(),p=Sc.transition;Sc.transition=null;try{Rr(Do),Qy(n,r,o,l)}finally{Rr(d),Sc.transition=p}}function Qy(n,r,o,l){Ky&&l$(n,r,o,l)}function l$(n,r,o,l){var d=Zy(n,r,o,l);if(d===null){fb(n,r,l,vp,o),FE(n,l);return}if(t$(d,n,r,o,l)){l.stopPropagation();return}if(FE(n,l),r&id&&J5(n)){for(;d!==null;){var p=ms(d);p!==null&&q5(p);var g=Zy(n,r,o,l);if(g===null&&fb(n,r,l,vp,o),g===d)break;d=g}d!==null&&l.stopPropagation();return}fb(n,r,l,null,o)}var vp=null;function Zy(n,r,o,l){vp=null;var d=iy(l),p=ml(d);if(p!==null){var g=sl(p);if(g===null)p=null;else{var b=g.tag;if(b===L){var T=uE(g);if(T!==null)return T;p=null}else if(b===y){var D=g.stateNode;if(hp(D))return dE(g);p=null}else g!==p&&(p=null)}}return vp=p,null}function UE(n){switch(n){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return Na;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 Do;case"message":{var r=JL();switch(r){case ip:return Na;case by:return Do;case ll:case e5:return _o;case xy:return fp;default:return _o}}default:return _o}}function c$(n,r,o){return n.addEventListener(r,o,!1),o}function u$(n,r,o){return n.addEventListener(r,o,!0),o}function d$(n,r,o,l){return n.addEventListener(r,o,{capture:!0,passive:l}),o}function f$(n,r,o,l){return n.addEventListener(r,o,{passive:l}),o}var Rd=null,Jy=null,kd=null;function h$(n){return Rd=n,Jy=WE(),!0}function p$(){Rd=null,Jy=null,kd=null}function HE(){if(kd)return kd;var n,r=Jy,o=r.length,l,d=WE(),p=d.length;for(n=0;n<o&&r[n]===d[n];n++);var g=o-n;for(l=1;l<=g&&r[o-l]===d[p-l];l++);var b=l>1?1-l:void 0;return kd=d.slice(n,b),kd}function WE(){return"value"in Rd?Rd.value:Rd.textContent}function gp(n){var r,o=n.keyCode;return"charCode"in n?(r=n.charCode,r===0&&o===13&&(r=13)):r=o,r===10&&(r=13),r>=32||r===13?r:0}function yp(){return!0}function YE(){return!1}function Pa(n){function r(o,l,d,p,g){this._reactName=o,this._targetInst=d,this.type=l,this.nativeEvent=p,this.target=g,this.currentTarget=null;for(var b in n)if(n.hasOwnProperty(b)){var T=n[b];T?this[b]=T(p):this[b]=p[b]}var D=p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1;return D?this.isDefaultPrevented=yp:this.isDefaultPrevented=YE,this.isPropagationStopped=YE,this}return Rt(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=yp)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=yp)},persist:function(){},isPersistent:yp}),r}var wc={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},eb=Pa(wc),Dd=Rt({},wc,{view:0,detail:0}),m$=Pa(Dd),tb,nb,_d;function v$(n){n!==_d&&(_d&&n.type==="mousemove"?(tb=n.screenX-_d.screenX,nb=n.screenY-_d.screenY):(tb=0,nb=0),_d=n)}var bp=Rt({},Dd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ab,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(v$(n),tb)},movementY:function(n){return"movementY"in n?n.movementY:nb}}),qE=Pa(bp),g$=Rt({},bp,{dataTransfer:0}),y$=Pa(g$),b$=Rt({},Dd,{relatedTarget:0}),rb=Pa(b$),x$=Rt({},wc,{animationName:0,elapsedTime:0,pseudoElement:0}),S$=Pa(x$),w$=Rt({},wc,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),C$=Pa(w$),T$=Rt({},wc,{data:0}),GE=Pa(T$),E$=GE,R$={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},k$={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 D$(n){if(n.key){var r=R$[n.key]||n.key;if(r!=="Unidentified")return r}if(n.type==="keypress"){var o=gp(n);return o===13?"Enter":String.fromCharCode(o)}return n.type==="keydown"||n.type==="keyup"?k$[n.keyCode]||"Unidentified":""}var _$={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function A$(n){var r=this,o=r.nativeEvent;if(o.getModifierState)return o.getModifierState(n);var l=_$[n];return l?!!o[l]:!1}function ab(n){return A$}var O$=Rt({},Dd,{key:D$,code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ab,charCode:function(n){return n.type==="keypress"?gp(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?gp(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),M$=Pa(O$),N$=Rt({},bp,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),XE=Pa(N$),P$=Rt({},Dd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ab}),j$=Pa(P$),L$=Rt({},wc,{propertyName:0,elapsedTime:0,pseudoElement:0}),$$=Pa(L$),z$=Rt({},bp,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),F$=Pa(z$),I$=[9,13,27,32],KE=229,ib=ut&&"CompositionEvent"in window,Ad=null;ut&&"documentMode"in document&&(Ad=document.documentMode);var V$=ut&&"TextEvent"in window&&!Ad,QE=ut&&(!ib||Ad&&Ad>8&&Ad<=11),ZE=32,JE=String.fromCharCode(ZE);function B$(){jt("onBeforeInput",["compositionend","keypress","textInput","paste"]),jt("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),jt("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),jt("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"])}var e1=!1;function U$(n){return(n.ctrlKey||n.altKey||n.metaKey)&&!(n.ctrlKey&&n.altKey)}function H$(n){switch(n){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function W$(n,r){return n==="keydown"&&r.keyCode===KE}function t1(n,r){switch(n){case"keyup":return I$.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==KE;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function n1(n){var r=n.detail;return typeof r=="object"&&"data"in r?r.data:null}function r1(n){return n.locale==="ko"}var Cc=!1;function Y$(n,r,o,l,d){var p,g;if(ib?p=H$(r):Cc?t1(r,l)&&(p="onCompositionEnd"):W$(r,l)&&(p="onCompositionStart"),!p)return null;QE&&!r1(l)&&(!Cc&&p==="onCompositionStart"?Cc=h$(d):p==="onCompositionEnd"&&Cc&&(g=HE()));var b=Tp(o,p);if(b.length>0){var T=new GE(p,r,null,l,d);if(n.push({event:T,listeners:b}),g)T.data=g;else{var D=n1(l);D!==null&&(T.data=D)}}}function q$(n,r){switch(n){case"compositionend":return n1(r);case"keypress":var o=r.which;return o!==ZE?null:(e1=!0,JE);case"textInput":var l=r.data;return l===JE&&e1?null:l;default:return null}}function G$(n,r){if(Cc){if(n==="compositionend"||!ib&&t1(n,r)){var o=HE();return p$(),Cc=!1,o}return null}switch(n){case"paste":return null;case"keypress":if(!U$(r)){if(r.char&&r.char.length>1)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return QE&&!r1(r)?null:r.data;default:return null}}function X$(n,r,o,l,d){var p;if(V$?p=q$(r,l):p=G$(r,l),!p)return null;var g=Tp(o,"onBeforeInput");if(g.length>0){var b=new E$("onBeforeInput","beforeinput",null,l,d);n.push({event:b,listeners:g}),b.data=p}}function K$(n,r,o,l,d,p,g){Y$(n,r,o,l,d),X$(n,r,o,l,d)}var Q$={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 a1(n){var r=n&&n.nodeName&&n.nodeName.toLowerCase();return r==="input"?!!Q$[n.type]:r==="textarea"}/**
79
- * Checks if an event is supported in the current execution environment.
80
- *
81
- * NOTE: This will not work correctly for non-generic events such as `change`,
82
- * `reset`, `load`, `error`, and `select`.
83
- *
84
- * Borrows from Modernizr.
85
- *
86
- * @param {string} eventNameSuffix Event name, e.g. "click".
87
- * @return {boolean} True if the event is supported.
88
- * @internal
89
- * @license Modernizr 3.0.0pre (Custom Build) | MIT
90
- */function Z$(n){if(!ut)return!1;var r="on"+n,o=r in document;if(!o){var l=document.createElement("div");l.setAttribute(r,"return;"),o=typeof l[r]=="function"}return o}function J$(){jt("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function i1(n,r,o,l){nE(l);var d=Tp(r,"onChange");if(d.length>0){var p=new eb("onChange","change",null,o,l);n.push({event:p,listeners:d})}}var Od=null,Md=null;function ez(n){var r=n.nodeName&&n.nodeName.toLowerCase();return r==="select"||r==="input"&&n.type==="file"}function tz(n){var r=[];i1(r,Md,n,iy(n)),oE(nz,r)}function nz(n){C1(n,0)}function xp(n){var r=_c(n);if(P(r))return n}function rz(n,r){if(n==="change")return r}var o1=!1;ut&&(o1=Z$("input")&&(!document.documentMode||document.documentMode>9));function az(n,r){Od=n,Md=r,Od.attachEvent("onpropertychange",l1)}function s1(){Od&&(Od.detachEvent("onpropertychange",l1),Od=null,Md=null)}function l1(n){n.propertyName==="value"&&xp(Md)&&tz(n)}function iz(n,r,o){n==="focusin"?(s1(),az(r,o)):n==="focusout"&&s1()}function oz(n,r){if(n==="selectionchange"||n==="keyup"||n==="keydown")return xp(Md)}function sz(n){var r=n.nodeName;return r&&r.toLowerCase()==="input"&&(n.type==="checkbox"||n.type==="radio")}function lz(n,r){if(n==="click")return xp(r)}function cz(n,r){if(n==="input"||n==="change")return xp(r)}function uz(n){var r=n._wrapperState;!r||!r.controlled||n.type!=="number"||dt(n,"number",n.value)}function dz(n,r,o,l,d,p,g){var b=o?_c(o):window,T,D;if(ez(b)?T=rz:a1(b)?o1?T=cz:(T=oz,D=iz):sz(b)&&(T=lz),T){var A=T(r,o);if(A){i1(n,A,l,d);return}}D&&D(r,b,o),r==="focusout"&&uz(b)}function fz(){be("onMouseEnter",["mouseout","mouseover"]),be("onMouseLeave",["mouseout","mouseover"]),be("onPointerEnter",["pointerout","pointerover"]),be("onPointerLeave",["pointerout","pointerover"])}function hz(n,r,o,l,d,p,g){var b=r==="mouseover"||r==="pointerover",T=r==="mouseout"||r==="pointerout";if(b&&!AL(l)){var D=l.relatedTarget||l.fromElement;if(D&&(ml(D)||qd(D)))return}if(!(!T&&!b)){var A;if(d.window===d)A=d;else{var U=d.ownerDocument;U?A=U.defaultView||U.parentWindow:A=window}var B,ne;if(T){var ie=l.relatedTarget||l.toElement;if(B=o,ne=ie?ml(ie):null,ne!==null){var fe=sl(ne);(ne!==fe||ne.tag!==S&&ne.tag!==R)&&(ne=null)}}else B=null,ne=o;if(B!==ne){var Le=qE,Je="onMouseLeave",Xe="onMouseEnter",Yt="mouse";(r==="pointerout"||r==="pointerover")&&(Le=XE,Je="onPointerLeave",Xe="onPointerEnter",Yt="pointer");var zt=B==null?A:_c(B),Z=ne==null?A:_c(ne),he=new Le(Je,Yt+"leave",B,l,d);he.target=zt,he.relatedTarget=Z;var J=null,Ce=ml(d);if(Ce===o){var Be=new Le(Xe,Yt+"enter",ne,l,d);Be.target=Z,Be.relatedTarget=zt,J=Be}$z(n,he,J,B,ne)}}}function pz(n,r){return n===r&&(n!==0||1/n===1/r)||n!==n&&r!==r}var ja=typeof Object.is=="function"?Object.is:pz;function Nd(n,r){if(ja(n,r))return!0;if(typeof n!="object"||n===null||typeof r!="object"||r===null)return!1;var o=Object.keys(n),l=Object.keys(r);if(o.length!==l.length)return!1;for(var d=0;d<o.length;d++){var p=o[d];if(!Et.call(r,p)||!ja(n[p],r[p]))return!1}return!0}function c1(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function mz(n){for(;n;){if(n.nextSibling)return n.nextSibling;n=n.parentNode}}function u1(n,r){for(var o=c1(n),l=0,d=0;o;){if(o.nodeType===So){if(d=l+o.textContent.length,l<=r&&d>=r)return{node:o,offset:r-l};l=d}o=c1(mz(o))}}function vz(n){var r=n.ownerDocument,o=r&&r.defaultView||window,l=o.getSelection&&o.getSelection();if(!l||l.rangeCount===0)return null;var d=l.anchorNode,p=l.anchorOffset,g=l.focusNode,b=l.focusOffset;try{d.nodeType,g.nodeType}catch{return null}return gz(n,d,p,g,b)}function gz(n,r,o,l,d){var p=0,g=-1,b=-1,T=0,D=0,A=n,U=null;e:for(;;){for(var B=null;A===r&&(o===0||A.nodeType===So)&&(g=p+o),A===l&&(d===0||A.nodeType===So)&&(b=p+d),A.nodeType===So&&(p+=A.nodeValue.length),(B=A.firstChild)!==null;)U=A,A=B;for(;;){if(A===n)break e;if(U===r&&++T===o&&(g=p),U===l&&++D===d&&(b=p),(B=A.nextSibling)!==null)break;A=U,U=A.parentNode}A=B}return g===-1||b===-1?null:{start:g,end:b}}function yz(n,r){var o=n.ownerDocument||document,l=o&&o.defaultView||window;if(l.getSelection){var d=l.getSelection(),p=n.textContent.length,g=Math.min(r.start,p),b=r.end===void 0?g:Math.min(r.end,p);if(!d.extend&&g>b){var T=b;b=g,g=T}var D=u1(n,g),A=u1(n,b);if(D&&A){if(d.rangeCount===1&&d.anchorNode===D.node&&d.anchorOffset===D.offset&&d.focusNode===A.node&&d.focusOffset===A.offset)return;var U=o.createRange();U.setStart(D.node,D.offset),d.removeAllRanges(),g>b?(d.addRange(U),d.extend(A.node,A.offset)):(U.setEnd(A.node,A.offset),d.addRange(U))}}}function d1(n){return n&&n.nodeType===So}function f1(n,r){return!n||!r?!1:n===r?!0:d1(n)?!1:d1(r)?f1(n,r.parentNode):"contains"in n?n.contains(r):n.compareDocumentPosition?!!(n.compareDocumentPosition(r)&16):!1}function bz(n){return n&&n.ownerDocument&&f1(n.ownerDocument.documentElement,n)}function xz(n){try{return typeof n.contentWindow.location.href=="string"}catch{return!1}}function h1(){for(var n=window,r=V();r instanceof n.HTMLIFrameElement;){if(xz(r))n=r.contentWindow;else return r;r=V(n.document)}return r}function ob(n){var r=n&&n.nodeName&&n.nodeName.toLowerCase();return r&&(r==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||r==="textarea"||n.contentEditable==="true")}function Sz(){var n=h1();return{focusedElem:n,selectionRange:ob(n)?Cz(n):null}}function wz(n){var r=h1(),o=n.focusedElem,l=n.selectionRange;if(r!==o&&bz(o)){l!==null&&ob(o)&&Tz(o,l);for(var d=[],p=o;p=p.parentNode;)p.nodeType===ga&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});typeof o.focus=="function"&&o.focus();for(var g=0;g<d.length;g++){var b=d[g];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}}function Cz(n){var r;return"selectionStart"in n?r={start:n.selectionStart,end:n.selectionEnd}:r=vz(n),r||{start:0,end:0}}function Tz(n,r){var o=r.start,l=r.end;l===void 0&&(l=o),"selectionStart"in n?(n.selectionStart=o,n.selectionEnd=Math.min(l,n.value.length)):yz(n,r)}var Ez=ut&&"documentMode"in document&&document.documentMode<=11;function Rz(){jt("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var Tc=null,sb=null,Pd=null,lb=!1;function kz(n){if("selectionStart"in n&&ob(n))return{start:n.selectionStart,end:n.selectionEnd};var r=n.ownerDocument&&n.ownerDocument.defaultView||window,o=r.getSelection();return{anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}}function Dz(n){return n.window===n?n.document:n.nodeType===wo?n:n.ownerDocument}function p1(n,r,o){var l=Dz(o);if(!(lb||Tc==null||Tc!==V(l))){var d=kz(Tc);if(!Pd||!Nd(Pd,d)){Pd=d;var p=Tp(sb,"onSelect");if(p.length>0){var g=new eb("onSelect","select",null,r,o);n.push({event:g,listeners:p}),g.target=Tc}}}}function _z(n,r,o,l,d,p,g){var b=o?_c(o):window;switch(r){case"focusin":(a1(b)||b.contentEditable==="true")&&(Tc=b,sb=o,Pd=null);break;case"focusout":Tc=null,sb=null,Pd=null;break;case"mousedown":lb=!0;break;case"contextmenu":case"mouseup":case"dragend":lb=!1,p1(n,l,d);break;case"selectionchange":if(Ez)break;case"keydown":case"keyup":p1(n,l,d)}}function Sp(n,r){var o={};return o[n.toLowerCase()]=r.toLowerCase(),o["Webkit"+n]="webkit"+r,o["Moz"+n]="moz"+r,o}var Ec={animationend:Sp("Animation","AnimationEnd"),animationiteration:Sp("Animation","AnimationIteration"),animationstart:Sp("Animation","AnimationStart"),transitionend:Sp("Transition","TransitionEnd")},cb={},m1={};ut&&(m1=document.createElement("div").style,"AnimationEvent"in window||(delete Ec.animationend.animation,delete Ec.animationiteration.animation,delete Ec.animationstart.animation),"TransitionEvent"in window||delete Ec.transitionend.transition);function wp(n){if(cb[n])return cb[n];if(!Ec[n])return n;var r=Ec[n];for(var o in r)if(r.hasOwnProperty(o)&&o in m1)return cb[n]=r[o];return n}var v1=wp("animationend"),g1=wp("animationiteration"),y1=wp("animationstart"),b1=wp("transitionend"),x1=new Map,S1=["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 hs(n,r){x1.set(n,r),jt(r,[n])}function Az(){for(var n=0;n<S1.length;n++){var r=S1[n],o=r.toLowerCase(),l=r[0].toUpperCase()+r.slice(1);hs(o,"on"+l)}hs(v1,"onAnimationEnd"),hs(g1,"onAnimationIteration"),hs(y1,"onAnimationStart"),hs("dblclick","onDoubleClick"),hs("focusin","onFocus"),hs("focusout","onBlur"),hs(b1,"onTransitionEnd")}function Oz(n,r,o,l,d,p,g){var b=x1.get(r);if(b!==void 0){var T=eb,D=r;switch(r){case"keypress":if(gp(l)===0)return;case"keydown":case"keyup":T=M$;break;case"focusin":D="focus",T=rb;break;case"focusout":D="blur",T=rb;break;case"beforeblur":case"afterblur":T=rb;break;case"click":if(l.button===2)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":T=qE;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":T=y$;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":T=j$;break;case v1:case g1:case y1:T=S$;break;case b1:T=$$;break;case"scroll":T=m$;break;case"wheel":T=F$;break;case"copy":case"cut":case"paste":T=C$;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":T=XE;break}var A=(p&id)!==0;{var U=!A&&r==="scroll",B=jz(o,b,l.type,A,U);if(B.length>0){var ne=new T(b,D,null,l,d);n.push({event:ne,listeners:B})}}}}Az(),fz(),J$(),Rz(),B$();function Mz(n,r,o,l,d,p,g){Oz(n,r,o,l,d,p);var b=(p&kL)===0;b&&(hz(n,r,o,l,d),dz(n,r,o,l,d),_z(n,r,o,l,d),K$(n,r,o,l,d))}var jd=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],ub=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(jd));function w1(n,r,o){var l=n.type||"unknown-event";n.currentTarget=o,FL(l,r,void 0,n),n.currentTarget=null}function Nz(n,r,o){var l;if(o)for(var d=r.length-1;d>=0;d--){var p=r[d],g=p.instance,b=p.currentTarget,T=p.listener;if(g!==l&&n.isPropagationStopped())return;w1(n,T,b),l=g}else for(var D=0;D<r.length;D++){var A=r[D],U=A.instance,B=A.currentTarget,ne=A.listener;if(U!==l&&n.isPropagationStopped())return;w1(n,ne,B),l=U}}function C1(n,r){for(var o=(r&id)!==0,l=0;l<n.length;l++){var d=n[l],p=d.event,g=d.listeners;Nz(p,g,o)}IL()}function Pz(n,r,o,l,d){var p=iy(o),g=[];Mz(g,n,l,o,p,r),C1(g,r)}function $n(n,r){ub.has(n)||c('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',n);var o=!1,l=uI(r),d=zz(n,o);l.has(d)||(T1(r,n,ay,o),l.add(d))}function db(n,r,o){ub.has(n)&&!r&&c('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',n);var l=0;r&&(l|=id),T1(o,n,l,r)}var Cp="_reactListening"+Math.random().toString(36).slice(2);function Ld(n){if(!n[Cp]){n[Cp]=!0,mt.forEach(function(o){o!=="selectionchange"&&(ub.has(o)||db(o,!1,n),db(o,!0,n))});var r=n.nodeType===wo?n:n.ownerDocument;r!==null&&(r[Cp]||(r[Cp]=!0,db("selectionchange",!1,r)))}}function T1(n,r,o,l,d){var p=i$(n,r,o),g=void 0;ly&&(r==="touchstart"||r==="touchmove"||r==="wheel")&&(g=!0),n=n,l?g!==void 0?d$(n,r,p,g):u$(n,r,p):g!==void 0?f$(n,r,p,g):c$(n,r,p)}function E1(n,r){return n===r||n.nodeType===sr&&n.parentNode===r}function fb(n,r,o,l,d){var p=l;if(!(r&eE)&&!(r&ay)){var g=d;if(l!==null){var b=l;e:for(;;){if(b===null)return;var T=b.tag;if(T===y||T===x){var D=b.stateNode.containerInfo;if(E1(D,g))break;if(T===x)for(var A=b.return;A!==null;){var U=A.tag;if(U===y||U===x){var B=A.stateNode.containerInfo;if(E1(B,g))return}A=A.return}for(;D!==null;){var ne=ml(D);if(ne===null)return;var ie=ne.tag;if(ie===S||ie===R){b=p=ne;continue e}D=D.parentNode}}b=b.return}}}oE(function(){return Pz(n,r,o,p)})}function $d(n,r,o){return{instance:n,listener:r,currentTarget:o}}function jz(n,r,o,l,d,p){for(var g=r!==null?r+"Capture":null,b=l?g:r,T=[],D=n,A=null;D!==null;){var U=D,B=U.stateNode,ne=U.tag;if(ne===S&&B!==null&&(A=B,b!==null)){var ie=sd(D,b);ie!=null&&T.push($d(D,ie,A))}if(d)break;D=D.return}return T}function Tp(n,r){for(var o=r+"Capture",l=[],d=n;d!==null;){var p=d,g=p.stateNode,b=p.tag;if(b===S&&g!==null){var T=g,D=sd(d,o);D!=null&&l.unshift($d(d,D,T));var A=sd(d,r);A!=null&&l.push($d(d,A,T))}d=d.return}return l}function Rc(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==S);return n||null}function Lz(n,r){for(var o=n,l=r,d=0,p=o;p;p=Rc(p))d++;for(var g=0,b=l;b;b=Rc(b))g++;for(;d-g>0;)o=Rc(o),d--;for(;g-d>0;)l=Rc(l),g--;for(var T=d;T--;){if(o===l||l!==null&&o===l.alternate)return o;o=Rc(o),l=Rc(l)}return null}function R1(n,r,o,l,d){for(var p=r._reactName,g=[],b=o;b!==null&&b!==l;){var T=b,D=T.alternate,A=T.stateNode,U=T.tag;if(D!==null&&D===l)break;if(U===S&&A!==null){var B=A;if(d){var ne=sd(b,p);ne!=null&&g.unshift($d(b,ne,B))}else if(!d){var ie=sd(b,p);ie!=null&&g.push($d(b,ie,B))}}b=b.return}g.length!==0&&n.push({event:r,listeners:g})}function $z(n,r,o,l,d){var p=l&&d?Lz(l,d):null;l!==null&&R1(n,r,l,p,!1),d!==null&&o!==null&&R1(n,o,d,p,!0)}function zz(n,r){return n+"__"+(r?"capture":"bubble")}var ya=!1,zd="dangerouslySetInnerHTML",Ep="suppressContentEditableWarning",ps="suppressHydrationWarning",k1="autoFocus",hl="children",pl="style",Rp="__html",hb,kp,Fd,D1,Dp,_1,A1;hb={dialog:!0,webview:!0},kp=function(n,r){xL(n,r),SL(n,r),RL(n,r,{registrationNameDependencies:gt,possibleRegistrationNames:it})},_1=ut&&!document.documentMode,Fd=function(n,r,o){if(!ya){var l=_p(o),d=_p(r);d!==l&&(ya=!0,c("Prop `%s` did not match. Server: %s Client: %s",n,JSON.stringify(d),JSON.stringify(l)))}},D1=function(n){if(!ya){ya=!0;var r=[];n.forEach(function(o){r.push(o)}),c("Extra attributes from the server: %s",r)}},Dp=function(n,r){r===!1?c("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.",n,n,n):c("Expected `%s` listener to be a function, instead got a value of `%s` type.",n,typeof r)},A1=function(n,r){var o=n.namespaceURI===xo?n.ownerDocument.createElement(n.tagName):n.ownerDocument.createElementNS(n.namespaceURI,n.tagName);return o.innerHTML=r,o.innerHTML};var Fz=/\r\n?/g,Iz=/\u0000|\uFFFD/g;function _p(n){un(n);var r=typeof n=="string"?n:""+n;return r.replace(Fz,`
91
- `).replace(Iz,"")}function Ap(n,r,o,l){var d=_p(r),p=_p(n);if(p!==d&&(l&&(ya||(ya=!0,c('Text content did not match. Server: "%s" Client: "%s"',p,d))),o&&oe))throw new Error("Text content does not match server-rendered HTML.")}function O1(n){return n.nodeType===wo?n:n.ownerDocument}function Vz(){}function Op(n){n.onclick=Vz}function Bz(n,r,o,l,d){for(var p in l)if(l.hasOwnProperty(p)){var g=l[p];if(p===pl)g&&Object.freeze(g),GT(r,g);else if(p===zd){var b=g?g[Rp]:void 0;b!=null&&UT(r,b)}else if(p===hl)if(typeof g=="string"){var T=n!=="textarea"||g!=="";T&&Jh(r,g)}else typeof g=="number"&&Jh(r,""+g);else p===Ep||p===ps||p===k1||(gt.hasOwnProperty(p)?g!=null&&(typeof g!="function"&&Dp(p,g),p==="onScroll"&&$n("scroll",r)):g!=null&&Pn(r,p,g,d))}}function Uz(n,r,o,l){for(var d=0;d<r.length;d+=2){var p=r[d],g=r[d+1];p===pl?GT(n,g):p===zd?UT(n,g):p===hl?Jh(n,g):Pn(n,p,g,l)}}function Hz(n,r,o,l){var d,p=O1(o),g,b=l;if(b===xo&&(b=Zg(n)),b===xo){if(d=nl(n,r),!d&&n!==n.toLowerCase()&&c("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",n),n==="script"){var T=p.createElement("div");T.innerHTML="<script><\/script>";var D=T.firstChild;g=T.removeChild(D)}else if(typeof r.is=="string")g=p.createElement(n,{is:r.is});else if(g=p.createElement(n),n==="select"){var A=g;r.multiple?A.multiple=!0:r.size&&(A.size=r.size)}}else g=p.createElementNS(b,n);return b===xo&&!d&&Object.prototype.toString.call(g)==="[object HTMLUnknownElement]"&&!Et.call(hb,n)&&(hb[n]=!0,c("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",n)),g}function Wz(n,r){return O1(r).createTextNode(n)}function Yz(n,r,o,l){var d=nl(r,o);kp(r,o);var p;switch(r){case"dialog":$n("cancel",n),$n("close",n),p=o;break;case"iframe":case"object":case"embed":$n("load",n),p=o;break;case"video":case"audio":for(var g=0;g<jd.length;g++)$n(jd[g],n);p=o;break;case"source":$n("error",n),p=o;break;case"img":case"image":case"link":$n("error",n),$n("load",n),p=o;break;case"details":$n("toggle",n),p=o;break;case"input":j(n,o),p=C(n,o),$n("invalid",n);break;case"option":kn(n,o),p=o;break;case"select":rd(n,o),p=nd(n,o),$n("invalid",n);break;case"textarea":IT(n,o),p=Kg(n,o),$n("invalid",n);break;default:p=o}switch(ry(r,p),Bz(r,n,l,p,d),r){case"input":fi(n),Te(n,o,!1);break;case"textarea":fi(n),BT(n);break;case"option":Ln(n,o);break;case"select":Xg(n,o);break;default:typeof p.onClick=="function"&&Op(n);break}}function qz(n,r,o,l,d){kp(r,l);var p=null,g,b;switch(r){case"input":g=C(n,o),b=C(n,l),p=[];break;case"select":g=nd(n,o),b=nd(n,l),p=[];break;case"textarea":g=Kg(n,o),b=Kg(n,l),p=[];break;default:g=o,b=l,typeof g.onClick!="function"&&typeof b.onClick=="function"&&Op(n);break}ry(r,b);var T,D,A=null;for(T in g)if(!(b.hasOwnProperty(T)||!g.hasOwnProperty(T)||g[T]==null))if(T===pl){var U=g[T];for(D in U)U.hasOwnProperty(D)&&(A||(A={}),A[D]="")}else T===zd||T===hl||T===Ep||T===ps||T===k1||(gt.hasOwnProperty(T)?p||(p=[]):(p=p||[]).push(T,null));for(T in b){var B=b[T],ne=g!=null?g[T]:void 0;if(!(!b.hasOwnProperty(T)||B===ne||B==null&&ne==null))if(T===pl)if(B&&Object.freeze(B),ne){for(D in ne)ne.hasOwnProperty(D)&&(!B||!B.hasOwnProperty(D))&&(A||(A={}),A[D]="");for(D in B)B.hasOwnProperty(D)&&ne[D]!==B[D]&&(A||(A={}),A[D]=B[D])}else A||(p||(p=[]),p.push(T,A)),A=B;else if(T===zd){var ie=B?B[Rp]:void 0,fe=ne?ne[Rp]:void 0;ie!=null&&fe!==ie&&(p=p||[]).push(T,ie)}else T===hl?(typeof B=="string"||typeof B=="number")&&(p=p||[]).push(T,""+B):T===Ep||T===ps||(gt.hasOwnProperty(T)?(B!=null&&(typeof B!="function"&&Dp(T,B),T==="onScroll"&&$n("scroll",n)),!p&&ne!==B&&(p=[])):(p=p||[]).push(T,B))}return A&&(fL(A,b[pl]),(p=p||[]).push(pl,A)),p}function Gz(n,r,o,l,d){o==="input"&&d.type==="radio"&&d.name!=null&&ee(n,d);var p=nl(o,l),g=nl(o,d);switch(Uz(n,r,p,g),o){case"input":se(n,d);break;case"textarea":VT(n,d);break;case"select":U2(n,d);break}}function Xz(n){{var r=n.toLowerCase();return ep.hasOwnProperty(r)&&ep[r]||null}}function Kz(n,r,o,l,d,p,g){var b,T;switch(b=nl(r,o),kp(r,o),r){case"dialog":$n("cancel",n),$n("close",n);break;case"iframe":case"object":case"embed":$n("load",n);break;case"video":case"audio":for(var D=0;D<jd.length;D++)$n(jd[D],n);break;case"source":$n("error",n);break;case"img":case"image":case"link":$n("error",n),$n("load",n);break;case"details":$n("toggle",n);break;case"input":j(n,o),$n("invalid",n);break;case"option":kn(n,o);break;case"select":rd(n,o),$n("invalid",n);break;case"textarea":IT(n,o),$n("invalid",n);break}ry(r,o);{T=new Set;for(var A=n.attributes,U=0;U<A.length;U++){var B=A[U].name.toLowerCase();switch(B){case"value":break;case"checked":break;case"selected":break;default:T.add(A[U].name)}}}var ne=null;for(var ie in o)if(o.hasOwnProperty(ie)){var fe=o[ie];if(ie===hl)typeof fe=="string"?n.textContent!==fe&&(o[ps]!==!0&&Ap(n.textContent,fe,p,g),ne=[hl,fe]):typeof fe=="number"&&n.textContent!==""+fe&&(o[ps]!==!0&&Ap(n.textContent,fe,p,g),ne=[hl,""+fe]);else if(gt.hasOwnProperty(ie))fe!=null&&(typeof fe!="function"&&Dp(ie,fe),ie==="onScroll"&&$n("scroll",n));else if(g&&typeof b=="boolean"){var Le=void 0,Je=b&&pe?null:Cn(ie);if(o[ps]!==!0){if(!(ie===Ep||ie===ps||ie==="value"||ie==="checked"||ie==="selected")){if(ie===zd){var Xe=n.innerHTML,Yt=fe?fe[Rp]:void 0;if(Yt!=null){var zt=A1(n,Yt);zt!==Xe&&Fd(ie,Xe,zt)}}else if(ie===pl){if(T.delete(ie),_1){var Z=uL(fe);Le=n.getAttribute("style"),Z!==Le&&Fd(ie,Le,Z)}}else if(b&&!pe)T.delete(ie.toLowerCase()),Le=Jn(n,ie,fe),fe!==Le&&Fd(ie,Le,fe);else if(!Ue(ie,Je,b)&&!kt(ie,fe,Je,b)){var he=!1;if(Je!==null)T.delete(Je.attributeName),Le=Lt(n,ie,fe,Je);else{var J=l;if(J===xo&&(J=Zg(r)),J===xo)T.delete(ie.toLowerCase());else{var Ce=Xz(ie);Ce!==null&&Ce!==ie&&(he=!0,T.delete(Ce)),T.delete(ie)}Le=Jn(n,ie,fe)}var Be=pe;!Be&&fe!==Le&&!he&&Fd(ie,Le,fe)}}}}}switch(g&&T.size>0&&o[ps]!==!0&&D1(T),r){case"input":fi(n),Te(n,o,!0);break;case"textarea":fi(n),BT(n);break;case"select":case"option":break;default:typeof o.onClick=="function"&&Op(n);break}return ne}function Qz(n,r,o){var l=n.nodeValue!==r;return l}function pb(n,r){{if(ya)return;ya=!0,c("Did not expect server HTML to contain a <%s> in <%s>.",r.nodeName.toLowerCase(),n.nodeName.toLowerCase())}}function mb(n,r){{if(ya)return;ya=!0,c('Did not expect server HTML to contain the text node "%s" in <%s>.',r.nodeValue,n.nodeName.toLowerCase())}}function vb(n,r,o){{if(ya)return;ya=!0,c("Expected server HTML to contain a matching <%s> in <%s>.",r,n.nodeName.toLowerCase())}}function gb(n,r){{if(r===""||ya)return;ya=!0,c('Expected server HTML to contain a matching text node for "%s" in <%s>.',r,n.nodeName.toLowerCase())}}function Zz(n,r,o){switch(r){case"input":et(n,o);return;case"textarea":W2(n,o);return;case"select":H2(n,o);return}}var Id=function(){},Vd=function(){};{var Jz=["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"],M1=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],eF=M1.concat(["button"]),tF=["dd","dt","li","option","optgroup","p","rp","rt"],N1={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};Vd=function(n,r){var o=Rt({},n||N1),l={tag:r};return M1.indexOf(r)!==-1&&(o.aTagInScope=null,o.buttonTagInScope=null,o.nobrTagInScope=null),eF.indexOf(r)!==-1&&(o.pTagInButtonScope=null),Jz.indexOf(r)!==-1&&r!=="address"&&r!=="div"&&r!=="p"&&(o.listItemTagAutoclosing=null,o.dlItemTagAutoclosing=null),o.current=l,r==="form"&&(o.formTag=l),r==="a"&&(o.aTagInScope=l),r==="button"&&(o.buttonTagInScope=l),r==="nobr"&&(o.nobrTagInScope=l),r==="p"&&(o.pTagInButtonScope=l),r==="li"&&(o.listItemTagAutoclosing=l),(r==="dd"||r==="dt")&&(o.dlItemTagAutoclosing=l),o};var nF=function(n,r){switch(r){case"select":return n==="option"||n==="optgroup"||n==="#text";case"optgroup":return n==="option"||n==="#text";case"option":return n==="#text";case"tr":return n==="th"||n==="td"||n==="style"||n==="script"||n==="template";case"tbody":case"thead":case"tfoot":return n==="tr"||n==="style"||n==="script"||n==="template";case"colgroup":return n==="col"||n==="template";case"table":return n==="caption"||n==="colgroup"||n==="tbody"||n==="tfoot"||n==="thead"||n==="style"||n==="script"||n==="template";case"head":return n==="base"||n==="basefont"||n==="bgsound"||n==="link"||n==="meta"||n==="title"||n==="noscript"||n==="noframes"||n==="style"||n==="script"||n==="template";case"html":return n==="head"||n==="body"||n==="frameset";case"frameset":return n==="frame";case"#document":return n==="html"}switch(n){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return r!=="h1"&&r!=="h2"&&r!=="h3"&&r!=="h4"&&r!=="h5"&&r!=="h6";case"rp":case"rt":return tF.indexOf(r)===-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 r==null}return!0},rF=function(n,r){switch(n){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 r.pTagInButtonScope;case"form":return r.formTag||r.pTagInButtonScope;case"li":return r.listItemTagAutoclosing;case"dd":case"dt":return r.dlItemTagAutoclosing;case"button":return r.buttonTagInScope;case"a":return r.aTagInScope;case"nobr":return r.nobrTagInScope}return null},P1={};Id=function(n,r,o){o=o||N1;var l=o.current,d=l&&l.tag;r!=null&&(n!=null&&c("validateDOMNesting: when childText is passed, childTag should be null"),n="#text");var p=nF(n,d)?null:l,g=p?null:rF(n,o),b=p||g;if(b){var T=b.tag,D=!!p+"|"+n+"|"+T;if(!P1[D]){P1[D]=!0;var A=n,U="";if(n==="#text"?/\S/.test(r)?A="Text nodes":(A="Whitespace text nodes",U=" Make sure you don't have any extra whitespace between tags on each line of your source code."):A="<"+n+">",p){var B="";T==="table"&&n==="tr"&&(B+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),c("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",A,T,U,B)}else c("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",A,T)}}}}var Mp="suppressHydrationWarning",Np="$",Pp="/$",Bd="$?",Ud="$!",aF="style",yb=null,bb=null;function iF(n){var r,o,l=n.nodeType;switch(l){case wo:case ey:{r=l===wo?"#document":"#fragment";var d=n.documentElement;o=d?d.namespaceURI:Jg(null,"");break}default:{var p=l===sr?n.parentNode:n,g=p.namespaceURI||null;r=p.tagName,o=Jg(g,r);break}}{var b=r.toLowerCase(),T=Vd(null,b);return{namespace:o,ancestorInfo:T}}}function oF(n,r,o){{var l=n,d=Jg(l.namespace,r),p=Vd(l.ancestorInfo,r);return{namespace:d,ancestorInfo:p}}}function Aoe(n){return n}function sF(n){yb=a$(),bb=Sz();var r=null;return BE(!1),r}function lF(n){wz(bb),BE(yb),yb=null,bb=null}function cF(n,r,o,l,d){var p;{var g=l;if(Id(n,null,g.ancestorInfo),typeof r.children=="string"||typeof r.children=="number"){var b=""+r.children,T=Vd(g.ancestorInfo,n);Id(null,b,T)}p=g.namespace}var D=Hz(n,r,o,p);return Yd(d,D),kb(D,r),D}function uF(n,r){n.appendChild(r)}function dF(n,r,o,l,d){switch(Yz(n,r,o,l),r){case"button":case"input":case"select":case"textarea":return!!o.autoFocus;case"img":return!0;default:return!1}}function fF(n,r,o,l,d,p){{var g=p;if(typeof l.children!=typeof o.children&&(typeof l.children=="string"||typeof l.children=="number")){var b=""+l.children,T=Vd(g.ancestorInfo,r);Id(null,b,T)}}return qz(n,r,o,l)}function xb(n,r){return n==="textarea"||n==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}function hF(n,r,o,l){{var d=o;Id(null,n,d.ancestorInfo)}var p=Wz(n,r);return Yd(l,p),p}function pF(){var n=window.event;return n===void 0?_o:UE(n.type)}var Sb=typeof setTimeout=="function"?setTimeout:void 0,mF=typeof clearTimeout=="function"?clearTimeout:void 0,wb=-1,j1=typeof Promise=="function"?Promise:void 0,vF=typeof queueMicrotask=="function"?queueMicrotask:typeof j1<"u"?function(n){return j1.resolve(null).then(n).catch(gF)}:Sb;function gF(n){setTimeout(function(){throw n})}function yF(n,r,o,l){switch(r){case"button":case"input":case"select":case"textarea":o.autoFocus&&n.focus();return;case"img":{o.src&&(n.src=o.src);return}}}function bF(n,r,o,l,d,p){Gz(n,r,o,l,d),kb(n,d)}function L1(n){Jh(n,"")}function xF(n,r,o){n.nodeValue=o}function SF(n,r){n.appendChild(r)}function wF(n,r){var o;n.nodeType===sr?(o=n.parentNode,o.insertBefore(r,n)):(o=n,o.appendChild(r));var l=n._reactRootContainer;l==null&&o.onclick===null&&Op(o)}function CF(n,r,o){n.insertBefore(r,o)}function TF(n,r,o){n.nodeType===sr?n.parentNode.insertBefore(r,o):n.insertBefore(r,o)}function EF(n,r){n.removeChild(r)}function RF(n,r){n.nodeType===sr?n.parentNode.removeChild(r):n.removeChild(r)}function Cb(n,r){var o=r,l=0;do{var d=o.nextSibling;if(n.removeChild(o),d&&d.nodeType===sr){var p=d.data;if(p===Pp)if(l===0){n.removeChild(d),Ed(r);return}else l--;else(p===Np||p===Bd||p===Ud)&&l++}o=d}while(o);Ed(r)}function kF(n,r){n.nodeType===sr?Cb(n.parentNode,r):n.nodeType===ga&&Cb(n,r),Ed(n)}function DF(n){n=n;var r=n.style;typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none"}function _F(n){n.nodeValue=""}function AF(n,r){n=n;var o=r[aF],l=o!=null&&o.hasOwnProperty("display")?o.display:null;n.style.display=ty("display",l)}function OF(n,r){n.nodeValue=r}function MF(n){n.nodeType===ga?n.textContent="":n.nodeType===wo&&n.documentElement&&n.removeChild(n.documentElement)}function NF(n,r,o){return n.nodeType!==ga||r.toLowerCase()!==n.nodeName.toLowerCase()?null:n}function PF(n,r){return r===""||n.nodeType!==So?null:n}function jF(n){return n.nodeType!==sr?null:n}function $1(n){return n.data===Bd}function Tb(n){return n.data===Ud}function LF(n){var r=n.nextSibling&&n.nextSibling.dataset,o,l,d;return r&&(o=r.dgst,l=r.msg,d=r.stck),{message:l,digest:o,stack:d}}function $F(n,r){n._reactRetry=r}function jp(n){for(;n!=null;n=n.nextSibling){var r=n.nodeType;if(r===ga||r===So)break;if(r===sr){var o=n.data;if(o===Np||o===Ud||o===Bd)break;if(o===Pp)return null}}return n}function Hd(n){return jp(n.nextSibling)}function zF(n){return jp(n.firstChild)}function FF(n){return jp(n.firstChild)}function IF(n){return jp(n.nextSibling)}function VF(n,r,o,l,d,p,g){Yd(p,n),kb(n,o);var b;{var T=d;b=T.namespace}var D=(p.mode&Ht)!==nt;return Kz(n,r,o,b,l,D,g)}function BF(n,r,o,l){return Yd(o,n),o.mode&Ht,Qz(n,r)}function UF(n,r){Yd(r,n)}function HF(n){for(var r=n.nextSibling,o=0;r;){if(r.nodeType===sr){var l=r.data;if(l===Pp){if(o===0)return Hd(r);o--}else(l===Np||l===Ud||l===Bd)&&o++}r=r.nextSibling}return null}function z1(n){for(var r=n.previousSibling,o=0;r;){if(r.nodeType===sr){var l=r.data;if(l===Np||l===Ud||l===Bd){if(o===0)return r;o--}else l===Pp&&o++}r=r.previousSibling}return null}function WF(n){Ed(n)}function YF(n){Ed(n)}function qF(n){return n!=="head"&&n!=="body"}function GF(n,r,o,l){var d=!0;Ap(r.nodeValue,o,l,d)}function XF(n,r,o,l,d,p){if(r[Mp]!==!0){var g=!0;Ap(l.nodeValue,d,p,g)}}function KF(n,r){r.nodeType===ga?pb(n,r):r.nodeType===sr||mb(n,r)}function QF(n,r){{var o=n.parentNode;o!==null&&(r.nodeType===ga?pb(o,r):r.nodeType===sr||mb(o,r))}}function ZF(n,r,o,l,d){(d||r[Mp]!==!0)&&(l.nodeType===ga?pb(o,l):l.nodeType===sr||mb(o,l))}function JF(n,r,o){vb(n,r)}function eI(n,r){gb(n,r)}function tI(n,r,o){{var l=n.parentNode;l!==null&&vb(l,r)}}function nI(n,r){{var o=n.parentNode;o!==null&&gb(o,r)}}function rI(n,r,o,l,d,p){(p||r[Mp]!==!0)&&vb(o,l)}function aI(n,r,o,l,d){(d||r[Mp]!==!0)&&gb(o,l)}function iI(n){c("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",n.nodeName.toLowerCase())}function oI(n){Ld(n)}var kc=Math.random().toString(36).slice(2),Dc="__reactFiber$"+kc,Eb="__reactProps$"+kc,Wd="__reactContainer$"+kc,Rb="__reactEvents$"+kc,sI="__reactListeners$"+kc,lI="__reactHandles$"+kc;function cI(n){delete n[Dc],delete n[Eb],delete n[Rb],delete n[sI],delete n[lI]}function Yd(n,r){r[Dc]=n}function Lp(n,r){r[Wd]=n}function F1(n){n[Wd]=null}function qd(n){return!!n[Wd]}function ml(n){var r=n[Dc];if(r)return r;for(var o=n.parentNode;o;){if(r=o[Wd]||o[Dc],r){var l=r.alternate;if(r.child!==null||l!==null&&l.child!==null)for(var d=z1(n);d!==null;){var p=d[Dc];if(p)return p;d=z1(d)}return r}n=o,o=n.parentNode}return null}function ms(n){var r=n[Dc]||n[Wd];return r&&(r.tag===S||r.tag===R||r.tag===L||r.tag===y)?r:null}function _c(n){if(n.tag===S||n.tag===R)return n.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function $p(n){return n[Eb]||null}function kb(n,r){n[Eb]=r}function uI(n){var r=n[Rb];return r===void 0&&(r=n[Rb]=new Set),r}var I1={},V1=a.ReactDebugCurrentFrame;function zp(n){if(n){var r=n._owner,o=Li(n.type,n._source,r?r.type:null);V1.setExtraStackFrame(o)}else V1.setExtraStackFrame(null)}function gi(n,r,o,l,d){{var p=Function.call.bind(Et);for(var g in n)if(p(n,g)){var b=void 0;try{if(typeof n[g]!="function"){var T=Error((l||"React class")+": "+o+" type `"+g+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof n[g]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw T.name="Invariant Violation",T}b=n[g](r,g,l,o,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(D){b=D}b&&!(b instanceof Error)&&(zp(d),c("%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).",l||"React class",o,g,typeof b),zp(null)),b instanceof Error&&!(b.message in I1)&&(I1[b.message]=!0,zp(d),c("Failed %s type: %s",o,b.message),zp(null))}}}var Db=[],Fp;Fp=[];var Ao=-1;function vs(n){return{current:n}}function Wr(n,r){if(Ao<0){c("Unexpected pop.");return}r!==Fp[Ao]&&c("Unexpected Fiber popped."),n.current=Db[Ao],Db[Ao]=null,Fp[Ao]=null,Ao--}function Yr(n,r,o){Ao++,Db[Ao]=n.current,Fp[Ao]=o,n.current=r}var _b;_b={};var La={};Object.freeze(La);var Oo=vs(La),Vi=vs(!1),Ab=La;function Ac(n,r,o){return o&&Bi(r)?Ab:Oo.current}function B1(n,r,o){{var l=n.stateNode;l.__reactInternalMemoizedUnmaskedChildContext=r,l.__reactInternalMemoizedMaskedChildContext=o}}function Oc(n,r){{var o=n.type,l=o.contextTypes;if(!l)return La;var d=n.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===r)return d.__reactInternalMemoizedMaskedChildContext;var p={};for(var g in l)p[g]=r[g];{var b=Tt(n)||"Unknown";gi(l,p,"context",b)}return d&&B1(n,r,p),p}}function Ip(){return Vi.current}function Bi(n){{var r=n.childContextTypes;return r!=null}}function Vp(n){Wr(Vi,n),Wr(Oo,n)}function Ob(n){Wr(Vi,n),Wr(Oo,n)}function U1(n,r,o){{if(Oo.current!==La)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");Yr(Oo,r,n),Yr(Vi,o,n)}}function H1(n,r,o){{var l=n.stateNode,d=r.childContextTypes;if(typeof l.getChildContext!="function"){{var p=Tt(n)||"Unknown";_b[p]||(_b[p]=!0,c("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",p,p))}return o}var g=l.getChildContext();for(var b in g)if(!(b in d))throw new Error((Tt(n)||"Unknown")+'.getChildContext(): key "'+b+'" is not defined in childContextTypes.');{var T=Tt(n)||"Unknown";gi(d,g,"child context",T)}return Rt({},o,g)}}function Bp(n){{var r=n.stateNode,o=r&&r.__reactInternalMemoizedMergedChildContext||La;return Ab=Oo.current,Yr(Oo,o,n),Yr(Vi,Vi.current,n),!0}}function W1(n,r,o){{var l=n.stateNode;if(!l)throw new Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");if(o){var d=H1(n,r,Ab);l.__reactInternalMemoizedMergedChildContext=d,Wr(Vi,n),Wr(Oo,n),Yr(Oo,d,n),Yr(Vi,o,n)}else Wr(Vi,n),Yr(Vi,o,n)}}function dI(n){{if(!qL(n)||n.tag!==m)throw new Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");var r=n;do{switch(r.tag){case y:return r.stateNode.context;case m:{var o=r.type;if(Bi(o))return r.stateNode.__reactInternalMemoizedMergedChildContext;break}}r=r.return}while(r!==null);throw new Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}}var gs=0,Up=1,Mo=null,Mb=!1,Nb=!1;function Y1(n){Mo===null?Mo=[n]:Mo.push(n)}function fI(n){Mb=!0,Y1(n)}function q1(){Mb&&ys()}function ys(){if(!Nb&&Mo!==null){Nb=!0;var n=0,r=mi();try{var o=!0,l=Mo;for(Rr(Na);n<l.length;n++){var d=l[n];do d=d(o);while(d!==null)}Mo=null,Mb=!1}catch(p){throw Mo!==null&&(Mo=Mo.slice(n+1)),gE(ip,ys),p}finally{Rr(r),Nb=!1}}return null}var Mc=[],Nc=0,Hp=null,Wp=0,Ya=[],qa=0,vl=null,No=1,Po="";function hI(n){return yl(),(n.flags&cE)!==st}function pI(n){return yl(),Wp}function mI(){var n=Po,r=No,o=r&~vI(r);return o.toString(32)+n}function gl(n,r){yl(),Mc[Nc++]=Wp,Mc[Nc++]=Hp,Hp=n,Wp=r}function G1(n,r,o){yl(),Ya[qa++]=No,Ya[qa++]=Po,Ya[qa++]=vl,vl=n;var l=No,d=Po,p=Yp(l)-1,g=l&~(1<<p),b=o+1,T=Yp(r)+p;if(T>30){var D=p-p%5,A=(1<<D)-1,U=(g&A).toString(32),B=g>>D,ne=p-D,ie=Yp(r)+ne,fe=b<<ne,Le=fe|B,Je=U+d;No=1<<ie|Le,Po=Je}else{var Xe=b<<p,Yt=Xe|g,zt=d;No=1<<T|Yt,Po=zt}}function Pb(n){yl();var r=n.return;if(r!==null){var o=1,l=0;gl(n,o),G1(n,o,l)}}function Yp(n){return 32-CE(n)}function vI(n){return 1<<Yp(n)-1}function jb(n){for(;n===Hp;)Hp=Mc[--Nc],Mc[Nc]=null,Wp=Mc[--Nc],Mc[Nc]=null;for(;n===vl;)vl=Ya[--qa],Ya[qa]=null,Po=Ya[--qa],Ya[qa]=null,No=Ya[--qa],Ya[qa]=null}function gI(){return yl(),vl!==null?{id:No,overflow:Po}:null}function yI(n,r){yl(),Ya[qa++]=No,Ya[qa++]=Po,Ya[qa++]=vl,No=r.id,Po=r.overflow,vl=n}function yl(){Ar()||c("Expected to be hydrating. This is a bug in React. Please file an issue.")}var _r=null,Ga=null,yi=!1,bl=!1,bs=null;function bI(){yi&&c("We should not be hydrating here. This is a bug in React. Please file a bug.")}function X1(){bl=!0}function xI(){return bl}function SI(n){var r=n.stateNode.containerInfo;return Ga=FF(r),_r=n,yi=!0,bs=null,bl=!1,!0}function wI(n,r,o){return Ga=IF(r),_r=n,yi=!0,bs=null,bl=!1,o!==null&&yI(n,o),!0}function K1(n,r){switch(n.tag){case y:{KF(n.stateNode.containerInfo,r);break}case S:{var o=(n.mode&Ht)!==nt;ZF(n.type,n.memoizedProps,n.stateNode,r,o);break}case L:{var l=n.memoizedState;l.dehydrated!==null&&QF(l.dehydrated,r);break}}}function Q1(n,r){K1(n,r);var o=RU();o.stateNode=r,o.return=n;var l=n.deletions;l===null?(n.deletions=[o],n.flags|=rl):l.push(o)}function Lb(n,r){{if(bl)return;switch(n.tag){case y:{var o=n.stateNode.containerInfo;switch(r.tag){case S:var l=r.type;r.pendingProps,JF(o,l);break;case R:var d=r.pendingProps;eI(o,d);break}break}case S:{var p=n.type,g=n.memoizedProps,b=n.stateNode;switch(r.tag){case S:{var T=r.type,D=r.pendingProps,A=(n.mode&Ht)!==nt;rI(p,g,b,T,D,A);break}case R:{var U=r.pendingProps,B=(n.mode&Ht)!==nt;aI(p,g,b,U,B);break}}break}case L:{var ne=n.memoizedState,ie=ne.dehydrated;if(ie!==null)switch(r.tag){case S:var fe=r.type;r.pendingProps,tI(ie,fe);break;case R:var Le=r.pendingProps;nI(ie,Le);break}break}default:return}}}function Z1(n,r){r.flags=r.flags&~To|lr,Lb(n,r)}function J1(n,r){switch(n.tag){case S:{var o=n.type;n.pendingProps;var l=NF(r,o);return l!==null?(n.stateNode=l,_r=n,Ga=zF(l),!0):!1}case R:{var d=n.pendingProps,p=PF(r,d);return p!==null?(n.stateNode=p,_r=n,Ga=null,!0):!1}case L:{var g=jF(r);if(g!==null){var b={dehydrated:g,treeContext:gI(),retryLane:Oa};n.memoizedState=b;var T=kU(g);return T.return=n,n.child=T,_r=n,Ga=null,!0}return!1}default:return!1}}function $b(n){return(n.mode&Ht)!==nt&&(n.flags&ln)===st}function zb(n){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function Fb(n){if(yi){var r=Ga;if(!r){$b(n)&&(Lb(_r,n),zb()),Z1(_r,n),yi=!1,_r=n;return}var o=r;if(!J1(n,r)){$b(n)&&(Lb(_r,n),zb()),r=Hd(o);var l=_r;if(!r||!J1(n,r)){Z1(_r,n),yi=!1,_r=n;return}Q1(l,o)}}}function CI(n,r,o){var l=n.stateNode,d=!bl,p=VF(l,n.type,n.memoizedProps,r,o,n,d);return n.updateQueue=p,p!==null}function TI(n){var r=n.stateNode,o=n.memoizedProps,l=BF(r,o,n);if(l){var d=_r;if(d!==null)switch(d.tag){case y:{var p=d.stateNode.containerInfo,g=(d.mode&Ht)!==nt;GF(p,r,o,g);break}case S:{var b=d.type,T=d.memoizedProps,D=d.stateNode,A=(d.mode&Ht)!==nt;XF(b,T,D,r,o,A);break}}}return l}function EI(n){var r=n.memoizedState,o=r!==null?r.dehydrated:null;if(!o)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");UF(o,n)}function RI(n){var r=n.memoizedState,o=r!==null?r.dehydrated:null;if(!o)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return HF(o)}function eR(n){for(var r=n.return;r!==null&&r.tag!==S&&r.tag!==y&&r.tag!==L;)r=r.return;_r=r}function qp(n){if(n!==_r)return!1;if(!yi)return eR(n),yi=!0,!1;if(n.tag!==y&&(n.tag!==S||qF(n.type)&&!xb(n.type,n.memoizedProps))){var r=Ga;if(r)if($b(n))tR(n),zb();else for(;r;)Q1(n,r),r=Hd(r)}return eR(n),n.tag===L?Ga=RI(n):Ga=_r?Hd(n.stateNode):null,!0}function kI(){return yi&&Ga!==null}function tR(n){for(var r=Ga;r;)K1(n,r),r=Hd(r)}function Pc(){_r=null,Ga=null,yi=!1,bl=!1}function nR(){bs!==null&&(Xk(bs),bs=null)}function Ar(){return yi}function Ib(n){bs===null?bs=[n]:bs.push(n)}var DI=a.ReactCurrentBatchConfig,_I=null;function AI(){return DI.transition}var bi={recordUnsafeLifecycleWarnings:function(n,r){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(n,r){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var OI=function(n){for(var r=null,o=n;o!==null;)o.mode&Kn&&(r=o),o=o.return;return r},xl=function(n){var r=[];return n.forEach(function(o){r.push(o)}),r.sort().join(", ")},Gd=[],Xd=[],Kd=[],Qd=[],Zd=[],Jd=[],Sl=new Set;bi.recordUnsafeLifecycleWarnings=function(n,r){Sl.has(n.type)||(typeof r.componentWillMount=="function"&&r.componentWillMount.__suppressDeprecationWarning!==!0&&Gd.push(n),n.mode&Kn&&typeof r.UNSAFE_componentWillMount=="function"&&Xd.push(n),typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Kd.push(n),n.mode&Kn&&typeof r.UNSAFE_componentWillReceiveProps=="function"&&Qd.push(n),typeof r.componentWillUpdate=="function"&&r.componentWillUpdate.__suppressDeprecationWarning!==!0&&Zd.push(n),n.mode&Kn&&typeof r.UNSAFE_componentWillUpdate=="function"&&Jd.push(n))},bi.flushPendingUnsafeLifecycleWarnings=function(){var n=new Set;Gd.length>0&&(Gd.forEach(function(B){n.add(Tt(B)||"Component"),Sl.add(B.type)}),Gd=[]);var r=new Set;Xd.length>0&&(Xd.forEach(function(B){r.add(Tt(B)||"Component"),Sl.add(B.type)}),Xd=[]);var o=new Set;Kd.length>0&&(Kd.forEach(function(B){o.add(Tt(B)||"Component"),Sl.add(B.type)}),Kd=[]);var l=new Set;Qd.length>0&&(Qd.forEach(function(B){l.add(Tt(B)||"Component"),Sl.add(B.type)}),Qd=[]);var d=new Set;Zd.length>0&&(Zd.forEach(function(B){d.add(Tt(B)||"Component"),Sl.add(B.type)}),Zd=[]);var p=new Set;if(Jd.length>0&&(Jd.forEach(function(B){p.add(Tt(B)||"Component"),Sl.add(B.type)}),Jd=[]),r.size>0){var g=xl(r);c(`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.
92
-
93
- * Move code with side effects to componentDidMount, and set initial state in the constructor.
94
-
95
- Please update the following components: %s`,g)}if(l.size>0){var b=xl(l);c(`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.
96
-
97
- * Move data fetching code or side effects to componentDidUpdate.
98
- * 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
99
-
100
- Please update the following components: %s`,b)}if(p.size>0){var T=xl(p);c(`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.
101
-
102
- * Move data fetching code or side effects to componentDidUpdate.
103
-
104
- Please update the following components: %s`,T)}if(n.size>0){var D=xl(n);u(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
105
-
106
- * Move code with side effects to componentDidMount, and set initial state in the constructor.
107
- * 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.
108
-
109
- Please update the following components: %s`,D)}if(o.size>0){var A=xl(o);u(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
110
-
111
- * Move data fetching code or side effects to componentDidUpdate.
112
- * 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
113
- * 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.
114
-
115
- Please update the following components: %s`,A)}if(d.size>0){var U=xl(d);u(`componentWillUpdate has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
116
-
117
- * Move data fetching code or side effects to componentDidUpdate.
118
- * 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.
119
-
120
- Please update the following components: %s`,U)}};var Gp=new Map,rR=new Set;bi.recordLegacyContextWarning=function(n,r){var o=OI(n);if(o===null){c("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(!rR.has(n.type)){var l=Gp.get(o);(n.type.contextTypes!=null||n.type.childContextTypes!=null||r!==null&&typeof r.getChildContext=="function")&&(l===void 0&&(l=[],Gp.set(o,l)),l.push(n))}},bi.flushLegacyContextWarning=function(){Gp.forEach(function(n,r){if(n.length!==0){var o=n[0],l=new Set;n.forEach(function(p){l.add(Tt(p)||"Component"),rR.add(p.type)});var d=xl(l);try{On(o),c(`Legacy context API has been detected within a strict-mode tree.
121
-
122
- The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
123
-
124
- Please update the following components: %s
125
-
126
- Learn more about this warning here: https://reactjs.org/link/legacy-context`,d)}finally{or()}}})},bi.discardPendingWarnings=function(){Gd=[],Xd=[],Kd=[],Qd=[],Zd=[],Jd=[],Gp=new Map}}var Vb,Bb,Ub,Hb,Wb,aR=function(n,r){};Vb=!1,Bb=!1,Ub={},Hb={},Wb={},aR=function(n,r){if(!(n===null||typeof n!="object")&&!(!n._store||n._store.validated||n.key!=null)){if(typeof n._store!="object")throw new Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");n._store.validated=!0;var o=Tt(r)||"Component";Hb[o]||(Hb[o]=!0,c('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.'))}};function MI(n){return n.prototype&&n.prototype.isReactComponent}function ef(n,r,o){var l=o.ref;if(l!==null&&typeof l!="function"&&typeof l!="object"){if((n.mode&Kn||Me)&&!(o._owner&&o._self&&o._owner.stateNode!==o._self)&&!(o._owner&&o._owner.tag!==m)&&!(typeof o.type=="function"&&!MI(o.type))&&o._owner){var d=Tt(n)||"Component";Ub[d]||(c('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',d,l),Ub[d]=!0)}if(o._owner){var p=o._owner,g;if(p){var b=p;if(b.tag!==m)throw new Error("Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref");g=b.stateNode}if(!g)throw new Error("Missing owner for string ref "+l+". This error is likely caused by a bug in React. Please file an issue.");var T=g;vt(l,"ref");var D=""+l;if(r!==null&&r.ref!==null&&typeof r.ref=="function"&&r.ref._stringRef===D)return r.ref;var A=function(U){var B=T.refs;U===null?delete B[D]:B[D]=U};return A._stringRef=D,A}else{if(typeof l!="string")throw new Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null.");if(!o._owner)throw new Error("Element ref was specified as a string ("+l+`) but no owner was set. This could happen for one of the following reasons:
127
- 1. You may be adding a ref to a function component
128
- 2. You may be adding a ref to a component that was not created inside a component's render method
129
- 3. You have multiple copies of React loaded
130
- See https://reactjs.org/link/refs-must-have-owner for more information.`)}}return l}function Xp(n,r){var o=Object.prototype.toString.call(r);throw new Error("Objects are not valid as a React child (found: "+(o==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":o)+"). If you meant to render a collection of children, use an array instead.")}function Kp(n){{var r=Tt(n)||"Component";if(Wb[r])return;Wb[r]=!0,c("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 iR(n){var r=n._payload,o=n._init;return o(r)}function oR(n){function r(Z,he){if(n){var J=Z.deletions;J===null?(Z.deletions=[he],Z.flags|=rl):J.push(he)}}function o(Z,he){if(!n)return null;for(var J=he;J!==null;)r(Z,J),J=J.sibling;return null}function l(Z,he){for(var J=new Map,Ce=he;Ce!==null;)Ce.key!==null?J.set(Ce.key,Ce):J.set(Ce.index,Ce),Ce=Ce.sibling;return J}function d(Z,he){var J=Al(Z,he);return J.index=0,J.sibling=null,J}function p(Z,he,J){if(Z.index=J,!n)return Z.flags|=cE,he;var Ce=Z.alternate;if(Ce!==null){var Be=Ce.index;return Be<he?(Z.flags|=lr,he):Be}else return Z.flags|=lr,he}function g(Z){return n&&Z.alternate===null&&(Z.flags|=lr),Z}function b(Z,he,J,Ce){if(he===null||he.tag!==R){var Be=Ix(J,Z.mode,Ce);return Be.return=Z,Be}else{var ze=d(he,J);return ze.return=Z,ze}}function T(Z,he,J,Ce){var Be=J.type;if(Be===z)return A(Z,he,J.props.children,Ce,J.key);if(he!==null&&(he.elementType===Be||dD(he,J)||typeof Be=="object"&&Be!==null&&Be.$$typeof===je&&iR(Be)===he.type)){var ze=d(he,J.props);return ze.ref=ef(Z,he,J),ze.return=Z,ze._debugSource=J._source,ze._debugOwner=J._owner,ze}var ft=Fx(J,Z.mode,Ce);return ft.ref=ef(Z,he,J),ft.return=Z,ft}function D(Z,he,J,Ce){if(he===null||he.tag!==x||he.stateNode.containerInfo!==J.containerInfo||he.stateNode.implementation!==J.implementation){var Be=Vx(J,Z.mode,Ce);return Be.return=Z,Be}else{var ze=d(he,J.children||[]);return ze.return=Z,ze}}function A(Z,he,J,Ce,Be){if(he===null||he.tag!==E){var ze=As(J,Z.mode,Ce,Be);return ze.return=Z,ze}else{var ft=d(he,J);return ft.return=Z,ft}}function U(Z,he,J){if(typeof he=="string"&&he!==""||typeof he=="number"){var Ce=Ix(""+he,Z.mode,J);return Ce.return=Z,Ce}if(typeof he=="object"&&he!==null){switch(he.$$typeof){case jn:{var Be=Fx(he,Z.mode,J);return Be.ref=ef(Z,null,he),Be.return=Z,Be}case er:{var ze=Vx(he,Z.mode,J);return ze.return=Z,ze}case je:{var ft=he._payload,wt=he._init;return U(Z,wt(ft),J)}}if(sn(he)||ta(he)){var wn=As(he,Z.mode,J,null);return wn.return=Z,wn}Xp(Z,he)}return typeof he=="function"&&Kp(Z),null}function B(Z,he,J,Ce){var Be=he!==null?he.key:null;if(typeof J=="string"&&J!==""||typeof J=="number")return Be!==null?null:b(Z,he,""+J,Ce);if(typeof J=="object"&&J!==null){switch(J.$$typeof){case jn:return J.key===Be?T(Z,he,J,Ce):null;case er:return J.key===Be?D(Z,he,J,Ce):null;case je:{var ze=J._payload,ft=J._init;return B(Z,he,ft(ze),Ce)}}if(sn(J)||ta(J))return Be!==null?null:A(Z,he,J,Ce,null);Xp(Z,J)}return typeof J=="function"&&Kp(Z),null}function ne(Z,he,J,Ce,Be){if(typeof Ce=="string"&&Ce!==""||typeof Ce=="number"){var ze=Z.get(J)||null;return b(he,ze,""+Ce,Be)}if(typeof Ce=="object"&&Ce!==null){switch(Ce.$$typeof){case jn:{var ft=Z.get(Ce.key===null?J:Ce.key)||null;return T(he,ft,Ce,Be)}case er:{var wt=Z.get(Ce.key===null?J:Ce.key)||null;return D(he,wt,Ce,Be)}case je:var wn=Ce._payload,rn=Ce._init;return ne(Z,he,J,rn(wn),Be)}if(sn(Ce)||ta(Ce)){var nr=Z.get(J)||null;return A(he,nr,Ce,Be,null)}Xp(he,Ce)}return typeof Ce=="function"&&Kp(he),null}function ie(Z,he,J){{if(typeof Z!="object"||Z===null)return he;switch(Z.$$typeof){case jn:case er:aR(Z,J);var Ce=Z.key;if(typeof Ce!="string")break;if(he===null){he=new Set,he.add(Ce);break}if(!he.has(Ce)){he.add(Ce);break}c("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.",Ce);break;case je:var Be=Z._payload,ze=Z._init;ie(ze(Be),he,J);break}}return he}function fe(Z,he,J,Ce){for(var Be=null,ze=0;ze<J.length;ze++){var ft=J[ze];Be=ie(ft,Be,Z)}for(var wt=null,wn=null,rn=he,nr=0,an=0,Qn=null;rn!==null&&an<J.length;an++){rn.index>an?(Qn=rn,rn=null):Qn=rn.sibling;var Gr=B(Z,rn,J[an],Ce);if(Gr===null){rn===null&&(rn=Qn);break}n&&rn&&Gr.alternate===null&&r(Z,rn),nr=p(Gr,nr,an),wn===null?wt=Gr:wn.sibling=Gr,wn=Gr,rn=Qn}if(an===J.length){if(o(Z,rn),Ar()){var $r=an;gl(Z,$r)}return wt}if(rn===null){for(;an<J.length;an++){var za=U(Z,J[an],Ce);za!==null&&(nr=p(za,nr,an),wn===null?wt=za:wn.sibling=za,wn=za)}if(Ar()){var sa=an;gl(Z,sa)}return wt}for(var la=l(Z,rn);an<J.length;an++){var Xr=ne(la,Z,an,J[an],Ce);Xr!==null&&(n&&Xr.alternate!==null&&la.delete(Xr.key===null?an:Xr.key),nr=p(Xr,nr,an),wn===null?wt=Xr:wn.sibling=Xr,wn=Xr)}if(n&&la.forEach(function(Jc){return r(Z,Jc)}),Ar()){var Vo=an;gl(Z,Vo)}return wt}function Le(Z,he,J,Ce){var Be=ta(J);if(typeof Be!="function")throw new Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");{typeof Symbol=="function"&&J[Symbol.toStringTag]==="Generator"&&(Bb||c("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."),Bb=!0),J.entries===Be&&(Vb||c("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Vb=!0);var ze=Be.call(J);if(ze)for(var ft=null,wt=ze.next();!wt.done;wt=ze.next()){var wn=wt.value;ft=ie(wn,ft,Z)}}var rn=Be.call(J);if(rn==null)throw new Error("An iterable object provided no iterator.");for(var nr=null,an=null,Qn=he,Gr=0,$r=0,za=null,sa=rn.next();Qn!==null&&!sa.done;$r++,sa=rn.next()){Qn.index>$r?(za=Qn,Qn=null):za=Qn.sibling;var la=B(Z,Qn,sa.value,Ce);if(la===null){Qn===null&&(Qn=za);break}n&&Qn&&la.alternate===null&&r(Z,Qn),Gr=p(la,Gr,$r),an===null?nr=la:an.sibling=la,an=la,Qn=za}if(sa.done){if(o(Z,Qn),Ar()){var Xr=$r;gl(Z,Xr)}return nr}if(Qn===null){for(;!sa.done;$r++,sa=rn.next()){var Vo=U(Z,sa.value,Ce);Vo!==null&&(Gr=p(Vo,Gr,$r),an===null?nr=Vo:an.sibling=Vo,an=Vo)}if(Ar()){var Jc=$r;gl(Z,Jc)}return nr}for(var Nf=l(Z,Qn);!sa.done;$r++,sa=rn.next()){var Ki=ne(Nf,Z,$r,sa.value,Ce);Ki!==null&&(n&&Ki.alternate!==null&&Nf.delete(Ki.key===null?$r:Ki.key),Gr=p(Ki,Gr,$r),an===null?nr=Ki:an.sibling=Ki,an=Ki)}if(n&&Nf.forEach(function(a3){return r(Z,a3)}),Ar()){var r3=$r;gl(Z,r3)}return nr}function Je(Z,he,J,Ce){if(he!==null&&he.tag===R){o(Z,he.sibling);var Be=d(he,J);return Be.return=Z,Be}o(Z,he);var ze=Ix(J,Z.mode,Ce);return ze.return=Z,ze}function Xe(Z,he,J,Ce){for(var Be=J.key,ze=he;ze!==null;){if(ze.key===Be){var ft=J.type;if(ft===z){if(ze.tag===E){o(Z,ze.sibling);var wt=d(ze,J.props.children);return wt.return=Z,wt._debugSource=J._source,wt._debugOwner=J._owner,wt}}else if(ze.elementType===ft||dD(ze,J)||typeof ft=="object"&&ft!==null&&ft.$$typeof===je&&iR(ft)===ze.type){o(Z,ze.sibling);var wn=d(ze,J.props);return wn.ref=ef(Z,ze,J),wn.return=Z,wn._debugSource=J._source,wn._debugOwner=J._owner,wn}o(Z,ze);break}else r(Z,ze);ze=ze.sibling}if(J.type===z){var rn=As(J.props.children,Z.mode,Ce,J.key);return rn.return=Z,rn}else{var nr=Fx(J,Z.mode,Ce);return nr.ref=ef(Z,he,J),nr.return=Z,nr}}function Yt(Z,he,J,Ce){for(var Be=J.key,ze=he;ze!==null;){if(ze.key===Be)if(ze.tag===x&&ze.stateNode.containerInfo===J.containerInfo&&ze.stateNode.implementation===J.implementation){o(Z,ze.sibling);var ft=d(ze,J.children||[]);return ft.return=Z,ft}else{o(Z,ze);break}else r(Z,ze);ze=ze.sibling}var wt=Vx(J,Z.mode,Ce);return wt.return=Z,wt}function zt(Z,he,J,Ce){var Be=typeof J=="object"&&J!==null&&J.type===z&&J.key===null;if(Be&&(J=J.props.children),typeof J=="object"&&J!==null){switch(J.$$typeof){case jn:return g(Xe(Z,he,J,Ce));case er:return g(Yt(Z,he,J,Ce));case je:var ze=J._payload,ft=J._init;return zt(Z,he,ft(ze),Ce)}if(sn(J))return fe(Z,he,J,Ce);if(ta(J))return Le(Z,he,J,Ce);Xp(Z,J)}return typeof J=="string"&&J!==""||typeof J=="number"?g(Je(Z,he,""+J,Ce)):(typeof J=="function"&&Kp(Z),o(Z,he))}return zt}var jc=oR(!0),sR=oR(!1);function NI(n,r){if(n!==null&&r.child!==n.child)throw new Error("Resuming work not yet implemented.");if(r.child!==null){var o=r.child,l=Al(o,o.pendingProps);for(r.child=l,l.return=r;o.sibling!==null;)o=o.sibling,l=l.sibling=Al(o,o.pendingProps),l.return=r;l.sibling=null}}function PI(n,r){for(var o=n.child;o!==null;)SU(o,r),o=o.sibling}var Yb=vs(null),qb;qb={};var Qp=null,Lc=null,Gb=null,Zp=!1;function Jp(){Qp=null,Lc=null,Gb=null,Zp=!1}function lR(){Zp=!0}function cR(){Zp=!1}function uR(n,r,o){Yr(Yb,r._currentValue,n),r._currentValue=o,r._currentRenderer!==void 0&&r._currentRenderer!==null&&r._currentRenderer!==qb&&c("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),r._currentRenderer=qb}function Xb(n,r){var o=Yb.current;Wr(Yb,r),n._currentValue=o}function Kb(n,r,o){for(var l=n;l!==null;){var d=l.alternate;if(xc(l.childLanes,r)?d!==null&&!xc(d.childLanes,r)&&(d.childLanes=Mt(d.childLanes,r)):(l.childLanes=Mt(l.childLanes,r),d!==null&&(d.childLanes=Mt(d.childLanes,r))),l===o)break;l=l.return}l!==o&&c("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 jI(n,r,o){LI(n,r,o)}function LI(n,r,o){var l=n.child;for(l!==null&&(l.return=n);l!==null;){var d=void 0,p=l.dependencies;if(p!==null){d=l.child;for(var g=p.firstContext;g!==null;){if(g.context===r){if(l.tag===m){var b=yd(o),T=jo(Mn,b);T.tag=tm;var D=l.updateQueue;if(D!==null){var A=D.shared,U=A.pending;U===null?T.next=T:(T.next=U.next,U.next=T),A.pending=T}}l.lanes=Mt(l.lanes,o);var B=l.alternate;B!==null&&(B.lanes=Mt(B.lanes,o)),Kb(l.return,o,n),p.lanes=Mt(p.lanes,o);break}g=g.next}}else if(l.tag===_)d=l.type===n.type?null:l.child;else if(l.tag===re){var ne=l.return;if(ne===null)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");ne.lanes=Mt(ne.lanes,o);var ie=ne.alternate;ie!==null&&(ie.lanes=Mt(ie.lanes,o)),Kb(ne,o,n),d=l.sibling}else d=l.child;if(d!==null)d.return=l;else for(d=l;d!==null;){if(d===n){d=null;break}var fe=d.sibling;if(fe!==null){fe.return=d.return,d=fe;break}d=d.return}l=d}}function $c(n,r){Qp=n,Lc=null,Gb=null;var o=n.dependencies;if(o!==null){var l=o.firstContext;l!==null&&(Ma(o.lanes,r)&&vf(),o.firstContext=null)}}function cr(n){Zp&&c("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 r=n._currentValue;if(Gb!==n){var o={context:n,memoizedValue:r,next:null};if(Lc===null){if(Qp===null)throw new Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");Lc=o,Qp.dependencies={lanes:Se,firstContext:o}}else Lc=Lc.next=o}return r}var wl=null;function Qb(n){wl===null?wl=[n]:wl.push(n)}function $I(){if(wl!==null){for(var n=0;n<wl.length;n++){var r=wl[n],o=r.interleaved;if(o!==null){r.interleaved=null;var l=o.next,d=r.pending;if(d!==null){var p=d.next;d.next=l,o.next=p}r.pending=o}}wl=null}}function dR(n,r,o,l){var d=r.interleaved;return d===null?(o.next=o,Qb(r)):(o.next=d.next,d.next=o),r.interleaved=o,em(n,l)}function zI(n,r,o,l){var d=r.interleaved;d===null?(o.next=o,Qb(r)):(o.next=d.next,d.next=o),r.interleaved=o}function FI(n,r,o,l){var d=r.interleaved;return d===null?(o.next=o,Qb(r)):(o.next=d.next,d.next=o),r.interleaved=o,em(n,l)}function ba(n,r){return em(n,r)}var II=em;function em(n,r){n.lanes=Mt(n.lanes,r);var o=n.alternate;o!==null&&(o.lanes=Mt(o.lanes,r)),o===null&&(n.flags&(lr|To))!==st&&sD(n);for(var l=n,d=n.return;d!==null;)d.childLanes=Mt(d.childLanes,r),o=d.alternate,o!==null?o.childLanes=Mt(o.childLanes,r):(d.flags&(lr|To))!==st&&sD(n),l=d,d=d.return;if(l.tag===y){var p=l.stateNode;return p}else return null}var fR=0,hR=1,tm=2,Zb=3,nm=!1,Jb,rm;Jb=!1,rm=null;function e0(n){var r={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:Se},effects:null};n.updateQueue=r}function pR(n,r){var o=r.updateQueue,l=n.updateQueue;if(o===l){var d={baseState:l.baseState,firstBaseUpdate:l.firstBaseUpdate,lastBaseUpdate:l.lastBaseUpdate,shared:l.shared,effects:l.effects};r.updateQueue=d}}function jo(n,r){var o={eventTime:n,lane:r,tag:fR,payload:null,callback:null,next:null};return o}function xs(n,r,o){var l=n.updateQueue;if(l===null)return null;var d=l.shared;if(rm===d&&!Jb&&(c("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."),Jb=!0),zB()){var p=d.pending;return p===null?r.next=r:(r.next=p.next,p.next=r),d.pending=r,II(n,o)}else return FI(n,d,r,o)}function am(n,r,o){var l=r.updateQueue;if(l!==null){var d=l.shared;if(kE(o)){var p=d.lanes;p=_E(p,n.pendingLanes);var g=Mt(p,o);d.lanes=g,Yy(n,g)}}}function t0(n,r){var o=n.updateQueue,l=n.alternate;if(l!==null){var d=l.updateQueue;if(o===d){var p=null,g=null,b=o.firstBaseUpdate;if(b!==null){var T=b;do{var D={eventTime:T.eventTime,lane:T.lane,tag:T.tag,payload:T.payload,callback:T.callback,next:null};g===null?p=g=D:(g.next=D,g=D),T=T.next}while(T!==null);g===null?p=g=r:(g.next=r,g=r)}else p=g=r;o={baseState:d.baseState,firstBaseUpdate:p,lastBaseUpdate:g,shared:d.shared,effects:d.effects},n.updateQueue=o;return}}var A=o.lastBaseUpdate;A===null?o.firstBaseUpdate=r:A.next=r,o.lastBaseUpdate=r}function VI(n,r,o,l,d,p){switch(o.tag){case hR:{var g=o.payload;if(typeof g=="function"){lR();var b=g.call(p,l,d);{if(n.mode&Kn){Tr(!0);try{g.call(p,l,d)}finally{Tr(!1)}}cR()}return b}return g}case Zb:n.flags=n.flags&~ra|ln;case fR:{var T=o.payload,D;if(typeof T=="function"){lR(),D=T.call(p,l,d);{if(n.mode&Kn){Tr(!0);try{T.call(p,l,d)}finally{Tr(!1)}}cR()}}else D=T;return D==null?l:Rt({},l,D)}case tm:return nm=!0,l}return l}function im(n,r,o,l){var d=n.updateQueue;nm=!1,rm=d.shared;var p=d.firstBaseUpdate,g=d.lastBaseUpdate,b=d.shared.pending;if(b!==null){d.shared.pending=null;var T=b,D=T.next;T.next=null,g===null?p=D:g.next=D,g=T;var A=n.alternate;if(A!==null){var U=A.updateQueue,B=U.lastBaseUpdate;B!==g&&(B===null?U.firstBaseUpdate=D:B.next=D,U.lastBaseUpdate=T)}}if(p!==null){var ne=d.baseState,ie=Se,fe=null,Le=null,Je=null,Xe=p;do{var Yt=Xe.lane,zt=Xe.eventTime;if(xc(l,Yt)){if(Je!==null){var he={eventTime:zt,lane:Er,tag:Xe.tag,payload:Xe.payload,callback:Xe.callback,next:null};Je=Je.next=he}ne=VI(n,d,Xe,ne,r,o);var J=Xe.callback;if(J!==null&&Xe.lane!==Er){n.flags|=hy;var Ce=d.effects;Ce===null?d.effects=[Xe]:Ce.push(Xe)}}else{var Z={eventTime:zt,lane:Yt,tag:Xe.tag,payload:Xe.payload,callback:Xe.callback,next:null};Je===null?(Le=Je=Z,fe=ne):Je=Je.next=Z,ie=Mt(ie,Yt)}if(Xe=Xe.next,Xe===null){if(b=d.shared.pending,b===null)break;var Be=b,ze=Be.next;Be.next=null,Xe=ze,d.lastBaseUpdate=Be,d.shared.pending=null}}while(!0);Je===null&&(fe=ne),d.baseState=fe,d.firstBaseUpdate=Le,d.lastBaseUpdate=Je;var ft=d.shared.interleaved;if(ft!==null){var wt=ft;do ie=Mt(ie,wt.lane),wt=wt.next;while(wt!==ft)}else p===null&&(d.shared.lanes=Se);Df(ie),n.lanes=ie,n.memoizedState=ne}rm=null}function BI(n,r){if(typeof n!="function")throw new Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+n));n.call(r)}function mR(){nm=!1}function om(){return nm}function vR(n,r,o){var l=r.effects;if(r.effects=null,l!==null)for(var d=0;d<l.length;d++){var p=l[d],g=p.callback;g!==null&&(p.callback=null,BI(g,o))}}var tf={},Ss=vs(tf),nf=vs(tf),sm=vs(tf);function lm(n){if(n===tf)throw new Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return n}function gR(){var n=lm(sm.current);return n}function n0(n,r){Yr(sm,r,n),Yr(nf,n,n),Yr(Ss,tf,n);var o=iF(r);Wr(Ss,n),Yr(Ss,o,n)}function zc(n){Wr(Ss,n),Wr(nf,n),Wr(sm,n)}function r0(){var n=lm(Ss.current);return n}function yR(n){lm(sm.current);var r=lm(Ss.current),o=oF(r,n.type);r!==o&&(Yr(nf,n,n),Yr(Ss,o,n))}function a0(n){nf.current===n&&(Wr(Ss,n),Wr(nf,n))}var UI=0,bR=1,xR=1,rf=2,xi=vs(UI);function i0(n,r){return(n&r)!==0}function Fc(n){return n&bR}function o0(n,r){return n&bR|r}function HI(n,r){return n|r}function ws(n,r){Yr(xi,r,n)}function Ic(n){Wr(xi,n)}function WI(n,r){var o=n.memoizedState;return o!==null?o.dehydrated!==null:(n.memoizedProps,!0)}function cm(n){for(var r=n;r!==null;){if(r.tag===L){var o=r.memoizedState;if(o!==null){var l=o.dehydrated;if(l===null||$1(l)||Tb(l))return r}}else if(r.tag===de&&r.memoizedProps.revealOrder!==void 0){var d=(r.flags&ln)!==st;if(d)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===n)return null;for(;r.sibling===null;){if(r.return===null||r.return===n)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var xa=0,hr=1,Ui=2,pr=4,Or=8,s0=[];function l0(){for(var n=0;n<s0.length;n++){var r=s0[n];r._workInProgressVersionPrimary=null}s0.length=0}function YI(n,r){var o=r._getVersion,l=o(r._source);n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[r,l]:n.mutableSourceEagerHydrationData.push(r,l)}var Ve=a.ReactCurrentDispatcher,af=a.ReactCurrentBatchConfig,c0,Vc;c0=new Set;var Cl=Se,Sn=null,mr=null,vr=null,um=!1,of=!1,sf=0,qI=0,GI=25,ge=null,Xa=null,Cs=-1,u0=!1;function fn(){{var n=ge;Xa===null?Xa=[n]:Xa.push(n)}}function Ae(){{var n=ge;Xa!==null&&(Cs++,Xa[Cs]!==n&&XI(n))}}function Bc(n){n!=null&&!sn(n)&&c("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",ge,typeof n)}function XI(n){{var r=Tt(Sn);if(!c0.has(r)&&(c0.add(r),Xa!==null)){for(var o="",l=30,d=0;d<=Cs;d++){for(var p=Xa[d],g=d===Cs?n:p,b=d+1+". "+p;b.length<l;)b+=" ";b+=g+`
131
- `,o+=b}c(`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
132
-
133
- Previous render Next render
134
- ------------------------------------------------------
135
- %s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
136
- `,r,o)}}}function qr(){throw new Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
137
- 1. You might have mismatching versions of React and the renderer (such as React DOM)
138
- 2. You might be breaking the Rules of Hooks
139
- 3. You might have more than one copy of React in the same app
140
- See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function d0(n,r){if(u0)return!1;if(r===null)return c("%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.",ge),!1;n.length!==r.length&&c(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
141
-
142
- Previous: %s
143
- Incoming: %s`,ge,"["+r.join(", ")+"]","["+n.join(", ")+"]");for(var o=0;o<r.length&&o<n.length;o++)if(!ja(n[o],r[o]))return!1;return!0}function Uc(n,r,o,l,d,p){Cl=p,Sn=r,Xa=n!==null?n._debugHookTypes:null,Cs=-1,u0=n!==null&&n.type!==r.type,r.memoizedState=null,r.updateQueue=null,r.lanes=Se,n!==null&&n.memoizedState!==null?Ve.current=BR:Xa!==null?Ve.current=VR:Ve.current=IR;var g=o(l,d);if(of){var b=0;do{if(of=!1,sf=0,b>=GI)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");b+=1,u0=!1,mr=null,vr=null,r.updateQueue=null,Cs=-1,Ve.current=UR,g=o(l,d)}while(of)}Ve.current=Cm,r._debugHookTypes=Xa;var T=mr!==null&&mr.next!==null;if(Cl=Se,Sn=null,mr=null,vr=null,ge=null,Xa=null,Cs=-1,n!==null&&(n.flags&Ro)!==(r.flags&Ro)&&(n.mode&Ht)!==nt&&c("Internal React error: Expected static flag was missing. Please notify the React team."),um=!1,T)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return g}function Hc(){var n=sf!==0;return sf=0,n}function SR(n,r,o){r.updateQueue=n.updateQueue,(r.mode&Fi)!==nt?r.flags&=~(ap|Eo|hi|Xt):r.flags&=~(hi|Xt),n.lanes=dp(n.lanes,o)}function wR(){if(Ve.current=Cm,um){for(var n=Sn.memoizedState;n!==null;){var r=n.queue;r!==null&&(r.pending=null),n=n.next}um=!1}Cl=Se,Sn=null,mr=null,vr=null,Xa=null,Cs=-1,ge=null,jR=!1,of=!1,sf=0}function Hi(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return vr===null?Sn.memoizedState=vr=n:vr=vr.next=n,vr}function Ka(){var n;if(mr===null){var r=Sn.alternate;r!==null?n=r.memoizedState:n=null}else n=mr.next;var o;if(vr===null?o=Sn.memoizedState:o=vr.next,o!==null)vr=o,o=vr.next,mr=n;else{if(n===null)throw new Error("Rendered more hooks than during the previous render.");mr=n;var l={memoizedState:mr.memoizedState,baseState:mr.baseState,baseQueue:mr.baseQueue,queue:mr.queue,next:null};vr===null?Sn.memoizedState=vr=l:vr=vr.next=l}return vr}function CR(){return{lastEffect:null,stores:null}}function f0(n,r){return typeof r=="function"?r(n):r}function h0(n,r,o){var l=Hi(),d;o!==void 0?d=o(r):d=r,l.memoizedState=l.baseState=d;var p={pending:null,interleaved:null,lanes:Se,dispatch:null,lastRenderedReducer:n,lastRenderedState:d};l.queue=p;var g=p.dispatch=JI.bind(null,Sn,p);return[l.memoizedState,g]}function p0(n,r,o){var l=Ka(),d=l.queue;if(d===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");d.lastRenderedReducer=n;var p=mr,g=p.baseQueue,b=d.pending;if(b!==null){if(g!==null){var T=g.next,D=b.next;g.next=D,b.next=T}p.baseQueue!==g&&c("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),p.baseQueue=g=b,d.pending=null}if(g!==null){var A=g.next,U=p.baseState,B=null,ne=null,ie=null,fe=A;do{var Le=fe.lane;if(xc(Cl,Le)){if(ie!==null){var Xe={lane:Er,action:fe.action,hasEagerState:fe.hasEagerState,eagerState:fe.eagerState,next:null};ie=ie.next=Xe}if(fe.hasEagerState)U=fe.eagerState;else{var Yt=fe.action;U=n(U,Yt)}}else{var Je={lane:Le,action:fe.action,hasEagerState:fe.hasEagerState,eagerState:fe.eagerState,next:null};ie===null?(ne=ie=Je,B=U):ie=ie.next=Je,Sn.lanes=Mt(Sn.lanes,Le),Df(Le)}fe=fe.next}while(fe!==null&&fe!==A);ie===null?B=U:ie.next=ne,ja(U,l.memoizedState)||vf(),l.memoizedState=U,l.baseState=B,l.baseQueue=ie,d.lastRenderedState=U}var zt=d.interleaved;if(zt!==null){var Z=zt;do{var he=Z.lane;Sn.lanes=Mt(Sn.lanes,he),Df(he),Z=Z.next}while(Z!==zt)}else g===null&&(d.lanes=Se);var J=d.dispatch;return[l.memoizedState,J]}function m0(n,r,o){var l=Ka(),d=l.queue;if(d===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");d.lastRenderedReducer=n;var p=d.dispatch,g=d.pending,b=l.memoizedState;if(g!==null){d.pending=null;var T=g.next,D=T;do{var A=D.action;b=n(b,A),D=D.next}while(D!==T);ja(b,l.memoizedState)||vf(),l.memoizedState=b,l.baseQueue===null&&(l.baseState=b),d.lastRenderedState=b}return[b,p]}function Ooe(n,r,o){}function Moe(n,r,o){}function v0(n,r,o){var l=Sn,d=Hi(),p,g=Ar();if(g){if(o===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");p=o(),Vc||p!==o()&&(c("The result of getServerSnapshot should be cached to avoid an infinite loop"),Vc=!0)}else{if(p=r(),!Vc){var b=r();ja(p,b)||(c("The result of getSnapshot should be cached to avoid an infinite loop"),Vc=!0)}var T=Bm();if(T===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");up(T,Cl)||TR(l,r,p)}d.memoizedState=p;var D={value:p,getSnapshot:r};return d.queue=D,mm(RR.bind(null,l,D,n),[n]),l.flags|=hi,lf(hr|Or,ER.bind(null,l,D,p,r),void 0,null),p}function dm(n,r,o){var l=Sn,d=Ka(),p=r();if(!Vc){var g=r();ja(p,g)||(c("The result of getSnapshot should be cached to avoid an infinite loop"),Vc=!0)}var b=d.memoizedState,T=!ja(b,p);T&&(d.memoizedState=p,vf());var D=d.queue;if(uf(RR.bind(null,l,D,n),[n]),D.getSnapshot!==r||T||vr!==null&&vr.memoizedState.tag&hr){l.flags|=hi,lf(hr|Or,ER.bind(null,l,D,p,r),void 0,null);var A=Bm();if(A===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");up(A,Cl)||TR(l,r,p)}return p}function TR(n,r,o){n.flags|=rp;var l={getSnapshot:r,value:o},d=Sn.updateQueue;if(d===null)d=CR(),Sn.updateQueue=d,d.stores=[l];else{var p=d.stores;p===null?d.stores=[l]:p.push(l)}}function ER(n,r,o,l){r.value=o,r.getSnapshot=l,kR(r)&&DR(n)}function RR(n,r,o){var l=function(){kR(r)&&DR(n)};return o(l)}function kR(n){var r=n.getSnapshot,o=n.value;try{var l=r();return!ja(o,l)}catch{return!0}}function DR(n){var r=ba(n,bt);r!==null&&xr(r,n,bt,Mn)}function fm(n){var r=Hi();typeof n=="function"&&(n=n()),r.memoizedState=r.baseState=n;var o={pending:null,interleaved:null,lanes:Se,dispatch:null,lastRenderedReducer:f0,lastRenderedState:n};r.queue=o;var l=o.dispatch=eV.bind(null,Sn,o);return[r.memoizedState,l]}function g0(n){return p0(f0)}function y0(n){return m0(f0)}function lf(n,r,o,l){var d={tag:n,create:r,destroy:o,deps:l,next:null},p=Sn.updateQueue;if(p===null)p=CR(),Sn.updateQueue=p,p.lastEffect=d.next=d;else{var g=p.lastEffect;if(g===null)p.lastEffect=d.next=d;else{var b=g.next;g.next=d,d.next=b,p.lastEffect=d}}return d}function b0(n){var r=Hi();{var o={current:n};return r.memoizedState=o,o}}function hm(n){var r=Ka();return r.memoizedState}function cf(n,r,o,l){var d=Hi(),p=l===void 0?null:l;Sn.flags|=n,d.memoizedState=lf(hr|r,o,void 0,p)}function pm(n,r,o,l){var d=Ka(),p=l===void 0?null:l,g=void 0;if(mr!==null){var b=mr.memoizedState;if(g=b.destroy,p!==null){var T=b.deps;if(d0(p,T)){d.memoizedState=lf(r,o,g,p);return}}}Sn.flags|=n,d.memoizedState=lf(hr|r,o,g,p)}function mm(n,r){return(Sn.mode&Fi)!==nt?cf(ap|hi|vy,Or,n,r):cf(hi|vy,Or,n,r)}function uf(n,r){return pm(hi,Or,n,r)}function x0(n,r){return cf(Xt,Ui,n,r)}function vm(n,r){return pm(Xt,Ui,n,r)}function S0(n,r){var o=Xt;return o|=ol,(Sn.mode&Fi)!==nt&&(o|=Eo),cf(o,pr,n,r)}function gm(n,r){return pm(Xt,pr,n,r)}function _R(n,r){if(typeof r=="function"){var o=r,l=n();return o(l),function(){o(null)}}else if(r!=null){var d=r;d.hasOwnProperty("current")||c("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(d).join(", ")+"}");var p=n();return d.current=p,function(){d.current=null}}}function w0(n,r,o){typeof r!="function"&&c("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",r!==null?typeof r:"null");var l=o!=null?o.concat([n]):null,d=Xt;return d|=ol,(Sn.mode&Fi)!==nt&&(d|=Eo),cf(d,pr,_R.bind(null,r,n),l)}function ym(n,r,o){typeof r!="function"&&c("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",r!==null?typeof r:"null");var l=o!=null?o.concat([n]):null;return pm(Xt,pr,_R.bind(null,r,n),l)}function KI(n,r){}var bm=KI;function C0(n,r){var o=Hi(),l=r===void 0?null:r;return o.memoizedState=[n,l],n}function xm(n,r){var o=Ka(),l=r===void 0?null:r,d=o.memoizedState;if(d!==null&&l!==null){var p=d[1];if(d0(l,p))return d[0]}return o.memoizedState=[n,l],n}function T0(n,r){var o=Hi(),l=r===void 0?null:r,d=n();return o.memoizedState=[d,l],d}function Sm(n,r){var o=Ka(),l=r===void 0?null:r,d=o.memoizedState;if(d!==null&&l!==null){var p=d[1];if(d0(l,p))return d[0]}var g=n();return o.memoizedState=[g,l],g}function E0(n){var r=Hi();return r.memoizedState=n,n}function AR(n){var r=Ka(),o=mr,l=o.memoizedState;return MR(r,l,n)}function OR(n){var r=Ka();if(mr===null)return r.memoizedState=n,n;var o=mr.memoizedState;return MR(r,o,n)}function MR(n,r,o){var l=!j5(Cl);if(l){if(!ja(o,r)){var d=DE();Sn.lanes=Mt(Sn.lanes,d),Df(d),n.baseState=!0}return r}else return n.baseState&&(n.baseState=!1,vf()),n.memoizedState=o,o}function QI(n,r,o){var l=mi();Rr(H5(l,Do)),n(!0);var d=af.transition;af.transition={};var p=af.transition;af.transition._updatedFibers=new Set;try{n(!1),r()}finally{if(Rr(l),af.transition=d,d===null&&p._updatedFibers){var g=p._updatedFibers.size;g>10&&u("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),p._updatedFibers.clear()}}}function R0(){var n=fm(!1),r=n[0],o=n[1],l=QI.bind(null,o),d=Hi();return d.memoizedState=l,[r,l]}function NR(){var n=g0(),r=n[0],o=Ka(),l=o.memoizedState;return[r,l]}function PR(){var n=y0(),r=n[0],o=Ka(),l=o.memoizedState;return[r,l]}var jR=!1;function ZI(){return jR}function k0(){var n=Hi(),r=Bm(),o=r.identifierPrefix,l;if(Ar()){var d=mI();l=":"+o+"R"+d;var p=sf++;p>0&&(l+="H"+p.toString(32)),l+=":"}else{var g=qI++;l=":"+o+"r"+g.toString(32)+":"}return n.memoizedState=l,l}function wm(){var n=Ka(),r=n.memoizedState;return r}function JI(n,r,o){typeof arguments[3]=="function"&&c("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 l=Ds(n),d={lane:l,action:o,hasEagerState:!1,eagerState:null,next:null};if(LR(n))$R(r,d);else{var p=dR(n,r,d,l);if(p!==null){var g=oa();xr(p,n,l,g),zR(p,r,l)}}FR(n,l)}function eV(n,r,o){typeof arguments[3]=="function"&&c("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 l=Ds(n),d={lane:l,action:o,hasEagerState:!1,eagerState:null,next:null};if(LR(n))$R(r,d);else{var p=n.alternate;if(n.lanes===Se&&(p===null||p.lanes===Se)){var g=r.lastRenderedReducer;if(g!==null){var b;b=Ve.current,Ve.current=Si;try{var T=r.lastRenderedState,D=g(T,o);if(d.hasEagerState=!0,d.eagerState=D,ja(D,T)){zI(n,r,d,l);return}}catch{}finally{Ve.current=b}}}var A=dR(n,r,d,l);if(A!==null){var U=oa();xr(A,n,l,U),zR(A,r,l)}}FR(n,l)}function LR(n){var r=n.alternate;return n===Sn||r!==null&&r===Sn}function $R(n,r){of=um=!0;var o=n.pending;o===null?r.next=r:(r.next=o.next,o.next=r),n.pending=r}function zR(n,r,o){if(kE(o)){var l=r.lanes;l=_E(l,n.pendingLanes);var d=Mt(l,o);r.lanes=d,Yy(n,d)}}function FR(n,r,o){Sy(n,r)}var Cm={readContext:cr,useCallback:qr,useContext:qr,useEffect:qr,useImperativeHandle:qr,useInsertionEffect:qr,useLayoutEffect:qr,useMemo:qr,useReducer:qr,useRef:qr,useState:qr,useDebugValue:qr,useDeferredValue:qr,useTransition:qr,useMutableSource:qr,useSyncExternalStore:qr,useId:qr,unstable_isNewReconciler:K},IR=null,VR=null,BR=null,UR=null,Wi=null,Si=null,Tm=null;{var D0=function(){c("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().")},xt=function(){c("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")};IR={readContext:function(n){return cr(n)},useCallback:function(n,r){return ge="useCallback",fn(),Bc(r),C0(n,r)},useContext:function(n){return ge="useContext",fn(),cr(n)},useEffect:function(n,r){return ge="useEffect",fn(),Bc(r),mm(n,r)},useImperativeHandle:function(n,r,o){return ge="useImperativeHandle",fn(),Bc(o),w0(n,r,o)},useInsertionEffect:function(n,r){return ge="useInsertionEffect",fn(),Bc(r),x0(n,r)},useLayoutEffect:function(n,r){return ge="useLayoutEffect",fn(),Bc(r),S0(n,r)},useMemo:function(n,r){ge="useMemo",fn(),Bc(r);var o=Ve.current;Ve.current=Wi;try{return T0(n,r)}finally{Ve.current=o}},useReducer:function(n,r,o){ge="useReducer",fn();var l=Ve.current;Ve.current=Wi;try{return h0(n,r,o)}finally{Ve.current=l}},useRef:function(n){return ge="useRef",fn(),b0(n)},useState:function(n){ge="useState",fn();var r=Ve.current;Ve.current=Wi;try{return fm(n)}finally{Ve.current=r}},useDebugValue:function(n,r){return ge="useDebugValue",fn(),void 0},useDeferredValue:function(n){return ge="useDeferredValue",fn(),E0(n)},useTransition:function(){return ge="useTransition",fn(),R0()},useMutableSource:function(n,r,o){return ge="useMutableSource",fn(),void 0},useSyncExternalStore:function(n,r,o){return ge="useSyncExternalStore",fn(),v0(n,r,o)},useId:function(){return ge="useId",fn(),k0()},unstable_isNewReconciler:K},VR={readContext:function(n){return cr(n)},useCallback:function(n,r){return ge="useCallback",Ae(),C0(n,r)},useContext:function(n){return ge="useContext",Ae(),cr(n)},useEffect:function(n,r){return ge="useEffect",Ae(),mm(n,r)},useImperativeHandle:function(n,r,o){return ge="useImperativeHandle",Ae(),w0(n,r,o)},useInsertionEffect:function(n,r){return ge="useInsertionEffect",Ae(),x0(n,r)},useLayoutEffect:function(n,r){return ge="useLayoutEffect",Ae(),S0(n,r)},useMemo:function(n,r){ge="useMemo",Ae();var o=Ve.current;Ve.current=Wi;try{return T0(n,r)}finally{Ve.current=o}},useReducer:function(n,r,o){ge="useReducer",Ae();var l=Ve.current;Ve.current=Wi;try{return h0(n,r,o)}finally{Ve.current=l}},useRef:function(n){return ge="useRef",Ae(),b0(n)},useState:function(n){ge="useState",Ae();var r=Ve.current;Ve.current=Wi;try{return fm(n)}finally{Ve.current=r}},useDebugValue:function(n,r){return ge="useDebugValue",Ae(),void 0},useDeferredValue:function(n){return ge="useDeferredValue",Ae(),E0(n)},useTransition:function(){return ge="useTransition",Ae(),R0()},useMutableSource:function(n,r,o){return ge="useMutableSource",Ae(),void 0},useSyncExternalStore:function(n,r,o){return ge="useSyncExternalStore",Ae(),v0(n,r,o)},useId:function(){return ge="useId",Ae(),k0()},unstable_isNewReconciler:K},BR={readContext:function(n){return cr(n)},useCallback:function(n,r){return ge="useCallback",Ae(),xm(n,r)},useContext:function(n){return ge="useContext",Ae(),cr(n)},useEffect:function(n,r){return ge="useEffect",Ae(),uf(n,r)},useImperativeHandle:function(n,r,o){return ge="useImperativeHandle",Ae(),ym(n,r,o)},useInsertionEffect:function(n,r){return ge="useInsertionEffect",Ae(),vm(n,r)},useLayoutEffect:function(n,r){return ge="useLayoutEffect",Ae(),gm(n,r)},useMemo:function(n,r){ge="useMemo",Ae();var o=Ve.current;Ve.current=Si;try{return Sm(n,r)}finally{Ve.current=o}},useReducer:function(n,r,o){ge="useReducer",Ae();var l=Ve.current;Ve.current=Si;try{return p0(n,r,o)}finally{Ve.current=l}},useRef:function(n){return ge="useRef",Ae(),hm()},useState:function(n){ge="useState",Ae();var r=Ve.current;Ve.current=Si;try{return g0(n)}finally{Ve.current=r}},useDebugValue:function(n,r){return ge="useDebugValue",Ae(),bm()},useDeferredValue:function(n){return ge="useDeferredValue",Ae(),AR(n)},useTransition:function(){return ge="useTransition",Ae(),NR()},useMutableSource:function(n,r,o){return ge="useMutableSource",Ae(),void 0},useSyncExternalStore:function(n,r,o){return ge="useSyncExternalStore",Ae(),dm(n,r)},useId:function(){return ge="useId",Ae(),wm()},unstable_isNewReconciler:K},UR={readContext:function(n){return cr(n)},useCallback:function(n,r){return ge="useCallback",Ae(),xm(n,r)},useContext:function(n){return ge="useContext",Ae(),cr(n)},useEffect:function(n,r){return ge="useEffect",Ae(),uf(n,r)},useImperativeHandle:function(n,r,o){return ge="useImperativeHandle",Ae(),ym(n,r,o)},useInsertionEffect:function(n,r){return ge="useInsertionEffect",Ae(),vm(n,r)},useLayoutEffect:function(n,r){return ge="useLayoutEffect",Ae(),gm(n,r)},useMemo:function(n,r){ge="useMemo",Ae();var o=Ve.current;Ve.current=Tm;try{return Sm(n,r)}finally{Ve.current=o}},useReducer:function(n,r,o){ge="useReducer",Ae();var l=Ve.current;Ve.current=Tm;try{return m0(n,r,o)}finally{Ve.current=l}},useRef:function(n){return ge="useRef",Ae(),hm()},useState:function(n){ge="useState",Ae();var r=Ve.current;Ve.current=Tm;try{return y0(n)}finally{Ve.current=r}},useDebugValue:function(n,r){return ge="useDebugValue",Ae(),bm()},useDeferredValue:function(n){return ge="useDeferredValue",Ae(),OR(n)},useTransition:function(){return ge="useTransition",Ae(),PR()},useMutableSource:function(n,r,o){return ge="useMutableSource",Ae(),void 0},useSyncExternalStore:function(n,r,o){return ge="useSyncExternalStore",Ae(),dm(n,r)},useId:function(){return ge="useId",Ae(),wm()},unstable_isNewReconciler:K},Wi={readContext:function(n){return D0(),cr(n)},useCallback:function(n,r){return ge="useCallback",xt(),fn(),C0(n,r)},useContext:function(n){return ge="useContext",xt(),fn(),cr(n)},useEffect:function(n,r){return ge="useEffect",xt(),fn(),mm(n,r)},useImperativeHandle:function(n,r,o){return ge="useImperativeHandle",xt(),fn(),w0(n,r,o)},useInsertionEffect:function(n,r){return ge="useInsertionEffect",xt(),fn(),x0(n,r)},useLayoutEffect:function(n,r){return ge="useLayoutEffect",xt(),fn(),S0(n,r)},useMemo:function(n,r){ge="useMemo",xt(),fn();var o=Ve.current;Ve.current=Wi;try{return T0(n,r)}finally{Ve.current=o}},useReducer:function(n,r,o){ge="useReducer",xt(),fn();var l=Ve.current;Ve.current=Wi;try{return h0(n,r,o)}finally{Ve.current=l}},useRef:function(n){return ge="useRef",xt(),fn(),b0(n)},useState:function(n){ge="useState",xt(),fn();var r=Ve.current;Ve.current=Wi;try{return fm(n)}finally{Ve.current=r}},useDebugValue:function(n,r){return ge="useDebugValue",xt(),fn(),void 0},useDeferredValue:function(n){return ge="useDeferredValue",xt(),fn(),E0(n)},useTransition:function(){return ge="useTransition",xt(),fn(),R0()},useMutableSource:function(n,r,o){return ge="useMutableSource",xt(),fn(),void 0},useSyncExternalStore:function(n,r,o){return ge="useSyncExternalStore",xt(),fn(),v0(n,r,o)},useId:function(){return ge="useId",xt(),fn(),k0()},unstable_isNewReconciler:K},Si={readContext:function(n){return D0(),cr(n)},useCallback:function(n,r){return ge="useCallback",xt(),Ae(),xm(n,r)},useContext:function(n){return ge="useContext",xt(),Ae(),cr(n)},useEffect:function(n,r){return ge="useEffect",xt(),Ae(),uf(n,r)},useImperativeHandle:function(n,r,o){return ge="useImperativeHandle",xt(),Ae(),ym(n,r,o)},useInsertionEffect:function(n,r){return ge="useInsertionEffect",xt(),Ae(),vm(n,r)},useLayoutEffect:function(n,r){return ge="useLayoutEffect",xt(),Ae(),gm(n,r)},useMemo:function(n,r){ge="useMemo",xt(),Ae();var o=Ve.current;Ve.current=Si;try{return Sm(n,r)}finally{Ve.current=o}},useReducer:function(n,r,o){ge="useReducer",xt(),Ae();var l=Ve.current;Ve.current=Si;try{return p0(n,r,o)}finally{Ve.current=l}},useRef:function(n){return ge="useRef",xt(),Ae(),hm()},useState:function(n){ge="useState",xt(),Ae();var r=Ve.current;Ve.current=Si;try{return g0(n)}finally{Ve.current=r}},useDebugValue:function(n,r){return ge="useDebugValue",xt(),Ae(),bm()},useDeferredValue:function(n){return ge="useDeferredValue",xt(),Ae(),AR(n)},useTransition:function(){return ge="useTransition",xt(),Ae(),NR()},useMutableSource:function(n,r,o){return ge="useMutableSource",xt(),Ae(),void 0},useSyncExternalStore:function(n,r,o){return ge="useSyncExternalStore",xt(),Ae(),dm(n,r)},useId:function(){return ge="useId",xt(),Ae(),wm()},unstable_isNewReconciler:K},Tm={readContext:function(n){return D0(),cr(n)},useCallback:function(n,r){return ge="useCallback",xt(),Ae(),xm(n,r)},useContext:function(n){return ge="useContext",xt(),Ae(),cr(n)},useEffect:function(n,r){return ge="useEffect",xt(),Ae(),uf(n,r)},useImperativeHandle:function(n,r,o){return ge="useImperativeHandle",xt(),Ae(),ym(n,r,o)},useInsertionEffect:function(n,r){return ge="useInsertionEffect",xt(),Ae(),vm(n,r)},useLayoutEffect:function(n,r){return ge="useLayoutEffect",xt(),Ae(),gm(n,r)},useMemo:function(n,r){ge="useMemo",xt(),Ae();var o=Ve.current;Ve.current=Si;try{return Sm(n,r)}finally{Ve.current=o}},useReducer:function(n,r,o){ge="useReducer",xt(),Ae();var l=Ve.current;Ve.current=Si;try{return m0(n,r,o)}finally{Ve.current=l}},useRef:function(n){return ge="useRef",xt(),Ae(),hm()},useState:function(n){ge="useState",xt(),Ae();var r=Ve.current;Ve.current=Si;try{return y0(n)}finally{Ve.current=r}},useDebugValue:function(n,r){return ge="useDebugValue",xt(),Ae(),bm()},useDeferredValue:function(n){return ge="useDeferredValue",xt(),Ae(),OR(n)},useTransition:function(){return ge="useTransition",xt(),Ae(),PR()},useMutableSource:function(n,r,o){return ge="useMutableSource",xt(),Ae(),void 0},useSyncExternalStore:function(n,r,o){return ge="useSyncExternalStore",xt(),Ae(),dm(n,r)},useId:function(){return ge="useId",xt(),Ae(),wm()},unstable_isNewReconciler:K}}var Ts=t.unstable_now,HR=0,Em=-1,df=-1,Rm=-1,_0=!1,km=!1;function WR(){return _0}function tV(){km=!0}function nV(){_0=!1,km=!1}function rV(){_0=km,km=!1}function YR(){return HR}function qR(){HR=Ts()}function A0(n){df=Ts(),n.actualStartTime<0&&(n.actualStartTime=Ts())}function GR(n){df=-1}function Dm(n,r){if(df>=0){var o=Ts()-df;n.actualDuration+=o,r&&(n.selfBaseDuration=o),df=-1}}function Yi(n){if(Em>=0){var r=Ts()-Em;Em=-1;for(var o=n.return;o!==null;){switch(o.tag){case y:var l=o.stateNode;l.effectDuration+=r;return;case $:var d=o.stateNode;d.effectDuration+=r;return}o=o.return}}}function O0(n){if(Rm>=0){var r=Ts()-Rm;Rm=-1;for(var o=n.return;o!==null;){switch(o.tag){case y:var l=o.stateNode;l!==null&&(l.passiveEffectDuration+=r);return;case $:var d=o.stateNode;d!==null&&(d.passiveEffectDuration+=r);return}o=o.return}}}function qi(){Em=Ts()}function M0(){Rm=Ts()}function N0(n){for(var r=n.child;r;)n.actualDuration+=r.actualDuration,r=r.sibling}function wi(n,r){if(n&&n.defaultProps){var o=Rt({},r),l=n.defaultProps;for(var d in l)o[d]===void 0&&(o[d]=l[d]);return o}return r}var P0={},j0,L0,$0,z0,F0,XR,_m,I0,V0,B0,ff;{j0=new Set,L0=new Set,$0=new Set,z0=new Set,I0=new Set,F0=new Set,V0=new Set,B0=new Set,ff=new Set;var KR=new Set;_m=function(n,r){if(!(n===null||typeof n=="function")){var o=r+"_"+n;KR.has(o)||(KR.add(o),c("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",r,n))}},XR=function(n,r){if(r===void 0){var o=Bt(n)||"Component";F0.has(o)||(F0.add(o),c("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",o))}},Object.defineProperty(P0,"_processChildContext",{enumerable:!1,value:function(){throw new Error("_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).")}}),Object.freeze(P0)}function U0(n,r,o,l){var d=n.memoizedState,p=o(l,d);{if(n.mode&Kn){Tr(!0);try{p=o(l,d)}finally{Tr(!1)}}XR(r,p)}var g=p==null?d:Rt({},d,p);if(n.memoizedState=g,n.lanes===Se){var b=n.updateQueue;b.baseState=g}}var H0={isMounted:GL,enqueueSetState:function(n,r,o){var l=fc(n),d=oa(),p=Ds(l),g=jo(d,p);g.payload=r,o!=null&&(_m(o,"setState"),g.callback=o);var b=xs(l,g,p);b!==null&&(xr(b,l,p,d),am(b,l,p)),Sy(l,p)},enqueueReplaceState:function(n,r,o){var l=fc(n),d=oa(),p=Ds(l),g=jo(d,p);g.tag=hR,g.payload=r,o!=null&&(_m(o,"replaceState"),g.callback=o);var b=xs(l,g,p);b!==null&&(xr(b,l,p,d),am(b,l,p)),Sy(l,p)},enqueueForceUpdate:function(n,r){var o=fc(n),l=oa(),d=Ds(o),p=jo(l,d);p.tag=tm,r!=null&&(_m(r,"forceUpdate"),p.callback=r);var g=xs(o,p,d);g!==null&&(xr(g,o,d,l),am(g,o,d)),E5(o,d)}};function QR(n,r,o,l,d,p,g){var b=n.stateNode;if(typeof b.shouldComponentUpdate=="function"){var T=b.shouldComponentUpdate(l,p,g);{if(n.mode&Kn){Tr(!0);try{T=b.shouldComponentUpdate(l,p,g)}finally{Tr(!1)}}T===void 0&&c("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",Bt(r)||"Component")}return T}return r.prototype&&r.prototype.isPureReactComponent?!Nd(o,l)||!Nd(d,p):!0}function aV(n,r,o){var l=n.stateNode;{var d=Bt(r)||"Component",p=l.render;p||(r.prototype&&typeof r.prototype.render=="function"?c("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",d):c("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",d)),l.getInitialState&&!l.getInitialState.isReactClassApproved&&!l.state&&c("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?",d),l.getDefaultProps&&!l.getDefaultProps.isReactClassApproved&&c("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.",d),l.propTypes&&c("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",d),l.contextType&&c("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",d),r.childContextTypes&&!ff.has(r)&&(n.mode&Kn)===nt&&(ff.add(r),c(`%s uses the legacy childContextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() instead
144
-
145
- .Learn more about this warning here: https://reactjs.org/link/legacy-context`,d)),r.contextTypes&&!ff.has(r)&&(n.mode&Kn)===nt&&(ff.add(r),c(`%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.
146
-
147
- Learn more about this warning here: https://reactjs.org/link/legacy-context`,d)),l.contextTypes&&c("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",d),r.contextType&&r.contextTypes&&!V0.has(r)&&(V0.add(r),c("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",d)),typeof l.componentShouldUpdate=="function"&&c("%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.",d),r.prototype&&r.prototype.isPureReactComponent&&typeof l.shouldComponentUpdate<"u"&&c("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",Bt(r)||"A pure component"),typeof l.componentDidUnmount=="function"&&c("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",d),typeof l.componentDidReceiveProps=="function"&&c("%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().",d),typeof l.componentWillRecieveProps=="function"&&c("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",d),typeof l.UNSAFE_componentWillRecieveProps=="function"&&c("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",d);var g=l.props!==o;l.props!==void 0&&g&&c("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",d,d),l.defaultProps&&c("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",d,d),typeof l.getSnapshotBeforeUpdate=="function"&&typeof l.componentDidUpdate!="function"&&!$0.has(r)&&($0.add(r),c("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",Bt(r))),typeof l.getDerivedStateFromProps=="function"&&c("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",d),typeof l.getDerivedStateFromError=="function"&&c("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",d),typeof r.getSnapshotBeforeUpdate=="function"&&c("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",d);var b=l.state;b&&(typeof b!="object"||sn(b))&&c("%s.state: must be set to an object or null",d),typeof l.getChildContext=="function"&&typeof r.childContextTypes!="object"&&c("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",d)}}function ZR(n,r){r.updater=H0,n.stateNode=r,UL(r,n),r._reactInternalInstance=P0}function JR(n,r,o){var l=!1,d=La,p=La,g=r.contextType;if("contextType"in r){var b=g===null||g!==void 0&&g.$$typeof===ce&&g._context===void 0;if(!b&&!B0.has(r)){B0.add(r);var T="";g===void 0?T=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof g!="object"?T=" However, it is set to a "+typeof g+".":g.$$typeof===M?T=" Did you accidentally pass the Context.Provider instead?":g._context!==void 0?T=" Did you accidentally pass the Context.Consumer instead?":T=" However, it is set to an object with keys {"+Object.keys(g).join(", ")+"}.",c("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",Bt(r)||"Component",T)}}if(typeof g=="object"&&g!==null)p=cr(g);else{d=Ac(n,r,!0);var D=r.contextTypes;l=D!=null,p=l?Oc(n,d):La}var A=new r(o,p);if(n.mode&Kn){Tr(!0);try{A=new r(o,p)}finally{Tr(!1)}}var U=n.memoizedState=A.state!==null&&A.state!==void 0?A.state:null;ZR(n,A);{if(typeof r.getDerivedStateFromProps=="function"&&U===null){var B=Bt(r)||"Component";L0.has(B)||(L0.add(B),c("`%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.",B,A.state===null?"null":"undefined",B))}if(typeof r.getDerivedStateFromProps=="function"||typeof A.getSnapshotBeforeUpdate=="function"){var ne=null,ie=null,fe=null;if(typeof A.componentWillMount=="function"&&A.componentWillMount.__suppressDeprecationWarning!==!0?ne="componentWillMount":typeof A.UNSAFE_componentWillMount=="function"&&(ne="UNSAFE_componentWillMount"),typeof A.componentWillReceiveProps=="function"&&A.componentWillReceiveProps.__suppressDeprecationWarning!==!0?ie="componentWillReceiveProps":typeof A.UNSAFE_componentWillReceiveProps=="function"&&(ie="UNSAFE_componentWillReceiveProps"),typeof A.componentWillUpdate=="function"&&A.componentWillUpdate.__suppressDeprecationWarning!==!0?fe="componentWillUpdate":typeof A.UNSAFE_componentWillUpdate=="function"&&(fe="UNSAFE_componentWillUpdate"),ne!==null||ie!==null||fe!==null){var Le=Bt(r)||"Component",Je=typeof r.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";z0.has(Le)||(z0.add(Le),c(`Unsafe legacy lifecycles will not be called for components using new component APIs.
148
-
149
- %s uses %s but also contains the following legacy lifecycles:%s%s%s
150
-
151
- The above lifecycles should be removed. Learn more about this warning here:
152
- https://reactjs.org/link/unsafe-component-lifecycles`,Le,Je,ne!==null?`
153
- `+ne:"",ie!==null?`
154
- `+ie:"",fe!==null?`
155
- `+fe:""))}}}return l&&B1(n,d,p),A}function iV(n,r){var o=r.state;typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),o!==r.state&&(c("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Tt(n)||"Component"),H0.enqueueReplaceState(r,r.state,null))}function ek(n,r,o,l){var d=r.state;if(typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(o,l),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(o,l),r.state!==d){{var p=Tt(n)||"Component";j0.has(p)||(j0.add(p),c("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",p))}H0.enqueueReplaceState(r,r.state,null)}}function W0(n,r,o,l){aV(n,r,o);var d=n.stateNode;d.props=o,d.state=n.memoizedState,d.refs={},e0(n);var p=r.contextType;if(typeof p=="object"&&p!==null)d.context=cr(p);else{var g=Ac(n,r,!0);d.context=Oc(n,g)}{if(d.state===o){var b=Bt(r)||"Component";I0.has(b)||(I0.add(b),c("%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.",b))}n.mode&Kn&&bi.recordLegacyContextWarning(n,d),bi.recordUnsafeLifecycleWarnings(n,d)}d.state=n.memoizedState;var T=r.getDerivedStateFromProps;if(typeof T=="function"&&(U0(n,r,T,o),d.state=n.memoizedState),typeof r.getDerivedStateFromProps!="function"&&typeof d.getSnapshotBeforeUpdate!="function"&&(typeof d.UNSAFE_componentWillMount=="function"||typeof d.componentWillMount=="function")&&(iV(n,d),im(n,o,d,l),d.state=n.memoizedState),typeof d.componentDidMount=="function"){var D=Xt;D|=ol,(n.mode&Fi)!==nt&&(D|=Eo),n.flags|=D}}function oV(n,r,o,l){var d=n.stateNode,p=n.memoizedProps;d.props=p;var g=d.context,b=r.contextType,T=La;if(typeof b=="object"&&b!==null)T=cr(b);else{var D=Ac(n,r,!0);T=Oc(n,D)}var A=r.getDerivedStateFromProps,U=typeof A=="function"||typeof d.getSnapshotBeforeUpdate=="function";!U&&(typeof d.UNSAFE_componentWillReceiveProps=="function"||typeof d.componentWillReceiveProps=="function")&&(p!==o||g!==T)&&ek(n,d,o,T),mR();var B=n.memoizedState,ne=d.state=B;if(im(n,o,d,l),ne=n.memoizedState,p===o&&B===ne&&!Ip()&&!om()){if(typeof d.componentDidMount=="function"){var ie=Xt;ie|=ol,(n.mode&Fi)!==nt&&(ie|=Eo),n.flags|=ie}return!1}typeof A=="function"&&(U0(n,r,A,o),ne=n.memoizedState);var fe=om()||QR(n,r,p,o,B,ne,T);if(fe){if(!U&&(typeof d.UNSAFE_componentWillMount=="function"||typeof d.componentWillMount=="function")&&(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"){var Le=Xt;Le|=ol,(n.mode&Fi)!==nt&&(Le|=Eo),n.flags|=Le}}else{if(typeof d.componentDidMount=="function"){var Je=Xt;Je|=ol,(n.mode&Fi)!==nt&&(Je|=Eo),n.flags|=Je}n.memoizedProps=o,n.memoizedState=ne}return d.props=o,d.state=ne,d.context=T,fe}function sV(n,r,o,l,d){var p=r.stateNode;pR(n,r);var g=r.memoizedProps,b=r.type===r.elementType?g:wi(r.type,g);p.props=b;var T=r.pendingProps,D=p.context,A=o.contextType,U=La;if(typeof A=="object"&&A!==null)U=cr(A);else{var B=Ac(r,o,!0);U=Oc(r,B)}var ne=o.getDerivedStateFromProps,ie=typeof ne=="function"||typeof p.getSnapshotBeforeUpdate=="function";!ie&&(typeof p.UNSAFE_componentWillReceiveProps=="function"||typeof p.componentWillReceiveProps=="function")&&(g!==T||D!==U)&&ek(r,p,l,U),mR();var fe=r.memoizedState,Le=p.state=fe;if(im(r,l,p,d),Le=r.memoizedState,g===T&&fe===Le&&!Ip()&&!om()&&!Y)return typeof p.componentDidUpdate=="function"&&(g!==n.memoizedProps||fe!==n.memoizedState)&&(r.flags|=Xt),typeof p.getSnapshotBeforeUpdate=="function"&&(g!==n.memoizedProps||fe!==n.memoizedState)&&(r.flags|=al),!1;typeof ne=="function"&&(U0(r,o,ne,l),Le=r.memoizedState);var Je=om()||QR(r,o,b,l,fe,Le,U)||Y;return Je?(!ie&&(typeof p.UNSAFE_componentWillUpdate=="function"||typeof p.componentWillUpdate=="function")&&(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(l,Le,U),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(l,Le,U)),typeof p.componentDidUpdate=="function"&&(r.flags|=Xt),typeof p.getSnapshotBeforeUpdate=="function"&&(r.flags|=al)):(typeof p.componentDidUpdate=="function"&&(g!==n.memoizedProps||fe!==n.memoizedState)&&(r.flags|=Xt),typeof p.getSnapshotBeforeUpdate=="function"&&(g!==n.memoizedProps||fe!==n.memoizedState)&&(r.flags|=al),r.memoizedProps=l,r.memoizedState=Le),p.props=l,p.state=Le,p.context=U,Je}function Tl(n,r){return{value:n,source:r,stack:rs(r),digest:null}}function Y0(n,r,o){return{value:n,source:null,stack:o??null,digest:r??null}}function lV(n,r){return!0}function q0(n,r){try{var o=lV(n,r);if(o===!1)return;var l=r.value,d=r.source,p=r.stack,g=p!==null?p:"";if(l!=null&&l._suppressLogging){if(n.tag===m)return;console.error(l)}var b=d?Tt(d):null,T=b?"The above error occurred in the <"+b+"> component:":"The above error occurred in one of your React components:",D;if(n.tag===y)D=`Consider adding an error boundary to your tree to customize error handling behavior.
156
- Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.`;else{var A=Tt(n)||"Anonymous";D="React will try to recreate this component tree from scratch "+("using the error boundary you provided, "+A+".")}var U=T+`
157
- `+g+`
158
-
159
- `+(""+D);console.error(U)}catch(B){setTimeout(function(){throw B})}}var cV=typeof WeakMap=="function"?WeakMap:Map;function tk(n,r,o){var l=jo(Mn,o);l.tag=Zb,l.payload={element:null};var d=r.value;return l.callback=function(){tU(d),q0(n,r)},l}function G0(n,r,o){var l=jo(Mn,o);l.tag=Zb;var d=n.type.getDerivedStateFromError;if(typeof d=="function"){var p=r.value;l.payload=function(){return d(p)},l.callback=function(){fD(n),q0(n,r)}}var g=n.stateNode;return g!==null&&typeof g.componentDidCatch=="function"&&(l.callback=function(){fD(n),q0(n,r),typeof d!="function"&&JB(this);var T=r.value,D=r.stack;this.componentDidCatch(T,{componentStack:D!==null?D:""}),typeof d!="function"&&(Ma(n.lanes,bt)||c("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",Tt(n)||"Unknown"))}),l}function nk(n,r,o){var l=n.pingCache,d;if(l===null?(l=n.pingCache=new cV,d=new Set,l.set(r,d)):(d=l.get(r),d===void 0&&(d=new Set,l.set(r,d))),!d.has(o)){d.add(o);var p=nU.bind(null,n,r,o);pi&&_f(n,o),r.then(p,p)}}function uV(n,r,o,l){var d=n.updateQueue;if(d===null){var p=new Set;p.add(o),n.updateQueue=p}else d.add(o)}function dV(n,r){var o=n.tag;if((n.mode&Ht)===nt&&(o===h||o===N||o===F)){var l=n.alternate;l?(n.updateQueue=l.updateQueue,n.memoizedState=l.memoizedState,n.lanes=l.lanes):(n.updateQueue=null,n.memoizedState=null)}}function rk(n){var r=n;do{if(r.tag===L&&WI(r))return r;r=r.return}while(r!==null);return null}function ak(n,r,o,l,d){if((n.mode&Ht)===nt){if(n===r)n.flags|=ra;else{if(n.flags|=ln,o.flags|=py,o.flags&=~(HL|ud),o.tag===m){var p=o.alternate;if(p===null)o.tag=le;else{var g=jo(Mn,bt);g.tag=tm,xs(o,g,bt)}}o.lanes=Mt(o.lanes,bt)}return n}return n.flags|=ra,n.lanes=d,n}function fV(n,r,o,l,d){if(o.flags|=ud,pi&&_f(n,d),l!==null&&typeof l=="object"&&typeof l.then=="function"){var p=l;dV(o),Ar()&&o.mode&Ht&&X1();var g=rk(r);if(g!==null){g.flags&=~Co,ak(g,r,o,n,d),g.mode&Ht&&nk(n,p,d),uV(g,n,p);return}else{if(!P5(d)){nk(n,p,d),kx();return}var b=new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");l=b}}else if(Ar()&&o.mode&Ht){X1();var T=rk(r);if(T!==null){(T.flags&ra)===st&&(T.flags|=Co),ak(T,r,o,n,d),Ib(Tl(l,o));return}}l=Tl(l,o),WB(l);var D=r;do{switch(D.tag){case y:{var A=l;D.flags|=ra;var U=yd(d);D.lanes=Mt(D.lanes,U);var B=tk(D,A,U);t0(D,B);return}case m:var ne=l,ie=D.type,fe=D.stateNode;if((D.flags&ln)===st&&(typeof ie.getDerivedStateFromError=="function"||fe!==null&&typeof fe.componentDidCatch=="function"&&!rD(fe))){D.flags|=ra;var Le=yd(d);D.lanes=Mt(D.lanes,Le);var Je=G0(D,ne,Le);t0(D,Je);return}break}D=D.return}while(D!==null)}function hV(){return null}var hf=a.ReactCurrentOwner,Ci=!1,X0,pf,K0,Q0,Z0,El,J0,Am,mf;X0={},pf={},K0={},Q0={},Z0={},El=!1,J0={},Am={},mf={};function aa(n,r,o,l){n===null?r.child=sR(r,null,o,l):r.child=jc(r,n.child,o,l)}function pV(n,r,o,l){r.child=jc(r,n.child,null,l),r.child=jc(r,null,o,l)}function ik(n,r,o,l,d){if(r.type!==r.elementType){var p=o.propTypes;p&&gi(p,l,"prop",Bt(o))}var g=o.render,b=r.ref,T,D;$c(r,d),fd(r);{if(hf.current=r,Br(!0),T=Uc(n,r,g,l,b,d),D=Hc(),r.mode&Kn){Tr(!0);try{T=Uc(n,r,g,l,b,d),D=Hc()}finally{Tr(!1)}}Br(!1)}return vc(),n!==null&&!Ci?(SR(n,r,d),Lo(n,r,d)):(Ar()&&D&&Pb(r),r.flags|=hc,aa(n,r,T,d),r.child)}function ok(n,r,o,l,d){if(n===null){var p=o.type;if(bU(p)&&o.compare===null&&o.defaultProps===void 0){var g=p;return g=Zc(p),r.tag=F,r.type=g,nx(r,p),sk(n,r,g,l,d)}{var b=p.propTypes;if(b&&gi(b,l,"prop",Bt(p)),o.defaultProps!==void 0){var T=Bt(p)||"Unknown";mf[T]||(c("%s: Support for defaultProps will be removed from memo components in a future major release. Use JavaScript default parameters instead.",T),mf[T]=!0)}}var D=zx(o.type,null,l,r,r.mode,d);return D.ref=r.ref,D.return=r,r.child=D,D}{var A=o.type,U=A.propTypes;U&&gi(U,l,"prop",Bt(A))}var B=n.child,ne=lx(n,d);if(!ne){var ie=B.memoizedProps,fe=o.compare;if(fe=fe!==null?fe:Nd,fe(ie,l)&&n.ref===r.ref)return Lo(n,r,d)}r.flags|=hc;var Le=Al(B,l);return Le.ref=r.ref,Le.return=r,r.child=Le,Le}function sk(n,r,o,l,d){if(r.type!==r.elementType){var p=r.elementType;if(p.$$typeof===je){var g=p,b=g._payload,T=g._init;try{p=T(b)}catch{p=null}var D=p&&p.propTypes;D&&gi(D,l,"prop",Bt(p))}}if(n!==null){var A=n.memoizedProps;if(Nd(A,l)&&n.ref===r.ref&&r.type===n.type)if(Ci=!1,r.pendingProps=l=A,lx(n,d))(n.flags&py)!==st&&(Ci=!0);else return r.lanes=n.lanes,Lo(n,r,d)}return ex(n,r,o,l,d)}function lk(n,r,o){var l=r.pendingProps,d=l.children,p=n!==null?n.memoizedState:null;if(l.mode==="hidden"||G)if((r.mode&Ht)===nt){var g={baseLanes:Se,cachePool:null,transitions:null};r.memoizedState=g,Um(r,o)}else if(Ma(o,Oa)){var U={baseLanes:Se,cachePool:null,transitions:null};r.memoizedState=U;var B=p!==null?p.baseLanes:o;Um(r,B)}else{var b=null,T;if(p!==null){var D=p.baseLanes;T=Mt(D,o)}else T=o;r.lanes=r.childLanes=Oa;var A={baseLanes:T,cachePool:b,transitions:null};return r.memoizedState=A,r.updateQueue=null,Um(r,T),null}else{var ne;p!==null?(ne=Mt(p.baseLanes,o),r.memoizedState=null):ne=o,Um(r,ne)}return aa(n,r,d,o),r.child}function mV(n,r,o){var l=r.pendingProps;return aa(n,r,l,o),r.child}function vV(n,r,o){var l=r.pendingProps.children;return aa(n,r,l,o),r.child}function gV(n,r,o){{r.flags|=Xt;{var l=r.stateNode;l.effectDuration=0,l.passiveEffectDuration=0}}var d=r.pendingProps,p=d.children;return aa(n,r,p,o),r.child}function ck(n,r){var o=r.ref;(n===null&&o!==null||n!==null&&n.ref!==o)&&(r.flags|=ls,r.flags|=my)}function ex(n,r,o,l,d){if(r.type!==r.elementType){var p=o.propTypes;p&&gi(p,l,"prop",Bt(o))}var g;{var b=Ac(r,o,!0);g=Oc(r,b)}var T,D;$c(r,d),fd(r);{if(hf.current=r,Br(!0),T=Uc(n,r,o,l,g,d),D=Hc(),r.mode&Kn){Tr(!0);try{T=Uc(n,r,o,l,g,d),D=Hc()}finally{Tr(!1)}}Br(!1)}return vc(),n!==null&&!Ci?(SR(n,r,d),Lo(n,r,d)):(Ar()&&D&&Pb(r),r.flags|=hc,aa(n,r,T,d),r.child)}function uk(n,r,o,l,d){{switch(PU(r)){case!1:{var p=r.stateNode,g=r.type,b=new g(r.memoizedProps,p.context),T=b.state;p.updater.enqueueSetState(p,T,null);break}case!0:{r.flags|=ln,r.flags|=ra;var D=new Error("Simulated error coming from DevTools"),A=yd(d);r.lanes=Mt(r.lanes,A);var U=G0(r,Tl(D,r),A);t0(r,U);break}}if(r.type!==r.elementType){var B=o.propTypes;B&&gi(B,l,"prop",Bt(o))}}var ne;Bi(o)?(ne=!0,Bp(r)):ne=!1,$c(r,d);var ie=r.stateNode,fe;ie===null?(Mm(n,r),JR(r,o,l),W0(r,o,l,d),fe=!0):n===null?fe=oV(r,o,l,d):fe=sV(n,r,o,l,d);var Le=tx(n,r,o,fe,ne,d);{var Je=r.stateNode;fe&&Je.props!==l&&(El||c("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Tt(r)||"a component"),El=!0)}return Le}function tx(n,r,o,l,d,p){ck(n,r);var g=(r.flags&ln)!==st;if(!l&&!g)return d&&W1(r,o,!1),Lo(n,r,p);var b=r.stateNode;hf.current=r;var T;if(g&&typeof o.getDerivedStateFromError!="function")T=null,GR();else{fd(r);{if(Br(!0),T=b.render(),r.mode&Kn){Tr(!0);try{b.render()}finally{Tr(!1)}}Br(!1)}vc()}return r.flags|=hc,n!==null&&g?pV(n,r,T,p):aa(n,r,T,p),r.memoizedState=b.state,d&&W1(r,o,!0),r.child}function dk(n){var r=n.stateNode;r.pendingContext?U1(n,r.pendingContext,r.pendingContext!==r.context):r.context&&U1(n,r.context,!1),n0(n,r.containerInfo)}function yV(n,r,o){if(dk(r),n===null)throw new Error("Should have a current fiber. This is a bug in React.");var l=r.pendingProps,d=r.memoizedState,p=d.element;pR(n,r),im(r,l,null,o);var g=r.memoizedState;r.stateNode;var b=g.element;if(d.isDehydrated){var T={element:b,isDehydrated:!1,cache:g.cache,pendingSuspenseBoundaries:g.pendingSuspenseBoundaries,transitions:g.transitions},D=r.updateQueue;if(D.baseState=T,r.memoizedState=T,r.flags&Co){var A=Tl(new Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."),r);return fk(n,r,b,o,A)}else if(b!==p){var U=Tl(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),r);return fk(n,r,b,o,U)}else{SI(r);var B=sR(r,null,b,o);r.child=B;for(var ne=B;ne;)ne.flags=ne.flags&~lr|To,ne=ne.sibling}}else{if(Pc(),b===p)return Lo(n,r,o);aa(n,r,b,o)}return r.child}function fk(n,r,o,l,d){return Pc(),Ib(d),r.flags|=Co,aa(n,r,o,l),r.child}function bV(n,r,o){yR(r),n===null&&Fb(r);var l=r.type,d=r.pendingProps,p=n!==null?n.memoizedProps:null,g=d.children,b=xb(l,d);return b?g=null:p!==null&&xb(l,p)&&(r.flags|=cd),ck(n,r),aa(n,r,g,o),r.child}function xV(n,r){return n===null&&Fb(r),null}function SV(n,r,o,l){Mm(n,r);var d=r.pendingProps,p=o,g=p._payload,b=p._init,T=b(g);r.type=T;var D=r.tag=xU(T),A=wi(T,d),U;switch(D){case h:return nx(r,T),r.type=T=Zc(T),U=ex(null,r,T,A,l),U;case m:return r.type=T=Mx(T),U=uk(null,r,T,A,l),U;case N:return r.type=T=Nx(T),U=ik(null,r,T,A,l),U;case I:{if(r.type!==r.elementType){var B=T.propTypes;B&&gi(B,A,"prop",Bt(T))}return U=ok(null,r,T,wi(T.type,A),l),U}}var ne="";throw T!==null&&typeof T=="object"&&T.$$typeof===je&&(ne=" Did you wrap a component in React.lazy() more than once?"),new Error("Element type is invalid. Received a promise that resolves to: "+T+". "+("Lazy element type must resolve to a class or function."+ne))}function wV(n,r,o,l,d){Mm(n,r),r.tag=m;var p;return Bi(o)?(p=!0,Bp(r)):p=!1,$c(r,d),JR(r,o,l),W0(r,o,l,d),tx(null,r,o,!0,p,d)}function CV(n,r,o,l){Mm(n,r);var d=r.pendingProps,p;{var g=Ac(r,o,!1);p=Oc(r,g)}$c(r,l);var b,T;fd(r);{if(o.prototype&&typeof o.prototype.render=="function"){var D=Bt(o)||"Unknown";X0[D]||(c("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.",D,D),X0[D]=!0)}r.mode&Kn&&bi.recordLegacyContextWarning(r,null),Br(!0),hf.current=r,b=Uc(null,r,o,d,p,l),T=Hc(),Br(!1)}if(vc(),r.flags|=hc,typeof b=="object"&&b!==null&&typeof b.render=="function"&&b.$$typeof===void 0){var A=Bt(o)||"Unknown";pf[A]||(c("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.",A,A,A),pf[A]=!0)}if(typeof b=="object"&&b!==null&&typeof b.render=="function"&&b.$$typeof===void 0){{var U=Bt(o)||"Unknown";pf[U]||(c("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.",U,U,U),pf[U]=!0)}r.tag=m,r.memoizedState=null,r.updateQueue=null;var B=!1;return Bi(o)?(B=!0,Bp(r)):B=!1,r.memoizedState=b.state!==null&&b.state!==void 0?b.state:null,e0(r),ZR(r,b),W0(r,o,d,l),tx(null,r,o,!0,B,l)}else{if(r.tag=h,r.mode&Kn){Tr(!0);try{b=Uc(null,r,o,d,p,l),T=Hc()}finally{Tr(!1)}}return Ar()&&T&&Pb(r),aa(null,r,b,l),nx(r,o),r.child}}function nx(n,r){{if(r&&r.childContextTypes&&c("%s(...): childContextTypes cannot be defined on a function component.",r.displayName||r.name||"Component"),n.ref!==null){var o="",l=Wa();l&&(o+=`
160
-
161
- Check the render method of \``+l+"`.");var d=l||"",p=n._debugSource;p&&(d=p.fileName+":"+p.lineNumber),Z0[d]||(Z0[d]=!0,c("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",o))}if(r.defaultProps!==void 0){var g=Bt(r)||"Unknown";mf[g]||(c("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",g),mf[g]=!0)}if(typeof r.getDerivedStateFromProps=="function"){var b=Bt(r)||"Unknown";Q0[b]||(c("%s: Function components do not support getDerivedStateFromProps.",b),Q0[b]=!0)}if(typeof r.contextType=="object"&&r.contextType!==null){var T=Bt(r)||"Unknown";K0[T]||(c("%s: Function components do not support contextType.",T),K0[T]=!0)}}}var rx={dehydrated:null,treeContext:null,retryLane:Er};function ax(n){return{baseLanes:n,cachePool:hV(),transitions:null}}function TV(n,r){var o=null;return{baseLanes:Mt(n.baseLanes,r),cachePool:o,transitions:n.transitions}}function EV(n,r,o,l){if(r!==null){var d=r.memoizedState;if(d===null)return!1}return i0(n,rf)}function RV(n,r){return dp(n.childLanes,r)}function hk(n,r,o){var l=r.pendingProps;jU(r)&&(r.flags|=ln);var d=xi.current,p=!1,g=(r.flags&ln)!==st;if(g||EV(d,n)?(p=!0,r.flags&=~ln):(n===null||n.memoizedState!==null)&&(d=HI(d,xR)),d=Fc(d),ws(r,d),n===null){Fb(r);var b=r.memoizedState;if(b!==null){var T=b.dehydrated;if(T!==null)return OV(r,T)}var D=l.children,A=l.fallback;if(p){var U=kV(r,D,A,o),B=r.child;return B.memoizedState=ax(o),r.memoizedState=rx,U}else return ix(r,D)}else{var ne=n.memoizedState;if(ne!==null){var ie=ne.dehydrated;if(ie!==null)return MV(n,r,g,l,ie,ne,o)}if(p){var fe=l.fallback,Le=l.children,Je=_V(n,r,Le,fe,o),Xe=r.child,Yt=n.child.memoizedState;return Xe.memoizedState=Yt===null?ax(o):TV(Yt,o),Xe.childLanes=RV(n,o),r.memoizedState=rx,Je}else{var zt=l.children,Z=DV(n,r,zt,o);return r.memoizedState=null,Z}}}function ix(n,r,o){var l=n.mode,d={mode:"visible",children:r},p=ox(d,l);return p.return=n,n.child=p,p}function kV(n,r,o,l){var d=n.mode,p=n.child,g={mode:"hidden",children:r},b,T;return(d&Ht)===nt&&p!==null?(b=p,b.childLanes=Se,b.pendingProps=g,n.mode&xn&&(b.actualDuration=0,b.actualStartTime=-1,b.selfBaseDuration=0,b.treeBaseDuration=0),T=As(o,d,l,null)):(b=ox(g,d),T=As(o,d,l,null)),b.return=n,T.return=n,b.sibling=T,n.child=b,T}function ox(n,r,o){return pD(n,r,Se,null)}function pk(n,r){return Al(n,r)}function DV(n,r,o,l){var d=n.child,p=d.sibling,g=pk(d,{mode:"visible",children:o});if((r.mode&Ht)===nt&&(g.lanes=l),g.return=r,g.sibling=null,p!==null){var b=r.deletions;b===null?(r.deletions=[p],r.flags|=rl):b.push(p)}return r.child=g,g}function _V(n,r,o,l,d){var p=r.mode,g=n.child,b=g.sibling,T={mode:"hidden",children:o},D;if((p&Ht)===nt&&r.child!==g){var A=r.child;D=A,D.childLanes=Se,D.pendingProps=T,r.mode&xn&&(D.actualDuration=0,D.actualStartTime=-1,D.selfBaseDuration=g.selfBaseDuration,D.treeBaseDuration=g.treeBaseDuration),r.deletions=null}else D=pk(g,T),D.subtreeFlags=g.subtreeFlags&Ro;var U;return b!==null?U=Al(b,l):(U=As(l,p,d,null),U.flags|=lr),U.return=r,D.return=r,D.sibling=U,r.child=D,U}function Om(n,r,o,l){l!==null&&Ib(l),jc(r,n.child,null,o);var d=r.pendingProps,p=d.children,g=ix(r,p);return g.flags|=lr,r.memoizedState=null,g}function AV(n,r,o,l,d){var p=r.mode,g={mode:"visible",children:o},b=ox(g,p),T=As(l,p,d,null);return T.flags|=lr,b.return=r,T.return=r,b.sibling=T,r.child=b,(r.mode&Ht)!==nt&&jc(r,n.child,null,d),T}function OV(n,r,o){return(n.mode&Ht)===nt?(c("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."),n.lanes=bt):Tb(r)?n.lanes=cl:n.lanes=Oa,null}function MV(n,r,o,l,d,p,g){if(o)if(r.flags&Co){r.flags&=~Co;var Z=Y0(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return Om(n,r,g,Z)}else{if(r.memoizedState!==null)return r.child=n.child,r.flags|=ln,null;var he=l.children,J=l.fallback,Ce=AV(n,r,he,J,g),Be=r.child;return Be.memoizedState=ax(g),r.memoizedState=rx,Ce}else{if(bI(),(r.mode&Ht)===nt)return Om(n,r,g,null);if(Tb(d)){var b,T,D;{var A=LF(d);b=A.digest,T=A.message,D=A.stack}var U;T?U=new Error(T):U=new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var B=Y0(U,b,D);return Om(n,r,g,B)}var ne=Ma(g,n.childLanes);if(Ci||ne){var ie=Bm();if(ie!==null){var fe=B5(ie,g);if(fe!==Er&&fe!==p.retryLane){p.retryLane=fe;var Le=Mn;ba(n,fe),xr(ie,n,fe,Le)}}kx();var Je=Y0(new Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition."));return Om(n,r,g,Je)}else if($1(d)){r.flags|=ln,r.child=n.child;var Xe=rU.bind(null,n);return $F(d,Xe),null}else{wI(r,d,p.treeContext);var Yt=l.children,zt=ix(r,Yt);return zt.flags|=To,zt}}}function mk(n,r,o){n.lanes=Mt(n.lanes,r);var l=n.alternate;l!==null&&(l.lanes=Mt(l.lanes,r)),Kb(n.return,r,o)}function NV(n,r,o){for(var l=r;l!==null;){if(l.tag===L){var d=l.memoizedState;d!==null&&mk(l,o,n)}else if(l.tag===de)mk(l,o,n);else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===n)return;for(;l.sibling===null;){if(l.return===null||l.return===n)return;l=l.return}l.sibling.return=l.return,l=l.sibling}}function PV(n){for(var r=n,o=null;r!==null;){var l=r.alternate;l!==null&&cm(l)===null&&(o=r),r=r.sibling}return o}function jV(n){if(n!==void 0&&n!=="forwards"&&n!=="backwards"&&n!=="together"&&!J0[n])if(J0[n]=!0,typeof n=="string")switch(n.toLowerCase()){case"together":case"forwards":case"backwards":{c('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',n,n.toLowerCase());break}case"forward":case"backward":{c('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',n,n.toLowerCase());break}default:c('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',n);break}else c('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',n)}function LV(n,r){n!==void 0&&!Am[n]&&(n!=="collapsed"&&n!=="hidden"?(Am[n]=!0,c('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',n)):r!=="forwards"&&r!=="backwards"&&(Am[n]=!0,c('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',n)))}function vk(n,r){{var o=sn(n),l=!o&&typeof ta(n)=="function";if(o||l){var d=o?"array":"iterable";return c("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>",d,r,d),!1}}return!0}function $V(n,r){if((r==="forwards"||r==="backwards")&&n!==void 0&&n!==null&&n!==!1)if(sn(n)){for(var o=0;o<n.length;o++)if(!vk(n[o],o))return}else{var l=ta(n);if(typeof l=="function"){var d=l.call(n);if(d)for(var p=d.next(),g=0;!p.done;p=d.next()){if(!vk(p.value,g))return;g++}}else c('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?',r)}}function sx(n,r,o,l,d){var p=n.memoizedState;p===null?n.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:l,tail:o,tailMode:d}:(p.isBackwards=r,p.rendering=null,p.renderingStartTime=0,p.last=l,p.tail=o,p.tailMode=d)}function gk(n,r,o){var l=r.pendingProps,d=l.revealOrder,p=l.tail,g=l.children;jV(d),LV(p,d),$V(g,d),aa(n,r,g,o);var b=xi.current,T=i0(b,rf);if(T)b=o0(b,rf),r.flags|=ln;else{var D=n!==null&&(n.flags&ln)!==st;D&&NV(r,r.child,o),b=Fc(b)}if(ws(r,b),(r.mode&Ht)===nt)r.memoizedState=null;else switch(d){case"forwards":{var A=PV(r.child),U;A===null?(U=r.child,r.child=null):(U=A.sibling,A.sibling=null),sx(r,!1,U,A,p);break}case"backwards":{var B=null,ne=r.child;for(r.child=null;ne!==null;){var ie=ne.alternate;if(ie!==null&&cm(ie)===null){r.child=ne;break}var fe=ne.sibling;ne.sibling=B,B=ne,ne=fe}sx(r,!0,B,null,p);break}case"together":{sx(r,!1,null,null,void 0);break}default:r.memoizedState=null}return r.child}function zV(n,r,o){n0(r,r.stateNode.containerInfo);var l=r.pendingProps;return n===null?r.child=jc(r,null,l,o):aa(n,r,l,o),r.child}var yk=!1;function FV(n,r,o){var l=r.type,d=l._context,p=r.pendingProps,g=r.memoizedProps,b=p.value;{"value"in p||yk||(yk=!0,c("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var T=r.type.propTypes;T&&gi(T,p,"prop","Context.Provider")}if(uR(r,d,b),g!==null){var D=g.value;if(ja(D,b)){if(g.children===p.children&&!Ip())return Lo(n,r,o)}else jI(r,d,o)}var A=p.children;return aa(n,r,A,o),r.child}var bk=!1;function IV(n,r,o){var l=r.type;l._context===void 0?l!==l.Consumer&&(bk||(bk=!0,c("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):l=l._context;var d=r.pendingProps,p=d.children;typeof p!="function"&&c("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."),$c(r,o);var g=cr(l);fd(r);var b;return hf.current=r,Br(!0),b=p(g),Br(!1),vc(),r.flags|=hc,aa(n,r,b,o),r.child}function vf(){Ci=!0}function Mm(n,r){(r.mode&Ht)===nt&&n!==null&&(n.alternate=null,r.alternate=null,r.flags|=lr)}function Lo(n,r,o){return n!==null&&(r.dependencies=n.dependencies),GR(),Df(r.lanes),Ma(o,r.childLanes)?(NI(n,r),r.child):null}function VV(n,r,o){{var l=r.return;if(l===null)throw new Error("Cannot swap the root fiber.");if(n.alternate=null,r.alternate=null,o.index=r.index,o.sibling=r.sibling,o.return=r.return,o.ref=r.ref,r===l.child)l.child=o;else{var d=l.child;if(d===null)throw new Error("Expected parent to have a child.");for(;d.sibling!==r;)if(d=d.sibling,d===null)throw new Error("Expected to find the previous sibling.");d.sibling=o}var p=l.deletions;return p===null?(l.deletions=[n],l.flags|=rl):p.push(n),o.flags|=lr,o}}function lx(n,r){var o=n.lanes;return!!Ma(o,r)}function BV(n,r,o){switch(r.tag){case y:dk(r),r.stateNode,Pc();break;case S:yR(r);break;case m:{var l=r.type;Bi(l)&&Bp(r);break}case x:n0(r,r.stateNode.containerInfo);break;case _:{var d=r.memoizedProps.value,p=r.type._context;uR(r,p,d);break}case $:{var g=Ma(o,r.childLanes);g&&(r.flags|=Xt);{var b=r.stateNode;b.effectDuration=0,b.passiveEffectDuration=0}}break;case L:{var T=r.memoizedState;if(T!==null){if(T.dehydrated!==null)return ws(r,Fc(xi.current)),r.flags|=ln,null;var D=r.child,A=D.childLanes;if(Ma(o,A))return hk(n,r,o);ws(r,Fc(xi.current));var U=Lo(n,r,o);return U!==null?U.sibling:null}else ws(r,Fc(xi.current));break}case de:{var B=(n.flags&ln)!==st,ne=Ma(o,r.childLanes);if(B){if(ne)return gk(n,r,o);r.flags|=ln}var ie=r.memoizedState;if(ie!==null&&(ie.rendering=null,ie.tail=null,ie.lastEffect=null),ws(r,xi.current),ne)break;return null}case q:case ue:return r.lanes=Se,lk(n,r,o)}return Lo(n,r,o)}function xk(n,r,o){if(r._debugNeedsRemount&&n!==null)return VV(n,r,zx(r.type,r.key,r.pendingProps,r._debugOwner||null,r.mode,r.lanes));if(n!==null){var l=n.memoizedProps,d=r.pendingProps;if(l!==d||Ip()||r.type!==n.type)Ci=!0;else{var p=lx(n,o);if(!p&&(r.flags&ln)===st)return Ci=!1,BV(n,r,o);(n.flags&py)!==st?Ci=!0:Ci=!1}}else if(Ci=!1,Ar()&&hI(r)){var g=r.index,b=pI();G1(r,b,g)}switch(r.lanes=Se,r.tag){case v:return CV(n,r,r.type,o);case Q:{var T=r.elementType;return SV(n,r,T,o)}case h:{var D=r.type,A=r.pendingProps,U=r.elementType===D?A:wi(D,A);return ex(n,r,D,U,o)}case m:{var B=r.type,ne=r.pendingProps,ie=r.elementType===B?ne:wi(B,ne);return uk(n,r,B,ie,o)}case y:return yV(n,r,o);case S:return bV(n,r,o);case R:return xV(n,r);case L:return hk(n,r,o);case x:return zV(n,r,o);case N:{var fe=r.type,Le=r.pendingProps,Je=r.elementType===fe?Le:wi(fe,Le);return ik(n,r,fe,Je,o)}case E:return mV(n,r,o);case k:return vV(n,r,o);case $:return gV(n,r,o);case _:return FV(n,r,o);case O:return IV(n,r,o);case I:{var Xe=r.type,Yt=r.pendingProps,zt=wi(Xe,Yt);if(r.type!==r.elementType){var Z=Xe.propTypes;Z&&gi(Z,zt,"prop",Bt(Xe))}return zt=wi(Xe.type,zt),ok(n,r,Xe,zt,o)}case F:return sk(n,r,r.type,r.pendingProps,o);case le:{var he=r.type,J=r.pendingProps,Ce=r.elementType===he?J:wi(he,J);return wV(n,r,he,Ce,o)}case de:return gk(n,r,o);case Ke:break;case q:return lk(n,r,o)}throw new Error("Unknown unit of work tag ("+r.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Wc(n){n.flags|=Xt}function Sk(n){n.flags|=ls,n.flags|=my}var wk,cx,Ck,Tk;wk=function(n,r,o,l){for(var d=r.child;d!==null;){if(d.tag===S||d.tag===R)uF(n,d.stateNode);else if(d.tag!==x){if(d.child!==null){d.child.return=d,d=d.child;continue}}if(d===r)return;for(;d.sibling===null;){if(d.return===null||d.return===r)return;d=d.return}d.sibling.return=d.return,d=d.sibling}},cx=function(n,r){},Ck=function(n,r,o,l,d){var p=n.memoizedProps;if(p!==l){var g=r.stateNode,b=r0(),T=fF(g,o,p,l,d,b);r.updateQueue=T,T&&Wc(r)}},Tk=function(n,r,o,l){o!==l&&Wc(r)};function gf(n,r){if(!Ar())switch(n.tailMode){case"hidden":{for(var o=n.tail,l=null;o!==null;)o.alternate!==null&&(l=o),o=o.sibling;l===null?n.tail=null:l.sibling=null;break}case"collapsed":{for(var d=n.tail,p=null;d!==null;)d.alternate!==null&&(p=d),d=d.sibling;p===null?!r&&n.tail!==null?n.tail.sibling=null:n.tail=null:p.sibling=null;break}}}function Mr(n){var r=n.alternate!==null&&n.alternate.child===n.child,o=Se,l=st;if(r){if((n.mode&xn)!==nt){for(var T=n.selfBaseDuration,D=n.child;D!==null;)o=Mt(o,Mt(D.lanes,D.childLanes)),l|=D.subtreeFlags&Ro,l|=D.flags&Ro,T+=D.treeBaseDuration,D=D.sibling;n.treeBaseDuration=T}else for(var A=n.child;A!==null;)o=Mt(o,Mt(A.lanes,A.childLanes)),l|=A.subtreeFlags&Ro,l|=A.flags&Ro,A.return=n,A=A.sibling;n.subtreeFlags|=l}else{if((n.mode&xn)!==nt){for(var d=n.actualDuration,p=n.selfBaseDuration,g=n.child;g!==null;)o=Mt(o,Mt(g.lanes,g.childLanes)),l|=g.subtreeFlags,l|=g.flags,d+=g.actualDuration,p+=g.treeBaseDuration,g=g.sibling;n.actualDuration=d,n.treeBaseDuration=p}else for(var b=n.child;b!==null;)o=Mt(o,Mt(b.lanes,b.childLanes)),l|=b.subtreeFlags,l|=b.flags,b.return=n,b=b.sibling;n.subtreeFlags|=l}return n.childLanes=o,r}function UV(n,r,o){if(kI()&&(r.mode&Ht)!==nt&&(r.flags&ln)===st)return tR(r),Pc(),r.flags|=Co|ud|ra,!1;var l=qp(r);if(o!==null&&o.dehydrated!==null)if(n===null){if(!l)throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(EI(r),Mr(r),(r.mode&xn)!==nt){var d=o!==null;if(d){var p=r.child;p!==null&&(r.treeBaseDuration-=p.treeBaseDuration)}}return!1}else{if(Pc(),(r.flags&ln)===st&&(r.memoizedState=null),r.flags|=Xt,Mr(r),(r.mode&xn)!==nt){var g=o!==null;if(g){var b=r.child;b!==null&&(r.treeBaseDuration-=b.treeBaseDuration)}}return!1}else return nR(),!0}function Ek(n,r,o){var l=r.pendingProps;switch(jb(r),r.tag){case v:case Q:case F:case h:case N:case E:case k:case $:case O:case I:return Mr(r),null;case m:{var d=r.type;return Bi(d)&&Vp(r),Mr(r),null}case y:{var p=r.stateNode;if(zc(r),Ob(r),l0(),p.pendingContext&&(p.context=p.pendingContext,p.pendingContext=null),n===null||n.child===null){var g=qp(r);if(g)Wc(r);else if(n!==null){var b=n.memoizedState;(!b.isDehydrated||(r.flags&Co)!==st)&&(r.flags|=al,nR())}}return cx(n,r),Mr(r),null}case S:{a0(r);var T=gR(),D=r.type;if(n!==null&&r.stateNode!=null)Ck(n,r,D,l,T),n.ref!==r.ref&&Sk(r);else{if(!l){if(r.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Mr(r),null}var A=r0(),U=qp(r);if(U)CI(r,T,A)&&Wc(r);else{var B=cF(D,l,T,A,r);wk(B,r,!1,!1),r.stateNode=B,dF(B,D,l,T)&&Wc(r)}r.ref!==null&&Sk(r)}return Mr(r),null}case R:{var ne=l;if(n&&r.stateNode!=null){var ie=n.memoizedProps;Tk(n,r,ie,ne)}else{if(typeof ne!="string"&&r.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");var fe=gR(),Le=r0(),Je=qp(r);Je?TI(r)&&Wc(r):r.stateNode=hF(ne,fe,Le,r)}return Mr(r),null}case L:{Ic(r);var Xe=r.memoizedState;if(n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){var Yt=UV(n,r,Xe);if(!Yt)return r.flags&ra?r:null}if((r.flags&ln)!==st)return r.lanes=o,(r.mode&xn)!==nt&&N0(r),r;var zt=Xe!==null,Z=n!==null&&n.memoizedState!==null;if(zt!==Z&&zt){var he=r.child;if(he.flags|=il,(r.mode&Ht)!==nt){var J=n===null&&(r.memoizedProps.unstable_avoidThisFallback!==!0||!ve);J||i0(xi.current,xR)?HB():kx()}}var Ce=r.updateQueue;if(Ce!==null&&(r.flags|=Xt),Mr(r),(r.mode&xn)!==nt&&zt){var Be=r.child;Be!==null&&(r.treeBaseDuration-=Be.treeBaseDuration)}return null}case x:return zc(r),cx(n,r),n===null&&oI(r.stateNode.containerInfo),Mr(r),null;case _:var ze=r.type._context;return Xb(ze,r),Mr(r),null;case le:{var ft=r.type;return Bi(ft)&&Vp(r),Mr(r),null}case de:{Ic(r);var wt=r.memoizedState;if(wt===null)return Mr(r),null;var wn=(r.flags&ln)!==st,rn=wt.rendering;if(rn===null)if(wn)gf(wt,!1);else{var nr=YB()&&(n===null||(n.flags&ln)===st);if(!nr)for(var an=r.child;an!==null;){var Qn=cm(an);if(Qn!==null){wn=!0,r.flags|=ln,gf(wt,!1);var Gr=Qn.updateQueue;return Gr!==null&&(r.updateQueue=Gr,r.flags|=Xt),r.subtreeFlags=st,PI(r,o),ws(r,o0(xi.current,rf)),r.child}an=an.sibling}wt.tail!==null&&Cr()>Yk()&&(r.flags|=ln,wn=!0,gf(wt,!1),r.lanes=TE)}else{if(!wn){var $r=cm(rn);if($r!==null){r.flags|=ln,wn=!0;var za=$r.updateQueue;if(za!==null&&(r.updateQueue=za,r.flags|=Xt),gf(wt,!0),wt.tail===null&&wt.tailMode==="hidden"&&!rn.alternate&&!Ar())return Mr(r),null}else Cr()*2-wt.renderingStartTime>Yk()&&o!==Oa&&(r.flags|=ln,wn=!0,gf(wt,!1),r.lanes=TE)}if(wt.isBackwards)rn.sibling=r.child,r.child=rn;else{var sa=wt.last;sa!==null?sa.sibling=rn:r.child=rn,wt.last=rn}}if(wt.tail!==null){var la=wt.tail;wt.rendering=la,wt.tail=la.sibling,wt.renderingStartTime=Cr(),la.sibling=null;var Xr=xi.current;return wn?Xr=o0(Xr,rf):Xr=Fc(Xr),ws(r,Xr),la}return Mr(r),null}case Ke:break;case q:case ue:{Rx(r);var Vo=r.memoizedState,Jc=Vo!==null;if(n!==null){var Nf=n.memoizedState,Ki=Nf!==null;Ki!==Jc&&!G&&(r.flags|=il)}return!Jc||(r.mode&Ht)===nt?Mr(r):Ma(Xi,Oa)&&(Mr(r),r.subtreeFlags&(lr|Xt)&&(r.flags|=il)),null}case Ee:return null;case we:return null}throw new Error("Unknown unit of work tag ("+r.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function HV(n,r,o){switch(jb(r),r.tag){case m:{var l=r.type;Bi(l)&&Vp(r);var d=r.flags;return d&ra?(r.flags=d&~ra|ln,(r.mode&xn)!==nt&&N0(r),r):null}case y:{r.stateNode,zc(r),Ob(r),l0();var p=r.flags;return(p&ra)!==st&&(p&ln)===st?(r.flags=p&~ra|ln,r):null}case S:return a0(r),null;case L:{Ic(r);var g=r.memoizedState;if(g!==null&&g.dehydrated!==null){if(r.alternate===null)throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Pc()}var b=r.flags;return b&ra?(r.flags=b&~ra|ln,(r.mode&xn)!==nt&&N0(r),r):null}case de:return Ic(r),null;case x:return zc(r),null;case _:var T=r.type._context;return Xb(T,r),null;case q:case ue:return Rx(r),null;case Ee:return null;default:return null}}function Rk(n,r,o){switch(jb(r),r.tag){case m:{var l=r.type.childContextTypes;l!=null&&Vp(r);break}case y:{r.stateNode,zc(r),Ob(r),l0();break}case S:{a0(r);break}case x:zc(r);break;case L:Ic(r);break;case de:Ic(r);break;case _:var d=r.type._context;Xb(d,r);break;case q:case ue:Rx(r);break}}var kk=null;kk=new Set;var Nm=!1,Nr=!1,WV=typeof WeakSet=="function"?WeakSet:Set,Ye=null,Yc=null,qc=null;function YV(n){dy(null,function(){throw n}),fy()}var qV=function(n,r){if(r.props=n.memoizedProps,r.state=n.memoizedState,n.mode&xn)try{qi(),r.componentWillUnmount()}finally{Yi(n)}else r.componentWillUnmount()};function Dk(n,r){try{Es(pr,n)}catch(o){Dn(n,r,o)}}function ux(n,r,o){try{qV(n,o)}catch(l){Dn(n,r,l)}}function GV(n,r,o){try{o.componentDidMount()}catch(l){Dn(n,r,l)}}function _k(n,r){try{Ok(n)}catch(o){Dn(n,r,o)}}function Gc(n,r){var o=n.ref;if(o!==null)if(typeof o=="function"){var l;try{if(Pe&&ht&&n.mode&xn)try{qi(),l=o(null)}finally{Yi(n)}else l=o(null)}catch(d){Dn(n,r,d)}typeof l=="function"&&c("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Tt(n))}else o.current=null}function Pm(n,r,o){try{o()}catch(l){Dn(n,r,l)}}var Ak=!1;function XV(n,r){sF(n.containerInfo),Ye=r,KV();var o=Ak;return Ak=!1,o}function KV(){for(;Ye!==null;){var n=Ye,r=n.child;(n.subtreeFlags&gy)!==st&&r!==null?(r.return=n,Ye=r):QV()}}function QV(){for(;Ye!==null;){var n=Ye;On(n);try{ZV(n)}catch(o){Dn(n,n.return,o)}or();var r=n.sibling;if(r!==null){r.return=n.return,Ye=r;return}Ye=n.return}}function ZV(n){var r=n.alternate,o=n.flags;if((o&al)!==st){switch(On(n),n.tag){case h:case N:case F:break;case m:{if(r!==null){var l=r.memoizedProps,d=r.memoizedState,p=n.stateNode;n.type===n.elementType&&!El&&(p.props!==n.memoizedProps&&c("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.",Tt(n)||"instance"),p.state!==n.memoizedState&&c("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.",Tt(n)||"instance"));var g=p.getSnapshotBeforeUpdate(n.elementType===n.type?l:wi(n.type,l),d);{var b=kk;g===void 0&&!b.has(n.type)&&(b.add(n.type),c("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",Tt(n)))}p.__reactInternalSnapshotBeforeUpdate=g}break}case y:{{var T=n.stateNode;MF(T.containerInfo)}break}case S:case R:case x:case le:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}or()}}function Ti(n,r,o){var l=r.updateQueue,d=l!==null?l.lastEffect:null;if(d!==null){var p=d.next,g=p;do{if((g.tag&n)===n){var b=g.destroy;g.destroy=void 0,b!==void 0&&((n&Or)!==xa?h5(r):(n&pr)!==xa&&bE(r),(n&Ui)!==xa&&Af(!0),Pm(r,o,b),(n&Ui)!==xa&&Af(!1),(n&Or)!==xa?p5():(n&pr)!==xa&&xE())}g=g.next}while(g!==p)}}function Es(n,r){var o=r.updateQueue,l=o!==null?o.lastEffect:null;if(l!==null){var d=l.next,p=d;do{if((p.tag&n)===n){(n&Or)!==xa?d5(r):(n&pr)!==xa&&m5(r);var g=p.create;(n&Ui)!==xa&&Af(!0),p.destroy=g(),(n&Ui)!==xa&&Af(!1),(n&Or)!==xa?f5():(n&pr)!==xa&&v5();{var b=p.destroy;if(b!==void 0&&typeof b!="function"){var T=void 0;(p.tag&pr)!==st?T="useLayoutEffect":(p.tag&Ui)!==st?T="useInsertionEffect":T="useEffect";var D=void 0;b===null?D=" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof b.then=="function"?D=`
162
-
163
- It looks like you wrote `+T+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
164
-
165
- `+T+`(() => {
166
- async function fetchData() {
167
- // You can await here
168
- const response = await MyAPI.getData(someId);
169
- // ...
170
- }
171
- fetchData();
172
- }, [someId]); // Or [] if effect doesn't need props or state
173
-
174
- Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching`:D=" You returned: "+b,c("%s must not return anything besides a function, which is used for clean-up.%s",T,D)}}}p=p.next}while(p!==d)}}function JV(n,r){if((r.flags&Xt)!==st)switch(r.tag){case $:{var o=r.stateNode.passiveEffectDuration,l=r.memoizedProps,d=l.id,p=l.onPostCommit,g=YR(),b=r.alternate===null?"mount":"update";WR()&&(b="nested-update"),typeof p=="function"&&p(d,b,o,g);var T=r.return;e:for(;T!==null;){switch(T.tag){case y:var D=T.stateNode;D.passiveEffectDuration+=o;break e;case $:var A=T.stateNode;A.passiveEffectDuration+=o;break e}T=T.return}break}}}function eB(n,r,o,l){if((o.flags&dd)!==st)switch(o.tag){case h:case N:case F:{if(!Nr)if(o.mode&xn)try{qi(),Es(pr|hr,o)}finally{Yi(o)}else Es(pr|hr,o);break}case m:{var d=o.stateNode;if(o.flags&Xt&&!Nr)if(r===null)if(o.type===o.elementType&&!El&&(d.props!==o.memoizedProps&&c("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.",Tt(o)||"instance"),d.state!==o.memoizedState&&c("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.",Tt(o)||"instance")),o.mode&xn)try{qi(),d.componentDidMount()}finally{Yi(o)}else d.componentDidMount();else{var p=o.elementType===o.type?r.memoizedProps:wi(o.type,r.memoizedProps),g=r.memoizedState;if(o.type===o.elementType&&!El&&(d.props!==o.memoizedProps&&c("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.",Tt(o)||"instance"),d.state!==o.memoizedState&&c("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.",Tt(o)||"instance")),o.mode&xn)try{qi(),d.componentDidUpdate(p,g,d.__reactInternalSnapshotBeforeUpdate)}finally{Yi(o)}else d.componentDidUpdate(p,g,d.__reactInternalSnapshotBeforeUpdate)}var b=o.updateQueue;b!==null&&(o.type===o.elementType&&!El&&(d.props!==o.memoizedProps&&c("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.",Tt(o)||"instance"),d.state!==o.memoizedState&&c("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.",Tt(o)||"instance")),vR(o,b,d));break}case y:{var T=o.updateQueue;if(T!==null){var D=null;if(o.child!==null)switch(o.child.tag){case S:D=o.child.stateNode;break;case m:D=o.child.stateNode;break}vR(o,T,D)}break}case S:{var A=o.stateNode;if(r===null&&o.flags&Xt){var U=o.type,B=o.memoizedProps;yF(A,U,B)}break}case R:break;case x:break;case $:{{var ne=o.memoizedProps,ie=ne.onCommit,fe=ne.onRender,Le=o.stateNode.effectDuration,Je=YR(),Xe=r===null?"mount":"update";WR()&&(Xe="nested-update"),typeof fe=="function"&&fe(o.memoizedProps.id,Xe,o.actualDuration,o.treeBaseDuration,o.actualStartTime,Je);{typeof ie=="function"&&ie(o.memoizedProps.id,Xe,Le,Je),QB(o);var Yt=o.return;e:for(;Yt!==null;){switch(Yt.tag){case y:var zt=Yt.stateNode;zt.effectDuration+=Le;break e;case $:var Z=Yt.stateNode;Z.effectDuration+=Le;break e}Yt=Yt.return}}}break}case L:{lB(n,o);break}case de:case le:case Ke:case q:case ue:case we:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}Nr||o.flags&ls&&Ok(o)}function tB(n){switch(n.tag){case h:case N:case F:{if(n.mode&xn)try{qi(),Dk(n,n.return)}finally{Yi(n)}else Dk(n,n.return);break}case m:{var r=n.stateNode;typeof r.componentDidMount=="function"&&GV(n,n.return,r),_k(n,n.return);break}case S:{_k(n,n.return);break}}}function nB(n,r){for(var o=null,l=n;;){if(l.tag===S){if(o===null){o=l;try{var d=l.stateNode;r?DF(d):AF(l.stateNode,l.memoizedProps)}catch(g){Dn(n,n.return,g)}}}else if(l.tag===R){if(o===null)try{var p=l.stateNode;r?_F(p):OF(p,l.memoizedProps)}catch(g){Dn(n,n.return,g)}}else if(!((l.tag===q||l.tag===ue)&&l.memoizedState!==null&&l!==n)){if(l.child!==null){l.child.return=l,l=l.child;continue}}if(l===n)return;for(;l.sibling===null;){if(l.return===null||l.return===n)return;o===l&&(o=null),l=l.return}o===l&&(o=null),l.sibling.return=l.return,l=l.sibling}}function Ok(n){var r=n.ref;if(r!==null){var o=n.stateNode,l;switch(n.tag){case S:l=o;break;default:l=o}if(typeof r=="function"){var d;if(n.mode&xn)try{qi(),d=r(l)}finally{Yi(n)}else d=r(l);typeof d=="function"&&c("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Tt(n))}else r.hasOwnProperty("current")||c("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",Tt(n)),r.current=l}}function rB(n){var r=n.alternate;r!==null&&(r.return=null),n.return=null}function Mk(n){var r=n.alternate;r!==null&&(n.alternate=null,Mk(r));{if(n.child=null,n.deletions=null,n.sibling=null,n.tag===S){var o=n.stateNode;o!==null&&cI(o)}n.stateNode=null,n._debugOwner=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}}function aB(n){for(var r=n.return;r!==null;){if(Nk(r))return r;r=r.return}throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}function Nk(n){return n.tag===S||n.tag===y||n.tag===x}function Pk(n){var r=n;e:for(;;){for(;r.sibling===null;){if(r.return===null||Nk(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==S&&r.tag!==R&&r.tag!==re;){if(r.flags&lr||r.child===null||r.tag===x)continue e;r.child.return=r,r=r.child}if(!(r.flags&lr))return r.stateNode}}function iB(n){var r=aB(n);switch(r.tag){case S:{var o=r.stateNode;r.flags&cd&&(L1(o),r.flags&=~cd);var l=Pk(n);fx(n,l,o);break}case y:case x:{var d=r.stateNode.containerInfo,p=Pk(n);dx(n,p,d);break}default:throw new Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function dx(n,r,o){var l=n.tag,d=l===S||l===R;if(d){var p=n.stateNode;r?TF(o,p,r):wF(o,p)}else if(l!==x){var g=n.child;if(g!==null){dx(g,r,o);for(var b=g.sibling;b!==null;)dx(b,r,o),b=b.sibling}}}function fx(n,r,o){var l=n.tag,d=l===S||l===R;if(d){var p=n.stateNode;r?CF(o,p,r):SF(o,p)}else if(l!==x){var g=n.child;if(g!==null){fx(g,r,o);for(var b=g.sibling;b!==null;)fx(b,r,o),b=b.sibling}}}var Pr=null,Ei=!1;function oB(n,r,o){{var l=r;e:for(;l!==null;){switch(l.tag){case S:{Pr=l.stateNode,Ei=!1;break e}case y:{Pr=l.stateNode.containerInfo,Ei=!0;break e}case x:{Pr=l.stateNode.containerInfo,Ei=!0;break e}}l=l.return}if(Pr===null)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");jk(n,r,o),Pr=null,Ei=!1}rB(o)}function Rs(n,r,o){for(var l=o.child;l!==null;)jk(n,r,l),l=l.sibling}function jk(n,r,o){switch(s5(o),o.tag){case S:Nr||Gc(o,r);case R:{{var l=Pr,d=Ei;Pr=null,Rs(n,r,o),Pr=l,Ei=d,Pr!==null&&(Ei?RF(Pr,o.stateNode):EF(Pr,o.stateNode))}return}case re:{Pr!==null&&(Ei?kF(Pr,o.stateNode):Cb(Pr,o.stateNode));return}case x:{{var p=Pr,g=Ei;Pr=o.stateNode.containerInfo,Ei=!0,Rs(n,r,o),Pr=p,Ei=g}return}case h:case N:case I:case F:{if(!Nr){var b=o.updateQueue;if(b!==null){var T=b.lastEffect;if(T!==null){var D=T.next,A=D;do{var U=A,B=U.destroy,ne=U.tag;B!==void 0&&((ne&Ui)!==xa?Pm(o,r,B):(ne&pr)!==xa&&(bE(o),o.mode&xn?(qi(),Pm(o,r,B),Yi(o)):Pm(o,r,B),xE())),A=A.next}while(A!==D)}}}Rs(n,r,o);return}case m:{if(!Nr){Gc(o,r);var ie=o.stateNode;typeof ie.componentWillUnmount=="function"&&ux(o,r,ie)}Rs(n,r,o);return}case Ke:{Rs(n,r,o);return}case q:{if(o.mode&Ht){var fe=Nr;Nr=fe||o.memoizedState!==null,Rs(n,r,o),Nr=fe}else Rs(n,r,o);break}default:{Rs(n,r,o);return}}}function sB(n){n.memoizedState}function lB(n,r){var o=r.memoizedState;if(o===null){var l=r.alternate;if(l!==null){var d=l.memoizedState;if(d!==null){var p=d.dehydrated;p!==null&&YF(p)}}}}function Lk(n){var r=n.updateQueue;if(r!==null){n.updateQueue=null;var o=n.stateNode;o===null&&(o=n.stateNode=new WV),r.forEach(function(l){var d=aU.bind(null,n,l);if(!o.has(l)){if(o.add(l),pi)if(Yc!==null&&qc!==null)_f(qc,Yc);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");l.then(d,d)}})}}function cB(n,r,o){Yc=o,qc=n,On(r),$k(r,n),On(r),Yc=null,qc=null}function Ri(n,r,o){var l=r.deletions;if(l!==null)for(var d=0;d<l.length;d++){var p=l[d];try{oB(n,r,p)}catch(T){Dn(p,r,T)}}var g=os();if(r.subtreeFlags&yy)for(var b=r.child;b!==null;)On(b),$k(b,n),b=b.sibling;On(g)}function $k(n,r,o){var l=n.alternate,d=n.flags;switch(n.tag){case h:case N:case I:case F:{if(Ri(r,n),Gi(n),d&Xt){try{Ti(Ui|hr,n,n.return),Es(Ui|hr,n)}catch(ft){Dn(n,n.return,ft)}if(n.mode&xn){try{qi(),Ti(pr|hr,n,n.return)}catch(ft){Dn(n,n.return,ft)}Yi(n)}else try{Ti(pr|hr,n,n.return)}catch(ft){Dn(n,n.return,ft)}}return}case m:{Ri(r,n),Gi(n),d&ls&&l!==null&&Gc(l,l.return);return}case S:{Ri(r,n),Gi(n),d&ls&&l!==null&&Gc(l,l.return);{if(n.flags&cd){var p=n.stateNode;try{L1(p)}catch(ft){Dn(n,n.return,ft)}}if(d&Xt){var g=n.stateNode;if(g!=null){var b=n.memoizedProps,T=l!==null?l.memoizedProps:b,D=n.type,A=n.updateQueue;if(n.updateQueue=null,A!==null)try{bF(g,A,D,T,b,n)}catch(ft){Dn(n,n.return,ft)}}}}return}case R:{if(Ri(r,n),Gi(n),d&Xt){if(n.stateNode===null)throw new Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");var U=n.stateNode,B=n.memoizedProps,ne=l!==null?l.memoizedProps:B;try{xF(U,ne,B)}catch(ft){Dn(n,n.return,ft)}}return}case y:{if(Ri(r,n),Gi(n),d&Xt&&l!==null){var ie=l.memoizedState;if(ie.isDehydrated)try{WF(r.containerInfo)}catch(ft){Dn(n,n.return,ft)}}return}case x:{Ri(r,n),Gi(n);return}case L:{Ri(r,n),Gi(n);var fe=n.child;if(fe.flags&il){var Le=fe.stateNode,Je=fe.memoizedState,Xe=Je!==null;if(Le.isHidden=Xe,Xe){var Yt=fe.alternate!==null&&fe.alternate.memoizedState!==null;Yt||UB()}}if(d&Xt){try{sB(n)}catch(ft){Dn(n,n.return,ft)}Lk(n)}return}case q:{var zt=l!==null&&l.memoizedState!==null;if(n.mode&Ht){var Z=Nr;Nr=Z||zt,Ri(r,n),Nr=Z}else Ri(r,n);if(Gi(n),d&il){var he=n.stateNode,J=n.memoizedState,Ce=J!==null,Be=n;if(he.isHidden=Ce,Ce&&!zt&&(Be.mode&Ht)!==nt){Ye=Be;for(var ze=Be.child;ze!==null;)Ye=ze,dB(ze),ze=ze.sibling}nB(Be,Ce)}return}case de:{Ri(r,n),Gi(n),d&Xt&&Lk(n);return}case Ke:return;default:{Ri(r,n),Gi(n);return}}}function Gi(n){var r=n.flags;if(r&lr){try{iB(n)}catch(o){Dn(n,n.return,o)}n.flags&=~lr}r&To&&(n.flags&=~To)}function uB(n,r,o){Yc=o,qc=r,Ye=n,zk(n,r,o),Yc=null,qc=null}function zk(n,r,o){for(var l=(n.mode&Ht)!==nt;Ye!==null;){var d=Ye,p=d.child;if(d.tag===q&&l){var g=d.memoizedState!==null,b=g||Nm;if(b){hx(n,r,o);continue}else{var T=d.alternate,D=T!==null&&T.memoizedState!==null,A=D||Nr,U=Nm,B=Nr;Nm=b,Nr=A,Nr&&!B&&(Ye=d,fB(d));for(var ne=p;ne!==null;)Ye=ne,zk(ne,r,o),ne=ne.sibling;Ye=d,Nm=U,Nr=B,hx(n,r,o);continue}}(d.subtreeFlags&dd)!==st&&p!==null?(p.return=d,Ye=p):hx(n,r,o)}}function hx(n,r,o){for(;Ye!==null;){var l=Ye;if((l.flags&dd)!==st){var d=l.alternate;On(l);try{eB(r,d,l,o)}catch(g){Dn(l,l.return,g)}or()}if(l===n){Ye=null;return}var p=l.sibling;if(p!==null){p.return=l.return,Ye=p;return}Ye=l.return}}function dB(n){for(;Ye!==null;){var r=Ye,o=r.child;switch(r.tag){case h:case N:case I:case F:{if(r.mode&xn)try{qi(),Ti(pr,r,r.return)}finally{Yi(r)}else Ti(pr,r,r.return);break}case m:{Gc(r,r.return);var l=r.stateNode;typeof l.componentWillUnmount=="function"&&ux(r,r.return,l);break}case S:{Gc(r,r.return);break}case q:{var d=r.memoizedState!==null;if(d){Fk(n);continue}break}}o!==null?(o.return=r,Ye=o):Fk(n)}}function Fk(n){for(;Ye!==null;){var r=Ye;if(r===n){Ye=null;return}var o=r.sibling;if(o!==null){o.return=r.return,Ye=o;return}Ye=r.return}}function fB(n){for(;Ye!==null;){var r=Ye,o=r.child;if(r.tag===q){var l=r.memoizedState!==null;if(l){Ik(n);continue}}o!==null?(o.return=r,Ye=o):Ik(n)}}function Ik(n){for(;Ye!==null;){var r=Ye;On(r);try{tB(r)}catch(l){Dn(r,r.return,l)}if(or(),r===n){Ye=null;return}var o=r.sibling;if(o!==null){o.return=r.return,Ye=o;return}Ye=r.return}}function hB(n,r,o,l){Ye=r,pB(r,n,o,l)}function pB(n,r,o,l){for(;Ye!==null;){var d=Ye,p=d.child;(d.subtreeFlags&pc)!==st&&p!==null?(p.return=d,Ye=p):mB(n,r,o,l)}}function mB(n,r,o,l){for(;Ye!==null;){var d=Ye;if((d.flags&hi)!==st){On(d);try{vB(r,d,o,l)}catch(g){Dn(d,d.return,g)}or()}if(d===n){Ye=null;return}var p=d.sibling;if(p!==null){p.return=d.return,Ye=p;return}Ye=d.return}}function vB(n,r,o,l){switch(r.tag){case h:case N:case F:{if(r.mode&xn){M0();try{Es(Or|hr,r)}finally{O0(r)}}else Es(Or|hr,r);break}}}function gB(n){Ye=n,yB()}function yB(){for(;Ye!==null;){var n=Ye,r=n.child;if((Ye.flags&rl)!==st){var o=n.deletions;if(o!==null){for(var l=0;l<o.length;l++){var d=o[l];Ye=d,SB(d,n)}{var p=n.alternate;if(p!==null){var g=p.child;if(g!==null){p.child=null;do{var b=g.sibling;g.sibling=null,g=b}while(g!==null)}}}Ye=n}}(n.subtreeFlags&pc)!==st&&r!==null?(r.return=n,Ye=r):bB()}}function bB(){for(;Ye!==null;){var n=Ye;(n.flags&hi)!==st&&(On(n),xB(n),or());var r=n.sibling;if(r!==null){r.return=n.return,Ye=r;return}Ye=n.return}}function xB(n){switch(n.tag){case h:case N:case F:{n.mode&xn?(M0(),Ti(Or|hr,n,n.return),O0(n)):Ti(Or|hr,n,n.return);break}}}function SB(n,r){for(;Ye!==null;){var o=Ye;On(o),CB(o,r),or();var l=o.child;l!==null?(l.return=o,Ye=l):wB(n)}}function wB(n){for(;Ye!==null;){var r=Ye,o=r.sibling,l=r.return;if(Mk(r),r===n){Ye=null;return}if(o!==null){o.return=l,Ye=o;return}Ye=l}}function CB(n,r){switch(n.tag){case h:case N:case F:{n.mode&xn?(M0(),Ti(Or,n,r),O0(n)):Ti(Or,n,r);break}}}function TB(n){switch(n.tag){case h:case N:case F:{try{Es(pr|hr,n)}catch(o){Dn(n,n.return,o)}break}case m:{var r=n.stateNode;try{r.componentDidMount()}catch(o){Dn(n,n.return,o)}break}}}function EB(n){switch(n.tag){case h:case N:case F:{try{Es(Or|hr,n)}catch(r){Dn(n,n.return,r)}break}}}function RB(n){switch(n.tag){case h:case N:case F:{try{Ti(pr|hr,n,n.return)}catch(o){Dn(n,n.return,o)}break}case m:{var r=n.stateNode;typeof r.componentWillUnmount=="function"&&ux(n,n.return,r);break}}}function kB(n){switch(n.tag){case h:case N:case F:try{Ti(Or|hr,n,n.return)}catch(r){Dn(n,n.return,r)}}}if(typeof Symbol=="function"&&Symbol.for){var yf=Symbol.for;yf("selector.component"),yf("selector.has_pseudo_class"),yf("selector.role"),yf("selector.test_id"),yf("selector.text")}var DB=[];function _B(){DB.forEach(function(n){return n()})}var AB=a.ReactCurrentActQueue;function OB(n){{var r=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,o=typeof jest<"u";return o&&r!==!1}}function Vk(){{var n=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return!n&&AB.current!==null&&c("The current testing environment is not configured to support act(...)"),n}}var MB=Math.ceil,px=a.ReactCurrentDispatcher,mx=a.ReactCurrentOwner,jr=a.ReactCurrentBatchConfig,ki=a.ReactCurrentActQueue,gr=0,Bk=1,Lr=2,Qa=4,$o=0,bf=1,Rl=2,jm=3,xf=4,Uk=5,vx=6,Wt=gr,ia=null,Hn=null,yr=Se,Xi=Se,gx=vs(Se),br=$o,Sf=null,Lm=Se,wf=Se,$m=Se,Cf=null,Sa=null,yx=0,Hk=500,Wk=1/0,NB=500,zo=null;function Tf(){Wk=Cr()+NB}function Yk(){return Wk}var zm=!1,bx=null,Xc=null,kl=!1,ks=null,Ef=Se,xx=[],Sx=null,PB=50,Rf=0,wx=null,Cx=!1,Fm=!1,jB=50,Kc=0,Im=null,kf=Mn,Vm=Se,qk=!1;function Bm(){return ia}function oa(){return(Wt&(Lr|Qa))!==gr?Cr():(kf!==Mn||(kf=Cr()),kf)}function Ds(n){var r=n.mode;if((r&Ht)===nt)return bt;if((Wt&Lr)!==gr&&yr!==Se)return yd(yr);var o=AI()!==_I;if(o){if(jr.transition!==null){var l=jr.transition;l._updatedFibers||(l._updatedFibers=new Set),l._updatedFibers.add(n)}return Vm===Er&&(Vm=DE()),Vm}var d=mi();if(d!==Er)return d;var p=pF();return p}function LB(n){var r=n.mode;return(r&Ht)===nt?bt:z5()}function xr(n,r,o,l){oU(),qk&&c("useInsertionEffect must not schedule updates."),Cx&&(Fm=!0),bd(n,o,l),(Wt&Lr)!==Se&&n===ia?cU(r):(pi&&OE(n,r,o),uU(r),n===ia&&((Wt&Lr)===gr&&(wf=Mt(wf,o)),br===xf&&_s(n,yr)),wa(n,l),o===bt&&Wt===gr&&(r.mode&Ht)===nt&&!ki.isBatchingLegacy&&(Tf(),q1()))}function $B(n,r,o){var l=n.current;l.lanes=r,bd(n,r,o),wa(n,o)}function zB(n){return(Wt&Lr)!==gr}function wa(n,r){var o=n.callbackNode;M5(n,r);var l=cp(n,n===ia?yr:Se);if(l===Se){o!==null&&cD(o),n.callbackNode=null,n.callbackPriority=Er;return}var d=dl(l),p=n.callbackPriority;if(p===d&&!(ki.current!==null&&o!==Ax)){o==null&&p!==bt&&c("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}o!=null&&cD(o);var g;if(d===bt)n.tag===gs?(ki.isBatchingLegacy!==null&&(ki.didScheduleLegacyUpdate=!0),fI(Kk.bind(null,n))):Y1(Kk.bind(null,n)),ki.current!==null?ki.current.push(ys):vF(function(){(Wt&(Lr|Qa))===gr&&ys()}),g=null;else{var b;switch(PE(l)){case Na:b=ip;break;case Do:b=by;break;case _o:b=ll;break;case fp:b=xy;break;default:b=ll;break}g=Ox(b,Gk.bind(null,n))}n.callbackPriority=d,n.callbackNode=g}function Gk(n,r){if(nV(),kf=Mn,Vm=Se,(Wt&(Lr|Qa))!==gr)throw new Error("Should not already be working.");var o=n.callbackNode,l=Io();if(l&&n.callbackNode!==o)return null;var d=cp(n,n===ia?yr:Se);if(d===Se)return null;var p=!up(n,d)&&!$5(n,d)&&!r,g=p?GB(n,d):Hm(n,d);if(g!==$o){if(g===Rl){var b=By(n);b!==Se&&(d=b,g=Tx(n,b))}if(g===bf){var T=Sf;throw Dl(n,Se),_s(n,d),wa(n,Cr()),T}if(g===vx)_s(n,d);else{var D=!up(n,d),A=n.current.alternate;if(D&&!IB(A)){if(g=Hm(n,d),g===Rl){var U=By(n);U!==Se&&(d=U,g=Tx(n,U))}if(g===bf){var B=Sf;throw Dl(n,Se),_s(n,d),wa(n,Cr()),B}}n.finishedWork=A,n.finishedLanes=d,FB(n,g,d)}}return wa(n,Cr()),n.callbackNode===o?Gk.bind(null,n):null}function Tx(n,r){var o=Cf;if(hp(n)){var l=Dl(n,r);l.flags|=Co,iI(n.containerInfo)}var d=Hm(n,r);if(d!==Rl){var p=Sa;Sa=o,p!==null&&Xk(p)}return d}function Xk(n){Sa===null?Sa=n:Sa.push.apply(Sa,n)}function FB(n,r,o){switch(r){case $o:case bf:throw new Error("Root did not complete. This is a bug in React.");case Rl:{_l(n,Sa,zo);break}case jm:{if(_s(n,o),RE(o)&&!uD()){var l=yx+Hk-Cr();if(l>10){var d=cp(n,Se);if(d!==Se)break;var p=n.suspendedLanes;if(!xc(p,o)){oa(),AE(n,p);break}n.timeoutHandle=Sb(_l.bind(null,n,Sa,zo),l);break}}_l(n,Sa,zo);break}case xf:{if(_s(n,o),L5(o))break;if(!uD()){var g=A5(n,o),b=g,T=Cr()-b,D=iU(T)-T;if(D>10){n.timeoutHandle=Sb(_l.bind(null,n,Sa,zo),D);break}}_l(n,Sa,zo);break}case Uk:{_l(n,Sa,zo);break}default:throw new Error("Unknown root exit status.")}}function IB(n){for(var r=n;;){if(r.flags&rp){var o=r.updateQueue;if(o!==null){var l=o.stores;if(l!==null)for(var d=0;d<l.length;d++){var p=l[d],g=p.getSnapshot,b=p.value;try{if(!ja(g(),b))return!1}catch{return!1}}}}var T=r.child;if(r.subtreeFlags&rp&&T!==null){T.return=r,r=T;continue}if(r===n)return!0;for(;r.sibling===null;){if(r.return===null||r.return===n)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}return!0}function _s(n,r){r=dp(r,$m),r=dp(r,wf),I5(n,r)}function Kk(n){if(rV(),(Wt&(Lr|Qa))!==gr)throw new Error("Should not already be working.");Io();var r=cp(n,Se);if(!Ma(r,bt))return wa(n,Cr()),null;var o=Hm(n,r);if(n.tag!==gs&&o===Rl){var l=By(n);l!==Se&&(r=l,o=Tx(n,l))}if(o===bf){var d=Sf;throw Dl(n,Se),_s(n,r),wa(n,Cr()),d}if(o===vx)throw new Error("Root did not complete. This is a bug in React.");var p=n.current.alternate;return n.finishedWork=p,n.finishedLanes=r,_l(n,Sa,zo),wa(n,Cr()),null}function VB(n,r){r!==Se&&(Yy(n,Mt(r,bt)),wa(n,Cr()),(Wt&(Lr|Qa))===gr&&(Tf(),ys()))}function Ex(n,r){var o=Wt;Wt|=Bk;try{return n(r)}finally{Wt=o,Wt===gr&&!ki.isBatchingLegacy&&(Tf(),q1())}}function BB(n,r,o,l,d){var p=mi(),g=jr.transition;try{return jr.transition=null,Rr(Na),n(r,o,l,d)}finally{Rr(p),jr.transition=g,Wt===gr&&Tf()}}function Fo(n){ks!==null&&ks.tag===gs&&(Wt&(Lr|Qa))===gr&&Io();var r=Wt;Wt|=Bk;var o=jr.transition,l=mi();try{return jr.transition=null,Rr(Na),n?n():void 0}finally{Rr(l),jr.transition=o,Wt=r,(Wt&(Lr|Qa))===gr&&ys()}}function Qk(){return(Wt&(Lr|Qa))!==gr}function Um(n,r){Yr(gx,Xi,n),Xi=Mt(Xi,r)}function Rx(n){Xi=gx.current,Wr(gx,n)}function Dl(n,r){n.finishedWork=null,n.finishedLanes=Se;var o=n.timeoutHandle;if(o!==wb&&(n.timeoutHandle=wb,mF(o)),Hn!==null)for(var l=Hn.return;l!==null;){var d=l.alternate;Rk(d,l),l=l.return}ia=n;var p=Al(n.current,null);return Hn=p,yr=Xi=r,br=$o,Sf=null,Lm=Se,wf=Se,$m=Se,Cf=null,Sa=null,$I(),bi.discardPendingWarnings(),p}function Zk(n,r){do{var o=Hn;try{if(Jp(),wR(),or(),mx.current=null,o===null||o.return===null){br=bf,Sf=r,Hn=null;return}if(Pe&&o.mode&xn&&Dm(o,!0),Ne)if(vc(),r!==null&&typeof r=="object"&&typeof r.then=="function"){var l=r;y5(o,l,yr)}else g5(o,r,yr);fV(n,o.return,o,r,yr),nD(o)}catch(d){r=d,Hn===o&&o!==null?(o=o.return,Hn=o):o=Hn;continue}return}while(!0)}function Jk(){var n=px.current;return px.current=Cm,n===null?Cm:n}function eD(n){px.current=n}function UB(){yx=Cr()}function Df(n){Lm=Mt(n,Lm)}function HB(){br===$o&&(br=jm)}function kx(){(br===$o||br===jm||br===Rl)&&(br=xf),ia!==null&&(Uy(Lm)||Uy(wf))&&_s(ia,yr)}function WB(n){br!==xf&&(br=Rl),Cf===null?Cf=[n]:Cf.push(n)}function YB(){return br===$o}function Hm(n,r){var o=Wt;Wt|=Lr;var l=Jk();if(ia!==n||yr!==r){if(pi){var d=n.memoizedUpdaters;d.size>0&&(_f(n,yr),d.clear()),ME(n,r)}zo=NE(),Dl(n,r)}SE(r);do try{qB();break}catch(p){Zk(n,p)}while(!0);if(Jp(),Wt=o,eD(l),Hn!==null)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return wE(),ia=null,yr=Se,br}function qB(){for(;Hn!==null;)tD(Hn)}function GB(n,r){var o=Wt;Wt|=Lr;var l=Jk();if(ia!==n||yr!==r){if(pi){var d=n.memoizedUpdaters;d.size>0&&(_f(n,yr),d.clear()),ME(n,r)}zo=NE(),Tf(),Dl(n,r)}SE(r);do try{XB();break}catch(p){Zk(n,p)}while(!0);return Jp(),eD(l),Wt=o,Hn!==null?(C5(),$o):(wE(),ia=null,yr=Se,br)}function XB(){for(;Hn!==null&&!QL();)tD(Hn)}function tD(n){var r=n.alternate;On(n);var o;(n.mode&xn)!==nt?(A0(n),o=Dx(r,n,Xi),Dm(n,!0)):o=Dx(r,n,Xi),or(),n.memoizedProps=n.pendingProps,o===null?nD(n):Hn=o,mx.current=null}function nD(n){var r=n;do{var o=r.alternate,l=r.return;if((r.flags&ud)===st){On(r);var d=void 0;if((r.mode&xn)===nt?d=Ek(o,r,Xi):(A0(r),d=Ek(o,r,Xi),Dm(r,!1)),or(),d!==null){Hn=d;return}}else{var p=HV(o,r);if(p!==null){p.flags&=WL,Hn=p;return}if((r.mode&xn)!==nt){Dm(r,!1);for(var g=r.actualDuration,b=r.child;b!==null;)g+=b.actualDuration,b=b.sibling;r.actualDuration=g}if(l!==null)l.flags|=ud,l.subtreeFlags=st,l.deletions=null;else{br=vx,Hn=null;return}}var T=r.sibling;if(T!==null){Hn=T;return}r=l,Hn=r}while(r!==null);br===$o&&(br=Uk)}function _l(n,r,o){var l=mi(),d=jr.transition;try{jr.transition=null,Rr(Na),KB(n,r,o,l)}finally{jr.transition=d,Rr(l)}return null}function KB(n,r,o,l){do Io();while(ks!==null);if(sU(),(Wt&(Lr|Qa))!==gr)throw new Error("Should not already be working.");var d=n.finishedWork,p=n.finishedLanes;if(u5(p),d===null)return yE(),null;if(p===Se&&c("root.finishedLanes should not be empty during a commit. This is a bug in React."),n.finishedWork=null,n.finishedLanes=Se,d===n.current)throw new Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");n.callbackNode=null,n.callbackPriority=Er;var g=Mt(d.lanes,d.childLanes);V5(n,g),n===ia&&(ia=null,Hn=null,yr=Se),((d.subtreeFlags&pc)!==st||(d.flags&pc)!==st)&&(kl||(kl=!0,Sx=o,Ox(ll,function(){return Io(),null})));var b=(d.subtreeFlags&(gy|yy|dd|pc))!==st,T=(d.flags&(gy|yy|dd|pc))!==st;if(b||T){var D=jr.transition;jr.transition=null;var A=mi();Rr(Na);var U=Wt;Wt|=Qa,mx.current=null,XV(n,d),qR(),cB(n,d,p),lF(n.containerInfo),n.current=d,b5(p),uB(d,n,p),x5(),ZL(),Wt=U,Rr(A),jr.transition=D}else n.current=d,qR();var B=kl;if(kl?(kl=!1,ks=n,Ef=p):(Kc=0,Im=null),g=n.pendingLanes,g===Se&&(Xc=null),B||oD(n.current,!1),i5(d.stateNode,l),pi&&n.memoizedUpdaters.clear(),_B(),wa(n,Cr()),r!==null)for(var ne=n.onRecoverableError,ie=0;ie<r.length;ie++){var fe=r[ie],Le=fe.stack,Je=fe.digest;ne(fe.value,{componentStack:Le,digest:Je})}if(zm){zm=!1;var Xe=bx;throw bx=null,Xe}return Ma(Ef,bt)&&n.tag!==gs&&Io(),g=n.pendingLanes,Ma(g,bt)?(tV(),n===wx?Rf++:(Rf=0,wx=n)):Rf=0,ys(),yE(),null}function Io(){if(ks!==null){var n=PE(Ef),r=W5(_o,n),o=jr.transition,l=mi();try{return jr.transition=null,Rr(r),ZB()}finally{Rr(l),jr.transition=o}}return!1}function QB(n){xx.push(n),kl||(kl=!0,Ox(ll,function(){return Io(),null}))}function ZB(){if(ks===null)return!1;var n=Sx;Sx=null;var r=ks,o=Ef;if(ks=null,Ef=Se,(Wt&(Lr|Qa))!==gr)throw new Error("Cannot flush passive effects while already rendering.");Cx=!0,Fm=!1,S5(o);var l=Wt;Wt|=Qa,gB(r.current),hB(r,r.current,o,n);{var d=xx;xx=[];for(var p=0;p<d.length;p++){var g=d[p];JV(r,g)}}w5(),oD(r.current,!0),Wt=l,ys(),Fm?r===Im?Kc++:(Kc=0,Im=r):Kc=0,Cx=!1,Fm=!1,o5(r);{var b=r.current.stateNode;b.effectDuration=0,b.passiveEffectDuration=0}return!0}function rD(n){return Xc!==null&&Xc.has(n)}function JB(n){Xc===null?Xc=new Set([n]):Xc.add(n)}function eU(n){zm||(zm=!0,bx=n)}var tU=eU;function aD(n,r,o){var l=Tl(o,r),d=tk(n,l,bt),p=xs(n,d,bt),g=oa();p!==null&&(bd(p,bt,g),wa(p,g))}function Dn(n,r,o){if(YV(o),Af(!1),n.tag===y){aD(n,n,o);return}var l=null;for(l=r;l!==null;){if(l.tag===y){aD(l,n,o);return}else if(l.tag===m){var d=l.type,p=l.stateNode;if(typeof d.getDerivedStateFromError=="function"||typeof p.componentDidCatch=="function"&&!rD(p)){var g=Tl(o,n),b=G0(l,g,bt),T=xs(l,b,bt),D=oa();T!==null&&(bd(T,bt,D),wa(T,D));return}}l=l.return}c(`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.
175
-
176
- Error message:
177
-
178
- %s`,o)}function nU(n,r,o){var l=n.pingCache;l!==null&&l.delete(r);var d=oa();AE(n,o),dU(n),ia===n&&xc(yr,o)&&(br===xf||br===jm&&RE(yr)&&Cr()-yx<Hk?Dl(n,Se):$m=Mt($m,o)),wa(n,d)}function iD(n,r){r===Er&&(r=LB(n));var o=oa(),l=ba(n,r);l!==null&&(bd(l,r,o),wa(l,o))}function rU(n){var r=n.memoizedState,o=Er;r!==null&&(o=r.retryLane),iD(n,o)}function aU(n,r){var o=Er,l;switch(n.tag){case L:l=n.stateNode;var d=n.memoizedState;d!==null&&(o=d.retryLane);break;case de:l=n.stateNode;break;default:throw new Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}l!==null&&l.delete(r),iD(n,o)}function iU(n){return n<120?120:n<480?480:n<1080?1080:n<1920?1920:n<3e3?3e3:n<4320?4320:MB(n/1960)*1960}function oU(){if(Rf>PB)throw Rf=0,wx=null,new Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");Kc>jB&&(Kc=0,Im=null,c("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 sU(){bi.flushLegacyContextWarning(),bi.flushPendingUnsafeLifecycleWarnings()}function oD(n,r){On(n),Wm(n,Eo,RB),r&&Wm(n,ap,kB),Wm(n,Eo,TB),r&&Wm(n,ap,EB),or()}function Wm(n,r,o){for(var l=n,d=null;l!==null;){var p=l.subtreeFlags&r;l!==d&&l.child!==null&&p!==st?l=l.child:((l.flags&r)!==st&&o(l),l.sibling!==null?l=l.sibling:l=d=l.return)}}var Ym=null;function sD(n){{if((Wt&Lr)!==gr||!(n.mode&Ht))return;var r=n.tag;if(r!==v&&r!==y&&r!==m&&r!==h&&r!==N&&r!==I&&r!==F)return;var o=Tt(n)||"ReactComponent";if(Ym!==null){if(Ym.has(o))return;Ym.add(o)}else Ym=new Set([o]);var l=tr;try{On(n),c("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{l?On(n):or()}}}var Dx;{var lU=null;Dx=function(n,r,o){var l=mD(lU,r);try{return xk(n,r,o)}catch(p){if(xI()||p!==null&&typeof p=="object"&&typeof p.then=="function")throw p;if(Jp(),wR(),Rk(n,r),mD(r,l),r.mode&xn&&A0(r),dy(null,xk,null,n,r,o),VL()){var d=fy();typeof d=="object"&&d!==null&&d._suppressLogging&&typeof p=="object"&&p!==null&&!p._suppressLogging&&(p._suppressLogging=!0)}throw p}}}var lD=!1,_x;_x=new Set;function cU(n){if(di&&!ZI())switch(n.tag){case h:case N:case F:{var r=Hn&&Tt(Hn)||"Unknown",o=r;if(!_x.has(o)){_x.add(o);var l=Tt(n)||"Unknown";c("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",l,r,r)}break}case m:{lD||(c("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),lD=!0);break}}}function _f(n,r){if(pi){var o=n.memoizedUpdaters;o.forEach(function(l){OE(n,l,r)})}}var Ax={};function Ox(n,r){{var o=ki.current;return o!==null?(o.push(r),Ax):gE(n,r)}}function cD(n){if(n!==Ax)return KL(n)}function uD(){return ki.current!==null}function uU(n){{if(n.mode&Ht){if(!Vk())return}else if(!OB()||Wt!==gr||n.tag!==h&&n.tag!==N&&n.tag!==F)return;if(ki.current===null){var r=tr;try{On(n),c(`An update to %s inside a test was not wrapped in act(...).
179
-
180
- When testing, code that causes React state updates should be wrapped into act(...):
181
-
182
- act(() => {
183
- /* fire events that update state */
184
- });
185
- /* assert on the output */
186
-
187
- 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`,Tt(n))}finally{r?On(n):or()}}}}function dU(n){n.tag!==gs&&Vk()&&ki.current===null&&c(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
188
-
189
- When testing, code that resolves suspended data should be wrapped into act(...):
190
-
191
- act(() => {
192
- /* finish loading suspended data */
193
- });
194
- /* assert on the output */
195
-
196
- 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 Af(n){qk=n}var Za=null,Qc=null,fU=function(n){Za=n};function Zc(n){{if(Za===null)return n;var r=Za(n);return r===void 0?n:r.current}}function Mx(n){return Zc(n)}function Nx(n){{if(Za===null)return n;var r=Za(n);if(r===void 0){if(n!=null&&typeof n.render=="function"){var o=Zc(n.render);if(n.render!==o){var l={$$typeof:me,render:o};return n.displayName!==void 0&&(l.displayName=n.displayName),l}}return n}return r.current}}function dD(n,r){{if(Za===null)return!1;var o=n.elementType,l=r.type,d=!1,p=typeof l=="object"&&l!==null?l.$$typeof:null;switch(n.tag){case m:{typeof l=="function"&&(d=!0);break}case h:{(typeof l=="function"||p===je)&&(d=!0);break}case N:{(p===me||p===je)&&(d=!0);break}case I:case F:{(p===at||p===je)&&(d=!0);break}default:return!1}if(d){var g=Za(o);if(g!==void 0&&g===Za(l))return!0}return!1}}function fD(n){{if(Za===null||typeof WeakSet!="function")return;Qc===null&&(Qc=new WeakSet),Qc.add(n)}}var hU=function(n,r){{if(Za===null)return;var o=r.staleFamilies,l=r.updatedFamilies;Io(),Fo(function(){Px(n.current,l,o)})}},pU=function(n,r){{if(n.context!==La)return;Io(),Fo(function(){Of(r,n,null,null)})}};function Px(n,r,o){{var l=n.alternate,d=n.child,p=n.sibling,g=n.tag,b=n.type,T=null;switch(g){case h:case F:case m:T=b;break;case N:T=b.render;break}if(Za===null)throw new Error("Expected resolveFamily to be set during hot reload.");var D=!1,A=!1;if(T!==null){var U=Za(T);U!==void 0&&(o.has(U)?A=!0:r.has(U)&&(g===m?A=!0:D=!0))}if(Qc!==null&&(Qc.has(n)||l!==null&&Qc.has(l))&&(A=!0),A&&(n._debugNeedsRemount=!0),A||D){var B=ba(n,bt);B!==null&&xr(B,n,bt,Mn)}d!==null&&!A&&Px(d,r,o),p!==null&&Px(p,r,o)}}var mU=function(n,r){{var o=new Set,l=new Set(r.map(function(d){return d.current}));return jx(n.current,l,o),o}};function jx(n,r,o){{var l=n.child,d=n.sibling,p=n.tag,g=n.type,b=null;switch(p){case h:case F:case m:b=g;break;case N:b=g.render;break}var T=!1;b!==null&&r.has(b)&&(T=!0),T?vU(n,o):l!==null&&jx(l,r,o),d!==null&&jx(d,r,o)}}function vU(n,r){{var o=gU(n,r);if(o)return;for(var l=n;;){switch(l.tag){case S:r.add(l.stateNode);return;case x:r.add(l.stateNode.containerInfo);return;case y:r.add(l.stateNode.containerInfo);return}if(l.return===null)throw new Error("Expected to reach root first.");l=l.return}}}function gU(n,r){for(var o=n,l=!1;;){if(o.tag===S)l=!0,r.add(o.stateNode);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===n)return l;for(;o.sibling===null;){if(o.return===null||o.return===n)return l;o=o.return}o.sibling.return=o.return,o=o.sibling}return!1}var Lx;{Lx=!1;try{var hD=Object.preventExtensions({})}catch{Lx=!0}}function yU(n,r,o,l){this.tag=n,this.key=o,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=r,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=l,this.flags=st,this.subtreeFlags=st,this.deletions=null,this.lanes=Se,this.childLanes=Se,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,!Lx&&typeof Object.preventExtensions=="function"&&Object.preventExtensions(this)}var $a=function(n,r,o,l){return new yU(n,r,o,l)};function $x(n){var r=n.prototype;return!!(r&&r.isReactComponent)}function bU(n){return typeof n=="function"&&!$x(n)&&n.defaultProps===void 0}function xU(n){if(typeof n=="function")return $x(n)?m:h;if(n!=null){var r=n.$$typeof;if(r===me)return N;if(r===at)return I}return v}function Al(n,r){var o=n.alternate;o===null?(o=$a(n.tag,r,n.key,n.mode),o.elementType=n.elementType,o.type=n.type,o.stateNode=n.stateNode,o._debugSource=n._debugSource,o._debugOwner=n._debugOwner,o._debugHookTypes=n._debugHookTypes,o.alternate=n,n.alternate=o):(o.pendingProps=r,o.type=n.type,o.flags=st,o.subtreeFlags=st,o.deletions=null,o.actualDuration=0,o.actualStartTime=-1),o.flags=n.flags&Ro,o.childLanes=n.childLanes,o.lanes=n.lanes,o.child=n.child,o.memoizedProps=n.memoizedProps,o.memoizedState=n.memoizedState,o.updateQueue=n.updateQueue;var l=n.dependencies;switch(o.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},o.sibling=n.sibling,o.index=n.index,o.ref=n.ref,o.selfBaseDuration=n.selfBaseDuration,o.treeBaseDuration=n.treeBaseDuration,o._debugNeedsRemount=n._debugNeedsRemount,o.tag){case v:case h:case F:o.type=Zc(n.type);break;case m:o.type=Mx(n.type);break;case N:o.type=Nx(n.type);break}return o}function SU(n,r){n.flags&=Ro|lr;var o=n.alternate;if(o===null)n.childLanes=Se,n.lanes=r,n.child=null,n.subtreeFlags=st,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null,n.selfBaseDuration=0,n.treeBaseDuration=0;else{n.childLanes=o.childLanes,n.lanes=o.lanes,n.child=o.child,n.subtreeFlags=st,n.deletions=null,n.memoizedProps=o.memoizedProps,n.memoizedState=o.memoizedState,n.updateQueue=o.updateQueue,n.type=o.type;var l=o.dependencies;n.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},n.selfBaseDuration=o.selfBaseDuration,n.treeBaseDuration=o.treeBaseDuration}return n}function wU(n,r,o){var l;return n===Up?(l=Ht,r===!0&&(l|=Kn,l|=Fi)):l=nt,pi&&(l|=xn),$a(y,null,null,l)}function zx(n,r,o,l,d,p){var g=v,b=n;if(typeof n=="function")$x(n)?(g=m,b=Mx(b)):b=Zc(b);else if(typeof n=="string")g=S;else e:switch(n){case z:return As(o.children,d,p,r);case ye:g=k,d|=Kn,(d&Ht)!==nt&&(d|=Fi);break;case ke:return CU(o,d,p,r);case Re:return TU(o,d,p,r);case De:return EU(o,d,p,r);case Qt:return pD(o,d,p,r);case nn:case qe:case Zt:case Vr:case tn:default:{if(typeof n=="object"&&n!==null)switch(n.$$typeof){case M:g=_;break e;case ce:g=O;break e;case me:g=N,b=Nx(b);break e;case at:g=I;break e;case je:g=Q,b=null;break e}var T="";{(n===void 0||typeof n=="object"&&n!==null&&Object.keys(n).length===0)&&(T+=" 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 D=l?Tt(l):null;D&&(T+=`
197
-
198
- Check the render method of \``+D+"`.")}throw new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(n==null?n:typeof n)+"."+T))}}var A=$a(g,o,r,d);return A.elementType=n,A.type=b,A.lanes=p,A._debugOwner=l,A}function Fx(n,r,o){var l=null;l=n._owner;var d=n.type,p=n.key,g=n.props,b=zx(d,p,g,l,r,o);return b._debugSource=n._source,b._debugOwner=n._owner,b}function As(n,r,o,l){var d=$a(E,n,l,r);return d.lanes=o,d}function CU(n,r,o,l){typeof n.id!="string"&&c('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof n.id);var d=$a($,n,l,r|xn);return d.elementType=ke,d.lanes=o,d.stateNode={effectDuration:0,passiveEffectDuration:0},d}function TU(n,r,o,l){var d=$a(L,n,l,r);return d.elementType=Re,d.lanes=o,d}function EU(n,r,o,l){var d=$a(de,n,l,r);return d.elementType=De,d.lanes=o,d}function pD(n,r,o,l){var d=$a(q,n,l,r);d.elementType=Qt,d.lanes=o;var p={isHidden:!1};return d.stateNode=p,d}function Ix(n,r,o){var l=$a(R,n,null,r);return l.lanes=o,l}function RU(){var n=$a(S,null,null,nt);return n.elementType="DELETED",n}function kU(n){var r=$a(re,null,null,nt);return r.stateNode=n,r}function Vx(n,r,o){var l=n.children!==null?n.children:[],d=$a(x,l,n.key,r);return d.lanes=o,d.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},d}function mD(n,r){return n===null&&(n=$a(v,null,null,nt)),n.tag=r.tag,n.key=r.key,n.elementType=r.elementType,n.type=r.type,n.stateNode=r.stateNode,n.return=r.return,n.child=r.child,n.sibling=r.sibling,n.index=r.index,n.ref=r.ref,n.pendingProps=r.pendingProps,n.memoizedProps=r.memoizedProps,n.updateQueue=r.updateQueue,n.memoizedState=r.memoizedState,n.dependencies=r.dependencies,n.mode=r.mode,n.flags=r.flags,n.subtreeFlags=r.subtreeFlags,n.deletions=r.deletions,n.lanes=r.lanes,n.childLanes=r.childLanes,n.alternate=r.alternate,n.actualDuration=r.actualDuration,n.actualStartTime=r.actualStartTime,n.selfBaseDuration=r.selfBaseDuration,n.treeBaseDuration=r.treeBaseDuration,n._debugSource=r._debugSource,n._debugOwner=r._debugOwner,n._debugNeedsRemount=r._debugNeedsRemount,n._debugHookTypes=r._debugHookTypes,n}function DU(n,r,o,l,d){this.tag=r,this.containerInfo=n,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=wb,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=Er,this.eventTimes=Wy(Se),this.expirationTimes=Wy(Mn),this.pendingLanes=Se,this.suspendedLanes=Se,this.pingedLanes=Se,this.expiredLanes=Se,this.mutableReadLanes=Se,this.finishedLanes=Se,this.entangledLanes=Se,this.entanglements=Wy(Se),this.identifierPrefix=l,this.onRecoverableError=d,this.mutableSourceEagerHydrationData=null,this.effectDuration=0,this.passiveEffectDuration=0;{this.memoizedUpdaters=new Set;for(var p=this.pendingUpdatersLaneMap=[],g=0;g<wy;g++)p.push(new Set)}switch(r){case Up:this._debugRootType=o?"hydrateRoot()":"createRoot()";break;case gs:this._debugRootType=o?"hydrate()":"render()";break}}function vD(n,r,o,l,d,p,g,b,T,D){var A=new DU(n,r,o,b,T),U=wU(r,p);A.current=U,U.stateNode=A;{var B={element:l,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null};U.memoizedState=B}return e0(U),A}var Bx="18.3.1";function _U(n,r,o){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return en(l),{$$typeof:er,key:l==null?null:""+l,children:n,containerInfo:r,implementation:o}}var Ux,Hx;Ux=!1,Hx={};function gD(n){if(!n)return La;var r=fc(n),o=dI(r);if(r.tag===m){var l=r.type;if(Bi(l))return H1(r,l,o)}return o}function AU(n,r){{var o=fc(n);if(o===void 0){if(typeof n.render=="function")throw new Error("Unable to find node on an unmounted component.");var l=Object.keys(n).join(",");throw new Error("Argument appears to not be a ReactComponent. Keys: "+l)}var d=pE(o);if(d===null)return null;if(d.mode&Kn){var p=Tt(o)||"Component";if(!Hx[p]){Hx[p]=!0;var g=tr;try{On(d),o.mode&Kn?c("%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",r,r,p):c("%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",r,r,p)}finally{g?On(g):or()}}}return d.stateNode}}function yD(n,r,o,l,d,p,g,b){var T=!1,D=null;return vD(n,r,T,D,o,l,d,p,g)}function bD(n,r,o,l,d,p,g,b,T,D){var A=!0,U=vD(o,l,A,n,d,p,g,b,T);U.context=gD(null);var B=U.current,ne=oa(),ie=Ds(B),fe=jo(ne,ie);return fe.callback=r??null,xs(B,fe,ie),$B(U,ie,ne),U}function Of(n,r,o,l){a5(r,n);var d=r.current,p=oa(),g=Ds(d);T5(g);var b=gD(o);r.context===null?r.context=b:r.pendingContext=b,di&&tr!==null&&!Ux&&(Ux=!0,c(`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.
199
-
200
- Check the render method of %s.`,Tt(tr)||"Unknown"));var T=jo(p,g);T.payload={element:n},l=l===void 0?null:l,l!==null&&(typeof l!="function"&&c("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",l),T.callback=l);var D=xs(d,T,g);return D!==null&&(xr(D,d,g,p),am(D,d,g)),g}function qm(n){var r=n.current;if(!r.child)return null;switch(r.child.tag){case S:return r.child.stateNode;default:return r.child.stateNode}}function OU(n){switch(n.tag){case y:{var r=n.stateNode;if(hp(r)){var o=N5(r);VB(r,o)}break}case L:{Fo(function(){var d=ba(n,bt);if(d!==null){var p=oa();xr(d,n,bt,p)}});var l=bt;Wx(n,l);break}}}function xD(n,r){var o=n.memoizedState;o!==null&&o.dehydrated!==null&&(o.retryLane=F5(o.retryLane,r))}function Wx(n,r){xD(n,r);var o=n.alternate;o&&xD(o,r)}function MU(n){if(n.tag===L){var r=md,o=ba(n,r);if(o!==null){var l=oa();xr(o,n,r,l)}Wx(n,r)}}function NU(n){if(n.tag===L){var r=Ds(n),o=ba(n,r);if(o!==null){var l=oa();xr(o,n,r,l)}Wx(n,r)}}function SD(n){var r=XL(n);return r===null?null:r.stateNode}var wD=function(n){return null};function PU(n){return wD(n)}var CD=function(n){return!1};function jU(n){return CD(n)}var TD=null,ED=null,RD=null,kD=null,DD=null,_D=null,AD=null,OD=null,MD=null;{var ND=function(n,r,o){var l=r[o],d=sn(n)?n.slice():Rt({},n);return o+1===r.length?(sn(d)?d.splice(l,1):delete d[l],d):(d[l]=ND(n[l],r,o+1),d)},PD=function(n,r){return ND(n,r,0)},jD=function(n,r,o,l){var d=r[l],p=sn(n)?n.slice():Rt({},n);if(l+1===r.length){var g=o[l];p[g]=p[d],sn(p)?p.splice(d,1):delete p[d]}else p[d]=jD(n[d],r,o,l+1);return p},LD=function(n,r,o){if(r.length!==o.length){u("copyWithRename() expects paths of the same length");return}else for(var l=0;l<o.length-1;l++)if(r[l]!==o[l]){u("copyWithRename() expects paths to be the same except for the deepest key");return}return jD(n,r,o,0)},$D=function(n,r,o,l){if(o>=r.length)return l;var d=r[o],p=sn(n)?n.slice():Rt({},n);return p[d]=$D(n[d],r,o+1,l),p},zD=function(n,r,o){return $D(n,r,0,o)},Yx=function(n,r){for(var o=n.memoizedState;o!==null&&r>0;)o=o.next,r--;return o};TD=function(n,r,o,l){var d=Yx(n,r);if(d!==null){var p=zD(d.memoizedState,o,l);d.memoizedState=p,d.baseState=p,n.memoizedProps=Rt({},n.memoizedProps);var g=ba(n,bt);g!==null&&xr(g,n,bt,Mn)}},ED=function(n,r,o){var l=Yx(n,r);if(l!==null){var d=PD(l.memoizedState,o);l.memoizedState=d,l.baseState=d,n.memoizedProps=Rt({},n.memoizedProps);var p=ba(n,bt);p!==null&&xr(p,n,bt,Mn)}},RD=function(n,r,o,l){var d=Yx(n,r);if(d!==null){var p=LD(d.memoizedState,o,l);d.memoizedState=p,d.baseState=p,n.memoizedProps=Rt({},n.memoizedProps);var g=ba(n,bt);g!==null&&xr(g,n,bt,Mn)}},kD=function(n,r,o){n.pendingProps=zD(n.memoizedProps,r,o),n.alternate&&(n.alternate.pendingProps=n.pendingProps);var l=ba(n,bt);l!==null&&xr(l,n,bt,Mn)},DD=function(n,r){n.pendingProps=PD(n.memoizedProps,r),n.alternate&&(n.alternate.pendingProps=n.pendingProps);var o=ba(n,bt);o!==null&&xr(o,n,bt,Mn)},_D=function(n,r,o){n.pendingProps=LD(n.memoizedProps,r,o),n.alternate&&(n.alternate.pendingProps=n.pendingProps);var l=ba(n,bt);l!==null&&xr(l,n,bt,Mn)},AD=function(n){var r=ba(n,bt);r!==null&&xr(r,n,bt,Mn)},OD=function(n){wD=n},MD=function(n){CD=n}}function LU(n){var r=pE(n);return r===null?null:r.stateNode}function $U(n){return null}function zU(){return tr}function FU(n){var r=n.findFiberByHostInstance,o=a.ReactCurrentDispatcher;return r5({bundleType:n.bundleType,version:n.version,rendererPackageName:n.rendererPackageName,rendererConfig:n.rendererConfig,overrideHookState:TD,overrideHookStateDeletePath:ED,overrideHookStateRenamePath:RD,overrideProps:kD,overridePropsDeletePath:DD,overridePropsRenamePath:_D,setErrorHandler:OD,setSuspenseHandler:MD,scheduleUpdate:AD,currentDispatcherRef:o,findHostInstanceByFiber:LU,findFiberByHostInstance:r||$U,findHostInstancesForRefresh:mU,scheduleRefresh:hU,scheduleRoot:pU,setRefreshHandler:fU,getCurrentFiber:zU,reconcilerVersion:Bx})}var FD=typeof reportError=="function"?reportError:function(n){console.error(n)};function qx(n){this._internalRoot=n}Gm.prototype.render=qx.prototype.render=function(n){var r=this._internalRoot;if(r===null)throw new Error("Cannot update an unmounted root.");{typeof arguments[1]=="function"?c("render(...): does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):Xm(arguments[1])?c("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof arguments[1]<"u"&&c("You passed a second argument to root.render(...) but it only accepts one argument.");var o=r.containerInfo;if(o.nodeType!==sr){var l=SD(r.current);l&&l.parentNode!==o&&c("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.")}}Of(n,r,null,null)},Gm.prototype.unmount=qx.prototype.unmount=function(){typeof arguments[0]=="function"&&c("unmount(...): does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");var n=this._internalRoot;if(n!==null){this._internalRoot=null;var r=n.containerInfo;Qk()&&c("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."),Fo(function(){Of(null,n,null,null)}),F1(r)}};function IU(n,r){if(!Xm(n))throw new Error("createRoot(...): Target container is not a DOM element.");ID(n);var o=!1,l=!1,d="",p=FD;r!=null&&(r.hydrate?u("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof r=="object"&&r!==null&&r.$$typeof===jn&&c(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
201
-
202
- let root = createRoot(domContainer);
203
- root.render(<App />);`),r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(d=r.identifierPrefix),r.onRecoverableError!==void 0&&(p=r.onRecoverableError),r.transitionCallbacks!==void 0&&r.transitionCallbacks);var g=yD(n,Up,null,o,l,d,p);Lp(g.current,n);var b=n.nodeType===sr?n.parentNode:n;return Ld(b),new qx(g)}function Gm(n){this._internalRoot=n}function VU(n){n&&n$(n)}Gm.prototype.unstable_scheduleHydration=VU;function BU(n,r,o){if(!Xm(n))throw new Error("hydrateRoot(...): Target container is not a DOM element.");ID(n),r===void 0&&c("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var l=o??null,d=o!=null&&o.hydratedSources||null,p=!1,g=!1,b="",T=FD;o!=null&&(o.unstable_strictMode===!0&&(p=!0),o.identifierPrefix!==void 0&&(b=o.identifierPrefix),o.onRecoverableError!==void 0&&(T=o.onRecoverableError));var D=bD(r,null,n,Up,l,p,g,b,T);if(Lp(D.current,n),Ld(n),d)for(var A=0;A<d.length;A++){var U=d[A];YI(D,U)}return new Gm(D)}function Xm(n){return!!(n&&(n.nodeType===ga||n.nodeType===wo||n.nodeType===ey||!te))}function Mf(n){return!!(n&&(n.nodeType===ga||n.nodeType===wo||n.nodeType===ey||n.nodeType===sr&&n.nodeValue===" react-mount-point-unstable "))}function ID(n){n.nodeType===ga&&n.tagName&&n.tagName.toUpperCase()==="BODY"&&c("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."),qd(n)&&(n._reactRootContainer?c("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):c("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 UU=a.ReactCurrentOwner,VD;VD=function(n){if(n._reactRootContainer&&n.nodeType!==sr){var r=SD(n._reactRootContainer.current);r&&r.parentNode!==n&&c("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 o=!!n._reactRootContainer,l=Gx(n),d=!!(l&&ms(l));d&&!o&&c("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."),n.nodeType===ga&&n.tagName&&n.tagName.toUpperCase()==="BODY"&&c("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 Gx(n){return n?n.nodeType===wo?n.documentElement:n.firstChild:null}function BD(){}function HU(n,r,o,l,d){if(d){if(typeof l=="function"){var p=l;l=function(){var B=qm(g);p.call(B)}}var g=bD(r,l,n,gs,null,!1,!1,"",BD);n._reactRootContainer=g,Lp(g.current,n);var b=n.nodeType===sr?n.parentNode:n;return Ld(b),Fo(),g}else{for(var T;T=n.lastChild;)n.removeChild(T);if(typeof l=="function"){var D=l;l=function(){var B=qm(A);D.call(B)}}var A=yD(n,gs,null,!1,!1,"",BD);n._reactRootContainer=A,Lp(A.current,n);var U=n.nodeType===sr?n.parentNode:n;return Ld(U),Fo(function(){Of(r,A,o,l)}),A}}function WU(n,r){n!==null&&typeof n!="function"&&c("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",r,n)}function Km(n,r,o,l,d){VD(o),WU(d===void 0?null:d,"render");var p=o._reactRootContainer,g;if(!p)g=HU(o,r,n,d,l);else{if(g=p,typeof d=="function"){var b=d;d=function(){var T=qm(g);b.call(T)}}Of(r,g,n,d)}return qm(g)}var UD=!1;function YU(n){{UD||(UD=!0,c("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 r=UU.current;if(r!==null&&r.stateNode!==null){var o=r.stateNode._warnedAboutRefsInRender;o||c("%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.",Bt(r.type)||"A component"),r.stateNode._warnedAboutRefsInRender=!0}}return n==null?null:n.nodeType===ga?n:AU(n,"findDOMNode")}function qU(n,r,o){if(c("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"),!Mf(r))throw new Error("Target container is not a DOM element.");{var l=qd(r)&&r._reactRootContainer===void 0;l&&c("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 Km(null,n,r,!0,o)}function GU(n,r,o){if(c("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"),!Mf(r))throw new Error("Target container is not a DOM element.");{var l=qd(r)&&r._reactRootContainer===void 0;l&&c("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 Km(null,n,r,!1,o)}function XU(n,r,o,l){if(c("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"),!Mf(o))throw new Error("Target container is not a DOM element.");if(n==null||!BL(n))throw new Error("parentComponent must be a valid React Component");return Km(n,r,o,!1,l)}var HD=!1;function KU(n){if(HD||(HD=!0,c("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")),!Mf(n))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var r=qd(n)&&n._reactRootContainer===void 0;r&&c("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(n._reactRootContainer){{var o=Gx(n),l=o&&!ms(o);l&&c("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return Fo(function(){Km(null,null,n,!1,function(){n._reactRootContainer=null,F1(n)})}),!0}else{{var d=Gx(n),p=!!(d&&ms(d)),g=n.nodeType===ga&&Mf(n.parentNode)&&!!n.parentNode._reactRootContainer;p&&c("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",g?"You may have accidentally passed in a React root node instead of its container.":"Instead, have the parent component update its state and rerender in order to remove this component.")}return!1}}Y5(OU),G5(MU),X5(NU),K5(mi),Q5(U5),(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")&&c("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"),OL(Zz),PL(Ex,BB,Fo);function QU(n,r){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Xm(r))throw new Error("Target container is not a DOM element.");return _U(n,r,null,o)}function ZU(n,r,o,l){return XU(n,r,o,l)}var Xx={usingClientEntryPoint:!1,Events:[ms,_c,$p,nE,rE,Ex]};function JU(n,r){return Xx.usingClientEntryPoint||c('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),IU(n,r)}function e3(n,r,o){return Xx.usingClientEntryPoint||c('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),BU(n,r,o)}function t3(n){return Qk()&&c("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."),Fo(n)}var n3=FU({findFiberByHostInstance:ml,bundleType:1,version:Bx,rendererPackageName:"react-dom"});if(!n3&&ut&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var WD=window.location.protocol;/^(https?|file):$/.test(WD)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(WD==="file:"?`
204
- You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}Fa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Xx,Fa.createPortal=QU,Fa.createRoot=JU,Fa.findDOMNode=YU,Fa.flushSync=t3,Fa.hydrate=qU,Fa.hydrateRoot=e3,Fa.render=GU,Fa.unmountComponentAtNode=KU,Fa.unstable_batchedUpdates=Ex,Fa.unstable_renderSubtreeIntoContainer=ZU,Fa.version=Bx,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})();vM.exports=Fa;var $s=vM.exports,Kx=$s;{var Zm=Kx.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;GS.createRoot=function(e,t){Zm.usingClientEntryPoint=!0;try{return Kx.createRoot(e,t)}finally{Zm.usingClientEntryPoint=!1}},GS.hydrateRoot=function(e,t,a){Zm.usingClientEntryPoint=!0;try{return Kx.hydrateRoot(e,t,a)}finally{Zm.usingClientEntryPoint=!1}}}var l3=Object.create,bM=Object.defineProperty,c3=Object.getOwnPropertyDescriptor,u3=Object.getOwnPropertyNames,d3=Object.getPrototypeOf,f3=Object.prototype.hasOwnProperty,Kw=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),h3=(e,t,a,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of u3(t))!f3.call(e,s)&&s!==a&&bM(e,s,{get:()=>t[s],enumerable:!(i=c3(t,s))||i.enumerable});return e},p3=(e,t,a)=>(a=e!=null?l3(d3(e)):{},h3(t||!e||!e.__esModule?bM(a,"default",{value:e,enumerable:!0}):a,e)),m3=Kw(e=>{var t=e&&e.__awaiter||function(i,s,u,c){function f(h){return h instanceof u?h:new u(function(m){m(h)})}return new(u||(u=Promise))(function(h,m){function v(S){try{x(c.next(S))}catch(R){m(R)}}function y(S){try{x(c.throw(S))}catch(R){m(R)}}function x(S){S.done?h(S.value):f(S.value).then(v,y)}x((c=c.apply(i,s||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.Client=void 0;var a=class{constructor(i,s){this.write=i,this.requests={},this.id=0,this.mtu=65535,s&&s.mtu&&(this.mtu=s.mtu)}destroy(){this.requests=null,this.write=null}messageReceived(i){let s=!!(i.err||i.ack||i.fin),u=i.ack||i.err||i.sig||i.fin,c=this.requests[u],f;if(c&&typeof c.cb=="function"){let h;i.fin?c.cb.call(c.context,null,null,!0):c.canceled?console.log("This request is canceled. Not calling the callback."):(h=i.err?i.data:null,f=c.cb.call(c.context,h,i.data,s))}return s&&delete this.requests[u],f}requestAsync(i,s){return t(this,void 0,void 0,function*(){return new Promise((u,c)=>{this.request(i,s,(f,h)=>{if(f)return c(h);u(h)})})})}request(i,s,u){this.id++;let c={op:i};return Array.isArray(s)&&(c.args=s),u&&(c.id=this.id,this.requests[c.id]={cb:u,context:{id:c.id,cancel:()=>{setTimeout((f=>()=>{this.requests[f]&&console.log("rpc-client.js: timeout, the request has not been removed while it was canceled",f,this.requests[f])})(c.id),1500),this.requests[c.id].canceled=!0,this.write({end:c.id})},emit:f=>this.write({sig:c.id,data:f})}}),this.write(c),c.id||null}send(i,s){this.write({push:i,data:s})}end(i){this.write({end:i})}};e.Client=a}),v3=Kw(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Server=void 0;var t=console.log,a=class{constructor(i){this.modules={},this.methods={},this.requests={},this.clientIdCounter=0,this.requestId=0,this.invokeId=0,i&&this.insertMethods(i)}destroy(){for(let i in this.requests){for(let s in this.requests[i])typeof this.requests[i][s].end=="function"&&this.requests[i][s].end();delete this.requests[i]}}insertMethods(i){this.addMethods("",i)}addMethods(i,s){let u=i?i+".":"";for(let c in s)if(c!=="_"&&c.substring(0,1)!=="_"&&s["_"+c])if(typeof s[c]=="function"){let f=s["_"+c].name||c;s["_"+c].fullname=u+f;try{this.modules[u+f]=s["_"+c],this.methods[u+f]=s[c]}catch(h){console.log("Kaboom! ",h)}}else typeof s[c]=="object"&&this.addMethods(u+c,s[c])}listMethods(i,s,u){let c={};function f(m,v){let y={};for(let x in m)v[x]||(y[x]=m[x]);return y}let h={fullname:!0};for(let m in this.modules)c[m]=f(this.modules[m],h);u(null,c)}clientOffline(i){for(let s in this.requests[i])typeof this.requests[i][s].end=="function"&&this.requests[i][s].end(),delete this.requests[i][s]}closeAll(){for(let i in this.requests)for(let s in this.requests[i])typeof this.requests[i][s].end=="function"&&this.requests[i][s].end(),delete this.requests[i][s]}parse(i,s,u,c){if(typeof c=="number")try{if(i.push){this.requests[c]&&this.requests[c][i.push]&&this.invokeRaw(i,s,this.requests[c][i.push].context,c);return}if(i.sig){this.requests[c]&&this.requests[c][i.sig]&&this.invokeRaw(i,s,this.requests[c][i.sig].context,c);return}if(i.end){let f=i.end;if(this.requests[c]&&this.requests[c][f]){typeof this.requests[c][f].end=="function"&&this.requests[c][f].end(),s({fin:f}),delete this.requests[c][f];return}if(!this.requests[c][f])return;typeof this.requests[c][f].end=="function"&&this.requests[f].end();return}if(i.op==="methods"){this.listMethods(i.args,u,function(f,h){s({ack:i.id,data:h})});return}if(typeof this.methods[i.op]>"u"){s({err:i.id,data:{code:300,msg:"No method found: "+i.op}});return}this.invokeRaw(i,s,u,c)}catch(f){t("Dynamic RPC failed to execute ",i.op,f,f.stack);try{console.log("RPC caught error",f.stack),s({ack:i.id,err:i.id,data:"caught error in "+i.op+": "+f.toString(),debug:f.stack})}catch(h){s({err:i.id,data:"rpc",errmsg:h.toString()})}}}emit(i,s){for(let u in this.requests)if(this.requests[u]){for(let c in this.requests[u])if(this.requests[u][c].op===i){let{send:f}=this.requests[u][c];f({sig:c,data:s})}}}invokeRaw(i,s,u,c){if(++this.requestId,!this.requests[c])return console.log("Session not opened for client. Use Server.open() first");if(i.push){let f=this.requests[c][i.push];if(i.data===null){console.log("msg.data is null:",i);return}f.data(i.data);return}if(i.sig){let f=this.requests[c][i.sig];try{this.methods[f.op].call(this.requests[c][i.sig],i.data,{send:h=>{typeof f.end=="function"&&f.end(),this.requests[c][i.sig]&&delete this.requests[c][i.sig],s({ack:i.sig,data:h})},emit:h=>(this.requests[c][i.sig]||typeof f.end=="function"&&f.end(),s({sig:i.sig,data:h})),error:h=>{typeof f.end=="function"&&f.end(),delete this.requests[c][i.sig],s({err:i.sig,data:h})},close:h=>{typeof f.end=="function"&&f.end(),delete this.requests[c][i.sig],s({fin:i.sig})}},u)}catch(h){console.log("Calling the method in RPC failed:",i.op,i.args,h.stack),delete this.requests[c][i.sig],s({err:i.sig,data:{msg:"rpc failed during execution of "+i.op,code:578}})}return}if(typeof i.id>"u"){let f={};this.methods[i.op].call(f,{args:i.args},{send:()=>{t("Trying to send response to event ("+i.op+"). Dropping.")},emit:()=>{t("Trying to emit response to event ("+i.op+"). Dropping.")},error:()=>{t("Trying to respond with error to event ("+i.op+"). Dropping.")},close:()=>{t("Trying to close event ("+i.op+"). Dropping.")}},u)}else{let f={id:i.id,op:i.op,args:i.args,context:u,end:null,send:s};this.requests[c]||(this.requests[c]={}),this.requests[c][i.id]&&(console.log("Serious warning. There is already a request by that id, we'll kill it off! This session is likely not clean. clientId:",c,"msg",i,"stack trace:",new Error().stack),typeof this.requests[c][i.id].end=="function"&&this.requests[c][i.id].end(),delete this.requests[c][i.id],console.log("Removed old request by same id from same client...")),this.requests[c][i.id]=f;try{this.methods[i.op].call(f,{args:i.args},{send:h=>{typeof f.end=="function"&&f.end(),this.requests[c][i.id]&&delete this.requests[c][i.id],s({ack:i.id,data:h})},emit:h=>(this.requests[c][i.id]||typeof f.end=="function"&&f.end(),s({sig:i.id,data:h})),error:h=>{typeof f.end=="function"&&f.end(),delete this.requests[c][i.id],s({err:i.id,data:h})},close:h=>{typeof f.end=="function"&&f.end(),delete this.requests[c][i.id],s({fin:i.id})}},u)}catch(h){console.log("Calling the method in RPC failed:",i.op,i.args,h.stack),delete this.requests[c][i.id],s({err:i.id,data:{msg:"rpc failed during execution of "+i.op,code:578}})}}}close(i){for(let s in this.requests[i])typeof this.requests[i][s].end=="function"&&this.requests[i][s].end(),delete this.requests[i][s];delete this.requests[i]}open(){let i=++this.clientIdCounter;return this.requests[i]={},i}};e.Server=a}),g3=Kw(e=>{var t=e&&e.__createBinding||(Object.create?function(i,s,u,c){c===void 0&&(c=u),Object.defineProperty(i,c,{enumerable:!0,get:function(){return s[u]}})}:function(i,s,u,c){c===void 0&&(c=u),i[c]=s[u]}),a=e&&e.__exportStar||function(i,s){for(var u in i)u!=="default"&&!Object.prototype.hasOwnProperty.call(s,u)&&t(s,i,u)};Object.defineProperty(e,"__esModule",{value:!0}),a(m3(),e),a(v3(),e)}),y3=p3(g3(),1),Dt=class xM extends Error{constructor(t){super(),this.code=t.code,this.msg=t.msg,this.debug=t.debug,Object.setPrototypeOf(this,xM.prototype)}},b3=class{constructor(e){this.client=e}async get(e){try{return await this.client.requestAsync("v1.user.get",[e])}catch(t){throw new Dt(t)}}async current(){try{return await this.client.requestAsync("v1.user.current",[])}catch(e){throw new Dt(e)}}async list(){try{return await this.client.requestAsync("v1.user.list",[])}catch(e){throw new Dt(e)}}},x3=class{constructor(e){this.client=e}async list(e,t){try{return await this.client.requestAsync("v1.activity.kanban.list",[e,...t?[t]:[]])}catch(a){throw new Dt(a)}}async load(e){try{return await this.client.requestAsync("v1.activity.kanban.load",[e])}catch(t){throw new Dt(t)}}async updatePriority(e,t){try{return await this.client.requestAsync("v1.activity.kanban.updatePriority",[{activityId:e,priority:t}])}catch(a){throw new Dt(a)}}},S3=class{constructor(e){this.client=e,this.kanban=new x3(e)}async list(e,t,a){try{return(await this.client.requestAsync("v1.activity.list",[e,t,a])).activities}catch(i){throw new Dt(i)}}async get(e){try{return await this.client.requestAsync("v1.activity.get",[e])}catch(t){throw new Dt(t)}}async create(e,t,a){try{return await this.client.requestAsync("v1.activity.create",[e,t,...a?[a]:[]])}catch(i){throw new Dt(i)}}async update(e,t){try{return await this.client.requestAsync("v1.activity.update",[e,...t?[t]:[]])}catch(a){throw new Dt(a)}}async remove(e){try{return await this.client.requestAsync("v1.activity.remove",[e])}catch(t){throw new Dt(t)}}},w3=class{constructor(e){this.client=e,this.product={publishTemplate:this.publishTemplate.bind(this),isProductInstalled:this.isProductInstalled.bind(this),get:this.get.bind(this),install:this.install.bind(this),getManifest:this.getManifest.bind(this)}}async current(){try{return await this.client.requestAsync("v1.workspace.current",[])}catch(e){throw new Dt(e)}}async list(){try{return await this.client.requestAsync("v1.workspace.list",[])}catch(e){throw new Dt(e)}}async publishTemplate(e){try{return await this.client.requestAsync("v1.workspace.product.publishTemplate",[e])}catch(t){throw new Dt(t)}}async isProductInstalled(e){try{return await this.client.requestAsync("v1.workspace.product.isProductInstalled",[e])}catch(t){throw new Dt(t)}}async get(e){try{return await this.client.requestAsync("v1.workspace.product.get",[e])}catch(t){throw new Dt(t)}}async install(e){try{return await this.client.requestAsync("v1.workspace.product.install",[e])}catch(t){throw new Dt(t)}}async getManifest(e){try{return await this.client.requestAsync("v1.workspace.product.getManifest",[e])}catch(t){throw new Dt(t)}}},C3=class{constructor(e){this.client=e}async open(e,t){await this.client.requestAsync("v1.ui.activity.open",[e,...t?[t]:[]])}async create(e,t){return await this.client.requestAsync("v1.ui.activity.create",[e,...t?[t]:[]])}async editMultiple(e){return await this.client.requestAsync("v1.ui.activity.editMultiple",[e])}},T3=class{constructor(e){this.client=e}async open(e,t,a){await this.client.requestAsync("v1.ui.snackbar.open",[e,t,a])}},E3=class{constructor(e){this.client=e}async uploadFile(e,t,a){return await this.client.requestAsync("v1.ui.file.upload",[await this.toBase64(e),t,!!(a!=null&&a.isPublic)])}toBase64(e){return new Promise((t,a)=>{let i=new FileReader;i.readAsDataURL(e),i.onload=()=>t(i.result??""),i.onerror=a})}},R3=class{constructor(e){this.client=e,this.activity=new C3(e),this.snackbar=new T3(e),this.insight={create:async t=>{await e.requestAsync("v1.ui.insight.create",[t])},edit:async t=>{await e.requestAsync("v1.ui.insight.edit",[t])},delete:async t=>{await e.requestAsync("v1.ui.insight.delete",[t])},permission:async t=>{await e.requestAsync("v1.ui.insight.permission",[t])}},this.files=new E3(e)}},k3=class{constructor(e){this.client=e}async list(){try{return await this.client.requestAsync("v1.process.list",[])}catch(e){throw new Dt(e)}}async get(e){try{return await this.client.requestAsync("v1.process.get",[e])}catch(t){throw new Dt(t)}}async getFieldIdByName(e,t){var a,i;try{return(i=Object.values(((a=await this.get(e))==null?void 0:a.fields)||{}).find(s=>s.label.toLowerCase()===t))==null?void 0:i._id}catch(s){throw new Dt(s)}}},D3=["https://app.hailer.com","https://next.hailer.com","https://testapp.hailer.biz","https://app.hailer.biz","https://localhost:9443"],Wv="https://api.hailer.com",_3={"https://app.hailer.com":Wv,"https://next.hailer.com":Wv,"https://app.hailer.biz":"https://api.hailer.biz","https://testapp.hailer.biz":"https://testapi.hailer.biz","https://localhost:9443":"http://localhost:1337"},A3=class{constructor(e){this.options=e}async config(){let e="manifest.json",t=window.location.origin+window.location.pathname,a=t+e;t.endsWith("/index.html")&&(a=t.slice(0,-10)+e);let i=await(await fetch(a)).text(),s=JSON.parse(i).appId;return await(await fetch(this.options.publicBackendUrl+"/api/v3/app/public",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify([s])})).json()}},O3=class{constructor(e){this.options=e}async data(e){let t=await fetch(this.options.publicBackendUrl+"/api/v2/forms/process/get",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify([e])});if(!t.ok)throw new Dt(await t.json());return await t.json()}async submit(e,t){let a=await fetch(this.options.publicBackendUrl+"/api/v2/forms/activity/create",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify([e,t])});if(!a.ok)throw new Dt(await a.json());return await a.json()}},M3=class{constructor(e){this.options=e}async data(e){let t=await fetch(this.options.publicBackendUrl+"/api/v3/insight/public",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify([e])});if(!t.ok)throw new Dt(await t.json());return await t.json()}async dataAsObject(e){let t=(await this.data(e)).data,a=[];return t.rows.forEach(i=>{let s={};t.headers.forEach((u,c)=>{s[u]=i[c]}),a.push(s)}),a}},N3=class{constructor(e){this.options=e}async list(e,t){let a=await fetch(this.options.publicBackendUrl+"/api/v3/product/list",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify([e,t])});if(!a.ok)throw new Dt(await a.json());return await a.json()}async get(e){let t=await fetch(this.options.publicBackendUrl+"/api/v3/product/get",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify([e])});if(!t.ok)throw new Dt(await t.json());return await t.json()}},P3=class{constructor(e){this.insight=new M3(e),this.form=new O3(e),this.app=new A3(e),this.product=new N3(e)}},j3=class{constructor(e){this.client=e}async list(){try{return await this.client.requestAsync("v1.workflow.list",[])}catch(e){throw new Dt(e)}}async get(e){try{return await this.client.requestAsync("v1.workflow.get",[e])}catch(t){throw new Dt(t)}}},L3=class{constructor(e){this.client=e,this.config={update:async(t,a)=>{try{return await this.client.requestAsync("v1.app.config.update",[t,a])}catch(i){throw console.log("Errorasd ",i),new Dt(i)}}},this.product={isProductInstalled:this.isProductInstalled.bind(this),get:this.get.bind(this),install:this.install.bind(this),getInstalledVersion:this.getInstalledVersion.bind(this),getManifest:this.getManifest.bind(this)}}async isProductInstalled(e){try{return await this.client.requestAsync("v1.app.product.isProductInstalled",[e])}catch(t){throw new Dt(t)}}async get(e){try{return await this.client.requestAsync("v1.app.product.get",[e])}catch(t){throw new Dt(t)}}async install(e){try{return await this.client.requestAsync("v1.app.product.install",[e])}catch(t){throw new Dt(t)}}async getInstalledVersion(e){try{return await this.client.requestAsync("v1.app.product.getInstalledVersion",[e])}catch(t){throw new Dt(t)}}async getManifest(e){try{return await this.client.requestAsync("v1.app.product.getManifest",[e])}catch(t){throw new Dt(t)}}},$3=class{constructor(e){this.client=e}async data(e,t){try{return await this.client.requestAsync("v1.insight.data",[e,...t?[t]:[]])}catch(a){throw new Dt(a)}}async list(){try{return await this.client.requestAsync("v1.insight.list",[])}catch(e){throw new Dt(e)}}async update(e,t){try{return await this.client.requestAsync("v1.insight.update",[e,t])}catch(a){throw new Dt(a)}}},z3=class{constructor(e){this.client=e,this.map=async()=>{try{return await this.client.requestAsync("v1.permission.map",[])}catch(t){throw console.log("Failed to read permissions from Hailer, error:",t),new Dt(t)}}}},F3=class{constructor(e){this.client=e}async list(e,t){try{return await this.client.requestAsync("v1.product.list",[e,t])}catch(a){throw new Dt(a)}}async get(e){try{return await this.client.requestAsync("v1.product.get",[e])}catch(t){throw new Dt(t)}}async create(e){try{return await this.client.requestAsync("v1.product.create",[e])}catch(t){throw new Dt(t)}}async update(e,t){try{return await this.client.requestAsync("v1.product.update",[e,t])}catch(a){throw new Dt(a)}}async remove(e){try{return await this.client.requestAsync("v1.product.remove",[e])}catch(t){throw new Dt(t)}}async setPublic(e,t){try{return await this.client.requestAsync("v1.product.setPublic",[e,t])}catch(a){throw new Dt(a)}}},I3=class{constructor(e={}){this.options=e,this.outside=null;let t=e.allowedUrls??D3;this.apiVersion=e.apiVersion??1,this.subscribedSignals=e.subscribedSignals||[],this.client=new y3.Client(i=>{this.hostUrl&&parent.postMessage(JSON.stringify(i),this.hostUrl)}),this.user=new b3(this.client),this.app=new L3(this.client),this.activity=new S3(this.client),this.insight=new $3(this.client),this.workspace=new w3(this.client),this.process=new k3(this.client),this.workflow=new j3(this.client),this.permission=new z3(this.client),this.public=new P3(this.options),this.ui=new R3(this.client),this.product=new F3(this.client);let a=JSON.stringify({op:"register",args:[]});window.location===window.parent.location?(this.options.publicBackendUrl||(this.options.publicBackendUrl=Wv),this.public.app.config().then(i=>{var s,u;this.outside=!0,(u=(s=this.options).outside)==null||u.call(s,i)}).catch(i=>{var s,u;(u=(s=this.options).error)==null||u.call(s,i),console.error("Failed to get app configuration in Public App.",i)})):(t.forEach(i=>parent.postMessage(a,i)),this.timer=setTimeout(()=>{var i,s;this.outside=!0,(s=(i=this.options).outside)==null||s.call(i)},100)),this.createEventListener()}createEventListener(){window.addEventListener("message",async e=>{var a,i;let t=e.data;try{let s=JSON.parse(t);if(s.op==="register"){if(this.appId){console.error("App Id is already set...! Are you using hot-reload?");return}clearTimeout(this.timer),this.appId=s.data.appId,this.workspaceId=s.data.workspaceId,this.hostUrl=e.origin,this.options.publicBackendUrl||(this.options.publicBackendUrl=_3[this.hostUrl]||Wv),this.client.request("v1.ui.settings",[],(u,c,f)=>{var h,m;if(u){console.log("ui.settings error:",u,c);return}(m=(h=this.options).settings)==null||m.call(h,c)}),this.client.request("v1.config",[],(u,c,f)=>{var h,m;if(u){console.log("config error:",u,c);return}(m=(h=this.options).config)==null||m.call(h,c)}),this.subscribedSignals&&this.client.request("v1.signals",[this.subscribedSignals],(u,c,f)=>{var h,m;if(u){console.log("signals error:",u,c);return}c&&((m=(h=this.options).signals)==null||m.call(h,c))}),this.outside=!1,(i=(a=this.options).connected)==null||i.call(a);return}if(!this.appId)return;this.client.messageReceived(s)}catch{console.log("Dropped invalid JSON message")}})}info(){return{hostUrl:this.hostUrl,config:this.config,outside:this.outside,workspaceId:this.workspaceId}}async request(e,t){return await this.client.requestAsync(e,t)}};const V3=(e,t)=>{const[a,i]=w.useState(null),[s,u]=w.useState(null),[c,f]=w.useState(null),[h,m]=w.useState(!1),[v,y]=w.useState();return w.useEffect(()=>{y(window);const x=window;x.hailerApiInstance||(x.hailerApiInstance=new I3({...e!=null&&e.length?{allowedUrls:e}:{},connected:async()=>{x.hailerApiInstance&&m(!0)},outside:async()=>{m(!1)},config:S=>{u(S),x.hailerApiInstance&&i(x.hailerApiInstance.info())},settings:S=>f(S),signals:S=>{console.log("Signal:",S),t&&t(S)}}))},[e,t]),{inside:h,info:a,config:s,settings:c,hailer:v==null?void 0:v.hailerApiInstance}};function SM(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function B3(){return!!(globalThis!=null&&globalThis.document)}function wM(e){return e.parentElement&&wM(e.parentElement)?!0:e.hidden}function U3(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function H3(e){return!!e.getAttribute("disabled")||!!e.getAttribute("aria-disabled")}function W3(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const a={...e};for(const i of t)if(i!=null)for(const s in i)Object.prototype.hasOwnProperty.call(i,s)&&(s in a&&delete a[s],a[s]=i[s]);return a}const Ai=e=>e?"":void 0,Qx=e=>e?!0:void 0;function XS(e){return Array.isArray(e)}function fa(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!XS(e)}function Y3(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function q3(e){const t=parseFloat(e.toString()),a=e.toString().replace(String(t),"");return{unitless:!a,value:t,unit:a}}function KS(e){if(e==null)return e;const{unitless:t}=q3(e);return t||typeof e=="number"?`${e}px`:e}const CM=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,Qw=e=>Object.fromEntries(Object.entries(e).sort(CM));function qD(e){const t=Qw(e);return Object.assign(Object.values(t),t)}function G3(e){const t=Object.keys(Qw(e));return new Set(t)}function GD(e){if(!e)return e;e=KS(e)??e;const t=-.02;return typeof e=="number"?`${e+t}`:e.replace(/(\d+\.?\d*)/u,a=>`${parseFloat(a)+t}`)}function Vf(e,t){const a=["@media screen"];return e&&a.push("and",`(min-width: ${KS(e)})`),t&&a.push("and",`(max-width: ${KS(t)})`),a.join(" ")}function X3(e){if(!e)return null;e.base=e.base??"0px";const t=qD(e),a=Object.entries(e).sort(CM).map(([u,c],f,h)=>{let[,m]=h[f+1]??[];return m=parseFloat(m)>0?GD(m):void 0,{_minW:GD(c),breakpoint:u,minW:c,maxW:m,maxWQuery:Vf(null,m),minWQuery:Vf(c),minMaxQuery:Vf(c,m)}}),i=G3(e),s=Array.from(i.values());return{keys:i,normalized:t,isResponsive(u){const c=Object.keys(u);return c.length>0&&c.every(f=>i.has(f))},asObject:Qw(e),asArray:qD(e),details:a,get(u){return a.find(c=>c.breakpoint===u)},media:[null,...t.map(u=>Vf(u)).slice(1)],toArrayValue(u){if(!fa(u))throw new Error("toArrayValue: value must be an object");const c=s.map(f=>u[f]??null);for(;Y3(c)===null;)c.pop();return c},toObjectValue(u){if(!Array.isArray(u))throw new Error("toObjectValue: value must be an array");return u.reduce((c,f,h)=>{const m=s[h];return m!=null&&f!=null&&(c[m]=f),c},{})}}}function ca(...e){return function(a){e.some(i=>(i==null||i(a),a==null?void 0:a.defaultPrevented))}}function K3(e){return w.Children.toArray(e).filter(t=>w.isValidElement(t))}function TM(e){const t=Object.assign({},e);for(let a in t)t[a]===void 0&&delete t[a];return t}function Q3(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function pa(e={}){const{name:t,strict:a=!0,hookName:i="useContext",providerName:s="Provider",errorMessage:u,defaultValue:c}=e,f=w.createContext(c);f.displayName=t;function h(){var v;const m=w.useContext(f);if(!m&&a){const y=new Error(u??Q3(i,s));throw y.name="ContextError",(v=Error.captureStackTrace)==null||v.call(Error,y,h),y}return m}return[f.Provider,h,f]}const qt=(...e)=>e.filter(Boolean).join(" "),Z3=e=>e.hasAttribute("tabindex");function J3(e){if(!SM(e)||wM(e)||H3(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const i={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in i?i[t]():U3(e)?!0:Z3(e)}const e4=["input:not(:disabled):not([disabled])","select:not(:disabled):not([disabled])","textarea:not(:disabled):not([disabled])","embed","iframe","object","a[href]","area[href]","button:not(:disabled):not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"],t4=e4.join(),n4=e=>e.offsetWidth>0&&e.offsetHeight>0;function r4(e){const t=Array.from(e.querySelectorAll(t4));return t.unshift(e),t.filter(a=>J3(a)&&n4(a))}function a4(e,t,a,i){const s=typeof t=="string"?t.split("."):[t];for(i=0;i<s.length&&e;i+=1)e=e[s[i]];return e===void 0?a:e}const i4=e=>{const t=new WeakMap;return(i,s,u,c)=>{if(typeof i>"u")return e(i,s,u);t.has(i)||t.set(i,new Map);const f=t.get(i);if(f.has(s))return f.get(s);const h=e(i,s,u,c);return f.set(s,h),h}},EM=i4(a4),o4=e=>e.default||e;function Zw(e,t=[]){const a=Object.assign({},e);for(const i of t)i in a&&delete a[i];return a}function RM(e,t){const a={};for(const i of t)i in e&&(a[i]=e[i]);return a}function s4(e,t){return Array.isArray(e)?e.map(a=>a===null?null:t(a)):fa(e)?Object.keys(e).reduce((a,i)=>(a[i]=t(e[i]),a),{}):e!=null?t(e):null}const l4=e=>typeof e=="function";function ii(e,...t){return l4(e)?e(...t):e}function c4(e){const t=e.ownerDocument.defaultView||window,{overflow:a,overflowX:i,overflowY:s}=t.getComputedStyle(e);return/auto|scroll|overlay|hidden/.test(a+s+i)}function u4(e){return e.localName==="html"?e:e.assignedSlot||e.parentElement||e.ownerDocument.documentElement}function kM(e){return["html","body","#document"].includes(e.localName)?e.ownerDocument.body:SM(e)&&c4(e)?e:kM(u4(e))}function d4(e,t){const a={},i={};for(const[s,u]of Object.entries(e))t.includes(s)?a[s]=u:i[s]=u;return[a,i]}function f4(e,...t){const a=Object.getOwnPropertyDescriptors(e),i=Object.keys(a),s=c=>{const f={};for(let h=0;h<c.length;h++){const m=c[h];a[m]&&(Object.defineProperty(f,m,a[m]),delete a[m])}return f},u=c=>s(Array.isArray(c)?c:i.filter(c));return t.map(u).concat(s(i))}function XD(e,t,a={}){const{stop:i,getKey:s}=a;function u(c,f=[]){if(fa(c)||Array.isArray(c)){const h={};for(const[m,v]of Object.entries(c)){const y=(s==null?void 0:s(m))??m,x=[...f,y];if(i!=null&&i(c,x))return t(c,f);h[y]=u(v,x)}return h}return t(c,f)}return u(e)}const jh=e=>{const{condition:t,message:a}=e;t&&console.warn(a)};var Yv={exports:{}};Yv.exports;(function(e,t){var a=200,i="__lodash_hash_undefined__",s=800,u=16,c=9007199254740991,f="[object Arguments]",h="[object Array]",m="[object AsyncFunction]",v="[object Boolean]",y="[object Date]",x="[object Error]",S="[object Function]",R="[object GeneratorFunction]",E="[object Map]",k="[object Number]",O="[object Null]",_="[object Object]",N="[object Proxy]",$="[object RegExp]",L="[object Set]",I="[object String]",F="[object Undefined]",Q="[object WeakMap]",le="[object ArrayBuffer]",re="[object DataView]",de="[object Float32Array]",Ke="[object Float64Array]",q="[object Int8Array]",ue="[object Int16Array]",Ee="[object Int32Array]",we="[object Uint8Array]",oe="[object Uint8ClampedArray]",K="[object Uint16Array]",Y="[object Uint32Array]",G=/[\\^$.*+?()[\]{}|]/g,ve=/^\[object .+?Constructor\]$/,te=/^(?:0|[1-9]\d*)$/,pe={};pe[de]=pe[Ke]=pe[q]=pe[ue]=pe[Ee]=pe[we]=pe[oe]=pe[K]=pe[Y]=!0,pe[f]=pe[h]=pe[le]=pe[v]=pe[re]=pe[y]=pe[x]=pe[S]=pe[E]=pe[k]=pe[_]=pe[$]=pe[L]=pe[I]=pe[Q]=!1;var Me=typeof Qm=="object"&&Qm&&Qm.Object===Object&&Qm,Ne=typeof self=="object"&&self&&self.Object===Object&&self,Pe=Me||Ne||Function("return this")(),ht=t&&!t.nodeType&&t,mt=ht&&!0&&e&&!e.nodeType&&e,gt=mt&&mt.exports===ht,it=gt&&Me.process,jt=function(){try{var P=mt&&mt.require&&mt.require("util").types;return P||it&&it.binding&&it.binding("util")}catch{}}(),be=jt&&jt.isTypedArray;function ut(P,V,ae){switch(ae.length){case 0:return P.call(V);case 1:return P.call(V,ae[0]);case 2:return P.call(V,ae[0],ae[1]);case 3:return P.call(V,ae[0],ae[1],ae[2])}return P.apply(V,ae)}function Et(P,V){for(var ae=-1,Ie=Array(P);++ae<P;)Ie[ae]=V(ae);return Ie}function Nt(P){return function(V){return P(V)}}function Pt(P,V){return P==null?void 0:P[V]}function Ot(P,V){return function(ae){return P(V(ae))}}var cn=Array.prototype,en=Function.prototype,vt=Object.prototype,on=Pe["__core-js_shared__"],un=en.toString,$e=vt.hasOwnProperty,St=function(){var P=/[^.]+$/.exec(on&&on.keys&&on.keys.IE_PROTO||"");return P?"Symbol(src)_1."+P:""}(),yt=vt.toString,_t=un.call(Object),Ge=RegExp("^"+un.call($e).replace(G,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),tt=gt?Pe.Buffer:void 0,Ft=Pe.Symbol,At=Pe.Uint8Array,xe=tt?tt.allocUnsafe:void 0,_e=Ot(Object.getPrototypeOf,Object),Oe=Object.create,Qe=vt.propertyIsEnumerable,We=cn.splice,ot=Ft?Ft.toStringTag:void 0,Ue=function(){try{var P=ji(Object,"defineProperty");return P({},"",{}),P}catch{}}(),Vt=tt?tt.isBuffer:void 0,kt=Math.max,Cn=Date.now,Ct=ji(Pe,"Map"),Ze=ji(Object,"create"),Kt=function(){function P(){}return function(V){if(!Gn(V))return{};if(Oe)return Oe(V);P.prototype=V;var ae=new P;return P.prototype=void 0,ae}}();function Gt(P){var V=-1,ae=P==null?0:P.length;for(this.clear();++V<ae;){var Ie=P[V];this.set(Ie[0],Ie[1])}}function ir(){this.__data__=Ze?Ze(null):{},this.size=0}function In(P){var V=this.has(P)&&delete this.__data__[P];return this.size-=V?1:0,V}function Bn(P){var V=this.__data__;if(Ze){var ae=V[P];return ae===i?void 0:ae}return $e.call(V,P)?V[P]:void 0}function Un(P){var V=this.__data__;return Ze?V[P]!==void 0:$e.call(V,P)}function dr(P,V){var ae=this.__data__;return this.size+=this.has(P)?0:1,ae[P]=Ze&&V===void 0?i:V,this}Gt.prototype.clear=ir,Gt.prototype.delete=In,Gt.prototype.get=Bn,Gt.prototype.has=Un,Gt.prototype.set=dr;function Lt(P){var V=-1,ae=P==null?0:P.length;for(this.clear();++V<ae;){var Ie=P[V];this.set(Ie[0],Ie[1])}}function Jn(){this.__data__=[],this.size=0}function Pn(P){var V=this.__data__,ae=fr(V,P);if(ae<0)return!1;var Ie=V.length-1;return ae==Ie?V.pop():We.call(V,ae,1),--this.size,!0}function jn(P){var V=this.__data__,ae=fr(V,P);return ae<0?void 0:V[ae][1]}function er(P){return fr(this.__data__,P)>-1}function z(P,V){var ae=this.__data__,Ie=fr(ae,P);return Ie<0?(++this.size,ae.push([P,V])):ae[Ie][1]=V,this}Lt.prototype.clear=Jn,Lt.prototype.delete=Pn,Lt.prototype.get=jn,Lt.prototype.has=er,Lt.prototype.set=z;function ye(P){var V=-1,ae=P==null?0:P.length;for(this.clear();++V<ae;){var Ie=P[V];this.set(Ie[0],Ie[1])}}function ke(){this.size=0,this.__data__={hash:new Gt,map:new(Ct||Lt),string:new Gt}}function M(P){var V=Aa(this,P).delete(P);return this.size-=V?1:0,V}function ce(P){return Aa(this,P).get(P)}function me(P){return Aa(this,P).has(P)}function Re(P,V){var ae=Aa(this,P),Ie=ae.size;return ae.set(P,V),this.size+=ae.size==Ie?0:1,this}ye.prototype.clear=ke,ye.prototype.delete=M,ye.prototype.get=ce,ye.prototype.has=me,ye.prototype.set=Re;function De(P){var V=this.__data__=new Lt(P);this.size=V.size}function at(){this.__data__=new Lt,this.size=0}function je(P){var V=this.__data__,ae=V.delete(P);return this.size=V.size,ae}function qe(P){return this.__data__.get(P)}function tn(P){return this.__data__.has(P)}function Qt(P,V){var ae=this.__data__;if(ae instanceof Lt){var Ie=ae.__data__;if(!Ct||Ie.length<a-1)return Ie.push([P,V]),this.size=++ae.size,this;ae=this.__data__=new ye(Ie)}return ae.set(P,V),this.size=ae.size,this}De.prototype.clear=at,De.prototype.delete=je,De.prototype.get=qe,De.prototype.has=tn,De.prototype.set=Qt;function nn(P,V){var ae=Wa(P),Ie=!ae&&di(P),$t=!ae&&!Ie&&On(P),dn=!ae&&!Ie&&!$t&&go(P),Tn=ae||Ie||$t||dn,C=Tn?Et(P.length,String):[],j=C.length;for(var ee in P)(V||$e.call(P,ee))&&!(Tn&&(ee=="length"||$t&&(ee=="offset"||ee=="parent")||dn&&(ee=="buffer"||ee=="byteLength"||ee=="byteOffset")||ns(ee,j)))&&C.push(ee);return C}function Zt(P,V,ae){(ae!==void 0&&!tr(P[V],ae)||ae===void 0&&!(V in P))&&Vn(P,V,ae)}function Vr(P,V,ae){var Ie=P[V];(!($e.call(P,V)&&tr(Ie,ae))||ae===void 0&&!(V in P))&&Vn(P,V,ae)}function fr(P,V){for(var ae=P.length;ae--;)if(tr(P[ae][0],V))return ae;return-1}function Vn(P,V,ae){V=="__proto__"&&Ue?Ue(P,V,{configurable:!0,enumerable:!0,value:ae,writable:!0}):P[V]=ae}var ta=Pi();function Rt(P){return P==null?P===void 0?F:O:ot&&ot in Object(P)?Zs(P):rc(P)}function Ha(P){return Ur(P)&&Rt(P)==f}function Ni(P){if(!Gn(P)||nc(P))return!1;var V=os(P)?Ge:ve;return V.test(ac(P))}function Ws(P){return Ur(P)&&Br(P.length)&&!!pe[Rt(P)]}function Ys(P){if(!Gn(P))return as(P);var V=rs(P),ae=[];for(var Ie in P)Ie=="constructor"&&(V||!$e.call(P,Ie))||ae.push(Ie);return ae}function ts(P,V,ae,Ie,$t){P!==V&&ta(V,function(dn,Tn){if($t||($t=new De),Gn(dn))qs(P,V,Tn,ae,ts,Ie,$t);else{var C=Ie?Ie(vo(P,Tn),dn,Tn+"",P,V,$t):void 0;C===void 0&&(C=dn),Zt(P,Tn,C)}},el)}function qs(P,V,ae,Ie,$t,dn,Tn){var C=vo(P,ae),j=vo(V,ae),ee=Tn.get(j);if(ee){Zt(P,ae,ee);return}var se=dn?dn(C,j,ae+"",P,V,Tn):void 0,Te=se===void 0;if(Te){var et=Wa(j),He=!et&&On(j),dt=!et&&!He&&go(j);se=j,et||He||dt?Wa(C)?se=C:or(C)?se=Qs(C):He?(Te=!1,se=Ks(j,!0)):dt?(Te=!1,se=Zu(j,!0)):se=[]:ed(j)||di(j)?(se=C,di(C)?se=yo(C):(!Gn(C)||os(C))&&(se=tc(j))):Te=!1}Te&&(Tn.set(j,se),$t(se,j,Ie,dn,Tn),Tn.delete(j)),Zt(P,ae,se)}function Gs(P,V){return Js(Bt(P,V,tl),P+"")}var Xs=Ue?function(P,V){return Ue(P,"toString",{configurable:!0,enumerable:!1,value:ic(V),writable:!0})}:tl;function Ks(P,V){if(V)return P.slice();var ae=P.length,Ie=xe?xe(ae):new P.constructor(ae);return P.copy(Ie),Ie}function ec(P){var V=new P.constructor(P.byteLength);return new At(V).set(new At(P)),V}function Zu(P,V){var ae=V?ec(P.buffer):P.buffer;return new P.constructor(ae,P.byteOffset,P.length)}function Qs(P,V){var ae=-1,Ie=P.length;for(V||(V=Array(Ie));++ae<Ie;)V[ae]=P[ae];return V}function mo(P,V,ae,Ie){var $t=!ae;ae||(ae={});for(var dn=-1,Tn=V.length;++dn<Tn;){var C=V[dn],j=Ie?Ie(ae[C],P[C],C,ae,P):void 0;j===void 0&&(j=P[C]),$t?Vn(ae,C,j):Vr(ae,C,j)}return ae}function va(P){return Gs(function(V,ae){var Ie=-1,$t=ae.length,dn=$t>1?ae[$t-1]:void 0,Tn=$t>2?ae[2]:void 0;for(dn=P.length>3&&typeof dn=="function"?($t--,dn):void 0,Tn&&Ju(ae[0],ae[1],Tn)&&(dn=$t<3?void 0:dn,$t=1),V=Object(V);++Ie<$t;){var C=ae[Ie];C&&P(V,C,Ie,dn)}return V})}function Pi(P){return function(V,ae,Ie){for(var $t=-1,dn=Object(V),Tn=Ie(V),C=Tn.length;C--;){var j=Tn[P?C:++$t];if(ae(dn[j],j,dn)===!1)break}return V}}function Aa(P,V){var ae=P.__data__;return Li(V)?ae[typeof V=="string"?"string":"hash"]:ae.map}function ji(P,V){var ae=Pt(P,V);return Ni(ae)?ae:void 0}function Zs(P){var V=$e.call(P,ot),ae=P[ot];try{P[ot]=void 0;var Ie=!0}catch{}var $t=yt.call(P);return Ie&&(V?P[ot]=ae:delete P[ot]),$t}function tc(P){return typeof P.constructor=="function"&&!rs(P)?Kt(_e(P)):{}}function ns(P,V){var ae=typeof P;return V=V??c,!!V&&(ae=="number"||ae!="symbol"&&te.test(P))&&P>-1&&P%1==0&&P<V}function Ju(P,V,ae){if(!Gn(ae))return!1;var Ie=typeof V;return(Ie=="number"?is(ae)&&ns(V,ae.length):Ie=="string"&&V in ae)?tr(ae[V],P):!1}function Li(P){var V=typeof P;return V=="string"||V=="number"||V=="symbol"||V=="boolean"?P!=="__proto__":P===null}function nc(P){return!!St&&St in P}function rs(P){var V=P&&P.constructor,ae=typeof V=="function"&&V.prototype||vt;return P===ae}function as(P){var V=[];if(P!=null)for(var ae in Object(P))V.push(ae);return V}function rc(P){return yt.call(P)}function Bt(P,V,ae){return V=kt(V===void 0?P.length-1:V,0),function(){for(var Ie=arguments,$t=-1,dn=kt(Ie.length-V,0),Tn=Array(dn);++$t<dn;)Tn[$t]=Ie[V+$t];$t=-1;for(var C=Array(V+1);++$t<V;)C[$t]=Ie[$t];return C[V]=ae(Tn),ut(P,this,C)}}function vo(P,V){if(!(V==="constructor"&&typeof P[V]=="function")&&V!="__proto__")return P[V]}var Js=Tt(Xs);function Tt(P){var V=0,ae=0;return function(){var Ie=Cn(),$t=u-(Ie-ae);if(ae=Ie,$t>0){if(++V>=s)return arguments[0]}else V=0;return P.apply(void 0,arguments)}}function ac(P){if(P!=null){try{return un.call(P)}catch{}try{return P+""}catch{}}return""}function tr(P,V){return P===V||P!==P&&V!==V}var di=Ha(function(){return arguments}())?Ha:function(P){return Ur(P)&&$e.call(P,"callee")&&!Qe.call(P,"callee")},Wa=Array.isArray;function is(P){return P!=null&&Br(P.length)&&!os(P)}function or(P){return Ur(P)&&is(P)}var On=Vt||fi;function os(P){if(!Gn(P))return!1;var V=Rt(P);return V==S||V==R||V==m||V==N}function Br(P){return typeof P=="number"&&P>-1&&P%1==0&&P<=c}function Gn(P){var V=typeof P;return P!=null&&(V=="object"||V=="function")}function Ur(P){return P!=null&&typeof P=="object"}function ed(P){if(!Ur(P)||Rt(P)!=_)return!1;var V=_e(P);if(V===null)return!0;var ae=$e.call(V,"constructor")&&V.constructor;return typeof ae=="function"&&ae instanceof ae&&un.call(ae)==_t}var go=be?Nt(be):Ws;function yo(P){return mo(P,el(P))}function el(P){return is(P)?nn(P,!0):Ys(P)}var $i=va(function(P,V,ae,Ie){ts(P,V,ae,Ie)});function ic(P){return function(){return P}}function tl(P){return P}function fi(){return!1}e.exports=$i})(Yv,Yv.exports);var h4=Yv.exports;const oi=mg(h4);function $l(e,t=[]){const a=w.useRef(e);return w.useEffect(()=>{a.current=e}),w.useCallback((...i)=>{var s;return(s=a.current)==null?void 0:s.call(a,...i)},t)}function Zx(e,t,a,i){const s=$l(a);return w.useEffect(()=>{const u=typeof e=="function"?e():e??document;if(!(!a||!u))return u.addEventListener(t,s,i),()=>{u.removeEventListener(t,s,i)}},[t,e,i,s,a]),()=>{const u=typeof e=="function"?e():e??document;u==null||u.removeEventListener(t,s,i)}}function p4(e){const{value:t,defaultValue:a,onChange:i,shouldUpdate:s=(x,S)=>x!==S}=e,u=$l(i),c=$l(s),[f,h]=w.useState(a),m=t!==void 0,v=m?t:f,y=$l(x=>{const R=typeof x=="function"?x(v):x;c(v,R)&&(m||h(R),u(R))},[m,u,v,c]);return[v,y]}function qv(e={}){const{onClose:t,onOpen:a,isOpen:i,id:s}=e,u=$l(a),c=$l(t),[f,h]=w.useState(e.defaultIsOpen||!1),m=i!==void 0?i:f,v=i!==void 0,y=w.useId(),x=s??`disclosure-${y}`,S=w.useCallback(()=>{v||h(!1),c==null||c()},[v,c]),R=w.useCallback(()=>{v||h(!0),u==null||u()},[v,u]),E=w.useCallback(()=>{m?S():R()},[m,R,S]);function k(_={}){return{..._,"aria-expanded":m,"aria-controls":x,onClick(N){var $;($=_.onClick)==null||$.call(_,N),E()}}}function O(_={}){return{..._,hidden:!m,id:x}}return{isOpen:m,onOpen:R,onClose:S,onToggle:E,isControlled:v,getButtonProps:k,getDisclosureProps:O}}const QS=globalThis!=null&&globalThis.document?w.useLayoutEffect:w.useEffect,KD=(e,t)=>{const a=w.useRef(!1),i=w.useRef(!1);w.useEffect(()=>{if(a.current&&i.current)return e();i.current=!0},t),w.useEffect(()=>(a.current=!0,()=>{a.current=!1}),[])};function m4(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function fo(...e){return t=>{e.forEach(a=>{m4(a,t)})}}function v4(...e){return w.useMemo(()=>fo(...e),e)}function g4(e){const t=w.useRef(void 0);return w.useEffect(()=>{t.current=e},[e]),t.current}function y4(e,t){const a=$l(e);w.useEffect(()=>{if(t==null)return;let i=null;return i=window.setTimeout(()=>{a()},t),()=>{i&&window.clearTimeout(i)}},[t,a])}const Sr={open:(e,t)=>`${e}[data-open], ${e}[open], ${e}[data-state=open] ${t}`,closed:(e,t)=>`${e}[data-closed], ${e}[data-state=closed] ${t}`,hover:(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,focus:(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,focusVisible:(e,t)=>`${e}:focus-visible ${t}`,focusWithin:(e,t)=>`${e}:focus-within ${t}`,active:(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,disabled:(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,invalid:(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,checked:(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,indeterminate:(e,t)=>`${e}:indeterminate ${t}, ${e}[aria-checked=mixed] ${t}, ${e}[data-indeterminate] ${t}`,readOnly:(e,t)=>`${e}:read-only ${t}, ${e}[readonly] ${t}, ${e}[data-read-only] ${t}`,expanded:(e,t)=>`${e}:read-only ${t}, ${e}[aria-expanded=true] ${t}, ${e}[data-expanded] ${t}`,placeholderShown:(e,t)=>`${e}:placeholder-shown ${t}`},Qi=e=>DM(t=>e(t,"&"),"[role=group]","[data-group]",".group"),Bo=e=>DM(t=>e(t,"~ &"),"[data-peer]",".peer"),DM=(e,...t)=>t.map(e).join(", "),Su={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within, &[data-focus-within]",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty, &[data-empty]",_expanded:"&[aria-expanded=true], &[data-expanded], &[data-state=expanded]",_checked:"&[aria-checked=true], &[data-checked], &[data-state=checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate], &[data-state=indeterminate]",_groupOpen:Qi(Sr.open),_groupClosed:Qi(Sr.closed),_groupHover:Qi(Sr.hover),_peerHover:Bo(Sr.hover),_groupFocus:Qi(Sr.focus),_peerFocus:Bo(Sr.focus),_groupFocusVisible:Qi(Sr.focusVisible),_peerFocusVisible:Bo(Sr.focusVisible),_groupActive:Qi(Sr.active),_peerActive:Bo(Sr.active),_groupDisabled:Qi(Sr.disabled),_peerDisabled:Bo(Sr.disabled),_groupInvalid:Qi(Sr.invalid),_peerInvalid:Bo(Sr.invalid),_groupChecked:Qi(Sr.checked),_peerChecked:Bo(Sr.checked),_groupFocusWithin:Qi(Sr.focusWithin),_peerFocusWithin:Bo(Sr.focusWithin),_peerPlaceholderShown:Bo(Sr.placeholderShown),_placeholder:"&::placeholder, &[data-placeholder]",_placeholderShown:"&:placeholder-shown, &[data-placeholder-shown]",_fullScreen:"&:fullscreen, &[data-fullscreen]",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]",_open:"&[data-open], &[open], &[data-state=open]",_closed:"&[data-closed], &[data-state=closed]",_complete:"&[data-complete]",_incomplete:"&[data-incomplete]",_current:"&[data-current]"},_M=Object.keys(Su),b4=e=>/!(important)?$/.test(e),QD=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,x4=(e,t)=>a=>{const i=String(t),s=b4(i),u=QD(i),c=e?`${e}.${u}`:u;let f=fa(a.__cssMap)&&c in a.__cssMap?a.__cssMap[c].varRef:t;return f=QD(f),s?`${f} !important`:f};function Jw(e){const{scale:t,transform:a,compose:i}=e;return(u,c)=>{const f=x4(t,u)(c);let h=(a==null?void 0:a(f,c))??f;return i&&(h=i(h,c)),h}}const Jm=(...e)=>t=>e.reduce((a,i)=>i(a),t);function Ja(e,t){return a=>{const i={property:a,scale:e};return i.transform=Jw({scale:e,transform:t}),i}}const S4=({rtl:e,ltr:t})=>a=>a.direction==="rtl"?e:t;function w4(e){const{property:t,scale:a,transform:i}=e;return{scale:a,property:S4(t),transform:a?Jw({scale:a,compose:i}):i}}const AM=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];function C4(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...AM].join(" ")}function T4(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...AM].join(" ")}const E4={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},R4={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};function k4(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}const D4={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},ZS={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},_4=new Set(Object.values(ZS)),JS=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),A4=e=>e.trim();function O4(e,t){if(e==null||JS.has(e))return e;if(!(ew(e)||JS.has(e)))return`url('${e}')`;const s=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),u=s==null?void 0:s[1],c=s==null?void 0:s[2];if(!u||!c)return e;const f=u.includes("-gradient")?u:`${u}-gradient`,[h,...m]=c.split(",").map(A4).filter(Boolean);if((m==null?void 0:m.length)===0)return e;const v=h in ZS?ZS[h]:h;m.unshift(v);const y=m.map(x=>{if(_4.has(x))return x;const S=x.indexOf(" "),[R,E]=S!==-1?[x.substr(0,S),x.substr(S+1)]:[x],k=ew(E)?E:E&&E.split(" "),O=`colors.${R}`,_=O in t.__cssMap?t.__cssMap[O].varRef:R;return k?[_,...Array.isArray(k)?k:[k]].join(" "):_});return`${f}(${y.join(", ")})`}const ew=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),M4=(e,t)=>O4(e,t??{});function N4(e){return/^var\(--.+\)$/.test(e)}const P4=e=>{const t=parseFloat(e.toString()),a=e.toString().replace(String(t),"");return{unitless:!a,value:t,unit:a}},Zi=e=>t=>`${e}(${t})`,Jt={filter(e){return e!=="auto"?e:E4},backdropFilter(e){return e!=="auto"?e:R4},ring(e){return k4(Jt.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?C4():e==="auto-gpu"?T4():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=P4(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const a={left:"right",right:"left"};return t.direction==="rtl"?a[e]:e},degree(e){if(N4(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:M4,blur:Zi("blur"),opacity:Zi("opacity"),brightness:Zi("brightness"),contrast:Zi("contrast"),dropShadow:Zi("drop-shadow"),grayscale:Zi("grayscale"),hueRotate:e=>Zi("hue-rotate")(Jt.degree(e)),invert:Zi("invert"),saturate:Zi("saturate"),sepia:Zi("sepia"),bgImage(e){return e==null||ew(e)||JS.has(e)?e:`url(${e})`},outline(e){const t=String(e)==="0"||String(e)==="none";return e!==null&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){const{space:t,divide:a}=D4[e]??{},i={flexDirection:e};return t&&(i[t]=1),a&&(i[a]=1),i}},W={borderWidths:Ja("borderWidths"),borderStyles:Ja("borderStyles"),colors:Ja("colors"),borders:Ja("borders"),gradients:Ja("gradients",Jt.gradient),radii:Ja("radii",Jt.px),space:Ja("space",Jm(Jt.vh,Jt.px)),spaceT:Ja("space",Jm(Jt.vh,Jt.px)),degreeT(e){return{property:e,transform:Jt.degree}},prop(e,t,a){return{property:e,scale:t,...t&&{transform:Jw({scale:t,transform:a})}}},propT(e,t){return{property:e,transform:t}},sizes:Ja("sizes",Jm(Jt.vh,Jt.px)),sizesT:Ja("sizes",Jm(Jt.vh,Jt.fraction)),shadows:Ja("shadows"),logical:w4,blur:Ja("blur",Jt.blur)},xv={background:W.colors("background"),backgroundColor:W.colors("backgroundColor"),backgroundImage:W.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:Jt.bgClip},bgSize:W.prop("backgroundSize"),bgPosition:W.prop("backgroundPosition"),bg:W.colors("background"),bgColor:W.colors("backgroundColor"),bgPos:W.prop("backgroundPosition"),bgRepeat:W.prop("backgroundRepeat"),bgAttachment:W.prop("backgroundAttachment"),bgGradient:W.gradients("backgroundImage"),bgClip:{transform:Jt.bgClip}};Object.assign(xv,{bgImage:xv.backgroundImage,bgImg:xv.backgroundImage});const pn={border:W.borders("border"),borderWidth:W.borderWidths("borderWidth"),borderStyle:W.borderStyles("borderStyle"),borderColor:W.colors("borderColor"),borderRadius:W.radii("borderRadius"),borderTop:W.borders("borderTop"),borderBlockStart:W.borders("borderBlockStart"),borderTopLeftRadius:W.radii("borderTopLeftRadius"),borderStartStartRadius:W.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:W.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:W.radii("borderTopRightRadius"),borderStartEndRadius:W.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:W.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:W.borders("borderRight"),borderInlineEnd:W.borders("borderInlineEnd"),borderBottom:W.borders("borderBottom"),borderBlockEnd:W.borders("borderBlockEnd"),borderBottomLeftRadius:W.radii("borderBottomLeftRadius"),borderBottomRightRadius:W.radii("borderBottomRightRadius"),borderLeft:W.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:W.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:W.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:W.borders(["borderLeft","borderRight"]),borderInline:W.borders("borderInline"),borderY:W.borders(["borderTop","borderBottom"]),borderBlock:W.borders("borderBlock"),borderTopWidth:W.borderWidths("borderTopWidth"),borderBlockStartWidth:W.borderWidths("borderBlockStartWidth"),borderTopColor:W.colors("borderTopColor"),borderBlockStartColor:W.colors("borderBlockStartColor"),borderTopStyle:W.borderStyles("borderTopStyle"),borderBlockStartStyle:W.borderStyles("borderBlockStartStyle"),borderBottomWidth:W.borderWidths("borderBottomWidth"),borderBlockEndWidth:W.borderWidths("borderBlockEndWidth"),borderBottomColor:W.colors("borderBottomColor"),borderBlockEndColor:W.colors("borderBlockEndColor"),borderBottomStyle:W.borderStyles("borderBottomStyle"),borderBlockEndStyle:W.borderStyles("borderBlockEndStyle"),borderLeftWidth:W.borderWidths("borderLeftWidth"),borderInlineStartWidth:W.borderWidths("borderInlineStartWidth"),borderLeftColor:W.colors("borderLeftColor"),borderInlineStartColor:W.colors("borderInlineStartColor"),borderLeftStyle:W.borderStyles("borderLeftStyle"),borderInlineStartStyle:W.borderStyles("borderInlineStartStyle"),borderRightWidth:W.borderWidths("borderRightWidth"),borderInlineEndWidth:W.borderWidths("borderInlineEndWidth"),borderRightColor:W.colors("borderRightColor"),borderInlineEndColor:W.colors("borderInlineEndColor"),borderRightStyle:W.borderStyles("borderRightStyle"),borderInlineEndStyle:W.borderStyles("borderInlineEndStyle"),borderTopRadius:W.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:W.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:W.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:W.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(pn,{rounded:pn.borderRadius,roundedTop:pn.borderTopRadius,roundedTopLeft:pn.borderTopLeftRadius,roundedTopRight:pn.borderTopRightRadius,roundedTopStart:pn.borderStartStartRadius,roundedTopEnd:pn.borderStartEndRadius,roundedBottom:pn.borderBottomRadius,roundedBottomLeft:pn.borderBottomLeftRadius,roundedBottomRight:pn.borderBottomRightRadius,roundedBottomStart:pn.borderEndStartRadius,roundedBottomEnd:pn.borderEndEndRadius,roundedLeft:pn.borderLeftRadius,roundedRight:pn.borderRightRadius,roundedStart:pn.borderInlineStartRadius,roundedEnd:pn.borderInlineEndRadius,borderStart:pn.borderInlineStart,borderEnd:pn.borderInlineEnd,borderTopStartRadius:pn.borderStartStartRadius,borderTopEndRadius:pn.borderStartEndRadius,borderBottomStartRadius:pn.borderEndStartRadius,borderBottomEndRadius:pn.borderEndEndRadius,borderStartRadius:pn.borderInlineStartRadius,borderEndRadius:pn.borderInlineEndRadius,borderStartWidth:pn.borderInlineStartWidth,borderEndWidth:pn.borderInlineEndWidth,borderStartColor:pn.borderInlineStartColor,borderEndColor:pn.borderInlineEndColor,borderStartStyle:pn.borderInlineStartStyle,borderEndStyle:pn.borderInlineEndStyle});const j4={color:W.colors("color"),textColor:W.colors("color"),fill:W.colors("fill"),stroke:W.colors("stroke"),accentColor:W.colors("accentColor"),textFillColor:W.colors("textFillColor")},Gv={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:Jt.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:W.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:W.space("gap"),rowGap:W.space("rowGap"),columnGap:W.space("columnGap")};Object.assign(Gv,{flexDir:Gv.flexDirection});const ti={width:W.sizesT("width"),inlineSize:W.sizesT("inlineSize"),height:W.sizes("height"),blockSize:W.sizes("blockSize"),boxSize:W.sizes(["width","height"]),minWidth:W.sizes("minWidth"),minInlineSize:W.sizes("minInlineSize"),minHeight:W.sizes("minHeight"),minBlockSize:W.sizes("minBlockSize"),maxWidth:W.sizes("maxWidth"),maxInlineSize:W.sizes("maxInlineSize"),maxHeight:W.sizes("maxHeight"),maxBlockSize:W.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var s,u;return{[`@media screen and (min-width: ${((u=(s=t.__breakpoints)==null?void 0:s.get(e))==null?void 0:u.minW)??e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var s,u;return{[`@media screen and (max-width: ${((u=(s=t.__breakpoints)==null?void 0:s.get(e))==null?void 0:u._minW)??e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:W.propT("float",Jt.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(ti,{w:ti.width,h:ti.height,minW:ti.minWidth,maxW:ti.maxWidth,minH:ti.minHeight,maxH:ti.maxHeight,overscroll:ti.overscrollBehavior,overscrollX:ti.overscrollBehaviorX,overscrollY:ti.overscrollBehaviorY});const L4={filter:{transform:Jt.filter},blur:W.blur("--chakra-blur"),brightness:W.propT("--chakra-brightness",Jt.brightness),contrast:W.propT("--chakra-contrast",Jt.contrast),hueRotate:W.propT("--chakra-hue-rotate",Jt.hueRotate),invert:W.propT("--chakra-invert",Jt.invert),saturate:W.propT("--chakra-saturate",Jt.saturate),dropShadow:W.propT("--chakra-drop-shadow",Jt.dropShadow),backdropFilter:{transform:Jt.backdropFilter},backdropBlur:W.blur("--chakra-backdrop-blur"),backdropBrightness:W.propT("--chakra-backdrop-brightness",Jt.brightness),backdropContrast:W.propT("--chakra-backdrop-contrast",Jt.contrast),backdropHueRotate:W.propT("--chakra-backdrop-hue-rotate",Jt.hueRotate),backdropInvert:W.propT("--chakra-backdrop-invert",Jt.invert),backdropSaturate:W.propT("--chakra-backdrop-saturate",Jt.saturate)},$4={ring:{transform:Jt.ring},ringColor:W.colors("--chakra-ring-color"),ringOffset:W.prop("--chakra-ring-offset-width"),ringOffsetColor:W.colors("--chakra-ring-offset-color"),ringInset:W.prop("--chakra-ring-inset")},z4={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:Jt.outline},outlineOffset:!0,outlineColor:W.colors("outlineColor")},OM={gridGap:W.space("gridGap"),gridColumnGap:W.space("gridColumnGap"),gridRowGap:W.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0};function F4(e,t,a,i){const s=typeof t=="string"?t.split("."):[t];for(i=0;i<s.length&&e;i+=1)e=e[s[i]];return e===void 0?a:e}const I4=e=>{const t=new WeakMap;return(i,s,u,c)=>{if(typeof i>"u")return e(i,s,u);t.has(i)||t.set(i,new Map);const f=t.get(i);if(f.has(s))return f.get(s);const h=e(i,s,u,c);return f.set(s,h),h}},V4=I4(F4),B4={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},U4={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},Jx=(e,t,a)=>{const i={},s=V4(e,t,{});for(const u in s)u in a&&a[u]!=null||(i[u]=s[u]);return i},H4={srOnly:{transform(e){return e===!0?B4:e==="focusable"?U4:{}}},layerStyle:{processResult:!0,transform:(e,t,a)=>Jx(t,`layerStyles.${e}`,a)},textStyle:{processResult:!0,transform:(e,t,a)=>Jx(t,`textStyles.${e}`,a)},apply:{processResult:!0,transform:(e,t,a)=>Jx(t,e,a)}},Jf={position:!0,pos:W.prop("position"),zIndex:W.prop("zIndex","zIndices"),inset:W.spaceT("inset"),insetX:W.spaceT(["left","right"]),insetInline:W.spaceT("insetInline"),insetY:W.spaceT(["top","bottom"]),insetBlock:W.spaceT("insetBlock"),top:W.spaceT("top"),insetBlockStart:W.spaceT("insetBlockStart"),bottom:W.spaceT("bottom"),insetBlockEnd:W.spaceT("insetBlockEnd"),left:W.spaceT("left"),insetInlineStart:W.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:W.spaceT("right"),insetInlineEnd:W.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Jf,{insetStart:Jf.insetInlineStart,insetEnd:Jf.insetInlineEnd});const tw={boxShadow:W.shadows("boxShadow"),mixBlendMode:!0,blendMode:W.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:W.prop("backgroundBlendMode"),opacity:!0};Object.assign(tw,{shadow:tw.boxShadow});const zn={margin:W.spaceT("margin"),marginTop:W.spaceT("marginTop"),marginBlockStart:W.spaceT("marginBlockStart"),marginRight:W.spaceT("marginRight"),marginInlineEnd:W.spaceT("marginInlineEnd"),marginBottom:W.spaceT("marginBottom"),marginBlockEnd:W.spaceT("marginBlockEnd"),marginLeft:W.spaceT("marginLeft"),marginInlineStart:W.spaceT("marginInlineStart"),marginX:W.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:W.spaceT("marginInline"),marginY:W.spaceT(["marginTop","marginBottom"]),marginBlock:W.spaceT("marginBlock"),padding:W.space("padding"),paddingTop:W.space("paddingTop"),paddingBlockStart:W.space("paddingBlockStart"),paddingRight:W.space("paddingRight"),paddingBottom:W.space("paddingBottom"),paddingBlockEnd:W.space("paddingBlockEnd"),paddingLeft:W.space("paddingLeft"),paddingInlineStart:W.space("paddingInlineStart"),paddingInlineEnd:W.space("paddingInlineEnd"),paddingX:W.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:W.space("paddingInline"),paddingY:W.space(["paddingTop","paddingBottom"]),paddingBlock:W.space("paddingBlock")};Object.assign(zn,{m:zn.margin,mt:zn.marginTop,mr:zn.marginRight,me:zn.marginInlineEnd,marginEnd:zn.marginInlineEnd,mb:zn.marginBottom,ml:zn.marginLeft,ms:zn.marginInlineStart,marginStart:zn.marginInlineStart,mx:zn.marginX,my:zn.marginY,p:zn.padding,pt:zn.paddingTop,py:zn.paddingY,px:zn.paddingX,pb:zn.paddingBottom,pl:zn.paddingLeft,ps:zn.paddingInlineStart,paddingStart:zn.paddingInlineStart,pr:zn.paddingRight,pe:zn.paddingInlineEnd,paddingEnd:zn.paddingInlineEnd});const W4={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:W.spaceT("scrollMargin"),scrollMarginTop:W.spaceT("scrollMarginTop"),scrollMarginBottom:W.spaceT("scrollMarginBottom"),scrollMarginLeft:W.spaceT("scrollMarginLeft"),scrollMarginRight:W.spaceT("scrollMarginRight"),scrollMarginX:W.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:W.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:W.spaceT("scrollPadding"),scrollPaddingTop:W.spaceT("scrollPaddingTop"),scrollPaddingBottom:W.spaceT("scrollPaddingBottom"),scrollPaddingLeft:W.spaceT("scrollPaddingLeft"),scrollPaddingRight:W.spaceT("scrollPaddingRight"),scrollPaddingX:W.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:W.spaceT(["scrollPaddingTop","scrollPaddingBottom"])},Y4={fontFamily:W.prop("fontFamily","fonts"),fontSize:W.prop("fontSize","fontSizes",Jt.px),fontWeight:W.prop("fontWeight","fontWeights"),lineHeight:W.prop("lineHeight","lineHeights"),letterSpacing:W.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(e===!0)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},q4={textDecorationColor:W.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:W.shadows("textShadow")},G4={clipPath:!0,transform:W.propT("transform",Jt.transform),transformOrigin:!0,translateX:W.spaceT("--chakra-translate-x"),translateY:W.spaceT("--chakra-translate-y"),skewX:W.degreeT("--chakra-skew-x"),skewY:W.degreeT("--chakra-skew-y"),scaleX:W.prop("--chakra-scale-x"),scaleY:W.prop("--chakra-scale-y"),scale:W.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:W.degreeT("--chakra-rotate")},X4={listStyleType:!0,listStylePosition:!0,listStylePos:W.prop("listStylePosition"),listStyleImage:!0,listStyleImg:W.prop("listStyleImage")},K4={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:W.prop("transitionDuration","transition.duration"),transitionProperty:W.prop("transitionProperty","transition.property"),transitionTimingFunction:W.prop("transitionTimingFunction","transition.easing")},eC=oi({},xv,pn,j4,Gv,ti,L4,$4,z4,OM,H4,Jf,tw,zn,W4,Y4,q4,G4,X4,K4),Q4=Object.assign({},zn,ti,Gv,OM,Jf),Z4=Object.keys(Q4),J4=[...Object.keys(eC),..._M],e6={...eC,...Su},t6=e=>e in e6,n6=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:a,toArrayValue:i,media:s}=t.__breakpoints,u={};for(const c in e){let f=ii(e[c],t);if(f==null)continue;if(f=fa(f)&&a(f)?i(f):f,!Array.isArray(f)){u[c]=f;continue}const h=f.slice(0,s.length).length;for(let m=0;m<h;m+=1){const v=s==null?void 0:s[m];if(!v){u[c]=f[m];continue}u[v]=u[v]||{},f[m]!=null&&(u[v][c]=f[m])}}return u};function r6(e){const t=[];let a="",i=!1;for(let s=0;s<e.length;s++){const u=e[s];u==="("?(i=!0,a+=u):u===")"?(i=!1,a+=u):u===","&&!i?(t.push(a),a=""):a+=u}return a=a.trim(),a&&t.push(a),t}function a6(e){return/^var\(--.+\)$/.test(e)}const i6=(e,t)=>e.startsWith("--")&&typeof t=="string"&&!a6(t),o6=(e,t)=>{if(t==null)return t;const a=c=>{var f,h;return(h=(f=e.__cssMap)==null?void 0:f[c])==null?void 0:h.varRef},i=c=>a(c)??c,[s,u]=r6(t);return t=a(s)??i(u)??i(t),t};function s6(e){const{configs:t={},pseudos:a={},theme:i}=e,s=(u,c=!1)=>{var v;const f=ii(u,i),h=n6(f)(i);let m={};for(let y in h){const x=h[y];let S=ii(x,i);y in a&&(y=a[y]),i6(y,S)&&(S=o6(i,S));let R=t[y];if(R===!0&&(R={property:y}),fa(S)){m[y]=m[y]??{},m[y]=oi({},m[y],s(S,!0));continue}let E=((v=R==null?void 0:R.transform)==null?void 0:v.call(R,S,i,f))??S;E=R!=null&&R.processResult?s(E,!0):E;const k=ii(R==null?void 0:R.property,i);if(!c&&(R!=null&&R.static)){const O=ii(R.static,i);m=oi({},m,O)}if(k&&Array.isArray(k)){for(const O of k)m[O]=E;continue}if(k){k==="&"&&fa(E)?m=oi({},m,E):m[k]=E;continue}if(fa(E)){m=oi({},m,E);continue}m[y]=E}return m};return s}const MM=e=>t=>s6({theme:t,pseudos:Su,configs:eC})(e);function Nn(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function l6(e,t,a){var i,s;return((s=(i=e.__cssMap)==null?void 0:i[`${t}.${a}`])==null?void 0:s.varRef)??a}function c6(e,t){if(Array.isArray(e))return e;if(fa(e))return t(e);if(e!=null)return[e]}function u6(e,t){for(let a=t+1;a<e.length;a++)if(e[a]!=null)return a;return-1}function d6(e){const t=e.__breakpoints;return function(i,s,u,c){var x,S;if(!t)return;const f={},h=c6(u,t.toArrayValue);if(!h)return f;const m=h.length,v=m===1,y=!!i.parts;for(let R=0;R<m;R++){const E=t.details[R],k=t.details[u6(h,R)],O=Vf(E.minW,k==null?void 0:k._minW),_=ii((x=i[s])==null?void 0:x[h[R]],c);if(_){if(y){(S=i.parts)==null||S.forEach(N=>{oi(f,{[N]:v?_[N]:{[O]:_[N]}})});continue}if(!y){v?oi(f,_):f[O]=_;continue}f[O]=_}}return f}}function f6(e){return t=>{const{variant:a,size:i,theme:s}=t,u=d6(s);return oi({},ii(e.baseStyle??{},t),u(e,"sizes",i,t),u(e,"variants",a,t))}}function ea(e){return Zw(e,["styleConfig","size","variant","colorScheme"])}function NM(e){return fa(e)&&e.reference?e.reference:String(e)}const vg=(e,...t)=>t.map(NM).join(` ${e} `).replace(/calc/g,""),ZD=(...e)=>`calc(${vg("+",...e)})`,JD=(...e)=>`calc(${vg("-",...e)})`,nw=(...e)=>`calc(${vg("*",...e)})`,e_=(...e)=>`calc(${vg("/",...e)})`,t_=e=>{const t=NM(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:nw(t,-1)},Uo=Object.assign(e=>({add:(...t)=>Uo(ZD(e,...t)),subtract:(...t)=>Uo(JD(e,...t)),multiply:(...t)=>Uo(nw(e,...t)),divide:(...t)=>Uo(e_(e,...t)),negate:()=>Uo(t_(e)),toString:()=>e.toString()}),{add:ZD,subtract:JD,multiply:nw,divide:e_,negate:t_});function h6(e,t="-"){return e.replace(/\s+/g,t)}function p6(e){const t=h6(e.toString());return v6(m6(t))}function m6(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function v6(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function g6(e,t=""){return[t,e].filter(Boolean).join("-")}function y6(e,t){return`var(${e}${t?`, ${t}`:""})`}function b6(e,t=""){return p6(`--${g6(e,t)}`)}function rt(e,t,a){const i=b6(e,a);return{variable:i,reference:y6(i,t)}}function x6(e,t){const a={};for(const i of t){if(Array.isArray(i)){const[s,u]=i;a[s]=rt(`${e}-${s}`,u);continue}a[i]=rt(`${e}-${i}`)}return a}const S6=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function w6(e){return RM(e,S6)}function C6(e){return e.semanticTokens}function T6(e){const{__cssMap:t,__cssVars:a,__breakpoints:i,...s}=e;return s}function E6(e){const t=w6(e),a=C6(e),i=u=>_M.includes(u)||u==="default",s={};return XD(t,(u,c)=>{u!=null&&(s[c.join(".")]={isSemantic:!1,value:u})}),XD(a,(u,c)=>{u!=null&&(s[c.join(".")]={isSemantic:!0,value:u})},{stop:u=>Object.keys(u).every(i)}),s}function n_(e,t){return rt(String(e).replace(/\./g,"-"),void 0,t)}function R6(e){var c;const t=E6(e),a=(c=e.config)==null?void 0:c.cssVarPrefix;let i={};const s={};function u(f,h){const v=[String(f).split(".")[0],h].join(".");if(!t[v])return h;const{reference:x}=n_(v,a);return x}for(const[f,h]of Object.entries(t)){const{isSemantic:m,value:v}=h,{variable:y,reference:x}=n_(f,a);if(!m){if(f.startsWith("space")){const R=f.split("."),[E,...k]=R,O=`${E}.-${k.join(".")}`,_=Uo.negate(v),N=Uo.negate(x);s[O]={value:_,var:y,varRef:N}}i[y]=v,s[f]={value:v,var:y,varRef:x};continue}const S=fa(v)?v:{default:v};i=oi(i,Object.entries(S).reduce((R,[E,k])=>{if(!k)return R;const O=u(f,`${k}`);if(E==="default")return R[y]=O,R;const _=(Su==null?void 0:Su[E])??E;return R[_]={[y]:O},R},{})),s[f]={value:x,var:y,varRef:x}}return{cssVars:i,cssMap:s}}function k6(e){const t=T6(e),{cssMap:a,cssVars:i}=R6(t);return Object.assign(t,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...i},__cssMap:a,__breakpoints:X3(t.breakpoints)}),t}function yn(e,t={}){let a=!1;function i(){if(!a){a=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function s(...v){i();for(const y of v)t[y]=h(y);return yn(e,t)}function u(...v){for(const y of v)y in t||(t[y]=h(y));return yn(e,t)}function c(){return Object.fromEntries(Object.entries(t).map(([y,x])=>[y,x.selector]))}function f(){return Object.fromEntries(Object.entries(t).map(([y,x])=>[y,x.className]))}function h(v){const S=`chakra-${(["container","root"].includes(v??"")?[e]:[e,v]).filter(Boolean).join("__")}`;return{className:S,selector:`.${S}`,toString:()=>v}}return{parts:s,toPart:h,extend:u,selectors:c,classnames:f,get keys(){return Object.keys(t)},__type:{}}}const D6=yn("accordion").parts("root","container","button","panel","icon"),_6=yn("alert").parts("title","description","container","icon","spinner"),A6=yn("avatar").parts("label","badge","container","excessLabel","group"),O6=yn("breadcrumb").parts("link","item","container","separator");yn("button").parts();const M6=yn("checkbox").parts("control","icon","container","label");yn("progress").parts("track","filledTrack","label");const N6=yn("drawer").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),P6=yn("editable").parts("preview","input","textarea"),j6=yn("form").parts("container","requiredIndicator","helperText"),L6=yn("formError").parts("text","icon"),$6=yn("input").parts("addon","field","element","group"),z6=yn("list").parts("container","item","icon"),F6=yn("menu").parts("button","list","item","groupTitle","icon","command","divider"),I6=yn("modal").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),V6=yn("numberinput").parts("root","field","stepperGroup","stepper");yn("pininput").parts("field");const B6=yn("popover").parts("content","header","body","footer","popper","arrow","closeButton"),U6=yn("progress").parts("label","filledTrack","track"),H6=yn("radio").parts("container","control","label"),W6=yn("select").parts("field","icon"),Y6=yn("slider").parts("container","track","thumb","filledTrack","mark"),q6=yn("stat").parts("container","label","helpText","number","icon"),G6=yn("switch").parts("container","track","thumb","label"),X6=yn("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),K6=yn("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),Q6=yn("tag").parts("container","label","closeButton"),Z6=yn("card").parts("container","header","body","footer");yn("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");const{definePartsStyle:J6,defineMultiStyleConfig:eH}=Nn(D6.keys),tH={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},nH={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},rH={pt:"2",px:"4",pb:"5"},aH={fontSize:"1.25em"},iH=J6({container:tH,button:nH,panel:rH,icon:aH}),oH=eH({baseStyle:iH});function jl(e,t,a){return Math.min(Math.max(e,a),t)}class sH extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var Bf=sH;function tC(e){if(typeof e!="string")throw new Bf(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=mH.test(e)?uH(e):e;const a=dH.exec(t);if(a){const c=Array.from(a).slice(1);return[...c.slice(0,3).map(f=>parseInt(mh(f,2),16)),parseInt(mh(c[3]||"f",2),16)/255]}const i=fH.exec(t);if(i){const c=Array.from(i).slice(1);return[...c.slice(0,3).map(f=>parseInt(f,16)),parseInt(c[3]||"ff",16)/255]}const s=hH.exec(t);if(s){const c=Array.from(s).slice(1);return[...c.slice(0,3).map(f=>parseInt(f,10)),parseFloat(c[3]||"1")]}const u=pH.exec(t);if(u){const[c,f,h,m]=Array.from(u).slice(1).map(parseFloat);if(jl(0,100,f)!==f)throw new Bf(e);if(jl(0,100,h)!==h)throw new Bf(e);return[...vH(c,f,h),Number.isNaN(m)?1:m]}throw new Bf(e)}function lH(e){let t=5381,a=e.length;for(;a;)t=t*33^e.charCodeAt(--a);return(t>>>0)%2341}const r_=e=>parseInt(e.replace(/_/g,""),36),cH="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{const a=r_(t.substring(0,3)),i=r_(t.substring(3)).toString(16);let s="";for(let u=0;u<6-i.length;u++)s+="0";return e[a]=`${s}${i}`,e},{});function uH(e){const t=e.toLowerCase().trim(),a=cH[lH(t)];if(!a)throw new Bf(e);return`#${a}`}const mh=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),dH=new RegExp(`^#${mh("([a-f0-9])",3)}([a-f0-9])?$`,"i"),fH=new RegExp(`^#${mh("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),hH=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${mh(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),pH=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,mH=/^[a-z]+$/i,a_=e=>Math.round(e*255),vH=(e,t,a)=>{let i=a/100;if(t===0)return[i,i,i].map(a_);const s=(e%360+360)%360/60,u=(1-Math.abs(2*i-1))*(t/100),c=u*(1-Math.abs(s%2-1));let f=0,h=0,m=0;s>=0&&s<1?(f=u,h=c):s>=1&&s<2?(f=c,h=u):s>=2&&s<3?(h=u,m=c):s>=3&&s<4?(h=c,m=u):s>=4&&s<5?(f=c,m=u):s>=5&&s<6&&(f=u,m=c);const v=i-u/2,y=f+v,x=h+v,S=m+v;return[y,x,S].map(a_)};function gH(e,t,a,i){return`rgba(${jl(0,255,e).toFixed()}, ${jl(0,255,t).toFixed()}, ${jl(0,255,a).toFixed()}, ${parseFloat(jl(0,1,i).toFixed(3))})`}function yH(e,t){const[a,i,s,u]=tC(e);return gH(a,i,s,u-t)}function bH(e){const[t,a,i,s]=tC(e);let u=c=>{const f=jl(0,255,c).toString(16);return f.length===1?`0${f}`:f};return`#${u(t)}${u(a)}${u(i)}${s<1?u(Math.round(s*255)):""}`}const xH=e=>Object.keys(e).length===0;function SH(e,t,a,i,s){for(t=t.split?t.split("."):t,i=0;i<t.length;i++)e=e?e[t[i]]:s;return e===s?a:e}const ua=(e,t,a)=>{const i=SH(e,`colors.${t}`,t);try{return bH(i),i}catch{return a??"#000000"}},wH=e=>{const[t,a,i]=tC(e);return(t*299+a*587+i*114)/1e3},CH=e=>t=>{const a=ua(t,e);return wH(a)<128?"dark":"light"},TH=e=>t=>CH(e)(t)==="dark",Ou=(e,t)=>a=>{const i=ua(a,e);return yH(i,1-t)};function i_(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient(
205
- 45deg,
206
- ${t} 25%,
207
- transparent 25%,
208
- transparent 50%,
209
- ${t} 50%,
210
- ${t} 75%,
211
- transparent 75%,
212
- transparent
213
- )`,backgroundSize:`${e} ${e}`}}const EH=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function RH(e){const t=EH();return!e||xH(e)?t:e.string&&e.colors?DH(e.string,e.colors):e.string&&!e.colors?kH(e.string):e.colors&&!e.string?_H(e.colors):t}function kH(e){let t=0;if(e.length===0)return t.toString();for(let i=0;i<e.length;i+=1)t=e.charCodeAt(i)+((t<<5)-t),t=t&t;let a="#";for(let i=0;i<3;i+=1){const s=t>>i*8&255;a+=`00${s.toString(16)}`.substr(-2)}return a}function DH(e,t){let a=0;if(e.length===0)return t[0];for(let i=0;i<e.length;i+=1)a=e.charCodeAt(i)+((a<<5)-a),a=a&a;return a=(a%t.length+t.length)%t.length,t[a]}function _H(e){return e[Math.floor(Math.random()*e.length)]}function lt(e,t){return a=>a.colorMode==="dark"?t:e}function nC(e){const{orientation:t,vertical:a,horizontal:i}=e;return t?t==="vertical"?a:i:{}}function PM(e){return fa(e)&&e.reference?e.reference:String(e)}const gg=(e,...t)=>t.map(PM).join(` ${e} `).replace(/calc/g,""),o_=(...e)=>`calc(${gg("+",...e)})`,s_=(...e)=>`calc(${gg("-",...e)})`,rw=(...e)=>`calc(${gg("*",...e)})`,l_=(...e)=>`calc(${gg("/",...e)})`,c_=e=>{const t=PM(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:rw(t,-1)},Ho=Object.assign(e=>({add:(...t)=>Ho(o_(e,...t)),subtract:(...t)=>Ho(s_(e,...t)),multiply:(...t)=>Ho(rw(e,...t)),divide:(...t)=>Ho(l_(e,...t)),negate:()=>Ho(c_(e)),toString:()=>e.toString()}),{add:o_,subtract:s_,multiply:rw,divide:l_,negate:c_});function AH(e){return!Number.isInteger(parseFloat(e.toString()))}function OH(e,t="-"){return e.replace(/\s+/g,t)}function jM(e){const t=OH(e.toString());return t.includes("\\.")?e:AH(e)?t.replace(".","\\."):e}function MH(e,t=""){return[t,jM(e)].filter(Boolean).join("-")}function NH(e,t){return`var(${jM(e)}${t?`, ${t}`:""})`}function PH(e,t=""){return`--${MH(e,t)}`}function qn(e,t){const a=PH(e,t==null?void 0:t.prefix);return{variable:a,reference:NH(a,jH(t==null?void 0:t.fallback))}}function jH(e){return typeof e=="string"?e:e==null?void 0:e.reference}const{definePartsStyle:Lh,defineMultiStyleConfig:LH}=Nn(_6.keys),Ia=rt("alert-fg"),Ko=rt("alert-bg"),$H=Lh({container:{bg:Ko.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:Ia.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:Ia.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function rC(e){const{theme:t,colorScheme:a}=e,i=Ou(`${a}.200`,.16)(t);return{light:`colors.${a}.100`,dark:i}}const zH=Lh(e=>{const{colorScheme:t}=e,a=rC(e);return{container:{[Ia.variable]:`colors.${t}.600`,[Ko.variable]:a.light,_dark:{[Ia.variable]:`colors.${t}.200`,[Ko.variable]:a.dark}}}}),FH=Lh(e=>{const{colorScheme:t}=e,a=rC(e);return{container:{[Ia.variable]:`colors.${t}.600`,[Ko.variable]:a.light,_dark:{[Ia.variable]:`colors.${t}.200`,[Ko.variable]:a.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:Ia.reference}}}),IH=Lh(e=>{const{colorScheme:t}=e,a=rC(e);return{container:{[Ia.variable]:`colors.${t}.600`,[Ko.variable]:a.light,_dark:{[Ia.variable]:`colors.${t}.200`,[Ko.variable]:a.dark},pt:"2",borderTopWidth:"4px",borderTopColor:Ia.reference}}}),VH=Lh(e=>{const{colorScheme:t}=e;return{container:{[Ia.variable]:"colors.white",[Ko.variable]:`colors.${t}.600`,_dark:{[Ia.variable]:"colors.gray.900",[Ko.variable]:`colors.${t}.200`},color:Ia.reference}}}),BH={subtle:zH,"left-accent":FH,"top-accent":IH,solid:VH},UH=LH({baseStyle:$H,variants:BH,defaultProps:{variant:"subtle",colorScheme:"blue"}}),LM={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},HH={max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch"},WH={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},$M={...LM,...HH,container:WH},YH=e=>typeof e=="function";function ha(e,...t){return YH(e)?e(...t):e}const{definePartsStyle:zM,defineMultiStyleConfig:qH}=Nn(A6.keys),wu=rt("avatar-border-color"),eh=rt("avatar-bg"),vh=rt("avatar-font-size"),Mu=rt("avatar-size"),GH={borderRadius:"full",border:"0.2em solid",borderColor:wu.reference,[wu.variable]:"white",_dark:{[wu.variable]:"colors.gray.800"}},XH={bg:eh.reference,fontSize:vh.reference,width:Mu.reference,height:Mu.reference,lineHeight:"1",[eh.variable]:"colors.gray.200",_dark:{[eh.variable]:"colors.whiteAlpha.400"}},KH=e=>{const{name:t,theme:a}=e,i=t?RH({string:t}):"colors.gray.400",s=TH(i)(a);let u="white";return s||(u="gray.800"),{bg:eh.reference,fontSize:vh.reference,color:u,borderColor:wu.reference,verticalAlign:"top",width:Mu.reference,height:Mu.reference,"&:not([data-loaded])":{[eh.variable]:i},[wu.variable]:"colors.white",_dark:{[wu.variable]:"colors.gray.800"}}},QH={fontSize:vh.reference,lineHeight:"1"},ZH=zM(e=>({badge:ha(GH,e),excessLabel:ha(XH,e),container:ha(KH,e),label:QH}));function Os(e){const t=e!=="100%"?$M[e]:void 0;return zM({container:{[Mu.variable]:t??e,[vh.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[Mu.variable]:t??e,[vh.variable]:`calc(${t??e} / 2.5)`}})}const JH={"2xs":Os(4),xs:Os(6),sm:Os(8),md:Os(12),lg:Os(16),xl:Os(24),"2xl":Os(32),full:Os("100%")},e9=qH({baseStyle:ZH,sizes:JH,defaultProps:{size:"md"}}),ar=x6("badge",["bg","color","shadow"]),t9={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:ar.bg.reference,color:ar.color.reference,boxShadow:ar.shadow.reference},n9=e=>{const{colorScheme:t,theme:a}=e,i=Ou(`${t}.500`,.6)(a);return{[ar.bg.variable]:`colors.${t}.500`,[ar.color.variable]:"colors.white",_dark:{[ar.bg.variable]:i,[ar.color.variable]:"colors.whiteAlpha.800"}}},r9=e=>{const{colorScheme:t,theme:a}=e,i=Ou(`${t}.200`,.16)(a);return{[ar.bg.variable]:`colors.${t}.100`,[ar.color.variable]:`colors.${t}.800`,_dark:{[ar.bg.variable]:i,[ar.color.variable]:`colors.${t}.200`}}},a9=e=>{const{colorScheme:t,theme:a}=e,i=Ou(`${t}.200`,.8)(a);return{[ar.color.variable]:`colors.${t}.500`,_dark:{[ar.color.variable]:i},[ar.shadow.variable]:`inset 0 0 0px 1px ${ar.color.reference}`}},i9={solid:n9,subtle:r9,outline:a9},th={baseStyle:t9,variants:i9,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:o9,definePartsStyle:s9}=Nn(O6.keys),eS=rt("breadcrumb-link-decor"),l9={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:eS.reference,[eS.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[eS.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},c9=s9({link:l9}),u9=o9({baseStyle:c9}),d9={lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},FM=e=>{const{colorScheme:t,theme:a}=e;if(t==="gray")return{color:lt("gray.800","whiteAlpha.900")(e),_hover:{bg:lt("gray.100","whiteAlpha.200")(e)},_active:{bg:lt("gray.200","whiteAlpha.300")(e)}};const i=Ou(`${t}.200`,.12)(a),s=Ou(`${t}.200`,.24)(a);return{color:lt(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:lt(`${t}.50`,i)(e)},_active:{bg:lt(`${t}.100`,s)(e)}}},f9=e=>{const{colorScheme:t}=e,a=lt("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?a:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...ha(FM,e)}},h9={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},p9=e=>{const{colorScheme:t}=e;if(t==="gray"){const f=lt("gray.100","whiteAlpha.200")(e);return{bg:f,color:lt("gray.800","whiteAlpha.900")(e),_hover:{bg:lt("gray.200","whiteAlpha.300")(e),_disabled:{bg:f}},_active:{bg:lt("gray.300","whiteAlpha.400")(e)}}}const{bg:a=`${t}.500`,color:i="white",hoverBg:s=`${t}.600`,activeBg:u=`${t}.700`}=h9[t]??{},c=lt(a,`${t}.200`)(e);return{bg:c,color:lt(i,"gray.800")(e),_hover:{bg:lt(s,`${t}.300`)(e),_disabled:{bg:c}},_active:{bg:lt(u,`${t}.400`)(e)}}},m9=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:lt(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:lt(`${t}.700`,`${t}.500`)(e)}}},v9={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},g9={ghost:FM,outline:f9,solid:p9,link:m9,unstyled:v9},y9={lg:{h:"12",minW:"12",fontSize:"lg",px:"6"},md:{h:"10",minW:"10",fontSize:"md",px:"4"},sm:{h:"8",minW:"8",fontSize:"sm",px:"3"},xs:{h:"6",minW:"6",fontSize:"xs",px:"2"}},b9={baseStyle:d9,variants:g9,sizes:y9,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:zl,defineMultiStyleConfig:x9}=Nn(Z6.keys),Xv=rt("card-bg"),qo=rt("card-padding"),IM=rt("card-shadow"),Sv=rt("card-radius"),VM=rt("card-border-width","0"),BM=rt("card-border-color"),S9=zl({container:{[Xv.variable]:"colors.chakra-body-bg",backgroundColor:Xv.reference,boxShadow:IM.reference,borderRadius:Sv.reference,color:"chakra-body-text",borderWidth:VM.reference,borderColor:BM.reference},body:{padding:qo.reference,flex:"1 1 0%"},header:{padding:qo.reference},footer:{padding:qo.reference}}),w9={sm:zl({container:{[Sv.variable]:"radii.base",[qo.variable]:"space.3"}}),md:zl({container:{[Sv.variable]:"radii.md",[qo.variable]:"space.5"}}),lg:zl({container:{[Sv.variable]:"radii.xl",[qo.variable]:"space.7"}})},C9={elevated:zl({container:{[IM.variable]:"shadows.base",_dark:{[Xv.variable]:"colors.gray.700"}}}),outline:zl({container:{[VM.variable]:"1px",[BM.variable]:"colors.chakra-border-color"}}),filled:zl({container:{[Xv.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[qo.variable]:0},header:{[qo.variable]:0},footer:{[qo.variable]:0}}},T9=x9({baseStyle:S9,variants:C9,sizes:w9,defaultProps:{variant:"elevated",size:"md"}}),{definePartsStyle:wv,defineMultiStyleConfig:E9}=Nn(M6.keys),nh=rt("checkbox-size"),R9=e=>{const{colorScheme:t}=e;return{w:nh.reference,h:nh.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:lt(`${t}.500`,`${t}.200`)(e),borderColor:lt(`${t}.500`,`${t}.200`)(e),color:lt("white","gray.900")(e),_hover:{bg:lt(`${t}.600`,`${t}.300`)(e),borderColor:lt(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:lt("gray.200","transparent")(e),bg:lt("gray.200","whiteAlpha.300")(e),color:lt("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:lt(`${t}.500`,`${t}.200`)(e),borderColor:lt(`${t}.500`,`${t}.200`)(e),color:lt("white","gray.900")(e)},_disabled:{bg:lt("gray.100","whiteAlpha.100")(e),borderColor:lt("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:lt("red.500","red.300")(e)}}},k9={_disabled:{cursor:"not-allowed"}},D9={userSelect:"none",_disabled:{opacity:.4}},_9={transitionProperty:"transform",transitionDuration:"normal"},A9=wv(e=>({icon:_9,container:k9,control:ha(R9,e),label:D9})),O9={sm:wv({control:{[nh.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:wv({control:{[nh.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:wv({control:{[nh.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},Ps=E9({baseStyle:A9,sizes:O9,defaultProps:{size:"md",colorScheme:"blue"}}),rh=qn("close-button-size"),Pf=qn("close-button-bg"),M9={w:[rh.reference],h:[rh.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[Pf.variable]:"colors.blackAlpha.100",_dark:{[Pf.variable]:"colors.whiteAlpha.100"}},_active:{[Pf.variable]:"colors.blackAlpha.200",_dark:{[Pf.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:Pf.reference},N9={lg:{[rh.variable]:"sizes.10",fontSize:"md"},md:{[rh.variable]:"sizes.8",fontSize:"xs"},sm:{[rh.variable]:"sizes.6",fontSize:"2xs"}},P9={baseStyle:M9,sizes:N9,defaultProps:{size:"md"}},{variants:j9,defaultProps:L9}=th,$9={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:ar.bg.reference,color:ar.color.reference,boxShadow:ar.shadow.reference},z9={baseStyle:$9,variants:j9,defaultProps:L9},F9={w:"100%",mx:"auto",maxW:"prose",px:"4"},I9={baseStyle:F9},V9={opacity:.6,borderColor:"inherit"},B9={borderStyle:"solid"},U9={borderStyle:"dashed"},H9={solid:B9,dashed:U9},W9={baseStyle:V9,variants:H9,defaultProps:{variant:"solid"}},{definePartsStyle:aw,defineMultiStyleConfig:Y9}=Nn(N6.keys),tS=rt("drawer-bg"),nS=rt("drawer-box-shadow");function eu(e){return aw(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}const q9={bg:"blackAlpha.600",zIndex:"modal"},G9={display:"flex",zIndex:"modal",justifyContent:"center"},X9=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[tS.variable]:"colors.white",[nS.variable]:"shadows.lg",_dark:{[tS.variable]:"colors.gray.700",[nS.variable]:"shadows.dark-lg"},bg:tS.reference,boxShadow:nS.reference}},K9={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},Q9={position:"absolute",top:"2",insetEnd:"3"},Z9={px:"6",py:"2",flex:"1",overflow:"auto"},J9={px:"6",py:"4"},eW=aw(e=>({overlay:q9,dialogContainer:G9,dialog:ha(X9,e),header:K9,closeButton:Q9,body:Z9,footer:J9})),tW={xs:eu("xs"),sm:eu("md"),md:eu("lg"),lg:eu("2xl"),xl:eu("4xl"),full:eu("full")},nW=Y9({baseStyle:eW,sizes:tW,defaultProps:{size:"xs"}}),{definePartsStyle:rW,defineMultiStyleConfig:aW}=Nn(P6.keys),iW={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},oW={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},sW={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},lW=rW({preview:iW,input:oW,textarea:sW}),cW=aW({baseStyle:lW}),{definePartsStyle:uW,defineMultiStyleConfig:dW}=Nn(j6.keys),Cu=rt("form-control-color"),fW={marginStart:"1",[Cu.variable]:"colors.red.500",_dark:{[Cu.variable]:"colors.red.300"},color:Cu.reference},hW={mt:"2",[Cu.variable]:"colors.gray.600",_dark:{[Cu.variable]:"colors.whiteAlpha.600"},color:Cu.reference,lineHeight:"normal",fontSize:"sm"},pW=uW({container:{width:"100%",position:"relative"},requiredIndicator:fW,helperText:hW}),mW=dW({baseStyle:pW}),{definePartsStyle:vW,defineMultiStyleConfig:gW}=Nn(L6.keys),Tu=rt("form-error-color"),yW={[Tu.variable]:"colors.red.500",_dark:{[Tu.variable]:"colors.red.300"},color:Tu.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},bW={marginEnd:"0.5em",[Tu.variable]:"colors.red.500",_dark:{[Tu.variable]:"colors.red.300"},color:Tu.reference},xW=vW({text:yW,icon:bW}),SW=gW({baseStyle:xW}),wW={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},CW={baseStyle:wW},TW={fontFamily:"heading",fontWeight:"bold"},EW={"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},RW={baseStyle:TW,sizes:EW,defaultProps:{size:"xl"}},{definePartsStyle:Yo,defineMultiStyleConfig:kW}=Nn($6.keys),cu=rt("input-height"),uu=rt("input-font-size"),du=rt("input-padding"),fu=rt("input-border-radius"),DW=Yo({addon:{height:cu.reference,fontSize:uu.reference,px:du.reference,borderRadius:fu.reference},field:{width:"100%",height:cu.reference,fontSize:uu.reference,px:du.reference,borderRadius:fu.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),Ms={lg:{[uu.variable]:"fontSizes.lg",[du.variable]:"space.4",[fu.variable]:"radii.md",[cu.variable]:"sizes.12"},md:{[uu.variable]:"fontSizes.md",[du.variable]:"space.4",[fu.variable]:"radii.md",[cu.variable]:"sizes.10"},sm:{[uu.variable]:"fontSizes.sm",[du.variable]:"space.3",[fu.variable]:"radii.sm",[cu.variable]:"sizes.8"},xs:{[uu.variable]:"fontSizes.xs",[du.variable]:"space.2",[fu.variable]:"radii.sm",[cu.variable]:"sizes.6"}},_W={lg:Yo({field:Ms.lg,group:Ms.lg}),md:Yo({field:Ms.md,group:Ms.md}),sm:Yo({field:Ms.sm,group:Ms.sm}),xs:Yo({field:Ms.xs,group:Ms.xs})};function aC(e){const{focusBorderColor:t,errorBorderColor:a}=e;return{focusBorderColor:t||lt("blue.500","blue.300")(e),errorBorderColor:a||lt("red.500","red.300")(e)}}const AW=Yo(e=>{const{theme:t}=e,{focusBorderColor:a,errorBorderColor:i}=aC(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:lt("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:ua(t,i),boxShadow:`0 0 0 1px ${ua(t,i)}`},_focusVisible:{zIndex:1,borderColor:ua(t,a),boxShadow:`0 0 0 1px ${ua(t,a)}`}},addon:{border:"1px solid",borderColor:lt("inherit","whiteAlpha.50")(e),bg:lt("gray.100","whiteAlpha.300")(e)}}}),OW=Yo(e=>{const{theme:t}=e,{focusBorderColor:a,errorBorderColor:i}=aC(e);return{field:{border:"2px solid",borderColor:"transparent",bg:lt("gray.100","whiteAlpha.50")(e),_hover:{bg:lt("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:ua(t,i)},_focusVisible:{bg:"transparent",borderColor:ua(t,a)}},addon:{border:"2px solid",borderColor:"transparent",bg:lt("gray.100","whiteAlpha.50")(e)}}}),MW=Yo(e=>{const{theme:t}=e,{focusBorderColor:a,errorBorderColor:i}=aC(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:ua(t,i),boxShadow:`0px 1px 0px 0px ${ua(t,i)}`},_focusVisible:{borderColor:ua(t,a),boxShadow:`0px 1px 0px 0px ${ua(t,a)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),NW=Yo({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),PW={outline:AW,filled:OW,flushed:MW,unstyled:NW},gn=kW({baseStyle:DW,sizes:_W,variants:PW,defaultProps:{size:"md",variant:"outline"}}),rS=rt("kbd-bg"),jW={[rS.variable]:"colors.gray.100",_dark:{[rS.variable]:"colors.whiteAlpha.100"},bg:rS.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},LW={baseStyle:jW},$W={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},zW={baseStyle:$W},{defineMultiStyleConfig:FW,definePartsStyle:IW}=Nn(z6.keys),VW={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},BW=IW({icon:VW}),UW=FW({baseStyle:BW}),{defineMultiStyleConfig:HW,definePartsStyle:WW}=Nn(F6.keys),eo=rt("menu-bg"),aS=rt("menu-shadow"),YW={[eo.variable]:"#fff",[aS.variable]:"shadows.sm",_dark:{[eo.variable]:"colors.gray.700",[aS.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:"dropdown",borderRadius:"md",borderWidth:"1px",bg:eo.reference,boxShadow:aS.reference},qW={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[eo.variable]:"colors.gray.100",_dark:{[eo.variable]:"colors.whiteAlpha.100"}},_active:{[eo.variable]:"colors.gray.200",_dark:{[eo.variable]:"colors.whiteAlpha.200"}},_expanded:{[eo.variable]:"colors.gray.100",_dark:{[eo.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:eo.reference},GW={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},XW={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},KW={opacity:.6},QW={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},ZW={transitionProperty:"common",transitionDuration:"normal"},JW=WW({button:ZW,list:YW,item:qW,groupTitle:GW,icon:XW,command:KW,divider:QW}),e8=HW({baseStyle:JW}),{defineMultiStyleConfig:t8,definePartsStyle:iw}=Nn(I6.keys),iS=rt("modal-bg"),oS=rt("modal-shadow"),n8={bg:"blackAlpha.600",zIndex:"modal"},r8=e=>{const{isCentered:t,scrollBehavior:a}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:a==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},a8=e=>{const{isCentered:t,scrollBehavior:a}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:a==="inside"?"calc(100% - 7.5rem)":void 0,[iS.variable]:"colors.white",[oS.variable]:"shadows.lg",_dark:{[iS.variable]:"colors.gray.700",[oS.variable]:"shadows.dark-lg"},bg:iS.reference,boxShadow:oS.reference}},i8={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},o8={position:"absolute",top:"2",insetEnd:"3"},s8=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},l8={px:"6",py:"4"},c8=iw(e=>({overlay:n8,dialogContainer:ha(r8,e),dialog:ha(a8,e),header:i8,closeButton:o8,body:ha(s8,e),footer:l8}));function Di(e){return iw(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}const u8={xs:Di("xs"),sm:Di("sm"),md:Di("md"),lg:Di("lg"),xl:Di("xl"),"2xl":Di("2xl"),"3xl":Di("3xl"),"4xl":Di("4xl"),"5xl":Di("5xl"),"6xl":Di("6xl"),full:Di("full")},d8=t8({baseStyle:c8,sizes:u8,defaultProps:{size:"md"}}),UM={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},{defineMultiStyleConfig:f8,definePartsStyle:HM}=Nn(V6.keys),iC=qn("number-input-stepper-width"),WM=qn("number-input-input-padding"),h8=Ho(iC).add("0.5rem").toString(),sS=qn("number-input-bg"),lS=qn("number-input-color"),cS=qn("number-input-border-color"),p8={[iC.variable]:"sizes.6",[WM.variable]:h8},m8=e=>{var t;return((t=ha(gn.baseStyle,e))==null?void 0:t.field)??{}},v8={width:iC.reference},g8={borderStart:"1px solid",borderStartColor:cS.reference,color:lS.reference,bg:sS.reference,[lS.variable]:"colors.chakra-body-text",[cS.variable]:"colors.chakra-border-color",_dark:{[lS.variable]:"colors.whiteAlpha.800",[cS.variable]:"colors.whiteAlpha.300"},_active:{[sS.variable]:"colors.gray.200",_dark:{[sS.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},y8=HM(e=>({root:p8,field:ha(m8,e)??{},stepperGroup:v8,stepper:g8}));function ev(e){var u,c;const t=(u=gn.sizes)==null?void 0:u[e],a={lg:"md",md:"md",sm:"sm",xs:"sm"},i=((c=t.field)==null?void 0:c.fontSize)??"md",s=UM.fontSizes[i];return HM({field:{...t.field,paddingInlineEnd:WM.reference,verticalAlign:"top"},stepper:{fontSize:Ho(s).multiply(.75).toString(),_first:{borderTopEndRadius:a[e]},_last:{borderBottomEndRadius:a[e],mt:"-1px",borderTopWidth:1}}})}const b8={xs:ev("xs"),sm:ev("sm"),md:ev("md"),lg:ev("lg")},x8=f8({baseStyle:y8,sizes:b8,variants:gn.variants,defaultProps:gn.defaultProps});var QO;const S8={...(QO=gn.baseStyle)==null?void 0:QO.field,textAlign:"center"},w8={lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}};var ZO;const C8={outline:e=>{var t,a;return((a=ha((t=gn.variants)==null?void 0:t.outline,e))==null?void 0:a.field)??{}},flushed:e=>{var t,a;return((a=ha((t=gn.variants)==null?void 0:t.flushed,e))==null?void 0:a.field)??{}},filled:e=>{var t,a;return((a=ha((t=gn.variants)==null?void 0:t.filled,e))==null?void 0:a.field)??{}},unstyled:((ZO=gn.variants)==null?void 0:ZO.unstyled.field)??{}},T8={baseStyle:S8,sizes:w8,variants:C8,defaultProps:gn.defaultProps},{defineMultiStyleConfig:E8,definePartsStyle:R8}=Nn(B6.keys),tv=qn("popper-bg"),k8=qn("popper-arrow-bg"),u_=qn("popper-arrow-shadow-color"),D8={zIndex:"popover"},_8={[tv.variable]:"colors.white",bg:tv.reference,[k8.variable]:tv.reference,[u_.variable]:"colors.gray.200",_dark:{[tv.variable]:"colors.gray.700",[u_.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},A8={px:3,py:2,borderBottomWidth:"1px"},O8={px:3,py:2},M8={px:3,py:2,borderTopWidth:"1px"},N8={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},P8=R8({popper:D8,content:_8,header:A8,body:O8,footer:M8,closeButton:N8}),j8=E8({baseStyle:P8}),{defineMultiStyleConfig:L8,definePartsStyle:Uf}=Nn(U6.keys),$8=e=>{const{colorScheme:t,theme:a,isIndeterminate:i,hasStripe:s}=e,u=lt(i_(),i_("1rem","rgba(0,0,0,0.1)"))(e),c=lt(`${t}.500`,`${t}.200`)(e),f=`linear-gradient(
214
- to right,
215
- transparent 0%,
216
- ${ua(a,c)} 50%,
217
- transparent 100%
218
- )`;return{...!i&&s&&u,...i?{bgImage:f}:{bgColor:c}}},z8={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},F8=e=>({bg:lt("gray.100","whiteAlpha.300")(e)}),I8=e=>({transitionProperty:"common",transitionDuration:"slow",...$8(e)}),V8=Uf(e=>({label:z8,filledTrack:I8(e),track:F8(e)})),B8={xs:Uf({track:{h:"1"}}),sm:Uf({track:{h:"2"}}),md:Uf({track:{h:"3"}}),lg:Uf({track:{h:"4"}})},U8=L8({sizes:B8,baseStyle:V8,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:H8,definePartsStyle:Cv}=Nn(H6.keys),W8=e=>{var a;const t=(a=ha(Ps.baseStyle,e))==null?void 0:a.control;return{...t,borderRadius:"full",_checked:{...t==null?void 0:t._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},Y8=Cv(e=>{var t,a;return{label:(t=Ps.baseStyle)==null?void 0:t.call(Ps,e).label,container:(a=Ps.baseStyle)==null?void 0:a.call(Ps,e).container,control:W8(e)}}),q8={md:Cv({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:Cv({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:Cv({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},G8=H8({baseStyle:Y8,sizes:q8,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:X8,definePartsStyle:K8}=Nn(W6.keys),nv=rt("select-bg");var JO;const Q8={...(JO=gn.baseStyle)==null?void 0:JO.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:nv.reference,[nv.variable]:"colors.white",_dark:{[nv.variable]:"colors.gray.700"},"> option, > optgroup":{bg:nv.reference}},Z8={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},J8=K8({field:Q8,icon:Z8}),rv={paddingInlineEnd:"8"};var eM,tM,nM,rM,aM,iM,oM,sM;const e7={lg:{...(eM=gn.sizes)==null?void 0:eM.lg,field:{...(tM=gn.sizes)==null?void 0:tM.lg.field,...rv}},md:{...(nM=gn.sizes)==null?void 0:nM.md,field:{...(rM=gn.sizes)==null?void 0:rM.md.field,...rv}},sm:{...(aM=gn.sizes)==null?void 0:aM.sm,field:{...(iM=gn.sizes)==null?void 0:iM.sm.field,...rv}},xs:{...(oM=gn.sizes)==null?void 0:oM.xs,field:{...(sM=gn.sizes)==null?void 0:sM.xs.field,...rv},icon:{insetEnd:"1"}}},t7=X8({baseStyle:J8,sizes:e7,variants:gn.variants,defaultProps:gn.defaultProps}),uS=rt("skeleton-start-color"),dS=rt("skeleton-end-color"),n7={[uS.variable]:"colors.gray.100",[dS.variable]:"colors.gray.400",_dark:{[uS.variable]:"colors.gray.800",[dS.variable]:"colors.gray.600"},background:uS.reference,borderColor:dS.reference,opacity:.7,borderRadius:"sm"},r7={baseStyle:n7},fS=rt("skip-link-bg"),a7={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[fS.variable]:"colors.white",_dark:{[fS.variable]:"colors.gray.700"},bg:fS.reference}},i7={baseStyle:a7},{defineMultiStyleConfig:o7,definePartsStyle:yg}=Nn(Y6.keys),Wl=rt("slider-thumb-size"),gh=rt("slider-track-size"),Ls=rt("slider-bg"),s7=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...nC({orientation:t,vertical:{h:"100%",px:Uo(Wl.reference).divide(2).toString()},horizontal:{w:"100%",py:Uo(Wl.reference).divide(2).toString()}})}},l7=e=>({...nC({orientation:e.orientation,horizontal:{h:gh.reference},vertical:{w:gh.reference}}),overflow:"hidden",borderRadius:"sm",[Ls.variable]:"colors.gray.200",_dark:{[Ls.variable]:"colors.whiteAlpha.200"},_disabled:{[Ls.variable]:"colors.gray.300",_dark:{[Ls.variable]:"colors.whiteAlpha.300"}},bg:Ls.reference}),c7=e=>{const{orientation:t}=e;return{...nC({orientation:t,vertical:{left:"50%"},horizontal:{top:"50%"}}),w:Wl.reference,h:Wl.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_active:{"--slider-thumb-scale":"1.15"},_disabled:{bg:"gray.300"}}},u7=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[Ls.variable]:`colors.${t}.500`,_dark:{[Ls.variable]:`colors.${t}.200`},bg:Ls.reference}},d7=yg(e=>({container:s7(e),track:l7(e),thumb:c7(e),filledTrack:u7(e)})),f7=yg({container:{[Wl.variable]:"sizes.4",[gh.variable]:"sizes.1"}}),h7=yg({container:{[Wl.variable]:"sizes.3.5",[gh.variable]:"sizes.1"}}),p7=yg({container:{[Wl.variable]:"sizes.2.5",[gh.variable]:"sizes.0.5"}}),m7={lg:f7,md:h7,sm:p7},v7=o7({baseStyle:d7,sizes:m7,defaultProps:{size:"md",colorScheme:"blue"}}),Pl=qn("spinner-size"),g7={width:[Pl.reference],height:[Pl.reference]},y7={xs:{[Pl.variable]:"sizes.3"},sm:{[Pl.variable]:"sizes.4"},md:{[Pl.variable]:"sizes.6"},lg:{[Pl.variable]:"sizes.8"},xl:{[Pl.variable]:"sizes.12"}},b7={baseStyle:g7,sizes:y7,defaultProps:{size:"md"}},{defineMultiStyleConfig:x7,definePartsStyle:YM}=Nn(q6.keys),S7={fontWeight:"medium"},w7={opacity:.8,marginBottom:"2"},C7={verticalAlign:"baseline",fontWeight:"semibold"},T7={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},E7=YM({container:{},label:S7,helpText:w7,number:C7,icon:T7}),R7={md:YM({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},k7=x7({baseStyle:E7,sizes:R7,defaultProps:{size:"md"}}),{defineMultiStyleConfig:D7,definePartsStyle:Hf}=Nn(["stepper","step","title","description","indicator","separator","icon","number"]),Wo=rt("stepper-indicator-size"),hu=rt("stepper-icon-size"),pu=rt("stepper-title-font-size"),Wf=rt("stepper-description-font-size"),jf=rt("stepper-accent-color"),_7=Hf(({colorScheme:e})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[jf.variable]:`colors.${e}.500`,_dark:{[jf.variable]:`colors.${e}.200`}},title:{fontSize:pu.reference,fontWeight:"medium"},description:{fontSize:Wf.reference,color:"chakra-subtle-text"},number:{fontSize:pu.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:hu.reference,height:hu.reference},indicator:{flexShrink:0,borderRadius:"full",width:Wo.reference,height:Wo.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:jf.reference},"&[data-status=complete]":{bg:jf.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:jf.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${Wo.reference} - 8px)`,top:`calc(${Wo.reference} + 4px)`,insetStart:`calc(${Wo.reference} / 2 - 1px)`}}})),A7=D7({baseStyle:_7,sizes:{xs:Hf({stepper:{[Wo.variable]:"sizes.4",[hu.variable]:"sizes.3",[pu.variable]:"fontSizes.xs",[Wf.variable]:"fontSizes.xs"}}),sm:Hf({stepper:{[Wo.variable]:"sizes.6",[hu.variable]:"sizes.4",[pu.variable]:"fontSizes.sm",[Wf.variable]:"fontSizes.xs"}}),md:Hf({stepper:{[Wo.variable]:"sizes.8",[hu.variable]:"sizes.5",[pu.variable]:"fontSizes.md",[Wf.variable]:"fontSizes.sm"}}),lg:Hf({stepper:{[Wo.variable]:"sizes.10",[hu.variable]:"sizes.6",[pu.variable]:"fontSizes.lg",[Wf.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:O7,definePartsStyle:Tv}=Nn(G6.keys),ah=qn("switch-track-width"),Fl=qn("switch-track-height"),hS=qn("switch-track-diff"),M7=Ho.subtract(ah,Fl),ow=qn("switch-thumb-x"),Lf=qn("switch-bg"),N7=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[ah.reference],height:[Fl.reference],transitionProperty:"common",transitionDuration:"fast",[Lf.variable]:"colors.gray.300",_dark:{[Lf.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[Lf.variable]:`colors.${t}.500`,_dark:{[Lf.variable]:`colors.${t}.200`}},bg:Lf.reference}},P7={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[Fl.reference],height:[Fl.reference],_checked:{transform:`translateX(${ow.reference})`}},j7=Tv(e=>({container:{[hS.variable]:M7,[ow.variable]:hS.reference,_rtl:{[ow.variable]:Ho(hS).negate().toString()}},track:N7(e),thumb:P7})),L7={sm:Tv({container:{[ah.variable]:"1.375rem",[Fl.variable]:"sizes.3"}}),md:Tv({container:{[ah.variable]:"1.875rem",[Fl.variable]:"sizes.4"}}),lg:Tv({container:{[ah.variable]:"2.875rem",[Fl.variable]:"sizes.6"}})},$7=O7({baseStyle:j7,sizes:L7,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:z7,definePartsStyle:Eu}=Nn(X6.keys),F7=Eu({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),Kv={"&[data-is-numeric=true]":{textAlign:"end"}},I7=Eu(e=>{const{colorScheme:t}=e;return{th:{color:lt("gray.600","gray.400")(e),borderBottom:"1px",borderColor:lt(`${t}.100`,`${t}.700`)(e),...Kv},td:{borderBottom:"1px",borderColor:lt(`${t}.100`,`${t}.700`)(e),...Kv},caption:{color:lt("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),V7=Eu(e=>{const{colorScheme:t}=e;return{th:{color:lt("gray.600","gray.400")(e),borderBottom:"1px",borderColor:lt(`${t}.100`,`${t}.700`)(e),...Kv},td:{borderBottom:"1px",borderColor:lt(`${t}.100`,`${t}.700`)(e),...Kv},caption:{color:lt("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:lt(`${t}.100`,`${t}.700`)(e)},td:{background:lt(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),B7={simple:I7,striped:V7,unstyled:{}},U7={sm:Eu({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:Eu({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:Eu({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},H7=z7({baseStyle:F7,variants:B7,sizes:U7,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),Ta=rt("tabs-color"),Oi=rt("tabs-bg"),av=rt("tabs-border-color"),{defineMultiStyleConfig:W7,definePartsStyle:io}=Nn(K6.keys),Y7=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},q7=e=>{const{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}},G7=e=>{const{align:t="start",orientation:a}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:a==="vertical"?"column":"row"}},X7={p:4},K7=io(e=>({root:Y7(e),tab:q7(e),tablist:G7(e),tabpanel:X7})),Q7={sm:io({tab:{py:1,px:4,fontSize:"sm"}}),md:io({tab:{fontSize:"md",py:2,px:4}}),lg:io({tab:{fontSize:"lg",py:3,px:4}})},Z7=io(e=>{const{colorScheme:t,orientation:a}=e,i=a==="vertical",s=i?"borderStart":"borderBottom",u=i?"marginStart":"marginBottom";return{tablist:{[s]:"2px solid",borderColor:"inherit"},tab:{[s]:"2px solid",borderColor:"transparent",[u]:"-2px",_selected:{[Ta.variable]:`colors.${t}.600`,_dark:{[Ta.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[Oi.variable]:"colors.gray.200",_dark:{[Oi.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:Ta.reference,bg:Oi.reference}}}),J7=io(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[av.variable]:"transparent",_selected:{[Ta.variable]:`colors.${t}.600`,[av.variable]:"colors.white",_dark:{[Ta.variable]:`colors.${t}.300`,[av.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:av.reference},color:Ta.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),eY=io(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[Oi.variable]:"colors.gray.50",_dark:{[Oi.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[Oi.variable]:"colors.white",[Ta.variable]:`colors.${t}.600`,_dark:{[Oi.variable]:"colors.gray.800",[Ta.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:Ta.reference,bg:Oi.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),tY=io(e=>{const{colorScheme:t,theme:a}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:ua(a,`${t}.700`),bg:ua(a,`${t}.100`)}}}}),nY=io(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[Ta.variable]:"colors.gray.600",_dark:{[Ta.variable]:"inherit"},_selected:{[Ta.variable]:"colors.white",[Oi.variable]:`colors.${t}.600`,_dark:{[Ta.variable]:"colors.gray.800",[Oi.variable]:`colors.${t}.300`}},color:Ta.reference,bg:Oi.reference}}}),rY=io({}),aY={line:Z7,enclosed:J7,"enclosed-colored":eY,"soft-rounded":tY,"solid-rounded":nY,unstyled:rY},iY=W7({baseStyle:K7,sizes:Q7,variants:aY,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),{defineMultiStyleConfig:oY,definePartsStyle:Il}=Nn(Q6.keys),d_=rt("tag-bg"),f_=rt("tag-color"),pS=rt("tag-shadow"),Ev=rt("tag-min-height"),Rv=rt("tag-min-width"),kv=rt("tag-font-size"),Dv=rt("tag-padding-inline"),sY={fontWeight:"medium",lineHeight:1.2,outline:0,[f_.variable]:ar.color.reference,[d_.variable]:ar.bg.reference,[pS.variable]:ar.shadow.reference,color:f_.reference,bg:d_.reference,boxShadow:pS.reference,borderRadius:"md",minH:Ev.reference,minW:Rv.reference,fontSize:kv.reference,px:Dv.reference,_focusVisible:{[pS.variable]:"shadows.outline"}},lY={lineHeight:1.2,overflow:"visible"},cY={fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}},uY=Il({container:sY,label:lY,closeButton:cY}),dY={sm:Il({container:{[Ev.variable]:"sizes.5",[Rv.variable]:"sizes.5",[kv.variable]:"fontSizes.xs",[Dv.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:Il({container:{[Ev.variable]:"sizes.6",[Rv.variable]:"sizes.6",[kv.variable]:"fontSizes.sm",[Dv.variable]:"space.2"}}),lg:Il({container:{[Ev.variable]:"sizes.8",[Rv.variable]:"sizes.8",[kv.variable]:"fontSizes.md",[Dv.variable]:"space.3"}})},fY={subtle:Il(e=>{var t;return{container:(t=th.variants)==null?void 0:t.subtle(e)}}),solid:Il(e=>{var t;return{container:(t=th.variants)==null?void 0:t.solid(e)}}),outline:Il(e=>{var t;return{container:(t=th.variants)==null?void 0:t.outline(e)}})},hY=oY({variants:fY,baseStyle:uY,sizes:dY,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}});var lM;const pY={...(lM=gn.baseStyle)==null?void 0:lM.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"};var cM;const mY={outline:e=>{var t;return((t=gn.variants)==null?void 0:t.outline(e).field)??{}},flushed:e=>{var t;return((t=gn.variants)==null?void 0:t.flushed(e).field)??{}},filled:e=>{var t;return((t=gn.variants)==null?void 0:t.filled(e).field)??{}},unstyled:((cM=gn.variants)==null?void 0:cM.unstyled.field)??{}};var uM,dM,fM,hM;const vY={xs:((uM=gn.sizes)==null?void 0:uM.xs.field)??{},sm:((dM=gn.sizes)==null?void 0:dM.sm.field)??{},md:((fM=gn.sizes)==null?void 0:fM.md.field)??{},lg:((hM=gn.sizes)==null?void 0:hM.lg.field)??{}},gY={baseStyle:pY,sizes:vY,variants:mY,defaultProps:{size:"md",variant:"outline"}},iv=qn("tooltip-bg"),mS=qn("tooltip-fg"),yY=qn("popper-arrow-bg"),bY={bg:iv.reference,color:mS.reference,[iv.variable]:"colors.gray.700",[mS.variable]:"colors.whiteAlpha.900",_dark:{[iv.variable]:"colors.gray.300",[mS.variable]:"colors.gray.900"},[yY.variable]:iv.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},xY={baseStyle:bY},SY={Accordion:oH,Alert:UH,Avatar:e9,Badge:th,Breadcrumb:u9,Button:b9,Checkbox:Ps,CloseButton:P9,Code:z9,Container:I9,Divider:W9,Drawer:nW,Editable:cW,Form:mW,FormError:SW,FormLabel:CW,Heading:RW,Input:gn,Kbd:LW,Link:zW,List:UW,Menu:e8,Modal:d8,NumberInput:x8,PinInput:T8,Popover:j8,Progress:U8,Radio:G8,Select:t7,Skeleton:r7,SkipLink:i7,Slider:v7,Spinner:b7,Stat:k7,Switch:$7,Table:H7,Tabs:iY,Tag:hY,Textarea:gY,Tooltip:xY,Card:T9,Stepper:A7},wY={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},CY={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},TY={transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"}},EY={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},RY={xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},kY={common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},DY={"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},_Y={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},AY={property:kY,easing:DY,duration:_Y},OY={hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},MY={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},NY={breakpoints:CY,zIndices:OY,radii:EY,blur:MY,colors:TY,...UM,sizes:$M,shadows:RY,space:LM,borders:wY,transition:AY},PY={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},jY={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color"}}},LY=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function $Y(e){return fa(e)?LY.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}const zY="ltr",FY={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},qM={semanticTokens:PY,direction:zY,...NY,components:SY,styles:jY,config:FY};var GM={exports:{}},_v={};/**
219
- * @license React
220
- * react-jsx-runtime.development.js
221
- *
222
- * Copyright (c) Facebook, Inc. and its affiliates.
223
- *
224
- * This source code is licensed under the MIT license found in the
225
- * LICENSE file in the root directory of this source tree.
226
- */(function(){var e=w,t=Symbol.for("react.element"),a=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),f=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),S=Symbol.for("react.offscreen"),R=Symbol.iterator,E="@@iterator";function k(M){if(M===null||typeof M!="object")return null;var ce=R&&M[R]||M[E];return typeof ce=="function"?ce:null}var O=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function _(M){{for(var ce=arguments.length,me=new Array(ce>1?ce-1:0),Re=1;Re<ce;Re++)me[Re-1]=arguments[Re];N("error",M,me)}}function N(M,ce,me){{var Re=O.ReactDebugCurrentFrame,De=Re.getStackAddendum();De!==""&&(ce+="%s",me=me.concat([De]));var at=me.map(function(je){return String(je)});at.unshift("Warning: "+ce),Function.prototype.apply.call(console[M],console,at)}}var $=!1,L=!1,I=!1,F=!1,Q=!1,le;le=Symbol.for("react.module.reference");function re(M){return!!(typeof M=="string"||typeof M=="function"||M===i||M===u||Q||M===s||M===m||M===v||F||M===S||$||L||I||typeof M=="object"&&M!==null&&(M.$$typeof===x||M.$$typeof===y||M.$$typeof===c||M.$$typeof===f||M.$$typeof===h||M.$$typeof===le||M.getModuleId!==void 0))}function de(M,ce,me){var Re=M.displayName;if(Re)return Re;var De=ce.displayName||ce.name||"";return De!==""?me+"("+De+")":me}function Ke(M){return M.displayName||"Context"}function q(M){if(M==null)return null;if(typeof M.tag=="number"&&_("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof M=="function")return M.displayName||M.name||null;if(typeof M=="string")return M;switch(M){case i:return"Fragment";case a:return"Portal";case u:return"Profiler";case s:return"StrictMode";case m:return"Suspense";case v:return"SuspenseList"}if(typeof M=="object")switch(M.$$typeof){case f:var ce=M;return Ke(ce)+".Consumer";case c:var me=M;return Ke(me._context)+".Provider";case h:return de(M,M.render,"ForwardRef");case y:var Re=M.displayName||null;return Re!==null?Re:q(M.type)||"Memo";case x:{var De=M,at=De._payload,je=De._init;try{return q(je(at))}catch{return null}}}return null}var ue=Object.assign,Ee=0,we,oe,K,Y,G,ve,te;function pe(){}pe.__reactDisabledLog=!0;function Me(){{if(Ee===0){we=console.log,oe=console.info,K=console.warn,Y=console.error,G=console.group,ve=console.groupCollapsed,te=console.groupEnd;var M={configurable:!0,enumerable:!0,value:pe,writable:!0};Object.defineProperties(console,{info:M,log:M,warn:M,error:M,group:M,groupCollapsed:M,groupEnd:M})}Ee++}}function Ne(){{if(Ee--,Ee===0){var M={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ue({},M,{value:we}),info:ue({},M,{value:oe}),warn:ue({},M,{value:K}),error:ue({},M,{value:Y}),group:ue({},M,{value:G}),groupCollapsed:ue({},M,{value:ve}),groupEnd:ue({},M,{value:te})})}Ee<0&&_("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Pe=O.ReactCurrentDispatcher,ht;function mt(M,ce,me){{if(ht===void 0)try{throw Error()}catch(De){var Re=De.stack.trim().match(/\n( *(at )?)/);ht=Re&&Re[1]||""}return`
227
- `+ht+M}}var gt=!1,it;{var jt=typeof WeakMap=="function"?WeakMap:Map;it=new jt}function be(M,ce){if(!M||gt)return"";{var me=it.get(M);if(me!==void 0)return me}var Re;gt=!0;var De=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var at;at=Pe.current,Pe.current=null,Me();try{if(ce){var je=function(){throw Error()};if(Object.defineProperty(je.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(je,[])}catch(Vn){Re=Vn}Reflect.construct(M,[],je)}else{try{je.call()}catch(Vn){Re=Vn}M.call(je.prototype)}}else{try{throw Error()}catch(Vn){Re=Vn}M()}}catch(Vn){if(Vn&&Re&&typeof Vn.stack=="string"){for(var qe=Vn.stack.split(`
228
- `),tn=Re.stack.split(`
229
- `),Qt=qe.length-1,nn=tn.length-1;Qt>=1&&nn>=0&&qe[Qt]!==tn[nn];)nn--;for(;Qt>=1&&nn>=0;Qt--,nn--)if(qe[Qt]!==tn[nn]){if(Qt!==1||nn!==1)do if(Qt--,nn--,nn<0||qe[Qt]!==tn[nn]){var Zt=`
230
- `+qe[Qt].replace(" at new "," at ");return M.displayName&&Zt.includes("<anonymous>")&&(Zt=Zt.replace("<anonymous>",M.displayName)),typeof M=="function"&&it.set(M,Zt),Zt}while(Qt>=1&&nn>=0);break}}}finally{gt=!1,Pe.current=at,Ne(),Error.prepareStackTrace=De}var Vr=M?M.displayName||M.name:"",fr=Vr?mt(Vr):"";return typeof M=="function"&&it.set(M,fr),fr}function ut(M,ce,me){return be(M,!1)}function Et(M){var ce=M.prototype;return!!(ce&&ce.isReactComponent)}function Nt(M,ce,me){if(M==null)return"";if(typeof M=="function")return be(M,Et(M));if(typeof M=="string")return mt(M);switch(M){case m:return mt("Suspense");case v:return mt("SuspenseList")}if(typeof M=="object")switch(M.$$typeof){case h:return ut(M.render);case y:return Nt(M.type,ce,me);case x:{var Re=M,De=Re._payload,at=Re._init;try{return Nt(at(De),ce,me)}catch{}}}return""}var Pt=Object.prototype.hasOwnProperty,Ot={},cn=O.ReactDebugCurrentFrame;function en(M){if(M){var ce=M._owner,me=Nt(M.type,M._source,ce?ce.type:null);cn.setExtraStackFrame(me)}else cn.setExtraStackFrame(null)}function vt(M,ce,me,Re,De){{var at=Function.call.bind(Pt);for(var je in M)if(at(M,je)){var qe=void 0;try{if(typeof M[je]!="function"){var tn=Error((Re||"React class")+": "+me+" type `"+je+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof M[je]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw tn.name="Invariant Violation",tn}qe=M[je](ce,je,Re,me,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Qt){qe=Qt}qe&&!(qe instanceof Error)&&(en(De),_("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",Re||"React class",me,je,typeof qe),en(null)),qe instanceof Error&&!(qe.message in Ot)&&(Ot[qe.message]=!0,en(De),_("Failed %s type: %s",me,qe.message),en(null))}}}var on=Array.isArray;function un(M){return on(M)}function $e(M){{var ce=typeof Symbol=="function"&&Symbol.toStringTag,me=ce&&M[Symbol.toStringTag]||M.constructor.name||"Object";return me}}function St(M){try{return yt(M),!1}catch{return!0}}function yt(M){return""+M}function _t(M){if(St(M))return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",$e(M)),yt(M)}var Ge=O.ReactCurrentOwner,tt={key:!0,ref:!0,__self:!0,__source:!0},Ft,At,xe;xe={};function _e(M){if(Pt.call(M,"ref")){var ce=Object.getOwnPropertyDescriptor(M,"ref").get;if(ce&&ce.isReactWarning)return!1}return M.ref!==void 0}function Oe(M){if(Pt.call(M,"key")){var ce=Object.getOwnPropertyDescriptor(M,"key").get;if(ce&&ce.isReactWarning)return!1}return M.key!==void 0}function Qe(M,ce){if(typeof M.ref=="string"&&Ge.current&&ce&&Ge.current.stateNode!==ce){var me=q(Ge.current.type);xe[me]||(_('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',q(Ge.current.type),M.ref),xe[me]=!0)}}function We(M,ce){{var me=function(){Ft||(Ft=!0,_("%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)",ce))};me.isReactWarning=!0,Object.defineProperty(M,"key",{get:me,configurable:!0})}}function ot(M,ce){{var me=function(){At||(At=!0,_("%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)",ce))};me.isReactWarning=!0,Object.defineProperty(M,"ref",{get:me,configurable:!0})}}var Ue=function(M,ce,me,Re,De,at,je){var qe={$$typeof:t,type:M,key:ce,ref:me,props:je,_owner:at};return qe._store={},Object.defineProperty(qe._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(qe,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Re}),Object.defineProperty(qe,"_source",{configurable:!1,enumerable:!1,writable:!1,value:De}),Object.freeze&&(Object.freeze(qe.props),Object.freeze(qe)),qe};function Vt(M,ce,me,Re,De){{var at,je={},qe=null,tn=null;me!==void 0&&(_t(me),qe=""+me),Oe(ce)&&(_t(ce.key),qe=""+ce.key),_e(ce)&&(tn=ce.ref,Qe(ce,De));for(at in ce)Pt.call(ce,at)&&!tt.hasOwnProperty(at)&&(je[at]=ce[at]);if(M&&M.defaultProps){var Qt=M.defaultProps;for(at in Qt)je[at]===void 0&&(je[at]=Qt[at])}if(qe||tn){var nn=typeof M=="function"?M.displayName||M.name||"Unknown":M;qe&&We(je,nn),tn&&ot(je,nn)}return Ue(M,qe,tn,De,Re,Ge.current,je)}}var kt=O.ReactCurrentOwner,Cn=O.ReactDebugCurrentFrame;function Ct(M){if(M){var ce=M._owner,me=Nt(M.type,M._source,ce?ce.type:null);Cn.setExtraStackFrame(me)}else Cn.setExtraStackFrame(null)}var Ze;Ze=!1;function Kt(M){return typeof M=="object"&&M!==null&&M.$$typeof===t}function Gt(){{if(kt.current){var M=q(kt.current.type);if(M)return`
231
-
232
- Check the render method of \``+M+"`."}return""}}function ir(M){{if(M!==void 0){var ce=M.fileName.replace(/^.*[\\\/]/,""),me=M.lineNumber;return`
233
-
234
- Check your code at `+ce+":"+me+"."}return""}}var In={};function Bn(M){{var ce=Gt();if(!ce){var me=typeof M=="string"?M:M.displayName||M.name;me&&(ce=`
235
-
236
- Check the top-level render call using <`+me+">.")}return ce}}function Un(M,ce){{if(!M._store||M._store.validated||M.key!=null)return;M._store.validated=!0;var me=Bn(ce);if(In[me])return;In[me]=!0;var Re="";M&&M._owner&&M._owner!==kt.current&&(Re=" It was passed a child from "+q(M._owner.type)+"."),Ct(M),_('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',me,Re),Ct(null)}}function dr(M,ce){{if(typeof M!="object")return;if(un(M))for(var me=0;me<M.length;me++){var Re=M[me];Kt(Re)&&Un(Re,ce)}else if(Kt(M))M._store&&(M._store.validated=!0);else if(M){var De=k(M);if(typeof De=="function"&&De!==M.entries)for(var at=De.call(M),je;!(je=at.next()).done;)Kt(je.value)&&Un(je.value,ce)}}}function Lt(M){{var ce=M.type;if(ce==null||typeof ce=="string")return;var me;if(typeof ce=="function")me=ce.propTypes;else if(typeof ce=="object"&&(ce.$$typeof===h||ce.$$typeof===y))me=ce.propTypes;else return;if(me){var Re=q(ce);vt(me,M.props,"prop",Re,M)}else if(ce.PropTypes!==void 0&&!Ze){Ze=!0;var De=q(ce);_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",De||"Unknown")}typeof ce.getDefaultProps=="function"&&!ce.getDefaultProps.isReactClassApproved&&_("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Jn(M){{for(var ce=Object.keys(M.props),me=0;me<ce.length;me++){var Re=ce[me];if(Re!=="children"&&Re!=="key"){Ct(M),_("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Re),Ct(null);break}}M.ref!==null&&(Ct(M),_("Invalid attribute `ref` supplied to `React.Fragment`."),Ct(null))}}var Pn={};function jn(M,ce,me,Re,De,at){{var je=re(M);if(!je){var qe="";(M===void 0||typeof M=="object"&&M!==null&&Object.keys(M).length===0)&&(qe+=" 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 tn=ir(De);tn?qe+=tn:qe+=Gt();var Qt;M===null?Qt="null":un(M)?Qt="array":M!==void 0&&M.$$typeof===t?(Qt="<"+(q(M.type)||"Unknown")+" />",qe=" Did you accidentally export a JSX literal instead of a component?"):Qt=typeof M,_("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Qt,qe)}var nn=Vt(M,ce,me,De,at);if(nn==null)return nn;if(je){var Zt=ce.children;if(Zt!==void 0)if(Re)if(un(Zt)){for(var Vr=0;Vr<Zt.length;Vr++)dr(Zt[Vr],M);Object.freeze&&Object.freeze(Zt)}else _("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 dr(Zt,M)}if(Pt.call(ce,"key")){var fr=q(M),Vn=Object.keys(ce).filter(function(Ha){return Ha!=="key"}),ta=Vn.length>0?"{key: someKey, "+Vn.join(": ..., ")+": ...}":"{key: someKey}";if(!Pn[fr+ta]){var Rt=Vn.length>0?"{"+Vn.join(": ..., ")+": ...}":"{}";_(`A props object containing a "key" prop is being spread into JSX:
237
- let props = %s;
238
- <%s {...props} />
239
- React keys must be passed directly to JSX without using spread:
240
- let props = %s;
241
- <%s key={someKey} {...props} />`,ta,fr,Rt,fr),Pn[fr+ta]=!0}}return M===i?Jn(nn):Lt(nn),nn}}function er(M,ce,me){return jn(M,ce,me,!0)}function z(M,ce,me){return jn(M,ce,me,!1)}var ye=z,ke=er;_v.Fragment=i,_v.jsx=ye,_v.jsxs=ke})();GM.exports=_v;var X=GM.exports,IY=!0;function VY(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function BY(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var UY=function(){function e(a){var i=this;this._insertTag=function(s){var u;i.tags.length===0?i.insertionPoint?u=i.insertionPoint.nextSibling:i.prepend?u=i.container.firstChild:u=i.before:u=i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(s,u),i.tags.push(s)},this.isSpeedy=a.speedy===void 0?!IY:a.speedy,this.tags=[],this.ctr=0,this.nonce=a.nonce,this.key=a.key,this.container=a.container,this.prepend=a.prepend,this.insertionPoint=a.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(i){i.forEach(this._insertTag)},t.insert=function(i){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(BY(this));var s=this.tags[this.tags.length-1];{var u=i.charCodeAt(0)===64&&i.charCodeAt(1)===105;u&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
242
- `+i+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!u}if(this.isSpeedy){var c=VY(s);try{c.insertRule(i,c.cssRules.length)}catch(f){/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(i)||console.error('There was a problem inserting the following rule: "'+i+'"',f)}}else s.appendChild(document.createTextNode(i));this.ctr++},t.flush=function(){this.tags.forEach(function(i){var s;return(s=i.parentNode)==null?void 0:s.removeChild(i)}),this.tags=[],this.ctr=0,this._alreadyInsertedOrderInsensitiveRule=!1},e}(),Kr="-ms-",Qv="-moz-",mn="-webkit-",oC="comm",sC="rule",lC="decl",HY="@import",XM="@keyframes",WY="@layer",YY=Math.abs,bg=String.fromCharCode,qY=Object.assign;function GY(e,t){return Fr(e,0)^45?(((t<<2^Fr(e,0))<<2^Fr(e,1))<<2^Fr(e,2))<<2^Fr(e,3):0}function KM(e){return e.trim()}function XY(e,t){return(e=t.exec(e))?e[0]:e}function vn(e,t,a){return e.replace(t,a)}function sw(e,t){return e.indexOf(t)}function Fr(e,t){return e.charCodeAt(t)|0}function yh(e,t,a){return e.slice(t,a)}function to(e){return e.length}function cC(e){return e.length}function ov(e,t){return t.push(e),e}function KY(e,t){return e.map(t).join("")}var xg=1,Nu=1,QM=0,_a=0,ur=0,Uu="";function Sg(e,t,a,i,s,u,c){return{value:e,root:t,parent:a,type:i,props:s,children:u,line:xg,column:Nu,length:c,return:""}}function $f(e,t){return qY(Sg("",null,null,"",null,null,0),e,{length:-e.length},t)}function QY(){return ur}function ZY(){return ur=_a>0?Fr(Uu,--_a):0,Nu--,ur===10&&(Nu=1,xg--),ur}function Va(){return ur=_a<QM?Fr(Uu,_a++):0,Nu++,ur===10&&(Nu=1,xg++),ur}function oo(){return Fr(Uu,_a)}function Av(){return _a}function $h(e,t){return yh(Uu,e,t)}function bh(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ZM(e){return xg=Nu=1,QM=to(Uu=e),_a=0,[]}function JM(e){return Uu="",e}function Ov(e){return KM($h(_a-1,lw(e===91?e+2:e===40?e+1:e)))}function JY(e){for(;(ur=oo())&&ur<33;)Va();return bh(e)>2||bh(ur)>3?"":" "}function eq(e,t){for(;--t&&Va()&&!(ur<48||ur>102||ur>57&&ur<65||ur>70&&ur<97););return $h(e,Av()+(t<6&&oo()==32&&Va()==32))}function lw(e){for(;Va();)switch(ur){case e:return _a;case 34:case 39:e!==34&&e!==39&&lw(ur);break;case 40:e===41&&lw(e);break;case 92:Va();break}return _a}function tq(e,t){for(;Va()&&e+ur!==47+10;)if(e+ur===42+42&&oo()===47)break;return"/*"+$h(t,_a-1)+"*"+bg(e===47?e:Va())}function nq(e){for(;!bh(oo());)Va();return $h(e,_a)}function rq(e){return JM(Mv("",null,null,null,[""],e=ZM(e),0,[0],e))}function Mv(e,t,a,i,s,u,c,f,h){for(var m=0,v=0,y=c,x=0,S=0,R=0,E=1,k=1,O=1,_=0,N="",$=s,L=u,I=i,F=N;k;)switch(R=_,_=Va()){case 40:if(R!=108&&Fr(F,y-1)==58){sw(F+=vn(Ov(_),"&","&\f"),"&\f")!=-1&&(O=-1);break}case 34:case 39:case 91:F+=Ov(_);break;case 9:case 10:case 13:case 32:F+=JY(R);break;case 92:F+=eq(Av()-1,7);continue;case 47:switch(oo()){case 42:case 47:ov(aq(tq(Va(),Av()),t,a),h);break;default:F+="/"}break;case 123*E:f[m++]=to(F)*O;case 125*E:case 59:case 0:switch(_){case 0:case 125:k=0;case 59+v:O==-1&&(F=vn(F,/\f/g,"")),S>0&&to(F)-y&&ov(S>32?p_(F+";",i,a,y-1):p_(vn(F," ","")+";",i,a,y-2),h);break;case 59:F+=";";default:if(ov(I=h_(F,t,a,m,v,s,f,N,$=[],L=[],y),u),_===123)if(v===0)Mv(F,t,I,I,$,u,y,f,L);else switch(x===99&&Fr(F,3)===110?100:x){case 100:case 108:case 109:case 115:Mv(e,I,I,i&&ov(h_(e,I,I,0,0,s,f,N,s,$=[],y),L),s,L,y,f,i?$:L);break;default:Mv(F,I,I,I,[""],L,0,f,L)}}m=v=S=0,E=O=1,N=F="",y=c;break;case 58:y=1+to(F),S=R;default:if(E<1){if(_==123)--E;else if(_==125&&E++==0&&ZY()==125)continue}switch(F+=bg(_),_*E){case 38:O=v>0?1:(F+="\f",-1);break;case 44:f[m++]=(to(F)-1)*O,O=1;break;case 64:oo()===45&&(F+=Ov(Va())),x=oo(),v=y=to(N=F+=nq(Av())),_++;break;case 45:R===45&&to(F)==2&&(E=0)}}return u}function h_(e,t,a,i,s,u,c,f,h,m,v){for(var y=s-1,x=s===0?u:[""],S=cC(x),R=0,E=0,k=0;R<i;++R)for(var O=0,_=yh(e,y+1,y=YY(E=c[R])),N=e;O<S;++O)(N=KM(E>0?x[O]+" "+_:vn(_,/&\f/g,x[O])))&&(h[k++]=N);return Sg(e,t,a,s===0?sC:f,h,m,v)}function aq(e,t,a){return Sg(e,t,a,oC,bg(QY()),yh(e,2,-2),0)}function p_(e,t,a,i){return Sg(e,t,a,lC,yh(e,0,i),yh(e,i+1,-1),i)}function Ru(e,t){for(var a="",i=cC(e),s=0;s<i;s++)a+=t(e[s],s,e,t)||"";return a}function iq(e,t,a,i){switch(e.type){case WY:if(e.children.length)break;case HY:case lC:return e.return=e.return||e.value;case oC:return"";case XM:return e.return=e.value+"{"+Ru(e.children,i)+"}";case sC:e.value=e.props.join(",")}return to(a=Ru(e.children,i))?e.return=e.value+"{"+a+"}":""}function oq(e){var t=cC(e);return function(a,i,s,u){for(var c="",f=0;f<t;f++)c+=e[f](a,i,s,u)||"";return c}}var m_=function(t){var a=new WeakMap;return function(i){if(a.has(i))return a.get(i);var s=t(i);return a.set(i,s),s}};function eN(e){var t=Object.create(null);return function(a){return t[a]===void 0&&(t[a]=e(a)),t[a]}}var sq=function(t,a,i){for(var s=0,u=0;s=u,u=oo(),s===38&&u===12&&(a[i]=1),!bh(u);)Va();return $h(t,_a)},lq=function(t,a){var i=-1,s=44;do switch(bh(s)){case 0:s===38&&oo()===12&&(a[i]=1),t[i]+=sq(_a-1,a,i);break;case 2:t[i]+=Ov(s);break;case 4:if(s===44){t[++i]=oo()===58?"&\f":"",a[i]=t[i].length;break}default:t[i]+=bg(s)}while(s=Va());return t},cq=function(t,a){return JM(lq(ZM(t),a))},v_=new WeakMap,uq=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var a=t.value,i=t.parent,s=t.column===i.column&&t.line===i.line;i.type!=="rule";)if(i=i.parent,!i)return;if(!(t.props.length===1&&a.charCodeAt(0)!==58&&!v_.get(i))&&!s){v_.set(t,!0);for(var u=[],c=cq(a,u),f=i.props,h=0,m=0;h<c.length;h++)for(var v=0;v<f.length;v++,m++)t.props[m]=u[h]?c[h].replace(/&\f/g,f[v]):f[v]+" "+c[h]}}},dq=function(t){if(t.type==="decl"){var a=t.value;a.charCodeAt(0)===108&&a.charCodeAt(2)===98&&(t.return="",t.value="")}},fq="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",hq=function(t){return t.type==="comm"&&t.children.indexOf(fq)>-1},pq=function(t){return function(a,i,s){if(!(a.type!=="rule"||t.compat)){var u=a.value.match(/(:first|:nth|:nth-last)-child/g);if(u){for(var c=!!a.parent,f=c?a.parent.children:s,h=f.length-1;h>=0;h--){var m=f[h];if(m.line<a.line)break;if(m.column<a.column){if(hq(m))return;break}}u.forEach(function(v){console.error('The pseudo class "'+v+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+v.split("-child")[0]+'-of-type".')})}}}},tN=function(t){return t.type.charCodeAt(1)===105&&t.type.charCodeAt(0)===64},mq=function(t,a){for(var i=t-1;i>=0;i--)if(!tN(a[i]))return!0;return!1},g_=function(t){t.type="",t.value="",t.return="",t.children="",t.props=""},vq=function(t,a,i){tN(t)&&(t.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),g_(t)):mq(a,i)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),g_(t)))};function nN(e,t){switch(GY(e,t)){case 5103:return mn+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return mn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return mn+e+Qv+e+Kr+e+e;case 6828:case 4268:return mn+e+Kr+e+e;case 6165:return mn+e+Kr+"flex-"+e+e;case 5187:return mn+e+vn(e,/(\w+).+(:[^]+)/,mn+"box-$1$2"+Kr+"flex-$1$2")+e;case 5443:return mn+e+Kr+"flex-item-"+vn(e,/flex-|-self/,"")+e;case 4675:return mn+e+Kr+"flex-line-pack"+vn(e,/align-content|flex-|-self/,"")+e;case 5548:return mn+e+Kr+vn(e,"shrink","negative")+e;case 5292:return mn+e+Kr+vn(e,"basis","preferred-size")+e;case 6060:return mn+"box-"+vn(e,"-grow","")+mn+e+Kr+vn(e,"grow","positive")+e;case 4554:return mn+vn(e,/([^-])(transform)/g,"$1"+mn+"$2")+e;case 6187:return vn(vn(vn(e,/(zoom-|grab)/,mn+"$1"),/(image-set)/,mn+"$1"),e,"")+e;case 5495:case 3959:return vn(e,/(image-set\([^]*)/,mn+"$1$`$1");case 4968:return vn(vn(e,/(.+:)(flex-)?(.*)/,mn+"box-pack:$3"+Kr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+mn+e+e;case 4095:case 3583:case 4068:case 2532:return vn(e,/(.+)-inline(.+)/,mn+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(to(e)-1-t>6)switch(Fr(e,t+1)){case 109:if(Fr(e,t+4)!==45)break;case 102:return vn(e,/(.+:)(.+)-([^]+)/,"$1"+mn+"$2-$3$1"+Qv+(Fr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~sw(e,"stretch")?nN(vn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Fr(e,t+1)!==115)break;case 6444:switch(Fr(e,to(e)-3-(~sw(e,"!important")&&10))){case 107:return vn(e,":",":"+mn)+e;case 101:return vn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+mn+(Fr(e,14)===45?"inline-":"")+"box$3$1"+mn+"$2$3$1"+Kr+"$2box$3")+e}break;case 5936:switch(Fr(e,t+11)){case 114:return mn+e+Kr+vn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return mn+e+Kr+vn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return mn+e+Kr+vn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return mn+e+Kr+e+e}return e}var gq=function(t,a,i,s){if(t.length>-1&&!t.return)switch(t.type){case lC:t.return=nN(t.value,t.length);break;case XM:return Ru([$f(t,{value:vn(t.value,"@","@"+mn)})],s);case sC:if(t.length)return KY(t.props,function(u){switch(XY(u,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ru([$f(t,{props:[vn(u,/:(read-\w+)/,":"+Qv+"$1")]})],s);case"::placeholder":return Ru([$f(t,{props:[vn(u,/:(plac\w+)/,":"+mn+"input-$1")]}),$f(t,{props:[vn(u,/:(plac\w+)/,":"+Qv+"$1")]}),$f(t,{props:[vn(u,/:(plac\w+)/,Kr+"input-$1")]})],s)}return""})}},yq=[gq],cw;{var bq=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;cw=function(t){var a=t.match(bq);if(a)return a[a.length-1]}}var xq=function(t){var a=t.key;if(!a)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
243
- If multiple caches share the same key they might "fight" for each other's style elements.`);if(a==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(E){var k=E.getAttribute("data-emotion");k.indexOf(" ")!==-1&&(document.head.appendChild(E),E.setAttribute("data-s",""))})}var s=t.stylisPlugins||yq;if(/[^a-z-]/.test(a))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+a+'" was passed');var u={},c,f=[];c=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+a+' "]'),function(E){for(var k=E.getAttribute("data-emotion").split(" "),O=1;O<k.length;O++)u[k[O]]=!0;f.push(E)});var h,m=[uq,dq];m.push(pq({get compat(){return R.compat}}),vq);{var v,y=[iq,function(E){E.root||(E.return?v.insert(E.return):E.value&&E.type!==oC&&v.insert(E.value+"{}"))}],x=oq(m.concat(s,y)),S=function(k){return Ru(rq(k),x)};h=function(k,O,_,N){if(v=_,cw){var $=cw(O.styles);$&&(v={insert:function(I){_.insert(I+$)}})}S(k?k+"{"+O.styles+"}":O.styles),N&&(R.inserted[O.name]=!0)}}var R={key:a,sheet:new UY({key:a,container:c,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:u,registered:{},insert:h};return R.sheet.hydrate(f),R};function Yl(){return Yl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var i in a)({}).hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e},Yl.apply(null,arguments)}var rN={exports:{}},En={};/** @license React v16.13.1
244
- * react-is.development.js
245
- *
246
- * Copyright (c) Facebook, Inc. and its affiliates.
247
- *
248
- * This source code is licensed under the MIT license found in the
249
- * LICENSE file in the root directory of this source tree.
250
- */(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,a=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,u=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,f=e?Symbol.for("react.context"):60110,h=e?Symbol.for("react.async_mode"):60111,m=e?Symbol.for("react.concurrent_mode"):60111,v=e?Symbol.for("react.forward_ref"):60112,y=e?Symbol.for("react.suspense"):60113,x=e?Symbol.for("react.suspense_list"):60120,S=e?Symbol.for("react.memo"):60115,R=e?Symbol.for("react.lazy"):60116,E=e?Symbol.for("react.block"):60121,k=e?Symbol.for("react.fundamental"):60117,O=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function N(be){return typeof be=="string"||typeof be=="function"||be===i||be===m||be===u||be===s||be===y||be===x||typeof be=="object"&&be!==null&&(be.$$typeof===R||be.$$typeof===S||be.$$typeof===c||be.$$typeof===f||be.$$typeof===v||be.$$typeof===k||be.$$typeof===O||be.$$typeof===_||be.$$typeof===E)}function $(be){if(typeof be=="object"&&be!==null){var ut=be.$$typeof;switch(ut){case t:var Et=be.type;switch(Et){case h:case m:case i:case u:case s:case y:return Et;default:var Nt=Et&&Et.$$typeof;switch(Nt){case f:case v:case R:case S:case c:return Nt;default:return ut}}case a:return ut}}}var L=h,I=m,F=f,Q=c,le=t,re=v,de=i,Ke=R,q=S,ue=a,Ee=u,we=s,oe=y,K=!1;function Y(be){return K||(K=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),G(be)||$(be)===h}function G(be){return $(be)===m}function ve(be){return $(be)===f}function te(be){return $(be)===c}function pe(be){return typeof be=="object"&&be!==null&&be.$$typeof===t}function Me(be){return $(be)===v}function Ne(be){return $(be)===i}function Pe(be){return $(be)===R}function ht(be){return $(be)===S}function mt(be){return $(be)===a}function gt(be){return $(be)===u}function it(be){return $(be)===s}function jt(be){return $(be)===y}En.AsyncMode=L,En.ConcurrentMode=I,En.ContextConsumer=F,En.ContextProvider=Q,En.Element=le,En.ForwardRef=re,En.Fragment=de,En.Lazy=Ke,En.Memo=q,En.Portal=ue,En.Profiler=Ee,En.StrictMode=we,En.Suspense=oe,En.isAsyncMode=Y,En.isConcurrentMode=G,En.isContextConsumer=ve,En.isContextProvider=te,En.isElement=pe,En.isForwardRef=Me,En.isFragment=Ne,En.isLazy=Pe,En.isMemo=ht,En.isPortal=mt,En.isProfiler=gt,En.isStrictMode=it,En.isSuspense=jt,En.isValidElementType=N,En.typeOf=$})();rN.exports=En;var uC=rN.exports,aN=uC,Sq={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},wq={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},iN={};iN[aN.ForwardRef]=Sq;iN[aN.Memo]=wq;var Cq=!0;function dC(e,t,a){var i="";return a.split(" ").forEach(function(s){e[s]!==void 0?t.push(e[s]+";"):s&&(i+=s+" ")}),i}var wg=function(t,a,i){var s=t.key+"-"+a.name;(i===!1||Cq===!1)&&t.registered[s]===void 0&&(t.registered[s]=a.styles)},Cg=function(t,a,i){wg(t,a,i);var s=t.key+"-"+a.name;if(t.inserted[a.name]===void 0){var u=a;do t.insert(a===u?"."+s:"",u,t.sheet,!0),u=u.next;while(u!==void 0)}};function Tq(e){for(var t=0,a,i=0,s=e.length;s>=4;++i,s-=4)a=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,a=(a&65535)*1540483477+((a>>>16)*59797<<16),a^=a>>>24,t=(a&65535)*1540483477+((a>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(s){case 3:t^=(e.charCodeAt(i+2)&255)<<16;case 2:t^=(e.charCodeAt(i+1)&255)<<8;case 1:t^=e.charCodeAt(i)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Eq={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Rq=!0,y_=`You have illegal escape sequence in your template literal, most likely inside content's property value.
251
- Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
252
- You can read more about this here:
253
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,kq="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",Dq=/[A-Z]|^ms/g,oN=/_EMO_([^_]+?)_([^]*?)_EMO_/g,fC=function(t){return t.charCodeAt(1)===45},b_=function(t){return t!=null&&typeof t!="boolean"},vS=eN(function(e){return fC(e)?e:e.replace(Dq,"-$&").toLowerCase()}),Zv=function(t,a){switch(t){case"animation":case"animationName":if(typeof a=="string")return a.replace(oN,function(i,s,u){return no={name:s,styles:u,next:no},s})}return Eq[t]!==1&&!fC(t)&&typeof a=="number"&&a!==0?a+"px":a};{var _q=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,Aq=["normal","none","initial","inherit","unset"],Oq=Zv,Mq=/^-ms-/,Nq=/-(.)/g,x_={};Zv=function(t,a){if(t==="content"&&(typeof a!="string"||Aq.indexOf(a)===-1&&!_q.test(a)&&(a.charAt(0)!==a.charAt(a.length-1)||a.charAt(0)!=='"'&&a.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+a+"\"'`");var i=Oq(t,a);return i!==""&&!fC(t)&&t.indexOf("-")!==-1&&x_[t]===void 0&&(x_[t]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+t.replace(Mq,"ms-").replace(Nq,function(s,u){return u.toUpperCase()})+"?")),i}}var sN="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function xh(e,t,a){if(a==null)return"";var i=a;if(i.__emotion_styles!==void 0){if(String(i)==="NO_COMPONENT_SELECTOR")throw new Error(sN);return i}switch(typeof a){case"boolean":return"";case"object":{var s=a;if(s.anim===1)return no={name:s.name,styles:s.styles,next:no},s.name;var u=a;if(u.styles!==void 0){var c=u.next;if(c!==void 0)for(;c!==void 0;)no={name:c.name,styles:c.styles,next:no},c=c.next;var f=u.styles+";";return f}return Pq(e,t,a)}case"function":{if(e!==void 0){var h=no,m=a(e);return no=h,xh(e,t,m)}else console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break}case"string":{var v=[],y=a.replace(oN,function(R,E,k){var O="animation"+v.length;return v.push("const "+O+" = keyframes`"+k.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+O+"}"});v.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(v,["`"+y+"`"]).join(`
254
- `)+`
255
-
256
- You should wrap it with \`css\` like this:
257
-
258
- css\``+y+"`")}break}var x=a;if(t==null)return x;var S=t[x];return S!==void 0?S:x}function Pq(e,t,a){var i="";if(Array.isArray(a))for(var s=0;s<a.length;s++)i+=xh(e,t,a[s])+";";else for(var u in a){var c=a[u];if(typeof c!="object"){var f=c;t!=null&&t[f]!==void 0?i+=u+"{"+t[f]+"}":b_(f)&&(i+=vS(u)+":"+Zv(u,f)+";")}else{if(u==="NO_COMPONENT_SELECTOR"&&Rq)throw new Error(sN);if(Array.isArray(c)&&typeof c[0]=="string"&&(t==null||t[c[0]]===void 0))for(var h=0;h<c.length;h++)b_(c[h])&&(i+=vS(u)+":"+Zv(u,c[h])+";");else{var m=xh(e,t,c);switch(u){case"animation":case"animationName":{i+=vS(u)+":"+m+";";break}default:u==="undefined"&&console.error(kq),i+=u+"{"+m+"}"}}}}return i}var S_=/label:\s*([^\s;{]+)\s*(;|$)/g,no;function Pu(e,t,a){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var i=!0,s="";no=void 0;var u=e[0];if(u==null||u.raw===void 0)i=!1,s+=xh(a,t,u);else{var c=u;c[0]===void 0&&console.error(y_),s+=c[0]}for(var f=1;f<e.length;f++)if(s+=xh(a,t,e[f]),i){var h=u;h[f]===void 0&&console.error(y_),s+=h[f]}S_.lastIndex=0;for(var m="",v;(v=S_.exec(s))!==null;)m+="-"+v[1];var y=Tq(s)+m;{var x={name:y,styles:s,next:no,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}};return x}}var jq=function(t){return t()},lN=YD["useInsertionEffect"]?YD["useInsertionEffect"]:!1,hC=lN||jq,w_=lN||w.useLayoutEffect,Tg=w.createContext(typeof HTMLElement<"u"?xq({key:"css"}):null);Tg.displayName="EmotionCacheContext";Tg.Provider;var Lq=function(){return w.useContext(Tg)},Eg=function(t){return w.forwardRef(function(a,i){var s=w.useContext(Tg);return t(a,s,i)})},zs=w.createContext({});zs.displayName="EmotionThemeContext";var $q=function(t,a){if(typeof a=="function"){var i=a(t);if(i==null||typeof i!="object"||Array.isArray(i))throw new Error("[ThemeProvider] Please return an object from your theme function, i.e. theme={() => ({})}!");return i}if(a==null||typeof a!="object"||Array.isArray(a))throw new Error("[ThemeProvider] Please make your theme prop a plain object");return Yl({},t,a)},zq=m_(function(e){return m_(function(t){return $q(e,t)})}),Fq=function(t){var a=w.useContext(zs);return t.theme!==a&&(a=zq(a)(t.theme)),w.createElement(zs.Provider,{value:a},t.children)},pC={}.hasOwnProperty,C_=function(t){var a=t.split(".");return a[a.length-1]},Iq=function(t){var a=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(t);if(a||(a=/^([A-Za-z0-9$.]+)@/.exec(t),a))return C_(a[1])},Vq=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),Bq=function(t){return t.replace(/\$/g,"-")},Uq=function(t){if(t)for(var a=t.split(`
259
- `),i=0;i<a.length;i++){var s=Iq(a[i]);if(s){if(Vq.has(s))break;if(/^[A-Z]/.test(s))return Bq(s)}}},uw="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",dw="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",Hq=function(t,a){if(typeof a.css=="string"&&a.css.indexOf(":")!==-1)throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+a.css+"`");var i={};for(var s in a)pC.call(a,s)&&(i[s]=a[s]);if(i[uw]=t,typeof globalThis<"u"&&globalThis.EMOTION_RUNTIME_AUTO_LABEL&&a.css&&(typeof a.css!="object"||!("name"in a.css)||typeof a.css.name!="string"||a.css.name.indexOf("-")===-1)){var u=Uq(new Error().stack);u&&(i[dw]=u)}return i},Wq=function(t){var a=t.cache,i=t.serialized,s=t.isStringTag;return wg(a,i,s),hC(function(){return Cg(a,i,s)}),null},cN=Eg(function(e,t,a){var i=e.css;typeof i=="string"&&t.registered[i]!==void 0&&(i=t.registered[i]);var s=e[uw],u=[i],c="";typeof e.className=="string"?c=dC(t.registered,u,e.className):e.className!=null&&(c=e.className+" ");var f=Pu(u,void 0,w.useContext(zs));if(f.name.indexOf("-")===-1){var h=e[dw];h&&(f=Pu([f,"label:"+h+";"]))}c+=t.key+"-"+f.name;var m={};for(var v in e)pC.call(e,v)&&v!=="css"&&v!==uw&&v!==dw&&(m[v]=e[v]);return m.className=c,a&&(m.ref=a),w.createElement(w.Fragment,null,w.createElement(Wq,{cache:t,serialized:f,isStringTag:typeof s=="string"}),w.createElement(s,m))});cN.displayName="EmotionCssPropInternal";var Yq=cN,T_=!0,qq={name:"@emotion/react",version:"11.14.0",main:"dist/emotion-react.cjs.js",module:"dist/emotion-react.esm.js",types:"dist/emotion-react.cjs.d.ts",exports:{".":{types:{import:"./dist/emotion-react.cjs.mjs",default:"./dist/emotion-react.cjs.js"},development:{"edge-light":{module:"./dist/emotion-react.development.edge-light.esm.js",import:"./dist/emotion-react.development.edge-light.cjs.mjs",default:"./dist/emotion-react.development.edge-light.cjs.js"},worker:{module:"./dist/emotion-react.development.edge-light.esm.js",import:"./dist/emotion-react.development.edge-light.cjs.mjs",default:"./dist/emotion-react.development.edge-light.cjs.js"},workerd:{module:"./dist/emotion-react.development.edge-light.esm.js",import:"./dist/emotion-react.development.edge-light.cjs.mjs",default:"./dist/emotion-react.development.edge-light.cjs.js"},browser:{module:"./dist/emotion-react.browser.development.esm.js",import:"./dist/emotion-react.browser.development.cjs.mjs",default:"./dist/emotion-react.browser.development.cjs.js"},module:"./dist/emotion-react.development.esm.js",import:"./dist/emotion-react.development.cjs.mjs",default:"./dist/emotion-react.development.cjs.js"},"edge-light":{module:"./dist/emotion-react.edge-light.esm.js",import:"./dist/emotion-react.edge-light.cjs.mjs",default:"./dist/emotion-react.edge-light.cjs.js"},worker:{module:"./dist/emotion-react.edge-light.esm.js",import:"./dist/emotion-react.edge-light.cjs.mjs",default:"./dist/emotion-react.edge-light.cjs.js"},workerd:{module:"./dist/emotion-react.edge-light.esm.js",import:"./dist/emotion-react.edge-light.cjs.mjs",default:"./dist/emotion-react.edge-light.cjs.js"},browser:{module:"./dist/emotion-react.browser.esm.js",import:"./dist/emotion-react.browser.cjs.mjs",default:"./dist/emotion-react.browser.cjs.js"},module:"./dist/emotion-react.esm.js",import:"./dist/emotion-react.cjs.mjs",default:"./dist/emotion-react.cjs.js"},"./jsx-runtime":{types:{import:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js"},development:{"edge-light":{module:"./jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.esm.js",import:"./jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.cjs.mjs",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.cjs.js"},worker:{module:"./jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.esm.js",import:"./jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.cjs.mjs",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.cjs.js"},workerd:{module:"./jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.esm.js",import:"./jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.cjs.mjs",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.cjs.js"},browser:{module:"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.development.esm.js",import:"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.development.cjs.mjs",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.development.cjs.js"},module:"./jsx-runtime/dist/emotion-react-jsx-runtime.development.esm.js",import:"./jsx-runtime/dist/emotion-react-jsx-runtime.development.cjs.mjs",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.development.cjs.js"},"edge-light":{module:"./jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.esm.js",import:"./jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.cjs.mjs",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.cjs.js"},worker:{module:"./jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.esm.js",import:"./jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.cjs.mjs",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.cjs.js"},workerd:{module:"./jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.esm.js",import:"./jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.cjs.mjs",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.cjs.js"},browser:{module:"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js",import:"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.cjs.mjs",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.cjs.js"},module:"./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js",import:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js"},"./_isolated-hnrs":{types:{import:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js"},development:{"edge-light":{module:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.esm.js",import:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.cjs.mjs",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.cjs.js"},worker:{module:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.esm.js",import:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.cjs.mjs",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.cjs.js"},workerd:{module:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.esm.js",import:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.cjs.mjs",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.cjs.js"},browser:{module:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.development.esm.js",import:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.development.cjs.mjs",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.development.cjs.js"},module:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.esm.js",import:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.cjs.mjs",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.cjs.js"},"edge-light":{module:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.esm.js",import:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.cjs.mjs",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.cjs.js"},worker:{module:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.esm.js",import:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.cjs.mjs",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.cjs.js"},workerd:{module:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.esm.js",import:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.cjs.mjs",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.cjs.js"},browser:{module:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js",import:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.cjs.mjs",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.cjs.js"},module:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js",import:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js"},"./jsx-dev-runtime":{types:{import:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js"},development:{"edge-light":{module:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.esm.js",import:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.cjs.mjs",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.cjs.js"},worker:{module:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.esm.js",import:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.cjs.mjs",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.cjs.js"},workerd:{module:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.esm.js",import:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.cjs.mjs",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.cjs.js"},browser:{module:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.development.esm.js",import:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.development.cjs.mjs",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.development.cjs.js"},module:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.esm.js",import:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.cjs.mjs",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.cjs.js"},"edge-light":{module:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.esm.js",import:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.cjs.mjs",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.cjs.js"},worker:{module:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.esm.js",import:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.cjs.mjs",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.cjs.js"},workerd:{module:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.esm.js",import:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.cjs.mjs",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.cjs.js"},browser:{module:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js",import:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.cjs.mjs",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.cjs.js"},module:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js",import:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js"},"./package.json":"./package.json","./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}},imports:{"#is-development":{development:"./src/conditions/true.ts",default:"./src/conditions/false.ts"},"#is-browser":{"edge-light":"./src/conditions/false.ts",workerd:"./src/conditions/false.ts",worker:"./src/conditions/false.ts",browser:"./src/conditions/true.ts",default:"./src/conditions/is-browser.ts"}},files:["src","dist","jsx-runtime","jsx-dev-runtime","_isolated-hnrs","types/css-prop.d.ts","macro.*"],sideEffects:!1,author:"Emotion Contributors",license:"MIT",scripts:{"test:typescript":"dtslint types"},dependencies:{"@babel/runtime":"^7.18.3","@emotion/babel-plugin":"^11.13.5","@emotion/cache":"^11.14.0","@emotion/serialize":"^1.3.3","@emotion/use-insertion-effect-with-fallbacks":"^1.2.0","@emotion/utils":"^1.4.2","@emotion/weak-memoize":"^0.4.0","hoist-non-react-statics":"^3.3.1"},peerDependencies:{react:">=16.8.0"},peerDependenciesMeta:{"@types/react":{optional:!0}},devDependencies:{"@definitelytyped/dtslint":"0.0.112","@emotion/css":"11.13.5","@emotion/css-prettifier":"1.2.0","@emotion/server":"11.11.0","@emotion/styled":"11.14.0","@types/hoist-non-react-statics":"^3.3.5","html-tag-names":"^1.1.2",react:"16.14.0","svg-tag-names":"^1.1.1",typescript:"^5.4.5"},repository:"https://github.com/emotion-js/emotion/tree/main/packages/react",publishConfig:{access:"public"},"umd:main":"dist/emotion-react.umd.min.js",preconstruct:{entrypoints:["./index.ts","./jsx-runtime.ts","./jsx-dev-runtime.ts","./_isolated-hnrs.ts"],umdName:"emotionReact",exports:{extra:{"./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}}}}},E_=function(t,a){var i=arguments;if(a==null||!pC.call(a,"css"))return w.createElement.apply(void 0,i);var s=i.length,u=new Array(s);u[0]=Yq,u[1]=Hq(t,a);for(var c=2;c<s;c++)u[c]=i[c];return w.createElement.apply(null,u)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(E_||(E_={}));var R_=!1,zh=Eg(function(e,t){!R_&&("className"in e&&e.className||"css"in e&&e.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),R_=!0);var a=e.styles,i=Pu([a],void 0,w.useContext(zs)),s=w.useRef();return w_(function(){var u=t.key+"-global",c=new t.sheet.constructor({key:u,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),f=!1,h=document.querySelector('style[data-emotion="'+u+" "+i.name+'"]');return t.sheet.tags.length&&(c.before=t.sheet.tags[0]),h!==null&&(f=!0,h.setAttribute("data-emotion",u),c.hydrate([h])),s.current=[c,f],function(){c.flush()}},[t]),w_(function(){var u=s.current,c=u[0],f=u[1];if(f){u[1]=!1;return}if(i.next!==void 0&&Cg(t,i.next,!0),c.tags.length){var h=c.tags[c.tags.length-1].nextElementSibling;c.before=h,c.flush()}t.insert("",i,c,!1)},[t,i.name]),null});zh.displayName="EmotionGlobal";function Gq(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return Pu(t)}function mC(){var e=Gq.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var Xq=function e(t){for(var a=t.length,i=0,s="";i<a;i++){var u=t[i];if(u!=null){var c=void 0;switch(typeof u){case"boolean":break;case"object":{if(Array.isArray(u))c=e(u);else{u.styles!==void 0&&u.name!==void 0&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),c="";for(var f in u)u[f]&&f&&(c&&(c+=" "),c+=f)}break}default:c=u}c&&(s&&(s+=" "),s+=c)}}return s};function Kq(e,t,a){var i=[],s=dC(e,i,a);return i.length<2?a:s+t(i)}var Qq=function(t){var a=t.cache,i=t.serializedArr;return hC(function(){for(var s=0;s<i.length;s++)Cg(a,i[s],!1)}),null},Zq=Eg(function(e,t){var a=!1,i=[],s=function(){if(a&&T_)throw new Error("css can only be used during render");for(var m=arguments.length,v=new Array(m),y=0;y<m;y++)v[y]=arguments[y];var x=Pu(v,t.registered);return i.push(x),wg(t,x,!1),t.key+"-"+x.name},u=function(){if(a&&T_)throw new Error("cx can only be used during render");for(var m=arguments.length,v=new Array(m),y=0;y<m;y++)v[y]=arguments[y];return Kq(t.registered,s,Xq(v))},c={css:s,cx:u,theme:w.useContext(zs)},f=e.children(c);return a=!0,w.createElement(w.Fragment,null,w.createElement(Qq,{cache:t,serializedArr:i}),f)});Zq.displayName="EmotionClassNames";{var k_=typeof document<"u",Jq=typeof jest<"u"||typeof vi<"u";if(k_&&!Jq){var D_=typeof globalThis<"u"?globalThis:k_?window:global,__="__EMOTION_REACT_"+qq.version.split(".")[0]+"__";D_[__]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),D_[__]=!0}}const vC=w.createContext({});vC.displayName="ColorModeContext";function Fh(){const e=w.useContext(vC);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}function da(e,t){const{colorMode:a}=Fh();return a==="dark"?t:e}const sv={light:"chakra-ui-light",dark:"chakra-ui-dark"};function eG(e={}){const{preventTransition:t=!0,nonce:a}=e,i={setDataset:s=>{const u=t?i.preventTransition():void 0;document.documentElement.dataset.theme=s,document.documentElement.style.colorScheme=s,u==null||u()},setClassName(s){document.body.classList.add(s?sv.dark:sv.light),document.body.classList.remove(s?sv.light:sv.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(s){return i.query().matches??s==="dark"?"dark":"light"},addListener(s){const u=i.query(),c=f=>{s(f.matches?"dark":"light")};return typeof u.addListener=="function"?u.addListener(c):u.addEventListener("change",c),()=>{typeof u.removeListener=="function"?u.removeListener(c):u.removeEventListener("change",c)}},preventTransition(){const s=document.createElement("style");return s.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),a!==void 0&&(s.nonce=a),document.head.appendChild(s),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(s)})})}}};return i}const tG="chakra-ui-color-mode";function nG(e){return{ssr:!1,type:"localStorage",get(t){if(!(globalThis!=null&&globalThis.document))return t;let a;try{a=localStorage.getItem(e)||t}catch{}return a||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}const rG=nG(tG),A_=()=>{},aG=B3()?w.useLayoutEffect:w.useEffect;function O_(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}const uN=function(t){const{value:a,children:i,options:{useSystemColorMode:s,initialColorMode:u,disableTransitionOnChange:c}={},colorModeManager:f=rG}=t,h=Lq(),m=u==="dark"?"dark":"light",[v,y]=w.useState(()=>O_(f,m)),[x,S]=w.useState(()=>O_(f)),{getSystemTheme:R,setClassName:E,setDataset:k,addListener:O}=w.useMemo(()=>eG({preventTransition:c,nonce:h==null?void 0:h.nonce}),[c,h==null?void 0:h.nonce]),_=u==="system"&&!v?x:v,N=w.useCallback(I=>{const F=I==="system"?R():I;y(F),E(F==="dark"),k(F),f.set(F)},[f,R,E,k]);aG(()=>{u==="system"&&S(R())},[]),w.useEffect(()=>{const I=f.get();if(I){N(I);return}if(u==="system"){N("system");return}N(m)},[f,m,u,N]);const $=w.useCallback(()=>{N(_==="dark"?"light":"dark")},[_,N]);w.useEffect(()=>{if(s)return O(N)},[s,O,N]);const L=w.useMemo(()=>({colorMode:a??_,toggleColorMode:a?A_:$,setColorMode:a?A_:N,forced:a!==void 0}),[_,$,N,a]);return X.jsx(vC.Provider,{value:L,children:i})};uN.displayName="ColorModeProvider";const dN=String.raw,fN=dN`
260
- :root,
261
- :host {
262
- --chakra-vh: 100vh;
263
- }
264
-
265
- @supports (height: -webkit-fill-available) {
266
- :root,
267
- :host {
268
- --chakra-vh: -webkit-fill-available;
269
- }
270
- }
271
-
272
- @supports (height: -moz-fill-available) {
273
- :root,
274
- :host {
275
- --chakra-vh: -moz-fill-available;
276
- }
277
- }
278
-
279
- @supports (height: 100dvh) {
280
- :root,
281
- :host {
282
- --chakra-vh: 100dvh;
283
- }
284
- }
285
- `,iG=()=>X.jsx(zh,{styles:fN}),oG=({scope:e=""})=>X.jsx(zh,{styles:dN`
286
- html {
287
- line-height: 1.5;
288
- -webkit-text-size-adjust: 100%;
289
- font-family: system-ui, sans-serif;
290
- -webkit-font-smoothing: antialiased;
291
- text-rendering: optimizeLegibility;
292
- -moz-osx-font-smoothing: grayscale;
293
- touch-action: manipulation;
294
- }
295
-
296
- body {
297
- position: relative;
298
- min-height: 100%;
299
- margin: 0;
300
- font-feature-settings: "kern";
301
- }
302
-
303
- ${e} :where(*, *::before, *::after) {
304
- border-width: 0;
305
- border-style: solid;
306
- box-sizing: border-box;
307
- word-wrap: break-word;
308
- }
309
-
310
- main {
311
- display: block;
312
- }
313
-
314
- ${e} hr {
315
- border-top-width: 1px;
316
- box-sizing: content-box;
317
- height: 0;
318
- overflow: visible;
319
- }
320
-
321
- ${e} :where(pre, code, kbd,samp) {
322
- font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
323
- font-size: 1em;
324
- }
325
-
326
- ${e} a {
327
- background-color: transparent;
328
- color: inherit;
329
- text-decoration: inherit;
330
- }
331
-
332
- ${e} abbr[title] {
333
- border-bottom: none;
334
- text-decoration: underline;
335
- -webkit-text-decoration: underline dotted;
336
- text-decoration: underline dotted;
337
- }
338
-
339
- ${e} :where(b, strong) {
340
- font-weight: bold;
341
- }
342
-
343
- ${e} small {
344
- font-size: 80%;
345
- }
346
-
347
- ${e} :where(sub,sup) {
348
- font-size: 75%;
349
- line-height: 0;
350
- position: relative;
351
- vertical-align: baseline;
352
- }
353
-
354
- ${e} sub {
355
- bottom: -0.25em;
356
- }
357
-
358
- ${e} sup {
359
- top: -0.5em;
360
- }
361
-
362
- ${e} img {
363
- border-style: none;
364
- }
365
-
366
- ${e} :where(button, input, optgroup, select, textarea) {
367
- font-family: inherit;
368
- font-size: 100%;
369
- line-height: 1.15;
370
- margin: 0;
371
- }
372
-
373
- ${e} :where(button, input) {
374
- overflow: visible;
375
- }
376
-
377
- ${e} :where(button, select) {
378
- text-transform: none;
379
- }
380
-
381
- ${e} :where(
382
- button::-moz-focus-inner,
383
- [type="button"]::-moz-focus-inner,
384
- [type="reset"]::-moz-focus-inner,
385
- [type="submit"]::-moz-focus-inner
386
- ) {
387
- border-style: none;
388
- padding: 0;
389
- }
390
-
391
- ${e} fieldset {
392
- padding: 0.35em 0.75em 0.625em;
393
- }
394
-
395
- ${e} legend {
396
- box-sizing: border-box;
397
- color: inherit;
398
- display: table;
399
- max-width: 100%;
400
- padding: 0;
401
- white-space: normal;
402
- }
403
-
404
- ${e} progress {
405
- vertical-align: baseline;
406
- }
407
-
408
- ${e} textarea {
409
- overflow: auto;
410
- }
411
-
412
- ${e} :where([type="checkbox"], [type="radio"]) {
413
- box-sizing: border-box;
414
- padding: 0;
415
- }
416
-
417
- ${e} input[type="number"]::-webkit-inner-spin-button,
418
- ${e} input[type="number"]::-webkit-outer-spin-button {
419
- -webkit-appearance: none !important;
420
- }
421
-
422
- ${e} input[type="number"] {
423
- -moz-appearance: textfield;
424
- }
425
-
426
- ${e} input[type="search"] {
427
- -webkit-appearance: textfield;
428
- outline-offset: -2px;
429
- }
430
-
431
- ${e} input[type="search"]::-webkit-search-decoration {
432
- -webkit-appearance: none !important;
433
- }
434
-
435
- ${e} ::-webkit-file-upload-button {
436
- -webkit-appearance: button;
437
- font: inherit;
438
- }
439
-
440
- ${e} details {
441
- display: block;
442
- }
443
-
444
- ${e} summary {
445
- display: list-item;
446
- }
447
-
448
- template {
449
- display: none;
450
- }
451
-
452
- [hidden] {
453
- display: none !important;
454
- }
455
-
456
- ${e} :where(
457
- blockquote,
458
- dl,
459
- dd,
460
- h1,
461
- h2,
462
- h3,
463
- h4,
464
- h5,
465
- h6,
466
- hr,
467
- figure,
468
- p,
469
- pre
470
- ) {
471
- margin: 0;
472
- }
473
-
474
- ${e} button {
475
- background: transparent;
476
- padding: 0;
477
- }
478
-
479
- ${e} fieldset {
480
- margin: 0;
481
- padding: 0;
482
- }
483
-
484
- ${e} :where(ol, ul) {
485
- margin: 0;
486
- padding: 0;
487
- }
488
-
489
- ${e} textarea {
490
- resize: vertical;
491
- }
492
-
493
- ${e} :where(button, [role="button"]) {
494
- cursor: pointer;
495
- }
496
-
497
- ${e} button::-moz-focus-inner {
498
- border: 0 !important;
499
- }
500
-
501
- ${e} table {
502
- border-collapse: collapse;
503
- }
504
-
505
- ${e} :where(h1, h2, h3, h4, h5, h6) {
506
- font-size: inherit;
507
- font-weight: inherit;
508
- }
509
-
510
- ${e} :where(button, input, optgroup, select, textarea) {
511
- padding: 0;
512
- line-height: inherit;
513
- color: inherit;
514
- }
515
-
516
- ${e} :where(img, svg, video, canvas, audio, iframe, embed, object) {
517
- display: block;
518
- }
519
-
520
- ${e} :where(img, video) {
521
- max-width: 100%;
522
- height: auto;
523
- }
524
-
525
- [data-js-focus-visible]
526
- :focus:not([data-focus-visible-added]):not(
527
- [data-focus-visible-disabled]
528
- ) {
529
- outline: none;
530
- box-shadow: none;
531
- }
532
-
533
- ${e} select::-ms-expand {
534
- display: none;
535
- }
536
-
537
- ${fN}
538
- `});function sG(e){const{cssVarsRoot:t,theme:a,children:i}=e,s=w.useMemo(()=>k6(a),[a]);return X.jsxs(Fq,{theme:s,children:[X.jsx(lG,{root:t}),i]})}function lG({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return X.jsx(zh,{styles:a=>({[t]:a.__cssVars})})}pa({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});function cG(){const{colorMode:e}=Fh();return X.jsx(zh,{styles:t=>{const a=EM(t,"styles.global"),i=ii(a,{theme:t,colorMode:e});return i?MM(i)(t):void 0}})}const[uG,dG]=pa({strict:!1,name:"PortalManagerContext"});function hN(e){const{children:t,zIndex:a}=e;return X.jsx(uG,{value:{zIndex:a},children:t})}hN.displayName="PortalManager";const pN=w.createContext({getDocument(){return document},getWindow(){return window}});pN.displayName="EnvironmentContext";function mN(e){const{children:t,environment:a,disabled:i}=e,s=w.useRef(null),u=w.useMemo(()=>a||{getDocument:()=>{var f;return((f=s.current)==null?void 0:f.ownerDocument)??document},getWindow:()=>{var f;return((f=s.current)==null?void 0:f.ownerDocument.defaultView)??window}},[a]),c=!i||!a;return X.jsxs(pN.Provider,{value:u,children:[t,c&&X.jsx("span",{id:"__chakra_env",hidden:!0,ref:s})]})}mN.displayName="EnvironmentProvider";const fG=e=>{const{children:t,colorModeManager:a,portalZIndex:i,resetScope:s,resetCSS:u=!0,theme:c={},environment:f,cssVarsRoot:h,disableEnvironment:m,disableGlobalStyle:v}=e,y=X.jsx(mN,{environment:f,disabled:m,children:t});return X.jsx(sG,{theme:c,cssVarsRoot:h,children:X.jsxs(uN,{colorModeManager:a,options:c.config,children:[u?X.jsx(oG,{scope:s}):X.jsx(iG,{}),!v&&X.jsx(cG,{}),i?X.jsx(hN,{zIndex:i,children:y}):y]})})},gC=w.createContext({});function yC(e){const t=w.useRef(null);return t.current===null&&(t.current=e()),t.current}const Ih=w.createContext(null),bC=w.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class hG extends w.Component{getSnapshotBeforeUpdate(t){const a=this.props.childRef.current;if(a&&t.isPresent&&!this.props.isPresent){const i=this.props.sizeRef.current;i.height=a.offsetHeight||0,i.width=a.offsetWidth||0,i.top=a.offsetTop,i.left=a.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function pG({children:e,isPresent:t}){const a=w.useId(),i=w.useRef(null),s=w.useRef({width:0,height:0,top:0,left:0}),{nonce:u}=w.useContext(bC);return w.useInsertionEffect(()=>{const{width:c,height:f,top:h,left:m}=s.current;if(t||!i.current||!c||!f)return;i.current.dataset.motionPopId=a;const v=document.createElement("style");return u&&(v.nonce=u),document.head.appendChild(v),v.sheet&&v.sheet.insertRule(`
539
- [data-motion-pop-id="${a}"] {
540
- position: absolute !important;
541
- width: ${c}px !important;
542
- height: ${f}px !important;
543
- top: ${h}px !important;
544
- left: ${m}px !important;
545
- }
546
- `),()=>{document.head.removeChild(v)}},[t]),X.jsx(hG,{isPresent:t,childRef:i,sizeRef:s,children:w.cloneElement(e,{ref:i})})}const mG=({children:e,initial:t,isPresent:a,onExitComplete:i,custom:s,presenceAffectsLayout:u,mode:c})=>{const f=yC(vG),h=w.useId(),m=w.useCallback(y=>{f.set(y,!0);for(const x of f.values())if(!x)return;i&&i()},[f,i]),v=w.useMemo(()=>({id:h,initial:t,isPresent:a,custom:s,onExitComplete:m,register:y=>(f.set(y,!1),()=>f.delete(y))}),u?[Math.random(),m]:[a,m]);return w.useMemo(()=>{f.forEach((y,x)=>f.set(x,!1))},[a]),w.useEffect(()=>{!a&&!f.size&&i&&i()},[a]),c==="popLayout"&&(e=X.jsx(pG,{isPresent:a,children:e})),X.jsx(Ih.Provider,{value:v,children:e})};function vG(){return new Map}function xC(e=!0){const t=w.useContext(Ih);if(t===null)return[!0,null];const{isPresent:a,onExitComplete:i,register:s}=t,u=w.useId();w.useEffect(()=>{e&&s(u)},[e]);const c=w.useCallback(()=>e&&i&&i(u),[u,i,e]);return!a&&i?[!1,c]:[!0]}function gG(){return yG(w.useContext(Ih))}function yG(e){return e===null?!0:e.isPresent}const lv=e=>e.key||"";function M_(e){const t=[];return w.Children.forEach(e,a=>{w.isValidElement(a)&&t.push(a)}),t}const SC=typeof window<"u",vN=SC?w.useLayoutEffect:w.useEffect,Ql=({children:e,custom:t,initial:a=!0,onExitComplete:i,presenceAffectsLayout:s=!0,mode:u="sync",propagate:c=!1})=>{const[f,h]=xC(c),m=w.useMemo(()=>M_(e),[e]),v=c&&!f?[]:m.map(lv),y=w.useRef(!0),x=w.useRef(m),S=yC(()=>new Map),[R,E]=w.useState(m),[k,O]=w.useState(m);vN(()=>{y.current=!1,x.current=m;for(let $=0;$<k.length;$++){const L=lv(k[$]);v.includes(L)?S.delete(L):S.get(L)!==!0&&S.set(L,!1)}},[k,v.length,v.join("-")]);const _=[];if(m!==R){let $=[...m];for(let L=0;L<k.length;L++){const I=k[L],F=lv(I);v.includes(F)||($.splice(L,0,I),_.push(I))}u==="wait"&&_.length&&($=_),O(M_($)),E(m);return}u==="wait"&&k.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:N}=w.useContext(gC);return X.jsx(X.Fragment,{children:k.map($=>{const L=lv($),I=c&&!f?!1:m===k||v.includes(L),F=()=>{if(S.has(L))S.set(L,!0);else return;let Q=!0;S.forEach(le=>{le||(Q=!1)}),Q&&(N==null||N(),O(x.current),c&&(h==null||h()),i&&i())};return X.jsx(mG,{isPresent:I,initial:!y.current||a?void 0:!1,custom:I?void 0:t,presenceAffectsLayout:s,mode:u,onExitComplete:I?void 0:F,children:$},L)})})},Ra=e=>e;let Hu=Ra,Fs=Ra;Hu=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Fs=(e,t)=>{if(!e)throw new Error(t)};function wC(e){let t;return()=>(t===void 0&&(t=e()),t)}const ju=(e,t,a)=>{const i=t-e;return i===0?1:(a-e)/i},so=e=>e*1e3,Go=e=>e/1e3,bG={skipAnimations:!1,useManualTiming:!1};function xG(e){let t=new Set,a=new Set,i=!1,s=!1;const u=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1};function f(m){u.has(m)&&(h.schedule(m),e()),m(c)}const h={schedule:(m,v=!1,y=!1)=>{const S=y&&i?t:a;return v&&u.add(m),S.has(m)||S.add(m),m},cancel:m=>{a.delete(m),u.delete(m)},process:m=>{if(c=m,i){s=!0;return}i=!0,[t,a]=[a,t],t.forEach(f),t.clear(),i=!1,s&&(s=!1,h.process(m))}};return h}const cv=["read","resolveKeyframes","update","preRender","render","postRender"],SG=40;function gN(e,t){let a=!1,i=!0;const s={delta:0,timestamp:0,isProcessing:!1},u=()=>a=!0,c=cv.reduce((O,_)=>(O[_]=xG(u),O),{}),{read:f,resolveKeyframes:h,update:m,preRender:v,render:y,postRender:x}=c,S=()=>{const O=performance.now();a=!1,s.delta=i?1e3/60:Math.max(Math.min(O-s.timestamp,SG),1),s.timestamp=O,s.isProcessing=!0,f.process(s),h.process(s),m.process(s),v.process(s),y.process(s),x.process(s),s.isProcessing=!1,a&&t&&(i=!1,e(S))},R=()=>{a=!0,i=!0,s.isProcessing||e(S)};return{schedule:cv.reduce((O,_)=>{const N=c[_];return O[_]=($,L=!1,I=!1)=>(a||R(),N.schedule($,L,I)),O},{}),cancel:O=>{for(let _=0;_<cv.length;_++)c[cv[_]].cancel(O)},state:s,steps:c}}const{schedule:Fn,cancel:Is,state:zr,steps:gS}=gN(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ra,!0),yN=w.createContext({strict:!1}),N_={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Lu={};for(const e in N_)Lu[e]={isEnabled:t=>N_[e].some(a=>!!t[a])};function wG(e){for(const t in e)Lu[t]={...Lu[t],...e[t]}}const CG=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Jv(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||CG.has(e)}let bN=e=>!Jv(e);function TG(e){e&&(bN=t=>t.startsWith("on")?!Jv(t):e(t))}try{TG(require("@emotion/is-prop-valid").default)}catch{}function EG(e,t,a){const i={};for(const s in e)s==="values"&&typeof e.values=="object"||(bN(s)||a===!0&&Jv(s)||!t&&!Jv(s)||e.draggable&&s.startsWith("onDrag"))&&(i[s]=e[s]);return i}const P_=new Set;function Rg(e,t,a){e||P_.has(t)||(console.warn(t),a&&console.warn(a),P_.add(t))}function RG(e){if(typeof Proxy>"u")return e;const t=new Map,a=(...i)=>(Rg(!1,"motion() is deprecated. Use motion.create() instead."),e(...i));return new Proxy(a,{get:(i,s)=>s==="create"?e:(t.has(s)||t.set(s,e(s)),t.get(s))})}const kg=w.createContext({});function Sh(e){return typeof e=="string"||Array.isArray(e)}function Dg(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const CC=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],TC=["initial",...CC];function _g(e){return Dg(e.animate)||TC.some(t=>Sh(e[t]))}function xN(e){return!!(_g(e)||e.variants)}function kG(e,t){if(_g(e)){const{initial:a,animate:i}=e;return{initial:a===!1||Sh(a)?a:void 0,animate:Sh(i)?i:void 0}}return e.inherit!==!1?t:{}}function DG(e){const{initial:t,animate:a}=kG(e,w.useContext(kg));return w.useMemo(()=>({initial:t,animate:a}),[j_(t),j_(a)])}function j_(e){return Array.isArray(e)?e.join(" "):e}const _G=Symbol.for("motionComponentSymbol");function mu(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function AG(e,t,a){return w.useCallback(i=>{i&&e.onMount&&e.onMount(i),t&&(i?t.mount(i):t.unmount()),a&&(typeof a=="function"?a(i):mu(a)&&(a.current=i))},[t])}const EC=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),OG="framerAppearId",SN="data-"+EC(OG),{schedule:RC,cancel:Noe}=gN(queueMicrotask,!1),wN=w.createContext({});function MG(e,t,a,i,s){var u,c;const{visualElement:f}=w.useContext(kg),h=w.useContext(yN),m=w.useContext(Ih),v=w.useContext(bC).reducedMotion,y=w.useRef(null);i=i||h.renderer,!y.current&&i&&(y.current=i(e,{visualState:t,parent:f,props:a,presenceContext:m,blockInitialAnimation:m?m.initial===!1:!1,reducedMotionConfig:v}));const x=y.current,S=w.useContext(wN);x&&!x.projection&&s&&(x.type==="html"||x.type==="svg")&&NG(y.current,a,s,S);const R=w.useRef(!1);w.useInsertionEffect(()=>{x&&R.current&&x.update(a,m)});const E=a[SN],k=w.useRef(!!E&&!(!((u=window.MotionHandoffIsComplete)===null||u===void 0)&&u.call(window,E))&&((c=window.MotionHasOptimisedAnimation)===null||c===void 0?void 0:c.call(window,E)));return vN(()=>{x&&(R.current=!0,window.MotionIsMounted=!0,x.updateFeatures(),RC.render(x.render),k.current&&x.animationState&&x.animationState.animateChanges())}),w.useEffect(()=>{x&&(!k.current&&x.animationState&&x.animationState.animateChanges(),k.current&&(queueMicrotask(()=>{var O;(O=window.MotionHandoffMarkAsComplete)===null||O===void 0||O.call(window,E)}),k.current=!1))}),x}function NG(e,t,a,i){const{layoutId:s,layout:u,drag:c,dragConstraints:f,layoutScroll:h,layoutRoot:m}=t;e.projection=new a(e.latestValues,t["data-framer-portal-id"]?void 0:CN(e.parent)),e.projection.setOptions({layoutId:s,layout:u,alwaysMeasureLayout:!!c||f&&mu(f),visualElement:e,animationType:typeof u=="string"?u:"both",initialPromotionConfig:i,layoutScroll:h,layoutRoot:m})}function CN(e){if(e)return e.options.allowProjection!==!1?e.projection:CN(e.parent)}function PG({preloadedFeatures:e,createVisualElement:t,useRender:a,useVisualState:i,Component:s}){var u,c;e&&wG(e);function f(m,v){let y;const x={...w.useContext(bC),...m,layoutId:jG(m)},{isStatic:S}=x,R=DG(m),E=i(m,S);if(!S&&SC){LG(x,e);const k=$G(x);y=k.MeasureLayout,R.visualElement=MG(s,E,x,t,k.ProjectionNode)}return X.jsxs(kg.Provider,{value:R,children:[y&&R.visualElement?X.jsx(y,{visualElement:R.visualElement,...x}):null,a(s,m,AG(E,R.visualElement,v),E,S,R.visualElement)]})}f.displayName=`motion.${typeof s=="string"?s:`create(${(c=(u=s.displayName)!==null&&u!==void 0?u:s.name)!==null&&c!==void 0?c:""})`}`;const h=w.forwardRef(f);return h[_G]=s,h}function jG({layoutId:e}){const t=w.useContext(gC).id;return t&&e!==void 0?t+"-"+e:e}function LG(e,t){const a=w.useContext(yN).strict;if(t&&a){const i="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Hu(!1,i):Fs(!1,i)}}function $G(e){const{drag:t,layout:a}=Lu;if(!t&&!a)return{};const i={...t,...a};return{MeasureLayout:t!=null&&t.isEnabled(e)||a!=null&&a.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}const zG=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function kC(e){return typeof e!="string"||e.includes("-")?!1:!!(zG.indexOf(e)>-1||/[A-Z]/u.test(e))}function L_(e){const t=[{},{}];return e==null||e.values.forEach((a,i)=>{t[0][i]=a.get(),t[1][i]=a.getVelocity()}),t}function DC(e,t,a,i){if(typeof t=="function"){const[s,u]=L_(i);t=t(a!==void 0?a:e.custom,s,u)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,u]=L_(i);t=t(a!==void 0?a:e.custom,s,u)}return t}const fw=e=>Array.isArray(e),FG=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),IG=e=>fw(e)?e[e.length-1]||0:e,Jr=e=>!!(e&&e.getVelocity);function Nv(e){const t=Jr(e)?e.get():e;return FG(t)?t.toValue():t}function VG({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:a},i,s,u){const c={latestValues:BG(i,s,u,e),renderState:t()};return a&&(c.onMount=f=>a({props:i,current:f,...c}),c.onUpdate=f=>a(f)),c}const TN=e=>(t,a)=>{const i=w.useContext(kg),s=w.useContext(Ih),u=()=>VG(e,t,i,s);return a?u():yC(u)};function BG(e,t,a,i){const s={},u=i(e,{});for(const x in u)s[x]=Nv(u[x]);let{initial:c,animate:f}=e;const h=_g(e),m=xN(e);t&&m&&!h&&e.inherit!==!1&&(c===void 0&&(c=t.initial),f===void 0&&(f=t.animate));let v=a?a.initial===!1:!1;v=v||c===!1;const y=v?f:c;if(y&&typeof y!="boolean"&&!Dg(y)){const x=Array.isArray(y)?y:[y];for(let S=0;S<x.length;S++){const R=DC(e,x[S]);if(R){const{transitionEnd:E,transition:k,...O}=R;for(const _ in O){let N=O[_];if(Array.isArray(N)){const $=v?N.length-1:0;N=N[$]}N!==null&&(s[_]=N)}for(const _ in E)s[_]=E[_]}}}return s}const Wu=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Zl=new Set(Wu),EN=e=>t=>typeof t=="string"&&t.startsWith(e),RN=EN("--"),UG=EN("var(--"),_C=e=>UG(e)?HG.test(e.split("/*")[0].trim()):!1,HG=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,kN=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Qo=(e,t,a)=>a>t?t:a<e?e:a,Yu={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},wh={...Yu,transform:e=>Qo(0,1,e)},uv={...Yu,default:1},Vh=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ns=Vh("deg"),lo=Vh("%"),pt=Vh("px"),WG=Vh("vh"),YG=Vh("vw"),$_={...lo,parse:e=>lo.parse(e)/100,transform:e=>lo.transform(e*100)},qG={borderWidth:pt,borderTopWidth:pt,borderRightWidth:pt,borderBottomWidth:pt,borderLeftWidth:pt,borderRadius:pt,radius:pt,borderTopLeftRadius:pt,borderTopRightRadius:pt,borderBottomRightRadius:pt,borderBottomLeftRadius:pt,width:pt,maxWidth:pt,height:pt,maxHeight:pt,top:pt,right:pt,bottom:pt,left:pt,padding:pt,paddingTop:pt,paddingRight:pt,paddingBottom:pt,paddingLeft:pt,margin:pt,marginTop:pt,marginRight:pt,marginBottom:pt,marginLeft:pt,backgroundPositionX:pt,backgroundPositionY:pt},GG={rotate:Ns,rotateX:Ns,rotateY:Ns,rotateZ:Ns,scale:uv,scaleX:uv,scaleY:uv,scaleZ:uv,skew:Ns,skewX:Ns,skewY:Ns,distance:pt,translateX:pt,translateY:pt,translateZ:pt,x:pt,y:pt,z:pt,perspective:pt,transformPerspective:pt,opacity:wh,originX:$_,originY:$_,originZ:pt},z_={...Yu,transform:Math.round},AC={...qG,...GG,zIndex:z_,size:pt,fillOpacity:wh,strokeOpacity:wh,numOctaves:z_},XG={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},KG=Wu.length;function QG(e,t,a){let i="",s=!0;for(let u=0;u<KG;u++){const c=Wu[u],f=e[c];if(f===void 0)continue;let h=!0;if(typeof f=="number"?h=f===(c.startsWith("scale")?1:0):h=parseFloat(f)===0,!h||a){const m=kN(f,AC[c]);if(!h){s=!1;const v=XG[c]||c;i+=`${v}(${m}) `}a&&(t[c]=m)}}return i=i.trim(),a?i=a(t,s?"":i):s&&(i="none"),i}function OC(e,t,a){const{style:i,vars:s,transformOrigin:u}=e;let c=!1,f=!1;for(const h in t){const m=t[h];if(Zl.has(h)){c=!0;continue}else if(RN(h)){s[h]=m;continue}else{const v=kN(m,AC[h]);h.startsWith("origin")?(f=!0,u[h]=v):i[h]=v}}if(t.transform||(c||a?i.transform=QG(t,e.transform,a):i.transform&&(i.transform="none")),f){const{originX:h="50%",originY:m="50%",originZ:v=0}=u;i.transformOrigin=`${h} ${m} ${v}`}}const ZG={offset:"stroke-dashoffset",array:"stroke-dasharray"},JG={offset:"strokeDashoffset",array:"strokeDasharray"};function eX(e,t,a=1,i=0,s=!0){e.pathLength=1;const u=s?ZG:JG;e[u.offset]=pt.transform(-i);const c=pt.transform(t),f=pt.transform(a);e[u.array]=`${c} ${f}`}function F_(e,t,a){return typeof e=="string"?e:pt.transform(t+a*e)}function tX(e,t,a){const i=F_(t,e.x,e.width),s=F_(a,e.y,e.height);return`${i} ${s}`}function MC(e,{attrX:t,attrY:a,attrScale:i,originX:s,originY:u,pathLength:c,pathSpacing:f=1,pathOffset:h=0,...m},v,y){if(OC(e,m,y),v){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:x,style:S,dimensions:R}=e;x.transform&&(R&&(S.transform=x.transform),delete x.transform),R&&(s!==void 0||u!==void 0||S.transform)&&(S.transformOrigin=tX(R,s!==void 0?s:.5,u!==void 0?u:.5)),t!==void 0&&(x.x=t),a!==void 0&&(x.y=a),i!==void 0&&(x.scale=i),c!==void 0&&eX(x,c,f,h,!1)}const NC=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),DN=()=>({...NC(),attrs:{}}),PC=e=>typeof e=="string"&&e.toLowerCase()==="svg";function _N(e,{style:t,vars:a},i,s){Object.assign(e.style,t,s&&s.getProjectionStyles(i));for(const u in a)e.style.setProperty(u,a[u])}const AN=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function ON(e,t,a,i){_N(e,t,void 0,i);for(const s in t.attrs)e.setAttribute(AN.has(s)?s:EC(s),t.attrs[s])}const eg={};function nX(e){Object.assign(eg,e)}function MN(e,{layout:t,layoutId:a}){return Zl.has(e)||e.startsWith("origin")||(t||a!==void 0)&&(!!eg[e]||e==="opacity")}function jC(e,t,a){var i;const{style:s}=e,u={};for(const c in s)(Jr(s[c])||t.style&&Jr(t.style[c])||MN(c,e)||((i=a==null?void 0:a.getValue(c))===null||i===void 0?void 0:i.liveStyle)!==void 0)&&(u[c]=s[c]);return u}function NN(e,t,a){const i=jC(e,t,a);for(const s in e)if(Jr(e[s])||Jr(t[s])){const u=Wu.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;i[u]=e[s]}return i}function rX(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const I_=["x","y","width","height","cx","cy","r"],aX={useVisualState:TN({scrapeMotionValuesFromProps:NN,createRenderState:DN,onUpdate:({props:e,prevProps:t,current:a,renderState:i,latestValues:s})=>{if(!a)return;let u=!!e.drag;if(!u){for(const f in s)if(Zl.has(f)){u=!0;break}}if(!u)return;let c=!t;if(t)for(let f=0;f<I_.length;f++){const h=I_[f];e[h]!==t[h]&&(c=!0)}c&&Fn.read(()=>{rX(a,i),Fn.render(()=>{MC(i,s,PC(a.tagName),e.transformTemplate),ON(a,i)})})}})},iX={useVisualState:TN({scrapeMotionValuesFromProps:jC,createRenderState:NC})};function PN(e,t,a){for(const i in t)!Jr(t[i])&&!MN(i,a)&&(e[i]=t[i])}function oX({transformTemplate:e},t){return w.useMemo(()=>{const a=NC();return OC(a,t,e),Object.assign({},a.vars,a.style)},[t])}function sX(e,t){const a=e.style||{},i={};return PN(i,a,e),Object.assign(i,oX(e,t)),i}function lX(e,t){const a={},i=sX(e,t);return e.drag&&e.dragListener!==!1&&(a.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(a.tabIndex=0),a.style=i,a}function cX(e,t,a,i){const s=w.useMemo(()=>{const u=DN();return MC(u,t,PC(i),e.transformTemplate),{...u.attrs,style:{...u.style}}},[t]);if(e.style){const u={};PN(u,e.style,e),s.style={...u,...s.style}}return s}function uX(e=!1){return(a,i,s,{latestValues:u},c)=>{const h=(kC(a)?cX:lX)(i,u,c,a),m=EG(i,typeof a=="string",e),v=a!==w.Fragment?{...m,...h,ref:s}:{},{children:y}=i,x=w.useMemo(()=>Jr(y)?y.get():y,[y]);return w.createElement(a,{...v,children:x})}}function dX(e,t){return function(i,{forwardMotionProps:s}={forwardMotionProps:!1}){const c={...kC(i)?aX:iX,preloadedFeatures:e,useRender:uX(s),createVisualElement:t,Component:i};return PG(c)}}function jN(e,t){if(!Array.isArray(t))return!1;const a=t.length;if(a!==e.length)return!1;for(let i=0;i<a;i++)if(t[i]!==e[i])return!1;return!0}function Ag(e,t,a){const i=e.getProps();return DC(i,t,a!==void 0?a:i.custom,e)}const fX=wC(()=>window.ScrollTimeline!==void 0);class hX{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,a){for(let i=0;i<this.animations.length;i++)this.animations[i][t]=a}attachTimeline(t,a){const i=this.animations.map(s=>{if(fX()&&s.attachTimeline)return s.attachTimeline(t);if(typeof a=="function")return a(s)});return()=>{i.forEach((s,u)=>{s&&s(),this.animations[u].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let a=0;a<this.animations.length;a++)t=Math.max(t,this.animations[a].duration);return t}runAll(t){this.animations.forEach(a=>a[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class pX extends hX{then(t,a){return Promise.all(this.animations).then(t).catch(a)}}function LC(e,t){return e?e[t]||e.default||e:void 0}const hw=2e4;function LN(e){let t=0;const a=50;let i=e.next(t);for(;!i.done&&t<hw;)t+=a,i=e.next(t);return t>=hw?1/0:t}function $C(e){return typeof e=="function"}function V_(e,t){e.timeline=t,e.onfinish=null}const zC=e=>Array.isArray(e)&&typeof e[0]=="number",mX={linearEasing:void 0};function vX(e,t){const a=wC(e);return()=>{var i;return(i=mX[t])!==null&&i!==void 0?i:a()}}const tg=vX(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),$N=(e,t,a=10)=>{let i="";const s=Math.max(Math.round(t/a),2);for(let u=0;u<s;u++)i+=e(ju(0,s-1,u))+", ";return`linear(${i.substring(0,i.length-2)})`};function zN(e){return!!(typeof e=="function"&&tg()||!e||typeof e=="string"&&(e in pw||tg())||zC(e)||Array.isArray(e)&&e.every(zN))}const Yf=([e,t,a,i])=>`cubic-bezier(${e}, ${t}, ${a}, ${i})`,pw={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Yf([0,.65,.55,1]),circOut:Yf([.55,0,1,.45]),backIn:Yf([.31,.01,.66,-.59]),backOut:Yf([.33,1.53,.69,.99])};function FN(e,t){if(e)return typeof e=="function"&&tg()?$N(e,t):zC(e)?Yf(e):Array.isArray(e)?e.map(a=>FN(a,t)||pw.easeOut):pw[e]}const _i={x:!1,y:!1};function IN(){return _i.x||_i.y}function gX(e,t,a){var i;if(e instanceof Element)return[e];if(typeof e=="string"){let s=document;t&&(s=t.current);const u=(i=a==null?void 0:a[e])!==null&&i!==void 0?i:s.querySelectorAll(e);return u?Array.from(u):[]}return Array.from(e)}function VN(e,t){const a=gX(e),i=new AbortController,s={passive:!0,...t,signal:i.signal};return[a,s,()=>i.abort()]}function B_(e){return t=>{t.pointerType==="touch"||IN()||e(t)}}function yX(e,t,a={}){const[i,s,u]=VN(e,a),c=B_(f=>{const{target:h}=f,m=t(f);if(typeof m!="function"||!h)return;const v=B_(y=>{m(y),h.removeEventListener("pointerleave",v)});h.addEventListener("pointerleave",v,s)});return i.forEach(f=>{f.addEventListener("pointerenter",c,s)}),u}const BN=(e,t)=>t?e===t?!0:BN(e,t.parentElement):!1,FC=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,bX=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function xX(e){return bX.has(e.tagName)||e.tabIndex!==-1}const qf=new WeakSet;function U_(e){return t=>{t.key==="Enter"&&e(t)}}function yS(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const SX=(e,t)=>{const a=e.currentTarget;if(!a)return;const i=U_(()=>{if(qf.has(a))return;yS(a,"down");const s=U_(()=>{yS(a,"up")}),u=()=>yS(a,"cancel");a.addEventListener("keyup",s,t),a.addEventListener("blur",u,t)});a.addEventListener("keydown",i,t),a.addEventListener("blur",()=>a.removeEventListener("keydown",i),t)};function H_(e){return FC(e)&&!IN()}function wX(e,t,a={}){const[i,s,u]=VN(e,a),c=f=>{const h=f.currentTarget;if(!H_(f)||qf.has(h))return;qf.add(h);const m=t(f),v=(S,R)=>{window.removeEventListener("pointerup",y),window.removeEventListener("pointercancel",x),!(!H_(S)||!qf.has(h))&&(qf.delete(h),typeof m=="function"&&m(S,{success:R}))},y=S=>{v(S,a.useGlobalTarget||BN(h,S.target))},x=S=>{v(S,!1)};window.addEventListener("pointerup",y,s),window.addEventListener("pointercancel",x,s)};return i.forEach(f=>{!xX(f)&&f.getAttribute("tabindex")===null&&(f.tabIndex=0),(a.useGlobalTarget?window:f).addEventListener("pointerdown",c,s),f.addEventListener("focus",m=>SX(m,s),s)}),u}function CX(e){return e==="x"||e==="y"?_i[e]?null:(_i[e]=!0,()=>{_i[e]=!1}):_i.x||_i.y?null:(_i.x=_i.y=!0,()=>{_i.x=_i.y=!1})}const UN=new Set(["width","height","top","left","right","bottom",...Wu]);let Pv;function TX(){Pv=void 0}const co={now:()=>(Pv===void 0&&co.set(zr.isProcessing||bG.useManualTiming?zr.timestamp:performance.now()),Pv),set:e=>{Pv=e,queueMicrotask(TX)}};function IC(e,t){e.indexOf(t)===-1&&e.push(t)}function VC(e,t){const a=e.indexOf(t);a>-1&&e.splice(a,1)}class BC{constructor(){this.subscriptions=[]}add(t){return IC(this.subscriptions,t),()=>VC(this.subscriptions,t)}notify(t,a,i){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,a,i);else for(let u=0;u<s;u++){const c=this.subscriptions[u];c&&c(t,a,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function HN(e,t){return t?e*(1e3/t):0}const W_=30,EX=e=>!isNaN(parseFloat(e));class RX{constructor(t,a={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(i,s=!0)=>{const u=co.now();this.updatedAt!==u&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),s&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=a.owner}setCurrent(t){this.current=t,this.updatedAt=co.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=EX(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return Rg(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,a){this.events[t]||(this.events[t]=new BC);const i=this.events[t].add(a);return t==="change"?()=>{i(),Fn.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,a){this.passiveEffect=t,this.stopPassiveEffect=a}set(t,a=!0){!a||!this.passiveEffect?this.updateAndNotify(t,a):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,a,i){this.set(a),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,a=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,a&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=co.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>W_)return 0;const a=Math.min(this.updatedAt-this.prevUpdatedAt,W_);return HN(parseFloat(this.current)-parseFloat(this.prevFrameValue),a)}start(t){return this.stop(),new Promise(a=>{this.hasAnimated=!0,this.animation=t(a),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ch(e,t){return new RX(e,t)}function kX(e,t,a){e.hasValue(t)?e.getValue(t).set(a):e.addValue(t,Ch(a))}function DX(e,t){const a=Ag(e,t);let{transitionEnd:i={},transition:s={},...u}=a||{};u={...u,...i};for(const c in u){const f=IG(u[c]);kX(e,c,f)}}function _X(e){return!!(Jr(e)&&e.add)}function mw(e,t){const a=e.getValue("willChange");if(_X(a))return a.add(t)}function WN(e){return e.props[SN]}const YN=(e,t,a)=>(((1-3*a+3*t)*e+(3*a-6*t))*e+3*t)*e,AX=1e-7,OX=12;function MX(e,t,a,i,s){let u,c,f=0;do c=t+(a-t)/2,u=YN(c,i,s)-e,u>0?a=c:t=c;while(Math.abs(u)>AX&&++f<OX);return c}function Bh(e,t,a,i){if(e===t&&a===i)return Ra;const s=u=>MX(u,0,1,e,a);return u=>u===0||u===1?u:YN(s(u),t,i)}const qN=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,GN=e=>t=>1-e(1-t),XN=Bh(.33,1.53,.69,.99),UC=GN(XN),KN=qN(UC),QN=e=>(e*=2)<1?.5*UC(e):.5*(2-Math.pow(2,-10*(e-1))),HC=e=>1-Math.sin(Math.acos(e)),ZN=GN(HC),JN=qN(HC),eP=e=>/^0[^.\s]+$/u.test(e);function NX(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||eP(e):!0}const ih=e=>Math.round(e*1e5)/1e5,WC=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function PX(e){return e==null}const jX=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,YC=(e,t)=>a=>!!(typeof a=="string"&&jX.test(a)&&a.startsWith(e)||t&&!PX(a)&&Object.prototype.hasOwnProperty.call(a,t)),tP=(e,t,a)=>i=>{if(typeof i!="string")return i;const[s,u,c,f]=i.match(WC);return{[e]:parseFloat(s),[t]:parseFloat(u),[a]:parseFloat(c),alpha:f!==void 0?parseFloat(f):1}},LX=e=>Qo(0,255,e),bS={...Yu,transform:e=>Math.round(LX(e))},Ll={test:YC("rgb","red"),parse:tP("red","green","blue"),transform:({red:e,green:t,blue:a,alpha:i=1})=>"rgba("+bS.transform(e)+", "+bS.transform(t)+", "+bS.transform(a)+", "+ih(wh.transform(i))+")"};function $X(e){let t="",a="",i="",s="";return e.length>5?(t=e.substring(1,3),a=e.substring(3,5),i=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),a=e.substring(2,3),i=e.substring(3,4),s=e.substring(4,5),t+=t,a+=a,i+=i,s+=s),{red:parseInt(t,16),green:parseInt(a,16),blue:parseInt(i,16),alpha:s?parseInt(s,16)/255:1}}const vw={test:YC("#"),parse:$X,transform:Ll.transform},vu={test:YC("hsl","hue"),parse:tP("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:a,alpha:i=1})=>"hsla("+Math.round(e)+", "+lo.transform(ih(t))+", "+lo.transform(ih(a))+", "+ih(wh.transform(i))+")"},Qr={test:e=>Ll.test(e)||vw.test(e)||vu.test(e),parse:e=>Ll.test(e)?Ll.parse(e):vu.test(e)?vu.parse(e):vw.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ll.transform(e):vu.transform(e)},zX=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function FX(e){var t,a;return isNaN(e)&&typeof e=="string"&&(((t=e.match(WC))===null||t===void 0?void 0:t.length)||0)+(((a=e.match(zX))===null||a===void 0?void 0:a.length)||0)>0}const nP="number",rP="color",IX="var",VX="var(",Y_="${}",BX=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Th(e){const t=e.toString(),a=[],i={color:[],number:[],var:[]},s=[];let u=0;const f=t.replace(BX,h=>(Qr.test(h)?(i.color.push(u),s.push(rP),a.push(Qr.parse(h))):h.startsWith(VX)?(i.var.push(u),s.push(IX),a.push(h)):(i.number.push(u),s.push(nP),a.push(parseFloat(h))),++u,Y_)).split(Y_);return{values:a,split:f,indexes:i,types:s}}function aP(e){return Th(e).values}function iP(e){const{split:t,types:a}=Th(e),i=t.length;return s=>{let u="";for(let c=0;c<i;c++)if(u+=t[c],s[c]!==void 0){const f=a[c];f===nP?u+=ih(s[c]):f===rP?u+=Qr.transform(s[c]):u+=s[c]}return u}}const UX=e=>typeof e=="number"?0:e;function HX(e){const t=aP(e);return iP(e)(t.map(UX))}const Vs={test:FX,parse:aP,createTransformer:iP,getAnimatableNone:HX},WX=new Set(["brightness","contrast","saturate","opacity"]);function YX(e){const[t,a]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[i]=a.match(WC)||[];if(!i)return e;const s=a.replace(i,"");let u=WX.has(t)?1:0;return i!==a&&(u*=100),t+"("+u+s+")"}const qX=/\b([a-z-]*)\(.*?\)/gu,gw={...Vs,getAnimatableNone:e=>{const t=e.match(qX);return t?t.map(YX).join(" "):e}},GX={...AC,color:Qr,backgroundColor:Qr,outlineColor:Qr,fill:Qr,stroke:Qr,borderColor:Qr,borderTopColor:Qr,borderRightColor:Qr,borderBottomColor:Qr,borderLeftColor:Qr,filter:gw,WebkitFilter:gw},qC=e=>GX[e];function oP(e,t){let a=qC(e);return a!==gw&&(a=Vs),a.getAnimatableNone?a.getAnimatableNone(t):void 0}const XX=new Set(["auto","none","0"]);function KX(e,t,a){let i=0,s;for(;i<e.length&&!s;){const u=e[i];typeof u=="string"&&!XX.has(u)&&Th(u).values.length&&(s=e[i]),i++}if(s&&a)for(const u of t)e[u]=oP(a,s)}const q_=e=>e===Yu||e===pt,G_=(e,t)=>parseFloat(e.split(", ")[t]),X_=(e,t)=>(a,{transform:i})=>{if(i==="none"||!i)return 0;const s=i.match(/^matrix3d\((.+)\)$/u);if(s)return G_(s[1],t);{const u=i.match(/^matrix\((.+)\)$/u);return u?G_(u[1],e):0}},QX=new Set(["x","y","z"]),ZX=Wu.filter(e=>!QX.has(e));function JX(e){const t=[];return ZX.forEach(a=>{const i=e.getValue(a);i!==void 0&&(t.push([a,i.get()]),i.set(a.startsWith("scale")?1:0))}),t}const $u={width:({x:e},{paddingLeft:t="0",paddingRight:a="0"})=>e.max-e.min-parseFloat(t)-parseFloat(a),height:({y:e},{paddingTop:t="0",paddingBottom:a="0"})=>e.max-e.min-parseFloat(t)-parseFloat(a),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:X_(4,13),y:X_(5,14)};$u.translateX=$u.x;$u.translateY=$u.y;const Vl=new Set;let yw=!1,bw=!1;function sP(){if(bw){const e=Array.from(Vl).filter(i=>i.needsMeasurement),t=new Set(e.map(i=>i.element)),a=new Map;t.forEach(i=>{const s=JX(i);s.length&&(a.set(i,s),i.render())}),e.forEach(i=>i.measureInitialState()),t.forEach(i=>{i.render();const s=a.get(i);s&&s.forEach(([u,c])=>{var f;(f=i.getValue(u))===null||f===void 0||f.set(c)})}),e.forEach(i=>i.measureEndState()),e.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}bw=!1,yw=!1,Vl.forEach(e=>e.complete()),Vl.clear()}function lP(){Vl.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(bw=!0)})}function eK(){lP(),sP()}class GC{constructor(t,a,i,s,u,c=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=a,this.name=i,this.motionValue=s,this.element=u,this.isAsync=c}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Vl.add(this),yw||(yw=!0,Fn.read(lP),Fn.resolveKeyframes(sP))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:a,element:i,motionValue:s}=this;for(let u=0;u<t.length;u++)if(t[u]===null)if(u===0){const c=s==null?void 0:s.get(),f=t[t.length-1];if(c!==void 0)t[0]=c;else if(i&&a){const h=i.readValue(a,f);h!=null&&(t[0]=h)}t[0]===void 0&&(t[0]=f),s&&c===void 0&&s.set(t[0])}else t[u]=t[u-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Vl.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Vl.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const cP=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),tK=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function nK(e){const t=tK.exec(e);if(!t)return[,];const[,a,i,s]=t;return[`--${a??i}`,s]}const rK=4;function uP(e,t,a=1){Fs(a<=rK,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[i,s]=nK(e);if(!i)return;const u=window.getComputedStyle(t).getPropertyValue(i);if(u){const c=u.trim();return cP(c)?parseFloat(c):c}return _C(s)?uP(s,t,a+1):s}const dP=e=>t=>t.test(e),aK={test:e=>e==="auto",parse:e=>e},fP=[Yu,pt,lo,Ns,YG,WG,aK],K_=e=>fP.find(dP(e));class hP extends GC{constructor(t,a,i,s,u){super(t,a,i,s,u,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:a,name:i}=this;if(!a||!a.current)return;super.readKeyframes();for(let h=0;h<t.length;h++){let m=t[h];if(typeof m=="string"&&(m=m.trim(),_C(m))){const v=uP(m,a.current);v!==void 0&&(t[h]=v),h===t.length-1&&(this.finalKeyframe=m)}}if(this.resolveNoneKeyframes(),!UN.has(i)||t.length!==2)return;const[s,u]=t,c=K_(s),f=K_(u);if(c!==f)if(q_(c)&&q_(f))for(let h=0;h<t.length;h++){const m=t[h];typeof m=="string"&&(t[h]=parseFloat(m))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:a}=this,i=[];for(let s=0;s<t.length;s++)NX(t[s])&&i.push(s);i.length&&KX(t,i,a)}measureInitialState(){const{element:t,unresolvedKeyframes:a,name:i}=this;if(!t||!t.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=$u[i](t.measureViewportBox(),window.getComputedStyle(t.current)),a[0]=this.measuredOrigin;const s=a[a.length-1];s!==void 0&&t.getValue(i,s).jump(s,!1)}measureEndState(){var t;const{element:a,name:i,unresolvedKeyframes:s}=this;if(!a||!a.current)return;const u=a.getValue(i);u&&u.jump(this.measuredOrigin,!1);const c=s.length-1,f=s[c];s[c]=$u[i](a.measureViewportBox(),window.getComputedStyle(a.current)),f!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=f),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([h,m])=>{a.getValue(h).set(m)}),this.resolveNoneKeyframes()}}const Q_=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Vs.test(e)||e==="0")&&!e.startsWith("url("));function iK(e){const t=e[0];if(e.length===1)return!0;for(let a=0;a<e.length;a++)if(e[a]!==t)return!0}function oK(e,t,a,i){const s=e[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;const u=e[e.length-1],c=Q_(s,t),f=Q_(u,t);return Hu(c===f,`You are trying to animate ${t} from "${s}" to "${u}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${u} via the \`style\` property.`),!c||!f?!1:iK(e)||(a==="spring"||$C(a))&&i}const sK=e=>e!==null;function Og(e,{repeat:t,repeatType:a="loop"},i){const s=e.filter(sK),u=t&&a!=="loop"&&t%2===1?0:s.length-1;return!u||i===void 0?s[u]:i}const lK=40;class pP{constructor({autoplay:t=!0,delay:a=0,type:i="keyframes",repeat:s=0,repeatDelay:u=0,repeatType:c="loop",...f}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=co.now(),this.options={autoplay:t,delay:a,type:i,repeat:s,repeatDelay:u,repeatType:c,...f},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>lK?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&eK(),this._resolved}onKeyframesResolved(t,a){this.resolvedAt=co.now(),this.hasAttemptedResolve=!0;const{name:i,type:s,velocity:u,delay:c,onComplete:f,onUpdate:h,isGenerator:m}=this.options;if(!m&&!oK(t,i,s,u))if(c)this.options.duration=0;else{h&&h(Og(t,this.options,a)),f&&f(),this.resolveFinishedPromise();return}const v=this.initPlayback(t,a);v!==!1&&(this._resolved={keyframes:t,finalKeyframe:a,...v},this.onPostResolved())}onPostResolved(){}then(t,a){return this.currentFinishedPromise.then(t,a)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const Yn=(e,t,a)=>e+(t-e)*a;function xS(e,t,a){return a<0&&(a+=1),a>1&&(a-=1),a<1/6?e+(t-e)*6*a:a<1/2?t:a<2/3?e+(t-e)*(2/3-a)*6:e}function cK({hue:e,saturation:t,lightness:a,alpha:i}){e/=360,t/=100,a/=100;let s=0,u=0,c=0;if(!t)s=u=c=a;else{const f=a<.5?a*(1+t):a+t-a*t,h=2*a-f;s=xS(h,f,e+1/3),u=xS(h,f,e),c=xS(h,f,e-1/3)}return{red:Math.round(s*255),green:Math.round(u*255),blue:Math.round(c*255),alpha:i}}function ng(e,t){return a=>a>0?t:e}const SS=(e,t,a)=>{const i=e*e,s=a*(t*t-i)+i;return s<0?0:Math.sqrt(s)},uK=[vw,Ll,vu],dK=e=>uK.find(t=>t.test(e));function Z_(e){const t=dK(e);if(Hu(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let a=t.parse(e);return t===vu&&(a=cK(a)),a}const J_=(e,t)=>{const a=Z_(e),i=Z_(t);if(!a||!i)return ng(e,t);const s={...a};return u=>(s.red=SS(a.red,i.red,u),s.green=SS(a.green,i.green,u),s.blue=SS(a.blue,i.blue,u),s.alpha=Yn(a.alpha,i.alpha,u),Ll.transform(s))},fK=(e,t)=>a=>t(e(a)),Uh=(...e)=>e.reduce(fK),xw=new Set(["none","hidden"]);function hK(e,t){return xw.has(e)?a=>a<=0?e:t:a=>a>=1?t:e}function pK(e,t){return a=>Yn(e,t,a)}function XC(e){return typeof e=="number"?pK:typeof e=="string"?_C(e)?ng:Qr.test(e)?J_:gK:Array.isArray(e)?mP:typeof e=="object"?Qr.test(e)?J_:mK:ng}function mP(e,t){const a=[...e],i=a.length,s=e.map((u,c)=>XC(u)(u,t[c]));return u=>{for(let c=0;c<i;c++)a[c]=s[c](u);return a}}function mK(e,t){const a={...e,...t},i={};for(const s in a)e[s]!==void 0&&t[s]!==void 0&&(i[s]=XC(e[s])(e[s],t[s]));return s=>{for(const u in i)a[u]=i[u](s);return a}}function vK(e,t){var a;const i=[],s={color:0,var:0,number:0};for(let u=0;u<t.values.length;u++){const c=t.types[u],f=e.indexes[c][s[c]],h=(a=e.values[f])!==null&&a!==void 0?a:0;i[u]=h,s[c]++}return i}const gK=(e,t)=>{const a=Vs.createTransformer(t),i=Th(e),s=Th(t);return i.indexes.var.length===s.indexes.var.length&&i.indexes.color.length===s.indexes.color.length&&i.indexes.number.length>=s.indexes.number.length?xw.has(e)&&!s.values.length||xw.has(t)&&!i.values.length?hK(e,t):Uh(mP(vK(i,s),s.values),a):(Hu(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),ng(e,t))};function vP(e,t,a){return typeof e=="number"&&typeof t=="number"&&typeof a=="number"?Yn(e,t,a):XC(e)(e,t)}const yK=5;function gP(e,t,a){const i=Math.max(t-yK,0);return HN(a-e(i),t-i)}const Wn={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},wS=.001;function bK({duration:e=Wn.duration,bounce:t=Wn.bounce,velocity:a=Wn.velocity,mass:i=Wn.mass}){let s,u;Hu(e<=so(Wn.maxDuration),"Spring duration must be 10 seconds or less");let c=1-t;c=Qo(Wn.minDamping,Wn.maxDamping,c),e=Qo(Wn.minDuration,Wn.maxDuration,Go(e)),c<1?(s=m=>{const v=m*c,y=v*e,x=v-a,S=Sw(m,c),R=Math.exp(-y);return wS-x/S*R},u=m=>{const y=m*c*e,x=y*a+a,S=Math.pow(c,2)*Math.pow(m,2)*e,R=Math.exp(-y),E=Sw(Math.pow(m,2),c);return(-s(m)+wS>0?-1:1)*((x-S)*R)/E}):(s=m=>{const v=Math.exp(-m*e),y=(m-a)*e+1;return-wS+v*y},u=m=>{const v=Math.exp(-m*e),y=(a-m)*(e*e);return v*y});const f=5/e,h=SK(s,u,f);if(e=so(e),isNaN(h))return{stiffness:Wn.stiffness,damping:Wn.damping,duration:e};{const m=Math.pow(h,2)*i;return{stiffness:m,damping:c*2*Math.sqrt(i*m),duration:e}}}const xK=12;function SK(e,t,a){let i=a;for(let s=1;s<xK;s++)i=i-e(i)/t(i);return i}function Sw(e,t){return e*Math.sqrt(1-t*t)}const wK=["duration","bounce"],CK=["stiffness","damping","mass"];function eA(e,t){return t.some(a=>e[a]!==void 0)}function TK(e){let t={velocity:Wn.velocity,stiffness:Wn.stiffness,damping:Wn.damping,mass:Wn.mass,isResolvedFromDuration:!1,...e};if(!eA(e,CK)&&eA(e,wK))if(e.visualDuration){const a=e.visualDuration,i=2*Math.PI/(a*1.2),s=i*i,u=2*Qo(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:Wn.mass,stiffness:s,damping:u}}else{const a=bK(e);t={...t,...a,mass:Wn.mass},t.isResolvedFromDuration=!0}return t}function yP(e=Wn.visualDuration,t=Wn.bounce){const a=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:i,restDelta:s}=a;const u=a.keyframes[0],c=a.keyframes[a.keyframes.length-1],f={done:!1,value:u},{stiffness:h,damping:m,mass:v,duration:y,velocity:x,isResolvedFromDuration:S}=TK({...a,velocity:-Go(a.velocity||0)}),R=x||0,E=m/(2*Math.sqrt(h*v)),k=c-u,O=Go(Math.sqrt(h/v)),_=Math.abs(k)<5;i||(i=_?Wn.restSpeed.granular:Wn.restSpeed.default),s||(s=_?Wn.restDelta.granular:Wn.restDelta.default);let N;if(E<1){const L=Sw(O,E);N=I=>{const F=Math.exp(-E*O*I);return c-F*((R+E*O*k)/L*Math.sin(L*I)+k*Math.cos(L*I))}}else if(E===1)N=L=>c-Math.exp(-O*L)*(k+(R+O*k)*L);else{const L=O*Math.sqrt(E*E-1);N=I=>{const F=Math.exp(-E*O*I),Q=Math.min(L*I,300);return c-F*((R+E*O*k)*Math.sinh(Q)+L*k*Math.cosh(Q))/L}}const $={calculatedDuration:S&&y||null,next:L=>{const I=N(L);if(S)f.done=L>=y;else{let F=0;E<1&&(F=L===0?so(R):gP(N,L,I));const Q=Math.abs(F)<=i,le=Math.abs(c-I)<=s;f.done=Q&&le}return f.value=f.done?c:I,f},toString:()=>{const L=Math.min(LN($),hw),I=$N(F=>$.next(L*F).value,L,30);return L+"ms "+I}};return $}function tA({keyframes:e,velocity:t=0,power:a=.8,timeConstant:i=325,bounceDamping:s=10,bounceStiffness:u=500,modifyTarget:c,min:f,max:h,restDelta:m=.5,restSpeed:v}){const y=e[0],x={done:!1,value:y},S=Q=>f!==void 0&&Q<f||h!==void 0&&Q>h,R=Q=>f===void 0?h:h===void 0||Math.abs(f-Q)<Math.abs(h-Q)?f:h;let E=a*t;const k=y+E,O=c===void 0?k:c(k);O!==k&&(E=O-y);const _=Q=>-E*Math.exp(-Q/i),N=Q=>O+_(Q),$=Q=>{const le=_(Q),re=N(Q);x.done=Math.abs(le)<=m,x.value=x.done?O:re};let L,I;const F=Q=>{S(x.value)&&(L=Q,I=yP({keyframes:[x.value,R(x.value)],velocity:gP(N,Q,x.value),damping:s,stiffness:u,restDelta:m,restSpeed:v}))};return F(0),{calculatedDuration:null,next:Q=>{let le=!1;return!I&&L===void 0&&(le=!0,$(Q),F(Q)),L!==void 0&&Q>=L?I.next(Q-L):(!le&&$(Q),x)}}}const EK=Bh(.42,0,1,1),RK=Bh(0,0,.58,1),bP=Bh(.42,0,.58,1),kK=e=>Array.isArray(e)&&typeof e[0]!="number",nA={linear:Ra,easeIn:EK,easeInOut:bP,easeOut:RK,circIn:HC,circInOut:JN,circOut:ZN,backIn:UC,backInOut:KN,backOut:XN,anticipate:QN},rA=e=>{if(zC(e)){Fs(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,a,i,s]=e;return Bh(t,a,i,s)}else if(typeof e=="string")return Fs(nA[e]!==void 0,`Invalid easing type '${e}'`),nA[e];return e};function DK(e,t,a){const i=[],s=a||vP,u=e.length-1;for(let c=0;c<u;c++){let f=s(e[c],e[c+1]);if(t){const h=Array.isArray(t)?t[c]||Ra:t;f=Uh(h,f)}i.push(f)}return i}function _K(e,t,{clamp:a=!0,ease:i,mixer:s}={}){const u=e.length;if(Fs(u===t.length,"Both input and output ranges must be the same length"),u===1)return()=>t[0];if(u===2&&t[0]===t[1])return()=>t[1];const c=e[0]===e[1];e[0]>e[u-1]&&(e=[...e].reverse(),t=[...t].reverse());const f=DK(t,i,s),h=f.length,m=v=>{if(c&&v<e[0])return t[0];let y=0;if(h>1)for(;y<e.length-2&&!(v<e[y+1]);y++);const x=ju(e[y],e[y+1],v);return f[y](x)};return a?v=>m(Qo(e[0],e[u-1],v)):m}function AK(e,t){const a=e[e.length-1];for(let i=1;i<=t;i++){const s=ju(0,t,i);e.push(Yn(a,1,s))}}function OK(e){const t=[0];return AK(t,e.length-1),t}function MK(e,t){return e.map(a=>a*t)}function NK(e,t){return e.map(()=>t||bP).splice(0,e.length-1)}function rg({duration:e=300,keyframes:t,times:a,ease:i="easeInOut"}){const s=kK(i)?i.map(rA):rA(i),u={done:!1,value:t[0]},c=MK(a&&a.length===t.length?a:OK(t),e),f=_K(c,t,{ease:Array.isArray(s)?s:NK(t,s)});return{calculatedDuration:e,next:h=>(u.value=f(h),u.done=h>=e,u)}}const PK=e=>{const t=({timestamp:a})=>e(a);return{start:()=>Fn.update(t,!0),stop:()=>Is(t),now:()=>zr.isProcessing?zr.timestamp:co.now()}},jK={decay:tA,inertia:tA,tween:rg,keyframes:rg,spring:yP},LK=e=>e/100;class KC extends pP{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:h}=this.options;h&&h()};const{name:a,motionValue:i,element:s,keyframes:u}=this.options,c=(s==null?void 0:s.KeyframeResolver)||GC,f=(h,m)=>this.onKeyframesResolved(h,m);this.resolver=new c(u,f,a,i,s),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:a="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:u,velocity:c=0}=this.options,f=$C(a)?a:jK[a]||rg;let h,m;f!==rg&&typeof t[0]!="number"&&(Fs(t.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),h=Uh(LK,vP(t[0],t[1])),t=[0,100]);const v=f({...this.options,keyframes:t});u==="mirror"&&(m=f({...this.options,keyframes:[...t].reverse(),velocity:-c})),v.calculatedDuration===null&&(v.calculatedDuration=LN(v));const{calculatedDuration:y}=v,x=y+s,S=x*(i+1)-s;return{generator:v,mirroredGenerator:m,mapPercentToKeyframes:h,calculatedDuration:y,resolvedDuration:x,totalDuration:S}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,a=!1){const{resolved:i}=this;if(!i){const{keyframes:Q}=this.options;return{done:!0,value:Q[Q.length-1]}}const{finalKeyframe:s,generator:u,mirroredGenerator:c,mapPercentToKeyframes:f,keyframes:h,calculatedDuration:m,totalDuration:v,resolvedDuration:y}=i;if(this.startTime===null)return u.next(0);const{delay:x,repeat:S,repeatType:R,repeatDelay:E,onUpdate:k}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-v/this.speed,this.startTime)),a?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const O=this.currentTime-x*(this.speed>=0?1:-1),_=this.speed>=0?O<0:O>v;this.currentTime=Math.max(O,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=v);let N=this.currentTime,$=u;if(S){const Q=Math.min(this.currentTime,v)/y;let le=Math.floor(Q),re=Q%1;!re&&Q>=1&&(re=1),re===1&&le--,le=Math.min(le,S+1),!!(le%2)&&(R==="reverse"?(re=1-re,E&&(re-=E/y)):R==="mirror"&&($=c)),N=Qo(0,1,re)*y}const L=_?{done:!1,value:h[0]}:$.next(N);f&&(L.value=f(L.value));let{done:I}=L;!_&&m!==null&&(I=this.speed>=0?this.currentTime>=v:this.currentTime<=0);const F=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&I);return F&&s!==void 0&&(L.value=Og(h,this.options,s)),k&&k(L.value),F&&this.finish(),L}get duration(){const{resolved:t}=this;return t?Go(t.calculatedDuration):0}get time(){return Go(this.currentTime)}set time(t){t=so(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const a=this.playbackSpeed!==t;this.playbackSpeed=t,a&&(this.time=Go(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=PK,onPlay:a,startTime:i}=this.options;this.driver||(this.driver=t(u=>this.tick(u))),a&&a();const s=this.driver.now();this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=s):this.startTime=i??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const $K=new Set(["opacity","clipPath","filter","transform"]);function zK(e,t,a,{delay:i=0,duration:s=300,repeat:u=0,repeatType:c="loop",ease:f="easeInOut",times:h}={}){const m={[t]:a};h&&(m.offset=h);const v=FN(f,s);return Array.isArray(v)&&(m.easing=v),e.animate(m,{delay:i,duration:s,easing:Array.isArray(v)?"linear":v,fill:"both",iterations:u+1,direction:c==="reverse"?"alternate":"normal"})}const FK=wC(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),ag=10,IK=2e4;function VK(e){return $C(e.type)||e.type==="spring"||!zN(e.ease)}function BK(e,t){const a=new KC({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let i={done:!1,value:e[0]};const s=[];let u=0;for(;!i.done&&u<IK;)i=a.sample(u),s.push(i.value),u+=ag;return{times:void 0,keyframes:s,duration:u-ag,ease:"linear"}}const xP={anticipate:QN,backInOut:KN,circInOut:JN};function UK(e){return e in xP}class aA extends pP{constructor(t){super(t);const{name:a,motionValue:i,element:s,keyframes:u}=this.options;this.resolver=new hP(u,(c,f)=>this.onKeyframesResolved(c,f),a,i,s),this.resolver.scheduleResolve()}initPlayback(t,a){let{duration:i=300,times:s,ease:u,type:c,motionValue:f,name:h,startTime:m}=this.options;if(!f.owner||!f.owner.current)return!1;if(typeof u=="string"&&tg()&&UK(u)&&(u=xP[u]),VK(this.options)){const{onComplete:y,onUpdate:x,motionValue:S,element:R,...E}=this.options,k=BK(t,E);t=k.keyframes,t.length===1&&(t[1]=t[0]),i=k.duration,s=k.times,u=k.ease,c="keyframes"}const v=zK(f.owner.current,h,t,{...this.options,duration:i,times:s,ease:u});return v.startTime=m??this.calcStartTime(),this.pendingTimeline?(V_(v,this.pendingTimeline),this.pendingTimeline=void 0):v.onfinish=()=>{const{onComplete:y}=this.options;f.set(Og(t,this.options,a)),y&&y(),this.cancel(),this.resolveFinishedPromise()},{animation:v,duration:i,times:s,type:c,ease:u,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:a}=t;return Go(a)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:a}=t;return Go(a.currentTime||0)}set time(t){const{resolved:a}=this;if(!a)return;const{animation:i}=a;i.currentTime=so(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:a}=t;return a.playbackRate}set speed(t){const{resolved:a}=this;if(!a)return;const{animation:i}=a;i.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:a}=t;return a.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:a}=t;return a.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:a}=this;if(!a)return Ra;const{animation:i}=a;V_(i,t)}return Ra}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:a}=t;a.playState==="finished"&&this.updateFinishedPromise(),a.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:a}=t;a.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:a,keyframes:i,duration:s,type:u,ease:c,times:f}=t;if(a.playState==="idle"||a.playState==="finished")return;if(this.time){const{motionValue:m,onUpdate:v,onComplete:y,element:x,...S}=this.options,R=new KC({...S,keyframes:i,duration:s,type:u,ease:c,times:f,isGenerator:!0}),E=so(this.time);m.setWithVelocity(R.sample(E-ag).value,R.sample(E).value,ag)}const{onStop:h}=this.options;h&&h(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:a,name:i,repeatDelay:s,repeatType:u,damping:c,type:f}=t;if(!a||!a.owner||!(a.owner.current instanceof HTMLElement))return!1;const{onUpdate:h,transformTemplate:m}=a.owner.getProps();return FK()&&i&&$K.has(i)&&!h&&!m&&!s&&u!=="mirror"&&c!==0&&f!=="inertia"}}const HK={type:"spring",stiffness:500,damping:25,restSpeed:10},WK=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),YK={type:"keyframes",duration:.8},qK={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},GK=(e,{keyframes:t})=>t.length>2?YK:Zl.has(e)?e.startsWith("scale")?WK(t[1]):HK:qK;function XK({when:e,delay:t,delayChildren:a,staggerChildren:i,staggerDirection:s,repeat:u,repeatType:c,repeatDelay:f,from:h,elapsed:m,...v}){return!!Object.keys(v).length}const QC=(e,t,a,i={},s,u)=>c=>{const f=LC(i,e)||{},h=f.delay||i.delay||0;let{elapsed:m=0}=i;m=m-so(h);let v={keyframes:Array.isArray(a)?a:[null,a],ease:"easeOut",velocity:t.getVelocity(),...f,delay:-m,onUpdate:x=>{t.set(x),f.onUpdate&&f.onUpdate(x)},onComplete:()=>{c(),f.onComplete&&f.onComplete()},name:e,motionValue:t,element:u?void 0:s};XK(f)||(v={...v,...GK(e,v)}),v.duration&&(v.duration=so(v.duration)),v.repeatDelay&&(v.repeatDelay=so(v.repeatDelay)),v.from!==void 0&&(v.keyframes[0]=v.from);let y=!1;if((v.type===!1||v.duration===0&&!v.repeatDelay)&&(v.duration=0,v.delay===0&&(y=!0)),y&&!u&&t.get()!==void 0){const x=Og(v.keyframes,f);if(x!==void 0)return Fn.update(()=>{v.onUpdate(x),v.onComplete()}),new pX([])}return!u&&aA.supports(v)?new aA(v):new KC(v)};function KK({protectedKeys:e,needsAnimating:t},a){const i=e.hasOwnProperty(a)&&t[a]!==!0;return t[a]=!1,i}function SP(e,t,{delay:a=0,transitionOverride:i,type:s}={}){var u;let{transition:c=e.getDefaultTransition(),transitionEnd:f,...h}=t;i&&(c=i);const m=[],v=s&&e.animationState&&e.animationState.getState()[s];for(const y in h){const x=e.getValue(y,(u=e.latestValues[y])!==null&&u!==void 0?u:null),S=h[y];if(S===void 0||v&&KK(v,y))continue;const R={delay:a,...LC(c||{},y)};let E=!1;if(window.MotionHandoffAnimation){const O=WN(e);if(O){const _=window.MotionHandoffAnimation(O,y,Fn);_!==null&&(R.startTime=_,E=!0)}}mw(e,y),x.start(QC(y,x,S,e.shouldReduceMotion&&UN.has(y)?{type:!1}:R,e,E));const k=x.animation;k&&m.push(k)}return f&&Promise.all(m).then(()=>{Fn.update(()=>{f&&DX(e,f)})}),m}function ww(e,t,a={}){var i;const s=Ag(e,t,a.type==="exit"?(i=e.presenceContext)===null||i===void 0?void 0:i.custom:void 0);let{transition:u=e.getDefaultTransition()||{}}=s||{};a.transitionOverride&&(u=a.transitionOverride);const c=s?()=>Promise.all(SP(e,s,a)):()=>Promise.resolve(),f=e.variantChildren&&e.variantChildren.size?(m=0)=>{const{delayChildren:v=0,staggerChildren:y,staggerDirection:x}=u;return QK(e,t,v+m,y,x,a)}:()=>Promise.resolve(),{when:h}=u;if(h){const[m,v]=h==="beforeChildren"?[c,f]:[f,c];return m().then(()=>v())}else return Promise.all([c(),f(a.delay)])}function QK(e,t,a=0,i=0,s=1,u){const c=[],f=(e.variantChildren.size-1)*i,h=s===1?(m=0)=>m*i:(m=0)=>f-m*i;return Array.from(e.variantChildren).sort(ZK).forEach((m,v)=>{m.notify("AnimationStart",t),c.push(ww(m,t,{...u,delay:a+h(v)}).then(()=>m.notify("AnimationComplete",t)))}),Promise.all(c)}function ZK(e,t){return e.sortNodePosition(t)}function JK(e,t,a={}){e.notify("AnimationStart",t);let i;if(Array.isArray(t)){const s=t.map(u=>ww(e,u,a));i=Promise.all(s)}else if(typeof t=="string")i=ww(e,t,a);else{const s=typeof t=="function"?Ag(e,t,a.custom):t;i=Promise.all(SP(e,s,a))}return i.then(()=>{e.notify("AnimationComplete",t)})}const eQ=TC.length;function wP(e){if(!e)return;if(!e.isControllingVariants){const a=e.parent?wP(e.parent)||{}:{};return e.props.initial!==void 0&&(a.initial=e.props.initial),a}const t={};for(let a=0;a<eQ;a++){const i=TC[a],s=e.props[i];(Sh(s)||s===!1)&&(t[i]=s)}return t}const tQ=[...CC].reverse(),nQ=CC.length;function rQ(e){return t=>Promise.all(t.map(({animation:a,options:i})=>JK(e,a,i)))}function aQ(e){let t=rQ(e),a=iA(),i=!0;const s=h=>(m,v)=>{var y;const x=Ag(e,v,h==="exit"?(y=e.presenceContext)===null||y===void 0?void 0:y.custom:void 0);if(x){const{transition:S,transitionEnd:R,...E}=x;m={...m,...E,...R}}return m};function u(h){t=h(e)}function c(h){const{props:m}=e,v=wP(e.parent)||{},y=[],x=new Set;let S={},R=1/0;for(let k=0;k<nQ;k++){const O=tQ[k],_=a[O],N=m[O]!==void 0?m[O]:v[O],$=Sh(N),L=O===h?_.isActive:null;L===!1&&(R=k);let I=N===v[O]&&N!==m[O]&&$;if(I&&i&&e.manuallyAnimateOnMount&&(I=!1),_.protectedKeys={...S},!_.isActive&&L===null||!N&&!_.prevProp||Dg(N)||typeof N=="boolean")continue;const F=iQ(_.prevProp,N);let Q=F||O===h&&_.isActive&&!I&&$||k>R&&$,le=!1;const re=Array.isArray(N)?N:[N];let de=re.reduce(s(O),{});L===!1&&(de={});const{prevResolvedValues:Ke={}}=_,q={...Ke,...de},ue=oe=>{Q=!0,x.has(oe)&&(le=!0,x.delete(oe)),_.needsAnimating[oe]=!0;const K=e.getValue(oe);K&&(K.liveStyle=!1)};for(const oe in q){const K=de[oe],Y=Ke[oe];if(S.hasOwnProperty(oe))continue;let G=!1;fw(K)&&fw(Y)?G=!jN(K,Y):G=K!==Y,G?K!=null?ue(oe):x.add(oe):K!==void 0&&x.has(oe)?ue(oe):_.protectedKeys[oe]=!0}_.prevProp=N,_.prevResolvedValues=de,_.isActive&&(S={...S,...de}),i&&e.blockInitialAnimation&&(Q=!1),Q&&(!(I&&F)||le)&&y.push(...re.map(oe=>({animation:oe,options:{type:O}})))}if(x.size){const k={};x.forEach(O=>{const _=e.getBaseTarget(O),N=e.getValue(O);N&&(N.liveStyle=!0),k[O]=_??null}),y.push({animation:k})}let E=!!y.length;return i&&(m.initial===!1||m.initial===m.animate)&&!e.manuallyAnimateOnMount&&(E=!1),i=!1,E?t(y):Promise.resolve()}function f(h,m){var v;if(a[h].isActive===m)return Promise.resolve();(v=e.variantChildren)===null||v===void 0||v.forEach(x=>{var S;return(S=x.animationState)===null||S===void 0?void 0:S.setActive(h,m)}),a[h].isActive=m;const y=c(h);for(const x in a)a[x].protectedKeys={};return y}return{animateChanges:c,setActive:f,setAnimateFunction:u,getState:()=>a,reset:()=>{a=iA(),i=!0}}}function iQ(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!jN(t,e):!1}function Ol(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function iA(){return{animate:Ol(!0),whileInView:Ol(),whileHover:Ol(),whileTap:Ol(),whileDrag:Ol(),whileFocus:Ol(),exit:Ol()}}class Bs{constructor(t){this.isMounted=!1,this.node=t}update(){}}class oQ extends Bs{constructor(t){super(t),t.animationState||(t.animationState=aQ(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Dg(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:a}=this.node.prevProps||{};t!==a&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let sQ=0;class lQ extends Bs{constructor(){super(...arguments),this.id=sQ++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:a}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const s=this.node.animationState.setActive("exit",!t);a&&!t&&s.then(()=>a(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const cQ={animation:{Feature:oQ},exit:{Feature:lQ}};function Eh(e,t,a,i={passive:!0}){return e.addEventListener(t,a,i),()=>e.removeEventListener(t,a)}function Hh(e){return{point:{x:e.pageX,y:e.pageY}}}const uQ=e=>t=>FC(t)&&e(t,Hh(t));function oh(e,t,a,i){return Eh(e,t,uQ(a),i)}const oA=(e,t)=>Math.abs(e-t);function dQ(e,t){const a=oA(e.x,t.x),i=oA(e.y,t.y);return Math.sqrt(a**2+i**2)}class CP{constructor(t,a,{transformPagePoint:i,contextWindow:s,dragSnapToOrigin:u=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=TS(this.lastMoveEventInfo,this.history),x=this.startEvent!==null,S=dQ(y.offset,{x:0,y:0})>=3;if(!x&&!S)return;const{point:R}=y,{timestamp:E}=zr;this.history.push({...R,timestamp:E});const{onStart:k,onMove:O}=this.handlers;x||(k&&k(this.lastMoveEvent,y),this.startEvent=this.lastMoveEvent),O&&O(this.lastMoveEvent,y)},this.handlePointerMove=(y,x)=>{this.lastMoveEvent=y,this.lastMoveEventInfo=CS(x,this.transformPagePoint),Fn.update(this.updatePoint,!0)},this.handlePointerUp=(y,x)=>{this.end();const{onEnd:S,onSessionEnd:R,resumeAnimation:E}=this.handlers;if(this.dragSnapToOrigin&&E&&E(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const k=TS(y.type==="pointercancel"?this.lastMoveEventInfo:CS(x,this.transformPagePoint),this.history);this.startEvent&&S&&S(y,k),R&&R(y,k)},!FC(t))return;this.dragSnapToOrigin=u,this.handlers=a,this.transformPagePoint=i,this.contextWindow=s||window;const c=Hh(t),f=CS(c,this.transformPagePoint),{point:h}=f,{timestamp:m}=zr;this.history=[{...h,timestamp:m}];const{onSessionStart:v}=a;v&&v(t,TS(f,this.history)),this.removeListeners=Uh(oh(this.contextWindow,"pointermove",this.handlePointerMove),oh(this.contextWindow,"pointerup",this.handlePointerUp),oh(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Is(this.updatePoint)}}function CS(e,t){return t?{point:t(e.point)}:e}function sA(e,t){return{x:e.x-t.x,y:e.y-t.y}}function TS({point:e},t){return{point:e,delta:sA(e,TP(t)),offset:sA(e,fQ(t)),velocity:hQ(t,.1)}}function fQ(e){return e[0]}function TP(e){return e[e.length-1]}function hQ(e,t){if(e.length<2)return{x:0,y:0};let a=e.length-1,i=null;const s=TP(e);for(;a>=0&&(i=e[a],!(s.timestamp-i.timestamp>so(t)));)a--;if(!i)return{x:0,y:0};const u=Go(s.timestamp-i.timestamp);if(u===0)return{x:0,y:0};const c={x:(s.x-i.x)/u,y:(s.y-i.y)/u};return c.x===1/0&&(c.x=0),c.y===1/0&&(c.y=0),c}const EP=1e-4,pQ=1-EP,mQ=1+EP,RP=.01,vQ=0-RP,gQ=0+RP;function Ba(e){return e.max-e.min}function yQ(e,t,a){return Math.abs(e-t)<=a}function lA(e,t,a,i=.5){e.origin=i,e.originPoint=Yn(t.min,t.max,e.origin),e.scale=Ba(a)/Ba(t),e.translate=Yn(a.min,a.max,e.origin)-e.originPoint,(e.scale>=pQ&&e.scale<=mQ||isNaN(e.scale))&&(e.scale=1),(e.translate>=vQ&&e.translate<=gQ||isNaN(e.translate))&&(e.translate=0)}function sh(e,t,a,i){lA(e.x,t.x,a.x,i?i.originX:void 0),lA(e.y,t.y,a.y,i?i.originY:void 0)}function cA(e,t,a){e.min=a.min+t.min,e.max=e.min+Ba(t)}function bQ(e,t,a){cA(e.x,t.x,a.x),cA(e.y,t.y,a.y)}function uA(e,t,a){e.min=t.min-a.min,e.max=e.min+Ba(t)}function lh(e,t,a){uA(e.x,t.x,a.x),uA(e.y,t.y,a.y)}function xQ(e,{min:t,max:a},i){return t!==void 0&&e<t?e=i?Yn(t,e,i.min):Math.max(e,t):a!==void 0&&e>a&&(e=i?Yn(a,e,i.max):Math.min(e,a)),e}function dA(e,t,a){return{min:t!==void 0?e.min+t:void 0,max:a!==void 0?e.max+a-(e.max-e.min):void 0}}function SQ(e,{top:t,left:a,bottom:i,right:s}){return{x:dA(e.x,a,s),y:dA(e.y,t,i)}}function fA(e,t){let a=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&([a,i]=[i,a]),{min:a,max:i}}function wQ(e,t){return{x:fA(e.x,t.x),y:fA(e.y,t.y)}}function CQ(e,t){let a=.5;const i=Ba(e),s=Ba(t);return s>i?a=ju(t.min,t.max-i,e.min):i>s&&(a=ju(e.min,e.max-s,t.min)),Qo(0,1,a)}function TQ(e,t){const a={};return t.min!==void 0&&(a.min=t.min-e.min),t.max!==void 0&&(a.max=t.max-e.min),a}const Cw=.35;function EQ(e=Cw){return e===!1?e=0:e===!0&&(e=Cw),{x:hA(e,"left","right"),y:hA(e,"top","bottom")}}function hA(e,t,a){return{min:pA(e,t),max:pA(e,a)}}function pA(e,t){return typeof e=="number"?e:e[t]||0}const mA=()=>({translate:0,scale:1,origin:0,originPoint:0}),gu=()=>({x:mA(),y:mA()}),vA=()=>({min:0,max:0}),rr=()=>({x:vA(),y:vA()});function ni(e){return[e("x"),e("y")]}function kP({top:e,left:t,right:a,bottom:i}){return{x:{min:t,max:a},y:{min:e,max:i}}}function RQ({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function kQ(e,t){if(!t)return e;const a=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:a.y,left:a.x,bottom:i.y,right:i.x}}function ES(e){return e===void 0||e===1}function Tw({scale:e,scaleX:t,scaleY:a}){return!ES(e)||!ES(t)||!ES(a)}function Ml(e){return Tw(e)||DP(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function DP(e){return gA(e.x)||gA(e.y)}function gA(e){return e&&e!=="0%"}function ig(e,t,a){const i=e-a,s=t*i;return a+s}function yA(e,t,a,i,s){return s!==void 0&&(e=ig(e,s,i)),ig(e,a,i)+t}function Ew(e,t=0,a=1,i,s){e.min=yA(e.min,t,a,i,s),e.max=yA(e.max,t,a,i,s)}function _P(e,{x:t,y:a}){Ew(e.x,t.translate,t.scale,t.originPoint),Ew(e.y,a.translate,a.scale,a.originPoint)}const bA=.999999999999,xA=1.0000000000001;function DQ(e,t,a,i=!1){const s=a.length;if(!s)return;t.x=t.y=1;let u,c;for(let f=0;f<s;f++){u=a[f],c=u.projectionDelta;const{visualElement:h}=u.options;h&&h.props.style&&h.props.style.display==="contents"||(i&&u.options.layoutScroll&&u.scroll&&u!==u.root&&bu(e,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),c&&(t.x*=c.x.scale,t.y*=c.y.scale,_P(e,c)),i&&Ml(u.latestValues)&&bu(e,u.latestValues))}t.x<xA&&t.x>bA&&(t.x=1),t.y<xA&&t.y>bA&&(t.y=1)}function yu(e,t){e.min=e.min+t,e.max=e.max+t}function SA(e,t,a,i,s=.5){const u=Yn(e.min,e.max,s);Ew(e,t,a,u,i)}function bu(e,t){SA(e.x,t.x,t.scaleX,t.scale,t.originX),SA(e.y,t.y,t.scaleY,t.scale,t.originY)}function AP(e,t){return kP(kQ(e.getBoundingClientRect(),t))}function _Q(e,t,a){const i=AP(e,a),{scroll:s}=t;return s&&(yu(i.x,s.offset.x),yu(i.y,s.offset.y)),i}const OP=({current:e})=>e?e.ownerDocument.defaultView:null,AQ=new WeakMap;class OQ{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=rr(),this.visualElement=t}start(t,{snapToCursor:a=!1}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const s=v=>{const{dragSnapToOrigin:y}=this.getProps();y?this.pauseAnimation():this.stopAnimation(),a&&this.snapToCursor(Hh(v).point)},u=(v,y)=>{const{drag:x,dragPropagation:S,onDragStart:R}=this.getProps();if(x&&!S&&(this.openDragLock&&this.openDragLock(),this.openDragLock=CX(x),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ni(k=>{let O=this.getAxisMotionValue(k).get()||0;if(lo.test(O)){const{projection:_}=this.visualElement;if(_&&_.layout){const N=_.layout.layoutBox[k];N&&(O=Ba(N)*(parseFloat(O)/100))}}this.originPoint[k]=O}),R&&Fn.postRender(()=>R(v,y)),mw(this.visualElement,"transform");const{animationState:E}=this.visualElement;E&&E.setActive("whileDrag",!0)},c=(v,y)=>{const{dragPropagation:x,dragDirectionLock:S,onDirectionLock:R,onDrag:E}=this.getProps();if(!x&&!this.openDragLock)return;const{offset:k}=y;if(S&&this.currentDirection===null){this.currentDirection=MQ(k),this.currentDirection!==null&&R&&R(this.currentDirection);return}this.updateAxis("x",y.point,k),this.updateAxis("y",y.point,k),this.visualElement.render(),E&&E(v,y)},f=(v,y)=>this.stop(v,y),h=()=>ni(v=>{var y;return this.getAnimationState(v)==="paused"&&((y=this.getAxisMotionValue(v).animation)===null||y===void 0?void 0:y.play())}),{dragSnapToOrigin:m}=this.getProps();this.panSession=new CP(t,{onSessionStart:s,onStart:u,onMove:c,onSessionEnd:f,resumeAnimation:h},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:m,contextWindow:OP(this.visualElement)})}stop(t,a){const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:s}=a;this.startAnimation(s);const{onDragEnd:u}=this.getProps();u&&Fn.postRender(()=>u(t,a))}cancel(){this.isDragging=!1;const{projection:t,animationState:a}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),a&&a.setActive("whileDrag",!1)}updateAxis(t,a,i){const{drag:s}=this.getProps();if(!i||!dv(t,s,this.currentDirection))return;const u=this.getAxisMotionValue(t);let c=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(c=xQ(c,this.constraints[t],this.elastic[t])),u.set(c)}resolveConstraints(){var t;const{dragConstraints:a,dragElastic:i}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,u=this.constraints;a&&mu(a)?this.constraints||(this.constraints=this.resolveRefConstraints()):a&&s?this.constraints=SQ(s.layoutBox,a):this.constraints=!1,this.elastic=EQ(i),u!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&ni(c=>{this.constraints!==!1&&this.getAxisMotionValue(c)&&(this.constraints[c]=TQ(s.layoutBox[c],this.constraints[c]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:a}=this.getProps();if(!t||!mu(t))return!1;const i=t.current;Fs(i!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const u=_Q(i,s.root,this.visualElement.getTransformPagePoint());let c=wQ(s.layout.layoutBox,u);if(a){const f=a(RQ(c));this.hasMutatedConstraints=!!f,f&&(c=kP(f))}return c}startAnimation(t){const{drag:a,dragMomentum:i,dragElastic:s,dragTransition:u,dragSnapToOrigin:c,onDragTransitionEnd:f}=this.getProps(),h=this.constraints||{},m=ni(v=>{if(!dv(v,a,this.currentDirection))return;let y=h&&h[v]||{};c&&(y={min:0,max:0});const x=s?200:1e6,S=s?40:1e7,R={type:"inertia",velocity:i?t[v]:0,bounceStiffness:x,bounceDamping:S,timeConstant:750,restDelta:1,restSpeed:10,...u,...y};return this.startAxisValueAnimation(v,R)});return Promise.all(m).then(f)}startAxisValueAnimation(t,a){const i=this.getAxisMotionValue(t);return mw(this.visualElement,t),i.start(QC(t,i,0,a,this.visualElement,!1))}stopAnimation(){ni(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ni(t=>{var a;return(a=this.getAxisMotionValue(t).animation)===null||a===void 0?void 0:a.pause()})}getAnimationState(t){var a;return(a=this.getAxisMotionValue(t).animation)===null||a===void 0?void 0:a.state}getAxisMotionValue(t){const a=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps(),s=i[a];return s||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){ni(a=>{const{drag:i}=this.getProps();if(!dv(a,i,this.currentDirection))return;const{projection:s}=this.visualElement,u=this.getAxisMotionValue(a);if(s&&s.layout){const{min:c,max:f}=s.layout.layoutBox[a];u.set(t[a]-Yn(c,f,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:a}=this.getProps(),{projection:i}=this.visualElement;if(!mu(a)||!i||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};ni(c=>{const f=this.getAxisMotionValue(c);if(f&&this.constraints!==!1){const h=f.get();s[c]=CQ({min:h,max:h},this.constraints[c])}});const{transformTemplate:u}=this.visualElement.getProps();this.visualElement.current.style.transform=u?u({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),ni(c=>{if(!dv(c,t,null))return;const f=this.getAxisMotionValue(c),{min:h,max:m}=this.constraints[c];f.set(Yn(h,m,s[c]))})}addListeners(){if(!this.visualElement.current)return;AQ.set(this.visualElement,this);const t=this.visualElement.current,a=oh(t,"pointerdown",h=>{const{drag:m,dragListener:v=!0}=this.getProps();m&&v&&this.start(h)}),i=()=>{const{dragConstraints:h}=this.getProps();mu(h)&&h.current&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,u=s.addEventListener("measure",i);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),Fn.read(i);const c=Eh(window,"resize",()=>this.scalePositionWithinConstraints()),f=s.addEventListener("didUpdate",({delta:h,hasLayoutChanged:m})=>{this.isDragging&&m&&(ni(v=>{const y=this.getAxisMotionValue(v);y&&(this.originPoint[v]+=h[v].translate,y.set(y.get()+h[v].translate))}),this.visualElement.render())});return()=>{c(),a(),u(),f&&f()}}getProps(){const t=this.visualElement.getProps(),{drag:a=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:u=!1,dragElastic:c=Cw,dragMomentum:f=!0}=t;return{...t,drag:a,dragDirectionLock:i,dragPropagation:s,dragConstraints:u,dragElastic:c,dragMomentum:f}}}function dv(e,t,a){return(t===!0||t===e)&&(a===null||a===e)}function MQ(e,t=10){let a=null;return Math.abs(e.y)>t?a="y":Math.abs(e.x)>t&&(a="x"),a}class NQ extends Bs{constructor(t){super(t),this.removeGroupControls=Ra,this.removeListeners=Ra,this.controls=new OQ(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ra}unmount(){this.removeGroupControls(),this.removeListeners()}}const wA=e=>(t,a)=>{e&&Fn.postRender(()=>e(t,a))};class PQ extends Bs{constructor(){super(...arguments),this.removePointerDownListener=Ra}onPointerDown(t){this.session=new CP(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:OP(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:a,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:wA(t),onStart:wA(a),onMove:i,onEnd:(u,c)=>{delete this.session,s&&Fn.postRender(()=>s(u,c))}}}mount(){this.removePointerDownListener=oh(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const jv={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function CA(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const zf={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(pt.test(e))e=parseFloat(e);else return e;const a=CA(e,t.target.x),i=CA(e,t.target.y);return`${a}% ${i}%`}},jQ={correct:(e,{treeScale:t,projectionDelta:a})=>{const i=e,s=Vs.parse(e);if(s.length>5)return i;const u=Vs.createTransformer(e),c=typeof s[0]!="number"?1:0,f=a.x.scale*t.x,h=a.y.scale*t.y;s[0+c]/=f,s[1+c]/=h;const m=Yn(f,h,.5);return typeof s[2+c]=="number"&&(s[2+c]/=m),typeof s[3+c]=="number"&&(s[3+c]/=m),u(s)}};class LQ extends w.Component{componentDidMount(){const{visualElement:t,layoutGroup:a,switchLayoutGroup:i,layoutId:s}=this.props,{projection:u}=t;nX($Q),u&&(a.group&&a.group.add(u),i&&i.register&&s&&i.register(u),u.root.didUpdate(),u.addEventListener("animationComplete",()=>{this.safeToRemove()}),u.setOptions({...u.options,onExitComplete:()=>this.safeToRemove()})),jv.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:a,visualElement:i,drag:s,isPresent:u}=this.props,c=i.projection;return c&&(c.isPresent=u,s||t.layoutDependency!==a||a===void 0?c.willUpdate():this.safeToRemove(),t.isPresent!==u&&(u?c.promote():c.relegate()||Fn.postRender(()=>{const f=c.getStack();(!f||!f.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),RC.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:a,switchLayoutGroup:i}=this.props,{projection:s}=t;s&&(s.scheduleCheckAfterUnmount(),a&&a.group&&a.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function MP(e){const[t,a]=xC(),i=w.useContext(gC);return X.jsx(LQ,{...e,layoutGroup:i,switchLayoutGroup:w.useContext(wN),isPresent:t,safeToRemove:a})}const $Q={borderRadius:{...zf,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:zf,borderTopRightRadius:zf,borderBottomLeftRadius:zf,borderBottomRightRadius:zf,boxShadow:jQ};function zQ(e,t,a){const i=Jr(e)?e:Ch(e);return i.start(QC("",i,t,a)),i.animation}function FQ(e){return e instanceof SVGElement&&e.tagName!=="svg"}const IQ=(e,t)=>e.depth-t.depth;class VQ{constructor(){this.children=[],this.isDirty=!1}add(t){IC(this.children,t),this.isDirty=!0}remove(t){VC(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(IQ),this.isDirty=!1,this.children.forEach(t)}}function BQ(e,t){const a=co.now(),i=({timestamp:s})=>{const u=s-a;u>=t&&(Is(i),e(u-t))};return Fn.read(i,!0),()=>Is(i)}const NP=["TopLeft","TopRight","BottomLeft","BottomRight"],UQ=NP.length,TA=e=>typeof e=="string"?parseFloat(e):e,EA=e=>typeof e=="number"||pt.test(e);function HQ(e,t,a,i,s,u){s?(e.opacity=Yn(0,a.opacity!==void 0?a.opacity:1,WQ(i)),e.opacityExit=Yn(t.opacity!==void 0?t.opacity:1,0,YQ(i))):u&&(e.opacity=Yn(t.opacity!==void 0?t.opacity:1,a.opacity!==void 0?a.opacity:1,i));for(let c=0;c<UQ;c++){const f=`border${NP[c]}Radius`;let h=RA(t,f),m=RA(a,f);if(h===void 0&&m===void 0)continue;h||(h=0),m||(m=0),h===0||m===0||EA(h)===EA(m)?(e[f]=Math.max(Yn(TA(h),TA(m),i),0),(lo.test(m)||lo.test(h))&&(e[f]+="%")):e[f]=m}(t.rotate||a.rotate)&&(e.rotate=Yn(t.rotate||0,a.rotate||0,i))}function RA(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const WQ=PP(0,.5,ZN),YQ=PP(.5,.95,Ra);function PP(e,t,a){return i=>i<e?0:i>t?1:a(ju(e,t,i))}function kA(e,t){e.min=t.min,e.max=t.max}function ei(e,t){kA(e.x,t.x),kA(e.y,t.y)}function DA(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function _A(e,t,a,i,s){return e-=t,e=ig(e,1/a,i),s!==void 0&&(e=ig(e,1/s,i)),e}function qQ(e,t=0,a=1,i=.5,s,u=e,c=e){if(lo.test(t)&&(t=parseFloat(t),t=Yn(c.min,c.max,t/100)-c.min),typeof t!="number")return;let f=Yn(u.min,u.max,i);e===u&&(f-=t),e.min=_A(e.min,t,a,f,s),e.max=_A(e.max,t,a,f,s)}function AA(e,t,[a,i,s],u,c){qQ(e,t[a],t[i],t[s],t.scale,u,c)}const GQ=["x","scaleX","originX"],XQ=["y","scaleY","originY"];function OA(e,t,a,i){AA(e.x,t,GQ,a?a.x:void 0,i?i.x:void 0),AA(e.y,t,XQ,a?a.y:void 0,i?i.y:void 0)}function MA(e){return e.translate===0&&e.scale===1}function jP(e){return MA(e.x)&&MA(e.y)}function NA(e,t){return e.min===t.min&&e.max===t.max}function KQ(e,t){return NA(e.x,t.x)&&NA(e.y,t.y)}function PA(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function LP(e,t){return PA(e.x,t.x)&&PA(e.y,t.y)}function jA(e){return Ba(e.x)/Ba(e.y)}function LA(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class QQ{constructor(){this.members=[]}add(t){IC(this.members,t),t.scheduleRender()}remove(t){if(VC(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const a=this.members[this.members.length-1];a&&this.promote(a)}}relegate(t){const a=this.members.findIndex(s=>t===s);if(a===0)return!1;let i;for(let s=a;s>=0;s--){const u=this.members[s];if(u.isPresent!==!1){i=u;break}}return i?(this.promote(i),!0):!1}promote(t,a){const i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,a&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:s}=t.options;s===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:a,resumingFrom:i}=t;a.onExitComplete&&a.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function ZQ(e,t,a){let i="";const s=e.x.translate/t.x,u=e.y.translate/t.y,c=(a==null?void 0:a.z)||0;if((s||u||c)&&(i=`translate3d(${s}px, ${u}px, ${c}px) `),(t.x!==1||t.y!==1)&&(i+=`scale(${1/t.x}, ${1/t.y}) `),a){const{transformPerspective:m,rotate:v,rotateX:y,rotateY:x,skewX:S,skewY:R}=a;m&&(i=`perspective(${m}px) ${i}`),v&&(i+=`rotate(${v}deg) `),y&&(i+=`rotateX(${y}deg) `),x&&(i+=`rotateY(${x}deg) `),S&&(i+=`skewX(${S}deg) `),R&&(i+=`skewY(${R}deg) `)}const f=e.x.scale*t.x,h=e.y.scale*t.y;return(f!==1||h!==1)&&(i+=`scale(${f}, ${h})`),i||"none"}const Nl={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Gf=typeof window<"u"&&window.MotionDebug!==void 0,RS=["","X","Y","Z"],JQ={visibility:"hidden"},$A=1e3;let eZ=0;function kS(e,t,a,i){const{latestValues:s}=t;s[e]&&(a[e]=s[e],t.setStaticValue(e,0),i&&(i[e]=0))}function $P(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const a=WN(t);if(window.MotionHasOptimisedAnimation(a,"transform")){const{layout:s,layoutId:u}=e.options;window.MotionCancelOptimisedAnimation(a,"transform",Fn,!(s||u))}const{parent:i}=e;i&&!i.hasCheckedOptimisedAppear&&$P(i)}function zP({attachResizeListener:e,defaultParent:t,measureScroll:a,checkIsScrollRoot:i,resetTransform:s}){return class{constructor(c={},f=t==null?void 0:t()){this.id=eZ++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Gf&&(Nl.totalNodes=Nl.resolvedTargetDeltas=Nl.recalculatedProjection=0),this.nodes.forEach(rZ),this.nodes.forEach(lZ),this.nodes.forEach(cZ),this.nodes.forEach(aZ),Gf&&window.MotionDebug.record(Nl)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=c,this.root=f?f.root||f:this,this.path=f?[...f.path,f]:[],this.parent=f,this.depth=f?f.depth+1:0;for(let h=0;h<this.path.length;h++)this.path[h].shouldResetTransform=!0;this.root===this&&(this.nodes=new VQ)}addEventListener(c,f){return this.eventHandlers.has(c)||this.eventHandlers.set(c,new BC),this.eventHandlers.get(c).add(f)}notifyListeners(c,...f){const h=this.eventHandlers.get(c);h&&h.notify(...f)}hasListeners(c){return this.eventHandlers.has(c)}mount(c,f=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=FQ(c),this.instance=c;const{layoutId:h,layout:m,visualElement:v}=this.options;if(v&&!v.current&&v.mount(c),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),f&&(m||h)&&(this.isLayoutDirty=!0),e){let y;const x=()=>this.root.updateBlockedByResize=!1;e(c,()=>{this.root.updateBlockedByResize=!0,y&&y(),y=BQ(x,250),jv.hasAnimatedSinceResize&&(jv.hasAnimatedSinceResize=!1,this.nodes.forEach(FA))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&v&&(h||m)&&this.addEventListener("didUpdate",({delta:y,hasLayoutChanged:x,hasRelativeTargetChanged:S,layout:R})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const E=this.options.transition||v.getDefaultTransition()||pZ,{onLayoutAnimationStart:k,onLayoutAnimationComplete:O}=v.getProps(),_=!this.targetLayout||!LP(this.targetLayout,R)||S,N=!x&&S;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||N||x&&(_||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(y,N);const $={...LC(E,"layout"),onPlay:k,onComplete:O};(v.shouldReduceMotion||this.options.layoutRoot)&&($.delay=0,$.type=!1),this.startAnimation($)}else x||FA(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=R})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const c=this.getStack();c&&c.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Is(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(uZ),this.animationId++)}getTransformTemplate(){const{visualElement:c}=this.options;return c&&c.getProps().transformTemplate}willUpdate(c=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&$P(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let v=0;v<this.path.length;v++){const y=this.path[v];y.shouldResetTransform=!0,y.updateScroll("snapshot"),y.options.layoutRoot&&y.willUpdate(!1)}const{layoutId:f,layout:h}=this.options;if(f===void 0&&!h)return;const m=this.getTransformTemplate();this.prevTransformTemplateValue=m?m(this.latestValues,""):void 0,this.updateSnapshot(),c&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(zA);return}this.isUpdating||this.nodes.forEach(oZ),this.isUpdating=!1,this.nodes.forEach(sZ),this.nodes.forEach(tZ),this.nodes.forEach(nZ),this.clearAllSnapshots();const f=co.now();zr.delta=Qo(0,1e3/60,f-zr.timestamp),zr.timestamp=f,zr.isProcessing=!0,gS.update.process(zr),gS.preRender.process(zr),gS.render.process(zr),zr.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,RC.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(iZ),this.sharedNodes.forEach(dZ)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Fn.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Fn.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let h=0;h<this.path.length;h++)this.path[h].updateScroll();const c=this.layout;this.layout=this.measure(!1),this.layoutCorrected=rr(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:f}=this.options;f&&f.notify("LayoutMeasure",this.layout.layoutBox,c?c.layoutBox:void 0)}updateScroll(c="measure"){let f=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===c&&(f=!1),f){const h=i(this.instance);this.scroll={animationId:this.root.animationId,phase:c,isRoot:h,offset:a(this.instance),wasRoot:this.scroll?this.scroll.isRoot:h}}}resetTransform(){if(!s)return;const c=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,f=this.projectionDelta&&!jP(this.projectionDelta),h=this.getTransformTemplate(),m=h?h(this.latestValues,""):void 0,v=m!==this.prevTransformTemplateValue;c&&(f||Ml(this.latestValues)||v)&&(s(this.instance,m),this.shouldResetTransform=!1,this.scheduleRender())}measure(c=!0){const f=this.measurePageBox();let h=this.removeElementScroll(f);return c&&(h=this.removeTransform(h)),mZ(h),{animationId:this.root.animationId,measuredBox:f,layoutBox:h,latestValues:{},source:this.id}}measurePageBox(){var c;const{visualElement:f}=this.options;if(!f)return rr();const h=f.measureViewportBox();if(!(((c=this.scroll)===null||c===void 0?void 0:c.wasRoot)||this.path.some(vZ))){const{scroll:v}=this.root;v&&(yu(h.x,v.offset.x),yu(h.y,v.offset.y))}return h}removeElementScroll(c){var f;const h=rr();if(ei(h,c),!((f=this.scroll)===null||f===void 0)&&f.wasRoot)return h;for(let m=0;m<this.path.length;m++){const v=this.path[m],{scroll:y,options:x}=v;v!==this.root&&y&&x.layoutScroll&&(y.wasRoot&&ei(h,c),yu(h.x,y.offset.x),yu(h.y,y.offset.y))}return h}applyTransform(c,f=!1){const h=rr();ei(h,c);for(let m=0;m<this.path.length;m++){const v=this.path[m];!f&&v.options.layoutScroll&&v.scroll&&v!==v.root&&bu(h,{x:-v.scroll.offset.x,y:-v.scroll.offset.y}),Ml(v.latestValues)&&bu(h,v.latestValues)}return Ml(this.latestValues)&&bu(h,this.latestValues),h}removeTransform(c){const f=rr();ei(f,c);for(let h=0;h<this.path.length;h++){const m=this.path[h];if(!m.instance||!Ml(m.latestValues))continue;Tw(m.latestValues)&&m.updateSnapshot();const v=rr(),y=m.measurePageBox();ei(v,y),OA(f,m.latestValues,m.snapshot?m.snapshot.layoutBox:void 0,v)}return Ml(this.latestValues)&&OA(f,this.latestValues),f}setTargetDelta(c){this.targetDelta=c,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(c){this.options={...this.options,...c,crossfade:c.crossfade!==void 0?c.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==zr.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(c=!1){var f;const h=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=h.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=h.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=h.isSharedProjectionDirty);const m=!!this.resumingFrom||this!==h;if(!(c||m&&this.isSharedProjectionDirty||this.isProjectionDirty||!((f=this.parent)===null||f===void 0)&&f.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:y,layoutId:x}=this.options;if(!(!this.layout||!(y||x))){if(this.resolvedRelativeTargetAt=zr.timestamp,!this.targetDelta&&!this.relativeTarget){const S=this.getClosestProjectingParent();S&&S.layout&&this.animationProgress!==1?(this.relativeParent=S,this.forceRelativeParentToResolveTarget(),this.relativeTarget=rr(),this.relativeTargetOrigin=rr(),lh(this.relativeTargetOrigin,this.layout.layoutBox,S.layout.layoutBox),ei(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=rr(),this.targetWithTransforms=rr()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),bQ(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ei(this.target,this.layout.layoutBox),_P(this.target,this.targetDelta)):ei(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const S=this.getClosestProjectingParent();S&&!!S.resumingFrom==!!this.resumingFrom&&!S.options.layoutScroll&&S.target&&this.animationProgress!==1?(this.relativeParent=S,this.forceRelativeParentToResolveTarget(),this.relativeTarget=rr(),this.relativeTargetOrigin=rr(),lh(this.relativeTargetOrigin,this.target,S.target),ei(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Gf&&Nl.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Tw(this.parent.latestValues)||DP(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var c;const f=this.getLead(),h=!!this.resumingFrom||this!==f;let m=!0;if((this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty)&&(m=!1),h&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(m=!1),this.resolvedRelativeTargetAt===zr.timestamp&&(m=!1),m)return;const{layout:v,layoutId:y}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(v||y))return;ei(this.layoutCorrected,this.layout.layoutBox);const x=this.treeScale.x,S=this.treeScale.y;DQ(this.layoutCorrected,this.treeScale,this.path,h),f.layout&&!f.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(f.target=f.layout.layoutBox,f.targetWithTransforms=rr());const{target:R}=f;if(!R){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(DA(this.prevProjectionDelta.x,this.projectionDelta.x),DA(this.prevProjectionDelta.y,this.projectionDelta.y)),sh(this.projectionDelta,this.layoutCorrected,R,this.latestValues),(this.treeScale.x!==x||this.treeScale.y!==S||!LA(this.projectionDelta.x,this.prevProjectionDelta.x)||!LA(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",R)),Gf&&Nl.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(c=!0){var f;if((f=this.options.visualElement)===null||f===void 0||f.scheduleRender(),c){const h=this.getStack();h&&h.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=gu(),this.projectionDelta=gu(),this.projectionDeltaWithTransform=gu()}setAnimationOrigin(c,f=!1){const h=this.snapshot,m=h?h.latestValues:{},v={...this.latestValues},y=gu();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!f;const x=rr(),S=h?h.source:void 0,R=this.layout?this.layout.source:void 0,E=S!==R,k=this.getStack(),O=!k||k.members.length<=1,_=!!(E&&!O&&this.options.crossfade===!0&&!this.path.some(hZ));this.animationProgress=0;let N;this.mixTargetDelta=$=>{const L=$/1e3;IA(y.x,c.x,L),IA(y.y,c.y,L),this.setTargetDelta(y),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(lh(x,this.layout.layoutBox,this.relativeParent.layout.layoutBox),fZ(this.relativeTarget,this.relativeTargetOrigin,x,L),N&&KQ(this.relativeTarget,N)&&(this.isProjectionDirty=!1),N||(N=rr()),ei(N,this.relativeTarget)),E&&(this.animationValues=v,HQ(v,m,this.latestValues,L,_,O)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=L},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(c){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Is(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Fn.update(()=>{jv.hasAnimatedSinceResize=!0,this.currentAnimation=zQ(0,$A,{...c,onUpdate:f=>{this.mixTargetDelta(f),c.onUpdate&&c.onUpdate(f)},onComplete:()=>{c.onComplete&&c.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const c=this.getStack();c&&c.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta($A),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const c=this.getLead();let{targetWithTransforms:f,target:h,layout:m,latestValues:v}=c;if(!(!f||!h||!m)){if(this!==c&&this.layout&&m&&FP(this.options.animationType,this.layout.layoutBox,m.layoutBox)){h=this.target||rr();const y=Ba(this.layout.layoutBox.x);h.x.min=c.target.x.min,h.x.max=h.x.min+y;const x=Ba(this.layout.layoutBox.y);h.y.min=c.target.y.min,h.y.max=h.y.min+x}ei(f,h),bu(f,v),sh(this.projectionDeltaWithTransform,this.layoutCorrected,f,v)}}registerSharedNode(c,f){this.sharedNodes.has(c)||this.sharedNodes.set(c,new QQ),this.sharedNodes.get(c).add(f);const m=f.options.initialPromotionConfig;f.promote({transition:m?m.transition:void 0,preserveFollowOpacity:m&&m.shouldPreserveFollowOpacity?m.shouldPreserveFollowOpacity(f):void 0})}isLead(){const c=this.getStack();return c?c.lead===this:!0}getLead(){var c;const{layoutId:f}=this.options;return f?((c=this.getStack())===null||c===void 0?void 0:c.lead)||this:this}getPrevLead(){var c;const{layoutId:f}=this.options;return f?(c=this.getStack())===null||c===void 0?void 0:c.prevLead:void 0}getStack(){const{layoutId:c}=this.options;if(c)return this.root.sharedNodes.get(c)}promote({needsReset:c,transition:f,preserveFollowOpacity:h}={}){const m=this.getStack();m&&m.promote(this,h),c&&(this.projectionDelta=void 0,this.needsReset=!0),f&&this.setOptions({transition:f})}relegate(){const c=this.getStack();return c?c.relegate(this):!1}resetSkewAndRotation(){const{visualElement:c}=this.options;if(!c)return;let f=!1;const{latestValues:h}=c;if((h.z||h.rotate||h.rotateX||h.rotateY||h.rotateZ||h.skewX||h.skewY)&&(f=!0),!f)return;const m={};h.z&&kS("z",c,m,this.animationValues);for(let v=0;v<RS.length;v++)kS(`rotate${RS[v]}`,c,m,this.animationValues),kS(`skew${RS[v]}`,c,m,this.animationValues);c.render();for(const v in m)c.setStaticValue(v,m[v]),this.animationValues&&(this.animationValues[v]=m[v]);c.scheduleRender()}getProjectionStyles(c){var f,h;if(!this.instance||this.isSVG)return;if(!this.isVisible)return JQ;const m={visibility:""},v=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,m.opacity="",m.pointerEvents=Nv(c==null?void 0:c.pointerEvents)||"",m.transform=v?v(this.latestValues,""):"none",m;const y=this.getLead();if(!this.projectionDelta||!this.layout||!y.target){const E={};return this.options.layoutId&&(E.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,E.pointerEvents=Nv(c==null?void 0:c.pointerEvents)||""),this.hasProjected&&!Ml(this.latestValues)&&(E.transform=v?v({},""):"none",this.hasProjected=!1),E}const x=y.animationValues||y.latestValues;this.applyTransformsToTarget(),m.transform=ZQ(this.projectionDeltaWithTransform,this.treeScale,x),v&&(m.transform=v(x,m.transform));const{x:S,y:R}=this.projectionDelta;m.transformOrigin=`${S.origin*100}% ${R.origin*100}% 0`,y.animationValues?m.opacity=y===this?(h=(f=x.opacity)!==null&&f!==void 0?f:this.latestValues.opacity)!==null&&h!==void 0?h:1:this.preserveOpacity?this.latestValues.opacity:x.opacityExit:m.opacity=y===this?x.opacity!==void 0?x.opacity:"":x.opacityExit!==void 0?x.opacityExit:0;for(const E in eg){if(x[E]===void 0)continue;const{correct:k,applyTo:O}=eg[E],_=m.transform==="none"?x[E]:k(x[E],y);if(O){const N=O.length;for(let $=0;$<N;$++)m[O[$]]=_}else m[E]=_}return this.options.layoutId&&(m.pointerEvents=y===this?Nv(c==null?void 0:c.pointerEvents)||"":"none"),m}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(c=>{var f;return(f=c.currentAnimation)===null||f===void 0?void 0:f.stop()}),this.root.nodes.forEach(zA),this.root.sharedNodes.clear()}}}function tZ(e){e.updateLayout()}function nZ(e){var t;const a=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&a&&e.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:s}=e.layout,{animationType:u}=e.options,c=a.source!==e.layout.source;u==="size"?ni(y=>{const x=c?a.measuredBox[y]:a.layoutBox[y],S=Ba(x);x.min=i[y].min,x.max=x.min+S}):FP(u,a.layoutBox,i)&&ni(y=>{const x=c?a.measuredBox[y]:a.layoutBox[y],S=Ba(i[y]);x.max=x.min+S,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[y].max=e.relativeTarget[y].min+S)});const f=gu();sh(f,i,a.layoutBox);const h=gu();c?sh(h,e.applyTransform(s,!0),a.measuredBox):sh(h,i,a.layoutBox);const m=!jP(f);let v=!1;if(!e.resumeFrom){const y=e.getClosestProjectingParent();if(y&&!y.resumeFrom){const{snapshot:x,layout:S}=y;if(x&&S){const R=rr();lh(R,a.layoutBox,x.layoutBox);const E=rr();lh(E,i,S.layoutBox),LP(R,E)||(v=!0),y.options.layoutRoot&&(e.relativeTarget=E,e.relativeTargetOrigin=R,e.relativeParent=y)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:a,delta:h,layoutDelta:f,hasLayoutChanged:m,hasRelativeTargetChanged:v})}else if(e.isLead()){const{onExitComplete:i}=e.options;i&&i()}e.options.transition=void 0}function rZ(e){Gf&&Nl.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function aZ(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function iZ(e){e.clearSnapshot()}function zA(e){e.clearMeasurements()}function oZ(e){e.isLayoutDirty=!1}function sZ(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function FA(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function lZ(e){e.resolveTargetDelta()}function cZ(e){e.calcProjection()}function uZ(e){e.resetSkewAndRotation()}function dZ(e){e.removeLeadSnapshot()}function IA(e,t,a){e.translate=Yn(t.translate,0,a),e.scale=Yn(t.scale,1,a),e.origin=t.origin,e.originPoint=t.originPoint}function VA(e,t,a,i){e.min=Yn(t.min,a.min,i),e.max=Yn(t.max,a.max,i)}function fZ(e,t,a,i){VA(e.x,t.x,a.x,i),VA(e.y,t.y,a.y,i)}function hZ(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const pZ={duration:.45,ease:[.4,0,.1,1]},BA=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),UA=BA("applewebkit/")&&!BA("chrome/")?Math.round:Ra;function HA(e){e.min=UA(e.min),e.max=UA(e.max)}function mZ(e){HA(e.x),HA(e.y)}function FP(e,t,a){return e==="position"||e==="preserve-aspect"&&!yQ(jA(t),jA(a),.2)}function vZ(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const gZ=zP({attachResizeListener:(e,t)=>Eh(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),DS={current:void 0},IP=zP({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!DS.current){const e=new gZ({});e.mount(window),e.setOptions({layoutScroll:!0}),DS.current=e}return DS.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),yZ={pan:{Feature:PQ},drag:{Feature:NQ,ProjectionNode:IP,MeasureLayout:MP}};function WA(e,t,a){const{props:i}=e;e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",a==="Start");const s="onHover"+a,u=i[s];u&&Fn.postRender(()=>u(t,Hh(t)))}class bZ extends Bs{mount(){const{current:t}=this.node;t&&(this.unmount=yX(t,a=>(WA(this.node,a,"Start"),i=>WA(this.node,i,"End"))))}unmount(){}}class xZ extends Bs{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Uh(Eh(this.node.current,"focus",()=>this.onFocus()),Eh(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function YA(e,t,a){const{props:i}=e;e.animationState&&i.whileTap&&e.animationState.setActive("whileTap",a==="Start");const s="onTap"+(a==="End"?"":a),u=i[s];u&&Fn.postRender(()=>u(t,Hh(t)))}class SZ extends Bs{mount(){const{current:t}=this.node;t&&(this.unmount=wX(t,a=>(YA(this.node,a,"Start"),(i,{success:s})=>YA(this.node,i,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Rw=new WeakMap,_S=new WeakMap,wZ=e=>{const t=Rw.get(e.target);t&&t(e)},CZ=e=>{e.forEach(wZ)};function TZ({root:e,...t}){const a=e||document;_S.has(a)||_S.set(a,{});const i=_S.get(a),s=JSON.stringify(t);return i[s]||(i[s]=new IntersectionObserver(CZ,{root:e,...t})),i[s]}function EZ(e,t,a){const i=TZ(t);return Rw.set(e,a),i.observe(e),()=>{Rw.delete(e),i.unobserve(e)}}const RZ={some:0,all:1};class kZ extends Bs{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:a,margin:i,amount:s="some",once:u}=t,c={root:a?a.current:void 0,rootMargin:i,threshold:typeof s=="number"?s:RZ[s]},f=h=>{const{isIntersecting:m}=h;if(this.isInView===m||(this.isInView=m,u&&!m&&this.hasEnteredView))return;m&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",m);const{onViewportEnter:v,onViewportLeave:y}=this.node.getProps(),x=m?v:y;x&&x(h)};return EZ(this.node.current,c,f)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:a}=this.node;["amount","margin","root"].some(DZ(t,a))&&this.startObserver()}unmount(){}}function DZ({viewport:e={}},{viewport:t={}}={}){return a=>e[a]!==t[a]}const _Z={inView:{Feature:kZ},tap:{Feature:SZ},focus:{Feature:xZ},hover:{Feature:bZ}},AZ={layout:{ProjectionNode:IP,MeasureLayout:MP}},kw={current:null},VP={current:!1};function OZ(){if(VP.current=!0,!!SC)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>kw.current=e.matches;e.addListener(t),t()}else kw.current=!1}const MZ=[...fP,Qr,Vs],NZ=e=>MZ.find(dP(e)),qA=new WeakMap;function PZ(e,t,a){for(const i in t){const s=t[i],u=a[i];if(Jr(s))e.addValue(i,s),Rg(s.version==="11.18.2",`Attempting to mix Motion versions ${s.version} with 11.18.2 may not work as expected.`);else if(Jr(u))e.addValue(i,Ch(s,{owner:e}));else if(u!==s)if(e.hasValue(i)){const c=e.getValue(i);c.liveStyle===!0?c.jump(s):c.hasAnimated||c.set(s)}else{const c=e.getStaticValue(i);e.addValue(i,Ch(c!==void 0?c:s,{owner:e}))}}for(const i in a)t[i]===void 0&&e.removeValue(i);return t}const GA=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class jZ{scrapeMotionValuesFromProps(t,a,i){return{}}constructor({parent:t,props:a,presenceContext:i,reducedMotionConfig:s,blockInitialAnimation:u,visualState:c},f={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=GC,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const S=co.now();this.renderScheduledAt<S&&(this.renderScheduledAt=S,Fn.render(this.render,!1,!0))};const{latestValues:h,renderState:m,onUpdate:v}=c;this.onUpdate=v,this.latestValues=h,this.baseTarget={...h},this.initialValues=a.initial?{...h}:{},this.renderState=m,this.parent=t,this.props=a,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.options=f,this.blockInitialAnimation=!!u,this.isControllingVariants=_g(a),this.isVariantNode=xN(a),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:y,...x}=this.scrapeMotionValuesFromProps(a,{},this);for(const S in x){const R=x[S];h[S]!==void 0&&Jr(R)&&R.set(h[S],!1)}}mount(t){this.current=t,qA.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((a,i)=>this.bindToMotionValue(i,a)),VP.current||OZ(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:kw.current,Rg(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){qA.delete(this.current),this.projection&&this.projection.unmount(),Is(this.notifyUpdate),Is(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const a=this.features[t];a&&(a.unmount(),a.isMounted=!1)}this.current=null}bindToMotionValue(t,a){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const i=Zl.has(t),s=a.on("change",f=>{this.latestValues[t]=f,this.props.onUpdate&&Fn.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0)}),u=a.on("renderRequest",this.scheduleRender);let c;window.MotionCheckAppearSync&&(c=window.MotionCheckAppearSync(this,t,a)),this.valueSubscriptions.set(t,()=>{s(),u(),c&&c(),a.owner&&a.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Lu){const a=Lu[t];if(!a)continue;const{isEnabled:i,Feature:s}=a;if(!this.features[t]&&s&&i(this.props)&&(this.features[t]=new s(this)),this.features[t]){const u=this.features[t];u.isMounted?u.update():(u.mount(),u.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):rr()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,a){this.latestValues[t]=a}update(t,a){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=a;for(let i=0;i<GA.length;i++){const s=GA[i];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const u="on"+s,c=t[u];c&&(this.propEventSubscriptions[s]=this.on(s,c))}this.prevMotionValues=PZ(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const a=this.getClosestVariantNode();if(a)return a.variantChildren&&a.variantChildren.add(t),()=>a.variantChildren.delete(t)}addValue(t,a){const i=this.values.get(t);a!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,a),this.values.set(t,a),this.latestValues[t]=a.get())}removeValue(t){this.values.delete(t);const a=this.valueSubscriptions.get(t);a&&(a(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,a){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return i===void 0&&a!==void 0&&(i=Ch(a===null?void 0:a,{owner:this}),this.addValue(t,i)),i}readValue(t,a){var i;let s=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(i=this.getBaseTargetFromProps(this.props,t))!==null&&i!==void 0?i:this.readValueFromInstance(this.current,t,this.options);return s!=null&&(typeof s=="string"&&(cP(s)||eP(s))?s=parseFloat(s):!NZ(s)&&Vs.test(a)&&(s=oP(t,a)),this.setBaseTarget(t,Jr(s)?s.get():s)),Jr(s)?s.get():s}setBaseTarget(t,a){this.baseTarget[t]=a}getBaseTarget(t){var a;const{initial:i}=this.props;let s;if(typeof i=="string"||typeof i=="object"){const c=DC(this.props,i,(a=this.presenceContext)===null||a===void 0?void 0:a.custom);c&&(s=c[t])}if(i&&s!==void 0)return s;const u=this.getBaseTargetFromProps(this.props,t);return u!==void 0&&!Jr(u)?u:this.initialValues[t]!==void 0&&s===void 0?void 0:this.baseTarget[t]}on(t,a){return this.events[t]||(this.events[t]=new BC),this.events[t].add(a)}notify(t,...a){this.events[t]&&this.events[t].notify(...a)}}class BP extends jZ{constructor(){super(...arguments),this.KeyframeResolver=hP}sortInstanceNodePosition(t,a){return t.compareDocumentPosition(a)&2?1:-1}getBaseTargetFromProps(t,a){return t.style?t.style[a]:void 0}removeValueFromRenderState(t,{vars:a,style:i}){delete a[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Jr(t)&&(this.childSubscription=t.on("change",a=>{this.current&&(this.current.textContent=`${a}`)}))}}function LZ(e){return window.getComputedStyle(e)}class $Z extends BP{constructor(){super(...arguments),this.type="html",this.renderInstance=_N}readValueFromInstance(t,a){if(Zl.has(a)){const i=qC(a);return i&&i.default||0}else{const i=LZ(t),s=(RN(a)?i.getPropertyValue(a):i[a])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:a}){return AP(t,a)}build(t,a,i){OC(t,a,i.transformTemplate)}scrapeMotionValuesFromProps(t,a,i){return jC(t,a,i)}}class zZ extends BP{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=rr}getBaseTargetFromProps(t,a){return t[a]}readValueFromInstance(t,a){if(Zl.has(a)){const i=qC(a);return i&&i.default||0}return a=AN.has(a)?a:EC(a),t.getAttribute(a)}scrapeMotionValuesFromProps(t,a,i){return NN(t,a,i)}build(t,a,i){MC(t,a,this.isSVGTag,i.transformTemplate)}renderInstance(t,a,i,s){ON(t,a,i,s)}mount(t){this.isSVGTag=PC(t.tagName),super.mount(t)}}const FZ=(e,t)=>kC(e)?new zZ(t):new $Z(t,{allowProjection:e!==w.Fragment}),IZ=dX({...cQ,..._Z,...yZ,...AZ},FZ),Us=RG(IZ),VZ=(e,t)=>e.find(a=>a.id===t);function XA(e,t){const a=UP(e,t),i=a?e[a].findIndex(s=>s.id===t):-1;return{position:a,index:i}}function UP(e,t){for(const[a,i]of Object.entries(e))if(VZ(i,t))return a}function BZ(e){const t=e.includes("right"),a=e.includes("left");let i="center";return t&&(i="flex-end"),a&&(i="flex-start"),{display:"flex",flexDirection:"column",alignItems:i}}function UZ(e){const a=e==="top"||e==="bottom"?"0 auto":void 0,i=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,s=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,u=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",c=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:a,top:i,bottom:s,right:u,left:c}}var HZ=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,WZ=eN(function(e){return HZ.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),YZ=!0,qZ=WZ,GZ=function(t){return t!=="theme"},KA=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?qZ:GZ},QA=function(t,a,i){var s;if(a){var u=a.shouldForwardProp;s=t.__emotion_forwardProp&&u?function(c){return t.__emotion_forwardProp(c)&&u(c)}:u}return typeof s!="function"&&i&&(s=t.__emotion_forwardProp),s},ZA=`You have illegal escape sequence in your template literal, most likely inside content's property value.
547
- Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
548
- You can read more about this here:
549
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,XZ=function(t){var a=t.cache,i=t.serialized,s=t.isStringTag;return wg(a,i,s),hC(function(){return Cg(a,i,s)}),null},KZ=function e(t,a){if(t===void 0)throw new Error(`You are trying to create a styled element with an undefined component.
550
- You may have forgotten to import it.`);var i=t.__emotion_real===t,s=i&&t.__emotion_base||t,u,c;a!==void 0&&(u=a.label,c=a.target);var f=QA(t,a,i),h=f||KA(s),m=!h("as");return function(){var v=arguments,y=i&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(u!==void 0&&y.push("label:"+u+";"),v[0]==null||v[0].raw===void 0)y.push.apply(y,v);else{var x=v[0];x[0]===void 0&&console.error(ZA),y.push(x[0]);for(var S=v.length,R=1;R<S;R++)x[R]===void 0&&console.error(ZA),y.push(v[R],x[R])}var E=Eg(function(k,O,_){var N=m&&k.as||s,$="",L=[],I=k;if(k.theme==null){I={};for(var F in k)I[F]=k[F];I.theme=w.useContext(zs)}typeof k.className=="string"?$=dC(O.registered,L,k.className):k.className!=null&&($=k.className+" ");var Q=Pu(y.concat(L),O.registered,I);$+=O.key+"-"+Q.name,c!==void 0&&($+=" "+c);var le=m&&f===void 0?KA(N):h,re={};for(var de in k)m&&de==="as"||le(de)&&(re[de]=k[de]);return re.className=$,_&&(re.ref=_),w.createElement(w.Fragment,null,w.createElement(XZ,{cache:O,serialized:Q,isStringTag:typeof N=="string"}),w.createElement(N,re))});return E.displayName=u!==void 0?u:"Styled("+(typeof s=="string"?s:s.displayName||s.name||"Component")+")",E.defaultProps=t.defaultProps,E.__emotion_real=E,E.__emotion_base=s,E.__emotion_styles=y,E.__emotion_forwardProp=f,Object.defineProperty(E,"toString",{value:function(){return c===void 0&&YZ?"NO_COMPONENT_SELECTOR":"."+c}}),E.withComponent=function(k,O){var _=e(k,Yl({},a,O,{shouldForwardProp:QA(E,O,!0)}));return _.apply(void 0,y)},E}},QZ=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Dw=KZ.bind(null);QZ.forEach(function(e){Dw[e]=Dw(e)});const ZZ=new Set([...J4,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),JZ=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function eJ(e){return(JZ.has(e)||!ZZ.has(e))&&e[0]!=="_"}const tJ=o4(Dw),nJ=({baseStyle:e})=>t=>{const{theme:a,css:i,__css:s,sx:u,...c}=t,[f]=f4(c,t6),h=ii(e,t),m=W3({},s,h,TM(f),u),v=MM(m)(t.theme);return i?[v,i]:v};function AS(e,t){const{baseStyle:a,...i}=t??{};i.shouldForwardProp||(i.shouldForwardProp=eJ);const s=nJ({baseStyle:a}),u=tJ(e,i)(s);return w.forwardRef(function(h,m){const{children:v,...y}=h,{colorMode:x,forced:S}=Fh(),R=S?x:void 0;return w.createElement(u,{ref:m,"data-theme":R,...y},v)})}function rJ(){const e=new Map;return new Proxy(AS,{apply(t,a,i){return AS(...i)},get(t,a){return e.has(a)||e.set(a,AS(a)),e.get(a)}})}const ct=rJ(),aJ={initial:e=>{const{position:t}=e,a=["top","bottom"].includes(t)?"y":"x";let i=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(i=1),{opacity:0,[a]:i*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},HP=w.memo(e=>{const{id:t,message:a,onCloseComplete:i,onRequestRemove:s,requestClose:u=!1,position:c="bottom",duration:f=5e3,containerStyle:h,motionVariants:m=aJ,toastSpacing:v="0.5rem"}=e,[y,x]=w.useState(f),S=gG();KD(()=>{S||i==null||i()},[S]),KD(()=>{x(f)},[f]);const R=()=>x(null),E=()=>x(f),k=()=>{S&&s()};w.useEffect(()=>{S&&u&&s()},[S,u,s]),y4(k,y);const O=w.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:v,...h}),[h,v]),_=w.useMemo(()=>BZ(c),[c]);return X.jsx(Us.div,{layout:!0,className:"chakra-toast",variants:m,initial:"initial",animate:"animate",exit:"exit",onHoverStart:R,onHoverEnd:E,custom:{position:c},style:_,children:X.jsx(ct.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:O,children:ii(a,{id:t,onClose:k})})})});HP.displayName="ToastComponent";function It(e){return w.forwardRef(e)}var iJ=typeof Element<"u",oJ=typeof Map=="function",sJ=typeof Set=="function",lJ=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Lv(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var a,i,s;if(Array.isArray(e)){if(a=e.length,a!=t.length)return!1;for(i=a;i--!==0;)if(!Lv(e[i],t[i]))return!1;return!0}var u;if(oJ&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(u=e.entries();!(i=u.next()).done;)if(!t.has(i.value[0]))return!1;for(u=e.entries();!(i=u.next()).done;)if(!Lv(i.value[1],t.get(i.value[0])))return!1;return!0}if(sJ&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(u=e.entries();!(i=u.next()).done;)if(!t.has(i.value[0]))return!1;return!0}if(lJ&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(a=e.length,a!=t.length)return!1;for(i=a;i--!==0;)if(e[i]!==t[i])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(s=Object.keys(e),a=s.length,a!==Object.keys(t).length)return!1;for(i=a;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[i]))return!1;if(iJ&&e instanceof Element)return!1;for(i=a;i--!==0;)if(!((s[i]==="_owner"||s[i]==="__v"||s[i]==="__o")&&e.$$typeof)&&!Lv(e[s[i]],t[s[i]]))return!1;return!0}return e!==e&&t!==t}var cJ=function(t,a){try{return Lv(t,a)}catch(i){if((i.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw i}};const uJ=mg(cJ);function ZC(){const e=w.useContext(zs);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}function WP(){const e=Fh(),t=ZC();return{...e,theme:t}}function dJ(e,t,a){if(t==null)return t;const i=s=>{var u,c;return(c=(u=e.__breakpoints)==null?void 0:u.asArray)==null?void 0:c[s]};return i(t)??i(a)??a}function fJ(e,t,a){if(t==null)return t;const i=s=>{var u,c;return(c=(u=e.__cssMap)==null?void 0:u[s])==null?void 0:c.value};return i(t)??i(a)??a}function hJ(e,t,a){const i=ZC();return pJ(e,t,a)(i)}function pJ(e,t,a){const i=Array.isArray(t)?t:[t],s=Array.isArray(a)?a:[a];return u=>{const c=s.filter(Boolean),f=i.map((h,m)=>{if(e==="breakpoints")return dJ(u,h,c[m]??h);const v=`${e}.${h}`;return fJ(u,v,c[m]??h)});return Array.isArray(t)?f:f[0]}}function mJ(e){return Object.fromEntries(Object.entries(e).filter(([t,a])=>a!==void 0&&t!=="children"&&!w.isValidElement(a)))}function YP(e,t={}){const{styleConfig:a,...i}=t,{theme:s,colorMode:u}=WP(),c=e?EM(s,`components.${e}`):void 0,f=a||c,h=oi({theme:s,colorMode:u},(f==null?void 0:f.defaultProps)??{},mJ(i),(v,y)=>v?void 0:y),m=w.useRef({});if(f){const y=f6(f)(h);uJ(m.current,y)||(m.current=y)}return m.current}function ui(e,t={}){return YP(e,t)}function qu(e,t={}){return YP(e,t)}const JA={path:X.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[X.jsx("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),X.jsx("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),X.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Jl=It((e,t)=>{const{as:a,viewBox:i,color:s="currentColor",focusable:u=!1,children:c,className:f,__css:h,...m}=e,v=qt("chakra-icon",f),y=ui("Icon",e),x={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:s,...h,...y},S={ref:t,focusable:u,className:v,__css:x},R=i??JA.viewBox;if(a&&typeof a!="string")return X.jsx(ct.svg,{as:a,...S,...m});const E=c??JA.path;return X.jsx(ct.svg,{verticalAlign:"middle",viewBox:R,...S,...m,children:E})});Jl.displayName="Icon";function vJ(e){return X.jsx(Jl,{viewBox:"0 0 24 24",...e,children:X.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function gJ(e){return X.jsx(Jl,{viewBox:"0 0 24 24",...e,children:X.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function eO(e){return X.jsx(Jl,{viewBox:"0 0 24 24",...e,children:X.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}const yJ=mC({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Wh=It((e,t)=>{const a=ui("Spinner",e),{label:i="Loading...",thickness:s="2px",speed:u="0.45s",emptyColor:c="transparent",className:f,...h}=ea(e),m=qt("chakra-spinner",f),v={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:s,borderBottomColor:c,borderLeftColor:c,animation:`${yJ} ${u} linear infinite`,...a};return X.jsx(ct.div,{ref:t,__css:v,className:m,...h,children:i&&X.jsx(ct.span,{srOnly:!0,children:i})})});Wh.displayName="Spinner";const[bJ,JC]=pa({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[xJ,eT]=pa({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),qP={info:{icon:gJ,colorScheme:"blue"},warning:{icon:eO,colorScheme:"orange"},success:{icon:vJ,colorScheme:"green"},error:{icon:eO,colorScheme:"red"},loading:{icon:Wh,colorScheme:"blue"}};function SJ(e){return qP[e].colorScheme}function wJ(e){return qP[e].icon}const GP=It(function(t,a){const{status:i="info",addRole:s=!0,...u}=ea(t),c=t.colorScheme??SJ(i),f=qu("Alert",{...t,colorScheme:c}),h={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...f.container};return X.jsx(bJ,{value:{status:i},children:X.jsx(xJ,{value:f,children:X.jsx(ct.div,{"data-status":i,role:s?"alert":void 0,ref:a,...u,className:qt("chakra-alert",t.className),__css:h})})})});GP.displayName="Alert";function XP(e){const{status:t}=JC(),a=wJ(t),i=eT(),s=t==="loading"?i.spinner:i.icon;return X.jsx(ct.span,{display:"inherit","data-status":t,...e,className:qt("chakra-alert__icon",e.className),__css:s,children:e.children||X.jsx(a,{h:"100%",w:"100%"})})}XP.displayName="AlertIcon";const KP=It(function(t,a){const i=eT(),{status:s}=JC();return X.jsx(ct.div,{ref:a,"data-status":s,...t,className:qt("chakra-alert__title",t.className),__css:i.title})});KP.displayName="AlertTitle";const QP=It(function(t,a){const{status:i}=JC(),s=eT(),u={display:"inline",...s.description};return X.jsx(ct.div,{ref:a,"data-status":i,...t,className:qt("chakra-alert__desc",t.className),__css:u})});QP.displayName="AlertDescription";function CJ(e){return X.jsx(Jl,{focusable:"false","aria-hidden":!0,...e,children:X.jsx("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}const tT=It(function(t,a){const i=ui("CloseButton",t),{children:s,isDisabled:u,__css:c,...f}=ea(t),h={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return X.jsx(ct.button,{type:"button","aria-label":"Close",ref:a,disabled:u,__css:{...h,...i,...c},...f,children:s||X.jsx(CJ,{width:"1em",height:"1em"})})});tT.displayName="CloseButton";const TJ=e=>{const{status:t,variant:a="solid",id:i,title:s,isClosable:u,onClose:c,description:f,colorScheme:h,icon:m}=e,v=i?{root:`toast-${i}`,title:`toast-${i}-title`,description:`toast-${i}-description`}:void 0;return X.jsxs(GP,{addRole:!1,status:t,variant:a,id:v==null?void 0:v.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:h,children:[X.jsx(XP,{children:m}),X.jsxs(ct.div,{flex:"1",maxWidth:"100%",children:[s&&X.jsx(KP,{id:v==null?void 0:v.title,children:s}),f&&X.jsx(QP,{id:v==null?void 0:v.description,display:"block",children:f})]}),u&&X.jsx(tT,{size:"sm",onClick:c,position:"absolute",insetEnd:1,top:1})]})};function ZP(e={}){const{render:t,toastComponent:a=TJ}=e;return s=>typeof t=="function"?t({...s,...e}):X.jsx(a,{...s,...e})}const EJ={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},ro=RJ(EJ);function RJ(e){let t=e;const a=new Set,i=s=>{t=s(t),a.forEach(u=>u())};return{getState:()=>t,subscribe:s=>(a.add(s),()=>{i(()=>e),a.delete(s)}),removeToast:(s,u)=>{i(c=>({...c,[u]:c[u].filter(f=>f.id!=s)}))},notify:(s,u)=>{const c=kJ(s,u),{position:f,id:h}=c;return i(m=>{const y=f.includes("top")?[c,...m[f]??[]]:[...m[f]??[],c];return{...m,[f]:y}}),h},update:(s,u)=>{s&&i(c=>{const f={...c},{position:h,index:m}=XA(f,s);return h&&m!==-1&&(f[h][m]={...f[h][m],...u,message:ZP(u)}),f})},closeAll:({positions:s}={})=>{i(u=>(s??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((h,m)=>(h[m]=u[m].map(v=>({...v,requestClose:!0})),h),{...u}))},close:s=>{i(u=>{const c=UP(u,s);return c?{...u,[c]:u[c].map(f=>f.id==s?{...f,requestClose:!0}:f)}:u})},isActive:s=>!!XA(ro.getState(),s).position}}let tO=0;function kJ(e,t={}){tO+=1;const a=t.id??tO,i=t.position??"bottom";return{id:a,message:e,position:i,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>ro.removeToast(String(a),i),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}const[JP,DJ]=pa({strict:!1,name:"PortalContext"}),nT="chakra-portal",_J=".chakra-portal",AJ=e=>X.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),OJ=e=>{const{appendToParentPortal:t,children:a}=e,[i,s]=w.useState(null),u=w.useRef(null),[,c]=w.useState({});w.useEffect(()=>c({}),[]);const f=DJ(),h=dG();QS(()=>{if(!i)return;const v=i.ownerDocument,y=t?f??v.body:v.body;if(!y)return;u.current=v.createElement("div"),u.current.className=nT,y.appendChild(u.current),c({});const x=u.current;return()=>{y.contains(x)&&y.removeChild(x)}},[i]);const m=h!=null&&h.zIndex?X.jsx(AJ,{zIndex:h==null?void 0:h.zIndex,children:a}):a;return u.current?$s.createPortal(X.jsx(JP,{value:u.current,children:m}),u.current):X.jsx("span",{ref:v=>{v&&s(v)}})},MJ=e=>{const{children:t,containerRef:a,appendToParentPortal:i}=e,s=a.current,u=s??(typeof window<"u"?document.body:void 0),c=w.useMemo(()=>{const h=s==null?void 0:s.ownerDocument.createElement("div");return h&&(h.className=nT),h},[s]),[,f]=w.useState({});return QS(()=>f({}),[]),QS(()=>{if(!(!c||!u))return u.appendChild(c),()=>{u.removeChild(c)}},[c,u]),u&&c?$s.createPortal(X.jsx(JP,{value:i?c:null,children:t}),c):null};function Gu(e){const t={appendToParentPortal:!0,...e},{containerRef:a,...i}=t;return a?X.jsx(MJ,{containerRef:a,...i}):X.jsx(OJ,{...i})}Gu.className=nT;Gu.selector=_J;Gu.displayName="Portal";const[NJ,PJ]=pa({name:"ToastOptionsContext",strict:!1}),jJ=e=>{const t=w.useSyncExternalStore(ro.subscribe,ro.getState,ro.getState),{motionVariants:a,component:i=HP,portalProps:s,animatePresenceProps:u}=e,f=Object.keys(t).map(h=>{const m=t[h];return X.jsx("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${h}`,id:`chakra-toast-manager-${h}`,style:UZ(h),children:X.jsx(Ql,{...u,initial:!1,children:m.map(v=>X.jsx(i,{motionVariants:a,...v},v.id))})},h)});return X.jsx(Gu,{...s,children:f})},LJ=e=>function({children:a,theme:i=e,toastOptions:s,...u}){return X.jsxs(fG,{theme:i,...u,children:[X.jsx(NJ,{value:s==null?void 0:s.defaultOptions,children:a}),X.jsx(jJ,{...s})]})},$J=LJ(qM);function nO(e){return e.sort((t,a)=>{const i=t.compareDocumentPosition(a);if(i&Node.DOCUMENT_POSITION_FOLLOWING||i&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(i&Node.DOCUMENT_POSITION_PRECEDING||i&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(i&Node.DOCUMENT_POSITION_DISCONNECTED||i&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}const zJ=e=>typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function rO(e,t,a){let i=e+1;return a&&i>=t&&(i=0),i}function aO(e,t,a){let i=e-1;return a&&i<0&&(i=t),i}const OS=typeof window<"u"?w.useLayoutEffect:w.useEffect,iO=e=>e;var FJ=Object.defineProperty,IJ=(e,t,a)=>t in e?FJ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,Zn=(e,t,a)=>(IJ(e,typeof t!="symbol"?t+"":t,a),a);class VJ{constructor(){Zn(this,"descendants",new Map),Zn(this,"register",t=>{if(t!=null)return zJ(t)?this.registerNode(t):a=>{this.registerNode(a,t)}}),Zn(this,"unregister",t=>{this.descendants.delete(t);const a=nO(Array.from(this.descendants.keys()));this.assignIndex(a)}),Zn(this,"destroy",()=>{this.descendants.clear()}),Zn(this,"assignIndex",t=>{this.descendants.forEach(a=>{const i=t.indexOf(a.node);a.index=i,a.node.dataset.index=a.index.toString()})}),Zn(this,"count",()=>this.descendants.size),Zn(this,"enabledCount",()=>this.enabledValues().length),Zn(this,"values",()=>Array.from(this.descendants.values()).sort((a,i)=>a.index-i.index)),Zn(this,"enabledValues",()=>this.values().filter(t=>!t.disabled)),Zn(this,"item",t=>{if(this.count()!==0)return this.values()[t]}),Zn(this,"enabledItem",t=>{if(this.enabledCount()!==0)return this.enabledValues()[t]}),Zn(this,"first",()=>this.item(0)),Zn(this,"firstEnabled",()=>this.enabledItem(0)),Zn(this,"last",()=>this.item(this.descendants.size-1)),Zn(this,"lastEnabled",()=>{const t=this.enabledValues().length-1;return this.enabledItem(t)}),Zn(this,"indexOf",t=>{var a;return t?((a=this.descendants.get(t))==null?void 0:a.index)??-1:-1}),Zn(this,"enabledIndexOf",t=>t==null?-1:this.enabledValues().findIndex(a=>a.node.isSameNode(t))),Zn(this,"next",(t,a=!0)=>{const i=rO(t,this.count(),a);return this.item(i)}),Zn(this,"nextEnabled",(t,a=!0)=>{const i=this.item(t);if(!i)return;const s=this.enabledIndexOf(i.node),u=rO(s,this.enabledCount(),a);return this.enabledItem(u)}),Zn(this,"prev",(t,a=!0)=>{const i=aO(t,this.count()-1,a);return this.item(i)}),Zn(this,"prevEnabled",(t,a=!0)=>{const i=this.item(t);if(!i)return;const s=this.enabledIndexOf(i.node),u=aO(s,this.enabledCount()-1,a);return this.enabledItem(u)}),Zn(this,"registerNode",(t,a)=>{if(!t||this.descendants.has(t))return;const i=Array.from(this.descendants.keys()).concat(t),s=nO(i);a!=null&&a.disabled&&(a.disabled=!!a.disabled);const u={node:t,index:-1,...a};this.descendants.set(t,u),this.assignIndex(s)})}}function BJ(){const[e,t]=pa({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});return[e,t,()=>{const s=w.useRef(new VJ);return OS(()=>()=>s.current.destroy()),s.current},s=>{const u=t(),[c,f]=w.useState(-1),h=w.useRef(null);OS(()=>()=>{h.current&&u.unregister(h.current)},[]),OS(()=>{if(!h.current)return;const v=Number(h.current.dataset.index);c!=v&&!Number.isNaN(v)&&f(v)});const m=iO(s?u.register(s):u.register);return{descendants:u,index:c,enabledIndex:u.enabledIndexOf(h.current),register:fo(m,h)}}]}const[UJ,Mg]=pa({name:"AccordionStylesContext",hookName:"useAccordionStyles",providerName:"<Accordion />"}),[HJ,rT]=pa({name:"AccordionItemContext",hookName:"useAccordionItemContext",providerName:"<AccordionItem />"}),[WJ,joe,YJ,qJ]=BJ();function GJ(e){const{onChange:t,defaultIndex:a,index:i,allowMultiple:s,allowToggle:u,...c}=e;QJ(e),ZJ(e);const f=YJ(),[h,m]=w.useState(-1);w.useEffect(()=>()=>{m(-1)},[]);const[v,y]=p4({value:i,defaultValue(){return s?a??[]:a??-1},onChange:t});return{index:v,setIndex:y,htmlProps:c,getAccordionItemProps:S=>{let R=!1;return S!==null&&(R=Array.isArray(v)?v.includes(S):v===S),{isOpen:R,onChange:k=>{if(S!==null)if(s&&Array.isArray(v)){const O=k?v.concat(S):v.filter(_=>_!==S);y(O)}else k?y(S):u&&y(-1)}}},focusedIndex:h,setFocusedIndex:m,descendants:f}}const[XJ,aT]=pa({name:"AccordionContext",hookName:"useAccordionContext",providerName:"Accordion"});function KJ(e){const{isDisabled:t,isFocusable:a,id:i,...s}=e,{getAccordionItemProps:u,setFocusedIndex:c}=aT(),f=w.useRef(null),h=w.useId(),m=i??h,v=`accordion-button-${m}`,y=`accordion-panel-${m}`;JJ(e);const{register:x,index:S,descendants:R}=qJ({disabled:t&&!a}),{isOpen:E,onChange:k}=u(S===-1?null:S);eee({isOpen:E,isDisabled:t});const O=()=>{k==null||k(!0)},_=()=>{k==null||k(!1)},N=w.useCallback(()=>{k==null||k(!E),c(S)},[S,c,E,k]),$=w.useCallback(Q=>{const re={ArrowDown:()=>{const de=R.nextEnabled(S);de==null||de.node.focus()},ArrowUp:()=>{const de=R.prevEnabled(S);de==null||de.node.focus()},Home:()=>{const de=R.firstEnabled();de==null||de.node.focus()},End:()=>{const de=R.lastEnabled();de==null||de.node.focus()}}[Q.key];re&&(Q.preventDefault(),re(Q))},[R,S]),L=w.useCallback(()=>{c(S)},[c,S]),I=w.useCallback(function(le={},re=null){return{...le,type:"button",ref:fo(x,f,re),id:v,disabled:!!t,"aria-expanded":!!E,"aria-controls":y,onClick:ca(le.onClick,N),onFocus:ca(le.onFocus,L),onKeyDown:ca(le.onKeyDown,$)}},[v,t,E,N,L,$,y,x]),F=w.useCallback(function(le={},re=null){return{...le,ref:re,role:"region",id:y,"aria-labelledby":v,hidden:!E}},[v,E,y]);return{isOpen:E,isDisabled:t,isFocusable:a,onOpen:O,onClose:_,getButtonProps:I,getPanelProps:F,htmlProps:s}}function QJ(e){const t=e.index||e.defaultIndex,a=t!=null&&!Array.isArray(t)&&e.allowMultiple;jh({condition:!!a,message:`If 'allowMultiple' is passed, then 'index' or 'defaultIndex' must be an array. You passed: ${typeof t},`})}function ZJ(e){jh({condition:!!(e.allowMultiple&&e.allowToggle),message:"If 'allowMultiple' is passed, 'allowToggle' will be ignored. Either remove 'allowToggle' or 'allowMultiple' depending on whether you want multiple accordions visible or not"})}function JJ(e){jh({condition:!!(e.isFocusable&&!e.isDisabled),message:`Using only 'isFocusable', this prop is reserved for situations where you pass 'isDisabled' but you still want the element to receive focus (A11y). Either remove it or pass 'isDisabled' as well.
551
- `})}function eee(e){jh({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}const ej=It(function({children:t,reduceMotion:a,...i},s){const u=qu("Accordion",i),c=ea(i),{htmlProps:f,descendants:h,...m}=GJ(c),v=w.useMemo(()=>({...m,reduceMotion:!!a}),[m,a]);return X.jsx(WJ,{value:h,children:X.jsx(XJ,{value:v,children:X.jsx(UJ,{value:u,children:X.jsx(ct.div,{ref:s,...f,className:qt("chakra-accordion",i.className),__css:u.root,children:t})})})})});ej.displayName="Accordion";const tj=It(function(t,a){const{getButtonProps:i}=rT(),s=i(t,a),c={display:"flex",alignItems:"center",width:"100%",outline:0,...Mg().button};return X.jsx(ct.button,{...s,className:qt("chakra-accordion__button",t.className),__css:c})});tj.displayName="AccordionButton";function nj(e){const{isOpen:t,isDisabled:a}=rT(),{reduceMotion:i}=aT(),s=qt("chakra-accordion__icon",e.className),u=Mg(),c={opacity:a?.4:1,transform:t?"rotate(-180deg)":void 0,transition:i?void 0:"transform 0.2s",transformOrigin:"center",...u.icon};return X.jsx(Jl,{viewBox:"0 0 24 24","aria-hidden":!0,className:s,__css:c,...e,children:X.jsx("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})})}nj.displayName="AccordionIcon";const rj=It(function(t,a){const{children:i,className:s}=t,{htmlProps:u,...c}=KJ(t),f=Mg(),h={...f.container,overflowAnchor:"none"},m=w.useMemo(()=>c,[c]);return X.jsx(HJ,{value:m,children:X.jsx(ct.div,{ref:a,...u,className:qt("chakra-accordion__item",s),__css:h,children:typeof i=="function"?i({isExpanded:!!c.isOpen,isDisabled:!!c.isDisabled}):i})})});rj.displayName="AccordionItem";const xu={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},Bl={enter:{duration:.2,ease:xu.easeOut},exit:{duration:.1,ease:xu.easeIn}},Xo={enter:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.enter}),exit:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.exit})},tee=e=>e!=null&&parseInt(e.toString(),10)>0,oO={exit:{height:{duration:.2,ease:xu.ease},opacity:{duration:.3,ease:xu.ease}},enter:{height:{duration:.3,ease:xu.ease},opacity:{duration:.4,ease:xu.ease}}},nee={exit:({animateOpacity:e,startingHeight:t,transition:a,transitionEnd:i,delay:s})=>({...e&&{opacity:tee(t)?1:0},height:t,transitionEnd:i==null?void 0:i.exit,transition:(a==null?void 0:a.exit)??Xo.exit(oO.exit,s)}),enter:({animateOpacity:e,endingHeight:t,transition:a,transitionEnd:i,delay:s})=>({...e&&{opacity:1},height:t,transitionEnd:i==null?void 0:i.enter,transition:(a==null?void 0:a.enter)??Xo.enter(oO.enter,s)})},aj=w.forwardRef((e,t)=>{const{in:a,unmountOnExit:i,animateOpacity:s=!0,startingHeight:u=0,endingHeight:c="auto",style:f,className:h,transition:m,transitionEnd:v,animatePresenceProps:y,...x}=e,[S,R]=w.useState(!1);w.useEffect(()=>{const N=setTimeout(()=>{R(!0)});return()=>clearTimeout(N)},[]),jh({condition:Number(u)>0&&!!i,message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});const E=parseFloat(u.toString())>0,k={startingHeight:u,endingHeight:c,animateOpacity:s,transition:S?m:{enter:{duration:0}},transitionEnd:{enter:v==null?void 0:v.enter,exit:i?v==null?void 0:v.exit:{...v==null?void 0:v.exit,display:E?"block":"none"}}},O=i?a:!0,_=a||i?"enter":"exit";return X.jsx(Ql,{...y,initial:!1,custom:k,children:O&&X.jsx(Us.div,{ref:t,...x,className:qt("chakra-collapse",h),style:{overflow:"hidden",display:"block",...f},custom:k,variants:nee,initial:i?"exit":!1,animate:_,exit:"exit"})})});aj.displayName="Collapse";const ij=It(function(t,a){const{className:i,motionProps:s,...u}=t,{reduceMotion:c}=aT(),{getPanelProps:f,isOpen:h}=rT(),m=f(u,a),v=qt("chakra-accordion__panel",i),y=Mg();c||delete m.hidden;const x=X.jsx(ct.div,{...m,__css:y.panel,className:v});return c?x:X.jsx(aj,{in:h,...s,children:x})});ij.displayName="AccordionPanel";const $v=It(function(t,a){const i=ui("Badge",t),{className:s,...u}=ea(t);return X.jsx(ct.span,{ref:a,className:qt("chakra-badge",t.className),...u,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...i}})});$v.displayName="Badge";const Dr=ct("div");Dr.displayName="Box";const[Loe,ree]=pa({strict:!1,name:"ButtonGroupContext"});function Xf(e){const{children:t,className:a,...i}=e,s=w.isValidElement(t)?w.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,u=qt("chakra-button__icon",a);return X.jsx(ct.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...i,className:u,children:s})}Xf.displayName="ButtonIcon";function _w(e){const{label:t,placement:a,spacing:i="0.5rem",children:s=X.jsx(Wh,{color:"currentColor",width:"1em",height:"1em"}),className:u,__css:c,...f}=e,h=qt("chakra-button__spinner",u),m=a==="start"?"marginEnd":"marginStart",v=w.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[m]:t?i:0,fontSize:"1em",lineHeight:"normal",...c}),[c,t,m,i]);return X.jsx(ct.div,{className:h,...f,__css:v,children:s})}_w.displayName="ButtonSpinner";function aee(e){const[t,a]=w.useState(!e);return{ref:w.useCallback(u=>{u&&a(u.tagName==="BUTTON")},[]),type:t?"button":void 0}}const Ea=It((e,t)=>{const a=ree(),i=ui("Button",{...a,...e}),{isDisabled:s=a==null?void 0:a.isDisabled,isLoading:u,isActive:c,children:f,leftIcon:h,rightIcon:m,loadingText:v,iconSpacing:y="0.5rem",type:x,spinner:S,spinnerPlacement:R="start",className:E,as:k,shouldWrapChildren:O,..._}=ea(e),N=w.useMemo(()=>{const F={...i==null?void 0:i._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...i,...!!a&&{_focus:F}}},[i,a]),{ref:$,type:L}=aee(k),I={rightIcon:m,leftIcon:h,iconSpacing:y,children:f,shouldWrapChildren:O};return X.jsxs(ct.button,{disabled:s||u,ref:v4(t,$),as:k,type:x??L,"data-active":Ai(c),"data-loading":Ai(u),__css:N,className:qt("chakra-button",E),..._,children:[u&&R==="start"&&X.jsx(_w,{className:"chakra-button__spinner--start",label:v,placement:"start",spacing:y,children:S}),u?v||X.jsx(ct.span,{opacity:0,children:X.jsx(sO,{...I})}):X.jsx(sO,{...I}),u&&R==="end"&&X.jsx(_w,{className:"chakra-button__spinner--end",label:v,placement:"end",spacing:y,children:S})]})});Ea.displayName="Button";function sO(e){const{leftIcon:t,rightIcon:a,children:i,iconSpacing:s,shouldWrapChildren:u}=e;return u?X.jsxs("span",{style:{display:"contents"},children:[t&&X.jsx(Xf,{marginEnd:s,children:t}),i,a&&X.jsx(Xf,{marginStart:s,children:a})]}):X.jsxs(X.Fragment,{children:[t&&X.jsx(Xf,{marginEnd:s,children:t}),i,a&&X.jsx(Xf,{marginStart:s,children:a})]})}const Kf=It((e,t)=>{const{icon:a,children:i,isRound:s,"aria-label":u,...c}=e,f=a||i,h=w.isValidElement(f)?w.cloneElement(f,{"aria-hidden":!0,focusable:!1}):null;return X.jsx(Ea,{px:"0",py:"0",borderRadius:s?"full":void 0,ref:t,"aria-label":u,...c,children:h})});Kf.displayName="IconButton";const og=ct("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});og.displayName="Center";const iee={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}};It(function(t,a){const{axis:i="both",...s}=t;return X.jsx(ct.div,{ref:a,__css:iee[i],...s,position:"absolute"})});const[oee,oj]=pa({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "<FormControl />" `}),[see,Ng]=pa({strict:!1,name:"FormControlContext"});function lee(e){const{id:t,isRequired:a,isInvalid:i,isDisabled:s,isReadOnly:u,...c}=e,f=w.useId(),h=t||`field-${f}`,m=`${h}-label`,v=`${h}-feedback`,y=`${h}-helptext`,[x,S]=w.useState(!1),[R,E]=w.useState(!1),[k,O]=w.useState(!1),_=w.useCallback((F={},Q=null)=>({id:y,...F,ref:fo(Q,le=>{le&&E(!0)})}),[y]),N=w.useCallback((F={},Q=null)=>({...F,ref:Q,"data-focus":Ai(k),"data-disabled":Ai(s),"data-invalid":Ai(i),"data-readonly":Ai(u),id:F.id!==void 0?F.id:m,htmlFor:F.htmlFor!==void 0?F.htmlFor:h}),[h,s,k,i,u,m]),$=w.useCallback((F={},Q=null)=>({id:v,...F,ref:fo(Q,le=>{le&&S(!0)}),"aria-live":"polite"}),[v]),L=w.useCallback((F={},Q=null)=>({...F,...c,ref:Q,role:"group","data-focus":Ai(k),"data-disabled":Ai(s),"data-invalid":Ai(i),"data-readonly":Ai(u)}),[c,s,k,i,u]),I=w.useCallback((F={},Q=null)=>({...F,ref:Q,role:"presentation","aria-hidden":!0,children:F.children||"*"}),[]);return{isRequired:!!a,isInvalid:!!i,isReadOnly:!!u,isDisabled:!!s,isFocused:!!k,onFocus:()=>O(!0),onBlur:()=>O(!1),hasFeedbackText:x,setHasFeedbackText:S,hasHelpText:R,setHasHelpText:E,id:h,labelId:m,feedbackId:v,helpTextId:y,htmlProps:c,getHelpTextProps:_,getErrorMessageProps:$,getRootProps:L,getLabelProps:N,getRequiredIndicatorProps:I}}const ou=It(function(t,a){const i=qu("Form",t),s=ea(t),{getRootProps:u,htmlProps:c,...f}=lee(s),h=qt("chakra-form-control",t.className);return X.jsx(see,{value:f,children:X.jsx(oee,{value:i,children:X.jsx(ct.div,{...u({},a),className:h,__css:i.container})})})});ou.displayName="FormControl";const cee=It(function(t,a){const i=Ng(),s=oj(),u=qt("chakra-form__helper-text",t.className);return X.jsx(ct.div,{...i==null?void 0:i.getHelpTextProps(t,a),__css:s.helperText,className:u})});cee.displayName="FormHelperText";function iT(e){const{isDisabled:t,isInvalid:a,isReadOnly:i,isRequired:s,...u}=uee(e);return{...u,disabled:t,readOnly:i,required:s,"aria-invalid":Qx(a),"aria-required":Qx(s),"aria-readonly":Qx(i)}}function uee(e){const t=Ng(),{id:a,disabled:i,readOnly:s,required:u,isRequired:c,isInvalid:f,isReadOnly:h,isDisabled:m,onFocus:v,onBlur:y,...x}=e,S=e["aria-describedby"]?[e["aria-describedby"]]:[];return t!=null&&t.hasFeedbackText&&(t!=null&&t.isInvalid)&&S.push(t.feedbackId),t!=null&&t.hasHelpText&&S.push(t.helpTextId),{...x,"aria-describedby":S.join(" ")||void 0,id:a??(t==null?void 0:t.id),isDisabled:i??m??(t==null?void 0:t.isDisabled),isReadOnly:s??h??(t==null?void 0:t.isReadOnly),isRequired:u??c??(t==null?void 0:t.isRequired),isInvalid:f??(t==null?void 0:t.isInvalid),onFocus:ca(t==null?void 0:t.onFocus,v),onBlur:ca(t==null?void 0:t.onBlur,y)}}const Aw=It(function(t,a){const{className:i,centerContent:s,...u}=ea(t),c=ui("Container",t);return X.jsx(ct.div,{ref:a,className:qt("chakra-container",i),...u,__css:{...c,...s&&{display:"flex",flexDirection:"column",alignItems:"center"}}})});Aw.displayName="Container";function Qf(e){return typeof e=="function"}function dee(...e){return t=>e.reduce((a,i)=>i(a),t)}const fee=e=>function(...a){let i=[...a],s=a[a.length-1];return $Y(s)&&i.length>1?i=i.slice(0,i.length-1):s=e,dee(...i.map(u=>c=>Qf(u)?u(c):pee(c,u)))(s)},hee=fee(qM);function pee(...e){return oi({},...e,sj)}function sj(e,t,a,i){if((Qf(e)||Qf(t))&&Object.prototype.hasOwnProperty.call(i,a))return(...s)=>{const u=Qf(e)?e(...s):e,c=Qf(t)?t(...s):t;return oi({},u,c,sj)};if(fa(e)&&XS(t)||XS(e)&&fa(t))return t}const lj=It(function(t,a){const{direction:i,align:s,justify:u,wrap:c,basis:f,grow:h,shrink:m,...v}=t,y={display:"flex",flexDirection:i,alignItems:s,justifyContent:u,flexWrap:c,flexBasis:f,flexGrow:h,flexShrink:m};return X.jsx(ct.div,{ref:a,__css:y,...v})});lj.displayName="Flex";function mee(e,t){if(e==null)return{};var a={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;a[i]=e[i]}return a}var cj={exports:{}};/*
552
- object-assign
553
- (c) Sindre Sorhus
554
- @license MIT
555
- */var lO=Object.getOwnPropertySymbols,vee=Object.prototype.hasOwnProperty,gee=Object.prototype.propertyIsEnumerable;function yee(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function bee(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},a=0;a<10;a++)t["_"+String.fromCharCode(a)]=a;var i=Object.getOwnPropertyNames(t).map(function(u){return t[u]});if(i.join("")!=="0123456789")return!1;var s={};return"abcdefghijklmnopqrst".split("").forEach(function(u){s[u]=u}),Object.keys(Object.assign({},s)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var xee=bee()?Object.assign:function(e,t){for(var a,i=yee(e),s,u=1;u<arguments.length;u++){a=Object(arguments[u]);for(var c in a)vee.call(a,c)&&(i[c]=a[c]);if(lO){s=lO(a);for(var f=0;f<s.length;f++)gee.call(a,s[f])&&(i[s[f]]=a[s[f]])}}return i},See="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",uj=See,dj=Function.call.bind(Object.prototype.hasOwnProperty),Ow=function(){};{var wee=uj,Mw={},Cee=dj;Ow=function(e){var t="Warning: "+e;typeof console<"u"&&console.error(t);try{throw new Error(t)}catch{}}}function fj(e,t,a,i,s){for(var u in e)if(Cee(e,u)){var c;try{if(typeof e[u]!="function"){var f=Error((i||"React class")+": "+a+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}c=e[u](t,u,i,a,null,wee)}catch(m){c=m}if(c&&!(c instanceof Error)&&Ow((i||"React class")+": type specification of "+a+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof c+". 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 instanceof Error&&!(c.message in Mw)){Mw[c.message]=!0;var h=s?s():"";Ow("Failed "+a+" type: "+c.message+(h??""))}}}fj.resetWarningCache=function(){Mw={}};var Tee=fj,Eee=uC,Ree=xee,tu=uj,MS=dj,cO=Tee,su=function(){};su=function(e){var t="Warning: "+e;typeof console<"u"&&console.error(t);try{throw new Error(t)}catch{}};function fv(){return null}var kee=function(e,t){var a=typeof Symbol=="function"&&Symbol.iterator,i="@@iterator";function s(q){var ue=q&&(a&&q[a]||q[i]);if(typeof ue=="function")return ue}var u="<<anonymous>>",c={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:y(),arrayOf:x,element:S(),elementType:R(),instanceOf:E,node:N(),objectOf:O,oneOf:k,oneOfType:_,shape:L,exact:I};function f(q,ue){return q===ue?q!==0||1/q===1/ue:q!==q&&ue!==ue}function h(q,ue){this.message=q,this.data=ue&&typeof ue=="object"?ue:{},this.stack=""}h.prototype=Error.prototype;function m(q){var ue={},Ee=0;function we(K,Y,G,ve,te,pe,Me){if(ve=ve||u,pe=pe||G,Me!==tu){if(t){var Ne=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw Ne.name="Invariant Violation",Ne}else if(typeof console<"u"){var Pe=ve+":"+G;!ue[Pe]&&Ee<3&&(su("You are manually calling a React.PropTypes validation function for the `"+pe+"` prop on `"+ve+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),ue[Pe]=!0,Ee++)}}return Y[G]==null?K?Y[G]===null?new h("The "+te+" `"+pe+"` is marked as required "+("in `"+ve+"`, but its value is `null`.")):new h("The "+te+" `"+pe+"` is marked as required in "+("`"+ve+"`, but its value is `undefined`.")):null:q(Y,G,ve,te,pe)}var oe=we.bind(null,!1);return oe.isRequired=we.bind(null,!0),oe}function v(q){function ue(Ee,we,oe,K,Y,G){var ve=Ee[we],te=le(ve);if(te!==q){var pe=re(ve);return new h("Invalid "+K+" `"+Y+"` of type "+("`"+pe+"` supplied to `"+oe+"`, expected ")+("`"+q+"`."),{expectedType:q})}return null}return m(ue)}function y(){return m(fv)}function x(q){function ue(Ee,we,oe,K,Y){if(typeof q!="function")return new h("Property `"+Y+"` of component `"+oe+"` has invalid PropType notation inside arrayOf.");var G=Ee[we];if(!Array.isArray(G)){var ve=le(G);return new h("Invalid "+K+" `"+Y+"` of type "+("`"+ve+"` supplied to `"+oe+"`, expected an array."))}for(var te=0;te<G.length;te++){var pe=q(G,te,oe,K,Y+"["+te+"]",tu);if(pe instanceof Error)return pe}return null}return m(ue)}function S(){function q(ue,Ee,we,oe,K){var Y=ue[Ee];if(!e(Y)){var G=le(Y);return new h("Invalid "+oe+" `"+K+"` of type "+("`"+G+"` supplied to `"+we+"`, expected a single ReactElement."))}return null}return m(q)}function R(){function q(ue,Ee,we,oe,K){var Y=ue[Ee];if(!Eee.isValidElementType(Y)){var G=le(Y);return new h("Invalid "+oe+" `"+K+"` of type "+("`"+G+"` supplied to `"+we+"`, expected a single ReactElement type."))}return null}return m(q)}function E(q){function ue(Ee,we,oe,K,Y){if(!(Ee[we]instanceof q)){var G=q.name||u,ve=Ke(Ee[we]);return new h("Invalid "+K+" `"+Y+"` of type "+("`"+ve+"` supplied to `"+oe+"`, expected ")+("instance of `"+G+"`."))}return null}return m(ue)}function k(q){if(!Array.isArray(q))return arguments.length>1?su("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):su("Invalid argument supplied to oneOf, expected an array."),fv;function ue(Ee,we,oe,K,Y){for(var G=Ee[we],ve=0;ve<q.length;ve++)if(f(G,q[ve]))return null;var te=JSON.stringify(q,function(Me,Ne){var Pe=re(Ne);return Pe==="symbol"?String(Ne):Ne});return new h("Invalid "+K+" `"+Y+"` of value `"+String(G)+"` "+("supplied to `"+oe+"`, expected one of "+te+"."))}return m(ue)}function O(q){function ue(Ee,we,oe,K,Y){if(typeof q!="function")return new h("Property `"+Y+"` of component `"+oe+"` has invalid PropType notation inside objectOf.");var G=Ee[we],ve=le(G);if(ve!=="object")return new h("Invalid "+K+" `"+Y+"` of type "+("`"+ve+"` supplied to `"+oe+"`, expected an object."));for(var te in G)if(MS(G,te)){var pe=q(G,te,oe,K,Y+"."+te,tu);if(pe instanceof Error)return pe}return null}return m(ue)}function _(q){if(!Array.isArray(q))return su("Invalid argument supplied to oneOfType, expected an instance of array."),fv;for(var ue=0;ue<q.length;ue++){var Ee=q[ue];if(typeof Ee!="function")return su("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+de(Ee)+" at index "+ue+"."),fv}function we(oe,K,Y,G,ve){for(var te=[],pe=0;pe<q.length;pe++){var Me=q[pe],Ne=Me(oe,K,Y,G,ve,tu);if(Ne==null)return null;Ne.data&&MS(Ne.data,"expectedType")&&te.push(Ne.data.expectedType)}var Pe=te.length>0?", expected one of type ["+te.join(", ")+"]":"";return new h("Invalid "+G+" `"+ve+"` supplied to "+("`"+Y+"`"+Pe+"."))}return m(we)}function N(){function q(ue,Ee,we,oe,K){return F(ue[Ee])?null:new h("Invalid "+oe+" `"+K+"` supplied to "+("`"+we+"`, expected a ReactNode."))}return m(q)}function $(q,ue,Ee,we,oe){return new h((q||"React class")+": "+ue+" type `"+Ee+"."+we+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+oe+"`.")}function L(q){function ue(Ee,we,oe,K,Y){var G=Ee[we],ve=le(G);if(ve!=="object")return new h("Invalid "+K+" `"+Y+"` of type `"+ve+"` "+("supplied to `"+oe+"`, expected `object`."));for(var te in q){var pe=q[te];if(typeof pe!="function")return $(oe,K,Y,te,re(pe));var Me=pe(G,te,oe,K,Y+"."+te,tu);if(Me)return Me}return null}return m(ue)}function I(q){function ue(Ee,we,oe,K,Y){var G=Ee[we],ve=le(G);if(ve!=="object")return new h("Invalid "+K+" `"+Y+"` of type `"+ve+"` "+("supplied to `"+oe+"`, expected `object`."));var te=Ree({},Ee[we],q);for(var pe in te){var Me=q[pe];if(MS(q,pe)&&typeof Me!="function")return $(oe,K,Y,pe,re(Me));if(!Me)return new h("Invalid "+K+" `"+Y+"` key `"+pe+"` supplied to `"+oe+"`.\nBad object: "+JSON.stringify(Ee[we],null," ")+`
556
- Valid keys: `+JSON.stringify(Object.keys(q),null," "));var Ne=Me(G,pe,oe,K,Y+"."+pe,tu);if(Ne)return Ne}return null}return m(ue)}function F(q){switch(typeof q){case"number":case"string":case"undefined":return!0;case"boolean":return!q;case"object":if(Array.isArray(q))return q.every(F);if(q===null||e(q))return!0;var ue=s(q);if(ue){var Ee=ue.call(q),we;if(ue!==q.entries){for(;!(we=Ee.next()).done;)if(!F(we.value))return!1}else for(;!(we=Ee.next()).done;){var oe=we.value;if(oe&&!F(oe[1]))return!1}}else return!1;return!0;default:return!1}}function Q(q,ue){return q==="symbol"?!0:ue?ue["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&ue instanceof Symbol:!1}function le(q){var ue=typeof q;return Array.isArray(q)?"array":q instanceof RegExp?"object":Q(ue,q)?"symbol":ue}function re(q){if(typeof q>"u"||q===null)return""+q;var ue=le(q);if(ue==="object"){if(q instanceof Date)return"date";if(q instanceof RegExp)return"regexp"}return ue}function de(q){var ue=re(q);switch(ue){case"array":case"object":return"an "+ue;case"boolean":case"date":case"regexp":return"a "+ue;default:return ue}}function Ke(q){return!q.constructor||!q.constructor.name?u:q.constructor.name}return c.checkPropTypes=cO,c.resetWarningCache=cO.resetWarningCache,c.PropTypes=c,c};{var Dee=uC,_ee=!0;cj.exports=kee(Dee.isElement,_ee)}var _n=cj.exports;const hj=mg(_n);var Nw="data-focus-lock",pj="data-focus-lock-disabled",Aee="data-no-focus-lock",Oee="data-autofocus-inside",Mee="data-no-autofocus";function NS(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Nee(e,t){var a=w.useState(function(){return{value:e,callback:t,facade:{get current(){return a.value},set current(i){var s=a.value;s!==i&&(a.value=i,a.callback(i,s))}}}})[0];return a.callback=t,a.facade}var Pee=typeof window<"u"?w.useLayoutEffect:w.useEffect,uO=new WeakMap;function mj(e,t){var a=Nee(t||null,function(i){return e.forEach(function(s){return NS(s,i)})});return Pee(function(){var i=uO.get(a);if(i){var s=new Set(i),u=new Set(e),c=a.current;s.forEach(function(f){u.has(f)||NS(f,null)}),u.forEach(function(f){s.has(f)||NS(f,c)})}uO.set(a,e)},[e]),a}var PS={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"};hj.node;var ao=function(){return ao=Object.assign||function(t){for(var a,i=1,s=arguments.length;i<s;i++){a=arguments[i];for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(t[u]=a[u])}return t},ao.apply(this,arguments)};function vj(e,t){var a={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(a[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(e);s<i.length;s++)t.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(e,i[s])&&(a[i[s]]=e[i[s]]);return a}function jee(e,t,a){if(a||arguments.length===2)for(var i=0,s=t.length,u;i<s;i++)(u||!(i in t))&&(u||(u=Array.prototype.slice.call(t,0,i)),u[i]=t[i]);return e.concat(u||Array.prototype.slice.call(t))}function gj(e){return e}function yj(e,t){t===void 0&&(t=gj);var a=[],i=!1,s={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return a.length?a[a.length-1]:e},useMedium:function(u){var c=t(u,i);return a.push(c),function(){a=a.filter(function(f){return f!==c})}},assignSyncMedium:function(u){for(i=!0;a.length;){var c=a;a=[],c.forEach(u)}a={push:function(f){return u(f)},filter:function(){return a}}},assignMedium:function(u){i=!0;var c=[];if(a.length){var f=a;a=[],f.forEach(u),c=a}var h=function(){var v=c;c=[],v.forEach(u)},m=function(){return Promise.resolve().then(h)};m(),a={push:function(v){c.push(v),m()},filter:function(v){return c=c.filter(v),a}}}};return s}function oT(e,t){return t===void 0&&(t=gj),yj(e,t)}function bj(e){e===void 0&&(e={});var t=yj(null);return t.options=ao({async:!0,ssr:!1},e),t}var xj=function(e){var t=e.sideCar,a=vj(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return w.createElement(i,ao({},a))};xj.isSideCarExport=!0;function Lee(e,t){return e.useMedium(t),xj}var Sj=oT({},function(e){var t=e.target,a=e.currentTarget;return{target:t,currentTarget:a}}),wj=oT(),$ee=oT(),zee=bj({async:!0,ssr:typeof document<"u"}),Fee=w.createContext(void 0),Iee=[],Cj=w.forwardRef(function(t,a){var i,s=w.useState(),u=s[0],c=s[1],f=w.useRef(),h=w.useRef(!1),m=w.useRef(null),v=w.useState({}),y=v[1],x=t.children,S=t.disabled,R=S===void 0?!1:S,E=t.noFocusGuards,k=E===void 0?!1:E,O=t.persistentFocus,_=O===void 0?!1:O,N=t.crossFrame,$=N===void 0?!0:N,L=t.autoFocus,I=L===void 0?!0:L,F=t.allowTextSelection,Q=t.group,le=t.className,re=t.whiteList,de=t.hasPositiveIndices,Ke=t.shards,q=Ke===void 0?Iee:Ke,ue=t.as,Ee=ue===void 0?"div":ue,we=t.lockProps,oe=we===void 0?{}:we,K=t.sideCar,Y=t.returnFocus,G=Y===void 0?!1:Y,ve=t.focusOptions,te=t.onActivation,pe=t.onDeactivation,Me=w.useState({}),Ne=Me[0],Pe=w.useCallback(function(Ot){var cn=Ot.captureFocusRestore;if(!m.current){var en,vt=(en=document)==null?void 0:en.activeElement;m.current=vt,vt!==document.body&&(m.current=cn(vt))}f.current&&te&&te(f.current),h.current=!0,y()},[te]),ht=w.useCallback(function(){h.current=!1,pe&&pe(f.current),y()},[pe]),mt=w.useCallback(function(Ot){var cn=m.current;if(cn){var en=(typeof cn=="function"?cn():cn)||document.body,vt=typeof G=="function"?G(en):G;if(vt){var on=typeof vt=="object"?vt:void 0;m.current=null,Ot?Promise.resolve().then(function(){return en.focus(on)}):en.focus(on)}}},[G]),gt=w.useCallback(function(Ot){h.current&&Sj.useMedium(Ot)},[]),it=wj.useMedium,jt=w.useCallback(function(Ot){f.current!==Ot&&(f.current=Ot,c(Ot))},[]);typeof F<"u"&&console.warn("React-Focus-Lock: allowTextSelection is deprecated and enabled by default"),w.useEffect(function(){!f.current&&typeof Ee!="string"&&console.error("FocusLock: could not obtain ref to internal node")},[]);var be=Yl((i={},i[pj]=R&&"disabled",i[Nw]=Q,i),oe),ut=k!==!0,Et=ut&&k!=="tail",Nt=mj([a,jt]),Pt=w.useMemo(function(){return{observed:f,shards:q,enabled:!R,get active(){return h.current}}},[R,h,q,f]);return hn.createElement(w.Fragment,null,ut&&[hn.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:R?-1:0,style:PS}),de?hn.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:R?-1:1,style:PS}):null],!R&&hn.createElement(K,{id:Ne,sideCar:zee,observed:u,disabled:R,persistentFocus:_,crossFrame:$,autoFocus:I,whiteList:re,shards:q,onActivation:Pe,onDeactivation:ht,returnFocus:mt,focusOptions:ve,noFocusGuards:k}),hn.createElement(Ee,Yl({ref:Nt},be,{className:le,onBlur:it,onFocus:gt}),hn.createElement(Fee.Provider,{value:Pt},x)),Et&&hn.createElement("div",{"data-focus-guard":!0,tabIndex:R?-1:0,style:PS}))});Cj.propTypes={children:_n.node,disabled:_n.bool,returnFocus:_n.oneOfType([_n.bool,_n.object,_n.func]),focusOptions:_n.object,noFocusGuards:_n.bool,hasPositiveIndices:_n.bool,allowTextSelection:_n.bool,autoFocus:_n.bool,persistentFocus:_n.bool,crossFrame:_n.bool,group:_n.string,className:_n.string,whiteList:_n.func,shards:_n.arrayOf(_n.any),as:_n.oneOfType([_n.string,_n.func,_n.object]),lockProps:_n.object,onActivation:_n.func,onDeactivation:_n.func,sideCar:_n.any.isRequired};const Tj=Cj;function Pw(e,t){return Pw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,i){return a.__proto__=i,a},Pw(e,t)}function Vee(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Pw(e,t)}function Rh(e){"@babel/helpers - typeof";return Rh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rh(e)}function Bee(e,t){if(Rh(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var i=a.call(e,t||"default");if(Rh(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Uee(e){var t=Bee(e,"string");return Rh(t)=="symbol"?t:t+""}function Hee(e,t,a){return(t=Uee(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function Wee(e,t){{if(typeof e!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof t!="function")throw new Error("Expected handleStateChangeOnClient to be a function.")}function a(i){return i.displayName||i.name||"Component"}return function(s){if(typeof s!="function")throw new Error("Expected WrappedComponent to be a React component.");var u=[],c;function f(){c=e(u.map(function(m){return m.props})),t(c)}var h=function(m){Vee(v,m);function v(){return m.apply(this,arguments)||this}v.peek=function(){return c};var y=v.prototype;return y.componentDidMount=function(){u.push(this),f()},y.componentDidUpdate=function(){f()},y.componentWillUnmount=function(){var S=u.indexOf(this);u.splice(S,1),f()},y.render=function(){return hn.createElement(s,this.props)},v}(w.PureComponent);return Hee(h,"displayName","SideEffect("+a(s)+")"),h}}var po=function(e){for(var t=Array(e.length),a=0;a<e.length;++a)t[a]=e[a];return t},ql=function(e){return Array.isArray(e)?e:[e]},Ej=function(e){return Array.isArray(e)?e[0]:e},Yee=function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!t||!t.getPropertyValue?!1:t.getPropertyValue("display")==="none"||t.getPropertyValue("visibility")==="hidden"},Rj=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},kj=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},qee=function(e){return e.hasAttribute("inert")},Gee=function(e,t){return!e||kj(e)||!Yee(e)&&!qee(e)&&t(Rj(e))},Dj=function(e,t){var a=e.get(t);if(a!==void 0)return a;var i=Gee(t,Dj.bind(void 0,e));return e.set(t,i),i},Xee=function(e,t){return e&&!kj(e)?Zee(e)?t(Rj(e)):!1:!0},_j=function(e,t){var a=e.get(t);if(a!==void 0)return a;var i=Xee(t,_j.bind(void 0,e));return e.set(t,i),i},Aj=function(e){return e.dataset},Kee=function(e){return e.tagName==="BUTTON"},Oj=function(e){return e.tagName==="INPUT"},Mj=function(e){return Oj(e)&&e.type==="radio"},Qee=function(e){return!((Oj(e)||Kee(e))&&(e.type==="hidden"||e.disabled))},Zee=function(e){var t=e.getAttribute(Mee);return![!0,"true",""].includes(t)},sT=function(e){var t;return!!(e&&(!((t=Aj(e))===null||t===void 0)&&t.focusGuard))},jw=function(e){return!sT(e)},Jee=function(e){return!!e},ete=function(e,t){var a=Math.max(0,e.tabIndex),i=Math.max(0,t.tabIndex),s=a-i,u=e.index-t.index;if(s){if(!a)return 1;if(!i)return-1}return s||u},tte=function(e){return e.tabIndex<0&&!e.hasAttribute("tabindex")?0:e.tabIndex},lT=function(e,t,a){return po(e).map(function(i,s){var u=tte(i);return{node:i,index:s,tabIndex:a&&u===-1?(i.dataset||{}).focusGuard?0:-1:u}}).filter(function(i){return!t||i.tabIndex>=0}).sort(ete)},nte=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],cT=nte.join(","),rte="".concat(cT,", [data-focus-guard]"),Nj=function(e,t){return po((e.shadowRoot||e).children).reduce(function(a,i){return a.concat(i.matches(t?rte:cT)?[i]:[],Nj(i))},[])},ate=function(e,t){var a;return e instanceof HTMLIFrameElement&&(!((a=e.contentDocument)===null||a===void 0)&&a.body)?zu([e.contentDocument.body],t):[e]},zu=function(e,t){return e.reduce(function(a,i){var s,u=Nj(i,t),c=(s=[]).concat.apply(s,u.map(function(f){return ate(f,t)}));return a.concat(c,i.parentNode?po(i.parentNode.querySelectorAll(cT)).filter(function(f){return f===i}):[])},[])},ite=function(e){var t=e.querySelectorAll("[".concat(Oee,"]"));return po(t).map(function(a){return zu([a])}).reduce(function(a,i){return a.concat(i)},[])},uT=function(e,t){return po(e).filter(function(a){return Dj(t,a)}).filter(function(a){return Qee(a)})},dO=function(e,t){return t===void 0&&(t=new Map),po(e).filter(function(a){return _j(t,a)})},dT=function(e,t,a){return lT(uT(zu(e,a),t),!0,a)},kh=function(e,t){return lT(uT(zu(e),t),!1)},ote=function(e,t){return uT(ite(e),t)},Ul=function(e,t){return e.shadowRoot?Ul(e.shadowRoot,t):Object.getPrototypeOf(e).contains!==void 0&&Object.getPrototypeOf(e).contains.call(e,t)?!0:po(e.children).some(function(a){var i;if(a instanceof HTMLIFrameElement){var s=(i=a.contentDocument)===null||i===void 0?void 0:i.body;return s?Ul(s,t):!1}return Ul(a,t)})},ste=function(e){for(var t=new Set,a=e.length,i=0;i<a;i+=1)for(var s=i+1;s<a;s+=1){var u=e[i].compareDocumentPosition(e[s]);(u&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(s),(u&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(i)}return e.filter(function(c,f){return!t.has(f)})},Pj=function(e){return e.parentNode?Pj(e.parentNode):e},fT=function(e){var t=ql(e);return t.filter(Boolean).reduce(function(a,i){var s=i.getAttribute(Nw);return a.push.apply(a,s?ste(po(Pj(i).querySelectorAll("[".concat(Nw,'="').concat(s,'"]:not([').concat(pj,'="disabled"])')))):[i]),a},[])},lte=function(e){try{return e()}catch{return}},Dh=function(e){if(e===void 0&&(e=document),!(!e||!e.activeElement)){var t=e.activeElement;return t.shadowRoot?Dh(t.shadowRoot):t instanceof HTMLIFrameElement&&lte(function(){return t.contentWindow.document})?Dh(t.contentWindow.document):t}},cte=function(e,t){return e===t},ute=function(e,t){return!!po(e.querySelectorAll("iframe")).some(function(a){return cte(a,t)})},jj=function(e,t){return t===void 0&&(t=Dh(Ej(e).ownerDocument)),!t||t.dataset&&t.dataset.focusGuard?!1:fT(e).some(function(a){return Ul(a,t)||ute(a,t)})},dte=function(e){e===void 0&&(e=document);var t=Dh(e);return t?po(e.querySelectorAll("[".concat(Aee,"]"))).some(function(a){return Ul(a,t)}):!1},fte=function(e,t){return t.filter(Mj).filter(function(a){return a.name===e.name}).filter(function(a){return a.checked})[0]||e},hT=function(e,t){return Mj(e)&&e.name?fte(e,t):e},hte=function(e){var t=new Set;return e.forEach(function(a){return t.add(hT(a,e))}),e.filter(function(a){return t.has(a)})},fO=function(e){return e[0]&&e.length>1?hT(e[0],e):e[0]},hO=function(e,t){return e.indexOf(hT(t,e))},Lw="NEW_FOCUS",pte=function(e,t,a,i,s){var u=e.length,c=e[0],f=e[u-1],h=sT(i);if(!(i&&e.indexOf(i)>=0)){var m=i!==void 0?a.indexOf(i):-1,v=s?a.indexOf(s):m,y=s?e.indexOf(s):-1;if(m===-1)return y!==-1?y:Lw;if(y===-1)return Lw;var x=m-v,S=a.indexOf(c),R=a.indexOf(f),E=hte(a),k=i!==void 0?E.indexOf(i):-1,O=s?E.indexOf(s):k,_=E.filter(function(Q){return Q.tabIndex>=0}),N=i!==void 0?_.indexOf(i):-1,$=s?_.indexOf(s):N,L=N>=0&&$>=0?$-N:O-k;if(!x&&y>=0||t.length===0)return y;var I=hO(e,t[0]),F=hO(e,t[t.length-1]);if(m<=S&&h&&Math.abs(x)>1)return F;if(m>=R&&h&&Math.abs(x)>1)return I;if(x&&Math.abs(L)>1)return y;if(m<=S)return F;if(m>R)return I;if(x)return Math.abs(x)>1?y:(u+y+x)%u}},mte=function(e){return function(t){var a,i=(a=Aj(t))===null||a===void 0?void 0:a.autofocus;return t.autofocus||i!==void 0&&i!=="false"||e.indexOf(t)>=0}},pO=function(e,t,a){var i=e.map(function(u){var c=u.node;return c}),s=dO(i.filter(mte(a)));return s&&s.length?fO(s):fO(dO(t))},$w=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&$w(e.parentNode.host||e.parentNode,t),t},jS=function(e,t){for(var a=$w(e),i=$w(t),s=0;s<a.length;s+=1){var u=a[s];if(i.indexOf(u)>=0)return u}return!1},Lj=function(e,t,a){var i=ql(e),s=ql(t),u=i[0],c=!1;return s.filter(Boolean).forEach(function(f){c=jS(c||f,f)||c,a.filter(Boolean).forEach(function(h){var m=jS(u,h);m&&(!c||Ul(m,c)?c=m:c=jS(m,c))})}),c},mO=function(e,t){return e.reduce(function(a,i){return a.concat(ote(i,t))},[])},vte=function(e,t){var a=new Map;return t.forEach(function(i){return a.set(i.node,i)}),e.map(function(i){return a.get(i)}).filter(Jee)},gte=function(e,t){var a=Dh(ql(e).length>0?document:Ej(e).ownerDocument),i=fT(e).filter(jw),s=Lj(a||e,e,i),u=new Map,c=kh(i,u),f=c.filter(function(R){var E=R.node;return jw(E)});if(f[0]){var h=kh([s],u).map(function(R){var E=R.node;return E}),m=vte(h,f),v=m.map(function(R){var E=R.node;return E}),y=m.filter(function(R){var E=R.tabIndex;return E>=0}).map(function(R){var E=R.node;return E}),x=pte(v,y,h,a,t);if(x===Lw){var S=pO(c,y,mO(i,u))||pO(c,v,mO(i,u));if(S)return{node:S};console.warn("focus-lock: cannot find any node to move focus into");return}return x===void 0?x:m[x]}},yte=function(e){var t=fT(e).filter(jw),a=Lj(e,e,t),i=lT(zu([a],!0),!0,!0),s=zu(t,!1);return i.map(function(u){var c=u.node,f=u.index;return{node:c,index:f,lockItem:s.indexOf(c)>=0,guard:sT(c)}})},pT=function(e,t){e&&("focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus())},LS=0,$S=!1,$j=function(e,t,a){a===void 0&&(a={});var i=gte(e,t);if(!$S&&i){if(LS>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),$S=!0,setTimeout(function(){$S=!1},1);return}LS++,pT(i.node,a.focusOptions),LS--}};function Ff(e){if(!e)return null;if(typeof WeakRef>"u")return function(){return e||null};var t=e?new WeakRef(e):null;return function(){return(t==null?void 0:t.deref())||null}}var bte=function(e){if(!e)return null;for(var t=[],a=e;a&&a!==document.body;)t.push({current:Ff(a),parent:Ff(a.parentElement),left:Ff(a.previousElementSibling),right:Ff(a.nextElementSibling)}),a=a.parentElement;return{element:Ff(e),stack:t,ownerDocument:e.ownerDocument}},xte=function(e){var t,a,i,s,u;if(e)for(var c=e.stack,f=e.ownerDocument,h=new Map,m=0,v=c;m<v.length;m++){var y=v[m],x=(t=y.parent)===null||t===void 0?void 0:t.call(y);if(x&&f.contains(x)){for(var S=(a=y.left)===null||a===void 0?void 0:a.call(y),R=y.current(),E=x.contains(R)?R:void 0,k=(i=y.right)===null||i===void 0?void 0:i.call(y),O=dT([x],h),_=(u=(s=E??(S==null?void 0:S.nextElementSibling))!==null&&s!==void 0?s:k)!==null&&u!==void 0?u:S;_;){for(var N=0,$=O;N<$.length;N++){var L=$[N];if(_!=null&&_.contains(L.node))return L.node}_=_.nextElementSibling}if(O.length)return O[0].node}}},zj=function(e){var t=bte(e);return function(){return xte(t)}},Ste=function(e,t,a){if(!e||!t)return console.error("no element or scope given"),{};var i=ql(t);if(i.every(function(c){return!Ul(c,e)}))return console.error("Active element is not contained in the scope"),{};var s=a?dT(i,new Map):kh(i,new Map),u=s.findIndex(function(c){var f=c.node;return f===e});if(u!==-1)return{prev:s[u-1],next:s[u+1],first:s[0],last:s[s.length-1]}},wte=function(e,t){var a=t?dT(ql(e),new Map):kh(ql(e),new Map);return{first:a[0],last:a[a.length-1]}},Cte=function(e){return Object.assign({scope:document.body,cycle:!0,onlyTabbable:!0},e)},Fj=function(e,t,a){t===void 0&&(t={});var i=Cte(t),s=Ste(e,i.scope,i.onlyTabbable);if(s){var u=a(s,i.cycle);u&&pT(u.node,i.focusOptions)}},Tte=function(e,t){t===void 0&&(t={}),Fj(e,t,function(a,i){var s=a.next,u=a.first;return s||i&&u})},Ete=function(e,t){t===void 0&&(t={}),Fj(e,t,function(a,i){var s=a.prev,u=a.last;return s||i&&u})},Ij=function(e,t,a){var i,s=wte(e,(i=t.onlyTabbable)!==null&&i!==void 0?i:!0),u=s[a];u&&pT(u.node,t.focusOptions)},Rte=function(e,t){t===void 0&&(t={}),Ij(e,t,"first")},kte=function(e,t){t===void 0&&(t={}),Ij(e,t,"last")};function mT(e){setTimeout(e,1)}var Dte=function(t){return t&&"current"in t?t.current:t},Vj=function(){return document&&document.activeElement===document.body},_te=function(){return Vj()||dte()},ku=null,Ca=null,vO=function(){return null},Du=null,_h=!1,vT=!1,Ate=function(){return!0},Ote=function(t){return(ku.whiteList||Ate)(t)},Mte=function(t,a){Du={observerNode:t,portaledElement:a}},Nte=function(t){return Du&&Du.portaledElement===t};function gO(e,t,a,i){var s=null,u=e;do{var c=i[u];if(c.guard)c.node.dataset.focusAutoGuard&&(s=c);else if(c.lockItem){if(u!==e)return;s=null}else break}while((u+=a)!==t);s&&(s.node.tabIndex=0)}var Pte=function(t){return t?!!_h:_h==="meanwhile"},jte=function e(t,a,i){return a&&(a.host===t&&(!a.activeElement||i.contains(a.activeElement))||a.parentNode&&e(t,a.parentNode,i))},Lte=function(t,a){return a.some(function(i){return jte(t,i,i)})},Bj=function(t){return kh(t,new Map)},$te=function(t){return!Bj([t.parentNode]).some(function(a){return a.node===t})},sg=function(){var t=!1;if(ku){var a=ku,i=a.observed,s=a.persistentFocus,u=a.autoFocus,c=a.shards,f=a.crossFrame,h=a.focusOptions,m=a.noFocusGuards,v=i||Du&&Du.portaledElement;if(Vj()&&Ca&&Ca!==document.body&&(!document.body.contains(Ca)||$te(Ca))){var y=vO();y&&y.focus()}var x=document&&document.activeElement;if(v){var S=[v].concat(c.map(Dte).filter(Boolean)),R=function(){if(!Pte(f)||!m||!Ca||vT)return!1;var N=Bj(S),$=N.findIndex(function(L){var I=L.node;return I===Ca});return $===0||$===N.length-1};if((!x||Ote(x))&&(s||R()||!_te()||!Ca&&u)&&(v&&!(jj(S)||x&&Lte(x,S)||Nte(x))&&(document&&!Ca&&x&&!u?(x.blur&&x.blur(),document.body.focus()):(t=$j(S,Ca,{focusOptions:h}),Du={})),Ca=document&&document.activeElement,Ca!==document.body&&(vO=zj(Ca)),_h=!1),document&&x!==document.activeElement&&document.querySelector("[data-focus-auto-guard]")){var E=document&&document.activeElement,k=yte(S),O=k.map(function(_){var N=_.node;return N}).indexOf(E);O>-1&&(k.filter(function(_){var N=_.guard,$=_.node;return N&&$.dataset.focusAutoGuard}).forEach(function(_){var N=_.node;return N.removeAttribute("tabIndex")}),gO(O,k.length,1,k),gO(O,-1,-1,k))}}}return t},Uj=function(t){sg()&&t&&(t.stopPropagation(),t.preventDefault())},gT=function(){return mT(sg)},zte=function(t){var a=t.target,i=t.currentTarget;i.contains(a)||Mte(i,a)},Fte=function(){return null};hj.node.isRequired;var Hj=function(){vT=!0},Wj=function(){vT=!1,_h="just",mT(function(){_h="meanwhile"})},Ite=function(){document.addEventListener("focusin",Uj),document.addEventListener("focusout",gT),window.addEventListener("focus",Hj),window.addEventListener("blur",Wj)},Vte=function(){document.removeEventListener("focusin",Uj),document.removeEventListener("focusout",gT),window.removeEventListener("focus",Hj),window.removeEventListener("blur",Wj)};function Bte(e){return e.filter(function(t){var a=t.disabled;return!a})}var Yj={moveFocusInside:$j,focusInside:jj,focusNextElement:Tte,focusPrevElement:Ete,focusFirstElement:Rte,focusLastElement:kte,captureFocusRestore:zj};function Ute(e){var t=e.slice(-1)[0];t&&!ku&&Ite();var a=ku,i=a&&t&&t.id===a.id;ku=t,a&&!i&&(a.onDeactivation(),e.filter(function(s){var u=s.id;return u===a.id}).length||a.returnFocus(!t)),t?(Ca=null,(!i||a.observed!==t.observed)&&t.onActivation(Yj),sg(),mT(sg)):(Vte(),Ca=null)}Sj.assignSyncMedium(zte);wj.assignMedium(gT);$ee.assignMedium(function(e){return e(Yj)});const Hte=Wee(Bte,Ute)(Fte);var qj=w.forwardRef(function(t,a){return hn.createElement(Tj,Yl({sideCar:Hte,ref:a},t))}),Gj=Tj.propTypes||{};Gj.sideCar;var Wte=mee(Gj,["sideCar"]);qj.propTypes=Wte;const yO=qj,Yte=yO.default??yO,Xj=e=>{const{initialFocusRef:t,finalFocusRef:a,contentRef:i,restoreFocus:s,children:u,isDisabled:c,autoFocus:f,persistentFocus:h,lockFocusAcrossFrames:m}=e,v=w.useCallback(()=>{t!=null&&t.current?t.current.focus():i!=null&&i.current&&r4(i.current).length===0&&requestAnimationFrame(()=>{var R;(R=i.current)==null||R.focus()})},[t,i]),y=w.useCallback(()=>{var S;(S=a==null?void 0:a.current)==null||S.focus()},[a]),x=s&&!a;return X.jsx(Yte,{crossFrame:m,persistentFocus:h,autoFocus:f,disabled:c,onActivation:v,onDeactivation:y,returnFocus:x,children:u})};Xj.displayName="FocusLock";const lu=It(function(t,a){const i=ui("FormLabel",t),s=ea(t),{className:u,children:c,requiredIndicator:f=X.jsx(Kj,{}),optionalIndicator:h=null,...m}=s,v=Ng(),y=(v==null?void 0:v.getLabelProps(m,a))??{ref:a,...m};return X.jsxs(ct.label,{...y,className:qt("chakra-form__label",s.className),__css:{display:"block",textAlign:"start",...i},children:[c,v!=null&&v.isRequired?f:h]})});lu.displayName="FormLabel";const Kj=It(function(t,a){const i=Ng(),s=oj();if(!(i!=null&&i.isRequired))return null;const u=qt("chakra-form__required-indicator",t.className);return X.jsx(ct.span,{...i==null?void 0:i.getRequiredIndicatorProps(t,a),__css:s.requiredIndicator,className:u})});Kj.displayName="RequiredIndicator";function qte(e){const{viewBox:t="0 0 24 24",d:a,displayName:i,defaultProps:s={}}=e,u=w.Children.toArray(e.path),c=It((f,h)=>X.jsx(Jl,{ref:h,viewBox:t,...s,...f,children:u.length?u:X.jsx("path",{fill:"currentColor",d:a})}));return c.displayName=i,c}const yT=It(function(t,a){const{htmlSize:i,...s}=t,u=qu("Input",s),c=ea(s),f=iT(c),h=qt("chakra-input",t.className);return X.jsx(ct.input,{size:i,...f,__css:u.field,ref:a,className:h})});yT.displayName="Input";yT.id="Input";var ka="top",li="bottom",ci="right",Da="left",bT="auto",Yh=[ka,li,ci,Da],Fu="start",Ah="end",Gte="clippingParents",Qj="viewport",If="popper",Xte="reference",bO=Yh.reduce(function(e,t){return e.concat([t+"-"+Fu,t+"-"+Ah])},[]),Zj=[].concat(Yh,[bT]).reduce(function(e,t){return e.concat([t,t+"-"+Fu,t+"-"+Ah])},[]),Kte="beforeRead",Qte="read",Zte="afterRead",Jte="beforeMain",ene="main",tne="afterMain",nne="beforeWrite",rne="write",ane="afterWrite",ine=[Kte,Qte,Zte,Jte,ene,tne,nne,rne,ane];function ho(e){return e?(e.nodeName||"").toLowerCase():null}function Ua(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Gl(e){var t=Ua(e).Element;return e instanceof t||e instanceof Element}function si(e){var t=Ua(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function xT(e){if(typeof ShadowRoot>"u")return!1;var t=Ua(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function one(e){var t=e.state;Object.keys(t.elements).forEach(function(a){var i=t.styles[a]||{},s=t.attributes[a]||{},u=t.elements[a];!si(u)||!ho(u)||(Object.assign(u.style,i),Object.keys(s).forEach(function(c){var f=s[c];f===!1?u.removeAttribute(c):u.setAttribute(c,f===!0?"":f)}))})}function sne(e){var t=e.state,a={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,a.popper),t.styles=a,t.elements.arrow&&Object.assign(t.elements.arrow.style,a.arrow),function(){Object.keys(t.elements).forEach(function(i){var s=t.elements[i],u=t.attributes[i]||{},c=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:a[i]),f=c.reduce(function(h,m){return h[m]="",h},{});!si(s)||!ho(s)||(Object.assign(s.style,f),Object.keys(u).forEach(function(h){s.removeAttribute(h)}))})}}const lne={name:"applyStyles",enabled:!0,phase:"write",fn:one,effect:sne,requires:["computeStyles"]};function uo(e){return e.split("-")[0]}var Hl=Math.max,lg=Math.min,Iu=Math.round;function zw(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Jj(){return!/^((?!chrome|android).)*safari/i.test(zw())}function Vu(e,t,a){t===void 0&&(t=!1),a===void 0&&(a=!1);var i=e.getBoundingClientRect(),s=1,u=1;t&&si(e)&&(s=e.offsetWidth>0&&Iu(i.width)/e.offsetWidth||1,u=e.offsetHeight>0&&Iu(i.height)/e.offsetHeight||1);var c=Gl(e)?Ua(e):window,f=c.visualViewport,h=!Jj()&&a,m=(i.left+(h&&f?f.offsetLeft:0))/s,v=(i.top+(h&&f?f.offsetTop:0))/u,y=i.width/s,x=i.height/u;return{width:y,height:x,top:v,right:m+y,bottom:v+x,left:m,x:m,y:v}}function ST(e){var t=Vu(e),a=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-a)<=1&&(a=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:a,height:i}}function e2(e,t){var a=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(a&&xT(a)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Zo(e){return Ua(e).getComputedStyle(e)}function cne(e){return["table","td","th"].indexOf(ho(e))>=0}function Hs(e){return((Gl(e)?e.ownerDocument:e.document)||window.document).documentElement}function Pg(e){return ho(e)==="html"?e:e.assignedSlot||e.parentNode||(xT(e)?e.host:null)||Hs(e)}function xO(e){return!si(e)||Zo(e).position==="fixed"?null:e.offsetParent}function une(e){var t=/firefox/i.test(zw()),a=/Trident/i.test(zw());if(a&&si(e)){var i=Zo(e);if(i.position==="fixed")return null}var s=Pg(e);for(xT(s)&&(s=s.host);si(s)&&["html","body"].indexOf(ho(s))<0;){var u=Zo(s);if(u.transform!=="none"||u.perspective!=="none"||u.contain==="paint"||["transform","perspective"].indexOf(u.willChange)!==-1||t&&u.willChange==="filter"||t&&u.filter&&u.filter!=="none")return s;s=s.parentNode}return null}function qh(e){for(var t=Ua(e),a=xO(e);a&&cne(a)&&Zo(a).position==="static";)a=xO(a);return a&&(ho(a)==="html"||ho(a)==="body"&&Zo(a).position==="static")?t:a||une(e)||t}function wT(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ch(e,t,a){return Hl(e,lg(t,a))}function dne(e,t,a){var i=ch(e,t,a);return i>a?a:i}function t2(){return{top:0,right:0,bottom:0,left:0}}function n2(e){return Object.assign({},t2(),e)}function r2(e,t){return t.reduce(function(a,i){return a[i]=e,a},{})}var fne=function(t,a){return t=typeof t=="function"?t(Object.assign({},a.rects,{placement:a.placement})):t,n2(typeof t!="number"?t:r2(t,Yh))};function hne(e){var t,a=e.state,i=e.name,s=e.options,u=a.elements.arrow,c=a.modifiersData.popperOffsets,f=uo(a.placement),h=wT(f),m=[Da,ci].indexOf(f)>=0,v=m?"height":"width";if(!(!u||!c)){var y=fne(s.padding,a),x=ST(u),S=h==="y"?ka:Da,R=h==="y"?li:ci,E=a.rects.reference[v]+a.rects.reference[h]-c[h]-a.rects.popper[v],k=c[h]-a.rects.reference[h],O=qh(u),_=O?h==="y"?O.clientHeight||0:O.clientWidth||0:0,N=E/2-k/2,$=y[S],L=_-x[v]-y[R],I=_/2-x[v]/2+N,F=ch($,I,L),Q=h;a.modifiersData[i]=(t={},t[Q]=F,t.centerOffset=F-I,t)}}function pne(e){var t=e.state,a=e.options,i=a.element,s=i===void 0?"[data-popper-arrow]":i;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||e2(t.elements.popper,s)&&(t.elements.arrow=s))}const mne={name:"arrow",enabled:!0,phase:"main",fn:hne,effect:pne,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Bu(e){return e.split("-")[1]}var vne={top:"auto",right:"auto",bottom:"auto",left:"auto"};function gne(e,t){var a=e.x,i=e.y,s=t.devicePixelRatio||1;return{x:Iu(a*s)/s||0,y:Iu(i*s)/s||0}}function SO(e){var t,a=e.popper,i=e.popperRect,s=e.placement,u=e.variation,c=e.offsets,f=e.position,h=e.gpuAcceleration,m=e.adaptive,v=e.roundOffsets,y=e.isFixed,x=c.x,S=x===void 0?0:x,R=c.y,E=R===void 0?0:R,k=typeof v=="function"?v({x:S,y:E}):{x:S,y:E};S=k.x,E=k.y;var O=c.hasOwnProperty("x"),_=c.hasOwnProperty("y"),N=Da,$=ka,L=window;if(m){var I=qh(a),F="clientHeight",Q="clientWidth";if(I===Ua(a)&&(I=Hs(a),Zo(I).position!=="static"&&f==="absolute"&&(F="scrollHeight",Q="scrollWidth")),I=I,s===ka||(s===Da||s===ci)&&u===Ah){$=li;var le=y&&I===L&&L.visualViewport?L.visualViewport.height:I[F];E-=le-i.height,E*=h?1:-1}if(s===Da||(s===ka||s===li)&&u===Ah){N=ci;var re=y&&I===L&&L.visualViewport?L.visualViewport.width:I[Q];S-=re-i.width,S*=h?1:-1}}var de=Object.assign({position:f},m&&vne),Ke=v===!0?gne({x:S,y:E},Ua(a)):{x:S,y:E};if(S=Ke.x,E=Ke.y,h){var q;return Object.assign({},de,(q={},q[$]=_?"0":"",q[N]=O?"0":"",q.transform=(L.devicePixelRatio||1)<=1?"translate("+S+"px, "+E+"px)":"translate3d("+S+"px, "+E+"px, 0)",q))}return Object.assign({},de,(t={},t[$]=_?E+"px":"",t[N]=O?S+"px":"",t.transform="",t))}function yne(e){var t=e.state,a=e.options,i=a.gpuAcceleration,s=i===void 0?!0:i,u=a.adaptive,c=u===void 0?!0:u,f=a.roundOffsets,h=f===void 0?!0:f,m={placement:uo(t.placement),variation:Bu(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,SO(Object.assign({},m,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:c,roundOffsets:h})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,SO(Object.assign({},m,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:h})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const bne={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:yne,data:{}};var hv={passive:!0};function xne(e){var t=e.state,a=e.instance,i=e.options,s=i.scroll,u=s===void 0?!0:s,c=i.resize,f=c===void 0?!0:c,h=Ua(t.elements.popper),m=[].concat(t.scrollParents.reference,t.scrollParents.popper);return u&&m.forEach(function(v){v.addEventListener("scroll",a.update,hv)}),f&&h.addEventListener("resize",a.update,hv),function(){u&&m.forEach(function(v){v.removeEventListener("scroll",a.update,hv)}),f&&h.removeEventListener("resize",a.update,hv)}}const Sne={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:xne,data:{}};var wne={left:"right",right:"left",bottom:"top",top:"bottom"};function zv(e){return e.replace(/left|right|bottom|top/g,function(t){return wne[t]})}var Cne={start:"end",end:"start"};function wO(e){return e.replace(/start|end/g,function(t){return Cne[t]})}function CT(e){var t=Ua(e),a=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:a,scrollTop:i}}function TT(e){return Vu(Hs(e)).left+CT(e).scrollLeft}function Tne(e,t){var a=Ua(e),i=Hs(e),s=a.visualViewport,u=i.clientWidth,c=i.clientHeight,f=0,h=0;if(s){u=s.width,c=s.height;var m=Jj();(m||!m&&t==="fixed")&&(f=s.offsetLeft,h=s.offsetTop)}return{width:u,height:c,x:f+TT(e),y:h}}function Ene(e){var t,a=Hs(e),i=CT(e),s=(t=e.ownerDocument)==null?void 0:t.body,u=Hl(a.scrollWidth,a.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),c=Hl(a.scrollHeight,a.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),f=-i.scrollLeft+TT(e),h=-i.scrollTop;return Zo(s||a).direction==="rtl"&&(f+=Hl(a.clientWidth,s?s.clientWidth:0)-u),{width:u,height:c,x:f,y:h}}function ET(e){var t=Zo(e),a=t.overflow,i=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(a+s+i)}function a2(e){return["html","body","#document"].indexOf(ho(e))>=0?e.ownerDocument.body:si(e)&&ET(e)?e:a2(Pg(e))}function uh(e,t){var a;t===void 0&&(t=[]);var i=a2(e),s=i===((a=e.ownerDocument)==null?void 0:a.body),u=Ua(i),c=s?[u].concat(u.visualViewport||[],ET(i)?i:[]):i,f=t.concat(c);return s?f:f.concat(uh(Pg(c)))}function Fw(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Rne(e,t){var a=Vu(e,!1,t==="fixed");return a.top=a.top+e.clientTop,a.left=a.left+e.clientLeft,a.bottom=a.top+e.clientHeight,a.right=a.left+e.clientWidth,a.width=e.clientWidth,a.height=e.clientHeight,a.x=a.left,a.y=a.top,a}function CO(e,t,a){return t===Qj?Fw(Tne(e,a)):Gl(t)?Rne(t,a):Fw(Ene(Hs(e)))}function kne(e){var t=uh(Pg(e)),a=["absolute","fixed"].indexOf(Zo(e).position)>=0,i=a&&si(e)?qh(e):e;return Gl(i)?t.filter(function(s){return Gl(s)&&e2(s,i)&&ho(s)!=="body"}):[]}function Dne(e,t,a,i){var s=t==="clippingParents"?kne(e):[].concat(t),u=[].concat(s,[a]),c=u[0],f=u.reduce(function(h,m){var v=CO(e,m,i);return h.top=Hl(v.top,h.top),h.right=lg(v.right,h.right),h.bottom=lg(v.bottom,h.bottom),h.left=Hl(v.left,h.left),h},CO(e,c,i));return f.width=f.right-f.left,f.height=f.bottom-f.top,f.x=f.left,f.y=f.top,f}function i2(e){var t=e.reference,a=e.element,i=e.placement,s=i?uo(i):null,u=i?Bu(i):null,c=t.x+t.width/2-a.width/2,f=t.y+t.height/2-a.height/2,h;switch(s){case ka:h={x:c,y:t.y-a.height};break;case li:h={x:c,y:t.y+t.height};break;case ci:h={x:t.x+t.width,y:f};break;case Da:h={x:t.x-a.width,y:f};break;default:h={x:t.x,y:t.y}}var m=s?wT(s):null;if(m!=null){var v=m==="y"?"height":"width";switch(u){case Fu:h[m]=h[m]-(t[v]/2-a[v]/2);break;case Ah:h[m]=h[m]+(t[v]/2-a[v]/2);break}}return h}function Oh(e,t){t===void 0&&(t={});var a=t,i=a.placement,s=i===void 0?e.placement:i,u=a.strategy,c=u===void 0?e.strategy:u,f=a.boundary,h=f===void 0?Gte:f,m=a.rootBoundary,v=m===void 0?Qj:m,y=a.elementContext,x=y===void 0?If:y,S=a.altBoundary,R=S===void 0?!1:S,E=a.padding,k=E===void 0?0:E,O=n2(typeof k!="number"?k:r2(k,Yh)),_=x===If?Xte:If,N=e.rects.popper,$=e.elements[R?_:x],L=Dne(Gl($)?$:$.contextElement||Hs(e.elements.popper),h,v,c),I=Vu(e.elements.reference),F=i2({reference:I,element:N,strategy:"absolute",placement:s}),Q=Fw(Object.assign({},N,F)),le=x===If?Q:I,re={top:L.top-le.top+O.top,bottom:le.bottom-L.bottom+O.bottom,left:L.left-le.left+O.left,right:le.right-L.right+O.right},de=e.modifiersData.offset;if(x===If&&de){var Ke=de[s];Object.keys(re).forEach(function(q){var ue=[ci,li].indexOf(q)>=0?1:-1,Ee=[ka,li].indexOf(q)>=0?"y":"x";re[q]+=Ke[Ee]*ue})}return re}function _ne(e,t){t===void 0&&(t={});var a=t,i=a.placement,s=a.boundary,u=a.rootBoundary,c=a.padding,f=a.flipVariations,h=a.allowedAutoPlacements,m=h===void 0?Zj:h,v=Bu(i),y=v?f?bO:bO.filter(function(R){return Bu(R)===v}):Yh,x=y.filter(function(R){return m.indexOf(R)>=0});x.length===0&&(x=y);var S=x.reduce(function(R,E){return R[E]=Oh(e,{placement:E,boundary:s,rootBoundary:u,padding:c})[uo(E)],R},{});return Object.keys(S).sort(function(R,E){return S[R]-S[E]})}function Ane(e){if(uo(e)===bT)return[];var t=zv(e);return[wO(e),t,wO(t)]}function One(e){var t=e.state,a=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var s=a.mainAxis,u=s===void 0?!0:s,c=a.altAxis,f=c===void 0?!0:c,h=a.fallbackPlacements,m=a.padding,v=a.boundary,y=a.rootBoundary,x=a.altBoundary,S=a.flipVariations,R=S===void 0?!0:S,E=a.allowedAutoPlacements,k=t.options.placement,O=uo(k),_=O===k,N=h||(_||!R?[zv(k)]:Ane(k)),$=[k].concat(N).reduce(function(Me,Ne){return Me.concat(uo(Ne)===bT?_ne(t,{placement:Ne,boundary:v,rootBoundary:y,padding:m,flipVariations:R,allowedAutoPlacements:E}):Ne)},[]),L=t.rects.reference,I=t.rects.popper,F=new Map,Q=!0,le=$[0],re=0;re<$.length;re++){var de=$[re],Ke=uo(de),q=Bu(de)===Fu,ue=[ka,li].indexOf(Ke)>=0,Ee=ue?"width":"height",we=Oh(t,{placement:de,boundary:v,rootBoundary:y,altBoundary:x,padding:m}),oe=ue?q?ci:Da:q?li:ka;L[Ee]>I[Ee]&&(oe=zv(oe));var K=zv(oe),Y=[];if(u&&Y.push(we[Ke]<=0),f&&Y.push(we[oe]<=0,we[K]<=0),Y.every(function(Me){return Me})){le=de,Q=!1;break}F.set(de,Y)}if(Q)for(var G=R?3:1,ve=function(Ne){var Pe=$.find(function(ht){var mt=F.get(ht);if(mt)return mt.slice(0,Ne).every(function(gt){return gt})});if(Pe)return le=Pe,"break"},te=G;te>0;te--){var pe=ve(te);if(pe==="break")break}t.placement!==le&&(t.modifiersData[i]._skip=!0,t.placement=le,t.reset=!0)}}const Mne={name:"flip",enabled:!0,phase:"main",fn:One,requiresIfExists:["offset"],data:{_skip:!1}};function TO(e,t,a){return a===void 0&&(a={x:0,y:0}),{top:e.top-t.height-a.y,right:e.right-t.width+a.x,bottom:e.bottom-t.height+a.y,left:e.left-t.width-a.x}}function EO(e){return[ka,ci,li,Da].some(function(t){return e[t]>=0})}function Nne(e){var t=e.state,a=e.name,i=t.rects.reference,s=t.rects.popper,u=t.modifiersData.preventOverflow,c=Oh(t,{elementContext:"reference"}),f=Oh(t,{altBoundary:!0}),h=TO(c,i),m=TO(f,s,u),v=EO(h),y=EO(m);t.modifiersData[a]={referenceClippingOffsets:h,popperEscapeOffsets:m,isReferenceHidden:v,hasPopperEscaped:y},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":v,"data-popper-escaped":y})}const Pne={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Nne};function jne(e,t,a){var i=uo(e),s=[Da,ka].indexOf(i)>=0?-1:1,u=typeof a=="function"?a(Object.assign({},t,{placement:e})):a,c=u[0],f=u[1];return c=c||0,f=(f||0)*s,[Da,ci].indexOf(i)>=0?{x:f,y:c}:{x:c,y:f}}function Lne(e){var t=e.state,a=e.options,i=e.name,s=a.offset,u=s===void 0?[0,0]:s,c=Zj.reduce(function(v,y){return v[y]=jne(y,t.rects,u),v},{}),f=c[t.placement],h=f.x,m=f.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=h,t.modifiersData.popperOffsets.y+=m),t.modifiersData[i]=c}const $ne={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Lne};function zne(e){var t=e.state,a=e.name;t.modifiersData[a]=i2({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Fne={name:"popperOffsets",enabled:!0,phase:"read",fn:zne,data:{}};function Ine(e){return e==="x"?"y":"x"}function Vne(e){var t=e.state,a=e.options,i=e.name,s=a.mainAxis,u=s===void 0?!0:s,c=a.altAxis,f=c===void 0?!1:c,h=a.boundary,m=a.rootBoundary,v=a.altBoundary,y=a.padding,x=a.tether,S=x===void 0?!0:x,R=a.tetherOffset,E=R===void 0?0:R,k=Oh(t,{boundary:h,rootBoundary:m,padding:y,altBoundary:v}),O=uo(t.placement),_=Bu(t.placement),N=!_,$=wT(O),L=Ine($),I=t.modifiersData.popperOffsets,F=t.rects.reference,Q=t.rects.popper,le=typeof E=="function"?E(Object.assign({},t.rects,{placement:t.placement})):E,re=typeof le=="number"?{mainAxis:le,altAxis:le}:Object.assign({mainAxis:0,altAxis:0},le),de=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Ke={x:0,y:0};if(I){if(u){var q,ue=$==="y"?ka:Da,Ee=$==="y"?li:ci,we=$==="y"?"height":"width",oe=I[$],K=oe+k[ue],Y=oe-k[Ee],G=S?-Q[we]/2:0,ve=_===Fu?F[we]:Q[we],te=_===Fu?-Q[we]:-F[we],pe=t.elements.arrow,Me=S&&pe?ST(pe):{width:0,height:0},Ne=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:t2(),Pe=Ne[ue],ht=Ne[Ee],mt=ch(0,F[we],Me[we]),gt=N?F[we]/2-G-mt-Pe-re.mainAxis:ve-mt-Pe-re.mainAxis,it=N?-F[we]/2+G+mt+ht+re.mainAxis:te+mt+ht+re.mainAxis,jt=t.elements.arrow&&qh(t.elements.arrow),be=jt?$==="y"?jt.clientTop||0:jt.clientLeft||0:0,ut=(q=de==null?void 0:de[$])!=null?q:0,Et=oe+gt-ut-be,Nt=oe+it-ut,Pt=ch(S?lg(K,Et):K,oe,S?Hl(Y,Nt):Y);I[$]=Pt,Ke[$]=Pt-oe}if(f){var Ot,cn=$==="x"?ka:Da,en=$==="x"?li:ci,vt=I[L],on=L==="y"?"height":"width",un=vt+k[cn],$e=vt-k[en],St=[ka,Da].indexOf(O)!==-1,yt=(Ot=de==null?void 0:de[L])!=null?Ot:0,_t=St?un:vt-F[on]-Q[on]-yt+re.altAxis,Ge=St?vt+F[on]+Q[on]-yt-re.altAxis:$e,tt=S&&St?dne(_t,vt,Ge):ch(S?_t:un,vt,S?Ge:$e);I[L]=tt,Ke[L]=tt-vt}t.modifiersData[i]=Ke}}const Bne={name:"preventOverflow",enabled:!0,phase:"main",fn:Vne,requiresIfExists:["offset"]};function Une(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Hne(e){return e===Ua(e)||!si(e)?CT(e):Une(e)}function Wne(e){var t=e.getBoundingClientRect(),a=Iu(t.width)/e.offsetWidth||1,i=Iu(t.height)/e.offsetHeight||1;return a!==1||i!==1}function Yne(e,t,a){a===void 0&&(a=!1);var i=si(t),s=si(t)&&Wne(t),u=Hs(t),c=Vu(e,s,a),f={scrollLeft:0,scrollTop:0},h={x:0,y:0};return(i||!i&&!a)&&((ho(t)!=="body"||ET(u))&&(f=Hne(t)),si(t)?(h=Vu(t,!0),h.x+=t.clientLeft,h.y+=t.clientTop):u&&(h.x=TT(u))),{x:c.left+f.scrollLeft-h.x,y:c.top+f.scrollTop-h.y,width:c.width,height:c.height}}function qne(e){var t=new Map,a=new Set,i=[];e.forEach(function(u){t.set(u.name,u)});function s(u){a.add(u.name);var c=[].concat(u.requires||[],u.requiresIfExists||[]);c.forEach(function(f){if(!a.has(f)){var h=t.get(f);h&&s(h)}}),i.push(u)}return e.forEach(function(u){a.has(u.name)||s(u)}),i}function Gne(e){var t=qne(e);return ine.reduce(function(a,i){return a.concat(t.filter(function(s){return s.phase===i}))},[])}function Xne(e){var t;return function(){return t||(t=new Promise(function(a){Promise.resolve().then(function(){t=void 0,a(e())})})),t}}function Kne(e){var t=e.reduce(function(a,i){var s=a[i.name];return a[i.name]=s?Object.assign({},s,i,{options:Object.assign({},s.options,i.options),data:Object.assign({},s.data,i.data)}):i,a},{});return Object.keys(t).map(function(a){return t[a]})}var RO={placement:"bottom",modifiers:[],strategy:"absolute"};function kO(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function Qne(e){e===void 0&&(e={});var t=e,a=t.defaultModifiers,i=a===void 0?[]:a,s=t.defaultOptions,u=s===void 0?RO:s;return function(f,h,m){m===void 0&&(m=u);var v={placement:"bottom",orderedModifiers:[],options:Object.assign({},RO,u),modifiersData:{},elements:{reference:f,popper:h},attributes:{},styles:{}},y=[],x=!1,S={state:v,setOptions:function(O){var _=typeof O=="function"?O(v.options):O;E(),v.options=Object.assign({},u,v.options,_),v.scrollParents={reference:Gl(f)?uh(f):f.contextElement?uh(f.contextElement):[],popper:uh(h)};var N=Gne(Kne([].concat(i,v.options.modifiers)));return v.orderedModifiers=N.filter(function($){return $.enabled}),R(),S.update()},forceUpdate:function(){if(!x){var O=v.elements,_=O.reference,N=O.popper;if(kO(_,N)){v.rects={reference:Yne(_,qh(N),v.options.strategy==="fixed"),popper:ST(N)},v.reset=!1,v.placement=v.options.placement,v.orderedModifiers.forEach(function(re){return v.modifiersData[re.name]=Object.assign({},re.data)});for(var $=0;$<v.orderedModifiers.length;$++){if(v.reset===!0){v.reset=!1,$=-1;continue}var L=v.orderedModifiers[$],I=L.fn,F=L.options,Q=F===void 0?{}:F,le=L.name;typeof I=="function"&&(v=I({state:v,options:Q,name:le,instance:S})||v)}}}},update:Xne(function(){return new Promise(function(k){S.forceUpdate(),k(v)})}),destroy:function(){E(),x=!0}};if(!kO(f,h))return S;S.setOptions(m).then(function(k){!x&&m.onFirstUpdate&&m.onFirstUpdate(k)});function R(){v.orderedModifiers.forEach(function(k){var O=k.name,_=k.options,N=_===void 0?{}:_,$=k.effect;if(typeof $=="function"){var L=$({state:v,name:O,instance:S,options:N}),I=function(){};y.push(L||I)}})}function E(){y.forEach(function(k){return k()}),y=[]}return S}}var Zne=[Sne,Fne,bne,lne,$ne,Mne,Bne,mne,Pne],Jne=Qne({defaultModifiers:Zne});const nu=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),Ir={arrowShadowColor:nu("--popper-arrow-shadow-color"),arrowSize:nu("--popper-arrow-size","8px"),arrowSizeHalf:nu("--popper-arrow-size-half"),arrowBg:nu("--popper-arrow-bg"),transformOrigin:nu("--popper-transform-origin"),arrowOffset:nu("--popper-arrow-offset")};function ere(e){if(e.includes("top"))return"1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("bottom"))return"-1px -1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("right"))return"-1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("left"))return"1px -1px 0px 0 var(--popper-arrow-shadow-color)"}const tre={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},nre=e=>tre[e],DO={scroll:!0,resize:!0};function rre(e){let t;return typeof e=="object"?t={enabled:!0,options:{...DO,...e}}:t={enabled:e,options:DO},t}const are={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{const t=e.elements.reference;e.elements.popper.style.width=`${t.offsetWidth}px`}},ire={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{_O(e)},effect:({state:e})=>()=>{_O(e)}},_O=e=>{e.elements.popper.style.setProperty(Ir.transformOrigin.var,nre(e.placement))},ore={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{sre(e)}},sre=e=>{var a;if(!e.placement)return;const t=lre(e.placement);if((a=e.elements)!=null&&a.arrow&&t){Object.assign(e.elements.arrow.style,{[t.property]:t.value,width:Ir.arrowSize.varRef,height:Ir.arrowSize.varRef,zIndex:-1});const i={[Ir.arrowSizeHalf.var]:`calc(${Ir.arrowSize.varRef} / 2 - 1px)`,[Ir.arrowOffset.var]:`calc(${Ir.arrowSizeHalf.varRef} * -1)`};for(const s in i)e.elements.arrow.style.setProperty(s,i[s])}},lre=e=>{if(e.startsWith("top"))return{property:"bottom",value:Ir.arrowOffset.varRef};if(e.startsWith("bottom"))return{property:"top",value:Ir.arrowOffset.varRef};if(e.startsWith("left"))return{property:"right",value:Ir.arrowOffset.varRef};if(e.startsWith("right"))return{property:"left",value:Ir.arrowOffset.varRef}},cre={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{AO(e)},effect:({state:e})=>()=>{AO(e)}},AO=e=>{if(!e.elements.arrow)return;const t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;const a=ere(e.placement);a&&t.style.setProperty("--popper-arrow-default-shadow",a),Object.assign(t.style,{transform:"rotate(45deg)",background:Ir.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},ure={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},dre={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function fre(e,t="ltr"){var i;const a=((i=ure[e])==null?void 0:i[t])||e;return t==="ltr"?a:dre[e]??a}function hre(e={}){const{enabled:t=!0,modifiers:a,placement:i="bottom",strategy:s="absolute",arrowPadding:u=8,eventListeners:c=!0,offset:f,gutter:h=8,flip:m=!0,boundary:v="clippingParents",preventOverflow:y=!0,matchWidth:x,direction:S="ltr"}=e,R=w.useRef(null),E=w.useRef(null),k=w.useRef(null),O=fre(i,S),_=w.useRef(()=>{}),N=w.useCallback(()=>{var re;!t||!R.current||!E.current||((re=_.current)==null||re.call(_),k.current=Jne(R.current,E.current,{placement:O,modifiers:[cre,ore,ire,{...are,enabled:!!x},{name:"eventListeners",...rre(c)},{name:"arrow",options:{padding:u}},{name:"offset",options:{offset:f??[0,h]}},{name:"flip",enabled:!!m,options:{padding:8}},{name:"preventOverflow",enabled:!!y,options:{boundary:v}},...a??[]],strategy:s}),k.current.forceUpdate(),_.current=k.current.destroy)},[O,t,a,x,c,u,f,h,m,y,v,s]);w.useEffect(()=>()=>{var re;!R.current&&!E.current&&((re=k.current)==null||re.destroy(),k.current=null)},[]);const $=w.useCallback(re=>{R.current=re,N()},[N]),L=w.useCallback((re={},de=null)=>({...re,ref:fo($,de)}),[$]),I=w.useCallback(re=>{E.current=re,N()},[N]),F=w.useCallback((re={},de=null)=>({...re,ref:fo(I,de),style:{...re.style,position:s,minWidth:x?void 0:"max-content",inset:"0 auto auto 0"}}),[s,I,x]),Q=w.useCallback((re={},de=null)=>{const{size:Ke,shadowColor:q,bg:ue,style:Ee,...we}=re;return{...we,ref:de,"data-popper-arrow":"",style:pre(re)}},[]),le=w.useCallback((re={},de=null)=>({...re,ref:de,"data-popper-arrow-inner":""}),[]);return{update(){var re;(re=k.current)==null||re.update()},forceUpdate(){var re;(re=k.current)==null||re.forceUpdate()},transformOrigin:Ir.transformOrigin.varRef,referenceRef:$,popperRef:I,getPopperProps:F,getArrowProps:Q,getArrowInnerProps:le,getReferenceProps:L}}function pre(e){const{size:t,shadowColor:a,bg:i,style:s}=e,u={...s,position:"absolute"};return t&&(u["--popper-arrow-size"]=t),a&&(u["--popper-arrow-shadow-color"]=a),i&&(u["--popper-arrow-bg"]=i),u}var mre=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ru=new WeakMap,pv=new WeakMap,mv={},zS=0,o2=function(e){return e&&(e.host||o2(e.parentNode))},vre=function(e,t){return t.map(function(a){if(e.contains(a))return a;var i=o2(a);return i&&e.contains(i)?i:(console.error("aria-hidden",a,"in not contained inside",e,". Doing nothing"),null)}).filter(function(a){return!!a})},gre=function(e,t,a,i){var s=vre(t,Array.isArray(e)?e:[e]);mv[a]||(mv[a]=new WeakMap);var u=mv[a],c=[],f=new Set,h=new Set(s),m=function(y){!y||f.has(y)||(f.add(y),m(y.parentNode))};s.forEach(m);var v=function(y){!y||h.has(y)||Array.prototype.forEach.call(y.children,function(x){if(f.has(x))v(x);else try{var S=x.getAttribute(i),R=S!==null&&S!=="false",E=(ru.get(x)||0)+1,k=(u.get(x)||0)+1;ru.set(x,E),u.set(x,k),c.push(x),E===1&&R&&pv.set(x,!0),k===1&&x.setAttribute(a,"true"),R||x.setAttribute(i,"true")}catch(O){console.error("aria-hidden: cannot operate on ",x,O)}})};return v(t),f.clear(),zS++,function(){c.forEach(function(y){var x=ru.get(y)-1,S=u.get(y)-1;ru.set(y,x),u.set(y,S),x||(pv.has(y)||y.removeAttribute(i),pv.delete(y)),S||y.removeAttribute(a)}),zS--,zS||(ru=new WeakMap,ru=new WeakMap,pv=new WeakMap,mv={})}},yre=function(e,t,a){a===void 0&&(a="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),s=t||mre(e);return s?(i.push.apply(i,Array.from(s.querySelectorAll("[aria-live], script"))),gre(i,s,a,"aria-hidden")):function(){return null}},bre=Object.defineProperty,xre=(e,t,a)=>t in e?bre(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,Sre=(e,t,a)=>(xre(e,typeof t!="symbol"?t+"":t,a),a);class wre{constructor(){Sre(this,"modals"),this.modals=new Set}add(t){return this.modals.add(t),this.modals.size}remove(t){this.modals.delete(t)}isTopModal(t){if(!t)return!1;const a=Array.from(this.modals)[this.modals.size-1];return t===a}}const Iw=new wre;function s2(e,t){const[a,i]=w.useState(0);return w.useEffect(()=>{const s=e.current;if(s){if(t){const u=Iw.add(s);i(u)}return()=>{Iw.remove(s),i(0)}}},[t,e]),a}function Cre(e){const{isOpen:t,onClose:a,id:i,closeOnOverlayClick:s=!0,closeOnEsc:u=!0,useInert:c=!0,onOverlayClick:f,onEsc:h}=e,m=w.useRef(null),v=w.useRef(null),[y,x,S]=Ere(i,"chakra-modal","chakra-modal--header","chakra-modal--body");Tre(m,t&&c);const R=s2(m,t),E=w.useRef(null),k=w.useCallback(le=>{E.current=le.target},[]),O=w.useCallback(le=>{le.key==="Escape"&&(le.stopPropagation(),u&&(a==null||a()),h==null||h())},[u,a,h]),[_,N]=w.useState(!1),[$,L]=w.useState(!1),I=w.useCallback((le={},re=null)=>({role:"dialog",...le,ref:fo(re,m),id:y,tabIndex:-1,"aria-modal":!0,"aria-labelledby":_?x:void 0,"aria-describedby":$?S:void 0,onClick:ca(le.onClick,de=>de.stopPropagation())}),[S,$,y,x,_]),F=w.useCallback(le=>{le.stopPropagation(),E.current===le.target&&Iw.isTopModal(m.current)&&(s&&(a==null||a()),f==null||f())},[a,s,f]),Q=w.useCallback((le={},re=null)=>({...le,ref:fo(re,v),onClick:ca(le.onClick,F),onKeyDown:ca(le.onKeyDown,O),onMouseDown:ca(le.onMouseDown,k)}),[O,k,F]);return{isOpen:t,onClose:a,headerId:x,bodyId:S,setBodyMounted:L,setHeaderMounted:N,dialogRef:m,overlayRef:v,getDialogProps:I,getDialogContainerProps:Q,index:R}}function Tre(e,t){const a=e.current;w.useEffect(()=>{if(!(!e.current||!t))return yre(e.current)},[t,e,a])}function Ere(e,...t){const a=w.useId(),i=e||a;return w.useMemo(()=>t.map(s=>`${s}-${i}`),[i,t])}const[Rre,Xu]=pa({name:"ModalStylesContext",errorMessage:`useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Modal />" `}),[kre,Xl]=pa({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in `<Modal />`"}),jg=e=>{const t={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,preserveScrollBarGap:!0,motionPreset:"scale",...e,lockFocusAcrossFrames:e.lockFocusAcrossFrames??!0},{portalProps:a,children:i,autoFocus:s,trapFocus:u,initialFocusRef:c,finalFocusRef:f,returnFocusOnClose:h,blockScrollOnMount:m,allowPinchZoom:v,preserveScrollBarGap:y,motionPreset:x,lockFocusAcrossFrames:S,animatePresenceProps:R,onCloseComplete:E}=t,k=qu("Modal",t),_={...Cre(t),autoFocus:s,trapFocus:u,initialFocusRef:c,finalFocusRef:f,returnFocusOnClose:h,blockScrollOnMount:m,allowPinchZoom:v,preserveScrollBarGap:y,motionPreset:x,lockFocusAcrossFrames:S};return X.jsx(kre,{value:_,children:X.jsx(Rre,{value:k,children:X.jsx(Ql,{...R,onExitComplete:E,children:_.isOpen&&X.jsx(Gu,{...a,children:i})})})})};jg.displayName="Modal";var Fv="right-scroll-bar-position",Iv="width-before-scroll-bar",Dre="with-scroll-bars-hidden",_re="--removed-body-scroll-bar-size",l2=bj(),FS=function(){},Lg=w.forwardRef(function(e,t){var a=w.useRef(null),i=w.useState({onScrollCapture:FS,onWheelCapture:FS,onTouchMoveCapture:FS}),s=i[0],u=i[1],c=e.forwardProps,f=e.children,h=e.className,m=e.removeScrollBar,v=e.enabled,y=e.shards,x=e.sideCar,S=e.noRelative,R=e.noIsolation,E=e.inert,k=e.allowPinchZoom,O=e.as,_=O===void 0?"div":O,N=e.gapMode,$=vj(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),L=x,I=mj([a,t]),F=ao(ao({},$),s);return w.createElement(w.Fragment,null,v&&w.createElement(L,{sideCar:l2,removeScrollBar:m,shards:y,noRelative:S,noIsolation:R,inert:E,setCallbacks:u,allowPinchZoom:!!k,lockRef:a,gapMode:N}),c?w.cloneElement(w.Children.only(f),ao(ao({},F),{ref:I})):w.createElement(_,ao({},F,{className:h,ref:I}),f))});Lg.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Lg.classNames={fullWidth:Iv,zeroRight:Fv};var OO,Are=function(){if(OO)return OO;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Ore(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Are();return t&&e.setAttribute("nonce",t),e}function Mre(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Nre(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Pre=function(){var e=0,t=null;return{add:function(a){e==0&&(t=Ore())&&(Mre(t,a),Nre(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},jre=function(){var e=Pre();return function(t,a){w.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&a])}},c2=function(){var e=jre(),t=function(a){var i=a.styles,s=a.dynamic;return e(i,s),null};return t},Lre={left:0,top:0,right:0,gap:0},IS=function(e){return parseInt(e||"",10)||0},$re=function(e){var t=window.getComputedStyle(document.body),a=t[e==="padding"?"paddingLeft":"marginLeft"],i=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[IS(a),IS(i),IS(s)]},zre=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Lre;var t=$re(e),a=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-a+t[2]-t[0])}},Fre=c2(),_u="data-scroll-locked",Ire=function(e,t,a,i){var s=e.left,u=e.top,c=e.right,f=e.gap;return a===void 0&&(a="margin"),`
557
- .`.concat(Dre,` {
558
- overflow: hidden `).concat(i,`;
559
- padding-right: `).concat(f,"px ").concat(i,`;
560
- }
561
- body[`).concat(_u,`] {
562
- overflow: hidden `).concat(i,`;
563
- overscroll-behavior: contain;
564
- `).concat([t&&"position: relative ".concat(i,";"),a==="margin"&&`
565
- padding-left: `.concat(s,`px;
566
- padding-top: `).concat(u,`px;
567
- padding-right: `).concat(c,`px;
568
- margin-left:0;
569
- margin-top:0;
570
- margin-right: `).concat(f,"px ").concat(i,`;
571
- `),a==="padding"&&"padding-right: ".concat(f,"px ").concat(i,";")].filter(Boolean).join(""),`
572
- }
573
-
574
- .`).concat(Fv,` {
575
- right: `).concat(f,"px ").concat(i,`;
576
- }
577
-
578
- .`).concat(Iv,` {
579
- margin-right: `).concat(f,"px ").concat(i,`;
580
- }
581
-
582
- .`).concat(Fv," .").concat(Fv,` {
583
- right: 0 `).concat(i,`;
584
- }
585
-
586
- .`).concat(Iv," .").concat(Iv,` {
587
- margin-right: 0 `).concat(i,`;
588
- }
589
-
590
- body[`).concat(_u,`] {
591
- `).concat(_re,": ").concat(f,`px;
592
- }
593
- `)},MO=function(){var e=parseInt(document.body.getAttribute(_u)||"0",10);return isFinite(e)?e:0},Vre=function(){w.useEffect(function(){return document.body.setAttribute(_u,(MO()+1).toString()),function(){var e=MO()-1;e<=0?document.body.removeAttribute(_u):document.body.setAttribute(_u,e.toString())}},[])},Bre=function(e){var t=e.noRelative,a=e.noImportant,i=e.gapMode,s=i===void 0?"margin":i;Vre();var u=w.useMemo(function(){return zre(s)},[s]);return w.createElement(Fre,{styles:Ire(u,!t,s,a?"":"!important")})},Vw=!1;if(typeof window<"u")try{var vv=Object.defineProperty({},"passive",{get:function(){return Vw=!0,!0}});window.addEventListener("test",vv,vv),window.removeEventListener("test",vv,vv)}catch{Vw=!1}var au=Vw?{passive:!1}:!1,Ure=function(e){return e.tagName==="TEXTAREA"},u2=function(e,t){if(!(e instanceof Element))return!1;var a=window.getComputedStyle(e);return a[t]!=="hidden"&&!(a.overflowY===a.overflowX&&!Ure(e)&&a[t]==="visible")},Hre=function(e){return u2(e,"overflowY")},Wre=function(e){return u2(e,"overflowX")},NO=function(e,t){var a=t.ownerDocument,i=t;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var s=d2(e,i);if(s){var u=f2(e,i),c=u[1],f=u[2];if(c>f)return!0}i=i.parentNode}while(i&&i!==a.body);return!1},Yre=function(e){var t=e.scrollTop,a=e.scrollHeight,i=e.clientHeight;return[t,a,i]},qre=function(e){var t=e.scrollLeft,a=e.scrollWidth,i=e.clientWidth;return[t,a,i]},d2=function(e,t){return e==="v"?Hre(t):Wre(t)},f2=function(e,t){return e==="v"?Yre(t):qre(t)},Gre=function(e,t){return e==="h"&&t==="rtl"?-1:1},Xre=function(e,t,a,i,s){var u=Gre(e,window.getComputedStyle(t).direction),c=u*i,f=a.target,h=t.contains(f),m=!1,v=c>0,y=0,x=0;do{if(!f)break;var S=f2(e,f),R=S[0],E=S[1],k=S[2],O=E-k-u*R;(R||O)&&d2(e,f)&&(y+=O,x+=R);var _=f.parentNode;f=_&&_.nodeType===Node.DOCUMENT_FRAGMENT_NODE?_.host:_}while(!h&&f!==document.body||h&&(t.contains(f)||t===f));return(v&&(s&&Math.abs(y)<1||!s&&c>y)||!v&&(s&&Math.abs(x)<1||!s&&-c>x))&&(m=!0),m},gv=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},PO=function(e){return[e.deltaX,e.deltaY]},jO=function(e){return e&&"current"in e?e.current:e},Kre=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Qre=function(e){return`
594
- .block-interactivity-`.concat(e,` {pointer-events: none;}
595
- .allow-interactivity-`).concat(e,` {pointer-events: all;}
596
- `)},Zre=0,iu=[];function Jre(e){var t=w.useRef([]),a=w.useRef([0,0]),i=w.useRef(),s=w.useState(Zre++)[0],u=w.useState(c2)[0],c=w.useRef(e);w.useEffect(function(){c.current=e},[e]),w.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var E=jee([e.lockRef.current],(e.shards||[]).map(jO),!0).filter(Boolean);return E.forEach(function(k){return k.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),E.forEach(function(k){return k.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var f=w.useCallback(function(E,k){if("touches"in E&&E.touches.length===2||E.type==="wheel"&&E.ctrlKey)return!c.current.allowPinchZoom;var O=gv(E),_=a.current,N="deltaX"in E?E.deltaX:_[0]-O[0],$="deltaY"in E?E.deltaY:_[1]-O[1],L,I=E.target,F=Math.abs(N)>Math.abs($)?"h":"v";if("touches"in E&&F==="h"&&I.type==="range")return!1;var Q=window.getSelection(),le=Q&&Q.anchorNode,re=le?le===I||le.contains(I):!1;if(re)return!1;var de=NO(F,I);if(!de)return!0;if(de?L=F:(L=F==="v"?"h":"v",de=NO(F,I)),!de)return!1;if(!i.current&&"changedTouches"in E&&(N||$)&&(i.current=L),!L)return!0;var Ke=i.current||L;return Xre(Ke,k,E,Ke==="h"?N:$,!0)},[]),h=w.useCallback(function(E){var k=E;if(!(!iu.length||iu[iu.length-1]!==u)){var O="deltaY"in k?PO(k):gv(k),_=t.current.filter(function(L){return L.name===k.type&&(L.target===k.target||k.target===L.shadowParent)&&Kre(L.delta,O)})[0];if(_&&_.should){k.cancelable&&k.preventDefault();return}if(!_){var N=(c.current.shards||[]).map(jO).filter(Boolean).filter(function(L){return L.contains(k.target)}),$=N.length>0?f(k,N[0]):!c.current.noIsolation;$&&k.cancelable&&k.preventDefault()}}},[]),m=w.useCallback(function(E,k,O,_){var N={name:E,delta:k,target:O,should:_,shadowParent:eae(O)};t.current.push(N),setTimeout(function(){t.current=t.current.filter(function($){return $!==N})},1)},[]),v=w.useCallback(function(E){a.current=gv(E),i.current=void 0},[]),y=w.useCallback(function(E){m(E.type,PO(E),E.target,f(E,e.lockRef.current))},[]),x=w.useCallback(function(E){m(E.type,gv(E),E.target,f(E,e.lockRef.current))},[]);w.useEffect(function(){return iu.push(u),e.setCallbacks({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:x}),document.addEventListener("wheel",h,au),document.addEventListener("touchmove",h,au),document.addEventListener("touchstart",v,au),function(){iu=iu.filter(function(E){return E!==u}),document.removeEventListener("wheel",h,au),document.removeEventListener("touchmove",h,au),document.removeEventListener("touchstart",v,au)}},[]);var S=e.removeScrollBar,R=e.inert;return w.createElement(w.Fragment,null,R?w.createElement(u,{styles:Qre(s)}):null,S?w.createElement(Bre,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function eae(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const tae=Lee(l2,Jre);var h2=w.forwardRef(function(e,t){return w.createElement(Lg,ao({},e,{ref:t,sideCar:tae}))});h2.classNames=Lg.classNames;const nae=h2;function rae(e){const{autoFocus:t,trapFocus:a,dialogRef:i,initialFocusRef:s,blockScrollOnMount:u,allowPinchZoom:c,finalFocusRef:f,returnFocusOnClose:h,preserveScrollBarGap:m,lockFocusAcrossFrames:v,isOpen:y}=Xl(),[x,S]=xC();w.useEffect(()=>{!x&&S&&setTimeout(S)},[x,S]);const R=s2(i,y);return X.jsx(Xj,{autoFocus:t,isDisabled:!a,initialFocusRef:s,finalFocusRef:f,restoreFocus:h,contentRef:i,lockFocusAcrossFrames:v,children:X.jsx(nae,{removeScrollBar:!m,allowPinchZoom:c,enabled:R===1&&u,forwardProps:!0,children:e.children})})}const aae={initial:({offsetX:e,offsetY:t,transition:a,transitionEnd:i,delay:s})=>({opacity:0,x:e,y:t,transition:(a==null?void 0:a.exit)??Xo.exit(Bl.exit,s),transitionEnd:i==null?void 0:i.exit}),enter:({transition:e,transitionEnd:t,delay:a})=>({opacity:1,x:0,y:0,transition:(e==null?void 0:e.enter)??Xo.enter(Bl.enter,a),transitionEnd:t==null?void 0:t.enter}),exit:({offsetY:e,offsetX:t,transition:a,transitionEnd:i,reverse:s,delay:u})=>{const c={x:t,y:e};return{opacity:0,transition:(a==null?void 0:a.exit)??Xo.exit(Bl.exit,u),...s?{...c,transitionEnd:i==null?void 0:i.exit}:{transitionEnd:{...c,...i==null?void 0:i.exit}}}}},Zf={initial:"initial",animate:"enter",exit:"exit",variants:aae},iae=w.forwardRef(function(t,a){const{unmountOnExit:i,in:s,reverse:u=!0,className:c,offsetX:f=0,offsetY:h=8,transition:m,transitionEnd:v,delay:y,animatePresenceProps:x,...S}=t,R=i?s&&i:!0,E=s||i?"enter":"exit",k={offsetX:f,offsetY:h,reverse:u,transition:m,transitionEnd:v,delay:y};return X.jsx(Ql,{...x,custom:k,children:R&&X.jsx(Us.div,{ref:a,className:qt("chakra-offset-slide",c),custom:k,...Zf,animate:E,...S})})});iae.displayName="SlideFade";const oae={exit:({reverse:e,initialScale:t,transition:a,transitionEnd:i,delay:s})=>({opacity:0,...e?{scale:t,transitionEnd:i==null?void 0:i.exit}:{transitionEnd:{scale:t,...i==null?void 0:i.exit}},transition:(a==null?void 0:a.exit)??Xo.exit(Bl.exit,s)}),enter:({transitionEnd:e,transition:t,delay:a})=>({opacity:1,scale:1,transition:(t==null?void 0:t.enter)??Xo.enter(Bl.enter,a),transitionEnd:e==null?void 0:e.enter})},p2={initial:"exit",animate:"enter",exit:"exit",variants:oae},sae=w.forwardRef(function(t,a){const{unmountOnExit:i,in:s,reverse:u=!0,initialScale:c=.95,className:f,transition:h,transitionEnd:m,delay:v,animatePresenceProps:y,...x}=t,S=i?s&&i:!0,R=s||i?"enter":"exit",E={initialScale:c,reverse:u,transition:h,transitionEnd:m,delay:v};return X.jsx(Ql,{...y,custom:E,children:S&&X.jsx(Us.div,{ref:a,className:qt("chakra-offset-slide",f),...p2,animate:R,custom:E,...x})})});sae.displayName="ScaleFade";const lae={slideInBottom:{...Zf,custom:{offsetY:16,reverse:!0}},slideInRight:{...Zf,custom:{offsetX:16,reverse:!0}},slideInTop:{...Zf,custom:{offsetY:-16,reverse:!0}},slideInLeft:{...Zf,custom:{offsetX:-16,reverse:!0}},scale:{...p2,custom:{initialScale:.95,reverse:!0}},none:{}},cae=ct(Us.section),uae=e=>lae[e||"none"],m2=w.forwardRef((e,t)=>{const{preset:a,motionProps:i=uae(a),...s}=e;return X.jsx(cae,{ref:t,...i,...s})});m2.displayName="ModalTransition";const $g=It((e,t)=>{const{className:a,children:i,containerProps:s,motionProps:u,...c}=e,{getDialogProps:f,getDialogContainerProps:h}=Xl(),m=f(c,t),v=h(s),y=qt("chakra-modal__content",a),x=Xu(),S={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...x.dialog},R={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...x.dialogContainer},{motionPreset:E}=Xl();return X.jsx(rae,{children:X.jsx(ct.div,{...v,className:"chakra-modal__content-container",tabIndex:-1,__css:R,children:X.jsx(m2,{preset:E,motionProps:u,className:y,...m,__css:S,children:i})})})});$g.displayName="ModalContent";const zg=It((e,t)=>{const{className:a,...i}=e,{bodyId:s,setBodyMounted:u}=Xl();w.useEffect(()=>(u(!0),()=>u(!1)),[u]);const c=qt("chakra-modal__body",a),f=Xu();return X.jsx(ct.div,{ref:t,className:c,id:s,...i,__css:f.body})});zg.displayName="ModalBody";const Fg=It((e,t)=>{const{onClick:a,className:i,...s}=e,{onClose:u}=Xl(),c=qt("chakra-modal__close-btn",i),f=Xu();return X.jsx(tT,{ref:t,__css:f.closeButton,className:c,onClick:ca(a,h=>{h.stopPropagation(),u()}),...s})});Fg.displayName="ModalCloseButton";const RT=It((e,t)=>{const{className:a,...i}=e,s=qt("chakra-modal__footer",a),u=Xu(),c={display:"flex",alignItems:"center",justifyContent:"flex-end",...u.footer};return X.jsx(ct.footer,{ref:t,...i,__css:c,className:s})});RT.displayName="ModalFooter";const Ig=It((e,t)=>{const{className:a,...i}=e,{headerId:s,setHeaderMounted:u}=Xl();w.useEffect(()=>(u(!0),()=>u(!1)),[u]);const c=qt("chakra-modal__header",a),f=Xu(),h={flex:0,...f.header};return X.jsx(ct.header,{ref:t,className:c,id:s,...i,__css:h})});Ig.displayName="ModalHeader";const dae={enter:({transition:e,transitionEnd:t,delay:a}={})=>({opacity:1,transition:(e==null?void 0:e.enter)??Xo.enter(Bl.enter,a),transitionEnd:t==null?void 0:t.enter}),exit:({transition:e,transitionEnd:t,delay:a}={})=>({opacity:0,transition:(e==null?void 0:e.exit)??Xo.exit(Bl.exit,a),transitionEnd:t==null?void 0:t.exit})},v2={initial:"exit",animate:"enter",exit:"exit",variants:dae},fae=w.forwardRef(function(t,a){const{unmountOnExit:i,in:s,className:u,transition:c,transitionEnd:f,delay:h,animatePresenceProps:m,...v}=t,y=s||i?"enter":"exit",x=i?s&&i:!0,S={transition:c,transitionEnd:f,delay:h};return X.jsx(Ql,{...m,custom:S,children:x&&X.jsx(Us.div,{ref:a,className:qt("chakra-fade",u),custom:S,...v2,animate:y,...v})})});fae.displayName="Fade";const hae=ct(Us.div),Vg=It((e,t)=>{const{className:a,transition:i,motionProps:s,...u}=e,c=qt("chakra-modal__overlay",a),h={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...Xu().overlay},{motionPreset:m}=Xl(),y=s||(m==="none"?{}:v2);return X.jsx(hae,{...y,__css:h,ref:t,className:c,...u})});Vg.displayName="ModalOverlay";function pae(e){var a;const t=w.version;return typeof t!="string"||t.startsWith("18.")?e==null?void 0:e.ref:(a=e==null?void 0:e.props)==null?void 0:a.ref}const g2=It(function(t,a){const{children:i,placeholder:s,className:u,...c}=t;return X.jsxs(ct.select,{...c,ref:a,className:qt("chakra-select",u),children:[s&&X.jsx("option",{value:"",children:s}),i]})});g2.displayName="SelectField";const dh=It((e,t)=>{var N;const a=qu("Select",e),{rootProps:i,placeholder:s,icon:u,color:c,height:f,h,minH:m,minHeight:v,iconColor:y,iconSize:x,...S}=ea(e),[R,E]=d4(S,Z4),k=iT(E),O={width:"100%",height:"fit-content",position:"relative",color:c},_={paddingEnd:"2rem",...a.field,_focus:{zIndex:"unset",...(N=a.field)==null?void 0:N._focus}};return X.jsxs(ct.div,{className:"chakra-select__wrapper",__css:O,...R,...i,children:[X.jsx(g2,{ref:t,height:h??f,minH:m??v,placeholder:s,...k,__css:_,children:e.children}),X.jsx(y2,{"data-disabled":Ai(k.disabled),...(y||c)&&{color:y||c},__css:a.icon,...x&&{fontSize:x},children:u})]})});dh.displayName="Select";const mae=e=>X.jsx("svg",{viewBox:"0 0 24 24",...e,children:X.jsx("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),vae=ct("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),y2=e=>{const{children:t=X.jsx(mae,{}),...a}=e,i=w.cloneElement(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return X.jsx(vae,{...a,className:"chakra-select__icon-wrapper",children:w.isValidElement(t)?i:null})};y2.displayName="SelectIcon";function gae(){const e=w.useRef(!0);return w.useEffect(()=>{e.current=!1},[]),e.current}const yae=ct("div",{baseStyle:{boxShadow:"none",backgroundClip:"padding-box",cursor:"default",color:"transparent",pointerEvents:"none",userSelect:"none","&::before, &::after, *":{visibility:"hidden"}}}),Bw=rt("skeleton-start-color"),Uw=rt("skeleton-end-color"),bae=mC({from:{opacity:0},to:{opacity:1}}),xae=mC({from:{borderColor:Bw.reference,background:Bw.reference},to:{borderColor:Uw.reference,background:Uw.reference}}),Vv=It((e,t)=>{const a={...e,fadeDuration:typeof e.fadeDuration=="number"?e.fadeDuration:.4,speed:typeof e.speed=="number"?e.speed:.8},i=ui("Skeleton",a),s=gae(),{startColor:u="",endColor:c="",isLoaded:f,fadeDuration:h,speed:m,className:v,fitContent:y,animation:x,...S}=ea(a),[R,E]=hJ("colors",[u,c]),k=g4(f),O=qt("chakra-skeleton",v),_={...R&&{[Bw.variable]:R},...E&&{[Uw.variable]:E}};if(f){const N=s||k?"none":`${bae} ${h}s`;return X.jsx(ct.div,{ref:t,className:O,__css:{animation:N},...S})}return X.jsx(yae,{ref:t,className:O,...S,__css:{width:y?"fit-content":void 0,...i,..._,_dark:{...i._dark,..._},animation:x||`${m}s linear infinite alternate ${xae}`}})});Vv.displayName="Skeleton";const b2=e=>X.jsx(ct.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});b2.displayName="StackItem";function Sae(e){const{spacing:t,direction:a}=e,i={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":s4(a,s=>i[s])}}const kT=It((e,t)=>{const{isInline:a,direction:i,align:s,justify:u,spacing:c="0.5rem",wrap:f,children:h,divider:m,className:v,shouldWrapChildren:y,...x}=e,S=a?"row":i??"column",R=w.useMemo(()=>Sae({spacing:c,direction:S}),[c,S]),E=!!m,k=!y&&!E,O=w.useMemo(()=>{const N=K3(h);return k?N:N.map(($,L)=>{const I=typeof $.key<"u"?$.key:L,F=L+1===N.length,le=y?X.jsx(b2,{children:$},I):$;if(!E)return le;const re=w.cloneElement(m,{__css:R}),de=F?null:re;return X.jsxs(w.Fragment,{children:[le,de]},I)})},[m,R,E,k,y,h]),_=qt("chakra-stack",v);return X.jsx(ct.div,{ref:t,display:"flex",alignItems:s,justifyContent:u,flexDirection:S,flexWrap:f,gap:E?void 0:c,className:_,...x,children:O})});kT.displayName="Stack";const Kl=It((e,t)=>X.jsx(kT,{align:"center",...e,direction:"row",ref:t}));Kl.displayName="HStack";const Jo=It((e,t)=>X.jsx(kT,{align:"center",...e,direction:"column",ref:t}));Jo.displayName="VStack";const wae=["h","minH","height","minHeight"],DT=It((e,t)=>{const a=ui("Textarea",e),{className:i,rows:s,...u}=ea(e),c=iT(u),f=s?Zw(a,wae):a;return X.jsx(ct.textarea,{ref:t,rows:s,...c,className:qt("chakra-textarea",i),__css:f})});DT.displayName="Textarea";function Cae(e,t){const a=e??"bottom",s={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[a];return(s==null?void 0:s[t])??a}function Tae(e,t){const a=s=>({...t,...s,position:Cae((s==null?void 0:s.position)??(t==null?void 0:t.position),e)}),i=s=>{const u=a(s),c=ZP(u);return ro.notify(c,u)};return i.update=(s,u)=>{ro.update(s,a(u))},i.promise=(s,u)=>{const c=i({...u.loading,status:"loading",duration:null});s.then(f=>i.update(c,{status:"success",duration:5e3,...ii(u.success,f)})).catch(f=>i.update(c,{status:"error",duration:5e3,...ii(u.error,f)}))},i.closeAll=ro.closeAll,i.close=ro.close,i.isActive=ro.isActive,i}function Bg(e){const{theme:t}=WP(),a=PJ();return w.useMemo(()=>Tae(t.direction,{...a,...e}),[e,t.direction,a])}const Eae={exit:{scale:.85,opacity:0,transition:{opacity:{duration:.15,easings:"easeInOut"},scale:{duration:.2,easings:"easeInOut"}}},enter:{scale:1,opacity:1,transition:{opacity:{easings:"easeOut",duration:.2},scale:{duration:.2,ease:[.175,.885,.4,1.1]}}}},Hw=e=>{var t;return((t=e.current)==null?void 0:t.ownerDocument)||document},Bv=e=>{var t,a;return((a=(t=e.current)==null?void 0:t.ownerDocument)==null?void 0:a.defaultView)||window};function Rae(e={}){const{openDelay:t=0,closeDelay:a=0,closeOnClick:i=!0,closeOnMouseDown:s,closeOnScroll:u,closeOnPointerDown:c=s,closeOnEsc:f=!0,onOpen:h,onClose:m,placement:v,id:y,isOpen:x,defaultIsOpen:S,arrowSize:R=10,arrowShadowColor:E,arrowPadding:k,modifiers:O,isDisabled:_,gutter:N,offset:$,direction:L,...I}=e,{isOpen:F,onOpen:Q,onClose:le}=qv({isOpen:x,defaultIsOpen:S,onOpen:h,onClose:m}),{referenceRef:re,getPopperProps:de,getArrowInnerProps:Ke,getArrowProps:q}=hre({enabled:F,placement:v,arrowPadding:k,modifiers:O,gutter:N,offset:$,direction:L}),ue=w.useId(),we=`tooltip-${y??ue}`,oe=w.useRef(null),K=w.useRef(void 0),Y=w.useCallback(()=>{K.current&&(clearTimeout(K.current),K.current=void 0)},[]),G=w.useRef(void 0),ve=w.useCallback(()=>{G.current&&(clearTimeout(G.current),G.current=void 0)},[]),te=w.useCallback(()=>{ve(),le()},[le,ve]),pe=kae(oe,te),Me=w.useCallback(()=>{if(!_&&!K.current){F&&pe();const be=Bv(oe);K.current=be.setTimeout(Q,t)}},[pe,_,F,Q,t]),Ne=w.useCallback(()=>{Y();const be=Bv(oe);G.current=be.setTimeout(te,a)},[a,te,Y]),Pe=w.useCallback(()=>{F&&i&&Ne()},[i,Ne,F]),ht=w.useCallback(()=>{F&&c&&Ne()},[c,Ne,F]),mt=w.useCallback(be=>{F&&be.key==="Escape"&&Ne()},[F,Ne]);Zx(()=>Hw(oe),"keydown",f?mt:void 0),Zx(()=>{if(!u)return null;const be=oe.current;if(!be)return null;const ut=kM(be);return ut.localName==="body"?Bv(oe):ut},"scroll",()=>{F&&u&&te()},{passive:!0,capture:!0}),w.useEffect(()=>{_&&(Y(),F&&le())},[_,F,le,Y]),w.useEffect(()=>()=>{Y(),ve()},[Y,ve]),Zx(()=>oe.current,"pointerleave",Ne);const gt=w.useCallback((be={},ut=null)=>({...be,ref:fo(oe,ut,re),onPointerEnter:ca(be.onPointerEnter,Nt=>{Nt.pointerType!=="touch"&&Me()}),onClick:ca(be.onClick,Pe),onPointerDown:ca(be.onPointerDown,ht),onFocus:ca(be.onFocus,Me),onBlur:ca(be.onBlur,Ne),"aria-describedby":F?we:void 0}),[Me,Ne,ht,F,we,Pe,re]),it=w.useCallback((be={},ut=null)=>de({...be,style:{...be.style,[Ir.arrowSize.var]:R?`${R}px`:void 0,[Ir.arrowShadowColor.var]:E}},ut),[de,R,E]),jt=w.useCallback((be={},ut=null)=>{const Et={...be.style,position:"relative",transformOrigin:Ir.transformOrigin.varRef};return{ref:ut,...I,...be,id:we,role:"tooltip",style:Et}},[I,we]);return{isOpen:F,show:Me,hide:Ne,getTriggerProps:gt,getTooltipProps:jt,getTooltipPositionerProps:it,getArrowProps:q,getArrowInnerProps:Ke}}const VS="chakra-ui:close-tooltip";function kae(e,t){return w.useEffect(()=>{const a=Hw(e);return a.addEventListener(VS,t),()=>a.removeEventListener(VS,t)},[t,e]),()=>{const a=Hw(e),i=Bv(e);a.dispatchEvent(new i.CustomEvent(VS))}}const Dae=ct(Us.div),Ji=It((e,t)=>{const a=ui("Tooltip",e),i=ea(e),s=ZC(),{children:u,label:c,shouldWrapChildren:f,"aria-label":h,hasArrow:m,bg:v,portalProps:y,background:x,backgroundColor:S,bgColor:R,motionProps:E,animatePresenceProps:k,...O}=i,_=x??S??v??R;if(_){a.bg=_;const re=l6(s,"colors",_);a[Ir.arrowBg.var]=re}const N=Rae({...O,direction:s.direction}),$=!w.isValidElement(u)||f;let L;if($)L=X.jsx(ct.span,{display:"inline-block",tabIndex:0,...N.getTriggerProps(),children:u});else{const re=w.Children.only(u);L=w.cloneElement(re,N.getTriggerProps(re.props,pae(re)))}const I=!!h,F=N.getTooltipProps({},t),Q=I?Zw(F,["role","id"]):F,le=RM(F,["role","id"]);return c?X.jsxs(X.Fragment,{children:[L,X.jsx(Ql,{...k,children:N.isOpen&&X.jsx(Gu,{...y,children:X.jsx(ct.div,{...N.getTooltipPositionerProps(),__css:{zIndex:a.zIndex,pointerEvents:"none"},children:X.jsxs(Dae,{variants:Eae,initial:"exit",animate:"enter",exit:"exit",...E,...Q,__css:a,children:[c,I&&X.jsx(ct.span,{srOnly:!0,...le,children:h}),m&&X.jsx(ct.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper",children:X.jsx(ct.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:a.bg}})})]})})})})]}):X.jsx(X.Fragment,{children:u})});Ji.displayName="Tooltip";const Ww=It(function(t,a){const i=ui("Heading",t),{className:s,...u}=ea(t);return X.jsx(ct.h2,{ref:a,className:qt("chakra-heading",t.className),...u,__css:i})});Ww.displayName="Heading";const Zr=It(function(t,a){const i=ui("Text",t),{className:s,align:u,decoration:c,casing:f,...h}=ea(t),m=TM({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return X.jsx(ct.p,{ref:a,className:qt("chakra-text",t.className),...m,...h,__css:i})});Zr.displayName="Text";const Ug=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Ku(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function _T(e){return"nodeType"in e}function ma(e){var t,a;return e?Ku(e)?e:_T(e)&&(t=(a=e.ownerDocument)==null?void 0:a.defaultView)!=null?t:window:window}function AT(e){const{Document:t}=ma(e);return e instanceof t}function Gh(e){return Ku(e)?!1:e instanceof ma(e).HTMLElement}function x2(e){return e instanceof ma(e).SVGElement}function Qu(e){return e?Ku(e)?e.document:_T(e)?AT(e)?e:Gh(e)||x2(e)?e.ownerDocument:document:document:document}const es=Ug?w.useLayoutEffect:w.useEffect;function Hg(e){const t=w.useRef(e);return es(()=>{t.current=e}),w.useCallback(function(){for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return t.current==null?void 0:t.current(...i)},[])}function _ae(){const e=w.useRef(null),t=w.useCallback((i,s)=>{e.current=setInterval(i,s)},[]),a=w.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,a]}function Mh(e,t){t===void 0&&(t=[e]);const a=w.useRef(e);return es(()=>{a.current!==e&&(a.current=e)},t),a}function Xh(e,t){const a=w.useRef();return w.useMemo(()=>{const i=e(a.current);return a.current=i,i},[...t])}function cg(e){const t=Hg(e),a=w.useRef(null),i=w.useCallback(s=>{s!==a.current&&(t==null||t(s,a.current)),a.current=s},[]);return[a,i]}function ug(e){const t=w.useRef();return w.useEffect(()=>{t.current=e},[e]),t.current}let BS={};function Wg(e,t){return w.useMemo(()=>{if(t)return t;const a=BS[e]==null?0:BS[e]+1;return BS[e]=a,e+"-"+a},[e,t])}function S2(e){return function(t){for(var a=arguments.length,i=new Array(a>1?a-1:0),s=1;s<a;s++)i[s-1]=arguments[s];return i.reduce((u,c)=>{const f=Object.entries(c);for(const[h,m]of f){const v=u[h];v!=null&&(u[h]=v+e*m)}return u},{...t})}}const Au=S2(1),dg=S2(-1);function Aae(e){return"clientX"in e&&"clientY"in e}function OT(e){if(!e)return!1;const{KeyboardEvent:t}=ma(e.target);return t&&e instanceof t}function Oae(e){if(!e)return!1;const{TouchEvent:t}=ma(e.target);return t&&e instanceof t}function fg(e){if(Oae(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:a}=e.touches[0];return{x:t,y:a}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:a}=e.changedTouches[0];return{x:t,y:a}}}return Aae(e)?{x:e.clientX,y:e.clientY}:null}const Nh=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:a}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(a?Math.round(a):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:a}=e;return"scaleX("+t+") scaleY("+a+")"}},Transform:{toString(e){if(e)return[Nh.Translate.toString(e),Nh.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:a,easing:i}=e;return t+" "+a+"ms "+i}}}),LO="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function Mae(e){return e.matches(LO)?e:e.querySelector(LO)}const Nae={display:"none"};function Pae(e){let{id:t,value:a}=e;return hn.createElement("div",{id:t,style:Nae},a)}function jae(e){let{id:t,announcement:a,ariaLiveType:i="assertive"}=e;const s={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return hn.createElement("div",{id:t,style:s,role:"status","aria-live":i,"aria-atomic":!0},a)}function Lae(){const[e,t]=w.useState("");return{announce:w.useCallback(i=>{i!=null&&t(i)},[]),announcement:e}}const w2=w.createContext(null);function $ae(e){const t=w.useContext(w2);w.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function zae(){const[e]=w.useState(()=>new Set),t=w.useCallback(i=>(e.add(i),()=>e.delete(i)),[e]);return[w.useCallback(i=>{let{type:s,event:u}=i;e.forEach(c=>{var f;return(f=c[s])==null?void 0:f.call(c,u)})},[e]),t]}const Fae={draggable:`
597
- To pick up a draggable item, press the space bar.
598
- While dragging, use the arrow keys to move the item.
599
- Press space again to drop the item in its new position, or press escape to cancel.
600
- `},Iae={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:a}=e;return a?"Draggable item "+t.id+" was moved over droppable area "+a.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:a}=e;return a?"Draggable item "+t.id+" was dropped over droppable area "+a.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function Vae(e){let{announcements:t=Iae,container:a,hiddenTextDescribedById:i,screenReaderInstructions:s=Fae}=e;const{announce:u,announcement:c}=Lae(),f=Wg("DndLiveRegion"),[h,m]=w.useState(!1);if(w.useEffect(()=>{m(!0)},[]),$ae(w.useMemo(()=>({onDragStart(y){let{active:x}=y;u(t.onDragStart({active:x}))},onDragMove(y){let{active:x,over:S}=y;t.onDragMove&&u(t.onDragMove({active:x,over:S}))},onDragOver(y){let{active:x,over:S}=y;u(t.onDragOver({active:x,over:S}))},onDragEnd(y){let{active:x,over:S}=y;u(t.onDragEnd({active:x,over:S}))},onDragCancel(y){let{active:x,over:S}=y;u(t.onDragCancel({active:x,over:S}))}}),[u,t])),!h)return null;const v=hn.createElement(hn.Fragment,null,hn.createElement(Pae,{id:i,value:s.draggable}),hn.createElement(jae,{id:f,announcement:c}));return a?$s.createPortal(v,a):v}var wr;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(wr||(wr={}));function hg(){}function Bae(e,t){return w.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function Uae(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return w.useMemo(()=>[...t].filter(i=>i!=null),[...t])}const Mi=Object.freeze({x:0,y:0});function Hae(e,t){const a=fg(e);if(!a)return"0 0";const i={x:(a.x-t.left)/t.width*100,y:(a.y-t.top)/t.height*100};return i.x+"% "+i.y+"%"}function Wae(e,t){let{data:{value:a}}=e,{data:{value:i}}=t;return i-a}function Yae(e,t){if(!e||e.length===0)return null;const[a]=e;return t?a[t]:a}function qae(e,t){const a=Math.max(t.top,e.top),i=Math.max(t.left,e.left),s=Math.min(t.left+t.width,e.left+e.width),u=Math.min(t.top+t.height,e.top+e.height),c=s-i,f=u-a;if(i<s&&a<u){const h=t.width*t.height,m=e.width*e.height,v=c*f,y=v/(h+m-v);return Number(y.toFixed(4))}return 0}const Gae=e=>{let{collisionRect:t,droppableRects:a,droppableContainers:i}=e;const s=[];for(const u of i){const{id:c}=u,f=a.get(c);if(f){const h=qae(f,t);h>0&&s.push({id:c,data:{droppableContainer:u,value:h}})}}return s.sort(Wae)};function Xae(e,t,a){return{...e,scaleX:t&&a?t.width/a.width:1,scaleY:t&&a?t.height/a.height:1}}function C2(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Mi}function Kae(e){return function(a){for(var i=arguments.length,s=new Array(i>1?i-1:0),u=1;u<i;u++)s[u-1]=arguments[u];return s.reduce((c,f)=>({...c,top:c.top+e*f.y,bottom:c.bottom+e*f.y,left:c.left+e*f.x,right:c.right+e*f.x}),{...a})}}const Qae=Kae(1);function T2(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function Zae(e,t,a){const i=T2(t);if(!i)return e;const{scaleX:s,scaleY:u,x:c,y:f}=i,h=e.left-c-(1-s)*parseFloat(a),m=e.top-f-(1-u)*parseFloat(a.slice(a.indexOf(" ")+1)),v=s?e.width/s:e.width,y=u?e.height/u:e.height;return{width:v,height:y,top:m,right:h+v,bottom:m+y,left:h}}const Jae={ignoreTransform:!1};function Kh(e,t){t===void 0&&(t=Jae);let a=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:m,transformOrigin:v}=ma(e).getComputedStyle(e);m&&(a=Zae(a,m,v))}const{top:i,left:s,width:u,height:c,bottom:f,right:h}=a;return{top:i,left:s,width:u,height:c,bottom:f,right:h}}function $O(e){return Kh(e,{ignoreTransform:!0})}function eie(e){const t=e.innerWidth,a=e.innerHeight;return{top:0,left:0,right:t,bottom:a,width:t,height:a}}function tie(e,t){return t===void 0&&(t=ma(e).getComputedStyle(e)),t.position==="fixed"}function nie(e,t){t===void 0&&(t=ma(e).getComputedStyle(e));const a=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(s=>{const u=t[s];return typeof u=="string"?a.test(u):!1})}function MT(e,t){const a=[];function i(s){if(t!=null&&a.length>=t||!s)return a;if(AT(s)&&s.scrollingElement!=null&&!a.includes(s.scrollingElement))return a.push(s.scrollingElement),a;if(!Gh(s)||x2(s)||a.includes(s))return a;const u=ma(e).getComputedStyle(s);return s!==e&&nie(s,u)&&a.push(s),tie(s,u)?a:i(s.parentNode)}return e?i(e):a}function E2(e){const[t]=MT(e,1);return t??null}function US(e){return!Ug||!e?null:Ku(e)?e:_T(e)?AT(e)||e===Qu(e).scrollingElement?window:Gh(e)?e:null:null}function R2(e){return Ku(e)?e.scrollX:e.scrollLeft}function k2(e){return Ku(e)?e.scrollY:e.scrollTop}function Yw(e){return{x:R2(e),y:k2(e)}}var kr;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(kr||(kr={}));function D2(e){return!Ug||!e?!1:e===document.scrollingElement}function _2(e){const t={x:0,y:0},a=D2(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},i={x:e.scrollWidth-a.width,y:e.scrollHeight-a.height},s=e.scrollTop<=t.y,u=e.scrollLeft<=t.x,c=e.scrollTop>=i.y,f=e.scrollLeft>=i.x;return{isTop:s,isLeft:u,isBottom:c,isRight:f,maxScroll:i,minScroll:t}}const rie={x:.2,y:.2};function aie(e,t,a,i,s){let{top:u,left:c,right:f,bottom:h}=a;i===void 0&&(i=10),s===void 0&&(s=rie);const{isTop:m,isBottom:v,isLeft:y,isRight:x}=_2(e),S={x:0,y:0},R={x:0,y:0},E={height:t.height*s.y,width:t.width*s.x};return!m&&u<=t.top+E.height?(S.y=kr.Backward,R.y=i*Math.abs((t.top+E.height-u)/E.height)):!v&&h>=t.bottom-E.height&&(S.y=kr.Forward,R.y=i*Math.abs((t.bottom-E.height-h)/E.height)),!x&&f>=t.right-E.width?(S.x=kr.Forward,R.x=i*Math.abs((t.right-E.width-f)/E.width)):!y&&c<=t.left+E.width&&(S.x=kr.Backward,R.x=i*Math.abs((t.left+E.width-c)/E.width)),{direction:S,speed:R}}function iie(e){if(e===document.scrollingElement){const{innerWidth:u,innerHeight:c}=window;return{top:0,left:0,right:u,bottom:c,width:u,height:c}}const{top:t,left:a,right:i,bottom:s}=e.getBoundingClientRect();return{top:t,left:a,right:i,bottom:s,width:e.clientWidth,height:e.clientHeight}}function A2(e){return e.reduce((t,a)=>Au(t,Yw(a)),Mi)}function oie(e){return e.reduce((t,a)=>t+R2(a),0)}function sie(e){return e.reduce((t,a)=>t+k2(a),0)}function O2(e,t){if(t===void 0&&(t=Kh),!e)return;const{top:a,left:i,bottom:s,right:u}=t(e);E2(e)&&(s<=0||u<=0||a>=window.innerHeight||i>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const lie=[["x",["left","right"],oie],["y",["top","bottom"],sie]];class NT{constructor(t,a){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const i=MT(a),s=A2(i);this.rect={...t},this.width=t.width,this.height=t.height;for(const[u,c,f]of lie)for(const h of c)Object.defineProperty(this,h,{get:()=>{const m=f(i),v=s[u]-m;return this.rect[h]+v},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class fh{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(a=>{var i;return(i=this.target)==null?void 0:i.removeEventListener(...a)})},this.target=t}add(t,a,i){var s;(s=this.target)==null||s.addEventListener(t,a,i),this.listeners.push([t,a,i])}}function cie(e){const{EventTarget:t}=ma(e);return e instanceof t?e:Qu(e)}function HS(e,t){const a=Math.abs(e.x),i=Math.abs(e.y);return typeof t=="number"?Math.sqrt(a**2+i**2)>t:"x"in t&&"y"in t?a>t.x&&i>t.y:"x"in t?a>t.x:"y"in t?i>t.y:!1}var ri;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(ri||(ri={}));function zO(e){e.preventDefault()}function uie(e){e.stopPropagation()}var An;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(An||(An={}));const M2={start:[An.Space,An.Enter],cancel:[An.Esc],end:[An.Space,An.Enter,An.Tab]},die=(e,t)=>{let{currentCoordinates:a}=t;switch(e.code){case An.Right:return{...a,x:a.x+25};case An.Left:return{...a,x:a.x-25};case An.Down:return{...a,y:a.y+25};case An.Up:return{...a,y:a.y-25}}};class N2{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:a}}=t;this.props=t,this.listeners=new fh(Qu(a)),this.windowListeners=new fh(ma(a)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(ri.Resize,this.handleCancel),this.windowListeners.add(ri.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(ri.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:a}=this.props,i=t.node.current;i&&O2(i),a(Mi)}handleKeyDown(t){if(OT(t)){const{active:a,context:i,options:s}=this.props,{keyboardCodes:u=M2,coordinateGetter:c=die,scrollBehavior:f="smooth"}=s,{code:h}=t;if(u.end.includes(h)){this.handleEnd(t);return}if(u.cancel.includes(h)){this.handleCancel(t);return}const{collisionRect:m}=i.current,v=m?{x:m.left,y:m.top}:Mi;this.referenceCoordinates||(this.referenceCoordinates=v);const y=c(t,{active:a,context:i.current,currentCoordinates:v});if(y){const x=dg(y,v),S={x:0,y:0},{scrollableAncestors:R}=i.current;for(const E of R){const k=t.code,{isTop:O,isRight:_,isLeft:N,isBottom:$,maxScroll:L,minScroll:I}=_2(E),F=iie(E),Q={x:Math.min(k===An.Right?F.right-F.width/2:F.right,Math.max(k===An.Right?F.left:F.left+F.width/2,y.x)),y:Math.min(k===An.Down?F.bottom-F.height/2:F.bottom,Math.max(k===An.Down?F.top:F.top+F.height/2,y.y))},le=k===An.Right&&!_||k===An.Left&&!N,re=k===An.Down&&!$||k===An.Up&&!O;if(le&&Q.x!==y.x){const de=E.scrollLeft+x.x,Ke=k===An.Right&&de<=L.x||k===An.Left&&de>=I.x;if(Ke&&!x.y){E.scrollTo({left:de,behavior:f});return}Ke?S.x=E.scrollLeft-de:S.x=k===An.Right?E.scrollLeft-L.x:E.scrollLeft-I.x,S.x&&E.scrollBy({left:-S.x,behavior:f});break}else if(re&&Q.y!==y.y){const de=E.scrollTop+x.y,Ke=k===An.Down&&de<=L.y||k===An.Up&&de>=I.y;if(Ke&&!x.x){E.scrollTo({top:de,behavior:f});return}Ke?S.y=E.scrollTop-de:S.y=k===An.Down?E.scrollTop-L.y:E.scrollTop-I.y,S.y&&E.scrollBy({top:-S.y,behavior:f});break}}this.handleMove(t,Au(dg(y,this.referenceCoordinates),S))}}}handleMove(t,a){const{onMove:i}=this.props;t.preventDefault(),i(a)}handleEnd(t){const{onEnd:a}=this.props;t.preventDefault(),this.detach(),a()}handleCancel(t){const{onCancel:a}=this.props;t.preventDefault(),this.detach(),a()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}N2.activators=[{eventName:"onKeyDown",handler:(e,t,a)=>{let{keyboardCodes:i=M2,onActivation:s}=t,{active:u}=a;const{code:c}=e.nativeEvent;if(i.start.includes(c)){const f=u.activatorNode.current;return f&&e.target!==f?!1:(e.preventDefault(),s==null||s({event:e.nativeEvent}),!0)}return!1}}];function FO(e){return!!(e&&"distance"in e)}function IO(e){return!!(e&&"delay"in e)}class PT{constructor(t,a,i){var s;i===void 0&&(i=cie(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=a;const{event:u}=t,{target:c}=u;this.props=t,this.events=a,this.document=Qu(c),this.documentListeners=new fh(this.document),this.listeners=new fh(i),this.windowListeners=new fh(ma(c)),this.initialCoordinates=(s=fg(u))!=null?s:Mi,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:a,bypassActivationConstraint:i}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(ri.Resize,this.handleCancel),this.windowListeners.add(ri.DragStart,zO),this.windowListeners.add(ri.VisibilityChange,this.handleCancel),this.windowListeners.add(ri.ContextMenu,zO),this.documentListeners.add(ri.Keydown,this.handleKeydown),a){if(i!=null&&i({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(IO(a)){this.timeoutId=setTimeout(this.handleStart,a.delay),this.handlePending(a);return}if(FO(a)){this.handlePending(a);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,a){const{active:i,onPending:s}=this.props;s(i,t,this.initialCoordinates,a)}handleStart(){const{initialCoordinates:t}=this,{onStart:a}=this.props;t&&(this.activated=!0,this.documentListeners.add(ri.Click,uie,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(ri.SelectionChange,this.removeTextSelection),a(t))}handleMove(t){var a;const{activated:i,initialCoordinates:s,props:u}=this,{onMove:c,options:{activationConstraint:f}}=u;if(!s)return;const h=(a=fg(t))!=null?a:Mi,m=dg(s,h);if(!i&&f){if(FO(f)){if(f.tolerance!=null&&HS(m,f.tolerance))return this.handleCancel();if(HS(m,f.distance))return this.handleStart()}if(IO(f)&&HS(m,f.tolerance))return this.handleCancel();this.handlePending(f,m);return}t.cancelable&&t.preventDefault(),c(h)}handleEnd(){const{onAbort:t,onEnd:a}=this.props;this.detach(),this.activated||t(this.props.active),a()}handleCancel(){const{onAbort:t,onCancel:a}=this.props;this.detach(),this.activated||t(this.props.active),a()}handleKeydown(t){t.code===An.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const fie={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class jT extends PT{constructor(t){const{event:a}=t,i=Qu(a.target);super(t,fie,i)}}jT.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:a}=e,{onActivation:i}=t;return!a.isPrimary||a.button!==0?!1:(i==null||i({event:a}),!0)}}];const hie={move:{name:"mousemove"},end:{name:"mouseup"}};var qw;(function(e){e[e.RightClick=2]="RightClick"})(qw||(qw={}));class pie extends PT{constructor(t){super(t,hie,Qu(t.event.target))}}pie.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:a}=e,{onActivation:i}=t;return a.button===qw.RightClick?!1:(i==null||i({event:a}),!0)}}];const WS={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class mie extends PT{constructor(t){super(t,WS)}static setup(){return window.addEventListener(WS.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(WS.move.name,t)};function t(){}}}mie.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:a}=e,{onActivation:i}=t;const{touches:s}=a;return s.length>1?!1:(i==null||i({event:a}),!0)}}];var hh;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(hh||(hh={}));var pg;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(pg||(pg={}));function vie(e){let{acceleration:t,activator:a=hh.Pointer,canScroll:i,draggingRect:s,enabled:u,interval:c=5,order:f=pg.TreeOrder,pointerCoordinates:h,scrollableAncestors:m,scrollableAncestorRects:v,delta:y,threshold:x}=e;const S=yie({delta:y,disabled:!u}),[R,E]=_ae(),k=w.useRef({x:0,y:0}),O=w.useRef({x:0,y:0}),_=w.useMemo(()=>{switch(a){case hh.Pointer:return h?{top:h.y,bottom:h.y,left:h.x,right:h.x}:null;case hh.DraggableRect:return s}},[a,s,h]),N=w.useRef(null),$=w.useCallback(()=>{const I=N.current;if(!I)return;const F=k.current.x*O.current.x,Q=k.current.y*O.current.y;I.scrollBy(F,Q)},[]),L=w.useMemo(()=>f===pg.TreeOrder?[...m].reverse():m,[f,m]);w.useEffect(()=>{if(!u||!m.length||!_){E();return}for(const I of L){if((i==null?void 0:i(I))===!1)continue;const F=m.indexOf(I),Q=v[F];if(!Q)continue;const{direction:le,speed:re}=aie(I,Q,_,t,x);for(const de of["x","y"])S[de][le[de]]||(re[de]=0,le[de]=0);if(re.x>0||re.y>0){E(),N.current=I,R($,c),k.current=re,O.current=le;return}}k.current={x:0,y:0},O.current={x:0,y:0},E()},[t,$,i,E,u,c,JSON.stringify(_),JSON.stringify(S),R,m,L,v,JSON.stringify(x)])}const gie={x:{[kr.Backward]:!1,[kr.Forward]:!1},y:{[kr.Backward]:!1,[kr.Forward]:!1}};function yie(e){let{delta:t,disabled:a}=e;const i=ug(t);return Xh(s=>{if(a||!i||!s)return gie;const u={x:Math.sign(t.x-i.x),y:Math.sign(t.y-i.y)};return{x:{[kr.Backward]:s.x[kr.Backward]||u.x===-1,[kr.Forward]:s.x[kr.Forward]||u.x===1},y:{[kr.Backward]:s.y[kr.Backward]||u.y===-1,[kr.Forward]:s.y[kr.Forward]||u.y===1}}},[a,t,i])}function bie(e,t){const a=t!=null?e.get(t):void 0,i=a?a.node.current:null;return Xh(s=>{var u;return t==null?null:(u=i??s)!=null?u:null},[i,t])}function xie(e,t){return w.useMemo(()=>e.reduce((a,i)=>{const{sensor:s}=i,u=s.activators.map(c=>({eventName:c.eventName,handler:t(c.handler,i)}));return[...a,...u]},[]),[e,t])}var Ph;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Ph||(Ph={}));var Gw;(function(e){e.Optimized="optimized"})(Gw||(Gw={}));const VO=new Map;function Sie(e,t){let{dragging:a,dependencies:i,config:s}=t;const[u,c]=w.useState(null),{frequency:f,measure:h,strategy:m}=s,v=w.useRef(e),y=k(),x=Mh(y),S=w.useCallback(function(O){O===void 0&&(O=[]),!x.current&&c(_=>_===null?O:_.concat(O.filter(N=>!_.includes(N))))},[x]),R=w.useRef(null),E=Xh(O=>{if(y&&!a)return VO;if(!O||O===VO||v.current!==e||u!=null){const _=new Map;for(let N of e){if(!N)continue;if(u&&u.length>0&&!u.includes(N.id)&&N.rect.current){_.set(N.id,N.rect.current);continue}const $=N.node.current,L=$?new NT(h($),$):null;N.rect.current=L,L&&_.set(N.id,L)}return _}return O},[e,u,a,y,h]);return w.useEffect(()=>{v.current=e},[e]),w.useEffect(()=>{y||S()},[a,y]),w.useEffect(()=>{u&&u.length>0&&c(null)},[JSON.stringify(u)]),w.useEffect(()=>{y||typeof f!="number"||R.current!==null||(R.current=setTimeout(()=>{S(),R.current=null},f))},[f,y,S,...i]),{droppableRects:E,measureDroppableContainers:S,measuringScheduled:u!=null};function k(){switch(m){case Ph.Always:return!1;case Ph.BeforeDragging:return a;default:return!a}}}function LT(e,t){return Xh(a=>e?a||(typeof t=="function"?t(e):e):null,[t,e])}function wie(e,t){return LT(e,t)}function Cie(e){let{callback:t,disabled:a}=e;const i=Hg(t),s=w.useMemo(()=>{if(a||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:u}=window;return new u(i)},[i,a]);return w.useEffect(()=>()=>s==null?void 0:s.disconnect(),[s]),s}function Yg(e){let{callback:t,disabled:a}=e;const i=Hg(t),s=w.useMemo(()=>{if(a||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:u}=window;return new u(i)},[a]);return w.useEffect(()=>()=>s==null?void 0:s.disconnect(),[s]),s}function Tie(e){return new NT(Kh(e),e)}function BO(e,t,a){t===void 0&&(t=Tie);const[i,s]=w.useState(null);function u(){s(h=>{if(!e)return null;if(e.isConnected===!1){var m;return(m=h??a)!=null?m:null}const v=t(e);return JSON.stringify(h)===JSON.stringify(v)?h:v})}const c=Cie({callback(h){if(e)for(const m of h){const{type:v,target:y}=m;if(v==="childList"&&y instanceof HTMLElement&&y.contains(e)){u();break}}}}),f=Yg({callback:u});return es(()=>{u(),e?(f==null||f.observe(e),c==null||c.observe(document.body,{childList:!0,subtree:!0})):(f==null||f.disconnect(),c==null||c.disconnect())},[e]),i}function Eie(e){const t=LT(e);return C2(e,t)}const UO=[];function Rie(e){const t=w.useRef(e),a=Xh(i=>e?i&&i!==UO&&e&&t.current&&e.parentNode===t.current.parentNode?i:MT(e):UO,[e]);return w.useEffect(()=>{t.current=e},[e]),a}function kie(e){const[t,a]=w.useState(null),i=w.useRef(e),s=w.useCallback(u=>{const c=US(u.target);c&&a(f=>f?(f.set(c,Yw(c)),new Map(f)):null)},[]);return w.useEffect(()=>{const u=i.current;if(e!==u){c(u);const f=e.map(h=>{const m=US(h);return m?(m.addEventListener("scroll",s,{passive:!0}),[m,Yw(m)]):null}).filter(h=>h!=null);a(f.length?new Map(f):null),i.current=e}return()=>{c(e),c(u)};function c(f){f.forEach(h=>{const m=US(h);m==null||m.removeEventListener("scroll",s)})}},[s,e]),w.useMemo(()=>e.length?t?Array.from(t.values()).reduce((u,c)=>Au(u,c),Mi):A2(e):Mi,[e,t])}function HO(e,t){t===void 0&&(t=[]);const a=w.useRef(null);return w.useEffect(()=>{a.current=null},t),w.useEffect(()=>{const i=e!==Mi;i&&!a.current&&(a.current=e),!i&&a.current&&(a.current=null)},[e]),a.current?dg(e,a.current):Mi}function Die(e){w.useEffect(()=>{if(!Ug)return;const t=e.map(a=>{let{sensor:i}=a;return i.setup==null?void 0:i.setup()});return()=>{for(const a of t)a==null||a()}},e.map(t=>{let{sensor:a}=t;return a}))}function _ie(e,t){return w.useMemo(()=>e.reduce((a,i)=>{let{eventName:s,handler:u}=i;return a[s]=c=>{u(c,t)},a},{}),[e,t])}function P2(e){return w.useMemo(()=>e?eie(e):null,[e])}const WO=[];function Aie(e,t){t===void 0&&(t=Kh);const[a]=e,i=P2(a?ma(a):null),[s,u]=w.useState(WO);function c(){u(()=>e.length?e.map(h=>D2(h)?i:new NT(t(h),h)):WO)}const f=Yg({callback:c});return es(()=>{f==null||f.disconnect(),c(),e.forEach(h=>f==null?void 0:f.observe(h))},[e]),s}function j2(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Gh(t)?t:e}function Oie(e){let{measure:t}=e;const[a,i]=w.useState(null),s=w.useCallback(m=>{for(const{target:v}of m)if(Gh(v)){i(y=>{const x=t(v);return y?{...y,width:x.width,height:x.height}:x});break}},[t]),u=Yg({callback:s}),c=w.useCallback(m=>{const v=j2(m);u==null||u.disconnect(),v&&(u==null||u.observe(v)),i(v?t(v):null)},[t,u]),[f,h]=cg(c);return w.useMemo(()=>({nodeRef:f,rect:a,setRef:h}),[a,f,h])}const Mie=[{sensor:jT,options:{}},{sensor:N2,options:{}}],Nie={current:{}},Uv={draggable:{measure:$O},droppable:{measure:$O,strategy:Ph.WhileDragging,frequency:Gw.Optimized},dragOverlay:{measure:Kh}};class ph extends Map{get(t){var a;return t!=null&&(a=super.get(t))!=null?a:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:a}=t;return!a})}getNodeFor(t){var a,i;return(a=(i=this.get(t))==null?void 0:i.node.current)!=null?a:void 0}}const Pie={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new ph,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:hg},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Uv,measureDroppableContainers:hg,windowRect:null,measuringScheduled:!1},L2={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:hg,draggableNodes:new Map,over:null,measureDroppableContainers:hg},Qh=w.createContext(L2),$2=w.createContext(Pie);function jie(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new ph}}}function Lie(e,t){switch(t.type){case wr.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case wr.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case wr.DragEnd:case wr.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case wr.RegisterDroppable:{const{element:a}=t,{id:i}=a,s=new ph(e.droppable.containers);return s.set(i,a),{...e,droppable:{...e.droppable,containers:s}}}case wr.SetDroppableDisabled:{const{id:a,key:i,disabled:s}=t,u=e.droppable.containers.get(a);if(!u||i!==u.key)return e;const c=new ph(e.droppable.containers);return c.set(a,{...u,disabled:s}),{...e,droppable:{...e.droppable,containers:c}}}case wr.UnregisterDroppable:{const{id:a,key:i}=t,s=e.droppable.containers.get(a);if(!s||i!==s.key)return e;const u=new ph(e.droppable.containers);return u.delete(a),{...e,droppable:{...e.droppable,containers:u}}}default:return e}}function $ie(e){let{disabled:t}=e;const{active:a,activatorEvent:i,draggableNodes:s}=w.useContext(Qh),u=ug(i),c=ug(a==null?void 0:a.id);return w.useEffect(()=>{if(!t&&!i&&u&&c!=null){if(!OT(u)||document.activeElement===u.target)return;const f=s.get(c);if(!f)return;const{activatorNode:h,node:m}=f;if(!h.current&&!m.current)return;requestAnimationFrame(()=>{for(const v of[h.current,m.current]){if(!v)continue;const y=Mae(v);if(y){y.focus();break}}})}},[i,t,s,c,u]),null}function z2(e,t){let{transform:a,...i}=t;return e!=null&&e.length?e.reduce((s,u)=>u({transform:s,...i}),a):a}function zie(e){return w.useMemo(()=>({draggable:{...Uv.draggable,...e==null?void 0:e.draggable},droppable:{...Uv.droppable,...e==null?void 0:e.droppable},dragOverlay:{...Uv.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function Fie(e){let{activeNode:t,measure:a,initialRect:i,config:s=!0}=e;const u=w.useRef(!1),{x:c,y:f}=typeof s=="boolean"?{x:s,y:s}:s;es(()=>{if(!c&&!f||!t){u.current=!1;return}if(u.current||!i)return;const m=t==null?void 0:t.node.current;if(!m||m.isConnected===!1)return;const v=a(m),y=C2(v,i);if(c||(y.x=0),f||(y.y=0),u.current=!0,Math.abs(y.x)>0||Math.abs(y.y)>0){const x=E2(m);x&&x.scrollBy({top:y.y,left:y.x})}},[t,c,f,i,a])}const qg=w.createContext({...Mi,scaleX:1,scaleY:1});var js;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(js||(js={}));const Iie=w.memo(function(t){var a,i,s,u;let{id:c,accessibility:f,autoScroll:h=!0,children:m,sensors:v=Mie,collisionDetection:y=Gae,measuring:x,modifiers:S,...R}=t;const E=w.useReducer(Lie,void 0,jie),[k,O]=E,[_,N]=zae(),[$,L]=w.useState(js.Uninitialized),I=$===js.Initialized,{draggable:{active:F,nodes:Q,translate:le},droppable:{containers:re}}=k,de=F!=null?Q.get(F):null,Ke=w.useRef({initial:null,translated:null}),q=w.useMemo(()=>{var Ze;return F!=null?{id:F,data:(Ze=de==null?void 0:de.data)!=null?Ze:Nie,rect:Ke}:null},[F,de]),ue=w.useRef(null),[Ee,we]=w.useState(null),[oe,K]=w.useState(null),Y=Mh(R,Object.values(R)),G=Wg("DndDescribedBy",c),ve=w.useMemo(()=>re.getEnabled(),[re]),te=zie(x),{droppableRects:pe,measureDroppableContainers:Me,measuringScheduled:Ne}=Sie(ve,{dragging:I,dependencies:[le.x,le.y],config:te.droppable}),Pe=bie(Q,F),ht=w.useMemo(()=>oe?fg(oe):null,[oe]),mt=Ct(),gt=wie(Pe,te.draggable.measure);Fie({activeNode:F!=null?Q.get(F):null,config:mt.layoutShiftCompensation,initialRect:gt,measure:te.draggable.measure});const it=BO(Pe,te.draggable.measure,gt),jt=BO(Pe?Pe.parentElement:null),be=w.useRef({activatorEvent:null,active:null,activeNode:Pe,collisionRect:null,collisions:null,droppableRects:pe,draggableNodes:Q,draggingNode:null,draggingNodeRect:null,droppableContainers:re,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),ut=re.getNodeFor((a=be.current.over)==null?void 0:a.id),Et=Oie({measure:te.dragOverlay.measure}),Nt=(i=Et.nodeRef.current)!=null?i:Pe,Pt=I?(s=Et.rect)!=null?s:it:null,Ot=!!(Et.nodeRef.current&&Et.rect),cn=Eie(Ot?null:it),en=P2(Nt?ma(Nt):null),vt=Rie(I?ut??Pe:null),on=Aie(vt),un=z2(S,{transform:{x:le.x-cn.x,y:le.y-cn.y,scaleX:1,scaleY:1},activatorEvent:oe,active:q,activeNodeRect:it,containerNodeRect:jt,draggingNodeRect:Pt,over:be.current.over,overlayNodeRect:Et.rect,scrollableAncestors:vt,scrollableAncestorRects:on,windowRect:en}),$e=ht?Au(ht,le):null,St=kie(vt),yt=HO(St),_t=HO(St,[it]),Ge=Au(un,yt),tt=Pt?Qae(Pt,un):null,Ft=q&&tt?y({active:q,collisionRect:tt,droppableRects:pe,droppableContainers:ve,pointerCoordinates:$e}):null,At=Yae(Ft,"id"),[xe,_e]=w.useState(null),Oe=Ot?un:Au(un,_t),Qe=Xae(Oe,(u=xe==null?void 0:xe.rect)!=null?u:null,it),We=w.useRef(null),ot=w.useCallback((Ze,Kt)=>{let{sensor:Gt,options:ir}=Kt;if(ue.current==null)return;const In=Q.get(ue.current);if(!In)return;const Bn=Ze.nativeEvent,Un=new Gt({active:ue.current,activeNode:In,event:Bn,options:ir,context:be,onAbort(Lt){if(!Q.get(Lt))return;const{onDragAbort:Pn}=Y.current,jn={id:Lt};Pn==null||Pn(jn),_({type:"onDragAbort",event:jn})},onPending(Lt,Jn,Pn,jn){if(!Q.get(Lt))return;const{onDragPending:z}=Y.current,ye={id:Lt,constraint:Jn,initialCoordinates:Pn,offset:jn};z==null||z(ye),_({type:"onDragPending",event:ye})},onStart(Lt){const Jn=ue.current;if(Jn==null)return;const Pn=Q.get(Jn);if(!Pn)return;const{onDragStart:jn}=Y.current,er={activatorEvent:Bn,active:{id:Jn,data:Pn.data,rect:Ke}};$s.unstable_batchedUpdates(()=>{jn==null||jn(er),L(js.Initializing),O({type:wr.DragStart,initialCoordinates:Lt,active:Jn}),_({type:"onDragStart",event:er}),we(We.current),K(Bn)})},onMove(Lt){O({type:wr.DragMove,coordinates:Lt})},onEnd:dr(wr.DragEnd),onCancel:dr(wr.DragCancel)});We.current=Un;function dr(Lt){return async function(){const{active:Pn,collisions:jn,over:er,scrollAdjustedTranslate:z}=be.current;let ye=null;if(Pn&&z){const{cancelDrop:ke}=Y.current;ye={activatorEvent:Bn,active:Pn,collisions:jn,delta:z,over:er},Lt===wr.DragEnd&&typeof ke=="function"&&await Promise.resolve(ke(ye))&&(Lt=wr.DragCancel)}ue.current=null,$s.unstable_batchedUpdates(()=>{O({type:Lt}),L(js.Uninitialized),_e(null),we(null),K(null),We.current=null;const ke=Lt===wr.DragEnd?"onDragEnd":"onDragCancel";if(ye){const M=Y.current[ke];M==null||M(ye),_({type:ke,event:ye})}})}}},[Q]),Ue=w.useCallback((Ze,Kt)=>(Gt,ir)=>{const In=Gt.nativeEvent,Bn=Q.get(ir);if(ue.current!==null||!Bn||In.dndKit||In.defaultPrevented)return;const Un={active:Bn};Ze(Gt,Kt.options,Un)===!0&&(In.dndKit={capturedBy:Kt.sensor},ue.current=ir,ot(Gt,Kt))},[Q,ot]),Vt=xie(v,Ue);Die(v),es(()=>{it&&$===js.Initializing&&L(js.Initialized)},[it,$]),w.useEffect(()=>{const{onDragMove:Ze}=Y.current,{active:Kt,activatorEvent:Gt,collisions:ir,over:In}=be.current;if(!Kt||!Gt)return;const Bn={active:Kt,activatorEvent:Gt,collisions:ir,delta:{x:Ge.x,y:Ge.y},over:In};$s.unstable_batchedUpdates(()=>{Ze==null||Ze(Bn),_({type:"onDragMove",event:Bn})})},[Ge.x,Ge.y]),w.useEffect(()=>{const{active:Ze,activatorEvent:Kt,collisions:Gt,droppableContainers:ir,scrollAdjustedTranslate:In}=be.current;if(!Ze||ue.current==null||!Kt||!In)return;const{onDragOver:Bn}=Y.current,Un=ir.get(At),dr=Un&&Un.rect.current?{id:Un.id,rect:Un.rect.current,data:Un.data,disabled:Un.disabled}:null,Lt={active:Ze,activatorEvent:Kt,collisions:Gt,delta:{x:In.x,y:In.y},over:dr};$s.unstable_batchedUpdates(()=>{_e(dr),Bn==null||Bn(Lt),_({type:"onDragOver",event:Lt})})},[At]),es(()=>{be.current={activatorEvent:oe,active:q,activeNode:Pe,collisionRect:tt,collisions:Ft,droppableRects:pe,draggableNodes:Q,draggingNode:Nt,draggingNodeRect:Pt,droppableContainers:re,over:xe,scrollableAncestors:vt,scrollAdjustedTranslate:Ge},Ke.current={initial:Pt,translated:tt}},[q,Pe,Ft,tt,Q,Nt,Pt,pe,re,xe,vt,Ge]),vie({...mt,delta:le,draggingRect:tt,pointerCoordinates:$e,scrollableAncestors:vt,scrollableAncestorRects:on});const kt=w.useMemo(()=>({active:q,activeNode:Pe,activeNodeRect:it,activatorEvent:oe,collisions:Ft,containerNodeRect:jt,dragOverlay:Et,draggableNodes:Q,droppableContainers:re,droppableRects:pe,over:xe,measureDroppableContainers:Me,scrollableAncestors:vt,scrollableAncestorRects:on,measuringConfiguration:te,measuringScheduled:Ne,windowRect:en}),[q,Pe,it,oe,Ft,jt,Et,Q,re,pe,xe,Me,vt,on,te,Ne,en]),Cn=w.useMemo(()=>({activatorEvent:oe,activators:Vt,active:q,activeNodeRect:it,ariaDescribedById:{draggable:G},dispatch:O,draggableNodes:Q,over:xe,measureDroppableContainers:Me}),[oe,Vt,q,it,O,G,Q,xe,Me]);return hn.createElement(w2.Provider,{value:N},hn.createElement(Qh.Provider,{value:Cn},hn.createElement($2.Provider,{value:kt},hn.createElement(qg.Provider,{value:Qe},m)),hn.createElement($ie,{disabled:(f==null?void 0:f.restoreFocus)===!1})),hn.createElement(Vae,{...f,hiddenTextDescribedById:G}));function Ct(){const Ze=(Ee==null?void 0:Ee.autoScrollEnabled)===!1,Kt=typeof h=="object"?h.enabled===!1:h===!1,Gt=I&&!Ze&&!Kt;return typeof h=="object"?{...h,enabled:Gt}:{enabled:Gt}}}),Vie=w.createContext(null),YO="button",Bie="Draggable";function $T(e){let{id:t,data:a,disabled:i=!1,attributes:s}=e;const u=Wg(Bie),{activators:c,activatorEvent:f,active:h,activeNodeRect:m,ariaDescribedById:v,draggableNodes:y,over:x}=w.useContext(Qh),{role:S=YO,roleDescription:R="draggable",tabIndex:E=0}=s??{},k=(h==null?void 0:h.id)===t,O=w.useContext(k?qg:Vie),[_,N]=cg(),[$,L]=cg(),I=_ie(c,t),F=Mh(a);es(()=>(y.set(t,{id:t,key:u,node:_,activatorNode:$,data:F}),()=>{const le=y.get(t);le&&le.key===u&&y.delete(t)}),[y,t]);const Q=w.useMemo(()=>({role:S,tabIndex:E,"aria-disabled":i,"aria-pressed":k&&S===YO?!0:void 0,"aria-roledescription":R,"aria-describedby":v.draggable}),[i,S,E,k,R,v.draggable]);return{active:h,activatorEvent:f,activeNodeRect:m,attributes:Q,isDragging:k,listeners:i?void 0:I,node:_,over:x,setNodeRef:N,setActivatorNodeRef:L,transform:O}}function Uie(){return w.useContext($2)}const Hie="Droppable",Wie={timeout:25};function F2(e){let{data:t,disabled:a=!1,id:i,resizeObserverConfig:s}=e;const u=Wg(Hie),{active:c,dispatch:f,over:h,measureDroppableContainers:m}=w.useContext(Qh),v=w.useRef({disabled:a}),y=w.useRef(!1),x=w.useRef(null),S=w.useRef(null),{disabled:R,updateMeasurementsFor:E,timeout:k}={...Wie,...s},O=Mh(E??i),_=w.useCallback(()=>{if(!y.current){y.current=!0;return}S.current!=null&&clearTimeout(S.current),S.current=setTimeout(()=>{m(Array.isArray(O.current)?O.current:[O.current]),S.current=null},k)},[k]),N=Yg({callback:_,disabled:R||!c}),$=w.useCallback((Q,le)=>{N&&(le&&(N.unobserve(le),y.current=!1),Q&&N.observe(Q))},[N]),[L,I]=cg($),F=Mh(t);return w.useEffect(()=>{!N||!L.current||(N.disconnect(),y.current=!1,N.observe(L.current))},[L,N]),w.useEffect(()=>(f({type:wr.RegisterDroppable,element:{id:i,key:u,disabled:a,node:L,rect:x,data:F}}),()=>f({type:wr.UnregisterDroppable,key:u,id:i})),[i]),w.useEffect(()=>{a!==v.current.disabled&&(f({type:wr.SetDroppableDisabled,id:i,key:u,disabled:a}),v.current.disabled=a)},[i,u,a,f]),{active:c,rect:x,isOver:(h==null?void 0:h.id)===i,node:L,over:h,setNodeRef:I}}function Yie(e){let{animation:t,children:a}=e;const[i,s]=w.useState(null),[u,c]=w.useState(null),f=ug(a);return!a&&!i&&f&&s(f),es(()=>{if(!u)return;const h=i==null?void 0:i.key,m=i==null?void 0:i.props.id;if(h==null||m==null){s(null);return}Promise.resolve(t(m,u)).then(()=>{s(null)})},[t,i,u]),hn.createElement(hn.Fragment,null,a,i?w.cloneElement(i,{ref:c}):null)}const qie={x:0,y:0,scaleX:1,scaleY:1};function Gie(e){let{children:t}=e;return hn.createElement(Qh.Provider,{value:L2},hn.createElement(qg.Provider,{value:qie},t))}const Xie={position:"fixed",touchAction:"none"},Kie=e=>OT(e)?"transform 250ms ease":void 0,Qie=w.forwardRef((e,t)=>{let{as:a,activatorEvent:i,adjustScale:s,children:u,className:c,rect:f,style:h,transform:m,transition:v=Kie}=e;if(!f)return null;const y=s?m:{...m,scaleX:1,scaleY:1},x={...Xie,width:f.width,height:f.height,top:f.top,left:f.left,transform:Nh.Transform.toString(y),transformOrigin:s&&i?Hae(i,f):void 0,transition:typeof v=="function"?v(i):v,...h};return hn.createElement(a,{className:c,style:x,ref:t},u)}),Zie=e=>t=>{let{active:a,dragOverlay:i}=t;const s={},{styles:u,className:c}=e;if(u!=null&&u.active)for(const[f,h]of Object.entries(u.active))h!==void 0&&(s[f]=a.node.style.getPropertyValue(f),a.node.style.setProperty(f,h));if(u!=null&&u.dragOverlay)for(const[f,h]of Object.entries(u.dragOverlay))h!==void 0&&i.node.style.setProperty(f,h);return c!=null&&c.active&&a.node.classList.add(c.active),c!=null&&c.dragOverlay&&i.node.classList.add(c.dragOverlay),function(){for(const[h,m]of Object.entries(s))a.node.style.setProperty(h,m);c!=null&&c.active&&a.node.classList.remove(c.active)}},Jie=e=>{let{transform:{initial:t,final:a}}=e;return[{transform:Nh.Transform.toString(t)},{transform:Nh.Transform.toString(a)}]},eoe={duration:250,easing:"ease",keyframes:Jie,sideEffects:Zie({styles:{active:{opacity:"0"}}})};function toe(e){let{config:t,draggableNodes:a,droppableContainers:i,measuringConfiguration:s}=e;return Hg((u,c)=>{if(t===null)return;const f=a.get(u);if(!f)return;const h=f.node.current;if(!h)return;const m=j2(c);if(!m)return;const{transform:v}=ma(c).getComputedStyle(c),y=T2(v);if(!y)return;const x=typeof t=="function"?t:noe(t);return O2(h,s.draggable.measure),x({active:{id:u,data:f.data,node:h,rect:s.draggable.measure(h)},draggableNodes:a,dragOverlay:{node:c,rect:s.dragOverlay.measure(m)},droppableContainers:i,measuringConfiguration:s,transform:y})})}function noe(e){const{duration:t,easing:a,sideEffects:i,keyframes:s}={...eoe,...e};return u=>{let{active:c,dragOverlay:f,transform:h,...m}=u;if(!t)return;const v={x:f.rect.left-c.rect.left,y:f.rect.top-c.rect.top},y={scaleX:h.scaleX!==1?c.rect.width*h.scaleX/f.rect.width:1,scaleY:h.scaleY!==1?c.rect.height*h.scaleY/f.rect.height:1},x={x:h.x-v.x,y:h.y-v.y,...y},S=s({...m,active:c,dragOverlay:f,transform:{initial:h,final:x}}),[R]=S,E=S[S.length-1];if(JSON.stringify(R)===JSON.stringify(E))return;const k=i==null?void 0:i({active:c,dragOverlay:f,...m}),O=f.node.animate(S,{duration:t,easing:a,fill:"forwards"});return new Promise(_=>{O.onfinish=()=>{k==null||k(),_()}})}}let qO=0;function roe(e){return w.useMemo(()=>{if(e!=null)return qO++,qO},[e])}const aoe=hn.memo(e=>{let{adjustScale:t=!1,children:a,dropAnimation:i,style:s,transition:u,modifiers:c,wrapperElement:f="div",className:h,zIndex:m=999}=e;const{activatorEvent:v,active:y,activeNodeRect:x,containerNodeRect:S,draggableNodes:R,droppableContainers:E,dragOverlay:k,over:O,measuringConfiguration:_,scrollableAncestors:N,scrollableAncestorRects:$,windowRect:L}=Uie(),I=w.useContext(qg),F=roe(y==null?void 0:y.id),Q=z2(c,{activatorEvent:v,active:y,activeNodeRect:x,containerNodeRect:S,draggingNodeRect:k.rect,over:O,overlayNodeRect:k.rect,scrollableAncestors:N,scrollableAncestorRects:$,transform:I,windowRect:L}),le=LT(x),re=toe({config:i,draggableNodes:R,droppableContainers:E,measuringConfiguration:_}),de=le?k.setRef:void 0;return hn.createElement(Gie,null,hn.createElement(Yie,{animation:re},y&&F?hn.createElement(Qie,{key:F,id:y.id,ref:de,as:f,activatorEvent:v,adjustScale:t,className:h,transition:u,rect:le,style:{zIndex:m,...s},transform:Q},a):null))}),GO={"4-3-3":{name:"4-3-3",positions:[{id:"gk",x:50,y:88,type:"GK"},{id:"lb",x:15,y:72,type:"DEF"},{id:"cb1",x:38,y:72,type:"DEF"},{id:"cb2",x:62,y:72,type:"DEF"},{id:"rb",x:85,y:72,type:"DEF"},{id:"cm1",x:25,y:50,type:"MID"},{id:"cm2",x:50,y:50,type:"MID"},{id:"cm3",x:75,y:50,type:"MID"},{id:"lw",x:18,y:25,type:"FWD"},{id:"st",x:50,y:20,type:"FWD"},{id:"rw",x:82,y:25,type:"FWD"}]},"4-4-2":{name:"4-4-2",positions:[{id:"gk",x:50,y:88,type:"GK"},{id:"lb",x:15,y:72,type:"DEF"},{id:"cb1",x:38,y:72,type:"DEF"},{id:"cb2",x:62,y:72,type:"DEF"},{id:"rb",x:85,y:72,type:"DEF"},{id:"lm",x:15,y:50,type:"MID"},{id:"cm1",x:40,y:50,type:"MID"},{id:"cm2",x:60,y:50,type:"MID"},{id:"rm",x:85,y:50,type:"MID"},{id:"st1",x:38,y:22,type:"FWD"},{id:"st2",x:62,y:22,type:"FWD"}]},"3-5-2":{name:"3-5-2",positions:[{id:"gk",x:50,y:88,type:"GK"},{id:"cb1",x:28,y:72,type:"DEF"},{id:"cb2",x:50,y:72,type:"DEF"},{id:"cb3",x:72,y:72,type:"DEF"},{id:"lwb",x:12,y:55,type:"MID"},{id:"cm1",x:32,y:50,type:"MID"},{id:"cm2",x:50,y:50,type:"MID"},{id:"cm3",x:68,y:50,type:"MID"},{id:"rwb",x:88,y:55,type:"MID"},{id:"st1",x:38,y:22,type:"FWD"},{id:"st2",x:62,y:22,type:"FWD"}]},"4-2-3-1":{name:"4-2-3-1",positions:[{id:"gk",x:50,y:88,type:"GK"},{id:"lb",x:15,y:72,type:"DEF"},{id:"cb1",x:38,y:72,type:"DEF"},{id:"cb2",x:62,y:72,type:"DEF"},{id:"rb",x:85,y:72,type:"DEF"},{id:"cdm1",x:38,y:58,type:"MID"},{id:"cdm2",x:62,y:58,type:"MID"},{id:"lam",x:18,y:38,type:"MID"},{id:"cam",x:50,y:38,type:"MID"},{id:"ram",x:82,y:38,type:"MID"},{id:"st",x:50,y:18,type:"FWD"}]},"3-4-3":{name:"3-4-3",positions:[{id:"gk",x:50,y:88,type:"GK"},{id:"cb1",x:28,y:72,type:"DEF"},{id:"cb2",x:50,y:72,type:"DEF"},{id:"cb3",x:72,y:72,type:"DEF"},{id:"lm",x:18,y:52,type:"MID"},{id:"cm1",x:40,y:52,type:"MID"},{id:"cm2",x:60,y:52,type:"MID"},{id:"rm",x:82,y:52,type:"MID"},{id:"lw",x:18,y:25,type:"FWD"},{id:"st",x:50,y:20,type:"FWD"},{id:"rw",x:82,y:25,type:"FWD"}]}},ioe="691ffdf84217e9e8434e5693",ooe="691ffdf84217e9e8434e569f",Xw="6957cf01e7e22f224d6ef000",I2="6957cf01e7e22f224d6eeffd",V2="6957cf01e7e22f224d6eeffe",soe={tacticName:"6957cf01e7e22f224d6eeff5",formation:"6957cf01e7e22f224d6eeff6",category:"6957cf01e7e22f224d6eeff7",setPieceType:"6957cf01e7e22f224d6eeff8",description:"6957cf01e7e22f224d6eeff9",tags:"6957cf01e7e22f224d6eeffa",tacticData:"6957cf01e7e22f224d6eeffb",keyPlayers:"6957cf01e7e22f224d6eeffc"},ai=soe,loe=ioe,coe=ooe,yv={playerName:"691ffdf84217e9e8434e5694",jerseyNumber:"691ffdf84217e9e8434e5695",position:"691ffdf84217e9e8434e5696",nationality:"691ffdf84217e9e8434e5698"};function zT({player:e}){const t=da("gray.700","gray.800"),a=da("gray.300","gray.600"),i=da("gray.400","gray.300");return H.jsxDEV(Dr,{bg:t,border:"2px solid",borderColor:a,borderRadius:"md",p:2,minW:"80px",textAlign:"center",cursor:"grab",_active:{cursor:"grabbing"},boxShadow:"md",children:H.jsxDEV(Jo,{spacing:0,children:[H.jsxDEV(Zr,{fontSize:"2xl",fontWeight:"bold",lineHeight:"1",children:e.jerseyNumber},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/PlayerCard.tsx",lineNumber:27,columnNumber:9},this),H.jsxDEV(Zr,{fontSize:"xs",fontWeight:"semibold",noOfLines:1,children:e.name},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/PlayerCard.tsx",lineNumber:30,columnNumber:9},this),H.jsxDEV(Zr,{fontSize:"xs",color:i,noOfLines:1,children:e.position},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/PlayerCard.tsx",lineNumber:33,columnNumber:9},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/PlayerCard.tsx",lineNumber:26,columnNumber:7},this)},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/PlayerCard.tsx",lineNumber:14,columnNumber:5},this)}function uoe({position:e,player:t,animatedX:a,animatedY:i,isAnimating:s}){const{setNodeRef:u}=F2({id:(t==null?void 0:t.id)||`empty-${e.id}`}),{attributes:c,listeners:f,setNodeRef:h,isDragging:m}=$T({id:(t==null?void 0:t.id)||`empty-${e.id}`,disabled:!t}),v=s&&a!==void 0?a:e.x,y=s&&i!==void 0?i:e.y;return H.jsxDEV(Dr,{ref:u,position:"absolute",left:`${v}%`,top:`${y}%`,transform:"translate(-50%, -50%)",zIndex:m?0:1,transition:s?"none":"left 0.3s, top 0.3s",children:t?H.jsxDEV(Dr,{ref:h,...f,...c,opacity:m?.5:1,children:H.jsxDEV(zT,{player:t},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/PitchPosition.tsx",lineNumber:45,columnNumber:11},this)},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/PitchPosition.tsx",lineNumber:39,columnNumber:9},this):H.jsxDEV(Dr,{w:"80px",h:"60px",border:"2px dashed",borderColor:"whiteAlpha.500",borderRadius:"md",bg:"blackAlpha.200"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/PitchPosition.tsx",lineNumber:48,columnNumber:9},this)},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/PitchPosition.tsx",lineNumber:29,columnNumber:5},this)}function doe({children:e}){const t=da("green.500","green.700"),a="white";return H.jsxDEV(Dr,{"data-pitch":"true",bg:t,borderRadius:"lg",position:"relative",h:"1020px",border:"4px solid white",boxShadow:"0 4px 20px rgba(0,0,0,0.3)",overflow:"hidden",children:[H.jsxDEV("svg",{style:{position:"absolute",width:"100%",height:"100%",top:0,left:0,pointerEvents:"none"},viewBox:"0 0 100 150",preserveAspectRatio:"none",children:[H.jsxDEV("line",{x1:"0",y1:"75",x2:"100",y2:"75",stroke:a,strokeWidth:"0.4"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/Pitch.tsx",lineNumber:36,columnNumber:9},this),H.jsxDEV("ellipse",{cx:"50",cy:"75",rx:"8",ry:"12",fill:"none",stroke:a,strokeWidth:"0.4"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/Pitch.tsx",lineNumber:39,columnNumber:9},this),H.jsxDEV("circle",{cx:"50",cy:"75",r:"1",fill:a},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/Pitch.tsx",lineNumber:40,columnNumber:9},this),H.jsxDEV("rect",{x:"20",y:"0",width:"60",height:"24",fill:"none",stroke:a,strokeWidth:"0.4"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/Pitch.tsx",lineNumber:43,columnNumber:9},this),H.jsxDEV("rect",{x:"32",y:"0",width:"36",height:"9",fill:"none",stroke:a,strokeWidth:"0.4"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/Pitch.tsx",lineNumber:45,columnNumber:9},this),H.jsxDEV("rect",{x:"40",y:"0",width:"20",height:"2",fill:"rgba(255,255,255,0.3)",stroke:a,strokeWidth:"0.4"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/Pitch.tsx",lineNumber:47,columnNumber:9},this),H.jsxDEV("path",{d:"M 35 24 Q 50 35 65 24",fill:"none",stroke:a,strokeWidth:"0.4"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/Pitch.tsx",lineNumber:49,columnNumber:9},this),H.jsxDEV("circle",{cx:"50",cy:"18",r:"1",fill:a},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/Pitch.tsx",lineNumber:51,columnNumber:9},this),H.jsxDEV("rect",{x:"20",y:"126",width:"60",height:"24",fill:"none",stroke:a,strokeWidth:"0.4"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/Pitch.tsx",lineNumber:54,columnNumber:9},this),H.jsxDEV("rect",{x:"32",y:"141",width:"36",height:"9",fill:"none",stroke:a,strokeWidth:"0.4"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/Pitch.tsx",lineNumber:56,columnNumber:9},this),H.jsxDEV("rect",{x:"40",y:"148",width:"20",height:"2",fill:"rgba(255,255,255,0.3)",stroke:a,strokeWidth:"0.4"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/Pitch.tsx",lineNumber:58,columnNumber:9},this),H.jsxDEV("path",{d:"M 35 126 Q 50 115 65 126",fill:"none",stroke:a,strokeWidth:"0.4"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/Pitch.tsx",lineNumber:60,columnNumber:9},this),H.jsxDEV("circle",{cx:"50",cy:"132",r:"1",fill:a},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/Pitch.tsx",lineNumber:62,columnNumber:9},this),H.jsxDEV("path",{d:"M 0 4 Q 4 4 4 0",fill:"none",stroke:a,strokeWidth:"0.4"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/Pitch.tsx",lineNumber:65,columnNumber:9},this),H.jsxDEV("path",{d:"M 96 0 Q 96 4 100 4",fill:"none",stroke:a,strokeWidth:"0.4"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/Pitch.tsx",lineNumber:66,columnNumber:9},this),H.jsxDEV("path",{d:"M 0 146 Q 4 146 4 150",fill:"none",stroke:a,strokeWidth:"0.4"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/Pitch.tsx",lineNumber:67,columnNumber:9},this),H.jsxDEV("path",{d:"M 96 150 Q 96 146 100 146",fill:"none",stroke:a,strokeWidth:"0.4"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/Pitch.tsx",lineNumber:68,columnNumber:9},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/Pitch.tsx",lineNumber:23,columnNumber:7},this),H.jsxDEV(Dr,{position:"absolute",inset:0,zIndex:1,children:e},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/Pitch.tsx",lineNumber:71,columnNumber:7},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/Pitch.tsx",lineNumber:13,columnNumber:5},this)}function foe({player:e}){const{setNodeRef:t}=F2({id:e.id}),{attributes:a,listeners:i,setNodeRef:s,isDragging:u}=$T({id:e.id});return H.jsxDEV(Dr,{ref:t,children:H.jsxDEV(Dr,{ref:s,...i,...a,opacity:u?.5:1,children:H.jsxDEV(zT,{player:e},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SubstituteSlot.tsx",lineNumber:27,columnNumber:9},this)},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SubstituteSlot.tsx",lineNumber:21,columnNumber:7},this)},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SubstituteSlot.tsx",lineNumber:20,columnNumber:5},this)}function hoe({onDismiss:e}){const t=da("gray.100","gray.700"),a=da("gray.300","gray.600");return H.jsxDEV(Dr,{bg:t,border:"2px dashed",borderColor:a,borderRadius:"md",p:2,minW:"80px",textAlign:"center",boxShadow:"md",sx:{"@keyframes pulse":{"0%, 100%":{opacity:.6},"50%":{opacity:1}},animation:"pulse 1.5s ease-in-out infinite"},children:H.jsxDEV(Jo,{spacing:1,children:H.jsxDEV(Kl,{width:"100%",justify:"center",position:"relative",children:[H.jsxDEV(Jo,{spacing:1,flex:1,children:[H.jsxDEV(Vv,{height:"28px",width:"40px",borderRadius:"md"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/GhostPlayerCard.tsx",lineNumber:32,columnNumber:13},this),H.jsxDEV(Vv,{height:"12px",width:"60px",borderRadius:"md"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/GhostPlayerCard.tsx",lineNumber:33,columnNumber:13},this),H.jsxDEV(Vv,{height:"10px",width:"50px",borderRadius:"md"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/GhostPlayerCard.tsx",lineNumber:34,columnNumber:13},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/GhostPlayerCard.tsx",lineNumber:31,columnNumber:11},this),e&&H.jsxDEV(Ea,{size:"xs",variant:"ghost",colorScheme:"red",onClick:e,padding:"0",minWidth:"auto",height:"auto",fontSize:"16px",_hover:{bg:"transparent"},children:"×"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/GhostPlayerCard.tsx",lineNumber:37,columnNumber:13},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/GhostPlayerCard.tsx",lineNumber:30,columnNumber:9},this)},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/GhostPlayerCard.tsx",lineNumber:29,columnNumber:7},this)},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/GhostPlayerCard.tsx",lineNumber:12,columnNumber:5},this)}function B2(e){const t=e.toLowerCase();return t.includes("goalkeeper")||t==="gk"?"GK":t.includes("defender")||t.includes("defence")?"DEF":t.includes("midfielder")||t.includes("midfield")?"MID":t.includes("forward")||t.includes("striker")||t.includes("attacker")?"FWD":"MID"}function poe({substitutes:e,players:t,hailer:a,onPlayerCreated:i,registerSignalCallback:s}){const u=Bg(),[c,f]=w.useState(!1),h=da("white","gray.700"),m=da("gray.200","gray.600"),v=da("gray.50","gray.800"),y=da("gray.100","gray.600"),x=w.useRef(null),S=e.map(_=>t.find(N=>N.id===_)).filter(_=>_!==void 0),R={GK:[],DEF:[],MID:[],FWD:[]};S.forEach(_=>{const N=B2(_.position);R[N].push(_)});const E={GK:"Goalkeeper",DEF:"Defender",MID:"Midfielder",FWD:"Forward"},k=async()=>{if(!a){u({description:"Hailer SDK not available",status:"error",isClosable:!0});return}if(!a.ui||!a.ui.activity||typeof a.ui.activity.create!="function"){u({description:"Player creation feature not available",status:"error",isClosable:!0});return}if(!s){u({description:"Signal handling not available",status:"error",isClosable:!0});return}f(!0);const _="691ffdf84217e9e8434e5693",N=s($=>{var L;$.sig==="activity.create"&&((L=$.meta)==null?void 0:L.workflowId)===_&&(u({description:"Player created",status:"success",isClosable:!0}),i&&i(),f(!1),N(),x.current=null)});x.current=N;try{a.ui.activity.create(_).catch(()=>{})}catch{u({description:"Failed to open player creation",status:"error",isClosable:!0}),f(!1),N(),x.current=null}},O=()=>{f(!1),x.current&&(x.current(),x.current=null)};return w.useEffect(()=>()=>{x.current&&(x.current(),x.current=null)},[]),H.jsxDEV(Dr,{bg:h,borderRadius:"lg",border:"1px solid",borderColor:m,w:"280px",h:"1020px",overflow:"auto",boxShadow:"0 4px 12px rgba(0,0,0,0.2)",children:[H.jsxDEV(Dr,{bg:v,p:3,borderTopRadius:"lg",children:H.jsxDEV(Jo,{spacing:2,children:[H.jsxDEV(Zr,{fontWeight:"bold",fontSize:"lg",textAlign:"center",children:"Substitutes Bench"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SubstitutesPanel.tsx",lineNumber:172,columnNumber:11},this),a&&H.jsxDEV(Ea,{size:"sm",colorScheme:"blue",onClick:k,isLoading:c,loadingText:"Creating...",width:"full",children:"+ Add Player"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SubstitutesPanel.tsx",lineNumber:176,columnNumber:13},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SubstitutesPanel.tsx",lineNumber:171,columnNumber:9},this)},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SubstitutesPanel.tsx",lineNumber:170,columnNumber:7},this),H.jsxDEV(ej,{allowMultiple:!0,defaultIndex:[],children:Object.entries(E).map(([_,N])=>{const $=R[_],L=$.length;return H.jsxDEV(rj,{border:"none",children:[H.jsxDEV(tj,{_hover:{bg:y},py:3,children:[H.jsxDEV(Dr,{flex:"1",textAlign:"left",children:H.jsxDEV(Zr,{fontWeight:"semibold",children:[N," (",L,")"]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SubstitutesPanel.tsx",lineNumber:202,columnNumber:19},this)},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SubstitutesPanel.tsx",lineNumber:201,columnNumber:17},this),H.jsxDEV(nj,{},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SubstitutesPanel.tsx",lineNumber:206,columnNumber:17},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SubstitutesPanel.tsx",lineNumber:197,columnNumber:15},this),H.jsxDEV(ij,{pb:3,children:H.jsxDEV(Jo,{spacing:2,align:"stretch",children:[c&&_==="FWD"&&H.jsxDEV(hoe,{onDismiss:O},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SubstitutesPanel.tsx",lineNumber:210,columnNumber:52},this),$.map(I=>H.jsxDEV(foe,{player:I},I.id,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SubstitutesPanel.tsx",lineNumber:212,columnNumber:21},this)),L===0&&!c&&H.jsxDEV(Zr,{fontSize:"sm",color:"gray.500",textAlign:"center",children:"No substitutes"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SubstitutesPanel.tsx",lineNumber:215,columnNumber:21},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SubstitutesPanel.tsx",lineNumber:209,columnNumber:17},this)},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SubstitutesPanel.tsx",lineNumber:208,columnNumber:15},this)]},_,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SubstitutesPanel.tsx",lineNumber:196,columnNumber:13},this)})},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SubstitutesPanel.tsx",lineNumber:190,columnNumber:7},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SubstitutesPanel.tsx",lineNumber:160,columnNumber:5},this)}function moe({width:e,height:t,drawMode:a,drawType:i,drawings:s,lineup:u,ballPosition:c,isPlaying:f,onAddDrawing:h,onDeleteDrawing:m,onPlayerClick:v}){const y=w.useRef(null),[x,S]=w.useState(!1),[R,E]=w.useState([]),[k,O]=w.useState(null),[_,N]=w.useState(0),[$,L]=w.useState(null),I=w.useCallback(K=>{const Y=y.current;if(!Y)return{x:0,y:0};const G=Y.getBoundingClientRect(),ve=(K.clientX-G.left)/G.width*100,te=(K.clientY-G.top)/G.height*100;return{x:ve,y:te}},[]),F=w.useCallback((K,Y,G,ve,te,pe,Me=1)=>{var ut,Et;const Ne=(((ut=y.current)==null?void 0:ut.width)||e)/100,Pe=(((Et=y.current)==null?void 0:Et.height)||t)/100;K.save(),K.globalAlpha=Me,K.strokeStyle=pe,K.fillStyle=pe,K.lineWidth=3;const ht=Y*Ne,mt=G*Pe,gt=ve*Ne,it=te*Pe;K.beginPath(),K.moveTo(ht,mt),K.lineTo(gt,it),K.stroke();const jt=Math.atan2(it-mt,gt-ht),be=15;K.beginPath(),K.moveTo(gt,it),K.lineTo(gt-be*Math.cos(jt-Math.PI/6),it-be*Math.sin(jt-Math.PI/6)),K.lineTo(gt-be*Math.cos(jt+Math.PI/6),it-be*Math.sin(jt+Math.PI/6)),K.closePath(),K.fill(),K.restore()},[e,t]),Q=w.useCallback((K,Y,G,ve=1)=>{var Me,Ne;if(Y.length<2)return;const te=(((Me=y.current)==null?void 0:Me.width)||e)/100,pe=(((Ne=y.current)==null?void 0:Ne.height)||t)/100;K.save(),K.globalAlpha=ve,K.strokeStyle=G,K.lineWidth=3,K.lineCap="round",K.lineJoin="round",K.setLineDash([5,5]),K.beginPath(),K.moveTo(Y[0].x*te,Y[0].y*pe);for(let Pe=1;Pe<Y.length;Pe++)K.lineTo(Y[Pe].x*te,Y[Pe].y*pe);K.stroke(),K.restore()},[e,t]),le=w.useCallback(()=>{const K=y.current;if(!K)return;const Y=K.getContext("2d");if(!Y)return;const G=K.width/100,ve=K.height/100;if(Y.clearRect(0,0,K.width,K.height),k&&a)if(k==="ball")Y.save(),Y.strokeStyle="#ffd43b",Y.lineWidth=4,Y.setLineDash([8,4]),Y.beginPath(),Y.arc(c.x*G,c.y*ve,30,0,Math.PI*2),Y.stroke(),Y.restore();else{const te=u.find(pe=>pe.playerId===k);te&&(Y.save(),Y.strokeStyle="#ffd43b",Y.lineWidth=4,Y.setLineDash([8,4]),Y.beginPath(),Y.arc(te.x*G,te.y*ve,50,0,Math.PI*2),Y.stroke(),Y.restore())}if(s.forEach((te,pe)=>{const Me=i==="delete"&&($==null?void 0:$.id)===te.id,Ne=Me?"#ffd43b":te.color,Pe=Me?8:3,ht=f?Math.min(1,Math.max(0,_*s.length-pe)):1;te.type==="arrow"&&te.endX!==void 0&&te.endY!==void 0?(Y.save(),Me&&(Y.shadowColor="#ffd43b",Y.shadowBlur=10),Y.lineWidth=Pe,F(Y,te.startX,te.startY,te.endX,te.endY,Ne,ht),Y.restore(),te.step>1&&(Y.save(),Y.fillStyle=te.color,Y.font="bold 16px sans-serif",Y.fillText(`${te.step}`,te.startX*G-10,te.startY*ve-10),Y.restore())):te.type==="path"&&te.points&&te.points.length>1?(Y.save(),Me&&(Y.shadowColor="#ffd43b",Y.shadowBlur=10),Y.lineWidth=Pe,Q(Y,te.points,Ne,ht),Y.restore(),te.step>1&&(Y.save(),Y.fillStyle=te.color,Y.font="bold 16px sans-serif",Y.fillText(`${te.step}`,te.points[0].x*G-10,te.points[0].y*ve-10),Y.restore())):te.type==="pass"&&te.endX!==void 0&&te.endY!==void 0&&(Y.save(),Me&&(Y.shadowColor="#ffd43b",Y.shadowBlur=10),Y.lineWidth=Pe,F(Y,te.startX,te.startY,te.endX,te.endY,Ne,ht),Y.restore(),te.step>1&&(Y.save(),Y.fillStyle=te.color,Y.font="bold 16px sans-serif",Y.fillText(`${te.step}`,te.startX*G-10,te.startY*ve-10),Y.restore()))}),x&&R.length>0){let te="#3b82f6";i==="pass"&&(te="#ffa94d"),(i==="arrow"||i==="pass")&&R.length===2?F(Y,R[0].x,R[0].y,R[1].x,R[1].y,te):i==="path"&&R.length>1&&Q(Y,R,te)}},[s,R,x,i,f,_,F,Q,k,a,u,$,c]);w.useEffect(()=>{le()},[le,c]),w.useEffect(()=>{if(f){let K=0;const Y=60,G=()=>{K++,N(K/Y),K<Y?requestAnimationFrame(G):N(0)};requestAnimationFrame(G)}else N(0)},[f]);const re=K=>u.find(Y=>{if(!Y.playerId)return!1;const G=Math.abs(Y.x-K.x),ve=Math.abs(Y.y-K.y);return G<8&&ve<6}),de=K=>{const Y=Math.abs(c.x-K.x),G=Math.abs(c.y-K.y);return Y<5&&G<5},Ke=K=>{for(const G of s)if((G.type==="arrow"||G.type==="pass")&&G.endX!==void 0&&G.endY!==void 0){if(Math.sqrt(Math.pow(K.x-G.endX,2)+Math.pow(K.y-G.endY,2))<8)return{drawing:G,step:G.step}}else if(G.type==="path"&&G.points&&G.points.length>0){const ve=G.points[G.points.length-1];if(Math.sqrt(Math.pow(K.x-ve.x,2)+Math.pow(K.y-ve.y,2))<8)return{drawing:G,step:G.step}}return null},q=K=>{for(const G of s)if(G.type==="arrow"||G.type==="pass"){if(G.endX!==void 0&&G.endY!==void 0){const ve=Math.sqrt(Math.pow(K.x-G.startX,2)+Math.pow(K.y-G.startY,2)),te=Math.sqrt(Math.pow(K.x-G.endX,2)+Math.pow(K.y-G.endY,2));if(ve<8||te<8)return G;const pe=G.endX-G.startX,Me=G.endY-G.startY,Ne=Math.sqrt(pe*pe+Me*Me),Pe=((K.x-G.startX)*pe+(K.y-G.startY)*Me)/(Ne*Ne);if(Pe>=0&&Pe<=1){const ht=G.startX+Pe*pe,mt=G.startY+Pe*Me;if(Math.sqrt(Math.pow(K.x-ht,2)+Math.pow(K.y-mt,2))<8)return G}}}else if(G.type==="path"&&G.points&&G.points.length>1){for(const ve of G.points)if(Math.sqrt(Math.pow(K.x-ve.x,2)+Math.pow(K.y-ve.y,2))<8)return G;for(let ve=0;ve<G.points.length-1;ve++){const te=G.points[ve],pe=G.points[ve+1],Me=pe.x-te.x,Ne=pe.y-te.y,Pe=Math.sqrt(Me*Me+Ne*Ne);if(Pe===0)continue;const ht=((K.x-te.x)*Me+(K.y-te.y)*Ne)/(Pe*Pe);if(ht>=0&&ht<=1){const mt=te.x+ht*Me,gt=te.y+ht*Ne;if(Math.sqrt(Math.pow(K.x-mt,2)+Math.pow(K.y-gt,2))<8)return G}}}return null},ue=K=>{if(!a||!i)return;const Y=I(K);if(i==="delete"){const ve=q(Y);ve&&m(ve.id);return}const G=Ke(Y);if(G){const ve=G.drawing.endX!==void 0&&G.drawing.endY!==void 0?{x:G.drawing.endX,y:G.drawing.endY}:G.drawing.points&&G.drawing.points.length>0?G.drawing.points[G.drawing.points.length-1]:Y;if(i==="arrow"||i==="path"){let te=G.drawing.playerId;if(!te&&G.drawing.type==="pass"){const pe=re(ve);pe!=null&&pe.playerId&&(te=pe.playerId)}if(te){O(te),S(!0),E([ve]),K.currentTarget.chainStep=G.step+1,v&&v(te);return}}if(i==="pass"){let te;if(G.drawing.type==="pass")te="ball";else{const pe=re(ve);te=(pe==null?void 0:pe.playerId)||G.drawing.playerId}O(te||null),S(!0),E([ve]),K.currentTarget.chainStep=G.step+1;return}}if(i==="pass"){const ve=re(Y);ve&&ve.playerId&&(O(ve.playerId),S(!0),E([{x:ve.x,y:ve.y}]),v&&v(ve.playerId));return}if(i==="arrow"||i==="path"){const ve=re(Y);ve&&ve.playerId&&(O(ve.playerId),S(!0),E([{x:ve.x,y:ve.y}]),v&&v(ve.playerId));return}if(de(Y)){if(i==="pass"){O("ball"),S(!0),E([{x:c.x,y:c.y}]);return}return}},Ee=K=>{if(!a||!i)return;const Y=I(K);if(i==="delete"){const G=q(Y);L(G);return}x&&(i==="arrow"||i==="pass"?E([R[0],Y]):i==="path"&&E([...R,Y]))},we=K=>{if(!x||!a||!i)return;const Y=K.currentTarget.chainStep||1;if(delete K.currentTarget.chainStep,i==="arrow"&&R.length===2){const G={id:`drawing-${Date.now()}`,type:"arrow",startX:R[0].x,startY:R[0].y,endX:R[1].x,endY:R[1].y,playerId:k||void 0,color:"#3b82f6",step:Y};h(G)}else if(i==="pass"&&R.length===2){const G={id:`drawing-${Date.now()}`,type:"pass",startX:R[0].x,startY:R[0].y,endX:R[1].x,endY:R[1].y,passerId:k||void 0,color:"#ffa94d",step:Y};h(G)}else if(i==="path"&&R.length>1){const G={id:`drawing-${Date.now()}`,type:"path",startX:R[0].x,startY:R[0].y,points:R,playerId:k||void 0,color:"#51cf66",step:Y};h(G)}S(!1),E([]),O(null)},oe=K=>{if(!a)return;const Y=I(K),G=u.find(ve=>{const te=Math.abs(ve.x-Y.x),pe=Math.abs(ve.y-Y.y);return te<5&&pe<5});G&&G.playerId&&(O(G.playerId),v&&v(G.playerId))};return H.jsxDEV(Dr,{position:"absolute",inset:0,pointerEvents:a?"auto":"none",children:H.jsxDEV("canvas",{ref:y,width:e,height:t,style:{width:"100%",height:"100%",cursor:a?i==="delete"?"not-allowed":"crosshair":"default"},onMouseDown:ue,onMouseMove:Ee,onMouseUp:we,onClick:oe},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/TacticsCanvas.tsx",lineNumber:559,columnNumber:7},this)},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/TacticsCanvas.tsx",lineNumber:558,columnNumber:5},this)}const voe=qte({displayName:"HailerTrash",viewBox:"0 0 24 24",path:[H.jsxDEV("path",{d:"M19.0947 9.4675C19.0947 9.4675 18.5517 16.2025 18.2367 19.0395C18.0867 20.3945 17.2497 21.1885 15.8787 21.2135C13.2697 21.2605 10.6577 21.2635 8.04972 21.2085C6.73072 21.1815 5.90772 20.3775 5.76072 19.0465C5.44372 16.1845 4.90372 9.4675 4.90372 9.4675M20.478 6.239H3.52002M17.2104 6.239C16.4254 6.239 15.7494 5.684 15.5954 4.915L15.3524 3.699C15.2024 3.138 14.6944 2.75 14.1154 2.75H9.88242C9.30342 2.75 8.79542 3.138 8.64542 3.699L8.40242 4.915C8.24842 5.684 7.57242 6.239 6.78742 6.239",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"none"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/hailerTheme/hailerIcons/HailerTrash.tsx",lineNumber:8,columnNumber:9},globalThis)]});function goe({drawMode:e,drawType:t,isPlaying:a,onToggleDrawMode:i,onSetDrawType:s,onClear:u,onPlay:c,onSave:f,onLoad:h}){const m=da("white","gray.700"),v=da("gray.200","gray.600");return H.jsxDEV(Kl,{spacing:2,p:3,bg:m,borderRadius:"md",border:"1px solid",borderColor:v,boxShadow:"sm",children:[H.jsxDEV(Ji,{label:"Toggle draw mode",children:H.jsxDEV(Ea,{size:"sm",colorScheme:e?"blue":"gray",onClick:i,children:e?"Exit Draw Mode":"Draw Mode"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/TacticsToolbar.tsx",lineNumber:41,columnNumber:9},this)},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/TacticsToolbar.tsx",lineNumber:40,columnNumber:7},this),e&&H.jsxDEV(H.Fragment,{children:[H.jsxDEV(Zr,{fontSize:"sm",color:"gray.500",children:"|"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/TacticsToolbar.tsx",lineNumber:52,columnNumber:11},this),H.jsxDEV(Ji,{label:"Draw arrows",children:H.jsxDEV(Kf,{"aria-label":"Draw arrow",icon:H.jsxDEV(Zr,{fontSize:"lg",children:"→"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/TacticsToolbar.tsx",lineNumber:56,columnNumber:21},this),size:"sm",colorScheme:t==="arrow"?"green":"gray",onClick:()=>s(t==="arrow"?null:"arrow")},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/TacticsToolbar.tsx",lineNumber:54,columnNumber:13},this)},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/TacticsToolbar.tsx",lineNumber:53,columnNumber:11},this),H.jsxDEV(Ji,{label:"Draw paths",children:H.jsxDEV(Kf,{"aria-label":"Draw path",icon:H.jsxDEV(Zr,{fontSize:"lg",children:"∿"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/TacticsToolbar.tsx",lineNumber:66,columnNumber:21},this),size:"sm",colorScheme:t==="path"?"green":"gray",onClick:()=>s(t==="path"?null:"path")},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/TacticsToolbar.tsx",lineNumber:64,columnNumber:13},this)},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/TacticsToolbar.tsx",lineNumber:63,columnNumber:11},this),H.jsxDEV(Ji,{label:"Draw pass",children:H.jsxDEV(Kf,{"aria-label":"Draw pass",icon:H.jsxDEV(Zr,{fontSize:"lg",children:"⚽"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/TacticsToolbar.tsx",lineNumber:76,columnNumber:21},this),size:"sm",colorScheme:t==="pass"?"orange":"gray",onClick:()=>s(t==="pass"?null:"pass")},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/TacticsToolbar.tsx",lineNumber:74,columnNumber:13},this)},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/TacticsToolbar.tsx",lineNumber:73,columnNumber:11},this),H.jsxDEV(Ji,{label:"Delete - Click drawings to remove them precisely",children:H.jsxDEV(Kf,{"aria-label":"Delete mode",icon:H.jsxDEV(voe,{boxSize:4},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/TacticsToolbar.tsx",lineNumber:86,columnNumber:21},this),size:"sm",colorScheme:t==="delete"?"red":"gray",onClick:()=>s(t==="delete"?null:"delete")},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/TacticsToolbar.tsx",lineNumber:84,columnNumber:13},this)},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/TacticsToolbar.tsx",lineNumber:83,columnNumber:11},this),H.jsxDEV(Ji,{label:"Clear all drawings",children:H.jsxDEV(Ea,{size:"sm",colorScheme:"red",variant:"outline",onClick:u,children:"Clear"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/TacticsToolbar.tsx",lineNumber:94,columnNumber:13},this)},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/TacticsToolbar.tsx",lineNumber:93,columnNumber:11},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/TacticsToolbar.tsx",lineNumber:51,columnNumber:9},this),H.jsxDEV(Zr,{fontSize:"sm",color:"gray.500",children:"|"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/TacticsToolbar.tsx",lineNumber:101,columnNumber:7},this),H.jsxDEV(Ji,{label:"Play animation",children:H.jsxDEV(Ea,{size:"sm",colorScheme:"purple",onClick:c,isDisabled:a,children:a?"Playing...":"Play"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/TacticsToolbar.tsx",lineNumber:104,columnNumber:9},this)},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/TacticsToolbar.tsx",lineNumber:103,columnNumber:7},this),H.jsxDEV(Ji,{label:"Save tactic",children:H.jsxDEV(Ea,{size:"sm",colorScheme:"green",onClick:f,children:"Save"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/TacticsToolbar.tsx",lineNumber:115,columnNumber:9},this)},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/TacticsToolbar.tsx",lineNumber:114,columnNumber:7},this),H.jsxDEV(Ji,{label:"Load tactic",children:H.jsxDEV(Ea,{size:"sm",colorScheme:"teal",variant:"outline",onClick:h,children:"Load"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/TacticsToolbar.tsx",lineNumber:121,columnNumber:9},this)},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/TacticsToolbar.tsx",lineNumber:120,columnNumber:7},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/TacticsToolbar.tsx",lineNumber:31,columnNumber:5},this)}function yoe({x:e,y:t,animatedX:a,animatedY:i,isAnimating:s}){const{attributes:u,listeners:c,setNodeRef:f,isDragging:h,transform:m}=$T({id:"ball",data:{x:e,y:t}}),{displayX:v,displayY:y}=w.useMemo(()=>s&&a!==void 0&&i!==void 0?{displayX:a,displayY:i}:{displayX:e,displayY:t},[e,t,a,i,s]);return H.jsxDEV(Dr,{ref:f,...c,...u,position:"absolute",left:h&&m?`calc(${v}% + ${m.x}px)`:`${v}%`,top:h&&m?`calc(${y}% + ${m.y}px)`:`${y}%`,transform:"translate(-50%, -50%)",fontSize:"32px",cursor:h?"grabbing":"grab",opacity:h?.5:1,zIndex:h?0:2,transition:s||h?"none":"left 0.2s ease-out, top 0.2s ease-out",willChange:h?"transform":"auto",userSelect:"none",children:"⚽"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/Ball.tsx",lineNumber:31,columnNumber:5},this)}function boe({isOpen:e,onClose:t,hailer:a,formation:i,drawings:s,ballPosition:u}){const[c,f]=w.useState(""),[h,m]=w.useState("Attack"),[v,y]=w.useState(""),[x,S]=w.useState(""),[R,E]=w.useState("draft"),[k,O]=w.useState(!1),_=Bg(),N=async()=>{if(!c.trim()){_({description:"Please enter a tactic name",status:"warning"});return}O(!0);try{const $=JSON.stringify({formation:i,drawings:s,ballPosition:u,version:1}),L=R==="active"?V2:I2;await a.activity.create(Xw,[{name:c.trim(),phaseId:L,fields:{[ai.tacticName]:c.trim(),[ai.formation]:i,[ai.category]:h,[ai.setPieceType]:v||"",[ai.description]:x||"",[ai.tacticData]:$}}]),_({description:"Tactic saved successfully",status:"success"}),t(),f(""),S("")}catch($){console.error("Failed to save tactic:",$),_({description:"Failed to save tactic",status:"error"})}finally{O(!1)}};return H.jsxDEV(jg,{isOpen:e,onClose:t,children:[H.jsxDEV(Vg,{},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:93,columnNumber:7},this),H.jsxDEV($g,{children:[H.jsxDEV(Ig,{children:"Save Tactic"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:95,columnNumber:9},this),H.jsxDEV(Fg,{},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:96,columnNumber:9},this),H.jsxDEV(zg,{children:H.jsxDEV(Jo,{spacing:4,children:[H.jsxDEV(ou,{isRequired:!0,children:[H.jsxDEV(lu,{children:"Tactic Name"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:100,columnNumber:15},this),H.jsxDEV(yT,{value:c,onChange:$=>f($.target.value),placeholder:"e.g., Counter Attack Left Wing"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:101,columnNumber:15},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:99,columnNumber:13},this),H.jsxDEV(ou,{children:[H.jsxDEV(lu,{children:"Save as"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:109,columnNumber:15},this),H.jsxDEV(dh,{value:R,onChange:$=>E($.target.value),children:[H.jsxDEV("option",{value:"draft",children:"Draft (work in progress)"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:111,columnNumber:17},this),H.jsxDEV("option",{value:"active",children:"Active (ready to use)"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:112,columnNumber:17},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:110,columnNumber:15},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:108,columnNumber:13},this),H.jsxDEV(ou,{children:[H.jsxDEV(lu,{children:"Category"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:117,columnNumber:15},this),H.jsxDEV(dh,{value:h,onChange:$=>m($.target.value),children:[H.jsxDEV("option",{value:"Attack",children:"Attack"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:119,columnNumber:17},this),H.jsxDEV("option",{value:"Defense",children:"Defense"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:120,columnNumber:17},this),H.jsxDEV("option",{value:"Set Piece",children:"Set Piece"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:121,columnNumber:17},this),H.jsxDEV("option",{value:"Transition",children:"Transition"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:122,columnNumber:17},this),H.jsxDEV("option",{value:"Pressing",children:"Pressing"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:123,columnNumber:17},this),H.jsxDEV("option",{value:"Build-up",children:"Build-up"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:124,columnNumber:17},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:118,columnNumber:15},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:116,columnNumber:13},this),h==="Set Piece"&&H.jsxDEV(ou,{children:[H.jsxDEV(lu,{children:"Set Piece Type"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:130,columnNumber:17},this),H.jsxDEV(dh,{value:v,onChange:$=>y($.target.value),children:[H.jsxDEV("option",{value:"",children:"Select type..."},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:132,columnNumber:19},this),H.jsxDEV("option",{value:"Corner Kick",children:"Corner Kick"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:133,columnNumber:19},this),H.jsxDEV("option",{value:"Free Kick",children:"Free Kick"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:134,columnNumber:19},this),H.jsxDEV("option",{value:"Penalty",children:"Penalty"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:135,columnNumber:19},this),H.jsxDEV("option",{value:"Throw-in",children:"Throw-in"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:136,columnNumber:19},this),H.jsxDEV("option",{value:"Goal Kick",children:"Goal Kick"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:137,columnNumber:19},this),H.jsxDEV("option",{value:"Kick-off",children:"Kick-off"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:138,columnNumber:19},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:131,columnNumber:17},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:129,columnNumber:15},this),H.jsxDEV(ou,{children:[H.jsxDEV(lu,{children:"Description"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:144,columnNumber:15},this),H.jsxDEV(DT,{value:x,onChange:$=>S($.target.value),placeholder:"Describe the tactic...",rows:3},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:145,columnNumber:15},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:143,columnNumber:13},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:98,columnNumber:11},this)},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:97,columnNumber:9},this),H.jsxDEV(RT,{children:[H.jsxDEV(Ea,{variant:"ghost",mr:3,onClick:t,children:"Cancel"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:156,columnNumber:11},this),H.jsxDEV(Ea,{colorScheme:"blue",onClick:N,isLoading:k,children:"Save Tactic"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:159,columnNumber:11},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:155,columnNumber:9},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:94,columnNumber:7},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:92,columnNumber:5},this)}function xoe({isOpen:e,onClose:t,hailer:a,onLoad:i}){const[s,u]=w.useState([]),[c,f]=w.useState(!1),h=da("white","gray.700"),m=da("gray.50","gray.600");w.useEffect(()=>{e&&a&&v()},[e,a]);const v=async()=>{var S,R,E,k,O,_;f(!0);try{const[N,$]=await Promise.all([a.activity.list(Xw,I2,{limit:100}),a.activity.list(Xw,V2,{limit:100})]),L=[...N,...$],I=[];for(const F of L){const Q=F.fields;if(!Q)continue;const le=(S=Q[ai.tacticData])==null?void 0:S.value;if(le)try{const re=JSON.parse(le);I.push({_id:F._id,name:F.name||((R=Q[ai.tacticName])==null?void 0:R.value)||"Unnamed",category:((E=Q[ai.category])==null?void 0:E.value)||"Attack",setPieceType:((k=Q[ai.setPieceType])==null?void 0:k.value)||void 0,formation:((O=Q[ai.formation])==null?void 0:O.value)||re.formation,description:((_=Q[ai.description])==null?void 0:_.value)||void 0,tacticData:re})}catch{}}u(I)}catch(N){console.error("Failed to load tactics:",N)}finally{f(!1)}},y=S=>{i(S),t()},x=S=>{switch(S){case"Attack":return"red";case"Defense":return"blue";case"Set Piece":return"purple";case"Transition":return"orange";case"Pressing":return"yellow";case"Build-up":return"green";default:return"gray"}};return H.jsxDEV(jg,{isOpen:e,onClose:t,size:"lg",children:[H.jsxDEV(Vg,{},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/LoadTacticModal.tsx",lineNumber:124,columnNumber:7},this),H.jsxDEV($g,{maxH:"80vh",children:[H.jsxDEV(Ig,{children:"Load Tactic"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/LoadTacticModal.tsx",lineNumber:126,columnNumber:9},this),H.jsxDEV(Fg,{},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/LoadTacticModal.tsx",lineNumber:127,columnNumber:9},this),H.jsxDEV(zg,{pb:6,overflowY:"auto",children:c?H.jsxDEV(og,{py:8,children:H.jsxDEV(Wh,{size:"lg"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/LoadTacticModal.tsx",lineNumber:131,columnNumber:15},this)},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/LoadTacticModal.tsx",lineNumber:130,columnNumber:13},this):s.length===0?H.jsxDEV(og,{py:8,children:H.jsxDEV(Zr,{color:"gray.500",children:"No saved tactics found"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/LoadTacticModal.tsx",lineNumber:135,columnNumber:15},this)},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/LoadTacticModal.tsx",lineNumber:134,columnNumber:13},this):H.jsxDEV(Jo,{spacing:3,align:"stretch",children:s.map(S=>H.jsxDEV(Dr,{p:4,bg:h,borderRadius:"md",border:"1px solid",borderColor:"gray.200",cursor:"pointer",_hover:{bg:m},onClick:()=>y(S),children:[H.jsxDEV(Kl,{justify:"space-between",mb:2,children:[H.jsxDEV(Zr,{fontWeight:"bold",children:S.name},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/LoadTacticModal.tsx",lineNumber:152,columnNumber:21},this),H.jsxDEV(Kl,{children:[H.jsxDEV($v,{colorScheme:x(S.category),children:S.category},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/LoadTacticModal.tsx",lineNumber:154,columnNumber:23},this),H.jsxDEV($v,{variant:"outline",children:S.formation},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/LoadTacticModal.tsx",lineNumber:157,columnNumber:23},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/LoadTacticModal.tsx",lineNumber:153,columnNumber:21},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/LoadTacticModal.tsx",lineNumber:151,columnNumber:19},this),S.setPieceType&&H.jsxDEV($v,{size:"sm",colorScheme:"purple",mb:2,children:S.setPieceType},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/LoadTacticModal.tsx",lineNumber:161,columnNumber:21},this),S.description&&H.jsxDEV(Zr,{fontSize:"sm",color:"gray.500",noOfLines:2,children:S.description},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/LoadTacticModal.tsx",lineNumber:166,columnNumber:21},this)]},S._id,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/LoadTacticModal.tsx",lineNumber:140,columnNumber:17},this))},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/LoadTacticModal.tsx",lineNumber:138,columnNumber:13},this)},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/LoadTacticModal.tsx",lineNumber:128,columnNumber:9},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/LoadTacticModal.tsx",lineNumber:125,columnNumber:7},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/LoadTacticModal.tsx",lineNumber:123,columnNumber:5},this)}const Soe="695bcbaf93c4d8dd5c0b0259",woe="695bcbaf93c4d8dd5c0b0257",Coe="695816e2ba1d8bef3af7e018",XO="Lineup Manager";function Toe({hailer:e}){const{isOpen:t,onOpen:a,onClose:i}=qv(),[s,u]=w.useState(""),[c,f]=w.useState(!1),h=Bg(),m=da("white","gray.700"),v=async()=>{if(!s.trim()){h({description:"Please enter a description",status:"warning",isClosable:!0});return}try{f(!0);const y=await e.user.current(),x=`${y.firstname} ${y.lastname}`.trim()||y.email||"Unknown User";await e.activity.create(Soe,[{name:`Bug Report - ${XO}`,phaseId:woe,fields:{appId:Coe,appName:XO,reportedBy:x,description:s.trim()}}]),h({description:"Bug report submitted successfully",status:"success",isClosable:!0}),u(""),i()}catch{h({description:"Failed to submit bug report",status:"error",isClosable:!0})}finally{f(!1)}};return H.jsxDEV(H.Fragment,{children:[H.jsxDEV(Ea,{size:"sm",colorScheme:"red",variant:"outline",onClick:a,children:"Report Bug"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/BugReportButton.tsx",lineNumber:83,columnNumber:7},this),H.jsxDEV(jg,{isOpen:t,onClose:i,children:[H.jsxDEV(Vg,{},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/BugReportButton.tsx",lineNumber:88,columnNumber:9},this),H.jsxDEV($g,{bg:m,children:[H.jsxDEV(Ig,{children:"Report a Bug"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/BugReportButton.tsx",lineNumber:90,columnNumber:11},this),H.jsxDEV(Fg,{},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/BugReportButton.tsx",lineNumber:91,columnNumber:11},this),H.jsxDEV(zg,{children:H.jsxDEV(DT,{value:s,onChange:y=>u(y.target.value),placeholder:"Describe the issue you encountered...",rows:6,resize:"vertical"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/BugReportButton.tsx",lineNumber:93,columnNumber:13},this)},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/BugReportButton.tsx",lineNumber:92,columnNumber:11},this),H.jsxDEV(RT,{children:[H.jsxDEV(Ea,{variant:"ghost",mr:3,onClick:i,isDisabled:c,children:"Cancel"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/BugReportButton.tsx",lineNumber:103,columnNumber:13},this),H.jsxDEV(Ea,{colorScheme:"red",onClick:v,isLoading:c,children:"Submit Report"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/BugReportButton.tsx",lineNumber:106,columnNumber:13},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/BugReportButton.tsx",lineNumber:102,columnNumber:11},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/BugReportButton.tsx",lineNumber:89,columnNumber:9},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/BugReportButton.tsx",lineNumber:87,columnNumber:7},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/BugReportButton.tsx",lineNumber:82,columnNumber:5},this)}function Eoe(){var on,un;const[e,t]=w.useState([]),a=$e=>{e.forEach(St=>St($e))},{hailer:i,inside:s,settings:u,config:c}=V3(void 0,a),{setColorMode:f}=Fh(),h=Bg(),{isOpen:m,onOpen:v,onClose:y}=qv(),{isOpen:x,onOpen:S,onClose:R}=qv(),[E,k]=w.useState([]),[O,_]=w.useState("4-3-3"),[N,$]=w.useState([]),[L,I]=w.useState([]),[F,Q]=w.useState(!0),[le,re]=w.useState(null),[de,Ke]=w.useState(!1),[q,ue]=w.useState(null),[Ee,we]=w.useState([]),[oe,K]=w.useState(!1),[Y,G]=w.useState({}),[ve,te]=w.useState({x:50,y:50}),[pe,Me]=w.useState(null),Ne=$e=>(t(St=>[...St,$e]),()=>{t(St=>St.filter(yt=>yt!==$e))}),Pe=Uae(Bae(jT,{activationConstraint:{distance:8}}));w.useEffect(()=>{u&&f(u.theme==="dark"?"dark":"light")},[u,f]),w.useEffect(()=>{i&&s&&c&&ht()},[i,s,c]),w.useEffect(()=>{E.length>0&&mt()},[O,E]);const ht=async()=>{if(i)try{Q(!0);const yt=(await i.activity.list(loe,coe,{limit:100})).map(_t=>{var _e,Oe,Qe,We;const Ge=_t.fields;if(!Ge)return null;const tt=(_e=Ge[yv.playerName])==null?void 0:_e.value,Ft=(Oe=Ge[yv.jerseyNumber])==null?void 0:Oe.value,At=(Qe=Ge[yv.position])==null?void 0:Qe.value,xe=(We=Ge[yv.nationality])==null?void 0:We.value;return!tt||!Ft||!At?null:{id:_t._id,name:tt,jerseyNumber:Ft,position:At,nationality:xe}}).filter(_t=>_t!==null).sort((_t,Ge)=>_t.jerseyNumber-Ge.jerseyNumber);k(yt),h({description:`Loaded ${yt.length} players`,status:"success",isClosable:!0})}catch{h({description:"Failed to load players",status:"error",isClosable:!0})}finally{Q(!1)}},mt=()=>{const $e=GO[O],St=new Set,yt={GK:[],DEF:[],MID:[],FWD:[]};E.forEach(tt=>{const Ft=B2(tt.position);yt[Ft].push(tt)});const _t=$e.positions.map(tt=>{const Ft=yt[tt.type].filter(At=>!St.has(At.id));if(Ft.length>0){const At=Ft[0];return St.add(At.id),{...tt,playerId:At.id}}return{...tt,playerId:null}}),Ge=E.filter(tt=>!St.has(tt.id)).map(tt=>tt.id);$(_t),I(Ge)},gt=$e=>{re($e.active.id)},it=$e=>{const{active:St,over:yt,delta:_t}=$e;re(null);const Ge=St.id;if(Ge==="ball"){if(_t){const Oe=document.querySelector('[data-pitch="true"]');if(Oe){const Qe=Oe.getBoundingClientRect(),We=_t.x/Qe.width*100,ot=_t.y/Qe.height*100,Ue=Math.max(2,Math.min(98,ve.x+We)),Vt=Math.max(2,Math.min(98,ve.y+ot));te({x:Ue,y:Vt})}}Me(null);return}if(!yt||St.id===yt.id)return;const tt=yt.id,Ft=N.findIndex(Oe=>Oe.playerId===Ge),At=L.indexOf(Ge),xe=N.findIndex(Oe=>Oe.playerId===tt),_e=L.indexOf(tt);if(Ft!==-1&&xe!==-1){const Oe=[...N];[Oe[Ft].playerId,Oe[xe].playerId]=[Oe[xe].playerId,Oe[Ft].playerId],$(Oe)}else if(Ft!==-1&&_e!==-1){const Oe=[...N],Qe=[...L];Oe[Ft].playerId=Qe[_e],Qe[_e]=Ge,$(Oe),I(Qe)}else if(At!==-1&&xe!==-1){const Oe=[...N],Qe=[...L],We=Oe[xe].playerId;We?Qe[At]=We:Qe.splice(At,1),Oe[xe].playerId=Ge,$(Oe),I(Qe)}else if(At!==-1&&_e!==-1){const Oe=[...L];[Oe[At],Oe[_e]]=[Oe[_e],Oe[At]],I(Oe)}},jt=()=>{Ke(!de),de&&ue(null)},be=$e=>{ue($e)},ut=$e=>{we([...Ee,$e])},Et=$e=>{we(Ee.filter(St=>St.id!==$e)),h({description:"Drawing deleted",status:"info",isClosable:!0})},Nt=($e,St)=>{Me({x:$e,y:St})},Pt=()=>{we([]),h({description:"Cleared all drawings",status:"info",isClosable:!0})},Ot=()=>{if(Ee.length===0){h({description:"No drawings to animate",status:"warning",isClosable:!0});return}K(!0),G({});const $e=Math.max(...Ee.map(At=>At.step)),St={};for(let At=1;At<=$e;At++)St[At]=Ee.filter(xe=>xe.step===At);const yt=1500;let _t=1;const Ge={};let tt=null;const Ft=()=>{if(_t>$e){setTimeout(()=>{K(!1),G({})},500);return}const At=St[_t],xe=Date.now(),_e=Ge.ball||ve;if(!tt){const Qe=N.find(We=>{if(!We.playerId)return!1;const ot=Ge[We.playerId]||{x:We.x,y:We.y},Ue=Math.abs(ot.x-_e.x),Vt=Math.abs(ot.y-_e.y);return Ue<10&&Vt<8});if(!Qe&&_t===1){const We=At.find(ot=>{if(!ot.playerId||ot.type!=="arrow"&&ot.type!=="path")return!1;const Ue=Math.abs(ot.startX-_e.x),Vt=Math.abs(ot.startY-_e.y);return Ue<10&&Vt<8});We!=null&&We.playerId&&(tt=We.playerId)}else Qe!=null&&Qe.playerId&&(tt=Qe.playerId)}const Oe=()=>{const Qe=Date.now()-xe,We=Math.min(Qe/yt,1),ot={...Ge};At.forEach(Ue=>{if(Ue.type==="pass"&&Ue.endX!==void 0&&Ue.endY!==void 0){if(ot.ball={x:Ue.startX+(Ue.endX-Ue.startX)*We,y:Ue.startY+(Ue.endY-Ue.startY)*We},We<1&&(tt=null),We===1){const Vt={x:Ue.endX,y:Ue.endY},kt=N.find(Cn=>{if(!Cn.playerId)return!1;const Ct=ot[Cn.playerId]||Ge[Cn.playerId]||{x:Cn.x,y:Cn.y},Ze=Math.abs(Ct.x-Vt.x),Kt=Math.abs(Ct.y-Vt.y);return Ze<10&&Kt<8});kt&&kt.playerId&&(tt=kt.playerId)}}else if(Ue.playerId){if(Ue.type==="arrow"&&Ue.endX!==void 0&&Ue.endY!==void 0){const Vt={x:Ue.startX+(Ue.endX-Ue.startX)*We,y:Ue.startY+(Ue.endY-Ue.startY)*We};ot[Ue.playerId]=Vt,tt===Ue.playerId&&(ot.ball=Vt)}else if(Ue.type==="path"&&Ue.points&&Ue.points.length>1){const Vt=Ue.points.length-1,kt=Math.min(Math.floor(We*Vt),Vt-1),Cn=We*Vt-kt,Ct=Ue.points[kt],Ze=Ue.points[kt+1]||Ct,Kt={x:Ct.x+(Ze.x-Ct.x)*Cn,y:Ct.y+(Ze.y-Ct.y)*Cn};ot[Ue.playerId]=Kt,tt===Ue.playerId&&(ot.ball=Kt)}}}),G(ot),We<1?requestAnimationFrame(Oe):(Object.assign(Ge,ot),_t++,setTimeout(Ft,300))};requestAnimationFrame(Oe)};Ft()},cn=()=>{if(Ee.length===0){h({description:"Draw some tactics before saving",status:"warning",isClosable:!0});return}v()},en=$e=>{_($e.tacticData.formation),we($e.tacticData.drawings),te($e.tacticData.ballPosition),h({description:"Tactic loaded",status:"success",isClosable:!0})},vt=E.find($e=>$e.id===le);return F?H.jsxDEV(og,{h:"100vh",children:H.jsxDEV(Wh,{size:"xl"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/App.tsx",lineNumber:496,columnNumber:9},this)},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/App.tsx",lineNumber:495,columnNumber:7},this):s?H.jsxDEV(Iie,{sensors:Pe,onDragStart:gt,onDragEnd:it,children:[H.jsxDEV(Aw,{maxW:"1400px",py:4,children:H.jsxDEV(Jo,{spacing:4,align:"stretch",children:[H.jsxDEV(Kl,{justify:"space-between",align:"center",children:[H.jsxDEV(Ww,{size:"lg",children:"Lineup Manager"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/App.tsx",lineNumber:516,columnNumber:13},this),H.jsxDEV(Kl,{children:[H.jsxDEV(Zr,{fontWeight:"medium",children:"Formation:"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/App.tsx",lineNumber:518,columnNumber:15},this),H.jsxDEV(dh,{value:O,onChange:$e=>_($e.target.value),width:"150px",children:Object.keys(GO).map($e=>H.jsxDEV("option",{value:$e,children:$e},$e,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/App.tsx",lineNumber:525,columnNumber:19},this))},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/App.tsx",lineNumber:519,columnNumber:15},this),i&&H.jsxDEV(Toe,{hailer:i},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/App.tsx",lineNumber:530,columnNumber:26},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/App.tsx",lineNumber:517,columnNumber:13},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/App.tsx",lineNumber:515,columnNumber:11},this),H.jsxDEV(goe,{drawMode:de,drawType:q,isPlaying:oe,onToggleDrawMode:jt,onSetDrawType:be,onClear:Pt,onPlay:Ot,onSave:cn,onLoad:S},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/App.tsx",lineNumber:534,columnNumber:11},this),H.jsxDEV(lj,{gap:4,align:"flex-start",children:[H.jsxDEV(Dr,{flex:"1",children:H.jsxDEV(doe,{children:[N.map($e=>{const St=E.find(_t=>_t.id===$e.playerId),yt=$e.playerId?Y[$e.playerId]:void 0;return H.jsxDEV(uoe,{position:$e,player:St||null,animatedX:yt==null?void 0:yt.x,animatedY:yt==null?void 0:yt.y,isAnimating:oe},$e.id,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/App.tsx",lineNumber:553,columnNumber:21},this)}),H.jsxDEV(yoe,{x:ve.x,y:ve.y,animatedX:(on=Y.ball)==null?void 0:on.x,animatedY:(un=Y.ball)==null?void 0:un.y,isAnimating:oe,onDrag:Nt},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/App.tsx",lineNumber:563,columnNumber:17},this),H.jsxDEV(moe,{width:680,height:1020,drawMode:de,drawType:q,drawings:Ee,players:E,lineup:N,ballPosition:pe||ve,isPlaying:oe,onAddDrawing:ut,onDeleteDrawing:Et},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/App.tsx",lineNumber:571,columnNumber:17},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/App.tsx",lineNumber:548,columnNumber:15},this)},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/App.tsx",lineNumber:547,columnNumber:13},this),H.jsxDEV(poe,{substitutes:L,players:E,hailer:i,onPlayerCreated:ht,registerSignalCallback:Ne},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/App.tsx",lineNumber:587,columnNumber:13},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/App.tsx",lineNumber:546,columnNumber:11},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/App.tsx",lineNumber:514,columnNumber:9},this)},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/App.tsx",lineNumber:513,columnNumber:7},this),H.jsxDEV(aoe,{children:vt?H.jsxDEV(Dr,{opacity:.8,children:H.jsxDEV(zT,{player:vt},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/App.tsx",lineNumber:601,columnNumber:13},this)},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/App.tsx",lineNumber:600,columnNumber:11},this):null},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/App.tsx",lineNumber:598,columnNumber:7},this),i&&H.jsxDEV(H.Fragment,{children:[H.jsxDEV(boe,{isOpen:m,onClose:y,hailer:i,formation:O,drawings:Ee,ballPosition:ve},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/App.tsx",lineNumber:608,columnNumber:11},this),H.jsxDEV(xoe,{isOpen:x,onClose:R,hailer:i,onLoad:en},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/App.tsx",lineNumber:616,columnNumber:11},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/App.tsx",lineNumber:607,columnNumber:9},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/App.tsx",lineNumber:512,columnNumber:5},this):H.jsxDEV(Aw,{maxW:"container.md",py:8,children:H.jsxDEV(Ww,{fontSize:"lg",color:"subtleText",children:"You are outside of Hailer"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/App.tsx",lineNumber:504,columnNumber:9},this)},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/App.tsx",lineNumber:503,columnNumber:7},this)}const Roe={accentGreen:"#41FF69",baseBlue:"#005ABA",baseBlueLight:"#A8DBFF",darkModeBodyText:"#EDEFF3"},bv=qn("tooltip-bg"),YS=qn("tooltip-fg"),koe=qn("popper-arrow-bg"),KO=qn("popper-arrow-shadow-color"),Doe=hee({config:{initialColorMode:void 0,useSystemColorMode:!0},fonts:{body:"Nunito Sans, sans-serif, emoji",heading:"Nunito Sans, sans-serif, emoji"},colors:{gray:{50:"#f9fafd",100:"#f3f4f7",200:"#e9ebee",300:"#c7cad1",400:"#999ca4",500:"#53565F",600:"#34373f",700:"#292c33",800:"#202124",900:"#151618"},green:{50:"#f0fff4",100:"#B7E8C6",200:"#7DD197",300:"#36ba5f",400:"#20a250",500:"#17873f",600:"#006c32",700:"#01592a",800:"#003217",900:"#001d0d"},red:{50:"#fef0f0",100:"#f6dfdf",200:"#edbebe",300:"#e49c9c",400:"#f15353",500:"#e42b00",600:"#cc1318",700:"#9a1d00",800:"#611a0a",900:"#3e1309"},blue:{50:"#ebeef6",100:"#d9e8f7",200:"#a2b9d6",300:"#6a8ab4",400:"#4c71a0",500:"#2e4d71",600:"#253c56",700:"#172a3f",800:"#081826",900:"#071623"},orange:{50:"#fffff0",100:"#fffadf",200:"#fee39c",300:"#ffc224",400:"#e7a224",500:"#ce8223",600:"#a16425",700:"#775728",800:"#62512A",900:"#4c4a2b"},customColors:Roe},semanticTokens:{colors:{"chakra-placeholder-color":{_light:"gray.400",_dark:"gray.400"},"chakra-subtle-text":{_light:"gray.500",_dark:"gray.400"},subtleText:{_light:"gray.500",_dark:"gray.400"},"chakra-body-text":{_light:"gray.800",_dark:"customColors.darkModeBodyText"},bodyText:{_light:"gray.800",_dark:"customColors.darkModeBodyText"},"chakra-body-bg":{_light:"gray.100",_dark:"gray.700"}}},styles:{global:{html:{WebkitFontSmoothing:"unset"},".chakra-alert":{'&[data-status="success"]':{borderRadius:"4px"},'&[data-status="error"]':{borderRadius:"4px"},'&[data-status="warning"]':{borderRadius:"4px"},'&[data-status="info"]':{borderRadius:"4px"},'&[data-status="loading"]':{borderRadius:"4px"}}}},shadows:{outline:"0 0 0 3px var(--chakra-colors-customColors-baseBlue)"},radii:{none:"0",sm:"0.125rem",base:"0.25rem",md:"0.5rem",lg:"0.625rem",xl:"0.938rem","2xl":"1.25rem","3xl":"1.563rem",full:"9999px"},components:{Link:{baseStyle:{_light:{color:"customColors.baseBlue"},_dark:{color:"customColors.baseBlueLight"}}},Button:{baseStyle:{fontWeight:"bold",textTransform:"uppercase",borderRadius:"30px",letterSpacing:"wider",lineHeight:1,_disabled:{opacity:.3},_light:{_focusVisible:{boxShadow:"none",outline:"2px solid var(--chakra-colors-customColors-baseBlue)"}},_dark:{_focusVisible:{boxShadow:"none",outline:"2px solid var(--chakra-colors-customColors-baseBlueLight)"}}},sizes:{xs:{fontSize:"xs",svg:{height:"1rem",width:"1rem"}},sm:{fontSize:"xs",py:.5,px:4,svg:{height:"1.375rem",width:"1.375rem",marginLeft:"-3px",marginRight:"-3px"}},md:{fontSize:"xs",py:3,px:4,svg:{height:"1.5rem",width:"1.5rem",marginLeft:"-3px",marginRight:"-3px"}},lg:{fontSize:"xs",height:"2.75rem",minWidth:"2.75rem",py:3.5,svg:{height:"1.5rem",width:"1.5rem"}}},variants:{solid:e=>({_light:{color:e.colorScheme==="gray"?"blue.600":void 0,bg:e.colorScheme==="green"?"green.500":e.colorScheme==="red"?"red.500":e.colorScheme==="blue"?"blue.600":void 0,_hover:{bg:e.colorScheme==="green"?"green.600":e.colorScheme==="red"?"red.600":e.colorScheme==="blue"?"blue.700":void 0},_active:{bg:e.colorScheme==="green"?"green.700":e.colorScheme==="red"?"red.700":e.colorScheme==="blue"?"blue.800":void 0}},_dark:{color:e.colorScheme==="green"||e.colorScheme==="red"||e.colorScheme==="blue"?"whiteAlpha.900":void 0,bg:e.colorScheme==="green"?"green.500":e.colorScheme==="red"?"red.500":e.colorScheme==="blue"?"blue.600":void 0,_hover:{bg:e.colorScheme==="green"?"green.600":e.colorScheme==="red"?"red.600":e.colorScheme==="blue"?"blue.700":void 0},_active:{bg:e.colorScheme==="green"?"green.700":e.colorScheme==="red"?"red.700":e.colorScheme==="blue"?"blue.800":void 0}}}),outline:e=>({border:"2px solid",_light:{color:e.colorScheme==="gray"?"blue.600":void 0,_hover:{bg:"gray.100"},_active:{bg:"gray.200"}},_dark:{color:e.colorScheme==="green"?"green.400":e.colorScheme==="red"?"red.400":e.colorScheme==="blue"?"blue.300":void 0,_hover:{bg:e.colorScheme==="green"||e.colorScheme==="red"||e.colorScheme==="blue"?"gray.600":void 0},_active:{bg:e.colorScheme==="green"||e.colorScheme==="red"||e.colorScheme==="blue"?"gray.500":void 0}}}),ghost:e=>({_light:{color:e.colorScheme==="gray"?"blue.600":void 0,_hover:{bg:"gray.100"},_active:{bg:"gray.200"}},_dark:{color:e.colorScheme==="green"?"green.400":e.colorScheme==="red"?"red.400":e.colorScheme==="blue"?"blue.300":void 0,_hover:{bg:e.colorScheme==="green"||e.colorScheme==="red"||e.colorScheme==="blue"?"gray.600":void 0},_active:{bg:e.colorScheme==="green"||e.colorScheme==="red"||e.colorScheme==="blue"?"gray.500":void 0}}}),link:e=>({_light:{color:e.colorScheme==="green"?"green.400":e.colorScheme==="red"?"red.500":e.colorScheme==="blue"?"customColors.baseBlue":void 0},_dark:{color:e.colorScheme==="green"?"green.200":e.colorScheme==="red"?"red.300":e.colorScheme==="blue"?"customColors.baseBlueLight":void 0}})}},IconButton:{variants:{ghost:{_light:{_hover:{bg:"gray.200"},_active:{bg:"gray.300"}},_dark:{_hover:{bg:"gray.700"},_active:{bg:"gray.600"}}}}},CloseButton:{baseStyle:{borderRadius:"full",_light:{_focusVisible:{boxShadow:"none",outline:"2px solid var(--chakra-colors-customColors-baseBlue)"}},_dark:{_focusVisible:{boxShadow:"none",outline:"2px solid var(--chakra-colors-customColors-baseBlueLight)"}}}},Checkbox:{baseStyle:{label:{fontSize:"sm"},control:{height:4,width:4,borderRadius:"3px",_disabled:{opacity:.3},_light:{borderColor:"gray.300",_focusVisible:{boxShadow:"none",outline:"2px solid var(--chakra-colors-customColors-baseBlue)",outlineOffset:"2px"},_checked:{bg:"green.500",borderColor:"green.500",color:"white",_hover:{bg:"green.600",borderColor:"green.600"}}},_dark:{borderColor:"gray.500",_focusVisible:{boxShadow:"none",outline:"2px solid var(--chakra-colors-customColors-baseBlueLight)",outlineOffset:"2px"},_checked:{bg:"green.500",borderColor:"green.500",color:"whiteAlpha.900",_hover:{bg:"green.600",borderColor:"green.600"}}}},icon:{fontSize:"2xs"}},defaultProps:{colorScheme:"green",size:null},sizes:{sm:null}},Switch:{baseStyle:{track:{_light:{_focusVisible:{boxShadow:"none",outline:"2px solid var(--chakra-colors-customColors-baseBlue)",outlineOffset:"2px"},_checked:{bg:"green.500",_hover:{bg:"green.600"}}},_dark:{_focusVisible:{boxShadow:"none",outline:"2px solid var(--chakra-colors-customColors-baseBlueLight)",outlineOffset:"2px"},_checked:{bg:"green.500",_hover:{bg:"green.600"}}}}},defaultProps:{colorScheme:"green"}},Radio:{baseStyle:{label:{fontSize:"sm"},control:{height:4,width:4,_disabled:{opacity:.3},_light:{borderColor:"gray.300",_focusVisible:{boxShadow:"none",outline:"2px solid var(--chakra-colors-customColors-baseBlue) !important",outlineOffset:"1px"},_checked:{bg:"green.500",color:"green.500",border:"2px solid white",outline:"2px solid var(--chakra-colors-green-500)",_hover:{bg:"green.600",color:"green.600",outline:"2px solid var(--chakra-colors-green-600)"}}},_dark:{borderColor:"gray.500",_focusVisible:{boxShadow:"none",outline:"2px solid var(--chakra-colors-customColors-baseBlueLight) !important",outlineOffset:"2px"},_checked:{bg:"green.500",color:"green.500",border:"2px solid var(--chakra-colors-gray-800)",outline:"2px solid var(--chakra-colors-green-500)",_hover:{bg:"green.600",color:"green.600",outline:"2px solid var(--chakra-colors-green-600)"}}}}},defaultProps:{colorScheme:"green",size:null},sizes:{sm:null}},Tabs:{variants:{hailer:e=>({tab:{color:"chakra-placeholder-color",borderBottom:"2px solid",borderColor:"chakra-border-color",_active:{bg:e.colorMode==="dark"?"gray.700":"gray.50"},_selected:{borderColor:"green.500",color:"chakra-body-text"},_light:{_focusVisible:{boxShadow:"none",outline:"2px solid var(--chakra-colors-customColors-baseBlue)"}},_dark:{_focusVisible:{boxShadow:"none",outline:"2px solid var(--chakra-colors-customColors-baseBlueLight)"}}}})},defaultProps:{variant:"hailer",isFitted:!0}},Input:{variants:{filled:{field:{borderRadius:"lg",_light:{_focus:{bg:"gray.50"},_focusVisible:{bg:"gray.50"}},_dark:{_focus:{bg:"gray.800"},_focusVisible:{bg:"gray.800"}}}}},defaultProps:{variant:"filled",focusBorderColor:"green.500",errorBorderColor:"red.500"}},NumberInput:{variants:{filled:e=>({field:{borderRadius:"lg",_focus:{bg:e.colorMode==="dark"?"gray.800":"gray.50"},_focusVisible:{bg:e.colorMode==="dark"?"gray.800":"gray.50"}}})},defaultProps:{variant:"filled",focusBorderColor:"green.500",errorBorderColor:"red.500"}},Textarea:{variants:{filled:{borderRadius:"lg",_light:{_focus:{bg:"gray.50"},_focusVisible:{bg:"gray.50"}},_dark:{_focus:{bg:"gray.800"},_focusVisible:{bg:"gray.800"}}}},defaultProps:{variant:"filled",focusBorderColor:"green.500",errorBorderColor:"red.500"}},Select:{variants:{filled:e=>({field:{borderRadius:"lg",_focus:{bg:e.colorMode==="dark"?"gray.800":"gray.50",borderColor:"green.500"},_focusVisible:{bg:e.colorMode==="dark"?"gray.800":"gray.50",borderColor:"green.500"},_invalid:{borderColor:"red.500"}}})},defaultProps:{variant:"filled"}},FormLabel:{baseStyle:{fontSize:"xs",fontWeight:"bold",mb:.5,mt:4}},Form:{baseStyle:{helperText:{fontSize:"xs",mt:.5},requiredIndicator:{color:"chakra-body-text"}}},FormError:{baseStyle:{text:{fontSize:"xs",mt:.5}}},Menu:{baseStyle:{item:{fontSize:"sm",letterSpacing:"wide",minHeight:"44px"},groupTitle:{fontWeight:"bold"},list:{border:"none",shadow:"lg"},divider:{color:"gray.200",_dark:{color:"gray.500"}}}},Tooltip:{variants:{hailer:{bg:bv.reference,color:YS.reference,[koe.variable]:bv.reference,borderRadius:"md",_light:{[bv.variable]:"white",[YS.variable]:"chakra-body-text"},_dark:{[bv.variable]:"colors.gray.700",[YS.variable]:"chakra-body-text"}}},defaultProps:{variant:"hailer"}},Badge:{baseStyle:{borderRadius:"md"},defaultProps:{variant:"solid"}},Tag:{baseStyle:{container:{borderRadius:"full"},closeButton:{_light:{_focusVisible:{boxShadow:"none",outline:"2px solid var(--chakra-colors-customColors-baseBlue)"}},_dark:{_focusVisible:{boxShadow:"none",outline:"2px solid var(--chakra-colors-customColors-baseBlueLight)"}}}},sizes:{sm:{container:{minHeight:"1rem"}}},defaultProps:{size:"sm",variant:"solid"}},Stat:{baseStyle:{label:{fontWeight:"semibold"},number:{fontWeight:"bold"}}},Table:{baseStyle:e=>({thead:{bg:e.colorMode==="dark"?"gray.800":"gray.100",color:e.colorMode==="dark"?"gray.400":"gray.600","th:first-child":{borderTopLeftRadius:"sm"},"th:last-child":{borderTopRightRadius:"sm"}},th:{textTransform:"none",letterSpacing:"wide"}}),sizes:{sm:{thead:{height:"2rem"}},md:{th:{fontSize:"xs"},td:{fontSize:"sm"}},lg:{th:{fontSize:"sm"}}},variants:{striped:e=>({tbody:{tr:{"&:nth-of-type(even)":{"th, td":{borderBottomWidth:"1px",borderColor:e.colorMode==="dark"?"gray.600":"gray.50"},td:{background:e.colorMode==="dark"?"gray.600":"gray.50"}},"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:e.colorMode==="dark"?"gray.600":"gray.50"},td:{background:"transparent"}}}}}),simple:e=>({tbody:{tr:{"th, td":{borderBottomWidth:"1px",borderColor:e.colorMode==="dark"?"chakra-border-color":"gray.200"}}}})},defaultProps:{variant:"simple"}},Card:{baseStyle:{container:{borderRadius:"lg"}},variants:{filled:e=>({container:{bg:e.colorMode==="dark"?"gray.700":"white"}}),elevated:{container:{shadow:"md"}}},defaultProps:{variant:"filled"}},Modal:{baseStyle:{dialog:{borderRadius:"lg"},header:{color:"whiteAlpha.900",borderTopLeftRadius:"lg",borderTopRightRadius:"lg",fontWeight:"bold",fontSize:"lg",maxHeight:"56px",_light:{bg:"blue.600"},_dark:{bg:"gray.800"}},body:{pt:6},footer:{pb:6,button:{width:"175px",m:1.5}},closeButton:{color:"whiteAlpha.900",mt:1}},sizes:{"7xl":{dialog:{m:5}},md:{footer:{button:{width:"50%"}}},full:{header:{borderTopLeftRadius:0,borderTopRightRadius:0}}}},Popover:{baseStyle:{content:{border:"none",shadow:"lg"},arrow:{_light:{[KO.variable]:"white"},_dark:{[KO.variable]:"colors.gray.700"}},header:{color:"whiteAlpha.900",borderTopLeftRadius:"lg",borderTopRightRadius:"lg",borderBottomWidth:0,fontWeight:"semibold",fontSize:"md",_light:{bg:"blue.600"},_dark:{bg:"gray.800"}},body:{px:5},footer:{display:"flex",justifyContent:"center",borderTopWidth:0,pt:0,button:{width:"50%",m:1.5}},closeButton:{color:"whiteAlpha.900",mt:1}}},Alert:{variants:{subtle:e=>({container:{_light:{bg:e.colorScheme==="red"?"red.50":e.colorScheme==="green"?"green.50":e.colorScheme==="orange"?"orange.100":e.colorScheme==="blue"?"blue.50":void 0,color:e.colorScheme==="red"?"red.900":e.colorScheme==="green"?"green.900":e.colorScheme==="orange"?"orange.900":e.colorScheme==="blue"?"blue.900":void 0},_dark:{bg:e.colorScheme==="red"?"red.700":e.colorScheme==="green"?"green.700":e.colorScheme==="orange"?"orange.900":e.colorScheme==="blue"?"blue.700":void 0,color:"whiteAlpha.900"}},icon:{_light:{color:e.colorScheme==="red"?"red.500":e.colorScheme==="green"?"green.500":e.colorScheme==="orange"?"orange.500":e.colorScheme==="blue"?"blue.500":void 0},_dark:{color:e.colorScheme==="red"?"red.100":e.colorScheme==="green"?"green.100":e.colorScheme==="orange"?"orange.100":e.colorScheme==="blue"?"blue.100":void 0}},spinner:{_light:{color:e.colorScheme==="red"?"red.600":e.colorScheme==="green"?"green.600":e.colorScheme==="orange"?"orange.600":e.colorScheme==="blue"?"blue.600":void 0},_dark:{color:e.colorScheme==="red"?"red.100":e.colorScheme==="green"?"green.100":e.colorScheme==="orange"?"orange.100":e.colorScheme==="blue"?"blue.100":void 0}}}),solid:e=>({container:{_light:{bg:e.colorScheme==="red"?"red.500":e.colorScheme==="green"?"green.500":e.colorScheme==="orange"?"orange.500":e.colorScheme==="blue"?"blue.500":void 0,color:"white"},_dark:{bg:e.colorScheme==="red"?"red.700":e.colorScheme==="green"?"green.700":e.colorScheme==="orange"?"orange.900":e.colorScheme==="blue"?"blue.700":void 0,color:"whiteAlpha.900"}},icon:{_light:{color:e.colorScheme==="red"?"red.50":e.colorScheme==="green"?"green.50":e.colorScheme==="orange"?"orange.50":e.colorScheme==="blue"?"blue.50":void 0},_dark:{color:e.colorScheme==="red"?"red.100":e.colorScheme==="green"?"green.100":e.colorScheme==="orange"?"orange.100":e.colorScheme==="blue"?"blue.100":void 0}},spinner:{_light:{color:e.colorScheme==="red"?"red.50":e.colorScheme==="green"?"green.50":e.colorScheme==="orange"?"orange.50":e.colorScheme==="blue"?"blue.50":void 0},_dark:{color:e.colorScheme==="red"?"red.100":e.colorScheme==="green"?"green.100":e.colorScheme==="orange"?"orange.100":e.colorScheme==="blue"?"blue.100":void 0}}})},defaultProps:{variant:"subtle"}},Drawer:{baseStyle:{footer:{button:{width:"175px",m:1}}}},Avatar:{sizes:{"hailer-sm":e=>({container:{height:9,width:9,fontSize:"sm","&:not([data-loaded])":{bg:"gray.400"}},badge:{boxSize:"0.9em",borderWidth:"0.1em",bg:"gray.400"},excessLabel:{bg:"blue.600",color:"white",height:9,width:9,borderWidth:"2px",borderColor:e.colorMode==="dark"?"gray.800":"white",fontSize:"sm"}}),"hailer-md":e=>({container:{height:10,width:10,fontSize:"md","&:not([data-loaded])":{bg:"gray.400"}},badge:{boxSize:"0.9em",borderWidth:"0.1em",bg:"gray.400"},excessLabel:{bg:"blue.600",color:"white",height:10,width:10,borderWidth:"2px",borderColor:e.colorMode==="dark"?"gray.800":"white",fontSize:"md"}}),"hailer-lg":e=>({container:{height:"2.75rem",width:"2.75rem",fontSize:"lg","&:not([data-loaded])":{bg:"gray.400"}},badge:{boxSize:"0.9em",borderWidth:"0.1em",bg:"gray.400"},excessLabel:{bg:"blue.600",color:"white",height:"2.75rem",width:"2.75rem",borderWidth:"2px",borderColor:e.colorMode==="dark"?"gray.800":"white",fontSize:"lg"}})},defaultProps:{size:"hailer-md"}},Slider:{baseStyle:e=>({thumb:{_light:{_focusVisible:{boxShadow:"none",outline:"2px solid var(--chakra-colors-customColors-baseBlue)"}},_dark:{_focusVisible:{boxShadow:"none",outline:"2px solid var(--chakra-colors-customColors-baseBlueLight)"}}},filledTrack:{_dark:{bg:e.colorScheme==="green"?"green.500":e.colorScheme==="blue"?"blue.500":void 0}}}),defaultProps:{colorScheme:"green"}},Progress:{baseStyle:e=>({filledTrack:{_dark:{bg:e.colorScheme==="green"?"green.500":e.colorScheme==="blue"?"blue.500":void 0}}}),defaultProps:{colorScheme:"green"}}}});GS.createRoot(document.getElementById("root")).render(H.jsxDEV(hn.StrictMode,{children:H.jsxDEV($J,{theme:Doe,children:H.jsxDEV(Eoe,{},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/main.tsx",lineNumber:11,columnNumber:7},globalThis)},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/main.tsx",lineNumber:10,columnNumber:5},globalThis)},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/main.tsx",lineNumber:9,columnNumber:3},globalThis));