@chenpu17/cc-gw 0.17.0 → 0.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +5 -5
- package/src/web/dist/assets/{About-D2m94wu2.js → About-DmIV-sHO.js} +1 -1
- package/src/web/dist/assets/{ApiKeys-Bt-otGF_.js → ApiKeys-BNr4zbD6.js} +1 -1
- package/src/web/dist/assets/{ConfirmDialog-CRSbmgE7.js → ConfirmDialog-_CIYYtzo.js} +1 -1
- package/src/web/dist/assets/{Dashboard-81qp43jm.js → Dashboard-Hg4OZNAc.js} +1 -1
- package/src/web/dist/assets/{DialogShell-DxWKa5oR.js → DialogShell-D1T4HXtd.js} +1 -1
- package/src/web/dist/assets/Events-CO2wWiEK.js +1 -0
- package/src/web/dist/assets/{Help-XaAZ__Kz.js → Help-CafNfXfx.js} +1 -1
- package/src/web/dist/assets/{Login-atwWPGzz.js → Login-C04-poiG.js} +1 -1
- package/src/web/dist/assets/Logs-CqaIXvR0.js +1 -0
- package/src/web/dist/assets/{PageSection-CC5EhfMe.js → PageSection-Dd2-9G6C.js} +1 -1
- package/src/web/dist/assets/{PageState-XybOeENt.js → PageState-Bbhr4fy6.js} +1 -1
- package/src/web/dist/assets/{PageToolbar-CnLp4aWt.js → PageToolbar-GyUQBhmq.js} +1 -1
- package/src/web/dist/assets/{ProvidersPage-CFCY2xSG.js → ProvidersPage-CHvyCANH.js} +1 -1
- package/src/web/dist/assets/{RoutingPage-35o5ZSMg.js → RoutingPage-fVr25VKF.js} +1 -1
- package/src/web/dist/assets/{Settings-DC1TPeS9.js → Settings-DfaIYHsa.js} +1 -1
- package/src/web/dist/assets/{Setup-CnQPVK9X.js → Setup-DUEpie5k.js} +1 -1
- package/src/web/dist/assets/{TargetCombobox-DkVdA04_.js → TargetCombobox-CSnHZqDY.js} +1 -1
- package/src/web/dist/assets/{apiKeys-CMk2nxB_.js → apiKeys-B5Os17Qm.js} +1 -1
- package/src/web/dist/assets/app-DZpd2fu9.js +61 -0
- package/src/web/dist/assets/{badge-eRkhnmCs.js → badge-CWbm9P64.js} +1 -1
- package/src/web/dist/assets/{chartTheme-Cx-0Jiew.js → chartTheme-ChTod603.js} +1 -1
- package/src/web/dist/assets/{charts-core-BOHudNiN.js → charts-core-BuoE1ECx.js} +1 -1
- package/src/web/dist/assets/{charts-engine-BhFpDbO0.js → charts-engine-DHIzBJl6.js} +1 -1
- package/src/web/dist/assets/{charts-react-CPWg-GRD.js → charts-react-BLOapElb.js} +1 -1
- package/src/web/dist/assets/{currency-Bx141-XL.js → currency-DffG4uWM.js} +2 -2
- package/src/web/dist/assets/{disclosure-CU-KJc8C.js → disclosure-W_XtxMJz.js} +1 -1
- package/src/web/dist/assets/{gateway-DyhqzHSh.js → gateway-DxaHzVOF.js} +1 -1
- package/src/web/dist/assets/{global-BLUcvOa8.js → global-BCYo_xAt.js} +1 -1
- package/src/web/dist/assets/global-CP6wBbWu.css +1 -0
- package/src/web/dist/assets/{i18n-v60Yn7Ls.js → i18n-ClvfZhYc.js} +1 -1
- package/src/web/dist/assets/{label-CdbE1ezd.js → label-09axTkPo.js} +1 -1
- package/src/web/dist/assets/{landing-BQdbaG8s.js → landing-BsX2AKvc.js} +3 -3
- package/src/web/dist/assets/{modelManagement-DwdbGu0o.js → modelManagement-Dc7L1tJw.js} +1 -1
- package/src/web/dist/assets/package-DgoCoO-z.js +1 -0
- package/src/web/dist/assets/{popover-CuM9b3U7.js → popover-CX5HRHKk.js} +1 -1
- package/src/web/dist/assets/{query-CvboQrUT.js → query-1Ng1fzmE.js} +1 -1
- package/src/web/dist/assets/{radix-d0BukFWM.js → radix-DONH6gHT.js} +1 -1
- package/src/web/dist/assets/{router-CqUBCAsx.js → router-Bkbjq53m.js} +1 -1
- package/src/web/dist/assets/{segmented-control-5mZhY1KZ.js → segmented-control-Cxe6ZLHe.js} +1 -1
- package/src/web/dist/assets/{shared-zfHsnBTk.js → shared-DG0AgdnU.js} +1 -1
- package/src/web/dist/assets/{switch-CZn1nypU.js → switch-C58zWdHT.js} +1 -1
- package/src/web/dist/assets/{tabs-CrNMQMmG.js → tabs-BIz291zK.js} +1 -1
- package/src/web/dist/assets/{useAppMutation-B29oVzxS.js → useAppMutation-CsoNTPQ7.js} +1 -1
- package/src/web/dist/assets/{useEventStream-DN2DYBVS.js → useEventStream-CvopQT4p.js} +1 -1
- package/src/web/dist/assets/{useProviderForm-DIuM3Z2u.js → useProviderForm-B_wmywxX.js} +1 -1
- package/src/web/dist/assets/{vendor-JUtelXU0.js → vendor-C-lQMZp3.js} +94 -84
- package/src/web/dist/index.html +14 -11
- package/src/web/dist/landing.html +5 -5
- package/src/web/dist/assets/Events-BQ4Dkqon.js +0 -1
- package/src/web/dist/assets/Logs-BYFIK_hM.js +0 -1
- package/src/web/dist/assets/app-CRxPj2SJ.js +0 -61
- package/src/web/dist/assets/global-BQq8O0Tv.css +0 -1
- package/src/web/dist/assets/package-Dmrvm3RO.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var Hy=e=>{throw TypeError(e)};var If=(e,t,n)=>t.has(e)||Hy("Cannot "+n);var k=(e,t,n)=>(If(e,t,"read from private field"),n?n.call(e):t.get(e)),te=(e,t,n)=>t.has(e)?Hy("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),B=(e,t,n,r)=>(If(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),fe=(e,t,n)=>(If(e,t,"access private method"),n);var Ul=(e,t,n,r)=>({set _(i){B(e,t,i,n)},get _(){return k(e,t,r)}});function d1(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function h1(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Tk(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var p1={exports:{}},Gc={},m1={exports:{}},he={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@ var Wy=e=>{throw TypeError(e)};var If=(e,t,n)=>t.has(e)||Wy("Cannot "+n);var k=(
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var pl=Symbol.for("react.element"),Pk=Symbol.for("react.portal"),Mk=Symbol.for("react.fragment"),Ak=Symbol.for("react.strict_mode"),Dk=Symbol.for("react.profiler"),Ok=Symbol.for("react.provider"),Lk=Symbol.for("react.context"),_k=Symbol.for("react.forward_ref"),Ik=Symbol.for("react.suspense"),Nk=Symbol.for("react.memo"),Fk=Symbol.for("react.lazy"),Ky=Symbol.iterator;function jk(e){return e===null||typeof e!="object"?null:(e=Ky&&e[Ky]||e["@@iterator"],typeof e=="function"?e:null)}var y1={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g1=Object.assign,v1={};function As(e,t,n){this.props=e,this.context=t,this.refs=v1,this.updater=n||y1}As.prototype.isReactComponent={};As.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};As.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function w1(){}w1.prototype=As.prototype;function
|
|
9
|
+
*/var pl=Symbol.for("react.element"),Pk=Symbol.for("react.portal"),Mk=Symbol.for("react.fragment"),Ak=Symbol.for("react.strict_mode"),Dk=Symbol.for("react.profiler"),Ok=Symbol.for("react.provider"),Lk=Symbol.for("react.context"),_k=Symbol.for("react.forward_ref"),Ik=Symbol.for("react.suspense"),Nk=Symbol.for("react.memo"),Fk=Symbol.for("react.lazy"),Ky=Symbol.iterator;function jk(e){return e===null||typeof e!="object"?null:(e=Ky&&e[Ky]||e["@@iterator"],typeof e=="function"?e:null)}var y1={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g1=Object.assign,v1={};function As(e,t,n){this.props=e,this.context=t,this.refs=v1,this.updater=n||y1}As.prototype.isReactComponent={};As.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};As.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function w1(){}w1.prototype=As.prototype;function Hp(e,t,n){this.props=e,this.context=t,this.refs=v1,this.updater=n||y1}var Kp=Hp.prototype=new w1;Kp.constructor=Hp;g1(Kp,As.prototype);Kp.isPureReactComponent=!0;var qy=Array.isArray,x1=Object.prototype.hasOwnProperty,qp={current:null},S1={key:!0,ref:!0,__self:!0,__source:!0};function b1(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)x1.call(t,r)&&!S1.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:pl,type:e,key:o,ref:s,props:i,_owner:qp.current}}function Vk(e,t){return{$$typeof:pl,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Gp(e){return typeof e=="object"&&e!==null&&e.$$typeof===pl}function zk(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Gy=/\/+/g;function Nf(e,t){return typeof e=="object"&&e!==null&&e.key!=null?zk(""+e.key):t.toString(36)}function Cu(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case pl:case Pk:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+Nf(s,0):r,qy(i)?(n="",e!=null&&(n=e.replace(Gy,"$&/")+"/"),Cu(i,t,n,"",function(u){return u})):i!=null&&(Gp(i)&&(i=Vk(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(Gy,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",qy(e))for(var a=0;a<e.length;a++){o=e[a];var l=r+Nf(o,a);s+=Cu(o,t,n,l,i)}else if(l=jk(e),typeof l=="function")for(e=l.call(e),a=0;!(o=e.next()).done;)o=o.value,l=r+Nf(o,a++),s+=Cu(o,t,n,l,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function $l(e,t,n){if(e==null)return e;var r=[],i=0;return Cu(e,r,"","",function(o){return t.call(n,o,i++)}),r}function Bk(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var jt={current:null},Eu={transition:null},Uk={ReactCurrentDispatcher:jt,ReactCurrentBatchConfig:Eu,ReactCurrentOwner:qp};function C1(){throw Error("act(...) is not supported in production builds of React.")}he.Children={map:$l,forEach:function(e,t,n){$l(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return $l(e,function(){t++}),t},toArray:function(e){return $l(e,function(t){return t})||[]},only:function(e){if(!Gp(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};he.Component=As;he.Fragment=Mk;he.Profiler=Dk;he.PureComponent=Hp;he.StrictMode=Ak;he.Suspense=Ik;he.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Uk;he.act=C1;he.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=g1({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=qp.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)x1.call(t,l)&&!S1.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:pl,type:e.type,key:i,ref:o,props:r,_owner:s}};he.createContext=function(e){return e={$$typeof:Lk,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Ok,_context:e},e.Consumer=e};he.createElement=b1;he.createFactory=function(e){var t=b1.bind(null,e);return t.type=e,t};he.createRef=function(){return{current:null}};he.forwardRef=function(e){return{$$typeof:_k,render:e}};he.isValidElement=Gp;he.lazy=function(e){return{$$typeof:Fk,_payload:{_status:-1,_result:e},_init:Bk}};he.memo=function(e,t){return{$$typeof:Nk,type:e,compare:t===void 0?null:t}};he.startTransition=function(e){var t=Eu.transition;Eu.transition={};try{e()}finally{Eu.transition=t}};he.unstable_act=C1;he.useCallback=function(e,t){return jt.current.useCallback(e,t)};he.useContext=function(e){return jt.current.useContext(e)};he.useDebugValue=function(){};he.useDeferredValue=function(e){return jt.current.useDeferredValue(e)};he.useEffect=function(e,t){return jt.current.useEffect(e,t)};he.useId=function(){return jt.current.useId()};he.useImperativeHandle=function(e,t,n){return jt.current.useImperativeHandle(e,t,n)};he.useInsertionEffect=function(e,t){return jt.current.useInsertionEffect(e,t)};he.useLayoutEffect=function(e,t){return jt.current.useLayoutEffect(e,t)};he.useMemo=function(e,t){return jt.current.useMemo(e,t)};he.useReducer=function(e,t,n){return jt.current.useReducer(e,t,n)};he.useRef=function(e){return jt.current.useRef(e)};he.useState=function(e){return jt.current.useState(e)};he.useSyncExternalStore=function(e,t,n){return jt.current.useSyncExternalStore(e,t,n)};he.useTransition=function(){return jt.current.useTransition()};he.version="18.3.1";m1.exports=he;var C=m1.exports;const _t=h1(C),lF=d1({__proto__:null,default:_t},[C]);/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.production.min.js
|
|
12
12
|
*
|
|
@@ -14,7 +14,7 @@ var Wy=e=>{throw TypeError(e)};var If=(e,t,n)=>t.has(e)||Wy("Cannot "+n);var k=(
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var $k=C,
|
|
17
|
+
*/var $k=C,Wk=Symbol.for("react.element"),Hk=Symbol.for("react.fragment"),Kk=Object.prototype.hasOwnProperty,qk=$k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Gk={key:!0,ref:!0,__self:!0,__source:!0};function E1(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)Kk.call(t,r)&&!Gk.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:Wk,type:e,key:o,ref:s,props:i,_owner:qk.current}}Gc.Fragment=Hk;Gc.jsx=E1;Gc.jsxs=E1;p1.exports=Gc;var Rr=p1.exports,Qy={},k1={exports:{}},ln={},R1={exports:{}},T1={};/**
|
|
18
18
|
* @license React
|
|
19
19
|
* scheduler.production.min.js
|
|
20
20
|
*
|
|
@@ -22,7 +22,7 @@ var Wy=e=>{throw TypeError(e)};var If=(e,t,n)=>t.has(e)||Wy("Cannot "+n);var k=(
|
|
|
22
22
|
*
|
|
23
23
|
* This source code is licensed under the MIT license found in the
|
|
24
24
|
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/(function(e){function t(O,j){var _=O.length;O.push(j);e:for(;0<_;){var re=_-1>>>1,ne=O[re];if(0<i(ne,j))O[re]=j,O[_]=ne,_=re;else break e}}function n(O){return O.length===0?null:O[0]}function r(O){if(O.length===0)return null;var j=O[0],_=O.pop();if(_!==j){O[0]=_;e:for(var re=0,ne=O.length,Te=ne>>>1;re<Te;){var be=2*(re+1)-1,ce=O[be],le=be+1,ze=O[le];if(0>i(ce,_))le<ne&&0>i(ze,ce)?(O[re]=ze,O[le]=_,re=le):(O[re]=ce,O[be]=_,re=be);else if(le<ne&&0>i(ze,_))O[re]=ze,O[le]=_,re=le;else break e}}return j}function i(O,j){var _=O.sortIndex-j.sortIndex;return _!==0?_:O.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,f=null,d=3,h=!1,p=!1,m=!1,v=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 w(O){for(var j=n(u);j!==null;){if(j.callback===null)r(u);else if(j.startTime<=O)r(u),j.sortIndex=j.expirationTime,t(l,j);else break;j=n(u)}}function x(O){if(m=!1,w(O),!p)if(n(l)!==null)p=!0,U(E);else{var j=n(u);j!==null&&se(x,j.startTime-O)}}function E(O,j){p=!1,m&&(m=!1,y(b),b=-1),h=!0;var _=d;try{for(w(j),f=n(l);f!==null&&(!(f.expirationTime>j)||O&&!I());){var re=f.callback;if(typeof re=="function"){f.callback=null,d=f.priorityLevel;var ne=re(f.expirationTime<=j);j=e.unstable_now(),typeof ne=="function"?f.callback=ne:f===n(l)&&r(l),w(j)}else r(l);f=n(l)}if(f!==null)var Te=!0;else{var be=n(u);be!==null&&se(x,be.startTime-j),Te=!1}return Te}finally{f=null,d=_,h=!1}}var T=!1,S=null,b=-1,A=5,M=-1;function I(){return!(e.unstable_now()-M<A)}function z(){if(S!==null){var O=e.unstable_now();M=O;var j=!0;try{j=S(!0,O)}finally{j?
|
|
25
|
+
*/(function(e){function t(O,j){var _=O.length;O.push(j);e:for(;0<_;){var re=_-1>>>1,ne=O[re];if(0<i(ne,j))O[re]=j,O[_]=ne,_=re;else break e}}function n(O){return O.length===0?null:O[0]}function r(O){if(O.length===0)return null;var j=O[0],_=O.pop();if(_!==j){O[0]=_;e:for(var re=0,ne=O.length,Te=ne>>>1;re<Te;){var be=2*(re+1)-1,ce=O[be],le=be+1,ze=O[le];if(0>i(ce,_))le<ne&&0>i(ze,ce)?(O[re]=ze,O[le]=_,re=le):(O[re]=ce,O[be]=_,re=be);else if(le<ne&&0>i(ze,_))O[re]=ze,O[le]=_,re=le;else break e}}return j}function i(O,j){var _=O.sortIndex-j.sortIndex;return _!==0?_:O.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,f=null,d=3,h=!1,p=!1,m=!1,v=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 w(O){for(var j=n(u);j!==null;){if(j.callback===null)r(u);else if(j.startTime<=O)r(u),j.sortIndex=j.expirationTime,t(l,j);else break;j=n(u)}}function x(O){if(m=!1,w(O),!p)if(n(l)!==null)p=!0,U(E);else{var j=n(u);j!==null&&se(x,j.startTime-O)}}function E(O,j){p=!1,m&&(m=!1,y(b),b=-1),h=!0;var _=d;try{for(w(j),f=n(l);f!==null&&(!(f.expirationTime>j)||O&&!I());){var re=f.callback;if(typeof re=="function"){f.callback=null,d=f.priorityLevel;var ne=re(f.expirationTime<=j);j=e.unstable_now(),typeof ne=="function"?f.callback=ne:f===n(l)&&r(l),w(j)}else r(l);f=n(l)}if(f!==null)var Te=!0;else{var be=n(u);be!==null&&se(x,be.startTime-j),Te=!1}return Te}finally{f=null,d=_,h=!1}}var T=!1,S=null,b=-1,A=5,M=-1;function I(){return!(e.unstable_now()-M<A)}function z(){if(S!==null){var O=e.unstable_now();M=O;var j=!0;try{j=S(!0,O)}finally{j?W():(T=!1,S=null)}}else T=!1}var W;if(typeof g=="function")W=function(){g(z)};else if(typeof MessageChannel<"u"){var $=new MessageChannel,oe=$.port2;$.port1.onmessage=z,W=function(){oe.postMessage(null)}}else W=function(){v(z,0)};function U(O){S=O,T||(T=!0,W())}function se(O,j){b=v(function(){O(e.unstable_now())},j)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(O){O.callback=null},e.unstable_continueExecution=function(){p||h||(p=!0,U(E))},e.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<O?Math.floor(1e3/O):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(O){switch(d){case 1:case 2:case 3:var j=3;break;default:j=d}var _=d;d=j;try{return O()}finally{d=_}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(O,j){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var _=d;d=O;try{return j()}finally{d=_}},e.unstable_scheduleCallback=function(O,j,_){var re=e.unstable_now();switch(typeof _=="object"&&_!==null?(_=_.delay,_=typeof _=="number"&&0<_?re+_:re):_=re,O){case 1:var ne=-1;break;case 2:ne=250;break;case 5:ne=1073741823;break;case 4:ne=1e4;break;default:ne=5e3}return ne=_+ne,O={id:c++,callback:j,priorityLevel:O,startTime:_,expirationTime:ne,sortIndex:-1},_>re?(O.sortIndex=_,t(u,O),n(l)===null&&O===n(u)&&(m?(y(b),b=-1):m=!0,se(x,_-re))):(O.sortIndex=ne,t(l,O),p||h||(p=!0,U(E))),O},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(O){var j=d;return function(){var _=d;d=j;try{return O.apply(this,arguments)}finally{d=_}}}})(T1);R1.exports=T1;var Qk=R1.exports;/**
|
|
26
26
|
* @license React
|
|
27
27
|
* react-dom.production.min.js
|
|
28
28
|
*
|
|
@@ -30,344 +30,354 @@ var Wy=e=>{throw TypeError(e)};var If=(e,t,n)=>t.has(e)||Wy("Cannot "+n);var k=(
|
|
|
30
30
|
*
|
|
31
31
|
* This source code is licensed under the MIT license found in the
|
|
32
32
|
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var Xk=C,an=Qk;function F(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var P1=new Set,Na={};function yo(e,t){gs(e,t),gs(e+"Capture",t)}function gs(e,t){for(Na[e]=t,e=0;e<t.length;e++)P1.add(t[e])}var Mr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Kd=Object.prototype.hasOwnProperty,Yk=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Xy={},Yy={};function Zk(e){return Kd.call(Yy,e)?!0:Kd.call(Xy,e)?!1:Yk.test(e)?Yy[e]=!0:(Xy[e]=!0,!1)}function Jk(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function eR(e,t,n,r){if(t===null||typeof t>"u"||Jk(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Vt(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var vt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){vt[e]=new Vt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];vt[t]=new Vt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){vt[e]=new Vt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){vt[e]=new Vt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){vt[e]=new Vt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){vt[e]=new Vt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){vt[e]=new Vt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){vt[e]=new Vt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){vt[e]=new Vt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Qp=/[\-:]([a-z])/g;function Xp(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Qp,Xp);vt[t]=new Vt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Qp,Xp);vt[t]=new Vt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Qp,Xp);vt[t]=new Vt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){vt[e]=new Vt(e,1,!1,e.toLowerCase(),null,!1,!1)});vt.xlinkHref=new Vt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){vt[e]=new Vt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Yp(e,t,n,r){var i=vt.hasOwnProperty(t)?vt[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(eR(t,n,i,r)&&(n=null),r||i===null?Zk(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Ir=Xk.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
|
|
33
|
+
*/var Xk=C,an=Qk;function F(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var P1=new Set,Na={};function yo(e,t){gs(e,t),gs(e+"Capture",t)}function gs(e,t){for(Na[e]=t,e=0;e<t.length;e++)P1.add(t[e])}var Mr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Kd=Object.prototype.hasOwnProperty,Yk=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Xy={},Yy={};function Zk(e){return Kd.call(Yy,e)?!0:Kd.call(Xy,e)?!1:Yk.test(e)?Yy[e]=!0:(Xy[e]=!0,!1)}function Jk(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function eR(e,t,n,r){if(t===null||typeof t>"u"||Jk(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Vt(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var vt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){vt[e]=new Vt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];vt[t]=new Vt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){vt[e]=new Vt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){vt[e]=new Vt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){vt[e]=new Vt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){vt[e]=new Vt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){vt[e]=new Vt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){vt[e]=new Vt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){vt[e]=new Vt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Qp=/[\-:]([a-z])/g;function Xp(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Qp,Xp);vt[t]=new Vt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Qp,Xp);vt[t]=new Vt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Qp,Xp);vt[t]=new Vt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){vt[e]=new Vt(e,1,!1,e.toLowerCase(),null,!1,!1)});vt.xlinkHref=new Vt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){vt[e]=new Vt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Yp(e,t,n,r){var i=vt.hasOwnProperty(t)?vt[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(eR(t,n,i,r)&&(n=null),r||i===null?Zk(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Ir=Xk.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Wl=Symbol.for("react.element"),Io=Symbol.for("react.portal"),No=Symbol.for("react.fragment"),Zp=Symbol.for("react.strict_mode"),qd=Symbol.for("react.profiler"),M1=Symbol.for("react.provider"),A1=Symbol.for("react.context"),Jp=Symbol.for("react.forward_ref"),Gd=Symbol.for("react.suspense"),Qd=Symbol.for("react.suspense_list"),em=Symbol.for("react.memo"),Hr=Symbol.for("react.lazy"),D1=Symbol.for("react.offscreen"),Zy=Symbol.iterator;function Xs(e){return e===null||typeof e!="object"?null:(e=Zy&&e[Zy]||e["@@iterator"],typeof e=="function"?e:null)}var Ve=Object.assign,Ff;function da(e){if(Ff===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ff=t&&t[1]||""}return`
|
|
34
34
|
`+Ff+e}var jf=!1;function Vf(e,t){if(!e||jf)return"";jf=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
|
|
35
35
|
`),o=r.stack.split(`
|
|
36
36
|
`),s=i.length-1,a=o.length-1;1<=s&&0<=a&&i[s]!==o[a];)a--;for(;1<=s&&0<=a;s--,a--)if(i[s]!==o[a]){if(s!==1||a!==1)do if(s--,a--,0>a||i[s]!==o[a]){var l=`
|
|
37
|
-
`+i[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{jf=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?da(e):""}function tR(e){switch(e.tag){case 5:return da(e.type);case 16:return da("Lazy");case 13:return da("Suspense");case 19:return da("SuspenseList");case 0:case 2:case 15:return e=Vf(e.type,!1),e;case 11:return e=Vf(e.type.render,!1),e;case 1:return e=Vf(e.type,!0),e;default:return""}}function Xd(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case No:return"Fragment";case Io:return"Portal";case qd:return"Profiler";case Zp:return"StrictMode";case Gd:return"Suspense";case Qd:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case A1:return(e.displayName||"Context")+".Consumer";case M1:return(e._context.displayName||"Context")+".Provider";case Jp:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case em:return t=e.displayName||null,t!==null?t:Xd(e.type)||"Memo";case Wr:t=e._payload,e=e._init;try{return Xd(e(t))}catch{}}return null}function nR(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Xd(t);case 8:return t===Zp?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function vi(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function O1(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function rR(e){var t=O1(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Wl(e){e._valueTracker||(e._valueTracker=rR(e))}function L1(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=O1(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Zu(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Yd(e,t){var n=t.checked;return Ve({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Jy(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=vi(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function _1(e,t){t=t.checked,t!=null&&Yp(e,"checked",t,!1)}function Zd(e,t){_1(e,t);var n=vi(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Jd(e,t.type,n):t.hasOwnProperty("defaultValue")&&Jd(e,t.type,vi(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function eg(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Jd(e,t,n){(t!=="number"||Zu(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ha=Array.isArray;function Xo(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+vi(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function eh(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(F(91));return Ve({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function tg(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(F(92));if(ha(n)){if(1<n.length)throw Error(F(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:vi(n)}}function I1(e,t){var n=vi(t.value),r=vi(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function ng(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function N1(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function th(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?N1(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Kl,F1=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Kl=Kl||document.createElement("div"),Kl.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Kl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Fa(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var wa={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},iR=["Webkit","ms","Moz","O"];Object.keys(wa).forEach(function(e){iR.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),wa[t]=wa[e]})});function j1(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||wa.hasOwnProperty(e)&&wa[e]?(""+t).trim():t+"px"}function V1(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=j1(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var oR=Ve({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function nh(e,t){if(t){if(oR[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(F(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(F(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(F(61))}if(t.style!=null&&typeof t.style!="object")throw Error(F(62))}}function rh(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ih=null;function tm(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var oh=null,Yo=null,Zo=null;function rg(e){if(e=gl(e)){if(typeof oh!="function")throw Error(F(280));var t=e.stateNode;t&&(t=Jc(t),oh(e.stateNode,e.type,t))}}function z1(e){Yo?Zo?Zo.push(e):Zo=[e]:Yo=e}function B1(){if(Yo){var e=Yo,t=Zo;if(Zo=Yo=null,rg(e),t)for(e=0;e<t.length;e++)rg(t[e])}}function U1(e,t){return e(t)}function $1(){}var zf=!1;function H1(e,t,n){if(zf)return e(t,n);zf=!0;try{return U1(e,t,n)}finally{zf=!1,(Yo!==null||Zo!==null)&&($1(),B1())}}function ja(e,t){var n=e.stateNode;if(n===null)return null;var r=Jc(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(F(231,t,typeof n));return n}var sh=!1;if(Mr)try{var Ys={};Object.defineProperty(Ys,"passive",{get:function(){sh=!0}}),window.addEventListener("test",Ys,Ys),window.removeEventListener("test",Ys,Ys)}catch{sh=!1}function sR(e,t,n,r,i,o,s,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var xa=!1,Ju=null,ec=!1,ah=null,aR={onError:function(e){xa=!0,Ju=e}};function lR(e,t,n,r,i,o,s,a,l){xa=!1,Ju=null,sR.apply(aR,arguments)}function uR(e,t,n,r,i,o,s,a,l){if(lR.apply(this,arguments),xa){if(xa){var u=Ju;xa=!1,Ju=null}else throw Error(F(198));ec||(ec=!0,ah=u)}}function go(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function W1(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function ig(e){if(go(e)!==e)throw Error(F(188))}function cR(e){var t=e.alternate;if(!t){if(t=go(e),t===null)throw Error(F(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return ig(i),e;if(o===r)return ig(i),t;o=o.sibling}throw Error(F(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,a=i.child;a;){if(a===n){s=!0,n=i,r=o;break}if(a===r){s=!0,r=i,n=o;break}a=a.sibling}if(!s){for(a=o.child;a;){if(a===n){s=!0,n=o,r=i;break}if(a===r){s=!0,r=o,n=i;break}a=a.sibling}if(!s)throw Error(F(189))}}if(n.alternate!==r)throw Error(F(190))}if(n.tag!==3)throw Error(F(188));return n.stateNode.current===n?e:t}function K1(e){return e=cR(e),e!==null?q1(e):null}function q1(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=q1(e);if(t!==null)return t;e=e.sibling}return null}var G1=an.unstable_scheduleCallback,og=an.unstable_cancelCallback,fR=an.unstable_shouldYield,dR=an.unstable_requestPaint,Ke=an.unstable_now,hR=an.unstable_getCurrentPriorityLevel,nm=an.unstable_ImmediatePriority,Q1=an.unstable_UserBlockingPriority,tc=an.unstable_NormalPriority,pR=an.unstable_LowPriority,X1=an.unstable_IdlePriority,Qc=null,rr=null;function mR(e){if(rr&&typeof rr.onCommitFiberRoot=="function")try{rr.onCommitFiberRoot(Qc,e,void 0,(e.current.flags&128)===128)}catch{}}var _n=Math.clz32?Math.clz32:vR,yR=Math.log,gR=Math.LN2;function vR(e){return e>>>=0,e===0?32:31-(yR(e)/gR|0)|0}var ql=64,Gl=4194304;function pa(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function nc(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~i;a!==0?r=pa(a):(o&=s,o!==0&&(r=pa(o)))}else s=n&~i,s!==0?r=pa(s):o!==0&&(r=pa(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-_n(t),i=1<<n,r|=e[n],t&=~i;return r}function wR(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function xR(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-_n(o),a=1<<s,l=i[s];l===-1?(!(a&n)||a&r)&&(i[s]=wR(a,t)):l<=t&&(e.expiredLanes|=a),o&=~a}}function lh(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Y1(){var e=ql;return ql<<=1,!(ql&4194240)&&(ql=64),e}function Bf(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ml(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-_n(t),e[t]=n}function SR(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-_n(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function rm(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-_n(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var Re=0;function Z1(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var J1,im,ex,tx,nx,uh=!1,Ql=[],ui=null,ci=null,fi=null,Va=new Map,za=new Map,Gr=[],bR="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function sg(e,t){switch(e){case"focusin":case"focusout":ui=null;break;case"dragenter":case"dragleave":ci=null;break;case"mouseover":case"mouseout":fi=null;break;case"pointerover":case"pointerout":Va.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":za.delete(t.pointerId)}}function Zs(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=gl(t),t!==null&&im(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function CR(e,t,n,r,i){switch(t){case"focusin":return ui=Zs(ui,e,t,n,r,i),!0;case"dragenter":return ci=Zs(ci,e,t,n,r,i),!0;case"mouseover":return fi=Zs(fi,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Va.set(o,Zs(Va.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,za.set(o,Zs(za.get(o)||null,e,t,n,r,i)),!0}return!1}function rx(e){var t=ji(e.target);if(t!==null){var n=go(t);if(n!==null){if(t=n.tag,t===13){if(t=W1(n),t!==null){e.blockedOn=t,nx(e.priority,function(){ex(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ku(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=ch(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);ih=r,n.target.dispatchEvent(r),ih=null}else return t=gl(n),t!==null&&im(t),e.blockedOn=n,!1;t.shift()}return!0}function ag(e,t,n){ku(e)&&n.delete(t)}function ER(){uh=!1,ui!==null&&ku(ui)&&(ui=null),ci!==null&&ku(ci)&&(ci=null),fi!==null&&ku(fi)&&(fi=null),Va.forEach(ag),za.forEach(ag)}function Js(e,t){e.blockedOn===t&&(e.blockedOn=null,uh||(uh=!0,an.unstable_scheduleCallback(an.unstable_NormalPriority,ER)))}function Ba(e){function t(i){return Js(i,e)}if(0<Ql.length){Js(Ql[0],e);for(var n=1;n<Ql.length;n++){var r=Ql[n];r.blockedOn===e&&(r.blockedOn=null)}}for(ui!==null&&Js(ui,e),ci!==null&&Js(ci,e),fi!==null&&Js(fi,e),Va.forEach(t),za.forEach(t),n=0;n<Gr.length;n++)r=Gr[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Gr.length&&(n=Gr[0],n.blockedOn===null);)rx(n),n.blockedOn===null&&Gr.shift()}var Jo=Ir.ReactCurrentBatchConfig,rc=!0;function kR(e,t,n,r){var i=Re,o=Jo.transition;Jo.transition=null;try{Re=1,om(e,t,n,r)}finally{Re=i,Jo.transition=o}}function RR(e,t,n,r){var i=Re,o=Jo.transition;Jo.transition=null;try{Re=4,om(e,t,n,r)}finally{Re=i,Jo.transition=o}}function om(e,t,n,r){if(rc){var i=ch(e,t,n,r);if(i===null)Yf(e,t,r,ic,n),sg(e,r);else if(CR(i,e,t,n,r))r.stopPropagation();else if(sg(e,r),t&4&&-1<bR.indexOf(e)){for(;i!==null;){var o=gl(i);if(o!==null&&J1(o),o=ch(e,t,n,r),o===null&&Yf(e,t,r,ic,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else Yf(e,t,r,null,n)}}var ic=null;function ch(e,t,n,r){if(ic=null,e=tm(r),e=ji(e),e!==null)if(t=go(e),t===null)e=null;else if(n=t.tag,n===13){if(e=W1(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return ic=e,null}function ix(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(hR()){case nm:return 1;case Q1:return 4;case tc:case pR:return 16;case X1:return 536870912;default:return 16}default:return 16}}var oi=null,sm=null,Ru=null;function ox(){if(Ru)return Ru;var e,t=sm,n=t.length,r,i="value"in oi?oi.value:oi.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===i[o-r];r++);return Ru=i.slice(e,1<r?1-r:void 0)}function Tu(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Xl(){return!0}function lg(){return!1}function un(e){function t(n,r,i,o,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(o):o[a]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Xl:lg,this.isPropagationStopped=lg,this}return Ve(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Xl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Xl)},persist:function(){},isPersistent:Xl}),t}var Ds={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},am=un(Ds),yl=Ve({},Ds,{view:0,detail:0}),TR=un(yl),Uf,$f,ea,Xc=Ve({},yl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:lm,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ea&&(ea&&e.type==="mousemove"?(Uf=e.screenX-ea.screenX,$f=e.screenY-ea.screenY):$f=Uf=0,ea=e),Uf)},movementY:function(e){return"movementY"in e?e.movementY:$f}}),ug=un(Xc),PR=Ve({},Xc,{dataTransfer:0}),MR=un(PR),AR=Ve({},yl,{relatedTarget:0}),Hf=un(AR),DR=Ve({},Ds,{animationName:0,elapsedTime:0,pseudoElement:0}),OR=un(DR),LR=Ve({},Ds,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),_R=un(LR),IR=Ve({},Ds,{data:0}),cg=un(IR),NR={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},FR={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"},jR={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function VR(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=jR[e])?!!t[e]:!1}function lm(){return VR}var zR=Ve({},yl,{key:function(e){if(e.key){var t=NR[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Tu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?FR[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:lm,charCode:function(e){return e.type==="keypress"?Tu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Tu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),BR=un(zR),UR=Ve({},Xc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),fg=un(UR),$R=Ve({},yl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:lm}),HR=un($R),WR=Ve({},Ds,{propertyName:0,elapsedTime:0,pseudoElement:0}),KR=un(WR),qR=Ve({},Xc,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),GR=un(qR),QR=[9,13,27,32],um=Mr&&"CompositionEvent"in window,Sa=null;Mr&&"documentMode"in document&&(Sa=document.documentMode);var XR=Mr&&"TextEvent"in window&&!Sa,sx=Mr&&(!um||Sa&&8<Sa&&11>=Sa),dg=" ",hg=!1;function ax(e,t){switch(e){case"keyup":return QR.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function lx(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Fo=!1;function YR(e,t){switch(e){case"compositionend":return lx(t);case"keypress":return t.which!==32?null:(hg=!0,dg);case"textInput":return e=t.data,e===dg&&hg?null:e;default:return null}}function ZR(e,t){if(Fo)return e==="compositionend"||!um&&ax(e,t)?(e=ox(),Ru=sm=oi=null,Fo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return sx&&t.locale!=="ko"?null:t.data;default:return null}}var JR={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 pg(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!JR[e.type]:t==="textarea"}function ux(e,t,n,r){z1(r),t=oc(t,"onChange"),0<t.length&&(n=new am("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ba=null,Ua=null;function eT(e){xx(e,0)}function Yc(e){var t=zo(e);if(L1(t))return e}function tT(e,t){if(e==="change")return t}var cx=!1;if(Mr){var Wf;if(Mr){var Kf="oninput"in document;if(!Kf){var mg=document.createElement("div");mg.setAttribute("oninput","return;"),Kf=typeof mg.oninput=="function"}Wf=Kf}else Wf=!1;cx=Wf&&(!document.documentMode||9<document.documentMode)}function yg(){ba&&(ba.detachEvent("onpropertychange",fx),Ua=ba=null)}function fx(e){if(e.propertyName==="value"&&Yc(Ua)){var t=[];ux(t,Ua,e,tm(e)),H1(eT,t)}}function nT(e,t,n){e==="focusin"?(yg(),ba=t,Ua=n,ba.attachEvent("onpropertychange",fx)):e==="focusout"&&yg()}function rT(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Yc(Ua)}function iT(e,t){if(e==="click")return Yc(t)}function oT(e,t){if(e==="input"||e==="change")return Yc(t)}function sT(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Fn=typeof Object.is=="function"?Object.is:sT;function $a(e,t){if(Fn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Kd.call(t,i)||!Fn(e[i],t[i]))return!1}return!0}function gg(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function vg(e,t){var n=gg(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=gg(n)}}function dx(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?dx(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function hx(){for(var e=window,t=Zu();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Zu(e.document)}return t}function cm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function aT(e){var t=hx(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dx(n.ownerDocument.documentElement,n)){if(r!==null&&cm(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=vg(n,o);var s=vg(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var lT=Mr&&"documentMode"in document&&11>=document.documentMode,jo=null,fh=null,Ca=null,dh=!1;function wg(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;dh||jo==null||jo!==Zu(r)||(r=jo,"selectionStart"in r&&cm(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ca&&$a(Ca,r)||(Ca=r,r=oc(fh,"onSelect"),0<r.length&&(t=new am("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=jo)))}function Yl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Vo={animationend:Yl("Animation","AnimationEnd"),animationiteration:Yl("Animation","AnimationIteration"),animationstart:Yl("Animation","AnimationStart"),transitionend:Yl("Transition","TransitionEnd")},qf={},px={};Mr&&(px=document.createElement("div").style,"AnimationEvent"in window||(delete Vo.animationend.animation,delete Vo.animationiteration.animation,delete Vo.animationstart.animation),"TransitionEvent"in window||delete Vo.transitionend.transition);function Zc(e){if(qf[e])return qf[e];if(!Vo[e])return e;var t=Vo[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in px)return qf[e]=t[n];return e}var mx=Zc("animationend"),yx=Zc("animationiteration"),gx=Zc("animationstart"),vx=Zc("transitionend"),wx=new Map,xg="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ei(e,t){wx.set(e,t),yo(t,[e])}for(var Gf=0;Gf<xg.length;Gf++){var Qf=xg[Gf],uT=Qf.toLowerCase(),cT=Qf[0].toUpperCase()+Qf.slice(1);Ei(uT,"on"+cT)}Ei(mx,"onAnimationEnd");Ei(yx,"onAnimationIteration");Ei(gx,"onAnimationStart");Ei("dblclick","onDoubleClick");Ei("focusin","onFocus");Ei("focusout","onBlur");Ei(vx,"onTransitionEnd");gs("onMouseEnter",["mouseout","mouseover"]);gs("onMouseLeave",["mouseout","mouseover"]);gs("onPointerEnter",["pointerout","pointerover"]);gs("onPointerLeave",["pointerout","pointerover"]);yo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));yo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));yo("onBeforeInput",["compositionend","keypress","textInput","paste"]);yo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));yo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));yo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ma="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),fT=new Set("cancel close invalid load scroll toggle".split(" ").concat(ma));function Sg(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,uR(r,t,void 0,e),e.currentTarget=null}function xx(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==o&&i.isPropagationStopped())break e;Sg(i,a,u),o=l}else for(s=0;s<r.length;s++){if(a=r[s],l=a.instance,u=a.currentTarget,a=a.listener,l!==o&&i.isPropagationStopped())break e;Sg(i,a,u),o=l}}}if(ec)throw e=ah,ec=!1,ah=null,e}function Le(e,t){var n=t[gh];n===void 0&&(n=t[gh]=new Set);var r=e+"__bubble";n.has(r)||(Sx(t,e,2,!1),n.add(r))}function Xf(e,t,n){var r=0;t&&(r|=4),Sx(n,e,r,t)}var Zl="_reactListening"+Math.random().toString(36).slice(2);function Ha(e){if(!e[Zl]){e[Zl]=!0,P1.forEach(function(n){n!=="selectionchange"&&(fT.has(n)||Xf(n,!1,e),Xf(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Zl]||(t[Zl]=!0,Xf("selectionchange",!1,t))}}function Sx(e,t,n,r){switch(ix(t)){case 1:var i=kR;break;case 4:i=RR;break;default:i=om}n=i.bind(null,t,n,e),i=void 0,!sh||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Yf(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var a=r.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;s=s.return}for(;a!==null;){if(s=ji(a),s===null)return;if(l=s.tag,l===5||l===6){r=o=s;continue e}a=a.parentNode}}r=r.return}H1(function(){var u=o,c=tm(n),f=[];e:{var d=wx.get(e);if(d!==void 0){var h=am,p=e;switch(e){case"keypress":if(Tu(n)===0)break e;case"keydown":case"keyup":h=BR;break;case"focusin":p="focus",h=Hf;break;case"focusout":p="blur",h=Hf;break;case"beforeblur":case"afterblur":h=Hf;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=ug;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=MR;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=HR;break;case mx:case yx:case gx:h=OR;break;case vx:h=KR;break;case"scroll":h=TR;break;case"wheel":h=GR;break;case"copy":case"cut":case"paste":h=_R;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=fg}var m=(t&4)!==0,v=!m&&e==="scroll",y=m?d!==null?d+"Capture":null:d;m=[];for(var g=u,w;g!==null;){w=g;var x=w.stateNode;if(w.tag===5&&x!==null&&(w=x,y!==null&&(x=ja(g,y),x!=null&&m.push(Wa(g,x,w)))),v)break;g=g.return}0<m.length&&(d=new h(d,p,null,n,c),f.push({event:d,listeners:m}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",d&&n!==ih&&(p=n.relatedTarget||n.fromElement)&&(ji(p)||p[Ar]))break e;if((h||d)&&(d=c.window===c?c:(d=c.ownerDocument)?d.defaultView||d.parentWindow:window,h?(p=n.relatedTarget||n.toElement,h=u,p=p?ji(p):null,p!==null&&(v=go(p),p!==v||p.tag!==5&&p.tag!==6)&&(p=null)):(h=null,p=u),h!==p)){if(m=ug,x="onMouseLeave",y="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(m=fg,x="onPointerLeave",y="onPointerEnter",g="pointer"),v=h==null?d:zo(h),w=p==null?d:zo(p),d=new m(x,g+"leave",h,n,c),d.target=v,d.relatedTarget=w,x=null,ji(c)===u&&(m=new m(y,g+"enter",p,n,c),m.target=w,m.relatedTarget=v,x=m),v=x,h&&p)t:{for(m=h,y=p,g=0,w=m;w;w=Po(w))g++;for(w=0,x=y;x;x=Po(x))w++;for(;0<g-w;)m=Po(m),g--;for(;0<w-g;)y=Po(y),w--;for(;g--;){if(m===y||y!==null&&m===y.alternate)break t;m=Po(m),y=Po(y)}m=null}else m=null;h!==null&&bg(f,d,h,m,!1),p!==null&&v!==null&&bg(f,v,p,m,!0)}}e:{if(d=u?zo(u):window,h=d.nodeName&&d.nodeName.toLowerCase(),h==="select"||h==="input"&&d.type==="file")var E=tT;else if(pg(d))if(cx)E=oT;else{E=rT;var T=nT}else(h=d.nodeName)&&h.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(E=iT);if(E&&(E=E(e,u))){ux(f,E,n,c);break e}T&&T(e,d,u),e==="focusout"&&(T=d._wrapperState)&&T.controlled&&d.type==="number"&&Jd(d,"number",d.value)}switch(T=u?zo(u):window,e){case"focusin":(pg(T)||T.contentEditable==="true")&&(jo=T,fh=u,Ca=null);break;case"focusout":Ca=fh=jo=null;break;case"mousedown":dh=!0;break;case"contextmenu":case"mouseup":case"dragend":dh=!1,wg(f,n,c);break;case"selectionchange":if(lT)break;case"keydown":case"keyup":wg(f,n,c)}var S;if(um)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Fo?ax(e,n)&&(b="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(b="onCompositionStart");b&&(sx&&n.locale!=="ko"&&(Fo||b!=="onCompositionStart"?b==="onCompositionEnd"&&Fo&&(S=ox()):(oi=c,sm="value"in oi?oi.value:oi.textContent,Fo=!0)),T=oc(u,b),0<T.length&&(b=new cg(b,e,null,n,c),f.push({event:b,listeners:T}),S?b.data=S:(S=lx(n),S!==null&&(b.data=S)))),(S=XR?YR(e,n):ZR(e,n))&&(u=oc(u,"onBeforeInput"),0<u.length&&(c=new cg("onBeforeInput","beforeinput",null,n,c),f.push({event:c,listeners:u}),c.data=S))}xx(f,t)})}function Wa(e,t,n){return{instance:e,listener:t,currentTarget:n}}function oc(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=ja(e,n),o!=null&&r.unshift(Wa(e,o,i)),o=ja(e,t),o!=null&&r.push(Wa(e,o,i))),e=e.return}return r}function Po(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function bg(e,t,n,r,i){for(var o=t._reactName,s=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,i?(l=ja(n,o),l!=null&&s.unshift(Wa(n,l,a))):i||(l=ja(n,o),l!=null&&s.push(Wa(n,l,a)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var dT=/\r\n?/g,hT=/\u0000|\uFFFD/g;function Cg(e){return(typeof e=="string"?e:""+e).replace(dT,`
|
|
38
|
-
`).replace(hT,"")}function Jl(e,t,n){if(t=Cg(t),Cg(e)!==t&&n)throw Error(F(425))}function sc(){}var hh=null,ph=null;function mh(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var yh=typeof setTimeout=="function"?setTimeout:void 0,pT=typeof clearTimeout=="function"?clearTimeout:void 0,Eg=typeof Promise=="function"?Promise:void 0,mT=typeof queueMicrotask=="function"?queueMicrotask:typeof Eg<"u"?function(e){return Eg.resolve(null).then(e).catch(yT)}:yh;function yT(e){setTimeout(function(){throw e})}function Zf(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Ba(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Ba(t)}function di(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function kg(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Os=Math.random().toString(36).slice(2),tr="__reactFiber$"+Os,Ka="__reactProps$"+Os,Ar="__reactContainer$"+Os,gh="__reactEvents$"+Os,gT="__reactListeners$"+Os,vT="__reactHandles$"+Os;function ji(e){var t=e[tr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ar]||n[tr]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=kg(e);e!==null;){if(n=e[tr])return n;e=kg(e)}return t}e=n,n=e.parentNode}return null}function gl(e){return e=e[tr]||e[Ar],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function zo(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(F(33))}function Jc(e){return e[Ka]||null}var vh=[],Bo=-1;function ki(e){return{current:e}}function _e(e){0>Bo||(e.current=vh[Bo],vh[Bo]=null,Bo--)}function Oe(e,t){Bo++,vh[Bo]=e.current,e.current=t}var wi={},Rt=ki(wi),Kt=ki(!1),so=wi;function vs(e,t){var n=e.type.contextTypes;if(!n)return wi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function qt(e){return e=e.childContextTypes,e!=null}function ac(){_e(Kt),_e(Rt)}function Rg(e,t,n){if(Rt.current!==wi)throw Error(F(168));Oe(Rt,t),Oe(Kt,n)}function bx(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(F(108,nR(e)||"Unknown",i));return Ve({},n,r)}function lc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||wi,so=Rt.current,Oe(Rt,e),Oe(Kt,Kt.current),!0}function Tg(e,t,n){var r=e.stateNode;if(!r)throw Error(F(169));n?(e=bx(e,t,so),r.__reactInternalMemoizedMergedChildContext=e,_e(Kt),_e(Rt),Oe(Rt,e)):_e(Kt),Oe(Kt,n)}var vr=null,ef=!1,Jf=!1;function Cx(e){vr===null?vr=[e]:vr.push(e)}function wT(e){ef=!0,Cx(e)}function Ri(){if(!Jf&&vr!==null){Jf=!0;var e=0,t=Re;try{var n=vr;for(Re=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}vr=null,ef=!1}catch(i){throw vr!==null&&(vr=vr.slice(e+1)),G1(nm,Ri),i}finally{Re=t,Jf=!1}}return null}var Uo=[],$o=0,uc=null,cc=0,yn=[],gn=0,ao=null,Cr=1,Er="";function _i(e,t){Uo[$o++]=cc,Uo[$o++]=uc,uc=e,cc=t}function Ex(e,t,n){yn[gn++]=Cr,yn[gn++]=Er,yn[gn++]=ao,ao=e;var r=Cr;e=Er;var i=32-_n(r)-1;r&=~(1<<i),n+=1;var o=32-_n(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,Cr=1<<32-_n(t)+i|n<<i|r,Er=o+e}else Cr=1<<o|n<<i|r,Er=e}function fm(e){e.return!==null&&(_i(e,1),Ex(e,1,0))}function dm(e){for(;e===uc;)uc=Uo[--$o],Uo[$o]=null,cc=Uo[--$o],Uo[$o]=null;for(;e===ao;)ao=yn[--gn],yn[gn]=null,Er=yn[--gn],yn[gn]=null,Cr=yn[--gn],yn[gn]=null}var rn=null,nn=null,Ne=!1,Ln=null;function kx(e,t){var n=wn(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Pg(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,rn=e,nn=di(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,rn=e,nn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=ao!==null?{id:Cr,overflow:Er}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=wn(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,rn=e,nn=null,!0):!1;default:return!1}}function wh(e){return(e.mode&1)!==0&&(e.flags&128)===0}function xh(e){if(Ne){var t=nn;if(t){var n=t;if(!Pg(e,t)){if(wh(e))throw Error(F(418));t=di(n.nextSibling);var r=rn;t&&Pg(e,t)?kx(r,n):(e.flags=e.flags&-4097|2,Ne=!1,rn=e)}}else{if(wh(e))throw Error(F(418));e.flags=e.flags&-4097|2,Ne=!1,rn=e}}}function Mg(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;rn=e}function eu(e){if(e!==rn)return!1;if(!Ne)return Mg(e),Ne=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!mh(e.type,e.memoizedProps)),t&&(t=nn)){if(wh(e))throw Rx(),Error(F(418));for(;t;)kx(e,t),t=di(t.nextSibling)}if(Mg(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(F(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){nn=di(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}nn=null}}else nn=rn?di(e.stateNode.nextSibling):null;return!0}function Rx(){for(var e=nn;e;)e=di(e.nextSibling)}function ws(){nn=rn=null,Ne=!1}function hm(e){Ln===null?Ln=[e]:Ln.push(e)}var xT=Ir.ReactCurrentBatchConfig;function ta(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(F(309));var r=n.stateNode}if(!r)throw Error(F(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(s){var a=i.refs;s===null?delete a[o]:a[o]=s},t._stringRef=o,t)}if(typeof e!="string")throw Error(F(284));if(!n._owner)throw Error(F(290,e))}return e}function tu(e,t){throw e=Object.prototype.toString.call(t),Error(F(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ag(e){var t=e._init;return t(e._payload)}function Tx(e){function t(y,g){if(e){var w=y.deletions;w===null?(y.deletions=[g],y.flags|=16):w.push(g)}}function n(y,g){if(!e)return null;for(;g!==null;)t(y,g),g=g.sibling;return null}function r(y,g){for(y=new Map;g!==null;)g.key!==null?y.set(g.key,g):y.set(g.index,g),g=g.sibling;return y}function i(y,g){return y=yi(y,g),y.index=0,y.sibling=null,y}function o(y,g,w){return y.index=w,e?(w=y.alternate,w!==null?(w=w.index,w<g?(y.flags|=2,g):w):(y.flags|=2,g)):(y.flags|=1048576,g)}function s(y){return e&&y.alternate===null&&(y.flags|=2),y}function a(y,g,w,x){return g===null||g.tag!==6?(g=sd(w,y.mode,x),g.return=y,g):(g=i(g,w),g.return=y,g)}function l(y,g,w,x){var E=w.type;return E===No?c(y,g,w.props.children,x,w.key):g!==null&&(g.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Wr&&Ag(E)===g.type)?(x=i(g,w.props),x.ref=ta(y,g,w),x.return=y,x):(x=_u(w.type,w.key,w.props,null,y.mode,x),x.ref=ta(y,g,w),x.return=y,x)}function u(y,g,w,x){return g===null||g.tag!==4||g.stateNode.containerInfo!==w.containerInfo||g.stateNode.implementation!==w.implementation?(g=ad(w,y.mode,x),g.return=y,g):(g=i(g,w.children||[]),g.return=y,g)}function c(y,g,w,x,E){return g===null||g.tag!==7?(g=no(w,y.mode,x,E),g.return=y,g):(g=i(g,w),g.return=y,g)}function f(y,g,w){if(typeof g=="string"&&g!==""||typeof g=="number")return g=sd(""+g,y.mode,w),g.return=y,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Hl:return w=_u(g.type,g.key,g.props,null,y.mode,w),w.ref=ta(y,null,g),w.return=y,w;case Io:return g=ad(g,y.mode,w),g.return=y,g;case Wr:var x=g._init;return f(y,x(g._payload),w)}if(ha(g)||Xs(g))return g=no(g,y.mode,w,null),g.return=y,g;tu(y,g)}return null}function d(y,g,w,x){var E=g!==null?g.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return E!==null?null:a(y,g,""+w,x);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Hl:return w.key===E?l(y,g,w,x):null;case Io:return w.key===E?u(y,g,w,x):null;case Wr:return E=w._init,d(y,g,E(w._payload),x)}if(ha(w)||Xs(w))return E!==null?null:c(y,g,w,x,null);tu(y,w)}return null}function h(y,g,w,x,E){if(typeof x=="string"&&x!==""||typeof x=="number")return y=y.get(w)||null,a(g,y,""+x,E);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Hl:return y=y.get(x.key===null?w:x.key)||null,l(g,y,x,E);case Io:return y=y.get(x.key===null?w:x.key)||null,u(g,y,x,E);case Wr:var T=x._init;return h(y,g,w,T(x._payload),E)}if(ha(x)||Xs(x))return y=y.get(w)||null,c(g,y,x,E,null);tu(g,x)}return null}function p(y,g,w,x){for(var E=null,T=null,S=g,b=g=0,A=null;S!==null&&b<w.length;b++){S.index>b?(A=S,S=null):A=S.sibling;var M=d(y,S,w[b],x);if(M===null){S===null&&(S=A);break}e&&S&&M.alternate===null&&t(y,S),g=o(M,g,b),T===null?E=M:T.sibling=M,T=M,S=A}if(b===w.length)return n(y,S),Ne&&_i(y,b),E;if(S===null){for(;b<w.length;b++)S=f(y,w[b],x),S!==null&&(g=o(S,g,b),T===null?E=S:T.sibling=S,T=S);return Ne&&_i(y,b),E}for(S=r(y,S);b<w.length;b++)A=h(S,y,b,w[b],x),A!==null&&(e&&A.alternate!==null&&S.delete(A.key===null?b:A.key),g=o(A,g,b),T===null?E=A:T.sibling=A,T=A);return e&&S.forEach(function(I){return t(y,I)}),Ne&&_i(y,b),E}function m(y,g,w,x){var E=Xs(w);if(typeof E!="function")throw Error(F(150));if(w=E.call(w),w==null)throw Error(F(151));for(var T=E=null,S=g,b=g=0,A=null,M=w.next();S!==null&&!M.done;b++,M=w.next()){S.index>b?(A=S,S=null):A=S.sibling;var I=d(y,S,M.value,x);if(I===null){S===null&&(S=A);break}e&&S&&I.alternate===null&&t(y,S),g=o(I,g,b),T===null?E=I:T.sibling=I,T=I,S=A}if(M.done)return n(y,S),Ne&&_i(y,b),E;if(S===null){for(;!M.done;b++,M=w.next())M=f(y,M.value,x),M!==null&&(g=o(M,g,b),T===null?E=M:T.sibling=M,T=M);return Ne&&_i(y,b),E}for(S=r(y,S);!M.done;b++,M=w.next())M=h(S,y,b,M.value,x),M!==null&&(e&&M.alternate!==null&&S.delete(M.key===null?b:M.key),g=o(M,g,b),T===null?E=M:T.sibling=M,T=M);return e&&S.forEach(function(z){return t(y,z)}),Ne&&_i(y,b),E}function v(y,g,w,x){if(typeof w=="object"&&w!==null&&w.type===No&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case Hl:e:{for(var E=w.key,T=g;T!==null;){if(T.key===E){if(E=w.type,E===No){if(T.tag===7){n(y,T.sibling),g=i(T,w.props.children),g.return=y,y=g;break e}}else if(T.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Wr&&Ag(E)===T.type){n(y,T.sibling),g=i(T,w.props),g.ref=ta(y,T,w),g.return=y,y=g;break e}n(y,T);break}else t(y,T);T=T.sibling}w.type===No?(g=no(w.props.children,y.mode,x,w.key),g.return=y,y=g):(x=_u(w.type,w.key,w.props,null,y.mode,x),x.ref=ta(y,g,w),x.return=y,y=x)}return s(y);case Io:e:{for(T=w.key;g!==null;){if(g.key===T)if(g.tag===4&&g.stateNode.containerInfo===w.containerInfo&&g.stateNode.implementation===w.implementation){n(y,g.sibling),g=i(g,w.children||[]),g.return=y,y=g;break e}else{n(y,g);break}else t(y,g);g=g.sibling}g=ad(w,y.mode,x),g.return=y,y=g}return s(y);case Wr:return T=w._init,v(y,g,T(w._payload),x)}if(ha(w))return p(y,g,w,x);if(Xs(w))return m(y,g,w,x);tu(y,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,g!==null&&g.tag===6?(n(y,g.sibling),g=i(g,w),g.return=y,y=g):(n(y,g),g=sd(w,y.mode,x),g.return=y,y=g),s(y)):n(y,g)}return v}var xs=Tx(!0),Px=Tx(!1),fc=ki(null),dc=null,Ho=null,pm=null;function mm(){pm=Ho=dc=null}function ym(e){var t=fc.current;_e(fc),e._currentValue=t}function Sh(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function es(e,t){dc=e,pm=Ho=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Wt=!0),e.firstContext=null)}function Cn(e){var t=e._currentValue;if(pm!==e)if(e={context:e,memoizedValue:t,next:null},Ho===null){if(dc===null)throw Error(F(308));Ho=e,dc.dependencies={lanes:0,firstContext:e}}else Ho=Ho.next=e;return t}var Vi=null;function gm(e){Vi===null?Vi=[e]:Vi.push(e)}function Mx(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,gm(t)):(n.next=i.next,i.next=n),t.interleaved=n,Dr(e,r)}function Dr(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Kr=!1;function vm(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ax(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Tr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function hi(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ve&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Dr(e,n)}return i=r.interleaved,i===null?(t.next=t,gm(r)):(t.next=i.next,i.next=t),r.interleaved=t,Dr(e,n)}function Pu(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,rm(e,n)}}function Dg(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function hc(e,t,n,r){var i=e.updateQueue;Kr=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?o=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==s&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(o!==null){var f=i.baseState;s=0,c=u=l=null,a=o;do{var d=a.lane,h=a.eventTime;if((r&d)===d){c!==null&&(c=c.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var p=e,m=a;switch(d=t,h=n,m.tag){case 1:if(p=m.payload,typeof p=="function"){f=p.call(h,f,d);break e}f=p;break e;case 3:p.flags=p.flags&-65537|128;case 0:if(p=m.payload,d=typeof p=="function"?p.call(h,f,d):p,d==null)break e;f=Ve({},f,d);break e;case 2:Kr=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[a]:d.push(a))}else h={eventTime:h,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=h,l=f):c=c.next=h,s|=d;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;d=a,a=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(c===null&&(l=f),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);uo|=s,e.lanes=s,e.memoizedState=f}}function Og(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(F(191,i));i.call(r)}}}var vl={},ir=ki(vl),qa=ki(vl),Ga=ki(vl);function zi(e){if(e===vl)throw Error(F(174));return e}function wm(e,t){switch(Oe(Ga,t),Oe(qa,e),Oe(ir,vl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:th(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=th(t,e)}_e(ir),Oe(ir,t)}function Ss(){_e(ir),_e(qa),_e(Ga)}function Dx(e){zi(Ga.current);var t=zi(ir.current),n=th(t,e.type);t!==n&&(Oe(qa,e),Oe(ir,n))}function xm(e){qa.current===e&&(_e(ir),_e(qa))}var Fe=ki(0);function pc(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ed=[];function Sm(){for(var e=0;e<ed.length;e++)ed[e]._workInProgressVersionPrimary=null;ed.length=0}var Mu=Ir.ReactCurrentDispatcher,td=Ir.ReactCurrentBatchConfig,lo=0,je=null,nt=null,at=null,mc=!1,Ea=!1,Qa=0,ST=0;function St(){throw Error(F(321))}function bm(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Fn(e[n],t[n]))return!1;return!0}function Cm(e,t,n,r,i,o){if(lo=o,je=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Mu.current=e===null||e.memoizedState===null?kT:RT,e=n(r,i),Ea){o=0;do{if(Ea=!1,Qa=0,25<=o)throw Error(F(301));o+=1,at=nt=null,t.updateQueue=null,Mu.current=TT,e=n(r,i)}while(Ea)}if(Mu.current=yc,t=nt!==null&&nt.next!==null,lo=0,at=nt=je=null,mc=!1,t)throw Error(F(300));return e}function Em(){var e=Qa!==0;return Qa=0,e}function Qn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return at===null?je.memoizedState=at=e:at=at.next=e,at}function En(){if(nt===null){var e=je.alternate;e=e!==null?e.memoizedState:null}else e=nt.next;var t=at===null?je.memoizedState:at.next;if(t!==null)at=t,nt=e;else{if(e===null)throw Error(F(310));nt=e,e={memoizedState:nt.memoizedState,baseState:nt.baseState,baseQueue:nt.baseQueue,queue:nt.queue,next:null},at===null?je.memoizedState=at=e:at=at.next=e}return at}function Xa(e,t){return typeof t=="function"?t(e):t}function nd(e){var t=En(),n=t.queue;if(n===null)throw Error(F(311));n.lastRenderedReducer=e;var r=nt,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var a=s=null,l=null,u=o;do{var c=u.lane;if((lo&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=f,s=r):l=l.next=f,je.lanes|=c,uo|=c}u=u.next}while(u!==null&&u!==o);l===null?s=r:l.next=a,Fn(r,t.memoizedState)||(Wt=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,je.lanes|=o,uo|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function rd(e){var t=En(),n=t.queue;if(n===null)throw Error(F(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);Fn(o,t.memoizedState)||(Wt=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Ox(){}function Lx(e,t){var n=je,r=En(),i=t(),o=!Fn(r.memoizedState,i);if(o&&(r.memoizedState=i,Wt=!0),r=r.queue,km(Nx.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||at!==null&&at.memoizedState.tag&1){if(n.flags|=2048,Ya(9,Ix.bind(null,n,r,i,t),void 0,null),ut===null)throw Error(F(349));lo&30||_x(n,t,i)}return i}function _x(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=je.updateQueue,t===null?(t={lastEffect:null,stores:null},je.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ix(e,t,n,r){t.value=n,t.getSnapshot=r,Fx(t)&&jx(e)}function Nx(e,t,n){return n(function(){Fx(t)&&jx(e)})}function Fx(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Fn(e,n)}catch{return!0}}function jx(e){var t=Dr(e,1);t!==null&&In(t,e,1,-1)}function Lg(e){var t=Qn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Xa,lastRenderedState:e},t.queue=e,e=e.dispatch=ET.bind(null,je,e),[t.memoizedState,e]}function Ya(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=je.updateQueue,t===null?(t={lastEffect:null,stores:null},je.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Vx(){return En().memoizedState}function Au(e,t,n,r){var i=Qn();je.flags|=e,i.memoizedState=Ya(1|t,n,void 0,r===void 0?null:r)}function tf(e,t,n,r){var i=En();r=r===void 0?null:r;var o=void 0;if(nt!==null){var s=nt.memoizedState;if(o=s.destroy,r!==null&&bm(r,s.deps)){i.memoizedState=Ya(t,n,o,r);return}}je.flags|=e,i.memoizedState=Ya(1|t,n,o,r)}function _g(e,t){return Au(8390656,8,e,t)}function km(e,t){return tf(2048,8,e,t)}function zx(e,t){return tf(4,2,e,t)}function Bx(e,t){return tf(4,4,e,t)}function Ux(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function $x(e,t,n){return n=n!=null?n.concat([e]):null,tf(4,4,Ux.bind(null,t,e),n)}function Rm(){}function Hx(e,t){var n=En();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&bm(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Wx(e,t){var n=En();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&bm(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Kx(e,t,n){return lo&21?(Fn(n,t)||(n=Y1(),je.lanes|=n,uo|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Wt=!0),e.memoizedState=n)}function bT(e,t){var n=Re;Re=n!==0&&4>n?n:4,e(!0);var r=td.transition;td.transition={};try{e(!1),t()}finally{Re=n,td.transition=r}}function qx(){return En().memoizedState}function CT(e,t,n){var r=mi(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Gx(e))Qx(t,n);else if(n=Mx(e,t,n,r),n!==null){var i=Ft();In(n,e,r,i),Xx(n,t,r)}}function ET(e,t,n){var r=mi(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Gx(e))Qx(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,a=o(s,n);if(i.hasEagerState=!0,i.eagerState=a,Fn(a,s)){var l=t.interleaved;l===null?(i.next=i,gm(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=Mx(e,t,i,r),n!==null&&(i=Ft(),In(n,e,r,i),Xx(n,t,r))}}function Gx(e){var t=e.alternate;return e===je||t!==null&&t===je}function Qx(e,t){Ea=mc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Xx(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,rm(e,n)}}var yc={readContext:Cn,useCallback:St,useContext:St,useEffect:St,useImperativeHandle:St,useInsertionEffect:St,useLayoutEffect:St,useMemo:St,useReducer:St,useRef:St,useState:St,useDebugValue:St,useDeferredValue:St,useTransition:St,useMutableSource:St,useSyncExternalStore:St,useId:St,unstable_isNewReconciler:!1},kT={readContext:Cn,useCallback:function(e,t){return Qn().memoizedState=[e,t===void 0?null:t],e},useContext:Cn,useEffect:_g,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Au(4194308,4,Ux.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Au(4194308,4,e,t)},useInsertionEffect:function(e,t){return Au(4,2,e,t)},useMemo:function(e,t){var n=Qn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Qn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=CT.bind(null,je,e),[r.memoizedState,e]},useRef:function(e){var t=Qn();return e={current:e},t.memoizedState=e},useState:Lg,useDebugValue:Rm,useDeferredValue:function(e){return Qn().memoizedState=e},useTransition:function(){var e=Lg(!1),t=e[0];return e=bT.bind(null,e[1]),Qn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=je,i=Qn();if(Ne){if(n===void 0)throw Error(F(407));n=n()}else{if(n=t(),ut===null)throw Error(F(349));lo&30||_x(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,_g(Nx.bind(null,r,o,e),[e]),r.flags|=2048,Ya(9,Ix.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Qn(),t=ut.identifierPrefix;if(Ne){var n=Er,r=Cr;n=(r&~(1<<32-_n(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Qa++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=ST++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},RT={readContext:Cn,useCallback:Hx,useContext:Cn,useEffect:km,useImperativeHandle:$x,useInsertionEffect:zx,useLayoutEffect:Bx,useMemo:Wx,useReducer:nd,useRef:Vx,useState:function(){return nd(Xa)},useDebugValue:Rm,useDeferredValue:function(e){var t=En();return Kx(t,nt.memoizedState,e)},useTransition:function(){var e=nd(Xa)[0],t=En().memoizedState;return[e,t]},useMutableSource:Ox,useSyncExternalStore:Lx,useId:qx,unstable_isNewReconciler:!1},TT={readContext:Cn,useCallback:Hx,useContext:Cn,useEffect:km,useImperativeHandle:$x,useInsertionEffect:zx,useLayoutEffect:Bx,useMemo:Wx,useReducer:rd,useRef:Vx,useState:function(){return rd(Xa)},useDebugValue:Rm,useDeferredValue:function(e){var t=En();return nt===null?t.memoizedState=e:Kx(t,nt.memoizedState,e)},useTransition:function(){var e=rd(Xa)[0],t=En().memoizedState;return[e,t]},useMutableSource:Ox,useSyncExternalStore:Lx,useId:qx,unstable_isNewReconciler:!1};function Pn(e,t){if(e&&e.defaultProps){t=Ve({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function bh(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Ve({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var nf={isMounted:function(e){return(e=e._reactInternals)?go(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ft(),i=mi(e),o=Tr(r,i);o.payload=t,n!=null&&(o.callback=n),t=hi(e,o,i),t!==null&&(In(t,e,i,r),Pu(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ft(),i=mi(e),o=Tr(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=hi(e,o,i),t!==null&&(In(t,e,i,r),Pu(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ft(),r=mi(e),i=Tr(n,r);i.tag=2,t!=null&&(i.callback=t),t=hi(e,i,r),t!==null&&(In(t,e,r,n),Pu(t,e,r))}};function Ig(e,t,n,r,i,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,s):t.prototype&&t.prototype.isPureReactComponent?!$a(n,r)||!$a(i,o):!0}function Yx(e,t,n){var r=!1,i=wi,o=t.contextType;return typeof o=="object"&&o!==null?o=Cn(o):(i=qt(t)?so:Rt.current,r=t.contextTypes,o=(r=r!=null)?vs(e,i):wi),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=nf,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Ng(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&nf.enqueueReplaceState(t,t.state,null)}function Ch(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},vm(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=Cn(o):(o=qt(t)?so:Rt.current,i.context=vs(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(bh(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&nf.enqueueReplaceState(i,i.state,null),hc(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function bs(e,t){try{var n="",r=t;do n+=tR(r),r=r.return;while(r);var i=n}catch(o){i=`
|
|
37
|
+
`+i[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{jf=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?da(e):""}function tR(e){switch(e.tag){case 5:return da(e.type);case 16:return da("Lazy");case 13:return da("Suspense");case 19:return da("SuspenseList");case 0:case 2:case 15:return e=Vf(e.type,!1),e;case 11:return e=Vf(e.type.render,!1),e;case 1:return e=Vf(e.type,!0),e;default:return""}}function Xd(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case No:return"Fragment";case Io:return"Portal";case qd:return"Profiler";case Zp:return"StrictMode";case Gd:return"Suspense";case Qd:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case A1:return(e.displayName||"Context")+".Consumer";case M1:return(e._context.displayName||"Context")+".Provider";case Jp:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case em:return t=e.displayName||null,t!==null?t:Xd(e.type)||"Memo";case Hr:t=e._payload,e=e._init;try{return Xd(e(t))}catch{}}return null}function nR(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Xd(t);case 8:return t===Zp?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function vi(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function O1(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function rR(e){var t=O1(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Hl(e){e._valueTracker||(e._valueTracker=rR(e))}function L1(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=O1(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Zu(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Yd(e,t){var n=t.checked;return Ve({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Jy(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=vi(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function _1(e,t){t=t.checked,t!=null&&Yp(e,"checked",t,!1)}function Zd(e,t){_1(e,t);var n=vi(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Jd(e,t.type,n):t.hasOwnProperty("defaultValue")&&Jd(e,t.type,vi(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function eg(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Jd(e,t,n){(t!=="number"||Zu(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ha=Array.isArray;function Xo(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+vi(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function eh(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(F(91));return Ve({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function tg(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(F(92));if(ha(n)){if(1<n.length)throw Error(F(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:vi(n)}}function I1(e,t){var n=vi(t.value),r=vi(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function ng(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function N1(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function th(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?N1(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Kl,F1=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Kl=Kl||document.createElement("div"),Kl.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Kl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Fa(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var wa={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},iR=["Webkit","ms","Moz","O"];Object.keys(wa).forEach(function(e){iR.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),wa[t]=wa[e]})});function j1(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||wa.hasOwnProperty(e)&&wa[e]?(""+t).trim():t+"px"}function V1(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=j1(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var oR=Ve({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function nh(e,t){if(t){if(oR[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(F(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(F(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(F(61))}if(t.style!=null&&typeof t.style!="object")throw Error(F(62))}}function rh(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ih=null;function tm(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var oh=null,Yo=null,Zo=null;function rg(e){if(e=gl(e)){if(typeof oh!="function")throw Error(F(280));var t=e.stateNode;t&&(t=Jc(t),oh(e.stateNode,e.type,t))}}function z1(e){Yo?Zo?Zo.push(e):Zo=[e]:Yo=e}function B1(){if(Yo){var e=Yo,t=Zo;if(Zo=Yo=null,rg(e),t)for(e=0;e<t.length;e++)rg(t[e])}}function U1(e,t){return e(t)}function $1(){}var zf=!1;function W1(e,t,n){if(zf)return e(t,n);zf=!0;try{return U1(e,t,n)}finally{zf=!1,(Yo!==null||Zo!==null)&&($1(),B1())}}function ja(e,t){var n=e.stateNode;if(n===null)return null;var r=Jc(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(F(231,t,typeof n));return n}var sh=!1;if(Mr)try{var Ys={};Object.defineProperty(Ys,"passive",{get:function(){sh=!0}}),window.addEventListener("test",Ys,Ys),window.removeEventListener("test",Ys,Ys)}catch{sh=!1}function sR(e,t,n,r,i,o,s,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var xa=!1,Ju=null,ec=!1,ah=null,aR={onError:function(e){xa=!0,Ju=e}};function lR(e,t,n,r,i,o,s,a,l){xa=!1,Ju=null,sR.apply(aR,arguments)}function uR(e,t,n,r,i,o,s,a,l){if(lR.apply(this,arguments),xa){if(xa){var u=Ju;xa=!1,Ju=null}else throw Error(F(198));ec||(ec=!0,ah=u)}}function go(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function H1(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function ig(e){if(go(e)!==e)throw Error(F(188))}function cR(e){var t=e.alternate;if(!t){if(t=go(e),t===null)throw Error(F(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return ig(i),e;if(o===r)return ig(i),t;o=o.sibling}throw Error(F(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,a=i.child;a;){if(a===n){s=!0,n=i,r=o;break}if(a===r){s=!0,r=i,n=o;break}a=a.sibling}if(!s){for(a=o.child;a;){if(a===n){s=!0,n=o,r=i;break}if(a===r){s=!0,r=o,n=i;break}a=a.sibling}if(!s)throw Error(F(189))}}if(n.alternate!==r)throw Error(F(190))}if(n.tag!==3)throw Error(F(188));return n.stateNode.current===n?e:t}function K1(e){return e=cR(e),e!==null?q1(e):null}function q1(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=q1(e);if(t!==null)return t;e=e.sibling}return null}var G1=an.unstable_scheduleCallback,og=an.unstable_cancelCallback,fR=an.unstable_shouldYield,dR=an.unstable_requestPaint,Ke=an.unstable_now,hR=an.unstable_getCurrentPriorityLevel,nm=an.unstable_ImmediatePriority,Q1=an.unstable_UserBlockingPriority,tc=an.unstable_NormalPriority,pR=an.unstable_LowPriority,X1=an.unstable_IdlePriority,Qc=null,rr=null;function mR(e){if(rr&&typeof rr.onCommitFiberRoot=="function")try{rr.onCommitFiberRoot(Qc,e,void 0,(e.current.flags&128)===128)}catch{}}var _n=Math.clz32?Math.clz32:vR,yR=Math.log,gR=Math.LN2;function vR(e){return e>>>=0,e===0?32:31-(yR(e)/gR|0)|0}var ql=64,Gl=4194304;function pa(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function nc(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~i;a!==0?r=pa(a):(o&=s,o!==0&&(r=pa(o)))}else s=n&~i,s!==0?r=pa(s):o!==0&&(r=pa(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-_n(t),i=1<<n,r|=e[n],t&=~i;return r}function wR(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function xR(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-_n(o),a=1<<s,l=i[s];l===-1?(!(a&n)||a&r)&&(i[s]=wR(a,t)):l<=t&&(e.expiredLanes|=a),o&=~a}}function lh(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Y1(){var e=ql;return ql<<=1,!(ql&4194240)&&(ql=64),e}function Bf(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ml(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-_n(t),e[t]=n}function SR(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-_n(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function rm(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-_n(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var Re=0;function Z1(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var J1,im,ex,tx,nx,uh=!1,Ql=[],ui=null,ci=null,fi=null,Va=new Map,za=new Map,Gr=[],bR="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function sg(e,t){switch(e){case"focusin":case"focusout":ui=null;break;case"dragenter":case"dragleave":ci=null;break;case"mouseover":case"mouseout":fi=null;break;case"pointerover":case"pointerout":Va.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":za.delete(t.pointerId)}}function Zs(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=gl(t),t!==null&&im(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function CR(e,t,n,r,i){switch(t){case"focusin":return ui=Zs(ui,e,t,n,r,i),!0;case"dragenter":return ci=Zs(ci,e,t,n,r,i),!0;case"mouseover":return fi=Zs(fi,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Va.set(o,Zs(Va.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,za.set(o,Zs(za.get(o)||null,e,t,n,r,i)),!0}return!1}function rx(e){var t=ji(e.target);if(t!==null){var n=go(t);if(n!==null){if(t=n.tag,t===13){if(t=H1(n),t!==null){e.blockedOn=t,nx(e.priority,function(){ex(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ku(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=ch(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);ih=r,n.target.dispatchEvent(r),ih=null}else return t=gl(n),t!==null&&im(t),e.blockedOn=n,!1;t.shift()}return!0}function ag(e,t,n){ku(e)&&n.delete(t)}function ER(){uh=!1,ui!==null&&ku(ui)&&(ui=null),ci!==null&&ku(ci)&&(ci=null),fi!==null&&ku(fi)&&(fi=null),Va.forEach(ag),za.forEach(ag)}function Js(e,t){e.blockedOn===t&&(e.blockedOn=null,uh||(uh=!0,an.unstable_scheduleCallback(an.unstable_NormalPriority,ER)))}function Ba(e){function t(i){return Js(i,e)}if(0<Ql.length){Js(Ql[0],e);for(var n=1;n<Ql.length;n++){var r=Ql[n];r.blockedOn===e&&(r.blockedOn=null)}}for(ui!==null&&Js(ui,e),ci!==null&&Js(ci,e),fi!==null&&Js(fi,e),Va.forEach(t),za.forEach(t),n=0;n<Gr.length;n++)r=Gr[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Gr.length&&(n=Gr[0],n.blockedOn===null);)rx(n),n.blockedOn===null&&Gr.shift()}var Jo=Ir.ReactCurrentBatchConfig,rc=!0;function kR(e,t,n,r){var i=Re,o=Jo.transition;Jo.transition=null;try{Re=1,om(e,t,n,r)}finally{Re=i,Jo.transition=o}}function RR(e,t,n,r){var i=Re,o=Jo.transition;Jo.transition=null;try{Re=4,om(e,t,n,r)}finally{Re=i,Jo.transition=o}}function om(e,t,n,r){if(rc){var i=ch(e,t,n,r);if(i===null)Yf(e,t,r,ic,n),sg(e,r);else if(CR(i,e,t,n,r))r.stopPropagation();else if(sg(e,r),t&4&&-1<bR.indexOf(e)){for(;i!==null;){var o=gl(i);if(o!==null&&J1(o),o=ch(e,t,n,r),o===null&&Yf(e,t,r,ic,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else Yf(e,t,r,null,n)}}var ic=null;function ch(e,t,n,r){if(ic=null,e=tm(r),e=ji(e),e!==null)if(t=go(e),t===null)e=null;else if(n=t.tag,n===13){if(e=H1(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return ic=e,null}function ix(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(hR()){case nm:return 1;case Q1:return 4;case tc:case pR:return 16;case X1:return 536870912;default:return 16}default:return 16}}var oi=null,sm=null,Ru=null;function ox(){if(Ru)return Ru;var e,t=sm,n=t.length,r,i="value"in oi?oi.value:oi.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===i[o-r];r++);return Ru=i.slice(e,1<r?1-r:void 0)}function Tu(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Xl(){return!0}function lg(){return!1}function un(e){function t(n,r,i,o,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(o):o[a]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Xl:lg,this.isPropagationStopped=lg,this}return Ve(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Xl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Xl)},persist:function(){},isPersistent:Xl}),t}var Ds={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},am=un(Ds),yl=Ve({},Ds,{view:0,detail:0}),TR=un(yl),Uf,$f,ea,Xc=Ve({},yl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:lm,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ea&&(ea&&e.type==="mousemove"?(Uf=e.screenX-ea.screenX,$f=e.screenY-ea.screenY):$f=Uf=0,ea=e),Uf)},movementY:function(e){return"movementY"in e?e.movementY:$f}}),ug=un(Xc),PR=Ve({},Xc,{dataTransfer:0}),MR=un(PR),AR=Ve({},yl,{relatedTarget:0}),Wf=un(AR),DR=Ve({},Ds,{animationName:0,elapsedTime:0,pseudoElement:0}),OR=un(DR),LR=Ve({},Ds,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),_R=un(LR),IR=Ve({},Ds,{data:0}),cg=un(IR),NR={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},FR={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"},jR={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function VR(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=jR[e])?!!t[e]:!1}function lm(){return VR}var zR=Ve({},yl,{key:function(e){if(e.key){var t=NR[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Tu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?FR[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:lm,charCode:function(e){return e.type==="keypress"?Tu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Tu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),BR=un(zR),UR=Ve({},Xc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),fg=un(UR),$R=Ve({},yl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:lm}),WR=un($R),HR=Ve({},Ds,{propertyName:0,elapsedTime:0,pseudoElement:0}),KR=un(HR),qR=Ve({},Xc,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),GR=un(qR),QR=[9,13,27,32],um=Mr&&"CompositionEvent"in window,Sa=null;Mr&&"documentMode"in document&&(Sa=document.documentMode);var XR=Mr&&"TextEvent"in window&&!Sa,sx=Mr&&(!um||Sa&&8<Sa&&11>=Sa),dg=" ",hg=!1;function ax(e,t){switch(e){case"keyup":return QR.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function lx(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Fo=!1;function YR(e,t){switch(e){case"compositionend":return lx(t);case"keypress":return t.which!==32?null:(hg=!0,dg);case"textInput":return e=t.data,e===dg&&hg?null:e;default:return null}}function ZR(e,t){if(Fo)return e==="compositionend"||!um&&ax(e,t)?(e=ox(),Ru=sm=oi=null,Fo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return sx&&t.locale!=="ko"?null:t.data;default:return null}}var JR={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 pg(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!JR[e.type]:t==="textarea"}function ux(e,t,n,r){z1(r),t=oc(t,"onChange"),0<t.length&&(n=new am("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ba=null,Ua=null;function e2(e){xx(e,0)}function Yc(e){var t=zo(e);if(L1(t))return e}function t2(e,t){if(e==="change")return t}var cx=!1;if(Mr){var Hf;if(Mr){var Kf="oninput"in document;if(!Kf){var mg=document.createElement("div");mg.setAttribute("oninput","return;"),Kf=typeof mg.oninput=="function"}Hf=Kf}else Hf=!1;cx=Hf&&(!document.documentMode||9<document.documentMode)}function yg(){ba&&(ba.detachEvent("onpropertychange",fx),Ua=ba=null)}function fx(e){if(e.propertyName==="value"&&Yc(Ua)){var t=[];ux(t,Ua,e,tm(e)),W1(e2,t)}}function n2(e,t,n){e==="focusin"?(yg(),ba=t,Ua=n,ba.attachEvent("onpropertychange",fx)):e==="focusout"&&yg()}function r2(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Yc(Ua)}function i2(e,t){if(e==="click")return Yc(t)}function o2(e,t){if(e==="input"||e==="change")return Yc(t)}function s2(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Fn=typeof Object.is=="function"?Object.is:s2;function $a(e,t){if(Fn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Kd.call(t,i)||!Fn(e[i],t[i]))return!1}return!0}function gg(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function vg(e,t){var n=gg(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=gg(n)}}function dx(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?dx(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function hx(){for(var e=window,t=Zu();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Zu(e.document)}return t}function cm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function a2(e){var t=hx(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dx(n.ownerDocument.documentElement,n)){if(r!==null&&cm(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=vg(n,o);var s=vg(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var l2=Mr&&"documentMode"in document&&11>=document.documentMode,jo=null,fh=null,Ca=null,dh=!1;function wg(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;dh||jo==null||jo!==Zu(r)||(r=jo,"selectionStart"in r&&cm(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ca&&$a(Ca,r)||(Ca=r,r=oc(fh,"onSelect"),0<r.length&&(t=new am("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=jo)))}function Yl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Vo={animationend:Yl("Animation","AnimationEnd"),animationiteration:Yl("Animation","AnimationIteration"),animationstart:Yl("Animation","AnimationStart"),transitionend:Yl("Transition","TransitionEnd")},qf={},px={};Mr&&(px=document.createElement("div").style,"AnimationEvent"in window||(delete Vo.animationend.animation,delete Vo.animationiteration.animation,delete Vo.animationstart.animation),"TransitionEvent"in window||delete Vo.transitionend.transition);function Zc(e){if(qf[e])return qf[e];if(!Vo[e])return e;var t=Vo[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in px)return qf[e]=t[n];return e}var mx=Zc("animationend"),yx=Zc("animationiteration"),gx=Zc("animationstart"),vx=Zc("transitionend"),wx=new Map,xg="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ei(e,t){wx.set(e,t),yo(t,[e])}for(var Gf=0;Gf<xg.length;Gf++){var Qf=xg[Gf],u2=Qf.toLowerCase(),c2=Qf[0].toUpperCase()+Qf.slice(1);Ei(u2,"on"+c2)}Ei(mx,"onAnimationEnd");Ei(yx,"onAnimationIteration");Ei(gx,"onAnimationStart");Ei("dblclick","onDoubleClick");Ei("focusin","onFocus");Ei("focusout","onBlur");Ei(vx,"onTransitionEnd");gs("onMouseEnter",["mouseout","mouseover"]);gs("onMouseLeave",["mouseout","mouseover"]);gs("onPointerEnter",["pointerout","pointerover"]);gs("onPointerLeave",["pointerout","pointerover"]);yo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));yo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));yo("onBeforeInput",["compositionend","keypress","textInput","paste"]);yo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));yo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));yo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ma="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),f2=new Set("cancel close invalid load scroll toggle".split(" ").concat(ma));function Sg(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,uR(r,t,void 0,e),e.currentTarget=null}function xx(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==o&&i.isPropagationStopped())break e;Sg(i,a,u),o=l}else for(s=0;s<r.length;s++){if(a=r[s],l=a.instance,u=a.currentTarget,a=a.listener,l!==o&&i.isPropagationStopped())break e;Sg(i,a,u),o=l}}}if(ec)throw e=ah,ec=!1,ah=null,e}function Le(e,t){var n=t[gh];n===void 0&&(n=t[gh]=new Set);var r=e+"__bubble";n.has(r)||(Sx(t,e,2,!1),n.add(r))}function Xf(e,t,n){var r=0;t&&(r|=4),Sx(n,e,r,t)}var Zl="_reactListening"+Math.random().toString(36).slice(2);function Wa(e){if(!e[Zl]){e[Zl]=!0,P1.forEach(function(n){n!=="selectionchange"&&(f2.has(n)||Xf(n,!1,e),Xf(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Zl]||(t[Zl]=!0,Xf("selectionchange",!1,t))}}function Sx(e,t,n,r){switch(ix(t)){case 1:var i=kR;break;case 4:i=RR;break;default:i=om}n=i.bind(null,t,n,e),i=void 0,!sh||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Yf(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var a=r.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;s=s.return}for(;a!==null;){if(s=ji(a),s===null)return;if(l=s.tag,l===5||l===6){r=o=s;continue e}a=a.parentNode}}r=r.return}W1(function(){var u=o,c=tm(n),f=[];e:{var d=wx.get(e);if(d!==void 0){var h=am,p=e;switch(e){case"keypress":if(Tu(n)===0)break e;case"keydown":case"keyup":h=BR;break;case"focusin":p="focus",h=Wf;break;case"focusout":p="blur",h=Wf;break;case"beforeblur":case"afterblur":h=Wf;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=ug;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=MR;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=WR;break;case mx:case yx:case gx:h=OR;break;case vx:h=KR;break;case"scroll":h=TR;break;case"wheel":h=GR;break;case"copy":case"cut":case"paste":h=_R;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=fg}var m=(t&4)!==0,v=!m&&e==="scroll",y=m?d!==null?d+"Capture":null:d;m=[];for(var g=u,w;g!==null;){w=g;var x=w.stateNode;if(w.tag===5&&x!==null&&(w=x,y!==null&&(x=ja(g,y),x!=null&&m.push(Ha(g,x,w)))),v)break;g=g.return}0<m.length&&(d=new h(d,p,null,n,c),f.push({event:d,listeners:m}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",d&&n!==ih&&(p=n.relatedTarget||n.fromElement)&&(ji(p)||p[Ar]))break e;if((h||d)&&(d=c.window===c?c:(d=c.ownerDocument)?d.defaultView||d.parentWindow:window,h?(p=n.relatedTarget||n.toElement,h=u,p=p?ji(p):null,p!==null&&(v=go(p),p!==v||p.tag!==5&&p.tag!==6)&&(p=null)):(h=null,p=u),h!==p)){if(m=ug,x="onMouseLeave",y="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(m=fg,x="onPointerLeave",y="onPointerEnter",g="pointer"),v=h==null?d:zo(h),w=p==null?d:zo(p),d=new m(x,g+"leave",h,n,c),d.target=v,d.relatedTarget=w,x=null,ji(c)===u&&(m=new m(y,g+"enter",p,n,c),m.target=w,m.relatedTarget=v,x=m),v=x,h&&p)t:{for(m=h,y=p,g=0,w=m;w;w=Po(w))g++;for(w=0,x=y;x;x=Po(x))w++;for(;0<g-w;)m=Po(m),g--;for(;0<w-g;)y=Po(y),w--;for(;g--;){if(m===y||y!==null&&m===y.alternate)break t;m=Po(m),y=Po(y)}m=null}else m=null;h!==null&&bg(f,d,h,m,!1),p!==null&&v!==null&&bg(f,v,p,m,!0)}}e:{if(d=u?zo(u):window,h=d.nodeName&&d.nodeName.toLowerCase(),h==="select"||h==="input"&&d.type==="file")var E=t2;else if(pg(d))if(cx)E=o2;else{E=r2;var T=n2}else(h=d.nodeName)&&h.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(E=i2);if(E&&(E=E(e,u))){ux(f,E,n,c);break e}T&&T(e,d,u),e==="focusout"&&(T=d._wrapperState)&&T.controlled&&d.type==="number"&&Jd(d,"number",d.value)}switch(T=u?zo(u):window,e){case"focusin":(pg(T)||T.contentEditable==="true")&&(jo=T,fh=u,Ca=null);break;case"focusout":Ca=fh=jo=null;break;case"mousedown":dh=!0;break;case"contextmenu":case"mouseup":case"dragend":dh=!1,wg(f,n,c);break;case"selectionchange":if(l2)break;case"keydown":case"keyup":wg(f,n,c)}var S;if(um)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Fo?ax(e,n)&&(b="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(b="onCompositionStart");b&&(sx&&n.locale!=="ko"&&(Fo||b!=="onCompositionStart"?b==="onCompositionEnd"&&Fo&&(S=ox()):(oi=c,sm="value"in oi?oi.value:oi.textContent,Fo=!0)),T=oc(u,b),0<T.length&&(b=new cg(b,e,null,n,c),f.push({event:b,listeners:T}),S?b.data=S:(S=lx(n),S!==null&&(b.data=S)))),(S=XR?YR(e,n):ZR(e,n))&&(u=oc(u,"onBeforeInput"),0<u.length&&(c=new cg("onBeforeInput","beforeinput",null,n,c),f.push({event:c,listeners:u}),c.data=S))}xx(f,t)})}function Ha(e,t,n){return{instance:e,listener:t,currentTarget:n}}function oc(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=ja(e,n),o!=null&&r.unshift(Ha(e,o,i)),o=ja(e,t),o!=null&&r.push(Ha(e,o,i))),e=e.return}return r}function Po(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function bg(e,t,n,r,i){for(var o=t._reactName,s=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,i?(l=ja(n,o),l!=null&&s.unshift(Ha(n,l,a))):i||(l=ja(n,o),l!=null&&s.push(Ha(n,l,a)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var d2=/\r\n?/g,h2=/\u0000|\uFFFD/g;function Cg(e){return(typeof e=="string"?e:""+e).replace(d2,`
|
|
38
|
+
`).replace(h2,"")}function Jl(e,t,n){if(t=Cg(t),Cg(e)!==t&&n)throw Error(F(425))}function sc(){}var hh=null,ph=null;function mh(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var yh=typeof setTimeout=="function"?setTimeout:void 0,p2=typeof clearTimeout=="function"?clearTimeout:void 0,Eg=typeof Promise=="function"?Promise:void 0,m2=typeof queueMicrotask=="function"?queueMicrotask:typeof Eg<"u"?function(e){return Eg.resolve(null).then(e).catch(y2)}:yh;function y2(e){setTimeout(function(){throw e})}function Zf(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Ba(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Ba(t)}function di(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function kg(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Os=Math.random().toString(36).slice(2),tr="__reactFiber$"+Os,Ka="__reactProps$"+Os,Ar="__reactContainer$"+Os,gh="__reactEvents$"+Os,g2="__reactListeners$"+Os,v2="__reactHandles$"+Os;function ji(e){var t=e[tr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ar]||n[tr]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=kg(e);e!==null;){if(n=e[tr])return n;e=kg(e)}return t}e=n,n=e.parentNode}return null}function gl(e){return e=e[tr]||e[Ar],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function zo(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(F(33))}function Jc(e){return e[Ka]||null}var vh=[],Bo=-1;function ki(e){return{current:e}}function _e(e){0>Bo||(e.current=vh[Bo],vh[Bo]=null,Bo--)}function Oe(e,t){Bo++,vh[Bo]=e.current,e.current=t}var wi={},Rt=ki(wi),Kt=ki(!1),so=wi;function vs(e,t){var n=e.type.contextTypes;if(!n)return wi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function qt(e){return e=e.childContextTypes,e!=null}function ac(){_e(Kt),_e(Rt)}function Rg(e,t,n){if(Rt.current!==wi)throw Error(F(168));Oe(Rt,t),Oe(Kt,n)}function bx(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(F(108,nR(e)||"Unknown",i));return Ve({},n,r)}function lc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||wi,so=Rt.current,Oe(Rt,e),Oe(Kt,Kt.current),!0}function Tg(e,t,n){var r=e.stateNode;if(!r)throw Error(F(169));n?(e=bx(e,t,so),r.__reactInternalMemoizedMergedChildContext=e,_e(Kt),_e(Rt),Oe(Rt,e)):_e(Kt),Oe(Kt,n)}var vr=null,ef=!1,Jf=!1;function Cx(e){vr===null?vr=[e]:vr.push(e)}function w2(e){ef=!0,Cx(e)}function Ri(){if(!Jf&&vr!==null){Jf=!0;var e=0,t=Re;try{var n=vr;for(Re=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}vr=null,ef=!1}catch(i){throw vr!==null&&(vr=vr.slice(e+1)),G1(nm,Ri),i}finally{Re=t,Jf=!1}}return null}var Uo=[],$o=0,uc=null,cc=0,yn=[],gn=0,ao=null,Cr=1,Er="";function _i(e,t){Uo[$o++]=cc,Uo[$o++]=uc,uc=e,cc=t}function Ex(e,t,n){yn[gn++]=Cr,yn[gn++]=Er,yn[gn++]=ao,ao=e;var r=Cr;e=Er;var i=32-_n(r)-1;r&=~(1<<i),n+=1;var o=32-_n(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,Cr=1<<32-_n(t)+i|n<<i|r,Er=o+e}else Cr=1<<o|n<<i|r,Er=e}function fm(e){e.return!==null&&(_i(e,1),Ex(e,1,0))}function dm(e){for(;e===uc;)uc=Uo[--$o],Uo[$o]=null,cc=Uo[--$o],Uo[$o]=null;for(;e===ao;)ao=yn[--gn],yn[gn]=null,Er=yn[--gn],yn[gn]=null,Cr=yn[--gn],yn[gn]=null}var rn=null,nn=null,Ne=!1,Ln=null;function kx(e,t){var n=wn(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Pg(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,rn=e,nn=di(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,rn=e,nn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=ao!==null?{id:Cr,overflow:Er}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=wn(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,rn=e,nn=null,!0):!1;default:return!1}}function wh(e){return(e.mode&1)!==0&&(e.flags&128)===0}function xh(e){if(Ne){var t=nn;if(t){var n=t;if(!Pg(e,t)){if(wh(e))throw Error(F(418));t=di(n.nextSibling);var r=rn;t&&Pg(e,t)?kx(r,n):(e.flags=e.flags&-4097|2,Ne=!1,rn=e)}}else{if(wh(e))throw Error(F(418));e.flags=e.flags&-4097|2,Ne=!1,rn=e}}}function Mg(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;rn=e}function eu(e){if(e!==rn)return!1;if(!Ne)return Mg(e),Ne=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!mh(e.type,e.memoizedProps)),t&&(t=nn)){if(wh(e))throw Rx(),Error(F(418));for(;t;)kx(e,t),t=di(t.nextSibling)}if(Mg(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(F(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){nn=di(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}nn=null}}else nn=rn?di(e.stateNode.nextSibling):null;return!0}function Rx(){for(var e=nn;e;)e=di(e.nextSibling)}function ws(){nn=rn=null,Ne=!1}function hm(e){Ln===null?Ln=[e]:Ln.push(e)}var x2=Ir.ReactCurrentBatchConfig;function ta(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(F(309));var r=n.stateNode}if(!r)throw Error(F(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(s){var a=i.refs;s===null?delete a[o]:a[o]=s},t._stringRef=o,t)}if(typeof e!="string")throw Error(F(284));if(!n._owner)throw Error(F(290,e))}return e}function tu(e,t){throw e=Object.prototype.toString.call(t),Error(F(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ag(e){var t=e._init;return t(e._payload)}function Tx(e){function t(y,g){if(e){var w=y.deletions;w===null?(y.deletions=[g],y.flags|=16):w.push(g)}}function n(y,g){if(!e)return null;for(;g!==null;)t(y,g),g=g.sibling;return null}function r(y,g){for(y=new Map;g!==null;)g.key!==null?y.set(g.key,g):y.set(g.index,g),g=g.sibling;return y}function i(y,g){return y=yi(y,g),y.index=0,y.sibling=null,y}function o(y,g,w){return y.index=w,e?(w=y.alternate,w!==null?(w=w.index,w<g?(y.flags|=2,g):w):(y.flags|=2,g)):(y.flags|=1048576,g)}function s(y){return e&&y.alternate===null&&(y.flags|=2),y}function a(y,g,w,x){return g===null||g.tag!==6?(g=sd(w,y.mode,x),g.return=y,g):(g=i(g,w),g.return=y,g)}function l(y,g,w,x){var E=w.type;return E===No?c(y,g,w.props.children,x,w.key):g!==null&&(g.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Hr&&Ag(E)===g.type)?(x=i(g,w.props),x.ref=ta(y,g,w),x.return=y,x):(x=_u(w.type,w.key,w.props,null,y.mode,x),x.ref=ta(y,g,w),x.return=y,x)}function u(y,g,w,x){return g===null||g.tag!==4||g.stateNode.containerInfo!==w.containerInfo||g.stateNode.implementation!==w.implementation?(g=ad(w,y.mode,x),g.return=y,g):(g=i(g,w.children||[]),g.return=y,g)}function c(y,g,w,x,E){return g===null||g.tag!==7?(g=no(w,y.mode,x,E),g.return=y,g):(g=i(g,w),g.return=y,g)}function f(y,g,w){if(typeof g=="string"&&g!==""||typeof g=="number")return g=sd(""+g,y.mode,w),g.return=y,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Wl:return w=_u(g.type,g.key,g.props,null,y.mode,w),w.ref=ta(y,null,g),w.return=y,w;case Io:return g=ad(g,y.mode,w),g.return=y,g;case Hr:var x=g._init;return f(y,x(g._payload),w)}if(ha(g)||Xs(g))return g=no(g,y.mode,w,null),g.return=y,g;tu(y,g)}return null}function d(y,g,w,x){var E=g!==null?g.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return E!==null?null:a(y,g,""+w,x);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Wl:return w.key===E?l(y,g,w,x):null;case Io:return w.key===E?u(y,g,w,x):null;case Hr:return E=w._init,d(y,g,E(w._payload),x)}if(ha(w)||Xs(w))return E!==null?null:c(y,g,w,x,null);tu(y,w)}return null}function h(y,g,w,x,E){if(typeof x=="string"&&x!==""||typeof x=="number")return y=y.get(w)||null,a(g,y,""+x,E);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Wl:return y=y.get(x.key===null?w:x.key)||null,l(g,y,x,E);case Io:return y=y.get(x.key===null?w:x.key)||null,u(g,y,x,E);case Hr:var T=x._init;return h(y,g,w,T(x._payload),E)}if(ha(x)||Xs(x))return y=y.get(w)||null,c(g,y,x,E,null);tu(g,x)}return null}function p(y,g,w,x){for(var E=null,T=null,S=g,b=g=0,A=null;S!==null&&b<w.length;b++){S.index>b?(A=S,S=null):A=S.sibling;var M=d(y,S,w[b],x);if(M===null){S===null&&(S=A);break}e&&S&&M.alternate===null&&t(y,S),g=o(M,g,b),T===null?E=M:T.sibling=M,T=M,S=A}if(b===w.length)return n(y,S),Ne&&_i(y,b),E;if(S===null){for(;b<w.length;b++)S=f(y,w[b],x),S!==null&&(g=o(S,g,b),T===null?E=S:T.sibling=S,T=S);return Ne&&_i(y,b),E}for(S=r(y,S);b<w.length;b++)A=h(S,y,b,w[b],x),A!==null&&(e&&A.alternate!==null&&S.delete(A.key===null?b:A.key),g=o(A,g,b),T===null?E=A:T.sibling=A,T=A);return e&&S.forEach(function(I){return t(y,I)}),Ne&&_i(y,b),E}function m(y,g,w,x){var E=Xs(w);if(typeof E!="function")throw Error(F(150));if(w=E.call(w),w==null)throw Error(F(151));for(var T=E=null,S=g,b=g=0,A=null,M=w.next();S!==null&&!M.done;b++,M=w.next()){S.index>b?(A=S,S=null):A=S.sibling;var I=d(y,S,M.value,x);if(I===null){S===null&&(S=A);break}e&&S&&I.alternate===null&&t(y,S),g=o(I,g,b),T===null?E=I:T.sibling=I,T=I,S=A}if(M.done)return n(y,S),Ne&&_i(y,b),E;if(S===null){for(;!M.done;b++,M=w.next())M=f(y,M.value,x),M!==null&&(g=o(M,g,b),T===null?E=M:T.sibling=M,T=M);return Ne&&_i(y,b),E}for(S=r(y,S);!M.done;b++,M=w.next())M=h(S,y,b,M.value,x),M!==null&&(e&&M.alternate!==null&&S.delete(M.key===null?b:M.key),g=o(M,g,b),T===null?E=M:T.sibling=M,T=M);return e&&S.forEach(function(z){return t(y,z)}),Ne&&_i(y,b),E}function v(y,g,w,x){if(typeof w=="object"&&w!==null&&w.type===No&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case Wl:e:{for(var E=w.key,T=g;T!==null;){if(T.key===E){if(E=w.type,E===No){if(T.tag===7){n(y,T.sibling),g=i(T,w.props.children),g.return=y,y=g;break e}}else if(T.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Hr&&Ag(E)===T.type){n(y,T.sibling),g=i(T,w.props),g.ref=ta(y,T,w),g.return=y,y=g;break e}n(y,T);break}else t(y,T);T=T.sibling}w.type===No?(g=no(w.props.children,y.mode,x,w.key),g.return=y,y=g):(x=_u(w.type,w.key,w.props,null,y.mode,x),x.ref=ta(y,g,w),x.return=y,y=x)}return s(y);case Io:e:{for(T=w.key;g!==null;){if(g.key===T)if(g.tag===4&&g.stateNode.containerInfo===w.containerInfo&&g.stateNode.implementation===w.implementation){n(y,g.sibling),g=i(g,w.children||[]),g.return=y,y=g;break e}else{n(y,g);break}else t(y,g);g=g.sibling}g=ad(w,y.mode,x),g.return=y,y=g}return s(y);case Hr:return T=w._init,v(y,g,T(w._payload),x)}if(ha(w))return p(y,g,w,x);if(Xs(w))return m(y,g,w,x);tu(y,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,g!==null&&g.tag===6?(n(y,g.sibling),g=i(g,w),g.return=y,y=g):(n(y,g),g=sd(w,y.mode,x),g.return=y,y=g),s(y)):n(y,g)}return v}var xs=Tx(!0),Px=Tx(!1),fc=ki(null),dc=null,Wo=null,pm=null;function mm(){pm=Wo=dc=null}function ym(e){var t=fc.current;_e(fc),e._currentValue=t}function Sh(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function es(e,t){dc=e,pm=Wo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ht=!0),e.firstContext=null)}function Cn(e){var t=e._currentValue;if(pm!==e)if(e={context:e,memoizedValue:t,next:null},Wo===null){if(dc===null)throw Error(F(308));Wo=e,dc.dependencies={lanes:0,firstContext:e}}else Wo=Wo.next=e;return t}var Vi=null;function gm(e){Vi===null?Vi=[e]:Vi.push(e)}function Mx(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,gm(t)):(n.next=i.next,i.next=n),t.interleaved=n,Dr(e,r)}function Dr(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Kr=!1;function vm(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ax(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Tr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function hi(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ve&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Dr(e,n)}return i=r.interleaved,i===null?(t.next=t,gm(r)):(t.next=i.next,i.next=t),r.interleaved=t,Dr(e,n)}function Pu(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,rm(e,n)}}function Dg(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function hc(e,t,n,r){var i=e.updateQueue;Kr=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?o=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==s&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(o!==null){var f=i.baseState;s=0,c=u=l=null,a=o;do{var d=a.lane,h=a.eventTime;if((r&d)===d){c!==null&&(c=c.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var p=e,m=a;switch(d=t,h=n,m.tag){case 1:if(p=m.payload,typeof p=="function"){f=p.call(h,f,d);break e}f=p;break e;case 3:p.flags=p.flags&-65537|128;case 0:if(p=m.payload,d=typeof p=="function"?p.call(h,f,d):p,d==null)break e;f=Ve({},f,d);break e;case 2:Kr=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[a]:d.push(a))}else h={eventTime:h,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=h,l=f):c=c.next=h,s|=d;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;d=a,a=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(c===null&&(l=f),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);uo|=s,e.lanes=s,e.memoizedState=f}}function Og(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(F(191,i));i.call(r)}}}var vl={},ir=ki(vl),qa=ki(vl),Ga=ki(vl);function zi(e){if(e===vl)throw Error(F(174));return e}function wm(e,t){switch(Oe(Ga,t),Oe(qa,e),Oe(ir,vl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:th(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=th(t,e)}_e(ir),Oe(ir,t)}function Ss(){_e(ir),_e(qa),_e(Ga)}function Dx(e){zi(Ga.current);var t=zi(ir.current),n=th(t,e.type);t!==n&&(Oe(qa,e),Oe(ir,n))}function xm(e){qa.current===e&&(_e(ir),_e(qa))}var Fe=ki(0);function pc(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ed=[];function Sm(){for(var e=0;e<ed.length;e++)ed[e]._workInProgressVersionPrimary=null;ed.length=0}var Mu=Ir.ReactCurrentDispatcher,td=Ir.ReactCurrentBatchConfig,lo=0,je=null,nt=null,at=null,mc=!1,Ea=!1,Qa=0,S2=0;function St(){throw Error(F(321))}function bm(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Fn(e[n],t[n]))return!1;return!0}function Cm(e,t,n,r,i,o){if(lo=o,je=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Mu.current=e===null||e.memoizedState===null?k2:R2,e=n(r,i),Ea){o=0;do{if(Ea=!1,Qa=0,25<=o)throw Error(F(301));o+=1,at=nt=null,t.updateQueue=null,Mu.current=T2,e=n(r,i)}while(Ea)}if(Mu.current=yc,t=nt!==null&&nt.next!==null,lo=0,at=nt=je=null,mc=!1,t)throw Error(F(300));return e}function Em(){var e=Qa!==0;return Qa=0,e}function Qn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return at===null?je.memoizedState=at=e:at=at.next=e,at}function En(){if(nt===null){var e=je.alternate;e=e!==null?e.memoizedState:null}else e=nt.next;var t=at===null?je.memoizedState:at.next;if(t!==null)at=t,nt=e;else{if(e===null)throw Error(F(310));nt=e,e={memoizedState:nt.memoizedState,baseState:nt.baseState,baseQueue:nt.baseQueue,queue:nt.queue,next:null},at===null?je.memoizedState=at=e:at=at.next=e}return at}function Xa(e,t){return typeof t=="function"?t(e):t}function nd(e){var t=En(),n=t.queue;if(n===null)throw Error(F(311));n.lastRenderedReducer=e;var r=nt,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var a=s=null,l=null,u=o;do{var c=u.lane;if((lo&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=f,s=r):l=l.next=f,je.lanes|=c,uo|=c}u=u.next}while(u!==null&&u!==o);l===null?s=r:l.next=a,Fn(r,t.memoizedState)||(Ht=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,je.lanes|=o,uo|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function rd(e){var t=En(),n=t.queue;if(n===null)throw Error(F(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);Fn(o,t.memoizedState)||(Ht=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Ox(){}function Lx(e,t){var n=je,r=En(),i=t(),o=!Fn(r.memoizedState,i);if(o&&(r.memoizedState=i,Ht=!0),r=r.queue,km(Nx.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||at!==null&&at.memoizedState.tag&1){if(n.flags|=2048,Ya(9,Ix.bind(null,n,r,i,t),void 0,null),ut===null)throw Error(F(349));lo&30||_x(n,t,i)}return i}function _x(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=je.updateQueue,t===null?(t={lastEffect:null,stores:null},je.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ix(e,t,n,r){t.value=n,t.getSnapshot=r,Fx(t)&&jx(e)}function Nx(e,t,n){return n(function(){Fx(t)&&jx(e)})}function Fx(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Fn(e,n)}catch{return!0}}function jx(e){var t=Dr(e,1);t!==null&&In(t,e,1,-1)}function Lg(e){var t=Qn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Xa,lastRenderedState:e},t.queue=e,e=e.dispatch=E2.bind(null,je,e),[t.memoizedState,e]}function Ya(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=je.updateQueue,t===null?(t={lastEffect:null,stores:null},je.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Vx(){return En().memoizedState}function Au(e,t,n,r){var i=Qn();je.flags|=e,i.memoizedState=Ya(1|t,n,void 0,r===void 0?null:r)}function tf(e,t,n,r){var i=En();r=r===void 0?null:r;var o=void 0;if(nt!==null){var s=nt.memoizedState;if(o=s.destroy,r!==null&&bm(r,s.deps)){i.memoizedState=Ya(t,n,o,r);return}}je.flags|=e,i.memoizedState=Ya(1|t,n,o,r)}function _g(e,t){return Au(8390656,8,e,t)}function km(e,t){return tf(2048,8,e,t)}function zx(e,t){return tf(4,2,e,t)}function Bx(e,t){return tf(4,4,e,t)}function Ux(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function $x(e,t,n){return n=n!=null?n.concat([e]):null,tf(4,4,Ux.bind(null,t,e),n)}function Rm(){}function Wx(e,t){var n=En();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&bm(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Hx(e,t){var n=En();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&bm(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Kx(e,t,n){return lo&21?(Fn(n,t)||(n=Y1(),je.lanes|=n,uo|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ht=!0),e.memoizedState=n)}function b2(e,t){var n=Re;Re=n!==0&&4>n?n:4,e(!0);var r=td.transition;td.transition={};try{e(!1),t()}finally{Re=n,td.transition=r}}function qx(){return En().memoizedState}function C2(e,t,n){var r=mi(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Gx(e))Qx(t,n);else if(n=Mx(e,t,n,r),n!==null){var i=Ft();In(n,e,r,i),Xx(n,t,r)}}function E2(e,t,n){var r=mi(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Gx(e))Qx(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,a=o(s,n);if(i.hasEagerState=!0,i.eagerState=a,Fn(a,s)){var l=t.interleaved;l===null?(i.next=i,gm(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=Mx(e,t,i,r),n!==null&&(i=Ft(),In(n,e,r,i),Xx(n,t,r))}}function Gx(e){var t=e.alternate;return e===je||t!==null&&t===je}function Qx(e,t){Ea=mc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Xx(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,rm(e,n)}}var yc={readContext:Cn,useCallback:St,useContext:St,useEffect:St,useImperativeHandle:St,useInsertionEffect:St,useLayoutEffect:St,useMemo:St,useReducer:St,useRef:St,useState:St,useDebugValue:St,useDeferredValue:St,useTransition:St,useMutableSource:St,useSyncExternalStore:St,useId:St,unstable_isNewReconciler:!1},k2={readContext:Cn,useCallback:function(e,t){return Qn().memoizedState=[e,t===void 0?null:t],e},useContext:Cn,useEffect:_g,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Au(4194308,4,Ux.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Au(4194308,4,e,t)},useInsertionEffect:function(e,t){return Au(4,2,e,t)},useMemo:function(e,t){var n=Qn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Qn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=C2.bind(null,je,e),[r.memoizedState,e]},useRef:function(e){var t=Qn();return e={current:e},t.memoizedState=e},useState:Lg,useDebugValue:Rm,useDeferredValue:function(e){return Qn().memoizedState=e},useTransition:function(){var e=Lg(!1),t=e[0];return e=b2.bind(null,e[1]),Qn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=je,i=Qn();if(Ne){if(n===void 0)throw Error(F(407));n=n()}else{if(n=t(),ut===null)throw Error(F(349));lo&30||_x(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,_g(Nx.bind(null,r,o,e),[e]),r.flags|=2048,Ya(9,Ix.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Qn(),t=ut.identifierPrefix;if(Ne){var n=Er,r=Cr;n=(r&~(1<<32-_n(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Qa++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=S2++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},R2={readContext:Cn,useCallback:Wx,useContext:Cn,useEffect:km,useImperativeHandle:$x,useInsertionEffect:zx,useLayoutEffect:Bx,useMemo:Hx,useReducer:nd,useRef:Vx,useState:function(){return nd(Xa)},useDebugValue:Rm,useDeferredValue:function(e){var t=En();return Kx(t,nt.memoizedState,e)},useTransition:function(){var e=nd(Xa)[0],t=En().memoizedState;return[e,t]},useMutableSource:Ox,useSyncExternalStore:Lx,useId:qx,unstable_isNewReconciler:!1},T2={readContext:Cn,useCallback:Wx,useContext:Cn,useEffect:km,useImperativeHandle:$x,useInsertionEffect:zx,useLayoutEffect:Bx,useMemo:Hx,useReducer:rd,useRef:Vx,useState:function(){return rd(Xa)},useDebugValue:Rm,useDeferredValue:function(e){var t=En();return nt===null?t.memoizedState=e:Kx(t,nt.memoizedState,e)},useTransition:function(){var e=rd(Xa)[0],t=En().memoizedState;return[e,t]},useMutableSource:Ox,useSyncExternalStore:Lx,useId:qx,unstable_isNewReconciler:!1};function Pn(e,t){if(e&&e.defaultProps){t=Ve({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function bh(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Ve({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var nf={isMounted:function(e){return(e=e._reactInternals)?go(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ft(),i=mi(e),o=Tr(r,i);o.payload=t,n!=null&&(o.callback=n),t=hi(e,o,i),t!==null&&(In(t,e,i,r),Pu(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ft(),i=mi(e),o=Tr(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=hi(e,o,i),t!==null&&(In(t,e,i,r),Pu(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ft(),r=mi(e),i=Tr(n,r);i.tag=2,t!=null&&(i.callback=t),t=hi(e,i,r),t!==null&&(In(t,e,r,n),Pu(t,e,r))}};function Ig(e,t,n,r,i,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,s):t.prototype&&t.prototype.isPureReactComponent?!$a(n,r)||!$a(i,o):!0}function Yx(e,t,n){var r=!1,i=wi,o=t.contextType;return typeof o=="object"&&o!==null?o=Cn(o):(i=qt(t)?so:Rt.current,r=t.contextTypes,o=(r=r!=null)?vs(e,i):wi),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=nf,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Ng(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&nf.enqueueReplaceState(t,t.state,null)}function Ch(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},vm(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=Cn(o):(o=qt(t)?so:Rt.current,i.context=vs(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(bh(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&nf.enqueueReplaceState(i,i.state,null),hc(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function bs(e,t){try{var n="",r=t;do n+=tR(r),r=r.return;while(r);var i=n}catch(o){i=`
|
|
39
39
|
Error generating stack: `+o.message+`
|
|
40
|
-
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function id(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Eh(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var PT=typeof WeakMap=="function"?WeakMap:Map;function Zx(e,t,n){n=Tr(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){vc||(vc=!0,_h=r),Eh(e,t)},n}function Jx(e,t,n){n=Tr(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Eh(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Eh(e,t),typeof r!="function"&&(pi===null?pi=new Set([this]):pi.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Fg(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new PT;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=UT.bind(null,e,t,n),t.then(e,e))}function jg(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Vg(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Tr(-1,1),t.tag=2,hi(n,t,1))),n.lanes|=1),e)}var MT=Ir.ReactCurrentOwner,Wt=!1;function Lt(e,t,n,r){t.child=e===null?Px(t,null,n,r):xs(t,e.child,n,r)}function zg(e,t,n,r,i){n=n.render;var o=t.ref;return es(t,i),r=Cm(e,t,n,r,o,i),n=Em(),e!==null&&!Wt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Or(e,t,i)):(Ne&&n&&fm(t),t.flags|=1,Lt(e,t,r,i),t.child)}function Bg(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!_m(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,eS(e,t,o,r,i)):(e=_u(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:$a,n(s,r)&&e.ref===t.ref)return Or(e,t,i)}return t.flags|=1,e=yi(o,r),e.ref=t.ref,e.return=t,t.child=e}function eS(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if($a(o,r)&&e.ref===t.ref)if(Wt=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(Wt=!0);else return t.lanes=e.lanes,Or(e,t,i)}return kh(e,t,n,r,i)}function tS(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Oe(Ko,Jt),Jt|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Oe(Ko,Jt),Jt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Oe(Ko,Jt),Jt|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Oe(Ko,Jt),Jt|=r;return Lt(e,t,i,n),t.child}function nS(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function kh(e,t,n,r,i){var o=qt(n)?so:Rt.current;return o=vs(t,o),es(t,i),n=Cm(e,t,n,r,o,i),r=Em(),e!==null&&!Wt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Or(e,t,i)):(Ne&&r&&fm(t),t.flags|=1,Lt(e,t,n,i),t.child)}function Ug(e,t,n,r,i){if(qt(n)){var o=!0;lc(t)}else o=!1;if(es(t,i),t.stateNode===null)Du(e,t),Yx(t,n,r),Ch(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=Cn(u):(u=qt(n)?so:Rt.current,u=vs(t,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";f||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||l!==u)&&Ng(t,s,r,u),Kr=!1;var d=t.memoizedState;s.state=d,hc(t,r,s,i),l=t.memoizedState,a!==r||d!==l||Kt.current||Kr?(typeof c=="function"&&(bh(t,n,c,r),l=t.memoizedState),(a=Kr||Ig(t,n,a,r,d,l,u))?(f||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=u,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,Ax(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:Pn(t.type,a),s.props=u,f=t.pendingProps,d=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=Cn(l):(l=qt(n)?so:Rt.current,l=vs(t,l));var h=n.getDerivedStateFromProps;(c=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==f||d!==l)&&Ng(t,s,r,l),Kr=!1,d=t.memoizedState,s.state=d,hc(t,r,s,i);var p=t.memoizedState;a!==f||d!==p||Kt.current||Kr?(typeof h=="function"&&(bh(t,n,h,r),p=t.memoizedState),(u=Kr||Ig(t,n,u,r,d,p,l)||!1)?(c||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,p,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,p,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),s.props=r,s.state=p,s.context=l,r=u):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return Rh(e,t,n,r,o,i)}function Rh(e,t,n,r,i,o){nS(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&Tg(t,n,!1),Or(e,t,o);r=t.stateNode,MT.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=xs(t,e.child,null,o),t.child=xs(t,null,a,o)):Lt(e,t,a,o),t.memoizedState=r.state,i&&Tg(t,n,!0),t.child}function rS(e){var t=e.stateNode;t.pendingContext?Rg(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Rg(e,t.context,!1),wm(e,t.containerInfo)}function $g(e,t,n,r,i){return ws(),hm(i),t.flags|=256,Lt(e,t,n,r),t.child}var Th={dehydrated:null,treeContext:null,retryLane:0};function Ph(e){return{baseLanes:e,cachePool:null,transitions:null}}function iS(e,t,n){var r=t.pendingProps,i=Fe.current,o=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Oe(Fe,i&1),e===null)return xh(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,o?(r=t.mode,o=t.child,s={mode:"hidden",children:s},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=sf(s,r,0,null),e=no(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Ph(n),t.memoizedState=Th,e):Tm(t,s));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return AT(e,t,s,r,a,i,n);if(o){o=r.fallback,s=t.mode,i=e.child,a=i.sibling;var l={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=yi(i,l),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?o=yi(a,o):(o=no(o,s,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,s=e.child.memoizedState,s=s===null?Ph(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=Th,r}return o=e.child,e=o.sibling,r=yi(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Tm(e,t){return t=sf({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function nu(e,t,n,r){return r!==null&&hm(r),xs(t,e.child,null,n),e=Tm(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function AT(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=id(Error(F(422))),nu(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=sf({mode:"visible",children:r.children},i,0,null),o=no(o,i,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&xs(t,e.child,null,s),t.child.memoizedState=Ph(s),t.memoizedState=Th,o);if(!(t.mode&1))return nu(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,o=Error(F(419)),r=id(o,r,void 0),nu(e,t,s,r)}if(a=(s&e.childLanes)!==0,Wt||a){if(r=ut,r!==null){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|s)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,Dr(e,i),In(r,e,i,-1))}return Lm(),r=id(Error(F(421))),nu(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=$T.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,nn=di(i.nextSibling),rn=t,Ne=!0,Ln=null,e!==null&&(yn[gn++]=Cr,yn[gn++]=Er,yn[gn++]=ao,Cr=e.id,Er=e.overflow,ao=t),t=Tm(t,r.children),t.flags|=4096,t)}function Hg(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Sh(e.return,t,n)}function od(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function oS(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Lt(e,t,r.children,n),r=Fe.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Hg(e,n,t);else if(e.tag===19)Hg(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Oe(Fe,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&pc(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),od(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&pc(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}od(t,!0,n,null,o);break;case"together":od(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Du(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Or(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),uo|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(F(153));if(t.child!==null){for(e=t.child,n=yi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=yi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function DT(e,t,n){switch(t.tag){case 3:rS(t),ws();break;case 5:Dx(t);break;case 1:qt(t.type)&&lc(t);break;case 4:wm(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Oe(fc,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Oe(Fe,Fe.current&1),t.flags|=128,null):n&t.child.childLanes?iS(e,t,n):(Oe(Fe,Fe.current&1),e=Or(e,t,n),e!==null?e.sibling:null);Oe(Fe,Fe.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return oS(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Oe(Fe,Fe.current),r)break;return null;case 22:case 23:return t.lanes=0,tS(e,t,n)}return Or(e,t,n)}var sS,Mh,aS,lS;sS=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Mh=function(){};aS=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,zi(ir.current);var o=null;switch(n){case"input":i=Yd(e,i),r=Yd(e,r),o=[];break;case"select":i=Ve({},i,{value:void 0}),r=Ve({},r,{value:void 0}),o=[];break;case"textarea":i=eh(e,i),r=eh(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=sc)}nh(n,r);var s;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var a=i[u];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Na.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var l=r[u];if(a=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(s in a)!a.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&a[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(o||(o=[]),o.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(o=o||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Na.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&Le("scroll",e),o||a===l||(o=[])):(o=o||[]).push(u,l))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};lS=function(e,t,n,r){n!==r&&(t.flags|=4)};function na(e,t){if(!Ne)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function bt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function OT(e,t,n){var r=t.pendingProps;switch(dm(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return bt(t),null;case 1:return qt(t.type)&&ac(),bt(t),null;case 3:return r=t.stateNode,Ss(),_e(Kt),_e(Rt),Sm(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(eu(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ln!==null&&(Fh(Ln),Ln=null))),Mh(e,t),bt(t),null;case 5:xm(t);var i=zi(Ga.current);if(n=t.type,e!==null&&t.stateNode!=null)aS(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(F(166));return bt(t),null}if(e=zi(ir.current),eu(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[tr]=t,r[Ka]=o,e=(t.mode&1)!==0,n){case"dialog":Le("cancel",r),Le("close",r);break;case"iframe":case"object":case"embed":Le("load",r);break;case"video":case"audio":for(i=0;i<ma.length;i++)Le(ma[i],r);break;case"source":Le("error",r);break;case"img":case"image":case"link":Le("error",r),Le("load",r);break;case"details":Le("toggle",r);break;case"input":Jy(r,o),Le("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Le("invalid",r);break;case"textarea":tg(r,o),Le("invalid",r)}nh(n,o),i=null;for(var s in o)if(o.hasOwnProperty(s)){var a=o[s];s==="children"?typeof a=="string"?r.textContent!==a&&(o.suppressHydrationWarning!==!0&&Jl(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&Jl(r.textContent,a,e),i=["children",""+a]):Na.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&Le("scroll",r)}switch(n){case"input":Wl(r),eg(r,o,!0);break;case"textarea":Wl(r),ng(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=sc)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=N1(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[tr]=t,e[Ka]=r,sS(e,t,!1,!1),t.stateNode=e;e:{switch(s=rh(n,r),n){case"dialog":Le("cancel",e),Le("close",e),i=r;break;case"iframe":case"object":case"embed":Le("load",e),i=r;break;case"video":case"audio":for(i=0;i<ma.length;i++)Le(ma[i],e);i=r;break;case"source":Le("error",e),i=r;break;case"img":case"image":case"link":Le("error",e),Le("load",e),i=r;break;case"details":Le("toggle",e),i=r;break;case"input":Jy(e,r),i=Yd(e,r),Le("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=Ve({},r,{value:void 0}),Le("invalid",e);break;case"textarea":tg(e,r),i=eh(e,r),Le("invalid",e);break;default:i=r}nh(n,i),a=i;for(o in a)if(a.hasOwnProperty(o)){var l=a[o];o==="style"?V1(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&F1(e,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Fa(e,l):typeof l=="number"&&Fa(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Na.hasOwnProperty(o)?l!=null&&o==="onScroll"&&Le("scroll",e):l!=null&&Yp(e,o,l,s))}switch(n){case"input":Wl(e),eg(e,r,!1);break;case"textarea":Wl(e),ng(e);break;case"option":r.value!=null&&e.setAttribute("value",""+vi(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Xo(e,!!r.multiple,o,!1):r.defaultValue!=null&&Xo(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=sc)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return bt(t),null;case 6:if(e&&t.stateNode!=null)lS(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(F(166));if(n=zi(Ga.current),zi(ir.current),eu(t)){if(r=t.stateNode,n=t.memoizedProps,r[tr]=t,(o=r.nodeValue!==n)&&(e=rn,e!==null))switch(e.tag){case 3:Jl(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Jl(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[tr]=t,t.stateNode=r}return bt(t),null;case 13:if(_e(Fe),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ne&&nn!==null&&t.mode&1&&!(t.flags&128))Rx(),ws(),t.flags|=98560,o=!1;else if(o=eu(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(F(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(F(317));o[tr]=t}else ws(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;bt(t),o=!1}else Ln!==null&&(Fh(Ln),Ln=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Fe.current&1?it===0&&(it=3):Lm())),t.updateQueue!==null&&(t.flags|=4),bt(t),null);case 4:return Ss(),Mh(e,t),e===null&&Ha(t.stateNode.containerInfo),bt(t),null;case 10:return ym(t.type._context),bt(t),null;case 17:return qt(t.type)&&ac(),bt(t),null;case 19:if(_e(Fe),o=t.memoizedState,o===null)return bt(t),null;if(r=(t.flags&128)!==0,s=o.rendering,s===null)if(r)na(o,!1);else{if(it!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=pc(e),s!==null){for(t.flags|=128,na(o,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Oe(Fe,Fe.current&1|2),t.child}e=e.sibling}o.tail!==null&&Ke()>Cs&&(t.flags|=128,r=!0,na(o,!1),t.lanes=4194304)}else{if(!r)if(e=pc(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),na(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!Ne)return bt(t),null}else 2*Ke()-o.renderingStartTime>Cs&&n!==1073741824&&(t.flags|=128,r=!0,na(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Ke(),t.sibling=null,n=Fe.current,Oe(Fe,r?n&1|2:n&1),t):(bt(t),null);case 22:case 23:return Om(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Jt&1073741824&&(bt(t),t.subtreeFlags&6&&(t.flags|=8192)):bt(t),null;case 24:return null;case 25:return null}throw Error(F(156,t.tag))}function LT(e,t){switch(dm(t),t.tag){case 1:return qt(t.type)&&ac(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ss(),_e(Kt),_e(Rt),Sm(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return xm(t),null;case 13:if(_e(Fe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(F(340));ws()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return _e(Fe),null;case 4:return Ss(),null;case 10:return ym(t.type._context),null;case 22:case 23:return Om(),null;case 24:return null;default:return null}}var ru=!1,Et=!1,_T=typeof WeakSet=="function"?WeakSet:Set,K=null;function Wo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){We(e,t,r)}else n.current=null}function Ah(e,t,n){try{n()}catch(r){We(e,t,r)}}var Wg=!1;function IT(e,t){if(hh=rc,e=hx(),cm(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var h;f!==n||i!==0&&f.nodeType!==3||(a=s+i),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(h=f.firstChild)!==null;)d=f,f=h;for(;;){if(f===e)break t;if(d===n&&++u===i&&(a=s),d===o&&++c===r&&(l=s),(h=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=h}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(ph={focusedElem:e,selectionRange:n},rc=!1,K=t;K!==null;)if(t=K,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,K=e;else for(;K!==null;){t=K;try{var p=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var m=p.memoizedProps,v=p.memoizedState,y=t.stateNode,g=y.getSnapshotBeforeUpdate(t.elementType===t.type?m:Pn(t.type,m),v);y.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(F(163))}}catch(x){We(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,K=e;break}K=t.return}return p=Wg,Wg=!1,p}function ka(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Ah(t,n,o)}i=i.next}while(i!==r)}}function rf(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Dh(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function uS(e){var t=e.alternate;t!==null&&(e.alternate=null,uS(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[tr],delete t[Ka],delete t[gh],delete t[gT],delete t[vT])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function cS(e){return e.tag===5||e.tag===3||e.tag===4}function Kg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||cS(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Oh(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=sc));else if(r!==4&&(e=e.child,e!==null))for(Oh(e,t,n),e=e.sibling;e!==null;)Oh(e,t,n),e=e.sibling}function Lh(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Lh(e,t,n),e=e.sibling;e!==null;)Lh(e,t,n),e=e.sibling}var ht=null,Dn=!1;function Vr(e,t,n){for(n=n.child;n!==null;)fS(e,t,n),n=n.sibling}function fS(e,t,n){if(rr&&typeof rr.onCommitFiberUnmount=="function")try{rr.onCommitFiberUnmount(Qc,n)}catch{}switch(n.tag){case 5:Et||Wo(n,t);case 6:var r=ht,i=Dn;ht=null,Vr(e,t,n),ht=r,Dn=i,ht!==null&&(Dn?(e=ht,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ht.removeChild(n.stateNode));break;case 18:ht!==null&&(Dn?(e=ht,n=n.stateNode,e.nodeType===8?Zf(e.parentNode,n):e.nodeType===1&&Zf(e,n),Ba(e)):Zf(ht,n.stateNode));break;case 4:r=ht,i=Dn,ht=n.stateNode.containerInfo,Dn=!0,Vr(e,t,n),ht=r,Dn=i;break;case 0:case 11:case 14:case 15:if(!Et&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&Ah(n,t,s),i=i.next}while(i!==r)}Vr(e,t,n);break;case 1:if(!Et&&(Wo(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){We(n,t,a)}Vr(e,t,n);break;case 21:Vr(e,t,n);break;case 22:n.mode&1?(Et=(r=Et)||n.memoizedState!==null,Vr(e,t,n),Et=r):Vr(e,t,n);break;default:Vr(e,t,n)}}function qg(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new _T),t.forEach(function(r){var i=HT.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function kn(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,s=t,a=s;e:for(;a!==null;){switch(a.tag){case 5:ht=a.stateNode,Dn=!1;break e;case 3:ht=a.stateNode.containerInfo,Dn=!0;break e;case 4:ht=a.stateNode.containerInfo,Dn=!0;break e}a=a.return}if(ht===null)throw Error(F(160));fS(o,s,i),ht=null,Dn=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){We(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)dS(t,e),t=t.sibling}function dS(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(kn(t,e),Gn(e),r&4){try{ka(3,e,e.return),rf(3,e)}catch(m){We(e,e.return,m)}try{ka(5,e,e.return)}catch(m){We(e,e.return,m)}}break;case 1:kn(t,e),Gn(e),r&512&&n!==null&&Wo(n,n.return);break;case 5:if(kn(t,e),Gn(e),r&512&&n!==null&&Wo(n,n.return),e.flags&32){var i=e.stateNode;try{Fa(i,"")}catch(m){We(e,e.return,m)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,s=n!==null?n.memoizedProps:o,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&o.type==="radio"&&o.name!=null&&_1(i,o),rh(a,s);var u=rh(a,o);for(s=0;s<l.length;s+=2){var c=l[s],f=l[s+1];c==="style"?V1(i,f):c==="dangerouslySetInnerHTML"?F1(i,f):c==="children"?Fa(i,f):Yp(i,c,f,u)}switch(a){case"input":Zd(i,o);break;case"textarea":I1(i,o);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var h=o.value;h!=null?Xo(i,!!o.multiple,h,!1):d!==!!o.multiple&&(o.defaultValue!=null?Xo(i,!!o.multiple,o.defaultValue,!0):Xo(i,!!o.multiple,o.multiple?[]:"",!1))}i[Ka]=o}catch(m){We(e,e.return,m)}}break;case 6:if(kn(t,e),Gn(e),r&4){if(e.stateNode===null)throw Error(F(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(m){We(e,e.return,m)}}break;case 3:if(kn(t,e),Gn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Ba(t.containerInfo)}catch(m){We(e,e.return,m)}break;case 4:kn(t,e),Gn(e);break;case 13:kn(t,e),Gn(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(Am=Ke())),r&4&&qg(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Et=(u=Et)||c,kn(t,e),Et=u):kn(t,e),Gn(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(K=e,c=e.child;c!==null;){for(f=K=c;K!==null;){switch(d=K,h=d.child,d.tag){case 0:case 11:case 14:case 15:ka(4,d,d.return);break;case 1:Wo(d,d.return);var p=d.stateNode;if(typeof p.componentWillUnmount=="function"){r=d,n=d.return;try{t=r,p.props=t.memoizedProps,p.state=t.memoizedState,p.componentWillUnmount()}catch(m){We(r,n,m)}}break;case 5:Wo(d,d.return);break;case 22:if(d.memoizedState!==null){Qg(f);continue}}h!==null?(h.return=d,K=h):Qg(f)}c=c.sibling}e:for(c=null,f=e;;){if(f.tag===5){if(c===null){c=f;try{i=f.stateNode,u?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(a=f.stateNode,l=f.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=j1("display",s))}catch(m){We(e,e.return,m)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(m){We(e,e.return,m)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;c===f&&(c=null),f=f.return}c===f&&(c=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:kn(t,e),Gn(e),r&4&&qg(e);break;case 21:break;default:kn(t,e),Gn(e)}}function Gn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(cS(n)){var r=n;break e}n=n.return}throw Error(F(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Fa(i,""),r.flags&=-33);var o=Kg(e);Lh(e,o,i);break;case 3:case 4:var s=r.stateNode.containerInfo,a=Kg(e);Oh(e,a,s);break;default:throw Error(F(161))}}catch(l){We(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function NT(e,t,n){K=e,hS(e)}function hS(e,t,n){for(var r=(e.mode&1)!==0;K!==null;){var i=K,o=i.child;if(i.tag===22&&r){var s=i.memoizedState!==null||ru;if(!s){var a=i.alternate,l=a!==null&&a.memoizedState!==null||Et;a=ru;var u=Et;if(ru=s,(Et=l)&&!u)for(K=i;K!==null;)s=K,l=s.child,s.tag===22&&s.memoizedState!==null?Xg(i):l!==null?(l.return=s,K=l):Xg(i);for(;o!==null;)K=o,hS(o),o=o.sibling;K=i,ru=a,Et=u}Gg(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,K=o):Gg(e)}}function Gg(e){for(;K!==null;){var t=K;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Et||rf(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Et)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Pn(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&Og(t,o,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Og(t,s,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var f=c.dehydrated;f!==null&&Ba(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(F(163))}Et||t.flags&512&&Dh(t)}catch(d){We(t,t.return,d)}}if(t===e){K=null;break}if(n=t.sibling,n!==null){n.return=t.return,K=n;break}K=t.return}}function Qg(e){for(;K!==null;){var t=K;if(t===e){K=null;break}var n=t.sibling;if(n!==null){n.return=t.return,K=n;break}K=t.return}}function Xg(e){for(;K!==null;){var t=K;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rf(4,t)}catch(l){We(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){We(t,i,l)}}var o=t.return;try{Dh(t)}catch(l){We(t,o,l)}break;case 5:var s=t.return;try{Dh(t)}catch(l){We(t,s,l)}}}catch(l){We(t,t.return,l)}if(t===e){K=null;break}var a=t.sibling;if(a!==null){a.return=t.return,K=a;break}K=t.return}}var FT=Math.ceil,gc=Ir.ReactCurrentDispatcher,Pm=Ir.ReactCurrentOwner,Sn=Ir.ReactCurrentBatchConfig,ve=0,ut=null,Xe=null,gt=0,Jt=0,Ko=ki(0),it=0,Za=null,uo=0,of=0,Mm=0,Ra=null,Ht=null,Am=0,Cs=1/0,gr=null,vc=!1,_h=null,pi=null,iu=!1,si=null,wc=0,Ta=0,Ih=null,Ou=-1,Lu=0;function Ft(){return ve&6?Ke():Ou!==-1?Ou:Ou=Ke()}function mi(e){return e.mode&1?ve&2&>!==0?gt&-gt:xT.transition!==null?(Lu===0&&(Lu=Y1()),Lu):(e=Re,e!==0||(e=window.event,e=e===void 0?16:ix(e.type)),e):1}function In(e,t,n,r){if(50<Ta)throw Ta=0,Ih=null,Error(F(185));ml(e,n,r),(!(ve&2)||e!==ut)&&(e===ut&&(!(ve&2)&&(of|=n),it===4&&Qr(e,gt)),Gt(e,r),n===1&&ve===0&&!(t.mode&1)&&(Cs=Ke()+500,ef&&Ri()))}function Gt(e,t){var n=e.callbackNode;xR(e,t);var r=nc(e,e===ut?gt:0);if(r===0)n!==null&&og(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&og(n),t===1)e.tag===0?wT(Yg.bind(null,e)):Cx(Yg.bind(null,e)),mT(function(){!(ve&6)&&Ri()}),n=null;else{switch(Z1(r)){case 1:n=nm;break;case 4:n=Q1;break;case 16:n=tc;break;case 536870912:n=X1;break;default:n=tc}n=SS(n,pS.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function pS(e,t){if(Ou=-1,Lu=0,ve&6)throw Error(F(327));var n=e.callbackNode;if(ts()&&e.callbackNode!==n)return null;var r=nc(e,e===ut?gt:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=xc(e,r);else{t=r;var i=ve;ve|=2;var o=yS();(ut!==e||gt!==t)&&(gr=null,Cs=Ke()+500,to(e,t));do try{zT();break}catch(a){mS(e,a)}while(!0);mm(),gc.current=o,ve=i,Xe!==null?t=0:(ut=null,gt=0,t=it)}if(t!==0){if(t===2&&(i=lh(e),i!==0&&(r=i,t=Nh(e,i))),t===1)throw n=Za,to(e,0),Qr(e,r),Gt(e,Ke()),n;if(t===6)Qr(e,r);else{if(i=e.current.alternate,!(r&30)&&!jT(i)&&(t=xc(e,r),t===2&&(o=lh(e),o!==0&&(r=o,t=Nh(e,o))),t===1))throw n=Za,to(e,0),Qr(e,r),Gt(e,Ke()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(F(345));case 2:Ii(e,Ht,gr);break;case 3:if(Qr(e,r),(r&130023424)===r&&(t=Am+500-Ke(),10<t)){if(nc(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Ft(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=yh(Ii.bind(null,e,Ht,gr),t);break}Ii(e,Ht,gr);break;case 4:if(Qr(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-_n(r);o=1<<s,s=t[s],s>i&&(i=s),r&=~o}if(r=i,r=Ke()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*FT(r/1960))-r,10<r){e.timeoutHandle=yh(Ii.bind(null,e,Ht,gr),r);break}Ii(e,Ht,gr);break;case 5:Ii(e,Ht,gr);break;default:throw Error(F(329))}}}return Gt(e,Ke()),e.callbackNode===n?pS.bind(null,e):null}function Nh(e,t){var n=Ra;return e.current.memoizedState.isDehydrated&&(to(e,t).flags|=256),e=xc(e,t),e!==2&&(t=Ht,Ht=n,t!==null&&Fh(t)),e}function Fh(e){Ht===null?Ht=e:Ht.push.apply(Ht,e)}function jT(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!Fn(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Qr(e,t){for(t&=~Mm,t&=~of,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-_n(t),r=1<<n;e[n]=-1,t&=~r}}function Yg(e){if(ve&6)throw Error(F(327));ts();var t=nc(e,0);if(!(t&1))return Gt(e,Ke()),null;var n=xc(e,t);if(e.tag!==0&&n===2){var r=lh(e);r!==0&&(t=r,n=Nh(e,r))}if(n===1)throw n=Za,to(e,0),Qr(e,t),Gt(e,Ke()),n;if(n===6)throw Error(F(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ii(e,Ht,gr),Gt(e,Ke()),null}function Dm(e,t){var n=ve;ve|=1;try{return e(t)}finally{ve=n,ve===0&&(Cs=Ke()+500,ef&&Ri())}}function co(e){si!==null&&si.tag===0&&!(ve&6)&&ts();var t=ve;ve|=1;var n=Sn.transition,r=Re;try{if(Sn.transition=null,Re=1,e)return e()}finally{Re=r,Sn.transition=n,ve=t,!(ve&6)&&Ri()}}function Om(){Jt=Ko.current,_e(Ko)}function to(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,pT(n)),Xe!==null)for(n=Xe.return;n!==null;){var r=n;switch(dm(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ac();break;case 3:Ss(),_e(Kt),_e(Rt),Sm();break;case 5:xm(r);break;case 4:Ss();break;case 13:_e(Fe);break;case 19:_e(Fe);break;case 10:ym(r.type._context);break;case 22:case 23:Om()}n=n.return}if(ut=e,Xe=e=yi(e.current,null),gt=Jt=t,it=0,Za=null,Mm=of=uo=0,Ht=Ra=null,Vi!==null){for(t=0;t<Vi.length;t++)if(n=Vi[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var s=o.next;o.next=i,r.next=s}n.pending=r}Vi=null}return e}function mS(e,t){do{var n=Xe;try{if(mm(),Mu.current=yc,mc){for(var r=je.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}mc=!1}if(lo=0,at=nt=je=null,Ea=!1,Qa=0,Pm.current=null,n===null||n.return===null){it=1,Za=t,Xe=null;break}e:{var o=e,s=n.return,a=n,l=t;if(t=gt,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=a,f=c.tag;if(!(c.mode&1)&&(f===0||f===11||f===15)){var d=c.alternate;d?(c.updateQueue=d.updateQueue,c.memoizedState=d.memoizedState,c.lanes=d.lanes):(c.updateQueue=null,c.memoizedState=null)}var h=jg(s);if(h!==null){h.flags&=-257,Vg(h,s,a,o,t),h.mode&1&&Fg(o,u,t),t=h,l=u;var p=t.updateQueue;if(p===null){var m=new Set;m.add(l),t.updateQueue=m}else p.add(l);break e}else{if(!(t&1)){Fg(o,u,t),Lm();break e}l=Error(F(426))}}else if(Ne&&a.mode&1){var v=jg(s);if(v!==null){!(v.flags&65536)&&(v.flags|=256),Vg(v,s,a,o,t),hm(bs(l,a));break e}}o=l=bs(l,a),it!==4&&(it=2),Ra===null?Ra=[o]:Ra.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var y=Zx(o,l,t);Dg(o,y);break e;case 1:a=l;var g=o.type,w=o.stateNode;if(!(o.flags&128)&&(typeof g.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(pi===null||!pi.has(w)))){o.flags|=65536,t&=-t,o.lanes|=t;var x=Jx(o,a,t);Dg(o,x);break e}}o=o.return}while(o!==null)}vS(n)}catch(E){t=E,Xe===n&&n!==null&&(Xe=n=n.return);continue}break}while(!0)}function yS(){var e=gc.current;return gc.current=yc,e===null?yc:e}function Lm(){(it===0||it===3||it===2)&&(it=4),ut===null||!(uo&268435455)&&!(of&268435455)||Qr(ut,gt)}function xc(e,t){var n=ve;ve|=2;var r=yS();(ut!==e||gt!==t)&&(gr=null,to(e,t));do try{VT();break}catch(i){mS(e,i)}while(!0);if(mm(),ve=n,gc.current=r,Xe!==null)throw Error(F(261));return ut=null,gt=0,it}function VT(){for(;Xe!==null;)gS(Xe)}function zT(){for(;Xe!==null&&!fR();)gS(Xe)}function gS(e){var t=xS(e.alternate,e,Jt);e.memoizedProps=e.pendingProps,t===null?vS(e):Xe=t,Pm.current=null}function vS(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=LT(n,t),n!==null){n.flags&=32767,Xe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{it=6,Xe=null;return}}else if(n=OT(n,t,Jt),n!==null){Xe=n;return}if(t=t.sibling,t!==null){Xe=t;return}Xe=t=e}while(t!==null);it===0&&(it=5)}function Ii(e,t,n){var r=Re,i=Sn.transition;try{Sn.transition=null,Re=1,BT(e,t,n,r)}finally{Sn.transition=i,Re=r}return null}function BT(e,t,n,r){do ts();while(si!==null);if(ve&6)throw Error(F(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(F(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(SR(e,o),e===ut&&(Xe=ut=null,gt=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||iu||(iu=!0,SS(tc,function(){return ts(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=Sn.transition,Sn.transition=null;var s=Re;Re=1;var a=ve;ve|=4,Pm.current=null,IT(e,n),dS(n,e),aT(ph),rc=!!hh,ph=hh=null,e.current=n,NT(n),dR(),ve=a,Re=s,Sn.transition=o}else e.current=n;if(iu&&(iu=!1,si=e,wc=i),o=e.pendingLanes,o===0&&(pi=null),mR(n.stateNode),Gt(e,Ke()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(vc)throw vc=!1,e=_h,_h=null,e;return wc&1&&e.tag!==0&&ts(),o=e.pendingLanes,o&1?e===Ih?Ta++:(Ta=0,Ih=e):Ta=0,Ri(),null}function ts(){if(si!==null){var e=Z1(wc),t=Sn.transition,n=Re;try{if(Sn.transition=null,Re=16>e?16:e,si===null)var r=!1;else{if(e=si,si=null,wc=0,ve&6)throw Error(F(331));var i=ve;for(ve|=4,K=e.current;K!==null;){var o=K,s=o.child;if(K.flags&16){var a=o.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(K=u;K!==null;){var c=K;switch(c.tag){case 0:case 11:case 15:ka(8,c,o)}var f=c.child;if(f!==null)f.return=c,K=f;else for(;K!==null;){c=K;var d=c.sibling,h=c.return;if(uS(c),c===u){K=null;break}if(d!==null){d.return=h,K=d;break}K=h}}}var p=o.alternate;if(p!==null){var m=p.child;if(m!==null){p.child=null;do{var v=m.sibling;m.sibling=null,m=v}while(m!==null)}}K=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,K=s;else e:for(;K!==null;){if(o=K,o.flags&2048)switch(o.tag){case 0:case 11:case 15:ka(9,o,o.return)}var y=o.sibling;if(y!==null){y.return=o.return,K=y;break e}K=o.return}}var g=e.current;for(K=g;K!==null;){s=K;var w=s.child;if(s.subtreeFlags&2064&&w!==null)w.return=s,K=w;else e:for(s=g;K!==null;){if(a=K,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:rf(9,a)}}catch(E){We(a,a.return,E)}if(a===s){K=null;break e}var x=a.sibling;if(x!==null){x.return=a.return,K=x;break e}K=a.return}}if(ve=i,Ri(),rr&&typeof rr.onPostCommitFiberRoot=="function")try{rr.onPostCommitFiberRoot(Qc,e)}catch{}r=!0}return r}finally{Re=n,Sn.transition=t}}return!1}function Zg(e,t,n){t=bs(n,t),t=Zx(e,t,1),e=hi(e,t,1),t=Ft(),e!==null&&(ml(e,1,t),Gt(e,t))}function We(e,t,n){if(e.tag===3)Zg(e,e,n);else for(;t!==null;){if(t.tag===3){Zg(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(pi===null||!pi.has(r))){e=bs(n,e),e=Jx(t,e,1),t=hi(t,e,1),e=Ft(),t!==null&&(ml(t,1,e),Gt(t,e));break}}t=t.return}}function UT(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ft(),e.pingedLanes|=e.suspendedLanes&n,ut===e&&(gt&n)===n&&(it===4||it===3&&(gt&130023424)===gt&&500>Ke()-Am?to(e,0):Mm|=n),Gt(e,t)}function wS(e,t){t===0&&(e.mode&1?(t=Gl,Gl<<=1,!(Gl&130023424)&&(Gl=4194304)):t=1);var n=Ft();e=Dr(e,t),e!==null&&(ml(e,t,n),Gt(e,n))}function $T(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),wS(e,n)}function HT(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(F(314))}r!==null&&r.delete(t),wS(e,n)}var xS;xS=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Kt.current)Wt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Wt=!1,DT(e,t,n);Wt=!!(e.flags&131072)}else Wt=!1,Ne&&t.flags&1048576&&Ex(t,cc,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Du(e,t),e=t.pendingProps;var i=vs(t,Rt.current);es(t,n),i=Cm(null,t,r,e,i,n);var o=Em();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,qt(r)?(o=!0,lc(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,vm(t),i.updater=nf,t.stateNode=i,i._reactInternals=t,Ch(t,r,e,n),t=Rh(null,t,r,!0,o,n)):(t.tag=0,Ne&&o&&fm(t),Lt(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Du(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=KT(r),e=Pn(r,e),i){case 0:t=kh(null,t,r,e,n);break e;case 1:t=Ug(null,t,r,e,n);break e;case 11:t=zg(null,t,r,e,n);break e;case 14:t=Bg(null,t,r,Pn(r.type,e),n);break e}throw Error(F(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Pn(r,i),kh(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Pn(r,i),Ug(e,t,r,i,n);case 3:e:{if(rS(t),e===null)throw Error(F(387));r=t.pendingProps,o=t.memoizedState,i=o.element,Ax(e,t),hc(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=bs(Error(F(423)),t),t=$g(e,t,r,n,i);break e}else if(r!==i){i=bs(Error(F(424)),t),t=$g(e,t,r,n,i);break e}else for(nn=di(t.stateNode.containerInfo.firstChild),rn=t,Ne=!0,Ln=null,n=Px(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ws(),r===i){t=Or(e,t,n);break e}Lt(e,t,r,n)}t=t.child}return t;case 5:return Dx(t),e===null&&xh(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,mh(r,i)?s=null:o!==null&&mh(r,o)&&(t.flags|=32),nS(e,t),Lt(e,t,s,n),t.child;case 6:return e===null&&xh(t),null;case 13:return iS(e,t,n);case 4:return wm(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=xs(t,null,r,n):Lt(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Pn(r,i),zg(e,t,r,i,n);case 7:return Lt(e,t,t.pendingProps,n),t.child;case 8:return Lt(e,t,t.pendingProps.children,n),t.child;case 12:return Lt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,Oe(fc,r._currentValue),r._currentValue=s,o!==null)if(Fn(o.value,s)){if(o.children===i.children&&!Kt.current){t=Or(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){s=o.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=Tr(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Sh(o.return,n,t),a.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(F(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Sh(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Lt(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,es(t,n),i=Cn(i),r=r(i),t.flags|=1,Lt(e,t,r,n),t.child;case 14:return r=t.type,i=Pn(r,t.pendingProps),i=Pn(r.type,i),Bg(e,t,r,i,n);case 15:return eS(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Pn(r,i),Du(e,t),t.tag=1,qt(r)?(e=!0,lc(t)):e=!1,es(t,n),Yx(t,r,i),Ch(t,r,i,n),Rh(null,t,r,!0,e,n);case 19:return oS(e,t,n);case 22:return tS(e,t,n)}throw Error(F(156,t.tag))};function SS(e,t){return G1(e,t)}function WT(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function wn(e,t,n,r){return new WT(e,t,n,r)}function _m(e){return e=e.prototype,!(!e||!e.isReactComponent)}function KT(e){if(typeof e=="function")return _m(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Jp)return 11;if(e===em)return 14}return 2}function yi(e,t){var n=e.alternate;return n===null?(n=wn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function _u(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")_m(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case No:return no(n.children,i,o,t);case Zp:s=8,i|=8;break;case qd:return e=wn(12,n,t,i|2),e.elementType=qd,e.lanes=o,e;case Gd:return e=wn(13,n,t,i),e.elementType=Gd,e.lanes=o,e;case Qd:return e=wn(19,n,t,i),e.elementType=Qd,e.lanes=o,e;case D1:return sf(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case M1:s=10;break e;case A1:s=9;break e;case Jp:s=11;break e;case em:s=14;break e;case Wr:s=16,r=null;break e}throw Error(F(130,e==null?e:typeof e,""))}return t=wn(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function no(e,t,n,r){return e=wn(7,e,r,t),e.lanes=n,e}function sf(e,t,n,r){return e=wn(22,e,r,t),e.elementType=D1,e.lanes=n,e.stateNode={isHidden:!1},e}function sd(e,t,n){return e=wn(6,e,null,t),e.lanes=n,e}function ad(e,t,n){return t=wn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function qT(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Bf(0),this.expirationTimes=Bf(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bf(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Im(e,t,n,r,i,o,s,a,l){return e=new qT(e,t,n,a,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=wn(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},vm(o),e}function GT(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Io,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function bS(e){if(!e)return wi;e=e._reactInternals;e:{if(go(e)!==e||e.tag!==1)throw Error(F(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(qt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(F(171))}if(e.tag===1){var n=e.type;if(qt(n))return bx(e,n,t)}return t}function CS(e,t,n,r,i,o,s,a,l){return e=Im(n,r,!0,e,i,o,s,a,l),e.context=bS(null),n=e.current,r=Ft(),i=mi(n),o=Tr(r,i),o.callback=t??null,hi(n,o,i),e.current.lanes=i,ml(e,i,r),Gt(e,r),e}function af(e,t,n,r){var i=t.current,o=Ft(),s=mi(i);return n=bS(n),t.context===null?t.context=n:t.pendingContext=n,t=Tr(o,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=hi(i,t,s),e!==null&&(In(e,i,s,o),Pu(e,i,s)),s}function Sc(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Jg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Nm(e,t){Jg(e,t),(e=e.alternate)&&Jg(e,t)}function QT(){return null}var ES=typeof reportError=="function"?reportError:function(e){console.error(e)};function Fm(e){this._internalRoot=e}lf.prototype.render=Fm.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(F(409));af(e,t,null,null)};lf.prototype.unmount=Fm.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;co(function(){af(null,e,null,null)}),t[Ar]=null}};function lf(e){this._internalRoot=e}lf.prototype.unstable_scheduleHydration=function(e){if(e){var t=tx();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Gr.length&&t!==0&&t<Gr[n].priority;n++);Gr.splice(n,0,e),n===0&&rx(e)}};function jm(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function uf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function ev(){}function XT(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var u=Sc(s);o.call(u)}}var s=CS(t,r,e,0,null,!1,!1,"",ev);return e._reactRootContainer=s,e[Ar]=s.current,Ha(e.nodeType===8?e.parentNode:e),co(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var u=Sc(l);a.call(u)}}var l=Im(e,0,!1,null,null,!1,!1,"",ev);return e._reactRootContainer=l,e[Ar]=l.current,Ha(e.nodeType===8?e.parentNode:e),co(function(){af(t,l,n,r)}),l}function cf(e,t,n,r,i){var o=n._reactRootContainer;if(o){var s=o;if(typeof i=="function"){var a=i;i=function(){var l=Sc(s);a.call(l)}}af(t,s,e,i)}else s=XT(n,t,e,i,r);return Sc(s)}J1=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=pa(t.pendingLanes);n!==0&&(rm(t,n|1),Gt(t,Ke()),!(ve&6)&&(Cs=Ke()+500,Ri()))}break;case 13:co(function(){var r=Dr(e,1);if(r!==null){var i=Ft();In(r,e,1,i)}}),Nm(e,1)}};im=function(e){if(e.tag===13){var t=Dr(e,134217728);if(t!==null){var n=Ft();In(t,e,134217728,n)}Nm(e,134217728)}};ex=function(e){if(e.tag===13){var t=mi(e),n=Dr(e,t);if(n!==null){var r=Ft();In(n,e,t,r)}Nm(e,t)}};tx=function(){return Re};nx=function(e,t){var n=Re;try{return Re=e,t()}finally{Re=n}};oh=function(e,t,n){switch(t){case"input":if(Zd(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Jc(r);if(!i)throw Error(F(90));L1(r),Zd(r,i)}}}break;case"textarea":I1(e,n);break;case"select":t=n.value,t!=null&&Xo(e,!!n.multiple,t,!1)}};U1=Dm;$1=co;var YT={usingClientEntryPoint:!1,Events:[gl,zo,Jc,z1,B1,Dm]},ra={findFiberByHostInstance:ji,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ZT={bundleType:ra.bundleType,version:ra.version,rendererPackageName:ra.rendererPackageName,rendererConfig:ra.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ir.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=K1(e),e===null?null:e.stateNode},findFiberByHostInstance:ra.findFiberByHostInstance||QT,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ou=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ou.isDisabled&&ou.supportsFiber)try{Qc=ou.inject(ZT),rr=ou}catch{}}ln.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=YT;ln.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!jm(t))throw Error(F(200));return GT(e,t,null,n)};ln.createRoot=function(e,t){if(!jm(e))throw Error(F(299));var n=!1,r="",i=ES;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Im(e,1,!1,null,null,n,!1,r,i),e[Ar]=t.current,Ha(e.nodeType===8?e.parentNode:e),new Fm(t)};ln.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(F(188)):(e=Object.keys(e).join(","),Error(F(268,e)));return e=K1(t),e=e===null?null:e.stateNode,e};ln.flushSync=function(e){return co(e)};ln.hydrate=function(e,t,n){if(!uf(t))throw Error(F(200));return cf(null,e,t,!0,n)};ln.hydrateRoot=function(e,t,n){if(!jm(e))throw Error(F(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",s=ES;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=CS(t,null,e,1,n??null,i,!1,o,s),e[Ar]=t.current,Ha(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new lf(t)};ln.render=function(e,t,n){if(!uf(t))throw Error(F(200));return cf(null,e,t,!1,n)};ln.unmountComponentAtNode=function(e){if(!uf(e))throw Error(F(40));return e._reactRootContainer?(co(function(){cf(null,null,e,!1,function(){e._reactRootContainer=null,e[Ar]=null})}),!0):!1};ln.unstable_batchedUpdates=Dm;ln.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!uf(n))throw Error(F(200));if(e==null||e._reactInternals===void 0)throw Error(F(38));return cf(e,t,n,!1,r)};ln.version="18.3.1-next-f1338f8080-20240426";function kS(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(kS)}catch(e){console.error(e)}}kS(),k1.exports=ln;var kr=k1.exports;const JT=h1(kr),uF=d1({__proto__:null,default:JT},[kr]);var tv=kr;Qy.createRoot=tv.createRoot,Qy.hydrateRoot=tv.hydrateRoot;/**
|
|
40
|
+
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function id(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Eh(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var P2=typeof WeakMap=="function"?WeakMap:Map;function Zx(e,t,n){n=Tr(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){vc||(vc=!0,_h=r),Eh(e,t)},n}function Jx(e,t,n){n=Tr(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Eh(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Eh(e,t),typeof r!="function"&&(pi===null?pi=new Set([this]):pi.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Fg(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new P2;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=U2.bind(null,e,t,n),t.then(e,e))}function jg(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Vg(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Tr(-1,1),t.tag=2,hi(n,t,1))),n.lanes|=1),e)}var M2=Ir.ReactCurrentOwner,Ht=!1;function Lt(e,t,n,r){t.child=e===null?Px(t,null,n,r):xs(t,e.child,n,r)}function zg(e,t,n,r,i){n=n.render;var o=t.ref;return es(t,i),r=Cm(e,t,n,r,o,i),n=Em(),e!==null&&!Ht?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Or(e,t,i)):(Ne&&n&&fm(t),t.flags|=1,Lt(e,t,r,i),t.child)}function Bg(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!_m(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,eS(e,t,o,r,i)):(e=_u(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:$a,n(s,r)&&e.ref===t.ref)return Or(e,t,i)}return t.flags|=1,e=yi(o,r),e.ref=t.ref,e.return=t,t.child=e}function eS(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if($a(o,r)&&e.ref===t.ref)if(Ht=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(Ht=!0);else return t.lanes=e.lanes,Or(e,t,i)}return kh(e,t,n,r,i)}function tS(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Oe(Ko,Jt),Jt|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Oe(Ko,Jt),Jt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Oe(Ko,Jt),Jt|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Oe(Ko,Jt),Jt|=r;return Lt(e,t,i,n),t.child}function nS(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function kh(e,t,n,r,i){var o=qt(n)?so:Rt.current;return o=vs(t,o),es(t,i),n=Cm(e,t,n,r,o,i),r=Em(),e!==null&&!Ht?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Or(e,t,i)):(Ne&&r&&fm(t),t.flags|=1,Lt(e,t,n,i),t.child)}function Ug(e,t,n,r,i){if(qt(n)){var o=!0;lc(t)}else o=!1;if(es(t,i),t.stateNode===null)Du(e,t),Yx(t,n,r),Ch(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=Cn(u):(u=qt(n)?so:Rt.current,u=vs(t,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";f||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||l!==u)&&Ng(t,s,r,u),Kr=!1;var d=t.memoizedState;s.state=d,hc(t,r,s,i),l=t.memoizedState,a!==r||d!==l||Kt.current||Kr?(typeof c=="function"&&(bh(t,n,c,r),l=t.memoizedState),(a=Kr||Ig(t,n,a,r,d,l,u))?(f||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=u,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,Ax(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:Pn(t.type,a),s.props=u,f=t.pendingProps,d=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=Cn(l):(l=qt(n)?so:Rt.current,l=vs(t,l));var h=n.getDerivedStateFromProps;(c=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==f||d!==l)&&Ng(t,s,r,l),Kr=!1,d=t.memoizedState,s.state=d,hc(t,r,s,i);var p=t.memoizedState;a!==f||d!==p||Kt.current||Kr?(typeof h=="function"&&(bh(t,n,h,r),p=t.memoizedState),(u=Kr||Ig(t,n,u,r,d,p,l)||!1)?(c||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,p,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,p,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),s.props=r,s.state=p,s.context=l,r=u):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return Rh(e,t,n,r,o,i)}function Rh(e,t,n,r,i,o){nS(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&Tg(t,n,!1),Or(e,t,o);r=t.stateNode,M2.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=xs(t,e.child,null,o),t.child=xs(t,null,a,o)):Lt(e,t,a,o),t.memoizedState=r.state,i&&Tg(t,n,!0),t.child}function rS(e){var t=e.stateNode;t.pendingContext?Rg(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Rg(e,t.context,!1),wm(e,t.containerInfo)}function $g(e,t,n,r,i){return ws(),hm(i),t.flags|=256,Lt(e,t,n,r),t.child}var Th={dehydrated:null,treeContext:null,retryLane:0};function Ph(e){return{baseLanes:e,cachePool:null,transitions:null}}function iS(e,t,n){var r=t.pendingProps,i=Fe.current,o=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Oe(Fe,i&1),e===null)return xh(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,o?(r=t.mode,o=t.child,s={mode:"hidden",children:s},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=sf(s,r,0,null),e=no(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Ph(n),t.memoizedState=Th,e):Tm(t,s));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return A2(e,t,s,r,a,i,n);if(o){o=r.fallback,s=t.mode,i=e.child,a=i.sibling;var l={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=yi(i,l),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?o=yi(a,o):(o=no(o,s,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,s=e.child.memoizedState,s=s===null?Ph(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=Th,r}return o=e.child,e=o.sibling,r=yi(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Tm(e,t){return t=sf({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function nu(e,t,n,r){return r!==null&&hm(r),xs(t,e.child,null,n),e=Tm(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function A2(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=id(Error(F(422))),nu(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=sf({mode:"visible",children:r.children},i,0,null),o=no(o,i,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&xs(t,e.child,null,s),t.child.memoizedState=Ph(s),t.memoizedState=Th,o);if(!(t.mode&1))return nu(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,o=Error(F(419)),r=id(o,r,void 0),nu(e,t,s,r)}if(a=(s&e.childLanes)!==0,Ht||a){if(r=ut,r!==null){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|s)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,Dr(e,i),In(r,e,i,-1))}return Lm(),r=id(Error(F(421))),nu(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=$2.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,nn=di(i.nextSibling),rn=t,Ne=!0,Ln=null,e!==null&&(yn[gn++]=Cr,yn[gn++]=Er,yn[gn++]=ao,Cr=e.id,Er=e.overflow,ao=t),t=Tm(t,r.children),t.flags|=4096,t)}function Wg(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Sh(e.return,t,n)}function od(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function oS(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Lt(e,t,r.children,n),r=Fe.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Wg(e,n,t);else if(e.tag===19)Wg(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Oe(Fe,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&pc(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),od(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&pc(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}od(t,!0,n,null,o);break;case"together":od(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Du(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Or(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),uo|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(F(153));if(t.child!==null){for(e=t.child,n=yi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=yi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function D2(e,t,n){switch(t.tag){case 3:rS(t),ws();break;case 5:Dx(t);break;case 1:qt(t.type)&&lc(t);break;case 4:wm(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Oe(fc,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Oe(Fe,Fe.current&1),t.flags|=128,null):n&t.child.childLanes?iS(e,t,n):(Oe(Fe,Fe.current&1),e=Or(e,t,n),e!==null?e.sibling:null);Oe(Fe,Fe.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return oS(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Oe(Fe,Fe.current),r)break;return null;case 22:case 23:return t.lanes=0,tS(e,t,n)}return Or(e,t,n)}var sS,Mh,aS,lS;sS=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Mh=function(){};aS=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,zi(ir.current);var o=null;switch(n){case"input":i=Yd(e,i),r=Yd(e,r),o=[];break;case"select":i=Ve({},i,{value:void 0}),r=Ve({},r,{value:void 0}),o=[];break;case"textarea":i=eh(e,i),r=eh(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=sc)}nh(n,r);var s;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var a=i[u];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Na.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var l=r[u];if(a=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(s in a)!a.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&a[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(o||(o=[]),o.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(o=o||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Na.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&Le("scroll",e),o||a===l||(o=[])):(o=o||[]).push(u,l))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};lS=function(e,t,n,r){n!==r&&(t.flags|=4)};function na(e,t){if(!Ne)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function bt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function O2(e,t,n){var r=t.pendingProps;switch(dm(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return bt(t),null;case 1:return qt(t.type)&&ac(),bt(t),null;case 3:return r=t.stateNode,Ss(),_e(Kt),_e(Rt),Sm(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(eu(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ln!==null&&(Fh(Ln),Ln=null))),Mh(e,t),bt(t),null;case 5:xm(t);var i=zi(Ga.current);if(n=t.type,e!==null&&t.stateNode!=null)aS(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(F(166));return bt(t),null}if(e=zi(ir.current),eu(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[tr]=t,r[Ka]=o,e=(t.mode&1)!==0,n){case"dialog":Le("cancel",r),Le("close",r);break;case"iframe":case"object":case"embed":Le("load",r);break;case"video":case"audio":for(i=0;i<ma.length;i++)Le(ma[i],r);break;case"source":Le("error",r);break;case"img":case"image":case"link":Le("error",r),Le("load",r);break;case"details":Le("toggle",r);break;case"input":Jy(r,o),Le("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Le("invalid",r);break;case"textarea":tg(r,o),Le("invalid",r)}nh(n,o),i=null;for(var s in o)if(o.hasOwnProperty(s)){var a=o[s];s==="children"?typeof a=="string"?r.textContent!==a&&(o.suppressHydrationWarning!==!0&&Jl(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&Jl(r.textContent,a,e),i=["children",""+a]):Na.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&Le("scroll",r)}switch(n){case"input":Hl(r),eg(r,o,!0);break;case"textarea":Hl(r),ng(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=sc)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=N1(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[tr]=t,e[Ka]=r,sS(e,t,!1,!1),t.stateNode=e;e:{switch(s=rh(n,r),n){case"dialog":Le("cancel",e),Le("close",e),i=r;break;case"iframe":case"object":case"embed":Le("load",e),i=r;break;case"video":case"audio":for(i=0;i<ma.length;i++)Le(ma[i],e);i=r;break;case"source":Le("error",e),i=r;break;case"img":case"image":case"link":Le("error",e),Le("load",e),i=r;break;case"details":Le("toggle",e),i=r;break;case"input":Jy(e,r),i=Yd(e,r),Le("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=Ve({},r,{value:void 0}),Le("invalid",e);break;case"textarea":tg(e,r),i=eh(e,r),Le("invalid",e);break;default:i=r}nh(n,i),a=i;for(o in a)if(a.hasOwnProperty(o)){var l=a[o];o==="style"?V1(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&F1(e,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Fa(e,l):typeof l=="number"&&Fa(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Na.hasOwnProperty(o)?l!=null&&o==="onScroll"&&Le("scroll",e):l!=null&&Yp(e,o,l,s))}switch(n){case"input":Hl(e),eg(e,r,!1);break;case"textarea":Hl(e),ng(e);break;case"option":r.value!=null&&e.setAttribute("value",""+vi(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Xo(e,!!r.multiple,o,!1):r.defaultValue!=null&&Xo(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=sc)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return bt(t),null;case 6:if(e&&t.stateNode!=null)lS(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(F(166));if(n=zi(Ga.current),zi(ir.current),eu(t)){if(r=t.stateNode,n=t.memoizedProps,r[tr]=t,(o=r.nodeValue!==n)&&(e=rn,e!==null))switch(e.tag){case 3:Jl(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Jl(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[tr]=t,t.stateNode=r}return bt(t),null;case 13:if(_e(Fe),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ne&&nn!==null&&t.mode&1&&!(t.flags&128))Rx(),ws(),t.flags|=98560,o=!1;else if(o=eu(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(F(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(F(317));o[tr]=t}else ws(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;bt(t),o=!1}else Ln!==null&&(Fh(Ln),Ln=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Fe.current&1?it===0&&(it=3):Lm())),t.updateQueue!==null&&(t.flags|=4),bt(t),null);case 4:return Ss(),Mh(e,t),e===null&&Wa(t.stateNode.containerInfo),bt(t),null;case 10:return ym(t.type._context),bt(t),null;case 17:return qt(t.type)&&ac(),bt(t),null;case 19:if(_e(Fe),o=t.memoizedState,o===null)return bt(t),null;if(r=(t.flags&128)!==0,s=o.rendering,s===null)if(r)na(o,!1);else{if(it!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=pc(e),s!==null){for(t.flags|=128,na(o,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Oe(Fe,Fe.current&1|2),t.child}e=e.sibling}o.tail!==null&&Ke()>Cs&&(t.flags|=128,r=!0,na(o,!1),t.lanes=4194304)}else{if(!r)if(e=pc(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),na(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!Ne)return bt(t),null}else 2*Ke()-o.renderingStartTime>Cs&&n!==1073741824&&(t.flags|=128,r=!0,na(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Ke(),t.sibling=null,n=Fe.current,Oe(Fe,r?n&1|2:n&1),t):(bt(t),null);case 22:case 23:return Om(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Jt&1073741824&&(bt(t),t.subtreeFlags&6&&(t.flags|=8192)):bt(t),null;case 24:return null;case 25:return null}throw Error(F(156,t.tag))}function L2(e,t){switch(dm(t),t.tag){case 1:return qt(t.type)&&ac(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ss(),_e(Kt),_e(Rt),Sm(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return xm(t),null;case 13:if(_e(Fe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(F(340));ws()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return _e(Fe),null;case 4:return Ss(),null;case 10:return ym(t.type._context),null;case 22:case 23:return Om(),null;case 24:return null;default:return null}}var ru=!1,Et=!1,_2=typeof WeakSet=="function"?WeakSet:Set,K=null;function Ho(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){He(e,t,r)}else n.current=null}function Ah(e,t,n){try{n()}catch(r){He(e,t,r)}}var Hg=!1;function I2(e,t){if(hh=rc,e=hx(),cm(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var h;f!==n||i!==0&&f.nodeType!==3||(a=s+i),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(h=f.firstChild)!==null;)d=f,f=h;for(;;){if(f===e)break t;if(d===n&&++u===i&&(a=s),d===o&&++c===r&&(l=s),(h=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=h}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(ph={focusedElem:e,selectionRange:n},rc=!1,K=t;K!==null;)if(t=K,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,K=e;else for(;K!==null;){t=K;try{var p=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var m=p.memoizedProps,v=p.memoizedState,y=t.stateNode,g=y.getSnapshotBeforeUpdate(t.elementType===t.type?m:Pn(t.type,m),v);y.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(F(163))}}catch(x){He(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,K=e;break}K=t.return}return p=Hg,Hg=!1,p}function ka(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Ah(t,n,o)}i=i.next}while(i!==r)}}function rf(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Dh(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function uS(e){var t=e.alternate;t!==null&&(e.alternate=null,uS(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[tr],delete t[Ka],delete t[gh],delete t[g2],delete t[v2])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function cS(e){return e.tag===5||e.tag===3||e.tag===4}function Kg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||cS(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Oh(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=sc));else if(r!==4&&(e=e.child,e!==null))for(Oh(e,t,n),e=e.sibling;e!==null;)Oh(e,t,n),e=e.sibling}function Lh(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Lh(e,t,n),e=e.sibling;e!==null;)Lh(e,t,n),e=e.sibling}var ht=null,Dn=!1;function Vr(e,t,n){for(n=n.child;n!==null;)fS(e,t,n),n=n.sibling}function fS(e,t,n){if(rr&&typeof rr.onCommitFiberUnmount=="function")try{rr.onCommitFiberUnmount(Qc,n)}catch{}switch(n.tag){case 5:Et||Ho(n,t);case 6:var r=ht,i=Dn;ht=null,Vr(e,t,n),ht=r,Dn=i,ht!==null&&(Dn?(e=ht,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ht.removeChild(n.stateNode));break;case 18:ht!==null&&(Dn?(e=ht,n=n.stateNode,e.nodeType===8?Zf(e.parentNode,n):e.nodeType===1&&Zf(e,n),Ba(e)):Zf(ht,n.stateNode));break;case 4:r=ht,i=Dn,ht=n.stateNode.containerInfo,Dn=!0,Vr(e,t,n),ht=r,Dn=i;break;case 0:case 11:case 14:case 15:if(!Et&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&Ah(n,t,s),i=i.next}while(i!==r)}Vr(e,t,n);break;case 1:if(!Et&&(Ho(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){He(n,t,a)}Vr(e,t,n);break;case 21:Vr(e,t,n);break;case 22:n.mode&1?(Et=(r=Et)||n.memoizedState!==null,Vr(e,t,n),Et=r):Vr(e,t,n);break;default:Vr(e,t,n)}}function qg(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new _2),t.forEach(function(r){var i=W2.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function kn(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,s=t,a=s;e:for(;a!==null;){switch(a.tag){case 5:ht=a.stateNode,Dn=!1;break e;case 3:ht=a.stateNode.containerInfo,Dn=!0;break e;case 4:ht=a.stateNode.containerInfo,Dn=!0;break e}a=a.return}if(ht===null)throw Error(F(160));fS(o,s,i),ht=null,Dn=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){He(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)dS(t,e),t=t.sibling}function dS(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(kn(t,e),Gn(e),r&4){try{ka(3,e,e.return),rf(3,e)}catch(m){He(e,e.return,m)}try{ka(5,e,e.return)}catch(m){He(e,e.return,m)}}break;case 1:kn(t,e),Gn(e),r&512&&n!==null&&Ho(n,n.return);break;case 5:if(kn(t,e),Gn(e),r&512&&n!==null&&Ho(n,n.return),e.flags&32){var i=e.stateNode;try{Fa(i,"")}catch(m){He(e,e.return,m)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,s=n!==null?n.memoizedProps:o,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&o.type==="radio"&&o.name!=null&&_1(i,o),rh(a,s);var u=rh(a,o);for(s=0;s<l.length;s+=2){var c=l[s],f=l[s+1];c==="style"?V1(i,f):c==="dangerouslySetInnerHTML"?F1(i,f):c==="children"?Fa(i,f):Yp(i,c,f,u)}switch(a){case"input":Zd(i,o);break;case"textarea":I1(i,o);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var h=o.value;h!=null?Xo(i,!!o.multiple,h,!1):d!==!!o.multiple&&(o.defaultValue!=null?Xo(i,!!o.multiple,o.defaultValue,!0):Xo(i,!!o.multiple,o.multiple?[]:"",!1))}i[Ka]=o}catch(m){He(e,e.return,m)}}break;case 6:if(kn(t,e),Gn(e),r&4){if(e.stateNode===null)throw Error(F(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(m){He(e,e.return,m)}}break;case 3:if(kn(t,e),Gn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Ba(t.containerInfo)}catch(m){He(e,e.return,m)}break;case 4:kn(t,e),Gn(e);break;case 13:kn(t,e),Gn(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(Am=Ke())),r&4&&qg(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Et=(u=Et)||c,kn(t,e),Et=u):kn(t,e),Gn(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(K=e,c=e.child;c!==null;){for(f=K=c;K!==null;){switch(d=K,h=d.child,d.tag){case 0:case 11:case 14:case 15:ka(4,d,d.return);break;case 1:Ho(d,d.return);var p=d.stateNode;if(typeof p.componentWillUnmount=="function"){r=d,n=d.return;try{t=r,p.props=t.memoizedProps,p.state=t.memoizedState,p.componentWillUnmount()}catch(m){He(r,n,m)}}break;case 5:Ho(d,d.return);break;case 22:if(d.memoizedState!==null){Qg(f);continue}}h!==null?(h.return=d,K=h):Qg(f)}c=c.sibling}e:for(c=null,f=e;;){if(f.tag===5){if(c===null){c=f;try{i=f.stateNode,u?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(a=f.stateNode,l=f.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=j1("display",s))}catch(m){He(e,e.return,m)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(m){He(e,e.return,m)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;c===f&&(c=null),f=f.return}c===f&&(c=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:kn(t,e),Gn(e),r&4&&qg(e);break;case 21:break;default:kn(t,e),Gn(e)}}function Gn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(cS(n)){var r=n;break e}n=n.return}throw Error(F(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Fa(i,""),r.flags&=-33);var o=Kg(e);Lh(e,o,i);break;case 3:case 4:var s=r.stateNode.containerInfo,a=Kg(e);Oh(e,a,s);break;default:throw Error(F(161))}}catch(l){He(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function N2(e,t,n){K=e,hS(e)}function hS(e,t,n){for(var r=(e.mode&1)!==0;K!==null;){var i=K,o=i.child;if(i.tag===22&&r){var s=i.memoizedState!==null||ru;if(!s){var a=i.alternate,l=a!==null&&a.memoizedState!==null||Et;a=ru;var u=Et;if(ru=s,(Et=l)&&!u)for(K=i;K!==null;)s=K,l=s.child,s.tag===22&&s.memoizedState!==null?Xg(i):l!==null?(l.return=s,K=l):Xg(i);for(;o!==null;)K=o,hS(o),o=o.sibling;K=i,ru=a,Et=u}Gg(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,K=o):Gg(e)}}function Gg(e){for(;K!==null;){var t=K;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Et||rf(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Et)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Pn(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&Og(t,o,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Og(t,s,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var f=c.dehydrated;f!==null&&Ba(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(F(163))}Et||t.flags&512&&Dh(t)}catch(d){He(t,t.return,d)}}if(t===e){K=null;break}if(n=t.sibling,n!==null){n.return=t.return,K=n;break}K=t.return}}function Qg(e){for(;K!==null;){var t=K;if(t===e){K=null;break}var n=t.sibling;if(n!==null){n.return=t.return,K=n;break}K=t.return}}function Xg(e){for(;K!==null;){var t=K;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rf(4,t)}catch(l){He(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){He(t,i,l)}}var o=t.return;try{Dh(t)}catch(l){He(t,o,l)}break;case 5:var s=t.return;try{Dh(t)}catch(l){He(t,s,l)}}}catch(l){He(t,t.return,l)}if(t===e){K=null;break}var a=t.sibling;if(a!==null){a.return=t.return,K=a;break}K=t.return}}var F2=Math.ceil,gc=Ir.ReactCurrentDispatcher,Pm=Ir.ReactCurrentOwner,Sn=Ir.ReactCurrentBatchConfig,ve=0,ut=null,Xe=null,gt=0,Jt=0,Ko=ki(0),it=0,Za=null,uo=0,of=0,Mm=0,Ra=null,Wt=null,Am=0,Cs=1/0,gr=null,vc=!1,_h=null,pi=null,iu=!1,si=null,wc=0,Ta=0,Ih=null,Ou=-1,Lu=0;function Ft(){return ve&6?Ke():Ou!==-1?Ou:Ou=Ke()}function mi(e){return e.mode&1?ve&2&>!==0?gt&-gt:x2.transition!==null?(Lu===0&&(Lu=Y1()),Lu):(e=Re,e!==0||(e=window.event,e=e===void 0?16:ix(e.type)),e):1}function In(e,t,n,r){if(50<Ta)throw Ta=0,Ih=null,Error(F(185));ml(e,n,r),(!(ve&2)||e!==ut)&&(e===ut&&(!(ve&2)&&(of|=n),it===4&&Qr(e,gt)),Gt(e,r),n===1&&ve===0&&!(t.mode&1)&&(Cs=Ke()+500,ef&&Ri()))}function Gt(e,t){var n=e.callbackNode;xR(e,t);var r=nc(e,e===ut?gt:0);if(r===0)n!==null&&og(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&og(n),t===1)e.tag===0?w2(Yg.bind(null,e)):Cx(Yg.bind(null,e)),m2(function(){!(ve&6)&&Ri()}),n=null;else{switch(Z1(r)){case 1:n=nm;break;case 4:n=Q1;break;case 16:n=tc;break;case 536870912:n=X1;break;default:n=tc}n=SS(n,pS.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function pS(e,t){if(Ou=-1,Lu=0,ve&6)throw Error(F(327));var n=e.callbackNode;if(ts()&&e.callbackNode!==n)return null;var r=nc(e,e===ut?gt:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=xc(e,r);else{t=r;var i=ve;ve|=2;var o=yS();(ut!==e||gt!==t)&&(gr=null,Cs=Ke()+500,to(e,t));do try{z2();break}catch(a){mS(e,a)}while(!0);mm(),gc.current=o,ve=i,Xe!==null?t=0:(ut=null,gt=0,t=it)}if(t!==0){if(t===2&&(i=lh(e),i!==0&&(r=i,t=Nh(e,i))),t===1)throw n=Za,to(e,0),Qr(e,r),Gt(e,Ke()),n;if(t===6)Qr(e,r);else{if(i=e.current.alternate,!(r&30)&&!j2(i)&&(t=xc(e,r),t===2&&(o=lh(e),o!==0&&(r=o,t=Nh(e,o))),t===1))throw n=Za,to(e,0),Qr(e,r),Gt(e,Ke()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(F(345));case 2:Ii(e,Wt,gr);break;case 3:if(Qr(e,r),(r&130023424)===r&&(t=Am+500-Ke(),10<t)){if(nc(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Ft(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=yh(Ii.bind(null,e,Wt,gr),t);break}Ii(e,Wt,gr);break;case 4:if(Qr(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-_n(r);o=1<<s,s=t[s],s>i&&(i=s),r&=~o}if(r=i,r=Ke()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*F2(r/1960))-r,10<r){e.timeoutHandle=yh(Ii.bind(null,e,Wt,gr),r);break}Ii(e,Wt,gr);break;case 5:Ii(e,Wt,gr);break;default:throw Error(F(329))}}}return Gt(e,Ke()),e.callbackNode===n?pS.bind(null,e):null}function Nh(e,t){var n=Ra;return e.current.memoizedState.isDehydrated&&(to(e,t).flags|=256),e=xc(e,t),e!==2&&(t=Wt,Wt=n,t!==null&&Fh(t)),e}function Fh(e){Wt===null?Wt=e:Wt.push.apply(Wt,e)}function j2(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!Fn(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Qr(e,t){for(t&=~Mm,t&=~of,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-_n(t),r=1<<n;e[n]=-1,t&=~r}}function Yg(e){if(ve&6)throw Error(F(327));ts();var t=nc(e,0);if(!(t&1))return Gt(e,Ke()),null;var n=xc(e,t);if(e.tag!==0&&n===2){var r=lh(e);r!==0&&(t=r,n=Nh(e,r))}if(n===1)throw n=Za,to(e,0),Qr(e,t),Gt(e,Ke()),n;if(n===6)throw Error(F(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ii(e,Wt,gr),Gt(e,Ke()),null}function Dm(e,t){var n=ve;ve|=1;try{return e(t)}finally{ve=n,ve===0&&(Cs=Ke()+500,ef&&Ri())}}function co(e){si!==null&&si.tag===0&&!(ve&6)&&ts();var t=ve;ve|=1;var n=Sn.transition,r=Re;try{if(Sn.transition=null,Re=1,e)return e()}finally{Re=r,Sn.transition=n,ve=t,!(ve&6)&&Ri()}}function Om(){Jt=Ko.current,_e(Ko)}function to(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,p2(n)),Xe!==null)for(n=Xe.return;n!==null;){var r=n;switch(dm(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ac();break;case 3:Ss(),_e(Kt),_e(Rt),Sm();break;case 5:xm(r);break;case 4:Ss();break;case 13:_e(Fe);break;case 19:_e(Fe);break;case 10:ym(r.type._context);break;case 22:case 23:Om()}n=n.return}if(ut=e,Xe=e=yi(e.current,null),gt=Jt=t,it=0,Za=null,Mm=of=uo=0,Wt=Ra=null,Vi!==null){for(t=0;t<Vi.length;t++)if(n=Vi[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var s=o.next;o.next=i,r.next=s}n.pending=r}Vi=null}return e}function mS(e,t){do{var n=Xe;try{if(mm(),Mu.current=yc,mc){for(var r=je.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}mc=!1}if(lo=0,at=nt=je=null,Ea=!1,Qa=0,Pm.current=null,n===null||n.return===null){it=1,Za=t,Xe=null;break}e:{var o=e,s=n.return,a=n,l=t;if(t=gt,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=a,f=c.tag;if(!(c.mode&1)&&(f===0||f===11||f===15)){var d=c.alternate;d?(c.updateQueue=d.updateQueue,c.memoizedState=d.memoizedState,c.lanes=d.lanes):(c.updateQueue=null,c.memoizedState=null)}var h=jg(s);if(h!==null){h.flags&=-257,Vg(h,s,a,o,t),h.mode&1&&Fg(o,u,t),t=h,l=u;var p=t.updateQueue;if(p===null){var m=new Set;m.add(l),t.updateQueue=m}else p.add(l);break e}else{if(!(t&1)){Fg(o,u,t),Lm();break e}l=Error(F(426))}}else if(Ne&&a.mode&1){var v=jg(s);if(v!==null){!(v.flags&65536)&&(v.flags|=256),Vg(v,s,a,o,t),hm(bs(l,a));break e}}o=l=bs(l,a),it!==4&&(it=2),Ra===null?Ra=[o]:Ra.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var y=Zx(o,l,t);Dg(o,y);break e;case 1:a=l;var g=o.type,w=o.stateNode;if(!(o.flags&128)&&(typeof g.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(pi===null||!pi.has(w)))){o.flags|=65536,t&=-t,o.lanes|=t;var x=Jx(o,a,t);Dg(o,x);break e}}o=o.return}while(o!==null)}vS(n)}catch(E){t=E,Xe===n&&n!==null&&(Xe=n=n.return);continue}break}while(!0)}function yS(){var e=gc.current;return gc.current=yc,e===null?yc:e}function Lm(){(it===0||it===3||it===2)&&(it=4),ut===null||!(uo&268435455)&&!(of&268435455)||Qr(ut,gt)}function xc(e,t){var n=ve;ve|=2;var r=yS();(ut!==e||gt!==t)&&(gr=null,to(e,t));do try{V2();break}catch(i){mS(e,i)}while(!0);if(mm(),ve=n,gc.current=r,Xe!==null)throw Error(F(261));return ut=null,gt=0,it}function V2(){for(;Xe!==null;)gS(Xe)}function z2(){for(;Xe!==null&&!fR();)gS(Xe)}function gS(e){var t=xS(e.alternate,e,Jt);e.memoizedProps=e.pendingProps,t===null?vS(e):Xe=t,Pm.current=null}function vS(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=L2(n,t),n!==null){n.flags&=32767,Xe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{it=6,Xe=null;return}}else if(n=O2(n,t,Jt),n!==null){Xe=n;return}if(t=t.sibling,t!==null){Xe=t;return}Xe=t=e}while(t!==null);it===0&&(it=5)}function Ii(e,t,n){var r=Re,i=Sn.transition;try{Sn.transition=null,Re=1,B2(e,t,n,r)}finally{Sn.transition=i,Re=r}return null}function B2(e,t,n,r){do ts();while(si!==null);if(ve&6)throw Error(F(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(F(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(SR(e,o),e===ut&&(Xe=ut=null,gt=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||iu||(iu=!0,SS(tc,function(){return ts(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=Sn.transition,Sn.transition=null;var s=Re;Re=1;var a=ve;ve|=4,Pm.current=null,I2(e,n),dS(n,e),a2(ph),rc=!!hh,ph=hh=null,e.current=n,N2(n),dR(),ve=a,Re=s,Sn.transition=o}else e.current=n;if(iu&&(iu=!1,si=e,wc=i),o=e.pendingLanes,o===0&&(pi=null),mR(n.stateNode),Gt(e,Ke()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(vc)throw vc=!1,e=_h,_h=null,e;return wc&1&&e.tag!==0&&ts(),o=e.pendingLanes,o&1?e===Ih?Ta++:(Ta=0,Ih=e):Ta=0,Ri(),null}function ts(){if(si!==null){var e=Z1(wc),t=Sn.transition,n=Re;try{if(Sn.transition=null,Re=16>e?16:e,si===null)var r=!1;else{if(e=si,si=null,wc=0,ve&6)throw Error(F(331));var i=ve;for(ve|=4,K=e.current;K!==null;){var o=K,s=o.child;if(K.flags&16){var a=o.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(K=u;K!==null;){var c=K;switch(c.tag){case 0:case 11:case 15:ka(8,c,o)}var f=c.child;if(f!==null)f.return=c,K=f;else for(;K!==null;){c=K;var d=c.sibling,h=c.return;if(uS(c),c===u){K=null;break}if(d!==null){d.return=h,K=d;break}K=h}}}var p=o.alternate;if(p!==null){var m=p.child;if(m!==null){p.child=null;do{var v=m.sibling;m.sibling=null,m=v}while(m!==null)}}K=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,K=s;else e:for(;K!==null;){if(o=K,o.flags&2048)switch(o.tag){case 0:case 11:case 15:ka(9,o,o.return)}var y=o.sibling;if(y!==null){y.return=o.return,K=y;break e}K=o.return}}var g=e.current;for(K=g;K!==null;){s=K;var w=s.child;if(s.subtreeFlags&2064&&w!==null)w.return=s,K=w;else e:for(s=g;K!==null;){if(a=K,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:rf(9,a)}}catch(E){He(a,a.return,E)}if(a===s){K=null;break e}var x=a.sibling;if(x!==null){x.return=a.return,K=x;break e}K=a.return}}if(ve=i,Ri(),rr&&typeof rr.onPostCommitFiberRoot=="function")try{rr.onPostCommitFiberRoot(Qc,e)}catch{}r=!0}return r}finally{Re=n,Sn.transition=t}}return!1}function Zg(e,t,n){t=bs(n,t),t=Zx(e,t,1),e=hi(e,t,1),t=Ft(),e!==null&&(ml(e,1,t),Gt(e,t))}function He(e,t,n){if(e.tag===3)Zg(e,e,n);else for(;t!==null;){if(t.tag===3){Zg(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(pi===null||!pi.has(r))){e=bs(n,e),e=Jx(t,e,1),t=hi(t,e,1),e=Ft(),t!==null&&(ml(t,1,e),Gt(t,e));break}}t=t.return}}function U2(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ft(),e.pingedLanes|=e.suspendedLanes&n,ut===e&&(gt&n)===n&&(it===4||it===3&&(gt&130023424)===gt&&500>Ke()-Am?to(e,0):Mm|=n),Gt(e,t)}function wS(e,t){t===0&&(e.mode&1?(t=Gl,Gl<<=1,!(Gl&130023424)&&(Gl=4194304)):t=1);var n=Ft();e=Dr(e,t),e!==null&&(ml(e,t,n),Gt(e,n))}function $2(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),wS(e,n)}function W2(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(F(314))}r!==null&&r.delete(t),wS(e,n)}var xS;xS=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Kt.current)Ht=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ht=!1,D2(e,t,n);Ht=!!(e.flags&131072)}else Ht=!1,Ne&&t.flags&1048576&&Ex(t,cc,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Du(e,t),e=t.pendingProps;var i=vs(t,Rt.current);es(t,n),i=Cm(null,t,r,e,i,n);var o=Em();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,qt(r)?(o=!0,lc(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,vm(t),i.updater=nf,t.stateNode=i,i._reactInternals=t,Ch(t,r,e,n),t=Rh(null,t,r,!0,o,n)):(t.tag=0,Ne&&o&&fm(t),Lt(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Du(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=K2(r),e=Pn(r,e),i){case 0:t=kh(null,t,r,e,n);break e;case 1:t=Ug(null,t,r,e,n);break e;case 11:t=zg(null,t,r,e,n);break e;case 14:t=Bg(null,t,r,Pn(r.type,e),n);break e}throw Error(F(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Pn(r,i),kh(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Pn(r,i),Ug(e,t,r,i,n);case 3:e:{if(rS(t),e===null)throw Error(F(387));r=t.pendingProps,o=t.memoizedState,i=o.element,Ax(e,t),hc(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=bs(Error(F(423)),t),t=$g(e,t,r,n,i);break e}else if(r!==i){i=bs(Error(F(424)),t),t=$g(e,t,r,n,i);break e}else for(nn=di(t.stateNode.containerInfo.firstChild),rn=t,Ne=!0,Ln=null,n=Px(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ws(),r===i){t=Or(e,t,n);break e}Lt(e,t,r,n)}t=t.child}return t;case 5:return Dx(t),e===null&&xh(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,mh(r,i)?s=null:o!==null&&mh(r,o)&&(t.flags|=32),nS(e,t),Lt(e,t,s,n),t.child;case 6:return e===null&&xh(t),null;case 13:return iS(e,t,n);case 4:return wm(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=xs(t,null,r,n):Lt(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Pn(r,i),zg(e,t,r,i,n);case 7:return Lt(e,t,t.pendingProps,n),t.child;case 8:return Lt(e,t,t.pendingProps.children,n),t.child;case 12:return Lt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,Oe(fc,r._currentValue),r._currentValue=s,o!==null)if(Fn(o.value,s)){if(o.children===i.children&&!Kt.current){t=Or(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){s=o.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=Tr(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Sh(o.return,n,t),a.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(F(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Sh(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Lt(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,es(t,n),i=Cn(i),r=r(i),t.flags|=1,Lt(e,t,r,n),t.child;case 14:return r=t.type,i=Pn(r,t.pendingProps),i=Pn(r.type,i),Bg(e,t,r,i,n);case 15:return eS(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Pn(r,i),Du(e,t),t.tag=1,qt(r)?(e=!0,lc(t)):e=!1,es(t,n),Yx(t,r,i),Ch(t,r,i,n),Rh(null,t,r,!0,e,n);case 19:return oS(e,t,n);case 22:return tS(e,t,n)}throw Error(F(156,t.tag))};function SS(e,t){return G1(e,t)}function H2(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function wn(e,t,n,r){return new H2(e,t,n,r)}function _m(e){return e=e.prototype,!(!e||!e.isReactComponent)}function K2(e){if(typeof e=="function")return _m(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Jp)return 11;if(e===em)return 14}return 2}function yi(e,t){var n=e.alternate;return n===null?(n=wn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function _u(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")_m(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case No:return no(n.children,i,o,t);case Zp:s=8,i|=8;break;case qd:return e=wn(12,n,t,i|2),e.elementType=qd,e.lanes=o,e;case Gd:return e=wn(13,n,t,i),e.elementType=Gd,e.lanes=o,e;case Qd:return e=wn(19,n,t,i),e.elementType=Qd,e.lanes=o,e;case D1:return sf(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case M1:s=10;break e;case A1:s=9;break e;case Jp:s=11;break e;case em:s=14;break e;case Hr:s=16,r=null;break e}throw Error(F(130,e==null?e:typeof e,""))}return t=wn(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function no(e,t,n,r){return e=wn(7,e,r,t),e.lanes=n,e}function sf(e,t,n,r){return e=wn(22,e,r,t),e.elementType=D1,e.lanes=n,e.stateNode={isHidden:!1},e}function sd(e,t,n){return e=wn(6,e,null,t),e.lanes=n,e}function ad(e,t,n){return t=wn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function q2(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Bf(0),this.expirationTimes=Bf(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bf(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Im(e,t,n,r,i,o,s,a,l){return e=new q2(e,t,n,a,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=wn(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},vm(o),e}function G2(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Io,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function bS(e){if(!e)return wi;e=e._reactInternals;e:{if(go(e)!==e||e.tag!==1)throw Error(F(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(qt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(F(171))}if(e.tag===1){var n=e.type;if(qt(n))return bx(e,n,t)}return t}function CS(e,t,n,r,i,o,s,a,l){return e=Im(n,r,!0,e,i,o,s,a,l),e.context=bS(null),n=e.current,r=Ft(),i=mi(n),o=Tr(r,i),o.callback=t??null,hi(n,o,i),e.current.lanes=i,ml(e,i,r),Gt(e,r),e}function af(e,t,n,r){var i=t.current,o=Ft(),s=mi(i);return n=bS(n),t.context===null?t.context=n:t.pendingContext=n,t=Tr(o,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=hi(i,t,s),e!==null&&(In(e,i,s,o),Pu(e,i,s)),s}function Sc(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Jg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Nm(e,t){Jg(e,t),(e=e.alternate)&&Jg(e,t)}function Q2(){return null}var ES=typeof reportError=="function"?reportError:function(e){console.error(e)};function Fm(e){this._internalRoot=e}lf.prototype.render=Fm.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(F(409));af(e,t,null,null)};lf.prototype.unmount=Fm.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;co(function(){af(null,e,null,null)}),t[Ar]=null}};function lf(e){this._internalRoot=e}lf.prototype.unstable_scheduleHydration=function(e){if(e){var t=tx();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Gr.length&&t!==0&&t<Gr[n].priority;n++);Gr.splice(n,0,e),n===0&&rx(e)}};function jm(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function uf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function ev(){}function X2(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var u=Sc(s);o.call(u)}}var s=CS(t,r,e,0,null,!1,!1,"",ev);return e._reactRootContainer=s,e[Ar]=s.current,Wa(e.nodeType===8?e.parentNode:e),co(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var u=Sc(l);a.call(u)}}var l=Im(e,0,!1,null,null,!1,!1,"",ev);return e._reactRootContainer=l,e[Ar]=l.current,Wa(e.nodeType===8?e.parentNode:e),co(function(){af(t,l,n,r)}),l}function cf(e,t,n,r,i){var o=n._reactRootContainer;if(o){var s=o;if(typeof i=="function"){var a=i;i=function(){var l=Sc(s);a.call(l)}}af(t,s,e,i)}else s=X2(n,t,e,i,r);return Sc(s)}J1=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=pa(t.pendingLanes);n!==0&&(rm(t,n|1),Gt(t,Ke()),!(ve&6)&&(Cs=Ke()+500,Ri()))}break;case 13:co(function(){var r=Dr(e,1);if(r!==null){var i=Ft();In(r,e,1,i)}}),Nm(e,1)}};im=function(e){if(e.tag===13){var t=Dr(e,134217728);if(t!==null){var n=Ft();In(t,e,134217728,n)}Nm(e,134217728)}};ex=function(e){if(e.tag===13){var t=mi(e),n=Dr(e,t);if(n!==null){var r=Ft();In(n,e,t,r)}Nm(e,t)}};tx=function(){return Re};nx=function(e,t){var n=Re;try{return Re=e,t()}finally{Re=n}};oh=function(e,t,n){switch(t){case"input":if(Zd(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Jc(r);if(!i)throw Error(F(90));L1(r),Zd(r,i)}}}break;case"textarea":I1(e,n);break;case"select":t=n.value,t!=null&&Xo(e,!!n.multiple,t,!1)}};U1=Dm;$1=co;var Y2={usingClientEntryPoint:!1,Events:[gl,zo,Jc,z1,B1,Dm]},ra={findFiberByHostInstance:ji,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Z2={bundleType:ra.bundleType,version:ra.version,rendererPackageName:ra.rendererPackageName,rendererConfig:ra.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ir.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=K1(e),e===null?null:e.stateNode},findFiberByHostInstance:ra.findFiberByHostInstance||Q2,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ou=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ou.isDisabled&&ou.supportsFiber)try{Qc=ou.inject(Z2),rr=ou}catch{}}ln.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Y2;ln.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!jm(t))throw Error(F(200));return G2(e,t,null,n)};ln.createRoot=function(e,t){if(!jm(e))throw Error(F(299));var n=!1,r="",i=ES;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Im(e,1,!1,null,null,n,!1,r,i),e[Ar]=t.current,Wa(e.nodeType===8?e.parentNode:e),new Fm(t)};ln.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(F(188)):(e=Object.keys(e).join(","),Error(F(268,e)));return e=K1(t),e=e===null?null:e.stateNode,e};ln.flushSync=function(e){return co(e)};ln.hydrate=function(e,t,n){if(!uf(t))throw Error(F(200));return cf(null,e,t,!0,n)};ln.hydrateRoot=function(e,t,n){if(!jm(e))throw Error(F(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",s=ES;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=CS(t,null,e,1,n??null,i,!1,o,s),e[Ar]=t.current,Wa(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new lf(t)};ln.render=function(e,t,n){if(!uf(t))throw Error(F(200));return cf(null,e,t,!1,n)};ln.unmountComponentAtNode=function(e){if(!uf(e))throw Error(F(40));return e._reactRootContainer?(co(function(){cf(null,null,e,!1,function(){e._reactRootContainer=null,e[Ar]=null})}),!0):!1};ln.unstable_batchedUpdates=Dm;ln.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!uf(n))throw Error(F(200));if(e==null||e._reactInternals===void 0)throw Error(F(38));return cf(e,t,n,!1,r)};ln.version="18.3.1-next-f1338f8080-20240426";function kS(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(kS)}catch(e){console.error(e)}}kS(),k1.exports=ln;var kr=k1.exports;const J2=h1(kr),uF=d1({__proto__:null,default:J2},[kr]);var tv=kr;Qy.createRoot=tv.createRoot,Qy.hydrateRoot=tv.hydrateRoot;/**
|
|
41
41
|
* @license lucide-react v0.344.0 - ISC
|
|
42
42
|
*
|
|
43
43
|
* This source code is licensed under the ISC license.
|
|
44
44
|
* See the LICENSE file in the root directory of this source tree.
|
|
45
|
-
*/var
|
|
45
|
+
*/var eT={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
46
46
|
* @license lucide-react v0.344.0 - ISC
|
|
47
47
|
*
|
|
48
48
|
* This source code is licensed under the ISC license.
|
|
49
49
|
* See the LICENSE file in the root directory of this source tree.
|
|
50
|
-
*/const
|
|
50
|
+
*/const tT=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),q=(e,t)=>{const n=C.forwardRef(({color:r="currentColor",size:i=24,strokeWidth:o=2,absoluteStrokeWidth:s,className:a="",children:l,...u},c)=>C.createElement("svg",{ref:c,...eT,width:i,height:i,stroke:r,strokeWidth:s?Number(o)*24/Number(i):o,className:["lucide",`lucide-${tT(e)}`,a].join(" "),...u},[...t.map(([f,d])=>C.createElement(f,d)),...Array.isArray(l)?l:[l]]));return n.displayName=`${e}`,n};/**
|
|
51
51
|
* @license lucide-react v0.344.0 - ISC
|
|
52
52
|
*
|
|
53
53
|
* This source code is licensed under the ISC license.
|
|
54
54
|
* See the LICENSE file in the root directory of this source tree.
|
|
55
|
-
*/const cF=
|
|
55
|
+
*/const cF=q("Activity",[["path",{d:"M22 12h-4l-3 9L9 3l-3 9H2",key:"d5dnw9"}]]);/**
|
|
56
56
|
* @license lucide-react v0.344.0 - ISC
|
|
57
57
|
*
|
|
58
58
|
* This source code is licensed under the ISC license.
|
|
59
59
|
* See the LICENSE file in the root directory of this source tree.
|
|
60
|
-
*/const fF=
|
|
60
|
+
*/const fF=q("AlertCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
|
|
61
61
|
* @license lucide-react v0.344.0 - ISC
|
|
62
62
|
*
|
|
63
63
|
* This source code is licensed under the ISC license.
|
|
64
64
|
* See the LICENSE file in the root directory of this source tree.
|
|
65
|
-
*/const dF=
|
|
65
|
+
*/const dF=q("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
66
66
|
* @license lucide-react v0.344.0 - ISC
|
|
67
67
|
*
|
|
68
68
|
* This source code is licensed under the ISC license.
|
|
69
69
|
* See the LICENSE file in the root directory of this source tree.
|
|
70
|
-
*/const hF=
|
|
70
|
+
*/const hF=q("AppWindow",[["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}],["path",{d:"M10 4v4",key:"pp8u80"}],["path",{d:"M2 8h20",key:"d11cs7"}],["path",{d:"M6 4v4",key:"1svtjw"}]]);/**
|
|
71
71
|
* @license lucide-react v0.344.0 - ISC
|
|
72
72
|
*
|
|
73
73
|
* This source code is licensed under the ISC license.
|
|
74
74
|
* See the LICENSE file in the root directory of this source tree.
|
|
75
|
-
*/const pF=
|
|
75
|
+
*/const pF=q("ArrowDownRight",[["path",{d:"m7 7 10 10",key:"1fmybs"}],["path",{d:"M17 7v10H7",key:"6fjiku"}]]);/**
|
|
76
76
|
* @license lucide-react v0.344.0 - ISC
|
|
77
77
|
*
|
|
78
78
|
* This source code is licensed under the ISC license.
|
|
79
79
|
* See the LICENSE file in the root directory of this source tree.
|
|
80
|
-
*/const mF=
|
|
80
|
+
*/const mF=q("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
|
|
81
81
|
* @license lucide-react v0.344.0 - ISC
|
|
82
82
|
*
|
|
83
83
|
* This source code is licensed under the ISC license.
|
|
84
84
|
* See the LICENSE file in the root directory of this source tree.
|
|
85
|
-
*/const yF=
|
|
85
|
+
*/const yF=q("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
|
|
86
86
|
* @license lucide-react v0.344.0 - ISC
|
|
87
87
|
*
|
|
88
88
|
* This source code is licensed under the ISC license.
|
|
89
89
|
* See the LICENSE file in the root directory of this source tree.
|
|
90
|
-
*/const gF=
|
|
90
|
+
*/const gF=q("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);/**
|
|
91
91
|
* @license lucide-react v0.344.0 - ISC
|
|
92
92
|
*
|
|
93
93
|
* This source code is licensed under the ISC license.
|
|
94
94
|
* See the LICENSE file in the root directory of this source tree.
|
|
95
|
-
*/const vF=
|
|
95
|
+
*/const vF=q("BarChart3",[["path",{d:"M3 3v18h18",key:"1s2lah"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
|
|
96
96
|
* @license lucide-react v0.344.0 - ISC
|
|
97
97
|
*
|
|
98
98
|
* This source code is licensed under the ISC license.
|
|
99
99
|
* See the LICENSE file in the root directory of this source tree.
|
|
100
|
-
*/const wF=
|
|
100
|
+
*/const wF=q("BookOpen",[["path",{d:"M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z",key:"vv98re"}],["path",{d:"M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z",key:"1cyq3y"}]]);/**
|
|
101
101
|
* @license lucide-react v0.344.0 - ISC
|
|
102
102
|
*
|
|
103
103
|
* This source code is licensed under the ISC license.
|
|
104
104
|
* See the LICENSE file in the root directory of this source tree.
|
|
105
|
-
*/const xF=
|
|
105
|
+
*/const xF=q("CheckCircle2",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
106
106
|
* @license lucide-react v0.344.0 - ISC
|
|
107
107
|
*
|
|
108
108
|
* This source code is licensed under the ISC license.
|
|
109
109
|
* See the LICENSE file in the root directory of this source tree.
|
|
110
|
-
*/const SF=
|
|
110
|
+
*/const SF=q("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
111
111
|
* @license lucide-react v0.344.0 - ISC
|
|
112
112
|
*
|
|
113
113
|
* This source code is licensed under the ISC license.
|
|
114
114
|
* See the LICENSE file in the root directory of this source tree.
|
|
115
|
-
*/const bF=
|
|
115
|
+
*/const bF=q("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
116
116
|
* @license lucide-react v0.344.0 - ISC
|
|
117
117
|
*
|
|
118
118
|
* This source code is licensed under the ISC license.
|
|
119
119
|
* See the LICENSE file in the root directory of this source tree.
|
|
120
|
-
*/const CF=
|
|
120
|
+
*/const CF=q("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
|
|
121
121
|
* @license lucide-react v0.344.0 - ISC
|
|
122
122
|
*
|
|
123
123
|
* This source code is licensed under the ISC license.
|
|
124
124
|
* See the LICENSE file in the root directory of this source tree.
|
|
125
|
-
*/const EF=
|
|
125
|
+
*/const EF=q("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
126
126
|
* @license lucide-react v0.344.0 - ISC
|
|
127
127
|
*
|
|
128
128
|
* This source code is licensed under the ISC license.
|
|
129
129
|
* See the LICENSE file in the root directory of this source tree.
|
|
130
|
-
*/const kF=
|
|
130
|
+
*/const kF=q("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
|
|
131
131
|
* @license lucide-react v0.344.0 - ISC
|
|
132
132
|
*
|
|
133
133
|
* This source code is licensed under the ISC license.
|
|
134
134
|
* See the LICENSE file in the root directory of this source tree.
|
|
135
|
-
*/const RF=
|
|
135
|
+
*/const RF=q("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
|
|
136
136
|
* @license lucide-react v0.344.0 - ISC
|
|
137
137
|
*
|
|
138
138
|
* This source code is licensed under the ISC license.
|
|
139
139
|
* See the LICENSE file in the root directory of this source tree.
|
|
140
|
-
*/const TF=
|
|
140
|
+
*/const TF=q("Cog",[["path",{d:"M12 20a8 8 0 1 0 0-16 8 8 0 0 0 0 16Z",key:"sobvz5"}],["path",{d:"M12 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z",key:"11i496"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 22v-2",key:"1osdcq"}],["path",{d:"m17 20.66-1-1.73",key:"eq3orb"}],["path",{d:"M11 10.27 7 3.34",key:"16pf9h"}],["path",{d:"m20.66 17-1.73-1",key:"sg0v6f"}],["path",{d:"m3.34 7 1.73 1",key:"1ulond"}],["path",{d:"M14 12h8",key:"4f43i9"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"m20.66 7-1.73 1",key:"1ow05n"}],["path",{d:"m3.34 17 1.73-1",key:"nuk764"}],["path",{d:"m17 3.34-1 1.73",key:"2wel8s"}],["path",{d:"m11 13.73-4 6.93",key:"794ttg"}]]);/**
|
|
141
141
|
* @license lucide-react v0.344.0 - ISC
|
|
142
142
|
*
|
|
143
143
|
* This source code is licensed under the ISC license.
|
|
144
144
|
* See the LICENSE file in the root directory of this source tree.
|
|
145
|
-
*/const PF=
|
|
145
|
+
*/const PF=q("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
|
|
146
146
|
* @license lucide-react v0.344.0 - ISC
|
|
147
147
|
*
|
|
148
148
|
* This source code is licensed under the ISC license.
|
|
149
149
|
* See the LICENSE file in the root directory of this source tree.
|
|
150
|
-
*/const MF=
|
|
150
|
+
*/const MF=q("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
|
|
151
151
|
* @license lucide-react v0.344.0 - ISC
|
|
152
152
|
*
|
|
153
153
|
* This source code is licensed under the ISC license.
|
|
154
154
|
* See the LICENSE file in the root directory of this source tree.
|
|
155
|
-
*/const AF=
|
|
155
|
+
*/const AF=q("Droplets",[["path",{d:"M7 16.3c2.2 0 4-1.83 4-4.05 0-1.16-.57-2.26-1.71-3.19S7.29 6.75 7 5.3c-.29 1.45-1.14 2.84-2.29 3.76S3 11.1 3 12.25c0 2.22 1.8 4.05 4 4.05z",key:"1ptgy4"}],["path",{d:"M12.56 6.6A10.97 10.97 0 0 0 14 3.02c.5 2.5 2 4.9 4 6.5s3 3.5 3 5.5a6.98 6.98 0 0 1-11.91 4.97",key:"1sl1rz"}]]);/**
|
|
156
156
|
* @license lucide-react v0.344.0 - ISC
|
|
157
157
|
*
|
|
158
158
|
* This source code is licensed under the ISC license.
|
|
159
159
|
* See the LICENSE file in the root directory of this source tree.
|
|
160
|
-
*/const DF=
|
|
160
|
+
*/const DF=q("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
|
|
161
161
|
* @license lucide-react v0.344.0 - ISC
|
|
162
162
|
*
|
|
163
163
|
* This source code is licensed under the ISC license.
|
|
164
164
|
* See the LICENSE file in the root directory of this source tree.
|
|
165
|
-
*/const OF=
|
|
165
|
+
*/const OF=q("EyeOff",[["path",{d:"M9.88 9.88a3 3 0 1 0 4.24 4.24",key:"1jxqfv"}],["path",{d:"M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68",key:"9wicm4"}],["path",{d:"M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61",key:"1jreej"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]]);/**
|
|
166
166
|
* @license lucide-react v0.344.0 - ISC
|
|
167
167
|
*
|
|
168
168
|
* This source code is licensed under the ISC license.
|
|
169
169
|
* See the LICENSE file in the root directory of this source tree.
|
|
170
|
-
*/const LF=
|
|
170
|
+
*/const LF=q("Eye",[["path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z",key:"rwhkz3"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
171
171
|
* @license lucide-react v0.344.0 - ISC
|
|
172
172
|
*
|
|
173
173
|
* This source code is licensed under the ISC license.
|
|
174
174
|
* See the LICENSE file in the root directory of this source tree.
|
|
175
|
-
*/const _F=
|
|
175
|
+
*/const _F=q("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
|
|
176
176
|
* @license lucide-react v0.344.0 - ISC
|
|
177
177
|
*
|
|
178
178
|
* This source code is licensed under the ISC license.
|
|
179
179
|
* See the LICENSE file in the root directory of this source tree.
|
|
180
|
-
*/const IF=
|
|
180
|
+
*/const IF=q("Flower2",[["path",{d:"M12 5a3 3 0 1 1 3 3m-3-3a3 3 0 1 0-3 3m3-3v1M9 8a3 3 0 1 0 3 3M9 8h1m5 0a3 3 0 1 1-3 3m3-3h-1m-2 3v-1",key:"3pnvol"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["path",{d:"M12 10v12",key:"6ubwww"}],["path",{d:"M12 22c4.2 0 7-1.667 7-5-4.2 0-7 1.667-7 5Z",key:"9hd38g"}],["path",{d:"M12 22c-4.2 0-7-1.667-7-5 4.2 0 7 1.667 7 5Z",key:"ufn41s"}]]);/**
|
|
181
181
|
* @license lucide-react v0.344.0 - ISC
|
|
182
182
|
*
|
|
183
183
|
* This source code is licensed under the ISC license.
|
|
184
184
|
* See the LICENSE file in the root directory of this source tree.
|
|
185
|
-
*/const NF=
|
|
185
|
+
*/const NF=q("Github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]);/**
|
|
186
186
|
* @license lucide-react v0.344.0 - ISC
|
|
187
187
|
*
|
|
188
188
|
* This source code is licensed under the ISC license.
|
|
189
189
|
* See the LICENSE file in the root directory of this source tree.
|
|
190
|
-
*/const FF=
|
|
190
|
+
*/const FF=q("GripVertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]);/**
|
|
191
191
|
* @license lucide-react v0.344.0 - ISC
|
|
192
192
|
*
|
|
193
193
|
* This source code is licensed under the ISC license.
|
|
194
194
|
* See the LICENSE file in the root directory of this source tree.
|
|
195
|
-
*/const jF=
|
|
195
|
+
*/const jF=q("KeyRound",[["path",{d:"M2 18v3c0 .6.4 1 1 1h4v-3h3v-3h2l1.4-1.4a6.5 6.5 0 1 0-4-4Z",key:"167ctg"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);/**
|
|
196
196
|
* @license lucide-react v0.344.0 - ISC
|
|
197
197
|
*
|
|
198
198
|
* This source code is licensed under the ISC license.
|
|
199
199
|
* See the LICENSE file in the root directory of this source tree.
|
|
200
|
-
*/const VF=
|
|
200
|
+
*/const VF=q("Key",[["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["path",{d:"m15.5 7.5 3 3L22 7l-3-3",key:"1rn1fs"}]]);/**
|
|
201
201
|
* @license lucide-react v0.344.0 - ISC
|
|
202
202
|
*
|
|
203
203
|
* This source code is licensed under the ISC license.
|
|
204
204
|
* See the LICENSE file in the root directory of this source tree.
|
|
205
|
-
*/const zF=
|
|
205
|
+
*/const zF=q("Languages",[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]]);/**
|
|
206
206
|
* @license lucide-react v0.344.0 - ISC
|
|
207
207
|
*
|
|
208
208
|
* This source code is licensed under the ISC license.
|
|
209
209
|
* See the LICENSE file in the root directory of this source tree.
|
|
210
|
-
*/const BF=
|
|
210
|
+
*/const BF=q("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);/**
|
|
211
211
|
* @license lucide-react v0.344.0 - ISC
|
|
212
212
|
*
|
|
213
213
|
* This source code is licensed under the ISC license.
|
|
214
214
|
* See the LICENSE file in the root directory of this source tree.
|
|
215
|
-
*/const UF=
|
|
215
|
+
*/const UF=q("LayoutGrid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]);/**
|
|
216
216
|
* @license lucide-react v0.344.0 - ISC
|
|
217
217
|
*
|
|
218
218
|
* This source code is licensed under the ISC license.
|
|
219
219
|
* See the LICENSE file in the root directory of this source tree.
|
|
220
|
-
*/const $F=
|
|
220
|
+
*/const $F=q("LifeBuoy",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.93 4.93 4.24 4.24",key:"1ymg45"}],["path",{d:"m14.83 9.17 4.24-4.24",key:"1cb5xl"}],["path",{d:"m14.83 14.83 4.24 4.24",key:"q42g0n"}],["path",{d:"m9.17 14.83-4.24 4.24",key:"bqpfvv"}],["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}]]);/**
|
|
221
221
|
* @license lucide-react v0.344.0 - ISC
|
|
222
222
|
*
|
|
223
223
|
* This source code is licensed under the ISC license.
|
|
224
224
|
* See the LICENSE file in the root directory of this source tree.
|
|
225
|
-
*/const
|
|
225
|
+
*/const WF=q("List",[["line",{x1:"8",x2:"21",y1:"6",y2:"6",key:"7ey8pc"}],["line",{x1:"8",x2:"21",y1:"12",y2:"12",key:"rjfblc"}],["line",{x1:"8",x2:"21",y1:"18",y2:"18",key:"c3b1m8"}],["line",{x1:"3",x2:"3.01",y1:"6",y2:"6",key:"1g7gq3"}],["line",{x1:"3",x2:"3.01",y1:"12",y2:"12",key:"1pjlvk"}],["line",{x1:"3",x2:"3.01",y1:"18",y2:"18",key:"28t2mc"}]]);/**
|
|
226
226
|
* @license lucide-react v0.344.0 - ISC
|
|
227
227
|
*
|
|
228
228
|
* This source code is licensed under the ISC license.
|
|
229
229
|
* See the LICENSE file in the root directory of this source tree.
|
|
230
|
-
*/const
|
|
230
|
+
*/const HF=q("Loader2",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
231
231
|
* @license lucide-react v0.344.0 - ISC
|
|
232
232
|
*
|
|
233
233
|
* This source code is licensed under the ISC license.
|
|
234
234
|
* See the LICENSE file in the root directory of this source tree.
|
|
235
|
-
*/const KF=
|
|
235
|
+
*/const KF=q("LockKeyhole",[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]]);/**
|
|
236
236
|
* @license lucide-react v0.344.0 - ISC
|
|
237
237
|
*
|
|
238
238
|
* This source code is licensed under the ISC license.
|
|
239
239
|
* See the LICENSE file in the root directory of this source tree.
|
|
240
|
-
*/const qF=
|
|
240
|
+
*/const qF=q("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
|
|
241
241
|
* @license lucide-react v0.344.0 - ISC
|
|
242
242
|
*
|
|
243
243
|
* This source code is licensed under the ISC license.
|
|
244
244
|
* See the LICENSE file in the root directory of this source tree.
|
|
245
|
-
*/const GF=
|
|
245
|
+
*/const GF=q("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
|
|
246
246
|
* @license lucide-react v0.344.0 - ISC
|
|
247
247
|
*
|
|
248
248
|
* This source code is licensed under the ISC license.
|
|
249
249
|
* See the LICENSE file in the root directory of this source tree.
|
|
250
|
-
*/const QF=
|
|
250
|
+
*/const QF=q("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);/**
|
|
251
251
|
* @license lucide-react v0.344.0 - ISC
|
|
252
252
|
*
|
|
253
253
|
* This source code is licensed under the ISC license.
|
|
254
254
|
* See the LICENSE file in the root directory of this source tree.
|
|
255
|
-
*/const XF=
|
|
255
|
+
*/const XF=q("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
|
|
256
256
|
* @license lucide-react v0.344.0 - ISC
|
|
257
257
|
*
|
|
258
258
|
* This source code is licensed under the ISC license.
|
|
259
259
|
* See the LICENSE file in the root directory of this source tree.
|
|
260
|
-
*/const YF=
|
|
260
|
+
*/const YF=q("MoreHorizontal",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/**
|
|
261
261
|
* @license lucide-react v0.344.0 - ISC
|
|
262
262
|
*
|
|
263
263
|
* This source code is licensed under the ISC license.
|
|
264
264
|
* See the LICENSE file in the root directory of this source tree.
|
|
265
|
-
*/const ZF=
|
|
265
|
+
*/const ZF=q("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/**
|
|
266
266
|
* @license lucide-react v0.344.0 - ISC
|
|
267
267
|
*
|
|
268
268
|
* This source code is licensed under the ISC license.
|
|
269
269
|
* See the LICENSE file in the root directory of this source tree.
|
|
270
|
-
*/const JF=
|
|
270
|
+
*/const JF=q("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]);/**
|
|
271
271
|
* @license lucide-react v0.344.0 - ISC
|
|
272
272
|
*
|
|
273
273
|
* This source code is licensed under the ISC license.
|
|
274
274
|
* See the LICENSE file in the root directory of this source tree.
|
|
275
|
-
*/const ej=
|
|
275
|
+
*/const ej=q("Pencil",[["path",{d:"M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z",key:"5qss01"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/**
|
|
276
276
|
* @license lucide-react v0.344.0 - ISC
|
|
277
277
|
*
|
|
278
278
|
* This source code is licensed under the ISC license.
|
|
279
279
|
* See the LICENSE file in the root directory of this source tree.
|
|
280
|
-
*/const tj=
|
|
280
|
+
*/const tj=q("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
|
|
281
281
|
* @license lucide-react v0.344.0 - ISC
|
|
282
282
|
*
|
|
283
283
|
* This source code is licensed under the ISC license.
|
|
284
284
|
* See the LICENSE file in the root directory of this source tree.
|
|
285
|
-
*/const nj=
|
|
285
|
+
*/const nj=q("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
|
|
286
286
|
* @license lucide-react v0.344.0 - ISC
|
|
287
287
|
*
|
|
288
288
|
* This source code is licensed under the ISC license.
|
|
289
289
|
* See the LICENSE file in the root directory of this source tree.
|
|
290
|
-
*/const rj=
|
|
290
|
+
*/const rj=q("Repeat",[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]]);/**
|
|
291
291
|
* @license lucide-react v0.344.0 - ISC
|
|
292
292
|
*
|
|
293
293
|
* This source code is licensed under the ISC license.
|
|
294
294
|
* See the LICENSE file in the root directory of this source tree.
|
|
295
|
-
*/const ij=
|
|
295
|
+
*/const ij=q("Route",[["circle",{cx:"6",cy:"19",r:"3",key:"1kj8tv"}],["path",{d:"M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15",key:"1d8sl"}],["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}]]);/**
|
|
296
296
|
* @license lucide-react v0.344.0 - ISC
|
|
297
297
|
*
|
|
298
298
|
* This source code is licensed under the ISC license.
|
|
299
299
|
* See the LICENSE file in the root directory of this source tree.
|
|
300
|
-
*/const oj=
|
|
300
|
+
*/const oj=q("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
301
301
|
* @license lucide-react v0.344.0 - ISC
|
|
302
302
|
*
|
|
303
303
|
* This source code is licensed under the ISC license.
|
|
304
304
|
* See the LICENSE file in the root directory of this source tree.
|
|
305
|
-
*/const sj=
|
|
305
|
+
*/const sj=q("ServerCog",[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["path",{d:"M4.5 10H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-.5",key:"tn8das"}],["path",{d:"M4.5 14H4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2h-.5",key:"1g2pve"}],["path",{d:"M6 6h.01",key:"1utrut"}],["path",{d:"M6 18h.01",key:"uhywen"}],["path",{d:"m15.7 13.4-.9-.3",key:"1jwmzr"}],["path",{d:"m9.2 10.9-.9-.3",key:"qapnim"}],["path",{d:"m10.6 15.7.3-.9",key:"quwk0k"}],["path",{d:"m13.6 15.7-.4-1",key:"cb9xp7"}],["path",{d:"m10.8 9.3-.4-1",key:"1uaiz5"}],["path",{d:"m8.3 13.6 1-.4",key:"s6srou"}],["path",{d:"m14.7 10.8 1-.4",key:"4d31cq"}],["path",{d:"m13.4 8.3-.3.9",key:"1bm987"}]]);/**
|
|
306
306
|
* @license lucide-react v0.344.0 - ISC
|
|
307
307
|
*
|
|
308
308
|
* This source code is licensed under the ISC license.
|
|
309
309
|
* See the LICENSE file in the root directory of this source tree.
|
|
310
|
-
*/const aj=
|
|
310
|
+
*/const aj=q("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
311
311
|
* @license lucide-react v0.344.0 - ISC
|
|
312
312
|
*
|
|
313
313
|
* This source code is licensed under the ISC license.
|
|
314
314
|
* See the LICENSE file in the root directory of this source tree.
|
|
315
|
-
*/const lj=
|
|
315
|
+
*/const lj=q("ShieldAlert",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]]);/**
|
|
316
316
|
* @license lucide-react v0.344.0 - ISC
|
|
317
317
|
*
|
|
318
318
|
* This source code is licensed under the ISC license.
|
|
319
319
|
* See the LICENSE file in the root directory of this source tree.
|
|
320
|
-
*/const uj=
|
|
320
|
+
*/const uj=q("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
321
321
|
* @license lucide-react v0.344.0 - ISC
|
|
322
322
|
*
|
|
323
323
|
* This source code is licensed under the ISC license.
|
|
324
324
|
* See the LICENSE file in the root directory of this source tree.
|
|
325
|
-
*/const cj=
|
|
325
|
+
*/const cj=q("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/**
|
|
326
326
|
* @license lucide-react v0.344.0 - ISC
|
|
327
327
|
*
|
|
328
328
|
* This source code is licensed under the ISC license.
|
|
329
329
|
* See the LICENSE file in the root directory of this source tree.
|
|
330
|
-
*/const fj=
|
|
330
|
+
*/const fj=q("Sparkles",[["path",{d:"m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z",key:"17u4zn"}],["path",{d:"M5 3v4",key:"bklmnn"}],["path",{d:"M19 17v4",key:"iiml17"}],["path",{d:"M3 5h4",key:"nem4j1"}],["path",{d:"M17 19h4",key:"lbex7p"}]]);/**
|
|
331
331
|
* @license lucide-react v0.344.0 - ISC
|
|
332
332
|
*
|
|
333
333
|
* This source code is licensed under the ISC license.
|
|
334
334
|
* See the LICENSE file in the root directory of this source tree.
|
|
335
|
-
*/const dj=
|
|
335
|
+
*/const dj=q("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);/**
|
|
336
336
|
* @license lucide-react v0.344.0 - ISC
|
|
337
337
|
*
|
|
338
338
|
* This source code is licensed under the ISC license.
|
|
339
339
|
* See the LICENSE file in the root directory of this source tree.
|
|
340
|
-
*/const hj=
|
|
340
|
+
*/const hj=q("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
|
|
341
341
|
* @license lucide-react v0.344.0 - ISC
|
|
342
342
|
*
|
|
343
343
|
* This source code is licensed under the ISC license.
|
|
344
344
|
* See the LICENSE file in the root directory of this source tree.
|
|
345
|
-
*/const pj=
|
|
345
|
+
*/const pj=q("TableProperties",[["path",{d:"M15 3v18",key:"14nvp0"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M21 9H3",key:"1338ky"}],["path",{d:"M21 15H3",key:"9uk58r"}]]);/**
|
|
346
346
|
* @license lucide-react v0.344.0 - ISC
|
|
347
347
|
*
|
|
348
348
|
* This source code is licensed under the ISC license.
|
|
349
349
|
* See the LICENSE file in the root directory of this source tree.
|
|
350
|
-
*/const mj=
|
|
350
|
+
*/const mj=q("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
|
|
351
351
|
* @license lucide-react v0.344.0 - ISC
|
|
352
352
|
*
|
|
353
353
|
* This source code is licensed under the ISC license.
|
|
354
354
|
* See the LICENSE file in the root directory of this source tree.
|
|
355
|
-
*/const yj=
|
|
355
|
+
*/const yj=q("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
|
|
356
356
|
* @license lucide-react v0.344.0 - ISC
|
|
357
357
|
*
|
|
358
358
|
* This source code is licensed under the ISC license.
|
|
359
359
|
* See the LICENSE file in the root directory of this source tree.
|
|
360
|
-
*/const gj=
|
|
360
|
+
*/const gj=q("Waves",[["path",{d:"M2 6c.6.5 1.2 1 2.5 1C7 7 7 5 9.5 5c2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"knzxuh"}],["path",{d:"M2 12c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"2jd2cc"}],["path",{d:"M2 18c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"rd2r6e"}]]);/**
|
|
361
361
|
* @license lucide-react v0.344.0 - ISC
|
|
362
362
|
*
|
|
363
363
|
* This source code is licensed under the ISC license.
|
|
364
364
|
* See the LICENSE file in the root directory of this source tree.
|
|
365
|
-
*/const vj=Z("Zap",[["polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2",key:"45s27k"}]]);var Ls=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},nP={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Xr,Hp,t1,rP=(t1=class{constructor(){te(this,Xr,nP);te(this,Hp,!1)}setTimeoutProvider(e){B(this,Xr,e)}setTimeout(e,t){return k(this,Xr).setTimeout(e,t)}clearTimeout(e){k(this,Xr).clearTimeout(e)}setInterval(e,t){return k(this,Xr).setInterval(e,t)}clearInterval(e){k(this,Xr).clearInterval(e)}},Xr=new WeakMap,Hp=new WeakMap,t1),Bi=new rP;function iP(e){setTimeout(e,0)}var Es=typeof window>"u"||"Deno"in globalThis;function hn(){}function oP(e,t){return typeof e=="function"?e(t):e}function jh(e){return typeof e=="number"&&e>=0&&e!==1/0}function RS(e,t){return Math.max(e+(t||0)-Date.now(),0)}function gi(e,t){return typeof e=="function"?e(t):e}function pn(e,t){return typeof e=="function"?e(t):e}function nv(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:s,stale:a}=e;if(s){if(r){if(t.queryHash!==Vm(s,t.options))return!1}else if(!Ja(t.queryKey,s))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||i&&i!==t.state.fetchStatus||o&&!o(t))}function rv(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(fo(t.options.mutationKey)!==fo(o))return!1}else if(!Ja(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Vm(e,t){return((t==null?void 0:t.queryKeyHashFn)||fo)(e)}function fo(e){return JSON.stringify(e,(t,n)=>Vh(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Ja(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Ja(e[n],t[n])):!1}var sP=Object.prototype.hasOwnProperty;function TS(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=iv(e)&&iv(t);if(!r&&!(Vh(e)&&Vh(t)))return t;const o=(r?e:Object.keys(e)).length,s=r?t:Object.keys(t),a=s.length,l=r?new Array(a):{};let u=0;for(let c=0;c<a;c++){const f=r?c:s[c],d=e[f],h=t[f];if(d===h){l[f]=d,(r?c<o:sP.call(e,f))&&u++;continue}if(d===null||h===null||typeof d!="object"||typeof h!="object"){l[f]=h;continue}const p=TS(d,h,n+1);l[f]=p,p===d&&u++}return o===a&&u===o?e:l}function bc(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function iv(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Vh(e){if(!ov(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!ov(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function ov(e){return Object.prototype.toString.call(e)==="[object Object]"}function aP(e){return new Promise(t=>{Bi.setTimeout(t,e)})}function zh(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?TS(e,t):t}function wj(e){return e}function lP(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function uP(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var zm=Symbol();function PS(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===zm?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function xj(e,t){return typeof e=="function"?e(...t):!!e}function cP(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??(i=t()),r||(r=!0,i.aborted?n():i.addEventListener("abort",n,{once:!0})),i)}),e}var Ki,Yr,os,n1,fP=(n1=class extends Ls{constructor(){super();te(this,Ki);te(this,Yr);te(this,os);B(this,os,t=>{if(!Es&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){k(this,Yr)||this.setEventListener(k(this,os))}onUnsubscribe(){var t;this.hasListeners()||((t=k(this,Yr))==null||t.call(this),B(this,Yr,void 0))}setEventListener(t){var n;B(this,os,t),(n=k(this,Yr))==null||n.call(this),B(this,Yr,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){k(this,Ki)!==t&&(B(this,Ki,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof k(this,Ki)=="boolean"?k(this,Ki):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Ki=new WeakMap,Yr=new WeakMap,os=new WeakMap,n1),Bm=new fP;function Bh(){let e,t;const n=new Promise((i,o)=>{e=i,t=o});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}var dP=iP;function hP(){let e=[],t=0,n=a=>{a()},r=a=>{a()},i=dP;const o=a=>{t?e.push(a):i(()=>{n(a)})},s=()=>{const a=e;e=[],a.length&&i(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||s()}return l},batchCalls:a=>(...l)=>{o(()=>{a(...l)})},schedule:o,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{i=a}}}var mt=hP(),ss,Zr,as,r1,pP=(r1=class extends Ls{constructor(){super();te(this,ss,!0);te(this,Zr);te(this,as);B(this,as,t=>{if(!Es&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){k(this,Zr)||this.setEventListener(k(this,as))}onUnsubscribe(){var t;this.hasListeners()||((t=k(this,Zr))==null||t.call(this),B(this,Zr,void 0))}setEventListener(t){var n;B(this,as,t),(n=k(this,Zr))==null||n.call(this),B(this,Zr,t(this.setOnline.bind(this)))}setOnline(t){k(this,ss)!==t&&(B(this,ss,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return k(this,ss)}},ss=new WeakMap,Zr=new WeakMap,as=new WeakMap,r1),Cc=new pP;function mP(e){return Math.min(1e3*2**e,3e4)}function MS(e){return(e??"online")==="online"?Cc.isOnline():!0}var Uh=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function AS(e){let t=!1,n=0,r;const i=Bh(),o=()=>i.status!=="pending",s=m=>{var v;if(!o()){const y=new Uh(m);d(y),(v=e.onCancel)==null||v.call(e,y)}},a=()=>{t=!0},l=()=>{t=!1},u=()=>Bm.isFocused()&&(e.networkMode==="always"||Cc.isOnline())&&e.canRun(),c=()=>MS(e.networkMode)&&e.canRun(),f=m=>{o()||(r==null||r(),i.resolve(m))},d=m=>{o()||(r==null||r(),i.reject(m))},h=()=>new Promise(m=>{var v;r=y=>{(o()||u())&&m(y)},(v=e.onPause)==null||v.call(e)}).then(()=>{var m;r=void 0,o()||(m=e.onContinue)==null||m.call(e)}),p=()=>{if(o())return;let m;const v=n===0?e.initialPromise:void 0;try{m=v??e.fn()}catch(y){m=Promise.reject(y)}Promise.resolve(m).then(f).catch(y=>{var T;if(o())return;const g=e.retry??(Es?0:3),w=e.retryDelay??mP,x=typeof w=="function"?w(n,y):w,E=g===!0||typeof g=="number"&&n<g||typeof g=="function"&&g(n,y);if(t||!E){d(y);return}n++,(T=e.onFail)==null||T.call(e,n,y),aP(x).then(()=>u()?void 0:h()).then(()=>{t?d(y):p()})})};return{promise:i,status:()=>i.status,cancel:s,continue:()=>(r==null||r(),i),cancelRetry:a,continueRetry:l,canStart:c,start:()=>(c()?p():h().then(p),i)}}var qi,i1,DS=(i1=class{constructor(){te(this,qi)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),jh(this.gcTime)&&B(this,qi,Bi.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Es?1/0:5*60*1e3))}clearGcTimeout(){k(this,qi)&&(Bi.clearTimeout(k(this,qi)),B(this,qi,void 0))}},qi=new WeakMap,i1),Gi,ls,dn,Qi,st,ul,Xi,Mn,mr,o1,yP=(o1=class extends DS{constructor(t){super();te(this,Mn);te(this,Gi);te(this,ls);te(this,dn);te(this,Qi);te(this,st);te(this,ul);te(this,Xi);B(this,Xi,!1),B(this,ul,t.defaultOptions),this.setOptions(t.options),this.observers=[],B(this,Qi,t.client),B(this,dn,k(this,Qi).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,B(this,Gi,av(this.options)),this.state=t.state??k(this,Gi),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=k(this,st))==null?void 0:t.promise}setOptions(t){if(this.options={...k(this,ul),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=av(this.options);n.data!==void 0&&(this.setState(sv(n.data,n.dataUpdatedAt)),B(this,Gi,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&k(this,dn).remove(this)}setData(t,n){const r=zh(this.state.data,t,this.options);return fe(this,Mn,mr).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){fe(this,Mn,mr).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=k(this,st))==null?void 0:r.promise;return(i=k(this,st))==null||i.cancel(t),n?n.then(hn).catch(hn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(k(this,Gi))}isActive(){return this.observers.some(t=>pn(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===zm||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>gi(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!RS(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=k(this,st))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=k(this,st))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),k(this,dn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(k(this,st)&&(k(this,Xi)?k(this,st).cancel({revert:!0}):k(this,st).cancelRetry()),this.scheduleGc()),k(this,dn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||fe(this,Mn,mr).call(this,{type:"invalidate"})}async fetch(t,n){var l,u,c,f,d,h,p,m,v,y,g,w;if(this.state.fetchStatus!=="idle"&&((l=k(this,st))==null?void 0:l.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(k(this,st))return k(this,st).continueRetry(),k(this,st).promise}if(t&&this.setOptions(t),!this.options.queryFn){const x=this.observers.find(E=>E.options.queryFn);x&&this.setOptions(x.options)}const r=new AbortController,i=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>(B(this,Xi,!0),r.signal)})},o=()=>{const x=PS(this.options,n),T=(()=>{const S={client:k(this,Qi),queryKey:this.queryKey,meta:this.meta};return i(S),S})();return B(this,Xi,!1),this.options.persister?this.options.persister(x,T,this):x(T)},a=(()=>{const x={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:k(this,Qi),state:this.state,fetchFn:o};return i(x),x})();(u=this.options.behavior)==null||u.onFetch(a,this),B(this,ls,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=a.fetchOptions)==null?void 0:c.meta))&&fe(this,Mn,mr).call(this,{type:"fetch",meta:(f=a.fetchOptions)==null?void 0:f.meta}),B(this,st,AS({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,onCancel:x=>{x instanceof Uh&&x.revert&&this.setState({...k(this,ls),fetchStatus:"idle"}),r.abort()},onFail:(x,E)=>{fe(this,Mn,mr).call(this,{type:"failed",failureCount:x,error:E})},onPause:()=>{fe(this,Mn,mr).call(this,{type:"pause"})},onContinue:()=>{fe(this,Mn,mr).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}));try{const x=await k(this,st).start();if(x===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(x),(h=(d=k(this,dn).config).onSuccess)==null||h.call(d,x,this),(m=(p=k(this,dn).config).onSettled)==null||m.call(p,x,this.state.error,this),x}catch(x){if(x instanceof Uh){if(x.silent)return k(this,st).promise;if(x.revert){if(this.state.data===void 0)throw x;return this.state.data}}throw fe(this,Mn,mr).call(this,{type:"error",error:x}),(y=(v=k(this,dn).config).onError)==null||y.call(v,x,this),(w=(g=k(this,dn).config).onSettled)==null||w.call(g,this.state.data,x,this),x}finally{this.scheduleGc()}}},Gi=new WeakMap,ls=new WeakMap,dn=new WeakMap,Qi=new WeakMap,st=new WeakMap,ul=new WeakMap,Xi=new WeakMap,Mn=new WeakSet,mr=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...OS(r.data,this.options),fetchMeta:t.meta??null};case"success":const i={...r,...sv(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return B(this,ls,t.manual?i:void 0),i;case"error":const o=t.error;return{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),mt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),k(this,dn).notify({query:this,type:"updated",action:t})})},o1);function OS(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:MS(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function sv(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function av(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Bt,pe,cl,Ot,Yi,us,wr,Jr,fl,cs,fs,Zi,Ji,ei,ds,Ee,ya,$h,Hh,Wh,Kh,qh,Gh,Qh,LS,s1,Sj=(s1=class extends Ls{constructor(t,n){super();te(this,Ee);te(this,Bt);te(this,pe);te(this,cl);te(this,Ot);te(this,Yi);te(this,us);te(this,wr);te(this,Jr);te(this,fl);te(this,cs);te(this,fs);te(this,Zi);te(this,Ji);te(this,ei);te(this,ds,new Set);this.options=n,B(this,Bt,t),B(this,Jr,null),B(this,wr,Bh()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(k(this,pe).addObserver(this),lv(k(this,pe),this.options)?fe(this,Ee,ya).call(this):this.updateResult(),fe(this,Ee,Kh).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Xh(k(this,pe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Xh(k(this,pe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,fe(this,Ee,qh).call(this),fe(this,Ee,Gh).call(this),k(this,pe).removeObserver(this)}setOptions(t){const n=this.options,r=k(this,pe);if(this.options=k(this,Bt).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof pn(this.options.enabled,k(this,pe))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");fe(this,Ee,Qh).call(this),k(this,pe).setOptions(this.options),n._defaulted&&!bc(this.options,n)&&k(this,Bt).getQueryCache().notify({type:"observerOptionsUpdated",query:k(this,pe),observer:this});const i=this.hasListeners();i&&uv(k(this,pe),r,this.options,n)&&fe(this,Ee,ya).call(this),this.updateResult(),i&&(k(this,pe)!==r||pn(this.options.enabled,k(this,pe))!==pn(n.enabled,k(this,pe))||gi(this.options.staleTime,k(this,pe))!==gi(n.staleTime,k(this,pe)))&&fe(this,Ee,$h).call(this);const o=fe(this,Ee,Hh).call(this);i&&(k(this,pe)!==r||pn(this.options.enabled,k(this,pe))!==pn(n.enabled,k(this,pe))||o!==k(this,ei))&&fe(this,Ee,Wh).call(this,o)}getOptimisticResult(t){const n=k(this,Bt).getQueryCache().build(k(this,Bt),t),r=this.createResult(n,t);return vP(this,r)&&(B(this,Ot,r),B(this,us,this.options),B(this,Yi,k(this,pe).state)),r}getCurrentResult(){return k(this,Ot)}trackResult(t,n){return new Proxy(t,{get:(r,i)=>(this.trackProp(i),n==null||n(i),i==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&k(this,wr).status==="pending"&&k(this,wr).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,i))})}trackProp(t){k(this,ds).add(t)}getCurrentQuery(){return k(this,pe)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=k(this,Bt).defaultQueryOptions(t),r=k(this,Bt).getQueryCache().build(k(this,Bt),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return fe(this,Ee,ya).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),k(this,Ot)))}createResult(t,n){var A;const r=k(this,pe),i=this.options,o=k(this,Ot),s=k(this,Yi),a=k(this,us),u=t!==r?t.state:k(this,cl),{state:c}=t;let f={...c},d=!1,h;if(n._optimisticResults){const M=this.hasListeners(),I=!M&&lv(t,n),z=M&&uv(t,r,n,i);(I||z)&&(f={...f,...OS(c.data,t.options)}),n._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:p,errorUpdatedAt:m,status:v}=f;h=f.data;let y=!1;if(n.placeholderData!==void 0&&h===void 0&&v==="pending"){let M;o!=null&&o.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData)?(M=o.data,y=!0):M=typeof n.placeholderData=="function"?n.placeholderData((A=k(this,fs))==null?void 0:A.state.data,k(this,fs)):n.placeholderData,M!==void 0&&(v="success",h=zh(o==null?void 0:o.data,M,n),d=!0)}if(n.select&&h!==void 0&&!y)if(o&&h===(s==null?void 0:s.data)&&n.select===k(this,fl))h=k(this,cs);else try{B(this,fl,n.select),h=n.select(h),h=zh(o==null?void 0:o.data,h,n),B(this,cs,h),B(this,Jr,null)}catch(M){B(this,Jr,M)}k(this,Jr)&&(p=k(this,Jr),h=k(this,cs),m=Date.now(),v="error");const g=f.fetchStatus==="fetching",w=v==="pending",x=v==="error",E=w&&g,T=h!==void 0,b={status:v,fetchStatus:f.fetchStatus,isPending:w,isSuccess:v==="success",isError:x,isInitialLoading:E,isLoading:E,data:h,dataUpdatedAt:f.dataUpdatedAt,error:p,errorUpdatedAt:m,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>u.dataUpdateCount||f.errorUpdateCount>u.errorUpdateCount,isFetching:g,isRefetching:g&&!w,isLoadingError:x&&!T,isPaused:f.fetchStatus==="paused",isPlaceholderData:d,isRefetchError:x&&T,isStale:Um(t,n),refetch:this.refetch,promise:k(this,wr),isEnabled:pn(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const M=b.data!==void 0,I=b.status==="error"&&!M,z=oe=>{I?oe.reject(b.error):M&&oe.resolve(b.data)},H=()=>{const oe=B(this,wr,b.promise=Bh());z(oe)},$=k(this,wr);switch($.status){case"pending":t.queryHash===r.queryHash&&z($);break;case"fulfilled":(I||b.data!==$.value)&&H();break;case"rejected":(!I||b.error!==$.reason)&&H();break}}return b}updateResult(){const t=k(this,Ot),n=this.createResult(k(this,pe),this.options);if(B(this,Yi,k(this,pe).state),B(this,us,this.options),k(this,Yi).data!==void 0&&B(this,fs,k(this,pe)),bc(n,t))return;B(this,Ot,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,o=typeof i=="function"?i():i;if(o==="all"||!o&&!k(this,ds).size)return!0;const s=new Set(o??k(this,ds));return this.options.throwOnError&&s.add("error"),Object.keys(k(this,Ot)).some(a=>{const l=a;return k(this,Ot)[l]!==t[l]&&s.has(l)})};fe(this,Ee,LS).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&fe(this,Ee,Kh).call(this)}},Bt=new WeakMap,pe=new WeakMap,cl=new WeakMap,Ot=new WeakMap,Yi=new WeakMap,us=new WeakMap,wr=new WeakMap,Jr=new WeakMap,fl=new WeakMap,cs=new WeakMap,fs=new WeakMap,Zi=new WeakMap,Ji=new WeakMap,ei=new WeakMap,ds=new WeakMap,Ee=new WeakSet,ya=function(t){fe(this,Ee,Qh).call(this);let n=k(this,pe).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(hn)),n},$h=function(){fe(this,Ee,qh).call(this);const t=gi(this.options.staleTime,k(this,pe));if(Es||k(this,Ot).isStale||!jh(t))return;const r=RS(k(this,Ot).dataUpdatedAt,t)+1;B(this,Zi,Bi.setTimeout(()=>{k(this,Ot).isStale||this.updateResult()},r))},Hh=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(k(this,pe)):this.options.refetchInterval)??!1},Wh=function(t){fe(this,Ee,Gh).call(this),B(this,ei,t),!(Es||pn(this.options.enabled,k(this,pe))===!1||!jh(k(this,ei))||k(this,ei)===0)&&B(this,Ji,Bi.setInterval(()=>{(this.options.refetchIntervalInBackground||Bm.isFocused())&&fe(this,Ee,ya).call(this)},k(this,ei)))},Kh=function(){fe(this,Ee,$h).call(this),fe(this,Ee,Wh).call(this,fe(this,Ee,Hh).call(this))},qh=function(){k(this,Zi)&&(Bi.clearTimeout(k(this,Zi)),B(this,Zi,void 0))},Gh=function(){k(this,Ji)&&(Bi.clearInterval(k(this,Ji)),B(this,Ji,void 0))},Qh=function(){const t=k(this,Bt).getQueryCache().build(k(this,Bt),this.options);if(t===k(this,pe))return;const n=k(this,pe);B(this,pe,t),B(this,cl,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},LS=function(t){mt.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(k(this,Ot))}),k(this,Bt).getQueryCache().notify({query:k(this,pe),type:"observerResultsUpdated"})})},s1);function gP(e,t){return pn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function lv(e,t){return gP(e,t)||e.state.data!==void 0&&Xh(e,t,t.refetchOnMount)}function Xh(e,t,n){if(pn(t.enabled,e)!==!1&&gi(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Um(e,t)}return!1}function uv(e,t,n,r){return(e!==t||pn(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Um(e,n)}function Um(e,t){return pn(t.enabled,e)!==!1&&e.isStaleByTime(gi(t.staleTime,e))}function vP(e,t){return!bc(e.getCurrentResult(),t)}function cv(e){return{onFetch:(t,n)=>{var c,f,d,h,p;const r=t.options,i=(d=(f=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:f.fetchMore)==null?void 0:d.direction,o=((h=t.state.data)==null?void 0:h.pages)||[],s=((p=t.state.data)==null?void 0:p.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let m=!1;const v=w=>{cP(w,()=>t.signal,()=>m=!0)},y=PS(t.options,t.fetchOptions),g=async(w,x,E)=>{if(m)return Promise.reject();if(x==null&&w.pages.length)return Promise.resolve(w);const S=(()=>{const I={client:t.client,queryKey:t.queryKey,pageParam:x,direction:E?"backward":"forward",meta:t.options.meta};return v(I),I})(),b=await y(S),{maxPages:A}=t.options,M=E?uP:lP;return{pages:M(w.pages,b,A),pageParams:M(w.pageParams,x,A)}};if(i&&o.length){const w=i==="backward",x=w?wP:fv,E={pages:o,pageParams:s},T=x(r,E);a=await g(E,T,w)}else{const w=e??o.length;do{const x=l===0?s[0]??r.initialPageParam:fv(r,a);if(l>0&&x==null)break;a=await g(a,x),l++}while(l<w)}return a};t.options.persister?t.fetchFn=()=>{var m,v;return(v=(m=t.options).persister)==null?void 0:v.call(m,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function fv(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function wP(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var dl,Yn,Ct,eo,Zn,Ur,a1,xP=(a1=class extends DS{constructor(t){super();te(this,Zn);te(this,dl);te(this,Yn);te(this,Ct);te(this,eo);B(this,dl,t.client),this.mutationId=t.mutationId,B(this,Ct,t.mutationCache),B(this,Yn,[]),this.state=t.state||_S(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){k(this,Yn).includes(t)||(k(this,Yn).push(t),this.clearGcTimeout(),k(this,Ct).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){B(this,Yn,k(this,Yn).filter(n=>n!==t)),this.scheduleGc(),k(this,Ct).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){k(this,Yn).length||(this.state.status==="pending"?this.scheduleGc():k(this,Ct).remove(this))}continue(){var t;return((t=k(this,eo))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,a,l,u,c,f,d,h,p,m,v,y,g,w,x,E,T,S;const n=()=>{fe(this,Zn,Ur).call(this,{type:"continue"})},r={client:k(this,dl),meta:this.options.meta,mutationKey:this.options.mutationKey};B(this,eo,AS({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(b,A)=>{fe(this,Zn,Ur).call(this,{type:"failed",failureCount:b,error:A})},onPause:()=>{fe(this,Zn,Ur).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>k(this,Ct).canRun(this)}));const i=this.state.status==="pending",o=!k(this,eo).canStart();try{if(i)n();else{fe(this,Zn,Ur).call(this,{type:"pending",variables:t,isPaused:o}),k(this,Ct).config.onMutate&&await k(this,Ct).config.onMutate(t,this,r);const A=await((a=(s=this.options).onMutate)==null?void 0:a.call(s,t,r));A!==this.state.context&&fe(this,Zn,Ur).call(this,{type:"pending",context:A,variables:t,isPaused:o})}const b=await k(this,eo).start();return await((u=(l=k(this,Ct).config).onSuccess)==null?void 0:u.call(l,b,t,this.state.context,this,r)),await((f=(c=this.options).onSuccess)==null?void 0:f.call(c,b,t,this.state.context,r)),await((h=(d=k(this,Ct).config).onSettled)==null?void 0:h.call(d,b,null,this.state.variables,this.state.context,this,r)),await((m=(p=this.options).onSettled)==null?void 0:m.call(p,b,null,t,this.state.context,r)),fe(this,Zn,Ur).call(this,{type:"success",data:b}),b}catch(b){try{await((y=(v=k(this,Ct).config).onError)==null?void 0:y.call(v,b,t,this.state.context,this,r))}catch(A){Promise.reject(A)}try{await((w=(g=this.options).onError)==null?void 0:w.call(g,b,t,this.state.context,r))}catch(A){Promise.reject(A)}try{await((E=(x=k(this,Ct).config).onSettled)==null?void 0:E.call(x,void 0,b,this.state.variables,this.state.context,this,r))}catch(A){Promise.reject(A)}try{await((S=(T=this.options).onSettled)==null?void 0:S.call(T,void 0,b,t,this.state.context,r))}catch(A){Promise.reject(A)}throw fe(this,Zn,Ur).call(this,{type:"error",error:b}),b}finally{k(this,Ct).runNext(this)}}},dl=new WeakMap,Yn=new WeakMap,Ct=new WeakMap,eo=new WeakMap,Zn=new WeakSet,Ur=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),mt.batch(()=>{k(this,Yn).forEach(r=>{r.onMutationUpdate(t)}),k(this,Ct).notify({mutation:this,type:"updated",action:t})})},a1);function _S(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var xr,An,hl,l1,SP=(l1=class extends Ls{constructor(t={}){super();te(this,xr);te(this,An);te(this,hl);this.config=t,B(this,xr,new Set),B(this,An,new Map),B(this,hl,0)}build(t,n,r){const i=new xP({client:t,mutationCache:this,mutationId:++Ul(this,hl)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){k(this,xr).add(t);const n=su(t);if(typeof n=="string"){const r=k(this,An).get(n);r?r.push(t):k(this,An).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(k(this,xr).delete(t)){const n=su(t);if(typeof n=="string"){const r=k(this,An).get(n);if(r)if(r.length>1){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}else r[0]===t&&k(this,An).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=su(t);if(typeof n=="string"){const r=k(this,An).get(n),i=r==null?void 0:r.find(o=>o.state.status==="pending");return!i||i===t}else return!0}runNext(t){var r;const n=su(t);if(typeof n=="string"){const i=(r=k(this,An).get(n))==null?void 0:r.find(o=>o!==t&&o.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){mt.batch(()=>{k(this,xr).forEach(t=>{this.notify({type:"removed",mutation:t})}),k(this,xr).clear(),k(this,An).clear()})}getAll(){return Array.from(k(this,xr))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>rv(n,r))}findAll(t={}){return this.getAll().filter(n=>rv(t,n))}notify(t){mt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return mt.batch(()=>Promise.all(t.map(n=>n.continue().catch(hn))))}},xr=new WeakMap,An=new WeakMap,hl=new WeakMap,l1);function su(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Sr,ti,Ut,br,Pr,Iu,Yh,u1,bj=(u1=class extends Ls{constructor(t,n){super();te(this,Pr);te(this,Sr);te(this,ti);te(this,Ut);te(this,br);B(this,Sr,t),this.setOptions(n),this.bindMethods(),fe(this,Pr,Iu).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var r;const n=this.options;this.options=k(this,Sr).defaultMutationOptions(t),bc(this.options,n)||k(this,Sr).getMutationCache().notify({type:"observerOptionsUpdated",mutation:k(this,Ut),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&fo(n.mutationKey)!==fo(this.options.mutationKey)?this.reset():((r=k(this,Ut))==null?void 0:r.state.status)==="pending"&&k(this,Ut).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=k(this,Ut))==null||t.removeObserver(this)}onMutationUpdate(t){fe(this,Pr,Iu).call(this),fe(this,Pr,Yh).call(this,t)}getCurrentResult(){return k(this,ti)}reset(){var t;(t=k(this,Ut))==null||t.removeObserver(this),B(this,Ut,void 0),fe(this,Pr,Iu).call(this),fe(this,Pr,Yh).call(this)}mutate(t,n){var r;return B(this,br,n),(r=k(this,Ut))==null||r.removeObserver(this),B(this,Ut,k(this,Sr).getMutationCache().build(k(this,Sr),this.options)),k(this,Ut).addObserver(this),k(this,Ut).execute(t)}},Sr=new WeakMap,ti=new WeakMap,Ut=new WeakMap,br=new WeakMap,Pr=new WeakSet,Iu=function(){var n;const t=((n=k(this,Ut))==null?void 0:n.state)??_S();B(this,ti,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},Yh=function(t){mt.batch(()=>{var n,r,i,o,s,a,l,u;if(k(this,br)&&this.hasListeners()){const c=k(this,ti).variables,f=k(this,ti).context,d={client:k(this,Sr),meta:this.options.meta,mutationKey:this.options.mutationKey};if((t==null?void 0:t.type)==="success"){try{(r=(n=k(this,br)).onSuccess)==null||r.call(n,t.data,c,f,d)}catch(h){Promise.reject(h)}try{(o=(i=k(this,br)).onSettled)==null||o.call(i,t.data,null,c,f,d)}catch(h){Promise.reject(h)}}else if((t==null?void 0:t.type)==="error"){try{(a=(s=k(this,br)).onError)==null||a.call(s,t.error,c,f,d)}catch(h){Promise.reject(h)}try{(u=(l=k(this,br)).onSettled)==null||u.call(l,void 0,t.error,c,f,d)}catch(h){Promise.reject(h)}}}this.listeners.forEach(c=>{c(k(this,ti))})})},u1),Jn,c1,bP=(c1=class extends Ls{constructor(t={}){super();te(this,Jn);this.config=t,B(this,Jn,new Map)}build(t,n,r){const i=n.queryKey,o=n.queryHash??Vm(i,n);let s=this.get(o);return s||(s=new yP({client:t,queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){k(this,Jn).has(t.queryHash)||(k(this,Jn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=k(this,Jn).get(t.queryHash);n&&(t.destroy(),n===t&&k(this,Jn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){mt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return k(this,Jn).get(t)}getAll(){return[...k(this,Jn).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>nv(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>nv(t,r)):n}notify(t){mt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){mt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){mt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Jn=new WeakMap,c1),$e,ni,ri,hs,ps,ii,ms,ys,f1,Cj=(f1=class{constructor(e={}){te(this,$e);te(this,ni);te(this,ri);te(this,hs);te(this,ps);te(this,ii);te(this,ms);te(this,ys);B(this,$e,e.queryCache||new bP),B(this,ni,e.mutationCache||new SP),B(this,ri,e.defaultOptions||{}),B(this,hs,new Map),B(this,ps,new Map),B(this,ii,0)}mount(){Ul(this,ii)._++,k(this,ii)===1&&(B(this,ms,Bm.subscribe(async e=>{e&&(await this.resumePausedMutations(),k(this,$e).onFocus())})),B(this,ys,Cc.subscribe(async e=>{e&&(await this.resumePausedMutations(),k(this,$e).onOnline())})))}unmount(){var e,t;Ul(this,ii)._--,k(this,ii)===0&&((e=k(this,ms))==null||e.call(this),B(this,ms,void 0),(t=k(this,ys))==null||t.call(this),B(this,ys,void 0))}isFetching(e){return k(this,$e).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return k(this,ni).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=k(this,$e).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=k(this,$e).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(gi(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return k(this,$e).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=k(this,$e).get(r.queryHash),o=i==null?void 0:i.state.data,s=oP(t,o);if(s!==void 0)return k(this,$e).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return mt.batch(()=>k(this,$e).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=k(this,$e).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=k(this,$e);mt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=k(this,$e);return mt.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=mt.batch(()=>k(this,$e).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(hn).catch(hn)}invalidateQueries(e,t={}){return mt.batch(()=>(k(this,$e).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=mt.batch(()=>k(this,$e).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let o=i.fetch(void 0,n);return n.throwOnError||(o=o.catch(hn)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(hn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=k(this,$e).build(this,t);return n.isStaleByTime(gi(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(hn).catch(hn)}fetchInfiniteQuery(e){return e.behavior=cv(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(hn).catch(hn)}ensureInfiniteQueryData(e){return e.behavior=cv(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Cc.isOnline()?k(this,ni).resumePausedMutations():Promise.resolve()}getQueryCache(){return k(this,$e)}getMutationCache(){return k(this,ni)}getDefaultOptions(){return k(this,ri)}setDefaultOptions(e){B(this,ri,e)}setQueryDefaults(e,t){k(this,hs).set(fo(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...k(this,hs).values()],n={};return t.forEach(r=>{Ja(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){k(this,ps).set(fo(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...k(this,ps).values()],n={};return t.forEach(r=>{Ja(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...k(this,ri).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Vm(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===zm&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...k(this,ri).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){k(this,$e).clear(),k(this,ni).clear()}},$e=new WeakMap,ni=new WeakMap,ri=new WeakMap,hs=new WeakMap,ps=new WeakMap,ii=new WeakMap,ms=new WeakMap,ys=new WeakMap,f1);function IS(e,t){return function(){return e.apply(t,arguments)}}const{toString:CP}=Object.prototype,{getPrototypeOf:$m}=Object,{iterator:ff,toStringTag:NS}=Symbol,df=(e=>t=>{const n=CP.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Bn=e=>(e=e.toLowerCase(),t=>df(t)===e),hf=e=>t=>typeof t===e,{isArray:_s}=Array,ks=hf("undefined");function wl(e){return e!==null&&!ks(e)&&e.constructor!==null&&!ks(e.constructor)&&Qt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const FS=Bn("ArrayBuffer");function EP(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&FS(e.buffer),t}const kP=hf("string"),Qt=hf("function"),jS=hf("number"),xl=e=>e!==null&&typeof e=="object",RP=e=>e===!0||e===!1,Nu=e=>{if(df(e)!=="object")return!1;const t=$m(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(NS in e)&&!(ff in e)},TP=e=>{if(!xl(e)||wl(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},PP=Bn("Date"),MP=Bn("File"),AP=e=>!!(e&&typeof e.uri<"u"),DP=e=>e&&typeof e.getParts<"u",OP=Bn("Blob"),LP=Bn("FileList"),_P=e=>xl(e)&&Qt(e.pipe);function IP(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const dv=IP(),hv=typeof dv.FormData<"u"?dv.FormData:void 0,NP=e=>{let t;return e&&(hv&&e instanceof hv||Qt(e.append)&&((t=df(e))==="formdata"||t==="object"&&Qt(e.toString)&&e.toString()==="[object FormData]"))},FP=Bn("URLSearchParams"),[jP,VP,zP,BP]=["ReadableStream","Request","Response","Headers"].map(Bn),UP=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Sl(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),_s(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(wl(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let a;for(r=0;r<s;r++)a=o[r],t.call(null,e[a],a,e)}}function VS(e,t){if(wl(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Ui=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,zS=e=>!ks(e)&&e!==Ui;function Zh(){const{caseless:e,skipUndefined:t}=zS(this)&&this||{},n={},r=(i,o)=>{if(o==="__proto__"||o==="constructor"||o==="prototype")return;const s=e&&VS(n,o)||o;Nu(n[s])&&Nu(i)?n[s]=Zh(n[s],i):Nu(i)?n[s]=Zh({},i):_s(i)?n[s]=i.slice():(!t||!ks(i))&&(n[s]=i)};for(let i=0,o=arguments.length;i<o;i++)arguments[i]&&Sl(arguments[i],r);return n}const $P=(e,t,n,{allOwnKeys:r}={})=>(Sl(t,(i,o)=>{n&&Qt(i)?Object.defineProperty(e,o,{value:IS(i,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),HP=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),WP=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},KP=(e,t,n,r)=>{let i,o,s;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&$m(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},qP=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},GP=e=>{if(!e)return null;if(_s(e))return e;let t=e.length;if(!jS(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},QP=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&$m(Uint8Array)),XP=(e,t)=>{const r=(e&&e[ff]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},YP=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},ZP=Bn("HTMLFormElement"),JP=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),pv=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),e2=Bn("RegExp"),BS=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Sl(n,(i,o)=>{let s;(s=t(i,o,e))!==!1&&(r[o]=s||i)}),Object.defineProperties(e,r)},t2=e=>{BS(e,(t,n)=>{if(Qt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Qt(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},n2=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return _s(e)?r(e):r(String(e).split(t)),n},r2=()=>{},i2=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function o2(e){return!!(e&&Qt(e.append)&&e[NS]==="FormData"&&e[ff])}const s2=e=>{const t=new Array(10),n=(r,i)=>{if(xl(r)){if(t.indexOf(r)>=0)return;if(wl(r))return r;if(!("toJSON"in r)){t[i]=r;const o=_s(r)?[]:{};return Sl(r,(s,a)=>{const l=n(s,i+1);!ks(l)&&(o[a]=l)}),t[i]=void 0,o}}return r};return n(e,0)},a2=Bn("AsyncFunction"),l2=e=>e&&(xl(e)||Qt(e))&&Qt(e.then)&&Qt(e.catch),US=((e,t)=>e?setImmediate:t?((n,r)=>(Ui.addEventListener("message",({source:i,data:o})=>{i===Ui&&o===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Ui.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Qt(Ui.postMessage)),u2=typeof queueMicrotask<"u"?queueMicrotask.bind(Ui):typeof process<"u"&&process.nextTick||US,c2=e=>e!=null&&Qt(e[ff]),L={isArray:_s,isArrayBuffer:FS,isBuffer:wl,isFormData:NP,isArrayBufferView:EP,isString:kP,isNumber:jS,isBoolean:RP,isObject:xl,isPlainObject:Nu,isEmptyObject:TP,isReadableStream:jP,isRequest:VP,isResponse:zP,isHeaders:BP,isUndefined:ks,isDate:PP,isFile:MP,isReactNativeBlob:AP,isReactNative:DP,isBlob:OP,isRegExp:e2,isFunction:Qt,isStream:_P,isURLSearchParams:FP,isTypedArray:QP,isFileList:LP,forEach:Sl,merge:Zh,extend:$P,trim:UP,stripBOM:HP,inherits:WP,toFlatObject:KP,kindOf:df,kindOfTest:Bn,endsWith:qP,toArray:GP,forEachEntry:XP,matchAll:YP,isHTMLForm:ZP,hasOwnProperty:pv,hasOwnProp:pv,reduceDescriptors:BS,freezeMethods:t2,toObjectSet:n2,toCamelCase:JP,noop:r2,toFiniteNumber:i2,findKey:VS,global:Ui,isContextDefined:zS,isSpecCompliantForm:o2,toJSONObject:s2,isAsyncFn:a2,isThenable:l2,setImmediate:US,asap:u2,isIterable:c2};let ae=class $S extends Error{static from(t,n,r,i,o,s){const a=new $S(t.message,n||t.code,r,i,o);return a.cause=t,a.name=t.name,t.status!=null&&a.status==null&&(a.status=t.status),s&&Object.assign(a,s),a}constructor(t,n,r,i,o){super(t),Object.defineProperty(this,"message",{value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),i&&(this.request=i),o&&(this.response=o,this.status=o.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:L.toJSONObject(this.config),code:this.code,status:this.status}}};ae.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";ae.ERR_BAD_OPTION="ERR_BAD_OPTION";ae.ECONNABORTED="ECONNABORTED";ae.ETIMEDOUT="ETIMEDOUT";ae.ERR_NETWORK="ERR_NETWORK";ae.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";ae.ERR_DEPRECATED="ERR_DEPRECATED";ae.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";ae.ERR_BAD_REQUEST="ERR_BAD_REQUEST";ae.ERR_CANCELED="ERR_CANCELED";ae.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";ae.ERR_INVALID_URL="ERR_INVALID_URL";const f2=null;function Jh(e){return L.isPlainObject(e)||L.isArray(e)}function HS(e){return L.endsWith(e,"[]")?e.slice(0,-2):e}function ld(e,t,n){return e?e.concat(t).map(function(i,o){return i=HS(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function d2(e){return L.isArray(e)&&!e.some(Jh)}const h2=L.toFlatObject(L,{},null,function(t){return/^is[A-Z]/.test(t)});function pf(e,t,n){if(!L.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=L.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,v){return!L.isUndefined(v[m])});const r=n.metaTokens,i=n.visitor||c,o=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&L.isSpecCompliantForm(t);if(!L.isFunction(i))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(L.isDate(p))return p.toISOString();if(L.isBoolean(p))return p.toString();if(!l&&L.isBlob(p))throw new ae("Blob is not supported. Use a Buffer instead.");return L.isArrayBuffer(p)||L.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function c(p,m,v){let y=p;if(L.isReactNative(t)&&L.isReactNativeBlob(p))return t.append(ld(v,m,o),u(p)),!1;if(p&&!v&&typeof p=="object"){if(L.endsWith(m,"{}"))m=r?m:m.slice(0,-2),p=JSON.stringify(p);else if(L.isArray(p)&&d2(p)||(L.isFileList(p)||L.endsWith(m,"[]"))&&(y=L.toArray(p)))return m=HS(m),y.forEach(function(w,x){!(L.isUndefined(w)||w===null)&&t.append(s===!0?ld([m],x,o):s===null?m:m+"[]",u(w))}),!1}return Jh(p)?!0:(t.append(ld(v,m,o),u(p)),!1)}const f=[],d=Object.assign(h2,{defaultVisitor:c,convertValue:u,isVisitable:Jh});function h(p,m){if(!L.isUndefined(p)){if(f.indexOf(p)!==-1)throw Error("Circular reference detected in "+m.join("."));f.push(p),L.forEach(p,function(y,g){(!(L.isUndefined(y)||y===null)&&i.call(t,y,L.isString(g)?g.trim():g,m,d))===!0&&h(y,m?m.concat(g):[g])}),f.pop()}}if(!L.isObject(e))throw new TypeError("data must be an object");return h(e),t}function mv(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Hm(e,t){this._pairs=[],e&&pf(e,this,t)}const WS=Hm.prototype;WS.append=function(t,n){this._pairs.push([t,n])};WS.toString=function(t){const n=t?function(r){return t.call(this,r,mv)}:mv;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function p2(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function KS(e,t,n){if(!t)return e;const r=n&&n.encode||p2,i=L.isFunction(n)?{serialize:n}:n,o=i&&i.serialize;let s;if(o?s=o(t,i):s=L.isURLSearchParams(t)?t.toString():new Hm(t,i).toString(r),s){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class yv{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){L.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Wm={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},m2=typeof URLSearchParams<"u"?URLSearchParams:Hm,y2=typeof FormData<"u"?FormData:null,g2=typeof Blob<"u"?Blob:null,v2={isBrowser:!0,classes:{URLSearchParams:m2,FormData:y2,Blob:g2},protocols:["http","https","file","blob","url","data"]},Km=typeof window<"u"&&typeof document<"u",ep=typeof navigator=="object"&&navigator||void 0,w2=Km&&(!ep||["ReactNative","NativeScript","NS"].indexOf(ep.product)<0),x2=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",S2=Km&&window.location.href||"http://localhost",b2=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Km,hasStandardBrowserEnv:w2,hasStandardBrowserWebWorkerEnv:x2,navigator:ep,origin:S2},Symbol.toStringTag,{value:"Module"})),kt={...b2,...v2};function C2(e,t){return pf(e,new kt.classes.URLSearchParams,{visitor:function(n,r,i,o){return kt.isNode&&L.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function E2(e){return L.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function k2(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}function qS(e){function t(n,r,i,o){let s=n[o++];if(s==="__proto__")return!0;const a=Number.isFinite(+s),l=o>=n.length;return s=!s&&L.isArray(i)?i.length:s,l?(L.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!a):((!i[s]||!L.isObject(i[s]))&&(i[s]=[]),t(n,r,i[s],o)&&L.isArray(i[s])&&(i[s]=k2(i[s])),!a)}if(L.isFormData(e)&&L.isFunction(e.entries)){const n={};return L.forEachEntry(e,(r,i)=>{t(E2(r),i,n,0)}),n}return null}function R2(e,t,n){if(L.isString(e))try{return(t||JSON.parse)(e),L.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const bl={transitional:Wm,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=L.isObject(t);if(o&&L.isHTMLForm(t)&&(t=new FormData(t)),L.isFormData(t))return i?JSON.stringify(qS(t)):t;if(L.isArrayBuffer(t)||L.isBuffer(t)||L.isStream(t)||L.isFile(t)||L.isBlob(t)||L.isReadableStream(t))return t;if(L.isArrayBufferView(t))return t.buffer;if(L.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return C2(t,this.formSerializer).toString();if((a=L.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return pf(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),R2(t)):t}],transformResponse:[function(t){const n=this.transitional||bl.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(L.isResponse(t)||L.isReadableStream(t))return t;if(t&&L.isString(t)&&(r&&!this.responseType||i)){const s=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,this.parseReviver)}catch(a){if(s)throw a.name==="SyntaxError"?ae.from(a,ae.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:kt.classes.FormData,Blob:kt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};L.forEach(["delete","get","head","post","put","patch"],e=>{bl.headers[e]={}});const T2=L.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),P2=e=>{const t={};let n,r,i;return e&&e.split(`
|
|
366
|
-
|
|
367
|
-
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[gv]=this[gv]={accessors:{}}).accessors,i=this.prototype;function o(s){const a=ia(s);r[a]||(O2(i,s),r[a]=!0)}return L.isArray(t)?t.forEach(o):o(t),this}};Xt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);L.reduceDescriptors(Xt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});L.freezeMethods(Xt);function cd(e,t){const n=this||bl,r=t||n,i=Xt.from(r.headers);let o=r.data;return L.forEach(e,function(a){o=a.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function GS(e){return!!(e&&e.__CANCEL__)}let Cl=class extends ae{constructor(t,n,r){super(t??"canceled",ae.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function QS(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ae("Request failed with status code "+n.status,[ae.ERR_BAD_REQUEST,ae.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function L2(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function _2(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,s;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[o];s||(s=u),n[i]=l,r[i]=u;let f=o,d=0;for(;f!==i;)d+=n[f++],f=f%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),u-s<t)return;const h=c&&u-c;return h?Math.round(d*1e3/h):void 0}}function I2(e,t){let n=0,r=1e3/t,i,o;const s=(u,c=Date.now())=>{n=c,i=null,o&&(clearTimeout(o),o=null),e(...u)};return[(...u)=>{const c=Date.now(),f=c-n;f>=r?s(u,c):(i=u,o||(o=setTimeout(()=>{o=null,s(i)},r-f)))},()=>i&&s(i)]}const Ec=(e,t,n=3)=>{let r=0;const i=_2(50,250);return I2(o=>{const s=o.loaded,a=o.lengthComputable?o.total:void 0,l=s-r,u=i(l),c=s<=a;r=s;const f={loaded:s,total:a,progress:a?s/a:void 0,bytes:l,rate:u||void 0,estimated:u&&a&&c?(a-s)/u:void 0,event:o,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(f)},n)},vv=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},wv=e=>(...t)=>L.asap(()=>e(...t)),N2=kt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,kt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(kt.origin),kt.navigator&&/(msie|trident)/i.test(kt.navigator.userAgent)):()=>!0,F2=kt.hasStandardBrowserEnv?{write(e,t,n,r,i,o,s){if(typeof document>"u")return;const a=[`${e}=${encodeURIComponent(t)}`];L.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),L.isString(r)&&a.push(`path=${r}`),L.isString(i)&&a.push(`domain=${i}`),o===!0&&a.push("secure"),L.isString(s)&&a.push(`SameSite=${s}`),document.cookie=a.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function j2(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function V2(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function XS(e,t,n){let r=!j2(t);return e&&(r||n==!1)?V2(e,t):t}const xv=e=>e instanceof Xt?{...e}:e;function ho(e,t){t=t||{};const n={};function r(u,c,f,d){return L.isPlainObject(u)&&L.isPlainObject(c)?L.merge.call({caseless:d},u,c):L.isPlainObject(c)?L.merge({},c):L.isArray(c)?c.slice():c}function i(u,c,f,d){if(L.isUndefined(c)){if(!L.isUndefined(u))return r(void 0,u,f,d)}else return r(u,c,f,d)}function o(u,c){if(!L.isUndefined(c))return r(void 0,c)}function s(u,c){if(L.isUndefined(c)){if(!L.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function a(u,c,f){if(f in t)return r(u,c);if(f in e)return r(void 0,u)}const l={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(u,c,f)=>i(xv(u),xv(c),f,!0)};return L.forEach(Object.keys({...e,...t}),function(c){if(c==="__proto__"||c==="constructor"||c==="prototype")return;const f=L.hasOwnProp(l,c)?l[c]:i,d=f(e[c],t[c],c);L.isUndefined(d)&&f!==a||(n[c]=d)}),n}const YS=e=>{const t=ho({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:s,auth:a}=t;if(t.headers=s=Xt.from(s),t.url=KS(XS(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),L.isFormData(n)){if(kt.hasStandardBrowserEnv||kt.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(L.isFunction(n.getHeaders)){const l=n.getHeaders(),u=["content-type","content-length"];Object.entries(l).forEach(([c,f])=>{u.includes(c.toLowerCase())&&s.set(c,f)})}}if(kt.hasStandardBrowserEnv&&(r&&L.isFunction(r)&&(r=r(t)),r||r!==!1&&N2(t.url))){const l=i&&o&&F2.read(o);l&&s.set(i,l)}return t},z2=typeof XMLHttpRequest<"u",B2=z2&&function(e){return new Promise(function(n,r){const i=YS(e);let o=i.data;const s=Xt.from(i.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:u}=i,c,f,d,h,p;function m(){h&&h(),p&&p(),i.cancelToken&&i.cancelToken.unsubscribe(c),i.signal&&i.signal.removeEventListener("abort",c)}let v=new XMLHttpRequest;v.open(i.method.toUpperCase(),i.url,!0),v.timeout=i.timeout;function y(){if(!v)return;const w=Xt.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),E={data:!a||a==="text"||a==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:w,config:e,request:v};QS(function(S){n(S),m()},function(S){r(S),m()},E),v=null}"onloadend"in v?v.onloadend=y:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(y)},v.onabort=function(){v&&(r(new ae("Request aborted",ae.ECONNABORTED,e,v)),v=null)},v.onerror=function(x){const E=x&&x.message?x.message:"Network Error",T=new ae(E,ae.ERR_NETWORK,e,v);T.event=x||null,r(T),v=null},v.ontimeout=function(){let x=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const E=i.transitional||Wm;i.timeoutErrorMessage&&(x=i.timeoutErrorMessage),r(new ae(x,E.clarifyTimeoutError?ae.ETIMEDOUT:ae.ECONNABORTED,e,v)),v=null},o===void 0&&s.setContentType(null),"setRequestHeader"in v&&L.forEach(s.toJSON(),function(x,E){v.setRequestHeader(E,x)}),L.isUndefined(i.withCredentials)||(v.withCredentials=!!i.withCredentials),a&&a!=="json"&&(v.responseType=i.responseType),u&&([d,p]=Ec(u,!0),v.addEventListener("progress",d)),l&&v.upload&&([f,h]=Ec(l),v.upload.addEventListener("progress",f),v.upload.addEventListener("loadend",h)),(i.cancelToken||i.signal)&&(c=w=>{v&&(r(!w||w.type?new Cl(null,e,v):w),v.abort(),v=null)},i.cancelToken&&i.cancelToken.subscribe(c),i.signal&&(i.signal.aborted?c():i.signal.addEventListener("abort",c)));const g=L2(i.url);if(g&&kt.protocols.indexOf(g)===-1){r(new ae("Unsupported protocol "+g+":",ae.ERR_BAD_REQUEST,e));return}v.send(o||null)})},U2=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const o=function(u){if(!i){i=!0,a();const c=u instanceof Error?u:this.reason;r.abort(c instanceof ae?c:new Cl(c instanceof Error?c.message:c))}};let s=t&&setTimeout(()=>{s=null,o(new ae(`timeout of ${t}ms exceeded`,ae.ETIMEDOUT))},t);const a=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),e=null)};e.forEach(u=>u.addEventListener("abort",o));const{signal:l}=r;return l.unsubscribe=()=>L.asap(a),l}},$2=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},H2=async function*(e,t){for await(const n of W2(e))yield*$2(n,t)},W2=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},Sv=(e,t,n,r)=>{const i=H2(e,t);let o=0,s,a=l=>{s||(s=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:u,value:c}=await i.next();if(u){a(),l.close();return}let f=c.byteLength;if(n){let d=o+=f;n(d)}l.enqueue(new Uint8Array(c))}catch(u){throw a(u),u}},cancel(l){return a(l),i.return()}},{highWaterMark:2})},bv=64*1024,{isFunction:au}=L,K2=(({Request:e,Response:t})=>({Request:e,Response:t}))(L.global),{ReadableStream:Cv,TextEncoder:Ev}=L.global,kv=(e,...t)=>{try{return!!e(...t)}catch{return!1}},q2=e=>{e=L.merge.call({skipUndefined:!0},K2,e);const{fetch:t,Request:n,Response:r}=e,i=t?au(t):typeof fetch=="function",o=au(n),s=au(r);if(!i)return!1;const a=i&&au(Cv),l=i&&(typeof Ev=="function"?(p=>m=>p.encode(m))(new Ev):async p=>new Uint8Array(await new n(p).arrayBuffer())),u=o&&a&&kv(()=>{let p=!1;const m=new n(kt.origin,{body:new Cv,method:"POST",get duplex(){return p=!0,"half"}}).headers.has("Content-Type");return p&&!m}),c=s&&a&&kv(()=>L.isReadableStream(new r("").body)),f={stream:c&&(p=>p.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(p=>{!f[p]&&(f[p]=(m,v)=>{let y=m&&m[p];if(y)return y.call(m);throw new ae(`Response type '${p}' is not supported`,ae.ERR_NOT_SUPPORT,v)})});const d=async p=>{if(p==null)return 0;if(L.isBlob(p))return p.size;if(L.isSpecCompliantForm(p))return(await new n(kt.origin,{method:"POST",body:p}).arrayBuffer()).byteLength;if(L.isArrayBufferView(p)||L.isArrayBuffer(p))return p.byteLength;if(L.isURLSearchParams(p)&&(p=p+""),L.isString(p))return(await l(p)).byteLength},h=async(p,m)=>{const v=L.toFiniteNumber(p.getContentLength());return v??d(m)};return async p=>{let{url:m,method:v,data:y,signal:g,cancelToken:w,timeout:x,onDownloadProgress:E,onUploadProgress:T,responseType:S,headers:b,withCredentials:A="same-origin",fetchOptions:M}=YS(p),I=t||fetch;S=S?(S+"").toLowerCase():"text";let z=U2([g,w&&w.toAbortSignal()],x),H=null;const $=z&&z.unsubscribe&&(()=>{z.unsubscribe()});let oe;try{if(T&&u&&v!=="get"&&v!=="head"&&(oe=await h(b,y))!==0){let re=new n(m,{method:"POST",body:y,duplex:"half"}),ne;if(L.isFormData(y)&&(ne=re.headers.get("content-type"))&&b.setContentType(ne),re.body){const[Te,be]=vv(oe,Ec(wv(T)));y=Sv(re.body,bv,Te,be)}}L.isString(A)||(A=A?"include":"omit");const U=o&&"credentials"in n.prototype,se={...M,signal:z,method:v.toUpperCase(),headers:b.normalize().toJSON(),body:y,duplex:"half",credentials:U?A:void 0};H=o&&new n(m,se);let O=await(o?I(H,M):I(m,se));const j=c&&(S==="stream"||S==="response");if(c&&(E||j&&$)){const re={};["status","statusText","headers"].forEach(ce=>{re[ce]=O[ce]});const ne=L.toFiniteNumber(O.headers.get("content-length")),[Te,be]=E&&vv(ne,Ec(wv(E),!0))||[];O=new r(Sv(O.body,bv,Te,()=>{be&&be(),$&&$()}),re)}S=S||"text";let _=await f[L.findKey(f,S)||"text"](O,p);return!j&&$&&$(),await new Promise((re,ne)=>{QS(re,ne,{data:_,headers:Xt.from(O.headers),status:O.status,statusText:O.statusText,config:p,request:H})})}catch(U){throw $&&$(),U&&U.name==="TypeError"&&/Load failed|fetch/i.test(U.message)?Object.assign(new ae("Network Error",ae.ERR_NETWORK,p,H,U&&U.response),{cause:U.cause||U}):ae.from(U,U&&U.code,p,H,U&&U.response)}}},G2=new Map,ZS=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:i}=t,o=[r,i,n];let s=o.length,a=s,l,u,c=G2;for(;a--;)l=o[a],u=c.get(l),u===void 0&&c.set(l,u=a?new Map:q2(t)),c=u;return u};ZS();const qm={http:f2,xhr:B2,fetch:{get:ZS}};L.forEach(qm,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Rv=e=>`- ${e}`,Q2=e=>L.isFunction(e)||e===null||e===!1;function X2(e,t){e=L.isArray(e)?e:[e];const{length:n}=e;let r,i;const o={};for(let s=0;s<n;s++){r=e[s];let a;if(i=r,!Q2(r)&&(i=qm[(a=String(r)).toLowerCase()],i===void 0))throw new ae(`Unknown adapter '${a}'`);if(i&&(L.isFunction(i)||(i=i.get(t))))break;o[a||"#"+s]=i}if(!i){const s=Object.entries(o).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let a=n?s.length>1?`since :
|
|
365
|
+
*/const vj=q("XCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
|
|
366
|
+
* @license lucide-react v0.344.0 - ISC
|
|
367
|
+
*
|
|
368
|
+
* This source code is licensed under the ISC license.
|
|
369
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
370
|
+
*/const wj=q("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
|
|
371
|
+
* @license lucide-react v0.344.0 - ISC
|
|
372
|
+
*
|
|
373
|
+
* This source code is licensed under the ISC license.
|
|
374
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
375
|
+
*/const xj=q("Zap",[["polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2",key:"45s27k"}]]);var Ls=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},nT={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Xr,Wp,t1,rT=(t1=class{constructor(){te(this,Xr,nT);te(this,Wp,!1)}setTimeoutProvider(e){B(this,Xr,e)}setTimeout(e,t){return k(this,Xr).setTimeout(e,t)}clearTimeout(e){k(this,Xr).clearTimeout(e)}setInterval(e,t){return k(this,Xr).setInterval(e,t)}clearInterval(e){k(this,Xr).clearInterval(e)}},Xr=new WeakMap,Wp=new WeakMap,t1),Bi=new rT;function iT(e){setTimeout(e,0)}var Es=typeof window>"u"||"Deno"in globalThis;function hn(){}function oT(e,t){return typeof e=="function"?e(t):e}function jh(e){return typeof e=="number"&&e>=0&&e!==1/0}function RS(e,t){return Math.max(e+(t||0)-Date.now(),0)}function gi(e,t){return typeof e=="function"?e(t):e}function pn(e,t){return typeof e=="function"?e(t):e}function nv(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:s,stale:a}=e;if(s){if(r){if(t.queryHash!==Vm(s,t.options))return!1}else if(!Ja(t.queryKey,s))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||i&&i!==t.state.fetchStatus||o&&!o(t))}function rv(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(fo(t.options.mutationKey)!==fo(o))return!1}else if(!Ja(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Vm(e,t){return((t==null?void 0:t.queryKeyHashFn)||fo)(e)}function fo(e){return JSON.stringify(e,(t,n)=>Vh(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Ja(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Ja(e[n],t[n])):!1}var sT=Object.prototype.hasOwnProperty;function TS(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=iv(e)&&iv(t);if(!r&&!(Vh(e)&&Vh(t)))return t;const o=(r?e:Object.keys(e)).length,s=r?t:Object.keys(t),a=s.length,l=r?new Array(a):{};let u=0;for(let c=0;c<a;c++){const f=r?c:s[c],d=e[f],h=t[f];if(d===h){l[f]=d,(r?c<o:sT.call(e,f))&&u++;continue}if(d===null||h===null||typeof d!="object"||typeof h!="object"){l[f]=h;continue}const p=TS(d,h,n+1);l[f]=p,p===d&&u++}return o===a&&u===o?e:l}function bc(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function iv(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Vh(e){if(!ov(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!ov(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function ov(e){return Object.prototype.toString.call(e)==="[object Object]"}function aT(e){return new Promise(t=>{Bi.setTimeout(t,e)})}function zh(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?TS(e,t):t}function Sj(e){return e}function lT(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function uT(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var zm=Symbol();function PS(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===zm?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function bj(e,t){return typeof e=="function"?e(...t):!!e}function cT(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??(i=t()),r||(r=!0,i.aborted?n():i.addEventListener("abort",n,{once:!0})),i)}),e}var Ki,Yr,os,n1,fT=(n1=class extends Ls{constructor(){super();te(this,Ki);te(this,Yr);te(this,os);B(this,os,t=>{if(!Es&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){k(this,Yr)||this.setEventListener(k(this,os))}onUnsubscribe(){var t;this.hasListeners()||((t=k(this,Yr))==null||t.call(this),B(this,Yr,void 0))}setEventListener(t){var n;B(this,os,t),(n=k(this,Yr))==null||n.call(this),B(this,Yr,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){k(this,Ki)!==t&&(B(this,Ki,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof k(this,Ki)=="boolean"?k(this,Ki):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Ki=new WeakMap,Yr=new WeakMap,os=new WeakMap,n1),Bm=new fT;function Bh(){let e,t;const n=new Promise((i,o)=>{e=i,t=o});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}var dT=iT;function hT(){let e=[],t=0,n=a=>{a()},r=a=>{a()},i=dT;const o=a=>{t?e.push(a):i(()=>{n(a)})},s=()=>{const a=e;e=[],a.length&&i(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||s()}return l},batchCalls:a=>(...l)=>{o(()=>{a(...l)})},schedule:o,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{i=a}}}var mt=hT(),ss,Zr,as,r1,pT=(r1=class extends Ls{constructor(){super();te(this,ss,!0);te(this,Zr);te(this,as);B(this,as,t=>{if(!Es&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){k(this,Zr)||this.setEventListener(k(this,as))}onUnsubscribe(){var t;this.hasListeners()||((t=k(this,Zr))==null||t.call(this),B(this,Zr,void 0))}setEventListener(t){var n;B(this,as,t),(n=k(this,Zr))==null||n.call(this),B(this,Zr,t(this.setOnline.bind(this)))}setOnline(t){k(this,ss)!==t&&(B(this,ss,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return k(this,ss)}},ss=new WeakMap,Zr=new WeakMap,as=new WeakMap,r1),Cc=new pT;function mT(e){return Math.min(1e3*2**e,3e4)}function MS(e){return(e??"online")==="online"?Cc.isOnline():!0}var Uh=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function AS(e){let t=!1,n=0,r;const i=Bh(),o=()=>i.status!=="pending",s=m=>{var v;if(!o()){const y=new Uh(m);d(y),(v=e.onCancel)==null||v.call(e,y)}},a=()=>{t=!0},l=()=>{t=!1},u=()=>Bm.isFocused()&&(e.networkMode==="always"||Cc.isOnline())&&e.canRun(),c=()=>MS(e.networkMode)&&e.canRun(),f=m=>{o()||(r==null||r(),i.resolve(m))},d=m=>{o()||(r==null||r(),i.reject(m))},h=()=>new Promise(m=>{var v;r=y=>{(o()||u())&&m(y)},(v=e.onPause)==null||v.call(e)}).then(()=>{var m;r=void 0,o()||(m=e.onContinue)==null||m.call(e)}),p=()=>{if(o())return;let m;const v=n===0?e.initialPromise:void 0;try{m=v??e.fn()}catch(y){m=Promise.reject(y)}Promise.resolve(m).then(f).catch(y=>{var T;if(o())return;const g=e.retry??(Es?0:3),w=e.retryDelay??mT,x=typeof w=="function"?w(n,y):w,E=g===!0||typeof g=="number"&&n<g||typeof g=="function"&&g(n,y);if(t||!E){d(y);return}n++,(T=e.onFail)==null||T.call(e,n,y),aT(x).then(()=>u()?void 0:h()).then(()=>{t?d(y):p()})})};return{promise:i,status:()=>i.status,cancel:s,continue:()=>(r==null||r(),i),cancelRetry:a,continueRetry:l,canStart:c,start:()=>(c()?p():h().then(p),i)}}var qi,i1,DS=(i1=class{constructor(){te(this,qi)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),jh(this.gcTime)&&B(this,qi,Bi.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Es?1/0:5*60*1e3))}clearGcTimeout(){k(this,qi)&&(Bi.clearTimeout(k(this,qi)),B(this,qi,void 0))}},qi=new WeakMap,i1),Gi,ls,dn,Qi,st,ul,Xi,Mn,mr,o1,yT=(o1=class extends DS{constructor(t){super();te(this,Mn);te(this,Gi);te(this,ls);te(this,dn);te(this,Qi);te(this,st);te(this,ul);te(this,Xi);B(this,Xi,!1),B(this,ul,t.defaultOptions),this.setOptions(t.options),this.observers=[],B(this,Qi,t.client),B(this,dn,k(this,Qi).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,B(this,Gi,av(this.options)),this.state=t.state??k(this,Gi),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=k(this,st))==null?void 0:t.promise}setOptions(t){if(this.options={...k(this,ul),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=av(this.options);n.data!==void 0&&(this.setState(sv(n.data,n.dataUpdatedAt)),B(this,Gi,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&k(this,dn).remove(this)}setData(t,n){const r=zh(this.state.data,t,this.options);return fe(this,Mn,mr).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){fe(this,Mn,mr).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=k(this,st))==null?void 0:r.promise;return(i=k(this,st))==null||i.cancel(t),n?n.then(hn).catch(hn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(k(this,Gi))}isActive(){return this.observers.some(t=>pn(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===zm||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>gi(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!RS(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=k(this,st))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=k(this,st))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),k(this,dn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(k(this,st)&&(k(this,Xi)?k(this,st).cancel({revert:!0}):k(this,st).cancelRetry()),this.scheduleGc()),k(this,dn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||fe(this,Mn,mr).call(this,{type:"invalidate"})}async fetch(t,n){var l,u,c,f,d,h,p,m,v,y,g,w;if(this.state.fetchStatus!=="idle"&&((l=k(this,st))==null?void 0:l.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(k(this,st))return k(this,st).continueRetry(),k(this,st).promise}if(t&&this.setOptions(t),!this.options.queryFn){const x=this.observers.find(E=>E.options.queryFn);x&&this.setOptions(x.options)}const r=new AbortController,i=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>(B(this,Xi,!0),r.signal)})},o=()=>{const x=PS(this.options,n),T=(()=>{const S={client:k(this,Qi),queryKey:this.queryKey,meta:this.meta};return i(S),S})();return B(this,Xi,!1),this.options.persister?this.options.persister(x,T,this):x(T)},a=(()=>{const x={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:k(this,Qi),state:this.state,fetchFn:o};return i(x),x})();(u=this.options.behavior)==null||u.onFetch(a,this),B(this,ls,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=a.fetchOptions)==null?void 0:c.meta))&&fe(this,Mn,mr).call(this,{type:"fetch",meta:(f=a.fetchOptions)==null?void 0:f.meta}),B(this,st,AS({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,onCancel:x=>{x instanceof Uh&&x.revert&&this.setState({...k(this,ls),fetchStatus:"idle"}),r.abort()},onFail:(x,E)=>{fe(this,Mn,mr).call(this,{type:"failed",failureCount:x,error:E})},onPause:()=>{fe(this,Mn,mr).call(this,{type:"pause"})},onContinue:()=>{fe(this,Mn,mr).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}));try{const x=await k(this,st).start();if(x===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(x),(h=(d=k(this,dn).config).onSuccess)==null||h.call(d,x,this),(m=(p=k(this,dn).config).onSettled)==null||m.call(p,x,this.state.error,this),x}catch(x){if(x instanceof Uh){if(x.silent)return k(this,st).promise;if(x.revert){if(this.state.data===void 0)throw x;return this.state.data}}throw fe(this,Mn,mr).call(this,{type:"error",error:x}),(y=(v=k(this,dn).config).onError)==null||y.call(v,x,this),(w=(g=k(this,dn).config).onSettled)==null||w.call(g,this.state.data,x,this),x}finally{this.scheduleGc()}}},Gi=new WeakMap,ls=new WeakMap,dn=new WeakMap,Qi=new WeakMap,st=new WeakMap,ul=new WeakMap,Xi=new WeakMap,Mn=new WeakSet,mr=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...OS(r.data,this.options),fetchMeta:t.meta??null};case"success":const i={...r,...sv(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return B(this,ls,t.manual?i:void 0),i;case"error":const o=t.error;return{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),mt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),k(this,dn).notify({query:this,type:"updated",action:t})})},o1);function OS(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:MS(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function sv(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function av(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Bt,pe,cl,Ot,Yi,us,wr,Jr,fl,cs,fs,Zi,Ji,ei,ds,Ee,ya,$h,Wh,Hh,Kh,qh,Gh,Qh,LS,s1,Cj=(s1=class extends Ls{constructor(t,n){super();te(this,Ee);te(this,Bt);te(this,pe);te(this,cl);te(this,Ot);te(this,Yi);te(this,us);te(this,wr);te(this,Jr);te(this,fl);te(this,cs);te(this,fs);te(this,Zi);te(this,Ji);te(this,ei);te(this,ds,new Set);this.options=n,B(this,Bt,t),B(this,Jr,null),B(this,wr,Bh()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(k(this,pe).addObserver(this),lv(k(this,pe),this.options)?fe(this,Ee,ya).call(this):this.updateResult(),fe(this,Ee,Kh).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Xh(k(this,pe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Xh(k(this,pe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,fe(this,Ee,qh).call(this),fe(this,Ee,Gh).call(this),k(this,pe).removeObserver(this)}setOptions(t){const n=this.options,r=k(this,pe);if(this.options=k(this,Bt).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof pn(this.options.enabled,k(this,pe))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");fe(this,Ee,Qh).call(this),k(this,pe).setOptions(this.options),n._defaulted&&!bc(this.options,n)&&k(this,Bt).getQueryCache().notify({type:"observerOptionsUpdated",query:k(this,pe),observer:this});const i=this.hasListeners();i&&uv(k(this,pe),r,this.options,n)&&fe(this,Ee,ya).call(this),this.updateResult(),i&&(k(this,pe)!==r||pn(this.options.enabled,k(this,pe))!==pn(n.enabled,k(this,pe))||gi(this.options.staleTime,k(this,pe))!==gi(n.staleTime,k(this,pe)))&&fe(this,Ee,$h).call(this);const o=fe(this,Ee,Wh).call(this);i&&(k(this,pe)!==r||pn(this.options.enabled,k(this,pe))!==pn(n.enabled,k(this,pe))||o!==k(this,ei))&&fe(this,Ee,Hh).call(this,o)}getOptimisticResult(t){const n=k(this,Bt).getQueryCache().build(k(this,Bt),t),r=this.createResult(n,t);return vT(this,r)&&(B(this,Ot,r),B(this,us,this.options),B(this,Yi,k(this,pe).state)),r}getCurrentResult(){return k(this,Ot)}trackResult(t,n){return new Proxy(t,{get:(r,i)=>(this.trackProp(i),n==null||n(i),i==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&k(this,wr).status==="pending"&&k(this,wr).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,i))})}trackProp(t){k(this,ds).add(t)}getCurrentQuery(){return k(this,pe)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=k(this,Bt).defaultQueryOptions(t),r=k(this,Bt).getQueryCache().build(k(this,Bt),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return fe(this,Ee,ya).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),k(this,Ot)))}createResult(t,n){var A;const r=k(this,pe),i=this.options,o=k(this,Ot),s=k(this,Yi),a=k(this,us),u=t!==r?t.state:k(this,cl),{state:c}=t;let f={...c},d=!1,h;if(n._optimisticResults){const M=this.hasListeners(),I=!M&&lv(t,n),z=M&&uv(t,r,n,i);(I||z)&&(f={...f,...OS(c.data,t.options)}),n._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:p,errorUpdatedAt:m,status:v}=f;h=f.data;let y=!1;if(n.placeholderData!==void 0&&h===void 0&&v==="pending"){let M;o!=null&&o.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData)?(M=o.data,y=!0):M=typeof n.placeholderData=="function"?n.placeholderData((A=k(this,fs))==null?void 0:A.state.data,k(this,fs)):n.placeholderData,M!==void 0&&(v="success",h=zh(o==null?void 0:o.data,M,n),d=!0)}if(n.select&&h!==void 0&&!y)if(o&&h===(s==null?void 0:s.data)&&n.select===k(this,fl))h=k(this,cs);else try{B(this,fl,n.select),h=n.select(h),h=zh(o==null?void 0:o.data,h,n),B(this,cs,h),B(this,Jr,null)}catch(M){B(this,Jr,M)}k(this,Jr)&&(p=k(this,Jr),h=k(this,cs),m=Date.now(),v="error");const g=f.fetchStatus==="fetching",w=v==="pending",x=v==="error",E=w&&g,T=h!==void 0,b={status:v,fetchStatus:f.fetchStatus,isPending:w,isSuccess:v==="success",isError:x,isInitialLoading:E,isLoading:E,data:h,dataUpdatedAt:f.dataUpdatedAt,error:p,errorUpdatedAt:m,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>u.dataUpdateCount||f.errorUpdateCount>u.errorUpdateCount,isFetching:g,isRefetching:g&&!w,isLoadingError:x&&!T,isPaused:f.fetchStatus==="paused",isPlaceholderData:d,isRefetchError:x&&T,isStale:Um(t,n),refetch:this.refetch,promise:k(this,wr),isEnabled:pn(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const M=b.data!==void 0,I=b.status==="error"&&!M,z=oe=>{I?oe.reject(b.error):M&&oe.resolve(b.data)},W=()=>{const oe=B(this,wr,b.promise=Bh());z(oe)},$=k(this,wr);switch($.status){case"pending":t.queryHash===r.queryHash&&z($);break;case"fulfilled":(I||b.data!==$.value)&&W();break;case"rejected":(!I||b.error!==$.reason)&&W();break}}return b}updateResult(){const t=k(this,Ot),n=this.createResult(k(this,pe),this.options);if(B(this,Yi,k(this,pe).state),B(this,us,this.options),k(this,Yi).data!==void 0&&B(this,fs,k(this,pe)),bc(n,t))return;B(this,Ot,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,o=typeof i=="function"?i():i;if(o==="all"||!o&&!k(this,ds).size)return!0;const s=new Set(o??k(this,ds));return this.options.throwOnError&&s.add("error"),Object.keys(k(this,Ot)).some(a=>{const l=a;return k(this,Ot)[l]!==t[l]&&s.has(l)})};fe(this,Ee,LS).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&fe(this,Ee,Kh).call(this)}},Bt=new WeakMap,pe=new WeakMap,cl=new WeakMap,Ot=new WeakMap,Yi=new WeakMap,us=new WeakMap,wr=new WeakMap,Jr=new WeakMap,fl=new WeakMap,cs=new WeakMap,fs=new WeakMap,Zi=new WeakMap,Ji=new WeakMap,ei=new WeakMap,ds=new WeakMap,Ee=new WeakSet,ya=function(t){fe(this,Ee,Qh).call(this);let n=k(this,pe).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(hn)),n},$h=function(){fe(this,Ee,qh).call(this);const t=gi(this.options.staleTime,k(this,pe));if(Es||k(this,Ot).isStale||!jh(t))return;const r=RS(k(this,Ot).dataUpdatedAt,t)+1;B(this,Zi,Bi.setTimeout(()=>{k(this,Ot).isStale||this.updateResult()},r))},Wh=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(k(this,pe)):this.options.refetchInterval)??!1},Hh=function(t){fe(this,Ee,Gh).call(this),B(this,ei,t),!(Es||pn(this.options.enabled,k(this,pe))===!1||!jh(k(this,ei))||k(this,ei)===0)&&B(this,Ji,Bi.setInterval(()=>{(this.options.refetchIntervalInBackground||Bm.isFocused())&&fe(this,Ee,ya).call(this)},k(this,ei)))},Kh=function(){fe(this,Ee,$h).call(this),fe(this,Ee,Hh).call(this,fe(this,Ee,Wh).call(this))},qh=function(){k(this,Zi)&&(Bi.clearTimeout(k(this,Zi)),B(this,Zi,void 0))},Gh=function(){k(this,Ji)&&(Bi.clearInterval(k(this,Ji)),B(this,Ji,void 0))},Qh=function(){const t=k(this,Bt).getQueryCache().build(k(this,Bt),this.options);if(t===k(this,pe))return;const n=k(this,pe);B(this,pe,t),B(this,cl,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},LS=function(t){mt.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(k(this,Ot))}),k(this,Bt).getQueryCache().notify({query:k(this,pe),type:"observerResultsUpdated"})})},s1);function gT(e,t){return pn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function lv(e,t){return gT(e,t)||e.state.data!==void 0&&Xh(e,t,t.refetchOnMount)}function Xh(e,t,n){if(pn(t.enabled,e)!==!1&&gi(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Um(e,t)}return!1}function uv(e,t,n,r){return(e!==t||pn(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Um(e,n)}function Um(e,t){return pn(t.enabled,e)!==!1&&e.isStaleByTime(gi(t.staleTime,e))}function vT(e,t){return!bc(e.getCurrentResult(),t)}function cv(e){return{onFetch:(t,n)=>{var c,f,d,h,p;const r=t.options,i=(d=(f=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:f.fetchMore)==null?void 0:d.direction,o=((h=t.state.data)==null?void 0:h.pages)||[],s=((p=t.state.data)==null?void 0:p.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let m=!1;const v=w=>{cT(w,()=>t.signal,()=>m=!0)},y=PS(t.options,t.fetchOptions),g=async(w,x,E)=>{if(m)return Promise.reject();if(x==null&&w.pages.length)return Promise.resolve(w);const S=(()=>{const I={client:t.client,queryKey:t.queryKey,pageParam:x,direction:E?"backward":"forward",meta:t.options.meta};return v(I),I})(),b=await y(S),{maxPages:A}=t.options,M=E?uT:lT;return{pages:M(w.pages,b,A),pageParams:M(w.pageParams,x,A)}};if(i&&o.length){const w=i==="backward",x=w?wT:fv,E={pages:o,pageParams:s},T=x(r,E);a=await g(E,T,w)}else{const w=e??o.length;do{const x=l===0?s[0]??r.initialPageParam:fv(r,a);if(l>0&&x==null)break;a=await g(a,x),l++}while(l<w)}return a};t.options.persister?t.fetchFn=()=>{var m,v;return(v=(m=t.options).persister)==null?void 0:v.call(m,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function fv(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function wT(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var dl,Yn,Ct,eo,Zn,Ur,a1,xT=(a1=class extends DS{constructor(t){super();te(this,Zn);te(this,dl);te(this,Yn);te(this,Ct);te(this,eo);B(this,dl,t.client),this.mutationId=t.mutationId,B(this,Ct,t.mutationCache),B(this,Yn,[]),this.state=t.state||_S(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){k(this,Yn).includes(t)||(k(this,Yn).push(t),this.clearGcTimeout(),k(this,Ct).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){B(this,Yn,k(this,Yn).filter(n=>n!==t)),this.scheduleGc(),k(this,Ct).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){k(this,Yn).length||(this.state.status==="pending"?this.scheduleGc():k(this,Ct).remove(this))}continue(){var t;return((t=k(this,eo))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,a,l,u,c,f,d,h,p,m,v,y,g,w,x,E,T,S;const n=()=>{fe(this,Zn,Ur).call(this,{type:"continue"})},r={client:k(this,dl),meta:this.options.meta,mutationKey:this.options.mutationKey};B(this,eo,AS({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(b,A)=>{fe(this,Zn,Ur).call(this,{type:"failed",failureCount:b,error:A})},onPause:()=>{fe(this,Zn,Ur).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>k(this,Ct).canRun(this)}));const i=this.state.status==="pending",o=!k(this,eo).canStart();try{if(i)n();else{fe(this,Zn,Ur).call(this,{type:"pending",variables:t,isPaused:o}),k(this,Ct).config.onMutate&&await k(this,Ct).config.onMutate(t,this,r);const A=await((a=(s=this.options).onMutate)==null?void 0:a.call(s,t,r));A!==this.state.context&&fe(this,Zn,Ur).call(this,{type:"pending",context:A,variables:t,isPaused:o})}const b=await k(this,eo).start();return await((u=(l=k(this,Ct).config).onSuccess)==null?void 0:u.call(l,b,t,this.state.context,this,r)),await((f=(c=this.options).onSuccess)==null?void 0:f.call(c,b,t,this.state.context,r)),await((h=(d=k(this,Ct).config).onSettled)==null?void 0:h.call(d,b,null,this.state.variables,this.state.context,this,r)),await((m=(p=this.options).onSettled)==null?void 0:m.call(p,b,null,t,this.state.context,r)),fe(this,Zn,Ur).call(this,{type:"success",data:b}),b}catch(b){try{await((y=(v=k(this,Ct).config).onError)==null?void 0:y.call(v,b,t,this.state.context,this,r))}catch(A){Promise.reject(A)}try{await((w=(g=this.options).onError)==null?void 0:w.call(g,b,t,this.state.context,r))}catch(A){Promise.reject(A)}try{await((E=(x=k(this,Ct).config).onSettled)==null?void 0:E.call(x,void 0,b,this.state.variables,this.state.context,this,r))}catch(A){Promise.reject(A)}try{await((S=(T=this.options).onSettled)==null?void 0:S.call(T,void 0,b,t,this.state.context,r))}catch(A){Promise.reject(A)}throw fe(this,Zn,Ur).call(this,{type:"error",error:b}),b}finally{k(this,Ct).runNext(this)}}},dl=new WeakMap,Yn=new WeakMap,Ct=new WeakMap,eo=new WeakMap,Zn=new WeakSet,Ur=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),mt.batch(()=>{k(this,Yn).forEach(r=>{r.onMutationUpdate(t)}),k(this,Ct).notify({mutation:this,type:"updated",action:t})})},a1);function _S(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var xr,An,hl,l1,ST=(l1=class extends Ls{constructor(t={}){super();te(this,xr);te(this,An);te(this,hl);this.config=t,B(this,xr,new Set),B(this,An,new Map),B(this,hl,0)}build(t,n,r){const i=new xT({client:t,mutationCache:this,mutationId:++Ul(this,hl)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){k(this,xr).add(t);const n=su(t);if(typeof n=="string"){const r=k(this,An).get(n);r?r.push(t):k(this,An).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(k(this,xr).delete(t)){const n=su(t);if(typeof n=="string"){const r=k(this,An).get(n);if(r)if(r.length>1){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}else r[0]===t&&k(this,An).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=su(t);if(typeof n=="string"){const r=k(this,An).get(n),i=r==null?void 0:r.find(o=>o.state.status==="pending");return!i||i===t}else return!0}runNext(t){var r;const n=su(t);if(typeof n=="string"){const i=(r=k(this,An).get(n))==null?void 0:r.find(o=>o!==t&&o.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){mt.batch(()=>{k(this,xr).forEach(t=>{this.notify({type:"removed",mutation:t})}),k(this,xr).clear(),k(this,An).clear()})}getAll(){return Array.from(k(this,xr))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>rv(n,r))}findAll(t={}){return this.getAll().filter(n=>rv(t,n))}notify(t){mt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return mt.batch(()=>Promise.all(t.map(n=>n.continue().catch(hn))))}},xr=new WeakMap,An=new WeakMap,hl=new WeakMap,l1);function su(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Sr,ti,Ut,br,Pr,Iu,Yh,u1,Ej=(u1=class extends Ls{constructor(t,n){super();te(this,Pr);te(this,Sr);te(this,ti);te(this,Ut);te(this,br);B(this,Sr,t),this.setOptions(n),this.bindMethods(),fe(this,Pr,Iu).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var r;const n=this.options;this.options=k(this,Sr).defaultMutationOptions(t),bc(this.options,n)||k(this,Sr).getMutationCache().notify({type:"observerOptionsUpdated",mutation:k(this,Ut),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&fo(n.mutationKey)!==fo(this.options.mutationKey)?this.reset():((r=k(this,Ut))==null?void 0:r.state.status)==="pending"&&k(this,Ut).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=k(this,Ut))==null||t.removeObserver(this)}onMutationUpdate(t){fe(this,Pr,Iu).call(this),fe(this,Pr,Yh).call(this,t)}getCurrentResult(){return k(this,ti)}reset(){var t;(t=k(this,Ut))==null||t.removeObserver(this),B(this,Ut,void 0),fe(this,Pr,Iu).call(this),fe(this,Pr,Yh).call(this)}mutate(t,n){var r;return B(this,br,n),(r=k(this,Ut))==null||r.removeObserver(this),B(this,Ut,k(this,Sr).getMutationCache().build(k(this,Sr),this.options)),k(this,Ut).addObserver(this),k(this,Ut).execute(t)}},Sr=new WeakMap,ti=new WeakMap,Ut=new WeakMap,br=new WeakMap,Pr=new WeakSet,Iu=function(){var n;const t=((n=k(this,Ut))==null?void 0:n.state)??_S();B(this,ti,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},Yh=function(t){mt.batch(()=>{var n,r,i,o,s,a,l,u;if(k(this,br)&&this.hasListeners()){const c=k(this,ti).variables,f=k(this,ti).context,d={client:k(this,Sr),meta:this.options.meta,mutationKey:this.options.mutationKey};if((t==null?void 0:t.type)==="success"){try{(r=(n=k(this,br)).onSuccess)==null||r.call(n,t.data,c,f,d)}catch(h){Promise.reject(h)}try{(o=(i=k(this,br)).onSettled)==null||o.call(i,t.data,null,c,f,d)}catch(h){Promise.reject(h)}}else if((t==null?void 0:t.type)==="error"){try{(a=(s=k(this,br)).onError)==null||a.call(s,t.error,c,f,d)}catch(h){Promise.reject(h)}try{(u=(l=k(this,br)).onSettled)==null||u.call(l,void 0,t.error,c,f,d)}catch(h){Promise.reject(h)}}}this.listeners.forEach(c=>{c(k(this,ti))})})},u1),Jn,c1,bT=(c1=class extends Ls{constructor(t={}){super();te(this,Jn);this.config=t,B(this,Jn,new Map)}build(t,n,r){const i=n.queryKey,o=n.queryHash??Vm(i,n);let s=this.get(o);return s||(s=new yT({client:t,queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){k(this,Jn).has(t.queryHash)||(k(this,Jn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=k(this,Jn).get(t.queryHash);n&&(t.destroy(),n===t&&k(this,Jn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){mt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return k(this,Jn).get(t)}getAll(){return[...k(this,Jn).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>nv(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>nv(t,r)):n}notify(t){mt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){mt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){mt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Jn=new WeakMap,c1),$e,ni,ri,hs,ps,ii,ms,ys,f1,kj=(f1=class{constructor(e={}){te(this,$e);te(this,ni);te(this,ri);te(this,hs);te(this,ps);te(this,ii);te(this,ms);te(this,ys);B(this,$e,e.queryCache||new bT),B(this,ni,e.mutationCache||new ST),B(this,ri,e.defaultOptions||{}),B(this,hs,new Map),B(this,ps,new Map),B(this,ii,0)}mount(){Ul(this,ii)._++,k(this,ii)===1&&(B(this,ms,Bm.subscribe(async e=>{e&&(await this.resumePausedMutations(),k(this,$e).onFocus())})),B(this,ys,Cc.subscribe(async e=>{e&&(await this.resumePausedMutations(),k(this,$e).onOnline())})))}unmount(){var e,t;Ul(this,ii)._--,k(this,ii)===0&&((e=k(this,ms))==null||e.call(this),B(this,ms,void 0),(t=k(this,ys))==null||t.call(this),B(this,ys,void 0))}isFetching(e){return k(this,$e).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return k(this,ni).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=k(this,$e).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=k(this,$e).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(gi(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return k(this,$e).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=k(this,$e).get(r.queryHash),o=i==null?void 0:i.state.data,s=oT(t,o);if(s!==void 0)return k(this,$e).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return mt.batch(()=>k(this,$e).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=k(this,$e).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=k(this,$e);mt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=k(this,$e);return mt.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=mt.batch(()=>k(this,$e).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(hn).catch(hn)}invalidateQueries(e,t={}){return mt.batch(()=>(k(this,$e).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=mt.batch(()=>k(this,$e).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let o=i.fetch(void 0,n);return n.throwOnError||(o=o.catch(hn)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(hn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=k(this,$e).build(this,t);return n.isStaleByTime(gi(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(hn).catch(hn)}fetchInfiniteQuery(e){return e.behavior=cv(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(hn).catch(hn)}ensureInfiniteQueryData(e){return e.behavior=cv(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Cc.isOnline()?k(this,ni).resumePausedMutations():Promise.resolve()}getQueryCache(){return k(this,$e)}getMutationCache(){return k(this,ni)}getDefaultOptions(){return k(this,ri)}setDefaultOptions(e){B(this,ri,e)}setQueryDefaults(e,t){k(this,hs).set(fo(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...k(this,hs).values()],n={};return t.forEach(r=>{Ja(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){k(this,ps).set(fo(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...k(this,ps).values()],n={};return t.forEach(r=>{Ja(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...k(this,ri).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Vm(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===zm&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...k(this,ri).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){k(this,$e).clear(),k(this,ni).clear()}},$e=new WeakMap,ni=new WeakMap,ri=new WeakMap,hs=new WeakMap,ps=new WeakMap,ii=new WeakMap,ms=new WeakMap,ys=new WeakMap,f1);function IS(e,t){return function(){return e.apply(t,arguments)}}const{toString:CT}=Object.prototype,{getPrototypeOf:$m}=Object,{iterator:ff,toStringTag:NS}=Symbol,df=(e=>t=>{const n=CT.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Bn=e=>(e=e.toLowerCase(),t=>df(t)===e),hf=e=>t=>typeof t===e,{isArray:_s}=Array,ks=hf("undefined");function wl(e){return e!==null&&!ks(e)&&e.constructor!==null&&!ks(e.constructor)&&Qt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const FS=Bn("ArrayBuffer");function ET(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&FS(e.buffer),t}const kT=hf("string"),Qt=hf("function"),jS=hf("number"),xl=e=>e!==null&&typeof e=="object",RT=e=>e===!0||e===!1,Nu=e=>{if(df(e)!=="object")return!1;const t=$m(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(NS in e)&&!(ff in e)},TT=e=>{if(!xl(e)||wl(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},PT=Bn("Date"),MT=Bn("File"),AT=e=>!!(e&&typeof e.uri<"u"),DT=e=>e&&typeof e.getParts<"u",OT=Bn("Blob"),LT=Bn("FileList"),_T=e=>xl(e)&&Qt(e.pipe);function IT(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const dv=IT(),hv=typeof dv.FormData<"u"?dv.FormData:void 0,NT=e=>{let t;return e&&(hv&&e instanceof hv||Qt(e.append)&&((t=df(e))==="formdata"||t==="object"&&Qt(e.toString)&&e.toString()==="[object FormData]"))},FT=Bn("URLSearchParams"),[jT,VT,zT,BT]=["ReadableStream","Request","Response","Headers"].map(Bn),UT=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Sl(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),_s(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(wl(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let a;for(r=0;r<s;r++)a=o[r],t.call(null,e[a],a,e)}}function VS(e,t){if(wl(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Ui=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,zS=e=>!ks(e)&&e!==Ui;function Zh(){const{caseless:e,skipUndefined:t}=zS(this)&&this||{},n={},r=(i,o)=>{if(o==="__proto__"||o==="constructor"||o==="prototype")return;const s=e&&VS(n,o)||o;Nu(n[s])&&Nu(i)?n[s]=Zh(n[s],i):Nu(i)?n[s]=Zh({},i):_s(i)?n[s]=i.slice():(!t||!ks(i))&&(n[s]=i)};for(let i=0,o=arguments.length;i<o;i++)arguments[i]&&Sl(arguments[i],r);return n}const $T=(e,t,n,{allOwnKeys:r}={})=>(Sl(t,(i,o)=>{n&&Qt(i)?Object.defineProperty(e,o,{value:IS(i,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),WT=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),HT=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},KT=(e,t,n,r)=>{let i,o,s;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&$m(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},qT=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},GT=e=>{if(!e)return null;if(_s(e))return e;let t=e.length;if(!jS(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},QT=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&$m(Uint8Array)),XT=(e,t)=>{const r=(e&&e[ff]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},YT=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},ZT=Bn("HTMLFormElement"),JT=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),pv=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),eP=Bn("RegExp"),BS=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Sl(n,(i,o)=>{let s;(s=t(i,o,e))!==!1&&(r[o]=s||i)}),Object.defineProperties(e,r)},tP=e=>{BS(e,(t,n)=>{if(Qt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Qt(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},nP=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return _s(e)?r(e):r(String(e).split(t)),n},rP=()=>{},iP=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function oP(e){return!!(e&&Qt(e.append)&&e[NS]==="FormData"&&e[ff])}const sP=e=>{const t=new Array(10),n=(r,i)=>{if(xl(r)){if(t.indexOf(r)>=0)return;if(wl(r))return r;if(!("toJSON"in r)){t[i]=r;const o=_s(r)?[]:{};return Sl(r,(s,a)=>{const l=n(s,i+1);!ks(l)&&(o[a]=l)}),t[i]=void 0,o}}return r};return n(e,0)},aP=Bn("AsyncFunction"),lP=e=>e&&(xl(e)||Qt(e))&&Qt(e.then)&&Qt(e.catch),US=((e,t)=>e?setImmediate:t?((n,r)=>(Ui.addEventListener("message",({source:i,data:o})=>{i===Ui&&o===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Ui.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Qt(Ui.postMessage)),uP=typeof queueMicrotask<"u"?queueMicrotask.bind(Ui):typeof process<"u"&&process.nextTick||US,cP=e=>e!=null&&Qt(e[ff]),L={isArray:_s,isArrayBuffer:FS,isBuffer:wl,isFormData:NT,isArrayBufferView:ET,isString:kT,isNumber:jS,isBoolean:RT,isObject:xl,isPlainObject:Nu,isEmptyObject:TT,isReadableStream:jT,isRequest:VT,isResponse:zT,isHeaders:BT,isUndefined:ks,isDate:PT,isFile:MT,isReactNativeBlob:AT,isReactNative:DT,isBlob:OT,isRegExp:eP,isFunction:Qt,isStream:_T,isURLSearchParams:FT,isTypedArray:QT,isFileList:LT,forEach:Sl,merge:Zh,extend:$T,trim:UT,stripBOM:WT,inherits:HT,toFlatObject:KT,kindOf:df,kindOfTest:Bn,endsWith:qT,toArray:GT,forEachEntry:XT,matchAll:YT,isHTMLForm:ZT,hasOwnProperty:pv,hasOwnProp:pv,reduceDescriptors:BS,freezeMethods:tP,toObjectSet:nP,toCamelCase:JT,noop:rP,toFiniteNumber:iP,findKey:VS,global:Ui,isContextDefined:zS,isSpecCompliantForm:oP,toJSONObject:sP,isAsyncFn:aP,isThenable:lP,setImmediate:US,asap:uP,isIterable:cP};let ae=class $S extends Error{static from(t,n,r,i,o,s){const a=new $S(t.message,n||t.code,r,i,o);return a.cause=t,a.name=t.name,t.status!=null&&a.status==null&&(a.status=t.status),s&&Object.assign(a,s),a}constructor(t,n,r,i,o){super(t),Object.defineProperty(this,"message",{value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),i&&(this.request=i),o&&(this.response=o,this.status=o.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:L.toJSONObject(this.config),code:this.code,status:this.status}}};ae.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";ae.ERR_BAD_OPTION="ERR_BAD_OPTION";ae.ECONNABORTED="ECONNABORTED";ae.ETIMEDOUT="ETIMEDOUT";ae.ERR_NETWORK="ERR_NETWORK";ae.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";ae.ERR_DEPRECATED="ERR_DEPRECATED";ae.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";ae.ERR_BAD_REQUEST="ERR_BAD_REQUEST";ae.ERR_CANCELED="ERR_CANCELED";ae.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";ae.ERR_INVALID_URL="ERR_INVALID_URL";const fP=null;function Jh(e){return L.isPlainObject(e)||L.isArray(e)}function WS(e){return L.endsWith(e,"[]")?e.slice(0,-2):e}function ld(e,t,n){return e?e.concat(t).map(function(i,o){return i=WS(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function dP(e){return L.isArray(e)&&!e.some(Jh)}const hP=L.toFlatObject(L,{},null,function(t){return/^is[A-Z]/.test(t)});function pf(e,t,n){if(!L.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=L.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,v){return!L.isUndefined(v[m])});const r=n.metaTokens,i=n.visitor||c,o=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&L.isSpecCompliantForm(t);if(!L.isFunction(i))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(L.isDate(p))return p.toISOString();if(L.isBoolean(p))return p.toString();if(!l&&L.isBlob(p))throw new ae("Blob is not supported. Use a Buffer instead.");return L.isArrayBuffer(p)||L.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function c(p,m,v){let y=p;if(L.isReactNative(t)&&L.isReactNativeBlob(p))return t.append(ld(v,m,o),u(p)),!1;if(p&&!v&&typeof p=="object"){if(L.endsWith(m,"{}"))m=r?m:m.slice(0,-2),p=JSON.stringify(p);else if(L.isArray(p)&&dP(p)||(L.isFileList(p)||L.endsWith(m,"[]"))&&(y=L.toArray(p)))return m=WS(m),y.forEach(function(w,x){!(L.isUndefined(w)||w===null)&&t.append(s===!0?ld([m],x,o):s===null?m:m+"[]",u(w))}),!1}return Jh(p)?!0:(t.append(ld(v,m,o),u(p)),!1)}const f=[],d=Object.assign(hP,{defaultVisitor:c,convertValue:u,isVisitable:Jh});function h(p,m){if(!L.isUndefined(p)){if(f.indexOf(p)!==-1)throw Error("Circular reference detected in "+m.join("."));f.push(p),L.forEach(p,function(y,g){(!(L.isUndefined(y)||y===null)&&i.call(t,y,L.isString(g)?g.trim():g,m,d))===!0&&h(y,m?m.concat(g):[g])}),f.pop()}}if(!L.isObject(e))throw new TypeError("data must be an object");return h(e),t}function mv(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Wm(e,t){this._pairs=[],e&&pf(e,this,t)}const HS=Wm.prototype;HS.append=function(t,n){this._pairs.push([t,n])};HS.toString=function(t){const n=t?function(r){return t.call(this,r,mv)}:mv;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function pP(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function KS(e,t,n){if(!t)return e;const r=n&&n.encode||pP,i=L.isFunction(n)?{serialize:n}:n,o=i&&i.serialize;let s;if(o?s=o(t,i):s=L.isURLSearchParams(t)?t.toString():new Wm(t,i).toString(r),s){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class yv{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){L.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Hm={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},mP=typeof URLSearchParams<"u"?URLSearchParams:Wm,yP=typeof FormData<"u"?FormData:null,gP=typeof Blob<"u"?Blob:null,vP={isBrowser:!0,classes:{URLSearchParams:mP,FormData:yP,Blob:gP},protocols:["http","https","file","blob","url","data"]},Km=typeof window<"u"&&typeof document<"u",ep=typeof navigator=="object"&&navigator||void 0,wP=Km&&(!ep||["ReactNative","NativeScript","NS"].indexOf(ep.product)<0),xP=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",SP=Km&&window.location.href||"http://localhost",bP=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Km,hasStandardBrowserEnv:wP,hasStandardBrowserWebWorkerEnv:xP,navigator:ep,origin:SP},Symbol.toStringTag,{value:"Module"})),kt={...bP,...vP};function CP(e,t){return pf(e,new kt.classes.URLSearchParams,{visitor:function(n,r,i,o){return kt.isNode&&L.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function EP(e){return L.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function kP(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}function qS(e){function t(n,r,i,o){let s=n[o++];if(s==="__proto__")return!0;const a=Number.isFinite(+s),l=o>=n.length;return s=!s&&L.isArray(i)?i.length:s,l?(L.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!a):((!i[s]||!L.isObject(i[s]))&&(i[s]=[]),t(n,r,i[s],o)&&L.isArray(i[s])&&(i[s]=kP(i[s])),!a)}if(L.isFormData(e)&&L.isFunction(e.entries)){const n={};return L.forEachEntry(e,(r,i)=>{t(EP(r),i,n,0)}),n}return null}function RP(e,t,n){if(L.isString(e))try{return(t||JSON.parse)(e),L.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const bl={transitional:Hm,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=L.isObject(t);if(o&&L.isHTMLForm(t)&&(t=new FormData(t)),L.isFormData(t))return i?JSON.stringify(qS(t)):t;if(L.isArrayBuffer(t)||L.isBuffer(t)||L.isStream(t)||L.isFile(t)||L.isBlob(t)||L.isReadableStream(t))return t;if(L.isArrayBufferView(t))return t.buffer;if(L.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return CP(t,this.formSerializer).toString();if((a=L.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return pf(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),RP(t)):t}],transformResponse:[function(t){const n=this.transitional||bl.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(L.isResponse(t)||L.isReadableStream(t))return t;if(t&&L.isString(t)&&(r&&!this.responseType||i)){const s=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,this.parseReviver)}catch(a){if(s)throw a.name==="SyntaxError"?ae.from(a,ae.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:kt.classes.FormData,Blob:kt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};L.forEach(["delete","get","head","post","put","patch"],e=>{bl.headers[e]={}});const TP=L.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),PP=e=>{const t={};let n,r,i;return e&&e.split(`
|
|
376
|
+
`).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim(),!(!n||t[n]&&TP[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},gv=Symbol("internals");function ia(e){return e&&String(e).trim().toLowerCase()}function Fu(e){return e===!1||e==null?e:L.isArray(e)?e.map(Fu):String(e)}function MP(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const AP=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ud(e,t,n,r,i){if(L.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!L.isString(t)){if(L.isString(r))return t.indexOf(r)!==-1;if(L.isRegExp(r))return r.test(t)}}function DP(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function OP(e,t){const n=L.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,s){return this[r].call(this,t,i,o,s)},configurable:!0})})}let Xt=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(a,l,u){const c=ia(l);if(!c)throw new Error("header name must be a non-empty string");const f=L.findKey(i,c);(!f||i[f]===void 0||u===!0||u===void 0&&i[f]!==!1)&&(i[f||l]=Fu(a))}const s=(a,l)=>L.forEach(a,(u,c)=>o(u,c,l));if(L.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(L.isString(t)&&(t=t.trim())&&!AP(t))s(PP(t),n);else if(L.isObject(t)&&L.isIterable(t)){let a={},l,u;for(const c of t){if(!L.isArray(c))throw TypeError("Object iterator must return a key-value pair");a[u=c[0]]=(l=a[u])?L.isArray(l)?[...l,c[1]]:[l,c[1]]:c[1]}s(a,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=ia(t),t){const r=L.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return MP(i);if(L.isFunction(n))return n.call(this,i,r);if(L.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ia(t),t){const r=L.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||ud(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(s){if(s=ia(s),s){const a=L.findKey(r,s);a&&(!n||ud(r,r[a],a,n))&&(delete r[a],i=!0)}}return L.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||ud(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return L.forEach(this,(i,o)=>{const s=L.findKey(r,o);if(s){n[s]=Fu(i),delete n[o];return}const a=t?DP(o):String(o).trim();a!==o&&delete n[o],n[a]=Fu(i),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return L.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&L.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
377
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[gv]=this[gv]={accessors:{}}).accessors,i=this.prototype;function o(s){const a=ia(s);r[a]||(OP(i,s),r[a]=!0)}return L.isArray(t)?t.forEach(o):o(t),this}};Xt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);L.reduceDescriptors(Xt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});L.freezeMethods(Xt);function cd(e,t){const n=this||bl,r=t||n,i=Xt.from(r.headers);let o=r.data;return L.forEach(e,function(a){o=a.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function GS(e){return!!(e&&e.__CANCEL__)}let Cl=class extends ae{constructor(t,n,r){super(t??"canceled",ae.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function QS(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ae("Request failed with status code "+n.status,[ae.ERR_BAD_REQUEST,ae.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function LP(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function _P(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,s;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[o];s||(s=u),n[i]=l,r[i]=u;let f=o,d=0;for(;f!==i;)d+=n[f++],f=f%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),u-s<t)return;const h=c&&u-c;return h?Math.round(d*1e3/h):void 0}}function IP(e,t){let n=0,r=1e3/t,i,o;const s=(u,c=Date.now())=>{n=c,i=null,o&&(clearTimeout(o),o=null),e(...u)};return[(...u)=>{const c=Date.now(),f=c-n;f>=r?s(u,c):(i=u,o||(o=setTimeout(()=>{o=null,s(i)},r-f)))},()=>i&&s(i)]}const Ec=(e,t,n=3)=>{let r=0;const i=_P(50,250);return IP(o=>{const s=o.loaded,a=o.lengthComputable?o.total:void 0,l=s-r,u=i(l),c=s<=a;r=s;const f={loaded:s,total:a,progress:a?s/a:void 0,bytes:l,rate:u||void 0,estimated:u&&a&&c?(a-s)/u:void 0,event:o,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(f)},n)},vv=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},wv=e=>(...t)=>L.asap(()=>e(...t)),NP=kt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,kt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(kt.origin),kt.navigator&&/(msie|trident)/i.test(kt.navigator.userAgent)):()=>!0,FP=kt.hasStandardBrowserEnv?{write(e,t,n,r,i,o,s){if(typeof document>"u")return;const a=[`${e}=${encodeURIComponent(t)}`];L.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),L.isString(r)&&a.push(`path=${r}`),L.isString(i)&&a.push(`domain=${i}`),o===!0&&a.push("secure"),L.isString(s)&&a.push(`SameSite=${s}`),document.cookie=a.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function jP(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function VP(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function XS(e,t,n){let r=!jP(t);return e&&(r||n==!1)?VP(e,t):t}const xv=e=>e instanceof Xt?{...e}:e;function ho(e,t){t=t||{};const n={};function r(u,c,f,d){return L.isPlainObject(u)&&L.isPlainObject(c)?L.merge.call({caseless:d},u,c):L.isPlainObject(c)?L.merge({},c):L.isArray(c)?c.slice():c}function i(u,c,f,d){if(L.isUndefined(c)){if(!L.isUndefined(u))return r(void 0,u,f,d)}else return r(u,c,f,d)}function o(u,c){if(!L.isUndefined(c))return r(void 0,c)}function s(u,c){if(L.isUndefined(c)){if(!L.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function a(u,c,f){if(f in t)return r(u,c);if(f in e)return r(void 0,u)}const l={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(u,c,f)=>i(xv(u),xv(c),f,!0)};return L.forEach(Object.keys({...e,...t}),function(c){if(c==="__proto__"||c==="constructor"||c==="prototype")return;const f=L.hasOwnProp(l,c)?l[c]:i,d=f(e[c],t[c],c);L.isUndefined(d)&&f!==a||(n[c]=d)}),n}const YS=e=>{const t=ho({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:s,auth:a}=t;if(t.headers=s=Xt.from(s),t.url=KS(XS(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),L.isFormData(n)){if(kt.hasStandardBrowserEnv||kt.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(L.isFunction(n.getHeaders)){const l=n.getHeaders(),u=["content-type","content-length"];Object.entries(l).forEach(([c,f])=>{u.includes(c.toLowerCase())&&s.set(c,f)})}}if(kt.hasStandardBrowserEnv&&(r&&L.isFunction(r)&&(r=r(t)),r||r!==!1&&NP(t.url))){const l=i&&o&&FP.read(o);l&&s.set(i,l)}return t},zP=typeof XMLHttpRequest<"u",BP=zP&&function(e){return new Promise(function(n,r){const i=YS(e);let o=i.data;const s=Xt.from(i.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:u}=i,c,f,d,h,p;function m(){h&&h(),p&&p(),i.cancelToken&&i.cancelToken.unsubscribe(c),i.signal&&i.signal.removeEventListener("abort",c)}let v=new XMLHttpRequest;v.open(i.method.toUpperCase(),i.url,!0),v.timeout=i.timeout;function y(){if(!v)return;const w=Xt.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),E={data:!a||a==="text"||a==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:w,config:e,request:v};QS(function(S){n(S),m()},function(S){r(S),m()},E),v=null}"onloadend"in v?v.onloadend=y:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(y)},v.onabort=function(){v&&(r(new ae("Request aborted",ae.ECONNABORTED,e,v)),v=null)},v.onerror=function(x){const E=x&&x.message?x.message:"Network Error",T=new ae(E,ae.ERR_NETWORK,e,v);T.event=x||null,r(T),v=null},v.ontimeout=function(){let x=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const E=i.transitional||Hm;i.timeoutErrorMessage&&(x=i.timeoutErrorMessage),r(new ae(x,E.clarifyTimeoutError?ae.ETIMEDOUT:ae.ECONNABORTED,e,v)),v=null},o===void 0&&s.setContentType(null),"setRequestHeader"in v&&L.forEach(s.toJSON(),function(x,E){v.setRequestHeader(E,x)}),L.isUndefined(i.withCredentials)||(v.withCredentials=!!i.withCredentials),a&&a!=="json"&&(v.responseType=i.responseType),u&&([d,p]=Ec(u,!0),v.addEventListener("progress",d)),l&&v.upload&&([f,h]=Ec(l),v.upload.addEventListener("progress",f),v.upload.addEventListener("loadend",h)),(i.cancelToken||i.signal)&&(c=w=>{v&&(r(!w||w.type?new Cl(null,e,v):w),v.abort(),v=null)},i.cancelToken&&i.cancelToken.subscribe(c),i.signal&&(i.signal.aborted?c():i.signal.addEventListener("abort",c)));const g=LP(i.url);if(g&&kt.protocols.indexOf(g)===-1){r(new ae("Unsupported protocol "+g+":",ae.ERR_BAD_REQUEST,e));return}v.send(o||null)})},UP=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const o=function(u){if(!i){i=!0,a();const c=u instanceof Error?u:this.reason;r.abort(c instanceof ae?c:new Cl(c instanceof Error?c.message:c))}};let s=t&&setTimeout(()=>{s=null,o(new ae(`timeout of ${t}ms exceeded`,ae.ETIMEDOUT))},t);const a=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),e=null)};e.forEach(u=>u.addEventListener("abort",o));const{signal:l}=r;return l.unsubscribe=()=>L.asap(a),l}},$P=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},WP=async function*(e,t){for await(const n of HP(e))yield*$P(n,t)},HP=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},Sv=(e,t,n,r)=>{const i=WP(e,t);let o=0,s,a=l=>{s||(s=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:u,value:c}=await i.next();if(u){a(),l.close();return}let f=c.byteLength;if(n){let d=o+=f;n(d)}l.enqueue(new Uint8Array(c))}catch(u){throw a(u),u}},cancel(l){return a(l),i.return()}},{highWaterMark:2})},bv=64*1024,{isFunction:au}=L,KP=(({Request:e,Response:t})=>({Request:e,Response:t}))(L.global),{ReadableStream:Cv,TextEncoder:Ev}=L.global,kv=(e,...t)=>{try{return!!e(...t)}catch{return!1}},qP=e=>{e=L.merge.call({skipUndefined:!0},KP,e);const{fetch:t,Request:n,Response:r}=e,i=t?au(t):typeof fetch=="function",o=au(n),s=au(r);if(!i)return!1;const a=i&&au(Cv),l=i&&(typeof Ev=="function"?(p=>m=>p.encode(m))(new Ev):async p=>new Uint8Array(await new n(p).arrayBuffer())),u=o&&a&&kv(()=>{let p=!1;const m=new n(kt.origin,{body:new Cv,method:"POST",get duplex(){return p=!0,"half"}}).headers.has("Content-Type");return p&&!m}),c=s&&a&&kv(()=>L.isReadableStream(new r("").body)),f={stream:c&&(p=>p.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(p=>{!f[p]&&(f[p]=(m,v)=>{let y=m&&m[p];if(y)return y.call(m);throw new ae(`Response type '${p}' is not supported`,ae.ERR_NOT_SUPPORT,v)})});const d=async p=>{if(p==null)return 0;if(L.isBlob(p))return p.size;if(L.isSpecCompliantForm(p))return(await new n(kt.origin,{method:"POST",body:p}).arrayBuffer()).byteLength;if(L.isArrayBufferView(p)||L.isArrayBuffer(p))return p.byteLength;if(L.isURLSearchParams(p)&&(p=p+""),L.isString(p))return(await l(p)).byteLength},h=async(p,m)=>{const v=L.toFiniteNumber(p.getContentLength());return v??d(m)};return async p=>{let{url:m,method:v,data:y,signal:g,cancelToken:w,timeout:x,onDownloadProgress:E,onUploadProgress:T,responseType:S,headers:b,withCredentials:A="same-origin",fetchOptions:M}=YS(p),I=t||fetch;S=S?(S+"").toLowerCase():"text";let z=UP([g,w&&w.toAbortSignal()],x),W=null;const $=z&&z.unsubscribe&&(()=>{z.unsubscribe()});let oe;try{if(T&&u&&v!=="get"&&v!=="head"&&(oe=await h(b,y))!==0){let re=new n(m,{method:"POST",body:y,duplex:"half"}),ne;if(L.isFormData(y)&&(ne=re.headers.get("content-type"))&&b.setContentType(ne),re.body){const[Te,be]=vv(oe,Ec(wv(T)));y=Sv(re.body,bv,Te,be)}}L.isString(A)||(A=A?"include":"omit");const U=o&&"credentials"in n.prototype,se={...M,signal:z,method:v.toUpperCase(),headers:b.normalize().toJSON(),body:y,duplex:"half",credentials:U?A:void 0};W=o&&new n(m,se);let O=await(o?I(W,M):I(m,se));const j=c&&(S==="stream"||S==="response");if(c&&(E||j&&$)){const re={};["status","statusText","headers"].forEach(ce=>{re[ce]=O[ce]});const ne=L.toFiniteNumber(O.headers.get("content-length")),[Te,be]=E&&vv(ne,Ec(wv(E),!0))||[];O=new r(Sv(O.body,bv,Te,()=>{be&&be(),$&&$()}),re)}S=S||"text";let _=await f[L.findKey(f,S)||"text"](O,p);return!j&&$&&$(),await new Promise((re,ne)=>{QS(re,ne,{data:_,headers:Xt.from(O.headers),status:O.status,statusText:O.statusText,config:p,request:W})})}catch(U){throw $&&$(),U&&U.name==="TypeError"&&/Load failed|fetch/i.test(U.message)?Object.assign(new ae("Network Error",ae.ERR_NETWORK,p,W,U&&U.response),{cause:U.cause||U}):ae.from(U,U&&U.code,p,W,U&&U.response)}}},GP=new Map,ZS=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:i}=t,o=[r,i,n];let s=o.length,a=s,l,u,c=GP;for(;a--;)l=o[a],u=c.get(l),u===void 0&&c.set(l,u=a?new Map:qP(t)),c=u;return u};ZS();const qm={http:fP,xhr:BP,fetch:{get:ZS}};L.forEach(qm,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Rv=e=>`- ${e}`,QP=e=>L.isFunction(e)||e===null||e===!1;function XP(e,t){e=L.isArray(e)?e:[e];const{length:n}=e;let r,i;const o={};for(let s=0;s<n;s++){r=e[s];let a;if(i=r,!QP(r)&&(i=qm[(a=String(r)).toLowerCase()],i===void 0))throw new ae(`Unknown adapter '${a}'`);if(i&&(L.isFunction(i)||(i=i.get(t))))break;o[a||"#"+s]=i}if(!i){const s=Object.entries(o).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let a=n?s.length>1?`since :
|
|
368
378
|
`+s.map(Rv).join(`
|
|
369
|
-
`):" "+Rv(s[0]):"as no adapter specified";throw new ae("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return i}const JS={getAdapter:
|
|
370
|
-
`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ho(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&ju.assertOptions(r,{silentJSONParsing:fn.transitional(fn.boolean),forcedJSONParsing:fn.transitional(fn.boolean),clarifyTimeoutError:fn.transitional(fn.boolean),legacyInterceptorReqResOrdering:fn.transitional(fn.boolean)},!1),i!=null&&(L.isFunction(i)?n.paramsSerializer={serialize:i}:ju.assertOptions(i,{encode:fn.function,serialize:fn.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),ju.assertOptions(n,{baseUrl:fn.spelling("baseURL"),withXsrfToken:fn.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=o&&L.merge(o.common,o[n.method]);o&&L.forEach(["delete","get","head","post","put","patch","common"],p=>{delete o[p]}),n.headers=Xt.concat(s,o);const a=[];let l=!0;this.interceptors.request.forEach(function(m){if(typeof m.runWhen=="function"&&m.runWhen(n)===!1)return;l=l&&m.synchronous;const v=n.transitional||
|
|
379
|
+
`):" "+Rv(s[0]):"as no adapter specified";throw new ae("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return i}const JS={getAdapter:XP,adapters:qm};function fd(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Cl(null,e)}function Tv(e){return fd(e),e.headers=Xt.from(e.headers),e.data=cd.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),JS.getAdapter(e.adapter||bl.adapter,e)(e).then(function(r){return fd(e),r.data=cd.call(e,e.transformResponse,r),r.headers=Xt.from(r.headers),r},function(r){return GS(r)||(fd(e),r&&r.response&&(r.response.data=cd.call(e,e.transformResponse,r.response),r.response.headers=Xt.from(r.response.headers))),Promise.reject(r)})}const eb="1.13.6",mf={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{mf[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Pv={};mf.transitional=function(t,n,r){function i(o,s){return"[Axios v"+eb+"] Transitional option '"+o+"'"+s+(r?". "+r:"")}return(o,s,a)=>{if(t===!1)throw new ae(i(s," has been removed"+(n?" in "+n:"")),ae.ERR_DEPRECATED);return n&&!Pv[s]&&(Pv[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,s,a):!0}};mf.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function YP(e,t,n){if(typeof e!="object")throw new ae("options must be an object",ae.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],s=t[o];if(s){const a=e[o],l=a===void 0||s(a,o,e);if(l!==!0)throw new ae("option "+o+" must be "+l,ae.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ae("Unknown option "+o,ae.ERR_BAD_OPTION)}}const ju={assertOptions:YP,validators:mf},fn=ju.validators;let ro=class{constructor(t){this.defaults=t||{},this.interceptors={request:new yv,response:new yv}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
380
|
+
`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ho(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&ju.assertOptions(r,{silentJSONParsing:fn.transitional(fn.boolean),forcedJSONParsing:fn.transitional(fn.boolean),clarifyTimeoutError:fn.transitional(fn.boolean),legacyInterceptorReqResOrdering:fn.transitional(fn.boolean)},!1),i!=null&&(L.isFunction(i)?n.paramsSerializer={serialize:i}:ju.assertOptions(i,{encode:fn.function,serialize:fn.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),ju.assertOptions(n,{baseUrl:fn.spelling("baseURL"),withXsrfToken:fn.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=o&&L.merge(o.common,o[n.method]);o&&L.forEach(["delete","get","head","post","put","patch","common"],p=>{delete o[p]}),n.headers=Xt.concat(s,o);const a=[];let l=!0;this.interceptors.request.forEach(function(m){if(typeof m.runWhen=="function"&&m.runWhen(n)===!1)return;l=l&&m.synchronous;const v=n.transitional||Hm;v&&v.legacyInterceptorReqResOrdering?a.unshift(m.fulfilled,m.rejected):a.push(m.fulfilled,m.rejected)});const u=[];this.interceptors.response.forEach(function(m){u.push(m.fulfilled,m.rejected)});let c,f=0,d;if(!l){const p=[Tv.bind(this),void 0];for(p.unshift(...a),p.push(...u),d=p.length,c=Promise.resolve(n);f<d;)c=c.then(p[f++],p[f++]);return c}d=a.length;let h=n;for(;f<d;){const p=a[f++],m=a[f++];try{h=p(h)}catch(v){m.call(this,v);break}}try{c=Tv.call(this,h)}catch(p){return Promise.reject(p)}for(f=0,d=u.length;f<d;)c=c.then(u[f++],u[f++]);return c}getUri(t){t=ho(this.defaults,t);const n=XS(t.baseURL,t.url,t.allowAbsoluteUrls);return KS(n,t.params,t.paramsSerializer)}};L.forEach(["delete","get","head","options"],function(t){ro.prototype[t]=function(n,r){return this.request(ho(r||{},{method:t,url:n,data:(r||{}).data}))}});L.forEach(["post","put","patch"],function(t){function n(r){return function(o,s,a){return this.request(ho(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:s}))}}ro.prototype[t]=n(),ro.prototype[t+"Form"]=n(!0)});let ZP=class tb{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(i=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const s=new Promise(a=>{r.subscribe(a),o=a}).then(i);return s.cancel=function(){r.unsubscribe(o)},s},t(function(o,s,a){r.reason||(r.reason=new Cl(o,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new tb(function(i){t=i}),cancel:t}}};function JP(e){return function(n){return e.apply(null,n)}}function eM(e){return L.isObject(e)&&e.isAxiosError===!0}const tp={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(tp).forEach(([e,t])=>{tp[t]=e});function nb(e){const t=new ro(e),n=IS(ro.prototype.request,t);return L.extend(n,ro.prototype,t,{allOwnKeys:!0}),L.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return nb(ho(e,i))},n}const Ye=nb(bl);Ye.Axios=ro;Ye.CanceledError=Cl;Ye.CancelToken=ZP;Ye.isCancel=GS;Ye.VERSION=eb;Ye.toFormData=pf;Ye.AxiosError=ae;Ye.Cancel=Ye.CanceledError;Ye.all=function(t){return Promise.all(t)};Ye.spread=JP;Ye.isAxiosError=eM;Ye.mergeConfig=ho;Ye.AxiosHeaders=Xt;Ye.formToJSON=e=>qS(L.isHTMLForm(e)?new FormData(e):e);Ye.getAdapter=JS.getAdapter;Ye.HttpStatusCode=tp;Ye.default=Ye;const{Axios:Mj,AxiosError:Aj,CanceledError:Dj,isCancel:Oj,CancelToken:Lj,VERSION:_j,all:Ij,Cancel:Nj,isAxiosError:Fj,spread:jj,toFormData:Vj,AxiosHeaders:zj,HttpStatusCode:Bj,formToJSON:Uj,getAdapter:$j,mergeConfig:Wj}=Ye;/**
|
|
371
381
|
* @remix-run/router v1.23.2
|
|
372
382
|
*
|
|
373
383
|
* Copyright (c) Remix Software Inc.
|
|
@@ -376,8 +386,8 @@ Error generating stack: `+o.message+`
|
|
|
376
386
|
* LICENSE.md file in the root directory of this source tree.
|
|
377
387
|
*
|
|
378
388
|
* @license MIT
|
|
379
|
-
*/function Ie(){return Ie=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ie.apply(this,arguments)}var tt;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(tt||(tt={}));const Mv="popstate";function $j(e){e===void 0&&(e={});function t(r,i){let{pathname:o,search:s,hash:a}=r.location;return el("",{pathname:o,search:s,hash:a},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:El(i)}return nM(t,n,null,e)}function De(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function po(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function tM(){return Math.random().toString(36).substr(2,8)}function Av(e,t){return{usr:e.state,key:e.key,idx:t}}function el(e,t,n,r){return n===void 0&&(n=null),Ie({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?vo(t):t,{state:n,key:t&&t.key||r||tM()})}function El(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function vo(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function nM(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,a=tt.Pop,l=null,u=c();u==null&&(u=0,s.replaceState(Ie({},s.state,{idx:u}),""));function c(){return(s.state||{idx:null}).idx}function f(){a=tt.Pop;let v=c(),y=v==null?null:v-u;u=v,l&&l({action:a,location:m.location,delta:y})}function d(v,y){a=tt.Push;let g=el(m.location,v,y);u=c()+1;let w=Av(g,u),x=m.createHref(g);try{s.pushState(w,"",x)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;i.location.assign(x)}o&&l&&l({action:a,location:m.location,delta:1})}function h(v,y){a=tt.Replace;let g=el(m.location,v,y);u=c();let w=Av(g,u),x=m.createHref(g);s.replaceState(w,"",x),o&&l&&l({action:a,location:m.location,delta:0})}function p(v){let y=i.location.origin!=="null"?i.location.origin:i.location.href,g=typeof v=="string"?v:El(v);return g=g.replace(/ $/,"%20"),De(y,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,y)}let m={get action(){return a},get location(){return e(i,s)},listen(v){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(Mv,f),l=v,()=>{i.removeEventListener(Mv,f),l=null}},createHref(v){return t(i,v)},createURL:p,encodeLocation(v){let y=p(v);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:d,replace:h,go(v){return s.go(v)}};return m}var ke;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(ke||(ke={}));const rM=new Set(["lazy","caseSensitive","path","id","index","children"]);function iM(e){return e.index===!0}function kc(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,o)=>{let s=[...n,String(o)],a=typeof i.id=="string"?i.id:s.join("-");if(De(i.index!==!0||!i.children,"Cannot specify children on an index route"),De(!r[a],'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),iM(i)){let l=Ie({},i,t(i),{id:a});return r[a]=l,l}else{let l=Ie({},i,t(i),{id:a,children:void 0});return r[a]=l,i.children&&(l.children=kc(i.children,t,s,r)),l}})}function Lo(e,t,n){return n===void 0&&(n="/"),Vu(e,t,n,!1)}function Vu(e,t,n,r){let i=typeof t=="string"?vo(t):t,o=yf(i.pathname||"/",n);if(o==null)return null;let s=rb(e);sM(s);let a=null;for(let l=0;a==null&&l<s.length;++l){let u=gM(o);a=mM(s[l],u,r)}return a}function oM(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],handle:n.handle}}function rb(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(o,s,a)=>{let l={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};l.relativePath.startsWith("/")&&(De(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=Pa([r,l.relativePath]),c=n.concat(l);o.children&&o.children.length>0&&(De(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),rb(o.children,t,c,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:hM(u,o.index),routesMeta:c})};return e.forEach((o,s)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))i(o,s);else for(let l of ib(o.path))i(o,s,l)}),t}function ib(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let s=ib(r.join("/")),a=[];return a.push(...s.map(l=>l===""?o:[o,l].join("/"))),i&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function sM(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:pM(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const aM=/^:[\w-]+$/,lM=3,uM=2,cM=1,fM=10,dM=-2,Dv=e=>e==="*";function hM(e,t){let n=e.split("/"),r=n.length;return n.some(Dv)&&(r+=dM),t&&(r+=uM),n.filter(i=>!Dv(i)).reduce((i,o)=>i+(aM.test(o)?lM:o===""?cM:fM),r)}function pM(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function mM(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,i={},o="/",s=[];for(let a=0;a<r.length;++a){let l=r[a],u=a===r.length-1,c=o==="/"?t:t.slice(o.length)||"/",f=Ov({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},c),d=l.route;if(!f&&u&&n&&!r[r.length-1].route.index&&(f=Ov({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},c)),!f)return null;Object.assign(i,f.params),s.push({params:i,pathname:Pa([o,f.pathname]),pathnameBase:CM(Pa([o,f.pathnameBase])),route:d}),f.pathnameBase!=="/"&&(o=Pa([o,f.pathnameBase]))}return s}function Ov(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=yM(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],s=o.replace(/(.)\/+$/,"$1"),a=i.slice(1);return{params:r.reduce((u,c,f)=>{let{paramName:d,isOptional:h}=c;if(d==="*"){let m=a[f]||"";s=o.slice(0,o.length-m.length).replace(/(.)\/+$/,"$1")}const p=a[f];return h&&!p?u[d]=void 0:u[d]=(p||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:s,pattern:e}}function yM(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),po(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function gM(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return po(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function yf(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const vM=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,wM=e=>vM.test(e);function xM(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?vo(e):e,o;if(n)if(wM(n))o=n;else{if(n.includes("//")){let s=n;n=n.replace(/\/\/+/g,"/"),po(!1,"Pathnames cannot have embedded double slashes - normalizing "+(s+" -> "+n))}n.startsWith("/")?o=Lv(n.substring(1),"/"):o=Lv(n,t)}else o=t;return{pathname:o,search:EM(r),hash:kM(i)}}function Lv(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function dd(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function ob(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function SM(e,t){let n=ob(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function bM(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=vo(e):(i=Ie({},e),De(!i.pathname||!i.pathname.includes("?"),dd("?","pathname","search",i)),De(!i.pathname||!i.pathname.includes("#"),dd("#","pathname","hash",i)),De(!i.search||!i.search.includes("#"),dd("#","search","hash",i)));let o=e===""||i.pathname==="",s=o?"/":i.pathname,a;if(s==null)a=n;else{let f=t.length-1;if(!r&&s.startsWith("..")){let d=s.split("/");for(;d[0]==="..";)d.shift(),f-=1;i.pathname=d.join("/")}a=f>=0?t[f]:"/"}let l=xM(i,a),u=s&&s!=="/"&&s.endsWith("/"),c=(o||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const Pa=e=>e.join("/").replace(/\/\/+/g,"/"),CM=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),EM=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,kM=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class np{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function Rc(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const sb=["post","put","patch","delete"],RM=new Set(sb),TM=["get",...sb],PM=new Set(TM),MM=new Set([301,302,303,307,308]),AM=new Set([307,308]),hd={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},DM={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},oa={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Gm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,OM=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),ab="remix-router-transitions";function Hj(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;De(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let R=e.detectErrorBoundary;i=P=>({hasErrorBoundary:R(P)})}else i=OM;let o={},s=kc(e.routes,i,void 0,o),a,l=e.basename||"/",u=e.dataStrategy||NM,c=e.patchRoutesOnNavigation,f=Ie({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),d=null,h=new Set,p=null,m=null,v=null,y=e.hydrationData!=null,g=Lo(s,e.history.location,l),w=!1,x=null;if(g==null&&!c){let R=$t(404,{pathname:e.history.location.pathname}),{matches:P,route:D}=Hv(s);g=P,x={[D.id]:R}}g&&!e.hydrationData&&ot(g,s,e.history.location.pathname).active&&(g=null);let E;if(g)if(g.some(R=>R.route.lazy))E=!1;else if(!g.some(R=>R.route.loader))E=!0;else if(f.v7_partialHydration){let R=e.hydrationData?e.hydrationData.loaderData:null,P=e.hydrationData?e.hydrationData.errors:null;if(P){let D=g.findIndex(N=>P[N.route.id]!==void 0);E=g.slice(0,D+1).every(N=>!ip(N.route,R,P))}else E=g.every(D=>!ip(D.route,R,P))}else E=e.hydrationData!=null;else if(E=!1,g=[],f.v7_partialHydration){let R=ot(null,s,e.history.location.pathname);R.active&&R.matches&&(w=!0,g=R.matches)}let T,S={historyAction:e.history.action,location:e.history.location,matches:g,initialized:E,navigation:hd,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||x,fetchers:new Map,blockers:new Map},b=tt.Pop,A=!1,M,I=!1,z=new Map,H=null,$=!1,oe=!1,U=[],se=new Set,O=new Map,j=0,_=-1,re=new Map,ne=new Set,Te=new Map,be=new Map,ce=new Set,le=new Map,ze=new Map,wt;function Ce(){if(d=e.history.listen(R=>{let{action:P,location:D,delta:N}=R;if(wt){wt(),wt=void 0;return}po(ze.size===0||N!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let V=Vl({currentLocation:S.location,nextLocation:D,historyAction:P});if(V&&N!=null){let X=new Promise(ie=>{wt=ie});e.history.go(N*-1),Eo(V,{state:"blocked",location:D,proceed(){Eo(V,{state:"proceeding",proceed:void 0,reset:void 0,location:D}),X.then(()=>e.history.go(N))},reset(){let ie=new Map(S.blockers);ie.set(V,oa),xe({blockers:ie})}});return}return zt(P,D)}),n){XM(t,z);let R=()=>YM(t,z);t.addEventListener("pagehide",R),H=()=>t.removeEventListener("pagehide",R)}return S.initialized||zt(tt.Pop,S.location,{initialHydration:!0}),T}function ge(){d&&d(),H&&H(),h.clear(),M&&M.abort(),S.fetchers.forEach((R,P)=>Zt(P)),S.blockers.forEach((R,P)=>Ws(P))}function cn(R){return h.add(R),()=>h.delete(R)}function xe(R,P){P===void 0&&(P={}),S=Ie({},S,R);let D=[],N=[];f.v7_fetcherPersist&&S.fetchers.forEach((V,X)=>{V.state==="idle"&&(ce.has(X)?N.push(X):D.push(X))}),ce.forEach(V=>{!S.fetchers.has(V)&&!O.has(V)&&N.push(V)}),[...h].forEach(V=>V(S,{deletedFetchers:N,viewTransitionOpts:P.viewTransitionOpts,flushSync:P.flushSync===!0})),f.v7_fetcherPersist?(D.forEach(V=>S.fetchers.delete(V)),N.forEach(V=>Zt(V))):N.forEach(V=>ce.delete(V))}function ct(R,P,D){var N,V;let{flushSync:X}=D===void 0?{}:D,ie=S.actionData!=null&&S.navigation.formMethod!=null&&On(S.navigation.formMethod)&&S.navigation.state==="loading"&&((N=R.state)==null?void 0:N._isRedirect)!==!0,W;P.actionData?Object.keys(P.actionData).length>0?W=P.actionData:W=null:ie?W=S.actionData:W=null;let J=P.loaderData?Uv(S.loaderData,P.loaderData,P.matches||[],P.errors):S.loaderData,q=S.blockers;q.size>0&&(q=new Map(q),q.forEach((ye,dt)=>q.set(dt,oa)));let ee=A===!0||S.navigation.formMethod!=null&&On(S.navigation.formMethod)&&((V=R.state)==null?void 0:V._isRedirect)!==!0;a&&(s=a,a=void 0),$||b===tt.Pop||(b===tt.Push?e.history.push(R,R.state):b===tt.Replace&&e.history.replace(R,R.state));let ue;if(b===tt.Pop){let ye=z.get(S.location.pathname);ye&&ye.has(R.pathname)?ue={currentLocation:S.location,nextLocation:R}:z.has(R.pathname)&&(ue={currentLocation:R,nextLocation:S.location})}else if(I){let ye=z.get(S.location.pathname);ye?ye.add(R.pathname):(ye=new Set([R.pathname]),z.set(S.location.pathname,ye)),ue={currentLocation:S.location,nextLocation:R}}xe(Ie({},P,{actionData:W,loaderData:J,historyAction:b,location:R,initialized:!0,navigation:hd,revalidation:"idle",restoreScrollPosition:At(R,P.matches||S.matches),preventScrollReset:ee,blockers:q}),{viewTransitionOpts:ue,flushSync:X===!0}),b=tt.Pop,A=!1,I=!1,$=!1,oe=!1,U=[]}async function ft(R,P){if(typeof R=="number"){e.history.go(R);return}let D=rp(S.location,S.matches,l,f.v7_prependBasename,R,f.v7_relativeSplatPath,P==null?void 0:P.fromRouteId,P==null?void 0:P.relative),{path:N,submission:V,error:X}=_v(f.v7_normalizeFormMethod,!1,D,P),ie=S.location,W=el(S.location,N,P&&P.state);W=Ie({},W,e.history.encodeLocation(W));let J=P&&P.replace!=null?P.replace:void 0,q=tt.Push;J===!0?q=tt.Replace:J===!1||V!=null&&On(V.formMethod)&&V.formAction===S.location.pathname+S.location.search&&(q=tt.Replace);let ee=P&&"preventScrollReset"in P?P.preventScrollReset===!0:void 0,ue=(P&&P.flushSync)===!0,ye=Vl({currentLocation:ie,nextLocation:W,historyAction:q});if(ye){Eo(ye,{state:"blocked",location:W,proceed(){Eo(ye,{state:"proceeding",proceed:void 0,reset:void 0,location:W}),ft(R,P)},reset(){let dt=new Map(S.blockers);dt.set(ye,oa),xe({blockers:dt})}});return}return await zt(q,W,{submission:V,pendingError:X,preventScrollReset:ee,replace:P&&P.replace,enableViewTransition:P&&P.viewTransition,flushSync:ue})}function Fr(){if(Hn(),xe({revalidation:"loading"}),S.navigation.state!=="submitting"){if(S.navigation.state==="idle"){zt(S.historyAction,S.location,{startUninterruptedRevalidation:!0});return}zt(b||S.historyAction,S.navigation.location,{overrideNavigation:S.navigation,enableViewTransition:I===!0})}}async function zt(R,P,D){M&&M.abort(),M=null,b=R,$=(D&&D.startUninterruptedRevalidation)===!0,Kn(S.location,S.matches),A=(D&&D.preventScrollReset)===!0,I=(D&&D.enableViewTransition)===!0;let N=a||s,V=D&&D.overrideNavigation,X=D!=null&&D.initialHydration&&S.matches&&S.matches.length>0&&!w?S.matches:Lo(N,P,l),ie=(D&&D.flushSync)===!0;if(X&&S.initialized&&!oe&&UM(S.location,P)&&!(D&&D.submission&&On(D.submission.formMethod))){ct(P,{matches:X},{flushSync:ie});return}let W=ot(X,N,P.pathname);if(W.active&&W.matches&&(X=W.matches),!X){let{error:Ae,notFoundMatches:Se,route:Be}=Ks(P.pathname);ct(P,{matches:Se,loaderData:{},errors:{[Be.id]:Ae}},{flushSync:ie});return}M=new AbortController;let J=Mo(e.history,P,M.signal,D&&D.submission),q;if(D&&D.pendingError)q=[Fi(X).route.id,{type:ke.error,error:D.pendingError}];else if(D&&D.submission&&On(D.submission.formMethod)){let Ae=await Ll(J,P,D.submission,X,W.active,{replace:D.replace,flushSync:ie});if(Ae.shortCircuited)return;if(Ae.pendingActionResult){let[Se,Be]=Ae.pendingActionResult;if(en(Be)&&Rc(Be.error)&&Be.error.status===404){M=null,ct(P,{matches:Ae.matches,loaderData:{},errors:{[Se]:Be.error}});return}}X=Ae.matches||X,q=Ae.pendingActionResult,V=pd(P,D.submission),ie=!1,W.active=!1,J=Mo(e.history,J.url,J.signal)}let{shortCircuited:ee,matches:ue,loaderData:ye,errors:dt}=await _l(J,P,X,W.active,V,D&&D.submission,D&&D.fetcherSubmission,D&&D.replace,D&&D.initialHydration===!0,ie,q);ee||(M=null,ct(P,Ie({matches:ue||X},$v(q),{loaderData:ye,errors:dt})))}async function Ll(R,P,D,N,V,X){X===void 0&&(X={}),Hn();let ie=GM(P,D);if(xe({navigation:ie},{flushSync:X.flushSync===!0}),V){let q=await Dt(N,P.pathname,R.signal);if(q.type==="aborted")return{shortCircuited:!0};if(q.type==="error"){let ee=Fi(q.partialMatches).route.id;return{matches:q.partialMatches,pendingActionResult:[ee,{type:ke.error,error:q.error}]}}else if(q.matches)N=q.matches;else{let{notFoundMatches:ee,error:ue,route:ye}=Ks(P.pathname);return{matches:ee,pendingActionResult:[ye.id,{type:ke.error,error:ue}]}}}let W,J=ga(N,P);if(!J.route.action&&!J.route.lazy)W={type:ke.error,error:$t(405,{method:R.method,pathname:P.pathname,routeId:J.route.id})};else if(W=(await Mi("action",S,R,[J],N,null))[J.route.id],R.signal.aborted)return{shortCircuited:!0};if($i(W)){let q;return X&&X.replace!=null?q=X.replace:q=Vv(W.response.headers.get("Location"),new URL(R.url),l,e.history)===S.location.pathname+S.location.search,await $n(R,W,!0,{submission:D,replace:q}),{shortCircuited:!0}}if(ai(W))throw $t(400,{type:"defer-action"});if(en(W)){let q=Fi(N,J.route.id);return(X&&X.replace)!==!0&&(b=tt.Push),{matches:N,pendingActionResult:[q.route.id,W]}}return{matches:N,pendingActionResult:[J.route.id,W]}}async function _l(R,P,D,N,V,X,ie,W,J,q,ee){let ue=V||pd(P,X),ye=X||ie||Kv(ue),dt=!$&&(!f.v7_partialHydration||!J);if(N){if(dt){let Ue=xo(ee);xe(Ie({navigation:ue},Ue!==void 0?{actionData:Ue}:{}),{flushSync:q})}let we=await Dt(D,P.pathname,R.signal);if(we.type==="aborted")return{shortCircuited:!0};if(we.type==="error"){let Ue=Fi(we.partialMatches).route.id;return{matches:we.partialMatches,loaderData:{},errors:{[Ue]:we.error}}}else if(we.matches)D=we.matches;else{let{error:Ue,notFoundMatches:Ro,route:Qs}=Ks(P.pathname);return{matches:Ro,loaderData:{},errors:{[Qs.id]:Ue}}}}let Ae=a||s,[Se,Be]=Nv(e.history,S,D,ye,P,f.v7_partialHydration&&J===!0,f.v7_skipActionErrorRevalidation,oe,U,se,ce,Te,ne,Ae,l,ee);if(qe(we=>!(D&&D.some(Ue=>Ue.route.id===we))||Se&&Se.some(Ue=>Ue.route.id===we)),_=++j,Se.length===0&&Be.length===0){let we=Co();return ct(P,Ie({matches:D,loaderData:{},errors:ee&&en(ee[1])?{[ee[0]]:ee[1].error}:null},$v(ee),we?{fetchers:new Map(S.fetchers)}:{}),{flushSync:q}),{shortCircuited:!0}}if(dt){let we={};if(!N){we.navigation=ue;let Ue=xo(ee);Ue!==void 0&&(we.actionData=Ue)}Be.length>0&&(we.fetchers=Un(Be)),xe(we,{flushSync:q})}Be.forEach(we=>{Wn(we.key),we.controller&&O.set(we.key,we.controller)});let ko=()=>Be.forEach(we=>Wn(we.key));M&&M.signal.addEventListener("abort",ko);let{loaderResults:qs,fetcherResults:cr}=await Nl(S,D,Se,Be,R);if(R.signal.aborted)return{shortCircuited:!0};M&&M.signal.removeEventListener("abort",ko),Be.forEach(we=>O.delete(we.key));let qn=lu(qs);if(qn)return await $n(R,qn.result,!0,{replace:W}),{shortCircuited:!0};if(qn=lu(cr),qn)return ne.add(qn.key),await $n(R,qn.result,!0,{replace:W}),{shortCircuited:!0};let{loaderData:_f,errors:Gs}=Bv(S,D,qs,ee,Be,cr,le);le.forEach((we,Ue)=>{we.subscribe(Ro=>{(Ro||we.done)&&le.delete(Ue)})}),f.v7_partialHydration&&J&&S.errors&&(Gs=Ie({},S.errors,Gs));let Ai=Co(),zl=Hs(_),Bl=Ai||zl||Be.length>0;return Ie({matches:D,loaderData:_f,errors:Gs},Bl?{fetchers:new Map(S.fetchers)}:{})}function xo(R){if(R&&!en(R[1]))return{[R[0]]:R[1].data};if(S.actionData)return Object.keys(S.actionData).length===0?null:S.actionData}function Un(R){return R.forEach(P=>{let D=S.fetchers.get(P.key),N=sa(void 0,D?D.data:void 0);S.fetchers.set(P.key,N)}),new Map(S.fetchers)}function So(R,P,D,N){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");Wn(R);let V=(N&&N.flushSync)===!0,X=a||s,ie=rp(S.location,S.matches,l,f.v7_prependBasename,D,f.v7_relativeSplatPath,P,N==null?void 0:N.relative),W=Lo(X,ie,l),J=ot(W,X,ie);if(J.active&&J.matches&&(W=J.matches),!W){Pt(R,P,$t(404,{pathname:ie}),{flushSync:V});return}let{path:q,submission:ee,error:ue}=_v(f.v7_normalizeFormMethod,!0,ie,N);if(ue){Pt(R,P,ue,{flushSync:V});return}let ye=ga(W,q),dt=(N&&N.preventScrollReset)===!0;if(ee&&On(ee.formMethod)){bo(R,P,q,ye,W,J.active,V,dt,ee);return}Te.set(R,{routeId:P,path:q}),Il(R,P,q,ye,W,J.active,V,dt,ee)}async function bo(R,P,D,N,V,X,ie,W,J){Hn(),Te.delete(R);function q(Ge){if(!Ge.route.action&&!Ge.route.lazy){let To=$t(405,{method:J.formMethod,pathname:D,routeId:P});return Pt(R,P,To,{flushSync:ie}),!0}return!1}if(!X&&q(N))return;let ee=S.fetchers.get(R);Tt(R,QM(J,ee),{flushSync:ie});let ue=new AbortController,ye=Mo(e.history,D,ue.signal,J);if(X){let Ge=await Dt(V,new URL(ye.url).pathname,ye.signal,R);if(Ge.type==="aborted")return;if(Ge.type==="error"){Pt(R,P,Ge.error,{flushSync:ie});return}else if(Ge.matches){if(V=Ge.matches,N=ga(V,D),q(N))return}else{Pt(R,P,$t(404,{pathname:D}),{flushSync:ie});return}}O.set(R,ue);let dt=j,Se=(await Mi("action",S,ye,[N],V,R))[N.route.id];if(ye.signal.aborted){O.get(R)===ue&&O.delete(R);return}if(f.v7_fetcherPersist&&ce.has(R)){if($i(Se)||en(Se)){Tt(R,$r(void 0));return}}else{if($i(Se))if(O.delete(R),_>dt){Tt(R,$r(void 0));return}else return ne.add(R),Tt(R,sa(J)),$n(ye,Se,!1,{fetcherSubmission:J,preventScrollReset:W});if(en(Se)){Pt(R,P,Se.error);return}}if(ai(Se))throw $t(400,{type:"defer-action"});let Be=S.navigation.location||S.location,ko=Mo(e.history,Be,ue.signal),qs=a||s,cr=S.navigation.state!=="idle"?Lo(qs,S.navigation.location,l):S.matches;De(cr,"Didn't find any matches after fetcher action");let qn=++j;re.set(R,qn);let _f=sa(J,Se.data);S.fetchers.set(R,_f);let[Gs,Ai]=Nv(e.history,S,cr,J,Be,!1,f.v7_skipActionErrorRevalidation,oe,U,se,ce,Te,ne,qs,l,[N.route.id,Se]);Ai.filter(Ge=>Ge.key!==R).forEach(Ge=>{let To=Ge.key,Hy=S.fetchers.get(To),Rk=sa(void 0,Hy?Hy.data:void 0);S.fetchers.set(To,Rk),Wn(To),Ge.controller&&O.set(To,Ge.controller)}),xe({fetchers:new Map(S.fetchers)});let zl=()=>Ai.forEach(Ge=>Wn(Ge.key));ue.signal.addEventListener("abort",zl);let{loaderResults:Bl,fetcherResults:we}=await Nl(S,cr,Gs,Ai,ko);if(ue.signal.aborted)return;ue.signal.removeEventListener("abort",zl),re.delete(R),O.delete(R),Ai.forEach(Ge=>O.delete(Ge.key));let Ue=lu(Bl);if(Ue)return $n(ko,Ue.result,!1,{preventScrollReset:W});if(Ue=lu(we),Ue)return ne.add(Ue.key),$n(ko,Ue.result,!1,{preventScrollReset:W});let{loaderData:Ro,errors:Qs}=Bv(S,cr,Bl,void 0,Ai,we,le);if(S.fetchers.has(R)){let Ge=$r(Se.data);S.fetchers.set(R,Ge)}Hs(qn),S.navigation.state==="loading"&&qn>_?(De(b,"Expected pending action"),M&&M.abort(),ct(S.navigation.location,{matches:cr,loaderData:Ro,errors:Qs,fetchers:new Map(S.fetchers)})):(xe({errors:Qs,loaderData:Uv(S.loaderData,Ro,cr,Qs),fetchers:new Map(S.fetchers)}),oe=!1)}async function Il(R,P,D,N,V,X,ie,W,J){let q=S.fetchers.get(R);Tt(R,sa(J,q?q.data:void 0),{flushSync:ie});let ee=new AbortController,ue=Mo(e.history,D,ee.signal);if(X){let Se=await Dt(V,new URL(ue.url).pathname,ue.signal,R);if(Se.type==="aborted")return;if(Se.type==="error"){Pt(R,P,Se.error,{flushSync:ie});return}else if(Se.matches)V=Se.matches,N=ga(V,D);else{Pt(R,P,$t(404,{pathname:D}),{flushSync:ie});return}}O.set(R,ee);let ye=j,Ae=(await Mi("loader",S,ue,[N],V,R))[N.route.id];if(ai(Ae)&&(Ae=await Qm(Ae,ue.signal,!0)||Ae),O.get(R)===ee&&O.delete(R),!ue.signal.aborted){if(ce.has(R)){Tt(R,$r(void 0));return}if($i(Ae))if(_>ye){Tt(R,$r(void 0));return}else{ne.add(R),await $n(ue,Ae,!1,{preventScrollReset:W});return}if(en(Ae)){Pt(R,P,Ae.error);return}De(!ai(Ae),"Unhandled fetcher deferred data"),Tt(R,$r(Ae.data))}}async function $n(R,P,D,N){let{submission:V,fetcherSubmission:X,preventScrollReset:ie,replace:W}=N===void 0?{}:N;P.response.headers.has("X-Remix-Revalidate")&&(oe=!0);let J=P.response.headers.get("Location");De(J,"Expected a Location header on the redirect Response"),J=Vv(J,new URL(R.url),l,e.history);let q=el(S.location,J,{_isRedirect:!0});if(n){let Se=!1;if(P.response.headers.has("X-Remix-Reload-Document"))Se=!0;else if(Gm.test(J)){const Be=e.history.createURL(J);Se=Be.origin!==t.location.origin||yf(Be.pathname,l)==null}if(Se){W?t.location.replace(J):t.location.assign(J);return}}M=null;let ee=W===!0||P.response.headers.has("X-Remix-Replace")?tt.Replace:tt.Push,{formMethod:ue,formAction:ye,formEncType:dt}=S.navigation;!V&&!X&&ue&&ye&&dt&&(V=Kv(S.navigation));let Ae=V||X;if(AM.has(P.response.status)&&Ae&&On(Ae.formMethod))await zt(ee,q,{submission:Ie({},Ae,{formAction:J}),preventScrollReset:ie||A,enableViewTransition:D?I:void 0});else{let Se=pd(q,V);await zt(ee,q,{overrideNavigation:Se,fetcherSubmission:X,preventScrollReset:ie||A,enableViewTransition:D?I:void 0})}}async function Mi(R,P,D,N,V,X){let ie,W={};try{ie=await FM(u,R,P,D,N,V,X,o,i)}catch(J){return N.forEach(q=>{W[q.route.id]={type:ke.error,error:J}}),W}for(let[J,q]of Object.entries(ie))if($M(q)){let ee=q.result;W[J]={type:ke.redirect,response:zM(ee,D,J,V,l,f.v7_relativeSplatPath)}}else W[J]=await VM(q);return W}async function Nl(R,P,D,N,V){let X=R.matches,ie=Mi("loader",R,V,D,P,null),W=Promise.all(N.map(async ee=>{if(ee.matches&&ee.match&&ee.controller){let ye=(await Mi("loader",R,Mo(e.history,ee.path,ee.controller.signal),[ee.match],ee.matches,ee.key))[ee.match.route.id];return{[ee.key]:ye}}else return Promise.resolve({[ee.key]:{type:ke.error,error:$t(404,{pathname:ee.path})}})})),J=await ie,q=(await W).reduce((ee,ue)=>Object.assign(ee,ue),{});return await Promise.all([KM(P,J,V.signal,X,R.loaderData),qM(P,q,N)]),{loaderResults:J,fetcherResults:q}}function Hn(){oe=!0,U.push(...qe()),Te.forEach((R,P)=>{O.has(P)&&se.add(P),Wn(P)})}function Tt(R,P,D){D===void 0&&(D={}),S.fetchers.set(R,P),xe({fetchers:new Map(S.fetchers)},{flushSync:(D&&D.flushSync)===!0})}function Pt(R,P,D,N){N===void 0&&(N={});let V=Fi(S.matches,P);Zt(R),xe({errors:{[V.route.id]:D},fetchers:new Map(S.fetchers)},{flushSync:(N&&N.flushSync)===!0})}function $s(R){return be.set(R,(be.get(R)||0)+1),ce.has(R)&&ce.delete(R),S.fetchers.get(R)||DM}function Zt(R){let P=S.fetchers.get(R);O.has(R)&&!(P&&P.state==="loading"&&re.has(R))&&Wn(R),Te.delete(R),re.delete(R),ne.delete(R),f.v7_fetcherPersist&&ce.delete(R),se.delete(R),S.fetchers.delete(R)}function Fl(R){let P=(be.get(R)||0)-1;P<=0?(be.delete(R),ce.add(R),f.v7_fetcherPersist||Zt(R)):be.set(R,P),xe({fetchers:new Map(S.fetchers)})}function Wn(R){let P=O.get(R);P&&(P.abort(),O.delete(R))}function jl(R){for(let P of R){let D=$s(P),N=$r(D.data);S.fetchers.set(P,N)}}function Co(){let R=[],P=!1;for(let D of ne){let N=S.fetchers.get(D);De(N,"Expected fetcher: "+D),N.state==="loading"&&(ne.delete(D),R.push(D),P=!0)}return jl(R),P}function Hs(R){let P=[];for(let[D,N]of re)if(N<R){let V=S.fetchers.get(D);De(V,"Expected fetcher: "+D),V.state==="loading"&&(Wn(D),re.delete(D),P.push(D))}return jl(P),P.length>0}function Lf(R,P){let D=S.blockers.get(R)||oa;return ze.get(R)!==P&&ze.set(R,P),D}function Ws(R){S.blockers.delete(R),ze.delete(R)}function Eo(R,P){let D=S.blockers.get(R)||oa;De(D.state==="unblocked"&&P.state==="blocked"||D.state==="blocked"&&P.state==="blocked"||D.state==="blocked"&&P.state==="proceeding"||D.state==="blocked"&&P.state==="unblocked"||D.state==="proceeding"&&P.state==="unblocked","Invalid blocker state transition: "+D.state+" -> "+P.state);let N=new Map(S.blockers);N.set(R,P),xe({blockers:N})}function Vl(R){let{currentLocation:P,nextLocation:D,historyAction:N}=R;if(ze.size===0)return;ze.size>1&&po(!1,"A router only supports one blocker at a time");let V=Array.from(ze.entries()),[X,ie]=V[V.length-1],W=S.blockers.get(X);if(!(W&&W.state==="proceeding")&&ie({currentLocation:P,nextLocation:D,historyAction:N}))return X}function Ks(R){let P=$t(404,{pathname:R}),D=a||s,{matches:N,route:V}=Hv(D);return qe(),{notFoundMatches:N,route:V,error:P}}function qe(R){let P=[];return le.forEach((D,N)=>{(!R||R(N))&&(D.cancel(),P.push(N),le.delete(N))}),P}function Mt(R,P,D){if(p=R,v=P,m=D||null,!y&&S.navigation===hd){y=!0;let N=At(S.location,S.matches);N!=null&&xe({restoreScrollPosition:N})}return()=>{p=null,v=null,m=null}}function xt(R,P){return m&&m(R,P.map(N=>oM(N,S.loaderData)))||R.key}function Kn(R,P){if(p&&v){let D=xt(R,P);p[D]=v()}}function At(R,P){if(p){let D=xt(R,P),N=p[D];if(typeof N=="number")return N}return null}function ot(R,P,D){if(c)if(R){if(Object.keys(R[0].params).length>0)return{active:!0,matches:Vu(P,D,l,!0)}}else return{active:!0,matches:Vu(P,D,l,!0)||[]};return{active:!1,matches:null}}async function Dt(R,P,D,N){if(!c)return{type:"success",matches:R};let V=R;for(;;){let X=a==null,ie=a||s,W=o;try{await c({signal:D,path:P,matches:V,fetcherKey:N,patch:(ee,ue)=>{D.aborted||jv(ee,ue,ie,W,i)}})}catch(ee){return{type:"error",error:ee,partialMatches:V}}finally{X&&!D.aborted&&(s=[...s])}if(D.aborted)return{type:"aborted"};let J=Lo(ie,P,l);if(J)return{type:"success",matches:J};let q=Vu(ie,P,l,!0);if(!q||V.length===q.length&&V.every((ee,ue)=>ee.route.id===q[ue].route.id))return{type:"success",matches:null};V=q}}function jr(R){o={},a=kc(R,i,void 0,o)}function Ze(R,P){let D=a==null;jv(R,P,a||s,o,i),D&&(s=[...s],xe({}))}return T={get basename(){return l},get future(){return f},get state(){return S},get routes(){return s},get window(){return t},initialize:Ce,subscribe:cn,enableScrollRestoration:Mt,navigate:ft,fetch:So,revalidate:Fr,createHref:R=>e.history.createHref(R),encodeLocation:R=>e.history.encodeLocation(R),getFetcher:$s,deleteFetcher:Fl,dispose:ge,getBlocker:Lf,deleteBlocker:Ws,patchRoutes:Ze,_internalFetchControllers:O,_internalActiveDeferreds:le,_internalSetRoutes:jr},T}function LM(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function rp(e,t,n,r,i,o,s,a){let l,u;if(s){l=[];for(let f of t)if(l.push(f),f.route.id===s){u=f;break}}else l=t,u=t[t.length-1];let c=bM(i||".",SM(l,o),yf(e.pathname,n)||e.pathname,a==="path");if(i==null&&(c.search=e.search,c.hash=e.hash),(i==null||i===""||i===".")&&u){let f=Xm(c.search);if(u.route.index&&!f)c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index";else if(!u.route.index&&f){let d=new URLSearchParams(c.search),h=d.getAll("index");d.delete("index"),h.filter(m=>m).forEach(m=>d.append("index",m));let p=d.toString();c.search=p?"?"+p:""}}return r&&n!=="/"&&(c.pathname=c.pathname==="/"?n:Pa([n,c.pathname])),El(c)}function _v(e,t,n,r){if(!r||!LM(r))return{path:n};if(r.formMethod&&!WM(r.formMethod))return{path:n,error:$t(405,{method:r.formMethod})};let i=()=>({path:n,error:$t(400,{type:"invalid-body"})}),o=r.formMethod||"get",s=e?o.toUpperCase():o.toLowerCase(),a=cb(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!On(s))return i();let d=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((h,p)=>{let[m,v]=p;return""+h+m+"="+v+`
|
|
380
|
-
`},""):String(r.body);return{path:n,submission:{formMethod:s,formAction:a,formEncType:r.formEncType,formData:void 0,json:void 0,text:d}}}else if(r.formEncType==="application/json"){if(!On(s))return i();try{let d=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:s,formAction:a,formEncType:r.formEncType,formData:void 0,json:d,text:void 0}}}catch{return i()}}}De(typeof FormData=="function","FormData is not available in this environment");let l,u;if(r.formData)l=op(r.formData),u=r.formData;else if(r.body instanceof FormData)l=op(r.body),u=r.body;else if(r.body instanceof URLSearchParams)l=r.body,u=zv(l);else if(r.body==null)l=new URLSearchParams,u=new FormData;else try{l=new URLSearchParams(r.body),u=zv(l)}catch{return i()}let c={formMethod:s,formAction:a,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(On(c.formMethod))return{path:n,submission:c};let f=vo(n);return t&&f.search&&Xm(f.search)&&l.append("index",""),f.search="?"+l,{path:El(f),submission:c}}function Iv(e,t,n){n===void 0&&(n=!1);let r=e.findIndex(i=>i.route.id===t);return r>=0?e.slice(0,n?r+1:r):e}function Nv(e,t,n,r,i,o,s,a,l,u,c,f,d,h,p,m){let v=m?en(m[1])?m[1].error:m[1].data:void 0,y=e.createURL(t.location),g=e.createURL(i),w=n;o&&t.errors?w=Iv(n,Object.keys(t.errors)[0],!0):m&&en(m[1])&&(w=Iv(n,m[0]));let x=m?m[1].statusCode:void 0,E=s&&x&&x>=400,T=w.filter((b,A)=>{let{route:M}=b;if(M.lazy)return!0;if(M.loader==null)return!1;if(o)return ip(M,t.loaderData,t.errors);if(_M(t.loaderData,t.matches[A],b)||l.some(H=>H===b.route.id))return!0;let I=t.matches[A],z=b;return Fv(b,Ie({currentUrl:y,currentParams:I.params,nextUrl:g,nextParams:z.params},r,{actionResult:v,actionStatus:x,defaultShouldRevalidate:E?!1:a||y.pathname+y.search===g.pathname+g.search||y.search!==g.search||lb(I,z)}))}),S=[];return f.forEach((b,A)=>{if(o||!n.some($=>$.route.id===b.routeId)||c.has(A))return;let M=Lo(h,b.path,p);if(!M){S.push({key:A,routeId:b.routeId,path:b.path,matches:null,match:null,controller:null});return}let I=t.fetchers.get(A),z=ga(M,b.path),H=!1;d.has(A)?H=!1:u.has(A)?(u.delete(A),H=!0):I&&I.state!=="idle"&&I.data===void 0?H=a:H=Fv(z,Ie({currentUrl:y,currentParams:t.matches[t.matches.length-1].params,nextUrl:g,nextParams:n[n.length-1].params},r,{actionResult:v,actionStatus:x,defaultShouldRevalidate:E?!1:a})),H&&S.push({key:A,routeId:b.routeId,path:b.path,matches:M,match:z,controller:new AbortController})}),[T,S]}function ip(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=t!=null&&t[e.id]!==void 0,i=n!=null&&n[e.id]!==void 0;return!r&&i?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!r&&!i}function _M(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function lb(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Fv(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function jv(e,t,n,r,i){var o;let s;if(e){let u=r[e];De(u,"No route found to patch children into: routeId = "+e),u.children||(u.children=[]),s=u.children}else s=n;let a=t.filter(u=>!s.some(c=>ub(u,c))),l=kc(a,i,[e||"_","patch",String(((o=s)==null?void 0:o.length)||"0")],r);s.push(...l)}function ub(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((n,r)=>{var i;return(i=t.children)==null?void 0:i.some(o=>ub(n,o))}):!1}async function IM(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];De(i,"No route found in manifest");let o={};for(let s in r){let l=i[s]!==void 0&&s!=="hasErrorBoundary";po(!l,'Route "'+i.id+'" has a static property "'+s+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+s+'" will be ignored.')),!l&&!rM.has(s)&&(o[s]=r[s])}Object.assign(i,o),Object.assign(i,Ie({},t(i),{lazy:void 0}))}async function NM(e){let{matches:t}=e,n=t.filter(i=>i.shouldLoad);return(await Promise.all(n.map(i=>i.resolve()))).reduce((i,o,s)=>Object.assign(i,{[n[s].route.id]:o}),{})}async function FM(e,t,n,r,i,o,s,a,l,u){let c=o.map(h=>h.route.lazy?IM(h.route,l,a):void 0),f=o.map((h,p)=>{let m=c[p],v=i.some(g=>g.route.id===h.route.id);return Ie({},h,{shouldLoad:v,resolve:async g=>(g&&r.method==="GET"&&(h.route.lazy||h.route.loader)&&(v=!0),v?jM(t,r,h,m,g,u):Promise.resolve({type:ke.data,result:void 0}))})}),d=await e({matches:f,request:r,params:o[0].params,fetcherKey:s,context:u});try{await Promise.all(c)}catch{}return d}async function jM(e,t,n,r,i,o){let s,a,l=u=>{let c,f=new Promise((p,m)=>c=m);a=()=>c(),t.signal.addEventListener("abort",a);let d=p=>typeof u!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):u({request:t,params:n.params,context:o},...p!==void 0?[p]:[]),h=(async()=>{try{return{type:"data",result:await(i?i(m=>d(m)):d())}}catch(p){return{type:"error",result:p}}})();return Promise.race([h,f])};try{let u=n.route[e];if(r)if(u){let c,[f]=await Promise.all([l(u).catch(d=>{c=d}),r]);if(c!==void 0)throw c;s=f}else if(await r,u=n.route[e],u)s=await l(u);else if(e==="action"){let c=new URL(t.url),f=c.pathname+c.search;throw $t(405,{method:t.method,pathname:f,routeId:n.route.id})}else return{type:ke.data,result:void 0};else if(u)s=await l(u);else{let c=new URL(t.url),f=c.pathname+c.search;throw $t(404,{pathname:f})}De(s.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(u){return{type:ke.error,result:u}}finally{a&&t.signal.removeEventListener("abort",a)}return s}async function VM(e){let{result:t,type:n}=e;if(fb(t)){let f;try{let d=t.headers.get("Content-Type");d&&/\bapplication\/json\b/.test(d)?t.body==null?f=null:f=await t.json():f=await t.text()}catch(d){return{type:ke.error,error:d}}return n===ke.error?{type:ke.error,error:new np(t.status,t.statusText,f),statusCode:t.status,headers:t.headers}:{type:ke.data,data:f,statusCode:t.status,headers:t.headers}}if(n===ke.error){if(Wv(t)){var r,i;if(t.data instanceof Error){var o,s;return{type:ke.error,error:t.data,statusCode:(o=t.init)==null?void 0:o.status,headers:(s=t.init)!=null&&s.headers?new Headers(t.init.headers):void 0}}return{type:ke.error,error:new np(((r=t.init)==null?void 0:r.status)||500,void 0,t.data),statusCode:Rc(t)?t.status:void 0,headers:(i=t.init)!=null&&i.headers?new Headers(t.init.headers):void 0}}return{type:ke.error,error:t,statusCode:Rc(t)?t.status:void 0}}if(HM(t)){var a,l;return{type:ke.deferred,deferredData:t,statusCode:(a=t.init)==null?void 0:a.status,headers:((l=t.init)==null?void 0:l.headers)&&new Headers(t.init.headers)}}if(Wv(t)){var u,c;return{type:ke.data,data:t.data,statusCode:(u=t.init)==null?void 0:u.status,headers:(c=t.init)!=null&&c.headers?new Headers(t.init.headers):void 0}}return{type:ke.data,data:t}}function zM(e,t,n,r,i,o){let s=e.headers.get("Location");if(De(s,"Redirects returned/thrown from loaders/actions must have a Location header"),!Gm.test(s)){let a=r.slice(0,r.findIndex(l=>l.route.id===n)+1);s=rp(new URL(t.url),a,i,!0,s,o),e.headers.set("Location",s)}return e}function Vv(e,t,n,r){let i=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(Gm.test(e)){let o=e,s=o.startsWith("//")?new URL(t.protocol+o):new URL(o);if(i.includes(s.protocol))throw new Error("Invalid redirect location");let a=yf(s.pathname,n)!=null;if(s.origin===t.origin&&a)return s.pathname+s.search+s.hash}try{let o=r.createURL(e);if(i.includes(o.protocol))throw new Error("Invalid redirect location")}catch{}return e}function Mo(e,t,n,r){let i=e.createURL(cb(t)).toString(),o={signal:n};if(r&&On(r.formMethod)){let{formMethod:s,formEncType:a}=r;o.method=s.toUpperCase(),a==="application/json"?(o.headers=new Headers({"Content-Type":a}),o.body=JSON.stringify(r.json)):a==="text/plain"?o.body=r.text:a==="application/x-www-form-urlencoded"&&r.formData?o.body=op(r.formData):o.body=r.formData}return new Request(i,o)}function op(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function zv(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function BM(e,t,n,r,i){let o={},s=null,a,l=!1,u={},c=n&&en(n[1])?n[1].error:void 0;return e.forEach(f=>{if(!(f.route.id in t))return;let d=f.route.id,h=t[d];if(De(!$i(h),"Cannot handle redirect results in processLoaderData"),en(h)){let p=h.error;c!==void 0&&(p=c,c=void 0),s=s||{};{let m=Fi(e,d);s[m.route.id]==null&&(s[m.route.id]=p)}o[d]=void 0,l||(l=!0,a=Rc(h.error)?h.error.status:500),h.headers&&(u[d]=h.headers)}else ai(h)?(r.set(d,h.deferredData),o[d]=h.deferredData.data,h.statusCode!=null&&h.statusCode!==200&&!l&&(a=h.statusCode),h.headers&&(u[d]=h.headers)):(o[d]=h.data,h.statusCode&&h.statusCode!==200&&!l&&(a=h.statusCode),h.headers&&(u[d]=h.headers))}),c!==void 0&&n&&(s={[n[0]]:c},o[n[0]]=void 0),{loaderData:o,errors:s,statusCode:a||200,loaderHeaders:u}}function Bv(e,t,n,r,i,o,s){let{loaderData:a,errors:l}=BM(t,n,r,s);return i.forEach(u=>{let{key:c,match:f,controller:d}=u,h=o[c];if(De(h,"Did not find corresponding fetcher result"),!(d&&d.signal.aborted))if(en(h)){let p=Fi(e.matches,f==null?void 0:f.route.id);l&&l[p.route.id]||(l=Ie({},l,{[p.route.id]:h.error})),e.fetchers.delete(c)}else if($i(h))De(!1,"Unhandled fetcher revalidation redirect");else if(ai(h))De(!1,"Unhandled fetcher deferred data");else{let p=$r(h.data);e.fetchers.set(c,p)}}),{loaderData:a,errors:l}}function Uv(e,t,n,r){let i=Ie({},t);for(let o of n){let s=o.route.id;if(t.hasOwnProperty(s)?t[s]!==void 0&&(i[s]=t[s]):e[s]!==void 0&&o.route.loader&&(i[s]=e[s]),r&&r.hasOwnProperty(s))break}return i}function $v(e){return e?en(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Fi(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function Hv(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function $t(e,t){let{pathname:n,routeId:r,method:i,type:o,message:s}=t===void 0?{}:t,a="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(a="Bad Request",i&&n&&r?l="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":o==="defer-action"?l="defer() is not supported in actions":o==="invalid-body"&&(l="Unable to encode submission body")):e===403?(a="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):e===404?(a="Not Found",l='No route matches URL "'+n+'"'):e===405&&(a="Method Not Allowed",i&&n&&r?l="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(l='Invalid request method "'+i.toUpperCase()+'"')),new np(e||500,a,new Error(l),!0)}function lu(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,i]=t[n];if($i(i))return{key:r,result:i}}}function cb(e){let t=typeof e=="string"?vo(e):e;return El(Ie({},t,{hash:""}))}function UM(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function $M(e){return fb(e.result)&&MM.has(e.result.status)}function ai(e){return e.type===ke.deferred}function en(e){return e.type===ke.error}function $i(e){return(e&&e.type)===ke.redirect}function Wv(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function HM(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function fb(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function WM(e){return PM.has(e.toLowerCase())}function On(e){return RM.has(e.toLowerCase())}async function KM(e,t,n,r,i){let o=Object.entries(t);for(let s=0;s<o.length;s++){let[a,l]=o[s],u=e.find(d=>(d==null?void 0:d.route.id)===a);if(!u)continue;let c=r.find(d=>d.route.id===u.route.id),f=c!=null&&!lb(c,u)&&(i&&i[u.route.id])!==void 0;ai(l)&&f&&await Qm(l,n,!1).then(d=>{d&&(t[a]=d)})}}async function qM(e,t,n){for(let r=0;r<n.length;r++){let{key:i,routeId:o,controller:s}=n[r],a=t[i];e.find(u=>(u==null?void 0:u.route.id)===o)&&ai(a)&&(De(s,"Expected an AbortController for revalidating fetcher deferred result"),await Qm(a,s.signal,!0).then(u=>{u&&(t[i]=u)}))}}async function Qm(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:ke.data,data:e.deferredData.unwrappedData}}catch(i){return{type:ke.error,error:i}}return{type:ke.data,data:e.deferredData.data}}}function Xm(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function ga(e,t){let n=typeof t=="string"?vo(t).search:t.search;if(e[e.length-1].route.index&&Xm(n||""))return e[e.length-1];let r=ob(e);return r[r.length-1]}function Kv(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:o,json:s}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:o,json:void 0,text:void 0};if(s!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:s,text:void 0}}}function pd(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function GM(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function sa(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function QM(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function $r(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function XM(e,t){try{let n=e.sessionStorage.getItem(ab);if(n){let r=JSON.parse(n);for(let[i,o]of Object.entries(r||{}))o&&Array.isArray(o)&&t.set(i,new Set(o||[]))}}catch{}}function YM(e,t){if(t.size>0){let n={};for(let[r,i]of t)n[r]=[...i];try{e.sessionStorage.setItem(ab,JSON.stringify(n))}catch(r){po(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}function db(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=db(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ZM(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=db(e))&&(r&&(r+=" "),r+=t);return r}const JM=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},eA=(e,t)=>({classGroupId:e,validator:t}),hb=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Tc="-",qv=[],tA="arbitrary..",nA=e=>{const t=iA(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return rA(s);const a=s.split(Tc),l=a[0]===""&&a.length>1?1:0;return pb(a,l,t)},getConflictingClassGroupIds:(s,a)=>{if(a){const l=r[s],u=n[s];return l?u?JM(u,l):l:u||qv}return n[s]||qv}}},pb=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],o=n.nextPart.get(i);if(o){const u=pb(e,t+1,o);if(u)return u}const s=n.validators;if(s===null)return;const a=t===0?e.join(Tc):e.slice(t).join(Tc),l=s.length;for(let u=0;u<l;u++){const c=s[u];if(c.validator(a))return c.classGroupId}},rA=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?tA+r:void 0})(),iA=e=>{const{theme:t,classGroups:n}=e;return oA(n,t)},oA=(e,t)=>{const n=hb();for(const r in e){const i=e[r];Ym(i,n,r,t)}return n},Ym=(e,t,n,r)=>{const i=e.length;for(let o=0;o<i;o++){const s=e[o];sA(s,t,n,r)}},sA=(e,t,n,r)=>{if(typeof e=="string"){aA(e,t,n);return}if(typeof e=="function"){lA(e,t,n,r);return}uA(e,t,n,r)},aA=(e,t,n)=>{const r=e===""?t:mb(t,e);r.classGroupId=n},lA=(e,t,n,r)=>{if(cA(e)){Ym(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(eA(n,e))},uA=(e,t,n,r)=>{const i=Object.entries(e),o=i.length;for(let s=0;s<o;s++){const[a,l]=i[s];Ym(l,mb(t,a),n,r)}},mb=(e,t)=>{let n=e;const r=t.split(Tc),i=r.length;for(let o=0;o<i;o++){const s=r[o];let a=n.nextPart.get(s);a||(a=hb(),n.nextPart.set(s,a)),n=a}return n},cA=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,fA=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const i=(o,s)=>{n[o]=s,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(o){let s=n[o];if(s!==void 0)return s;if((s=r[o])!==void 0)return i(o,s),s},set(o,s){o in n?n[o]=s:i(o,s)}}},sp="!",Gv=":",dA=[],Qv=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),hA=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const o=[];let s=0,a=0,l=0,u;const c=i.length;for(let m=0;m<c;m++){const v=i[m];if(s===0&&a===0){if(v===Gv){o.push(i.slice(l,m)),l=m+1;continue}if(v==="/"){u=m;continue}}v==="["?s++:v==="]"?s--:v==="("?a++:v===")"&&a--}const f=o.length===0?i:i.slice(l);let d=f,h=!1;f.endsWith(sp)?(d=f.slice(0,-1),h=!0):f.startsWith(sp)&&(d=f.slice(1),h=!0);const p=u&&u>l?u-l:void 0;return Qv(o,h,d,p)};if(t){const i=t+Gv,o=r;r=s=>s.startsWith(i)?o(s.slice(i.length)):Qv(dA,!1,s,void 0,!0)}if(n){const i=r;r=o=>n({className:o,parseClassName:i})}return r},pA=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let o=0;o<n.length;o++){const s=n[o],a=s[0]==="[",l=t.has(s);a||l?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(s)):i.push(s)}return i.length>0&&(i.sort(),r.push(...i)),r}},mA=e=>({cache:fA(e.cacheSize),parseClassName:hA(e),sortModifiers:pA(e),...nA(e)}),yA=/\s+/,gA=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:o}=t,s=[],a=e.trim().split(yA);let l="";for(let u=a.length-1;u>=0;u-=1){const c=a[u],{isExternal:f,modifiers:d,hasImportantModifier:h,baseClassName:p,maybePostfixModifierPosition:m}=n(c);if(f){l=c+(l.length>0?" "+l:l);continue}let v=!!m,y=r(v?p.substring(0,m):p);if(!y){if(!v){l=c+(l.length>0?" "+l:l);continue}if(y=r(p),!y){l=c+(l.length>0?" "+l:l);continue}v=!1}const g=d.length===0?"":d.length===1?d[0]:o(d).join(":"),w=h?g+sp:g,x=w+y;if(s.indexOf(x)>-1)continue;s.push(x);const E=i(y,v);for(let T=0;T<E.length;++T){const S=E[T];s.push(w+S)}l=c+(l.length>0?" "+l:l)}return l},vA=(...e)=>{let t=0,n,r,i="";for(;t<e.length;)(n=e[t++])&&(r=yb(n))&&(i&&(i+=" "),i+=r);return i},yb=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=yb(e[r]))&&(n&&(n+=" "),n+=t);return n},wA=(e,...t)=>{let n,r,i,o;const s=l=>{const u=t.reduce((c,f)=>f(c),e());return n=mA(u),r=n.cache.get,i=n.cache.set,o=a,a(l)},a=l=>{const u=r(l);if(u)return u;const c=gA(l,n);return i(l,c),c};return o=s,(...l)=>o(vA(...l))},xA=[],Je=e=>{const t=n=>n[e]||xA;return t.isThemeGetter=!0,t},gb=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,vb=/^\((?:(\w[\w-]*):)?(.+)\)$/i,SA=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,bA=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,CA=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,EA=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,kA=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,RA=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,zr=e=>SA.test(e),de=e=>!!e&&!Number.isNaN(Number(e)),Br=e=>!!e&&Number.isInteger(Number(e)),md=e=>e.endsWith("%")&&de(e.slice(0,-1)),fr=e=>bA.test(e),wb=()=>!0,TA=e=>CA.test(e)&&!EA.test(e),Zm=()=>!1,PA=e=>kA.test(e),MA=e=>RA.test(e),AA=e=>!G(e)&&!Y(e),DA=e=>Ti(e,bb,Zm),G=e=>gb.test(e),Di=e=>Ti(e,Cb,TA),Xv=e=>Ti(e,VA,de),OA=e=>Ti(e,kb,wb),LA=e=>Ti(e,Eb,Zm),Yv=e=>Ti(e,xb,Zm),_A=e=>Ti(e,Sb,MA),uu=e=>Ti(e,Rb,PA),Y=e=>vb.test(e),aa=e=>wo(e,Cb),IA=e=>wo(e,Eb),Zv=e=>wo(e,xb),NA=e=>wo(e,bb),FA=e=>wo(e,Sb),cu=e=>wo(e,Rb,!0),jA=e=>wo(e,kb,!0),Ti=(e,t,n)=>{const r=gb.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},wo=(e,t,n=!1)=>{const r=vb.exec(e);return r?r[1]?t(r[1]):n:!1},xb=e=>e==="position"||e==="percentage",Sb=e=>e==="image"||e==="url",bb=e=>e==="length"||e==="size"||e==="bg-size",Cb=e=>e==="length",VA=e=>e==="number",Eb=e=>e==="family-name",kb=e=>e==="number"||e==="weight",Rb=e=>e==="shadow",zA=()=>{const e=Je("color"),t=Je("font"),n=Je("text"),r=Je("font-weight"),i=Je("tracking"),o=Je("leading"),s=Je("breakpoint"),a=Je("container"),l=Je("spacing"),u=Je("radius"),c=Je("shadow"),f=Je("inset-shadow"),d=Je("text-shadow"),h=Je("drop-shadow"),p=Je("blur"),m=Je("perspective"),v=Je("aspect"),y=Je("ease"),g=Je("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],x=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[...x(),Y,G],T=()=>["auto","hidden","clip","visible","scroll"],S=()=>["auto","contain","none"],b=()=>[Y,G,l],A=()=>[zr,"full","auto",...b()],M=()=>[Br,"none","subgrid",Y,G],I=()=>["auto",{span:["full",Br,Y,G]},Br,Y,G],z=()=>[Br,"auto",Y,G],H=()=>["auto","min","max","fr",Y,G],$=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],oe=()=>["start","end","center","stretch","center-safe","end-safe"],U=()=>["auto",...b()],se=()=>[zr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...b()],O=()=>[zr,"screen","full","dvw","lvw","svw","min","max","fit",...b()],j=()=>[zr,"screen","full","lh","dvh","lvh","svh","min","max","fit",...b()],_=()=>[e,Y,G],re=()=>[...x(),Zv,Yv,{position:[Y,G]}],ne=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Te=()=>["auto","cover","contain",NA,DA,{size:[Y,G]}],be=()=>[md,aa,Di],ce=()=>["","none","full",u,Y,G],le=()=>["",de,aa,Di],ze=()=>["solid","dashed","dotted","double"],wt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ce=()=>[de,md,Zv,Yv],ge=()=>["","none",p,Y,G],cn=()=>["none",de,Y,G],xe=()=>["none",de,Y,G],ct=()=>[de,Y,G],ft=()=>[zr,"full",...b()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[fr],breakpoint:[fr],color:[wb],container:[fr],"drop-shadow":[fr],ease:["in","out","in-out"],font:[AA],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[fr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[fr],shadow:[fr],spacing:["px",de],text:[fr],"text-shadow":[fr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",zr,G,Y,v]}],container:["container"],columns:[{columns:[de,G,Y,a]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:E()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:S()}],"overscroll-x":[{"overscroll-x":S()}],"overscroll-y":[{"overscroll-y":S()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:A()}],"inset-x":[{"inset-x":A()}],"inset-y":[{"inset-y":A()}],start:[{"inset-s":A(),start:A()}],end:[{"inset-e":A(),end:A()}],"inset-bs":[{"inset-bs":A()}],"inset-be":[{"inset-be":A()}],top:[{top:A()}],right:[{right:A()}],bottom:[{bottom:A()}],left:[{left:A()}],visibility:["visible","invisible","collapse"],z:[{z:[Br,"auto",Y,G]}],basis:[{basis:[zr,"full","auto",a,...b()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[de,zr,"auto","initial","none",G]}],grow:[{grow:["",de,Y,G]}],shrink:[{shrink:["",de,Y,G]}],order:[{order:[Br,"first","last","none",Y,G]}],"grid-cols":[{"grid-cols":M()}],"col-start-end":[{col:I()}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":M()}],"row-start-end":[{row:I()}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":H()}],"auto-rows":[{"auto-rows":H()}],gap:[{gap:b()}],"gap-x":[{"gap-x":b()}],"gap-y":[{"gap-y":b()}],"justify-content":[{justify:[...$(),"normal"]}],"justify-items":[{"justify-items":[...oe(),"normal"]}],"justify-self":[{"justify-self":["auto",...oe()]}],"align-content":[{content:["normal",...$()]}],"align-items":[{items:[...oe(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...oe(),{baseline:["","last"]}]}],"place-content":[{"place-content":$()}],"place-items":[{"place-items":[...oe(),"baseline"]}],"place-self":[{"place-self":["auto",...oe()]}],p:[{p:b()}],px:[{px:b()}],py:[{py:b()}],ps:[{ps:b()}],pe:[{pe:b()}],pbs:[{pbs:b()}],pbe:[{pbe:b()}],pt:[{pt:b()}],pr:[{pr:b()}],pb:[{pb:b()}],pl:[{pl:b()}],m:[{m:U()}],mx:[{mx:U()}],my:[{my:U()}],ms:[{ms:U()}],me:[{me:U()}],mbs:[{mbs:U()}],mbe:[{mbe:U()}],mt:[{mt:U()}],mr:[{mr:U()}],mb:[{mb:U()}],ml:[{ml:U()}],"space-x":[{"space-x":b()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":b()}],"space-y-reverse":["space-y-reverse"],size:[{size:se()}],"inline-size":[{inline:["auto",...O()]}],"min-inline-size":[{"min-inline":["auto",...O()]}],"max-inline-size":[{"max-inline":["none",...O()]}],"block-size":[{block:["auto",...j()]}],"min-block-size":[{"min-block":["auto",...j()]}],"max-block-size":[{"max-block":["none",...j()]}],w:[{w:[a,"screen",...se()]}],"min-w":[{"min-w":[a,"screen","none",...se()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...se()]}],h:[{h:["screen","lh",...se()]}],"min-h":[{"min-h":["screen","lh","none",...se()]}],"max-h":[{"max-h":["screen","lh",...se()]}],"font-size":[{text:["base",n,aa,Di]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,jA,OA]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",md,G]}],"font-family":[{font:[IA,LA,t]}],"font-features":[{"font-features":[G]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,Y,G]}],"line-clamp":[{"line-clamp":[de,"none",Y,Xv]}],leading:[{leading:[o,...b()]}],"list-image":[{"list-image":["none",Y,G]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Y,G]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:_()}],"text-color":[{text:_()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ze(),"wavy"]}],"text-decoration-thickness":[{decoration:[de,"from-font","auto",Y,Di]}],"text-decoration-color":[{decoration:_()}],"underline-offset":[{"underline-offset":[de,"auto",Y,G]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:b()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Y,G]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Y,G]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:re()}],"bg-repeat":[{bg:ne()}],"bg-size":[{bg:Te()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Br,Y,G],radial:["",Y,G],conic:[Br,Y,G]},FA,_A]}],"bg-color":[{bg:_()}],"gradient-from-pos":[{from:be()}],"gradient-via-pos":[{via:be()}],"gradient-to-pos":[{to:be()}],"gradient-from":[{from:_()}],"gradient-via":[{via:_()}],"gradient-to":[{to:_()}],rounded:[{rounded:ce()}],"rounded-s":[{"rounded-s":ce()}],"rounded-e":[{"rounded-e":ce()}],"rounded-t":[{"rounded-t":ce()}],"rounded-r":[{"rounded-r":ce()}],"rounded-b":[{"rounded-b":ce()}],"rounded-l":[{"rounded-l":ce()}],"rounded-ss":[{"rounded-ss":ce()}],"rounded-se":[{"rounded-se":ce()}],"rounded-ee":[{"rounded-ee":ce()}],"rounded-es":[{"rounded-es":ce()}],"rounded-tl":[{"rounded-tl":ce()}],"rounded-tr":[{"rounded-tr":ce()}],"rounded-br":[{"rounded-br":ce()}],"rounded-bl":[{"rounded-bl":ce()}],"border-w":[{border:le()}],"border-w-x":[{"border-x":le()}],"border-w-y":[{"border-y":le()}],"border-w-s":[{"border-s":le()}],"border-w-e":[{"border-e":le()}],"border-w-bs":[{"border-bs":le()}],"border-w-be":[{"border-be":le()}],"border-w-t":[{"border-t":le()}],"border-w-r":[{"border-r":le()}],"border-w-b":[{"border-b":le()}],"border-w-l":[{"border-l":le()}],"divide-x":[{"divide-x":le()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":le()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ze(),"hidden","none"]}],"divide-style":[{divide:[...ze(),"hidden","none"]}],"border-color":[{border:_()}],"border-color-x":[{"border-x":_()}],"border-color-y":[{"border-y":_()}],"border-color-s":[{"border-s":_()}],"border-color-e":[{"border-e":_()}],"border-color-bs":[{"border-bs":_()}],"border-color-be":[{"border-be":_()}],"border-color-t":[{"border-t":_()}],"border-color-r":[{"border-r":_()}],"border-color-b":[{"border-b":_()}],"border-color-l":[{"border-l":_()}],"divide-color":[{divide:_()}],"outline-style":[{outline:[...ze(),"none","hidden"]}],"outline-offset":[{"outline-offset":[de,Y,G]}],"outline-w":[{outline:["",de,aa,Di]}],"outline-color":[{outline:_()}],shadow:[{shadow:["","none",c,cu,uu]}],"shadow-color":[{shadow:_()}],"inset-shadow":[{"inset-shadow":["none",f,cu,uu]}],"inset-shadow-color":[{"inset-shadow":_()}],"ring-w":[{ring:le()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:_()}],"ring-offset-w":[{"ring-offset":[de,Di]}],"ring-offset-color":[{"ring-offset":_()}],"inset-ring-w":[{"inset-ring":le()}],"inset-ring-color":[{"inset-ring":_()}],"text-shadow":[{"text-shadow":["none",d,cu,uu]}],"text-shadow-color":[{"text-shadow":_()}],opacity:[{opacity:[de,Y,G]}],"mix-blend":[{"mix-blend":[...wt(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":wt()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[de]}],"mask-image-linear-from-pos":[{"mask-linear-from":Ce()}],"mask-image-linear-to-pos":[{"mask-linear-to":Ce()}],"mask-image-linear-from-color":[{"mask-linear-from":_()}],"mask-image-linear-to-color":[{"mask-linear-to":_()}],"mask-image-t-from-pos":[{"mask-t-from":Ce()}],"mask-image-t-to-pos":[{"mask-t-to":Ce()}],"mask-image-t-from-color":[{"mask-t-from":_()}],"mask-image-t-to-color":[{"mask-t-to":_()}],"mask-image-r-from-pos":[{"mask-r-from":Ce()}],"mask-image-r-to-pos":[{"mask-r-to":Ce()}],"mask-image-r-from-color":[{"mask-r-from":_()}],"mask-image-r-to-color":[{"mask-r-to":_()}],"mask-image-b-from-pos":[{"mask-b-from":Ce()}],"mask-image-b-to-pos":[{"mask-b-to":Ce()}],"mask-image-b-from-color":[{"mask-b-from":_()}],"mask-image-b-to-color":[{"mask-b-to":_()}],"mask-image-l-from-pos":[{"mask-l-from":Ce()}],"mask-image-l-to-pos":[{"mask-l-to":Ce()}],"mask-image-l-from-color":[{"mask-l-from":_()}],"mask-image-l-to-color":[{"mask-l-to":_()}],"mask-image-x-from-pos":[{"mask-x-from":Ce()}],"mask-image-x-to-pos":[{"mask-x-to":Ce()}],"mask-image-x-from-color":[{"mask-x-from":_()}],"mask-image-x-to-color":[{"mask-x-to":_()}],"mask-image-y-from-pos":[{"mask-y-from":Ce()}],"mask-image-y-to-pos":[{"mask-y-to":Ce()}],"mask-image-y-from-color":[{"mask-y-from":_()}],"mask-image-y-to-color":[{"mask-y-to":_()}],"mask-image-radial":[{"mask-radial":[Y,G]}],"mask-image-radial-from-pos":[{"mask-radial-from":Ce()}],"mask-image-radial-to-pos":[{"mask-radial-to":Ce()}],"mask-image-radial-from-color":[{"mask-radial-from":_()}],"mask-image-radial-to-color":[{"mask-radial-to":_()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":x()}],"mask-image-conic-pos":[{"mask-conic":[de]}],"mask-image-conic-from-pos":[{"mask-conic-from":Ce()}],"mask-image-conic-to-pos":[{"mask-conic-to":Ce()}],"mask-image-conic-from-color":[{"mask-conic-from":_()}],"mask-image-conic-to-color":[{"mask-conic-to":_()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:re()}],"mask-repeat":[{mask:ne()}],"mask-size":[{mask:Te()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Y,G]}],filter:[{filter:["","none",Y,G]}],blur:[{blur:ge()}],brightness:[{brightness:[de,Y,G]}],contrast:[{contrast:[de,Y,G]}],"drop-shadow":[{"drop-shadow":["","none",h,cu,uu]}],"drop-shadow-color":[{"drop-shadow":_()}],grayscale:[{grayscale:["",de,Y,G]}],"hue-rotate":[{"hue-rotate":[de,Y,G]}],invert:[{invert:["",de,Y,G]}],saturate:[{saturate:[de,Y,G]}],sepia:[{sepia:["",de,Y,G]}],"backdrop-filter":[{"backdrop-filter":["","none",Y,G]}],"backdrop-blur":[{"backdrop-blur":ge()}],"backdrop-brightness":[{"backdrop-brightness":[de,Y,G]}],"backdrop-contrast":[{"backdrop-contrast":[de,Y,G]}],"backdrop-grayscale":[{"backdrop-grayscale":["",de,Y,G]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[de,Y,G]}],"backdrop-invert":[{"backdrop-invert":["",de,Y,G]}],"backdrop-opacity":[{"backdrop-opacity":[de,Y,G]}],"backdrop-saturate":[{"backdrop-saturate":[de,Y,G]}],"backdrop-sepia":[{"backdrop-sepia":["",de,Y,G]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":b()}],"border-spacing-x":[{"border-spacing-x":b()}],"border-spacing-y":[{"border-spacing-y":b()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Y,G]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[de,"initial",Y,G]}],ease:[{ease:["linear","initial",y,Y,G]}],delay:[{delay:[de,Y,G]}],animate:[{animate:["none",g,Y,G]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,Y,G]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:cn()}],"rotate-x":[{"rotate-x":cn()}],"rotate-y":[{"rotate-y":cn()}],"rotate-z":[{"rotate-z":cn()}],scale:[{scale:xe()}],"scale-x":[{"scale-x":xe()}],"scale-y":[{"scale-y":xe()}],"scale-z":[{"scale-z":xe()}],"scale-3d":["scale-3d"],skew:[{skew:ct()}],"skew-x":[{"skew-x":ct()}],"skew-y":[{"skew-y":ct()}],transform:[{transform:[Y,G,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ft()}],"translate-x":[{"translate-x":ft()}],"translate-y":[{"translate-y":ft()}],"translate-z":[{"translate-z":ft()}],"translate-none":["translate-none"],accent:[{accent:_()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:_()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Y,G]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":b()}],"scroll-mx":[{"scroll-mx":b()}],"scroll-my":[{"scroll-my":b()}],"scroll-ms":[{"scroll-ms":b()}],"scroll-me":[{"scroll-me":b()}],"scroll-mbs":[{"scroll-mbs":b()}],"scroll-mbe":[{"scroll-mbe":b()}],"scroll-mt":[{"scroll-mt":b()}],"scroll-mr":[{"scroll-mr":b()}],"scroll-mb":[{"scroll-mb":b()}],"scroll-ml":[{"scroll-ml":b()}],"scroll-p":[{"scroll-p":b()}],"scroll-px":[{"scroll-px":b()}],"scroll-py":[{"scroll-py":b()}],"scroll-ps":[{"scroll-ps":b()}],"scroll-pe":[{"scroll-pe":b()}],"scroll-pbs":[{"scroll-pbs":b()}],"scroll-pbe":[{"scroll-pbe":b()}],"scroll-pt":[{"scroll-pt":b()}],"scroll-pr":[{"scroll-pr":b()}],"scroll-pb":[{"scroll-pb":b()}],"scroll-pl":[{"scroll-pl":b()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Y,G]}],fill:[{fill:["none",..._()]}],"stroke-w":[{stroke:[de,aa,Di,Xv]}],stroke:[{stroke:["none",..._()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Wj=wA(zA),Jv=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,e0=ZM,Kj=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return e0(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:o}=t,s=Object.keys(i).map(u=>{const c=n==null?void 0:n[u],f=o==null?void 0:o[u];if(c===null)return null;const d=Jv(c)||Jv(f);return i[u][d]}),a=n&&Object.entries(n).reduce((u,c)=>{let[f,d]=c;return d===void 0||(u[f]=d),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:f,className:d,...h}=c;return Object.entries(h).every(p=>{let[m,v]=p;return Array.isArray(v)?v.includes({...o,...a}[m]):{...o,...a}[m]===v})?[...u,f,d]:u},[]);return e0(e,s,l,n==null?void 0:n.class,n==null?void 0:n.className)},BA=["top","right","bottom","left"],xi=Math.min,tn=Math.max,Pc=Math.round,fu=Math.floor,or=e=>({x:e,y:e}),UA={left:"right",right:"left",bottom:"top",top:"bottom"};function ap(e,t,n){return tn(e,xi(t,n))}function Lr(e,t){return typeof e=="function"?e(t):e}function _r(e){return e.split("-")[0]}function Is(e){return e.split("-")[1]}function Jm(e){return e==="x"?"y":"x"}function ey(e){return e==="y"?"height":"width"}function nr(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function ty(e){return Jm(nr(e))}function $A(e,t,n){n===void 0&&(n=!1);const r=Is(e),i=ty(e),o=ey(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=Mc(s)),[s,Mc(s)]}function HA(e){const t=Mc(e);return[lp(e),t,lp(t)]}function lp(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const t0=["left","right"],n0=["right","left"],WA=["top","bottom"],KA=["bottom","top"];function qA(e,t,n){switch(e){case"top":case"bottom":return n?t?n0:t0:t?t0:n0;case"left":case"right":return t?WA:KA;default:return[]}}function GA(e,t,n,r){const i=Is(e);let o=qA(_r(e),n==="start",r);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(lp)))),o}function Mc(e){const t=_r(e);return UA[t]+e.slice(t.length)}function QA(e){return{top:0,right:0,bottom:0,left:0,...e}}function Tb(e){return typeof e!="number"?QA(e):{top:e,right:e,bottom:e,left:e}}function Ac(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function r0(e,t,n){let{reference:r,floating:i}=e;const o=nr(t),s=ty(t),a=ey(s),l=_r(t),u=o==="y",c=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,d=r[a]/2-i[a]/2;let h;switch(l){case"top":h={x:c,y:r.y-i.height};break;case"bottom":h={x:c,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-i.width,y:f};break;default:h={x:r.x,y:r.y}}switch(Is(t)){case"start":h[s]-=d*(n&&u?-1:1);break;case"end":h[s]+=d*(n&&u?-1:1);break}return h}async function XA(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:s,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:h=0}=Lr(t,e),p=Tb(h),v=a[d?f==="floating"?"reference":"floating":f],y=Ac(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(v)))==null||n?v:v.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),g=f==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,w=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),x=await(o.isElement==null?void 0:o.isElement(w))?await(o.getScale==null?void 0:o.getScale(w))||{x:1,y:1}:{x:1,y:1},E=Ac(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:w,strategy:l}):g);return{top:(y.top-E.top+p.top)/x.y,bottom:(E.bottom-y.bottom+p.bottom)/x.y,left:(y.left-E.left+p.left)/x.x,right:(E.right-y.right+p.right)/x.x}}const YA=50,ZA=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,a=s.detectOverflow?s:{...s,detectOverflow:XA},l=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:f}=r0(u,r,l),d=r,h=0;const p={};for(let m=0;m<o.length;m++){const v=o[m];if(!v)continue;const{name:y,fn:g}=v,{x:w,y:x,data:E,reset:T}=await g({x:c,y:f,initialPlacement:r,placement:d,strategy:i,middlewareData:p,rects:u,platform:a,elements:{reference:e,floating:t}});c=w??c,f=x??f,p[y]={...p[y],...E},T&&h<YA&&(h++,typeof T=="object"&&(T.placement&&(d=T.placement),T.rects&&(u=T.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):T.rects),{x:c,y:f}=r0(u,d,l)),m=-1)}return{x:c,y:f,placement:d,strategy:i,middlewareData:p}},JA=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:s,elements:a,middlewareData:l}=t,{element:u,padding:c=0}=Lr(e,t)||{};if(u==null)return{};const f=Tb(c),d={x:n,y:r},h=ty(i),p=ey(h),m=await s.getDimensions(u),v=h==="y",y=v?"top":"left",g=v?"bottom":"right",w=v?"clientHeight":"clientWidth",x=o.reference[p]+o.reference[h]-d[h]-o.floating[p],E=d[h]-o.reference[h],T=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let S=T?T[w]:0;(!S||!await(s.isElement==null?void 0:s.isElement(T)))&&(S=a.floating[w]||o.floating[p]);const b=x/2-E/2,A=S/2-m[p]/2-1,M=xi(f[y],A),I=xi(f[g],A),z=M,H=S-m[p]-I,$=S/2-m[p]/2+b,oe=ap(z,$,H),U=!l.arrow&&Is(i)!=null&&$!==oe&&o.reference[p]/2-($<z?M:I)-m[p]/2<0,se=U?$<z?$-z:$-H:0;return{[h]:d[h]+se,data:{[h]:oe,centerOffset:$-oe-se,...U&&{alignmentOffset:se}},reset:U}}}),eD=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:s,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...v}=Lr(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const y=_r(i),g=nr(a),w=_r(a)===a,x=await(l.isRTL==null?void 0:l.isRTL(u.floating)),E=d||(w||!m?[Mc(a)]:HA(a)),T=p!=="none";!d&&T&&E.push(...GA(a,m,p,x));const S=[a,...E],b=await l.detectOverflow(t,v),A=[];let M=((r=o.flip)==null?void 0:r.overflows)||[];if(c&&A.push(b[y]),f){const $=$A(i,s,x);A.push(b[$[0]],b[$[1]])}if(M=[...M,{placement:i,overflows:A}],!A.every($=>$<=0)){var I,z;const $=(((I=o.flip)==null?void 0:I.index)||0)+1,oe=S[$];if(oe&&(!(f==="alignment"?g!==nr(oe):!1)||M.every(O=>nr(O.placement)===g?O.overflows[0]>0:!0)))return{data:{index:$,overflows:M},reset:{placement:oe}};let U=(z=M.filter(se=>se.overflows[0]<=0).sort((se,O)=>se.overflows[1]-O.overflows[1])[0])==null?void 0:z.placement;if(!U)switch(h){case"bestFit":{var H;const se=(H=M.filter(O=>{if(T){const j=nr(O.placement);return j===g||j==="y"}return!0}).map(O=>[O.placement,O.overflows.filter(j=>j>0).reduce((j,_)=>j+_,0)]).sort((O,j)=>O[1]-j[1])[0])==null?void 0:H[0];se&&(U=se);break}case"initialPlacement":U=a;break}if(i!==U)return{reset:{placement:U}}}return{}}}};function i0(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function o0(e){return BA.some(t=>e[t]>=0)}const tD=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:i="referenceHidden",...o}=Lr(e,t);switch(i){case"referenceHidden":{const s=await r.detectOverflow(t,{...o,elementContext:"reference"}),a=i0(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:o0(a)}}}case"escaped":{const s=await r.detectOverflow(t,{...o,altBoundary:!0}),a=i0(s,n.floating);return{data:{escapedOffsets:a,escaped:o0(a)}}}default:return{}}}}},Pb=new Set(["left","top"]);async function nD(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=_r(n),a=Is(n),l=nr(n)==="y",u=Pb.has(s)?-1:1,c=o&&l?-1:1,f=Lr(t,e);let{mainAxis:d,crossAxis:h,alignmentAxis:p}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof p=="number"&&(h=a==="end"?p*-1:p),l?{x:h*c,y:d*u}:{x:d*u,y:h*c}}const rD=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:s,middlewareData:a}=t,l=await nD(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:s}}}}},iD=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i,platform:o}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:y=>{let{x:g,y:w}=y;return{x:g,y:w}}},...u}=Lr(e,t),c={x:n,y:r},f=await o.detectOverflow(t,u),d=nr(_r(i)),h=Jm(d);let p=c[h],m=c[d];if(s){const y=h==="y"?"top":"left",g=h==="y"?"bottom":"right",w=p+f[y],x=p-f[g];p=ap(w,p,x)}if(a){const y=d==="y"?"top":"left",g=d==="y"?"bottom":"right",w=m+f[y],x=m-f[g];m=ap(w,m,x)}const v=l.fn({...t,[h]:p,[d]:m});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[h]:s,[d]:a}}}}}},oD=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:o,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=Lr(e,t),c={x:n,y:r},f=nr(i),d=Jm(f);let h=c[d],p=c[f];const m=Lr(a,t),v=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const w=d==="y"?"height":"width",x=o.reference[d]-o.floating[w]+v.mainAxis,E=o.reference[d]+o.reference[w]-v.mainAxis;h<x?h=x:h>E&&(h=E)}if(u){var y,g;const w=d==="y"?"width":"height",x=Pb.has(_r(i)),E=o.reference[f]-o.floating[w]+(x&&((y=s.offset)==null?void 0:y[f])||0)+(x?0:v.crossAxis),T=o.reference[f]+o.reference[w]+(x?0:((g=s.offset)==null?void 0:g[f])||0)-(x?v.crossAxis:0);p<E?p=E:p>T&&(p=T)}return{[d]:h,[f]:p}}}},sD=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:s,elements:a}=t,{apply:l=()=>{},...u}=Lr(e,t),c=await s.detectOverflow(t,u),f=_r(i),d=Is(i),h=nr(i)==="y",{width:p,height:m}=o.floating;let v,y;f==="top"||f==="bottom"?(v=f,y=d===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(y=f,v=d==="end"?"top":"bottom");const g=m-c.top-c.bottom,w=p-c.left-c.right,x=xi(m-c[v],g),E=xi(p-c[y],w),T=!t.middlewareData.shift;let S=x,b=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(b=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(S=g),T&&!d){const M=tn(c.left,0),I=tn(c.right,0),z=tn(c.top,0),H=tn(c.bottom,0);h?b=p-2*(M!==0||I!==0?M+I:tn(c.left,c.right)):S=m-2*(z!==0||H!==0?z+H:tn(c.top,c.bottom))}await l({...t,availableWidth:b,availableHeight:S});const A=await s.getDimensions(a.floating);return p!==A.width||m!==A.height?{reset:{rects:!0}}:{}}}};function gf(){return typeof window<"u"}function Ns(e){return Mb(e)?(e.nodeName||"").toLowerCase():"#document"}function on(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ur(e){var t;return(t=(Mb(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Mb(e){return gf()?e instanceof Node||e instanceof on(e).Node:!1}function jn(e){return gf()?e instanceof Element||e instanceof on(e).Element:!1}function Nr(e){return gf()?e instanceof HTMLElement||e instanceof on(e).HTMLElement:!1}function s0(e){return!gf()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof on(e).ShadowRoot}function kl(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Vn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!=="inline"&&i!=="contents"}function aD(e){return/^(table|td|th)$/.test(Ns(e))}function vf(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const lD=/transform|translate|scale|rotate|perspective|filter/,uD=/paint|layout|strict|content/,Oi=e=>!!e&&e!=="none";let yd;function ny(e){const t=jn(e)?Vn(e):e;return Oi(t.transform)||Oi(t.translate)||Oi(t.scale)||Oi(t.rotate)||Oi(t.perspective)||!ry()&&(Oi(t.backdropFilter)||Oi(t.filter))||lD.test(t.willChange||"")||uD.test(t.contain||"")}function cD(e){let t=Si(e);for(;Nr(t)&&!Rs(t);){if(ny(t))return t;if(vf(t))return null;t=Si(t)}return null}function ry(){return yd==null&&(yd=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),yd}function Rs(e){return/^(html|body|#document)$/.test(Ns(e))}function Vn(e){return on(e).getComputedStyle(e)}function wf(e){return jn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Si(e){if(Ns(e)==="html")return e;const t=e.assignedSlot||e.parentNode||s0(e)&&e.host||ur(e);return s0(t)?t.host:t}function Ab(e){const t=Si(e);return Rs(t)?e.ownerDocument?e.ownerDocument.body:e.body:Nr(t)&&kl(t)?t:Ab(t)}function tl(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Ab(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=on(i);if(o){const a=up(s);return t.concat(s,s.visualViewport||[],kl(i)?i:[],a&&n?tl(a):[])}else return t.concat(i,tl(i,[],n))}function up(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Db(e){const t=Vn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Nr(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,a=Pc(n)!==o||Pc(r)!==s;return a&&(n=o,r=s),{width:n,height:r,$:a}}function iy(e){return jn(e)?e:e.contextElement}function ns(e){const t=iy(e);if(!Nr(t))return or(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Db(t);let s=(o?Pc(n.width):n.width)/r,a=(o?Pc(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const fD=or(0);function Ob(e){const t=on(e);return!ry()||!t.visualViewport?fD:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function dD(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==on(e)?!1:t}function mo(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=iy(e);let s=or(1);t&&(r?jn(r)&&(s=ns(r)):s=ns(e));const a=dD(o,n,r)?Ob(o):or(0);let l=(i.left+a.x)/s.x,u=(i.top+a.y)/s.y,c=i.width/s.x,f=i.height/s.y;if(o){const d=on(o),h=r&&jn(r)?on(r):r;let p=d,m=up(p);for(;m&&r&&h!==p;){const v=ns(m),y=m.getBoundingClientRect(),g=Vn(m),w=y.left+(m.clientLeft+parseFloat(g.paddingLeft))*v.x,x=y.top+(m.clientTop+parseFloat(g.paddingTop))*v.y;l*=v.x,u*=v.y,c*=v.x,f*=v.y,l+=w,u+=x,p=on(m),m=up(p)}}return Ac({width:c,height:f,x:l,y:u})}function xf(e,t){const n=wf(e).scrollLeft;return t?t.left+n:mo(ur(e)).left+n}function Lb(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-xf(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function hD(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",s=ur(r),a=t?vf(t.floating):!1;if(r===s||a&&o)return n;let l={scrollLeft:0,scrollTop:0},u=or(1);const c=or(0),f=Nr(r);if((f||!f&&!o)&&((Ns(r)!=="body"||kl(s))&&(l=wf(r)),f)){const h=mo(r);u=ns(r),c.x=h.x+r.clientLeft,c.y=h.y+r.clientTop}const d=s&&!f&&!o?Lb(s,l):or(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+d.x,y:n.y*u.y-l.scrollTop*u.y+c.y+d.y}}function pD(e){return Array.from(e.getClientRects())}function mD(e){const t=ur(e),n=wf(e),r=e.ownerDocument.body,i=tn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=tn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+xf(e);const a=-n.scrollTop;return Vn(r).direction==="rtl"&&(s+=tn(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:a}}const a0=25;function yD(e,t){const n=on(e),r=ur(e),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;const c=ry();(!c||c&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}const u=xf(r);if(u<=0){const c=r.ownerDocument,f=c.body,d=getComputedStyle(f),h=c.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,p=Math.abs(r.clientWidth-f.clientWidth-h);p<=a0&&(o-=p)}else u<=a0&&(o+=u);return{width:o,height:s,x:a,y:l}}function gD(e,t){const n=mo(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Nr(e)?ns(e):or(1),s=e.clientWidth*o.x,a=e.clientHeight*o.y,l=i*o.x,u=r*o.y;return{width:s,height:a,x:l,y:u}}function l0(e,t,n){let r;if(t==="viewport")r=yD(e,n);else if(t==="document")r=mD(ur(e));else if(jn(t))r=gD(t,n);else{const i=Ob(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Ac(r)}function _b(e,t){const n=Si(e);return n===t||!jn(n)||Rs(n)?!1:Vn(n).position==="fixed"||_b(n,t)}function vD(e,t){const n=t.get(e);if(n)return n;let r=tl(e,[],!1).filter(a=>jn(a)&&Ns(a)!=="body"),i=null;const o=Vn(e).position==="fixed";let s=o?Si(e):e;for(;jn(s)&&!Rs(s);){const a=Vn(s),l=ny(s);!l&&a.position==="fixed"&&(i=null),(o?!l&&!i:!l&&a.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||kl(s)&&!l&&_b(e,s))?r=r.filter(c=>c!==s):i=a,s=Si(s)}return t.set(e,r),r}function wD(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?vf(t)?[]:vD(t,this._c):[].concat(n),r],a=l0(t,s[0],i);let l=a.top,u=a.right,c=a.bottom,f=a.left;for(let d=1;d<s.length;d++){const h=l0(t,s[d],i);l=tn(h.top,l),u=xi(h.right,u),c=xi(h.bottom,c),f=tn(h.left,f)}return{width:u-f,height:c-l,x:f,y:l}}function xD(e){const{width:t,height:n}=Db(e);return{width:t,height:n}}function SD(e,t,n){const r=Nr(t),i=ur(t),o=n==="fixed",s=mo(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const l=or(0);function u(){l.x=xf(i)}if(r||!r&&!o)if((Ns(t)!=="body"||kl(i))&&(a=wf(t)),r){const h=mo(t,!0,o,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else i&&u();o&&!r&&i&&u();const c=i&&!r&&!o?Lb(i,a):or(0),f=s.left+a.scrollLeft-l.x-c.x,d=s.top+a.scrollTop-l.y-c.y;return{x:f,y:d,width:s.width,height:s.height}}function gd(e){return Vn(e).position==="static"}function u0(e,t){if(!Nr(e)||Vn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ur(e)===n&&(n=n.ownerDocument.body),n}function Ib(e,t){const n=on(e);if(vf(e))return n;if(!Nr(e)){let i=Si(e);for(;i&&!Rs(i);){if(jn(i)&&!gd(i))return i;i=Si(i)}return n}let r=u0(e,t);for(;r&&aD(r)&&gd(r);)r=u0(r,t);return r&&Rs(r)&&gd(r)&&!ny(r)?n:r||cD(e)||n}const bD=async function(e){const t=this.getOffsetParent||Ib,n=this.getDimensions,r=await n(e.floating);return{reference:SD(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function CD(e){return Vn(e).direction==="rtl"}const ED={convertOffsetParentRelativeRectToViewportRelativeRect:hD,getDocumentElement:ur,getClippingRect:wD,getOffsetParent:Ib,getElementRects:bD,getClientRects:pD,getDimensions:xD,getScale:ns,isElement:jn,isRTL:CD};function Nb(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function kD(e,t){let n=null,r;const i=ur(e);function o(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),o();const u=e.getBoundingClientRect(),{left:c,top:f,width:d,height:h}=u;if(a||t(),!d||!h)return;const p=fu(f),m=fu(i.clientWidth-(c+d)),v=fu(i.clientHeight-(f+h)),y=fu(c),w={rootMargin:-p+"px "+-m+"px "+-v+"px "+-y+"px",threshold:tn(0,xi(1,l))||1};let x=!0;function E(T){const S=T[0].intersectionRatio;if(S!==l){if(!x)return s();S?s(!1,S):r=setTimeout(()=>{s(!1,1e-7)},1e3)}S===1&&!Nb(u,e.getBoundingClientRect())&&s(),x=!1}try{n=new IntersectionObserver(E,{...w,root:i.ownerDocument})}catch{n=new IntersectionObserver(E,w)}n.observe(e)}return s(!0),o}function qj(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=iy(e),c=i||o?[...u?tl(u):[],...t?tl(t):[]]:[];c.forEach(y=>{i&&y.addEventListener("scroll",n,{passive:!0}),o&&y.addEventListener("resize",n)});const f=u&&a?kD(u,n):null;let d=-1,h=null;s&&(h=new ResizeObserver(y=>{let[g]=y;g&&g.target===u&&h&&t&&(h.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var w;(w=h)==null||w.observe(t)})),n()}),u&&!l&&h.observe(u),t&&h.observe(t));let p,m=l?mo(e):null;l&&v();function v(){const y=mo(e);m&&!Nb(m,y)&&n(),m=y,p=requestAnimationFrame(v)}return n(),()=>{var y;c.forEach(g=>{i&&g.removeEventListener("scroll",n),o&&g.removeEventListener("resize",n)}),f==null||f(),(y=h)==null||y.disconnect(),h=null,l&&cancelAnimationFrame(p)}}const RD=rD,TD=iD,PD=eD,MD=sD,AD=tD,c0=JA,DD=oD,OD=(e,t,n)=>{const r=new Map,i={platform:ED,...n},o={...i.platform,_c:r};return ZA(e,t,{...i,platform:o})};var LD=typeof document<"u",_D=function(){},zu=LD?C.useLayoutEffect:_D;function Dc(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Dc(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!Dc(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function Fb(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function f0(e,t){const n=Fb(e);return Math.round(t*n)/n}function vd(e){const t=C.useRef(e);return zu(()=>{t.current=e}),t}function Gj(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:s}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[c,f]=C.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,h]=C.useState(r);Dc(d,r)||h(r);const[p,m]=C.useState(null),[v,y]=C.useState(null),g=C.useCallback(O=>{O!==T.current&&(T.current=O,m(O))},[]),w=C.useCallback(O=>{O!==S.current&&(S.current=O,y(O))},[]),x=o||p,E=s||v,T=C.useRef(null),S=C.useRef(null),b=C.useRef(c),A=l!=null,M=vd(l),I=vd(i),z=vd(u),H=C.useCallback(()=>{if(!T.current||!S.current)return;const O={placement:t,strategy:n,middleware:d};I.current&&(O.platform=I.current),OD(T.current,S.current,O).then(j=>{const _={...j,isPositioned:z.current!==!1};$.current&&!Dc(b.current,_)&&(b.current=_,kr.flushSync(()=>{f(_)}))})},[d,t,n,I,z]);zu(()=>{u===!1&&b.current.isPositioned&&(b.current.isPositioned=!1,f(O=>({...O,isPositioned:!1})))},[u]);const $=C.useRef(!1);zu(()=>($.current=!0,()=>{$.current=!1}),[]),zu(()=>{if(x&&(T.current=x),E&&(S.current=E),x&&E){if(M.current)return M.current(x,E,H);H()}},[x,E,H,M,A]);const oe=C.useMemo(()=>({reference:T,floating:S,setReference:g,setFloating:w}),[g,w]),U=C.useMemo(()=>({reference:x,floating:E}),[x,E]),se=C.useMemo(()=>{const O={position:n,left:0,top:0};if(!U.floating)return O;const j=f0(U.floating,c.x),_=f0(U.floating,c.y);return a?{...O,transform:"translate("+j+"px, "+_+"px)",...Fb(U.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:j,top:_}},[n,a,U.floating,c.x,c.y]);return C.useMemo(()=>({...c,update:H,refs:oe,elements:U,floatingStyles:se}),[c,H,oe,U,se])}const ID=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?c0({element:r.current,padding:i}).fn(n):{}:r?c0({element:r,padding:i}).fn(n):{}}}},Qj=(e,t)=>{const n=RD(e);return{name:n.name,fn:n.fn,options:[e,t]}},Xj=(e,t)=>{const n=TD(e);return{name:n.name,fn:n.fn,options:[e,t]}},Yj=(e,t)=>({fn:DD(e).fn,options:[e,t]}),Zj=(e,t)=>{const n=PD(e);return{name:n.name,fn:n.fn,options:[e,t]}},Jj=(e,t)=>{const n=MD(e);return{name:n.name,fn:n.fn,options:[e,t]}},eV=(e,t)=>{const n=AD(e);return{name:n.name,fn:n.fn,options:[e,t]}},tV=(e,t)=>{const n=ID(e);return{name:n.name,fn:n.fn,options:[e,t]}};var ND=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ao=new WeakMap,du=new WeakMap,hu={},wd=0,jb=function(e){return e&&(e.host||jb(e.parentNode))},FD=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=jb(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},jD=function(e,t,n,r){var i=FD(t,Array.isArray(e)?e:[e]);hu[n]||(hu[n]=new WeakMap);var o=hu[n],s=[],a=new Set,l=new Set(i),u=function(f){!f||a.has(f)||(a.add(f),u(f.parentNode))};i.forEach(u);var c=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(d){if(a.has(d))c(d);else try{var h=d.getAttribute(r),p=h!==null&&h!=="false",m=(Ao.get(d)||0)+1,v=(o.get(d)||0)+1;Ao.set(d,m),o.set(d,v),s.push(d),m===1&&p&&du.set(d,!0),v===1&&d.setAttribute(n,"true"),p||d.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",d,y)}})};return c(t),a.clear(),wd++,function(){s.forEach(function(f){var d=Ao.get(f)-1,h=o.get(f)-1;Ao.set(f,d),o.set(f,h),d||(du.has(f)||f.removeAttribute(r),du.delete(f)),h||f.removeAttribute(n)}),wd--,wd||(Ao=new WeakMap,Ao=new WeakMap,du=new WeakMap,hu={})}},nV=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=ND(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),jD(r,i,n,"aria-hidden")):function(){return null}},cp=function(e,t){return cp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},cp(e,t)};function Vb(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");cp(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var vn=function(){return vn=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},vn.apply(this,arguments)};function Sf(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function zb(e,t,n,r){var i=arguments.length,o=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,n,o):s(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}function Bb(e,t){return function(n,r){t(n,r,e)}}function Ub(e,t,n,r,i,o){function s(y){if(y!==void 0&&typeof y!="function")throw new TypeError("Function expected");return y}for(var a=r.kind,l=a==="getter"?"get":a==="setter"?"set":"value",u=!t&&e?r.static?e:e.prototype:null,c=t||(u?Object.getOwnPropertyDescriptor(u,r.name):{}),f,d=!1,h=n.length-1;h>=0;h--){var p={};for(var m in r)p[m]=m==="access"?{}:r[m];for(var m in r.access)p.access[m]=r.access[m];p.addInitializer=function(y){if(d)throw new TypeError("Cannot add initializers after decoration has completed");o.push(s(y||null))};var v=(0,n[h])(a==="accessor"?{get:c.get,set:c.set}:c[l],p);if(a==="accessor"){if(v===void 0)continue;if(v===null||typeof v!="object")throw new TypeError("Object expected");(f=s(v.get))&&(c.get=f),(f=s(v.set))&&(c.set=f),(f=s(v.init))&&i.unshift(f)}else(f=s(v))&&(a==="field"?i.unshift(f):c[l]=f)}u&&Object.defineProperty(u,r.name,c),d=!0}function $b(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0}function Hb(e){return typeof e=="symbol"?e:"".concat(e)}function Wb(e,t,n){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function Kb(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function qb(e,t,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(c){try{u(r.next(c))}catch(f){s(f)}}function l(c){try{u(r.throw(c))}catch(f){s(f)}}function u(c){c.done?o(c.value):i(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})}function Gb(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(u){return function(c){return l([u,c])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(n=0)),n;)try{if(r=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,i=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[0]===6&&n.label<o[1]){n.label=o[1],o=u;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(u);break}o[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(c){u=[6,c],i=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}var bf=Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]};function Qb(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&bf(t,e,n)}function Oc(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function oy(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o}function Xb(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(oy(arguments[t]));return e}function Yb(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i++)r[i]=o[s];return r}function sy(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function Ts(e){return this instanceof Ts?(this.v=e,this):new Ts(e)}function Zb(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,o=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),i[Symbol.asyncIterator]=function(){return this},i;function s(h){return function(p){return Promise.resolve(p).then(h,f)}}function a(h,p){r[h]&&(i[h]=function(m){return new Promise(function(v,y){o.push([h,m,v,y])>1||l(h,m)})},p&&(i[h]=p(i[h])))}function l(h,p){try{u(r[h](p))}catch(m){d(o[0][3],m)}}function u(h){h.value instanceof Ts?Promise.resolve(h.value.v).then(c,f):d(o[0][2],h)}function c(h){l("next",h)}function f(h){l("throw",h)}function d(h,p){h(p),o.shift(),o.length&&l(o[0][0],o[0][1])}}function Jb(e){var t,n;return t={},r("next"),r("throw",function(i){throw i}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(i,o){t[i]=e[i]?function(s){return(n=!n)?{value:Ts(e[i](s)),done:!1}:o?o(s):s}:o}}function eC(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Oc=="function"?Oc(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(s){return new Promise(function(a,l){s=e[o](s),i(a,l,s.done,s.value)})}}function i(o,s,a,l){Promise.resolve(l).then(function(u){o({value:u,done:a})},s)}}function tC(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var VD=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},fp=function(e){return fp=Object.getOwnPropertyNames||function(t){var n=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[n.length]=r);return n},fp(e)};function nC(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=fp(e),r=0;r<n.length;r++)n[r]!=="default"&&bf(t,e,n[r]);return VD(t,e),t}function rC(e){return e&&e.__esModule?e:{default:e}}function iC(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)}function oC(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n}function sC(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function aC(e,t,n){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var r,i;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose],n&&(i=r)}if(typeof r!="function")throw new TypeError("Object not disposable.");i&&(r=function(){try{i.call(this)}catch(o){return Promise.reject(o)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}var zD=typeof SuppressedError=="function"?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function lC(e){function t(o){e.error=e.hasError?new zD(o,e.error,"An error was suppressed during disposal."):o,e.hasError=!0}var n,r=0;function i(){for(;n=e.stack.pop();)try{if(!n.async&&r===1)return r=0,e.stack.push(n),Promise.resolve().then(i);if(n.dispose){var o=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(o).then(i,function(s){return t(s),i()})}else r|=1}catch(s){t(s)}if(r===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return i()}function uC(e,t){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(n,r,i,o,s){return r?t?".jsx":".js":i&&(!o||!s)?n:i+o+"."+s.toLowerCase()+"js"}):e}const BD={__extends:Vb,__assign:vn,__rest:Sf,__decorate:zb,__param:Bb,__esDecorate:Ub,__runInitializers:$b,__propKey:Hb,__setFunctionName:Wb,__metadata:Kb,__awaiter:qb,__generator:Gb,__createBinding:bf,__exportStar:Qb,__values:Oc,__read:oy,__spread:Xb,__spreadArrays:Yb,__spreadArray:sy,__await:Ts,__asyncGenerator:Zb,__asyncDelegator:Jb,__asyncValues:eC,__makeTemplateObject:tC,__importStar:nC,__importDefault:rC,__classPrivateFieldGet:iC,__classPrivateFieldSet:oC,__classPrivateFieldIn:sC,__addDisposableResource:aC,__disposeResources:lC,__rewriteRelativeImportExtension:uC},UD=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:aC,get __assign(){return vn},__asyncDelegator:Jb,__asyncGenerator:Zb,__asyncValues:eC,__await:Ts,__awaiter:qb,__classPrivateFieldGet:iC,__classPrivateFieldIn:sC,__classPrivateFieldSet:oC,__createBinding:bf,__decorate:zb,__disposeResources:lC,__esDecorate:Ub,__exportStar:Qb,__extends:Vb,__generator:Gb,__importDefault:rC,__importStar:nC,__makeTemplateObject:tC,__metadata:Kb,__param:Bb,__propKey:Hb,__read:oy,__rest:Sf,__rewriteRelativeImportExtension:uC,__runInitializers:$b,__setFunctionName:Wb,__spread:Xb,__spreadArray:sy,__spreadArrays:Yb,__values:Oc,default:BD},Symbol.toStringTag,{value:"Module"}));var Bu="right-scroll-bar-position",Uu="width-before-scroll-bar",$D="with-scroll-bars-hidden",HD="--removed-body-scroll-bar-size";function xd(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function WD(e,t){var n=C.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var KD=typeof window<"u"?C.useLayoutEffect:C.useEffect,d0=new WeakMap;function qD(e,t){var n=WD(null,function(r){return e.forEach(function(i){return xd(i,r)})});return KD(function(){var r=d0.get(n);if(r){var i=new Set(r),o=new Set(e),s=n.current;i.forEach(function(a){o.has(a)||xd(a,null)}),o.forEach(function(a){i.has(a)||xd(a,s)})}d0.set(n,e)},[e]),n}function GD(e){return e}function QD(e,t){t===void 0&&(t=GD);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(o){var s=t(o,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(o){for(r=!0;n.length;){var s=n;n=[],s.forEach(o)}n={push:function(a){return o(a)},filter:function(){return n}}},assignMedium:function(o){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(o),s=n}var l=function(){var c=s;s=[],c.forEach(o)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(c){s.push(c),u()},filter:function(c){return s=s.filter(c),n}}}};return i}function XD(e){e===void 0&&(e={});var t=QD(null);return t.options=vn({async:!0,ssr:!1},e),t}var cC=function(e){var t=e.sideCar,n=Sf(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return C.createElement(r,vn({},n))};cC.isSideCarExport=!0;function YD(e,t){return e.useMedium(t),cC}var fC=XD(),Sd=function(){},Cf=C.forwardRef(function(e,t){var n=C.useRef(null),r=C.useState({onScrollCapture:Sd,onWheelCapture:Sd,onTouchMoveCapture:Sd}),i=r[0],o=r[1],s=e.forwardProps,a=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,f=e.shards,d=e.sideCar,h=e.noRelative,p=e.noIsolation,m=e.inert,v=e.allowPinchZoom,y=e.as,g=y===void 0?"div":y,w=e.gapMode,x=Sf(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=d,T=qD([n,t]),S=vn(vn({},x),i);return C.createElement(C.Fragment,null,c&&C.createElement(E,{sideCar:fC,removeScrollBar:u,shards:f,noRelative:h,noIsolation:p,inert:m,setCallbacks:o,allowPinchZoom:!!v,lockRef:n,gapMode:w}),s?C.cloneElement(C.Children.only(a),vn(vn({},S),{ref:T})):C.createElement(g,vn({},S,{className:l,ref:T}),a))});Cf.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Cf.classNames={fullWidth:Uu,zeroRight:Bu};var ZD=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function JD(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=ZD();return t&&e.setAttribute("nonce",t),e}function eO(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function tO(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var nO=function(){var e=0,t=null;return{add:function(n){e==0&&(t=JD())&&(eO(t,n),tO(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},rO=function(){var e=nO();return function(t,n){C.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},dC=function(){var e=rO(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},iO={left:0,top:0,right:0,gap:0},bd=function(e){return parseInt(e||"",10)||0},oO=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[bd(n),bd(r),bd(i)]},sO=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return iO;var t=oO(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},aO=dC(),rs="data-scroll-locked",lO=function(e,t,n,r){var i=e.left,o=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),`
|
|
389
|
+
*/function Ie(){return Ie=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ie.apply(this,arguments)}var tt;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(tt||(tt={}));const Mv="popstate";function Hj(e){e===void 0&&(e={});function t(r,i){let{pathname:o,search:s,hash:a}=r.location;return el("",{pathname:o,search:s,hash:a},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:El(i)}return nM(t,n,null,e)}function De(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function po(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function tM(){return Math.random().toString(36).substr(2,8)}function Av(e,t){return{usr:e.state,key:e.key,idx:t}}function el(e,t,n,r){return n===void 0&&(n=null),Ie({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?vo(t):t,{state:n,key:t&&t.key||r||tM()})}function El(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function vo(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function nM(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,a=tt.Pop,l=null,u=c();u==null&&(u=0,s.replaceState(Ie({},s.state,{idx:u}),""));function c(){return(s.state||{idx:null}).idx}function f(){a=tt.Pop;let v=c(),y=v==null?null:v-u;u=v,l&&l({action:a,location:m.location,delta:y})}function d(v,y){a=tt.Push;let g=el(m.location,v,y);u=c()+1;let w=Av(g,u),x=m.createHref(g);try{s.pushState(w,"",x)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;i.location.assign(x)}o&&l&&l({action:a,location:m.location,delta:1})}function h(v,y){a=tt.Replace;let g=el(m.location,v,y);u=c();let w=Av(g,u),x=m.createHref(g);s.replaceState(w,"",x),o&&l&&l({action:a,location:m.location,delta:0})}function p(v){let y=i.location.origin!=="null"?i.location.origin:i.location.href,g=typeof v=="string"?v:El(v);return g=g.replace(/ $/,"%20"),De(y,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,y)}let m={get action(){return a},get location(){return e(i,s)},listen(v){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(Mv,f),l=v,()=>{i.removeEventListener(Mv,f),l=null}},createHref(v){return t(i,v)},createURL:p,encodeLocation(v){let y=p(v);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:d,replace:h,go(v){return s.go(v)}};return m}var ke;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(ke||(ke={}));const rM=new Set(["lazy","caseSensitive","path","id","index","children"]);function iM(e){return e.index===!0}function kc(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,o)=>{let s=[...n,String(o)],a=typeof i.id=="string"?i.id:s.join("-");if(De(i.index!==!0||!i.children,"Cannot specify children on an index route"),De(!r[a],'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),iM(i)){let l=Ie({},i,t(i),{id:a});return r[a]=l,l}else{let l=Ie({},i,t(i),{id:a,children:void 0});return r[a]=l,i.children&&(l.children=kc(i.children,t,s,r)),l}})}function Lo(e,t,n){return n===void 0&&(n="/"),Vu(e,t,n,!1)}function Vu(e,t,n,r){let i=typeof t=="string"?vo(t):t,o=yf(i.pathname||"/",n);if(o==null)return null;let s=rb(e);sM(s);let a=null;for(let l=0;a==null&&l<s.length;++l){let u=gM(o);a=mM(s[l],u,r)}return a}function oM(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],handle:n.handle}}function rb(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(o,s,a)=>{let l={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};l.relativePath.startsWith("/")&&(De(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=Pa([r,l.relativePath]),c=n.concat(l);o.children&&o.children.length>0&&(De(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),rb(o.children,t,c,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:hM(u,o.index),routesMeta:c})};return e.forEach((o,s)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))i(o,s);else for(let l of ib(o.path))i(o,s,l)}),t}function ib(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let s=ib(r.join("/")),a=[];return a.push(...s.map(l=>l===""?o:[o,l].join("/"))),i&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function sM(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:pM(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const aM=/^:[\w-]+$/,lM=3,uM=2,cM=1,fM=10,dM=-2,Dv=e=>e==="*";function hM(e,t){let n=e.split("/"),r=n.length;return n.some(Dv)&&(r+=dM),t&&(r+=uM),n.filter(i=>!Dv(i)).reduce((i,o)=>i+(aM.test(o)?lM:o===""?cM:fM),r)}function pM(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function mM(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,i={},o="/",s=[];for(let a=0;a<r.length;++a){let l=r[a],u=a===r.length-1,c=o==="/"?t:t.slice(o.length)||"/",f=Ov({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},c),d=l.route;if(!f&&u&&n&&!r[r.length-1].route.index&&(f=Ov({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},c)),!f)return null;Object.assign(i,f.params),s.push({params:i,pathname:Pa([o,f.pathname]),pathnameBase:CM(Pa([o,f.pathnameBase])),route:d}),f.pathnameBase!=="/"&&(o=Pa([o,f.pathnameBase]))}return s}function Ov(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=yM(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],s=o.replace(/(.)\/+$/,"$1"),a=i.slice(1);return{params:r.reduce((u,c,f)=>{let{paramName:d,isOptional:h}=c;if(d==="*"){let m=a[f]||"";s=o.slice(0,o.length-m.length).replace(/(.)\/+$/,"$1")}const p=a[f];return h&&!p?u[d]=void 0:u[d]=(p||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:s,pattern:e}}function yM(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),po(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function gM(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return po(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function yf(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const vM=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,wM=e=>vM.test(e);function xM(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?vo(e):e,o;if(n)if(wM(n))o=n;else{if(n.includes("//")){let s=n;n=n.replace(/\/\/+/g,"/"),po(!1,"Pathnames cannot have embedded double slashes - normalizing "+(s+" -> "+n))}n.startsWith("/")?o=Lv(n.substring(1),"/"):o=Lv(n,t)}else o=t;return{pathname:o,search:EM(r),hash:kM(i)}}function Lv(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function dd(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function ob(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function SM(e,t){let n=ob(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function bM(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=vo(e):(i=Ie({},e),De(!i.pathname||!i.pathname.includes("?"),dd("?","pathname","search",i)),De(!i.pathname||!i.pathname.includes("#"),dd("#","pathname","hash",i)),De(!i.search||!i.search.includes("#"),dd("#","search","hash",i)));let o=e===""||i.pathname==="",s=o?"/":i.pathname,a;if(s==null)a=n;else{let f=t.length-1;if(!r&&s.startsWith("..")){let d=s.split("/");for(;d[0]==="..";)d.shift(),f-=1;i.pathname=d.join("/")}a=f>=0?t[f]:"/"}let l=xM(i,a),u=s&&s!=="/"&&s.endsWith("/"),c=(o||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const Pa=e=>e.join("/").replace(/\/\/+/g,"/"),CM=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),EM=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,kM=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class np{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function Rc(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const sb=["post","put","patch","delete"],RM=new Set(sb),TM=["get",...sb],PM=new Set(TM),MM=new Set([301,302,303,307,308]),AM=new Set([307,308]),hd={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},DM={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},oa={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Gm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,OM=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),ab="remix-router-transitions";function Kj(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;De(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let R=e.detectErrorBoundary;i=P=>({hasErrorBoundary:R(P)})}else i=OM;let o={},s=kc(e.routes,i,void 0,o),a,l=e.basename||"/",u=e.dataStrategy||NM,c=e.patchRoutesOnNavigation,f=Ie({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),d=null,h=new Set,p=null,m=null,v=null,y=e.hydrationData!=null,g=Lo(s,e.history.location,l),w=!1,x=null;if(g==null&&!c){let R=$t(404,{pathname:e.history.location.pathname}),{matches:P,route:D}=Wv(s);g=P,x={[D.id]:R}}g&&!e.hydrationData&&ot(g,s,e.history.location.pathname).active&&(g=null);let E;if(g)if(g.some(R=>R.route.lazy))E=!1;else if(!g.some(R=>R.route.loader))E=!0;else if(f.v7_partialHydration){let R=e.hydrationData?e.hydrationData.loaderData:null,P=e.hydrationData?e.hydrationData.errors:null;if(P){let D=g.findIndex(N=>P[N.route.id]!==void 0);E=g.slice(0,D+1).every(N=>!ip(N.route,R,P))}else E=g.every(D=>!ip(D.route,R,P))}else E=e.hydrationData!=null;else if(E=!1,g=[],f.v7_partialHydration){let R=ot(null,s,e.history.location.pathname);R.active&&R.matches&&(w=!0,g=R.matches)}let T,S={historyAction:e.history.action,location:e.history.location,matches:g,initialized:E,navigation:hd,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||x,fetchers:new Map,blockers:new Map},b=tt.Pop,A=!1,M,I=!1,z=new Map,W=null,$=!1,oe=!1,U=[],se=new Set,O=new Map,j=0,_=-1,re=new Map,ne=new Set,Te=new Map,be=new Map,ce=new Set,le=new Map,ze=new Map,wt;function Ce(){if(d=e.history.listen(R=>{let{action:P,location:D,delta:N}=R;if(wt){wt(),wt=void 0;return}po(ze.size===0||N!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let V=Vl({currentLocation:S.location,nextLocation:D,historyAction:P});if(V&&N!=null){let Y=new Promise(ie=>{wt=ie});e.history.go(N*-1),Eo(V,{state:"blocked",location:D,proceed(){Eo(V,{state:"proceeding",proceed:void 0,reset:void 0,location:D}),Y.then(()=>e.history.go(N))},reset(){let ie=new Map(S.blockers);ie.set(V,oa),xe({blockers:ie})}});return}return zt(P,D)}),n){XM(t,z);let R=()=>YM(t,z);t.addEventListener("pagehide",R),W=()=>t.removeEventListener("pagehide",R)}return S.initialized||zt(tt.Pop,S.location,{initialHydration:!0}),T}function ge(){d&&d(),W&&W(),h.clear(),M&&M.abort(),S.fetchers.forEach((R,P)=>Zt(P)),S.blockers.forEach((R,P)=>Hs(P))}function cn(R){return h.add(R),()=>h.delete(R)}function xe(R,P){P===void 0&&(P={}),S=Ie({},S,R);let D=[],N=[];f.v7_fetcherPersist&&S.fetchers.forEach((V,Y)=>{V.state==="idle"&&(ce.has(Y)?N.push(Y):D.push(Y))}),ce.forEach(V=>{!S.fetchers.has(V)&&!O.has(V)&&N.push(V)}),[...h].forEach(V=>V(S,{deletedFetchers:N,viewTransitionOpts:P.viewTransitionOpts,flushSync:P.flushSync===!0})),f.v7_fetcherPersist?(D.forEach(V=>S.fetchers.delete(V)),N.forEach(V=>Zt(V))):N.forEach(V=>ce.delete(V))}function ct(R,P,D){var N,V;let{flushSync:Y}=D===void 0?{}:D,ie=S.actionData!=null&&S.navigation.formMethod!=null&&On(S.navigation.formMethod)&&S.navigation.state==="loading"&&((N=R.state)==null?void 0:N._isRedirect)!==!0,H;P.actionData?Object.keys(P.actionData).length>0?H=P.actionData:H=null:ie?H=S.actionData:H=null;let J=P.loaderData?Uv(S.loaderData,P.loaderData,P.matches||[],P.errors):S.loaderData,G=S.blockers;G.size>0&&(G=new Map(G),G.forEach((ye,dt)=>G.set(dt,oa)));let ee=A===!0||S.navigation.formMethod!=null&&On(S.navigation.formMethod)&&((V=R.state)==null?void 0:V._isRedirect)!==!0;a&&(s=a,a=void 0),$||b===tt.Pop||(b===tt.Push?e.history.push(R,R.state):b===tt.Replace&&e.history.replace(R,R.state));let ue;if(b===tt.Pop){let ye=z.get(S.location.pathname);ye&&ye.has(R.pathname)?ue={currentLocation:S.location,nextLocation:R}:z.has(R.pathname)&&(ue={currentLocation:R,nextLocation:S.location})}else if(I){let ye=z.get(S.location.pathname);ye?ye.add(R.pathname):(ye=new Set([R.pathname]),z.set(S.location.pathname,ye)),ue={currentLocation:S.location,nextLocation:R}}xe(Ie({},P,{actionData:H,loaderData:J,historyAction:b,location:R,initialized:!0,navigation:hd,revalidation:"idle",restoreScrollPosition:At(R,P.matches||S.matches),preventScrollReset:ee,blockers:G}),{viewTransitionOpts:ue,flushSync:Y===!0}),b=tt.Pop,A=!1,I=!1,$=!1,oe=!1,U=[]}async function ft(R,P){if(typeof R=="number"){e.history.go(R);return}let D=rp(S.location,S.matches,l,f.v7_prependBasename,R,f.v7_relativeSplatPath,P==null?void 0:P.fromRouteId,P==null?void 0:P.relative),{path:N,submission:V,error:Y}=_v(f.v7_normalizeFormMethod,!1,D,P),ie=S.location,H=el(S.location,N,P&&P.state);H=Ie({},H,e.history.encodeLocation(H));let J=P&&P.replace!=null?P.replace:void 0,G=tt.Push;J===!0?G=tt.Replace:J===!1||V!=null&&On(V.formMethod)&&V.formAction===S.location.pathname+S.location.search&&(G=tt.Replace);let ee=P&&"preventScrollReset"in P?P.preventScrollReset===!0:void 0,ue=(P&&P.flushSync)===!0,ye=Vl({currentLocation:ie,nextLocation:H,historyAction:G});if(ye){Eo(ye,{state:"blocked",location:H,proceed(){Eo(ye,{state:"proceeding",proceed:void 0,reset:void 0,location:H}),ft(R,P)},reset(){let dt=new Map(S.blockers);dt.set(ye,oa),xe({blockers:dt})}});return}return await zt(G,H,{submission:V,pendingError:Y,preventScrollReset:ee,replace:P&&P.replace,enableViewTransition:P&&P.viewTransition,flushSync:ue})}function Fr(){if(Wn(),xe({revalidation:"loading"}),S.navigation.state!=="submitting"){if(S.navigation.state==="idle"){zt(S.historyAction,S.location,{startUninterruptedRevalidation:!0});return}zt(b||S.historyAction,S.navigation.location,{overrideNavigation:S.navigation,enableViewTransition:I===!0})}}async function zt(R,P,D){M&&M.abort(),M=null,b=R,$=(D&&D.startUninterruptedRevalidation)===!0,Kn(S.location,S.matches),A=(D&&D.preventScrollReset)===!0,I=(D&&D.enableViewTransition)===!0;let N=a||s,V=D&&D.overrideNavigation,Y=D!=null&&D.initialHydration&&S.matches&&S.matches.length>0&&!w?S.matches:Lo(N,P,l),ie=(D&&D.flushSync)===!0;if(Y&&S.initialized&&!oe&&UM(S.location,P)&&!(D&&D.submission&&On(D.submission.formMethod))){ct(P,{matches:Y},{flushSync:ie});return}let H=ot(Y,N,P.pathname);if(H.active&&H.matches&&(Y=H.matches),!Y){let{error:Ae,notFoundMatches:Se,route:Be}=Ks(P.pathname);ct(P,{matches:Se,loaderData:{},errors:{[Be.id]:Ae}},{flushSync:ie});return}M=new AbortController;let J=Mo(e.history,P,M.signal,D&&D.submission),G;if(D&&D.pendingError)G=[Fi(Y).route.id,{type:ke.error,error:D.pendingError}];else if(D&&D.submission&&On(D.submission.formMethod)){let Ae=await Ll(J,P,D.submission,Y,H.active,{replace:D.replace,flushSync:ie});if(Ae.shortCircuited)return;if(Ae.pendingActionResult){let[Se,Be]=Ae.pendingActionResult;if(en(Be)&&Rc(Be.error)&&Be.error.status===404){M=null,ct(P,{matches:Ae.matches,loaderData:{},errors:{[Se]:Be.error}});return}}Y=Ae.matches||Y,G=Ae.pendingActionResult,V=pd(P,D.submission),ie=!1,H.active=!1,J=Mo(e.history,J.url,J.signal)}let{shortCircuited:ee,matches:ue,loaderData:ye,errors:dt}=await _l(J,P,Y,H.active,V,D&&D.submission,D&&D.fetcherSubmission,D&&D.replace,D&&D.initialHydration===!0,ie,G);ee||(M=null,ct(P,Ie({matches:ue||Y},$v(G),{loaderData:ye,errors:dt})))}async function Ll(R,P,D,N,V,Y){Y===void 0&&(Y={}),Wn();let ie=GM(P,D);if(xe({navigation:ie},{flushSync:Y.flushSync===!0}),V){let G=await Dt(N,P.pathname,R.signal);if(G.type==="aborted")return{shortCircuited:!0};if(G.type==="error"){let ee=Fi(G.partialMatches).route.id;return{matches:G.partialMatches,pendingActionResult:[ee,{type:ke.error,error:G.error}]}}else if(G.matches)N=G.matches;else{let{notFoundMatches:ee,error:ue,route:ye}=Ks(P.pathname);return{matches:ee,pendingActionResult:[ye.id,{type:ke.error,error:ue}]}}}let H,J=ga(N,P);if(!J.route.action&&!J.route.lazy)H={type:ke.error,error:$t(405,{method:R.method,pathname:P.pathname,routeId:J.route.id})};else if(H=(await Mi("action",S,R,[J],N,null))[J.route.id],R.signal.aborted)return{shortCircuited:!0};if($i(H)){let G;return Y&&Y.replace!=null?G=Y.replace:G=Vv(H.response.headers.get("Location"),new URL(R.url),l,e.history)===S.location.pathname+S.location.search,await $n(R,H,!0,{submission:D,replace:G}),{shortCircuited:!0}}if(ai(H))throw $t(400,{type:"defer-action"});if(en(H)){let G=Fi(N,J.route.id);return(Y&&Y.replace)!==!0&&(b=tt.Push),{matches:N,pendingActionResult:[G.route.id,H]}}return{matches:N,pendingActionResult:[J.route.id,H]}}async function _l(R,P,D,N,V,Y,ie,H,J,G,ee){let ue=V||pd(P,Y),ye=Y||ie||Kv(ue),dt=!$&&(!f.v7_partialHydration||!J);if(N){if(dt){let Ue=xo(ee);xe(Ie({navigation:ue},Ue!==void 0?{actionData:Ue}:{}),{flushSync:G})}let we=await Dt(D,P.pathname,R.signal);if(we.type==="aborted")return{shortCircuited:!0};if(we.type==="error"){let Ue=Fi(we.partialMatches).route.id;return{matches:we.partialMatches,loaderData:{},errors:{[Ue]:we.error}}}else if(we.matches)D=we.matches;else{let{error:Ue,notFoundMatches:Ro,route:Qs}=Ks(P.pathname);return{matches:Ro,loaderData:{},errors:{[Qs.id]:Ue}}}}let Ae=a||s,[Se,Be]=Nv(e.history,S,D,ye,P,f.v7_partialHydration&&J===!0,f.v7_skipActionErrorRevalidation,oe,U,se,ce,Te,ne,Ae,l,ee);if(qe(we=>!(D&&D.some(Ue=>Ue.route.id===we))||Se&&Se.some(Ue=>Ue.route.id===we)),_=++j,Se.length===0&&Be.length===0){let we=Co();return ct(P,Ie({matches:D,loaderData:{},errors:ee&&en(ee[1])?{[ee[0]]:ee[1].error}:null},$v(ee),we?{fetchers:new Map(S.fetchers)}:{}),{flushSync:G}),{shortCircuited:!0}}if(dt){let we={};if(!N){we.navigation=ue;let Ue=xo(ee);Ue!==void 0&&(we.actionData=Ue)}Be.length>0&&(we.fetchers=Un(Be)),xe(we,{flushSync:G})}Be.forEach(we=>{Hn(we.key),we.controller&&O.set(we.key,we.controller)});let ko=()=>Be.forEach(we=>Hn(we.key));M&&M.signal.addEventListener("abort",ko);let{loaderResults:qs,fetcherResults:cr}=await Nl(S,D,Se,Be,R);if(R.signal.aborted)return{shortCircuited:!0};M&&M.signal.removeEventListener("abort",ko),Be.forEach(we=>O.delete(we.key));let qn=lu(qs);if(qn)return await $n(R,qn.result,!0,{replace:H}),{shortCircuited:!0};if(qn=lu(cr),qn)return ne.add(qn.key),await $n(R,qn.result,!0,{replace:H}),{shortCircuited:!0};let{loaderData:_f,errors:Gs}=Bv(S,D,qs,ee,Be,cr,le);le.forEach((we,Ue)=>{we.subscribe(Ro=>{(Ro||we.done)&&le.delete(Ue)})}),f.v7_partialHydration&&J&&S.errors&&(Gs=Ie({},S.errors,Gs));let Ai=Co(),zl=Ws(_),Bl=Ai||zl||Be.length>0;return Ie({matches:D,loaderData:_f,errors:Gs},Bl?{fetchers:new Map(S.fetchers)}:{})}function xo(R){if(R&&!en(R[1]))return{[R[0]]:R[1].data};if(S.actionData)return Object.keys(S.actionData).length===0?null:S.actionData}function Un(R){return R.forEach(P=>{let D=S.fetchers.get(P.key),N=sa(void 0,D?D.data:void 0);S.fetchers.set(P.key,N)}),new Map(S.fetchers)}function So(R,P,D,N){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");Hn(R);let V=(N&&N.flushSync)===!0,Y=a||s,ie=rp(S.location,S.matches,l,f.v7_prependBasename,D,f.v7_relativeSplatPath,P,N==null?void 0:N.relative),H=Lo(Y,ie,l),J=ot(H,Y,ie);if(J.active&&J.matches&&(H=J.matches),!H){Pt(R,P,$t(404,{pathname:ie}),{flushSync:V});return}let{path:G,submission:ee,error:ue}=_v(f.v7_normalizeFormMethod,!0,ie,N);if(ue){Pt(R,P,ue,{flushSync:V});return}let ye=ga(H,G),dt=(N&&N.preventScrollReset)===!0;if(ee&&On(ee.formMethod)){bo(R,P,G,ye,H,J.active,V,dt,ee);return}Te.set(R,{routeId:P,path:G}),Il(R,P,G,ye,H,J.active,V,dt,ee)}async function bo(R,P,D,N,V,Y,ie,H,J){Wn(),Te.delete(R);function G(Ge){if(!Ge.route.action&&!Ge.route.lazy){let To=$t(405,{method:J.formMethod,pathname:D,routeId:P});return Pt(R,P,To,{flushSync:ie}),!0}return!1}if(!Y&&G(N))return;let ee=S.fetchers.get(R);Tt(R,QM(J,ee),{flushSync:ie});let ue=new AbortController,ye=Mo(e.history,D,ue.signal,J);if(Y){let Ge=await Dt(V,new URL(ye.url).pathname,ye.signal,R);if(Ge.type==="aborted")return;if(Ge.type==="error"){Pt(R,P,Ge.error,{flushSync:ie});return}else if(Ge.matches){if(V=Ge.matches,N=ga(V,D),G(N))return}else{Pt(R,P,$t(404,{pathname:D}),{flushSync:ie});return}}O.set(R,ue);let dt=j,Se=(await Mi("action",S,ye,[N],V,R))[N.route.id];if(ye.signal.aborted){O.get(R)===ue&&O.delete(R);return}if(f.v7_fetcherPersist&&ce.has(R)){if($i(Se)||en(Se)){Tt(R,$r(void 0));return}}else{if($i(Se))if(O.delete(R),_>dt){Tt(R,$r(void 0));return}else return ne.add(R),Tt(R,sa(J)),$n(ye,Se,!1,{fetcherSubmission:J,preventScrollReset:H});if(en(Se)){Pt(R,P,Se.error);return}}if(ai(Se))throw $t(400,{type:"defer-action"});let Be=S.navigation.location||S.location,ko=Mo(e.history,Be,ue.signal),qs=a||s,cr=S.navigation.state!=="idle"?Lo(qs,S.navigation.location,l):S.matches;De(cr,"Didn't find any matches after fetcher action");let qn=++j;re.set(R,qn);let _f=sa(J,Se.data);S.fetchers.set(R,_f);let[Gs,Ai]=Nv(e.history,S,cr,J,Be,!1,f.v7_skipActionErrorRevalidation,oe,U,se,ce,Te,ne,qs,l,[N.route.id,Se]);Ai.filter(Ge=>Ge.key!==R).forEach(Ge=>{let To=Ge.key,Wy=S.fetchers.get(To),Rk=sa(void 0,Wy?Wy.data:void 0);S.fetchers.set(To,Rk),Hn(To),Ge.controller&&O.set(To,Ge.controller)}),xe({fetchers:new Map(S.fetchers)});let zl=()=>Ai.forEach(Ge=>Hn(Ge.key));ue.signal.addEventListener("abort",zl);let{loaderResults:Bl,fetcherResults:we}=await Nl(S,cr,Gs,Ai,ko);if(ue.signal.aborted)return;ue.signal.removeEventListener("abort",zl),re.delete(R),O.delete(R),Ai.forEach(Ge=>O.delete(Ge.key));let Ue=lu(Bl);if(Ue)return $n(ko,Ue.result,!1,{preventScrollReset:H});if(Ue=lu(we),Ue)return ne.add(Ue.key),$n(ko,Ue.result,!1,{preventScrollReset:H});let{loaderData:Ro,errors:Qs}=Bv(S,cr,Bl,void 0,Ai,we,le);if(S.fetchers.has(R)){let Ge=$r(Se.data);S.fetchers.set(R,Ge)}Ws(qn),S.navigation.state==="loading"&&qn>_?(De(b,"Expected pending action"),M&&M.abort(),ct(S.navigation.location,{matches:cr,loaderData:Ro,errors:Qs,fetchers:new Map(S.fetchers)})):(xe({errors:Qs,loaderData:Uv(S.loaderData,Ro,cr,Qs),fetchers:new Map(S.fetchers)}),oe=!1)}async function Il(R,P,D,N,V,Y,ie,H,J){let G=S.fetchers.get(R);Tt(R,sa(J,G?G.data:void 0),{flushSync:ie});let ee=new AbortController,ue=Mo(e.history,D,ee.signal);if(Y){let Se=await Dt(V,new URL(ue.url).pathname,ue.signal,R);if(Se.type==="aborted")return;if(Se.type==="error"){Pt(R,P,Se.error,{flushSync:ie});return}else if(Se.matches)V=Se.matches,N=ga(V,D);else{Pt(R,P,$t(404,{pathname:D}),{flushSync:ie});return}}O.set(R,ee);let ye=j,Ae=(await Mi("loader",S,ue,[N],V,R))[N.route.id];if(ai(Ae)&&(Ae=await Qm(Ae,ue.signal,!0)||Ae),O.get(R)===ee&&O.delete(R),!ue.signal.aborted){if(ce.has(R)){Tt(R,$r(void 0));return}if($i(Ae))if(_>ye){Tt(R,$r(void 0));return}else{ne.add(R),await $n(ue,Ae,!1,{preventScrollReset:H});return}if(en(Ae)){Pt(R,P,Ae.error);return}De(!ai(Ae),"Unhandled fetcher deferred data"),Tt(R,$r(Ae.data))}}async function $n(R,P,D,N){let{submission:V,fetcherSubmission:Y,preventScrollReset:ie,replace:H}=N===void 0?{}:N;P.response.headers.has("X-Remix-Revalidate")&&(oe=!0);let J=P.response.headers.get("Location");De(J,"Expected a Location header on the redirect Response"),J=Vv(J,new URL(R.url),l,e.history);let G=el(S.location,J,{_isRedirect:!0});if(n){let Se=!1;if(P.response.headers.has("X-Remix-Reload-Document"))Se=!0;else if(Gm.test(J)){const Be=e.history.createURL(J);Se=Be.origin!==t.location.origin||yf(Be.pathname,l)==null}if(Se){H?t.location.replace(J):t.location.assign(J);return}}M=null;let ee=H===!0||P.response.headers.has("X-Remix-Replace")?tt.Replace:tt.Push,{formMethod:ue,formAction:ye,formEncType:dt}=S.navigation;!V&&!Y&&ue&&ye&&dt&&(V=Kv(S.navigation));let Ae=V||Y;if(AM.has(P.response.status)&&Ae&&On(Ae.formMethod))await zt(ee,G,{submission:Ie({},Ae,{formAction:J}),preventScrollReset:ie||A,enableViewTransition:D?I:void 0});else{let Se=pd(G,V);await zt(ee,G,{overrideNavigation:Se,fetcherSubmission:Y,preventScrollReset:ie||A,enableViewTransition:D?I:void 0})}}async function Mi(R,P,D,N,V,Y){let ie,H={};try{ie=await FM(u,R,P,D,N,V,Y,o,i)}catch(J){return N.forEach(G=>{H[G.route.id]={type:ke.error,error:J}}),H}for(let[J,G]of Object.entries(ie))if($M(G)){let ee=G.result;H[J]={type:ke.redirect,response:zM(ee,D,J,V,l,f.v7_relativeSplatPath)}}else H[J]=await VM(G);return H}async function Nl(R,P,D,N,V){let Y=R.matches,ie=Mi("loader",R,V,D,P,null),H=Promise.all(N.map(async ee=>{if(ee.matches&&ee.match&&ee.controller){let ye=(await Mi("loader",R,Mo(e.history,ee.path,ee.controller.signal),[ee.match],ee.matches,ee.key))[ee.match.route.id];return{[ee.key]:ye}}else return Promise.resolve({[ee.key]:{type:ke.error,error:$t(404,{pathname:ee.path})}})})),J=await ie,G=(await H).reduce((ee,ue)=>Object.assign(ee,ue),{});return await Promise.all([KM(P,J,V.signal,Y,R.loaderData),qM(P,G,N)]),{loaderResults:J,fetcherResults:G}}function Wn(){oe=!0,U.push(...qe()),Te.forEach((R,P)=>{O.has(P)&&se.add(P),Hn(P)})}function Tt(R,P,D){D===void 0&&(D={}),S.fetchers.set(R,P),xe({fetchers:new Map(S.fetchers)},{flushSync:(D&&D.flushSync)===!0})}function Pt(R,P,D,N){N===void 0&&(N={});let V=Fi(S.matches,P);Zt(R),xe({errors:{[V.route.id]:D},fetchers:new Map(S.fetchers)},{flushSync:(N&&N.flushSync)===!0})}function $s(R){return be.set(R,(be.get(R)||0)+1),ce.has(R)&&ce.delete(R),S.fetchers.get(R)||DM}function Zt(R){let P=S.fetchers.get(R);O.has(R)&&!(P&&P.state==="loading"&&re.has(R))&&Hn(R),Te.delete(R),re.delete(R),ne.delete(R),f.v7_fetcherPersist&&ce.delete(R),se.delete(R),S.fetchers.delete(R)}function Fl(R){let P=(be.get(R)||0)-1;P<=0?(be.delete(R),ce.add(R),f.v7_fetcherPersist||Zt(R)):be.set(R,P),xe({fetchers:new Map(S.fetchers)})}function Hn(R){let P=O.get(R);P&&(P.abort(),O.delete(R))}function jl(R){for(let P of R){let D=$s(P),N=$r(D.data);S.fetchers.set(P,N)}}function Co(){let R=[],P=!1;for(let D of ne){let N=S.fetchers.get(D);De(N,"Expected fetcher: "+D),N.state==="loading"&&(ne.delete(D),R.push(D),P=!0)}return jl(R),P}function Ws(R){let P=[];for(let[D,N]of re)if(N<R){let V=S.fetchers.get(D);De(V,"Expected fetcher: "+D),V.state==="loading"&&(Hn(D),re.delete(D),P.push(D))}return jl(P),P.length>0}function Lf(R,P){let D=S.blockers.get(R)||oa;return ze.get(R)!==P&&ze.set(R,P),D}function Hs(R){S.blockers.delete(R),ze.delete(R)}function Eo(R,P){let D=S.blockers.get(R)||oa;De(D.state==="unblocked"&&P.state==="blocked"||D.state==="blocked"&&P.state==="blocked"||D.state==="blocked"&&P.state==="proceeding"||D.state==="blocked"&&P.state==="unblocked"||D.state==="proceeding"&&P.state==="unblocked","Invalid blocker state transition: "+D.state+" -> "+P.state);let N=new Map(S.blockers);N.set(R,P),xe({blockers:N})}function Vl(R){let{currentLocation:P,nextLocation:D,historyAction:N}=R;if(ze.size===0)return;ze.size>1&&po(!1,"A router only supports one blocker at a time");let V=Array.from(ze.entries()),[Y,ie]=V[V.length-1],H=S.blockers.get(Y);if(!(H&&H.state==="proceeding")&&ie({currentLocation:P,nextLocation:D,historyAction:N}))return Y}function Ks(R){let P=$t(404,{pathname:R}),D=a||s,{matches:N,route:V}=Wv(D);return qe(),{notFoundMatches:N,route:V,error:P}}function qe(R){let P=[];return le.forEach((D,N)=>{(!R||R(N))&&(D.cancel(),P.push(N),le.delete(N))}),P}function Mt(R,P,D){if(p=R,v=P,m=D||null,!y&&S.navigation===hd){y=!0;let N=At(S.location,S.matches);N!=null&&xe({restoreScrollPosition:N})}return()=>{p=null,v=null,m=null}}function xt(R,P){return m&&m(R,P.map(N=>oM(N,S.loaderData)))||R.key}function Kn(R,P){if(p&&v){let D=xt(R,P);p[D]=v()}}function At(R,P){if(p){let D=xt(R,P),N=p[D];if(typeof N=="number")return N}return null}function ot(R,P,D){if(c)if(R){if(Object.keys(R[0].params).length>0)return{active:!0,matches:Vu(P,D,l,!0)}}else return{active:!0,matches:Vu(P,D,l,!0)||[]};return{active:!1,matches:null}}async function Dt(R,P,D,N){if(!c)return{type:"success",matches:R};let V=R;for(;;){let Y=a==null,ie=a||s,H=o;try{await c({signal:D,path:P,matches:V,fetcherKey:N,patch:(ee,ue)=>{D.aborted||jv(ee,ue,ie,H,i)}})}catch(ee){return{type:"error",error:ee,partialMatches:V}}finally{Y&&!D.aborted&&(s=[...s])}if(D.aborted)return{type:"aborted"};let J=Lo(ie,P,l);if(J)return{type:"success",matches:J};let G=Vu(ie,P,l,!0);if(!G||V.length===G.length&&V.every((ee,ue)=>ee.route.id===G[ue].route.id))return{type:"success",matches:null};V=G}}function jr(R){o={},a=kc(R,i,void 0,o)}function Ze(R,P){let D=a==null;jv(R,P,a||s,o,i),D&&(s=[...s],xe({}))}return T={get basename(){return l},get future(){return f},get state(){return S},get routes(){return s},get window(){return t},initialize:Ce,subscribe:cn,enableScrollRestoration:Mt,navigate:ft,fetch:So,revalidate:Fr,createHref:R=>e.history.createHref(R),encodeLocation:R=>e.history.encodeLocation(R),getFetcher:$s,deleteFetcher:Fl,dispose:ge,getBlocker:Lf,deleteBlocker:Hs,patchRoutes:Ze,_internalFetchControllers:O,_internalActiveDeferreds:le,_internalSetRoutes:jr},T}function LM(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function rp(e,t,n,r,i,o,s,a){let l,u;if(s){l=[];for(let f of t)if(l.push(f),f.route.id===s){u=f;break}}else l=t,u=t[t.length-1];let c=bM(i||".",SM(l,o),yf(e.pathname,n)||e.pathname,a==="path");if(i==null&&(c.search=e.search,c.hash=e.hash),(i==null||i===""||i===".")&&u){let f=Xm(c.search);if(u.route.index&&!f)c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index";else if(!u.route.index&&f){let d=new URLSearchParams(c.search),h=d.getAll("index");d.delete("index"),h.filter(m=>m).forEach(m=>d.append("index",m));let p=d.toString();c.search=p?"?"+p:""}}return r&&n!=="/"&&(c.pathname=c.pathname==="/"?n:Pa([n,c.pathname])),El(c)}function _v(e,t,n,r){if(!r||!LM(r))return{path:n};if(r.formMethod&&!HM(r.formMethod))return{path:n,error:$t(405,{method:r.formMethod})};let i=()=>({path:n,error:$t(400,{type:"invalid-body"})}),o=r.formMethod||"get",s=e?o.toUpperCase():o.toLowerCase(),a=cb(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!On(s))return i();let d=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((h,p)=>{let[m,v]=p;return""+h+m+"="+v+`
|
|
390
|
+
`},""):String(r.body);return{path:n,submission:{formMethod:s,formAction:a,formEncType:r.formEncType,formData:void 0,json:void 0,text:d}}}else if(r.formEncType==="application/json"){if(!On(s))return i();try{let d=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:s,formAction:a,formEncType:r.formEncType,formData:void 0,json:d,text:void 0}}}catch{return i()}}}De(typeof FormData=="function","FormData is not available in this environment");let l,u;if(r.formData)l=op(r.formData),u=r.formData;else if(r.body instanceof FormData)l=op(r.body),u=r.body;else if(r.body instanceof URLSearchParams)l=r.body,u=zv(l);else if(r.body==null)l=new URLSearchParams,u=new FormData;else try{l=new URLSearchParams(r.body),u=zv(l)}catch{return i()}let c={formMethod:s,formAction:a,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(On(c.formMethod))return{path:n,submission:c};let f=vo(n);return t&&f.search&&Xm(f.search)&&l.append("index",""),f.search="?"+l,{path:El(f),submission:c}}function Iv(e,t,n){n===void 0&&(n=!1);let r=e.findIndex(i=>i.route.id===t);return r>=0?e.slice(0,n?r+1:r):e}function Nv(e,t,n,r,i,o,s,a,l,u,c,f,d,h,p,m){let v=m?en(m[1])?m[1].error:m[1].data:void 0,y=e.createURL(t.location),g=e.createURL(i),w=n;o&&t.errors?w=Iv(n,Object.keys(t.errors)[0],!0):m&&en(m[1])&&(w=Iv(n,m[0]));let x=m?m[1].statusCode:void 0,E=s&&x&&x>=400,T=w.filter((b,A)=>{let{route:M}=b;if(M.lazy)return!0;if(M.loader==null)return!1;if(o)return ip(M,t.loaderData,t.errors);if(_M(t.loaderData,t.matches[A],b)||l.some(W=>W===b.route.id))return!0;let I=t.matches[A],z=b;return Fv(b,Ie({currentUrl:y,currentParams:I.params,nextUrl:g,nextParams:z.params},r,{actionResult:v,actionStatus:x,defaultShouldRevalidate:E?!1:a||y.pathname+y.search===g.pathname+g.search||y.search!==g.search||lb(I,z)}))}),S=[];return f.forEach((b,A)=>{if(o||!n.some($=>$.route.id===b.routeId)||c.has(A))return;let M=Lo(h,b.path,p);if(!M){S.push({key:A,routeId:b.routeId,path:b.path,matches:null,match:null,controller:null});return}let I=t.fetchers.get(A),z=ga(M,b.path),W=!1;d.has(A)?W=!1:u.has(A)?(u.delete(A),W=!0):I&&I.state!=="idle"&&I.data===void 0?W=a:W=Fv(z,Ie({currentUrl:y,currentParams:t.matches[t.matches.length-1].params,nextUrl:g,nextParams:n[n.length-1].params},r,{actionResult:v,actionStatus:x,defaultShouldRevalidate:E?!1:a})),W&&S.push({key:A,routeId:b.routeId,path:b.path,matches:M,match:z,controller:new AbortController})}),[T,S]}function ip(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=t!=null&&t[e.id]!==void 0,i=n!=null&&n[e.id]!==void 0;return!r&&i?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!r&&!i}function _M(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function lb(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Fv(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function jv(e,t,n,r,i){var o;let s;if(e){let u=r[e];De(u,"No route found to patch children into: routeId = "+e),u.children||(u.children=[]),s=u.children}else s=n;let a=t.filter(u=>!s.some(c=>ub(u,c))),l=kc(a,i,[e||"_","patch",String(((o=s)==null?void 0:o.length)||"0")],r);s.push(...l)}function ub(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((n,r)=>{var i;return(i=t.children)==null?void 0:i.some(o=>ub(n,o))}):!1}async function IM(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];De(i,"No route found in manifest");let o={};for(let s in r){let l=i[s]!==void 0&&s!=="hasErrorBoundary";po(!l,'Route "'+i.id+'" has a static property "'+s+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+s+'" will be ignored.')),!l&&!rM.has(s)&&(o[s]=r[s])}Object.assign(i,o),Object.assign(i,Ie({},t(i),{lazy:void 0}))}async function NM(e){let{matches:t}=e,n=t.filter(i=>i.shouldLoad);return(await Promise.all(n.map(i=>i.resolve()))).reduce((i,o,s)=>Object.assign(i,{[n[s].route.id]:o}),{})}async function FM(e,t,n,r,i,o,s,a,l,u){let c=o.map(h=>h.route.lazy?IM(h.route,l,a):void 0),f=o.map((h,p)=>{let m=c[p],v=i.some(g=>g.route.id===h.route.id);return Ie({},h,{shouldLoad:v,resolve:async g=>(g&&r.method==="GET"&&(h.route.lazy||h.route.loader)&&(v=!0),v?jM(t,r,h,m,g,u):Promise.resolve({type:ke.data,result:void 0}))})}),d=await e({matches:f,request:r,params:o[0].params,fetcherKey:s,context:u});try{await Promise.all(c)}catch{}return d}async function jM(e,t,n,r,i,o){let s,a,l=u=>{let c,f=new Promise((p,m)=>c=m);a=()=>c(),t.signal.addEventListener("abort",a);let d=p=>typeof u!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):u({request:t,params:n.params,context:o},...p!==void 0?[p]:[]),h=(async()=>{try{return{type:"data",result:await(i?i(m=>d(m)):d())}}catch(p){return{type:"error",result:p}}})();return Promise.race([h,f])};try{let u=n.route[e];if(r)if(u){let c,[f]=await Promise.all([l(u).catch(d=>{c=d}),r]);if(c!==void 0)throw c;s=f}else if(await r,u=n.route[e],u)s=await l(u);else if(e==="action"){let c=new URL(t.url),f=c.pathname+c.search;throw $t(405,{method:t.method,pathname:f,routeId:n.route.id})}else return{type:ke.data,result:void 0};else if(u)s=await l(u);else{let c=new URL(t.url),f=c.pathname+c.search;throw $t(404,{pathname:f})}De(s.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(u){return{type:ke.error,result:u}}finally{a&&t.signal.removeEventListener("abort",a)}return s}async function VM(e){let{result:t,type:n}=e;if(fb(t)){let f;try{let d=t.headers.get("Content-Type");d&&/\bapplication\/json\b/.test(d)?t.body==null?f=null:f=await t.json():f=await t.text()}catch(d){return{type:ke.error,error:d}}return n===ke.error?{type:ke.error,error:new np(t.status,t.statusText,f),statusCode:t.status,headers:t.headers}:{type:ke.data,data:f,statusCode:t.status,headers:t.headers}}if(n===ke.error){if(Hv(t)){var r,i;if(t.data instanceof Error){var o,s;return{type:ke.error,error:t.data,statusCode:(o=t.init)==null?void 0:o.status,headers:(s=t.init)!=null&&s.headers?new Headers(t.init.headers):void 0}}return{type:ke.error,error:new np(((r=t.init)==null?void 0:r.status)||500,void 0,t.data),statusCode:Rc(t)?t.status:void 0,headers:(i=t.init)!=null&&i.headers?new Headers(t.init.headers):void 0}}return{type:ke.error,error:t,statusCode:Rc(t)?t.status:void 0}}if(WM(t)){var a,l;return{type:ke.deferred,deferredData:t,statusCode:(a=t.init)==null?void 0:a.status,headers:((l=t.init)==null?void 0:l.headers)&&new Headers(t.init.headers)}}if(Hv(t)){var u,c;return{type:ke.data,data:t.data,statusCode:(u=t.init)==null?void 0:u.status,headers:(c=t.init)!=null&&c.headers?new Headers(t.init.headers):void 0}}return{type:ke.data,data:t}}function zM(e,t,n,r,i,o){let s=e.headers.get("Location");if(De(s,"Redirects returned/thrown from loaders/actions must have a Location header"),!Gm.test(s)){let a=r.slice(0,r.findIndex(l=>l.route.id===n)+1);s=rp(new URL(t.url),a,i,!0,s,o),e.headers.set("Location",s)}return e}function Vv(e,t,n,r){let i=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(Gm.test(e)){let o=e,s=o.startsWith("//")?new URL(t.protocol+o):new URL(o);if(i.includes(s.protocol))throw new Error("Invalid redirect location");let a=yf(s.pathname,n)!=null;if(s.origin===t.origin&&a)return s.pathname+s.search+s.hash}try{let o=r.createURL(e);if(i.includes(o.protocol))throw new Error("Invalid redirect location")}catch{}return e}function Mo(e,t,n,r){let i=e.createURL(cb(t)).toString(),o={signal:n};if(r&&On(r.formMethod)){let{formMethod:s,formEncType:a}=r;o.method=s.toUpperCase(),a==="application/json"?(o.headers=new Headers({"Content-Type":a}),o.body=JSON.stringify(r.json)):a==="text/plain"?o.body=r.text:a==="application/x-www-form-urlencoded"&&r.formData?o.body=op(r.formData):o.body=r.formData}return new Request(i,o)}function op(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function zv(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function BM(e,t,n,r,i){let o={},s=null,a,l=!1,u={},c=n&&en(n[1])?n[1].error:void 0;return e.forEach(f=>{if(!(f.route.id in t))return;let d=f.route.id,h=t[d];if(De(!$i(h),"Cannot handle redirect results in processLoaderData"),en(h)){let p=h.error;c!==void 0&&(p=c,c=void 0),s=s||{};{let m=Fi(e,d);s[m.route.id]==null&&(s[m.route.id]=p)}o[d]=void 0,l||(l=!0,a=Rc(h.error)?h.error.status:500),h.headers&&(u[d]=h.headers)}else ai(h)?(r.set(d,h.deferredData),o[d]=h.deferredData.data,h.statusCode!=null&&h.statusCode!==200&&!l&&(a=h.statusCode),h.headers&&(u[d]=h.headers)):(o[d]=h.data,h.statusCode&&h.statusCode!==200&&!l&&(a=h.statusCode),h.headers&&(u[d]=h.headers))}),c!==void 0&&n&&(s={[n[0]]:c},o[n[0]]=void 0),{loaderData:o,errors:s,statusCode:a||200,loaderHeaders:u}}function Bv(e,t,n,r,i,o,s){let{loaderData:a,errors:l}=BM(t,n,r,s);return i.forEach(u=>{let{key:c,match:f,controller:d}=u,h=o[c];if(De(h,"Did not find corresponding fetcher result"),!(d&&d.signal.aborted))if(en(h)){let p=Fi(e.matches,f==null?void 0:f.route.id);l&&l[p.route.id]||(l=Ie({},l,{[p.route.id]:h.error})),e.fetchers.delete(c)}else if($i(h))De(!1,"Unhandled fetcher revalidation redirect");else if(ai(h))De(!1,"Unhandled fetcher deferred data");else{let p=$r(h.data);e.fetchers.set(c,p)}}),{loaderData:a,errors:l}}function Uv(e,t,n,r){let i=Ie({},t);for(let o of n){let s=o.route.id;if(t.hasOwnProperty(s)?t[s]!==void 0&&(i[s]=t[s]):e[s]!==void 0&&o.route.loader&&(i[s]=e[s]),r&&r.hasOwnProperty(s))break}return i}function $v(e){return e?en(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Fi(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function Wv(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function $t(e,t){let{pathname:n,routeId:r,method:i,type:o,message:s}=t===void 0?{}:t,a="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(a="Bad Request",i&&n&&r?l="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":o==="defer-action"?l="defer() is not supported in actions":o==="invalid-body"&&(l="Unable to encode submission body")):e===403?(a="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):e===404?(a="Not Found",l='No route matches URL "'+n+'"'):e===405&&(a="Method Not Allowed",i&&n&&r?l="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(l='Invalid request method "'+i.toUpperCase()+'"')),new np(e||500,a,new Error(l),!0)}function lu(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,i]=t[n];if($i(i))return{key:r,result:i}}}function cb(e){let t=typeof e=="string"?vo(e):e;return El(Ie({},t,{hash:""}))}function UM(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function $M(e){return fb(e.result)&&MM.has(e.result.status)}function ai(e){return e.type===ke.deferred}function en(e){return e.type===ke.error}function $i(e){return(e&&e.type)===ke.redirect}function Hv(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function WM(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function fb(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function HM(e){return PM.has(e.toLowerCase())}function On(e){return RM.has(e.toLowerCase())}async function KM(e,t,n,r,i){let o=Object.entries(t);for(let s=0;s<o.length;s++){let[a,l]=o[s],u=e.find(d=>(d==null?void 0:d.route.id)===a);if(!u)continue;let c=r.find(d=>d.route.id===u.route.id),f=c!=null&&!lb(c,u)&&(i&&i[u.route.id])!==void 0;ai(l)&&f&&await Qm(l,n,!1).then(d=>{d&&(t[a]=d)})}}async function qM(e,t,n){for(let r=0;r<n.length;r++){let{key:i,routeId:o,controller:s}=n[r],a=t[i];e.find(u=>(u==null?void 0:u.route.id)===o)&&ai(a)&&(De(s,"Expected an AbortController for revalidating fetcher deferred result"),await Qm(a,s.signal,!0).then(u=>{u&&(t[i]=u)}))}}async function Qm(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:ke.data,data:e.deferredData.unwrappedData}}catch(i){return{type:ke.error,error:i}}return{type:ke.data,data:e.deferredData.data}}}function Xm(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function ga(e,t){let n=typeof t=="string"?vo(t).search:t.search;if(e[e.length-1].route.index&&Xm(n||""))return e[e.length-1];let r=ob(e);return r[r.length-1]}function Kv(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:o,json:s}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:o,json:void 0,text:void 0};if(s!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:s,text:void 0}}}function pd(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function GM(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function sa(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function QM(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function $r(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function XM(e,t){try{let n=e.sessionStorage.getItem(ab);if(n){let r=JSON.parse(n);for(let[i,o]of Object.entries(r||{}))o&&Array.isArray(o)&&t.set(i,new Set(o||[]))}}catch{}}function YM(e,t){if(t.size>0){let n={};for(let[r,i]of t)n[r]=[...i];try{e.sessionStorage.setItem(ab,JSON.stringify(n))}catch(r){po(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}function db(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=db(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ZM(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=db(e))&&(r&&(r+=" "),r+=t);return r}const JM=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},eA=(e,t)=>({classGroupId:e,validator:t}),hb=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Tc="-",qv=[],tA="arbitrary..",nA=e=>{const t=iA(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return rA(s);const a=s.split(Tc),l=a[0]===""&&a.length>1?1:0;return pb(a,l,t)},getConflictingClassGroupIds:(s,a)=>{if(a){const l=r[s],u=n[s];return l?u?JM(u,l):l:u||qv}return n[s]||qv}}},pb=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],o=n.nextPart.get(i);if(o){const u=pb(e,t+1,o);if(u)return u}const s=n.validators;if(s===null)return;const a=t===0?e.join(Tc):e.slice(t).join(Tc),l=s.length;for(let u=0;u<l;u++){const c=s[u];if(c.validator(a))return c.classGroupId}},rA=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?tA+r:void 0})(),iA=e=>{const{theme:t,classGroups:n}=e;return oA(n,t)},oA=(e,t)=>{const n=hb();for(const r in e){const i=e[r];Ym(i,n,r,t)}return n},Ym=(e,t,n,r)=>{const i=e.length;for(let o=0;o<i;o++){const s=e[o];sA(s,t,n,r)}},sA=(e,t,n,r)=>{if(typeof e=="string"){aA(e,t,n);return}if(typeof e=="function"){lA(e,t,n,r);return}uA(e,t,n,r)},aA=(e,t,n)=>{const r=e===""?t:mb(t,e);r.classGroupId=n},lA=(e,t,n,r)=>{if(cA(e)){Ym(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(eA(n,e))},uA=(e,t,n,r)=>{const i=Object.entries(e),o=i.length;for(let s=0;s<o;s++){const[a,l]=i[s];Ym(l,mb(t,a),n,r)}},mb=(e,t)=>{let n=e;const r=t.split(Tc),i=r.length;for(let o=0;o<i;o++){const s=r[o];let a=n.nextPart.get(s);a||(a=hb(),n.nextPart.set(s,a)),n=a}return n},cA=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,fA=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const i=(o,s)=>{n[o]=s,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(o){let s=n[o];if(s!==void 0)return s;if((s=r[o])!==void 0)return i(o,s),s},set(o,s){o in n?n[o]=s:i(o,s)}}},sp="!",Gv=":",dA=[],Qv=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),hA=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const o=[];let s=0,a=0,l=0,u;const c=i.length;for(let m=0;m<c;m++){const v=i[m];if(s===0&&a===0){if(v===Gv){o.push(i.slice(l,m)),l=m+1;continue}if(v==="/"){u=m;continue}}v==="["?s++:v==="]"?s--:v==="("?a++:v===")"&&a--}const f=o.length===0?i:i.slice(l);let d=f,h=!1;f.endsWith(sp)?(d=f.slice(0,-1),h=!0):f.startsWith(sp)&&(d=f.slice(1),h=!0);const p=u&&u>l?u-l:void 0;return Qv(o,h,d,p)};if(t){const i=t+Gv,o=r;r=s=>s.startsWith(i)?o(s.slice(i.length)):Qv(dA,!1,s,void 0,!0)}if(n){const i=r;r=o=>n({className:o,parseClassName:i})}return r},pA=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let o=0;o<n.length;o++){const s=n[o],a=s[0]==="[",l=t.has(s);a||l?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(s)):i.push(s)}return i.length>0&&(i.sort(),r.push(...i)),r}},mA=e=>({cache:fA(e.cacheSize),parseClassName:hA(e),sortModifiers:pA(e),...nA(e)}),yA=/\s+/,gA=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:o}=t,s=[],a=e.trim().split(yA);let l="";for(let u=a.length-1;u>=0;u-=1){const c=a[u],{isExternal:f,modifiers:d,hasImportantModifier:h,baseClassName:p,maybePostfixModifierPosition:m}=n(c);if(f){l=c+(l.length>0?" "+l:l);continue}let v=!!m,y=r(v?p.substring(0,m):p);if(!y){if(!v){l=c+(l.length>0?" "+l:l);continue}if(y=r(p),!y){l=c+(l.length>0?" "+l:l);continue}v=!1}const g=d.length===0?"":d.length===1?d[0]:o(d).join(":"),w=h?g+sp:g,x=w+y;if(s.indexOf(x)>-1)continue;s.push(x);const E=i(y,v);for(let T=0;T<E.length;++T){const S=E[T];s.push(w+S)}l=c+(l.length>0?" "+l:l)}return l},vA=(...e)=>{let t=0,n,r,i="";for(;t<e.length;)(n=e[t++])&&(r=yb(n))&&(i&&(i+=" "),i+=r);return i},yb=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=yb(e[r]))&&(n&&(n+=" "),n+=t);return n},wA=(e,...t)=>{let n,r,i,o;const s=l=>{const u=t.reduce((c,f)=>f(c),e());return n=mA(u),r=n.cache.get,i=n.cache.set,o=a,a(l)},a=l=>{const u=r(l);if(u)return u;const c=gA(l,n);return i(l,c),c};return o=s,(...l)=>o(vA(...l))},xA=[],Je=e=>{const t=n=>n[e]||xA;return t.isThemeGetter=!0,t},gb=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,vb=/^\((?:(\w[\w-]*):)?(.+)\)$/i,SA=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,bA=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,CA=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,EA=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,kA=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,RA=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,zr=e=>SA.test(e),de=e=>!!e&&!Number.isNaN(Number(e)),Br=e=>!!e&&Number.isInteger(Number(e)),md=e=>e.endsWith("%")&&de(e.slice(0,-1)),fr=e=>bA.test(e),wb=()=>!0,TA=e=>CA.test(e)&&!EA.test(e),Zm=()=>!1,PA=e=>kA.test(e),MA=e=>RA.test(e),AA=e=>!Q(e)&&!Z(e),DA=e=>Ti(e,bb,Zm),Q=e=>gb.test(e),Di=e=>Ti(e,Cb,TA),Xv=e=>Ti(e,VA,de),OA=e=>Ti(e,kb,wb),LA=e=>Ti(e,Eb,Zm),Yv=e=>Ti(e,xb,Zm),_A=e=>Ti(e,Sb,MA),uu=e=>Ti(e,Rb,PA),Z=e=>vb.test(e),aa=e=>wo(e,Cb),IA=e=>wo(e,Eb),Zv=e=>wo(e,xb),NA=e=>wo(e,bb),FA=e=>wo(e,Sb),cu=e=>wo(e,Rb,!0),jA=e=>wo(e,kb,!0),Ti=(e,t,n)=>{const r=gb.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},wo=(e,t,n=!1)=>{const r=vb.exec(e);return r?r[1]?t(r[1]):n:!1},xb=e=>e==="position"||e==="percentage",Sb=e=>e==="image"||e==="url",bb=e=>e==="length"||e==="size"||e==="bg-size",Cb=e=>e==="length",VA=e=>e==="number",Eb=e=>e==="family-name",kb=e=>e==="number"||e==="weight",Rb=e=>e==="shadow",zA=()=>{const e=Je("color"),t=Je("font"),n=Je("text"),r=Je("font-weight"),i=Je("tracking"),o=Je("leading"),s=Je("breakpoint"),a=Je("container"),l=Je("spacing"),u=Je("radius"),c=Je("shadow"),f=Je("inset-shadow"),d=Je("text-shadow"),h=Je("drop-shadow"),p=Je("blur"),m=Je("perspective"),v=Je("aspect"),y=Je("ease"),g=Je("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],x=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[...x(),Z,Q],T=()=>["auto","hidden","clip","visible","scroll"],S=()=>["auto","contain","none"],b=()=>[Z,Q,l],A=()=>[zr,"full","auto",...b()],M=()=>[Br,"none","subgrid",Z,Q],I=()=>["auto",{span:["full",Br,Z,Q]},Br,Z,Q],z=()=>[Br,"auto",Z,Q],W=()=>["auto","min","max","fr",Z,Q],$=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],oe=()=>["start","end","center","stretch","center-safe","end-safe"],U=()=>["auto",...b()],se=()=>[zr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...b()],O=()=>[zr,"screen","full","dvw","lvw","svw","min","max","fit",...b()],j=()=>[zr,"screen","full","lh","dvh","lvh","svh","min","max","fit",...b()],_=()=>[e,Z,Q],re=()=>[...x(),Zv,Yv,{position:[Z,Q]}],ne=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Te=()=>["auto","cover","contain",NA,DA,{size:[Z,Q]}],be=()=>[md,aa,Di],ce=()=>["","none","full",u,Z,Q],le=()=>["",de,aa,Di],ze=()=>["solid","dashed","dotted","double"],wt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ce=()=>[de,md,Zv,Yv],ge=()=>["","none",p,Z,Q],cn=()=>["none",de,Z,Q],xe=()=>["none",de,Z,Q],ct=()=>[de,Z,Q],ft=()=>[zr,"full",...b()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[fr],breakpoint:[fr],color:[wb],container:[fr],"drop-shadow":[fr],ease:["in","out","in-out"],font:[AA],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[fr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[fr],shadow:[fr],spacing:["px",de],text:[fr],"text-shadow":[fr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",zr,Q,Z,v]}],container:["container"],columns:[{columns:[de,Q,Z,a]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:E()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:S()}],"overscroll-x":[{"overscroll-x":S()}],"overscroll-y":[{"overscroll-y":S()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:A()}],"inset-x":[{"inset-x":A()}],"inset-y":[{"inset-y":A()}],start:[{"inset-s":A(),start:A()}],end:[{"inset-e":A(),end:A()}],"inset-bs":[{"inset-bs":A()}],"inset-be":[{"inset-be":A()}],top:[{top:A()}],right:[{right:A()}],bottom:[{bottom:A()}],left:[{left:A()}],visibility:["visible","invisible","collapse"],z:[{z:[Br,"auto",Z,Q]}],basis:[{basis:[zr,"full","auto",a,...b()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[de,zr,"auto","initial","none",Q]}],grow:[{grow:["",de,Z,Q]}],shrink:[{shrink:["",de,Z,Q]}],order:[{order:[Br,"first","last","none",Z,Q]}],"grid-cols":[{"grid-cols":M()}],"col-start-end":[{col:I()}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":M()}],"row-start-end":[{row:I()}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":W()}],"auto-rows":[{"auto-rows":W()}],gap:[{gap:b()}],"gap-x":[{"gap-x":b()}],"gap-y":[{"gap-y":b()}],"justify-content":[{justify:[...$(),"normal"]}],"justify-items":[{"justify-items":[...oe(),"normal"]}],"justify-self":[{"justify-self":["auto",...oe()]}],"align-content":[{content:["normal",...$()]}],"align-items":[{items:[...oe(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...oe(),{baseline:["","last"]}]}],"place-content":[{"place-content":$()}],"place-items":[{"place-items":[...oe(),"baseline"]}],"place-self":[{"place-self":["auto",...oe()]}],p:[{p:b()}],px:[{px:b()}],py:[{py:b()}],ps:[{ps:b()}],pe:[{pe:b()}],pbs:[{pbs:b()}],pbe:[{pbe:b()}],pt:[{pt:b()}],pr:[{pr:b()}],pb:[{pb:b()}],pl:[{pl:b()}],m:[{m:U()}],mx:[{mx:U()}],my:[{my:U()}],ms:[{ms:U()}],me:[{me:U()}],mbs:[{mbs:U()}],mbe:[{mbe:U()}],mt:[{mt:U()}],mr:[{mr:U()}],mb:[{mb:U()}],ml:[{ml:U()}],"space-x":[{"space-x":b()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":b()}],"space-y-reverse":["space-y-reverse"],size:[{size:se()}],"inline-size":[{inline:["auto",...O()]}],"min-inline-size":[{"min-inline":["auto",...O()]}],"max-inline-size":[{"max-inline":["none",...O()]}],"block-size":[{block:["auto",...j()]}],"min-block-size":[{"min-block":["auto",...j()]}],"max-block-size":[{"max-block":["none",...j()]}],w:[{w:[a,"screen",...se()]}],"min-w":[{"min-w":[a,"screen","none",...se()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...se()]}],h:[{h:["screen","lh",...se()]}],"min-h":[{"min-h":["screen","lh","none",...se()]}],"max-h":[{"max-h":["screen","lh",...se()]}],"font-size":[{text:["base",n,aa,Di]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,jA,OA]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",md,Q]}],"font-family":[{font:[IA,LA,t]}],"font-features":[{"font-features":[Q]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,Z,Q]}],"line-clamp":[{"line-clamp":[de,"none",Z,Xv]}],leading:[{leading:[o,...b()]}],"list-image":[{"list-image":["none",Z,Q]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Z,Q]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:_()}],"text-color":[{text:_()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ze(),"wavy"]}],"text-decoration-thickness":[{decoration:[de,"from-font","auto",Z,Di]}],"text-decoration-color":[{decoration:_()}],"underline-offset":[{"underline-offset":[de,"auto",Z,Q]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:b()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Z,Q]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Z,Q]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:re()}],"bg-repeat":[{bg:ne()}],"bg-size":[{bg:Te()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Br,Z,Q],radial:["",Z,Q],conic:[Br,Z,Q]},FA,_A]}],"bg-color":[{bg:_()}],"gradient-from-pos":[{from:be()}],"gradient-via-pos":[{via:be()}],"gradient-to-pos":[{to:be()}],"gradient-from":[{from:_()}],"gradient-via":[{via:_()}],"gradient-to":[{to:_()}],rounded:[{rounded:ce()}],"rounded-s":[{"rounded-s":ce()}],"rounded-e":[{"rounded-e":ce()}],"rounded-t":[{"rounded-t":ce()}],"rounded-r":[{"rounded-r":ce()}],"rounded-b":[{"rounded-b":ce()}],"rounded-l":[{"rounded-l":ce()}],"rounded-ss":[{"rounded-ss":ce()}],"rounded-se":[{"rounded-se":ce()}],"rounded-ee":[{"rounded-ee":ce()}],"rounded-es":[{"rounded-es":ce()}],"rounded-tl":[{"rounded-tl":ce()}],"rounded-tr":[{"rounded-tr":ce()}],"rounded-br":[{"rounded-br":ce()}],"rounded-bl":[{"rounded-bl":ce()}],"border-w":[{border:le()}],"border-w-x":[{"border-x":le()}],"border-w-y":[{"border-y":le()}],"border-w-s":[{"border-s":le()}],"border-w-e":[{"border-e":le()}],"border-w-bs":[{"border-bs":le()}],"border-w-be":[{"border-be":le()}],"border-w-t":[{"border-t":le()}],"border-w-r":[{"border-r":le()}],"border-w-b":[{"border-b":le()}],"border-w-l":[{"border-l":le()}],"divide-x":[{"divide-x":le()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":le()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ze(),"hidden","none"]}],"divide-style":[{divide:[...ze(),"hidden","none"]}],"border-color":[{border:_()}],"border-color-x":[{"border-x":_()}],"border-color-y":[{"border-y":_()}],"border-color-s":[{"border-s":_()}],"border-color-e":[{"border-e":_()}],"border-color-bs":[{"border-bs":_()}],"border-color-be":[{"border-be":_()}],"border-color-t":[{"border-t":_()}],"border-color-r":[{"border-r":_()}],"border-color-b":[{"border-b":_()}],"border-color-l":[{"border-l":_()}],"divide-color":[{divide:_()}],"outline-style":[{outline:[...ze(),"none","hidden"]}],"outline-offset":[{"outline-offset":[de,Z,Q]}],"outline-w":[{outline:["",de,aa,Di]}],"outline-color":[{outline:_()}],shadow:[{shadow:["","none",c,cu,uu]}],"shadow-color":[{shadow:_()}],"inset-shadow":[{"inset-shadow":["none",f,cu,uu]}],"inset-shadow-color":[{"inset-shadow":_()}],"ring-w":[{ring:le()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:_()}],"ring-offset-w":[{"ring-offset":[de,Di]}],"ring-offset-color":[{"ring-offset":_()}],"inset-ring-w":[{"inset-ring":le()}],"inset-ring-color":[{"inset-ring":_()}],"text-shadow":[{"text-shadow":["none",d,cu,uu]}],"text-shadow-color":[{"text-shadow":_()}],opacity:[{opacity:[de,Z,Q]}],"mix-blend":[{"mix-blend":[...wt(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":wt()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[de]}],"mask-image-linear-from-pos":[{"mask-linear-from":Ce()}],"mask-image-linear-to-pos":[{"mask-linear-to":Ce()}],"mask-image-linear-from-color":[{"mask-linear-from":_()}],"mask-image-linear-to-color":[{"mask-linear-to":_()}],"mask-image-t-from-pos":[{"mask-t-from":Ce()}],"mask-image-t-to-pos":[{"mask-t-to":Ce()}],"mask-image-t-from-color":[{"mask-t-from":_()}],"mask-image-t-to-color":[{"mask-t-to":_()}],"mask-image-r-from-pos":[{"mask-r-from":Ce()}],"mask-image-r-to-pos":[{"mask-r-to":Ce()}],"mask-image-r-from-color":[{"mask-r-from":_()}],"mask-image-r-to-color":[{"mask-r-to":_()}],"mask-image-b-from-pos":[{"mask-b-from":Ce()}],"mask-image-b-to-pos":[{"mask-b-to":Ce()}],"mask-image-b-from-color":[{"mask-b-from":_()}],"mask-image-b-to-color":[{"mask-b-to":_()}],"mask-image-l-from-pos":[{"mask-l-from":Ce()}],"mask-image-l-to-pos":[{"mask-l-to":Ce()}],"mask-image-l-from-color":[{"mask-l-from":_()}],"mask-image-l-to-color":[{"mask-l-to":_()}],"mask-image-x-from-pos":[{"mask-x-from":Ce()}],"mask-image-x-to-pos":[{"mask-x-to":Ce()}],"mask-image-x-from-color":[{"mask-x-from":_()}],"mask-image-x-to-color":[{"mask-x-to":_()}],"mask-image-y-from-pos":[{"mask-y-from":Ce()}],"mask-image-y-to-pos":[{"mask-y-to":Ce()}],"mask-image-y-from-color":[{"mask-y-from":_()}],"mask-image-y-to-color":[{"mask-y-to":_()}],"mask-image-radial":[{"mask-radial":[Z,Q]}],"mask-image-radial-from-pos":[{"mask-radial-from":Ce()}],"mask-image-radial-to-pos":[{"mask-radial-to":Ce()}],"mask-image-radial-from-color":[{"mask-radial-from":_()}],"mask-image-radial-to-color":[{"mask-radial-to":_()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":x()}],"mask-image-conic-pos":[{"mask-conic":[de]}],"mask-image-conic-from-pos":[{"mask-conic-from":Ce()}],"mask-image-conic-to-pos":[{"mask-conic-to":Ce()}],"mask-image-conic-from-color":[{"mask-conic-from":_()}],"mask-image-conic-to-color":[{"mask-conic-to":_()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:re()}],"mask-repeat":[{mask:ne()}],"mask-size":[{mask:Te()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Z,Q]}],filter:[{filter:["","none",Z,Q]}],blur:[{blur:ge()}],brightness:[{brightness:[de,Z,Q]}],contrast:[{contrast:[de,Z,Q]}],"drop-shadow":[{"drop-shadow":["","none",h,cu,uu]}],"drop-shadow-color":[{"drop-shadow":_()}],grayscale:[{grayscale:["",de,Z,Q]}],"hue-rotate":[{"hue-rotate":[de,Z,Q]}],invert:[{invert:["",de,Z,Q]}],saturate:[{saturate:[de,Z,Q]}],sepia:[{sepia:["",de,Z,Q]}],"backdrop-filter":[{"backdrop-filter":["","none",Z,Q]}],"backdrop-blur":[{"backdrop-blur":ge()}],"backdrop-brightness":[{"backdrop-brightness":[de,Z,Q]}],"backdrop-contrast":[{"backdrop-contrast":[de,Z,Q]}],"backdrop-grayscale":[{"backdrop-grayscale":["",de,Z,Q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[de,Z,Q]}],"backdrop-invert":[{"backdrop-invert":["",de,Z,Q]}],"backdrop-opacity":[{"backdrop-opacity":[de,Z,Q]}],"backdrop-saturate":[{"backdrop-saturate":[de,Z,Q]}],"backdrop-sepia":[{"backdrop-sepia":["",de,Z,Q]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":b()}],"border-spacing-x":[{"border-spacing-x":b()}],"border-spacing-y":[{"border-spacing-y":b()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Z,Q]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[de,"initial",Z,Q]}],ease:[{ease:["linear","initial",y,Z,Q]}],delay:[{delay:[de,Z,Q]}],animate:[{animate:["none",g,Z,Q]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,Z,Q]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:cn()}],"rotate-x":[{"rotate-x":cn()}],"rotate-y":[{"rotate-y":cn()}],"rotate-z":[{"rotate-z":cn()}],scale:[{scale:xe()}],"scale-x":[{"scale-x":xe()}],"scale-y":[{"scale-y":xe()}],"scale-z":[{"scale-z":xe()}],"scale-3d":["scale-3d"],skew:[{skew:ct()}],"skew-x":[{"skew-x":ct()}],"skew-y":[{"skew-y":ct()}],transform:[{transform:[Z,Q,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ft()}],"translate-x":[{"translate-x":ft()}],"translate-y":[{"translate-y":ft()}],"translate-z":[{"translate-z":ft()}],"translate-none":["translate-none"],accent:[{accent:_()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:_()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Z,Q]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":b()}],"scroll-mx":[{"scroll-mx":b()}],"scroll-my":[{"scroll-my":b()}],"scroll-ms":[{"scroll-ms":b()}],"scroll-me":[{"scroll-me":b()}],"scroll-mbs":[{"scroll-mbs":b()}],"scroll-mbe":[{"scroll-mbe":b()}],"scroll-mt":[{"scroll-mt":b()}],"scroll-mr":[{"scroll-mr":b()}],"scroll-mb":[{"scroll-mb":b()}],"scroll-ml":[{"scroll-ml":b()}],"scroll-p":[{"scroll-p":b()}],"scroll-px":[{"scroll-px":b()}],"scroll-py":[{"scroll-py":b()}],"scroll-ps":[{"scroll-ps":b()}],"scroll-pe":[{"scroll-pe":b()}],"scroll-pbs":[{"scroll-pbs":b()}],"scroll-pbe":[{"scroll-pbe":b()}],"scroll-pt":[{"scroll-pt":b()}],"scroll-pr":[{"scroll-pr":b()}],"scroll-pb":[{"scroll-pb":b()}],"scroll-pl":[{"scroll-pl":b()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Z,Q]}],fill:[{fill:["none",..._()]}],"stroke-w":[{stroke:[de,aa,Di,Xv]}],stroke:[{stroke:["none",..._()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},qj=wA(zA),Jv=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,e0=ZM,Gj=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return e0(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:o}=t,s=Object.keys(i).map(u=>{const c=n==null?void 0:n[u],f=o==null?void 0:o[u];if(c===null)return null;const d=Jv(c)||Jv(f);return i[u][d]}),a=n&&Object.entries(n).reduce((u,c)=>{let[f,d]=c;return d===void 0||(u[f]=d),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:f,className:d,...h}=c;return Object.entries(h).every(p=>{let[m,v]=p;return Array.isArray(v)?v.includes({...o,...a}[m]):{...o,...a}[m]===v})?[...u,f,d]:u},[]);return e0(e,s,l,n==null?void 0:n.class,n==null?void 0:n.className)},BA=["top","right","bottom","left"],xi=Math.min,tn=Math.max,Pc=Math.round,fu=Math.floor,or=e=>({x:e,y:e}),UA={left:"right",right:"left",bottom:"top",top:"bottom"};function ap(e,t,n){return tn(e,xi(t,n))}function Lr(e,t){return typeof e=="function"?e(t):e}function _r(e){return e.split("-")[0]}function Is(e){return e.split("-")[1]}function Jm(e){return e==="x"?"y":"x"}function ey(e){return e==="y"?"height":"width"}function nr(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function ty(e){return Jm(nr(e))}function $A(e,t,n){n===void 0&&(n=!1);const r=Is(e),i=ty(e),o=ey(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=Mc(s)),[s,Mc(s)]}function WA(e){const t=Mc(e);return[lp(e),t,lp(t)]}function lp(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const t0=["left","right"],n0=["right","left"],HA=["top","bottom"],KA=["bottom","top"];function qA(e,t,n){switch(e){case"top":case"bottom":return n?t?n0:t0:t?t0:n0;case"left":case"right":return t?HA:KA;default:return[]}}function GA(e,t,n,r){const i=Is(e);let o=qA(_r(e),n==="start",r);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(lp)))),o}function Mc(e){const t=_r(e);return UA[t]+e.slice(t.length)}function QA(e){return{top:0,right:0,bottom:0,left:0,...e}}function Tb(e){return typeof e!="number"?QA(e):{top:e,right:e,bottom:e,left:e}}function Ac(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function r0(e,t,n){let{reference:r,floating:i}=e;const o=nr(t),s=ty(t),a=ey(s),l=_r(t),u=o==="y",c=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,d=r[a]/2-i[a]/2;let h;switch(l){case"top":h={x:c,y:r.y-i.height};break;case"bottom":h={x:c,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-i.width,y:f};break;default:h={x:r.x,y:r.y}}switch(Is(t)){case"start":h[s]-=d*(n&&u?-1:1);break;case"end":h[s]+=d*(n&&u?-1:1);break}return h}async function XA(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:s,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:h=0}=Lr(t,e),p=Tb(h),v=a[d?f==="floating"?"reference":"floating":f],y=Ac(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(v)))==null||n?v:v.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),g=f==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,w=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),x=await(o.isElement==null?void 0:o.isElement(w))?await(o.getScale==null?void 0:o.getScale(w))||{x:1,y:1}:{x:1,y:1},E=Ac(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:w,strategy:l}):g);return{top:(y.top-E.top+p.top)/x.y,bottom:(E.bottom-y.bottom+p.bottom)/x.y,left:(y.left-E.left+p.left)/x.x,right:(E.right-y.right+p.right)/x.x}}const YA=50,ZA=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,a=s.detectOverflow?s:{...s,detectOverflow:XA},l=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:f}=r0(u,r,l),d=r,h=0;const p={};for(let m=0;m<o.length;m++){const v=o[m];if(!v)continue;const{name:y,fn:g}=v,{x:w,y:x,data:E,reset:T}=await g({x:c,y:f,initialPlacement:r,placement:d,strategy:i,middlewareData:p,rects:u,platform:a,elements:{reference:e,floating:t}});c=w??c,f=x??f,p[y]={...p[y],...E},T&&h<YA&&(h++,typeof T=="object"&&(T.placement&&(d=T.placement),T.rects&&(u=T.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):T.rects),{x:c,y:f}=r0(u,d,l)),m=-1)}return{x:c,y:f,placement:d,strategy:i,middlewareData:p}},JA=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:s,elements:a,middlewareData:l}=t,{element:u,padding:c=0}=Lr(e,t)||{};if(u==null)return{};const f=Tb(c),d={x:n,y:r},h=ty(i),p=ey(h),m=await s.getDimensions(u),v=h==="y",y=v?"top":"left",g=v?"bottom":"right",w=v?"clientHeight":"clientWidth",x=o.reference[p]+o.reference[h]-d[h]-o.floating[p],E=d[h]-o.reference[h],T=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let S=T?T[w]:0;(!S||!await(s.isElement==null?void 0:s.isElement(T)))&&(S=a.floating[w]||o.floating[p]);const b=x/2-E/2,A=S/2-m[p]/2-1,M=xi(f[y],A),I=xi(f[g],A),z=M,W=S-m[p]-I,$=S/2-m[p]/2+b,oe=ap(z,$,W),U=!l.arrow&&Is(i)!=null&&$!==oe&&o.reference[p]/2-($<z?M:I)-m[p]/2<0,se=U?$<z?$-z:$-W:0;return{[h]:d[h]+se,data:{[h]:oe,centerOffset:$-oe-se,...U&&{alignmentOffset:se}},reset:U}}}),eD=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:s,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...v}=Lr(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const y=_r(i),g=nr(a),w=_r(a)===a,x=await(l.isRTL==null?void 0:l.isRTL(u.floating)),E=d||(w||!m?[Mc(a)]:WA(a)),T=p!=="none";!d&&T&&E.push(...GA(a,m,p,x));const S=[a,...E],b=await l.detectOverflow(t,v),A=[];let M=((r=o.flip)==null?void 0:r.overflows)||[];if(c&&A.push(b[y]),f){const $=$A(i,s,x);A.push(b[$[0]],b[$[1]])}if(M=[...M,{placement:i,overflows:A}],!A.every($=>$<=0)){var I,z;const $=(((I=o.flip)==null?void 0:I.index)||0)+1,oe=S[$];if(oe&&(!(f==="alignment"?g!==nr(oe):!1)||M.every(O=>nr(O.placement)===g?O.overflows[0]>0:!0)))return{data:{index:$,overflows:M},reset:{placement:oe}};let U=(z=M.filter(se=>se.overflows[0]<=0).sort((se,O)=>se.overflows[1]-O.overflows[1])[0])==null?void 0:z.placement;if(!U)switch(h){case"bestFit":{var W;const se=(W=M.filter(O=>{if(T){const j=nr(O.placement);return j===g||j==="y"}return!0}).map(O=>[O.placement,O.overflows.filter(j=>j>0).reduce((j,_)=>j+_,0)]).sort((O,j)=>O[1]-j[1])[0])==null?void 0:W[0];se&&(U=se);break}case"initialPlacement":U=a;break}if(i!==U)return{reset:{placement:U}}}return{}}}};function i0(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function o0(e){return BA.some(t=>e[t]>=0)}const tD=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:i="referenceHidden",...o}=Lr(e,t);switch(i){case"referenceHidden":{const s=await r.detectOverflow(t,{...o,elementContext:"reference"}),a=i0(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:o0(a)}}}case"escaped":{const s=await r.detectOverflow(t,{...o,altBoundary:!0}),a=i0(s,n.floating);return{data:{escapedOffsets:a,escaped:o0(a)}}}default:return{}}}}},Pb=new Set(["left","top"]);async function nD(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=_r(n),a=Is(n),l=nr(n)==="y",u=Pb.has(s)?-1:1,c=o&&l?-1:1,f=Lr(t,e);let{mainAxis:d,crossAxis:h,alignmentAxis:p}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof p=="number"&&(h=a==="end"?p*-1:p),l?{x:h*c,y:d*u}:{x:d*u,y:h*c}}const rD=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:s,middlewareData:a}=t,l=await nD(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:s}}}}},iD=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i,platform:o}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:y=>{let{x:g,y:w}=y;return{x:g,y:w}}},...u}=Lr(e,t),c={x:n,y:r},f=await o.detectOverflow(t,u),d=nr(_r(i)),h=Jm(d);let p=c[h],m=c[d];if(s){const y=h==="y"?"top":"left",g=h==="y"?"bottom":"right",w=p+f[y],x=p-f[g];p=ap(w,p,x)}if(a){const y=d==="y"?"top":"left",g=d==="y"?"bottom":"right",w=m+f[y],x=m-f[g];m=ap(w,m,x)}const v=l.fn({...t,[h]:p,[d]:m});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[h]:s,[d]:a}}}}}},oD=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:o,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=Lr(e,t),c={x:n,y:r},f=nr(i),d=Jm(f);let h=c[d],p=c[f];const m=Lr(a,t),v=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const w=d==="y"?"height":"width",x=o.reference[d]-o.floating[w]+v.mainAxis,E=o.reference[d]+o.reference[w]-v.mainAxis;h<x?h=x:h>E&&(h=E)}if(u){var y,g;const w=d==="y"?"width":"height",x=Pb.has(_r(i)),E=o.reference[f]-o.floating[w]+(x&&((y=s.offset)==null?void 0:y[f])||0)+(x?0:v.crossAxis),T=o.reference[f]+o.reference[w]+(x?0:((g=s.offset)==null?void 0:g[f])||0)-(x?v.crossAxis:0);p<E?p=E:p>T&&(p=T)}return{[d]:h,[f]:p}}}},sD=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:s,elements:a}=t,{apply:l=()=>{},...u}=Lr(e,t),c=await s.detectOverflow(t,u),f=_r(i),d=Is(i),h=nr(i)==="y",{width:p,height:m}=o.floating;let v,y;f==="top"||f==="bottom"?(v=f,y=d===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(y=f,v=d==="end"?"top":"bottom");const g=m-c.top-c.bottom,w=p-c.left-c.right,x=xi(m-c[v],g),E=xi(p-c[y],w),T=!t.middlewareData.shift;let S=x,b=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(b=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(S=g),T&&!d){const M=tn(c.left,0),I=tn(c.right,0),z=tn(c.top,0),W=tn(c.bottom,0);h?b=p-2*(M!==0||I!==0?M+I:tn(c.left,c.right)):S=m-2*(z!==0||W!==0?z+W:tn(c.top,c.bottom))}await l({...t,availableWidth:b,availableHeight:S});const A=await s.getDimensions(a.floating);return p!==A.width||m!==A.height?{reset:{rects:!0}}:{}}}};function gf(){return typeof window<"u"}function Ns(e){return Mb(e)?(e.nodeName||"").toLowerCase():"#document"}function on(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ur(e){var t;return(t=(Mb(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Mb(e){return gf()?e instanceof Node||e instanceof on(e).Node:!1}function jn(e){return gf()?e instanceof Element||e instanceof on(e).Element:!1}function Nr(e){return gf()?e instanceof HTMLElement||e instanceof on(e).HTMLElement:!1}function s0(e){return!gf()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof on(e).ShadowRoot}function kl(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Vn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!=="inline"&&i!=="contents"}function aD(e){return/^(table|td|th)$/.test(Ns(e))}function vf(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const lD=/transform|translate|scale|rotate|perspective|filter/,uD=/paint|layout|strict|content/,Oi=e=>!!e&&e!=="none";let yd;function ny(e){const t=jn(e)?Vn(e):e;return Oi(t.transform)||Oi(t.translate)||Oi(t.scale)||Oi(t.rotate)||Oi(t.perspective)||!ry()&&(Oi(t.backdropFilter)||Oi(t.filter))||lD.test(t.willChange||"")||uD.test(t.contain||"")}function cD(e){let t=Si(e);for(;Nr(t)&&!Rs(t);){if(ny(t))return t;if(vf(t))return null;t=Si(t)}return null}function ry(){return yd==null&&(yd=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),yd}function Rs(e){return/^(html|body|#document)$/.test(Ns(e))}function Vn(e){return on(e).getComputedStyle(e)}function wf(e){return jn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Si(e){if(Ns(e)==="html")return e;const t=e.assignedSlot||e.parentNode||s0(e)&&e.host||ur(e);return s0(t)?t.host:t}function Ab(e){const t=Si(e);return Rs(t)?e.ownerDocument?e.ownerDocument.body:e.body:Nr(t)&&kl(t)?t:Ab(t)}function tl(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Ab(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=on(i);if(o){const a=up(s);return t.concat(s,s.visualViewport||[],kl(i)?i:[],a&&n?tl(a):[])}else return t.concat(i,tl(i,[],n))}function up(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Db(e){const t=Vn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Nr(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,a=Pc(n)!==o||Pc(r)!==s;return a&&(n=o,r=s),{width:n,height:r,$:a}}function iy(e){return jn(e)?e:e.contextElement}function ns(e){const t=iy(e);if(!Nr(t))return or(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Db(t);let s=(o?Pc(n.width):n.width)/r,a=(o?Pc(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const fD=or(0);function Ob(e){const t=on(e);return!ry()||!t.visualViewport?fD:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function dD(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==on(e)?!1:t}function mo(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=iy(e);let s=or(1);t&&(r?jn(r)&&(s=ns(r)):s=ns(e));const a=dD(o,n,r)?Ob(o):or(0);let l=(i.left+a.x)/s.x,u=(i.top+a.y)/s.y,c=i.width/s.x,f=i.height/s.y;if(o){const d=on(o),h=r&&jn(r)?on(r):r;let p=d,m=up(p);for(;m&&r&&h!==p;){const v=ns(m),y=m.getBoundingClientRect(),g=Vn(m),w=y.left+(m.clientLeft+parseFloat(g.paddingLeft))*v.x,x=y.top+(m.clientTop+parseFloat(g.paddingTop))*v.y;l*=v.x,u*=v.y,c*=v.x,f*=v.y,l+=w,u+=x,p=on(m),m=up(p)}}return Ac({width:c,height:f,x:l,y:u})}function xf(e,t){const n=wf(e).scrollLeft;return t?t.left+n:mo(ur(e)).left+n}function Lb(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-xf(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function hD(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",s=ur(r),a=t?vf(t.floating):!1;if(r===s||a&&o)return n;let l={scrollLeft:0,scrollTop:0},u=or(1);const c=or(0),f=Nr(r);if((f||!f&&!o)&&((Ns(r)!=="body"||kl(s))&&(l=wf(r)),f)){const h=mo(r);u=ns(r),c.x=h.x+r.clientLeft,c.y=h.y+r.clientTop}const d=s&&!f&&!o?Lb(s,l):or(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+d.x,y:n.y*u.y-l.scrollTop*u.y+c.y+d.y}}function pD(e){return Array.from(e.getClientRects())}function mD(e){const t=ur(e),n=wf(e),r=e.ownerDocument.body,i=tn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=tn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+xf(e);const a=-n.scrollTop;return Vn(r).direction==="rtl"&&(s+=tn(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:a}}const a0=25;function yD(e,t){const n=on(e),r=ur(e),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;const c=ry();(!c||c&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}const u=xf(r);if(u<=0){const c=r.ownerDocument,f=c.body,d=getComputedStyle(f),h=c.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,p=Math.abs(r.clientWidth-f.clientWidth-h);p<=a0&&(o-=p)}else u<=a0&&(o+=u);return{width:o,height:s,x:a,y:l}}function gD(e,t){const n=mo(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Nr(e)?ns(e):or(1),s=e.clientWidth*o.x,a=e.clientHeight*o.y,l=i*o.x,u=r*o.y;return{width:s,height:a,x:l,y:u}}function l0(e,t,n){let r;if(t==="viewport")r=yD(e,n);else if(t==="document")r=mD(ur(e));else if(jn(t))r=gD(t,n);else{const i=Ob(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Ac(r)}function _b(e,t){const n=Si(e);return n===t||!jn(n)||Rs(n)?!1:Vn(n).position==="fixed"||_b(n,t)}function vD(e,t){const n=t.get(e);if(n)return n;let r=tl(e,[],!1).filter(a=>jn(a)&&Ns(a)!=="body"),i=null;const o=Vn(e).position==="fixed";let s=o?Si(e):e;for(;jn(s)&&!Rs(s);){const a=Vn(s),l=ny(s);!l&&a.position==="fixed"&&(i=null),(o?!l&&!i:!l&&a.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||kl(s)&&!l&&_b(e,s))?r=r.filter(c=>c!==s):i=a,s=Si(s)}return t.set(e,r),r}function wD(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?vf(t)?[]:vD(t,this._c):[].concat(n),r],a=l0(t,s[0],i);let l=a.top,u=a.right,c=a.bottom,f=a.left;for(let d=1;d<s.length;d++){const h=l0(t,s[d],i);l=tn(h.top,l),u=xi(h.right,u),c=xi(h.bottom,c),f=tn(h.left,f)}return{width:u-f,height:c-l,x:f,y:l}}function xD(e){const{width:t,height:n}=Db(e);return{width:t,height:n}}function SD(e,t,n){const r=Nr(t),i=ur(t),o=n==="fixed",s=mo(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const l=or(0);function u(){l.x=xf(i)}if(r||!r&&!o)if((Ns(t)!=="body"||kl(i))&&(a=wf(t)),r){const h=mo(t,!0,o,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else i&&u();o&&!r&&i&&u();const c=i&&!r&&!o?Lb(i,a):or(0),f=s.left+a.scrollLeft-l.x-c.x,d=s.top+a.scrollTop-l.y-c.y;return{x:f,y:d,width:s.width,height:s.height}}function gd(e){return Vn(e).position==="static"}function u0(e,t){if(!Nr(e)||Vn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ur(e)===n&&(n=n.ownerDocument.body),n}function Ib(e,t){const n=on(e);if(vf(e))return n;if(!Nr(e)){let i=Si(e);for(;i&&!Rs(i);){if(jn(i)&&!gd(i))return i;i=Si(i)}return n}let r=u0(e,t);for(;r&&aD(r)&&gd(r);)r=u0(r,t);return r&&Rs(r)&&gd(r)&&!ny(r)?n:r||cD(e)||n}const bD=async function(e){const t=this.getOffsetParent||Ib,n=this.getDimensions,r=await n(e.floating);return{reference:SD(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function CD(e){return Vn(e).direction==="rtl"}const ED={convertOffsetParentRelativeRectToViewportRelativeRect:hD,getDocumentElement:ur,getClippingRect:wD,getOffsetParent:Ib,getElementRects:bD,getClientRects:pD,getDimensions:xD,getScale:ns,isElement:jn,isRTL:CD};function Nb(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function kD(e,t){let n=null,r;const i=ur(e);function o(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),o();const u=e.getBoundingClientRect(),{left:c,top:f,width:d,height:h}=u;if(a||t(),!d||!h)return;const p=fu(f),m=fu(i.clientWidth-(c+d)),v=fu(i.clientHeight-(f+h)),y=fu(c),w={rootMargin:-p+"px "+-m+"px "+-v+"px "+-y+"px",threshold:tn(0,xi(1,l))||1};let x=!0;function E(T){const S=T[0].intersectionRatio;if(S!==l){if(!x)return s();S?s(!1,S):r=setTimeout(()=>{s(!1,1e-7)},1e3)}S===1&&!Nb(u,e.getBoundingClientRect())&&s(),x=!1}try{n=new IntersectionObserver(E,{...w,root:i.ownerDocument})}catch{n=new IntersectionObserver(E,w)}n.observe(e)}return s(!0),o}function Qj(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=iy(e),c=i||o?[...u?tl(u):[],...t?tl(t):[]]:[];c.forEach(y=>{i&&y.addEventListener("scroll",n,{passive:!0}),o&&y.addEventListener("resize",n)});const f=u&&a?kD(u,n):null;let d=-1,h=null;s&&(h=new ResizeObserver(y=>{let[g]=y;g&&g.target===u&&h&&t&&(h.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var w;(w=h)==null||w.observe(t)})),n()}),u&&!l&&h.observe(u),t&&h.observe(t));let p,m=l?mo(e):null;l&&v();function v(){const y=mo(e);m&&!Nb(m,y)&&n(),m=y,p=requestAnimationFrame(v)}return n(),()=>{var y;c.forEach(g=>{i&&g.removeEventListener("scroll",n),o&&g.removeEventListener("resize",n)}),f==null||f(),(y=h)==null||y.disconnect(),h=null,l&&cancelAnimationFrame(p)}}const RD=rD,TD=iD,PD=eD,MD=sD,AD=tD,c0=JA,DD=oD,OD=(e,t,n)=>{const r=new Map,i={platform:ED,...n},o={...i.platform,_c:r};return ZA(e,t,{...i,platform:o})};var LD=typeof document<"u",_D=function(){},zu=LD?C.useLayoutEffect:_D;function Dc(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Dc(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!Dc(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function Fb(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function f0(e,t){const n=Fb(e);return Math.round(t*n)/n}function vd(e){const t=C.useRef(e);return zu(()=>{t.current=e}),t}function Xj(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:s}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[c,f]=C.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,h]=C.useState(r);Dc(d,r)||h(r);const[p,m]=C.useState(null),[v,y]=C.useState(null),g=C.useCallback(O=>{O!==T.current&&(T.current=O,m(O))},[]),w=C.useCallback(O=>{O!==S.current&&(S.current=O,y(O))},[]),x=o||p,E=s||v,T=C.useRef(null),S=C.useRef(null),b=C.useRef(c),A=l!=null,M=vd(l),I=vd(i),z=vd(u),W=C.useCallback(()=>{if(!T.current||!S.current)return;const O={placement:t,strategy:n,middleware:d};I.current&&(O.platform=I.current),OD(T.current,S.current,O).then(j=>{const _={...j,isPositioned:z.current!==!1};$.current&&!Dc(b.current,_)&&(b.current=_,kr.flushSync(()=>{f(_)}))})},[d,t,n,I,z]);zu(()=>{u===!1&&b.current.isPositioned&&(b.current.isPositioned=!1,f(O=>({...O,isPositioned:!1})))},[u]);const $=C.useRef(!1);zu(()=>($.current=!0,()=>{$.current=!1}),[]),zu(()=>{if(x&&(T.current=x),E&&(S.current=E),x&&E){if(M.current)return M.current(x,E,W);W()}},[x,E,W,M,A]);const oe=C.useMemo(()=>({reference:T,floating:S,setReference:g,setFloating:w}),[g,w]),U=C.useMemo(()=>({reference:x,floating:E}),[x,E]),se=C.useMemo(()=>{const O={position:n,left:0,top:0};if(!U.floating)return O;const j=f0(U.floating,c.x),_=f0(U.floating,c.y);return a?{...O,transform:"translate("+j+"px, "+_+"px)",...Fb(U.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:j,top:_}},[n,a,U.floating,c.x,c.y]);return C.useMemo(()=>({...c,update:W,refs:oe,elements:U,floatingStyles:se}),[c,W,oe,U,se])}const ID=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?c0({element:r.current,padding:i}).fn(n):{}:r?c0({element:r,padding:i}).fn(n):{}}}},Yj=(e,t)=>{const n=RD(e);return{name:n.name,fn:n.fn,options:[e,t]}},Zj=(e,t)=>{const n=TD(e);return{name:n.name,fn:n.fn,options:[e,t]}},Jj=(e,t)=>({fn:DD(e).fn,options:[e,t]}),e5=(e,t)=>{const n=PD(e);return{name:n.name,fn:n.fn,options:[e,t]}},t5=(e,t)=>{const n=MD(e);return{name:n.name,fn:n.fn,options:[e,t]}},n5=(e,t)=>{const n=AD(e);return{name:n.name,fn:n.fn,options:[e,t]}},r5=(e,t)=>{const n=ID(e);return{name:n.name,fn:n.fn,options:[e,t]}};var ND=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ao=new WeakMap,du=new WeakMap,hu={},wd=0,jb=function(e){return e&&(e.host||jb(e.parentNode))},FD=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=jb(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},jD=function(e,t,n,r){var i=FD(t,Array.isArray(e)?e:[e]);hu[n]||(hu[n]=new WeakMap);var o=hu[n],s=[],a=new Set,l=new Set(i),u=function(f){!f||a.has(f)||(a.add(f),u(f.parentNode))};i.forEach(u);var c=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(d){if(a.has(d))c(d);else try{var h=d.getAttribute(r),p=h!==null&&h!=="false",m=(Ao.get(d)||0)+1,v=(o.get(d)||0)+1;Ao.set(d,m),o.set(d,v),s.push(d),m===1&&p&&du.set(d,!0),v===1&&d.setAttribute(n,"true"),p||d.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",d,y)}})};return c(t),a.clear(),wd++,function(){s.forEach(function(f){var d=Ao.get(f)-1,h=o.get(f)-1;Ao.set(f,d),o.set(f,h),d||(du.has(f)||f.removeAttribute(r),du.delete(f)),h||f.removeAttribute(n)}),wd--,wd||(Ao=new WeakMap,Ao=new WeakMap,du=new WeakMap,hu={})}},i5=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=ND(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),jD(r,i,n,"aria-hidden")):function(){return null}},cp=function(e,t){return cp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},cp(e,t)};function Vb(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");cp(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var vn=function(){return vn=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},vn.apply(this,arguments)};function Sf(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function zb(e,t,n,r){var i=arguments.length,o=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,n,o):s(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}function Bb(e,t){return function(n,r){t(n,r,e)}}function Ub(e,t,n,r,i,o){function s(y){if(y!==void 0&&typeof y!="function")throw new TypeError("Function expected");return y}for(var a=r.kind,l=a==="getter"?"get":a==="setter"?"set":"value",u=!t&&e?r.static?e:e.prototype:null,c=t||(u?Object.getOwnPropertyDescriptor(u,r.name):{}),f,d=!1,h=n.length-1;h>=0;h--){var p={};for(var m in r)p[m]=m==="access"?{}:r[m];for(var m in r.access)p.access[m]=r.access[m];p.addInitializer=function(y){if(d)throw new TypeError("Cannot add initializers after decoration has completed");o.push(s(y||null))};var v=(0,n[h])(a==="accessor"?{get:c.get,set:c.set}:c[l],p);if(a==="accessor"){if(v===void 0)continue;if(v===null||typeof v!="object")throw new TypeError("Object expected");(f=s(v.get))&&(c.get=f),(f=s(v.set))&&(c.set=f),(f=s(v.init))&&i.unshift(f)}else(f=s(v))&&(a==="field"?i.unshift(f):c[l]=f)}u&&Object.defineProperty(u,r.name,c),d=!0}function $b(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0}function Wb(e){return typeof e=="symbol"?e:"".concat(e)}function Hb(e,t,n){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function Kb(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function qb(e,t,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(c){try{u(r.next(c))}catch(f){s(f)}}function l(c){try{u(r.throw(c))}catch(f){s(f)}}function u(c){c.done?o(c.value):i(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})}function Gb(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(u){return function(c){return l([u,c])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(n=0)),n;)try{if(r=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,i=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[0]===6&&n.label<o[1]){n.label=o[1],o=u;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(u);break}o[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(c){u=[6,c],i=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}var bf=Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]};function Qb(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&bf(t,e,n)}function Oc(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function oy(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o}function Xb(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(oy(arguments[t]));return e}function Yb(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i++)r[i]=o[s];return r}function sy(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function Ts(e){return this instanceof Ts?(this.v=e,this):new Ts(e)}function Zb(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,o=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),i[Symbol.asyncIterator]=function(){return this},i;function s(h){return function(p){return Promise.resolve(p).then(h,f)}}function a(h,p){r[h]&&(i[h]=function(m){return new Promise(function(v,y){o.push([h,m,v,y])>1||l(h,m)})},p&&(i[h]=p(i[h])))}function l(h,p){try{u(r[h](p))}catch(m){d(o[0][3],m)}}function u(h){h.value instanceof Ts?Promise.resolve(h.value.v).then(c,f):d(o[0][2],h)}function c(h){l("next",h)}function f(h){l("throw",h)}function d(h,p){h(p),o.shift(),o.length&&l(o[0][0],o[0][1])}}function Jb(e){var t,n;return t={},r("next"),r("throw",function(i){throw i}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(i,o){t[i]=e[i]?function(s){return(n=!n)?{value:Ts(e[i](s)),done:!1}:o?o(s):s}:o}}function eC(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Oc=="function"?Oc(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(s){return new Promise(function(a,l){s=e[o](s),i(a,l,s.done,s.value)})}}function i(o,s,a,l){Promise.resolve(l).then(function(u){o({value:u,done:a})},s)}}function tC(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var VD=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},fp=function(e){return fp=Object.getOwnPropertyNames||function(t){var n=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[n.length]=r);return n},fp(e)};function nC(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=fp(e),r=0;r<n.length;r++)n[r]!=="default"&&bf(t,e,n[r]);return VD(t,e),t}function rC(e){return e&&e.__esModule?e:{default:e}}function iC(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)}function oC(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n}function sC(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function aC(e,t,n){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var r,i;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose],n&&(i=r)}if(typeof r!="function")throw new TypeError("Object not disposable.");i&&(r=function(){try{i.call(this)}catch(o){return Promise.reject(o)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}var zD=typeof SuppressedError=="function"?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function lC(e){function t(o){e.error=e.hasError?new zD(o,e.error,"An error was suppressed during disposal."):o,e.hasError=!0}var n,r=0;function i(){for(;n=e.stack.pop();)try{if(!n.async&&r===1)return r=0,e.stack.push(n),Promise.resolve().then(i);if(n.dispose){var o=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(o).then(i,function(s){return t(s),i()})}else r|=1}catch(s){t(s)}if(r===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return i()}function uC(e,t){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(n,r,i,o,s){return r?t?".jsx":".js":i&&(!o||!s)?n:i+o+"."+s.toLowerCase()+"js"}):e}const BD={__extends:Vb,__assign:vn,__rest:Sf,__decorate:zb,__param:Bb,__esDecorate:Ub,__runInitializers:$b,__propKey:Wb,__setFunctionName:Hb,__metadata:Kb,__awaiter:qb,__generator:Gb,__createBinding:bf,__exportStar:Qb,__values:Oc,__read:oy,__spread:Xb,__spreadArrays:Yb,__spreadArray:sy,__await:Ts,__asyncGenerator:Zb,__asyncDelegator:Jb,__asyncValues:eC,__makeTemplateObject:tC,__importStar:nC,__importDefault:rC,__classPrivateFieldGet:iC,__classPrivateFieldSet:oC,__classPrivateFieldIn:sC,__addDisposableResource:aC,__disposeResources:lC,__rewriteRelativeImportExtension:uC},UD=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:aC,get __assign(){return vn},__asyncDelegator:Jb,__asyncGenerator:Zb,__asyncValues:eC,__await:Ts,__awaiter:qb,__classPrivateFieldGet:iC,__classPrivateFieldIn:sC,__classPrivateFieldSet:oC,__createBinding:bf,__decorate:zb,__disposeResources:lC,__esDecorate:Ub,__exportStar:Qb,__extends:Vb,__generator:Gb,__importDefault:rC,__importStar:nC,__makeTemplateObject:tC,__metadata:Kb,__param:Bb,__propKey:Wb,__read:oy,__rest:Sf,__rewriteRelativeImportExtension:uC,__runInitializers:$b,__setFunctionName:Hb,__spread:Xb,__spreadArray:sy,__spreadArrays:Yb,__values:Oc,default:BD},Symbol.toStringTag,{value:"Module"}));var Bu="right-scroll-bar-position",Uu="width-before-scroll-bar",$D="with-scroll-bars-hidden",WD="--removed-body-scroll-bar-size";function xd(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function HD(e,t){var n=C.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var KD=typeof window<"u"?C.useLayoutEffect:C.useEffect,d0=new WeakMap;function qD(e,t){var n=HD(null,function(r){return e.forEach(function(i){return xd(i,r)})});return KD(function(){var r=d0.get(n);if(r){var i=new Set(r),o=new Set(e),s=n.current;i.forEach(function(a){o.has(a)||xd(a,null)}),o.forEach(function(a){i.has(a)||xd(a,s)})}d0.set(n,e)},[e]),n}function GD(e){return e}function QD(e,t){t===void 0&&(t=GD);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(o){var s=t(o,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(o){for(r=!0;n.length;){var s=n;n=[],s.forEach(o)}n={push:function(a){return o(a)},filter:function(){return n}}},assignMedium:function(o){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(o),s=n}var l=function(){var c=s;s=[],c.forEach(o)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(c){s.push(c),u()},filter:function(c){return s=s.filter(c),n}}}};return i}function XD(e){e===void 0&&(e={});var t=QD(null);return t.options=vn({async:!0,ssr:!1},e),t}var cC=function(e){var t=e.sideCar,n=Sf(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return C.createElement(r,vn({},n))};cC.isSideCarExport=!0;function YD(e,t){return e.useMedium(t),cC}var fC=XD(),Sd=function(){},Cf=C.forwardRef(function(e,t){var n=C.useRef(null),r=C.useState({onScrollCapture:Sd,onWheelCapture:Sd,onTouchMoveCapture:Sd}),i=r[0],o=r[1],s=e.forwardProps,a=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,f=e.shards,d=e.sideCar,h=e.noRelative,p=e.noIsolation,m=e.inert,v=e.allowPinchZoom,y=e.as,g=y===void 0?"div":y,w=e.gapMode,x=Sf(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=d,T=qD([n,t]),S=vn(vn({},x),i);return C.createElement(C.Fragment,null,c&&C.createElement(E,{sideCar:fC,removeScrollBar:u,shards:f,noRelative:h,noIsolation:p,inert:m,setCallbacks:o,allowPinchZoom:!!v,lockRef:n,gapMode:w}),s?C.cloneElement(C.Children.only(a),vn(vn({},S),{ref:T})):C.createElement(g,vn({},S,{className:l,ref:T}),a))});Cf.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Cf.classNames={fullWidth:Uu,zeroRight:Bu};var ZD=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function JD(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=ZD();return t&&e.setAttribute("nonce",t),e}function eO(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function tO(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var nO=function(){var e=0,t=null;return{add:function(n){e==0&&(t=JD())&&(eO(t,n),tO(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},rO=function(){var e=nO();return function(t,n){C.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},dC=function(){var e=rO(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},iO={left:0,top:0,right:0,gap:0},bd=function(e){return parseInt(e||"",10)||0},oO=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[bd(n),bd(r),bd(i)]},sO=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return iO;var t=oO(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},aO=dC(),rs="data-scroll-locked",lO=function(e,t,n,r){var i=e.left,o=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),`
|
|
381
391
|
.`.concat($D,` {
|
|
382
392
|
overflow: hidden `).concat(r,`;
|
|
383
393
|
padding-right: `).concat(a,"px ").concat(r,`;
|
|
@@ -412,12 +422,12 @@ Error generating stack: `+o.message+`
|
|
|
412
422
|
}
|
|
413
423
|
|
|
414
424
|
body[`).concat(rs,`] {
|
|
415
|
-
`).concat(
|
|
425
|
+
`).concat(WD,": ").concat(a,`px;
|
|
416
426
|
}
|
|
417
427
|
`)},h0=function(){var e=parseInt(document.body.getAttribute(rs)||"0",10);return isFinite(e)?e:0},uO=function(){C.useEffect(function(){return document.body.setAttribute(rs,(h0()+1).toString()),function(){var e=h0()-1;e<=0?document.body.removeAttribute(rs):document.body.setAttribute(rs,e.toString())}},[])},cO=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;uO();var o=C.useMemo(function(){return sO(i)},[i]);return C.createElement(aO,{styles:lO(o,!t,i,n?"":"!important")})},dp=!1;if(typeof window<"u")try{var pu=Object.defineProperty({},"passive",{get:function(){return dp=!0,!0}});window.addEventListener("test",pu,pu),window.removeEventListener("test",pu,pu)}catch{dp=!1}var Do=dp?{passive:!1}:!1,fO=function(e){return e.tagName==="TEXTAREA"},hC=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!fO(e)&&n[t]==="visible")},dO=function(e){return hC(e,"overflowY")},hO=function(e){return hC(e,"overflowX")},p0=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=pC(e,r);if(i){var o=mC(e,r),s=o[1],a=o[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},pO=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},mO=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},pC=function(e,t){return e==="v"?dO(t):hO(t)},mC=function(e,t){return e==="v"?pO(t):mO(t)},yO=function(e,t){return e==="h"&&t==="rtl"?-1:1},gO=function(e,t,n,r,i){var o=yO(e,window.getComputedStyle(t).direction),s=o*r,a=n.target,l=t.contains(a),u=!1,c=s>0,f=0,d=0;do{if(!a)break;var h=mC(e,a),p=h[0],m=h[1],v=h[2],y=m-v-o*p;(p||y)&&pC(e,a)&&(f+=y,d+=p);var g=a.parentNode;a=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(c&&Math.abs(f)<1||!c&&Math.abs(d)<1)&&(u=!0),u},mu=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},m0=function(e){return[e.deltaX,e.deltaY]},y0=function(e){return e&&"current"in e?e.current:e},vO=function(e,t){return e[0]===t[0]&&e[1]===t[1]},wO=function(e){return`
|
|
418
428
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
419
429
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
420
|
-
`)},xO=0,Oo=[];function SO(e){var t=C.useRef([]),n=C.useRef([0,0]),r=C.useRef(),i=C.useState(xO++)[0],o=C.useState(dC)[0],s=C.useRef(e);C.useEffect(function(){s.current=e},[e]),C.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var m=sy([e.lockRef.current],(e.shards||[]).map(y0),!0).filter(Boolean);return m.forEach(function(v){return v.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),m.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var a=C.useCallback(function(m,v){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!s.current.allowPinchZoom;var y=mu(m),g=n.current,w="deltaX"in m?m.deltaX:g[0]-y[0],x="deltaY"in m?m.deltaY:g[1]-y[1],E,T=m.target,S=Math.abs(w)>Math.abs(x)?"h":"v";if("touches"in m&&S==="h"&&T.type==="range")return!1;var b=window.getSelection(),A=b&&b.anchorNode,M=A?A===T||A.contains(T):!1;if(M)return!1;var I=p0(S,T);if(!I)return!0;if(I?E=S:(E=S==="v"?"h":"v",I=p0(S,T)),!I)return!1;if(!r.current&&"changedTouches"in m&&(w||x)&&(r.current=E),!E)return!0;var z=r.current||E;return gO(z,v,m,z==="h"?w:x)},[]),l=C.useCallback(function(m){var v=m;if(!(!Oo.length||Oo[Oo.length-1]!==o)){var y="deltaY"in v?m0(v):mu(v),g=t.current.filter(function(E){return E.name===v.type&&(E.target===v.target||v.target===E.shadowParent)&&vO(E.delta,y)})[0];if(g&&g.should){v.cancelable&&v.preventDefault();return}if(!g){var w=(s.current.shards||[]).map(y0).filter(Boolean).filter(function(E){return E.contains(v.target)}),x=w.length>0?a(v,w[0]):!s.current.noIsolation;x&&v.cancelable&&v.preventDefault()}}},[]),u=C.useCallback(function(m,v,y,g){var w={name:m,delta:v,target:y,should:g,shadowParent:bO(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(x){return x!==w})},1)},[]),c=C.useCallback(function(m){n.current=mu(m),r.current=void 0},[]),f=C.useCallback(function(m){u(m.type,m0(m),m.target,a(m,e.lockRef.current))},[]),d=C.useCallback(function(m){u(m.type,mu(m),m.target,a(m,e.lockRef.current))},[]);C.useEffect(function(){return Oo.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:d}),document.addEventListener("wheel",l,Do),document.addEventListener("touchmove",l,Do),document.addEventListener("touchstart",c,Do),function(){Oo=Oo.filter(function(m){return m!==o}),document.removeEventListener("wheel",l,Do),document.removeEventListener("touchmove",l,Do),document.removeEventListener("touchstart",c,Do)}},[]);var h=e.removeScrollBar,p=e.inert;return C.createElement(C.Fragment,null,p?C.createElement(o,{styles:wO(i)}):null,h?C.createElement(cO,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function bO(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const CO=YD(fC,SO);var EO=C.forwardRef(function(e,t){return C.createElement(Cf,vn({},e,{ref:t,sideCar:CO}))});EO.classNames=Cf.classNames;const ay=C.createContext({});function ly(e){const t=C.useRef(null);return t.current===null&&(t.current=e()),t.current}const kO=typeof window<"u",uy=kO?C.useLayoutEffect:C.useEffect,Ef=C.createContext(null);function cy(e,t){e.indexOf(t)===-1&&e.push(t)}function Lc(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const ar=(e,t,n)=>n>t?t:n<e?e:n;let fy=()=>{};const bi={},yC=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),gC=e=>typeof e=="object"&&e!==null,vC=e=>/^0[^.\s]+$/u.test(e);function wC(e){let t;return()=>(t===void 0&&(t=e()),t)}const bn=e=>e,Rl=(...e)=>e.reduce((t,n)=>r=>n(t(r))),nl=(e,t,n)=>{const r=t-e;return r?(n-e)/r:1};class dy{constructor(){this.subscriptions=[]}add(t){return cy(this.subscriptions,t),()=>Lc(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const s=this.subscriptions[o];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const sn=e=>e*1e3,xn=e=>e/1e3,xC=(e,t)=>t?e*(1e3/t):0,SC=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,RO=1e-7,TO=12;function PO(e,t,n,r,i){let o,s,a=0;do s=t+(n-t)/2,o=SC(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>RO&&++a<TO);return s}function Tl(e,t,n,r){if(e===t&&n===r)return bn;const i=o=>PO(o,0,1,e,n);return o=>o===0||o===1?o:SC(i(o),t,r)}const bC=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,CC=e=>t=>1-e(1-t),EC=Tl(.33,1.53,.69,.99),hy=CC(EC),kC=bC(hy),RC=e=>e>=1?1:(e*=2)<1?.5*hy(e):.5*(2-Math.pow(2,-10*(e-1))),py=e=>1-Math.sin(Math.acos(e)),TC=CC(py),PC=bC(py),MO=Tl(.42,0,1,1),AO=Tl(0,0,.58,1),MC=Tl(.42,0,.58,1),DO=e=>Array.isArray(e)&&typeof e[0]!="number",AC=e=>Array.isArray(e)&&typeof e[0]=="number",OO={linear:bn,easeIn:MO,easeInOut:MC,easeOut:AO,circIn:py,circInOut:PC,circOut:TC,backIn:hy,backInOut:kC,backOut:EC,anticipate:RC},LO=e=>typeof e=="string",g0=e=>{if(AC(e)){fy(e.length===4);const[t,n,r,i]=e;return Tl(t,n,r,i)}else if(LO(e))return OO[e];return e},yu=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function _O(e){let t=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function a(u){o.has(u)&&(l.schedule(u),e()),u(s)}const l={schedule:(u,c=!1,f=!1)=>{const h=f&&r?t:n;return c&&o.add(u),h.add(u),u},cancel:u=>{n.delete(u),o.delete(u)},process:u=>{if(s=u,r){i=!0;return}r=!0;const c=t;t=n,n=c,t.forEach(a),t.clear(),r=!1,i&&(i=!1,l.process(u))}};return l}const IO=40;function DC(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=yu.reduce((w,x)=>(w[x]=_O(o),w),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:c,update:f,preRender:d,render:h,postRender:p}=s,m=()=>{const w=bi.useManualTiming,x=w?i.timestamp:performance.now();n=!1,w||(i.delta=r?1e3/60:Math.max(Math.min(x-i.timestamp,IO),1)),i.timestamp=x,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),f.process(i),d.process(i),h.process(i),p.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(m))},v=()=>{n=!0,r=!0,i.isProcessing||e(m)};return{schedule:yu.reduce((w,x)=>{const E=s[x];return w[x]=(T,S=!1,b=!1)=>(n||v(),E.schedule(T,S,b)),w},{}),cancel:w=>{for(let x=0;x<yu.length;x++)s[yu[x]].cancel(w)},state:i,steps:s}}const{schedule:Me,cancel:Ci,state:pt,steps:Cd}=DC(typeof requestAnimationFrame<"u"?requestAnimationFrame:bn,!0);let $u;function NO(){$u=void 0}const It={now:()=>($u===void 0&&It.set(pt.isProcessing||bi.useManualTiming?pt.timestamp:performance.now()),$u),set:e=>{$u=e,queueMicrotask(NO)}},OC=e=>t=>typeof t=="string"&&t.startsWith(e),LC=OC("--"),FO=OC("var(--"),my=e=>FO(e)?jO.test(e.split("/*")[0].trim()):!1,jO=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function v0(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Fs={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},rl={...Fs,transform:e=>ar(0,1,e)},gu={...Fs,default:1},Ma=e=>Math.round(e*1e5)/1e5,yy=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function VO(e){return e==null}const zO=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,gy=(e,t)=>n=>!!(typeof n=="string"&&zO.test(n)&&n.startsWith(e)||t&&!VO(n)&&Object.prototype.hasOwnProperty.call(n,t)),_C=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,s,a]=r.match(yy);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},BO=e=>ar(0,255,e),Ed={...Fs,transform:e=>Math.round(BO(e))},Hi={test:gy("rgb","red"),parse:_C("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Ed.transform(e)+", "+Ed.transform(t)+", "+Ed.transform(n)+", "+Ma(rl.transform(r))+")"};function UO(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const hp={test:gy("#"),parse:UO,transform:Hi.transform},Pl=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),yr=Pl("deg"),sr=Pl("%"),Q=Pl("px"),$O=Pl("vh"),HO=Pl("vw"),w0={...sr,parse:e=>sr.parse(e)/100,transform:e=>sr.transform(e*100)},qo={test:gy("hsl","hue"),parse:_C("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+sr.transform(Ma(t))+", "+sr.transform(Ma(n))+", "+Ma(rl.transform(r))+")"},Qe={test:e=>Hi.test(e)||hp.test(e)||qo.test(e),parse:e=>Hi.test(e)?Hi.parse(e):qo.test(e)?qo.parse(e):hp.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Hi.transform(e):qo.transform(e),getAnimatableNone:e=>{const t=Qe.parse(e);return t.alpha=0,Qe.transform(t)}},WO=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function KO(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(yy))==null?void 0:t.length)||0)+(((n=e.match(WO))==null?void 0:n.length)||0)>0}const IC="number",NC="color",qO="var",GO="var(",x0="${}",QO=/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 Ps(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const a=t.replace(QO,l=>(Qe.test(l)?(r.color.push(o),i.push(NC),n.push(Qe.parse(l))):l.startsWith(GO)?(r.var.push(o),i.push(qO),n.push(l)):(r.number.push(o),i.push(IC),n.push(parseFloat(l))),++o,x0)).split(x0);return{values:n,split:a,indexes:r,types:i}}function XO(e){return Ps(e).values}function FC({split:e,types:t}){const n=e.length;return r=>{let i="";for(let o=0;o<n;o++)if(i+=e[o],r[o]!==void 0){const s=t[o];s===IC?i+=Ma(r[o]):s===NC?i+=Qe.transform(r[o]):i+=r[o]}return i}}function YO(e){return FC(Ps(e))}const ZO=e=>typeof e=="number"?0:Qe.test(e)?Qe.getAnimatableNone(e):e,JO=(e,t)=>typeof e=="number"?t!=null&&t.trim().endsWith("/")?e:0:ZO(e);function eL(e){const t=Ps(e);return FC(t)(t.values.map((r,i)=>JO(r,t.split[i])))}const Nn={test:KO,parse:XO,createTransformer:YO,getAnimatableNone:eL};function kd(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function tL({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=kd(l,a,e+1/3),o=kd(l,a,e),s=kd(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}function _c(e,t){return n=>n>0?t:e}const Pe=(e,t,n)=>e+(t-e)*n,Rd=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},nL=[hp,Hi,qo],rL=e=>nL.find(t=>t.test(e));function S0(e){const t=rL(e);if(!t)return!1;let n=t.parse(e);return t===qo&&(n=tL(n)),n}const b0=(e,t)=>{const n=S0(e),r=S0(t);if(!n||!r)return _c(e,t);const i={...n};return o=>(i.red=Rd(n.red,r.red,o),i.green=Rd(n.green,r.green,o),i.blue=Rd(n.blue,r.blue,o),i.alpha=Pe(n.alpha,r.alpha,o),Hi.transform(i))},pp=new Set(["none","hidden"]);function iL(e,t){return pp.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function oL(e,t){return n=>Pe(e,t,n)}function vy(e){return typeof e=="number"?oL:typeof e=="string"?my(e)?_c:Qe.test(e)?b0:lL:Array.isArray(e)?jC:typeof e=="object"?Qe.test(e)?b0:sL:_c}function jC(e,t){const n=[...e],r=n.length,i=e.map((o,s)=>vy(o)(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}}function sL(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=vy(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function aL(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const o=t.types[i],s=e.indexes[o][r[o]],a=e.values[s]??0;n[i]=a,r[o]++}return n}const lL=(e,t)=>{const n=Nn.createTransformer(t),r=Ps(e),i=Ps(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?pp.has(e)&&!i.values.length||pp.has(t)&&!r.values.length?iL(e,t):Rl(jC(aL(r,i),i.values),n):_c(e,t)};function VC(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Pe(e,t,n):vy(e)(e,t)}const uL=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Me.update(t,n),stop:()=>Ci(t),now:()=>pt.isProcessing?pt.timestamp:It.now()}},zC=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=Math.round(e(o/(i-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Ic=2e4;function wy(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Ic;)t+=n,r=e.next(t);return t>=Ic?1/0:t}function cL(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(wy(r),Ic);return{type:"keyframes",ease:o=>r.next(i*o).value/t,duration:xn(i)}}const He={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};function mp(e,t){return e*Math.sqrt(1-t*t)}const fL=12;function dL(e,t,n){let r=n;for(let i=1;i<fL;i++)r=r-e(r)/t(r);return r}const Td=.001;function hL({duration:e=He.duration,bounce:t=He.bounce,velocity:n=He.velocity,mass:r=He.mass}){let i,o,s=1-t;s=ar(He.minDamping,He.maxDamping,s),e=ar(He.minDuration,He.maxDuration,xn(e)),s<1?(i=u=>{const c=u*s,f=c*e,d=c-n,h=mp(u,s),p=Math.exp(-f);return Td-d/h*p},o=u=>{const f=u*s*e,d=f*n+n,h=Math.pow(s,2)*Math.pow(u,2)*e,p=Math.exp(-f),m=mp(Math.pow(u,2),s);return(-i(u)+Td>0?-1:1)*((d-h)*p)/m}):(i=u=>{const c=Math.exp(-u*e),f=(u-n)*e+1;return-Td+c*f},o=u=>{const c=Math.exp(-u*e),f=(n-u)*(e*e);return c*f});const a=5/e,l=dL(i,o,a);if(e=sn(e),isNaN(l))return{stiffness:He.stiffness,damping:He.damping,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const pL=["duration","bounce"],mL=["stiffness","damping","mass"];function C0(e,t){return t.some(n=>e[n]!==void 0)}function yL(e){let t={velocity:He.velocity,stiffness:He.stiffness,damping:He.damping,mass:He.mass,isResolvedFromDuration:!1,...e};if(!C0(e,mL)&&C0(e,pL))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*ar(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:He.mass,stiffness:i,damping:o}}else{const n=hL({...e,velocity:0});t={...t,...n,mass:He.mass},t.isResolvedFromDuration=!0}return t}function Nc(e=He.visualDuration,t=He.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:u,mass:c,duration:f,velocity:d,isResolvedFromDuration:h}=yL({...n,velocity:-xn(n.velocity||0)}),p=d||0,m=u/(2*Math.sqrt(l*c)),v=s-o,y=xn(Math.sqrt(l/c)),g=Math.abs(v)<5;r||(r=g?He.restSpeed.granular:He.restSpeed.default),i||(i=g?He.restDelta.granular:He.restDelta.default);let w,x,E,T,S,b;if(m<1)E=mp(y,m),T=(p+m*y*v)/E,w=M=>{const I=Math.exp(-m*y*M);return s-I*(T*Math.sin(E*M)+v*Math.cos(E*M))},S=m*y*T+v*E,b=m*y*v-T*E,x=M=>Math.exp(-m*y*M)*(S*Math.sin(E*M)+b*Math.cos(E*M));else if(m===1){w=I=>s-Math.exp(-y*I)*(v+(p+y*v)*I);const M=p+y*v;x=I=>Math.exp(-y*I)*(y*M*I-p)}else{const M=y*Math.sqrt(m*m-1);w=$=>{const oe=Math.exp(-m*y*$),U=Math.min(M*$,300);return s-oe*((p+m*y*v)*Math.sinh(U)+M*v*Math.cosh(U))/M};const I=(p+m*y*v)/M,z=m*y*I-v*M,H=m*y*v-I*M;x=$=>{const oe=Math.exp(-m*y*$),U=Math.min(M*$,300);return oe*(z*Math.sinh(U)+H*Math.cosh(U))}}const A={calculatedDuration:h&&f||null,velocity:M=>sn(x(M)),next:M=>{if(!h&&m<1){const z=Math.exp(-m*y*M),H=Math.sin(E*M),$=Math.cos(E*M),oe=s-z*(T*H+v*$),U=sn(z*(S*H+b*$));return a.done=Math.abs(U)<=r&&Math.abs(s-oe)<=i,a.value=a.done?s:oe,a}const I=w(M);if(h)a.done=M>=f;else{const z=sn(x(M));a.done=Math.abs(z)<=r&&Math.abs(s-I)<=i}return a.value=a.done?s:I,a},toString:()=>{const M=Math.min(wy(A),Ic),I=zC(z=>A.next(M*z).value,M,30);return M+"ms "+I},toTransition:()=>{}};return A}Nc.applyToOptions=e=>{const t=cL(e,100,Nc);return e.ease=t.ease,e.duration=sn(t.duration),e.type="keyframes",e};const gL=5;function BC(e,t,n){const r=Math.max(t-gL,0);return xC(n-e(r),t-r)}function yp({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){const f=e[0],d={done:!1,value:f},h=b=>a!==void 0&&b<a||l!==void 0&&b>l,p=b=>a===void 0?l:l===void 0||Math.abs(a-b)<Math.abs(l-b)?a:l;let m=n*t;const v=f+m,y=s===void 0?v:s(v);y!==v&&(m=y-f);const g=b=>-m*Math.exp(-b/r),w=b=>y+g(b),x=b=>{const A=g(b),M=w(b);d.done=Math.abs(A)<=u,d.value=d.done?y:M};let E,T;const S=b=>{h(d.value)&&(E=b,T=Nc({keyframes:[d.value,p(d.value)],velocity:BC(w,b,d.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return S(0),{calculatedDuration:null,next:b=>{let A=!1;return!T&&E===void 0&&(A=!0,x(b),S(b)),E!==void 0&&b>=E?T.next(b-E):(!A&&x(b),d)}}}function vL(e,t,n){const r=[],i=n||bi.mix||VC,o=e.length-1;for(let s=0;s<o;s++){let a=i(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||bn:t;a=Rl(l,a)}r.push(a)}return r}function wL(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(fy(o===t.length),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=vL(t,r,i),l=a.length,u=c=>{if(s&&c<e[0])return t[0];let f=0;if(l>1)for(;f<e.length-2&&!(c<e[f+1]);f++);const d=nl(e[f],e[f+1],c);return a[f](d)};return n?c=>u(ar(e[0],e[o-1],c)):u}function xL(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=nl(0,t,r);e.push(Pe(n,1,i))}}function SL(e){const t=[0];return xL(t,e.length-1),t}function bL(e,t){return e.map(n=>n*t)}function CL(e,t){return e.map(()=>t||MC).splice(0,e.length-1)}function Aa({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=DO(r)?r.map(g0):g0(r),o={done:!1,value:t[0]},s=bL(n&&n.length===t.length?n:SL(t),e),a=wL(s,t,{ease:Array.isArray(i)?i:CL(t,i)});return{calculatedDuration:e,next:l=>(o.value=a(l),o.done=l>=e,o)}}const EL=e=>e!==null;function kf(e,{repeat:t,repeatType:n="loop"},r,i=1){const o=e.filter(EL),a=i<0||t&&n!=="loop"&&t%2===1?0:o.length-1;return!a||r===void 0?o[a]:r}const kL={decay:yp,inertia:yp,tween:Aa,keyframes:Aa,spring:Nc};function UC(e){typeof e.type=="string"&&(e.type=kL[e.type])}class xy{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const RL=e=>e/100;class Fc extends xy{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var r,i;const{motionValue:n}=this.options;n&&n.updatedAt!==It.now()&&this.tick(It.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;UC(t);const{type:n=Aa,repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:s=0}=t;let{keyframes:a}=t;const l=n||Aa;l!==Aa&&typeof a[0]!="number"&&(this.mixKeyframes=Rl(RL,VC(a[0],a[1])),a=[0,100]);const u=l({...t,keyframes:a});o==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-s})),u.calculatedDuration===null&&(u.calculatedDuration=wy(u));const{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=u}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:o,mirroredGenerator:s,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:u=0,keyframes:c,repeat:f,repeatType:d,repeatDelay:h,type:p,onUpdate:m,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const y=this.currentTime-u*(this.playbackSpeed>=0?1:-1),g=this.playbackSpeed>=0?y<0:y>i;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let w=this.currentTime,x=r;if(f){const b=Math.min(this.currentTime,i)/a;let A=Math.floor(b),M=b%1;!M&&b>=1&&(M=1),M===1&&A--,A=Math.min(A,f+1),!!(A%2)&&(d==="reverse"?(M=1-M,h&&(M-=h/a)):d==="mirror"&&(x=s)),w=ar(0,1,M)*a}let E;g?(this.delayState.value=c[0],E=this.delayState):E=x.next(w),o&&!g&&(E.value=o(E.value));let{done:T}=E;!g&&l!==null&&(T=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const S=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&T);return S&&p!==yp&&(E.value=kf(c,this.options,v,this.speed)),m&&m(E.value),S&&this.finish(),E}then(t,n){return this.finished.then(t,n)}get duration(){return xn(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+xn(t)}get time(){return xn(this.currentTime)}set time(t){t=sn(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const n=this.generator.next(t).value;return BC(r=>this.generator.next(r).value,t,n)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(It.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=xn(this.currentTime))}play(){var i,o;if(this.isStopped)return;const{driver:t=uL,startTime:n}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),(o=(i=this.options).onPlay)==null||o.call(i);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(It.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function TL(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Wi=e=>e*180/Math.PI,gp=e=>{const t=Wi(Math.atan2(e[1],e[0]));return vp(t)},PL={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:gp,rotateZ:gp,skewX:e=>Wi(Math.atan(e[1])),skewY:e=>Wi(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},vp=e=>(e=e%360,e<0&&(e+=360),e),E0=gp,k0=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),R0=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),ML={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:k0,scaleY:R0,scale:e=>(k0(e)+R0(e))/2,rotateX:e=>vp(Wi(Math.atan2(e[6],e[5]))),rotateY:e=>vp(Wi(Math.atan2(-e[2],e[0]))),rotateZ:E0,rotate:E0,skewX:e=>Wi(Math.atan(e[4])),skewY:e=>Wi(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function wp(e){return e.includes("scale")?1:0}function xp(e,t){if(!e||e==="none")return wp(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=ML,i=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=PL,i=a}if(!i)return wp(t);const o=r[t],s=i[1].split(",").map(DL);return typeof o=="function"?o(s):s[o]}const AL=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return xp(n,t)};function DL(e){return parseFloat(e.trim())}const js=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Vs=new Set([...js,"pathRotation"]),T0=e=>e===Fs||e===Q,OL=new Set(["x","y","z"]),LL=js.filter(e=>!OL.has(e));function _L(e){const t=[];return LL.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const li={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:r})=>{const i=e.max-e.min;return r==="border-box"?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:r})=>{const i=e.max-e.min;return r==="border-box"?i:i-parseFloat(t)-parseFloat(n)},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:(e,{transform:t})=>xp(t,"x"),y:(e,{transform:t})=>xp(t,"y")};li.translateX=li.x;li.translateY=li.y;const io=new Set;let Sp=!1,bp=!1,Cp=!1;function $C(){if(bp){const e=Array.from(io).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=_L(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,s])=>{var a;(a=r.getValue(o))==null||a.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}bp=!1,Sp=!1,io.forEach(e=>e.complete(Cp)),io.clear()}function HC(){io.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(bp=!0)})}function IL(){Cp=!0,HC(),$C(),Cp=!1}class Sy{constructor(t,n,r,i,o,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(io.add(this),Sp||(Sp=!0,Me.read(HC),Me.resolveKeyframes($C))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const o=i==null?void 0:i.get(),s=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const a=r.readValue(n,s);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=s),i&&o===void 0&&i.set(t[0])}TL(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),io.delete(this)}cancel(){this.state==="scheduled"&&(io.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const NL=e=>e.startsWith("--");function WC(e,t,n){NL(t)?e.style.setProperty(t,n):e.style[t]=n}const FL={};function KC(e,t){const n=wC(e);return()=>FL[t]??n()}const jL=KC(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),qC=KC(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),va=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,P0={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:va([0,.65,.55,1]),circOut:va([.55,0,1,.45]),backIn:va([.31,.01,.66,-.59]),backOut:va([.33,1.53,.69,.99])};function GC(e,t){if(e)return typeof e=="function"?qC()?zC(e,t):"ease-out":AC(e)?va(e):Array.isArray(e)?e.map(n=>GC(n,t)||P0.easeOut):P0[e]}function VL(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:a="easeOut",times:l}={},u=void 0){const c={[t]:n};l&&(c.offset=l);const f=GC(a,i);Array.isArray(f)&&(c.easing=f);const d={delay:r,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"};return u&&(d.pseudoElement=u),e.animate(c,d)}function QC(e){return typeof e=="function"&&"applyToOptions"in e}function zL({type:e,...t}){return QC(e)&&qC()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class XC extends xy{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:o,allowFlatten:s=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!o,this.allowFlatten=s,this.options=t,fy(typeof t.type!="string");const u=zL(t);this.animation=VL(n,r,i,u,o),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const c=kf(i,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(c),WC(n,r,c),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var n,r,i;const t=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((i=(r=this.animation).commitStyles)==null||i.call(r))}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return xn(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+xn(t)}get time(){return xn(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=sn(t),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:n,rangeEnd:r,observe:i}){var o;return this.allowFlatten&&((o=this.animation.effect)==null||o.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&jL()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),r&&(this.animation.rangeEnd=r),bn):i(this)}}const YC={anticipate:RC,backInOut:kC,circInOut:PC};function BL(e){return e in YC}function UL(e){typeof e.ease=="string"&&BL(e.ease)&&(e.ease=YC[e.ease])}const Pd=10;class $L extends XC{constructor(t){UL(t),UC(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:o,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new Fc({...s,autoplay:!1}),l=Math.max(Pd,It.now()-this.startTime),u=ar(0,Pd,l-Pd),c=a.sample(l).value,{name:f}=this.options;o&&f&&WC(o,f,c),n.setWithVelocity(a.sample(Math.max(0,l-u)).value,c,u),a.stop()}}const M0=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Nn.test(e)||e==="0")&&!e.startsWith("url("));function HL(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function WL(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],s=M0(i,t),a=M0(o,t);return!s||!a?!1:HL(e)||(n==="spring"||QC(n))&&r}function Ep(e){e.duration=0,e.type="keyframes"}const ZC=new Set(["opacity","clipPath","filter","transform"]),KL=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function qL(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&KL.test(e[t]))return!0;return!1}const GL=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),QL=wC(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function XL(e){var f;const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:o,type:s,keyframes:a}=e;if(!(((f=t==null?void 0:t.owner)==null?void 0:f.current)instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:c}=t.owner.getProps();return QL()&&n&&(ZC.has(n)||GL.has(n)&&qL(a))&&(n!=="transform"||!c)&&!u&&!r&&i!=="mirror"&&o!==0&&s!=="inertia"}const YL=40;class ZL extends xy{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:s="loop",keyframes:a,name:l,motionValue:u,element:c,...f}){var p;super(),this.stop=()=>{var m,v;this._animation&&(this._animation.stop(),(m=this.stopTimeline)==null||m.call(this)),(v=this.keyframeResolver)==null||v.cancel()},this.createdAt=It.now();const d={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:s,name:l,motionValue:u,element:c,...f},h=(c==null?void 0:c.KeyframeResolver)||Sy;this.keyframeResolver=new h(a,(m,v,y)=>this.onKeyframesResolved(m,v,d,!y),l,u,c),(p=this.keyframeResolver)==null||p.scheduleResolve()}onKeyframesResolved(t,n,r,i){var y,g;this.keyframeResolver=void 0;const{name:o,type:s,velocity:a,delay:l,isHandoff:u,onUpdate:c}=r;this.resolvedAt=It.now();let f=!0;WL(t,o,s,a)||(f=!1,(bi.instantAnimations||!l)&&(c==null||c(kf(t,r,n))),t[0]=t[t.length-1],Ep(r),r.repeat=0);const h={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>YL?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},p=f&&!u&&XL(h),m=(g=(y=h.motionValue)==null?void 0:y.owner)==null?void 0:g.current;let v;if(p)try{v=new $L({...h,element:m})}catch{v=new Fc(h)}else v=new Fc(h);v.finished.then(()=>{this.notifyFinished()}).catch(bn),this.pendingTimeline&&(this.stopTimeline=v.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=v}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),IL()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}function JC(e,t,n,r=0,i=1){const o=Array.from(e).sort((u,c)=>u.sortNodePosition(c)).indexOf(t),s=e.size,a=(s-1)*r;return typeof n=="function"?n(o,s):i===1?o*r:a-o*r}const A0=30,JL=e=>!isNaN(parseFloat(e));class e_{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var o;const i=It.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((o=this.events.change)==null||o.notify(this.current),this.dependents))for(const s of this.dependents)s.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=It.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=JL(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new dy);const r=this.events[t].add(n);return t==="change"?()=>{r(),Me.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=It.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>A0)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,A0);return xC(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),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(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ms(e,t){return new e_(e,t)}function eE(e,t){if(e!=null&&e.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function by(e,t){const n=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return n!==e?eE(n,e):n}const t_={type:"spring",stiffness:500,damping:25,restSpeed:10},n_=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),r_={type:"keyframes",duration:.8},i_={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},o_=(e,{keyframes:t})=>t.length>2?r_:Vs.has(e)?e.startsWith("scale")?n_(t[1]):t_:i_,s_=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function a_(e){for(const t in e)if(!s_.has(t))return!0;return!1}const Cy=(e,t,n,r={},i,o)=>s=>{const a=by(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-sn(l);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:d=>{t.set(d),a.onUpdate&&a.onUpdate(d)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:o?void 0:i};a_(a)||Object.assign(c,o_(e,c)),c.duration&&(c.duration=sn(c.duration)),c.repeatDelay&&(c.repeatDelay=sn(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let f=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(Ep(c),c.delay===0&&(f=!0)),(bi.instantAnimations||bi.skipAnimations||i!=null&&i.shouldSkipAnimations||a.skipAnimations)&&(f=!0,Ep(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,f&&!o&&t.get()!==void 0){const d=kf(c.keyframes,a);if(d!==void 0){Me.update(()=>{c.onUpdate(d),c.onComplete()});return}}return a.isSync?new Fc(c):new ZL(c)},l_=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function u_(e){const t=l_.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function tE(e,t,n=1){const[r,i]=u_(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return yC(s)?parseFloat(s):s}return my(i)?tE(i,t,n+1):i}function D0(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Ey(e,t,n,r){if(typeof t=="function"){const[i,o]=D0(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=D0(r);t=t(n!==void 0?n:e.custom,i,o)}return t}function oo(e,t,n){const r=e.getProps();return Ey(r,t,n!==void 0?n:r.custom,e)}const nE=new Set(["width","height","top","left","right","bottom",...js]),kp=e=>Array.isArray(e);function c_(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ms(n))}function f_(e){return kp(e)?e[e.length-1]||0:e}function d_(e,t){const n=oo(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const s in o){const a=f_(o[s]);c_(e,s,a)}}const yt=e=>!!(e&&e.getVelocity);function h_(e){return!!(yt(e)&&e.add)}function Rp(e,t){const n=e.getValue("willChange");if(h_(n))return n.add(t);if(!n&&bi.WillChange){const r=new bi.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function ky(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const p_="framerAppearId",rE="data-"+ky(p_);function iE(e){return e.props[rE]}function m_({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function oE(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o,transitionEnd:s,...a}=t;const l=e.getDefaultTransition();o=o?eE(o,l):l;const u=o==null?void 0:o.reduceMotion,c=o==null?void 0:o.skipAnimations;r&&(o=r);const f=[],d=i&&e.animationState&&e.animationState.getState()[i],h=o==null?void 0:o.path;h&&h.animateVisualElement(e,a,o,n,f);for(const p in a){const m=e.getValue(p,e.latestValues[p]??null),v=a[p];if(v===void 0||d&&m_(d,p))continue;const y={delay:n,...by(o||{},p)};c&&(y.skipAnimations=!0);const g=m.get();if(g!==void 0&&!m.isAnimating()&&!Array.isArray(v)&&v===g&&!y.velocity){Me.update(()=>m.set(v));continue}let w=!1;if(window.MotionHandoffAnimation){const T=iE(e);if(T){const S=window.MotionHandoffAnimation(T,p,Me);S!==null&&(y.startTime=S,w=!0)}}Rp(e,p);const x=u??e.shouldReduceMotion;m.start(Cy(p,m,v,x&&nE.has(p)?{type:!1}:y,e,w));const E=m.animation;E&&f.push(E)}if(s){const p=()=>Me.update(()=>{s&&d_(e,s)});f.length?Promise.all(f).then(p):p()}return f}function Tp(e,t,n={}){var l;const r=oo(e,t,n.type==="exit"?(l=e.presenceContext)==null?void 0:l.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(oE(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:f,staggerDirection:d}=i;return y_(e,t,u,c,f,d,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[u,c]=a==="beforeChildren"?[o,s]:[s,o];return u().then(()=>c())}else return Promise.all([o(),s(n.delay)])}function y_(e,t,n=0,r=0,i=0,o=1,s){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(Tp(l,t,{...s,delay:n+(typeof r=="function"?0:r)+JC(e.variantChildren,l,r,i,o)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function g_(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>Tp(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=Tp(e,t,n);else{const i=typeof t=="function"?oo(e,t,n.custom):t;r=Promise.all(oE(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const v_={test:e=>e==="auto",parse:e=>e},sE=e=>t=>t.test(e),aE=[Fs,Q,sr,yr,HO,$O,v_],O0=e=>aE.find(sE(e));function w_(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||vC(e):!0}const x_=new Set(["brightness","contrast","saturate","opacity"]);function S_(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(yy)||[];if(!r)return e;const i=n.replace(r,"");let o=x_.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const b_=/\b([a-z-]*)\(.*?\)/gu,Pp={...Nn,getAnimatableNone:e=>{const t=e.match(b_);return t?t.map(S_).join(" "):e}},Mp={...Nn,getAnimatableNone:e=>{const t=Nn.parse(e);return Nn.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},L0={...Fs,transform:Math.round},C_={rotate:yr,pathRotation:yr,rotateX:yr,rotateY:yr,rotateZ:yr,scale:gu,scaleX:gu,scaleY:gu,scaleZ:gu,skew:yr,skewX:yr,skewY:yr,distance:Q,translateX:Q,translateY:Q,translateZ:Q,x:Q,y:Q,z:Q,perspective:Q,transformPerspective:Q,opacity:rl,originX:w0,originY:w0,originZ:Q},jc={borderWidth:Q,borderTopWidth:Q,borderRightWidth:Q,borderBottomWidth:Q,borderLeftWidth:Q,borderRadius:Q,borderTopLeftRadius:Q,borderTopRightRadius:Q,borderBottomRightRadius:Q,borderBottomLeftRadius:Q,width:Q,maxWidth:Q,height:Q,maxHeight:Q,top:Q,right:Q,bottom:Q,left:Q,inset:Q,insetBlock:Q,insetBlockStart:Q,insetBlockEnd:Q,insetInline:Q,insetInlineStart:Q,insetInlineEnd:Q,padding:Q,paddingTop:Q,paddingRight:Q,paddingBottom:Q,paddingLeft:Q,paddingBlock:Q,paddingBlockStart:Q,paddingBlockEnd:Q,paddingInline:Q,paddingInlineStart:Q,paddingInlineEnd:Q,margin:Q,marginTop:Q,marginRight:Q,marginBottom:Q,marginLeft:Q,marginBlock:Q,marginBlockStart:Q,marginBlockEnd:Q,marginInline:Q,marginInlineStart:Q,marginInlineEnd:Q,fontSize:Q,backgroundPositionX:Q,backgroundPositionY:Q,...C_,zIndex:L0,fillOpacity:rl,strokeOpacity:rl,numOctaves:L0},E_={...jc,color:Qe,backgroundColor:Qe,outlineColor:Qe,fill:Qe,stroke:Qe,borderColor:Qe,borderTopColor:Qe,borderRightColor:Qe,borderBottomColor:Qe,borderLeftColor:Qe,filter:Pp,WebkitFilter:Pp,mask:Mp,WebkitMask:Mp},lE=e=>E_[e],k_=new Set([Pp,Mp]);function uE(e,t){let n=lE(e);return k_.has(n)||(n=Nn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const R_=new Set(["auto","none","0"]);function T_(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!R_.has(o)&&Ps(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=uE(n,i)}class P_ extends Sy{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let f=t[c];if(typeof f=="string"&&(f=f.trim(),my(f))){const d=tE(f,n.current);d!==void 0&&(t[c]=d),c===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!nE.has(r)||t.length!==2)return;const[i,o]=t,s=O0(i),a=O0(o),l=v0(i),u=v0(o);if(l!==u&&li[r]){this.needsMeasurement=!0;return}if(s!==a)if(T0(s)&&T0(a))for(let c=0;c<t.length;c++){const f=t[c];typeof f=="string"&&(t[c]=parseFloat(f))}else li[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||w_(t[i]))&&r.push(i);r.length&&T_(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=li[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var a;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const o=r.length-1,s=r[o];r[o]=li[n](t.measureViewportBox(),window.getComputedStyle(t.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEach(([l,u])=>{t.getValue(l).set(u)}),this.resolveNoneKeyframes()}}const Ry=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function cE(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=(n==null?void 0:n[e])??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(r=>r!=null)}const Ap=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Hu(e){return gC(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:Ty}=DC(queueMicrotask,!1),Tn={x:!1,y:!1};function fE(){return Tn.x||Tn.y}function M_(e){return e==="x"||e==="y"?Tn[e]?null:(Tn[e]=!0,()=>{Tn[e]=!1}):Tn.x||Tn.y?null:(Tn.x=Tn.y=!0,()=>{Tn.x=Tn.y=!1})}function dE(e,t){const n=cE(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function A_(e){return!(e.pointerType==="touch"||fE())}function D_(e,t,n={}){const[r,i,o]=dE(e,n);return r.forEach(s=>{let a=!1,l=!1,u;const c=()=>{s.removeEventListener("pointerleave",p)},f=v=>{u&&(u(v),u=void 0),c()},d=v=>{a=!1,window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",d),l&&(l=!1,f(v))},h=()=>{a=!0,window.addEventListener("pointerup",d,i),window.addEventListener("pointercancel",d,i)},p=v=>{if(v.pointerType!=="touch"){if(a){l=!0;return}f(v)}},m=v=>{if(!A_(v))return;l=!1;const y=t(s,v);typeof y=="function"&&(u=y,s.addEventListener("pointerleave",p,i))};s.addEventListener("pointerenter",m,i),s.addEventListener("pointerdown",h,i)}),o}const hE=(e,t)=>t?e===t?!0:hE(e,t.parentElement):!1,Py=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,O_=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function L_(e){return O_.has(e.tagName)||e.isContentEditable===!0}const __=new Set(["INPUT","SELECT","TEXTAREA"]);function I_(e){return __.has(e.tagName)||e.isContentEditable===!0}const Wu=new WeakSet;function _0(e){return t=>{t.key==="Enter"&&e(t)}}function Md(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const N_=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=_0(()=>{if(Wu.has(n))return;Md(n,"down");const i=_0(()=>{Md(n,"up")}),o=()=>Md(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function I0(e){return Py(e)&&!fE()}const N0=new WeakSet;function F_(e,t,n={}){const[r,i,o]=dE(e,n),s=a=>{const l=a.currentTarget;if(!I0(a)||N0.has(a))return;Wu.add(l),n.stopPropagation&&N0.add(a);const u=t(l,a),c={...i,capture:!0},f=(p,m)=>{window.removeEventListener("pointerup",d,c),window.removeEventListener("pointercancel",h,c),Wu.has(l)&&Wu.delete(l),I0(p)&&typeof u=="function"&&u(p,{success:m})},d=p=>{f(p,l===window||l===document||n.useGlobalTarget||hE(l,p.target))},h=p=>{f(p,!1)};window.addEventListener("pointerup",d,c),window.addEventListener("pointercancel",h,c)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",s,i),Hu(a)&&(a.addEventListener("focus",u=>N_(u,i)),!L_(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function My(e){return gC(e)&&"ownerSVGElement"in e}const Ku=new WeakMap;let Hr;const pE=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+"Size"]:My(r)&&"getBBox"in r?r.getBBox()[t]:r[n],j_=pE("inline","width","offsetWidth"),V_=pE("block","height","offsetHeight");function z_({target:e,borderBoxSize:t}){var n;(n=Ku.get(e))==null||n.forEach(r=>{r(e,{get width(){return j_(e,t)},get height(){return V_(e,t)}})})}function B_(e){e.forEach(z_)}function U_(){typeof ResizeObserver>"u"||(Hr=new ResizeObserver(B_))}function $_(e,t){Hr||U_();const n=cE(e);return n.forEach(r=>{let i=Ku.get(r);i||(i=new Set,Ku.set(r,i)),i.add(t),Hr==null||Hr.observe(r)}),()=>{n.forEach(r=>{const i=Ku.get(r);i==null||i.delete(t),i!=null&&i.size||Hr==null||Hr.unobserve(r)})}}const qu=new Set;let Go;function H_(){Go=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};qu.forEach(t=>t(e))},window.addEventListener("resize",Go)}function W_(e){return qu.add(e),Go||H_(),()=>{qu.delete(e),!qu.size&&typeof Go=="function"&&(window.removeEventListener("resize",Go),Go=void 0)}}function F0(e,t){return typeof e=="function"?W_(e):$_(e,t)}function K_(e){return My(e)&&e.tagName==="svg"}const q_=[...aE,Qe,Nn],G_=e=>q_.find(sE(e)),j0=()=>({translate:0,scale:1,origin:0,originPoint:0}),Qo=()=>({x:j0(),y:j0()}),V0=()=>({min:0,max:0}),et=()=>({x:V0(),y:V0()}),Q_=new WeakMap;function Rf(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function il(e){return typeof e=="string"||Array.isArray(e)}const Ay=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Dy=["initial",...Ay];function Tf(e){return Rf(e.animate)||Dy.some(t=>il(e[t]))}function mE(e){return!!(Tf(e)||e.variants)}function X_(e,t,n){for(const r in t){const i=t[r],o=n[r];if(yt(i))e.addValue(r,i);else if(yt(o))e.addValue(r,Ms(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=e.getStaticValue(r);e.addValue(r,Ms(s!==void 0?s:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Dp={current:null},yE={current:!1},Y_=typeof window<"u";function Z_(){if(yE.current=!0,!!Y_)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Dp.current=e.matches;e.addEventListener("change",t),t()}else Dp.current=!1}const z0=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Vc={};function gE(e){Vc=e}function J_(){return Vc}class eI{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,skipAnimations:o,blockInitialAnimation:s,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Sy,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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 h=It.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,Me.render(this.render,!1,!0))};const{latestValues:u,renderState:c}=a;this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=o,this.options=l,this.blockInitialAnimation=!!s,this.isControllingVariants=Tf(n),this.isVariantNode=mE(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in d){const p=d[h];u[h]!==void 0&&yt(p)&&p.set(u[h])}}mount(t){var n,r;if(this.hasBeenMounted)for(const i in this.initialValues)(n=this.values.get(i))==null||n.jump(this.initialValues[i]),this.latestValues[i]=this.initialValues[i];this.current=t,Q_.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((i,o)=>this.bindToMotionValue(o,i)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(yE.current||Z_(),this.shouldReduceMotion=Dp.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(r=this.parent)==null||r.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),Ci(this.notifyUpdate),Ci(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&ZC.has(t)&&this.current instanceof HTMLElement){const{factory:s,keyframes:a,times:l,ease:u,duration:c}=n.accelerate,f=new XC({element:this.current,name:t,keyframes:a,times:l,ease:u,duration:sn(c)}),d=s(f);this.valueSubscriptions.set(t,()=>{d(),f.cancel()});return}const r=Vs.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Me.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;typeof window<"u"&&window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o&&o()})}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 Vc){const n=Vc[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):et()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<z0.length;r++){const i=z0[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,s=t[o];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=X_(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}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 n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Ms(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(yC(r)||vC(r))?r=parseFloat(r):!G_(r)&&Nn.test(n)&&(r=uE(t,n)),this.setBaseTarget(t,yt(r)?r.get():r)),yt(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var o;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const s=Ey(this.props,n,(o=this.presenceContext)==null?void 0:o.custom);s&&(r=s[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!yt(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new dy),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Ty.render(this.render)}}class vE extends eI{constructor(){super(...arguments),this.KeyframeResolver=P_}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const r=t.style;return r?r[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;yt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class Pi{constructor(t){this.isMounted=!1,this.node=t}update(){}}function wE({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function tI({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function nI(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Ad(e){return e===void 0||e===1}function Op({scale:e,scaleX:t,scaleY:n}){return!Ad(e)||!Ad(t)||!Ad(n)}function Ni(e){return Op(e)||xE(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function xE(e){return B0(e.x)||B0(e.y)}function B0(e){return e&&e!=="0%"}function zc(e,t,n){const r=e-n,i=t*r;return n+i}function U0(e,t,n,r,i){return i!==void 0&&(e=zc(e,i,r)),zc(e,n,r)+t}function Lp(e,t=0,n=1,r,i){e.min=U0(e.min,t,n,r,i),e.max=U0(e.max,t,n,r,i)}function SE(e,{x:t,y:n}){Lp(e.x,t.translate,t.scale,t.originPoint),Lp(e.y,n.translate,n.scale,n.originPoint)}const $0=.999999999999,H0=1.0000000000001;function rI(e,t,n,r=!1){var a;const i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let l=0;l<i;l++){o=n[l],s=o.projectionDelta;const{visualElement:u}=o.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&(er(e.x,-o.scroll.offset.x),er(e.y,-o.scroll.offset.y)),s&&(t.x*=s.x.scale,t.y*=s.y.scale,SE(e,s)),r&&Ni(o.latestValues)&&Gu(e,o.latestValues,(a=o.layout)==null?void 0:a.layoutBox))}t.x<H0&&t.x>$0&&(t.x=1),t.y<H0&&t.y>$0&&(t.y=1)}function er(e,t){e.min+=t,e.max+=t}function W0(e,t,n,r,i=.5){const o=Pe(e.min,e.max,i);Lp(e,t,n,o,r)}function K0(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function Gu(e,t,n){const r=n??e;W0(e.x,K0(t.x,r.x),t.scaleX,t.scale,t.originX),W0(e.y,K0(t.y,r.y),t.scaleY,t.scale,t.originY)}function bE(e,t){return wE(nI(e.getBoundingClientRect(),t))}function iI(e,t,n){const r=bE(e,n),{scroll:i}=t;return i&&(er(r.x,i.offset.x),er(r.y,i.offset.y)),r}const oI={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},sI=js.length;function aI(e,t,n){let r="",i=!0;for(let s=0;s<sI;s++){const a=js[s],l=e[a];if(l===void 0)continue;let u=!0;if(typeof l=="number")u=l===(a.startsWith("scale")?1:0);else{const c=parseFloat(l);u=a.startsWith("scale")?c===1:c===0}if(!u||n){const c=Ap(l,jc[a]);if(!u){i=!1;const f=oI[a]||a;r+=`${f}(${c}) `}n&&(t[a]=c)}}const o=e.pathRotation;return o&&(i=!1,r+=`rotate(${Ap(o,jc.pathRotation)}) `),r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function Oy(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let s=!1,a=!1;for(const l in t){const u=t[l];if(Vs.has(l)){s=!0;continue}else if(LC(l)){i[l]=u;continue}else{const c=Ap(u,jc[l]);l.startsWith("origin")?(a=!0,o[l]=c):r[l]=c}}if(t.transform||(s||n?r.transform=aI(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:c=0}=o;r.transformOrigin=`${l} ${u} ${c}`}}function CE(e,{style:t,vars:n},r,i){const o=e.style;let s;for(s in t)o[s]=t[s];i==null||i.applyProjectionStyles(o,r);for(s in n)o.setProperty(s,n[s])}function q0(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const la={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Q.test(e))e=parseFloat(e);else return e;const n=q0(e,t.target.x),r=q0(e,t.target.y);return`${n}% ${r}%`}},lI={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Nn.parse(e);if(i.length>5)return r;const o=Nn.createTransformer(e),s=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+s]/=a,i[1+s]/=l;const u=Pe(a,l,.5);return typeof i[2+s]=="number"&&(i[2+s]/=u),typeof i[3+s]=="number"&&(i[3+s]/=u),o(i)}},_p={borderRadius:{...la,applyTo:[...Ry]},borderTopLeftRadius:la,borderTopRightRadius:la,borderBottomLeftRadius:la,borderBottomRightRadius:la,boxShadow:lI};function EE(e,{layout:t,layoutId:n}){return Vs.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!_p[e]||e==="opacity")}function Ly(e,t,n){var s;const r=e.style,i=t==null?void 0:t.style,o={};if(!r)return o;for(const a in r)(yt(r[a])||i&&yt(i[a])||EE(a,e)||((s=n==null?void 0:n.getValue(a))==null?void 0:s.liveStyle)!==void 0)&&(o[a]=r[a]);return o}function uI(e){return window.getComputedStyle(e)}class cI extends vE{constructor(){super(...arguments),this.type="html",this.renderInstance=CE}readValueFromInstance(t,n){var r;if(Vs.has(n))return(r=this.projection)!=null&&r.isProjecting?wp(n):AL(t,n);{const i=uI(t),o=(LC(n)?i.getPropertyValue(n):i[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return bE(t,n)}build(t,n,r){Oy(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Ly(t,n,r)}}const fI={offset:"stroke-dashoffset",array:"stroke-dasharray"},dI={offset:"strokeDashoffset",array:"strokeDasharray"};function hI(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?fI:dI;e[o.offset]=`${-r}`,e[o.array]=`${t} ${n}`}const pI=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function kE(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:o=1,pathOffset:s=0,...a},l,u,c){if(Oy(e,a,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:d}=e;f.transform&&(d.transform=f.transform,delete f.transform),(d.transform||f.transformOrigin)&&(d.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),d.transform&&(d.transformBox=(c==null?void 0:c.transformBox)??"fill-box",delete f.transformBox);for(const h of pI)f[h]!==void 0&&(d[h]=f[h],delete f[h]);t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),i!==void 0&&hI(f,i,o,s,!1)}const RE=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"]),TE=e=>typeof e=="string"&&e.toLowerCase()==="svg";function mI(e,t,n,r){CE(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(RE.has(i)?i:ky(i),t.attrs[i])}function PE(e,t,n){const r=Ly(e,t,n);for(const i in e)if(yt(e[i])||yt(t[i])){const o=js.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}class yI extends vE{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=et}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Vs.has(n)){const r=lE(n);return r&&r.default||0}return n=RE.has(n)?n:ky(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return PE(t,n,r)}build(t,n,r){kE(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){mI(t,n,r,i)}mount(t){this.isSVGTag=TE(t.tagName),super.mount(t)}}const gI=Dy.length;function ME(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?ME(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<gI;n++){const r=Dy[n],i=e.props[r];(il(i)||i===!1)&&(t[r]=i)}return t}function AE(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const vI=[...Ay].reverse(),wI=Ay.length;function xI(e){return t=>Promise.all(t.map(({animation:n,options:r})=>g_(e,n,r)))}function SI(e){let t=xI(e),n=G0(),r=!0,i=!1;const o=u=>(c,f)=>{var h;const d=oo(e,f,u==="exit"?(h=e.presenceContext)==null?void 0:h.custom:void 0);if(d){const{transition:p,transitionEnd:m,...v}=d;c={...c,...v,...m}}return c};function s(u){t=u(e)}function a(u){const{props:c}=e,f=ME(e.parent)||{},d=[],h=new Set;let p={},m=1/0;for(let y=0;y<wI;y++){const g=vI[y],w=n[g],x=c[g]!==void 0?c[g]:f[g],E=il(x),T=g===u?w.isActive:null;T===!1&&(m=y);let S=x===f[g]&&x!==c[g]&&E;if(S&&(r||i)&&e.manuallyAnimateOnMount&&(S=!1),w.protectedKeys={...p},!w.isActive&&T===null||!x&&!w.prevProp||Rf(x)||typeof x=="boolean")continue;if(g==="exit"&&w.isActive&&T!==!0){w.prevResolvedValues&&(p={...p,...w.prevResolvedValues});continue}const b=bI(w.prevProp,x);let A=b||g===u&&w.isActive&&!S&&E||y>m&&E,M=!1;const I=Array.isArray(x)?x:[x];let z=I.reduce(o(g),{});T===!1&&(z={});const{prevResolvedValues:H={}}=w,$={...H,...z},oe=O=>{A=!0,h.has(O)&&(M=!0,h.delete(O)),w.needsAnimating[O]=!0;const j=e.getValue(O);j&&(j.liveStyle=!1)};for(const O in $){const j=z[O],_=H[O];if(p.hasOwnProperty(O))continue;let re=!1;kp(j)&&kp(_)?re=!AE(j,_)||b:re=j!==_,re?j!=null?oe(O):h.add(O):j!==void 0&&h.has(O)?oe(O):w.protectedKeys[O]=!0}w.prevProp=x,w.prevResolvedValues=z,w.isActive&&(p={...p,...z}),(r||i)&&e.blockInitialAnimation&&(A=!1);const U=S&&b;A&&(!U||M)&&d.push(...I.map(O=>{const j={type:g};if(typeof O=="string"&&(r||i)&&!U&&e.manuallyAnimateOnMount&&e.parent){const{parent:_}=e,re=oo(_,O);if(_.enteringChildren&&re){const{delayChildren:ne}=re.transition||{};j.delay=JC(_.enteringChildren,e,ne)}}return{animation:O,options:j}}))}if(h.size){const y={};if(typeof c.initial!="boolean"){const g=oo(e,Array.isArray(c.initial)?c.initial[0]:c.initial);g&&g.transition&&(y.transition=g.transition)}h.forEach(g=>{const w=e.getBaseTarget(g),x=e.getValue(g);x&&(x.liveStyle=!0),y[g]=w??null}),d.push({animation:y})}let v=!!d.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(v=!1),r=!1,i=!1,v?t(d):Promise.resolve()}function l(u,c){var d;if(n[u].isActive===c)return Promise.resolve();(d=e.variantChildren)==null||d.forEach(h=>{var p;return(p=h.animationState)==null?void 0:p.setActive(u,c)}),n[u].isActive=c;const f=a(u);for(const h in n)n[h].protectedKeys={};return f}return{animateChanges:a,setActive:l,setAnimateFunction:s,getState:()=>n,reset:()=>{n=G0(),i=!0}}}function bI(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!AE(t,e):!1}function Li(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function G0(){return{animate:Li(!0),whileInView:Li(),whileHover:Li(),whileTap:Li(),whileDrag:Li(),whileFocus:Li(),exit:Li()}}function Ip(e,t){e.min=t.min,e.max=t.max}function Rn(e,t){Ip(e.x,t.x),Ip(e.y,t.y)}function Q0(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const DE=1e-4,CI=1-DE,EI=1+DE,OE=.01,kI=0-OE,RI=0+OE;function Nt(e){return e.max-e.min}function TI(e,t,n){return Math.abs(e-t)<=n}function X0(e,t,n,r=.5){e.origin=r,e.originPoint=Pe(t.min,t.max,e.origin),e.scale=Nt(n)/Nt(t),e.translate=Pe(n.min,n.max,e.origin)-e.originPoint,(e.scale>=CI&&e.scale<=EI||isNaN(e.scale))&&(e.scale=1),(e.translate>=kI&&e.translate<=RI||isNaN(e.translate))&&(e.translate=0)}function Da(e,t,n,r){X0(e.x,t.x,n.x,r?r.originX:void 0),X0(e.y,t.y,n.y,r?r.originY:void 0)}function Y0(e,t,n,r=0){const i=r?Pe(n.min,n.max,r):n.min;e.min=i+t.min,e.max=e.min+Nt(t)}function PI(e,t,n,r){Y0(e.x,t.x,n.x,r==null?void 0:r.x),Y0(e.y,t.y,n.y,r==null?void 0:r.y)}function Z0(e,t,n,r=0){const i=r?Pe(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+Nt(t)}function Bc(e,t,n,r){Z0(e.x,t.x,n.x,r==null?void 0:r.x),Z0(e.y,t.y,n.y,r==null?void 0:r.y)}function J0(e,t,n,r,i){return e-=t,e=zc(e,1/n,r),i!==void 0&&(e=zc(e,1/i,r)),e}function MI(e,t=0,n=1,r=.5,i,o=e,s=e){if(sr.test(t)&&(t=parseFloat(t),t=Pe(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=Pe(o.min,o.max,r);e===o&&(a-=t),e.min=J0(e.min,t,n,a,i),e.max=J0(e.max,t,n,a,i)}function ew(e,t,[n,r,i],o,s){MI(e,t[n],t[r],t[i],t.scale,o,s)}const AI=["x","scaleX","originX"],DI=["y","scaleY","originY"];function tw(e,t,n,r){ew(e.x,t,AI,n?n.x:void 0,r?r.x:void 0),ew(e.y,t,DI,n?n.y:void 0,r?r.y:void 0)}function nw(e){return e.translate===0&&e.scale===1}function LE(e){return nw(e.x)&&nw(e.y)}function rw(e,t){return e.min===t.min&&e.max===t.max}function OI(e,t){return rw(e.x,t.x)&&rw(e.y,t.y)}function iw(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function _E(e,t){return iw(e.x,t.x)&&iw(e.y,t.y)}function ow(e){return Nt(e.x)/Nt(e.y)}function sw(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Xn(e){return[e("x"),e("y")]}function LI(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((i||o||s)&&(r=`translate3d(${i}px, ${o}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,pathRotation:f,rotateX:d,rotateY:h,skewX:p,skewY:m}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),f&&(r+=`rotate(${f}deg) `),d&&(r+=`rotateX(${d}deg) `),h&&(r+=`rotateY(${h}deg) `),p&&(r+=`skewX(${p}deg) `),m&&(r+=`skewY(${m}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const _I=Ry.length,aw=e=>typeof e=="string"?parseFloat(e):e,lw=e=>typeof e=="number"||Q.test(e);function II(e,t,n,r,i,o){i?(e.opacity=Pe(0,n.opacity??1,NI(r)),e.opacityExit=Pe(t.opacity??1,0,FI(r))):o&&(e.opacity=Pe(t.opacity??1,n.opacity??1,r));for(let s=0;s<_I;s++){const a=Ry[s];let l=uw(t,a),u=uw(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||lw(l)===lw(u)?(e[a]=Math.max(Pe(aw(l),aw(u),r),0),(sr.test(u)||sr.test(l))&&(e[a]+="%")):e[a]=u}(t.rotate||n.rotate)&&(e.rotate=Pe(t.rotate||0,n.rotate||0,r))}function uw(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const NI=IE(0,.5,TC),FI=IE(.5,.95,bn);function IE(e,t,n){return r=>r<e?0:r>t?1:n(nl(e,t,r))}function jI(e,t,n){const r=yt(e)?e:Ms(e);return r.start(Cy("",r,t,n)),r.animation}function ol(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}const VI=(e,t)=>e.depth-t.depth;class zI{constructor(){this.children=[],this.isDirty=!1}add(t){cy(this.children,t),this.isDirty=!0}remove(t){Lc(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(VI),this.isDirty=!1,this.children.forEach(t)}}function BI(e,t){const n=It.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Ci(r),e(o-t))};return Me.setup(r,!0),()=>Ci(r)}function Qu(e){return yt(e)?e.get():e}class UI{constructor(){this.members=[]}add(t){cy(this.members,t);for(let n=this.members.length-1;n>=0;n--){const r=this.members[n];if(r===t||r===this.lead||r===this.prevLead)continue;const i=r.instance;(!i||i.isConnected===!1)&&!r.snapshot&&(Lc(this.members,r),r.unmount())}t.scheduleRender()}remove(t){if(Lc(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){var n;for(let r=this.members.indexOf(t)-1;r>=0;r--){const i=this.members[r];if(i.isPresent!==!1&&((n=i.instance)==null?void 0:n.isConnected)!==!1)return this.promote(i),!0}return!1}promote(t,n){var i;const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.updateSnapshot(),t.scheduleRender();const{layoutDependency:o}=r.options,{layoutDependency:s}=t.options;(o===void 0||o!==s)&&(t.resumeFrom=r,n&&(r.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),(i=t.root)!=null&&i.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var n,r,i,o,s;(r=(n=t.options).onExitComplete)==null||r.call(n),(s=(i=t.resumingFrom)==null?void 0:(o=i.options).onExitComplete)==null||s.call(o)})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){var t;(t=this.lead)!=null&&t.snapshot&&(this.lead.snapshot=void 0)}}const Xu={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Dd=["","X","Y","Z"],$I=1e3;let HI=0;function Od(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function NE(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=iE(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Me,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&NE(r)}function FE({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},a=t==null?void 0:t()){this.id=HI++,this.animationId=0,this.animationCommitId=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.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(qI),this.nodes.forEach(JI),this.nodes.forEach(eN),this.nodes.forEach(GI)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new zI)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new dy),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){const l=this.eventHandlers.get(s);l&&l.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s){if(this.instance)return;this.isSVG=My(s)&&!K_(s),this.instance=s;const{layoutId:a,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),e){let c,f=0;const d=()=>this.root.updateBlockedByResize=!1;Me.read(()=>{f=window.innerWidth}),e(s,()=>{const h=window.innerWidth;h!==f&&(f=h,this.root.updateBlockedByResize=!0,c&&c(),c=BI(d,250),Xu.hasAnimatedSinceResize&&(Xu.hasAnimatedSinceResize=!1,this.nodes.forEach(dw)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&u&&(a||l)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:f,hasRelativeLayoutChanged:d,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||u.getDefaultTransition()||oN,{onLayoutAnimationStart:m,onLayoutAnimationComplete:v}=u.getProps(),y=!this.targetLayout||!_E(this.targetLayout,h),g=!f&&d;if(this.options.layoutRoot||this.resumeFrom||g||f&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const w={...by(p,"layout"),onPlay:m,onComplete:v};(u.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w),this.setAnimationOrigin(c,g,w.path)}else f||dw(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Ci(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(tN),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&NE(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const f=this.path[c];f.shouldResetTransform=!0,(typeof f.latestValues.x=="string"||typeof f.latestValues.y=="string")&&(f.isLayoutDirty=!0),f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const l=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),l&&this.nodes.forEach(XI),this.nodes.forEach(cw);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(fw);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(YI),this.nodes.forEach(ZI),this.nodes.forEach(WI),this.nodes.forEach(KI)):this.nodes.forEach(fw),this.clearAllSnapshots();const a=It.now();pt.delta=ar(0,1e3/60,a-pt.timestamp),pt.timestamp=a,pt.isProcessing=!0,Cd.update.process(pt),Cd.preRender.process(pt),Cd.render.process(pt),pt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ty.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(QI),this.sharedNodes.forEach(nN)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Me.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Me.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Nt(this.snapshot.measuredBox.x)&&!Nt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=et()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a&&this.instance){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!LE(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;s&&this.instance&&(a||Ni(this.latestValues)||c)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),sN(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:s}=this.options;if(!s)return et();const a=s.measureViewportBox();if(!(((u=this.scroll)==null?void 0:u.wasRoot)||this.path.some(aN))){const{scroll:c}=this.root;c&&(er(a.x,c.offset.x),er(a.y,c.offset.y))}return a}removeElementScroll(s){var l;const a=et();if(Rn(a,s),(l=this.scroll)!=null&&l.wasRoot)return a;for(let u=0;u<this.path.length;u++){const c=this.path[u],{scroll:f,options:d}=c;c!==this.root&&f&&d.layoutScroll&&(f.wasRoot&&Rn(a,s),er(a.x,f.offset.x),er(a.y,f.offset.y))}return a}applyTransform(s,a=!1,l){var c,f;const u=l||et();Rn(u,s);for(let d=0;d<this.path.length;d++){const h=this.path[d];!a&&h.options.layoutScroll&&h.scroll&&h!==h.root&&(er(u.x,-h.scroll.offset.x),er(u.y,-h.scroll.offset.y)),Ni(h.latestValues)&&Gu(u,h.latestValues,(c=h.layout)==null?void 0:c.layoutBox)}return Ni(this.latestValues)&&Gu(u,this.latestValues,(f=this.layout)==null?void 0:f.layoutBox),u}removeTransform(s){var l;const a=et();Rn(a,s);for(let u=0;u<this.path.length;u++){const c=this.path[u];if(!Ni(c.latestValues))continue;let f;c.instance&&(Op(c.latestValues)&&c.updateSnapshot(),f=et(),Rn(f,c.measurePageBox())),tw(a,c.latestValues,(l=c.snapshot)==null?void 0:l.layoutBox,f)}return Ni(this.latestValues)&&tw(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.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!==pt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var h;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(s||l&&this.isSharedProjectionDirty||this.isProjectionDirty||(h=this.parent)!=null&&h.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:c,layoutId:f}=this.options;if(!this.layout||!(c||f))return;this.resolvedRelativeTargetAt=pt.timestamp;const d=this.getClosestProjectingParent();d&&this.linkedParentVersion!==d.layoutVersion&&!d.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&d&&d.layout?this.createRelativeTarget(d,this.layout.layoutBox,d.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=et(),this.targetWithTransforms=et()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),PI(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Rn(this.target,this.layout.layoutBox),SE(this.target,this.targetDelta)):Rn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&d&&!!d.resumingFrom==!!this.resumingFrom&&!d.options.layoutScroll&&d.target&&this.animationProgress!==1?this.createRelativeTarget(d,this.target,d.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Op(this.parent.latestValues)||xE(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(s,a,l){this.relativeParent=s,this.linkedParentVersion=s.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=et(),this.relativeTargetOrigin=et(),Bc(this.relativeTargetOrigin,a,l,this.options.layoutAnchor||void 0),Rn(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var p;const s=this.getLead(),a=!!this.resumingFrom||this!==s;let l=!0;if((this.isProjectionDirty||(p=this.parent)!=null&&p.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===pt.timestamp&&(l=!1),l)return;const{layout:u,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||c))return;Rn(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,d=this.treeScale.y;rI(this.layoutCorrected,this.treeScale,this.path,a),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=et());const{target:h}=s;if(!h){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Q0(this.prevProjectionDelta.x,this.projectionDelta.x),Q0(this.prevProjectionDelta.y,this.projectionDelta.y)),Da(this.projectionDelta,this.layoutCorrected,h,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==d||!sw(this.projectionDelta.x,this.prevProjectionDelta.x)||!sw(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var a;if((a=this.options.visualElement)==null||a.scheduleRender(),s){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Qo(),this.projectionDelta=Qo(),this.projectionDeltaWithTransform=Qo()}setAnimationOrigin(s,a=!1,l){const u=this.snapshot,c=u?u.latestValues:{},f={...this.latestValues},d=Qo();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=et(),p=u?u.source:void 0,m=this.layout?this.layout.source:void 0,v=p!==m,y=this.getStack(),g=!y||y.members.length<=1,w=!!(v&&!g&&this.options.crossfade===!0&&!this.path.some(iN));this.animationProgress=0;let x;const E=l==null?void 0:l.interpolateProjection(s);this.mixTargetDelta=T=>{const S=T/1e3,b=E==null?void 0:E(S);b?(d.x.translate=b.x,d.x.scale=Pe(s.x.scale,1,S),d.x.origin=s.x.origin,d.x.originPoint=s.x.originPoint,d.y.translate=b.y,d.y.scale=Pe(s.y.scale,1,S),d.y.origin=s.y.origin,d.y.originPoint=s.y.originPoint):(hw(d.x,s.x,S),hw(d.y,s.y,S)),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Bc(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),rN(this.relativeTarget,this.relativeTargetOrigin,h,S),x&&OI(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=et()),Rn(x,this.relativeTarget)),v&&(this.animationValues=f,II(f,c,this.latestValues,S,w,g)),b&&b.rotate!==void 0&&(this.animationValues||(this.animationValues=f),this.animationValues.pathRotation=b.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){var a,l,u;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(u=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||u.stop(),this.pendingAnimation&&(Ci(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Me.update(()=>{Xu.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ms(0)),this.motionValue.jump(0,!1),this.currentAnimation=jI(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:c=>{this.mixTargetDelta(c),s.onUpdate&&s.onUpdate(c)},onComplete:()=>{s.onComplete&&s.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 s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta($I),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=s;if(!(!a||!l||!u)){if(this!==s&&this.layout&&u&&jE(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||et();const f=Nt(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+f;const d=Nt(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+d}Rn(a,l),Gu(a,c),Da(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new UI),this.sharedNodes.get(s).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var a;const{layoutId:s}=this.options;return s?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:s}=this.options;return s?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&Od("z",s,u,this.animationValues);for(let c=0;c<Dd.length;c++)Od(`rotate${Dd[c]}`,s,u,this.animationValues),Od(`skew${Dd[c]}`,s,u,this.animationValues);s.render();for(const c in u)s.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);s.scheduleRender()}applyProjectionStyles(s,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){s.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,s.visibility="",s.opacity="",s.pointerEvents=Qu(a==null?void 0:a.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(s.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,s.pointerEvents=Qu(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!Ni(this.latestValues)&&(s.transform=l?l({},""):"none",this.hasProjected=!1);return}s.visibility="";const c=u.animationValues||u.latestValues;this.applyTransformsToTarget();let f=LI(this.projectionDeltaWithTransform,this.treeScale,c);l&&(f=l(c,f)),s.transform=f;const{x:d,y:h}=this.projectionDelta;s.transformOrigin=`${d.origin*100}% ${h.origin*100}% 0`,u.animationValues?s.opacity=u===this?c.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:c.opacityExit:s.opacity=u===this?c.opacity!==void 0?c.opacity:"":c.opacityExit!==void 0?c.opacityExit:0;for(const p in _p){if(c[p]===void 0)continue;const{correct:m,applyTo:v,isCSSVariable:y}=_p[p],g=f==="none"?c[p]:m(c[p],u);if(v){const w=v.length;for(let x=0;x<w;x++)s[v[x]]=g}else y?this.options.visualElement.renderState.vars[p]=g:s[p]=g}this.options.layoutId&&(s.pointerEvents=u===this?Qu(a==null?void 0:a.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var a;return(a=s.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(cw),this.root.sharedNodes.clear()}}}function WI(e){e.updateLayout()}function KI(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,s=t.source!==e.layout.source;if(o==="size")Xn(f=>{const d=s?t.measuredBox[f]:t.layoutBox[f],h=Nt(d);d.min=r[f].min,d.max=d.min+h});else if(o==="x"||o==="y"){const f=o==="x"?"y":"x";Ip(s?t.measuredBox[f]:t.layoutBox[f],r[f])}else jE(o,t.layoutBox,r)&&Xn(f=>{const d=s?t.measuredBox[f]:t.layoutBox[f],h=Nt(r[f]);d.max=d.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+h)});const a=Qo();Da(a,r,t.layoutBox);const l=Qo();s?Da(l,e.applyTransform(i,!0),t.measuredBox):Da(l,r,t.layoutBox);const u=!LE(a);let c=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:h}=f;if(d&&h){const p=e.options.layoutAnchor||void 0,m=et();Bc(m,t.layoutBox,d.layoutBox,p);const v=et();Bc(v,r,h.layoutBox,p),_E(m,v)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=m,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeLayoutChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function qI(e){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 GI(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function QI(e){e.clearSnapshot()}function cw(e){e.clearMeasurements()}function XI(e){e.isLayoutDirty=!0,e.updateLayout()}function fw(e){e.isLayoutDirty=!1}function YI(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function ZI(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function dw(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function JI(e){e.resolveTargetDelta()}function eN(e){e.calcProjection()}function tN(e){e.resetSkewAndRotation()}function nN(e){e.removeLeadSnapshot()}function hw(e,t,n){e.translate=Pe(t.translate,0,n),e.scale=Pe(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function pw(e,t,n,r){e.min=Pe(t.min,n.min,r),e.max=Pe(t.max,n.max,r)}function rN(e,t,n,r){pw(e.x,t.x,n.x,r),pw(e.y,t.y,n.y,r)}function iN(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const oN={duration:.45,ease:[.4,0,.1,1]},mw=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),yw=mw("applewebkit/")&&!mw("chrome/")?Math.round:bn;function gw(e){e.min=yw(e.min),e.max=yw(e.max)}function sN(e){gw(e.x),gw(e.y)}function jE(e,t,n){return e==="position"||e==="preserve-aspect"&&!TI(ow(t),ow(n),.2)}function aN(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const lN=FE({attachResizeListener:(e,t)=>ol(e,"resize",t),measureScroll:()=>{var e,t;return{x:document.documentElement.scrollLeft||((e=document.body)==null?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||((t=document.body)==null?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),Ld={current:void 0},VE=FE({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ld.current){const e=new lN({});e.mount(window),e.setOptions({layoutScroll:!0}),Ld.current=e}return Ld.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),_y=C.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function vw(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function uN(...e){return t=>{let n=!1;const r=e.map(i=>{const o=vw(i,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let i=0;i<r.length;i++){const o=r[i];typeof o=="function"?o():vw(e[i],null)}}}}function cN(...e){return C.useCallback(uN(...e),e)}class fN extends C.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(Hu(n)&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const r=n.offsetParent,i=Hu(r)&&r.offsetWidth||0,o=Hu(r)&&r.offsetHeight||0,s=getComputedStyle(n),a=this.props.sizeRef.current;a.height=parseFloat(s.height),a.width=parseFloat(s.width),a.top=n.offsetTop,a.left=n.offsetLeft,a.right=i-a.width-a.left,a.bottom=o-a.height-a.top,a.direction=s.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function dN({children:e,isPresent:t,anchorX:n,anchorY:r,root:i,pop:o}){var d;const s=C.useId(),a=C.useRef(null),l=C.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:u}=C.useContext(_y),c=((d=e.props)==null?void 0:d.ref)??(e==null?void 0:e.ref),f=cN(a,c);return C.useInsertionEffect(()=>{const{width:h,height:p,top:m,left:v,right:y,bottom:g,direction:w}=l.current;if(t||o===!1||!a.current||!h||!p)return;const x=w==="rtl",E=n==="left"?x?`right: ${y}`:`left: ${v}`:x?`left: ${v}`:`right: ${y}`,T=r==="bottom"?`bottom: ${g}`:`top: ${m}`;a.current.dataset.motionPopId=s;const S=document.createElement("style");u&&(S.nonce=u);const b=i??document.head;return b.appendChild(S),S.sheet&&S.sheet.insertRule(`
|
|
430
|
+
`)},xO=0,Oo=[];function SO(e){var t=C.useRef([]),n=C.useRef([0,0]),r=C.useRef(),i=C.useState(xO++)[0],o=C.useState(dC)[0],s=C.useRef(e);C.useEffect(function(){s.current=e},[e]),C.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var m=sy([e.lockRef.current],(e.shards||[]).map(y0),!0).filter(Boolean);return m.forEach(function(v){return v.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),m.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var a=C.useCallback(function(m,v){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!s.current.allowPinchZoom;var y=mu(m),g=n.current,w="deltaX"in m?m.deltaX:g[0]-y[0],x="deltaY"in m?m.deltaY:g[1]-y[1],E,T=m.target,S=Math.abs(w)>Math.abs(x)?"h":"v";if("touches"in m&&S==="h"&&T.type==="range")return!1;var b=window.getSelection(),A=b&&b.anchorNode,M=A?A===T||A.contains(T):!1;if(M)return!1;var I=p0(S,T);if(!I)return!0;if(I?E=S:(E=S==="v"?"h":"v",I=p0(S,T)),!I)return!1;if(!r.current&&"changedTouches"in m&&(w||x)&&(r.current=E),!E)return!0;var z=r.current||E;return gO(z,v,m,z==="h"?w:x)},[]),l=C.useCallback(function(m){var v=m;if(!(!Oo.length||Oo[Oo.length-1]!==o)){var y="deltaY"in v?m0(v):mu(v),g=t.current.filter(function(E){return E.name===v.type&&(E.target===v.target||v.target===E.shadowParent)&&vO(E.delta,y)})[0];if(g&&g.should){v.cancelable&&v.preventDefault();return}if(!g){var w=(s.current.shards||[]).map(y0).filter(Boolean).filter(function(E){return E.contains(v.target)}),x=w.length>0?a(v,w[0]):!s.current.noIsolation;x&&v.cancelable&&v.preventDefault()}}},[]),u=C.useCallback(function(m,v,y,g){var w={name:m,delta:v,target:y,should:g,shadowParent:bO(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(x){return x!==w})},1)},[]),c=C.useCallback(function(m){n.current=mu(m),r.current=void 0},[]),f=C.useCallback(function(m){u(m.type,m0(m),m.target,a(m,e.lockRef.current))},[]),d=C.useCallback(function(m){u(m.type,mu(m),m.target,a(m,e.lockRef.current))},[]);C.useEffect(function(){return Oo.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:d}),document.addEventListener("wheel",l,Do),document.addEventListener("touchmove",l,Do),document.addEventListener("touchstart",c,Do),function(){Oo=Oo.filter(function(m){return m!==o}),document.removeEventListener("wheel",l,Do),document.removeEventListener("touchmove",l,Do),document.removeEventListener("touchstart",c,Do)}},[]);var h=e.removeScrollBar,p=e.inert;return C.createElement(C.Fragment,null,p?C.createElement(o,{styles:wO(i)}):null,h?C.createElement(cO,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function bO(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const CO=YD(fC,SO);var EO=C.forwardRef(function(e,t){return C.createElement(Cf,vn({},e,{ref:t,sideCar:CO}))});EO.classNames=Cf.classNames;const ay=C.createContext({});function ly(e){const t=C.useRef(null);return t.current===null&&(t.current=e()),t.current}const kO=typeof window<"u",uy=kO?C.useLayoutEffect:C.useEffect,Ef=C.createContext(null);function cy(e,t){e.indexOf(t)===-1&&e.push(t)}function Lc(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const ar=(e,t,n)=>n>t?t:n<e?e:n;let fy=()=>{};const bi={},yC=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),gC=e=>typeof e=="object"&&e!==null,vC=e=>/^0[^.\s]+$/u.test(e);function wC(e){let t;return()=>(t===void 0&&(t=e()),t)}const bn=e=>e,Rl=(...e)=>e.reduce((t,n)=>r=>n(t(r))),nl=(e,t,n)=>{const r=t-e;return r?(n-e)/r:1};class dy{constructor(){this.subscriptions=[]}add(t){return cy(this.subscriptions,t),()=>Lc(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const s=this.subscriptions[o];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const sn=e=>e*1e3,xn=e=>e/1e3,xC=(e,t)=>t?e*(1e3/t):0,SC=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,RO=1e-7,TO=12;function PO(e,t,n,r,i){let o,s,a=0;do s=t+(n-t)/2,o=SC(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>RO&&++a<TO);return s}function Tl(e,t,n,r){if(e===t&&n===r)return bn;const i=o=>PO(o,0,1,e,n);return o=>o===0||o===1?o:SC(i(o),t,r)}const bC=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,CC=e=>t=>1-e(1-t),EC=Tl(.33,1.53,.69,.99),hy=CC(EC),kC=bC(hy),RC=e=>e>=1?1:(e*=2)<1?.5*hy(e):.5*(2-Math.pow(2,-10*(e-1))),py=e=>1-Math.sin(Math.acos(e)),TC=CC(py),PC=bC(py),MO=Tl(.42,0,1,1),AO=Tl(0,0,.58,1),MC=Tl(.42,0,.58,1),DO=e=>Array.isArray(e)&&typeof e[0]!="number",AC=e=>Array.isArray(e)&&typeof e[0]=="number",OO={linear:bn,easeIn:MO,easeInOut:MC,easeOut:AO,circIn:py,circInOut:PC,circOut:TC,backIn:hy,backInOut:kC,backOut:EC,anticipate:RC},LO=e=>typeof e=="string",g0=e=>{if(AC(e)){fy(e.length===4);const[t,n,r,i]=e;return Tl(t,n,r,i)}else if(LO(e))return OO[e];return e},yu=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function _O(e){let t=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function a(u){o.has(u)&&(l.schedule(u),e()),u(s)}const l={schedule:(u,c=!1,f=!1)=>{const h=f&&r?t:n;return c&&o.add(u),h.add(u),u},cancel:u=>{n.delete(u),o.delete(u)},process:u=>{if(s=u,r){i=!0;return}r=!0;const c=t;t=n,n=c,t.forEach(a),t.clear(),r=!1,i&&(i=!1,l.process(u))}};return l}const IO=40;function DC(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=yu.reduce((w,x)=>(w[x]=_O(o),w),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:c,update:f,preRender:d,render:h,postRender:p}=s,m=()=>{const w=bi.useManualTiming,x=w?i.timestamp:performance.now();n=!1,w||(i.delta=r?1e3/60:Math.max(Math.min(x-i.timestamp,IO),1)),i.timestamp=x,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),f.process(i),d.process(i),h.process(i),p.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(m))},v=()=>{n=!0,r=!0,i.isProcessing||e(m)};return{schedule:yu.reduce((w,x)=>{const E=s[x];return w[x]=(T,S=!1,b=!1)=>(n||v(),E.schedule(T,S,b)),w},{}),cancel:w=>{for(let x=0;x<yu.length;x++)s[yu[x]].cancel(w)},state:i,steps:s}}const{schedule:Me,cancel:Ci,state:pt,steps:Cd}=DC(typeof requestAnimationFrame<"u"?requestAnimationFrame:bn,!0);let $u;function NO(){$u=void 0}const It={now:()=>($u===void 0&&It.set(pt.isProcessing||bi.useManualTiming?pt.timestamp:performance.now()),$u),set:e=>{$u=e,queueMicrotask(NO)}},OC=e=>t=>typeof t=="string"&&t.startsWith(e),LC=OC("--"),FO=OC("var(--"),my=e=>FO(e)?jO.test(e.split("/*")[0].trim()):!1,jO=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function v0(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Fs={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},rl={...Fs,transform:e=>ar(0,1,e)},gu={...Fs,default:1},Ma=e=>Math.round(e*1e5)/1e5,yy=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function VO(e){return e==null}const zO=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,gy=(e,t)=>n=>!!(typeof n=="string"&&zO.test(n)&&n.startsWith(e)||t&&!VO(n)&&Object.prototype.hasOwnProperty.call(n,t)),_C=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,s,a]=r.match(yy);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},BO=e=>ar(0,255,e),Ed={...Fs,transform:e=>Math.round(BO(e))},Wi={test:gy("rgb","red"),parse:_C("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Ed.transform(e)+", "+Ed.transform(t)+", "+Ed.transform(n)+", "+Ma(rl.transform(r))+")"};function UO(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const hp={test:gy("#"),parse:UO,transform:Wi.transform},Pl=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),yr=Pl("deg"),sr=Pl("%"),X=Pl("px"),$O=Pl("vh"),WO=Pl("vw"),w0={...sr,parse:e=>sr.parse(e)/100,transform:e=>sr.transform(e*100)},qo={test:gy("hsl","hue"),parse:_C("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+sr.transform(Ma(t))+", "+sr.transform(Ma(n))+", "+Ma(rl.transform(r))+")"},Qe={test:e=>Wi.test(e)||hp.test(e)||qo.test(e),parse:e=>Wi.test(e)?Wi.parse(e):qo.test(e)?qo.parse(e):hp.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Wi.transform(e):qo.transform(e),getAnimatableNone:e=>{const t=Qe.parse(e);return t.alpha=0,Qe.transform(t)}},HO=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function KO(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(yy))==null?void 0:t.length)||0)+(((n=e.match(HO))==null?void 0:n.length)||0)>0}const IC="number",NC="color",qO="var",GO="var(",x0="${}",QO=/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 Ps(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const a=t.replace(QO,l=>(Qe.test(l)?(r.color.push(o),i.push(NC),n.push(Qe.parse(l))):l.startsWith(GO)?(r.var.push(o),i.push(qO),n.push(l)):(r.number.push(o),i.push(IC),n.push(parseFloat(l))),++o,x0)).split(x0);return{values:n,split:a,indexes:r,types:i}}function XO(e){return Ps(e).values}function FC({split:e,types:t}){const n=e.length;return r=>{let i="";for(let o=0;o<n;o++)if(i+=e[o],r[o]!==void 0){const s=t[o];s===IC?i+=Ma(r[o]):s===NC?i+=Qe.transform(r[o]):i+=r[o]}return i}}function YO(e){return FC(Ps(e))}const ZO=e=>typeof e=="number"?0:Qe.test(e)?Qe.getAnimatableNone(e):e,JO=(e,t)=>typeof e=="number"?t!=null&&t.trim().endsWith("/")?e:0:ZO(e);function eL(e){const t=Ps(e);return FC(t)(t.values.map((r,i)=>JO(r,t.split[i])))}const Nn={test:KO,parse:XO,createTransformer:YO,getAnimatableNone:eL};function kd(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function tL({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=kd(l,a,e+1/3),o=kd(l,a,e),s=kd(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}function _c(e,t){return n=>n>0?t:e}const Pe=(e,t,n)=>e+(t-e)*n,Rd=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},nL=[hp,Wi,qo],rL=e=>nL.find(t=>t.test(e));function S0(e){const t=rL(e);if(!t)return!1;let n=t.parse(e);return t===qo&&(n=tL(n)),n}const b0=(e,t)=>{const n=S0(e),r=S0(t);if(!n||!r)return _c(e,t);const i={...n};return o=>(i.red=Rd(n.red,r.red,o),i.green=Rd(n.green,r.green,o),i.blue=Rd(n.blue,r.blue,o),i.alpha=Pe(n.alpha,r.alpha,o),Wi.transform(i))},pp=new Set(["none","hidden"]);function iL(e,t){return pp.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function oL(e,t){return n=>Pe(e,t,n)}function vy(e){return typeof e=="number"?oL:typeof e=="string"?my(e)?_c:Qe.test(e)?b0:lL:Array.isArray(e)?jC:typeof e=="object"?Qe.test(e)?b0:sL:_c}function jC(e,t){const n=[...e],r=n.length,i=e.map((o,s)=>vy(o)(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}}function sL(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=vy(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function aL(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const o=t.types[i],s=e.indexes[o][r[o]],a=e.values[s]??0;n[i]=a,r[o]++}return n}const lL=(e,t)=>{const n=Nn.createTransformer(t),r=Ps(e),i=Ps(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?pp.has(e)&&!i.values.length||pp.has(t)&&!r.values.length?iL(e,t):Rl(jC(aL(r,i),i.values),n):_c(e,t)};function VC(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Pe(e,t,n):vy(e)(e,t)}const uL=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Me.update(t,n),stop:()=>Ci(t),now:()=>pt.isProcessing?pt.timestamp:It.now()}},zC=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=Math.round(e(o/(i-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Ic=2e4;function wy(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Ic;)t+=n,r=e.next(t);return t>=Ic?1/0:t}function cL(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(wy(r),Ic);return{type:"keyframes",ease:o=>r.next(i*o).value/t,duration:xn(i)}}const We={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};function mp(e,t){return e*Math.sqrt(1-t*t)}const fL=12;function dL(e,t,n){let r=n;for(let i=1;i<fL;i++)r=r-e(r)/t(r);return r}const Td=.001;function hL({duration:e=We.duration,bounce:t=We.bounce,velocity:n=We.velocity,mass:r=We.mass}){let i,o,s=1-t;s=ar(We.minDamping,We.maxDamping,s),e=ar(We.minDuration,We.maxDuration,xn(e)),s<1?(i=u=>{const c=u*s,f=c*e,d=c-n,h=mp(u,s),p=Math.exp(-f);return Td-d/h*p},o=u=>{const f=u*s*e,d=f*n+n,h=Math.pow(s,2)*Math.pow(u,2)*e,p=Math.exp(-f),m=mp(Math.pow(u,2),s);return(-i(u)+Td>0?-1:1)*((d-h)*p)/m}):(i=u=>{const c=Math.exp(-u*e),f=(u-n)*e+1;return-Td+c*f},o=u=>{const c=Math.exp(-u*e),f=(n-u)*(e*e);return c*f});const a=5/e,l=dL(i,o,a);if(e=sn(e),isNaN(l))return{stiffness:We.stiffness,damping:We.damping,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const pL=["duration","bounce"],mL=["stiffness","damping","mass"];function C0(e,t){return t.some(n=>e[n]!==void 0)}function yL(e){let t={velocity:We.velocity,stiffness:We.stiffness,damping:We.damping,mass:We.mass,isResolvedFromDuration:!1,...e};if(!C0(e,mL)&&C0(e,pL))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*ar(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:We.mass,stiffness:i,damping:o}}else{const n=hL({...e,velocity:0});t={...t,...n,mass:We.mass},t.isResolvedFromDuration=!0}return t}function Nc(e=We.visualDuration,t=We.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:u,mass:c,duration:f,velocity:d,isResolvedFromDuration:h}=yL({...n,velocity:-xn(n.velocity||0)}),p=d||0,m=u/(2*Math.sqrt(l*c)),v=s-o,y=xn(Math.sqrt(l/c)),g=Math.abs(v)<5;r||(r=g?We.restSpeed.granular:We.restSpeed.default),i||(i=g?We.restDelta.granular:We.restDelta.default);let w,x,E,T,S,b;if(m<1)E=mp(y,m),T=(p+m*y*v)/E,w=M=>{const I=Math.exp(-m*y*M);return s-I*(T*Math.sin(E*M)+v*Math.cos(E*M))},S=m*y*T+v*E,b=m*y*v-T*E,x=M=>Math.exp(-m*y*M)*(S*Math.sin(E*M)+b*Math.cos(E*M));else if(m===1){w=I=>s-Math.exp(-y*I)*(v+(p+y*v)*I);const M=p+y*v;x=I=>Math.exp(-y*I)*(y*M*I-p)}else{const M=y*Math.sqrt(m*m-1);w=$=>{const oe=Math.exp(-m*y*$),U=Math.min(M*$,300);return s-oe*((p+m*y*v)*Math.sinh(U)+M*v*Math.cosh(U))/M};const I=(p+m*y*v)/M,z=m*y*I-v*M,W=m*y*v-I*M;x=$=>{const oe=Math.exp(-m*y*$),U=Math.min(M*$,300);return oe*(z*Math.sinh(U)+W*Math.cosh(U))}}const A={calculatedDuration:h&&f||null,velocity:M=>sn(x(M)),next:M=>{if(!h&&m<1){const z=Math.exp(-m*y*M),W=Math.sin(E*M),$=Math.cos(E*M),oe=s-z*(T*W+v*$),U=sn(z*(S*W+b*$));return a.done=Math.abs(U)<=r&&Math.abs(s-oe)<=i,a.value=a.done?s:oe,a}const I=w(M);if(h)a.done=M>=f;else{const z=sn(x(M));a.done=Math.abs(z)<=r&&Math.abs(s-I)<=i}return a.value=a.done?s:I,a},toString:()=>{const M=Math.min(wy(A),Ic),I=zC(z=>A.next(M*z).value,M,30);return M+"ms "+I},toTransition:()=>{}};return A}Nc.applyToOptions=e=>{const t=cL(e,100,Nc);return e.ease=t.ease,e.duration=sn(t.duration),e.type="keyframes",e};const gL=5;function BC(e,t,n){const r=Math.max(t-gL,0);return xC(n-e(r),t-r)}function yp({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){const f=e[0],d={done:!1,value:f},h=b=>a!==void 0&&b<a||l!==void 0&&b>l,p=b=>a===void 0?l:l===void 0||Math.abs(a-b)<Math.abs(l-b)?a:l;let m=n*t;const v=f+m,y=s===void 0?v:s(v);y!==v&&(m=y-f);const g=b=>-m*Math.exp(-b/r),w=b=>y+g(b),x=b=>{const A=g(b),M=w(b);d.done=Math.abs(A)<=u,d.value=d.done?y:M};let E,T;const S=b=>{h(d.value)&&(E=b,T=Nc({keyframes:[d.value,p(d.value)],velocity:BC(w,b,d.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return S(0),{calculatedDuration:null,next:b=>{let A=!1;return!T&&E===void 0&&(A=!0,x(b),S(b)),E!==void 0&&b>=E?T.next(b-E):(!A&&x(b),d)}}}function vL(e,t,n){const r=[],i=n||bi.mix||VC,o=e.length-1;for(let s=0;s<o;s++){let a=i(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||bn:t;a=Rl(l,a)}r.push(a)}return r}function wL(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(fy(o===t.length),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=vL(t,r,i),l=a.length,u=c=>{if(s&&c<e[0])return t[0];let f=0;if(l>1)for(;f<e.length-2&&!(c<e[f+1]);f++);const d=nl(e[f],e[f+1],c);return a[f](d)};return n?c=>u(ar(e[0],e[o-1],c)):u}function xL(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=nl(0,t,r);e.push(Pe(n,1,i))}}function SL(e){const t=[0];return xL(t,e.length-1),t}function bL(e,t){return e.map(n=>n*t)}function CL(e,t){return e.map(()=>t||MC).splice(0,e.length-1)}function Aa({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=DO(r)?r.map(g0):g0(r),o={done:!1,value:t[0]},s=bL(n&&n.length===t.length?n:SL(t),e),a=wL(s,t,{ease:Array.isArray(i)?i:CL(t,i)});return{calculatedDuration:e,next:l=>(o.value=a(l),o.done=l>=e,o)}}const EL=e=>e!==null;function kf(e,{repeat:t,repeatType:n="loop"},r,i=1){const o=e.filter(EL),a=i<0||t&&n!=="loop"&&t%2===1?0:o.length-1;return!a||r===void 0?o[a]:r}const kL={decay:yp,inertia:yp,tween:Aa,keyframes:Aa,spring:Nc};function UC(e){typeof e.type=="string"&&(e.type=kL[e.type])}class xy{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const RL=e=>e/100;class Fc extends xy{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var r,i;const{motionValue:n}=this.options;n&&n.updatedAt!==It.now()&&this.tick(It.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;UC(t);const{type:n=Aa,repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:s=0}=t;let{keyframes:a}=t;const l=n||Aa;l!==Aa&&typeof a[0]!="number"&&(this.mixKeyframes=Rl(RL,VC(a[0],a[1])),a=[0,100]);const u=l({...t,keyframes:a});o==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-s})),u.calculatedDuration===null&&(u.calculatedDuration=wy(u));const{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=u}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:o,mirroredGenerator:s,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:u=0,keyframes:c,repeat:f,repeatType:d,repeatDelay:h,type:p,onUpdate:m,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const y=this.currentTime-u*(this.playbackSpeed>=0?1:-1),g=this.playbackSpeed>=0?y<0:y>i;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let w=this.currentTime,x=r;if(f){const b=Math.min(this.currentTime,i)/a;let A=Math.floor(b),M=b%1;!M&&b>=1&&(M=1),M===1&&A--,A=Math.min(A,f+1),!!(A%2)&&(d==="reverse"?(M=1-M,h&&(M-=h/a)):d==="mirror"&&(x=s)),w=ar(0,1,M)*a}let E;g?(this.delayState.value=c[0],E=this.delayState):E=x.next(w),o&&!g&&(E.value=o(E.value));let{done:T}=E;!g&&l!==null&&(T=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const S=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&T);return S&&p!==yp&&(E.value=kf(c,this.options,v,this.speed)),m&&m(E.value),S&&this.finish(),E}then(t,n){return this.finished.then(t,n)}get duration(){return xn(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+xn(t)}get time(){return xn(this.currentTime)}set time(t){t=sn(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const n=this.generator.next(t).value;return BC(r=>this.generator.next(r).value,t,n)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(It.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=xn(this.currentTime))}play(){var i,o;if(this.isStopped)return;const{driver:t=uL,startTime:n}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),(o=(i=this.options).onPlay)==null||o.call(i);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(It.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function TL(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Hi=e=>e*180/Math.PI,gp=e=>{const t=Hi(Math.atan2(e[1],e[0]));return vp(t)},PL={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:gp,rotateZ:gp,skewX:e=>Hi(Math.atan(e[1])),skewY:e=>Hi(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},vp=e=>(e=e%360,e<0&&(e+=360),e),E0=gp,k0=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),R0=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),ML={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:k0,scaleY:R0,scale:e=>(k0(e)+R0(e))/2,rotateX:e=>vp(Hi(Math.atan2(e[6],e[5]))),rotateY:e=>vp(Hi(Math.atan2(-e[2],e[0]))),rotateZ:E0,rotate:E0,skewX:e=>Hi(Math.atan(e[4])),skewY:e=>Hi(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function wp(e){return e.includes("scale")?1:0}function xp(e,t){if(!e||e==="none")return wp(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=ML,i=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=PL,i=a}if(!i)return wp(t);const o=r[t],s=i[1].split(",").map(DL);return typeof o=="function"?o(s):s[o]}const AL=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return xp(n,t)};function DL(e){return parseFloat(e.trim())}const js=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Vs=new Set([...js,"pathRotation"]),T0=e=>e===Fs||e===X,OL=new Set(["x","y","z"]),LL=js.filter(e=>!OL.has(e));function _L(e){const t=[];return LL.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const li={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:r})=>{const i=e.max-e.min;return r==="border-box"?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:r})=>{const i=e.max-e.min;return r==="border-box"?i:i-parseFloat(t)-parseFloat(n)},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:(e,{transform:t})=>xp(t,"x"),y:(e,{transform:t})=>xp(t,"y")};li.translateX=li.x;li.translateY=li.y;const io=new Set;let Sp=!1,bp=!1,Cp=!1;function $C(){if(bp){const e=Array.from(io).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=_L(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,s])=>{var a;(a=r.getValue(o))==null||a.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}bp=!1,Sp=!1,io.forEach(e=>e.complete(Cp)),io.clear()}function WC(){io.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(bp=!0)})}function IL(){Cp=!0,WC(),$C(),Cp=!1}class Sy{constructor(t,n,r,i,o,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(io.add(this),Sp||(Sp=!0,Me.read(WC),Me.resolveKeyframes($C))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const o=i==null?void 0:i.get(),s=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const a=r.readValue(n,s);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=s),i&&o===void 0&&i.set(t[0])}TL(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),io.delete(this)}cancel(){this.state==="scheduled"&&(io.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const NL=e=>e.startsWith("--");function HC(e,t,n){NL(t)?e.style.setProperty(t,n):e.style[t]=n}const FL={};function KC(e,t){const n=wC(e);return()=>FL[t]??n()}const jL=KC(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),qC=KC(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),va=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,P0={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:va([0,.65,.55,1]),circOut:va([.55,0,1,.45]),backIn:va([.31,.01,.66,-.59]),backOut:va([.33,1.53,.69,.99])};function GC(e,t){if(e)return typeof e=="function"?qC()?zC(e,t):"ease-out":AC(e)?va(e):Array.isArray(e)?e.map(n=>GC(n,t)||P0.easeOut):P0[e]}function VL(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:a="easeOut",times:l}={},u=void 0){const c={[t]:n};l&&(c.offset=l);const f=GC(a,i);Array.isArray(f)&&(c.easing=f);const d={delay:r,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"};return u&&(d.pseudoElement=u),e.animate(c,d)}function QC(e){return typeof e=="function"&&"applyToOptions"in e}function zL({type:e,...t}){return QC(e)&&qC()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class XC extends xy{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:o,allowFlatten:s=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!o,this.allowFlatten=s,this.options=t,fy(typeof t.type!="string");const u=zL(t);this.animation=VL(n,r,i,u,o),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const c=kf(i,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(c),HC(n,r,c),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var n,r,i;const t=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((i=(r=this.animation).commitStyles)==null||i.call(r))}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return xn(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+xn(t)}get time(){return xn(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=sn(t),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:n,rangeEnd:r,observe:i}){var o;return this.allowFlatten&&((o=this.animation.effect)==null||o.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&jL()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),r&&(this.animation.rangeEnd=r),bn):i(this)}}const YC={anticipate:RC,backInOut:kC,circInOut:PC};function BL(e){return e in YC}function UL(e){typeof e.ease=="string"&&BL(e.ease)&&(e.ease=YC[e.ease])}const Pd=10;class $L extends XC{constructor(t){UL(t),UC(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:o,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new Fc({...s,autoplay:!1}),l=Math.max(Pd,It.now()-this.startTime),u=ar(0,Pd,l-Pd),c=a.sample(l).value,{name:f}=this.options;o&&f&&HC(o,f,c),n.setWithVelocity(a.sample(Math.max(0,l-u)).value,c,u),a.stop()}}const M0=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Nn.test(e)||e==="0")&&!e.startsWith("url("));function WL(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function HL(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],s=M0(i,t),a=M0(o,t);return!s||!a?!1:WL(e)||(n==="spring"||QC(n))&&r}function Ep(e){e.duration=0,e.type="keyframes"}const ZC=new Set(["opacity","clipPath","filter","transform"]),KL=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function qL(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&KL.test(e[t]))return!0;return!1}const GL=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),QL=wC(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function XL(e){var f;const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:o,type:s,keyframes:a}=e;if(!(((f=t==null?void 0:t.owner)==null?void 0:f.current)instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:c}=t.owner.getProps();return QL()&&n&&(ZC.has(n)||GL.has(n)&&qL(a))&&(n!=="transform"||!c)&&!u&&!r&&i!=="mirror"&&o!==0&&s!=="inertia"}const YL=40;class ZL extends xy{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:s="loop",keyframes:a,name:l,motionValue:u,element:c,...f}){var p;super(),this.stop=()=>{var m,v;this._animation&&(this._animation.stop(),(m=this.stopTimeline)==null||m.call(this)),(v=this.keyframeResolver)==null||v.cancel()},this.createdAt=It.now();const d={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:s,name:l,motionValue:u,element:c,...f},h=(c==null?void 0:c.KeyframeResolver)||Sy;this.keyframeResolver=new h(a,(m,v,y)=>this.onKeyframesResolved(m,v,d,!y),l,u,c),(p=this.keyframeResolver)==null||p.scheduleResolve()}onKeyframesResolved(t,n,r,i){var y,g;this.keyframeResolver=void 0;const{name:o,type:s,velocity:a,delay:l,isHandoff:u,onUpdate:c}=r;this.resolvedAt=It.now();let f=!0;HL(t,o,s,a)||(f=!1,(bi.instantAnimations||!l)&&(c==null||c(kf(t,r,n))),t[0]=t[t.length-1],Ep(r),r.repeat=0);const h={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>YL?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},p=f&&!u&&XL(h),m=(g=(y=h.motionValue)==null?void 0:y.owner)==null?void 0:g.current;let v;if(p)try{v=new $L({...h,element:m})}catch{v=new Fc(h)}else v=new Fc(h);v.finished.then(()=>{this.notifyFinished()}).catch(bn),this.pendingTimeline&&(this.stopTimeline=v.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=v}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),IL()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}function JC(e,t,n,r=0,i=1){const o=Array.from(e).sort((u,c)=>u.sortNodePosition(c)).indexOf(t),s=e.size,a=(s-1)*r;return typeof n=="function"?n(o,s):i===1?o*r:a-o*r}const A0=30,JL=e=>!isNaN(parseFloat(e));class e_{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var o;const i=It.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((o=this.events.change)==null||o.notify(this.current),this.dependents))for(const s of this.dependents)s.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=It.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=JL(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new dy);const r=this.events[t].add(n);return t==="change"?()=>{r(),Me.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=It.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>A0)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,A0);return xC(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),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(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ms(e,t){return new e_(e,t)}function eE(e,t){if(e!=null&&e.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function by(e,t){const n=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return n!==e?eE(n,e):n}const t_={type:"spring",stiffness:500,damping:25,restSpeed:10},n_=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),r_={type:"keyframes",duration:.8},i_={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},o_=(e,{keyframes:t})=>t.length>2?r_:Vs.has(e)?e.startsWith("scale")?n_(t[1]):t_:i_,s_=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function a_(e){for(const t in e)if(!s_.has(t))return!0;return!1}const Cy=(e,t,n,r={},i,o)=>s=>{const a=by(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-sn(l);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:d=>{t.set(d),a.onUpdate&&a.onUpdate(d)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:o?void 0:i};a_(a)||Object.assign(c,o_(e,c)),c.duration&&(c.duration=sn(c.duration)),c.repeatDelay&&(c.repeatDelay=sn(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let f=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(Ep(c),c.delay===0&&(f=!0)),(bi.instantAnimations||bi.skipAnimations||i!=null&&i.shouldSkipAnimations||a.skipAnimations)&&(f=!0,Ep(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,f&&!o&&t.get()!==void 0){const d=kf(c.keyframes,a);if(d!==void 0){Me.update(()=>{c.onUpdate(d),c.onComplete()});return}}return a.isSync?new Fc(c):new ZL(c)},l_=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function u_(e){const t=l_.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function tE(e,t,n=1){const[r,i]=u_(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return yC(s)?parseFloat(s):s}return my(i)?tE(i,t,n+1):i}function D0(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Ey(e,t,n,r){if(typeof t=="function"){const[i,o]=D0(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=D0(r);t=t(n!==void 0?n:e.custom,i,o)}return t}function oo(e,t,n){const r=e.getProps();return Ey(r,t,n!==void 0?n:r.custom,e)}const nE=new Set(["width","height","top","left","right","bottom",...js]),kp=e=>Array.isArray(e);function c_(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ms(n))}function f_(e){return kp(e)?e[e.length-1]||0:e}function d_(e,t){const n=oo(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const s in o){const a=f_(o[s]);c_(e,s,a)}}const yt=e=>!!(e&&e.getVelocity);function h_(e){return!!(yt(e)&&e.add)}function Rp(e,t){const n=e.getValue("willChange");if(h_(n))return n.add(t);if(!n&&bi.WillChange){const r=new bi.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function ky(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const p_="framerAppearId",rE="data-"+ky(p_);function iE(e){return e.props[rE]}function m_({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function oE(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o,transitionEnd:s,...a}=t;const l=e.getDefaultTransition();o=o?eE(o,l):l;const u=o==null?void 0:o.reduceMotion,c=o==null?void 0:o.skipAnimations;r&&(o=r);const f=[],d=i&&e.animationState&&e.animationState.getState()[i],h=o==null?void 0:o.path;h&&h.animateVisualElement(e,a,o,n,f);for(const p in a){const m=e.getValue(p,e.latestValues[p]??null),v=a[p];if(v===void 0||d&&m_(d,p))continue;const y={delay:n,...by(o||{},p)};c&&(y.skipAnimations=!0);const g=m.get();if(g!==void 0&&!m.isAnimating()&&!Array.isArray(v)&&v===g&&!y.velocity){Me.update(()=>m.set(v));continue}let w=!1;if(window.MotionHandoffAnimation){const T=iE(e);if(T){const S=window.MotionHandoffAnimation(T,p,Me);S!==null&&(y.startTime=S,w=!0)}}Rp(e,p);const x=u??e.shouldReduceMotion;m.start(Cy(p,m,v,x&&nE.has(p)?{type:!1}:y,e,w));const E=m.animation;E&&f.push(E)}if(s){const p=()=>Me.update(()=>{s&&d_(e,s)});f.length?Promise.all(f).then(p):p()}return f}function Tp(e,t,n={}){var l;const r=oo(e,t,n.type==="exit"?(l=e.presenceContext)==null?void 0:l.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(oE(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:f,staggerDirection:d}=i;return y_(e,t,u,c,f,d,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[u,c]=a==="beforeChildren"?[o,s]:[s,o];return u().then(()=>c())}else return Promise.all([o(),s(n.delay)])}function y_(e,t,n=0,r=0,i=0,o=1,s){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(Tp(l,t,{...s,delay:n+(typeof r=="function"?0:r)+JC(e.variantChildren,l,r,i,o)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function g_(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>Tp(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=Tp(e,t,n);else{const i=typeof t=="function"?oo(e,t,n.custom):t;r=Promise.all(oE(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const v_={test:e=>e==="auto",parse:e=>e},sE=e=>t=>t.test(e),aE=[Fs,X,sr,yr,WO,$O,v_],O0=e=>aE.find(sE(e));function w_(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||vC(e):!0}const x_=new Set(["brightness","contrast","saturate","opacity"]);function S_(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(yy)||[];if(!r)return e;const i=n.replace(r,"");let o=x_.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const b_=/\b([a-z-]*)\(.*?\)/gu,Pp={...Nn,getAnimatableNone:e=>{const t=e.match(b_);return t?t.map(S_).join(" "):e}},Mp={...Nn,getAnimatableNone:e=>{const t=Nn.parse(e);return Nn.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},L0={...Fs,transform:Math.round},C_={rotate:yr,pathRotation:yr,rotateX:yr,rotateY:yr,rotateZ:yr,scale:gu,scaleX:gu,scaleY:gu,scaleZ:gu,skew:yr,skewX:yr,skewY:yr,distance:X,translateX:X,translateY:X,translateZ:X,x:X,y:X,z:X,perspective:X,transformPerspective:X,opacity:rl,originX:w0,originY:w0,originZ:X},jc={borderWidth:X,borderTopWidth:X,borderRightWidth:X,borderBottomWidth:X,borderLeftWidth:X,borderRadius:X,borderTopLeftRadius:X,borderTopRightRadius:X,borderBottomRightRadius:X,borderBottomLeftRadius:X,width:X,maxWidth:X,height:X,maxHeight:X,top:X,right:X,bottom:X,left:X,inset:X,insetBlock:X,insetBlockStart:X,insetBlockEnd:X,insetInline:X,insetInlineStart:X,insetInlineEnd:X,padding:X,paddingTop:X,paddingRight:X,paddingBottom:X,paddingLeft:X,paddingBlock:X,paddingBlockStart:X,paddingBlockEnd:X,paddingInline:X,paddingInlineStart:X,paddingInlineEnd:X,margin:X,marginTop:X,marginRight:X,marginBottom:X,marginLeft:X,marginBlock:X,marginBlockStart:X,marginBlockEnd:X,marginInline:X,marginInlineStart:X,marginInlineEnd:X,fontSize:X,backgroundPositionX:X,backgroundPositionY:X,...C_,zIndex:L0,fillOpacity:rl,strokeOpacity:rl,numOctaves:L0},E_={...jc,color:Qe,backgroundColor:Qe,outlineColor:Qe,fill:Qe,stroke:Qe,borderColor:Qe,borderTopColor:Qe,borderRightColor:Qe,borderBottomColor:Qe,borderLeftColor:Qe,filter:Pp,WebkitFilter:Pp,mask:Mp,WebkitMask:Mp},lE=e=>E_[e],k_=new Set([Pp,Mp]);function uE(e,t){let n=lE(e);return k_.has(n)||(n=Nn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const R_=new Set(["auto","none","0"]);function T_(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!R_.has(o)&&Ps(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=uE(n,i)}class P_ extends Sy{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let f=t[c];if(typeof f=="string"&&(f=f.trim(),my(f))){const d=tE(f,n.current);d!==void 0&&(t[c]=d),c===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!nE.has(r)||t.length!==2)return;const[i,o]=t,s=O0(i),a=O0(o),l=v0(i),u=v0(o);if(l!==u&&li[r]){this.needsMeasurement=!0;return}if(s!==a)if(T0(s)&&T0(a))for(let c=0;c<t.length;c++){const f=t[c];typeof f=="string"&&(t[c]=parseFloat(f))}else li[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||w_(t[i]))&&r.push(i);r.length&&T_(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=li[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var a;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const o=r.length-1,s=r[o];r[o]=li[n](t.measureViewportBox(),window.getComputedStyle(t.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEach(([l,u])=>{t.getValue(l).set(u)}),this.resolveNoneKeyframes()}}const Ry=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function cE(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=(n==null?void 0:n[e])??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(r=>r!=null)}const Ap=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Wu(e){return gC(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:Ty}=DC(queueMicrotask,!1),Tn={x:!1,y:!1};function fE(){return Tn.x||Tn.y}function M_(e){return e==="x"||e==="y"?Tn[e]?null:(Tn[e]=!0,()=>{Tn[e]=!1}):Tn.x||Tn.y?null:(Tn.x=Tn.y=!0,()=>{Tn.x=Tn.y=!1})}function dE(e,t){const n=cE(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function A_(e){return!(e.pointerType==="touch"||fE())}function D_(e,t,n={}){const[r,i,o]=dE(e,n);return r.forEach(s=>{let a=!1,l=!1,u;const c=()=>{s.removeEventListener("pointerleave",p)},f=v=>{u&&(u(v),u=void 0),c()},d=v=>{a=!1,window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",d),l&&(l=!1,f(v))},h=()=>{a=!0,window.addEventListener("pointerup",d,i),window.addEventListener("pointercancel",d,i)},p=v=>{if(v.pointerType!=="touch"){if(a){l=!0;return}f(v)}},m=v=>{if(!A_(v))return;l=!1;const y=t(s,v);typeof y=="function"&&(u=y,s.addEventListener("pointerleave",p,i))};s.addEventListener("pointerenter",m,i),s.addEventListener("pointerdown",h,i)}),o}const hE=(e,t)=>t?e===t?!0:hE(e,t.parentElement):!1,Py=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,O_=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function L_(e){return O_.has(e.tagName)||e.isContentEditable===!0}const __=new Set(["INPUT","SELECT","TEXTAREA"]);function I_(e){return __.has(e.tagName)||e.isContentEditable===!0}const Hu=new WeakSet;function _0(e){return t=>{t.key==="Enter"&&e(t)}}function Md(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const N_=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=_0(()=>{if(Hu.has(n))return;Md(n,"down");const i=_0(()=>{Md(n,"up")}),o=()=>Md(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function I0(e){return Py(e)&&!fE()}const N0=new WeakSet;function F_(e,t,n={}){const[r,i,o]=dE(e,n),s=a=>{const l=a.currentTarget;if(!I0(a)||N0.has(a))return;Hu.add(l),n.stopPropagation&&N0.add(a);const u=t(l,a),c={...i,capture:!0},f=(p,m)=>{window.removeEventListener("pointerup",d,c),window.removeEventListener("pointercancel",h,c),Hu.has(l)&&Hu.delete(l),I0(p)&&typeof u=="function"&&u(p,{success:m})},d=p=>{f(p,l===window||l===document||n.useGlobalTarget||hE(l,p.target))},h=p=>{f(p,!1)};window.addEventListener("pointerup",d,c),window.addEventListener("pointercancel",h,c)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",s,i),Wu(a)&&(a.addEventListener("focus",u=>N_(u,i)),!L_(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function My(e){return gC(e)&&"ownerSVGElement"in e}const Ku=new WeakMap;let Wr;const pE=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+"Size"]:My(r)&&"getBBox"in r?r.getBBox()[t]:r[n],j_=pE("inline","width","offsetWidth"),V_=pE("block","height","offsetHeight");function z_({target:e,borderBoxSize:t}){var n;(n=Ku.get(e))==null||n.forEach(r=>{r(e,{get width(){return j_(e,t)},get height(){return V_(e,t)}})})}function B_(e){e.forEach(z_)}function U_(){typeof ResizeObserver>"u"||(Wr=new ResizeObserver(B_))}function $_(e,t){Wr||U_();const n=cE(e);return n.forEach(r=>{let i=Ku.get(r);i||(i=new Set,Ku.set(r,i)),i.add(t),Wr==null||Wr.observe(r)}),()=>{n.forEach(r=>{const i=Ku.get(r);i==null||i.delete(t),i!=null&&i.size||Wr==null||Wr.unobserve(r)})}}const qu=new Set;let Go;function W_(){Go=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};qu.forEach(t=>t(e))},window.addEventListener("resize",Go)}function H_(e){return qu.add(e),Go||W_(),()=>{qu.delete(e),!qu.size&&typeof Go=="function"&&(window.removeEventListener("resize",Go),Go=void 0)}}function F0(e,t){return typeof e=="function"?H_(e):$_(e,t)}function K_(e){return My(e)&&e.tagName==="svg"}const q_=[...aE,Qe,Nn],G_=e=>q_.find(sE(e)),j0=()=>({translate:0,scale:1,origin:0,originPoint:0}),Qo=()=>({x:j0(),y:j0()}),V0=()=>({min:0,max:0}),et=()=>({x:V0(),y:V0()}),Q_=new WeakMap;function Rf(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function il(e){return typeof e=="string"||Array.isArray(e)}const Ay=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Dy=["initial",...Ay];function Tf(e){return Rf(e.animate)||Dy.some(t=>il(e[t]))}function mE(e){return!!(Tf(e)||e.variants)}function X_(e,t,n){for(const r in t){const i=t[r],o=n[r];if(yt(i))e.addValue(r,i);else if(yt(o))e.addValue(r,Ms(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=e.getStaticValue(r);e.addValue(r,Ms(s!==void 0?s:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Dp={current:null},yE={current:!1},Y_=typeof window<"u";function Z_(){if(yE.current=!0,!!Y_)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Dp.current=e.matches;e.addEventListener("change",t),t()}else Dp.current=!1}const z0=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Vc={};function gE(e){Vc=e}function J_(){return Vc}class e3{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,skipAnimations:o,blockInitialAnimation:s,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Sy,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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 h=It.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,Me.render(this.render,!1,!0))};const{latestValues:u,renderState:c}=a;this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=o,this.options=l,this.blockInitialAnimation=!!s,this.isControllingVariants=Tf(n),this.isVariantNode=mE(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in d){const p=d[h];u[h]!==void 0&&yt(p)&&p.set(u[h])}}mount(t){var n,r;if(this.hasBeenMounted)for(const i in this.initialValues)(n=this.values.get(i))==null||n.jump(this.initialValues[i]),this.latestValues[i]=this.initialValues[i];this.current=t,Q_.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((i,o)=>this.bindToMotionValue(o,i)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(yE.current||Z_(),this.shouldReduceMotion=Dp.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(r=this.parent)==null||r.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),Ci(this.notifyUpdate),Ci(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&ZC.has(t)&&this.current instanceof HTMLElement){const{factory:s,keyframes:a,times:l,ease:u,duration:c}=n.accelerate,f=new XC({element:this.current,name:t,keyframes:a,times:l,ease:u,duration:sn(c)}),d=s(f);this.valueSubscriptions.set(t,()=>{d(),f.cancel()});return}const r=Vs.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Me.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;typeof window<"u"&&window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o&&o()})}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 Vc){const n=Vc[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):et()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<z0.length;r++){const i=z0[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,s=t[o];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=X_(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}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 n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Ms(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(yC(r)||vC(r))?r=parseFloat(r):!G_(r)&&Nn.test(n)&&(r=uE(t,n)),this.setBaseTarget(t,yt(r)?r.get():r)),yt(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var o;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const s=Ey(this.props,n,(o=this.presenceContext)==null?void 0:o.custom);s&&(r=s[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!yt(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new dy),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Ty.render(this.render)}}class vE extends e3{constructor(){super(...arguments),this.KeyframeResolver=P_}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const r=t.style;return r?r[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;yt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class Pi{constructor(t){this.isMounted=!1,this.node=t}update(){}}function wE({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function t3({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function n3(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Ad(e){return e===void 0||e===1}function Op({scale:e,scaleX:t,scaleY:n}){return!Ad(e)||!Ad(t)||!Ad(n)}function Ni(e){return Op(e)||xE(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function xE(e){return B0(e.x)||B0(e.y)}function B0(e){return e&&e!=="0%"}function zc(e,t,n){const r=e-n,i=t*r;return n+i}function U0(e,t,n,r,i){return i!==void 0&&(e=zc(e,i,r)),zc(e,n,r)+t}function Lp(e,t=0,n=1,r,i){e.min=U0(e.min,t,n,r,i),e.max=U0(e.max,t,n,r,i)}function SE(e,{x:t,y:n}){Lp(e.x,t.translate,t.scale,t.originPoint),Lp(e.y,n.translate,n.scale,n.originPoint)}const $0=.999999999999,W0=1.0000000000001;function r3(e,t,n,r=!1){var a;const i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let l=0;l<i;l++){o=n[l],s=o.projectionDelta;const{visualElement:u}=o.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&(er(e.x,-o.scroll.offset.x),er(e.y,-o.scroll.offset.y)),s&&(t.x*=s.x.scale,t.y*=s.y.scale,SE(e,s)),r&&Ni(o.latestValues)&&Gu(e,o.latestValues,(a=o.layout)==null?void 0:a.layoutBox))}t.x<W0&&t.x>$0&&(t.x=1),t.y<W0&&t.y>$0&&(t.y=1)}function er(e,t){e.min+=t,e.max+=t}function H0(e,t,n,r,i=.5){const o=Pe(e.min,e.max,i);Lp(e,t,n,o,r)}function K0(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function Gu(e,t,n){const r=n??e;H0(e.x,K0(t.x,r.x),t.scaleX,t.scale,t.originX),H0(e.y,K0(t.y,r.y),t.scaleY,t.scale,t.originY)}function bE(e,t){return wE(n3(e.getBoundingClientRect(),t))}function i3(e,t,n){const r=bE(e,n),{scroll:i}=t;return i&&(er(r.x,i.offset.x),er(r.y,i.offset.y)),r}const o3={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},s3=js.length;function a3(e,t,n){let r="",i=!0;for(let s=0;s<s3;s++){const a=js[s],l=e[a];if(l===void 0)continue;let u=!0;if(typeof l=="number")u=l===(a.startsWith("scale")?1:0);else{const c=parseFloat(l);u=a.startsWith("scale")?c===1:c===0}if(!u||n){const c=Ap(l,jc[a]);if(!u){i=!1;const f=o3[a]||a;r+=`${f}(${c}) `}n&&(t[a]=c)}}const o=e.pathRotation;return o&&(i=!1,r+=`rotate(${Ap(o,jc.pathRotation)}) `),r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function Oy(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let s=!1,a=!1;for(const l in t){const u=t[l];if(Vs.has(l)){s=!0;continue}else if(LC(l)){i[l]=u;continue}else{const c=Ap(u,jc[l]);l.startsWith("origin")?(a=!0,o[l]=c):r[l]=c}}if(t.transform||(s||n?r.transform=a3(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:c=0}=o;r.transformOrigin=`${l} ${u} ${c}`}}function CE(e,{style:t,vars:n},r,i){const o=e.style;let s;for(s in t)o[s]=t[s];i==null||i.applyProjectionStyles(o,r);for(s in n)o.setProperty(s,n[s])}function q0(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const la={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(X.test(e))e=parseFloat(e);else return e;const n=q0(e,t.target.x),r=q0(e,t.target.y);return`${n}% ${r}%`}},l3={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Nn.parse(e);if(i.length>5)return r;const o=Nn.createTransformer(e),s=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+s]/=a,i[1+s]/=l;const u=Pe(a,l,.5);return typeof i[2+s]=="number"&&(i[2+s]/=u),typeof i[3+s]=="number"&&(i[3+s]/=u),o(i)}},_p={borderRadius:{...la,applyTo:[...Ry]},borderTopLeftRadius:la,borderTopRightRadius:la,borderBottomLeftRadius:la,borderBottomRightRadius:la,boxShadow:l3};function EE(e,{layout:t,layoutId:n}){return Vs.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!_p[e]||e==="opacity")}function Ly(e,t,n){var s;const r=e.style,i=t==null?void 0:t.style,o={};if(!r)return o;for(const a in r)(yt(r[a])||i&&yt(i[a])||EE(a,e)||((s=n==null?void 0:n.getValue(a))==null?void 0:s.liveStyle)!==void 0)&&(o[a]=r[a]);return o}function u3(e){return window.getComputedStyle(e)}class c3 extends vE{constructor(){super(...arguments),this.type="html",this.renderInstance=CE}readValueFromInstance(t,n){var r;if(Vs.has(n))return(r=this.projection)!=null&&r.isProjecting?wp(n):AL(t,n);{const i=u3(t),o=(LC(n)?i.getPropertyValue(n):i[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return bE(t,n)}build(t,n,r){Oy(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Ly(t,n,r)}}const f3={offset:"stroke-dashoffset",array:"stroke-dasharray"},d3={offset:"strokeDashoffset",array:"strokeDasharray"};function h3(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?f3:d3;e[o.offset]=`${-r}`,e[o.array]=`${t} ${n}`}const p3=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function kE(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:o=1,pathOffset:s=0,...a},l,u,c){if(Oy(e,a,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:d}=e;f.transform&&(d.transform=f.transform,delete f.transform),(d.transform||f.transformOrigin)&&(d.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),d.transform&&(d.transformBox=(c==null?void 0:c.transformBox)??"fill-box",delete f.transformBox);for(const h of p3)f[h]!==void 0&&(d[h]=f[h],delete f[h]);t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),i!==void 0&&h3(f,i,o,s,!1)}const RE=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"]),TE=e=>typeof e=="string"&&e.toLowerCase()==="svg";function m3(e,t,n,r){CE(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(RE.has(i)?i:ky(i),t.attrs[i])}function PE(e,t,n){const r=Ly(e,t,n);for(const i in e)if(yt(e[i])||yt(t[i])){const o=js.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}class y3 extends vE{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=et}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Vs.has(n)){const r=lE(n);return r&&r.default||0}return n=RE.has(n)?n:ky(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return PE(t,n,r)}build(t,n,r){kE(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){m3(t,n,r,i)}mount(t){this.isSVGTag=TE(t.tagName),super.mount(t)}}const g3=Dy.length;function ME(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?ME(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<g3;n++){const r=Dy[n],i=e.props[r];(il(i)||i===!1)&&(t[r]=i)}return t}function AE(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const v3=[...Ay].reverse(),w3=Ay.length;function x3(e){return t=>Promise.all(t.map(({animation:n,options:r})=>g_(e,n,r)))}function S3(e){let t=x3(e),n=G0(),r=!0,i=!1;const o=u=>(c,f)=>{var h;const d=oo(e,f,u==="exit"?(h=e.presenceContext)==null?void 0:h.custom:void 0);if(d){const{transition:p,transitionEnd:m,...v}=d;c={...c,...v,...m}}return c};function s(u){t=u(e)}function a(u){const{props:c}=e,f=ME(e.parent)||{},d=[],h=new Set;let p={},m=1/0;for(let y=0;y<w3;y++){const g=v3[y],w=n[g],x=c[g]!==void 0?c[g]:f[g],E=il(x),T=g===u?w.isActive:null;T===!1&&(m=y);let S=x===f[g]&&x!==c[g]&&E;if(S&&(r||i)&&e.manuallyAnimateOnMount&&(S=!1),w.protectedKeys={...p},!w.isActive&&T===null||!x&&!w.prevProp||Rf(x)||typeof x=="boolean")continue;if(g==="exit"&&w.isActive&&T!==!0){w.prevResolvedValues&&(p={...p,...w.prevResolvedValues});continue}const b=b3(w.prevProp,x);let A=b||g===u&&w.isActive&&!S&&E||y>m&&E,M=!1;const I=Array.isArray(x)?x:[x];let z=I.reduce(o(g),{});T===!1&&(z={});const{prevResolvedValues:W={}}=w,$={...W,...z},oe=O=>{A=!0,h.has(O)&&(M=!0,h.delete(O)),w.needsAnimating[O]=!0;const j=e.getValue(O);j&&(j.liveStyle=!1)};for(const O in $){const j=z[O],_=W[O];if(p.hasOwnProperty(O))continue;let re=!1;kp(j)&&kp(_)?re=!AE(j,_)||b:re=j!==_,re?j!=null?oe(O):h.add(O):j!==void 0&&h.has(O)?oe(O):w.protectedKeys[O]=!0}w.prevProp=x,w.prevResolvedValues=z,w.isActive&&(p={...p,...z}),(r||i)&&e.blockInitialAnimation&&(A=!1);const U=S&&b;A&&(!U||M)&&d.push(...I.map(O=>{const j={type:g};if(typeof O=="string"&&(r||i)&&!U&&e.manuallyAnimateOnMount&&e.parent){const{parent:_}=e,re=oo(_,O);if(_.enteringChildren&&re){const{delayChildren:ne}=re.transition||{};j.delay=JC(_.enteringChildren,e,ne)}}return{animation:O,options:j}}))}if(h.size){const y={};if(typeof c.initial!="boolean"){const g=oo(e,Array.isArray(c.initial)?c.initial[0]:c.initial);g&&g.transition&&(y.transition=g.transition)}h.forEach(g=>{const w=e.getBaseTarget(g),x=e.getValue(g);x&&(x.liveStyle=!0),y[g]=w??null}),d.push({animation:y})}let v=!!d.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(v=!1),r=!1,i=!1,v?t(d):Promise.resolve()}function l(u,c){var d;if(n[u].isActive===c)return Promise.resolve();(d=e.variantChildren)==null||d.forEach(h=>{var p;return(p=h.animationState)==null?void 0:p.setActive(u,c)}),n[u].isActive=c;const f=a(u);for(const h in n)n[h].protectedKeys={};return f}return{animateChanges:a,setActive:l,setAnimateFunction:s,getState:()=>n,reset:()=>{n=G0(),i=!0}}}function b3(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!AE(t,e):!1}function Li(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function G0(){return{animate:Li(!0),whileInView:Li(),whileHover:Li(),whileTap:Li(),whileDrag:Li(),whileFocus:Li(),exit:Li()}}function Ip(e,t){e.min=t.min,e.max=t.max}function Rn(e,t){Ip(e.x,t.x),Ip(e.y,t.y)}function Q0(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const DE=1e-4,C3=1-DE,E3=1+DE,OE=.01,k3=0-OE,R3=0+OE;function Nt(e){return e.max-e.min}function T3(e,t,n){return Math.abs(e-t)<=n}function X0(e,t,n,r=.5){e.origin=r,e.originPoint=Pe(t.min,t.max,e.origin),e.scale=Nt(n)/Nt(t),e.translate=Pe(n.min,n.max,e.origin)-e.originPoint,(e.scale>=C3&&e.scale<=E3||isNaN(e.scale))&&(e.scale=1),(e.translate>=k3&&e.translate<=R3||isNaN(e.translate))&&(e.translate=0)}function Da(e,t,n,r){X0(e.x,t.x,n.x,r?r.originX:void 0),X0(e.y,t.y,n.y,r?r.originY:void 0)}function Y0(e,t,n,r=0){const i=r?Pe(n.min,n.max,r):n.min;e.min=i+t.min,e.max=e.min+Nt(t)}function P3(e,t,n,r){Y0(e.x,t.x,n.x,r==null?void 0:r.x),Y0(e.y,t.y,n.y,r==null?void 0:r.y)}function Z0(e,t,n,r=0){const i=r?Pe(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+Nt(t)}function Bc(e,t,n,r){Z0(e.x,t.x,n.x,r==null?void 0:r.x),Z0(e.y,t.y,n.y,r==null?void 0:r.y)}function J0(e,t,n,r,i){return e-=t,e=zc(e,1/n,r),i!==void 0&&(e=zc(e,1/i,r)),e}function M3(e,t=0,n=1,r=.5,i,o=e,s=e){if(sr.test(t)&&(t=parseFloat(t),t=Pe(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=Pe(o.min,o.max,r);e===o&&(a-=t),e.min=J0(e.min,t,n,a,i),e.max=J0(e.max,t,n,a,i)}function ew(e,t,[n,r,i],o,s){M3(e,t[n],t[r],t[i],t.scale,o,s)}const A3=["x","scaleX","originX"],D3=["y","scaleY","originY"];function tw(e,t,n,r){ew(e.x,t,A3,n?n.x:void 0,r?r.x:void 0),ew(e.y,t,D3,n?n.y:void 0,r?r.y:void 0)}function nw(e){return e.translate===0&&e.scale===1}function LE(e){return nw(e.x)&&nw(e.y)}function rw(e,t){return e.min===t.min&&e.max===t.max}function O3(e,t){return rw(e.x,t.x)&&rw(e.y,t.y)}function iw(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function _E(e,t){return iw(e.x,t.x)&&iw(e.y,t.y)}function ow(e){return Nt(e.x)/Nt(e.y)}function sw(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Xn(e){return[e("x"),e("y")]}function L3(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((i||o||s)&&(r=`translate3d(${i}px, ${o}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,pathRotation:f,rotateX:d,rotateY:h,skewX:p,skewY:m}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),f&&(r+=`rotate(${f}deg) `),d&&(r+=`rotateX(${d}deg) `),h&&(r+=`rotateY(${h}deg) `),p&&(r+=`skewX(${p}deg) `),m&&(r+=`skewY(${m}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const _3=Ry.length,aw=e=>typeof e=="string"?parseFloat(e):e,lw=e=>typeof e=="number"||X.test(e);function I3(e,t,n,r,i,o){i?(e.opacity=Pe(0,n.opacity??1,N3(r)),e.opacityExit=Pe(t.opacity??1,0,F3(r))):o&&(e.opacity=Pe(t.opacity??1,n.opacity??1,r));for(let s=0;s<_3;s++){const a=Ry[s];let l=uw(t,a),u=uw(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||lw(l)===lw(u)?(e[a]=Math.max(Pe(aw(l),aw(u),r),0),(sr.test(u)||sr.test(l))&&(e[a]+="%")):e[a]=u}(t.rotate||n.rotate)&&(e.rotate=Pe(t.rotate||0,n.rotate||0,r))}function uw(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const N3=IE(0,.5,TC),F3=IE(.5,.95,bn);function IE(e,t,n){return r=>r<e?0:r>t?1:n(nl(e,t,r))}function j3(e,t,n){const r=yt(e)?e:Ms(e);return r.start(Cy("",r,t,n)),r.animation}function ol(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}const V3=(e,t)=>e.depth-t.depth;class z3{constructor(){this.children=[],this.isDirty=!1}add(t){cy(this.children,t),this.isDirty=!0}remove(t){Lc(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(V3),this.isDirty=!1,this.children.forEach(t)}}function B3(e,t){const n=It.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Ci(r),e(o-t))};return Me.setup(r,!0),()=>Ci(r)}function Qu(e){return yt(e)?e.get():e}class U3{constructor(){this.members=[]}add(t){cy(this.members,t);for(let n=this.members.length-1;n>=0;n--){const r=this.members[n];if(r===t||r===this.lead||r===this.prevLead)continue;const i=r.instance;(!i||i.isConnected===!1)&&!r.snapshot&&(Lc(this.members,r),r.unmount())}t.scheduleRender()}remove(t){if(Lc(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){var n;for(let r=this.members.indexOf(t)-1;r>=0;r--){const i=this.members[r];if(i.isPresent!==!1&&((n=i.instance)==null?void 0:n.isConnected)!==!1)return this.promote(i),!0}return!1}promote(t,n){var i;const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.updateSnapshot(),t.scheduleRender();const{layoutDependency:o}=r.options,{layoutDependency:s}=t.options;(o===void 0||o!==s)&&(t.resumeFrom=r,n&&(r.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),(i=t.root)!=null&&i.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var n,r,i,o,s;(r=(n=t.options).onExitComplete)==null||r.call(n),(s=(i=t.resumingFrom)==null?void 0:(o=i.options).onExitComplete)==null||s.call(o)})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){var t;(t=this.lead)!=null&&t.snapshot&&(this.lead.snapshot=void 0)}}const Xu={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Dd=["","X","Y","Z"],$3=1e3;let W3=0;function Od(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function NE(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=iE(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Me,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&NE(r)}function FE({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},a=t==null?void 0:t()){this.id=W3++,this.animationId=0,this.animationCommitId=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.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(q3),this.nodes.forEach(J3),this.nodes.forEach(eI),this.nodes.forEach(G3)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new z3)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new dy),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){const l=this.eventHandlers.get(s);l&&l.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s){if(this.instance)return;this.isSVG=My(s)&&!K_(s),this.instance=s;const{layoutId:a,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),e){let c,f=0;const d=()=>this.root.updateBlockedByResize=!1;Me.read(()=>{f=window.innerWidth}),e(s,()=>{const h=window.innerWidth;h!==f&&(f=h,this.root.updateBlockedByResize=!0,c&&c(),c=B3(d,250),Xu.hasAnimatedSinceResize&&(Xu.hasAnimatedSinceResize=!1,this.nodes.forEach(dw)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&u&&(a||l)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:f,hasRelativeLayoutChanged:d,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||u.getDefaultTransition()||oI,{onLayoutAnimationStart:m,onLayoutAnimationComplete:v}=u.getProps(),y=!this.targetLayout||!_E(this.targetLayout,h),g=!f&&d;if(this.options.layoutRoot||this.resumeFrom||g||f&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const w={...by(p,"layout"),onPlay:m,onComplete:v};(u.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w),this.setAnimationOrigin(c,g,w.path)}else f||dw(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Ci(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(tI),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&NE(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const f=this.path[c];f.shouldResetTransform=!0,(typeof f.latestValues.x=="string"||typeof f.latestValues.y=="string")&&(f.isLayoutDirty=!0),f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const l=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),l&&this.nodes.forEach(X3),this.nodes.forEach(cw);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(fw);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Y3),this.nodes.forEach(Z3),this.nodes.forEach(H3),this.nodes.forEach(K3)):this.nodes.forEach(fw),this.clearAllSnapshots();const a=It.now();pt.delta=ar(0,1e3/60,a-pt.timestamp),pt.timestamp=a,pt.isProcessing=!0,Cd.update.process(pt),Cd.preRender.process(pt),Cd.render.process(pt),pt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ty.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Q3),this.sharedNodes.forEach(nI)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Me.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Me.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Nt(this.snapshot.measuredBox.x)&&!Nt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=et()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a&&this.instance){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!LE(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;s&&this.instance&&(a||Ni(this.latestValues)||c)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),sI(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:s}=this.options;if(!s)return et();const a=s.measureViewportBox();if(!(((u=this.scroll)==null?void 0:u.wasRoot)||this.path.some(aI))){const{scroll:c}=this.root;c&&(er(a.x,c.offset.x),er(a.y,c.offset.y))}return a}removeElementScroll(s){var l;const a=et();if(Rn(a,s),(l=this.scroll)!=null&&l.wasRoot)return a;for(let u=0;u<this.path.length;u++){const c=this.path[u],{scroll:f,options:d}=c;c!==this.root&&f&&d.layoutScroll&&(f.wasRoot&&Rn(a,s),er(a.x,f.offset.x),er(a.y,f.offset.y))}return a}applyTransform(s,a=!1,l){var c,f;const u=l||et();Rn(u,s);for(let d=0;d<this.path.length;d++){const h=this.path[d];!a&&h.options.layoutScroll&&h.scroll&&h!==h.root&&(er(u.x,-h.scroll.offset.x),er(u.y,-h.scroll.offset.y)),Ni(h.latestValues)&&Gu(u,h.latestValues,(c=h.layout)==null?void 0:c.layoutBox)}return Ni(this.latestValues)&&Gu(u,this.latestValues,(f=this.layout)==null?void 0:f.layoutBox),u}removeTransform(s){var l;const a=et();Rn(a,s);for(let u=0;u<this.path.length;u++){const c=this.path[u];if(!Ni(c.latestValues))continue;let f;c.instance&&(Op(c.latestValues)&&c.updateSnapshot(),f=et(),Rn(f,c.measurePageBox())),tw(a,c.latestValues,(l=c.snapshot)==null?void 0:l.layoutBox,f)}return Ni(this.latestValues)&&tw(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.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!==pt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var h;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(s||l&&this.isSharedProjectionDirty||this.isProjectionDirty||(h=this.parent)!=null&&h.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:c,layoutId:f}=this.options;if(!this.layout||!(c||f))return;this.resolvedRelativeTargetAt=pt.timestamp;const d=this.getClosestProjectingParent();d&&this.linkedParentVersion!==d.layoutVersion&&!d.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&d&&d.layout?this.createRelativeTarget(d,this.layout.layoutBox,d.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=et(),this.targetWithTransforms=et()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),P3(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Rn(this.target,this.layout.layoutBox),SE(this.target,this.targetDelta)):Rn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&d&&!!d.resumingFrom==!!this.resumingFrom&&!d.options.layoutScroll&&d.target&&this.animationProgress!==1?this.createRelativeTarget(d,this.target,d.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Op(this.parent.latestValues)||xE(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(s,a,l){this.relativeParent=s,this.linkedParentVersion=s.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=et(),this.relativeTargetOrigin=et(),Bc(this.relativeTargetOrigin,a,l,this.options.layoutAnchor||void 0),Rn(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var p;const s=this.getLead(),a=!!this.resumingFrom||this!==s;let l=!0;if((this.isProjectionDirty||(p=this.parent)!=null&&p.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===pt.timestamp&&(l=!1),l)return;const{layout:u,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||c))return;Rn(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,d=this.treeScale.y;r3(this.layoutCorrected,this.treeScale,this.path,a),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=et());const{target:h}=s;if(!h){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Q0(this.prevProjectionDelta.x,this.projectionDelta.x),Q0(this.prevProjectionDelta.y,this.projectionDelta.y)),Da(this.projectionDelta,this.layoutCorrected,h,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==d||!sw(this.projectionDelta.x,this.prevProjectionDelta.x)||!sw(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var a;if((a=this.options.visualElement)==null||a.scheduleRender(),s){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Qo(),this.projectionDelta=Qo(),this.projectionDeltaWithTransform=Qo()}setAnimationOrigin(s,a=!1,l){const u=this.snapshot,c=u?u.latestValues:{},f={...this.latestValues},d=Qo();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=et(),p=u?u.source:void 0,m=this.layout?this.layout.source:void 0,v=p!==m,y=this.getStack(),g=!y||y.members.length<=1,w=!!(v&&!g&&this.options.crossfade===!0&&!this.path.some(iI));this.animationProgress=0;let x;const E=l==null?void 0:l.interpolateProjection(s);this.mixTargetDelta=T=>{const S=T/1e3,b=E==null?void 0:E(S);b?(d.x.translate=b.x,d.x.scale=Pe(s.x.scale,1,S),d.x.origin=s.x.origin,d.x.originPoint=s.x.originPoint,d.y.translate=b.y,d.y.scale=Pe(s.y.scale,1,S),d.y.origin=s.y.origin,d.y.originPoint=s.y.originPoint):(hw(d.x,s.x,S),hw(d.y,s.y,S)),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Bc(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),rI(this.relativeTarget,this.relativeTargetOrigin,h,S),x&&O3(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=et()),Rn(x,this.relativeTarget)),v&&(this.animationValues=f,I3(f,c,this.latestValues,S,w,g)),b&&b.rotate!==void 0&&(this.animationValues||(this.animationValues=f),this.animationValues.pathRotation=b.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){var a,l,u;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(u=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||u.stop(),this.pendingAnimation&&(Ci(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Me.update(()=>{Xu.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ms(0)),this.motionValue.jump(0,!1),this.currentAnimation=j3(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:c=>{this.mixTargetDelta(c),s.onUpdate&&s.onUpdate(c)},onComplete:()=>{s.onComplete&&s.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 s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta($3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=s;if(!(!a||!l||!u)){if(this!==s&&this.layout&&u&&jE(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||et();const f=Nt(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+f;const d=Nt(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+d}Rn(a,l),Gu(a,c),Da(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new U3),this.sharedNodes.get(s).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var a;const{layoutId:s}=this.options;return s?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:s}=this.options;return s?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&Od("z",s,u,this.animationValues);for(let c=0;c<Dd.length;c++)Od(`rotate${Dd[c]}`,s,u,this.animationValues),Od(`skew${Dd[c]}`,s,u,this.animationValues);s.render();for(const c in u)s.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);s.scheduleRender()}applyProjectionStyles(s,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){s.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,s.visibility="",s.opacity="",s.pointerEvents=Qu(a==null?void 0:a.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(s.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,s.pointerEvents=Qu(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!Ni(this.latestValues)&&(s.transform=l?l({},""):"none",this.hasProjected=!1);return}s.visibility="";const c=u.animationValues||u.latestValues;this.applyTransformsToTarget();let f=L3(this.projectionDeltaWithTransform,this.treeScale,c);l&&(f=l(c,f)),s.transform=f;const{x:d,y:h}=this.projectionDelta;s.transformOrigin=`${d.origin*100}% ${h.origin*100}% 0`,u.animationValues?s.opacity=u===this?c.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:c.opacityExit:s.opacity=u===this?c.opacity!==void 0?c.opacity:"":c.opacityExit!==void 0?c.opacityExit:0;for(const p in _p){if(c[p]===void 0)continue;const{correct:m,applyTo:v,isCSSVariable:y}=_p[p],g=f==="none"?c[p]:m(c[p],u);if(v){const w=v.length;for(let x=0;x<w;x++)s[v[x]]=g}else y?this.options.visualElement.renderState.vars[p]=g:s[p]=g}this.options.layoutId&&(s.pointerEvents=u===this?Qu(a==null?void 0:a.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var a;return(a=s.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(cw),this.root.sharedNodes.clear()}}}function H3(e){e.updateLayout()}function K3(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,s=t.source!==e.layout.source;if(o==="size")Xn(f=>{const d=s?t.measuredBox[f]:t.layoutBox[f],h=Nt(d);d.min=r[f].min,d.max=d.min+h});else if(o==="x"||o==="y"){const f=o==="x"?"y":"x";Ip(s?t.measuredBox[f]:t.layoutBox[f],r[f])}else jE(o,t.layoutBox,r)&&Xn(f=>{const d=s?t.measuredBox[f]:t.layoutBox[f],h=Nt(r[f]);d.max=d.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+h)});const a=Qo();Da(a,r,t.layoutBox);const l=Qo();s?Da(l,e.applyTransform(i,!0),t.measuredBox):Da(l,r,t.layoutBox);const u=!LE(a);let c=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:h}=f;if(d&&h){const p=e.options.layoutAnchor||void 0,m=et();Bc(m,t.layoutBox,d.layoutBox,p);const v=et();Bc(v,r,h.layoutBox,p),_E(m,v)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=m,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeLayoutChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function q3(e){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 G3(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Q3(e){e.clearSnapshot()}function cw(e){e.clearMeasurements()}function X3(e){e.isLayoutDirty=!0,e.updateLayout()}function fw(e){e.isLayoutDirty=!1}function Y3(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function Z3(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function dw(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function J3(e){e.resolveTargetDelta()}function eI(e){e.calcProjection()}function tI(e){e.resetSkewAndRotation()}function nI(e){e.removeLeadSnapshot()}function hw(e,t,n){e.translate=Pe(t.translate,0,n),e.scale=Pe(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function pw(e,t,n,r){e.min=Pe(t.min,n.min,r),e.max=Pe(t.max,n.max,r)}function rI(e,t,n,r){pw(e.x,t.x,n.x,r),pw(e.y,t.y,n.y,r)}function iI(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const oI={duration:.45,ease:[.4,0,.1,1]},mw=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),yw=mw("applewebkit/")&&!mw("chrome/")?Math.round:bn;function gw(e){e.min=yw(e.min),e.max=yw(e.max)}function sI(e){gw(e.x),gw(e.y)}function jE(e,t,n){return e==="position"||e==="preserve-aspect"&&!T3(ow(t),ow(n),.2)}function aI(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const lI=FE({attachResizeListener:(e,t)=>ol(e,"resize",t),measureScroll:()=>{var e,t;return{x:document.documentElement.scrollLeft||((e=document.body)==null?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||((t=document.body)==null?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),Ld={current:void 0},VE=FE({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ld.current){const e=new lI({});e.mount(window),e.setOptions({layoutScroll:!0}),Ld.current=e}return Ld.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),_y=C.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function vw(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function uI(...e){return t=>{let n=!1;const r=e.map(i=>{const o=vw(i,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let i=0;i<r.length;i++){const o=r[i];typeof o=="function"?o():vw(e[i],null)}}}}function cI(...e){return C.useCallback(uI(...e),e)}class fI extends C.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(Wu(n)&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const r=n.offsetParent,i=Wu(r)&&r.offsetWidth||0,o=Wu(r)&&r.offsetHeight||0,s=getComputedStyle(n),a=this.props.sizeRef.current;a.height=parseFloat(s.height),a.width=parseFloat(s.width),a.top=n.offsetTop,a.left=n.offsetLeft,a.right=i-a.width-a.left,a.bottom=o-a.height-a.top,a.direction=s.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function dI({children:e,isPresent:t,anchorX:n,anchorY:r,root:i,pop:o}){var d;const s=C.useId(),a=C.useRef(null),l=C.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:u}=C.useContext(_y),c=((d=e.props)==null?void 0:d.ref)??(e==null?void 0:e.ref),f=cI(a,c);return C.useInsertionEffect(()=>{const{width:h,height:p,top:m,left:v,right:y,bottom:g,direction:w}=l.current;if(t||o===!1||!a.current||!h||!p)return;const x=w==="rtl",E=n==="left"?x?`right: ${y}`:`left: ${v}`:x?`left: ${v}`:`right: ${y}`,T=r==="bottom"?`bottom: ${g}`:`top: ${m}`;a.current.dataset.motionPopId=s;const S=document.createElement("style");u&&(S.nonce=u);const b=i??document.head;return b.appendChild(S),S.sheet&&S.sheet.insertRule(`
|
|
421
431
|
[data-motion-pop-id="${s}"] {
|
|
422
432
|
position: absolute !important;
|
|
423
433
|
width: ${h}px !important;
|
|
@@ -425,7 +435,7 @@ Error generating stack: `+o.message+`
|
|
|
425
435
|
${E}px !important;
|
|
426
436
|
${T}px !important;
|
|
427
437
|
}
|
|
428
|
-
`),()=>{var A;(A=a.current)==null||A.removeAttribute("data-motion-pop-id"),b.contains(S)&&b.removeChild(S)}},[t]),Rr.jsx(fN,{isPresent:t,childRef:a,sizeRef:l,pop:o,children:o===!1?e:C.cloneElement(e,{ref:f})})}const hN=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:s,anchorX:a,anchorY:l,root:u})=>{const c=ly(pN),f=C.useId(),d=C.useRef(n),h=C.useRef(r);uy(()=>{d.current=n,h.current=r});let p=!0,m=C.useMemo(()=>(p=!1,{id:f,initial:t,isPresent:n,custom:i,onExitComplete:v=>{c.set(v,!0);for(const y of c.values())if(!y)return;r&&r()},register:v=>(c.set(v,!1),()=>{var y;c.delete(v),!d.current&&!c.size&&((y=h.current)==null||y.call(h))})}),[n,c,r]);return o&&p&&(m={...m}),C.useMemo(()=>{c.forEach((v,y)=>c.set(y,!1))},[n]),C.useEffect(()=>{!n&&!c.size&&r&&r()},[n]),e=Rr.jsx(dN,{pop:s==="popLayout",isPresent:n,anchorX:a,anchorY:l,root:u,children:e}),Rr.jsx(Ef.Provider,{value:m,children:e})};function pN(){return new Map}function zE(e=!0){const t=C.useContext(Ef);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=C.useId();C.useEffect(()=>{if(e)return i(o)},[e]);const s=C.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,s]:[!0]}const vu=e=>e.key||"";function ww(e){const t=[];return C.Children.forEach(e,n=>{C.isValidElement(n)&&t.push(n)}),t}const iV=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:s=!1,anchorX:a="left",anchorY:l="top",root:u})=>{const[c,f]=zE(s),d=C.useMemo(()=>ww(e),[e]),h=s&&!c?[]:d.map(vu),p=C.useRef(!0),m=C.useRef(d),v=ly(()=>new Map),y=C.useRef(new Set),[g,w]=C.useState(d),[x,E]=C.useState(d);uy(()=>{p.current=!1,m.current=d;for(let b=0;b<x.length;b++){const A=vu(x[b]);h.includes(A)?(v.delete(A),y.current.delete(A)):v.get(A)!==!0&&v.set(A,!1)}},[x,h.length,h.join("-")]);const T=[];if(d!==g){let b=[...d];for(let A=0;A<x.length;A++){const M=x[A],I=vu(M);h.includes(I)||(b.splice(A,0,M),T.push(M))}return o==="wait"&&T.length&&(b=T),E(ww(b)),w(d),null}const{forceRender:S}=C.useContext(ay);return Rr.jsx(Rr.Fragment,{children:x.map(b=>{const A=vu(b),M=s&&!c?!1:d===x||h.includes(A),I=()=>{if(y.current.has(A))return;if(v.has(A))y.current.add(A),v.set(A,!0);else return;let z=!0;v.forEach(H=>{H||(z=!1)}),z&&(S==null||S(),E(m.current),s&&(f==null||f()),r&&r())};return Rr.jsx(hN,{isPresent:M,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:o,root:u,onExitComplete:M?void 0:I,anchorX:a,anchorY:l,children:b},A)})})},BE=C.createContext({strict:!1}),xw={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"]};let Sw=!1;function mN(){if(Sw)return;const e={};for(const t in xw)e[t]={isEnabled:n=>xw[t].some(r=>!!n[r])};gE(e),Sw=!0}function UE(){return mN(),J_()}function yN(e){const t=UE();for(const n in e)t[n]={...t[n],...e[n]};gE(t)}const gN=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","propagate","ignoreStrict","viewport"]);function Uc(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||gN.has(e)}let $E=e=>!Uc(e);function vN(e){typeof e=="function"&&($E=t=>t.startsWith("on")?!Uc(t):e(t))}try{vN(require("@emotion/is-prop-valid").default)}catch{}function wN(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||yt(e[i])||($E(i)||n===!0&&Uc(i)||!t&&!Uc(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const Pf=C.createContext({});function xN(e,t){if(Tf(e)){const{initial:n,animate:r}=e;return{initial:n===!1||il(n)?n:void 0,animate:il(r)?r:void 0}}return e.inherit!==!1?t:{}}function SN(e){const{initial:t,animate:n}=xN(e,C.useContext(Pf));return C.useMemo(()=>({initial:t,animate:n}),[bw(t),bw(n)])}function bw(e){return Array.isArray(e)?e.join(" "):e}const Iy=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function HE(e,t,n){for(const r in t)!yt(t[r])&&!EE(r,n)&&(e[r]=t[r])}function bN({transformTemplate:e},t){return C.useMemo(()=>{const n=Iy();return Oy(n,t,e),Object.assign({},n.vars,n.style)},[t])}function CN(e,t){const n=e.style||{},r={};return HE(r,n,e),Object.assign(r,bN(e,t)),r}function EN(e,t){const n={},r=CN(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const WE=()=>({...Iy(),attrs:{}});function kN(e,t,n,r){const i=C.useMemo(()=>{const o=WE();return kE(o,t,TE(r),e.transformTemplate,e.style),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};HE(o,e.style,e),i.style={...o,...i.style}}return i}const RN=["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 Ny(e){return typeof e!="string"||e.includes("-")?!1:!!(RN.indexOf(e)>-1||/[A-Z]/u.test(e))}function TN(e,t,n,{latestValues:r},i,o=!1,s){const l=(s??Ny(e)?kN:EN)(t,r,i,e),u=wN(t,typeof e=="string",o),c=e!==C.Fragment?{...u,...l,ref:n}:{},{children:f}=t,d=C.useMemo(()=>yt(f)?f.get():f,[f]);return C.createElement(e,{...c,children:d})}function PN({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:MN(n,r,i,e),renderState:t()}}function MN(e,t,n,r){const i={},o=r(e,{});for(const d in o)i[d]=Qu(o[d]);let{initial:s,animate:a}=e;const l=Tf(e),u=mE(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const f=c?a:s;if(f&&typeof f!="boolean"&&!Rf(f)){const d=Array.isArray(f)?f:[f];for(let h=0;h<d.length;h++){const p=Ey(e,d[h]);if(p){const{transitionEnd:m,transition:v,...y}=p;for(const g in y){let w=y[g];if(Array.isArray(w)){const x=c?w.length-1:0;w=w[x]}w!==null&&(i[g]=w)}for(const g in m)i[g]=m[g]}}}return i}const KE=e=>(t,n)=>{const r=C.useContext(Pf),i=C.useContext(Ef),o=()=>PN(e,t,r,i);return n?o():ly(o)},AN=KE({scrapeMotionValuesFromProps:Ly,createRenderState:Iy}),DN=KE({scrapeMotionValuesFromProps:PE,createRenderState:WE}),ON=Symbol.for("motionComponentSymbol");function LN(e,t,n){const r=C.useRef(n);C.useInsertionEffect(()=>{r.current=n});const i=C.useRef(null);return C.useCallback(o=>{var a;o&&((a=e.onMount)==null||a.call(e,o)),t&&(o?t.mount(o):t.unmount());const s=r.current;if(typeof s=="function")if(o){const l=s(o);typeof l=="function"&&(i.current=l)}else i.current?(i.current(),i.current=null):s(o);else s&&(s.current=o)},[t])}const qE=C.createContext({});function _o(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function _N(e,t,n,r,i,o){var w,x;const{visualElement:s}=C.useContext(Pf),a=C.useContext(BE),l=C.useContext(Ef),u=C.useContext(_y),c=u.reducedMotion,f=u.skipAnimations,d=C.useRef(null),h=C.useRef(!1);r=r||a.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:s,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:c,skipAnimations:f,isSVG:o}),h.current&&d.current&&(d.current.manuallyAnimateOnMount=!0));const p=d.current,m=C.useContext(qE);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&IN(d.current,n,i,m);const v=C.useRef(!1);C.useInsertionEffect(()=>{p&&v.current&&p.update(n,l)});const y=n[rE],g=C.useRef(!!y&&typeof window<"u"&&!((w=window.MotionHandoffIsComplete)!=null&&w.call(window,y))&&((x=window.MotionHasOptimisedAnimation)==null?void 0:x.call(window,y)));return uy(()=>{h.current=!0,p&&(v.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),g.current&&p.animationState&&p.animationState.animateChanges())}),C.useEffect(()=>{p&&(!g.current&&p.animationState&&p.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{var E;(E=window.MotionHandoffMarkAsComplete)==null||E.call(window,y)}),g.current=!1),p.enteringChildren=void 0)}),p}function IN(e,t,n,r){const{layoutId:i,layout:o,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutAnchor:c,layoutCrossfade:f}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:GE(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!s||a&&_o(a),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,crossfade:f,layoutScroll:l,layoutRoot:u,layoutAnchor:c})}function GE(e){if(e)return e.options.allowProjection!==!1?e.projection:GE(e.parent)}function _d(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&yN(r);const o=n?n==="svg":Ny(e),s=o?DN:AN;function a(u,c){let f;const d={...C.useContext(_y),...u,layoutId:NN(u)},{isStatic:h}=d,p=SN(u),m=s(u,h);if(!h&&typeof window<"u"){FN();const v=jN(d);f=v.MeasureLayout,p.visualElement=_N(e,m,d,i,v.ProjectionNode,o)}return Rr.jsxs(Pf.Provider,{value:p,children:[f&&p.visualElement?Rr.jsx(f,{visualElement:p.visualElement,...d}):null,TN(e,u,LN(m,p.visualElement,c),m,h,t,o)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=C.forwardRef(a);return l[ON]=e,l}function NN({layoutId:e}){const t=C.useContext(ay).id;return t&&e!==void 0?t+"-"+e:e}function FN(e,t){C.useContext(BE).strict}function jN(e){const t=UE(),{drag:n,layout:r}=t;if(!n&&!r)return{};const i={...n,...r};return{MeasureLayout:n!=null&&n.isEnabled(e)||r!=null&&r.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function VN(e,t){if(typeof Proxy>"u")return _d;const n=new Map,r=(o,s)=>_d(o,s,e,t),i=(o,s)=>r(o,s);return new Proxy(i,{get:(o,s)=>s==="create"?r:(n.has(s)||n.set(s,_d(s,void 0,e,t)),n.get(s))})}const zN=(e,t)=>t.isSVG??Ny(e)?new yI(t):new cI(t,{allowProjection:e!==C.Fragment});class BN extends Pi{constructor(t){super(t),t.animationState||(t.animationState=SI(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Rf(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let UN=0;class $N extends Pi{constructor(){super(...arguments),this.id=UN++,this.isExitComplete=!1}update(){var o;if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;if(t&&r===!1){if(this.isExitComplete){const{initial:s,custom:a}=this.node.getProps();if(typeof s=="string"||typeof s=="object"&&s!==null&&!Array.isArray(s)){const l=oo(this.node,s,a);if(l){const{transition:u,transitionEnd:c,...f}=l;for(const d in f)(o=this.node.getValue(d))==null||o.jump(f[d])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const HN={animation:{Feature:BN},exit:{Feature:$N}};function Ml(e){return{point:{x:e.pageX,y:e.pageY}}}const WN=e=>t=>Py(t)&&e(t,Ml(t));function Oa(e,t,n,r){return ol(e,t,WN(n),r)}const QE=({current:e})=>e?e.ownerDocument.defaultView:null,Cw=(e,t)=>Math.abs(e-t);function KN(e,t){const n=Cw(e.x,t.x),r=Cw(e.y,t.y);return Math.sqrt(n**2+r**2)}const Ew=new Set(["auto","scroll"]);class XE{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:o=!1,distanceThreshold:s=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=p=>{this.handleScroll(p.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=wu(this.lastRawMoveEventInfo,this.transformPagePoint));const p=Id(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,v=KN(p.offset,{x:0,y:0})>=this.distanceThreshold;if(!m&&!v)return;const{point:y}=p,{timestamp:g}=pt;this.history.push({...y,timestamp:g});const{onStart:w,onMove:x}=this.handlers;m||(w&&w(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,p)},this.handlePointerMove=(p,m)=>{this.lastMoveEvent=p,this.lastRawMoveEventInfo=m,this.lastMoveEventInfo=wu(m,this.transformPagePoint),Me.update(this.updatePoint,!0)},this.handlePointerUp=(p,m)=>{this.end();const{onEnd:v,onSessionEnd:y,resumeAnimation:g}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=Id(p.type==="pointercancel"?this.lastMoveEventInfo:wu(m,this.transformPagePoint),this.history);this.startEvent&&v&&v(p,w),y&&y(p,w)},!Py(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=i||window;const l=Ml(t),u=wu(l,this.transformPagePoint),{point:c}=u,{timestamp:f}=pt;this.history=[{...c,timestamp:f}];const{onSessionStart:d}=n;d&&d(t,Id(u,this.history));const h={passive:!0,capture:!0};this.removeListeners=Rl(Oa(this.contextWindow,"pointermove",this.handlePointerMove,h),Oa(this.contextWindow,"pointerup",this.handlePointerUp,h),Oa(this.contextWindow,"pointercancel",this.handlePointerUp,h)),a&&this.startScrollTracking(a)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(Ew.has(r.overflowX)||Ew.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const r=t===window,i=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},o={x:i.x-n.x,y:i.y-n.y};o.x===0&&o.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=o.x,this.lastMoveEventInfo.point.y+=o.y):this.history.length>0&&(this.history[0].x-=o.x,this.history[0].y-=o.y),this.scrollPositions.set(t,i),Me.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Ci(this.updatePoint)}}function wu(e,t){return t?{point:t(e.point)}:e}function kw(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Id({point:e},t){return{point:e,delta:kw(e,YE(t)),offset:kw(e,qN(t)),velocity:GN(t,.1)}}function qN(e){return e[0]}function YE(e){return e[e.length-1]}function GN(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=YE(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>sn(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>sn(t)*2&&(r=e[1]);const o=xn(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function QN(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Pe(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Pe(n,e,r.max):Math.min(e,n)),e}function Rw(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function XN(e,{top:t,left:n,bottom:r,right:i}){return{x:Rw(e.x,n,i),y:Rw(e.y,t,r)}}function Tw(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function YN(e,t){return{x:Tw(e.x,t.x),y:Tw(e.y,t.y)}}function ZN(e,t){let n=.5;const r=Nt(e),i=Nt(t);return i>r?n=nl(t.min,t.max-r,e.min):r>i&&(n=nl(e.min,e.max-i,t.min)),ar(0,1,n)}function JN(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Np=.35;function e3(e=Np){return e===!1?e=0:e===!0&&(e=Np),{x:Pw(e,"left","right"),y:Pw(e,"top","bottom")}}function Pw(e,t,n){return{min:Mw(e,t),max:Mw(e,n)}}function Mw(e,t){return typeof e=="number"?e:e[t]||0}const t3=new WeakMap;class n3{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=et(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const o=f=>{n&&this.snapToCursor(Ml(f).point),this.stopAnimation()},s=(f,d)=>{const{drag:h,dragPropagation:p,onDragStart:m}=this.getProps();if(h&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=M_(h),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=d,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Xn(y=>{let g=this.getAxisMotionValue(y).get()||0;if(sr.test(g)){const{projection:w}=this.visualElement;if(w&&w.layout){const x=w.layout.layoutBox[y];x&&(g=Nt(x)*(parseFloat(g)/100))}}this.originPoint[y]=g}),m&&Me.update(()=>m(f,d),!1,!0),Rp(this.visualElement,"transform");const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},a=(f,d)=>{this.latestPointerEvent=f,this.latestPanInfo=d;const{dragPropagation:h,dragDirectionLock:p,onDirectionLock:m,onDrag:v}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:y}=d;if(p&&this.currentDirection===null){this.currentDirection=i3(y),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",d.point,y),this.updateAxis("y",d.point,y),this.visualElement.render(),v&&Me.update(()=>v(f,d),!1,!0)},l=(f,d)=>{this.latestPointerEvent=f,this.latestPanInfo=d,this.stop(f,d),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>{const{dragSnapToOrigin:f}=this.getProps();(f||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:c}=this.getProps();this.panSession=new XE(t,{onSessionStart:o,onStart:s,onMove:a,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:r,contextWindow:QE(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,i=n||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!i||!r)return;const{velocity:s}=i;this.startAnimation(s);const{onDragEnd:a}=this.getProps();a&&Me.postRender(()=>a(r,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!xu(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=QN(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){var o;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(o=this.visualElement.projection)==null?void 0:o.layout,i=this.constraints;t&&_o(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=XN(r.layoutBox,t):this.constraints=!1,this.elastic=e3(n),i!==this.constraints&&!_o(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&Xn(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=JN(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!_o(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;i.root&&(i.root.scroll=void 0,i.root.updateScroll());const o=iI(r,i.root,this.visualElement.getTransformPagePoint());let s=YN(i.layout.layoutBox,o);if(n){const a=n(tI(s));this.hasMutatedConstraints=!!a,a&&(s=wE(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Xn(c=>{if(!xu(c,n,this.currentDirection))return;let f=l&&l[c]||{};(s===!0||s===c)&&(f={min:0,max:0});const d=i?200:1e6,h=i?40:1e7,p={type:"inertia",velocity:r?t[c]:0,bounceStiffness:d,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(c,p)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Rp(this.visualElement,t),r.start(Cy(t,r,0,n,this.visualElement,!1))}stopAnimation(){Xn(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps()[n];return i||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor(t){Xn(n=>{const{drag:r}=this.getProps();if(!xu(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:a}=i.layout.layoutBox[n],l=o.get()||0;o.set(t[n]-Pe(s,a,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!_o(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Xn(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();i[s]=ZN({min:l,max:l},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),Xn(s=>{if(!xu(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(Pe(l,u,i[s]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;t3.set(this.visualElement,this);const t=this.visualElement.current,n=Oa(t,"pointerdown",u=>{const{drag:c,dragListener:f=!0}=this.getProps(),d=u.target,h=d!==t&&I_(d);c&&f&&!h&&this.start(u)});let r;const i=()=>{const{dragConstraints:u}=this.getProps();_o(u)&&u.current&&(this.constraints=this.resolveRefConstraints(),r||(r=r3(t,u.current,()=>this.scalePositionWithinConstraints())))},{projection:o}=this.visualElement,s=o.addEventListener("measure",i);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),Me.read(i);const a=ol(window,"resize",()=>this.scalePositionWithinConstraints()),l=o.addEventListener("didUpdate",({delta:u,hasLayoutChanged:c})=>{this.isDragging&&c&&(Xn(f=>{const d=this.getAxisMotionValue(f);d&&(this.originPoint[f]+=u[f].translate,d.set(d.get()+u[f].translate))}),this.visualElement.render())});return()=>{a(),n(),s(),l&&l(),r&&r()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=Np,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:a}}}function Aw(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function r3(e,t,n){const r=F0(e,Aw(n)),i=F0(t,Aw(n));return()=>{r(),i()}}function xu(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function i3(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class o3 extends Pi{constructor(t){super(t),this.removeGroupControls=bn,this.removeListeners=bn,this.controls=new n3(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||bn}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Nd=e=>(t,n)=>{e&&Me.update(()=>e(t,n),!1,!0)};class s3 extends Pi{constructor(){super(...arguments),this.removePointerDownListener=bn}onPointerDown(t){this.session=new XE(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:QE(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Nd(t),onStart:Nd(n),onMove:Nd(r),onEnd:(o,s)=>{delete this.session,i&&Me.postRender(()=>i(o,s))}}}mount(){this.removePointerDownListener=Oa(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Fd=!1;class a3 extends C.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),Fd&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Xu.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,{projection:s}=r;return s&&(s.isPresent=o,t.layoutDependency!==n&&s.setOptions({...s.options,layoutDependency:n}),Fd=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==o?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||Me.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:t,layoutAnchor:n}=this.props,{projection:r}=t;r&&(r.options.layoutAnchor=n,r.root.didUpdate(),Ty.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;Fd=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function ZE(e){const[t,n]=zE(),r=C.useContext(ay);return Rr.jsx(a3,{...e,layoutGroup:r,switchLayoutGroup:C.useContext(qE),isPresent:t,safeToRemove:n})}const l3={pan:{Feature:s3},drag:{Feature:o3,ProjectionNode:VE,MeasureLayout:ZE}};function Dw(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&Me.postRender(()=>o(t,Ml(t)))}class u3 extends Pi{mount(){const{current:t}=this.node;t&&(this.unmount=D_(t,(n,r)=>(Dw(this.node,r,"Start"),i=>Dw(this.node,i,"End"))))}unmount(){}}class c3 extends Pi{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=Rl(ol(this.node.current,"focus",()=>this.onFocus()),ol(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Ow(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&Me.postRender(()=>o(t,Ml(t)))}class f3 extends Pi{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=F_(t,(i,o)=>(Ow(this.node,o,"Start"),(s,{success:a})=>Ow(this.node,s,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(r==null?void 0:r.tap)===!1})}unmount(){}}const Fp=new WeakMap,jd=new WeakMap,d3=e=>{const t=Fp.get(e.target);t&&t(e)},h3=e=>{e.forEach(d3)};function p3({root:e,...t}){const n=e||document;jd.has(n)||jd.set(n,{});const r=jd.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(h3,{root:e,...t})),r[i]}function m3(e,t,n){const r=p3(t);return Fp.set(e,n),r.observe(e),()=>{Fp.delete(e),r.unobserve(e)}}const y3={some:0,all:1};class g3 extends Pi{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var l;(l=this.stopObserver)==null||l.call(this);const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:y3[i]},a=u=>{const{isIntersecting:c}=u;if(this.isInView===c||(this.isInView=c,o&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:f,onViewportLeave:d}=this.node.getProps(),h=c?f:d;h&&h(u)};this.stopObserver=m3(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(v3(t,n))&&this.startObserver()}unmount(){var t;(t=this.stopObserver)==null||t.call(this),this.hasEnteredView=!1,this.isInView=!1}}function v3({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const w3={inView:{Feature:g3},tap:{Feature:f3},focus:{Feature:c3},hover:{Feature:u3}},x3={layout:{ProjectionNode:VE,MeasureLayout:ZE}},S3={...HN,...w3,...l3,...x3},oV=VN(S3,zN);/*! *****************************************************************************
|
|
438
|
+
`),()=>{var A;(A=a.current)==null||A.removeAttribute("data-motion-pop-id"),b.contains(S)&&b.removeChild(S)}},[t]),Rr.jsx(fI,{isPresent:t,childRef:a,sizeRef:l,pop:o,children:o===!1?e:C.cloneElement(e,{ref:f})})}const hI=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:s,anchorX:a,anchorY:l,root:u})=>{const c=ly(pI),f=C.useId(),d=C.useRef(n),h=C.useRef(r);uy(()=>{d.current=n,h.current=r});let p=!0,m=C.useMemo(()=>(p=!1,{id:f,initial:t,isPresent:n,custom:i,onExitComplete:v=>{c.set(v,!0);for(const y of c.values())if(!y)return;r&&r()},register:v=>(c.set(v,!1),()=>{var y;c.delete(v),!d.current&&!c.size&&((y=h.current)==null||y.call(h))})}),[n,c,r]);return o&&p&&(m={...m}),C.useMemo(()=>{c.forEach((v,y)=>c.set(y,!1))},[n]),C.useEffect(()=>{!n&&!c.size&&r&&r()},[n]),e=Rr.jsx(dI,{pop:s==="popLayout",isPresent:n,anchorX:a,anchorY:l,root:u,children:e}),Rr.jsx(Ef.Provider,{value:m,children:e})};function pI(){return new Map}function zE(e=!0){const t=C.useContext(Ef);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=C.useId();C.useEffect(()=>{if(e)return i(o)},[e]);const s=C.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,s]:[!0]}const vu=e=>e.key||"";function ww(e){const t=[];return C.Children.forEach(e,n=>{C.isValidElement(n)&&t.push(n)}),t}const s5=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:s=!1,anchorX:a="left",anchorY:l="top",root:u})=>{const[c,f]=zE(s),d=C.useMemo(()=>ww(e),[e]),h=s&&!c?[]:d.map(vu),p=C.useRef(!0),m=C.useRef(d),v=ly(()=>new Map),y=C.useRef(new Set),[g,w]=C.useState(d),[x,E]=C.useState(d);uy(()=>{p.current=!1,m.current=d;for(let b=0;b<x.length;b++){const A=vu(x[b]);h.includes(A)?(v.delete(A),y.current.delete(A)):v.get(A)!==!0&&v.set(A,!1)}},[x,h.length,h.join("-")]);const T=[];if(d!==g){let b=[...d];for(let A=0;A<x.length;A++){const M=x[A],I=vu(M);h.includes(I)||(b.splice(A,0,M),T.push(M))}return o==="wait"&&T.length&&(b=T),E(ww(b)),w(d),null}const{forceRender:S}=C.useContext(ay);return Rr.jsx(Rr.Fragment,{children:x.map(b=>{const A=vu(b),M=s&&!c?!1:d===x||h.includes(A),I=()=>{if(y.current.has(A))return;if(v.has(A))y.current.add(A),v.set(A,!0);else return;let z=!0;v.forEach(W=>{W||(z=!1)}),z&&(S==null||S(),E(m.current),s&&(f==null||f()),r&&r())};return Rr.jsx(hI,{isPresent:M,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:o,root:u,onExitComplete:M?void 0:I,anchorX:a,anchorY:l,children:b},A)})})},BE=C.createContext({strict:!1}),xw={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"]};let Sw=!1;function mI(){if(Sw)return;const e={};for(const t in xw)e[t]={isEnabled:n=>xw[t].some(r=>!!n[r])};gE(e),Sw=!0}function UE(){return mI(),J_()}function yI(e){const t=UE();for(const n in e)t[n]={...t[n],...e[n]};gE(t)}const gI=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","propagate","ignoreStrict","viewport"]);function Uc(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||gI.has(e)}let $E=e=>!Uc(e);function vI(e){typeof e=="function"&&($E=t=>t.startsWith("on")?!Uc(t):e(t))}try{vI(require("@emotion/is-prop-valid").default)}catch{}function wI(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||yt(e[i])||($E(i)||n===!0&&Uc(i)||!t&&!Uc(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const Pf=C.createContext({});function xI(e,t){if(Tf(e)){const{initial:n,animate:r}=e;return{initial:n===!1||il(n)?n:void 0,animate:il(r)?r:void 0}}return e.inherit!==!1?t:{}}function SI(e){const{initial:t,animate:n}=xI(e,C.useContext(Pf));return C.useMemo(()=>({initial:t,animate:n}),[bw(t),bw(n)])}function bw(e){return Array.isArray(e)?e.join(" "):e}const Iy=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function WE(e,t,n){for(const r in t)!yt(t[r])&&!EE(r,n)&&(e[r]=t[r])}function bI({transformTemplate:e},t){return C.useMemo(()=>{const n=Iy();return Oy(n,t,e),Object.assign({},n.vars,n.style)},[t])}function CI(e,t){const n=e.style||{},r={};return WE(r,n,e),Object.assign(r,bI(e,t)),r}function EI(e,t){const n={},r=CI(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const HE=()=>({...Iy(),attrs:{}});function kI(e,t,n,r){const i=C.useMemo(()=>{const o=HE();return kE(o,t,TE(r),e.transformTemplate,e.style),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};WE(o,e.style,e),i.style={...o,...i.style}}return i}const RI=["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 Ny(e){return typeof e!="string"||e.includes("-")?!1:!!(RI.indexOf(e)>-1||/[A-Z]/u.test(e))}function TI(e,t,n,{latestValues:r},i,o=!1,s){const l=(s??Ny(e)?kI:EI)(t,r,i,e),u=wI(t,typeof e=="string",o),c=e!==C.Fragment?{...u,...l,ref:n}:{},{children:f}=t,d=C.useMemo(()=>yt(f)?f.get():f,[f]);return C.createElement(e,{...c,children:d})}function PI({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:MI(n,r,i,e),renderState:t()}}function MI(e,t,n,r){const i={},o=r(e,{});for(const d in o)i[d]=Qu(o[d]);let{initial:s,animate:a}=e;const l=Tf(e),u=mE(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const f=c?a:s;if(f&&typeof f!="boolean"&&!Rf(f)){const d=Array.isArray(f)?f:[f];for(let h=0;h<d.length;h++){const p=Ey(e,d[h]);if(p){const{transitionEnd:m,transition:v,...y}=p;for(const g in y){let w=y[g];if(Array.isArray(w)){const x=c?w.length-1:0;w=w[x]}w!==null&&(i[g]=w)}for(const g in m)i[g]=m[g]}}}return i}const KE=e=>(t,n)=>{const r=C.useContext(Pf),i=C.useContext(Ef),o=()=>PI(e,t,r,i);return n?o():ly(o)},AI=KE({scrapeMotionValuesFromProps:Ly,createRenderState:Iy}),DI=KE({scrapeMotionValuesFromProps:PE,createRenderState:HE}),OI=Symbol.for("motionComponentSymbol");function LI(e,t,n){const r=C.useRef(n);C.useInsertionEffect(()=>{r.current=n});const i=C.useRef(null);return C.useCallback(o=>{var a;o&&((a=e.onMount)==null||a.call(e,o)),t&&(o?t.mount(o):t.unmount());const s=r.current;if(typeof s=="function")if(o){const l=s(o);typeof l=="function"&&(i.current=l)}else i.current?(i.current(),i.current=null):s(o);else s&&(s.current=o)},[t])}const qE=C.createContext({});function _o(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function _I(e,t,n,r,i,o){var w,x;const{visualElement:s}=C.useContext(Pf),a=C.useContext(BE),l=C.useContext(Ef),u=C.useContext(_y),c=u.reducedMotion,f=u.skipAnimations,d=C.useRef(null),h=C.useRef(!1);r=r||a.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:s,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:c,skipAnimations:f,isSVG:o}),h.current&&d.current&&(d.current.manuallyAnimateOnMount=!0));const p=d.current,m=C.useContext(qE);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&II(d.current,n,i,m);const v=C.useRef(!1);C.useInsertionEffect(()=>{p&&v.current&&p.update(n,l)});const y=n[rE],g=C.useRef(!!y&&typeof window<"u"&&!((w=window.MotionHandoffIsComplete)!=null&&w.call(window,y))&&((x=window.MotionHasOptimisedAnimation)==null?void 0:x.call(window,y)));return uy(()=>{h.current=!0,p&&(v.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),g.current&&p.animationState&&p.animationState.animateChanges())}),C.useEffect(()=>{p&&(!g.current&&p.animationState&&p.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{var E;(E=window.MotionHandoffMarkAsComplete)==null||E.call(window,y)}),g.current=!1),p.enteringChildren=void 0)}),p}function II(e,t,n,r){const{layoutId:i,layout:o,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutAnchor:c,layoutCrossfade:f}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:GE(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!s||a&&_o(a),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,crossfade:f,layoutScroll:l,layoutRoot:u,layoutAnchor:c})}function GE(e){if(e)return e.options.allowProjection!==!1?e.projection:GE(e.parent)}function _d(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&yI(r);const o=n?n==="svg":Ny(e),s=o?DI:AI;function a(u,c){let f;const d={...C.useContext(_y),...u,layoutId:NI(u)},{isStatic:h}=d,p=SI(u),m=s(u,h);if(!h&&typeof window<"u"){FI();const v=jI(d);f=v.MeasureLayout,p.visualElement=_I(e,m,d,i,v.ProjectionNode,o)}return Rr.jsxs(Pf.Provider,{value:p,children:[f&&p.visualElement?Rr.jsx(f,{visualElement:p.visualElement,...d}):null,TI(e,u,LI(m,p.visualElement,c),m,h,t,o)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=C.forwardRef(a);return l[OI]=e,l}function NI({layoutId:e}){const t=C.useContext(ay).id;return t&&e!==void 0?t+"-"+e:e}function FI(e,t){C.useContext(BE).strict}function jI(e){const t=UE(),{drag:n,layout:r}=t;if(!n&&!r)return{};const i={...n,...r};return{MeasureLayout:n!=null&&n.isEnabled(e)||r!=null&&r.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function VI(e,t){if(typeof Proxy>"u")return _d;const n=new Map,r=(o,s)=>_d(o,s,e,t),i=(o,s)=>r(o,s);return new Proxy(i,{get:(o,s)=>s==="create"?r:(n.has(s)||n.set(s,_d(s,void 0,e,t)),n.get(s))})}const zI=(e,t)=>t.isSVG??Ny(e)?new y3(t):new c3(t,{allowProjection:e!==C.Fragment});class BI extends Pi{constructor(t){super(t),t.animationState||(t.animationState=S3(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Rf(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let UI=0;class $I extends Pi{constructor(){super(...arguments),this.id=UI++,this.isExitComplete=!1}update(){var o;if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;if(t&&r===!1){if(this.isExitComplete){const{initial:s,custom:a}=this.node.getProps();if(typeof s=="string"||typeof s=="object"&&s!==null&&!Array.isArray(s)){const l=oo(this.node,s,a);if(l){const{transition:u,transitionEnd:c,...f}=l;for(const d in f)(o=this.node.getValue(d))==null||o.jump(f[d])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const WI={animation:{Feature:BI},exit:{Feature:$I}};function Ml(e){return{point:{x:e.pageX,y:e.pageY}}}const HI=e=>t=>Py(t)&&e(t,Ml(t));function Oa(e,t,n,r){return ol(e,t,HI(n),r)}const QE=({current:e})=>e?e.ownerDocument.defaultView:null,Cw=(e,t)=>Math.abs(e-t);function KI(e,t){const n=Cw(e.x,t.x),r=Cw(e.y,t.y);return Math.sqrt(n**2+r**2)}const Ew=new Set(["auto","scroll"]);class XE{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:o=!1,distanceThreshold:s=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=p=>{this.handleScroll(p.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=wu(this.lastRawMoveEventInfo,this.transformPagePoint));const p=Id(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,v=KI(p.offset,{x:0,y:0})>=this.distanceThreshold;if(!m&&!v)return;const{point:y}=p,{timestamp:g}=pt;this.history.push({...y,timestamp:g});const{onStart:w,onMove:x}=this.handlers;m||(w&&w(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,p)},this.handlePointerMove=(p,m)=>{this.lastMoveEvent=p,this.lastRawMoveEventInfo=m,this.lastMoveEventInfo=wu(m,this.transformPagePoint),Me.update(this.updatePoint,!0)},this.handlePointerUp=(p,m)=>{this.end();const{onEnd:v,onSessionEnd:y,resumeAnimation:g}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=Id(p.type==="pointercancel"?this.lastMoveEventInfo:wu(m,this.transformPagePoint),this.history);this.startEvent&&v&&v(p,w),y&&y(p,w)},!Py(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=i||window;const l=Ml(t),u=wu(l,this.transformPagePoint),{point:c}=u,{timestamp:f}=pt;this.history=[{...c,timestamp:f}];const{onSessionStart:d}=n;d&&d(t,Id(u,this.history));const h={passive:!0,capture:!0};this.removeListeners=Rl(Oa(this.contextWindow,"pointermove",this.handlePointerMove,h),Oa(this.contextWindow,"pointerup",this.handlePointerUp,h),Oa(this.contextWindow,"pointercancel",this.handlePointerUp,h)),a&&this.startScrollTracking(a)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(Ew.has(r.overflowX)||Ew.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const r=t===window,i=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},o={x:i.x-n.x,y:i.y-n.y};o.x===0&&o.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=o.x,this.lastMoveEventInfo.point.y+=o.y):this.history.length>0&&(this.history[0].x-=o.x,this.history[0].y-=o.y),this.scrollPositions.set(t,i),Me.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Ci(this.updatePoint)}}function wu(e,t){return t?{point:t(e.point)}:e}function kw(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Id({point:e},t){return{point:e,delta:kw(e,YE(t)),offset:kw(e,qI(t)),velocity:GI(t,.1)}}function qI(e){return e[0]}function YE(e){return e[e.length-1]}function GI(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=YE(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>sn(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>sn(t)*2&&(r=e[1]);const o=xn(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function QI(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Pe(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Pe(n,e,r.max):Math.min(e,n)),e}function Rw(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function XI(e,{top:t,left:n,bottom:r,right:i}){return{x:Rw(e.x,n,i),y:Rw(e.y,t,r)}}function Tw(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function YI(e,t){return{x:Tw(e.x,t.x),y:Tw(e.y,t.y)}}function ZI(e,t){let n=.5;const r=Nt(e),i=Nt(t);return i>r?n=nl(t.min,t.max-r,e.min):r>i&&(n=nl(e.min,e.max-i,t.min)),ar(0,1,n)}function JI(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Np=.35;function eN(e=Np){return e===!1?e=0:e===!0&&(e=Np),{x:Pw(e,"left","right"),y:Pw(e,"top","bottom")}}function Pw(e,t,n){return{min:Mw(e,t),max:Mw(e,n)}}function Mw(e,t){return typeof e=="number"?e:e[t]||0}const tN=new WeakMap;class nN{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=et(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const o=f=>{n&&this.snapToCursor(Ml(f).point),this.stopAnimation()},s=(f,d)=>{const{drag:h,dragPropagation:p,onDragStart:m}=this.getProps();if(h&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=M_(h),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=d,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Xn(y=>{let g=this.getAxisMotionValue(y).get()||0;if(sr.test(g)){const{projection:w}=this.visualElement;if(w&&w.layout){const x=w.layout.layoutBox[y];x&&(g=Nt(x)*(parseFloat(g)/100))}}this.originPoint[y]=g}),m&&Me.update(()=>m(f,d),!1,!0),Rp(this.visualElement,"transform");const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},a=(f,d)=>{this.latestPointerEvent=f,this.latestPanInfo=d;const{dragPropagation:h,dragDirectionLock:p,onDirectionLock:m,onDrag:v}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:y}=d;if(p&&this.currentDirection===null){this.currentDirection=iN(y),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",d.point,y),this.updateAxis("y",d.point,y),this.visualElement.render(),v&&Me.update(()=>v(f,d),!1,!0)},l=(f,d)=>{this.latestPointerEvent=f,this.latestPanInfo=d,this.stop(f,d),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>{const{dragSnapToOrigin:f}=this.getProps();(f||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:c}=this.getProps();this.panSession=new XE(t,{onSessionStart:o,onStart:s,onMove:a,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:r,contextWindow:QE(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,i=n||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!i||!r)return;const{velocity:s}=i;this.startAnimation(s);const{onDragEnd:a}=this.getProps();a&&Me.postRender(()=>a(r,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!xu(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=QI(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){var o;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(o=this.visualElement.projection)==null?void 0:o.layout,i=this.constraints;t&&_o(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=XI(r.layoutBox,t):this.constraints=!1,this.elastic=eN(n),i!==this.constraints&&!_o(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&Xn(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=JI(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!_o(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;i.root&&(i.root.scroll=void 0,i.root.updateScroll());const o=i3(r,i.root,this.visualElement.getTransformPagePoint());let s=YI(i.layout.layoutBox,o);if(n){const a=n(t3(s));this.hasMutatedConstraints=!!a,a&&(s=wE(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Xn(c=>{if(!xu(c,n,this.currentDirection))return;let f=l&&l[c]||{};(s===!0||s===c)&&(f={min:0,max:0});const d=i?200:1e6,h=i?40:1e7,p={type:"inertia",velocity:r?t[c]:0,bounceStiffness:d,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(c,p)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Rp(this.visualElement,t),r.start(Cy(t,r,0,n,this.visualElement,!1))}stopAnimation(){Xn(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps()[n];return i||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor(t){Xn(n=>{const{drag:r}=this.getProps();if(!xu(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:a}=i.layout.layoutBox[n],l=o.get()||0;o.set(t[n]-Pe(s,a,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!_o(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Xn(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();i[s]=ZI({min:l,max:l},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),Xn(s=>{if(!xu(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(Pe(l,u,i[s]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;tN.set(this.visualElement,this);const t=this.visualElement.current,n=Oa(t,"pointerdown",u=>{const{drag:c,dragListener:f=!0}=this.getProps(),d=u.target,h=d!==t&&I_(d);c&&f&&!h&&this.start(u)});let r;const i=()=>{const{dragConstraints:u}=this.getProps();_o(u)&&u.current&&(this.constraints=this.resolveRefConstraints(),r||(r=rN(t,u.current,()=>this.scalePositionWithinConstraints())))},{projection:o}=this.visualElement,s=o.addEventListener("measure",i);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),Me.read(i);const a=ol(window,"resize",()=>this.scalePositionWithinConstraints()),l=o.addEventListener("didUpdate",({delta:u,hasLayoutChanged:c})=>{this.isDragging&&c&&(Xn(f=>{const d=this.getAxisMotionValue(f);d&&(this.originPoint[f]+=u[f].translate,d.set(d.get()+u[f].translate))}),this.visualElement.render())});return()=>{a(),n(),s(),l&&l(),r&&r()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=Np,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:a}}}function Aw(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function rN(e,t,n){const r=F0(e,Aw(n)),i=F0(t,Aw(n));return()=>{r(),i()}}function xu(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function iN(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class oN extends Pi{constructor(t){super(t),this.removeGroupControls=bn,this.removeListeners=bn,this.controls=new nN(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||bn}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Nd=e=>(t,n)=>{e&&Me.update(()=>e(t,n),!1,!0)};class sN extends Pi{constructor(){super(...arguments),this.removePointerDownListener=bn}onPointerDown(t){this.session=new XE(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:QE(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Nd(t),onStart:Nd(n),onMove:Nd(r),onEnd:(o,s)=>{delete this.session,i&&Me.postRender(()=>i(o,s))}}}mount(){this.removePointerDownListener=Oa(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Fd=!1;class aN extends C.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),Fd&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Xu.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,{projection:s}=r;return s&&(s.isPresent=o,t.layoutDependency!==n&&s.setOptions({...s.options,layoutDependency:n}),Fd=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==o?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||Me.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:t,layoutAnchor:n}=this.props,{projection:r}=t;r&&(r.options.layoutAnchor=n,r.root.didUpdate(),Ty.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;Fd=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function ZE(e){const[t,n]=zE(),r=C.useContext(ay);return Rr.jsx(aN,{...e,layoutGroup:r,switchLayoutGroup:C.useContext(qE),isPresent:t,safeToRemove:n})}const lN={pan:{Feature:sN},drag:{Feature:oN,ProjectionNode:VE,MeasureLayout:ZE}};function Dw(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&Me.postRender(()=>o(t,Ml(t)))}class uN extends Pi{mount(){const{current:t}=this.node;t&&(this.unmount=D_(t,(n,r)=>(Dw(this.node,r,"Start"),i=>Dw(this.node,i,"End"))))}unmount(){}}class cN extends Pi{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=Rl(ol(this.node.current,"focus",()=>this.onFocus()),ol(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Ow(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&Me.postRender(()=>o(t,Ml(t)))}class fN extends Pi{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=F_(t,(i,o)=>(Ow(this.node,o,"Start"),(s,{success:a})=>Ow(this.node,s,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(r==null?void 0:r.tap)===!1})}unmount(){}}const Fp=new WeakMap,jd=new WeakMap,dN=e=>{const t=Fp.get(e.target);t&&t(e)},hN=e=>{e.forEach(dN)};function pN({root:e,...t}){const n=e||document;jd.has(n)||jd.set(n,{});const r=jd.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(hN,{root:e,...t})),r[i]}function mN(e,t,n){const r=pN(t);return Fp.set(e,n),r.observe(e),()=>{Fp.delete(e),r.unobserve(e)}}const yN={some:0,all:1};class gN extends Pi{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var l;(l=this.stopObserver)==null||l.call(this);const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:yN[i]},a=u=>{const{isIntersecting:c}=u;if(this.isInView===c||(this.isInView=c,o&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:f,onViewportLeave:d}=this.node.getProps(),h=c?f:d;h&&h(u)};this.stopObserver=mN(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(vN(t,n))&&this.startObserver()}unmount(){var t;(t=this.stopObserver)==null||t.call(this),this.hasEnteredView=!1,this.isInView=!1}}function vN({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const wN={inView:{Feature:gN},tap:{Feature:fN},focus:{Feature:cN},hover:{Feature:uN}},xN={layout:{ProjectionNode:VE,MeasureLayout:ZE}},SN={...WI,...wN,...lN,...xN},a5=VI(SN,zI);/*! *****************************************************************************
|
|
429
439
|
Copyright (c) Microsoft Corporation.
|
|
430
440
|
|
|
431
441
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -438,8 +448,8 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
438
448
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
439
449
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
440
450
|
PERFORMANCE OF THIS SOFTWARE.
|
|
441
|
-
***************************************************************************** */var jp=function(e,t){return jp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},jp(e,t)};function
|
|
451
|
+
***************************************************************************** */var jp=function(e,t){return jp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},jp(e,t)};function l5(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");jp(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}const u5=Tk(UD);var dr={},hr={},Vd={},Lw;function bN(){return Lw||(Lw=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=1;e.default=function(){return"".concat(t++)}}(Vd)),Vd}var ua={},ca={},zd={},_w;function JE(){return _w||(_w=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,i=null;return function(){for(var o=this,s=arguments.length,a=new Array(s),l=0;l<s;l++)a[l]=arguments[l];clearTimeout(i),i=setTimeout(function(){n.apply(o,a)},r)}}}(zd)),zd}var pr={},Iw;function Fy(){return Iw||(Iw=1,Object.defineProperty(pr,"__esModule",{value:!0}),pr.SizeSensorId=pr.SensorTabIndex=pr.SensorClassName=void 0,pr.SizeSensorId="size-sensor-id",pr.SensorClassName="size-sensor-object",pr.SensorTabIndex="-1"),pr}var Nw;function CN(){if(Nw)return ca;Nw=1,Object.defineProperty(ca,"__esModule",{value:!0}),ca.createSensor=void 0;var e=n(JE()),t=Fy();function n(r){return r&&r.__esModule?r:{default:r}}return ca.createSensor=function(i,o){var s=void 0,a=[],l=function(){getComputedStyle(i).position==="static"&&(i.style.position="relative");var p=document.createElement("object");return p.onload=function(){p.contentDocument.defaultView.addEventListener("resize",u),u()},p.style.display="block",p.style.position="absolute",p.style.top="0",p.style.left="0",p.style.height="100%",p.style.width="100%",p.style.overflow="hidden",p.style.pointerEvents="none",p.style.zIndex="-1",p.style.opacity="0",p.setAttribute("class",t.SensorClassName),p.setAttribute("tabindex",t.SensorTabIndex),p.type="text/html",i.appendChild(p),p.data="about:blank",p},u=(0,e.default)(function(){a.forEach(function(h){h(i)})}),c=function(p){s||(s=l()),a.indexOf(p)===-1&&a.push(p)},f=function(){s&&s.parentNode&&(s.contentDocument&&s.contentDocument.defaultView.removeEventListener("resize",u),s.parentNode.removeChild(s),i.removeAttribute(t.SizeSensorId),s=void 0,a=[],o&&o())},d=function(p){var m=a.indexOf(p);m!==-1&&a.splice(m,1),a.length===0&&s&&f()};return{element:i,bind:c,destroy:f,unbind:d}},ca}var fa={},Fw;function EN(){if(Fw)return fa;Fw=1,Object.defineProperty(fa,"__esModule",{value:!0}),fa.createSensor=void 0;var e=Fy(),t=n(JE());function n(r){return r&&r.__esModule?r:{default:r}}return fa.createSensor=function(i,o){var s=void 0,a=[],l=(0,t.default)(function(){a.forEach(function(h){h(i)})}),u=function(){var p=new ResizeObserver(l);return p.observe(i),l(),p},c=function(p){s||(s=u()),a.indexOf(p)===-1&&a.push(p)},f=function(){s&&s.disconnect(),a=[],s=void 0,i.removeAttribute(e.SizeSensorId),o&&o()},d=function(p){var m=a.indexOf(p);m!==-1&&a.splice(m,1),a.length===0&&s&&f()};return{element:i,bind:c,destroy:f,unbind:d}},fa}var jw;function kN(){if(jw)return ua;jw=1,Object.defineProperty(ua,"__esModule",{value:!0}),ua.createSensor=void 0;var e=CN(),t=EN();return ua.createSensor=typeof ResizeObserver<"u"?t.createSensor:e.createSensor,ua}var Vw;function RN(){if(Vw)return hr;Vw=1,Object.defineProperty(hr,"__esModule",{value:!0}),hr.removeSensor=hr.getSensor=hr.Sensors=void 0;var e=r(bN()),t=kN(),n=Fy();function r(s){return s&&s.__esModule?s:{default:s}}var i=hr.Sensors={};function o(s){s&&i[s]&&delete i[s]}return hr.getSensor=function(a){var l=a.getAttribute(n.SizeSensorId);if(l&&i[l])return i[l];var u=(0,e.default)();a.setAttribute(n.SizeSensorId,u);var c=(0,t.createSensor)(a,function(){return o(u)});return i[u]=c,c},hr.removeSensor=function(a){var l=a.element.getAttribute(n.SizeSensorId);a.destroy(),o(l)},hr}var zw;function c5(){if(zw)return dr;zw=1,Object.defineProperty(dr,"__esModule",{value:!0}),dr.ver=dr.clear=dr.bind=void 0;var e=RN();return dr.bind=function(n,r){var i=(0,e.getSensor)(n);return i.bind(r),function(){i.unbind(r)}},dr.clear=function(n){var r=(0,e.getSensor)(n);(0,e.removeSensor)(r)},dr.ver="1.0.3",dr}var Bd,Bw;function f5(){return Bw||(Bw=1,Bd=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(o=Object.keys(t),r=o.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;i--!==0;){var s=o[i];if(!e(t[s],n[s]))return!1}return!0}return t!==t&&n!==n}),Bd}function TN(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return C.useMemo(()=>r=>{t.forEach(i=>i(r))},t)}const Mf=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function zs(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function jy(e){return"nodeType"in e}function Yt(e){var t,n;return e?zs(e)?e:jy(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function Vy(e){const{Document:t}=Yt(e);return e instanceof t}function Al(e){return zs(e)?!1:e instanceof Yt(e).HTMLElement}function ek(e){return e instanceof Yt(e).SVGElement}function Bs(e){return e?zs(e)?e.document:jy(e)?Vy(e)?e:Al(e)||ek(e)?e.ownerDocument:document:document:document}const lr=Mf?C.useLayoutEffect:C.useEffect;function zy(e){const t=C.useRef(e);return lr(()=>{t.current=e}),C.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}function PN(){const e=C.useRef(null),t=C.useCallback((r,i)=>{e.current=setInterval(r,i)},[]),n=C.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function sl(e,t){t===void 0&&(t=[e]);const n=C.useRef(e);return lr(()=>{n.current!==e&&(n.current=e)},t),n}function Dl(e,t){const n=C.useRef();return C.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function $c(e){const t=zy(e),n=C.useRef(null),r=C.useCallback(i=>{i!==n.current&&(t==null||t(i,n.current)),n.current=i},[]);return[n,r]}function Vp(e){const t=C.useRef();return C.useEffect(()=>{t.current=e},[e]),t.current}let Ud={};function Ol(e,t){return C.useMemo(()=>{if(t)return t;const n=Ud[e]==null?0:Ud[e]+1;return Ud[e]=n,e+"-"+n},[e,t])}function tk(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce((o,s)=>{const a=Object.entries(s);for(const[l,u]of a){const c=o[l];c!=null&&(o[l]=c+e*u)}return o},{...t})}}const is=tk(1),al=tk(-1);function MN(e){return"clientX"in e&&"clientY"in e}function By(e){if(!e)return!1;const{KeyboardEvent:t}=Yt(e.target);return t&&e instanceof t}function AN(e){if(!e)return!1;const{TouchEvent:t}=Yt(e.target);return t&&e instanceof t}function zp(e){if(AN(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return MN(e)?{x:e.clientX,y:e.clientY}:null}const Wc=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[Wc.Translate.toString(e),Wc.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),Uw="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function DN(e){return e.matches(Uw)?e:e.querySelector(Uw)}const ON={display:"none"};function LN(e){let{id:t,value:n}=e;return _t.createElement("div",{id:t,style:ON},n)}function _N(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const i={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 _t.createElement("div",{id:t,style:i,role:"status","aria-live":r,"aria-atomic":!0},n)}function IN(){const[e,t]=C.useState("");return{announce:C.useCallback(r=>{r!=null&&t(r)},[]),announcement:e}}const nk=C.createContext(null);function NN(e){const t=C.useContext(nk);C.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function FN(){const[e]=C.useState(()=>new Set),t=C.useCallback(r=>(e.add(r),()=>e.delete(r)),[e]);return[C.useCallback(r=>{let{type:i,event:o}=r;e.forEach(s=>{var a;return(a=s[i])==null?void 0:a.call(s,o)})},[e]),t]}const jN={draggable:`
|
|
442
452
|
To pick up a draggable item, press the space bar.
|
|
443
453
|
While dragging, use the arrow keys to move the item.
|
|
444
454
|
Press space again to drop the item in its new position, or press escape to cancel.
|
|
445
|
-
`},V3={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function z3(e){let{announcements:t=V3,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=j3}=e;const{announce:o,announcement:s}=I3(),a=Ol("DndLiveRegion"),[l,u]=C.useState(!1);if(C.useEffect(()=>{u(!0)},[]),N3(C.useMemo(()=>({onDragStart(f){let{active:d}=f;o(t.onDragStart({active:d}))},onDragMove(f){let{active:d,over:h}=f;t.onDragMove&&o(t.onDragMove({active:d,over:h}))},onDragOver(f){let{active:d,over:h}=f;o(t.onDragOver({active:d,over:h}))},onDragEnd(f){let{active:d,over:h}=f;o(t.onDragEnd({active:d,over:h}))},onDragCancel(f){let{active:d,over:h}=f;o(t.onDragCancel({active:d,over:h}))}}),[o,t])),!l)return null;const c=_t.createElement(_t.Fragment,null,_t.createElement(L3,{id:r,value:i.draggable}),_t.createElement(_3,{id:a,announcement:s}));return n?kr.createPortal(c,n):c}var rt;(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"})(rt||(rt={}));function Wc(){}function cV(e,t){return C.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function fV(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return C.useMemo(()=>[...t].filter(r=>r!=null),[...t])}const zn=Object.freeze({x:0,y:0});function rk(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function ik(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function B3(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function $w(e){let{left:t,top:n,height:r,width:i}=e;return[{x:t,y:n},{x:t+i,y:n},{x:t,y:n+r},{x:t+i,y:n+r}]}function ok(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function Hw(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}const dV=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=Hw(t,t.left,t.top),o=[];for(const s of r){const{id:a}=s,l=n.get(a);if(l){const u=rk(Hw(l),i);o.push({id:a,data:{droppableContainer:s,value:u}})}}return o.sort(ik)},U3=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=$w(t),o=[];for(const s of r){const{id:a}=s,l=n.get(a);if(l){const u=$w(l),c=i.reduce((d,h,p)=>d+rk(u[p],h),0),f=Number((c/4).toFixed(4));o.push({id:a,data:{droppableContainer:s,value:f}})}}return o.sort(ik)};function $3(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height),s=i-r,a=o-n;if(r<i&&n<o){const l=t.width*t.height,u=e.width*e.height,c=s*a,f=c/(l+u-c);return Number(f.toFixed(4))}return 0}const H3=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=[];for(const o of r){const{id:s}=o,a=n.get(s);if(a){const l=$3(a,t);l>0&&i.push({id:s,data:{droppableContainer:o,value:l}})}}return i.sort(B3)};function W3(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function sk(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:zn}function K3(e){return function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return i.reduce((s,a)=>({...s,top:s.top+e*a.y,bottom:s.bottom+e*a.y,left:s.left+e*a.x,right:s.right+e*a.x}),{...n})}}const q3=K3(1);function G3(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 Q3(e,t,n){const r=G3(t);if(!r)return e;const{scaleX:i,scaleY:o,x:s,y:a}=r,l=e.left-s-(1-i)*parseFloat(n),u=e.top-a-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),c=i?e.width/i:e.width,f=o?e.height/o:e.height;return{width:c,height:f,top:u,right:l+c,bottom:u+f,left:l}}const X3={ignoreTransform:!1};function Us(e,t){t===void 0&&(t=X3);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:u,transformOrigin:c}=Yt(e).getComputedStyle(e);u&&(n=Q3(n,u,c))}const{top:r,left:i,width:o,height:s,bottom:a,right:l}=n;return{top:r,left:i,width:o,height:s,bottom:a,right:l}}function Ww(e){return Us(e,{ignoreTransform:!0})}function Y3(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function Z3(e,t){return t===void 0&&(t=Yt(e).getComputedStyle(e)),t.position==="fixed"}function J3(e,t){t===void 0&&(t=Yt(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(i=>{const o=t[i];return typeof o=="string"?n.test(o):!1})}function Af(e,t){const n=[];function r(i){if(t!=null&&n.length>=t||!i)return n;if(Vy(i)&&i.scrollingElement!=null&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!Al(i)||ek(i)||n.includes(i))return n;const o=Yt(e).getComputedStyle(i);return i!==e&&J3(i,o)&&n.push(i),Z3(i,o)?n:r(i.parentNode)}return e?r(e):n}function ak(e){const[t]=Af(e,1);return t??null}function $d(e){return!Mf||!e?null:zs(e)?e:jy(e)?Vy(e)||e===Bs(e).scrollingElement?window:Al(e)?e:null:null}function lk(e){return zs(e)?e.scrollX:e.scrollLeft}function uk(e){return zs(e)?e.scrollY:e.scrollTop}function Bp(e){return{x:lk(e),y:uk(e)}}var lt;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(lt||(lt={}));function ck(e){return!Mf||!e?!1:e===document.scrollingElement}function fk(e){const t={x:0,y:0},n=ck(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},i=e.scrollTop<=t.y,o=e.scrollLeft<=t.x,s=e.scrollTop>=r.y,a=e.scrollLeft>=r.x;return{isTop:i,isLeft:o,isBottom:s,isRight:a,maxScroll:r,minScroll:t}}const e4={x:.2,y:.2};function t4(e,t,n,r,i){let{top:o,left:s,right:a,bottom:l}=n;r===void 0&&(r=10),i===void 0&&(i=e4);const{isTop:u,isBottom:c,isLeft:f,isRight:d}=fk(e),h={x:0,y:0},p={x:0,y:0},m={height:t.height*i.y,width:t.width*i.x};return!u&&o<=t.top+m.height?(h.y=lt.Backward,p.y=r*Math.abs((t.top+m.height-o)/m.height)):!c&&l>=t.bottom-m.height&&(h.y=lt.Forward,p.y=r*Math.abs((t.bottom-m.height-l)/m.height)),!d&&a>=t.right-m.width?(h.x=lt.Forward,p.x=r*Math.abs((t.right-m.width-a)/m.width)):!f&&s<=t.left+m.width&&(h.x=lt.Backward,p.x=r*Math.abs((t.left+m.width-s)/m.width)),{direction:h,speed:p}}function n4(e){if(e===document.scrollingElement){const{innerWidth:o,innerHeight:s}=window;return{top:0,left:0,right:o,bottom:s,width:o,height:s}}const{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function dk(e){return e.reduce((t,n)=>is(t,Bp(n)),zn)}function r4(e){return e.reduce((t,n)=>t+lk(n),0)}function i4(e){return e.reduce((t,n)=>t+uk(n),0)}function o4(e,t){if(t===void 0&&(t=Us),!e)return;const{top:n,left:r,bottom:i,right:o}=t(e);ak(e)&&(i<=0||o<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const s4=[["x",["left","right"],r4],["y",["top","bottom"],i4]];class Uy{constructor(t,n){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 r=Af(n),i=dk(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[o,s,a]of s4)for(const l of s)Object.defineProperty(this,l,{get:()=>{const u=a(r),c=i[o]-u;return this.rect[l]+c},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class La{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var i;(i=this.target)==null||i.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function a4(e){const{EventTarget:t}=Yt(e);return e instanceof t?e:Bs(e)}function Hd(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var mn;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(mn||(mn={}));function Kw(e){e.preventDefault()}function l4(e){e.stopPropagation()}var me;(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"})(me||(me={}));const hk={start:[me.Space,me.Enter],cancel:[me.Esc],end:[me.Space,me.Enter,me.Tab]},u4=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case me.Right:return{...n,x:n.x+25};case me.Left:return{...n,x:n.x-25};case me.Down:return{...n,y:n.y+25};case me.Up:return{...n,y:n.y-25}}};class pk{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:n}}=t;this.props=t,this.listeners=new La(Bs(n)),this.windowListeners=new La(Yt(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(mn.Resize,this.handleCancel),this.windowListeners.add(mn.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(mn.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&o4(r),n(zn)}handleKeyDown(t){if(By(t)){const{active:n,context:r,options:i}=this.props,{keyboardCodes:o=hk,coordinateGetter:s=u4,scrollBehavior:a="smooth"}=i,{code:l}=t;if(o.end.includes(l)){this.handleEnd(t);return}if(o.cancel.includes(l)){this.handleCancel(t);return}const{collisionRect:u}=r.current,c=u?{x:u.left,y:u.top}:zn;this.referenceCoordinates||(this.referenceCoordinates=c);const f=s(t,{active:n,context:r.current,currentCoordinates:c});if(f){const d=al(f,c),h={x:0,y:0},{scrollableAncestors:p}=r.current;for(const m of p){const v=t.code,{isTop:y,isRight:g,isLeft:w,isBottom:x,maxScroll:E,minScroll:T}=fk(m),S=n4(m),b={x:Math.min(v===me.Right?S.right-S.width/2:S.right,Math.max(v===me.Right?S.left:S.left+S.width/2,f.x)),y:Math.min(v===me.Down?S.bottom-S.height/2:S.bottom,Math.max(v===me.Down?S.top:S.top+S.height/2,f.y))},A=v===me.Right&&!g||v===me.Left&&!w,M=v===me.Down&&!x||v===me.Up&&!y;if(A&&b.x!==f.x){const I=m.scrollLeft+d.x,z=v===me.Right&&I<=E.x||v===me.Left&&I>=T.x;if(z&&!d.y){m.scrollTo({left:I,behavior:a});return}z?h.x=m.scrollLeft-I:h.x=v===me.Right?m.scrollLeft-E.x:m.scrollLeft-T.x,h.x&&m.scrollBy({left:-h.x,behavior:a});break}else if(M&&b.y!==f.y){const I=m.scrollTop+d.y,z=v===me.Down&&I<=E.y||v===me.Up&&I>=T.y;if(z&&!d.x){m.scrollTo({top:I,behavior:a});return}z?h.y=m.scrollTop-I:h.y=v===me.Down?m.scrollTop-E.y:m.scrollTop-T.y,h.y&&m.scrollBy({top:-h.y,behavior:a});break}}this.handleMove(t,is(al(f,this.referenceCoordinates),h))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}pk.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=hk,onActivation:i}=t,{active:o}=n;const{code:s}=e.nativeEvent;if(r.start.includes(s)){const a=o.activatorNode.current;return a&&e.target!==a?!1:(e.preventDefault(),i==null||i({event:e.nativeEvent}),!0)}return!1}}];function qw(e){return!!(e&&"distance"in e)}function Gw(e){return!!(e&&"delay"in e)}class $y{constructor(t,n,r){var i;r===void 0&&(r=a4(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=n;const{event:o}=t,{target:s}=o;this.props=t,this.events=n,this.document=Bs(s),this.documentListeners=new La(this.document),this.listeners=new La(r),this.windowListeners=new La(Yt(s)),this.initialCoordinates=(i=zp(o))!=null?i:zn,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:n,bypassActivationConstraint:r}}}=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(mn.Resize,this.handleCancel),this.windowListeners.add(mn.DragStart,Kw),this.windowListeners.add(mn.VisibilityChange,this.handleCancel),this.windowListeners.add(mn.ContextMenu,Kw),this.documentListeners.add(mn.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Gw(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(qw(n)){this.handlePending(n);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,n){const{active:r,onPending:i}=this.props;i(r,t,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(mn.Click,l4,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(mn.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:i,props:o}=this,{onMove:s,options:{activationConstraint:a}}=o;if(!i)return;const l=(n=zp(t))!=null?n:zn,u=al(i,l);if(!r&&a){if(qw(a)){if(a.tolerance!=null&&Hd(u,a.tolerance))return this.handleCancel();if(Hd(u,a.distance))return this.handleStart()}if(Gw(a)&&Hd(u,a.tolerance))return this.handleCancel();this.handlePending(a,u);return}t.cancelable&&t.preventDefault(),s(l)}handleEnd(){const{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){const{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===me.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const c4={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class mk extends $y{constructor(t){const{event:n}=t,r=Bs(n.target);super(t,c4,r)}}mk.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r==null||r({event:n}),!0)}}];const f4={move:{name:"mousemove"},end:{name:"mouseup"}};var Up;(function(e){e[e.RightClick=2]="RightClick"})(Up||(Up={}));class d4 extends $y{constructor(t){super(t,f4,Bs(t.event.target))}}d4.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===Up.RightClick?!1:(r==null||r({event:n}),!0)}}];const Wd={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class h4 extends $y{constructor(t){super(t,Wd)}static setup(){return window.addEventListener(Wd.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(Wd.move.name,t)};function t(){}}}h4.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:i}=n;return i.length>1?!1:(r==null||r({event:n}),!0)}}];var _a;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(_a||(_a={}));var Kc;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Kc||(Kc={}));function p4(e){let{acceleration:t,activator:n=_a.Pointer,canScroll:r,draggingRect:i,enabled:o,interval:s=5,order:a=Kc.TreeOrder,pointerCoordinates:l,scrollableAncestors:u,scrollableAncestorRects:c,delta:f,threshold:d}=e;const h=y4({delta:f,disabled:!o}),[p,m]=P3(),v=C.useRef({x:0,y:0}),y=C.useRef({x:0,y:0}),g=C.useMemo(()=>{switch(n){case _a.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case _a.DraggableRect:return i}},[n,i,l]),w=C.useRef(null),x=C.useCallback(()=>{const T=w.current;if(!T)return;const S=v.current.x*y.current.x,b=v.current.y*y.current.y;T.scrollBy(S,b)},[]),E=C.useMemo(()=>a===Kc.TreeOrder?[...u].reverse():u,[a,u]);C.useEffect(()=>{if(!o||!u.length||!g){m();return}for(const T of E){if((r==null?void 0:r(T))===!1)continue;const S=u.indexOf(T),b=c[S];if(!b)continue;const{direction:A,speed:M}=t4(T,b,g,t,d);for(const I of["x","y"])h[I][A[I]]||(M[I]=0,A[I]=0);if(M.x>0||M.y>0){m(),w.current=T,p(x,s),v.current=M,y.current=A;return}}v.current={x:0,y:0},y.current={x:0,y:0},m()},[t,x,r,m,o,s,JSON.stringify(g),JSON.stringify(h),p,u,E,c,JSON.stringify(d)])}const m4={x:{[lt.Backward]:!1,[lt.Forward]:!1},y:{[lt.Backward]:!1,[lt.Forward]:!1}};function y4(e){let{delta:t,disabled:n}=e;const r=Vp(t);return Dl(i=>{if(n||!r||!i)return m4;const o={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[lt.Backward]:i.x[lt.Backward]||o.x===-1,[lt.Forward]:i.x[lt.Forward]||o.x===1},y:{[lt.Backward]:i.y[lt.Backward]||o.y===-1,[lt.Forward]:i.y[lt.Forward]||o.y===1}}},[n,t,r])}function g4(e,t){const n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return Dl(i=>{var o;return t==null?null:(o=r??i)!=null?o:null},[r,t])}function v4(e,t){return C.useMemo(()=>e.reduce((n,r)=>{const{sensor:i}=r,o=i.activators.map(s=>({eventName:s.eventName,handler:t(s.handler,r)}));return[...n,...o]},[]),[e,t])}var ll;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(ll||(ll={}));var $p;(function(e){e.Optimized="optimized"})($p||($p={}));const Qw=new Map;function w4(e,t){let{dragging:n,dependencies:r,config:i}=t;const[o,s]=C.useState(null),{frequency:a,measure:l,strategy:u}=i,c=C.useRef(e),f=v(),d=sl(f),h=C.useCallback(function(y){y===void 0&&(y=[]),!d.current&&s(g=>g===null?y:g.concat(y.filter(w=>!g.includes(w))))},[d]),p=C.useRef(null),m=Dl(y=>{if(f&&!n)return Qw;if(!y||y===Qw||c.current!==e||o!=null){const g=new Map;for(let w of e){if(!w)continue;if(o&&o.length>0&&!o.includes(w.id)&&w.rect.current){g.set(w.id,w.rect.current);continue}const x=w.node.current,E=x?new Uy(l(x),x):null;w.rect.current=E,E&&g.set(w.id,E)}return g}return y},[e,o,n,f,l]);return C.useEffect(()=>{c.current=e},[e]),C.useEffect(()=>{f||h()},[n,f]),C.useEffect(()=>{o&&o.length>0&&s(null)},[JSON.stringify(o)]),C.useEffect(()=>{f||typeof a!="number"||p.current!==null||(p.current=setTimeout(()=>{h(),p.current=null},a))},[a,f,h,...r]),{droppableRects:m,measureDroppableContainers:h,measuringScheduled:o!=null};function v(){switch(u){case ll.Always:return!1;case ll.BeforeDragging:return n;default:return!n}}}function yk(e,t){return Dl(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function x4(e,t){return yk(e,t)}function S4(e){let{callback:t,disabled:n}=e;const r=zy(t),i=C.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:o}=window;return new o(r)},[r,n]);return C.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function Df(e){let{callback:t,disabled:n}=e;const r=zy(t),i=C.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:o}=window;return new o(r)},[n]);return C.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function b4(e){return new Uy(Us(e),e)}function Xw(e,t,n){t===void 0&&(t=b4);const[r,i]=C.useState(null);function o(){i(l=>{if(!e)return null;if(e.isConnected===!1){var u;return(u=l??n)!=null?u:null}const c=t(e);return JSON.stringify(l)===JSON.stringify(c)?l:c})}const s=S4({callback(l){if(e)for(const u of l){const{type:c,target:f}=u;if(c==="childList"&&f instanceof HTMLElement&&f.contains(e)){o();break}}}}),a=Df({callback:o});return lr(()=>{o(),e?(a==null||a.observe(e),s==null||s.observe(document.body,{childList:!0,subtree:!0})):(a==null||a.disconnect(),s==null||s.disconnect())},[e]),r}function C4(e){const t=yk(e);return sk(e,t)}const Yw=[];function E4(e){const t=C.useRef(e),n=Dl(r=>e?r&&r!==Yw&&e&&t.current&&e.parentNode===t.current.parentNode?r:Af(e):Yw,[e]);return C.useEffect(()=>{t.current=e},[e]),n}function k4(e){const[t,n]=C.useState(null),r=C.useRef(e),i=C.useCallback(o=>{const s=$d(o.target);s&&n(a=>a?(a.set(s,Bp(s)),new Map(a)):null)},[]);return C.useEffect(()=>{const o=r.current;if(e!==o){s(o);const a=e.map(l=>{const u=$d(l);return u?(u.addEventListener("scroll",i,{passive:!0}),[u,Bp(u)]):null}).filter(l=>l!=null);n(a.length?new Map(a):null),r.current=e}return()=>{s(e),s(o)};function s(a){a.forEach(l=>{const u=$d(l);u==null||u.removeEventListener("scroll",i)})}},[i,e]),C.useMemo(()=>e.length?t?Array.from(t.values()).reduce((o,s)=>is(o,s),zn):dk(e):zn,[e,t])}function Zw(e,t){t===void 0&&(t=[]);const n=C.useRef(null);return C.useEffect(()=>{n.current=null},t),C.useEffect(()=>{const r=e!==zn;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?al(e,n.current):zn}function R4(e){C.useEffect(()=>{if(!Mf)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n==null||n()}},e.map(t=>{let{sensor:n}=t;return n}))}function T4(e,t){return C.useMemo(()=>e.reduce((n,r)=>{let{eventName:i,handler:o}=r;return n[i]=s=>{o(s,t)},n},{}),[e,t])}function gk(e){return C.useMemo(()=>e?Y3(e):null,[e])}const Jw=[];function P4(e,t){t===void 0&&(t=Us);const[n]=e,r=gk(n?Yt(n):null),[i,o]=C.useState(Jw);function s(){o(()=>e.length?e.map(l=>ck(l)?r:new Uy(t(l),l)):Jw)}const a=Df({callback:s});return lr(()=>{a==null||a.disconnect(),s(),e.forEach(l=>a==null?void 0:a.observe(l))},[e]),i}function M4(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Al(t)?t:e}function A4(e){let{measure:t}=e;const[n,r]=C.useState(null),i=C.useCallback(u=>{for(const{target:c}of u)if(Al(c)){r(f=>{const d=t(c);return f?{...f,width:d.width,height:d.height}:d});break}},[t]),o=Df({callback:i}),s=C.useCallback(u=>{const c=M4(u);o==null||o.disconnect(),c&&(o==null||o.observe(c)),r(c?t(c):null)},[t,o]),[a,l]=$c(s);return C.useMemo(()=>({nodeRef:a,rect:n,setRef:l}),[n,a,l])}const D4=[{sensor:mk,options:{}},{sensor:pk,options:{}}],O4={current:{}},Yu={draggable:{measure:Ww},droppable:{measure:Ww,strategy:ll.WhileDragging,frequency:$p.Optimized},dragOverlay:{measure:Us}};class Ia extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const L4={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Ia,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Wc},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Yu,measureDroppableContainers:Wc,windowRect:null,measuringScheduled:!1},_4={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Wc,draggableNodes:new Map,over:null,measureDroppableContainers:Wc},Of=C.createContext(_4),vk=C.createContext(L4);function I4(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Ia}}}function N4(e,t){switch(t.type){case rt.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case rt.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 rt.DragEnd:case rt.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case rt.RegisterDroppable:{const{element:n}=t,{id:r}=n,i=new Ia(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case rt.SetDroppableDisabled:{const{id:n,key:r,disabled:i}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const s=new Ia(e.droppable.containers);return s.set(n,{...o,disabled:i}),{...e,droppable:{...e.droppable,containers:s}}}case rt.UnregisterDroppable:{const{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const o=new Ia(e.droppable.containers);return o.delete(n),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function F4(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:i}=C.useContext(Of),o=Vp(r),s=Vp(n==null?void 0:n.id);return C.useEffect(()=>{if(!t&&!r&&o&&s!=null){if(!By(o)||document.activeElement===o.target)return;const a=i.get(s);if(!a)return;const{activatorNode:l,node:u}=a;if(!l.current&&!u.current)return;requestAnimationFrame(()=>{for(const c of[l.current,u.current]){if(!c)continue;const f=D3(c);if(f){f.focus();break}}})}},[r,t,i,s,o]),null}function j4(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((i,o)=>o({transform:i,...r}),n):n}function V4(e){return C.useMemo(()=>({draggable:{...Yu.draggable,...e==null?void 0:e.draggable},droppable:{...Yu.droppable,...e==null?void 0:e.droppable},dragOverlay:{...Yu.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 z4(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e;const o=C.useRef(!1),{x:s,y:a}=typeof i=="boolean"?{x:i,y:i}:i;lr(()=>{if(!s&&!a||!t){o.current=!1;return}if(o.current||!r)return;const u=t==null?void 0:t.node.current;if(!u||u.isConnected===!1)return;const c=n(u),f=sk(c,r);if(s||(f.x=0),a||(f.y=0),o.current=!0,Math.abs(f.x)>0||Math.abs(f.y)>0){const d=ak(u);d&&d.scrollBy({top:f.y,left:f.x})}},[t,s,a,r,n])}const wk=C.createContext({...zn,scaleX:1,scaleY:1});var qr;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(qr||(qr={}));const hV=C.memo(function(t){var n,r,i,o;let{id:s,accessibility:a,autoScroll:l=!0,children:u,sensors:c=D4,collisionDetection:f=H3,measuring:d,modifiers:h,...p}=t;const m=C.useReducer(N4,void 0,I4),[v,y]=m,[g,w]=F3(),[x,E]=C.useState(qr.Uninitialized),T=x===qr.Initialized,{draggable:{active:S,nodes:b,translate:A},droppable:{containers:M}}=v,I=S!=null?b.get(S):null,z=C.useRef({initial:null,translated:null}),H=C.useMemo(()=>{var qe;return S!=null?{id:S,data:(qe=I==null?void 0:I.data)!=null?qe:O4,rect:z}:null},[S,I]),$=C.useRef(null),[oe,U]=C.useState(null),[se,O]=C.useState(null),j=sl(p,Object.values(p)),_=Ol("DndDescribedBy",s),re=C.useMemo(()=>M.getEnabled(),[M]),ne=V4(d),{droppableRects:Te,measureDroppableContainers:be,measuringScheduled:ce}=w4(re,{dragging:T,dependencies:[A.x,A.y],config:ne.droppable}),le=g4(b,S),ze=C.useMemo(()=>se?zp(se):null,[se]),wt=Ks(),Ce=x4(le,ne.draggable.measure);z4({activeNode:S!=null?b.get(S):null,config:wt.layoutShiftCompensation,initialRect:Ce,measure:ne.draggable.measure});const ge=Xw(le,ne.draggable.measure,Ce),cn=Xw(le?le.parentElement:null),xe=C.useRef({activatorEvent:null,active:null,activeNode:le,collisionRect:null,collisions:null,droppableRects:Te,draggableNodes:b,draggingNode:null,draggingNodeRect:null,droppableContainers:M,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),ct=M.getNodeFor((n=xe.current.over)==null?void 0:n.id),ft=A4({measure:ne.dragOverlay.measure}),Fr=(r=ft.nodeRef.current)!=null?r:le,zt=T?(i=ft.rect)!=null?i:ge:null,Ll=!!(ft.nodeRef.current&&ft.rect),_l=C4(Ll?null:ge),xo=gk(Fr?Yt(Fr):null),Un=E4(T?ct??le:null),So=P4(Un),bo=j4(h,{transform:{x:A.x-_l.x,y:A.y-_l.y,scaleX:1,scaleY:1},activatorEvent:se,active:H,activeNodeRect:ge,containerNodeRect:cn,draggingNodeRect:zt,over:xe.current.over,overlayNodeRect:ft.rect,scrollableAncestors:Un,scrollableAncestorRects:So,windowRect:xo}),Il=ze?is(ze,A):null,$n=k4(Un),Mi=Zw($n),Nl=Zw($n,[ge]),Hn=is(bo,Mi),Tt=zt?q3(zt,bo):null,Pt=H&&Tt?f({active:H,collisionRect:Tt,droppableRects:Te,droppableContainers:re,pointerCoordinates:Il}):null,$s=ok(Pt,"id"),[Zt,Fl]=C.useState(null),Wn=Ll?bo:is(bo,Nl),jl=W3(Wn,(o=Zt==null?void 0:Zt.rect)!=null?o:null,ge),Co=C.useRef(null),Hs=C.useCallback((qe,Mt)=>{let{sensor:xt,options:Kn}=Mt;if($.current==null)return;const At=b.get($.current);if(!At)return;const ot=qe.nativeEvent,Dt=new xt({active:$.current,activeNode:At,event:ot,options:Kn,context:xe,onAbort(Ze){if(!b.get(Ze))return;const{onDragAbort:P}=j.current,D={id:Ze};P==null||P(D),g({type:"onDragAbort",event:D})},onPending(Ze,R,P,D){if(!b.get(Ze))return;const{onDragPending:V}=j.current,X={id:Ze,constraint:R,initialCoordinates:P,offset:D};V==null||V(X),g({type:"onDragPending",event:X})},onStart(Ze){const R=$.current;if(R==null)return;const P=b.get(R);if(!P)return;const{onDragStart:D}=j.current,N={activatorEvent:ot,active:{id:R,data:P.data,rect:z}};kr.unstable_batchedUpdates(()=>{D==null||D(N),E(qr.Initializing),y({type:rt.DragStart,initialCoordinates:Ze,active:R}),g({type:"onDragStart",event:N}),U(Co.current),O(ot)})},onMove(Ze){y({type:rt.DragMove,coordinates:Ze})},onEnd:jr(rt.DragEnd),onCancel:jr(rt.DragCancel)});Co.current=Dt;function jr(Ze){return async function(){const{active:P,collisions:D,over:N,scrollAdjustedTranslate:V}=xe.current;let X=null;if(P&&V){const{cancelDrop:ie}=j.current;X={activatorEvent:ot,active:P,collisions:D,delta:V,over:N},Ze===rt.DragEnd&&typeof ie=="function"&&await Promise.resolve(ie(X))&&(Ze=rt.DragCancel)}$.current=null,kr.unstable_batchedUpdates(()=>{y({type:Ze}),E(qr.Uninitialized),Fl(null),U(null),O(null),Co.current=null;const ie=Ze===rt.DragEnd?"onDragEnd":"onDragCancel";if(X){const W=j.current[ie];W==null||W(X),g({type:ie,event:X})}})}}},[b]),Lf=C.useCallback((qe,Mt)=>(xt,Kn)=>{const At=xt.nativeEvent,ot=b.get(Kn);if($.current!==null||!ot||At.dndKit||At.defaultPrevented)return;const Dt={active:ot};qe(xt,Mt.options,Dt)===!0&&(At.dndKit={capturedBy:Mt.sensor},$.current=Kn,Hs(xt,Mt))},[b,Hs]),Ws=v4(c,Lf);R4(c),lr(()=>{ge&&x===qr.Initializing&&E(qr.Initialized)},[ge,x]),C.useEffect(()=>{const{onDragMove:qe}=j.current,{active:Mt,activatorEvent:xt,collisions:Kn,over:At}=xe.current;if(!Mt||!xt)return;const ot={active:Mt,activatorEvent:xt,collisions:Kn,delta:{x:Hn.x,y:Hn.y},over:At};kr.unstable_batchedUpdates(()=>{qe==null||qe(ot),g({type:"onDragMove",event:ot})})},[Hn.x,Hn.y]),C.useEffect(()=>{const{active:qe,activatorEvent:Mt,collisions:xt,droppableContainers:Kn,scrollAdjustedTranslate:At}=xe.current;if(!qe||$.current==null||!Mt||!At)return;const{onDragOver:ot}=j.current,Dt=Kn.get($s),jr=Dt&&Dt.rect.current?{id:Dt.id,rect:Dt.rect.current,data:Dt.data,disabled:Dt.disabled}:null,Ze={active:qe,activatorEvent:Mt,collisions:xt,delta:{x:At.x,y:At.y},over:jr};kr.unstable_batchedUpdates(()=>{Fl(jr),ot==null||ot(Ze),g({type:"onDragOver",event:Ze})})},[$s]),lr(()=>{xe.current={activatorEvent:se,active:H,activeNode:le,collisionRect:Tt,collisions:Pt,droppableRects:Te,draggableNodes:b,draggingNode:Fr,draggingNodeRect:zt,droppableContainers:M,over:Zt,scrollableAncestors:Un,scrollAdjustedTranslate:Hn},z.current={initial:zt,translated:Tt}},[H,le,Pt,Tt,b,Fr,zt,Te,M,Zt,Un,Hn]),p4({...wt,delta:A,draggingRect:Tt,pointerCoordinates:Il,scrollableAncestors:Un,scrollableAncestorRects:So});const Eo=C.useMemo(()=>({active:H,activeNode:le,activeNodeRect:ge,activatorEvent:se,collisions:Pt,containerNodeRect:cn,dragOverlay:ft,draggableNodes:b,droppableContainers:M,droppableRects:Te,over:Zt,measureDroppableContainers:be,scrollableAncestors:Un,scrollableAncestorRects:So,measuringConfiguration:ne,measuringScheduled:ce,windowRect:xo}),[H,le,ge,se,Pt,cn,ft,b,M,Te,Zt,be,Un,So,ne,ce,xo]),Vl=C.useMemo(()=>({activatorEvent:se,activators:Ws,active:H,activeNodeRect:ge,ariaDescribedById:{draggable:_},dispatch:y,draggableNodes:b,over:Zt,measureDroppableContainers:be}),[se,Ws,H,ge,y,_,b,Zt,be]);return _t.createElement(nk.Provider,{value:w},_t.createElement(Of.Provider,{value:Vl},_t.createElement(vk.Provider,{value:Eo},_t.createElement(wk.Provider,{value:jl},u)),_t.createElement(F4,{disabled:(a==null?void 0:a.restoreFocus)===!1})),_t.createElement(z3,{...a,hiddenTextDescribedById:_}));function Ks(){const qe=(oe==null?void 0:oe.autoScrollEnabled)===!1,Mt=typeof l=="object"?l.enabled===!1:l===!1,xt=T&&!qe&&!Mt;return typeof l=="object"?{...l,enabled:xt}:{enabled:xt}}}),B4=C.createContext(null),e1="button",U4="Draggable";function $4(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e;const o=Ol(U4),{activators:s,activatorEvent:a,active:l,activeNodeRect:u,ariaDescribedById:c,draggableNodes:f,over:d}=C.useContext(Of),{role:h=e1,roleDescription:p="draggable",tabIndex:m=0}=i??{},v=(l==null?void 0:l.id)===t,y=C.useContext(v?wk:B4),[g,w]=$c(),[x,E]=$c(),T=T4(s,t),S=sl(n);lr(()=>(f.set(t,{id:t,key:o,node:g,activatorNode:x,data:S}),()=>{const A=f.get(t);A&&A.key===o&&f.delete(t)}),[f,t]);const b=C.useMemo(()=>({role:h,tabIndex:m,"aria-disabled":r,"aria-pressed":v&&h===e1?!0:void 0,"aria-roledescription":p,"aria-describedby":c.draggable}),[r,h,m,v,p,c.draggable]);return{active:l,activatorEvent:a,activeNodeRect:u,attributes:b,isDragging:v,listeners:r?void 0:T,node:g,over:d,setNodeRef:w,setActivatorNodeRef:E,transform:y}}function H4(){return C.useContext(vk)}const W4="Droppable",K4={timeout:25};function q4(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e;const o=Ol(W4),{active:s,dispatch:a,over:l,measureDroppableContainers:u}=C.useContext(Of),c=C.useRef({disabled:n}),f=C.useRef(!1),d=C.useRef(null),h=C.useRef(null),{disabled:p,updateMeasurementsFor:m,timeout:v}={...K4,...i},y=sl(m??r),g=C.useCallback(()=>{if(!f.current){f.current=!0;return}h.current!=null&&clearTimeout(h.current),h.current=setTimeout(()=>{u(Array.isArray(y.current)?y.current:[y.current]),h.current=null},v)},[v]),w=Df({callback:g,disabled:p||!s}),x=C.useCallback((b,A)=>{w&&(A&&(w.unobserve(A),f.current=!1),b&&w.observe(b))},[w]),[E,T]=$c(x),S=sl(t);return C.useEffect(()=>{!w||!E.current||(w.disconnect(),f.current=!1,w.observe(E.current))},[E,w]),C.useEffect(()=>(a({type:rt.RegisterDroppable,element:{id:r,key:o,disabled:n,node:E,rect:d,data:S}}),()=>a({type:rt.UnregisterDroppable,key:o,id:r})),[r]),C.useEffect(()=>{n!==c.current.disabled&&(a({type:rt.SetDroppableDisabled,id:r,key:o,disabled:n}),c.current.disabled=n)},[r,o,n,a]),{active:s,rect:d,isOver:(l==null?void 0:l.id)===r,node:E,over:l,setNodeRef:T}}function xk(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function G4(e,t){return e.reduce((n,r,i)=>{const o=t.get(r);return o&&(n[i]=o),n},Array(e.length))}function Su(e){return e!==null&&e>=0}function Q4(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function X4(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const Sk=e=>{let{rects:t,activeIndex:n,overIndex:r,index:i}=e;const o=xk(t,r,n),s=t[i],a=o[i];return!a||!s?null:{x:a.left-s.left,y:a.top-s.top,scaleX:a.width/s.width,scaleY:a.height/s.height}},bu={scaleX:1,scaleY:1},pV=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:i,rects:o,overIndex:s}=e;const a=(t=o[n])!=null?t:r;if(!a)return null;if(i===n){const u=o[s];return u?{x:0,y:n<s?u.top+u.height-(a.top+a.height):u.top-a.top,...bu}:null}const l=Y4(o,i,n);return i>n&&i<=s?{x:0,y:-a.height-l,...bu}:i<n&&i>=s?{x:0,y:a.height+l,...bu}:{x:0,y:0,...bu}};function Y4(e,t,n){const r=e[t],i=e[t-1],o=e[t+1];return r?n<t?i?r.top-(i.top+i.height):o?o.top-(r.top+r.height):0:o?o.top-(r.top+r.height):i?r.top-(i.top+i.height):0:0}const bk="Sortable",Ck=_t.createContext({activeIndex:-1,containerId:bk,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Sk,disabled:{draggable:!1,droppable:!1}});function mV(e){let{children:t,id:n,items:r,strategy:i=Sk,disabled:o=!1}=e;const{active:s,dragOverlay:a,droppableRects:l,over:u,measureDroppableContainers:c}=H4(),f=Ol(bk,n),d=a.rect!==null,h=C.useMemo(()=>r.map(T=>typeof T=="object"&&"id"in T?T.id:T),[r]),p=s!=null,m=s?h.indexOf(s.id):-1,v=u?h.indexOf(u.id):-1,y=C.useRef(h),g=!Q4(h,y.current),w=v!==-1&&m===-1||g,x=X4(o);lr(()=>{g&&p&&c(h)},[g,h,p,c]),C.useEffect(()=>{y.current=h},[h]);const E=C.useMemo(()=>({activeIndex:m,containerId:f,disabled:x,disableTransforms:w,items:h,overIndex:v,useDragOverlay:d,sortedRects:G4(h,l),strategy:i}),[m,f,x.draggable,x.droppable,w,h,v,l,d,i]);return _t.createElement(Ck.Provider,{value:E},t)}const Z4=e=>{let{id:t,items:n,activeIndex:r,overIndex:i}=e;return xk(n,r,i).indexOf(t)},J4=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:i,items:o,newIndex:s,previousItems:a,previousContainerId:l,transition:u}=e;return!u||!r||a!==o&&i===s?!1:n?!0:s!==i&&t===l},eF={duration:200,easing:"ease"},Ek="transform",tF=Hc.Transition.toString({property:Ek,duration:0,easing:"linear"}),nF={roleDescription:"sortable"};function rF(e){let{disabled:t,index:n,node:r,rect:i}=e;const[o,s]=C.useState(null),a=C.useRef(n);return lr(()=>{if(!t&&n!==a.current&&r.current){const l=i.current;if(l){const u=Us(r.current,{ignoreTransform:!0}),c={x:l.left-u.left,y:l.top-u.top,scaleX:l.width/u.width,scaleY:l.height/u.height};(c.x||c.y)&&s(c)}}n!==a.current&&(a.current=n)},[t,n,r,i]),C.useEffect(()=>{o&&s(null)},[o]),o}function yV(e){let{animateLayoutChanges:t=J4,attributes:n,disabled:r,data:i,getNewIndex:o=Z4,id:s,strategy:a,resizeObserverConfig:l,transition:u=eF}=e;const{items:c,containerId:f,activeIndex:d,disabled:h,disableTransforms:p,sortedRects:m,overIndex:v,useDragOverlay:y,strategy:g}=C.useContext(Ck),w=iF(r,h),x=c.indexOf(s),E=C.useMemo(()=>({sortable:{containerId:f,index:x,items:c},...i}),[f,i,x,c]),T=C.useMemo(()=>c.slice(c.indexOf(s)),[c,s]),{rect:S,node:b,isOver:A,setNodeRef:M}=q4({id:s,data:E,disabled:w.droppable,resizeObserverConfig:{updateMeasurementsFor:T,...l}}),{active:I,activatorEvent:z,activeNodeRect:H,attributes:$,setNodeRef:oe,listeners:U,isDragging:se,over:O,setActivatorNodeRef:j,transform:_}=$4({id:s,data:E,attributes:{...nF,...n},disabled:w.draggable}),re=T3(M,oe),ne=!!I,Te=ne&&!p&&Su(d)&&Su(v),be=!y&&se,ce=be&&Te?_:null,ze=Te?ce??(a??g)({rects:m,activeNodeRect:H,activeIndex:d,overIndex:v,index:x}):null,wt=Su(d)&&Su(v)?o({id:s,items:c,activeIndex:d,overIndex:v}):x,Ce=I==null?void 0:I.id,ge=C.useRef({activeId:Ce,items:c,newIndex:wt,containerId:f}),cn=c!==ge.current.items,xe=t({active:I,containerId:f,isDragging:se,isSorting:ne,id:s,index:x,items:c,newIndex:ge.current.newIndex,previousItems:ge.current.items,previousContainerId:ge.current.containerId,transition:u,wasDragging:ge.current.activeId!=null}),ct=rF({disabled:!xe,index:x,node:b,rect:S});return C.useEffect(()=>{ne&&ge.current.newIndex!==wt&&(ge.current.newIndex=wt),f!==ge.current.containerId&&(ge.current.containerId=f),c!==ge.current.items&&(ge.current.items=c)},[ne,wt,f,c]),C.useEffect(()=>{if(Ce===ge.current.activeId)return;if(Ce!=null&&ge.current.activeId==null){ge.current.activeId=Ce;return}const Fr=setTimeout(()=>{ge.current.activeId=Ce},50);return()=>clearTimeout(Fr)},[Ce]),{active:I,activeIndex:d,attributes:$,data:E,rect:S,index:x,newIndex:wt,items:c,isOver:A,isSorting:ne,isDragging:se,listeners:U,node:b,overIndex:v,over:O,setNodeRef:re,setActivatorNodeRef:j,setDroppableNodeRef:M,setDraggableNodeRef:oe,transform:ct??ze,transition:ft()};function ft(){if(ct||cn&&ge.current.newIndex===x)return tF;if(!(be&&!By(z)||!u)&&(ne||xe))return Hc.Transition.toString({...u,property:Ek})}}function iF(e,t){var n,r;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e==null?void 0:e.draggable)!=null?n:t.draggable,droppable:(r=e==null?void 0:e.droppable)!=null?r:t.droppable}}function qc(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&typeof t.sortable=="object"&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const oF=[me.Down,me.Right,me.Up,me.Left],gV=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:i,droppableContainers:o,over:s,scrollableAncestors:a}}=t;if(oF.includes(e.code)){if(e.preventDefault(),!n||!r)return;const l=[];o.getEnabled().forEach(f=>{if(!f||f!=null&&f.disabled)return;const d=i.get(f.id);if(d)switch(e.code){case me.Down:r.top<d.top&&l.push(f);break;case me.Up:r.top>d.top&&l.push(f);break;case me.Left:r.left>d.left&&l.push(f);break;case me.Right:r.left<d.left&&l.push(f);break}});const u=U3({collisionRect:r,droppableRects:i,droppableContainers:l});let c=ok(u,"id");if(c===(s==null?void 0:s.id)&&u.length>1&&(c=u[1].id),c!=null){const f=o.get(n.id),d=o.get(c),h=d?i.get(d.id):null,p=d==null?void 0:d.node.current;if(p&&h&&f&&d){const v=Af(p).some((T,S)=>a[S]!==T),y=kk(f,d),g=sF(f,d),w=v||!y?{x:0,y:0}:{x:g?r.width-h.width:0,y:g?r.height-h.height:0},x={x:h.left,y:h.top};return w.x&&w.y?x:al(x,w)}}}};function kk(e,t){return!qc(e)||!qc(t)?!1:e.data.current.sortable.containerId===t.data.current.sortable.containerId}function sF(e,t){return!qc(e)||!qc(t)||!kk(e,t)?!1:e.data.current.sortable.index<t.data.current.sortable.index}export{sj as $,tt as A,tV as B,eV as C,qj as D,np as E,Yj as F,JT as G,EO as H,oa as I,nV as J,aV as K,uV as L,bj as M,lV as N,Cj as O,Ye as P,Sj as Q,lF as R,jj as S,HF as T,vF as U,_F as V,zF as W,rj as X,dF as Y,jF as Z,sV as _,hn as a,hj as a$,UF as a0,TF as a1,Kj as a2,EF as a3,SF as a4,RF as a5,dj as a6,QF as a7,GF as a8,qF as a9,cF as aA,tj as aB,kF as aC,gj as aD,MF as aE,DF as aF,CF as aG,aj as aH,fV as aI,cV as aJ,gV as aK,pk as aL,mk as aM,hV as aN,dV as aO,mV as aP,pV as aQ,yV as aR,NF as aS,Hc as aT,OF as aU,LF as aV,mF as aW,xk as aX,ej as aY,JF as aZ,mj as a_,hF as aa,wF as ab,AF as ac,fj as ad,VF as ae,ij as af,ZF as ag,wj as ah,XF as ai,Qy as aj,IF as ak,pj as al,yF as am,xF as an,yj as ao,YF as ap,KF as aq,FF as ar,nj as as,vj as at,bF as au,PF as av,Wj as aw,ZM as ax,iV as ay,oV as az,yf as b,uj as b0,BF as b1,$F as b2,gF as b3,pF as b4,fF as b5,cj as b6,oj as b7,lj as b8,WF as b9,De as c,Pa as d,bM as e,Rc as f,SM as g,El as h,Es as i,Rr as j,Hj as k,$j as l,Lo as m,mt as n,uF as o,vo as p,Ov as q,C as r,xj as s,kr as t,_t as u,Gj as v,Qj as w,Xj as x,Zj as y,Jj as z};
|
|
455
|
+
`},VN={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function zN(e){let{announcements:t=VN,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=jN}=e;const{announce:o,announcement:s}=IN(),a=Ol("DndLiveRegion"),[l,u]=C.useState(!1);if(C.useEffect(()=>{u(!0)},[]),NN(C.useMemo(()=>({onDragStart(f){let{active:d}=f;o(t.onDragStart({active:d}))},onDragMove(f){let{active:d,over:h}=f;t.onDragMove&&o(t.onDragMove({active:d,over:h}))},onDragOver(f){let{active:d,over:h}=f;o(t.onDragOver({active:d,over:h}))},onDragEnd(f){let{active:d,over:h}=f;o(t.onDragEnd({active:d,over:h}))},onDragCancel(f){let{active:d,over:h}=f;o(t.onDragCancel({active:d,over:h}))}}),[o,t])),!l)return null;const c=_t.createElement(_t.Fragment,null,_t.createElement(LN,{id:r,value:i.draggable}),_t.createElement(_N,{id:a,announcement:s}));return n?kr.createPortal(c,n):c}var rt;(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"})(rt||(rt={}));function Hc(){}function d5(e,t){return C.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function h5(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return C.useMemo(()=>[...t].filter(r=>r!=null),[...t])}const zn=Object.freeze({x:0,y:0});function rk(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function ik(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function BN(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function $w(e){let{left:t,top:n,height:r,width:i}=e;return[{x:t,y:n},{x:t+i,y:n},{x:t,y:n+r},{x:t+i,y:n+r}]}function ok(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function Ww(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}const p5=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=Ww(t,t.left,t.top),o=[];for(const s of r){const{id:a}=s,l=n.get(a);if(l){const u=rk(Ww(l),i);o.push({id:a,data:{droppableContainer:s,value:u}})}}return o.sort(ik)},UN=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=$w(t),o=[];for(const s of r){const{id:a}=s,l=n.get(a);if(l){const u=$w(l),c=i.reduce((d,h,p)=>d+rk(u[p],h),0),f=Number((c/4).toFixed(4));o.push({id:a,data:{droppableContainer:s,value:f}})}}return o.sort(ik)};function $N(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height),s=i-r,a=o-n;if(r<i&&n<o){const l=t.width*t.height,u=e.width*e.height,c=s*a,f=c/(l+u-c);return Number(f.toFixed(4))}return 0}const WN=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=[];for(const o of r){const{id:s}=o,a=n.get(s);if(a){const l=$N(a,t);l>0&&i.push({id:s,data:{droppableContainer:o,value:l}})}}return i.sort(BN)};function HN(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function sk(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:zn}function KN(e){return function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return i.reduce((s,a)=>({...s,top:s.top+e*a.y,bottom:s.bottom+e*a.y,left:s.left+e*a.x,right:s.right+e*a.x}),{...n})}}const qN=KN(1);function GN(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 QN(e,t,n){const r=GN(t);if(!r)return e;const{scaleX:i,scaleY:o,x:s,y:a}=r,l=e.left-s-(1-i)*parseFloat(n),u=e.top-a-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),c=i?e.width/i:e.width,f=o?e.height/o:e.height;return{width:c,height:f,top:u,right:l+c,bottom:u+f,left:l}}const XN={ignoreTransform:!1};function Us(e,t){t===void 0&&(t=XN);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:u,transformOrigin:c}=Yt(e).getComputedStyle(e);u&&(n=QN(n,u,c))}const{top:r,left:i,width:o,height:s,bottom:a,right:l}=n;return{top:r,left:i,width:o,height:s,bottom:a,right:l}}function Hw(e){return Us(e,{ignoreTransform:!0})}function YN(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function ZN(e,t){return t===void 0&&(t=Yt(e).getComputedStyle(e)),t.position==="fixed"}function JN(e,t){t===void 0&&(t=Yt(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(i=>{const o=t[i];return typeof o=="string"?n.test(o):!1})}function Af(e,t){const n=[];function r(i){if(t!=null&&n.length>=t||!i)return n;if(Vy(i)&&i.scrollingElement!=null&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!Al(i)||ek(i)||n.includes(i))return n;const o=Yt(e).getComputedStyle(i);return i!==e&&JN(i,o)&&n.push(i),ZN(i,o)?n:r(i.parentNode)}return e?r(e):n}function ak(e){const[t]=Af(e,1);return t??null}function $d(e){return!Mf||!e?null:zs(e)?e:jy(e)?Vy(e)||e===Bs(e).scrollingElement?window:Al(e)?e:null:null}function lk(e){return zs(e)?e.scrollX:e.scrollLeft}function uk(e){return zs(e)?e.scrollY:e.scrollTop}function Bp(e){return{x:lk(e),y:uk(e)}}var lt;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(lt||(lt={}));function ck(e){return!Mf||!e?!1:e===document.scrollingElement}function fk(e){const t={x:0,y:0},n=ck(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},i=e.scrollTop<=t.y,o=e.scrollLeft<=t.x,s=e.scrollTop>=r.y,a=e.scrollLeft>=r.x;return{isTop:i,isLeft:o,isBottom:s,isRight:a,maxScroll:r,minScroll:t}}const e4={x:.2,y:.2};function t4(e,t,n,r,i){let{top:o,left:s,right:a,bottom:l}=n;r===void 0&&(r=10),i===void 0&&(i=e4);const{isTop:u,isBottom:c,isLeft:f,isRight:d}=fk(e),h={x:0,y:0},p={x:0,y:0},m={height:t.height*i.y,width:t.width*i.x};return!u&&o<=t.top+m.height?(h.y=lt.Backward,p.y=r*Math.abs((t.top+m.height-o)/m.height)):!c&&l>=t.bottom-m.height&&(h.y=lt.Forward,p.y=r*Math.abs((t.bottom-m.height-l)/m.height)),!d&&a>=t.right-m.width?(h.x=lt.Forward,p.x=r*Math.abs((t.right-m.width-a)/m.width)):!f&&s<=t.left+m.width&&(h.x=lt.Backward,p.x=r*Math.abs((t.left+m.width-s)/m.width)),{direction:h,speed:p}}function n4(e){if(e===document.scrollingElement){const{innerWidth:o,innerHeight:s}=window;return{top:0,left:0,right:o,bottom:s,width:o,height:s}}const{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function dk(e){return e.reduce((t,n)=>is(t,Bp(n)),zn)}function r4(e){return e.reduce((t,n)=>t+lk(n),0)}function i4(e){return e.reduce((t,n)=>t+uk(n),0)}function o4(e,t){if(t===void 0&&(t=Us),!e)return;const{top:n,left:r,bottom:i,right:o}=t(e);ak(e)&&(i<=0||o<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const s4=[["x",["left","right"],r4],["y",["top","bottom"],i4]];class Uy{constructor(t,n){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 r=Af(n),i=dk(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[o,s,a]of s4)for(const l of s)Object.defineProperty(this,l,{get:()=>{const u=a(r),c=i[o]-u;return this.rect[l]+c},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class La{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var i;(i=this.target)==null||i.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function a4(e){const{EventTarget:t}=Yt(e);return e instanceof t?e:Bs(e)}function Wd(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var mn;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(mn||(mn={}));function Kw(e){e.preventDefault()}function l4(e){e.stopPropagation()}var me;(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"})(me||(me={}));const hk={start:[me.Space,me.Enter],cancel:[me.Esc],end:[me.Space,me.Enter,me.Tab]},u4=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case me.Right:return{...n,x:n.x+25};case me.Left:return{...n,x:n.x-25};case me.Down:return{...n,y:n.y+25};case me.Up:return{...n,y:n.y-25}}};class pk{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:n}}=t;this.props=t,this.listeners=new La(Bs(n)),this.windowListeners=new La(Yt(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(mn.Resize,this.handleCancel),this.windowListeners.add(mn.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(mn.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&o4(r),n(zn)}handleKeyDown(t){if(By(t)){const{active:n,context:r,options:i}=this.props,{keyboardCodes:o=hk,coordinateGetter:s=u4,scrollBehavior:a="smooth"}=i,{code:l}=t;if(o.end.includes(l)){this.handleEnd(t);return}if(o.cancel.includes(l)){this.handleCancel(t);return}const{collisionRect:u}=r.current,c=u?{x:u.left,y:u.top}:zn;this.referenceCoordinates||(this.referenceCoordinates=c);const f=s(t,{active:n,context:r.current,currentCoordinates:c});if(f){const d=al(f,c),h={x:0,y:0},{scrollableAncestors:p}=r.current;for(const m of p){const v=t.code,{isTop:y,isRight:g,isLeft:w,isBottom:x,maxScroll:E,minScroll:T}=fk(m),S=n4(m),b={x:Math.min(v===me.Right?S.right-S.width/2:S.right,Math.max(v===me.Right?S.left:S.left+S.width/2,f.x)),y:Math.min(v===me.Down?S.bottom-S.height/2:S.bottom,Math.max(v===me.Down?S.top:S.top+S.height/2,f.y))},A=v===me.Right&&!g||v===me.Left&&!w,M=v===me.Down&&!x||v===me.Up&&!y;if(A&&b.x!==f.x){const I=m.scrollLeft+d.x,z=v===me.Right&&I<=E.x||v===me.Left&&I>=T.x;if(z&&!d.y){m.scrollTo({left:I,behavior:a});return}z?h.x=m.scrollLeft-I:h.x=v===me.Right?m.scrollLeft-E.x:m.scrollLeft-T.x,h.x&&m.scrollBy({left:-h.x,behavior:a});break}else if(M&&b.y!==f.y){const I=m.scrollTop+d.y,z=v===me.Down&&I<=E.y||v===me.Up&&I>=T.y;if(z&&!d.x){m.scrollTo({top:I,behavior:a});return}z?h.y=m.scrollTop-I:h.y=v===me.Down?m.scrollTop-E.y:m.scrollTop-T.y,h.y&&m.scrollBy({top:-h.y,behavior:a});break}}this.handleMove(t,is(al(f,this.referenceCoordinates),h))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}pk.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=hk,onActivation:i}=t,{active:o}=n;const{code:s}=e.nativeEvent;if(r.start.includes(s)){const a=o.activatorNode.current;return a&&e.target!==a?!1:(e.preventDefault(),i==null||i({event:e.nativeEvent}),!0)}return!1}}];function qw(e){return!!(e&&"distance"in e)}function Gw(e){return!!(e&&"delay"in e)}class $y{constructor(t,n,r){var i;r===void 0&&(r=a4(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=n;const{event:o}=t,{target:s}=o;this.props=t,this.events=n,this.document=Bs(s),this.documentListeners=new La(this.document),this.listeners=new La(r),this.windowListeners=new La(Yt(s)),this.initialCoordinates=(i=zp(o))!=null?i:zn,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:n,bypassActivationConstraint:r}}}=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(mn.Resize,this.handleCancel),this.windowListeners.add(mn.DragStart,Kw),this.windowListeners.add(mn.VisibilityChange,this.handleCancel),this.windowListeners.add(mn.ContextMenu,Kw),this.documentListeners.add(mn.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Gw(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(qw(n)){this.handlePending(n);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,n){const{active:r,onPending:i}=this.props;i(r,t,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(mn.Click,l4,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(mn.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:i,props:o}=this,{onMove:s,options:{activationConstraint:a}}=o;if(!i)return;const l=(n=zp(t))!=null?n:zn,u=al(i,l);if(!r&&a){if(qw(a)){if(a.tolerance!=null&&Wd(u,a.tolerance))return this.handleCancel();if(Wd(u,a.distance))return this.handleStart()}if(Gw(a)&&Wd(u,a.tolerance))return this.handleCancel();this.handlePending(a,u);return}t.cancelable&&t.preventDefault(),s(l)}handleEnd(){const{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){const{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===me.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const c4={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class mk extends $y{constructor(t){const{event:n}=t,r=Bs(n.target);super(t,c4,r)}}mk.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r==null||r({event:n}),!0)}}];const f4={move:{name:"mousemove"},end:{name:"mouseup"}};var Up;(function(e){e[e.RightClick=2]="RightClick"})(Up||(Up={}));class d4 extends $y{constructor(t){super(t,f4,Bs(t.event.target))}}d4.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===Up.RightClick?!1:(r==null||r({event:n}),!0)}}];const Hd={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class h4 extends $y{constructor(t){super(t,Hd)}static setup(){return window.addEventListener(Hd.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(Hd.move.name,t)};function t(){}}}h4.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:i}=n;return i.length>1?!1:(r==null||r({event:n}),!0)}}];var _a;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(_a||(_a={}));var Kc;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Kc||(Kc={}));function p4(e){let{acceleration:t,activator:n=_a.Pointer,canScroll:r,draggingRect:i,enabled:o,interval:s=5,order:a=Kc.TreeOrder,pointerCoordinates:l,scrollableAncestors:u,scrollableAncestorRects:c,delta:f,threshold:d}=e;const h=y4({delta:f,disabled:!o}),[p,m]=PN(),v=C.useRef({x:0,y:0}),y=C.useRef({x:0,y:0}),g=C.useMemo(()=>{switch(n){case _a.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case _a.DraggableRect:return i}},[n,i,l]),w=C.useRef(null),x=C.useCallback(()=>{const T=w.current;if(!T)return;const S=v.current.x*y.current.x,b=v.current.y*y.current.y;T.scrollBy(S,b)},[]),E=C.useMemo(()=>a===Kc.TreeOrder?[...u].reverse():u,[a,u]);C.useEffect(()=>{if(!o||!u.length||!g){m();return}for(const T of E){if((r==null?void 0:r(T))===!1)continue;const S=u.indexOf(T),b=c[S];if(!b)continue;const{direction:A,speed:M}=t4(T,b,g,t,d);for(const I of["x","y"])h[I][A[I]]||(M[I]=0,A[I]=0);if(M.x>0||M.y>0){m(),w.current=T,p(x,s),v.current=M,y.current=A;return}}v.current={x:0,y:0},y.current={x:0,y:0},m()},[t,x,r,m,o,s,JSON.stringify(g),JSON.stringify(h),p,u,E,c,JSON.stringify(d)])}const m4={x:{[lt.Backward]:!1,[lt.Forward]:!1},y:{[lt.Backward]:!1,[lt.Forward]:!1}};function y4(e){let{delta:t,disabled:n}=e;const r=Vp(t);return Dl(i=>{if(n||!r||!i)return m4;const o={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[lt.Backward]:i.x[lt.Backward]||o.x===-1,[lt.Forward]:i.x[lt.Forward]||o.x===1},y:{[lt.Backward]:i.y[lt.Backward]||o.y===-1,[lt.Forward]:i.y[lt.Forward]||o.y===1}}},[n,t,r])}function g4(e,t){const n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return Dl(i=>{var o;return t==null?null:(o=r??i)!=null?o:null},[r,t])}function v4(e,t){return C.useMemo(()=>e.reduce((n,r)=>{const{sensor:i}=r,o=i.activators.map(s=>({eventName:s.eventName,handler:t(s.handler,r)}));return[...n,...o]},[]),[e,t])}var ll;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(ll||(ll={}));var $p;(function(e){e.Optimized="optimized"})($p||($p={}));const Qw=new Map;function w4(e,t){let{dragging:n,dependencies:r,config:i}=t;const[o,s]=C.useState(null),{frequency:a,measure:l,strategy:u}=i,c=C.useRef(e),f=v(),d=sl(f),h=C.useCallback(function(y){y===void 0&&(y=[]),!d.current&&s(g=>g===null?y:g.concat(y.filter(w=>!g.includes(w))))},[d]),p=C.useRef(null),m=Dl(y=>{if(f&&!n)return Qw;if(!y||y===Qw||c.current!==e||o!=null){const g=new Map;for(let w of e){if(!w)continue;if(o&&o.length>0&&!o.includes(w.id)&&w.rect.current){g.set(w.id,w.rect.current);continue}const x=w.node.current,E=x?new Uy(l(x),x):null;w.rect.current=E,E&&g.set(w.id,E)}return g}return y},[e,o,n,f,l]);return C.useEffect(()=>{c.current=e},[e]),C.useEffect(()=>{f||h()},[n,f]),C.useEffect(()=>{o&&o.length>0&&s(null)},[JSON.stringify(o)]),C.useEffect(()=>{f||typeof a!="number"||p.current!==null||(p.current=setTimeout(()=>{h(),p.current=null},a))},[a,f,h,...r]),{droppableRects:m,measureDroppableContainers:h,measuringScheduled:o!=null};function v(){switch(u){case ll.Always:return!1;case ll.BeforeDragging:return n;default:return!n}}}function yk(e,t){return Dl(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function x4(e,t){return yk(e,t)}function S4(e){let{callback:t,disabled:n}=e;const r=zy(t),i=C.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:o}=window;return new o(r)},[r,n]);return C.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function Df(e){let{callback:t,disabled:n}=e;const r=zy(t),i=C.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:o}=window;return new o(r)},[n]);return C.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function b4(e){return new Uy(Us(e),e)}function Xw(e,t,n){t===void 0&&(t=b4);const[r,i]=C.useState(null);function o(){i(l=>{if(!e)return null;if(e.isConnected===!1){var u;return(u=l??n)!=null?u:null}const c=t(e);return JSON.stringify(l)===JSON.stringify(c)?l:c})}const s=S4({callback(l){if(e)for(const u of l){const{type:c,target:f}=u;if(c==="childList"&&f instanceof HTMLElement&&f.contains(e)){o();break}}}}),a=Df({callback:o});return lr(()=>{o(),e?(a==null||a.observe(e),s==null||s.observe(document.body,{childList:!0,subtree:!0})):(a==null||a.disconnect(),s==null||s.disconnect())},[e]),r}function C4(e){const t=yk(e);return sk(e,t)}const Yw=[];function E4(e){const t=C.useRef(e),n=Dl(r=>e?r&&r!==Yw&&e&&t.current&&e.parentNode===t.current.parentNode?r:Af(e):Yw,[e]);return C.useEffect(()=>{t.current=e},[e]),n}function k4(e){const[t,n]=C.useState(null),r=C.useRef(e),i=C.useCallback(o=>{const s=$d(o.target);s&&n(a=>a?(a.set(s,Bp(s)),new Map(a)):null)},[]);return C.useEffect(()=>{const o=r.current;if(e!==o){s(o);const a=e.map(l=>{const u=$d(l);return u?(u.addEventListener("scroll",i,{passive:!0}),[u,Bp(u)]):null}).filter(l=>l!=null);n(a.length?new Map(a):null),r.current=e}return()=>{s(e),s(o)};function s(a){a.forEach(l=>{const u=$d(l);u==null||u.removeEventListener("scroll",i)})}},[i,e]),C.useMemo(()=>e.length?t?Array.from(t.values()).reduce((o,s)=>is(o,s),zn):dk(e):zn,[e,t])}function Zw(e,t){t===void 0&&(t=[]);const n=C.useRef(null);return C.useEffect(()=>{n.current=null},t),C.useEffect(()=>{const r=e!==zn;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?al(e,n.current):zn}function R4(e){C.useEffect(()=>{if(!Mf)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n==null||n()}},e.map(t=>{let{sensor:n}=t;return n}))}function T4(e,t){return C.useMemo(()=>e.reduce((n,r)=>{let{eventName:i,handler:o}=r;return n[i]=s=>{o(s,t)},n},{}),[e,t])}function gk(e){return C.useMemo(()=>e?YN(e):null,[e])}const Jw=[];function P4(e,t){t===void 0&&(t=Us);const[n]=e,r=gk(n?Yt(n):null),[i,o]=C.useState(Jw);function s(){o(()=>e.length?e.map(l=>ck(l)?r:new Uy(t(l),l)):Jw)}const a=Df({callback:s});return lr(()=>{a==null||a.disconnect(),s(),e.forEach(l=>a==null?void 0:a.observe(l))},[e]),i}function M4(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Al(t)?t:e}function A4(e){let{measure:t}=e;const[n,r]=C.useState(null),i=C.useCallback(u=>{for(const{target:c}of u)if(Al(c)){r(f=>{const d=t(c);return f?{...f,width:d.width,height:d.height}:d});break}},[t]),o=Df({callback:i}),s=C.useCallback(u=>{const c=M4(u);o==null||o.disconnect(),c&&(o==null||o.observe(c)),r(c?t(c):null)},[t,o]),[a,l]=$c(s);return C.useMemo(()=>({nodeRef:a,rect:n,setRef:l}),[n,a,l])}const D4=[{sensor:mk,options:{}},{sensor:pk,options:{}}],O4={current:{}},Yu={draggable:{measure:Hw},droppable:{measure:Hw,strategy:ll.WhileDragging,frequency:$p.Optimized},dragOverlay:{measure:Us}};class Ia extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const L4={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Ia,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Hc},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Yu,measureDroppableContainers:Hc,windowRect:null,measuringScheduled:!1},_4={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Hc,draggableNodes:new Map,over:null,measureDroppableContainers:Hc},Of=C.createContext(_4),vk=C.createContext(L4);function I4(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Ia}}}function N4(e,t){switch(t.type){case rt.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case rt.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 rt.DragEnd:case rt.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case rt.RegisterDroppable:{const{element:n}=t,{id:r}=n,i=new Ia(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case rt.SetDroppableDisabled:{const{id:n,key:r,disabled:i}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const s=new Ia(e.droppable.containers);return s.set(n,{...o,disabled:i}),{...e,droppable:{...e.droppable,containers:s}}}case rt.UnregisterDroppable:{const{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const o=new Ia(e.droppable.containers);return o.delete(n),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function F4(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:i}=C.useContext(Of),o=Vp(r),s=Vp(n==null?void 0:n.id);return C.useEffect(()=>{if(!t&&!r&&o&&s!=null){if(!By(o)||document.activeElement===o.target)return;const a=i.get(s);if(!a)return;const{activatorNode:l,node:u}=a;if(!l.current&&!u.current)return;requestAnimationFrame(()=>{for(const c of[l.current,u.current]){if(!c)continue;const f=DN(c);if(f){f.focus();break}}})}},[r,t,i,s,o]),null}function j4(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((i,o)=>o({transform:i,...r}),n):n}function V4(e){return C.useMemo(()=>({draggable:{...Yu.draggable,...e==null?void 0:e.draggable},droppable:{...Yu.droppable,...e==null?void 0:e.droppable},dragOverlay:{...Yu.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 z4(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e;const o=C.useRef(!1),{x:s,y:a}=typeof i=="boolean"?{x:i,y:i}:i;lr(()=>{if(!s&&!a||!t){o.current=!1;return}if(o.current||!r)return;const u=t==null?void 0:t.node.current;if(!u||u.isConnected===!1)return;const c=n(u),f=sk(c,r);if(s||(f.x=0),a||(f.y=0),o.current=!0,Math.abs(f.x)>0||Math.abs(f.y)>0){const d=ak(u);d&&d.scrollBy({top:f.y,left:f.x})}},[t,s,a,r,n])}const wk=C.createContext({...zn,scaleX:1,scaleY:1});var qr;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(qr||(qr={}));const m5=C.memo(function(t){var n,r,i,o;let{id:s,accessibility:a,autoScroll:l=!0,children:u,sensors:c=D4,collisionDetection:f=WN,measuring:d,modifiers:h,...p}=t;const m=C.useReducer(N4,void 0,I4),[v,y]=m,[g,w]=FN(),[x,E]=C.useState(qr.Uninitialized),T=x===qr.Initialized,{draggable:{active:S,nodes:b,translate:A},droppable:{containers:M}}=v,I=S!=null?b.get(S):null,z=C.useRef({initial:null,translated:null}),W=C.useMemo(()=>{var qe;return S!=null?{id:S,data:(qe=I==null?void 0:I.data)!=null?qe:O4,rect:z}:null},[S,I]),$=C.useRef(null),[oe,U]=C.useState(null),[se,O]=C.useState(null),j=sl(p,Object.values(p)),_=Ol("DndDescribedBy",s),re=C.useMemo(()=>M.getEnabled(),[M]),ne=V4(d),{droppableRects:Te,measureDroppableContainers:be,measuringScheduled:ce}=w4(re,{dragging:T,dependencies:[A.x,A.y],config:ne.droppable}),le=g4(b,S),ze=C.useMemo(()=>se?zp(se):null,[se]),wt=Ks(),Ce=x4(le,ne.draggable.measure);z4({activeNode:S!=null?b.get(S):null,config:wt.layoutShiftCompensation,initialRect:Ce,measure:ne.draggable.measure});const ge=Xw(le,ne.draggable.measure,Ce),cn=Xw(le?le.parentElement:null),xe=C.useRef({activatorEvent:null,active:null,activeNode:le,collisionRect:null,collisions:null,droppableRects:Te,draggableNodes:b,draggingNode:null,draggingNodeRect:null,droppableContainers:M,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),ct=M.getNodeFor((n=xe.current.over)==null?void 0:n.id),ft=A4({measure:ne.dragOverlay.measure}),Fr=(r=ft.nodeRef.current)!=null?r:le,zt=T?(i=ft.rect)!=null?i:ge:null,Ll=!!(ft.nodeRef.current&&ft.rect),_l=C4(Ll?null:ge),xo=gk(Fr?Yt(Fr):null),Un=E4(T?ct??le:null),So=P4(Un),bo=j4(h,{transform:{x:A.x-_l.x,y:A.y-_l.y,scaleX:1,scaleY:1},activatorEvent:se,active:W,activeNodeRect:ge,containerNodeRect:cn,draggingNodeRect:zt,over:xe.current.over,overlayNodeRect:ft.rect,scrollableAncestors:Un,scrollableAncestorRects:So,windowRect:xo}),Il=ze?is(ze,A):null,$n=k4(Un),Mi=Zw($n),Nl=Zw($n,[ge]),Wn=is(bo,Mi),Tt=zt?qN(zt,bo):null,Pt=W&&Tt?f({active:W,collisionRect:Tt,droppableRects:Te,droppableContainers:re,pointerCoordinates:Il}):null,$s=ok(Pt,"id"),[Zt,Fl]=C.useState(null),Hn=Ll?bo:is(bo,Nl),jl=HN(Hn,(o=Zt==null?void 0:Zt.rect)!=null?o:null,ge),Co=C.useRef(null),Ws=C.useCallback((qe,Mt)=>{let{sensor:xt,options:Kn}=Mt;if($.current==null)return;const At=b.get($.current);if(!At)return;const ot=qe.nativeEvent,Dt=new xt({active:$.current,activeNode:At,event:ot,options:Kn,context:xe,onAbort(Ze){if(!b.get(Ze))return;const{onDragAbort:P}=j.current,D={id:Ze};P==null||P(D),g({type:"onDragAbort",event:D})},onPending(Ze,R,P,D){if(!b.get(Ze))return;const{onDragPending:V}=j.current,Y={id:Ze,constraint:R,initialCoordinates:P,offset:D};V==null||V(Y),g({type:"onDragPending",event:Y})},onStart(Ze){const R=$.current;if(R==null)return;const P=b.get(R);if(!P)return;const{onDragStart:D}=j.current,N={activatorEvent:ot,active:{id:R,data:P.data,rect:z}};kr.unstable_batchedUpdates(()=>{D==null||D(N),E(qr.Initializing),y({type:rt.DragStart,initialCoordinates:Ze,active:R}),g({type:"onDragStart",event:N}),U(Co.current),O(ot)})},onMove(Ze){y({type:rt.DragMove,coordinates:Ze})},onEnd:jr(rt.DragEnd),onCancel:jr(rt.DragCancel)});Co.current=Dt;function jr(Ze){return async function(){const{active:P,collisions:D,over:N,scrollAdjustedTranslate:V}=xe.current;let Y=null;if(P&&V){const{cancelDrop:ie}=j.current;Y={activatorEvent:ot,active:P,collisions:D,delta:V,over:N},Ze===rt.DragEnd&&typeof ie=="function"&&await Promise.resolve(ie(Y))&&(Ze=rt.DragCancel)}$.current=null,kr.unstable_batchedUpdates(()=>{y({type:Ze}),E(qr.Uninitialized),Fl(null),U(null),O(null),Co.current=null;const ie=Ze===rt.DragEnd?"onDragEnd":"onDragCancel";if(Y){const H=j.current[ie];H==null||H(Y),g({type:ie,event:Y})}})}}},[b]),Lf=C.useCallback((qe,Mt)=>(xt,Kn)=>{const At=xt.nativeEvent,ot=b.get(Kn);if($.current!==null||!ot||At.dndKit||At.defaultPrevented)return;const Dt={active:ot};qe(xt,Mt.options,Dt)===!0&&(At.dndKit={capturedBy:Mt.sensor},$.current=Kn,Ws(xt,Mt))},[b,Ws]),Hs=v4(c,Lf);R4(c),lr(()=>{ge&&x===qr.Initializing&&E(qr.Initialized)},[ge,x]),C.useEffect(()=>{const{onDragMove:qe}=j.current,{active:Mt,activatorEvent:xt,collisions:Kn,over:At}=xe.current;if(!Mt||!xt)return;const ot={active:Mt,activatorEvent:xt,collisions:Kn,delta:{x:Wn.x,y:Wn.y},over:At};kr.unstable_batchedUpdates(()=>{qe==null||qe(ot),g({type:"onDragMove",event:ot})})},[Wn.x,Wn.y]),C.useEffect(()=>{const{active:qe,activatorEvent:Mt,collisions:xt,droppableContainers:Kn,scrollAdjustedTranslate:At}=xe.current;if(!qe||$.current==null||!Mt||!At)return;const{onDragOver:ot}=j.current,Dt=Kn.get($s),jr=Dt&&Dt.rect.current?{id:Dt.id,rect:Dt.rect.current,data:Dt.data,disabled:Dt.disabled}:null,Ze={active:qe,activatorEvent:Mt,collisions:xt,delta:{x:At.x,y:At.y},over:jr};kr.unstable_batchedUpdates(()=>{Fl(jr),ot==null||ot(Ze),g({type:"onDragOver",event:Ze})})},[$s]),lr(()=>{xe.current={activatorEvent:se,active:W,activeNode:le,collisionRect:Tt,collisions:Pt,droppableRects:Te,draggableNodes:b,draggingNode:Fr,draggingNodeRect:zt,droppableContainers:M,over:Zt,scrollableAncestors:Un,scrollAdjustedTranslate:Wn},z.current={initial:zt,translated:Tt}},[W,le,Pt,Tt,b,Fr,zt,Te,M,Zt,Un,Wn]),p4({...wt,delta:A,draggingRect:Tt,pointerCoordinates:Il,scrollableAncestors:Un,scrollableAncestorRects:So});const Eo=C.useMemo(()=>({active:W,activeNode:le,activeNodeRect:ge,activatorEvent:se,collisions:Pt,containerNodeRect:cn,dragOverlay:ft,draggableNodes:b,droppableContainers:M,droppableRects:Te,over:Zt,measureDroppableContainers:be,scrollableAncestors:Un,scrollableAncestorRects:So,measuringConfiguration:ne,measuringScheduled:ce,windowRect:xo}),[W,le,ge,se,Pt,cn,ft,b,M,Te,Zt,be,Un,So,ne,ce,xo]),Vl=C.useMemo(()=>({activatorEvent:se,activators:Hs,active:W,activeNodeRect:ge,ariaDescribedById:{draggable:_},dispatch:y,draggableNodes:b,over:Zt,measureDroppableContainers:be}),[se,Hs,W,ge,y,_,b,Zt,be]);return _t.createElement(nk.Provider,{value:w},_t.createElement(Of.Provider,{value:Vl},_t.createElement(vk.Provider,{value:Eo},_t.createElement(wk.Provider,{value:jl},u)),_t.createElement(F4,{disabled:(a==null?void 0:a.restoreFocus)===!1})),_t.createElement(zN,{...a,hiddenTextDescribedById:_}));function Ks(){const qe=(oe==null?void 0:oe.autoScrollEnabled)===!1,Mt=typeof l=="object"?l.enabled===!1:l===!1,xt=T&&!qe&&!Mt;return typeof l=="object"?{...l,enabled:xt}:{enabled:xt}}}),B4=C.createContext(null),e1="button",U4="Draggable";function $4(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e;const o=Ol(U4),{activators:s,activatorEvent:a,active:l,activeNodeRect:u,ariaDescribedById:c,draggableNodes:f,over:d}=C.useContext(Of),{role:h=e1,roleDescription:p="draggable",tabIndex:m=0}=i??{},v=(l==null?void 0:l.id)===t,y=C.useContext(v?wk:B4),[g,w]=$c(),[x,E]=$c(),T=T4(s,t),S=sl(n);lr(()=>(f.set(t,{id:t,key:o,node:g,activatorNode:x,data:S}),()=>{const A=f.get(t);A&&A.key===o&&f.delete(t)}),[f,t]);const b=C.useMemo(()=>({role:h,tabIndex:m,"aria-disabled":r,"aria-pressed":v&&h===e1?!0:void 0,"aria-roledescription":p,"aria-describedby":c.draggable}),[r,h,m,v,p,c.draggable]);return{active:l,activatorEvent:a,activeNodeRect:u,attributes:b,isDragging:v,listeners:r?void 0:T,node:g,over:d,setNodeRef:w,setActivatorNodeRef:E,transform:y}}function W4(){return C.useContext(vk)}const H4="Droppable",K4={timeout:25};function q4(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e;const o=Ol(H4),{active:s,dispatch:a,over:l,measureDroppableContainers:u}=C.useContext(Of),c=C.useRef({disabled:n}),f=C.useRef(!1),d=C.useRef(null),h=C.useRef(null),{disabled:p,updateMeasurementsFor:m,timeout:v}={...K4,...i},y=sl(m??r),g=C.useCallback(()=>{if(!f.current){f.current=!0;return}h.current!=null&&clearTimeout(h.current),h.current=setTimeout(()=>{u(Array.isArray(y.current)?y.current:[y.current]),h.current=null},v)},[v]),w=Df({callback:g,disabled:p||!s}),x=C.useCallback((b,A)=>{w&&(A&&(w.unobserve(A),f.current=!1),b&&w.observe(b))},[w]),[E,T]=$c(x),S=sl(t);return C.useEffect(()=>{!w||!E.current||(w.disconnect(),f.current=!1,w.observe(E.current))},[E,w]),C.useEffect(()=>(a({type:rt.RegisterDroppable,element:{id:r,key:o,disabled:n,node:E,rect:d,data:S}}),()=>a({type:rt.UnregisterDroppable,key:o,id:r})),[r]),C.useEffect(()=>{n!==c.current.disabled&&(a({type:rt.SetDroppableDisabled,id:r,key:o,disabled:n}),c.current.disabled=n)},[r,o,n,a]),{active:s,rect:d,isOver:(l==null?void 0:l.id)===r,node:E,over:l,setNodeRef:T}}function xk(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function G4(e,t){return e.reduce((n,r,i)=>{const o=t.get(r);return o&&(n[i]=o),n},Array(e.length))}function Su(e){return e!==null&&e>=0}function Q4(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function X4(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const Sk=e=>{let{rects:t,activeIndex:n,overIndex:r,index:i}=e;const o=xk(t,r,n),s=t[i],a=o[i];return!a||!s?null:{x:a.left-s.left,y:a.top-s.top,scaleX:a.width/s.width,scaleY:a.height/s.height}},bu={scaleX:1,scaleY:1},y5=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:i,rects:o,overIndex:s}=e;const a=(t=o[n])!=null?t:r;if(!a)return null;if(i===n){const u=o[s];return u?{x:0,y:n<s?u.top+u.height-(a.top+a.height):u.top-a.top,...bu}:null}const l=Y4(o,i,n);return i>n&&i<=s?{x:0,y:-a.height-l,...bu}:i<n&&i>=s?{x:0,y:a.height+l,...bu}:{x:0,y:0,...bu}};function Y4(e,t,n){const r=e[t],i=e[t-1],o=e[t+1];return r?n<t?i?r.top-(i.top+i.height):o?o.top-(r.top+r.height):0:o?o.top-(r.top+r.height):i?r.top-(i.top+i.height):0:0}const bk="Sortable",Ck=_t.createContext({activeIndex:-1,containerId:bk,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Sk,disabled:{draggable:!1,droppable:!1}});function g5(e){let{children:t,id:n,items:r,strategy:i=Sk,disabled:o=!1}=e;const{active:s,dragOverlay:a,droppableRects:l,over:u,measureDroppableContainers:c}=W4(),f=Ol(bk,n),d=a.rect!==null,h=C.useMemo(()=>r.map(T=>typeof T=="object"&&"id"in T?T.id:T),[r]),p=s!=null,m=s?h.indexOf(s.id):-1,v=u?h.indexOf(u.id):-1,y=C.useRef(h),g=!Q4(h,y.current),w=v!==-1&&m===-1||g,x=X4(o);lr(()=>{g&&p&&c(h)},[g,h,p,c]),C.useEffect(()=>{y.current=h},[h]);const E=C.useMemo(()=>({activeIndex:m,containerId:f,disabled:x,disableTransforms:w,items:h,overIndex:v,useDragOverlay:d,sortedRects:G4(h,l),strategy:i}),[m,f,x.draggable,x.droppable,w,h,v,l,d,i]);return _t.createElement(Ck.Provider,{value:E},t)}const Z4=e=>{let{id:t,items:n,activeIndex:r,overIndex:i}=e;return xk(n,r,i).indexOf(t)},J4=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:i,items:o,newIndex:s,previousItems:a,previousContainerId:l,transition:u}=e;return!u||!r||a!==o&&i===s?!1:n?!0:s!==i&&t===l},eF={duration:200,easing:"ease"},Ek="transform",tF=Wc.Transition.toString({property:Ek,duration:0,easing:"linear"}),nF={roleDescription:"sortable"};function rF(e){let{disabled:t,index:n,node:r,rect:i}=e;const[o,s]=C.useState(null),a=C.useRef(n);return lr(()=>{if(!t&&n!==a.current&&r.current){const l=i.current;if(l){const u=Us(r.current,{ignoreTransform:!0}),c={x:l.left-u.left,y:l.top-u.top,scaleX:l.width/u.width,scaleY:l.height/u.height};(c.x||c.y)&&s(c)}}n!==a.current&&(a.current=n)},[t,n,r,i]),C.useEffect(()=>{o&&s(null)},[o]),o}function v5(e){let{animateLayoutChanges:t=J4,attributes:n,disabled:r,data:i,getNewIndex:o=Z4,id:s,strategy:a,resizeObserverConfig:l,transition:u=eF}=e;const{items:c,containerId:f,activeIndex:d,disabled:h,disableTransforms:p,sortedRects:m,overIndex:v,useDragOverlay:y,strategy:g}=C.useContext(Ck),w=iF(r,h),x=c.indexOf(s),E=C.useMemo(()=>({sortable:{containerId:f,index:x,items:c},...i}),[f,i,x,c]),T=C.useMemo(()=>c.slice(c.indexOf(s)),[c,s]),{rect:S,node:b,isOver:A,setNodeRef:M}=q4({id:s,data:E,disabled:w.droppable,resizeObserverConfig:{updateMeasurementsFor:T,...l}}),{active:I,activatorEvent:z,activeNodeRect:W,attributes:$,setNodeRef:oe,listeners:U,isDragging:se,over:O,setActivatorNodeRef:j,transform:_}=$4({id:s,data:E,attributes:{...nF,...n},disabled:w.draggable}),re=TN(M,oe),ne=!!I,Te=ne&&!p&&Su(d)&&Su(v),be=!y&&se,ce=be&&Te?_:null,ze=Te?ce??(a??g)({rects:m,activeNodeRect:W,activeIndex:d,overIndex:v,index:x}):null,wt=Su(d)&&Su(v)?o({id:s,items:c,activeIndex:d,overIndex:v}):x,Ce=I==null?void 0:I.id,ge=C.useRef({activeId:Ce,items:c,newIndex:wt,containerId:f}),cn=c!==ge.current.items,xe=t({active:I,containerId:f,isDragging:se,isSorting:ne,id:s,index:x,items:c,newIndex:ge.current.newIndex,previousItems:ge.current.items,previousContainerId:ge.current.containerId,transition:u,wasDragging:ge.current.activeId!=null}),ct=rF({disabled:!xe,index:x,node:b,rect:S});return C.useEffect(()=>{ne&&ge.current.newIndex!==wt&&(ge.current.newIndex=wt),f!==ge.current.containerId&&(ge.current.containerId=f),c!==ge.current.items&&(ge.current.items=c)},[ne,wt,f,c]),C.useEffect(()=>{if(Ce===ge.current.activeId)return;if(Ce!=null&&ge.current.activeId==null){ge.current.activeId=Ce;return}const Fr=setTimeout(()=>{ge.current.activeId=Ce},50);return()=>clearTimeout(Fr)},[Ce]),{active:I,activeIndex:d,attributes:$,data:E,rect:S,index:x,newIndex:wt,items:c,isOver:A,isSorting:ne,isDragging:se,listeners:U,node:b,overIndex:v,over:O,setNodeRef:re,setActivatorNodeRef:j,setDroppableNodeRef:M,setDraggableNodeRef:oe,transform:ct??ze,transition:ft()};function ft(){if(ct||cn&&ge.current.newIndex===x)return tF;if(!(be&&!By(z)||!u)&&(ne||xe))return Wc.Transition.toString({...u,property:Ek})}}function iF(e,t){var n,r;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e==null?void 0:e.draggable)!=null?n:t.draggable,droppable:(r=e==null?void 0:e.droppable)!=null?r:t.droppable}}function qc(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&typeof t.sortable=="object"&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const oF=[me.Down,me.Right,me.Up,me.Left],w5=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:i,droppableContainers:o,over:s,scrollableAncestors:a}}=t;if(oF.includes(e.code)){if(e.preventDefault(),!n||!r)return;const l=[];o.getEnabled().forEach(f=>{if(!f||f!=null&&f.disabled)return;const d=i.get(f.id);if(d)switch(e.code){case me.Down:r.top<d.top&&l.push(f);break;case me.Up:r.top>d.top&&l.push(f);break;case me.Left:r.left>d.left&&l.push(f);break;case me.Right:r.left<d.left&&l.push(f);break}});const u=UN({collisionRect:r,droppableRects:i,droppableContainers:l});let c=ok(u,"id");if(c===(s==null?void 0:s.id)&&u.length>1&&(c=u[1].id),c!=null){const f=o.get(n.id),d=o.get(c),h=d?i.get(d.id):null,p=d==null?void 0:d.node.current;if(p&&h&&f&&d){const v=Af(p).some((T,S)=>a[S]!==T),y=kk(f,d),g=sF(f,d),w=v||!y?{x:0,y:0}:{x:g?r.width-h.width:0,y:g?r.height-h.height:0},x={x:h.left,y:h.top};return w.x&&w.y?x:al(x,w)}}}};function kk(e,t){return!qc(e)||!qc(t)?!1:e.data.current.sortable.containerId===t.data.current.sortable.containerId}function sF(e,t){return!qc(e)||!qc(t)||!kk(e,t)?!1:e.data.current.sortable.index<t.data.current.sortable.index}export{aj as $,tt as A,r5 as B,n5 as C,Qj as D,np as E,Jj as F,J2 as G,EO as H,oa as I,i5 as J,u5 as K,f5 as L,Ej as M,c5 as N,kj as O,Ye as P,Cj as Q,lF as R,zj as S,HF as T,vF as U,_F as V,BF as W,ij as X,dF as Y,VF as Z,l5 as _,hn as a,tj as a$,$F as a0,TF as a1,Gj as a2,EF as a3,SF as a4,RF as a5,hj as a6,XF as a7,QF as a8,gj as a9,ZM as aA,s5 as aB,a5 as aC,cF as aD,nj as aE,kF as aF,wj as aG,MF as aH,DF as aI,CF as aJ,lj as aK,h5 as aL,d5 as aM,w5 as aN,pk as aO,mk as aP,m5 as aQ,p5 as aR,g5 as aS,y5 as aT,v5 as aU,FF as aV,Wc as aW,OF as aX,LF as aY,mF as aZ,xk as a_,IF as aa,fj as ab,xj as ac,dj as ad,AF as ae,wF as af,hF as ag,GF as ah,zF as ai,oj as aj,JF as ak,Sj as al,YF as am,Qy as an,NF as ao,mj as ap,yF as aq,xF as ar,vj as as,ZF as at,qF as au,jF as av,rj as aw,bF as ax,PF as ay,qj as az,yf as b,ej as b0,yj as b1,pj as b2,cj as b3,UF as b4,WF as b5,gF as b6,pF as b7,fF as b8,sj as b9,uj as ba,KF as bb,De as c,Pa as d,bM as e,Rc as f,SM as g,El as h,Es as i,Rr as j,Kj as k,Hj as l,Lo as m,mt as n,uF as o,vo as p,Ov as q,C as r,bj as s,kr as t,_t as u,Xj as v,Yj as w,Zj as x,e5 as y,t5 as z};
|