@swarmroom/server 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/app.js +2 -0
- package/dist/index.js +2 -0
- package/dist/public/assets/_agentId-Det2HUaT.js +36 -0
- package/dist/public/assets/{activity-B3TqhZ-f.js → activity-C5c3pd0l.js} +1 -1
- package/dist/public/assets/{arrow-left-u9wxRsmJ.js → arrow-left-Bho8c3gL.js} +1 -1
- package/dist/public/assets/avatar-D6PiXqfu.js +1 -0
- package/dist/public/assets/{card-B896vjxa.js → card-BWnhVACg.js} +1 -1
- package/dist/public/assets/{chevron-down-CwGQLAwz.js → chevron-down-io8WQqgh.js} +1 -1
- package/dist/public/assets/{error-boundary-GFV_5F1L.js → error-boundary-ONLtI3m8.js} +1 -1
- package/dist/public/assets/{external-link-skx4o5wJ.js → external-link-D6ZNJ2De.js} +1 -1
- package/dist/public/assets/{index-CZLH7_Xl.js → index-B3vl6HkB.js} +1 -1
- package/dist/public/assets/{index-D0-THR73.js → index-CRKuXBmU.js} +1 -1
- package/dist/public/assets/index-Coo_PliT.js +213 -0
- package/dist/public/assets/{index-MKgtdaN5.js → index-CrAz8zKh.js} +1 -1
- package/dist/public/assets/{index-Drki27xM.js → index-DSLPkkn7.js} +1 -1
- package/dist/public/assets/{index-DC3HeWGk.js → index-DTF52X7L.js} +1 -1
- package/dist/public/assets/{index-D8d9U5S5.js → index-DrvfFRRH.js} +1 -1
- package/dist/public/assets/{input-BROwVVEx.js → input-CpGy8OTc.js} +1 -1
- package/dist/public/assets/{loader-circle-atY3HcdA.js → loader-circle-BBfeX6jI.js} +1 -1
- package/dist/public/assets/{plus-Bq20n-_S.js → plus-c5hdQFYj.js} +1 -1
- package/dist/public/assets/{radio-D8C4proJ.js → radio-zlZI1pp6.js} +1 -1
- package/dist/public/assets/scroll-area-BD_ZWvua.js +1 -0
- package/dist/public/assets/{send-Dl7T7Bm1.js → send-D7L2DhCM.js} +1 -1
- package/dist/public/assets/{useMutation-BhJRnGsH.js → useMutation-C7s7l6mS.js} +1 -1
- package/dist/public/assets/{user-minus-SI0czWZH.js → user-minus-B2DcEtYp.js} +1 -1
- package/dist/public/assets/{utils-AH9TuImk.js → utils-Dt8_kYy9.js} +1 -1
- package/dist/public/assets/{wifi-BMnLTkMX.js → wifi-CkkG3jQZ.js} +1 -1
- package/dist/public/index.html +1 -1
- package/dist/routes/skills.d.ts +3 -0
- package/dist/routes/skills.js +19 -0
- package/dist/services/mdns-browser.js +110 -33
- package/dist/services/skill-service.d.ts +4 -0
- package/dist/services/skill-service.js +81 -0
- package/package.json +25 -14
- package/dist/public/assets/_agentId-B5f3yJc6.js +0 -36
- package/dist/public/assets/avatar-B_Cqbi60.js +0 -1
- package/dist/public/assets/index-DqvmWes8.js +0 -213
- package/dist/public/assets/scroll-area-C4F6zoWB.js +0 -1
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-CRKuXBmU.js","assets/card-BWnhVACg.js","assets/error-boundary-ONLtI3m8.js","assets/scroll-area-BD_ZWvua.js","assets/activity-C5c3pd0l.js","assets/send-D7L2DhCM.js","assets/plus-c5hdQFYj.js","assets/index-CrAz8zKh.js","assets/avatar-D6PiXqfu.js","assets/utils-Dt8_kYy9.js","assets/useMutation-C7s7l6mS.js","assets/input-CpGy8OTc.js","assets/loader-circle-BBfeX6jI.js","assets/user-minus-B2DcEtYp.js","assets/index-DSLPkkn7.js","assets/wifi-CkkG3jQZ.js","assets/radio-zlZI1pp6.js","assets/external-link-D6ZNJ2De.js","assets/index-DTF52X7L.js","assets/arrow-left-Bho8c3gL.js","assets/index-B3vl6HkB.js","assets/chevron-down-io8WQqgh.js","assets/index-DrvfFRRH.js","assets/_agentId-Det2HUaT.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var Ix=t=>{throw TypeError(t)};var Cm=(t,e,i)=>e.has(t)||Ix("Cannot "+i);var U=(t,e,i)=>(Cm(t,e,"read from private field"),i?i.call(t):e.get(t)),wt=(t,e,i)=>e.has(t)?Ix("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),ht=(t,e,i,s)=>(Cm(t,e,"write to private field"),s?s.call(t,i):e.set(t,i),i),jt=(t,e,i)=>(Cm(t,e,"access private method"),i);var ku=(t,e,i,s)=>({set _(o){ht(t,e,o,i)},get _(){return U(t,e,s)}});function S2(t,e){for(var i=0;i<e.length;i++){const s=e[i];if(typeof s!="string"&&!Array.isArray(s)){for(const o in s)if(o!=="default"&&!(o in t)){const c=Object.getOwnPropertyDescriptor(s,o);c&&Object.defineProperty(t,o,c.get?c:{enumerable:!0,get:()=>s[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const c of o)if(c.type==="childList")for(const u of c.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&s(u)}).observe(document,{childList:!0,subtree:!0});function i(o){const c={};return o.integrity&&(c.integrity=o.integrity),o.referrerPolicy&&(c.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?c.credentials="include":o.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function s(o){if(o.ep)return;o.ep=!0;const c=i(o);fetch(o.href,c)}})();function Mg(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Rm={exports:{}},Cl={};/**
|
|
3
|
+
* @license React
|
|
4
|
+
* react-jsx-runtime.production.js
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/var Hx;function w2(){if(Hx)return Cl;Hx=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function i(s,o,c){var u=null;if(c!==void 0&&(u=""+c),o.key!==void 0&&(u=""+o.key),"key"in o){c={};for(var f in o)f!=="key"&&(c[f]=o[f])}else c=o;return o=c.ref,{$$typeof:t,type:s,key:u,ref:o!==void 0?o:null,props:c}}return Cl.Fragment=e,Cl.jsx=i,Cl.jsxs=i,Cl}var Fx;function E2(){return Fx||(Fx=1,Rm.exports=w2()),Rm.exports}var R=E2(),Mm={exports:{}},Ct={};/**
|
|
11
|
+
* @license React
|
|
12
|
+
* react.production.js
|
|
13
|
+
*
|
|
14
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
15
|
+
*
|
|
16
|
+
* This source code is licensed under the MIT license found in the
|
|
17
|
+
* LICENSE file in the root directory of this source tree.
|
|
18
|
+
*/var Gx;function T2(){if(Gx)return Ct;Gx=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),v=Symbol.iterator;function b(O){return O===null||typeof O!="object"?null:(O=v&&O[v]||O["@@iterator"],typeof O=="function"?O:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,T={};function C(O,k,G){this.props=O,this.context=k,this.refs=T,this.updater=G||E}C.prototype.isReactComponent={},C.prototype.setState=function(O,k){if(typeof O!="object"&&typeof O!="function"&&O!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,O,k,"setState")},C.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function D(){}D.prototype=C.prototype;function _(O,k,G){this.props=O,this.context=k,this.refs=T,this.updater=G||E}var A=_.prototype=new D;A.constructor=_,w(A,C.prototype),A.isPureReactComponent=!0;var P=Array.isArray;function B(){}var z={H:null,A:null,T:null,S:null},L=Object.prototype.hasOwnProperty;function Y(O,k,G){var $=G.ref;return{$$typeof:t,type:O,key:k,ref:$!==void 0?$:null,props:G}}function I(O,k){return Y(O.type,k,O.props)}function W(O){return typeof O=="object"&&O!==null&&O.$$typeof===t}function at(O){var k={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(G){return k[G]})}var ut=/\/+/g;function ft(O,k){return typeof O=="object"&&O!==null&&O.key!=null?at(""+O.key):k.toString(36)}function ot(O){switch(O.status){case"fulfilled":return O.value;case"rejected":throw O.reason;default:switch(typeof O.status=="string"?O.then(B,B):(O.status="pending",O.then(function(k){O.status==="pending"&&(O.status="fulfilled",O.value=k)},function(k){O.status==="pending"&&(O.status="rejected",O.reason=k)})),O.status){case"fulfilled":return O.value;case"rejected":throw O.reason}}throw O}function N(O,k,G,$,J){var lt=typeof O;(lt==="undefined"||lt==="boolean")&&(O=null);var st=!1;if(O===null)st=!0;else switch(lt){case"bigint":case"string":case"number":st=!0;break;case"object":switch(O.$$typeof){case t:case e:st=!0;break;case y:return st=O._init,N(st(O._payload),k,G,$,J)}}if(st)return J=J(O),st=$===""?"."+ft(O,0):$,P(J)?(G="",st!=null&&(G=st.replace(ut,"$&/")+"/"),N(J,k,G,"",function(Ut){return Ut})):J!=null&&(W(J)&&(J=I(J,G+(J.key==null||O&&O.key===J.key?"":(""+J.key).replace(ut,"$&/")+"/")+st)),k.push(J)),1;st=0;var dt=$===""?".":$+":";if(P(O))for(var mt=0;mt<O.length;mt++)$=O[mt],lt=dt+ft($,mt),st+=N($,k,G,lt,J);else if(mt=b(O),typeof mt=="function")for(O=mt.call(O),mt=0;!($=O.next()).done;)$=$.value,lt=dt+ft($,mt++),st+=N($,k,G,lt,J);else if(lt==="object"){if(typeof O.then=="function")return N(ot(O),k,G,$,J);throw k=String(O),Error("Objects are not valid as a React child (found: "+(k==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":k)+"). If you meant to render a collection of children, use an array instead.")}return st}function q(O,k,G){if(O==null)return O;var $=[],J=0;return N(O,$,"","",function(lt){return k.call(G,lt,J++)}),$}function H(O){if(O._status===-1){var k=O._result;k=k(),k.then(function(G){(O._status===0||O._status===-1)&&(O._status=1,O._result=G)},function(G){(O._status===0||O._status===-1)&&(O._status=2,O._result=G)}),O._status===-1&&(O._status=0,O._result=k)}if(O._status===1)return O._result.default;throw O._result}var et=typeof reportError=="function"?reportError:function(O){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var k=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O),error:O});if(!window.dispatchEvent(k))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",O);return}console.error(O)},ct={map:q,forEach:function(O,k,G){q(O,function(){k.apply(this,arguments)},G)},count:function(O){var k=0;return q(O,function(){k++}),k},toArray:function(O){return q(O,function(k){return k})||[]},only:function(O){if(!W(O))throw Error("React.Children.only expected to receive a single React element child.");return O}};return Ct.Activity=p,Ct.Children=ct,Ct.Component=C,Ct.Fragment=i,Ct.Profiler=o,Ct.PureComponent=_,Ct.StrictMode=s,Ct.Suspense=m,Ct.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=z,Ct.__COMPILER_RUNTIME={__proto__:null,c:function(O){return z.H.useMemoCache(O)}},Ct.cache=function(O){return function(){return O.apply(null,arguments)}},Ct.cacheSignal=function(){return null},Ct.cloneElement=function(O,k,G){if(O==null)throw Error("The argument must be a React element, but you passed "+O+".");var $=w({},O.props),J=O.key;if(k!=null)for(lt in k.key!==void 0&&(J=""+k.key),k)!L.call(k,lt)||lt==="key"||lt==="__self"||lt==="__source"||lt==="ref"&&k.ref===void 0||($[lt]=k[lt]);var lt=arguments.length-2;if(lt===1)$.children=G;else if(1<lt){for(var st=Array(lt),dt=0;dt<lt;dt++)st[dt]=arguments[dt+2];$.children=st}return Y(O.type,J,$)},Ct.createContext=function(O){return O={$$typeof:u,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null},O.Provider=O,O.Consumer={$$typeof:c,_context:O},O},Ct.createElement=function(O,k,G){var $,J={},lt=null;if(k!=null)for($ in k.key!==void 0&&(lt=""+k.key),k)L.call(k,$)&&$!=="key"&&$!=="__self"&&$!=="__source"&&(J[$]=k[$]);var st=arguments.length-2;if(st===1)J.children=G;else if(1<st){for(var dt=Array(st),mt=0;mt<st;mt++)dt[mt]=arguments[mt+2];J.children=dt}if(O&&O.defaultProps)for($ in st=O.defaultProps,st)J[$]===void 0&&(J[$]=st[$]);return Y(O,lt,J)},Ct.createRef=function(){return{current:null}},Ct.forwardRef=function(O){return{$$typeof:f,render:O}},Ct.isValidElement=W,Ct.lazy=function(O){return{$$typeof:y,_payload:{_status:-1,_result:O},_init:H}},Ct.memo=function(O,k){return{$$typeof:h,type:O,compare:k===void 0?null:k}},Ct.startTransition=function(O){var k=z.T,G={};z.T=G;try{var $=O(),J=z.S;J!==null&&J(G,$),typeof $=="object"&&$!==null&&typeof $.then=="function"&&$.then(B,et)}catch(lt){et(lt)}finally{k!==null&&G.types!==null&&(k.types=G.types),z.T=k}},Ct.unstable_useCacheRefresh=function(){return z.H.useCacheRefresh()},Ct.use=function(O){return z.H.use(O)},Ct.useActionState=function(O,k,G){return z.H.useActionState(O,k,G)},Ct.useCallback=function(O,k){return z.H.useCallback(O,k)},Ct.useContext=function(O){return z.H.useContext(O)},Ct.useDebugValue=function(){},Ct.useDeferredValue=function(O,k){return z.H.useDeferredValue(O,k)},Ct.useEffect=function(O,k){return z.H.useEffect(O,k)},Ct.useEffectEvent=function(O){return z.H.useEffectEvent(O)},Ct.useId=function(){return z.H.useId()},Ct.useImperativeHandle=function(O,k,G){return z.H.useImperativeHandle(O,k,G)},Ct.useInsertionEffect=function(O,k){return z.H.useInsertionEffect(O,k)},Ct.useLayoutEffect=function(O,k){return z.H.useLayoutEffect(O,k)},Ct.useMemo=function(O,k){return z.H.useMemo(O,k)},Ct.useOptimistic=function(O,k){return z.H.useOptimistic(O,k)},Ct.useReducer=function(O,k,G){return z.H.useReducer(O,k,G)},Ct.useRef=function(O){return z.H.useRef(O)},Ct.useState=function(O){return z.H.useState(O)},Ct.useSyncExternalStore=function(O,k,G){return z.H.useSyncExternalStore(O,k,G)},Ct.useTransition=function(){return z.H.useTransition()},Ct.version="19.2.4",Ct}var qx;function uc(){return qx||(qx=1,Mm.exports=T2()),Mm.exports}var S=uc();const rt=Mg(S),Uf=S2({__proto__:null,default:rt},[S]);var Am={exports:{}},Rl={},_m={exports:{}},Dm={};/**
|
|
19
|
+
* @license React
|
|
20
|
+
* scheduler.production.js
|
|
21
|
+
*
|
|
22
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
23
|
+
*
|
|
24
|
+
* This source code is licensed under the MIT license found in the
|
|
25
|
+
* LICENSE file in the root directory of this source tree.
|
|
26
|
+
*/var Yx;function C2(){return Yx||(Yx=1,(function(t){function e(N,q){var H=N.length;N.push(q);t:for(;0<H;){var et=H-1>>>1,ct=N[et];if(0<o(ct,q))N[et]=q,N[H]=ct,H=et;else break t}}function i(N){return N.length===0?null:N[0]}function s(N){if(N.length===0)return null;var q=N[0],H=N.pop();if(H!==q){N[0]=H;t:for(var et=0,ct=N.length,O=ct>>>1;et<O;){var k=2*(et+1)-1,G=N[k],$=k+1,J=N[$];if(0>o(G,H))$<ct&&0>o(J,G)?(N[et]=J,N[$]=H,et=$):(N[et]=G,N[k]=H,et=k);else if($<ct&&0>o(J,H))N[et]=J,N[$]=H,et=$;else break t}}return q}function o(N,q){var H=N.sortIndex-q.sortIndex;return H!==0?H:N.id-q.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;t.unstable_now=function(){return c.now()}}else{var u=Date,f=u.now();t.unstable_now=function(){return u.now()-f}}var m=[],h=[],y=1,p=null,v=3,b=!1,E=!1,w=!1,T=!1,C=typeof setTimeout=="function"?setTimeout:null,D=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;function A(N){for(var q=i(h);q!==null;){if(q.callback===null)s(h);else if(q.startTime<=N)s(h),q.sortIndex=q.expirationTime,e(m,q);else break;q=i(h)}}function P(N){if(w=!1,A(N),!E)if(i(m)!==null)E=!0,B||(B=!0,at());else{var q=i(h);q!==null&&ot(P,q.startTime-N)}}var B=!1,z=-1,L=5,Y=-1;function I(){return T?!0:!(t.unstable_now()-Y<L)}function W(){if(T=!1,B){var N=t.unstable_now();Y=N;var q=!0;try{t:{E=!1,w&&(w=!1,D(z),z=-1),b=!0;var H=v;try{e:{for(A(N),p=i(m);p!==null&&!(p.expirationTime>N&&I());){var et=p.callback;if(typeof et=="function"){p.callback=null,v=p.priorityLevel;var ct=et(p.expirationTime<=N);if(N=t.unstable_now(),typeof ct=="function"){p.callback=ct,A(N),q=!0;break e}p===i(m)&&s(m),A(N)}else s(m);p=i(m)}if(p!==null)q=!0;else{var O=i(h);O!==null&&ot(P,O.startTime-N),q=!1}}break t}finally{p=null,v=H,b=!1}q=void 0}}finally{q?at():B=!1}}}var at;if(typeof _=="function")at=function(){_(W)};else if(typeof MessageChannel<"u"){var ut=new MessageChannel,ft=ut.port2;ut.port1.onmessage=W,at=function(){ft.postMessage(null)}}else at=function(){C(W,0)};function ot(N,q){z=C(function(){N(t.unstable_now())},q)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(N){N.callback=null},t.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<N?Math.floor(1e3/N):5},t.unstable_getCurrentPriorityLevel=function(){return v},t.unstable_next=function(N){switch(v){case 1:case 2:case 3:var q=3;break;default:q=v}var H=v;v=q;try{return N()}finally{v=H}},t.unstable_requestPaint=function(){T=!0},t.unstable_runWithPriority=function(N,q){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var H=v;v=N;try{return q()}finally{v=H}},t.unstable_scheduleCallback=function(N,q,H){var et=t.unstable_now();switch(typeof H=="object"&&H!==null?(H=H.delay,H=typeof H=="number"&&0<H?et+H:et):H=et,N){case 1:var ct=-1;break;case 2:ct=250;break;case 5:ct=1073741823;break;case 4:ct=1e4;break;default:ct=5e3}return ct=H+ct,N={id:y++,callback:q,priorityLevel:N,startTime:H,expirationTime:ct,sortIndex:-1},H>et?(N.sortIndex=H,e(h,N),i(m)===null&&N===i(h)&&(w?(D(z),z=-1):w=!0,ot(P,H-et))):(N.sortIndex=ct,e(m,N),E||b||(E=!0,B||(B=!0,at()))),N},t.unstable_shouldYield=I,t.unstable_wrapCallback=function(N){var q=v;return function(){var H=v;v=q;try{return N.apply(this,arguments)}finally{v=H}}}})(Dm)),Dm}var Kx;function R2(){return Kx||(Kx=1,_m.exports=C2()),_m.exports}var Om={exports:{}},Ue={};/**
|
|
27
|
+
* @license React
|
|
28
|
+
* react-dom.production.js
|
|
29
|
+
*
|
|
30
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
31
|
+
*
|
|
32
|
+
* This source code is licensed under the MIT license found in the
|
|
33
|
+
* LICENSE file in the root directory of this source tree.
|
|
34
|
+
*/var Xx;function M2(){if(Xx)return Ue;Xx=1;var t=uc();function e(m){var h="https://react.dev/errors/"+m;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)h+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+m+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var s={d:{f:i,r:function(){throw Error(e(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for("react.portal");function c(m,h,y){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:p==null?null:""+p,children:m,containerInfo:h,implementation:y}}var u=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(m,h){if(m==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return Ue.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Ue.createPortal=function(m,h){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(e(299));return c(m,h,null,y)},Ue.flushSync=function(m){var h=u.T,y=s.p;try{if(u.T=null,s.p=2,m)return m()}finally{u.T=h,s.p=y,s.d.f()}},Ue.preconnect=function(m,h){typeof m=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,s.d.C(m,h))},Ue.prefetchDNS=function(m){typeof m=="string"&&s.d.D(m)},Ue.preinit=function(m,h){if(typeof m=="string"&&h&&typeof h.as=="string"){var y=h.as,p=f(y,h.crossOrigin),v=typeof h.integrity=="string"?h.integrity:void 0,b=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;y==="style"?s.d.S(m,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:p,integrity:v,fetchPriority:b}):y==="script"&&s.d.X(m,{crossOrigin:p,integrity:v,fetchPriority:b,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},Ue.preinitModule=function(m,h){if(typeof m=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var y=f(h.as,h.crossOrigin);s.d.M(m,{crossOrigin:y,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&s.d.M(m)},Ue.preload=function(m,h){if(typeof m=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var y=h.as,p=f(y,h.crossOrigin);s.d.L(m,y,{crossOrigin:p,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},Ue.preloadModule=function(m,h){if(typeof m=="string")if(h){var y=f(h.as,h.crossOrigin);s.d.m(m,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:y,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else s.d.m(m)},Ue.requestFormReset=function(m){s.d.r(m)},Ue.unstable_batchedUpdates=function(m,h){return m(h)},Ue.useFormState=function(m,h,y){return u.H.useFormState(m,h,y)},Ue.useFormStatus=function(){return u.H.useHostTransitionStatus()},Ue.version="19.2.4",Ue}var Qx;function J1(){if(Qx)return Om.exports;Qx=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),Om.exports=M2(),Om.exports}/**
|
|
35
|
+
* @license React
|
|
36
|
+
* react-dom-client.production.js
|
|
37
|
+
*
|
|
38
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
39
|
+
*
|
|
40
|
+
* This source code is licensed under the MIT license found in the
|
|
41
|
+
* LICENSE file in the root directory of this source tree.
|
|
42
|
+
*/var $x;function A2(){if($x)return Rl;$x=1;var t=R2(),e=uc(),i=J1();function s(n){var a="https://react.dev/errors/"+n;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)a+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+n+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function c(n){var a=n,r=n;if(n.alternate)for(;a.return;)a=a.return;else{n=a;do a=n,(a.flags&4098)!==0&&(r=a.return),n=a.return;while(n)}return a.tag===3?r:null}function u(n){if(n.tag===13){var a=n.memoizedState;if(a===null&&(n=n.alternate,n!==null&&(a=n.memoizedState)),a!==null)return a.dehydrated}return null}function f(n){if(n.tag===31){var a=n.memoizedState;if(a===null&&(n=n.alternate,n!==null&&(a=n.memoizedState)),a!==null)return a.dehydrated}return null}function m(n){if(c(n)!==n)throw Error(s(188))}function h(n){var a=n.alternate;if(!a){if(a=c(n),a===null)throw Error(s(188));return a!==n?null:n}for(var r=n,l=a;;){var d=r.return;if(d===null)break;var g=d.alternate;if(g===null){if(l=d.return,l!==null){r=l;continue}break}if(d.child===g.child){for(g=d.child;g;){if(g===r)return m(d),n;if(g===l)return m(d),a;g=g.sibling}throw Error(s(188))}if(r.return!==l.return)r=d,l=g;else{for(var x=!1,M=d.child;M;){if(M===r){x=!0,r=d,l=g;break}if(M===l){x=!0,l=d,r=g;break}M=M.sibling}if(!x){for(M=g.child;M;){if(M===r){x=!0,r=g,l=d;break}if(M===l){x=!0,l=g,r=d;break}M=M.sibling}if(!x)throw Error(s(189))}}if(r.alternate!==l)throw Error(s(190))}if(r.tag!==3)throw Error(s(188));return r.stateNode.current===r?n:a}function y(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n;for(n=n.child;n!==null;){if(a=y(n),a!==null)return a;n=n.sibling}return null}var p=Object.assign,v=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),D=Symbol.for("react.consumer"),_=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),B=Symbol.for("react.suspense_list"),z=Symbol.for("react.memo"),L=Symbol.for("react.lazy"),Y=Symbol.for("react.activity"),I=Symbol.for("react.memo_cache_sentinel"),W=Symbol.iterator;function at(n){return n===null||typeof n!="object"?null:(n=W&&n[W]||n["@@iterator"],typeof n=="function"?n:null)}var ut=Symbol.for("react.client.reference");function ft(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===ut?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case w:return"Fragment";case C:return"Profiler";case T:return"StrictMode";case P:return"Suspense";case B:return"SuspenseList";case Y:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case E:return"Portal";case _:return n.displayName||"Context";case D:return(n._context.displayName||"Context")+".Consumer";case A:var a=n.render;return n=n.displayName,n||(n=a.displayName||a.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case z:return a=n.displayName||null,a!==null?a:ft(n.type)||"Memo";case L:a=n._payload,n=n._init;try{return ft(n(a))}catch{}}return null}var ot=Array.isArray,N=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H={pending:!1,data:null,method:null,action:null},et=[],ct=-1;function O(n){return{current:n}}function k(n){0>ct||(n.current=et[ct],et[ct]=null,ct--)}function G(n,a){ct++,et[ct]=n.current,n.current=a}var $=O(null),J=O(null),lt=O(null),st=O(null);function dt(n,a){switch(G(lt,a),G(J,n),G($,null),a.nodeType){case 9:case 11:n=(n=a.documentElement)&&(n=n.namespaceURI)?ux(n):0;break;default:if(n=a.tagName,a=a.namespaceURI)a=ux(a),n=fx(a,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}k($),G($,n)}function mt(){k($),k(J),k(lt)}function Ut(n){n.memoizedState!==null&&G(st,n);var a=$.current,r=fx(a,n.type);a!==r&&(G(J,n),G($,r))}function le(n){J.current===n&&(k($),k(J)),st.current===n&&(k(st),Sl._currentValue=H)}var ce,fn;function ke(n){if(ce===void 0)try{throw Error()}catch(r){var a=r.stack.trim().match(/\n( *(at )?)/);ce=a&&a[1]||"",fn=-1<r.stack.indexOf(`
|
|
43
|
+
at`)?" (<anonymous>)":-1<r.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
44
|
+
`+ce+n+fn}var ii=!1;function Hn(n,a){if(!n||ii)return"";ii=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(a){var it=function(){throw Error()};if(Object.defineProperty(it.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(it,[])}catch(Z){var Q=Z}Reflect.construct(n,[],it)}else{try{it.call()}catch(Z){Q=Z}n.call(it.prototype)}}else{try{throw Error()}catch(Z){Q=Z}(it=n())&&typeof it.catch=="function"&&it.catch(function(){})}}catch(Z){if(Z&&Q&&typeof Z.stack=="string")return[Z.stack,Q.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var g=l.DetermineComponentFrameRoot(),x=g[0],M=g[1];if(x&&M){var j=x.split(`
|
|
45
|
+
`),X=M.split(`
|
|
46
|
+
`);for(d=l=0;l<j.length&&!j[l].includes("DetermineComponentFrameRoot");)l++;for(;d<X.length&&!X[d].includes("DetermineComponentFrameRoot");)d++;if(l===j.length||d===X.length)for(l=j.length-1,d=X.length-1;1<=l&&0<=d&&j[l]!==X[d];)d--;for(;1<=l&&0<=d;l--,d--)if(j[l]!==X[d]){if(l!==1||d!==1)do if(l--,d--,0>d||j[l]!==X[d]){var tt=`
|
|
47
|
+
`+j[l].replace(" at new "," at ");return n.displayName&&tt.includes("<anonymous>")&&(tt=tt.replace("<anonymous>",n.displayName)),tt}while(1<=l&&0<=d);break}}}finally{ii=!1,Error.prepareStackTrace=r}return(r=n?n.displayName||n.name:"")?ke(r):""}function ze(n,a){switch(n.tag){case 26:case 27:case 5:return ke(n.type);case 16:return ke("Lazy");case 13:return n.child!==a&&a!==null?ke("Suspense Fallback"):ke("Suspense");case 19:return ke("SuspenseList");case 0:case 15:return Hn(n.type,!1);case 11:return Hn(n.type.render,!1);case 1:return Hn(n.type,!0);case 31:return ke("Activity");default:return""}}function Fn(n){try{var a="",r=null;do a+=ze(n,r),r=n,n=n.return;while(n);return a}catch(l){return`
|
|
48
|
+
Error generating stack: `+l.message+`
|
|
49
|
+
`+l.stack}}var Qt=Object.prototype.hasOwnProperty,is=t.unstable_scheduleCallback,as=t.unstable_cancelCallback,Ee=t.unstable_shouldYield,ai=t.unstable_requestPaint,Ae=t.unstable_now,Lo=t.unstable_getCurrentPriorityLevel,zt=t.unstable_ImmediatePriority,ye=t.unstable_UserBlockingPriority,ve=t.unstable_NormalPriority,na=t.unstable_LowPriority,Ri=t.unstable_IdlePriority,Ec=t.log,ia=t.unstable_setDisableYieldValue,ss=null,Fe=null;function Gn(n){if(typeof Ec=="function"&&ia(n),Fe&&typeof Fe.setStrictMode=="function")try{Fe.setStrictMode(ss,n)}catch{}}var Be=Math.clz32?Math.clz32:si,md=Math.log,jo=Math.LN2;function si(n){return n>>>=0,n===0?32:31-(md(n)/jo|0)|0}var nr=256,ir=262144,rs=4194304;function ri(n){var a=n&42;if(a!==0)return a;switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return n&261888;case 262144:case 524288:case 1048576:case 2097152:return n&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function Et(n,a,r){var l=n.pendingLanes;if(l===0)return 0;var d=0,g=n.suspendedLanes,x=n.pingedLanes;n=n.warmLanes;var M=l&134217727;return M!==0?(l=M&~g,l!==0?d=ri(l):(x&=M,x!==0?d=ri(x):r||(r=M&~n,r!==0&&(d=ri(r))))):(M=l&~g,M!==0?d=ri(M):x!==0?d=ri(x):r||(r=l&~n,r!==0&&(d=ri(r)))),d===0?0:a!==0&&a!==d&&(a&g)===0&&(g=d&-d,r=a&-a,g>=r||g===32&&(r&4194048)!==0)?a:d}function Jt(n,a){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&a)===0}function Te(n,a){switch(n){case 1:case 2:case 4:case 8:case 64:return a+250;case 16:case 32: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 a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ve(){var n=rs;return rs<<=1,(rs&62914560)===0&&(rs=4194304),n}function aa(n){for(var a=[],r=0;31>r;r++)a.push(n);return a}function ee(n,a){n.pendingLanes|=a,a!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function Ze(n,a,r,l,d,g){var x=n.pendingLanes;n.pendingLanes=r,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=r,n.entangledLanes&=r,n.errorRecoveryDisabledLanes&=r,n.shellSuspendCounter=0;var M=n.entanglements,j=n.expirationTimes,X=n.hiddenUpdates;for(r=x&~r;0<r;){var tt=31-Be(r),it=1<<tt;M[tt]=0,j[tt]=-1;var Q=X[tt];if(Q!==null)for(X[tt]=null,tt=0;tt<Q.length;tt++){var Z=Q[tt];Z!==null&&(Z.lane&=-536870913)}r&=~it}l!==0&&os(n,l,0),g!==0&&d===0&&n.tag!==0&&(n.suspendedLanes|=g&~(x&~a))}function os(n,a,r){n.pendingLanes|=a,n.suspendedLanes&=~a;var l=31-Be(a);n.entangledLanes|=a,n.entanglements[l]=n.entanglements[l]|1073741824|r&261930}function We(n,a){var r=n.entangledLanes|=a;for(n=n.entanglements;r;){var l=31-Be(r),d=1<<l;d&a|n[l]&a&&(n[l]|=a),r&=~d}}function Je(n,a){var r=a&-a;return r=(r&42)!==0?1:ar(r),(r&(n.suspendedLanes|a))!==0?0:r}function ar(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=16;break;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:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function qn(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function pd(){var n=q.p;return n!==0?n:(n=window.event,n===void 0?32:Lx(n.type))}function $y(n,a){var r=q.p;try{return q.p=n,a()}finally{q.p=r}}var sa=Math.random().toString(36).slice(2),_e="__reactFiber$"+sa,tn="__reactProps$"+sa,sr="__reactContainer$"+sa,gd="__reactEvents$"+sa,uA="__reactListeners$"+sa,fA="__reactHandles$"+sa,Zy="__reactResources$"+sa,ko="__reactMarker$"+sa;function yd(n){delete n[_e],delete n[tn],delete n[gd],delete n[uA],delete n[fA]}function rr(n){var a=n[_e];if(a)return a;for(var r=n.parentNode;r;){if(a=r[sr]||r[_e]){if(r=a.alternate,a.child!==null||r!==null&&r.child!==null)for(n=vx(n);n!==null;){if(r=n[_e])return r;n=vx(n)}return a}n=r,r=n.parentNode}return null}function or(n){if(n=n[_e]||n[sr]){var a=n.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return n}return null}function zo(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n.stateNode;throw Error(s(33))}function lr(n){var a=n[Zy];return a||(a=n[Zy]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function Ce(n){n[ko]=!0}var Wy=new Set,Jy={};function ls(n,a){cr(n,a),cr(n+"Capture",a)}function cr(n,a){for(Jy[n]=a,n=0;n<a.length;n++)Wy.add(a[n])}var dA=RegExp("^[: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]*$"),tv={},ev={};function hA(n){return Qt.call(ev,n)?!0:Qt.call(tv,n)?!1:dA.test(n)?ev[n]=!0:(tv[n]=!0,!1)}function Tc(n,a,r){if(hA(a))if(r===null)n.removeAttribute(a);else{switch(typeof r){case"undefined":case"function":case"symbol":n.removeAttribute(a);return;case"boolean":var l=a.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){n.removeAttribute(a);return}}n.setAttribute(a,""+r)}}function Cc(n,a,r){if(r===null)n.removeAttribute(a);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(a);return}n.setAttribute(a,""+r)}}function Mi(n,a,r,l){if(l===null)n.removeAttribute(r);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(r);return}n.setAttributeNS(a,r,""+l)}}function Tn(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function nv(n){var a=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function mA(n,a,r){var l=Object.getOwnPropertyDescriptor(n.constructor.prototype,a);if(!n.hasOwnProperty(a)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var d=l.get,g=l.set;return Object.defineProperty(n,a,{configurable:!0,get:function(){return d.call(this)},set:function(x){r=""+x,g.call(this,x)}}),Object.defineProperty(n,a,{enumerable:l.enumerable}),{getValue:function(){return r},setValue:function(x){r=""+x},stopTracking:function(){n._valueTracker=null,delete n[a]}}}}function vd(n){if(!n._valueTracker){var a=nv(n)?"checked":"value";n._valueTracker=mA(n,a,""+n[a])}}function iv(n){if(!n)return!1;var a=n._valueTracker;if(!a)return!0;var r=a.getValue(),l="";return n&&(l=nv(n)?n.checked?"true":"false":n.value),n=l,n!==r?(a.setValue(n),!0):!1}function Rc(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var pA=/[\n"\\]/g;function Cn(n){return n.replace(pA,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function bd(n,a,r,l,d,g,x,M){n.name="",x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?n.type=x:n.removeAttribute("type"),a!=null?x==="number"?(a===0&&n.value===""||n.value!=a)&&(n.value=""+Tn(a)):n.value!==""+Tn(a)&&(n.value=""+Tn(a)):x!=="submit"&&x!=="reset"||n.removeAttribute("value"),a!=null?xd(n,x,Tn(a)):r!=null?xd(n,x,Tn(r)):l!=null&&n.removeAttribute("value"),d==null&&g!=null&&(n.defaultChecked=!!g),d!=null&&(n.checked=d&&typeof d!="function"&&typeof d!="symbol"),M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"?n.name=""+Tn(M):n.removeAttribute("name")}function av(n,a,r,l,d,g,x,M){if(g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(n.type=g),a!=null||r!=null){if(!(g!=="submit"&&g!=="reset"||a!=null)){vd(n);return}r=r!=null?""+Tn(r):"",a=a!=null?""+Tn(a):r,M||a===n.value||(n.value=a),n.defaultValue=a}l=l??d,l=typeof l!="function"&&typeof l!="symbol"&&!!l,n.checked=M?n.checked:!!l,n.defaultChecked=!!l,x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(n.name=x),vd(n)}function xd(n,a,r){a==="number"&&Rc(n.ownerDocument)===n||n.defaultValue===""+r||(n.defaultValue=""+r)}function ur(n,a,r,l){if(n=n.options,a){a={};for(var d=0;d<r.length;d++)a["$"+r[d]]=!0;for(r=0;r<n.length;r++)d=a.hasOwnProperty("$"+n[r].value),n[r].selected!==d&&(n[r].selected=d),d&&l&&(n[r].defaultSelected=!0)}else{for(r=""+Tn(r),a=null,d=0;d<n.length;d++){if(n[d].value===r){n[d].selected=!0,l&&(n[d].defaultSelected=!0);return}a!==null||n[d].disabled||(a=n[d])}a!==null&&(a.selected=!0)}}function sv(n,a,r){if(a!=null&&(a=""+Tn(a),a!==n.value&&(n.value=a),r==null)){n.defaultValue!==a&&(n.defaultValue=a);return}n.defaultValue=r!=null?""+Tn(r):""}function rv(n,a,r,l){if(a==null){if(l!=null){if(r!=null)throw Error(s(92));if(ot(l)){if(1<l.length)throw Error(s(93));l=l[0]}r=l}r==null&&(r=""),a=r}r=Tn(a),n.defaultValue=r,l=n.textContent,l===r&&l!==""&&l!==null&&(n.value=l),vd(n)}function fr(n,a){if(a){var r=n.firstChild;if(r&&r===n.lastChild&&r.nodeType===3){r.nodeValue=a;return}}n.textContent=a}var gA=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function ov(n,a,r){var l=a.indexOf("--")===0;r==null||typeof r=="boolean"||r===""?l?n.setProperty(a,""):a==="float"?n.cssFloat="":n[a]="":l?n.setProperty(a,r):typeof r!="number"||r===0||gA.has(a)?a==="float"?n.cssFloat=r:n[a]=(""+r).trim():n[a]=r+"px"}function lv(n,a,r){if(a!=null&&typeof a!="object")throw Error(s(62));if(n=n.style,r!=null){for(var l in r)!r.hasOwnProperty(l)||a!=null&&a.hasOwnProperty(l)||(l.indexOf("--")===0?n.setProperty(l,""):l==="float"?n.cssFloat="":n[l]="");for(var d in a)l=a[d],a.hasOwnProperty(d)&&r[d]!==l&&ov(n,d,l)}else for(var g in a)a.hasOwnProperty(g)&&ov(n,g,a[g])}function Sd(n){if(n.indexOf("-")===-1)return!1;switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var yA=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),vA=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Mc(n){return vA.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}function Ai(){}var wd=null;function Ed(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var dr=null,hr=null;function cv(n){var a=or(n);if(a&&(n=a.stateNode)){var r=n[tn]||null;t:switch(n=a.stateNode,a.type){case"input":if(bd(n,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name),a=r.name,r.type==="radio"&&a!=null){for(r=n;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll('input[name="'+Cn(""+a)+'"][type="radio"]'),a=0;a<r.length;a++){var l=r[a];if(l!==n&&l.form===n.form){var d=l[tn]||null;if(!d)throw Error(s(90));bd(l,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(a=0;a<r.length;a++)l=r[a],l.form===n.form&&iv(l)}break t;case"textarea":sv(n,r.value,r.defaultValue);break t;case"select":a=r.value,a!=null&&ur(n,!!r.multiple,a,!1)}}}var Td=!1;function uv(n,a,r){if(Td)return n(a,r);Td=!0;try{var l=n(a);return l}finally{if(Td=!1,(dr!==null||hr!==null)&&(mu(),dr&&(a=dr,n=hr,hr=dr=null,cv(a),n)))for(a=0;a<n.length;a++)cv(n[a])}}function Bo(n,a){var r=n.stateNode;if(r===null)return null;var l=r[tn]||null;if(l===null)return null;r=l[a];t:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(n=n.type,l=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!l;break t;default:n=!1}if(n)return null;if(r&&typeof r!="function")throw Error(s(231,a,typeof r));return r}var _i=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Cd=!1;if(_i)try{var Vo={};Object.defineProperty(Vo,"passive",{get:function(){Cd=!0}}),window.addEventListener("test",Vo,Vo),window.removeEventListener("test",Vo,Vo)}catch{Cd=!1}var ra=null,Rd=null,Ac=null;function fv(){if(Ac)return Ac;var n,a=Rd,r=a.length,l,d="value"in ra?ra.value:ra.textContent,g=d.length;for(n=0;n<r&&a[n]===d[n];n++);var x=r-n;for(l=1;l<=x&&a[r-l]===d[g-l];l++);return Ac=d.slice(n,1<l?1-l:void 0)}function _c(n){var a=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&a===13&&(n=13)):n=a,n===10&&(n=13),32<=n||n===13?n:0}function Dc(){return!0}function dv(){return!1}function en(n){function a(r,l,d,g,x){this._reactName=r,this._targetInst=d,this.type=l,this.nativeEvent=g,this.target=x,this.currentTarget=null;for(var M in n)n.hasOwnProperty(M)&&(r=n[M],this[M]=r?r(g):g[M]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?Dc:dv,this.isPropagationStopped=dv,this}return p(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=Dc)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Dc)},persist:function(){},isPersistent:Dc}),a}var cs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Oc=en(cs),Uo=p({},cs,{view:0,detail:0}),bA=en(Uo),Md,Ad,Io,Nc=p({},Uo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Dd,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==Io&&(Io&&n.type==="mousemove"?(Md=n.screenX-Io.screenX,Ad=n.screenY-Io.screenY):Ad=Md=0,Io=n),Md)},movementY:function(n){return"movementY"in n?n.movementY:Ad}}),hv=en(Nc),xA=p({},Nc,{dataTransfer:0}),SA=en(xA),wA=p({},Uo,{relatedTarget:0}),_d=en(wA),EA=p({},cs,{animationName:0,elapsedTime:0,pseudoElement:0}),TA=en(EA),CA=p({},cs,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),RA=en(CA),MA=p({},cs,{data:0}),mv=en(MA),AA={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_A={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"},DA={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function OA(n){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(n):(n=DA[n])?!!a[n]:!1}function Dd(){return OA}var NA=p({},Uo,{key:function(n){if(n.key){var a=AA[n.key]||n.key;if(a!=="Unidentified")return a}return n.type==="keypress"?(n=_c(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?_A[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Dd,charCode:function(n){return n.type==="keypress"?_c(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?_c(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),PA=en(NA),LA=p({},Nc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),pv=en(LA),jA=p({},Uo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Dd}),kA=en(jA),zA=p({},cs,{propertyName:0,elapsedTime:0,pseudoElement:0}),BA=en(zA),VA=p({},Nc,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),UA=en(VA),IA=p({},cs,{newState:0,oldState:0}),HA=en(IA),FA=[9,13,27,32],Od=_i&&"CompositionEvent"in window,Ho=null;_i&&"documentMode"in document&&(Ho=document.documentMode);var GA=_i&&"TextEvent"in window&&!Ho,gv=_i&&(!Od||Ho&&8<Ho&&11>=Ho),yv=" ",vv=!1;function bv(n,a){switch(n){case"keyup":return FA.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xv(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var mr=!1;function qA(n,a){switch(n){case"compositionend":return xv(a);case"keypress":return a.which!==32?null:(vv=!0,yv);case"textInput":return n=a.data,n===yv&&vv?null:n;default:return null}}function YA(n,a){if(mr)return n==="compositionend"||!Od&&bv(n,a)?(n=fv(),Ac=Rd=ra=null,mr=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return gv&&a.locale!=="ko"?null:a.data;default:return null}}var KA={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 Sv(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a==="input"?!!KA[n.type]:a==="textarea"}function wv(n,a,r,l){dr?hr?hr.push(l):hr=[l]:dr=l,a=Su(a,"onChange"),0<a.length&&(r=new Oc("onChange","change",null,r,l),n.push({event:r,listeners:a}))}var Fo=null,Go=null;function XA(n){ax(n,0)}function Pc(n){var a=zo(n);if(iv(a))return n}function Ev(n,a){if(n==="change")return a}var Tv=!1;if(_i){var Nd;if(_i){var Pd="oninput"in document;if(!Pd){var Cv=document.createElement("div");Cv.setAttribute("oninput","return;"),Pd=typeof Cv.oninput=="function"}Nd=Pd}else Nd=!1;Tv=Nd&&(!document.documentMode||9<document.documentMode)}function Rv(){Fo&&(Fo.detachEvent("onpropertychange",Mv),Go=Fo=null)}function Mv(n){if(n.propertyName==="value"&&Pc(Go)){var a=[];wv(a,Go,n,Ed(n)),uv(XA,a)}}function QA(n,a,r){n==="focusin"?(Rv(),Fo=a,Go=r,Fo.attachEvent("onpropertychange",Mv)):n==="focusout"&&Rv()}function $A(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return Pc(Go)}function ZA(n,a){if(n==="click")return Pc(a)}function WA(n,a){if(n==="input"||n==="change")return Pc(a)}function JA(n,a){return n===a&&(n!==0||1/n===1/a)||n!==n&&a!==a}var dn=typeof Object.is=="function"?Object.is:JA;function qo(n,a){if(dn(n,a))return!0;if(typeof n!="object"||n===null||typeof a!="object"||a===null)return!1;var r=Object.keys(n),l=Object.keys(a);if(r.length!==l.length)return!1;for(l=0;l<r.length;l++){var d=r[l];if(!Qt.call(a,d)||!dn(n[d],a[d]))return!1}return!0}function Av(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function _v(n,a){var r=Av(n);n=0;for(var l;r;){if(r.nodeType===3){if(l=n+r.textContent.length,n<=a&&l>=a)return{node:r,offset:a-n};n=l}t:{for(;r;){if(r.nextSibling){r=r.nextSibling;break t}r=r.parentNode}r=void 0}r=Av(r)}}function Dv(n,a){return n&&a?n===a?!0:n&&n.nodeType===3?!1:a&&a.nodeType===3?Dv(n,a.parentNode):"contains"in n?n.contains(a):n.compareDocumentPosition?!!(n.compareDocumentPosition(a)&16):!1:!1}function Ov(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var a=Rc(n.document);a instanceof n.HTMLIFrameElement;){try{var r=typeof a.contentWindow.location.href=="string"}catch{r=!1}if(r)n=a.contentWindow;else break;a=Rc(n.document)}return a}function Ld(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a&&(a==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||a==="textarea"||n.contentEditable==="true")}var t_=_i&&"documentMode"in document&&11>=document.documentMode,pr=null,jd=null,Yo=null,kd=!1;function Nv(n,a,r){var l=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;kd||pr==null||pr!==Rc(l)||(l=pr,"selectionStart"in l&&Ld(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Yo&&qo(Yo,l)||(Yo=l,l=Su(jd,"onSelect"),0<l.length&&(a=new Oc("onSelect","select",null,a,r),n.push({event:a,listeners:l}),a.target=pr)))}function us(n,a){var r={};return r[n.toLowerCase()]=a.toLowerCase(),r["Webkit"+n]="webkit"+a,r["Moz"+n]="moz"+a,r}var gr={animationend:us("Animation","AnimationEnd"),animationiteration:us("Animation","AnimationIteration"),animationstart:us("Animation","AnimationStart"),transitionrun:us("Transition","TransitionRun"),transitionstart:us("Transition","TransitionStart"),transitioncancel:us("Transition","TransitionCancel"),transitionend:us("Transition","TransitionEnd")},zd={},Pv={};_i&&(Pv=document.createElement("div").style,"AnimationEvent"in window||(delete gr.animationend.animation,delete gr.animationiteration.animation,delete gr.animationstart.animation),"TransitionEvent"in window||delete gr.transitionend.transition);function fs(n){if(zd[n])return zd[n];if(!gr[n])return n;var a=gr[n],r;for(r in a)if(a.hasOwnProperty(r)&&r in Pv)return zd[n]=a[r];return n}var Lv=fs("animationend"),jv=fs("animationiteration"),kv=fs("animationstart"),e_=fs("transitionrun"),n_=fs("transitionstart"),i_=fs("transitioncancel"),zv=fs("transitionend"),Bv=new Map,Bd="abort auxClick beforeToggle 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(" ");Bd.push("scrollEnd");function Yn(n,a){Bv.set(n,a),ls(a,[n])}var Lc=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},Rn=[],yr=0,Vd=0;function jc(){for(var n=yr,a=Vd=yr=0;a<n;){var r=Rn[a];Rn[a++]=null;var l=Rn[a];Rn[a++]=null;var d=Rn[a];Rn[a++]=null;var g=Rn[a];if(Rn[a++]=null,l!==null&&d!==null){var x=l.pending;x===null?d.next=d:(d.next=x.next,x.next=d),l.pending=d}g!==0&&Vv(r,d,g)}}function kc(n,a,r,l){Rn[yr++]=n,Rn[yr++]=a,Rn[yr++]=r,Rn[yr++]=l,Vd|=l,n.lanes|=l,n=n.alternate,n!==null&&(n.lanes|=l)}function Ud(n,a,r,l){return kc(n,a,r,l),zc(n)}function ds(n,a){return kc(n,null,null,a),zc(n)}function Vv(n,a,r){n.lanes|=r;var l=n.alternate;l!==null&&(l.lanes|=r);for(var d=!1,g=n.return;g!==null;)g.childLanes|=r,l=g.alternate,l!==null&&(l.childLanes|=r),g.tag===22&&(n=g.stateNode,n===null||n._visibility&1||(d=!0)),n=g,g=g.return;return n.tag===3?(g=n.stateNode,d&&a!==null&&(d=31-Be(r),n=g.hiddenUpdates,l=n[d],l===null?n[d]=[a]:l.push(a),a.lane=r|536870912),g):null}function zc(n){if(50<ml)throw ml=0,Qh=null,Error(s(185));for(var a=n.return;a!==null;)n=a,a=n.return;return n.tag===3?n.stateNode:null}var vr={};function a_(n,a,r,l){this.tag=n,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function hn(n,a,r,l){return new a_(n,a,r,l)}function Id(n){return n=n.prototype,!(!n||!n.isReactComponent)}function Di(n,a){var r=n.alternate;return r===null?(r=hn(n.tag,a,n.key,n.mode),r.elementType=n.elementType,r.type=n.type,r.stateNode=n.stateNode,r.alternate=n,n.alternate=r):(r.pendingProps=a,r.type=n.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=n.flags&65011712,r.childLanes=n.childLanes,r.lanes=n.lanes,r.child=n.child,r.memoizedProps=n.memoizedProps,r.memoizedState=n.memoizedState,r.updateQueue=n.updateQueue,a=n.dependencies,r.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},r.sibling=n.sibling,r.index=n.index,r.ref=n.ref,r.refCleanup=n.refCleanup,r}function Uv(n,a){n.flags&=65011714;var r=n.alternate;return r===null?(n.childLanes=0,n.lanes=a,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=r.childLanes,n.lanes=r.lanes,n.child=r.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=r.memoizedProps,n.memoizedState=r.memoizedState,n.updateQueue=r.updateQueue,n.type=r.type,a=r.dependencies,n.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),n}function Bc(n,a,r,l,d,g){var x=0;if(l=n,typeof n=="function")Id(n)&&(x=1);else if(typeof n=="string")x=c2(n,r,$.current)?26:n==="html"||n==="head"||n==="body"?27:5;else t:switch(n){case Y:return n=hn(31,r,a,d),n.elementType=Y,n.lanes=g,n;case w:return hs(r.children,d,g,a);case T:x=8,d|=24;break;case C:return n=hn(12,r,a,d|2),n.elementType=C,n.lanes=g,n;case P:return n=hn(13,r,a,d),n.elementType=P,n.lanes=g,n;case B:return n=hn(19,r,a,d),n.elementType=B,n.lanes=g,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case _:x=10;break t;case D:x=9;break t;case A:x=11;break t;case z:x=14;break t;case L:x=16,l=null;break t}x=29,r=Error(s(130,n===null?"null":typeof n,"")),l=null}return a=hn(x,r,a,d),a.elementType=n,a.type=l,a.lanes=g,a}function hs(n,a,r,l){return n=hn(7,n,l,a),n.lanes=r,n}function Hd(n,a,r){return n=hn(6,n,null,a),n.lanes=r,n}function Iv(n){var a=hn(18,null,null,0);return a.stateNode=n,a}function Fd(n,a,r){return a=hn(4,n.children!==null?n.children:[],n.key,a),a.lanes=r,a.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},a}var Hv=new WeakMap;function Mn(n,a){if(typeof n=="object"&&n!==null){var r=Hv.get(n);return r!==void 0?r:(a={value:n,source:a,stack:Fn(a)},Hv.set(n,a),a)}return{value:n,source:a,stack:Fn(a)}}var br=[],xr=0,Vc=null,Ko=0,An=[],_n=0,oa=null,oi=1,li="";function Oi(n,a){br[xr++]=Ko,br[xr++]=Vc,Vc=n,Ko=a}function Fv(n,a,r){An[_n++]=oi,An[_n++]=li,An[_n++]=oa,oa=n;var l=oi;n=li;var d=32-Be(l)-1;l&=~(1<<d),r+=1;var g=32-Be(a)+d;if(30<g){var x=d-d%5;g=(l&(1<<x)-1).toString(32),l>>=x,d-=x,oi=1<<32-Be(a)+d|r<<d|l,li=g+n}else oi=1<<g|r<<d|l,li=n}function Gd(n){n.return!==null&&(Oi(n,1),Fv(n,1,0))}function qd(n){for(;n===Vc;)Vc=br[--xr],br[xr]=null,Ko=br[--xr],br[xr]=null;for(;n===oa;)oa=An[--_n],An[_n]=null,li=An[--_n],An[_n]=null,oi=An[--_n],An[_n]=null}function Gv(n,a){An[_n++]=oi,An[_n++]=li,An[_n++]=oa,oi=a.id,li=a.overflow,oa=n}var De=null,Zt=null,Lt=!1,la=null,Dn=!1,Yd=Error(s(519));function ca(n){var a=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Xo(Mn(a,n)),Yd}function qv(n){var a=n.stateNode,r=n.type,l=n.memoizedProps;switch(a[_e]=n,a[tn]=l,r){case"dialog":Ot("cancel",a),Ot("close",a);break;case"iframe":case"object":case"embed":Ot("load",a);break;case"video":case"audio":for(r=0;r<gl.length;r++)Ot(gl[r],a);break;case"source":Ot("error",a);break;case"img":case"image":case"link":Ot("error",a),Ot("load",a);break;case"details":Ot("toggle",a);break;case"input":Ot("invalid",a),av(a,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":Ot("invalid",a);break;case"textarea":Ot("invalid",a),rv(a,l.value,l.defaultValue,l.children)}r=l.children,typeof r!="string"&&typeof r!="number"&&typeof r!="bigint"||a.textContent===""+r||l.suppressHydrationWarning===!0||lx(a.textContent,r)?(l.popover!=null&&(Ot("beforetoggle",a),Ot("toggle",a)),l.onScroll!=null&&Ot("scroll",a),l.onScrollEnd!=null&&Ot("scrollend",a),l.onClick!=null&&(a.onclick=Ai),a=!0):a=!1,a||ca(n,!0)}function Yv(n){for(De=n.return;De;)switch(De.tag){case 5:case 31:case 13:Dn=!1;return;case 27:case 3:Dn=!0;return;default:De=De.return}}function Sr(n){if(n!==De)return!1;if(!Lt)return Yv(n),Lt=!0,!1;var a=n.tag,r;if((r=a!==3&&a!==27)&&((r=a===5)&&(r=n.type,r=!(r!=="form"&&r!=="button")||um(n.type,n.memoizedProps)),r=!r),r&&Zt&&ca(n),Yv(n),a===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(s(317));Zt=yx(n)}else if(a===31){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(s(317));Zt=yx(n)}else a===27?(a=Zt,Ea(n.type)?(n=pm,pm=null,Zt=n):Zt=a):Zt=De?Nn(n.stateNode.nextSibling):null;return!0}function ms(){Zt=De=null,Lt=!1}function Kd(){var n=la;return n!==null&&(rn===null?rn=n:rn.push.apply(rn,n),la=null),n}function Xo(n){la===null?la=[n]:la.push(n)}var Xd=O(null),ps=null,Ni=null;function ua(n,a,r){G(Xd,a._currentValue),a._currentValue=r}function Pi(n){n._currentValue=Xd.current,k(Xd)}function Qd(n,a,r){for(;n!==null;){var l=n.alternate;if((n.childLanes&a)!==a?(n.childLanes|=a,l!==null&&(l.childLanes|=a)):l!==null&&(l.childLanes&a)!==a&&(l.childLanes|=a),n===r)break;n=n.return}}function $d(n,a,r,l){var d=n.child;for(d!==null&&(d.return=n);d!==null;){var g=d.dependencies;if(g!==null){var x=d.child;g=g.firstContext;t:for(;g!==null;){var M=g;g=d;for(var j=0;j<a.length;j++)if(M.context===a[j]){g.lanes|=r,M=g.alternate,M!==null&&(M.lanes|=r),Qd(g.return,r,n),l||(x=null);break t}g=M.next}}else if(d.tag===18){if(x=d.return,x===null)throw Error(s(341));x.lanes|=r,g=x.alternate,g!==null&&(g.lanes|=r),Qd(x,r,n),x=null}else x=d.child;if(x!==null)x.return=d;else for(x=d;x!==null;){if(x===n){x=null;break}if(d=x.sibling,d!==null){d.return=x.return,x=d;break}x=x.return}d=x}}function wr(n,a,r,l){n=null;for(var d=a,g=!1;d!==null;){if(!g){if((d.flags&524288)!==0)g=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var x=d.alternate;if(x===null)throw Error(s(387));if(x=x.memoizedProps,x!==null){var M=d.type;dn(d.pendingProps.value,x.value)||(n!==null?n.push(M):n=[M])}}else if(d===st.current){if(x=d.alternate,x===null)throw Error(s(387));x.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(n!==null?n.push(Sl):n=[Sl])}d=d.return}n!==null&&$d(a,n,r,l),a.flags|=262144}function Uc(n){for(n=n.firstContext;n!==null;){if(!dn(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function gs(n){ps=n,Ni=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function Oe(n){return Kv(ps,n)}function Ic(n,a){return ps===null&&gs(n),Kv(n,a)}function Kv(n,a){var r=a._currentValue;if(a={context:a,memoizedValue:r,next:null},Ni===null){if(n===null)throw Error(s(308));Ni=a,n.dependencies={lanes:0,firstContext:a},n.flags|=524288}else Ni=Ni.next=a;return r}var s_=typeof AbortController<"u"?AbortController:function(){var n=[],a=this.signal={aborted:!1,addEventListener:function(r,l){n.push(l)}};this.abort=function(){a.aborted=!0,n.forEach(function(r){return r()})}},r_=t.unstable_scheduleCallback,o_=t.unstable_NormalPriority,de={$$typeof:_,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Zd(){return{controller:new s_,data:new Map,refCount:0}}function Qo(n){n.refCount--,n.refCount===0&&r_(o_,function(){n.controller.abort()})}var $o=null,Wd=0,Er=0,Tr=null;function l_(n,a){if($o===null){var r=$o=[];Wd=0,Er=em(),Tr={status:"pending",value:void 0,then:function(l){r.push(l)}}}return Wd++,a.then(Xv,Xv),a}function Xv(){if(--Wd===0&&$o!==null){Tr!==null&&(Tr.status="fulfilled");var n=$o;$o=null,Er=0,Tr=null;for(var a=0;a<n.length;a++)(0,n[a])()}}function c_(n,a){var r=[],l={status:"pending",value:null,reason:null,then:function(d){r.push(d)}};return n.then(function(){l.status="fulfilled",l.value=a;for(var d=0;d<r.length;d++)(0,r[d])(a)},function(d){for(l.status="rejected",l.reason=d,d=0;d<r.length;d++)(0,r[d])(void 0)}),l}var Qv=N.S;N.S=function(n,a){Nb=Ae(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&l_(n,a),Qv!==null&&Qv(n,a)};var ys=O(null);function Jd(){var n=ys.current;return n!==null?n:Xt.pooledCache}function Hc(n,a){a===null?G(ys,ys.current):G(ys,a.pool)}function $v(){var n=Jd();return n===null?null:{parent:de._currentValue,pool:n}}var Cr=Error(s(460)),th=Error(s(474)),Fc=Error(s(542)),Gc={then:function(){}};function Zv(n){return n=n.status,n==="fulfilled"||n==="rejected"}function Wv(n,a,r){switch(r=n[r],r===void 0?n.push(a):r!==a&&(a.then(Ai,Ai),a=r),a.status){case"fulfilled":return a.value;case"rejected":throw n=a.reason,t0(n),n;default:if(typeof a.status=="string")a.then(Ai,Ai);else{if(n=Xt,n!==null&&100<n.shellSuspendCounter)throw Error(s(482));n=a,n.status="pending",n.then(function(l){if(a.status==="pending"){var d=a;d.status="fulfilled",d.value=l}},function(l){if(a.status==="pending"){var d=a;d.status="rejected",d.reason=l}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw n=a.reason,t0(n),n}throw bs=a,Cr}}function vs(n){try{var a=n._init;return a(n._payload)}catch(r){throw r!==null&&typeof r=="object"&&typeof r.then=="function"?(bs=r,Cr):r}}var bs=null;function Jv(){if(bs===null)throw Error(s(459));var n=bs;return bs=null,n}function t0(n){if(n===Cr||n===Fc)throw Error(s(483))}var Rr=null,Zo=0;function qc(n){var a=Zo;return Zo+=1,Rr===null&&(Rr=[]),Wv(Rr,n,a)}function Wo(n,a){a=a.props.ref,n.ref=a!==void 0?a:null}function Yc(n,a){throw a.$$typeof===v?Error(s(525)):(n=Object.prototype.toString.call(a),Error(s(31,n==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":n)))}function e0(n){function a(F,V){if(n){var K=F.deletions;K===null?(F.deletions=[V],F.flags|=16):K.push(V)}}function r(F,V){if(!n)return null;for(;V!==null;)a(F,V),V=V.sibling;return null}function l(F){for(var V=new Map;F!==null;)F.key!==null?V.set(F.key,F):V.set(F.index,F),F=F.sibling;return V}function d(F,V){return F=Di(F,V),F.index=0,F.sibling=null,F}function g(F,V,K){return F.index=K,n?(K=F.alternate,K!==null?(K=K.index,K<V?(F.flags|=67108866,V):K):(F.flags|=67108866,V)):(F.flags|=1048576,V)}function x(F){return n&&F.alternate===null&&(F.flags|=67108866),F}function M(F,V,K,nt){return V===null||V.tag!==6?(V=Hd(K,F.mode,nt),V.return=F,V):(V=d(V,K),V.return=F,V)}function j(F,V,K,nt){var xt=K.type;return xt===w?tt(F,V,K.props.children,nt,K.key):V!==null&&(V.elementType===xt||typeof xt=="object"&&xt!==null&&xt.$$typeof===L&&vs(xt)===V.type)?(V=d(V,K.props),Wo(V,K),V.return=F,V):(V=Bc(K.type,K.key,K.props,null,F.mode,nt),Wo(V,K),V.return=F,V)}function X(F,V,K,nt){return V===null||V.tag!==4||V.stateNode.containerInfo!==K.containerInfo||V.stateNode.implementation!==K.implementation?(V=Fd(K,F.mode,nt),V.return=F,V):(V=d(V,K.children||[]),V.return=F,V)}function tt(F,V,K,nt,xt){return V===null||V.tag!==7?(V=hs(K,F.mode,nt,xt),V.return=F,V):(V=d(V,K),V.return=F,V)}function it(F,V,K){if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return V=Hd(""+V,F.mode,K),V.return=F,V;if(typeof V=="object"&&V!==null){switch(V.$$typeof){case b:return K=Bc(V.type,V.key,V.props,null,F.mode,K),Wo(K,V),K.return=F,K;case E:return V=Fd(V,F.mode,K),V.return=F,V;case L:return V=vs(V),it(F,V,K)}if(ot(V)||at(V))return V=hs(V,F.mode,K,null),V.return=F,V;if(typeof V.then=="function")return it(F,qc(V),K);if(V.$$typeof===_)return it(F,Ic(F,V),K);Yc(F,V)}return null}function Q(F,V,K,nt){var xt=V!==null?V.key:null;if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return xt!==null?null:M(F,V,""+K,nt);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case b:return K.key===xt?j(F,V,K,nt):null;case E:return K.key===xt?X(F,V,K,nt):null;case L:return K=vs(K),Q(F,V,K,nt)}if(ot(K)||at(K))return xt!==null?null:tt(F,V,K,nt,null);if(typeof K.then=="function")return Q(F,V,qc(K),nt);if(K.$$typeof===_)return Q(F,V,Ic(F,K),nt);Yc(F,K)}return null}function Z(F,V,K,nt,xt){if(typeof nt=="string"&&nt!==""||typeof nt=="number"||typeof nt=="bigint")return F=F.get(K)||null,M(V,F,""+nt,xt);if(typeof nt=="object"&&nt!==null){switch(nt.$$typeof){case b:return F=F.get(nt.key===null?K:nt.key)||null,j(V,F,nt,xt);case E:return F=F.get(nt.key===null?K:nt.key)||null,X(V,F,nt,xt);case L:return nt=vs(nt),Z(F,V,K,nt,xt)}if(ot(nt)||at(nt))return F=F.get(K)||null,tt(V,F,nt,xt,null);if(typeof nt.then=="function")return Z(F,V,K,qc(nt),xt);if(nt.$$typeof===_)return Z(F,V,K,Ic(V,nt),xt);Yc(V,nt)}return null}function pt(F,V,K,nt){for(var xt=null,Bt=null,bt=V,At=V=0,Pt=null;bt!==null&&At<K.length;At++){bt.index>At?(Pt=bt,bt=null):Pt=bt.sibling;var Vt=Q(F,bt,K[At],nt);if(Vt===null){bt===null&&(bt=Pt);break}n&&bt&&Vt.alternate===null&&a(F,bt),V=g(Vt,V,At),Bt===null?xt=Vt:Bt.sibling=Vt,Bt=Vt,bt=Pt}if(At===K.length)return r(F,bt),Lt&&Oi(F,At),xt;if(bt===null){for(;At<K.length;At++)bt=it(F,K[At],nt),bt!==null&&(V=g(bt,V,At),Bt===null?xt=bt:Bt.sibling=bt,Bt=bt);return Lt&&Oi(F,At),xt}for(bt=l(bt);At<K.length;At++)Pt=Z(bt,F,At,K[At],nt),Pt!==null&&(n&&Pt.alternate!==null&&bt.delete(Pt.key===null?At:Pt.key),V=g(Pt,V,At),Bt===null?xt=Pt:Bt.sibling=Pt,Bt=Pt);return n&&bt.forEach(function(Aa){return a(F,Aa)}),Lt&&Oi(F,At),xt}function St(F,V,K,nt){if(K==null)throw Error(s(151));for(var xt=null,Bt=null,bt=V,At=V=0,Pt=null,Vt=K.next();bt!==null&&!Vt.done;At++,Vt=K.next()){bt.index>At?(Pt=bt,bt=null):Pt=bt.sibling;var Aa=Q(F,bt,Vt.value,nt);if(Aa===null){bt===null&&(bt=Pt);break}n&&bt&&Aa.alternate===null&&a(F,bt),V=g(Aa,V,At),Bt===null?xt=Aa:Bt.sibling=Aa,Bt=Aa,bt=Pt}if(Vt.done)return r(F,bt),Lt&&Oi(F,At),xt;if(bt===null){for(;!Vt.done;At++,Vt=K.next())Vt=it(F,Vt.value,nt),Vt!==null&&(V=g(Vt,V,At),Bt===null?xt=Vt:Bt.sibling=Vt,Bt=Vt);return Lt&&Oi(F,At),xt}for(bt=l(bt);!Vt.done;At++,Vt=K.next())Vt=Z(bt,F,At,Vt.value,nt),Vt!==null&&(n&&Vt.alternate!==null&&bt.delete(Vt.key===null?At:Vt.key),V=g(Vt,V,At),Bt===null?xt=Vt:Bt.sibling=Vt,Bt=Vt);return n&&bt.forEach(function(x2){return a(F,x2)}),Lt&&Oi(F,At),xt}function Kt(F,V,K,nt){if(typeof K=="object"&&K!==null&&K.type===w&&K.key===null&&(K=K.props.children),typeof K=="object"&&K!==null){switch(K.$$typeof){case b:t:{for(var xt=K.key;V!==null;){if(V.key===xt){if(xt=K.type,xt===w){if(V.tag===7){r(F,V.sibling),nt=d(V,K.props.children),nt.return=F,F=nt;break t}}else if(V.elementType===xt||typeof xt=="object"&&xt!==null&&xt.$$typeof===L&&vs(xt)===V.type){r(F,V.sibling),nt=d(V,K.props),Wo(nt,K),nt.return=F,F=nt;break t}r(F,V);break}else a(F,V);V=V.sibling}K.type===w?(nt=hs(K.props.children,F.mode,nt,K.key),nt.return=F,F=nt):(nt=Bc(K.type,K.key,K.props,null,F.mode,nt),Wo(nt,K),nt.return=F,F=nt)}return x(F);case E:t:{for(xt=K.key;V!==null;){if(V.key===xt)if(V.tag===4&&V.stateNode.containerInfo===K.containerInfo&&V.stateNode.implementation===K.implementation){r(F,V.sibling),nt=d(V,K.children||[]),nt.return=F,F=nt;break t}else{r(F,V);break}else a(F,V);V=V.sibling}nt=Fd(K,F.mode,nt),nt.return=F,F=nt}return x(F);case L:return K=vs(K),Kt(F,V,K,nt)}if(ot(K))return pt(F,V,K,nt);if(at(K)){if(xt=at(K),typeof xt!="function")throw Error(s(150));return K=xt.call(K),St(F,V,K,nt)}if(typeof K.then=="function")return Kt(F,V,qc(K),nt);if(K.$$typeof===_)return Kt(F,V,Ic(F,K),nt);Yc(F,K)}return typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint"?(K=""+K,V!==null&&V.tag===6?(r(F,V.sibling),nt=d(V,K),nt.return=F,F=nt):(r(F,V),nt=Hd(K,F.mode,nt),nt.return=F,F=nt),x(F)):r(F,V)}return function(F,V,K,nt){try{Zo=0;var xt=Kt(F,V,K,nt);return Rr=null,xt}catch(bt){if(bt===Cr||bt===Fc)throw bt;var Bt=hn(29,bt,null,F.mode);return Bt.lanes=nt,Bt.return=F,Bt}finally{}}}var xs=e0(!0),n0=e0(!1),fa=!1;function eh(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function nh(n,a){n=n.updateQueue,a.updateQueue===n&&(a.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function da(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function ha(n,a,r){var l=n.updateQueue;if(l===null)return null;if(l=l.shared,(It&2)!==0){var d=l.pending;return d===null?a.next=a:(a.next=d.next,d.next=a),l.pending=a,a=zc(n),Vv(n,null,r),a}return kc(n,l,a,r),zc(n)}function Jo(n,a,r){if(a=a.updateQueue,a!==null&&(a=a.shared,(r&4194048)!==0)){var l=a.lanes;l&=n.pendingLanes,r|=l,a.lanes=r,We(n,r)}}function ih(n,a){var r=n.updateQueue,l=n.alternate;if(l!==null&&(l=l.updateQueue,r===l)){var d=null,g=null;if(r=r.firstBaseUpdate,r!==null){do{var x={lane:r.lane,tag:r.tag,payload:r.payload,callback:null,next:null};g===null?d=g=x:g=g.next=x,r=r.next}while(r!==null);g===null?d=g=a:g=g.next=a}else d=g=a;r={baseState:l.baseState,firstBaseUpdate:d,lastBaseUpdate:g,shared:l.shared,callbacks:l.callbacks},n.updateQueue=r;return}n=r.lastBaseUpdate,n===null?r.firstBaseUpdate=a:n.next=a,r.lastBaseUpdate=a}var ah=!1;function tl(){if(ah){var n=Tr;if(n!==null)throw n}}function el(n,a,r,l){ah=!1;var d=n.updateQueue;fa=!1;var g=d.firstBaseUpdate,x=d.lastBaseUpdate,M=d.shared.pending;if(M!==null){d.shared.pending=null;var j=M,X=j.next;j.next=null,x===null?g=X:x.next=X,x=j;var tt=n.alternate;tt!==null&&(tt=tt.updateQueue,M=tt.lastBaseUpdate,M!==x&&(M===null?tt.firstBaseUpdate=X:M.next=X,tt.lastBaseUpdate=j))}if(g!==null){var it=d.baseState;x=0,tt=X=j=null,M=g;do{var Q=M.lane&-536870913,Z=Q!==M.lane;if(Z?(Nt&Q)===Q:(l&Q)===Q){Q!==0&&Q===Er&&(ah=!0),tt!==null&&(tt=tt.next={lane:0,tag:M.tag,payload:M.payload,callback:null,next:null});t:{var pt=n,St=M;Q=a;var Kt=r;switch(St.tag){case 1:if(pt=St.payload,typeof pt=="function"){it=pt.call(Kt,it,Q);break t}it=pt;break t;case 3:pt.flags=pt.flags&-65537|128;case 0:if(pt=St.payload,Q=typeof pt=="function"?pt.call(Kt,it,Q):pt,Q==null)break t;it=p({},it,Q);break t;case 2:fa=!0}}Q=M.callback,Q!==null&&(n.flags|=64,Z&&(n.flags|=8192),Z=d.callbacks,Z===null?d.callbacks=[Q]:Z.push(Q))}else Z={lane:Q,tag:M.tag,payload:M.payload,callback:M.callback,next:null},tt===null?(X=tt=Z,j=it):tt=tt.next=Z,x|=Q;if(M=M.next,M===null){if(M=d.shared.pending,M===null)break;Z=M,M=Z.next,Z.next=null,d.lastBaseUpdate=Z,d.shared.pending=null}}while(!0);tt===null&&(j=it),d.baseState=j,d.firstBaseUpdate=X,d.lastBaseUpdate=tt,g===null&&(d.shared.lanes=0),va|=x,n.lanes=x,n.memoizedState=it}}function i0(n,a){if(typeof n!="function")throw Error(s(191,n));n.call(a)}function a0(n,a){var r=n.callbacks;if(r!==null)for(n.callbacks=null,n=0;n<r.length;n++)i0(r[n],a)}var Mr=O(null),Kc=O(0);function s0(n,a){n=Hi,G(Kc,n),G(Mr,a),Hi=n|a.baseLanes}function sh(){G(Kc,Hi),G(Mr,Mr.current)}function rh(){Hi=Kc.current,k(Mr),k(Kc)}var mn=O(null),On=null;function ma(n){var a=n.alternate;G(ue,ue.current&1),G(mn,n),On===null&&(a===null||Mr.current!==null||a.memoizedState!==null)&&(On=n)}function oh(n){G(ue,ue.current),G(mn,n),On===null&&(On=n)}function r0(n){n.tag===22?(G(ue,ue.current),G(mn,n),On===null&&(On=n)):pa()}function pa(){G(ue,ue.current),G(mn,mn.current)}function pn(n){k(mn),On===n&&(On=null),k(ue)}var ue=O(0);function Xc(n){for(var a=n;a!==null;){if(a.tag===13){var r=a.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||hm(r)||mm(r)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var Li=0,Rt=null,qt=null,he=null,Qc=!1,Ar=!1,Ss=!1,$c=0,nl=0,_r=null,u_=0;function ae(){throw Error(s(321))}function lh(n,a){if(a===null)return!1;for(var r=0;r<a.length&&r<n.length;r++)if(!dn(n[r],a[r]))return!1;return!0}function ch(n,a,r,l,d,g){return Li=g,Rt=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,N.H=n===null||n.memoizedState===null?F0:Th,Ss=!1,g=r(l,d),Ss=!1,Ar&&(g=l0(a,r,l,d)),o0(n),g}function o0(n){N.H=sl;var a=qt!==null&&qt.next!==null;if(Li=0,he=qt=Rt=null,Qc=!1,nl=0,_r=null,a)throw Error(s(300));n===null||me||(n=n.dependencies,n!==null&&Uc(n)&&(me=!0))}function l0(n,a,r,l){Rt=n;var d=0;do{if(Ar&&(_r=null),nl=0,Ar=!1,25<=d)throw Error(s(301));if(d+=1,he=qt=null,n.updateQueue!=null){var g=n.updateQueue;g.lastEffect=null,g.events=null,g.stores=null,g.memoCache!=null&&(g.memoCache.index=0)}N.H=G0,g=a(r,l)}while(Ar);return g}function f_(){var n=N.H,a=n.useState()[0];return a=typeof a.then=="function"?il(a):a,n=n.useState()[0],(qt!==null?qt.memoizedState:null)!==n&&(Rt.flags|=1024),a}function uh(){var n=$c!==0;return $c=0,n}function fh(n,a,r){a.updateQueue=n.updateQueue,a.flags&=-2053,n.lanes&=~r}function dh(n){if(Qc){for(n=n.memoizedState;n!==null;){var a=n.queue;a!==null&&(a.pending=null),n=n.next}Qc=!1}Li=0,he=qt=Rt=null,Ar=!1,nl=$c=0,_r=null}function Ge(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return he===null?Rt.memoizedState=he=n:he=he.next=n,he}function fe(){if(qt===null){var n=Rt.alternate;n=n!==null?n.memoizedState:null}else n=qt.next;var a=he===null?Rt.memoizedState:he.next;if(a!==null)he=a,qt=n;else{if(n===null)throw Rt.alternate===null?Error(s(467)):Error(s(310));qt=n,n={memoizedState:qt.memoizedState,baseState:qt.baseState,baseQueue:qt.baseQueue,queue:qt.queue,next:null},he===null?Rt.memoizedState=he=n:he=he.next=n}return he}function Zc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function il(n){var a=nl;return nl+=1,_r===null&&(_r=[]),n=Wv(_r,n,a),a=Rt,(he===null?a.memoizedState:he.next)===null&&(a=a.alternate,N.H=a===null||a.memoizedState===null?F0:Th),n}function Wc(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return il(n);if(n.$$typeof===_)return Oe(n)}throw Error(s(438,String(n)))}function hh(n){var a=null,r=Rt.updateQueue;if(r!==null&&(a=r.memoCache),a==null){var l=Rt.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(a={data:l.data.map(function(d){return d.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),r===null&&(r=Zc(),Rt.updateQueue=r),r.memoCache=a,r=a.data[a.index],r===void 0)for(r=a.data[a.index]=Array(n),l=0;l<n;l++)r[l]=I;return a.index++,r}function ji(n,a){return typeof a=="function"?a(n):a}function Jc(n){var a=fe();return mh(a,qt,n)}function mh(n,a,r){var l=n.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=r;var d=n.baseQueue,g=l.pending;if(g!==null){if(d!==null){var x=d.next;d.next=g.next,g.next=x}a.baseQueue=d=g,l.pending=null}if(g=n.baseState,d===null)n.memoizedState=g;else{a=d.next;var M=x=null,j=null,X=a,tt=!1;do{var it=X.lane&-536870913;if(it!==X.lane?(Nt&it)===it:(Li&it)===it){var Q=X.revertLane;if(Q===0)j!==null&&(j=j.next={lane:0,revertLane:0,gesture:null,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null}),it===Er&&(tt=!0);else if((Li&Q)===Q){X=X.next,Q===Er&&(tt=!0);continue}else it={lane:0,revertLane:X.revertLane,gesture:null,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null},j===null?(M=j=it,x=g):j=j.next=it,Rt.lanes|=Q,va|=Q;it=X.action,Ss&&r(g,it),g=X.hasEagerState?X.eagerState:r(g,it)}else Q={lane:it,revertLane:X.revertLane,gesture:X.gesture,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null},j===null?(M=j=Q,x=g):j=j.next=Q,Rt.lanes|=it,va|=it;X=X.next}while(X!==null&&X!==a);if(j===null?x=g:j.next=M,!dn(g,n.memoizedState)&&(me=!0,tt&&(r=Tr,r!==null)))throw r;n.memoizedState=g,n.baseState=x,n.baseQueue=j,l.lastRenderedState=g}return d===null&&(l.lanes=0),[n.memoizedState,l.dispatch]}function ph(n){var a=fe(),r=a.queue;if(r===null)throw Error(s(311));r.lastRenderedReducer=n;var l=r.dispatch,d=r.pending,g=a.memoizedState;if(d!==null){r.pending=null;var x=d=d.next;do g=n(g,x.action),x=x.next;while(x!==d);dn(g,a.memoizedState)||(me=!0),a.memoizedState=g,a.baseQueue===null&&(a.baseState=g),r.lastRenderedState=g}return[g,l]}function c0(n,a,r){var l=Rt,d=fe(),g=Lt;if(g){if(r===void 0)throw Error(s(407));r=r()}else r=a();var x=!dn((qt||d).memoizedState,r);if(x&&(d.memoizedState=r,me=!0),d=d.queue,vh(d0.bind(null,l,d,n),[n]),d.getSnapshot!==a||x||he!==null&&he.memoizedState.tag&1){if(l.flags|=2048,Dr(9,{destroy:void 0},f0.bind(null,l,d,r,a),null),Xt===null)throw Error(s(349));g||(Li&127)!==0||u0(l,a,r)}return r}function u0(n,a,r){n.flags|=16384,n={getSnapshot:a,value:r},a=Rt.updateQueue,a===null?(a=Zc(),Rt.updateQueue=a,a.stores=[n]):(r=a.stores,r===null?a.stores=[n]:r.push(n))}function f0(n,a,r,l){a.value=r,a.getSnapshot=l,h0(a)&&m0(n)}function d0(n,a,r){return r(function(){h0(a)&&m0(n)})}function h0(n){var a=n.getSnapshot;n=n.value;try{var r=a();return!dn(n,r)}catch{return!0}}function m0(n){var a=ds(n,2);a!==null&&on(a,n,2)}function gh(n){var a=Ge();if(typeof n=="function"){var r=n;if(n=r(),Ss){Gn(!0);try{r()}finally{Gn(!1)}}}return a.memoizedState=a.baseState=n,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ji,lastRenderedState:n},a}function p0(n,a,r,l){return n.baseState=r,mh(n,qt,typeof l=="function"?l:ji)}function d_(n,a,r,l,d){if(nu(n))throw Error(s(485));if(n=a.action,n!==null){var g={payload:d,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(x){g.listeners.push(x)}};N.T!==null?r(!0):g.isTransition=!1,l(g),r=a.pending,r===null?(g.next=a.pending=g,g0(a,g)):(g.next=r.next,a.pending=r.next=g)}}function g0(n,a){var r=a.action,l=a.payload,d=n.state;if(a.isTransition){var g=N.T,x={};N.T=x;try{var M=r(d,l),j=N.S;j!==null&&j(x,M),y0(n,a,M)}catch(X){yh(n,a,X)}finally{g!==null&&x.types!==null&&(g.types=x.types),N.T=g}}else try{g=r(d,l),y0(n,a,g)}catch(X){yh(n,a,X)}}function y0(n,a,r){r!==null&&typeof r=="object"&&typeof r.then=="function"?r.then(function(l){v0(n,a,l)},function(l){return yh(n,a,l)}):v0(n,a,r)}function v0(n,a,r){a.status="fulfilled",a.value=r,b0(a),n.state=r,a=n.pending,a!==null&&(r=a.next,r===a?n.pending=null:(r=r.next,a.next=r,g0(n,r)))}function yh(n,a,r){var l=n.pending;if(n.pending=null,l!==null){l=l.next;do a.status="rejected",a.reason=r,b0(a),a=a.next;while(a!==l)}n.action=null}function b0(n){n=n.listeners;for(var a=0;a<n.length;a++)(0,n[a])()}function x0(n,a){return a}function S0(n,a){if(Lt){var r=Xt.formState;if(r!==null){t:{var l=Rt;if(Lt){if(Zt){e:{for(var d=Zt,g=Dn;d.nodeType!==8;){if(!g){d=null;break e}if(d=Nn(d.nextSibling),d===null){d=null;break e}}g=d.data,d=g==="F!"||g==="F"?d:null}if(d){Zt=Nn(d.nextSibling),l=d.data==="F!";break t}}ca(l)}l=!1}l&&(a=r[0])}}return r=Ge(),r.memoizedState=r.baseState=a,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:x0,lastRenderedState:a},r.queue=l,r=U0.bind(null,Rt,l),l.dispatch=r,l=gh(!1),g=Eh.bind(null,Rt,!1,l.queue),l=Ge(),d={state:a,dispatch:null,action:n,pending:null},l.queue=d,r=d_.bind(null,Rt,d,g,r),d.dispatch=r,l.memoizedState=n,[a,r,!1]}function w0(n){var a=fe();return E0(a,qt,n)}function E0(n,a,r){if(a=mh(n,a,x0)[0],n=Jc(ji)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var l=il(a)}catch(x){throw x===Cr?Fc:x}else l=a;a=fe();var d=a.queue,g=d.dispatch;return r!==a.memoizedState&&(Rt.flags|=2048,Dr(9,{destroy:void 0},h_.bind(null,d,r),null)),[l,g,n]}function h_(n,a){n.action=a}function T0(n){var a=fe(),r=qt;if(r!==null)return E0(a,r,n);fe(),a=a.memoizedState,r=fe();var l=r.queue.dispatch;return r.memoizedState=n,[a,l,!1]}function Dr(n,a,r,l){return n={tag:n,create:r,deps:l,inst:a,next:null},a=Rt.updateQueue,a===null&&(a=Zc(),Rt.updateQueue=a),r=a.lastEffect,r===null?a.lastEffect=n.next=n:(l=r.next,r.next=n,n.next=l,a.lastEffect=n),n}function C0(){return fe().memoizedState}function tu(n,a,r,l){var d=Ge();Rt.flags|=n,d.memoizedState=Dr(1|a,{destroy:void 0},r,l===void 0?null:l)}function eu(n,a,r,l){var d=fe();l=l===void 0?null:l;var g=d.memoizedState.inst;qt!==null&&l!==null&&lh(l,qt.memoizedState.deps)?d.memoizedState=Dr(a,g,r,l):(Rt.flags|=n,d.memoizedState=Dr(1|a,g,r,l))}function R0(n,a){tu(8390656,8,n,a)}function vh(n,a){eu(2048,8,n,a)}function m_(n){Rt.flags|=4;var a=Rt.updateQueue;if(a===null)a=Zc(),Rt.updateQueue=a,a.events=[n];else{var r=a.events;r===null?a.events=[n]:r.push(n)}}function M0(n){var a=fe().memoizedState;return m_({ref:a,nextImpl:n}),function(){if((It&2)!==0)throw Error(s(440));return a.impl.apply(void 0,arguments)}}function A0(n,a){return eu(4,2,n,a)}function _0(n,a){return eu(4,4,n,a)}function D0(n,a){if(typeof a=="function"){n=n();var r=a(n);return function(){typeof r=="function"?r():a(null)}}if(a!=null)return n=n(),a.current=n,function(){a.current=null}}function O0(n,a,r){r=r!=null?r.concat([n]):null,eu(4,4,D0.bind(null,a,n),r)}function bh(){}function N0(n,a){var r=fe();a=a===void 0?null:a;var l=r.memoizedState;return a!==null&&lh(a,l[1])?l[0]:(r.memoizedState=[n,a],n)}function P0(n,a){var r=fe();a=a===void 0?null:a;var l=r.memoizedState;if(a!==null&&lh(a,l[1]))return l[0];if(l=n(),Ss){Gn(!0);try{n()}finally{Gn(!1)}}return r.memoizedState=[l,a],l}function xh(n,a,r){return r===void 0||(Li&1073741824)!==0&&(Nt&261930)===0?n.memoizedState=a:(n.memoizedState=r,n=Lb(),Rt.lanes|=n,va|=n,r)}function L0(n,a,r,l){return dn(r,a)?r:Mr.current!==null?(n=xh(n,r,l),dn(n,a)||(me=!0),n):(Li&42)===0||(Li&1073741824)!==0&&(Nt&261930)===0?(me=!0,n.memoizedState=r):(n=Lb(),Rt.lanes|=n,va|=n,a)}function j0(n,a,r,l,d){var g=q.p;q.p=g!==0&&8>g?g:8;var x=N.T,M={};N.T=M,Eh(n,!1,a,r);try{var j=d(),X=N.S;if(X!==null&&X(M,j),j!==null&&typeof j=="object"&&typeof j.then=="function"){var tt=c_(j,l);al(n,a,tt,vn(n))}else al(n,a,l,vn(n))}catch(it){al(n,a,{then:function(){},status:"rejected",reason:it},vn())}finally{q.p=g,x!==null&&M.types!==null&&(x.types=M.types),N.T=x}}function p_(){}function Sh(n,a,r,l){if(n.tag!==5)throw Error(s(476));var d=k0(n).queue;j0(n,d,a,H,r===null?p_:function(){return z0(n),r(l)})}function k0(n){var a=n.memoizedState;if(a!==null)return a;a={memoizedState:H,baseState:H,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ji,lastRenderedState:H},next:null};var r={};return a.next={memoizedState:r,baseState:r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ji,lastRenderedState:r},next:null},n.memoizedState=a,n=n.alternate,n!==null&&(n.memoizedState=a),a}function z0(n){var a=k0(n);a.next===null&&(a=n.alternate.memoizedState),al(n,a.next.queue,{},vn())}function wh(){return Oe(Sl)}function B0(){return fe().memoizedState}function V0(){return fe().memoizedState}function g_(n){for(var a=n.return;a!==null;){switch(a.tag){case 24:case 3:var r=vn();n=da(r);var l=ha(a,n,r);l!==null&&(on(l,a,r),Jo(l,a,r)),a={cache:Zd()},n.payload=a;return}a=a.return}}function y_(n,a,r){var l=vn();r={lane:l,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},nu(n)?I0(a,r):(r=Ud(n,a,r,l),r!==null&&(on(r,n,l),H0(r,a,l)))}function U0(n,a,r){var l=vn();al(n,a,r,l)}function al(n,a,r,l){var d={lane:l,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null};if(nu(n))I0(a,d);else{var g=n.alternate;if(n.lanes===0&&(g===null||g.lanes===0)&&(g=a.lastRenderedReducer,g!==null))try{var x=a.lastRenderedState,M=g(x,r);if(d.hasEagerState=!0,d.eagerState=M,dn(M,x))return kc(n,a,d,0),Xt===null&&jc(),!1}catch{}finally{}if(r=Ud(n,a,d,l),r!==null)return on(r,n,l),H0(r,a,l),!0}return!1}function Eh(n,a,r,l){if(l={lane:2,revertLane:em(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},nu(n)){if(a)throw Error(s(479))}else a=Ud(n,r,l,2),a!==null&&on(a,n,2)}function nu(n){var a=n.alternate;return n===Rt||a!==null&&a===Rt}function I0(n,a){Ar=Qc=!0;var r=n.pending;r===null?a.next=a:(a.next=r.next,r.next=a),n.pending=a}function H0(n,a,r){if((r&4194048)!==0){var l=a.lanes;l&=n.pendingLanes,r|=l,a.lanes=r,We(n,r)}}var sl={readContext:Oe,use:Wc,useCallback:ae,useContext:ae,useEffect:ae,useImperativeHandle:ae,useLayoutEffect:ae,useInsertionEffect:ae,useMemo:ae,useReducer:ae,useRef:ae,useState:ae,useDebugValue:ae,useDeferredValue:ae,useTransition:ae,useSyncExternalStore:ae,useId:ae,useHostTransitionStatus:ae,useFormState:ae,useActionState:ae,useOptimistic:ae,useMemoCache:ae,useCacheRefresh:ae};sl.useEffectEvent=ae;var F0={readContext:Oe,use:Wc,useCallback:function(n,a){return Ge().memoizedState=[n,a===void 0?null:a],n},useContext:Oe,useEffect:R0,useImperativeHandle:function(n,a,r){r=r!=null?r.concat([n]):null,tu(4194308,4,D0.bind(null,a,n),r)},useLayoutEffect:function(n,a){return tu(4194308,4,n,a)},useInsertionEffect:function(n,a){tu(4,2,n,a)},useMemo:function(n,a){var r=Ge();a=a===void 0?null:a;var l=n();if(Ss){Gn(!0);try{n()}finally{Gn(!1)}}return r.memoizedState=[l,a],l},useReducer:function(n,a,r){var l=Ge();if(r!==void 0){var d=r(a);if(Ss){Gn(!0);try{r(a)}finally{Gn(!1)}}}else d=a;return l.memoizedState=l.baseState=d,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:d},l.queue=n,n=n.dispatch=y_.bind(null,Rt,n),[l.memoizedState,n]},useRef:function(n){var a=Ge();return n={current:n},a.memoizedState=n},useState:function(n){n=gh(n);var a=n.queue,r=U0.bind(null,Rt,a);return a.dispatch=r,[n.memoizedState,r]},useDebugValue:bh,useDeferredValue:function(n,a){var r=Ge();return xh(r,n,a)},useTransition:function(){var n=gh(!1);return n=j0.bind(null,Rt,n.queue,!0,!1),Ge().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,a,r){var l=Rt,d=Ge();if(Lt){if(r===void 0)throw Error(s(407));r=r()}else{if(r=a(),Xt===null)throw Error(s(349));(Nt&127)!==0||u0(l,a,r)}d.memoizedState=r;var g={value:r,getSnapshot:a};return d.queue=g,R0(d0.bind(null,l,g,n),[n]),l.flags|=2048,Dr(9,{destroy:void 0},f0.bind(null,l,g,r,a),null),r},useId:function(){var n=Ge(),a=Xt.identifierPrefix;if(Lt){var r=li,l=oi;r=(l&~(1<<32-Be(l)-1)).toString(32)+r,a="_"+a+"R_"+r,r=$c++,0<r&&(a+="H"+r.toString(32)),a+="_"}else r=u_++,a="_"+a+"r_"+r.toString(32)+"_";return n.memoizedState=a},useHostTransitionStatus:wh,useFormState:S0,useActionState:S0,useOptimistic:function(n){var a=Ge();a.memoizedState=a.baseState=n;var r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=r,a=Eh.bind(null,Rt,!0,r),r.dispatch=a,[n,a]},useMemoCache:hh,useCacheRefresh:function(){return Ge().memoizedState=g_.bind(null,Rt)},useEffectEvent:function(n){var a=Ge(),r={impl:n};return a.memoizedState=r,function(){if((It&2)!==0)throw Error(s(440));return r.impl.apply(void 0,arguments)}}},Th={readContext:Oe,use:Wc,useCallback:N0,useContext:Oe,useEffect:vh,useImperativeHandle:O0,useInsertionEffect:A0,useLayoutEffect:_0,useMemo:P0,useReducer:Jc,useRef:C0,useState:function(){return Jc(ji)},useDebugValue:bh,useDeferredValue:function(n,a){var r=fe();return L0(r,qt.memoizedState,n,a)},useTransition:function(){var n=Jc(ji)[0],a=fe().memoizedState;return[typeof n=="boolean"?n:il(n),a]},useSyncExternalStore:c0,useId:B0,useHostTransitionStatus:wh,useFormState:w0,useActionState:w0,useOptimistic:function(n,a){var r=fe();return p0(r,qt,n,a)},useMemoCache:hh,useCacheRefresh:V0};Th.useEffectEvent=M0;var G0={readContext:Oe,use:Wc,useCallback:N0,useContext:Oe,useEffect:vh,useImperativeHandle:O0,useInsertionEffect:A0,useLayoutEffect:_0,useMemo:P0,useReducer:ph,useRef:C0,useState:function(){return ph(ji)},useDebugValue:bh,useDeferredValue:function(n,a){var r=fe();return qt===null?xh(r,n,a):L0(r,qt.memoizedState,n,a)},useTransition:function(){var n=ph(ji)[0],a=fe().memoizedState;return[typeof n=="boolean"?n:il(n),a]},useSyncExternalStore:c0,useId:B0,useHostTransitionStatus:wh,useFormState:T0,useActionState:T0,useOptimistic:function(n,a){var r=fe();return qt!==null?p0(r,qt,n,a):(r.baseState=n,[n,r.queue.dispatch])},useMemoCache:hh,useCacheRefresh:V0};G0.useEffectEvent=M0;function Ch(n,a,r,l){a=n.memoizedState,r=r(l,a),r=r==null?a:p({},a,r),n.memoizedState=r,n.lanes===0&&(n.updateQueue.baseState=r)}var Rh={enqueueSetState:function(n,a,r){n=n._reactInternals;var l=vn(),d=da(l);d.payload=a,r!=null&&(d.callback=r),a=ha(n,d,l),a!==null&&(on(a,n,l),Jo(a,n,l))},enqueueReplaceState:function(n,a,r){n=n._reactInternals;var l=vn(),d=da(l);d.tag=1,d.payload=a,r!=null&&(d.callback=r),a=ha(n,d,l),a!==null&&(on(a,n,l),Jo(a,n,l))},enqueueForceUpdate:function(n,a){n=n._reactInternals;var r=vn(),l=da(r);l.tag=2,a!=null&&(l.callback=a),a=ha(n,l,r),a!==null&&(on(a,n,r),Jo(a,n,r))}};function q0(n,a,r,l,d,g,x){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(l,g,x):a.prototype&&a.prototype.isPureReactComponent?!qo(r,l)||!qo(d,g):!0}function Y0(n,a,r,l){n=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(r,l),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(r,l),a.state!==n&&Rh.enqueueReplaceState(a,a.state,null)}function ws(n,a){var r=a;if("ref"in a){r={};for(var l in a)l!=="ref"&&(r[l]=a[l])}if(n=n.defaultProps){r===a&&(r=p({},r));for(var d in n)r[d]===void 0&&(r[d]=n[d])}return r}function K0(n){Lc(n)}function X0(n){console.error(n)}function Q0(n){Lc(n)}function iu(n,a){try{var r=n.onUncaughtError;r(a.value,{componentStack:a.stack})}catch(l){setTimeout(function(){throw l})}}function $0(n,a,r){try{var l=n.onCaughtError;l(r.value,{componentStack:r.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function Mh(n,a,r){return r=da(r),r.tag=3,r.payload={element:null},r.callback=function(){iu(n,a)},r}function Z0(n){return n=da(n),n.tag=3,n}function W0(n,a,r,l){var d=r.type.getDerivedStateFromError;if(typeof d=="function"){var g=l.value;n.payload=function(){return d(g)},n.callback=function(){$0(a,r,l)}}var x=r.stateNode;x!==null&&typeof x.componentDidCatch=="function"&&(n.callback=function(){$0(a,r,l),typeof d!="function"&&(ba===null?ba=new Set([this]):ba.add(this));var M=l.stack;this.componentDidCatch(l.value,{componentStack:M!==null?M:""})})}function v_(n,a,r,l,d){if(r.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(a=r.alternate,a!==null&&wr(a,r,d,!0),r=mn.current,r!==null){switch(r.tag){case 31:case 13:return On===null?pu():r.alternate===null&&se===0&&(se=3),r.flags&=-257,r.flags|=65536,r.lanes=d,l===Gc?r.flags|=16384:(a=r.updateQueue,a===null?r.updateQueue=new Set([l]):a.add(l),Wh(n,l,d)),!1;case 22:return r.flags|=65536,l===Gc?r.flags|=16384:(a=r.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([l])},r.updateQueue=a):(r=a.retryQueue,r===null?a.retryQueue=new Set([l]):r.add(l)),Wh(n,l,d)),!1}throw Error(s(435,r.tag))}return Wh(n,l,d),pu(),!1}if(Lt)return a=mn.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=d,l!==Yd&&(n=Error(s(422),{cause:l}),Xo(Mn(n,r)))):(l!==Yd&&(a=Error(s(423),{cause:l}),Xo(Mn(a,r))),n=n.current.alternate,n.flags|=65536,d&=-d,n.lanes|=d,l=Mn(l,r),d=Mh(n.stateNode,l,d),ih(n,d),se!==4&&(se=2)),!1;var g=Error(s(520),{cause:l});if(g=Mn(g,r),hl===null?hl=[g]:hl.push(g),se!==4&&(se=2),a===null)return!0;l=Mn(l,r),r=a;do{switch(r.tag){case 3:return r.flags|=65536,n=d&-d,r.lanes|=n,n=Mh(r.stateNode,l,n),ih(r,n),!1;case 1:if(a=r.type,g=r.stateNode,(r.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(ba===null||!ba.has(g))))return r.flags|=65536,d&=-d,r.lanes|=d,d=Z0(d),W0(d,n,r,l),ih(r,d),!1}r=r.return}while(r!==null);return!1}var Ah=Error(s(461)),me=!1;function Ne(n,a,r,l){a.child=n===null?n0(a,null,r,l):xs(a,n.child,r,l)}function J0(n,a,r,l,d){r=r.render;var g=a.ref;if("ref"in l){var x={};for(var M in l)M!=="ref"&&(x[M]=l[M])}else x=l;return gs(a),l=ch(n,a,r,x,g,d),M=uh(),n!==null&&!me?(fh(n,a,d),ki(n,a,d)):(Lt&&M&&Gd(a),a.flags|=1,Ne(n,a,l,d),a.child)}function tb(n,a,r,l,d){if(n===null){var g=r.type;return typeof g=="function"&&!Id(g)&&g.defaultProps===void 0&&r.compare===null?(a.tag=15,a.type=g,eb(n,a,g,l,d)):(n=Bc(r.type,null,l,a,a.mode,d),n.ref=a.ref,n.return=a,a.child=n)}if(g=n.child,!kh(n,d)){var x=g.memoizedProps;if(r=r.compare,r=r!==null?r:qo,r(x,l)&&n.ref===a.ref)return ki(n,a,d)}return a.flags|=1,n=Di(g,l),n.ref=a.ref,n.return=a,a.child=n}function eb(n,a,r,l,d){if(n!==null){var g=n.memoizedProps;if(qo(g,l)&&n.ref===a.ref)if(me=!1,a.pendingProps=l=g,kh(n,d))(n.flags&131072)!==0&&(me=!0);else return a.lanes=n.lanes,ki(n,a,d)}return _h(n,a,r,l,d)}function nb(n,a,r,l){var d=l.children,g=n!==null?n.memoizedState:null;if(n===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((a.flags&128)!==0){if(g=g!==null?g.baseLanes|r:r,n!==null){for(l=a.child=n.child,d=0;l!==null;)d=d|l.lanes|l.childLanes,l=l.sibling;l=d&~g}else l=0,a.child=null;return ib(n,a,g,r,l)}if((r&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},n!==null&&Hc(a,g!==null?g.cachePool:null),g!==null?s0(a,g):sh(),r0(a);else return l=a.lanes=536870912,ib(n,a,g!==null?g.baseLanes|r:r,r,l)}else g!==null?(Hc(a,g.cachePool),s0(a,g),pa(),a.memoizedState=null):(n!==null&&Hc(a,null),sh(),pa());return Ne(n,a,d,r),a.child}function rl(n,a){return n!==null&&n.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function ib(n,a,r,l,d){var g=Jd();return g=g===null?null:{parent:de._currentValue,pool:g},a.memoizedState={baseLanes:r,cachePool:g},n!==null&&Hc(a,null),sh(),r0(a),n!==null&&wr(n,a,l,!0),a.childLanes=d,null}function au(n,a){return a=ru({mode:a.mode,children:a.children},n.mode),a.ref=n.ref,n.child=a,a.return=n,a}function ab(n,a,r){return xs(a,n.child,null,r),n=au(a,a.pendingProps),n.flags|=2,pn(a),a.memoizedState=null,n}function b_(n,a,r){var l=a.pendingProps,d=(a.flags&128)!==0;if(a.flags&=-129,n===null){if(Lt){if(l.mode==="hidden")return n=au(a,l),a.lanes=536870912,rl(null,n);if(oh(a),(n=Zt)?(n=gx(n,Dn),n=n!==null&&n.data==="&"?n:null,n!==null&&(a.memoizedState={dehydrated:n,treeContext:oa!==null?{id:oi,overflow:li}:null,retryLane:536870912,hydrationErrors:null},r=Iv(n),r.return=a,a.child=r,De=a,Zt=null)):n=null,n===null)throw ca(a);return a.lanes=536870912,null}return au(a,l)}var g=n.memoizedState;if(g!==null){var x=g.dehydrated;if(oh(a),d)if(a.flags&256)a.flags&=-257,a=ab(n,a,r);else if(a.memoizedState!==null)a.child=n.child,a.flags|=128,a=null;else throw Error(s(558));else if(me||wr(n,a,r,!1),d=(r&n.childLanes)!==0,me||d){if(l=Xt,l!==null&&(x=Je(l,r),x!==0&&x!==g.retryLane))throw g.retryLane=x,ds(n,x),on(l,n,x),Ah;pu(),a=ab(n,a,r)}else n=g.treeContext,Zt=Nn(x.nextSibling),De=a,Lt=!0,la=null,Dn=!1,n!==null&&Gv(a,n),a=au(a,l),a.flags|=4096;return a}return n=Di(n.child,{mode:l.mode,children:l.children}),n.ref=a.ref,a.child=n,n.return=a,n}function su(n,a){var r=a.ref;if(r===null)n!==null&&n.ref!==null&&(a.flags|=4194816);else{if(typeof r!="function"&&typeof r!="object")throw Error(s(284));(n===null||n.ref!==r)&&(a.flags|=4194816)}}function _h(n,a,r,l,d){return gs(a),r=ch(n,a,r,l,void 0,d),l=uh(),n!==null&&!me?(fh(n,a,d),ki(n,a,d)):(Lt&&l&&Gd(a),a.flags|=1,Ne(n,a,r,d),a.child)}function sb(n,a,r,l,d,g){return gs(a),a.updateQueue=null,r=l0(a,l,r,d),o0(n),l=uh(),n!==null&&!me?(fh(n,a,g),ki(n,a,g)):(Lt&&l&&Gd(a),a.flags|=1,Ne(n,a,r,g),a.child)}function rb(n,a,r,l,d){if(gs(a),a.stateNode===null){var g=vr,x=r.contextType;typeof x=="object"&&x!==null&&(g=Oe(x)),g=new r(l,g),a.memoizedState=g.state!==null&&g.state!==void 0?g.state:null,g.updater=Rh,a.stateNode=g,g._reactInternals=a,g=a.stateNode,g.props=l,g.state=a.memoizedState,g.refs={},eh(a),x=r.contextType,g.context=typeof x=="object"&&x!==null?Oe(x):vr,g.state=a.memoizedState,x=r.getDerivedStateFromProps,typeof x=="function"&&(Ch(a,r,x,l),g.state=a.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof g.getSnapshotBeforeUpdate=="function"||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(x=g.state,typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount(),x!==g.state&&Rh.enqueueReplaceState(g,g.state,null),el(a,l,g,d),tl(),g.state=a.memoizedState),typeof g.componentDidMount=="function"&&(a.flags|=4194308),l=!0}else if(n===null){g=a.stateNode;var M=a.memoizedProps,j=ws(r,M);g.props=j;var X=g.context,tt=r.contextType;x=vr,typeof tt=="object"&&tt!==null&&(x=Oe(tt));var it=r.getDerivedStateFromProps;tt=typeof it=="function"||typeof g.getSnapshotBeforeUpdate=="function",M=a.pendingProps!==M,tt||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(M||X!==x)&&Y0(a,g,l,x),fa=!1;var Q=a.memoizedState;g.state=Q,el(a,l,g,d),tl(),X=a.memoizedState,M||Q!==X||fa?(typeof it=="function"&&(Ch(a,r,it,l),X=a.memoizedState),(j=fa||q0(a,r,j,l,Q,X,x))?(tt||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(a.flags|=4194308)):(typeof g.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=l,a.memoizedState=X),g.props=l,g.state=X,g.context=x,l=j):(typeof g.componentDidMount=="function"&&(a.flags|=4194308),l=!1)}else{g=a.stateNode,nh(n,a),x=a.memoizedProps,tt=ws(r,x),g.props=tt,it=a.pendingProps,Q=g.context,X=r.contextType,j=vr,typeof X=="object"&&X!==null&&(j=Oe(X)),M=r.getDerivedStateFromProps,(X=typeof M=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(x!==it||Q!==j)&&Y0(a,g,l,j),fa=!1,Q=a.memoizedState,g.state=Q,el(a,l,g,d),tl();var Z=a.memoizedState;x!==it||Q!==Z||fa||n!==null&&n.dependencies!==null&&Uc(n.dependencies)?(typeof M=="function"&&(Ch(a,r,M,l),Z=a.memoizedState),(tt=fa||q0(a,r,tt,l,Q,Z,j)||n!==null&&n.dependencies!==null&&Uc(n.dependencies))?(X||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(l,Z,j),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(l,Z,j)),typeof g.componentDidUpdate=="function"&&(a.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof g.componentDidUpdate!="function"||x===n.memoizedProps&&Q===n.memoizedState||(a.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||x===n.memoizedProps&&Q===n.memoizedState||(a.flags|=1024),a.memoizedProps=l,a.memoizedState=Z),g.props=l,g.state=Z,g.context=j,l=tt):(typeof g.componentDidUpdate!="function"||x===n.memoizedProps&&Q===n.memoizedState||(a.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||x===n.memoizedProps&&Q===n.memoizedState||(a.flags|=1024),l=!1)}return g=l,su(n,a),l=(a.flags&128)!==0,g||l?(g=a.stateNode,r=l&&typeof r.getDerivedStateFromError!="function"?null:g.render(),a.flags|=1,n!==null&&l?(a.child=xs(a,n.child,null,d),a.child=xs(a,null,r,d)):Ne(n,a,r,d),a.memoizedState=g.state,n=a.child):n=ki(n,a,d),n}function ob(n,a,r,l){return ms(),a.flags|=256,Ne(n,a,r,l),a.child}var Dh={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Oh(n){return{baseLanes:n,cachePool:$v()}}function Nh(n,a,r){return n=n!==null?n.childLanes&~r:0,a&&(n|=yn),n}function lb(n,a,r){var l=a.pendingProps,d=!1,g=(a.flags&128)!==0,x;if((x=g)||(x=n!==null&&n.memoizedState===null?!1:(ue.current&2)!==0),x&&(d=!0,a.flags&=-129),x=(a.flags&32)!==0,a.flags&=-33,n===null){if(Lt){if(d?ma(a):pa(),(n=Zt)?(n=gx(n,Dn),n=n!==null&&n.data!=="&"?n:null,n!==null&&(a.memoizedState={dehydrated:n,treeContext:oa!==null?{id:oi,overflow:li}:null,retryLane:536870912,hydrationErrors:null},r=Iv(n),r.return=a,a.child=r,De=a,Zt=null)):n=null,n===null)throw ca(a);return mm(n)?a.lanes=32:a.lanes=536870912,null}var M=l.children;return l=l.fallback,d?(pa(),d=a.mode,M=ru({mode:"hidden",children:M},d),l=hs(l,d,r,null),M.return=a,l.return=a,M.sibling=l,a.child=M,l=a.child,l.memoizedState=Oh(r),l.childLanes=Nh(n,x,r),a.memoizedState=Dh,rl(null,l)):(ma(a),Ph(a,M))}var j=n.memoizedState;if(j!==null&&(M=j.dehydrated,M!==null)){if(g)a.flags&256?(ma(a),a.flags&=-257,a=Lh(n,a,r)):a.memoizedState!==null?(pa(),a.child=n.child,a.flags|=128,a=null):(pa(),M=l.fallback,d=a.mode,l=ru({mode:"visible",children:l.children},d),M=hs(M,d,r,null),M.flags|=2,l.return=a,M.return=a,l.sibling=M,a.child=l,xs(a,n.child,null,r),l=a.child,l.memoizedState=Oh(r),l.childLanes=Nh(n,x,r),a.memoizedState=Dh,a=rl(null,l));else if(ma(a),mm(M)){if(x=M.nextSibling&&M.nextSibling.dataset,x)var X=x.dgst;x=X,l=Error(s(419)),l.stack="",l.digest=x,Xo({value:l,source:null,stack:null}),a=Lh(n,a,r)}else if(me||wr(n,a,r,!1),x=(r&n.childLanes)!==0,me||x){if(x=Xt,x!==null&&(l=Je(x,r),l!==0&&l!==j.retryLane))throw j.retryLane=l,ds(n,l),on(x,n,l),Ah;hm(M)||pu(),a=Lh(n,a,r)}else hm(M)?(a.flags|=192,a.child=n.child,a=null):(n=j.treeContext,Zt=Nn(M.nextSibling),De=a,Lt=!0,la=null,Dn=!1,n!==null&&Gv(a,n),a=Ph(a,l.children),a.flags|=4096);return a}return d?(pa(),M=l.fallback,d=a.mode,j=n.child,X=j.sibling,l=Di(j,{mode:"hidden",children:l.children}),l.subtreeFlags=j.subtreeFlags&65011712,X!==null?M=Di(X,M):(M=hs(M,d,r,null),M.flags|=2),M.return=a,l.return=a,l.sibling=M,a.child=l,rl(null,l),l=a.child,M=n.child.memoizedState,M===null?M=Oh(r):(d=M.cachePool,d!==null?(j=de._currentValue,d=d.parent!==j?{parent:j,pool:j}:d):d=$v(),M={baseLanes:M.baseLanes|r,cachePool:d}),l.memoizedState=M,l.childLanes=Nh(n,x,r),a.memoizedState=Dh,rl(n.child,l)):(ma(a),r=n.child,n=r.sibling,r=Di(r,{mode:"visible",children:l.children}),r.return=a,r.sibling=null,n!==null&&(x=a.deletions,x===null?(a.deletions=[n],a.flags|=16):x.push(n)),a.child=r,a.memoizedState=null,r)}function Ph(n,a){return a=ru({mode:"visible",children:a},n.mode),a.return=n,n.child=a}function ru(n,a){return n=hn(22,n,null,a),n.lanes=0,n}function Lh(n,a,r){return xs(a,n.child,null,r),n=Ph(a,a.pendingProps.children),n.flags|=2,a.memoizedState=null,n}function cb(n,a,r){n.lanes|=a;var l=n.alternate;l!==null&&(l.lanes|=a),Qd(n.return,a,r)}function jh(n,a,r,l,d,g){var x=n.memoizedState;x===null?n.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:l,tail:r,tailMode:d,treeForkCount:g}:(x.isBackwards=a,x.rendering=null,x.renderingStartTime=0,x.last=l,x.tail=r,x.tailMode=d,x.treeForkCount=g)}function ub(n,a,r){var l=a.pendingProps,d=l.revealOrder,g=l.tail;l=l.children;var x=ue.current,M=(x&2)!==0;if(M?(x=x&1|2,a.flags|=128):x&=1,G(ue,x),Ne(n,a,l,r),l=Lt?Ko:0,!M&&n!==null&&(n.flags&128)!==0)t:for(n=a.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&cb(n,r,a);else if(n.tag===19)cb(n,r,a);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===a)break t;for(;n.sibling===null;){if(n.return===null||n.return===a)break t;n=n.return}n.sibling.return=n.return,n=n.sibling}switch(d){case"forwards":for(r=a.child,d=null;r!==null;)n=r.alternate,n!==null&&Xc(n)===null&&(d=r),r=r.sibling;r=d,r===null?(d=a.child,a.child=null):(d=r.sibling,r.sibling=null),jh(a,!1,d,r,g,l);break;case"backwards":case"unstable_legacy-backwards":for(r=null,d=a.child,a.child=null;d!==null;){if(n=d.alternate,n!==null&&Xc(n)===null){a.child=d;break}n=d.sibling,d.sibling=r,r=d,d=n}jh(a,!0,r,null,g,l);break;case"together":jh(a,!1,null,null,void 0,l);break;default:a.memoizedState=null}return a.child}function ki(n,a,r){if(n!==null&&(a.dependencies=n.dependencies),va|=a.lanes,(r&a.childLanes)===0)if(n!==null){if(wr(n,a,r,!1),(r&a.childLanes)===0)return null}else return null;if(n!==null&&a.child!==n.child)throw Error(s(153));if(a.child!==null){for(n=a.child,r=Di(n,n.pendingProps),a.child=r,r.return=a;n.sibling!==null;)n=n.sibling,r=r.sibling=Di(n,n.pendingProps),r.return=a;r.sibling=null}return a.child}function kh(n,a){return(n.lanes&a)!==0?!0:(n=n.dependencies,!!(n!==null&&Uc(n)))}function x_(n,a,r){switch(a.tag){case 3:dt(a,a.stateNode.containerInfo),ua(a,de,n.memoizedState.cache),ms();break;case 27:case 5:Ut(a);break;case 4:dt(a,a.stateNode.containerInfo);break;case 10:ua(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,oh(a),null;break;case 13:var l=a.memoizedState;if(l!==null)return l.dehydrated!==null?(ma(a),a.flags|=128,null):(r&a.child.childLanes)!==0?lb(n,a,r):(ma(a),n=ki(n,a,r),n!==null?n.sibling:null);ma(a);break;case 19:var d=(n.flags&128)!==0;if(l=(r&a.childLanes)!==0,l||(wr(n,a,r,!1),l=(r&a.childLanes)!==0),d){if(l)return ub(n,a,r);a.flags|=128}if(d=a.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),G(ue,ue.current),l)break;return null;case 22:return a.lanes=0,nb(n,a,r,a.pendingProps);case 24:ua(a,de,n.memoizedState.cache)}return ki(n,a,r)}function fb(n,a,r){if(n!==null)if(n.memoizedProps!==a.pendingProps)me=!0;else{if(!kh(n,r)&&(a.flags&128)===0)return me=!1,x_(n,a,r);me=(n.flags&131072)!==0}else me=!1,Lt&&(a.flags&1048576)!==0&&Fv(a,Ko,a.index);switch(a.lanes=0,a.tag){case 16:t:{var l=a.pendingProps;if(n=vs(a.elementType),a.type=n,typeof n=="function")Id(n)?(l=ws(n,l),a.tag=1,a=rb(null,a,n,l,r)):(a.tag=0,a=_h(null,a,n,l,r));else{if(n!=null){var d=n.$$typeof;if(d===A){a.tag=11,a=J0(null,a,n,l,r);break t}else if(d===z){a.tag=14,a=tb(null,a,n,l,r);break t}}throw a=ft(n)||n,Error(s(306,a,""))}}return a;case 0:return _h(n,a,a.type,a.pendingProps,r);case 1:return l=a.type,d=ws(l,a.pendingProps),rb(n,a,l,d,r);case 3:t:{if(dt(a,a.stateNode.containerInfo),n===null)throw Error(s(387));l=a.pendingProps;var g=a.memoizedState;d=g.element,nh(n,a),el(a,l,null,r);var x=a.memoizedState;if(l=x.cache,ua(a,de,l),l!==g.cache&&$d(a,[de],r,!0),tl(),l=x.element,g.isDehydrated)if(g={element:l,isDehydrated:!1,cache:x.cache},a.updateQueue.baseState=g,a.memoizedState=g,a.flags&256){a=ob(n,a,l,r);break t}else if(l!==d){d=Mn(Error(s(424)),a),Xo(d),a=ob(n,a,l,r);break t}else{switch(n=a.stateNode.containerInfo,n.nodeType){case 9:n=n.body;break;default:n=n.nodeName==="HTML"?n.ownerDocument.body:n}for(Zt=Nn(n.firstChild),De=a,Lt=!0,la=null,Dn=!0,r=n0(a,null,l,r),a.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling}else{if(ms(),l===d){a=ki(n,a,r);break t}Ne(n,a,l,r)}a=a.child}return a;case 26:return su(n,a),n===null?(r=wx(a.type,null,a.pendingProps,null))?a.memoizedState=r:Lt||(r=a.type,n=a.pendingProps,l=wu(lt.current).createElement(r),l[_e]=a,l[tn]=n,Pe(l,r,n),Ce(l),a.stateNode=l):a.memoizedState=wx(a.type,n.memoizedProps,a.pendingProps,n.memoizedState),null;case 27:return Ut(a),n===null&&Lt&&(l=a.stateNode=bx(a.type,a.pendingProps,lt.current),De=a,Dn=!0,d=Zt,Ea(a.type)?(pm=d,Zt=Nn(l.firstChild)):Zt=d),Ne(n,a,a.pendingProps.children,r),su(n,a),n===null&&(a.flags|=4194304),a.child;case 5:return n===null&&Lt&&((d=l=Zt)&&(l=$_(l,a.type,a.pendingProps,Dn),l!==null?(a.stateNode=l,De=a,Zt=Nn(l.firstChild),Dn=!1,d=!0):d=!1),d||ca(a)),Ut(a),d=a.type,g=a.pendingProps,x=n!==null?n.memoizedProps:null,l=g.children,um(d,g)?l=null:x!==null&&um(d,x)&&(a.flags|=32),a.memoizedState!==null&&(d=ch(n,a,f_,null,null,r),Sl._currentValue=d),su(n,a),Ne(n,a,l,r),a.child;case 6:return n===null&&Lt&&((n=r=Zt)&&(r=Z_(r,a.pendingProps,Dn),r!==null?(a.stateNode=r,De=a,Zt=null,n=!0):n=!1),n||ca(a)),null;case 13:return lb(n,a,r);case 4:return dt(a,a.stateNode.containerInfo),l=a.pendingProps,n===null?a.child=xs(a,null,l,r):Ne(n,a,l,r),a.child;case 11:return J0(n,a,a.type,a.pendingProps,r);case 7:return Ne(n,a,a.pendingProps,r),a.child;case 8:return Ne(n,a,a.pendingProps.children,r),a.child;case 12:return Ne(n,a,a.pendingProps.children,r),a.child;case 10:return l=a.pendingProps,ua(a,a.type,l.value),Ne(n,a,l.children,r),a.child;case 9:return d=a.type._context,l=a.pendingProps.children,gs(a),d=Oe(d),l=l(d),a.flags|=1,Ne(n,a,l,r),a.child;case 14:return tb(n,a,a.type,a.pendingProps,r);case 15:return eb(n,a,a.type,a.pendingProps,r);case 19:return ub(n,a,r);case 31:return b_(n,a,r);case 22:return nb(n,a,r,a.pendingProps);case 24:return gs(a),l=Oe(de),n===null?(d=Jd(),d===null&&(d=Xt,g=Zd(),d.pooledCache=g,g.refCount++,g!==null&&(d.pooledCacheLanes|=r),d=g),a.memoizedState={parent:l,cache:d},eh(a),ua(a,de,d)):((n.lanes&r)!==0&&(nh(n,a),el(a,null,null,r),tl()),d=n.memoizedState,g=a.memoizedState,d.parent!==l?(d={parent:l,cache:l},a.memoizedState=d,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=d),ua(a,de,l)):(l=g.cache,ua(a,de,l),l!==d.cache&&$d(a,[de],r,!0))),Ne(n,a,a.pendingProps.children,r),a.child;case 29:throw a.pendingProps}throw Error(s(156,a.tag))}function zi(n){n.flags|=4}function zh(n,a,r,l,d){if((a=(n.mode&32)!==0)&&(a=!1),a){if(n.flags|=16777216,(d&335544128)===d)if(n.stateNode.complete)n.flags|=8192;else if(Bb())n.flags|=8192;else throw bs=Gc,th}else n.flags&=-16777217}function db(n,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!Mx(a))if(Bb())n.flags|=8192;else throw bs=Gc,th}function ou(n,a){a!==null&&(n.flags|=4),n.flags&16384&&(a=n.tag!==22?Ve():536870912,n.lanes|=a,Lr|=a)}function ol(n,a){if(!Lt)switch(n.tailMode){case"hidden":a=n.tail;for(var r=null;a!==null;)a.alternate!==null&&(r=a),a=a.sibling;r===null?n.tail=null:r.sibling=null;break;case"collapsed":r=n.tail;for(var l=null;r!==null;)r.alternate!==null&&(l=r),r=r.sibling;l===null?a||n.tail===null?n.tail=null:n.tail.sibling=null:l.sibling=null}}function Wt(n){var a=n.alternate!==null&&n.alternate.child===n.child,r=0,l=0;if(a)for(var d=n.child;d!==null;)r|=d.lanes|d.childLanes,l|=d.subtreeFlags&65011712,l|=d.flags&65011712,d.return=n,d=d.sibling;else for(d=n.child;d!==null;)r|=d.lanes|d.childLanes,l|=d.subtreeFlags,l|=d.flags,d.return=n,d=d.sibling;return n.subtreeFlags|=l,n.childLanes=r,a}function S_(n,a,r){var l=a.pendingProps;switch(qd(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Wt(a),null;case 1:return Wt(a),null;case 3:return r=a.stateNode,l=null,n!==null&&(l=n.memoizedState.cache),a.memoizedState.cache!==l&&(a.flags|=2048),Pi(de),mt(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(n===null||n.child===null)&&(Sr(a)?zi(a):n===null||n.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,Kd())),Wt(a),null;case 26:var d=a.type,g=a.memoizedState;return n===null?(zi(a),g!==null?(Wt(a),db(a,g)):(Wt(a),zh(a,d,null,l,r))):g?g!==n.memoizedState?(zi(a),Wt(a),db(a,g)):(Wt(a),a.flags&=-16777217):(n=n.memoizedProps,n!==l&&zi(a),Wt(a),zh(a,d,n,l,r)),null;case 27:if(le(a),r=lt.current,d=a.type,n!==null&&a.stateNode!=null)n.memoizedProps!==l&&zi(a);else{if(!l){if(a.stateNode===null)throw Error(s(166));return Wt(a),null}n=$.current,Sr(a)?qv(a):(n=bx(d,l,r),a.stateNode=n,zi(a))}return Wt(a),null;case 5:if(le(a),d=a.type,n!==null&&a.stateNode!=null)n.memoizedProps!==l&&zi(a);else{if(!l){if(a.stateNode===null)throw Error(s(166));return Wt(a),null}if(g=$.current,Sr(a))qv(a);else{var x=wu(lt.current);switch(g){case 1:g=x.createElementNS("http://www.w3.org/2000/svg",d);break;case 2:g=x.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;default:switch(d){case"svg":g=x.createElementNS("http://www.w3.org/2000/svg",d);break;case"math":g=x.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;case"script":g=x.createElement("div"),g.innerHTML="<script><\/script>",g=g.removeChild(g.firstChild);break;case"select":g=typeof l.is=="string"?x.createElement("select",{is:l.is}):x.createElement("select"),l.multiple?g.multiple=!0:l.size&&(g.size=l.size);break;default:g=typeof l.is=="string"?x.createElement(d,{is:l.is}):x.createElement(d)}}g[_e]=a,g[tn]=l;t:for(x=a.child;x!==null;){if(x.tag===5||x.tag===6)g.appendChild(x.stateNode);else if(x.tag!==4&&x.tag!==27&&x.child!==null){x.child.return=x,x=x.child;continue}if(x===a)break t;for(;x.sibling===null;){if(x.return===null||x.return===a)break t;x=x.return}x.sibling.return=x.return,x=x.sibling}a.stateNode=g;t:switch(Pe(g,d,l),d){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break t;case"img":l=!0;break t;default:l=!1}l&&zi(a)}}return Wt(a),zh(a,a.type,n===null?null:n.memoizedProps,a.pendingProps,r),null;case 6:if(n&&a.stateNode!=null)n.memoizedProps!==l&&zi(a);else{if(typeof l!="string"&&a.stateNode===null)throw Error(s(166));if(n=lt.current,Sr(a)){if(n=a.stateNode,r=a.memoizedProps,l=null,d=De,d!==null)switch(d.tag){case 27:case 5:l=d.memoizedProps}n[_e]=a,n=!!(n.nodeValue===r||l!==null&&l.suppressHydrationWarning===!0||lx(n.nodeValue,r)),n||ca(a,!0)}else n=wu(n).createTextNode(l),n[_e]=a,a.stateNode=n}return Wt(a),null;case 31:if(r=a.memoizedState,n===null||n.memoizedState!==null){if(l=Sr(a),r!==null){if(n===null){if(!l)throw Error(s(318));if(n=a.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(s(557));n[_e]=a}else ms(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Wt(a),n=!1}else r=Kd(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=r),n=!0;if(!n)return a.flags&256?(pn(a),a):(pn(a),null);if((a.flags&128)!==0)throw Error(s(558))}return Wt(a),null;case 13:if(l=a.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(d=Sr(a),l!==null&&l.dehydrated!==null){if(n===null){if(!d)throw Error(s(318));if(d=a.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(s(317));d[_e]=a}else ms(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Wt(a),d=!1}else d=Kd(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=d),d=!0;if(!d)return a.flags&256?(pn(a),a):(pn(a),null)}return pn(a),(a.flags&128)!==0?(a.lanes=r,a):(r=l!==null,n=n!==null&&n.memoizedState!==null,r&&(l=a.child,d=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(d=l.alternate.memoizedState.cachePool.pool),g=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(g=l.memoizedState.cachePool.pool),g!==d&&(l.flags|=2048)),r!==n&&r&&(a.child.flags|=8192),ou(a,a.updateQueue),Wt(a),null);case 4:return mt(),n===null&&sm(a.stateNode.containerInfo),Wt(a),null;case 10:return Pi(a.type),Wt(a),null;case 19:if(k(ue),l=a.memoizedState,l===null)return Wt(a),null;if(d=(a.flags&128)!==0,g=l.rendering,g===null)if(d)ol(l,!1);else{if(se!==0||n!==null&&(n.flags&128)!==0)for(n=a.child;n!==null;){if(g=Xc(n),g!==null){for(a.flags|=128,ol(l,!1),n=g.updateQueue,a.updateQueue=n,ou(a,n),a.subtreeFlags=0,n=r,r=a.child;r!==null;)Uv(r,n),r=r.sibling;return G(ue,ue.current&1|2),Lt&&Oi(a,l.treeForkCount),a.child}n=n.sibling}l.tail!==null&&Ae()>du&&(a.flags|=128,d=!0,ol(l,!1),a.lanes=4194304)}else{if(!d)if(n=Xc(g),n!==null){if(a.flags|=128,d=!0,n=n.updateQueue,a.updateQueue=n,ou(a,n),ol(l,!0),l.tail===null&&l.tailMode==="hidden"&&!g.alternate&&!Lt)return Wt(a),null}else 2*Ae()-l.renderingStartTime>du&&r!==536870912&&(a.flags|=128,d=!0,ol(l,!1),a.lanes=4194304);l.isBackwards?(g.sibling=a.child,a.child=g):(n=l.last,n!==null?n.sibling=g:a.child=g,l.last=g)}return l.tail!==null?(n=l.tail,l.rendering=n,l.tail=n.sibling,l.renderingStartTime=Ae(),n.sibling=null,r=ue.current,G(ue,d?r&1|2:r&1),Lt&&Oi(a,l.treeForkCount),n):(Wt(a),null);case 22:case 23:return pn(a),rh(),l=a.memoizedState!==null,n!==null?n.memoizedState!==null!==l&&(a.flags|=8192):l&&(a.flags|=8192),l?(r&536870912)!==0&&(a.flags&128)===0&&(Wt(a),a.subtreeFlags&6&&(a.flags|=8192)):Wt(a),r=a.updateQueue,r!==null&&ou(a,r.retryQueue),r=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(r=n.memoizedState.cachePool.pool),l=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(l=a.memoizedState.cachePool.pool),l!==r&&(a.flags|=2048),n!==null&&k(ys),null;case 24:return r=null,n!==null&&(r=n.memoizedState.cache),a.memoizedState.cache!==r&&(a.flags|=2048),Pi(de),Wt(a),null;case 25:return null;case 30:return null}throw Error(s(156,a.tag))}function w_(n,a){switch(qd(a),a.tag){case 1:return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 3:return Pi(de),mt(),n=a.flags,(n&65536)!==0&&(n&128)===0?(a.flags=n&-65537|128,a):null;case 26:case 27:case 5:return le(a),null;case 31:if(a.memoizedState!==null){if(pn(a),a.alternate===null)throw Error(s(340));ms()}return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 13:if(pn(a),n=a.memoizedState,n!==null&&n.dehydrated!==null){if(a.alternate===null)throw Error(s(340));ms()}return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 19:return k(ue),null;case 4:return mt(),null;case 10:return Pi(a.type),null;case 22:case 23:return pn(a),rh(),n!==null&&k(ys),n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 24:return Pi(de),null;case 25:return null;default:return null}}function hb(n,a){switch(qd(a),a.tag){case 3:Pi(de),mt();break;case 26:case 27:case 5:le(a);break;case 4:mt();break;case 31:a.memoizedState!==null&&pn(a);break;case 13:pn(a);break;case 19:k(ue);break;case 10:Pi(a.type);break;case 22:case 23:pn(a),rh(),n!==null&&k(ys);break;case 24:Pi(de)}}function ll(n,a){try{var r=a.updateQueue,l=r!==null?r.lastEffect:null;if(l!==null){var d=l.next;r=d;do{if((r.tag&n)===n){l=void 0;var g=r.create,x=r.inst;l=g(),x.destroy=l}r=r.next}while(r!==d)}}catch(M){Gt(a,a.return,M)}}function ga(n,a,r){try{var l=a.updateQueue,d=l!==null?l.lastEffect:null;if(d!==null){var g=d.next;l=g;do{if((l.tag&n)===n){var x=l.inst,M=x.destroy;if(M!==void 0){x.destroy=void 0,d=a;var j=r,X=M;try{X()}catch(tt){Gt(d,j,tt)}}}l=l.next}while(l!==g)}}catch(tt){Gt(a,a.return,tt)}}function mb(n){var a=n.updateQueue;if(a!==null){var r=n.stateNode;try{a0(a,r)}catch(l){Gt(n,n.return,l)}}}function pb(n,a,r){r.props=ws(n.type,n.memoizedProps),r.state=n.memoizedState;try{r.componentWillUnmount()}catch(l){Gt(n,a,l)}}function cl(n,a){try{var r=n.ref;if(r!==null){switch(n.tag){case 26:case 27:case 5:var l=n.stateNode;break;case 30:l=n.stateNode;break;default:l=n.stateNode}typeof r=="function"?n.refCleanup=r(l):r.current=l}}catch(d){Gt(n,a,d)}}function ci(n,a){var r=n.ref,l=n.refCleanup;if(r!==null)if(typeof l=="function")try{l()}catch(d){Gt(n,a,d)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof r=="function")try{r(null)}catch(d){Gt(n,a,d)}else r.current=null}function gb(n){var a=n.type,r=n.memoizedProps,l=n.stateNode;try{t:switch(a){case"button":case"input":case"select":case"textarea":r.autoFocus&&l.focus();break t;case"img":r.src?l.src=r.src:r.srcSet&&(l.srcset=r.srcSet)}}catch(d){Gt(n,n.return,d)}}function Bh(n,a,r){try{var l=n.stateNode;G_(l,n.type,r,a),l[tn]=a}catch(d){Gt(n,n.return,d)}}function yb(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&Ea(n.type)||n.tag===4}function Vh(n){t:for(;;){for(;n.sibling===null;){if(n.return===null||yb(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&Ea(n.type)||n.flags&2||n.child===null||n.tag===4)continue t;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function Uh(n,a,r){var l=n.tag;if(l===5||l===6)n=n.stateNode,a?(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r).insertBefore(n,a):(a=r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,a.appendChild(n),r=r._reactRootContainer,r!=null||a.onclick!==null||(a.onclick=Ai));else if(l!==4&&(l===27&&Ea(n.type)&&(r=n.stateNode,a=null),n=n.child,n!==null))for(Uh(n,a,r),n=n.sibling;n!==null;)Uh(n,a,r),n=n.sibling}function lu(n,a,r){var l=n.tag;if(l===5||l===6)n=n.stateNode,a?r.insertBefore(n,a):r.appendChild(n);else if(l!==4&&(l===27&&Ea(n.type)&&(r=n.stateNode),n=n.child,n!==null))for(lu(n,a,r),n=n.sibling;n!==null;)lu(n,a,r),n=n.sibling}function vb(n){var a=n.stateNode,r=n.memoizedProps;try{for(var l=n.type,d=a.attributes;d.length;)a.removeAttributeNode(d[0]);Pe(a,l,r),a[_e]=n,a[tn]=r}catch(g){Gt(n,n.return,g)}}var Bi=!1,pe=!1,Ih=!1,bb=typeof WeakSet=="function"?WeakSet:Set,Re=null;function E_(n,a){if(n=n.containerInfo,lm=_u,n=Ov(n),Ld(n)){if("selectionStart"in n)var r={start:n.selectionStart,end:n.selectionEnd};else t:{r=(r=n.ownerDocument)&&r.defaultView||window;var l=r.getSelection&&r.getSelection();if(l&&l.rangeCount!==0){r=l.anchorNode;var d=l.anchorOffset,g=l.focusNode;l=l.focusOffset;try{r.nodeType,g.nodeType}catch{r=null;break t}var x=0,M=-1,j=-1,X=0,tt=0,it=n,Q=null;e:for(;;){for(var Z;it!==r||d!==0&&it.nodeType!==3||(M=x+d),it!==g||l!==0&&it.nodeType!==3||(j=x+l),it.nodeType===3&&(x+=it.nodeValue.length),(Z=it.firstChild)!==null;)Q=it,it=Z;for(;;){if(it===n)break e;if(Q===r&&++X===d&&(M=x),Q===g&&++tt===l&&(j=x),(Z=it.nextSibling)!==null)break;it=Q,Q=it.parentNode}it=Z}r=M===-1||j===-1?null:{start:M,end:j}}else r=null}r=r||{start:0,end:0}}else r=null;for(cm={focusedElem:n,selectionRange:r},_u=!1,Re=a;Re!==null;)if(a=Re,n=a.child,(a.subtreeFlags&1028)!==0&&n!==null)n.return=a,Re=n;else for(;Re!==null;){switch(a=Re,g=a.alternate,n=a.flags,a.tag){case 0:if((n&4)!==0&&(n=a.updateQueue,n=n!==null?n.events:null,n!==null))for(r=0;r<n.length;r++)d=n[r],d.ref.impl=d.nextImpl;break;case 11:case 15:break;case 1:if((n&1024)!==0&&g!==null){n=void 0,r=a,d=g.memoizedProps,g=g.memoizedState,l=r.stateNode;try{var pt=ws(r.type,d);n=l.getSnapshotBeforeUpdate(pt,g),l.__reactInternalSnapshotBeforeUpdate=n}catch(St){Gt(r,r.return,St)}}break;case 3:if((n&1024)!==0){if(n=a.stateNode.containerInfo,r=n.nodeType,r===9)dm(n);else if(r===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":dm(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(s(163))}if(n=a.sibling,n!==null){n.return=a.return,Re=n;break}Re=a.return}}function xb(n,a,r){var l=r.flags;switch(r.tag){case 0:case 11:case 15:Ui(n,r),l&4&&ll(5,r);break;case 1:if(Ui(n,r),l&4)if(n=r.stateNode,a===null)try{n.componentDidMount()}catch(x){Gt(r,r.return,x)}else{var d=ws(r.type,a.memoizedProps);a=a.memoizedState;try{n.componentDidUpdate(d,a,n.__reactInternalSnapshotBeforeUpdate)}catch(x){Gt(r,r.return,x)}}l&64&&mb(r),l&512&&cl(r,r.return);break;case 3:if(Ui(n,r),l&64&&(n=r.updateQueue,n!==null)){if(a=null,r.child!==null)switch(r.child.tag){case 27:case 5:a=r.child.stateNode;break;case 1:a=r.child.stateNode}try{a0(n,a)}catch(x){Gt(r,r.return,x)}}break;case 27:a===null&&l&4&&vb(r);case 26:case 5:Ui(n,r),a===null&&l&4&&gb(r),l&512&&cl(r,r.return);break;case 12:Ui(n,r);break;case 31:Ui(n,r),l&4&&Eb(n,r);break;case 13:Ui(n,r),l&4&&Tb(n,r),l&64&&(n=r.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(r=N_.bind(null,r),W_(n,r))));break;case 22:if(l=r.memoizedState!==null||Bi,!l){a=a!==null&&a.memoizedState!==null||pe,d=Bi;var g=pe;Bi=l,(pe=a)&&!g?Ii(n,r,(r.subtreeFlags&8772)!==0):Ui(n,r),Bi=d,pe=g}break;case 30:break;default:Ui(n,r)}}function Sb(n){var a=n.alternate;a!==null&&(n.alternate=null,Sb(a)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(a=n.stateNode,a!==null&&yd(a)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var te=null,nn=!1;function Vi(n,a,r){for(r=r.child;r!==null;)wb(n,a,r),r=r.sibling}function wb(n,a,r){if(Fe&&typeof Fe.onCommitFiberUnmount=="function")try{Fe.onCommitFiberUnmount(ss,r)}catch{}switch(r.tag){case 26:pe||ci(r,a),Vi(n,a,r),r.memoizedState?r.memoizedState.count--:r.stateNode&&(r=r.stateNode,r.parentNode.removeChild(r));break;case 27:pe||ci(r,a);var l=te,d=nn;Ea(r.type)&&(te=r.stateNode,nn=!1),Vi(n,a,r),vl(r.stateNode),te=l,nn=d;break;case 5:pe||ci(r,a);case 6:if(l=te,d=nn,te=null,Vi(n,a,r),te=l,nn=d,te!==null)if(nn)try{(te.nodeType===9?te.body:te.nodeName==="HTML"?te.ownerDocument.body:te).removeChild(r.stateNode)}catch(g){Gt(r,a,g)}else try{te.removeChild(r.stateNode)}catch(g){Gt(r,a,g)}break;case 18:te!==null&&(nn?(n=te,mx(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,r.stateNode),Hr(n)):mx(te,r.stateNode));break;case 4:l=te,d=nn,te=r.stateNode.containerInfo,nn=!0,Vi(n,a,r),te=l,nn=d;break;case 0:case 11:case 14:case 15:ga(2,r,a),pe||ga(4,r,a),Vi(n,a,r);break;case 1:pe||(ci(r,a),l=r.stateNode,typeof l.componentWillUnmount=="function"&&pb(r,a,l)),Vi(n,a,r);break;case 21:Vi(n,a,r);break;case 22:pe=(l=pe)||r.memoizedState!==null,Vi(n,a,r),pe=l;break;default:Vi(n,a,r)}}function Eb(n,a){if(a.memoizedState===null&&(n=a.alternate,n!==null&&(n=n.memoizedState,n!==null))){n=n.dehydrated;try{Hr(n)}catch(r){Gt(a,a.return,r)}}}function Tb(n,a){if(a.memoizedState===null&&(n=a.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{Hr(n)}catch(r){Gt(a,a.return,r)}}function T_(n){switch(n.tag){case 31:case 13:case 19:var a=n.stateNode;return a===null&&(a=n.stateNode=new bb),a;case 22:return n=n.stateNode,a=n._retryCache,a===null&&(a=n._retryCache=new bb),a;default:throw Error(s(435,n.tag))}}function cu(n,a){var r=T_(n);a.forEach(function(l){if(!r.has(l)){r.add(l);var d=P_.bind(null,n,l);l.then(d,d)}})}function an(n,a){var r=a.deletions;if(r!==null)for(var l=0;l<r.length;l++){var d=r[l],g=n,x=a,M=x;t:for(;M!==null;){switch(M.tag){case 27:if(Ea(M.type)){te=M.stateNode,nn=!1;break t}break;case 5:te=M.stateNode,nn=!1;break t;case 3:case 4:te=M.stateNode.containerInfo,nn=!0;break t}M=M.return}if(te===null)throw Error(s(160));wb(g,x,d),te=null,nn=!1,g=d.alternate,g!==null&&(g.return=null),d.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)Cb(a,n),a=a.sibling}var Kn=null;function Cb(n,a){var r=n.alternate,l=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:an(a,n),sn(n),l&4&&(ga(3,n,n.return),ll(3,n),ga(5,n,n.return));break;case 1:an(a,n),sn(n),l&512&&(pe||r===null||ci(r,r.return)),l&64&&Bi&&(n=n.updateQueue,n!==null&&(l=n.callbacks,l!==null&&(r=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=r===null?l:r.concat(l))));break;case 26:var d=Kn;if(an(a,n),sn(n),l&512&&(pe||r===null||ci(r,r.return)),l&4){var g=r!==null?r.memoizedState:null;if(l=n.memoizedState,r===null)if(l===null)if(n.stateNode===null){t:{l=n.type,r=n.memoizedProps,d=d.ownerDocument||d;e:switch(l){case"title":g=d.getElementsByTagName("title")[0],(!g||g[ko]||g[_e]||g.namespaceURI==="http://www.w3.org/2000/svg"||g.hasAttribute("itemprop"))&&(g=d.createElement(l),d.head.insertBefore(g,d.querySelector("head > title"))),Pe(g,l,r),g[_e]=n,Ce(g),l=g;break t;case"link":var x=Cx("link","href",d).get(l+(r.href||""));if(x){for(var M=0;M<x.length;M++)if(g=x[M],g.getAttribute("href")===(r.href==null||r.href===""?null:r.href)&&g.getAttribute("rel")===(r.rel==null?null:r.rel)&&g.getAttribute("title")===(r.title==null?null:r.title)&&g.getAttribute("crossorigin")===(r.crossOrigin==null?null:r.crossOrigin)){x.splice(M,1);break e}}g=d.createElement(l),Pe(g,l,r),d.head.appendChild(g);break;case"meta":if(x=Cx("meta","content",d).get(l+(r.content||""))){for(M=0;M<x.length;M++)if(g=x[M],g.getAttribute("content")===(r.content==null?null:""+r.content)&&g.getAttribute("name")===(r.name==null?null:r.name)&&g.getAttribute("property")===(r.property==null?null:r.property)&&g.getAttribute("http-equiv")===(r.httpEquiv==null?null:r.httpEquiv)&&g.getAttribute("charset")===(r.charSet==null?null:r.charSet)){x.splice(M,1);break e}}g=d.createElement(l),Pe(g,l,r),d.head.appendChild(g);break;default:throw Error(s(468,l))}g[_e]=n,Ce(g),l=g}n.stateNode=l}else Rx(d,n.type,n.stateNode);else n.stateNode=Tx(d,l,n.memoizedProps);else g!==l?(g===null?r.stateNode!==null&&(r=r.stateNode,r.parentNode.removeChild(r)):g.count--,l===null?Rx(d,n.type,n.stateNode):Tx(d,l,n.memoizedProps)):l===null&&n.stateNode!==null&&Bh(n,n.memoizedProps,r.memoizedProps)}break;case 27:an(a,n),sn(n),l&512&&(pe||r===null||ci(r,r.return)),r!==null&&l&4&&Bh(n,n.memoizedProps,r.memoizedProps);break;case 5:if(an(a,n),sn(n),l&512&&(pe||r===null||ci(r,r.return)),n.flags&32){d=n.stateNode;try{fr(d,"")}catch(pt){Gt(n,n.return,pt)}}l&4&&n.stateNode!=null&&(d=n.memoizedProps,Bh(n,d,r!==null?r.memoizedProps:d)),l&1024&&(Ih=!0);break;case 6:if(an(a,n),sn(n),l&4){if(n.stateNode===null)throw Error(s(162));l=n.memoizedProps,r=n.stateNode;try{r.nodeValue=l}catch(pt){Gt(n,n.return,pt)}}break;case 3:if(Cu=null,d=Kn,Kn=Eu(a.containerInfo),an(a,n),Kn=d,sn(n),l&4&&r!==null&&r.memoizedState.isDehydrated)try{Hr(a.containerInfo)}catch(pt){Gt(n,n.return,pt)}Ih&&(Ih=!1,Rb(n));break;case 4:l=Kn,Kn=Eu(n.stateNode.containerInfo),an(a,n),sn(n),Kn=l;break;case 12:an(a,n),sn(n);break;case 31:an(a,n),sn(n),l&4&&(l=n.updateQueue,l!==null&&(n.updateQueue=null,cu(n,l)));break;case 13:an(a,n),sn(n),n.child.flags&8192&&n.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(fu=Ae()),l&4&&(l=n.updateQueue,l!==null&&(n.updateQueue=null,cu(n,l)));break;case 22:d=n.memoizedState!==null;var j=r!==null&&r.memoizedState!==null,X=Bi,tt=pe;if(Bi=X||d,pe=tt||j,an(a,n),pe=tt,Bi=X,sn(n),l&8192)t:for(a=n.stateNode,a._visibility=d?a._visibility&-2:a._visibility|1,d&&(r===null||j||Bi||pe||Es(n)),r=null,a=n;;){if(a.tag===5||a.tag===26){if(r===null){j=r=a;try{if(g=j.stateNode,d)x=g.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none";else{M=j.stateNode;var it=j.memoizedProps.style,Q=it!=null&&it.hasOwnProperty("display")?it.display:null;M.style.display=Q==null||typeof Q=="boolean"?"":(""+Q).trim()}}catch(pt){Gt(j,j.return,pt)}}}else if(a.tag===6){if(r===null){j=a;try{j.stateNode.nodeValue=d?"":j.memoizedProps}catch(pt){Gt(j,j.return,pt)}}}else if(a.tag===18){if(r===null){j=a;try{var Z=j.stateNode;d?px(Z,!0):px(j.stateNode,!1)}catch(pt){Gt(j,j.return,pt)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===n)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===n)break t;for(;a.sibling===null;){if(a.return===null||a.return===n)break t;r===a&&(r=null),a=a.return}r===a&&(r=null),a.sibling.return=a.return,a=a.sibling}l&4&&(l=n.updateQueue,l!==null&&(r=l.retryQueue,r!==null&&(l.retryQueue=null,cu(n,r))));break;case 19:an(a,n),sn(n),l&4&&(l=n.updateQueue,l!==null&&(n.updateQueue=null,cu(n,l)));break;case 30:break;case 21:break;default:an(a,n),sn(n)}}function sn(n){var a=n.flags;if(a&2){try{for(var r,l=n.return;l!==null;){if(yb(l)){r=l;break}l=l.return}if(r==null)throw Error(s(160));switch(r.tag){case 27:var d=r.stateNode,g=Vh(n);lu(n,g,d);break;case 5:var x=r.stateNode;r.flags&32&&(fr(x,""),r.flags&=-33);var M=Vh(n);lu(n,M,x);break;case 3:case 4:var j=r.stateNode.containerInfo,X=Vh(n);Uh(n,X,j);break;default:throw Error(s(161))}}catch(tt){Gt(n,n.return,tt)}n.flags&=-3}a&4096&&(n.flags&=-4097)}function Rb(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var a=n;Rb(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),n=n.sibling}}function Ui(n,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)xb(n,a.alternate,a),a=a.sibling}function Es(n){for(n=n.child;n!==null;){var a=n;switch(a.tag){case 0:case 11:case 14:case 15:ga(4,a,a.return),Es(a);break;case 1:ci(a,a.return);var r=a.stateNode;typeof r.componentWillUnmount=="function"&&pb(a,a.return,r),Es(a);break;case 27:vl(a.stateNode);case 26:case 5:ci(a,a.return),Es(a);break;case 22:a.memoizedState===null&&Es(a);break;case 30:Es(a);break;default:Es(a)}n=n.sibling}}function Ii(n,a,r){for(r=r&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var l=a.alternate,d=n,g=a,x=g.flags;switch(g.tag){case 0:case 11:case 15:Ii(d,g,r),ll(4,g);break;case 1:if(Ii(d,g,r),l=g,d=l.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(X){Gt(l,l.return,X)}if(l=g,d=l.updateQueue,d!==null){var M=l.stateNode;try{var j=d.shared.hiddenCallbacks;if(j!==null)for(d.shared.hiddenCallbacks=null,d=0;d<j.length;d++)i0(j[d],M)}catch(X){Gt(l,l.return,X)}}r&&x&64&&mb(g),cl(g,g.return);break;case 27:vb(g);case 26:case 5:Ii(d,g,r),r&&l===null&&x&4&&gb(g),cl(g,g.return);break;case 12:Ii(d,g,r);break;case 31:Ii(d,g,r),r&&x&4&&Eb(d,g);break;case 13:Ii(d,g,r),r&&x&4&&Tb(d,g);break;case 22:g.memoizedState===null&&Ii(d,g,r),cl(g,g.return);break;case 30:break;default:Ii(d,g,r)}a=a.sibling}}function Hh(n,a){var r=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(r=n.memoizedState.cachePool.pool),n=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(n=a.memoizedState.cachePool.pool),n!==r&&(n!=null&&n.refCount++,r!=null&&Qo(r))}function Fh(n,a){n=null,a.alternate!==null&&(n=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==n&&(a.refCount++,n!=null&&Qo(n))}function Xn(n,a,r,l){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)Mb(n,a,r,l),a=a.sibling}function Mb(n,a,r,l){var d=a.flags;switch(a.tag){case 0:case 11:case 15:Xn(n,a,r,l),d&2048&&ll(9,a);break;case 1:Xn(n,a,r,l);break;case 3:Xn(n,a,r,l),d&2048&&(n=null,a.alternate!==null&&(n=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==n&&(a.refCount++,n!=null&&Qo(n)));break;case 12:if(d&2048){Xn(n,a,r,l),n=a.stateNode;try{var g=a.memoizedProps,x=g.id,M=g.onPostCommit;typeof M=="function"&&M(x,a.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(j){Gt(a,a.return,j)}}else Xn(n,a,r,l);break;case 31:Xn(n,a,r,l);break;case 13:Xn(n,a,r,l);break;case 23:break;case 22:g=a.stateNode,x=a.alternate,a.memoizedState!==null?g._visibility&2?Xn(n,a,r,l):ul(n,a):g._visibility&2?Xn(n,a,r,l):(g._visibility|=2,Or(n,a,r,l,(a.subtreeFlags&10256)!==0||!1)),d&2048&&Hh(x,a);break;case 24:Xn(n,a,r,l),d&2048&&Fh(a.alternate,a);break;default:Xn(n,a,r,l)}}function Or(n,a,r,l,d){for(d=d&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var g=n,x=a,M=r,j=l,X=x.flags;switch(x.tag){case 0:case 11:case 15:Or(g,x,M,j,d),ll(8,x);break;case 23:break;case 22:var tt=x.stateNode;x.memoizedState!==null?tt._visibility&2?Or(g,x,M,j,d):ul(g,x):(tt._visibility|=2,Or(g,x,M,j,d)),d&&X&2048&&Hh(x.alternate,x);break;case 24:Or(g,x,M,j,d),d&&X&2048&&Fh(x.alternate,x);break;default:Or(g,x,M,j,d)}a=a.sibling}}function ul(n,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var r=n,l=a,d=l.flags;switch(l.tag){case 22:ul(r,l),d&2048&&Hh(l.alternate,l);break;case 24:ul(r,l),d&2048&&Fh(l.alternate,l);break;default:ul(r,l)}a=a.sibling}}var fl=8192;function Nr(n,a,r){if(n.subtreeFlags&fl)for(n=n.child;n!==null;)Ab(n,a,r),n=n.sibling}function Ab(n,a,r){switch(n.tag){case 26:Nr(n,a,r),n.flags&fl&&n.memoizedState!==null&&u2(r,Kn,n.memoizedState,n.memoizedProps);break;case 5:Nr(n,a,r);break;case 3:case 4:var l=Kn;Kn=Eu(n.stateNode.containerInfo),Nr(n,a,r),Kn=l;break;case 22:n.memoizedState===null&&(l=n.alternate,l!==null&&l.memoizedState!==null?(l=fl,fl=16777216,Nr(n,a,r),fl=l):Nr(n,a,r));break;default:Nr(n,a,r)}}function _b(n){var a=n.alternate;if(a!==null&&(n=a.child,n!==null)){a.child=null;do a=n.sibling,n.sibling=null,n=a;while(n!==null)}}function dl(n){var a=n.deletions;if((n.flags&16)!==0){if(a!==null)for(var r=0;r<a.length;r++){var l=a[r];Re=l,Ob(l,n)}_b(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Db(n),n=n.sibling}function Db(n){switch(n.tag){case 0:case 11:case 15:dl(n),n.flags&2048&&ga(9,n,n.return);break;case 3:dl(n);break;case 12:dl(n);break;case 22:var a=n.stateNode;n.memoizedState!==null&&a._visibility&2&&(n.return===null||n.return.tag!==13)?(a._visibility&=-3,uu(n)):dl(n);break;default:dl(n)}}function uu(n){var a=n.deletions;if((n.flags&16)!==0){if(a!==null)for(var r=0;r<a.length;r++){var l=a[r];Re=l,Ob(l,n)}_b(n)}for(n=n.child;n!==null;){switch(a=n,a.tag){case 0:case 11:case 15:ga(8,a,a.return),uu(a);break;case 22:r=a.stateNode,r._visibility&2&&(r._visibility&=-3,uu(a));break;default:uu(a)}n=n.sibling}}function Ob(n,a){for(;Re!==null;){var r=Re;switch(r.tag){case 0:case 11:case 15:ga(8,r,a);break;case 23:case 22:if(r.memoizedState!==null&&r.memoizedState.cachePool!==null){var l=r.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Qo(r.memoizedState.cache)}if(l=r.child,l!==null)l.return=r,Re=l;else t:for(r=n;Re!==null;){l=Re;var d=l.sibling,g=l.return;if(Sb(l),l===r){Re=null;break t}if(d!==null){d.return=g,Re=d;break t}Re=g}}}var C_={getCacheForType:function(n){var a=Oe(de),r=a.data.get(n);return r===void 0&&(r=n(),a.data.set(n,r)),r},cacheSignal:function(){return Oe(de).controller.signal}},R_=typeof WeakMap=="function"?WeakMap:Map,It=0,Xt=null,Dt=null,Nt=0,Ft=0,gn=null,ya=!1,Pr=!1,Gh=!1,Hi=0,se=0,va=0,Ts=0,qh=0,yn=0,Lr=0,hl=null,rn=null,Yh=!1,fu=0,Nb=0,du=1/0,hu=null,ba=null,be=0,xa=null,jr=null,Fi=0,Kh=0,Xh=null,Pb=null,ml=0,Qh=null;function vn(){return(It&2)!==0&&Nt!==0?Nt&-Nt:N.T!==null?em():pd()}function Lb(){if(yn===0)if((Nt&536870912)===0||Lt){var n=ir;ir<<=1,(ir&3932160)===0&&(ir=262144),yn=n}else yn=536870912;return n=mn.current,n!==null&&(n.flags|=32),yn}function on(n,a,r){(n===Xt&&(Ft===2||Ft===9)||n.cancelPendingCommit!==null)&&(kr(n,0),Sa(n,Nt,yn,!1)),ee(n,r),((It&2)===0||n!==Xt)&&(n===Xt&&((It&2)===0&&(Ts|=r),se===4&&Sa(n,Nt,yn,!1)),ui(n))}function jb(n,a,r){if((It&6)!==0)throw Error(s(327));var l=!r&&(a&127)===0&&(a&n.expiredLanes)===0||Jt(n,a),d=l?__(n,a):Zh(n,a,!0),g=l;do{if(d===0){Pr&&!l&&Sa(n,a,0,!1);break}else{if(r=n.current.alternate,g&&!M_(r)){d=Zh(n,a,!1),g=!1;continue}if(d===2){if(g=a,n.errorRecoveryDisabledLanes&g)var x=0;else x=n.pendingLanes&-536870913,x=x!==0?x:x&536870912?536870912:0;if(x!==0){a=x;t:{var M=n;d=hl;var j=M.current.memoizedState.isDehydrated;if(j&&(kr(M,x).flags|=256),x=Zh(M,x,!1),x!==2){if(Gh&&!j){M.errorRecoveryDisabledLanes|=g,Ts|=g,d=4;break t}g=rn,rn=d,g!==null&&(rn===null?rn=g:rn.push.apply(rn,g))}d=x}if(g=!1,d!==2)continue}}if(d===1){kr(n,0),Sa(n,a,0,!0);break}t:{switch(l=n,g=d,g){case 0:case 1:throw Error(s(345));case 4:if((a&4194048)!==a)break;case 6:Sa(l,a,yn,!ya);break t;case 2:rn=null;break;case 3:case 5:break;default:throw Error(s(329))}if((a&62914560)===a&&(d=fu+300-Ae(),10<d)){if(Sa(l,a,yn,!ya),Et(l,0,!0)!==0)break t;Fi=a,l.timeoutHandle=dx(kb.bind(null,l,r,rn,hu,Yh,a,yn,Ts,Lr,ya,g,"Throttled",-0,0),d);break t}kb(l,r,rn,hu,Yh,a,yn,Ts,Lr,ya,g,null,-0,0)}}break}while(!0);ui(n)}function kb(n,a,r,l,d,g,x,M,j,X,tt,it,Q,Z){if(n.timeoutHandle=-1,it=a.subtreeFlags,it&8192||(it&16785408)===16785408){it={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ai},Ab(a,g,it);var pt=(g&62914560)===g?fu-Ae():(g&4194048)===g?Nb-Ae():0;if(pt=f2(it,pt),pt!==null){Fi=g,n.cancelPendingCommit=pt(Gb.bind(null,n,a,g,r,l,d,x,M,j,tt,it,null,Q,Z)),Sa(n,g,x,!X);return}}Gb(n,a,g,r,l,d,x,M,j)}function M_(n){for(var a=n;;){var r=a.tag;if((r===0||r===11||r===15)&&a.flags&16384&&(r=a.updateQueue,r!==null&&(r=r.stores,r!==null)))for(var l=0;l<r.length;l++){var d=r[l],g=d.getSnapshot;d=d.value;try{if(!dn(g(),d))return!1}catch{return!1}}if(r=a.child,a.subtreeFlags&16384&&r!==null)r.return=a,a=r;else{if(a===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Sa(n,a,r,l){a&=~qh,a&=~Ts,n.suspendedLanes|=a,n.pingedLanes&=~a,l&&(n.warmLanes|=a),l=n.expirationTimes;for(var d=a;0<d;){var g=31-Be(d),x=1<<g;l[g]=-1,d&=~x}r!==0&&os(n,r,a)}function mu(){return(It&6)===0?(pl(0),!1):!0}function $h(){if(Dt!==null){if(Ft===0)var n=Dt.return;else n=Dt,Ni=ps=null,dh(n),Rr=null,Zo=0,n=Dt;for(;n!==null;)hb(n.alternate,n),n=n.return;Dt=null}}function kr(n,a){var r=n.timeoutHandle;r!==-1&&(n.timeoutHandle=-1,K_(r)),r=n.cancelPendingCommit,r!==null&&(n.cancelPendingCommit=null,r()),Fi=0,$h(),Xt=n,Dt=r=Di(n.current,null),Nt=a,Ft=0,gn=null,ya=!1,Pr=Jt(n,a),Gh=!1,Lr=yn=qh=Ts=va=se=0,rn=hl=null,Yh=!1,(a&8)!==0&&(a|=a&32);var l=n.entangledLanes;if(l!==0)for(n=n.entanglements,l&=a;0<l;){var d=31-Be(l),g=1<<d;a|=n[d],l&=~g}return Hi=a,jc(),r}function zb(n,a){Rt=null,N.H=sl,a===Cr||a===Fc?(a=Jv(),Ft=3):a===th?(a=Jv(),Ft=4):Ft=a===Ah?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,gn=a,Dt===null&&(se=1,iu(n,Mn(a,n.current)))}function Bb(){var n=mn.current;return n===null?!0:(Nt&4194048)===Nt?On===null:(Nt&62914560)===Nt||(Nt&536870912)!==0?n===On:!1}function Vb(){var n=N.H;return N.H=sl,n===null?sl:n}function Ub(){var n=N.A;return N.A=C_,n}function pu(){se=4,ya||(Nt&4194048)!==Nt&&mn.current!==null||(Pr=!0),(va&134217727)===0&&(Ts&134217727)===0||Xt===null||Sa(Xt,Nt,yn,!1)}function Zh(n,a,r){var l=It;It|=2;var d=Vb(),g=Ub();(Xt!==n||Nt!==a)&&(hu=null,kr(n,a)),a=!1;var x=se;t:do try{if(Ft!==0&&Dt!==null){var M=Dt,j=gn;switch(Ft){case 8:$h(),x=6;break t;case 3:case 2:case 9:case 6:mn.current===null&&(a=!0);var X=Ft;if(Ft=0,gn=null,zr(n,M,j,X),r&&Pr){x=0;break t}break;default:X=Ft,Ft=0,gn=null,zr(n,M,j,X)}}A_(),x=se;break}catch(tt){zb(n,tt)}while(!0);return a&&n.shellSuspendCounter++,Ni=ps=null,It=l,N.H=d,N.A=g,Dt===null&&(Xt=null,Nt=0,jc()),x}function A_(){for(;Dt!==null;)Ib(Dt)}function __(n,a){var r=It;It|=2;var l=Vb(),d=Ub();Xt!==n||Nt!==a?(hu=null,du=Ae()+500,kr(n,a)):Pr=Jt(n,a);t:do try{if(Ft!==0&&Dt!==null){a=Dt;var g=gn;e:switch(Ft){case 1:Ft=0,gn=null,zr(n,a,g,1);break;case 2:case 9:if(Zv(g)){Ft=0,gn=null,Hb(a);break}a=function(){Ft!==2&&Ft!==9||Xt!==n||(Ft=7),ui(n)},g.then(a,a);break t;case 3:Ft=7;break t;case 4:Ft=5;break t;case 7:Zv(g)?(Ft=0,gn=null,Hb(a)):(Ft=0,gn=null,zr(n,a,g,7));break;case 5:var x=null;switch(Dt.tag){case 26:x=Dt.memoizedState;case 5:case 27:var M=Dt;if(x?Mx(x):M.stateNode.complete){Ft=0,gn=null;var j=M.sibling;if(j!==null)Dt=j;else{var X=M.return;X!==null?(Dt=X,gu(X)):Dt=null}break e}}Ft=0,gn=null,zr(n,a,g,5);break;case 6:Ft=0,gn=null,zr(n,a,g,6);break;case 8:$h(),se=6;break t;default:throw Error(s(462))}}D_();break}catch(tt){zb(n,tt)}while(!0);return Ni=ps=null,N.H=l,N.A=d,It=r,Dt!==null?0:(Xt=null,Nt=0,jc(),se)}function D_(){for(;Dt!==null&&!Ee();)Ib(Dt)}function Ib(n){var a=fb(n.alternate,n,Hi);n.memoizedProps=n.pendingProps,a===null?gu(n):Dt=a}function Hb(n){var a=n,r=a.alternate;switch(a.tag){case 15:case 0:a=sb(r,a,a.pendingProps,a.type,void 0,Nt);break;case 11:a=sb(r,a,a.pendingProps,a.type.render,a.ref,Nt);break;case 5:dh(a);default:hb(r,a),a=Dt=Uv(a,Hi),a=fb(r,a,Hi)}n.memoizedProps=n.pendingProps,a===null?gu(n):Dt=a}function zr(n,a,r,l){Ni=ps=null,dh(a),Rr=null,Zo=0;var d=a.return;try{if(v_(n,d,a,r,Nt)){se=1,iu(n,Mn(r,n.current)),Dt=null;return}}catch(g){if(d!==null)throw Dt=d,g;se=1,iu(n,Mn(r,n.current)),Dt=null;return}a.flags&32768?(Lt||l===1?n=!0:Pr||(Nt&536870912)!==0?n=!1:(ya=n=!0,(l===2||l===9||l===3||l===6)&&(l=mn.current,l!==null&&l.tag===13&&(l.flags|=16384))),Fb(a,n)):gu(a)}function gu(n){var a=n;do{if((a.flags&32768)!==0){Fb(a,ya);return}n=a.return;var r=S_(a.alternate,a,Hi);if(r!==null){Dt=r;return}if(a=a.sibling,a!==null){Dt=a;return}Dt=a=n}while(a!==null);se===0&&(se=5)}function Fb(n,a){do{var r=w_(n.alternate,n);if(r!==null){r.flags&=32767,Dt=r;return}if(r=n.return,r!==null&&(r.flags|=32768,r.subtreeFlags=0,r.deletions=null),!a&&(n=n.sibling,n!==null)){Dt=n;return}Dt=n=r}while(n!==null);se=6,Dt=null}function Gb(n,a,r,l,d,g,x,M,j){n.cancelPendingCommit=null;do yu();while(be!==0);if((It&6)!==0)throw Error(s(327));if(a!==null){if(a===n.current)throw Error(s(177));if(g=a.lanes|a.childLanes,g|=Vd,Ze(n,r,g,x,M,j),n===Xt&&(Dt=Xt=null,Nt=0),jr=a,xa=n,Fi=r,Kh=g,Xh=d,Pb=l,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,L_(ve,function(){return Qb(),null})):(n.callbackNode=null,n.callbackPriority=0),l=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||l){l=N.T,N.T=null,d=q.p,q.p=2,x=It,It|=4;try{E_(n,a,r)}finally{It=x,q.p=d,N.T=l}}be=1,qb(),Yb(),Kb()}}function qb(){if(be===1){be=0;var n=xa,a=jr,r=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||r){r=N.T,N.T=null;var l=q.p;q.p=2;var d=It;It|=4;try{Cb(a,n);var g=cm,x=Ov(n.containerInfo),M=g.focusedElem,j=g.selectionRange;if(x!==M&&M&&M.ownerDocument&&Dv(M.ownerDocument.documentElement,M)){if(j!==null&&Ld(M)){var X=j.start,tt=j.end;if(tt===void 0&&(tt=X),"selectionStart"in M)M.selectionStart=X,M.selectionEnd=Math.min(tt,M.value.length);else{var it=M.ownerDocument||document,Q=it&&it.defaultView||window;if(Q.getSelection){var Z=Q.getSelection(),pt=M.textContent.length,St=Math.min(j.start,pt),Kt=j.end===void 0?St:Math.min(j.end,pt);!Z.extend&&St>Kt&&(x=Kt,Kt=St,St=x);var F=_v(M,St),V=_v(M,Kt);if(F&&V&&(Z.rangeCount!==1||Z.anchorNode!==F.node||Z.anchorOffset!==F.offset||Z.focusNode!==V.node||Z.focusOffset!==V.offset)){var K=it.createRange();K.setStart(F.node,F.offset),Z.removeAllRanges(),St>Kt?(Z.addRange(K),Z.extend(V.node,V.offset)):(K.setEnd(V.node,V.offset),Z.addRange(K))}}}}for(it=[],Z=M;Z=Z.parentNode;)Z.nodeType===1&&it.push({element:Z,left:Z.scrollLeft,top:Z.scrollTop});for(typeof M.focus=="function"&&M.focus(),M=0;M<it.length;M++){var nt=it[M];nt.element.scrollLeft=nt.left,nt.element.scrollTop=nt.top}}_u=!!lm,cm=lm=null}finally{It=d,q.p=l,N.T=r}}n.current=a,be=2}}function Yb(){if(be===2){be=0;var n=xa,a=jr,r=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||r){r=N.T,N.T=null;var l=q.p;q.p=2;var d=It;It|=4;try{xb(n,a.alternate,a)}finally{It=d,q.p=l,N.T=r}}be=3}}function Kb(){if(be===4||be===3){be=0,ai();var n=xa,a=jr,r=Fi,l=Pb;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?be=5:(be=0,jr=xa=null,Xb(n,n.pendingLanes));var d=n.pendingLanes;if(d===0&&(ba=null),qn(r),a=a.stateNode,Fe&&typeof Fe.onCommitFiberRoot=="function")try{Fe.onCommitFiberRoot(ss,a,void 0,(a.current.flags&128)===128)}catch{}if(l!==null){a=N.T,d=q.p,q.p=2,N.T=null;try{for(var g=n.onRecoverableError,x=0;x<l.length;x++){var M=l[x];g(M.value,{componentStack:M.stack})}}finally{N.T=a,q.p=d}}(Fi&3)!==0&&yu(),ui(n),d=n.pendingLanes,(r&261930)!==0&&(d&42)!==0?n===Qh?ml++:(ml=0,Qh=n):ml=0,pl(0)}}function Xb(n,a){(n.pooledCacheLanes&=a)===0&&(a=n.pooledCache,a!=null&&(n.pooledCache=null,Qo(a)))}function yu(){return qb(),Yb(),Kb(),Qb()}function Qb(){if(be!==5)return!1;var n=xa,a=Kh;Kh=0;var r=qn(Fi),l=N.T,d=q.p;try{q.p=32>r?32:r,N.T=null,r=Xh,Xh=null;var g=xa,x=Fi;if(be=0,jr=xa=null,Fi=0,(It&6)!==0)throw Error(s(331));var M=It;if(It|=4,Db(g.current),Mb(g,g.current,x,r),It=M,pl(0,!1),Fe&&typeof Fe.onPostCommitFiberRoot=="function")try{Fe.onPostCommitFiberRoot(ss,g)}catch{}return!0}finally{q.p=d,N.T=l,Xb(n,a)}}function $b(n,a,r){a=Mn(r,a),a=Mh(n.stateNode,a,2),n=ha(n,a,2),n!==null&&(ee(n,2),ui(n))}function Gt(n,a,r){if(n.tag===3)$b(n,n,r);else for(;a!==null;){if(a.tag===3){$b(a,n,r);break}else if(a.tag===1){var l=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(ba===null||!ba.has(l))){n=Mn(r,n),r=Z0(2),l=ha(a,r,2),l!==null&&(W0(r,l,a,n),ee(l,2),ui(l));break}}a=a.return}}function Wh(n,a,r){var l=n.pingCache;if(l===null){l=n.pingCache=new R_;var d=new Set;l.set(a,d)}else d=l.get(a),d===void 0&&(d=new Set,l.set(a,d));d.has(r)||(Gh=!0,d.add(r),n=O_.bind(null,n,a,r),a.then(n,n))}function O_(n,a,r){var l=n.pingCache;l!==null&&l.delete(a),n.pingedLanes|=n.suspendedLanes&r,n.warmLanes&=~r,Xt===n&&(Nt&r)===r&&(se===4||se===3&&(Nt&62914560)===Nt&&300>Ae()-fu?(It&2)===0&&kr(n,0):qh|=r,Lr===Nt&&(Lr=0)),ui(n)}function Zb(n,a){a===0&&(a=Ve()),n=ds(n,a),n!==null&&(ee(n,a),ui(n))}function N_(n){var a=n.memoizedState,r=0;a!==null&&(r=a.retryLane),Zb(n,r)}function P_(n,a){var r=0;switch(n.tag){case 31:case 13:var l=n.stateNode,d=n.memoizedState;d!==null&&(r=d.retryLane);break;case 19:l=n.stateNode;break;case 22:l=n.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(a),Zb(n,r)}function L_(n,a){return is(n,a)}var vu=null,Br=null,Jh=!1,bu=!1,tm=!1,wa=0;function ui(n){n!==Br&&n.next===null&&(Br===null?vu=Br=n:Br=Br.next=n),bu=!0,Jh||(Jh=!0,k_())}function pl(n,a){if(!tm&&bu){tm=!0;do for(var r=!1,l=vu;l!==null;){if(n!==0){var d=l.pendingLanes;if(d===0)var g=0;else{var x=l.suspendedLanes,M=l.pingedLanes;g=(1<<31-Be(42|n)+1)-1,g&=d&~(x&~M),g=g&201326741?g&201326741|1:g?g|2:0}g!==0&&(r=!0,ex(l,g))}else g=Nt,g=Et(l,l===Xt?g:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(g&3)===0||Jt(l,g)||(r=!0,ex(l,g));l=l.next}while(r);tm=!1}}function j_(){Wb()}function Wb(){bu=Jh=!1;var n=0;wa!==0&&Y_()&&(n=wa);for(var a=Ae(),r=null,l=vu;l!==null;){var d=l.next,g=Jb(l,a);g===0?(l.next=null,r===null?vu=d:r.next=d,d===null&&(Br=r)):(r=l,(n!==0||(g&3)!==0)&&(bu=!0)),l=d}be!==0&&be!==5||pl(n),wa!==0&&(wa=0)}function Jb(n,a){for(var r=n.suspendedLanes,l=n.pingedLanes,d=n.expirationTimes,g=n.pendingLanes&-62914561;0<g;){var x=31-Be(g),M=1<<x,j=d[x];j===-1?((M&r)===0||(M&l)!==0)&&(d[x]=Te(M,a)):j<=a&&(n.expiredLanes|=M),g&=~M}if(a=Xt,r=Nt,r=Et(n,n===a?r:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),l=n.callbackNode,r===0||n===a&&(Ft===2||Ft===9)||n.cancelPendingCommit!==null)return l!==null&&l!==null&&as(l),n.callbackNode=null,n.callbackPriority=0;if((r&3)===0||Jt(n,r)){if(a=r&-r,a===n.callbackPriority)return a;switch(l!==null&&as(l),qn(r)){case 2:case 8:r=ye;break;case 32:r=ve;break;case 268435456:r=Ri;break;default:r=ve}return l=tx.bind(null,n),r=is(r,l),n.callbackPriority=a,n.callbackNode=r,a}return l!==null&&l!==null&&as(l),n.callbackPriority=2,n.callbackNode=null,2}function tx(n,a){if(be!==0&&be!==5)return n.callbackNode=null,n.callbackPriority=0,null;var r=n.callbackNode;if(yu()&&n.callbackNode!==r)return null;var l=Nt;return l=Et(n,n===Xt?l:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),l===0?null:(jb(n,l,a),Jb(n,Ae()),n.callbackNode!=null&&n.callbackNode===r?tx.bind(null,n):null)}function ex(n,a){if(yu())return null;jb(n,a,!0)}function k_(){X_(function(){(It&6)!==0?is(zt,j_):Wb()})}function em(){if(wa===0){var n=Er;n===0&&(n=nr,nr<<=1,(nr&261888)===0&&(nr=256)),wa=n}return wa}function nx(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:Mc(""+n)}function ix(n,a){var r=a.ownerDocument.createElement("input");return r.name=a.name,r.value=a.value,n.id&&r.setAttribute("form",n.id),a.parentNode.insertBefore(r,a),n=new FormData(n),r.parentNode.removeChild(r),n}function z_(n,a,r,l,d){if(a==="submit"&&r&&r.stateNode===d){var g=nx((d[tn]||null).action),x=l.submitter;x&&(a=(a=x[tn]||null)?nx(a.formAction):x.getAttribute("formAction"),a!==null&&(g=a,x=null));var M=new Oc("action","action",null,l,d);n.push({event:M,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(wa!==0){var j=x?ix(d,x):new FormData(d);Sh(r,{pending:!0,data:j,method:d.method,action:g},null,j)}}else typeof g=="function"&&(M.preventDefault(),j=x?ix(d,x):new FormData(d),Sh(r,{pending:!0,data:j,method:d.method,action:g},g,j))},currentTarget:d}]})}}for(var nm=0;nm<Bd.length;nm++){var im=Bd[nm],B_=im.toLowerCase(),V_=im[0].toUpperCase()+im.slice(1);Yn(B_,"on"+V_)}Yn(Lv,"onAnimationEnd"),Yn(jv,"onAnimationIteration"),Yn(kv,"onAnimationStart"),Yn("dblclick","onDoubleClick"),Yn("focusin","onFocus"),Yn("focusout","onBlur"),Yn(e_,"onTransitionRun"),Yn(n_,"onTransitionStart"),Yn(i_,"onTransitionCancel"),Yn(zv,"onTransitionEnd"),cr("onMouseEnter",["mouseout","mouseover"]),cr("onMouseLeave",["mouseout","mouseover"]),cr("onPointerEnter",["pointerout","pointerover"]),cr("onPointerLeave",["pointerout","pointerover"]),ls("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ls("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ls("onBeforeInput",["compositionend","keypress","textInput","paste"]),ls("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ls("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ls("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var gl="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(" "),U_=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(gl));function ax(n,a){a=(a&4)!==0;for(var r=0;r<n.length;r++){var l=n[r],d=l.event;l=l.listeners;t:{var g=void 0;if(a)for(var x=l.length-1;0<=x;x--){var M=l[x],j=M.instance,X=M.currentTarget;if(M=M.listener,j!==g&&d.isPropagationStopped())break t;g=M,d.currentTarget=X;try{g(d)}catch(tt){Lc(tt)}d.currentTarget=null,g=j}else for(x=0;x<l.length;x++){if(M=l[x],j=M.instance,X=M.currentTarget,M=M.listener,j!==g&&d.isPropagationStopped())break t;g=M,d.currentTarget=X;try{g(d)}catch(tt){Lc(tt)}d.currentTarget=null,g=j}}}}function Ot(n,a){var r=a[gd];r===void 0&&(r=a[gd]=new Set);var l=n+"__bubble";r.has(l)||(sx(a,n,2,!1),r.add(l))}function am(n,a,r){var l=0;a&&(l|=4),sx(r,n,l,a)}var xu="_reactListening"+Math.random().toString(36).slice(2);function sm(n){if(!n[xu]){n[xu]=!0,Wy.forEach(function(r){r!=="selectionchange"&&(U_.has(r)||am(r,!1,n),am(r,!0,n))});var a=n.nodeType===9?n:n.ownerDocument;a===null||a[xu]||(a[xu]=!0,am("selectionchange",!1,a))}}function sx(n,a,r,l){switch(Lx(a)){case 2:var d=m2;break;case 8:d=p2;break;default:d=xm}r=d.bind(null,a,r,n),d=void 0,!Cd||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(d=!0),l?d!==void 0?n.addEventListener(a,r,{capture:!0,passive:d}):n.addEventListener(a,r,!0):d!==void 0?n.addEventListener(a,r,{passive:d}):n.addEventListener(a,r,!1)}function rm(n,a,r,l,d){var g=l;if((a&1)===0&&(a&2)===0&&l!==null)t:for(;;){if(l===null)return;var x=l.tag;if(x===3||x===4){var M=l.stateNode.containerInfo;if(M===d)break;if(x===4)for(x=l.return;x!==null;){var j=x.tag;if((j===3||j===4)&&x.stateNode.containerInfo===d)return;x=x.return}for(;M!==null;){if(x=rr(M),x===null)return;if(j=x.tag,j===5||j===6||j===26||j===27){l=g=x;continue t}M=M.parentNode}}l=l.return}uv(function(){var X=g,tt=Ed(r),it=[];t:{var Q=Bv.get(n);if(Q!==void 0){var Z=Oc,pt=n;switch(n){case"keypress":if(_c(r)===0)break t;case"keydown":case"keyup":Z=PA;break;case"focusin":pt="focus",Z=_d;break;case"focusout":pt="blur",Z=_d;break;case"beforeblur":case"afterblur":Z=_d;break;case"click":if(r.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Z=hv;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Z=SA;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Z=kA;break;case Lv:case jv:case kv:Z=TA;break;case zv:Z=BA;break;case"scroll":case"scrollend":Z=bA;break;case"wheel":Z=UA;break;case"copy":case"cut":case"paste":Z=RA;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Z=pv;break;case"toggle":case"beforetoggle":Z=HA}var St=(a&4)!==0,Kt=!St&&(n==="scroll"||n==="scrollend"),F=St?Q!==null?Q+"Capture":null:Q;St=[];for(var V=X,K;V!==null;){var nt=V;if(K=nt.stateNode,nt=nt.tag,nt!==5&&nt!==26&&nt!==27||K===null||F===null||(nt=Bo(V,F),nt!=null&&St.push(yl(V,nt,K))),Kt)break;V=V.return}0<St.length&&(Q=new Z(Q,pt,null,r,tt),it.push({event:Q,listeners:St}))}}if((a&7)===0){t:{if(Q=n==="mouseover"||n==="pointerover",Z=n==="mouseout"||n==="pointerout",Q&&r!==wd&&(pt=r.relatedTarget||r.fromElement)&&(rr(pt)||pt[sr]))break t;if((Z||Q)&&(Q=tt.window===tt?tt:(Q=tt.ownerDocument)?Q.defaultView||Q.parentWindow:window,Z?(pt=r.relatedTarget||r.toElement,Z=X,pt=pt?rr(pt):null,pt!==null&&(Kt=c(pt),St=pt.tag,pt!==Kt||St!==5&&St!==27&&St!==6)&&(pt=null)):(Z=null,pt=X),Z!==pt)){if(St=hv,nt="onMouseLeave",F="onMouseEnter",V="mouse",(n==="pointerout"||n==="pointerover")&&(St=pv,nt="onPointerLeave",F="onPointerEnter",V="pointer"),Kt=Z==null?Q:zo(Z),K=pt==null?Q:zo(pt),Q=new St(nt,V+"leave",Z,r,tt),Q.target=Kt,Q.relatedTarget=K,nt=null,rr(tt)===X&&(St=new St(F,V+"enter",pt,r,tt),St.target=K,St.relatedTarget=Kt,nt=St),Kt=nt,Z&&pt)e:{for(St=I_,F=Z,V=pt,K=0,nt=F;nt;nt=St(nt))K++;nt=0;for(var xt=V;xt;xt=St(xt))nt++;for(;0<K-nt;)F=St(F),K--;for(;0<nt-K;)V=St(V),nt--;for(;K--;){if(F===V||V!==null&&F===V.alternate){St=F;break e}F=St(F),V=St(V)}St=null}else St=null;Z!==null&&rx(it,Q,Z,St,!1),pt!==null&&Kt!==null&&rx(it,Kt,pt,St,!0)}}t:{if(Q=X?zo(X):window,Z=Q.nodeName&&Q.nodeName.toLowerCase(),Z==="select"||Z==="input"&&Q.type==="file")var Bt=Ev;else if(Sv(Q))if(Tv)Bt=WA;else{Bt=$A;var bt=QA}else Z=Q.nodeName,!Z||Z.toLowerCase()!=="input"||Q.type!=="checkbox"&&Q.type!=="radio"?X&&Sd(X.elementType)&&(Bt=Ev):Bt=ZA;if(Bt&&(Bt=Bt(n,X))){wv(it,Bt,r,tt);break t}bt&&bt(n,Q,X),n==="focusout"&&X&&Q.type==="number"&&X.memoizedProps.value!=null&&xd(Q,"number",Q.value)}switch(bt=X?zo(X):window,n){case"focusin":(Sv(bt)||bt.contentEditable==="true")&&(pr=bt,jd=X,Yo=null);break;case"focusout":Yo=jd=pr=null;break;case"mousedown":kd=!0;break;case"contextmenu":case"mouseup":case"dragend":kd=!1,Nv(it,r,tt);break;case"selectionchange":if(t_)break;case"keydown":case"keyup":Nv(it,r,tt)}var At;if(Od)t:{switch(n){case"compositionstart":var Pt="onCompositionStart";break t;case"compositionend":Pt="onCompositionEnd";break t;case"compositionupdate":Pt="onCompositionUpdate";break t}Pt=void 0}else mr?bv(n,r)&&(Pt="onCompositionEnd"):n==="keydown"&&r.keyCode===229&&(Pt="onCompositionStart");Pt&&(gv&&r.locale!=="ko"&&(mr||Pt!=="onCompositionStart"?Pt==="onCompositionEnd"&&mr&&(At=fv()):(ra=tt,Rd="value"in ra?ra.value:ra.textContent,mr=!0)),bt=Su(X,Pt),0<bt.length&&(Pt=new mv(Pt,n,null,r,tt),it.push({event:Pt,listeners:bt}),At?Pt.data=At:(At=xv(r),At!==null&&(Pt.data=At)))),(At=GA?qA(n,r):YA(n,r))&&(Pt=Su(X,"onBeforeInput"),0<Pt.length&&(bt=new mv("onBeforeInput","beforeinput",null,r,tt),it.push({event:bt,listeners:Pt}),bt.data=At)),z_(it,n,X,r,tt)}ax(it,a)})}function yl(n,a,r){return{instance:n,listener:a,currentTarget:r}}function Su(n,a){for(var r=a+"Capture",l=[];n!==null;){var d=n,g=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||g===null||(d=Bo(n,r),d!=null&&l.unshift(yl(n,d,g)),d=Bo(n,a),d!=null&&l.push(yl(n,d,g))),n.tag===3)return l;n=n.return}return[]}function I_(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function rx(n,a,r,l,d){for(var g=a._reactName,x=[];r!==null&&r!==l;){var M=r,j=M.alternate,X=M.stateNode;if(M=M.tag,j!==null&&j===l)break;M!==5&&M!==26&&M!==27||X===null||(j=X,d?(X=Bo(r,g),X!=null&&x.unshift(yl(r,X,j))):d||(X=Bo(r,g),X!=null&&x.push(yl(r,X,j)))),r=r.return}x.length!==0&&n.push({event:a,listeners:x})}var H_=/\r\n?/g,F_=/\u0000|\uFFFD/g;function ox(n){return(typeof n=="string"?n:""+n).replace(H_,`
|
|
50
|
+
`).replace(F_,"")}function lx(n,a){return a=ox(a),ox(n)===a}function Yt(n,a,r,l,d,g){switch(r){case"children":typeof l=="string"?a==="body"||a==="textarea"&&l===""||fr(n,l):(typeof l=="number"||typeof l=="bigint")&&a!=="body"&&fr(n,""+l);break;case"className":Cc(n,"class",l);break;case"tabIndex":Cc(n,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Cc(n,r,l);break;case"style":lv(n,l,g);break;case"data":if(a!=="object"){Cc(n,"data",l);break}case"src":case"href":if(l===""&&(a!=="a"||r!=="href")){n.removeAttribute(r);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){n.removeAttribute(r);break}l=Mc(""+l),n.setAttribute(r,l);break;case"action":case"formAction":if(typeof l=="function"){n.setAttribute(r,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof g=="function"&&(r==="formAction"?(a!=="input"&&Yt(n,a,"name",d.name,d,null),Yt(n,a,"formEncType",d.formEncType,d,null),Yt(n,a,"formMethod",d.formMethod,d,null),Yt(n,a,"formTarget",d.formTarget,d,null)):(Yt(n,a,"encType",d.encType,d,null),Yt(n,a,"method",d.method,d,null),Yt(n,a,"target",d.target,d,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){n.removeAttribute(r);break}l=Mc(""+l),n.setAttribute(r,l);break;case"onClick":l!=null&&(n.onclick=Ai);break;case"onScroll":l!=null&&Ot("scroll",n);break;case"onScrollEnd":l!=null&&Ot("scrollend",n);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(r=l.__html,r!=null){if(d.children!=null)throw Error(s(60));n.innerHTML=r}}break;case"multiple":n.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":n.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){n.removeAttribute("xlink:href");break}r=Mc(""+l),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?n.setAttribute(r,""+l):n.removeAttribute(r);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?n.setAttribute(r,""):n.removeAttribute(r);break;case"capture":case"download":l===!0?n.setAttribute(r,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?n.setAttribute(r,l):n.removeAttribute(r);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?n.setAttribute(r,l):n.removeAttribute(r);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?n.removeAttribute(r):n.setAttribute(r,l);break;case"popover":Ot("beforetoggle",n),Ot("toggle",n),Tc(n,"popover",l);break;case"xlinkActuate":Mi(n,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Mi(n,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Mi(n,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Mi(n,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Mi(n,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Mi(n,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Mi(n,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Mi(n,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Mi(n,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Tc(n,"is",l);break;case"innerText":case"textContent":break;default:(!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(r=yA.get(r)||r,Tc(n,r,l))}}function om(n,a,r,l,d,g){switch(r){case"style":lv(n,l,g);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(r=l.__html,r!=null){if(d.children!=null)throw Error(s(60));n.innerHTML=r}}break;case"children":typeof l=="string"?fr(n,l):(typeof l=="number"||typeof l=="bigint")&&fr(n,""+l);break;case"onScroll":l!=null&&Ot("scroll",n);break;case"onScrollEnd":l!=null&&Ot("scrollend",n);break;case"onClick":l!=null&&(n.onclick=Ai);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Jy.hasOwnProperty(r))t:{if(r[0]==="o"&&r[1]==="n"&&(d=r.endsWith("Capture"),a=r.slice(2,d?r.length-7:void 0),g=n[tn]||null,g=g!=null?g[r]:null,typeof g=="function"&&n.removeEventListener(a,g,d),typeof l=="function")){typeof g!="function"&&g!==null&&(r in n?n[r]=null:n.hasAttribute(r)&&n.removeAttribute(r)),n.addEventListener(a,l,d);break t}r in n?n[r]=l:l===!0?n.setAttribute(r,""):Tc(n,r,l)}}}function Pe(n,a,r){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ot("error",n),Ot("load",n);var l=!1,d=!1,g;for(g in r)if(r.hasOwnProperty(g)){var x=r[g];if(x!=null)switch(g){case"src":l=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,a));default:Yt(n,a,g,x,r,null)}}d&&Yt(n,a,"srcSet",r.srcSet,r,null),l&&Yt(n,a,"src",r.src,r,null);return;case"input":Ot("invalid",n);var M=g=x=d=null,j=null,X=null;for(l in r)if(r.hasOwnProperty(l)){var tt=r[l];if(tt!=null)switch(l){case"name":d=tt;break;case"type":x=tt;break;case"checked":j=tt;break;case"defaultChecked":X=tt;break;case"value":g=tt;break;case"defaultValue":M=tt;break;case"children":case"dangerouslySetInnerHTML":if(tt!=null)throw Error(s(137,a));break;default:Yt(n,a,l,tt,r,null)}}av(n,g,M,j,X,x,d,!1);return;case"select":Ot("invalid",n),l=x=g=null;for(d in r)if(r.hasOwnProperty(d)&&(M=r[d],M!=null))switch(d){case"value":g=M;break;case"defaultValue":x=M;break;case"multiple":l=M;default:Yt(n,a,d,M,r,null)}a=g,r=x,n.multiple=!!l,a!=null?ur(n,!!l,a,!1):r!=null&&ur(n,!!l,r,!0);return;case"textarea":Ot("invalid",n),g=d=l=null;for(x in r)if(r.hasOwnProperty(x)&&(M=r[x],M!=null))switch(x){case"value":l=M;break;case"defaultValue":d=M;break;case"children":g=M;break;case"dangerouslySetInnerHTML":if(M!=null)throw Error(s(91));break;default:Yt(n,a,x,M,r,null)}rv(n,l,d,g);return;case"option":for(j in r)if(r.hasOwnProperty(j)&&(l=r[j],l!=null))switch(j){case"selected":n.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Yt(n,a,j,l,r,null)}return;case"dialog":Ot("beforetoggle",n),Ot("toggle",n),Ot("cancel",n),Ot("close",n);break;case"iframe":case"object":Ot("load",n);break;case"video":case"audio":for(l=0;l<gl.length;l++)Ot(gl[l],n);break;case"image":Ot("error",n),Ot("load",n);break;case"details":Ot("toggle",n);break;case"embed":case"source":case"link":Ot("error",n),Ot("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(X in r)if(r.hasOwnProperty(X)&&(l=r[X],l!=null))switch(X){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,a));default:Yt(n,a,X,l,r,null)}return;default:if(Sd(a)){for(tt in r)r.hasOwnProperty(tt)&&(l=r[tt],l!==void 0&&om(n,a,tt,l,r,void 0));return}}for(M in r)r.hasOwnProperty(M)&&(l=r[M],l!=null&&Yt(n,a,M,l,r,null))}function G_(n,a,r,l){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var d=null,g=null,x=null,M=null,j=null,X=null,tt=null;for(Z in r){var it=r[Z];if(r.hasOwnProperty(Z)&&it!=null)switch(Z){case"checked":break;case"value":break;case"defaultValue":j=it;default:l.hasOwnProperty(Z)||Yt(n,a,Z,null,l,it)}}for(var Q in l){var Z=l[Q];if(it=r[Q],l.hasOwnProperty(Q)&&(Z!=null||it!=null))switch(Q){case"type":g=Z;break;case"name":d=Z;break;case"checked":X=Z;break;case"defaultChecked":tt=Z;break;case"value":x=Z;break;case"defaultValue":M=Z;break;case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(s(137,a));break;default:Z!==it&&Yt(n,a,Q,Z,l,it)}}bd(n,x,M,j,X,tt,g,d);return;case"select":Z=x=M=Q=null;for(g in r)if(j=r[g],r.hasOwnProperty(g)&&j!=null)switch(g){case"value":break;case"multiple":Z=j;default:l.hasOwnProperty(g)||Yt(n,a,g,null,l,j)}for(d in l)if(g=l[d],j=r[d],l.hasOwnProperty(d)&&(g!=null||j!=null))switch(d){case"value":Q=g;break;case"defaultValue":M=g;break;case"multiple":x=g;default:g!==j&&Yt(n,a,d,g,l,j)}a=M,r=x,l=Z,Q!=null?ur(n,!!r,Q,!1):!!l!=!!r&&(a!=null?ur(n,!!r,a,!0):ur(n,!!r,r?[]:"",!1));return;case"textarea":Z=Q=null;for(M in r)if(d=r[M],r.hasOwnProperty(M)&&d!=null&&!l.hasOwnProperty(M))switch(M){case"value":break;case"children":break;default:Yt(n,a,M,null,l,d)}for(x in l)if(d=l[x],g=r[x],l.hasOwnProperty(x)&&(d!=null||g!=null))switch(x){case"value":Q=d;break;case"defaultValue":Z=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(s(91));break;default:d!==g&&Yt(n,a,x,d,l,g)}sv(n,Q,Z);return;case"option":for(var pt in r)if(Q=r[pt],r.hasOwnProperty(pt)&&Q!=null&&!l.hasOwnProperty(pt))switch(pt){case"selected":n.selected=!1;break;default:Yt(n,a,pt,null,l,Q)}for(j in l)if(Q=l[j],Z=r[j],l.hasOwnProperty(j)&&Q!==Z&&(Q!=null||Z!=null))switch(j){case"selected":n.selected=Q&&typeof Q!="function"&&typeof Q!="symbol";break;default:Yt(n,a,j,Q,l,Z)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var St in r)Q=r[St],r.hasOwnProperty(St)&&Q!=null&&!l.hasOwnProperty(St)&&Yt(n,a,St,null,l,Q);for(X in l)if(Q=l[X],Z=r[X],l.hasOwnProperty(X)&&Q!==Z&&(Q!=null||Z!=null))switch(X){case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(s(137,a));break;default:Yt(n,a,X,Q,l,Z)}return;default:if(Sd(a)){for(var Kt in r)Q=r[Kt],r.hasOwnProperty(Kt)&&Q!==void 0&&!l.hasOwnProperty(Kt)&&om(n,a,Kt,void 0,l,Q);for(tt in l)Q=l[tt],Z=r[tt],!l.hasOwnProperty(tt)||Q===Z||Q===void 0&&Z===void 0||om(n,a,tt,Q,l,Z);return}}for(var F in r)Q=r[F],r.hasOwnProperty(F)&&Q!=null&&!l.hasOwnProperty(F)&&Yt(n,a,F,null,l,Q);for(it in l)Q=l[it],Z=r[it],!l.hasOwnProperty(it)||Q===Z||Q==null&&Z==null||Yt(n,a,it,Q,l,Z)}function cx(n){switch(n){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function q_(){if(typeof performance.getEntriesByType=="function"){for(var n=0,a=0,r=performance.getEntriesByType("resource"),l=0;l<r.length;l++){var d=r[l],g=d.transferSize,x=d.initiatorType,M=d.duration;if(g&&M&&cx(x)){for(x=0,M=d.responseEnd,l+=1;l<r.length;l++){var j=r[l],X=j.startTime;if(X>M)break;var tt=j.transferSize,it=j.initiatorType;tt&&cx(it)&&(j=j.responseEnd,x+=tt*(j<M?1:(M-X)/(j-X)))}if(--l,a+=8*(g+x)/(d.duration/1e3),n++,10<n)break}}if(0<n)return a/n/1e6}return navigator.connection&&(n=navigator.connection.downlink,typeof n=="number")?n:5}var lm=null,cm=null;function wu(n){return n.nodeType===9?n:n.ownerDocument}function ux(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function fx(n,a){if(n===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&a==="foreignObject"?0:n}function um(n,a){return n==="textarea"||n==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var fm=null;function Y_(){var n=window.event;return n&&n.type==="popstate"?n===fm?!1:(fm=n,!0):(fm=null,!1)}var dx=typeof setTimeout=="function"?setTimeout:void 0,K_=typeof clearTimeout=="function"?clearTimeout:void 0,hx=typeof Promise=="function"?Promise:void 0,X_=typeof queueMicrotask=="function"?queueMicrotask:typeof hx<"u"?function(n){return hx.resolve(null).then(n).catch(Q_)}:dx;function Q_(n){setTimeout(function(){throw n})}function Ea(n){return n==="head"}function mx(n,a){var r=a,l=0;do{var d=r.nextSibling;if(n.removeChild(r),d&&d.nodeType===8)if(r=d.data,r==="/$"||r==="/&"){if(l===0){n.removeChild(d),Hr(a);return}l--}else if(r==="$"||r==="$?"||r==="$~"||r==="$!"||r==="&")l++;else if(r==="html")vl(n.ownerDocument.documentElement);else if(r==="head"){r=n.ownerDocument.head,vl(r);for(var g=r.firstChild;g;){var x=g.nextSibling,M=g.nodeName;g[ko]||M==="SCRIPT"||M==="STYLE"||M==="LINK"&&g.rel.toLowerCase()==="stylesheet"||r.removeChild(g),g=x}}else r==="body"&&vl(n.ownerDocument.body);r=d}while(r);Hr(a)}function px(n,a){var r=n;n=0;do{var l=r.nextSibling;if(r.nodeType===1?a?(r._stashedDisplay=r.style.display,r.style.display="none"):(r.style.display=r._stashedDisplay||"",r.getAttribute("style")===""&&r.removeAttribute("style")):r.nodeType===3&&(a?(r._stashedText=r.nodeValue,r.nodeValue=""):r.nodeValue=r._stashedText||""),l&&l.nodeType===8)if(r=l.data,r==="/$"){if(n===0)break;n--}else r!=="$"&&r!=="$?"&&r!=="$~"&&r!=="$!"||n++;r=l}while(r)}function dm(n){var a=n.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var r=a;switch(a=a.nextSibling,r.nodeName){case"HTML":case"HEAD":case"BODY":dm(r),yd(r);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(r.rel.toLowerCase()==="stylesheet")continue}n.removeChild(r)}}function $_(n,a,r,l){for(;n.nodeType===1;){var d=r;if(n.nodeName.toLowerCase()!==a.toLowerCase()){if(!l&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(l){if(!n[ko])switch(a){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(g=n.getAttribute("rel"),g==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(g!==d.rel||n.getAttribute("href")!==(d.href==null||d.href===""?null:d.href)||n.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||n.getAttribute("title")!==(d.title==null?null:d.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(g=n.getAttribute("src"),(g!==(d.src==null?null:d.src)||n.getAttribute("type")!==(d.type==null?null:d.type)||n.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&g&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(a==="input"&&n.type==="hidden"){var g=d.name==null?null:""+d.name;if(d.type==="hidden"&&n.getAttribute("name")===g)return n}else return n;if(n=Nn(n.nextSibling),n===null)break}return null}function Z_(n,a,r){if(a==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!r||(n=Nn(n.nextSibling),n===null))return null;return n}function gx(n,a){for(;n.nodeType!==8;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!a||(n=Nn(n.nextSibling),n===null))return null;return n}function hm(n){return n.data==="$?"||n.data==="$~"}function mm(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState!=="loading"}function W_(n,a){var r=n.ownerDocument;if(n.data==="$~")n._reactRetry=a;else if(n.data!=="$?"||r.readyState!=="loading")a();else{var l=function(){a(),r.removeEventListener("DOMContentLoaded",l)};r.addEventListener("DOMContentLoaded",l),n._reactRetry=l}}function Nn(n){for(;n!=null;n=n.nextSibling){var a=n.nodeType;if(a===1||a===3)break;if(a===8){if(a=n.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return n}var pm=null;function yx(n){n=n.nextSibling;for(var a=0;n;){if(n.nodeType===8){var r=n.data;if(r==="/$"||r==="/&"){if(a===0)return Nn(n.nextSibling);a--}else r!=="$"&&r!=="$!"&&r!=="$?"&&r!=="$~"&&r!=="&"||a++}n=n.nextSibling}return null}function vx(n){n=n.previousSibling;for(var a=0;n;){if(n.nodeType===8){var r=n.data;if(r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"){if(a===0)return n;a--}else r!=="/$"&&r!=="/&"||a++}n=n.previousSibling}return null}function bx(n,a,r){switch(a=wu(r),n){case"html":if(n=a.documentElement,!n)throw Error(s(452));return n;case"head":if(n=a.head,!n)throw Error(s(453));return n;case"body":if(n=a.body,!n)throw Error(s(454));return n;default:throw Error(s(451))}}function vl(n){for(var a=n.attributes;a.length;)n.removeAttributeNode(a[0]);yd(n)}var Pn=new Map,xx=new Set;function Eu(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var Gi=q.d;q.d={f:J_,r:t2,D:e2,C:n2,L:i2,m:a2,X:r2,S:s2,M:o2};function J_(){var n=Gi.f(),a=mu();return n||a}function t2(n){var a=or(n);a!==null&&a.tag===5&&a.type==="form"?z0(a):Gi.r(n)}var Vr=typeof document>"u"?null:document;function Sx(n,a,r){var l=Vr;if(l&&typeof a=="string"&&a){var d=Cn(a);d='link[rel="'+n+'"][href="'+d+'"]',typeof r=="string"&&(d+='[crossorigin="'+r+'"]'),xx.has(d)||(xx.add(d),n={rel:n,crossOrigin:r,href:a},l.querySelector(d)===null&&(a=l.createElement("link"),Pe(a,"link",n),Ce(a),l.head.appendChild(a)))}}function e2(n){Gi.D(n),Sx("dns-prefetch",n,null)}function n2(n,a){Gi.C(n,a),Sx("preconnect",n,a)}function i2(n,a,r){Gi.L(n,a,r);var l=Vr;if(l&&n&&a){var d='link[rel="preload"][as="'+Cn(a)+'"]';a==="image"&&r&&r.imageSrcSet?(d+='[imagesrcset="'+Cn(r.imageSrcSet)+'"]',typeof r.imageSizes=="string"&&(d+='[imagesizes="'+Cn(r.imageSizes)+'"]')):d+='[href="'+Cn(n)+'"]';var g=d;switch(a){case"style":g=Ur(n);break;case"script":g=Ir(n)}Pn.has(g)||(n=p({rel:"preload",href:a==="image"&&r&&r.imageSrcSet?void 0:n,as:a},r),Pn.set(g,n),l.querySelector(d)!==null||a==="style"&&l.querySelector(bl(g))||a==="script"&&l.querySelector(xl(g))||(a=l.createElement("link"),Pe(a,"link",n),Ce(a),l.head.appendChild(a)))}}function a2(n,a){Gi.m(n,a);var r=Vr;if(r&&n){var l=a&&typeof a.as=="string"?a.as:"script",d='link[rel="modulepreload"][as="'+Cn(l)+'"][href="'+Cn(n)+'"]',g=d;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":g=Ir(n)}if(!Pn.has(g)&&(n=p({rel:"modulepreload",href:n},a),Pn.set(g,n),r.querySelector(d)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(r.querySelector(xl(g)))return}l=r.createElement("link"),Pe(l,"link",n),Ce(l),r.head.appendChild(l)}}}function s2(n,a,r){Gi.S(n,a,r);var l=Vr;if(l&&n){var d=lr(l).hoistableStyles,g=Ur(n);a=a||"default";var x=d.get(g);if(!x){var M={loading:0,preload:null};if(x=l.querySelector(bl(g)))M.loading=5;else{n=p({rel:"stylesheet",href:n,"data-precedence":a},r),(r=Pn.get(g))&&gm(n,r);var j=x=l.createElement("link");Ce(j),Pe(j,"link",n),j._p=new Promise(function(X,tt){j.onload=X,j.onerror=tt}),j.addEventListener("load",function(){M.loading|=1}),j.addEventListener("error",function(){M.loading|=2}),M.loading|=4,Tu(x,a,l)}x={type:"stylesheet",instance:x,count:1,state:M},d.set(g,x)}}}function r2(n,a){Gi.X(n,a);var r=Vr;if(r&&n){var l=lr(r).hoistableScripts,d=Ir(n),g=l.get(d);g||(g=r.querySelector(xl(d)),g||(n=p({src:n,async:!0},a),(a=Pn.get(d))&&ym(n,a),g=r.createElement("script"),Ce(g),Pe(g,"link",n),r.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},l.set(d,g))}}function o2(n,a){Gi.M(n,a);var r=Vr;if(r&&n){var l=lr(r).hoistableScripts,d=Ir(n),g=l.get(d);g||(g=r.querySelector(xl(d)),g||(n=p({src:n,async:!0,type:"module"},a),(a=Pn.get(d))&&ym(n,a),g=r.createElement("script"),Ce(g),Pe(g,"link",n),r.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},l.set(d,g))}}function wx(n,a,r,l){var d=(d=lt.current)?Eu(d):null;if(!d)throw Error(s(446));switch(n){case"meta":case"title":return null;case"style":return typeof r.precedence=="string"&&typeof r.href=="string"?(a=Ur(r.href),r=lr(d).hoistableStyles,l=r.get(a),l||(l={type:"style",instance:null,count:0,state:null},r.set(a,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(r.rel==="stylesheet"&&typeof r.href=="string"&&typeof r.precedence=="string"){n=Ur(r.href);var g=lr(d).hoistableStyles,x=g.get(n);if(x||(d=d.ownerDocument||d,x={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},g.set(n,x),(g=d.querySelector(bl(n)))&&!g._p&&(x.instance=g,x.state.loading=5),Pn.has(n)||(r={rel:"preload",as:"style",href:r.href,crossOrigin:r.crossOrigin,integrity:r.integrity,media:r.media,hrefLang:r.hrefLang,referrerPolicy:r.referrerPolicy},Pn.set(n,r),g||l2(d,n,r,x.state))),a&&l===null)throw Error(s(528,""));return x}if(a&&l!==null)throw Error(s(529,""));return null;case"script":return a=r.async,r=r.src,typeof r=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=Ir(r),r=lr(d).hoistableScripts,l=r.get(a),l||(l={type:"script",instance:null,count:0,state:null},r.set(a,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,n))}}function Ur(n){return'href="'+Cn(n)+'"'}function bl(n){return'link[rel="stylesheet"]['+n+"]"}function Ex(n){return p({},n,{"data-precedence":n.precedence,precedence:null})}function l2(n,a,r,l){n.querySelector('link[rel="preload"][as="style"]['+a+"]")?l.loading=1:(a=n.createElement("link"),l.preload=a,a.addEventListener("load",function(){return l.loading|=1}),a.addEventListener("error",function(){return l.loading|=2}),Pe(a,"link",r),Ce(a),n.head.appendChild(a))}function Ir(n){return'[src="'+Cn(n)+'"]'}function xl(n){return"script[async]"+n}function Tx(n,a,r){if(a.count++,a.instance===null)switch(a.type){case"style":var l=n.querySelector('style[data-href~="'+Cn(r.href)+'"]');if(l)return a.instance=l,Ce(l),l;var d=p({},r,{"data-href":r.href,"data-precedence":r.precedence,href:null,precedence:null});return l=(n.ownerDocument||n).createElement("style"),Ce(l),Pe(l,"style",d),Tu(l,r.precedence,n),a.instance=l;case"stylesheet":d=Ur(r.href);var g=n.querySelector(bl(d));if(g)return a.state.loading|=4,a.instance=g,Ce(g),g;l=Ex(r),(d=Pn.get(d))&&gm(l,d),g=(n.ownerDocument||n).createElement("link"),Ce(g);var x=g;return x._p=new Promise(function(M,j){x.onload=M,x.onerror=j}),Pe(g,"link",l),a.state.loading|=4,Tu(g,r.precedence,n),a.instance=g;case"script":return g=Ir(r.src),(d=n.querySelector(xl(g)))?(a.instance=d,Ce(d),d):(l=r,(d=Pn.get(g))&&(l=p({},r),ym(l,d)),n=n.ownerDocument||n,d=n.createElement("script"),Ce(d),Pe(d,"link",l),n.head.appendChild(d),a.instance=d);case"void":return null;default:throw Error(s(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(l=a.instance,a.state.loading|=4,Tu(l,r.precedence,n));return a.instance}function Tu(n,a,r){for(var l=r.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=l.length?l[l.length-1]:null,g=d,x=0;x<l.length;x++){var M=l[x];if(M.dataset.precedence===a)g=M;else if(g!==d)break}g?g.parentNode.insertBefore(n,g.nextSibling):(a=r.nodeType===9?r.head:r,a.insertBefore(n,a.firstChild))}function gm(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.title==null&&(n.title=a.title)}function ym(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.integrity==null&&(n.integrity=a.integrity)}var Cu=null;function Cx(n,a,r){if(Cu===null){var l=new Map,d=Cu=new Map;d.set(r,l)}else d=Cu,l=d.get(r),l||(l=new Map,d.set(r,l));if(l.has(n))return l;for(l.set(n,null),r=r.getElementsByTagName(n),d=0;d<r.length;d++){var g=r[d];if(!(g[ko]||g[_e]||n==="link"&&g.getAttribute("rel")==="stylesheet")&&g.namespaceURI!=="http://www.w3.org/2000/svg"){var x=g.getAttribute(a)||"";x=n+x;var M=l.get(x);M?M.push(g):l.set(x,[g])}}return l}function Rx(n,a,r){n=n.ownerDocument||n,n.head.insertBefore(r,a==="title"?n.querySelector("head > title"):null)}function c2(n,a,r){if(r===1||a.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return n=a.disabled,typeof a.precedence=="string"&&n==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function Mx(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}function u2(n,a,r,l){if(r.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(r.state.loading&4)===0){if(r.instance===null){var d=Ur(l.href),g=a.querySelector(bl(d));if(g){a=g._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(n.count++,n=Ru.bind(n),a.then(n,n)),r.state.loading|=4,r.instance=g,Ce(g);return}g=a.ownerDocument||a,l=Ex(l),(d=Pn.get(d))&&gm(l,d),g=g.createElement("link"),Ce(g);var x=g;x._p=new Promise(function(M,j){x.onload=M,x.onerror=j}),Pe(g,"link",l),r.instance=g}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(r,a),(a=r.state.preload)&&(r.state.loading&3)===0&&(n.count++,r=Ru.bind(n),a.addEventListener("load",r),a.addEventListener("error",r))}}var vm=0;function f2(n,a){return n.stylesheets&&n.count===0&&Au(n,n.stylesheets),0<n.count||0<n.imgCount?function(r){var l=setTimeout(function(){if(n.stylesheets&&Au(n,n.stylesheets),n.unsuspend){var g=n.unsuspend;n.unsuspend=null,g()}},6e4+a);0<n.imgBytes&&vm===0&&(vm=62500*q_());var d=setTimeout(function(){if(n.waitingForImages=!1,n.count===0&&(n.stylesheets&&Au(n,n.stylesheets),n.unsuspend)){var g=n.unsuspend;n.unsuspend=null,g()}},(n.imgBytes>vm?50:800)+a);return n.unsuspend=r,function(){n.unsuspend=null,clearTimeout(l),clearTimeout(d)}}:null}function Ru(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Au(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var Mu=null;function Au(n,a){n.stylesheets=null,n.unsuspend!==null&&(n.count++,Mu=new Map,a.forEach(d2,n),Mu=null,Ru.call(n))}function d2(n,a){if(!(a.state.loading&4)){var r=Mu.get(n);if(r)var l=r.get(null);else{r=new Map,Mu.set(n,r);for(var d=n.querySelectorAll("link[data-precedence],style[data-precedence]"),g=0;g<d.length;g++){var x=d[g];(x.nodeName==="LINK"||x.getAttribute("media")!=="not all")&&(r.set(x.dataset.precedence,x),l=x)}l&&r.set(null,l)}d=a.instance,x=d.getAttribute("data-precedence"),g=r.get(x)||l,g===l&&r.set(null,d),r.set(x,d),this.count++,l=Ru.bind(this),d.addEventListener("load",l),d.addEventListener("error",l),g?g.parentNode.insertBefore(d,g.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(d,n.firstChild)),a.state.loading|=4}}var Sl={$$typeof:_,Provider:null,Consumer:null,_currentValue:H,_currentValue2:H,_threadCount:0};function h2(n,a,r,l,d,g,x,M,j){this.tag=1,this.containerInfo=n,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=aa(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=aa(0),this.hiddenUpdates=aa(null),this.identifierPrefix=l,this.onUncaughtError=d,this.onCaughtError=g,this.onRecoverableError=x,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=j,this.incompleteTransitions=new Map}function Ax(n,a,r,l,d,g,x,M,j,X,tt,it){return n=new h2(n,a,r,x,j,X,tt,it,M),a=1,g===!0&&(a|=24),g=hn(3,null,null,a),n.current=g,g.stateNode=n,a=Zd(),a.refCount++,n.pooledCache=a,a.refCount++,g.memoizedState={element:l,isDehydrated:r,cache:a},eh(g),n}function _x(n){return n?(n=vr,n):vr}function Dx(n,a,r,l,d,g){d=_x(d),l.context===null?l.context=d:l.pendingContext=d,l=da(a),l.payload={element:r},g=g===void 0?null:g,g!==null&&(l.callback=g),r=ha(n,l,a),r!==null&&(on(r,n,a),Jo(r,n,a))}function Ox(n,a){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var r=n.retryLane;n.retryLane=r!==0&&r<a?r:a}}function bm(n,a){Ox(n,a),(n=n.alternate)&&Ox(n,a)}function Nx(n){if(n.tag===13||n.tag===31){var a=ds(n,67108864);a!==null&&on(a,n,67108864),bm(n,67108864)}}function Px(n){if(n.tag===13||n.tag===31){var a=vn();a=ar(a);var r=ds(n,a);r!==null&&on(r,n,a),bm(n,a)}}var _u=!0;function m2(n,a,r,l){var d=N.T;N.T=null;var g=q.p;try{q.p=2,xm(n,a,r,l)}finally{q.p=g,N.T=d}}function p2(n,a,r,l){var d=N.T;N.T=null;var g=q.p;try{q.p=8,xm(n,a,r,l)}finally{q.p=g,N.T=d}}function xm(n,a,r,l){if(_u){var d=Sm(l);if(d===null)rm(n,a,l,Du,r),jx(n,l);else if(y2(d,n,a,r,l))l.stopPropagation();else if(jx(n,l),a&4&&-1<g2.indexOf(n)){for(;d!==null;){var g=or(d);if(g!==null)switch(g.tag){case 3:if(g=g.stateNode,g.current.memoizedState.isDehydrated){var x=ri(g.pendingLanes);if(x!==0){var M=g;for(M.pendingLanes|=2,M.entangledLanes|=2;x;){var j=1<<31-Be(x);M.entanglements[1]|=j,x&=~j}ui(g),(It&6)===0&&(du=Ae()+500,pl(0))}}break;case 31:case 13:M=ds(g,2),M!==null&&on(M,g,2),mu(),bm(g,2)}if(g=Sm(l),g===null&&rm(n,a,l,Du,r),g===d)break;d=g}d!==null&&l.stopPropagation()}else rm(n,a,l,null,r)}}function Sm(n){return n=Ed(n),wm(n)}var Du=null;function wm(n){if(Du=null,n=rr(n),n!==null){var a=c(n);if(a===null)n=null;else{var r=a.tag;if(r===13){if(n=u(a),n!==null)return n;n=null}else if(r===31){if(n=f(a),n!==null)return n;n=null}else if(r===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;n=null}else a!==n&&(n=null)}}return Du=n,null}function Lx(n){switch(n){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Lo()){case zt:return 2;case ye:return 8;case ve:case na:return 32;case Ri:return 268435456;default:return 32}default:return 32}}var Em=!1,Ta=null,Ca=null,Ra=null,wl=new Map,El=new Map,Ma=[],g2="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".split(" ");function jx(n,a){switch(n){case"focusin":case"focusout":Ta=null;break;case"dragenter":case"dragleave":Ca=null;break;case"mouseover":case"mouseout":Ra=null;break;case"pointerover":case"pointerout":wl.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":El.delete(a.pointerId)}}function Tl(n,a,r,l,d,g){return n===null||n.nativeEvent!==g?(n={blockedOn:a,domEventName:r,eventSystemFlags:l,nativeEvent:g,targetContainers:[d]},a!==null&&(a=or(a),a!==null&&Nx(a)),n):(n.eventSystemFlags|=l,a=n.targetContainers,d!==null&&a.indexOf(d)===-1&&a.push(d),n)}function y2(n,a,r,l,d){switch(a){case"focusin":return Ta=Tl(Ta,n,a,r,l,d),!0;case"dragenter":return Ca=Tl(Ca,n,a,r,l,d),!0;case"mouseover":return Ra=Tl(Ra,n,a,r,l,d),!0;case"pointerover":var g=d.pointerId;return wl.set(g,Tl(wl.get(g)||null,n,a,r,l,d)),!0;case"gotpointercapture":return g=d.pointerId,El.set(g,Tl(El.get(g)||null,n,a,r,l,d)),!0}return!1}function kx(n){var a=rr(n.target);if(a!==null){var r=c(a);if(r!==null){if(a=r.tag,a===13){if(a=u(r),a!==null){n.blockedOn=a,$y(n.priority,function(){Px(r)});return}}else if(a===31){if(a=f(r),a!==null){n.blockedOn=a,$y(n.priority,function(){Px(r)});return}}else if(a===3&&r.stateNode.current.memoizedState.isDehydrated){n.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}n.blockedOn=null}function Ou(n){if(n.blockedOn!==null)return!1;for(var a=n.targetContainers;0<a.length;){var r=Sm(n.nativeEvent);if(r===null){r=n.nativeEvent;var l=new r.constructor(r.type,r);wd=l,r.target.dispatchEvent(l),wd=null}else return a=or(r),a!==null&&Nx(a),n.blockedOn=r,!1;a.shift()}return!0}function zx(n,a,r){Ou(n)&&r.delete(a)}function v2(){Em=!1,Ta!==null&&Ou(Ta)&&(Ta=null),Ca!==null&&Ou(Ca)&&(Ca=null),Ra!==null&&Ou(Ra)&&(Ra=null),wl.forEach(zx),El.forEach(zx)}function Nu(n,a){n.blockedOn===a&&(n.blockedOn=null,Em||(Em=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,v2)))}var Pu=null;function Bx(n){Pu!==n&&(Pu=n,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Pu===n&&(Pu=null);for(var a=0;a<n.length;a+=3){var r=n[a],l=n[a+1],d=n[a+2];if(typeof l!="function"){if(wm(l||r)===null)continue;break}var g=or(r);g!==null&&(n.splice(a,3),a-=3,Sh(g,{pending:!0,data:d,method:r.method,action:l},l,d))}}))}function Hr(n){function a(j){return Nu(j,n)}Ta!==null&&Nu(Ta,n),Ca!==null&&Nu(Ca,n),Ra!==null&&Nu(Ra,n),wl.forEach(a),El.forEach(a);for(var r=0;r<Ma.length;r++){var l=Ma[r];l.blockedOn===n&&(l.blockedOn=null)}for(;0<Ma.length&&(r=Ma[0],r.blockedOn===null);)kx(r),r.blockedOn===null&&Ma.shift();if(r=(n.ownerDocument||n).$$reactFormReplay,r!=null)for(l=0;l<r.length;l+=3){var d=r[l],g=r[l+1],x=d[tn]||null;if(typeof g=="function")x||Bx(r);else if(x){var M=null;if(g&&g.hasAttribute("formAction")){if(d=g,x=g[tn]||null)M=x.formAction;else if(wm(d)!==null)continue}else M=x.action;typeof M=="function"?r[l+1]=M:(r.splice(l,3),l-=3),Bx(r)}}}function Vx(){function n(g){g.canIntercept&&g.info==="react-transition"&&g.intercept({handler:function(){return new Promise(function(x){return d=x})},focusReset:"manual",scroll:"manual"})}function a(){d!==null&&(d(),d=null),l||setTimeout(r,20)}function r(){if(!l&&!navigation.transition){var g=navigation.currentEntry;g&&g.url!=null&&navigation.navigate(g.url,{state:g.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,d=null;return navigation.addEventListener("navigate",n),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(r,100),function(){l=!0,navigation.removeEventListener("navigate",n),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),d!==null&&(d(),d=null)}}}function Tm(n){this._internalRoot=n}Lu.prototype.render=Tm.prototype.render=function(n){var a=this._internalRoot;if(a===null)throw Error(s(409));var r=a.current,l=vn();Dx(r,l,n,a,null,null)},Lu.prototype.unmount=Tm.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var a=n.containerInfo;Dx(n.current,2,null,n,null,null),mu(),a[sr]=null}};function Lu(n){this._internalRoot=n}Lu.prototype.unstable_scheduleHydration=function(n){if(n){var a=pd();n={blockedOn:null,target:n,priority:a};for(var r=0;r<Ma.length&&a!==0&&a<Ma[r].priority;r++);Ma.splice(r,0,n),r===0&&kx(n)}};var Ux=e.version;if(Ux!=="19.2.4")throw Error(s(527,Ux,"19.2.4"));q.findDOMNode=function(n){var a=n._reactInternals;if(a===void 0)throw typeof n.render=="function"?Error(s(188)):(n=Object.keys(n).join(","),Error(s(268,n)));return n=h(a),n=n!==null?y(n):null,n=n===null?null:n.stateNode,n};var b2={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:N,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ju=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ju.isDisabled&&ju.supportsFiber)try{ss=ju.inject(b2),Fe=ju}catch{}}return Rl.createRoot=function(n,a){if(!o(n))throw Error(s(299));var r=!1,l="",d=K0,g=X0,x=Q0;return a!=null&&(a.unstable_strictMode===!0&&(r=!0),a.identifierPrefix!==void 0&&(l=a.identifierPrefix),a.onUncaughtError!==void 0&&(d=a.onUncaughtError),a.onCaughtError!==void 0&&(g=a.onCaughtError),a.onRecoverableError!==void 0&&(x=a.onRecoverableError)),a=Ax(n,1,!1,null,null,r,l,null,d,g,x,Vx),n[sr]=a.current,sm(n),new Tm(a)},Rl.hydrateRoot=function(n,a,r){if(!o(n))throw Error(s(299));var l=!1,d="",g=K0,x=X0,M=Q0,j=null;return r!=null&&(r.unstable_strictMode===!0&&(l=!0),r.identifierPrefix!==void 0&&(d=r.identifierPrefix),r.onUncaughtError!==void 0&&(g=r.onUncaughtError),r.onCaughtError!==void 0&&(x=r.onCaughtError),r.onRecoverableError!==void 0&&(M=r.onRecoverableError),r.formState!==void 0&&(j=r.formState)),a=Ax(n,1,!0,a,r??null,l,d,j,g,x,M,Vx),a.context=_x(null),r=a.current,l=vn(),l=ar(l),d=da(l),d.callback=null,ha(r,d,l),r=l,a.current.lanes=r,ee(a,r),ui(a),n[sr]=a.current,sm(n),new Lu(a)},Rl.version="19.2.4",Rl}var Zx;function _2(){if(Zx)return Am.exports;Zx=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),Am.exports=A2(),Am.exports}var D2=_2();const O2=Mg(D2),Mp=new WeakMap,N2=new WeakMap,hf={current:[]};let Nm=!1,Ul=0;const kl=new Set,zu=new Map;function tE(t){for(const e of t){if(hf.current.includes(e))continue;hf.current.push(e),e.recompute();const i=N2.get(e);if(i)for(const s of i){const o=Mp.get(s);o!=null&&o.length&&tE(o)}}}function P2(t){const e={prevVal:t.prevState,currentVal:t.state};for(const i of t.listeners)i(e)}function L2(t){const e={prevVal:t.prevState,currentVal:t.state};for(const i of t.listeners)i(e)}function eE(t){if(Ul>0&&!zu.has(t)&&zu.set(t,t.prevState),kl.add(t),!(Ul>0)&&!Nm)try{for(Nm=!0;kl.size>0;){const e=Array.from(kl);kl.clear();for(const i of e){const s=zu.get(i)??i.prevState;i.prevState=s,P2(i)}for(const i of e){const s=Mp.get(i);s&&(hf.current.push(i),tE(s))}for(const i of e){const s=Mp.get(i);if(s)for(const o of s)L2(o)}}}finally{Nm=!1,hf.current=[],zu.clear()}}function j2(t){Ul++;try{t()}finally{if(Ul--,Ul===0){const e=kl.values().next().value;e&&eE(e)}}}function k2(t){return typeof t=="function"}class z2{constructor(e,i){this.listeners=new Set,this.subscribe=s=>{var o,c;this.listeners.add(s);const u=(c=(o=this.options)==null?void 0:o.onSubscribe)==null?void 0:c.call(o,s,this);return()=>{this.listeners.delete(s),u==null||u()}},this.prevState=e,this.state=e,this.options=i}setState(e){var i,s,o;this.prevState=this.state,(i=this.options)!=null&&i.updateFn?this.state=this.options.updateFn(this.prevState)(e):k2(e)?this.state=e(this.prevState):this.state=e,(o=(s=this.options)==null?void 0:s.onUpdate)==null||o.call(s),eE(this)}}const Ya="__TSR_index",Wx="popstate",Jx="beforeunload";function B2(t){let e=t.getLocation();const i=new Set,s=u=>{e=t.getLocation(),i.forEach(f=>f({location:e,action:u}))},o=u=>{t.notifyOnIndexChange??!0?s(u):e=t.getLocation()},c=async({task:u,navigateOpts:f,...m})=>{var v,b;if((f==null?void 0:f.ignoreBlocker)??!1){u();return}const y=((v=t.getBlockers)==null?void 0:v.call(t))??[],p=m.type==="PUSH"||m.type==="REPLACE";if(typeof document<"u"&&y.length&&p)for(const E of y){const w=mf(m.path,m.state);if(await E.blockerFn({currentLocation:e,nextLocation:w,action:m.type})){(b=t.onBlocked)==null||b.call(t);return}}u()};return{get location(){return e},get length(){return t.getLength()},subscribers:i,subscribe:u=>(i.add(u),()=>{i.delete(u)}),push:(u,f,m)=>{const h=e.state[Ya];f=tS(h+1,f),c({task:()=>{t.pushState(u,f),s({type:"PUSH"})},navigateOpts:m,type:"PUSH",path:u,state:f})},replace:(u,f,m)=>{const h=e.state[Ya];f=tS(h,f),c({task:()=>{t.replaceState(u,f),s({type:"REPLACE"})},navigateOpts:m,type:"REPLACE",path:u,state:f})},go:(u,f)=>{c({task:()=>{t.go(u),o({type:"GO",index:u})},navigateOpts:f,type:"GO"})},back:u=>{c({task:()=>{t.back((u==null?void 0:u.ignoreBlocker)??!1),o({type:"BACK"})},navigateOpts:u,type:"BACK"})},forward:u=>{c({task:()=>{t.forward((u==null?void 0:u.ignoreBlocker)??!1),o({type:"FORWARD"})},navigateOpts:u,type:"FORWARD"})},canGoBack:()=>e.state[Ya]!==0,createHref:u=>t.createHref(u),block:u=>{var m;if(!t.setBlockers)return()=>{};const f=((m=t.getBlockers)==null?void 0:m.call(t))??[];return t.setBlockers([...f,u]),()=>{var y,p;const h=((y=t.getBlockers)==null?void 0:y.call(t))??[];(p=t.setBlockers)==null||p.call(t,h.filter(v=>v!==u))}},flush:()=>{var u;return(u=t.flush)==null?void 0:u.call(t)},destroy:()=>{var u;return(u=t.destroy)==null?void 0:u.call(t)},notify:s}}function tS(t,e){e||(e={});const i=Ag();return{...e,key:i,__TSR_key:i,[Ya]:t}}function V2(t){var L,Y;const e=typeof document<"u"?window:void 0,i=e.history.pushState,s=e.history.replaceState;let o=[];const c=()=>o,u=I=>o=I,f=(I=>I),m=(()=>mf(`${e.location.pathname}${e.location.search}${e.location.hash}`,e.history.state));if(!((L=e.history.state)!=null&&L.__TSR_key)&&!((Y=e.history.state)!=null&&Y.key)){const I=Ag();e.history.replaceState({[Ya]:0,key:I,__TSR_key:I},"")}let h=m(),y,p=!1,v=!1,b=!1,E=!1;const w=()=>h;let T,C;const D=()=>{T&&(z._ignoreSubscribers=!0,(T.isPush?e.history.pushState:e.history.replaceState)(T.state,"",T.href),z._ignoreSubscribers=!1,T=void 0,C=void 0,y=void 0)},_=(I,W,at)=>{const ut=f(W);C||(y=h),h=mf(W,at),T={href:ut,state:at,isPush:(T==null?void 0:T.isPush)||I==="push"},C||(C=Promise.resolve().then(()=>D()))},A=I=>{h=m(),z.notify({type:I})},P=async()=>{if(v){v=!1;return}const I=m(),W=I.state[Ya]-h.state[Ya],at=W===1,ut=W===-1,ft=!at&&!ut||p;p=!1;const ot=ft?"GO":ut?"BACK":"FORWARD",N=ft?{type:"GO",index:W}:{type:ut?"BACK":"FORWARD"};if(b)b=!1;else{const q=c();if(typeof document<"u"&&q.length){for(const H of q)if(await H.blockerFn({currentLocation:h,nextLocation:I,action:ot})){v=!0,e.history.go(1),z.notify(N);return}}}h=m(),z.notify(N)},B=I=>{if(E){E=!1;return}let W=!1;const at=c();if(typeof document<"u"&&at.length)for(const ut of at){const ft=ut.enableBeforeUnload??!0;if(ft===!0){W=!0;break}if(typeof ft=="function"&&ft()===!0){W=!0;break}}if(W)return I.preventDefault(),I.returnValue=""},z=B2({getLocation:w,getLength:()=>e.history.length,pushState:(I,W)=>_("push",I,W),replaceState:(I,W)=>_("replace",I,W),back:I=>(I&&(b=!0),E=!0,e.history.back()),forward:I=>{I&&(b=!0),E=!0,e.history.forward()},go:I=>{p=!0,e.history.go(I)},createHref:I=>f(I),flush:D,destroy:()=>{e.history.pushState=i,e.history.replaceState=s,e.removeEventListener(Jx,B,{capture:!0}),e.removeEventListener(Wx,P)},onBlocked:()=>{y&&h!==y&&(h=y)},getBlockers:c,setBlockers:u,notifyOnIndexChange:!1});return e.addEventListener(Jx,B,{capture:!0}),e.addEventListener(Wx,P),e.history.pushState=function(...I){const W=i.apply(e.history,I);return z._ignoreSubscribers||A("PUSH"),W},e.history.replaceState=function(...I){const W=s.apply(e.history,I);return z._ignoreSubscribers||A("REPLACE"),W},z}function U2(t){let e=t.replace(/[\x00-\x1f\x7f]/g,"");return e.startsWith("//")&&(e="/"+e.replace(/^\/+/,"")),e}function mf(t,e){const i=U2(t),s=i.indexOf("#"),o=i.indexOf("?"),c=Ag();return{href:i,pathname:i.substring(0,s>0?o>0?Math.min(s,o):s:o>0?o:i.length),hash:s>-1?i.substring(s):"",search:o>-1?i.slice(o,s===-1?void 0:s):"",state:e||{[Ya]:0,key:c,__TSR_key:c}}}function Ag(){return(Math.random()+1).toString(36).substring(7)}const I2=!1;function Il(t){let e;return j2(()=>{e=t()}),e}function Yl(t){return t[t.length-1]}function H2(t){return typeof t=="function"}function Fa(t,e){return H2(t)?t(e):t}const F2=Object.prototype.hasOwnProperty,eS=Object.prototype.propertyIsEnumerable;function bn(t,e,i=0){if(t===e)return t;if(i>500)return e;const s=e,o=aS(t)&&aS(s);if(!o&&!(pf(t)&&pf(s)))return s;const c=o?t:nS(t);if(!c)return s;const u=o?s:nS(s);if(!u)return s;const f=c.length,m=u.length,h=o?new Array(m):{};let y=0;for(let p=0;p<m;p++){const v=o?p:u[p],b=t[v],E=s[v];if(b===E){h[v]=b,(o?p<f:F2.call(t,v))&&y++;continue}if(b===null||E===null||typeof b!="object"||typeof E!="object"){h[v]=E;continue}const w=bn(b,E,i+1);h[v]=w,w===b&&y++}return f===m&&y===f?t:h}function nS(t){const e=Object.getOwnPropertyNames(t);for(const o of e)if(!eS.call(t,o))return!1;const i=Object.getOwnPropertySymbols(t);if(i.length===0)return e;const s=e;for(const o of i){if(!eS.call(t,o))return!1;s.push(o)}return s}function pf(t){if(!iS(t))return!1;const e=t.constructor;if(typeof e>"u")return!0;const i=e.prototype;return!(!iS(i)||!i.hasOwnProperty("isPrototypeOf"))}function iS(t){return Object.prototype.toString.call(t)==="[object Object]"}function aS(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function Hs(t,e,i){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let s=0,o=t.length;s<o;s++)if(!Hs(t[s],e[s],i))return!1;return!0}if(pf(t)&&pf(e)){const s=(i==null?void 0:i.ignoreUndefined)??!0;if(i!=null&&i.partial){for(const u in e)if((!s||e[u]!==void 0)&&!Hs(t[u],e[u],i))return!1;return!0}let o=0;if(!s)o=Object.keys(t).length;else for(const u in t)t[u]!==void 0&&o++;let c=0;for(const u in e)if((!s||e[u]!==void 0)&&(c++,c>o||!Hs(t[u],e[u],i)))return!1;return o===c}return!1}function xo(t){let e,i;const s=new Promise((o,c)=>{e=o,i=c});return s.status="pending",s.resolve=o=>{s.status="resolved",s.value=o,e(o),t==null||t(o)},s.reject=o=>{s.status="rejected",i(o)},s}function G2(t){return typeof(t==null?void 0:t.message)!="string"?!1:t.message.startsWith("Failed to fetch dynamically imported module")||t.message.startsWith("error loading dynamically imported module")||t.message.startsWith("Importing a module script failed")}function no(t){return!!(t&&typeof t=="object"&&typeof t.then=="function")}function q2(t){return t.replace(/[\x00-\x1f\x7f]/g,"")}function sS(t){let e;try{e=decodeURI(t)}catch{e=t.replaceAll(/%[0-9A-F]{2}/gi,i=>{try{return decodeURI(i)}catch{return i}})}return q2(e)}const nE=["http:","https:","mailto:","tel:"];function gf(t){if(!t)return!1;try{const e=new URL(t);return!nE.includes(e.protocol)}catch{return!1}}function Ml(t){if(!t)return{path:t,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(t)&&!t.startsWith("//"))return{path:t,handledProtocolRelativeURL:!1};const e=/%25|%5C/gi;let i=0,s="",o;for(;(o=e.exec(t))!==null;)s+=sS(t.slice(i,o.index))+o[0],i=e.lastIndex;s=s+sS(i?t.slice(i):t);let c=!1;return s.startsWith("//")&&(c=!0,s="/"+s.replace(/^\/+/,"")),{path:s,handledProtocolRelativeURL:c}}function Y2(t){return/\s|[^\u0000-\u007F]/.test(t)?t.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):t}var K2="Invariant failed";function $i(t,e){if(!t)throw new Error(K2)}function yf(t){const e=new Map;let i,s;const o=c=>{c.next&&(c.prev?(c.prev.next=c.next,c.next.prev=c.prev,c.next=void 0,s&&(s.next=c,c.prev=s)):(c.next.prev=void 0,i=c.next,c.next=void 0,s&&(c.prev=s,s.next=c)),s=c)};return{get(c){const u=e.get(c);if(u)return o(u),u.value},set(c,u){if(e.size>=t&&i){const m=i;e.delete(m.key),m.next&&(i=m.next,m.next.prev=void 0),m===s&&(s=void 0)}const f=e.get(c);if(f)f.value=u,o(f);else{const m={key:c,value:u,prev:s};s&&(s.next=m),s=m,i||(i=m),e.set(c,m)}},clear(){e.clear(),i=void 0,s=void 0}}}const So=0,qs=1,Ys=2,Kl=3,As=4,iE=5;function X2(t){const e=t.indexOf("{");if(e===-1)return null;const i=t.indexOf("}",e);return i===-1||e+1>=t.length?null:[e,i]}function _g(t,e,i=new Uint16Array(6)){const s=t.indexOf("/",e),o=s===-1?t.length:s,c=t.substring(e,o);if(!c||!c.includes("$"))return i[0]=So,i[1]=e,i[2]=e,i[3]=o,i[4]=o,i[5]=o,i;if(c==="$"){const f=t.length;return i[0]=Ys,i[1]=e,i[2]=e,i[3]=f,i[4]=f,i[5]=f,i}if(c.charCodeAt(0)===36)return i[0]=qs,i[1]=e,i[2]=e+1,i[3]=o,i[4]=o,i[5]=o,i;const u=X2(c);if(u){const[f,m]=u,h=c.charCodeAt(f+1);if(h===45){if(f+2<c.length&&c.charCodeAt(f+2)===36){const y=f+3,p=m;if(y<p)return i[0]=Kl,i[1]=e+f,i[2]=e+y,i[3]=e+p,i[4]=e+m+1,i[5]=o,i}}else if(h===36){const y=f+1,p=f+2;return p===m?(i[0]=Ys,i[1]=e+f,i[2]=e+y,i[3]=e+p,i[4]=e+m+1,i[5]=t.length,i):(i[0]=qs,i[1]=e+f,i[2]=e+p,i[3]=e+m,i[4]=e+m+1,i[5]=o,i)}}return i[0]=So,i[1]=e,i[2]=e,i[3]=o,i[4]=o,i[5]=o,i}function If(t,e,i,s,o,c,u){var m,h,y,p,v,b,E,w,T,C,D,_,A;u==null||u(i);let f=s;{const P=i.fullPath??i.from,B=P.length,z=((m=i.options)==null?void 0:m.caseSensitive)??t,L=!!((y=(h=i.options)==null?void 0:h.params)!=null&&y.parse&&((v=(p=i.options)==null?void 0:p.skipRouteOnParseError)!=null&&v.params));for(;f<B;){const I=_g(P,f,e);let W;const at=f,ut=I[5];switch(f=ut+1,c++,I[0]){case So:{const ot=P.substring(I[2],I[3]);if(z){const N=(b=o.static)==null?void 0:b.get(ot);if(N)W=N;else{o.static??(o.static=new Map);const q=_s(i.fullPath??i.from);q.parent=o,q.depth=c,W=q,o.static.set(ot,q)}}else{const N=ot.toLowerCase(),q=(E=o.staticInsensitive)==null?void 0:E.get(N);if(q)W=q;else{o.staticInsensitive??(o.staticInsensitive=new Map);const H=_s(i.fullPath??i.from);H.parent=o,H.depth=c,W=H,o.staticInsensitive.set(N,H)}}break}case qs:{const ot=P.substring(at,I[1]),N=P.substring(I[4],ut),q=z&&!!(ot||N),H=ot?q?ot:ot.toLowerCase():void 0,et=N?q?N:N.toLowerCase():void 0,ct=!L&&((w=o.dynamic)==null?void 0:w.find(O=>!O.skipOnParamError&&O.caseSensitive===q&&O.prefix===H&&O.suffix===et));if(ct)W=ct;else{const O=Lm(qs,i.fullPath??i.from,q,H,et);W=O,O.depth=c,O.parent=o,o.dynamic??(o.dynamic=[]),o.dynamic.push(O)}break}case Kl:{const ot=P.substring(at,I[1]),N=P.substring(I[4],ut),q=z&&!!(ot||N),H=ot?q?ot:ot.toLowerCase():void 0,et=N?q?N:N.toLowerCase():void 0,ct=!L&&((T=o.optional)==null?void 0:T.find(O=>!O.skipOnParamError&&O.caseSensitive===q&&O.prefix===H&&O.suffix===et));if(ct)W=ct;else{const O=Lm(Kl,i.fullPath??i.from,q,H,et);W=O,O.parent=o,O.depth=c,o.optional??(o.optional=[]),o.optional.push(O)}break}case Ys:{const ot=P.substring(at,I[1]),N=P.substring(I[4],ut),q=z&&!!(ot||N),H=ot?q?ot:ot.toLowerCase():void 0,et=N?q?N:N.toLowerCase():void 0,ct=Lm(Ys,i.fullPath??i.from,q,H,et);W=ct,ct.parent=o,ct.depth=c,o.wildcard??(o.wildcard=[]),o.wildcard.push(ct)}}o=W}if(L&&i.children&&!i.isRoot&&i.id&&i.id.charCodeAt(i.id.lastIndexOf("/")+1)===95){const I=_s(i.fullPath??i.from);I.kind=iE,I.parent=o,c++,I.depth=c,o.pathless??(o.pathless=[]),o.pathless.push(I),o=I}const Y=(i.path||!i.children)&&!i.isRoot;if(Y&&P.endsWith("/")){const I=_s(i.fullPath??i.from);I.kind=As,I.parent=o,c++,I.depth=c,o.index=I,o=I}o.parse=((D=(C=i.options)==null?void 0:C.params)==null?void 0:D.parse)??null,o.skipOnParamError=L,o.parsingPriority=((A=(_=i.options)==null?void 0:_.skipRouteOnParseError)==null?void 0:A.priority)??0,Y&&!o.route&&(o.route=i,o.fullPath=i.fullPath??i.from)}if(i.children)for(const P of i.children)If(t,e,P,f,o,c,u)}function Pm(t,e){if(t.skipOnParamError&&!e.skipOnParamError)return-1;if(!t.skipOnParamError&&e.skipOnParamError)return 1;if(t.skipOnParamError&&e.skipOnParamError&&(t.parsingPriority||e.parsingPriority))return e.parsingPriority-t.parsingPriority;if(t.prefix&&e.prefix&&t.prefix!==e.prefix){if(t.prefix.startsWith(e.prefix))return-1;if(e.prefix.startsWith(t.prefix))return 1}if(t.suffix&&e.suffix&&t.suffix!==e.suffix){if(t.suffix.endsWith(e.suffix))return-1;if(e.suffix.endsWith(t.suffix))return 1}return t.prefix&&!e.prefix?-1:!t.prefix&&e.prefix?1:t.suffix&&!e.suffix?-1:!t.suffix&&e.suffix?1:t.caseSensitive&&!e.caseSensitive?-1:!t.caseSensitive&&e.caseSensitive?1:0}function La(t){var e,i,s;if(t.pathless)for(const o of t.pathless)La(o);if(t.static)for(const o of t.static.values())La(o);if(t.staticInsensitive)for(const o of t.staticInsensitive.values())La(o);if((e=t.dynamic)!=null&&e.length){t.dynamic.sort(Pm);for(const o of t.dynamic)La(o)}if((i=t.optional)!=null&&i.length){t.optional.sort(Pm);for(const o of t.optional)La(o)}if((s=t.wildcard)!=null&&s.length){t.wildcard.sort(Pm);for(const o of t.wildcard)La(o)}}function _s(t){return{kind:So,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0}}function Lm(t,e,i,s,o){return{kind:t,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0,caseSensitive:i,prefix:s,suffix:o}}function Q2(t,e){const i=_s("/"),s=new Uint16Array(6);for(const o of t)If(!1,s,o,1,i,0);La(i),e.masksTree=i,e.flatCache=yf(1e3)}function $2(t,e){t||(t="/");const i=e.flatCache.get(t);if(i)return i;const s=Dg(t,e.masksTree);return e.flatCache.set(t,s),s}function Z2(t,e,i,s,o){t||(t="/"),s||(s="/");const c=e?`case\0${t}`:t;let u=o.singleCache.get(c);if(!u){u=_s("/");const f=new Uint16Array(6);If(e,f,{from:t},1,u,0),o.singleCache.set(c,u)}return Dg(s,u,i)}function W2(t,e,i=!1){const s=i?t:`nofuzz\0${t}`,o=e.matchCache.get(s);if(o!==void 0)return o;t||(t="/");let c;try{c=Dg(t,e.segmentTree,i)}catch(u){if(u instanceof URIError)c=null;else throw u}return c&&(c.branch=eD(c.route)),e.matchCache.set(s,c),c}function J2(t){return t==="/"?t:t.replace(/\/{1,}$/,"")}function tD(t,e=!1,i){const s=_s(t.fullPath),o=new Uint16Array(6),c={},u={};let f=0;return If(e,o,t,1,s,0,h=>{if(i==null||i(h,f),$i(!(h.id in c),`Duplicate routes found with id: ${String(h.id)}`),c[h.id]=h,f!==0&&h.path){const y=J2(h.fullPath);(!u[y]||h.fullPath.endsWith("/"))&&(u[y]=h)}f++}),La(s),{processedTree:{segmentTree:s,singleCache:yf(1e3),matchCache:yf(1e3),flatCache:null,masksTree:null},routesById:c,routesByPath:u}}function Dg(t,e,i=!1){const s=t.split("/"),o=iD(t,s,e,i);if(!o)return null;const[c]=aE(t,s,o);return{route:o.node.route,rawParams:c,parsedParams:o.parsedParams}}function aE(t,e,i){var y,p,v,b,E,w,T,C,D,_;const s=nD(i.node);let o=null;const c={};let u=((y=i.extract)==null?void 0:y.part)??0,f=((p=i.extract)==null?void 0:p.node)??0,m=((v=i.extract)==null?void 0:v.path)??0,h=((b=i.extract)==null?void 0:b.segment)??0;for(;f<s.length;u++,f++,m++,h++){const A=s[f];if(A.kind===As)break;if(A.kind===iE){h--,u--,m--;continue}const P=e[u],B=m;if(P&&(m+=P.length),A.kind===qs){o??(o=i.node.fullPath.split("/"));const z=o[h],L=((E=A.prefix)==null?void 0:E.length)??0;if(z.charCodeAt(L)===123){const I=((w=A.suffix)==null?void 0:w.length)??0,W=z.substring(L+2,z.length-I-1),at=P.substring(L,P.length-I);c[W]=decodeURIComponent(at)}else{const I=z.substring(1);c[I]=decodeURIComponent(P)}}else if(A.kind===Kl){if(i.skipped&1<<f){u--,m=B-1;continue}o??(o=i.node.fullPath.split("/"));const z=o[h],L=((T=A.prefix)==null?void 0:T.length)??0,Y=((C=A.suffix)==null?void 0:C.length)??0,I=z.substring(L+3,z.length-Y-1),W=A.suffix||A.prefix?P.substring(L,P.length-Y):P;W&&(c[I]=decodeURIComponent(W))}else if(A.kind===Ys){const z=A,L=t.substring(B+(((D=z.prefix)==null?void 0:D.length)??0),t.length-(((_=z.suffix)==null?void 0:_.length)??0)),Y=decodeURIComponent(L);c["*"]=Y,c._splat=Y;break}}return i.rawParams&&Object.assign(c,i.rawParams),[c,{part:u,node:f,path:m,segment:h}]}function eD(t){const e=[t];for(;t.parentRoute;)t=t.parentRoute,e.push(t);return e.reverse(),e}function nD(t){const e=Array(t.depth+1);do e[t.depth]=t,t=t.parent;while(t);return e}function iD(t,e,i,s){if(t==="/"&&i.index)return{node:i.index,skipped:0};const o=!Yl(e),c=o&&t!=="/",u=e.length-(o?1:0),f=[{node:i,index:1,skipped:0,depth:1,statics:1,dynamics:0,optionals:0}];let m=null,h=null,y=null;for(;f.length;){const p=f.pop(),{node:v,index:b,skipped:E,depth:w,statics:T,dynamics:C,optionals:D}=p;let{extract:_,rawParams:A,parsedParams:P}=p;if(v.skipOnParamError){if(!jm(t,e,p))continue;A=p.rawParams,_=p.extract,P=p.parsedParams}s&&v.route&&v.kind!==As&&Al(h,p)&&(h=p);const B=b===u;if(B&&(v.route&&!c&&Al(y,p)&&(y=p),!v.optional&&!v.wildcard&&!v.index&&!v.pathless))continue;const z=B?void 0:e[b];let L;if(B&&v.index){const Y={node:v.index,index:b,skipped:E,depth:w+1,statics:T,dynamics:C,optionals:D,extract:_,rawParams:A,parsedParams:P};let I=!0;if(v.index.skipOnParamError&&(jm(t,e,Y)||(I=!1)),I){if(T===u&&!C&&!D&&!E)return Y;Al(y,Y)&&(y=Y)}}if(v.wildcard&&Al(m,p))for(const Y of v.wildcard){const{prefix:I,suffix:W}=Y;if(I&&(B||!(Y.caseSensitive?z:L??(L=z.toLowerCase())).startsWith(I)))continue;if(W){if(B)continue;const ut=e.slice(b).join("/").slice(-W.length);if((Y.caseSensitive?ut:ut.toLowerCase())!==W)continue}const at={node:Y,index:u,skipped:E,depth:w,statics:T,dynamics:C,optionals:D,extract:_,rawParams:A,parsedParams:P};if(!(Y.skipOnParamError&&!jm(t,e,at))){m=at;break}}if(v.optional){const Y=E|1<<w,I=w+1;for(let W=v.optional.length-1;W>=0;W--){const at=v.optional[W];f.push({node:at,index:b,skipped:Y,depth:I,statics:T,dynamics:C,optionals:D,extract:_,rawParams:A,parsedParams:P})}if(!B)for(let W=v.optional.length-1;W>=0;W--){const at=v.optional[W],{prefix:ut,suffix:ft}=at;if(ut||ft){const ot=at.caseSensitive?z:L??(L=z.toLowerCase());if(ut&&!ot.startsWith(ut)||ft&&!ot.endsWith(ft))continue}f.push({node:at,index:b+1,skipped:E,depth:I,statics:T,dynamics:C,optionals:D+1,extract:_,rawParams:A,parsedParams:P})}}if(!B&&v.dynamic&&z)for(let Y=v.dynamic.length-1;Y>=0;Y--){const I=v.dynamic[Y],{prefix:W,suffix:at}=I;if(W||at){const ut=I.caseSensitive?z:L??(L=z.toLowerCase());if(W&&!ut.startsWith(W)||at&&!ut.endsWith(at))continue}f.push({node:I,index:b+1,skipped:E,depth:w+1,statics:T,dynamics:C+1,optionals:D,extract:_,rawParams:A,parsedParams:P})}if(!B&&v.staticInsensitive){const Y=v.staticInsensitive.get(L??(L=z.toLowerCase()));Y&&f.push({node:Y,index:b+1,skipped:E,depth:w+1,statics:T+1,dynamics:C,optionals:D,extract:_,rawParams:A,parsedParams:P})}if(!B&&v.static){const Y=v.static.get(z);Y&&f.push({node:Y,index:b+1,skipped:E,depth:w+1,statics:T+1,dynamics:C,optionals:D,extract:_,rawParams:A,parsedParams:P})}if(v.pathless){const Y=w+1;for(let I=v.pathless.length-1;I>=0;I--){const W=v.pathless[I];f.push({node:W,index:b,skipped:E,depth:Y,statics:T,dynamics:C,optionals:D,extract:_,rawParams:A,parsedParams:P})}}}if(y&&m)return Al(m,y)?y:m;if(y)return y;if(m)return m;if(s&&h){let p=h.index;for(let b=0;b<h.index;b++)p+=e[b].length;const v=p===t.length?"/":t.slice(p);return h.rawParams??(h.rawParams={}),h.rawParams["**"]=decodeURIComponent(v),h}return null}function jm(t,e,i){try{const[s,o]=aE(t,e,i);i.rawParams=s,i.extract=o;const c=i.node.parse(s);return i.parsedParams=Object.assign({},i.parsedParams,c),!0}catch{return null}}function Al(t,e){return t?e.statics>t.statics||e.statics===t.statics&&(e.dynamics>t.dynamics||e.dynamics===t.dynamics&&(e.optionals>t.optionals||e.optionals===t.optionals&&((e.node.kind===As)>(t.node.kind===As)||e.node.kind===As==(t.node.kind===As)&&e.depth>t.depth))):!0}function tf(t){return Og(t.filter(e=>e!==void 0).join("/"))}function Og(t){return t.replace(/\/{2,}/g,"/")}function sE(t){return t==="/"?t:t.replace(/^\/{1,}/,"")}function Qi(t){const e=t.length;return e>1&&t[e-1]==="/"?t.replace(/\/{1,}$/,""):t}function rE(t){return Qi(sE(t))}function vf(t,e){return t!=null&&t.endsWith("/")&&t!=="/"&&t!==`${e}/`?t.slice(0,-1):t}function aD(t,e,i){return vf(t,i)===vf(e,i)}function sD({base:t,to:e,trailingSlash:i="never",cache:s}){const o=e.startsWith("/"),c=!o&&e===".";let u;if(s){u=o?e:c?t:t+"\0"+e;const p=s.get(u);if(p)return p}let f;if(c)f=t.split("/");else if(o)f=e.split("/");else{for(f=t.split("/");f.length>1&&Yl(f)==="";)f.pop();const p=e.split("/");for(let v=0,b=p.length;v<b;v++){const E=p[v];E===""?v?v===b-1&&f.push(E):f=[E]:E===".."?f.pop():E==="."||f.push(E)}}f.length>1&&(Yl(f)===""?i==="never"&&f.pop():i==="always"&&f.push(""));let m,h="";for(let p=0;p<f.length;p++){p>0&&(h+="/");const v=f[p];if(!v)continue;m=_g(v,0,m);const b=m[0];if(b===So){h+=v;continue}const E=m[5],w=v.substring(0,m[1]),T=v.substring(m[4],E),C=v.substring(m[2],m[3]);b===qs?h+=w||T?`${w}{$${C}}${T}`:`$${C}`:b===Ys?h+=w||T?`${w}{$}${T}`:"$":h+=`${w}{-$${C}}${T}`}h=Og(h);const y=h||"/";return u&&s&&s.set(u,y),y}function rD(t){const e=new Map(t.map(o=>[encodeURIComponent(o),o])),i=Array.from(e.keys()).map(o=>o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),s=new RegExp(i,"g");return o=>o.replace(s,c=>e.get(c)??c)}function km(t,e,i){const s=e[t];return typeof s!="string"?s:t==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(s)?s:s.split("/").map(o=>rS(o,i)).join("/"):rS(s,i)}function zm({path:t,params:e,decoder:i,...s}){let o=!1;const c={};if(!t||t==="/")return{interpolatedPath:"/",usedParams:c,isMissingParams:o};if(!t.includes("$"))return{interpolatedPath:t,usedParams:c,isMissingParams:o};const u=t.length;let f=0,m,h="";for(;f<u;){const p=f;m=_g(t,p,m);const v=m[5];if(f=v+1,p===v)continue;const b=m[0];if(b===So){h+="/"+t.substring(p,v);continue}if(b===Ys){const E=e._splat;c._splat=E,c["*"]=E;const w=t.substring(p,m[1]),T=t.substring(m[4],v);if(!E){o=!0,(w||T)&&(h+="/"+w+T);continue}const C=km("_splat",e,i);h+="/"+w+C+T;continue}if(b===qs){const E=t.substring(m[2],m[3]);!o&&!(E in e)&&(o=!0),c[E]=e[E];const w=t.substring(p,m[1]),T=t.substring(m[4],v),C=km(E,e,i)??"undefined";h+="/"+w+C+T;continue}if(b===Kl){const E=t.substring(m[2],m[3]),w=e[E];if(w==null)continue;c[E]=w;const T=t.substring(p,m[1]),C=t.substring(m[4],v),D=km(E,e,i)??"";h+="/"+T+D+C;continue}}return t.endsWith("/")&&(h+="/"),{usedParams:c,interpolatedPath:h||"/",isMissingParams:o}}function rS(t,e){const i=encodeURIComponent(t);return(e==null?void 0:e(i))??i}function Sn(t){return!!(t!=null&&t.isNotFound)}function oD(){try{if(typeof window<"u"&&typeof window.sessionStorage=="object")return window.sessionStorage}catch{}}const Ap="tsr-scroll-restoration-v1_3",lD=(t,e)=>{let i;return(...s)=>{i||(i=setTimeout(()=>{t(...s),i=null},e))}};function cD(){const t=oD();if(!t)return null;const e=t.getItem(Ap);let i=e?JSON.parse(e):{};return{state:i,set:s=>{i=Fa(s,i)||i;try{t.setItem(Ap,JSON.stringify(i))}catch{console.warn("[ts-router] Could not persist scroll restoration state to sessionStorage.")}}}}const Bu=cD(),uD=t=>t.state.__TSR_key||t.href;function fD(t){const e=[];let i;for(;i=t.parentNode;)e.push(`${t.tagName}:nth-child(${Array.prototype.indexOf.call(i.children,t)+1})`),t=i;return`${e.reverse().join(" > ")}`.toLowerCase()}let bf=!1;function dD({storageKey:t,key:e,behavior:i,shouldScrollRestoration:s,scrollToTopSelectors:o,location:c}){var h,y;let u;try{u=JSON.parse(sessionStorage.getItem(t)||"{}")}catch(p){console.error(p);return}const f=e||((h=window.history.state)==null?void 0:h.__TSR_key),m=u[f];bf=!0;t:{if(s&&m&&Object.keys(m).length>0){for(const b in m){const E=m[b];if(b==="window")window.scrollTo({top:E.scrollY,left:E.scrollX,behavior:i});else if(b){const w=document.querySelector(b);w&&(w.scrollLeft=E.scrollX,w.scrollTop=E.scrollY)}}break t}const p=(c??window.location).hash.split("#",2)[1];if(p){const b=((y=window.history.state)==null?void 0:y.__hashScrollIntoViewOptions)??!0;if(b){const E=document.getElementById(p);E&&E.scrollIntoView(b)}break t}const v={top:0,left:0,behavior:i};if(window.scrollTo(v),o)for(const b of o){if(b==="window")continue;const E=typeof b=="function"?b():document.querySelector(b);E&&E.scrollTo(v)}}bf=!1}function hD(t,e){if(!Bu||((t.options.scrollRestoration??!1)&&(t.isScrollRestoring=!0),t.isScrollRestorationSetup||!Bu))return;t.isScrollRestorationSetup=!0,bf=!1;const s=t.options.getScrollRestorationKey||uD;window.history.scrollRestoration="manual";const o=c=>{if(bf||!t.isScrollRestoring)return;let u="";if(c.target===document||c.target===window)u="window";else{const m=c.target.getAttribute("data-scroll-restoration-id");m?u=`[data-scroll-restoration-id="${m}"]`:u=fD(c.target)}const f=s(t.state.location);Bu.set(m=>{const h=m[f]||(m[f]={}),y=h[u]||(h[u]={});if(u==="window")y.scrollX=window.scrollX||0,y.scrollY=window.scrollY||0;else if(u){const p=document.querySelector(u);p&&(y.scrollX=p.scrollLeft||0,y.scrollY=p.scrollTop||0)}return m})};typeof document<"u"&&document.addEventListener("scroll",lD(o,100),!0),t.subscribe("onRendered",c=>{const u=s(c.toLocation);if(!t.resetNextScroll){t.resetNextScroll=!0;return}typeof t.options.scrollRestoration=="function"&&!t.options.scrollRestoration({location:t.latestLocation})||(dD({storageKey:Ap,key:u,behavior:t.options.scrollRestorationBehavior,shouldScrollRestoration:t.isScrollRestoring,scrollToTopSelectors:t.options.scrollToTopSelectors,location:t.history.location}),t.isScrollRestoring&&Bu.set(f=>(f[u]||(f[u]={}),f)))})}function mD(t){if(typeof document<"u"&&document.querySelector){const e=t.state.location.state.__hashScrollIntoViewOptions??!0;if(e&&t.state.location.hash!==""){const i=document.getElementById(t.state.location.hash);i&&i.scrollIntoView(e)}}}function pD(t,e=String){const i=new URLSearchParams;for(const s in t){const o=t[s];o!==void 0&&i.set(s,e(o))}return i.toString()}function Bm(t){return t?t==="false"?!1:t==="true"?!0:+t*0===0&&+t+""===t?+t:t:""}function gD(t){const e=new URLSearchParams(t),i={};for(const[s,o]of e.entries()){const c=i[s];c==null?i[s]=Bm(o):Array.isArray(c)?c.push(Bm(o)):i[s]=[c,Bm(o)]}return i}const yD=bD(JSON.parse),vD=xD(JSON.stringify,JSON.parse);function bD(t){return e=>{e[0]==="?"&&(e=e.substring(1));const i=gD(e);for(const s in i){const o=i[s];if(typeof o=="string")try{i[s]=t(o)}catch{}}return i}}function xD(t,e){const i=typeof e=="function";function s(o){if(typeof o=="object"&&o!==null)try{return t(o)}catch{}else if(i&&typeof o=="string")try{return e(o),t(o)}catch{}return o}return o=>{const c=pD(o,s);return c?`?${c}`:""}}const jn="__root__";function SD(t){if(t.statusCode=t.statusCode||t.code||307,!t._builtLocation&&typeof t.href=="string"&&gf(t.href))throw new Error(`Redirect blocked: unsafe protocol in href "${t.href}". Only ${nE.join(", ")} protocols are allowed.`);if(!t._builtLocation&&!t.reloadDocument&&typeof t.href=="string")try{new URL(t.href),t.reloadDocument=!0}catch{}const e=new Headers(t.headers);t.href&&e.get("Location")===null&&e.set("Location",t.href);const i=new Response(null,{status:t.statusCode,headers:e});if(i.options=t,t.throw)throw i;return i}function zn(t){return t instanceof Response&&!!t.options}const ef=t=>{var e;if(!t.rendered)return t.rendered=!0,(e=t.onReady)==null?void 0:e.call(t)},Hf=(t,e)=>!!(t.preload&&!t.router.state.matches.some(i=>i.id===e)),io=(t,e,i=!0)=>{const s={...t.router.options.context??{}},o=i?e:e-1;for(let c=0;c<=o;c++){const u=t.matches[c];if(!u)continue;const f=t.router.getMatch(u.id);f&&Object.assign(s,f.__routeContext,f.__beforeLoadContext)}return s},oE=(t,e)=>{var o;const i=t.router.routesById[e.routeId??""]??t.router.routeTree;!i.options.notFoundComponent&&((o=t.router.options)!=null&&o.defaultNotFoundComponent)&&(i.options.notFoundComponent=t.router.options.defaultNotFoundComponent),$i(i.options.notFoundComponent);const s=t.matches.find(c=>c.routeId===i.id);$i(s,"Could not find match for route: "+i.id),t.updateMatch(s.id,c=>({...c,status:"notFound",error:e,isFetching:!1})),e.routerCode==="BEFORE_LOAD"&&i.parentRoute&&(e.routeId=i.parentRoute.id,oE(t,e))},Ga=(t,e,i)=>{var s,o,c;if(!(!zn(i)&&!Sn(i))){if(zn(i)&&i.redirectHandled&&!i.options.reloadDocument)throw i;if(e){(s=e._nonReactive.beforeLoadPromise)==null||s.resolve(),(o=e._nonReactive.loaderPromise)==null||o.resolve(),e._nonReactive.beforeLoadPromise=void 0,e._nonReactive.loaderPromise=void 0;const u=zn(i)?"redirected":"notFound";e._nonReactive.error=i,t.updateMatch(e.id,f=>({...f,status:u,context:io(t,e.index),isFetching:!1,error:i})),Sn(i)&&!i.routeId&&(i.routeId=e.routeId),(c=e._nonReactive.loadPromise)==null||c.resolve()}throw zn(i)?(t.rendered=!0,i.options._fromLocation=t.location,i.redirectHandled=!0,i=t.router.resolveRedirect(i),i):(oE(t,i),i)}},lE=(t,e)=>!!t.router.getMatch(e)._nonReactive.dehydrated,_l=(t,e,i,s)=>{var f,m;const{id:o,routeId:c}=t.matches[e],u=t.router.looseRoutesById[c];if(i instanceof Promise)throw i;i.routerCode=s,t.firstBadMatchIndex??(t.firstBadMatchIndex=e),Ga(t,t.router.getMatch(o),i);try{(m=(f=u.options).onError)==null||m.call(f,i)}catch(h){i=h,Ga(t,t.router.getMatch(o),i)}t.updateMatch(o,h=>{var y,p;return(y=h._nonReactive.beforeLoadPromise)==null||y.resolve(),h._nonReactive.beforeLoadPromise=void 0,(p=h._nonReactive.loadPromise)==null||p.resolve(),{...h,error:i,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController}})},cE=(t,e,i,s)=>{var u;if(s._nonReactive.pendingTimeout!==void 0)return;const o=i.options.pendingMs??t.router.options.defaultPendingMs;if(!!(t.onReady&&!Hf(t,e)&&(i.options.loader||i.options.beforeLoad||dE(i))&&typeof o=="number"&&o!==1/0&&(i.options.pendingComponent??((u=t.router.options)==null?void 0:u.defaultPendingComponent)))){const f=setTimeout(()=>{ef(t)},o);s._nonReactive.pendingTimeout=f}},wD=(t,e,i)=>{const s=t.router.getMatch(e);if(!s._nonReactive.beforeLoadPromise&&!s._nonReactive.loaderPromise)return;cE(t,e,i,s);const o=()=>{const c=t.router.getMatch(e);c.preload&&(c.status==="redirected"||c.status==="notFound")&&Ga(t,c,c.error)};return s._nonReactive.beforeLoadPromise?s._nonReactive.beforeLoadPromise.then(o):o()},ED=(t,e,i,s)=>{const o=t.router.getMatch(e),c=o._nonReactive.loadPromise;o._nonReactive.loadPromise=xo(()=>{c==null||c.resolve()});const{paramsError:u,searchError:f}=o;u&&_l(t,i,u,"PARSE_PARAMS"),f&&_l(t,i,f,"VALIDATE_SEARCH"),cE(t,e,s,o);const m=new AbortController;let h=!1;const y=()=>{h||(h=!0,t.updateMatch(e,A=>({...A,isFetching:"beforeLoad",fetchCount:A.fetchCount+1,abortController:m})))},p=()=>{var A;(A=o._nonReactive.beforeLoadPromise)==null||A.resolve(),o._nonReactive.beforeLoadPromise=void 0,t.updateMatch(e,P=>({...P,isFetching:!1}))};if(!s.options.beforeLoad){Il(()=>{y(),p()});return}o._nonReactive.beforeLoadPromise=xo();const v={...io(t,i,!1),...o.__routeContext},{search:b,params:E,cause:w}=o,T=Hf(t,e),C={search:b,abortController:m,params:E,preload:T,context:v,location:t.location,navigate:A=>t.router.navigate({...A,_fromLocation:t.location}),buildLocation:t.router.buildLocation,cause:T?"preload":w,matches:t.matches,routeId:s.id,...t.router.options.additionalContext},D=A=>{if(A===void 0){Il(()=>{y(),p()});return}(zn(A)||Sn(A))&&(y(),_l(t,i,A,"BEFORE_LOAD")),Il(()=>{y(),t.updateMatch(e,P=>({...P,__beforeLoadContext:A})),p()})};let _;try{if(_=s.options.beforeLoad(C),no(_))return y(),_.catch(A=>{_l(t,i,A,"BEFORE_LOAD")}).then(D)}catch(A){y(),_l(t,i,A,"BEFORE_LOAD")}D(_)},TD=(t,e)=>{const{id:i,routeId:s}=t.matches[e],o=t.router.looseRoutesById[s],c=()=>f(),u=()=>ED(t,i,e,o),f=()=>{if(lE(t,i))return;const m=wD(t,i,o);return no(m)?m.then(u):u()};return c()},CD=(t,e,i)=>{var c,u,f,m,h,y;const s=t.router.getMatch(e);if(!s||!i.options.head&&!i.options.scripts&&!i.options.headers)return;const o={ssr:t.router.options.ssr,matches:t.matches,match:s,params:s.params,loaderData:s.loaderData};return Promise.all([(u=(c=i.options).head)==null?void 0:u.call(c,o),(m=(f=i.options).scripts)==null?void 0:m.call(f,o),(y=(h=i.options).headers)==null?void 0:y.call(h,o)]).then(([p,v,b])=>{const E=p==null?void 0:p.meta,w=p==null?void 0:p.links,T=p==null?void 0:p.scripts,C=p==null?void 0:p.styles;return{meta:E,links:w,headScripts:T,headers:b,scripts:v,styles:C}})},uE=(t,e,i,s)=>{const o=t.matchPromises[i-1],{params:c,loaderDeps:u,abortController:f,cause:m}=t.router.getMatch(e),h=io(t,i),y=Hf(t,e);return{params:c,deps:u,preload:!!y,parentMatchPromise:o,abortController:f,context:h,location:t.location,navigate:p=>t.router.navigate({...p,_fromLocation:t.location}),cause:y?"preload":m,route:s,...t.router.options.additionalContext}},oS=async(t,e,i,s)=>{var o,c,u,f,m,h,y;try{const p=t.router.getMatch(e);try{(!(I2??t.router.isServer)||p.ssr===!0)&&fE(s);const v=(c=(o=s.options).loader)==null?void 0:c.call(o,uE(t,e,i,s)),b=s.options.loader&&no(v);if(!!(b||s._lazyPromise||s._componentsPromise||s.options.head||s.options.scripts||s.options.headers||p._nonReactive.minPendingPromise)&&t.updateMatch(e,T=>({...T,isFetching:"loader"})),s.options.loader){const T=b?await v:v;Ga(t,t.router.getMatch(e),T),T!==void 0&&t.updateMatch(e,C=>({...C,loaderData:T}))}s._lazyPromise&&await s._lazyPromise;const w=p._nonReactive.minPendingPromise;w&&await w,s._componentsPromise&&await s._componentsPromise,t.updateMatch(e,T=>({...T,error:void 0,context:io(t,i),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(v){let b=v;if((b==null?void 0:b.name)==="AbortError"){if(p.abortController.signal.aborted){(u=p._nonReactive.loaderPromise)==null||u.resolve(),p._nonReactive.loaderPromise=void 0;return}t.updateMatch(e,w=>({...w,status:w.status==="pending"?"success":w.status,isFetching:!1,context:io(t,i)}));return}const E=p._nonReactive.minPendingPromise;E&&await E,Sn(v)&&await((m=(f=s.options.notFoundComponent)==null?void 0:f.preload)==null?void 0:m.call(f)),Ga(t,t.router.getMatch(e),v);try{(y=(h=s.options).onError)==null||y.call(h,v)}catch(w){b=w,Ga(t,t.router.getMatch(e),w)}t.updateMatch(e,w=>({...w,error:b,context:io(t,i),status:"error",isFetching:!1}))}}catch(p){const v=t.router.getMatch(e);v&&(v._nonReactive.loaderPromise=void 0),Ga(t,v,p)}},RD=async(t,e)=>{var y,p;async function i(v,b,E,w){const T=Date.now()-b.updatedAt,C=v?w.options.preloadStaleTime??t.router.options.defaultPreloadStaleTime??3e4:w.options.staleTime??t.router.options.defaultStaleTime??0,D=w.options.shouldReload,_=typeof D=="function"?D(uE(t,s,e,w)):D,{status:A,invalid:P}=E;c=A==="success"&&(P||(_??T>C)),v&&w.options.preload===!1||(c&&!t.sync?(u=!0,(async()=>{var B,z;try{await oS(t,s,e,w);const L=t.router.getMatch(s);(B=L._nonReactive.loaderPromise)==null||B.resolve(),(z=L._nonReactive.loadPromise)==null||z.resolve(),L._nonReactive.loaderPromise=void 0}catch(L){zn(L)&&await t.router.navigate(L.options)}})()):(A!=="success"||c&&t.sync)&&await oS(t,s,e,w))}const{id:s,routeId:o}=t.matches[e];let c=!1,u=!1;const f=t.router.looseRoutesById[o];if(!lE(t,s)){const v=t.router.getMatch(s),b=Hf(t,s);if(v._nonReactive.loaderPromise){if(v.status==="success"&&!t.sync&&!v.preload)return v;await v._nonReactive.loaderPromise;const E=t.router.getMatch(s),w=E._nonReactive.error||E.error;w&&Ga(t,E,w),E.status==="pending"&&await i(b,v,E,f)}else{const E=b&&!t.router.state.matches.some(T=>T.id===s),w=t.router.getMatch(s);w._nonReactive.loaderPromise=xo(),E!==w.preload&&t.updateMatch(s,T=>({...T,preload:E})),await i(b,v,w,f)}}const m=t.router.getMatch(s);u||((y=m._nonReactive.loaderPromise)==null||y.resolve(),(p=m._nonReactive.loadPromise)==null||p.resolve()),clearTimeout(m._nonReactive.pendingTimeout),m._nonReactive.pendingTimeout=void 0,u||(m._nonReactive.loaderPromise=void 0),m._nonReactive.dehydrated=void 0;const h=u?m.isFetching:!1;return h!==m.isFetching||m.invalid!==!1?(t.updateMatch(s,v=>({...v,isFetching:h,invalid:!1})),t.router.getMatch(s)):m};async function lS(t){const e=Object.assign(t,{matchPromises:[]});e.router.state.matches.some(i=>i._forcePending)&&ef(e);try{for(let f=0;f<e.matches.length;f++){const m=TD(e,f);no(m)&&await m}const i=e.firstBadMatchIndex??e.matches.length;for(let f=0;f<i;f++)e.matchPromises.push(RD(e,f));const o=(await Promise.allSettled(e.matchPromises)).filter(f=>f.status==="rejected").map(f=>f.reason);let c;for(const f of o){if(zn(f))throw f;!c&&Sn(f)&&(c=f)}for(const f of e.matches){const{id:m,routeId:h}=f,y=e.router.looseRoutesById[h];try{const p=CD(e,m,y);if(p){const v=await p;e.updateMatch(m,b=>({...b,...v}))}}catch(p){console.error(`Error executing head for route ${h}:`,p)}}if(c)throw c;const u=ef(e);no(u)&&await u}catch(i){if(Sn(i)&&!e.preload){const s=ef(e);throw no(s)&&await s,i}if(zn(i))throw i}return e.matches}async function fE(t){if(!t._lazyLoaded&&t._lazyPromise===void 0&&(t.lazyFn?t._lazyPromise=t.lazyFn().then(e=>{const{id:i,...s}=e.options;Object.assign(t.options,s),t._lazyLoaded=!0,t._lazyPromise=void 0}):t._lazyLoaded=!0),!t._componentsLoaded&&t._componentsPromise===void 0){const e=()=>{var s;const i=[];for(const o of hE){const c=(s=t.options[o])==null?void 0:s.preload;c&&i.push(c())}if(i.length)return Promise.all(i).then(()=>{t._componentsLoaded=!0,t._componentsPromise=void 0});t._componentsLoaded=!0,t._componentsPromise=void 0};t._componentsPromise=t._lazyPromise?t._lazyPromise.then(e):e()}return t._componentsPromise}function dE(t){var e;for(const i of hE)if((e=t.options[i])!=null&&e.preload)return!0;return!1}const hE=["component","errorComponent","pendingComponent","notFoundComponent"];function MD(t){return{input:({url:e})=>{for(const i of t)e=_p(i,e);return e},output:({url:e})=>{for(let i=t.length-1;i>=0;i--)e=mE(t[i],e);return e}}}function AD(t){const e=rE(t.basepath),i=`/${e}`,s=`${i}/`,o=t.caseSensitive?i:i.toLowerCase(),c=t.caseSensitive?s:s.toLowerCase();return{input:({url:u})=>{const f=t.caseSensitive?u.pathname:u.pathname.toLowerCase();return f===o?u.pathname="/":f.startsWith(c)&&(u.pathname=u.pathname.slice(i.length)),u},output:({url:u})=>(u.pathname=tf(["/",e,u.pathname]),u)}}function _p(t,e){var s;const i=(s=t==null?void 0:t.input)==null?void 0:s.call(t,{url:e});if(i){if(typeof i=="string")return new URL(i);if(i instanceof URL)return i}return e}function mE(t,e){var s;const i=(s=t==null?void 0:t.output)==null?void 0:s.call(t,{url:e});if(i){if(typeof i=="string")return new URL(i);if(i instanceof URL)return i}return e}function Fs(t){const e=t.resolvedLocation,i=t.location,s=(e==null?void 0:e.pathname)!==i.pathname,o=(e==null?void 0:e.href)!==i.href,c=(e==null?void 0:e.hash)!==i.hash;return{fromLocation:e,toLocation:i,pathChanged:s,hrefChanged:o,hashChanged:c}}class _D{constructor(e){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.startTransition=i=>i(),this.update=i=>{var v;i.notFoundRoute&&console.warn("The notFoundRoute API is deprecated and will be removed in the next major version. See https://tanstack.com/router/v1/docs/framework/react/guide/not-found-errors#migrating-from-notfoundroute for more info.");const s=this.options,o=this.basepath??(s==null?void 0:s.basepath)??"/",c=this.basepath===void 0,u=s==null?void 0:s.rewrite;if(this.options={...s,...i},this.isServer=this.options.isServer??typeof document>"u",this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=rD(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=V2()),this.origin=this.options.origin,this.origin||(window!=null&&window.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let b;this.resolvePathCache=yf(1e3),b=this.buildRouteTree(),this.setRoutes(b)}!this.__store&&this.latestLocation&&(this.__store=new z2(OD(this.latestLocation),{onUpdate:()=>{this.__store.state={...this.state,cachedMatches:this.state.cachedMatches.filter(b=>!["redirected"].includes(b.status))}}}),hD(this));let f=!1;const m=this.options.basepath??"/",h=this.options.rewrite;if(c||o!==m||u!==h){this.basepath=m;const b=[],E=rE(m);E&&E!=="/"&&b.push(AD({basepath:m})),h&&b.push(h),this.rewrite=b.length===0?void 0:b.length===1?b[0]:MD(b),this.history&&this.updateLatestLocation(),f=!0}f&&this.__store&&(this.__store.state={...this.state,location:this.latestLocation}),typeof window<"u"&&"CSS"in window&&typeof((v=window.CSS)==null?void 0:v.supports)=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const i=tD(this.routeTree,this.options.caseSensitive,(s,o)=>{s.init({originalIndex:o})});return this.options.routeMasks&&Q2(this.options.routeMasks,i.processedTree),i},this.subscribe=(i,s)=>{const o={eventType:i,fn:s};return this.subscribers.add(o),()=>{this.subscribers.delete(o)}},this.emit=i=>{this.subscribers.forEach(s=>{s.eventType===i.type&&s.fn(i)})},this.parseLocation=(i,s)=>{const o=({pathname:m,search:h,hash:y,href:p,state:v})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(m)){const D=this.options.parseSearch(h),_=this.options.stringifySearch(D);return{href:m+_+y,publicHref:p,pathname:Ml(m).path,external:!1,searchStr:_,search:bn(s==null?void 0:s.search,D),hash:Ml(y.slice(1)).path,state:bn(s==null?void 0:s.state,v)}}const b=new URL(p,this.origin),E=_p(this.rewrite,b),w=this.options.parseSearch(E.search),T=this.options.stringifySearch(w);return E.search=T,{href:E.href.replace(E.origin,""),publicHref:p,pathname:Ml(E.pathname).path,external:!!this.rewrite&&E.origin!==this.origin,searchStr:T,search:bn(s==null?void 0:s.search,w),hash:Ml(E.hash.slice(1)).path,state:bn(s==null?void 0:s.state,v)}},c=o(i),{__tempLocation:u,__tempKey:f}=c.state;if(u&&(!f||f===this.tempLocationKey)){const m=o(u);return m.state.key=c.state.key,m.state.__TSR_key=c.state.__TSR_key,delete m.state.__tempLocation,{...m,maskedLocation:c}}return c},this.resolvePathWithBase=(i,s)=>sD({base:i,to:Og(s),trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(i,s,o)=>typeof i=="string"?this.matchRoutesInternal({pathname:i,search:s},o):this.matchRoutesInternal(i,s),this.getMatchedRoutes=i=>ND({pathname:i,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=i=>{const s=this.getMatch(i);s&&(s.abortController.abort(),clearTimeout(s._nonReactive.pendingTimeout),s._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{const i=this.state.matches.filter(c=>c.status==="pending"),s=this.state.matches.filter(c=>c.isFetching==="loader");new Set([...this.state.pendingMatches??[],...i,...s]).forEach(c=>{this.cancelMatch(c.id)})},this.buildLocation=i=>{const s=(c={})=>{var ut,ft;const u=c._fromLocation||this.pendingBuiltLocation||this.latestLocation,f=this.matchRoutesLightweight(u);c.from;const m=c.unsafeRelative==="path"?u.pathname:c.from??f.fullPath,h=this.resolvePathWithBase(m,"."),y=f.search,p={...f.params},v=c.to?this.resolvePathWithBase(h,`${c.to}`):this.resolvePathWithBase(h,"."),b=c.params===!1||c.params===null?{}:(c.params??!0)===!0?p:Object.assign(p,Fa(c.params,p)),E=zm({path:v,params:b,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath,w=this.getMatchedRoutes(E);let T=w.matchedRoutes;(w.foundRoute?w.foundRoute.path!=="/"&&w.routeParams["**"]:Qi(E))&&this.options.notFoundRoute&&(T=[...T,this.options.notFoundRoute]);let D=!1;if(Object.keys(b).length>0)for(const ot of T){const N=((ut=ot.options.params)==null?void 0:ut.stringify)??ot.options.stringifyParams;N&&(D=!0,Object.assign(b,N(b)))}const _=i.leaveParams?v:Ml(D?zm({path:v,params:b,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath:E).path;let A=y;if(i._includeValidateSearch&&((ft=this.options.search)!=null&&ft.strict)){const ot={};T.forEach(N=>{if(N.options.validateSearch)try{Object.assign(ot,nf(N.options.validateSearch,{...ot,...A}))}catch{}}),A=ot}A=PD({search:A,dest:c,destRoutes:T,_includeValidateSearch:i._includeValidateSearch}),A=bn(y,A);const P=this.options.stringifySearch(A),B=c.hash===!0?u.hash:c.hash?Fa(c.hash,u.hash):void 0,z=B?`#${B}`:"";let L=c.state===!0?u.state:c.state?Fa(c.state,u.state):{};L=bn(u.state,L);const Y=`${_}${P}${z}`;let I,W,at=!1;if(this.rewrite){const ot=new URL(Y,this.origin),N=mE(this.rewrite,ot);I=ot.href.replace(ot.origin,""),N.origin!==this.origin?(W=N.href,at=!0):W=N.pathname+N.search+N.hash}else I=Y2(Y),W=I;return{publicHref:W,href:I,pathname:_,search:A,searchStr:P,state:L,hash:B??"",external:at,unmaskOnReload:c.unmaskOnReload}},o=(c={},u)=>{const f=s(c);let m=u?s(u):void 0;if(!m){const h={};if(this.options.routeMasks){const y=$2(f.pathname,this.processedTree);if(y){Object.assign(h,y.rawParams);const{from:p,params:v,...b}=y.route,E=v===!1||v===null?{}:(v??!0)===!0?h:Object.assign(h,Fa(v,h));u={from:i.from,...b,params:E},m=s(u)}}}return m&&(f.maskedLocation=m),f};return i.mask?o(i,{from:i.from,...i.mask}):o(i)},this.commitLocation=async({viewTransition:i,ignoreBlocker:s,...o})=>{const c=()=>{const m=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];m.forEach(y=>{o.state[y]=this.latestLocation.state[y]});const h=Hs(o.state,this.latestLocation.state);return m.forEach(y=>{delete o.state[y]}),h},u=Qi(this.latestLocation.href)===Qi(o.href),f=this.commitLocationPromise;if(this.commitLocationPromise=xo(()=>{f==null||f.resolve()}),u&&c())this.load();else{let{maskedLocation:m,hashScrollIntoView:h,...y}=o;m&&(y={...m,state:{...m.state,__tempKey:void 0,__tempLocation:{...y,search:y.searchStr,state:{...y.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(y.unmaskOnReload??this.options.unmaskOnReload??!1)&&(y.state.__tempKey=this.tempLocationKey)),y.state.__hashScrollIntoViewOptions=h??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=i,this.history[o.replace?"replace":"push"](y.publicHref,y.state,{ignoreBlocker:s})}return this.resetNextScroll=o.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:i,resetScroll:s,hashScrollIntoView:o,viewTransition:c,ignoreBlocker:u,href:f,...m}={})=>{if(f){const p=this.history.location.state.__TSR_index,v=mf(f,{__TSR_index:i?p:p+1}),b=new URL(v.pathname,this.origin),E=_p(this.rewrite,b);m.to=E.pathname,m.search=this.options.parseSearch(v.search),m.hash=v.hash.slice(1)}const h=this.buildLocation({...m,_includeValidateSearch:!0});this.pendingBuiltLocation=h;const y=this.commitLocation({...h,viewTransition:c,replace:i,resetScroll:s,hashScrollIntoView:o,ignoreBlocker:u});return Promise.resolve().then(()=>{this.pendingBuiltLocation===h&&(this.pendingBuiltLocation=void 0)}),y},this.navigate=async({to:i,reloadDocument:s,href:o,publicHref:c,...u})=>{var m;let f=!1;if(o)try{new URL(`${o}`),f=!0}catch{}if(f&&!s&&(s=!0),s){if(i!==void 0||!o){const y=this.buildLocation({to:i,...u});o=o??y.publicHref,c=c??y.publicHref}const h=!f&&c?c:o;if(gf(h))return Promise.resolve();if(!u.ignoreBlocker){const y=this.history,p=((m=y.getBlockers)==null?void 0:m.call(y))??[];for(const v of p)if(v!=null&&v.blockerFn&&await v.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return u.replace?window.location.replace(h):window.location.href=h,Promise.resolve()}return this.buildAndCommitLocation({...u,href:o,to:i,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const i=this.matchRoutes(this.latestLocation);this.__store.setState(s=>({...s,status:"pending",statusCode:200,isLoading:!0,location:this.latestLocation,pendingMatches:i,cachedMatches:s.cachedMatches.filter(o=>!i.some(c=>c.id===o.id))}))},this.load=async i=>{let s,o,c;for(c=new Promise(f=>{this.startTransition(async()=>{var m;try{this.beforeLoad();const h=this.latestLocation,y=this.state.resolvedLocation;this.state.redirect||this.emit({type:"onBeforeNavigate",...Fs({resolvedLocation:y,location:h})}),this.emit({type:"onBeforeLoad",...Fs({resolvedLocation:y,location:h})}),await lS({router:this,sync:i==null?void 0:i.sync,matches:this.state.pendingMatches,location:h,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let p=[],v=[],b=[];Il(()=>{this.__store.setState(E=>{const w=E.matches,T=E.pendingMatches||E.matches;return p=w.filter(C=>!T.some(D=>D.id===C.id)),v=T.filter(C=>!w.some(D=>D.id===C.id)),b=T.filter(C=>w.some(D=>D.id===C.id)),{...E,isLoading:!1,loadedAt:Date.now(),matches:T,pendingMatches:void 0,cachedMatches:[...E.cachedMatches,...p.filter(C=>C.status!=="error"&&C.status!=="notFound")]}}),this.clearExpiredCache()}),[[p,"onLeave"],[v,"onEnter"],[b,"onStay"]].forEach(([E,w])=>{E.forEach(T=>{var C,D;(D=(C=this.looseRoutesById[T.routeId].options)[w])==null||D.call(C,T)})})})})}})}catch(h){zn(h)?(s=h,this.navigate({...s.options,replace:!0,ignoreBlocker:!0})):Sn(h)&&(o=h),this.__store.setState(y=>({...y,statusCode:s?s.status:o?404:y.matches.some(p=>p.status==="error")?500:200,redirect:s}))}this.latestLoadPromise===c&&((m=this.commitLocationPromise)==null||m.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),f()})}),this.latestLoadPromise=c,await c;this.latestLoadPromise&&c!==this.latestLoadPromise;)await this.latestLoadPromise;let u;this.hasNotFoundMatch()?u=404:this.__store.state.matches.some(f=>f.status==="error")&&(u=500),u!==void 0&&this.__store.setState(f=>({...f,statusCode:u}))},this.startViewTransition=i=>{const s=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,s&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let o;if(typeof s=="object"&&this.isViewTransitionTypesSupported){const c=this.latestLocation,u=this.state.resolvedLocation,f=typeof s.types=="function"?s.types(Fs({resolvedLocation:u,location:c})):s.types;if(f===!1){i();return}o={update:i,types:f}}else o=i;document.startViewTransition(o)}else i()},this.updateMatch=(i,s)=>{this.startTransition(()=>{var c;const o=(c=this.state.pendingMatches)!=null&&c.some(u=>u.id===i)?"pendingMatches":this.state.matches.some(u=>u.id===i)?"matches":this.state.cachedMatches.some(u=>u.id===i)?"cachedMatches":"";o&&this.__store.setState(u=>{var f;return{...u,[o]:(f=u[o])==null?void 0:f.map(m=>m.id===i?s(m):m)}})})},this.getMatch=i=>{var o;const s=c=>c.id===i;return this.state.cachedMatches.find(s)??((o=this.state.pendingMatches)==null?void 0:o.find(s))??this.state.matches.find(s)},this.invalidate=i=>{const s=o=>{var c;return((c=i==null?void 0:i.filter)==null?void 0:c.call(i,o))??!0?{...o,invalid:!0,...i!=null&&i.forcePending||o.status==="error"||o.status==="notFound"?{status:"pending",error:void 0}:void 0}:o};return this.__store.setState(o=>{var c;return{...o,matches:o.matches.map(s),cachedMatches:o.cachedMatches.map(s),pendingMatches:(c=o.pendingMatches)==null?void 0:c.map(s)}}),this.shouldViewTransition=!1,this.load({sync:i==null?void 0:i.sync})},this.getParsedLocationHref=i=>i.publicHref||"/",this.resolveRedirect=i=>{const s=i.headers.get("Location");if(!i.options.href||i.options._builtLocation){const o=i.options._builtLocation??this.buildLocation(i.options),c=this.getParsedLocationHref(o);i.options.href=c,i.headers.set("Location",c)}else if(s)try{const o=new URL(s);if(this.origin&&o.origin===this.origin){const c=o.pathname+o.search+o.hash;i.options.href=c,i.headers.set("Location",c)}}catch{}return i.headers.get("Location")||i.headers.set("Location",i.options.href),i},this.clearCache=i=>{const s=i==null?void 0:i.filter;s!==void 0?this.__store.setState(o=>({...o,cachedMatches:o.cachedMatches.filter(c=>!s(c))})):this.__store.setState(o=>({...o,cachedMatches:[]}))},this.clearExpiredCache=()=>{const i=s=>{const o=this.looseRoutesById[s.routeId];if(!o.options.loader)return!0;const c=(s.preload?o.options.preloadGcTime??this.options.defaultPreloadGcTime:o.options.gcTime??this.options.defaultGcTime)??300*1e3;return s.status==="error"?!0:Date.now()-s.updatedAt>=c};this.clearCache({filter:i})},this.loadRouteChunk=fE,this.preloadRoute=async i=>{const s=this.buildLocation(i);let o=this.matchRoutes(s,{throwOnError:!0,preload:!0,dest:i});const c=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(f=>f.id)),u=new Set([...c,...this.state.cachedMatches.map(f=>f.id)]);Il(()=>{o.forEach(f=>{u.has(f.id)||this.__store.setState(m=>({...m,cachedMatches:[...m.cachedMatches,f]}))})});try{return o=await lS({router:this,matches:o,location:s,preload:!0,updateMatch:(f,m)=>{c.has(f)?o=o.map(h=>h.id===f?m(h):h):this.updateMatch(f,m)}}),o}catch(f){if(zn(f))return f.options.reloadDocument?void 0:await this.preloadRoute({...f.options,_fromLocation:s});Sn(f)||console.error(f);return}},this.matchRoute=(i,s)=>{const o={...i,to:i.to?this.resolvePathWithBase(i.from||"",i.to):void 0,params:i.params||{},leaveParams:!0},c=this.buildLocation(o);if(s!=null&&s.pending&&this.state.status!=="pending")return!1;const f=((s==null?void 0:s.pending)===void 0?!this.state.isLoading:s.pending)?this.latestLocation:this.state.resolvedLocation||this.state.location,m=Z2(c.pathname,(s==null?void 0:s.caseSensitive)??!1,(s==null?void 0:s.fuzzy)??!1,f.pathname,this.processedTree);return!m||i.params&&!Hs(m.rawParams,i.params,{partial:!0})?!1:(s==null?void 0:s.includeSearch)??!0?Hs(f.search,c.search,{partial:!0})?m.rawParams:!1:m.rawParams},this.hasNotFoundMatch=()=>this.__store.state.matches.some(i=>i.status==="notFound"||i.globalNotFound),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??"fuzzy",stringifySearch:e.stringifySearch??vD,parseSearch:e.parseSearch??yD}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.__store.state}setRoutes({routesById:e,routesByPath:i,processedTree:s}){this.routesById=e,this.routesByPath=i,this.processedTree=s;const o=this.options.notFoundRoute;o&&(o.init({originalIndex:99999999999}),this.routesById[o.id]=o)}get looseRoutesById(){return this.routesById}getParentContext(e){return(e==null?void 0:e.id)?e.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(e,i){var v,b;const s=this.getMatchedRoutes(e.pathname),{foundRoute:o,routeParams:c,parsedParams:u}=s;let{matchedRoutes:f}=s,m=!1;(o?o.path!=="/"&&c["**"]:Qi(e.pathname))&&(this.options.notFoundRoute?f=[...f,this.options.notFoundRoute]:m=!0);const h=m?jD(this.options.notFoundMode,f):void 0,y=new Array(f.length),p=new Map(this.state.matches.map(E=>[E.routeId,E]));for(let E=0;E<f.length;E++){const w=f[E],T=y[E-1];let C,D,_;{const N=(T==null?void 0:T.search)??e.search,q=(T==null?void 0:T._strictSearch)??void 0;try{const H=nf(w.options.validateSearch,{...N})??void 0;C={...N,...H},D={...q,...H},_=void 0}catch(H){let et=H;if(H instanceof xf||(et=new xf(H.message,{cause:H})),i!=null&&i.throwOnError)throw et;C=N,D={},_=et}}const A=((b=(v=w.options).loaderDeps)==null?void 0:b.call(v,{search:C}))??"",P=A?JSON.stringify(A):"",{interpolatedPath:B,usedParams:z}=zm({path:w.fullPath,params:c,decoder:this.pathParamsDecoder,server:this.isServer}),L=w.id+B+P,Y=this.getMatch(L),I=p.get(w.id),W=(Y==null?void 0:Y._strictParams)??z;let at;if(!Y)try{cS(w,z,u,W)}catch(N){if(Sn(N)||zn(N)?at=N:at=new DD(N.message,{cause:N}),i!=null&&i.throwOnError)throw at}Object.assign(c,W);const ut=I?"stay":"enter";let ft;if(Y)ft={...Y,cause:ut,params:(I==null?void 0:I.params)??c,_strictParams:W,search:bn(I?I.search:Y.search,C),_strictSearch:D};else{const N=w.options.loader||w.options.beforeLoad||w.lazyFn||dE(w)?"pending":"success";ft={id:L,ssr:w.options.ssr,index:E,routeId:w.id,params:(I==null?void 0:I.params)??c,_strictParams:W,pathname:B,updatedAt:Date.now(),search:I?bn(I.search,C):C,_strictSearch:D,searchError:void 0,status:N,isFetching:!1,error:void 0,paramsError:at,__routeContext:void 0,_nonReactive:{loadPromise:xo()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:ut,loaderDeps:I?bn(I.loaderDeps,A):A,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:w.options.staticData||{},fullPath:w.fullPath}}i!=null&&i.preload||(ft.globalNotFound=h===w.id),ft.searchError=_;const ot=this.getParentContext(T);ft.context={...ot,...ft.__routeContext,...ft.__beforeLoadContext},y[E]=ft}for(let E=0;E<y.length;E++){const w=y[E],T=this.looseRoutesById[w.routeId],C=this.getMatch(w.id),D=p.get(w.routeId);if(w.params=D?bn(D.params,c):c,!C){const _=y[E-1],A=this.getParentContext(_);if(T.options.context){const P={deps:w.loaderDeps,params:w.params,context:A??{},location:e,navigate:B=>this.navigate({...B,_fromLocation:e}),buildLocation:this.buildLocation,cause:w.cause,abortController:w.abortController,preload:!!w.preload,matches:y,routeId:T.id};w.__routeContext=T.options.context(P)??void 0}w.context={...A,...w.__routeContext,...w.__beforeLoadContext}}}return y}matchRoutesLightweight(e){const{matchedRoutes:i,routeParams:s,parsedParams:o}=this.getMatchedRoutes(e.pathname),c=Yl(i),u={...e.search};for(const y of i)try{Object.assign(u,nf(y.options.validateSearch,u))}catch{}const f=Yl(this.state.matches),m=f&&f.routeId===c.id&&e.pathname===this.state.location.pathname;let h;if(m)h=f.params;else{const y={...s};for(const p of i)try{cS(p,s,o??{},y)}catch{}h=y}return{matchedRoutes:i,fullPath:c.fullPath,search:u,params:h}}}class xf extends Error{}class DD extends Error{}function OD(t){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:t,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function nf(t,e){if(t==null)return{};if("~standard"in t){const i=t["~standard"].validate(e);if(i instanceof Promise)throw new xf("Async validation not supported");if(i.issues)throw new xf(JSON.stringify(i.issues,void 0,2),{cause:i});return i.value}return"parse"in t?t.parse(e):typeof t=="function"?t(e):{}}function ND({pathname:t,routesById:e,processedTree:i}){const s={},o=Qi(t);let c,u;const f=W2(o,i,!0);return f&&(c=f.route,Object.assign(s,f.rawParams),u=Object.assign({},f.parsedParams)),{matchedRoutes:(f==null?void 0:f.branch)||[e[jn]],routeParams:s,foundRoute:c,parsedParams:u}}function PD({search:t,dest:e,destRoutes:i,_includeValidateSearch:s}){return LD(i)(t,e,s??!1)}function LD(t){var o;const e={dest:null,_includeValidateSearch:!1,middlewares:[]};for(const c of t){if("search"in c.options)(o=c.options.search)!=null&&o.middlewares&&e.middlewares.push(...c.options.search.middlewares);else if(c.options.preSearchFilters||c.options.postSearchFilters){const u=({search:f,next:m})=>{let h=f;"preSearchFilters"in c.options&&c.options.preSearchFilters&&(h=c.options.preSearchFilters.reduce((p,v)=>v(p),f));const y=m(h);return"postSearchFilters"in c.options&&c.options.postSearchFilters?c.options.postSearchFilters.reduce((p,v)=>v(p),y):y};e.middlewares.push(u)}if(c.options.validateSearch){const u=({search:f,next:m})=>{const h=m(f);if(!e._includeValidateSearch)return h;try{return{...h,...nf(c.options.validateSearch,h)??void 0}}catch{return h}};e.middlewares.push(u)}}const i=({search:c})=>{const u=e.dest;return u.search?u.search===!0?c:Fa(u.search,c):{}};e.middlewares.push(i);const s=(c,u,f)=>{if(c>=f.length)return u;const m=f[c];return m({search:u,next:y=>s(c+1,y,f)})};return function(u,f,m){return e.dest=f,e._includeValidateSearch=m,s(0,u,e.middlewares)}}function jD(t,e){if(t!=="root")for(let i=e.length-1;i>=0;i--){const s=e[i];if(s.children)return s.id}return jn}function cS(t,e,i,s){var c;const o=((c=t.options.params)==null?void 0:c.parse)??t.options.parseParams;if(o)if(t.options.skipRouteOnParseError)for(const u in e)u in i&&(s[u]=i[u]);else{const u=o(s);Object.assign(s,u)}}const kD="Error preloading route! ☝️";class pE{constructor(e){if(this.init=i=>{var h,y;this.originalIndex=i.originalIndex;const s=this.options,o=!(s!=null&&s.path)&&!(s!=null&&s.id);this.parentRoute=(y=(h=this.options).getParentRoute)==null?void 0:y.call(h),o?this._path=jn:this.parentRoute||$i(!1);let c=o?jn:s==null?void 0:s.path;c&&c!=="/"&&(c=sE(c));const u=(s==null?void 0:s.id)||c;let f=o?jn:tf([this.parentRoute.id===jn?"":this.parentRoute.id,u]);c===jn&&(c="/"),f!==jn&&(f=tf(["/",f]));const m=f===jn?"/":tf([this.parentRoute.fullPath,c]);this._path=c,this._id=f,this._fullPath=m,this._to=Qi(m)},this.addChildren=i=>this._addFileChildren(i),this._addFileChildren=i=>(Array.isArray(i)&&(this.children=i),typeof i=="object"&&i!==null&&(this.children=Object.values(i)),this),this._addFileTypes=()=>this,this.updateLoader=i=>(Object.assign(this.options,i),this),this.update=i=>(Object.assign(this.options,i),this),this.lazy=i=>(this.lazyFn=i,this),this.redirect=i=>SD({from:this.fullPath,...i}),this.options=e||{},this.isRoot=!(e!=null&&e.getParentRoute),e!=null&&e.id&&(e!=null&&e.path))throw new Error("Route cannot have both an 'id' and a 'path' option.")}get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}}class zD extends pE{constructor(e){super(e)}}const BD="use",uS=Uf[BD],Vu=typeof window<"u"?S.useLayoutEffect:S.useEffect;function Vm(t){const e=S.useRef({value:t,prev:null}),i=e.current.value;return t!==i&&(e.current={value:t,prev:i}),e.current.prev}function VD(t,e,i={},s={}){S.useEffect(()=>{if(!t.current||s.disabled||typeof IntersectionObserver!="function")return;const o=new IntersectionObserver(([c])=>{e(c)},i);return o.observe(t.current),()=>{o.disconnect()}},[e,i,s.disabled,t])}function UD(t){const e=S.useRef(null);return S.useImperativeHandle(t,()=>e.current,[]),e}function Ng(t){const e=t.errorComponent??Pg;return R.jsx(ID,{getResetKey:t.getResetKey,onCatch:t.onCatch,children:({error:i,reset:s})=>i?S.createElement(e,{error:i,reset:s}):t.children})}class ID extends S.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(e){return{resetKey:e.getResetKey()}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidUpdate(e,i){i.error&&i.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(e,i){this.props.onCatch&&this.props.onCatch(e,i)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function Pg({error:t}){const[e,i]=S.useState(!1);return R.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[R.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[R.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),R.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>i(s=>!s),children:e?"Hide Error":"Show Error"})]}),R.jsx("div",{style:{height:".25rem"}}),e?R.jsx("div",{children:R.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:t.message?R.jsx("code",{children:t.message}):null})}):null]})}function HD({children:t,fallback:e=null}){return gE()?R.jsx(rt.Fragment,{children:t}):R.jsx(rt.Fragment,{children:e})}function gE(){return rt.useSyncExternalStore(FD,()=>!0,()=>!1)}function FD(){return()=>{}}var Um={exports:{}},Im={},Hm={exports:{}},Fm={};/**
|
|
51
|
+
* @license React
|
|
52
|
+
* use-sync-external-store-shim.production.js
|
|
53
|
+
*
|
|
54
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
55
|
+
*
|
|
56
|
+
* This source code is licensed under the MIT license found in the
|
|
57
|
+
* LICENSE file in the root directory of this source tree.
|
|
58
|
+
*/var fS;function GD(){if(fS)return Fm;fS=1;var t=uc();function e(p,v){return p===v&&(p!==0||1/p===1/v)||p!==p&&v!==v}var i=typeof Object.is=="function"?Object.is:e,s=t.useState,o=t.useEffect,c=t.useLayoutEffect,u=t.useDebugValue;function f(p,v){var b=v(),E=s({inst:{value:b,getSnapshot:v}}),w=E[0].inst,T=E[1];return c(function(){w.value=b,w.getSnapshot=v,m(w)&&T({inst:w})},[p,b,v]),o(function(){return m(w)&&T({inst:w}),p(function(){m(w)&&T({inst:w})})},[p]),u(b),b}function m(p){var v=p.getSnapshot;p=p.value;try{var b=v();return!i(p,b)}catch{return!0}}function h(p,v){return v()}var y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:f;return Fm.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:y,Fm}var dS;function qD(){return dS||(dS=1,Hm.exports=GD()),Hm.exports}/**
|
|
59
|
+
* @license React
|
|
60
|
+
* use-sync-external-store-shim/with-selector.production.js
|
|
61
|
+
*
|
|
62
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
63
|
+
*
|
|
64
|
+
* This source code is licensed under the MIT license found in the
|
|
65
|
+
* LICENSE file in the root directory of this source tree.
|
|
66
|
+
*/var hS;function YD(){if(hS)return Im;hS=1;var t=uc(),e=qD();function i(h,y){return h===y&&(h!==0||1/h===1/y)||h!==h&&y!==y}var s=typeof Object.is=="function"?Object.is:i,o=e.useSyncExternalStore,c=t.useRef,u=t.useEffect,f=t.useMemo,m=t.useDebugValue;return Im.useSyncExternalStoreWithSelector=function(h,y,p,v,b){var E=c(null);if(E.current===null){var w={hasValue:!1,value:null};E.current=w}else w=E.current;E=f(function(){function C(B){if(!D){if(D=!0,_=B,B=v(B),b!==void 0&&w.hasValue){var z=w.value;if(b(z,B))return A=z}return A=B}if(z=A,s(_,B))return z;var L=v(B);return b!==void 0&&b(z,L)?(_=B,z):(_=B,A=L)}var D=!1,_,A,P=p===void 0?null:p;return[function(){return C(y())},P===null?void 0:function(){return C(P())}]},[y,p,v,b]);var T=o(h,E[0],E[1]);return u(function(){w.hasValue=!0,w.value=T},[T]),m(T),T},Im}var mS;function KD(){return mS||(mS=1,Um.exports=YD()),Um.exports}var XD=KD();function QD(t,e=s=>s,i={}){const s=i.equal??$D;return XD.useSyncExternalStoreWithSelector(t.subscribe,()=>t.state,()=>t.state,e,s)}function $D(t,e){if(Object.is(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(const[s,o]of t)if(!e.has(s)||!Object.is(o,e.get(s)))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(const s of t)if(!e.has(s))return!1;return!0}if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();const i=pS(t);if(i.length!==pS(e).length)return!1;for(let s=0;s<i.length;s++)if(!Object.prototype.hasOwnProperty.call(e,i[s])||!Object.is(t[i[s]],e[i[s]]))return!1;return!0}function pS(t){return Object.keys(t).concat(Object.getOwnPropertySymbols(t))}const Gm=S.createContext(null);function yE(){return typeof document>"u"?Gm:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=Gm,Gm)}function In(t){const e=S.useContext(yE());return t==null||t.warn,e}function Xe(t){const e=In({warn:(t==null?void 0:t.router)===void 0}),i=(t==null?void 0:t.router)||e,s=S.useRef(void 0);return QD(i.__store,o=>{if(t!=null&&t.select){if(t.structuralSharing??i.options.defaultStructuralSharing){const c=bn(s.current,t.select(o));return s.current=c,c}return t.select(o)}return o})}const Ff=S.createContext(void 0),ZD=S.createContext(void 0);function xi(t){const e=S.useContext(t.from?ZD:Ff);return Xe({select:s=>{const o=s.matches.find(c=>t.from?t.from===c.routeId:c.id===e);if($i(!((t.shouldThrow??!0)&&!o),`Could not find ${t.from?`an active match from "${t.from}"`:"a nearest match!"}`),o!==void 0)return t.select?t.select(o):o},structuralSharing:t.structuralSharing})}function Lg(t){return xi({from:t.from,strict:t.strict,structuralSharing:t.structuralSharing,select:e=>t.select?t.select(e.loaderData):e.loaderData})}function jg(t){const{select:e,...i}=t;return xi({...i,select:s=>e?e(s.loaderDeps):s.loaderDeps})}function kg(t){return xi({from:t.from,shouldThrow:t.shouldThrow,structuralSharing:t.structuralSharing,strict:t.strict,select:e=>{const i=t.strict===!1?e.params:e._strictParams;return t.select?t.select(i):i}})}function zg(t){return xi({from:t.from,strict:t.strict,shouldThrow:t.shouldThrow,structuralSharing:t.structuralSharing,select:e=>t.select?t.select(e.search):e.search})}function fc(t){const e=In();return S.useCallback(i=>e.navigate({...i,from:i.from??(t==null?void 0:t.from)}),[t==null?void 0:t.from,e])}var Gf=J1();const vE=Mg(Gf);function WD(t,e){const i=In(),s=UD(e),{activeProps:o,inactiveProps:c,activeOptions:u,to:f,preload:m,preloadDelay:h,hashScrollIntoView:y,replace:p,startTransition:v,resetScroll:b,viewTransition:E,children:w,target:T,disabled:C,style:D,className:_,onClick:A,onFocus:P,onMouseEnter:B,onMouseLeave:z,onTouchStart:L,ignoreBlocker:Y,params:I,search:W,hash:at,state:ut,mask:ft,reloadDocument:ot,unsafeRelative:N,from:q,_fromLocation:H,...et}=t,ct=gE(),O=Xe({select:zt=>zt.location.search,structuralSharing:!0}),k=t.from,G=S.useMemo(()=>({...t,from:k}),[i,O,k,t._fromLocation,t.hash,t.to,t.search,t.params,t.state,t.mask,t.unsafeRelative]),$=S.useMemo(()=>i.buildLocation({...G}),[i,G]),J=$.maskedLocation?$.maskedLocation.publicHref:$.publicHref,lt=$.maskedLocation?$.maskedLocation.external:$.external,st=S.useMemo(()=>aO(J,lt,i.history,C),[C,lt,J,i.history]),dt=S.useMemo(()=>{if(st!=null&&st.external)return gf(st.href)?void 0:st.href;if(!sO(f)&&!(typeof f!="string"||f.indexOf(":")===-1))try{return new URL(f),gf(f)?void 0:f}catch{}},[f,st]),mt=Xe({select:zt=>{if(dt)return!1;if(u!=null&&u.exact){if(!aD(zt.location.pathname,$.pathname,i.basepath))return!1}else{const ye=vf(zt.location.pathname,i.basepath),ve=vf($.pathname,i.basepath);if(!(ye.startsWith(ve)&&(ye.length===ve.length||ye[ve.length]==="/")))return!1}return((u==null?void 0:u.includeSearch)??!0)&&!Hs(zt.location.search,$.search,{partial:!(u!=null&&u.exact),ignoreUndefined:!(u!=null&&u.explicitUndefined)})?!1:u!=null&&u.includeHash?ct&&zt.location.hash===$.hash:!0}}),Ut=mt?Fa(o,{})??JD:qm,le=mt?qm:Fa(c,{})??qm,ce=[_,Ut.className,le.className].filter(Boolean).join(" "),fn=(D||Ut.style||le.style)&&{...D,...Ut.style,...le.style},[ke,ii]=S.useState(!1),Hn=S.useRef(!1),ze=t.reloadDocument||dt?!1:m??i.options.defaultPreload,Fn=h??i.options.defaultPreloadDelay??0,Qt=S.useCallback(()=>{i.preloadRoute({...G}).catch(zt=>{console.warn(zt),console.warn(kD)})},[i,G]),is=S.useCallback(zt=>{zt!=null&&zt.isIntersecting&&Qt()},[Qt]);VD(s,is,iO,{disabled:!!C||ze!=="viewport"}),S.useEffect(()=>{Hn.current||!C&&ze==="render"&&(Qt(),Hn.current=!0)},[C,Qt,ze]);const as=zt=>{const ye=zt.currentTarget.getAttribute("target"),ve=T!==void 0?T:ye;if(!C&&!rO(zt)&&!zt.defaultPrevented&&(!ve||ve==="_self")&&zt.button===0){zt.preventDefault(),Gf.flushSync(()=>{ii(!0)});const na=i.subscribe("onResolved",()=>{na(),ii(!1)});i.navigate({...G,replace:p,resetScroll:b,hashScrollIntoView:y,startTransition:v,viewTransition:E,ignoreBlocker:Y})}};if(dt)return{...et,ref:s,href:dt,...w&&{children:w},...T&&{target:T},...C&&{disabled:C},...D&&{style:D},..._&&{className:_},...A&&{onClick:A},...P&&{onFocus:P},...B&&{onMouseEnter:B},...z&&{onMouseLeave:z},...L&&{onTouchStart:L}};const Ee=zt=>{C||ze&&Qt()},ai=Ee,Ae=zt=>{if(!(C||!ze))if(!Fn)Qt();else{const ye=zt.target;if(Dl.has(ye))return;const ve=setTimeout(()=>{Dl.delete(ye),Qt()},Fn);Dl.set(ye,ve)}},Lo=zt=>{if(C||!ze||!Fn)return;const ye=zt.target,ve=Dl.get(ye);ve&&(clearTimeout(ve),Dl.delete(ye))};return{...et,...Ut,...le,href:st==null?void 0:st.href,ref:s,onClick:Ol([A,as]),onFocus:Ol([P,Ee]),onMouseEnter:Ol([B,Ae]),onMouseLeave:Ol([z,Lo]),onTouchStart:Ol([L,ai]),disabled:!!C,target:T,...fn&&{style:fn},...ce&&{className:ce},...C&&tO,...mt&&eO,...ct&&ke&&nO}}const qm={},JD={className:"active"},tO={role:"link","aria-disabled":!0},eO={"data-status":"active","aria-current":"page"},nO={"data-transitioning":"transitioning"},Dl=new WeakMap,iO={rootMargin:"100px"},Ol=t=>e=>{for(const i of t)if(i){if(e.defaultPrevented)return;i(e)}};function aO(t,e,i,s){if(!s)return e?{href:t,external:!0}:{href:i.createHref(t)||"/",external:!1}}function sO(t){if(typeof t!="string")return!1;const e=t.charCodeAt(0);return e===47?t.charCodeAt(1)!==47:e===46}const Sf=S.forwardRef((t,e)=>{const{_asChild:i,...s}=t,{type:o,...c}=WD(s,e),u=typeof s.children=="function"?s.children({isActive:c["data-status"]==="active"}):s.children;if(!i){const{disabled:f,...m}=c;return S.createElement("a",m,u)}return S.createElement(i,c,u)});function rO(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}let oO=class extends pE{constructor(e){super(e),this.useMatch=i=>xi({select:i==null?void 0:i.select,from:this.id,structuralSharing:i==null?void 0:i.structuralSharing}),this.useRouteContext=i=>xi({...i,from:this.id,select:s=>i!=null&&i.select?i.select(s.context):s.context}),this.useSearch=i=>zg({select:i==null?void 0:i.select,structuralSharing:i==null?void 0:i.structuralSharing,from:this.id}),this.useParams=i=>kg({select:i==null?void 0:i.select,structuralSharing:i==null?void 0:i.structuralSharing,from:this.id}),this.useLoaderDeps=i=>jg({...i,from:this.id}),this.useLoaderData=i=>Lg({...i,from:this.id}),this.useNavigate=()=>fc({from:this.fullPath}),this.Link=rt.forwardRef((i,s)=>R.jsx(Sf,{ref:s,from:this.fullPath,...i})),this.$$typeof=Symbol.for("react.memo")}};function lO(t){return new oO(t)}function cO(){return t=>fO(t)}class uO extends zD{constructor(e){super(e),this.useMatch=i=>xi({select:i==null?void 0:i.select,from:this.id,structuralSharing:i==null?void 0:i.structuralSharing}),this.useRouteContext=i=>xi({...i,from:this.id,select:s=>i!=null&&i.select?i.select(s.context):s.context}),this.useSearch=i=>zg({select:i==null?void 0:i.select,structuralSharing:i==null?void 0:i.structuralSharing,from:this.id}),this.useParams=i=>kg({select:i==null?void 0:i.select,structuralSharing:i==null?void 0:i.structuralSharing,from:this.id}),this.useLoaderDeps=i=>jg({...i,from:this.id}),this.useLoaderData=i=>Lg({...i,from:this.id}),this.useNavigate=()=>fc({from:this.fullPath}),this.Link=rt.forwardRef((i,s)=>R.jsx(Sf,{ref:s,from:this.fullPath,...i})),this.$$typeof=Symbol.for("react.memo")}}function fO(t){return new uO(t)}function Zi(t){return typeof t=="object"?new gS(t,{silent:!0}).createRoute(t):new gS(t,{silent:!0}).createRoute}class gS{constructor(e,i){this.path=e,this.createRoute=s=>{this.silent;const o=lO(s);return o.isRoot=!1,o},this.silent=i==null?void 0:i.silent}}class yS{constructor(e){this.useMatch=i=>xi({select:i==null?void 0:i.select,from:this.options.id,structuralSharing:i==null?void 0:i.structuralSharing}),this.useRouteContext=i=>xi({from:this.options.id,select:s=>i!=null&&i.select?i.select(s.context):s.context}),this.useSearch=i=>zg({select:i==null?void 0:i.select,structuralSharing:i==null?void 0:i.structuralSharing,from:this.options.id}),this.useParams=i=>kg({select:i==null?void 0:i.select,structuralSharing:i==null?void 0:i.structuralSharing,from:this.options.id}),this.useLoaderDeps=i=>jg({...i,from:this.options.id}),this.useLoaderData=i=>Lg({...i,from:this.options.id}),this.useNavigate=()=>{const i=In();return fc({from:i.routesById[this.options.id].fullPath})},this.options=e,this.$$typeof=Symbol.for("react.memo")}}function vS(t){return typeof t=="object"?new yS(t):e=>new yS({id:t,...e})}function Zs(t,e){let i,s,o,c;const u=()=>(i||(i=t().then(m=>{i=void 0,s=m[e]}).catch(m=>{if(o=m,G2(o)&&o instanceof Error&&typeof window<"u"&&typeof sessionStorage<"u"){const h=`tanstack_router_reload:${o.message}`;sessionStorage.getItem(h)||(sessionStorage.setItem(h,"1"),c=!0)}})),i),f=function(h){if(c)throw window.location.reload(),new Promise(()=>{});if(o)throw o;if(!s)if(uS)uS(u());else throw u();return S.createElement(s,h)};return f.preload=u,f}function dO(){const t=In(),e=S.useRef({router:t,mounted:!1}),[i,s]=S.useState(!1),{hasPendingMatches:o,isLoading:c}=Xe({select:p=>({isLoading:p.isLoading,hasPendingMatches:p.matches.some(v=>v.status==="pending")}),structuralSharing:!0}),u=Vm(c),f=c||i||o,m=Vm(f),h=c||o,y=Vm(h);return t.startTransition=p=>{s(!0),S.startTransition(()=>{p(),s(!1)})},S.useEffect(()=>{const p=t.history.subscribe(t.load),v=t.buildLocation({to:t.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return Qi(t.latestLocation.publicHref)!==Qi(v.publicHref)&&t.commitLocation({...v,replace:!0}),()=>{p()}},[t,t.history]),Vu(()=>{if(typeof window<"u"&&t.ssr||e.current.router===t&&e.current.mounted)return;e.current={router:t,mounted:!0},(async()=>{try{await t.load()}catch(v){console.error(v)}})()},[t]),Vu(()=>{u&&!c&&t.emit({type:"onLoad",...Fs(t.state)})},[u,t,c]),Vu(()=>{y&&!h&&t.emit({type:"onBeforeRouteMount",...Fs(t.state)})},[h,y,t]),Vu(()=>{if(m&&!f){const p=Fs(t.state);t.emit({type:"onResolved",...p}),t.__store.setState(v=>({...v,status:"idle",resolvedLocation:v.location})),p.hrefChanged&&mD(t)}},[f,m,t]),null}function hO(t){const e=Xe({select:i=>`not-found-${i.location.pathname}-${i.status}`});return R.jsx(Ng,{getResetKey:()=>e,onCatch:(i,s)=>{var o;if(Sn(i))(o=t.onCatch)==null||o.call(t,i,s);else throw i},errorComponent:({error:i})=>{var s;if(Sn(i))return(s=t.fallback)==null?void 0:s.call(t,i);throw i},children:t.children})}function mO(){return R.jsx("p",{children:"Not Found"})}function Kr(t){return R.jsx(R.Fragment,{children:t.children})}function bE(t,e,i){return e.options.notFoundComponent?R.jsx(e.options.notFoundComponent,{...i}):t.options.defaultNotFoundComponent?R.jsx(t.options.defaultNotFoundComponent,{...i}):R.jsx(mO,{})}function pO(){return In().isScrollRestoring,null}const xE=S.memo(function({matchId:e}){var w,T;const i=In(),s=Xe({select:C=>{var A;const D=C.matches.findIndex(P=>P.id===e),_=C.matches[D];return $i(_),{routeId:_.routeId,ssr:_.ssr,_displayPending:_._displayPending,resetKey:C.loadedAt,parentRouteId:(A=C.matches[D-1])==null?void 0:A.routeId}},structuralSharing:!0}),o=i.routesById[s.routeId],c=o.options.pendingComponent??i.options.defaultPendingComponent,u=c?R.jsx(c,{}):null,f=o.options.errorComponent??i.options.defaultErrorComponent,m=o.options.onCatch??i.options.defaultOnCatch,h=o.isRoot?o.options.notFoundComponent??((w=i.options.notFoundRoute)==null?void 0:w.options.component):o.options.notFoundComponent,y=s.ssr===!1||s.ssr==="data-only",p=(!o.isRoot||o.options.wrapInSuspense||y)&&(o.options.wrapInSuspense??c??(((T=o.options.errorComponent)==null?void 0:T.preload)||y))?S.Suspense:Kr,v=f?Ng:Kr,b=h?hO:Kr,E=o.isRoot?o.options.shellComponent??Kr:Kr;return R.jsxs(E,{children:[R.jsx(Ff.Provider,{value:e,children:R.jsx(p,{fallback:u,children:R.jsx(v,{getResetKey:()=>s.resetKey,errorComponent:f||Pg,onCatch:(C,D)=>{if(Sn(C))throw C;m==null||m(C,D)},children:R.jsx(b,{fallback:C=>{if(!h||C.routeId&&C.routeId!==s.routeId||!C.routeId&&!o.isRoot)throw C;return S.createElement(h,C)},children:y||s._displayPending?R.jsx(HD,{fallback:u,children:R.jsx(bS,{matchId:e})}):R.jsx(bS,{matchId:e})})})})}),s.parentRouteId===jn&&i.options.scrollRestoration?R.jsxs(R.Fragment,{children:[R.jsx(gO,{}),R.jsx(pO,{})]}):null]})});function gO(){const t=In(),e=S.useRef(void 0);return R.jsx("script",{suppressHydrationWarning:!0,ref:i=>{i&&(e.current===void 0||e.current.href!==t.latestLocation.href)&&(t.emit({type:"onRendered",...Fs(t.state)}),e.current=t.latestLocation)}},t.latestLocation.state.__TSR_key)}const bS=S.memo(function({matchId:e}){var m,h,y,p;const i=In(),{match:s,key:o,routeId:c}=Xe({select:v=>{const b=v.matches.find(D=>D.id===e),E=b.routeId,w=i.routesById[E].options.remountDeps??i.options.defaultRemountDeps,T=w==null?void 0:w({routeId:E,loaderDeps:b.loaderDeps,params:b._strictParams,search:b._strictSearch});return{key:T?JSON.stringify(T):void 0,routeId:E,match:{id:b.id,status:b.status,error:b.error,invalid:b.invalid,_forcePending:b._forcePending,_displayPending:b._displayPending}}},structuralSharing:!0}),u=i.routesById[c],f=S.useMemo(()=>{const v=u.options.component??i.options.defaultComponent;return v?R.jsx(v,{},o):R.jsx(SE,{})},[o,u.options.component,i.options.defaultComponent]);if(s._displayPending)throw(m=i.getMatch(s.id))==null?void 0:m._nonReactive.displayPendingPromise;if(s._forcePending)throw(h=i.getMatch(s.id))==null?void 0:h._nonReactive.minPendingPromise;if(s.status==="pending"){const v=u.options.pendingMinMs??i.options.defaultPendingMinMs;if(v){const b=i.getMatch(s.id);if(b&&!b._nonReactive.minPendingPromise){const E=xo();b._nonReactive.minPendingPromise=E,setTimeout(()=>{E.resolve(),b._nonReactive.minPendingPromise=void 0},v)}}throw(y=i.getMatch(s.id))==null?void 0:y._nonReactive.loadPromise}if(s.status==="notFound")return $i(Sn(s.error)),bE(i,u,s.error);if(s.status==="redirected")throw $i(zn(s.error)),(p=i.getMatch(s.id))==null?void 0:p._nonReactive.loadPromise;if(s.status==="error")throw s.error;return f}),SE=S.memo(function(){const e=In(),i=S.useContext(Ff),s=Xe({select:h=>{var y;return(y=h.matches.find(p=>p.id===i))==null?void 0:y.routeId}}),o=e.routesById[s],c=Xe({select:h=>{const p=h.matches.find(v=>v.id===i);return $i(p),p.globalNotFound}}),u=Xe({select:h=>{var v;const y=h.matches,p=y.findIndex(b=>b.id===i);return(v=y[p+1])==null?void 0:v.id}}),f=e.options.defaultPendingComponent?R.jsx(e.options.defaultPendingComponent,{}):null;if(c)return bE(e,o,void 0);if(!u)return null;const m=R.jsx(xE,{matchId:u});return s===jn?R.jsx(S.Suspense,{fallback:f,children:m}):m});function yO(){const t=In(),i=t.routesById[jn].options.pendingComponent??t.options.defaultPendingComponent,s=i?R.jsx(i,{}):null,o=typeof document<"u"&&t.ssr?Kr:S.Suspense,c=R.jsxs(o,{fallback:s,children:[R.jsx(dO,{}),R.jsx(vO,{})]});return t.options.InnerWrap?R.jsx(t.options.InnerWrap,{children:c}):c}function vO(){const t=In(),e=Xe({select:o=>{var c;return(c=o.matches[0])==null?void 0:c.id}}),i=Xe({select:o=>o.loadedAt}),s=e?R.jsx(xE,{matchId:e}):null;return R.jsx(Ff.Provider,{value:e,children:t.options.disableGlobalCatchBoundary?s:R.jsx(Ng,{getResetKey:()=>i,errorComponent:Pg,onCatch:o=>{o.message||o.toString()},children:s})})}const bO=t=>new xO(t);class xO extends _D{constructor(e){super(e)}}typeof globalThis<"u"?(globalThis.createFileRoute=Zi,globalThis.createLazyFileRoute=vS):typeof window<"u"&&(window.createFileRoute=Zi,window.createLazyFileRoute=vS);function SO({router:t,children:e,...i}){Object.keys(i).length>0&&t.update({...t.options,...i,context:{...t.options.context,...i.context}});const s=yE(),o=R.jsx(s.Provider,{value:t,children:e});return t.options.Wrap?R.jsx(t.options.Wrap,{children:o}):o}function wO({router:t,...e}){return R.jsx(SO,{router:t,...e,children:R.jsx(yO,{})})}var dc=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},EO={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t),setInterval:(t,e)=>setInterval(t,e),clearInterval:t=>clearInterval(t)},ja,Rg,F1,TO=(F1=class{constructor(){wt(this,ja,EO);wt(this,Rg,!1)}setTimeoutProvider(t){ht(this,ja,t)}setTimeout(t,e){return U(this,ja).setTimeout(t,e)}clearTimeout(t){U(this,ja).clearTimeout(t)}setInterval(t,e){return U(this,ja).setInterval(t,e)}clearInterval(t){U(this,ja).clearInterval(t)}},ja=new WeakMap,Rg=new WeakMap,F1),Ds=new TO;function CO(t){setTimeout(t,0)}var Ks=typeof window>"u"||"Deno"in globalThis;function un(){}function RO(t,e){return typeof t=="function"?t(e):t}function Dp(t){return typeof t=="number"&&t>=0&&t!==1/0}function wE(t,e){return Math.max(t+(e||0)-Date.now(),0)}function Ka(t,e){return typeof t=="function"?t(e):t}function kn(t,e){return typeof t=="function"?t(e):t}function xS(t,e){const{type:i="all",exact:s,fetchStatus:o,predicate:c,queryKey:u,stale:f}=t;if(u){if(s){if(e.queryHash!==Bg(u,e.options))return!1}else if(!Ql(e.queryKey,u))return!1}if(i!=="all"){const m=e.isActive();if(i==="active"&&!m||i==="inactive"&&m)return!1}return!(typeof f=="boolean"&&e.isStale()!==f||o&&o!==e.state.fetchStatus||c&&!c(e))}function SS(t,e){const{exact:i,status:s,predicate:o,mutationKey:c}=t;if(c){if(!e.options.mutationKey)return!1;if(i){if(Xl(e.options.mutationKey)!==Xl(c))return!1}else if(!Ql(e.options.mutationKey,c))return!1}return!(s&&e.state.status!==s||o&&!o(e))}function Bg(t,e){return((e==null?void 0:e.queryKeyHashFn)||Xl)(t)}function Xl(t){return JSON.stringify(t,(e,i)=>Np(i)?Object.keys(i).sort().reduce((s,o)=>(s[o]=i[o],s),{}):i)}function Ql(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(i=>Ql(t[i],e[i])):!1}var MO=Object.prototype.hasOwnProperty;function EE(t,e,i=0){if(t===e)return t;if(i>500)return e;const s=wS(t)&&wS(e);if(!s&&!(Np(t)&&Np(e)))return e;const c=(s?t:Object.keys(t)).length,u=s?e:Object.keys(e),f=u.length,m=s?new Array(f):{};let h=0;for(let y=0;y<f;y++){const p=s?y:u[y],v=t[p],b=e[p];if(v===b){m[p]=v,(s?y<c:MO.call(t,p))&&h++;continue}if(v===null||b===null||typeof v!="object"||typeof b!="object"){m[p]=b;continue}const E=EE(v,b,i+1);m[p]=E,E===v&&h++}return c===f&&h===c?t:m}function Op(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(const i in t)if(t[i]!==e[i])return!1;return!0}function wS(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function Np(t){if(!ES(t))return!1;const e=t.constructor;if(e===void 0)return!0;const i=e.prototype;return!(!ES(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function ES(t){return Object.prototype.toString.call(t)==="[object Object]"}function AO(t){return new Promise(e=>{Ds.setTimeout(e,t)})}function Pp(t,e,i){return typeof i.structuralSharing=="function"?i.structuralSharing(t,e):i.structuralSharing!==!1?EE(t,e):e}function _O(t,e,i=0){const s=[...t,e];return i&&s.length>i?s.slice(1):s}function DO(t,e,i=0){const s=[e,...t];return i&&s.length>i?s.slice(0,-1):s}var Vg=Symbol();function TE(t,e){return!t.queryFn&&(e!=null&&e.initialPromise)?()=>e.initialPromise:!t.queryFn||t.queryFn===Vg?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function CE(t,e){return typeof t=="function"?t(...e):!!t}function OO(t,e,i){let s=!1,o;return Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(o??(o=e()),s||(s=!0,o.aborted?i():o.addEventListener("abort",i,{once:!0})),o)}),t}var Ps,ka,oo,G1,NO=(G1=class extends dc{constructor(){super();wt(this,Ps);wt(this,ka);wt(this,oo);ht(this,oo,e=>{if(!Ks&&window.addEventListener){const i=()=>e();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}})}onSubscribe(){U(this,ka)||this.setEventListener(U(this,oo))}onUnsubscribe(){var e;this.hasListeners()||((e=U(this,ka))==null||e.call(this),ht(this,ka,void 0))}setEventListener(e){var i;ht(this,oo,e),(i=U(this,ka))==null||i.call(this),ht(this,ka,e(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()}))}setFocused(e){U(this,Ps)!==e&&(ht(this,Ps,e),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(i=>{i(e)})}isFocused(){var e;return typeof U(this,Ps)=="boolean"?U(this,Ps):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},Ps=new WeakMap,ka=new WeakMap,oo=new WeakMap,G1),Ug=new NO;function Lp(){let t,e;const i=new Promise((o,c)=>{t=o,e=c});i.status="pending",i.catch(()=>{});function s(o){Object.assign(i,o),delete i.resolve,delete i.reject}return i.resolve=o=>{s({status:"fulfilled",value:o}),t(o)},i.reject=o=>{s({status:"rejected",reason:o}),e(o)},i}var PO=CO;function LO(){let t=[],e=0,i=f=>{f()},s=f=>{f()},o=PO;const c=f=>{e?t.push(f):o(()=>{i(f)})},u=()=>{const f=t;t=[],f.length&&o(()=>{s(()=>{f.forEach(m=>{i(m)})})})};return{batch:f=>{let m;e++;try{m=f()}finally{e--,e||u()}return m},batchCalls:f=>(...m)=>{c(()=>{f(...m)})},schedule:c,setNotifyFunction:f=>{i=f},setBatchNotifyFunction:f=>{s=f},setScheduler:f=>{o=f}}}var je=LO(),lo,za,co,q1,jO=(q1=class extends dc{constructor(){super();wt(this,lo,!0);wt(this,za);wt(this,co);ht(this,co,e=>{if(!Ks&&window.addEventListener){const i=()=>e(!0),s=()=>e(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",s)}}})}onSubscribe(){U(this,za)||this.setEventListener(U(this,co))}onUnsubscribe(){var e;this.hasListeners()||((e=U(this,za))==null||e.call(this),ht(this,za,void 0))}setEventListener(e){var i;ht(this,co,e),(i=U(this,za))==null||i.call(this),ht(this,za,e(this.setOnline.bind(this)))}setOnline(e){U(this,lo)!==e&&(ht(this,lo,e),this.listeners.forEach(s=>{s(e)}))}isOnline(){return U(this,lo)}},lo=new WeakMap,za=new WeakMap,co=new WeakMap,q1),wf=new jO;function kO(t){return Math.min(1e3*2**t,3e4)}function RE(t){return(t??"online")==="online"?wf.isOnline():!0}var jp=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function ME(t){let e=!1,i=0,s;const o=Lp(),c=()=>o.status!=="pending",u=w=>{var T;if(!c()){const C=new jp(w);v(C),(T=t.onCancel)==null||T.call(t,C)}},f=()=>{e=!0},m=()=>{e=!1},h=()=>Ug.isFocused()&&(t.networkMode==="always"||wf.isOnline())&&t.canRun(),y=()=>RE(t.networkMode)&&t.canRun(),p=w=>{c()||(s==null||s(),o.resolve(w))},v=w=>{c()||(s==null||s(),o.reject(w))},b=()=>new Promise(w=>{var T;s=C=>{(c()||h())&&w(C)},(T=t.onPause)==null||T.call(t)}).then(()=>{var w;s=void 0,c()||(w=t.onContinue)==null||w.call(t)}),E=()=>{if(c())return;let w;const T=i===0?t.initialPromise:void 0;try{w=T??t.fn()}catch(C){w=Promise.reject(C)}Promise.resolve(w).then(p).catch(C=>{var B;if(c())return;const D=t.retry??(Ks?0:3),_=t.retryDelay??kO,A=typeof _=="function"?_(i,C):_,P=D===!0||typeof D=="number"&&i<D||typeof D=="function"&&D(i,C);if(e||!P){v(C);return}i++,(B=t.onFail)==null||B.call(t,i,C),AO(A).then(()=>h()?void 0:b()).then(()=>{e?v(C):E()})})};return{promise:o,status:()=>o.status,cancel:u,continue:()=>(s==null||s(),o),cancelRetry:f,continueRetry:m,canStart:y,start:()=>(y()?E():b().then(E),o)}}var Ls,Y1,AE=(Y1=class{constructor(){wt(this,Ls)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Dp(this.gcTime)&&ht(this,Ls,Ds.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(Ks?1/0:300*1e3))}clearGcTimeout(){U(this,Ls)&&(Ds.clearTimeout(U(this,Ls)),ht(this,Ls,void 0))}},Ls=new WeakMap,Y1),js,uo,Ln,ks,Me,sc,zs,Zn,Yi,K1,zO=(K1=class extends AE{constructor(e){super();wt(this,Zn);wt(this,js);wt(this,uo);wt(this,Ln);wt(this,ks);wt(this,Me);wt(this,sc);wt(this,zs);ht(this,zs,!1),ht(this,sc,e.defaultOptions),this.setOptions(e.options),this.observers=[],ht(this,ks,e.client),ht(this,Ln,U(this,ks).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,ht(this,js,CS(this.options)),this.state=e.state??U(this,js),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=U(this,Me))==null?void 0:e.promise}setOptions(e){if(this.options={...U(this,sc),...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=CS(this.options);i.data!==void 0&&(this.setState(TS(i.data,i.dataUpdatedAt)),ht(this,js,i))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&U(this,Ln).remove(this)}setData(e,i){const s=Pp(this.state.data,e,this.options);return jt(this,Zn,Yi).call(this,{data:s,type:"success",dataUpdatedAt:i==null?void 0:i.updatedAt,manual:i==null?void 0:i.manual}),s}setState(e,i){jt(this,Zn,Yi).call(this,{type:"setState",state:e,setStateOptions:i})}cancel(e){var s,o;const i=(s=U(this,Me))==null?void 0:s.promise;return(o=U(this,Me))==null||o.cancel(e),i?i.then(un).catch(un):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(U(this,js))}isActive(){return this.observers.some(e=>kn(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Vg||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Ka(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!wE(this.state.dataUpdatedAt,e)}onFocus(){var i;const e=this.observers.find(s=>s.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(i=U(this,Me))==null||i.continue()}onOnline(){var i;const e=this.observers.find(s=>s.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(i=U(this,Me))==null||i.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),U(this,Ln).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(i=>i!==e),this.observers.length||(U(this,Me)&&(U(this,zs)?U(this,Me).cancel({revert:!0}):U(this,Me).cancelRetry()),this.scheduleGc()),U(this,Ln).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||jt(this,Zn,Yi).call(this,{type:"invalidate"})}async fetch(e,i){var m,h,y,p,v,b,E,w,T,C,D,_;if(this.state.fetchStatus!=="idle"&&((m=U(this,Me))==null?void 0:m.status())!=="rejected"){if(this.state.data!==void 0&&(i!=null&&i.cancelRefetch))this.cancel({silent:!0});else if(U(this,Me))return U(this,Me).continueRetry(),U(this,Me).promise}if(e&&this.setOptions(e),!this.options.queryFn){const A=this.observers.find(P=>P.options.queryFn);A&&this.setOptions(A.options)}const s=new AbortController,o=A=>{Object.defineProperty(A,"signal",{enumerable:!0,get:()=>(ht(this,zs,!0),s.signal)})},c=()=>{const A=TE(this.options,i),B=(()=>{const z={client:U(this,ks),queryKey:this.queryKey,meta:this.meta};return o(z),z})();return ht(this,zs,!1),this.options.persister?this.options.persister(A,B,this):A(B)},f=(()=>{const A={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:U(this,ks),state:this.state,fetchFn:c};return o(A),A})();(h=this.options.behavior)==null||h.onFetch(f,this),ht(this,uo,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((y=f.fetchOptions)==null?void 0:y.meta))&&jt(this,Zn,Yi).call(this,{type:"fetch",meta:(p=f.fetchOptions)==null?void 0:p.meta}),ht(this,Me,ME({initialPromise:i==null?void 0:i.initialPromise,fn:f.fetchFn,onCancel:A=>{A instanceof jp&&A.revert&&this.setState({...U(this,uo),fetchStatus:"idle"}),s.abort()},onFail:(A,P)=>{jt(this,Zn,Yi).call(this,{type:"failed",failureCount:A,error:P})},onPause:()=>{jt(this,Zn,Yi).call(this,{type:"pause"})},onContinue:()=>{jt(this,Zn,Yi).call(this,{type:"continue"})},retry:f.options.retry,retryDelay:f.options.retryDelay,networkMode:f.options.networkMode,canRun:()=>!0}));try{const A=await U(this,Me).start();if(A===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(A),(b=(v=U(this,Ln).config).onSuccess)==null||b.call(v,A,this),(w=(E=U(this,Ln).config).onSettled)==null||w.call(E,A,this.state.error,this),A}catch(A){if(A instanceof jp){if(A.silent)return U(this,Me).promise;if(A.revert){if(this.state.data===void 0)throw A;return this.state.data}}throw jt(this,Zn,Yi).call(this,{type:"error",error:A}),(C=(T=U(this,Ln).config).onError)==null||C.call(T,A,this),(_=(D=U(this,Ln).config).onSettled)==null||_.call(D,this.state.data,A,this),A}finally{this.scheduleGc()}}},js=new WeakMap,uo=new WeakMap,Ln=new WeakMap,ks=new WeakMap,Me=new WeakMap,sc=new WeakMap,zs=new WeakMap,Zn=new WeakSet,Yi=function(e){const i=s=>{switch(e.type){case"failed":return{...s,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,..._E(s.data,this.options),fetchMeta:e.meta??null};case"success":const o={...s,...TS(e.data,e.dataUpdatedAt),dataUpdateCount:s.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return ht(this,uo,e.manual?o:void 0),o;case"error":const c=e.error;return{...s,error:c,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:c,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...e.state}}};this.state=i(this.state),je.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),U(this,Ln).notify({query:this,type:"updated",action:e})})},K1);function _E(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:RE(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function TS(t,e){return{data:t,dataUpdatedAt:e??Date.now(),error:null,isInvalidated:!1,status:"success"}}function CS(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,i=e!==void 0,s=i?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:i?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}var ln,kt,rc,qe,Bs,fo,Ki,Ba,oc,ho,mo,Vs,Us,Va,po,Ht,zl,kp,zp,Bp,Vp,Up,Ip,Hp,DE,X1,BO=(X1=class extends dc{constructor(e,i){super();wt(this,Ht);wt(this,ln);wt(this,kt);wt(this,rc);wt(this,qe);wt(this,Bs);wt(this,fo);wt(this,Ki);wt(this,Ba);wt(this,oc);wt(this,ho);wt(this,mo);wt(this,Vs);wt(this,Us);wt(this,Va);wt(this,po,new Set);this.options=i,ht(this,ln,e),ht(this,Ba,null),ht(this,Ki,Lp()),this.bindMethods(),this.setOptions(i)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(U(this,kt).addObserver(this),RS(U(this,kt),this.options)?jt(this,Ht,zl).call(this):this.updateResult(),jt(this,Ht,Vp).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Fp(U(this,kt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Fp(U(this,kt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,jt(this,Ht,Up).call(this),jt(this,Ht,Ip).call(this),U(this,kt).removeObserver(this)}setOptions(e){const i=this.options,s=U(this,kt);if(this.options=U(this,ln).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof kn(this.options.enabled,U(this,kt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");jt(this,Ht,Hp).call(this),U(this,kt).setOptions(this.options),i._defaulted&&!Op(this.options,i)&&U(this,ln).getQueryCache().notify({type:"observerOptionsUpdated",query:U(this,kt),observer:this});const o=this.hasListeners();o&&MS(U(this,kt),s,this.options,i)&&jt(this,Ht,zl).call(this),this.updateResult(),o&&(U(this,kt)!==s||kn(this.options.enabled,U(this,kt))!==kn(i.enabled,U(this,kt))||Ka(this.options.staleTime,U(this,kt))!==Ka(i.staleTime,U(this,kt)))&&jt(this,Ht,kp).call(this);const c=jt(this,Ht,zp).call(this);o&&(U(this,kt)!==s||kn(this.options.enabled,U(this,kt))!==kn(i.enabled,U(this,kt))||c!==U(this,Va))&&jt(this,Ht,Bp).call(this,c)}getOptimisticResult(e){const i=U(this,ln).getQueryCache().build(U(this,ln),e),s=this.createResult(i,e);return UO(this,s)&&(ht(this,qe,s),ht(this,fo,this.options),ht(this,Bs,U(this,kt).state)),s}getCurrentResult(){return U(this,qe)}trackResult(e,i){return new Proxy(e,{get:(s,o)=>(this.trackProp(o),i==null||i(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&U(this,Ki).status==="pending"&&U(this,Ki).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(s,o))})}trackProp(e){U(this,po).add(e)}getCurrentQuery(){return U(this,kt)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const i=U(this,ln).defaultQueryOptions(e),s=U(this,ln).getQueryCache().build(U(this,ln),i);return s.fetch().then(()=>this.createResult(s,i))}fetch(e){return jt(this,Ht,zl).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),U(this,qe)))}createResult(e,i){var Y;const s=U(this,kt),o=this.options,c=U(this,qe),u=U(this,Bs),f=U(this,fo),h=e!==s?e.state:U(this,rc),{state:y}=e;let p={...y},v=!1,b;if(i._optimisticResults){const I=this.hasListeners(),W=!I&&RS(e,i),at=I&&MS(e,s,i,o);(W||at)&&(p={...p,..._E(y.data,e.options)}),i._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:E,errorUpdatedAt:w,status:T}=p;b=p.data;let C=!1;if(i.placeholderData!==void 0&&b===void 0&&T==="pending"){let I;c!=null&&c.isPlaceholderData&&i.placeholderData===(f==null?void 0:f.placeholderData)?(I=c.data,C=!0):I=typeof i.placeholderData=="function"?i.placeholderData((Y=U(this,mo))==null?void 0:Y.state.data,U(this,mo)):i.placeholderData,I!==void 0&&(T="success",b=Pp(c==null?void 0:c.data,I,i),v=!0)}if(i.select&&b!==void 0&&!C)if(c&&b===(u==null?void 0:u.data)&&i.select===U(this,oc))b=U(this,ho);else try{ht(this,oc,i.select),b=i.select(b),b=Pp(c==null?void 0:c.data,b,i),ht(this,ho,b),ht(this,Ba,null)}catch(I){ht(this,Ba,I)}U(this,Ba)&&(E=U(this,Ba),b=U(this,ho),w=Date.now(),T="error");const D=p.fetchStatus==="fetching",_=T==="pending",A=T==="error",P=_&&D,B=b!==void 0,L={status:T,fetchStatus:p.fetchStatus,isPending:_,isSuccess:T==="success",isError:A,isInitialLoading:P,isLoading:P,data:b,dataUpdatedAt:p.dataUpdatedAt,error:E,errorUpdatedAt:w,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>h.dataUpdateCount||p.errorUpdateCount>h.errorUpdateCount,isFetching:D,isRefetching:D&&!_,isLoadingError:A&&!B,isPaused:p.fetchStatus==="paused",isPlaceholderData:v,isRefetchError:A&&B,isStale:Ig(e,i),refetch:this.refetch,promise:U(this,Ki),isEnabled:kn(i.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const I=L.data!==void 0,W=L.status==="error"&&!I,at=ot=>{W?ot.reject(L.error):I&&ot.resolve(L.data)},ut=()=>{const ot=ht(this,Ki,L.promise=Lp());at(ot)},ft=U(this,Ki);switch(ft.status){case"pending":e.queryHash===s.queryHash&&at(ft);break;case"fulfilled":(W||L.data!==ft.value)&&ut();break;case"rejected":(!W||L.error!==ft.reason)&&ut();break}}return L}updateResult(){const e=U(this,qe),i=this.createResult(U(this,kt),this.options);if(ht(this,Bs,U(this,kt).state),ht(this,fo,this.options),U(this,Bs).data!==void 0&&ht(this,mo,U(this,kt)),Op(i,e))return;ht(this,qe,i);const s=()=>{if(!e)return!0;const{notifyOnChangeProps:o}=this.options,c=typeof o=="function"?o():o;if(c==="all"||!c&&!U(this,po).size)return!0;const u=new Set(c??U(this,po));return this.options.throwOnError&&u.add("error"),Object.keys(U(this,qe)).some(f=>{const m=f;return U(this,qe)[m]!==e[m]&&u.has(m)})};jt(this,Ht,DE).call(this,{listeners:s()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&jt(this,Ht,Vp).call(this)}},ln=new WeakMap,kt=new WeakMap,rc=new WeakMap,qe=new WeakMap,Bs=new WeakMap,fo=new WeakMap,Ki=new WeakMap,Ba=new WeakMap,oc=new WeakMap,ho=new WeakMap,mo=new WeakMap,Vs=new WeakMap,Us=new WeakMap,Va=new WeakMap,po=new WeakMap,Ht=new WeakSet,zl=function(e){jt(this,Ht,Hp).call(this);let i=U(this,kt).fetch(this.options,e);return e!=null&&e.throwOnError||(i=i.catch(un)),i},kp=function(){jt(this,Ht,Up).call(this);const e=Ka(this.options.staleTime,U(this,kt));if(Ks||U(this,qe).isStale||!Dp(e))return;const s=wE(U(this,qe).dataUpdatedAt,e)+1;ht(this,Vs,Ds.setTimeout(()=>{U(this,qe).isStale||this.updateResult()},s))},zp=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(U(this,kt)):this.options.refetchInterval)??!1},Bp=function(e){jt(this,Ht,Ip).call(this),ht(this,Va,e),!(Ks||kn(this.options.enabled,U(this,kt))===!1||!Dp(U(this,Va))||U(this,Va)===0)&&ht(this,Us,Ds.setInterval(()=>{(this.options.refetchIntervalInBackground||Ug.isFocused())&&jt(this,Ht,zl).call(this)},U(this,Va)))},Vp=function(){jt(this,Ht,kp).call(this),jt(this,Ht,Bp).call(this,jt(this,Ht,zp).call(this))},Up=function(){U(this,Vs)&&(Ds.clearTimeout(U(this,Vs)),ht(this,Vs,void 0))},Ip=function(){U(this,Us)&&(Ds.clearInterval(U(this,Us)),ht(this,Us,void 0))},Hp=function(){const e=U(this,ln).getQueryCache().build(U(this,ln),this.options);if(e===U(this,kt))return;const i=U(this,kt);ht(this,kt,e),ht(this,rc,e.state),this.hasListeners()&&(i==null||i.removeObserver(this),e.addObserver(this))},DE=function(e){je.batch(()=>{e.listeners&&this.listeners.forEach(i=>{i(U(this,qe))}),U(this,ln).getQueryCache().notify({query:U(this,kt),type:"observerResultsUpdated"})})},X1);function VO(t,e){return kn(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function RS(t,e){return VO(t,e)||t.state.data!==void 0&&Fp(t,e,e.refetchOnMount)}function Fp(t,e,i){if(kn(e.enabled,t)!==!1&&Ka(e.staleTime,t)!=="static"){const s=typeof i=="function"?i(t):i;return s==="always"||s!==!1&&Ig(t,e)}return!1}function MS(t,e,i,s){return(t!==e||kn(s.enabled,t)===!1)&&(!i.suspense||t.state.status!=="error")&&Ig(t,i)}function Ig(t,e){return kn(e.enabled,t)!==!1&&t.isStaleByTime(Ka(e.staleTime,t))}function UO(t,e){return!Op(t.getCurrentResult(),e)}function AS(t){return{onFetch:(e,i)=>{var y,p,v,b,E;const s=e.options,o=(v=(p=(y=e.fetchOptions)==null?void 0:y.meta)==null?void 0:p.fetchMore)==null?void 0:v.direction,c=((b=e.state.data)==null?void 0:b.pages)||[],u=((E=e.state.data)==null?void 0:E.pageParams)||[];let f={pages:[],pageParams:[]},m=0;const h=async()=>{let w=!1;const T=_=>{OO(_,()=>e.signal,()=>w=!0)},C=TE(e.options,e.fetchOptions),D=async(_,A,P)=>{if(w)return Promise.reject();if(A==null&&_.pages.length)return Promise.resolve(_);const z=(()=>{const W={client:e.client,queryKey:e.queryKey,pageParam:A,direction:P?"backward":"forward",meta:e.options.meta};return T(W),W})(),L=await C(z),{maxPages:Y}=e.options,I=P?DO:_O;return{pages:I(_.pages,L,Y),pageParams:I(_.pageParams,A,Y)}};if(o&&c.length){const _=o==="backward",A=_?IO:_S,P={pages:c,pageParams:u},B=A(s,P);f=await D(P,B,_)}else{const _=t??c.length;do{const A=m===0?u[0]??s.initialPageParam:_S(s,f);if(m>0&&A==null)break;f=await D(f,A),m++}while(m<_)}return f};e.options.persister?e.fetchFn=()=>{var w,T;return(T=(w=e.options).persister)==null?void 0:T.call(w,h,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},i)}:e.fetchFn=h}}}function _S(t,{pages:e,pageParams:i}){const s=e.length-1;return e.length>0?t.getNextPageParam(e[s],e,i[s],i):void 0}function IO(t,{pages:e,pageParams:i}){var s;return e.length>0?(s=t.getPreviousPageParam)==null?void 0:s.call(t,e[0],e,i[0],i):void 0}var lc,hi,Ie,Is,mi,Da,Q1,HO=(Q1=class extends AE{constructor(e){super();wt(this,mi);wt(this,lc);wt(this,hi);wt(this,Ie);wt(this,Is);ht(this,lc,e.client),this.mutationId=e.mutationId,ht(this,Ie,e.mutationCache),ht(this,hi,[]),this.state=e.state||FO(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){U(this,hi).includes(e)||(U(this,hi).push(e),this.clearGcTimeout(),U(this,Ie).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){ht(this,hi,U(this,hi).filter(i=>i!==e)),this.scheduleGc(),U(this,Ie).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){U(this,hi).length||(this.state.status==="pending"?this.scheduleGc():U(this,Ie).remove(this))}continue(){var e;return((e=U(this,Is))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var u,f,m,h,y,p,v,b,E,w,T,C,D,_,A,P,B,z;const i=()=>{jt(this,mi,Da).call(this,{type:"continue"})},s={client:U(this,lc),meta:this.options.meta,mutationKey:this.options.mutationKey};ht(this,Is,ME({fn:()=>this.options.mutationFn?this.options.mutationFn(e,s):Promise.reject(new Error("No mutationFn found")),onFail:(L,Y)=>{jt(this,mi,Da).call(this,{type:"failed",failureCount:L,error:Y})},onPause:()=>{jt(this,mi,Da).call(this,{type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>U(this,Ie).canRun(this)}));const o=this.state.status==="pending",c=!U(this,Is).canStart();try{if(o)i();else{jt(this,mi,Da).call(this,{type:"pending",variables:e,isPaused:c}),U(this,Ie).config.onMutate&&await U(this,Ie).config.onMutate(e,this,s);const Y=await((f=(u=this.options).onMutate)==null?void 0:f.call(u,e,s));Y!==this.state.context&&jt(this,mi,Da).call(this,{type:"pending",context:Y,variables:e,isPaused:c})}const L=await U(this,Is).start();return await((h=(m=U(this,Ie).config).onSuccess)==null?void 0:h.call(m,L,e,this.state.context,this,s)),await((p=(y=this.options).onSuccess)==null?void 0:p.call(y,L,e,this.state.context,s)),await((b=(v=U(this,Ie).config).onSettled)==null?void 0:b.call(v,L,null,this.state.variables,this.state.context,this,s)),await((w=(E=this.options).onSettled)==null?void 0:w.call(E,L,null,e,this.state.context,s)),jt(this,mi,Da).call(this,{type:"success",data:L}),L}catch(L){try{await((C=(T=U(this,Ie).config).onError)==null?void 0:C.call(T,L,e,this.state.context,this,s))}catch(Y){Promise.reject(Y)}try{await((_=(D=this.options).onError)==null?void 0:_.call(D,L,e,this.state.context,s))}catch(Y){Promise.reject(Y)}try{await((P=(A=U(this,Ie).config).onSettled)==null?void 0:P.call(A,void 0,L,this.state.variables,this.state.context,this,s))}catch(Y){Promise.reject(Y)}try{await((z=(B=this.options).onSettled)==null?void 0:z.call(B,void 0,L,e,this.state.context,s))}catch(Y){Promise.reject(Y)}throw jt(this,mi,Da).call(this,{type:"error",error:L}),L}finally{U(this,Ie).runNext(this)}}},lc=new WeakMap,hi=new WeakMap,Ie=new WeakMap,Is=new WeakMap,mi=new WeakSet,Da=function(e){const i=s=>{switch(e.type){case"failed":return{...s,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...s,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:e.error,failureCount:s.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=i(this.state),je.batch(()=>{U(this,hi).forEach(s=>{s.onMutationUpdate(e)}),U(this,Ie).notify({mutation:this,type:"updated",action:e})})},Q1);function FO(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Xi,Wn,cc,$1,GO=($1=class extends dc{constructor(e={}){super();wt(this,Xi);wt(this,Wn);wt(this,cc);this.config=e,ht(this,Xi,new Set),ht(this,Wn,new Map),ht(this,cc,0)}build(e,i,s){const o=new HO({client:e,mutationCache:this,mutationId:++ku(this,cc)._,options:e.defaultMutationOptions(i),state:s});return this.add(o),o}add(e){U(this,Xi).add(e);const i=Uu(e);if(typeof i=="string"){const s=U(this,Wn).get(i);s?s.push(e):U(this,Wn).set(i,[e])}this.notify({type:"added",mutation:e})}remove(e){if(U(this,Xi).delete(e)){const i=Uu(e);if(typeof i=="string"){const s=U(this,Wn).get(i);if(s)if(s.length>1){const o=s.indexOf(e);o!==-1&&s.splice(o,1)}else s[0]===e&&U(this,Wn).delete(i)}}this.notify({type:"removed",mutation:e})}canRun(e){const i=Uu(e);if(typeof i=="string"){const s=U(this,Wn).get(i),o=s==null?void 0:s.find(c=>c.state.status==="pending");return!o||o===e}else return!0}runNext(e){var s;const i=Uu(e);if(typeof i=="string"){const o=(s=U(this,Wn).get(i))==null?void 0:s.find(c=>c!==e&&c.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){je.batch(()=>{U(this,Xi).forEach(e=>{this.notify({type:"removed",mutation:e})}),U(this,Xi).clear(),U(this,Wn).clear()})}getAll(){return Array.from(U(this,Xi))}find(e){const i={exact:!0,...e};return this.getAll().find(s=>SS(i,s))}findAll(e={}){return this.getAll().filter(i=>SS(e,i))}notify(e){je.batch(()=>{this.listeners.forEach(i=>{i(e)})})}resumePausedMutations(){const e=this.getAll().filter(i=>i.state.isPaused);return je.batch(()=>Promise.all(e.map(i=>i.continue().catch(un))))}},Xi=new WeakMap,Wn=new WeakMap,cc=new WeakMap,$1);function Uu(t){var e;return(e=t.options.scope)==null?void 0:e.id}var pi,Z1,qO=(Z1=class extends dc{constructor(e={}){super();wt(this,pi);this.config=e,ht(this,pi,new Map)}build(e,i,s){const o=i.queryKey,c=i.queryHash??Bg(o,i);let u=this.get(c);return u||(u=new zO({client:e,queryKey:o,queryHash:c,options:e.defaultQueryOptions(i),state:s,defaultOptions:e.getQueryDefaults(o)}),this.add(u)),u}add(e){U(this,pi).has(e.queryHash)||(U(this,pi).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const i=U(this,pi).get(e.queryHash);i&&(e.destroy(),i===e&&U(this,pi).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){je.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return U(this,pi).get(e)}getAll(){return[...U(this,pi).values()]}find(e){const i={exact:!0,...e};return this.getAll().find(s=>xS(i,s))}findAll(e={}){const i=this.getAll();return Object.keys(e).length>0?i.filter(s=>xS(e,s)):i}notify(e){je.batch(()=>{this.listeners.forEach(i=>{i(e)})})}onFocus(){je.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){je.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},pi=new WeakMap,Z1),re,Ua,Ia,go,yo,Ha,vo,bo,W1,YO=(W1=class{constructor(t={}){wt(this,re);wt(this,Ua);wt(this,Ia);wt(this,go);wt(this,yo);wt(this,Ha);wt(this,vo);wt(this,bo);ht(this,re,t.queryCache||new qO),ht(this,Ua,t.mutationCache||new GO),ht(this,Ia,t.defaultOptions||{}),ht(this,go,new Map),ht(this,yo,new Map),ht(this,Ha,0)}mount(){ku(this,Ha)._++,U(this,Ha)===1&&(ht(this,vo,Ug.subscribe(async t=>{t&&(await this.resumePausedMutations(),U(this,re).onFocus())})),ht(this,bo,wf.subscribe(async t=>{t&&(await this.resumePausedMutations(),U(this,re).onOnline())})))}unmount(){var t,e;ku(this,Ha)._--,U(this,Ha)===0&&((t=U(this,vo))==null||t.call(this),ht(this,vo,void 0),(e=U(this,bo))==null||e.call(this),ht(this,bo,void 0))}isFetching(t){return U(this,re).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return U(this,Ua).findAll({...t,status:"pending"}).length}getQueryData(t){var i;const e=this.defaultQueryOptions({queryKey:t});return(i=U(this,re).get(e.queryHash))==null?void 0:i.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),i=U(this,re).build(this,e),s=i.state.data;return s===void 0?this.fetchQuery(t):(t.revalidateIfStale&&i.isStaleByTime(Ka(e.staleTime,i))&&this.prefetchQuery(e),Promise.resolve(s))}getQueriesData(t){return U(this,re).findAll(t).map(({queryKey:e,state:i})=>{const s=i.data;return[e,s]})}setQueryData(t,e,i){const s=this.defaultQueryOptions({queryKey:t}),o=U(this,re).get(s.queryHash),c=o==null?void 0:o.state.data,u=RO(e,c);if(u!==void 0)return U(this,re).build(this,s).setData(u,{...i,manual:!0})}setQueriesData(t,e,i){return je.batch(()=>U(this,re).findAll(t).map(({queryKey:s})=>[s,this.setQueryData(s,e,i)]))}getQueryState(t){var i;const e=this.defaultQueryOptions({queryKey:t});return(i=U(this,re).get(e.queryHash))==null?void 0:i.state}removeQueries(t){const e=U(this,re);je.batch(()=>{e.findAll(t).forEach(i=>{e.remove(i)})})}resetQueries(t,e){const i=U(this,re);return je.batch(()=>(i.findAll(t).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const i={revert:!0,...e},s=je.batch(()=>U(this,re).findAll(t).map(o=>o.cancel(i)));return Promise.all(s).then(un).catch(un)}invalidateQueries(t,e={}){return je.batch(()=>(U(this,re).findAll(t).forEach(i=>{i.invalidate()}),(t==null?void 0:t.refetchType)==="none"?Promise.resolve():this.refetchQueries({...t,type:(t==null?void 0:t.refetchType)??(t==null?void 0:t.type)??"active"},e)))}refetchQueries(t,e={}){const i={...e,cancelRefetch:e.cancelRefetch??!0},s=je.batch(()=>U(this,re).findAll(t).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let c=o.fetch(void 0,i);return i.throwOnError||(c=c.catch(un)),o.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(s).then(un)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const i=U(this,re).build(this,e);return i.isStaleByTime(Ka(e.staleTime,i))?i.fetch(e):Promise.resolve(i.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(un).catch(un)}fetchInfiniteQuery(t){return t.behavior=AS(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(un).catch(un)}ensureInfiniteQueryData(t){return t.behavior=AS(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return wf.isOnline()?U(this,Ua).resumePausedMutations():Promise.resolve()}getQueryCache(){return U(this,re)}getMutationCache(){return U(this,Ua)}getDefaultOptions(){return U(this,Ia)}setDefaultOptions(t){ht(this,Ia,t)}setQueryDefaults(t,e){U(this,go).set(Xl(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...U(this,go).values()],i={};return e.forEach(s=>{Ql(t,s.queryKey)&&Object.assign(i,s.defaultOptions)}),i}setMutationDefaults(t,e){U(this,yo).set(Xl(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...U(this,yo).values()],i={};return e.forEach(s=>{Ql(t,s.mutationKey)&&Object.assign(i,s.defaultOptions)}),i}defaultQueryOptions(t){if(t._defaulted)return t;const e={...U(this,Ia).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=Bg(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===Vg&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...U(this,Ia).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){U(this,re).clear(),U(this,Ua).clear()}},re=new WeakMap,Ua=new WeakMap,Ia=new WeakMap,go=new WeakMap,yo=new WeakMap,Ha=new WeakMap,vo=new WeakMap,bo=new WeakMap,W1),OE=S.createContext(void 0),NE=t=>{const e=S.useContext(OE);if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},KO=({client:t,children:e})=>(S.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),R.jsx(OE.Provider,{value:t,children:e})),PE=S.createContext(!1),XO=()=>S.useContext(PE);PE.Provider;function QO(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var $O=S.createContext(QO()),ZO=()=>S.useContext($O),WO=(t,e,i)=>{const s=i!=null&&i.state.error&&typeof t.throwOnError=="function"?CE(t.throwOnError,[i.state.error,i]):t.throwOnError;(t.suspense||t.experimental_prefetchInRender||s)&&(e.isReset()||(t.retryOnMount=!1))},JO=t=>{S.useEffect(()=>{t.clearReset()},[t])},tN=({result:t,errorResetBoundary:e,throwOnError:i,query:s,suspense:o})=>t.isError&&!e.isReset()&&!t.isFetching&&s&&(o&&t.data===void 0||CE(i,[t.error,s])),eN=t=>{if(t.suspense){const i=o=>o==="static"?o:Math.max(o??1e3,1e3),s=t.staleTime;t.staleTime=typeof s=="function"?(...o)=>i(s(...o)):i(s),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},nN=(t,e)=>t.isLoading&&t.isFetching&&!e,iN=(t,e)=>(t==null?void 0:t.suspense)&&e.isPending,DS=(t,e,i)=>e.fetchOptimistic(t).catch(()=>{i.clearReset()});function aN(t,e,i){var v,b,E,w;const s=XO(),o=ZO(),c=NE(),u=c.defaultQueryOptions(t);(b=(v=c.getDefaultOptions().queries)==null?void 0:v._experimental_beforeQuery)==null||b.call(v,u);const f=c.getQueryCache().get(u.queryHash);u._optimisticResults=s?"isRestoring":"optimistic",eN(u),WO(u,o,f),JO(o);const m=!c.getQueryCache().get(u.queryHash),[h]=S.useState(()=>new e(c,u)),y=h.getOptimisticResult(u),p=!s&&t.subscribed!==!1;if(S.useSyncExternalStore(S.useCallback(T=>{const C=p?h.subscribe(je.batchCalls(T)):un;return h.updateResult(),C},[h,p]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),S.useEffect(()=>{h.setOptions(u)},[u,h]),iN(u,y))throw DS(u,h,o);if(tN({result:y,errorResetBoundary:o,throwOnError:u.throwOnError,query:f,suspense:u.suspense}))throw y.error;if((w=(E=c.getDefaultOptions().queries)==null?void 0:E._experimental_afterQuery)==null||w.call(E,u,y),u.experimental_prefetchInRender&&!Ks&&nN(y,s)){const T=m?DS(u,h,o):f==null?void 0:f.promise;T==null||T.catch(un).finally(()=>{h.updateResult()})}return u.notifyOnChangeProps?y:h.trackResult(y)}function sN(t,e){return aN(t,BO)}const rN="modulepreload",oN=function(t){return"/"+t},OS={},Ws=function(e,i,s){let o=Promise.resolve();if(i&&i.length>0){let u=function(h){return Promise.all(h.map(y=>Promise.resolve(y).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};document.getElementsByTagName("link");const f=document.querySelector("meta[property=csp-nonce]"),m=(f==null?void 0:f.nonce)||(f==null?void 0:f.getAttribute("nonce"));o=u(i.map(h=>{if(h=oN(h),h in OS)return;OS[h]=!0;const y=h.endsWith(".css"),p=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${p}`))return;const v=document.createElement("link");if(v.rel=y?"stylesheet":rN,y||(v.as="script"),v.crossOrigin="",v.href=h,m&&v.setAttribute("nonce",m),document.head.appendChild(v),y)return new Promise((b,E)=>{v.addEventListener("load",b),v.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${h}`)))})}))}function c(u){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=u,window.dispatchEvent(f),!f.defaultPrevented)throw u}return o.then(u=>{for(const f of u||[])f.status==="rejected"&&c(f.reason);return e().catch(c)})};function lN(t){if(typeof document>"u")return;let e=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",e.appendChild(i),i.styleSheet?i.styleSheet.cssText=t:i.appendChild(document.createTextNode(t))}const cN=t=>{switch(t){case"success":return dN;case"info":return mN;case"warning":return hN;case"error":return pN;default:return null}},uN=Array(12).fill(0),fN=({visible:t,className:e})=>rt.createElement("div",{className:["sonner-loading-wrapper",e].filter(Boolean).join(" "),"data-visible":t},rt.createElement("div",{className:"sonner-spinner"},uN.map((i,s)=>rt.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${s}`})))),dN=rt.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},rt.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),hN=rt.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},rt.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),mN=rt.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},rt.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),pN=rt.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},rt.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),gN=rt.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},rt.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),rt.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),yN=()=>{const[t,e]=rt.useState(document.hidden);return rt.useEffect(()=>{const i=()=>{e(document.hidden)};return document.addEventListener("visibilitychange",i),()=>window.removeEventListener("visibilitychange",i)},[]),t};let Gp=1;class vN{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{const i=this.subscribers.indexOf(e);this.subscribers.splice(i,1)}),this.publish=e=>{this.subscribers.forEach(i=>i(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var i;const{message:s,...o}=e,c=typeof(e==null?void 0:e.id)=="number"||((i=e.id)==null?void 0:i.length)>0?e.id:Gp++,u=this.toasts.find(m=>m.id===c),f=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(c)&&this.dismissedToasts.delete(c),u?this.toasts=this.toasts.map(m=>m.id===c?(this.publish({...m,...e,id:c,title:s}),{...m,...e,id:c,dismissible:f,title:s}):m):this.addToast({title:s,...o,dismissible:f,id:c}),c},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(i=>i({id:e,dismiss:!0})))):this.toasts.forEach(i=>{this.subscribers.forEach(s=>s({id:i.id,dismiss:!0}))}),e),this.message=(e,i)=>this.create({...i,message:e}),this.error=(e,i)=>this.create({...i,message:e,type:"error"}),this.success=(e,i)=>this.create({...i,type:"success",message:e}),this.info=(e,i)=>this.create({...i,type:"info",message:e}),this.warning=(e,i)=>this.create({...i,type:"warning",message:e}),this.loading=(e,i)=>this.create({...i,type:"loading",message:e}),this.promise=(e,i)=>{if(!i)return;let s;i.loading!==void 0&&(s=this.create({...i,promise:e,type:"loading",message:i.loading,description:typeof i.description!="function"?i.description:void 0}));const o=Promise.resolve(e instanceof Function?e():e);let c=s!==void 0,u;const f=o.then(async h=>{if(u=["resolve",h],rt.isValidElement(h))c=!1,this.create({id:s,type:"default",message:h});else if(xN(h)&&!h.ok){c=!1;const p=typeof i.error=="function"?await i.error(`HTTP error! status: ${h.status}`):i.error,v=typeof i.description=="function"?await i.description(`HTTP error! status: ${h.status}`):i.description,E=typeof p=="object"&&!rt.isValidElement(p)?p:{message:p};this.create({id:s,type:"error",description:v,...E})}else if(h instanceof Error){c=!1;const p=typeof i.error=="function"?await i.error(h):i.error,v=typeof i.description=="function"?await i.description(h):i.description,E=typeof p=="object"&&!rt.isValidElement(p)?p:{message:p};this.create({id:s,type:"error",description:v,...E})}else if(i.success!==void 0){c=!1;const p=typeof i.success=="function"?await i.success(h):i.success,v=typeof i.description=="function"?await i.description(h):i.description,E=typeof p=="object"&&!rt.isValidElement(p)?p:{message:p};this.create({id:s,type:"success",description:v,...E})}}).catch(async h=>{if(u=["reject",h],i.error!==void 0){c=!1;const y=typeof i.error=="function"?await i.error(h):i.error,p=typeof i.description=="function"?await i.description(h):i.description,b=typeof y=="object"&&!rt.isValidElement(y)?y:{message:y};this.create({id:s,type:"error",description:p,...b})}}).finally(()=>{c&&(this.dismiss(s),s=void 0),i.finally==null||i.finally.call(i)}),m=()=>new Promise((h,y)=>f.then(()=>u[0]==="reject"?y(u[1]):h(u[1])).catch(y));return typeof s!="string"&&typeof s!="number"?{unwrap:m}:Object.assign(s,{unwrap:m})},this.custom=(e,i)=>{const s=(i==null?void 0:i.id)||Gp++;return this.create({jsx:e(s),id:s,...i}),s},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const cn=new vN,bN=(t,e)=>{const i=(e==null?void 0:e.id)||Gp++;return cn.addToast({title:t,...e,id:i}),i},xN=t=>t&&typeof t=="object"&&"ok"in t&&typeof t.ok=="boolean"&&"status"in t&&typeof t.status=="number",SN=bN,wN=()=>cn.toasts,EN=()=>cn.getActiveToasts(),Nl=Object.assign(SN,{success:cn.success,info:cn.info,warning:cn.warning,error:cn.error,custom:cn.custom,message:cn.message,promise:cn.promise,dismiss:cn.dismiss,loading:cn.loading},{getHistory:wN,getToasts:EN});lN("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Iu(t){return t.label!==void 0}const TN=3,CN="24px",RN="16px",NS=4e3,MN=356,AN=14,_N=45,DN=200;function fi(...t){return t.filter(Boolean).join(" ")}function ON(t){const[e,i]=t.split("-"),s=[];return e&&s.push(e),i&&s.push(i),s}const NN=t=>{var e,i,s,o,c,u,f,m,h;const{invert:y,toast:p,unstyled:v,interacting:b,setHeights:E,visibleToasts:w,heights:T,index:C,toasts:D,expanded:_,removeToast:A,defaultRichColors:P,closeButton:B,style:z,cancelButtonStyle:L,actionButtonStyle:Y,className:I="",descriptionClassName:W="",duration:at,position:ut,gap:ft,expandByDefault:ot,classNames:N,icons:q,closeButtonAriaLabel:H="Close toast"}=t,[et,ct]=rt.useState(null),[O,k]=rt.useState(null),[G,$]=rt.useState(!1),[J,lt]=rt.useState(!1),[st,dt]=rt.useState(!1),[mt,Ut]=rt.useState(!1),[le,ce]=rt.useState(!1),[fn,ke]=rt.useState(0),[ii,Hn]=rt.useState(0),ze=rt.useRef(p.duration||at||NS),Fn=rt.useRef(null),Qt=rt.useRef(null),is=C===0,as=C+1<=w,Ee=p.type,ai=p.dismissible!==!1,Ae=p.className||"",Lo=p.descriptionClassName||"",zt=rt.useMemo(()=>T.findIndex(Et=>Et.toastId===p.id)||0,[T,p.id]),ye=rt.useMemo(()=>{var Et;return(Et=p.closeButton)!=null?Et:B},[p.closeButton,B]),ve=rt.useMemo(()=>p.duration||at||NS,[p.duration,at]),na=rt.useRef(0),Ri=rt.useRef(0),Ec=rt.useRef(0),ia=rt.useRef(null),[ss,Fe]=ut.split("-"),Gn=rt.useMemo(()=>T.reduce((Et,Jt,Te)=>Te>=zt?Et:Et+Jt.height,0),[T,zt]),Be=yN(),md=p.invert||y,jo=Ee==="loading";Ri.current=rt.useMemo(()=>zt*ft+Gn,[zt,Gn]),rt.useEffect(()=>{ze.current=ve},[ve]),rt.useEffect(()=>{$(!0)},[]),rt.useEffect(()=>{const Et=Qt.current;if(Et){const Jt=Et.getBoundingClientRect().height;return Hn(Jt),E(Te=>[{toastId:p.id,height:Jt,position:p.position},...Te]),()=>E(Te=>Te.filter(Ve=>Ve.toastId!==p.id))}},[E,p.id]),rt.useLayoutEffect(()=>{if(!G)return;const Et=Qt.current,Jt=Et.style.height;Et.style.height="auto";const Te=Et.getBoundingClientRect().height;Et.style.height=Jt,Hn(Te),E(Ve=>Ve.find(ee=>ee.toastId===p.id)?Ve.map(ee=>ee.toastId===p.id?{...ee,height:Te}:ee):[{toastId:p.id,height:Te,position:p.position},...Ve])},[G,p.title,p.description,E,p.id,p.jsx,p.action,p.cancel]);const si=rt.useCallback(()=>{lt(!0),ke(Ri.current),E(Et=>Et.filter(Jt=>Jt.toastId!==p.id)),setTimeout(()=>{A(p)},DN)},[p,A,E,Ri]);rt.useEffect(()=>{if(p.promise&&Ee==="loading"||p.duration===1/0||p.type==="loading")return;let Et;return _||b||Be?(()=>{if(Ec.current<na.current){const Ve=new Date().getTime()-na.current;ze.current=ze.current-Ve}Ec.current=new Date().getTime()})():(()=>{ze.current!==1/0&&(na.current=new Date().getTime(),Et=setTimeout(()=>{p.onAutoClose==null||p.onAutoClose.call(p,p),si()},ze.current))})(),()=>clearTimeout(Et)},[_,b,p,Ee,Be,si]),rt.useEffect(()=>{p.delete&&(si(),p.onDismiss==null||p.onDismiss.call(p,p))},[si,p.delete]);function nr(){var Et;if(q!=null&&q.loading){var Jt;return rt.createElement("div",{className:fi(N==null?void 0:N.loader,p==null||(Jt=p.classNames)==null?void 0:Jt.loader,"sonner-loader"),"data-visible":Ee==="loading"},q.loading)}return rt.createElement(fN,{className:fi(N==null?void 0:N.loader,p==null||(Et=p.classNames)==null?void 0:Et.loader),visible:Ee==="loading"})}const ir=p.icon||(q==null?void 0:q[Ee])||cN(Ee);var rs,ri;return rt.createElement("li",{tabIndex:0,ref:Qt,className:fi(I,Ae,N==null?void 0:N.toast,p==null||(e=p.classNames)==null?void 0:e.toast,N==null?void 0:N.default,N==null?void 0:N[Ee],p==null||(i=p.classNames)==null?void 0:i[Ee]),"data-sonner-toast":"","data-rich-colors":(rs=p.richColors)!=null?rs:P,"data-styled":!(p.jsx||p.unstyled||v),"data-mounted":G,"data-promise":!!p.promise,"data-swiped":le,"data-removed":J,"data-visible":as,"data-y-position":ss,"data-x-position":Fe,"data-index":C,"data-front":is,"data-swiping":st,"data-dismissible":ai,"data-type":Ee,"data-invert":md,"data-swipe-out":mt,"data-swipe-direction":O,"data-expanded":!!(_||ot&&G),"data-testid":p.testId,style:{"--index":C,"--toasts-before":C,"--z-index":D.length-C,"--offset":`${J?fn:Ri.current}px`,"--initial-height":ot?"auto":`${ii}px`,...z,...p.style},onDragEnd:()=>{dt(!1),ct(null),ia.current=null},onPointerDown:Et=>{Et.button!==2&&(jo||!ai||(Fn.current=new Date,ke(Ri.current),Et.target.setPointerCapture(Et.pointerId),Et.target.tagName!=="BUTTON"&&(dt(!0),ia.current={x:Et.clientX,y:Et.clientY})))},onPointerUp:()=>{var Et,Jt,Te;if(mt||!ai)return;ia.current=null;const Ve=Number(((Et=Qt.current)==null?void 0:Et.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),aa=Number(((Jt=Qt.current)==null?void 0:Jt.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),ee=new Date().getTime()-((Te=Fn.current)==null?void 0:Te.getTime()),Ze=et==="x"?Ve:aa,os=Math.abs(Ze)/ee;if(Math.abs(Ze)>=_N||os>.11){ke(Ri.current),p.onDismiss==null||p.onDismiss.call(p,p),k(et==="x"?Ve>0?"right":"left":aa>0?"down":"up"),si(),Ut(!0);return}else{var We,Je;(We=Qt.current)==null||We.style.setProperty("--swipe-amount-x","0px"),(Je=Qt.current)==null||Je.style.setProperty("--swipe-amount-y","0px")}ce(!1),dt(!1),ct(null)},onPointerMove:Et=>{var Jt,Te,Ve;if(!ia.current||!ai||((Jt=window.getSelection())==null?void 0:Jt.toString().length)>0)return;const ee=Et.clientY-ia.current.y,Ze=Et.clientX-ia.current.x;var os;const We=(os=t.swipeDirections)!=null?os:ON(ut);!et&&(Math.abs(Ze)>1||Math.abs(ee)>1)&&ct(Math.abs(Ze)>Math.abs(ee)?"x":"y");let Je={x:0,y:0};const ar=qn=>1/(1.5+Math.abs(qn)/20);if(et==="y"){if(We.includes("top")||We.includes("bottom"))if(We.includes("top")&&ee<0||We.includes("bottom")&&ee>0)Je.y=ee;else{const qn=ee*ar(ee);Je.y=Math.abs(qn)<Math.abs(ee)?qn:ee}}else if(et==="x"&&(We.includes("left")||We.includes("right")))if(We.includes("left")&&Ze<0||We.includes("right")&&Ze>0)Je.x=Ze;else{const qn=Ze*ar(Ze);Je.x=Math.abs(qn)<Math.abs(Ze)?qn:Ze}(Math.abs(Je.x)>0||Math.abs(Je.y)>0)&&ce(!0),(Te=Qt.current)==null||Te.style.setProperty("--swipe-amount-x",`${Je.x}px`),(Ve=Qt.current)==null||Ve.style.setProperty("--swipe-amount-y",`${Je.y}px`)}},ye&&!p.jsx&&Ee!=="loading"?rt.createElement("button",{"aria-label":H,"data-disabled":jo,"data-close-button":!0,onClick:jo||!ai?()=>{}:()=>{si(),p.onDismiss==null||p.onDismiss.call(p,p)},className:fi(N==null?void 0:N.closeButton,p==null||(s=p.classNames)==null?void 0:s.closeButton)},(ri=q==null?void 0:q.close)!=null?ri:gN):null,(Ee||p.icon||p.promise)&&p.icon!==null&&((q==null?void 0:q[Ee])!==null||p.icon)?rt.createElement("div",{"data-icon":"",className:fi(N==null?void 0:N.icon,p==null||(o=p.classNames)==null?void 0:o.icon)},p.promise||p.type==="loading"&&!p.icon?p.icon||nr():null,p.type!=="loading"?ir:null):null,rt.createElement("div",{"data-content":"",className:fi(N==null?void 0:N.content,p==null||(c=p.classNames)==null?void 0:c.content)},rt.createElement("div",{"data-title":"",className:fi(N==null?void 0:N.title,p==null||(u=p.classNames)==null?void 0:u.title)},p.jsx?p.jsx:typeof p.title=="function"?p.title():p.title),p.description?rt.createElement("div",{"data-description":"",className:fi(W,Lo,N==null?void 0:N.description,p==null||(f=p.classNames)==null?void 0:f.description)},typeof p.description=="function"?p.description():p.description):null),rt.isValidElement(p.cancel)?p.cancel:p.cancel&&Iu(p.cancel)?rt.createElement("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||L,onClick:Et=>{Iu(p.cancel)&&ai&&(p.cancel.onClick==null||p.cancel.onClick.call(p.cancel,Et),si())},className:fi(N==null?void 0:N.cancelButton,p==null||(m=p.classNames)==null?void 0:m.cancelButton)},p.cancel.label):null,rt.isValidElement(p.action)?p.action:p.action&&Iu(p.action)?rt.createElement("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||Y,onClick:Et=>{Iu(p.action)&&(p.action.onClick==null||p.action.onClick.call(p.action,Et),!Et.defaultPrevented&&si())},className:fi(N==null?void 0:N.actionButton,p==null||(h=p.classNames)==null?void 0:h.actionButton)},p.action.label):null)};function PS(){if(typeof window>"u"||typeof document>"u")return"ltr";const t=document.documentElement.getAttribute("dir");return t==="auto"||!t?window.getComputedStyle(document.documentElement).direction:t}function PN(t,e){const i={};return[t,e].forEach((s,o)=>{const c=o===1,u=c?"--mobile-offset":"--offset",f=c?RN:CN;function m(h){["top","right","bottom","left"].forEach(y=>{i[`${u}-${y}`]=typeof h=="number"?`${h}px`:h})}typeof s=="number"||typeof s=="string"?m(s):typeof s=="object"?["top","right","bottom","left"].forEach(h=>{s[h]===void 0?i[`${u}-${h}`]=f:i[`${u}-${h}`]=typeof s[h]=="number"?`${s[h]}px`:s[h]}):m(f)}),i}const LN=rt.forwardRef(function(e,i){const{id:s,invert:o,position:c="bottom-right",hotkey:u=["altKey","KeyT"],expand:f,closeButton:m,className:h,offset:y,mobileOffset:p,theme:v="light",richColors:b,duration:E,style:w,visibleToasts:T=TN,toastOptions:C,dir:D=PS(),gap:_=AN,icons:A,containerAriaLabel:P="Notifications"}=e,[B,z]=rt.useState([]),L=rt.useMemo(()=>s?B.filter(G=>G.toasterId===s):B.filter(G=>!G.toasterId),[B,s]),Y=rt.useMemo(()=>Array.from(new Set([c].concat(L.filter(G=>G.position).map(G=>G.position)))),[L,c]),[I,W]=rt.useState([]),[at,ut]=rt.useState(!1),[ft,ot]=rt.useState(!1),[N,q]=rt.useState(v!=="system"?v:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),H=rt.useRef(null),et=u.join("+").replace(/Key/g,"").replace(/Digit/g,""),ct=rt.useRef(null),O=rt.useRef(!1),k=rt.useCallback(G=>{z($=>{var J;return(J=$.find(lt=>lt.id===G.id))!=null&&J.delete||cn.dismiss(G.id),$.filter(({id:lt})=>lt!==G.id)})},[]);return rt.useEffect(()=>cn.subscribe(G=>{if(G.dismiss){requestAnimationFrame(()=>{z($=>$.map(J=>J.id===G.id?{...J,delete:!0}:J))});return}setTimeout(()=>{vE.flushSync(()=>{z($=>{const J=$.findIndex(lt=>lt.id===G.id);return J!==-1?[...$.slice(0,J),{...$[J],...G},...$.slice(J+1)]:[G,...$]})})})}),[B]),rt.useEffect(()=>{if(v!=="system"){q(v);return}if(v==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?q("dark"):q("light")),typeof window>"u")return;const G=window.matchMedia("(prefers-color-scheme: dark)");try{G.addEventListener("change",({matches:$})=>{q($?"dark":"light")})}catch{G.addListener(({matches:J})=>{try{q(J?"dark":"light")}catch(lt){console.error(lt)}})}},[v]),rt.useEffect(()=>{B.length<=1&&ut(!1)},[B]),rt.useEffect(()=>{const G=$=>{var J;if(u.every(dt=>$[dt]||$.code===dt)){var st;ut(!0),(st=H.current)==null||st.focus()}$.code==="Escape"&&(document.activeElement===H.current||(J=H.current)!=null&&J.contains(document.activeElement))&&ut(!1)};return document.addEventListener("keydown",G),()=>document.removeEventListener("keydown",G)},[u]),rt.useEffect(()=>{if(H.current)return()=>{ct.current&&(ct.current.focus({preventScroll:!0}),ct.current=null,O.current=!1)}},[H.current]),rt.createElement("section",{ref:i,"aria-label":`${P} ${et}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},Y.map((G,$)=>{var J;const[lt,st]=G.split("-");return L.length?rt.createElement("ol",{key:G,dir:D==="auto"?PS():D,tabIndex:-1,ref:H,className:h,"data-sonner-toaster":!0,"data-sonner-theme":N,"data-y-position":lt,"data-x-position":st,style:{"--front-toast-height":`${((J=I[0])==null?void 0:J.height)||0}px`,"--width":`${MN}px`,"--gap":`${_}px`,...w,...PN(y,p)},onBlur:dt=>{O.current&&!dt.currentTarget.contains(dt.relatedTarget)&&(O.current=!1,ct.current&&(ct.current.focus({preventScroll:!0}),ct.current=null))},onFocus:dt=>{dt.target instanceof HTMLElement&&dt.target.dataset.dismissible==="false"||O.current||(O.current=!0,ct.current=dt.relatedTarget)},onMouseEnter:()=>ut(!0),onMouseMove:()=>ut(!0),onMouseLeave:()=>{ft||ut(!1)},onDragEnd:()=>ut(!1),onPointerDown:dt=>{dt.target instanceof HTMLElement&&dt.target.dataset.dismissible==="false"||ot(!0)},onPointerUp:()=>ot(!1)},L.filter(dt=>!dt.position&&$===0||dt.position===G).map((dt,mt)=>{var Ut,le;return rt.createElement(NN,{key:dt.id,icons:A,index:mt,toast:dt,defaultRichColors:b,duration:(Ut=C==null?void 0:C.duration)!=null?Ut:E,className:C==null?void 0:C.className,descriptionClassName:C==null?void 0:C.descriptionClassName,invert:o,visibleToasts:T,closeButton:(le=C==null?void 0:C.closeButton)!=null?le:m,interacting:ft,position:G,style:C==null?void 0:C.style,unstyled:C==null?void 0:C.unstyled,classNames:C==null?void 0:C.classNames,cancelButtonStyle:C==null?void 0:C.cancelButtonStyle,actionButtonStyle:C==null?void 0:C.actionButtonStyle,closeButtonAriaLabel:C==null?void 0:C.closeButtonAriaLabel,removeToast:k,toasts:L.filter(ce=>ce.position==dt.position),heights:I.filter(ce=>ce.position==dt.position),setHeights:W,expandByDefault:f,gap:_,expanded:at,swipeDirections:e.swipeDirections})})):null}))}),Hg=S.createContext({});function Fg(t){const e=S.useRef(null);return e.current===null&&(e.current=t()),e.current}const LE=typeof window<"u",jE=LE?S.useLayoutEffect:S.useEffect,qf=S.createContext(null);function Gg(t,e){t.indexOf(e)===-1&&t.push(e)}function Ef(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}const Si=(t,e,i)=>i>e?e:i<t?t:i;let qg=()=>{};const Wi={},kE=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function zE(t){return typeof t=="object"&&t!==null}const BE=t=>/^0[^.\s]+$/u.test(t);function Yg(t){let e;return()=>(e===void 0&&(e=t()),e)}const Vn=t=>t,jN=(t,e)=>i=>e(t(i)),hc=(...t)=>t.reduce(jN),$l=(t,e,i)=>{const s=e-t;return s===0?1:(i-t)/s};class Kg{constructor(){this.subscriptions=[]}add(e){return Gg(this.subscriptions,e),()=>Ef(this.subscriptions,e)}notify(e,i,s){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](e,i,s);else for(let c=0;c<o;c++){const u=this.subscriptions[c];u&&u(e,i,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Jn=t=>t*1e3,Bn=t=>t/1e3;function VE(t,e){return e?t*(1e3/e):0}const UE=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t,kN=1e-7,zN=12;function BN(t,e,i,s,o){let c,u,f=0;do u=e+(i-e)/2,c=UE(u,s,o)-t,c>0?i=u:e=u;while(Math.abs(c)>kN&&++f<zN);return u}function mc(t,e,i,s){if(t===e&&i===s)return Vn;const o=c=>BN(c,0,1,t,i);return c=>c===0||c===1?c:UE(o(c),e,s)}const IE=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,HE=t=>e=>1-t(1-e),FE=mc(.33,1.53,.69,.99),Xg=HE(FE),GE=IE(Xg),qE=t=>(t*=2)<1?.5*Xg(t):.5*(2-Math.pow(2,-10*(t-1))),Qg=t=>1-Math.sin(Math.acos(t)),YE=HE(Qg),KE=IE(Qg),VN=mc(.42,0,1,1),UN=mc(0,0,.58,1),XE=mc(.42,0,.58,1),IN=t=>Array.isArray(t)&&typeof t[0]!="number",QE=t=>Array.isArray(t)&&typeof t[0]=="number",HN={linear:Vn,easeIn:VN,easeInOut:XE,easeOut:UN,circIn:Qg,circInOut:KE,circOut:YE,backIn:Xg,backInOut:GE,backOut:FE,anticipate:qE},FN=t=>typeof t=="string",LS=t=>{if(QE(t)){qg(t.length===4);const[e,i,s,o]=t;return mc(e,i,s,o)}else if(FN(t))return HN[t];return t},Hu=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function GN(t,e){let i=new Set,s=new Set,o=!1,c=!1;const u=new WeakSet;let f={delta:0,timestamp:0,isProcessing:!1};function m(y){u.has(y)&&(h.schedule(y),t()),y(f)}const h={schedule:(y,p=!1,v=!1)=>{const E=v&&o?i:s;return p&&u.add(y),E.has(y)||E.add(y),y},cancel:y=>{s.delete(y),u.delete(y)},process:y=>{if(f=y,o){c=!0;return}o=!0,[i,s]=[s,i],i.forEach(m),i.clear(),o=!1,c&&(c=!1,h.process(y))}};return h}const qN=40;function $E(t,e){let i=!1,s=!0;const o={delta:0,timestamp:0,isProcessing:!1},c=()=>i=!0,u=Hu.reduce((_,A)=>(_[A]=GN(c),_),{}),{setup:f,read:m,resolveKeyframes:h,preUpdate:y,update:p,preRender:v,render:b,postRender:E}=u,w=()=>{const _=Wi.useManualTiming?o.timestamp:performance.now();i=!1,Wi.useManualTiming||(o.delta=s?1e3/60:Math.max(Math.min(_-o.timestamp,qN),1)),o.timestamp=_,o.isProcessing=!0,f.process(o),m.process(o),h.process(o),y.process(o),p.process(o),v.process(o),b.process(o),E.process(o),o.isProcessing=!1,i&&e&&(s=!1,t(w))},T=()=>{i=!0,s=!0,o.isProcessing||t(w)};return{schedule:Hu.reduce((_,A)=>{const P=u[A];return _[A]=(B,z=!1,L=!1)=>(i||T(),P.schedule(B,z,L)),_},{}),cancel:_=>{for(let A=0;A<Hu.length;A++)u[Hu[A]].cancel(_)},state:o,steps:u}}const{schedule:$t,cancel:Xa,state:Le,steps:Ym}=$E(typeof requestAnimationFrame<"u"?requestAnimationFrame:Vn,!0);let af;function YN(){af=void 0}const Ye={now:()=>(af===void 0&&Ye.set(Le.isProcessing||Wi.useManualTiming?Le.timestamp:performance.now()),af),set:t=>{af=t,queueMicrotask(YN)}},ZE=t=>e=>typeof e=="string"&&e.startsWith(t),WE=ZE("--"),KN=ZE("var(--"),$g=t=>KN(t)?XN.test(t.split("/*")[0].trim()):!1,XN=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function jS(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}const Ro={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Zl={...Ro,transform:t=>Si(0,1,t)},Fu={...Ro,default:1},Hl=t=>Math.round(t*1e5)/1e5,Zg=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function QN(t){return t==null}const $N=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Wg=(t,e)=>i=>!!(typeof i=="string"&&$N.test(i)&&i.startsWith(t)||e&&!QN(i)&&Object.prototype.hasOwnProperty.call(i,e)),JE=(t,e,i)=>s=>{if(typeof s!="string")return s;const[o,c,u,f]=s.match(Zg);return{[t]:parseFloat(o),[e]:parseFloat(c),[i]:parseFloat(u),alpha:f!==void 0?parseFloat(f):1}},ZN=t=>Si(0,255,t),Km={...Ro,transform:t=>Math.round(ZN(t))},Os={test:Wg("rgb","red"),parse:JE("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:s=1})=>"rgba("+Km.transform(t)+", "+Km.transform(e)+", "+Km.transform(i)+", "+Hl(Zl.transform(s))+")"};function WN(t){let e="",i="",s="",o="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),s=t.substring(5,7),o=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),s=t.substring(3,4),o=t.substring(4,5),e+=e,i+=i,s+=s,o+=o),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(s,16),alpha:o?parseInt(o,16)/255:1}}const qp={test:Wg("#"),parse:WN,transform:Os.transform},pc=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Oa=pc("deg"),vi=pc("%"),vt=pc("px"),JN=pc("vh"),tP=pc("vw"),kS={...vi,parse:t=>vi.parse(t)/100,transform:t=>vi.transform(t*100)},Zr={test:Wg("hsl","hue"),parse:JE("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:s=1})=>"hsla("+Math.round(t)+", "+vi.transform(Hl(e))+", "+vi.transform(Hl(i))+", "+Hl(Zl.transform(s))+")"},ge={test:t=>Os.test(t)||qp.test(t)||Zr.test(t),parse:t=>Os.test(t)?Os.parse(t):Zr.test(t)?Zr.parse(t):qp.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?Os.transform(t):Zr.transform(t),getAnimatableNone:t=>{const e=ge.parse(t);return e.alpha=0,ge.transform(e)}},eP=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function nP(t){var e,i;return isNaN(t)&&typeof t=="string"&&(((e=t.match(Zg))==null?void 0:e.length)||0)+(((i=t.match(eP))==null?void 0:i.length)||0)>0}const tT="number",eT="color",iP="var",aP="var(",zS="${}",sP=/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 Wl(t){const e=t.toString(),i=[],s={color:[],number:[],var:[]},o=[];let c=0;const f=e.replace(sP,m=>(ge.test(m)?(s.color.push(c),o.push(eT),i.push(ge.parse(m))):m.startsWith(aP)?(s.var.push(c),o.push(iP),i.push(m)):(s.number.push(c),o.push(tT),i.push(parseFloat(m))),++c,zS)).split(zS);return{values:i,split:f,indexes:s,types:o}}function nT(t){return Wl(t).values}function iT(t){const{split:e,types:i}=Wl(t),s=e.length;return o=>{let c="";for(let u=0;u<s;u++)if(c+=e[u],o[u]!==void 0){const f=i[u];f===tT?c+=Hl(o[u]):f===eT?c+=ge.transform(o[u]):c+=o[u]}return c}}const rP=t=>typeof t=="number"?0:ge.test(t)?ge.getAnimatableNone(t):t;function oP(t){const e=nT(t);return iT(t)(e.map(rP))}const Qa={test:nP,parse:nT,createTransformer:iT,getAnimatableNone:oP};function Xm(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+(e-t)*6*i:i<1/2?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function lP({hue:t,saturation:e,lightness:i,alpha:s}){t/=360,e/=100,i/=100;let o=0,c=0,u=0;if(!e)o=c=u=i;else{const f=i<.5?i*(1+e):i+e-i*e,m=2*i-f;o=Xm(m,f,t+1/3),c=Xm(m,f,t),u=Xm(m,f,t-1/3)}return{red:Math.round(o*255),green:Math.round(c*255),blue:Math.round(u*255),alpha:s}}function Tf(t,e){return i=>i>0?e:t}const ne=(t,e,i)=>t+(e-t)*i,Qm=(t,e,i)=>{const s=t*t,o=i*(e*e-s)+s;return o<0?0:Math.sqrt(o)},cP=[qp,Os,Zr],uP=t=>cP.find(e=>e.test(t));function BS(t){const e=uP(t);if(!e)return!1;let i=e.parse(t);return e===Zr&&(i=lP(i)),i}const VS=(t,e)=>{const i=BS(t),s=BS(e);if(!i||!s)return Tf(t,e);const o={...i};return c=>(o.red=Qm(i.red,s.red,c),o.green=Qm(i.green,s.green,c),o.blue=Qm(i.blue,s.blue,c),o.alpha=ne(i.alpha,s.alpha,c),Os.transform(o))},Yp=new Set(["none","hidden"]);function fP(t,e){return Yp.has(t)?i=>i<=0?t:e:i=>i>=1?e:t}function dP(t,e){return i=>ne(t,e,i)}function Jg(t){return typeof t=="number"?dP:typeof t=="string"?$g(t)?Tf:ge.test(t)?VS:pP:Array.isArray(t)?aT:typeof t=="object"?ge.test(t)?VS:hP:Tf}function aT(t,e){const i=[...t],s=i.length,o=t.map((c,u)=>Jg(c)(c,e[u]));return c=>{for(let u=0;u<s;u++)i[u]=o[u](c);return i}}function hP(t,e){const i={...t,...e},s={};for(const o in i)t[o]!==void 0&&e[o]!==void 0&&(s[o]=Jg(t[o])(t[o],e[o]));return o=>{for(const c in s)i[c]=s[c](o);return i}}function mP(t,e){const i=[],s={color:0,var:0,number:0};for(let o=0;o<e.values.length;o++){const c=e.types[o],u=t.indexes[c][s[c]],f=t.values[u]??0;i[o]=f,s[c]++}return i}const pP=(t,e)=>{const i=Qa.createTransformer(e),s=Wl(t),o=Wl(e);return s.indexes.var.length===o.indexes.var.length&&s.indexes.color.length===o.indexes.color.length&&s.indexes.number.length>=o.indexes.number.length?Yp.has(t)&&!o.values.length||Yp.has(e)&&!s.values.length?fP(t,e):hc(aT(mP(s,o),o.values),i):Tf(t,e)};function sT(t,e,i){return typeof t=="number"&&typeof e=="number"&&typeof i=="number"?ne(t,e,i):Jg(t)(t,e)}const gP=t=>{const e=({timestamp:i})=>t(i);return{start:(i=!0)=>$t.update(e,i),stop:()=>Xa(e),now:()=>Le.isProcessing?Le.timestamp:Ye.now()}},rT=(t,e,i=10)=>{let s="";const o=Math.max(Math.round(e/i),2);for(let c=0;c<o;c++)s+=Math.round(t(c/(o-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},Cf=2e4;function ty(t){let e=0;const i=50;let s=t.next(e);for(;!s.done&&e<Cf;)e+=i,s=t.next(e);return e>=Cf?1/0:e}function yP(t,e=100,i){const s=i({...t,keyframes:[0,e]}),o=Math.min(ty(s),Cf);return{type:"keyframes",ease:c=>s.next(o*c).value/e,duration:Bn(o)}}const vP=5;function oT(t,e,i){const s=Math.max(e-vP,0);return VE(i-t(s),e-s)}const oe={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},$m=.001;function bP({duration:t=oe.duration,bounce:e=oe.bounce,velocity:i=oe.velocity,mass:s=oe.mass}){let o,c,u=1-e;u=Si(oe.minDamping,oe.maxDamping,u),t=Si(oe.minDuration,oe.maxDuration,Bn(t)),u<1?(o=h=>{const y=h*u,p=y*t,v=y-i,b=Kp(h,u),E=Math.exp(-p);return $m-v/b*E},c=h=>{const p=h*u*t,v=p*i+i,b=Math.pow(u,2)*Math.pow(h,2)*t,E=Math.exp(-p),w=Kp(Math.pow(h,2),u);return(-o(h)+$m>0?-1:1)*((v-b)*E)/w}):(o=h=>{const y=Math.exp(-h*t),p=(h-i)*t+1;return-$m+y*p},c=h=>{const y=Math.exp(-h*t),p=(i-h)*(t*t);return y*p});const f=5/t,m=SP(o,c,f);if(t=Jn(t),isNaN(m))return{stiffness:oe.stiffness,damping:oe.damping,duration:t};{const h=Math.pow(m,2)*s;return{stiffness:h,damping:u*2*Math.sqrt(s*h),duration:t}}}const xP=12;function SP(t,e,i){let s=i;for(let o=1;o<xP;o++)s=s-t(s)/e(s);return s}function Kp(t,e){return t*Math.sqrt(1-e*e)}const wP=["duration","bounce"],EP=["stiffness","damping","mass"];function US(t,e){return e.some(i=>t[i]!==void 0)}function TP(t){let e={velocity:oe.velocity,stiffness:oe.stiffness,damping:oe.damping,mass:oe.mass,isResolvedFromDuration:!1,...t};if(!US(t,EP)&&US(t,wP))if(t.visualDuration){const i=t.visualDuration,s=2*Math.PI/(i*1.2),o=s*s,c=2*Si(.05,1,1-(t.bounce||0))*Math.sqrt(o);e={...e,mass:oe.mass,stiffness:o,damping:c}}else{const i=bP(t);e={...e,...i,mass:oe.mass},e.isResolvedFromDuration=!0}return e}function Rf(t=oe.visualDuration,e=oe.bounce){const i=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:o}=i;const c=i.keyframes[0],u=i.keyframes[i.keyframes.length-1],f={done:!1,value:c},{stiffness:m,damping:h,mass:y,duration:p,velocity:v,isResolvedFromDuration:b}=TP({...i,velocity:-Bn(i.velocity||0)}),E=v||0,w=h/(2*Math.sqrt(m*y)),T=u-c,C=Bn(Math.sqrt(m/y)),D=Math.abs(T)<5;s||(s=D?oe.restSpeed.granular:oe.restSpeed.default),o||(o=D?oe.restDelta.granular:oe.restDelta.default);let _;if(w<1){const P=Kp(C,w);_=B=>{const z=Math.exp(-w*C*B);return u-z*((E+w*C*T)/P*Math.sin(P*B)+T*Math.cos(P*B))}}else if(w===1)_=P=>u-Math.exp(-C*P)*(T+(E+C*T)*P);else{const P=C*Math.sqrt(w*w-1);_=B=>{const z=Math.exp(-w*C*B),L=Math.min(P*B,300);return u-z*((E+w*C*T)*Math.sinh(L)+P*T*Math.cosh(L))/P}}const A={calculatedDuration:b&&p||null,next:P=>{const B=_(P);if(b)f.done=P>=p;else{let z=P===0?E:0;w<1&&(z=P===0?Jn(E):oT(_,P,B));const L=Math.abs(z)<=s,Y=Math.abs(u-B)<=o;f.done=L&&Y}return f.value=f.done?u:B,f},toString:()=>{const P=Math.min(ty(A),Cf),B=rT(z=>A.next(P*z).value,P,30);return P+"ms "+B},toTransition:()=>{}};return A}Rf.applyToOptions=t=>{const e=yP(t,100,Rf);return t.ease=e.ease,t.duration=Jn(e.duration),t.type="keyframes",t};function Xp({keyframes:t,velocity:e=0,power:i=.8,timeConstant:s=325,bounceDamping:o=10,bounceStiffness:c=500,modifyTarget:u,min:f,max:m,restDelta:h=.5,restSpeed:y}){const p=t[0],v={done:!1,value:p},b=L=>f!==void 0&&L<f||m!==void 0&&L>m,E=L=>f===void 0?m:m===void 0||Math.abs(f-L)<Math.abs(m-L)?f:m;let w=i*e;const T=p+w,C=u===void 0?T:u(T);C!==T&&(w=C-p);const D=L=>-w*Math.exp(-L/s),_=L=>C+D(L),A=L=>{const Y=D(L),I=_(L);v.done=Math.abs(Y)<=h,v.value=v.done?C:I};let P,B;const z=L=>{b(v.value)&&(P=L,B=Rf({keyframes:[v.value,E(v.value)],velocity:oT(_,L,v.value),damping:o,stiffness:c,restDelta:h,restSpeed:y}))};return z(0),{calculatedDuration:null,next:L=>{let Y=!1;return!B&&P===void 0&&(Y=!0,A(L),z(L)),P!==void 0&&L>=P?B.next(L-P):(!Y&&A(L),v)}}}function CP(t,e,i){const s=[],o=i||Wi.mix||sT,c=t.length-1;for(let u=0;u<c;u++){let f=o(t[u],t[u+1]);if(e){const m=Array.isArray(e)?e[u]||Vn:e;f=hc(m,f)}s.push(f)}return s}function RP(t,e,{clamp:i=!0,ease:s,mixer:o}={}){const c=t.length;if(qg(c===e.length),c===1)return()=>e[0];if(c===2&&e[0]===e[1])return()=>e[1];const u=t[0]===t[1];t[0]>t[c-1]&&(t=[...t].reverse(),e=[...e].reverse());const f=CP(e,s,o),m=f.length,h=y=>{if(u&&y<t[0])return e[0];let p=0;if(m>1)for(;p<t.length-2&&!(y<t[p+1]);p++);const v=$l(t[p],t[p+1],y);return f[p](v)};return i?y=>h(Si(t[0],t[c-1],y)):h}function MP(t,e){const i=t[t.length-1];for(let s=1;s<=e;s++){const o=$l(0,e,s);t.push(ne(i,1,o))}}function AP(t){const e=[0];return MP(e,t.length-1),e}function _P(t,e){return t.map(i=>i*e)}function DP(t,e){return t.map(()=>e||XE).splice(0,t.length-1)}function Fl({duration:t=300,keyframes:e,times:i,ease:s="easeInOut"}){const o=IN(s)?s.map(LS):LS(s),c={done:!1,value:e[0]},u=_P(i&&i.length===e.length?i:AP(e),t),f=RP(u,e,{ease:Array.isArray(o)?o:DP(e,o)});return{calculatedDuration:t,next:m=>(c.value=f(m),c.done=m>=t,c)}}const OP=t=>t!==null;function ey(t,{repeat:e,repeatType:i="loop"},s,o=1){const c=t.filter(OP),f=o<0||e&&i!=="loop"&&e%2===1?0:c.length-1;return!f||s===void 0?c[f]:s}const NP={decay:Xp,inertia:Xp,tween:Fl,keyframes:Fl,spring:Rf};function lT(t){typeof t.type=="string"&&(t.type=NP[t.type])}class ny{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,i){return this.finished.then(e,i)}}const PP=t=>t/100;class iy extends ny{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var s,o;const{motionValue:i}=this.options;i&&i.updatedAt!==Ye.now()&&this.tick(Ye.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(o=(s=this.options).onStop)==null||o.call(s))},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;lT(e);const{type:i=Fl,repeat:s=0,repeatDelay:o=0,repeatType:c,velocity:u=0}=e;let{keyframes:f}=e;const m=i||Fl;m!==Fl&&typeof f[0]!="number"&&(this.mixKeyframes=hc(PP,sT(f[0],f[1])),f=[0,100]);const h=m({...e,keyframes:f});c==="mirror"&&(this.mirroredGenerator=m({...e,keyframes:[...f].reverse(),velocity:-u})),h.calculatedDuration===null&&(h.calculatedDuration=ty(h));const{calculatedDuration:y}=h;this.calculatedDuration=y,this.resolvedDuration=y+o,this.totalDuration=this.resolvedDuration*(s+1)-o,this.generator=h}updateTime(e){const i=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=i}tick(e,i=!1){const{generator:s,totalDuration:o,mixKeyframes:c,mirroredGenerator:u,resolvedDuration:f,calculatedDuration:m}=this;if(this.startTime===null)return s.next(0);const{delay:h=0,keyframes:y,repeat:p,repeatType:v,repeatDelay:b,type:E,onUpdate:w,finalKeyframe:T}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-o/this.speed,this.startTime)),i?this.currentTime=e:this.updateTime(e);const C=this.currentTime-h*(this.playbackSpeed>=0?1:-1),D=this.playbackSpeed>=0?C<0:C>o;this.currentTime=Math.max(C,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let _=this.currentTime,A=s;if(p){const L=Math.min(this.currentTime,o)/f;let Y=Math.floor(L),I=L%1;!I&&L>=1&&(I=1),I===1&&Y--,Y=Math.min(Y,p+1),!!(Y%2)&&(v==="reverse"?(I=1-I,b&&(I-=b/f)):v==="mirror"&&(A=u)),_=Si(0,1,I)*f}const P=D?{done:!1,value:y[0]}:A.next(_);c&&(P.value=c(P.value));let{done:B}=P;!D&&m!==null&&(B=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const z=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&B);return z&&E!==Xp&&(P.value=ey(y,this.options,T,this.speed)),w&&w(P.value),z&&this.finish(),P}then(e,i){return this.finished.then(e,i)}get duration(){return Bn(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+Bn(e)}get time(){return Bn(this.currentTime)}set time(e){var i;e=Jn(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),(i=this.driver)==null||i.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(Ye.now());const i=this.playbackSpeed!==e;this.playbackSpeed=e,i&&(this.time=Bn(this.currentTime))}play(){var o,c;if(this.isStopped)return;const{driver:e=gP,startTime:i}=this.options;this.driver||(this.driver=e(u=>this.tick(u))),(c=(o=this.options).onPlay)==null||c.call(o);const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=i??s),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(Ye.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var e,i;this.notifyFinished(),this.teardown(),this.state="finished",(i=(e=this.options).onComplete)==null||i.call(e)}cancel(){var e,i;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(i=(e=this.options).onCancel)==null||i.call(e)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){var i;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(i=this.driver)==null||i.stop(),e.observe(this)}}function LP(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const Ns=t=>t*180/Math.PI,Qp=t=>{const e=Ns(Math.atan2(t[1],t[0]));return $p(e)},jP={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Qp,rotateZ:Qp,skewX:t=>Ns(Math.atan(t[1])),skewY:t=>Ns(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},$p=t=>(t=t%360,t<0&&(t+=360),t),IS=Qp,HS=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),FS=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),kP={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:HS,scaleY:FS,scale:t=>(HS(t)+FS(t))/2,rotateX:t=>$p(Ns(Math.atan2(t[6],t[5]))),rotateY:t=>$p(Ns(Math.atan2(-t[2],t[0]))),rotateZ:IS,rotate:IS,skewX:t=>Ns(Math.atan(t[4])),skewY:t=>Ns(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function Zp(t){return t.includes("scale")?1:0}function Wp(t,e){if(!t||t==="none")return Zp(e);const i=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,o;if(i)s=kP,o=i;else{const f=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=jP,o=f}if(!o)return Zp(e);const c=s[e],u=o[1].split(",").map(BP);return typeof c=="function"?c(u):u[c]}const zP=(t,e)=>{const{transform:i="none"}=getComputedStyle(t);return Wp(i,e)};function BP(t){return parseFloat(t.trim())}const Mo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ao=new Set(Mo),GS=t=>t===Ro||t===vt,VP=new Set(["x","y","z"]),UP=Mo.filter(t=>!VP.has(t));function IP(t){const e=[];return UP.forEach(i=>{const s=t.getValue(i);s!==void 0&&(e.push([i,s.get()]),s.set(i.startsWith("scale")?1:0))}),e}const qa={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>Wp(e,"x"),y:(t,{transform:e})=>Wp(e,"y")};qa.translateX=qa.x;qa.translateY=qa.y;const Gs=new Set;let Jp=!1,tg=!1,eg=!1;function cT(){if(tg){const t=Array.from(Gs).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),i=new Map;e.forEach(s=>{const o=IP(s);o.length&&(i.set(s,o),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const o=i.get(s);o&&o.forEach(([c,u])=>{var f;(f=s.getValue(c))==null||f.set(u)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}tg=!1,Jp=!1,Gs.forEach(t=>t.complete(eg)),Gs.clear()}function uT(){Gs.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tg=!0)})}function HP(){eg=!0,uT(),cT(),eg=!1}class ay{constructor(e,i,s,o,c,u=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=i,this.name=s,this.motionValue=o,this.element=c,this.isAsync=u}scheduleResolve(){this.state="scheduled",this.isAsync?(Gs.add(this),Jp||(Jp=!0,$t.read(uT),$t.resolveKeyframes(cT))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:i,element:s,motionValue:o}=this;if(e[0]===null){const c=o==null?void 0:o.get(),u=e[e.length-1];if(c!==void 0)e[0]=c;else if(s&&i){const f=s.readValue(i,u);f!=null&&(e[0]=f)}e[0]===void 0&&(e[0]=u),o&&c===void 0&&o.set(e[0])}LP(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Gs.delete(this)}cancel(){this.state==="scheduled"&&(Gs.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const FP=t=>t.startsWith("--");function GP(t,e,i){FP(e)?t.style.setProperty(e,i):t.style[e]=i}const qP=Yg(()=>window.ScrollTimeline!==void 0),YP={};function KP(t,e){const i=Yg(t);return()=>YP[e]??i()}const fT=KP(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Bl=([t,e,i,s])=>`cubic-bezier(${t}, ${e}, ${i}, ${s})`,qS={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Bl([0,.65,.55,1]),circOut:Bl([.55,0,1,.45]),backIn:Bl([.31,.01,.66,-.59]),backOut:Bl([.33,1.53,.69,.99])};function dT(t,e){if(t)return typeof t=="function"?fT()?rT(t,e):"ease-out":QE(t)?Bl(t):Array.isArray(t)?t.map(i=>dT(i,e)||qS.easeOut):qS[t]}function XP(t,e,i,{delay:s=0,duration:o=300,repeat:c=0,repeatType:u="loop",ease:f="easeOut",times:m}={},h=void 0){const y={[e]:i};m&&(y.offset=m);const p=dT(f,o);Array.isArray(p)&&(y.easing=p);const v={delay:s,duration:o,easing:Array.isArray(p)?"linear":p,fill:"both",iterations:c+1,direction:u==="reverse"?"alternate":"normal"};return h&&(v.pseudoElement=h),t.animate(y,v)}function hT(t){return typeof t=="function"&&"applyToOptions"in t}function QP({type:t,...e}){return hT(t)&&fT()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class mT extends ny{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:i,name:s,keyframes:o,pseudoElement:c,allowFlatten:u=!1,finalKeyframe:f,onComplete:m}=e;this.isPseudoElement=!!c,this.allowFlatten=u,this.options=e,qg(typeof e.type!="string");const h=QP(e);this.animation=XP(i,s,o,h,c),h.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!c){const y=ey(o,this.options,f,this.speed);this.updateMotionValue?this.updateMotionValue(y):GP(i,s,y),this.animation.cancel()}m==null||m(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var e,i;(i=(e=this.animation).finish)==null||i.call(e)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var i,s,o;const e=(i=this.options)==null?void 0:i.element;!this.isPseudoElement&&(e!=null&&e.isConnected)&&((o=(s=this.animation).commitStyles)==null||o.call(s))}get duration(){var i,s;const e=((s=(i=this.animation.effect)==null?void 0:i.getComputedTiming)==null?void 0:s.call(i).duration)||0;return Bn(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+Bn(e)}get time(){return Bn(Number(this.animation.currentTime)||0)}set time(e){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Jn(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,observe:i}){var s;return this.allowFlatten&&((s=this.animation.effect)==null||s.updateTiming({easing:"linear"})),this.animation.onfinish=null,e&&qP()?(this.animation.timeline=e,Vn):i(this)}}const pT={anticipate:qE,backInOut:GE,circInOut:KE};function $P(t){return t in pT}function ZP(t){typeof t.ease=="string"&&$P(t.ease)&&(t.ease=pT[t.ease])}const Zm=10;class WP extends mT{constructor(e){ZP(e),lT(e),super(e),e.startTime!==void 0&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:i,onUpdate:s,onComplete:o,element:c,...u}=this.options;if(!i)return;if(e!==void 0){i.set(e);return}const f=new iy({...u,autoplay:!1}),m=Math.max(Zm,Ye.now()-this.startTime),h=Si(0,Zm,m-Zm);i.setWithVelocity(f.sample(Math.max(0,m-h)).value,f.sample(m).value,h),f.stop()}}const YS=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Qa.test(t)||t==="0")&&!t.startsWith("url("));function JP(t){const e=t[0];if(t.length===1)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}function tL(t,e,i,s){const o=t[0];if(o===null)return!1;if(e==="display"||e==="visibility")return!0;const c=t[t.length-1],u=YS(o,e),f=YS(c,e);return!u||!f?!1:JP(t)||(i==="spring"||hT(i))&&s}function ng(t){t.duration=0,t.type="keyframes"}const eL=new Set(["opacity","clipPath","filter","transform"]),nL=Yg(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function iL(t){var y;const{motionValue:e,name:i,repeatDelay:s,repeatType:o,damping:c,type:u}=t;if(!(((y=e==null?void 0:e.owner)==null?void 0:y.current)instanceof HTMLElement))return!1;const{onUpdate:m,transformTemplate:h}=e.owner.getProps();return nL()&&i&&eL.has(i)&&(i!=="transform"||!h)&&!m&&!s&&o!=="mirror"&&c!==0&&u!=="inertia"}const aL=40;class sL extends ny{constructor({autoplay:e=!0,delay:i=0,type:s="keyframes",repeat:o=0,repeatDelay:c=0,repeatType:u="loop",keyframes:f,name:m,motionValue:h,element:y,...p}){var E;super(),this.stop=()=>{var w,T;this._animation&&(this._animation.stop(),(w=this.stopTimeline)==null||w.call(this)),(T=this.keyframeResolver)==null||T.cancel()},this.createdAt=Ye.now();const v={autoplay:e,delay:i,type:s,repeat:o,repeatDelay:c,repeatType:u,name:m,motionValue:h,element:y,...p},b=(y==null?void 0:y.KeyframeResolver)||ay;this.keyframeResolver=new b(f,(w,T,C)=>this.onKeyframesResolved(w,T,v,!C),m,h,y),(E=this.keyframeResolver)==null||E.scheduleResolve()}onKeyframesResolved(e,i,s,o){var T,C;this.keyframeResolver=void 0;const{name:c,type:u,velocity:f,delay:m,isHandoff:h,onUpdate:y}=s;this.resolvedAt=Ye.now(),tL(e,c,u,f)||((Wi.instantAnimations||!m)&&(y==null||y(ey(e,s,i))),e[0]=e[e.length-1],ng(s),s.repeat=0);const v={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>aL?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:i,...s,keyframes:e},b=!h&&iL(v),E=(C=(T=v.motionValue)==null?void 0:T.owner)==null?void 0:C.current,w=b?new WP({...v,element:E}):new iy(v);w.finished.then(()=>{this.notifyFinished()}).catch(Vn),this.pendingTimeline&&(this.stopTimeline=w.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=w}get finished(){return this._animation?this.animation.finished:this._finished}then(e,i){return this.finished.finally(e).then(()=>{})}get animation(){var e;return this._animation||((e=this.keyframeResolver)==null||e.resume(),HP()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var e;this._animation&&this.animation.cancel(),(e=this.keyframeResolver)==null||e.cancel()}}function gT(t,e,i,s=0,o=1){const c=Array.from(t).sort((h,y)=>h.sortNodePosition(y)).indexOf(e),u=t.size,f=(u-1)*s;return typeof i=="function"?i(c,u):o===1?c*s:f-c*s}const rL=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function oL(t){const e=rL.exec(t);if(!e)return[,];const[,i,s,o]=e;return[`--${i??s}`,o]}function yT(t,e,i=1){const[s,o]=oL(t);if(!s)return;const c=window.getComputedStyle(e).getPropertyValue(s);if(c){const u=c.trim();return kE(u)?parseFloat(u):u}return $g(o)?yT(o,e,i+1):o}const lL={type:"spring",stiffness:500,damping:25,restSpeed:10},cL=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),uL={type:"keyframes",duration:.8},fL={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},dL=(t,{keyframes:e})=>e.length>2?uL:Ao.has(t)?t.startsWith("scale")?cL(e[1]):lL:fL,hL=t=>t!==null;function mL(t,{repeat:e,repeatType:i="loop"},s){const o=t.filter(hL),c=e&&i!=="loop"&&e%2===1?0:o.length-1;return o[c]}function vT(t,e){if(t!=null&&t.inherit&&e){const{inherit:i,...s}=t;return{...e,...s}}return t}function sy(t,e){const i=(t==null?void 0:t[e])??(t==null?void 0:t.default)??t;return i!==t?vT(i,t):i}function pL({when:t,delay:e,delayChildren:i,staggerChildren:s,staggerDirection:o,repeat:c,repeatType:u,repeatDelay:f,from:m,elapsed:h,...y}){return!!Object.keys(y).length}const ry=(t,e,i,s={},o,c)=>u=>{const f=sy(s,t)||{},m=f.delay||s.delay||0;let{elapsed:h=0}=s;h=h-Jn(m);const y={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...f,delay:-h,onUpdate:v=>{e.set(v),f.onUpdate&&f.onUpdate(v)},onComplete:()=>{u(),f.onComplete&&f.onComplete()},name:t,motionValue:e,element:c?void 0:o};pL(f)||Object.assign(y,dL(t,y)),y.duration&&(y.duration=Jn(y.duration)),y.repeatDelay&&(y.repeatDelay=Jn(y.repeatDelay)),y.from!==void 0&&(y.keyframes[0]=y.from);let p=!1;if((y.type===!1||y.duration===0&&!y.repeatDelay)&&(ng(y),y.delay===0&&(p=!0)),(Wi.instantAnimations||Wi.skipAnimations||o!=null&&o.shouldSkipAnimations)&&(p=!0,ng(y),y.delay=0),y.allowFlatten=!f.type&&!f.ease,p&&!c&&e.get()!==void 0){const v=mL(y.keyframes,f);if(v!==void 0){$t.update(()=>{y.onUpdate(v),y.onComplete()});return}}return f.isSync?new iy(y):new sL(y)};function KS(t){const e=[{},{}];return t==null||t.values.forEach((i,s)=>{e[0][s]=i.get(),e[1][s]=i.getVelocity()}),e}function oy(t,e,i,s){if(typeof e=="function"){const[o,c]=KS(s);e=e(i!==void 0?i:t.custom,o,c)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[o,c]=KS(s);e=e(i!==void 0?i:t.custom,o,c)}return e}function ao(t,e,i){const s=t.getProps();return oy(s,e,i!==void 0?i:s.custom,t)}const bT=new Set(["width","height","top","left","right","bottom",...Mo]),XS=30,gL=t=>!isNaN(parseFloat(t));class yL{constructor(e,i={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{var c;const o=Ye.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&((c=this.events.change)==null||c.notify(this.current),this.dependents))for(const u of this.dependents)u.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=i.owner}setCurrent(e){this.current=e,this.updatedAt=Ye.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=gL(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,i){this.events[e]||(this.events[e]=new Kg);const s=this.events[e].add(i);return e==="change"?()=>{s(),$t.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,i){this.passiveEffect=e,this.stopPassiveEffect=i}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,i,s){this.set(i),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,i=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,i&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var e;(e=this.events.change)==null||e.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=Ye.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>XS)return 0;const i=Math.min(this.updatedAt-this.prevUpdatedAt,XS);return VE(parseFloat(this.current)-parseFloat(this.prevFrameValue),i)}start(e){return this.stop(),new Promise(i=>{this.hasAnimated=!0,this.animation=e(i),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 e,i;(e=this.dependents)==null||e.clear(),(i=this.events.destroy)==null||i.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function wo(t,e){return new yL(t,e)}const ig=t=>Array.isArray(t);function vL(t,e,i){t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,wo(i))}function bL(t){return ig(t)?t[t.length-1]||0:t}function xL(t,e){const i=ao(t,e);let{transitionEnd:s={},transition:o={},...c}=i||{};c={...c,...s};for(const u in c){const f=bL(c[u]);vL(t,u,f)}}const He=t=>!!(t&&t.getVelocity);function SL(t){return!!(He(t)&&t.add)}function ag(t,e){const i=t.getValue("willChange");if(SL(i))return i.add(e);if(!i&&Wi.WillChange){const s=new Wi.WillChange("auto");t.addValue("willChange",s),s.add(e)}}function ly(t){return t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}const wL="framerAppearId",xT="data-"+ly(wL);function ST(t){return t.props[xT]}function EL({protectedKeys:t,needsAnimating:e},i){const s=t.hasOwnProperty(i)&&e[i]!==!0;return e[i]=!1,s}function wT(t,e,{delay:i=0,transitionOverride:s,type:o}={}){let{transition:c,transitionEnd:u,...f}=e;const m=t.getDefaultTransition();c=c?vT(c,m):m;const h=c==null?void 0:c.reduceMotion;s&&(c=s);const y=[],p=o&&t.animationState&&t.animationState.getState()[o];for(const v in f){const b=t.getValue(v,t.latestValues[v]??null),E=f[v];if(E===void 0||p&&EL(p,v))continue;const w={delay:i,...sy(c||{},v)},T=b.get();if(T!==void 0&&!b.isAnimating&&!Array.isArray(E)&&E===T&&!w.velocity)continue;let C=!1;if(window.MotionHandoffAnimation){const A=ST(t);if(A){const P=window.MotionHandoffAnimation(A,v,$t);P!==null&&(w.startTime=P,C=!0)}}ag(t,v);const D=h??t.shouldReduceMotion;b.start(ry(v,b,E,D&&bT.has(v)?{type:!1}:w,t,C));const _=b.animation;_&&y.push(_)}if(u){const v=()=>$t.update(()=>{u&&xL(t,u)});y.length?Promise.all(y).then(v):v()}return y}function sg(t,e,i={}){var m;const s=ao(t,e,i.type==="exit"?(m=t.presenceContext)==null?void 0:m.custom:void 0);let{transition:o=t.getDefaultTransition()||{}}=s||{};i.transitionOverride&&(o=i.transitionOverride);const c=s?()=>Promise.all(wT(t,s,i)):()=>Promise.resolve(),u=t.variantChildren&&t.variantChildren.size?(h=0)=>{const{delayChildren:y=0,staggerChildren:p,staggerDirection:v}=o;return TL(t,e,h,y,p,v,i)}:()=>Promise.resolve(),{when:f}=o;if(f){const[h,y]=f==="beforeChildren"?[c,u]:[u,c];return h().then(()=>y())}else return Promise.all([c(),u(i.delay)])}function TL(t,e,i=0,s=0,o=0,c=1,u){const f=[];for(const m of t.variantChildren)m.notify("AnimationStart",e),f.push(sg(m,e,{...u,delay:i+(typeof s=="function"?0:s)+gT(t.variantChildren,m,s,o,c)}).then(()=>m.notify("AnimationComplete",e)));return Promise.all(f)}function CL(t,e,i={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const o=e.map(c=>sg(t,c,i));s=Promise.all(o)}else if(typeof e=="string")s=sg(t,e,i);else{const o=typeof e=="function"?ao(t,e,i.custom):e;s=Promise.all(wT(t,o,i))}return s.then(()=>{t.notify("AnimationComplete",e)})}const RL={test:t=>t==="auto",parse:t=>t},ET=t=>e=>e.test(t),TT=[Ro,vt,vi,Oa,tP,JN,RL],QS=t=>TT.find(ET(t));function ML(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||BE(t):!0}const AL=new Set(["brightness","contrast","saturate","opacity"]);function _L(t){const[e,i]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=i.match(Zg)||[];if(!s)return t;const o=i.replace(s,"");let c=AL.has(e)?1:0;return s!==i&&(c*=100),e+"("+c+o+")"}const DL=/\b([a-z-]*)\(.*?\)/gu,rg={...Qa,getAnimatableNone:t=>{const e=t.match(DL);return e?e.map(_L).join(" "):t}},$S={...Ro,transform:Math.round},OL={rotate:Oa,rotateX:Oa,rotateY:Oa,rotateZ:Oa,scale:Fu,scaleX:Fu,scaleY:Fu,scaleZ:Fu,skew:Oa,skewX:Oa,skewY:Oa,distance:vt,translateX:vt,translateY:vt,translateZ:vt,x:vt,y:vt,z:vt,perspective:vt,transformPerspective:vt,opacity:Zl,originX:kS,originY:kS,originZ:vt},cy={borderWidth:vt,borderTopWidth:vt,borderRightWidth:vt,borderBottomWidth:vt,borderLeftWidth:vt,borderRadius:vt,borderTopLeftRadius:vt,borderTopRightRadius:vt,borderBottomRightRadius:vt,borderBottomLeftRadius:vt,width:vt,maxWidth:vt,height:vt,maxHeight:vt,top:vt,right:vt,bottom:vt,left:vt,inset:vt,insetBlock:vt,insetBlockStart:vt,insetBlockEnd:vt,insetInline:vt,insetInlineStart:vt,insetInlineEnd:vt,padding:vt,paddingTop:vt,paddingRight:vt,paddingBottom:vt,paddingLeft:vt,paddingBlock:vt,paddingBlockStart:vt,paddingBlockEnd:vt,paddingInline:vt,paddingInlineStart:vt,paddingInlineEnd:vt,margin:vt,marginTop:vt,marginRight:vt,marginBottom:vt,marginLeft:vt,marginBlock:vt,marginBlockStart:vt,marginBlockEnd:vt,marginInline:vt,marginInlineStart:vt,marginInlineEnd:vt,fontSize:vt,backgroundPositionX:vt,backgroundPositionY:vt,...OL,zIndex:$S,fillOpacity:Zl,strokeOpacity:Zl,numOctaves:$S},NL={...cy,color:ge,backgroundColor:ge,outlineColor:ge,fill:ge,stroke:ge,borderColor:ge,borderTopColor:ge,borderRightColor:ge,borderBottomColor:ge,borderLeftColor:ge,filter:rg,WebkitFilter:rg},CT=t=>NL[t];function RT(t,e){let i=CT(t);return i!==rg&&(i=Qa),i.getAnimatableNone?i.getAnimatableNone(e):void 0}const PL=new Set(["auto","none","0"]);function LL(t,e,i){let s=0,o;for(;s<t.length&&!o;){const c=t[s];typeof c=="string"&&!PL.has(c)&&Wl(c).values.length&&(o=t[s]),s++}if(o&&i)for(const c of e)t[c]=RT(i,o)}class jL extends ay{constructor(e,i,s,o,c){super(e,i,s,o,c,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:i,name:s}=this;if(!i||!i.current)return;super.readKeyframes();for(let y=0;y<e.length;y++){let p=e[y];if(typeof p=="string"&&(p=p.trim(),$g(p))){const v=yT(p,i.current);v!==void 0&&(e[y]=v),y===e.length-1&&(this.finalKeyframe=p)}}if(this.resolveNoneKeyframes(),!bT.has(s)||e.length!==2)return;const[o,c]=e,u=QS(o),f=QS(c),m=jS(o),h=jS(c);if(m!==h&&qa[s]){this.needsMeasurement=!0;return}if(u!==f)if(GS(u)&&GS(f))for(let y=0;y<e.length;y++){const p=e[y];typeof p=="string"&&(e[y]=parseFloat(p))}else qa[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:i}=this,s=[];for(let o=0;o<e.length;o++)(e[o]===null||ML(e[o]))&&s.push(o);s.length&&LL(e,s,i)}measureInitialState(){const{element:e,unresolvedKeyframes:i,name:s}=this;if(!e||!e.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=qa[s](e.measureViewportBox(),window.getComputedStyle(e.current)),i[0]=this.measuredOrigin;const o=i[i.length-1];o!==void 0&&e.getValue(s,o).jump(o,!1)}measureEndState(){var f;const{element:e,name:i,unresolvedKeyframes:s}=this;if(!e||!e.current)return;const o=e.getValue(i);o&&o.jump(this.measuredOrigin,!1);const c=s.length-1,u=s[c];s[c]=qa[i](e.measureViewportBox(),window.getComputedStyle(e.current)),u!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=u),(f=this.removedTransforms)!=null&&f.length&&this.removedTransforms.forEach(([m,h])=>{e.getValue(m).set(h)}),this.resolveNoneKeyframes()}}const kL=new Set(["opacity","clipPath","filter","transform"]);function MT(t,e,i){if(t==null)return[];if(t instanceof EventTarget)return[t];if(typeof t=="string"){let s=document;const o=(i==null?void 0:i[t])??s.querySelectorAll(t);return o?Array.from(o):[]}return Array.from(t).filter(s=>s!=null)}const AT=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function og(t){return zE(t)&&"offsetHeight"in t}const{schedule:uy}=$E(queueMicrotask,!1),$n={x:!1,y:!1};function _T(){return $n.x||$n.y}function zL(t){return t==="x"||t==="y"?$n[t]?null:($n[t]=!0,()=>{$n[t]=!1}):$n.x||$n.y?null:($n.x=$n.y=!0,()=>{$n.x=$n.y=!1})}function DT(t,e){const i=MT(t),s=new AbortController,o={passive:!0,...e,signal:s.signal};return[i,o,()=>s.abort()]}function BL(t){return!(t.pointerType==="touch"||_T())}function VL(t,e,i={}){const[s,o,c]=DT(t,i);return s.forEach(u=>{let f=!1,m=!1,h;const y=()=>{u.removeEventListener("pointerleave",E)},p=T=>{h&&(h(T),h=void 0),y()},v=T=>{f=!1,window.removeEventListener("pointerup",v),window.removeEventListener("pointercancel",v),m&&(m=!1,p(T))},b=()=>{f=!0,window.addEventListener("pointerup",v,o),window.addEventListener("pointercancel",v,o)},E=T=>{if(T.pointerType!=="touch"){if(f){m=!0;return}p(T)}},w=T=>{if(!BL(T))return;m=!1;const C=e(u,T);typeof C=="function"&&(h=C,u.addEventListener("pointerleave",E,o))};u.addEventListener("pointerenter",w,o),u.addEventListener("pointerdown",b,o)}),c}const OT=(t,e)=>e?t===e?!0:OT(t,e.parentElement):!1,fy=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,UL=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function IL(t){return UL.has(t.tagName)||t.isContentEditable===!0}const HL=new Set(["INPUT","SELECT","TEXTAREA"]);function FL(t){return HL.has(t.tagName)||t.isContentEditable===!0}const sf=new WeakSet;function ZS(t){return e=>{e.key==="Enter"&&t(e)}}function Wm(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const GL=(t,e)=>{const i=t.currentTarget;if(!i)return;const s=ZS(()=>{if(sf.has(i))return;Wm(i,"down");const o=ZS(()=>{Wm(i,"up")}),c=()=>Wm(i,"cancel");i.addEventListener("keyup",o,e),i.addEventListener("blur",c,e)});i.addEventListener("keydown",s,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",s),e)};function WS(t){return fy(t)&&!_T()}const JS=new WeakSet;function qL(t,e,i={}){const[s,o,c]=DT(t,i),u=f=>{const m=f.currentTarget;if(!WS(f)||JS.has(f))return;sf.add(m),i.stopPropagation&&JS.add(f);const h=e(m,f),y=(b,E)=>{window.removeEventListener("pointerup",p),window.removeEventListener("pointercancel",v),sf.has(m)&&sf.delete(m),WS(b)&&typeof h=="function"&&h(b,{success:E})},p=b=>{y(b,m===window||m===document||i.useGlobalTarget||OT(m,b.target))},v=b=>{y(b,!1)};window.addEventListener("pointerup",p,o),window.addEventListener("pointercancel",v,o)};return s.forEach(f=>{(i.useGlobalTarget?window:f).addEventListener("pointerdown",u,o),og(f)&&(f.addEventListener("focus",h=>GL(h,o)),!IL(f)&&!f.hasAttribute("tabindex")&&(f.tabIndex=0))}),c}function dy(t){return zE(t)&&"ownerSVGElement"in t}const rf=new WeakMap;let Na;const NT=(t,e,i)=>(s,o)=>o&&o[0]?o[0][t+"Size"]:dy(s)&&"getBBox"in s?s.getBBox()[e]:s[i],YL=NT("inline","width","offsetWidth"),KL=NT("block","height","offsetHeight");function XL({target:t,borderBoxSize:e}){var i;(i=rf.get(t))==null||i.forEach(s=>{s(t,{get width(){return YL(t,e)},get height(){return KL(t,e)}})})}function QL(t){t.forEach(XL)}function $L(){typeof ResizeObserver>"u"||(Na=new ResizeObserver(QL))}function ZL(t,e){Na||$L();const i=MT(t);return i.forEach(s=>{let o=rf.get(s);o||(o=new Set,rf.set(s,o)),o.add(e),Na==null||Na.observe(s)}),()=>{i.forEach(s=>{const o=rf.get(s);o==null||o.delete(e),o!=null&&o.size||Na==null||Na.unobserve(s)})}}const of=new Set;let Wr;function WL(){Wr=()=>{const t={get width(){return window.innerWidth},get height(){return window.innerHeight}};of.forEach(e=>e(t))},window.addEventListener("resize",Wr)}function JL(t){return of.add(t),Wr||WL(),()=>{of.delete(t),!of.size&&typeof Wr=="function"&&(window.removeEventListener("resize",Wr),Wr=void 0)}}function tw(t,e){return typeof t=="function"?JL(t):ZL(t,e)}function tj(t){return dy(t)&&t.tagName==="svg"}const ej=[...TT,ge,Qa],nj=t=>ej.find(ET(t)),ew=()=>({translate:0,scale:1,origin:0,originPoint:0}),Jr=()=>({x:ew(),y:ew()}),nw=()=>({min:0,max:0}),Se=()=>({x:nw(),y:nw()}),ij=new WeakMap;function Yf(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function Jl(t){return typeof t=="string"||Array.isArray(t)}const hy=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],my=["initial",...hy];function Kf(t){return Yf(t.animate)||my.some(e=>Jl(t[e]))}function PT(t){return!!(Kf(t)||t.variants)}function aj(t,e,i){for(const s in e){const o=e[s],c=i[s];if(He(o))t.addValue(s,o);else if(He(c))t.addValue(s,wo(o,{owner:t}));else if(c!==o)if(t.hasValue(s)){const u=t.getValue(s);u.liveStyle===!0?u.jump(o):u.hasAnimated||u.set(o)}else{const u=t.getStaticValue(s);t.addValue(s,wo(u!==void 0?u:o,{owner:t}))}}for(const s in i)e[s]===void 0&&t.removeValue(s);return e}const lg={current:null},LT={current:!1},sj=typeof window<"u";function rj(){if(LT.current=!0,!!sj)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>lg.current=t.matches;t.addEventListener("change",e),e()}else lg.current=!1}const iw=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Mf={};function jT(t){Mf=t}function oj(){return Mf}class lj{scrapeMotionValuesFromProps(e,i,s){return{}}constructor({parent:e,props:i,presenceContext:s,reducedMotionConfig:o,skipAnimations:c,blockInitialAnimation:u,visualState:f},m={}){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=ay,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 b=Ye.now();this.renderScheduledAt<b&&(this.renderScheduledAt=b,$t.render(this.render,!1,!0))};const{latestValues:h,renderState:y}=f;this.latestValues=h,this.baseTarget={...h},this.initialValues=i.initial?{...h}:{},this.renderState=y,this.parent=e,this.props=i,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=o,this.skipAnimationsConfig=c,this.options=m,this.blockInitialAnimation=!!u,this.isControllingVariants=Kf(i),this.isVariantNode=PT(i),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:p,...v}=this.scrapeMotionValuesFromProps(i,{},this);for(const b in v){const E=v[b];h[b]!==void 0&&He(E)&&E.set(h[b])}}mount(e){var i,s;if(this.hasBeenMounted)for(const o in this.initialValues)(i=this.values.get(o))==null||i.jump(this.initialValues[o]),this.latestValues[o]=this.initialValues[o];this.current=e,ij.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((o,c)=>this.bindToMotionValue(c,o)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(LT.current||rj(),this.shouldReduceMotion=lg.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(s=this.parent)==null||s.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var e;this.projection&&this.projection.unmount(),Xa(this.notifyUpdate),Xa(this.render),this.valueSubscriptions.forEach(i=>i()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(e=this.parent)==null||e.removeChild(this);for(const i in this.events)this.events[i].clear();for(const i in this.features){const s=this.features[i];s&&(s.unmount(),s.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,i){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),i.accelerate&&kL.has(e)&&this.current instanceof HTMLElement){const{factory:u,keyframes:f,times:m,ease:h,duration:y}=i.accelerate,p=new mT({element:this.current,name:e,keyframes:f,times:m,ease:h,duration:Jn(y)}),v=u(p);this.valueSubscriptions.set(e,()=>{v(),p.cancel()});return}const s=Ao.has(e);s&&this.onBindTransform&&this.onBindTransform();const o=i.on("change",u=>{this.latestValues[e]=u,this.props.onUpdate&&$t.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let c;typeof window<"u"&&window.MotionCheckAppearSync&&(c=window.MotionCheckAppearSync(this,e,i)),this.valueSubscriptions.set(e,()=>{o(),c&&c(),i.owner&&i.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in Mf){const i=Mf[e];if(!i)continue;const{isEnabled:s,Feature:o}=i;if(!this.features[e]&&o&&s(this.props)&&(this.features[e]=new o(this)),this.features[e]){const c=this.features[e];c.isMounted?c.update():(c.mount(),c.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Se()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,i){this.latestValues[e]=i}update(e,i){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=i;for(let s=0;s<iw.length;s++){const o=iw[s];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const c="on"+o,u=e[c];u&&(this.propEventSubscriptions[o]=this.on(o,u))}this.prevMotionValues=aj(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]: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(e){const i=this.getClosestVariantNode();if(i)return i.variantChildren&&i.variantChildren.add(e),()=>i.variantChildren.delete(e)}addValue(e,i){const s=this.values.get(e);i!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,i),this.values.set(e,i),this.latestValues[e]=i.get())}removeValue(e){this.values.delete(e);const i=this.valueSubscriptions.get(e);i&&(i(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,i){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&i!==void 0&&(s=wo(i===null?void 0:i,{owner:this}),this.addValue(e,s)),s}readValue(e,i){let s=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return s!=null&&(typeof s=="string"&&(kE(s)||BE(s))?s=parseFloat(s):!nj(s)&&Qa.test(i)&&(s=RT(e,i)),this.setBaseTarget(e,He(s)?s.get():s)),He(s)?s.get():s}setBaseTarget(e,i){this.baseTarget[e]=i}getBaseTarget(e){var c;const{initial:i}=this.props;let s;if(typeof i=="string"||typeof i=="object"){const u=oy(this.props,i,(c=this.presenceContext)==null?void 0:c.custom);u&&(s=u[e])}if(i&&s!==void 0)return s;const o=this.getBaseTargetFromProps(this.props,e);return o!==void 0&&!He(o)?o:this.initialValues[e]!==void 0&&s===void 0?void 0:this.baseTarget[e]}on(e,i){return this.events[e]||(this.events[e]=new Kg),this.events[e].add(i)}notify(e,...i){this.events[e]&&this.events[e].notify(...i)}scheduleRenderMicrotask(){uy.render(this.render)}}class kT extends lj{constructor(){super(...arguments),this.KeyframeResolver=jL}sortInstanceNodePosition(e,i){return e.compareDocumentPosition(i)&2?1:-1}getBaseTargetFromProps(e,i){const s=e.style;return s?s[i]:void 0}removeValueFromRenderState(e,{vars:i,style:s}){delete i[e],delete s[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;He(e)&&(this.childSubscription=e.on("change",i=>{this.current&&(this.current.textContent=`${i}`)}))}}class ts{constructor(e){this.isMounted=!1,this.node=e}update(){}}function zT({top:t,left:e,right:i,bottom:s}){return{x:{min:e,max:i},y:{min:t,max:s}}}function cj({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function uj(t,e){if(!e)return t;const i=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:s.y,right:s.x}}function Jm(t){return t===void 0||t===1}function cg({scale:t,scaleX:e,scaleY:i}){return!Jm(t)||!Jm(e)||!Jm(i)}function Ms(t){return cg(t)||BT(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function BT(t){return aw(t.x)||aw(t.y)}function aw(t){return t&&t!=="0%"}function Af(t,e,i){const s=t-i,o=e*s;return i+o}function sw(t,e,i,s,o){return o!==void 0&&(t=Af(t,o,s)),Af(t,i,s)+e}function ug(t,e=0,i=1,s,o){t.min=sw(t.min,e,i,s,o),t.max=sw(t.max,e,i,s,o)}function VT(t,{x:e,y:i}){ug(t.x,e.translate,e.scale,e.originPoint),ug(t.y,i.translate,i.scale,i.originPoint)}const rw=.999999999999,ow=1.0000000000001;function fj(t,e,i,s=!1){const o=i.length;if(!o)return;e.x=e.y=1;let c,u;for(let f=0;f<o;f++){c=i[f],u=c.projectionDelta;const{visualElement:m}=c.options;m&&m.props.style&&m.props.style.display==="contents"||(s&&c.options.layoutScroll&&c.scroll&&c!==c.root&&eo(t,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),u&&(e.x*=u.x.scale,e.y*=u.y.scale,VT(t,u)),s&&Ms(c.latestValues)&&eo(t,c.latestValues))}e.x<ow&&e.x>rw&&(e.x=1),e.y<ow&&e.y>rw&&(e.y=1)}function to(t,e){t.min=t.min+e,t.max=t.max+e}function lw(t,e,i,s,o=.5){const c=ne(t.min,t.max,o);ug(t,e,i,c,s)}function eo(t,e){lw(t.x,e.x,e.scaleX,e.scale,e.originX),lw(t.y,e.y,e.scaleY,e.scale,e.originY)}function UT(t,e){return zT(uj(t.getBoundingClientRect(),e))}function dj(t,e,i){const s=UT(t,i),{scroll:o}=e;return o&&(to(s.x,o.offset.x),to(s.y,o.offset.y)),s}const hj={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},mj=Mo.length;function pj(t,e,i){let s="",o=!0;for(let c=0;c<mj;c++){const u=Mo[c],f=t[u];if(f===void 0)continue;let m=!0;if(typeof f=="number")m=f===(u.startsWith("scale")?1:0);else{const h=parseFloat(f);m=u.startsWith("scale")?h===1:h===0}if(!m||i){const h=AT(f,cy[u]);if(!m){o=!1;const y=hj[u]||u;s+=`${y}(${h}) `}i&&(e[u]=h)}}return s=s.trim(),i?s=i(e,o?"":s):o&&(s="none"),s}function py(t,e,i){const{style:s,vars:o,transformOrigin:c}=t;let u=!1,f=!1;for(const m in e){const h=e[m];if(Ao.has(m)){u=!0;continue}else if(WE(m)){o[m]=h;continue}else{const y=AT(h,cy[m]);m.startsWith("origin")?(f=!0,c[m]=y):s[m]=y}}if(e.transform||(u||i?s.transform=pj(e,t.transform,i):s.transform&&(s.transform="none")),f){const{originX:m="50%",originY:h="50%",originZ:y=0}=c;s.transformOrigin=`${m} ${h} ${y}`}}function IT(t,{style:e,vars:i},s,o){const c=t.style;let u;for(u in e)c[u]=e[u];o==null||o.applyProjectionStyles(c,s);for(u in i)c.setProperty(u,i[u])}function cw(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Pl={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(vt.test(t))t=parseFloat(t);else return t;const i=cw(t,e.target.x),s=cw(t,e.target.y);return`${i}% ${s}%`}},gj={correct:(t,{treeScale:e,projectionDelta:i})=>{const s=t,o=Qa.parse(t);if(o.length>5)return s;const c=Qa.createTransformer(t),u=typeof o[0]!="number"?1:0,f=i.x.scale*e.x,m=i.y.scale*e.y;o[0+u]/=f,o[1+u]/=m;const h=ne(f,m,.5);return typeof o[2+u]=="number"&&(o[2+u]/=h),typeof o[3+u]=="number"&&(o[3+u]/=h),c(o)}},fg={borderRadius:{...Pl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Pl,borderTopRightRadius:Pl,borderBottomLeftRadius:Pl,borderBottomRightRadius:Pl,boxShadow:gj};function HT(t,{layout:e,layoutId:i}){return Ao.has(t)||t.startsWith("origin")||(e||i!==void 0)&&(!!fg[t]||t==="opacity")}function gy(t,e,i){var u;const s=t.style,o=e==null?void 0:e.style,c={};if(!s)return c;for(const f in s)(He(s[f])||o&&He(o[f])||HT(f,t)||((u=i==null?void 0:i.getValue(f))==null?void 0:u.liveStyle)!==void 0)&&(c[f]=s[f]);return c}function yj(t){return window.getComputedStyle(t)}class vj extends kT{constructor(){super(...arguments),this.type="html",this.renderInstance=IT}readValueFromInstance(e,i){var s;if(Ao.has(i))return(s=this.projection)!=null&&s.isProjecting?Zp(i):zP(e,i);{const o=yj(e),c=(WE(i)?o.getPropertyValue(i):o[i])||0;return typeof c=="string"?c.trim():c}}measureInstanceViewportBox(e,{transformPagePoint:i}){return UT(e,i)}build(e,i,s){py(e,i,s.transformTemplate)}scrapeMotionValuesFromProps(e,i,s){return gy(e,i,s)}}const bj={offset:"stroke-dashoffset",array:"stroke-dasharray"},xj={offset:"strokeDashoffset",array:"strokeDasharray"};function Sj(t,e,i=1,s=0,o=!0){t.pathLength=1;const c=o?bj:xj;t[c.offset]=`${-s}`,t[c.array]=`${e} ${i}`}const wj=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function FT(t,{attrX:e,attrY:i,attrScale:s,pathLength:o,pathSpacing:c=1,pathOffset:u=0,...f},m,h,y){if(py(t,f,h),m){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:p,style:v}=t;p.transform&&(v.transform=p.transform,delete p.transform),(v.transform||p.transformOrigin)&&(v.transformOrigin=p.transformOrigin??"50% 50%",delete p.transformOrigin),v.transform&&(v.transformBox=(y==null?void 0:y.transformBox)??"fill-box",delete p.transformBox);for(const b of wj)p[b]!==void 0&&(v[b]=p[b],delete p[b]);e!==void 0&&(p.x=e),i!==void 0&&(p.y=i),s!==void 0&&(p.scale=s),o!==void 0&&Sj(p,o,c,u,!1)}const GT=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"]),qT=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Ej(t,e,i,s){IT(t,e,void 0,s);for(const o in e.attrs)t.setAttribute(GT.has(o)?o:ly(o),e.attrs[o])}function YT(t,e,i){const s=gy(t,e,i);for(const o in t)if(He(t[o])||He(e[o])){const c=Mo.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;s[c]=t[o]}return s}class Tj extends kT{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Se}getBaseTargetFromProps(e,i){return e[i]}readValueFromInstance(e,i){if(Ao.has(i)){const s=CT(i);return s&&s.default||0}return i=GT.has(i)?i:ly(i),e.getAttribute(i)}scrapeMotionValuesFromProps(e,i,s){return YT(e,i,s)}build(e,i,s){FT(e,i,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(e,i,s,o){Ej(e,i,s,o)}mount(e){this.isSVGTag=qT(e.tagName),super.mount(e)}}const Cj=my.length;function KT(t){if(!t)return;if(!t.isControllingVariants){const i=t.parent?KT(t.parent)||{}:{};return t.props.initial!==void 0&&(i.initial=t.props.initial),i}const e={};for(let i=0;i<Cj;i++){const s=my[i],o=t.props[s];(Jl(o)||o===!1)&&(e[s]=o)}return e}function XT(t,e){if(!Array.isArray(e))return!1;const i=e.length;if(i!==t.length)return!1;for(let s=0;s<i;s++)if(e[s]!==t[s])return!1;return!0}const Rj=[...hy].reverse(),Mj=hy.length;function Aj(t){return e=>Promise.all(e.map(({animation:i,options:s})=>CL(t,i,s)))}function _j(t){let e=Aj(t),i=uw(),s=!0;const o=m=>(h,y)=>{var v;const p=ao(t,y,m==="exit"?(v=t.presenceContext)==null?void 0:v.custom:void 0);if(p){const{transition:b,transitionEnd:E,...w}=p;h={...h,...w,...E}}return h};function c(m){e=m(t)}function u(m){const{props:h}=t,y=KT(t.parent)||{},p=[],v=new Set;let b={},E=1/0;for(let T=0;T<Mj;T++){const C=Rj[T],D=i[C],_=h[C]!==void 0?h[C]:y[C],A=Jl(_),P=C===m?D.isActive:null;P===!1&&(E=T);let B=_===y[C]&&_!==h[C]&&A;if(B&&s&&t.manuallyAnimateOnMount&&(B=!1),D.protectedKeys={...b},!D.isActive&&P===null||!_&&!D.prevProp||Yf(_)||typeof _=="boolean")continue;if(C==="exit"&&D.isActive&&P!==!0){D.prevResolvedValues&&(b={...b,...D.prevResolvedValues});continue}const z=Dj(D.prevProp,_);let L=z||C===m&&D.isActive&&!B&&A||T>E&&A,Y=!1;const I=Array.isArray(_)?_:[_];let W=I.reduce(o(C),{});P===!1&&(W={});const{prevResolvedValues:at={}}=D,ut={...at,...W},ft=q=>{L=!0,v.has(q)&&(Y=!0,v.delete(q)),D.needsAnimating[q]=!0;const H=t.getValue(q);H&&(H.liveStyle=!1)};for(const q in ut){const H=W[q],et=at[q];if(b.hasOwnProperty(q))continue;let ct=!1;ig(H)&&ig(et)?ct=!XT(H,et):ct=H!==et,ct?H!=null?ft(q):v.add(q):H!==void 0&&v.has(q)?ft(q):D.protectedKeys[q]=!0}D.prevProp=_,D.prevResolvedValues=W,D.isActive&&(b={...b,...W}),s&&t.blockInitialAnimation&&(L=!1);const ot=B&&z;L&&(!ot||Y)&&p.push(...I.map(q=>{const H={type:C};if(typeof q=="string"&&s&&!ot&&t.manuallyAnimateOnMount&&t.parent){const{parent:et}=t,ct=ao(et,q);if(et.enteringChildren&&ct){const{delayChildren:O}=ct.transition||{};H.delay=gT(et.enteringChildren,t,O)}}return{animation:q,options:H}}))}if(v.size){const T={};if(typeof h.initial!="boolean"){const C=ao(t,Array.isArray(h.initial)?h.initial[0]:h.initial);C&&C.transition&&(T.transition=C.transition)}v.forEach(C=>{const D=t.getBaseTarget(C),_=t.getValue(C);_&&(_.liveStyle=!0),T[C]=D??null}),p.push({animation:T})}let w=!!p.length;return s&&(h.initial===!1||h.initial===h.animate)&&!t.manuallyAnimateOnMount&&(w=!1),s=!1,w?e(p):Promise.resolve()}function f(m,h){var p;if(i[m].isActive===h)return Promise.resolve();(p=t.variantChildren)==null||p.forEach(v=>{var b;return(b=v.animationState)==null?void 0:b.setActive(m,h)}),i[m].isActive=h;const y=u(m);for(const v in i)i[v].protectedKeys={};return y}return{animateChanges:u,setActive:f,setAnimateFunction:c,getState:()=>i,reset:()=>{i=uw()}}}function Dj(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!XT(e,t):!1}function Cs(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function uw(){return{animate:Cs(!0),whileInView:Cs(),whileHover:Cs(),whileTap:Cs(),whileDrag:Cs(),whileFocus:Cs(),exit:Cs()}}function fw(t,e){t.min=e.min,t.max=e.max}function Qn(t,e){fw(t.x,e.x),fw(t.y,e.y)}function dw(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}const QT=1e-4,Oj=1-QT,Nj=1+QT,$T=.01,Pj=0-$T,Lj=0+$T;function Ke(t){return t.max-t.min}function jj(t,e,i){return Math.abs(t-e)<=i}function hw(t,e,i,s=.5){t.origin=s,t.originPoint=ne(e.min,e.max,t.origin),t.scale=Ke(i)/Ke(e),t.translate=ne(i.min,i.max,t.origin)-t.originPoint,(t.scale>=Oj&&t.scale<=Nj||isNaN(t.scale))&&(t.scale=1),(t.translate>=Pj&&t.translate<=Lj||isNaN(t.translate))&&(t.translate=0)}function Gl(t,e,i,s){hw(t.x,e.x,i.x,s?s.originX:void 0),hw(t.y,e.y,i.y,s?s.originY:void 0)}function mw(t,e,i){t.min=i.min+e.min,t.max=t.min+Ke(e)}function kj(t,e,i){mw(t.x,e.x,i.x),mw(t.y,e.y,i.y)}function pw(t,e,i){t.min=e.min-i.min,t.max=t.min+Ke(e)}function _f(t,e,i){pw(t.x,e.x,i.x),pw(t.y,e.y,i.y)}function gw(t,e,i,s,o){return t-=e,t=Af(t,1/i,s),o!==void 0&&(t=Af(t,1/o,s)),t}function zj(t,e=0,i=1,s=.5,o,c=t,u=t){if(vi.test(e)&&(e=parseFloat(e),e=ne(u.min,u.max,e/100)-u.min),typeof e!="number")return;let f=ne(c.min,c.max,s);t===c&&(f-=e),t.min=gw(t.min,e,i,f,o),t.max=gw(t.max,e,i,f,o)}function yw(t,e,[i,s,o],c,u){zj(t,e[i],e[s],e[o],e.scale,c,u)}const Bj=["x","scaleX","originX"],Vj=["y","scaleY","originY"];function vw(t,e,i,s){yw(t.x,e,Bj,i?i.x:void 0,s?s.x:void 0),yw(t.y,e,Vj,i?i.y:void 0,s?s.y:void 0)}function bw(t){return t.translate===0&&t.scale===1}function ZT(t){return bw(t.x)&&bw(t.y)}function xw(t,e){return t.min===e.min&&t.max===e.max}function Uj(t,e){return xw(t.x,e.x)&&xw(t.y,e.y)}function Sw(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function WT(t,e){return Sw(t.x,e.x)&&Sw(t.y,e.y)}function ww(t){return Ke(t.x)/Ke(t.y)}function Ew(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}function di(t){return[t("x"),t("y")]}function Ij(t,e,i){let s="";const o=t.x.translate/e.x,c=t.y.translate/e.y,u=(i==null?void 0:i.z)||0;if((o||c||u)&&(s=`translate3d(${o}px, ${c}px, ${u}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),i){const{transformPerspective:h,rotate:y,rotateX:p,rotateY:v,skewX:b,skewY:E}=i;h&&(s=`perspective(${h}px) ${s}`),y&&(s+=`rotate(${y}deg) `),p&&(s+=`rotateX(${p}deg) `),v&&(s+=`rotateY(${v}deg) `),b&&(s+=`skewX(${b}deg) `),E&&(s+=`skewY(${E}deg) `)}const f=t.x.scale*e.x,m=t.y.scale*e.y;return(f!==1||m!==1)&&(s+=`scale(${f}, ${m})`),s||"none"}const JT=["TopLeft","TopRight","BottomLeft","BottomRight"],Hj=JT.length,Tw=t=>typeof t=="string"?parseFloat(t):t,Cw=t=>typeof t=="number"||vt.test(t);function Fj(t,e,i,s,o,c){o?(t.opacity=ne(0,i.opacity??1,Gj(s)),t.opacityExit=ne(e.opacity??1,0,qj(s))):c&&(t.opacity=ne(e.opacity??1,i.opacity??1,s));for(let u=0;u<Hj;u++){const f=`border${JT[u]}Radius`;let m=Rw(e,f),h=Rw(i,f);if(m===void 0&&h===void 0)continue;m||(m=0),h||(h=0),m===0||h===0||Cw(m)===Cw(h)?(t[f]=Math.max(ne(Tw(m),Tw(h),s),0),(vi.test(h)||vi.test(m))&&(t[f]+="%")):t[f]=h}(e.rotate||i.rotate)&&(t.rotate=ne(e.rotate||0,i.rotate||0,s))}function Rw(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const Gj=tC(0,.5,YE),qj=tC(.5,.95,Vn);function tC(t,e,i){return s=>s<t?0:s>e?1:i($l(t,e,s))}function Yj(t,e,i){const s=He(t)?t:wo(t);return s.start(ry("",s,e,i)),s.animation}function tc(t,e,i,s={passive:!0}){return t.addEventListener(e,i,s),()=>t.removeEventListener(e,i)}const Kj=(t,e)=>t.depth-e.depth;class Xj{constructor(){this.children=[],this.isDirty=!1}add(e){Gg(this.children,e),this.isDirty=!0}remove(e){Ef(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Kj),this.isDirty=!1,this.children.forEach(e)}}function Qj(t,e){const i=Ye.now(),s=({timestamp:o})=>{const c=o-i;c>=e&&(Xa(s),t(c-e))};return $t.setup(s,!0),()=>Xa(s)}function lf(t){return He(t)?t.get():t}class $j{constructor(){this.members=[]}add(e){Gg(this.members,e);for(let i=this.members.length-1;i>=0;i--){const s=this.members[i];if(s===e||s===this.lead||s===this.prevLead)continue;const o=s.instance;o&&o.isConnected===!1&&s.isPresent!==!1&&!s.snapshot&&Ef(this.members,s)}e.scheduleRender()}remove(e){if(Ef(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const i=this.members[this.members.length-1];i&&this.promote(i)}}relegate(e){const i=this.members.findIndex(o=>e===o);if(i===0)return!1;let s;for(let o=i;o>=0;o--){const c=this.members[o],u=c.instance;if(c.isPresent!==!1&&(!u||u.isConnected!==!1)){s=c;break}}return s?(this.promote(s),!0):!1}promote(e,i){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.instance&&s.scheduleRender(),e.scheduleRender();const o=s.options.layoutDependency,c=e.options.layoutDependency;if(!(o!==void 0&&c!==void 0&&o===c)){const m=s.instance;m&&m.isConnected===!1&&!s.snapshot||(e.resumeFrom=s,i&&(e.resumeFrom.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0))}const{crossfade:f}=e.options;f===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:i,resumingFrom:s}=e;i.onExitComplete&&i.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const cf={hasAnimatedSinceResize:!0,hasEverUpdated:!1},tp=["","X","Y","Z"],Zj=1e3;let Wj=0;function ep(t,e,i,s){const{latestValues:o}=e;o[t]&&(i[t]=o[t],e.setStaticValue(t,0),s&&(s[t]=0))}function eC(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const i=ST(e);if(window.MotionHasOptimisedAnimation(i,"transform")){const{layout:o,layoutId:c}=t.options;window.MotionCancelOptimisedAnimation(i,"transform",$t,!(o||c))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&eC(s)}function nC({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:s,resetTransform:o}){return class{constructor(u={},f=e==null?void 0:e()){this.id=Wj++,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(ek),this.nodes.forEach(sk),this.nodes.forEach(rk),this.nodes.forEach(nk)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=u,this.root=f?f.root||f:this,this.path=f?[...f.path,f]:[],this.parent=f,this.depth=f?f.depth+1:0;for(let m=0;m<this.path.length;m++)this.path[m].shouldResetTransform=!0;this.root===this&&(this.nodes=new Xj)}addEventListener(u,f){return this.eventHandlers.has(u)||this.eventHandlers.set(u,new Kg),this.eventHandlers.get(u).add(f)}notifyListeners(u,...f){const m=this.eventHandlers.get(u);m&&m.notify(...f)}hasListeners(u){return this.eventHandlers.has(u)}mount(u){if(this.instance)return;this.isSVG=dy(u)&&!tj(u),this.instance=u;const{layoutId:f,layout:m,visualElement:h}=this.options;if(h&&!h.current&&h.mount(u),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(m||f)&&(this.isLayoutDirty=!0),t){let y,p=0;const v=()=>this.root.updateBlockedByResize=!1;$t.read(()=>{p=window.innerWidth}),t(u,()=>{const b=window.innerWidth;b!==p&&(p=b,this.root.updateBlockedByResize=!0,y&&y(),y=Qj(v,250),cf.hasAnimatedSinceResize&&(cf.hasAnimatedSinceResize=!1,this.nodes.forEach(_w)))})}f&&this.root.registerSharedNode(f,this),this.options.animate!==!1&&h&&(f||m)&&this.addEventListener("didUpdate",({delta:y,hasLayoutChanged:p,hasRelativeLayoutChanged:v,layout:b})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const E=this.options.transition||h.getDefaultTransition()||fk,{onLayoutAnimationStart:w,onLayoutAnimationComplete:T}=h.getProps(),C=!this.targetLayout||!WT(this.targetLayout,b),D=!p&&v;if(this.options.layoutRoot||this.resumeFrom||D||p&&(C||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const _={...sy(E,"layout"),onPlay:w,onComplete:T};(h.shouldReduceMotion||this.options.layoutRoot)&&(_.delay=0,_.type=!1),this.startAnimation(_),this.setAnimationOrigin(y,D)}else p||_w(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=b})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const u=this.getStack();u&&u.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Xa(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(ok),this.animationId++)}getTransformTemplate(){const{visualElement:u}=this.options;return u&&u.getProps().transformTemplate}willUpdate(u=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&eC(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let y=0;y<this.path.length;y++){const p=this.path[y];p.shouldResetTransform=!0,p.updateScroll("snapshot"),p.options.layoutRoot&&p.willUpdate(!1)}const{layoutId:f,layout:m}=this.options;if(f===void 0&&!m)return;const h=this.getTransformTemplate();this.prevTransformTemplateValue=h?h(this.latestValues,""):void 0,this.updateSnapshot(),u&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Mw);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Aw);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(ak),this.nodes.forEach(Jj),this.nodes.forEach(tk)):this.nodes.forEach(Aw),this.clearAllSnapshots();const f=Ye.now();Le.delta=Si(0,1e3/60,f-Le.timestamp),Le.timestamp=f,Le.isProcessing=!0,Ym.update.process(Le),Ym.preRender.process(Le),Ym.render.process(Le),Le.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,uy.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ik),this.sharedNodes.forEach(lk)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,$t.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){$t.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Ke(this.snapshot.measuredBox.x)&&!Ke(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 m=0;m<this.path.length;m++)this.path[m].updateScroll();const u=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=Se(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:f}=this.options;f&&f.notify("LayoutMeasure",this.layout.layoutBox,u?u.layoutBox:void 0)}updateScroll(u="measure"){let f=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===u&&(f=!1),f&&this.instance){const m=s(this.instance);this.scroll={animationId:this.root.animationId,phase:u,isRoot:m,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:m}}}resetTransform(){if(!o)return;const u=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,f=this.projectionDelta&&!ZT(this.projectionDelta),m=this.getTransformTemplate(),h=m?m(this.latestValues,""):void 0,y=h!==this.prevTransformTemplateValue;u&&this.instance&&(f||Ms(this.latestValues)||y)&&(o(this.instance,h),this.shouldResetTransform=!1,this.scheduleRender())}measure(u=!0){const f=this.measurePageBox();let m=this.removeElementScroll(f);return u&&(m=this.removeTransform(m)),dk(m),{animationId:this.root.animationId,measuredBox:f,layoutBox:m,latestValues:{},source:this.id}}measurePageBox(){var h;const{visualElement:u}=this.options;if(!u)return Se();const f=u.measureViewportBox();if(!(((h=this.scroll)==null?void 0:h.wasRoot)||this.path.some(hk))){const{scroll:y}=this.root;y&&(to(f.x,y.offset.x),to(f.y,y.offset.y))}return f}removeElementScroll(u){var m;const f=Se();if(Qn(f,u),(m=this.scroll)!=null&&m.wasRoot)return f;for(let h=0;h<this.path.length;h++){const y=this.path[h],{scroll:p,options:v}=y;y!==this.root&&p&&v.layoutScroll&&(p.wasRoot&&Qn(f,u),to(f.x,p.offset.x),to(f.y,p.offset.y))}return f}applyTransform(u,f=!1){const m=Se();Qn(m,u);for(let h=0;h<this.path.length;h++){const y=this.path[h];!f&&y.options.layoutScroll&&y.scroll&&y!==y.root&&eo(m,{x:-y.scroll.offset.x,y:-y.scroll.offset.y}),Ms(y.latestValues)&&eo(m,y.latestValues)}return Ms(this.latestValues)&&eo(m,this.latestValues),m}removeTransform(u){const f=Se();Qn(f,u);for(let m=0;m<this.path.length;m++){const h=this.path[m];if(!h.instance||!Ms(h.latestValues))continue;cg(h.latestValues)&&h.updateSnapshot();const y=Se(),p=h.measurePageBox();Qn(y,p),vw(f,h.latestValues,h.snapshot?h.snapshot.layoutBox:void 0,y)}return Ms(this.latestValues)&&vw(f,this.latestValues),f}setTargetDelta(u){this.targetDelta=u,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(u){this.options={...this.options,...u,crossfade:u.crossfade!==void 0?u.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!==Le.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(u=!1){var b;const f=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=f.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=f.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=f.isSharedProjectionDirty);const m=!!this.resumingFrom||this!==f;if(!(u||m&&this.isSharedProjectionDirty||this.isProjectionDirty||(b=this.parent)!=null&&b.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:y,layoutId:p}=this.options;if(!this.layout||!(y||p))return;this.resolvedRelativeTargetAt=Le.timestamp;const v=this.getClosestProjectingParent();v&&this.linkedParentVersion!==v.layoutVersion&&!v.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(v&&v.layout?this.createRelativeTarget(v,this.layout.layoutBox,v.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Se(),this.targetWithTransforms=Se()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),kj(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Qn(this.target,this.layout.layoutBox),VT(this.target,this.targetDelta)):Qn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,v&&!!v.resumingFrom==!!this.resumingFrom&&!v.options.layoutScroll&&v.target&&this.animationProgress!==1?this.createRelativeTarget(v,this.target,v.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||cg(this.parent.latestValues)||BT(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(u,f,m){this.relativeParent=u,this.linkedParentVersion=u.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Se(),this.relativeTargetOrigin=Se(),_f(this.relativeTargetOrigin,f,m),Qn(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var E;const u=this.getLead(),f=!!this.resumingFrom||this!==u;let m=!0;if((this.isProjectionDirty||(E=this.parent)!=null&&E.isProjectionDirty)&&(m=!1),f&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(m=!1),this.resolvedRelativeTargetAt===Le.timestamp&&(m=!1),m)return;const{layout:h,layoutId:y}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||y))return;Qn(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,v=this.treeScale.y;fj(this.layoutCorrected,this.treeScale,this.path,f),u.layout&&!u.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(u.target=u.layout.layoutBox,u.targetWithTransforms=Se());const{target:b}=u;if(!b){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(dw(this.prevProjectionDelta.x,this.projectionDelta.x),dw(this.prevProjectionDelta.y,this.projectionDelta.y)),Gl(this.projectionDelta,this.layoutCorrected,b,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==v||!Ew(this.projectionDelta.x,this.prevProjectionDelta.x)||!Ew(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",b))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(u=!0){var f;if((f=this.options.visualElement)==null||f.scheduleRender(),u){const m=this.getStack();m&&m.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Jr(),this.projectionDelta=Jr(),this.projectionDeltaWithTransform=Jr()}setAnimationOrigin(u,f=!1){const m=this.snapshot,h=m?m.latestValues:{},y={...this.latestValues},p=Jr();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!f;const v=Se(),b=m?m.source:void 0,E=this.layout?this.layout.source:void 0,w=b!==E,T=this.getStack(),C=!T||T.members.length<=1,D=!!(w&&!C&&this.options.crossfade===!0&&!this.path.some(uk));this.animationProgress=0;let _;this.mixTargetDelta=A=>{const P=A/1e3;Dw(p.x,u.x,P),Dw(p.y,u.y,P),this.setTargetDelta(p),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(_f(v,this.layout.layoutBox,this.relativeParent.layout.layoutBox),ck(this.relativeTarget,this.relativeTargetOrigin,v,P),_&&Uj(this.relativeTarget,_)&&(this.isProjectionDirty=!1),_||(_=Se()),Qn(_,this.relativeTarget)),w&&(this.animationValues=y,Fj(y,h,this.latestValues,P,D,C)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(u){var f,m,h;this.notifyListeners("animationStart"),(f=this.currentAnimation)==null||f.stop(),(h=(m=this.resumingFrom)==null?void 0:m.currentAnimation)==null||h.stop(),this.pendingAnimation&&(Xa(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=$t.update(()=>{cf.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=wo(0)),this.currentAnimation=Yj(this.motionValue,[0,1e3],{...u,velocity:0,isSync:!0,onUpdate:y=>{this.mixTargetDelta(y),u.onUpdate&&u.onUpdate(y)},onStop:()=>{},onComplete:()=>{u.onComplete&&u.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 u=this.getStack();u&&u.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Zj),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const u=this.getLead();let{targetWithTransforms:f,target:m,layout:h,latestValues:y}=u;if(!(!f||!m||!h)){if(this!==u&&this.layout&&h&&iC(this.options.animationType,this.layout.layoutBox,h.layoutBox)){m=this.target||Se();const p=Ke(this.layout.layoutBox.x);m.x.min=u.target.x.min,m.x.max=m.x.min+p;const v=Ke(this.layout.layoutBox.y);m.y.min=u.target.y.min,m.y.max=m.y.min+v}Qn(f,m),eo(f,y),Gl(this.projectionDeltaWithTransform,this.layoutCorrected,f,y)}}registerSharedNode(u,f){this.sharedNodes.has(u)||this.sharedNodes.set(u,new $j),this.sharedNodes.get(u).add(f);const h=f.options.initialPromotionConfig;f.promote({transition:h?h.transition:void 0,preserveFollowOpacity:h&&h.shouldPreserveFollowOpacity?h.shouldPreserveFollowOpacity(f):void 0})}isLead(){const u=this.getStack();return u?u.lead===this:!0}getLead(){var f;const{layoutId:u}=this.options;return u?((f=this.getStack())==null?void 0:f.lead)||this:this}getPrevLead(){var f;const{layoutId:u}=this.options;return u?(f=this.getStack())==null?void 0:f.prevLead:void 0}getStack(){const{layoutId:u}=this.options;if(u)return this.root.sharedNodes.get(u)}promote({needsReset:u,transition:f,preserveFollowOpacity:m}={}){const h=this.getStack();h&&h.promote(this,m),u&&(this.projectionDelta=void 0,this.needsReset=!0),f&&this.setOptions({transition:f})}relegate(){const u=this.getStack();return u?u.relegate(this):!1}resetSkewAndRotation(){const{visualElement:u}=this.options;if(!u)return;let f=!1;const{latestValues:m}=u;if((m.z||m.rotate||m.rotateX||m.rotateY||m.rotateZ||m.skewX||m.skewY)&&(f=!0),!f)return;const h={};m.z&&ep("z",u,h,this.animationValues);for(let y=0;y<tp.length;y++)ep(`rotate${tp[y]}`,u,h,this.animationValues),ep(`skew${tp[y]}`,u,h,this.animationValues);u.render();for(const y in h)u.setStaticValue(y,h[y]),this.animationValues&&(this.animationValues[y]=h[y]);u.scheduleRender()}applyProjectionStyles(u,f){if(!this.instance||this.isSVG)return;if(!this.isVisible){u.visibility="hidden";return}const m=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,u.visibility="",u.opacity="",u.pointerEvents=lf(f==null?void 0:f.pointerEvents)||"",u.transform=m?m(this.latestValues,""):"none";return}const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){this.options.layoutId&&(u.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,u.pointerEvents=lf(f==null?void 0:f.pointerEvents)||""),this.hasProjected&&!Ms(this.latestValues)&&(u.transform=m?m({},""):"none",this.hasProjected=!1);return}u.visibility="";const y=h.animationValues||h.latestValues;this.applyTransformsToTarget();let p=Ij(this.projectionDeltaWithTransform,this.treeScale,y);m&&(p=m(y,p)),u.transform=p;const{x:v,y:b}=this.projectionDelta;u.transformOrigin=`${v.origin*100}% ${b.origin*100}% 0`,h.animationValues?u.opacity=h===this?y.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:y.opacityExit:u.opacity=h===this?y.opacity!==void 0?y.opacity:"":y.opacityExit!==void 0?y.opacityExit:0;for(const E in fg){if(y[E]===void 0)continue;const{correct:w,applyTo:T,isCSSVariable:C}=fg[E],D=p==="none"?y[E]:w(y[E],h);if(T){const _=T.length;for(let A=0;A<_;A++)u[T[A]]=D}else C?this.options.visualElement.renderState.vars[E]=D:u[E]=D}this.options.layoutId&&(u.pointerEvents=h===this?lf(f==null?void 0:f.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(u=>{var f;return(f=u.currentAnimation)==null?void 0:f.stop()}),this.root.nodes.forEach(Mw),this.root.sharedNodes.clear()}}}function Jj(t){t.updateLayout()}function tk(t){var i;const e=((i=t.resumeFrom)==null?void 0:i.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:o}=t.layout,{animationType:c}=t.options,u=e.source!==t.layout.source;c==="size"?di(p=>{const v=u?e.measuredBox[p]:e.layoutBox[p],b=Ke(v);v.min=s[p].min,v.max=v.min+b}):iC(c,e.layoutBox,s)&&di(p=>{const v=u?e.measuredBox[p]:e.layoutBox[p],b=Ke(s[p]);v.max=v.min+b,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[p].max=t.relativeTarget[p].min+b)});const f=Jr();Gl(f,s,e.layoutBox);const m=Jr();u?Gl(m,t.applyTransform(o,!0),e.measuredBox):Gl(m,s,e.layoutBox);const h=!ZT(f);let y=!1;if(!t.resumeFrom){const p=t.getClosestProjectingParent();if(p&&!p.resumeFrom){const{snapshot:v,layout:b}=p;if(v&&b){const E=Se();_f(E,e.layoutBox,v.layoutBox);const w=Se();_f(w,s,b.layoutBox),WT(E,w)||(y=!0),p.options.layoutRoot&&(t.relativeTarget=w,t.relativeTargetOrigin=E,t.relativeParent=p)}}}t.notifyListeners("didUpdate",{layout:s,snapshot:e,delta:m,layoutDelta:f,hasLayoutChanged:h,hasRelativeLayoutChanged:y})}else if(t.isLead()){const{onExitComplete:s}=t.options;s&&s()}t.options.transition=void 0}function ek(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function nk(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function ik(t){t.clearSnapshot()}function Mw(t){t.clearMeasurements()}function Aw(t){t.isLayoutDirty=!1}function ak(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function _w(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function sk(t){t.resolveTargetDelta()}function rk(t){t.calcProjection()}function ok(t){t.resetSkewAndRotation()}function lk(t){t.removeLeadSnapshot()}function Dw(t,e,i){t.translate=ne(e.translate,0,i),t.scale=ne(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function Ow(t,e,i,s){t.min=ne(e.min,i.min,s),t.max=ne(e.max,i.max,s)}function ck(t,e,i,s){Ow(t.x,e.x,i.x,s),Ow(t.y,e.y,i.y,s)}function uk(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const fk={duration:.45,ease:[.4,0,.1,1]},Nw=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Pw=Nw("applewebkit/")&&!Nw("chrome/")?Math.round:Vn;function Lw(t){t.min=Pw(t.min),t.max=Pw(t.max)}function dk(t){Lw(t.x),Lw(t.y)}function iC(t,e,i){return t==="position"||t==="preserve-aspect"&&!jj(ww(e),ww(i),.2)}function hk(t){var e;return t!==t.root&&((e=t.scroll)==null?void 0:e.wasRoot)}const mk=nC({attachResizeListener:(t,e)=>tc(t,"resize",e),measureScroll:()=>{var t,e;return{x:document.documentElement.scrollLeft||((t=document.body)==null?void 0:t.scrollLeft)||0,y:document.documentElement.scrollTop||((e=document.body)==null?void 0:e.scrollTop)||0}},checkIsScrollRoot:()=>!0}),np={current:void 0},aC=nC({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!np.current){const t=new mk({});t.mount(window),t.setOptions({layoutScroll:!0}),np.current=t}return np.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),yy=S.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function jw(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function pk(...t){return e=>{let i=!1;const s=t.map(o=>{const c=jw(o,e);return!i&&typeof c=="function"&&(i=!0),c});if(i)return()=>{for(let o=0;o<s.length;o++){const c=s[o];typeof c=="function"?c():jw(t[o],null)}}}}function gk(...t){return S.useCallback(pk(...t),t)}class yk extends S.Component{getSnapshotBeforeUpdate(e){const i=this.props.childRef.current;if(i&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const s=i.offsetParent,o=og(s)&&s.offsetWidth||0,c=og(s)&&s.offsetHeight||0,u=this.props.sizeRef.current;u.height=i.offsetHeight||0,u.width=i.offsetWidth||0,u.top=i.offsetTop,u.left=i.offsetLeft,u.right=o-u.width-u.left,u.bottom=c-u.height-u.top}return null}componentDidUpdate(){}render(){return this.props.children}}function vk({children:t,isPresent:e,anchorX:i,anchorY:s,root:o,pop:c}){var v;const u=S.useId(),f=S.useRef(null),m=S.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:h}=S.useContext(yy),y=((v=t.props)==null?void 0:v.ref)??(t==null?void 0:t.ref),p=gk(f,y);return S.useInsertionEffect(()=>{const{width:b,height:E,top:w,left:T,right:C,bottom:D}=m.current;if(e||c===!1||!f.current||!b||!E)return;const _=i==="left"?`left: ${T}`:`right: ${C}`,A=s==="bottom"?`bottom: ${D}`:`top: ${w}`;f.current.dataset.motionPopId=u;const P=document.createElement("style");h&&(P.nonce=h);const B=o??document.head;return B.appendChild(P),P.sheet&&P.sheet.insertRule(`
|
|
67
|
+
[data-motion-pop-id="${u}"] {
|
|
68
|
+
position: absolute !important;
|
|
69
|
+
width: ${b}px !important;
|
|
70
|
+
height: ${E}px !important;
|
|
71
|
+
${_}px !important;
|
|
72
|
+
${A}px !important;
|
|
73
|
+
}
|
|
74
|
+
`),()=>{B.contains(P)&&B.removeChild(P)}},[e]),R.jsx(yk,{isPresent:e,childRef:f,sizeRef:m,pop:c,children:c===!1?t:S.cloneElement(t,{ref:p})})}const bk=({children:t,initial:e,isPresent:i,onExitComplete:s,custom:o,presenceAffectsLayout:c,mode:u,anchorX:f,anchorY:m,root:h})=>{const y=Fg(xk),p=S.useId();let v=!0,b=S.useMemo(()=>(v=!1,{id:p,initial:e,isPresent:i,custom:o,onExitComplete:E=>{y.set(E,!0);for(const w of y.values())if(!w)return;s&&s()},register:E=>(y.set(E,!1),()=>y.delete(E))}),[i,y,s]);return c&&v&&(b={...b}),S.useMemo(()=>{y.forEach((E,w)=>y.set(w,!1))},[i]),S.useEffect(()=>{!i&&!y.size&&s&&s()},[i]),t=R.jsx(vk,{pop:u==="popLayout",isPresent:i,anchorX:f,anchorY:m,root:h,children:t}),R.jsx(qf.Provider,{value:b,children:t})};function xk(){return new Map}function sC(t=!0){const e=S.useContext(qf);if(e===null)return[!0,null];const{isPresent:i,onExitComplete:s,register:o}=e,c=S.useId();S.useEffect(()=>{if(t)return o(c)},[t]);const u=S.useCallback(()=>t&&s&&s(c),[c,s,t]);return!i&&s?[!1,u]:[!0]}const Gu=t=>t.key||"";function kw(t){const e=[];return S.Children.forEach(t,i=>{S.isValidElement(i)&&e.push(i)}),e}const Sk=({children:t,custom:e,initial:i=!0,onExitComplete:s,presenceAffectsLayout:o=!0,mode:c="sync",propagate:u=!1,anchorX:f="left",anchorY:m="top",root:h})=>{const[y,p]=sC(u),v=S.useMemo(()=>kw(t),[t]),b=u&&!y?[]:v.map(Gu),E=S.useRef(!0),w=S.useRef(v),T=Fg(()=>new Map),C=S.useRef(new Set),[D,_]=S.useState(v),[A,P]=S.useState(v);jE(()=>{E.current=!1,w.current=v;for(let L=0;L<A.length;L++){const Y=Gu(A[L]);b.includes(Y)?(T.delete(Y),C.current.delete(Y)):T.get(Y)!==!0&&T.set(Y,!1)}},[A,b.length,b.join("-")]);const B=[];if(v!==D){let L=[...v];for(let Y=0;Y<A.length;Y++){const I=A[Y],W=Gu(I);b.includes(W)||(L.splice(Y,0,I),B.push(I))}return c==="wait"&&B.length&&(L=B),P(kw(L)),_(v),null}const{forceRender:z}=S.useContext(Hg);return R.jsx(R.Fragment,{children:A.map(L=>{const Y=Gu(L),I=u&&!y?!1:v===A||b.includes(Y),W=()=>{if(C.current.has(Y))return;if(C.current.add(Y),T.has(Y))T.set(Y,!0);else return;let at=!0;T.forEach(ut=>{ut||(at=!1)}),at&&(z==null||z(),P(w.current),u&&(p==null||p()),s&&s())};return R.jsx(bk,{isPresent:I,initial:!E.current||i?void 0:!1,custom:e,presenceAffectsLayout:o,mode:c,root:h,onExitComplete:I?void 0:W,anchorX:f,anchorY:m,children:L},Y)})})},rC=S.createContext({strict:!1}),zw={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 Bw=!1;function wk(){if(Bw)return;const t={};for(const e in zw)t[e]={isEnabled:i=>zw[e].some(s=>!!i[s])};jT(t),Bw=!0}function oC(){return wk(),oj()}function Ek(t){const e=oC();for(const i in t)e[i]={...e[i],...t[i]};jT(e)}const Tk=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 Df(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Tk.has(t)}let lC=t=>!Df(t);function Ck(t){typeof t=="function"&&(lC=e=>e.startsWith("on")?!Df(e):t(e))}try{Ck(require("@emotion/is-prop-valid").default)}catch{}function Rk(t,e,i){const s={};for(const o in t)o==="values"&&typeof t.values=="object"||(lC(o)||i===!0&&Df(o)||!e&&!Df(o)||t.draggable&&o.startsWith("onDrag"))&&(s[o]=t[o]);return s}const Xf=S.createContext({});function Mk(t,e){if(Kf(t)){const{initial:i,animate:s}=t;return{initial:i===!1||Jl(i)?i:void 0,animate:Jl(s)?s:void 0}}return t.inherit!==!1?e:{}}function Ak(t){const{initial:e,animate:i}=Mk(t,S.useContext(Xf));return S.useMemo(()=>({initial:e,animate:i}),[Vw(e),Vw(i)])}function Vw(t){return Array.isArray(t)?t.join(" "):t}const vy=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function cC(t,e,i){for(const s in e)!He(e[s])&&!HT(s,i)&&(t[s]=e[s])}function _k({transformTemplate:t},e){return S.useMemo(()=>{const i=vy();return py(i,e,t),Object.assign({},i.vars,i.style)},[e])}function Dk(t,e){const i=t.style||{},s={};return cC(s,i,t),Object.assign(s,_k(t,e)),s}function Ok(t,e){const i={},s=Dk(t,e);return t.drag&&t.dragListener!==!1&&(i.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=s,i}const uC=()=>({...vy(),attrs:{}});function Nk(t,e,i,s){const o=S.useMemo(()=>{const c=uC();return FT(c,e,qT(s),t.transformTemplate,t.style),{...c.attrs,style:{...c.style}}},[e]);if(t.style){const c={};cC(c,t.style,t),o.style={...c,...o.style}}return o}const Pk=["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 by(t){return typeof t!="string"||t.includes("-")?!1:!!(Pk.indexOf(t)>-1||/[A-Z]/u.test(t))}function Lk(t,e,i,{latestValues:s},o,c=!1,u){const m=(u??by(t)?Nk:Ok)(e,s,o,t),h=Rk(e,typeof t=="string",c),y=t!==S.Fragment?{...h,...m,ref:i}:{},{children:p}=e,v=S.useMemo(()=>He(p)?p.get():p,[p]);return S.createElement(t,{...y,children:v})}function jk({scrapeMotionValuesFromProps:t,createRenderState:e},i,s,o){return{latestValues:kk(i,s,o,t),renderState:e()}}function kk(t,e,i,s){const o={},c=s(t,{});for(const v in c)o[v]=lf(c[v]);let{initial:u,animate:f}=t;const m=Kf(t),h=PT(t);e&&h&&!m&&t.inherit!==!1&&(u===void 0&&(u=e.initial),f===void 0&&(f=e.animate));let y=i?i.initial===!1:!1;y=y||u===!1;const p=y?f:u;if(p&&typeof p!="boolean"&&!Yf(p)){const v=Array.isArray(p)?p:[p];for(let b=0;b<v.length;b++){const E=oy(t,v[b]);if(E){const{transitionEnd:w,transition:T,...C}=E;for(const D in C){let _=C[D];if(Array.isArray(_)){const A=y?_.length-1:0;_=_[A]}_!==null&&(o[D]=_)}for(const D in w)o[D]=w[D]}}}return o}const fC=t=>(e,i)=>{const s=S.useContext(Xf),o=S.useContext(qf),c=()=>jk(t,e,s,o);return i?c():Fg(c)},zk=fC({scrapeMotionValuesFromProps:gy,createRenderState:vy}),Bk=fC({scrapeMotionValuesFromProps:YT,createRenderState:uC}),Vk=Symbol.for("motionComponentSymbol");function Uk(t,e,i){const s=S.useRef(i);S.useInsertionEffect(()=>{s.current=i});const o=S.useRef(null);return S.useCallback(c=>{var f;c&&((f=t.onMount)==null||f.call(t,c)),e&&(c?e.mount(c):e.unmount());const u=s.current;if(typeof u=="function")if(c){const m=u(c);typeof m=="function"&&(o.current=m)}else o.current?(o.current(),o.current=null):u(c);else u&&(u.current=c)},[e])}const dC=S.createContext({});function Xr(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Ik(t,e,i,s,o,c){var _,A;const{visualElement:u}=S.useContext(Xf),f=S.useContext(rC),m=S.useContext(qf),h=S.useContext(yy),y=h.reducedMotion,p=h.skipAnimations,v=S.useRef(null),b=S.useRef(!1);s=s||f.renderer,!v.current&&s&&(v.current=s(t,{visualState:e,parent:u,props:i,presenceContext:m,blockInitialAnimation:m?m.initial===!1:!1,reducedMotionConfig:y,skipAnimations:p,isSVG:c}),b.current&&v.current&&(v.current.manuallyAnimateOnMount=!0));const E=v.current,w=S.useContext(dC);E&&!E.projection&&o&&(E.type==="html"||E.type==="svg")&&Hk(v.current,i,o,w);const T=S.useRef(!1);S.useInsertionEffect(()=>{E&&T.current&&E.update(i,m)});const C=i[xT],D=S.useRef(!!C&&!((_=window.MotionHandoffIsComplete)!=null&&_.call(window,C))&&((A=window.MotionHasOptimisedAnimation)==null?void 0:A.call(window,C)));return jE(()=>{b.current=!0,E&&(T.current=!0,window.MotionIsMounted=!0,E.updateFeatures(),E.scheduleRenderMicrotask(),D.current&&E.animationState&&E.animationState.animateChanges())}),S.useEffect(()=>{E&&(!D.current&&E.animationState&&E.animationState.animateChanges(),D.current&&(queueMicrotask(()=>{var P;(P=window.MotionHandoffMarkAsComplete)==null||P.call(window,C)}),D.current=!1),E.enteringChildren=void 0)}),E}function Hk(t,e,i,s){const{layoutId:o,layout:c,drag:u,dragConstraints:f,layoutScroll:m,layoutRoot:h,layoutCrossfade:y}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:hC(t.parent)),t.projection.setOptions({layoutId:o,layout:c,alwaysMeasureLayout:!!u||f&&Xr(f),visualElement:t,animationType:typeof c=="string"?c:"both",initialPromotionConfig:s,crossfade:y,layoutScroll:m,layoutRoot:h})}function hC(t){if(t)return t.options.allowProjection!==!1?t.projection:hC(t.parent)}function ip(t,{forwardMotionProps:e=!1,type:i}={},s,o){s&&Ek(s);const c=i?i==="svg":by(t),u=c?Bk:zk;function f(h,y){let p;const v={...S.useContext(yy),...h,layoutId:Fk(h)},{isStatic:b}=v,E=Ak(h),w=u(h,b);if(!b&&LE){Gk();const T=qk(v);p=T.MeasureLayout,E.visualElement=Ik(t,w,v,o,T.ProjectionNode,c)}return R.jsxs(Xf.Provider,{value:E,children:[p&&E.visualElement?R.jsx(p,{visualElement:E.visualElement,...v}):null,Lk(t,h,Uk(w,E.visualElement,y),w,b,e,c)]})}f.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const m=S.forwardRef(f);return m[Vk]=t,m}function Fk({layoutId:t}){const e=S.useContext(Hg).id;return e&&t!==void 0?e+"-"+t:t}function Gk(t,e){S.useContext(rC).strict}function qk(t){const e=oC(),{drag:i,layout:s}=e;if(!i&&!s)return{};const o={...i,...s};return{MeasureLayout:i!=null&&i.isEnabled(t)||s!=null&&s.isEnabled(t)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}function Yk(t,e){if(typeof Proxy>"u")return ip;const i=new Map,s=(c,u)=>ip(c,u,t,e),o=(c,u)=>s(c,u);return new Proxy(o,{get:(c,u)=>u==="create"?s:(i.has(u)||i.set(u,ip(u,void 0,t,e)),i.get(u))})}const Kk=(t,e)=>e.isSVG??by(t)?new Tj(e):new vj(e,{allowProjection:t!==S.Fragment});class Xk extends ts{constructor(e){super(e),e.animationState||(e.animationState=_j(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Yf(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:i}=this.node.prevProps||{};e!==i&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)==null||e.call(this)}}let Qk=0;class $k extends ts{constructor(){super(...arguments),this.id=Qk++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:i}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;const o=this.node.animationState.setActive("exit",!e);i&&!e&&o.then(()=>{i(this.id)})}mount(){const{register:e,onExitComplete:i}=this.node.presenceContext||{};i&&i(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const Zk={animation:{Feature:Xk},exit:{Feature:$k}};function gc(t){return{point:{x:t.pageX,y:t.pageY}}}const Wk=t=>e=>fy(e)&&t(e,gc(e));function ql(t,e,i,s){return tc(t,e,Wk(i),s)}const mC=({current:t})=>t?t.ownerDocument.defaultView:null,Uw=(t,e)=>Math.abs(t-e);function Jk(t,e){const i=Uw(t.x,e.x),s=Uw(t.y,e.y);return Math.sqrt(i**2+s**2)}const Iw=new Set(["auto","scroll"]);class pC{constructor(e,i,{transformPagePoint:s,contextWindow:o=window,dragSnapToOrigin:c=!1,distanceThreshold:u=3,element:f}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=b=>{this.handleScroll(b.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=sp(this.lastMoveEventInfo,this.history),E=this.startEvent!==null,w=Jk(b.offset,{x:0,y:0})>=this.distanceThreshold;if(!E&&!w)return;const{point:T}=b,{timestamp:C}=Le;this.history.push({...T,timestamp:C});const{onStart:D,onMove:_}=this.handlers;E||(D&&D(this.lastMoveEvent,b),this.startEvent=this.lastMoveEvent),_&&_(this.lastMoveEvent,b)},this.handlePointerMove=(b,E)=>{this.lastMoveEvent=b,this.lastMoveEventInfo=ap(E,this.transformPagePoint),$t.update(this.updatePoint,!0)},this.handlePointerUp=(b,E)=>{this.end();const{onEnd:w,onSessionEnd:T,resumeAnimation:C}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&C&&C(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const D=sp(b.type==="pointercancel"?this.lastMoveEventInfo:ap(E,this.transformPagePoint),this.history);this.startEvent&&w&&w(b,D),T&&T(b,D)},!fy(e))return;this.dragSnapToOrigin=c,this.handlers=i,this.transformPagePoint=s,this.distanceThreshold=u,this.contextWindow=o||window;const m=gc(e),h=ap(m,this.transformPagePoint),{point:y}=h,{timestamp:p}=Le;this.history=[{...y,timestamp:p}];const{onSessionStart:v}=i;v&&v(e,sp(h,this.history)),this.removeListeners=hc(ql(this.contextWindow,"pointermove",this.handlePointerMove),ql(this.contextWindow,"pointerup",this.handlePointerUp),ql(this.contextWindow,"pointercancel",this.handlePointerUp)),f&&this.startScrollTracking(f)}startScrollTracking(e){let i=e.parentElement;for(;i;){const s=getComputedStyle(i);(Iw.has(s.overflowX)||Iw.has(s.overflowY))&&this.scrollPositions.set(i,{x:i.scrollLeft,y:i.scrollTop}),i=i.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){const i=this.scrollPositions.get(e);if(!i)return;const s=e===window,o=s?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},c={x:o.x-i.x,y:o.y-i.y};c.x===0&&c.y===0||(s?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=c.x,this.lastMoveEventInfo.point.y+=c.y):this.history.length>0&&(this.history[0].x-=c.x,this.history[0].y-=c.y),this.scrollPositions.set(e,o),$t.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Xa(this.updatePoint)}}function ap(t,e){return e?{point:e(t.point)}:t}function Hw(t,e){return{x:t.x-e.x,y:t.y-e.y}}function sp({point:t},e){return{point:t,delta:Hw(t,gC(e)),offset:Hw(t,t3(e)),velocity:e3(e,.1)}}function t3(t){return t[0]}function gC(t){return t[t.length-1]}function e3(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,s=null;const o=gC(t);for(;i>=0&&(s=t[i],!(o.timestamp-s.timestamp>Jn(e)));)i--;if(!s)return{x:0,y:0};s===t[0]&&t.length>2&&o.timestamp-s.timestamp>Jn(e)*2&&(s=t[1]);const c=Bn(o.timestamp-s.timestamp);if(c===0)return{x:0,y:0};const u={x:(o.x-s.x)/c,y:(o.y-s.y)/c};return u.x===1/0&&(u.x=0),u.y===1/0&&(u.y=0),u}function n3(t,{min:e,max:i},s){return e!==void 0&&t<e?t=s?ne(e,t,s.min):Math.max(t,e):i!==void 0&&t>i&&(t=s?ne(i,t,s.max):Math.min(t,i)),t}function Fw(t,e,i){return{min:e!==void 0?t.min+e:void 0,max:i!==void 0?t.max+i-(t.max-t.min):void 0}}function i3(t,{top:e,left:i,bottom:s,right:o}){return{x:Fw(t.x,i,o),y:Fw(t.y,e,s)}}function Gw(t,e){let i=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,s]=[s,i]),{min:i,max:s}}function a3(t,e){return{x:Gw(t.x,e.x),y:Gw(t.y,e.y)}}function s3(t,e){let i=.5;const s=Ke(t),o=Ke(e);return o>s?i=$l(e.min,e.max-s,t.min):s>o&&(i=$l(t.min,t.max-o,e.min)),Si(0,1,i)}function r3(t,e){const i={};return e.min!==void 0&&(i.min=e.min-t.min),e.max!==void 0&&(i.max=e.max-t.min),i}const dg=.35;function o3(t=dg){return t===!1?t=0:t===!0&&(t=dg),{x:qw(t,"left","right"),y:qw(t,"top","bottom")}}function qw(t,e,i){return{min:Yw(t,e),max:Yw(t,i)}}function Yw(t,e){return typeof t=="number"?t:t[e]||0}const l3=new WeakMap;class c3{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Se(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:i=!1,distanceThreshold:s}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const c=p=>{i&&this.snapToCursor(gc(p).point),this.stopAnimation()},u=(p,v)=>{const{drag:b,dragPropagation:E,onDragStart:w}=this.getProps();if(b&&!E&&(this.openDragLock&&this.openDragLock(),this.openDragLock=zL(b),!this.openDragLock))return;this.latestPointerEvent=p,this.latestPanInfo=v,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),di(C=>{let D=this.getAxisMotionValue(C).get()||0;if(vi.test(D)){const{projection:_}=this.visualElement;if(_&&_.layout){const A=_.layout.layoutBox[C];A&&(D=Ke(A)*(parseFloat(D)/100))}}this.originPoint[C]=D}),w&&$t.update(()=>w(p,v),!1,!0),ag(this.visualElement,"transform");const{animationState:T}=this.visualElement;T&&T.setActive("whileDrag",!0)},f=(p,v)=>{this.latestPointerEvent=p,this.latestPanInfo=v;const{dragPropagation:b,dragDirectionLock:E,onDirectionLock:w,onDrag:T}=this.getProps();if(!b&&!this.openDragLock)return;const{offset:C}=v;if(E&&this.currentDirection===null){this.currentDirection=f3(C),this.currentDirection!==null&&w&&w(this.currentDirection);return}this.updateAxis("x",v.point,C),this.updateAxis("y",v.point,C),this.visualElement.render(),T&&$t.update(()=>T(p,v),!1,!0)},m=(p,v)=>{this.latestPointerEvent=p,this.latestPanInfo=v,this.stop(p,v),this.latestPointerEvent=null,this.latestPanInfo=null},h=()=>{const{dragSnapToOrigin:p}=this.getProps();(p||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:y}=this.getProps();this.panSession=new pC(e,{onSessionStart:c,onStart:u,onMove:f,onSessionEnd:m,resumeAnimation:h},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:y,distanceThreshold:s,contextWindow:mC(this.visualElement),element:this.visualElement.current})}stop(e,i){const s=e||this.latestPointerEvent,o=i||this.latestPanInfo,c=this.isDragging;if(this.cancel(),!c||!o||!s)return;const{velocity:u}=o;this.startAnimation(u);const{onDragEnd:f}=this.getProps();f&&$t.postRender(()=>f(s,o))}cancel(){this.isDragging=!1;const{projection:e,animationState:i}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),i&&i.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,i,s){const{drag:o}=this.getProps();if(!s||!qu(e,o,this.currentDirection))return;const c=this.getAxisMotionValue(e);let u=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(u=n3(u,this.constraints[e],this.elastic[e])),c.set(u)}resolveConstraints(){var c;const{dragConstraints:e,dragElastic:i}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(c=this.visualElement.projection)==null?void 0:c.layout,o=this.constraints;e&&Xr(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=i3(s.layoutBox,e):this.constraints=!1,this.elastic=o3(i),o!==this.constraints&&!Xr(e)&&s&&this.constraints&&!this.hasMutatedConstraints&&di(u=>{this.constraints!==!1&&this.getAxisMotionValue(u)&&(this.constraints[u]=r3(s.layoutBox[u],this.constraints[u]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!Xr(e))return!1;const s=e.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const c=dj(s,o.root,this.visualElement.getTransformPagePoint());let u=a3(o.layout.layoutBox,c);if(i){const f=i(cj(u));this.hasMutatedConstraints=!!f,f&&(u=zT(f))}return u}startAnimation(e){const{drag:i,dragMomentum:s,dragElastic:o,dragTransition:c,dragSnapToOrigin:u,onDragTransitionEnd:f}=this.getProps(),m=this.constraints||{},h=di(y=>{if(!qu(y,i,this.currentDirection))return;let p=m&&m[y]||{};u&&(p={min:0,max:0});const v=o?200:1e6,b=o?40:1e7,E={type:"inertia",velocity:s?e[y]:0,bounceStiffness:v,bounceDamping:b,timeConstant:750,restDelta:1,restSpeed:10,...c,...p};return this.startAxisValueAnimation(y,E)});return Promise.all(h).then(f)}startAxisValueAnimation(e,i){const s=this.getAxisMotionValue(e);return ag(this.visualElement,e),s.start(ry(e,s,0,i,this.visualElement,!1))}stopAnimation(){di(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const i=`_drag${e.toUpperCase()}`,s=this.visualElement.getProps(),o=s[i];return o||this.visualElement.getValue(e,(s.initial?s.initial[e]:void 0)||0)}snapToCursor(e){di(i=>{const{drag:s}=this.getProps();if(!qu(i,s,this.currentDirection))return;const{projection:o}=this.visualElement,c=this.getAxisMotionValue(i);if(o&&o.layout){const{min:u,max:f}=o.layout.layoutBox[i],m=c.get()||0;c.set(e[i]-ne(u,f,.5)+m)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:i}=this.getProps(),{projection:s}=this.visualElement;if(!Xr(i)||!s||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};di(u=>{const f=this.getAxisMotionValue(u);if(f&&this.constraints!==!1){const m=f.get();o[u]=s3({min:m,max:m},this.constraints[u])}});const{transformTemplate:c}=this.visualElement.getProps();this.visualElement.current.style.transform=c?c({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.constraints=!1,this.resolveConstraints(),di(u=>{if(!qu(u,e,null))return;const f=this.getAxisMotionValue(u),{min:m,max:h}=this.constraints[u];f.set(ne(m,h,o[u]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;l3.set(this.visualElement,this);const e=this.visualElement.current,i=ql(e,"pointerdown",h=>{const{drag:y,dragListener:p=!0}=this.getProps(),v=h.target,b=v!==e&&FL(v);y&&p&&!b&&this.start(h)});let s;const o=()=>{const{dragConstraints:h}=this.getProps();Xr(h)&&h.current&&(this.constraints=this.resolveRefConstraints(),s||(s=u3(e,h.current,()=>this.scalePositionWithinConstraints())))},{projection:c}=this.visualElement,u=c.addEventListener("measure",o);c&&!c.layout&&(c.root&&c.root.updateScroll(),c.updateLayout()),$t.read(o);const f=tc(window,"resize",()=>this.scalePositionWithinConstraints()),m=c.addEventListener("didUpdate",(({delta:h,hasLayoutChanged:y})=>{this.isDragging&&y&&(di(p=>{const v=this.getAxisMotionValue(p);v&&(this.originPoint[p]+=h[p].translate,v.set(v.get()+h[p].translate))}),this.visualElement.render())}));return()=>{f(),i(),u(),m&&m(),s&&s()}}getProps(){const e=this.visualElement.getProps(),{drag:i=!1,dragDirectionLock:s=!1,dragPropagation:o=!1,dragConstraints:c=!1,dragElastic:u=dg,dragMomentum:f=!0}=e;return{...e,drag:i,dragDirectionLock:s,dragPropagation:o,dragConstraints:c,dragElastic:u,dragMomentum:f}}}function Kw(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function u3(t,e,i){const s=tw(t,Kw(i)),o=tw(e,Kw(i));return()=>{s(),o()}}function qu(t,e,i){return(e===!0||e===t)&&(i===null||i===t)}function f3(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}class d3 extends ts{constructor(e){super(e),this.removeGroupControls=Vn,this.removeListeners=Vn,this.controls=new c3(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Vn}update(){const{dragControls:e}=this.node.getProps(),{dragControls:i}=this.node.prevProps||{};e!==i&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const rp=t=>(e,i)=>{t&&$t.update(()=>t(e,i),!1,!0)};class h3 extends ts{constructor(){super(...arguments),this.removePointerDownListener=Vn}onPointerDown(e){this.session=new pC(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:mC(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:i,onPan:s,onPanEnd:o}=this.node.getProps();return{onSessionStart:rp(e),onStart:rp(i),onMove:rp(s),onEnd:(c,u)=>{delete this.session,o&&$t.postRender(()=>o(c,u))}}}mount(){this.removePointerDownListener=ql(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let op=!1;class m3 extends S.Component{componentDidMount(){const{visualElement:e,layoutGroup:i,switchLayoutGroup:s,layoutId:o}=this.props,{projection:c}=e;c&&(i.group&&i.group.add(c),s&&s.register&&o&&s.register(c),op&&c.root.didUpdate(),c.addEventListener("animationComplete",()=>{this.safeToRemove()}),c.setOptions({...c.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),cf.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:i,visualElement:s,drag:o,isPresent:c}=this.props,{projection:u}=s;return u&&(u.isPresent=c,e.layoutDependency!==i&&u.setOptions({...u.options,layoutDependency:i}),op=!0,o||e.layoutDependency!==i||i===void 0||e.isPresent!==c?u.willUpdate():this.safeToRemove(),e.isPresent!==c&&(c?u.promote():u.relegate()||$t.postRender(()=>{const f=u.getStack();(!f||!f.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),uy.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:i,switchLayoutGroup:s}=this.props,{projection:o}=e;op=!0,o&&(o.scheduleCheckAfterUnmount(),i&&i.group&&i.group.remove(o),s&&s.deregister&&s.deregister(o))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function yC(t){const[e,i]=sC(),s=S.useContext(Hg);return R.jsx(m3,{...t,layoutGroup:s,switchLayoutGroup:S.useContext(dC),isPresent:e,safeToRemove:i})}const p3={pan:{Feature:h3},drag:{Feature:d3,ProjectionNode:aC,MeasureLayout:yC}};function Xw(t,e,i){const{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",i==="Start");const o="onHover"+i,c=s[o];c&&$t.postRender(()=>c(e,gc(e)))}class g3 extends ts{mount(){const{current:e}=this.node;e&&(this.unmount=VL(e,(i,s)=>(Xw(this.node,s,"Start"),o=>Xw(this.node,o,"End"))))}unmount(){}}class y3 extends ts{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!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=hc(tc(this.node.current,"focus",()=>this.onFocus()),tc(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Qw(t,e,i){const{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap",i==="Start");const o="onTap"+(i==="End"?"":i),c=s[o];c&&$t.postRender(()=>c(e,gc(e)))}class v3 extends ts{mount(){const{current:e}=this.node;if(!e)return;const{globalTapTarget:i,propagate:s}=this.node.props;this.unmount=qL(e,(o,c)=>(Qw(this.node,c,"Start"),(u,{success:f})=>Qw(this.node,u,f?"End":"Cancel")),{useGlobalTarget:i,stopPropagation:(s==null?void 0:s.tap)===!1})}unmount(){}}const hg=new WeakMap,lp=new WeakMap,b3=t=>{const e=hg.get(t.target);e&&e(t)},x3=t=>{t.forEach(b3)};function S3({root:t,...e}){const i=t||document;lp.has(i)||lp.set(i,{});const s=lp.get(i),o=JSON.stringify(e);return s[o]||(s[o]=new IntersectionObserver(x3,{root:t,...e})),s[o]}function w3(t,e,i){const s=S3(e);return hg.set(t,i),s.observe(t),()=>{hg.delete(t),s.unobserve(t)}}const E3={some:0,all:1};class T3 extends ts{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:i,margin:s,amount:o="some",once:c}=e,u={root:i?i.current:void 0,rootMargin:s,threshold:typeof o=="number"?o:E3[o]},f=m=>{const{isIntersecting:h}=m;if(this.isInView===h||(this.isInView=h,c&&!h&&this.hasEnteredView))return;h&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",h);const{onViewportEnter:y,onViewportLeave:p}=this.node.getProps(),v=h?y:p;v&&v(m)};return w3(this.node.current,u,f)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:i}=this.node;["amount","margin","root"].some(C3(e,i))&&this.startObserver()}unmount(){}}function C3({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}const R3={inView:{Feature:T3},tap:{Feature:v3},focus:{Feature:y3},hover:{Feature:g3}},M3={layout:{ProjectionNode:aC,MeasureLayout:yC}},A3={...Zk,...R3,...p3,...M3},_3=Yk(A3,Kk);function vC(t){var e,i,s="";if(typeof t=="string"||typeof t=="number")s+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(i=vC(t[e]))&&(s&&(s+=" "),s+=i)}else for(i in t)t[i]&&(s&&(s+=" "),s+=i);return s}function bC(){for(var t,e,i=0,s="",o=arguments.length;i<o;i++)(t=arguments[i])&&(e=vC(t))&&(s&&(s+=" "),s+=e);return s}const $w=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,Zw=bC,xC=(t,e)=>i=>{var s;if((e==null?void 0:e.variants)==null)return Zw(t,i==null?void 0:i.class,i==null?void 0:i.className);const{variants:o,defaultVariants:c}=e,u=Object.keys(o).map(h=>{const y=i==null?void 0:i[h],p=c==null?void 0:c[h];if(y===null)return null;const v=$w(y)||$w(p);return o[h][v]}),f=i&&Object.entries(i).reduce((h,y)=>{let[p,v]=y;return v===void 0||(h[p]=v),h},{}),m=e==null||(s=e.compoundVariants)===null||s===void 0?void 0:s.reduce((h,y)=>{let{class:p,className:v,...b}=y;return Object.entries(b).every(E=>{let[w,T]=E;return Array.isArray(T)?T.includes({...c,...f}[w]):{...c,...f}[w]===T})?[...h,p,v]:h},[]);return Zw(t,u,m,i==null?void 0:i.class,i==null?void 0:i.className)};/**
|
|
75
|
+
* @license lucide-react v0.400.0 - ISC
|
|
76
|
+
*
|
|
77
|
+
* This source code is licensed under the ISC license.
|
|
78
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
79
|
+
*/const D3=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),SC=(...t)=>t.filter((e,i,s)=>!!e&&s.indexOf(e)===i).join(" ");/**
|
|
80
|
+
* @license lucide-react v0.400.0 - ISC
|
|
81
|
+
*
|
|
82
|
+
* This source code is licensed under the ISC license.
|
|
83
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
84
|
+
*/var O3={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"};/**
|
|
85
|
+
* @license lucide-react v0.400.0 - ISC
|
|
86
|
+
*
|
|
87
|
+
* This source code is licensed under the ISC license.
|
|
88
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
89
|
+
*/const N3=S.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:i=2,absoluteStrokeWidth:s,className:o="",children:c,iconNode:u,...f},m)=>S.createElement("svg",{ref:m,...O3,width:e,height:e,stroke:t,strokeWidth:s?Number(i)*24/Number(e):i,className:SC("lucide",o),...f},[...u.map(([h,y])=>S.createElement(h,y)),...Array.isArray(c)?c:[c]]));/**
|
|
90
|
+
* @license lucide-react v0.400.0 - ISC
|
|
91
|
+
*
|
|
92
|
+
* This source code is licensed under the ISC license.
|
|
93
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
94
|
+
*/const Qe=(t,e)=>{const i=S.forwardRef(({className:s,...o},c)=>S.createElement(N3,{ref:c,iconNode:e,className:SC(`lucide-${D3(t)}`,s),...o}));return i.displayName=`${t}`,i};/**
|
|
95
|
+
* @license lucide-react v0.400.0 - ISC
|
|
96
|
+
*
|
|
97
|
+
* This source code is licensed under the ISC license.
|
|
98
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
99
|
+
*/const P3=Qe("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/**
|
|
100
|
+
* @license lucide-react v0.400.0 - ISC
|
|
101
|
+
*
|
|
102
|
+
* This source code is licensed under the ISC license.
|
|
103
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
104
|
+
*/const wC=Qe("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/**
|
|
105
|
+
* @license lucide-react v0.400.0 - ISC
|
|
106
|
+
*
|
|
107
|
+
* This source code is licensed under the ISC license.
|
|
108
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
109
|
+
*/const L3=Qe("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
110
|
+
* @license lucide-react v0.400.0 - ISC
|
|
111
|
+
*
|
|
112
|
+
* This source code is licensed under the ISC license.
|
|
113
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
114
|
+
*/const EC=Qe("FolderKanban",[["path",{d:"M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2Z",key:"1fr9dc"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M12 10v2",key:"hh53o1"}],["path",{d:"M16 10v6",key:"1d6xys"}]]);/**
|
|
115
|
+
* @license lucide-react v0.400.0 - ISC
|
|
116
|
+
*
|
|
117
|
+
* This source code is licensed under the ISC license.
|
|
118
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
119
|
+
*/const TC=Qe("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/**
|
|
120
|
+
* @license lucide-react v0.400.0 - ISC
|
|
121
|
+
*
|
|
122
|
+
* This source code is licensed under the ISC license.
|
|
123
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
124
|
+
*/const j3=Qe("Hexagon",[["path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z",key:"yt0hxn"}]]);/**
|
|
125
|
+
* @license lucide-react v0.400.0 - ISC
|
|
126
|
+
*
|
|
127
|
+
* This source code is licensed under the ISC license.
|
|
128
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
129
|
+
*/const CC=Qe("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
|
|
130
|
+
* @license lucide-react v0.400.0 - ISC
|
|
131
|
+
*
|
|
132
|
+
* This source code is licensed under the ISC license.
|
|
133
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
134
|
+
*/const Ww=Qe("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"}]]);/**
|
|
135
|
+
* @license lucide-react v0.400.0 - ISC
|
|
136
|
+
*
|
|
137
|
+
* This source code is licensed under the ISC license.
|
|
138
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
139
|
+
*/const Jw=Qe("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
|
|
140
|
+
* @license lucide-react v0.400.0 - ISC
|
|
141
|
+
*
|
|
142
|
+
* This source code is licensed under the ISC license.
|
|
143
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
144
|
+
*/const k3=Qe("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);/**
|
|
145
|
+
* @license lucide-react v0.400.0 - ISC
|
|
146
|
+
*
|
|
147
|
+
* This source code is licensed under the ISC license.
|
|
148
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
149
|
+
*/const RC=Qe("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
150
|
+
* @license lucide-react v0.400.0 - ISC
|
|
151
|
+
*
|
|
152
|
+
* This source code is licensed under the ISC license.
|
|
153
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
154
|
+
*/const MC=Qe("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"}]]);/**
|
|
155
|
+
* @license lucide-react v0.400.0 - ISC
|
|
156
|
+
*
|
|
157
|
+
* This source code is licensed under the ISC license.
|
|
158
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
159
|
+
*/const t1=Qe("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"}]]);/**
|
|
160
|
+
* @license lucide-react v0.400.0 - ISC
|
|
161
|
+
*
|
|
162
|
+
* This source code is licensed under the ISC license.
|
|
163
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
164
|
+
*/const AC=Qe("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
|
|
165
|
+
* @license lucide-react v0.400.0 - ISC
|
|
166
|
+
*
|
|
167
|
+
* This source code is licensed under the ISC license.
|
|
168
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
169
|
+
*/const _C=Qe("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function e1(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function wi(...t){return e=>{let i=!1;const s=t.map(o=>{const c=e1(o,e);return!i&&typeof c=="function"&&(i=!0),c});if(i)return()=>{for(let o=0;o<s.length;o++){const c=s[o];typeof c=="function"?c():e1(t[o],null)}}}}function we(...t){return S.useCallback(wi(...t),t)}function Eo(t){const e=z3(t),i=S.forwardRef((s,o)=>{const{children:c,...u}=s,f=S.Children.toArray(c),m=f.find(V3);if(m){const h=m.props.children,y=f.map(p=>p===m?S.Children.count(h)>1?S.Children.only(null):S.isValidElement(h)?h.props.children:null:p);return R.jsx(e,{...u,ref:o,children:S.isValidElement(h)?S.cloneElement(h,void 0,y):null})}return R.jsx(e,{...u,ref:o,children:c})});return i.displayName=`${t}.Slot`,i}var xy=Eo("Slot");function z3(t){const e=S.forwardRef((i,s)=>{const{children:o,...c}=i;if(S.isValidElement(o)){const u=I3(o),f=U3(c,o.props);return o.type!==S.Fragment&&(f.ref=s?wi(s,u):u),S.cloneElement(o,f)}return S.Children.count(o)>1?S.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var DC=Symbol("radix.slottable");function B3(t){const e=({children:i})=>R.jsx(R.Fragment,{children:i});return e.displayName=`${t}.Slottable`,e.__radixId=DC,e}function V3(t){return S.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===DC}function U3(t,e){const i={...e};for(const s in e){const o=t[s],c=e[s];/^on[A-Z]/.test(s)?o&&c?i[s]=(...f)=>{const m=c(...f);return o(...f),m}:o&&(i[s]=o):s==="style"?i[s]={...o,...c}:s==="className"&&(i[s]=[o,c].filter(Boolean).join(" "))}return{...t,...i}}function I3(t){var s,o;let e=(s=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:s.get,i=e&&"isReactWarning"in e&&e.isReactWarning;return i?t.ref:(e=(o=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:o.get,i=e&&"isReactWarning"in e&&e.isReactWarning,i?t.props.ref:t.props.ref||t.ref)}var H3=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ie=H3.reduce((t,e)=>{const i=Eo(`Primitive.${e}`),s=S.forwardRef((o,c)=>{const{asChild:u,...f}=o,m=u?i:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),R.jsx(m,{...f,ref:c})});return s.displayName=`Primitive.${e}`,{...t,[e]:s}},{});function OC(t,e){t&&Gf.flushSync(()=>t.dispatchEvent(e))}var F3=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),G3="VisuallyHidden",NC=S.forwardRef((t,e)=>R.jsx(ie.span,{...t,ref:e,style:{...F3,...t.style}}));NC.displayName=G3;var q3=NC;function Y3(t,e){const i=S.createContext(e),s=c=>{const{children:u,...f}=c,m=S.useMemo(()=>f,Object.values(f));return R.jsx(i.Provider,{value:m,children:u})};s.displayName=t+"Provider";function o(c){const u=S.useContext(i);if(u)return u;if(e!==void 0)return e;throw new Error(`\`${c}\` must be used within \`${t}\``)}return[s,o]}function Js(t,e=[]){let i=[];function s(c,u){const f=S.createContext(u),m=i.length;i=[...i,u];const h=p=>{var C;const{scope:v,children:b,...E}=p,w=((C=v==null?void 0:v[t])==null?void 0:C[m])||f,T=S.useMemo(()=>E,Object.values(E));return R.jsx(w.Provider,{value:T,children:b})};h.displayName=c+"Provider";function y(p,v){var w;const b=((w=v==null?void 0:v[t])==null?void 0:w[m])||f,E=S.useContext(b);if(E)return E;if(u!==void 0)return u;throw new Error(`\`${p}\` must be used within \`${c}\``)}return[h,y]}const o=()=>{const c=i.map(u=>S.createContext(u));return function(f){const m=(f==null?void 0:f[t])||c;return S.useMemo(()=>({[`__scope${t}`]:{...f,[t]:m}}),[f,m])}};return o.scopeName=t,[s,K3(o,...e)]}function K3(...t){const e=t[0];if(t.length===1)return e;const i=()=>{const s=t.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(c){const u=s.reduce((f,{useScope:m,scopeName:h})=>{const p=m(c)[`__scope${h}`];return{...f,...p}},{});return S.useMemo(()=>({[`__scope${e.scopeName}`]:u}),[u])}};return i.scopeName=e.scopeName,i}function PC(t){const e=t+"CollectionProvider",[i,s]=Js(e),[o,c]=i(e,{collectionRef:{current:null},itemMap:new Map}),u=w=>{const{scope:T,children:C}=w,D=rt.useRef(null),_=rt.useRef(new Map).current;return R.jsx(o,{scope:T,itemMap:_,collectionRef:D,children:C})};u.displayName=e;const f=t+"CollectionSlot",m=Eo(f),h=rt.forwardRef((w,T)=>{const{scope:C,children:D}=w,_=c(f,C),A=we(T,_.collectionRef);return R.jsx(m,{ref:A,children:D})});h.displayName=f;const y=t+"CollectionItemSlot",p="data-radix-collection-item",v=Eo(y),b=rt.forwardRef((w,T)=>{const{scope:C,children:D,..._}=w,A=rt.useRef(null),P=we(T,A),B=c(y,C);return rt.useEffect(()=>(B.itemMap.set(A,{ref:A,..._}),()=>void B.itemMap.delete(A))),R.jsx(v,{[p]:"",ref:P,children:D})});b.displayName=y;function E(w){const T=c(t+"CollectionConsumer",w);return rt.useCallback(()=>{const D=T.collectionRef.current;if(!D)return[];const _=Array.from(D.querySelectorAll(`[${p}]`));return Array.from(T.itemMap.values()).sort((B,z)=>_.indexOf(B.ref.current)-_.indexOf(z.ref.current))},[T.collectionRef,T.itemMap])}return[{Provider:u,Slot:h,ItemSlot:b},E,s]}function Tt(t,e,{checkForDefaultPrevented:i=!0}={}){return function(o){if(t==null||t(o),i===!1||!o.defaultPrevented)return e==null?void 0:e(o)}}var $a=globalThis!=null&&globalThis.document?S.useLayoutEffect:()=>{},X3=Uf[" useInsertionEffect ".trim().toString()]||$a;function Qf({prop:t,defaultProp:e,onChange:i=()=>{},caller:s}){const[o,c,u]=Q3({defaultProp:e,onChange:i}),f=t!==void 0,m=f?t:o;{const y=S.useRef(t!==void 0);S.useEffect(()=>{const p=y.current;p!==f&&console.warn(`${s} is changing from ${p?"controlled":"uncontrolled"} to ${f?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),y.current=f},[f,s])}const h=S.useCallback(y=>{var p;if(f){const v=$3(y)?y(t):y;v!==t&&((p=u.current)==null||p.call(u,v))}else c(y)},[f,t,c,u]);return[m,h]}function Q3({defaultProp:t,onChange:e}){const[i,s]=S.useState(t),o=S.useRef(i),c=S.useRef(e);return X3(()=>{c.current=e},[e]),S.useEffect(()=>{var u;o.current!==i&&((u=c.current)==null||u.call(c,i),o.current=i)},[i,o]),[i,s,c]}function $3(t){return typeof t=="function"}function Z3(t,e){return S.useReducer((i,s)=>e[i][s]??i,t)}var Ti=t=>{const{present:e,children:i}=t,s=W3(e),o=typeof i=="function"?i({present:s.isPresent}):S.Children.only(i),c=we(s.ref,J3(o));return typeof i=="function"||s.isPresent?S.cloneElement(o,{ref:c}):null};Ti.displayName="Presence";function W3(t){const[e,i]=S.useState(),s=S.useRef(null),o=S.useRef(t),c=S.useRef("none"),u=t?"mounted":"unmounted",[f,m]=Z3(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return S.useEffect(()=>{const h=Yu(s.current);c.current=f==="mounted"?h:"none"},[f]),$a(()=>{const h=s.current,y=o.current;if(y!==t){const v=c.current,b=Yu(h);t?m("MOUNT"):b==="none"||(h==null?void 0:h.display)==="none"?m("UNMOUNT"):m(y&&v!==b?"ANIMATION_OUT":"UNMOUNT"),o.current=t}},[t,m]),$a(()=>{if(e){let h;const y=e.ownerDocument.defaultView??window,p=b=>{const w=Yu(s.current).includes(CSS.escape(b.animationName));if(b.target===e&&w&&(m("ANIMATION_END"),!o.current)){const T=e.style.animationFillMode;e.style.animationFillMode="forwards",h=y.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=T)})}},v=b=>{b.target===e&&(c.current=Yu(s.current))};return e.addEventListener("animationstart",v),e.addEventListener("animationcancel",p),e.addEventListener("animationend",p),()=>{y.clearTimeout(h),e.removeEventListener("animationstart",v),e.removeEventListener("animationcancel",p),e.removeEventListener("animationend",p)}}else m("ANIMATION_END")},[e,m]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:S.useCallback(h=>{s.current=h?getComputedStyle(h):null,i(h)},[])}}function Yu(t){return(t==null?void 0:t.animationName)||"none"}function J3(t){var s,o;let e=(s=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:s.get,i=e&&"isReactWarning"in e&&e.isReactWarning;return i?t.ref:(e=(o=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:o.get,i=e&&"isReactWarning"in e&&e.isReactWarning,i?t.props.ref:t.props.ref||t.ref)}var tz=Uf[" useId ".trim().toString()]||(()=>{}),ez=0;function wn(t){const[e,i]=S.useState(tz());return $a(()=>{i(s=>s??String(ez++))},[t]),e?`radix-${e}`:""}var nz=S.createContext(void 0);function LC(t){const e=S.useContext(nz);return t||e||"ltr"}function Ji(t){const e=S.useRef(t);return S.useEffect(()=>{e.current=t}),S.useMemo(()=>(...i)=>{var s;return(s=e.current)==null?void 0:s.call(e,...i)},[])}function iz(t,e=globalThis==null?void 0:globalThis.document){const i=Ji(t);S.useEffect(()=>{const s=o=>{o.key==="Escape"&&i(o)};return e.addEventListener("keydown",s,{capture:!0}),()=>e.removeEventListener("keydown",s,{capture:!0})},[i,e])}var az="DismissableLayer",mg="dismissableLayer.update",sz="dismissableLayer.pointerDownOutside",rz="dismissableLayer.focusOutside",n1,jC=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),$f=S.forwardRef((t,e)=>{const{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:s,onPointerDownOutside:o,onFocusOutside:c,onInteractOutside:u,onDismiss:f,...m}=t,h=S.useContext(jC),[y,p]=S.useState(null),v=(y==null?void 0:y.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,b]=S.useState({}),E=we(e,z=>p(z)),w=Array.from(h.layers),[T]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),C=w.indexOf(T),D=y?w.indexOf(y):-1,_=h.layersWithOutsidePointerEventsDisabled.size>0,A=D>=C,P=cz(z=>{const L=z.target,Y=[...h.branches].some(I=>I.contains(L));!A||Y||(o==null||o(z),u==null||u(z),z.defaultPrevented||f==null||f())},v),B=uz(z=>{const L=z.target;[...h.branches].some(I=>I.contains(L))||(c==null||c(z),u==null||u(z),z.defaultPrevented||f==null||f())},v);return iz(z=>{D===h.layers.size-1&&(s==null||s(z),!z.defaultPrevented&&f&&(z.preventDefault(),f()))},v),S.useEffect(()=>{if(y)return i&&(h.layersWithOutsidePointerEventsDisabled.size===0&&(n1=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(y)),h.layers.add(y),i1(),()=>{i&&h.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=n1)}},[y,v,i,h]),S.useEffect(()=>()=>{y&&(h.layers.delete(y),h.layersWithOutsidePointerEventsDisabled.delete(y),i1())},[y,h]),S.useEffect(()=>{const z=()=>b({});return document.addEventListener(mg,z),()=>document.removeEventListener(mg,z)},[]),R.jsx(ie.div,{...m,ref:E,style:{pointerEvents:_?A?"auto":"none":void 0,...t.style},onFocusCapture:Tt(t.onFocusCapture,B.onFocusCapture),onBlurCapture:Tt(t.onBlurCapture,B.onBlurCapture),onPointerDownCapture:Tt(t.onPointerDownCapture,P.onPointerDownCapture)})});$f.displayName=az;var oz="DismissableLayerBranch",lz=S.forwardRef((t,e)=>{const i=S.useContext(jC),s=S.useRef(null),o=we(e,s);return S.useEffect(()=>{const c=s.current;if(c)return i.branches.add(c),()=>{i.branches.delete(c)}},[i.branches]),R.jsx(ie.div,{...t,ref:o})});lz.displayName=oz;function cz(t,e=globalThis==null?void 0:globalThis.document){const i=Ji(t),s=S.useRef(!1),o=S.useRef(()=>{});return S.useEffect(()=>{const c=f=>{if(f.target&&!s.current){let m=function(){kC(sz,i,h,{discrete:!0})};const h={originalEvent:f};f.pointerType==="touch"?(e.removeEventListener("click",o.current),o.current=m,e.addEventListener("click",o.current,{once:!0})):m()}else e.removeEventListener("click",o.current);s.current=!1},u=window.setTimeout(()=>{e.addEventListener("pointerdown",c)},0);return()=>{window.clearTimeout(u),e.removeEventListener("pointerdown",c),e.removeEventListener("click",o.current)}},[e,i]),{onPointerDownCapture:()=>s.current=!0}}function uz(t,e=globalThis==null?void 0:globalThis.document){const i=Ji(t),s=S.useRef(!1);return S.useEffect(()=>{const o=c=>{c.target&&!s.current&&kC(rz,i,{originalEvent:c},{discrete:!1})};return e.addEventListener("focusin",o),()=>e.removeEventListener("focusin",o)},[e,i]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function i1(){const t=new CustomEvent(mg);document.dispatchEvent(t)}function kC(t,e,i,{discrete:s}){const o=i.originalEvent.target,c=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:i});e&&o.addEventListener(t,e,{once:!0}),s?OC(o,c):o.dispatchEvent(c)}var cp="focusScope.autoFocusOnMount",up="focusScope.autoFocusOnUnmount",a1={bubbles:!1,cancelable:!0},fz="FocusScope",Sy=S.forwardRef((t,e)=>{const{loop:i=!1,trapped:s=!1,onMountAutoFocus:o,onUnmountAutoFocus:c,...u}=t,[f,m]=S.useState(null),h=Ji(o),y=Ji(c),p=S.useRef(null),v=we(e,w=>m(w)),b=S.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;S.useEffect(()=>{if(s){let w=function(_){if(b.paused||!f)return;const A=_.target;f.contains(A)?p.current=A:Pa(p.current,{select:!0})},T=function(_){if(b.paused||!f)return;const A=_.relatedTarget;A!==null&&(f.contains(A)||Pa(p.current,{select:!0}))},C=function(_){if(document.activeElement===document.body)for(const P of _)P.removedNodes.length>0&&Pa(f)};document.addEventListener("focusin",w),document.addEventListener("focusout",T);const D=new MutationObserver(C);return f&&D.observe(f,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",T),D.disconnect()}}},[s,f,b.paused]),S.useEffect(()=>{if(f){r1.add(b);const w=document.activeElement;if(!f.contains(w)){const C=new CustomEvent(cp,a1);f.addEventListener(cp,h),f.dispatchEvent(C),C.defaultPrevented||(dz(yz(zC(f)),{select:!0}),document.activeElement===w&&Pa(f))}return()=>{f.removeEventListener(cp,h),setTimeout(()=>{const C=new CustomEvent(up,a1);f.addEventListener(up,y),f.dispatchEvent(C),C.defaultPrevented||Pa(w??document.body,{select:!0}),f.removeEventListener(up,y),r1.remove(b)},0)}}},[f,h,y,b]);const E=S.useCallback(w=>{if(!i&&!s||b.paused)return;const T=w.key==="Tab"&&!w.altKey&&!w.ctrlKey&&!w.metaKey,C=document.activeElement;if(T&&C){const D=w.currentTarget,[_,A]=hz(D);_&&A?!w.shiftKey&&C===A?(w.preventDefault(),i&&Pa(_,{select:!0})):w.shiftKey&&C===_&&(w.preventDefault(),i&&Pa(A,{select:!0})):C===D&&w.preventDefault()}},[i,s,b.paused]);return R.jsx(ie.div,{tabIndex:-1,...u,ref:v,onKeyDown:E})});Sy.displayName=fz;function dz(t,{select:e=!1}={}){const i=document.activeElement;for(const s of t)if(Pa(s,{select:e}),document.activeElement!==i)return}function hz(t){const e=zC(t),i=s1(e,t),s=s1(e.reverse(),t);return[i,s]}function zC(t){const e=[],i=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const o=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||o?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;i.nextNode();)e.push(i.currentNode);return e}function s1(t,e){for(const i of t)if(!mz(i,{upTo:e}))return i}function mz(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function pz(t){return t instanceof HTMLInputElement&&"select"in t}function Pa(t,{select:e=!1}={}){if(t&&t.focus){const i=document.activeElement;t.focus({preventScroll:!0}),t!==i&&pz(t)&&e&&t.select()}}var r1=gz();function gz(){let t=[];return{add(e){const i=t[0];e!==i&&(i==null||i.pause()),t=o1(t,e),t.unshift(e)},remove(e){var i;t=o1(t,e),(i=t[0])==null||i.resume()}}}function o1(t,e){const i=[...t],s=i.indexOf(e);return s!==-1&&i.splice(s,1),i}function yz(t){return t.filter(e=>e.tagName!=="A")}var vz="Portal",Zf=S.forwardRef((t,e)=>{var f;const{container:i,...s}=t,[o,c]=S.useState(!1);$a(()=>c(!0),[]);const u=i||o&&((f=globalThis==null?void 0:globalThis.document)==null?void 0:f.body);return u?vE.createPortal(R.jsx(ie.div,{...s,ref:e}),u):null});Zf.displayName=vz;var fp=0;function BC(){S.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??l1()),document.body.insertAdjacentElement("beforeend",t[1]??l1()),fp++,()=>{fp===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),fp--}},[])}function l1(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var gi=function(){return gi=Object.assign||function(e){for(var i,s=1,o=arguments.length;s<o;s++){i=arguments[s];for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&(e[c]=i[c])}return e},gi.apply(this,arguments)};function VC(t,e){var i={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(i[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,s=Object.getOwnPropertySymbols(t);o<s.length;o++)e.indexOf(s[o])<0&&Object.prototype.propertyIsEnumerable.call(t,s[o])&&(i[s[o]]=t[s[o]]);return i}function bz(t,e,i){if(i||arguments.length===2)for(var s=0,o=e.length,c;s<o;s++)(c||!(s in e))&&(c||(c=Array.prototype.slice.call(e,0,s)),c[s]=e[s]);return t.concat(c||Array.prototype.slice.call(e))}var uf="right-scroll-bar-position",ff="width-before-scroll-bar",xz="with-scroll-bars-hidden",Sz="--removed-body-scroll-bar-size";function dp(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function wz(t,e){var i=S.useState(function(){return{value:t,callback:e,facade:{get current(){return i.value},set current(s){var o=i.value;o!==s&&(i.value=s,i.callback(s,o))}}}})[0];return i.callback=e,i.facade}var Ez=typeof window<"u"?S.useLayoutEffect:S.useEffect,c1=new WeakMap;function Tz(t,e){var i=wz(null,function(s){return t.forEach(function(o){return dp(o,s)})});return Ez(function(){var s=c1.get(i);if(s){var o=new Set(s),c=new Set(t),u=i.current;o.forEach(function(f){c.has(f)||dp(f,null)}),c.forEach(function(f){o.has(f)||dp(f,u)})}c1.set(i,t)},[t]),i}function Cz(t){return t}function Rz(t,e){e===void 0&&(e=Cz);var i=[],s=!1,o={read:function(){if(s)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return i.length?i[i.length-1]:t},useMedium:function(c){var u=e(c,s);return i.push(u),function(){i=i.filter(function(f){return f!==u})}},assignSyncMedium:function(c){for(s=!0;i.length;){var u=i;i=[],u.forEach(c)}i={push:function(f){return c(f)},filter:function(){return i}}},assignMedium:function(c){s=!0;var u=[];if(i.length){var f=i;i=[],f.forEach(c),u=i}var m=function(){var y=u;u=[],y.forEach(c)},h=function(){return Promise.resolve().then(m)};h(),i={push:function(y){u.push(y),h()},filter:function(y){return u=u.filter(y),i}}}};return o}function Mz(t){t===void 0&&(t={});var e=Rz(null);return e.options=gi({async:!0,ssr:!1},t),e}var UC=function(t){var e=t.sideCar,i=VC(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var s=e.read();if(!s)throw new Error("Sidecar medium not found");return S.createElement(s,gi({},i))};UC.isSideCarExport=!0;function Az(t,e){return t.useMedium(e),UC}var IC=Mz(),hp=function(){},Wf=S.forwardRef(function(t,e){var i=S.useRef(null),s=S.useState({onScrollCapture:hp,onWheelCapture:hp,onTouchMoveCapture:hp}),o=s[0],c=s[1],u=t.forwardProps,f=t.children,m=t.className,h=t.removeScrollBar,y=t.enabled,p=t.shards,v=t.sideCar,b=t.noRelative,E=t.noIsolation,w=t.inert,T=t.allowPinchZoom,C=t.as,D=C===void 0?"div":C,_=t.gapMode,A=VC(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),P=v,B=Tz([i,e]),z=gi(gi({},A),o);return S.createElement(S.Fragment,null,y&&S.createElement(P,{sideCar:IC,removeScrollBar:h,shards:p,noRelative:b,noIsolation:E,inert:w,setCallbacks:c,allowPinchZoom:!!T,lockRef:i,gapMode:_}),u?S.cloneElement(S.Children.only(f),gi(gi({},z),{ref:B})):S.createElement(D,gi({},z,{className:m,ref:B}),f))});Wf.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Wf.classNames={fullWidth:ff,zeroRight:uf};var _z=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Dz(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=_z();return e&&t.setAttribute("nonce",e),t}function Oz(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function Nz(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var Pz=function(){var t=0,e=null;return{add:function(i){t==0&&(e=Dz())&&(Oz(e,i),Nz(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},Lz=function(){var t=Pz();return function(e,i){S.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&i])}},HC=function(){var t=Lz(),e=function(i){var s=i.styles,o=i.dynamic;return t(s,o),null};return e},jz={left:0,top:0,right:0,gap:0},mp=function(t){return parseInt(t||"",10)||0},kz=function(t){var e=window.getComputedStyle(document.body),i=e[t==="padding"?"paddingLeft":"marginLeft"],s=e[t==="padding"?"paddingTop":"marginTop"],o=e[t==="padding"?"paddingRight":"marginRight"];return[mp(i),mp(s),mp(o)]},zz=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return jz;var e=kz(t),i=document.documentElement.clientWidth,s=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,s-i+e[2]-e[0])}},Bz=HC(),so="data-scroll-locked",Vz=function(t,e,i,s){var o=t.left,c=t.top,u=t.right,f=t.gap;return i===void 0&&(i="margin"),`
|
|
170
|
+
.`.concat(xz,` {
|
|
171
|
+
overflow: hidden `).concat(s,`;
|
|
172
|
+
padding-right: `).concat(f,"px ").concat(s,`;
|
|
173
|
+
}
|
|
174
|
+
body[`).concat(so,`] {
|
|
175
|
+
overflow: hidden `).concat(s,`;
|
|
176
|
+
overscroll-behavior: contain;
|
|
177
|
+
`).concat([e&&"position: relative ".concat(s,";"),i==="margin"&&`
|
|
178
|
+
padding-left: `.concat(o,`px;
|
|
179
|
+
padding-top: `).concat(c,`px;
|
|
180
|
+
padding-right: `).concat(u,`px;
|
|
181
|
+
margin-left:0;
|
|
182
|
+
margin-top:0;
|
|
183
|
+
margin-right: `).concat(f,"px ").concat(s,`;
|
|
184
|
+
`),i==="padding"&&"padding-right: ".concat(f,"px ").concat(s,";")].filter(Boolean).join(""),`
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.`).concat(uf,` {
|
|
188
|
+
right: `).concat(f,"px ").concat(s,`;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.`).concat(ff,` {
|
|
192
|
+
margin-right: `).concat(f,"px ").concat(s,`;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.`).concat(uf," .").concat(uf,` {
|
|
196
|
+
right: 0 `).concat(s,`;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.`).concat(ff," .").concat(ff,` {
|
|
200
|
+
margin-right: 0 `).concat(s,`;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
body[`).concat(so,`] {
|
|
204
|
+
`).concat(Sz,": ").concat(f,`px;
|
|
205
|
+
}
|
|
206
|
+
`)},u1=function(){var t=parseInt(document.body.getAttribute(so)||"0",10);return isFinite(t)?t:0},Uz=function(){S.useEffect(function(){return document.body.setAttribute(so,(u1()+1).toString()),function(){var t=u1()-1;t<=0?document.body.removeAttribute(so):document.body.setAttribute(so,t.toString())}},[])},Iz=function(t){var e=t.noRelative,i=t.noImportant,s=t.gapMode,o=s===void 0?"margin":s;Uz();var c=S.useMemo(function(){return zz(o)},[o]);return S.createElement(Bz,{styles:Vz(c,!e,o,i?"":"!important")})},pg=!1;if(typeof window<"u")try{var Ku=Object.defineProperty({},"passive",{get:function(){return pg=!0,!0}});window.addEventListener("test",Ku,Ku),window.removeEventListener("test",Ku,Ku)}catch{pg=!1}var Fr=pg?{passive:!1}:!1,Hz=function(t){return t.tagName==="TEXTAREA"},FC=function(t,e){if(!(t instanceof Element))return!1;var i=window.getComputedStyle(t);return i[e]!=="hidden"&&!(i.overflowY===i.overflowX&&!Hz(t)&&i[e]==="visible")},Fz=function(t){return FC(t,"overflowY")},Gz=function(t){return FC(t,"overflowX")},f1=function(t,e){var i=e.ownerDocument,s=e;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var o=GC(t,s);if(o){var c=qC(t,s),u=c[1],f=c[2];if(u>f)return!0}s=s.parentNode}while(s&&s!==i.body);return!1},qz=function(t){var e=t.scrollTop,i=t.scrollHeight,s=t.clientHeight;return[e,i,s]},Yz=function(t){var e=t.scrollLeft,i=t.scrollWidth,s=t.clientWidth;return[e,i,s]},GC=function(t,e){return t==="v"?Fz(e):Gz(e)},qC=function(t,e){return t==="v"?qz(e):Yz(e)},Kz=function(t,e){return t==="h"&&e==="rtl"?-1:1},Xz=function(t,e,i,s,o){var c=Kz(t,window.getComputedStyle(e).direction),u=c*s,f=i.target,m=e.contains(f),h=!1,y=u>0,p=0,v=0;do{if(!f)break;var b=qC(t,f),E=b[0],w=b[1],T=b[2],C=w-T-c*E;(E||C)&&GC(t,f)&&(p+=C,v+=E);var D=f.parentNode;f=D&&D.nodeType===Node.DOCUMENT_FRAGMENT_NODE?D.host:D}while(!m&&f!==document.body||m&&(e.contains(f)||e===f));return(y&&Math.abs(p)<1||!y&&Math.abs(v)<1)&&(h=!0),h},Xu=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},d1=function(t){return[t.deltaX,t.deltaY]},h1=function(t){return t&&"current"in t?t.current:t},Qz=function(t,e){return t[0]===e[0]&&t[1]===e[1]},$z=function(t){return`
|
|
207
|
+
.block-interactivity-`.concat(t,` {pointer-events: none;}
|
|
208
|
+
.allow-interactivity-`).concat(t,` {pointer-events: all;}
|
|
209
|
+
`)},Zz=0,Gr=[];function Wz(t){var e=S.useRef([]),i=S.useRef([0,0]),s=S.useRef(),o=S.useState(Zz++)[0],c=S.useState(HC)[0],u=S.useRef(t);S.useEffect(function(){u.current=t},[t]),S.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(o));var w=bz([t.lockRef.current],(t.shards||[]).map(h1),!0).filter(Boolean);return w.forEach(function(T){return T.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),w.forEach(function(T){return T.classList.remove("allow-interactivity-".concat(o))})}}},[t.inert,t.lockRef.current,t.shards]);var f=S.useCallback(function(w,T){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!u.current.allowPinchZoom;var C=Xu(w),D=i.current,_="deltaX"in w?w.deltaX:D[0]-C[0],A="deltaY"in w?w.deltaY:D[1]-C[1],P,B=w.target,z=Math.abs(_)>Math.abs(A)?"h":"v";if("touches"in w&&z==="h"&&B.type==="range")return!1;var L=window.getSelection(),Y=L&&L.anchorNode,I=Y?Y===B||Y.contains(B):!1;if(I)return!1;var W=f1(z,B);if(!W)return!0;if(W?P=z:(P=z==="v"?"h":"v",W=f1(z,B)),!W)return!1;if(!s.current&&"changedTouches"in w&&(_||A)&&(s.current=P),!P)return!0;var at=s.current||P;return Xz(at,T,w,at==="h"?_:A)},[]),m=S.useCallback(function(w){var T=w;if(!(!Gr.length||Gr[Gr.length-1]!==c)){var C="deltaY"in T?d1(T):Xu(T),D=e.current.filter(function(P){return P.name===T.type&&(P.target===T.target||T.target===P.shadowParent)&&Qz(P.delta,C)})[0];if(D&&D.should){T.cancelable&&T.preventDefault();return}if(!D){var _=(u.current.shards||[]).map(h1).filter(Boolean).filter(function(P){return P.contains(T.target)}),A=_.length>0?f(T,_[0]):!u.current.noIsolation;A&&T.cancelable&&T.preventDefault()}}},[]),h=S.useCallback(function(w,T,C,D){var _={name:w,delta:T,target:C,should:D,shadowParent:Jz(C)};e.current.push(_),setTimeout(function(){e.current=e.current.filter(function(A){return A!==_})},1)},[]),y=S.useCallback(function(w){i.current=Xu(w),s.current=void 0},[]),p=S.useCallback(function(w){h(w.type,d1(w),w.target,f(w,t.lockRef.current))},[]),v=S.useCallback(function(w){h(w.type,Xu(w),w.target,f(w,t.lockRef.current))},[]);S.useEffect(function(){return Gr.push(c),t.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,Fr),document.addEventListener("touchmove",m,Fr),document.addEventListener("touchstart",y,Fr),function(){Gr=Gr.filter(function(w){return w!==c}),document.removeEventListener("wheel",m,Fr),document.removeEventListener("touchmove",m,Fr),document.removeEventListener("touchstart",y,Fr)}},[]);var b=t.removeScrollBar,E=t.inert;return S.createElement(S.Fragment,null,E?S.createElement(c,{styles:$z(o)}):null,b?S.createElement(Iz,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function Jz(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const t5=Az(IC,Wz);var wy=S.forwardRef(function(t,e){return S.createElement(Wf,gi({},t,{ref:e,sideCar:t5}))});wy.classNames=Wf.classNames;var e5=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},qr=new WeakMap,Qu=new WeakMap,$u={},pp=0,YC=function(t){return t&&(t.host||YC(t.parentNode))},n5=function(t,e){return e.map(function(i){if(t.contains(i))return i;var s=YC(i);return s&&t.contains(s)?s:(console.error("aria-hidden",i,"in not contained inside",t,". Doing nothing"),null)}).filter(function(i){return!!i})},i5=function(t,e,i,s){var o=n5(e,Array.isArray(t)?t:[t]);$u[i]||($u[i]=new WeakMap);var c=$u[i],u=[],f=new Set,m=new Set(o),h=function(p){!p||f.has(p)||(f.add(p),h(p.parentNode))};o.forEach(h);var y=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(f.has(v))y(v);else try{var b=v.getAttribute(s),E=b!==null&&b!=="false",w=(qr.get(v)||0)+1,T=(c.get(v)||0)+1;qr.set(v,w),c.set(v,T),u.push(v),w===1&&E&&Qu.set(v,!0),T===1&&v.setAttribute(i,"true"),E||v.setAttribute(s,"true")}catch(C){console.error("aria-hidden: cannot operate on ",v,C)}})};return y(e),f.clear(),pp++,function(){u.forEach(function(p){var v=qr.get(p)-1,b=c.get(p)-1;qr.set(p,v),c.set(p,b),v||(Qu.has(p)||p.removeAttribute(s),Qu.delete(p)),b||p.removeAttribute(i)}),pp--,pp||(qr=new WeakMap,qr=new WeakMap,Qu=new WeakMap,$u={})}},KC=function(t,e,i){i===void 0&&(i="data-aria-hidden");var s=Array.from(Array.isArray(t)?t:[t]),o=e5(t);return o?(s.push.apply(s,Array.from(o.querySelectorAll("[aria-live], script"))),i5(s,o,i,"aria-hidden")):function(){return null}},Jf="Dialog",[XC]=Js(Jf),[a5,ni]=XC(Jf),QC=t=>{const{__scopeDialog:e,children:i,open:s,defaultOpen:o,onOpenChange:c,modal:u=!0}=t,f=S.useRef(null),m=S.useRef(null),[h,y]=Qf({prop:s,defaultProp:o??!1,onChange:c,caller:Jf});return R.jsx(a5,{scope:e,triggerRef:f,contentRef:m,contentId:wn(),titleId:wn(),descriptionId:wn(),open:h,onOpenChange:y,onOpenToggle:S.useCallback(()=>y(p=>!p),[y]),modal:u,children:i})};QC.displayName=Jf;var $C="DialogTrigger",ZC=S.forwardRef((t,e)=>{const{__scopeDialog:i,...s}=t,o=ni($C,i),c=we(e,o.triggerRef);return R.jsx(ie.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Cy(o.open),...s,ref:c,onClick:Tt(t.onClick,o.onOpenToggle)})});ZC.displayName=$C;var Ey="DialogPortal",[s5,WC]=XC(Ey,{forceMount:void 0}),JC=t=>{const{__scopeDialog:e,forceMount:i,children:s,container:o}=t,c=ni(Ey,e);return R.jsx(s5,{scope:e,forceMount:i,children:S.Children.map(s,u=>R.jsx(Ti,{present:i||c.open,children:R.jsx(Zf,{asChild:!0,container:o,children:u})}))})};JC.displayName=Ey;var Of="DialogOverlay",tR=S.forwardRef((t,e)=>{const i=WC(Of,t.__scopeDialog),{forceMount:s=i.forceMount,...o}=t,c=ni(Of,t.__scopeDialog);return c.modal?R.jsx(Ti,{present:s||c.open,children:R.jsx(o5,{...o,ref:e})}):null});tR.displayName=Of;var r5=Eo("DialogOverlay.RemoveScroll"),o5=S.forwardRef((t,e)=>{const{__scopeDialog:i,...s}=t,o=ni(Of,i);return R.jsx(wy,{as:r5,allowPinchZoom:!0,shards:[o.contentRef],children:R.jsx(ie.div,{"data-state":Cy(o.open),...s,ref:e,style:{pointerEvents:"auto",...s.style}})})}),Xs="DialogContent",eR=S.forwardRef((t,e)=>{const i=WC(Xs,t.__scopeDialog),{forceMount:s=i.forceMount,...o}=t,c=ni(Xs,t.__scopeDialog);return R.jsx(Ti,{present:s||c.open,children:c.modal?R.jsx(l5,{...o,ref:e}):R.jsx(c5,{...o,ref:e})})});eR.displayName=Xs;var l5=S.forwardRef((t,e)=>{const i=ni(Xs,t.__scopeDialog),s=S.useRef(null),o=we(e,i.contentRef,s);return S.useEffect(()=>{const c=s.current;if(c)return KC(c)},[]),R.jsx(nR,{...t,ref:o,trapFocus:i.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Tt(t.onCloseAutoFocus,c=>{var u;c.preventDefault(),(u=i.triggerRef.current)==null||u.focus()}),onPointerDownOutside:Tt(t.onPointerDownOutside,c=>{const u=c.detail.originalEvent,f=u.button===0&&u.ctrlKey===!0;(u.button===2||f)&&c.preventDefault()}),onFocusOutside:Tt(t.onFocusOutside,c=>c.preventDefault())})}),c5=S.forwardRef((t,e)=>{const i=ni(Xs,t.__scopeDialog),s=S.useRef(!1),o=S.useRef(!1);return R.jsx(nR,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:c=>{var u,f;(u=t.onCloseAutoFocus)==null||u.call(t,c),c.defaultPrevented||(s.current||(f=i.triggerRef.current)==null||f.focus(),c.preventDefault()),s.current=!1,o.current=!1},onInteractOutside:c=>{var m,h;(m=t.onInteractOutside)==null||m.call(t,c),c.defaultPrevented||(s.current=!0,c.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const u=c.target;((h=i.triggerRef.current)==null?void 0:h.contains(u))&&c.preventDefault(),c.detail.originalEvent.type==="focusin"&&o.current&&c.preventDefault()}})}),nR=S.forwardRef((t,e)=>{const{__scopeDialog:i,trapFocus:s,onOpenAutoFocus:o,onCloseAutoFocus:c,...u}=t,f=ni(Xs,i),m=S.useRef(null),h=we(e,m);return BC(),R.jsxs(R.Fragment,{children:[R.jsx(Sy,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:o,onUnmountAutoFocus:c,children:R.jsx($f,{role:"dialog",id:f.contentId,"aria-describedby":f.descriptionId,"aria-labelledby":f.titleId,"data-state":Cy(f.open),...u,ref:h,onDismiss:()=>f.onOpenChange(!1)})}),R.jsxs(R.Fragment,{children:[R.jsx(u5,{titleId:f.titleId}),R.jsx(d5,{contentRef:m,descriptionId:f.descriptionId})]})]})}),Ty="DialogTitle",iR=S.forwardRef((t,e)=>{const{__scopeDialog:i,...s}=t,o=ni(Ty,i);return R.jsx(ie.h2,{id:o.titleId,...s,ref:e})});iR.displayName=Ty;var aR="DialogDescription",sR=S.forwardRef((t,e)=>{const{__scopeDialog:i,...s}=t,o=ni(aR,i);return R.jsx(ie.p,{id:o.descriptionId,...s,ref:e})});sR.displayName=aR;var rR="DialogClose",oR=S.forwardRef((t,e)=>{const{__scopeDialog:i,...s}=t,o=ni(rR,i);return R.jsx(ie.button,{type:"button",...s,ref:e,onClick:Tt(t.onClick,()=>o.onOpenChange(!1))})});oR.displayName=rR;function Cy(t){return t?"open":"closed"}var lR="DialogTitleWarning",[I8,cR]=Y3(lR,{contentName:Xs,titleName:Ty,docsSlug:"dialog"}),u5=({titleId:t})=>{const e=cR(lR),i=`\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
|
|
210
|
+
|
|
211
|
+
If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
212
|
+
|
|
213
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return S.useEffect(()=>{t&&(document.getElementById(t)||console.error(i))},[i,t]),null},f5="DialogDescriptionWarning",d5=({contentRef:t,descriptionId:e})=>{const s=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${cR(f5).contentName}}.`;return S.useEffect(()=>{var c;const o=(c=t.current)==null?void 0:c.getAttribute("aria-describedby");e&&o&&(document.getElementById(e)||console.warn(s))},[s,t,e]),null},Ry=QC,h5=ZC,My=JC,Ay=tR,_y=eR,uR=iR,fR=sR,Dy=oR;function m5(t){const[e,i]=S.useState(void 0);return $a(()=>{if(t){i({width:t.offsetWidth,height:t.offsetHeight});const s=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const c=o[0];let u,f;if("borderBoxSize"in c){const m=c.borderBoxSize,h=Array.isArray(m)?m[0]:m;u=h.inlineSize,f=h.blockSize}else u=t.offsetWidth,f=t.offsetHeight;i({width:u,height:f})});return s.observe(t,{box:"border-box"}),()=>s.unobserve(t)}else i(void 0)},[t]),e}const p5=["top","right","bottom","left"],Za=Math.min,xn=Math.max,Nf=Math.round,Zu=Math.floor,bi=t=>({x:t,y:t}),g5={left:"right",right:"left",bottom:"top",top:"bottom"},y5={start:"end",end:"start"};function gg(t,e,i){return xn(t,Za(e,i))}function ta(t,e){return typeof t=="function"?t(e):t}function ea(t){return t.split("-")[0]}function _o(t){return t.split("-")[1]}function Oy(t){return t==="x"?"y":"x"}function Ny(t){return t==="y"?"height":"width"}const v5=new Set(["top","bottom"]);function yi(t){return v5.has(ea(t))?"y":"x"}function Py(t){return Oy(yi(t))}function b5(t,e,i){i===void 0&&(i=!1);const s=_o(t),o=Py(t),c=Ny(o);let u=o==="x"?s===(i?"end":"start")?"right":"left":s==="start"?"bottom":"top";return e.reference[c]>e.floating[c]&&(u=Pf(u)),[u,Pf(u)]}function x5(t){const e=Pf(t);return[yg(t),e,yg(e)]}function yg(t){return t.replace(/start|end/g,e=>y5[e])}const m1=["left","right"],p1=["right","left"],S5=["top","bottom"],w5=["bottom","top"];function E5(t,e,i){switch(t){case"top":case"bottom":return i?e?p1:m1:e?m1:p1;case"left":case"right":return e?S5:w5;default:return[]}}function T5(t,e,i,s){const o=_o(t);let c=E5(ea(t),i==="start",s);return o&&(c=c.map(u=>u+"-"+o),e&&(c=c.concat(c.map(yg)))),c}function Pf(t){return t.replace(/left|right|bottom|top/g,e=>g5[e])}function C5(t){return{top:0,right:0,bottom:0,left:0,...t}}function dR(t){return typeof t!="number"?C5(t):{top:t,right:t,bottom:t,left:t}}function Lf(t){const{x:e,y:i,width:s,height:o}=t;return{width:s,height:o,top:i,left:e,right:e+s,bottom:i+o,x:e,y:i}}function g1(t,e,i){let{reference:s,floating:o}=t;const c=yi(e),u=Py(e),f=Ny(u),m=ea(e),h=c==="y",y=s.x+s.width/2-o.width/2,p=s.y+s.height/2-o.height/2,v=s[f]/2-o[f]/2;let b;switch(m){case"top":b={x:y,y:s.y-o.height};break;case"bottom":b={x:y,y:s.y+s.height};break;case"right":b={x:s.x+s.width,y:p};break;case"left":b={x:s.x-o.width,y:p};break;default:b={x:s.x,y:s.y}}switch(_o(e)){case"start":b[u]-=v*(i&&h?-1:1);break;case"end":b[u]+=v*(i&&h?-1:1);break}return b}async function R5(t,e){var i;e===void 0&&(e={});const{x:s,y:o,platform:c,rects:u,elements:f,strategy:m}=t,{boundary:h="clippingAncestors",rootBoundary:y="viewport",elementContext:p="floating",altBoundary:v=!1,padding:b=0}=ta(e,t),E=dR(b),T=f[v?p==="floating"?"reference":"floating":p],C=Lf(await c.getClippingRect({element:(i=await(c.isElement==null?void 0:c.isElement(T)))==null||i?T:T.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(f.floating)),boundary:h,rootBoundary:y,strategy:m})),D=p==="floating"?{x:s,y:o,width:u.floating.width,height:u.floating.height}:u.reference,_=await(c.getOffsetParent==null?void 0:c.getOffsetParent(f.floating)),A=await(c.isElement==null?void 0:c.isElement(_))?await(c.getScale==null?void 0:c.getScale(_))||{x:1,y:1}:{x:1,y:1},P=Lf(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:D,offsetParent:_,strategy:m}):D);return{top:(C.top-P.top+E.top)/A.y,bottom:(P.bottom-C.bottom+E.bottom)/A.y,left:(C.left-P.left+E.left)/A.x,right:(P.right-C.right+E.right)/A.x}}const M5=async(t,e,i)=>{const{placement:s="bottom",strategy:o="absolute",middleware:c=[],platform:u}=i,f=c.filter(Boolean),m=await(u.isRTL==null?void 0:u.isRTL(e));let h=await u.getElementRects({reference:t,floating:e,strategy:o}),{x:y,y:p}=g1(h,s,m),v=s,b={},E=0;for(let T=0;T<f.length;T++){var w;const{name:C,fn:D}=f[T],{x:_,y:A,data:P,reset:B}=await D({x:y,y:p,initialPlacement:s,placement:v,strategy:o,middlewareData:b,rects:h,platform:{...u,detectOverflow:(w=u.detectOverflow)!=null?w:R5},elements:{reference:t,floating:e}});y=_??y,p=A??p,b={...b,[C]:{...b[C],...P}},B&&E<=50&&(E++,typeof B=="object"&&(B.placement&&(v=B.placement),B.rects&&(h=B.rects===!0?await u.getElementRects({reference:t,floating:e,strategy:o}):B.rects),{x:y,y:p}=g1(h,v,m)),T=-1)}return{x:y,y:p,placement:v,strategy:o,middlewareData:b}},A5=t=>({name:"arrow",options:t,async fn(e){const{x:i,y:s,placement:o,rects:c,platform:u,elements:f,middlewareData:m}=e,{element:h,padding:y=0}=ta(t,e)||{};if(h==null)return{};const p=dR(y),v={x:i,y:s},b=Py(o),E=Ny(b),w=await u.getDimensions(h),T=b==="y",C=T?"top":"left",D=T?"bottom":"right",_=T?"clientHeight":"clientWidth",A=c.reference[E]+c.reference[b]-v[b]-c.floating[E],P=v[b]-c.reference[b],B=await(u.getOffsetParent==null?void 0:u.getOffsetParent(h));let z=B?B[_]:0;(!z||!await(u.isElement==null?void 0:u.isElement(B)))&&(z=f.floating[_]||c.floating[E]);const L=A/2-P/2,Y=z/2-w[E]/2-1,I=Za(p[C],Y),W=Za(p[D],Y),at=I,ut=z-w[E]-W,ft=z/2-w[E]/2+L,ot=gg(at,ft,ut),N=!m.arrow&&_o(o)!=null&&ft!==ot&&c.reference[E]/2-(ft<at?I:W)-w[E]/2<0,q=N?ft<at?ft-at:ft-ut:0;return{[b]:v[b]+q,data:{[b]:ot,centerOffset:ft-ot-q,...N&&{alignmentOffset:q}},reset:N}}}),_5=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var i,s;const{placement:o,middlewareData:c,rects:u,initialPlacement:f,platform:m,elements:h}=e,{mainAxis:y=!0,crossAxis:p=!0,fallbackPlacements:v,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:w=!0,...T}=ta(t,e);if((i=c.arrow)!=null&&i.alignmentOffset)return{};const C=ea(o),D=yi(f),_=ea(f)===f,A=await(m.isRTL==null?void 0:m.isRTL(h.floating)),P=v||(_||!w?[Pf(f)]:x5(f)),B=E!=="none";!v&&B&&P.push(...T5(f,w,E,A));const z=[f,...P],L=await m.detectOverflow(e,T),Y=[];let I=((s=c.flip)==null?void 0:s.overflows)||[];if(y&&Y.push(L[C]),p){const ft=b5(o,u,A);Y.push(L[ft[0]],L[ft[1]])}if(I=[...I,{placement:o,overflows:Y}],!Y.every(ft=>ft<=0)){var W,at;const ft=(((W=c.flip)==null?void 0:W.index)||0)+1,ot=z[ft];if(ot&&(!(p==="alignment"?D!==yi(ot):!1)||I.every(H=>yi(H.placement)===D?H.overflows[0]>0:!0)))return{data:{index:ft,overflows:I},reset:{placement:ot}};let N=(at=I.filter(q=>q.overflows[0]<=0).sort((q,H)=>q.overflows[1]-H.overflows[1])[0])==null?void 0:at.placement;if(!N)switch(b){case"bestFit":{var ut;const q=(ut=I.filter(H=>{if(B){const et=yi(H.placement);return et===D||et==="y"}return!0}).map(H=>[H.placement,H.overflows.filter(et=>et>0).reduce((et,ct)=>et+ct,0)]).sort((H,et)=>H[1]-et[1])[0])==null?void 0:ut[0];q&&(N=q);break}case"initialPlacement":N=f;break}if(o!==N)return{reset:{placement:N}}}return{}}}};function y1(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function v1(t){return p5.some(e=>t[e]>=0)}const D5=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:i,platform:s}=e,{strategy:o="referenceHidden",...c}=ta(t,e);switch(o){case"referenceHidden":{const u=await s.detectOverflow(e,{...c,elementContext:"reference"}),f=y1(u,i.reference);return{data:{referenceHiddenOffsets:f,referenceHidden:v1(f)}}}case"escaped":{const u=await s.detectOverflow(e,{...c,altBoundary:!0}),f=y1(u,i.floating);return{data:{escapedOffsets:f,escaped:v1(f)}}}default:return{}}}}},hR=new Set(["left","top"]);async function O5(t,e){const{placement:i,platform:s,elements:o}=t,c=await(s.isRTL==null?void 0:s.isRTL(o.floating)),u=ea(i),f=_o(i),m=yi(i)==="y",h=hR.has(u)?-1:1,y=c&&m?-1:1,p=ta(e,t);let{mainAxis:v,crossAxis:b,alignmentAxis:E}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return f&&typeof E=="number"&&(b=f==="end"?E*-1:E),m?{x:b*y,y:v*h}:{x:v*h,y:b*y}}const N5=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var i,s;const{x:o,y:c,placement:u,middlewareData:f}=e,m=await O5(e,t);return u===((i=f.offset)==null?void 0:i.placement)&&(s=f.arrow)!=null&&s.alignmentOffset?{}:{x:o+m.x,y:c+m.y,data:{...m,placement:u}}}}},P5=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:i,y:s,placement:o,platform:c}=e,{mainAxis:u=!0,crossAxis:f=!1,limiter:m={fn:C=>{let{x:D,y:_}=C;return{x:D,y:_}}},...h}=ta(t,e),y={x:i,y:s},p=await c.detectOverflow(e,h),v=yi(ea(o)),b=Oy(v);let E=y[b],w=y[v];if(u){const C=b==="y"?"top":"left",D=b==="y"?"bottom":"right",_=E+p[C],A=E-p[D];E=gg(_,E,A)}if(f){const C=v==="y"?"top":"left",D=v==="y"?"bottom":"right",_=w+p[C],A=w-p[D];w=gg(_,w,A)}const T=m.fn({...e,[b]:E,[v]:w});return{...T,data:{x:T.x-i,y:T.y-s,enabled:{[b]:u,[v]:f}}}}}},L5=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:i,y:s,placement:o,rects:c,middlewareData:u}=e,{offset:f=0,mainAxis:m=!0,crossAxis:h=!0}=ta(t,e),y={x:i,y:s},p=yi(o),v=Oy(p);let b=y[v],E=y[p];const w=ta(f,e),T=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(m){const _=v==="y"?"height":"width",A=c.reference[v]-c.floating[_]+T.mainAxis,P=c.reference[v]+c.reference[_]-T.mainAxis;b<A?b=A:b>P&&(b=P)}if(h){var C,D;const _=v==="y"?"width":"height",A=hR.has(ea(o)),P=c.reference[p]-c.floating[_]+(A&&((C=u.offset)==null?void 0:C[p])||0)+(A?0:T.crossAxis),B=c.reference[p]+c.reference[_]+(A?0:((D=u.offset)==null?void 0:D[p])||0)-(A?T.crossAxis:0);E<P?E=P:E>B&&(E=B)}return{[v]:b,[p]:E}}}},j5=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var i,s;const{placement:o,rects:c,platform:u,elements:f}=e,{apply:m=()=>{},...h}=ta(t,e),y=await u.detectOverflow(e,h),p=ea(o),v=_o(o),b=yi(o)==="y",{width:E,height:w}=c.floating;let T,C;p==="top"||p==="bottom"?(T=p,C=v===(await(u.isRTL==null?void 0:u.isRTL(f.floating))?"start":"end")?"left":"right"):(C=p,T=v==="end"?"top":"bottom");const D=w-y.top-y.bottom,_=E-y.left-y.right,A=Za(w-y[T],D),P=Za(E-y[C],_),B=!e.middlewareData.shift;let z=A,L=P;if((i=e.middlewareData.shift)!=null&&i.enabled.x&&(L=_),(s=e.middlewareData.shift)!=null&&s.enabled.y&&(z=D),B&&!v){const I=xn(y.left,0),W=xn(y.right,0),at=xn(y.top,0),ut=xn(y.bottom,0);b?L=E-2*(I!==0||W!==0?I+W:xn(y.left,y.right)):z=w-2*(at!==0||ut!==0?at+ut:xn(y.top,y.bottom))}await m({...e,availableWidth:L,availableHeight:z});const Y=await u.getDimensions(f.floating);return E!==Y.width||w!==Y.height?{reset:{rects:!0}}:{}}}};function td(){return typeof window<"u"}function Do(t){return mR(t)?(t.nodeName||"").toLowerCase():"#document"}function En(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Ci(t){var e;return(e=(mR(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function mR(t){return td()?t instanceof Node||t instanceof En(t).Node:!1}function ti(t){return td()?t instanceof Element||t instanceof En(t).Element:!1}function Ei(t){return td()?t instanceof HTMLElement||t instanceof En(t).HTMLElement:!1}function b1(t){return!td()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof En(t).ShadowRoot}const k5=new Set(["inline","contents"]);function yc(t){const{overflow:e,overflowX:i,overflowY:s,display:o}=ei(t);return/auto|scroll|overlay|hidden|clip/.test(e+s+i)&&!k5.has(o)}const z5=new Set(["table","td","th"]);function B5(t){return z5.has(Do(t))}const V5=[":popover-open",":modal"];function ed(t){return V5.some(e=>{try{return t.matches(e)}catch{return!1}})}const U5=["transform","translate","scale","rotate","perspective"],I5=["transform","translate","scale","rotate","perspective","filter"],H5=["paint","layout","strict","content"];function Ly(t){const e=jy(),i=ti(t)?ei(t):t;return U5.some(s=>i[s]?i[s]!=="none":!1)||(i.containerType?i.containerType!=="normal":!1)||!e&&(i.backdropFilter?i.backdropFilter!=="none":!1)||!e&&(i.filter?i.filter!=="none":!1)||I5.some(s=>(i.willChange||"").includes(s))||H5.some(s=>(i.contain||"").includes(s))}function F5(t){let e=Wa(t);for(;Ei(e)&&!To(e);){if(Ly(e))return e;if(ed(e))return null;e=Wa(e)}return null}function jy(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const G5=new Set(["html","body","#document"]);function To(t){return G5.has(Do(t))}function ei(t){return En(t).getComputedStyle(t)}function nd(t){return ti(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Wa(t){if(Do(t)==="html")return t;const e=t.assignedSlot||t.parentNode||b1(t)&&t.host||Ci(t);return b1(e)?e.host:e}function pR(t){const e=Wa(t);return To(e)?t.ownerDocument?t.ownerDocument.body:t.body:Ei(e)&&yc(e)?e:pR(e)}function ec(t,e,i){var s;e===void 0&&(e=[]),i===void 0&&(i=!0);const o=pR(t),c=o===((s=t.ownerDocument)==null?void 0:s.body),u=En(o);if(c){const f=vg(u);return e.concat(u,u.visualViewport||[],yc(o)?o:[],f&&i?ec(f):[])}return e.concat(o,ec(o,[],i))}function vg(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function gR(t){const e=ei(t);let i=parseFloat(e.width)||0,s=parseFloat(e.height)||0;const o=Ei(t),c=o?t.offsetWidth:i,u=o?t.offsetHeight:s,f=Nf(i)!==c||Nf(s)!==u;return f&&(i=c,s=u),{width:i,height:s,$:f}}function ky(t){return ti(t)?t:t.contextElement}function ro(t){const e=ky(t);if(!Ei(e))return bi(1);const i=e.getBoundingClientRect(),{width:s,height:o,$:c}=gR(e);let u=(c?Nf(i.width):i.width)/s,f=(c?Nf(i.height):i.height)/o;return(!u||!Number.isFinite(u))&&(u=1),(!f||!Number.isFinite(f))&&(f=1),{x:u,y:f}}const q5=bi(0);function yR(t){const e=En(t);return!jy()||!e.visualViewport?q5:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Y5(t,e,i){return e===void 0&&(e=!1),!i||e&&i!==En(t)?!1:e}function Qs(t,e,i,s){e===void 0&&(e=!1),i===void 0&&(i=!1);const o=t.getBoundingClientRect(),c=ky(t);let u=bi(1);e&&(s?ti(s)&&(u=ro(s)):u=ro(t));const f=Y5(c,i,s)?yR(c):bi(0);let m=(o.left+f.x)/u.x,h=(o.top+f.y)/u.y,y=o.width/u.x,p=o.height/u.y;if(c){const v=En(c),b=s&&ti(s)?En(s):s;let E=v,w=vg(E);for(;w&&s&&b!==E;){const T=ro(w),C=w.getBoundingClientRect(),D=ei(w),_=C.left+(w.clientLeft+parseFloat(D.paddingLeft))*T.x,A=C.top+(w.clientTop+parseFloat(D.paddingTop))*T.y;m*=T.x,h*=T.y,y*=T.x,p*=T.y,m+=_,h+=A,E=En(w),w=vg(E)}}return Lf({width:y,height:p,x:m,y:h})}function id(t,e){const i=nd(t).scrollLeft;return e?e.left+i:Qs(Ci(t)).left+i}function vR(t,e){const i=t.getBoundingClientRect(),s=i.left+e.scrollLeft-id(t,i),o=i.top+e.scrollTop;return{x:s,y:o}}function K5(t){let{elements:e,rect:i,offsetParent:s,strategy:o}=t;const c=o==="fixed",u=Ci(s),f=e?ed(e.floating):!1;if(s===u||f&&c)return i;let m={scrollLeft:0,scrollTop:0},h=bi(1);const y=bi(0),p=Ei(s);if((p||!p&&!c)&&((Do(s)!=="body"||yc(u))&&(m=nd(s)),Ei(s))){const b=Qs(s);h=ro(s),y.x=b.x+s.clientLeft,y.y=b.y+s.clientTop}const v=u&&!p&&!c?vR(u,m):bi(0);return{width:i.width*h.x,height:i.height*h.y,x:i.x*h.x-m.scrollLeft*h.x+y.x+v.x,y:i.y*h.y-m.scrollTop*h.y+y.y+v.y}}function X5(t){return Array.from(t.getClientRects())}function Q5(t){const e=Ci(t),i=nd(t),s=t.ownerDocument.body,o=xn(e.scrollWidth,e.clientWidth,s.scrollWidth,s.clientWidth),c=xn(e.scrollHeight,e.clientHeight,s.scrollHeight,s.clientHeight);let u=-i.scrollLeft+id(t);const f=-i.scrollTop;return ei(s).direction==="rtl"&&(u+=xn(e.clientWidth,s.clientWidth)-o),{width:o,height:c,x:u,y:f}}const x1=25;function $5(t,e){const i=En(t),s=Ci(t),o=i.visualViewport;let c=s.clientWidth,u=s.clientHeight,f=0,m=0;if(o){c=o.width,u=o.height;const y=jy();(!y||y&&e==="fixed")&&(f=o.offsetLeft,m=o.offsetTop)}const h=id(s);if(h<=0){const y=s.ownerDocument,p=y.body,v=getComputedStyle(p),b=y.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,E=Math.abs(s.clientWidth-p.clientWidth-b);E<=x1&&(c-=E)}else h<=x1&&(c+=h);return{width:c,height:u,x:f,y:m}}const Z5=new Set(["absolute","fixed"]);function W5(t,e){const i=Qs(t,!0,e==="fixed"),s=i.top+t.clientTop,o=i.left+t.clientLeft,c=Ei(t)?ro(t):bi(1),u=t.clientWidth*c.x,f=t.clientHeight*c.y,m=o*c.x,h=s*c.y;return{width:u,height:f,x:m,y:h}}function S1(t,e,i){let s;if(e==="viewport")s=$5(t,i);else if(e==="document")s=Q5(Ci(t));else if(ti(e))s=W5(e,i);else{const o=yR(t);s={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return Lf(s)}function bR(t,e){const i=Wa(t);return i===e||!ti(i)||To(i)?!1:ei(i).position==="fixed"||bR(i,e)}function J5(t,e){const i=e.get(t);if(i)return i;let s=ec(t,[],!1).filter(f=>ti(f)&&Do(f)!=="body"),o=null;const c=ei(t).position==="fixed";let u=c?Wa(t):t;for(;ti(u)&&!To(u);){const f=ei(u),m=Ly(u);!m&&f.position==="fixed"&&(o=null),(c?!m&&!o:!m&&f.position==="static"&&!!o&&Z5.has(o.position)||yc(u)&&!m&&bR(t,u))?s=s.filter(y=>y!==u):o=f,u=Wa(u)}return e.set(t,s),s}function t4(t){let{element:e,boundary:i,rootBoundary:s,strategy:o}=t;const u=[...i==="clippingAncestors"?ed(e)?[]:J5(e,this._c):[].concat(i),s],f=u[0],m=u.reduce((h,y)=>{const p=S1(e,y,o);return h.top=xn(p.top,h.top),h.right=Za(p.right,h.right),h.bottom=Za(p.bottom,h.bottom),h.left=xn(p.left,h.left),h},S1(e,f,o));return{width:m.right-m.left,height:m.bottom-m.top,x:m.left,y:m.top}}function e4(t){const{width:e,height:i}=gR(t);return{width:e,height:i}}function n4(t,e,i){const s=Ei(e),o=Ci(e),c=i==="fixed",u=Qs(t,!0,c,e);let f={scrollLeft:0,scrollTop:0};const m=bi(0);function h(){m.x=id(o)}if(s||!s&&!c)if((Do(e)!=="body"||yc(o))&&(f=nd(e)),s){const b=Qs(e,!0,c,e);m.x=b.x+e.clientLeft,m.y=b.y+e.clientTop}else o&&h();c&&!s&&o&&h();const y=o&&!s&&!c?vR(o,f):bi(0),p=u.left+f.scrollLeft-m.x-y.x,v=u.top+f.scrollTop-m.y-y.y;return{x:p,y:v,width:u.width,height:u.height}}function gp(t){return ei(t).position==="static"}function w1(t,e){if(!Ei(t)||ei(t).position==="fixed")return null;if(e)return e(t);let i=t.offsetParent;return Ci(t)===i&&(i=i.ownerDocument.body),i}function xR(t,e){const i=En(t);if(ed(t))return i;if(!Ei(t)){let o=Wa(t);for(;o&&!To(o);){if(ti(o)&&!gp(o))return o;o=Wa(o)}return i}let s=w1(t,e);for(;s&&B5(s)&&gp(s);)s=w1(s,e);return s&&To(s)&&gp(s)&&!Ly(s)?i:s||F5(t)||i}const i4=async function(t){const e=this.getOffsetParent||xR,i=this.getDimensions,s=await i(t.floating);return{reference:n4(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function a4(t){return ei(t).direction==="rtl"}const s4={convertOffsetParentRelativeRectToViewportRelativeRect:K5,getDocumentElement:Ci,getClippingRect:t4,getOffsetParent:xR,getElementRects:i4,getClientRects:X5,getDimensions:e4,getScale:ro,isElement:ti,isRTL:a4};function SR(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function r4(t,e){let i=null,s;const o=Ci(t);function c(){var f;clearTimeout(s),(f=i)==null||f.disconnect(),i=null}function u(f,m){f===void 0&&(f=!1),m===void 0&&(m=1),c();const h=t.getBoundingClientRect(),{left:y,top:p,width:v,height:b}=h;if(f||e(),!v||!b)return;const E=Zu(p),w=Zu(o.clientWidth-(y+v)),T=Zu(o.clientHeight-(p+b)),C=Zu(y),_={rootMargin:-E+"px "+-w+"px "+-T+"px "+-C+"px",threshold:xn(0,Za(1,m))||1};let A=!0;function P(B){const z=B[0].intersectionRatio;if(z!==m){if(!A)return u();z?u(!1,z):s=setTimeout(()=>{u(!1,1e-7)},1e3)}z===1&&!SR(h,t.getBoundingClientRect())&&u(),A=!1}try{i=new IntersectionObserver(P,{..._,root:o.ownerDocument})}catch{i=new IntersectionObserver(P,_)}i.observe(t)}return u(!0),c}function o4(t,e,i,s){s===void 0&&(s={});const{ancestorScroll:o=!0,ancestorResize:c=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:m=!1}=s,h=ky(t),y=o||c?[...h?ec(h):[],...ec(e)]:[];y.forEach(C=>{o&&C.addEventListener("scroll",i,{passive:!0}),c&&C.addEventListener("resize",i)});const p=h&&f?r4(h,i):null;let v=-1,b=null;u&&(b=new ResizeObserver(C=>{let[D]=C;D&&D.target===h&&b&&(b.unobserve(e),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var _;(_=b)==null||_.observe(e)})),i()}),h&&!m&&b.observe(h),b.observe(e));let E,w=m?Qs(t):null;m&&T();function T(){const C=Qs(t);w&&!SR(w,C)&&i(),w=C,E=requestAnimationFrame(T)}return i(),()=>{var C;y.forEach(D=>{o&&D.removeEventListener("scroll",i),c&&D.removeEventListener("resize",i)}),p==null||p(),(C=b)==null||C.disconnect(),b=null,m&&cancelAnimationFrame(E)}}const l4=N5,c4=P5,u4=_5,f4=j5,d4=D5,E1=A5,h4=L5,m4=(t,e,i)=>{const s=new Map,o={platform:s4,...i},c={...o.platform,_c:s};return M5(t,e,{...o,platform:c})};var p4=typeof document<"u",g4=function(){},df=p4?S.useLayoutEffect:g4;function jf(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let i,s,o;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(i=t.length,i!==e.length)return!1;for(s=i;s--!==0;)if(!jf(t[s],e[s]))return!1;return!0}if(o=Object.keys(t),i=o.length,i!==Object.keys(e).length)return!1;for(s=i;s--!==0;)if(!{}.hasOwnProperty.call(e,o[s]))return!1;for(s=i;s--!==0;){const c=o[s];if(!(c==="_owner"&&t.$$typeof)&&!jf(t[c],e[c]))return!1}return!0}return t!==t&&e!==e}function wR(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function T1(t,e){const i=wR(t);return Math.round(e*i)/i}function yp(t){const e=S.useRef(t);return df(()=>{e.current=t}),e}function y4(t){t===void 0&&(t={});const{placement:e="bottom",strategy:i="absolute",middleware:s=[],platform:o,elements:{reference:c,floating:u}={},transform:f=!0,whileElementsMounted:m,open:h}=t,[y,p]=S.useState({x:0,y:0,strategy:i,placement:e,middlewareData:{},isPositioned:!1}),[v,b]=S.useState(s);jf(v,s)||b(s);const[E,w]=S.useState(null),[T,C]=S.useState(null),D=S.useCallback(H=>{H!==B.current&&(B.current=H,w(H))},[]),_=S.useCallback(H=>{H!==z.current&&(z.current=H,C(H))},[]),A=c||E,P=u||T,B=S.useRef(null),z=S.useRef(null),L=S.useRef(y),Y=m!=null,I=yp(m),W=yp(o),at=yp(h),ut=S.useCallback(()=>{if(!B.current||!z.current)return;const H={placement:e,strategy:i,middleware:v};W.current&&(H.platform=W.current),m4(B.current,z.current,H).then(et=>{const ct={...et,isPositioned:at.current!==!1};ft.current&&!jf(L.current,ct)&&(L.current=ct,Gf.flushSync(()=>{p(ct)}))})},[v,e,i,W,at]);df(()=>{h===!1&&L.current.isPositioned&&(L.current.isPositioned=!1,p(H=>({...H,isPositioned:!1})))},[h]);const ft=S.useRef(!1);df(()=>(ft.current=!0,()=>{ft.current=!1}),[]),df(()=>{if(A&&(B.current=A),P&&(z.current=P),A&&P){if(I.current)return I.current(A,P,ut);ut()}},[A,P,ut,I,Y]);const ot=S.useMemo(()=>({reference:B,floating:z,setReference:D,setFloating:_}),[D,_]),N=S.useMemo(()=>({reference:A,floating:P}),[A,P]),q=S.useMemo(()=>{const H={position:i,left:0,top:0};if(!N.floating)return H;const et=T1(N.floating,y.x),ct=T1(N.floating,y.y);return f?{...H,transform:"translate("+et+"px, "+ct+"px)",...wR(N.floating)>=1.5&&{willChange:"transform"}}:{position:i,left:et,top:ct}},[i,f,N.floating,y.x,y.y]);return S.useMemo(()=>({...y,update:ut,refs:ot,elements:N,floatingStyles:q}),[y,ut,ot,N,q])}const v4=t=>{function e(i){return{}.hasOwnProperty.call(i,"current")}return{name:"arrow",options:t,fn(i){const{element:s,padding:o}=typeof t=="function"?t(i):t;return s&&e(s)?s.current!=null?E1({element:s.current,padding:o}).fn(i):{}:s?E1({element:s,padding:o}).fn(i):{}}}},b4=(t,e)=>({...l4(t),options:[t,e]}),x4=(t,e)=>({...c4(t),options:[t,e]}),S4=(t,e)=>({...h4(t),options:[t,e]}),w4=(t,e)=>({...u4(t),options:[t,e]}),E4=(t,e)=>({...f4(t),options:[t,e]}),T4=(t,e)=>({...d4(t),options:[t,e]}),C4=(t,e)=>({...v4(t),options:[t,e]});var R4="Arrow",ER=S.forwardRef((t,e)=>{const{children:i,width:s=10,height:o=5,...c}=t;return R.jsx(ie.svg,{...c,ref:e,width:s,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?i:R.jsx("polygon",{points:"0,0 30,0 15,10"})})});ER.displayName=R4;var M4=ER,zy="Popper",[TR,ad]=Js(zy),[A4,CR]=TR(zy),RR=t=>{const{__scopePopper:e,children:i}=t,[s,o]=S.useState(null);return R.jsx(A4,{scope:e,anchor:s,onAnchorChange:o,children:i})};RR.displayName=zy;var MR="PopperAnchor",AR=S.forwardRef((t,e)=>{const{__scopePopper:i,virtualRef:s,...o}=t,c=CR(MR,i),u=S.useRef(null),f=we(e,u),m=S.useRef(null);return S.useEffect(()=>{const h=m.current;m.current=(s==null?void 0:s.current)||u.current,h!==m.current&&c.onAnchorChange(m.current)}),s?null:R.jsx(ie.div,{...o,ref:f})});AR.displayName=MR;var By="PopperContent",[_4,D4]=TR(By),_R=S.forwardRef((t,e)=>{var st,dt,mt,Ut,le,ce;const{__scopePopper:i,side:s="bottom",sideOffset:o=0,align:c="center",alignOffset:u=0,arrowPadding:f=0,avoidCollisions:m=!0,collisionBoundary:h=[],collisionPadding:y=0,sticky:p="partial",hideWhenDetached:v=!1,updatePositionStrategy:b="optimized",onPlaced:E,...w}=t,T=CR(By,i),[C,D]=S.useState(null),_=we(e,fn=>D(fn)),[A,P]=S.useState(null),B=m5(A),z=(B==null?void 0:B.width)??0,L=(B==null?void 0:B.height)??0,Y=s+(c!=="center"?"-"+c:""),I=typeof y=="number"?y:{top:0,right:0,bottom:0,left:0,...y},W=Array.isArray(h)?h:[h],at=W.length>0,ut={padding:I,boundary:W.filter(N4),altBoundary:at},{refs:ft,floatingStyles:ot,placement:N,isPositioned:q,middlewareData:H}=y4({strategy:"fixed",placement:Y,whileElementsMounted:(...fn)=>o4(...fn,{animationFrame:b==="always"}),elements:{reference:T.anchor},middleware:[b4({mainAxis:o+L,alignmentAxis:u}),m&&x4({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?S4():void 0,...ut}),m&&w4({...ut}),E4({...ut,apply:({elements:fn,rects:ke,availableWidth:ii,availableHeight:Hn})=>{const{width:ze,height:Fn}=ke.reference,Qt=fn.floating.style;Qt.setProperty("--radix-popper-available-width",`${ii}px`),Qt.setProperty("--radix-popper-available-height",`${Hn}px`),Qt.setProperty("--radix-popper-anchor-width",`${ze}px`),Qt.setProperty("--radix-popper-anchor-height",`${Fn}px`)}}),A&&C4({element:A,padding:f}),P4({arrowWidth:z,arrowHeight:L}),v&&T4({strategy:"referenceHidden",...ut})]}),[et,ct]=NR(N),O=Ji(E);$a(()=>{q&&(O==null||O())},[q,O]);const k=(st=H.arrow)==null?void 0:st.x,G=(dt=H.arrow)==null?void 0:dt.y,$=((mt=H.arrow)==null?void 0:mt.centerOffset)!==0,[J,lt]=S.useState();return $a(()=>{C&<(window.getComputedStyle(C).zIndex)},[C]),R.jsx("div",{ref:ft.setFloating,"data-radix-popper-content-wrapper":"",style:{...ot,transform:q?ot.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:J,"--radix-popper-transform-origin":[(Ut=H.transformOrigin)==null?void 0:Ut.x,(le=H.transformOrigin)==null?void 0:le.y].join(" "),...((ce=H.hide)==null?void 0:ce.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:R.jsx(_4,{scope:i,placedSide:et,onArrowChange:P,arrowX:k,arrowY:G,shouldHideArrow:$,children:R.jsx(ie.div,{"data-side":et,"data-align":ct,...w,ref:_,style:{...w.style,animation:q?void 0:"none"}})})})});_R.displayName=By;var DR="PopperArrow",O4={top:"bottom",right:"left",bottom:"top",left:"right"},OR=S.forwardRef(function(e,i){const{__scopePopper:s,...o}=e,c=D4(DR,s),u=O4[c.placedSide];return R.jsx("span",{ref:c.onArrowChange,style:{position:"absolute",left:c.arrowX,top:c.arrowY,[u]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[c.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[c.placedSide],visibility:c.shouldHideArrow?"hidden":void 0},children:R.jsx(M4,{...o,ref:i,style:{...o.style,display:"block"}})})});OR.displayName=DR;function N4(t){return t!==null}var P4=t=>({name:"transformOrigin",options:t,fn(e){var T,C,D;const{placement:i,rects:s,middlewareData:o}=e,u=((T=o.arrow)==null?void 0:T.centerOffset)!==0,f=u?0:t.arrowWidth,m=u?0:t.arrowHeight,[h,y]=NR(i),p={start:"0%",center:"50%",end:"100%"}[y],v=(((C=o.arrow)==null?void 0:C.x)??0)+f/2,b=(((D=o.arrow)==null?void 0:D.y)??0)+m/2;let E="",w="";return h==="bottom"?(E=u?p:`${v}px`,w=`${-m}px`):h==="top"?(E=u?p:`${v}px`,w=`${s.floating.height+m}px`):h==="right"?(E=`${-m}px`,w=u?p:`${b}px`):h==="left"&&(E=`${s.floating.width+m}px`,w=u?p:`${b}px`),{data:{x:E,y:w}}}});function NR(t){const[e,i="center"]=t.split("-");return[e,i]}var PR=RR,LR=AR,jR=_R,kR=OR,vp="rovingFocusGroup.onEntryFocus",L4={bubbles:!1,cancelable:!0},vc="RovingFocusGroup",[bg,zR,j4]=PC(vc),[k4,BR]=Js(vc,[j4]),[z4,B4]=k4(vc),VR=S.forwardRef((t,e)=>R.jsx(bg.Provider,{scope:t.__scopeRovingFocusGroup,children:R.jsx(bg.Slot,{scope:t.__scopeRovingFocusGroup,children:R.jsx(V4,{...t,ref:e})})}));VR.displayName=vc;var V4=S.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:i,orientation:s,loop:o=!1,dir:c,currentTabStopId:u,defaultCurrentTabStopId:f,onCurrentTabStopIdChange:m,onEntryFocus:h,preventScrollOnEntryFocus:y=!1,...p}=t,v=S.useRef(null),b=we(e,v),E=LC(c),[w,T]=Qf({prop:u,defaultProp:f??null,onChange:m,caller:vc}),[C,D]=S.useState(!1),_=Ji(h),A=zR(i),P=S.useRef(!1),[B,z]=S.useState(0);return S.useEffect(()=>{const L=v.current;if(L)return L.addEventListener(vp,_),()=>L.removeEventListener(vp,_)},[_]),R.jsx(z4,{scope:i,orientation:s,dir:E,loop:o,currentTabStopId:w,onItemFocus:S.useCallback(L=>T(L),[T]),onItemShiftTab:S.useCallback(()=>D(!0),[]),onFocusableItemAdd:S.useCallback(()=>z(L=>L+1),[]),onFocusableItemRemove:S.useCallback(()=>z(L=>L-1),[]),children:R.jsx(ie.div,{tabIndex:C||B===0?-1:0,"data-orientation":s,...p,ref:b,style:{outline:"none",...t.style},onMouseDown:Tt(t.onMouseDown,()=>{P.current=!0}),onFocus:Tt(t.onFocus,L=>{const Y=!P.current;if(L.target===L.currentTarget&&Y&&!C){const I=new CustomEvent(vp,L4);if(L.currentTarget.dispatchEvent(I),!I.defaultPrevented){const W=A().filter(N=>N.focusable),at=W.find(N=>N.active),ut=W.find(N=>N.id===w),ot=[at,ut,...W].filter(Boolean).map(N=>N.ref.current);HR(ot,y)}}P.current=!1}),onBlur:Tt(t.onBlur,()=>D(!1))})})}),UR="RovingFocusGroupItem",IR=S.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:i,focusable:s=!0,active:o=!1,tabStopId:c,children:u,...f}=t,m=wn(),h=c||m,y=B4(UR,i),p=y.currentTabStopId===h,v=zR(i),{onFocusableItemAdd:b,onFocusableItemRemove:E,currentTabStopId:w}=y;return S.useEffect(()=>{if(s)return b(),()=>E()},[s,b,E]),R.jsx(bg.ItemSlot,{scope:i,id:h,focusable:s,active:o,children:R.jsx(ie.span,{tabIndex:p?0:-1,"data-orientation":y.orientation,...f,ref:e,onMouseDown:Tt(t.onMouseDown,T=>{s?y.onItemFocus(h):T.preventDefault()}),onFocus:Tt(t.onFocus,()=>y.onItemFocus(h)),onKeyDown:Tt(t.onKeyDown,T=>{if(T.key==="Tab"&&T.shiftKey){y.onItemShiftTab();return}if(T.target!==T.currentTarget)return;const C=H4(T,y.orientation,y.dir);if(C!==void 0){if(T.metaKey||T.ctrlKey||T.altKey||T.shiftKey)return;T.preventDefault();let _=v().filter(A=>A.focusable).map(A=>A.ref.current);if(C==="last")_.reverse();else if(C==="prev"||C==="next"){C==="prev"&&_.reverse();const A=_.indexOf(T.currentTarget);_=y.loop?F4(_,A+1):_.slice(A+1)}setTimeout(()=>HR(_))}}),children:typeof u=="function"?u({isCurrentTabStop:p,hasTabStop:w!=null}):u})})});IR.displayName=UR;var U4={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function I4(t,e){return e!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}function H4(t,e,i){const s=I4(t.key,i);if(!(e==="vertical"&&["ArrowLeft","ArrowRight"].includes(s))&&!(e==="horizontal"&&["ArrowUp","ArrowDown"].includes(s)))return U4[s]}function HR(t,e=!1){const i=document.activeElement;for(const s of t)if(s===i||(s.focus({preventScroll:e}),document.activeElement!==i))return}function F4(t,e){return t.map((i,s)=>t[(e+s)%t.length])}var G4=VR,q4=IR,xg=["Enter"," "],Y4=["ArrowDown","PageUp","Home"],FR=["ArrowUp","PageDown","End"],K4=[...Y4,...FR],X4={ltr:[...xg,"ArrowRight"],rtl:[...xg,"ArrowLeft"]},Q4={ltr:["ArrowLeft"],rtl:["ArrowRight"]},bc="Menu",[nc,$4,Z4]=PC(bc),[tr,GR]=Js(bc,[Z4,ad,BR]),sd=ad(),qR=BR(),[W4,er]=tr(bc),[J4,xc]=tr(bc),YR=t=>{const{__scopeMenu:e,open:i=!1,children:s,dir:o,onOpenChange:c,modal:u=!0}=t,f=sd(e),[m,h]=S.useState(null),y=S.useRef(!1),p=Ji(c),v=LC(o);return S.useEffect(()=>{const b=()=>{y.current=!0,document.addEventListener("pointerdown",E,{capture:!0,once:!0}),document.addEventListener("pointermove",E,{capture:!0,once:!0})},E=()=>y.current=!1;return document.addEventListener("keydown",b,{capture:!0}),()=>{document.removeEventListener("keydown",b,{capture:!0}),document.removeEventListener("pointerdown",E,{capture:!0}),document.removeEventListener("pointermove",E,{capture:!0})}},[]),R.jsx(PR,{...f,children:R.jsx(W4,{scope:e,open:i,onOpenChange:p,content:m,onContentChange:h,children:R.jsx(J4,{scope:e,onClose:S.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:y,dir:v,modal:u,children:s})})})};YR.displayName=bc;var tB="MenuAnchor",Vy=S.forwardRef((t,e)=>{const{__scopeMenu:i,...s}=t,o=sd(i);return R.jsx(LR,{...o,...s,ref:e})});Vy.displayName=tB;var Uy="MenuPortal",[eB,KR]=tr(Uy,{forceMount:void 0}),XR=t=>{const{__scopeMenu:e,forceMount:i,children:s,container:o}=t,c=er(Uy,e);return R.jsx(eB,{scope:e,forceMount:i,children:R.jsx(Ti,{present:i||c.open,children:R.jsx(Zf,{asChild:!0,container:o,children:s})})})};XR.displayName=Uy;var Un="MenuContent",[nB,Iy]=tr(Un),QR=S.forwardRef((t,e)=>{const i=KR(Un,t.__scopeMenu),{forceMount:s=i.forceMount,...o}=t,c=er(Un,t.__scopeMenu),u=xc(Un,t.__scopeMenu);return R.jsx(nc.Provider,{scope:t.__scopeMenu,children:R.jsx(Ti,{present:s||c.open,children:R.jsx(nc.Slot,{scope:t.__scopeMenu,children:u.modal?R.jsx(iB,{...o,ref:e}):R.jsx(aB,{...o,ref:e})})})})}),iB=S.forwardRef((t,e)=>{const i=er(Un,t.__scopeMenu),s=S.useRef(null),o=we(e,s);return S.useEffect(()=>{const c=s.current;if(c)return KC(c)},[]),R.jsx(Hy,{...t,ref:o,trapFocus:i.open,disableOutsidePointerEvents:i.open,disableOutsideScroll:!0,onFocusOutside:Tt(t.onFocusOutside,c=>c.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>i.onOpenChange(!1)})}),aB=S.forwardRef((t,e)=>{const i=er(Un,t.__scopeMenu);return R.jsx(Hy,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>i.onOpenChange(!1)})}),sB=Eo("MenuContent.ScrollLock"),Hy=S.forwardRef((t,e)=>{const{__scopeMenu:i,loop:s=!1,trapFocus:o,onOpenAutoFocus:c,onCloseAutoFocus:u,disableOutsidePointerEvents:f,onEntryFocus:m,onEscapeKeyDown:h,onPointerDownOutside:y,onFocusOutside:p,onInteractOutside:v,onDismiss:b,disableOutsideScroll:E,...w}=t,T=er(Un,i),C=xc(Un,i),D=sd(i),_=qR(i),A=$4(i),[P,B]=S.useState(null),z=S.useRef(null),L=we(e,z,T.onContentChange),Y=S.useRef(0),I=S.useRef(""),W=S.useRef(0),at=S.useRef(null),ut=S.useRef("right"),ft=S.useRef(0),ot=E?wy:S.Fragment,N=E?{as:sB,allowPinchZoom:!0}:void 0,q=et=>{var st,dt;const ct=I.current+et,O=A().filter(mt=>!mt.disabled),k=document.activeElement,G=(st=O.find(mt=>mt.ref.current===k))==null?void 0:st.textValue,$=O.map(mt=>mt.textValue),J=yB($,ct,G),lt=(dt=O.find(mt=>mt.textValue===J))==null?void 0:dt.ref.current;(function mt(Ut){I.current=Ut,window.clearTimeout(Y.current),Ut!==""&&(Y.current=window.setTimeout(()=>mt(""),1e3))})(ct),lt&&setTimeout(()=>lt.focus())};S.useEffect(()=>()=>window.clearTimeout(Y.current),[]),BC();const H=S.useCallback(et=>{var O,k;return ut.current===((O=at.current)==null?void 0:O.side)&&bB(et,(k=at.current)==null?void 0:k.area)},[]);return R.jsx(nB,{scope:i,searchRef:I,onItemEnter:S.useCallback(et=>{H(et)&&et.preventDefault()},[H]),onItemLeave:S.useCallback(et=>{var ct;H(et)||((ct=z.current)==null||ct.focus(),B(null))},[H]),onTriggerLeave:S.useCallback(et=>{H(et)&&et.preventDefault()},[H]),pointerGraceTimerRef:W,onPointerGraceIntentChange:S.useCallback(et=>{at.current=et},[]),children:R.jsx(ot,{...N,children:R.jsx(Sy,{asChild:!0,trapped:o,onMountAutoFocus:Tt(c,et=>{var ct;et.preventDefault(),(ct=z.current)==null||ct.focus({preventScroll:!0})}),onUnmountAutoFocus:u,children:R.jsx($f,{asChild:!0,disableOutsidePointerEvents:f,onEscapeKeyDown:h,onPointerDownOutside:y,onFocusOutside:p,onInteractOutside:v,onDismiss:b,children:R.jsx(G4,{asChild:!0,..._,dir:C.dir,orientation:"vertical",loop:s,currentTabStopId:P,onCurrentTabStopIdChange:B,onEntryFocus:Tt(m,et=>{C.isUsingKeyboardRef.current||et.preventDefault()}),preventScrollOnEntryFocus:!0,children:R.jsx(jR,{role:"menu","aria-orientation":"vertical","data-state":fM(T.open),"data-radix-menu-content":"",dir:C.dir,...D,...w,ref:L,style:{outline:"none",...w.style},onKeyDown:Tt(w.onKeyDown,et=>{const O=et.target.closest("[data-radix-menu-content]")===et.currentTarget,k=et.ctrlKey||et.altKey||et.metaKey,G=et.key.length===1;O&&(et.key==="Tab"&&et.preventDefault(),!k&&G&&q(et.key));const $=z.current;if(et.target!==$||!K4.includes(et.key))return;et.preventDefault();const lt=A().filter(st=>!st.disabled).map(st=>st.ref.current);FR.includes(et.key)&<.reverse(),pB(lt)}),onBlur:Tt(t.onBlur,et=>{et.currentTarget.contains(et.target)||(window.clearTimeout(Y.current),I.current="")}),onPointerMove:Tt(t.onPointerMove,ic(et=>{const ct=et.target,O=ft.current!==et.clientX;if(et.currentTarget.contains(ct)&&O){const k=et.clientX>ft.current?"right":"left";ut.current=k,ft.current=et.clientX}}))})})})})})})});QR.displayName=Un;var rB="MenuGroup",Fy=S.forwardRef((t,e)=>{const{__scopeMenu:i,...s}=t;return R.jsx(ie.div,{role:"group",...s,ref:e})});Fy.displayName=rB;var oB="MenuLabel",$R=S.forwardRef((t,e)=>{const{__scopeMenu:i,...s}=t;return R.jsx(ie.div,{...s,ref:e})});$R.displayName=oB;var kf="MenuItem",C1="menu.itemSelect",rd=S.forwardRef((t,e)=>{const{disabled:i=!1,onSelect:s,...o}=t,c=S.useRef(null),u=xc(kf,t.__scopeMenu),f=Iy(kf,t.__scopeMenu),m=we(e,c),h=S.useRef(!1),y=()=>{const p=c.current;if(!i&&p){const v=new CustomEvent(C1,{bubbles:!0,cancelable:!0});p.addEventListener(C1,b=>s==null?void 0:s(b),{once:!0}),OC(p,v),v.defaultPrevented?h.current=!1:u.onClose()}};return R.jsx(ZR,{...o,ref:m,disabled:i,onClick:Tt(t.onClick,y),onPointerDown:p=>{var v;(v=t.onPointerDown)==null||v.call(t,p),h.current=!0},onPointerUp:Tt(t.onPointerUp,p=>{var v;h.current||(v=p.currentTarget)==null||v.click()}),onKeyDown:Tt(t.onKeyDown,p=>{const v=f.searchRef.current!=="";i||v&&p.key===" "||xg.includes(p.key)&&(p.currentTarget.click(),p.preventDefault())})})});rd.displayName=kf;var ZR=S.forwardRef((t,e)=>{const{__scopeMenu:i,disabled:s=!1,textValue:o,...c}=t,u=Iy(kf,i),f=qR(i),m=S.useRef(null),h=we(e,m),[y,p]=S.useState(!1),[v,b]=S.useState("");return S.useEffect(()=>{const E=m.current;E&&b((E.textContent??"").trim())},[c.children]),R.jsx(nc.ItemSlot,{scope:i,disabled:s,textValue:o??v,children:R.jsx(q4,{asChild:!0,...f,focusable:!s,children:R.jsx(ie.div,{role:"menuitem","data-highlighted":y?"":void 0,"aria-disabled":s||void 0,"data-disabled":s?"":void 0,...c,ref:h,onPointerMove:Tt(t.onPointerMove,ic(E=>{s?u.onItemLeave(E):(u.onItemEnter(E),E.defaultPrevented||E.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:Tt(t.onPointerLeave,ic(E=>u.onItemLeave(E))),onFocus:Tt(t.onFocus,()=>p(!0)),onBlur:Tt(t.onBlur,()=>p(!1))})})})}),lB="MenuCheckboxItem",WR=S.forwardRef((t,e)=>{const{checked:i=!1,onCheckedChange:s,...o}=t;return R.jsx(iM,{scope:t.__scopeMenu,checked:i,children:R.jsx(rd,{role:"menuitemcheckbox","aria-checked":zf(i)?"mixed":i,...o,ref:e,"data-state":qy(i),onSelect:Tt(o.onSelect,()=>s==null?void 0:s(zf(i)?!0:!i),{checkForDefaultPrevented:!1})})})});WR.displayName=lB;var JR="MenuRadioGroup",[cB,uB]=tr(JR,{value:void 0,onValueChange:()=>{}}),tM=S.forwardRef((t,e)=>{const{value:i,onValueChange:s,...o}=t,c=Ji(s);return R.jsx(cB,{scope:t.__scopeMenu,value:i,onValueChange:c,children:R.jsx(Fy,{...o,ref:e})})});tM.displayName=JR;var eM="MenuRadioItem",nM=S.forwardRef((t,e)=>{const{value:i,...s}=t,o=uB(eM,t.__scopeMenu),c=i===o.value;return R.jsx(iM,{scope:t.__scopeMenu,checked:c,children:R.jsx(rd,{role:"menuitemradio","aria-checked":c,...s,ref:e,"data-state":qy(c),onSelect:Tt(s.onSelect,()=>{var u;return(u=o.onValueChange)==null?void 0:u.call(o,i)},{checkForDefaultPrevented:!1})})})});nM.displayName=eM;var Gy="MenuItemIndicator",[iM,fB]=tr(Gy,{checked:!1}),aM=S.forwardRef((t,e)=>{const{__scopeMenu:i,forceMount:s,...o}=t,c=fB(Gy,i);return R.jsx(Ti,{present:s||zf(c.checked)||c.checked===!0,children:R.jsx(ie.span,{...o,ref:e,"data-state":qy(c.checked)})})});aM.displayName=Gy;var dB="MenuSeparator",sM=S.forwardRef((t,e)=>{const{__scopeMenu:i,...s}=t;return R.jsx(ie.div,{role:"separator","aria-orientation":"horizontal",...s,ref:e})});sM.displayName=dB;var hB="MenuArrow",rM=S.forwardRef((t,e)=>{const{__scopeMenu:i,...s}=t,o=sd(i);return R.jsx(kR,{...o,...s,ref:e})});rM.displayName=hB;var mB="MenuSub",[H8,oM]=tr(mB),Vl="MenuSubTrigger",lM=S.forwardRef((t,e)=>{const i=er(Vl,t.__scopeMenu),s=xc(Vl,t.__scopeMenu),o=oM(Vl,t.__scopeMenu),c=Iy(Vl,t.__scopeMenu),u=S.useRef(null),{pointerGraceTimerRef:f,onPointerGraceIntentChange:m}=c,h={__scopeMenu:t.__scopeMenu},y=S.useCallback(()=>{u.current&&window.clearTimeout(u.current),u.current=null},[]);return S.useEffect(()=>y,[y]),S.useEffect(()=>{const p=f.current;return()=>{window.clearTimeout(p),m(null)}},[f,m]),R.jsx(Vy,{asChild:!0,...h,children:R.jsx(ZR,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":o.contentId,"data-state":fM(i.open),...t,ref:wi(e,o.onTriggerChange),onClick:p=>{var v;(v=t.onClick)==null||v.call(t,p),!(t.disabled||p.defaultPrevented)&&(p.currentTarget.focus(),i.open||i.onOpenChange(!0))},onPointerMove:Tt(t.onPointerMove,ic(p=>{c.onItemEnter(p),!p.defaultPrevented&&!t.disabled&&!i.open&&!u.current&&(c.onPointerGraceIntentChange(null),u.current=window.setTimeout(()=>{i.onOpenChange(!0),y()},100))})),onPointerLeave:Tt(t.onPointerLeave,ic(p=>{var b,E;y();const v=(b=i.content)==null?void 0:b.getBoundingClientRect();if(v){const w=(E=i.content)==null?void 0:E.dataset.side,T=w==="right",C=T?-5:5,D=v[T?"left":"right"],_=v[T?"right":"left"];c.onPointerGraceIntentChange({area:[{x:p.clientX+C,y:p.clientY},{x:D,y:v.top},{x:_,y:v.top},{x:_,y:v.bottom},{x:D,y:v.bottom}],side:w}),window.clearTimeout(f.current),f.current=window.setTimeout(()=>c.onPointerGraceIntentChange(null),300)}else{if(c.onTriggerLeave(p),p.defaultPrevented)return;c.onPointerGraceIntentChange(null)}})),onKeyDown:Tt(t.onKeyDown,p=>{var b;const v=c.searchRef.current!=="";t.disabled||v&&p.key===" "||X4[s.dir].includes(p.key)&&(i.onOpenChange(!0),(b=i.content)==null||b.focus(),p.preventDefault())})})})});lM.displayName=Vl;var cM="MenuSubContent",uM=S.forwardRef((t,e)=>{const i=KR(Un,t.__scopeMenu),{forceMount:s=i.forceMount,...o}=t,c=er(Un,t.__scopeMenu),u=xc(Un,t.__scopeMenu),f=oM(cM,t.__scopeMenu),m=S.useRef(null),h=we(e,m);return R.jsx(nc.Provider,{scope:t.__scopeMenu,children:R.jsx(Ti,{present:s||c.open,children:R.jsx(nc.Slot,{scope:t.__scopeMenu,children:R.jsx(Hy,{id:f.contentId,"aria-labelledby":f.triggerId,...o,ref:h,align:"start",side:u.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:y=>{var p;u.isUsingKeyboardRef.current&&((p=m.current)==null||p.focus()),y.preventDefault()},onCloseAutoFocus:y=>y.preventDefault(),onFocusOutside:Tt(t.onFocusOutside,y=>{y.target!==f.trigger&&c.onOpenChange(!1)}),onEscapeKeyDown:Tt(t.onEscapeKeyDown,y=>{u.onClose(),y.preventDefault()}),onKeyDown:Tt(t.onKeyDown,y=>{var b;const p=y.currentTarget.contains(y.target),v=Q4[u.dir].includes(y.key);p&&v&&(c.onOpenChange(!1),(b=f.trigger)==null||b.focus(),y.preventDefault())})})})})})});uM.displayName=cM;function fM(t){return t?"open":"closed"}function zf(t){return t==="indeterminate"}function qy(t){return zf(t)?"indeterminate":t?"checked":"unchecked"}function pB(t){const e=document.activeElement;for(const i of t)if(i===e||(i.focus(),document.activeElement!==e))return}function gB(t,e){return t.map((i,s)=>t[(e+s)%t.length])}function yB(t,e,i){const o=e.length>1&&Array.from(e).every(h=>h===e[0])?e[0]:e,c=i?t.indexOf(i):-1;let u=gB(t,Math.max(c,0));o.length===1&&(u=u.filter(h=>h!==i));const m=u.find(h=>h.toLowerCase().startsWith(o.toLowerCase()));return m!==i?m:void 0}function vB(t,e){const{x:i,y:s}=t;let o=!1;for(let c=0,u=e.length-1;c<e.length;u=c++){const f=e[c],m=e[u],h=f.x,y=f.y,p=m.x,v=m.y;y>s!=v>s&&i<(p-h)*(s-y)/(v-y)+h&&(o=!o)}return o}function bB(t,e){if(!e)return!1;const i={x:t.clientX,y:t.clientY};return vB(i,e)}function ic(t){return e=>e.pointerType==="mouse"?t(e):void 0}var xB=YR,SB=Vy,wB=XR,EB=QR,TB=Fy,CB=$R,RB=rd,MB=WR,AB=tM,_B=nM,DB=aM,OB=sM,NB=rM,PB=lM,LB=uM,od="DropdownMenu",[jB]=Js(od,[GR]),$e=GR(),[kB,dM]=jB(od),hM=t=>{const{__scopeDropdownMenu:e,children:i,dir:s,open:o,defaultOpen:c,onOpenChange:u,modal:f=!0}=t,m=$e(e),h=S.useRef(null),[y,p]=Qf({prop:o,defaultProp:c??!1,onChange:u,caller:od});return R.jsx(kB,{scope:e,triggerId:wn(),triggerRef:h,contentId:wn(),open:y,onOpenChange:p,onOpenToggle:S.useCallback(()=>p(v=>!v),[p]),modal:f,children:R.jsx(xB,{...m,open:y,onOpenChange:p,dir:s,modal:f,children:i})})};hM.displayName=od;var mM="DropdownMenuTrigger",pM=S.forwardRef((t,e)=>{const{__scopeDropdownMenu:i,disabled:s=!1,...o}=t,c=dM(mM,i),u=$e(i);return R.jsx(SB,{asChild:!0,...u,children:R.jsx(ie.button,{type:"button",id:c.triggerId,"aria-haspopup":"menu","aria-expanded":c.open,"aria-controls":c.open?c.contentId:void 0,"data-state":c.open?"open":"closed","data-disabled":s?"":void 0,disabled:s,...o,ref:wi(e,c.triggerRef),onPointerDown:Tt(t.onPointerDown,f=>{!s&&f.button===0&&f.ctrlKey===!1&&(c.onOpenToggle(),c.open||f.preventDefault())}),onKeyDown:Tt(t.onKeyDown,f=>{s||(["Enter"," "].includes(f.key)&&c.onOpenToggle(),f.key==="ArrowDown"&&c.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(f.key)&&f.preventDefault())})})})});pM.displayName=mM;var zB="DropdownMenuPortal",gM=t=>{const{__scopeDropdownMenu:e,...i}=t,s=$e(e);return R.jsx(wB,{...s,...i})};gM.displayName=zB;var yM="DropdownMenuContent",vM=S.forwardRef((t,e)=>{const{__scopeDropdownMenu:i,...s}=t,o=dM(yM,i),c=$e(i),u=S.useRef(!1);return R.jsx(EB,{id:o.contentId,"aria-labelledby":o.triggerId,...c,...s,ref:e,onCloseAutoFocus:Tt(t.onCloseAutoFocus,f=>{var m;u.current||(m=o.triggerRef.current)==null||m.focus(),u.current=!1,f.preventDefault()}),onInteractOutside:Tt(t.onInteractOutside,f=>{const m=f.detail.originalEvent,h=m.button===0&&m.ctrlKey===!0,y=m.button===2||h;(!o.modal||y)&&(u.current=!0)}),style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});vM.displayName=yM;var BB="DropdownMenuGroup",VB=S.forwardRef((t,e)=>{const{__scopeDropdownMenu:i,...s}=t,o=$e(i);return R.jsx(TB,{...o,...s,ref:e})});VB.displayName=BB;var UB="DropdownMenuLabel",bM=S.forwardRef((t,e)=>{const{__scopeDropdownMenu:i,...s}=t,o=$e(i);return R.jsx(CB,{...o,...s,ref:e})});bM.displayName=UB;var IB="DropdownMenuItem",xM=S.forwardRef((t,e)=>{const{__scopeDropdownMenu:i,...s}=t,o=$e(i);return R.jsx(RB,{...o,...s,ref:e})});xM.displayName=IB;var HB="DropdownMenuCheckboxItem",SM=S.forwardRef((t,e)=>{const{__scopeDropdownMenu:i,...s}=t,o=$e(i);return R.jsx(MB,{...o,...s,ref:e})});SM.displayName=HB;var FB="DropdownMenuRadioGroup",GB=S.forwardRef((t,e)=>{const{__scopeDropdownMenu:i,...s}=t,o=$e(i);return R.jsx(AB,{...o,...s,ref:e})});GB.displayName=FB;var qB="DropdownMenuRadioItem",YB=S.forwardRef((t,e)=>{const{__scopeDropdownMenu:i,...s}=t,o=$e(i);return R.jsx(_B,{...o,...s,ref:e})});YB.displayName=qB;var KB="DropdownMenuItemIndicator",wM=S.forwardRef((t,e)=>{const{__scopeDropdownMenu:i,...s}=t,o=$e(i);return R.jsx(DB,{...o,...s,ref:e})});wM.displayName=KB;var XB="DropdownMenuSeparator",EM=S.forwardRef((t,e)=>{const{__scopeDropdownMenu:i,...s}=t,o=$e(i);return R.jsx(OB,{...o,...s,ref:e})});EM.displayName=XB;var QB="DropdownMenuArrow",$B=S.forwardRef((t,e)=>{const{__scopeDropdownMenu:i,...s}=t,o=$e(i);return R.jsx(NB,{...o,...s,ref:e})});$B.displayName=QB;var ZB="DropdownMenuSubTrigger",WB=S.forwardRef((t,e)=>{const{__scopeDropdownMenu:i,...s}=t,o=$e(i);return R.jsx(PB,{...o,...s,ref:e})});WB.displayName=ZB;var JB="DropdownMenuSubContent",tV=S.forwardRef((t,e)=>{const{__scopeDropdownMenu:i,...s}=t,o=$e(i);return R.jsx(LB,{...o,...s,ref:e,style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});tV.displayName=JB;var eV=hM,nV=pM,iV=gM,aV=vM,sV=bM,rV=xM,oV=SM,lV=wM,cV=EM,uV="Separator",R1="horizontal",fV=["horizontal","vertical"],TM=S.forwardRef((t,e)=>{const{decorative:i,orientation:s=R1,...o}=t,c=dV(s)?s:R1,f=i?{role:"none"}:{"aria-orientation":c==="vertical"?c:void 0,role:"separator"};return R.jsx(ie.div,{"data-orientation":c,...f,...o,ref:e})});TM.displayName=uV;function dV(t){return fV.includes(t)}var hV=TM,[ld]=Js("Tooltip",[ad]),cd=ad(),CM="TooltipProvider",mV=700,Sg="tooltip.open",[pV,Yy]=ld(CM),RM=t=>{const{__scopeTooltip:e,delayDuration:i=mV,skipDelayDuration:s=300,disableHoverableContent:o=!1,children:c}=t,u=S.useRef(!0),f=S.useRef(!1),m=S.useRef(0);return S.useEffect(()=>{const h=m.current;return()=>window.clearTimeout(h)},[]),R.jsx(pV,{scope:e,isOpenDelayedRef:u,delayDuration:i,onOpen:S.useCallback(()=>{window.clearTimeout(m.current),u.current=!1},[]),onClose:S.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>u.current=!0,s)},[s]),isPointerInTransitRef:f,onPointerInTransitChange:S.useCallback(h=>{f.current=h},[]),disableHoverableContent:o,children:c})};RM.displayName=CM;var ac="Tooltip",[gV,Sc]=ld(ac),MM=t=>{const{__scopeTooltip:e,children:i,open:s,defaultOpen:o,onOpenChange:c,disableHoverableContent:u,delayDuration:f}=t,m=Yy(ac,t.__scopeTooltip),h=cd(e),[y,p]=S.useState(null),v=wn(),b=S.useRef(0),E=u??m.disableHoverableContent,w=f??m.delayDuration,T=S.useRef(!1),[C,D]=Qf({prop:s,defaultProp:o??!1,onChange:z=>{z?(m.onOpen(),document.dispatchEvent(new CustomEvent(Sg))):m.onClose(),c==null||c(z)},caller:ac}),_=S.useMemo(()=>C?T.current?"delayed-open":"instant-open":"closed",[C]),A=S.useCallback(()=>{window.clearTimeout(b.current),b.current=0,T.current=!1,D(!0)},[D]),P=S.useCallback(()=>{window.clearTimeout(b.current),b.current=0,D(!1)},[D]),B=S.useCallback(()=>{window.clearTimeout(b.current),b.current=window.setTimeout(()=>{T.current=!0,D(!0),b.current=0},w)},[w,D]);return S.useEffect(()=>()=>{b.current&&(window.clearTimeout(b.current),b.current=0)},[]),R.jsx(PR,{...h,children:R.jsx(gV,{scope:e,contentId:v,open:C,stateAttribute:_,trigger:y,onTriggerChange:p,onTriggerEnter:S.useCallback(()=>{m.isOpenDelayedRef.current?B():A()},[m.isOpenDelayedRef,B,A]),onTriggerLeave:S.useCallback(()=>{E?P():(window.clearTimeout(b.current),b.current=0)},[P,E]),onOpen:A,onClose:P,disableHoverableContent:E,children:i})})};MM.displayName=ac;var wg="TooltipTrigger",AM=S.forwardRef((t,e)=>{const{__scopeTooltip:i,...s}=t,o=Sc(wg,i),c=Yy(wg,i),u=cd(i),f=S.useRef(null),m=we(e,f,o.onTriggerChange),h=S.useRef(!1),y=S.useRef(!1),p=S.useCallback(()=>h.current=!1,[]);return S.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),R.jsx(LR,{asChild:!0,...u,children:R.jsx(ie.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...s,ref:m,onPointerMove:Tt(t.onPointerMove,v=>{v.pointerType!=="touch"&&!y.current&&!c.isPointerInTransitRef.current&&(o.onTriggerEnter(),y.current=!0)}),onPointerLeave:Tt(t.onPointerLeave,()=>{o.onTriggerLeave(),y.current=!1}),onPointerDown:Tt(t.onPointerDown,()=>{o.open&&o.onClose(),h.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:Tt(t.onFocus,()=>{h.current||o.onOpen()}),onBlur:Tt(t.onBlur,o.onClose),onClick:Tt(t.onClick,o.onClose)})})});AM.displayName=wg;var Ky="TooltipPortal",[yV,vV]=ld(Ky,{forceMount:void 0}),_M=t=>{const{__scopeTooltip:e,forceMount:i,children:s,container:o}=t,c=Sc(Ky,e);return R.jsx(yV,{scope:e,forceMount:i,children:R.jsx(Ti,{present:i||c.open,children:R.jsx(Zf,{asChild:!0,container:o,children:s})})})};_M.displayName=Ky;var Co="TooltipContent",DM=S.forwardRef((t,e)=>{const i=vV(Co,t.__scopeTooltip),{forceMount:s=i.forceMount,side:o="top",...c}=t,u=Sc(Co,t.__scopeTooltip);return R.jsx(Ti,{present:s||u.open,children:u.disableHoverableContent?R.jsx(OM,{side:o,...c,ref:e}):R.jsx(bV,{side:o,...c,ref:e})})}),bV=S.forwardRef((t,e)=>{const i=Sc(Co,t.__scopeTooltip),s=Yy(Co,t.__scopeTooltip),o=S.useRef(null),c=we(e,o),[u,f]=S.useState(null),{trigger:m,onClose:h}=i,y=o.current,{onPointerInTransitChange:p}=s,v=S.useCallback(()=>{f(null),p(!1)},[p]),b=S.useCallback((E,w)=>{const T=E.currentTarget,C={x:E.clientX,y:E.clientY},D=EV(C,T.getBoundingClientRect()),_=TV(C,D),A=CV(w.getBoundingClientRect()),P=MV([..._,...A]);f(P),p(!0)},[p]);return S.useEffect(()=>()=>v(),[v]),S.useEffect(()=>{if(m&&y){const E=T=>b(T,y),w=T=>b(T,m);return m.addEventListener("pointerleave",E),y.addEventListener("pointerleave",w),()=>{m.removeEventListener("pointerleave",E),y.removeEventListener("pointerleave",w)}}},[m,y,b,v]),S.useEffect(()=>{if(u){const E=w=>{const T=w.target,C={x:w.clientX,y:w.clientY},D=(m==null?void 0:m.contains(T))||(y==null?void 0:y.contains(T)),_=!RV(C,u);D?v():_&&(v(),h())};return document.addEventListener("pointermove",E),()=>document.removeEventListener("pointermove",E)}},[m,y,u,h,v]),R.jsx(OM,{...t,ref:c})}),[xV,SV]=ld(ac,{isInside:!1}),wV=B3("TooltipContent"),OM=S.forwardRef((t,e)=>{const{__scopeTooltip:i,children:s,"aria-label":o,onEscapeKeyDown:c,onPointerDownOutside:u,...f}=t,m=Sc(Co,i),h=cd(i),{onClose:y}=m;return S.useEffect(()=>(document.addEventListener(Sg,y),()=>document.removeEventListener(Sg,y)),[y]),S.useEffect(()=>{if(m.trigger){const p=v=>{const b=v.target;b!=null&&b.contains(m.trigger)&&y()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[m.trigger,y]),R.jsx($f,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:p=>p.preventDefault(),onDismiss:y,children:R.jsxs(jR,{"data-state":m.stateAttribute,...h,...f,ref:e,style:{...f.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[R.jsx(wV,{children:s}),R.jsx(xV,{scope:i,isInside:!0,children:R.jsx(q3,{id:m.contentId,role:"tooltip",children:o||s})})]})})});DM.displayName=Co;var NM="TooltipArrow",PM=S.forwardRef((t,e)=>{const{__scopeTooltip:i,...s}=t,o=cd(i);return SV(NM,i).isInside?null:R.jsx(kR,{...o,...s,ref:e})});PM.displayName=NM;function EV(t,e){const i=Math.abs(e.top-t.y),s=Math.abs(e.bottom-t.y),o=Math.abs(e.right-t.x),c=Math.abs(e.left-t.x);switch(Math.min(i,s,o,c)){case c:return"left";case o:return"right";case i:return"top";case s:return"bottom";default:throw new Error("unreachable")}}function TV(t,e,i=5){const s=[];switch(e){case"top":s.push({x:t.x-i,y:t.y+i},{x:t.x+i,y:t.y+i});break;case"bottom":s.push({x:t.x-i,y:t.y-i},{x:t.x+i,y:t.y-i});break;case"left":s.push({x:t.x+i,y:t.y-i},{x:t.x+i,y:t.y+i});break;case"right":s.push({x:t.x-i,y:t.y-i},{x:t.x-i,y:t.y+i});break}return s}function CV(t){const{top:e,right:i,bottom:s,left:o}=t;return[{x:o,y:e},{x:i,y:e},{x:i,y:s},{x:o,y:s}]}function RV(t,e){const{x:i,y:s}=t;let o=!1;for(let c=0,u=e.length-1;c<e.length;u=c++){const f=e[c],m=e[u],h=f.x,y=f.y,p=m.x,v=m.y;y>s!=v>s&&i<(p-h)*(s-y)/(v-y)+h&&(o=!o)}return o}function MV(t){const e=t.slice();return e.sort((i,s)=>i.x<s.x?-1:i.x>s.x?1:i.y<s.y?-1:i.y>s.y?1:0),AV(e)}function AV(t){if(t.length<=1)return t.slice();const e=[];for(let s=0;s<t.length;s++){const o=t[s];for(;e.length>=2;){const c=e[e.length-1],u=e[e.length-2];if((c.x-u.x)*(o.y-u.y)>=(c.y-u.y)*(o.x-u.x))e.pop();else break}e.push(o)}e.pop();const i=[];for(let s=t.length-1;s>=0;s--){const o=t[s];for(;i.length>=2;){const c=i[i.length-1],u=i[i.length-2];if((c.x-u.x)*(o.y-u.y)>=(c.y-u.y)*(o.x-u.x))i.pop();else break}i.push(o)}return i.pop(),e.length===1&&i.length===1&&e[0].x===i[0].x&&e[0].y===i[0].y?e:e.concat(i)}var _V=RM,DV=MM,OV=AM,NV=_M,PV=DM,LV=PM;const bp=768;function jV(){const[t,e]=S.useState(void 0);return S.useEffect(()=>{const i=window.matchMedia(`(max-width: ${bp-1}px)`),s=()=>{e(window.innerWidth<bp)};return i.addEventListener("change",s),e(window.innerWidth<bp),()=>i.removeEventListener("change",s)},[]),!!t}const kV=(t,e)=>{const i=new Array(t.length+e.length);for(let s=0;s<t.length;s++)i[s]=t[s];for(let s=0;s<e.length;s++)i[t.length+s]=e[s];return i},zV=(t,e)=>({classGroupId:t,validator:e}),LM=(t=new Map,e=null,i)=>({nextPart:t,validators:e,classGroupId:i}),Bf="-",M1=[],BV="arbitrary..",VV=t=>{const e=IV(t),{conflictingClassGroups:i,conflictingClassGroupModifiers:s}=t;return{getClassGroupId:u=>{if(u.startsWith("[")&&u.endsWith("]"))return UV(u);const f=u.split(Bf),m=f[0]===""&&f.length>1?1:0;return jM(f,m,e)},getConflictingClassGroupIds:(u,f)=>{if(f){const m=s[u],h=i[u];return m?h?kV(h,m):m:h||M1}return i[u]||M1}}},jM=(t,e,i)=>{if(t.length-e===0)return i.classGroupId;const o=t[e],c=i.nextPart.get(o);if(c){const h=jM(t,e+1,c);if(h)return h}const u=i.validators;if(u===null)return;const f=e===0?t.join(Bf):t.slice(e).join(Bf),m=u.length;for(let h=0;h<m;h++){const y=u[h];if(y.validator(f))return y.classGroupId}},UV=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const e=t.slice(1,-1),i=e.indexOf(":"),s=e.slice(0,i);return s?BV+s:void 0})(),IV=t=>{const{theme:e,classGroups:i}=t;return HV(i,e)},HV=(t,e)=>{const i=LM();for(const s in t){const o=t[s];Xy(o,i,s,e)}return i},Xy=(t,e,i,s)=>{const o=t.length;for(let c=0;c<o;c++){const u=t[c];FV(u,e,i,s)}},FV=(t,e,i,s)=>{if(typeof t=="string"){GV(t,e,i);return}if(typeof t=="function"){qV(t,e,i,s);return}YV(t,e,i,s)},GV=(t,e,i)=>{const s=t===""?e:kM(e,t);s.classGroupId=i},qV=(t,e,i,s)=>{if(KV(t)){Xy(t(s),e,i,s);return}e.validators===null&&(e.validators=[]),e.validators.push(zV(i,t))},YV=(t,e,i,s)=>{const o=Object.entries(t),c=o.length;for(let u=0;u<c;u++){const[f,m]=o[u];Xy(m,kM(e,f),i,s)}},kM=(t,e)=>{let i=t;const s=e.split(Bf),o=s.length;for(let c=0;c<o;c++){const u=s[c];let f=i.nextPart.get(u);f||(f=LM(),i.nextPart.set(u,f)),i=f}return i},KV=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,XV=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,i=Object.create(null),s=Object.create(null);const o=(c,u)=>{i[c]=u,e++,e>t&&(e=0,s=i,i=Object.create(null))};return{get(c){let u=i[c];if(u!==void 0)return u;if((u=s[c])!==void 0)return o(c,u),u},set(c,u){c in i?i[c]=u:o(c,u)}}},Eg="!",A1=":",QV=[],_1=(t,e,i,s,o)=>({modifiers:t,hasImportantModifier:e,baseClassName:i,maybePostfixModifierPosition:s,isExternal:o}),$V=t=>{const{prefix:e,experimentalParseClassName:i}=t;let s=o=>{const c=[];let u=0,f=0,m=0,h;const y=o.length;for(let w=0;w<y;w++){const T=o[w];if(u===0&&f===0){if(T===A1){c.push(o.slice(m,w)),m=w+1;continue}if(T==="/"){h=w;continue}}T==="["?u++:T==="]"?u--:T==="("?f++:T===")"&&f--}const p=c.length===0?o:o.slice(m);let v=p,b=!1;p.endsWith(Eg)?(v=p.slice(0,-1),b=!0):p.startsWith(Eg)&&(v=p.slice(1),b=!0);const E=h&&h>m?h-m:void 0;return _1(c,b,v,E)};if(e){const o=e+A1,c=s;s=u=>u.startsWith(o)?c(u.slice(o.length)):_1(QV,!1,u,void 0,!0)}if(i){const o=s;s=c=>i({className:c,parseClassName:o})}return s},ZV=t=>{const e=new Map;return t.orderSensitiveModifiers.forEach((i,s)=>{e.set(i,1e6+s)}),i=>{const s=[];let o=[];for(let c=0;c<i.length;c++){const u=i[c],f=u[0]==="[",m=e.has(u);f||m?(o.length>0&&(o.sort(),s.push(...o),o=[]),s.push(u)):o.push(u)}return o.length>0&&(o.sort(),s.push(...o)),s}},WV=t=>({cache:XV(t.cacheSize),parseClassName:$V(t),sortModifiers:ZV(t),...VV(t)}),JV=/\s+/,tU=(t,e)=>{const{parseClassName:i,getClassGroupId:s,getConflictingClassGroupIds:o,sortModifiers:c}=e,u=[],f=t.trim().split(JV);let m="";for(let h=f.length-1;h>=0;h-=1){const y=f[h],{isExternal:p,modifiers:v,hasImportantModifier:b,baseClassName:E,maybePostfixModifierPosition:w}=i(y);if(p){m=y+(m.length>0?" "+m:m);continue}let T=!!w,C=s(T?E.substring(0,w):E);if(!C){if(!T){m=y+(m.length>0?" "+m:m);continue}if(C=s(E),!C){m=y+(m.length>0?" "+m:m);continue}T=!1}const D=v.length===0?"":v.length===1?v[0]:c(v).join(":"),_=b?D+Eg:D,A=_+C;if(u.indexOf(A)>-1)continue;u.push(A);const P=o(C,T);for(let B=0;B<P.length;++B){const z=P[B];u.push(_+z)}m=y+(m.length>0?" "+m:m)}return m},eU=(...t)=>{let e=0,i,s,o="";for(;e<t.length;)(i=t[e++])&&(s=zM(i))&&(o&&(o+=" "),o+=s);return o},zM=t=>{if(typeof t=="string")return t;let e,i="";for(let s=0;s<t.length;s++)t[s]&&(e=zM(t[s]))&&(i&&(i+=" "),i+=e);return i},nU=(t,...e)=>{let i,s,o,c;const u=m=>{const h=e.reduce((y,p)=>p(y),t());return i=WV(h),s=i.cache.get,o=i.cache.set,c=f,f(m)},f=m=>{const h=s(m);if(h)return h;const y=tU(m,i);return o(m,y),y};return c=u,(...m)=>c(eU(...m))},iU=[],xe=t=>{const e=i=>i[t]||iU;return e.isThemeGetter=!0,e},BM=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,VM=/^\((?:(\w[\w-]*):)?(.+)\)$/i,aU=/^\d+\/\d+$/,sU=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,rU=/\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$/,oU=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,lU=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,cU=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Yr=t=>aU.test(t),_t=t=>!!t&&!Number.isNaN(Number(t)),_a=t=>!!t&&Number.isInteger(Number(t)),xp=t=>t.endsWith("%")&&_t(t.slice(0,-1)),qi=t=>sU.test(t),uU=()=>!0,fU=t=>rU.test(t)&&!oU.test(t),UM=()=>!1,dU=t=>lU.test(t),hU=t=>cU.test(t),mU=t=>!gt(t)&&!yt(t),pU=t=>Oo(t,FM,UM),gt=t=>BM.test(t),Rs=t=>Oo(t,GM,fU),Sp=t=>Oo(t,xU,_t),D1=t=>Oo(t,IM,UM),gU=t=>Oo(t,HM,hU),Wu=t=>Oo(t,qM,dU),yt=t=>VM.test(t),Ll=t=>No(t,GM),yU=t=>No(t,SU),O1=t=>No(t,IM),vU=t=>No(t,FM),bU=t=>No(t,HM),Ju=t=>No(t,qM,!0),Oo=(t,e,i)=>{const s=BM.exec(t);return s?s[1]?e(s[1]):i(s[2]):!1},No=(t,e,i=!1)=>{const s=VM.exec(t);return s?s[1]?e(s[1]):i:!1},IM=t=>t==="position"||t==="percentage",HM=t=>t==="image"||t==="url",FM=t=>t==="length"||t==="size"||t==="bg-size",GM=t=>t==="length",xU=t=>t==="number",SU=t=>t==="family-name",qM=t=>t==="shadow",wU=()=>{const t=xe("color"),e=xe("font"),i=xe("text"),s=xe("font-weight"),o=xe("tracking"),c=xe("leading"),u=xe("breakpoint"),f=xe("container"),m=xe("spacing"),h=xe("radius"),y=xe("shadow"),p=xe("inset-shadow"),v=xe("text-shadow"),b=xe("drop-shadow"),E=xe("blur"),w=xe("perspective"),T=xe("aspect"),C=xe("ease"),D=xe("animate"),_=()=>["auto","avoid","all","avoid-page","page","left","right","column"],A=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],P=()=>[...A(),yt,gt],B=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto","contain","none"],L=()=>[yt,gt,m],Y=()=>[Yr,"full","auto",...L()],I=()=>[_a,"none","subgrid",yt,gt],W=()=>["auto",{span:["full",_a,yt,gt]},_a,yt,gt],at=()=>[_a,"auto",yt,gt],ut=()=>["auto","min","max","fr",yt,gt],ft=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ot=()=>["start","end","center","stretch","center-safe","end-safe"],N=()=>["auto",...L()],q=()=>[Yr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...L()],H=()=>[t,yt,gt],et=()=>[...A(),O1,D1,{position:[yt,gt]}],ct=()=>["no-repeat",{repeat:["","x","y","space","round"]}],O=()=>["auto","cover","contain",vU,pU,{size:[yt,gt]}],k=()=>[xp,Ll,Rs],G=()=>["","none","full",h,yt,gt],$=()=>["",_t,Ll,Rs],J=()=>["solid","dashed","dotted","double"],lt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],st=()=>[_t,xp,O1,D1],dt=()=>["","none",E,yt,gt],mt=()=>["none",_t,yt,gt],Ut=()=>["none",_t,yt,gt],le=()=>[_t,yt,gt],ce=()=>[Yr,"full",...L()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[qi],breakpoint:[qi],color:[uU],container:[qi],"drop-shadow":[qi],ease:["in","out","in-out"],font:[mU],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[qi],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[qi],shadow:[qi],spacing:["px",_t],text:[qi],"text-shadow":[qi],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Yr,gt,yt,T]}],container:["container"],columns:[{columns:[_t,gt,yt,f]}],"break-after":[{"break-after":_()}],"break-before":[{"break-before":_()}],"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:P()}],overflow:[{overflow:B()}],"overflow-x":[{"overflow-x":B()}],"overflow-y":[{"overflow-y":B()}],overscroll:[{overscroll:z()}],"overscroll-x":[{"overscroll-x":z()}],"overscroll-y":[{"overscroll-y":z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Y()}],"inset-x":[{"inset-x":Y()}],"inset-y":[{"inset-y":Y()}],start:[{start:Y()}],end:[{end:Y()}],top:[{top:Y()}],right:[{right:Y()}],bottom:[{bottom:Y()}],left:[{left:Y()}],visibility:["visible","invisible","collapse"],z:[{z:[_a,"auto",yt,gt]}],basis:[{basis:[Yr,"full","auto",f,...L()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[_t,Yr,"auto","initial","none",gt]}],grow:[{grow:["",_t,yt,gt]}],shrink:[{shrink:["",_t,yt,gt]}],order:[{order:[_a,"first","last","none",yt,gt]}],"grid-cols":[{"grid-cols":I()}],"col-start-end":[{col:W()}],"col-start":[{"col-start":at()}],"col-end":[{"col-end":at()}],"grid-rows":[{"grid-rows":I()}],"row-start-end":[{row:W()}],"row-start":[{"row-start":at()}],"row-end":[{"row-end":at()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ut()}],"auto-rows":[{"auto-rows":ut()}],gap:[{gap:L()}],"gap-x":[{"gap-x":L()}],"gap-y":[{"gap-y":L()}],"justify-content":[{justify:[...ft(),"normal"]}],"justify-items":[{"justify-items":[...ot(),"normal"]}],"justify-self":[{"justify-self":["auto",...ot()]}],"align-content":[{content:["normal",...ft()]}],"align-items":[{items:[...ot(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ot(),{baseline:["","last"]}]}],"place-content":[{"place-content":ft()}],"place-items":[{"place-items":[...ot(),"baseline"]}],"place-self":[{"place-self":["auto",...ot()]}],p:[{p:L()}],px:[{px:L()}],py:[{py:L()}],ps:[{ps:L()}],pe:[{pe:L()}],pt:[{pt:L()}],pr:[{pr:L()}],pb:[{pb:L()}],pl:[{pl:L()}],m:[{m:N()}],mx:[{mx:N()}],my:[{my:N()}],ms:[{ms:N()}],me:[{me:N()}],mt:[{mt:N()}],mr:[{mr:N()}],mb:[{mb:N()}],ml:[{ml:N()}],"space-x":[{"space-x":L()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":L()}],"space-y-reverse":["space-y-reverse"],size:[{size:q()}],w:[{w:[f,"screen",...q()]}],"min-w":[{"min-w":[f,"screen","none",...q()]}],"max-w":[{"max-w":[f,"screen","none","prose",{screen:[u]},...q()]}],h:[{h:["screen","lh",...q()]}],"min-h":[{"min-h":["screen","lh","none",...q()]}],"max-h":[{"max-h":["screen","lh",...q()]}],"font-size":[{text:["base",i,Ll,Rs]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,yt,Sp]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",xp,gt]}],"font-family":[{font:[yU,gt,e]}],"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:[o,yt,gt]}],"line-clamp":[{"line-clamp":[_t,"none",yt,Sp]}],leading:[{leading:[c,...L()]}],"list-image":[{"list-image":["none",yt,gt]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",yt,gt]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:H()}],"text-color":[{text:H()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...J(),"wavy"]}],"text-decoration-thickness":[{decoration:[_t,"from-font","auto",yt,Rs]}],"text-decoration-color":[{decoration:H()}],"underline-offset":[{"underline-offset":[_t,"auto",yt,gt]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:L()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",yt,gt]}],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",yt,gt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:et()}],"bg-repeat":[{bg:ct()}],"bg-size":[{bg:O()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},_a,yt,gt],radial:["",yt,gt],conic:[_a,yt,gt]},bU,gU]}],"bg-color":[{bg:H()}],"gradient-from-pos":[{from:k()}],"gradient-via-pos":[{via:k()}],"gradient-to-pos":[{to:k()}],"gradient-from":[{from:H()}],"gradient-via":[{via:H()}],"gradient-to":[{to:H()}],rounded:[{rounded:G()}],"rounded-s":[{"rounded-s":G()}],"rounded-e":[{"rounded-e":G()}],"rounded-t":[{"rounded-t":G()}],"rounded-r":[{"rounded-r":G()}],"rounded-b":[{"rounded-b":G()}],"rounded-l":[{"rounded-l":G()}],"rounded-ss":[{"rounded-ss":G()}],"rounded-se":[{"rounded-se":G()}],"rounded-ee":[{"rounded-ee":G()}],"rounded-es":[{"rounded-es":G()}],"rounded-tl":[{"rounded-tl":G()}],"rounded-tr":[{"rounded-tr":G()}],"rounded-br":[{"rounded-br":G()}],"rounded-bl":[{"rounded-bl":G()}],"border-w":[{border:$()}],"border-w-x":[{"border-x":$()}],"border-w-y":[{"border-y":$()}],"border-w-s":[{"border-s":$()}],"border-w-e":[{"border-e":$()}],"border-w-t":[{"border-t":$()}],"border-w-r":[{"border-r":$()}],"border-w-b":[{"border-b":$()}],"border-w-l":[{"border-l":$()}],"divide-x":[{"divide-x":$()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":$()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...J(),"hidden","none"]}],"divide-style":[{divide:[...J(),"hidden","none"]}],"border-color":[{border:H()}],"border-color-x":[{"border-x":H()}],"border-color-y":[{"border-y":H()}],"border-color-s":[{"border-s":H()}],"border-color-e":[{"border-e":H()}],"border-color-t":[{"border-t":H()}],"border-color-r":[{"border-r":H()}],"border-color-b":[{"border-b":H()}],"border-color-l":[{"border-l":H()}],"divide-color":[{divide:H()}],"outline-style":[{outline:[...J(),"none","hidden"]}],"outline-offset":[{"outline-offset":[_t,yt,gt]}],"outline-w":[{outline:["",_t,Ll,Rs]}],"outline-color":[{outline:H()}],shadow:[{shadow:["","none",y,Ju,Wu]}],"shadow-color":[{shadow:H()}],"inset-shadow":[{"inset-shadow":["none",p,Ju,Wu]}],"inset-shadow-color":[{"inset-shadow":H()}],"ring-w":[{ring:$()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:H()}],"ring-offset-w":[{"ring-offset":[_t,Rs]}],"ring-offset-color":[{"ring-offset":H()}],"inset-ring-w":[{"inset-ring":$()}],"inset-ring-color":[{"inset-ring":H()}],"text-shadow":[{"text-shadow":["none",v,Ju,Wu]}],"text-shadow-color":[{"text-shadow":H()}],opacity:[{opacity:[_t,yt,gt]}],"mix-blend":[{"mix-blend":[...lt(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":lt()}],"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":[_t]}],"mask-image-linear-from-pos":[{"mask-linear-from":st()}],"mask-image-linear-to-pos":[{"mask-linear-to":st()}],"mask-image-linear-from-color":[{"mask-linear-from":H()}],"mask-image-linear-to-color":[{"mask-linear-to":H()}],"mask-image-t-from-pos":[{"mask-t-from":st()}],"mask-image-t-to-pos":[{"mask-t-to":st()}],"mask-image-t-from-color":[{"mask-t-from":H()}],"mask-image-t-to-color":[{"mask-t-to":H()}],"mask-image-r-from-pos":[{"mask-r-from":st()}],"mask-image-r-to-pos":[{"mask-r-to":st()}],"mask-image-r-from-color":[{"mask-r-from":H()}],"mask-image-r-to-color":[{"mask-r-to":H()}],"mask-image-b-from-pos":[{"mask-b-from":st()}],"mask-image-b-to-pos":[{"mask-b-to":st()}],"mask-image-b-from-color":[{"mask-b-from":H()}],"mask-image-b-to-color":[{"mask-b-to":H()}],"mask-image-l-from-pos":[{"mask-l-from":st()}],"mask-image-l-to-pos":[{"mask-l-to":st()}],"mask-image-l-from-color":[{"mask-l-from":H()}],"mask-image-l-to-color":[{"mask-l-to":H()}],"mask-image-x-from-pos":[{"mask-x-from":st()}],"mask-image-x-to-pos":[{"mask-x-to":st()}],"mask-image-x-from-color":[{"mask-x-from":H()}],"mask-image-x-to-color":[{"mask-x-to":H()}],"mask-image-y-from-pos":[{"mask-y-from":st()}],"mask-image-y-to-pos":[{"mask-y-to":st()}],"mask-image-y-from-color":[{"mask-y-from":H()}],"mask-image-y-to-color":[{"mask-y-to":H()}],"mask-image-radial":[{"mask-radial":[yt,gt]}],"mask-image-radial-from-pos":[{"mask-radial-from":st()}],"mask-image-radial-to-pos":[{"mask-radial-to":st()}],"mask-image-radial-from-color":[{"mask-radial-from":H()}],"mask-image-radial-to-color":[{"mask-radial-to":H()}],"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":A()}],"mask-image-conic-pos":[{"mask-conic":[_t]}],"mask-image-conic-from-pos":[{"mask-conic-from":st()}],"mask-image-conic-to-pos":[{"mask-conic-to":st()}],"mask-image-conic-from-color":[{"mask-conic-from":H()}],"mask-image-conic-to-color":[{"mask-conic-to":H()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:et()}],"mask-repeat":[{mask:ct()}],"mask-size":[{mask:O()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",yt,gt]}],filter:[{filter:["","none",yt,gt]}],blur:[{blur:dt()}],brightness:[{brightness:[_t,yt,gt]}],contrast:[{contrast:[_t,yt,gt]}],"drop-shadow":[{"drop-shadow":["","none",b,Ju,Wu]}],"drop-shadow-color":[{"drop-shadow":H()}],grayscale:[{grayscale:["",_t,yt,gt]}],"hue-rotate":[{"hue-rotate":[_t,yt,gt]}],invert:[{invert:["",_t,yt,gt]}],saturate:[{saturate:[_t,yt,gt]}],sepia:[{sepia:["",_t,yt,gt]}],"backdrop-filter":[{"backdrop-filter":["","none",yt,gt]}],"backdrop-blur":[{"backdrop-blur":dt()}],"backdrop-brightness":[{"backdrop-brightness":[_t,yt,gt]}],"backdrop-contrast":[{"backdrop-contrast":[_t,yt,gt]}],"backdrop-grayscale":[{"backdrop-grayscale":["",_t,yt,gt]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[_t,yt,gt]}],"backdrop-invert":[{"backdrop-invert":["",_t,yt,gt]}],"backdrop-opacity":[{"backdrop-opacity":[_t,yt,gt]}],"backdrop-saturate":[{"backdrop-saturate":[_t,yt,gt]}],"backdrop-sepia":[{"backdrop-sepia":["",_t,yt,gt]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":L()}],"border-spacing-x":[{"border-spacing-x":L()}],"border-spacing-y":[{"border-spacing-y":L()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",yt,gt]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[_t,"initial",yt,gt]}],ease:[{ease:["linear","initial",C,yt,gt]}],delay:[{delay:[_t,yt,gt]}],animate:[{animate:["none",D,yt,gt]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,yt,gt]}],"perspective-origin":[{"perspective-origin":P()}],rotate:[{rotate:mt()}],"rotate-x":[{"rotate-x":mt()}],"rotate-y":[{"rotate-y":mt()}],"rotate-z":[{"rotate-z":mt()}],scale:[{scale:Ut()}],"scale-x":[{"scale-x":Ut()}],"scale-y":[{"scale-y":Ut()}],"scale-z":[{"scale-z":Ut()}],"scale-3d":["scale-3d"],skew:[{skew:le()}],"skew-x":[{"skew-x":le()}],"skew-y":[{"skew-y":le()}],transform:[{transform:[yt,gt,"","none","gpu","cpu"]}],"transform-origin":[{origin:P()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ce()}],"translate-x":[{"translate-x":ce()}],"translate-y":[{"translate-y":ce()}],"translate-z":[{"translate-z":ce()}],"translate-none":["translate-none"],accent:[{accent:H()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:H()}],"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",yt,gt]}],"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":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"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",yt,gt]}],fill:[{fill:["none",...H()]}],"stroke-w":[{stroke:[_t,Ll,Rs,Sp]}],stroke:[{stroke:["none",...H()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},EU=nU(wU);function Mt(...t){return EU(bC(t))}const TU=xC("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function ud({className:t,variant:e="default",size:i="default",asChild:s=!1,...o}){const c=s?xy:"button";return R.jsx(c,{"data-slot":"button","data-variant":e,"data-size":i,className:Mt(TU({variant:e,size:i,className:t})),...o})}function N1({className:t,orientation:e="horizontal",decorative:i=!0,...s}){return R.jsx(hV,{"data-slot":"separator",decorative:i,orientation:e,className:Mt("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",t),...s})}function CU({...t}){return R.jsx(Ry,{"data-slot":"sheet",...t})}function RU({...t}){return R.jsx(My,{"data-slot":"sheet-portal",...t})}function MU({className:t,...e}){return R.jsx(Ay,{"data-slot":"sheet-overlay",className:Mt("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...e})}function AU({className:t,children:e,side:i="right",showCloseButton:s=!0,...o}){return R.jsxs(RU,{children:[R.jsx(MU,{}),R.jsxs(_y,{"data-slot":"sheet-content",className:Mt("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",i==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",i==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",i==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",i==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",t),...o,children:[e,s&&R.jsxs(Dy,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[R.jsx(_C,{className:"size-4"}),R.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function _U({className:t,...e}){return R.jsx("div",{"data-slot":"sheet-header",className:Mt("flex flex-col gap-1.5 p-4",t),...e})}function DU({className:t,...e}){return R.jsx(uR,{"data-slot":"sheet-title",className:Mt("text-foreground font-semibold",t),...e})}function OU({className:t,...e}){return R.jsx(fR,{"data-slot":"sheet-description",className:Mt("text-muted-foreground text-sm",t),...e})}function NU({delayDuration:t=0,...e}){return R.jsx(_V,{"data-slot":"tooltip-provider",delayDuration:t,...e})}function YM({...t}){return R.jsx(DV,{"data-slot":"tooltip",...t})}function KM({...t}){return R.jsx(OV,{"data-slot":"tooltip-trigger",...t})}function XM({className:t,sideOffset:e=0,children:i,...s}){return R.jsx(NV,{children:R.jsxs(PV,{"data-slot":"tooltip-content",sideOffset:e,className:Mt("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",t),...s,children:[i,R.jsx(LV,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const PU="sidebar_state",LU=3600*24*7,jU="16rem",kU="18rem",zU="3rem",BU="b",QM=S.createContext(null);function fd(){const t=S.useContext(QM);if(!t)throw new Error("useSidebar must be used within a SidebarProvider.");return t}function VU({defaultOpen:t=!0,open:e,onOpenChange:i,className:s,style:o,children:c,...u}){const f=jV(),[m,h]=S.useState(!1),[y,p]=S.useState(t),v=e??y,b=S.useCallback(C=>{const D=typeof C=="function"?C(v):C;i?i(D):p(D),document.cookie=`${PU}=${D}; path=/; max-age=${LU}`},[i,v]),E=S.useCallback(()=>f?h(C=>!C):b(C=>!C),[f,b,h]);S.useEffect(()=>{const C=D=>{D.key===BU&&(D.metaKey||D.ctrlKey)&&(D.preventDefault(),E())};return window.addEventListener("keydown",C),()=>window.removeEventListener("keydown",C)},[E]);const w=v?"expanded":"collapsed",T=S.useMemo(()=>({state:w,open:v,setOpen:b,isMobile:f,openMobile:m,setOpenMobile:h,toggleSidebar:E}),[w,v,b,f,m,h,E]);return R.jsx(QM.Provider,{value:T,children:R.jsx(NU,{delayDuration:0,children:R.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":jU,"--sidebar-width-icon":zU,...o},className:Mt("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",s),...u,children:c})})})}function UU({side:t="left",variant:e="sidebar",collapsible:i="offcanvas",className:s,children:o,...c}){const{isMobile:u,state:f,openMobile:m,setOpenMobile:h}=fd();return i==="none"?R.jsx("div",{"data-slot":"sidebar",className:Mt("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",s),...c,children:o}):u?R.jsx(CU,{open:m,onOpenChange:h,...c,children:R.jsxs(AU,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:{"--sidebar-width":kU},side:t,children:[R.jsxs(_U,{className:"sr-only",children:[R.jsx(DU,{children:"Sidebar"}),R.jsx(OU,{children:"Displays the mobile sidebar."})]}),R.jsx("div",{className:"flex h-full w-full flex-col",children:o})]})}):R.jsxs("div",{className:"group peer text-sidebar-foreground hidden md:block","data-state":f,"data-collapsible":f==="collapsed"?i:"","data-variant":e,"data-side":t,"data-slot":"sidebar",children:[R.jsx("div",{"data-slot":"sidebar-gap",className:Mt("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",e==="floating"||e==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),R.jsx("div",{"data-slot":"sidebar-container",className:Mt("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",t==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",e==="floating"||e==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",s),...c,children:R.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:o})})]})}function IU({className:t,onClick:e,...i}){const{toggleSidebar:s}=fd();return R.jsxs(ud,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:Mt("size-7",t),onClick:o=>{e==null||e(o),s()},...i,children:[R.jsx(k3,{}),R.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})}function HU({className:t,...e}){const{toggleSidebar:i}=fd();return R.jsx("button",{"data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:i,title:"Toggle Sidebar",className:Mt("hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] sm:flex","in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",t),...e})}function FU({className:t,...e}){return R.jsx("main",{"data-slot":"sidebar-inset",className:Mt("bg-background relative flex w-full flex-1 flex-col","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",t),...e})}function GU({className:t,...e}){return R.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:Mt("flex flex-col gap-2 p-2",t),...e})}function qU({className:t,...e}){return R.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:Mt("flex flex-col gap-2 p-2",t),...e})}function YU({className:t,...e}){return R.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:Mt("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",t),...e})}function KU({className:t,...e}){return R.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:Mt("relative flex w-full min-w-0 flex-col p-2",t),...e})}function XU({className:t,asChild:e=!1,...i}){const s=e?xy:"div";return R.jsx(s,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:Mt("text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",t),...i})}function QU({className:t,...e}){return R.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:Mt("w-full text-sm",t),...e})}function P1({className:t,...e}){return R.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:Mt("flex w-full min-w-0 flex-col gap-1",t),...e})}function L1({className:t,...e}){return R.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:Mt("group/menu-item relative",t),...e})}const $U=xC("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function j1({asChild:t=!1,isActive:e=!1,variant:i="default",size:s="default",tooltip:o,className:c,...u}){const f=t?xy:"button",{isMobile:m,state:h}=fd(),y=R.jsx(f,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":s,"data-active":e,className:Mt($U({variant:i,size:s}),c),...u});return o?(typeof o=="string"&&(o={children:o}),R.jsxs(YM,{children:[R.jsx(KM,{asChild:!0,children:y}),R.jsx(XM,{side:"right",align:"center",hidden:h!=="collapsed"||m,...o})]})):y}function ZU({...t}){return R.jsx(eV,{"data-slot":"dropdown-menu",...t})}function WU({...t}){return R.jsx(nV,{"data-slot":"dropdown-menu-trigger",...t})}function JU({className:t,sideOffset:e=4,...i}){return R.jsx(iV,{children:R.jsx(aV,{"data-slot":"dropdown-menu-content",sideOffset:e,className:Mt("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",t),...i})})}function wp({className:t,inset:e,variant:i="default",...s}){return R.jsx(rV,{"data-slot":"dropdown-menu-item","data-inset":e,"data-variant":i,className:Mt("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...s})}function F8({className:t,children:e,checked:i,...s}){return R.jsxs(oV,{"data-slot":"dropdown-menu-checkbox-item",className:Mt("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),checked:i,...s,children:[R.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:R.jsx(lV,{children:R.jsx(L3,{className:"size-4"})})}),e]})}function G8({className:t,inset:e,...i}){return R.jsx(sV,{"data-slot":"dropdown-menu-label","data-inset":e,className:Mt("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",t),...i})}function q8({className:t,...e}){return R.jsx(cV,{"data-slot":"dropdown-menu-separator",className:Mt("bg-border -mx-1 my-1 h-px",t),...e})}const k1=t=>{let e;const i=new Set,s=(h,y)=>{const p=typeof h=="function"?h(e):h;if(!Object.is(p,e)){const v=e;e=y??(typeof p!="object"||p===null)?p:Object.assign({},e,p),i.forEach(b=>b(e,v))}},o=()=>e,f={setState:s,getState:o,getInitialState:()=>m,subscribe:h=>(i.add(h),()=>i.delete(h))},m=e=t(s,o,f);return f},t6=(t=>t?k1(t):k1),e6=t=>t;function n6(t,e=e6){const i=rt.useSyncExternalStore(t.subscribe,rt.useCallback(()=>e(t.getState()),[t,e]),rt.useCallback(()=>e(t.getInitialState()),[t,e]));return rt.useDebugValue(i),i}const z1=t=>{const e=t6(t),i=s=>n6(e,s);return Object.assign(i,e),i},$M=(t=>t?z1(t):z1);function i6(){return typeof window>"u"||window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Ep(t){const e=t==="system"?i6():t;document.documentElement.classList.toggle("dark",e==="dark")}function a6(){return typeof window>"u"?"system":localStorage.getItem("swarmroom-theme")||"system"}const ZM=$M(t=>{const e=a6();return Ep(e),typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{ZM.getState().theme==="system"&&Ep("system")}),{theme:e,setTheme:i=>{localStorage.setItem("swarmroom-theme",i),Ep(i),t({theme:i})}}}),s6=[{title:"Dashboard",href:"/",icon:TC},{title:"Agents",href:"/agents",icon:wC},{title:"Messages",href:"/messages",icon:CC},{title:"Teams",href:"/teams",icon:AC},{title:"Projects",href:"/projects",icon:EC},{title:"Settings",href:"/settings",icon:MC}];function r6(){const{theme:t,setTheme:e}=ZM(),i=t==="dark"?Jw:t==="light"?t1:Ww;return R.jsxs(ZU,{children:[R.jsx(WU,{asChild:!0,children:R.jsxs(ud,{variant:"ghost",size:"sm",className:"w-full justify-start gap-2",children:[R.jsx(i,{className:"size-4"}),R.jsx("span",{className:"capitalize",children:t})]})}),R.jsxs(JU,{align:"start",className:"w-36",children:[R.jsxs(wp,{onClick:()=>e("light"),children:[R.jsx(t1,{className:"size-4"}),"Light"]}),R.jsxs(wp,{onClick:()=>e("dark"),children:[R.jsx(Jw,{className:"size-4"}),"Dark"]}),R.jsxs(wp,{onClick:()=>e("system"),children:[R.jsx(Ww,{className:"size-4"}),"System"]})]})]})}function o6(){const e=Xe().location.pathname;function i(s){return s==="/"?e==="/":e.startsWith(s)}return R.jsxs(UU,{collapsible:"icon",children:[R.jsx(GU,{children:R.jsx(P1,{children:R.jsx(L1,{children:R.jsx(j1,{size:"lg",asChild:!0,children:R.jsxs(Sf,{to:"/",children:[R.jsx("div",{className:"bg-sidebar-primary text-sidebar-primary-foreground flex aspect-square size-8 items-center justify-center rounded-lg",children:R.jsx(j3,{className:"size-4"})}),R.jsxs("div",{className:"grid flex-1 text-left text-sm leading-tight",children:[R.jsx("span",{className:"truncate font-semibold",children:"SwarmRoom"}),R.jsx("span",{className:"truncate text-xs text-muted-foreground",children:"Agent Orchestration"})]})]})})})})}),R.jsx(YU,{children:R.jsxs(KU,{children:[R.jsx(XU,{children:"Navigation"}),R.jsx(QU,{children:R.jsx(P1,{children:s6.map(s=>R.jsx(L1,{children:R.jsx(j1,{asChild:!0,isActive:i(s.href),tooltip:s.title,children:R.jsxs(Sf,{to:s.href,children:[R.jsx(s.icon,{}),R.jsx("span",{children:s.title})]})})},s.href))})})]})}),R.jsx(qU,{children:R.jsx(r6,{})}),R.jsx(HU,{})]})}const WM=$M(t=>({connectionStatus:"disconnected",lastEventTimestamp:null,unreadNotifications:0,setConnectionStatus:e=>t({connectionStatus:e}),setLastEvent:e=>t({lastEventTimestamp:e}),incrementUnread:()=>t(e=>({unreadNotifications:e.unreadNotifications+1})),resetUnread:()=>t({unreadNotifications:0})})),JM="/api",l6="/ws";async function dd(t){var s;const e=await fetch(`${JM}${t}`);if(!e.ok)throw new Error(`API error ${e.status}: ${e.statusText}`);const i=await e.json();if(!i.success||!i.data)throw new Error(((s=i.error)==null?void 0:s.message)??"Unknown API error");return i.data}async function Y8(){return dd("/agents")}async function K8(){return dd("/teams")}async function X8(){return dd("/projects")}async function Q8(t,e=10){return dd(`/messages?agentId=${t}&limit=${e}`)}const c6={"/":"Dashboard","/agents":"Agents","/messages":"Messages","/teams":"Teams","/projects":"Projects","/settings":"Settings"};function u6(t){if(t==="/")return["Dashboard"];const e=t.split("/").filter(Boolean),i=[];let s="";for(const o of e)s+=`/${o}`,i.push(c6[s]||o.charAt(0).toUpperCase()+o.slice(1));return i}const f6={connected:{color:"bg-emerald-500",pulse:"",label:"Connected"},connecting:{color:"bg-amber-500",pulse:"animate-pulse",label:"Reconnecting…"},disconnected:{color:"bg-red-500",pulse:"",label:"Disconnected"}};function d6(){const t=WM(i=>i.connectionStatus),e=f6[t];return R.jsxs("div",{className:"flex items-center gap-1.5",title:e.label,children:[R.jsx("span",{className:`size-2 rounded-full ${e.color} ${e.pulse}`}),R.jsx("span",{className:"hidden text-xs text-muted-foreground sm:inline",children:e.label})]})}function h6({onOpenCommandPalette:t}){const e=Xe(),i=fc(),s=u6(e.location.pathname),{data:o=0}=sN({queryKey:["a2p-unread"],queryFn:async()=>{const c=await fetch(`${JM}/messages?agentId=dashboard&limit=200`);return c.ok?((await c.json()).data??[]).filter(m=>m.to==="dashboard"&&m.senderType==="agent"&&!m.read&&m.type!=="broadcast").length:0},refetchInterval:5e3});return R.jsxs("header",{className:"flex h-14 shrink-0 items-center gap-2 border-b px-4 transition-[width,height] ease-linear group-has-data-[collapsible=icon]/sidebar-wrapper:h-12",children:[R.jsxs("div",{className:"flex items-center gap-2",children:[R.jsx(IU,{className:"-ml-1"}),R.jsx(N1,{orientation:"vertical",className:"mr-2 h-4!"}),R.jsx("nav",{"aria-label":"Breadcrumb",children:R.jsx("ol",{className:"flex items-center gap-1.5 text-sm",children:s.map((c,u)=>R.jsxs("li",{className:"flex items-center gap-1.5",children:[u>0&&R.jsx("span",{className:"text-muted-foreground",children:"/"}),R.jsx("span",{className:u===s.length-1?"font-medium text-foreground":"text-muted-foreground",children:c})]},c))})})]}),R.jsxs("div",{className:"ml-auto flex items-center gap-3",children:[R.jsxs(YM,{children:[R.jsx(KM,{asChild:!0,children:R.jsxs("button",{type:"button",onClick:()=>i({to:"/messages"}),className:Mt("relative flex size-8 items-center justify-center rounded-lg transition-colors","hover:bg-accent text-muted-foreground hover:text-foreground"),children:[R.jsx(P3,{className:"size-4"}),o>0&&R.jsx("span",{className:"absolute -right-0.5 -top-0.5 flex size-4 items-center justify-center rounded-full bg-indigo-600 text-[9px] font-bold text-white ring-2 ring-background",children:o>9?"9+":o})]})}),R.jsx(XM,{side:"bottom",className:"text-xs",children:o>0?`${o} unread message${o!==1?"s":""}`:"No new messages"})]}),R.jsx(d6,{}),R.jsx(N1,{orientation:"vertical",className:"h-4!"}),R.jsxs(ud,{variant:"outline",size:"sm",className:"hidden h-8 gap-2 text-muted-foreground md:flex",onClick:t,children:[R.jsx(RC,{className:"size-3.5"}),R.jsx("span",{className:"text-xs",children:"Search..."}),R.jsxs("kbd",{className:"pointer-events-none ml-2 hidden select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[10px] font-medium text-muted-foreground opacity-100 sm:flex",children:[R.jsx("span",{className:"text-xs",children:"⌘"}),"K"]})]})]})]})}var B1=1,m6=.9,p6=.8,g6=.17,Tp=.1,Cp=.999,y6=.9999,v6=.99,b6=/[\\\/_+.#"@\[\(\{&]/,x6=/[\\\/_+.#"@\[\(\{&]/g,S6=/[\s-]/,tA=/[\s-]/g;function Tg(t,e,i,s,o,c,u){if(c===e.length)return o===t.length?B1:v6;var f=`${o},${c}`;if(u[f]!==void 0)return u[f];for(var m=s.charAt(c),h=i.indexOf(m,o),y=0,p,v,b,E;h>=0;)p=Tg(t,e,i,s,h+1,c+1,u),p>y&&(h===o?p*=B1:b6.test(t.charAt(h-1))?(p*=p6,b=t.slice(o,h-1).match(x6),b&&o>0&&(p*=Math.pow(Cp,b.length))):S6.test(t.charAt(h-1))?(p*=m6,E=t.slice(o,h-1).match(tA),E&&o>0&&(p*=Math.pow(Cp,E.length))):(p*=g6,o>0&&(p*=Math.pow(Cp,h-o))),t.charAt(h)!==e.charAt(c)&&(p*=y6)),(p<Tp&&i.charAt(h-1)===s.charAt(c+1)||s.charAt(c+1)===s.charAt(c)&&i.charAt(h-1)!==s.charAt(c))&&(v=Tg(t,e,i,s,h+1,c+2,u),v*Tp>p&&(p=v*Tp)),p>y&&(y=p),h=i.indexOf(m,h+1);return u[f]=y,y}function V1(t){return t.toLowerCase().replace(tA," ")}function w6(t,e,i){return t=i&&i.length>0?`${t+" "+i.join(" ")}`:t,Tg(t,e,V1(t),V1(e),0,0,{})}var E6=Symbol.for("react.lazy"),Vf=Uf[" use ".trim().toString()];function T6(t){return typeof t=="object"&&t!==null&&"then"in t}function eA(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===E6&&"_payload"in t&&T6(t._payload)}function C6(t){const e=R6(t),i=S.forwardRef((s,o)=>{let{children:c,...u}=s;eA(c)&&typeof Vf=="function"&&(c=Vf(c._payload));const f=S.Children.toArray(c),m=f.find(A6);if(m){const h=m.props.children,y=f.map(p=>p===m?S.Children.count(h)>1?S.Children.only(null):S.isValidElement(h)?h.props.children:null:p);return R.jsx(e,{...u,ref:o,children:S.isValidElement(h)?S.cloneElement(h,void 0,y):null})}return R.jsx(e,{...u,ref:o,children:c})});return i.displayName=`${t}.Slot`,i}function R6(t){const e=S.forwardRef((i,s)=>{let{children:o,...c}=i;if(eA(o)&&typeof Vf=="function"&&(o=Vf(o._payload)),S.isValidElement(o)){const u=D6(o),f=_6(c,o.props);return o.type!==S.Fragment&&(f.ref=s?wi(s,u):u),S.cloneElement(o,f)}return S.Children.count(o)>1?S.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var M6=Symbol("radix.slottable");function A6(t){return S.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===M6}function _6(t,e){const i={...e};for(const s in e){const o=t[s],c=e[s];/^on[A-Z]/.test(s)?o&&c?i[s]=(...f)=>{const m=c(...f);return o(...f),m}:o&&(i[s]=o):s==="style"?i[s]={...o,...c}:s==="className"&&(i[s]=[o,c].filter(Boolean).join(" "))}return{...t,...i}}function D6(t){var s,o;let e=(s=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:s.get,i=e&&"isReactWarning"in e&&e.isReactWarning;return i?t.ref:(e=(o=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:o.get,i=e&&"isReactWarning"in e&&e.isReactWarning,i?t.props.ref:t.props.ref||t.ref)}var O6=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],es=O6.reduce((t,e)=>{const i=C6(`Primitive.${e}`),s=S.forwardRef((o,c)=>{const{asChild:u,...f}=o,m=u?i:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),R.jsx(m,{...f,ref:c})});return s.displayName=`Primitive.${e}`,{...t,[e]:s}},{}),jl='[cmdk-group=""]',Rp='[cmdk-group-items=""]',N6='[cmdk-group-heading=""]',nA='[cmdk-item=""]',U1=`${nA}:not([aria-disabled="true"])`,Cg="cmdk-item-select",Qr="data-value",P6=(t,e,i)=>w6(t,e,i),iA=S.createContext(void 0),wc=()=>S.useContext(iA),aA=S.createContext(void 0),Qy=()=>S.useContext(aA),sA=S.createContext(void 0),rA=S.forwardRef((t,e)=>{let i=$r(()=>{var k,G;return{search:"",value:(G=(k=t.value)!=null?k:t.defaultValue)!=null?G:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),s=$r(()=>new Set),o=$r(()=>new Map),c=$r(()=>new Map),u=$r(()=>new Set),f=oA(t),{label:m,children:h,value:y,onValueChange:p,filter:v,shouldFilter:b,loop:E,disablePointerSelection:w=!1,vimBindings:T=!0,...C}=t,D=wn(),_=wn(),A=wn(),P=S.useRef(null),B=G6();$s(()=>{if(y!==void 0){let k=y.trim();i.current.value=k,z.emit()}},[y]),$s(()=>{B(6,ut)},[]);let z=S.useMemo(()=>({subscribe:k=>(u.current.add(k),()=>u.current.delete(k)),snapshot:()=>i.current,setState:(k,G,$)=>{var J,lt,st,dt;if(!Object.is(i.current[k],G)){if(i.current[k]=G,k==="search")at(),I(),B(1,W);else if(k==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let mt=document.getElementById(A);mt?mt.focus():(J=document.getElementById(D))==null||J.focus()}if(B(7,()=>{var mt;i.current.selectedItemId=(mt=ft())==null?void 0:mt.id,z.emit()}),$||B(5,ut),((lt=f.current)==null?void 0:lt.value)!==void 0){let mt=G??"";(dt=(st=f.current).onValueChange)==null||dt.call(st,mt);return}}z.emit()}},emit:()=>{u.current.forEach(k=>k())}}),[]),L=S.useMemo(()=>({value:(k,G,$)=>{var J;G!==((J=c.current.get(k))==null?void 0:J.value)&&(c.current.set(k,{value:G,keywords:$}),i.current.filtered.items.set(k,Y(G,$)),B(2,()=>{I(),z.emit()}))},item:(k,G)=>(s.current.add(k),G&&(o.current.has(G)?o.current.get(G).add(k):o.current.set(G,new Set([k]))),B(3,()=>{at(),I(),i.current.value||W(),z.emit()}),()=>{c.current.delete(k),s.current.delete(k),i.current.filtered.items.delete(k);let $=ft();B(4,()=>{at(),($==null?void 0:$.getAttribute("id"))===k&&W(),z.emit()})}),group:k=>(o.current.has(k)||o.current.set(k,new Set),()=>{c.current.delete(k),o.current.delete(k)}),filter:()=>f.current.shouldFilter,label:m||t["aria-label"],getDisablePointerSelection:()=>f.current.disablePointerSelection,listId:D,inputId:A,labelId:_,listInnerRef:P}),[]);function Y(k,G){var $,J;let lt=(J=($=f.current)==null?void 0:$.filter)!=null?J:P6;return k?lt(k,i.current.search,G):0}function I(){if(!i.current.search||f.current.shouldFilter===!1)return;let k=i.current.filtered.items,G=[];i.current.filtered.groups.forEach(J=>{let lt=o.current.get(J),st=0;lt.forEach(dt=>{let mt=k.get(dt);st=Math.max(mt,st)}),G.push([J,st])});let $=P.current;ot().sort((J,lt)=>{var st,dt;let mt=J.getAttribute("id"),Ut=lt.getAttribute("id");return((st=k.get(Ut))!=null?st:0)-((dt=k.get(mt))!=null?dt:0)}).forEach(J=>{let lt=J.closest(Rp);lt?lt.appendChild(J.parentElement===lt?J:J.closest(`${Rp} > *`)):$.appendChild(J.parentElement===$?J:J.closest(`${Rp} > *`))}),G.sort((J,lt)=>lt[1]-J[1]).forEach(J=>{var lt;let st=(lt=P.current)==null?void 0:lt.querySelector(`${jl}[${Qr}="${encodeURIComponent(J[0])}"]`);st==null||st.parentElement.appendChild(st)})}function W(){let k=ot().find($=>$.getAttribute("aria-disabled")!=="true"),G=k==null?void 0:k.getAttribute(Qr);z.setState("value",G||void 0)}function at(){var k,G,$,J;if(!i.current.search||f.current.shouldFilter===!1){i.current.filtered.count=s.current.size;return}i.current.filtered.groups=new Set;let lt=0;for(let st of s.current){let dt=(G=(k=c.current.get(st))==null?void 0:k.value)!=null?G:"",mt=(J=($=c.current.get(st))==null?void 0:$.keywords)!=null?J:[],Ut=Y(dt,mt);i.current.filtered.items.set(st,Ut),Ut>0&<++}for(let[st,dt]of o.current)for(let mt of dt)if(i.current.filtered.items.get(mt)>0){i.current.filtered.groups.add(st);break}i.current.filtered.count=lt}function ut(){var k,G,$;let J=ft();J&&(((k=J.parentElement)==null?void 0:k.firstChild)===J&&(($=(G=J.closest(jl))==null?void 0:G.querySelector(N6))==null||$.scrollIntoView({block:"nearest"})),J.scrollIntoView({block:"nearest"}))}function ft(){var k;return(k=P.current)==null?void 0:k.querySelector(`${nA}[aria-selected="true"]`)}function ot(){var k;return Array.from(((k=P.current)==null?void 0:k.querySelectorAll(U1))||[])}function N(k){let G=ot()[k];G&&z.setState("value",G.getAttribute(Qr))}function q(k){var G;let $=ft(),J=ot(),lt=J.findIndex(dt=>dt===$),st=J[lt+k];(G=f.current)!=null&&G.loop&&(st=lt+k<0?J[J.length-1]:lt+k===J.length?J[0]:J[lt+k]),st&&z.setState("value",st.getAttribute(Qr))}function H(k){let G=ft(),$=G==null?void 0:G.closest(jl),J;for(;$&&!J;)$=k>0?H6($,jl):F6($,jl),J=$==null?void 0:$.querySelector(U1);J?z.setState("value",J.getAttribute(Qr)):q(k)}let et=()=>N(ot().length-1),ct=k=>{k.preventDefault(),k.metaKey?et():k.altKey?H(1):q(1)},O=k=>{k.preventDefault(),k.metaKey?N(0):k.altKey?H(-1):q(-1)};return S.createElement(es.div,{ref:e,tabIndex:-1,...C,"cmdk-root":"",onKeyDown:k=>{var G;(G=C.onKeyDown)==null||G.call(C,k);let $=k.nativeEvent.isComposing||k.keyCode===229;if(!(k.defaultPrevented||$))switch(k.key){case"n":case"j":{T&&k.ctrlKey&&ct(k);break}case"ArrowDown":{ct(k);break}case"p":case"k":{T&&k.ctrlKey&&O(k);break}case"ArrowUp":{O(k);break}case"Home":{k.preventDefault(),N(0);break}case"End":{k.preventDefault(),et();break}case"Enter":{k.preventDefault();let J=ft();if(J){let lt=new Event(Cg);J.dispatchEvent(lt)}}}}},S.createElement("label",{"cmdk-label":"",htmlFor:L.inputId,id:L.labelId,style:Y6},m),hd(t,k=>S.createElement(aA.Provider,{value:z},S.createElement(iA.Provider,{value:L},k))))}),L6=S.forwardRef((t,e)=>{var i,s;let o=wn(),c=S.useRef(null),u=S.useContext(sA),f=wc(),m=oA(t),h=(s=(i=m.current)==null?void 0:i.forceMount)!=null?s:u==null?void 0:u.forceMount;$s(()=>{if(!h)return f.item(o,u==null?void 0:u.id)},[h]);let y=lA(o,c,[t.value,t.children,c],t.keywords),p=Qy(),v=Ja(B=>B.value&&B.value===y.current),b=Ja(B=>h||f.filter()===!1?!0:B.search?B.filtered.items.get(o)>0:!0);S.useEffect(()=>{let B=c.current;if(!(!B||t.disabled))return B.addEventListener(Cg,E),()=>B.removeEventListener(Cg,E)},[b,t.onSelect,t.disabled]);function E(){var B,z;w(),(z=(B=m.current).onSelect)==null||z.call(B,y.current)}function w(){p.setState("value",y.current,!0)}if(!b)return null;let{disabled:T,value:C,onSelect:D,forceMount:_,keywords:A,...P}=t;return S.createElement(es.div,{ref:wi(c,e),...P,id:o,"cmdk-item":"",role:"option","aria-disabled":!!T,"aria-selected":!!v,"data-disabled":!!T,"data-selected":!!v,onPointerMove:T||f.getDisablePointerSelection()?void 0:w,onClick:T?void 0:E},t.children)}),j6=S.forwardRef((t,e)=>{let{heading:i,children:s,forceMount:o,...c}=t,u=wn(),f=S.useRef(null),m=S.useRef(null),h=wn(),y=wc(),p=Ja(b=>o||y.filter()===!1?!0:b.search?b.filtered.groups.has(u):!0);$s(()=>y.group(u),[]),lA(u,f,[t.value,t.heading,m]);let v=S.useMemo(()=>({id:u,forceMount:o}),[o]);return S.createElement(es.div,{ref:wi(f,e),...c,"cmdk-group":"",role:"presentation",hidden:p?void 0:!0},i&&S.createElement("div",{ref:m,"cmdk-group-heading":"","aria-hidden":!0,id:h},i),hd(t,b=>S.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":i?h:void 0},S.createElement(sA.Provider,{value:v},b))))}),k6=S.forwardRef((t,e)=>{let{alwaysRender:i,...s}=t,o=S.useRef(null),c=Ja(u=>!u.search);return!i&&!c?null:S.createElement(es.div,{ref:wi(o,e),...s,"cmdk-separator":"",role:"separator"})}),z6=S.forwardRef((t,e)=>{let{onValueChange:i,...s}=t,o=t.value!=null,c=Qy(),u=Ja(h=>h.search),f=Ja(h=>h.selectedItemId),m=wc();return S.useEffect(()=>{t.value!=null&&c.setState("search",t.value)},[t.value]),S.createElement(es.input,{ref:e,...s,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":m.listId,"aria-labelledby":m.labelId,"aria-activedescendant":f,id:m.inputId,type:"text",value:o?t.value:u,onChange:h=>{o||c.setState("search",h.target.value),i==null||i(h.target.value)}})}),B6=S.forwardRef((t,e)=>{let{children:i,label:s="Suggestions",...o}=t,c=S.useRef(null),u=S.useRef(null),f=Ja(h=>h.selectedItemId),m=wc();return S.useEffect(()=>{if(u.current&&c.current){let h=u.current,y=c.current,p,v=new ResizeObserver(()=>{p=requestAnimationFrame(()=>{let b=h.offsetHeight;y.style.setProperty("--cmdk-list-height",b.toFixed(1)+"px")})});return v.observe(h),()=>{cancelAnimationFrame(p),v.unobserve(h)}}},[]),S.createElement(es.div,{ref:wi(c,e),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":f,"aria-label":s,id:m.listId},hd(t,h=>S.createElement("div",{ref:wi(u,m.listInnerRef),"cmdk-list-sizer":""},h)))}),V6=S.forwardRef((t,e)=>{let{open:i,onOpenChange:s,overlayClassName:o,contentClassName:c,container:u,...f}=t;return S.createElement(Ry,{open:i,onOpenChange:s},S.createElement(My,{container:u},S.createElement(Ay,{"cmdk-overlay":"",className:o}),S.createElement(_y,{"aria-label":t.label,"cmdk-dialog":"",className:c},S.createElement(rA,{ref:e,...f}))))}),U6=S.forwardRef((t,e)=>Ja(i=>i.filtered.count===0)?S.createElement(es.div,{ref:e,...t,"cmdk-empty":"",role:"presentation"}):null),I6=S.forwardRef((t,e)=>{let{progress:i,children:s,label:o="Loading...",...c}=t;return S.createElement(es.div,{ref:e,...c,"cmdk-loading":"",role:"progressbar","aria-valuenow":i,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},hd(t,u=>S.createElement("div",{"aria-hidden":!0},u)))}),Po=Object.assign(rA,{List:B6,Item:L6,Input:z6,Group:j6,Separator:k6,Dialog:V6,Empty:U6,Loading:I6});function H6(t,e){let i=t.nextElementSibling;for(;i;){if(i.matches(e))return i;i=i.nextElementSibling}}function F6(t,e){let i=t.previousElementSibling;for(;i;){if(i.matches(e))return i;i=i.previousElementSibling}}function oA(t){let e=S.useRef(t);return $s(()=>{e.current=t}),e}var $s=typeof window>"u"?S.useEffect:S.useLayoutEffect;function $r(t){let e=S.useRef();return e.current===void 0&&(e.current=t()),e}function Ja(t){let e=Qy(),i=()=>t(e.snapshot());return S.useSyncExternalStore(e.subscribe,i,i)}function lA(t,e,i,s=[]){let o=S.useRef(),c=wc();return $s(()=>{var u;let f=(()=>{var h;for(let y of i){if(typeof y=="string")return y.trim();if(typeof y=="object"&&"current"in y)return y.current?(h=y.current.textContent)==null?void 0:h.trim():o.current}})(),m=s.map(h=>h.trim());c.value(t,f,m),(u=e.current)==null||u.setAttribute(Qr,f),o.current=f}),o}var G6=()=>{let[t,e]=S.useState(),i=$r(()=>new Map);return $s(()=>{i.current.forEach(s=>s()),i.current=new Map},[t]),(s,o)=>{i.current.set(s,o),e({})}};function q6(t){let e=t.type;return typeof e=="function"?e(t.props):"render"in e?e.render(t.props):t}function hd({asChild:t,children:e},i){return t&&S.isValidElement(e)?S.cloneElement(q6(e),{ref:e.ref},i(e.props.children)):i(e)}var Y6={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function K6({...t}){return R.jsx(Ry,{"data-slot":"dialog",...t})}function $8({...t}){return R.jsx(h5,{"data-slot":"dialog-trigger",...t})}function X6({...t}){return R.jsx(My,{"data-slot":"dialog-portal",...t})}function Q6({className:t,...e}){return R.jsx(Ay,{"data-slot":"dialog-overlay",className:Mt("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...e})}function $6({className:t,children:e,showCloseButton:i=!0,...s}){return R.jsxs(X6,{"data-slot":"dialog-portal",children:[R.jsx(Q6,{}),R.jsxs(_y,{"data-slot":"dialog-content",className:Mt("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 outline-none sm:max-w-lg",t),...s,children:[e,i&&R.jsxs(Dy,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[R.jsx(_C,{}),R.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function Z6({className:t,...e}){return R.jsx("div",{"data-slot":"dialog-header",className:Mt("flex flex-col gap-2 text-center sm:text-left",t),...e})}function Z8({className:t,showCloseButton:e=!1,children:i,...s}){return R.jsxs("div",{"data-slot":"dialog-footer",className:Mt("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),...s,children:[i,e&&R.jsx(Dy,{asChild:!0,children:R.jsx(ud,{variant:"outline",children:"Close"})})]})}function W6({className:t,...e}){return R.jsx(uR,{"data-slot":"dialog-title",className:Mt("text-lg leading-none font-semibold",t),...e})}function J6({className:t,...e}){return R.jsx(fR,{"data-slot":"dialog-description",className:Mt("text-muted-foreground text-sm",t),...e})}function t8({className:t,...e}){return R.jsx(Po,{"data-slot":"command",className:Mt("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",t),...e})}function e8({title:t="Command Palette",description:e="Search for a command to run...",children:i,className:s,showCloseButton:o=!0,...c}){return R.jsxs(K6,{...c,children:[R.jsxs(Z6,{className:"sr-only",children:[R.jsx(W6,{children:t}),R.jsx(J6,{children:e})]}),R.jsx($6,{className:Mt("overflow-hidden p-0",s),showCloseButton:o,children:R.jsx(t8,{className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:i})})]})}function n8({className:t,...e}){return R.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[R.jsx(RC,{className:"size-4 shrink-0 opacity-50"}),R.jsx(Po.Input,{"data-slot":"command-input",className:Mt("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",t),...e})]})}function i8({className:t,...e}){return R.jsx(Po.List,{"data-slot":"command-list",className:Mt("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",t),...e})}function a8({...t}){return R.jsx(Po.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...t})}function s8({className:t,...e}){return R.jsx(Po.Group,{"data-slot":"command-group",className:Mt("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",t),...e})}function r8({className:t,...e}){return R.jsx(Po.Item,{"data-slot":"command-item",className:Mt("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...e})}const o8=[{title:"Dashboard",href:"/",icon:TC},{title:"Agents",href:"/agents",icon:wC},{title:"Messages",href:"/messages",icon:CC},{title:"Teams",href:"/teams",icon:AC},{title:"Projects",href:"/projects",icon:EC},{title:"Settings",href:"/settings",icon:MC}];function l8({open:t,onOpenChange:e}){const i=fc();S.useEffect(()=>{function o(c){c.key==="k"&&(c.metaKey||c.ctrlKey)&&(c.preventDefault(),e(!t))}return document.addEventListener("keydown",o),()=>document.removeEventListener("keydown",o)},[t,e]);function s(o){e(!1),i({to:o})}return R.jsxs(e8,{open:t,onOpenChange:e,title:"Command Palette",description:"Navigate to a page or run a command",children:[R.jsx(n8,{placeholder:"Type a command or search..."}),R.jsxs(i8,{children:[R.jsx(a8,{children:"No results found."}),R.jsx(s8,{heading:"Pages",children:o8.map(o=>R.jsxs(r8,{value:o.title,onSelect:()=>s(o.href),children:[R.jsx(o.icon,{className:"size-4"}),R.jsx("span",{children:o.title})]},o.href))})]})]})}const c8=3e4,I1=3e3;function u8(){return`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}${l6}`}function f8(){const t=NE(),e=S.useRef(null),i=S.useRef(null),s=S.useRef(I1),o=S.useRef(!1),{setConnectionStatus:c,setLastEvent:u,incrementUnread:f}=WM.getState(),m=S.useCallback(()=>{i.current&&(clearTimeout(i.current),i.current=null)},[]),h=S.useCallback(()=>{var v;if(o.current||((v=e.current)==null?void 0:v.readyState)===WebSocket.OPEN)return;c("connecting");const p=new WebSocket(u8());e.current=p,p.onopen=()=>{if(o.current){p.close();return}s.current=I1,c("connected"),p.send(JSON.stringify({type:"register",payload:{clientType:"dashboard"},timestamp:new Date().toISOString()})),Nl.success("Connected to SwarmRoom")},p.onmessage=b=>{let E;try{E=JSON.parse(b.data)}catch{return}switch(u(Date.now()),E.type){case"heartbeat":{const w=E.payload;w!=null&&w.ping&&p.send(JSON.stringify({type:"heartbeat",payload:{pong:!0},timestamp:new Date().toISOString()}));break}case"agent_online":{const w=E.payload;t.invalidateQueries({queryKey:["agents"]}),Nl.success(`Agent ${(w==null?void 0:w.name)??"unknown"} came online`);break}case"agent_offline":{const w=E.payload;t.invalidateQueries({queryKey:["agents"]}),Nl.info(`Agent ${(w==null?void 0:w.name)??"unknown"} went offline`);break}case"message":{const w=E.payload;t.invalidateQueries({queryKey:["messages"]}),t.invalidateQueries({queryKey:["a2p-unread"]}),f();const T=(w==null?void 0:w.to)==="dashboard"&&(w==null?void 0:w.senderType)==="agent";window.location.pathname.startsWith("/messages")||Nl.info(T?`Agent ${(w==null?void 0:w.from)??"unknown"} sent you a message`:`New message from ${(w==null?void 0:w.from)??"unknown"}`);break}}},p.onclose=()=>{o.current||(c("disconnected"),Nl.error("Connection lost. Reconnecting..."),y())},p.onerror=()=>{}},[t]),y=S.useCallback(()=>{o.current||(m(),c("connecting"),i.current=setTimeout(()=>{h(),s.current=Math.min(s.current*2,c8)},s.current))},[h,m]);S.useEffect(()=>(o.current=!1,h(),()=>{o.current=!0,m(),e.current&&(e.current.onclose=null,e.current.close(),e.current=null),c("disconnected")}),[h])}function d8(){const[t,e]=S.useState(!1),s=Xe().location.pathname;return f8(),R.jsxs(VU,{children:[R.jsx(o6,{}),R.jsxs(FU,{children:[R.jsx(h6,{onOpenCommandPalette:()=>e(!0)}),R.jsx(Sk,{mode:"wait",children:R.jsx(_3.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},className:"flex flex-1 flex-col",children:R.jsx(SE,{})},s)})]}),R.jsx(l8,{open:t,onOpenChange:e})]})}const ns=cO()({component:h8});function h8(){return R.jsxs(R.Fragment,{children:[R.jsx(d8,{}),R.jsx(LN,{position:"bottom-right",richColors:!0}),!1]})}const m8=()=>Ws(()=>import("./index-CRKuXBmU.js"),__vite__mapDeps([0,1,2,3,4,5,6])),p8=Zi("/")({component:Zs(m8,"component")}),g8=()=>Ws(()=>import("./index-CrAz8zKh.js"),__vite__mapDeps([7,2,1,8,9,10,11,12,3,6,13])),y8=Zi("/teams/")({component:Zs(g8,"component")}),v8=()=>Ws(()=>import("./index-DSLPkkn7.js"),__vite__mapDeps([14,1,2,4,15,16,17])),b8=Zi("/settings/")({component:Zs(v8,"component")}),x8=()=>Ws(()=>import("./index-DTF52X7L.js"),__vite__mapDeps([18,2,1,8,9,17,10,11,3,19,13,6])),S8=Zi("/projects/")({component:Zs(x8,"component")}),w8=()=>Ws(()=>import("./index-B3vl6HkB.js"),__vite__mapDeps([20,10,8,2,3,16,21,5,19,6])),E8=Zi("/messages/")({component:Zs(w8,"component")}),T8=()=>Ws(()=>import("./index-DrvfFRRH.js"),__vite__mapDeps([22,10,2,11,8,9,1])),C8=Zi("/agents/")({component:Zs(T8,"component")}),R8=()=>Ws(()=>import("./_agentId-Det2HUaT.js"),__vite__mapDeps([23,10,2,9,17,15,19,1,21,6,12])),M8=Zi("/agents/$agentId")({component:Zs(R8,"component")}),A8=p8.update({id:"/",path:"/",getParentRoute:()=>ns}),_8=y8.update({id:"/teams/",path:"/teams/",getParentRoute:()=>ns}),D8=b8.update({id:"/settings/",path:"/settings/",getParentRoute:()=>ns}),O8=S8.update({id:"/projects/",path:"/projects/",getParentRoute:()=>ns}),N8=E8.update({id:"/messages/",path:"/messages/",getParentRoute:()=>ns}),P8=C8.update({id:"/agents/",path:"/agents/",getParentRoute:()=>ns}),L8=M8.update({id:"/agents/$agentId",path:"/agents/$agentId",getParentRoute:()=>ns}),j8={IndexRoute:A8,AgentsAgentIdRoute:L8,AgentsIndexRoute:P8,MessagesIndexRoute:N8,ProjectsIndexRoute:O8,SettingsIndexRoute:D8,TeamsIndexRoute:_8},k8=ns._addFileChildren(j8)._addFileTypes(),cA=new YO({defaultOptions:{queries:{staleTime:1e3*30,retry:1}}}),z8=bO({routeTree:k8,context:{queryClient:cA},defaultPreload:"intent"}),H1=document.getElementById("root");H1.innerHTML||O2.createRoot(H1).render(R.jsx(S.StrictMode,{children:R.jsx(KO,{client:cA,children:R.jsx(wO,{router:z8})})}));export{wp as $,JM as A,wC as B,L3 as C,K6 as D,XM as E,EC as F,jV as G,j3 as H,we as I,LC as J,Ti as K,Sf as L,CC as M,Js as N,Tt as O,ie as P,Ji as Q,$a as R,RC as S,YM as T,AC as U,ZU as V,WU as W,JU as X,G8 as Y,q8 as Z,F8 as _,$8 as a,fc as a0,qD as a1,Qf as a2,wn as a3,G4 as a4,q4 as a5,BR as a6,xC as a7,_C as a8,M8 as a9,dc as aa,Op as ab,Xl as ac,FO as ad,je as ae,un as af,CE as ag,xy as ah,ud as b,Qe as c,$6 as d,Z6 as e,W6 as f,J6 as g,Y8 as h,K8 as i,R as j,X8 as k,Q8 as l,_3 as m,NE as n,Z8 as o,N1 as p,ZM as q,S as r,t1 as s,Nl as t,sN as u,Jw as v,Ww as w,Mt as x,P3 as y,KM as z};
|